@lingk/sync 0.0.11 → 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 +304 -288
- package/build/lightning.js.map +1 -1
- package/build/lingk.js +291 -287
- 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/lingk.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__(49);
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
/***/ },
|
|
@@ -210,9 +210,6 @@ module.exports =
|
|
|
210
210
|
exports.testAjax = testAjax;
|
|
211
211
|
exports.callGetWizardSourceData = callGetWizardSourceData;
|
|
212
212
|
exports.callPreview = callPreview;
|
|
213
|
-
exports.changeWizardData = changeWizardData;
|
|
214
|
-
exports.addEntityToWizardData = addEntityToWizardData;
|
|
215
|
-
exports.addFieldToWizardData = addFieldToWizardData;
|
|
216
213
|
exports.callGetSchemasForProvider = callGetSchemasForProvider;
|
|
217
214
|
exports.clearSavedSchemas = clearSavedSchemas;
|
|
218
215
|
exports.callPostSchema = callPostSchema;
|
|
@@ -232,10 +229,8 @@ module.exports =
|
|
|
232
229
|
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; } }
|
|
233
230
|
|
|
234
231
|
var axios = __webpack_require__(26);
|
|
235
|
-
function testAjax(
|
|
232
|
+
function testAjax(onFinish) {
|
|
236
233
|
return function (dispatch, getState, api) {
|
|
237
|
-
console.log(typeGuid, accountId, tenantId);
|
|
238
|
-
|
|
239
234
|
var _getState = getState(),
|
|
240
235
|
config = _getState.config;
|
|
241
236
|
|
|
@@ -244,7 +239,7 @@ module.exports =
|
|
|
244
239
|
return api.get('http://echo.jsontest.com/name/evan', {
|
|
245
240
|
endpoint: CUSTOM
|
|
246
241
|
}).then(function (data) {
|
|
247
|
-
|
|
242
|
+
onFinish(data);
|
|
248
243
|
});
|
|
249
244
|
};
|
|
250
245
|
}
|
|
@@ -291,58 +286,10 @@ module.exports =
|
|
|
291
286
|
};
|
|
292
287
|
}
|
|
293
288
|
|
|
294
|
-
function changeWizardData(data, mode) {
|
|
295
|
-
return function (dispatch, getState) {
|
|
296
|
-
var _getState2 = getState(),
|
|
297
|
-
wizard = _getState2.wizard;
|
|
298
|
-
|
|
299
|
-
var wizData = Object.assign({}, wizard.data) || {};
|
|
300
|
-
wizData[mode] = data;
|
|
301
|
-
dispatch({
|
|
302
|
-
type: types.SET_WIZARD_DATA,
|
|
303
|
-
data: wizData
|
|
304
|
-
});
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
function addEntityToWizardData(entity, mode) {
|
|
309
|
-
return function (dispatch, getState) {
|
|
310
|
-
var _getState3 = getState(),
|
|
311
|
-
wizard = _getState3.wizard;
|
|
312
|
-
|
|
313
|
-
var wizData = Object.assign({}, wizard.data) || {};
|
|
314
|
-
var obj = Object.assign({}, wizData[mode]) || {};
|
|
315
|
-
obj[entity] = {};
|
|
316
|
-
wizData[mode] = obj;
|
|
317
|
-
dispatch({
|
|
318
|
-
type: types.SET_WIZARD_DATA,
|
|
319
|
-
data: wizData
|
|
320
|
-
});
|
|
321
|
-
};
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
function addFieldToWizardData(field, entity, mode) {
|
|
325
|
-
return function (dispatch, getState) {
|
|
326
|
-
var _getState4 = getState(),
|
|
327
|
-
wizard = _getState4.wizard;
|
|
328
|
-
|
|
329
|
-
var wizData = Object.assign({}, wizard.data) || {};
|
|
330
|
-
var obj = Object.assign({}, wizData[mode]) || {};
|
|
331
|
-
var entityObj = Object.assign({}, obj[entity]) || {};
|
|
332
|
-
entityObj[field] = true;
|
|
333
|
-
obj[entity] = entityObj;
|
|
334
|
-
wizData[mode] = obj;
|
|
335
|
-
dispatch({
|
|
336
|
-
type: types.SET_WIZARD_DATA,
|
|
337
|
-
data: wizData
|
|
338
|
-
});
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
|
|
342
289
|
function callGetSchemasForProvider(tenantId, appId, providerType) {
|
|
343
290
|
return function (dispatch, getState, api) {
|
|
344
|
-
var
|
|
345
|
-
config =
|
|
291
|
+
var _getState2 = getState(),
|
|
292
|
+
config = _getState2.config;
|
|
346
293
|
|
|
347
294
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
348
295
|
|
|
@@ -368,8 +315,8 @@ module.exports =
|
|
|
368
315
|
|
|
369
316
|
function callPostSchema(tenantId, appId, data) {
|
|
370
317
|
return function (dispatch, getState, api) {
|
|
371
|
-
var
|
|
372
|
-
config =
|
|
318
|
+
var _getState3 = getState(),
|
|
319
|
+
config = _getState3.config;
|
|
373
320
|
|
|
374
321
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
375
322
|
|
|
@@ -384,8 +331,8 @@ module.exports =
|
|
|
384
331
|
|
|
385
332
|
function callPostMapping(tenantId, appId, schemaFromGuid, schemaToGuid, mappings) {
|
|
386
333
|
return function (dispatch, getState, api) {
|
|
387
|
-
var
|
|
388
|
-
config =
|
|
334
|
+
var _getState4 = getState(),
|
|
335
|
+
config = _getState4.config;
|
|
389
336
|
|
|
390
337
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
391
338
|
|
|
@@ -405,8 +352,8 @@ module.exports =
|
|
|
405
352
|
|
|
406
353
|
function callPostProductizedIntegration(tenantId, appId, schemaMappingGuid, configuration, title, typeGuid) {
|
|
407
354
|
return function (dispatch, getState, api) {
|
|
408
|
-
var
|
|
409
|
-
config =
|
|
355
|
+
var _getState5 = getState(),
|
|
356
|
+
config = _getState5.config;
|
|
410
357
|
|
|
411
358
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
412
359
|
|
|
@@ -427,8 +374,8 @@ module.exports =
|
|
|
427
374
|
|
|
428
375
|
function callGenerateIntegration(tenantId, appId, piGuid) {
|
|
429
376
|
return function (dispatch, getState, api) {
|
|
430
|
-
var
|
|
431
|
-
config =
|
|
377
|
+
var _getState6 = getState(),
|
|
378
|
+
config = _getState6.config;
|
|
432
379
|
|
|
433
380
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
434
381
|
|
|
@@ -443,8 +390,8 @@ module.exports =
|
|
|
443
390
|
|
|
444
391
|
function callGetTransformersAfterGeneration(appId) {
|
|
445
392
|
return function (dispatch, getState, api) {
|
|
446
|
-
var
|
|
447
|
-
config =
|
|
393
|
+
var _getState7 = getState(),
|
|
394
|
+
config = _getState7.config;
|
|
448
395
|
|
|
449
396
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
450
397
|
|
|
@@ -473,8 +420,8 @@ module.exports =
|
|
|
473
420
|
|
|
474
421
|
function callGetWizardDataEntities(hubId) {
|
|
475
422
|
return function (dispatch, getState, api) {
|
|
476
|
-
var
|
|
477
|
-
config =
|
|
423
|
+
var _getState8 = getState(),
|
|
424
|
+
config = _getState8.config;
|
|
478
425
|
|
|
479
426
|
var API_URL = config.API_URL;
|
|
480
427
|
|
|
@@ -491,8 +438,8 @@ module.exports =
|
|
|
491
438
|
|
|
492
439
|
function callGetWizardResourceMeta(resourceId) {
|
|
493
440
|
return function (dispatch, getState, api) {
|
|
494
|
-
var
|
|
495
|
-
config =
|
|
441
|
+
var _getState9 = getState(),
|
|
442
|
+
config = _getState9.config;
|
|
496
443
|
|
|
497
444
|
var API_URL = config.API_URL;
|
|
498
445
|
|
|
@@ -1936,7 +1883,8 @@ module.exports =
|
|
|
1936
1883
|
inputs = _props.inputs,
|
|
1937
1884
|
handleSubmit = _props.handleSubmit,
|
|
1938
1885
|
nav = _props.nav,
|
|
1939
|
-
reset = _props.reset
|
|
1886
|
+
reset = _props.reset,
|
|
1887
|
+
step = _props.step;
|
|
1940
1888
|
|
|
1941
1889
|
var Button = inputs.Button;
|
|
1942
1890
|
return _react2.default.createElement(
|
|
@@ -1947,7 +1895,8 @@ module.exports =
|
|
|
1947
1895
|
_react2.default.createElement(
|
|
1948
1896
|
'div',
|
|
1949
1897
|
{ style: { fontSize: 20 } },
|
|
1950
|
-
'Data Source: Configure
|
|
1898
|
+
'Data Source: Configure ',
|
|
1899
|
+
'' + step.title
|
|
1951
1900
|
),
|
|
1952
1901
|
_react2.default.createElement('br', null),
|
|
1953
1902
|
_react2.default.createElement(
|
|
@@ -1956,7 +1905,9 @@ module.exports =
|
|
|
1956
1905
|
_react2.default.createElement(
|
|
1957
1906
|
'h5',
|
|
1958
1907
|
null,
|
|
1959
|
-
'This integration requires
|
|
1908
|
+
'This integration requires ',
|
|
1909
|
+
'' + step.title,
|
|
1910
|
+
' configuration before continuing.'
|
|
1960
1911
|
),
|
|
1961
1912
|
_react2.default.createElement(
|
|
1962
1913
|
'ul',
|
|
@@ -1970,7 +1921,8 @@ module.exports =
|
|
|
1970
1921
|
_react2.default.createElement(
|
|
1971
1922
|
'a',
|
|
1972
1923
|
{ href: '' },
|
|
1973
|
-
'Download the
|
|
1924
|
+
'Download the ',
|
|
1925
|
+
'' + step.title
|
|
1974
1926
|
)
|
|
1975
1927
|
)
|
|
1976
1928
|
),
|
|
@@ -1983,7 +1935,9 @@ module.exports =
|
|
|
1983
1935
|
_react2.default.createElement(
|
|
1984
1936
|
'a',
|
|
1985
1937
|
{ href: '' },
|
|
1986
|
-
'Read the
|
|
1938
|
+
'Read the ',
|
|
1939
|
+
'' + step.title,
|
|
1940
|
+
' Documentation'
|
|
1987
1941
|
)
|
|
1988
1942
|
)
|
|
1989
1943
|
)
|
|
@@ -1992,7 +1946,9 @@ module.exports =
|
|
|
1992
1946
|
_react2.default.createElement(
|
|
1993
1947
|
'strong',
|
|
1994
1948
|
{ htmlFor: 'link-banner', style: { marginBottom: 14 } },
|
|
1995
|
-
'Lingk
|
|
1949
|
+
'Lingk ',
|
|
1950
|
+
'' + step.title,
|
|
1951
|
+
' Credentials:'
|
|
1996
1952
|
),
|
|
1997
1953
|
_react2.default.createElement('br', null),
|
|
1998
1954
|
_react2.default.createElement('br', null),
|
|
@@ -3223,26 +3179,35 @@ module.exports =
|
|
|
3223
3179
|
_this.state = {
|
|
3224
3180
|
newField: '',
|
|
3225
3181
|
newEntity: '',
|
|
3226
|
-
selectedDataEntity: ''
|
|
3182
|
+
selectedDataEntity: '',
|
|
3183
|
+
innerSelectedEntity: ''
|
|
3227
3184
|
};
|
|
3228
|
-
_this.
|
|
3229
|
-
_this.newFieldKeyPress = _this.newFieldKeyPress.bind(_this);
|
|
3185
|
+
_this.pickEntity = _this.pickEntity.bind(_this);
|
|
3230
3186
|
_this.addCustomEntity = _this.addCustomEntity.bind(_this);
|
|
3231
3187
|
_this.newEntityKeyPress = _this.newEntityKeyPress.bind(_this);
|
|
3232
3188
|
_this.loadDefault = _this.loadDefault.bind(_this);
|
|
3233
3189
|
_this.clearAllData = _this.clearAllData.bind(_this);
|
|
3190
|
+
_this.addDefaultDataEntity = _this.addDefaultDataEntity.bind(_this);
|
|
3191
|
+
_this.selectAll = _this.selectAll.bind(_this);
|
|
3192
|
+
_this.deselectAll = _this.deselectAll.bind(_this);
|
|
3234
3193
|
return _this;
|
|
3235
3194
|
}
|
|
3236
3195
|
|
|
3237
3196
|
_createClass(SchemaStep, [{
|
|
3197
|
+
key: 'pickEntity',
|
|
3198
|
+
value: function pickEntity(v) {
|
|
3199
|
+
this.setState({
|
|
3200
|
+
selectedDataEntity: v,
|
|
3201
|
+
innerSelectedEntity: this.state.selectedDataEntity === v && this.state.innerSelectedEntity === v ? '' : v
|
|
3202
|
+
});
|
|
3203
|
+
}
|
|
3204
|
+
}, {
|
|
3238
3205
|
key: 'loadDefault',
|
|
3239
3206
|
value: function loadDefault() {
|
|
3240
3207
|
var _props = this.props,
|
|
3241
3208
|
step = _props.step,
|
|
3242
|
-
actions = _props.actions,
|
|
3243
3209
|
change = _props.change;
|
|
3244
3210
|
|
|
3245
|
-
actions.changeWizardData(step.defaultSchema, step.mode);
|
|
3246
3211
|
change(step.mode + 'Schema', step.defaultSchema);
|
|
3247
3212
|
}
|
|
3248
3213
|
}, {
|
|
@@ -3250,54 +3215,38 @@ module.exports =
|
|
|
3250
3215
|
value: function clearAllData() {
|
|
3251
3216
|
var _props2 = this.props,
|
|
3252
3217
|
step = _props2.step,
|
|
3253
|
-
actions = _props2.actions,
|
|
3254
3218
|
change = _props2.change;
|
|
3255
3219
|
|
|
3256
3220
|
this.setState({ selectedDataEntity: '' });
|
|
3257
|
-
actions.changeWizardData(null, step.mode);
|
|
3258
3221
|
change(step.mode + 'Schema', {});
|
|
3259
3222
|
}
|
|
3260
3223
|
}, {
|
|
3261
|
-
key: '
|
|
3262
|
-
value: function
|
|
3224
|
+
key: 'addCustomEntity',
|
|
3225
|
+
value: function addCustomEntity() {
|
|
3263
3226
|
var _props3 = this.props,
|
|
3264
3227
|
step = _props3.step,
|
|
3265
|
-
actions = _props3.actions,
|
|
3266
3228
|
change = _props3.change,
|
|
3267
3229
|
formValues = _props3.formValues;
|
|
3268
3230
|
|
|
3269
3231
|
var includedFields = formValues[step.mode + 'Schema'] || {};
|
|
3270
|
-
|
|
3271
|
-
this.
|
|
3272
|
-
var obj = Object.assign({}, includedFields);
|
|
3273
|
-
var entityObj = Object.assign({}, obj[this.state.selectedDataEntity]);
|
|
3274
|
-
entityObj[this.state.newField] = true;
|
|
3275
|
-
obj[this.state.selectedDataEntity] = entityObj;
|
|
3232
|
+
var obj = Object.assign({}, includedFields) || {};
|
|
3233
|
+
obj[this.state.newEntity] = {};
|
|
3276
3234
|
change(step.mode + 'Schema', obj);
|
|
3235
|
+
this.setState({ selectedDataEntity: this.state.newEntity, newEntity: '' });
|
|
3277
3236
|
}
|
|
3278
3237
|
}, {
|
|
3279
|
-
key: '
|
|
3280
|
-
value: function
|
|
3281
|
-
if (e.charCode === 13) {
|
|
3282
|
-
e.preventDefault();
|
|
3283
|
-
this.addCustomField();
|
|
3284
|
-
}
|
|
3285
|
-
}
|
|
3286
|
-
}, {
|
|
3287
|
-
key: 'addCustomEntity',
|
|
3288
|
-
value: function addCustomEntity() {
|
|
3238
|
+
key: 'addDefaultDataEntity',
|
|
3239
|
+
value: function addDefaultDataEntity(v) {
|
|
3289
3240
|
var _props4 = this.props,
|
|
3290
3241
|
step = _props4.step,
|
|
3291
|
-
actions = _props4.actions,
|
|
3292
3242
|
change = _props4.change,
|
|
3293
3243
|
formValues = _props4.formValues;
|
|
3294
3244
|
|
|
3295
3245
|
var includedFields = formValues[step.mode + 'Schema'] || {};
|
|
3296
|
-
actions.addEntityToWizardData(this.state.newEntity, step.mode);
|
|
3297
3246
|
var obj = Object.assign({}, includedFields) || {};
|
|
3298
|
-
obj[
|
|
3247
|
+
obj[v] = step.defaultSchema[v];
|
|
3299
3248
|
change(step.mode + 'Schema', obj);
|
|
3300
|
-
this.setState({ selectedDataEntity:
|
|
3249
|
+
this.setState({ selectedDataEntity: v, innerSelectedEntity: v });
|
|
3301
3250
|
}
|
|
3302
3251
|
}, {
|
|
3303
3252
|
key: 'newEntityKeyPress',
|
|
@@ -3309,25 +3258,20 @@ module.exports =
|
|
|
3309
3258
|
}
|
|
3310
3259
|
}, {
|
|
3311
3260
|
key: 'selectAll',
|
|
3312
|
-
value: function selectAll(
|
|
3261
|
+
value: function selectAll() {
|
|
3313
3262
|
var _props5 = this.props,
|
|
3314
|
-
wizard = _props5.wizard,
|
|
3315
|
-
change = _props5.change,
|
|
3316
3263
|
step = _props5.step,
|
|
3264
|
+
change = _props5.change,
|
|
3317
3265
|
formValues = _props5.formValues;
|
|
3318
3266
|
|
|
3319
3267
|
var includedFields = formValues[step.mode + 'Schema'] || {};
|
|
3320
|
-
var
|
|
3321
|
-
|
|
3322
|
-
all[key] = true;
|
|
3323
|
-
});
|
|
3324
|
-
var obj = Object.assign({}, includedFields);
|
|
3325
|
-
obj[this.state.selectedDataEntity] = all;
|
|
3268
|
+
var obj = Object.assign({}, includedFields) || {};
|
|
3269
|
+
obj[this.state.selectedDataEntity] = step.defaultSchema[this.state.selectedDataEntity];
|
|
3326
3270
|
change(step.mode + 'Schema', obj);
|
|
3327
3271
|
}
|
|
3328
3272
|
}, {
|
|
3329
3273
|
key: 'deselectAll',
|
|
3330
|
-
value: function deselectAll(
|
|
3274
|
+
value: function deselectAll() {
|
|
3331
3275
|
var _props6 = this.props,
|
|
3332
3276
|
change = _props6.change,
|
|
3333
3277
|
step = _props6.step,
|
|
@@ -3347,10 +3291,10 @@ module.exports =
|
|
|
3347
3291
|
inputs = _props7.inputs,
|
|
3348
3292
|
handleSubmit = _props7.handleSubmit,
|
|
3349
3293
|
nav = _props7.nav,
|
|
3350
|
-
wizard = _props7.wizard,
|
|
3351
3294
|
formValues = _props7.formValues,
|
|
3352
3295
|
step = _props7.step,
|
|
3353
|
-
reset = _props7.reset
|
|
3296
|
+
reset = _props7.reset,
|
|
3297
|
+
change = _props7.change;
|
|
3354
3298
|
|
|
3355
3299
|
var includedFields = formValues[step.mode + 'Schema'] || {};
|
|
3356
3300
|
var Button = inputs.Button;
|
|
@@ -3383,10 +3327,18 @@ module.exports =
|
|
|
3383
3327
|
_react2.default.createElement(
|
|
3384
3328
|
'div',
|
|
3385
3329
|
{ style: { marginLeft: 16 } },
|
|
3330
|
+
_react2.default.createElement(
|
|
3331
|
+
'div',
|
|
3332
|
+
{ style: { display: 'inline-block', width: 166 } },
|
|
3333
|
+
_react2.default.createElement(Select, { selectedDataEntity: this.state.selectedDataEntity, label: 'Add Default Entity',
|
|
3334
|
+
onSelect: this.addDefaultDataEntity, values: step.defaultSchema,
|
|
3335
|
+
selectedValues: formValues[step.mode + 'Schema']
|
|
3336
|
+
})
|
|
3337
|
+
),
|
|
3386
3338
|
_react2.default.createElement(
|
|
3387
3339
|
Button,
|
|
3388
3340
|
{ type: 'brand', onClick: this.loadDefault },
|
|
3389
|
-
'Load
|
|
3341
|
+
'Load All Defaults'
|
|
3390
3342
|
),
|
|
3391
3343
|
'\xA0\xA0',
|
|
3392
3344
|
_react2.default.createElement(
|
|
@@ -3416,100 +3368,18 @@ module.exports =
|
|
|
3416
3368
|
'Add'
|
|
3417
3369
|
),
|
|
3418
3370
|
_react2.default.createElement('br', null),
|
|
3419
|
-
_react2.default.createElement('br', null)
|
|
3420
|
-
wizard.data && wizard.data[step.mode] ? _react2.default.createElement(Select, { wizard: wizard, step: step, selectedDataEntity: this.state.selectedDataEntity,
|
|
3421
|
-
onSelect: function onSelect(v) {
|
|
3422
|
-
return _this2.setState({ selectedDataEntity: v });
|
|
3423
|
-
}
|
|
3424
|
-
}) : null
|
|
3371
|
+
_react2.default.createElement('br', null)
|
|
3425
3372
|
),
|
|
3426
|
-
_react2.default.createElement(
|
|
3427
|
-
this.state.selectedDataEntity || wizard.data && wizard.data[step.mode] ? _react2.default.createElement(
|
|
3373
|
+
this.state.selectedDataEntity ? _react2.default.createElement(
|
|
3428
3374
|
'div',
|
|
3429
|
-
{ style: { position: 'relative', width:
|
|
3430
|
-
_react2.default.createElement(
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
'strong',
|
|
3438
|
-
null,
|
|
3439
|
-
this.state.selectedDataEntity
|
|
3440
|
-
) : _react2.default.createElement(
|
|
3441
|
-
'span',
|
|
3442
|
-
null,
|
|
3443
|
-
'Field Types:'
|
|
3444
|
-
)
|
|
3445
|
-
),
|
|
3446
|
-
wizard.data && wizard.data[step.mode] ? _react2.default.createElement(
|
|
3447
|
-
'div',
|
|
3448
|
-
{ style: { float: 'right' } },
|
|
3449
|
-
_react2.default.createElement(
|
|
3450
|
-
Button,
|
|
3451
|
-
{ type: 'brand', style: smallButtonStyle,
|
|
3452
|
-
onClick: function onClick(e) {
|
|
3453
|
-
return _this2.deselectAll(_this2.state.selectedDataEntity);
|
|
3454
|
-
} },
|
|
3455
|
-
'Remove All'
|
|
3456
|
-
),
|
|
3457
|
-
_react2.default.createElement(
|
|
3458
|
-
Button,
|
|
3459
|
-
{ type: 'brand', style: smallButtonStyle,
|
|
3460
|
-
onClick: function onClick(e) {
|
|
3461
|
-
return _this2.selectAll(_this2.state.selectedDataEntity);
|
|
3462
|
-
} },
|
|
3463
|
-
'Select All'
|
|
3464
|
-
)
|
|
3465
|
-
) : null,
|
|
3466
|
-
_react2.default.createElement(
|
|
3467
|
-
'div',
|
|
3468
|
-
{ style: { background: 'white', height: 288, width: 350, overflow: 'scroll', border: '1px solid rgb(204, 205, 207)', padding: '12px 0 12px 20px' } },
|
|
3469
|
-
_react2.default.createElement(
|
|
3470
|
-
'div',
|
|
3471
|
-
{ style: { marginBottom: 7 } },
|
|
3472
|
-
_react2.default.createElement(Input, { className: 'form-control', type: 'text', value: this.state.newField, onChange: function onChange(e) {
|
|
3473
|
-
return !e.target.value.includes('.') ? _this2.setState({ newField: e.target.value }) : {};
|
|
3474
|
-
},
|
|
3475
|
-
style: { width: 250, display: 'inline-block' }, placeholder: 'Add Field', onKeyPress: this.newFieldKeyPress, disabled: !this.state.selectedDataEntity
|
|
3476
|
-
}),
|
|
3477
|
-
_react2.default.createElement(
|
|
3478
|
-
Button,
|
|
3479
|
-
{ type: 'brand', onClick: this.addCustomField, disabled: !this.state.newField,
|
|
3480
|
-
style: { float: 'right', marginRight: 19 } },
|
|
3481
|
-
'Add'
|
|
3482
|
-
)
|
|
3483
|
-
),
|
|
3484
|
-
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) {
|
|
3485
|
-
return _react2.default.createElement(
|
|
3486
|
-
'div',
|
|
3487
|
-
{ key: i },
|
|
3488
|
-
_react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Schema.' + _this2.state.selectedDataEntity + '.' + field,
|
|
3489
|
-
component: inputs.rfCheckbox, type: 'checkbox', label: field })
|
|
3490
|
-
);
|
|
3491
|
-
})
|
|
3492
|
-
)
|
|
3493
|
-
),
|
|
3494
|
-
_react2.default.createElement(
|
|
3495
|
-
'div',
|
|
3496
|
-
{ style: { display: 'inline-block', marginLeft: 40 } },
|
|
3497
|
-
_react2.default.createElement(
|
|
3498
|
-
'h5',
|
|
3499
|
-
null,
|
|
3500
|
-
'Source Schema:'
|
|
3501
|
-
),
|
|
3502
|
-
includedFields ? _react2.default.createElement(_schemaAccordion2.default, { values: includedFields, selectedEntity: this.state.selectedDataEntity,
|
|
3503
|
-
pickEntity: function pickEntity(v) {
|
|
3504
|
-
_this2.setState({ selectedDataEntity: v });
|
|
3505
|
-
}
|
|
3506
|
-
}) : null
|
|
3507
|
-
),
|
|
3508
|
-
_react2.default.createElement(
|
|
3509
|
-
'div',
|
|
3510
|
-
{ style: { position: 'absolute', left: 358, top: 154, fontSize: 28, color: '#BBBBBB' } },
|
|
3511
|
-
'\u25B6'
|
|
3512
|
-
),
|
|
3375
|
+
{ style: { position: 'relative', width: 550, marginLeft: 16 } },
|
|
3376
|
+
includedFields ? _react2.default.createElement(_schemaAccordion2.default, { values: includedFields,
|
|
3377
|
+
pickEntity: this.pickEntity, inputs: inputs, step: step,
|
|
3378
|
+
change: change, formValues: formValues,
|
|
3379
|
+
selectedEntity: this.state.selectedDataEntity,
|
|
3380
|
+
innerSelectedEntity: this.state.innerSelectedEntity,
|
|
3381
|
+
selectAll: this.selectAll, deselectAll: this.deselectAll
|
|
3382
|
+
}) : null,
|
|
3513
3383
|
_react2.default.createElement('br', null)
|
|
3514
3384
|
) : null,
|
|
3515
3385
|
_react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
|
|
@@ -3623,6 +3493,7 @@ module.exports =
|
|
|
3623
3493
|
_react2.default.createElement(
|
|
3624
3494
|
'div',
|
|
3625
3495
|
{ className: 'accordion-panel-header',
|
|
3496
|
+
style: { height: 35 },
|
|
3626
3497
|
onClick: function onClick() {
|
|
3627
3498
|
_this2.setState({ innerSelectedEntity: selectedEntity === entity && _this2.state.innerSelectedEntity === entity ? '' : entity });
|
|
3628
3499
|
_this2.scrollToTop(_this2.main, 18, i * 45 + 6);
|
|
@@ -3687,6 +3558,12 @@ module.exports =
|
|
|
3687
3558
|
|
|
3688
3559
|
var _react2 = _interopRequireDefault(_react);
|
|
3689
3560
|
|
|
3561
|
+
var _reduxForm = __webpack_require__(2);
|
|
3562
|
+
|
|
3563
|
+
var _reactAddonsCssTransitionGroup = __webpack_require__(27);
|
|
3564
|
+
|
|
3565
|
+
var _reactAddonsCssTransitionGroup2 = _interopRequireDefault(_reactAddonsCssTransitionGroup);
|
|
3566
|
+
|
|
3690
3567
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3691
3568
|
|
|
3692
3569
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -3704,12 +3581,41 @@ module.exports =
|
|
|
3704
3581
|
var _this = _possibleConstructorReturn(this, (SchemaAccordion.__proto__ || Object.getPrototypeOf(SchemaAccordion)).call(this));
|
|
3705
3582
|
|
|
3706
3583
|
_this.state = {
|
|
3707
|
-
|
|
3584
|
+
newField: ''
|
|
3708
3585
|
};
|
|
3586
|
+
_this.addCustomField = _this.addCustomField.bind(_this);
|
|
3587
|
+
_this.newFieldKeyPress = _this.newFieldKeyPress.bind(_this);
|
|
3709
3588
|
return _this;
|
|
3710
3589
|
}
|
|
3711
3590
|
|
|
3712
3591
|
_createClass(SchemaAccordion, [{
|
|
3592
|
+
key: 'addCustomField',
|
|
3593
|
+
value: function addCustomField(e) {
|
|
3594
|
+
e.stopPropagation();
|
|
3595
|
+
var _props = this.props,
|
|
3596
|
+
step = _props.step,
|
|
3597
|
+
change = _props.change,
|
|
3598
|
+
formValues = _props.formValues,
|
|
3599
|
+
selectedEntity = _props.selectedEntity;
|
|
3600
|
+
|
|
3601
|
+
var includedFields = formValues[step.mode + 'Schema'] || {};
|
|
3602
|
+
//actions.addFieldToWizardData(this.state.newField, this.state.selectedDataEntity, step.mode)
|
|
3603
|
+
this.setState({ newField: '' });
|
|
3604
|
+
var obj = Object.assign({}, includedFields);
|
|
3605
|
+
var entityObj = Object.assign({}, obj[selectedEntity]);
|
|
3606
|
+
entityObj[this.state.newField] = true;
|
|
3607
|
+
obj[selectedEntity] = entityObj;
|
|
3608
|
+
change(step.mode + 'Schema', obj);
|
|
3609
|
+
}
|
|
3610
|
+
}, {
|
|
3611
|
+
key: 'newFieldKeyPress',
|
|
3612
|
+
value: function newFieldKeyPress(e) {
|
|
3613
|
+
if (e.charCode === 13) {
|
|
3614
|
+
e.preventDefault();
|
|
3615
|
+
this.addCustomField(e);
|
|
3616
|
+
}
|
|
3617
|
+
}
|
|
3618
|
+
}, {
|
|
3713
3619
|
key: 'scrollToTop',
|
|
3714
3620
|
value: function scrollToTop(element, scrollDuration, scrollTarget) {
|
|
3715
3621
|
var initial = element.scrollTop,
|
|
@@ -3725,6 +3631,7 @@ module.exports =
|
|
|
3725
3631
|
window.requestAnimationFrame(go);
|
|
3726
3632
|
}
|
|
3727
3633
|
if (step !== 0) {
|
|
3634
|
+
// if already on top
|
|
3728
3635
|
window.requestAnimationFrame(go);
|
|
3729
3636
|
}
|
|
3730
3637
|
}
|
|
@@ -3733,59 +3640,149 @@ module.exports =
|
|
|
3733
3640
|
value: function render() {
|
|
3734
3641
|
var _this2 = this;
|
|
3735
3642
|
|
|
3736
|
-
var
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3643
|
+
var _props2 = this.props,
|
|
3644
|
+
inputs = _props2.inputs,
|
|
3645
|
+
step = _props2.step,
|
|
3646
|
+
pickEntity = _props2.pickEntity,
|
|
3647
|
+
values = _props2.values,
|
|
3648
|
+
selectedEntity = _props2.selectedEntity,
|
|
3649
|
+
innerSelectedEntity = _props2.innerSelectedEntity;
|
|
3741
3650
|
|
|
3651
|
+
var Button = inputs.Button;
|
|
3652
|
+
var Input = inputs.Input;
|
|
3653
|
+
var smallButtonStyle = {
|
|
3654
|
+
marginLeft: 4,
|
|
3655
|
+
height: 22,
|
|
3656
|
+
width: 68,
|
|
3657
|
+
lineHeight: '20px',
|
|
3658
|
+
padding: 0,
|
|
3659
|
+
verticalAlign: 'middle',
|
|
3660
|
+
marginBottom: 4,
|
|
3661
|
+
fontSize: 10
|
|
3662
|
+
};
|
|
3742
3663
|
return _react2.default.createElement(
|
|
3743
3664
|
'div',
|
|
3744
3665
|
{ ref: function ref(_ref) {
|
|
3745
3666
|
_this2.main = _ref;
|
|
3746
3667
|
}, id: 'main',
|
|
3747
3668
|
style: {
|
|
3748
|
-
background: 'white', height:
|
|
3669
|
+
background: 'white', height: 350, width: 550, overflow: 'scroll',
|
|
3749
3670
|
border: '1px solid rgb(204, 205, 207)', padding: 12
|
|
3750
3671
|
}
|
|
3751
3672
|
},
|
|
3752
3673
|
Object.keys(values).map(function (entity, i) {
|
|
3753
3674
|
return _react2.default.createElement(
|
|
3754
3675
|
'div',
|
|
3755
|
-
{ key: i, className: 'accordion-panel',
|
|
3756
|
-
style: { display: !Object.keys(values[entity]).every(function (field) {
|
|
3757
|
-
return !values[entity][field];
|
|
3758
|
-
}) ? 'block' : 'none' }
|
|
3759
|
-
},
|
|
3676
|
+
{ key: i, className: 'accordion-panel' },
|
|
3760
3677
|
_react2.default.createElement(
|
|
3761
3678
|
'div',
|
|
3762
|
-
{
|
|
3679
|
+
{
|
|
3680
|
+
className: innerSelectedEntity === entity ? "accordion-panel-header accordion-panel-header-selected" : "accordion-panel-header",
|
|
3763
3681
|
onClick: function onClick() {
|
|
3764
|
-
_this2.
|
|
3765
|
-
_this2.scrollToTop(_this2.main, 18, i * 45 + 6);
|
|
3682
|
+
_this2.scrollToTop(_this2.main, 18, i * 58 + 6);
|
|
3766
3683
|
pickEntity(entity);
|
|
3767
3684
|
}
|
|
3768
3685
|
},
|
|
3769
|
-
|
|
3686
|
+
_react2.default.createElement(
|
|
3687
|
+
'div',
|
|
3688
|
+
{ style: { paddingTop: 8, overflow: 'hidden', display: 'inline-block', width: 228, textDecoration: 'inherit' } },
|
|
3689
|
+
entity
|
|
3690
|
+
),
|
|
3691
|
+
_react2.default.createElement(
|
|
3692
|
+
_reactAddonsCssTransitionGroup2.default,
|
|
3693
|
+
{ transitionName: 'panel', transitionEnterTimeout: 300, transitionLeaveTimeout: 300 },
|
|
3694
|
+
innerSelectedEntity === entity ? _react2.default.createElement(
|
|
3695
|
+
'div',
|
|
3696
|
+
{ style: { display: 'inline-block', verticalAlign: 'top' }, className: 'transition' },
|
|
3697
|
+
_react2.default.createElement(Input, { type: 'text', value: _this2.state.newField, disabled: !selectedEntity,
|
|
3698
|
+
onChange: function onChange(e) {
|
|
3699
|
+
return !e.target.value.includes('.') && e.target.value.charAt(0) !== ' ' ? _this2.setState({ newField: e.target.value }) : {};
|
|
3700
|
+
},
|
|
3701
|
+
style: { width: 200, display: 'inline-block' }, placeholder: 'Add Field', onKeyPress: _this2.newFieldKeyPress,
|
|
3702
|
+
onClick: function onClick(e) {
|
|
3703
|
+
return e.stopPropagation();
|
|
3704
|
+
}
|
|
3705
|
+
}),
|
|
3706
|
+
_react2.default.createElement(
|
|
3707
|
+
Button,
|
|
3708
|
+
{ type: 'neutral', onClick: _this2.addCustomField, disabled: !_this2.state.newField,
|
|
3709
|
+
style: { marginLeft: 10 } },
|
|
3710
|
+
'Add'
|
|
3711
|
+
)
|
|
3712
|
+
) : null
|
|
3713
|
+
)
|
|
3770
3714
|
),
|
|
3771
3715
|
_react2.default.createElement(
|
|
3772
|
-
|
|
3773
|
-
{
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
_react2.default.createElement('div', { style: { height: 9 } }),
|
|
3779
|
-
Object.keys(values[entity]).filter(function (f) {
|
|
3780
|
-
return values[entity][f];
|
|
3781
|
-
}).map(function (field, ii) {
|
|
3782
|
-
return _react2.default.createElement(
|
|
3716
|
+
_reactAddonsCssTransitionGroup2.default,
|
|
3717
|
+
{ transitionName: 'fieldslabel', transitionEnterTimeout: 200, transitionLeaveTimeout: 200 },
|
|
3718
|
+
innerSelectedEntity === entity ? _react2.default.createElement(
|
|
3719
|
+
'div',
|
|
3720
|
+
null,
|
|
3721
|
+
_react2.default.createElement(
|
|
3783
3722
|
'div',
|
|
3784
|
-
{
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3723
|
+
{ style: {
|
|
3724
|
+
color: '#54698d',
|
|
3725
|
+
textTransform: 'uppercase',
|
|
3726
|
+
letterSpacing: '1px',
|
|
3727
|
+
marginLeft: 12,
|
|
3728
|
+
marginTop: 9,
|
|
3729
|
+
display: 'inline-block'
|
|
3730
|
+
} },
|
|
3731
|
+
'Fields:'
|
|
3732
|
+
),
|
|
3733
|
+
_react2.default.createElement(
|
|
3734
|
+
'div',
|
|
3735
|
+
{ style: { float: 'right', marginTop: 6, marginRight: 8 } },
|
|
3736
|
+
_react2.default.createElement(
|
|
3737
|
+
Button,
|
|
3738
|
+
{ type: 'brand', style: smallButtonStyle,
|
|
3739
|
+
onClick: _this2.props.deselectAll },
|
|
3740
|
+
'Remove All'
|
|
3741
|
+
),
|
|
3742
|
+
_react2.default.createElement(
|
|
3743
|
+
Button,
|
|
3744
|
+
{ type: 'brand', style: smallButtonStyle,
|
|
3745
|
+
onClick: _this2.props.selectAll },
|
|
3746
|
+
'Select All'
|
|
3747
|
+
)
|
|
3748
|
+
)
|
|
3749
|
+
) : null
|
|
3750
|
+
),
|
|
3751
|
+
_react2.default.createElement(
|
|
3752
|
+
_reactAddonsCssTransitionGroup2.default,
|
|
3753
|
+
{ transitionName: 'panel', transitionEnterTimeout: 200, transitionLeaveTimeout: 200 },
|
|
3754
|
+
innerSelectedEntity === entity ? _react2.default.createElement(
|
|
3755
|
+
'div',
|
|
3756
|
+
{ className: 'accordion-panel-collapse',
|
|
3757
|
+
style: {
|
|
3758
|
+
height: values[entity] && innerSelectedEntity === entity ? Object.keys(values[entity]).length * 19 + 9 : 0
|
|
3759
|
+
}
|
|
3760
|
+
},
|
|
3761
|
+
Object.keys(values[entity]).filter(function (f) {
|
|
3762
|
+
return values[entity][f];
|
|
3763
|
+
}).sort(function (a, b) {
|
|
3764
|
+
return a.toLowerCase() < b.toLowerCase() ? -1 : 1;
|
|
3765
|
+
}).map(function (field, ii) {
|
|
3766
|
+
return _react2.default.createElement(
|
|
3767
|
+
'div',
|
|
3768
|
+
{ className: 'schema-field', key: ii },
|
|
3769
|
+
_react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Schema.' + selectedEntity + '.' + field,
|
|
3770
|
+
component: inputs.rfCheckbox, type: 'checkbox', label: field })
|
|
3771
|
+
);
|
|
3772
|
+
}),
|
|
3773
|
+
Object.keys(values[entity]).filter(function (f) {
|
|
3774
|
+
return !values[entity][f];
|
|
3775
|
+
}).sort(function (a, b) {
|
|
3776
|
+
return a.toLowerCase() < b.toLowerCase() ? -1 : 1;
|
|
3777
|
+
}).map(function (field, ii) {
|
|
3778
|
+
return _react2.default.createElement(
|
|
3779
|
+
'div',
|
|
3780
|
+
{ className: 'schema-field', key: ii },
|
|
3781
|
+
_react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Schema.' + selectedEntity + '.' + field,
|
|
3782
|
+
component: inputs.rfCheckbox, type: 'checkbox', label: field })
|
|
3783
|
+
);
|
|
3784
|
+
})
|
|
3785
|
+
) : null
|
|
3789
3786
|
)
|
|
3790
3787
|
);
|
|
3791
3788
|
})
|
|
@@ -3966,7 +3963,7 @@ module.exports =
|
|
|
3966
3963
|
if (parseInt(1, 10) === 6) {
|
|
3967
3964
|
actions.submitWizardData(redux.main.tenantInfo.TenantId, appId, schemas.source, schemas.destination, mapping, configuration, config.title, typeGuid);
|
|
3968
3965
|
}
|
|
3969
|
-
onFinish
|
|
3966
|
+
actions.testAjax(onFinish);
|
|
3970
3967
|
}
|
|
3971
3968
|
}, {
|
|
3972
3969
|
key: 'nextPage',
|
|
@@ -4089,7 +4086,7 @@ module.exports =
|
|
|
4089
4086
|
|
|
4090
4087
|
var _react2 = _interopRequireDefault(_react);
|
|
4091
4088
|
|
|
4092
|
-
var _redux = __webpack_require__(
|
|
4089
|
+
var _redux = __webpack_require__(28);
|
|
4093
4090
|
|
|
4094
4091
|
var _reactRedux = __webpack_require__(7);
|
|
4095
4092
|
|
|
@@ -4299,16 +4296,21 @@ module.exports =
|
|
|
4299
4296
|
/* 27 */
|
|
4300
4297
|
/***/ function(module, exports) {
|
|
4301
4298
|
|
|
4302
|
-
module.exports = require("
|
|
4299
|
+
module.exports = require("react-addons-css-transition-group");
|
|
4303
4300
|
|
|
4304
4301
|
/***/ },
|
|
4305
4302
|
/* 28 */
|
|
4303
|
+
/***/ function(module, exports) {
|
|
4304
|
+
|
|
4305
|
+
module.exports = require("redux");
|
|
4306
|
+
|
|
4307
|
+
/***/ },
|
|
4308
|
+
/* 29 */
|
|
4306
4309
|
/***/ function(module, exports) {
|
|
4307
4310
|
|
|
4308
4311
|
module.exports = require("react-bootstrap");
|
|
4309
4312
|
|
|
4310
4313
|
/***/ },
|
|
4311
|
-
/* 29 */,
|
|
4312
4314
|
/* 30 */,
|
|
4313
4315
|
/* 31 */,
|
|
4314
4316
|
/* 32 */,
|
|
@@ -4320,7 +4322,8 @@ module.exports =
|
|
|
4320
4322
|
/* 38 */,
|
|
4321
4323
|
/* 39 */,
|
|
4322
4324
|
/* 40 */,
|
|
4323
|
-
/* 41
|
|
4325
|
+
/* 41 */,
|
|
4326
|
+
/* 42 */
|
|
4324
4327
|
/***/ function(module, exports, __webpack_require__) {
|
|
4325
4328
|
|
|
4326
4329
|
'use strict';
|
|
@@ -4372,7 +4375,7 @@ module.exports =
|
|
|
4372
4375
|
exports.default = Button;
|
|
4373
4376
|
|
|
4374
4377
|
/***/ },
|
|
4375
|
-
/*
|
|
4378
|
+
/* 43 */
|
|
4376
4379
|
/***/ function(module, exports, __webpack_require__) {
|
|
4377
4380
|
|
|
4378
4381
|
"use strict";
|
|
@@ -4394,7 +4397,7 @@ module.exports =
|
|
|
4394
4397
|
exports.default = Input;
|
|
4395
4398
|
|
|
4396
4399
|
/***/ },
|
|
4397
|
-
/*
|
|
4400
|
+
/* 44 */
|
|
4398
4401
|
/***/ function(module, exports, __webpack_require__) {
|
|
4399
4402
|
|
|
4400
4403
|
'use strict';
|
|
@@ -4407,7 +4410,7 @@ module.exports =
|
|
|
4407
4410
|
|
|
4408
4411
|
var _react2 = _interopRequireDefault(_react);
|
|
4409
4412
|
|
|
4410
|
-
var _reactBootstrap = __webpack_require__(
|
|
4413
|
+
var _reactBootstrap = __webpack_require__(29);
|
|
4411
4414
|
|
|
4412
4415
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4413
4416
|
|
|
@@ -4501,7 +4504,7 @@ module.exports =
|
|
|
4501
4504
|
exports.default = MapTable;
|
|
4502
4505
|
|
|
4503
4506
|
/***/ },
|
|
4504
|
-
/*
|
|
4507
|
+
/* 45 */
|
|
4505
4508
|
/***/ function(module, exports, __webpack_require__) {
|
|
4506
4509
|
|
|
4507
4510
|
'use strict';
|
|
@@ -4514,7 +4517,7 @@ module.exports =
|
|
|
4514
4517
|
|
|
4515
4518
|
var _react2 = _interopRequireDefault(_react);
|
|
4516
4519
|
|
|
4517
|
-
var _reactBootstrap = __webpack_require__(
|
|
4520
|
+
var _reactBootstrap = __webpack_require__(29);
|
|
4518
4521
|
|
|
4519
4522
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4520
4523
|
|
|
@@ -4578,7 +4581,7 @@ module.exports =
|
|
|
4578
4581
|
exports.default = PreviewTable;
|
|
4579
4582
|
|
|
4580
4583
|
/***/ },
|
|
4581
|
-
/*
|
|
4584
|
+
/* 46 */
|
|
4582
4585
|
/***/ function(module, exports, __webpack_require__) {
|
|
4583
4586
|
|
|
4584
4587
|
'use strict';
|
|
@@ -4594,8 +4597,7 @@ module.exports =
|
|
|
4594
4597
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4595
4598
|
|
|
4596
4599
|
var Select = function Select(props) {
|
|
4597
|
-
var
|
|
4598
|
-
step = props.step,
|
|
4600
|
+
var values = props.values,
|
|
4599
4601
|
selectedDataEntity = props.selectedDataEntity,
|
|
4600
4602
|
onSelect = props.onSelect;
|
|
4601
4603
|
|
|
@@ -4614,10 +4616,10 @@ module.exports =
|
|
|
4614
4616
|
{ value: '', disabled: true },
|
|
4615
4617
|
'Select Data Entity'
|
|
4616
4618
|
),
|
|
4617
|
-
|
|
4619
|
+
values && Object.keys(values).map(function (key, i) {
|
|
4618
4620
|
return _react2.default.createElement(
|
|
4619
4621
|
'option',
|
|
4620
|
-
{ value: key, key:
|
|
4622
|
+
{ value: key, key: i },
|
|
4621
4623
|
key
|
|
4622
4624
|
);
|
|
4623
4625
|
})
|
|
@@ -4628,7 +4630,7 @@ module.exports =
|
|
|
4628
4630
|
exports.default = Select;
|
|
4629
4631
|
|
|
4630
4632
|
/***/ },
|
|
4631
|
-
/*
|
|
4633
|
+
/* 47 */
|
|
4632
4634
|
/***/ function(module, exports, __webpack_require__) {
|
|
4633
4635
|
|
|
4634
4636
|
'use strict';
|
|
@@ -4720,7 +4722,7 @@ module.exports =
|
|
|
4720
4722
|
exports.default = Sidebar;
|
|
4721
4723
|
|
|
4722
4724
|
/***/ },
|
|
4723
|
-
/*
|
|
4725
|
+
/* 48 */
|
|
4724
4726
|
/***/ function(module, exports, __webpack_require__) {
|
|
4725
4727
|
|
|
4726
4728
|
'use strict';
|
|
@@ -4751,7 +4753,7 @@ module.exports =
|
|
|
4751
4753
|
exports.default = Spinner;
|
|
4752
4754
|
|
|
4753
4755
|
/***/ },
|
|
4754
|
-
/*
|
|
4756
|
+
/* 49 */
|
|
4755
4757
|
/***/ function(module, exports, __webpack_require__) {
|
|
4756
4758
|
|
|
4757
4759
|
'use strict';
|
|
@@ -4760,7 +4762,7 @@ module.exports =
|
|
|
4760
4762
|
value: true
|
|
4761
4763
|
});
|
|
4762
4764
|
|
|
4763
|
-
var _Sidebar = __webpack_require__(
|
|
4765
|
+
var _Sidebar = __webpack_require__(47);
|
|
4764
4766
|
|
|
4765
4767
|
Object.defineProperty(exports, 'Sidebar', {
|
|
4766
4768
|
enumerable: true,
|
|
@@ -4769,7 +4771,7 @@ module.exports =
|
|
|
4769
4771
|
}
|
|
4770
4772
|
});
|
|
4771
4773
|
|
|
4772
|
-
var _Button = __webpack_require__(
|
|
4774
|
+
var _Button = __webpack_require__(42);
|
|
4773
4775
|
|
|
4774
4776
|
Object.defineProperty(exports, 'Button', {
|
|
4775
4777
|
enumerable: true,
|
|
@@ -4778,7 +4780,7 @@ module.exports =
|
|
|
4778
4780
|
}
|
|
4779
4781
|
});
|
|
4780
4782
|
|
|
4781
|
-
var _Input = __webpack_require__(
|
|
4783
|
+
var _Input = __webpack_require__(43);
|
|
4782
4784
|
|
|
4783
4785
|
Object.defineProperty(exports, 'Input', {
|
|
4784
4786
|
enumerable: true,
|
|
@@ -4787,7 +4789,7 @@ module.exports =
|
|
|
4787
4789
|
}
|
|
4788
4790
|
});
|
|
4789
4791
|
|
|
4790
|
-
var _Spinner = __webpack_require__(
|
|
4792
|
+
var _Spinner = __webpack_require__(48);
|
|
4791
4793
|
|
|
4792
4794
|
Object.defineProperty(exports, 'Spinner', {
|
|
4793
4795
|
enumerable: true,
|
|
@@ -4796,7 +4798,7 @@ module.exports =
|
|
|
4796
4798
|
}
|
|
4797
4799
|
});
|
|
4798
4800
|
|
|
4799
|
-
var _Select = __webpack_require__(
|
|
4801
|
+
var _Select = __webpack_require__(46);
|
|
4800
4802
|
|
|
4801
4803
|
Object.defineProperty(exports, 'Select', {
|
|
4802
4804
|
enumerable: true,
|
|
@@ -4805,7 +4807,7 @@ module.exports =
|
|
|
4805
4807
|
}
|
|
4806
4808
|
});
|
|
4807
4809
|
|
|
4808
|
-
var _rfInput = __webpack_require__(
|
|
4810
|
+
var _rfInput = __webpack_require__(51);
|
|
4809
4811
|
|
|
4810
4812
|
Object.defineProperty(exports, 'rfInput', {
|
|
4811
4813
|
enumerable: true,
|
|
@@ -4814,7 +4816,7 @@ module.exports =
|
|
|
4814
4816
|
}
|
|
4815
4817
|
});
|
|
4816
4818
|
|
|
4817
|
-
var _rfRadioGroup = __webpack_require__(
|
|
4819
|
+
var _rfRadioGroup = __webpack_require__(52);
|
|
4818
4820
|
|
|
4819
4821
|
Object.defineProperty(exports, 'rfRadioGroup', {
|
|
4820
4822
|
enumerable: true,
|
|
@@ -4823,7 +4825,7 @@ module.exports =
|
|
|
4823
4825
|
}
|
|
4824
4826
|
});
|
|
4825
4827
|
|
|
4826
|
-
var _rfCheckbox = __webpack_require__(
|
|
4828
|
+
var _rfCheckbox = __webpack_require__(50);
|
|
4827
4829
|
|
|
4828
4830
|
Object.defineProperty(exports, 'rfCheckbox', {
|
|
4829
4831
|
enumerable: true,
|
|
@@ -4832,7 +4834,7 @@ module.exports =
|
|
|
4832
4834
|
}
|
|
4833
4835
|
});
|
|
4834
4836
|
|
|
4835
|
-
var _MapTable = __webpack_require__(
|
|
4837
|
+
var _MapTable = __webpack_require__(44);
|
|
4836
4838
|
|
|
4837
4839
|
Object.defineProperty(exports, 'MapTable', {
|
|
4838
4840
|
enumerable: true,
|
|
@@ -4841,7 +4843,7 @@ module.exports =
|
|
|
4841
4843
|
}
|
|
4842
4844
|
});
|
|
4843
4845
|
|
|
4844
|
-
var _PreviewTable = __webpack_require__(
|
|
4846
|
+
var _PreviewTable = __webpack_require__(45);
|
|
4845
4847
|
|
|
4846
4848
|
Object.defineProperty(exports, 'PreviewTable', {
|
|
4847
4849
|
enumerable: true,
|
|
@@ -4850,7 +4852,7 @@ module.exports =
|
|
|
4850
4852
|
}
|
|
4851
4853
|
});
|
|
4852
4854
|
|
|
4853
|
-
var _theme = __webpack_require__(
|
|
4855
|
+
var _theme = __webpack_require__(54);
|
|
4854
4856
|
|
|
4855
4857
|
Object.defineProperty(exports, 'styles', {
|
|
4856
4858
|
enumerable: true,
|
|
@@ -4871,10 +4873,10 @@ module.exports =
|
|
|
4871
4873
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4872
4874
|
|
|
4873
4875
|
/***/ },
|
|
4874
|
-
/*
|
|
4876
|
+
/* 50 */
|
|
4875
4877
|
/***/ function(module, exports, __webpack_require__) {
|
|
4876
4878
|
|
|
4877
|
-
|
|
4879
|
+
'use strict';
|
|
4878
4880
|
|
|
4879
4881
|
Object.defineProperty(exports, "__esModule", {
|
|
4880
4882
|
value: true
|
|
@@ -4896,24 +4898,26 @@ module.exports =
|
|
|
4896
4898
|
error = _ref$meta.error;
|
|
4897
4899
|
|
|
4898
4900
|
return _react2.default.createElement(
|
|
4899
|
-
|
|
4901
|
+
'div',
|
|
4900
4902
|
null,
|
|
4901
|
-
_react2.default.createElement(
|
|
4902
|
-
type:
|
|
4903
|
+
_react2.default.createElement('input', {
|
|
4904
|
+
type: 'checkbox',
|
|
4903
4905
|
disabled: disabled,
|
|
4904
4906
|
checked: input.checked,
|
|
4905
4907
|
onChange: function onChange(e) {
|
|
4906
4908
|
return input.onChange(e);
|
|
4907
4909
|
}
|
|
4908
4910
|
}),
|
|
4909
|
-
|
|
4911
|
+
'\xA0\xA0',
|
|
4910
4912
|
_react2.default.createElement(
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
+
'span',
|
|
4914
|
+
{ style: {
|
|
4915
|
+
color: input.checked ? 'black' : 'grey'
|
|
4916
|
+
} },
|
|
4913
4917
|
label
|
|
4914
4918
|
),
|
|
4915
4919
|
touched && error && _react2.default.createElement(
|
|
4916
|
-
|
|
4920
|
+
'span',
|
|
4917
4921
|
null,
|
|
4918
4922
|
error
|
|
4919
4923
|
)
|
|
@@ -4923,7 +4927,7 @@ module.exports =
|
|
|
4923
4927
|
exports.default = rfCheckbox;
|
|
4924
4928
|
|
|
4925
4929
|
/***/ },
|
|
4926
|
-
/*
|
|
4930
|
+
/* 51 */
|
|
4927
4931
|
/***/ function(module, exports, __webpack_require__) {
|
|
4928
4932
|
|
|
4929
4933
|
"use strict";
|
|
@@ -4975,7 +4979,7 @@ module.exports =
|
|
|
4975
4979
|
exports.default = rfInput;
|
|
4976
4980
|
|
|
4977
4981
|
/***/ },
|
|
4978
|
-
/*
|
|
4982
|
+
/* 52 */
|
|
4979
4983
|
/***/ function(module, exports, __webpack_require__) {
|
|
4980
4984
|
|
|
4981
4985
|
'use strict';
|
|
@@ -5018,8 +5022,8 @@ module.exports =
|
|
|
5018
5022
|
exports.default = rfRadioGroup;
|
|
5019
5023
|
|
|
5020
5024
|
/***/ },
|
|
5021
|
-
/*
|
|
5022
|
-
/*
|
|
5025
|
+
/* 53 */,
|
|
5026
|
+
/* 54 */
|
|
5023
5027
|
25
|
|
5024
5028
|
/******/ ])));
|
|
5025
5029
|
//# sourceMappingURL=lingk.js.map
|