@agilemotion/oui-react-js 1.3.1 → 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.
Files changed (96) hide show
  1. package/dist/ApplicationContext.js +148 -39
  2. package/dist/BasicApp.js +12 -5
  3. package/dist/BasicAppHome.js +18 -12
  4. package/dist/BusinessPortalApp.css +37 -0
  5. package/dist/BusinessPortalApp.js +90 -0
  6. package/dist/BusinessPortalAppHome.js +160 -0
  7. package/dist/RestUtils.js +65 -40
  8. package/dist/Utils.js +47 -1
  9. package/dist/assets/jss/components/footerStyle.js +7 -4
  10. package/dist/assets/jss/views/loginBasicStyle.js +0 -1
  11. package/dist/assets/jss/views/loginBusinessPortalStyle.js +76 -0
  12. package/dist/components/AlertBar.js +40 -11
  13. package/dist/components/ConfirmationDialog.js +54 -8
  14. package/dist/components/DataGrid.css +3 -1
  15. package/dist/components/DataGrid.js +149 -82
  16. package/dist/components/DataGridFilter.js +85 -8
  17. package/dist/components/Dialog.js +258 -0
  18. package/dist/components/Graph.js +26 -18
  19. package/dist/components/GraphNode.js +0 -2
  20. package/dist/components/HtmlPanel.js +103 -4
  21. package/dist/components/Icon.js +60 -0
  22. package/dist/components/PopupView.js +55 -6
  23. package/dist/components/SignaturePanel.js +147 -0
  24. package/dist/components/StepperTitleBar.bck.css +85 -0
  25. package/dist/components/StepperTitleBar.css +53 -54
  26. package/dist/components/StepperTitleBar.js +42 -29
  27. package/dist/components/TabPanel.js +10 -11
  28. package/dist/components/TableCellContent.js +6 -3
  29. package/dist/components/TemplateDesigner.css +13 -0
  30. package/dist/components/TemplateDesigner.js +494 -0
  31. package/dist/components/TemplateItemEventHandler.js +440 -0
  32. package/dist/components/TemplateTable.js +222 -0
  33. package/dist/components/TitleBar.js +21 -14
  34. package/dist/components/Toolbar.js +7 -5
  35. package/dist/components/Tree.js +5 -2
  36. package/dist/components/dashboard/{BasicBusinessApp.js → BasicBusinessAppDashboard.js} +30 -25
  37. package/dist/components/dashboard/BusinessPortalAppDashboard.css +5 -0
  38. package/dist/components/dashboard/BusinessPortalAppDashboard.js +236 -0
  39. package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +23 -12
  40. package/dist/components/dashboard/components/portal/Timeline.js +17 -0
  41. package/dist/components/dashboard/components/portal/Workspace.css +25 -0
  42. package/dist/components/dashboard/components/portal/Workspace.js +48 -0
  43. package/dist/components/dashboard/components/portal/portal-dashboard.css +25 -0
  44. package/dist/components/footer/Footer.js +43 -10
  45. package/dist/components/form/AddressSearch.js +140 -0
  46. package/dist/components/form/BaseField.js +42 -8
  47. package/dist/components/form/Checkbox.js +3 -0
  48. package/dist/components/form/DatePicker.js +70 -4
  49. package/dist/components/form/FieldSet.js +247 -72
  50. package/dist/components/form/Form.js +178 -127
  51. package/dist/components/form/GridField.js +3 -2
  52. package/dist/components/form/ImageEditor.js +461 -0
  53. package/dist/components/form/LabelField.js +2 -2
  54. package/dist/components/form/LookupField.js +16 -4
  55. package/dist/components/form/RadioGroup.js +107 -0
  56. package/dist/components/form/Section.js +58 -19
  57. package/dist/components/form/SelectItem.js +14 -5
  58. package/dist/components/form/SignatureTemplateDesignerField.js +46 -0
  59. package/dist/components/form/TextField.js +5 -9
  60. package/dist/components/form/TransferList.js +7 -7
  61. package/dist/components/form/UploadField.js +184 -55
  62. package/dist/components/form/noimage-person.png +0 -0
  63. package/dist/components/form/noimage.png +0 -0
  64. package/dist/components/form/transparent.jpeg +0 -0
  65. package/dist/components/layout/CollapsiblePanel.js +0 -6
  66. package/dist/components/layout/Layout.js +49 -19
  67. package/dist/components/layout/View.css +43 -0
  68. package/dist/components/layout/View.js +76 -156
  69. package/dist/components/layout/ViewPort.js +32 -49
  70. package/dist/components/menu/MenuLink.js +7 -0
  71. package/dist/components/navbars/HomeNavbar.js +29 -14
  72. package/dist/components/navbars/PortalNavbar.css +75 -0
  73. package/dist/components/navbars/PortalNavbar.js +227 -0
  74. package/dist/components/signatures/AgilitySignaturePanel.js +312 -0
  75. package/dist/components/signatures/DocumentContainer.css +33 -0
  76. package/dist/components/signatures/DocumentContainer.js +206 -0
  77. package/dist/components/signatures/ImageSignatureInput.js +265 -0
  78. package/dist/components/signatures/ResponsiveTable.js +1 -3
  79. package/dist/components/signatures/SignatureInput.js +303 -0
  80. package/dist/components/signatures/SignatureInputProps.js +17 -11
  81. package/dist/components/signatures/SignatureTemplateDesigner.js +192 -81
  82. package/dist/components/signatures/transparent.jpeg +0 -0
  83. package/dist/event/LoadDataActionHandler.js +1 -1
  84. package/dist/event/Observable.js +1 -1
  85. package/dist/event/RouteActionHandler.js +18 -5
  86. package/dist/event/ServiceCallActionHandler.js +7 -3
  87. package/dist/js/Addresses.js +16 -9
  88. package/dist/view/Dashboard.js +27 -19
  89. package/dist/view/PortalDashboard.js +33 -0
  90. package/dist/view/security/ChangePasswordBasic.js +1 -0
  91. package/dist/view/security/ForgotPasswordBasic.js +1 -0
  92. package/dist/view/security/LoginBasic.js +6 -1
  93. package/dist/view/security/LoginBusinessPortal.js +268 -0
  94. package/dist/view/security/ResetPasswordBasic.js +1 -0
  95. package/package.json +25 -21
  96. package/dist/assets/img/flogo.png +0 -0
