@lingk/sync 0.0.14 → 0.0.16

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.
@@ -41,34 +41,11 @@ module.exports =
41
41
  /******/ return __webpack_require__(0);
42
42
  /******/ })
43
43
  /************************************************************************/
44
- /******/ ((function(modules) {
45
- // Check all modules for deduplicated modules
46
- for(var i in modules) {
47
- if(Object.prototype.hasOwnProperty.call(modules, i)) {
48
- switch(typeof modules[i]) {
49
- case "function": break;
50
- case "object":
51
- // Module can be created from a template
52
- modules[i] = (function(_m) {
53
- var args = _m.slice(1), fn = modules[_m[0]];
54
- return function (a,b,c) {
55
- fn.apply(this, [a,b,c].concat(args));
56
- };
57
- }(modules[i]));
58
- break;
59
- default:
60
- // Module is a copy of another module
61
- modules[i] = modules[modules[i]];
62
- break;
63
- }
64
- }
65
- }
66
- return modules;
67
- }([
44
+ /******/ ([
68
45
  /* 0 */
69
46
  /***/ function(module, exports, __webpack_require__) {
70
47
 
71
- module.exports = __webpack_require__(38);
48
+ module.exports = __webpack_require__(17);
72
49
 
73
50
 
74
51
  /***/ },
@@ -78,4241 +55,20 @@ module.exports =
78
55
  module.exports = require("react");
79
56
 
80
57
  /***/ },
81
- /* 2 */
82
- /***/ function(module, exports) {
83
-
84
- module.exports = require("redux-form");
85
-
86
- /***/ },
87
- /* 3 */
88
- /***/ function(module, exports, __webpack_require__) {
89
-
90
- 'use strict';
91
-
92
- Object.defineProperty(exports, "__esModule", {
93
- value: true
94
- });
95
-
96
- var _react = __webpack_require__(1);
97
-
98
- var _react2 = _interopRequireDefault(_react);
99
-
100
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
101
-
102
- var NavButtons = function NavButtons(props) {
103
- var Button = props.inputs.Button;
104
- return _react2.default.createElement(
105
- 'div',
106
- { style: { marginTop: 12, width: '100%' } },
107
- !props.nav.first ? _react2.default.createElement(
108
- Button,
109
- {
110
- type: 'neutral',
111
- icon: 'back',
112
- iconAlign: 'left',
113
- onClick: props.nav.previousPage
114
- },
115
- 'Back'
116
- ) : null,
117
- !props.nav.last ? _react2.default.createElement(
118
- Button,
119
- {
120
- type: 'brand',
121
- icon: 'forward',
122
- iconAlign: 'right',
123
- onClick: props.nav.nextPage,
124
- style: { float: 'right', marginRight: 14 }
125
- },
126
- 'Next'
127
- ) : null,
128
- _react2.default.createElement(
129
- Button,
130
- {
131
- type: 'brand',
132
- icon: 'close',
133
- iconAlign: 'right',
134
- onClick: function onClick() {
135
- props.handleSubmit();
136
- setTimeout(function () {
137
- return props.reset();
138
- }, 100);
139
- },
140
- style: { float: 'right', marginRight: 14 }
141
- },
142
- props.nav.last ? 'Finish' : 'Save And Exit'
143
- )
144
- );
145
- };
146
-
147
- exports.default = NavButtons;
148
-
149
- /***/ },
150
- /* 4 */
151
- /***/ function(module, exports) {
152
-
153
- "use strict";
154
-
155
- Object.defineProperty(exports, "__esModule", {
156
- value: true
157
- });
158
- var validate = function validate(values) {
159
- var errors = {};
160
- /*if (!values.configured) {
161
- errors.configured = 'Please configure Banner Adapter before continuing'
162
- }
163
- if (!values.customer) {
164
- errors.customer = 'Please choose a customer type'
165
- } else if(!(values.newCustomer || values.existingCustomer)) {
166
- errors.customer = 'Please choose a customer'
167
- }
168
- if (!values.environment) {
169
- errors.environment = 'Please choose an environment type'
170
- } else if(!(values.newEnvironment || values.existingEnvironment)) {
171
- errors.environment = 'Please choose an environment'
172
- }
173
- return errors*/
174
- };
175
-
176
- exports.default = validate;
177
-
178
- /***/ },
179
- /* 5 */
180
- /***/ function(module, exports) {
181
-
182
- module.exports = require("react-lightning-design-system");
183
-
184
- /***/ },
185
- /* 6 */
186
- /***/ function(module, exports) {
187
-
188
- 'use strict';
189
-
190
- Object.defineProperty(exports, "__esModule", {
191
- value: true
192
- });
193
- // Wizard
194
- var SET_WIZARD_DATA_ENTITIES = exports.SET_WIZARD_DATA_ENTITIES = 'SET_WIZARD_DATA_ENTITIES';
195
- var SET_WIZARD_RESOURCE_META = exports.SET_WIZARD_RESOURCE_META = 'SET_WIZARD_RESOURCE_META';
196
- var SET_WIZARD_LOADED = exports.SET_WIZARD_LOADED = 'SET_WIZARD_LOADED';
197
- var SET_WIZARD_DATA = exports.SET_WIZARD_DATA = 'SET_WIZARD_DATA';
198
- var SET_WIZARD_SAVED_SCHEMAS = exports.SET_WIZARD_SAVED_SCHEMAS = 'SET_WIZARD_SAVED_SCHEMAS';
199
-
200
- /***/ },
201
- /* 7 */
202
- /***/ function(module, exports) {
203
-
204
- module.exports = require("react-redux");
205
-
206
- /***/ },
207
- /* 8 */
208
- /***/ function(module, exports, __webpack_require__) {
209
-
210
- 'use strict';
211
-
212
- Object.defineProperty(exports, "__esModule", {
213
- value: true
214
- });
215
- exports.testAjax = testAjax;
216
- exports.callGetWizardSourceData = callGetWizardSourceData;
217
- exports.callPreview = callPreview;
218
- exports.callGetSchemasForProvider = callGetSchemasForProvider;
219
- exports.clearSavedSchemas = clearSavedSchemas;
220
- exports.callPostSchema = callPostSchema;
221
- exports.callPostMapping = callPostMapping;
222
- exports.callPostProductizedIntegration = callPostProductizedIntegration;
223
- exports.callGenerateIntegration = callGenerateIntegration;
224
- exports.callGetTransformersAfterGeneration = callGetTransformersAfterGeneration;
225
- exports.submitWizardData = submitWizardData;
226
- exports.callGetWizardDataEntities = callGetWizardDataEntities;
227
- exports.callGetWizardResourceMeta = callGetWizardResourceMeta;
228
- exports.clearWizardResourceMeta = clearWizardResourceMeta;
229
-
230
- var _types = __webpack_require__(6);
231
-
232
- var types = _interopRequireWildcard(_types);
233
-
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; } }
235
-
236
- var axios = __webpack_require__(26);
237
- function testAjax(onFinish) {
238
- return function (dispatch, getState, api) {
239
- var _getState = getState(),
240
- config = _getState.config;
241
-
242
- var CUSTOM = config.CUSTOM;
243
-
244
- return api.get('http://echo.jsontest.com/name/evan', {
245
- endpoint: CUSTOM
246
- }).then(function (data) {
247
- onFinish(data);
248
- });
249
- };
250
- }
251
-
252
- function callGetWizardSourceData(url) {
253
- return function (dispatch) {
254
- dispatch({
255
- type: types.SET_WIZARD_LOADED,
256
- bool: false
257
- });
258
- return axios(url, {
259
- method: 'get'
260
- }).then(function (data) {
261
- dispatch({
262
- type: types.SET_WIZARD_LOADED,
263
- bool: true
264
- });
265
- }).catch(function (error) {
266
- dispatch({
267
- type: types.SET_WIZARD_LOADED,
268
- bool: true
269
- });
270
- });
271
- };
272
- }
273
-
274
- function callPreview(url) {
275
- return function (dispatch, getState) {
276
- dispatch({
277
- type: types.SET_WIZARD_LOADED,
278
- bool: false
279
- });
280
- return axios(url, {
281
- method: 'post',
282
- headers: {
283
- 'Content-Type': 'application/json'
284
- }
285
- }).then(function (data) {
286
- /* dispatch({
287
- type: types.SET_WIZARD_PREVIEW_DATA,
288
- data: data.data[0].form_data
289
- })*/
290
- });
291
- };
292
- }
293
-
294
- function callGetSchemasForProvider(tenantId, appId, providerType) {
295
- return function (dispatch, getState, api) {
296
- var _getState2 = getState(),
297
- config = _getState2.config;
298
-
299
- var TRANS_API_URL = config.TRANS_API_URL;
300
-
301
- return api.get(tenantId + '/' + appId + '/schemas/' + providerType, {
302
- endpoint: TRANS_API_URL
303
- }).then(function (data) {
304
- dispatch({
305
- type: types.SET_WIZARD_SAVED_SCHEMAS,
306
- data: data
307
- });
308
- });
309
- };
310
- }
311
-
312
- function clearSavedSchemas() {
313
- return function (dispatch) {
314
- dispatch({
315
- type: types.SET_WIZARD_SAVED_SCHEMAS,
316
- data: []
317
- });
318
- };
319
- }
320
-
321
- function callPostSchema(tenantId, appId, data) {
322
- return function (dispatch, getState, api) {
323
- var _getState3 = getState(),
324
- config = _getState3.config;
325
-
326
- var TRANS_API_URL = config.TRANS_API_URL;
327
-
328
- return api.post(tenantId + '/' + appId + '/schemas', {
329
- endpoint: TRANS_API_URL,
330
- data: data
331
- }).then(function (res) {
332
- return res.schemaGuid;
333
- });
334
- };
335
- }
336
-
337
- function callPostMapping(tenantId, appId, schemaFromGuid, schemaToGuid, mappings) {
338
- return function (dispatch, getState, api) {
339
- var _getState4 = getState(),
340
- config = _getState4.config;
341
-
342
- var TRANS_API_URL = config.TRANS_API_URL;
343
-
344
- var data = {
345
- schemaFromGuid: schemaFromGuid,
346
- schemaToGuid: schemaToGuid,
347
- mappings: mappings
348
- };
349
- return api.post(tenantId + '/' + appId + '/schemamappings', {
350
- endpoint: TRANS_API_URL,
351
- data: data
352
- }).then(function (res) {
353
- return res;
354
- });
355
- };
356
- }
357
-
358
- function callPostProductizedIntegration(tenantId, appId, schemaMappingGuid, configuration, title, typeGuid) {
359
- return function (dispatch, getState, api) {
360
- var _getState5 = getState(),
361
- config = _getState5.config;
362
-
363
- var TRANS_API_URL = config.TRANS_API_URL;
364
-
365
- var data = {
366
- schemaMappingGuid: schemaMappingGuid,
367
- integrationTypeGuid: typeGuid,
368
- name: title,
369
- configuration: configuration
370
- };
371
- return api.post(tenantId + '/' + appId + '/productizedintegrations', {
372
- endpoint: TRANS_API_URL,
373
- data: data
374
- }).then(function (pi) {
375
- return pi;
376
- });
377
- };
378
- }
379
-
380
- function callGenerateIntegration(tenantId, appId, piGuid) {
381
- return function (dispatch, getState, api) {
382
- var _getState6 = getState(),
383
- config = _getState6.config;
384
-
385
- var TRANS_API_URL = config.TRANS_API_URL;
386
-
387
- return api.post(tenantId + '/' + appId + '/productizedintegrations/' + piGuid + '/generate', {
388
- endpoint: TRANS_API_URL
389
- }).then(function (res) {
390
- console.log(res);
391
- dispatch(callGetTransformersAfterGeneration(appId));
392
- });
393
- };
394
- }
395
-
396
- function callGetTransformersAfterGeneration(appId) {
397
- return function (dispatch, getState, api) {
398
- var _getState7 = getState(),
399
- config = _getState7.config;
400
-
401
- var TRANS_API_URL = config.TRANS_API_URL;
402
-
403
- return api.get('transformers/' + appId, {
404
- endpoint: TRANS_API_URL
405
- }).then(function (data) {
406
- dispatch({
407
- type: types.SET_TRANSFORMERS,
408
- data: data
409
- });
410
- });
411
- };
412
- }
413
-
414
- function submitWizardData(tenantId, appId, sourceSchema, destinationSchema, mapping, configuration, title, typeGuid) {
415
- return function (dispatch) {
416
- return Promise.all([dispatch(callPostSchema(tenantId, appId, sourceSchema)), dispatch(callPostSchema(tenantId, appId, destinationSchema))]).then(function (guids) {
417
- return dispatch(callPostMapping(tenantId, appId, guids[0], guids[1], mapping)).then(function (res) {
418
- dispatch(callPostProductizedIntegration(tenantId, appId, res.schemaMappingGuid, configuration, title, typeGuid)).then(function (pi) {
419
- dispatch(callGenerateIntegration(tenantId, appId, pi.productizedIntegrationGuid));
420
- });
421
- });
422
- });
423
- };
424
- }
425
-
426
- function callGetWizardDataEntities(hubId) {
427
- return function (dispatch, getState, api) {
428
- var _getState8 = getState(),
429
- config = _getState8.config;
430
-
431
- var API_URL = config.API_URL;
432
-
433
- return api.get('apihubs/' + hubId, {
434
- endpoint: API_URL
435
- }).then(function (data) {
436
- dispatch({
437
- type: types.SET_WIZARD_DATA_ENTITIES,
438
- data: data
439
- });
440
- });
441
- };
442
- }
443
-
444
- function callGetWizardResourceMeta(resourceId) {
445
- return function (dispatch, getState, api) {
446
- var _getState9 = getState(),
447
- config = _getState9.config;
448
-
449
- var API_URL = config.API_URL;
450
-
451
- return api.get('resourcemetas/' + resourceId, {
452
- endpoint: API_URL
453
- }).then(function (data) {
454
- dispatch({
455
- type: types.SET_WIZARD_RESOURCE_META,
456
- data: data
457
- });
458
- });
459
- };
460
- }
461
-
462
- function clearWizardResourceMeta() {
463
- return function (dispatch) {
464
- var data = [];
465
- dispatch({
466
- type: types.SET_WIZARD_RESOURCE_META,
467
- data: data
468
- });
469
- };
470
- }
471
-
472
- /***/ },
473
- /* 9 */
474
- /***/ function(module, exports) {
475
-
476
- 'use strict';
477
-
478
- Object.defineProperty(exports, "__esModule", {
479
- value: true
480
- });
481
- var providerTypes = exports.providerTypes = {
482
- Salesforce: {
483
- credentials: [{ name: 'Username' }, { name: 'Password' }, { name: 'API Key' }]
484
- },
485
- API: {
486
- credentials: [{ name: 'Consumer Key' }, { name: 'Secret' }]
487
- },
488
- FTP: {
489
- credentials: [{ name: 'Username' }, { name: 'Password' }, { name: 'Public Key' }]
490
- },
491
- Banner: {
492
- credentials: null
493
- }
494
- };
495
-
496
- /***/ },
497
- /* 10 */
498
- /***/ function(module, exports) {
499
-
500
- 'use strict';
501
-
502
- Object.defineProperty(exports, "__esModule", {
503
- value: true
504
- });
505
- var wizards = exports.wizards = {
506
- 1: { // Banner to Salesforce
507
- title: 'Banner to Salesforce',
508
- sourceProvider: 'Banner',
509
- sourceProviderType: 'Banner',
510
- destinationProvider: 'Salesforce',
511
- destinationProviderType: 'Salesforce',
512
- customStep: {
513
- type: 'bannerAdapter',
514
- title: 'Banner Adapter'
515
- },
516
- deployment: {
517
- 'once': 'Run Once',
518
- 'scheduled': 'Timed Schedule'
519
- },
520
- sourceDefaultSchema: {
521
- Staff: {
522
- 'Birthdate': true,
523
- 'Last Modified': true,
524
- 'Birthdate Verification': true,
525
- 'Hispanic Latino Ethnicity': true,
526
- 'External Id': true,
527
- 'Prefix': true,
528
- 'First Name': true,
529
- 'Last Name': true,
530
- 'Middle Name': true,
531
- 'Other First Name': true,
532
- 'Other Last Name': true,
533
- 'Other Middle Name': true,
534
- 'Other Name': true,
535
- 'Other Name Type': true,
536
- 'Suffix': true,
537
- 'Gender': true,
538
- 'US Citizenship Status': true,
539
- 'Proof Of Residency Type': true,
540
- 'State Of Residence': true,
541
- 'Visa Type': true,
542
- 'Highest Education Level Completed': true,
543
- 'Identifier': true,
544
- 'Identification System': true,
545
- 'Personal Verification Identification Type': true
546
- },
547
- Student: {
548
- 'Birthdate': true,
549
- 'Birthdate Verification': true,
550
- 'Last Modified': true,
551
- 'Hispanic Latino Ethnicity': true,
552
- 'Disability Status': true,
553
- 'Gender': true,
554
- 'US Citizenship Status': true,
555
- 'Proof Of Residency Type': true,
556
- 'External Id': true,
557
- 'Prefix': true,
558
- 'First Name': true,
559
- 'Last Name': true,
560
- 'Middle Name': true,
561
- 'Other First Name': true,
562
- 'Other Last Name': true,
563
- 'Other Middle Name': true,
564
- 'Other Name': true,
565
- 'Other Name Type': true,
566
- 'Suffix': true,
567
- 'State Of Residence': true,
568
- 'Visa Type': true,
569
- 'Highest Education Level Completed': true,
570
- 'Identifier': true,
571
- 'Identification System': true,
572
- 'Personal Verification Identification Type': true,
573
- 'Accommodations Needed Type': true,
574
- 'Disability ConditionStatus Type': true,
575
- 'Disability Condition Type': true,
576
- 'Disability Determination Source Type': true,
577
- 'Primary Disability Type': true
578
- },
579
- 'Course': {
580
- 'Facility External Id': true,
581
- 'Institution External Id': true,
582
- 'Department External Id': true,
583
- 'Last Modified': true,
584
- 'NCAA Eligibility': true,
585
- 'Instructional Minutes': true,
586
- 'External Id': true,
587
- 'Course Title': true,
588
- 'Course Number': true,
589
- 'Description': true,
590
- 'Classification Of Instructional Program Code': true,
591
- 'Credit Units Type': true,
592
- 'Credit Value': true,
593
- 'NCES College Course Map Code': true,
594
- 'Certification Description': true,
595
- 'Course Applicable Education Level': true,
596
- 'Course Level Characteristics': true,
597
- 'Credit Basis Type': true,
598
- 'Credit Level Type': true,
599
- 'Instruction Langauge': true,
600
- 'Agency Course Identifier': true,
601
- 'Original Course Identifier': true,
602
- 'Override School Course Number': true,
603
- 'Sequence Of Course': true,
604
- 'Subject Abbreviation': true
605
- },
606
- 'Course Section': {
607
- 'Course Credit Value': true,
608
- 'Time Required For Completion': true,
609
- 'Last Modified': true,
610
- 'Virtual Indicator': true,
611
- 'Work Based Learning Opportunity Type': true,
612
- 'Institution External Id': true,
613
- 'Additional Credit Type': true,
614
- 'Advanced Placement Course Code': true,
615
- 'Class Beginning Time': true,
616
- 'Class Ending Time': true,
617
- 'Class Meeting Days': true,
618
- 'Course Level Type': true,
619
- 'Course Section Delivery Mode': true,
620
- 'Credit Type Earned': true,
621
- 'Honors Type': true,
622
- 'Instruction Method': true,
623
- 'Instruction Site Name': true,
624
- 'Instruction Site Type': true,
625
- 'Related Learning Standards': true,
626
- 'Single Sex Class Status': true,
627
- 'Class Period': true,
628
- 'External Id': true,
629
- 'Course Section Number': true,
630
- 'Course External Id': true,
631
- 'Calendar Session External Id': true,
632
- 'Classification Of Instructional Program Code': true,
633
- 'Time Day Identifier': true,
634
- 'Developmental Education Type': true,
635
- 'Grade Point Average Applicability': true
636
- },
637
- 'Program': {
638
- 'Capacity': true,
639
- 'CurrentEnrollment': true,
640
- 'Name': true,
641
- 'Last Modified': true,
642
- 'Length Hours': true,
643
- 'External Id': true,
644
- 'Classification Of Instructional Program Code': true,
645
- 'Classification Of Instructional Program Version': true,
646
- 'Length Hours Type': true,
647
- 'Normal Length of Time for Completion': true,
648
- 'Normal Length of Time for Completion Units': true,
649
- 'Postsecondary Program Level': true
650
- },
651
- 'Student Enrollment': {
652
- 'Entry Date Into Postsecondary': true,
653
- 'Last Modified': true,
654
- 'Postsecondary Entering Student Ind': true,
655
- 'First Time Postsecondary Student': true,
656
- 'Distance Education Program Enrollment Indicator': true,
657
- 'Degree Or Certificate Seeking Student': true,
658
- 'Instructional Activity Hours Attempted': true,
659
- 'Student External Id': true,
660
- 'Enrollment Type': true,
661
- 'Student Level Id': true,
662
- 'Initial Enrollment Term': true,
663
- 'Term Enrollment Status': true,
664
- 'Developmental Education Type': true,
665
- 'Enrollment In Postsecondary Award Type': true,
666
- 'Developmental Education Referral Status': true,
667
- 'Directory Information Block Status': true,
668
- 'Enrollment Award Type': true,
669
- 'Instructional Activity Hours Type': true,
670
- 'Transfer Ready': true
671
- },
672
- 'Student Program': {
673
- 'Last Modified': true,
674
- 'Participation Start Date': true,
675
- 'Participation Exit Date': true,
676
- 'Student External Id': true,
677
- 'Program External Id': true,
678
- 'Program Participation Status': true,
679
- 'Transfer Out Indicator': true,
680
- 'Work Based Learning Opportunity Type': true,
681
- 'Classification Of Instructional Program Use': true
682
- },
683
- 'Institution': {
684
- 'Virtual Indicator': true,
685
- 'External Id': true,
686
- 'Name': true,
687
- 'Carnegie Basic Classification': true,
688
- 'Control Of Institution': true,
689
- 'Level Of Institution': true,
690
- 'Predominant Calendar System': true
691
- },
692
- 'Learner Action': {
693
- 'Performed At': true,
694
- 'Last Modified': true,
695
- 'Learner Action Guid': true,
696
- 'Actor Id': true,
697
- 'Student External Id': true,
698
- 'Object Description': true,
699
- 'Object Id': true,
700
- 'Object Type': true,
701
- 'Action Type': true,
702
- 'Value': true
703
- },
704
- 'Student Email': {
705
- 'Student External Id': true,
706
- 'Email Address': true,
707
- 'Email Address Type': true,
708
- 'Last Modified': true,
709
- 'Is Primary': true
710
- },
711
- 'Student Address': {
712
- 'Student External Id': true,
713
- 'Last Modified': true,
714
- 'Is Primary': true,
715
- 'Street Number And Name': true,
716
- 'Apartment Room Or Suite Number': true,
717
- 'City': true,
718
- 'State': true,
719
- 'Postal Code': true,
720
- 'County': true,
721
- 'Country Code': true,
722
- 'Latitude': true,
723
- 'Longitude': true,
724
- 'Personal Verification Identification Type': true,
725
- 'Address Type': true
726
- },
727
- 'Student Telephone': {
728
- 'Last Modified': true,
729
- 'Is Primary': true,
730
- 'Student External Id': true,
731
- 'Telephone Number Type': true,
732
- 'Telephone Number': true
733
- },
734
- 'Student Section': {
735
- 'Course Add Date': true,
736
- 'Course Drop Date': true,
737
- 'Last Modified': true,
738
- 'Degree Applicability': true,
739
- 'Number Of Credits Earned': true,
740
- 'Quality Points Earned': true,
741
- 'Student External Id': true,
742
- 'Course Section External Id': true,
743
- 'Academic Grade Scale Code': true,
744
- 'Course Repeat Code': true,
745
- 'Academic Grade': true,
746
- 'Academic Grade Status Code': true,
747
- 'Course Override School': true,
748
- 'Enrollment Guid': true,
749
- 'Grade Narrative': true,
750
- 'Narrative Explanation Grade': true
751
- },
752
- 'Staff Email': {
753
- 'Last Modified': true,
754
- 'Is Primary': true,
755
- 'Staff External Id': true,
756
- 'Email Address': true,
757
- 'Email Address Type': true
758
- },
759
- 'Staff Address': {
760
- 'Last Modified': true,
761
- 'Is Primary': true,
762
- 'Staff External Id': true,
763
- 'Street Number And Name': true,
764
- 'Apartment Room Or Suite Number': true,
765
- 'City': true,
766
- 'State': true,
767
- 'Postal Code': true,
768
- 'County': true,
769
- 'Country Code': true,
770
- 'Latitude': true,
771
- 'Longitude': true,
772
- 'Personal Verification Identification Type': true,
773
- 'Address Type': true
774
- },
775
- 'Staff Telephone': {
776
- 'Last Modified': true,
777
- 'Is Primary': true,
778
- 'Staff External Id': true,
779
- 'Telephone Number Type': true,
780
- 'Telephone Number': true
781
- },
782
- 'Calendar Session': {
783
- 'Begin Date': true,
784
- 'End Date': true,
785
- 'First Instruction Date': true,
786
- 'Last Instruction Date': true,
787
- 'Last Modified': true,
788
- 'Marking Term Indicator': true,
789
- 'Instructional Minutes': true,
790
- 'Days In Session': true,
791
- 'Minutes Per Day': true,
792
- 'External Id': true,
793
- 'Designator': true,
794
- 'Description': true,
795
- 'Session Type': true,
796
- 'Scheduling Term Indicator': true,
797
- 'Attendance Term Indicator': true,
798
- 'Session Start Time': true,
799
- 'Session End Time': true
800
- },
801
- 'Student Authentication': {
802
- 'Identity Provider Name': true,
803
- 'Identity Provider Uri': true,
804
- 'Start Date': true,
805
- 'End Date': true,
806
- 'Last Modified': true,
807
- 'Login Identifier': true,
808
- 'External Id': true,
809
- 'Student External Id': true
810
- },
811
- 'Section Instructor': {
812
- 'Last Modified': true,
813
- 'Course Section External Id': true,
814
- 'Staff External Id': true
815
- },
816
- 'Staff Authentication': {
817
- 'Start Date': true,
818
- 'End Date': true,
819
- 'Last Modified': true,
820
- 'External Id': true,
821
- 'Staff External Id': true,
822
- 'Identity Provider Name': true,
823
- 'Identity Provider Uri': true,
824
- 'Login Identifier': true
825
- },
826
- 'Department': {
827
- 'External Id': true,
828
- 'Name': true,
829
- 'Short Name': true,
830
- 'Last Modified': true
831
- },
832
- 'Course Section Schedule': {
833
- 'External Id': true,
834
- 'Course Section External ID': true,
835
- 'Class Beginning Time': true,
836
- 'Class Ending Time': true,
837
- 'Class Meeting Days': true,
838
- 'Instruction Site Name': true,
839
- 'Instruction Site Type': true,
840
- 'Time Day Identifier': true,
841
- 'Last Modified': true,
842
- 'Class Period': true,
843
- 'Instruction Method': true
844
- },
845
- 'Facility': {
846
- 'External Id': true,
847
- 'Identifier': true,
848
- 'Building Name': true,
849
- 'Space Description': true,
850
- 'Space Use Type': true,
851
- 'Binlding Site Number': true,
852
- 'Building Use Type': true,
853
- 'Last Modified': true
854
- }
855
- },
856
- destinationDefaultSchema: {
857
- 'Account': {
858
- 'Account Description': true,
859
- 'Account Fax': true,
860
- 'Account ID': true,
861
- 'Account Name': true,
862
- 'Account Phone': true,
863
- 'Account Source': true,
864
- 'Account Type': true,
865
- 'Annual Revenue': true,
866
- 'Billing Address': true,
867
- 'Billing City': true,
868
- 'Billing Country': true,
869
- 'Billing Geocode Accuracy': true,
870
- 'Billing Latitude': true,
871
- 'Billing Longitude': true,
872
- 'Billing State/Province': true,
873
- 'Billing Street': true,
874
- 'Billing Zip/Postal Code': true,
875
- 'Created By ID': true,
876
- 'Created Date': true,
877
- 'Current Address': true,
878
- 'Customer Portal Account': true,
879
- 'Deleted': true,
880
- 'Employees': true,
881
- 'Industry': true,
882
- 'Jigsaw Company ID': true,
883
- 'Last Activity': true,
884
- 'Last Modified By ID': true,
885
- 'Last Modified Date': true,
886
- 'Last Referenced Date': true,
887
- 'Last Viewed Date': true,
888
- 'Master Record ID': true,
889
- 'Owner ID': true,
890
- 'Parent Account ID': true,
891
- 'Photo URL': true,
892
- 'Record Type ID': true,
893
- 'Shipping Address': true,
894
- 'Shipping City': true,
895
- 'Shipping Country': true,
896
- 'Shipping Geocode Accuracy': true,
897
- 'Shipping Latitude': true,
898
- 'Shipping Longitude': true,
899
- 'Shipping State/Province': true,
900
- 'Shipping Street': true,
901
- 'Shipping Zip/Postal Code': true,
902
- 'SIC Description': true,
903
- 'System Modstamp': true,
904
- 'Website': true
905
- },
906
- 'Contact': {
907
- 'Account ID': true,
908
- 'Allow Customer Portal Self-Registration': true,
909
- 'Alternate Email': true,
910
- "Assistant's Name": true,
911
- "Assistant's Phone": true,
912
- 'Birthdate': true,
913
- 'Business Fax': true,
914
- 'Business Phone': true,
915
- 'Citizenship': true,
916
- 'Contact Description': true,
917
- 'Contact ID': true,
918
- 'Country of Origin': true,
919
- 'Created By ID': true,
920
- 'Created Date': true,
921
- 'Current Address': true,
922
- 'Deceased': true,
923
- 'Deleted': true,
924
- 'Department': true,
925
- 'Do Not Automatically Update': true,
926
- 'Do Not Call': true,
927
- 'Do Not Contact': true,
928
- 'Email': true,
929
- 'Email Bounced Date': true,
930
- 'Email Bounced Reason': true,
931
- 'Email Opt Out': true,
932
- 'Ethnicity': true,
933
- 'Exclude from Household Formal Greeting': true,
934
- 'Exclude from Household Informal Greeting': true,
935
- 'Exclude from Household Name': true,
936
- 'Fax Opt Out': true,
937
- 'FERPA': true,
938
- 'Financial Aid Applicant': true,
939
- 'First Name': true,
940
- 'Full Name': true,
941
- 'Gender': true,
942
- 'HIPAA': true,
943
- 'HIPAA Detail': true,
944
- 'Home Phone': true,
945
- 'Is Email Bounced': true,
946
- 'Jigsaw Contact ID': true,
947
- 'Last Activity': true,
948
- 'Last Modified By ID': true,
949
- 'Last Modified Date': true,
950
- 'Last Name': true,
951
- 'Last Referenced Date': true,
952
- 'Last Stay-in-Touch Request Date': true,
953
- 'Last Stay-in-Touch Save Date': true,
954
- 'Last Viewed Date': true,
955
- 'Lead Source': true,
956
- 'Mailing Address': true,
957
- 'Mailing City': true,
958
- 'Mailing Country': true,
959
- 'Mailing Geocode Accuracy': true,
960
- 'Mailing Latitude': true,
961
- 'Mailing Longitude': true,
962
- 'Mailing State/Province': true,
963
- 'Mailing Street': true,
964
- 'Mailing Zip/Postal Code': true,
965
- 'Master Record ID': true,
966
- 'Military Background': true,
967
- 'Military Service': true,
968
- 'Mobile Phone': true,
969
- 'Naming Exclusions': true,
970
- 'Other Address': true,
971
- 'Other City': true,
972
- 'Other Country': true,
973
- 'Other Geocode Accuracy': true,
974
- 'Other Latitude': true,
975
- 'Other Longitude': true,
976
- 'Other Phone': true,
977
- 'Other State/Province': true,
978
- 'Other Street': true,
979
- 'Other Zip/Postal Code': true,
980
- 'Owner ID': true,
981
- 'Photo URL': true,
982
- 'Preferred Email': true,
983
- 'Preferred Phone': true,
984
- 'Primary Address Type': true,
985
- 'Primary Business Organization': true,
986
- 'Primary Household': true,
987
- 'Religion': true,
988
- 'Reports To ID': true,
989
- 'Salutation': true,
990
- 'Secondary Address Type': true,
991
- 'Social Security Number': true,
992
- 'System Modstamp': true,
993
- 'Title': true,
994
- 'University Email': true,
995
- 'Work Address': true,
996
- 'Work Email': true,
997
- 'Work Phone': true
998
- },
999
- 'Affiliation': {
1000
- 'Affiliation Key': true,
1001
- 'Affiliation Type': true,
1002
- 'Contact': true,
1003
- 'Created By ID': true,
1004
- 'Created Date': true,
1005
- 'Deleted': true,
1006
- 'Description': true,
1007
- 'End Date': true,
1008
- 'Last Modified By ID': true,
1009
- 'Last Modified Date': true,
1010
- 'Last Referenced Date': true,
1011
- 'Last Viewed Date': true,
1012
- 'Organization': true,
1013
- 'Owner ID': true,
1014
- 'Primary': true,
1015
- 'Record ID': true,
1016
- 'Role': true,
1017
- 'Start Date': true,
1018
- 'Status': true,
1019
- 'System Modstamp': true
1020
- },
1021
- 'Address': {
1022
- 'Address ID': true,
1023
- 'Address Type': true,
1024
- 'Created By ID': true,
1025
- 'Created Date': true,
1026
- 'Default Address': true,
1027
- 'Deleted': true,
1028
- 'Geolocation': true,
1029
- 'Geolocation (Latitude)': true,
1030
- 'Geolocation (Longitude)': true,
1031
- 'Last Modified By ID': true,
1032
- 'Last Modified Date': true,
1033
- 'Last Referenced Date': true,
1034
- 'Last Viewed Date': true,
1035
- 'Latest End Date': true,
1036
- 'Latest Start Date': true,
1037
- 'Mailing Address': true,
1038
- 'Mailing City': true,
1039
- 'Mailing Country': true,
1040
- 'Mailing State/Province': true,
1041
- 'Mailing Street': true,
1042
- 'Mailing Street2': true,
1043
- 'Mailing Street Address': true,
1044
- 'Mailing Zip/Postal Code': true,
1045
- 'Owner ID': true,
1046
- 'Parent Account': true,
1047
- 'Parent Contact': true,
1048
- 'Record ID': true,
1049
- 'Seasonal End Day': true,
1050
- 'Seasonal End Month': true,
1051
- 'Seasonal End Year': true,
1052
- 'Seasonal Start Day': true,
1053
- 'Seasonal Start Month': true,
1054
- 'Seasonal Start Year': true,
1055
- 'System Modstamp': true
1056
- },
1057
- 'Course': {
1058
- 'Course ID': true,
1059
- 'Course Name': true,
1060
- 'Created By ID': true,
1061
- 'Created Date': true,
1062
- 'Credit Hours': true,
1063
- 'Deleted': true,
1064
- 'Department': true,
1065
- 'Description': true,
1066
- 'Last Modified By ID': true,
1067
- 'Last Modified Date': true,
1068
- 'Last Referenced Date': true,
1069
- 'Last Viewed Date': true,
1070
- 'Record ID': true,
1071
- 'System Modstamp': true
1072
- },
1073
- 'Course Enrollment': {
1074
- 'Affiliation': true,
1075
- 'Contact': true,
1076
- "Contact's Academic Program": true,
1077
- 'Course Connection ID': true,
1078
- 'Course Offering ID': true,
1079
- 'Created By ID': true,
1080
- 'Created Date': true,
1081
- 'Credits Attempted': true,
1082
- 'Credits Earned': true,
1083
- 'Deleted': true,
1084
- 'Grade': true,
1085
- 'Last Modified By ID': true,
1086
- 'Last Modified Date': true,
1087
- 'Last Referenced Date': true,
1088
- 'Last Viewed Date': true,
1089
- 'Owner ID': true,
1090
- 'Primary': true,
1091
- 'Program Enrollment ID': true,
1092
- 'Record ID': true,
1093
- 'Record Type ID': true,
1094
- 'Status': true,
1095
- 'System Modstamp': true
1096
- },
1097
- 'Course Offering': {
1098
- 'Capacity': true,
1099
- 'Course': true,
1100
- 'Course Offering ID': true,
1101
- 'Created By ID': true,
1102
- 'Created Date': true,
1103
- 'Deleted': true,
1104
- 'End Date': true,
1105
- 'Last Modified By ID': true,
1106
- 'Last Modified Date': true,
1107
- 'Last Referenced Date': true,
1108
- 'Last Viewed Date': true,
1109
- 'Primary Faculty': true,
1110
- 'Record ID': true,
1111
- 'Section ID': true,
1112
- 'Start Date': true,
1113
- 'System Modstamp': true,
1114
- 'Term': true
1115
- },
1116
- 'Program Enrollment': {
1117
- 'Admission Date': true,
1118
- 'Affiliation': true,
1119
- 'Application Submitted Date': true,
1120
- 'Class Standing': true,
1121
- 'Class Year': true,
1122
- 'Contact': true,
1123
- 'Created By ID': true,
1124
- 'Created Date': true,
1125
- 'Credits Attempted': true,
1126
- 'Credits Earned': true,
1127
- 'Deleted': true,
1128
- 'Eligible to Enroll': true,
1129
- 'End Date': true,
1130
- 'Enrollment Status': true,
1131
- 'GPA': true,
1132
- 'Last Modified By ID': true,
1133
- 'Last Modified Date': true,
1134
- 'Last Referenced Date': true,
1135
- 'Last Viewed Date': true,
1136
- 'Owner ID': true,
1137
- 'Program': true,
1138
- 'Program Enrollment ID': true,
1139
- 'Record ID': true,
1140
- 'Start Date': true,
1141
- 'System Modstamp': true
1142
- },
1143
- 'Relationship': {
1144
- 'Contact': true,
1145
- 'Created By ID': true,
1146
- 'Created Date': true,
1147
- 'Deleted': true,
1148
- 'Description': true,
1149
- 'Emergency Contact': true,
1150
- 'Last Modified By ID': true,
1151
- 'Last Modified Date': true,
1152
- 'Last Referenced Date': true,
1153
- 'Last Viewed Date': true,
1154
- 'Owner ID': true,
1155
- 'Reciprocal Relationship': true,
1156
- 'Record ID': true,
1157
- 'Related Contact': true,
1158
- 'Relationship Explanation': true,
1159
- 'Relationship Key': true,
1160
- 'Status': true,
1161
- 'System Modstamp': true,
1162
- 'Type': true
1163
- },
1164
- 'Term': {
1165
- 'Account': true,
1166
- 'Created By ID': true,
1167
- 'Created Date': true,
1168
- 'Deleted': true,
1169
- 'End Date': true,
1170
- 'Last Modified By ID': true,
1171
- 'Last Modified Date': true,
1172
- 'Last Referenced Date': true,
1173
- 'Last Viewed Date': true,
1174
- 'Record ID': true,
1175
- 'Start Date': true,
1176
- 'System Modstamp': true,
1177
- 'Term Name': true
1178
- }
1179
- },
1180
- autoMapData: {
1181
- 'Student.First Name': 'Contact.First Name',
1182
- 'Student.Last Name': 'Contact.Last Name',
1183
- 'Student.Gender': 'Contact.Gender',
1184
- 'Student.External Id': 'Contact.Account ID',
1185
- 'Student.Birthdate': 'Contact.Birthdate',
1186
- 'Student.Hispanic Latino Ethnicity': 'Contact.Ethnicity',
1187
- 'Student.Last Modified': 'Contact.Last Modified Date',
1188
- 'Student Telephone.Telephone Number': 'Contact.Preferred Phone',
1189
- 'Student Email.Email Address': 'Contact.Preferred Email',
1190
- 'Student Address.Student External Id': 'Address.Owner ID',
1191
- 'Student Address.Address Type': 'Address.Primary Address Type',
1192
- 'Student Address.Street Number And Name': 'Address.Mailing Address',
1193
- 'Student Address.City': 'Address.Mailing City',
1194
- 'Student Address.State': 'Address.Mailing State/Province',
1195
- 'Student Address.Postal Code': 'Address.Mailing Zip/Postal Code',
1196
- 'Student Address.County': 'Address.Mailing Country',
1197
- 'Student Address.Latitude': 'Address.Mailing Latitude',
1198
- 'Student Address.Longitude': 'Address.Mailing Longitude',
1199
- 'Staff.First Name': 'Contact.First Name',
1200
- 'Staff.Last Name': 'Contact.Last Name',
1201
- 'Staff.Gender': 'Contact.Gender',
1202
- 'Staff.External Id': 'Contact.Account ID',
1203
- 'Staff.Birthdate': 'Contact.Birthdate',
1204
- 'Staff.Hispanic Latino Ethnicity': 'Contact.Ethnicity',
1205
- 'Staff.Last Modified': 'Contact.Last Modified Date',
1206
- 'Staff Telephone.Telephone Number': 'Contact.Preferred Phone',
1207
- 'Staff Email.Email Address': 'Contact.Preferred Email',
1208
- 'Staff Address.Staff External Id': 'Address.Owner ID',
1209
- 'Staff Address.Address Type': 'Address.Primary Address Type',
1210
- 'Staff Address.Street Number And Name': 'Address.Mailing Address',
1211
- 'Staff Address.City': 'Address.Mailing City',
1212
- 'Staff Address.State': 'Address.Mailing State/Province',
1213
- 'Staff Address.Postal Code': 'Address.Mailing Zip/Postal Code',
1214
- 'Staff Address.County': 'Address.Mailing Country',
1215
- 'Staff Address.Latitude': 'Address.Mailing Latitude',
1216
- 'Staff Address.Longitude': 'Address.Mailing Longitude',
1217
- 'Calendar Session.Designator': 'Term.Term Name',
1218
- 'Calendar Session.Begin Date': 'Term.Start Date',
1219
- 'Calendar Session.End Date': 'Term.End Date',
1220
- 'Calendar Session.Last Modified': 'Term.Last Modified Date',
1221
- 'Calendar Session.External Id': 'Term.Record ID',
1222
- 'Course.External Id': 'Course.Course ID',
1223
- 'Course.Course Title': 'Course.Course Name',
1224
- 'Course.Description': 'Course.Description',
1225
- 'Course.Department External Id': 'Course.Department',
1226
- 'Course.Credit Value': 'Course.Credit Hours',
1227
- 'Course.Last Modified': 'Course.Last Modified Date',
1228
- 'Course Section.Last Modified': 'Course Offering.Last Modified Date',
1229
- 'Course Section.External Id': 'Course Offering.Section ID',
1230
- 'Course Section.Course External Id': 'Course Offering.Course Offering ID',
1231
- 'Course Section Schedule.Course Section External ID': 'Course Offering.Section ID',
1232
- 'Student Section.Student External Id': 'Course Enrollment.Owner ID',
1233
- 'Student Section.Number Of Credits Earned': 'Course Enrollment.Credits Earned',
1234
- 'Student Section.Academic Grade': 'Course Enrollment.Grade',
1235
- 'Student Section.Last Modified': 'Course Enrollment.Last Modified Date'
1236
- },
1237
- dummyData: {
1238
- 'Student.First Name': 'Carlos',
1239
- 'Student.Last Name': 'Robertson',
1240
- 'Student.Gender': 'Male',
1241
- 'Student.External Id': 'ee106749-8b53-445e-8bc9-1babc72372ff',
1242
- 'Student.Birthdate': '1998-10-27',
1243
- 'Student.Hispanic Latino Ethnicity': 'Hispanic',
1244
- 'Student.Last Modified': '2017-1-10',
1245
- 'Student Telephone.Telephone Number': '530-753-3067',
1246
- 'Student Email.Email Address': 'carlosr98@gmail.com',
1247
- 'Student Address.Student External Id': 'ee106749-8b53-445e-8bc9-1babc72372ff',
1248
- 'Student Address.Address Type': 'residence',
1249
- 'Student Address.Street Number And Name': '2400 Rivendell Lane',
1250
- 'Student Address.City': 'Davis',
1251
- 'Student Address.State': 'CA',
1252
- 'Student Address.Postal Code': '95616',
1253
- 'Student Address.County': 'United States',
1254
- 'Student Address.Latitude': '38.5449° N',
1255
- 'Student Address.Longitude': '121.7405° W',
1256
- 'Staff.First Name': 'Amy',
1257
- 'Staff.Last Name': 'Harrison',
1258
- 'Staff.Gender': 'Female',
1259
- 'Staff.External Id': '9d0f1999-c14f-466a-b078-eac5dceb8c1e',
1260
- 'Staff.Birthdate': '1986-10-18',
1261
- 'Staff.Hispanic Latino Ethnicity': 'White',
1262
- 'Staff.Last Modified': '2017-1-10',
1263
- 'Staff Telephone.Telephone Number': '530-756-8268',
1264
- 'Staff Email.Email Address': 'asharon@ucdavis.edu',
1265
- 'Staff Address.Staff External Id': '9d0f1999-c14f-466a-b078-eac5dceb8c1e',
1266
- 'Staff Address.Address Type': 'residence',
1267
- 'Staff Address.Street Number And Name': '131 Bombadil Drive',
1268
- 'Staff Address.City': 'Davis',
1269
- 'Staff Address.State': 'CA',
1270
- 'Staff Address.Postal Code': '95616',
1271
- 'Staff Address.County': 'United States',
1272
- 'Staff Address.Latitude': '38.5449° N',
1273
- 'Staff Address.Longitude': '121.7405° W',
1274
- 'Calendar Session.Designator': 'Fall',
1275
- 'Calendar Session.Begin Date': '2017-3-11',
1276
- 'Calendar Session.End Date': '2017-6-21',
1277
- 'Calendar Session.Last Modified': '2017-1-10',
1278
- 'Calendar Session.External Id': 'e8484fb0bdf7955ade3eafc0134d46c1',
1279
- 'Course.External Id': 'de3eafc0134d4e8484fb0bdf7955a6c1',
1280
- 'Course.Course Title': 'Research Strategies and Technology',
1281
- 'Course.Description': 'This course is intended to familiarize students with the resources and the technology available for writing and presenting papers',
1282
- 'Course.Department External Id': 'Social Sciences',
1283
- 'Course.Credit Value': '4',
1284
- 'Course.Last Modified': '2017-1-10',
1285
- 'Course Section.Last Modified': '2017-1-10',
1286
- 'Course Section.External Id': '624163984-7',
1287
- 'Course Section.Course External Id': '639846241-9',
1288
- 'Course Section Schedule.Course Section External ID': '349996241-1',
1289
- 'Student Section.Student External Id': 'ee106749-8b53-445e-8bc9-1babc72372ff',
1290
- 'Student Section.Number Of Credits Earned': '4',
1291
- 'Student Section.Academic Grade': 'B',
1292
- 'Student Section.Last Modified': '2017-1-10'
1293
- }
1294
- },
1295
- 6: { // REST API to REST API
1296
- title: 'REST API to REST API',
1297
- sourceProvider: 'REST',
1298
- sourceProviderType: 'API',
1299
- destinationProvider: 'REST',
1300
- destinationProviderType: 'API',
1301
- deployment: ['once', 'scheduled']
1302
- },
1303
- 5: { // Banner to Course Enrollment
1304
- title: 'Banner to Course Enrollment',
1305
- sourceProvider: 'Banner',
1306
- sourceProviderType: 'Banner',
1307
- destinationProvider: 'Course Enrollment Feed',
1308
- destinationProviderType: 'FTP',
1309
- deployment: ['once', 'API', 'scheduled'],
1310
- customStep: {
1311
- type: 'bannerAdapter',
1312
- title: 'Banner Adapter'
1313
- },
1314
- sourceDefaultSchema: {
1315
- 'Calendar Session': {
1316
- ExternalId: true,
1317
- Designator: true,
1318
- BeginDate: true,
1319
- EndDate: true,
1320
- BNEDTerm: true,
1321
- Active: true
1322
- },
1323
- 'Course': {
1324
- ExternalId: true,
1325
- CourseNumber: true,
1326
- CourseTitle: true,
1327
- SubjectAbbreviation: true
1328
- },
1329
- 'Course Section': {
1330
- ExternalId: true,
1331
- CourseExternalId: true,
1332
- CourseSectionNumber: true,
1333
- InstructionSiteName: true,
1334
- InstructionSiteType: true,
1335
- CourseEndDate: true,
1336
- CalendarSessionExternalId: true,
1337
- Capacity: true,
1338
- CurrentEnrollment: true,
1339
- CourseFeeIncluded: true
1340
- },
1341
- 'Student': {
1342
- ExternalId: true,
1343
- FirstName: true,
1344
- LastName: true,
1345
- AidAmount: true,
1346
- AidProviderCode: true,
1347
- AidBeginDate: true,
1348
- AidEndDate: true,
1349
- AidIDType: true,
1350
- AidAccountType: true
1351
- },
1352
- 'Student Section': {
1353
- CourseSectionExternalId: true,
1354
- StudentExternalId: true,
1355
- CourseAddDate: true,
1356
- CourseDropDate: true,
1357
- Dropped: true,
1358
- Role: true
1359
- },
1360
- 'Student Email': {
1361
- ExternalId: true,
1362
- EmailAddress: true,
1363
- EmailAddressType: true,
1364
- IsPrimary: true
1365
- },
1366
- 'Staff': {
1367
- ExternalId: true,
1368
- FirstName: true,
1369
- MiddleName: true,
1370
- LastName: true
1371
- },
1372
- 'Section Instructor': {
1373
- CourseSectionExternalId: true,
1374
- StaffExternalId: true
1375
- }
1376
- },
1377
- destinationDefaultSchema: {
1378
- 'Course Enrollment': {
1379
- 'BNED Store Number / Unit': true,
1380
- 'BNED Term Year': true,
1381
- 'BNED Term Code': true,
1382
- 'College Department': true,
1383
- 'College Course': true,
1384
- 'College Section': true,
1385
- 'Professor Name': true,
1386
- 'Maximum Capacity': true,
1387
- 'Estimated Enrollment': true,
1388
- 'Actual Enrollment': true,
1389
- 'Continuation Class': true,
1390
- 'Evening Class': true,
1391
- 'Extension Class': true,
1392
- 'Location (Campus)': true,
1393
- 'Course Title': true,
1394
- 'Alternate Course ID (CRN)': true
1395
- }
1396
- },
1397
- autoMapData: {
1398
- 'Course Section.InstructionSiteName': 'Course Enrollment.Location (Campus)',
1399
- 'Course.SubjectAbbreviation': 'Course Enrollment.College Department',
1400
- 'Course.ExternalId': 'Course Enrollment.College Course',
1401
- 'Course Section.ExternalId': 'Course Enrollment.College Section',
1402
- 'Staff.LastName': 'Course Enrollment.Professor Name',
1403
- 'Staff.FirstName': 'Course Enrollment.Professor Name',
1404
- 'Course.CourseTitle': 'Course Enrollment.Course Title',
1405
- 'Course Section.Capacity': 'Course Enrollment.Maximum Capacity',
1406
- 'Course Section.CurrentEnrollment': 'Course Enrollment.Actual Enrollment',
1407
- 'Calendar Session.BNEDTerm': 'Course Enrollment.BNED Term Code'
1408
- },
1409
- dummyData: {
1410
- 'Course Section.InstructionSiteName': 'Qianshan',
1411
- 'Course.SubjectAbbreviation': 'ASTR',
1412
- 'Course.ExternalId': '786202168-1',
1413
- 'Course Section.ExternalId': '254143083-3',
1414
- 'Staff.LastName': 'Mitchell',
1415
- 'Staff.FirstName': 'Sharon',
1416
- 'Course.CourseTitle': 'Physics',
1417
- 'Course Section.Capacity': '65',
1418
- 'Course Section.CurrentEnrollment': '60',
1419
- 'Calendar Session.BNEDTerm': 'W'
1420
- }
1421
- },
1422
- 2: { // Banner to Managed SFA
1423
- title: 'Banner to Managed SFA',
1424
- sourceProvider: 'Banner',
1425
- sourceProviderType: 'Banner',
1426
- destinationProvider: 'Managed SFA',
1427
- destinationProviderType: 'FTP',
1428
- deployment: ['once', 'API', 'scheduled'],
1429
- customStep: {
1430
- type: 'bannerAdapter',
1431
- title: 'Banner Adapter'
1432
- },
1433
- sourceDefaultSchema: {
1434
- 'Calendar Session': {
1435
- ExternalId: true,
1436
- Designator: true,
1437
- BeginDate: true,
1438
- EndDate: true,
1439
- BNEDTerm: true,
1440
- Active: true
1441
- },
1442
- 'Course': {
1443
- ExternalId: true,
1444
- CourseNumber: true,
1445
- CourseTitle: true,
1446
- SubjectAbbreviation: true
1447
- },
1448
- 'Course Section': {
1449
- ExternalId: true,
1450
- CourseExternalId: true,
1451
- CourseSectionNumber: true,
1452
- InstructionSiteName: true,
1453
- InstructionSiteType: true,
1454
- CourseEndDate: true,
1455
- CalendarSessionExternalId: true,
1456
- Capacity: true,
1457
- CurrentEnrollment: true,
1458
- CourseFeeIncluded: true
1459
- },
1460
- 'Student': {
1461
- ExternalId: true,
1462
- FirstName: true,
1463
- LastName: true,
1464
- AidAmount: true,
1465
- AidProviderCode: true,
1466
- AidBeginDate: true,
1467
- AidEndDate: true,
1468
- AidIDType: true,
1469
- AidAccountType: true
1470
- },
1471
- 'Student Section': {
1472
- CourseSectionExternalId: true,
1473
- StudentExternalId: true,
1474
- CourseAddDate: true,
1475
- CourseDropDate: true,
1476
- Dropped: true,
1477
- Role: true
1478
- },
1479
- 'Student Email': {
1480
- ExternalId: true,
1481
- EmailAddress: true,
1482
- EmailAddressType: true,
1483
- IsPrimary: true
1484
- },
1485
- 'Staff': {
1486
- ExternalId: true,
1487
- FirstName: true,
1488
- MiddleName: true,
1489
- LastName: true
1490
- },
1491
- 'Section Instructor': {
1492
- CourseSectionExternalId: true,
1493
- StaffExternalId: true
1494
- }
1495
- },
1496
- destinationDefaultSchema: {
1497
- 'Managed SFA': {
1498
- 'BNED Store Number / ID': true,
1499
- 'BNED Term Year': true,
1500
- 'BNED Term Code': true,
1501
- 'Student ID': true,
1502
- 'First Name': true,
1503
- 'Middle Initial': true,
1504
- 'Last Name': true,
1505
- 'Aid Provider Code': true,
1506
- 'Aid Provider Amount Available': true,
1507
- 'Aid Provider Begin Date': true,
1508
- 'Aid Provider End Date': true,
1509
- 'Record Type': true,
1510
- 'Student ID Type': true,
1511
- 'Account Type': true
1512
- }
1513
- },
1514
- autoMapData: {
1515
- 'Student.AidIDType': 'Managed SFA.Record Type',
1516
- 'Student.AidAccountType': 'Managed SFA.Account Type',
1517
- 'Student.LastName': 'Managed SFA.Last Name',
1518
- 'Student.FirstName': 'Managed SFA.First Name',
1519
- 'Student.AidEndDate': 'Managed SFA.Aid Provider End Date',
1520
- 'Student.AidBeginDate': 'Managed SFA.Aid Provider Begin Date',
1521
- 'Student.AidAmount': 'Managed SFA.Aid Provider Amount Available',
1522
- 'Student.AidProviderCode': 'Managed SFA.Aid Provider Code',
1523
- 'Student.ExternalId': 'Managed SFA.Student ID',
1524
- 'Calendar Session.BNEDTerm': 'Managed SFA.BNED Term Code'
1525
- },
1526
- dummyData: {
1527
- 'Student.AidIDType': 'S',
1528
- 'Student.AidAccountType': 'D',
1529
- 'Student.LastName': 'Robertson',
1530
- 'Student.FirstName': 'Carlos',
1531
- 'Student.AidEndDate': '2017-02-23',
1532
- 'Student.AidBeginDate': '2016-10-12',
1533
- 'Student.AidAmount': '50000',
1534
- 'Student.AidProviderCode': '54636',
1535
- 'Student.ExternalId': 'ee106749-8b53-445e-8bc9-1babc72372ff',
1536
- 'Calendar Session.BNEDTerm': 'W'
1537
- }
1538
- },
1539
- 3: { // Banner to Course Fee API
1540
- title: 'Banner to Course Fee API',
1541
- sourceProvider: 'Banner',
1542
- sourceProviderType: 'Banner',
1543
- destinationProvider: 'Course Fee API',
1544
- destinationProviderType: 'API',
1545
- deployment: ['once', 'API', 'scheduled'],
1546
- customStep: {
1547
- type: 'bannerAdapter',
1548
- title: 'Banner Adapter'
1549
- },
1550
- sourceDefaultSchema: {
1551
- 'Calendar Session': {
1552
- ExternalId: true,
1553
- Designator: true,
1554
- BeginDate: true,
1555
- EndDate: true,
1556
- BNEDTerm: true,
1557
- Active: true
1558
- },
1559
- 'Course': {
1560
- ExternalId: true,
1561
- CourseNumber: true,
1562
- CourseTitle: true,
1563
- SubjectAbbreviation: true
1564
- },
1565
- 'Course Section': {
1566
- ExternalId: true,
1567
- CourseExternalId: true,
1568
- CourseSectionNumber: true,
1569
- InstructionSiteName: true,
1570
- InstructionSiteType: true,
1571
- CourseEndDate: true,
1572
- CalendarSessionExternalId: true,
1573
- Capacity: true,
1574
- CurrentEnrollment: true,
1575
- CourseFeeIncluded: true
1576
- },
1577
- 'Student': {
1578
- ExternalId: true,
1579
- FirstName: true,
1580
- LastName: true,
1581
- AidAmount: true,
1582
- AidProviderCode: true,
1583
- AidBeginDate: true,
1584
- AidEndDate: true,
1585
- AidIDType: true,
1586
- AidAccountType: true
1587
- },
1588
- 'Student Section': {
1589
- CourseSectionExternalId: true,
1590
- StudentExternalId: true,
1591
- CourseAddDate: true,
1592
- CourseDropDate: true,
1593
- Dropped: true,
1594
- Role: true
1595
- },
1596
- 'Student Email': {
1597
- ExternalId: true,
1598
- EmailAddress: true,
1599
- EmailAddressType: true,
1600
- IsPrimary: true
1601
- },
1602
- 'Staff': {
1603
- ExternalId: true,
1604
- FirstName: true,
1605
- MiddleName: true,
1606
- LastName: true
1607
- },
1608
- 'Section Instructor': {
1609
- CourseSectionExternalId: true,
1610
- StaffExternalId: true
1611
- }
1612
- },
1613
- destinationDefaultSchema: {
1614
- 'Course Fee': {
1615
- 'BNED Store Number / ID': true,
1616
- 'BNED Term Year / Term Code': true,
1617
- 'College Department': true,
1618
- 'College Course': true,
1619
- 'College Section': true,
1620
- 'Role': true,
1621
- 'Student Email Address': true
1622
- }
1623
- },
1624
- autoMapData: {
1625
- 'Course.SubjectAbbreviation': 'Course Fee.College Department',
1626
- 'Course.ExternalId': 'Course Fee.College Course',
1627
- 'Course Section.ExternalId': 'Course Fee.College Section',
1628
- 'Student Section.Role': 'Course Fee.Role',
1629
- 'Student Email.EmailAddress': 'Course Fee.Student Email Address',
1630
- 'Calendar Session.BNEDTerm': 'Course Fee.BNED Term Year / Term Code'
1631
- },
1632
- dummyData: {
1633
- 'Course.SubjectAbbreviation': 'ITAL',
1634
- 'Course.ExternalId': '361542699-1',
1635
- 'Course Section.ExternalId': '026743570-3',
1636
- 'Student Section.Role': 'Student',
1637
- 'Student Email.EmailAddress': 'spatterson0@tripod.edu',
1638
- 'Calendar Session.BNEDTerm': 'W'
1639
- }
1640
- },
1641
- 4: { // Banner to SFA Balance Inquiry
1642
- title: 'Banner to SFA Balance Inquiry',
1643
- sourceProvider: 'Banner',
1644
- sourceProviderType: 'Banner',
1645
- destinationProvider: 'SFA Balance Inquiry',
1646
- destinationProviderType: 'API',
1647
- deployment: ['once', 'API', 'scheduled'],
1648
- customStep: {
1649
- type: 'bannerAdapter',
1650
- title: 'Banner Adapter'
1651
- },
1652
- sourceDefaultSchema: {
1653
- 'Calendar Session': {
1654
- ExternalId: true,
1655
- Designator: true,
1656
- BeginDate: true,
1657
- EndDate: true,
1658
- BNEDTerm: true,
1659
- Active: true
1660
- },
1661
- 'Course': {
1662
- ExternalId: true,
1663
- CourseNumber: true,
1664
- CourseTitle: true,
1665
- SubjectAbbreviation: true
1666
- },
1667
- 'Course Section': {
1668
- ExternalId: true,
1669
- CourseExternalId: true,
1670
- CourseSectionNumber: true,
1671
- InstructionSiteName: true,
1672
- InstructionSiteType: true,
1673
- CourseEndDate: true,
1674
- CalendarSessionExternalId: true,
1675
- Capacity: true,
1676
- CurrentEnrollment: true,
1677
- CourseFeeIncluded: true
1678
- },
1679
- 'Student': {
1680
- ExternalId: true,
1681
- FirstName: true,
1682
- LastName: true,
1683
- AidAmount: true,
1684
- AidProviderCode: true,
1685
- AidBeginDate: true,
1686
- AidEndDate: true,
1687
- AidIDType: true,
1688
- AidAccountType: true
1689
- },
1690
- 'Student Section': {
1691
- CourseSectionExternalId: true,
1692
- StudentExternalId: true,
1693
- CourseAddDate: true,
1694
- CourseDropDate: true,
1695
- Dropped: true,
1696
- Role: true
1697
- },
1698
- 'Student Email': {
1699
- ExternalId: true,
1700
- EmailAddress: true,
1701
- EmailAddressType: true,
1702
- IsPrimary: true
1703
- },
1704
- 'Staff': {
1705
- ExternalId: true,
1706
- FirstName: true,
1707
- MiddleName: true,
1708
- LastName: true
1709
- },
1710
- 'Section Instructor': {
1711
- CourseSectionExternalId: true,
1712
- StaffExternalId: true
1713
- }
1714
- },
1715
- destinationDefaultSchema: {
1716
- 'Balance Inquiry': {
1717
- 'Student Financial Aid Balance': true,
1718
- 'Student ID': true,
1719
- 'Aid Provider Code': true,
1720
- 'Aid Provider Amount Available': true,
1721
- 'Aid Provider Begin Date': true,
1722
- 'Aid Provider End Date': true,
1723
- 'Record Type': true,
1724
- 'Student ID Type': true,
1725
- 'Account Type': true
1726
- }
1727
- },
1728
- autoMapData: {
1729
- 'Student.AidIDType': 'Managed SFA.Record Type',
1730
- 'Student.AidAccountType': 'Managed SFA.Account Type',
1731
- 'Student.AidEndDate': 'Managed SFA.Aid Provider End Date',
1732
- 'Student.AidBeginDate': 'Managed SFA.Aid Provider Begin Date',
1733
- 'Student.AidAmount': 'Managed SFA.Aid Provider Amount Available',
1734
- 'Student.AidProviderCode': 'Managed SFA.Aid Provider Code',
1735
- 'Student.ExternalId': 'Managed SFA.Student ID',
1736
- 'Calendar Session.BNEDTerm': 'Managed SFA.BNED Term Code'
1737
- },
1738
- dummyData: {
1739
- 'Student.AidIDType': 'S',
1740
- 'Student.AidAccountType': 'D',
1741
- 'Student.AidEndDate': '2017-02-23',
1742
- 'Student.AidBeginDate': '2016-10-12',
1743
- 'Student.AidAmount': '50000',
1744
- 'Student.AidProviderCode': '54636',
1745
- 'Student.ExternalId': 'ee106749-8b53-445e-8bc9-1babc72372ff',
1746
- 'Calendar Session.BNEDTerm': 'W'
1747
- }
1748
- }
1749
- };
1750
-
1751
- /***/ },
1752
- /* 11 */
1753
- /***/ function(module, exports, __webpack_require__) {
1754
-
1755
- 'use strict';
1756
-
1757
- Object.defineProperty(exports, "__esModule", {
1758
- value: true
1759
- });
1760
-
1761
- var _react = __webpack_require__(1);
1762
-
1763
- var _react2 = _interopRequireDefault(_react);
1764
-
1765
- var _reduxForm = __webpack_require__(2);
1766
-
1767
- var _validate = __webpack_require__(4);
1768
-
1769
- var _validate2 = _interopRequireDefault(_validate);
1770
-
1771
- var _navButtons = __webpack_require__(3);
1772
-
1773
- var _navButtons2 = _interopRequireDefault(_navButtons);
1774
-
1775
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1776
-
1777
- var renderError = function renderError(_ref) {
1778
- var _ref$meta = _ref.meta,
1779
- touched = _ref$meta.touched,
1780
- error = _ref$meta.error;
1781
- return touched && error ? _react2.default.createElement(
1782
- 'div',
1783
- null,
1784
- _react2.default.createElement(
1785
- 'span',
1786
- null,
1787
- error
1788
- ),
1789
- _react2.default.createElement('br', null),
1790
- _react2.default.createElement('br', null)
1791
- ) : false;
1792
- };
1793
-
1794
- var AccountStep = function AccountStep(props) {
1795
- var inputs = props.inputs,
1796
- handleSubmit = props.handleSubmit,
1797
- nav = props.nav,
1798
- reset = props.reset;
1799
-
1800
- return _react2.default.createElement(
1801
- 'form',
1802
- { onKeyPress: function onKeyPress(e) {
1803
- return e.charCode === 13 ? e.preventDefault() : null;
1804
- } },
1805
- _react2.default.createElement(
1806
- 'div',
1807
- { style: { fontSize: 20 } },
1808
- 'Select an Account'
1809
- ),
1810
- _react2.default.createElement('br', null),
1811
- _react2.default.createElement(
1812
- 'div',
1813
- { style: { marginLeft: 16 } },
1814
- _react2.default.createElement(_reduxForm.Field, { name: 'newAccount', type: 'text', component: inputs.rfInput, label: 'Name' })
1815
- ),
1816
- _react2.default.createElement('br', null),
1817
- _react2.default.createElement(_reduxForm.Field, { name: 'customer', component: renderError }),
1818
- _react2.default.createElement('br', null),
1819
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
1820
- _react2.default.createElement('br', null),
1821
- _react2.default.createElement('br', null)
1822
- );
1823
- };
1824
-
1825
- exports.default = (0, _reduxForm.reduxForm)({
1826
- form: 'wizard',
1827
- destroyOnUnmount: false,
1828
- forceUnregisterOnUnmount: true,
1829
- touchOnBlur: false,
1830
- validate: _validate2.default
1831
- })(AccountStep);
1832
-
1833
- /***/ },
1834
- /* 12 */
1835
- /***/ function(module, exports, __webpack_require__) {
1836
-
1837
- 'use strict';
1838
-
1839
- Object.defineProperty(exports, "__esModule", {
1840
- value: true
1841
- });
1842
-
1843
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
1844
-
1845
- var _react = __webpack_require__(1);
1846
-
1847
- var _react2 = _interopRequireDefault(_react);
1848
-
1849
- var _reduxForm = __webpack_require__(2);
1850
-
1851
- var _validate = __webpack_require__(4);
1852
-
1853
- var _validate2 = _interopRequireDefault(_validate);
1854
-
1855
- var _navButtons = __webpack_require__(3);
1856
-
1857
- var _navButtons2 = _interopRequireDefault(_navButtons);
1858
-
1859
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1860
-
1861
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1862
-
1863
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
1864
-
1865
- 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; }
1866
-
1867
- var BannerAdapterStep = function (_Component) {
1868
- _inherits(BannerAdapterStep, _Component);
1869
-
1870
- function BannerAdapterStep() {
1871
- _classCallCheck(this, BannerAdapterStep);
1872
-
1873
- var _this = _possibleConstructorReturn(this, (BannerAdapterStep.__proto__ || Object.getPrototypeOf(BannerAdapterStep)).call(this));
1874
-
1875
- _this.state = {
1876
- showSecret: false
1877
- };
1878
- return _this;
1879
- }
1880
-
1881
- _createClass(BannerAdapterStep, [{
1882
- key: 'render',
1883
- value: function render() {
1884
- var _this2 = this;
1885
-
1886
- var showSecret = this.state.showSecret;
1887
- var _props = this.props,
1888
- inputs = _props.inputs,
1889
- handleSubmit = _props.handleSubmit,
1890
- nav = _props.nav,
1891
- reset = _props.reset,
1892
- step = _props.step;
1893
-
1894
- var Button = inputs.Button;
1895
- return _react2.default.createElement(
1896
- 'form',
1897
- { onKeyPress: function onKeyPress(e) {
1898
- return e.charCode === 13 ? e.preventDefault() : null;
1899
- } },
1900
- _react2.default.createElement(
1901
- 'div',
1902
- { style: { fontSize: 20 } },
1903
- 'Data Source: Configure ',
1904
- '' + step.title
1905
- ),
1906
- _react2.default.createElement('br', null),
1907
- _react2.default.createElement(
1908
- 'div',
1909
- { style: { marginLeft: 16 } },
1910
- _react2.default.createElement(
1911
- 'h5',
1912
- null,
1913
- 'This integration requires ',
1914
- '' + step.title,
1915
- ' configuration before continuing.'
1916
- ),
1917
- _react2.default.createElement(
1918
- 'ul',
1919
- { style: { listStyle: 'initial', paddingLeft: 17 } },
1920
- _react2.default.createElement(
1921
- 'li',
1922
- null,
1923
- _react2.default.createElement(
1924
- 'h5',
1925
- null,
1926
- _react2.default.createElement(
1927
- 'a',
1928
- { href: '' },
1929
- 'Download the ',
1930
- '' + step.title
1931
- )
1932
- )
1933
- ),
1934
- _react2.default.createElement(
1935
- 'li',
1936
- null,
1937
- _react2.default.createElement(
1938
- 'h5',
1939
- null,
1940
- _react2.default.createElement(
1941
- 'a',
1942
- { href: '' },
1943
- 'Read the ',
1944
- '' + step.title,
1945
- ' Documentation'
1946
- )
1947
- )
1948
- )
1949
- ),
1950
- _react2.default.createElement('br', null),
1951
- _react2.default.createElement(
1952
- 'strong',
1953
- { htmlFor: 'link-banner', style: { marginBottom: 14 } },
1954
- 'Lingk ',
1955
- '' + step.title,
1956
- ' Credentials:'
1957
- ),
1958
- _react2.default.createElement('br', null),
1959
- _react2.default.createElement('br', null),
1960
- _react2.default.createElement(
1961
- 'div',
1962
- { style: { marginLeft: 18 } },
1963
- _react2.default.createElement(
1964
- 'span',
1965
- null,
1966
- 'Client ID'
1967
- ),
1968
- _react2.default.createElement('br', null),
1969
- _react2.default.createElement('input', {
1970
- readOnly: true,
1971
- type: 'text',
1972
- placeholder: 'Client ID',
1973
- size: '60',
1974
- defaultValue: '55e65cc3d2f8e50001000020df27e6d908da4bf15832e459d2240dfb'
1975
- }),
1976
- _react2.default.createElement('br', null),
1977
- _react2.default.createElement('br', null),
1978
- _react2.default.createElement(
1979
- 'span',
1980
- null,
1981
- 'Client Secret'
1982
- ),
1983
- _react2.default.createElement('br', null),
1984
- _react2.default.createElement('input', {
1985
- readOnly: true,
1986
- placeholder: 'Client Secret',
1987
- size: '60',
1988
- defaultValue: 'ZTFlNjg2NjQ0MWQwNDI3ODRmMGQ3YmYzOTM0OWQxNTM=',
1989
- onBlur: function onBlur() {
1990
- _this2.setState({ showSecret: false });
1991
- },
1992
- style: { display: 'inline-block' },
1993
- type: showSecret ? 'text' : 'password'
1994
- }),
1995
- _react2.default.createElement(
1996
- Button,
1997
- {
1998
- type: 'brand',
1999
- iconAlign: 'right',
2000
- onClick: function onClick() {
2001
- return _this2.setState({ showSecret: !showSecret });
2002
- },
2003
- style: {
2004
- height: 23,
2005
- width: 55,
2006
- paddingLeft: 11,
2007
- lineHeight: '9px',
2008
- fontSize: 11,
2009
- marginLeft: 4,
2010
- marginBottom: 3
2011
- }
2012
- },
2013
- this.state.showSecret ? 'Hide' : 'Show'
2014
- )
2015
- )
2016
- ),
2017
- _react2.default.createElement('br', null),
2018
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
2019
- _react2.default.createElement('br', null),
2020
- _react2.default.createElement('br', null)
2021
- );
2022
- }
2023
- }]);
2024
-
2025
- return BannerAdapterStep;
2026
- }(_react.Component);
2027
-
2028
- exports.default = (0, _reduxForm.reduxForm)({
2029
- form: 'wizard',
2030
- destroyOnUnmount: false,
2031
- forceUnregisterOnUnmount: true,
2032
- touchOnBlur: false,
2033
- validate: _validate2.default
2034
- })(BannerAdapterStep);
2035
-
2036
- /***/ },
2037
- /* 13 */
2038
- /***/ function(module, exports, __webpack_require__) {
2039
-
2040
- 'use strict';
2041
-
2042
- Object.defineProperty(exports, "__esModule", {
2043
- value: true
2044
- });
2045
-
2046
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2047
-
2048
- var _react = __webpack_require__(1);
2049
-
2050
- var _react2 = _interopRequireDefault(_react);
2051
-
2052
- var _reduxForm = __webpack_require__(2);
2053
-
2054
- var _validate = __webpack_require__(4);
2055
-
2056
- var _validate2 = _interopRequireDefault(_validate);
2057
-
2058
- var _navButtons = __webpack_require__(3);
2059
-
2060
- var _navButtons2 = _interopRequireDefault(_navButtons);
2061
-
2062
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2063
-
2064
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2065
-
2066
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2067
-
2068
- 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; }
2069
-
2070
- var DeployStep = function (_Component) {
2071
- _inherits(DeployStep, _Component);
2072
-
2073
- function DeployStep() {
2074
- _classCallCheck(this, DeployStep);
2075
-
2076
- return _possibleConstructorReturn(this, (DeployStep.__proto__ || Object.getPrototypeOf(DeployStep)).apply(this, arguments));
2077
- }
2078
-
2079
- _createClass(DeployStep, [{
2080
- key: 'componentDidMount',
2081
- value: function componentDidMount() {
2082
- var _props = this.props,
2083
- step = _props.step,
2084
- change = _props.change,
2085
- formValues = _props.formValues;
2086
-
2087
- change('deployment', formValues.deployment || Object.keys(step.options)[0]);
2088
- }
2089
- }, {
2090
- key: 'render',
2091
- value: function render() {
2092
- var _props2 = this.props,
2093
- inputs = _props2.inputs,
2094
- handleSubmit = _props2.handleSubmit,
2095
- nav = _props2.nav,
2096
- reset = _props2.reset,
2097
- step = _props2.step,
2098
- formValues = _props2.formValues;
2099
-
2100
- return _react2.default.createElement(
2101
- 'form',
2102
- { onKeyPress: function onKeyPress(e) {
2103
- return e.charCode === 13 ? e.preventDefault() : null;
2104
- } },
2105
- _react2.default.createElement(
2106
- 'div',
2107
- { style: { fontSize: 20 } },
2108
- 'Save and Deploy Integration'
2109
- ),
2110
- _react2.default.createElement('br', null),
2111
- _react2.default.createElement(
2112
- 'div',
2113
- { style: { marginLeft: 16 } },
2114
- _react2.default.createElement(_reduxForm.Field, { name: 'deployment', component: inputs.rfRadioGroup, label: 'Deployment Type',
2115
- options: step.options
2116
- }),
2117
- _react2.default.createElement('br', null),
2118
- step.options && formValues.deployment === 'scheduled' ? _react2.default.createElement(
2119
- 'div',
2120
- { style: { marginLeft: 16 } },
2121
- _react2.default.createElement(
2122
- 'div',
2123
- null,
2124
- 'Minutes'
2125
- ),
2126
- _react2.default.createElement(_reduxForm.Field, { name: 'scheduleMinutes', type: 'text', component: inputs.rfInput, label: '0-59 or *' }),
2127
- _react2.default.createElement(
2128
- 'div',
2129
- { style: { marginTop: 8 } },
2130
- 'Hours'
2131
- ),
2132
- _react2.default.createElement(_reduxForm.Field, { name: 'scheduleHours', type: 'text', component: inputs.rfInput, label: '0-23 or *' }),
2133
- _react2.default.createElement(
2134
- 'div',
2135
- { style: { marginTop: 8 } },
2136
- 'Days'
2137
- ),
2138
- _react2.default.createElement(_reduxForm.Field, { name: 'scheduleDays', type: 'text', component: inputs.rfInput, label: '1-31 or *' })
2139
- ) : null
2140
- ),
2141
- _react2.default.createElement('br', null),
2142
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
2143
- _react2.default.createElement('br', null),
2144
- _react2.default.createElement('br', null)
2145
- );
2146
- }
2147
- }]);
2148
-
2149
- return DeployStep;
2150
- }(_react.Component);
2151
-
2152
- exports.default = (0, _reduxForm.reduxForm)({
2153
- form: 'wizard',
2154
- destroyOnUnmount: false,
2155
- forceUnregisterOnUnmount: true,
2156
- touchOnBlur: false,
2157
- validate: _validate2.default
2158
- })(DeployStep);
2159
-
2160
- /***/ },
2161
- /* 14 */
2162
- /***/ function(module, exports, __webpack_require__) {
2163
-
2164
- 'use strict';
2165
-
2166
- Object.defineProperty(exports, "__esModule", {
2167
- value: true
2168
- });
2169
-
2170
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2171
-
2172
- var _react = __webpack_require__(1);
2173
-
2174
- var _react2 = _interopRequireDefault(_react);
2175
-
2176
- var _reduxForm = __webpack_require__(2);
2177
-
2178
- var _validate = __webpack_require__(4);
2179
-
2180
- var _validate2 = _interopRequireDefault(_validate);
2181
-
2182
- var _navButtons = __webpack_require__(3);
2183
-
2184
- var _navButtons2 = _interopRequireDefault(_navButtons);
2185
-
2186
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2187
-
2188
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2189
-
2190
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2191
-
2192
- 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; }
2193
-
2194
- var renderError = function renderError(_ref) {
2195
- var _ref$meta = _ref.meta,
2196
- touched = _ref$meta.touched,
2197
- error = _ref$meta.error;
2198
- return touched && error ? _react2.default.createElement(
2199
- 'div',
2200
- null,
2201
- _react2.default.createElement(
2202
- 'span',
2203
- null,
2204
- error
2205
- ),
2206
- _react2.default.createElement('br', null),
2207
- _react2.default.createElement('br', null)
2208
- ) : false;
2209
- };
2210
-
2211
- var EnvironmentStep = function (_Component) {
2212
- _inherits(EnvironmentStep, _Component);
2213
-
2214
- function EnvironmentStep() {
2215
- _classCallCheck(this, EnvironmentStep);
2216
-
2217
- var _this = _possibleConstructorReturn(this, (EnvironmentStep.__proto__ || Object.getPrototypeOf(EnvironmentStep)).call(this));
2218
-
2219
- _this.state = {
2220
- checking: false,
2221
- checked: false
2222
- };
2223
- return _this;
2224
- }
2225
-
2226
- _createClass(EnvironmentStep, [{
2227
- key: 'componentDidMount',
2228
- value: function componentDidMount() {
2229
- var _props = this.props,
2230
- step = _props.step,
2231
- change = _props.change,
2232
- formValues = _props.formValues;
2233
-
2234
- change(step.mode + 'Endpoint', formValues[step.mode + 'Endpoint'] || 'http://');
2235
- }
2236
- }, {
2237
- key: 'check',
2238
- value: function check() {
2239
- var _this2 = this;
2240
-
2241
- //this.props.actions.callGetWizardSourceData(this.props.hasEndpoint, this.props.step.mode)
2242
- this.setState({ checking: true, checked: false });
2243
- setTimeout(function () {
2244
- _this2.setState({ checking: false, checked: true });
2245
- }, 1000);
2246
- }
2247
- }, {
2248
- key: 'render',
2249
- value: function render() {
2250
- var _this3 = this;
2251
-
2252
- var _props2 = this.props,
2253
- inputs = _props2.inputs,
2254
- step = _props2.step,
2255
- handleSubmit = _props2.handleSubmit,
2256
- nav = _props2.nav,
2257
- reset = _props2.reset;
2258
-
2259
- var Button = inputs.Button;
2260
- var Spinner = inputs.Spinner;
2261
- return _react2.default.createElement(
2262
- 'form',
2263
- { onKeyPress: function onKeyPress(e) {
2264
- return e.charCode === 13 ? e.preventDefault() : null;
2265
- } },
2266
- _react2.default.createElement(
2267
- 'div',
2268
- { style: { fontSize: 20 } },
2269
- step.mode.charAt(0).toUpperCase() + step.mode.slice(1),
2270
- ': Define ',
2271
- step.provider,
2272
- ' Environment'
2273
- ),
2274
- _react2.default.createElement('br', null),
2275
- _react2.default.createElement(
2276
- 'div',
2277
- { style: { marginLeft: 16 } },
2278
- _react2.default.createElement(
2279
- 'div',
2280
- null,
2281
- _react2.default.createElement(
2282
- 'div',
2283
- { style: { display: 'inline-block' } },
2284
- _react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Endpoint', type: 'text', component: inputs.rfInput, label: step.provider + ' Endpoint' })
2285
- ),
2286
- !step.credentials ? _react2.default.createElement(
2287
- Button,
2288
- {
2289
- icon: 'sync',
2290
- iconAlign: 'left',
2291
- onClick: function onClick() {
2292
- return _this3.check();
2293
- },
2294
- style: {
2295
- marginLeft: 8,
2296
- marginBottom: 2,
2297
- height: 30,
2298
- lineHeight: '10px'
2299
- }
2300
- },
2301
- 'Test Connection'
2302
- ) : null,
2303
- _react2.default.createElement(
2304
- 'div',
2305
- { style: { display: 'inline-block', marginLeft: 12 } },
2306
- this.state.checking ? _react2.default.createElement(Spinner, null) : null,
2307
- this.state.checked ? _react2.default.createElement(
2308
- 'span',
2309
- null,
2310
- 'Status: 200 OK'
2311
- ) : null
2312
- )
2313
- )
2314
- ),
2315
- step.credentials ? _react2.default.createElement(
2316
- 'div',
2317
- { style: { marginLeft: 16 } },
2318
- _react2.default.createElement('br', null),
2319
- _react2.default.createElement(
2320
- 'label',
2321
- null,
2322
- step.provider,
2323
- ' Credentials'
2324
- ),
2325
- _react2.default.createElement('br', null),
2326
- _react2.default.createElement(
2327
- 'div',
2328
- { style: { display: 'inline-block', marginLeft: 16 } },
2329
- step.credentials.map(function (cred, index) {
2330
- return _react2.default.createElement(
2331
- 'div',
2332
- { key: index, style: { marginTop: 8 } },
2333
- _react2.default.createElement(_reduxForm.Field, { name: '' + step.mode + cred.name, label: step.provider + ' ' + cred.name, type: 'text', component: inputs.rfInput })
2334
- );
2335
- })
2336
- ),
2337
- _react2.default.createElement(
2338
- Button,
2339
- {
2340
- icon: 'sync',
2341
- iconAlign: 'left',
2342
- onClick: function onClick() {
2343
- return _this3.check();
2344
- },
2345
- style: {
2346
- marginLeft: 8,
2347
- marginBottom: 2,
2348
- height: 30,
2349
- lineHeight: '10px'
2350
- }
2351
- },
2352
- 'Test Connection'
2353
- )
2354
- ) : null,
2355
- _react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Environment', component: renderError }),
2356
- _react2.default.createElement('br', null),
2357
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
2358
- _react2.default.createElement('br', null),
2359
- _react2.default.createElement('br', null)
2360
- );
2361
- }
2362
- }]);
2363
-
2364
- return EnvironmentStep;
2365
- }(_react.Component);
2366
-
2367
- exports.default = (0, _reduxForm.reduxForm)({
2368
- form: 'wizard',
2369
- destroyOnUnmount: false,
2370
- forceUnregisterOnUnmount: true,
2371
- touchOnBlur: false,
2372
- validate: _validate2.default
2373
- })(EnvironmentStep);
2374
-
2375
- /***/ },
2376
- /* 15 */
2377
- /***/ function(module, exports, __webpack_require__) {
2378
-
2379
- 'use strict';
2380
-
2381
- Object.defineProperty(exports, "__esModule", {
2382
- value: true
2383
- });
2384
-
2385
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2386
-
2387
- var _react = __webpack_require__(1);
2388
-
2389
- var _react2 = _interopRequireDefault(_react);
2390
-
2391
- var _reduxForm = __webpack_require__(2);
2392
-
2393
- var _validate = __webpack_require__(4);
2394
-
2395
- var _validate2 = _interopRequireDefault(_validate);
2396
-
2397
- var _navButtons = __webpack_require__(3);
2398
-
2399
- var _navButtons2 = _interopRequireDefault(_navButtons);
2400
-
2401
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2402
-
2403
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2404
-
2405
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2406
-
2407
- 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; }
2408
-
2409
- var FilterStep = function (_Component) {
2410
- _inherits(FilterStep, _Component);
2411
-
2412
- function FilterStep() {
2413
- _classCallCheck(this, FilterStep);
2414
-
2415
- return _possibleConstructorReturn(this, (FilterStep.__proto__ || Object.getPrototypeOf(FilterStep)).apply(this, arguments));
2416
- }
2417
-
2418
- _createClass(FilterStep, [{
2419
- key: 'componentDidMount',
2420
- value: function componentDidMount() {
2421
- var _props = this.props,
2422
- change = _props.change,
2423
- formValues = _props.formValues;
2424
-
2425
- change('filter', formValues.filter || 'all');
2426
- }
2427
- }, {
2428
- key: 'render',
2429
- value: function render() {
2430
- var _props2 = this.props,
2431
- inputs = _props2.inputs,
2432
- handleSubmit = _props2.handleSubmit,
2433
- nav = _props2.nav,
2434
- step = _props2.step,
2435
- reset = _props2.reset;
2436
-
2437
- return _react2.default.createElement(
2438
- 'form',
2439
- { onSubmit: handleSubmit, onKeyPress: function onKeyPress(e) {
2440
- return e.charCode === 13 ? e.preventDefault() : null;
2441
- } },
2442
- _react2.default.createElement(
2443
- 'div',
2444
- { style: { fontSize: 20 } },
2445
- 'Source: Filter ',
2446
- step.provider,
2447
- ' Data'
2448
- ),
2449
- _react2.default.createElement('br', null),
2450
- _react2.default.createElement(
2451
- 'div',
2452
- { style: { marginLeft: 16 } },
2453
- _react2.default.createElement(_reduxForm.Field, { name: 'filter', component: inputs.rfRadioGroup, label: 'Data Filter Type',
2454
- options: { all: 'All Data', changed: 'Changed Data Since Last Run' }
2455
- })
2456
- ),
2457
- _react2.default.createElement('br', null),
2458
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
2459
- _react2.default.createElement('br', null),
2460
- _react2.default.createElement('br', null)
2461
- );
2462
- }
2463
- }]);
2464
-
2465
- return FilterStep;
2466
- }(_react.Component);
2467
-
2468
- exports.default = (0, _reduxForm.reduxForm)({
2469
- form: 'wizard',
2470
- destroyOnUnmount: false,
2471
- forceUnregisterOnUnmount: true,
2472
- touchOnBlur: false,
2473
- validate: _validate2.default
2474
- })(FilterStep);
2475
-
2476
- /***/ },
2477
- /* 16 */
2478
- /***/ function(module, exports, __webpack_require__) {
2479
-
2480
- 'use strict';
2481
-
2482
- Object.defineProperty(exports, "__esModule", {
2483
- value: true
2484
- });
2485
-
2486
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2487
-
2488
- var _react = __webpack_require__(1);
2489
-
2490
- var _react2 = _interopRequireDefault(_react);
2491
-
2492
- var _reduxForm = __webpack_require__(2);
2493
-
2494
- var _validate = __webpack_require__(4);
2495
-
2496
- var _validate2 = _interopRequireDefault(_validate);
2497
-
2498
- var _navButtons = __webpack_require__(3);
2499
-
2500
- var _navButtons2 = _interopRequireDefault(_navButtons);
2501
-
2502
- var _mapAccordion = __webpack_require__(21);
2503
-
2504
- var _mapAccordion2 = _interopRequireDefault(_mapAccordion);
2505
-
2506
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2507
-
2508
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2509
-
2510
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2511
-
2512
- 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; }
2513
-
2514
- var mappingPicker = function (_Component) {
2515
- _inherits(mappingPicker, _Component);
2516
-
2517
- function mappingPicker() {
2518
- _classCallCheck(this, mappingPicker);
2519
-
2520
- var _this = _possibleConstructorReturn(this, (mappingPicker.__proto__ || Object.getPrototypeOf(mappingPicker)).call(this));
2521
-
2522
- _this.state = {
2523
- selectedSourceEntity: null,
2524
- selectedDestinationEntity: null,
2525
- selectedSourceField: null,
2526
- shiftPressed: false
2527
- };
2528
- _this.shiftDown = _this.shiftDown.bind(_this);
2529
- _this.shiftUp = _this.shiftUp.bind(_this);
2530
- return _this;
2531
- }
2532
-
2533
- _createClass(mappingPicker, [{
2534
- key: 'componentDidMount',
2535
- value: function componentDidMount() {
2536
- document.addEventListener("keydown", this.shiftDown, false);
2537
- document.addEventListener("keyup", this.shiftUp, false);
2538
- }
2539
- }, {
2540
- key: 'componentWillUnmount',
2541
- value: function componentWillUnmount() {
2542
- document.removeEventListener("keydown", this.shiftDown, false);
2543
- document.removeEventListener("keyup", this.shiftUp, false);
2544
- }
2545
- }, {
2546
- key: 'shiftDown',
2547
- value: function shiftDown(e) {
2548
- if (e.keyCode === 16) {
2549
- this.setState({ shiftPressed: true });
2550
- }
2551
- }
2552
- }, {
2553
- key: 'shiftUp',
2554
- value: function shiftUp(e) {
2555
- if (e.keyCode === 16) {
2556
- this.setState({ shiftPressed: false });
2557
- }
2558
- }
2559
- }, {
2560
- key: 'onSelectSourceField',
2561
- value: function onSelectSourceField(entity, field) {
2562
- //const { input, change, mappings } = this.props;
2563
- //input.onChange(value);
2564
- this.setState({
2565
- selectedSourceField: field,
2566
- selectedSourceEntity: entity
2567
- });
2568
- }
2569
- }, {
2570
- key: 'onSelectDestinationField',
2571
- value: function onSelectDestinationField(entity, field) {
2572
- var _props = this.props,
2573
- change = _props.change,
2574
- mappings = _props.mappings;
2575
-
2576
- if (this.state.selectedSourceField) {
2577
- var obj = Object.assign({}, mappings) || {};
2578
- obj[this.state.selectedSourceEntity + '.' + this.state.selectedSourceField] = entity + '.' + field;
2579
- change('mappings', obj);
2580
- this.setState({
2581
- selectedSourceEntity: null,
2582
- selectedSourceField: null
2583
- });
2584
- }
2585
- }
2586
- }, {
2587
- key: 'render',
2588
- value: function render() {
2589
- var _this2 = this;
2590
-
2591
- var _props2 = this.props,
2592
- includedSourceFields = _props2.includedSourceFields,
2593
- includedDestinationFields = _props2.includedDestinationFields,
2594
- mappings = _props2.mappings;
2595
-
2596
-
2597
- return _react2.default.createElement(
2598
- 'div',
2599
- null,
2600
- includedSourceFields && includedDestinationFields ? _react2.default.createElement(
2601
- 'div',
2602
- { style: { position: 'relative', width: 740 } },
2603
- _react2.default.createElement(
2604
- 'div',
2605
- { style: { display: 'inline-block' } },
2606
- _react2.default.createElement(
2607
- 'h5',
2608
- { style: { height: 18, lineHeight: '21px' } },
2609
- 'Source Schema: ',
2610
- this.state.selectedSourceEntity ? null : _react2.default.createElement(
2611
- 'span',
2612
- null,
2613
- '(click field to select)'
2614
- )
2615
- ),
2616
- includedSourceFields ? _react2.default.createElement(_mapAccordion2.default, { values: includedSourceFields, selectedEntity: this.state.selectedSourceEntity,
2617
- pickEntity: function pickEntity(v) {
2618
- _this2.setState({ selectedSourceEntity: v });
2619
- }, selectedField: this.state.selectedSourceField,
2620
- clickField: function clickField(entity, field) {
2621
- return _this2.onSelectSourceField(entity, field);
2622
- }, mappings: mappings, mode: 'source'
2623
- }) : null
2624
- ),
2625
- _react2.default.createElement(
2626
- 'div',
2627
- { style: { display: 'inline-block', marginLeft: 40 } },
2628
- _react2.default.createElement(
2629
- 'h5',
2630
- null,
2631
- 'Destination Schema: ',
2632
- this.state.selectedSourceEntity ? _react2.default.createElement(
2633
- 'span',
2634
- null,
2635
- '(click field to select)'
2636
- ) : null
2637
- ),
2638
- includedDestinationFields ? _react2.default.createElement(_mapAccordion2.default, { values: includedDestinationFields, selectedEntity: this.state.selectedDestinationEntity,
2639
- pickEntity: function pickEntity(v) {
2640
- _this2.setState({ selectedDestinationEntity: v });
2641
- }, mode: 'destination',
2642
- clickField: function clickField(entity, field) {
2643
- return _this2.onSelectDestinationField(entity, field);
2644
- }, mappings: mappings,
2645
- selectedField: this.state.selectedSourceField
2646
- }) : null
2647
- ),
2648
- _react2.default.createElement(
2649
- 'div',
2650
- { style: { position: 'absolute', left: 356, top: 146, fontSize: 34, color: '#AAAAAA' } },
2651
- '\u25B6'
2652
- )
2653
- ) : null
2654
- );
2655
- }
2656
- }]);
2657
-
2658
- return mappingPicker;
2659
- }(_react.Component);
2660
-
2661
- var MapStep = function (_Component2) {
2662
- _inherits(MapStep, _Component2);
2663
-
2664
- function MapStep() {
2665
- _classCallCheck(this, MapStep);
2666
-
2667
- var _this3 = _possibleConstructorReturn(this, (MapStep.__proto__ || Object.getPrototypeOf(MapStep)).call(this));
2668
-
2669
- _this3.clearAllMappings = _this3.clearAllMappings.bind(_this3);
2670
- _this3.autoMap = _this3.autoMap.bind(_this3);
2671
- _this3.clearOneMapping = _this3.clearOneMapping.bind(_this3);
2672
- return _this3;
2673
- }
2674
-
2675
- _createClass(MapStep, [{
2676
- key: 'autoMap',
2677
- value: function autoMap() {
2678
- // this function needs to dig deeper and check every field against every mapping
2679
- var _props3 = this.props,
2680
- formValues = _props3.formValues,
2681
- change = _props3.change,
2682
- step = _props3.step;
2683
-
2684
- var sourceSchema = formValues['sourceSchema'] || {};
2685
- var obj = {};
2686
- for (var key in step.autoMapData) {
2687
- if (sourceSchema && sourceSchema[key.split('.')[0]]) {
2688
- obj[key] = step.autoMapData[key];
2689
- }
2690
- }
2691
- change('mappings', obj);
2692
- }
2693
- }, {
2694
- key: 'clearAllMappings',
2695
- value: function clearAllMappings() {
2696
- this.props.change('mappings', {});
2697
- }
2698
- }, {
2699
- key: 'clearOneMapping',
2700
- value: function clearOneMapping(key) {
2701
- var formValues = this.props.formValues;
2702
-
2703
- var mappings = formValues['mappings'] || {};
2704
- var obj = Object.assign({}, mappings);
2705
- delete obj[key];
2706
- this.props.change('mappings', obj);
2707
- }
2708
- }, {
2709
- key: 'isEmptyObject',
2710
- value: function isEmptyObject(o) {
2711
- var obj = o || {};
2712
- for (var prop in obj) {
2713
- if (Object.prototype.hasOwnProperty.call(obj, prop)) {
2714
- return false;
2715
- }
2716
- }
2717
- return true;
2718
- }
2719
- }, {
2720
- key: 'render',
2721
- value: function render() {
2722
- var _props4 = this.props,
2723
- inputs = _props4.inputs,
2724
- handleSubmit = _props4.handleSubmit,
2725
- nav = _props4.nav,
2726
- formValues = _props4.formValues,
2727
- change = _props4.change,
2728
- step = _props4.step,
2729
- reset = _props4.reset;
2730
-
2731
- var sourceSchema = formValues['sourceSchema'] || {};
2732
- var destinationSchema = formValues['destinationSchema'] || {};
2733
- var mappings = formValues['mappings'] || {};
2734
- var Button = inputs.Button;
2735
- var MapTable = inputs.MapTable;
2736
- return _react2.default.createElement(
2737
- 'form',
2738
- { onKeyPress: function onKeyPress(e) {
2739
- return e.charCode === 13 ? e.preventDefault() : null;
2740
- } },
2741
- _react2.default.createElement(
2742
- 'div',
2743
- { style: { fontSize: 20 } },
2744
- 'Map ',
2745
- step.sourceProvider,
2746
- ' to ',
2747
- step.destinationProvider
2748
- ),
2749
- _react2.default.createElement('br', null),
2750
- step.autoMapData ? _react2.default.createElement(
2751
- Button,
2752
- { type: 'brand', onClick: this.autoMap, style: { marginRight: 5 } },
2753
- 'Automap'
2754
- ) : null,
2755
- _react2.default.createElement(
2756
- Button,
2757
- { type: 'brand', onClick: this.clearAllMappings },
2758
- 'Clear All Mappings'
2759
- ),
2760
- _react2.default.createElement('br', null),
2761
- _react2.default.createElement('br', null),
2762
- _react2.default.createElement(_reduxForm.Field, { name: 'mappings', component: mappingPicker, includedSourceFields: sourceSchema,
2763
- includedDestinationFields: destinationSchema, change: change, mappings: mappings, step: step }),
2764
- _react2.default.createElement('br', null),
2765
- !this.isEmptyObject(mappings) ? _react2.default.createElement(
2766
- 'div',
2767
- null,
2768
- _react2.default.createElement(MapTable, { mappings: mappings, clearOneMapping: this.clearOneMapping })
2769
- ) : null,
2770
- _react2.default.createElement('br', null),
2771
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
2772
- _react2.default.createElement('br', null),
2773
- _react2.default.createElement('br', null)
2774
- );
2775
- }
2776
- }]);
2777
-
2778
- return MapStep;
2779
- }(_react.Component);
2780
-
2781
- exports.default = (0, _reduxForm.reduxForm)({
2782
- form: 'wizard',
2783
- destroyOnUnmount: false,
2784
- forceUnregisterOnUnmount: true,
2785
- touchOnBlur: false,
2786
- validate: _validate2.default
2787
- })(MapStep);
2788
-
2789
- /***/ },
2790
- /* 17 */
2791
- /***/ function(module, exports, __webpack_require__) {
2792
-
2793
- 'use strict';
2794
-
2795
- Object.defineProperty(exports, "__esModule", {
2796
- value: true
2797
- });
2798
-
2799
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2800
-
2801
- var _react = __webpack_require__(1);
2802
-
2803
- var _react2 = _interopRequireDefault(_react);
2804
-
2805
- var _reduxForm = __webpack_require__(2);
2806
-
2807
- var _validate = __webpack_require__(4);
2808
-
2809
- var _validate2 = _interopRequireDefault(_validate);
2810
-
2811
- var _navButtons = __webpack_require__(3);
2812
-
2813
- var _navButtons2 = _interopRequireDefault(_navButtons);
2814
-
2815
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2816
-
2817
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2818
-
2819
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2820
-
2821
- 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; }
2822
-
2823
- var renderError = function renderError(_ref) {
2824
- var _ref$meta = _ref.meta,
2825
- touched = _ref$meta.touched,
2826
- error = _ref$meta.error;
2827
- return touched && error ? _react2.default.createElement(
2828
- 'div',
2829
- null,
2830
- _react2.default.createElement(
2831
- 'span',
2832
- null,
2833
- error
2834
- ),
2835
- _react2.default.createElement('br', null),
2836
- _react2.default.createElement('br', null)
2837
- ) : false;
2838
- };
2839
-
2840
- var NameStep = function (_Component) {
2841
- _inherits(NameStep, _Component);
2842
-
2843
- function NameStep() {
2844
- _classCallCheck(this, NameStep);
2845
-
2846
- return _possibleConstructorReturn(this, (NameStep.__proto__ || Object.getPrototypeOf(NameStep)).apply(this, arguments));
2847
- }
2848
-
2849
- _createClass(NameStep, [{
2850
- key: 'componentDidMount',
2851
- value: function componentDidMount() {
2852
- var _props = this.props,
2853
- step = _props.step,
2854
- change = _props.change,
2855
- formValues = _props.formValues;
2856
-
2857
- change('title', formValues.title || step.name);
2858
- }
2859
- }, {
2860
- key: 'render',
2861
- value: function render() {
2862
- var _props2 = this.props,
2863
- inputs = _props2.inputs,
2864
- handleSubmit = _props2.handleSubmit,
2865
- nav = _props2.nav,
2866
- reset = _props2.reset;
2867
-
2868
- return _react2.default.createElement(
2869
- 'form',
2870
- { onKeyPress: function onKeyPress(e) {
2871
- return e.charCode === 13 ? e.preventDefault() : null;
2872
- } },
2873
- _react2.default.createElement(
2874
- 'div',
2875
- { style: { fontSize: 20 } },
2876
- 'Name your Integration'
2877
- ),
2878
- _react2.default.createElement('br', null),
2879
- _react2.default.createElement(
2880
- 'div',
2881
- { style: { marginLeft: 16 } },
2882
- _react2.default.createElement(_reduxForm.Field, { name: 'title', type: 'text', component: inputs.rfInput, label: 'Name' })
2883
- ),
2884
- _react2.default.createElement('br', null),
2885
- _react2.default.createElement(_reduxForm.Field, { name: 'customer', component: renderError }),
2886
- _react2.default.createElement('br', null),
2887
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, reset: reset, nav: nav, inputs: inputs }),
2888
- _react2.default.createElement('br', null),
2889
- _react2.default.createElement('br', null)
2890
- );
2891
- }
2892
- }]);
2893
-
2894
- return NameStep;
2895
- }(_react.Component);
2896
-
2897
- exports.default = (0, _reduxForm.reduxForm)({
2898
- form: 'wizard',
2899
- destroyOnUnmount: false,
2900
- forceUnregisterOnUnmount: true,
2901
- touchOnBlur: false,
2902
- validate: _validate2.default
2903
- })(NameStep);
2904
-
2905
- /***/ },
2906
- /* 18 */
2907
- /***/ function(module, exports, __webpack_require__) {
2908
-
2909
- 'use strict';
2910
-
2911
- Object.defineProperty(exports, "__esModule", {
2912
- value: true
2913
- });
2914
-
2915
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2916
-
2917
- var _react = __webpack_require__(1);
2918
-
2919
- var _react2 = _interopRequireDefault(_react);
2920
-
2921
- var _reduxForm = __webpack_require__(2);
2922
-
2923
- var _validate = __webpack_require__(4);
2924
-
2925
- var _validate2 = _interopRequireDefault(_validate);
2926
-
2927
- var _navButtons = __webpack_require__(3);
2928
-
2929
- var _navButtons2 = _interopRequireDefault(_navButtons);
2930
-
2931
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2932
-
2933
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2934
-
2935
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2936
-
2937
- 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; }
2938
-
2939
- var PhaseStep = function (_Component) {
2940
- _inherits(PhaseStep, _Component);
2941
-
2942
- function PhaseStep() {
2943
- _classCallCheck(this, PhaseStep);
2944
-
2945
- return _possibleConstructorReturn(this, (PhaseStep.__proto__ || Object.getPrototypeOf(PhaseStep)).apply(this, arguments));
2946
- }
2947
-
2948
- _createClass(PhaseStep, [{
2949
- key: 'componentDidMount',
2950
- value: function componentDidMount() {
2951
- var _props = this.props,
2952
- change = _props.change,
2953
- formValues = _props.formValues;
2954
-
2955
- change('phase', formValues.phase || 'initial');
2956
- }
2957
- }, {
2958
- key: 'render',
2959
- value: function render() {
2960
- var _props2 = this.props,
2961
- inputs = _props2.inputs,
2962
- handleSubmit = _props2.handleSubmit,
2963
- nav = _props2.nav,
2964
- reset = _props2.reset;
2965
-
2966
- return _react2.default.createElement(
2967
- 'form',
2968
- { onKeyPress: function onKeyPress(e) {
2969
- return e.charCode === 13 ? e.preventDefault() : null;
2970
- } },
2971
- _react2.default.createElement(
2972
- 'div',
2973
- { style: { fontSize: 20 } },
2974
- 'Choose Implementation Phase'
2975
- ),
2976
- _react2.default.createElement('br', null),
2977
- _react2.default.createElement(
2978
- 'div',
2979
- { style: { marginLeft: 16 } },
2980
- _react2.default.createElement(_reduxForm.Field, { name: 'phase', component: inputs.rfRadioGroup, label: 'Implementation Phase',
2981
- options: { initial: 'Initial Connection', testing: 'Build for Testing', production: 'Build for Production' }
2982
- })
2983
- ),
2984
- _react2.default.createElement('br', null),
2985
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
2986
- _react2.default.createElement('br', null),
2987
- _react2.default.createElement('br', null)
2988
- );
2989
- }
2990
- }]);
2991
-
2992
- return PhaseStep;
2993
- }(_react.Component);
2994
-
2995
- exports.default = (0, _reduxForm.reduxForm)({
2996
- form: 'wizard',
2997
- destroyOnUnmount: false,
2998
- forceUnregisterOnUnmount: true,
2999
- touchOnBlur: false,
3000
- validate: _validate2.default
3001
- })(PhaseStep);
3002
-
3003
- /***/ },
3004
- /* 19 */
3005
- /***/ function(module, exports, __webpack_require__) {
3006
-
3007
- 'use strict';
3008
-
3009
- Object.defineProperty(exports, "__esModule", {
3010
- value: true
3011
- });
3012
-
3013
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
3014
-
3015
- var _react = __webpack_require__(1);
3016
-
3017
- var _react2 = _interopRequireDefault(_react);
3018
-
3019
- var _reduxForm = __webpack_require__(2);
3020
-
3021
- var _validate = __webpack_require__(4);
3022
-
3023
- var _validate2 = _interopRequireDefault(_validate);
3024
-
3025
- var _navButtons = __webpack_require__(3);
3026
-
3027
- var _navButtons2 = _interopRequireDefault(_navButtons);
3028
-
3029
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
3030
-
3031
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3032
-
3033
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
3034
-
3035
- 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; }
3036
-
3037
- var PreviewStep = function (_Component) {
3038
- _inherits(PreviewStep, _Component);
3039
-
3040
- function PreviewStep() {
3041
- _classCallCheck(this, PreviewStep);
3042
-
3043
- var _this = _possibleConstructorReturn(this, (PreviewStep.__proto__ || Object.getPrototypeOf(PreviewStep)).call(this));
3044
-
3045
- _this.state = {
3046
- previewing: false,
3047
- previewed: false
3048
- };
3049
- _this.preview = _this.preview.bind(_this);
3050
- return _this;
3051
- }
3052
-
3053
- _createClass(PreviewStep, [{
3054
- key: 'preview',
3055
- value: function preview() {
3056
- var _this2 = this;
3057
-
3058
- this.setState({ previewing: true });
3059
- setTimeout(function () {
3060
- _this2.setState({ previewed: true });
3061
- }, 1000);
3062
- }
3063
- }, {
3064
- key: 'isEmptyObject',
3065
- value: function isEmptyObject(o) {
3066
- var obj = o || {};
3067
- for (var prop in obj) {
3068
- if (Object.prototype.hasOwnProperty.call(obj, prop)) {
3069
- return false;
3070
- }
3071
- }
3072
- return true;
3073
- }
3074
- }, {
3075
- key: 'render',
3076
- value: function render() {
3077
- var _props = this.props,
3078
- inputs = _props.inputs,
3079
- handleSubmit = _props.handleSubmit,
3080
- nav = _props.nav,
3081
- step = _props.step,
3082
- reset = _props.reset,
3083
- formValues = _props.formValues;
3084
- var mappings = formValues.mappings;
3085
- var Button = inputs.Button,
3086
- Spinner = inputs.Spinner,
3087
- PreviewTable = inputs.PreviewTable;
3088
-
3089
- return _react2.default.createElement(
3090
- 'form',
3091
- { onKeyPress: function onKeyPress(e) {
3092
- return e.charCode === 13 ? e.preventDefault() : null;
3093
- } },
3094
- _react2.default.createElement(
3095
- 'div',
3096
- { style: { fontSize: 20 } },
3097
- 'Destination Data Preview'
3098
- ),
3099
- _react2.default.createElement('br', null),
3100
- _react2.default.createElement(
3101
- Button,
3102
- { type: 'brand', onClick: this.preview },
3103
- 'Preview Integration'
3104
- ),
3105
- this.state.previewing ? _react2.default.createElement(
3106
- 'div',
3107
- { style: { display: 'inline-block', marginLeft: 18 } },
3108
- !this.state.previewed ? _react2.default.createElement(Spinner, null) : null
3109
- ) : null,
3110
- _react2.default.createElement('br', null),
3111
- _react2.default.createElement('br', null),
3112
- _react2.default.createElement(
3113
- 'div',
3114
- null,
3115
- 'No data will be written during the preview process.'
3116
- ),
3117
- _react2.default.createElement('br', null),
3118
- !this.isEmptyObject(mappings) && this.state.previewed ? _react2.default.createElement(PreviewTable, { mappings: mappings, step: step }) : null,
3119
- _react2.default.createElement('br', null),
3120
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
3121
- _react2.default.createElement('br', null),
3122
- _react2.default.createElement('br', null)
3123
- );
3124
- }
3125
- }]);
3126
-
3127
- return PreviewStep;
3128
- }(_react.Component);
3129
-
3130
- exports.default = (0, _reduxForm.reduxForm)({
3131
- form: 'wizard',
3132
- destroyOnUnmount: false,
3133
- forceUnregisterOnUnmount: true,
3134
- touchOnBlur: false,
3135
- validate: _validate2.default
3136
- })(PreviewStep);
3137
-
3138
- /***/ },
3139
- /* 20 */
3140
- /***/ function(module, exports, __webpack_require__) {
3141
-
3142
- 'use strict';
3143
-
3144
- Object.defineProperty(exports, "__esModule", {
3145
- value: true
3146
- });
3147
-
3148
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
3149
-
3150
- var _react = __webpack_require__(1);
3151
-
3152
- var _react2 = _interopRequireDefault(_react);
3153
-
3154
- var _reduxForm = __webpack_require__(2);
3155
-
3156
- var _validate = __webpack_require__(4);
3157
-
3158
- var _validate2 = _interopRequireDefault(_validate);
3159
-
3160
- var _navButtons = __webpack_require__(3);
3161
-
3162
- var _navButtons2 = _interopRequireDefault(_navButtons);
3163
-
3164
- var _schemaAccordion = __webpack_require__(22);
3165
-
3166
- var _schemaAccordion2 = _interopRequireDefault(_schemaAccordion);
3167
-
3168
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
3169
-
3170
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3171
-
3172
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
3173
-
3174
- 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; }
3175
-
3176
- var SchemaStep = function (_Component) {
3177
- _inherits(SchemaStep, _Component);
3178
-
3179
- function SchemaStep() {
3180
- _classCallCheck(this, SchemaStep);
3181
-
3182
- var _this = _possibleConstructorReturn(this, (SchemaStep.__proto__ || Object.getPrototypeOf(SchemaStep)).call(this));
3183
-
3184
- _this.state = {
3185
- newField: '',
3186
- newEntity: '',
3187
- selectedDataEntity: '',
3188
- innerSelectedEntity: ''
3189
- };
3190
- _this.pickEntity = _this.pickEntity.bind(_this);
3191
- _this.addCustomEntity = _this.addCustomEntity.bind(_this);
3192
- _this.newEntityKeyPress = _this.newEntityKeyPress.bind(_this);
3193
- _this.loadDefault = _this.loadDefault.bind(_this);
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);
3198
- return _this;
3199
- }
3200
-
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
- }, {
3210
- key: 'loadDefault',
3211
- value: function loadDefault() {
3212
- var _props = this.props,
3213
- step = _props.step,
3214
- change = _props.change;
3215
-
3216
- change(step.mode + 'Schema', step.defaultSchema);
3217
- }
3218
- }, {
3219
- key: 'clearAllData',
3220
- value: function clearAllData() {
3221
- var _props2 = this.props,
3222
- step = _props2.step,
3223
- change = _props2.change;
3224
-
3225
- this.setState({ selectedDataEntity: '' });
3226
- change(step.mode + 'Schema', {});
3227
- }
3228
- }, {
3229
- key: 'addCustomEntity',
3230
- value: function addCustomEntity() {
3231
- var _props3 = this.props,
3232
- step = _props3.step,
3233
- change = _props3.change,
3234
- formValues = _props3.formValues;
3235
-
3236
- var includedFields = formValues[step.mode + 'Schema'] || {};
3237
- var obj = Object.assign({}, includedFields) || {};
3238
- obj[this.state.newEntity] = {};
3239
- change(step.mode + 'Schema', obj);
3240
- this.setState({ selectedDataEntity: this.state.newEntity, newEntity: '' });
3241
- }
3242
- }, {
3243
- key: 'addDefaultDataEntity',
3244
- value: function addDefaultDataEntity(v) {
3245
- var _props4 = this.props,
3246
- step = _props4.step,
3247
- change = _props4.change,
3248
- formValues = _props4.formValues;
3249
-
3250
- var includedFields = formValues[step.mode + 'Schema'] || {};
3251
- var obj = Object.assign({}, includedFields) || {};
3252
- obj[v] = step.defaultSchema[v];
3253
- change(step.mode + 'Schema', obj);
3254
- this.setState({ selectedDataEntity: v, innerSelectedEntity: v });
3255
- }
3256
- }, {
3257
- key: 'newEntityKeyPress',
3258
- value: function newEntityKeyPress(e) {
3259
- if (e.charCode === 13) {
3260
- e.preventDefault();
3261
- this.addCustomEntity();
3262
- }
3263
- }
3264
- }, {
3265
- key: 'selectAll',
3266
- value: function selectAll() {
3267
- var _props5 = this.props,
3268
- step = _props5.step,
3269
- change = _props5.change,
3270
- formValues = _props5.formValues;
3271
-
3272
- var includedFields = formValues[step.mode + 'Schema'] || {};
3273
- var obj = Object.assign({}, includedFields) || {};
3274
- obj[this.state.selectedDataEntity] = step.defaultSchema[this.state.selectedDataEntity];
3275
- change(step.mode + 'Schema', obj);
3276
- }
3277
- }, {
3278
- key: 'deselectAll',
3279
- value: function deselectAll() {
3280
- var _props6 = this.props,
3281
- change = _props6.change,
3282
- step = _props6.step,
3283
- formValues = _props6.formValues;
3284
-
3285
- var includedFields = formValues[step.mode + 'Schema'] || {};
3286
- var obj = Object.assign({}, includedFields);
3287
- obj[this.state.selectedDataEntity] = {};
3288
- change(step.mode + 'Schema', obj);
3289
- }
3290
- }, {
3291
- key: 'render',
3292
- value: function render() {
3293
- var _this2 = this;
3294
-
3295
- var _props7 = this.props,
3296
- inputs = _props7.inputs,
3297
- handleSubmit = _props7.handleSubmit,
3298
- nav = _props7.nav,
3299
- formValues = _props7.formValues,
3300
- step = _props7.step,
3301
- reset = _props7.reset,
3302
- change = _props7.change;
3303
-
3304
- var includedFields = formValues[step.mode + 'Schema'] || {};
3305
- var Button = inputs.Button;
3306
- var Input = inputs.Input;
3307
- var Select = inputs.Select;
3308
- var smallButtonStyle = {
3309
- marginLeft: 4,
3310
- height: 22,
3311
- width: 68,
3312
- lineHeight: '20px',
3313
- padding: 0,
3314
- verticalAlign: 'middle',
3315
- marginBottom: 4,
3316
- fontSize: 10
3317
- };
3318
- return _react2.default.createElement(
3319
- 'form',
3320
- { onKeyPress: function onKeyPress(e) {
3321
- return e.charCode === 13 ? e.preventDefault() : null;
3322
- } },
3323
- _react2.default.createElement(
3324
- 'div',
3325
- { style: { fontSize: 20 } },
3326
- step.mode.charAt(0).toUpperCase() + step.mode.slice(1),
3327
- ': Select ',
3328
- step.provider,
3329
- ' Data Definition'
3330
- ),
3331
- _react2.default.createElement('br', null),
3332
- _react2.default.createElement(
3333
- 'div',
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
- ),
3343
- _react2.default.createElement(
3344
- Button,
3345
- { type: 'brand', onClick: this.loadDefault },
3346
- 'Load All Defaults'
3347
- ),
3348
- '\xA0\xA0',
3349
- _react2.default.createElement(
3350
- Button,
3351
- { type: 'brand', onClick: this.clearAllData },
3352
- 'Clear All Data'
3353
- ),
3354
- _react2.default.createElement('br', null),
3355
- _react2.default.createElement('br', null),
3356
- _react2.default.createElement(
3357
- 'div',
3358
- { style: { display: 'inline-block' } },
3359
- _react2.default.createElement(Input, { label: 'Add Data Entity', type: 'text', value: this.state.newEntity, onChange: function onChange(e) {
3360
- return !e.target.value.includes('.') ? _this2.setState({ newEntity: e.target.value }) : {};
3361
- },
3362
- style: { width: 245 }, placeholder: 'Add Custom Data Entity', onKeyPress: this.newEntityKeyPress })
3363
- ),
3364
- _react2.default.createElement(
3365
- Button,
3366
- { type: 'brand', onClick: this.addCustomEntity, disabled: !this.state.newEntity,
3367
- style: {
3368
- marginLeft: 8,
3369
- marginBottom: 2,
3370
- height: 30,
3371
- lineHeight: '10px'
3372
- } },
3373
- 'Add'
3374
- ),
3375
- _react2.default.createElement('br', null),
3376
- _react2.default.createElement('br', null)
3377
- ),
3378
- this.state.selectedDataEntity ? _react2.default.createElement(
3379
- 'div',
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,
3388
- _react2.default.createElement('br', null)
3389
- ) : null,
3390
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
3391
- _react2.default.createElement('br', null),
3392
- _react2.default.createElement('br', null)
3393
- );
3394
- }
3395
- }]);
3396
-
3397
- return SchemaStep;
3398
- }(_react.Component);
3399
-
3400
- exports.default = (0, _reduxForm.reduxForm)({
3401
- form: 'wizard',
3402
- destroyOnUnmount: false,
3403
- forceUnregisterOnUnmount: true,
3404
- touchOnBlur: false,
3405
- validate: _validate2.default
3406
- })(SchemaStep);
3407
-
3408
- /***/ },
3409
- /* 21 */
3410
- /***/ function(module, exports, __webpack_require__) {
3411
-
3412
- 'use strict';
3413
-
3414
- Object.defineProperty(exports, "__esModule", {
3415
- value: true
3416
- });
3417
-
3418
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
3419
-
3420
- var _react = __webpack_require__(1);
3421
-
3422
- var _react2 = _interopRequireDefault(_react);
3423
-
3424
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
3425
-
3426
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3427
-
3428
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
3429
-
3430
- 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; }
3431
-
3432
- var MapAccordion = function (_React$Component) {
3433
- _inherits(MapAccordion, _React$Component);
3434
-
3435
- function MapAccordion() {
3436
- _classCallCheck(this, MapAccordion);
3437
-
3438
- var _this = _possibleConstructorReturn(this, (MapAccordion.__proto__ || Object.getPrototypeOf(MapAccordion)).call(this));
3439
-
3440
- _this.state = {
3441
- innerSelectedEntity: ''
3442
- };
3443
- return _this;
3444
- }
3445
-
3446
- _createClass(MapAccordion, [{
3447
- key: 'scrollToTop',
3448
- value: function scrollToTop(element, scrollDuration, scrollTarget) {
3449
- var initial = element.scrollTop,
3450
- distance = scrollTarget - initial;
3451
- var step = distance / scrollDuration;
3452
- var scrollCount = initial,
3453
- count = scrollDuration;
3454
- function go(newTimestamp) {
3455
- scrollCount += step;
3456
- element.scrollTop = Math.round(scrollCount);
3457
- count--;
3458
- if (count === 0) return;
3459
- window.requestAnimationFrame(go);
3460
- }
3461
- if (step !== 0) {
3462
- window.requestAnimationFrame(go);
3463
- }
3464
- }
3465
- }, {
3466
- key: 'render',
3467
- value: function render() {
3468
- var _this2 = this;
3469
-
3470
- var _props = this.props,
3471
- pickEntity = _props.pickEntity,
3472
- values = _props.values,
3473
- selectedEntity = _props.selectedEntity,
3474
- clickField = _props.clickField,
3475
- mappings = _props.mappings,
3476
- selectedField = _props.selectedField,
3477
- mode = _props.mode;
3478
-
3479
-
3480
- return _react2.default.createElement(
3481
- 'div',
3482
- { ref: function ref(_ref) {
3483
- _this2.main = _ref;
3484
- }, id: 'main',
3485
- style: {
3486
- background: 'white', height: 288, width: 350, overflow: 'scroll',
3487
- border: '1px solid rgb(204, 205, 207)', padding: 12
3488
- }
3489
- },
3490
- Object.keys(values).map(function (entity, i) {
3491
- return _react2.default.createElement(
3492
- 'div',
3493
- { key: i, className: 'accordion-panel',
3494
- style: { display: !Object.keys(values[entity]).every(function (field) {
3495
- return !values[entity][field];
3496
- }) ? 'block' : 'none' }
3497
- },
3498
- _react2.default.createElement(
3499
- 'div',
3500
- { className: 'accordion-panel-header',
3501
- style: { height: 35 },
3502
- onClick: function onClick() {
3503
- _this2.setState({ innerSelectedEntity: selectedEntity === entity && _this2.state.innerSelectedEntity === entity ? '' : entity });
3504
- _this2.scrollToTop(_this2.main, 18, i * 45 + 6);
3505
- pickEntity(entity);
3506
- }
3507
- },
3508
- entity
3509
- ),
3510
- _react2.default.createElement(
3511
- 'div',
3512
- { className: 'accordion-panel-collapse',
3513
- style: {
3514
- height: _this2.state.innerSelectedEntity === entity ? Object.keys(values[entity]).length * 19 + 19 : 0
3515
- }
3516
- },
3517
- _react2.default.createElement('div', { style: { height: 9 } }),
3518
- Object.keys(values[entity]).filter(function (f) {
3519
- return values[entity][f];
3520
- }).map(function (field, ii) {
3521
- return _react2.default.createElement(
3522
- 'div',
3523
- { key: ii, className: mode === 'destination' && !selectedField ? "" : "wizard-schema-field",
3524
- style: {
3525
- paddingLeft: 5,
3526
- background: selectedField && selectedField === field ? '#dfe0e0' : 'initial',
3527
- fontWeight: mode === 'source' && mappings && Object.keys(mappings).includes(entity + '.' + field) ? 'bold' : 'normal',
3528
- color: mode === 'destination' && !selectedField ? 'grey' : 'black'
3529
- },
3530
- onClick: function onClick() {
3531
- return clickField(entity, field);
3532
- }
3533
- },
3534
- field
3535
- );
3536
- }),
3537
- _react2.default.createElement('div', { style: { height: 9 } })
3538
- )
3539
- );
3540
- })
3541
- );
3542
- }
3543
- }]);
3544
-
3545
- return MapAccordion;
3546
- }(_react2.default.Component);
3547
-
3548
- exports.default = MapAccordion;
3549
-
3550
- /***/ },
3551
- /* 22 */
3552
- /***/ function(module, exports, __webpack_require__) {
3553
-
3554
- 'use strict';
3555
-
3556
- Object.defineProperty(exports, "__esModule", {
3557
- value: true
3558
- });
3559
-
3560
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
3561
-
3562
- var _react = __webpack_require__(1);
3563
-
3564
- var _react2 = _interopRequireDefault(_react);
3565
-
3566
- var _reduxForm = __webpack_require__(2);
3567
-
3568
- var _reactAddonsCssTransitionGroup = __webpack_require__(27);
3569
-
3570
- var _reactAddonsCssTransitionGroup2 = _interopRequireDefault(_reactAddonsCssTransitionGroup);
3571
-
3572
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
3573
-
3574
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3575
-
3576
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
3577
-
3578
- 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; }
3579
-
3580
- var SchemaAccordion = function (_React$Component) {
3581
- _inherits(SchemaAccordion, _React$Component);
3582
-
3583
- function SchemaAccordion() {
3584
- _classCallCheck(this, SchemaAccordion);
3585
-
3586
- var _this = _possibleConstructorReturn(this, (SchemaAccordion.__proto__ || Object.getPrototypeOf(SchemaAccordion)).call(this));
3587
-
3588
- _this.state = {
3589
- newField: ''
3590
- };
3591
- _this.addCustomField = _this.addCustomField.bind(_this);
3592
- _this.newFieldKeyPress = _this.newFieldKeyPress.bind(_this);
3593
- return _this;
3594
- }
3595
-
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
- }, {
3624
- key: 'scrollToTop',
3625
- value: function scrollToTop(element, scrollDuration, scrollTarget) {
3626
- var initial = element.scrollTop,
3627
- distance = scrollTarget - initial;
3628
- var step = distance / scrollDuration;
3629
- var scrollCount = initial,
3630
- count = scrollDuration;
3631
- function go(newTimestamp) {
3632
- scrollCount += step;
3633
- element.scrollTop = Math.round(scrollCount);
3634
- count--;
3635
- if (count === 0) return;
3636
- window.requestAnimationFrame(go);
3637
- }
3638
- if (step !== 0) {
3639
- // if already on top
3640
- window.requestAnimationFrame(go);
3641
- }
3642
- }
3643
- }, {
3644
- key: 'render',
3645
- value: function render() {
3646
- var _this2 = this;
3647
-
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;
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
- };
3668
- return _react2.default.createElement(
3669
- 'div',
3670
- { ref: function ref(_ref) {
3671
- _this2.main = _ref;
3672
- }, id: 'main',
3673
- style: {
3674
- background: 'white', height: 350, width: 550, overflow: 'scroll',
3675
- border: '1px solid rgb(204, 205, 207)', padding: 12
3676
- }
3677
- },
3678
- Object.keys(values).map(function (entity, i) {
3679
- return _react2.default.createElement(
3680
- 'div',
3681
- { key: i, className: 'accordion-panel' },
3682
- _react2.default.createElement(
3683
- 'div',
3684
- {
3685
- className: innerSelectedEntity === entity ? "accordion-panel-header accordion-panel-header-selected" : "accordion-panel-header",
3686
- onClick: function onClick() {
3687
- _this2.scrollToTop(_this2.main, 18, i * 58 + 6);
3688
- pickEntity(entity);
3689
- }
3690
- },
3691
- _react2.default.createElement(
3692
- 'div',
3693
- { style: { paddingTop: 8, overflow: 'hidden', display: 'inline-block', width: 227, 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
- )
3719
- ),
3720
- _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(
3727
- 'div',
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
3791
- )
3792
- );
3793
- })
3794
- );
3795
- }
3796
- }]);
3797
-
3798
- return SchemaAccordion;
3799
- }(_react2.default.Component);
3800
-
3801
- exports.default = SchemaAccordion;
3802
-
3803
- /***/ },
3804
- /* 23 */
3805
- /***/ function(module, exports, __webpack_require__) {
3806
-
3807
- 'use strict';
3808
-
3809
- Object.defineProperty(exports, "__esModule", {
3810
- value: true
3811
- });
3812
-
3813
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
3814
-
3815
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
3816
-
3817
- var _react = __webpack_require__(1);
3818
-
3819
- var _react2 = _interopRequireDefault(_react);
3820
-
3821
- var _reduxForm = __webpack_require__(2);
3822
-
3823
- var _reactRedux = __webpack_require__(7);
3824
-
3825
- var _accountStep = __webpack_require__(11);
3826
-
3827
- var _accountStep2 = _interopRequireDefault(_accountStep);
3828
-
3829
- var _phaseStep = __webpack_require__(18);
3830
-
3831
- var _phaseStep2 = _interopRequireDefault(_phaseStep);
3832
-
3833
- var _environmentStep = __webpack_require__(14);
3834
-
3835
- var _environmentStep2 = _interopRequireDefault(_environmentStep);
3836
-
3837
- var _schemaStep = __webpack_require__(20);
3838
-
3839
- var _schemaStep2 = _interopRequireDefault(_schemaStep);
3840
-
3841
- var _filterStep = __webpack_require__(15);
3842
-
3843
- var _filterStep2 = _interopRequireDefault(_filterStep);
3844
-
3845
- var _mapStep = __webpack_require__(16);
3846
-
3847
- var _mapStep2 = _interopRequireDefault(_mapStep);
3848
-
3849
- var _previewStep = __webpack_require__(19);
3850
-
3851
- var _previewStep2 = _interopRequireDefault(_previewStep);
3852
-
3853
- var _deployStep = __webpack_require__(13);
3854
-
3855
- var _deployStep2 = _interopRequireDefault(_deployStep);
3856
-
3857
- var _nameStep = __webpack_require__(17);
3858
-
3859
- var _nameStep2 = _interopRequireDefault(_nameStep);
3860
-
3861
- var _bannerAdapterStep = __webpack_require__(12);
3862
-
3863
- var _bannerAdapterStep2 = _interopRequireDefault(_bannerAdapterStep);
3864
-
3865
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
3866
-
3867
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3868
-
3869
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
3870
-
3871
- 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; }
3872
-
3873
- var WizardForm = function (_Component) {
3874
- _inherits(WizardForm, _Component);
3875
-
3876
- function WizardForm(props) {
3877
- _classCallCheck(this, WizardForm);
3878
-
3879
- var _this = _possibleConstructorReturn(this, (WizardForm.__proto__ || Object.getPrototypeOf(WizardForm)).call(this, props));
3880
-
3881
- _this.nextPage = _this.nextPage.bind(_this);
3882
- _this.previousPage = _this.previousPage.bind(_this);
3883
- _this.onSubmit = _this.onSubmit.bind(_this);
3884
- _this.goToPage = _this.goToPage.bind(_this);
3885
- _this.state = {
3886
- page: 1,
3887
- currentPage: 1
3888
- };
3889
- _this.possibleSteps = {
3890
- account: _accountStep2.default,
3891
- phase: _phaseStep2.default,
3892
- environment: _environmentStep2.default,
3893
- schema: _schemaStep2.default,
3894
- filter: _filterStep2.default,
3895
- map: _mapStep2.default,
3896
- preview: _previewStep2.default,
3897
- deploy: _deployStep2.default,
3898
- bannerAdapter: _bannerAdapterStep2.default,
3899
- name: _nameStep2.default
3900
- };
3901
- return _this;
3902
- }
3903
-
3904
- _createClass(WizardForm, [{
3905
- key: 'onSubmit',
3906
- value: function onSubmit(values) {
3907
- var _this2 = this;
3908
-
3909
- console.log(values);
3910
- var config = Object.assign({}, values);
3911
- var schemas = {};
3912
- //----------------------------------
3913
- // Create schemas
3914
- //----------------------------------
3915
- var modes = ['source', 'destination'];
3916
- modes.forEach(function (mode) {
3917
- var schema = values[mode + 'Schema'];
3918
- var resources = Object.keys(schema).map(function (key) {
3919
- var props = Object.keys(schema[key]).map(function (prop) {
3920
- return {
3921
- name: prop,
3922
- type: _typeof(schema[key][prop]) // we need actual types on schemas
3923
- };
3924
- });
3925
- return {
3926
- name: key,
3927
- properties: props
3928
- };
3929
- });
3930
- var custom = values[mode + 'SchemaType'] === 'custom';
3931
- var name = custom ? values[mode + 'NewSchemaName'] : values[mode + 'ExistingSchemaName'];
3932
- schemas['' + mode] = {
3933
- name: name,
3934
- providerType: _this2.props.providers[mode],
3935
- resources: resources
3936
- };
3937
- });
3938
- //----------------------------------
3939
- // Create mapping
3940
- //----------------------------------
3941
- var mapping = Object.keys(values.mappings).map(function (key) {
3942
- return {
3943
- resourceFromName: key.split('.')[0],
3944
- resourceToName: values.mappings[key].split('.')[0],
3945
- propertyFromName: key.split('.')[1],
3946
- propertyToName: values.mappings[key].split('.')[1]
3947
- };
3948
- });
3949
- //----------------------------------
3950
- // Create configuration
3951
- //----------------------------------
3952
- var configuration = {
3953
- sourceEndpoint: config.sourceEndpoint,
3954
- destinationEndpoint: config.destinationEndpoint
3955
- };
3956
- //----------------------------------
3957
- // Post
3958
- //----------------------------------
3959
- var _props = this.props,
3960
- actions = _props.actions,
3961
- redux = _props.redux,
3962
- onFinish = _props.onFinish,
3963
- typeGuid = _props.typeGuid,
3964
- accountId = _props.accountId,
3965
- tenantId = _props.tenantId;
3966
-
3967
- var appId = values.existingAccount; // need to add "new account" here as well
3968
- if (parseInt(1, 10) === 6) {
3969
- actions.submitWizardData(redux.main.tenantInfo.TenantId, appId, schemas.source, schemas.destination, mapping, configuration, config.title, typeGuid);
3970
- }
3971
- actions.testAjax(onFinish);
3972
- }
3973
- }, {
3974
- key: 'nextPage',
3975
- value: function nextPage() {
3976
- this.setState({
3977
- currentPage: this.state.currentPage + 1,
3978
- page: this.state.page < this.state.currentPage + 1 ? this.state.currentPage + 1 : this.state.page
3979
- });
3980
- }
3981
- }, {
3982
- key: 'previousPage',
3983
- value: function previousPage() {
3984
- this.setState({ currentPage: this.state.currentPage - 1 });
3985
- }
3986
- }, {
3987
- key: 'goToPage',
3988
- value: function goToPage(currentPage) {
3989
- if (currentPage <= this.state.page) {
3990
- this.setState({ currentPage: currentPage });
3991
- }
3992
- }
3993
- }, {
3994
- key: 'render',
3995
- value: function render() {
3996
- var _this3 = this;
3997
-
3998
- var currentPage = this.state.currentPage;
3999
- var _props2 = this.props,
4000
- steps = _props2.steps,
4001
- actions = _props2.actions,
4002
- wizard = _props2.wizard,
4003
- formValues = _props2.formValues,
4004
- inputs = _props2.inputs;
4005
- var Sidebar = inputs.Sidebar;
4006
-
4007
- return _react2.default.createElement(
4008
- 'div',
4009
- { className: 'wizard-body' },
4010
- _react2.default.createElement(
4011
- 'div',
4012
- { className: 'wizard-sidebar' },
4013
- _react2.default.createElement(Sidebar, { steps: steps, currentPage: currentPage })
4014
- ),
4015
- _react2.default.createElement(
4016
- 'div',
4017
- { className: 'wizard-content' },
4018
- steps.filter(function (s, i) {
4019
- return i + 1 === currentPage;
4020
- }).map(function (step, index) {
4021
- var StepComponent = _this3.possibleSteps[step.type];
4022
- var nav = {
4023
- first: currentPage === 1,
4024
- last: currentPage === steps.length,
4025
- previousPage: _this3.previousPage,
4026
- nextPage: _this3.nextPage
4027
- };
4028
- return _react2.default.createElement(
4029
- 'div',
4030
- { key: 'child-' + index },
4031
- _react2.default.createElement(StepComponent, {
4032
- step: step,
4033
- actions: actions,
4034
- wizard: wizard,
4035
- onSubmit: _this3.onSubmit,
4036
- formValues: formValues,
4037
- inputs: inputs,
4038
- nav: nav
4039
- })
4040
- );
4041
- })
4042
- )
4043
- );
4044
- }
4045
- }]);
4046
-
4047
- return WizardForm;
4048
- }(_react.Component);
4049
-
4050
- var selector = (0, _reduxForm.formValueSelector)('wizard');
4051
- WizardForm = (0, _reactRedux.connect)(function (state) {
4052
- var title = selector(state, 'title');
4053
- var phase = selector(state, 'phase');
4054
- var sourceEndpoint = selector(state, 'sourceEndpoint');
4055
- var destinationEndpoint = selector(state, 'destinationEndpoint');
4056
- var filter = selector(state, 'filter');
4057
- var deployment = selector(state, 'deployment');
4058
- var sourceSchema = selector(state, 'sourceSchema');
4059
- var destinationSchema = selector(state, 'destinationSchema');
4060
- var mappings = selector(state, 'mappings');
4061
- return Object.assign({}, state, {
4062
- formValues: {
4063
- title: title,
4064
- phase: phase,
4065
- sourceEndpoint: sourceEndpoint,
4066
- destinationEndpoint: destinationEndpoint,
4067
- filter: filter,
4068
- deployment: deployment,
4069
- sourceSchema: sourceSchema,
4070
- destinationSchema: destinationSchema,
4071
- mappings: mappings
4072
- }
4073
- });
4074
- })(WizardForm);
4075
-
4076
- exports.default = WizardForm;
4077
-
4078
- /***/ },
4079
- /* 24 */
4080
- /***/ function(module, exports, __webpack_require__) {
4081
-
4082
- 'use strict';
4083
-
4084
- Object.defineProperty(exports, "__esModule", {
4085
- value: true
4086
- });
4087
-
4088
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
4089
-
4090
- var _react = __webpack_require__(1);
4091
-
4092
- var _react2 = _interopRequireDefault(_react);
4093
-
4094
- var _redux = __webpack_require__(28);
4095
-
4096
- var _reactRedux = __webpack_require__(7);
4097
-
4098
- var _wizard = __webpack_require__(8);
4099
-
4100
- var wizardActions = _interopRequireWildcard(_wizard);
4101
-
4102
- __webpack_require__(25);
4103
-
4104
- var _wizardForm = __webpack_require__(23);
4105
-
4106
- var _wizardForm2 = _interopRequireDefault(_wizardForm);
4107
-
4108
- var _exampleWizardData = __webpack_require__(10);
4109
-
4110
- var example = _interopRequireWildcard(_exampleWizardData);
4111
-
4112
- var _exampleProviderData = __webpack_require__(9);
4113
-
4114
- var examp = _interopRequireWildcard(_exampleProviderData);
4115
-
4116
- 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; } }
4117
-
4118
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4119
-
4120
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4121
-
4122
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
4123
-
4124
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
4125
-
4126
- var LingkSync = function (_Component) {
4127
- _inherits(LingkSync, _Component);
4128
-
4129
- function LingkSync() {
4130
- _classCallCheck(this, LingkSync);
4131
-
4132
- var _this = _possibleConstructorReturn(this, (LingkSync.__proto__ || Object.getPrototypeOf(LingkSync)).call(this));
4133
-
4134
- _this.state = {
4135
- steps: null,
4136
- providers: {}
4137
- };
4138
- //-----------------------------
4139
- // 3 Types:
4140
- // Point-to-point
4141
- // Api creation
4142
- // Event pub/sub
4143
- //-----------------------------
4144
- _this.allSteps = [
4145
- // Point-to-point
4146
- {
4147
- type: 'name',
4148
- title: 'Name'
4149
- }, {
4150
- type: 'phase',
4151
- title: 'Implementation Phase'
4152
- }, {
4153
- type: 'custom'
4154
- }, {
4155
- type: 'environment',
4156
- title: 'Source Environment',
4157
- mode: 'source'
4158
- }, {
4159
- type: 'schema',
4160
- title: 'Source Schema',
4161
- mode: 'source'
4162
- }, {
4163
- type: 'filter',
4164
- title: 'Source Filter'
4165
- }, {
4166
- type: 'environment',
4167
- title: 'Destination Environment',
4168
- mode: 'destination'
4169
- }, {
4170
- type: 'schema',
4171
- title: 'Destination Schema',
4172
- mode: 'destination'
4173
- }, {
4174
- type: 'map',
4175
- title: 'Data Mapping'
4176
- }, {
4177
- type: 'preview',
4178
- title: 'Data Preview'
4179
- }, {
4180
- type: 'deploy',
4181
- title: 'Deploy'
4182
- }];
4183
- return _this;
4184
- }
4185
-
4186
- _createClass(LingkSync, [{
4187
- key: 'componentDidMount',
4188
- value: function componentDidMount() {
4189
- var wizard = example.wizards[1];
4190
- var stepList = [];
4191
-
4192
- for (var i = 0; i < this.allSteps.length; i++) {
4193
- var step = this.allSteps[i];
4194
- if (step.type === 'name') {
4195
- step.name = wizard.title;
4196
- stepList.push(step);
4197
- } else if (step.type === 'custom') {
4198
- if (wizard.customStep) {
4199
- step.type = wizard.customStep.type;
4200
- step.title = wizard.customStep.title;
4201
- stepList.push(step);
4202
- }
4203
- } else if (step.type === 'environment') {
4204
- if (step.mode === 'source') {
4205
- step.provider = wizard.sourceProvider;
4206
- step.credentials = examp.providerTypes[wizard.sourceProviderType].credentials || null;
4207
- } else if (step.mode === 'destination') {
4208
- step.provider = wizard.destinationProvider;
4209
- step.credentials = examp.providerTypes[wizard.destinationProviderType].credentials || null;
4210
- }
4211
- stepList.push(step);
4212
- } else if (step.type === 'schema') {
4213
- if (step.mode === 'source') {
4214
- step.provider = wizard.sourceProvider;
4215
- step.defaultSchema = wizard.sourceDefaultSchema || null;
4216
- } else if (step.mode === 'destination') {
4217
- step.provider = wizard.destinationProvider;
4218
- step.defaultSchema = wizard.destinationDefaultSchema || null;
4219
- }
4220
- stepList.push(step);
4221
- } else if (step.type === 'filter') {
4222
- step.provider = wizard.sourceProvider;
4223
- stepList.push(step);
4224
- } else if (step.type === 'map') {
4225
- step.sourceProvider = wizard.sourceProvider;
4226
- step.destinationProvider = wizard.destinationProvider;
4227
- step.autoMapData = wizard.autoMapData || null;
4228
- stepList.push(step);
4229
- } else if (step.type === 'preview') {
4230
- step.dummyData = wizard.dummyData || null;
4231
- stepList.push(step);
4232
- } else if (step.type === 'deploy') {
4233
- step.options = wizard.deployment;
4234
- stepList.push(step);
4235
- } else {
4236
- stepList.push(step);
4237
- }
4238
- }
4239
- var providers = {
4240
- source: wizard.sourceProvider,
4241
- destination: wizard.destinationProvider
4242
- };
4243
- this.setState({
4244
- steps: stepList,
4245
- providers: providers
4246
- });
4247
- }
4248
- }, {
4249
- key: 'render',
4250
- value: function render() {
4251
- var _state = this.state,
4252
- steps = _state.steps,
4253
- providers = _state.providers;
4254
-
4255
- if (!steps) return _react2.default.createElement('div', null);
4256
- return _react2.default.createElement(
4257
- 'div',
4258
- { style: {
4259
- position: 'absolute',
4260
- width: '100%',
4261
- height: 'calc(100% - 50px)'
4262
- } },
4263
- _react2.default.createElement(_wizardForm2.default, Object.assign({
4264
- steps: steps,
4265
- providers: providers
4266
- }, this.props))
4267
- );
4268
- }
4269
- }]);
4270
-
4271
- return LingkSync;
4272
- }(_react.Component);
4273
-
4274
- function mapStateToProps(state, props) {
4275
- return {
4276
- wizard: state.wizard
4277
- };
4278
- }
4279
-
4280
- function mapDispatchToProps(dispatch) {
4281
- return {
4282
- actions: (0, _redux.bindActionCreators)(wizardActions, dispatch)
4283
- };
4284
- }
4285
-
4286
- exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(LingkSync);
4287
-
4288
- /***/ },
4289
- /* 25 */
4290
- /***/ function(module, exports) {
4291
-
4292
- // removed by extract-text-webpack-plugin
4293
-
4294
- /***/ },
4295
- /* 26 */
4296
- /***/ function(module, exports) {
4297
-
4298
- module.exports = require("axios");
4299
-
4300
- /***/ },
4301
- /* 27 */
4302
- /***/ function(module, exports) {
4303
-
4304
- module.exports = require("react-addons-css-transition-group");
4305
-
4306
- /***/ },
4307
- /* 28 */
58
+ /* 2 */,
59
+ /* 3 */,
60
+ /* 4 */,
61
+ /* 5 */
4308
62
  /***/ function(module, exports) {
4309
63
 
4310
- module.exports = require("redux");
64
+ module.exports = require("react-lightning-design-system");
4311
65
 
4312
66
  /***/ },
