@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/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__(48);
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,7 +229,7 @@ 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
234
  var _getState = getState(),
238
235
  config = _getState.config;
@@ -242,7 +239,7 @@ module.exports =
242
239
  return api.get('http://echo.jsontest.com/name/evan', {
243
240
  endpoint: CUSTOM
244
241
  }).then(function (data) {
245
- console.log(data);
242
+ onFinish(data);
246
243
  });
247
244
  };
248
245
  }
@@ -289,58 +286,10 @@ module.exports =
289
286
  };
290
287
  }
291
288
 
292
- function changeWizardData(data, mode) {
293
- return function (dispatch, getState) {
294
- var _getState2 = getState(),
295
- wizard = _getState2.wizard;
296
-
297
- var wizData = Object.assign({}, wizard.data) || {};
298
- wizData[mode] = data;
299
- dispatch({
300
- type: types.SET_WIZARD_DATA,
301
- data: wizData
302
- });
303
- };
304
- }
305
-
306
- function addEntityToWizardData(entity, mode) {
307
- return function (dispatch, getState) {
308
- var _getState3 = getState(),
309
- wizard = _getState3.wizard;
310
-
311
- var wizData = Object.assign({}, wizard.data) || {};
312
- var obj = Object.assign({}, wizData[mode]) || {};
313
- obj[entity] = {};
314
- wizData[mode] = obj;
315
- dispatch({
316
- type: types.SET_WIZARD_DATA,
317
- data: wizData
318
- });
319
- };
320
- }
321
-
322
- function addFieldToWizardData(field, entity, mode) {
323
- return function (dispatch, getState) {
324
- var _getState4 = getState(),
325
- wizard = _getState4.wizard;
326
-
327
- var wizData = Object.assign({}, wizard.data) || {};
328
- var obj = Object.assign({}, wizData[mode]) || {};
329
- var entityObj = Object.assign({}, obj[entity]) || {};
330
- entityObj[field] = true;
331
- obj[entity] = entityObj;
332
- wizData[mode] = obj;
333
- dispatch({
334
- type: types.SET_WIZARD_DATA,
335
- data: wizData
336
- });
337
- };
338
- }
339
-
340
289
  function callGetSchemasForProvider(tenantId, appId, providerType) {
341
290
  return function (dispatch, getState, api) {
342
- var _getState5 = getState(),
343
- config = _getState5.config;
291
+ var _getState2 = getState(),
292
+ config = _getState2.config;
344
293
 
345
294
  var TRANS_API_URL = config.TRANS_API_URL;
346
295
 
@@ -366,8 +315,8 @@ module.exports =
366
315
 
367
316
  function callPostSchema(tenantId, appId, data) {
368
317
  return function (dispatch, getState, api) {
369
- var _getState6 = getState(),
370
- config = _getState6.config;
318
+ var _getState3 = getState(),
319
+ config = _getState3.config;
371
320
 
372
321
  var TRANS_API_URL = config.TRANS_API_URL;
373
322
 
@@ -382,8 +331,8 @@ module.exports =
382
331
 
383
332
  function callPostMapping(tenantId, appId, schemaFromGuid, schemaToGuid, mappings) {
384
333
  return function (dispatch, getState, api) {
385
- var _getState7 = getState(),
386
- config = _getState7.config;
334
+ var _getState4 = getState(),
335
+ config = _getState4.config;
387
336
 
388
337
  var TRANS_API_URL = config.TRANS_API_URL;
389
338
 
@@ -401,16 +350,16 @@ module.exports =
401
350
  };
402
351
  }
403
352
 
404
- function callPostProductizedIntegration(tenantId, appId, schemaMappingGuid, configuration, title) {
353
+ function callPostProductizedIntegration(tenantId, appId, schemaMappingGuid, configuration, title, typeGuid) {
405
354
  return function (dispatch, getState, api) {
406
- var _getState8 = getState(),
407
- config = _getState8.config;
355
+ var _getState5 = getState(),
356
+ config = _getState5.config;
408
357
 
409
358
  var TRANS_API_URL = config.TRANS_API_URL;
410
359
 
411
360
  var data = {
412
361
  schemaMappingGuid: schemaMappingGuid,
413
- integrationTypeGuid: '9090b61412a74d97ad9ed02c5fc7e704',
362
+ integrationTypeGuid: typeGuid,
414
363
  name: title,
415
364
  configuration: configuration
416
365
  };
@@ -425,8 +374,8 @@ module.exports =
425
374
 
426
375
  function callGenerateIntegration(tenantId, appId, piGuid) {
427
376
  return function (dispatch, getState, api) {
428
- var _getState9 = getState(),
429
- config = _getState9.config;
377
+ var _getState6 = getState(),
378
+ config = _getState6.config;
430
379
 
431
380
  var TRANS_API_URL = config.TRANS_API_URL;
432
381
 
@@ -441,8 +390,8 @@ module.exports =
441
390
 
442
391
  function callGetTransformersAfterGeneration(appId) {
443
392
  return function (dispatch, getState, api) {
444
- var _getState10 = getState(),
445
- config = _getState10.config;
393
+ var _getState7 = getState(),
394
+ config = _getState7.config;
446
395
 
447
396
  var TRANS_API_URL = config.TRANS_API_URL;
448
397
 
@@ -457,11 +406,11 @@ module.exports =
457
406
  };
458
407
  }
459
408
 
460
- function submitWizardData(tenantId, appId, sourceSchema, destinationSchema, mapping, configuration, title) {
409
+ function submitWizardData(tenantId, appId, sourceSchema, destinationSchema, mapping, configuration, title, typeGuid) {
461
410
  return function (dispatch) {
462
411
  return Promise.all([dispatch(callPostSchema(tenantId, appId, sourceSchema)), dispatch(callPostSchema(tenantId, appId, destinationSchema))]).then(function (guids) {
463
412
  return dispatch(callPostMapping(tenantId, appId, guids[0], guids[1], mapping)).then(function (res) {
464
- dispatch(callPostProductizedIntegration(tenantId, appId, res.schemaMappingGuid, configuration, title)).then(function (pi) {
413
+ dispatch(callPostProductizedIntegration(tenantId, appId, res.schemaMappingGuid, configuration, title, typeGuid)).then(function (pi) {
465
414
  dispatch(callGenerateIntegration(tenantId, appId, pi.productizedIntegrationGuid));
466
415
  });
467
416
  });
@@ -471,8 +420,8 @@ module.exports =
471
420
 
472
421
  function callGetWizardDataEntities(hubId) {
473
422
  return function (dispatch, getState, api) {
474
- var _getState11 = getState(),
475
- config = _getState11.config;
423
+ var _getState8 = getState(),
424
+ config = _getState8.config;
476
425
 
477
426
  var API_URL = config.API_URL;
478
427
 
@@ -489,8 +438,8 @@ module.exports =
489
438
 
490
439
  function callGetWizardResourceMeta(resourceId) {
491
440
  return function (dispatch, getState, api) {
492
- var _getState12 = getState(),
493
- config = _getState12.config;
441
+ var _getState9 = getState(),
442
+ config = _getState9.config;
494
443
 
495
444
  var API_URL = config.API_URL;
496
445
 
@@ -1934,7 +1883,8 @@ module.exports =
1934
1883
  inputs = _props.inputs,
1935
1884
  handleSubmit = _props.handleSubmit,
1936
1885
  nav = _props.nav,
1937
- reset = _props.reset;
1886
+ reset = _props.reset,
1887
+ step = _props.step;
1938
1888
 
1939
1889
  var Button = inputs.Button;
1940
1890
  return _react2.default.createElement(
@@ -1945,7 +1895,8 @@ module.exports =
1945
1895
  _react2.default.createElement(
1946
1896
  'div',
1947
1897
  { style: { fontSize: 20 } },
1948
- 'Data Source: Configure Banner Adapter'
1898
+ 'Data Source: Configure ',
1899
+ '' + step.title
1949
1900
  ),
1950
1901
  _react2.default.createElement('br', null),
1951
1902
  _react2.default.createElement(
@@ -1954,7 +1905,9 @@ module.exports =
1954
1905
  _react2.default.createElement(
1955
1906
  'h5',
1956
1907
  null,
1957
- 'This integration requires Banner Adapter configuration before continuing.'
1908
+ 'This integration requires ',
1909
+ '' + step.title,
1910
+ ' configuration before continuing.'
1958
1911
  ),
1959
1912
  _react2.default.createElement(
1960
1913
  'ul',
@@ -1968,7 +1921,8 @@ module.exports =
1968
1921
  _react2.default.createElement(
1969
1922
  'a',
1970
1923
  { href: '' },
1971
- 'Download the Banner Adapter'
1924
+ 'Download the ',
1925
+ '' + step.title
1972
1926
  )
1973
1927
  )
1974
1928
  ),
@@ -1981,7 +1935,9 @@ module.exports =
1981
1935
  _react2.default.createElement(
1982
1936
  'a',
1983
1937
  { href: '' },
1984
- 'Read the Banner Adapter Documentation'
1938
+ 'Read the ',
1939
+ '' + step.title,
1940
+ ' Documentation'
1985
1941
  )
1986
1942
  )
1987
1943
  )
@@ -1990,7 +1946,9 @@ module.exports =
1990
1946
  _react2.default.createElement(
1991
1947
  'strong',
1992
1948
  { htmlFor: 'link-banner', style: { marginBottom: 14 } },
1993
- 'Lingk Banner Adapter Credentials:'
1949
+ 'Lingk ',
1950
+ '' + step.title,
1951
+ ' Credentials:'
1994
1952
  ),
1995
1953
  _react2.default.createElement('br', null),
1996
1954
  _react2.default.createElement('br', null),
@@ -3136,7 +3094,7 @@ module.exports =
3136
3094
  _react2.default.createElement('br', null),
3137
3095
  _react2.default.createElement(
3138
3096
  Button,
3139
- { type: 'brand', className: 'btn btn-primary', onClick: this.preview },
3097
+ { type: 'brand', onClick: this.preview },
3140
3098
  'Preview Integration'
3141
3099
  ),
3142
3100
  this.state.previewing ? _react2.default.createElement(
@@ -3221,26 +3179,35 @@ module.exports =
3221
3179
  _this.state = {
3222
3180
  newField: '',
3223
3181
  newEntity: '',
3224
- selectedDataEntity: ''
3182
+ selectedDataEntity: '',
3183
+ innerSelectedEntity: ''
3225
3184
  };
3226
- _this.addCustomField = _this.addCustomField.bind(_this);
3227
- _this.newFieldKeyPress = _this.newFieldKeyPress.bind(_this);
3185
+ _this.pickEntity = _this.pickEntity.bind(_this);
3228
3186
  _this.addCustomEntity = _this.addCustomEntity.bind(_this);
3229
3187
  _this.newEntityKeyPress = _this.newEntityKeyPress.bind(_this);
3230
3188
  _this.loadDefault = _this.loadDefault.bind(_this);
3231
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);
3232
3193
  return _this;
3233
3194
  }
3234
3195
 
3235
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
+ }, {
3236
3205
  key: 'loadDefault',
3237
3206
  value: function loadDefault() {
3238
3207
  var _props = this.props,
3239
3208
  step = _props.step,
3240
- actions = _props.actions,
3241
3209
  change = _props.change;
3242
3210
 
3243
- actions.changeWizardData(step.defaultSchema, step.mode);
3244
3211
  change(step.mode + 'Schema', step.defaultSchema);
3245
3212
  }
3246
3213
  }, {
@@ -3248,54 +3215,38 @@ module.exports =
3248
3215
  value: function clearAllData() {
3249
3216
  var _props2 = this.props,
3250
3217
  step = _props2.step,
3251
- actions = _props2.actions,
3252
3218
  change = _props2.change;
3253
3219
 
3254
3220
  this.setState({ selectedDataEntity: '' });
3255
- actions.changeWizardData(null, step.mode);
3256
3221
  change(step.mode + 'Schema', {});
3257
3222
  }
3258
3223
  }, {
3259
- key: 'addCustomField',
3260
- value: function addCustomField() {
3224
+ key: 'addCustomEntity',
3225
+ value: function addCustomEntity() {
3261
3226
  var _props3 = this.props,
3262
3227
  step = _props3.step,
3263
- actions = _props3.actions,
3264
3228
  change = _props3.change,
3265
3229
  formValues = _props3.formValues;
3266
3230
 
3267
3231
  var includedFields = formValues[step.mode + 'Schema'] || {};
3268
- actions.addFieldToWizardData(this.state.newField, this.state.selectedDataEntity, step.mode);
3269
- this.setState({ newField: '' });
3270
- var obj = Object.assign({}, includedFields);
3271
- var entityObj = Object.assign({}, obj[this.state.selectedDataEntity]);
3272
- entityObj[this.state.newField] = true;
3273
- obj[this.state.selectedDataEntity] = entityObj;
3232
+ var obj = Object.assign({}, includedFields) || {};
3233
+ obj[this.state.newEntity] = {};
3274
3234
  change(step.mode + 'Schema', obj);
3235
+ this.setState({ selectedDataEntity: this.state.newEntity, newEntity: '' });
3275
3236
  }
3276
3237
  }, {
3277
- key: 'newFieldKeyPress',
3278
- value: function newFieldKeyPress(e) {
3279
- if (e.charCode === 13) {
3280
- e.preventDefault();
3281
- this.addCustomField();
3282
- }
3283
- }
3284
- }, {
3285
- key: 'addCustomEntity',
3286
- value: function addCustomEntity() {
3238
+ key: 'addDefaultDataEntity',
3239
+ value: function addDefaultDataEntity(v) {
3287
3240
  var _props4 = this.props,
3288
3241
  step = _props4.step,
3289
- actions = _props4.actions,
3290
3242
  change = _props4.change,
3291
3243
  formValues = _props4.formValues;
3292
3244
 
3293
3245
  var includedFields = formValues[step.mode + 'Schema'] || {};
3294
- actions.addEntityToWizardData(this.state.newEntity, step.mode);
3295
3246
  var obj = Object.assign({}, includedFields) || {};
3296
- obj[this.state.newEntity] = {};
3247
+ obj[v] = step.defaultSchema[v];
3297
3248
  change(step.mode + 'Schema', obj);
3298
- this.setState({ selectedDataEntity: this.state.newEntity, newEntity: '' });
3249
+ this.setState({ selectedDataEntity: v, innerSelectedEntity: v });
3299
3250
  }
3300
3251
  }, {
3301
3252
  key: 'newEntityKeyPress',
@@ -3307,25 +3258,20 @@ module.exports =
3307
3258
  }
3308
3259
  }, {
3309
3260
  key: 'selectAll',
3310
- value: function selectAll(dataEntity) {
3261
+ value: function selectAll() {
3311
3262
  var _props5 = this.props,
3312
- wizard = _props5.wizard,
3313
- change = _props5.change,
3314
3263
  step = _props5.step,
3264
+ change = _props5.change,
3315
3265
  formValues = _props5.formValues;
3316
3266
 
3317
3267
  var includedFields = formValues[step.mode + 'Schema'] || {};
3318
- var all = {};
3319
- Object.keys(wizard.data[step.mode][this.state.selectedDataEntity]).forEach(function (key) {
3320
- all[key] = true;
3321
- });
3322
- var obj = Object.assign({}, includedFields);
3323
- obj[this.state.selectedDataEntity] = all;
3268
+ var obj = Object.assign({}, includedFields) || {};
3269
+ obj[this.state.selectedDataEntity] = step.defaultSchema[this.state.selectedDataEntity];
3324
3270
  change(step.mode + 'Schema', obj);
3325
3271
  }
3326
3272
  }, {
3327
3273
  key: 'deselectAll',
3328
- value: function deselectAll(dataEntity) {
3274
+ value: function deselectAll() {
3329
3275
  var _props6 = this.props,
3330
3276
  change = _props6.change,
3331
3277
  step = _props6.step,
@@ -3345,10 +3291,10 @@ module.exports =
3345
3291
  inputs = _props7.inputs,
3346
3292
  handleSubmit = _props7.handleSubmit,
3347
3293
  nav = _props7.nav,
3348
- wizard = _props7.wizard,
3349
3294
  formValues = _props7.formValues,
3350
3295
  step = _props7.step,
3351
- reset = _props7.reset;
3296
+ reset = _props7.reset,
3297
+ change = _props7.change;
3352
3298
 
3353
3299
  var includedFields = formValues[step.mode + 'Schema'] || {};
3354
3300
  var Button = inputs.Button;
@@ -3381,10 +3327,18 @@ module.exports =
3381
3327
  _react2.default.createElement(
3382
3328
  'div',
3383
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
+ ),
3384
3338
  _react2.default.createElement(
3385
3339
  Button,
3386
3340
  { type: 'brand', onClick: this.loadDefault },
3387
- 'Load Default'
3341
+ 'Load All Defaults'
3388
3342
  ),
3389
3343
  '\xA0\xA0',
3390
3344
  _react2.default.createElement(
@@ -3414,100 +3368,18 @@ module.exports =
3414
3368
  'Add'
3415
3369
  ),
3416
3370
  _react2.default.createElement('br', null),
3417
- _react2.default.createElement('br', null),
3418
- wizard.data && wizard.data[step.mode] ? _react2.default.createElement(Select, { wizard: wizard, step: step, selectedDataEntity: this.state.selectedDataEntity,
3419
- onSelect: function onSelect(v) {
3420
- return _this2.setState({ selectedDataEntity: v });
3421
- }
3422
- }) : null
3371
+ _react2.default.createElement('br', null)
3423
3372
  ),
3424
- _react2.default.createElement('br', null),
3425
- this.state.selectedDataEntity || wizard.data && wizard.data[step.mode] ? _react2.default.createElement(
3373
+ this.state.selectedDataEntity ? _react2.default.createElement(
3426
3374
  'div',
3427
- { style: { position: 'relative', width: 740 } },
3428
- _react2.default.createElement(
3429
- 'div',
3430
- { style: { display: 'inline-block' } },
3431
- _react2.default.createElement(
3432
- 'span',
3433
- { style: { display: 'inline-block', maxWidth: 205, whiteSpace: 'nowrap' } },
3434
- this.state.selectedDataEntity ? _react2.default.createElement(
3435
- 'strong',
3436
- null,
3437
- this.state.selectedDataEntity
3438
- ) : _react2.default.createElement(
3439
- 'span',
3440
- null,
3441
- 'Field Types:'
3442
- )
3443
- ),
3444
- wizard.data && wizard.data[step.mode] ? _react2.default.createElement(
3445
- 'div',
3446
- { style: { float: 'right' } },
3447
- _react2.default.createElement(
3448
- Button,
3449
- { type: 'brand', style: smallButtonStyle,
3450
- onClick: function onClick(e) {
3451
- return _this2.deselectAll(_this2.state.selectedDataEntity);
3452
- } },
3453
- 'Remove All'
3454
- ),
3455
- _react2.default.createElement(
3456
- Button,
3457
- { type: 'brand', style: smallButtonStyle,
3458
- onClick: function onClick(e) {
3459
- return _this2.selectAll(_this2.state.selectedDataEntity);
3460
- } },
3461
- 'Select All'
3462
- )
3463
- ) : null,
3464
- _react2.default.createElement(
3465
- 'div',
3466
- { style: { background: 'white', height: 288, width: 350, overflow: 'scroll', border: '1px solid rgb(204, 205, 207)', padding: '12px 0 12px 20px' } },
3467
- _react2.default.createElement(
3468
- 'div',
3469
- { style: { marginBottom: 7 } },
3470
- _react2.default.createElement(Input, { className: 'form-control', type: 'text', value: this.state.newField, onChange: function onChange(e) {
3471
- return !e.target.value.includes('.') ? _this2.setState({ newField: e.target.value }) : {};
3472
- },
3473
- style: { width: 250, display: 'inline-block' }, placeholder: 'Add Field', onKeyPress: this.newFieldKeyPress, disabled: !this.state.selectedDataEntity
3474
- }),
3475
- _react2.default.createElement(
3476
- Button,
3477
- { type: 'brand', onClick: this.addCustomField, disabled: !this.state.newField,
3478
- style: { float: 'right', marginRight: 19 } },
3479
- 'Add'
3480
- )
3481
- ),
3482
- 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) {
3483
- return _react2.default.createElement(
3484
- 'div',
3485
- { key: i },
3486
- _react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Schema.' + _this2.state.selectedDataEntity + '.' + field,
3487
- component: inputs.rfCheckbox, type: 'checkbox', label: field })
3488
- );
3489
- })
3490
- )
3491
- ),
3492
- _react2.default.createElement(
3493
- 'div',
3494
- { style: { display: 'inline-block', marginLeft: 40 } },
3495
- _react2.default.createElement(
3496
- 'h5',
3497
- null,
3498
- 'Source Schema:'
3499
- ),
3500
- includedFields ? _react2.default.createElement(_schemaAccordion2.default, { values: includedFields, selectedEntity: this.state.selectedDataEntity,
3501
- pickEntity: function pickEntity(v) {
3502
- _this2.setState({ selectedDataEntity: v });
3503
- }
3504
- }) : null
3505
- ),
3506
- _react2.default.createElement(
3507
- 'div',
3508
- { style: { position: 'absolute', left: 358, top: 154, fontSize: 28, color: '#BBBBBB' } },
3509
- '\u25B6'
3510
- ),
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,
3511
3383
  _react2.default.createElement('br', null)
3512
3384
  ) : null,
3513
3385
  _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
@@ -3621,6 +3493,7 @@ module.exports =
3621
3493
  _react2.default.createElement(
3622
3494
  'div',
3623
3495
  { className: 'accordion-panel-header',
3496
+ style: { height: 35 },
3624
3497
  onClick: function onClick() {
3625
3498
  _this2.setState({ innerSelectedEntity: selectedEntity === entity && _this2.state.innerSelectedEntity === entity ? '' : entity });
3626
3499
  _this2.scrollToTop(_this2.main, 18, i * 45 + 6);
@@ -3685,6 +3558,12 @@ module.exports =
3685
3558
 
3686
3559
  var _react2 = _interopRequireDefault(_react);
3687
3560
 
3561
+ var _reduxForm = __webpack_require__(2);
3562
+
3563
+ var _reactAddonsCssTransitionGroup = __webpack_require__(27);
3564
+
3565
+ var _reactAddonsCssTransitionGroup2 = _interopRequireDefault(_reactAddonsCssTransitionGroup);
3566
+
3688
3567
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
3689
3568
 
3690
3569
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -3702,12 +3581,41 @@ module.exports =
3702
3581
  var _this = _possibleConstructorReturn(this, (SchemaAccordion.__proto__ || Object.getPrototypeOf(SchemaAccordion)).call(this));
3703
3582
 
3704
3583
  _this.state = {
3705
- innerSelectedEntity: ''
3584
+ newField: ''
3706
3585
  };
3586
+ _this.addCustomField = _this.addCustomField.bind(_this);
3587
+ _this.newFieldKeyPress = _this.newFieldKeyPress.bind(_this);
3707
3588
  return _this;
3708
3589
  }
3709
3590
 
3710
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
+ }, {
3711
3619
  key: 'scrollToTop',
3712
3620
  value: function scrollToTop(element, scrollDuration, scrollTarget) {
3713
3621
  var initial = element.scrollTop,
@@ -3723,6 +3631,7 @@ module.exports =
3723
3631
  window.requestAnimationFrame(go);
3724
3632
  }
3725
3633
  if (step !== 0) {
3634
+ // if already on top
3726
3635
  window.requestAnimationFrame(go);
3727
3636
  }
3728
3637
  }
@@ -3731,59 +3640,149 @@ module.exports =
3731
3640
  value: function render() {
3732
3641
  var _this2 = this;
3733
3642
 
3734
- var _props = this.props,
3735
- pickEntity = _props.pickEntity,
3736
- values = _props.values,
3737
- selectedEntity = _props.selectedEntity;
3738
-
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;
3739
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
+ };
3740
3663
  return _react2.default.createElement(
3741
3664
  'div',
3742
3665
  { ref: function ref(_ref) {
3743
3666
  _this2.main = _ref;
3744
3667
  }, id: 'main',
3745
3668
  style: {
3746
- background: 'white', height: 288, width: 350, overflow: 'scroll',
3669
+ background: 'white', height: 350, width: 550, overflow: 'scroll',
3747
3670
  border: '1px solid rgb(204, 205, 207)', padding: 12
3748
3671
  }
3749
3672
  },
3750
3673
  Object.keys(values).map(function (entity, i) {
3751
3674
  return _react2.default.createElement(
3752
3675
  'div',
3753
- { key: i, className: 'accordion-panel',
3754
- style: { display: !Object.keys(values[entity]).every(function (field) {
3755
- return !values[entity][field];
3756
- }) ? 'block' : 'none' }
3757
- },
3676
+ { key: i, className: 'accordion-panel' },
3758
3677
  _react2.default.createElement(
3759
3678
  'div',
3760
- { className: 'accordion-panel-header',
3679
+ {
3680
+ className: innerSelectedEntity === entity ? "accordion-panel-header accordion-panel-header-selected" : "accordion-panel-header",
3761
3681
  onClick: function onClick() {
3762
- _this2.setState({ innerSelectedEntity: selectedEntity === entity && _this2.state.innerSelectedEntity === entity ? '' : entity });
3763
- _this2.scrollToTop(_this2.main, 18, i * 45 + 6);
3682
+ _this2.scrollToTop(_this2.main, 18, i * 58 + 6);
3764
3683
  pickEntity(entity);
3765
3684
  }
3766
3685
  },
3767
- entity
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
+ )
3768
3714
  ),
3769
3715
  _react2.default.createElement(
3770
- 'div',
3771
- { className: 'accordion-panel-collapse',
3772
- style: {
3773
- height: _this2.state.innerSelectedEntity === entity ? Object.keys(values[entity]).length * 19 + 19 : 0
3774
- }
3775
- },
3776
- _react2.default.createElement('div', { style: { height: 9 } }),
3777
- Object.keys(values[entity]).filter(function (f) {
3778
- return values[entity][f];
3779
- }).map(function (field, ii) {
3780
- 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(
3781
3722
  'div',
3782
- { key: ii },
3783
- field
3784
- );
3785
- }),
3786
- _react2.default.createElement('div', { style: { height: 9 } })
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
3787
3786
  )
3788
3787
  );
3789
3788
  })
@@ -3952,11 +3951,19 @@ module.exports =
3952
3951
  //----------------------------------
3953
3952
  // Post
3954
3953
  //----------------------------------
3954
+ var _props = this.props,
3955
+ actions = _props.actions,
3956
+ redux = _props.redux,
3957
+ onFinish = _props.onFinish,
3958
+ typeGuid = _props.typeGuid,
3959
+ accountId = _props.accountId,
3960
+ tenantId = _props.tenantId;
3961
+
3955
3962
  var appId = values.existingAccount; // need to add "new account" here as well
3956
3963
  if (parseInt(1, 10) === 6) {
3957
- this.props.actions.submitWizardData(this.props.redux.main.tenantInfo.TenantId, appId, schemas.source, schemas.destination, mapping, configuration, config.title);
3964
+ actions.submitWizardData(redux.main.tenantInfo.TenantId, appId, schemas.source, schemas.destination, mapping, configuration, config.title, typeGuid);
3958
3965
  }
3959
- this.props.actions.testAjax();
3966
+ actions.testAjax(onFinish);
3960
3967
  }
3961
3968
  }, {
3962
3969
  key: 'nextPage',
@@ -3984,12 +3991,12 @@ module.exports =
3984
3991
  var _this3 = this;
3985
3992
 
3986
3993
  var currentPage = this.state.currentPage;
3987
- var _props = this.props,
3988
- steps = _props.steps,
3989
- actions = _props.actions,
3990
- wizard = _props.wizard,
3991
- formValues = _props.formValues,
3992
- inputs = _props.inputs;
3994
+ var _props2 = this.props,
3995
+ steps = _props2.steps,
3996
+ actions = _props2.actions,
3997
+ wizard = _props2.wizard,
3998
+ formValues = _props2.formValues,
3999
+ inputs = _props2.inputs;
3993
4000
  var Sidebar = inputs.Sidebar;
3994
4001
 
3995
4002
  return _react2.default.createElement(
@@ -4079,7 +4086,7 @@ module.exports =
4079
4086
 
4080
4087
  var _react2 = _interopRequireDefault(_react);
4081
4088
 
4082
- var _redux = __webpack_require__(27);
4089
+ var _redux = __webpack_require__(28);
4083
4090
 
4084
4091
  var _reactRedux = __webpack_require__(7);
4085
4092
 
@@ -4111,13 +4118,13 @@ module.exports =
4111
4118
 
4112
4119
  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; }
4113
4120
 
4114
- var WizardFormLoader = function (_Component) {
4115
- _inherits(WizardFormLoader, _Component);
4121
+ var LingkSync = function (_Component) {
4122
+ _inherits(LingkSync, _Component);
4116
4123
 
4117
- function WizardFormLoader() {
4118
- _classCallCheck(this, WizardFormLoader);
4124
+ function LingkSync() {
4125
+ _classCallCheck(this, LingkSync);
4119
4126
 
4120
- var _this = _possibleConstructorReturn(this, (WizardFormLoader.__proto__ || Object.getPrototypeOf(WizardFormLoader)).call(this));
4127
+ var _this = _possibleConstructorReturn(this, (LingkSync.__proto__ || Object.getPrototypeOf(LingkSync)).call(this));
4121
4128
 
4122
4129
  _this.state = {
4123
4130
  steps: null,
@@ -4171,7 +4178,7 @@ module.exports =
4171
4178
  return _this;
4172
4179
  }
4173
4180
 
4174
- _createClass(WizardFormLoader, [{
4181
+ _createClass(LingkSync, [{
4175
4182
  key: 'componentDidMount',
4176
4183
  value: function componentDidMount() {
4177
4184
  var wizard = example.wizards[1];
@@ -4256,7 +4263,7 @@ module.exports =
4256
4263
  }
4257
4264
  }]);
4258
4265
 
4259
- return WizardFormLoader;
4266
+ return LingkSync;
4260
4267
  }(_react.Component);
4261
4268
 
4262
4269
  function mapStateToProps(state, props) {
@@ -4271,7 +4278,7 @@ module.exports =
4271
4278
  };
4272
4279
  }
4273
4280
 
4274
- exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(WizardFormLoader);
4281
+ exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(LingkSync);
4275
4282
 
4276
4283
  /***/ },
4277
4284
  /* 25 */
@@ -4289,16 +4296,21 @@ module.exports =
4289
4296
  /* 27 */
4290
4297
  /***/ function(module, exports) {
4291
4298
 
4292
- module.exports = require("redux");
4299
+ module.exports = require("react-addons-css-transition-group");
4293
4300
 
4294
4301
  /***/ },
4295
4302
  /* 28 */
4303
+ /***/ function(module, exports) {
4304
+
4305
+ module.exports = require("redux");
4306
+
4307
+ /***/ },
4308
+ /* 29 */
4296
4309
  /***/ function(module, exports) {
4297
4310
 
4298
4311
  module.exports = require("react-bootstrap");
4299
4312
 
4300
4313
  /***/ },
4301
- /* 29 */,
4302
4314
  /* 30 */,
4303
4315
  /* 31 */,
4304
4316
  /* 32 */,
@@ -4310,7 +4322,8 @@ module.exports =
4310
4322
  /* 38 */,
4311
4323
  /* 39 */,
4312
4324
  /* 40 */,
4313
- /* 41 */
4325
+ /* 41 */,
4326
+ /* 42 */
4314
4327
  /***/ function(module, exports, __webpack_require__) {
4315
4328
 
4316
4329
  'use strict';
@@ -4362,7 +4375,7 @@ module.exports =
4362
4375
  exports.default = Button;
4363
4376
 
4364
4377
  /***/ },
4365
- /* 42 */
4378
+ /* 43 */
4366
4379
  /***/ function(module, exports, __webpack_require__) {
4367
4380
 
4368
4381
  "use strict";
@@ -4384,7 +4397,7 @@ module.exports =
4384
4397
  exports.default = Input;
4385
4398
 
4386
4399
  /***/ },
4387
- /* 43 */
4400
+ /* 44 */
4388
4401
  /***/ function(module, exports, __webpack_require__) {
4389
4402
 
4390
4403
  'use strict';
@@ -4397,7 +4410,7 @@ module.exports =
4397
4410
 
4398
4411
  var _react2 = _interopRequireDefault(_react);
4399
4412
 
4400
- var _reactBootstrap = __webpack_require__(28);
4413
+ var _reactBootstrap = __webpack_require__(29);
4401
4414
 
4402
4415
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4403
4416
 
@@ -4491,7 +4504,7 @@ module.exports =
4491
4504
  exports.default = MapTable;
4492
4505
 
4493
4506
  /***/ },
4494
- /* 44 */
4507
+ /* 45 */
4495
4508
  /***/ function(module, exports, __webpack_require__) {
4496
4509
 
4497
4510
  'use strict';
@@ -4504,7 +4517,7 @@ module.exports =
4504
4517
 
4505
4518
  var _react2 = _interopRequireDefault(_react);
4506
4519
 
4507
- var _reactBootstrap = __webpack_require__(28);
4520
+ var _reactBootstrap = __webpack_require__(29);
4508
4521
 
4509
4522
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4510
4523
 
@@ -4568,7 +4581,7 @@ module.exports =
4568
4581
  exports.default = PreviewTable;
4569
4582
 
4570
4583
  /***/ },
4571
- /* 45 */
4584
+ /* 46 */
4572
4585
  /***/ function(module, exports, __webpack_require__) {
4573
4586
 
4574
4587
  'use strict';
@@ -4584,8 +4597,7 @@ module.exports =
4584
4597
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4585
4598
 
4586
4599
  var Select = function Select(props) {
4587
- var wizard = props.wizard,
4588
- step = props.step,
4600
+ var values = props.values,
4589
4601
  selectedDataEntity = props.selectedDataEntity,
4590
4602
  onSelect = props.onSelect;
4591
4603
 
@@ -4604,10 +4616,10 @@ module.exports =
4604
4616
  { value: '', disabled: true },
4605
4617
  'Select Data Entity'
4606
4618
  ),
4607
- wizard.data && wizard.data[step.mode] && Object.keys(wizard.data[step.mode]).map(function (key, index) {
4619
+ values && Object.keys(values).map(function (key, i) {
4608
4620
  return _react2.default.createElement(
4609
4621
  'option',
4610
- { value: key, key: index },
4622
+ { value: key, key: i },
4611
4623
  key
4612
4624
  );
4613
4625
  })
@@ -4618,7 +4630,7 @@ module.exports =
4618
4630
  exports.default = Select;
4619
4631
 
4620
4632
  /***/ },
4621
- /* 46 */
4633
+ /* 47 */
4622
4634
  /***/ function(module, exports, __webpack_require__) {
4623
4635
 
4624
4636
  'use strict';
@@ -4710,7 +4722,7 @@ module.exports =
4710
4722
  exports.default = Sidebar;
4711
4723
 
4712
4724
  /***/ },
4713
- /* 47 */
4725
+ /* 48 */
4714
4726
  /***/ function(module, exports, __webpack_require__) {
4715
4727
 
4716
4728
  'use strict';
@@ -4741,7 +4753,7 @@ module.exports =
4741
4753
  exports.default = Spinner;
4742
4754
 
4743
4755
  /***/ },
4744
- /* 48 */
4756
+ /* 49 */
4745
4757
  /***/ function(module, exports, __webpack_require__) {
4746
4758
 
4747
4759
  'use strict';
@@ -4750,7 +4762,7 @@ module.exports =
4750
4762
  value: true
4751
4763
  });
4752
4764
 
4753
- var _Sidebar = __webpack_require__(46);
4765
+ var _Sidebar = __webpack_require__(47);
4754
4766
 
4755
4767
  Object.defineProperty(exports, 'Sidebar', {
4756
4768
  enumerable: true,
@@ -4759,7 +4771,7 @@ module.exports =
4759
4771
  }
4760
4772
  });
4761
4773
 
4762
- var _Button = __webpack_require__(41);
4774
+ var _Button = __webpack_require__(42);
4763
4775
 
4764
4776
  Object.defineProperty(exports, 'Button', {
4765
4777
  enumerable: true,
@@ -4768,7 +4780,7 @@ module.exports =
4768
4780
  }
4769
4781
  });
4770
4782
 
4771
- var _Input = __webpack_require__(42);
4783
+ var _Input = __webpack_require__(43);
4772
4784
 
4773
4785
  Object.defineProperty(exports, 'Input', {
4774
4786
  enumerable: true,
@@ -4777,7 +4789,7 @@ module.exports =
4777
4789
  }
4778
4790
  });
4779
4791
 
4780
- var _Spinner = __webpack_require__(47);
4792
+ var _Spinner = __webpack_require__(48);
4781
4793
 
4782
4794
  Object.defineProperty(exports, 'Spinner', {
4783
4795
  enumerable: true,
@@ -4786,7 +4798,7 @@ module.exports =
4786
4798
  }
4787
4799
  });
4788
4800
 
4789
- var _Select = __webpack_require__(45);
4801
+ var _Select = __webpack_require__(46);
4790
4802
 
4791
4803
  Object.defineProperty(exports, 'Select', {
4792
4804
  enumerable: true,
@@ -4795,7 +4807,7 @@ module.exports =
4795
4807
  }
4796
4808
  });
4797
4809
 
4798
- var _rfInput = __webpack_require__(50);
4810
+ var _rfInput = __webpack_require__(51);
4799
4811
 
4800
4812
  Object.defineProperty(exports, 'rfInput', {
4801
4813
  enumerable: true,
@@ -4804,7 +4816,7 @@ module.exports =
4804
4816
  }
4805
4817
  });
4806
4818
 
4807
- var _rfRadioGroup = __webpack_require__(51);
4819
+ var _rfRadioGroup = __webpack_require__(52);
4808
4820
 
4809
4821
  Object.defineProperty(exports, 'rfRadioGroup', {
4810
4822
  enumerable: true,
@@ -4813,7 +4825,7 @@ module.exports =
4813
4825
  }
4814
4826
  });
4815
4827
 
4816
- var _rfCheckbox = __webpack_require__(49);
4828
+ var _rfCheckbox = __webpack_require__(50);
4817
4829
 
4818
4830
  Object.defineProperty(exports, 'rfCheckbox', {
4819
4831
  enumerable: true,
@@ -4822,7 +4834,7 @@ module.exports =
4822
4834
  }
4823
4835
  });
4824
4836
 
4825
- var _MapTable = __webpack_require__(43);
4837
+ var _MapTable = __webpack_require__(44);
4826
4838
 
4827
4839
  Object.defineProperty(exports, 'MapTable', {
4828
4840
  enumerable: true,
@@ -4831,7 +4843,7 @@ module.exports =
4831
4843
  }
4832
4844
  });
4833
4845
 
4834
- var _PreviewTable = __webpack_require__(44);
4846
+ var _PreviewTable = __webpack_require__(45);
4835
4847
 
4836
4848
  Object.defineProperty(exports, 'PreviewTable', {
4837
4849
  enumerable: true,
@@ -4840,7 +4852,7 @@ module.exports =
4840
4852
  }
4841
4853
  });
4842
4854
 
4843
- var _theme = __webpack_require__(53);
4855
+ var _theme = __webpack_require__(54);
4844
4856
 
4845
4857
  Object.defineProperty(exports, 'styles', {
4846
4858
  enumerable: true,
@@ -4861,10 +4873,10 @@ module.exports =
4861
4873
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4862
4874
 
4863
4875
  /***/ },
4864
- /* 49 */
4876
+ /* 50 */
4865
4877
  /***/ function(module, exports, __webpack_require__) {
4866
4878
 
4867
- "use strict";
4879
+ 'use strict';
4868
4880
 
4869
4881
  Object.defineProperty(exports, "__esModule", {
4870
4882
  value: true
@@ -4886,24 +4898,26 @@ module.exports =
4886
4898
  error = _ref$meta.error;
4887
4899
 
4888
4900
  return _react2.default.createElement(
4889
- "div",
4901
+ 'div',
4890
4902
  null,
4891
- _react2.default.createElement("input", {
4892
- type: "checkbox",
4903
+ _react2.default.createElement('input', {
4904
+ type: 'checkbox',
4893
4905
  disabled: disabled,
4894
4906
  checked: input.checked,
4895
4907
  onChange: function onChange(e) {
4896
4908
  return input.onChange(e);
4897
4909
  }
4898
4910
  }),
4899
- "\xA0\xA0",
4911
+ '\xA0\xA0',
4900
4912
  _react2.default.createElement(
4901
- "span",
4902
- null,
4913
+ 'span',
4914
+ { style: {
4915
+ color: input.checked ? 'black' : 'grey'
4916
+ } },
4903
4917
  label
4904
4918
  ),
4905
4919
  touched && error && _react2.default.createElement(
4906
- "span",
4920
+ 'span',
4907
4921
  null,
4908
4922
  error
4909
4923
  )
@@ -4913,7 +4927,7 @@ module.exports =
4913
4927
  exports.default = rfCheckbox;
4914
4928
 
4915
4929
  /***/ },
4916
- /* 50 */
4930
+ /* 51 */
4917
4931
  /***/ function(module, exports, __webpack_require__) {
4918
4932
 
4919
4933
  "use strict";
@@ -4965,7 +4979,7 @@ module.exports =
4965
4979
  exports.default = rfInput;
4966
4980
 
4967
4981
  /***/ },
4968
- /* 51 */
4982
+ /* 52 */
4969
4983
  /***/ function(module, exports, __webpack_require__) {
4970
4984
 
4971
4985
  'use strict';
@@ -5008,8 +5022,8 @@ module.exports =
5008
5022
  exports.default = rfRadioGroup;
5009
5023
 
5010
5024
  /***/ },
5011
- /* 52 */,
5012
- /* 53 */
5025
+ /* 53 */,
5026
+ /* 54 */
5013
5027
  25
5014
5028
  /******/ ])));
5015
5029
  //# sourceMappingURL=lingk.js.map