@@ -0,0 +1,147 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _Utils = _interopRequireDefault(require("../Utils"));
11
+
12
+ var _Observable = _interopRequireDefault(require("../event/Observable"));
13
+
14
+ var _RestUtils = require("../RestUtils");
15
+
16
+ var _ServiceCallActionHandler = _interopRequireDefault(require("../event/ServiceCallActionHandler"));
17
+
18
+ var _DocumentContainer = _interopRequireDefault(require("@agilemotion/signi-vault-ui/dist/DocumentContainer"));
19
+
20
+ var _AgilitySignaturePanel = _interopRequireDefault(require("./signatures/AgilitySignaturePanel"));
21
+
22
+ var _Event = _interopRequireDefault(require("../event/Event"));
23
+
24
+ var _EventType = _interopRequireDefault(require("../event/EventType"));
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
+
28
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
29
+
30
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
31
+
32
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
33
+
34
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
35
+
36
+ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
37
+
38
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
39
+
40
+ const SignaturePanel = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
41
+ const _React$useState = _react.default.useState(true),
42
+ _React$useState2 = _slicedToArray(_React$useState, 2),
43
+ initializing = _React$useState2[0],
44
+ setInitializing = _React$useState2[1];
45
+
46
+ const _React$useState3 = _react.default.useState(null),
47
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
48
+ config = _React$useState4[0],
49
+ setConfig = _React$useState4[1];
50
+
51
+ const _React$useState5 = _react.default.useState(null),
52
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
53
+ value = _React$useState6[0],
54
+ setValue = _React$useState6[1];
55
+
56
+ const _React$useState7 = _react.default.useState({}),
57
+ _React$useState8 = _slicedToArray(_React$useState7, 1),
58
+ handle = _React$useState8[0];
59
+
60
+ _react.default.useEffect(() => {
61
+ props.handle.api = api();
62
+
63
+ if (initializing) {
64
+ let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
65
+
66
+ _Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, props.handle, props.viewId);
67
+
68
+ _Observable.default.addSystemSubscriptions(parsedConfig);
69
+
70
+ setInitializing(false);
71
+
72
+ if (!_Utils.default.isNull(props.loadCompleteHandler)) {
73
+ props.loadCompleteHandler(props.config.id);
74
+ }
75
+ }
76
+ });
77
+
78
+ _react.default.useEffect(() => {
79
+ let event = new _Event.default(props.handle, props.viewId, value);
80
+
81
+ _Observable.default.fireEvent(_EventType.default.VALUE_CHANGE, event);
82
+ }, [value]);
83
+
84
+ const api = () => {
85
+ return {
86
+ get id() {
87
+ return props.config.id;
88
+ },
89
+
90
+ get value() {
91
+ if (!_Utils.default.isNull(handle.api)) {
92
+ return handle.api.value;
93
+ }
94
+
95
+ return value;
96
+ },
97
+
98
+ loadData: actionConfig => {
99
+ let service = !_Utils.default.isNull(props.config.dataService) ? props.config.dataService : actionConfig !== null ? actionConfig.dataService : null;
100
+
101
+ if (!_Utils.default.isNull(service)) {
102
+ if (service.type === 'remoteObjectProxy') {
103
+ (0, _RestUtils.invokeRpc)(service, props.handle, props.viewId, result => {
104
+ setConfig(result);
105
+ }, e => {}, parameter => {});
106
+ } else {
107
+ if (_Utils.default.isNull(actionConfig)) {
108
+ actionConfig = {};
109
+ }
110
+
111
+ actionConfig.service = service;
112
+
113
+ _ServiceCallActionHandler.default.execute(actionConfig, null, null, props.viewId, data => {
114
+ setConfig(data);
115
+ }, () => {});
116
+ }
117
+ }
118
+ }
119
+ };
120
+ };
121
+
122
+ return /*#__PURE__*/_react.default.createElement("div", {
123
+ ref: ref
124
+ }, config !== null ? config.documents ? props.config.provider === 'AGILITY' ? /*#__PURE__*/_react.default.createElement(_AgilitySignaturePanel.default, {
125
+ valueChangeHandler: value => {
126
+ console.log(value);
127
+ setValue(value);
128
+ },
129
+ config: config,
130
+ imageProcessingUrl: props.config.imageProcessingUrl,
131
+ signatureImageUrl: props.config.signatureImageUrl
132
+ }) : props.config.provider === 'SIGNIVAULT' ? /*#__PURE__*/_react.default.createElement(_DocumentContainer.default, {
133
+ handle: handle,
134
+ config: config
135
+ }) : /*#__PURE__*/_react.default.createElement("div", null, "Unsupported provider") : /*#__PURE__*/_react.default.createElement("div", {
136
+ style: {
137
+ padding: '32px 0 32px 48px'
138
+ }
139
+ }, "No document data") : /*#__PURE__*/_react.default.createElement("div", {
140
+ style: {
141
+ padding: '32px 0 32px 48px'
142
+ }
143
+ }, "Loading..."));
144
+ }));
145
+
146
+ var _default = SignaturePanel;
147
+ exports.default = _default;
@@ -0,0 +1,85 @@
1
+ .stepDot,
2
+ .stepDotActive,
3
+ .stepDotVisited,
4
+ .stepDotBox,
5
+ .stepDotBoxActive {
6
+ border-radius: 100px;
7
+ display: inline-block;
8
+ text-align: center;
9
+ font-size: 18px;
10
+ color: #888888;
11
+ border: 1px solid #888888;
12
+ }
13
+
14
+ .stepDotBox,
15
+ .stepDotBoxActive {
16
+ border: none;
17
+ }
18
+
19
+ .stepDotVisited,
20
+ .stepDotActive {
21
+ color: #ffffff;
22
+ border: 1px solid #ffffff;
23
+ font-weight: 600;
24
+ }
25
+
26
+ .stepDotVisited {
27
+ border: none;
28
+ }
29
+
30
+ .stepTitle{
31
+ color: #ffffff;
32
+ font-size: 16px;
33
+ height: 30px;
34
+ float: right;
35
+ border-top-right-radius: 100px;
36
+ border-bottom-right-radius: 100px;
37
+ padding: 2px 8px;
38
+ font-weight: 600;
39
+ }
40
+
41
+ @media screen and (min-width:3480px) {
42
+ .stepTitle {
43
+ padding: 2px 0;
44
+ }
45
+ }
46
+
47
+ .stepDot,
48
+ .stepDotVisited,
49
+ .stepDotActive {
50
+ float: left;
51
+ width: 30px;
52
+ height: 30px;
53
+ }
54
+
55
+ .stepperLine {
56
+ width: calc(50% - 15px);
57
+ float: left;
58
+ border-top: 1px solid #888888;
59
+ margin: -16px 0 0 0;
60
+ padding: 0;
61
+ }
62
+
63
+ @media screen and (min-width:732px) {
64
+ .stepperLine {
65
+ width: calc(50% - 15.3px);
66
+ }
67
+ }
68
+
69
+ @media screen and (min-width:1176px) {
70
+ .stepperLine {
71
+ width: calc(50% - 15.4px);
72
+ }
73
+ }
74
+
75
+ @media screen and (min-width:2200px) {
76
+ .stepperLine {
77
+ width: calc(50% - 15.7px);
78
+ }
79
+ }
80
+
81
+ @media screen and (min-width:7320px) {
82
+ .stepperLine {
83
+ width: calc(50% - 16px);
84
+ }
85
+ }
@@ -1,8 +1,9 @@
1
- .stepDot,
2
- .stepDotActive,
3
- .stepDotVisited,
4
- .stepDotBox,
5
- .stepDotBoxActive {
1
+ .step,
2
+ .stepActive,
3
+ .stepVisited {
4
+ }
5
+
6
+ .box, .dot {
6
7
  border-radius: 100px;
7
8
  display: inline-block;
8
9
  text-align: center;
@@ -11,75 +12,73 @@
11
12
  border: 1px solid #888888;
12
13
  }
13
14
 
14
- .stepDotBox,
15
- .stepDotBoxActive {
16
- border: none;
15
+ .step .box,
16
+ .stepVisited .box,
17
+ .stepActive .box {
18
+ float: left;
17
19
  }
18
20
 
19
- .stepDotVisited,
20
- .stepDotActive {
21
- color: #ffffff;
22
- border: 1px solid #ffffff;
23
- font-weight: 600;
21
+ .stepVisited .firstBox {
22
+ margin-left: calc(50% - 15px);
24
23
  }
25
24
 
26
- .stepDotVisited {
25
+ .box {
27
26
  border: none;
28
27
  }
29
28
 
30
- .stepTitle{
31
- color: #ffffff;
32
- font-size: 16px;
29
+ .dot {
30
+ width: 30px;
33
31
  height: 30px;
34
- float: right;
35
- border-top-right-radius: 100px;
36
- border-bottom-right-radius: 100px;
37
- padding: 2px 8px;
38
- font-weight: 600;
39
32
  }
40
33
 
41
- @media screen and (min-width:3480px) {
42
- .stepTitle {
43
- padding: 2px 0;
44
- }
34
+ .stepActive .dot {
35
+ color: #ffffff;
36
+ border-color: #ffffff;
45
37
  }
46
38
 
47
- .stepDot,
48
- .stepDotVisited,
49
- .stepDotActive {
50
- float: left;
51
- width: 30px;
52
- height: 30px;
39
+ .stepVisited .dot {
40
+ color: #ffffff;
53
41
  }
54
42
 
55
- .stepperLine {
56
- width: calc(100% - 30px);
57
- float: left;
58
- border-top: 1px solid #888888;
59
- margin: 14px 0 0 0;
60
- padding: 0;
43
+ .leftLine,
44
+ .rightLine {
45
+ border-bottom: 1px solid;
46
+ }
47
+
48
+ .step .rightLine,
49
+ .step .leftLine,
50
+ .stepVisited .rightLine,
51
+ .stepVisited .leftLine {
52
+ width: calc(50% - 15px);
61
53
  }
62
54
 
63
- @media screen and (min-width:732px) {
64
- .stepperLine {
65
- width: calc(100% - 30.3px);
66
- }
55
+ .stepVisited .firstLine {
56
+ margin-left: 30px;
57
+ width: calc(50% - 15px);
67
58
  }
68
59
 
69
- @media screen and (min-width:1176px) {
70
- .stepperLine {
71
- width: calc(100% - 30.4px);
72
- }
60
+ .step .lastLine {
61
+ width: calc(50% - 15px);
73
62
  }
74
63
 
75
- @media screen and (min-width:2200px) {
76
- .stepperLine {
77
- width: calc(100% - 30.7px);
78
- }
64
+ .leftLine {
65
+ float: left;
66
+ margin-top: 15px;
67
+ }
68
+
69
+ .rightLine {
70
+ float: right;
71
+ margin-top: -15px;
72
+ margin-left: 1px;
79
73
  }
80
74
 
81
- @media screen and (min-width:7320px) {
82
- .stepperLine {
83
- width: calc(100% - 32px);
84
- }
75
+ .title {
76
+ color: #ffffff;
77
+ font-size: 16px;
78
+ height: 30px;
79
+ float: right;
80
+ border-top-right-radius: 100px;
81
+ border-bottom-right-radius: 100px;
82
+ padding: 2px 8px;
83
+ font-weight: 600;
85
84
  }
@@ -60,13 +60,11 @@ const StepperTitleBar = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.de
60
60
  segmentPercentage = _React$useState6[0],
61
61
  setSegmentPercentage = _React$useState6[1];
62
62
 
63
- const _React$useState7 = _react.default.useState(null),
64
- _React$useState8 = _slicedToArray(_React$useState7, 2),
65
- currentIndex = _React$useState8[0],
66
- setCurrentIndex = _React$useState8[1];
63
+ const currentIndex = _react.default.useRef(null);
67
64
 
68
- let counter = -1;
69
- let graphicsCounter = -1;
65
+ let keyCounter = 0;
66
+ let counter = 0;
67
+ let graphicsCounter = 0;
70
68
  const classes = useStyles();
71
69
 
72
70
  _react.default.useEffect(() => {
@@ -100,13 +98,24 @@ const StepperTitleBar = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.de
100
98
  recalcLinePosition();
101
99
  });
102
100
  }
101
+
102
+ recalcLinePosition();
103
103
  });
104
104
 
105
105
  const recalcLinePosition = () => {
106
- (0, _jquery.default)("#selectedLineDiv").css({
107
- 'width': (0, _jquery.default)("#step-container-0").width() - ((0, _jquery.default)("#titleDiv").width() + 40) + 'px',
108
- 'position': 'absolute'
109
- });
106
+ let titleDiv = (0, _jquery.default)("#titleDiv");
107
+ let step = (0, _jquery.default)("#step-container-" + currentIndex.current);
108
+
109
+ if (currentIndex.current !== null && !_Utils.default.isNull(step.width())) {
110
+ let titleWidth = titleDiv.width() + 46;
111
+ (0, _jquery.default)(".stepActive .rightLine").css({
112
+ 'margin-left': currentIndex.current === 0 ? titleWidth : titleWidth / 2 + step.width() / 2 - 2 + 'px',
113
+ 'width': currentIndex.current === 0 ? step.width() - titleWidth + 2 : step.width() / 2 - titleWidth / 2 + 'px'
114
+ });
115
+ (0, _jquery.default)(".stepActive .leftLine").css({
116
+ 'width': step.width() / 2 - titleWidth / 2 + 'px'
117
+ });
118
+ }
110
119
  };
111
120
 
112
121
  const api = () => {
@@ -123,7 +132,7 @@ const StepperTitleBar = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.de
123
132
  let steps = _ApplicationContext.default.graphs[0].getTitleStack();
124
133
 
125
134
  setSteps(steps);
126
- setCurrentIndex(_ApplicationContext.default.graphs[0].getCurrentNodeIndex());
135
+ currentIndex.current = _ApplicationContext.default.graphs[0].getCurrentNodeIndex();
127
136
  setSegmentPercentage(100 / steps.length);
128
137
  }
129
138
 
@@ -131,20 +140,23 @@ const StepperTitleBar = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.de
131
140
  };
132
141
 
133
142
  function renderStep(step) {
134
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, ++graphicsCounter > 0 ? /*#__PURE__*/_react.default.createElement("div", {
135
- className: graphicsCounter === currentIndex ? "".concat(classes.themeBorder, " stepperLine") : 'stepperLine',
136
- id: graphicsCounter === currentIndex ? 'selectedLineDiv' : 'lineDiv'
143
+ return /*#__PURE__*/_react.default.createElement("div", {
144
+ className: graphicsCounter === currentIndex.current ? "stepActive" : graphicsCounter < currentIndex.current ? 'stepVisited' : 'step'
145
+ }, graphicsCounter > 0 ? /*#__PURE__*/_react.default.createElement("div", {
146
+ className: (graphicsCounter <= currentIndex.current ? "".concat(classes.themeBorder, " ") : '') + 'leftLine' + (graphicsCounter === steps.length - 1 ? ' lastLine' : '')
137
147
  }) : null, /*#__PURE__*/_react.default.createElement("div", {
138
- className: graphicsCounter === currentIndex ? "".concat(classes.theme, " stepDotBoxActive") : 'stepDotBox',
148
+ className: (graphicsCounter <= currentIndex.current ? "".concat(classes.theme, " box") : 'box') + (graphicsCounter === 0 ? ' firstBox' : ''),
139
149
  style: {
140
150
  display: "table-cell"
141
151
  }
142
152
  }, /*#__PURE__*/_react.default.createElement("div", {
143
- className: graphicsCounter < currentIndex ? "".concat(classes.theme, " stepDotVisited") : graphicsCounter === currentIndex ? "".concat(classes.theme, " stepDotActive") : 'stepDot'
144
- }, step.index), graphicsCounter === currentIndex ? /*#__PURE__*/_react.default.createElement("div", {
145
- className: "stepTitle",
153
+ className: 'dot'
154
+ }, step.index + 1), graphicsCounter === currentIndex.current ? /*#__PURE__*/_react.default.createElement("div", {
155
+ className: "title",
146
156
  id: "titleDiv"
147
- }, step.title) : null));
157
+ }, step.title) : null), graphicsCounter < steps.length - 1 ? /*#__PURE__*/_react.default.createElement("div", {
158
+ className: (graphicsCounter < currentIndex.current ? "".concat(classes.themeBorder, " ") : '') + 'rightLine' + (graphicsCounter === 0 ? ' firstLine' : '')
159
+ }) : null, graphicsCounter++ ? null : null);
148
160
  }
149
161
 
150
162
  function render() {
@@ -155,18 +167,18 @@ const StepperTitleBar = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.de
155
167
  }
156
168
  }, /*#__PURE__*/_react.default.createElement("table", {
157
169
  cellPadding: "0",
158
- border: "0",
159
- width: "100%",
160
170
  style: {
161
- borderCollapse: "collapse"
171
+ borderCollapse: "collapse",
172
+ width: "100%"
162
173
  }
163
174
  }, /*#__PURE__*/_react.default.createElement("tbody", null, /*#__PURE__*/_react.default.createElement("tr", null, steps.map(step => /*#__PURE__*/_react.default.createElement("td", {
164
- width: segmentPercentage + '%',
165
- align: "right",
175
+ align: graphicsCounter === 0 ? 'left' : graphicsCounter === steps.length - 1 ? 'right' : 'center',
176
+ key: keyCounter++,
166
177
  style: {
167
178
  whiteSpace: "nowrap",
168
179
  paddingTop: '8px',
169
- maxHeight: '8px'
180
+ maxHeight: '8px',
181
+ width: segmentPercentage + '%'
170
182
  },
171
183
  id: 'step-container-' + counter++
172
184
  }, renderStep(step)))))));
@@ -175,13 +187,14 @@ const StepperTitleBar = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.de
175
187
  return /*#__PURE__*/_react.default.createElement("div", {
176
188
  ref: ref
177
189
  }, !_Utils.default.isNull(props.config) ? /*#__PURE__*/_react.default.createElement("div", {
178
- style: {
190
+ style: _Utils.default.mergeStyles({
179
191
  fontSize: '24px',
180
192
  color: '#202124',
181
193
  padding: "16px 0",
182
- width: "60%"
183
- }
184
- }, !_Utils.default.isNull(steps) && !_Utils.default.isNull(segmentPercentage) && !_Utils.default.isNull(currentIndex) ? render() : null) : null);
194
+ margin: "0",
195
+ width: "70%"
196
+ }, props.config)
197
+ }, !_Utils.default.isNull(steps) && !_Utils.default.isNull(segmentPercentage) && !_Utils.default.isNull(currentIndex.current) ? render() : null) : null);
185
198
  }));