4313
- /* 29 */,
4314
- /* 30 */,
4315
- /* 31 */
67
+ /* 6 */,
68
+ /* 7 */,
69
+ /* 8 */,
70
+ /* 9 */,
71
+ /* 10 */
4316
72
  /***/ function(module, exports, __webpack_require__) {
4317
73
 
4318
74
  'use strict';
@@ -4336,7 +92,7 @@ module.exports =
4336
92
  exports.default = B;
4337
93
 
4338
94
  /***/ },
4339
- /* 32 */
95
+ /* 11 */
4340
96
  /***/ function(module, exports, __webpack_require__) {
4341
97
 
4342
98
  'use strict';
@@ -4360,7 +116,7 @@ module.exports =
4360
116
  exports.default = I;
4361
117
 
4362
118
  /***/ },
4363
- /* 33 */
119
+ /* 12 */
4364
120
  /***/ function(module, exports, __webpack_require__) {
4365
121
 
4366
122
  'use strict';
@@ -4467,7 +223,7 @@ module.exports =
4467
223
  exports.default = MapTable;
4468
224
 
4469
225
  /***/ },
4470
- /* 34 */
226
+ /* 13 */
4471
227
  /***/ function(module, exports, __webpack_require__) {
4472
228
 
4473
229
  'use strict';
@@ -4544,7 +300,7 @@ module.exports =
4544
300
  exports.default = PreviewTable;
4545
301
 
4546
302
  /***/ },
