@agilemotion/oui-react-js 1.6.0 → 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 +65 -18
- 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.css +0 -157
- package/dist/components/DocumentTemplateDesignerComponent.js +118 -62
- 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 +35 -19
- 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 +5 -5
- 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 -154
- 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
|
@@ -17,33 +17,39 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
17
17
|
|
|
18
18
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
20
|
+
var LightTooltip = (0, _styles.withStyles)(function (theme) {
|
|
21
|
+
return {
|
|
22
|
+
tooltip: {
|
|
23
|
+
backgroundColor: theme.palette.common.white,
|
|
24
|
+
color: 'rgba(0, 0, 0, 0.87)',
|
|
25
|
+
boxShadow: theme.shadows[1],
|
|
26
|
+
fontSize: 11
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
})(_Tooltip.default);
|
|
30
|
+
var useStylesBootstrap = (0, _styles.makeStyles)(function (theme) {
|
|
31
|
+
return {
|
|
32
|
+
arrow: {
|
|
33
|
+
color: theme.palette.common.black
|
|
34
|
+
},
|
|
35
|
+
tooltip: {
|
|
36
|
+
backgroundColor: theme.palette.common.black
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
var useStylesError = (0, _styles.makeStyles)(function (theme) {
|
|
41
|
+
return {
|
|
42
|
+
arrow: {
|
|
43
|
+
color: '#f44336'
|
|
44
|
+
},
|
|
45
|
+
tooltip: {
|
|
46
|
+
backgroundColor: '#f44336'
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
});
|
|
44
50
|
|
|
45
51
|
function BootstrapTooltip(props) {
|
|
46
|
-
|
|
52
|
+
var classes = useStylesBootstrap();
|
|
47
53
|
return /*#__PURE__*/_react.default.createElement(_Tooltip.default, _extends({
|
|
48
54
|
arrow: true,
|
|
49
55
|
classes: classes
|
|
@@ -51,22 +57,24 @@ function BootstrapTooltip(props) {
|
|
|
51
57
|
}
|
|
52
58
|
|
|
53
59
|
function ErrorTooltip(props) {
|
|
54
|
-
|
|
60
|
+
var classes = useStylesError();
|
|
55
61
|
return /*#__PURE__*/_react.default.createElement(_Tooltip.default, _extends({
|
|
56
62
|
arrow: true,
|
|
57
63
|
classes: classes
|
|
58
64
|
}, props));
|
|
59
65
|
}
|
|
60
66
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
67
|
+
var HtmlTooltip = (0, _styles.withStyles)(function (theme) {
|
|
68
|
+
return {
|
|
69
|
+
tooltip: {
|
|
70
|
+
backgroundColor: '#f5f5f9',
|
|
71
|
+
color: 'rgba(0, 0, 0, 0.87)',
|
|
72
|
+
maxWidth: 220,
|
|
73
|
+
fontSize: theme.typography.pxToRem(12),
|
|
74
|
+
border: '1px solid #dadde9'
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
})(_Tooltip.default);
|
|
70
78
|
|
|
71
79
|
function CustomTooltip(props) {
|
|
72
80
|
return /*#__PURE__*/_react.default.createElement("div", null, props.type === 'LIGHT' ? /*#__PURE__*/_react.default.createElement(LightTooltip, {
|
package/dist/components/Tree.js
CHANGED
|
@@ -37,6 +37,20 @@ var _ApplicationManager = _interopRequireDefault(require("../ApplicationManager"
|
|
|
37
37
|
|
|
38
38
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
39
39
|
|
|
40
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
41
|
+
|
|
42
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
43
|
+
|
|
44
|
+
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."); }
|
|
45
|
+
|
|
46
|
+
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); }
|
|
47
|
+
|
|
48
|
+
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; }
|
|
49
|
+
|
|
50
|
+
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; }
|
|
51
|
+
|
|
52
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
53
|
+
|
|
40
54
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
41
55
|
|
|
42
56
|
// web.cjs is required for IE 11 support
|
|
@@ -78,7 +92,7 @@ function CloseSquare(props) {
|
|
|
78
92
|
}
|
|
79
93
|
|
|
80
94
|
function TransitionComponent(props) {
|
|
81
|
-
|
|
95
|
+
var style = (0, _web.useSpring)({
|
|
82
96
|
from: {
|
|
83
97
|
opacity: 0,
|
|
84
98
|
transform: 'translate3d(20px,0,0)'
|
|
@@ -99,21 +113,25 @@ TransitionComponent.propTypes = {
|
|
|
99
113
|
*/
|
|
100
114
|
in: _propTypes.default.bool
|
|
101
115
|
};
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
116
|
+
var StyledTreeItem = (0, _styles.withStyles)(function (theme) {
|
|
117
|
+
return {
|
|
118
|
+
iconContainer: {
|
|
119
|
+
'& .close': {
|
|
120
|
+
opacity: 0.3
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
group: {
|
|
124
|
+
marginLeft: 7,
|
|
125
|
+
paddingLeft: 18,
|
|
126
|
+
borderLeft: "1px dashed ".concat((0, _styles.fade)(theme.palette.text.primary, 0.4))
|
|
106
127
|
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
TransitionComponent: TransitionComponent
|
|
115
|
-
})));
|
|
116
|
-
const useStyles = (0, _styles.makeStyles)({
|
|
128
|
+
};
|
|
129
|
+
})(function (props) {
|
|
130
|
+
return /*#__PURE__*/_react.default.createElement(_TreeItem.default, _extends({}, props, {
|
|
131
|
+
TransitionComponent: TransitionComponent
|
|
132
|
+
}));
|
|
133
|
+
});
|
|
134
|
+
var useStyles = (0, _styles.makeStyles)({
|
|
117
135
|
root: {
|
|
118
136
|
height: 264,
|
|
119
137
|
flexGrow: 1,
|
|
@@ -121,27 +139,38 @@ const useStyles = (0, _styles.makeStyles)({
|
|
|
121
139
|
}
|
|
122
140
|
});
|
|
123
141
|
|
|
124
|
-
|
|
125
|
-
|
|
142
|
+
var Tree = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
143
|
+
var classes = useStyles();
|
|
126
144
|
|
|
127
|
-
|
|
145
|
+
var _React$useState = _react.default.useState(null),
|
|
146
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
147
|
+
root = _React$useState2[0],
|
|
148
|
+
setRoot = _React$useState2[1];
|
|
128
149
|
|
|
129
|
-
|
|
150
|
+
var _React$useState3 = _react.default.useState([]),
|
|
151
|
+
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
152
|
+
selectedRows = _React$useState4[0];
|
|
130
153
|
|
|
131
|
-
|
|
154
|
+
var _React$useState5 = _react.default.useState([]),
|
|
155
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
156
|
+
expanded = _React$useState6[0],
|
|
157
|
+
setExpanded = _React$useState6[1];
|
|
132
158
|
|
|
133
|
-
|
|
159
|
+
var _React$useState7 = _react.default.useState(true),
|
|
160
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
161
|
+
initializing = _React$useState8[0],
|
|
162
|
+
setInitializing = _React$useState8[1];
|
|
134
163
|
|
|
135
|
-
_react.default.useEffect(()
|
|
164
|
+
_react.default.useEffect(function () {
|
|
136
165
|
props.handle.api = api();
|
|
137
166
|
});
|
|
138
167
|
|
|
139
|
-
_react.default.useEffect(()
|
|
168
|
+
_react.default.useEffect(function () {
|
|
140
169
|
props.handle.api = api();
|
|
141
170
|
|
|
142
|
-
|
|
171
|
+
var parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
143
172
|
|
|
144
|
-
_Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, ()
|
|
173
|
+
_Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, function () {
|
|
145
174
|
return ref;
|
|
146
175
|
}, props.viewId);
|
|
147
176
|
|
|
@@ -151,10 +180,10 @@ const Tree = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
151
180
|
}, []);
|
|
152
181
|
|
|
153
182
|
function loadData(eventConfig, componentConfig) {
|
|
154
|
-
|
|
183
|
+
var service = !_Utils.default.isNull(componentConfig.dataService) ? componentConfig.dataService : eventConfig !== null ? eventConfig.dataService : null;
|
|
155
184
|
|
|
156
185
|
if (!_Utils.default.isNull(service)) {
|
|
157
|
-
(0, _RestUtils.invokeRpc)(service, props.handle, props.viewId, result
|
|
186
|
+
(0, _RestUtils.invokeRpc)(service, props.handle, props.viewId, function (result) {
|
|
158
187
|
try {
|
|
159
188
|
if (result.data) {
|
|
160
189
|
expand(result.data);
|
|
@@ -165,23 +194,23 @@ const Tree = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
165
194
|
|
|
166
195
|
_Utils.default.publishErrorMessage(e, props.viewId);
|
|
167
196
|
}
|
|
168
|
-
}, e
|
|
197
|
+
}, function (e) {
|
|
169
198
|
props.console.error(e);
|
|
170
199
|
|
|
171
200
|
_Utils.default.publishErrorMessage(e, props.viewId);
|
|
172
|
-
}, parameter
|
|
201
|
+
}, function (parameter) {});
|
|
173
202
|
} else if (!_Utils.default.isNull(componentConfig.value)) {
|
|
174
|
-
|
|
203
|
+
var value = _ApplicationManager.default.isExpression(componentConfig.value) ? _ApplicationManager.default.resolveExpressionValue(componentConfig.value) : componentConfig.value;
|
|
175
204
|
}
|
|
176
205
|
}
|
|
177
206
|
|
|
178
|
-
_react.default.useEffect(()
|
|
207
|
+
_react.default.useEffect(function () {
|
|
179
208
|
if (!initializing) {
|
|
180
209
|
loadData(null, props.config);
|
|
181
210
|
}
|
|
182
211
|
}, [initializing]);
|
|
183
212
|
|
|
184
|
-
|
|
213
|
+
var api = function api() {
|
|
185
214
|
return {
|
|
186
215
|
get id() {
|
|
187
216
|
return props.config.id;
|
|
@@ -192,7 +221,7 @@ const Tree = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
192
221
|
},
|
|
193
222
|
|
|
194
223
|
get root() {
|
|
195
|
-
|
|
224
|
+
var rootReference = null;
|
|
196
225
|
|
|
197
226
|
if (!_Utils.default.isNull(root)) {
|
|
198
227
|
rootReference = {};
|
|
@@ -209,43 +238,55 @@ const Tree = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
209
238
|
return rootReference;
|
|
210
239
|
},
|
|
211
240
|
|
|
212
|
-
getChildren: ()
|
|
241
|
+
getChildren: function getChildren() {
|
|
213
242
|
return [];
|
|
214
243
|
}
|
|
215
244
|
};
|
|
216
245
|
};
|
|
217
246
|
|
|
218
|
-
|
|
219
|
-
|
|
247
|
+
var handleSelectionChange = function handleSelectionChange(id, name) {
|
|
248
|
+
var node = {};
|
|
220
249
|
node.id = id;
|
|
221
250
|
node.label = name;
|
|
222
251
|
selectedRows.splice(0, selectedRows.length);
|
|
223
252
|
selectedRows.push(node);
|
|
224
|
-
|
|
253
|
+
var event = new _Event.default(props.handle, props.viewId);
|
|
225
254
|
|
|
226
255
|
_Observable.default.fireEvent(_EventType.default.SELECTION_CHANGE, event);
|
|
227
256
|
};
|
|
228
257
|
|
|
229
|
-
|
|
258
|
+
var render = function render(item) {
|
|
230
259
|
return /*#__PURE__*/_react.default.createElement(StyledTreeItem, {
|
|
231
260
|
nodeId: item.id.toString(),
|
|
232
261
|
label: item.name,
|
|
233
262
|
key: item.id,
|
|
234
|
-
onLabelClick:
|
|
235
|
-
|
|
263
|
+
onLabelClick: function onLabelClick(e) {
|
|
264
|
+
return e.preventDefault();
|
|
265
|
+
},
|
|
266
|
+
onClick: function onClick() {
|
|
236
267
|
handleSelectionChange(item.id, item.name);
|
|
237
268
|
}
|
|
238
|
-
}, !_Utils.default.isNull(item.children) && item.children.length > 0 ? item.children.map(child
|
|
269
|
+
}, !_Utils.default.isNull(item.children) && item.children.length > 0 ? item.children.map(function (child) {
|
|
239
270
|
return render(child);
|
|
240
271
|
}) : null);
|
|
241
272
|
};
|
|
242
273
|
|
|
243
|
-
|
|
274
|
+
var expand = function expand(item) {
|
|
244
275
|
expanded.push("".concat(item.id));
|
|
245
276
|
|
|
246
277
|
if (!_Utils.default.isNull(item.children)) {
|
|
247
|
-
|
|
248
|
-
|
|
278
|
+
var _iterator = _createForOfIteratorHelper(item.children),
|
|
279
|
+
_step;
|
|
280
|
+
|
|
281
|
+
try {
|
|
282
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
283
|
+
var child = _step.value;
|
|
284
|
+
expand(child);
|
|
285
|
+
}
|
|
286
|
+
} catch (err) {
|
|
287
|
+
_iterator.e(err);
|
|
288
|
+
} finally {
|
|
289
|
+
_iterator.f();
|
|
249
290
|
}
|
|
250
291
|
}
|
|
251
292
|
};
|
|
@@ -7,14 +7,35 @@ exports.useIsVisible = useIsVisible;
|
|
|
7
7
|
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
|
|
10
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
11
|
+
|
|
12
|
+
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."); }
|
|
13
|
+
|
|
14
|
+
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); }
|
|
15
|
+
|
|
16
|
+
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; }
|
|
17
|
+
|
|
18
|
+
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; }
|
|
19
|
+
|
|
20
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
|
+
|
|
10
22
|
function useIsVisible(ref) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
23
|
+
var _useState = (0, _react.useState)(false),
|
|
24
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
25
|
+
isIntersecting = _useState2[0],
|
|
26
|
+
setIntersecting = _useState2[1];
|
|
27
|
+
|
|
28
|
+
(0, _react.useEffect)(function () {
|
|
29
|
+
var observer = new IntersectionObserver(function (_ref) {
|
|
30
|
+
var _ref2 = _slicedToArray(_ref, 1),
|
|
31
|
+
entry = _ref2[0];
|
|
32
|
+
|
|
33
|
+
return setIntersecting(entry.isIntersecting);
|
|
34
|
+
}, {
|
|
14
35
|
threshold: 1
|
|
15
36
|
});
|
|
16
37
|
observer.observe(ref.current);
|
|
17
|
-
return ()
|
|
38
|
+
return function () {
|
|
18
39
|
observer.disconnect();
|
|
19
40
|
};
|
|
20
41
|
}, [ref]);
|
|
@@ -19,41 +19,35 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
19
19
|
|
|
20
20
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
|
+
|
|
26
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
|
+
|
|
28
|
+
var useStyles = (0, _styles.makeStyles)(_cardStyle.default);
|
|
23
29
|
|
|
24
30
|
function Card(props) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
[classes.cardProfile]: profile || testimonial,
|
|
46
|
-
[classes.cardBlog]: blog,
|
|
47
|
-
[classes.cardRaised]: raised,
|
|
48
|
-
[classes.cardBackground]: background,
|
|
49
|
-
[classes.cardPricingColor]: pricing && color !== undefined || pricing && background !== undefined,
|
|
50
|
-
[classes[color]]: color,
|
|
51
|
-
[classes.cardPricing]: pricing,
|
|
52
|
-
[classes.cardProduct]: product,
|
|
53
|
-
[classes.cardChart]: chart,
|
|
54
|
-
[classes.cardLogin]: login,
|
|
55
|
-
[className]: className !== undefined
|
|
56
|
-
});
|
|
31
|
+
var _classNames;
|
|
32
|
+
|
|
33
|
+
var classes = useStyles();
|
|
34
|
+
|
|
35
|
+
var className = props.className,
|
|
36
|
+
children = props.children,
|
|
37
|
+
plain = props.plain,
|
|
38
|
+
profile = props.profile,
|
|
39
|
+
blog = props.blog,
|
|
40
|
+
raised = props.raised,
|
|
41
|
+
background = props.background,
|
|
42
|
+
pricing = props.pricing,
|
|
43
|
+
color = props.color,
|
|
44
|
+
product = props.product,
|
|
45
|
+
testimonial = props.testimonial,
|
|
46
|
+
chart = props.chart,
|
|
47
|
+
login = props.login,
|
|
48
|
+
rest = _objectWithoutProperties(props, ["className", "children", "plain", "profile", "blog", "raised", "background", "pricing", "color", "product", "testimonial", "chart", "login"]);
|
|
49
|
+
|
|
50
|
+
var cardClasses = (0, _classnames.default)((_classNames = {}, _defineProperty(_classNames, classes.card, true), _defineProperty(_classNames, classes.cardPlain, plain), _defineProperty(_classNames, classes.cardProfile, profile || testimonial), _defineProperty(_classNames, classes.cardBlog, blog), _defineProperty(_classNames, classes.cardRaised, raised), _defineProperty(_classNames, classes.cardBackground, background), _defineProperty(_classNames, classes.cardPricingColor, pricing && color !== undefined || pricing && background !== undefined), _defineProperty(_classNames, classes[color], color), _defineProperty(_classNames, classes.cardPricing, pricing), _defineProperty(_classNames, classes.cardProduct, product), _defineProperty(_classNames, classes.cardChart, chart), _defineProperty(_classNames, classes.cardLogin, login), _defineProperty(_classNames, className, className !== undefined), _classNames));
|
|
57
51
|
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
58
52
|
className: cardClasses
|
|
59
53
|
}, rest), " ", children, " ");
|
|
@@ -19,27 +19,28 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
19
19
|
|
|
20
20
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
|
+
|
|
26
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
|
+
|
|
28
|
+
var useStyles = (0, _styles.makeStyles)(_cardAvatarStyle.default);
|
|
23
29
|
|
|
24
30
|
function CardAvatar(props) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
[classes.cardAvatarPlain]: plain,
|
|
39
|
-
[classes.cardAvatarTestimonial]: testimonial,
|
|
40
|
-
[classes.cardAvatarTestimonialFooter]: testimonialFooter,
|
|
41
|
-
[className]: className !== undefined
|
|
42
|
-
});
|
|
31
|
+
var _classNames;
|
|
32
|
+
|
|
33
|
+
var classes = useStyles();
|
|
34
|
+
|
|
35
|
+
var children = props.children,
|
|
36
|
+
className = props.className,
|
|
37
|
+
plain = props.plain,
|
|
38
|
+
profile = props.profile,
|
|
39
|
+
testimonial = props.testimonial,
|
|
40
|
+
testimonialFooter = props.testimonialFooter,
|
|
41
|
+
rest = _objectWithoutProperties(props, ["children", "className", "plain", "profile", "testimonial", "testimonialFooter"]);
|
|
42
|
+
|
|
43
|
+
var cardAvatarClasses = (0, _classnames.default)((_classNames = {}, _defineProperty(_classNames, classes.cardAvatar, true), _defineProperty(_classNames, classes.cardAvatarProfile, profile), _defineProperty(_classNames, classes.cardAvatarPlain, plain), _defineProperty(_classNames, classes.cardAvatarTestimonial, testimonial), _defineProperty(_classNames, classes.cardAvatarTestimonialFooter, testimonialFooter), _defineProperty(_classNames, className, className !== undefined), _classNames));
|
|
43
44
|
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
44
45
|
className: cardAvatarClasses
|
|
45
46
|
}, rest), " ", children, " ");
|
|
@@ -19,35 +19,32 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
19
19
|
|
|
20
20
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
|
+
|
|
26
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
|
+
|
|
28
|
+
var useStyles = (0, _styles.makeStyles)(_cardBodyStyle.default);
|
|
23
29
|
|
|
24
30
|
function CardBody(props) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
[classes.cardBodyPlain]: plain,
|
|
43
|
-
[classes.cardBodyFormHorizontal]: formHorizontal,
|
|
44
|
-
[classes.cardPricing]: pricing,
|
|
45
|
-
[classes.cardSignup]: signup,
|
|
46
|
-
[classes.cardBodyColor]: color,
|
|
47
|
-
[classes.cardBodyProfile]: profile,
|
|
48
|
-
[classes.cardBodyCalendar]: calendar,
|
|
49
|
-
[className]: className !== undefined
|
|
50
|
-
});
|
|
31
|
+
var _classNames;
|
|
32
|
+
|
|
33
|
+
var classes = useStyles();
|
|
34
|
+
|
|
35
|
+
var className = props.className,
|
|
36
|
+
children = props.children,
|
|
37
|
+
background = props.background,
|
|
38
|
+
plain = props.plain,
|
|
39
|
+
formHorizontal = props.formHorizontal,
|
|
40
|
+
pricing = props.pricing,
|
|
41
|
+
signup = props.signup,
|
|
42
|
+
color = props.color,
|
|
43
|
+
profile = props.profile,
|
|
44
|
+
calendar = props.calendar,
|
|
45
|
+
rest = _objectWithoutProperties(props, ["className", "children", "background", "plain", "formHorizontal", "pricing", "signup", "color", "profile", "calendar"]);
|
|
46
|
+
|
|
47
|
+
var cardBodyClasses = (0, _classnames.default)((_classNames = {}, _defineProperty(_classNames, classes.cardBody, true), _defineProperty(_classNames, classes.cardBodyBackground, background), _defineProperty(_classNames, classes.cardBodyPlain, plain), _defineProperty(_classNames, classes.cardBodyFormHorizontal, formHorizontal), _defineProperty(_classNames, classes.cardPricing, pricing), _defineProperty(_classNames, classes.cardSignup, signup), _defineProperty(_classNames, classes.cardBodyColor, color), _defineProperty(_classNames, classes.cardBodyProfile, profile), _defineProperty(_classNames, classes.cardBodyCalendar, calendar), _defineProperty(_classNames, className, className !== undefined), _classNames));
|
|
51
48
|
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
52
49
|
className: cardBodyClasses
|
|
53
50
|
}, rest), " ", children, " ");
|
|
@@ -19,32 +19,31 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
19
19
|
|
|
20
20
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
|
+
|
|
26
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
|
+
|
|
28
|
+
var useStyles = (0, _styles.makeStyles)(_cardFooterStyle.default);
|
|
23
29
|
|
|
24
30
|
function CardFooter(props) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
[classes.cardFooterProfile]: profile || testimonial,
|
|
42
|
-
[classes.cardFooterPricing]: pricing,
|
|
43
|
-
[classes.cardFooterTestimonial]: testimonial,
|
|
44
|
-
[classes.cardFooterStats]: stats,
|
|
45
|
-
[classes.cardFooterChart]: chart || product,
|
|
46
|
-
[className]: className !== undefined
|
|
47
|
-
});
|
|
31
|
+
var _classNames;
|
|
32
|
+
|
|
33
|
+
var classes = useStyles();
|
|
34
|
+
|
|
35
|
+
var className = props.className,
|
|
36
|
+
children = props.children,
|
|
37
|
+
plain = props.plain,
|
|
38
|
+
profile = props.profile,
|
|
39
|
+
pricing = props.pricing,
|
|
40
|
+
testimonial = props.testimonial,
|
|
41
|
+
stats = props.stats,
|
|
42
|
+
chart = props.chart,
|
|
43
|
+
product = props.product,
|
|
44
|
+
rest = _objectWithoutProperties(props, ["className", "children", "plain", "profile", "pricing", "testimonial", "stats", "chart", "product"]);
|
|
45
|
+
|
|
46
|
+
var cardFooterClasses = (0, _classnames.default)((_classNames = {}, _defineProperty(_classNames, classes.cardFooter, true), _defineProperty(_classNames, classes.cardFooterPlain, plain), _defineProperty(_classNames, classes.cardFooterProfile, profile || testimonial), _defineProperty(_classNames, classes.cardFooterPricing, pricing), _defineProperty(_classNames, classes.cardFooterTestimonial, testimonial), _defineProperty(_classNames, classes.cardFooterStats, stats), _defineProperty(_classNames, classes.cardFooterChart, chart || product), _defineProperty(_classNames, className, className !== undefined), _classNames));
|
|
48
47
|
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
49
48
|
className: cardFooterClasses
|
|
50
49
|
}, rest), " ", children, " ");
|