@agilemotion/oui-react-js 1.3.8 → 1.4.0
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 → ApplicationManager.js} +334 -335
- package/dist/BasicApp.js +67 -64
- package/dist/BasicAppHome.js +90 -110
- package/dist/BusinessPortalApp.js +1 -1
- package/dist/BusinessPortalAppHome.js +15 -50
- package/dist/DynamicJS.js +24 -52
- package/dist/RestUtils.js +90 -116
- package/dist/Utils.js +49 -37
- package/dist/WithRouter.js +34 -0
- 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/_sidebar-and-main-panel.scss +1 -1
- 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 +49 -52
- package/dist/components/Calendar.js +442 -0
- package/dist/components/Calender.css +244 -0
- package/dist/components/ConfirmationDialog.js +5 -29
- package/dist/components/DataGrid.js +207 -345
- package/dist/components/DataGridColumn.js +6 -29
- package/dist/components/DataGridFilter.js +48 -116
- package/dist/components/DataGridHeading.js +11 -19
- package/dist/components/Dialog.js +27 -121
- package/dist/components/DocumentViewer.js +12 -38
- package/dist/components/DocumentViewerComponent.js +2 -20
- package/dist/components/FileThumb.js +126 -0
- package/dist/components/Graph.js +33 -75
- package/dist/components/GraphNode.js +5 -22
- package/dist/components/HtmlPanel.js +68 -82
- package/dist/components/Icon.js +107 -1
- package/dist/components/LoadingIndicator.js +4 -4
- package/dist/components/LottieIcon.js +134 -0
- package/dist/components/PopupView.js +3 -21
- package/dist/components/Portlet.js +100 -0
- 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 +33 -59
- package/dist/components/TabPage.js +6 -9
- package/dist/components/TabPanel.js +49 -98
- package/dist/components/TableCellContent.js +31 -39
- package/dist/components/TemplateDesigner.js +114 -158
- package/dist/components/TemplateItemEventHandler.js +33 -100
- package/dist/components/TemplateTable.js +6 -42
- package/dist/components/TitleBar.js +38 -54
- package/dist/components/Toolbar.js +67 -182
- package/dist/components/Tree.js +29 -66
- 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 +85 -159
- package/dist/components/dashboard/BusinessPortalAppDashboard.js +30 -75
- package/dist/components/dashboard/components/Header.js +9 -26
- 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.css +7 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +189 -79
- package/dist/components/footer/Footer.js +6 -18
- package/dist/components/form/AddressSearch.js +32 -66
- package/dist/components/form/AutoComplete.js +161 -0
- package/dist/components/form/BaseField.js +89 -107
- package/dist/components/form/DatePicker.js +8 -23
- package/dist/components/form/FieldSet.js +161 -191
- package/dist/components/form/Form.css +1 -1
- package/dist/components/form/Form.js +153 -479
- package/dist/components/form/GridField.js +46 -146
- package/dist/components/form/IconField.js +35 -0
- package/dist/components/form/ImageEditor.js +22 -60
- package/dist/components/form/LookupField.js +8 -29
- package/dist/components/form/MultiFileUploadField.js +187 -0
- package/dist/components/form/RadioGroup.js +10 -26
- package/dist/components/form/Section.js +40 -91
- package/dist/components/form/SelectItem.js +14 -33
- package/dist/components/form/SignatureTemplateDesignerField.js +0 -1
- package/dist/components/form/Switch.js +53 -0
- package/dist/components/form/TextField.js +10 -17
- package/dist/components/form/TimePicker.js +8 -1
- package/dist/components/form/TransferList.css +2 -2
- package/dist/components/form/TransferList.js +67 -125
- package/dist/components/form/UploadField.js +132 -177
- 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 +228 -290
- package/dist/components/layout/VC.css +17 -0
- package/dist/components/layout/View.css +18 -1
- package/dist/components/layout/View.js +80 -200
- package/dist/components/layout/ViewContainer.css +3 -0
- package/dist/components/layout/ViewContainer.js +59 -0
- package/dist/components/layout/ViewPort.js +50 -80
- package/dist/components/layout/Window.css +18 -0
- package/dist/components/layout/Window.js +287 -0
- package/dist/components/layout/WindowViewPort.js +71 -0
- 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 +35 -0
- package/dist/components/media/Toolbar.js +494 -0
- package/dist/components/media/Tracks.js +39 -0
- package/dist/components/media/TrainingRoom.js +608 -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 +808 -0
- package/dist/components/media/VCRoomRecorder.js +223 -0
- package/dist/components/media/VCRoomWorkspace.css +86 -0
- package/dist/components/media/VCRoomWorkspace.js +666 -0
- package/dist/components/media/Video.css +4 -0
- package/dist/components/media/Video.js +131 -0
- package/dist/components/media/VideoPlayer.css +10 -0
- package/dist/components/media/VideoPlayer.js +86 -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 +27 -39
- package/dist/components/menu/MenuItem.js +3 -20
- package/dist/components/menu/MenuLink.js +22 -13
- package/dist/components/navbars/AuthNavbar.js +5 -18
- package/dist/components/navbars/HomeNavbar.js +5 -7
- package/dist/components/navbars/PortalNavbar.js +7 -25
- package/dist/components/signatures/AgilitySignaturePanel.js +38 -104
- package/dist/components/signatures/AlertItem.js +3 -24
- package/dist/components/signatures/DocumentContainer.js +47 -134
- package/dist/components/signatures/ImageSignatureInput.js +11 -38
- package/dist/components/signatures/MenuButton.js +1 -16
- package/dist/components/signatures/Prompt.js +3 -24
- package/dist/components/signatures/ResponsiveTable.js +42 -83
- package/dist/components/signatures/SearchView.js +13 -50
- package/dist/components/signatures/SignatorySearch.js +83 -99
- package/dist/components/signatures/SignatorySearchForm.js +11 -17
- package/dist/components/signatures/SignatureInput.js +18 -47
- package/dist/components/signatures/SignatureInputProps.js +18 -60
- package/dist/components/signatures/SignatureTemplateDesigner.js +151 -239
- 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 +6 -6
- package/dist/event/EventType.js +7 -1
- package/dist/event/LoadDataActionHandler.js +1 -1
- package/dist/event/Observable.js +80 -174
- package/dist/event/RouteActionHandler.js +74 -31
- package/dist/event/ServiceCallActionHandler.js +36 -24
- package/dist/event/SignalGraphActionHandler.js +2 -2
- package/dist/js/Addresses.js +10 -8
- package/dist/js/Calendar.js +220 -0
- 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 +256 -171
- package/dist/view/Views.js +30 -0
- package/dist/view/security/ChangePasswordBasic.js +29 -80
- package/dist/view/security/ForgotPassword.js +13 -46
- package/dist/view/security/ForgotPasswordBasic.js +12 -45
- package/dist/view/security/Login.js +15 -51
- package/dist/view/security/LoginBasic.js +13 -46
- package/dist/view/security/LoginBusinessPortal.js +12 -45
- package/dist/view/security/ResetPassword.js +13 -51
- package/dist/view/security/ResetPasswordBasic.js +27 -75
- package/dist/view/security/Security.js +1 -0
- package/package.json +31 -25
- 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
- package/gulpfile.js +0 -77
|
@@ -11,7 +11,7 @@ var _Utils = _interopRequireDefault(require("../Utils"));
|
|
|
11
11
|
|
|
12
12
|
var _Observable = _interopRequireDefault(require("../event/Observable"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _ApplicationManager = _interopRequireDefault(require("../ApplicationManager"));
|
|
15
15
|
|
|
16
16
|
var _RestUtils = require("../RestUtils");
|
|
17
17
|
|
|
@@ -25,46 +25,20 @@ var _DocumentViewerComponent = _interopRequireDefault(require("./DocumentViewerC
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
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
28
|
const DocumentViewer = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
41
|
-
const
|
|
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
|
-
value = _React$useState4[0],
|
|
49
|
-
setValue = _React$useState4[1];
|
|
29
|
+
const [value, setValue] = _react.default.useState(null);
|
|
50
30
|
|
|
51
31
|
_react.default.useEffect(() => {
|
|
52
32
|
props.handle.api = api();
|
|
33
|
+
});
|
|
53
34
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
_Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, props.handle, props.viewId);
|
|
58
|
-
|
|
59
|
-
_Observable.default.addSystemSubscriptions(parsedConfig);
|
|
35
|
+
_react.default.useEffect(() => {
|
|
36
|
+
let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
60
37
|
|
|
61
|
-
|
|
38
|
+
_Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, props.handle, props.viewId);
|
|
62
39
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
});
|
|
40
|
+
_Observable.default.addSystemSubscriptions(props.viewId, parsedConfig);
|
|
41
|
+
}, []);
|
|
68
42
|
|
|
69
43
|
const api = () => {
|
|
70
44
|
return {
|
|
@@ -74,13 +48,13 @@ const DocumentViewer = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.def
|
|
|
74
48
|
|
|
75
49
|
loadData: actionConfig => {
|
|
76
50
|
if (!_Utils.default.isNull(actionConfig) && !_Utils.default.isNull(actionConfig.value)) {
|
|
77
|
-
let value =
|
|
51
|
+
let value = _ApplicationManager.default.isExpression(actionConfig.value) ? _ApplicationManager.default.resolveExpressionValue(actionConfig.value) : actionConfig.value; // TODO : set value
|
|
78
52
|
} else {
|
|
79
53
|
let service = !_Utils.default.isNull(props.config.dataService) ? props.config.dataService : actionConfig !== null ? actionConfig.dataService : null;
|
|
80
54
|
let componentValue = !_Utils.default.isNull(props.config.value) ? props.config.value : actionConfig !== null ? actionConfig.value : null;
|
|
81
55
|
|
|
82
56
|
if (!_Utils.default.isNull(service)) {
|
|
83
|
-
if (service.type === '
|
|
57
|
+
if (service.type === 'rpc') {
|
|
84
58
|
(0, _RestUtils.invokeRpc)(service, props.handle, props.viewId, result => {}, e => {}, parameter => {});
|
|
85
59
|
} else {
|
|
86
60
|
if (_Utils.default.isNull(actionConfig)) {
|
|
@@ -104,11 +78,11 @@ const DocumentViewer = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.def
|
|
|
104
78
|
}
|
|
105
79
|
} else {
|
|
106
80
|
if (!_Utils.default.isNull(componentValue)) {
|
|
107
|
-
if (
|
|
81
|
+
if (_ApplicationManager.default.isExpression(componentValue)) {
|
|
108
82
|
let path = _Utils.default.getPropertyChainPath(componentValue);
|
|
109
83
|
|
|
110
84
|
if (!_Utils.default.isNull(path.valueObject)) {
|
|
111
|
-
_Observable.default.addSystemGeneratedSubscription(props.viewId, props.config.id, () => {
|
|
85
|
+
_Observable.default.addSystemGeneratedSubscription(props.viewId, props.viewId, props.config.id, () => {
|
|
112
86
|
let value = _DynamicJS.default.executeScript("".concat(props.config.id, "ValueEvaluator"), componentValue);
|
|
113
87
|
|
|
114
88
|
if (!_Utils.default.isNull(value)) {// TODO : set value
|
|
@@ -13,30 +13,12 @@ var _Utils = _interopRequireDefault(require("../Utils"));
|
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
17
|
-
|
|
18
|
-
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."); }
|
|
19
|
-
|
|
20
|
-
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); }
|
|
21
|
-
|
|
22
|
-
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; }
|
|
23
|
-
|
|
24
|
-
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; }
|
|
25
|
-
|
|
26
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
|
-
|
|
28
16
|
_reactPdf.pdfjs.GlobalWorkerOptions.workerSrc = "//cdnjs.cloudflare.com/ajax/libs/pdf.js/".concat(_reactPdf.pdfjs.version, "/pdf.worker.js");
|
|
29
17
|
|
|
30
18
|
const DocumentViewerComponent = props => {
|
|
31
|
-
const
|
|
32
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
33
|
-
pageNumber = _React$useState2[0],
|
|
34
|
-
setPageNumber = _React$useState2[1];
|
|
19
|
+
const [pageNumber, setPageNumber] = _react.default.useState(1);
|
|
35
20
|
|
|
36
|
-
const
|
|
37
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
38
|
-
numPages = _React$useState4[0],
|
|
39
|
-
setNumPages = _React$useState4[1];
|
|
21
|
+
const [numPages, setNumPages] = _react.default.useState(null);
|
|
40
22
|
|
|
41
23
|
const onDocumentLoadSuccess = ({
|
|
42
24
|
numPages
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _Button = _interopRequireDefault(require("@material-ui/core/Button"));
|
|
11
|
+
|
|
12
|
+
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
13
|
+
|
|
14
|
+
var _Icon = _interopRequireDefault(require("./Icon"));
|
|
15
|
+
|
|
16
|
+
var _ApplicationManager = _interopRequireDefault(require("../ApplicationManager"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
21
|
+
|
|
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
|
+
|
|
24
|
+
const location = window.location.protocol + '//' + window.location.hostname;
|
|
25
|
+
|
|
26
|
+
const FileThumb = props => {
|
|
27
|
+
const [file] = (0, _react.useState)(props.file);
|
|
28
|
+
const [downloadUrl, setDownloadUrl] = (0, _react.useState)(null);
|
|
29
|
+
|
|
30
|
+
_react.default.useEffect(() => {
|
|
31
|
+
if (file) {
|
|
32
|
+
setDownloadUrl(location + _ApplicationManager.default.getContextRoot() + '/docs/api/v1/manager/download/' + file.repositoryId + '?access_token=' + sessionStorage.getItem('accessToken') + '&idToken=' + sessionStorage.getItem('idToken'));
|
|
33
|
+
}
|
|
34
|
+
}, [file]);
|
|
35
|
+
|
|
36
|
+
const isImage = () => {
|
|
37
|
+
var _file$type;
|
|
38
|
+
|
|
39
|
+
return (_file$type = file.type) === null || _file$type === void 0 ? void 0 : _file$type.startsWith('image/');
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const getThumbImage = () => {
|
|
43
|
+
if (!file || !file.type) {
|
|
44
|
+
return 'default-file-thumb.png';
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return file.type === 'application/pdf' ? 'pdf-icon.png' : file.type === 'application/msword' ? 'doc.png' : file.type.startsWith('video/') ? 'media.png' : file.type.startsWith('audio/') ? 'media.png' : file.type === 'application/zip' ? 'zip.png' : file.type === 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' ? 'doc.png' : file.type === 'application/vnd.ms-excel' ? 'excel.png' : file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' ? 'excel.png' : file.type === 'application/vnd.ms-powerpoint' ? 'powerpoint.png' : 'default-file-thumb.png';
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
51
|
+
className: 'row',
|
|
52
|
+
style: {
|
|
53
|
+
width: '128px',
|
|
54
|
+
height: '128px',
|
|
55
|
+
display: 'flex',
|
|
56
|
+
alignItems: 'center',
|
|
57
|
+
justifyContent: 'center',
|
|
58
|
+
borderRadius: '4px',
|
|
59
|
+
margin: '4px',
|
|
60
|
+
marginLeft: 0,
|
|
61
|
+
marginRight: 0,
|
|
62
|
+
border: '1px solid #aaa'
|
|
63
|
+
}
|
|
64
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
65
|
+
className: 'row',
|
|
66
|
+
style: {
|
|
67
|
+
width: '100%',
|
|
68
|
+
height: '20%',
|
|
69
|
+
marginLeft: '4px',
|
|
70
|
+
marginRight: '4px'
|
|
71
|
+
}
|
|
72
|
+
}, !props.disabled && /*#__PURE__*/_react.default.createElement("div", {
|
|
73
|
+
style: {
|
|
74
|
+
width: '10%'
|
|
75
|
+
}
|
|
76
|
+
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
77
|
+
"aria-controls": "menu-list-grow",
|
|
78
|
+
"aria-haspopup": "true",
|
|
79
|
+
style: {
|
|
80
|
+
width: '8px',
|
|
81
|
+
height: '8px'
|
|
82
|
+
},
|
|
83
|
+
onClick: () => props.onDelete(file)
|
|
84
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
85
|
+
id: 'DELETE'
|
|
86
|
+
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
87
|
+
style: {
|
|
88
|
+
overflow: 'hidden',
|
|
89
|
+
textOverflow: 'ellipsis',
|
|
90
|
+
marginLeft: '10px',
|
|
91
|
+
marginTop: '2px',
|
|
92
|
+
whiteSpace: 'nowrap'
|
|
93
|
+
},
|
|
94
|
+
className: 'col'
|
|
95
|
+
}, file.repositoryId ? /*#__PURE__*/_react.default.createElement("a", {
|
|
96
|
+
style: {
|
|
97
|
+
cursor: 'pointer'
|
|
98
|
+
},
|
|
99
|
+
target: "_blank",
|
|
100
|
+
href: "".concat(downloadUrl)
|
|
101
|
+
}, file.name) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, file.name))), /*#__PURE__*/_react.default.createElement("div", {
|
|
102
|
+
className: 'row',
|
|
103
|
+
style: {
|
|
104
|
+
width: '98%',
|
|
105
|
+
height: '70%',
|
|
106
|
+
marginLeft: 0,
|
|
107
|
+
marginRight: 0
|
|
108
|
+
}
|
|
109
|
+
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
110
|
+
variant: "contained",
|
|
111
|
+
component: "span",
|
|
112
|
+
disabled: true,
|
|
113
|
+
style: {
|
|
114
|
+
width: '100%',
|
|
115
|
+
height: '100%',
|
|
116
|
+
backgroundRepeat: 'no-repeat',
|
|
117
|
+
backgroundSize: 'contain',
|
|
118
|
+
backgroundPosition: 'center',
|
|
119
|
+
backgroundColor: 'transparent',
|
|
120
|
+
backgroundImage: isImage() ? "url(".concat(file.repositoryId ? downloadUrl : file.payload, ")") : "url(".concat(require('../../assets/img/' + getThumbImage()), ")")
|
|
121
|
+
}
|
|
122
|
+
})));
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
var _default = FileThumb;
|
|
126
|
+
exports.default = _default;
|
package/dist/components/Graph.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _ApplicationManager = _interopRequireDefault(require("../ApplicationManager"));
|
|
9
9
|
|
|
10
10
|
var _ActionHandlers = _interopRequireDefault(require("../event/ActionHandlers"));
|
|
11
11
|
|
|
@@ -15,12 +15,6 @@ var _Utils = _interopRequireDefault(require("../Utils"));
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
|
-
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(_e) { throw _e; }, 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(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
19
|
-
|
|
20
|
-
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); }
|
|
21
|
-
|
|
22
|
-
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; }
|
|
23
|
-
|
|
24
18
|
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; }
|
|
25
19
|
|
|
26
20
|
class Graph {
|
|
@@ -29,23 +23,12 @@ class Graph {
|
|
|
29
23
|
let index = 0;
|
|
30
24
|
let collection = this.config.stepperMode === null || this.config.stepperMode === "DYNAMIC" ? this.path : this.config.nodes;
|
|
31
25
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
try {
|
|
36
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
37
|
-
const element = _step.value;
|
|
38
|
-
|
|
39
|
-
if (this.current.config.name === element.name) {
|
|
40
|
-
return index;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
index++;
|
|
26
|
+
for (const element of collection) {
|
|
27
|
+
if (this.current.config.name === element.name) {
|
|
28
|
+
return index;
|
|
44
29
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} finally {
|
|
48
|
-
_iterator.f();
|
|
30
|
+
|
|
31
|
+
index++;
|
|
49
32
|
}
|
|
50
33
|
|
|
51
34
|
return null;
|
|
@@ -56,6 +39,10 @@ class Graph {
|
|
|
56
39
|
this.current = new _GraphNode.default(this.config.nodes[0]);
|
|
57
40
|
this.addNodeToPath(this.current);
|
|
58
41
|
|
|
42
|
+
if (root.action.actionType === 'route') {
|
|
43
|
+
root.action.window = this.config.isWindow;
|
|
44
|
+
}
|
|
45
|
+
|
|
59
46
|
_ActionHandlers.default.invokeHandler(root.action, null, null, this.config.id);
|
|
60
47
|
});
|
|
61
48
|
|
|
@@ -63,29 +50,22 @@ class Graph {
|
|
|
63
50
|
let nextNodeName = this.current.getNextNode(event);
|
|
64
51
|
|
|
65
52
|
if (this.current.config.last && nextNodeName === null) {
|
|
66
|
-
|
|
53
|
+
_ApplicationManager.default.removeLoadedGraph(true);
|
|
67
54
|
} else {
|
|
68
55
|
if (!_Utils.default.isNull(nextNodeName)) {
|
|
69
|
-
|
|
70
|
-
|
|
56
|
+
for (const node of this.config.nodes) {
|
|
57
|
+
if (node.name === nextNodeName) {
|
|
58
|
+
this.current = new _GraphNode.default(node);
|
|
59
|
+
this.addNodeToPath(this.current);
|
|
71
60
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
if (node.name === nextNodeName) {
|
|
77
|
-
this.current = new _GraphNode.default(node);
|
|
78
|
-
this.addNodeToPath(this.current);
|
|
61
|
+
if (node.action.actionType === 'route') {
|
|
62
|
+
node.action.window = this.config.isWindow;
|
|
63
|
+
}
|
|
79
64
|
|
|
80
|
-
|
|
65
|
+
_ActionHandlers.default.invokeHandler(node.action, null, null, this.config.id);
|
|
81
66
|
|
|
82
|
-
|
|
83
|
-
}
|
|
67
|
+
break;
|
|
84
68
|
}
|
|
85
|
-
} catch (err) {
|
|
86
|
-
_iterator2.e(err);
|
|
87
|
-
} finally {
|
|
88
|
-
_iterator2.f();
|
|
89
69
|
}
|
|
90
70
|
}
|
|
91
71
|
|
|
@@ -126,38 +106,18 @@ class Graph {
|
|
|
126
106
|
let index = 0;
|
|
127
107
|
|
|
128
108
|
if (this.config.stepperMode === null || this.config.stepperMode === "DYNAMIC") {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
const pathElement = _step3.value;
|
|
135
|
-
let stackItem = {};
|
|
136
|
-
stackItem.title = pathElement.title;
|
|
137
|
-
stackItem.index = index++;
|
|
138
|
-
titleStack.push(stackItem);
|
|
139
|
-
}
|
|
140
|
-
} catch (err) {
|
|
141
|
-
_iterator3.e(err);
|
|
142
|
-
} finally {
|
|
143
|
-
_iterator3.f();
|
|
109
|
+
for (const pathElement of this.path) {
|
|
110
|
+
let stackItem = {};
|
|
111
|
+
stackItem.title = pathElement.title;
|
|
112
|
+
stackItem.index = index++;
|
|
113
|
+
titleStack.push(stackItem);
|
|
144
114
|
}
|
|
145
115
|
} else {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
const node = _step4.value;
|
|
152
|
-
let stackItem = {};
|
|
153
|
-
stackItem.title = node.title;
|
|
154
|
-
stackItem.index = index++;
|
|
155
|
-
titleStack.push(stackItem);
|
|
156
|
-
}
|
|
157
|
-
} catch (err) {
|
|
158
|
-
_iterator4.e(err);
|
|
159
|
-
} finally {
|
|
160
|
-
_iterator4.f();
|
|
116
|
+
for (const node of this.config.nodes) {
|
|
117
|
+
let stackItem = {};
|
|
118
|
+
stackItem.title = node.title;
|
|
119
|
+
stackItem.index = index++;
|
|
120
|
+
titleStack.push(stackItem);
|
|
161
121
|
}
|
|
162
122
|
}
|
|
163
123
|
|
|
@@ -169,13 +129,11 @@ class Graph {
|
|
|
169
129
|
}
|
|
170
130
|
|
|
171
131
|
get value() {
|
|
172
|
-
if (_Utils.default.isNull(this.config.valueObjectType)
|
|
132
|
+
if (_Utils.default.isNull(this.config.valueObjectType)) {
|
|
173
133
|
let value = {};
|
|
174
|
-
value.map = {};
|
|
175
134
|
|
|
176
|
-
for (
|
|
177
|
-
|
|
178
|
-
value.map[key] = this.modelData[key];
|
|
135
|
+
for (const key of Object.keys(this.modelData)) {
|
|
136
|
+
value[key] = this.modelData[key];
|
|
179
137
|
}
|
|
180
138
|
|
|
181
139
|
return value;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _ApplicationManager = _interopRequireDefault(require("../ApplicationManager"));
|
|
9
9
|
|
|
10
10
|
var _ActionHandlers = _interopRequireDefault(require("../event/ActionHandlers"));
|
|
11
11
|
|
|
@@ -15,12 +15,6 @@ var _Utils = _interopRequireDefault(require("./../Utils"));
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
|
-
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(_e) { throw _e; }, 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(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
19
|
-
|
|
20
|
-
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); }
|
|
21
|
-
|
|
22
|
-
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; }
|
|
23
|
-
|
|
24
18
|
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; }
|
|
25
19
|
|
|
26
20
|
class GraphNode {
|
|
@@ -60,22 +54,11 @@ class GraphNode {
|
|
|
60
54
|
let activeEdge = null;
|
|
61
55
|
|
|
62
56
|
if (!_Utils.default.isNull(this.config.edges)) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
68
|
-
const edge = _step.value;
|
|
69
|
-
|
|
70
|
-
if (this.evaluateEdge(edge, event)) {
|
|
71
|
-
activeEdge = edge;
|
|
72
|
-
break;
|
|
73
|
-
}
|
|
57
|
+
for (const edge of this.config.edges) {
|
|
58
|
+
if (this.evaluateEdge(edge, event)) {
|
|
59
|
+
activeEdge = edge;
|
|
60
|
+
break;
|
|
74
61
|
}
|
|
75
|
-
} catch (err) {
|
|
76
|
-
_iterator.e(err);
|
|
77
|
-
} finally {
|
|
78
|
-
_iterator.f();
|
|
79
62
|
}
|
|
80
63
|
}
|
|
81
64
|
|