4547
- /* 35 */
303
+ /* 14 */
4548
304
  /***/ function(module, exports, __webpack_require__) {
4549
305
 
4550
306
  'use strict';
@@ -4608,7 +364,7 @@ module.exports =
4608
364
  exports.default = Select;
4609
365
 
4610
366
  /***/ },
4611
- /* 36 */
367
+ /* 15 */
4612
368
  /***/ function(module, exports, __webpack_require__) {
4613
369
 
4614
370
  'use strict';
@@ -4651,7 +407,7 @@ module.exports =
4651
407
  exports.default = Sidebar;
4652
408
 
4653
409
  /***/ },
4654
- /* 37 */
410
+ /* 16 */
4655
411
  /***/ function(module, exports, __webpack_require__) {
4656
412
 
4657
413
  'use strict';
@@ -4682,7 +438,7 @@ module.exports =
4682
438
  exports.default = Spinner;
4683
439
 
4684
440
  /***/ },
4685
- /* 38 */
441
+ /* 17 */
4686
442
  /***/ function(module, exports, __webpack_require__) {
4687
443
 
4688
444
  'use strict';
@@ -4691,7 +447,7 @@ module.exports =
4691
447
  value: true
4692
448
  });
4693
449
 
4694
- var _Sidebar = __webpack_require__(36);
450
+ var _Sidebar = __webpack_require__(15);
4695
451
 
