@agilemotion/oui-react-js 1.3.8 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.TXT +1 -0
- package/dist/{ApplicationContext.js → ApplicationManager.js} +334 -335
- package/dist/BasicApp.js +67 -64
- package/dist/BasicAppHome.js +90 -110
- package/dist/BusinessPortalApp.js +1 -1
- package/dist/BusinessPortalAppHome.js +15 -50
- package/dist/DynamicJS.js +24 -52
- package/dist/RestUtils.js +90 -116
- package/dist/Utils.js +49 -37
- package/dist/WithRouter.js +34 -0
- package/dist/assets/jss/components/authNavbarStyle.js +34 -35
- package/dist/assets/jss/components/cardHeaderStyle.js +12 -12
- package/dist/assets/jss/components/customDropdownStyle.js +26 -26
- package/dist/assets/jss/components/customInputStyle.js +2 -8
- package/dist/assets/jss/components/dropdownStyle.js +10 -15
- package/dist/assets/jss/components/footerStyle.js +12 -18
- package/dist/assets/jss/components/headerLinksStyle.js +7 -13
- package/dist/assets/jss/components/headerStyle.js +24 -25
- package/dist/assets/jss/components/navbarLinksStyle.js +7 -13
- package/dist/assets/jss/components/navbarStyle.js +24 -25
- package/dist/assets/jss/components/sidebarStyle.js +41 -43
- package/dist/assets/jss/components/typographyStyle.js +2 -8
- package/dist/assets/jss/rootStyle.js +32 -47
- package/dist/assets/jss/views/layoutStyle.js +6 -11
- package/dist/assets/jss/views/loginStyle.js +4 -10
- package/dist/assets/lotties/call-loading.json +1 -0
- package/dist/assets/lotties/calling-2.json +1 -0
- package/dist/assets/lotties/calling.json +1 -0
- package/dist/assets/lotties/calling2.json +1 -0
- package/dist/assets/lotties/chat.json +1 -0
- package/dist/assets/lotties/join.json +1 -0
- package/dist/assets/lotties/loading.json +1 -0
- package/dist/assets/lotties/msg2.json +1 -0
- package/dist/assets/lotties/recording.json +1 -0
- package/dist/assets/lotties/waiting.json +1 -0
- package/dist/assets/scss/black-dashboard-react/bootstrap/_card.scss +5 -5
- package/dist/assets/scss/black-dashboard-react/bootstrap/_carousel.scss +2 -2
- package/dist/assets/scss/black-dashboard-react/bootstrap/_custom-forms.scss +3 -3
- package/dist/assets/scss/black-dashboard-react/bootstrap/_functions.scss +1 -1
- package/dist/assets/scss/black-dashboard-react/bootstrap/_images.scss +1 -1
- package/dist/assets/scss/black-dashboard-react/bootstrap/_jumbotron.scss +1 -1
- package/dist/assets/scss/black-dashboard-react/bootstrap/_popover.scss +7 -5
- package/dist/assets/scss/black-dashboard-react/bootstrap/_tooltip.scss +4 -4
- package/dist/assets/scss/black-dashboard-react/bootstrap/_variables.scss +5 -5
- package/dist/assets/scss/black-dashboard-react/bootstrap/mixins/_grid-framework.scss +2 -2
- package/dist/assets/scss/black-dashboard-react/bootstrap/mixins/_grid.scss +11 -9
- package/dist/assets/scss/black-dashboard-react/bootstrap/utilities/_embed.scss +6 -4
- package/dist/assets/scss/black-dashboard-react/custom/_sidebar-and-main-panel.scss +1 -1
- package/dist/assets/scss/black-dashboard-react/custom/_variables.scss +1 -1
- package/dist/components/AlertBar.js +39 -80
- package/dist/components/AlertItem.js +4 -26
- package/dist/components/Button.js +49 -52
- package/dist/components/Calendar.js +442 -0
- package/dist/components/Calender.css +244 -0
- package/dist/components/ConfirmationDialog.js +5 -29
- package/dist/components/DataGrid.js +207 -345
- package/dist/components/DataGridColumn.js +6 -29
- package/dist/components/DataGridFilter.js +48 -116
- package/dist/components/DataGridHeading.js +11 -19
- package/dist/components/Dialog.js +27 -121
- package/dist/components/DocumentViewer.js +12 -38
- package/dist/components/DocumentViewerComponent.js +2 -20
- package/dist/components/FileThumb.js +126 -0
- package/dist/components/Graph.js +33 -75
- package/dist/components/GraphNode.js +5 -22
- package/dist/components/HtmlPanel.js +68 -82
- package/dist/components/Icon.js +107 -1
- package/dist/components/LoadingIndicator.js +4 -4
- package/dist/components/LottieIcon.js +134 -0
- package/dist/components/PopupView.js +3 -21
- package/dist/components/Portlet.js +100 -0
- package/dist/components/RegularButton.js +15 -19
- package/dist/components/SignaturePanel.js +9 -40
- package/dist/components/SocketManager.js +170 -0
- package/dist/components/StepperTitleBar.js +33 -59
- package/dist/components/TabPage.js +6 -9
- package/dist/components/TabPanel.js +49 -98
- package/dist/components/TableCellContent.js +31 -39
- package/dist/components/TemplateDesigner.js +114 -158
- package/dist/components/TemplateItemEventHandler.js +33 -100
- package/dist/components/TemplateTable.js +6 -42
- package/dist/components/TitleBar.js +38 -54
- package/dist/components/Toolbar.js +67 -182
- package/dist/components/Tree.js +29 -66
- package/dist/components/card/Card.js +16 -20
- package/dist/components/card/CardAvatar.js +9 -13
- package/dist/components/card/CardBody.js +13 -17
- package/dist/components/card/CardFooter.js +12 -16
- package/dist/components/card/CardHeader.js +13 -17
- package/dist/components/card/CardIcon.js +6 -10
- package/dist/components/card/CardText.js +6 -10
- package/dist/components/customInput/CustomInput.js +12 -10
- package/dist/components/dashboard/BasicBusinessAppDashboard.js +85 -159
- package/dist/components/dashboard/BusinessPortalAppDashboard.js +30 -75
- package/dist/components/dashboard/components/Header.js +9 -26
- package/dist/components/dashboard/components/LeftDrawer.js +3 -1
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +1 -1
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.css +7 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +189 -79
- package/dist/components/footer/Footer.js +6 -18
- package/dist/components/form/AddressSearch.js +32 -66
- package/dist/components/form/AutoComplete.js +161 -0
- package/dist/components/form/BaseField.js +89 -107
- package/dist/components/form/DatePicker.js +8 -23
- package/dist/components/form/FieldSet.js +161 -191
- package/dist/components/form/Form.css +1 -1
- package/dist/components/form/Form.js +153 -479
- package/dist/components/form/GridField.js +46 -146
- package/dist/components/form/IconField.js +35 -0
- package/dist/components/form/ImageEditor.js +22 -60
- package/dist/components/form/LookupField.js +8 -29
- package/dist/components/form/MultiFileUploadField.js +187 -0
- package/dist/components/form/RadioGroup.js +10 -26
- package/dist/components/form/Section.js +40 -91
- package/dist/components/form/SelectItem.js +14 -33
- package/dist/components/form/SignatureTemplateDesignerField.js +0 -1
- package/dist/components/form/Switch.js +53 -0
- package/dist/components/form/TextField.js +10 -17
- package/dist/components/form/TimePicker.js +8 -1
- package/dist/components/form/TransferList.css +2 -2
- package/dist/components/form/TransferList.js +67 -125
- package/dist/components/form/UploadField.js +132 -177
- package/dist/components/form/fieldset.css +8 -0
- package/dist/components/grid/GridContainer.js +5 -9
- package/dist/components/grid/GridItem.js +5 -9
- package/dist/components/layout/CollapsiblePanel.js +11 -33
- package/dist/components/layout/Layout.js +228 -290
- package/dist/components/layout/VC.css +17 -0
- package/dist/components/layout/View.css +18 -1
- package/dist/components/layout/View.js +80 -200
- package/dist/components/layout/ViewContainer.css +3 -0
- package/dist/components/layout/ViewContainer.js +59 -0
- package/dist/components/layout/ViewPort.js +50 -80
- package/dist/components/layout/Window.css +18 -0
- package/dist/components/layout/Window.js +287 -0
- package/dist/components/layout/WindowViewPort.js +71 -0
- package/dist/components/loader.css +1 -1
- package/dist/components/media/ClosablePanel.css +37 -0
- package/dist/components/media/ClosablePanel.js +53 -0
- package/dist/components/media/LobbyWaitingList.js +91 -0
- package/dist/components/media/MediaSoupHelper.js +223 -0
- package/dist/components/media/Recorder.js +235 -0
- package/dist/components/media/SideBarContent.css +54 -0
- package/dist/components/media/SideBarContent.js +46 -0
- package/dist/components/media/SocketRequest.js +20 -0
- package/dist/components/media/SocketResponse.js +16 -0
- package/dist/components/media/Timer.css +30 -0
- package/dist/components/media/Timer.js +88 -0
- package/dist/components/media/Toolbar.css +35 -0
- package/dist/components/media/Toolbar.js +494 -0
- package/dist/components/media/Tracks.js +39 -0
- package/dist/components/media/TrainingRoom.js +608 -0
- package/dist/components/media/Transports.js +35 -0
- package/dist/components/media/VCEventManager.js +74 -0
- package/dist/components/media/VCEventType.js +164 -0
- package/dist/components/media/VCParticipantList.css +72 -0
- package/dist/components/media/VCParticipantList.js +56 -0
- package/dist/components/media/VCParticipantListItem.css +73 -0
- package/dist/components/media/VCParticipantListItem.js +319 -0
- package/dist/components/media/VCRoom.css +42 -0
- package/dist/components/media/VCRoom.js +90 -0
- package/dist/components/media/VCRoomParticipant.css +25 -0
- package/dist/components/media/VCRoomParticipant.js +808 -0
- package/dist/components/media/VCRoomRecorder.js +223 -0
- package/dist/components/media/VCRoomWorkspace.css +86 -0
- package/dist/components/media/VCRoomWorkspace.js +666 -0
- package/dist/components/media/Video.css +4 -0
- package/dist/components/media/Video.js +131 -0
- package/dist/components/media/VideoPlayer.css +10 -0
- package/dist/components/media/VideoPlayer.js +86 -0
- package/dist/components/media/chat/ChatRoom.js +926 -0
- package/dist/components/media/chat/ChatRoomItem.js +83 -0
- package/dist/components/media/chat/ChatRoomList.js +78 -0
- package/dist/components/media/chat/ChatRooms.scss +567 -0
- package/dist/components/menu/CollapsibleMenu.js +2 -19
- package/dist/components/menu/MenuBars.js +6 -33
- package/dist/components/menu/MenuButton.js +27 -39
- package/dist/components/menu/MenuItem.js +3 -20
- package/dist/components/menu/MenuLink.js +22 -13
- package/dist/components/navbars/AuthNavbar.js +5 -18
- package/dist/components/navbars/HomeNavbar.js +5 -7
- package/dist/components/navbars/PortalNavbar.js +7 -25
- package/dist/components/signatures/AgilitySignaturePanel.js +38 -104
- package/dist/components/signatures/AlertItem.js +3 -24
- package/dist/components/signatures/DocumentContainer.js +47 -134
- package/dist/components/signatures/ImageSignatureInput.js +11 -38
- package/dist/components/signatures/MenuButton.js +1 -16
- package/dist/components/signatures/Prompt.js +3 -24
- package/dist/components/signatures/ResponsiveTable.js +42 -83
- package/dist/components/signatures/SearchView.js +13 -50
- package/dist/components/signatures/SignatorySearch.js +83 -99
- package/dist/components/signatures/SignatorySearchForm.js +11 -17
- package/dist/components/signatures/SignatureInput.js +18 -47
- package/dist/components/signatures/SignatureInputProps.js +18 -60
- package/dist/components/signatures/SignatureTemplateDesigner.js +151 -239
- package/dist/components/signatures/Toolbar.js +7 -34
- package/dist/components/signatures/ViewUtils.js +2 -6
- package/dist/components/typography/Danger.js +3 -1
- package/dist/components/typography/Info.js +3 -1
- package/dist/components/typography/Link.js +6 -2
- package/dist/event/ActionHandlers.js +6 -6
- package/dist/event/EventType.js +7 -1
- package/dist/event/LoadDataActionHandler.js +1 -1
- package/dist/event/Observable.js +80 -174
- package/dist/event/RouteActionHandler.js +74 -31
- package/dist/event/ServiceCallActionHandler.js +36 -24
- package/dist/event/SignalGraphActionHandler.js +2 -2
- package/dist/js/Addresses.js +10 -8
- package/dist/js/Calendar.js +220 -0
- package/dist/js/Media.js +157 -0
- package/dist/redux/store/ConfigureStore.js +3 -9
- package/dist/redux/store/DashboardStore.js +42 -94
- package/dist/redux/store/SecurityStore.js +15 -50
- package/dist/view/Dashboard.js +256 -171
- package/dist/view/Views.js +30 -0
- package/dist/view/security/ChangePasswordBasic.js +29 -80
- package/dist/view/security/ForgotPassword.js +13 -46
- package/dist/view/security/ForgotPasswordBasic.js +12 -45
- package/dist/view/security/Login.js +15 -51
- package/dist/view/security/LoginBasic.js +13 -46
- package/dist/view/security/LoginBusinessPortal.js +12 -45
- package/dist/view/security/ResetPassword.js +13 -51
- package/dist/view/security/ResetPasswordBasic.js +27 -75
- package/dist/view/security/Security.js +1 -0
- package/package.json +31 -25
- package/README.md +0 -1623
- package/dist/components/dashboard/BasicApp.js +0 -140
- package/dist/components/navbars/NavbarLinks.js +0 -212
- package/dist/components/signatures/OLD.js +0 -1138
- package/gulpfile.js +0 -77
|
@@ -21,28 +21,10 @@ var _Utils = _interopRequireDefault(require("../Utils"));
|
|
|
21
21
|
|
|
22
22
|
var _styles = require("@material-ui/core/styles");
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _Icon = _interopRequireDefault(require("./Icon"));
|
|
25
25
|
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
27
|
|
|
28
|
-
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; } } }; }
|
|
29
|
-
|
|
30
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
31
|
-
|
|
32
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
33
|
-
|
|
34
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
35
|
-
|
|
36
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
37
|
-
|
|
38
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
39
|
-
|
|
40
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
41
|
-
|
|
42
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
43
|
-
|
|
44
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
45
|
-
|
|
46
28
|
const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
47
29
|
spacer: {
|
|
48
30
|
borderLeft: '2px solid' + theme.palette.secondary.main,
|
|
@@ -66,29 +48,38 @@ const StyledToggleButtonGroup = (0, _core.withStyles)(theme => ({
|
|
|
66
48
|
const Toolbar = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
67
49
|
const classes = useStyles();
|
|
68
50
|
|
|
69
|
-
const
|
|
70
|
-
_React$useState2 = _slicedToArray(_React$useState, 1),
|
|
71
|
-
itemHandles = _React$useState2[0];
|
|
51
|
+
const [itemHandles] = _react.default.useState([]);
|
|
72
52
|
|
|
73
|
-
const
|
|
74
|
-
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
75
|
-
alignment = _React$useState4[0];
|
|
53
|
+
const [alignment] = _react.default.useState(_Utils.default.getComponentAttribute(props.config, 'alignment', 'left'));
|
|
76
54
|
|
|
77
|
-
const
|
|
78
|
-
_React$useState6 = _slicedToArray(_React$useState5, 1),
|
|
79
|
-
loadedComponents = _React$useState6[0];
|
|
55
|
+
const [config, setConfig] = _react.default.useState(null);
|
|
80
56
|
|
|
81
|
-
const mutex = new _asyncMutex.Mutex();
|
|
82
57
|
let itemKeyCounter = 0;
|
|
83
58
|
let sectionKeyCounter = 0;
|
|
84
59
|
|
|
85
60
|
_react.default.useEffect(() => {
|
|
86
61
|
props.handle.api = api();
|
|
62
|
+
});
|
|
87
63
|
|
|
88
|
-
|
|
64
|
+
_react.default.useEffect(() => {
|
|
65
|
+
if (config) {
|
|
66
|
+
props.handle.api = api();
|
|
89
67
|
|
|
90
|
-
|
|
91
|
-
|
|
68
|
+
let parsedConfig = _Utils.default.parseConfig(config, props.viewId);
|
|
69
|
+
|
|
70
|
+
_Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, props.handle, props.viewId);
|
|
71
|
+
|
|
72
|
+
_Observable.default.addSystemSubscriptions(props.viewId, parsedConfig);
|
|
73
|
+
}
|
|
74
|
+
}, [config]);
|
|
75
|
+
|
|
76
|
+
_react.default.useEffect(() => {
|
|
77
|
+
var _props$tableRow$id;
|
|
78
|
+
|
|
79
|
+
setConfig(props.tableRow ? { ...props.config,
|
|
80
|
+
id: props.config.id + '_' + ((_props$tableRow$id = props.tableRow.id) === null || _props$tableRow$id === void 0 ? void 0 : _props$tableRow$id.replaceAll('-', ''))
|
|
81
|
+
} : props.config);
|
|
82
|
+
}, []);
|
|
92
83
|
|
|
93
84
|
function createItemHandle() {
|
|
94
85
|
let handle = {};
|
|
@@ -96,6 +87,19 @@ const Toolbar = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
96
87
|
return handle;
|
|
97
88
|
}
|
|
98
89
|
|
|
90
|
+
function getDefaultStyle(item) {
|
|
91
|
+
var _item$attributes, _item$attributes$styl, _item$attributes2, _item$attributes2$sty, _item$attributes3, _item$attributes3$sty;
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
height: item.type === 'toolbarSpacer' ? (_item$attributes = item.attributes) !== null && _item$attributes !== void 0 && (_item$attributes$styl = _item$attributes.style) !== null && _item$attributes$styl !== void 0 && _item$attributes$styl.height ? (_item$attributes2 = item.attributes) === null || _item$attributes2 === void 0 ? void 0 : (_item$attributes2$sty = _item$attributes2.style) === null || _item$attributes2$sty === void 0 ? void 0 : _item$attributes2$sty.height : '100%' : null,
|
|
95
|
+
width: item.type === 'toolbarSpacer' ? '2' ? (_item$attributes3 = item.attributes) === null || _item$attributes3 === void 0 ? void 0 : (_item$attributes3$sty = _item$attributes3.style) === null || _item$attributes3$sty === void 0 ? void 0 : _item$attributes3$sty.width : '100%' : null,
|
|
96
|
+
minWidth: item.type === 'toolbarSpacer' ? '2' : _Utils.default.isNull(item.attributes) || _Utils.default.isNull(item.attributes['label']) ? '60px' : null,
|
|
97
|
+
marginLeft: item.type === 'toolbarSpacer' ? '4px' : 0,
|
|
98
|
+
marginRight: 4,
|
|
99
|
+
marginTop: item.type === 'toolbarSpacer' ? '6px' : 0
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
99
103
|
function renderItem(item, defaultId) {
|
|
100
104
|
if (_Utils.default.isNull(item.id)) {
|
|
101
105
|
item.id = defaultId;
|
|
@@ -105,149 +109,42 @@ const Toolbar = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
105
109
|
config: item,
|
|
106
110
|
handle: createItemHandle(),
|
|
107
111
|
ref: /*#__PURE__*/_react.default.createRef(),
|
|
108
|
-
|
|
109
|
-
|
|
112
|
+
tableRow: props.tableRow,
|
|
113
|
+
viewId: props.viewId
|
|
110
114
|
}) : item.type === 'button' ? /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
111
115
|
config: item,
|
|
112
116
|
handle: createItemHandle(),
|
|
113
117
|
ref: /*#__PURE__*/_react.default.createRef(),
|
|
114
|
-
|
|
115
|
-
|
|
118
|
+
tableRow: props.tableRow,
|
|
119
|
+
viewId: props.viewId
|
|
116
120
|
}) : item.type === 'toolbarSpacer' ? /*#__PURE__*/_react.default.createElement("div", {
|
|
117
121
|
className: classes.spacer
|
|
118
|
-
}, "\xA0") : /*#__PURE__*/_react.default.createElement(
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
function loadCompleteHandler(_x) {
|
|
122
|
-
return _loadCompleteHandler.apply(this, arguments);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
function _loadCompleteHandler() {
|
|
126
|
-
_loadCompleteHandler = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(id) {
|
|
127
|
-
var release, allLoaded, _iterator, _step, section, _iterator2, _step2, item;
|
|
128
|
-
|
|
129
|
-
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
130
|
-
while (1) switch (_context.prev = _context.next) {
|
|
131
|
-
case 0:
|
|
132
|
-
_context.next = 2;
|
|
133
|
-
return mutex.acquire();
|
|
134
|
-
|
|
135
|
-
case 2:
|
|
136
|
-
release = _context.sent;
|
|
137
|
-
_context.prev = 3;
|
|
138
|
-
loadedComponents.push(id);
|
|
139
|
-
allLoaded = true;
|
|
140
|
-
|
|
141
|
-
if (!(_Utils.default.isNull(props.config.sections) || _Utils.default.isNull(props.config.sections.length === 0))) {
|
|
142
|
-
_context.next = 9;
|
|
143
|
-
break;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
console.error("Toolbar without sections");
|
|
147
|
-
return _context.abrupt("return");
|
|
148
|
-
|
|
149
|
-
case 9:
|
|
150
|
-
_iterator = _createForOfIteratorHelper(props.config.sections);
|
|
151
|
-
_context.prev = 10;
|
|
152
|
-
|
|
153
|
-
_iterator.s();
|
|
154
|
-
|
|
155
|
-
case 12:
|
|
156
|
-
if ((_step = _iterator.n()).done) {
|
|
157
|
-
_context.next = 21;
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
section = _step.value;
|
|
162
|
-
|
|
163
|
-
if (!(_Utils.default.isNull(section.items) || _Utils.default.isNull(section.items.length === 0))) {
|
|
164
|
-
_context.next = 17;
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
console.error("Toolbar section without items");
|
|
169
|
-
return _context.abrupt("return");
|
|
170
|
-
|
|
171
|
-
case 17:
|
|
172
|
-
_iterator2 = _createForOfIteratorHelper(section.items);
|
|
173
|
-
|
|
174
|
-
try {
|
|
175
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
176
|
-
item = _step2.value;
|
|
177
|
-
|
|
178
|
-
if (!loadedComponents.includes(item.id) && item.type !== 'toolbarSpacer') {
|
|
179
|
-
allLoaded = false;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
} catch (err) {
|
|
183
|
-
_iterator2.e(err);
|
|
184
|
-
} finally {
|
|
185
|
-
_iterator2.f();
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
case 19:
|
|
189
|
-
_context.next = 12;
|
|
190
|
-
break;
|
|
191
|
-
|
|
192
|
-
case 21:
|
|
193
|
-
_context.next = 26;
|
|
194
|
-
break;
|
|
195
|
-
|
|
196
|
-
case 23:
|
|
197
|
-
_context.prev = 23;
|
|
198
|
-
_context.t0 = _context["catch"](10);
|
|
199
|
-
|
|
200
|
-
_iterator.e(_context.t0);
|
|
201
|
-
|
|
202
|
-
case 26:
|
|
203
|
-
_context.prev = 26;
|
|
204
|
-
|
|
205
|
-
_iterator.f();
|
|
206
|
-
|
|
207
|
-
return _context.finish(26);
|
|
208
|
-
|
|
209
|
-
case 29:
|
|
210
|
-
if (allLoaded === true) {
|
|
211
|
-
props.loadCompleteHandler(props.config.id);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
case 30:
|
|
215
|
-
_context.prev = 30;
|
|
216
|
-
release();
|
|
217
|
-
return _context.finish(30);
|
|
218
|
-
|
|
219
|
-
case 33:
|
|
220
|
-
case "end":
|
|
221
|
-
return _context.stop();
|
|
222
|
-
}
|
|
223
|
-
}, _callee, null, [[3,, 30, 33], [10, 23, 26, 29]]);
|
|
224
|
-
}));
|
|
225
|
-
return _loadCompleteHandler.apply(this, arguments);
|
|
122
|
+
}, "\xA0") : item.type === 'icon' ? /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
123
|
+
id: _Utils.default.getComponentAttribute(item, 'iconId', null)
|
|
124
|
+
}) : /*#__PURE__*/_react.default.createElement("div", null, "Unsupported toolbar item type " + item.type);
|
|
226
125
|
}
|
|
227
126
|
|
|
228
127
|
function renderSection(section, counter) {
|
|
229
128
|
let itemCounter = 0;
|
|
230
129
|
return /*#__PURE__*/_react.default.createElement(StyledToggleButtonGroup, {
|
|
231
130
|
size: "small",
|
|
232
|
-
value: alignment,
|
|
233
131
|
exclusive: true,
|
|
234
132
|
key: sectionKeyCounter++,
|
|
235
|
-
"aria-label": "text alignment"
|
|
133
|
+
"aria-label": "text alignment",
|
|
134
|
+
style: _Utils.default.mergeStyles({
|
|
135
|
+
minWidth: '128px',
|
|
136
|
+
height: '100%',
|
|
137
|
+
marginLeft: 0,
|
|
138
|
+
marginRight: 0
|
|
139
|
+
}, section)
|
|
236
140
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
237
141
|
className: "row"
|
|
238
|
-
}, section.items.map(item => {
|
|
239
|
-
return /*#__PURE__*/_react.default.createElement("
|
|
240
|
-
style: {
|
|
241
|
-
margin: '4px'
|
|
242
|
-
},
|
|
243
|
-
key: itemKeyCounter++
|
|
244
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
142
|
+
}, section.items.map((item, index) => {
|
|
143
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
245
144
|
className: 'col-*-*',
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}
|
|
250
|
-
}, renderItem(item, 'toolbar_item_' + counter + '_' + itemCounter++)));
|
|
145
|
+
key: index,
|
|
146
|
+
style: getDefaultStyle(item)
|
|
147
|
+
}, renderItem(item, 'toolbar_item_' + counter + '_' + itemCounter++));
|
|
251
148
|
})));
|
|
252
149
|
}
|
|
253
150
|
|
|
@@ -255,7 +152,11 @@ const Toolbar = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
255
152
|
return {
|
|
256
153
|
get id() {
|
|
257
154
|
// Toolbar
|
|
258
|
-
return props.config.id;
|
|
155
|
+
return config ? config.id : props.config.id;
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
get tableRow() {
|
|
159
|
+
return props.tableRow;
|
|
259
160
|
},
|
|
260
161
|
|
|
261
162
|
getChildren: () => {
|
|
@@ -267,18 +168,12 @@ const Toolbar = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
267
168
|
function render(toolbar) {
|
|
268
169
|
let counter = 0;
|
|
269
170
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
270
|
-
className: "row",
|
|
271
|
-
ref: ref
|
|
272
|
-
|
|
273
|
-
padding: '0 0 8px 0',
|
|
274
|
-
width: '100%',
|
|
275
|
-
textAlign: _Utils.default.getComponentAttribute(toolbar, 'align', null),
|
|
276
|
-
display: "inline-block"
|
|
277
|
-
}
|
|
278
|
-
}, toolbar.sections.map(section => {
|
|
171
|
+
className: "row no-margin no-padding",
|
|
172
|
+
ref: ref
|
|
173
|
+
}, toolbar.sections.map((section, index) => {
|
|
279
174
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
280
|
-
className: "col
|
|
281
|
-
key:
|
|
175
|
+
className: "col no-margin no-padding",
|
|
176
|
+
key: index,
|
|
282
177
|
style: {
|
|
283
178
|
textAlign: section.halign ? section.halign.toLowerCase() : null
|
|
284
179
|
}
|
|
@@ -286,21 +181,11 @@ const Toolbar = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
286
181
|
}));
|
|
287
182
|
}
|
|
288
183
|
|
|
289
|
-
function getBorderBottom() {
|
|
290
|
-
let border = _Utils.default.getComponentAttribute(props.config, 'border', null);
|
|
291
|
-
|
|
292
|
-
if (border === 'none') {
|
|
293
|
-
return 'none';
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
return _Utils.default.getComponentAttribute(props.config, 'borderBottom', '1px solid #e2e2e2');
|
|
297
|
-
}
|
|
298
|
-
|
|
299
184
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
300
185
|
ref: ref,
|
|
301
186
|
style: _Utils.default.mergeStyles({
|
|
302
|
-
borderBottom:
|
|
303
|
-
|
|
187
|
+
borderBottom: '1px solid #e2e2e2',
|
|
188
|
+
padding: '8px 0 16px 0'
|
|
304
189
|
}, props.config)
|
|
305
190
|
}, render(props.config));
|
|
306
191
|
});
|
package/dist/components/Tree.js
CHANGED
|
@@ -33,24 +33,10 @@ var _Observable = _interopRequireDefault(require("../event/Observable"));
|
|
|
33
33
|
|
|
34
34
|
var _EventType = _interopRequireDefault(require("../event/EventType"));
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
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
|
-
|
|
54
40
|
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); }
|
|
55
41
|
|
|
56
42
|
// web.cjs is required for IE 11 support
|
|
@@ -138,40 +124,31 @@ const useStyles = (0, _styles.makeStyles)({
|
|
|
138
124
|
const Tree = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
139
125
|
const classes = useStyles();
|
|
140
126
|
|
|
141
|
-
const
|
|
142
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
143
|
-
root = _React$useState2[0],
|
|
144
|
-
setRoot = _React$useState2[1];
|
|
127
|
+
const [root, setRoot] = _react.default.useState(null);
|
|
145
128
|
|
|
146
|
-
const
|
|
147
|
-
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
148
|
-
selectedRows = _React$useState4[0];
|
|
129
|
+
const [selectedRows] = _react.default.useState([]);
|
|
149
130
|
|
|
150
|
-
const
|
|
151
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
152
|
-
expanded = _React$useState6[0],
|
|
153
|
-
setExpanded = _React$useState6[1];
|
|
131
|
+
const [expanded, setExpanded] = _react.default.useState([]);
|
|
154
132
|
|
|
155
|
-
const
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
133
|
+
const [initializing, setInitializing] = _react.default.useState(true);
|
|
134
|
+
|
|
135
|
+
_react.default.useEffect(() => {
|
|
136
|
+
props.handle.api = api();
|
|
137
|
+
});
|
|
159
138
|
|
|
160
139
|
_react.default.useEffect(() => {
|
|
161
140
|
props.handle.api = api();
|
|
162
141
|
|
|
163
|
-
|
|
164
|
-
let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
142
|
+
let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
165
143
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
144
|
+
_Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, () => {
|
|
145
|
+
return ref;
|
|
146
|
+
}, props.viewId);
|
|
169
147
|
|
|
170
|
-
|
|
148
|
+
_Observable.default.addSystemSubscriptions(props.viewId, parsedConfig);
|
|
171
149
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
});
|
|
150
|
+
setInitializing(false);
|
|
151
|
+
}, []);
|
|
175
152
|
|
|
176
153
|
function loadData(eventConfig, componentConfig) {
|
|
177
154
|
let service = !_Utils.default.isNull(componentConfig.dataService) ? componentConfig.dataService : eventConfig !== null ? eventConfig.dataService : null;
|
|
@@ -179,14 +156,12 @@ const Tree = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
179
156
|
if (!_Utils.default.isNull(service)) {
|
|
180
157
|
(0, _RestUtils.invokeRpc)(service, props.handle, props.viewId, result => {
|
|
181
158
|
try {
|
|
182
|
-
props.loadCompleteHandler(props.config.id);
|
|
183
|
-
|
|
184
159
|
if (result.data) {
|
|
185
160
|
expand(result.data);
|
|
186
161
|
setRoot(result.data);
|
|
187
162
|
}
|
|
188
163
|
} catch (e) {
|
|
189
|
-
|
|
164
|
+
console.error(e);
|
|
190
165
|
|
|
191
166
|
_Utils.default.publishSystemErrorMessage(props.viewId);
|
|
192
167
|
}
|
|
@@ -194,11 +169,9 @@ const Tree = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
194
169
|
props.console.error(e);
|
|
195
170
|
|
|
196
171
|
_Utils.default.publishSystemErrorMessage(props.viewId);
|
|
197
|
-
}, parameter => {
|
|
198
|
-
props.loadCompleteHandler(props.config.id);
|
|
199
|
-
});
|
|
172
|
+
}, parameter => {});
|
|
200
173
|
} else if (!_Utils.default.isNull(componentConfig.value)) {
|
|
201
|
-
let value =
|
|
174
|
+
let value = _ApplicationManager.default.isExpression(componentConfig.value) ? _ApplicationManager.default.resolveExpressionValue(componentConfig.value) : componentConfig.value;
|
|
202
175
|
}
|
|
203
176
|
}
|
|
204
177
|
|
|
@@ -224,9 +197,9 @@ const Tree = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
224
197
|
if (!_Utils.default.isNull(root)) {
|
|
225
198
|
rootReference = {};
|
|
226
199
|
|
|
227
|
-
if (!_Utils.default.isNull(root
|
|
228
|
-
rootReference.id = root.
|
|
229
|
-
rootReference.label = root.
|
|
200
|
+
if (!_Utils.default.isNull(root)) {
|
|
201
|
+
rootReference.id = root.id;
|
|
202
|
+
rootReference.label = root.name;
|
|
230
203
|
} else {
|
|
231
204
|
rootReference.id = root.id;
|
|
232
205
|
rootReference.label = root.name;
|
|
@@ -255,12 +228,12 @@ const Tree = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
255
228
|
|
|
256
229
|
const render = item => {
|
|
257
230
|
return /*#__PURE__*/_react.default.createElement(StyledTreeItem, {
|
|
258
|
-
nodeId: item.
|
|
259
|
-
label: item.
|
|
260
|
-
key: item.
|
|
231
|
+
nodeId: item.id.toString(),
|
|
232
|
+
label: item.name,
|
|
233
|
+
key: item.id,
|
|
261
234
|
onLabelClick: e => e.preventDefault(),
|
|
262
235
|
onClick: () => {
|
|
263
|
-
handleSelectionChange(item.
|
|
236
|
+
handleSelectionChange(item.id, item.name);
|
|
264
237
|
}
|
|
265
238
|
}, !_Utils.default.isNull(item.children) && item.children.length > 0 ? item.children.map(child => {
|
|
266
239
|
return render(child);
|
|
@@ -268,21 +241,11 @@ const Tree = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
268
241
|
};
|
|
269
242
|
|
|
270
243
|
const expand = item => {
|
|
271
|
-
expanded.push("".concat(item.
|
|
244
|
+
expanded.push("".concat(item.id));
|
|
272
245
|
|
|
273
246
|
if (!_Utils.default.isNull(item.children)) {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
try {
|
|
278
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
279
|
-
const child = _step.value;
|
|
280
|
-
expand(child);
|
|
281
|
-
}
|
|
282
|
-
} catch (err) {
|
|
283
|
-
_iterator.e(err);
|
|
284
|
-
} finally {
|
|
285
|
-
_iterator.f();
|
|
247
|
+
for (const child of item.children) {
|
|
248
|
+
expand(child);
|
|
286
249
|
}
|
|
287
250
|
}
|
|
288
251
|
};
|
|
@@ -19,30 +19,26 @@ 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
|
-
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; }
|
|
23
|
-
|
|
24
|
-
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; }
|
|
25
|
-
|
|
26
22
|
const useStyles = (0, _styles.makeStyles)(_cardStyle.default);
|
|
27
23
|
|
|
28
24
|
function Card(props) {
|
|
29
25
|
const classes = useStyles();
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
26
|
+
const {
|
|
27
|
+
className,
|
|
28
|
+
children,
|
|
29
|
+
plain,
|
|
30
|
+
profile,
|
|
31
|
+
blog,
|
|
32
|
+
raised,
|
|
33
|
+
background,
|
|
34
|
+
pricing,
|
|
35
|
+
color,
|
|
36
|
+
product,
|
|
37
|
+
testimonial,
|
|
38
|
+
chart,
|
|
39
|
+
login,
|
|
40
|
+
...rest
|
|
41
|
+
} = props;
|
|
46
42
|
const cardClasses = (0, _classnames.default)({
|
|
47
43
|
[classes.card]: true,
|
|
48
44
|
[classes.cardPlain]: plain,
|
|
@@ -19,23 +19,19 @@ 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
|
-
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; }
|
|
23
|
-
|
|
24
|
-
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; }
|
|
25
|
-
|
|
26
22
|
const useStyles = (0, _styles.makeStyles)(_cardAvatarStyle.default);
|
|
27
23
|
|
|
28
24
|
function CardAvatar(props) {
|
|
29
25
|
const classes = useStyles();
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
26
|
+
const {
|
|
27
|
+
children,
|
|
28
|
+
className,
|
|
29
|
+
plain,
|
|
30
|
+
profile,
|
|
31
|
+
testimonial,
|
|
32
|
+
testimonialFooter,
|
|
33
|
+
...rest
|
|
34
|
+
} = props;
|
|
39
35
|
const cardAvatarClasses = (0, _classnames.default)({
|
|
40
36
|
[classes.cardAvatar]: true,
|
|
41
37
|
[classes.cardAvatarProfile]: profile,
|
|
@@ -19,27 +19,23 @@ 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
|
-
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; }
|
|
23
|
-
|
|
24
|
-
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; }
|
|
25
|
-
|
|
26
22
|
const useStyles = (0, _styles.makeStyles)(_cardBodyStyle.default);
|
|
27
23
|
|
|
28
24
|
function CardBody(props) {
|
|
29
25
|
const classes = useStyles();
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
26
|
+
const {
|
|
27
|
+
className,
|
|
28
|
+
children,
|
|
29
|
+
background,
|
|
30
|
+
plain,
|
|
31
|
+
formHorizontal,
|
|
32
|
+
pricing,
|
|
33
|
+
signup,
|
|
34
|
+
color,
|
|
35
|
+
profile,
|
|
36
|
+
calendar,
|
|
37
|
+
...rest
|
|
38
|
+
} = props;
|
|
43
39
|
const cardBodyClasses = (0, _classnames.default)({
|
|
44
40
|
[classes.cardBody]: true,
|
|
45
41
|
[classes.cardBodyBackground]: background,
|