@agilemotion/oui-react-js 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApplicationManager.js +698 -421
- package/dist/BasicApp.js +5 -5
- package/dist/BasicAppHome.js +55 -26
- package/dist/DynamicJS.js +147 -65
- package/dist/InteractionPortalApp.css +1 -1
- package/dist/InteractionPortalApp.js +5 -5
- package/dist/InteractionPortalAppHome.js +65 -18
- package/dist/InteractionPortalApp_old.js +107 -61
- package/dist/RestUtils.js +339 -287
- package/dist/TypedValue.js +18 -15
- package/dist/Utils.js +375 -276
- package/dist/WithRouter.js +6 -6
- package/dist/assets/jss/components/authNavbarStyle.js +166 -164
- package/dist/assets/jss/components/buttonStyle.js +1 -1
- package/dist/assets/jss/components/cardAvatarStyle.js +1 -1
- package/dist/assets/jss/components/cardBodyStyle.js +1 -1
- package/dist/assets/jss/components/cardFooterStyle.js +1 -1
- package/dist/assets/jss/components/cardHeaderStyle.js +13 -13
- package/dist/assets/jss/components/cardIconStyle.js +1 -1
- package/dist/assets/jss/components/cardStyle.js +1 -1
- package/dist/assets/jss/components/cardTextStyle.js +1 -1
- package/dist/assets/jss/components/customDropdownStyle.js +168 -169
- package/dist/assets/jss/components/customInputStyle.js +9 -3
- package/dist/assets/jss/components/dropdownStyle.js +69 -69
- package/dist/assets/jss/components/footerStyle.js +19 -13
- package/dist/assets/jss/components/headerLinksStyle.js +45 -48
- package/dist/assets/jss/components/headerStyle.js +68 -65
- package/dist/assets/jss/components/navbarLinksStyle.js +66 -77
- package/dist/assets/jss/components/navbarStyle.js +79 -76
- package/dist/assets/jss/components/sidebarStyle.js +436 -436
- package/dist/assets/jss/components/typographyStyle.js +9 -3
- package/dist/assets/jss/rootStyle.js +96 -81
- package/dist/assets/jss/views/layoutStyle.js +44 -41
- package/dist/assets/jss/views/loginBasicStyle.js +1 -1
- package/dist/assets/jss/views/loginBusinessPortalStyle.js +1 -1
- package/dist/assets/jss/views/loginStyle.js +82 -77
- package/dist/components/AlertBar.js +50 -17
- package/dist/components/AlertItem.js +35 -12
- package/dist/components/AlertTemplate.js +30 -29
- package/dist/components/Button.js +62 -34
- package/dist/components/Calendar.js +140 -91
- package/dist/components/ConfirmationDialog.js +36 -11
- package/dist/components/DataGrid.js +512 -270
- package/dist/components/DataGridColumn.js +47 -22
- package/dist/components/DataGridFilter.js +186 -105
- package/dist/components/DataGridHeading.js +50 -32
- package/dist/components/Dialog.js +90 -35
- package/dist/components/DocumentTemplateDesigner.js +34 -16
- package/dist/components/DocumentTemplateDesignerComponent.css +0 -157
- package/dist/components/DocumentTemplateDesignerComponent.js +118 -62
- package/dist/components/DocumentTemplatePlaceholderDialog.js +52 -30
- package/dist/components/DocumentViewer.js +34 -18
- package/dist/components/DocumentViewerComponent.js +26 -9
- package/dist/components/ElementResizeHandler.js +229 -207
- package/dist/components/FileThumb.js +32 -10
- package/dist/components/Graph.js +153 -85
- package/dist/components/GraphNode.js +58 -38
- package/dist/components/HtmlPanel.js +67 -39
- package/dist/components/Icon.js +206 -166
- package/dist/components/LoadingIndicator.js +3 -3
- package/dist/components/LottieIcon.js +1 -1
- package/dist/components/PopupView.js +39 -19
- package/dist/components/Portlet.js +35 -19
- package/dist/components/RegularButton.js +28 -32
- package/dist/components/SignaturePanel.js +37 -17
- package/dist/components/SocketManager.js +178 -119
- package/dist/components/StepperTitleBar.js +62 -42
- package/dist/components/TabPage.js +30 -25
- package/dist/components/TabPanel.js +86 -33
- package/dist/components/TableCellContent.js +51 -32
- package/dist/components/TemplateDesigner.js +173 -121
- package/dist/components/TemplateItemEventHandler.js +335 -221
- package/dist/components/TemplateTable.js +183 -118
- package/dist/components/TitleBar.js +26 -11
- package/dist/components/Toolbar.js +67 -38
- package/dist/components/Tooltip.js +43 -35
- package/dist/components/Tree.js +85 -44
- package/dist/components/UseIsVisible.js +25 -4
- package/dist/components/card/Card.js +27 -33
- package/dist/components/card/CardAvatar.js +20 -19
- package/dist/components/card/CardBody.js +24 -27
- package/dist/components/card/CardFooter.js +23 -24
- package/dist/components/card/CardHeader.js +24 -27
- package/dist/components/card/CardIcon.js +17 -13
- package/dist/components/card/CardText.js +17 -13
- package/dist/components/customInput/CustomInput.js +22 -36
- package/dist/components/dashboard/{BasicBusinessAppDashboard.js → FoldingSideTabDashboard.js} +111 -63
- package/dist/components/dashboard/SideMenuModuleDashboard.css +60 -0
- package/dist/components/dashboard/SideMenuModuleDashboard.js +423 -0
- package/dist/components/dashboard/TopMenuModuleDashboard.js +138 -0
- package/dist/components/dashboard/components/Header.js +29 -12
- package/dist/components/dashboard/components/LeftDrawer.js +3 -5
- package/dist/components/dashboard/components/UserIdentity.js +2 -2
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +131 -87
- package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +488 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenu.js +64 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.css +65 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.js +556 -0
- package/dist/components/dashboard/components/portal/Timeline.js +1 -1
- package/dist/components/dashboard/components/portal/Workspace.js +5 -11
- package/dist/components/footer/Footer.js +31 -24
- package/dist/components/footer/HomeFooter.js +68 -34
- package/dist/components/form/AddressSearch.js +78 -42
- package/dist/components/form/AutoComplete.js +136 -55
- package/dist/components/form/BaseField.js +108 -56
- package/dist/components/form/Checkbox.js +10 -8
- package/dist/components/form/DatePicker.js +47 -25
- package/dist/components/form/FieldSet.js +217 -84
- package/dist/components/form/Form.js +334 -200
- package/dist/components/form/GridField.js +185 -82
- package/dist/components/form/IconField.js +9 -7
- package/dist/components/form/ImageEditor.js +141 -92
- package/dist/components/form/LabelField.js +12 -10
- package/dist/components/form/LookupField.js +54 -32
- package/dist/components/form/MultiFileUploadField.js +101 -67
- package/dist/components/form/RadioGroup.js +33 -16
- package/dist/components/form/Section.js +84 -34
- package/dist/components/form/SelectItem.js +55 -33
- package/dist/components/form/SignatureTemplateDesignerField.js +11 -9
- package/dist/components/form/Switch.js +10 -8
- package/dist/components/form/TextField.js +34 -16
- package/dist/components/form/TimePicker.js +19 -15
- package/dist/components/form/TransferList.js +153 -75
- package/dist/components/form/UploadField.js +183 -128
- package/dist/components/grid/GridContainer.js +12 -8
- package/dist/components/grid/GridItem.js +12 -8
- package/dist/components/layout/CollapsiblePanel.js +44 -18
- package/dist/components/layout/Layout.js +81 -40
- package/dist/components/layout/VC.css +1 -1
- package/dist/components/layout/View.js +136 -62
- package/dist/components/layout/ViewContainer.js +13 -11
- package/dist/components/layout/ViewPort.js +25 -10
- package/dist/components/layout/Window.js +87 -53
- package/dist/components/layout/WindowViewPort.js +38 -16
- package/dist/components/media/ClosablePanel.js +7 -7
- package/dist/components/media/LobbyWaitingList.js +7 -9
- package/dist/components/media/MediaSoupHelper.js +379 -187
- package/dist/components/media/SideBarContent.js +22 -14
- package/dist/components/media/SocketRequest.js +5 -1
- package/dist/components/media/SocketResponse.js +5 -1
- package/dist/components/media/Timer.js +35 -15
- package/dist/components/media/Toolbar.css +5 -0
- package/dist/components/media/Toolbar.js +220 -102
- package/dist/components/media/ToolbarButton.js +82 -33
- package/dist/components/media/Toolbar_bck.js +142 -70
- package/dist/components/media/Tracks.js +31 -28
- package/dist/components/media/TrainingRoom.js +284 -121
- package/dist/components/media/Transports.js +27 -24
- package/dist/components/media/VCEventManager.js +95 -31
- package/dist/components/media/VCEventType.js +5 -1
- package/dist/components/media/VCParticipantList.js +40 -14
- package/dist/components/media/VCParticipantListItem.js +92 -41
- package/dist/components/media/VCRoom.js +29 -11
- package/dist/components/media/VCRoomParticipant.js +488 -242
- package/dist/components/media/VCRoomRecorder.js +236 -175
- package/dist/components/media/VCRoomWorkspace.js +505 -245
- package/dist/components/media/Video.js +89 -25
- package/dist/components/media/VideoPlayer.js +56 -22
- package/dist/components/media/chat/ChatRoom.js +255 -132
- package/dist/components/media/chat/ChatRoomItem.js +35 -14
- package/dist/components/media/chat/ChatRoomList.js +43 -13
- package/dist/components/menu/CollapsibleMenu.js +39 -20
- package/dist/components/menu/MenuBars.js +81 -48
- package/dist/components/menu/MenuButton.js +95 -60
- package/dist/components/menu/MenuItem.js +28 -9
- package/dist/components/menu/MenuLink.js +12 -10
- package/dist/components/menu/PopupMenu.js +16 -12
- package/dist/components/navbars/AuthNavbar.js +27 -18
- package/dist/components/navbars/HomeNavbar.js +243 -194
- package/dist/components/navbars/PortalNavbar.js +50 -26
- package/dist/components/signatures/AgilitySignaturePanel.js +96 -39
- package/dist/components/signatures/AlertItem.js +36 -13
- package/dist/components/signatures/Card.js +4 -4
- package/dist/components/signatures/DocumentContainer.js +141 -57
- package/dist/components/signatures/ImageSignatureInput.js +90 -59
- package/dist/components/signatures/MenuButton.js +53 -33
- package/dist/components/signatures/Prompt.js +26 -5
- package/dist/components/signatures/ResponsiveTable.js +302 -197
- package/dist/components/signatures/SearchView.js +77 -36
- package/dist/components/signatures/SignatorySearch.js +30 -10
- package/dist/components/signatures/SignatorySearchForm.js +35 -18
- package/dist/components/signatures/SignatureInput.js +56 -26
- package/dist/components/signatures/SignatureInputProps.js +107 -55
- package/dist/components/signatures/SignatureTemplateDesigner.js +340 -235
- package/dist/components/signatures/Toolbar.js +135 -94
- package/dist/components/signatures/ViewUtils.js +273 -224
- package/dist/components/typography/Danger.js +3 -5
- package/dist/components/typography/Info.js +3 -5
- package/dist/components/typography/Link.js +3 -5
- package/dist/event/ActionHandlers.js +57 -43
- package/dist/event/Event.js +16 -13
- package/dist/event/EventListener.js +39 -36
- package/dist/event/EventType.js +5 -1
- package/dist/event/LoadDataActionHandler.js +20 -8
- package/dist/event/Observable.js +323 -142
- package/dist/event/RouteActionHandler.js +139 -125
- package/dist/event/ScriptActionHandler.js +20 -8
- package/dist/event/ServiceCallActionHandler.js +51 -39
- package/dist/event/SignalGraphActionHandler.js +19 -7
- package/dist/js/Addresses.js +38 -24
- package/dist/js/Calendar.js +168 -161
- package/dist/js/DynamicLib.js +14 -11
- package/dist/js/Media.js +213 -120
- package/dist/js/Validators.js +6 -5
- package/dist/js/Windows.js +48 -47
- package/dist/redux/store/ConfigureStore.js +17 -9
- package/dist/redux/store/DashboardStore.js +110 -43
- package/dist/redux/store/History.js +1 -1
- package/dist/redux/store/SecurityStore.js +59 -20
- package/dist/security/TokenManager.js +44 -30
- package/dist/theme-default.js +1 -1
- package/dist/view/Dashboard.js +230 -137
- package/dist/view/PortalDashboard.js +5 -5
- package/dist/view/Settings.js +4 -2
- package/dist/view/Views.js +27 -14
- package/dist/view/security/ChangePasswordBasic.js +97 -40
- package/dist/view/security/ForgotPassword.js +59 -22
- package/dist/view/security/ForgotPasswordBasic.js +62 -21
- package/dist/view/security/Login.js +64 -24
- package/dist/view/security/LoginBasic.js +65 -26
- package/dist/view/security/LoginInteractionPortal.js +62 -25
- package/dist/view/security/ResetPassword.js +65 -23
- package/dist/view/security/ResetPasswordBasic.js +91 -37
- package/dist/view/security/Security.js +12 -12
- package/package.json +1 -2
- package/dist/components/dashboard/BusinessPortalAppDashboard.js +0 -154
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +0 -447
- /package/dist/components/dashboard/{BusinessPortalAppDashboard.css → TopMenuModuleDashboard.css} +0 -0
- /package/dist/components/dashboard/components/blackDashboard/sidebar/{Sidebar.css → FoldingTabSidebar.css} +0 -0
|
@@ -9,101 +9,151 @@ 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
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
|
+
|
|
20
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
21
|
+
|
|
22
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
23
|
+
|
|
12
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; }
|
|
13
25
|
|
|
14
|
-
|
|
26
|
+
var parse = function parse(val) {
|
|
15
27
|
return parseFloat(val.replace('px', ''));
|
|
16
28
|
};
|
|
17
29
|
|
|
18
|
-
|
|
30
|
+
var boundCheck = function boundCheck(pos, mousePos) {
|
|
19
31
|
return pos - 8 < mousePos && pos + 8 > mousePos;
|
|
20
32
|
};
|
|
21
33
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
34
|
+
var TemplateItemEventHandler = /*#__PURE__*/function () {
|
|
35
|
+
function TemplateItemEventHandler() {
|
|
36
|
+
var _this = this;
|
|
37
|
+
|
|
38
|
+
_classCallCheck(this, TemplateItemEventHandler);
|
|
39
|
+
|
|
40
|
+
_defineProperty(this, "dragStart", function (event) {
|
|
41
|
+
if (_this.selectedNode === event.target) {
|
|
42
|
+
if (document.body.style.cursor !== "move" || _this.resizingTableColumn) {
|
|
43
|
+
if (!_this.resizingTableColumn || _this.resizingBoundaryTableColumn) {
|
|
44
|
+
_this.currentResizeNode = event.target;
|
|
29
45
|
}
|
|
30
46
|
|
|
31
47
|
event.preventDefault();
|
|
32
48
|
}
|
|
33
49
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
50
|
+
var parentLeft = event.target.parentElement.offsetLeft;
|
|
51
|
+
var parentTop = event.target.parentElement.offsetTop;
|
|
52
|
+
_this.dragOffset.x = event.clientX - (parentLeft + parseFloat(event.target.style.left.replace('px', '')));
|
|
53
|
+
_this.dragOffset.y = event.clientY - (parentTop + parseFloat(event.target.style.top.replace('px', '')));
|
|
38
54
|
}
|
|
39
55
|
});
|
|
40
56
|
|
|
41
|
-
_defineProperty(this, "dragOver", event
|
|
57
|
+
_defineProperty(this, "dragOver", function (event) {
|
|
42
58
|
event.preventDefault();
|
|
43
59
|
});
|
|
44
60
|
|
|
45
|
-
_defineProperty(this, "initDragAndDrop", (selectionHandler, container)
|
|
46
|
-
|
|
47
|
-
setTimeout(()
|
|
48
|
-
|
|
61
|
+
_defineProperty(this, "initDragAndDrop", function (selectionHandler, container) {
|
|
62
|
+
_this.dragOffset = {};
|
|
63
|
+
setTimeout(function () {
|
|
64
|
+
var elements = document.getElementsByClassName("dropTarget");
|
|
49
65
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
66
|
+
var _iterator = _createForOfIteratorHelper(elements),
|
|
67
|
+
_step;
|
|
68
|
+
|
|
69
|
+
try {
|
|
70
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
71
|
+
var element = _step.value;
|
|
72
|
+
element.addEventListener("dragstart", _this.dragStart, false);
|
|
73
|
+
element.addEventListener("dragover", _this.dragOver, false);
|
|
74
|
+
}
|
|
75
|
+
} catch (err) {
|
|
76
|
+
_iterator.e(err);
|
|
77
|
+
} finally {
|
|
78
|
+
_iterator.f();
|
|
53
79
|
}
|
|
54
80
|
}, 2000);
|
|
55
|
-
container.addEventListener("mousedown",
|
|
56
|
-
container.addEventListener("mouseup",
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
81
|
+
container.addEventListener("mousedown", _this.handleMouseDown);
|
|
82
|
+
container.addEventListener("mouseup", function (event) {
|
|
83
|
+
return _this.handleMouseUp(event, selectionHandler);
|
|
84
|
+
});
|
|
85
|
+
container.addEventListener("mousemove", _this.handleMouseMove);
|
|
86
|
+
var parent = document.getElementsByClassName('__sys_placeholders')[0];
|
|
87
|
+
var placeHolders = document.getElementsByClassName('_draggable_');
|
|
88
|
+
|
|
89
|
+
var dropTarget = _this.getDropTarget(parent);
|
|
90
|
+
|
|
91
|
+
var _iterator2 = _createForOfIteratorHelper(placeHolders),
|
|
92
|
+
_step2;
|
|
93
|
+
|
|
94
|
+
try {
|
|
95
|
+
var _loop = function _loop() {
|
|
96
|
+
var placeHolder = _step2.value;
|
|
97
|
+
placeHolder.addEventListener('mousemove', function (event) {
|
|
98
|
+
return _this.handleItemMouseMove(event, parent);
|
|
99
|
+
}, false);
|
|
100
|
+
placeHolder.addEventListener('mouseout', _this.handleItemMouseOut, false);
|
|
101
|
+
placeHolder.addEventListener('mouseup', function (event) {
|
|
102
|
+
return _this.handleItemMouseClick(placeHolder, placeHolder.id, selectionHandler);
|
|
103
|
+
}, false);
|
|
104
|
+
placeHolder.addEventListener('dragend', function (event) {
|
|
105
|
+
return _this.handleItemDrop(event, document.getElementsByClassName('dropTarget')[0]);
|
|
106
|
+
}, false);
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
110
|
+
_loop();
|
|
111
|
+
}
|
|
112
|
+
} catch (err) {
|
|
113
|
+
_iterator2.e(err);
|
|
114
|
+
} finally {
|
|
115
|
+
_iterator2.f();
|
|
67
116
|
}
|
|
68
117
|
});
|
|
69
118
|
|
|
70
|
-
_defineProperty(this, "handleMouseMove", event
|
|
71
|
-
|
|
119
|
+
_defineProperty(this, "handleMouseMove", function (event) {
|
|
120
|
+
_this.resizeNode(event, _this.currentResizeNode);
|
|
72
121
|
});
|
|
73
122
|
|
|
74
|
-
_defineProperty(this, "handleMouseDown", event
|
|
75
|
-
|
|
123
|
+
_defineProperty(this, "handleMouseDown", function (event) {
|
|
124
|
+
_this.mouseDown = true;
|
|
76
125
|
});
|
|
77
126
|
|
|
78
|
-
_defineProperty(this, "handleMouseUp", (event, selectionHandler)
|
|
79
|
-
|
|
80
|
-
|
|
127
|
+
_defineProperty(this, "handleMouseUp", function (event, selectionHandler) {
|
|
128
|
+
_this.mouseDown = false;
|
|
129
|
+
_this.currentResizeNode = null;
|
|
81
130
|
document.body.style.cursor = "default";
|
|
82
131
|
|
|
83
132
|
if (typeof event.target.className === 'string' && event.target.className !== '_draggable_' && !event.target.className.startsWith('_item_table')) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
133
|
+
_this.resetBorders();
|
|
134
|
+
|
|
135
|
+
_this.selectedNode = null;
|
|
136
|
+
_this.selectedNodeInitPosition = null;
|
|
87
137
|
selectionHandler(null);
|
|
88
138
|
}
|
|
89
139
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
140
|
+
_this.tableItemPreResizeWidth = null;
|
|
141
|
+
_this.tableItemPreResizeHeight = null;
|
|
142
|
+
_this.lastColItemPreResizeWidth = null;
|
|
143
|
+
_this.firstColItemPreResizeWidth = null;
|
|
144
|
+
_this.firstRowItemPreResizeHeight = null;
|
|
145
|
+
_this.resizingTableColumn = false;
|
|
96
146
|
});
|
|
97
147
|
|
|
98
|
-
_defineProperty(this, "handleGrabRelease", (event, props, selectionHandler)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
148
|
+
_defineProperty(this, "handleGrabRelease", function (event, props, selectionHandler) {
|
|
149
|
+
var width = props.width;
|
|
150
|
+
var height = props.height;
|
|
151
|
+
var parent = event.target;
|
|
152
|
+
var dropTarget = document.getElementsByClassName('dropTarget')[0]; //this.getDropTarget(parent);
|
|
103
153
|
|
|
104
154
|
if (dropTarget) {
|
|
105
|
-
|
|
106
|
-
|
|
155
|
+
var container = document.getElementById('templateContainer');
|
|
156
|
+
var node = document.createElement("div");
|
|
107
157
|
node.id = props.id;
|
|
108
158
|
node.style.lineHeight = event.target.style.lineHeight;
|
|
109
159
|
node.style.left = (props.left ? props.left : event.clientX - dropTarget.offsetLeft) + 'px';
|
|
@@ -114,11 +164,11 @@ class TemplateItemEventHandler {
|
|
|
114
164
|
node.setAttribute("draggable", true);
|
|
115
165
|
|
|
116
166
|
if (props.type === 'TABLE') {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}, parent
|
|
121
|
-
return
|
|
167
|
+
var table = new _TemplateTable.default(props.table, node).build(function (resizing, boundary) {
|
|
168
|
+
_this.resizingTableColumn = resizing;
|
|
169
|
+
_this.resizingBoundaryTableColumn = boundary;
|
|
170
|
+
}, function (parent) {
|
|
171
|
+
return _this.selectedNode === parent;
|
|
122
172
|
});
|
|
123
173
|
node.appendChild(table);
|
|
124
174
|
node.style.padding = '1px';
|
|
@@ -130,14 +180,21 @@ class TemplateItemEventHandler {
|
|
|
130
180
|
node.innerText = props.description;
|
|
131
181
|
}
|
|
132
182
|
|
|
133
|
-
node.addEventListener('dragend',
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
node.addEventListener('
|
|
183
|
+
node.addEventListener('dragend', function (event) {
|
|
184
|
+
return _this.handleItemDrop(event, dropTarget);
|
|
185
|
+
}, false);
|
|
186
|
+
var placeHolders = dropTarget.getElementsByClassName('__sys_placeholders')[0];
|
|
187
|
+
node.addEventListener('mousemove', function (event) {
|
|
188
|
+
return _this.handleItemMouseMove(event, placeHolders);
|
|
189
|
+
}, false);
|
|
190
|
+
node.addEventListener('mouseout', _this.handleItemMouseOut, false);
|
|
191
|
+
node.addEventListener('mouseup', function (event) {
|
|
192
|
+
return _this.handleItemMouseClick(node, props.id, selectionHandler);
|
|
193
|
+
}, false);
|
|
138
194
|
placeHolders.appendChild(node);
|
|
139
|
-
|
|
140
|
-
|
|
195
|
+
_this.selectedNode = node;
|
|
196
|
+
|
|
197
|
+
_this.setSelectedInitNodePos();
|
|
141
198
|
}
|
|
142
199
|
|
|
143
200
|
if (typeof event.target.className === 'string' && !event.target.className.includes("paletteButton") && !event.target.className.includes("paletteButtonLabel") && !event.target.className.includes("paletteButtonSelected")) {
|
|
@@ -145,38 +202,40 @@ class TemplateItemEventHandler {
|
|
|
145
202
|
}
|
|
146
203
|
});
|
|
147
204
|
|
|
148
|
-
_defineProperty(this, "handleItemDrop", (event, target)
|
|
149
|
-
console.log("\n\n\n\nclientY : " + event.clientY + " offsetTop : " + target.offsetTop + " dragOffset.y : " +
|
|
150
|
-
event.target.style.left = event.clientX - target.offsetLeft -
|
|
151
|
-
event.target.style.top = event.clientY - target.offsetTop -
|
|
205
|
+
_defineProperty(this, "handleItemDrop", function (event, target) {
|
|
206
|
+
console.log("\n\n\n\nclientY : " + event.clientY + " offsetTop : " + target.offsetTop + " dragOffset.y : " + _this.dragOffset.y);
|
|
207
|
+
event.target.style.left = event.clientX - target.offsetLeft - _this.dragOffset.x + 'px';
|
|
208
|
+
event.target.style.top = event.clientY - target.offsetTop - _this.dragOffset.y + 'px';
|
|
152
209
|
event.preventDefault();
|
|
153
|
-
|
|
154
|
-
|
|
210
|
+
_this.currentResizeNode = null;
|
|
211
|
+
_this.mouseDown = false;
|
|
155
212
|
document.body.style.cursor = "default";
|
|
156
|
-
|
|
213
|
+
|
|
214
|
+
_this.resetBorders();
|
|
215
|
+
|
|
157
216
|
event.target.style.border = '2px dashed green';
|
|
158
217
|
});
|
|
159
218
|
|
|
160
|
-
_defineProperty(this, "resizeNode", (event, node)
|
|
219
|
+
_defineProperty(this, "resizeNode", function (event, node) {
|
|
161
220
|
//console.log(this.mouseDown + " : " + node + " : " + this.resizingTableColumn);
|
|
162
|
-
if (
|
|
163
|
-
|
|
221
|
+
if (_this.mouseDown && node) {
|
|
222
|
+
var container = document.getElementById('templateContainer');
|
|
164
223
|
|
|
165
224
|
if (container) {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
225
|
+
var mouseX = event.clientX - _this.resizingItemParent.offsetLeft + container.scrollLeft;
|
|
226
|
+
var mouseY = event.clientY - _this.resizingItemParent.offsetTop + container.scrollTop;
|
|
227
|
+
var resizeSpec = {
|
|
169
228
|
leftOffset: 0,
|
|
170
229
|
rightOffset: 0,
|
|
171
230
|
topOffset: 0,
|
|
172
231
|
bottomOffset: 0
|
|
173
232
|
};
|
|
174
233
|
|
|
175
|
-
if (
|
|
176
|
-
|
|
177
|
-
|
|
234
|
+
if (_this.boundCheckLeft) {
|
|
235
|
+
var widthDiff = mouseX - parse(node.style.left);
|
|
236
|
+
var newWidth = parse(node.style.width) - widthDiff; //console.log("\n\n\n SETTING SPEC LEFT : " + this.selectedNodeInitPosition.left);
|
|
178
237
|
|
|
179
|
-
resizeSpec.leftOffset = mouseX -
|
|
238
|
+
resizeSpec.leftOffset = mouseX - _this.selectedNodeInitPosition.left;
|
|
180
239
|
|
|
181
240
|
if (newWidth >= 20) {
|
|
182
241
|
node.style.width = newWidth + 'px';
|
|
@@ -184,19 +243,20 @@ class TemplateItemEventHandler {
|
|
|
184
243
|
}
|
|
185
244
|
}
|
|
186
245
|
|
|
187
|
-
if (
|
|
188
|
-
|
|
189
|
-
resizeSpec.rightOffset = newWidth - this.selectedNodeInitPosition.width;
|
|
246
|
+
if (_this.boundCheckRight) {
|
|
247
|
+
var _newWidth = mouseX - parse(node.style.left);
|
|
190
248
|
|
|
191
|
-
|
|
192
|
-
|
|
249
|
+
resizeSpec.rightOffset = _newWidth - _this.selectedNodeInitPosition.width;
|
|
250
|
+
|
|
251
|
+
if (_newWidth >= 20) {
|
|
252
|
+
node.style.width = _newWidth + 'px';
|
|
193
253
|
}
|
|
194
254
|
}
|
|
195
255
|
|
|
196
|
-
if (
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
resizeSpec.topOffset = mouseY -
|
|
256
|
+
if (_this.boundCheckTop) {
|
|
257
|
+
var heightDiff = mouseY - parse(node.style.top);
|
|
258
|
+
var newHeight = parse(node.style.height) - heightDiff;
|
|
259
|
+
resizeSpec.topOffset = mouseY - _this.selectedNodeInitPosition.top;
|
|
200
260
|
|
|
201
261
|
if (newHeight >= 20) {
|
|
202
262
|
node.style.height = newHeight + 'px';
|
|
@@ -206,200 +266,254 @@ class TemplateItemEventHandler {
|
|
|
206
266
|
resizeSpec.topResized = true;
|
|
207
267
|
}
|
|
208
268
|
|
|
209
|
-
if (
|
|
210
|
-
|
|
211
|
-
resizeSpec.bottomOffset = newHeight - this.selectedNodeInitPosition.height;
|
|
269
|
+
if (_this.boundCheckBottom) {
|
|
270
|
+
var _newHeight = mouseY - parse(node.style.top);
|
|
212
271
|
|
|
213
|
-
|
|
214
|
-
|
|
272
|
+
resizeSpec.bottomOffset = _newHeight - _this.selectedNodeInitPosition.height;
|
|
273
|
+
|
|
274
|
+
if (_newHeight >= 20) {
|
|
275
|
+
node.style.height = _newHeight + 'px';
|
|
215
276
|
}
|
|
216
277
|
|
|
217
278
|
resizeSpec.bottomResized = true;
|
|
218
279
|
}
|
|
219
280
|
|
|
220
|
-
|
|
281
|
+
_this.resizeTables(node, resizeSpec);
|
|
221
282
|
}
|
|
222
283
|
}
|
|
223
284
|
});
|
|
224
285
|
|
|
225
|
-
_defineProperty(this, "updateCursor", (node, event, itemParent)
|
|
226
|
-
if (!
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
if (
|
|
286
|
+
_defineProperty(this, "updateCursor", function (node, event, itemParent) {
|
|
287
|
+
if (!_this.mouseDown && _this.selectedNode) {
|
|
288
|
+
var container = document.getElementById('templateContainer');
|
|
289
|
+
var left = parse(node.style.left) + container.offsetLeft;
|
|
290
|
+
var right = left + parse(node.style.width);
|
|
291
|
+
var top = parse(node.style.top) + itemParent.offsetTop;
|
|
292
|
+
var bottom = top + parse(node.style.height);
|
|
293
|
+
var mouseX = event.clientX + container.scrollLeft;
|
|
294
|
+
var mouseY = event.clientY + container.scrollTop;
|
|
295
|
+
_this.boundCheckTop = boundCheck(top, mouseY);
|
|
296
|
+
_this.boundCheckLeft = boundCheck(left, mouseX);
|
|
297
|
+
_this.boundCheckRight = boundCheck(right, mouseX);
|
|
298
|
+
_this.boundCheckBottom = boundCheck(bottom, mouseY);
|
|
299
|
+
|
|
300
|
+
if (_this.boundCheckTop && _this.boundCheckLeft || _this.boundCheckBottom && _this.boundCheckRight) {
|
|
240
301
|
document.body.style.cursor = "nwse-resize";
|
|
241
|
-
} else if (
|
|
302
|
+
} else if (_this.boundCheckTop && _this.boundCheckRight || _this.boundCheckBottom && _this.boundCheckLeft) {
|
|
242
303
|
document.body.style.cursor = "nesw-resize";
|
|
243
|
-
} else if (
|
|
304
|
+
} else if (_this.boundCheckTop || _this.boundCheckBottom) {
|
|
244
305
|
document.body.style.cursor = "ns-resize";
|
|
245
|
-
} else if (
|
|
306
|
+
} else if (_this.boundCheckLeft || _this.boundCheckRight) {
|
|
246
307
|
document.body.style.cursor = "ew-resize";
|
|
247
308
|
} else {
|
|
248
309
|
document.body.style.cursor = "move";
|
|
249
310
|
}
|
|
250
311
|
|
|
251
|
-
|
|
312
|
+
_this.resizingItemParent = itemParent;
|
|
252
313
|
}
|
|
253
314
|
});
|
|
254
315
|
|
|
255
|
-
_defineProperty(this, "resetBorders", ()
|
|
256
|
-
|
|
316
|
+
_defineProperty(this, "resetBorders", function () {
|
|
317
|
+
var items = document.getElementsByClassName("_draggable_");
|
|
318
|
+
|
|
319
|
+
var _iterator3 = _createForOfIteratorHelper(items),
|
|
320
|
+
_step3;
|
|
257
321
|
|
|
258
|
-
|
|
259
|
-
|
|
322
|
+
try {
|
|
323
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
324
|
+
var item = _step3.value;
|
|
325
|
+
item.style.border = 'none';
|
|
326
|
+
}
|
|
327
|
+
} catch (err) {
|
|
328
|
+
_iterator3.e(err);
|
|
329
|
+
} finally {
|
|
330
|
+
_iterator3.f();
|
|
260
331
|
}
|
|
261
332
|
});
|
|
262
333
|
|
|
263
|
-
_defineProperty(this, "handleItemMouseOut", event
|
|
264
|
-
if (!
|
|
334
|
+
_defineProperty(this, "handleItemMouseOut", function (event) {
|
|
335
|
+
if (!_this.currentResizeNode) {
|
|
265
336
|
document.body.style.cursor = "default";
|
|
266
337
|
}
|
|
267
338
|
});
|
|
268
339
|
|
|
269
|
-
_defineProperty(this, "handleItemMouseMove", (event, itemParent)
|
|
270
|
-
|
|
271
|
-
|
|
340
|
+
_defineProperty(this, "handleItemMouseMove", function (event, itemParent) {
|
|
341
|
+
var node = event.target;
|
|
342
|
+
|
|
343
|
+
_this.updateCursor(node, event, itemParent);
|
|
272
344
|
});
|
|
273
345
|
|
|
274
|
-
_defineProperty(this, "handleItemMouseClick", (node, id, selectionHandler)
|
|
275
|
-
|
|
346
|
+
_defineProperty(this, "handleItemMouseClick", function (node, id, selectionHandler) {
|
|
347
|
+
_this.resetBorders();
|
|
348
|
+
|
|
276
349
|
node.style.border = '2px dashed green';
|
|
277
|
-
|
|
278
|
-
|
|
350
|
+
_this.selectedNode = node;
|
|
351
|
+
|
|
352
|
+
_this.setSelectedInitNodePos();
|
|
353
|
+
|
|
279
354
|
selectionHandler(id, node);
|
|
280
355
|
});
|
|
281
356
|
}
|
|
282
357
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
358
|
+
_createClass(TemplateItemEventHandler, [{
|
|
359
|
+
key: "getDropTarget",
|
|
360
|
+
value: function getDropTarget(node) {
|
|
361
|
+
var parent = node;
|
|
362
|
+
var dropTarget = null;
|
|
363
|
+
|
|
364
|
+
while (parent) {
|
|
365
|
+
if (parent.className === 'dropTarget') {
|
|
366
|
+
dropTarget = parent;
|
|
367
|
+
break;
|
|
368
|
+
}
|
|
286
369
|
|
|
287
|
-
|
|
288
|
-
if (parent.className === 'dropTarget') {
|
|
289
|
-
dropTarget = parent;
|
|
290
|
-
break;
|
|
370
|
+
parent = parent.parentElement;
|
|
291
371
|
}
|
|
292
372
|
|
|
293
|
-
|
|
373
|
+
return dropTarget;
|
|
294
374
|
}
|
|
375
|
+
}, {
|
|
376
|
+
key: "resizeTables",
|
|
377
|
+
value: function resizeTables(node, spec) {
|
|
378
|
+
var tables = node.getElementsByClassName('_item_table');
|
|
379
|
+
var table = tables && tables.length > 0 ? tables[0] : null;
|
|
380
|
+
|
|
381
|
+
if (!this.tableItemPreResizeWidth && table) {
|
|
382
|
+
this.tableItemPreResizeWidth = parse(table.style.width);
|
|
383
|
+
}
|
|
295
384
|
|
|
296
|
-
|
|
297
|
-
|
|
385
|
+
if (!this.tableItemPreResizeHeight && table) {
|
|
386
|
+
this.tableItemPreResizeHeight = parse(table.style.height);
|
|
387
|
+
}
|
|
298
388
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
389
|
+
if (table) {
|
|
390
|
+
if (spec.rightOffset !== 0) {
|
|
391
|
+
var numCols = table['data-num-cols'];
|
|
392
|
+
var lastCols = node.getElementsByClassName("_item_table_col_".concat(numCols - 1));
|
|
393
|
+
var newWidth;
|
|
394
|
+
var resized = true;
|
|
302
395
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
}
|
|
396
|
+
var _iterator4 = _createForOfIteratorHelper(lastCols),
|
|
397
|
+
_step4;
|
|
306
398
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
399
|
+
try {
|
|
400
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
401
|
+
var lastCol = _step4.value;
|
|
310
402
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
let lastCols = node.getElementsByClassName("_item_table_col_".concat(numCols - 1));
|
|
315
|
-
let newWidth;
|
|
316
|
-
let resized = true;
|
|
403
|
+
if (!this.lastColItemPreResizeWidth) {
|
|
404
|
+
this.lastColItemPreResizeWidth = parse(lastCol.style.width);
|
|
405
|
+
}
|
|
317
406
|
|
|
318
|
-
|
|
319
|
-
if (!this.lastColItemPreResizeWidth) {
|
|
320
|
-
this.lastColItemPreResizeWidth = parse(lastCol.style.width);
|
|
321
|
-
}
|
|
407
|
+
newWidth = this.lastColItemPreResizeWidth + spec.rightOffset; //console.log(spec.leftOffset + " : " + spec.rightOffset + " : " + this.lastColItemPreResizeWidth);
|
|
322
408
|
|
|
323
|
-
|
|
409
|
+
if (newWidth >= 32) {
|
|
410
|
+
lastCol.style.width = newWidth + 'px';
|
|
411
|
+
} else {
|
|
412
|
+
resized = false;
|
|
413
|
+
break;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
} catch (err) {
|
|
417
|
+
_iterator4.e(err);
|
|
418
|
+
} finally {
|
|
419
|
+
_iterator4.f();
|
|
420
|
+
}
|
|
324
421
|
|
|
325
|
-
if (
|
|
326
|
-
|
|
327
|
-
} else {
|
|
328
|
-
resized = false;
|
|
329
|
-
break;
|
|
422
|
+
if (resized) {
|
|
423
|
+
table.style.width = this.tableItemPreResizeWidth + spec.rightOffset + 'px';
|
|
330
424
|
}
|
|
331
425
|
}
|
|
332
426
|
|
|
333
|
-
if (
|
|
334
|
-
|
|
335
|
-
}
|
|
336
|
-
}
|
|
427
|
+
if (spec.leftOffset !== 0) {
|
|
428
|
+
var _newWidth2;
|
|
337
429
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
let firstCols = node.getElementsByClassName('_item_table_col_0');
|
|
341
|
-
let resized = true;
|
|
430
|
+
var firstCols = node.getElementsByClassName('_item_table_col_0');
|
|
431
|
+
var _resized = true;
|
|
342
432
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
this.firstColItemPreResizeWidth = parse(firstCol.style.width);
|
|
346
|
-
}
|
|
433
|
+
var _iterator5 = _createForOfIteratorHelper(firstCols),
|
|
434
|
+
_step5;
|
|
347
435
|
|
|
348
|
-
|
|
436
|
+
try {
|
|
437
|
+
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
438
|
+
var firstCol = _step5.value;
|
|
349
439
|
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
440
|
+
if (!this.firstColItemPreResizeWidth) {
|
|
441
|
+
this.firstColItemPreResizeWidth = parse(firstCol.style.width);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
_newWidth2 = this.firstColItemPreResizeWidth + spec.leftOffset * -1;
|
|
445
|
+
|
|
446
|
+
if (_newWidth2 >= 32) {
|
|
447
|
+
firstCol.style.width = _newWidth2 + 'px';
|
|
448
|
+
} else {
|
|
449
|
+
_resized = false;
|
|
450
|
+
break;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
} catch (err) {
|
|
454
|
+
_iterator5.e(err);
|
|
455
|
+
} finally {
|
|
456
|
+
_iterator5.f();
|
|
355
457
|
}
|
|
356
|
-
}
|
|
357
458
|
|
|
358
|
-
|
|
359
|
-
|
|
459
|
+
if (_resized) {
|
|
460
|
+
table.style.width = this.tableItemPreResizeWidth + spec.leftOffset * -1 + 'px';
|
|
461
|
+
}
|
|
360
462
|
}
|
|
361
|
-
}
|
|
362
463
|
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
464
|
+
if (spec.topOffset !== 0 || spec.bottomOffset !== 0) {
|
|
465
|
+
var newHeight;
|
|
466
|
+
var rows = node.getElementsByClassName('_item_table_tr');
|
|
366
467
|
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
468
|
+
if (!this.firstRowItemPreResizeHeight) {
|
|
469
|
+
this.firstRowItemPreResizeHeight = parse(rows[0].style.height);
|
|
470
|
+
}
|
|
370
471
|
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
472
|
+
if (spec.topOffset !== 0) {
|
|
473
|
+
newHeight = this.firstRowItemPreResizeHeight - spec.topOffset / rows.length;
|
|
474
|
+
} else if (spec.bottomOffset !== 0) {
|
|
475
|
+
newHeight = this.firstRowItemPreResizeHeight + spec.bottomOffset / rows.length;
|
|
476
|
+
}
|
|
376
477
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
}
|
|
478
|
+
var _iterator6 = _createForOfIteratorHelper(rows),
|
|
479
|
+
_step6;
|
|
380
480
|
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
481
|
+
try {
|
|
482
|
+
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
483
|
+
var row = _step6.value;
|
|
484
|
+
row.style.height = newHeight + 'px';
|
|
485
|
+
}
|
|
486
|
+
} catch (err) {
|
|
487
|
+
_iterator6.e(err);
|
|
488
|
+
} finally {
|
|
489
|
+
_iterator6.f();
|
|
490
|
+
}
|
|
384
491
|
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
492
|
+
if (spec.topOffset !== 0) {
|
|
493
|
+
table.style.height = this.tableItemPreResizeHeight - spec.topOffset + 'px';
|
|
494
|
+
}
|
|
388
495
|
|
|
389
|
-
|
|
496
|
+
if (spec.bottomOffset !== 0) {
|
|
497
|
+
table.style.height = this.tableItemPreResizeHeight + spec.bottomOffset + 'px';
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
table.style.height = this.tableItemPreResizeHeight + (spec.topOffset !== 0 ? spec.topOffset : spec.bottomOffset) + 'px';
|
|
501
|
+
}
|
|
390
502
|
}
|
|
391
503
|
}
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
504
|
+
}, {
|
|
505
|
+
key: "setSelectedInitNodePos",
|
|
506
|
+
value: function setSelectedInitNodePos() {
|
|
507
|
+
this.selectedNodeInitPosition = {
|
|
508
|
+
top: parse(this.selectedNode.style.top),
|
|
509
|
+
left: parse(this.selectedNode.style.left),
|
|
510
|
+
width: parse(this.selectedNode.style.width),
|
|
511
|
+
height: parse(this.selectedNode.style.height)
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
}]);
|
|
402
515
|
|
|
403
|
-
|
|
516
|
+
return TemplateItemEventHandler;
|
|
517
|
+
}();
|
|
404
518
|
|
|
405
519
|
exports.default = TemplateItemEventHandler;
|