4696
452
  Object.defineProperty(exports, 'Sidebar', {
4697
453
  enumerable: true,
@@ -4700,7 +456,7 @@ module.exports =
4700
456
  }
4701
457
  });
4702
458
 
4703
- var _Button = __webpack_require__(31);
459
+ var _Button = __webpack_require__(10);
4704
460
 
4705
461
  Object.defineProperty(exports, 'Button', {
4706
462
  enumerable: true,
@@ -4709,7 +465,7 @@ module.exports =
4709
465
  }
4710
466
  });
4711
467
 
4712
- var _Input = __webpack_require__(32);
468
+ var _Input = __webpack_require__(11);
4713
469
 
4714
470
  Object.defineProperty(exports, 'Input', {
4715
471
  enumerable: true,
@@ -4718,7 +474,7 @@ module.exports =
4718
474
  }
4719
475
  });
4720
476
 
4721
- var _Spinner = __webpack_require__(37);
477
+ var _Spinner = __webpack_require__(16);
4722
478
 
4723
479
  Object.defineProperty(exports, 'Spinner', {
4724
480
  enumerable: true,
@@ -4727,7 +483,7 @@ module.exports =
4727
483
  }
4728
484
  });
4729
485
 
4730
- var _Select = __webpack_require__(35);
486
+ var _Select = __webpack_require__(14);
4731
487
 
