@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
|
@@ -39,24 +39,6 @@ var _ViewUtils = _interopRequireDefault(require("./ViewUtils"));
|
|
|
39
39
|
|
|
40
40
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
41
41
|
|
|
42
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
43
|
-
|
|
44
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
45
|
-
|
|
46
|
-
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; }
|
|
47
|
-
|
|
48
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
49
|
-
|
|
50
|
-
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."); }
|
|
51
|
-
|
|
52
|
-
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); }
|
|
53
|
-
|
|
54
|
-
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; }
|
|
55
|
-
|
|
56
|
-
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; }
|
|
57
|
-
|
|
58
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
59
|
-
|
|
60
42
|
const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
61
43
|
paper: {
|
|
62
44
|
display: 'flex',
|
|
@@ -98,20 +80,11 @@ const StyledToggleButtonGroup = (0, _styles.withStyles)(theme => ({
|
|
|
98
80
|
const utils = new _ViewUtils.default();
|
|
99
81
|
|
|
100
82
|
const EnhancedToolbar = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
101
|
-
const
|
|
102
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
103
|
-
alignment = _React$useState2[0],
|
|
104
|
-
setAlignment = _React$useState2[1];
|
|
83
|
+
const [alignment, setAlignment] = _react.default.useState('left');
|
|
105
84
|
|
|
106
|
-
const
|
|
107
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
108
|
-
buttonDisability = _React$useState4[0],
|
|
109
|
-
setButtonDisability = _React$useState4[1];
|
|
85
|
+
const [buttonDisability, setButtonDisability] = _react.default.useState({});
|
|
110
86
|
|
|
111
|
-
const
|
|
112
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
113
|
-
config = _React$useState6[0],
|
|
114
|
-
setConfig = _React$useState6[1];
|
|
87
|
+
const [config, setConfig] = _react.default.useState(props.config);
|
|
115
88
|
|
|
116
89
|
let itemKeyCounter = 0;
|
|
117
90
|
let buttonKeyCounter = 0;
|
|
@@ -120,18 +93,18 @@ const EnhancedToolbar = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
120
93
|
setAlignment(newAlignment);
|
|
121
94
|
};
|
|
122
95
|
|
|
123
|
-
const
|
|
96
|
+
const setButtonDisabled = (name, disabled) => {
|
|
124
97
|
buttonDisability[name] = disabled; // Force a refresh
|
|
125
98
|
//setButtonDisability(JSON.parse(JSON.stringify(buttonDisability)));
|
|
126
99
|
|
|
127
|
-
setButtonDisability(
|
|
100
|
+
setButtonDisability({ ...buttonDisability,
|
|
128
101
|
["key"]: Math.random()
|
|
129
|
-
})
|
|
102
|
+
});
|
|
130
103
|
};
|
|
131
104
|
|
|
132
105
|
_react.default.useImperativeHandle(ref, () => ({
|
|
133
106
|
setButtonDisabled: (name, disabled) => {
|
|
134
|
-
return
|
|
107
|
+
return setButtonDisabled(name, disabled);
|
|
135
108
|
}
|
|
136
109
|
}));
|
|
137
110
|
|
|
@@ -7,10 +7,6 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _reactPromiseTracker = require("react-promise-tracker");
|
|
9
9
|
|
|
10
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
11
|
-
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
13
|
-
|
|
14
10
|
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; }
|
|
15
11
|
|
|
16
12
|
class ViewUtils {
|
|
@@ -221,9 +217,9 @@ class ViewUtils {
|
|
|
221
217
|
let tempDate = stateDate;
|
|
222
218
|
|
|
223
219
|
if (this.isNull(stateDate) || stateDate.getTime() !== newDate.getTime()) {
|
|
224
|
-
viewRef.setState(
|
|
220
|
+
viewRef.setState({ ...viewRef.state,
|
|
225
221
|
[refDateName]: newDate
|
|
226
|
-
}
|
|
222
|
+
}, () => {
|
|
227
223
|
if (!this.isNull(tempDate) && !this.isNull(viewRef.state.id)) {
|
|
228
224
|
let autoFillDate = this.offsetDate(newDate, yearOffset, monthOffset, dayOffset);
|
|
229
225
|
formRef.current.setValue(autoFillDateName, autoFillDate);
|
|
@@ -20,7 +20,9 @@ const useStyles = (0, _styles.makeStyles)(_typographyStyle.default);
|
|
|
20
20
|
|
|
21
21
|
function Danger(props) {
|
|
22
22
|
const classes = useStyles();
|
|
23
|
-
const
|
|
23
|
+
const {
|
|
24
|
+
children
|
|
25
|
+
} = props;
|
|
24
26
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
25
27
|
className: classes.defaultFontStyle + " " + classes.dangerText
|
|
26
28
|
}, children);
|
|
@@ -21,7 +21,9 @@ const useStyles = (0, _styles.makeStyles)(_typographyStyle.default);
|
|
|
21
21
|
|
|
22
22
|
function Info(props) {
|
|
23
23
|
const classes = useStyles();
|
|
24
|
-
const
|
|
24
|
+
const {
|
|
25
|
+
children
|
|
26
|
+
} = props;
|
|
25
27
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
26
28
|
className: classes.defaultFontStyle + " " + classes.infoText
|
|
27
29
|
}, children);
|
|
@@ -11,13 +11,17 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
|
|
12
12
|
var _typographyStyle = _interopRequireDefault(require("../../assets/jss/components/typographyStyle"));
|
|
13
13
|
|
|
14
|
+
var _styles = require("@material-ui/core/styles");
|
|
15
|
+
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
17
|
|
|
16
|
-
const useStyles = makeStyles(_typographyStyle.default);
|
|
18
|
+
const useStyles = (0, _styles.makeStyles)(_typographyStyle.default);
|
|
17
19
|
|
|
18
20
|
function Info(props) {
|
|
19
21
|
const classes = useStyles();
|
|
20
|
-
const
|
|
22
|
+
const {
|
|
23
|
+
children
|
|
24
|
+
} = props;
|
|
21
25
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
22
26
|
className: classes.defaultFontStyle + " " + classes.infoText
|
|
23
27
|
}, children);
|
|
@@ -19,7 +19,7 @@ var _SignalGraphActionHandler = _interopRequireDefault(require("./SignalGraphAct
|
|
|
19
19
|
|
|
20
20
|
var _Utils = _interopRequireDefault(require("../Utils"));
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _ApplicationManager = _interopRequireDefault(require("../ApplicationManager"));
|
|
23
23
|
|
|
24
24
|
var _DynamicJS = _interopRequireDefault(require("../DynamicJS"));
|
|
25
25
|
|
|
@@ -31,7 +31,7 @@ class ActionHandlers {
|
|
|
31
31
|
constructor() {
|
|
32
32
|
_defineProperty(this, "confirmAction", message => {
|
|
33
33
|
if (!_Utils.default.isNull(message)) {
|
|
34
|
-
|
|
34
|
+
_ApplicationManager.default.openConfirmDialog(message);
|
|
35
35
|
|
|
36
36
|
return false;
|
|
37
37
|
}
|
|
@@ -70,16 +70,16 @@ class ActionHandlers {
|
|
|
70
70
|
invokeHandler(action, be, component, viewId) {
|
|
71
71
|
let actionHandler = this.getActionHandler(action.actionType);
|
|
72
72
|
let message = action.confirmationMessage;
|
|
73
|
-
let
|
|
73
|
+
let condition = action.condition;
|
|
74
74
|
let shouldRun = true;
|
|
75
75
|
|
|
76
|
-
if (!_Utils.default.isNull(
|
|
77
|
-
shouldRun = _DynamicJS.default.executeScript(Math.random() + "_" + viewId + "_" + (component ? component.api.id : "NO_COMPONENT") + "_action_pre_condition",
|
|
76
|
+
if (!_Utils.default.isNull(condition)) {
|
|
77
|
+
shouldRun = _DynamicJS.default.executeScript(Math.random() + "_" + viewId + "_" + (component ? component.api.id : "NO_COMPONENT") + "_action_pre_condition", condition, component.api.id, true, be);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
if (shouldRun) {
|
|
81
81
|
if (!_Utils.default.isNull(message)) {
|
|
82
|
-
|
|
82
|
+
_ApplicationManager.default.openConfirmDialog(message, result => {
|
|
83
83
|
if (result === true) {
|
|
84
84
|
actionHandler.execute(action, be, component, viewId);
|
|
85
85
|
}
|
package/dist/event/EventType.js
CHANGED
|
@@ -33,4 +33,10 @@ _defineProperty(EventType, "APPLICATION_CONTEXT_CHANGE", "APPLICATION_CONTEXT_CH
|
|
|
33
33
|
|
|
34
34
|
_defineProperty(EventType, "MESSAGE_ARRIVED", "MESSAGE_ARRIVED");
|
|
35
35
|
|
|
36
|
-
_defineProperty(EventType, "DATA_ARRIVED", "DATA_ARRIVED");
|
|
36
|
+
_defineProperty(EventType, "DATA_ARRIVED", "DATA_ARRIVED");
|
|
37
|
+
|
|
38
|
+
_defineProperty(EventType, "CALENDAR_DATE_CLICK", "CALENDAR_DATE_CLICK");
|
|
39
|
+
|
|
40
|
+
_defineProperty(EventType, "CALENDAR_EVENT_START", "CALENDAR_EVENT_START");
|
|
41
|
+
|
|
42
|
+
_defineProperty(EventType, "SOCKET_CONNECT", "SOCKET_CONNECT");
|
|
@@ -21,7 +21,7 @@ class LoadDataActionHandler {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
execute(actionConfig, event, component, currentViewId) {
|
|
24
|
-
if (!_Utils.default.isNull(component)) {
|
|
24
|
+
if (!_Utils.default.isNull(component) && !_Utils.default.isNull(component.api)) {
|
|
25
25
|
component.api.loadData(actionConfig, event);
|
|
26
26
|
}
|
|
27
27
|
}
|
package/dist/event/Observable.js
CHANGED
|
@@ -11,91 +11,53 @@ var _Utils = _interopRequireDefault(require("../Utils"));
|
|
|
11
11
|
|
|
12
12
|
var _EventListener = _interopRequireDefault(require("./EventListener"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _ApplicationManager = _interopRequireWildcard(require("../ApplicationManager"));
|
|
15
15
|
|
|
16
16
|
var _DynamicJS = require("../DynamicJS");
|
|
17
17
|
|
|
18
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function
|
|
18
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
19
19
|
|
|
20
20
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
|
|
24
|
-
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); } }
|
|
25
|
-
|
|
26
|
-
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); }); }; }
|
|
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(_e) { throw _e; }, 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(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
29
|
-
|
|
30
|
-
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); }
|
|
31
|
-
|
|
32
|
-
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; }
|
|
33
|
-
|
|
34
24
|
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; }
|
|
35
25
|
|
|
36
26
|
class Observable {
|
|
37
27
|
constructor() {
|
|
38
28
|
_defineProperty(this, "addSubscription", subscription => this.subscriptions.push(subscription));
|
|
39
29
|
|
|
30
|
+
_defineProperty(this, "addApplicationContextSubscription", subscription => this.applicationContextSubscription.push(subscription));
|
|
31
|
+
|
|
40
32
|
_defineProperty(this, "addSubscriptions", (eventHandlingConfig, componentHandle, viewId) => {
|
|
41
33
|
if (!_Utils.default.isNull(eventHandlingConfig)) {
|
|
42
34
|
let subscriptions = eventHandlingConfig.subscriptions;
|
|
43
35
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
try {
|
|
48
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
49
|
-
const subscription = _step.value;
|
|
50
|
-
this.addSubscription(new _EventListener.default(componentHandle, viewId, !_Utils.default.isNull(subscription.publisher) ? subscription.publisher : componentHandle.api.id, subscription.eventType, subscription.actions));
|
|
51
|
-
}
|
|
52
|
-
} catch (err) {
|
|
53
|
-
_iterator.e(err);
|
|
54
|
-
} finally {
|
|
55
|
-
_iterator.f();
|
|
36
|
+
for (const subscription of subscriptions) {
|
|
37
|
+
this.addSubscription(new _EventListener.default(componentHandle, viewId, !_Utils.default.isNull(subscription.publisher) ? subscription.publisher : componentHandle.api.id, subscription.eventType, subscription.actions));
|
|
56
38
|
}
|
|
57
39
|
}
|
|
58
40
|
});
|
|
59
41
|
|
|
60
|
-
_defineProperty(this, "addSystemSubscriptions", config => {
|
|
61
|
-
if (!_Utils.default.isNull(config.disabled)) {
|
|
42
|
+
_defineProperty(this, "addSystemSubscriptions", (viewId, config) => {
|
|
43
|
+
if (!_Utils.default.isNull(config.disabled) && typeof config.disabled === 'string') {
|
|
62
44
|
let matches = config.disabled.match(_DynamicJS.TEMPLATE_REGEX);
|
|
63
45
|
|
|
64
46
|
if (!_Utils.default.isNull(matches)) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
try {
|
|
69
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
70
|
-
const match = _step2.value;
|
|
71
|
-
let component = match.replace("@#{", "").replace("}", "");
|
|
72
|
-
this.addSystemGeneratedSubscription(component, config.id);
|
|
73
|
-
}
|
|
74
|
-
} catch (err) {
|
|
75
|
-
_iterator2.e(err);
|
|
76
|
-
} finally {
|
|
77
|
-
_iterator2.f();
|
|
47
|
+
for (const match of matches) {
|
|
48
|
+
let component = match.replace('@#{', '').replace('}', '');
|
|
49
|
+
this.addSystemGeneratedSubscription(viewId, component, config.id);
|
|
78
50
|
}
|
|
79
51
|
}
|
|
80
52
|
}
|
|
81
53
|
|
|
82
|
-
if (!_Utils.default.isNull(config.visible)) {
|
|
54
|
+
if (!_Utils.default.isNull(config.visible) && typeof config.visible === 'string') {
|
|
83
55
|
let matches = config.visible.match(_DynamicJS.TEMPLATE_REGEX);
|
|
84
56
|
|
|
85
57
|
if (!_Utils.default.isNull(matches)) {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
try {
|
|
90
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
91
|
-
const match = _step3.value;
|
|
92
|
-
let component = match.replace("@#{", "").replace("}", "");
|
|
93
|
-
this.addSystemGeneratedSubscription(component, config.id);
|
|
94
|
-
}
|
|
95
|
-
} catch (err) {
|
|
96
|
-
_iterator3.e(err);
|
|
97
|
-
} finally {
|
|
98
|
-
_iterator3.f();
|
|
58
|
+
for (const match of matches) {
|
|
59
|
+
let component = match.replace('@#{', '').replace('}', '');
|
|
60
|
+
this.addSystemGeneratedSubscription(viewId, component, config.id);
|
|
99
61
|
}
|
|
100
62
|
}
|
|
101
63
|
}
|
|
@@ -104,75 +66,51 @@ class Observable {
|
|
|
104
66
|
let matches = config.validator.nullable.match(_DynamicJS.TEMPLATE_REGEX);
|
|
105
67
|
|
|
106
68
|
if (!_Utils.default.isNull(matches)) {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
try {
|
|
111
|
-
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
112
|
-
const match = _step4.value;
|
|
113
|
-
let component = match.replace("@#{", "").replace("}", "");
|
|
114
|
-
this.addSystemGeneratedSubscription(component, config.id);
|
|
115
|
-
}
|
|
116
|
-
} catch (err) {
|
|
117
|
-
_iterator4.e(err);
|
|
118
|
-
} finally {
|
|
119
|
-
_iterator4.f();
|
|
69
|
+
for (const match of matches) {
|
|
70
|
+
let component = match.replace('@#{', '').replace('}', '');
|
|
71
|
+
this.addSystemGeneratedSubscription(viewId, component, config.id);
|
|
120
72
|
}
|
|
121
73
|
}
|
|
122
74
|
}
|
|
123
75
|
});
|
|
124
76
|
|
|
77
|
+
_defineProperty(this, "removeApplicationContextSubscriptions", id => {
|
|
78
|
+
let index = this.applicationContextSubscription.findIndex(sub => sub.handler.id === id);
|
|
79
|
+
|
|
80
|
+
if (index >= 0) {
|
|
81
|
+
this.applicationContextSubscription.splice(index, 1);
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
|
|
125
85
|
_defineProperty(this, "processSystemGeneratedSubscriptions", componentId => {
|
|
126
|
-
let component =
|
|
86
|
+
let component = _ApplicationManager.default.resolveComponentApi(componentId);
|
|
127
87
|
|
|
128
88
|
if (!_Utils.default.isNull(component)) {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
if (!_Utils.default.isNull(component)) {
|
|
140
|
-
if (!_Utils.default.isNull(subscription.callback)) {
|
|
141
|
-
subscription.callback();
|
|
142
|
-
} else if (!_Utils.default.isNull(component.refresh)) {
|
|
143
|
-
component.refresh();
|
|
144
|
-
}
|
|
89
|
+
for (const subscription of this.systemGeneratedSubscriptions) {
|
|
90
|
+
if (subscription.publisher === componentId) {
|
|
91
|
+
let component = _ApplicationManager.default.resolveComponentApi(subscription.subscriber);
|
|
92
|
+
|
|
93
|
+
if (!_Utils.default.isNull(component)) {
|
|
94
|
+
if (!_Utils.default.isNull(subscription.callback)) {
|
|
95
|
+
subscription.callback();
|
|
96
|
+
} else if (!_Utils.default.isNull(component.refresh)) {
|
|
97
|
+
component.refresh();
|
|
145
98
|
}
|
|
146
99
|
}
|
|
147
100
|
}
|
|
148
|
-
} catch (err) {
|
|
149
|
-
_iterator5.e(err);
|
|
150
|
-
} finally {
|
|
151
|
-
_iterator5.f();
|
|
152
101
|
}
|
|
153
102
|
}
|
|
154
103
|
});
|
|
155
104
|
|
|
156
|
-
_defineProperty(this, "addSystemGeneratedSubscription", (publisher, subscriber, callback) => {
|
|
105
|
+
_defineProperty(this, "addSystemGeneratedSubscription", (viewId, publisher, subscriber, callback) => {
|
|
157
106
|
let found = false;
|
|
158
107
|
|
|
159
|
-
let
|
|
160
|
-
|
|
161
|
-
var _iterator6 = _createForOfIteratorHelper(this.systemGeneratedSubscriptions),
|
|
162
|
-
_step6;
|
|
108
|
+
let currentViewId = _ApplicationManager.default.getView(viewId).config.id;
|
|
163
109
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
if (publisher === systemGeneratedSubscription.publisher && subscriber === systemGeneratedSubscription.subscriber && currentViewid === systemGeneratedSubscription.viewId) {
|
|
169
|
-
found = true;
|
|
170
|
-
}
|
|
110
|
+
for (const systemGeneratedSubscription of this.systemGeneratedSubscriptions) {
|
|
111
|
+
if (publisher === systemGeneratedSubscription.publisher && subscriber === systemGeneratedSubscription.subscriber && currentViewId === systemGeneratedSubscription.viewId) {
|
|
112
|
+
found = true;
|
|
171
113
|
}
|
|
172
|
-
} catch (err) {
|
|
173
|
-
_iterator6.e(err);
|
|
174
|
-
} finally {
|
|
175
|
-
_iterator6.f();
|
|
176
114
|
}
|
|
177
115
|
|
|
178
116
|
if (!found) {
|
|
@@ -180,13 +118,14 @@ class Observable {
|
|
|
180
118
|
subscription.publisher = publisher;
|
|
181
119
|
subscription.subscriber = subscriber;
|
|
182
120
|
subscription.callback = callback;
|
|
183
|
-
subscription.viewId =
|
|
121
|
+
subscription.viewId = currentViewId;
|
|
184
122
|
this.systemGeneratedSubscriptions.push(subscription);
|
|
185
123
|
}
|
|
186
124
|
});
|
|
187
125
|
|
|
188
126
|
if (!Observable.instance) {
|
|
189
127
|
this.subscriptions = [];
|
|
128
|
+
this.applicationContextSubscription = [];
|
|
190
129
|
this.systemGeneratedSubscriptions = [];
|
|
191
130
|
Observable.instance = this;
|
|
192
131
|
}
|
|
@@ -200,6 +139,11 @@ class Observable {
|
|
|
200
139
|
*/
|
|
201
140
|
|
|
202
141
|
|
|
142
|
+
async emitContextChangeEvent(context, newValues) {
|
|
143
|
+
for (const applicationContextSubscription of this.applicationContextSubscription) {
|
|
144
|
+
applicationContextSubscription.handler.onContextChange(context, newValues);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
203
147
|
/**
|
|
204
148
|
* Fires an event.
|
|
205
149
|
*
|
|
@@ -207,85 +151,47 @@ class Observable {
|
|
|
207
151
|
* @param be the base event
|
|
208
152
|
* @return false if any subscriptions cancel the event.
|
|
209
153
|
*/
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
try {
|
|
232
|
-
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
233
|
-
subscription = _step7.value;
|
|
234
|
-
|
|
235
|
-
/*if (sourceId === 'jobTitlesMenuIem') {
|
|
236
|
-
console.log("CHECKING VIEW [" + subscription.getViewId() + " - " + viewId + "], PUB : ["
|
|
237
|
-
+ subscription.getPublisher() + " - " + sourceId + "], EVENT: [" + subscription.getEventType() + " - " + eventType + "]");
|
|
238
|
-
}*/
|
|
239
|
-
if ((subscription.getViewId() === viewId || _ApplicationContext.SYSTEM_EVENT === viewId) && subscription.getPublisher() === sourceId && subscription.getEventType() === eventType) {
|
|
240
|
-
if (!_Utils.default.isNull(subscription.getActions())) {
|
|
241
|
-
for (j = 0; j < subscription.getActions().length; j++) {
|
|
242
|
-
action = subscription.getActions()[j];
|
|
243
|
-
|
|
244
|
-
_ActionHandlers.default.invoke(action, be, subscription);
|
|
245
|
-
}
|
|
246
|
-
} else if (!_Utils.default.isNull(subscription.getCallback())) {
|
|
247
|
-
subscription.getCallback()(be);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
} catch (err) {
|
|
252
|
-
_iterator7.e(err);
|
|
253
|
-
} finally {
|
|
254
|
-
_iterator7.f();
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
_this.processSystemGeneratedSubscriptions(sourceId);
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
async fireEvent(eventType, be) {
|
|
157
|
+
// Components could be unloading on the cases where screens are busy closing,
|
|
158
|
+
// meaning the "current" object may be nullified, so we need the null check
|
|
159
|
+
// This happens on async events such as RPC_CALL. If there is no view masking,
|
|
160
|
+
// the REST call may return while the component has been destroyed, and the source's current could be null
|
|
161
|
+
// Proper masking when doing REST CALL should prevent this from happening. The null check provides the sort of defence
|
|
162
|
+
if (!_Utils.default.isNull(be.getSource()) && !_Utils.default.isNull(be.getSource().api)) {
|
|
163
|
+
let sourceId = be.getSource().api.id;
|
|
164
|
+
let viewId = be.viewId;
|
|
165
|
+
|
|
166
|
+
if (!_Utils.default.isNull(sourceId)) {
|
|
167
|
+
for (const subscription of this.subscriptions) {
|
|
168
|
+
if ((subscription.getViewId() === viewId || _ApplicationManager.SYSTEM_EVENT === viewId) && subscription.getPublisher() === sourceId && subscription.getEventType() === eventType) {
|
|
169
|
+
if (!_Utils.default.isNull(subscription.getActions())) {
|
|
170
|
+
for (let j = 0; j < subscription.getActions().length; j++) {
|
|
171
|
+
let action = subscription.getActions()[j];
|
|
172
|
+
|
|
173
|
+
_ActionHandlers.default.invoke(action, be, subscription);
|
|
258
174
|
}
|
|
175
|
+
} else if (!_Utils.default.isNull(subscription.getCallback())) {
|
|
176
|
+
subscription.getCallback()(be);
|
|
259
177
|
}
|
|
260
|
-
|
|
261
|
-
case 1:
|
|
262
|
-
case "end":
|
|
263
|
-
return _context.stop();
|
|
178
|
+
}
|
|
264
179
|
}
|
|
265
|
-
|
|
266
|
-
|
|
180
|
+
|
|
181
|
+
this.processSystemGeneratedSubscriptions(sourceId);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
267
184
|
}
|
|
268
185
|
|
|
269
186
|
getNextIndexToRemove(val, prop, listenerCollection) {
|
|
270
187
|
let counter = 0;
|
|
271
188
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
try {
|
|
276
|
-
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
277
|
-
const listener = _step8.value;
|
|
278
|
-
|
|
279
|
-
if (listener[prop] === val) {
|
|
280
|
-
return counter;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
counter++;
|
|
189
|
+
for (const listener of listenerCollection) {
|
|
190
|
+
if (listener[prop] === val) {
|
|
191
|
+
return counter;
|
|
284
192
|
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
} finally {
|
|
288
|
-
_iterator8.f();
|
|
193
|
+
|
|
194
|
+
counter++;
|
|
289
195
|
}
|
|
290
196
|
|
|
291
197
|
return -1;
|