@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/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,10 +234,8 @@ 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
|
-
console.log(typeGuid, accountId, tenantId);
|
|
243
|
-
|
|
244
239
|
var _getState = getState(),
|
|
245
240
|
config = _getState.config;
|
|
246
241
|
|
|
@@ -249,7 +244,7 @@ module.exports =
|
|
|
249
244
|
return api.get('http://echo.jsontest.com/name/evan', {
|
|
250
245
|
endpoint: CUSTOM
|
|
251
246
|
}).then(function (data) {
|
|
252
|
-
|
|
247
|
+
onFinish(data);
|
|
253
248
|
});
|
|
254
249
|
};
|
|
255
250
|
}
|
|
@@ -296,58 +291,10 @@ module.exports =
|
|
|
296
291
|
};
|
|
297
292
|
}
|
|
298
293
|
|
|
299
|
-
function changeWizardData(data, mode) {
|
|
300
|
-
return function (dispatch, getState) {
|
|
301
|
-
var _getState2 = getState(),
|
|
302
|
-
wizard = _getState2.wizard;
|
|
303
|
-
|
|
304
|
-
var wizData = Object.assign({}, wizard.data) || {};
|
|
305
|
-
wizData[mode] = data;
|
|
306
|
-
dispatch({
|
|
307
|
-
type: types.SET_WIZARD_DATA,
|
|
308
|
-
data: wizData
|
|
309
|
-
});
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
function addEntityToWizardData(entity, mode) {
|
|
314
|
-
return function (dispatch, getState) {
|
|
315
|
-
var _getState3 = getState(),
|
|
316
|
-
wizard = _getState3.wizard;
|
|
317
|
-
|
|
318
|
-
var wizData = Object.assign({}, wizard.data) || {};
|
|
319
|
-
var obj = Object.assign({}, wizData[mode]) || {};
|
|
320
|
-
obj[entity] = {};
|
|
321
|
-
wizData[mode] = obj;
|
|
322
|
-
dispatch({
|
|
323
|
-
type: types.SET_WIZARD_DATA,
|
|
324
|
-
data: wizData
|
|
325
|
-
});
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
function addFieldToWizardData(field, entity, mode) {
|
|
330
|
-
return function (dispatch, getState) {
|
|
331
|
-
var _getState4 = getState(),
|
|
332
|
-
wizard = _getState4.wizard;
|
|
333
|
-
|
|
334
|
-
var wizData = Object.assign({}, wizard.data) || {};
|
|
335
|
-
var obj = Object.assign({}, wizData[mode]) || {};
|
|
336
|
-
var entityObj = Object.assign({}, obj[entity]) || {};
|
|
337
|
-
entityObj[field] = true;
|
|
338
|
-
obj[entity] = entityObj;
|
|
339
|
-
wizData[mode] = obj;
|
|
340
|
-
dispatch({
|
|
341
|
-
type: types.SET_WIZARD_DATA,
|
|
342
|
-
data: wizData
|
|
343
|
-
});
|
|
344
|
-
};
|
|
345
|
-
}
|
|
346
|
-
|
|
347
294
|
function callGetSchemasForProvider(tenantId, appId, providerType) {
|
|
348
295
|
return function (dispatch, getState, api) {
|
|
349
|
-
var
|
|
350
|
-
config =
|
|
296
|
+
var _getState2 = getState(),
|
|
297
|
+
config = _getState2.config;
|
|
351
298
|
|
|
352
299
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
353
300
|
|
|
@@ -373,8 +320,8 @@ module.exports =
|
|
|
373
320
|
|
|
374
321
|
function callPostSchema(tenantId, appId, data) {
|
|
375
322
|
return function (dispatch, getState, api) {
|
|
376
|
-
var
|
|
377
|
-
config =
|
|
323
|
+
var _getState3 = getState(),
|
|
324
|
+
config = _getState3.config;
|
|
378
325
|
|
|
379
326
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
380
327
|
|
|
@@ -389,8 +336,8 @@ module.exports =
|
|
|
389
336
|
|
|
390
337
|
function callPostMapping(tenantId, appId, schemaFromGuid, schemaToGuid, mappings) {
|
|
391
338
|
return function (dispatch, getState, api) {
|
|
392
|
-
var
|
|
393
|
-
config =
|
|
339
|
+
var _getState4 = getState(),
|
|
340
|
+
config = _getState4.config;
|
|
394
341
|
|
|
395
342
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
396
343
|
|
|
@@ -410,8 +357,8 @@ module.exports =
|
|
|
410
357
|
|
|
411
358
|
function callPostProductizedIntegration(tenantId, appId, schemaMappingGuid, configuration, title, typeGuid) {
|
|
412
359
|
return function (dispatch, getState, api) {
|
|
413
|
-
var
|
|
414
|
-
config =
|
|
360
|
+
var _getState5 = getState(),
|
|
361
|
+
config = _getState5.config;
|
|
415
362
|
|
|
416
363
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
417
364
|
|
|
@@ -432,8 +379,8 @@ module.exports =
|
|
|
432
379
|
|
|
433
380
|
function callGenerateIntegration(tenantId, appId, piGuid) {
|
|
434
381
|
return function (dispatch, getState, api) {
|
|
435
|
-
var
|
|
436
|
-
config =
|
|
382
|
+
var _getState6 = getState(),
|
|
383
|
+
config = _getState6.config;
|
|
437
384
|
|
|
438
385
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
439
386
|
|
|
@@ -448,8 +395,8 @@ module.exports =
|
|
|
448
395
|
|
|
449
396
|
function callGetTransformersAfterGeneration(appId) {
|
|
450
397
|
return function (dispatch, getState, api) {
|
|
451
|
-
var
|
|
452
|
-
config =
|
|
398
|
+
var _getState7 = getState(),
|
|
399
|
+
config = _getState7.config;
|
|
453
400
|
|
|
454
401
|
var TRANS_API_URL = config.TRANS_API_URL;
|
|
455
402
|
|
|
@@ -478,8 +425,8 @@ module.exports =
|
|
|
478
425
|
|
|
479
426
|
function callGetWizardDataEntities(hubId) {
|
|
480
427
|
return function (dispatch, getState, api) {
|
|
481
|
-
var
|
|
482
|
-
config =
|
|
428
|
+
var _getState8 = getState(),
|
|
429
|
+
config = _getState8.config;
|
|
483
430
|
|
|
484
431
|
var API_URL = config.API_URL;
|
|
485
432
|
|
|
@@ -496,8 +443,8 @@ module.exports =
|
|
|
496
443
|
|
|
497
444
|
function callGetWizardResourceMeta(resourceId) {
|
|
498
445
|
return function (dispatch, getState, api) {
|
|
499
|
-
var
|
|
500
|
-
config =
|
|
446
|
+
var _getState9 = getState(),
|
|
447
|
+
config = _getState9.config;
|
|
501
448
|
|
|
502
449
|
var API_URL = config.API_URL;
|
|
503
450
|
|
|
@@ -1941,7 +1888,8 @@ module.exports =
|
|
|
1941
1888
|
inputs = _props.inputs,
|
|
1942
1889
|
handleSubmit = _props.handleSubmit,
|
|
1943
1890
|
nav = _props.nav,
|
|
1944
|
-
reset = _props.reset
|
|
1891
|
+
reset = _props.reset,
|
|
1892
|
+
step = _props.step;
|
|
1945
1893
|
|
|
1946
1894
|
var Button = inputs.Button;
|
|
1947
1895
|
return _react2.default.createElement(
|
|
@@ -1952,7 +1900,8 @@ module.exports =
|
|
|
1952
1900
|
_react2.default.createElement(
|
|
1953
1901
|
'div',
|
|
1954
1902
|
{ style: { fontSize: 20 } },
|
|
1955
|
-
'Data Source: Configure
|
|
1903
|
+
'Data Source: Configure ',
|
|
1904
|
+
'' + step.title
|
|
1956
1905
|
),
|
|
1957
1906
|
_react2.default.createElement('br', null),
|
|
1958
1907
|
_react2.default.createElement(
|
|
@@ -1961,7 +1910,9 @@ module.exports =
|
|
|
1961
1910
|
_react2.default.createElement(
|
|
1962
1911
|
'h5',
|
|
1963
1912
|
null,
|
|
1964
|
-
'This integration requires
|
|
1913
|
+
'This integration requires ',
|
|
1914
|
+
'' + step.title,
|
|
1915
|
+
' configuration before continuing.'
|
|
1965
1916
|
),
|
|
1966
1917
|
_react2.default.createElement(
|
|
1967
1918
|
'ul',
|
|
@@ -1975,7 +1926,8 @@ module.exports =
|
|
|
1975
1926
|
_react2.default.createElement(
|
|
1976
1927
|
'a',
|
|
1977
1928
|
{ href: '' },
|
|
1978
|
-
'Download the
|
|
1929
|
+
'Download the ',
|
|
1930
|
+
'' + step.title
|
|
1979
1931
|
)
|
|
1980
1932
|
)
|
|
1981
1933
|
),
|
|
@@ -1988,7 +1940,9 @@ module.exports =
|
|
|
1988
1940
|
_react2.default.createElement(
|
|
1989
1941
|
'a',
|
|
1990
1942
|
{ href: '' },
|
|
1991
|
-
'Read the
|
|
1943
|
+
'Read the ',
|
|
1944
|
+
'' + step.title,
|
|
1945
|
+
' Documentation'
|
|
1992
1946
|
)
|
|
1993
1947
|
)
|
|
1994
1948
|
)
|
|
@@ -1997,7 +1951,9 @@ module.exports =
|
|
|
1997
1951
|
_react2.default.createElement(
|
|
1998
1952
|
'strong',
|
|
1999
1953
|
{ htmlFor: 'link-banner', style: { marginBottom: 14 } },
|
|
2000
|
-
'Lingk
|
|
1954
|
+
'Lingk ',
|
|
1955
|
+
'' + step.title,
|
|
1956
|
+
' Credentials:'
|
|
2001
1957
|
),
|
|
2002
1958
|
_react2.default.createElement('br', null),
|
|
2003
1959
|
_react2.default.createElement('br', null),
|
|
@@ -3228,26 +3184,35 @@ module.exports =
|
|
|
3228
3184
|
_this.state = {
|
|
3229
3185
|
newField: '',
|
|
3230
3186
|
newEntity: '',
|
|
3231
|
-
selectedDataEntity: ''
|
|
3187
|
+
selectedDataEntity: '',
|
|
3188
|
+
innerSelectedEntity: ''
|
|
3232
3189
|
};
|
|
3233
|
-
_this.
|
|
3234
|
-
_this.newFieldKeyPress = _this.newFieldKeyPress.bind(_this);
|
|
3190
|
+
_this.pickEntity = _this.pickEntity.bind(_this);
|
|
3235
3191
|
_this.addCustomEntity = _this.addCustomEntity.bind(_this);
|
|
3236
3192
|
_this.newEntityKeyPress = _this.newEntityKeyPress.bind(_this);
|
|
3237
3193
|
_this.loadDefault = _this.loadDefault.bind(_this);
|
|
3238
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);
|
|
3239
3198
|
return _this;
|
|
3240
3199
|
}
|
|
3241
3200
|
|
|
3242
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
|
+
}, {
|
|
3243
3210
|
key: 'loadDefault',
|
|
3244
3211
|
value: function loadDefault() {
|
|
3245
3212
|
var _props = this.props,
|
|
3246
3213
|
step = _props.step,
|
|
3247
|
-
actions = _props.actions,
|
|
3248
3214
|
change = _props.change;
|
|
3249
3215
|
|
|
3250
|
-
actions.changeWizardData(step.defaultSchema, step.mode);
|
|
3251
3216
|
change(step.mode + 'Schema', step.defaultSchema);
|
|
3252
3217
|
}
|
|
3253
3218
|
}, {
|
|
@@ -3255,54 +3220,38 @@ module.exports =
|
|
|
3255
3220
|
value: function clearAllData() {
|
|
3256
3221
|
var _props2 = this.props,
|
|
3257
3222
|
step = _props2.step,
|
|
3258
|
-
actions = _props2.actions,
|
|
3259
3223
|
change = _props2.change;
|
|
3260
3224
|
|
|
3261
3225
|
this.setState({ selectedDataEntity: '' });
|
|
3262
|
-
actions.changeWizardData(null, step.mode);
|
|
3263
3226
|
change(step.mode + 'Schema', {});
|
|
3264
3227
|
}
|
|
3265
3228
|
}, {
|
|
3266
|
-
key: '
|
|
3267
|
-
value: function
|
|
3229
|
+
key: 'addCustomEntity',
|
|
3230
|
+
value: function addCustomEntity() {
|
|
3268
3231
|
var _props3 = this.props,
|
|
3269
3232
|
step = _props3.step,
|
|
3270
|
-
actions = _props3.actions,
|
|
3271
3233
|
change = _props3.change,
|
|
3272
3234
|
formValues = _props3.formValues;
|
|
3273
3235
|
|
|
3274
3236
|
var includedFields = formValues[step.mode + 'Schema'] || {};
|
|
3275
|
-
|
|
3276
|
-
this.
|
|
3277
|
-
var obj = Object.assign({}, includedFields);
|
|
3278
|
-
var entityObj = Object.assign({}, obj[this.state.selectedDataEntity]);
|
|
3279
|
-
entityObj[this.state.newField] = true;
|
|
3280
|
-
obj[this.state.selectedDataEntity] = entityObj;
|
|
3237
|
+
var obj = Object.assign({}, includedFields) || {};
|
|
3238
|
+
obj[this.state.newEntity] = {};
|
|
3281
3239
|
change(step.mode + 'Schema', obj);
|
|
3240
|
+
this.setState({ selectedDataEntity: this.state.newEntity, newEntity: '' });
|
|
3282
3241
|
}
|
|
3283
3242
|
}, {
|
|
3284
|
-
key: '
|
|
3285
|
-
value: function
|
|
3286
|
-
if (e.charCode === 13) {
|
|
3287
|
-
e.preventDefault();
|
|
3288
|
-
this.addCustomField();
|
|
3289
|
-
}
|
|
3290
|
-
}
|
|
3291
|
-
}, {
|
|
3292
|
-
key: 'addCustomEntity',
|
|
3293
|
-
value: function addCustomEntity() {
|
|
3243
|
+
key: 'addDefaultDataEntity',
|
|
3244
|
+
value: function addDefaultDataEntity(v) {
|
|
3294
3245
|
var _props4 = this.props,
|
|
3295
3246
|
step = _props4.step,
|
|
3296
|
-
actions = _props4.actions,
|
|
3297
3247
|
change = _props4.change,
|
|
3298
3248
|
formValues = _props4.formValues;
|
|
3299
3249
|
|
|
3300
3250
|
var includedFields = formValues[step.mode + 'Schema'] || {};
|
|
3301
|
-
actions.addEntityToWizardData(this.state.newEntity, step.mode);
|
|
3302
3251
|
var obj = Object.assign({}, includedFields) || {};
|
|
3303
|
-
obj[
|
|
3252
|
+
obj[v] = step.defaultSchema[v];
|
|
3304
3253
|
change(step.mode + 'Schema', obj);
|
|
3305
|
-
this.setState({ selectedDataEntity:
|
|
3254
|
+
this.setState({ selectedDataEntity: v, innerSelectedEntity: v });
|
|
3306
3255
|
}
|
|
3307
3256
|
}, {
|
|
3308
3257
|
key: 'newEntityKeyPress',
|
|
@@ -3314,25 +3263,20 @@ module.exports =
|
|
|
3314
3263
|
}
|
|
3315
3264
|
}, {
|
|
3316
3265
|
key: 'selectAll',
|
|
3317
|
-
value: function selectAll(
|
|
3266
|
+
value: function selectAll() {
|
|
3318
3267
|
var _props5 = this.props,
|
|
3319
|
-
wizard = _props5.wizard,
|
|
3320
|
-
change = _props5.change,
|
|
3321
3268
|
step = _props5.step,
|
|
3269
|
+
change = _props5.change,
|
|
3322
3270
|
formValues = _props5.formValues;
|
|
3323
3271
|
|
|
3324
3272
|
var includedFields = formValues[step.mode + 'Schema'] || {};
|
|
3325
|
-
var
|
|
3326
|
-
|
|
3327
|
-
all[key] = true;
|
|
3328
|
-
});
|
|
3329
|
-
var obj = Object.assign({}, includedFields);
|
|
3330
|
-
obj[this.state.selectedDataEntity] = all;
|
|
3273
|
+
var obj = Object.assign({}, includedFields) || {};
|
|
3274
|
+
obj[this.state.selectedDataEntity] = step.defaultSchema[this.state.selectedDataEntity];
|
|
3331
3275
|
change(step.mode + 'Schema', obj);
|
|
3332
3276
|
}
|
|
3333
3277
|
}, {
|
|
3334
3278
|
key: 'deselectAll',
|
|
3335
|
-
value: function deselectAll(
|
|
3279
|
+
value: function deselectAll() {
|
|
3336
3280
|
var _props6 = this.props,
|
|
3337
3281
|
change = _props6.change,
|
|
3338
3282
|
step = _props6.step,
|
|
@@ -3352,10 +3296,10 @@ module.exports =
|
|
|
3352
3296
|
inputs = _props7.inputs,
|
|
3353
3297
|
handleSubmit = _props7.handleSubmit,
|
|
3354
3298
|
nav = _props7.nav,
|
|
3355
|
-
wizard = _props7.wizard,
|
|
3356
3299
|
formValues = _props7.formValues,
|
|
3357
3300
|
step = _props7.step,
|
|
3358
|
-
reset = _props7.reset
|
|
3301
|
+
reset = _props7.reset,
|
|
3302
|
+
change = _props7.change;
|
|
3359
3303
|
|
|
3360
3304
|
var includedFields = formValues[step.mode + 'Schema'] || {};
|
|
3361
3305
|
var Button = inputs.Button;
|
|
@@ -3388,10 +3332,18 @@ module.exports =
|
|
|
3388
3332
|
_react2.default.createElement(
|
|
3389
3333
|
'div',
|
|
3390
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
|
+
),
|
|
3391
3343
|
_react2.default.createElement(
|
|
3392
3344
|
Button,
|
|
3393
3345
|
{ type: 'brand', onClick: this.loadDefault },
|
|
3394
|
-
'Load
|
|
3346
|
+
'Load All Defaults'
|
|
3395
3347
|
),
|
|
3396
3348
|
'\xA0\xA0',
|
|
3397
3349
|
_react2.default.createElement(
|
|
@@ -3421,100 +3373,18 @@ module.exports =
|
|
|
3421
3373
|
'Add'
|
|
3422
3374
|
),
|
|
3423
3375
|
_react2.default.createElement('br', null),
|
|
3424
|
-
_react2.default.createElement('br', null)
|
|
3425
|
-
wizard.data && wizard.data[step.mode] ? _react2.default.createElement(Select, { wizard: wizard, step: step, selectedDataEntity: this.state.selectedDataEntity,
|
|
3426
|
-
onSelect: function onSelect(v) {
|
|
3427
|
-
return _this2.setState({ selectedDataEntity: v });
|
|
3428
|
-
}
|
|
3429
|
-
}) : null
|
|
3376
|
+
_react2.default.createElement('br', null)
|
|
3430
3377
|
),
|
|
3431
|
-
_react2.default.createElement(
|
|
3432
|
-
this.state.selectedDataEntity || wizard.data && wizard.data[step.mode] ? _react2.default.createElement(
|
|
3378
|
+
this.state.selectedDataEntity ? _react2.default.createElement(
|
|
3433
3379
|
'div',
|
|
3434
|
-
{ style: { position: 'relative', width:
|
|
3435
|
-
_react2.default.createElement(
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
'strong',
|
|
3443
|
-
null,
|
|
3444
|
-
this.state.selectedDataEntity
|
|
3445
|
-
) : _react2.default.createElement(
|
|
3446
|
-
'span',
|
|
3447
|
-
null,
|
|
3448
|
-
'Field Types:'
|
|
3449
|
-
)
|
|
3450
|
-
),
|
|
3451
|
-
wizard.data && wizard.data[step.mode] ? _react2.default.createElement(
|
|
3452
|
-
'div',
|
|
3453
|
-
{ style: { float: 'right' } },
|
|
3454
|
-
_react2.default.createElement(
|
|
3455
|
-
Button,
|
|
3456
|
-
{ type: 'brand', style: smallButtonStyle,
|
|
3457
|
-
onClick: function onClick(e) {
|
|
3458
|
-
return _this2.deselectAll(_this2.state.selectedDataEntity);
|
|
3459
|
-
} },
|
|
3460
|
-
'Remove All'
|
|
3461
|
-
),
|
|
3462
|
-
_react2.default.createElement(
|
|
3463
|
-
Button,
|
|
3464
|
-
{ type: 'brand', style: smallButtonStyle,
|
|
3465
|
-
onClick: function onClick(e) {
|
|
3466
|
-
return _this2.selectAll(_this2.state.selectedDataEntity);
|
|
3467
|
-
} },
|
|
3468
|
-
'Select All'
|
|
3469
|
-
)
|
|
3470
|
-
) : null,
|
|
3471
|
-
_react2.default.createElement(
|
|
3472
|
-
'div',
|
|
3473
|
-
{ style: { background: 'white', height: 288, width: 350, overflow: 'scroll', border: '1px solid rgb(204, 205, 207)', padding: '12px 0 12px 20px' } },
|
|
3474
|
-
_react2.default.createElement(
|
|
3475
|
-
'div',
|
|
3476
|
-
{ style: { marginBottom: 7 } },
|
|
3477
|
-
_react2.default.createElement(Input, { className: 'form-control', type: 'text', value: this.state.newField, onChange: function onChange(e) {
|
|
3478
|
-
return !e.target.value.includes('.') ? _this2.setState({ newField: e.target.value }) : {};
|
|
3479
|
-
},
|
|
3480
|
-
style: { width: 250, display: 'inline-block' }, placeholder: 'Add Field', onKeyPress: this.newFieldKeyPress, disabled: !this.state.selectedDataEntity
|
|
3481
|
-
}),
|
|
3482
|
-
_react2.default.createElement(
|
|
3483
|
-
Button,
|
|
3484
|
-
{ type: 'brand', onClick: this.addCustomField, disabled: !this.state.newField,
|
|
3485
|
-
style: { float: 'right', marginRight: 19 } },
|
|
3486
|
-
'Add'
|
|
3487
|
-
)
|
|
3488
|
-
),
|
|
3489
|
-
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) {
|
|
3490
|
-
return _react2.default.createElement(
|
|
3491
|
-
'div',
|
|
3492
|
-
{ key: i },
|
|
3493
|
-
_react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Schema.' + _this2.state.selectedDataEntity + '.' + field,
|
|
3494
|
-
component: inputs.rfCheckbox, type: 'checkbox', label: field })
|
|
3495
|
-
);
|
|
3496
|
-
})
|
|
3497
|
-
)
|
|
3498
|
-
),
|
|
3499
|
-
_react2.default.createElement(
|
|
3500
|
-
'div',
|
|
3501
|
-
{ style: { display: 'inline-block', marginLeft: 40 } },
|
|
3502
|
-
_react2.default.createElement(
|
|
3503
|
-
'h5',
|
|
3504
|
-
null,
|
|
3505
|
-
'Source Schema:'
|
|
3506
|
-
),
|
|
3507
|
-
includedFields ? _react2.default.createElement(_schemaAccordion2.default, { values: includedFields, selectedEntity: this.state.selectedDataEntity,
|
|
3508
|
-
pickEntity: function pickEntity(v) {
|
|
3509
|
-
_this2.setState({ selectedDataEntity: v });
|
|
3510
|
-
}
|
|
3511
|
-
}) : null
|
|
3512
|
-
),
|
|
3513
|
-
_react2.default.createElement(
|
|
3514
|
-
'div',
|
|
3515
|
-
{ style: { position: 'absolute', left: 358, top: 154, fontSize: 28, color: '#BBBBBB' } },
|
|
3516
|
-
'\u25B6'
|
|
3517
|
-
),
|
|
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,
|
|
3518
3388
|
_react2.default.createElement('br', null)
|
|
3519
3389
|
) : null,
|
|
3520
3390
|
_react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
|
|
@@ -3628,6 +3498,7 @@ module.exports =
|
|
|
3628
3498
|
_react2.default.createElement(
|
|
3629
3499
|
'div',
|
|
3630
3500
|
{ className: 'accordion-panel-header',
|
|
3501
|
+
style: { height: 35 },
|
|
3631
3502
|
onClick: function onClick() {
|
|
3632
3503
|
_this2.setState({ innerSelectedEntity: selectedEntity === entity && _this2.state.innerSelectedEntity === entity ? '' : entity });
|
|
3633
3504
|
_this2.scrollToTop(_this2.main, 18, i * 45 + 6);
|
|
@@ -3692,6 +3563,12 @@ module.exports =
|
|
|
3692
3563
|
|
|
3693
3564
|
var _react2 = _interopRequireDefault(_react);
|
|
3694
3565
|
|
|
3566
|
+
var _reduxForm = __webpack_require__(2);
|
|
3567
|
+
|
|
3568
|
+
var _reactAddonsCssTransitionGroup = __webpack_require__(27);
|
|
3569
|
+
|
|
3570
|
+
var _reactAddonsCssTransitionGroup2 = _interopRequireDefault(_reactAddonsCssTransitionGroup);
|
|
3571
|
+
|
|
3695
3572
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3696
3573
|
|
|
3697
3574
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -3709,12 +3586,41 @@ module.exports =
|
|
|
3709
3586
|
var _this = _possibleConstructorReturn(this, (SchemaAccordion.__proto__ || Object.getPrototypeOf(SchemaAccordion)).call(this));
|
|
3710
3587
|
|
|
3711
3588
|
_this.state = {
|
|
3712
|
-
|
|
3589
|
+
newField: ''
|
|
3713
3590
|
};
|
|
3591
|
+
_this.addCustomField = _this.addCustomField.bind(_this);
|
|
3592
|
+
_this.newFieldKeyPress = _this.newFieldKeyPress.bind(_this);
|
|
3714
3593
|
return _this;
|
|
3715
3594
|
}
|
|
3716
3595
|
|
|
3717
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
|
+
}, {
|
|
3718
3624
|
key: 'scrollToTop',
|
|
3719
3625
|
value: function scrollToTop(element, scrollDuration, scrollTarget) {
|
|
3720
3626
|
var initial = element.scrollTop,
|
|
@@ -3730,6 +3636,7 @@ module.exports =
|
|
|
3730
3636
|
window.requestAnimationFrame(go);
|
|
3731
3637
|
}
|
|
3732
3638
|
if (step !== 0) {
|
|
3639
|
+
// if already on top
|
|
3733
3640
|
window.requestAnimationFrame(go);
|
|
3734
3641
|
}
|
|
3735
3642
|
}
|
|
@@ -3738,59 +3645,149 @@ module.exports =
|
|
|
3738
3645
|
value: function render() {
|
|
3739
3646
|
var _this2 = this;
|
|
3740
3647
|
|
|
3741
|
-
var
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
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;
|
|
3746
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
|
+
};
|
|
3747
3668
|
return _react2.default.createElement(
|
|
3748
3669
|
'div',
|
|
3749
3670
|
{ ref: function ref(_ref) {
|
|
3750
3671
|
_this2.main = _ref;
|
|
3751
3672
|
}, id: 'main',
|
|
3752
3673
|
style: {
|
|
3753
|
-
background: 'white', height:
|
|
3674
|
+
background: 'white', height: 350, width: 550, overflow: 'scroll',
|
|
3754
3675
|
border: '1px solid rgb(204, 205, 207)', padding: 12
|
|
3755
3676
|
}
|
|
3756
3677
|
},
|
|
3757
3678
|
Object.keys(values).map(function (entity, i) {
|
|
3758
3679
|
return _react2.default.createElement(
|
|
3759
3680
|
'div',
|
|
3760
|
-
{ key: i, className: 'accordion-panel',
|
|
3761
|
-
style: { display: !Object.keys(values[entity]).every(function (field) {
|
|
3762
|
-
return !values[entity][field];
|
|
3763
|
-
}) ? 'block' : 'none' }
|
|
3764
|
-
},
|
|
3681
|
+
{ key: i, className: 'accordion-panel' },
|
|
3765
3682
|
_react2.default.createElement(
|
|
3766
3683
|
'div',
|
|
3767
|
-
{
|
|
3684
|
+
{
|
|
3685
|
+
className: innerSelectedEntity === entity ? "accordion-panel-header accordion-panel-header-selected" : "accordion-panel-header",
|
|
3768
3686
|
onClick: function onClick() {
|
|
3769
|
-
_this2.
|
|
3770
|
-
_this2.scrollToTop(_this2.main, 18, i * 45 + 6);
|
|
3687
|
+
_this2.scrollToTop(_this2.main, 18, i * 58 + 6);
|
|
3771
3688
|
pickEntity(entity);
|
|
3772
3689
|
}
|
|
3773
3690
|
},
|
|
3774
|
-
|
|
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
|
+
)
|
|
3775
3719
|
),
|
|
3776
3720
|
_react2.default.createElement(
|
|
3777
|
-
|
|
3778
|
-
{
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
_react2.default.createElement('div', { style: { height: 9 } }),
|
|
3784
|
-
Object.keys(values[entity]).filter(function (f) {
|
|
3785
|
-
return values[entity][f];
|
|
3786
|
-
}).map(function (field, ii) {
|
|
3787
|
-
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(
|
|
3788
3727
|
'div',
|
|
3789
|
-
{
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
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
|
|
3794
3791
|
)
|
|
3795
3792
|
);
|
|
3796
3793
|
})
|
|
@@ -3971,7 +3968,7 @@ module.exports =
|
|
|
3971
3968
|
if (parseInt(1, 10) === 6) {
|
|
3972
3969
|
actions.submitWizardData(redux.main.tenantInfo.TenantId, appId, schemas.source, schemas.destination, mapping, configuration, config.title, typeGuid);
|
|
3973
3970
|
}
|
|
3974
|
-
onFinish
|
|
3971
|
+
actions.testAjax(onFinish);
|
|
3975
3972
|
}
|
|
3976
3973
|
}, {
|
|
3977
3974
|
key: 'nextPage',
|
|
@@ -4094,7 +4091,7 @@ module.exports =
|
|
|
4094
4091
|
|
|
4095
4092
|
var _react2 = _interopRequireDefault(_react);
|
|
4096
4093
|
|
|
4097
|
-
var _redux = __webpack_require__(
|
|
4094
|
+
var _redux = __webpack_require__(28);
|
|
4098
4095
|
|
|
4099
4096
|
var _reactRedux = __webpack_require__(7);
|
|
4100
4097
|
|
|
@@ -4302,14 +4299,20 @@ module.exports =
|
|
|
4302
4299
|
|
|
4303
4300
|
/***/ },
|
|
4304
4301
|
/* 27 */
|
|
4302
|
+
/***/ function(module, exports) {
|
|
4303
|
+
|
|
4304
|
+
module.exports = require("react-addons-css-transition-group");
|
|
4305
|
+
|
|
4306
|
+
/***/ },
|
|
4307
|
+
/* 28 */
|
|
4305
4308
|
/***/ function(module, exports) {
|
|
4306
4309
|
|
|
4307
4310
|
module.exports = require("redux");
|
|
4308
4311
|
|
|
4309
4312
|
/***/ },
|
|
4310
|
-
/* 28 */,
|
|
4311
4313
|
/* 29 */,
|
|
4312
|
-
/* 30
|
|
4314
|
+
/* 30 */,
|
|
4315
|
+
/* 31 */
|
|
4313
4316
|
/***/ function(module, exports, __webpack_require__) {
|
|
4314
4317
|
|
|
4315
4318
|
'use strict';
|
|
@@ -4333,7 +4336,7 @@ module.exports =
|
|
|
4333
4336
|
exports.default = B;
|
|
4334
4337
|
|
|
4335
4338
|
/***/ },
|
|
4336
|
-
/*
|
|
4339
|
+
/* 32 */
|
|
4337
4340
|
/***/ function(module, exports, __webpack_require__) {
|
|
4338
4341
|
|
|
4339
4342
|
'use strict';
|
|
@@ -4357,7 +4360,7 @@ module.exports =
|
|
|
4357
4360
|
exports.default = I;
|
|
4358
4361
|
|
|
4359
4362
|
/***/ },
|
|
4360
|
-
/*
|
|
4363
|
+
/* 33 */
|
|
4361
4364
|
/***/ function(module, exports, __webpack_require__) {
|
|
4362
4365
|
|
|
4363
4366
|
'use strict';
|
|
@@ -4464,7 +4467,7 @@ module.exports =
|
|
|
4464
4467
|
exports.default = MapTable;
|
|
4465
4468
|
|
|
4466
4469
|
/***/ },
|
|
4467
|
-
/*
|
|
4470
|
+
/* 34 */
|
|
4468
4471
|
/***/ function(module, exports, __webpack_require__) {
|
|
4469
4472
|
|
|
4470
4473
|
'use strict';
|
|
@@ -4541,7 +4544,7 @@ module.exports =
|
|
|
4541
4544
|
exports.default = PreviewTable;
|
|
4542
4545
|
|
|
4543
4546
|
/***/ },
|
|
4544
|
-
/*
|
|
4547
|
+
/* 35 */
|
|
4545
4548
|
/***/ function(module, exports, __webpack_require__) {
|
|
4546
4549
|
|
|
4547
4550
|
'use strict';
|
|
@@ -4559,10 +4562,11 @@ module.exports =
|
|
|
4559
4562
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4560
4563
|
|
|
4561
4564
|
var Select = function Select(props) {
|
|
4562
|
-
var
|
|
4563
|
-
step = props.step,
|
|
4565
|
+
var values = props.values,
|
|
4564
4566
|
selectedDataEntity = props.selectedDataEntity,
|
|
4565
|
-
onSelect = props.onSelect
|
|
4567
|
+
onSelect = props.onSelect,
|
|
4568
|
+
label = props.label,
|
|
4569
|
+
selectedValues = props.selectedValues;
|
|
4566
4570
|
|
|
4567
4571
|
|
|
4568
4572
|
return _react2.default.createElement(
|
|
@@ -4584,15 +4588,15 @@ module.exports =
|
|
|
4584
4588
|
onSelect(e.value);
|
|
4585
4589
|
},
|
|
4586
4590
|
type: 'brand', required: true,
|
|
4587
|
-
label:
|
|
4591
|
+
label: label,
|
|
4588
4592
|
menuStyle: { maxHeight: 297, overflowY: 'scroll' },
|
|
4589
4593
|
style: { width: 245 }
|
|
4590
4594
|
},
|
|
4591
|
-
|
|
4595
|
+
values && Object.keys(values).map(function (key, i) {
|
|
4592
4596
|
return _react2.default.createElement(
|
|
4593
4597
|
_reactLightningDesignSystem.MenuItem,
|
|
4594
4598
|
{ value: key, key: i,
|
|
4595
|
-
icon:
|
|
4599
|
+
icon: selectedValues && Object.keys(selectedValues).includes(key) ? 'check' : 'none' },
|
|
4596
4600
|
key
|
|
4597
4601
|
);
|
|
4598
4602
|
})
|
|
@@ -4604,7 +4608,7 @@ module.exports =
|
|
|
4604
4608
|
exports.default = Select;
|
|
4605
4609
|
|
|
4606
4610
|
/***/ },
|
|
4607
|
-
/*
|
|
4611
|
+
/* 36 */
|
|
4608
4612
|
/***/ function(module, exports, __webpack_require__) {
|
|
4609
4613
|
|
|
4610
4614
|
'use strict';
|
|
@@ -4647,7 +4651,7 @@ module.exports =
|
|
|
4647
4651
|
exports.default = Sidebar;
|
|
4648
4652
|
|
|
4649
4653
|
/***/ },
|
|
4650
|
-
/*
|
|
4654
|
+
/* 37 */
|
|
4651
4655
|
/***/ function(module, exports, __webpack_require__) {
|
|
4652
4656
|
|
|
4653
4657
|
'use strict';
|
|
@@ -4678,7 +4682,7 @@ module.exports =
|
|
|
4678
4682
|
exports.default = Spinner;
|
|
4679
4683
|
|
|
4680
4684
|
/***/ },
|
|
4681
|
-
/*
|
|
4685
|
+
/* 38 */
|
|
4682
4686
|
/***/ function(module, exports, __webpack_require__) {
|
|
4683
4687
|
|
|
4684
4688
|
'use strict';
|
|
@@ -4687,7 +4691,7 @@ module.exports =
|
|
|
4687
4691
|
value: true
|
|
4688
4692
|
});
|
|
4689
4693
|
|
|
4690
|
-
var _Sidebar = __webpack_require__(
|
|
4694
|
+
var _Sidebar = __webpack_require__(36);
|
|
4691
4695
|
|
|
4692
4696
|
Object.defineProperty(exports, 'Sidebar', {
|
|
4693
4697
|
enumerable: true,
|
|
@@ -4696,7 +4700,7 @@ module.exports =
|
|
|
4696
4700
|
}
|
|
4697
4701
|
});
|
|
4698
4702
|
|
|
4699
|
-
var _Button = __webpack_require__(
|
|
4703
|
+
var _Button = __webpack_require__(31);
|
|
4700
4704
|
|
|
4701
4705
|
Object.defineProperty(exports, 'Button', {
|
|
4702
4706
|
enumerable: true,
|
|
@@ -4705,7 +4709,7 @@ module.exports =
|
|
|
4705
4709
|
}
|
|
4706
4710
|
});
|
|
4707
4711
|
|
|
4708
|
-
var _Input = __webpack_require__(
|
|
4712
|
+
var _Input = __webpack_require__(32);
|
|
4709
4713
|
|
|
4710
4714
|
Object.defineProperty(exports, 'Input', {
|
|
4711
4715
|
enumerable: true,
|
|
@@ -4714,7 +4718,7 @@ module.exports =
|
|
|
4714
4718
|
}
|
|
4715
4719
|
});
|
|
4716
4720
|
|
|
4717
|
-
var _Spinner = __webpack_require__(
|
|
4721
|
+
var _Spinner = __webpack_require__(37);
|
|
4718
4722
|
|
|
4719
4723
|
Object.defineProperty(exports, 'Spinner', {
|
|
4720
4724
|
enumerable: true,
|
|
@@ -4723,7 +4727,7 @@ module.exports =
|
|
|
4723
4727
|
}
|
|
4724
4728
|
});
|
|
4725
4729
|
|
|
4726
|
-
var _Select = __webpack_require__(
|
|
4730
|
+
var _Select = __webpack_require__(35);
|
|
4727
4731
|
|
|
4728
4732
|
Object.defineProperty(exports, 'Select', {
|
|
4729
4733
|
enumerable: true,
|
|
@@ -4732,7 +4736,7 @@ module.exports =
|
|
|
4732
4736
|
}
|
|
4733
4737
|
});
|
|
4734
4738
|
|
|
4735
|
-
var _rfInput = __webpack_require__(
|
|
4739
|
+
var _rfInput = __webpack_require__(40);
|
|
4736
4740
|
|
|
4737
4741
|
Object.defineProperty(exports, 'rfInput', {
|
|
4738
4742
|
enumerable: true,
|
|
@@ -4741,7 +4745,7 @@ module.exports =
|
|
|
4741
4745
|
}
|
|
4742
4746
|
});
|
|
4743
4747
|
|
|
4744
|
-
var _rfRadioGroup = __webpack_require__(
|
|
4748
|
+
var _rfRadioGroup = __webpack_require__(41);
|
|
4745
4749
|
|
|
4746
4750
|
Object.defineProperty(exports, 'rfRadioGroup', {
|
|
4747
4751
|
enumerable: true,
|
|
@@ -4750,7 +4754,7 @@ module.exports =
|
|
|
4750
4754
|
}
|
|
4751
4755
|
});
|
|
4752
4756
|
|
|
4753
|
-
var _rfCheckbox = __webpack_require__(
|
|
4757
|
+
var _rfCheckbox = __webpack_require__(39);
|
|
4754
4758
|
|
|
4755
4759
|
Object.defineProperty(exports, 'rfCheckbox', {
|
|
4756
4760
|
enumerable: true,
|
|
@@ -4759,7 +4763,7 @@ module.exports =
|
|
|
4759
4763
|
}
|
|
4760
4764
|
});
|
|
4761
4765
|
|
|
4762
|
-
var _MapTable = __webpack_require__(
|
|
4766
|
+
var _MapTable = __webpack_require__(33);
|
|
4763
4767
|
|
|
4764
4768
|
Object.defineProperty(exports, 'MapTable', {
|
|
4765
4769
|
enumerable: true,
|
|
@@ -4768,7 +4772,7 @@ module.exports =
|
|
|
4768
4772
|
}
|
|
4769
4773
|
});
|
|
4770
4774
|
|
|
4771
|
-
var _PreviewTable = __webpack_require__(
|
|
4775
|
+
var _PreviewTable = __webpack_require__(34);
|
|
4772
4776
|
|
|
4773
4777
|
Object.defineProperty(exports, 'PreviewTable', {
|
|
4774
4778
|
enumerable: true,
|
|
@@ -4777,7 +4781,7 @@ module.exports =
|
|
|
4777
4781
|
}
|
|
4778
4782
|
});
|
|
4779
4783
|
|
|
4780
|
-
var _theme = __webpack_require__(
|
|
4784
|
+
var _theme = __webpack_require__(53);
|
|
4781
4785
|
|
|
4782
4786
|
Object.defineProperty(exports, 'styles', {
|
|
4783
4787
|
enumerable: true,
|
|
@@ -4798,7 +4802,7 @@ module.exports =
|
|
|
4798
4802
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4799
4803
|
|
|
4800
4804
|
/***/ },
|
|
4801
|
-
/*
|
|
4805
|
+
/* 39 */
|
|
4802
4806
|
/***/ function(module, exports, __webpack_require__) {
|
|
4803
4807
|
|
|
4804
4808
|
'use strict';
|
|
@@ -4827,16 +4831,28 @@ module.exports =
|
|
|
4827
4831
|
return _react2.default.createElement(
|
|
4828
4832
|
'div',
|
|
4829
4833
|
null,
|
|
4830
|
-
_react2.default.createElement(
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
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
|
+
),
|
|
4840
4856
|
touched && error && _react2.default.createElement(
|
|
4841
4857
|
'span',
|
|
4842
4858
|
null,
|
|
@@ -4848,7 +4864,7 @@ module.exports =
|
|
|
4848
4864
|
exports.default = rfCheckbox;
|
|
4849
4865
|
|
|
4850
4866
|
/***/ },
|
|
4851
|
-
/*
|
|
4867
|
+
/* 40 */
|
|
4852
4868
|
/***/ function(module, exports, __webpack_require__) {
|
|
4853
4869
|
|
|
4854
4870
|
'use strict';
|
|
@@ -4897,7 +4913,7 @@ module.exports =
|
|
|
4897
4913
|
exports.default = rfInput;
|
|
4898
4914
|
|
|
4899
4915
|
/***/ },
|
|
4900
|
-
/*
|
|
4916
|
+
/* 41 */
|
|
4901
4917
|
/***/ function(module, exports, __webpack_require__) {
|
|
4902
4918
|
|
|
4903
4919
|
'use strict';
|
|
@@ -4933,7 +4949,6 @@ module.exports =
|
|
|
4933
4949
|
exports.default = rfRadioGroup;
|
|
4934
4950
|
|
|
4935
4951
|
/***/ },
|
|
4936
|
-
/* 41 */,
|
|
4937
4952
|
/* 42 */,
|
|
4938
4953
|
/* 43 */,
|
|
4939
4954
|
/* 44 */,
|
|
@@ -4944,7 +4959,8 @@ module.exports =
|
|
|
4944
4959
|
/* 49 */,
|
|
4945
4960
|
/* 50 */,
|
|
4946
4961
|
/* 51 */,
|
|
4947
|
-
/* 52
|
|
4962
|
+
/* 52 */,
|
|
4963
|
+
/* 53 */
|
|
4948
4964
|
25
|
|
4949
4965
|
/******/ ])));
|
|
4950
4966
|
//# sourceMappingURL=lightning.js.map
|