4732
488
  Object.defineProperty(exports, 'Select', {
4733
489
  enumerable: true,
@@ -4736,7 +492,7 @@ module.exports =
4736
492
  }
4737
493
  });
4738
494
 
4739
- var _rfInput = __webpack_require__(40);
495
+ var _rfInput = __webpack_require__(19);
4740
496
 
4741
497
  Object.defineProperty(exports, 'rfInput', {
4742
498
  enumerable: true,
@@ -4745,7 +501,7 @@ module.exports =
4745
501
  }
4746
502
  });
4747
503
 
4748
- var _rfRadioGroup = __webpack_require__(41);
504
+ var _rfRadioGroup = __webpack_require__(20);
4749
505
 
4750
506
  Object.defineProperty(exports, 'rfRadioGroup', {
4751
507
  enumerable: true,
@@ -4754,7 +510,7 @@ module.exports =
4754
510
  }
4755
511
  });
4756
512
 
4757
- var _rfCheckbox = __webpack_require__(39);
513
+ var _rfCheckbox = __webpack_require__(18);
4758
514
 
4759
515
  Object.defineProperty(exports, 'rfCheckbox', {
4760
516
  enumerable: true,
@@ -4763,7 +519,7 @@ module.exports =
4763
519
  }
4764
520
  });
