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