@agilemotion/oui-react-js 1.8.55 → 1.8.57
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 +446 -472
- package/dist/BasicApp.js +30 -0
- package/dist/BasicAppHome.js +2 -3
- package/dist/DateUtils.js +2 -2
- package/dist/DynamicJS.js +94 -101
- package/dist/InteractionPortalAppHome.js +1 -1
- package/dist/InteractionPortalApp_old.js +1 -2
- package/dist/MouseTracker.js +23 -0
- package/dist/RestService.js +13 -11
- package/dist/RestUtils.js +1 -1
- package/dist/TypedValue.js +15 -14
- package/dist/Utils.js +121 -114
- package/dist/ViewContext.js +152 -159
- package/dist/assets/jss/components/authNavbarStyle.js +34 -37
- package/dist/assets/jss/components/cardHeaderStyle.js +11 -18
- package/dist/assets/jss/components/customDropdownStyle.js +25 -27
- package/dist/assets/jss/components/customInputStyle.js +7 -3
- package/dist/assets/jss/components/dropdownStyle.js +14 -11
- package/dist/assets/jss/components/footerStyle.js +17 -12
- package/dist/assets/jss/components/headerLinksStyle.js +12 -9
- package/dist/assets/jss/components/headerStyle.js +24 -26
- package/dist/assets/jss/components/navbarLinksStyle.js +12 -9
- package/dist/assets/jss/components/navbarStyle.js +24 -26
- package/dist/assets/jss/components/sidebarStyle.js +42 -42
- package/dist/assets/jss/components/typographyStyle.js +7 -3
- package/dist/assets/jss/rootStyle.js +30 -34
- package/dist/assets/jss/views/layoutStyle.js +12 -9
- package/dist/assets/jss/views/loginStyle.js +9 -6
- package/dist/components/AlertBar.js +1 -1
- package/dist/components/Button.js +18 -11
- package/dist/components/Calendar.js +9 -6
- package/dist/components/Chart.js +1 -1
- package/dist/components/DataGrid.css +10 -1
- package/dist/components/DataGrid.js +115 -56
- package/dist/components/DataGridColumn.js +2 -1
- package/dist/components/DocumentTemplateDesignerComponent.js +7 -7
- package/dist/components/DocumentTemplateDesignerComponent2.js +3 -4
- package/dist/components/DocumentTemplatePlaceholderDialog.js +3 -4
- package/dist/components/DocumentViewer.js +15 -5
- package/dist/components/ElementResizeHandler.js +177 -174
- package/dist/components/FaceApi.js +2 -2
- package/dist/components/FileThumb.js +5 -5
- package/dist/components/Graph.js +77 -74
- package/dist/components/GraphNode.js +39 -36
- package/dist/components/HtmlPanel.js +2 -1
- package/dist/components/Icon.js +1 -2
- package/dist/components/PDFViewer.js +2 -3
- package/dist/components/PopupView.js +1 -1
- package/dist/components/Portlet.js +3 -2
- package/dist/components/RegularButton.js +17 -14
- package/dist/components/SocketManager.js +97 -94
- package/dist/components/StepperTitleBar.js +7 -6
- package/dist/components/TabPage.js +10 -7
- package/dist/components/TabPanel.js +11 -6
- package/dist/components/TableCellContent.js +15 -11
- package/dist/components/TemplateDesigner.js +2 -2
- package/dist/components/TemplateItemEventHandler.js +232 -228
- package/dist/components/TemplateTable.js +32 -29
- package/dist/components/TitleBar.js +2 -2
- package/dist/components/Toolbar.js +17 -10
- package/dist/components/Tree.js +3 -3
- package/dist/components/WordDocumentViewer.css +1 -0
- package/dist/components/WordDocumentViewer.js +205 -14
- package/dist/components/card/Card.js +18 -15
- package/dist/components/card/CardAvatar.js +11 -8
- package/dist/components/card/CardBody.js +16 -13
- package/dist/components/card/CardFooter.js +15 -12
- package/dist/components/card/CardHeader.js +16 -13
- package/dist/components/card/CardIcon.js +9 -6
- package/dist/components/card/CardText.js +9 -6
- package/dist/components/customInput/File.js +4 -5
- package/dist/components/dashboard/FoldingSideTabDashboard.bck.js +1 -1
- package/dist/components/dashboard/FoldingSideTabDashboard.js +2 -3
- package/dist/components/dashboard/components/Header.js +6 -4
- package/dist/components/dashboard/components/LeftDrawer.js +2 -2
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +26 -28
- package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.bck.js +182 -188
- package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +27 -30
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.js +12 -14
- package/dist/components/drag-spec-design.json +15 -0
- package/dist/components/facialRecognition/FaceRecognitionComponent.js +10 -11
- package/dist/components/facialRecognition/service/faceApi.js +3 -3
- package/dist/components/form/AddressSearch.js +8 -5
- package/dist/components/form/AutoComplete.js +4 -4
- package/dist/components/form/BaseField.js +3 -2
- package/dist/components/form/CurrencyField.js +9 -9
- package/dist/components/form/DatePicker.js +3 -2
- package/dist/components/form/FieldSet.js +2 -1
- package/dist/components/form/Form.css +1 -1
- package/dist/components/form/Form.js +10 -7
- package/dist/components/form/GridField.js +6 -4
- package/dist/components/form/IconField.js +2 -1
- package/dist/components/form/ImageEditor.js +13 -8
- package/dist/components/form/LookupField.js +8 -7
- package/dist/components/form/MultiFileUploadField.js +14 -8
- package/dist/components/form/SelectItem.js +7 -6
- package/dist/components/form/TextField.js +6 -6
- package/dist/components/form/TimePicker.js +3 -2
- package/dist/components/form/TransferList.js +2 -2
- package/dist/components/form/UploadField.js +5 -5
- package/dist/components/grid/GridContainer.js +7 -4
- package/dist/components/grid/GridItem.js +7 -4
- package/dist/components/layout/CollapsiblePanel.js +7 -5
- package/dist/components/layout/Layout.js +5 -5
- package/dist/components/layout/View.js +6 -5
- package/dist/components/layout/ViewContainer.js +1 -2
- package/dist/components/layout/ViewPort.js +1 -1
- package/dist/components/layout/Window.js +2 -3
- package/dist/components/layout/WindowDialog.js +9 -7
- package/dist/components/layout/WindowViewPort.js +3 -3
- package/dist/components/media/Chat.js +2 -1
- package/dist/components/media/MediaSoupHelper.js +57 -53
- package/dist/components/media/SocketRequest.js +9 -7
- package/dist/components/media/SocketResponse.js +7 -5
- package/dist/components/media/Timer.js +1 -2
- package/dist/components/media/Toolbar.js +3 -3
- package/dist/components/media/ToolbarButton.js +3 -3
- package/dist/components/media/Toolbar_bck.js +3 -3
- package/dist/components/media/Tracks.js +24 -19
- package/dist/components/media/TrainingRoom.js +3 -4
- package/dist/components/media/Transports.js +21 -17
- package/dist/components/media/VCEventManager.js +25 -24
- package/dist/components/media/VCEventType.js +81 -79
- package/dist/components/media/VCParticipantList.js +1 -2
- package/dist/components/media/VCParticipantListItem.js +2 -3
- package/dist/components/media/VCRoomParticipant.js +4 -5
- package/dist/components/media/VCRoomRecorder.js +163 -160
- package/dist/components/media/VCRoomWorkspace.js +3 -4
- package/dist/components/media/Video.js +1 -2
- package/dist/components/media/VideoPlayer.js +1 -2
- package/dist/components/media/chat/ChatPoll.js +15 -15
- package/dist/components/media/chat/ChatRoom.js +15 -15
- package/dist/components/media/chat/ChatRoomItem.js +2 -3
- package/dist/components/media/chat/ChatRoomList.js +1 -2
- package/dist/components/media/chat/ChatRoomWrapper.js +1 -1
- package/dist/components/media/chat/PollContainer.js +14 -8
- package/dist/components/media/chat/PollResult.js +1 -2
- package/dist/components/menu/MenuBars.js +8 -5
- package/dist/components/menu/MenuButton.js +11 -5
- package/dist/components/menu/MenuItem.js +13 -6
- package/dist/components/menu/MenuLink.js +2 -1
- package/dist/components/navbars/HomeNavbar.js +43 -41
- package/dist/components/navbars/PortalNavbar.js +1 -2
- package/dist/components/signatures/AgilitySignaturePanel.js +39 -15
- package/dist/components/signatures/{DocumentContainer.js → HtmlSignatureDocumentContainer.js} +4 -4
- package/dist/components/signatures/ImageSignatureInput.js +27 -16
- package/dist/components/signatures/ResponsiveTable.js +1 -1
- package/dist/components/signatures/SearchView.js +1 -1
- package/dist/components/signatures/SignatureInput.js +42 -98
- package/dist/components/signatures/SignatureInputProps.js +1 -1
- package/dist/components/signatures/SignatureTemplateDesigner.js +13 -10
- package/dist/components/signatures/Toolbar.js +7 -3
- package/dist/components/signatures/ViewUtils.js +21 -16
- package/dist/event/ActionHandlers.js +10 -7
- package/dist/event/Event.js +15 -13
- package/dist/event/EventListener.js +39 -41
- package/dist/event/EventType.js +24 -19
- package/dist/event/Observable.js +120 -125
- package/dist/event/RouteActionHandler.js +4 -4
- package/dist/event/ScriptActionHandler.js +1 -1
- package/dist/event/ServiceCallActionHandler.js +1 -1
- package/dist/interaction/CursorOverlay.js +48 -0
- package/dist/interaction/DragContext.js +39 -0
- package/dist/interaction/GrabContext.js +40 -0
- package/dist/js/Addresses.js +9 -8
- package/dist/js/Calendar.js +152 -149
- package/dist/js/Docs.js +92 -87
- package/dist/js/DynamicLib.js +9 -6
- package/dist/js/Media.js +134 -131
- package/dist/js/ProcurementMeetings.js +81 -78
- package/dist/js/Validators.js +53 -50
- package/dist/js/Windows.js +35 -32
- package/dist/redux/store/ConfigureStore.js +8 -5
- package/dist/redux/store/DashboardStore.js +13 -12
- package/dist/redux/store/SecurityStore.js +9 -6
- package/dist/security/TokenManager.js +1 -1
- package/dist/view/Dashboard.js +11 -12
- package/dist/view/security/ForgotPassword.js +3 -3
- package/dist/view/security/ForgotPasswordBasic.js +1 -1
- package/dist/view/security/Login.js +4 -4
- package/dist/view/security/LoginBasic.js +2 -2
- package/dist/view/security/LoginInteractionPortal.js +2 -2
- package/dist/view/security/ResetPassword.js +1 -1
- package/dist/view/security/ResetPasswordBasic.js +1 -1
- package/dist/view/security/Security.js +4 -4
- package/package.json +1 -1
|
@@ -5,6 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _rootStyle = require("../rootStyle");
|
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
12
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
13
|
const headerStyle = () => ({
|
|
9
14
|
appBar: {
|
|
10
15
|
backgroundColor: "transparent",
|
|
@@ -23,15 +28,13 @@ const headerStyle = () => ({
|
|
|
23
28
|
minHeight: "50px",
|
|
24
29
|
display: "block"
|
|
25
30
|
},
|
|
26
|
-
container: {
|
|
27
|
-
..._rootStyle.containerFluid,
|
|
31
|
+
container: _objectSpread(_objectSpread({}, _rootStyle.containerFluid), {}, {
|
|
28
32
|
minHeight: "50px"
|
|
29
|
-
},
|
|
33
|
+
}),
|
|
30
34
|
flex: {
|
|
31
35
|
flex: 1
|
|
32
36
|
},
|
|
33
|
-
title: {
|
|
34
|
-
..._rootStyle.defaultFont,
|
|
37
|
+
title: _objectSpread(_objectSpread({}, _rootStyle.defaultFont), {}, {
|
|
35
38
|
lineHeight: "30px",
|
|
36
39
|
fontSize: "18px",
|
|
37
40
|
borderRadius: "3px",
|
|
@@ -44,32 +47,27 @@ const headerStyle = () => ({
|
|
|
44
47
|
"&:hover,&:focus": {
|
|
45
48
|
background: "transparent"
|
|
46
49
|
}
|
|
47
|
-
},
|
|
48
|
-
primary: {
|
|
50
|
+
}),
|
|
51
|
+
primary: _objectSpread({
|
|
49
52
|
backgroundColor: _rootStyle.primaryColor[0],
|
|
50
|
-
color: _rootStyle.whiteColor
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
info: {
|
|
53
|
+
color: _rootStyle.whiteColor
|
|
54
|
+
}, _rootStyle.defaultBoxShadow),
|
|
55
|
+
info: _objectSpread({
|
|
54
56
|
backgroundColor: _rootStyle.infoColor[0],
|
|
55
|
-
color: _rootStyle.whiteColor
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
success: {
|
|
57
|
+
color: _rootStyle.whiteColor
|
|
58
|
+
}, _rootStyle.defaultBoxShadow),
|
|
59
|
+
success: _objectSpread({
|
|
59
60
|
backgroundColor: _rootStyle.successColor[0],
|
|
60
|
-
color: _rootStyle.whiteColor
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
warning: {
|
|
61
|
+
color: _rootStyle.whiteColor
|
|
62
|
+
}, _rootStyle.defaultBoxShadow),
|
|
63
|
+
warning: _objectSpread({
|
|
64
64
|
backgroundColor: _rootStyle.warningColor[0],
|
|
65
|
-
color: _rootStyle.whiteColor
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
danger: {
|
|
65
|
+
color: _rootStyle.whiteColor
|
|
66
|
+
}, _rootStyle.defaultBoxShadow),
|
|
67
|
+
danger: _objectSpread({
|
|
69
68
|
backgroundColor: _rootStyle.dangerColor[0],
|
|
70
|
-
color: _rootStyle.whiteColor
|
|
71
|
-
|
|
72
|
-
},
|
|
69
|
+
color: _rootStyle.whiteColor
|
|
70
|
+
}, _rootStyle.defaultBoxShadow),
|
|
73
71
|
sidebarMinimize: {
|
|
74
72
|
float: "left",
|
|
75
73
|
padding: "0 0 0 15px",
|
|
@@ -5,6 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _rootStyle = require("../rootStyle");
|
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
12
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
13
|
const sidebarStyle = theme => ({
|
|
9
14
|
drawerPaperRTL: {
|
|
10
15
|
[theme.breakpoints.up("md")]: {
|
|
@@ -16,7 +21,7 @@ const sidebarStyle = theme => ({
|
|
|
16
21
|
right: "auto !important"
|
|
17
22
|
}
|
|
18
23
|
},
|
|
19
|
-
drawerPaper: {
|
|
24
|
+
drawerPaper: _objectSpread(_objectSpread({
|
|
20
25
|
border: "none",
|
|
21
26
|
position: "fixed",
|
|
22
27
|
top: "0",
|
|
@@ -25,18 +30,17 @@ const sidebarStyle = theme => ({
|
|
|
25
30
|
zIndex: "1032",
|
|
26
31
|
transitionProperty: "top, bottom, width",
|
|
27
32
|
transitionDuration: ".2s, .2s, .35s",
|
|
28
|
-
transitionTimingFunction: "linear, linear, ease"
|
|
29
|
-
|
|
30
|
-
..._rootStyle.boxShadow,
|
|
33
|
+
transitionTimingFunction: "linear, linear, ease"
|
|
34
|
+
}, _rootStyle.boxShadow), {}, {
|
|
31
35
|
width: _rootStyle.drawerWidth,
|
|
32
36
|
[theme.breakpoints.up("md")]: {
|
|
33
37
|
width: _rootStyle.drawerWidth,
|
|
34
38
|
position: "fixed",
|
|
35
39
|
height: "100%"
|
|
36
40
|
},
|
|
37
|
-
[theme.breakpoints.down("sm")]: {
|
|
38
|
-
width: _rootStyle.drawerWidth
|
|
39
|
-
|
|
41
|
+
[theme.breakpoints.down("sm")]: _objectSpread(_objectSpread({
|
|
42
|
+
width: _rootStyle.drawerWidth
|
|
43
|
+
}, _rootStyle.boxShadow), {}, {
|
|
40
44
|
position: "fixed",
|
|
41
45
|
display: "block",
|
|
42
46
|
top: "0",
|
|
@@ -50,9 +54,8 @@ const sidebarStyle = theme => ({
|
|
|
50
54
|
textAlign: "left",
|
|
51
55
|
paddingRight: "0px",
|
|
52
56
|
paddingLeft: "0",
|
|
53
|
-
transform:
|
|
54
|
-
|
|
55
|
-
},
|
|
57
|
+
transform: "translate3d(".concat(_rootStyle.drawerWidth, "px, 0, 0)")
|
|
58
|
+
}, _rootStyle.transition),
|
|
56
59
|
"&:before,&:after": {
|
|
57
60
|
position: "absolute",
|
|
58
61
|
zIndex: "3",
|
|
@@ -62,7 +65,7 @@ const sidebarStyle = theme => ({
|
|
|
62
65
|
display: "block",
|
|
63
66
|
top: "0"
|
|
64
67
|
}
|
|
65
|
-
},
|
|
68
|
+
}),
|
|
66
69
|
blackBackground: {
|
|
67
70
|
color: _rootStyle.whiteColor,
|
|
68
71
|
"&:after": {
|
|
@@ -126,8 +129,7 @@ const sidebarStyle = theme => ({
|
|
|
126
129
|
marginRight: "30px",
|
|
127
130
|
marginLeft: "26px"
|
|
128
131
|
},
|
|
129
|
-
logoNormal: {
|
|
130
|
-
..._rootStyle.defaultFont,
|
|
132
|
+
logoNormal: _objectSpread(_objectSpread({}, _rootStyle.defaultFont), {}, {
|
|
131
133
|
transition: "all 300ms linear",
|
|
132
134
|
display: "block",
|
|
133
135
|
opacity: "1",
|
|
@@ -142,7 +144,7 @@ const sidebarStyle = theme => ({
|
|
|
142
144
|
"&,&:hover,&:focus": {
|
|
143
145
|
color: "inherit"
|
|
144
146
|
}
|
|
145
|
-
},
|
|
147
|
+
}),
|
|
146
148
|
logoNormalRTL: {
|
|
147
149
|
textAlign: "right"
|
|
148
150
|
},
|
|
@@ -199,7 +201,7 @@ const sidebarStyle = theme => ({
|
|
|
199
201
|
paddingBottom: "0px"
|
|
200
202
|
}
|
|
201
203
|
},
|
|
202
|
-
itemLink: {
|
|
204
|
+
itemLink: _objectSpread(_objectSpread({
|
|
203
205
|
paddingLeft: "10px",
|
|
204
206
|
paddingRight: "10px",
|
|
205
207
|
transition: "all 300ms linear",
|
|
@@ -208,8 +210,8 @@ const sidebarStyle = theme => ({
|
|
|
208
210
|
position: "relative",
|
|
209
211
|
display: "block",
|
|
210
212
|
padding: "10px 15px",
|
|
211
|
-
backgroundColor: "transparent"
|
|
212
|
-
|
|
213
|
+
backgroundColor: "transparent"
|
|
214
|
+
}, _rootStyle.defaultFont), {}, {
|
|
213
215
|
width: "auto",
|
|
214
216
|
"&:hover": {
|
|
215
217
|
outline: "none",
|
|
@@ -219,7 +221,7 @@ const sidebarStyle = theme => ({
|
|
|
219
221
|
"&,&:hover,&:focus": {
|
|
220
222
|
color: "inherit"
|
|
221
223
|
}
|
|
222
|
-
},
|
|
224
|
+
}),
|
|
223
225
|
itemIcon: {
|
|
224
226
|
color: "inherit",
|
|
225
227
|
width: "30px",
|
|
@@ -237,9 +239,9 @@ const sidebarStyle = theme => ({
|
|
|
237
239
|
marginLeft: "15px",
|
|
238
240
|
marginRight: "1px"
|
|
239
241
|
},
|
|
240
|
-
itemText: {
|
|
241
|
-
color: "inherit"
|
|
242
|
-
|
|
242
|
+
itemText: _objectSpread(_objectSpread({
|
|
243
|
+
color: "inherit"
|
|
244
|
+
}, _rootStyle.defaultFont), {}, {
|
|
243
245
|
margin: "0",
|
|
244
246
|
lineHeight: "30px",
|
|
245
247
|
fontSize: "14px",
|
|
@@ -251,7 +253,7 @@ const sidebarStyle = theme => ({
|
|
|
251
253
|
height: "auto",
|
|
252
254
|
whiteSpace: "nowrap",
|
|
253
255
|
padding: "0 16px !important"
|
|
254
|
-
},
|
|
256
|
+
}),
|
|
255
257
|
userItemText: {
|
|
256
258
|
lineHeight: "22px"
|
|
257
259
|
},
|
|
@@ -284,15 +286,15 @@ const sidebarStyle = theme => ({
|
|
|
284
286
|
backgroundColor: "rgba(" + (0, _rootStyle.hexToRgb)(_rootStyle.grayColor[17]) + ", 0.2)",
|
|
285
287
|
boxShadow: "none"
|
|
286
288
|
},
|
|
287
|
-
collapseItemLink: {
|
|
289
|
+
collapseItemLink: _objectSpread(_objectSpread({
|
|
288
290
|
transition: "all 300ms linear",
|
|
289
291
|
margin: "0 15px",
|
|
290
292
|
borderRadius: "3px",
|
|
291
293
|
position: "relative",
|
|
292
294
|
display: "block",
|
|
293
295
|
padding: "10px",
|
|
294
|
-
backgroundColor: "transparent"
|
|
295
|
-
|
|
296
|
+
backgroundColor: "transparent"
|
|
297
|
+
}, _rootStyle.defaultFont), {}, {
|
|
296
298
|
width: "auto",
|
|
297
299
|
"&:hover": {
|
|
298
300
|
outline: "none",
|
|
@@ -302,10 +304,10 @@ const sidebarStyle = theme => ({
|
|
|
302
304
|
"&,&:hover,&:focus": {
|
|
303
305
|
color: "inherit"
|
|
304
306
|
}
|
|
305
|
-
},
|
|
306
|
-
collapseItemMini: {
|
|
307
|
-
color: "inherit"
|
|
308
|
-
|
|
307
|
+
}),
|
|
308
|
+
collapseItemMini: _objectSpread(_objectSpread({
|
|
309
|
+
color: "inherit"
|
|
310
|
+
}, _rootStyle.defaultFont), {}, {
|
|
309
311
|
textTransform: "uppercase",
|
|
310
312
|
width: "30px",
|
|
311
313
|
marginRight: "15px",
|
|
@@ -316,15 +318,15 @@ const sidebarStyle = theme => ({
|
|
|
316
318
|
display: "inherit",
|
|
317
319
|
transition: "transform 300ms ease 0s, opacity 300ms ease 0s",
|
|
318
320
|
fontSize: "14px"
|
|
319
|
-
},
|
|
321
|
+
}),
|
|
320
322
|
collapseItemMiniRTL: {
|
|
321
323
|
float: "right",
|
|
322
324
|
marginLeft: "30px",
|
|
323
325
|
marginRight: "1px"
|
|
324
326
|
},
|
|
325
|
-
collapseItemText: {
|
|
326
|
-
color: "inherit"
|
|
327
|
-
|
|
327
|
+
collapseItemText: _objectSpread(_objectSpread({
|
|
328
|
+
color: "inherit"
|
|
329
|
+
}, _rootStyle.defaultFont), {}, {
|
|
328
330
|
margin: "0",
|
|
329
331
|
position: "relative",
|
|
330
332
|
transform: "translateX(0px)",
|
|
@@ -333,7 +335,7 @@ const sidebarStyle = theme => ({
|
|
|
333
335
|
display: "block",
|
|
334
336
|
transition: "transform 300ms ease 0s, opacity 300ms ease 0s",
|
|
335
337
|
fontSize: "14px"
|
|
336
|
-
},
|
|
338
|
+
}),
|
|
337
339
|
collapseItemTextRTL: {
|
|
338
340
|
textAlign: "right"
|
|
339
341
|
},
|
|
@@ -369,11 +371,10 @@ const sidebarStyle = theme => ({
|
|
|
369
371
|
transform: "rotate(-360deg)"
|
|
370
372
|
},
|
|
371
373
|
purple: {
|
|
372
|
-
"&,&:hover,&:focus": {
|
|
374
|
+
"&,&:hover,&:focus": _objectSpread({
|
|
373
375
|
color: _rootStyle.whiteColor,
|
|
374
|
-
backgroundColor: _rootStyle.primaryColor[0]
|
|
375
|
-
|
|
376
|
-
}
|
|
376
|
+
backgroundColor: _rootStyle.primaryColor[0]
|
|
377
|
+
}, _rootStyle.primaryBoxShadow)
|
|
377
378
|
},
|
|
378
379
|
blue: {
|
|
379
380
|
"&,&:hover,&:focus": {
|
|
@@ -447,7 +448,7 @@ const sidebarStyle = theme => ({
|
|
|
447
448
|
backgroundColor: "hsla(0,0%,100%,.3)"
|
|
448
449
|
}
|
|
449
450
|
},
|
|
450
|
-
photo: {
|
|
451
|
+
photo: _objectSpread({
|
|
451
452
|
transition: "all 300ms linear",
|
|
452
453
|
width: "34px",
|
|
453
454
|
height: "34px",
|
|
@@ -456,9 +457,8 @@ const sidebarStyle = theme => ({
|
|
|
456
457
|
zIndex: "5",
|
|
457
458
|
marginRight: "11px",
|
|
458
459
|
borderRadius: "50%",
|
|
459
|
-
marginLeft: "23px"
|
|
460
|
-
|
|
461
|
-
},
|
|
460
|
+
marginLeft: "23px"
|
|
461
|
+
}, _rootStyle.boxShadow),
|
|
462
462
|
photoRTL: {
|
|
463
463
|
float: "right",
|
|
464
464
|
marginLeft: "12px",
|
|
@@ -5,11 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _rootStyle = require("../rootStyle");
|
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
12
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
13
|
const typographyStyle = {
|
|
9
|
-
defaultFontStyle: {
|
|
10
|
-
..._rootStyle.defaultFont,
|
|
14
|
+
defaultFontStyle: _objectSpread(_objectSpread({}, _rootStyle.defaultFont), {}, {
|
|
11
15
|
fontSize: "14px"
|
|
12
|
-
},
|
|
16
|
+
}),
|
|
13
17
|
defaultHeaderMargins: {
|
|
14
18
|
marginTop: "20px",
|
|
15
19
|
marginBottom: "10px"
|
|
@@ -4,6 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.youtubeColor = exports.whiteColor = exports.warningColor = exports.warningCardHeader = exports.warningBoxShadow = exports.twitterColor = exports.tumblrColor = exports.transition = exports.tooltip = exports.title = exports.successColor = exports.successCardHeader = exports.successBoxShadow = exports.roseColor = exports.roseCardHeader = exports.roseBoxShadow = exports.redditColor = exports.primaryColor = exports.primaryCardHeader = exports.primaryBoxShadow = exports.pinterestColor = exports.linkedinColor = exports.infoColor = exports.infoCardHeader = exports.infoBoxShadow = exports.hexToRgb = exports.grayColor = exports.googleColor = exports.facebookColor = exports.dribbbleColor = exports.drawerWidth = exports.drawerMiniWidth = exports.defaultFont = exports.defaultBoxShadow = exports.dangerColor = exports.dangerCardHeader = exports.dangerBoxShadow = exports.containerFluid = exports.container = exports.cardTitle = exports.cardSubtitle = exports.cardLink = exports.cardHeader = exports.cardActions = exports.card = exports.boxShadow = exports.blackColor = exports.behanceColor = exports.agilityColor = void 0;
|
|
7
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
10
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
11
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
12
|
const hexToRgb = input => {
|
|
8
13
|
input = input + "";
|
|
9
14
|
input = input.replace("#", "");
|
|
@@ -110,30 +115,24 @@ const dangerBoxShadow = exports.dangerBoxShadow = {
|
|
|
110
115
|
const roseBoxShadow = exports.roseBoxShadow = {
|
|
111
116
|
boxShadow: "0 4px 20px 0 rgba(" + hexToRgb(blackColor) + ",.14), 0 7px 10px -5px rgba(" + hexToRgb(roseColor[0]) + ",.4)"
|
|
112
117
|
};
|
|
113
|
-
const warningCardHeader = exports.warningCardHeader = {
|
|
114
|
-
background: "linear-gradient(60deg, " + warningColor[1] + ", " + warningColor[2] + ")"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
};
|
|
125
|
-
const
|
|
126
|
-
background: "linear-gradient(60deg, " +
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
...primaryBoxShadow
|
|
132
|
-
};
|
|
133
|
-
const roseCardHeader = exports.roseCardHeader = {
|
|
134
|
-
background: agilityColor[0],
|
|
135
|
-
...roseBoxShadow
|
|
136
|
-
};
|
|
118
|
+
const warningCardHeader = exports.warningCardHeader = _objectSpread({
|
|
119
|
+
background: "linear-gradient(60deg, " + warningColor[1] + ", " + warningColor[2] + ")"
|
|
120
|
+
}, warningBoxShadow);
|
|
121
|
+
const successCardHeader = exports.successCardHeader = _objectSpread({
|
|
122
|
+
background: "linear-gradient(60deg, " + successColor[1] + ", " + successColor[2] + ")"
|
|
123
|
+
}, successBoxShadow);
|
|
124
|
+
const dangerCardHeader = exports.dangerCardHeader = _objectSpread({
|
|
125
|
+
background: "linear-gradient(60deg, " + dangerColor[1] + ", " + dangerColor[2] + ")"
|
|
126
|
+
}, dangerBoxShadow);
|
|
127
|
+
const infoCardHeader = exports.infoCardHeader = _objectSpread({
|
|
128
|
+
background: "linear-gradient(60deg, " + infoColor[1] + ", " + infoColor[2] + ")"
|
|
129
|
+
}, infoBoxShadow);
|
|
130
|
+
const primaryCardHeader = exports.primaryCardHeader = _objectSpread({
|
|
131
|
+
background: "linear-gradient(60deg, " + primaryColor[1] + ", " + primaryColor[2] + ")"
|
|
132
|
+
}, primaryBoxShadow);
|
|
133
|
+
const roseCardHeader = exports.roseCardHeader = _objectSpread({
|
|
134
|
+
background: agilityColor[0]
|
|
135
|
+
}, roseBoxShadow);
|
|
137
136
|
const card = exports.card = {
|
|
138
137
|
display: "inline-block",
|
|
139
138
|
position: "relative",
|
|
@@ -144,13 +143,12 @@ const card = exports.card = {
|
|
|
144
143
|
color: "rgba(" + hexToRgb(blackColor) + ", 0.87)",
|
|
145
144
|
background: whiteColor
|
|
146
145
|
};
|
|
147
|
-
const cardActions = exports.cardActions = {
|
|
146
|
+
const cardActions = exports.cardActions = _objectSpread({
|
|
148
147
|
margin: "0 20px 10px",
|
|
149
148
|
paddingTop: "10px",
|
|
150
149
|
borderTop: "1px solid " + grayColor[8],
|
|
151
|
-
height: "auto"
|
|
152
|
-
|
|
153
|
-
};
|
|
150
|
+
height: "auto"
|
|
151
|
+
}, defaultFont);
|
|
154
152
|
const cardHeader = exports.cardHeader = {
|
|
155
153
|
margin: "-20px 15px 0",
|
|
156
154
|
borderRadius: "3px",
|
|
@@ -203,18 +201,16 @@ const title = exports.title = {
|
|
|
203
201
|
lineHeight: "1"
|
|
204
202
|
}
|
|
205
203
|
};
|
|
206
|
-
const cardTitle = exports.cardTitle = {
|
|
207
|
-
...title,
|
|
204
|
+
const cardTitle = exports.cardTitle = _objectSpread(_objectSpread({}, title), {}, {
|
|
208
205
|
marginTop: "0",
|
|
209
206
|
marginBottom: "3px",
|
|
210
207
|
minHeight: "auto",
|
|
211
|
-
"& a": {
|
|
212
|
-
...title,
|
|
208
|
+
"& a": _objectSpread(_objectSpread({}, title), {}, {
|
|
213
209
|
marginTop: ".625rem",
|
|
214
210
|
marginBottom: "0.75rem",
|
|
215
211
|
minHeight: "auto"
|
|
216
|
-
}
|
|
217
|
-
};
|
|
212
|
+
})
|
|
213
|
+
});
|
|
218
214
|
const cardSubtitle = exports.cardSubtitle = {
|
|
219
215
|
marginTop: "-.375rem"
|
|
220
216
|
};
|
|
@@ -5,6 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _rootStyle = require("../rootStyle");
|
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
12
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
13
|
const appStyle = theme => ({
|
|
9
14
|
wrapper: {
|
|
10
15
|
position: "relative",
|
|
@@ -16,35 +21,33 @@ const appStyle = theme => ({
|
|
|
16
21
|
content: '" "'
|
|
17
22
|
}
|
|
18
23
|
},
|
|
19
|
-
mainPanel: {
|
|
24
|
+
mainPanel: _objectSpread(_objectSpread({
|
|
20
25
|
transitionProperty: "top, bottom, width",
|
|
21
26
|
transitionDuration: ".2s, .2s, .35s",
|
|
22
27
|
transitionTimingFunction: "linear, linear, ease",
|
|
23
28
|
[theme.breakpoints.up("md")]: {
|
|
24
|
-
width:
|
|
29
|
+
width: "calc(100% - ".concat(_rootStyle.drawerWidth, "px)")
|
|
25
30
|
},
|
|
26
31
|
overflow: "auto",
|
|
27
32
|
position: "relative",
|
|
28
|
-
float: "right"
|
|
29
|
-
|
|
33
|
+
float: "right"
|
|
34
|
+
}, _rootStyle.transition), {}, {
|
|
30
35
|
maxHeight: "100%",
|
|
31
36
|
width: "100%",
|
|
32
37
|
overflowScrolling: "touch"
|
|
33
|
-
},
|
|
38
|
+
}),
|
|
34
39
|
content: {
|
|
35
40
|
marginTop: "70px",
|
|
36
41
|
padding: "30px 15px",
|
|
37
42
|
minHeight: "calc(100vh - 123px)"
|
|
38
43
|
},
|
|
39
|
-
container: {
|
|
40
|
-
..._rootStyle.containerFluid
|
|
41
|
-
},
|
|
44
|
+
container: _objectSpread({}, _rootStyle.containerFluid),
|
|
42
45
|
map: {
|
|
43
46
|
marginTop: "70px"
|
|
44
47
|
},
|
|
45
48
|
mainPanelSidebarMini: {
|
|
46
49
|
[theme.breakpoints.up("md")]: {
|
|
47
|
-
width:
|
|
50
|
+
width: "calc(100% - ".concat(_rootStyle.drawerMiniWidth, "px)")
|
|
48
51
|
}
|
|
49
52
|
},
|
|
50
53
|
mainPanelWithPerfectScrollbar: {
|
|
@@ -5,24 +5,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _rootStyle = require("../rootStyle");
|
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
12
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
13
|
const loginStyle = theme => ({
|
|
9
|
-
container: {
|
|
10
|
-
..._rootStyle.container,
|
|
14
|
+
container: _objectSpread(_objectSpread({}, _rootStyle.container), {}, {
|
|
11
15
|
zIndex: "4",
|
|
12
16
|
[theme.breakpoints.down("sm")]: {
|
|
13
17
|
paddingBottom: "100px"
|
|
14
18
|
}
|
|
15
|
-
},
|
|
19
|
+
}),
|
|
16
20
|
right: {
|
|
17
21
|
margin: "0",
|
|
18
22
|
fontSize: "12px",
|
|
19
23
|
float: "right!important",
|
|
20
24
|
color: "#d32f2f"
|
|
21
25
|
},
|
|
22
|
-
cardTitle: {
|
|
23
|
-
..._rootStyle.cardTitle,
|
|
26
|
+
cardTitle: _objectSpread(_objectSpread({}, _rootStyle.cardTitle), {}, {
|
|
24
27
|
color: _rootStyle.whiteColor
|
|
25
|
-
},
|
|
28
|
+
}),
|
|
26
29
|
loader: {
|
|
27
30
|
width: "100%",
|
|
28
31
|
height: "100",
|
|
@@ -20,7 +20,7 @@ const AlertBar = /*#__PURE__*/_react.default.memo(props => {
|
|
|
20
20
|
let defaultAction = {
|
|
21
21
|
actionType: 'script',
|
|
22
22
|
script: {
|
|
23
|
-
lines: [
|
|
23
|
+
lines: ["if('".concat(props.viewId, "' === $event.viewId) {"), " @#{".concat(props.config.id, "}.message = $event.data.message"), " @#{".concat(props.config.id, "}.variant = $event.data.messageType === 'ERROR' ? 'danger' : $event.data.messageType === 'WARN' ? 'warning' : $event.data.messageType === 'SUCCESS' ? 'success' : 'info'"), "}"]
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
if (_Utils.default.isNull(eventHandlingConfig.subscriptions)) {
|
|
@@ -17,6 +17,11 @@ var _ApplicationManager = _interopRequireDefault(require("../ApplicationManager"
|
|
|
17
17
|
var _DynamicJS = _interopRequireDefault(require("../DynamicJS"));
|
|
18
18
|
require("./Button.css");
|
|
19
19
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
23
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
24
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
25
|
const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
21
26
|
root: {
|
|
22
27
|
display: 'flex'
|
|
@@ -29,6 +34,7 @@ const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
|
29
34
|
}
|
|
30
35
|
}));
|
|
31
36
|
const Button = props => {
|
|
37
|
+
var _props$attributes, _props$config$attribu, _props$config$attribu2, _props$config$attribu3, _props$config$attribu4, _props$config$attribu5;
|
|
32
38
|
const classes = useStyles();
|
|
33
39
|
const [disabled, setDisabled] = _react.default.useState(false);
|
|
34
40
|
const [visible, setVisible] = _react.default.useState(false);
|
|
@@ -49,6 +55,7 @@ const Button = props => {
|
|
|
49
55
|
}
|
|
50
56
|
}, [config]);
|
|
51
57
|
_react.default.useEffect(() => {
|
|
58
|
+
var _props$tableRow$id;
|
|
52
59
|
try {
|
|
53
60
|
let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
54
61
|
let label = _DynamicJS.default.executeScript(parsedConfig.id + 'label', _Utils.default.getComponentAttribute(parsedConfig, 'label', ''), parsedConfig.viewId, true, null, null, false);
|
|
@@ -56,10 +63,9 @@ const Button = props => {
|
|
|
56
63
|
} catch (e) {
|
|
57
64
|
setLabel(_Utils.default.getComponentAttribute(props.config, 'label', ''));
|
|
58
65
|
}
|
|
59
|
-
setConfig(props.tableRow ? {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
} : props.config);
|
|
66
|
+
setConfig(props.tableRow ? _objectSpread(_objectSpread({}, props.config), {}, {
|
|
67
|
+
id: props.config.id + '_' + ((_props$tableRow$id = props.tableRow.id) === null || _props$tableRow$id === void 0 ? void 0 : _props$tableRow$id.replaceAll('-', ''))
|
|
68
|
+
}) : props.config);
|
|
63
69
|
return () => {
|
|
64
70
|
_Observable.default.clearComponentEventListeners(props.handle);
|
|
65
71
|
props.handle.api = null;
|
|
@@ -73,7 +79,8 @@ const Button = props => {
|
|
|
73
79
|
const api = () => {
|
|
74
80
|
return {
|
|
75
81
|
get id() {
|
|
76
|
-
|
|
82
|
+
var _props$tableRow$id2;
|
|
83
|
+
return props.tableRow ? props.config.id + '_' + ((_props$tableRow$id2 = props.tableRow.id) === null || _props$tableRow$id2 === void 0 ? void 0 : _props$tableRow$id2.replaceAll('-', '')) : props.config.id;
|
|
77
84
|
},
|
|
78
85
|
get tableRow() {
|
|
79
86
|
return props.tableRow;
|
|
@@ -95,9 +102,9 @@ const Button = props => {
|
|
|
95
102
|
};
|
|
96
103
|
};
|
|
97
104
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
98
|
-
className:
|
|
105
|
+
className: "".concat(classes.root, " oui button"),
|
|
99
106
|
style: {
|
|
100
|
-
width: props.attributes
|
|
107
|
+
width: (_props$attributes = props.attributes) === null || _props$attributes === void 0 || (_props$attributes = _props$attributes.style) === null || _props$attributes === void 0 ? void 0 : _props$attributes.width,
|
|
101
108
|
display: visible ? 'block' : 'none'
|
|
102
109
|
}
|
|
103
110
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -106,7 +113,7 @@ const Button = props => {
|
|
|
106
113
|
variant: color === 'secondary' || color === 'primary' ? 'contained' : 'text',
|
|
107
114
|
size: "large",
|
|
108
115
|
color: !_Utils.default.isNull(color) ? color : null,
|
|
109
|
-
style: props.config.attributes
|
|
116
|
+
style: (_props$config$attribu = props.config.attributes) === null || _props$config$attribu === void 0 ? void 0 : _props$config$attribu.style,
|
|
110
117
|
disabled: disabled,
|
|
111
118
|
onClick: handleClick,
|
|
112
119
|
startIcon: /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
@@ -115,17 +122,17 @@ const Button = props => {
|
|
|
115
122
|
}, label) : !_Utils.default.isNull(props.config.icon) ? /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
116
123
|
"aria-controls": "menu-list-grow",
|
|
117
124
|
disabled: disabled,
|
|
118
|
-
style: props.config.attributes
|
|
125
|
+
style: (_props$config$attribu2 = props.config.attributes) === null || _props$config$attribu2 === void 0 ? void 0 : _props$config$attribu2.style,
|
|
119
126
|
"aria-haspopup": "true",
|
|
120
127
|
onClick: handleClick
|
|
121
128
|
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
122
129
|
id: props.config.icon,
|
|
123
|
-
color: props.config.attributes
|
|
130
|
+
color: (_props$config$attribu3 = props.config.attributes) !== null && _props$config$attribu3 !== void 0 && (_props$config$attribu3 = _props$config$attribu3.style) !== null && _props$config$attribu3 !== void 0 && _props$config$attribu3.color ? (_props$config$attribu4 = props.config.attributes) === null || _props$config$attribu4 === void 0 || (_props$config$attribu4 = _props$config$attribu4.style) === null || _props$config$attribu4 === void 0 ? void 0 : _props$config$attribu4.color : _ApplicationManager.default.getApplicationSecondaryColor()
|
|
124
131
|
})) : /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
125
132
|
variant: color === 'secondary' || color === 'primary' ? 'contained' : 'text',
|
|
126
133
|
"aria-controls": "menu-list-grow",
|
|
127
134
|
color: color,
|
|
128
|
-
style: props.config.attributes
|
|
135
|
+
style: (_props$config$attribu5 = props.config.attributes) === null || _props$config$attribu5 === void 0 ? void 0 : _props$config$attribu5.style,
|
|
129
136
|
disabled: disabled,
|
|
130
137
|
onClick: handleClick,
|
|
131
138
|
"aria-haspopup": "true"
|