4765
521
 
4766
- var _MapTable = __webpack_require__(33);
522
+ var _MapTable = __webpack_require__(12);
4767
523
 
4768
524
  Object.defineProperty(exports, 'MapTable', {
4769
525
  enumerable: true,
@@ -4772,7 +528,7 @@ module.exports =
4772
528
  }
4773
529
  });
4774
530
 
4775
- var _PreviewTable = __webpack_require__(34);
531
+ var _PreviewTable = __webpack_require__(13);
4776
532
 
4777
533
  Object.defineProperty(exports, 'PreviewTable', {
4778
534
  enumerable: true,
@@ -4781,7 +537,7 @@ module.exports =
4781
537
  }
4782
538
  });
4783
539
 
4784
- var _theme = __webpack_require__(53);
540
+ var _theme = __webpack_require__(50);
4785
541
 
4786
542
  Object.defineProperty(exports, 'styles', {
4787
543
  enumerable: true,
@@ -4789,20 +545,11 @@ module.exports =
4789
545
  return _interopRequireDefault(_theme).default;
4790
546
  }
4791
547
  });
4792
-
4793
- var _wizardFormLoader = __webpack_require__(24);
4794
-
4795
- Object.defineProperty(exports, 'WizardFormLoader', {
4796
- enumerable: true,
4797
- get: function get() {
4798
- return _interopRequireDefault(_wizardFormLoader).default;
4799
- }
4800
- });
4801
548
 
