@agilemotion/oui-react-js 1.3.2 → 1.3.3
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/dist/ApplicationContext.js +90 -41
- package/dist/BasicAppHome.js +16 -10
- package/dist/BusinessPortalApp.js +25 -50
- package/dist/BusinessPortalAppHome.js +102 -109
- package/dist/RestUtils.js +64 -35
- package/dist/Utils.js +47 -1
- package/dist/components/AlertBar.js +40 -11
- package/dist/components/ConfirmationDialog.js +54 -8
- package/dist/components/DataGrid.css +3 -1
- package/dist/components/DataGrid.js +149 -82
- package/dist/components/DataGridFilter.js +85 -8
- package/dist/components/Dialog.js +258 -0
- package/dist/components/HtmlPanel.js +103 -4
- package/dist/components/Icon.js +52 -0
- package/dist/components/PopupView.js +55 -6
- package/dist/components/SignaturePanel.js +40 -11
- package/dist/components/StepperTitleBar.bck.css +85 -0
- package/dist/components/StepperTitleBar.css +53 -54
- package/dist/components/StepperTitleBar.js +39 -28
- package/dist/components/TabPanel.js +10 -11
- package/dist/components/TableCellContent.js +6 -3
- package/dist/components/TemplateDesigner.css +13 -0
- package/dist/components/TemplateDesigner.js +494 -0
- package/dist/components/TemplateItemEventHandler.js +440 -0
- package/dist/components/TemplateTable.js +222 -0
- package/dist/components/TitleBar.js +21 -14
- package/dist/components/Toolbar.js +7 -5
- package/dist/components/Tree.js +5 -2
- package/dist/components/dashboard/BasicBusinessAppDashboard.js +14 -10
- package/dist/components/dashboard/BusinessPortalAppDashboard.js +79 -34
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +1 -1
- package/dist/components/dashboard/components/portal/Workspace.css +6 -6
- package/dist/components/form/AddressSearch.js +140 -0
- package/dist/components/form/BaseField.js +31 -6
- package/dist/components/form/Checkbox.js +3 -0
- package/dist/components/form/DatePicker.js +12 -7
- package/dist/components/form/FieldSet.js +246 -71
- package/dist/components/form/Form.js +153 -122
- package/dist/components/form/GridField.js +3 -2
- package/dist/components/form/ImageEditor.js +461 -0
- package/dist/components/form/LabelField.js +2 -2
- package/dist/components/form/LookupField.js +16 -4
- package/dist/components/form/RadioGroup.js +107 -0
- package/dist/components/form/Section.js +58 -19
- package/dist/components/form/SelectItem.js +5 -3
- package/dist/components/form/SignatureTemplateDesignerField.js +46 -0
- package/dist/components/form/TextField.js +5 -9
- package/dist/components/form/TransferList.js +7 -7
- package/dist/components/form/UploadField.js +93 -42
- package/dist/components/form/noimage-person.png +0 -0
- package/dist/components/form/noimage.png +0 -0
- package/dist/components/form/transparent.jpeg +0 -0
- package/dist/components/layout/CollapsiblePanel.js +0 -6
- package/dist/components/layout/Layout.js +41 -20
- package/dist/components/layout/View.css +43 -0
- package/dist/components/layout/View.js +76 -156
- package/dist/components/layout/ViewPort.js +29 -47
- package/dist/components/navbars/HomeNavbar.js +31 -6
- package/dist/components/navbars/PortalNavbar.css +2 -2
- package/dist/components/navbars/PortalNavbar.js +125 -36
- package/dist/components/signatures/AgilitySignaturePanel.js +312 -0
- package/dist/components/signatures/DocumentContainer.css +33 -0
- package/dist/components/signatures/DocumentContainer.js +206 -0
- package/dist/components/signatures/ImageSignatureInput.js +265 -0
- package/dist/components/signatures/ResponsiveTable.js +1 -3
- package/dist/components/signatures/SignatureInput.js +303 -0
- package/dist/components/signatures/SignatureInputProps.js +17 -11
- package/dist/components/signatures/SignatureTemplateDesigner.js +186 -77
- package/dist/components/signatures/transparent.jpeg +0 -0
- package/dist/event/LoadDataActionHandler.js +1 -1
- package/dist/event/Observable.js +1 -1
- package/dist/event/RouteActionHandler.js +17 -4
- package/dist/event/ServiceCallActionHandler.js +7 -3
- package/dist/js/Addresses.js +16 -9
- package/dist/view/Dashboard.js +10 -6
- package/dist/view/security/LoginBusinessPortal.js +1 -0
- package/package.json +4 -1
|
@@ -155,8 +155,8 @@ const Form = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
155
155
|
removeField: id => {
|
|
156
156
|
_removeField(id);
|
|
157
157
|
},
|
|
158
|
-
loadData: actionConfig => {
|
|
159
|
-
_loadData(actionConfig, config);
|
|
158
|
+
loadData: (actionConfig, eventData) => {
|
|
159
|
+
_loadData(actionConfig, config, eventData);
|
|
160
160
|
},
|
|
161
161
|
bindData: data => {
|
|
162
162
|
doBindData(data);
|
|
@@ -312,7 +312,30 @@ const Form = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
312
312
|
}
|
|
313
313
|
|
|
314
314
|
return children;
|
|
315
|
+
},
|
|
316
|
+
|
|
317
|
+
refresh() {
|
|
318
|
+
let properties = Object.getOwnPropertyNames(sectionHandles);
|
|
319
|
+
|
|
320
|
+
var _iterator4 = _createForOfIteratorHelper(properties),
|
|
321
|
+
_step4;
|
|
322
|
+
|
|
323
|
+
try {
|
|
324
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
325
|
+
const property = _step4.value;
|
|
326
|
+
let sectionHandle = sectionHandles[property];
|
|
327
|
+
|
|
328
|
+
if (sectionHandle.api.refresh) {
|
|
329
|
+
sectionHandle.api.refresh();
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
} catch (err) {
|
|
333
|
+
_iterator4.e(err);
|
|
334
|
+
} finally {
|
|
335
|
+
_iterator4.f();
|
|
336
|
+
}
|
|
315
337
|
}
|
|
338
|
+
|
|
316
339
|
};
|
|
317
340
|
};
|
|
318
341
|
|
|
@@ -347,23 +370,23 @@ const Form = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
347
370
|
|
|
348
371
|
_Observable.default.processSystemGeneratedSubscriptions(props.config.id);
|
|
349
372
|
|
|
350
|
-
var
|
|
351
|
-
|
|
373
|
+
var _iterator5 = _createForOfIteratorHelper(fields),
|
|
374
|
+
_step5;
|
|
352
375
|
|
|
353
376
|
try {
|
|
354
|
-
for (
|
|
355
|
-
const field =
|
|
377
|
+
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
378
|
+
const field = _step5.value;
|
|
356
379
|
|
|
357
380
|
_Observable.default.processSystemGeneratedSubscriptions(field.handle.api.id);
|
|
358
381
|
}
|
|
359
382
|
} catch (err) {
|
|
360
|
-
|
|
383
|
+
_iterator5.e(err);
|
|
361
384
|
} finally {
|
|
362
|
-
|
|
385
|
+
_iterator5.f();
|
|
363
386
|
}
|
|
364
387
|
}
|
|
365
388
|
|
|
366
|
-
function _loadData(eventConfig, componentConfig) {
|
|
389
|
+
function _loadData(eventConfig, componentConfig, eventData = null) {
|
|
367
390
|
let service = !_Utils.default.isNull(componentConfig.dataService) ? componentConfig.dataService : eventConfig !== null ? eventConfig.dataService : null;
|
|
368
391
|
let componentValue = !_Utils.default.isNull(componentConfig.value) ? componentConfig.value : eventConfig !== null ? eventConfig.value : null;
|
|
369
392
|
|
|
@@ -385,7 +408,7 @@ const Form = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
385
408
|
_Utils.default.publishSystemErrorMessage(props.viewId);
|
|
386
409
|
}, parameter => {
|
|
387
410
|
loadingRef.current = false;
|
|
388
|
-
handleDataArrived(
|
|
411
|
+
handleDataArrived(null);
|
|
389
412
|
});
|
|
390
413
|
} else {
|
|
391
414
|
if (_Utils.default.isNull(eventConfig)) {
|
|
@@ -398,13 +421,18 @@ const Form = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
398
421
|
parseValues(transformDataObject(data));
|
|
399
422
|
setMasterValues(data);
|
|
400
423
|
loadingRef.current = false;
|
|
401
|
-
}, () => {}
|
|
424
|
+
}, () => {}, parameter => {
|
|
425
|
+
loadingRef.current = false;
|
|
426
|
+
handleDataArrived(null);
|
|
427
|
+
});
|
|
402
428
|
}
|
|
403
429
|
|
|
404
430
|
return true;
|
|
405
431
|
} else {
|
|
406
432
|
if (!_Utils.default.isNull(componentValue)) {
|
|
407
|
-
|
|
433
|
+
let isEventData = componentValue.toString().startsWith("$event.data");
|
|
434
|
+
|
|
435
|
+
if (_ApplicationContext.default.isExpression(componentValue) && !isEventData) {
|
|
408
436
|
let path = _Utils.default.getPropertyChainPath(componentValue);
|
|
409
437
|
|
|
410
438
|
if (!_Utils.default.isNull(path.valueObject)) {
|
|
@@ -425,7 +453,7 @@ const Form = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
425
453
|
});
|
|
426
454
|
}
|
|
427
455
|
} else {
|
|
428
|
-
let val = componentValue;
|
|
456
|
+
let val = isEventData ? _ApplicationContext.default.resolveExpressionValue(componentValue, eventData) : componentValue;
|
|
429
457
|
|
|
430
458
|
if (binder === 'MAP_OBJECT' && _Utils.default.isNull(componentValue.map)) {
|
|
431
459
|
val = {};
|
|
@@ -455,7 +483,7 @@ const Form = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
455
483
|
|
|
456
484
|
let autoLoadData = _Utils.default.getComponentAttribute(parsedConfig, 'autoLoadData', null);
|
|
457
485
|
|
|
458
|
-
if (autoLoadData === null || autoLoadData === true) {
|
|
486
|
+
if (!_ApplicationContext.default.getCurrentView().handle.api.loaded() && autoLoadData === null || autoLoadData === true) {
|
|
459
487
|
let subscription = {
|
|
460
488
|
publisher: props.viewId,
|
|
461
489
|
eventType: _EventType.default.COMPONENT_LOAD,
|
|
@@ -474,8 +502,6 @@ const Form = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
474
502
|
_Observable.default.addSystemSubscriptions(parsedConfig);
|
|
475
503
|
|
|
476
504
|
setConfig(parsedConfig);
|
|
477
|
-
let data = {};
|
|
478
|
-
data.viewId = props.viewId;
|
|
479
505
|
setInitializing(false);
|
|
480
506
|
}
|
|
481
507
|
});
|
|
@@ -495,44 +521,46 @@ const Form = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
495
521
|
const getFieldsFromTab = tab => {
|
|
496
522
|
let fields = [];
|
|
497
523
|
|
|
498
|
-
var
|
|
499
|
-
|
|
524
|
+
var _iterator6 = _createForOfIteratorHelper(tab.tabPages),
|
|
525
|
+
_step6;
|
|
500
526
|
|
|
501
527
|
try {
|
|
502
|
-
for (
|
|
503
|
-
const tabPage =
|
|
528
|
+
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
529
|
+
const tabPage = _step6.value;
|
|
504
530
|
|
|
505
|
-
var
|
|
506
|
-
|
|
531
|
+
var _iterator7 = _createForOfIteratorHelper(tabPage.components),
|
|
532
|
+
_step7;
|
|
507
533
|
|
|
508
534
|
try {
|
|
509
|
-
for (
|
|
510
|
-
const
|
|
535
|
+
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
536
|
+
const component = _step7.value;
|
|
511
537
|
|
|
512
|
-
|
|
513
|
-
|
|
538
|
+
if (component.type === "formSection") {
|
|
539
|
+
var _iterator8 = _createForOfIteratorHelper(component.components),
|
|
540
|
+
_step8;
|
|
514
541
|
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
542
|
+
try {
|
|
543
|
+
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
544
|
+
const fieldset = _step8.value;
|
|
545
|
+
fields = fields.concat(fieldset.fields);
|
|
546
|
+
}
|
|
547
|
+
} catch (err) {
|
|
548
|
+
_iterator8.e(err);
|
|
549
|
+
} finally {
|
|
550
|
+
_iterator8.f();
|
|
519
551
|
}
|
|
520
|
-
} catch (err) {
|
|
521
|
-
_iterator7.e(err);
|
|
522
|
-
} finally {
|
|
523
|
-
_iterator7.f();
|
|
524
552
|
}
|
|
525
553
|
}
|
|
526
554
|
} catch (err) {
|
|
527
|
-
|
|
555
|
+
_iterator7.e(err);
|
|
528
556
|
} finally {
|
|
529
|
-
|
|
557
|
+
_iterator7.f();
|
|
530
558
|
}
|
|
531
559
|
}
|
|
532
560
|
} catch (err) {
|
|
533
|
-
|
|
561
|
+
_iterator6.e(err);
|
|
534
562
|
} finally {
|
|
535
|
-
|
|
563
|
+
_iterator6.f();
|
|
536
564
|
}
|
|
537
565
|
|
|
538
566
|
return fields;
|
|
@@ -544,13 +572,13 @@ const Form = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
544
572
|
|
|
545
573
|
function _loadCompleteHandler() {
|
|
546
574
|
_loadCompleteHandler = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(id) {
|
|
547
|
-
var release, allLoaded,
|
|
575
|
+
var release, allLoaded, _iterator9, _step9, section, _iterator11, _step11, component, fields, _iterator12, _step12, field, _iterator10, _step10, handle, event;
|
|
548
576
|
|
|
549
577
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
550
578
|
while (1) switch (_context.prev = _context.next) {
|
|
551
579
|
case 0:
|
|
552
580
|
if (_Utils.default.isNull(id)) {
|
|
553
|
-
_context.next =
|
|
581
|
+
_context.next = 68;
|
|
554
582
|
break;
|
|
555
583
|
}
|
|
556
584
|
|
|
@@ -562,151 +590,156 @@ const Form = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
562
590
|
_context.prev = 4;
|
|
563
591
|
|
|
564
592
|
if (loadedComponents.includes(id)) {
|
|
565
|
-
_context.next =
|
|
593
|
+
_context.next = 65;
|
|
566
594
|
break;
|
|
567
595
|
}
|
|
568
596
|
|
|
569
597
|
loadedComponents.push(id);
|
|
570
598
|
allLoaded = true;
|
|
571
|
-
|
|
599
|
+
_iterator9 = _createForOfIteratorHelper(props.config.sections);
|
|
572
600
|
_context.prev = 9;
|
|
573
601
|
|
|
574
|
-
|
|
602
|
+
_iterator9.s();
|
|
575
603
|
|
|
576
604
|
case 11:
|
|
577
|
-
if ((
|
|
578
|
-
_context.next =
|
|
605
|
+
if ((_step9 = _iterator9.n()).done) {
|
|
606
|
+
_context.next = 55;
|
|
579
607
|
break;
|
|
580
608
|
}
|
|
581
609
|
|
|
582
|
-
section =
|
|
583
|
-
|
|
610
|
+
section = _step9.value;
|
|
611
|
+
_iterator11 = _createForOfIteratorHelper(section.components);
|
|
584
612
|
_context.prev = 14;
|
|
585
613
|
|
|
586
|
-
|
|
614
|
+
_iterator11.s();
|
|
587
615
|
|
|
588
616
|
case 16:
|
|
589
|
-
if ((
|
|
590
|
-
_context.next =
|
|
617
|
+
if ((_step11 = _iterator11.n()).done) {
|
|
618
|
+
_context.next = 43;
|
|
591
619
|
break;
|
|
592
620
|
}
|
|
593
621
|
|
|
594
|
-
component =
|
|
622
|
+
component = _step11.value;
|
|
595
623
|
fields = null;
|
|
596
624
|
|
|
597
625
|
if (component.type === 'tab') {
|
|
598
626
|
fields = getFieldsFromTab(component);
|
|
599
|
-
} else {
|
|
627
|
+
} else if (component.type === 'fieldSet') {
|
|
600
628
|
fields = component.fields;
|
|
601
629
|
}
|
|
602
630
|
|
|
603
|
-
|
|
604
|
-
|
|
631
|
+
if (!fields) {
|
|
632
|
+
_context.next = 39;
|
|
633
|
+
break;
|
|
634
|
+
}
|
|
605
635
|
|
|
606
|
-
|
|
636
|
+
_iterator12 = _createForOfIteratorHelper(fields);
|
|
637
|
+
_context.prev = 22;
|
|
607
638
|
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
639
|
+
_iterator12.s();
|
|
640
|
+
|
|
641
|
+
case 24:
|
|
642
|
+
if ((_step12 = _iterator12.n()).done) {
|
|
643
|
+
_context.next = 31;
|
|
611
644
|
break;
|
|
612
645
|
}
|
|
613
646
|
|
|
614
|
-
field =
|
|
647
|
+
field = _step12.value;
|
|
615
648
|
|
|
616
649
|
if (loadedComponents.includes(field.id)) {
|
|
617
|
-
_context.next =
|
|
650
|
+
_context.next = 29;
|
|
618
651
|
break;
|
|
619
652
|
}
|
|
620
653
|
|
|
621
654
|
allLoaded = false;
|
|
622
|
-
return _context.abrupt("break",
|
|
655
|
+
return _context.abrupt("break", 31);
|
|
623
656
|
|
|
624
|
-
case
|
|
625
|
-
_context.next =
|
|
657
|
+
case 29:
|
|
658
|
+
_context.next = 24;
|
|
626
659
|
break;
|
|
627
660
|
|
|
628
|
-
case
|
|
629
|
-
_context.next =
|
|
661
|
+
case 31:
|
|
662
|
+
_context.next = 36;
|
|
630
663
|
break;
|
|
631
664
|
|
|
632
|
-
case
|
|
633
|
-
_context.prev =
|
|
634
|
-
_context.t0 = _context["catch"](
|
|
665
|
+
case 33:
|
|
666
|
+
_context.prev = 33;
|
|
667
|
+
_context.t0 = _context["catch"](22);
|
|
635
668
|
|
|
636
|
-
|
|
669
|
+
_iterator12.e(_context.t0);
|
|
637
670
|
|
|
638
|
-
case
|
|
639
|
-
_context.prev =
|
|
671
|
+
case 36:
|
|
672
|
+
_context.prev = 36;
|
|
640
673
|
|
|
641
|
-
|
|
674
|
+
_iterator12.f();
|
|
642
675
|
|
|
643
|
-
return _context.finish(
|
|
676
|
+
return _context.finish(36);
|
|
644
677
|
|
|
645
|
-
case
|
|
678
|
+
case 39:
|
|
646
679
|
if (allLoaded) {
|
|
647
|
-
_context.next =
|
|
680
|
+
_context.next = 41;
|
|
648
681
|
break;
|
|
649
682
|
}
|
|
650
683
|
|
|
651
|
-
return _context.abrupt("break",
|
|
684
|
+
return _context.abrupt("break", 43);
|
|
652
685
|
|
|
653
|
-
case
|
|
686
|
+
case 41:
|
|
654
687
|
_context.next = 16;
|
|
655
688
|
break;
|
|
656
689
|
|
|
657
|
-
case
|
|
658
|
-
_context.next =
|
|
690
|
+
case 43:
|
|
691
|
+
_context.next = 48;
|
|
659
692
|
break;
|
|
660
693
|
|
|
661
|
-
case
|
|
662
|
-
_context.prev =
|
|
694
|
+
case 45:
|
|
695
|
+
_context.prev = 45;
|
|
663
696
|
_context.t1 = _context["catch"](14);
|
|
664
697
|
|
|
665
|
-
|
|
698
|
+
_iterator11.e(_context.t1);
|
|
666
699
|
|
|
667
|
-
case
|
|
668
|
-
_context.prev =
|
|
700
|
+
case 48:
|
|
701
|
+
_context.prev = 48;
|
|
669
702
|
|
|
670
|
-
|
|
703
|
+
_iterator11.f();
|
|
671
704
|
|
|
672
|
-
return _context.finish(
|
|
705
|
+
return _context.finish(48);
|
|
673
706
|
|
|
674
|
-
case
|
|
707
|
+
case 51:
|
|
675
708
|
if (allLoaded) {
|
|
676
|
-
_context.next =
|
|
709
|
+
_context.next = 53;
|
|
677
710
|
break;
|
|
678
711
|
}
|
|
679
712
|
|
|
680
|
-
return _context.abrupt("break",
|
|
713
|
+
return _context.abrupt("break", 55);
|
|
681
714
|
|
|
682
|
-
case
|
|
715
|
+
case 53:
|
|
683
716
|
_context.next = 11;
|
|
684
717
|
break;
|
|
685
718
|
|
|
686
|
-
case
|
|
687
|
-
_context.next =
|
|
719
|
+
case 55:
|
|
720
|
+
_context.next = 60;
|
|
688
721
|
break;
|
|
689
722
|
|
|
690
|
-
case
|
|
691
|
-
_context.prev =
|
|
723
|
+
case 57:
|
|
724
|
+
_context.prev = 57;
|
|
692
725
|
_context.t2 = _context["catch"](9);
|
|
693
726
|
|
|
694
|
-
|
|
727
|
+
_iterator9.e(_context.t2);
|
|
695
728
|
|
|
696
|
-
case
|
|
697
|
-
_context.prev =
|
|
729
|
+
case 60:
|
|
730
|
+
_context.prev = 60;
|
|
698
731
|
|
|
699
|
-
|
|
732
|
+
_iterator9.f();
|
|
700
733
|
|
|
701
|
-
return _context.finish(
|
|
734
|
+
return _context.finish(60);
|
|
702
735
|
|
|
703
|
-
case
|
|
736
|
+
case 63:
|
|
704
737
|
if (allLoaded) {
|
|
705
|
-
|
|
738
|
+
_iterator10 = _createForOfIteratorHelper(fields);
|
|
706
739
|
|
|
707
740
|
try {
|
|
708
|
-
for (
|
|
709
|
-
field =
|
|
741
|
+
for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
|
|
742
|
+
field = _step10.value;
|
|
710
743
|
handle = field.handle;
|
|
711
744
|
|
|
712
745
|
if (!_Utils.default.isNull(handle)) {
|
|
@@ -714,26 +747,29 @@ const Form = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
714
747
|
}
|
|
715
748
|
}
|
|
716
749
|
} catch (err) {
|
|
717
|
-
|
|
750
|
+
_iterator10.e(err);
|
|
718
751
|
} finally {
|
|
719
|
-
|
|
752
|
+
_iterator10.f();
|
|
720
753
|
}
|
|
721
754
|
}
|
|
722
755
|
|
|
723
756
|
if (allLoaded && !_Utils.default.isNull(props.loadCompleteHandler)) {
|
|
724
757
|
props.loadCompleteHandler(props.config.id);
|
|
758
|
+
event = new _Event.default(props.handle, props.viewId, null);
|
|
759
|
+
|
|
760
|
+
_Observable.default.fireEvent(_EventType.default.COMPONENT_LOAD, event);
|
|
725
761
|
}
|
|
726
762
|
|
|
727
|
-
case
|
|
728
|
-
_context.prev =
|
|
763
|
+
case 65:
|
|
764
|
+
_context.prev = 65;
|
|
729
765
|
release();
|
|
730
|
-
return _context.finish(
|
|
766
|
+
return _context.finish(65);
|
|
731
767
|
|
|
732
|
-
case
|
|
768
|
+
case 68:
|
|
733
769
|
case "end":
|
|
734
770
|
return _context.stop();
|
|
735
771
|
}
|
|
736
|
-
}, _callee, null, [[4,,
|
|
772
|
+
}, _callee, null, [[4,, 65, 68], [9, 57, 60, 63], [14, 45, 48, 51], [22, 33, 36, 39]]);
|
|
737
773
|
}));
|
|
738
774
|
return _loadCompleteHandler.apply(this, arguments);
|
|
739
775
|
}
|
|
@@ -1024,12 +1060,7 @@ const Form = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
1024
1060
|
};
|
|
1025
1061
|
|
|
1026
1062
|
function render(form) {
|
|
1027
|
-
return _Utils.default.isNull(form.sections) || form.sections.length === 0 ? null : /*#__PURE__*/_react.default.createElement("div", {
|
|
1028
|
-
style: {
|
|
1029
|
-
overflow: _Utils.default.getComponentAttribute(props.config, 'overflow', 'auto'),
|
|
1030
|
-
maxHeight: '70vh'
|
|
1031
|
-
}
|
|
1032
|
-
}, form.sections.map(section => {
|
|
1063
|
+
return _Utils.default.isNull(form.sections) || form.sections.length === 0 ? null : /*#__PURE__*/_react.default.createElement("div", null, form.sections.map(section => {
|
|
1033
1064
|
if (_Utils.default.isNull(section.id)) {
|
|
1034
1065
|
section.id = sectionCounter + '-form-section';
|
|
1035
1066
|
}
|
|
@@ -1054,12 +1085,12 @@ const Form = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
1054
1085
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
1055
1086
|
className: props.className,
|
|
1056
1087
|
ref: ref,
|
|
1057
|
-
style: props.className === 'defaultForm' ? {
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
} : null
|
|
1088
|
+
style: props.className === 'defaultForm' ? _Utils.default.mergeStyles({
|
|
1089
|
+
padding: '16px 0',
|
|
1090
|
+
margin: '0',
|
|
1091
|
+
overflow: 'auto',
|
|
1092
|
+
maxHeight: '70vh'
|
|
1093
|
+
}, props.config) : null
|
|
1063
1094
|
}, !_Utils.default.isNull(props.config.id) ? !initializing ? render(props.config) : null : /*#__PURE__*/_react.default.createElement("div", null, "ERROR: A form must have an ID"));
|
|
1064
1095
|
}));
|
|
1065
1096
|
|
|
@@ -190,7 +190,8 @@ const GridFieldWrapper = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.d
|
|
|
190
190
|
}, [base.value]);
|
|
191
191
|
|
|
192
192
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
193
|
-
className: "MuiFormControl-root MuiTextField-root MuiFormControl-marginDense"
|
|
193
|
+
className: "MuiFormControl-root MuiTextField-root MuiFormControl-marginDense",
|
|
194
|
+
style: _Utils.default.mergeStyles({}, props.config)
|
|
194
195
|
}, /*#__PURE__*/_react.default.createElement(_InputLabel.default, {
|
|
195
196
|
required: base.required,
|
|
196
197
|
error: base.hasError
|
|
@@ -198,7 +199,7 @@ const GridFieldWrapper = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.d
|
|
|
198
199
|
style: {
|
|
199
200
|
border: "1px solid ".concat(base.hasError ? '#f44336' : '#e1e1e1'),
|
|
200
201
|
width: '100%',
|
|
201
|
-
height:
|
|
202
|
+
height: '100%',
|
|
202
203
|
borderRadius: '4px',
|
|
203
204
|
marginTop: '8px',
|
|
204
205
|
marginBottom: '8px'
|