186
199
 
187
200
  var _default = StepperTitleBar;
@@ -7,20 +7,10 @@ exports.default = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
- var _Typography = _interopRequireDefault(require("@material-ui/core/Typography"));
13
-
14
- var _Box = _interopRequireDefault(require("@material-ui/core/Box"));
15
-
16
- var _styles = require("@material-ui/core/styles");
17
-
18
10
  var _Utils = _interopRequireDefault(require("../Utils"));
19
11
 
20
12
  var _AppBar = _interopRequireDefault(require("@material-ui/core/AppBar"));
21
13
 
22
- var _Form = _interopRequireDefault(require("./form/Form"));
23
-
24
14
  var _Tab = _interopRequireDefault(require("@material-ui/core/Tab"));
25
15
 
26
16
  var _Tabs = _interopRequireDefault(require("@material-ui/core/Tabs"));
@@ -29,7 +19,7 @@ var _TabPage = _interopRequireDefault(require("./TabPage"));
29
19
 
30
20
  var _Section = _interopRequireDefault(require("./form/Section"));
31
21
 
32
- var _mobx = require("mobx");
22
+ var _Toolbar = _interopRequireDefault(require("./Toolbar"));
33
23
 
34
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
35
25
 
@@ -71,6 +61,8 @@ const TabPanel = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.f
71
61
  _React$useState6 = _slicedToArray(_React$useState5, 1),
