@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
|
@@ -96,7 +96,13 @@ const TimePicker = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default
|
|
|
96
96
|
return /*#__PURE__*/_react.default.createElement(_BaseField.BaseField, _extends({}, props, {
|
|
97
97
|
handle: props.handle,
|
|
98
98
|
valueParser: (value, inbound) => {
|
|
99
|
-
|
|
99
|
+
if (!_Utils.default.isNull(value)) {
|
|
100
|
+
if (!value.toString().includes("T")) {
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return !_Utils.default.isNull(value) ? inbound ? new Date(value) : new Date(value).toLocaleTimeString('it-IT') : null;
|
|
100
106
|
}
|
|
101
107
|
}), base => /*#__PURE__*/_react.default.createElement(CustomTimePickerComponent, _extends({
|
|
102
108
|
ref: ref,
|
|
@@ -29,20 +29,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
29
29
|
|
|
30
30
|
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); }
|
|
31
31
|
|
|
32
|
-
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; } } }; }
|
|
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
32
|
const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
47
33
|
root: {
|
|
48
34
|
margin: 'auto'
|
|
@@ -65,103 +51,55 @@ const TransferListComponent = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_re
|
|
|
65
51
|
const classes = useStyles();
|
|
66
52
|
const base = props.base;
|
|
67
53
|
|
|
68
|
-
const
|
|
69
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
70
|
-
leftSelection = _React$useState2[0],
|
|
71
|
-
setLeftSelection = _React$useState2[1];
|
|
54
|
+
const [leftSelection, setLeftSelection] = _react.default.useState([]);
|
|
72
55
|
|
|
73
|
-
const
|
|
74
|
-
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
75
|
-
optionsDataBinding = _React$useState4[0];
|
|
56
|
+
const [optionsDataBinding] = _react.default.useState(!_Utils.default.isNull(props.config.optionsGrid.dataBinding) ? props.config.optionsGrid.dataBinding : 'options');
|
|
76
57
|
|
|
77
|
-
const
|
|
78
|
-
_React$useState6 = _slicedToArray(_React$useState5, 1),
|
|
79
|
-
selectionDataBinding = _React$useState6[0];
|
|
58
|
+
const [selectionDataBinding] = _react.default.useState(!_Utils.default.isNull(props.config.selectionGrid.dataBinding) ? props.config.selectionGrid.dataBinding : 'selected');
|
|
80
59
|
|
|
81
|
-
const
|
|
82
|
-
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
83
|
-
data = _React$useState8[0],
|
|
84
|
-
setData = _React$useState8[1];
|
|
60
|
+
const [data, setData] = _react.default.useState(props.data);
|
|
85
61
|
|
|
86
|
-
const
|
|
87
|
-
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
88
|
-
rightSelection = _React$useState10[0],
|
|
89
|
-
setRightSelection = _React$useState10[1];
|
|
62
|
+
const [rightSelection, setRightSelection] = _react.default.useState([]);
|
|
90
63
|
|
|
91
|
-
const
|
|
92
|
-
_React$useState12 = _slicedToArray(_React$useState11, 1),
|
|
93
|
-
label = _React$useState12[0];
|
|
64
|
+
const [label] = _react.default.useState(_Utils.default.getComponentAttribute(props.config, 'label', null));
|
|
94
65
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
initializing = _React$useState14[0],
|
|
98
|
-
setInitializing = _React$useState14[1];
|
|
66
|
+
function updateValue(rows) {
|
|
67
|
+
let objectRefs = [];
|
|
99
68
|
|
|
100
|
-
|
|
101
|
-
|
|
69
|
+
for (const item of rows) {
|
|
70
|
+
//let objectRef = {};
|
|
71
|
+
//objectRef.id = item.id;
|
|
72
|
+
objectRefs.push(item);
|
|
73
|
+
}
|
|
102
74
|
|
|
75
|
+
base.handleValueChange(objectRefs.length > 0 ? objectRefs : null);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
_react.default.useEffect(() => {
|
|
103
79
|
if (!_Utils.default.isNull(data) && data[selectionDataBinding].records.length > 0) {
|
|
104
80
|
let initialValues = [];
|
|
105
81
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
111
|
-
const record = _step.value;
|
|
112
|
-
let row = {};
|
|
113
|
-
row.id = record.map.id;
|
|
114
|
-
initialValues.push(row);
|
|
115
|
-
}
|
|
116
|
-
} catch (err) {
|
|
117
|
-
_iterator.e(err);
|
|
118
|
-
} finally {
|
|
119
|
-
_iterator.f();
|
|
82
|
+
for (const record of data[selectionDataBinding].records) {
|
|
83
|
+
let row = {};
|
|
84
|
+
row.id = record.id;
|
|
85
|
+
initialValues.push(row);
|
|
120
86
|
}
|
|
121
87
|
|
|
122
88
|
updateValue(initialValues);
|
|
123
89
|
}
|
|
124
|
-
};
|
|
90
|
+
}, [data]);
|
|
125
91
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
var _iterator2 = _createForOfIteratorHelper(rows),
|
|
130
|
-
_step2;
|
|
131
|
-
|
|
132
|
-
try {
|
|
133
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
134
|
-
const item = _step2.value;
|
|
135
|
-
//let objectRef = {};
|
|
136
|
-
//objectRef.id = item.id;
|
|
137
|
-
objectRefs.push(item);
|
|
138
|
-
}
|
|
139
|
-
} catch (err) {
|
|
140
|
-
_iterator2.e(err);
|
|
141
|
-
} finally {
|
|
142
|
-
_iterator2.f();
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
base.handleValueChange(objectRefs.length > 0 ? objectRefs : null);
|
|
146
|
-
}
|
|
92
|
+
_react.default.useEffect(() => {
|
|
93
|
+
setData(props.data);
|
|
94
|
+
}, [props.data]);
|
|
147
95
|
|
|
148
96
|
_react.default.useEffect(() => {
|
|
149
|
-
|
|
150
|
-
if (!_Utils.default.isNull(props.config.dataService)) {
|
|
151
|
-
let method = props.config.dataService.type === 'remoteObjectProxy' ? _RestUtils.invokeRpc : _RestUtils.invokeRest;
|
|
152
|
-
method(props.config.dataService, props.handle, props.viewId, result => {
|
|
153
|
-
let data = props.config.dataService.type === 'remoteObjectProxy' ? result.data : result;
|
|
154
|
-
setData(data);
|
|
155
|
-
}, e => {
|
|
156
|
-
console.error(e);
|
|
157
|
-
|
|
158
|
-
_Utils.default.publishSystemErrorMessage(props.viewId);
|
|
159
|
-
});
|
|
160
|
-
}
|
|
97
|
+
let autoLoadData = _Utils.default.getComponentAttribute(props.config, 'autoLoadData', null);
|
|
161
98
|
|
|
162
|
-
|
|
99
|
+
if (!_Utils.default.isNull(props.config.dataService) && (autoLoadData === null || autoLoadData === true)) {
|
|
100
|
+
props.loadData().then(data => setData(data));
|
|
163
101
|
}
|
|
164
|
-
});
|
|
102
|
+
}, []);
|
|
165
103
|
|
|
166
104
|
const handleTransferItemRight = () => {
|
|
167
105
|
props.optionsListHandle.api.deleteSelectedRows();
|
|
@@ -179,10 +117,14 @@ const TransferListComponent = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_re
|
|
|
179
117
|
|
|
180
118
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
181
119
|
ref: ref
|
|
182
|
-
},
|
|
120
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, label !== null ? /*#__PURE__*/_react.default.createElement("div", {
|
|
121
|
+
style: {
|
|
122
|
+
margin: '8px 0 8px 16px'
|
|
123
|
+
}
|
|
124
|
+
}, /*#__PURE__*/_react.default.createElement(_InputLabel.default, {
|
|
183
125
|
required: base.required,
|
|
184
126
|
error: base.hasError
|
|
185
|
-
}, label) : null, /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
127
|
+
}, label)) : null, /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
186
128
|
container: true,
|
|
187
129
|
alignItems: "stretch",
|
|
188
130
|
className: classes.root,
|
|
@@ -195,7 +137,8 @@ const TransferListComponent = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_re
|
|
|
195
137
|
item: true,
|
|
196
138
|
style: {
|
|
197
139
|
border: "1px solid ".concat(base.hasError ? '#f44336' : '#e1e1e1'),
|
|
198
|
-
width: '
|
|
140
|
+
width: '45%',
|
|
141
|
+
minWidth: '320px',
|
|
199
142
|
borderRadius: '4px'
|
|
200
143
|
}
|
|
201
144
|
}, /*#__PURE__*/_react.default.createElement(_DataGrid.DataGrid, {
|
|
@@ -206,13 +149,12 @@ const TransferListComponent = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_re
|
|
|
206
149
|
data: !_Utils.default.isNull(data) ? data[optionsDataBinding] : null,
|
|
207
150
|
onSelectionChange: selection => setLeftSelection(selection),
|
|
208
151
|
filterWrapperClass: 'transferListFilterWraper',
|
|
209
|
-
loadCompleteHandler: loadCompleteHandler,
|
|
210
152
|
hasBorder: false
|
|
211
153
|
})), /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
212
154
|
item: true,
|
|
213
155
|
style: {
|
|
214
156
|
margin: 'auto',
|
|
215
|
-
width: '
|
|
157
|
+
width: '10%'
|
|
216
158
|
}
|
|
217
159
|
}, /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
218
160
|
container: true,
|
|
@@ -237,7 +179,8 @@ const TransferListComponent = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_re
|
|
|
237
179
|
item: true,
|
|
238
180
|
style: {
|
|
239
181
|
border: "1px solid ".concat(base.hasError ? '#f44336' : '#e1e1e1'),
|
|
240
|
-
width: '
|
|
182
|
+
width: '45%',
|
|
183
|
+
minWidth: '320px',
|
|
241
184
|
borderRadius: '4px'
|
|
242
185
|
}
|
|
243
186
|
}, /*#__PURE__*/_react.default.createElement(_DataGrid.DataGrid, {
|
|
@@ -248,21 +191,35 @@ const TransferListComponent = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_re
|
|
|
248
191
|
data: !_Utils.default.isNull(data) ? data[selectionDataBinding] : null,
|
|
249
192
|
onSelectionChange: selection => setRightSelection(selection),
|
|
250
193
|
filterWrapperClass: 'transferListFilterWraper',
|
|
251
|
-
loadCompleteHandler: loadCompleteHandler,
|
|
252
194
|
hasBorder: false
|
|
253
195
|
})), /*#__PURE__*/_react.default.createElement("p", {
|
|
254
196
|
className: 'error'
|
|
255
|
-
}, base.errorMessage)))
|
|
197
|
+
}, base.errorMessage))));
|
|
256
198
|
}));
|
|
257
199
|
|
|
258
200
|
const TransferList = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
259
|
-
const
|
|
260
|
-
|
|
261
|
-
|
|
201
|
+
const [optionsListHandle] = _react.default.useState({});
|
|
202
|
+
|
|
203
|
+
const [selectionListHandle] = _react.default.useState({});
|
|
204
|
+
|
|
205
|
+
const [data, setData] = _react.default.useState(null);
|
|
206
|
+
|
|
207
|
+
const loadData = () => {
|
|
208
|
+
let method = props.config.dataService.type === 'rpc' ? _RestUtils.invokeRpc : _RestUtils.invokeRest;
|
|
209
|
+
return new Promise((resolve, reject) => {
|
|
210
|
+
method(props.config.dataService, props.handle, props.viewId, result => {
|
|
211
|
+
let data = props.config.dataService.type === 'rpc' ? result.data : result;
|
|
212
|
+
setData(data);
|
|
213
|
+
resolve(data);
|
|
214
|
+
}, e => {
|
|
215
|
+
console.error(e);
|
|
262
216
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
217
|
+
_Utils.default.publishSystemErrorMessage(props.viewId);
|
|
218
|
+
|
|
219
|
+
reject(e);
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
};
|
|
266
223
|
|
|
267
224
|
return /*#__PURE__*/_react.default.createElement(_BaseField.BaseField, _extends({}, props, {
|
|
268
225
|
reference: ref,
|
|
@@ -280,25 +237,8 @@ const TransferList = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
280
237
|
if (objectArray.length > 0) {
|
|
281
238
|
let type = objectArray[0].type;
|
|
282
239
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
try {
|
|
287
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
288
|
-
const objectArrayElement = _step3.value;
|
|
289
|
-
|
|
290
|
-
if (type === 'MapEntityDto') {
|
|
291
|
-
let objectReference = {};
|
|
292
|
-
objectReference.id = objectArrayElement.map.id;
|
|
293
|
-
val.push(objectReference);
|
|
294
|
-
} else {
|
|
295
|
-
val.push(objectArrayElement);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
} catch (err) {
|
|
299
|
-
_iterator3.e(err);
|
|
300
|
-
} finally {
|
|
301
|
-
_iterator3.f();
|
|
240
|
+
for (const objectArrayElement of objectArray) {
|
|
241
|
+
val.push(objectArrayElement);
|
|
302
242
|
}
|
|
303
243
|
}
|
|
304
244
|
|
|
@@ -306,10 +246,12 @@ const TransferList = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
306
246
|
}
|
|
307
247
|
|
|
308
248
|
return [];
|
|
309
|
-
}
|
|
249
|
+
},
|
|
250
|
+
loadDataHandler: () => loadData()
|
|
310
251
|
}), base => /*#__PURE__*/_react.default.createElement(TransferListComponent, _extends({
|
|
311
252
|
ref: ref,
|
|
312
253
|
base: base,
|
|
254
|
+
data: data,
|
|
313
255
|
optionsListHandle: optionsListHandle,
|
|
314
256
|
selectionListHandle: selectionListHandle
|
|
315
257
|
}, props)));
|
|
@@ -29,18 +29,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
29
29
|
|
|
30
30
|
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); }
|
|
31
31
|
|
|
32
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
33
|
-
|
|
34
|
-
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."); }
|
|
35
|
-
|
|
36
|
-
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); }
|
|
37
|
-
|
|
38
|
-
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; }
|
|
39
|
-
|
|
40
|
-
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; }
|
|
41
|
-
|
|
42
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
|
-
|
|
44
32
|
const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
45
33
|
button: {
|
|
46
34
|
margin: theme.spacing(1)
|
|
@@ -70,71 +58,36 @@ const json = response => {
|
|
|
70
58
|
const location = window.location.protocol + "//" + window.location.hostname;
|
|
71
59
|
|
|
72
60
|
const DocumentUpload = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
const _React$useState7 = _react.default.useState(!_Utils.default.isNull(props.base.value) ? props.base.value.documentRepositoryCacheId : null),
|
|
89
|
-
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
90
|
-
cacheId = _React$useState8[0],
|
|
91
|
-
setCacheId = _React$useState8[1];
|
|
92
|
-
|
|
93
|
-
const _React$useState9 = _react.default.useState(true),
|
|
94
|
-
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
95
|
-
loading = _React$useState10[0],
|
|
96
|
-
setLoading = _React$useState10[1];
|
|
97
|
-
|
|
98
|
-
const _React$useState11 = _react.default.useState(_Utils.default.isNull(props.config.validator) || props.config.validator.nullable === true),
|
|
99
|
-
_React$useState12 = _slicedToArray(_React$useState11, 1),
|
|
100
|
-
nullable = _React$useState12[0];
|
|
101
|
-
|
|
102
|
-
const _React$useState13 = _react.default.useState(props.multiple === true),
|
|
103
|
-
_React$useState14 = _slicedToArray(_React$useState13, 1),
|
|
104
|
-
multiple = _React$useState14[0];
|
|
105
|
-
|
|
106
|
-
const _React$useState15 = _react.default.useState(false),
|
|
107
|
-
_React$useState16 = _slicedToArray(_React$useState15, 2),
|
|
108
|
-
show = _React$useState16[0],
|
|
109
|
-
setShow = _React$useState16[1];
|
|
61
|
+
const [viewerFile, setViewerFile] = _react.default.useState(!_Utils.default.isNull(props.initialFile) ? props.initialFile : null);
|
|
62
|
+
|
|
63
|
+
const [valueMode, setValueMode] = _react.default.useState(_Utils.default.getComponentAttribute(props.config, 'valueMode', 'base64'));
|
|
64
|
+
|
|
65
|
+
const [files, setFiles] = _react.default.useState(!_Utils.default.isNull(props.initialFile) ? [props.initialFile] : null);
|
|
66
|
+
|
|
67
|
+
const [cacheId, setCacheId] = _react.default.useState(!_Utils.default.isNull(props.base.value) ? props.base.value.documentRepositoryCacheId : null);
|
|
68
|
+
|
|
69
|
+
const [loading, setLoading] = _react.default.useState(true);
|
|
70
|
+
|
|
71
|
+
const [nullable] = _react.default.useState(_Utils.default.isNull(props.config.validator) || props.config.validator.nullable === true);
|
|
72
|
+
|
|
73
|
+
const [multiple] = _react.default.useState(props.multiple === true);
|
|
74
|
+
|
|
75
|
+
const [show, setShow] = _react.default.useState(false);
|
|
110
76
|
|
|
111
77
|
const classes = useStyles();
|
|
112
78
|
|
|
113
|
-
const
|
|
114
|
-
_React$useState18 = _slicedToArray(_React$useState17, 2),
|
|
115
|
-
reference = _React$useState18[0],
|
|
116
|
-
setReference = _React$useState18[1];
|
|
79
|
+
const [reference, setReference] = _react.default.useState(ref ? ref : /*#__PURE__*/_react.default.createRef());
|
|
117
80
|
|
|
118
|
-
const
|
|
119
|
-
_React$useState20 = _slicedToArray(_React$useState19, 2),
|
|
120
|
-
hasError = _React$useState20[0],
|
|
121
|
-
setHasError = _React$useState20[1];
|
|
81
|
+
const [hasError, setHasError] = _react.default.useState(null);
|
|
122
82
|
|
|
123
83
|
const width = _Utils.default.getComponentAttribute(props.config, 'width', '200px');
|
|
124
84
|
|
|
125
85
|
const height = _Utils.default.getComponentAttribute(props.config, 'height', '200px');
|
|
126
86
|
|
|
127
|
-
const
|
|
128
|
-
_React$useState22 = _slicedToArray(_React$useState21, 2),
|
|
129
|
-
errorMessage = _React$useState22[0],
|
|
130
|
-
setErrorMessage = _React$useState22[1];
|
|
87
|
+
const [errorMessage, setErrorMessage] = _react.default.useState("");
|
|
131
88
|
|
|
132
89
|
const base = props.base;
|
|
133
90
|
|
|
134
|
-
_react.default.useEffect(() => {
|
|
135
|
-
setCacheId();
|
|
136
|
-
});
|
|
137
|
-
|
|
138
91
|
_react.default.useEffect(() => {
|
|
139
92
|
setViewerFile(props.initialFile);
|
|
140
93
|
}, [props.initialFile]);
|
|
@@ -205,7 +158,7 @@ const DocumentUpload = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.def
|
|
|
205
158
|
},
|
|
206
159
|
body: data
|
|
207
160
|
};
|
|
208
|
-
let url = location +
|
|
161
|
+
let url = location + uploadUrl;
|
|
209
162
|
(0, _reactPromiseTracker.trackPromise)(fetch(encodeURI(url), fetchConfig).then(status).then(json).then(data => {
|
|
210
163
|
metadata.documentRepositoryId = !_Utils.default.isNull(base.value) ? base.value.documentRepositoryId : null;
|
|
211
164
|
metadata.documentRepositoryCacheId = data;
|
|
@@ -233,6 +186,7 @@ const DocumentUpload = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.def
|
|
|
233
186
|
|
|
234
187
|
if (base.value) {
|
|
235
188
|
fileMetaData.id = base.value.id;
|
|
189
|
+
fileMetaData.documentRepositoryId = base.value.documentRepositoryId;
|
|
236
190
|
}
|
|
237
191
|
|
|
238
192
|
if ('base64' === valueMode) {
|
|
@@ -288,7 +242,7 @@ const DocumentUpload = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.def
|
|
|
288
242
|
backgroundColor: 'transparent',
|
|
289
243
|
border: base.hasError ? "1px solid #f44336" : null,
|
|
290
244
|
color: base.hasError ? "#f44336" : null,
|
|
291
|
-
backgroundImage: !_Utils.default.isNull(viewerFile) ? "url(".concat(viewerFile.base64, ")") : !_Utils.default.isNull(base.value) ? "url(".concat(location + _ApplicationContext.default.
|
|
245
|
+
backgroundImage: !_Utils.default.isNull(viewerFile) ? "url(".concat(viewerFile.base64, ")") : !_Utils.default.isNull(base.value) ? "url(".concat(location + _ApplicationContext.default.getContextRoot() + '/docs/api/v1/manager/download/' + base.value.documentRepositoryId + '?access_token=' + sessionStorage.getItem("accessToken") + '&idToken=' + sessionStorage.getItem("idToken"), ")") : "url(".concat(require('./' + _Utils.default.getComponentAttribute(props.config, 'defaultImage', 'default-avatar.png')), ")")
|
|
292
246
|
}
|
|
293
247
|
})), base.hasError ? /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
294
248
|
style: {
|
|
@@ -312,7 +266,7 @@ const DocumentUpload = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.def
|
|
|
312
266
|
padding: "0 8px"
|
|
313
267
|
}
|
|
314
268
|
}, base.errorMessage)) : null), /*#__PURE__*/_react.default.createElement("label", null, !_Utils.default.isNull(base.value) ? _Utils.default.isNull(base.value.id) ? base.value.name : /*#__PURE__*/_react.default.createElement("a", {
|
|
315
|
-
href: location + _ApplicationContext.default.
|
|
269
|
+
href: location + _ApplicationContext.default.getContextRoot() + '/docs/api/v1/manager/download/' + base.value.documentRepositoryId + '?access_token=' + sessionStorage.getItem("accessToken") + '&idToken=' + sessionStorage.getItem("idToken"),
|
|
316
270
|
target: '_blank'
|
|
317
271
|
}, base.value.name) : null), !base.disabled && nullable && base.value ? /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
318
272
|
"aria-controls": "menu-list-grow",
|
|
@@ -335,21 +289,15 @@ const DocumentUpload = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.def
|
|
|
335
289
|
exports.DocumentUpload = DocumentUpload;
|
|
336
290
|
|
|
337
291
|
const UploadField = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
338
|
-
const
|
|
339
|
-
_React$useState24 = _slicedToArray(_React$useState23, 2),
|
|
340
|
-
file = _React$useState24[0],
|
|
341
|
-
setFile = _React$useState24[1];
|
|
292
|
+
const [file, setFile] = _react.default.useState(null);
|
|
342
293
|
|
|
343
|
-
const
|
|
344
|
-
_React$useState26 = _slicedToArray(_React$useState25, 2),
|
|
345
|
-
clearTrigger = _React$useState26[0],
|
|
346
|
-
setClearTrigger = _React$useState26[1];
|
|
294
|
+
const clearTrigger = _react.default.useRef(false);
|
|
347
295
|
|
|
348
296
|
return /*#__PURE__*/_react.default.createElement(_BaseField.BaseField, _extends({}, props, {
|
|
349
297
|
handle: props.handle,
|
|
350
298
|
valueParser: (value, inbound) => {
|
|
351
299
|
if (inbound) {
|
|
352
|
-
|
|
300
|
+
clearTrigger.current = !clearTrigger.current;
|
|
353
301
|
|
|
354
302
|
if (!_Utils.default.isNull(value)) {
|
|
355
303
|
let val = value; // TODO : Support multiple file upload
|
|
@@ -399,14 +347,14 @@ const UploadField = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defaul
|
|
|
399
347
|
},
|
|
400
348
|
valueChangeCallback: value => {
|
|
401
349
|
if (_Utils.default.isNull(value)) {
|
|
402
|
-
|
|
350
|
+
clearTrigger.current = !clearTrigger.current;
|
|
403
351
|
}
|
|
404
352
|
}
|
|
405
353
|
}), base => /*#__PURE__*/_react.default.createElement(DocumentUpload, _extends({
|
|
406
354
|
ref: ref,
|
|
407
355
|
base: base,
|
|
408
356
|
initialFile: file,
|
|
409
|
-
clearTrigger: clearTrigger
|
|
357
|
+
clearTrigger: clearTrigger.current
|
|
410
358
|
}, props)));
|
|
411
359
|
}));
|
|
412
360
|
|
|
@@ -17,10 +17,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
17
17
|
|
|
18
18
|
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); }
|
|
19
19
|
|
|
20
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21
|
-
|
|
22
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
23
|
-
|
|
24
20
|
const styles = {
|
|
25
21
|
grid: {
|
|
26
22
|
margin: "0 -15px",
|
|
@@ -31,11 +27,11 @@ const useStyles = (0, _styles.makeStyles)(styles);
|
|
|
31
27
|
|
|
32
28
|
function GridContainer(props) {
|
|
33
29
|
const classes = useStyles();
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
const {
|
|
31
|
+
children,
|
|
32
|
+
className,
|
|
33
|
+
...rest
|
|
34
|
+
} = props;
|
|
39
35
|
return /*#__PURE__*/_react.default.createElement(_Grid.default, _extends({
|
|
40
36
|
container: true
|
|
41
37
|
}, rest, {
|
|
@@ -17,10 +17,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
17
17
|
|
|
18
18
|
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); }
|
|
19
19
|
|
|
20
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21
|
-
|
|
22
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
23
|
-
|
|
24
20
|
const styles = {
|
|
25
21
|
grid: {
|
|
26
22
|
padding: "0 15px !important"
|
|
@@ -30,11 +26,11 @@ const useStyles = (0, _styles.makeStyles)(styles);
|
|
|
30
26
|
|
|
31
27
|
function GridItem(props) {
|
|
32
28
|
const classes = useStyles();
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
const {
|
|
30
|
+
children,
|
|
31
|
+
className,
|
|
32
|
+
...rest
|
|
33
|
+
} = props;
|
|
38
34
|
return /*#__PURE__*/_react.default.createElement(_Grid.default, _extends({
|
|
39
35
|
item: true
|
|
40
36
|
}, rest, {
|
|
@@ -17,42 +17,20 @@ var _Utils = _interopRequireDefault(require("../../Utils"));
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function
|
|
20
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
21
21
|
|
|
22
22
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
23
|
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
35
|
-
|
|
36
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
37
|
-
|
|
38
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
39
|
-
|
|
40
|
-
function CollapsiblePanel(_ref) {
|
|
41
|
-
let children = _ref.children,
|
|
42
|
-
props = _objectWithoutProperties(_ref, ["children"]);
|
|
43
|
-
|
|
44
|
-
const title = props.title,
|
|
45
|
-
collapse = props.collapse;
|
|
46
|
-
|
|
47
|
-
const _useState = (0, _react.useState)(true),
|
|
48
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
49
|
-
isCollapse = _useState2[0],
|
|
50
|
-
setIsCollapse = _useState2[1];
|
|
51
|
-
|
|
52
|
-
const _useState3 = (0, _react.useState)("fa fa-chevron-down"),
|
|
53
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
54
|
-
icon = _useState4[0],
|
|
55
|
-
setIcon = _useState4[1];
|
|
24
|
+
function CollapsiblePanel({
|
|
25
|
+
children,
|
|
26
|
+
...props
|
|
27
|
+
}) {
|
|
28
|
+
const {
|
|
29
|
+
title,
|
|
30
|
+
collapse
|
|
31
|
+
} = props;
|
|
32
|
+
const [isCollapse, setIsCollapse] = (0, _react.useState)(true);
|
|
33
|
+
const [icon, setIcon] = (0, _react.useState)("fa fa-chevron-down");
|
|
56
34
|
|
|
57
35
|
const toggle = loading => {
|
|
58
36
|
let isOpen = !isCollapse;
|