@agilemotion/oui-react-js 1.3.7 → 1.3.9
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 +161 -284
- package/dist/BasicApp.js +1 -1
- package/dist/BasicAppHome.js +17 -4
- package/dist/BusinessPortalApp.js +4 -4
- package/dist/BusinessPortalAppHome.js +10 -39
- package/dist/DynamicJS.js +20 -52
- package/dist/RestUtils.js +86 -111
- package/dist/Utils.js +36 -30
- 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/_variables.scss +1 -1
- package/dist/components/AlertBar.js +39 -80
- package/dist/components/AlertItem.js +4 -26
- package/dist/components/Button.js +24 -36
- package/dist/components/Calendar.js +478 -0
- package/dist/components/Calender.css +244 -0
- package/dist/components/ConfirmationDialog.js +5 -29
- package/dist/components/DataGrid.js +169 -338
- package/dist/components/DataGridColumn.js +5 -28
- package/dist/components/DataGridFilter.js +46 -114
- package/dist/components/DataGridHeading.js +11 -19
- package/dist/components/Dialog.js +27 -121
- package/dist/components/DocumentViewer.js +15 -35
- package/dist/components/DocumentViewerComponent.js +2 -20
- package/dist/components/FileThumb.js +115 -0
- package/dist/components/Graph.js +25 -75
- package/dist/components/GraphNode.js +4 -21
- package/dist/components/HtmlPanel.js +59 -78
- package/dist/components/Icon.js +99 -1
- package/dist/components/LoadingIndicator.js +4 -4
- package/dist/components/LottieIcon.js +134 -0
- package/dist/components/PopupView.js +2 -20
- 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 +30 -56
- package/dist/components/TabPage.js +6 -9
- package/dist/components/TabPanel.js +41 -98
- package/dist/components/TableCellContent.js +30 -38
- package/dist/components/TemplateDesigner.css +0 -1
- package/dist/components/TemplateDesigner.js +107 -151
- package/dist/components/TemplateItemEventHandler.js +33 -100
- package/dist/components/TemplateTable.js +6 -42
- package/dist/components/TitleBar.js +35 -52
- package/dist/components/Toolbar.js +33 -179
- package/dist/components/Tree.js +27 -64
- 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 +81 -158
- package/dist/components/dashboard/BusinessPortalAppDashboard.js +33 -79
- package/dist/components/dashboard/components/Header.js +8 -25
- 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.js +143 -36
- package/dist/components/footer/Footer.js +6 -18
- package/dist/components/form/AddressSearch.js +32 -66
- package/dist/components/form/AutoComplete.js +160 -0
- package/dist/components/form/BaseField.js +66 -96
- package/dist/components/form/DatePicker.js +3 -21
- package/dist/components/form/FieldSet.js +158 -180
- package/dist/components/form/Form.css +1 -1
- package/dist/components/form/Form.js +137 -471
- package/dist/components/form/GridField.js +46 -146
- package/dist/components/form/IconField.js +35 -0
- package/dist/components/form/ImageEditor.js +19 -57
- package/dist/components/form/LookupField.js +8 -29
- package/dist/components/form/MultiFileUploadField.js +186 -0
- package/dist/components/form/RadioGroup.js +1 -16
- package/dist/components/form/Section.js +31 -92
- package/dist/components/form/SelectItem.js +14 -33
- package/dist/components/form/SignatureTemplateDesignerField.js +4 -2
- package/dist/components/form/Switch.js +53 -0
- package/dist/components/form/TextField.js +10 -17
- package/dist/components/form/TimePicker.js +7 -1
- package/dist/components/form/TransferList.css +2 -2
- package/dist/components/form/TransferList.js +67 -125
- package/dist/components/form/UploadField.js +27 -79
- 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 +175 -290
- package/dist/components/layout/VC.css +17 -0
- package/dist/components/layout/View.css +17 -1
- package/dist/components/layout/View.js +77 -194
- 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 +20 -0
- package/dist/components/media/Toolbar.js +470 -0
- package/dist/components/media/Tracks.js +39 -0
- package/dist/components/media/TrainingRoom.js +531 -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 +806 -0
- package/dist/components/media/VCRoomWorkspace.css +86 -0
- package/dist/components/media/VCRoomWorkspace.js +653 -0
- package/dist/components/media/Video.css +4 -0
- package/dist/components/media/Video.js +131 -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 +7 -35
- package/dist/components/menu/MenuItem.js +3 -20
- package/dist/components/menu/MenuLink.js +18 -12
- package/dist/components/navbars/AuthNavbar.js +5 -18
- package/dist/components/navbars/HomeNavbar.js +3 -5
- package/dist/components/navbars/PortalNavbar.js +4 -22
- package/dist/components/signatures/AgilitySignaturePanel.js +35 -101
- package/dist/components/signatures/AlertItem.js +3 -24
- package/dist/components/signatures/DocumentContainer.js +47 -135
- package/dist/components/signatures/ImageSignatureInput.js +8 -35
- package/dist/components/signatures/MenuButton.js +1 -16
- package/dist/components/signatures/Prompt.js +3 -24
- package/dist/components/signatures/ResponsiveTable.js +75 -96
- package/dist/components/signatures/SearchView.js +14 -50
- package/dist/components/signatures/SignatorySearch.js +83 -98
- package/dist/components/signatures/SignatorySearchForm.js +11 -17
- package/dist/components/signatures/SignatureInput.js +15 -44
- package/dist/components/signatures/SignatureInputProps.js +20 -60
- package/dist/components/signatures/SignatureTemplateDesigner.js +148 -235
- 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 +3 -3
- package/dist/event/EventType.js +7 -1
- package/dist/event/LoadDataActionHandler.js +1 -1
- package/dist/event/Observable.js +56 -168
- package/dist/event/RouteActionHandler.js +45 -11
- package/dist/event/ServiceCallActionHandler.js +34 -24
- package/dist/js/Addresses.js +10 -8
- 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 +242 -163
- package/dist/view/security/ChangePasswordBasic.js +23 -76
- package/dist/view/security/ForgotPassword.js +9 -42
- package/dist/view/security/ForgotPasswordBasic.js +8 -41
- package/dist/view/security/Login.js +11 -47
- package/dist/view/security/LoginBasic.js +8 -41
- package/dist/view/security/LoginBusinessPortal.js +8 -41
- package/dist/view/security/ResetPassword.js +9 -47
- package/dist/view/security/ResetPasswordBasic.js +21 -71
- package/dist/view/security/Security.js +1 -0
- package/package.json +29 -13
- 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
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
position: relative;
|
|
10
10
|
width: 100%;
|
|
11
11
|
min-height: 1px; // Prevent columns from collapsing when empty
|
|
12
|
-
padding-right: ($gutter
|
|
13
|
-
padding-left: ($gutter
|
|
12
|
+
padding-right: ($gutter * 0.5);
|
|
13
|
+
padding-left: ($gutter * 0.5);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
@each $breakpoint in map-keys($breakpoints) {
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
//
|
|
3
3
|
// Generate semantic grid columns with these mixins.
|
|
4
4
|
|
|
5
|
+
@use "sass:math";
|
|
6
|
+
|
|
5
7
|
@mixin make-container() {
|
|
6
8
|
width: 100%;
|
|
7
|
-
padding-right: ($grid-gutter-width
|
|
8
|
-
padding-left: ($grid-gutter-width
|
|
9
|
+
padding-right: ($grid-gutter-width * 0.5);
|
|
10
|
+
padding-left: ($grid-gutter-width * 0.5);
|
|
9
11
|
margin-right: auto;
|
|
10
12
|
margin-left: auto;
|
|
11
13
|
}
|
|
@@ -23,8 +25,8 @@
|
|
|
23
25
|
@mixin make-row() {
|
|
24
26
|
display: flex;
|
|
25
27
|
flex-wrap: wrap;
|
|
26
|
-
margin-right: ($grid-gutter-width
|
|
27
|
-
margin-left: ($grid-gutter-width
|
|
28
|
+
margin-right: math.div($grid-gutter-width, -2);
|
|
29
|
+
margin-left: math.div($grid-gutter-width, -2);
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
@mixin make-col-ready() {
|
|
@@ -34,19 +36,19 @@
|
|
|
34
36
|
// later on to override this initial width.
|
|
35
37
|
width: 100%;
|
|
36
38
|
min-height: 1px; // Prevent collapsing
|
|
37
|
-
padding-right: ($grid-gutter-width
|
|
38
|
-
padding-left: ($grid-gutter-width
|
|
39
|
+
padding-right: ($grid-gutter-width * 0.5);
|
|
40
|
+
padding-left: ($grid-gutter-width * 0.5);
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
@mixin make-col($size, $columns: $grid-columns) {
|
|
42
|
-
flex: 0 0 percentage($size
|
|
44
|
+
flex: 0 0 percentage(math.div($size, $columns));
|
|
43
45
|
// Add a `max-width` to ensure content within each column does not blow out
|
|
44
46
|
// the width of the column. Applies to IE10+ and Firefox. Chrome and Safari
|
|
45
47
|
// do not appear to require this.
|
|
46
|
-
max-width: percentage($size
|
|
48
|
+
max-width: percentage(math.div($size, $columns));
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
@mixin make-col-offset($size, $columns: $grid-columns) {
|
|
50
|
-
$num: $size
|
|
52
|
+
$num: math.div($size, $columns);
|
|
51
53
|
margin-left: if($num == 0, 0, percentage($num));
|
|
52
54
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// Credit: Nicolas Gallagher and SUIT CSS.
|
|
2
2
|
|
|
3
|
+
@use "sass:math";
|
|
4
|
+
|
|
3
5
|
.embed-responsive {
|
|
4
6
|
position: relative;
|
|
5
7
|
display: block;
|
|
@@ -29,24 +31,24 @@
|
|
|
29
31
|
|
|
30
32
|
.embed-responsive-21by9 {
|
|
31
33
|
&::before {
|
|
32
|
-
padding-top: percentage(9
|
|
34
|
+
padding-top: percentage(math.div(9, 21));
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
.embed-responsive-16by9 {
|
|
37
39
|
&::before {
|
|
38
|
-
padding-top: percentage(9
|
|
40
|
+
padding-top: percentage(math.div(9, 16));
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
.embed-responsive-4by3 {
|
|
43
45
|
&::before {
|
|
44
|
-
padding-top: percentage(3
|
|
46
|
+
padding-top: percentage(3 * 0.25);
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
.embed-responsive-1by1 {
|
|
49
51
|
&::before {
|
|
50
|
-
padding-top: percentage(1
|
|
52
|
+
padding-top: percentage(math.div(1, 1));
|
|
51
53
|
}
|
|
52
54
|
}
|
|
@@ -407,7 +407,7 @@ $font-paragraph: 1rem !default;
|
|
|
407
407
|
$font-weight-base: $font-weight-normal !default;
|
|
408
408
|
$shape-height-base: 1.428571 !default;
|
|
409
409
|
|
|
410
|
-
$headings-margin-bottom: ($spacer / 2);
|
|
410
|
+
$headings-margin-bottom: calc($spacer / 2);
|
|
411
411
|
$headings-font-family: inherit !default;
|
|
412
412
|
$headings-font-weight: $font-weight-normal !default;
|
|
413
413
|
$headings-line-height: 1.2 !default;
|
|
@@ -17,88 +17,47 @@ var _Observable = _interopRequireDefault(require("../event/Observable"));
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
|
-
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; } } }; }
|
|
21
|
-
|
|
22
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
23
|
-
|
|
24
|
-
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."); }
|
|
25
|
-
|
|
26
|
-
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); }
|
|
27
|
-
|
|
28
|
-
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; }
|
|
29
|
-
|
|
30
|
-
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; }
|
|
31
|
-
|
|
32
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
33
|
-
|
|
34
20
|
const AlertBar = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
35
|
-
const
|
|
36
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
37
|
-
message = _React$useState2[0],
|
|
38
|
-
setMessage = _React$useState2[1];
|
|
39
|
-
|
|
40
|
-
const _React$useState3 = _react.default.useState('info'),
|
|
41
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
42
|
-
variant = _React$useState4[0],
|
|
43
|
-
setVariant = _React$useState4[1];
|
|
21
|
+
const [message, setMessage] = _react.default.useState(props.config.message);
|
|
44
22
|
|
|
45
|
-
const
|
|
46
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
47
|
-
initializing = _React$useState6[0],
|
|
48
|
-
setInitializing = _React$useState6[1];
|
|
23
|
+
const [variant, setVariant] = _react.default.useState(props.config.variant ? props.config.variant : 'info');
|
|
49
24
|
|
|
50
25
|
_react.default.useEffect(() => {
|
|
51
|
-
|
|
52
|
-
props.handle.api = api();
|
|
26
|
+
props.handle.api = api();
|
|
53
27
|
|
|
54
|
-
|
|
28
|
+
let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
55
29
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
30
|
+
let eventHandlingConfig = _Utils.default.isNull(parsedConfig.eventHandlingConfig) ? {} : parsedConfig.eventHandlingConfig;
|
|
31
|
+
let defaultAction = {
|
|
32
|
+
actionType: 'script',
|
|
33
|
+
script: {
|
|
34
|
+
lines: ["@#{".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' ")]
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
if (_Utils.default.isNull(eventHandlingConfig.subscriptions)) {
|
|
39
|
+
// Add default subscription
|
|
40
|
+
eventHandlingConfig.subscriptions = [];
|
|
41
|
+
let subscription = {
|
|
42
|
+
publisher: 'applicationContext',
|
|
43
|
+
eventType: _EventType.default.MESSAGE_ARRIVED,
|
|
44
|
+
actions: [defaultAction]
|
|
62
45
|
};
|
|
46
|
+
eventHandlingConfig.subscriptions.push(subscription);
|
|
47
|
+
} else {
|
|
48
|
+
for (const subscription of eventHandlingConfig.subscriptions) {
|
|
49
|
+
if (_Utils.default.isNull(subscription.actions)) {
|
|
50
|
+
subscription.actions = [];
|
|
51
|
+
}
|
|
63
52
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
eventHandlingConfig.subscriptions = [];
|
|
67
|
-
let subscription = {
|
|
68
|
-
publisher: "applicationContext",
|
|
69
|
-
eventType: _EventType.default.MESSAGE_ARRIVED,
|
|
70
|
-
actions: [defaultAction]
|
|
71
|
-
};
|
|
72
|
-
eventHandlingConfig.subscriptions.push(subscription);
|
|
73
|
-
} else {
|
|
74
|
-
var _iterator = _createForOfIteratorHelper(eventHandlingConfig.subscriptions),
|
|
75
|
-
_step;
|
|
76
|
-
|
|
77
|
-
try {
|
|
78
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
79
|
-
const subscription = _step.value;
|
|
80
|
-
|
|
81
|
-
if (_Utils.default.isNull(subscription.actions)) {
|
|
82
|
-
subscription.actions = [];
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
if (subscription.actions.length === 0) {
|
|
86
|
-
subscription.actions.push(defaultAction);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
} catch (err) {
|
|
90
|
-
_iterator.e(err);
|
|
91
|
-
} finally {
|
|
92
|
-
_iterator.f();
|
|
53
|
+
if (subscription.actions.length === 0) {
|
|
54
|
+
subscription.actions.push(defaultAction);
|
|
93
55
|
}
|
|
94
56
|
}
|
|
95
|
-
|
|
96
|
-
_Observable.default.addSubscriptions(eventHandlingConfig, props.handle, props.viewId);
|
|
97
|
-
|
|
98
|
-
props.loadCompleteHandler(props.config.id);
|
|
99
|
-
setInitializing(false);
|
|
100
57
|
}
|
|
101
|
-
|
|
58
|
+
|
|
59
|
+
_Observable.default.addSubscriptions(eventHandlingConfig, props.handle, props.viewId);
|
|
60
|
+
}, []);
|
|
102
61
|
|
|
103
62
|
const api = () => {
|
|
104
63
|
return {
|
|
@@ -121,24 +80,24 @@ const AlertBar = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.f
|
|
|
121
80
|
};
|
|
122
81
|
};
|
|
123
82
|
|
|
124
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
125
|
-
|
|
126
|
-
}, !_Utils.default.isNull(props.config) ? /*#__PURE__*/_react.default.createElement("div", {
|
|
127
|
-
style: {
|
|
83
|
+
return !_Utils.default.isNull(props.config) ? /*#__PURE__*/_react.default.createElement("div", {
|
|
84
|
+
style: _Utils.default.mergeStyles({
|
|
128
85
|
padding: '0 32px 0 32px',
|
|
129
|
-
maxHeight: '64px'
|
|
130
|
-
|
|
131
|
-
}
|
|
86
|
+
maxHeight: '64px'
|
|
87
|
+
}, props.config)
|
|
132
88
|
}, /*#__PURE__*/_react.default.createElement(_Alert.default, {
|
|
133
89
|
variant: variant,
|
|
134
90
|
show: !_Utils.default.isNull(message),
|
|
135
91
|
onClose: () => setMessage(null),
|
|
136
|
-
dismissible: true
|
|
92
|
+
dismissible: true,
|
|
93
|
+
style: {
|
|
94
|
+
with: '100%'
|
|
95
|
+
}
|
|
137
96
|
}, /*#__PURE__*/_react.default.createElement("p", {
|
|
138
97
|
style: {
|
|
139
98
|
color: 'rgba(255, 255, 255, 0.8)'
|
|
140
99
|
}
|
|
141
|
-
}, message))) : null
|
|
100
|
+
}, message))) : null;
|
|
142
101
|
}));
|
|
143
102
|
|
|
144
103
|
var _default = AlertBar;
|
|
@@ -17,19 +17,6 @@ var _Utils = _interopRequireDefault(require("../Utils"));
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
21
|
-
|
|
22
|
-
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."); }
|
|
23
|
-
|
|
24
|
-
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); }
|
|
25
|
-
|
|
26
|
-
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; }
|
|
27
|
-
|
|
28
|
-
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; }
|
|
29
|
-
|
|
30
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
31
|
-
|
|
32
|
-
const utils = new _Utils.default();
|
|
33
20
|
const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
34
21
|
root: {
|
|
35
22
|
width: '100%',
|
|
@@ -42,20 +29,11 @@ const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
|
42
29
|
function AlertItem(props) {
|
|
43
30
|
const classes = useStyles();
|
|
44
31
|
|
|
45
|
-
const
|
|
46
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
47
|
-
message = _React$useState2[0],
|
|
48
|
-
setMessage = _React$useState2[1];
|
|
32
|
+
const [message, setMessage] = _react.default.useState(props.message);
|
|
49
33
|
|
|
50
|
-
const
|
|
51
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
52
|
-
alertStyle = _React$useState4[0],
|
|
53
|
-
setAlertStyle = _React$useState4[1];
|
|
34
|
+
const [alertStyle, setAlertStyle] = _react.default.useState(props.alertStyle);
|
|
54
35
|
|
|
55
|
-
const
|
|
56
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
57
|
-
title = _React$useState6[0],
|
|
58
|
-
setTitle = _React$useState6[1];
|
|
36
|
+
const [title, setTitle] = _react.default.useState(props.alertTitle);
|
|
59
37
|
|
|
60
38
|
_react.default.useEffect(() => {
|
|
61
39
|
setMessage(props.message);
|
|
@@ -65,7 +43,7 @@ function AlertItem(props) {
|
|
|
65
43
|
|
|
66
44
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
67
45
|
className: classes.root
|
|
68
|
-
}, !
|
|
46
|
+
}, !_Utils.default.isNull(message) && message.trim().length > 0 ? /*#__PURE__*/_react.default.createElement(_Alert.default, {
|
|
69
47
|
severity: alertStyle.toLowerCase()
|
|
70
48
|
}, /*#__PURE__*/_react.default.createElement(_AlertTitle.default, null, " ", title, " "), message) : "");
|
|
71
49
|
}
|
|
@@ -27,18 +27,6 @@ var _ApplicationContext = _interopRequireDefault(require("../ApplicationContext"
|
|
|
27
27
|
|
|
28
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
29
|
|
|
30
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
31
|
-
|
|
32
|
-
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."); }
|
|
33
|
-
|
|
34
|
-
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); }
|
|
35
|
-
|
|
36
|
-
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; }
|
|
37
|
-
|
|
38
|
-
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; }
|
|
39
|
-
|
|
40
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
41
|
-
|
|
42
30
|
const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
43
31
|
root: {
|
|
44
32
|
display: 'flex'
|
|
@@ -47,7 +35,7 @@ const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
|
47
35
|
marginRight: theme.spacing(2)
|
|
48
36
|
},
|
|
49
37
|
wrapper: {
|
|
50
|
-
maxHeight:
|
|
38
|
+
maxHeight: '32px',
|
|
51
39
|
zIndex: 2
|
|
52
40
|
}
|
|
53
41
|
}));
|
|
@@ -55,15 +43,9 @@ const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
|
55
43
|
const Button = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
56
44
|
const classes = useStyles();
|
|
57
45
|
|
|
58
|
-
const
|
|
59
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
60
|
-
initializing = _React$useState2[0],
|
|
61
|
-
setInitializing = _React$useState2[1];
|
|
46
|
+
const [disabled, setDisabled] = _react.default.useState(false);
|
|
62
47
|
|
|
63
|
-
const
|
|
64
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
65
|
-
disabled = _React$useState4[0],
|
|
66
|
-
setDisabled = _React$useState4[1];
|
|
48
|
+
const [visible, setVisible] = _react.default.useState(true);
|
|
67
49
|
|
|
68
50
|
let color = _Utils.default.getComponentAttribute(props.config, 'color', 'default');
|
|
69
51
|
|
|
@@ -74,23 +56,23 @@ const Button = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
74
56
|
|
|
75
57
|
_react.default.useEffect(() => {
|
|
76
58
|
props.handle.api = api();
|
|
59
|
+
});
|
|
77
60
|
|
|
78
|
-
|
|
79
|
-
|
|
61
|
+
_react.default.useEffect(() => {
|
|
62
|
+
return () => {
|
|
63
|
+
props.handle.api = null;
|
|
64
|
+
};
|
|
65
|
+
}, []);
|
|
80
66
|
|
|
81
|
-
|
|
67
|
+
_react.default.useEffect(() => {
|
|
68
|
+
let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
82
69
|
|
|
83
|
-
|
|
70
|
+
_Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, props.handle, props.viewId);
|
|
84
71
|
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
});
|
|
72
|
+
_Observable.default.addSystemSubscriptions(parsedConfig);
|
|
88
73
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
props.loadCompleteHandler(props.config.id);
|
|
92
|
-
}
|
|
93
|
-
}, [initializing]);
|
|
74
|
+
props.handle.api.refresh();
|
|
75
|
+
}, []);
|
|
94
76
|
|
|
95
77
|
const handleClick = e => {
|
|
96
78
|
_ApplicationContext.default.enableFormMarkers(true);
|
|
@@ -114,19 +96,25 @@ const Button = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
114
96
|
setDisabled(disabled);
|
|
115
97
|
},
|
|
116
98
|
|
|
99
|
+
set visible(visible) {
|
|
100
|
+
setVisible(visible);
|
|
101
|
+
},
|
|
102
|
+
|
|
117
103
|
refresh() {
|
|
118
104
|
let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
119
105
|
|
|
120
106
|
setDisabled(_Utils.default.evaluateBooleanExpression(parsedConfig.disabled, parsedConfig.id));
|
|
107
|
+
setVisible(_Utils.default.isNull(parsedConfig.visible) || _Utils.default.evaluateBooleanExpression(parsedConfig.visible, parsedConfig.id));
|
|
121
108
|
}
|
|
122
109
|
|
|
123
110
|
};
|
|
124
111
|
};
|
|
125
112
|
|
|
126
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null,
|
|
113
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
127
114
|
className: classes.root,
|
|
128
115
|
style: {
|
|
129
|
-
width: width
|
|
116
|
+
width: width,
|
|
117
|
+
display: visible ? 'block' : 'none'
|
|
130
118
|
}
|
|
131
119
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
132
120
|
className: classes.wrapper
|
|
@@ -167,7 +155,7 @@ const Button = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
167
155
|
disabled: disabled,
|
|
168
156
|
onClick: handleClick,
|
|
169
157
|
"aria-haspopup": "true"
|
|
170
|
-
}, label)))
|
|
158
|
+
}, label))));
|
|
171
159
|
});
|
|
172
160
|
|
|
173
161
|
var _default = Button;
|