72
62
  componentHandles = _React$useState6[0];
73
63
 
64
+ let keyCounter = 0;
65
+
74
66
  const handleTabChange = (event, newValue) => {
75
67
  setTabValue(newValue);
76
68
  };
@@ -138,6 +130,13 @@ const TabPanel = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.f
138
130
  loadCompleteHandler: props.loadCompleteHandler,
139
131
  viewId: props.viewId,
140
132
  values: props.values
133
+ }) : component.type === 'toolbar' ? /*#__PURE__*/_react.default.createElement(_Toolbar.default, {
134
+ config: component,
135
+ handle: createComponentHandle(component),
136
+ key: keyCounter++,
137
+ ref: /*#__PURE__*/_react.default.createRef(),
138
+ viewId: props.viewId,
139
+ loadCompleteHandler: props.loadCompleteHandler
141
140
  }) : /*#__PURE__*/_react.default.createElement("div", null, 'Unsupported component type ' + component.type);
142
141
  }
143
142
 
@@ -108,7 +108,8 @@ const TableCellContent = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.d
108
108
  }
109
109
 
110
110
  props.editor.attributes['minWidth'] = 0;
111
- valueChangeHandler(null);
111
+ let value = props.row[props.dataBinding];
112
+ valueChangeHandler(_Utils.default.isNull(value) ? null : value);
112
113
  }
113
114
  }, [props.editor]);
114
115
 
@@ -249,9 +250,11 @@ const TableCellContent = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.d
249
250
  }
250
251
  }))) : null, /*#__PURE__*/_react.default.createElement("td", {
251
252
  style: props.columnConfig.cellFormat === 'MONEY' || props.columnConfig.cellFormat === 'NUMBER' ? {
252
- textAlign: 'right'
253
+ textAlign: 'right',
254
+ maxWidth: 0
253
255
  } : {
254
- textAlign: 'left'
256
+ textAlign: 'left',
257
+ maxWidth: 0
255
258
  }
256
259
  }, doRender()))));
257
260
  };
@@ -0,0 +1,13 @@
1
+ ._draggable_ {
2
+ position: absolute;
3
+ border-radius: 2px;
4
+ display: inline-block;
5
+ margin-left: 4px;
6
+ font-style: italic;
7
+ font-weight: 600;
8
+ font-size: 12px;
9
+ color: green;
10
+ white-space: nowrap;
11
+ overflow: hidden;
12
+ text-overflow: ellipsis;
13
+ }