@agilemotion/oui-react-js 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApplicationManager.js +698 -421
- package/dist/BasicApp.js +5 -5
- package/dist/BasicAppHome.js +55 -26
- package/dist/DynamicJS.js +147 -65
- package/dist/InteractionPortalApp.css +1 -1
- package/dist/InteractionPortalApp.js +5 -5
- package/dist/InteractionPortalAppHome.js +57 -22
- package/dist/InteractionPortalApp_old.js +107 -61
- package/dist/RestUtils.js +339 -287
- package/dist/TypedValue.js +18 -15
- package/dist/Utils.js +375 -276
- package/dist/WithRouter.js +6 -6
- package/dist/assets/jss/components/authNavbarStyle.js +166 -164
- package/dist/assets/jss/components/buttonStyle.js +1 -1
- package/dist/assets/jss/components/cardAvatarStyle.js +1 -1
- package/dist/assets/jss/components/cardBodyStyle.js +1 -1
- package/dist/assets/jss/components/cardFooterStyle.js +1 -1
- package/dist/assets/jss/components/cardHeaderStyle.js +13 -13
- package/dist/assets/jss/components/cardIconStyle.js +1 -1
- package/dist/assets/jss/components/cardStyle.js +1 -1
- package/dist/assets/jss/components/cardTextStyle.js +1 -1
- package/dist/assets/jss/components/customDropdownStyle.js +168 -169
- package/dist/assets/jss/components/customInputStyle.js +9 -3
- package/dist/assets/jss/components/dropdownStyle.js +69 -69
- package/dist/assets/jss/components/footerStyle.js +19 -13
- package/dist/assets/jss/components/headerLinksStyle.js +45 -48
- package/dist/assets/jss/components/headerStyle.js +68 -65
- package/dist/assets/jss/components/navbarLinksStyle.js +66 -77
- package/dist/assets/jss/components/navbarStyle.js +79 -76
- package/dist/assets/jss/components/sidebarStyle.js +436 -436
- package/dist/assets/jss/components/typographyStyle.js +9 -3
- package/dist/assets/jss/rootStyle.js +96 -81
- package/dist/assets/jss/views/layoutStyle.js +44 -41
- package/dist/assets/jss/views/loginBasicStyle.js +1 -1
- package/dist/assets/jss/views/loginBusinessPortalStyle.js +1 -1
- package/dist/assets/jss/views/loginStyle.js +82 -77
- package/dist/components/AlertBar.js +50 -17
- package/dist/components/AlertItem.js +35 -12
- package/dist/components/AlertTemplate.js +30 -29
- package/dist/components/Button.js +62 -34
- package/dist/components/Calendar.js +140 -91
- package/dist/components/ConfirmationDialog.js +36 -11
- package/dist/components/DataGrid.js +512 -270
- package/dist/components/DataGridColumn.js +47 -22
- package/dist/components/DataGridFilter.js +186 -105
- package/dist/components/DataGridHeading.js +50 -32
- package/dist/components/Dialog.js +90 -35
- package/dist/components/DocumentTemplateDesigner.js +34 -16
- package/dist/components/DocumentTemplateDesignerComponent.js +124 -48
- package/dist/components/DocumentTemplatePlaceholderDialog.js +52 -30
- package/dist/components/DocumentViewer.js +34 -18
- package/dist/components/DocumentViewerComponent.js +26 -9
- package/dist/components/ElementResizeHandler.js +229 -207
- package/dist/components/FileThumb.js +32 -10
- package/dist/components/Graph.js +153 -85
- package/dist/components/GraphNode.js +58 -38
- package/dist/components/HtmlPanel.js +67 -39
- package/dist/components/Icon.js +206 -166
- package/dist/components/LoadingIndicator.js +3 -3
- package/dist/components/LottieIcon.js +1 -1
- package/dist/components/PopupView.js +39 -19
- package/dist/components/Portlet.js +32 -17
- package/dist/components/RegularButton.js +28 -32
- package/dist/components/SignaturePanel.js +37 -17
- package/dist/components/SocketManager.js +178 -119
- package/dist/components/StepperTitleBar.js +62 -42
- package/dist/components/TabPage.js +30 -25
- package/dist/components/TabPanel.js +86 -33
- package/dist/components/TableCellContent.js +51 -32
- package/dist/components/TemplateDesigner.js +173 -121
- package/dist/components/TemplateItemEventHandler.js +335 -221
- package/dist/components/TemplateTable.js +183 -118
- package/dist/components/TitleBar.js +26 -11
- package/dist/components/Toolbar.js +67 -38
- package/dist/components/Tooltip.js +43 -35
- package/dist/components/Tree.js +85 -44
- package/dist/components/UseIsVisible.js +25 -4
- package/dist/components/card/Card.js +27 -33
- package/dist/components/card/CardAvatar.js +20 -19
- package/dist/components/card/CardBody.js +24 -27
- package/dist/components/card/CardFooter.js +23 -24
- package/dist/components/card/CardHeader.js +24 -27
- package/dist/components/card/CardIcon.js +17 -13
- package/dist/components/card/CardText.js +17 -13
- package/dist/components/customInput/CustomInput.js +22 -36
- package/dist/components/dashboard/{BasicBusinessAppDashboard.js → FoldingSideTabDashboard.js} +111 -63
- package/dist/components/dashboard/SideMenuModuleDashboard.css +60 -0
- package/dist/components/dashboard/SideMenuModuleDashboard.js +423 -0
- package/dist/components/dashboard/TopMenuModuleDashboard.js +138 -0
- package/dist/components/dashboard/components/Header.js +29 -12
- package/dist/components/dashboard/components/LeftDrawer.js +3 -5
- package/dist/components/dashboard/components/UserIdentity.js +2 -2
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +131 -87
- package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +488 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenu.js +64 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.css +65 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.js +556 -0
- package/dist/components/dashboard/components/portal/Timeline.js +1 -1
- package/dist/components/dashboard/components/portal/Workspace.js +5 -11
- package/dist/components/footer/Footer.js +31 -24
- package/dist/components/footer/HomeFooter.js +68 -34
- package/dist/components/form/AddressSearch.js +78 -42
- package/dist/components/form/AutoComplete.js +136 -55
- package/dist/components/form/BaseField.js +108 -56
- package/dist/components/form/Checkbox.js +10 -8
- package/dist/components/form/DatePicker.js +47 -25
- package/dist/components/form/FieldSet.js +217 -84
- package/dist/components/form/Form.js +334 -200
- package/dist/components/form/GridField.js +185 -82
- package/dist/components/form/IconField.js +9 -7
- package/dist/components/form/ImageEditor.js +141 -92
- package/dist/components/form/LabelField.js +12 -10
- package/dist/components/form/LookupField.js +54 -32
- package/dist/components/form/MultiFileUploadField.js +101 -67
- package/dist/components/form/RadioGroup.js +33 -16
- package/dist/components/form/Section.js +84 -34
- package/dist/components/form/SelectItem.js +55 -33
- package/dist/components/form/SignatureTemplateDesignerField.js +11 -9
- package/dist/components/form/Switch.js +10 -8
- package/dist/components/form/TextField.js +34 -16
- package/dist/components/form/TimePicker.js +19 -15
- package/dist/components/form/TransferList.js +153 -75
- package/dist/components/form/UploadField.js +183 -128
- package/dist/components/grid/GridContainer.js +12 -8
- package/dist/components/grid/GridItem.js +12 -8
- package/dist/components/layout/CollapsiblePanel.js +44 -18
- package/dist/components/layout/Layout.js +81 -40
- package/dist/components/layout/VC.css +1 -1
- package/dist/components/layout/View.js +136 -62
- package/dist/components/layout/ViewContainer.js +13 -11
- package/dist/components/layout/ViewPort.js +25 -10
- package/dist/components/layout/Window.js +87 -53
- package/dist/components/layout/WindowViewPort.js +38 -16
- package/dist/components/media/ClosablePanel.js +7 -7
- package/dist/components/media/LobbyWaitingList.js +7 -9
- package/dist/components/media/MediaSoupHelper.js +379 -187
- package/dist/components/media/SideBarContent.js +22 -14
- package/dist/components/media/SocketRequest.js +5 -1
- package/dist/components/media/SocketResponse.js +5 -1
- package/dist/components/media/Timer.js +35 -15
- package/dist/components/media/Toolbar.css +5 -0
- package/dist/components/media/Toolbar.js +220 -102
- package/dist/components/media/ToolbarButton.js +82 -33
- package/dist/components/media/Toolbar_bck.js +142 -70
- package/dist/components/media/Tracks.js +31 -28
- package/dist/components/media/TrainingRoom.js +284 -121
- package/dist/components/media/Transports.js +27 -24
- package/dist/components/media/VCEventManager.js +95 -31
- package/dist/components/media/VCEventType.js +5 -1
- package/dist/components/media/VCParticipantList.js +40 -14
- package/dist/components/media/VCParticipantListItem.js +92 -41
- package/dist/components/media/VCRoom.js +29 -11
- package/dist/components/media/VCRoomParticipant.js +488 -242
- package/dist/components/media/VCRoomRecorder.js +236 -175
- package/dist/components/media/VCRoomWorkspace.js +505 -245
- package/dist/components/media/Video.js +89 -25
- package/dist/components/media/VideoPlayer.js +56 -22
- package/dist/components/media/chat/ChatRoom.js +255 -132
- package/dist/components/media/chat/ChatRoomItem.js +35 -14
- package/dist/components/media/chat/ChatRoomList.js +43 -13
- package/dist/components/menu/CollapsibleMenu.js +39 -20
- package/dist/components/menu/MenuBars.js +81 -48
- package/dist/components/menu/MenuButton.js +95 -60
- package/dist/components/menu/MenuItem.js +28 -9
- package/dist/components/menu/MenuLink.js +12 -10
- package/dist/components/menu/PopupMenu.js +16 -12
- package/dist/components/navbars/AuthNavbar.js +27 -18
- package/dist/components/navbars/HomeNavbar.js +243 -194
- package/dist/components/navbars/PortalNavbar.js +50 -26
- package/dist/components/signatures/AgilitySignaturePanel.js +96 -39
- package/dist/components/signatures/AlertItem.js +36 -13
- package/dist/components/signatures/Card.js +4 -4
- package/dist/components/signatures/DocumentContainer.js +141 -57
- package/dist/components/signatures/ImageSignatureInput.js +90 -59
- package/dist/components/signatures/MenuButton.js +53 -33
- package/dist/components/signatures/Prompt.js +26 -5
- package/dist/components/signatures/ResponsiveTable.js +302 -197
- package/dist/components/signatures/SearchView.js +77 -36
- package/dist/components/signatures/SignatorySearch.js +30 -10
- package/dist/components/signatures/SignatorySearchForm.js +35 -18
- package/dist/components/signatures/SignatureInput.js +56 -26
- package/dist/components/signatures/SignatureInputProps.js +107 -55
- package/dist/components/signatures/SignatureTemplateDesigner.js +340 -235
- package/dist/components/signatures/Toolbar.js +135 -94
- package/dist/components/signatures/ViewUtils.js +273 -224
- package/dist/components/typography/Danger.js +3 -5
- package/dist/components/typography/Info.js +3 -5
- package/dist/components/typography/Link.js +3 -5
- package/dist/event/ActionHandlers.js +57 -43
- package/dist/event/Event.js +16 -13
- package/dist/event/EventListener.js +39 -36
- package/dist/event/EventType.js +5 -1
- package/dist/event/LoadDataActionHandler.js +20 -8
- package/dist/event/Observable.js +323 -142
- package/dist/event/RouteActionHandler.js +139 -125
- package/dist/event/ScriptActionHandler.js +20 -8
- package/dist/event/ServiceCallActionHandler.js +51 -39
- package/dist/event/SignalGraphActionHandler.js +19 -7
- package/dist/js/Addresses.js +38 -24
- package/dist/js/Calendar.js +168 -161
- package/dist/js/DynamicLib.js +14 -11
- package/dist/js/Media.js +213 -120
- package/dist/js/Validators.js +6 -5
- package/dist/js/Windows.js +48 -47
- package/dist/redux/store/ConfigureStore.js +17 -9
- package/dist/redux/store/DashboardStore.js +110 -43
- package/dist/redux/store/History.js +1 -1
- package/dist/redux/store/SecurityStore.js +59 -20
- package/dist/security/TokenManager.js +44 -30
- package/dist/theme-default.js +1 -1
- package/dist/view/Dashboard.js +230 -137
- package/dist/view/PortalDashboard.js +4 -4
- package/dist/view/Settings.js +4 -2
- package/dist/view/Views.js +27 -14
- package/dist/view/security/ChangePasswordBasic.js +97 -40
- package/dist/view/security/ForgotPassword.js +59 -22
- package/dist/view/security/ForgotPasswordBasic.js +62 -21
- package/dist/view/security/Login.js +64 -24
- package/dist/view/security/LoginBasic.js +65 -26
- package/dist/view/security/LoginInteractionPortal.js +62 -25
- package/dist/view/security/ResetPassword.js +65 -23
- package/dist/view/security/ResetPasswordBasic.js +91 -37
- package/dist/view/security/Security.js +12 -12
- package/package.json +1 -2
- package/dist/components/dashboard/BusinessPortalAppDashboard.js +0 -115
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +0 -447
- /package/dist/components/dashboard/{BusinessPortalAppDashboard.css → TopMenuModuleDashboard.css} +0 -0
- /package/dist/components/dashboard/components/blackDashboard/sidebar/{Sidebar.css → FoldingTabSidebar.css} +0 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -29,243 +31,290 @@ var _colors = require("material-ui/styles/colors");
|
|
|
29
31
|
|
|
30
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
33
|
|
|
34
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
35
|
+
|
|
36
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
37
|
+
|
|
38
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
39
|
+
|
|
40
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
41
|
+
|
|
42
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
43
|
+
|
|
44
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
45
|
+
|
|
46
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
47
|
+
|
|
48
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
49
|
+
|
|
50
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
51
|
+
|
|
52
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
53
|
+
|
|
32
54
|
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
55
|
|
|
34
|
-
|
|
35
|
-
|
|
56
|
+
var propHandler = function propHandler(state) {
|
|
57
|
+
var activeRouteMenu = state.dashboard.activeRouteMenu;
|
|
36
58
|
return {
|
|
37
59
|
activeRouteMenu: activeRouteMenu
|
|
38
60
|
};
|
|
39
61
|
};
|
|
40
62
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
super(props);
|
|
63
|
+
var HomeNavbar = /*#__PURE__*/function (_React$Component) {
|
|
64
|
+
_inherits(HomeNavbar, _React$Component);
|
|
44
65
|
|
|
45
|
-
|
|
66
|
+
var _super = _createSuper(HomeNavbar);
|
|
67
|
+
|
|
68
|
+
function HomeNavbar(props) {
|
|
69
|
+
var _this;
|
|
70
|
+
|
|
71
|
+
_classCallCheck(this, HomeNavbar);
|
|
72
|
+
|
|
73
|
+
_this = _super.call(this, props);
|
|
74
|
+
|
|
75
|
+
_defineProperty(_assertThisInitialized(_this), "styles", {
|
|
46
76
|
header: {
|
|
47
|
-
backgroundColor:
|
|
77
|
+
backgroundColor: _this.props.color
|
|
48
78
|
}
|
|
49
79
|
});
|
|
50
80
|
|
|
51
|
-
_defineProperty(
|
|
52
|
-
if (window.innerWidth < 993 &&
|
|
53
|
-
|
|
81
|
+
_defineProperty(_assertThisInitialized(_this), "updateColor", function () {
|
|
82
|
+
if (window.innerWidth < 993 && _this.state.collapseOpen) {
|
|
83
|
+
_this.setState({
|
|
54
84
|
color: "bg-white"
|
|
55
85
|
});
|
|
56
86
|
} else {
|
|
57
|
-
|
|
87
|
+
_this.setState({
|
|
58
88
|
color: "navbar-transparent"
|
|
59
89
|
});
|
|
60
90
|
}
|
|
61
91
|
});
|
|
62
92
|
|
|
63
|
-
_defineProperty(
|
|
64
|
-
if (
|
|
65
|
-
|
|
93
|
+
_defineProperty(_assertThisInitialized(_this), "toggleCollapse", function () {
|
|
94
|
+
if (_this.state.collapseOpen) {
|
|
95
|
+
_this.setState({
|
|
66
96
|
color: "navbar-transparent"
|
|
67
97
|
});
|
|
68
98
|
} else {
|
|
69
|
-
|
|
99
|
+
_this.setState({
|
|
70
100
|
color: "bg-white"
|
|
71
101
|
});
|
|
72
102
|
}
|
|
73
103
|
|
|
74
|
-
|
|
75
|
-
collapseOpen: !
|
|
104
|
+
_this.setState({
|
|
105
|
+
collapseOpen: !_this.state.collapseOpen
|
|
76
106
|
});
|
|
77
107
|
});
|
|
78
108
|
|
|
79
|
-
_defineProperty(
|
|
80
|
-
|
|
81
|
-
modalSearch: !
|
|
109
|
+
_defineProperty(_assertThisInitialized(_this), "toggleModalSearch", function () {
|
|
110
|
+
_this.setState({
|
|
111
|
+
modalSearch: !_this.state.modalSearch
|
|
82
112
|
});
|
|
83
113
|
});
|
|
84
114
|
|
|
85
|
-
|
|
115
|
+
_this.state = {
|
|
86
116
|
collapseOpen: false,
|
|
87
117
|
color: "navbar-transparent",
|
|
88
118
|
modalSearch: false,
|
|
89
|
-
avatar: _Utils.default.isNull(
|
|
119
|
+
avatar: _Utils.default.isNull(_this.props.avatar) ? require("./default-avatar.png") : _this.props.avatar
|
|
90
120
|
};
|
|
121
|
+
return _this;
|
|
91
122
|
}
|
|
92
123
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
componentWillUnmount() {
|
|
98
|
-
window.removeEventListener("resize", this.updateColor);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
componentDidUpdate(prevProps) {
|
|
102
|
-
if (prevProps.avatar !== this.props.avatar) {
|
|
103
|
-
this.setState({
|
|
104
|
-
avatar: this.props.avatar
|
|
105
|
-
});
|
|
124
|
+
_createClass(HomeNavbar, [{
|
|
125
|
+
key: "componentDidMount",
|
|
126
|
+
value: function componentDidMount() {
|
|
127
|
+
window.addEventListener("resize", this.updateColor);
|
|
106
128
|
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
129
|
+
}, {
|
|
130
|
+
key: "componentWillUnmount",
|
|
131
|
+
value: function componentWillUnmount() {
|
|
132
|
+
window.removeEventListener("resize", this.updateColor);
|
|
133
|
+
}
|
|
134
|
+
}, {
|
|
135
|
+
key: "componentDidUpdate",
|
|
136
|
+
value: function componentDidUpdate(prevProps) {
|
|
137
|
+
if (prevProps.avatar !== this.props.avatar) {
|
|
138
|
+
this.setState({
|
|
139
|
+
avatar: this.props.avatar
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
} // function that adds color white/transparent to the navbar on resize (this is for the collapse)
|
|
115
143
|
|
|
116
|
-
|
|
117
|
-
|
|
144
|
+
}, {
|
|
145
|
+
key: "launchView",
|
|
146
|
+
value: function launchView(path) {
|
|
147
|
+
var actionConfig = {};
|
|
148
|
+
actionConfig.actionType = 'route';
|
|
149
|
+
actionConfig.path = path;
|
|
150
|
+
actionConfig.parent = true;
|
|
118
151
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
},
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
152
|
+
_ActionHandlers.default.invokeHandler(actionConfig);
|
|
153
|
+
}
|
|
154
|
+
}, {
|
|
155
|
+
key: "render",
|
|
156
|
+
value: function render() {
|
|
157
|
+
var _this2 = this;
|
|
158
|
+
|
|
159
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactstrap.Navbar, {
|
|
160
|
+
style: this.styles.header,
|
|
161
|
+
className: (0, _classnames.default)("navbar-absolute"),
|
|
162
|
+
expand: "lg"
|
|
163
|
+
}, /*#__PURE__*/_react.default.createElement(_reactstrap.Container, {
|
|
164
|
+
fluid: true
|
|
165
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
166
|
+
className: "navbar-wrapper"
|
|
167
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
168
|
+
className: (0, _classnames.default)("navbar-toggle d-inline", {
|
|
169
|
+
toggled: this.props.sidebarOpened
|
|
170
|
+
})
|
|
171
|
+
}, /*#__PURE__*/_react.default.createElement("button", {
|
|
172
|
+
className: "navbar-toggler",
|
|
173
|
+
type: "button",
|
|
174
|
+
onClick: this.props.toggleSidebar
|
|
175
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
176
|
+
className: "navbar-toggler-bar bar1",
|
|
177
|
+
style: {
|
|
178
|
+
background: this.props.themeTextColor
|
|
179
|
+
}
|
|
180
|
+
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
181
|
+
className: "navbar-toggler-bar bar2",
|
|
182
|
+
style: {
|
|
183
|
+
background: this.props.themeTextColor
|
|
184
|
+
}
|
|
185
|
+
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
186
|
+
className: "navbar-toggler-bar bar3",
|
|
187
|
+
style: {
|
|
188
|
+
background: this.props.themeTextColor
|
|
189
|
+
}
|
|
190
|
+
})), " "), " ", /*#__PURE__*/_react.default.createElement(_reactstrap.NavbarBrand, {
|
|
191
|
+
style: {
|
|
192
|
+
paddingLeft: 8,
|
|
193
|
+
color: this.props.themeTextColor
|
|
194
|
+
},
|
|
195
|
+
href: "#pablo",
|
|
196
|
+
onClick: function onClick(e) {
|
|
197
|
+
return e.preventDefault();
|
|
198
|
+
}
|
|
199
|
+
}, " ", this.props.activeRouteMenu ? this.props.activeRouteMenu.name : "Dashboard" // this.props.activeRouteMenu
|
|
200
|
+
, " "), " "), " ", /*#__PURE__*/_react.default.createElement("button", {
|
|
201
|
+
className: "navbar-toggler",
|
|
202
|
+
type: "button",
|
|
203
|
+
"data-toggle": "collapse",
|
|
204
|
+
"data-target": "#navigation",
|
|
205
|
+
"aria-expanded": "false",
|
|
206
|
+
"aria-label": "Toggle navigation",
|
|
207
|
+
onClick: this.toggleCollapse
|
|
208
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
209
|
+
className: "navbar-toggler-bar navbar-kebab",
|
|
210
|
+
style: {
|
|
211
|
+
background: this.props.themeTextColor
|
|
212
|
+
}
|
|
213
|
+
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
214
|
+
className: "navbar-toggler-bar navbar-kebab",
|
|
215
|
+
style: {
|
|
216
|
+
background: this.props.themeTextColor
|
|
217
|
+
}
|
|
218
|
+
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
219
|
+
className: "navbar-toggler-bar navbar-kebab",
|
|
220
|
+
style: {
|
|
221
|
+
background: this.props.themeTextColor
|
|
222
|
+
}
|
|
223
|
+
})), " ", /*#__PURE__*/_react.default.createElement("div", {
|
|
224
|
+
className: "col-*-*",
|
|
225
|
+
style: {
|
|
226
|
+
height: '48px'
|
|
227
|
+
}
|
|
228
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
229
|
+
style: {
|
|
230
|
+
width: '80px'
|
|
231
|
+
}
|
|
232
|
+
}, /*#__PURE__*/_react.default.createElement(_reactstrap.Collapse, {
|
|
233
|
+
navbar: true,
|
|
234
|
+
isOpen: this.state.collapseOpen
|
|
235
|
+
}, /*#__PURE__*/_react.default.createElement(_reactstrap.Nav, {
|
|
236
|
+
className: "ml-auto",
|
|
237
|
+
navbar: true
|
|
238
|
+
}, /*#__PURE__*/_react.default.createElement(_reactstrap.UncontrolledDropdown, {
|
|
239
|
+
nav: true
|
|
240
|
+
}, /*#__PURE__*/_react.default.createElement(_reactstrap.DropdownToggle, {
|
|
241
|
+
style: {
|
|
242
|
+
color: this.props.themeTextColor
|
|
243
|
+
},
|
|
244
|
+
caret: true,
|
|
245
|
+
color: "default",
|
|
246
|
+
"data-toggle": "dropdown",
|
|
247
|
+
nav: true,
|
|
248
|
+
onClick: function onClick(e) {
|
|
249
|
+
return e.preventDefault();
|
|
250
|
+
}
|
|
251
|
+
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
252
|
+
"aria-controls": "menu-list-grow",
|
|
253
|
+
style: {
|
|
254
|
+
borderColor: _colors.grey800,
|
|
255
|
+
width: '40px',
|
|
256
|
+
height: '40px',
|
|
257
|
+
padding: '0'
|
|
258
|
+
},
|
|
259
|
+
"aria-haspopup": "true"
|
|
260
|
+
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
261
|
+
alt: "...",
|
|
262
|
+
src: this.state.avatar,
|
|
263
|
+
width: '36px',
|
|
264
|
+
height: '36px',
|
|
265
|
+
style: {
|
|
266
|
+
borderRadius: '50%'
|
|
267
|
+
}
|
|
268
|
+
})), " ", /*#__PURE__*/_react.default.createElement("b", {
|
|
269
|
+
className: "caret d-none d-lg-block d-xl-block"
|
|
270
|
+
})), " ", /*#__PURE__*/_react.default.createElement(_reactstrap.DropdownMenu, {
|
|
271
|
+
className: "dropdown-navbar",
|
|
272
|
+
right: true,
|
|
273
|
+
tag: "ul"
|
|
274
|
+
}, /*#__PURE__*/_react.default.createElement(_reactstrap.NavLink, {
|
|
275
|
+
tag: "li"
|
|
276
|
+
}, /*#__PURE__*/_react.default.createElement(_reactstrap.DropdownItem, {
|
|
277
|
+
className: "nav-item",
|
|
278
|
+
onClick: function onClick() {
|
|
279
|
+
return _this2.launchView('/system/views/user-profile.json');
|
|
280
|
+
}
|
|
281
|
+
}, " ", "Profile", " "), " "), " ", /*#__PURE__*/_react.default.createElement(_reactstrap.DropdownItem, {
|
|
282
|
+
divider: true,
|
|
283
|
+
tag: "li"
|
|
284
|
+
}), /*#__PURE__*/_react.default.createElement(_reactstrap.NavLink, {
|
|
285
|
+
tag: "li"
|
|
286
|
+
}, /*#__PURE__*/_react.default.createElement(_reactstrap.DropdownItem, {
|
|
287
|
+
className: "nav-item",
|
|
288
|
+
onClick: this.props.logoutCallBack
|
|
289
|
+
}, " ", "Log out", " "), " "), " "), " "), " ", /*#__PURE__*/_react.default.createElement("li", {
|
|
290
|
+
className: "separator d-lg-none"
|
|
291
|
+
})), " "), " "))), " "), " ", /*#__PURE__*/_react.default.createElement(_reactstrap.Modal, {
|
|
292
|
+
modalClassName: "modal-search",
|
|
293
|
+
isOpen: this.state.modalSearch,
|
|
294
|
+
toggle: this.toggleModalSearch
|
|
295
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
296
|
+
className: "modal-header"
|
|
297
|
+
}, /*#__PURE__*/_react.default.createElement(_reactstrap.Input, {
|
|
298
|
+
id: "inlineFormInputGroup",
|
|
299
|
+
placeholder: "SEARCH",
|
|
300
|
+
type: "text"
|
|
301
|
+
}), /*#__PURE__*/_react.default.createElement("button", {
|
|
302
|
+
"aria-label": "Close",
|
|
303
|
+
className: "close",
|
|
304
|
+
"data-dismiss": "modal",
|
|
305
|
+
type: "button",
|
|
306
|
+
onClick: this.toggleModalSearch
|
|
307
|
+
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
308
|
+
className: "tim-icons icon-simple-remove"
|
|
309
|
+
})), " "), " "), " ");
|
|
310
|
+
}
|
|
311
|
+
}]);
|
|
266
312
|
|
|
267
|
-
|
|
313
|
+
return HomeNavbar;
|
|
314
|
+
}(_react.default.Component);
|
|
268
315
|
|
|
269
|
-
var _default = (0, _WithRouter.default)((0, _reactRedux.connect)(propHandler,
|
|
316
|
+
var _default = (0, _WithRouter.default)((0, _reactRedux.connect)(propHandler, function (dispatch) {
|
|
317
|
+
return (0, _redux.bindActionCreators)(_DashboardStore.actionCreators, dispatch);
|
|
318
|
+
})(HomeNavbar));
|
|
270
319
|
|
|
271
320
|
exports.default = _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -25,42 +27,60 @@ var _ApplicationManager = _interopRequireWildcard(require("../../ApplicationMana
|
|
|
25
27
|
|
|
26
28
|
var _Utils = _interopRequireDefault(require("../../Utils"));
|
|
27
29
|
|
|
28
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
30
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
29
31
|
|
|
30
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null ||
|
|
32
|
+
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; }
|
|
31
33
|
|
|
32
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
35
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}));
|
|
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); }
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
const classes = useStyles();
|
|
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
43
|
|
|
44
|
-
|
|
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
45
|
|
|
46
|
-
|
|
46
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
49
|
+
return {
|
|
50
|
+
iconButtonLabel: {
|
|
51
|
+
display: 'flex',
|
|
52
|
+
flexDirection: 'column'
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
});
|
|
49
56
|
|
|
50
|
-
|
|
57
|
+
var PortalNavbar = /*#__PURE__*/_react.default.memo(function (props) {
|
|
58
|
+
var classes = useStyles();
|
|
51
59
|
|
|
52
|
-
_react.default.
|
|
53
|
-
|
|
60
|
+
var _React$useState = _react.default.useState(props.avatar),
|
|
61
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
62
|
+
avatarUrl = _React$useState2[0],
|
|
63
|
+
setAvatarUrl = _React$useState2[1];
|
|
54
64
|
|
|
55
|
-
|
|
65
|
+
var _React$useState3 = _react.default.useState(null),
|
|
66
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
67
|
+
selectedButton = _React$useState4[0],
|
|
68
|
+
setSelectedButton = _React$useState4[1];
|
|
69
|
+
|
|
70
|
+
var initializing = _react.default.useRef(true);
|
|
71
|
+
|
|
72
|
+
var keyCounter = 0;
|
|
73
|
+
|
|
74
|
+
_react.default.useEffect(function () {
|
|
75
|
+
setSelectedButton(props.currentModule);
|
|
56
76
|
}, [props.currentModule]);
|
|
57
77
|
|
|
58
|
-
_react.default.useEffect(()
|
|
78
|
+
_react.default.useEffect(function () {
|
|
59
79
|
if (initializing.current) {
|
|
60
|
-
|
|
80
|
+
var avatarListener = {};
|
|
61
81
|
avatarListener.type = _ApplicationManager.AVATAR_LISTENER_TYPE;
|
|
62
82
|
|
|
63
|
-
avatarListener.handler = avatar
|
|
83
|
+
avatarListener.handler = function (avatar) {
|
|
64
84
|
setAvatarUrl(avatar.url);
|
|
65
85
|
};
|
|
66
86
|
|
|
@@ -70,8 +90,8 @@ const PortalNavbar = /*#__PURE__*/_react.default.memo(props => {
|
|
|
70
90
|
}
|
|
71
91
|
}, []);
|
|
72
92
|
|
|
73
|
-
|
|
74
|
-
|
|
93
|
+
var launchView = function launchView(path) {
|
|
94
|
+
var actionConfig = {};
|
|
75
95
|
actionConfig.actionType = 'route';
|
|
76
96
|
actionConfig.path = path;
|
|
77
97
|
actionConfig.parent = true;
|
|
@@ -104,7 +124,7 @@ const PortalNavbar = /*#__PURE__*/_react.default.memo(props => {
|
|
|
104
124
|
}
|
|
105
125
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
106
126
|
className: "row"
|
|
107
|
-
}, props.modules ? props.modules.map(module
|
|
127
|
+
}, props.modules ? props.modules.map(function (module) {
|
|
108
128
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
109
129
|
className: "col-*-*",
|
|
110
130
|
style: {
|
|
@@ -123,7 +143,7 @@ const PortalNavbar = /*#__PURE__*/_react.default.memo(props => {
|
|
|
123
143
|
classes: {
|
|
124
144
|
label: classes.iconButtonLabel
|
|
125
145
|
},
|
|
126
|
-
onClick: ()
|
|
146
|
+
onClick: function onClick() {
|
|
127
147
|
setSelectedButton(module.name);
|
|
128
148
|
props.moduleChangeHandler(module.name);
|
|
129
149
|
}
|
|
@@ -160,7 +180,9 @@ const PortalNavbar = /*#__PURE__*/_react.default.memo(props => {
|
|
|
160
180
|
color: "default",
|
|
161
181
|
"data-toggle": "dropdown",
|
|
162
182
|
nav: true,
|
|
163
|
-
onClick:
|
|
183
|
+
onClick: function onClick(e) {
|
|
184
|
+
return e.preventDefault();
|
|
185
|
+
}
|
|
164
186
|
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
165
187
|
"aria-controls": "menu-list-grow",
|
|
166
188
|
style: {
|
|
@@ -197,7 +219,9 @@ const PortalNavbar = /*#__PURE__*/_react.default.memo(props => {
|
|
|
197
219
|
tag: "li"
|
|
198
220
|
}, /*#__PURE__*/_react.default.createElement(_reactstrap.DropdownItem, {
|
|
199
221
|
className: "nav-item",
|
|
200
|
-
onClick: ()
|
|
222
|
+
onClick: function onClick() {
|
|
223
|
+
return launchView('system/views/user-profile.json');
|
|
224
|
+
}
|
|
201
225
|
}, " ", "Profile", " "), " "), " ", /*#__PURE__*/_react.default.createElement(_reactstrap.DropdownItem, {
|
|
202
226
|
divider: true,
|
|
203
227
|
tag: "li"
|