@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
|
@@ -9,12 +9,6 @@ var _TemplateTable = _interopRequireDefault(require("./TemplateTable"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
-
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; } } }; }
|
|
13
|
-
|
|
14
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
15
|
-
|
|
16
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
17
|
-
|
|
18
12
|
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; }
|
|
19
13
|
|
|
20
14
|
const parse = val => {
|
|
@@ -53,19 +47,9 @@ class TemplateItemEventHandler {
|
|
|
53
47
|
setTimeout(() => {
|
|
54
48
|
let elements = document.getElementsByClassName("dropTarget");
|
|
55
49
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
try {
|
|
60
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
61
|
-
const element = _step.value;
|
|
62
|
-
element.addEventListener("dragstart", this.dragStart, false);
|
|
63
|
-
element.addEventListener("dragover", this.dragOver, false);
|
|
64
|
-
}
|
|
65
|
-
} catch (err) {
|
|
66
|
-
_iterator.e(err);
|
|
67
|
-
} finally {
|
|
68
|
-
_iterator.f();
|
|
50
|
+
for (const element of elements) {
|
|
51
|
+
element.addEventListener("dragstart", this.dragStart, false);
|
|
52
|
+
element.addEventListener("dragover", this.dragOver, false);
|
|
69
53
|
}
|
|
70
54
|
}, 2000);
|
|
71
55
|
container.addEventListener("mousedown", this.handleMouseDown);
|
|
@@ -75,21 +59,11 @@ class TemplateItemEventHandler {
|
|
|
75
59
|
let placeHolders = document.getElementsByClassName('_draggable_');
|
|
76
60
|
let dropTarget = this.getDropTarget(parent);
|
|
77
61
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
const placeHolder = _step2.value;
|
|
84
|
-
placeHolder.addEventListener('mousemove', event => this.handleItemMouseMove(event, parent), false);
|
|
85
|
-
placeHolder.addEventListener('mouseout', this.handleItemMouseOut, false);
|
|
86
|
-
placeHolder.addEventListener('mouseup', event => this.handleItemMouseClick(placeHolder, placeHolder.id, selectionHandler), false);
|
|
87
|
-
placeHolder.addEventListener('dragend', event => this.handleItemDrop(event, document.getElementsByClassName('dropTarget')[0]), false);
|
|
88
|
-
}
|
|
89
|
-
} catch (err) {
|
|
90
|
-
_iterator2.e(err);
|
|
91
|
-
} finally {
|
|
92
|
-
_iterator2.f();
|
|
62
|
+
for (const placeHolder of placeHolders) {
|
|
63
|
+
placeHolder.addEventListener('mousemove', event => this.handleItemMouseMove(event, parent), false);
|
|
64
|
+
placeHolder.addEventListener('mouseout', this.handleItemMouseOut, false);
|
|
65
|
+
placeHolder.addEventListener('mouseup', event => this.handleItemMouseClick(placeHolder, placeHolder.id, selectionHandler), false);
|
|
66
|
+
placeHolder.addEventListener('dragend', event => this.handleItemDrop(event, document.getElementsByClassName('dropTarget')[0]), false);
|
|
93
67
|
}
|
|
94
68
|
});
|
|
95
69
|
|
|
@@ -135,6 +109,7 @@ class TemplateItemEventHandler {
|
|
|
135
109
|
node.style.left = (props.left ? props.left : event.clientX - dropTarget.offsetLeft) + 'px';
|
|
136
110
|
node.style.top = (props.top ? props.top : container.scrollTop + event.clientY - dropTarget.offsetTop) + 'px';
|
|
137
111
|
node.style.border = '2px dashed green';
|
|
112
|
+
node.style.position = 'absolute';
|
|
138
113
|
node.className = "_draggable_";
|
|
139
114
|
node.setAttribute("draggable", true);
|
|
140
115
|
|
|
@@ -280,18 +255,8 @@ class TemplateItemEventHandler {
|
|
|
280
255
|
_defineProperty(this, "resetBorders", () => {
|
|
281
256
|
let items = document.getElementsByClassName("_draggable_");
|
|
282
257
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
try {
|
|
287
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
288
|
-
const item = _step3.value;
|
|
289
|
-
item.style.border = 'none';
|
|
290
|
-
}
|
|
291
|
-
} catch (err) {
|
|
292
|
-
_iterator3.e(err);
|
|
293
|
-
} finally {
|
|
294
|
-
_iterator3.f();
|
|
258
|
+
for (const item of items) {
|
|
259
|
+
item.style.border = 'none';
|
|
295
260
|
}
|
|
296
261
|
});
|
|
297
262
|
|
|
@@ -350,30 +315,19 @@ class TemplateItemEventHandler {
|
|
|
350
315
|
let newWidth;
|
|
351
316
|
let resized = true;
|
|
352
317
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
358
|
-
const lastCol = _step4.value;
|
|
359
|
-
|
|
360
|
-
if (!this.lastColItemPreResizeWidth) {
|
|
361
|
-
this.lastColItemPreResizeWidth = parse(lastCol.style.width);
|
|
362
|
-
}
|
|
318
|
+
for (const lastCol of lastCols) {
|
|
319
|
+
if (!this.lastColItemPreResizeWidth) {
|
|
320
|
+
this.lastColItemPreResizeWidth = parse(lastCol.style.width);
|
|
321
|
+
}
|
|
363
322
|
|
|
364
|
-
|
|
323
|
+
newWidth = this.lastColItemPreResizeWidth + spec.rightOffset; //console.log(spec.leftOffset + " : " + spec.rightOffset + " : " + this.lastColItemPreResizeWidth);
|
|
365
324
|
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
}
|
|
325
|
+
if (newWidth >= 32) {
|
|
326
|
+
lastCol.style.width = newWidth + 'px';
|
|
327
|
+
} else {
|
|
328
|
+
resized = false;
|
|
329
|
+
break;
|
|
372
330
|
}
|
|
373
|
-
} catch (err) {
|
|
374
|
-
_iterator4.e(err);
|
|
375
|
-
} finally {
|
|
376
|
-
_iterator4.f();
|
|
377
331
|
}
|
|
378
332
|
|
|
379
333
|
if (resized) {
|
|
@@ -386,30 +340,19 @@ class TemplateItemEventHandler {
|
|
|
386
340
|
let firstCols = node.getElementsByClassName('_item_table_col_0');
|
|
387
341
|
let resized = true;
|
|
388
342
|
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
394
|
-
const firstCol = _step5.value;
|
|
395
|
-
|
|
396
|
-
if (!this.firstColItemPreResizeWidth) {
|
|
397
|
-
this.firstColItemPreResizeWidth = parse(firstCol.style.width);
|
|
398
|
-
}
|
|
343
|
+
for (const firstCol of firstCols) {
|
|
344
|
+
if (!this.firstColItemPreResizeWidth) {
|
|
345
|
+
this.firstColItemPreResizeWidth = parse(firstCol.style.width);
|
|
346
|
+
}
|
|
399
347
|
|
|
400
|
-
|
|
348
|
+
newWidth = this.firstColItemPreResizeWidth + spec.leftOffset * -1;
|
|
401
349
|
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
}
|
|
350
|
+
if (newWidth >= 32) {
|
|
351
|
+
firstCol.style.width = newWidth + 'px';
|
|
352
|
+
} else {
|
|
353
|
+
resized = false;
|
|
354
|
+
break;
|
|
408
355
|
}
|
|
409
|
-
} catch (err) {
|
|
410
|
-
_iterator5.e(err);
|
|
411
|
-
} finally {
|
|
412
|
-
_iterator5.f();
|
|
413
356
|
}
|
|
414
357
|
|
|
415
358
|
if (resized) {
|
|
@@ -431,18 +374,8 @@ class TemplateItemEventHandler {
|
|
|
431
374
|
newHeight = this.firstRowItemPreResizeHeight + spec.bottomOffset / rows.length;
|
|
432
375
|
}
|
|
433
376
|
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
try {
|
|
438
|
-
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
439
|
-
const row = _step6.value;
|
|
440
|
-
row.style.height = newHeight + 'px';
|
|
441
|
-
}
|
|
442
|
-
} catch (err) {
|
|
443
|
-
_iterator6.e(err);
|
|
444
|
-
} finally {
|
|
445
|
-
_iterator6.f();
|
|
377
|
+
for (const row of rows) {
|
|
378
|
+
row.style.height = newHeight + 'px';
|
|
446
379
|
}
|
|
447
380
|
|
|
448
381
|
if (spec.topOffset !== 0) {
|
|
@@ -5,12 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
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; } } }; }
|
|
9
|
-
|
|
10
|
-
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); }
|
|
11
|
-
|
|
12
|
-
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; }
|
|
13
|
-
|
|
14
8
|
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
9
|
|
|
16
10
|
const boundCheck = (pos, mousePos) => {
|
|
@@ -38,18 +32,8 @@ class TemplateTable {
|
|
|
38
32
|
let tableHeight = tableConfig.defaultRowHeight * tableConfig.defaultNumRows;
|
|
39
33
|
let tableWidth = 0;
|
|
40
34
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
try {
|
|
45
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
46
|
-
const column = _step.value;
|
|
47
|
-
tableWidth += column.defaultWidth;
|
|
48
|
-
}
|
|
49
|
-
} catch (err) {
|
|
50
|
-
_iterator.e(err);
|
|
51
|
-
} finally {
|
|
52
|
-
_iterator.f();
|
|
35
|
+
for (const column of tableConfig.columns) {
|
|
36
|
+
tableWidth += column.defaultWidth;
|
|
53
37
|
}
|
|
54
38
|
|
|
55
39
|
let table = document.createElement("div");
|
|
@@ -124,18 +108,8 @@ class TemplateTable {
|
|
|
124
108
|
let elements = this.currentResizeCol.parentElement.parentElement.getElementsByClassName("_item_table_col_".concat(index));
|
|
125
109
|
|
|
126
110
|
if (elements && elements.length > 0) {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
try {
|
|
131
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
132
|
-
const element = _step2.value;
|
|
133
|
-
element.style.width = width + 'px';
|
|
134
|
-
}
|
|
135
|
-
} catch (err) {
|
|
136
|
-
_iterator2.e(err);
|
|
137
|
-
} finally {
|
|
138
|
-
_iterator2.f();
|
|
111
|
+
for (const element of elements) {
|
|
112
|
+
element.style.width = width + 'px';
|
|
139
113
|
}
|
|
140
114
|
}
|
|
141
115
|
}
|
|
@@ -147,18 +121,8 @@ class TemplateTable {
|
|
|
147
121
|
let elements = this.currentResizeCol.parentElement.parentElement.getElementsByClassName("_item_table_col_".concat(index));
|
|
148
122
|
|
|
149
123
|
if (elements && elements.length > 0) {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
try {
|
|
154
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
155
|
-
const element = _step3.value;
|
|
156
|
-
element.style.borderWidth = width;
|
|
157
|
-
}
|
|
158
|
-
} catch (err) {
|
|
159
|
-
_iterator3.e(err);
|
|
160
|
-
} finally {
|
|
161
|
-
_iterator3.f();
|
|
124
|
+
for (const element of elements) {
|
|
125
|
+
element.style.borderWidth = width;
|
|
162
126
|
}
|
|
163
127
|
}
|
|
164
128
|
}
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _Utils = _interopRequireDefault(require("../Utils"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _ApplicationManager = _interopRequireDefault(require("../ApplicationManager"));
|
|
13
13
|
|
|
14
14
|
var _Observable = _interopRequireDefault(require("../event/Observable"));
|
|
15
15
|
|
|
@@ -19,62 +19,45 @@ var _reactHtmlRenderer = _interopRequireDefault(require("react-html-renderer"));
|
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
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
22
|
const TitleBar = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
35
|
-
const
|
|
36
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
37
|
-
title = _React$useState2[0],
|
|
38
|
-
setTitle = _React$useState2[1];
|
|
23
|
+
const [title, setTitle] = _react.default.useState('');
|
|
39
24
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
setInitializing = _React$useState4[1];
|
|
25
|
+
_react.default.useLayoutEffect(() => {
|
|
26
|
+
props.handle.api = api();
|
|
27
|
+
}, []);
|
|
44
28
|
|
|
45
29
|
_react.default.useEffect(() => {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
50
|
-
|
|
51
|
-
let eventHandlingConfig = _Utils.default.isNull(parsedConfig.eventHandlingConfig) ? {} : parsedConfig.eventHandlingConfig;
|
|
52
|
-
eventHandlingConfig.subscriptions = _Utils.default.isNull(eventHandlingConfig.subscriptions) ? [] : eventHandlingConfig.subscriptions;
|
|
53
|
-
|
|
54
|
-
let titleValue = _Utils.default.getComponentAttribute(props.config, 'title', null);
|
|
55
|
-
|
|
56
|
-
if (_Utils.default.isNull(titleValue)) {
|
|
57
|
-
let subscription = {
|
|
58
|
-
publisher: "applicationContext",
|
|
59
|
-
eventType: _EventType.default.APPLICATION_CONTEXT_CHANGE,
|
|
60
|
-
actions: [{
|
|
61
|
-
actionType: "script",
|
|
62
|
-
script: {
|
|
63
|
-
lines: ["if($event.data.name === 'title'){", " let component = @#{".concat(props.config.id, "};"), " if(component) {", " component.title = $event.data.value", " }", "}"]
|
|
64
|
-
}
|
|
65
|
-
}]
|
|
66
|
-
};
|
|
67
|
-
eventHandlingConfig.subscriptions.push(subscription);
|
|
68
|
-
|
|
69
|
-
_Observable.default.addSubscriptions(eventHandlingConfig, props.handle, props.viewId);
|
|
70
|
-
} else {
|
|
71
|
-
setTitle(titleValue);
|
|
72
|
-
}
|
|
30
|
+
props.handle.api = api();
|
|
31
|
+
});
|
|
73
32
|
|
|
74
|
-
|
|
75
|
-
|
|
33
|
+
_react.default.useEffect(() => {
|
|
34
|
+
console.log('TITLE BAR RENDERED : ' + props.config.id);
|
|
35
|
+
|
|
36
|
+
let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
37
|
+
|
|
38
|
+
let eventHandlingConfig = _Utils.default.isNull(parsedConfig.eventHandlingConfig) ? {} : parsedConfig.eventHandlingConfig;
|
|
39
|
+
eventHandlingConfig.subscriptions = _Utils.default.isNull(eventHandlingConfig.subscriptions) ? [] : eventHandlingConfig.subscriptions;
|
|
40
|
+
|
|
41
|
+
let titleValue = _Utils.default.getComponentAttribute(props.config, 'title', null);
|
|
42
|
+
|
|
43
|
+
if (_Utils.default.isNull(titleValue)) {
|
|
44
|
+
let subscription = {
|
|
45
|
+
publisher: 'applicationManager',
|
|
46
|
+
eventType: _EventType.default.APPLICATION_CONTEXT_CHANGE,
|
|
47
|
+
actions: [{
|
|
48
|
+
actionType: 'script',
|
|
49
|
+
script: {
|
|
50
|
+
lines: ["if($event.data.name === 'title'){", " let component = @#{".concat(props.config.id, "};"), " if(component) {", " component.title = $event.data.value", " }", '}']
|
|
51
|
+
}
|
|
52
|
+
}]
|
|
53
|
+
};
|
|
54
|
+
eventHandlingConfig.subscriptions.push(subscription);
|
|
55
|
+
|
|
56
|
+
_Observable.default.addSubscriptions(eventHandlingConfig, props.handle, props.viewId);
|
|
57
|
+
} else {
|
|
58
|
+
setTitle(titleValue);
|
|
76
59
|
}
|
|
77
|
-
});
|
|
60
|
+
}, []);
|
|
78
61
|
|
|
79
62
|
const api = () => {
|
|
80
63
|
return {
|
|
@@ -94,8 +77,9 @@ const TitleBar = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.f
|
|
|
94
77
|
};
|
|
95
78
|
|
|
96
79
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
97
|
-
ref: ref
|
|
98
|
-
|
|
80
|
+
ref: ref,
|
|
81
|
+
className: 'title-bar'
|
|
82
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
99
83
|
style: {
|
|
100
84
|
padding: '32px 0 4px 0',
|
|
101
85
|
fontSize: '24px',
|
|
@@ -103,7 +87,7 @@ const TitleBar = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.f
|
|
|
103
87
|
}
|
|
104
88
|
}, /*#__PURE__*/_react.default.createElement(_reactHtmlRenderer.default, {
|
|
105
89
|
html: "<p>".concat(title, "</p>")
|
|
106
|
-
}))
|
|
90
|
+
})));
|
|
107
91
|
}));
|
|
108
92
|
|
|
109
93
|
var _default = TitleBar;
|