hoeditor-web 2.0.53 → 2.0.54-rc.1
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/lib/hoeditor.common.js +101 -52
- package/lib/hoeditor.css +853 -2
- package/lib/hoeditor.umd.js +101 -52
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -15955,11 +15955,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
15955
15955
|
|
|
15956
15956
|
curArea.areaComments.set(commentID, comment);
|
|
15957
15957
|
hoEditorFactory.drawTree.commentsMap.set(commentID, comment);
|
|
15958
|
-
curArea.drawComments();
|
|
15959
|
-
|
|
15958
|
+
curArea.drawComments(); //const newEndpath = endNode.getNodePath();
|
|
15959
|
+
|
|
15960
15960
|
hoEditorFactory.undoService.begin();
|
|
15961
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, startPath,
|
|
15961
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, startPath, endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .Operate */ .p("insertComment", commentID)));
|
|
15962
15962
|
hoEditorFactory.undoService.commit();
|
|
15963
|
+
var newEndpath = endNode.getNodePath();
|
|
15963
15964
|
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, newEndpath, newEndpath);
|
|
15964
15965
|
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(newRange, newRange); //选中范围变化事件
|
|
15965
15966
|
|
|
@@ -16777,9 +16778,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
16777
16778
|
node.customProperty = customProperty;
|
|
16778
16779
|
node.imgWidth = imgWidth;
|
|
16779
16780
|
node.imgHeight = imgHeight;
|
|
16780
|
-
node.imgSrc = imgSrc;
|
|
16781
16781
|
node.fingerPrintSrc = fingerPrintSrc ? fingerPrintSrc : "";
|
|
16782
16782
|
node.fingerPosition = fingerPosition ? fingerPosition : 0;
|
|
16783
|
+
node.imgSrc = imgSrc;
|
|
16783
16784
|
|
|
16784
16785
|
if (type == 1 && node.signType == 1) {
|
|
16785
16786
|
node.isFront = true;
|
|
@@ -16829,6 +16830,29 @@ var DocController = /*#__PURE__*/function () {
|
|
|
16829
16830
|
node.imgSrc = signText;
|
|
16830
16831
|
hoEditorFactory.docTree.change(changeEvent);
|
|
16831
16832
|
}
|
|
16833
|
+
/**
|
|
16834
|
+
* 更新签名类型
|
|
16835
|
+
* @param node 签名节点
|
|
16836
|
+
* @param type 签名类型
|
|
16837
|
+
* @param imgSrc 签名内容
|
|
16838
|
+
*/
|
|
16839
|
+
|
|
16840
|
+
}, {
|
|
16841
|
+
key: "updateSignType",
|
|
16842
|
+
value: function updateSignType(node, type, imgSrc, imgWidth, imgHeight) {
|
|
16843
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
16844
|
+
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
16845
|
+
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
16846
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_26__/* .DocAction.daModifyStyle */ .gk.daModifyStyle, sPath, ePath);
|
|
16847
|
+
changeEvent.oldEndPath = ePath;
|
|
16848
|
+
changeEvent.afterChangePath = ePath;
|
|
16849
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
16850
|
+
node.type = type;
|
|
16851
|
+
node.imgWidth = imgWidth;
|
|
16852
|
+
node.imgHeight = imgHeight;
|
|
16853
|
+
node.imgSrc = imgSrc;
|
|
16854
|
+
hoEditorFactory.docTree.change(changeEvent);
|
|
16855
|
+
}
|
|
16832
16856
|
/**
|
|
16833
16857
|
*
|
|
16834
16858
|
* @returns 返回病历文件变更日志
|
|
@@ -49740,6 +49764,17 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49740
49764
|
|
|
49741
49765
|
if (partCell && aHeight) {
|
|
49742
49766
|
rowHeight = Math.max(aHeight, partCell.docHeight);
|
|
49767
|
+
rowSpan = mainCell.rowSpan;
|
|
49768
|
+
}
|
|
49769
|
+
}
|
|
49770
|
+
|
|
49771
|
+
if (rowSpan > 1) {
|
|
49772
|
+
for (var i = 1; i < rowSpan; i++) {
|
|
49773
|
+
var arowInfos = this._partRowHeights.get(r + i);
|
|
49774
|
+
|
|
49775
|
+
if (arowInfos && arowInfos.rowHeight && aHeight) {
|
|
49776
|
+
aHeight += arowInfos.rowHeight;
|
|
49777
|
+
}
|
|
49743
49778
|
}
|
|
49744
49779
|
} //this._partRowHeights.get(r)?.rowHeight
|
|
49745
49780
|
|
|
@@ -61243,7 +61278,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61243
61278
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86160);
|
|
61244
61279
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39873);
|
|
61245
61280
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(35671);
|
|
61246
|
-
/* harmony import */ var
|
|
61281
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(22342);
|
|
61247
61282
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(99640);
|
|
61248
61283
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28214);
|
|
61249
61284
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41539);
|
|
@@ -61269,6 +61304,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61269
61304
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(41005);
|
|
61270
61305
|
/* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(15868);
|
|
61271
61306
|
/* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(15798);
|
|
61307
|
+
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(98199);
|
|
61272
61308
|
|
|
61273
61309
|
|
|
61274
61310
|
|
|
@@ -61283,8 +61319,8 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61283
61319
|
/*
|
|
61284
61320
|
* @Author: your name
|
|
61285
61321
|
* @Date: 2020-09-24 15:56:09
|
|
61286
|
-
* @LastEditTime: 2022-
|
|
61287
|
-
* @LastEditors:
|
|
61322
|
+
* @LastEditTime: 2022-06-07 15:10:10
|
|
61323
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
61288
61324
|
* @Description: In User Settings Edit
|
|
61289
61325
|
* @FilePath: \hoeditor-web\src\editor\undoRedo\NodeInsertUndoUnit.ts
|
|
61290
61326
|
*/
|
|
@@ -61303,6 +61339,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61303
61339
|
|
|
61304
61340
|
|
|
61305
61341
|
|
|
61342
|
+
|
|
61306
61343
|
var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
61307
61344
|
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(NodeInsertUndoUnit, _UndoInfo);
|
|
61308
61345
|
|
|
@@ -61323,7 +61360,7 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61323
61360
|
return _this;
|
|
61324
61361
|
}
|
|
61325
61362
|
|
|
61326
|
-
(0,
|
|
61363
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_25__/* ["default"] */ .Z)(NodeInsertUndoUnit, [{
|
|
61327
61364
|
key: "undo",
|
|
61328
61365
|
value: function undo() {
|
|
61329
61366
|
this.doUndo();
|
|
@@ -61415,6 +61452,11 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61415
61452
|
} else if (this._pnode && this._pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_19__/* .TextInputFieldNode */ .re && this.strBeforePath != hoEditorFactory.docTree.getNodeLastPath(this._pnode)) {
|
|
61416
61453
|
//删除文本域节点的提示文本,并更新重绘整个文本域
|
|
61417
61454
|
var pTiNode = this._pnode;
|
|
61455
|
+
|
|
61456
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_24__/* .PaintState.psReview */ .Dh.psReview && this.node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_22__/* .MarkNode */ .j && this.node.MarkNodeType === 2 && this.node.text.startsWith("C") && this._pnode.childNodes.length === 3 && this._pnode.childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_22__/* .MarkNode */ .j) {
|
|
61457
|
+
return path;
|
|
61458
|
+
}
|
|
61459
|
+
|
|
61418
61460
|
var res = pTiNode.getReadyToEdit(function (value) {
|
|
61419
61461
|
//NOTE:在redo当中不能使用同一实例UndoRedoService的commit
|
|
61420
61462
|
_this2._undo.begin();
|
|
@@ -199997,7 +200039,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
199997
200039
|
key: "mouseDblClick",
|
|
199998
200040
|
value: function () {
|
|
199999
200041
|
var _mouseDblClick = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(aevent) {
|
|
200000
|
-
var hoEditorFactory, dPage, oldDPage, oldPageIndex, oldArea, targetArea, isSameArea, cgEvent, startPos, np, _np$node$parentNode, prevNode, oldRange, startPath, endPath, newRange, selectChangeEvent, nodeNeedModifyEvent, cellNode, colInfos, rowInfos, colProperty, _nodeNeedModifyEvent, _nodeNeedModifyEvent2
|
|
200042
|
+
var hoEditorFactory, dPage, oldDPage, oldPageIndex, oldArea, targetArea, isSameArea, cgEvent, startPos, np, _np$node$parentNode, prevNode, oldRange, startPath, endPath, newRange, selectChangeEvent, nodeNeedModifyEvent, cellNode, colInfos, rowInfos, colProperty, _nodeNeedModifyEvent, _nodeNeedModifyEvent2;
|
|
200001
200043
|
|
|
200002
200044
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
|
|
200003
200045
|
while (1) {
|
|
@@ -200155,48 +200197,42 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200155
200197
|
} else if (cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DateTime */.YS.DateTime || cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DownList */.YS.DownList) {
|
|
200156
200198
|
_nodeNeedModifyEvent2 = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, "dblclick", this._pageIndex);
|
|
200157
200199
|
hoEditorFactory.docTree.nodeNeedModify(_nodeNeedModifyEvent2);
|
|
200158
|
-
} else if (cellNode.table.tableProperty.isAutoChangeLine) {
|
|
200159
|
-
|
|
200160
|
-
|
|
200161
|
-
|
|
200162
|
-
|
|
200163
|
-
|
|
200164
|
-
|
|
200165
|
-
|
|
200166
|
-
|
|
200167
|
-
|
|
200168
|
-
|
|
200169
|
-
|
|
200170
|
-
|
|
200171
|
-
|
|
200172
|
-
|
|
200173
|
-
|
|
200174
|
-
|
|
200175
|
-
|
|
200176
|
-
|
|
200177
|
-
|
|
200178
|
-
|
|
200179
|
-
|
|
200180
|
-
|
|
200181
|
-
|
|
200182
|
-
|
|
200200
|
+
} // else if (cellNode.table.tableProperty.isAutoChangeLine) {
|
|
200201
|
+
// //处理自动换行表格,双击时光标跳到指定双击位置
|
|
200202
|
+
// const dPageTable = cellNode.table.drawTable.getDrawTableByPageIndex(dPage.pageIndex);
|
|
200203
|
+
// if (dPageTable) {
|
|
200204
|
+
// const dPageCell = cellNode.drawCell.getDrawPageCell(dPageTable);
|
|
200205
|
+
// if (dPageCell) {
|
|
200206
|
+
// const pos = dPageCell.globalToLocal(aevent.stageX, aevent.stageY);
|
|
200207
|
+
// let docHeight = 0;
|
|
200208
|
+
// let dHeight = 0;
|
|
200209
|
+
// const index = cellNode.drawCell.drawPageCells.indexOf(dPageCell);
|
|
200210
|
+
// for (let i = 0; i < index; i++) {
|
|
200211
|
+
// docHeight += cellNode.drawCell.drawPageCells[i].docHeight;
|
|
200212
|
+
// dHeight += cellNode.drawCell.drawPageCells[i].dHeight
|
|
200213
|
+
// }
|
|
200214
|
+
// const dLastObj = cellNode.drawCell.drawLines[cellNode.drawCell.drawLines.length - 1]
|
|
200215
|
+
// if (dLastObj.dTop + dLastObj.docHeight < dHeight + pos.y) {
|
|
200216
|
+
// const distance = pos.y + dHeight - (dLastObj.dTop + dLastObj.dHeight)
|
|
200217
|
+
// const aHeight = cellNode.table.tableProperty.autoLineHeightPx;
|
|
200218
|
+
// const count = Math.floor(distance / aHeight);
|
|
200219
|
+
// let str = "";
|
|
200220
|
+
// for (let j = 0; j < count; j++) {
|
|
200221
|
+
// str += "\n"
|
|
200222
|
+
// }
|
|
200223
|
+
// if (str != "") {
|
|
200224
|
+
// const oldRange = hoEditorFactory.docTree.curDomRange.clone();
|
|
200225
|
+
// const endPath = hoEditorFactory.docTree.getNodeLastPath(cellNode.childNodes[cellNode.childNodes.length - 1]);
|
|
200226
|
+
// const newRange = new DomRange(hoEditorFactory.hoEditorFactoryId, endPath, endPath);
|
|
200227
|
+
// hoEditorFactory.drawTree.moveCaretToPath(endPath);
|
|
200228
|
+
// hoEditorFactory.docTree.curDomRange = newRange;
|
|
200229
|
+
// hoEditorFactory.docController.insertPlainTextAfterPath(endPath, str);
|
|
200230
|
+
// }
|
|
200231
|
+
// }
|
|
200232
|
+
// }
|
|
200233
|
+
// }
|
|
200234
|
+
// }
|
|
200183
200235
|
|
|
200184
|
-
for (j = 0; j < count; j++) {
|
|
200185
|
-
str += "\n";
|
|
200186
|
-
}
|
|
200187
|
-
|
|
200188
|
-
if (str != "") {
|
|
200189
|
-
_oldRange = hoEditorFactory.docTree.curDomRange.clone();
|
|
200190
|
-
_endPath = hoEditorFactory.docTree.getNodeLastPath(cellNode.childNodes[cellNode.childNodes.length - 1]);
|
|
200191
|
-
_newRange = new DomRange/* DomRange */.a(hoEditorFactory.hoEditorFactoryId, _endPath, _endPath);
|
|
200192
|
-
hoEditorFactory.drawTree.moveCaretToPath(_endPath);
|
|
200193
|
-
hoEditorFactory.docTree.curDomRange = _newRange;
|
|
200194
|
-
hoEditorFactory.docController.insertPlainTextAfterPath(_endPath, str);
|
|
200195
|
-
}
|
|
200196
|
-
}
|
|
200197
|
-
}
|
|
200198
|
-
}
|
|
200199
|
-
}
|
|
200200
200236
|
|
|
200201
200237
|
case 45:
|
|
200202
200238
|
return _context.abrupt("return", true);
|
|
@@ -206691,7 +206727,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
206691
206727
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
206692
206728
|
var ParagraphNode = __webpack_require__(14208);
|
|
206693
206729
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
206694
|
-
/* harmony default export */ var version = ('2.0.
|
|
206730
|
+
/* harmony default export */ var version = ('2.0.54-rc.1');
|
|
206695
206731
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=template&id=3fa4e4d3&scoped=true&
|
|
206696
206732
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"},{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],ref:"poperTextNode",staticClass:"poper-text-modal animation-in",style:(_vm.posStyle),on:{"mouseenter":_vm.mouseEnter,"mouseleave":_vm.mouseLeave}},_vm._l((_vm.poperText),function(text){return _c('div',{key:text + Math.random(0, 1),staticClass:"poper-text"},[_vm._v(" "+_vm._s(text)+" ")])}),0)}
|
|
206697
206733
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -218847,6 +218883,19 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218847
218883
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
218848
218884
|
hoEditorFactory.docController.updateSignTime(node, signText);
|
|
218849
218885
|
}
|
|
218886
|
+
/**
|
|
218887
|
+
* 更新签名类型
|
|
218888
|
+
* @param node 签名节点
|
|
218889
|
+
* @param type 签名类型
|
|
218890
|
+
* @param imgSrc 签名内容
|
|
218891
|
+
*/
|
|
218892
|
+
|
|
218893
|
+
}, {
|
|
218894
|
+
key: "updateSignType",
|
|
218895
|
+
value: function updateSignType(node, type, imgSrc, imgWidth, imgHeight) {
|
|
218896
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
218897
|
+
hoEditorFactory.docController.updateSignType(node, type, imgSrc, imgWidth, imgHeight);
|
|
218898
|
+
}
|
|
218850
218899
|
/**
|
|
218851
218900
|
* 强制删除
|
|
218852
218901
|
*/
|
|
@@ -219138,7 +219187,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219138
219187
|
var _loop2 = function _loop2(i) {
|
|
219139
219188
|
var node = nodes[i];
|
|
219140
219189
|
|
|
219141
|
-
if (node instanceof DownListNode/* DownListNode */.yF || node instanceof DateTimeNode/* DateTimeNode */.Z || node instanceof TextInputFieldNode/* TextInputFieldNode */.re && node.childNodes.filter(function (child) {
|
|
219190
|
+
if (node instanceof DownListNode/* DownListNode */.yF && node.isReadOnly || node instanceof DateTimeNode/* DateTimeNode */.Z && node.isReadOnly || node instanceof TextInputFieldNode/* TextInputFieldNode */.re && !node.canModifyContent && node.inputFieldType == 0 && node.childNodes.filter(function (child) {
|
|
219142
219191
|
return child instanceof TextInputFieldNode/* TextInputFieldNode */.re;
|
|
219143
219192
|
}).length === 0) {
|
|
219144
219193
|
if (arr.filter(function (v) {
|