4802
549
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4803
550
 
4804
551
  /***/ },
4805
- /* 39 */
552
+ /* 18 */
4806
553
  /***/ function(module, exports, __webpack_require__) {
4807
554
 
4808
555
  'use strict';
@@ -4864,7 +611,7 @@ module.exports =
4864
611
  exports.default = rfCheckbox;
4865
612
 
4866
613
  /***/ },
4867
- /* 40 */
614
+ /* 19 */
4868
615
  /***/ function(module, exports, __webpack_require__) {
4869
616
 
4870
617
  'use strict';
@@ -4913,7 +660,7 @@ module.exports =
4913
660
  exports.default = rfInput;
4914
661
 
4915
662
  /***/ },
4916
- /* 41 */
663
+ /* 20 */
4917
664
  /***/ function(module, exports, __webpack_require__) {
4918
665
 
4919
666
  'use strict';
@@ -4932,8 +679,7 @@ module.exports =
4932
679
 
4933
680
  var rfRadioGroup = function rfRadioGroup(props) {
4934
681
  var input = props.input,
4935
- label = props.label,
4936
- children = props.children;
682
+ label = props.label;
4937
683
 
4938
684
  return _react2.default.createElement(
4939
685
  _reactLightningDesignSystem.RadioGroup,
@@ -4941,7 +687,7 @@ module.exports =
4941
687
  return input.onChange(e);
4942
688
  } },
4943
689
  Object.keys(props.options).map(function (name, i) {
4944
- return _react2.default.createElement(_reactLightningDesignSystem.Radio, { value: name, label: props.options[name], key: i, checked: input.value == name, style: { cursor: 'pointer' } });
690
+ return _react2.default.createElement(_reactLightningDesignSystem.Radio, { value: name, label: props.options[name], key: i, checked: input.value === name, style: { cursor: 'pointer' } });
4945
691
  })
4946
692
  );
