@agilemotion/oui-react-js 1.3.7 → 1.3.9
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/README.TXT +1 -0
- package/dist/ApplicationContext.js +161 -284
- package/dist/BasicApp.js +1 -1
- package/dist/BasicAppHome.js +17 -4
- package/dist/BusinessPortalApp.js +4 -4
- package/dist/BusinessPortalAppHome.js +10 -39
- package/dist/DynamicJS.js +20 -52
- package/dist/RestUtils.js +86 -111
- package/dist/Utils.js +36 -30
- package/dist/assets/jss/components/authNavbarStyle.js +34 -35
- package/dist/assets/jss/components/cardHeaderStyle.js +12 -12
- package/dist/assets/jss/components/customDropdownStyle.js +26 -26
- package/dist/assets/jss/components/customInputStyle.js +2 -8
- package/dist/assets/jss/components/dropdownStyle.js +10 -15
- package/dist/assets/jss/components/footerStyle.js +12 -18
- package/dist/assets/jss/components/headerLinksStyle.js +7 -13
- package/dist/assets/jss/components/headerStyle.js +24 -25
- package/dist/assets/jss/components/navbarLinksStyle.js +7 -13
- package/dist/assets/jss/components/navbarStyle.js +24 -25
- package/dist/assets/jss/components/sidebarStyle.js +41 -43
- package/dist/assets/jss/components/typographyStyle.js +2 -8
- package/dist/assets/jss/rootStyle.js +32 -47
- package/dist/assets/jss/views/layoutStyle.js +6 -11
- package/dist/assets/jss/views/loginStyle.js +4 -10
- package/dist/assets/lotties/call-loading.json +1 -0
- package/dist/assets/lotties/calling-2.json +1 -0
- package/dist/assets/lotties/calling.json +1 -0
- package/dist/assets/lotties/calling2.json +1 -0
- package/dist/assets/lotties/chat.json +1 -0
- package/dist/assets/lotties/join.json +1 -0
- package/dist/assets/lotties/loading.json +1 -0
- package/dist/assets/lotties/msg2.json +1 -0
- package/dist/assets/lotties/recording.json +1 -0
- package/dist/assets/lotties/waiting.json +1 -0
- package/dist/assets/scss/black-dashboard-react/bootstrap/_card.scss +5 -5
- package/dist/assets/scss/black-dashboard-react/bootstrap/_carousel.scss +2 -2
- package/dist/assets/scss/black-dashboard-react/bootstrap/_custom-forms.scss +3 -3
- package/dist/assets/scss/black-dashboard-react/bootstrap/_functions.scss +1 -1
- package/dist/assets/scss/black-dashboard-react/bootstrap/_images.scss +1 -1
- package/dist/assets/scss/black-dashboard-react/bootstrap/_jumbotron.scss +1 -1
- package/dist/assets/scss/black-dashboard-react/bootstrap/_popover.scss +7 -5
- package/dist/assets/scss/black-dashboard-react/bootstrap/_tooltip.scss +4 -4
- package/dist/assets/scss/black-dashboard-react/bootstrap/_variables.scss +5 -5
- package/dist/assets/scss/black-dashboard-react/bootstrap/mixins/_grid-framework.scss +2 -2
- package/dist/assets/scss/black-dashboard-react/bootstrap/mixins/_grid.scss +11 -9
- package/dist/assets/scss/black-dashboard-react/bootstrap/utilities/_embed.scss +6 -4
- package/dist/assets/scss/black-dashboard-react/custom/_variables.scss +1 -1
- package/dist/components/AlertBar.js +39 -80
- package/dist/components/AlertItem.js +4 -26
- package/dist/components/Button.js +24 -36
- package/dist/components/Calendar.js +478 -0
- package/dist/components/Calender.css +244 -0
- package/dist/components/ConfirmationDialog.js +5 -29
- package/dist/components/DataGrid.js +169 -338
- package/dist/components/DataGridColumn.js +5 -28
- package/dist/components/DataGridFilter.js +46 -114
- package/dist/components/DataGridHeading.js +11 -19
- package/dist/components/Dialog.js +27 -121
- package/dist/components/DocumentViewer.js +15 -35
- package/dist/components/DocumentViewerComponent.js +2 -20
- package/dist/components/FileThumb.js +115 -0
- package/dist/components/Graph.js +25 -75
- package/dist/components/GraphNode.js +4 -21
- package/dist/components/HtmlPanel.js +59 -78
- package/dist/components/Icon.js +99 -1
- package/dist/components/LoadingIndicator.js +4 -4
- package/dist/components/LottieIcon.js +134 -0
- package/dist/components/PopupView.js +2 -20
- package/dist/components/RegularButton.js +15 -19
- package/dist/components/SignaturePanel.js +9 -40
- package/dist/components/SocketManager.js +170 -0
- package/dist/components/StepperTitleBar.js +30 -56
- package/dist/components/TabPage.js +6 -9
- package/dist/components/TabPanel.js +41 -98
- package/dist/components/TableCellContent.js +30 -38
- package/dist/components/TemplateDesigner.css +0 -1
- package/dist/components/TemplateDesigner.js +107 -151
- package/dist/components/TemplateItemEventHandler.js +33 -100
- package/dist/components/TemplateTable.js +6 -42
- package/dist/components/TitleBar.js +35 -52
- package/dist/components/Toolbar.js +33 -179
- package/dist/components/Tree.js +27 -64
- package/dist/components/card/Card.js +16 -20
- package/dist/components/card/CardAvatar.js +9 -13
- package/dist/components/card/CardBody.js +13 -17
- package/dist/components/card/CardFooter.js +12 -16
- package/dist/components/card/CardHeader.js +13 -17
- package/dist/components/card/CardIcon.js +6 -10
- package/dist/components/card/CardText.js +6 -10
- package/dist/components/customInput/CustomInput.js +12 -10
- package/dist/components/dashboard/BasicBusinessAppDashboard.js +81 -158
- package/dist/components/dashboard/BusinessPortalAppDashboard.js +33 -79
- package/dist/components/dashboard/components/Header.js +8 -25
- package/dist/components/dashboard/components/LeftDrawer.js +3 -1
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +1 -1
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +143 -36
- package/dist/components/footer/Footer.js +6 -18
- package/dist/components/form/AddressSearch.js +32 -66
- package/dist/components/form/AutoComplete.js +160 -0
- package/dist/components/form/BaseField.js +66 -96
- package/dist/components/form/DatePicker.js +3 -21
- package/dist/components/form/FieldSet.js +158 -180
- package/dist/components/form/Form.css +1 -1
- package/dist/components/form/Form.js +137 -471
- package/dist/components/form/GridField.js +46 -146
- package/dist/components/form/IconField.js +35 -0
- package/dist/components/form/ImageEditor.js +19 -57
- package/dist/components/form/LookupField.js +8 -29
- package/dist/components/form/MultiFileUploadField.js +186 -0
- package/dist/components/form/RadioGroup.js +1 -16
- package/dist/components/form/Section.js +31 -92
- package/dist/components/form/SelectItem.js +14 -33
- package/dist/components/form/SignatureTemplateDesignerField.js +4 -2
- package/dist/components/form/Switch.js +53 -0
- package/dist/components/form/TextField.js +10 -17
- package/dist/components/form/TimePicker.js +7 -1
- package/dist/components/form/TransferList.css +2 -2
- package/dist/components/form/TransferList.js +67 -125
- package/dist/components/form/UploadField.js +27 -79
- package/dist/components/form/fieldset.css +8 -0
- package/dist/components/grid/GridContainer.js +5 -9
- package/dist/components/grid/GridItem.js +5 -9
- package/dist/components/layout/CollapsiblePanel.js +11 -33
- package/dist/components/layout/Layout.js +175 -290
- package/dist/components/layout/VC.css +17 -0
- package/dist/components/layout/View.css +17 -1
- package/dist/components/layout/View.js +77 -194
- package/dist/components/loader.css +1 -1
- package/dist/components/media/ClosablePanel.css +37 -0
- package/dist/components/media/ClosablePanel.js +53 -0
- package/dist/components/media/LobbyWaitingList.js +91 -0
- package/dist/components/media/MediaSoupHelper.js +223 -0
- package/dist/components/media/Recorder.js +235 -0
- package/dist/components/media/SideBarContent.css +54 -0
- package/dist/components/media/SideBarContent.js +46 -0
- package/dist/components/media/SocketRequest.js +20 -0
- package/dist/components/media/SocketResponse.js +16 -0
- package/dist/components/media/Timer.css +30 -0
- package/dist/components/media/Timer.js +88 -0
- package/dist/components/media/Toolbar.css +20 -0
- package/dist/components/media/Toolbar.js +470 -0
- package/dist/components/media/Tracks.js +39 -0
- package/dist/components/media/TrainingRoom.js +531 -0
- package/dist/components/media/Transports.js +35 -0
- package/dist/components/media/VCEventManager.js +74 -0
- package/dist/components/media/VCEventType.js +164 -0
- package/dist/components/media/VCParticipantList.css +72 -0
- package/dist/components/media/VCParticipantList.js +56 -0
- package/dist/components/media/VCParticipantListItem.css +73 -0
- package/dist/components/media/VCParticipantListItem.js +319 -0
- package/dist/components/media/VCRoom.css +42 -0
- package/dist/components/media/VCRoom.js +90 -0
- package/dist/components/media/VCRoomParticipant.css +25 -0
- package/dist/components/media/VCRoomParticipant.js +806 -0
- package/dist/components/media/VCRoomWorkspace.css +86 -0
- package/dist/components/media/VCRoomWorkspace.js +653 -0
- package/dist/components/media/Video.css +4 -0
- package/dist/components/media/Video.js +131 -0
- package/dist/components/media/chat/ChatRoom.js +926 -0
- package/dist/components/media/chat/ChatRoomItem.js +83 -0
- package/dist/components/media/chat/ChatRoomList.js +78 -0
- package/dist/components/media/chat/ChatRooms.scss +567 -0
- package/dist/components/menu/CollapsibleMenu.js +2 -19
- package/dist/components/menu/MenuBars.js +6 -33
- package/dist/components/menu/MenuButton.js +7 -35
- package/dist/components/menu/MenuItem.js +3 -20
- package/dist/components/menu/MenuLink.js +18 -12
- package/dist/components/navbars/AuthNavbar.js +5 -18
- package/dist/components/navbars/HomeNavbar.js +3 -5
- package/dist/components/navbars/PortalNavbar.js +4 -22
- package/dist/components/signatures/AgilitySignaturePanel.js +35 -101
- package/dist/components/signatures/AlertItem.js +3 -24
- package/dist/components/signatures/DocumentContainer.js +47 -135
- package/dist/components/signatures/ImageSignatureInput.js +8 -35
- package/dist/components/signatures/MenuButton.js +1 -16
- package/dist/components/signatures/Prompt.js +3 -24
- package/dist/components/signatures/ResponsiveTable.js +75 -96
- package/dist/components/signatures/SearchView.js +14 -50
- package/dist/components/signatures/SignatorySearch.js +83 -98
- package/dist/components/signatures/SignatorySearchForm.js +11 -17
- package/dist/components/signatures/SignatureInput.js +15 -44
- package/dist/components/signatures/SignatureInputProps.js +20 -60
- package/dist/components/signatures/SignatureTemplateDesigner.js +148 -235
- package/dist/components/signatures/Toolbar.js +7 -34
- package/dist/components/signatures/ViewUtils.js +2 -6
- package/dist/components/typography/Danger.js +3 -1
- package/dist/components/typography/Info.js +3 -1
- package/dist/components/typography/Link.js +6 -2
- package/dist/event/ActionHandlers.js +3 -3
- package/dist/event/EventType.js +7 -1
- package/dist/event/LoadDataActionHandler.js +1 -1
- package/dist/event/Observable.js +56 -168
- package/dist/event/RouteActionHandler.js +45 -11
- package/dist/event/ServiceCallActionHandler.js +34 -24
- package/dist/js/Addresses.js +10 -8
- package/dist/js/Media.js +157 -0
- package/dist/redux/store/ConfigureStore.js +3 -9
- package/dist/redux/store/DashboardStore.js +42 -94
- package/dist/redux/store/SecurityStore.js +15 -50
- package/dist/view/Dashboard.js +242 -163
- package/dist/view/security/ChangePasswordBasic.js +23 -76
- package/dist/view/security/ForgotPassword.js +9 -42
- package/dist/view/security/ForgotPasswordBasic.js +8 -41
- package/dist/view/security/Login.js +11 -47
- package/dist/view/security/LoginBasic.js +8 -41
- package/dist/view/security/LoginBusinessPortal.js +8 -41
- package/dist/view/security/ResetPassword.js +9 -47
- package/dist/view/security/ResetPasswordBasic.js +21 -71
- package/dist/view/security/Security.js +1 -0
- package/package.json +29 -13
- package/README.md +0 -1623
- package/dist/components/dashboard/BasicApp.js +0 -140
- package/dist/components/navbars/NavbarLinks.js +0 -212
- package/dist/components/signatures/OLD.js +0 -1138
|
@@ -27,36 +27,11 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
27
27
|
|
|
28
28
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
29
29
|
|
|
30
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
31
|
-
|
|
32
|
-
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."); }
|
|
33
|
-
|
|
34
|
-
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; }
|
|
35
|
-
|
|
36
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
|
-
|
|
38
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
39
|
-
|
|
40
|
-
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); }
|
|
41
|
-
|
|
42
|
-
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; }
|
|
43
|
-
|
|
44
30
|
function getEditorType(columnName, gridConfig) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
try {
|
|
49
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
50
|
-
const column = _step.value;
|
|
51
|
-
|
|
52
|
-
if ((column.id === columnName || column.dataBinding === columnName) && !_Utils.default.isNull(column.editor)) {
|
|
53
|
-
return column.editor.fieldType;
|
|
54
|
-
}
|
|
31
|
+
for (const column of gridConfig.columns) {
|
|
32
|
+
if ((column.id === columnName || column.dataBinding === columnName) && !_Utils.default.isNull(column.editor)) {
|
|
33
|
+
return column.editor.fieldType;
|
|
55
34
|
}
|
|
56
|
-
} catch (err) {
|
|
57
|
-
_iterator.e(err);
|
|
58
|
-
} finally {
|
|
59
|
-
_iterator.f();
|
|
60
35
|
}
|
|
61
36
|
|
|
62
37
|
return null;
|
|
@@ -65,31 +40,21 @@ function getEditorType(columnName, gridConfig) {
|
|
|
65
40
|
function createRecord(row, gridConfig, inbound) {
|
|
66
41
|
let record = {};
|
|
67
42
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
try {
|
|
72
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
73
|
-
const column = _step2.value;
|
|
74
|
-
let property = !_Utils.default.isNull(column.dataBinding) ? column.dataBinding : column.id;
|
|
75
|
-
let val = row[property];
|
|
43
|
+
for (const column of gridConfig.columns) {
|
|
44
|
+
let property = !_Utils.default.isNull(column.dataBinding) ? column.dataBinding : column.id;
|
|
45
|
+
let val = row[property];
|
|
76
46
|
|
|
77
|
-
|
|
78
|
-
|
|
47
|
+
if (!inbound) {
|
|
48
|
+
let editorType = getEditorType(property, gridConfig);
|
|
79
49
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
50
|
+
if (!_Utils.default.isNull(val) && (editorType === 'LOOKUP' || editorType === 'SELECT')) {
|
|
51
|
+
let objectReference = {};
|
|
52
|
+
objectReference.id = val.id;
|
|
53
|
+
val = objectReference;
|
|
85
54
|
}
|
|
86
|
-
|
|
87
|
-
record[property] = val;
|
|
88
55
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
} finally {
|
|
92
|
-
_iterator2.f();
|
|
56
|
+
|
|
57
|
+
record[property] = val;
|
|
93
58
|
}
|
|
94
59
|
|
|
95
60
|
record.id = row.id >= 0 ? row.id : null;
|
|
@@ -99,29 +64,15 @@ function createRecord(row, gridConfig, inbound) {
|
|
|
99
64
|
const GridFieldWrapper = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
100
65
|
const base = props.base;
|
|
101
66
|
|
|
102
|
-
const
|
|
103
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
104
|
-
newRowIdCounter = _React$useState2[0],
|
|
105
|
-
setNewRowIdCounter = _React$useState2[1];
|
|
67
|
+
const [newRowIdCounter, setNewRowIdCounter] = _react.default.useState(-1);
|
|
106
68
|
|
|
107
|
-
const
|
|
108
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
109
|
-
selection = _React$useState4[0],
|
|
110
|
-
setSelection = _React$useState4[1];
|
|
69
|
+
const [selection, setSelection] = _react.default.useState([]);
|
|
111
70
|
|
|
112
|
-
const
|
|
113
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
114
|
-
rows = _React$useState6[0],
|
|
115
|
-
setRows = _React$useState6[1];
|
|
71
|
+
const [rows, setRows] = _react.default.useState([]);
|
|
116
72
|
|
|
117
|
-
const
|
|
118
|
-
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
119
|
-
crudToolstripWidth = _React$useState8[0],
|
|
120
|
-
setCrudToolstripWidth = _React$useState8[1];
|
|
73
|
+
const [crudToolstripWidth, setCrudToolstripWidth] = _react.default.useState(null);
|
|
121
74
|
|
|
122
|
-
const
|
|
123
|
-
_React$useState10 = _slicedToArray(_React$useState9, 1),
|
|
124
|
-
hasButtons = _React$useState10[0];
|
|
75
|
+
const [hasButtons] = _react.default.useState(_Utils.default.isNull(props.config.attributes) || _Utils.default.isNull(props.config.attributes.addDisabled) || props.config.attributes.addDisabled === false || _Utils.default.isNull(props.config.attributes.removeDisabled) || props.config.attributes.removeDisabled === false);
|
|
125
76
|
|
|
126
77
|
let label = _Utils.default.getComponentAttribute(props.config, 'label', '');
|
|
127
78
|
|
|
@@ -145,43 +96,22 @@ const GridFieldWrapper = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.d
|
|
|
145
96
|
if (!_Utils.default.isNull(base.value) && !props.initialValueSet) {
|
|
146
97
|
let initValue = [];
|
|
147
98
|
|
|
148
|
-
|
|
149
|
-
|
|
99
|
+
for (const item of base.value) {
|
|
100
|
+
if (!_Utils.default.isNull(item.map)) {
|
|
101
|
+
initValue.push(item.map);
|
|
102
|
+
} else {
|
|
103
|
+
let properties = Object.getOwnPropertyNames(item);
|
|
150
104
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
const item = _step3.value;
|
|
105
|
+
for (const property of properties) {
|
|
106
|
+
let val = item[property];
|
|
154
107
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
} else {
|
|
158
|
-
let properties = Object.getOwnPropertyNames(item);
|
|
159
|
-
|
|
160
|
-
var _iterator4 = _createForOfIteratorHelper(properties),
|
|
161
|
-
_step4;
|
|
162
|
-
|
|
163
|
-
try {
|
|
164
|
-
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
165
|
-
const property = _step4.value;
|
|
166
|
-
let val = item[property];
|
|
167
|
-
|
|
168
|
-
if (!_Utils.default.isNull(val) && !_Utils.default.isNull(val.map)) {
|
|
169
|
-
item[property] = val.map;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
} catch (err) {
|
|
173
|
-
_iterator4.e(err);
|
|
174
|
-
} finally {
|
|
175
|
-
_iterator4.f();
|
|
108
|
+
if (!_Utils.default.isNull(val) && !_Utils.default.isNull(val.map)) {
|
|
109
|
+
item[property] = val.map;
|
|
176
110
|
}
|
|
177
|
-
|
|
178
|
-
initValue.push(item);
|
|
179
111
|
}
|
|
112
|
+
|
|
113
|
+
initValue.push(item);
|
|
180
114
|
}
|
|
181
|
-
} catch (err) {
|
|
182
|
-
_iterator3.e(err);
|
|
183
|
-
} finally {
|
|
184
|
-
_iterator3.f();
|
|
185
115
|
}
|
|
186
116
|
|
|
187
117
|
setRows(initValue);
|
|
@@ -252,8 +182,7 @@ const GridFieldWrapper = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.d
|
|
|
252
182
|
config: props.config.toolstrip,
|
|
253
183
|
handle: props.toolstripHandle,
|
|
254
184
|
ref: /*#__PURE__*/_react.default.createRef(),
|
|
255
|
-
viewId: props.viewId
|
|
256
|
-
loadCompleteHandler: props.loadCompleteHandler
|
|
185
|
+
viewId: props.viewId
|
|
257
186
|
})) : null)) : null, /*#__PURE__*/_react.default.createElement(_DataGrid.DataGrid, {
|
|
258
187
|
config: props.config.grid,
|
|
259
188
|
handle: props.gridHandle,
|
|
@@ -268,19 +197,9 @@ const GridFieldWrapper = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.d
|
|
|
268
197
|
if (!_Utils.default.isNull(rows)) {
|
|
269
198
|
value = [];
|
|
270
199
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
try {
|
|
275
|
-
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
276
|
-
const row = _step5.value;
|
|
277
|
-
let record = createRecord(row, props.config.grid, false);
|
|
278
|
-
value.push(record);
|
|
279
|
-
}
|
|
280
|
-
} catch (err) {
|
|
281
|
-
_iterator5.e(err);
|
|
282
|
-
} finally {
|
|
283
|
-
_iterator5.f();
|
|
200
|
+
for (const row of rows) {
|
|
201
|
+
let record = createRecord(row, props.config.grid, false);
|
|
202
|
+
value.push(record);
|
|
284
203
|
}
|
|
285
204
|
}
|
|
286
205
|
|
|
@@ -295,24 +214,16 @@ const GridFieldWrapper = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.d
|
|
|
295
214
|
setSelection(selection);
|
|
296
215
|
},
|
|
297
216
|
filterWrapperClass: 'transferListFilterWraper',
|
|
298
|
-
loadCompleteHandler: props.loadCompleteHandler,
|
|
299
217
|
hasBorder: false
|
|
300
218
|
})));
|
|
301
219
|
}));
|
|
302
220
|
|
|
303
221
|
const GridField = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
304
|
-
const
|
|
305
|
-
_React$useState12 = _slicedToArray(_React$useState11, 1),
|
|
306
|
-
gridHandle = _React$useState12[0];
|
|
222
|
+
const [gridHandle] = _react.default.useState({});
|
|
307
223
|
|
|
308
|
-
const
|
|
309
|
-
_React$useState14 = _slicedToArray(_React$useState13, 1),
|
|
310
|
-
toolHandle = _React$useState14[0];
|
|
224
|
+
const [toolHandle] = _react.default.useState(!_Utils.default.isNull(props.config.toolstrip) ? {} : null);
|
|
311
225
|
|
|
312
|
-
const
|
|
313
|
-
_React$useState16 = _slicedToArray(_React$useState15, 2),
|
|
314
|
-
initialValueSet = _React$useState16[0],
|
|
315
|
-
setInitialValueSet = _React$useState16[1];
|
|
226
|
+
const [initialValueSet, setInitialValueSet] = _react.default.useState(false);
|
|
316
227
|
|
|
317
228
|
return /*#__PURE__*/_react.default.createElement(_BaseField.BaseField, _extends({}, props, {
|
|
318
229
|
handle: props.handle,
|
|
@@ -345,29 +256,18 @@ const GridField = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.
|
|
|
345
256
|
let type = objectArray[0].type;
|
|
346
257
|
let nullIdRecords = 1;
|
|
347
258
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
try {
|
|
352
|
-
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
353
|
-
const objectArrayElement = _step6.value;
|
|
259
|
+
for (const objectArrayElement of objectArray) {
|
|
260
|
+
if (type === 'MapEntityDto' || !_Utils.default.isNull(objectArrayElement.map)) {
|
|
261
|
+
let record = createRecord(objectArrayElement.map, props.config.grid, inbound);
|
|
354
262
|
|
|
355
|
-
if (
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
if (_Utils.default.isNull(record.id)) {
|
|
359
|
-
record.id = -1 * nullIdRecords++;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
val.push(record);
|
|
363
|
-
} else {
|
|
364
|
-
val.push(objectArrayElement);
|
|
263
|
+
if (_Utils.default.isNull(record.id)) {
|
|
264
|
+
record.id = -1 * nullIdRecords++;
|
|
365
265
|
}
|
|
266
|
+
|
|
267
|
+
val.push(record);
|
|
268
|
+
} else {
|
|
269
|
+
val.push(objectArrayElement);
|
|
366
270
|
}
|
|
367
|
-
} catch (err) {
|
|
368
|
-
_iterator6.e(err);
|
|
369
|
-
} finally {
|
|
370
|
-
_iterator6.f();
|
|
371
271
|
}
|
|
372
272
|
}
|
|
373
273
|
|
|
@@ -0,0 +1,35 @@
|
|
|
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 _BaseField = require("./BaseField");
|
|
11
|
+
|
|
12
|
+
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
+
|
|
18
|
+
const IconWrapper = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
19
|
+
const base = props.base;
|
|
20
|
+
return /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
21
|
+
id: props.config.iconId
|
|
22
|
+
});
|
|
23
|
+
}));
|
|
24
|
+
|
|
25
|
+
const IconField = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement(_BaseField.BaseField, _extends({}, props, {
|
|
27
|
+
handle: props.handle
|
|
28
|
+
}), base => /*#__PURE__*/_react.default.createElement(IconWrapper, _extends({
|
|
29
|
+
ref: ref,
|
|
30
|
+
base: base
|
|
31
|
+
}, props)));
|
|
32
|
+
}));
|
|
33
|
+
|
|
34
|
+
var _default = IconField;
|
|
35
|
+
exports.default = _default;
|
|
@@ -25,24 +25,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
25
25
|
|
|
26
26
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
27
|
|
|
28
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
29
|
-
|
|
30
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
31
|
-
|
|
32
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
33
|
-
|
|
34
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
35
|
-
|
|
36
|
-
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."); }
|
|
37
|
-
|
|
38
|
-
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); }
|
|
39
|
-
|
|
40
|
-
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; }
|
|
41
|
-
|
|
42
|
-
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; }
|
|
43
|
-
|
|
44
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
45
|
-
|
|
46
28
|
const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
47
29
|
button: {
|
|
48
30
|
margin: theme.spacing(1)
|
|
@@ -72,29 +54,15 @@ const json = response => {
|
|
|
72
54
|
const location = window.location.protocol + "//" + window.location.hostname;
|
|
73
55
|
|
|
74
56
|
const ImageEditorComponent = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
const _React$useState5 = _react.default.useState(null),
|
|
85
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
86
|
-
zoomDepth = _React$useState6[0],
|
|
87
|
-
setZoomDepth = _React$useState6[1];
|
|
88
|
-
|
|
89
|
-
const _React$useState7 = _react.default.useState(null),
|
|
90
|
-
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
91
|
-
originalImageWidth = _React$useState8[0],
|
|
92
|
-
setOriginalImageWidth = _React$useState8[1];
|
|
93
|
-
|
|
94
|
-
const _React$useState9 = _react.default.useState(null),
|
|
95
|
-
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
96
|
-
originalImageHeight = _React$useState10[0],
|
|
97
|
-
setOriginalImageHeight = _React$useState10[1];
|
|
57
|
+
const [multiple] = _react.default.useState(props.multiple === true);
|
|
58
|
+
|
|
59
|
+
const [angle, setAngle] = _react.default.useState(0);
|
|
60
|
+
|
|
61
|
+
const [zoomDepth, setZoomDepth] = _react.default.useState(null);
|
|
62
|
+
|
|
63
|
+
const [originalImageWidth, setOriginalImageWidth] = _react.default.useState(null);
|
|
64
|
+
|
|
65
|
+
const [originalImageHeight, setOriginalImageHeight] = _react.default.useState(null);
|
|
98
66
|
|
|
99
67
|
const classes = useStyles();
|
|
100
68
|
|
|
@@ -135,12 +103,12 @@ const ImageEditorComponent = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_rea
|
|
|
135
103
|
function process(callback, data, action) {
|
|
136
104
|
let fetchConfig = getFetchConfig(data);
|
|
137
105
|
|
|
138
|
-
let url = location + _ApplicationContext.default.
|
|
106
|
+
let url = location + _ApplicationContext.default.getContextRoot() + _Utils.default.getComponentAttribute(props.config, 'processingUrl', null) + "/" + action + "/" + _Utils.default.getComponentAttribute(props.config, "mode", "DOC");
|
|
139
107
|
|
|
140
108
|
let rotateAngle = getRotateAngle(action);
|
|
141
109
|
|
|
142
110
|
if (rotateAngle) {
|
|
143
|
-
url += "
|
|
111
|
+
url += "?" + rotateAngle;
|
|
144
112
|
}
|
|
145
113
|
|
|
146
114
|
(0, _reactPromiseTracker.trackPromise)(fetch(encodeURI(url), fetchConfig).then(status).then(json).then(data => {
|
|
@@ -219,9 +187,9 @@ const ImageEditorComponent = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_rea
|
|
|
219
187
|
|
|
220
188
|
if (rotateMode === null || rotateMode === 'SERVER') {
|
|
221
189
|
process(data => {
|
|
222
|
-
base.handleValueChange(
|
|
190
|
+
base.handleValueChange({ ...base.value,
|
|
223
191
|
url: data
|
|
224
|
-
})
|
|
192
|
+
});
|
|
225
193
|
}, base.value.url, 'rotate' + direction);
|
|
226
194
|
} else {
|
|
227
195
|
let rotateAngle = angle + getRotateAngle("rotate" + direction);
|
|
@@ -231,9 +199,9 @@ const ImageEditorComponent = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_rea
|
|
|
231
199
|
};
|
|
232
200
|
|
|
233
201
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
234
|
-
style: {
|
|
202
|
+
style: _Utils.default.mergeStyles({
|
|
235
203
|
width: width
|
|
236
|
-
}
|
|
204
|
+
}, props.config)
|
|
237
205
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
238
206
|
className: "row",
|
|
239
207
|
style: {
|
|
@@ -384,7 +352,7 @@ const ImageEditorComponent = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_rea
|
|
|
384
352
|
src: base.value.url,
|
|
385
353
|
alt: '',
|
|
386
354
|
style: {
|
|
387
|
-
|
|
355
|
+
maxHeight: parseFloat(height.replace('px', '')) - 20 + 'px'
|
|
388
356
|
}
|
|
389
357
|
}))))) : null);
|
|
390
358
|
}));
|
|
@@ -392,15 +360,9 @@ const ImageEditorComponent = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_rea
|
|
|
392
360
|
exports.ImageEditorComponent = ImageEditorComponent;
|
|
393
361
|
|
|
394
362
|
const ImageEditor = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
395
|
-
const
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
setFile = _React$useState12[1];
|
|
399
|
-
|
|
400
|
-
const _React$useState13 = _react.default.useState(false),
|
|
401
|
-
_React$useState14 = _slicedToArray(_React$useState13, 2),
|
|
402
|
-
clearTrigger = _React$useState14[0],
|
|
403
|
-
setClearTrigger = _React$useState14[1];
|
|
363
|
+
const [file, setFile] = _react.default.useState(null);
|
|
364
|
+
|
|
365
|
+
const [clearTrigger, setClearTrigger] = _react.default.useState(false);
|
|
404
366
|
|
|
405
367
|
return /*#__PURE__*/_react.default.createElement(_BaseField.BaseField, _extends({}, props, {
|
|
406
368
|
handle: props.handle,
|
|
@@ -33,28 +33,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
33
33
|
|
|
34
34
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
35
35
|
|
|
36
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
37
|
-
|
|
38
|
-
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."); }
|
|
39
|
-
|
|
40
|
-
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); }
|
|
41
|
-
|
|
42
|
-
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; }
|
|
43
|
-
|
|
44
|
-
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; }
|
|
45
|
-
|
|
46
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47
|
-
|
|
48
36
|
const LookupFieldComponent = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
49
|
-
const
|
|
50
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
51
|
-
currentSelection = _React$useState2[0],
|
|
52
|
-
setCurrentSelection = _React$useState2[1];
|
|
37
|
+
const [currentSelection, setCurrentSelection] = _react.default.useState(null);
|
|
53
38
|
|
|
54
|
-
const
|
|
55
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
56
|
-
open = _React$useState4[0],
|
|
57
|
-
setOpen = _React$useState4[1];
|
|
39
|
+
const [open, setOpen] = _react.default.useState(false);
|
|
58
40
|
|
|
59
41
|
const width = _Utils.default.getComponentAttribute(props.config, 'width', '100%');
|
|
60
42
|
|
|
@@ -193,9 +175,7 @@ const LookupFieldComponent = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_rea
|
|
|
193
175
|
exports.LookupFieldComponent = LookupFieldComponent;
|
|
194
176
|
|
|
195
177
|
const LookupField = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
196
|
-
const
|
|
197
|
-
_React$useState6 = _slicedToArray(_React$useState5, 1),
|
|
198
|
-
gridHandle = _React$useState6[0];
|
|
178
|
+
const [gridHandle] = _react.default.useState({});
|
|
199
179
|
|
|
200
180
|
return /*#__PURE__*/_react.default.createElement(_BaseField.BaseField, _extends({}, props, {
|
|
201
181
|
handle: props.handle,
|
|
@@ -205,23 +185,22 @@ const LookupField = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defaul
|
|
|
205
185
|
return children;
|
|
206
186
|
},
|
|
207
187
|
valueParser: (value, inbound) => {
|
|
188
|
+
if (!value || !value.id) {
|
|
189
|
+
return null;
|
|
190
|
+
}
|
|
191
|
+
|
|
208
192
|
if (!_Utils.default.isNull(value)) {
|
|
209
193
|
if (inbound) {
|
|
210
194
|
let initVal = value;
|
|
211
195
|
|
|
212
|
-
if (!_Utils.default.isNull(initVal.map)) {
|
|
213
|
-
initVal = initVal.map;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
196
|
initVal.toString = () => {
|
|
217
|
-
return initVal.
|
|
197
|
+
return initVal.dataRecordDescription;
|
|
218
198
|
};
|
|
219
199
|
|
|
220
200
|
return initVal;
|
|
221
201
|
} else {
|
|
222
202
|
let objectReference = {};
|
|
223
203
|
objectReference.id = value.id;
|
|
224
|
-
objectReference.type = 'ObjectReference';
|
|
225
204
|
return objectReference;
|
|
226
205
|
}
|
|
227
206
|
}
|