4947
693
  };
@@ -4949,6 +695,27 @@ module.exports =
4949
695
  exports.default = rfRadioGroup;
4950
696
 
4951
697
  /***/ },
698
+ /* 21 */,
699
+ /* 22 */,
700
+ /* 23 */,
701
+ /* 24 */,
702
+ /* 25 */,
703
+ /* 26 */,
704
+ /* 27 */,
705
+ /* 28 */,
706
+ /* 29 */,
707
+ /* 30 */,
708
+ /* 31 */,
709
+ /* 32 */,
710
+ /* 33 */,
711
+ /* 34 */,
712
+ /* 35 */,
713
+ /* 36 */,
714
+ /* 37 */,
715
+ /* 38 */,
716
+ /* 39 */,
717
+ /* 40 */,
718
+ /* 41 */,
4952
719
  /* 42 */,
4953
720
  /* 43 */,
4954
721
  /* 44 */,
@@ -4957,10 +724,11 @@ module.exports =
4957
724
  /* 47 */,
4958
725
  /* 48 */,
4959
726
  /* 49 */,
4960
- /* 50 */,
4961
- /* 51 */,
4962
- /* 52 */,
4963
- /* 53 */
4964
- 25
4965
- /******/ ])));
727
+ /* 50 */
728
+ /***/ function(module, exports) {
729
+
730
+ // removed by extract-text-webpack-plugin
731
+
732
+ /***/ }
733
+ /******/ ]);
4966
734
  //# sourceMappingURL=lightning.js.map