hoeditor-web 2.0.99 → 2.0.101
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 +536 -122
- package/lib/hoeditor.css +3 -815
- package/lib/hoeditor.umd.js +536 -122
- package/lib/hoeditor.umd.min.js +8 -8
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -6000,7 +6000,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
6000
6000
|
|
|
6001
6001
|
/***/ }),
|
|
6002
6002
|
|
|
6003
|
-
/***/
|
|
6003
|
+
/***/ 2706:
|
|
6004
6004
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6005
6005
|
|
|
6006
6006
|
"use strict";
|
|
@@ -6012,7 +6012,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
6012
6012
|
"default": function() { return /* binding */ PoperSelect; }
|
|
6013
6013
|
});
|
|
6014
6014
|
|
|
6015
|
-
;// 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/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
6015
|
+
;// 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/poperSelect/PoperSelect.vue?vue&type=template&id=39dd7333&scoped=true&
|
|
6016
6016
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"poperSelectedModal",staticClass:"poper-selected-modal animation-in"},[_c('div',{staticStyle:{"height":"0","overflow":"hidden"}},[_c('svg',{attrs:{"viewBox":"0 0 1303 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('defs',[_c('g',{attrs:{"id":"selected"}},[_c('path',{attrs:{"d":"M498.688 1024c-26.996364 0-52.782545-11.636364-71.214545-32.395636L29.323636 536.017455a124.276364 124.276364 0 0 1 0-160.302546 89.181091 89.181091 0 0 1 132.747637-11.915636l11.264 11.915636L497.105455 749.288727 1133.102545 34.443636a88.994909 88.994909 0 0 1 129.489455-11.915636l11.357091 11.915636c39.098182 45.521455 39.098182 114.874182 0 160.395637l-705.629091 796.765091c-17.966545 20.48-43.194182 32.209455-69.632 32.395636","fill":"#2175FF"}})])])])]),(_vm.isCanSearch && !_vm.mutexSelect)?_c('div',{staticStyle:{"padding":"5px"}},[_c('el-input',{attrs:{"placeholder":_vm.currentListNameText + '搜索',"size":"mini"},on:{"input":_vm.searchList},model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:"input"}})],1):_vm._e(),(_vm.poperType === 'selectPoper' && _vm.currentList.length >= 0)?_c('div',{staticClass:"select-poper"},[_c('div',{staticClass:"list-box"},[(_vm.currentList.length == 0)?_c('ul',{staticClass:"list"},[_c('li',{staticStyle:{"text-align":"center"}},[_vm._v("无选项")])]):_vm._e(),(_vm.isAllowMultiSelect && !_vm.mutexSelect && _vm.currentList.length > 0)?_c('el-checkbox-group',{on:{"change":_vm.selectItemsChange},model:{value:(_vm.selectedIds),callback:function ($$v) {_vm.selectedIds=$$v},expression:"selectedIds"}},[_c('RecycleScroller',{staticClass:"scroller",attrs:{"items":_vm.currentList,"item-size":32,"key-field":"id"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
6017
6017
|
var item = ref.item;
|
|
6018
6018
|
return [(item.title)?_c('p',{staticClass:"poper-select-title"},[_vm._v(_vm._s(item.text))]):_vm._e(),(!item.title)?_c('el-checkbox',{key:item.id + Math.random(),attrs:{"label":item.id}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")]):_vm._e()]}}],null,false,4143456003)})],1):_vm._e(),(_vm.isAllowMultiSelect && _vm.mutexSelect && _vm.currentList.length > 0)?[_c('el-checkbox-group',{on:{"change":_vm.mutexSelectItemsChange},model:{value:(_vm.mutexSelectedIds),callback:function ($$v) {_vm.mutexSelectedIds=$$v},expression:"mutexSelectedIds"}},[_vm._l((_vm.currentList),function(item,index){return [(index >= 1 && item.type != _vm.currentList[index - 1].type)?_c('p',{key:index + Math.random(),staticClass:"el-checkbox-mutex-line"}):_vm._e(),_c('el-checkbox',{key:item.id + Math.random(),attrs:{"label":item.id,"disabled":_vm.mutexType !== '' && _vm.mutexType != item.type}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")])]})],2)]:_vm._e(),(!_vm.isAllowMultiSelect && _vm.currentList.length > 0)?_c('el-radio-group',{model:{value:(_vm.selectedId),callback:function ($$v) {_vm.selectedId=$$v},expression:"selectedId"}},_vm._l((_vm.currentList),function(item){return _c('el-radio',{key:item.id + Math.random(),attrs:{"label":item.id},nativeOn:{"~click":function($event){return _vm.selectItemsChange(item)}}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")])}),1):_vm._e(),(_vm.selectedList.length > 0 && _vm.isAllowMultiSelect && !_vm.mutexSelect && _vm.isCanSearch)?_c('transition-group',{staticClass:"list",attrs:{"name":"drag","tag":"ul"}},[_c('li',{key:"已选择",staticStyle:{"position":"absolute","top":"0px","z-index":"111","background":"#fff"}},[_vm._v("已选择"+_vm._s(_vm.currentListNameText))]),_vm._l((_vm.selectedList),function(item,index){return [_c('li',{key:item.id + Math.random(),staticClass:"drag-item selected",attrs:{"draggable":""},on:{"dragenter":function($event){return _vm.dragenter($event, index)},"dragover":function($event){return _vm.dragover($event, index)},"dragstart":function($event){return _vm.dragstart(index)}}},[_c('span',[_vm._v(_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0]))]),_c('i',{staticClass:"el-icon-delete",on:{"click":function($event){return _vm.deleteItems(item, index)}}})])]})],2):_vm._e()],2)]):_vm._e(),(_vm.poperType === 'selectPoper' && !_vm.isAllowMultiSelect)?_c('footer',[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("关闭")])],1):_vm._e(),(_vm.poperType === 'selectPoper' && _vm.isAllowMultiSelect)?_c('footer',[(!_vm.mutexSelect)?_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.allSelect}},[_vm._v("全选")]):_vm._e(),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.sureSelect}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.cancelSelect}},[_vm._v("清空")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1):_vm._e(),(_vm.poperType === 'datePoper')?_c('div',{staticClass:"date-poper"},[(_vm.dateTimeStyle.includes('dd'))?_c('DatePanel',{attrs:{"value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('MM') && !_vm.dateTimeStyle.includes('dd'))?_c('DatePanel',{attrs:{"dateType":"month","value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('yyyy') && !_vm.dateTimeStyle.includes('MM'))?_c('DatePanel',{attrs:{"dateType":"year","value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('HH'))?_c('div',{staticClass:"timepicker",staticStyle:{"padding":"8px 0"}},[_c('el-time-picker',{staticStyle:{"width":"200px"},attrs:{"type":"time","format":_vm.timeStyle,"value-format":_vm.timeStyle,"size":"mini"},model:{value:(_vm.time),callback:function ($$v) {_vm.time=$$v},expression:"time"}})],1):_vm._e(),_c('footer',[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.sureDate}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.currentDateTime}},[_vm._v("此刻")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)],1):_vm._e()])}
|
|
@@ -8408,7 +8408,7 @@ var popper = __webpack_require__(14519);
|
|
|
8408
8408
|
if (_this2.poppernIstance) {
|
|
8409
8409
|
_this2.poppernIstance.update();
|
|
8410
8410
|
}
|
|
8411
|
-
},
|
|
8411
|
+
}, 100);
|
|
8412
8412
|
}
|
|
8413
8413
|
},
|
|
8414
8414
|
methods: {
|
|
@@ -8829,10 +8829,10 @@ var popper = __webpack_require__(14519);
|
|
|
8829
8829
|
});
|
|
8830
8830
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
8831
8831
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
|
|
8832
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
8832
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=39dd7333&lang=scss&scoped=true&
|
|
8833
8833
|
// extracted by mini-css-extract-plugin
|
|
8834
8834
|
|
|
8835
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
8835
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=39dd7333&lang=scss&scoped=true&
|
|
8836
8836
|
|
|
8837
8837
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
8838
8838
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -8851,7 +8851,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
8851
8851
|
staticRenderFns,
|
|
8852
8852
|
false,
|
|
8853
8853
|
null,
|
|
8854
|
-
"
|
|
8854
|
+
"39dd7333",
|
|
8855
8855
|
null
|
|
8856
8856
|
|
|
8857
8857
|
)
|
|
@@ -26600,7 +26600,7 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
26600
26600
|
/* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(86769);
|
|
26601
26601
|
/* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4__);
|
|
26602
26602
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35671);
|
|
26603
|
-
/* harmony import */ var
|
|
26603
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(22342);
|
|
26604
26604
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41539);
|
|
26605
26605
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
26606
26606
|
/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(88674);
|
|
@@ -26699,6 +26699,8 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
26699
26699
|
/* harmony import */ var _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(34450);
|
|
26700
26700
|
/* harmony import */ var _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(49482);
|
|
26701
26701
|
/* harmony import */ var _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(74873);
|
|
26702
|
+
/* harmony import */ var _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(72964);
|
|
26703
|
+
|
|
26702
26704
|
|
|
26703
26705
|
|
|
26704
26706
|
|
|
@@ -26806,7 +26808,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
26806
26808
|
// }
|
|
26807
26809
|
|
|
26808
26810
|
|
|
26809
|
-
(0,
|
|
26811
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_88__/* ["default"] */ .Z)(DocController, [{
|
|
26810
26812
|
key: "onInsertNodeByID",
|
|
26811
26813
|
get: function get() {
|
|
26812
26814
|
return this._onInsertNodeByID;
|
|
@@ -26872,10 +26874,18 @@ var DocController = /*#__PURE__*/function () {
|
|
|
26872
26874
|
|
|
26873
26875
|
if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1 && isResetFieldText) {
|
|
26874
26876
|
var firstPath = parentNode.StartMarkNode.getNodePath();
|
|
26877
|
+
var lastPath = parentNode.EndMarkNode.getNodePath();
|
|
26875
26878
|
|
|
26876
26879
|
if (curRange.isEmpty && curRange.endPath == firstPath) {
|
|
26877
|
-
var
|
|
26878
|
-
curRange.endPath =
|
|
26880
|
+
var ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
|
|
26881
|
+
curRange.endPath = ePath;
|
|
26882
|
+
}
|
|
26883
|
+
|
|
26884
|
+
if (!curRange.isEmpty && curRange.endPath == lastPath) {
|
|
26885
|
+
var _ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
|
|
26886
|
+
|
|
26887
|
+
curRange.startPath = firstPath;
|
|
26888
|
+
curRange.endPath = _ePath;
|
|
26879
26889
|
}
|
|
26880
26890
|
}
|
|
26881
26891
|
|
|
@@ -27094,13 +27104,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27094
27104
|
});
|
|
27095
27105
|
}
|
|
27096
27106
|
} else {
|
|
27107
|
+
node = hoEditorFactory.docTree.findNodePositionByPath(strPath).node;
|
|
27108
|
+
|
|
27097
27109
|
if (aTextArray[0] == 0 && node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R && childIndex >= 0 && node.styleIndex == hoEditorFactory.docTree.curStyleIndex) {
|
|
27098
27110
|
if (hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && !curTextStyle.combineStyle.strikeout) {
|
|
27099
27111
|
var textNode = node;
|
|
27100
27112
|
|
|
27101
|
-
_this.insertNodeText(textNode, strPath, aText);
|
|
27113
|
+
_this.insertNodeText(textNode, strPath, aText); //strPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
27102
27114
|
|
|
27103
|
-
|
|
27115
|
+
|
|
27116
|
+
strPath = hoEditorFactory.docTree.getNodeLastPath(textNode);
|
|
27104
27117
|
} else {
|
|
27105
27118
|
var _textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntText */ .Jq.ntText, aText, hoEditorFactory.docTree.curStyleIndex);
|
|
27106
27119
|
|
|
@@ -27371,7 +27384,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27371
27384
|
// );
|
|
27372
27385
|
// hoEditorFactory.undoService.commit();
|
|
27373
27386
|
|
|
27374
|
-
_context.next =
|
|
27387
|
+
_context.next = 123;
|
|
27375
27388
|
break;
|
|
27376
27389
|
|
|
27377
27390
|
case 6:
|
|
@@ -27380,12 +27393,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27380
27393
|
node = nodePosition.node;
|
|
27381
27394
|
|
|
27382
27395
|
if (!node) {
|
|
27383
|
-
_context.next =
|
|
27396
|
+
_context.next = 123;
|
|
27384
27397
|
break;
|
|
27385
27398
|
}
|
|
27386
27399
|
|
|
27387
27400
|
if (!domRange.isEmpty) {
|
|
27388
|
-
_context.next =
|
|
27401
|
+
_context.next = 123;
|
|
27389
27402
|
break;
|
|
27390
27403
|
}
|
|
27391
27404
|
|
|
@@ -27454,7 +27467,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27454
27467
|
aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, topath).normalize();
|
|
27455
27468
|
this.deleteRange(aRange, true);
|
|
27456
27469
|
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, topath, topath);
|
|
27457
|
-
_context.next =
|
|
27470
|
+
_context.next = 123;
|
|
27458
27471
|
break;
|
|
27459
27472
|
|
|
27460
27473
|
case 36:
|
|
@@ -27513,12 +27526,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27513
27526
|
// );
|
|
27514
27527
|
// hoEditorFactory.undoService.commit();
|
|
27515
27528
|
|
|
27516
|
-
_context.next =
|
|
27529
|
+
_context.next = 123;
|
|
27517
27530
|
break;
|
|
27518
27531
|
|
|
27519
27532
|
case 55:
|
|
27520
27533
|
if (!(node instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C)) {
|
|
27521
|
-
_context.next =
|
|
27534
|
+
_context.next = 81;
|
|
27522
27535
|
break;
|
|
27523
27536
|
}
|
|
27524
27537
|
|
|
@@ -27533,12 +27546,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27533
27546
|
|
|
27534
27547
|
case 59:
|
|
27535
27548
|
if (!(prevNode == null)) {
|
|
27536
|
-
_context.next =
|
|
27549
|
+
_context.next = 81;
|
|
27537
27550
|
break;
|
|
27538
27551
|
}
|
|
27539
27552
|
|
|
27540
27553
|
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D)) {
|
|
27541
|
-
_context.next =
|
|
27554
|
+
_context.next = 80;
|
|
27542
27555
|
break;
|
|
27543
27556
|
}
|
|
27544
27557
|
|
|
@@ -27549,35 +27562,39 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27549
27562
|
preParaNode = hoEditorFactory.docTree.getSameRectPrevParanode(tableNode.paragraphNode);
|
|
27550
27563
|
|
|
27551
27564
|
if (!(preParaNode && tIndex == 0 && cIndex == 0 && preParaNode.drawlines.length == 1 && preParaNode.drawlines[0] instanceof _draw_DrawLine__WEBPACK_IMPORTED_MODULE_80__/* .DrawLine */ .a && preParaNode.drawlines[0].isEmpty())) {
|
|
27552
|
-
_context.next =
|
|
27565
|
+
_context.next = 77;
|
|
27553
27566
|
break;
|
|
27554
27567
|
}
|
|
27555
27568
|
|
|
27569
|
+
// hoEditorFactory.undoService.begin();
|
|
27570
|
+
// hoEditorFactory.undoService.add(
|
|
27571
|
+
// new NodeDeleteUndoUnit(this._hoEditorFactoryID, tableNode.paragraphNode, tableNode.paragraphNode.getNodePath())
|
|
27572
|
+
// );
|
|
27573
|
+
// await hoEditorFactory.undoService.commit();
|
|
27556
27574
|
hoEditorFactory.undoService.begin();
|
|
27557
|
-
hoEditorFactory.undoService.add(new
|
|
27558
|
-
|
|
27559
|
-
_context.next = 72;
|
|
27575
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_87__/* .TableDeleteParagraphUndoUnit */ .T(this._hoEditorFactoryID, tableNode, tableNode.paragraphNode));
|
|
27576
|
+
_context.next = 71;
|
|
27560
27577
|
return hoEditorFactory.undoService.commit();
|
|
27561
27578
|
|
|
27562
|
-
case
|
|
27579
|
+
case 71:
|
|
27563
27580
|
newpath = cellNode.childNodes[0].getNodePath();
|
|
27564
27581
|
hoEditorFactory.docTree.curDomRange.setSamePath(newpath);
|
|
27565
27582
|
hoEditorFactory.drawTree.moveCaretToPath(newpath);
|
|
27566
27583
|
return _context.abrupt("return");
|
|
27567
27584
|
|
|
27568
|
-
case
|
|
27585
|
+
case 77:
|
|
27569
27586
|
return _context.abrupt("return");
|
|
27570
27587
|
|
|
27571
|
-
case
|
|
27572
|
-
_context.next =
|
|
27588
|
+
case 78:
|
|
27589
|
+
_context.next = 81;
|
|
27573
27590
|
break;
|
|
27574
27591
|
|
|
27575
|
-
case
|
|
27592
|
+
case 80:
|
|
27576
27593
|
return _context.abrupt("return");
|
|
27577
27594
|
|
|
27578
|
-
case
|
|
27595
|
+
case 81:
|
|
27579
27596
|
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && !(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N))) {
|
|
27580
|
-
_context.next =
|
|
27597
|
+
_context.next = 86;
|
|
27581
27598
|
break;
|
|
27582
27599
|
}
|
|
27583
27600
|
|
|
@@ -27585,16 +27602,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27585
27602
|
|
|
27586
27603
|
return _context.abrupt("return");
|
|
27587
27604
|
|
|
27588
|
-
case
|
|
27605
|
+
case 86:
|
|
27589
27606
|
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
27590
|
-
_context.next =
|
|
27607
|
+
_context.next = 91;
|
|
27591
27608
|
break;
|
|
27592
27609
|
}
|
|
27593
27610
|
|
|
27594
27611
|
signUserId = node.customProperty.bce01;
|
|
27595
27612
|
|
|
27596
27613
|
if (!(hoEditorFactory.userInfo.id != signUserId)) {
|
|
27597
|
-
_context.next =
|
|
27614
|
+
_context.next = 91;
|
|
27598
27615
|
break;
|
|
27599
27616
|
}
|
|
27600
27617
|
|
|
@@ -27602,9 +27619,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27602
27619
|
|
|
27603
27620
|
return _context.abrupt("return");
|
|
27604
27621
|
|
|
27605
|
-
case
|
|
27622
|
+
case 91:
|
|
27606
27623
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psDesign */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
27607
|
-
_context.next =
|
|
27624
|
+
_context.next = 94;
|
|
27608
27625
|
break;
|
|
27609
27626
|
}
|
|
27610
27627
|
|
|
@@ -27612,9 +27629,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27612
27629
|
|
|
27613
27630
|
return _context.abrupt("return");
|
|
27614
27631
|
|
|
27615
|
-
case
|
|
27632
|
+
case 94:
|
|
27616
27633
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psDesign */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
27617
|
-
_context.next =
|
|
27634
|
+
_context.next = 97;
|
|
27618
27635
|
break;
|
|
27619
27636
|
}
|
|
27620
27637
|
|
|
@@ -27622,9 +27639,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27622
27639
|
|
|
27623
27640
|
return _context.abrupt("return");
|
|
27624
27641
|
|
|
27625
|
-
case
|
|
27642
|
+
case 97:
|
|
27626
27643
|
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
27627
|
-
_context.next =
|
|
27644
|
+
_context.next = 118;
|
|
27628
27645
|
break;
|
|
27629
27646
|
}
|
|
27630
27647
|
|
|
@@ -27632,7 +27649,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27632
27649
|
nextNode = node.nextLeaf();
|
|
27633
27650
|
|
|
27634
27651
|
if (!((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N) && !(nextNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N))) {
|
|
27635
|
-
_context.next =
|
|
27652
|
+
_context.next = 108;
|
|
27636
27653
|
break;
|
|
27637
27654
|
}
|
|
27638
27655
|
|
|
@@ -27644,9 +27661,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27644
27661
|
hoEditorFactory.undoService.commit();
|
|
27645
27662
|
return _context.abrupt("return");
|
|
27646
27663
|
|
|
27647
|
-
case
|
|
27664
|
+
case 108:
|
|
27648
27665
|
if (!(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
27649
|
-
_context.next =
|
|
27666
|
+
_context.next = 118;
|
|
27650
27667
|
break;
|
|
27651
27668
|
}
|
|
27652
27669
|
|
|
@@ -27672,7 +27689,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27672
27689
|
hoEditorFactory.undoService.commit();
|
|
27673
27690
|
return _context.abrupt("return");
|
|
27674
27691
|
|
|
27675
|
-
case
|
|
27692
|
+
case 118:
|
|
27676
27693
|
pNode = node.parentNode;
|
|
27677
27694
|
hoEditorFactory.undoService.begin();
|
|
27678
27695
|
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
@@ -27682,7 +27699,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27682
27699
|
this.resetEmptyInputFieldNode(hoEditorFactory, pNode);
|
|
27683
27700
|
}
|
|
27684
27701
|
|
|
27685
|
-
case
|
|
27702
|
+
case 123:
|
|
27686
27703
|
case "end":
|
|
27687
27704
|
return _context.stop();
|
|
27688
27705
|
}
|
|
@@ -30505,6 +30522,28 @@ var DocController = /*#__PURE__*/function () {
|
|
|
30505
30522
|
hoEditorFactory.undoService.commit();
|
|
30506
30523
|
}
|
|
30507
30524
|
}
|
|
30525
|
+
/**
|
|
30526
|
+
* 修改空签名
|
|
30527
|
+
* @param node 签名节点
|
|
30528
|
+
* @param name 签名名称
|
|
30529
|
+
* @param attribute 签名属性
|
|
30530
|
+
*/
|
|
30531
|
+
|
|
30532
|
+
}, {
|
|
30533
|
+
key: "updateEmptySignNode",
|
|
30534
|
+
value: function updateEmptySignNode(node, name, attribute, connectChar) {
|
|
30535
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
30536
|
+
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
30537
|
+
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
30538
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_26__/* .DocAction.daModifyStyle */ .gk.daModifyStyle, sPath, ePath);
|
|
30539
|
+
changeEvent.oldEndPath = ePath;
|
|
30540
|
+
changeEvent.afterChangePath = ePath;
|
|
30541
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
30542
|
+
node.name = name;
|
|
30543
|
+
node.connectChar = connectChar;
|
|
30544
|
+
node.attribute = attribute;
|
|
30545
|
+
hoEditorFactory.docTree.change(changeEvent);
|
|
30546
|
+
}
|
|
30508
30547
|
/**
|
|
30509
30548
|
* 更新签名时间
|
|
30510
30549
|
* @param node 签名节点
|
|
@@ -30801,6 +30840,8 @@ var DocAction;
|
|
|
30801
30840
|
DocAction[DocAction["daParaStyleChange"] = 10] = "daParaStyleChange";
|
|
30802
30841
|
DocAction[DocAction["daInsertAreaFirstParagraph"] = 11] = "daInsertAreaFirstParagraph";
|
|
30803
30842
|
DocAction[DocAction["daInsertParagraphBetweenTab"] = 12] = "daInsertParagraphBetweenTab";
|
|
30843
|
+
DocAction[DocAction["daInsertParagraphBeforeTab"] = 13] = "daInsertParagraphBeforeTab";
|
|
30844
|
+
DocAction[DocAction["daDeleteParagraphBeforeTab"] = 14] = "daDeleteParagraphBeforeTab";
|
|
30804
30845
|
})(DocAction || (DocAction = {}));
|
|
30805
30846
|
|
|
30806
30847
|
var ctlKey;
|
|
@@ -47928,6 +47969,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
47928
47969
|
set: function set(value) {
|
|
47929
47970
|
if (this._attribute !== value) {
|
|
47930
47971
|
this._attribute = value;
|
|
47972
|
+
this.node2DrawNodeRange(0, 0);
|
|
47931
47973
|
}
|
|
47932
47974
|
}
|
|
47933
47975
|
}, {
|
|
@@ -58157,6 +58199,11 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
58157
58199
|
|
|
58158
58200
|
if (!canfit && this._allowAcrossPage) {
|
|
58159
58201
|
this._endDline = nextDline - 1;
|
|
58202
|
+
|
|
58203
|
+
if (this._endDline == -1) {
|
|
58204
|
+
this._endDline = -2;
|
|
58205
|
+
}
|
|
58206
|
+
|
|
58160
58207
|
this.clearOverDitem(dlines, nextDline);
|
|
58161
58208
|
isFull = true;
|
|
58162
58209
|
bFinishedPaint = false;
|
|
@@ -58322,6 +58369,11 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
58322
58369
|
if (!canfit && dTop > 0 && this._allowAcrossPage) {
|
|
58323
58370
|
var nextArea = this.getNextDrawArea();
|
|
58324
58371
|
this._endDline = nextDline - 1;
|
|
58372
|
+
|
|
58373
|
+
if (this._endDline == -1) {
|
|
58374
|
+
this._endDline = -2;
|
|
58375
|
+
}
|
|
58376
|
+
|
|
58325
58377
|
isFull = true; // this.clearOverDitem(dlines, nextDline);
|
|
58326
58378
|
|
|
58327
58379
|
return [isFull, dTop, restHeight];
|
|
@@ -63019,6 +63071,8 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
63019
63071
|
}, {
|
|
63020
63072
|
key: "paintArea",
|
|
63021
63073
|
value: function paintArea(dlines, startIndex, dTop) {
|
|
63074
|
+
startIndex = startIndex < -1 ? 0 : startIndex;
|
|
63075
|
+
|
|
63022
63076
|
var _get$call = (0,get/* default */.Z)((0,getPrototypeOf/* default */.Z)(DrawPageCell.prototype), "paintArea", this).call(this, dlines, startIndex, dTop),
|
|
63023
63077
|
_get$call2 = (0,slicedToArray/* default */.Z)(_get$call, 3),
|
|
63024
63078
|
bret = _get$call2[0],
|
|
@@ -63424,9 +63478,9 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
63424
63478
|
// }
|
|
63425
63479
|
|
|
63426
63480
|
|
|
63427
|
-
this._startDline = startIndex;
|
|
63481
|
+
this._startDline = startIndex < -1 ? 0 : startIndex;
|
|
63428
63482
|
|
|
63429
|
-
var ret = (0,get/* default */.Z)((0,getPrototypeOf/* default */.Z)(DrawPageCell.prototype), "update", this).call(this, prevDrawArea, dlines,
|
|
63483
|
+
var ret = (0,get/* default */.Z)((0,getPrototypeOf/* default */.Z)(DrawPageCell.prototype), "update", this).call(this, prevDrawArea, dlines, this._startDline, valignTop, restHeight);
|
|
63430
63484
|
|
|
63431
63485
|
this._docHeight = Math.max(0, this._docHeight - valignTop);
|
|
63432
63486
|
this.updateDHeight();
|
|
@@ -64441,7 +64495,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
64441
64495
|
dHeight = _cell.drawCell.getCellRestHeight(_cell.drawCell.drawPageCells.indexOf(dPartCell) - 1);
|
|
64442
64496
|
|
|
64443
64497
|
if (dPartCell.isEndLineFinished()) {
|
|
64444
|
-
|
|
64498
|
+
if (dPartCell.endDline == -2) {
|
|
64499
|
+
startDline = 0;
|
|
64500
|
+
} else {
|
|
64501
|
+
startDline = dPartCell.endDline + 1;
|
|
64502
|
+
}
|
|
64445
64503
|
} else startDline = dPartCell.endDline;
|
|
64446
64504
|
}
|
|
64447
64505
|
} else if (_cell.drawCell.drawPageCells.length > 0) {
|
|
@@ -65178,7 +65236,13 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
65178
65236
|
|
|
65179
65237
|
if (dPrevPartCell) {
|
|
65180
65238
|
partCellindex = _cell2.drawCell.drawPageCells.indexOf(dPrevPartCell);
|
|
65181
|
-
if (dPrevPartCell.isEndLineFinished())
|
|
65239
|
+
if (dPrevPartCell.isEndLineFinished()) {
|
|
65240
|
+
if (dPrevPartCell.endDline == -2) {
|
|
65241
|
+
startChildIndex = 0;
|
|
65242
|
+
} else {
|
|
65243
|
+
startChildIndex = dPrevPartCell.endDline + 1;
|
|
65244
|
+
}
|
|
65245
|
+
} else startChildIndex = dPrevPartCell.endDline;
|
|
65182
65246
|
}
|
|
65183
65247
|
}
|
|
65184
65248
|
|
|
@@ -72045,15 +72109,114 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
72045
72109
|
// dendDrawLine = e.redrawEndPositon.drawRoots[e.redrawEndPositon.index];
|
|
72046
72110
|
// }
|
|
72047
72111
|
|
|
72048
|
-
} else if (e.action === DocTree/* DocAction.
|
|
72112
|
+
} else if (e.action === DocTree/* DocAction.daInsertParagraphBeforeTab */.gk.daInsertParagraphBeforeTab) {
|
|
72049
72113
|
if (dCell) {
|
|
72050
72114
|
dCell.needUpdate = true;
|
|
72051
72115
|
}
|
|
72052
72116
|
|
|
72053
|
-
var np = hoEditorFactory.docTree.findNodePositionByPath(e.
|
|
72117
|
+
var np = hoEditorFactory.docTree.findNodePositionByPath(e.afterChangePath);
|
|
72054
72118
|
|
|
72055
72119
|
if (np && np.node && np.node instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
72056
|
-
|
|
72120
|
+
var beforeNode = np.node.prevSibling();
|
|
72121
|
+
var afterNode = np.node.nextSibling();
|
|
72122
|
+
|
|
72123
|
+
if (beforeNode instanceof ParagraphNode/* ParagraphNode */.C && afterNode instanceof TableNode/* TableNode */.Fh && beforeNode.drawlines[0] instanceof DrawTable/* DrawTable */.t) {
|
|
72124
|
+
var dTable = beforeNode.drawlines[0];
|
|
72125
|
+
var index = beforeNode.drootNodes.indexOf(dTable);
|
|
72126
|
+
beforeNode.drootNodes.splice(index, 1);
|
|
72127
|
+
beforeNode.node2DrawNode();
|
|
72128
|
+
|
|
72129
|
+
if (dArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$ && beforeNode.rootNodes.indexOf(beforeNode) == 0) {
|
|
72130
|
+
beforeNode.drawlines[0].dTop = hoEditorFactory.firstPageStartTop;
|
|
72131
|
+
beforeNode.drawlines[0].y = hoEditorFactory.firstPageStartTop;
|
|
72132
|
+
beforeNode.drawlines[0].x = paragraphNode.drawlines[0].dLeft;
|
|
72133
|
+
beforeNode.drootNodes.splice(index, 0, beforeNode.drawlines[0]);
|
|
72134
|
+
|
|
72135
|
+
if (dArea) {
|
|
72136
|
+
dArea.addChild(paragraphNode.drawlines[0]);
|
|
72137
|
+
|
|
72138
|
+
if (index == 0) {
|
|
72139
|
+
dArea.topDline = paragraphNode.drawlines[0];
|
|
72140
|
+
}
|
|
72141
|
+
}
|
|
72142
|
+
} else {
|
|
72143
|
+
beforeNode.clear();
|
|
72144
|
+
beforeNode.node2DrawNode();
|
|
72145
|
+
beforeNode.placeDNodeAfterDline(beforeNode.drootNodes[index - 1]);
|
|
72146
|
+
}
|
|
72147
|
+
|
|
72148
|
+
beforeNode.updateDrawLineStyle();
|
|
72149
|
+
beforeNode.updateDrawInfos();
|
|
72150
|
+
np.node.node2DrawNode();
|
|
72151
|
+
np.node.placeDNodeAfterDline(beforeNode.drawlines[0]);
|
|
72152
|
+
dTable.table.placeDNodeAfterDrawLine(np.node, np.node.drawlines[0], e.afterChangePath);
|
|
72153
|
+
dline = node.drawTable;
|
|
72154
|
+
|
|
72155
|
+
if (e.repaintImmediate) {
|
|
72156
|
+
if (!dArea) {
|
|
72157
|
+
return false;
|
|
72158
|
+
}
|
|
72159
|
+
|
|
72160
|
+
dArea.changed = true;
|
|
72161
|
+
|
|
72162
|
+
var _mainArea4 = hoEditorFactory.drawPageTree.getMainRootArea(dArea);
|
|
72163
|
+
|
|
72164
|
+
if (!_mainArea4) return false;
|
|
72165
|
+
_mainArea4.changed = true;
|
|
72166
|
+
hoEditorFactory.drawPageTree.update(dArea, alines, beforeNode.drawlines[0].dTop, index, beforeNode.drootNodes.length - 1);
|
|
72167
|
+
}
|
|
72168
|
+
}
|
|
72169
|
+
}
|
|
72170
|
+
} else if (e.action === DocTree/* DocAction.daDeleteParagraphBeforeTab */.gk.daDeleteParagraphBeforeTab) {
|
|
72171
|
+
if (dCell) {
|
|
72172
|
+
dCell.needUpdate = true;
|
|
72173
|
+
}
|
|
72174
|
+
|
|
72175
|
+
var _np = hoEditorFactory.docTree.findNodePositionByPath(e.afterChangePath);
|
|
72176
|
+
|
|
72177
|
+
if (_np && _np.node && _np.node instanceof TableNode/* TableNode */.Fh) {
|
|
72178
|
+
var _beforeNode = _np.node.prevSibling();
|
|
72179
|
+
|
|
72180
|
+
if (_beforeNode instanceof ParagraphNode/* ParagraphNode */.C && _np.node instanceof TableNode/* TableNode */.Fh && _beforeNode.drawlines[0] instanceof DrawLine/* DrawLine */.a) {
|
|
72181
|
+
var _dTable = _np.node.drawTable;
|
|
72182
|
+
var tabIndex = alines.indexOf(_dTable);
|
|
72183
|
+
|
|
72184
|
+
if (tabIndex >= 0) {
|
|
72185
|
+
alines.splice(tabIndex, 1);
|
|
72186
|
+
}
|
|
72187
|
+
|
|
72188
|
+
var _index2 = _beforeNode.drootNodes.indexOf(_beforeNode.drawlines[0]);
|
|
72189
|
+
|
|
72190
|
+
var dTop = _beforeNode.drawlines[0].y;
|
|
72191
|
+
|
|
72192
|
+
_np.node.placeDNodeAfterDrawLine(_beforeNode, _beforeNode.drawlines[0], e.afterChangePath);
|
|
72193
|
+
|
|
72194
|
+
dline = node.drawTable;
|
|
72195
|
+
|
|
72196
|
+
if (e.repaintImmediate) {
|
|
72197
|
+
if (!dArea) {
|
|
72198
|
+
return false;
|
|
72199
|
+
}
|
|
72200
|
+
|
|
72201
|
+
dArea.changed = true;
|
|
72202
|
+
|
|
72203
|
+
var _mainArea5 = hoEditorFactory.drawPageTree.getMainRootArea(dArea);
|
|
72204
|
+
|
|
72205
|
+
if (!_mainArea5) return false;
|
|
72206
|
+
_mainArea5.changed = true;
|
|
72207
|
+
hoEditorFactory.drawPageTree.update(dArea, alines, dTop, _index2, _beforeNode.drootNodes.length - 1);
|
|
72208
|
+
}
|
|
72209
|
+
}
|
|
72210
|
+
}
|
|
72211
|
+
} else if (e.action === DocTree/* DocAction.daInsertAreaFirstParagraph */.gk.daInsertAreaFirstParagraph) {
|
|
72212
|
+
if (dCell) {
|
|
72213
|
+
dCell.needUpdate = true;
|
|
72214
|
+
}
|
|
72215
|
+
|
|
72216
|
+
var _np2 = hoEditorFactory.docTree.findNodePositionByPath(e.beforeChangePath);
|
|
72217
|
+
|
|
72218
|
+
if (_np2 && _np2.node && _np2.node instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
72219
|
+
paragraphNode = _np2.node;
|
|
72057
72220
|
lineIndex = 0;
|
|
72058
72221
|
paragraphNode.drawlines[0].updateLineStyle();
|
|
72059
72222
|
paragraphNode.drootNodes.splice(0, 0, paragraphNode.drawlines[0]);
|
|
@@ -72085,10 +72248,10 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
72085
72248
|
|
|
72086
72249
|
dArea.changed = true;
|
|
72087
72250
|
|
|
72088
|
-
var
|
|
72251
|
+
var _mainArea6 = hoEditorFactory.drawPageTree.getMainRootArea(dArea);
|
|
72089
72252
|
|
|
72090
|
-
if (!
|
|
72091
|
-
|
|
72253
|
+
if (!_mainArea6) return false;
|
|
72254
|
+
_mainArea6.changed = true;
|
|
72092
72255
|
var _drawTop3 = alines[0].y;
|
|
72093
72256
|
hoEditorFactory.drawPageTree.update(dArea, alines, _drawTop3, 0, alines.length - 1);
|
|
72094
72257
|
}
|
|
@@ -72098,13 +72261,15 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
72098
72261
|
dCell.needUpdate = true;
|
|
72099
72262
|
}
|
|
72100
72263
|
|
|
72101
|
-
var
|
|
72264
|
+
var _np3 = hoEditorFactory.docTree.findNodePositionByPath(e.afterChangePath);
|
|
72102
72265
|
|
|
72103
|
-
if (
|
|
72104
|
-
paragraphNode =
|
|
72266
|
+
if (_np3 && _np3.node && _np3.node instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
72267
|
+
paragraphNode = _np3.node;
|
|
72105
72268
|
lineIndex = 0;
|
|
72106
|
-
|
|
72107
|
-
var
|
|
72269
|
+
|
|
72270
|
+
var _index3 = paragraphNode.drootNodes.indexOf(dline);
|
|
72271
|
+
|
|
72272
|
+
var prevDline = paragraphNode.drootNodes[_index3 - 1];
|
|
72108
72273
|
paragraphNode.placeDNodeAfterDline(prevDline);
|
|
72109
72274
|
paragraphNode.drawlines[0].fitLines();
|
|
72110
72275
|
paragraphNode.updateDrawLineStyle();
|
|
@@ -72123,11 +72288,11 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
72123
72288
|
|
|
72124
72289
|
dArea.changed = true;
|
|
72125
72290
|
|
|
72126
|
-
var
|
|
72291
|
+
var _mainArea7 = hoEditorFactory.drawPageTree.getMainRootArea(dArea);
|
|
72127
72292
|
|
|
72128
|
-
if (!
|
|
72129
|
-
|
|
72130
|
-
hoEditorFactory.drawPageTree.paint(dArea, alines,
|
|
72293
|
+
if (!_mainArea7) return false;
|
|
72294
|
+
_mainArea7.changed = true;
|
|
72295
|
+
hoEditorFactory.drawPageTree.paint(dArea, alines, _index3 - 1, alines.length - 1);
|
|
72131
72296
|
}
|
|
72132
72297
|
}
|
|
72133
72298
|
} // if (dCell) {
|
|
@@ -72975,11 +73140,11 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
72975
73140
|
if (dPlace instanceof DrawPageCell/* DrawPageCell */.k && dPlace.isEmpty()) {
|
|
72976
73141
|
var aPrevPlace;
|
|
72977
73142
|
|
|
72978
|
-
var
|
|
73143
|
+
var _index4 = dPlace.cell.drawCell.drawPageCells.indexOf(dPlace);
|
|
72979
73144
|
|
|
72980
73145
|
if (dPlace.cell.cellProperty.align != TableProperty/* VAlign.vabottom */.TR.vabottom) {
|
|
72981
|
-
while (
|
|
72982
|
-
aPrevPlace = dPlace.cell.drawCell.drawPageCells[
|
|
73146
|
+
while (_index4 > 0) {
|
|
73147
|
+
aPrevPlace = dPlace.cell.drawCell.drawPageCells[_index4 - 1];
|
|
72983
73148
|
|
|
72984
73149
|
if (!aPrevPlace.isEmpty()) {
|
|
72985
73150
|
var rootArea = hoeditfactory.drawPageTree.getMainRootArea(aPrevPlace);
|
|
@@ -72991,11 +73156,11 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
72991
73156
|
return this.getStagePosition(aPage, aPrevPlace, x, 99999999);
|
|
72992
73157
|
}
|
|
72993
73158
|
|
|
72994
|
-
|
|
73159
|
+
_index4 -= 1;
|
|
72995
73160
|
}
|
|
72996
73161
|
} else {
|
|
72997
|
-
while (
|
|
72998
|
-
aPrevPlace = dPlace.cell.drawCell.drawPageCells[
|
|
73162
|
+
while (_index4 < dPlace.cell.drawCell.drawPageCells.length - 1) {
|
|
73163
|
+
aPrevPlace = dPlace.cell.drawCell.drawPageCells[_index4 + 1];
|
|
72999
73164
|
|
|
73000
73165
|
if (!aPrevPlace.isEmpty()) {
|
|
73001
73166
|
var _rootArea = hoeditfactory.drawPageTree.getMainRootArea(aPrevPlace);
|
|
@@ -73007,7 +73172,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
73007
73172
|
return this.getStagePosition(aPage, aPrevPlace, x, 99999999);
|
|
73008
73173
|
}
|
|
73009
73174
|
|
|
73010
|
-
|
|
73175
|
+
_index4 += 1;
|
|
73011
73176
|
}
|
|
73012
73177
|
}
|
|
73013
73178
|
} // if (dPlace instanceof DrawCell) {
|
|
@@ -78448,6 +78613,156 @@ var TableDeleteColUndoUnit = /*#__PURE__*/function () {
|
|
|
78448
78613
|
|
|
78449
78614
|
/***/ }),
|
|
78450
78615
|
|
|
78616
|
+
/***/ 72964:
|
|
78617
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
78618
|
+
|
|
78619
|
+
"use strict";
|
|
78620
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
78621
|
+
/* harmony export */ "T": function() { return /* binding */ TableDeleteParagraphUndoUnit; }
|
|
78622
|
+
/* harmony export */ });
|
|
78623
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(35671);
|
|
78624
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(22342);
|
|
78625
|
+
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21703);
|
|
78626
|
+
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
78627
|
+
/* harmony import */ var _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23375);
|
|
78628
|
+
/* harmony import */ var _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66828);
|
|
78629
|
+
/* harmony import */ var _editor_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50369);
|
|
78630
|
+
/* harmony import */ var _editor_dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(14208);
|
|
78631
|
+
/* harmony import */ var _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1470);
|
|
78632
|
+
/* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(34534);
|
|
78633
|
+
/* harmony import */ var _editor_events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(13113);
|
|
78634
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(41005);
|
|
78635
|
+
|
|
78636
|
+
|
|
78637
|
+
|
|
78638
|
+
|
|
78639
|
+
|
|
78640
|
+
|
|
78641
|
+
|
|
78642
|
+
|
|
78643
|
+
|
|
78644
|
+
|
|
78645
|
+
|
|
78646
|
+
var TableDeleteParagraphUndoUnit = /*#__PURE__*/function () {
|
|
78647
|
+
function TableDeleteParagraphUndoUnit(hoEditorFactoryID, positionNode, deleteNode) {
|
|
78648
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, TableDeleteParagraphUndoUnit);
|
|
78649
|
+
|
|
78650
|
+
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
78651
|
+
this._positionNode = positionNode;
|
|
78652
|
+
this._deleteNode = deleteNode;
|
|
78653
|
+
this._opTime = new Date();
|
|
78654
|
+
this._affectText = "";
|
|
78655
|
+
}
|
|
78656
|
+
|
|
78657
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(TableDeleteParagraphUndoUnit, [{
|
|
78658
|
+
key: "isEmpty",
|
|
78659
|
+
get: function get() {
|
|
78660
|
+
return false;
|
|
78661
|
+
}
|
|
78662
|
+
}, {
|
|
78663
|
+
key: "redo",
|
|
78664
|
+
value: function redo() {
|
|
78665
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
78666
|
+
var startPath = '';
|
|
78667
|
+
var endPath = '';
|
|
78668
|
+
var cgEvent;
|
|
78669
|
+
|
|
78670
|
+
var prevNode = this._deleteNode.prevSibling(); // if (this._action === DocAction.daInsertAreaFirstParagraph || this._action === DocAction.daInsertParagraphBetweenTab) {
|
|
78671
|
+
// startPath = this._deleteNode.getNodePath();
|
|
78672
|
+
// endPath = this._positionNode.paragraphNode.getNodePath();
|
|
78673
|
+
// cgEvent = new NodeChangeEvent(this._hoEditorFactoryID, DocAction.daDelete, startPath, endPath)
|
|
78674
|
+
// cgEvent.oldEndPath = endPath;
|
|
78675
|
+
// cgEvent.oldDrawTreeLines = new SelectRange(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
|
|
78676
|
+
// hoEditorFactory.docTree.deleteNode(this._positionNode.paragraphNode);
|
|
78677
|
+
// }
|
|
78678
|
+
// else
|
|
78679
|
+
|
|
78680
|
+
|
|
78681
|
+
{
|
|
78682
|
+
if (prevNode && prevNode instanceof _editor_dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_5__/* .ParagraphNode */ .C) {
|
|
78683
|
+
startPath = prevNode.getNodePath();
|
|
78684
|
+
endPath = this._deleteNode.getNodePath();
|
|
78685
|
+
cgEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_7__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_2__/* .DocAction.daDeleteParagraphBeforeTab */ .gk.daDeleteParagraphBeforeTab, startPath, endPath);
|
|
78686
|
+
cgEvent.oldEndPath = endPath;
|
|
78687
|
+
cgEvent.oldDrawTreeLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_6__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
|
|
78688
|
+
this._positionNode.paragraphNode = prevNode;
|
|
78689
|
+
hoEditorFactory.docTree.deleteNode(this._deleteNode);
|
|
78690
|
+
} else {
|
|
78691
|
+
throw new Error('错误的撤销恢复链,无法恢复');
|
|
78692
|
+
}
|
|
78693
|
+
} // hoEditorFactory.docController.deleteRange(new DomRange(this._hoEditorFactoryID, startPath, endPath), true)
|
|
78694
|
+
|
|
78695
|
+
hoEditorFactory.docTree.change(cgEvent);
|
|
78696
|
+
var caretPath = "".concat(this._positionNode.childNodes[0].getNodePath(), "/0");
|
|
78697
|
+
var oldRange = new _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_3__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, startPath);
|
|
78698
|
+
var newRange = new _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_3__/* .DomRange */ .a(this._hoEditorFactoryID, caretPath, caretPath);
|
|
78699
|
+
var scgEvent = new _editor_events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_8__/* .SelectionChangeEvent */ .r(oldRange, newRange);
|
|
78700
|
+
hoEditorFactory.docTree.selectChange(scgEvent);
|
|
78701
|
+
return;
|
|
78702
|
+
}
|
|
78703
|
+
}, {
|
|
78704
|
+
key: "undo",
|
|
78705
|
+
value: function undo() {
|
|
78706
|
+
//上方插入行
|
|
78707
|
+
var hoeditorfacotry = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
78708
|
+
this._positionNode.paragraphNode = this._deleteNode;
|
|
78709
|
+
hoeditorfacotry.docTree.insertNodeBeforeNode(this._positionNode, this._deleteNode);
|
|
78710
|
+
|
|
78711
|
+
var prevNode = this._deleteNode.prevSibling();
|
|
78712
|
+
|
|
78713
|
+
var startPath = '';
|
|
78714
|
+
var endPath = '';
|
|
78715
|
+
var action = _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_2__/* .DocAction.daInsert */ .gk.daInsert;
|
|
78716
|
+
|
|
78717
|
+
if (prevNode) {
|
|
78718
|
+
startPath = hoeditorfacotry.docTree.getNodeLastPath(prevNode);
|
|
78719
|
+
endPath = this._deleteNode.getNodePath();
|
|
78720
|
+
|
|
78721
|
+
if (prevNode.nodeType == _editor_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_4__/* .NodeType.ntTable */ .Jq.ntTable) {
|
|
78722
|
+
action = _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_2__/* .DocAction.daInsertParagraphBetweenTab */ .gk.daInsertParagraphBetweenTab;
|
|
78723
|
+
} else {
|
|
78724
|
+
action = _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_2__/* .DocAction.daInsertParagraphBeforeTab */ .gk.daInsertParagraphBeforeTab;
|
|
78725
|
+
}
|
|
78726
|
+
} else {
|
|
78727
|
+
startPath = this._deleteNode.getNodePath();
|
|
78728
|
+
endPath = startPath;
|
|
78729
|
+
}
|
|
78730
|
+
|
|
78731
|
+
this._action = action;
|
|
78732
|
+
var cgEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_7__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, action, startPath, endPath);
|
|
78733
|
+
hoeditorfacotry.docTree.change(cgEvent);
|
|
78734
|
+
var oldRange = hoeditorfacotry.docTree.curDomRange.clone();
|
|
78735
|
+
var newRange = new _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_3__/* .DomRange */ .a(this._hoEditorFactoryID, endPath, endPath);
|
|
78736
|
+
var scgEvent = new _editor_events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_8__/* .SelectionChangeEvent */ .r(oldRange, newRange);
|
|
78737
|
+
hoeditorfacotry.docTree.selectChange(scgEvent);
|
|
78738
|
+
}
|
|
78739
|
+
}, {
|
|
78740
|
+
key: "merge",
|
|
78741
|
+
value: function merge(undoUnit) {
|
|
78742
|
+
return false;
|
|
78743
|
+
}
|
|
78744
|
+
}, {
|
|
78745
|
+
key: "actionString",
|
|
78746
|
+
value: function actionString() {
|
|
78747
|
+
return "表格上方删除空行";
|
|
78748
|
+
}
|
|
78749
|
+
}, {
|
|
78750
|
+
key: "opTime",
|
|
78751
|
+
get: function get() {
|
|
78752
|
+
return this._opTime;
|
|
78753
|
+
}
|
|
78754
|
+
}, {
|
|
78755
|
+
key: "affectText",
|
|
78756
|
+
get: function get() {
|
|
78757
|
+
return this._affectText;
|
|
78758
|
+
}
|
|
78759
|
+
}]);
|
|
78760
|
+
|
|
78761
|
+
return TableDeleteParagraphUndoUnit;
|
|
78762
|
+
}();
|
|
78763
|
+
|
|
78764
|
+
/***/ }),
|
|
78765
|
+
|
|
78451
78766
|
/***/ 83588:
|
|
78452
78767
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
78453
78768
|
|
|
@@ -78806,7 +79121,7 @@ var TableInsertParagraphUndoUnit = /*#__PURE__*/function () {
|
|
|
78806
79121
|
|
|
78807
79122
|
|
|
78808
79123
|
hoEditorFactory.docTree.change(cgEvent);
|
|
78809
|
-
var caretPath = "".concat(this._positionNode.childNodes[0], "/0");
|
|
79124
|
+
var caretPath = "".concat(this._positionNode.childNodes[0].getNodePath(), "/0");
|
|
78810
79125
|
var oldRange = new _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_3__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, startPath);
|
|
78811
79126
|
var newRange = new _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_3__/* .DomRange */ .a(this._hoEditorFactoryID, caretPath, caretPath);
|
|
78812
79127
|
var scgEvent = new _editor_events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_7__/* .SelectionChangeEvent */ .r(oldRange, newRange);
|
|
@@ -213171,7 +213486,7 @@ var map = {
|
|
|
213171
213486
|
"./pageInfoes/PageInfoes.vue": 67977,
|
|
213172
213487
|
"./paragraph/ParagraphDialog.vue": 32679,
|
|
213173
213488
|
"./poperSelect/PoperMark.vue": 93069,
|
|
213174
|
-
"./poperSelect/PoperSelect.vue":
|
|
213489
|
+
"./poperSelect/PoperSelect.vue": 2706,
|
|
213175
213490
|
"./poperTipText/PoperTipText.vue": 91831,
|
|
213176
213491
|
"./popers/Poper.vue": 25425,
|
|
213177
213492
|
"./popers/Title.vue": 40168,
|
|
@@ -214727,9 +215042,9 @@ var es_string_match = __webpack_require__(4723);
|
|
|
214727
215042
|
var es_number_constructor = __webpack_require__(9653);
|
|
214728
215043
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
214729
215044
|
var es_json_stringify = __webpack_require__(38862);
|
|
214730
|
-
;// 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/HoDoc.vue?vue&type=template&id=
|
|
214731
|
-
var
|
|
214732
|
-
var
|
|
215045
|
+
;// 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/HoDoc.vue?vue&type=template&id=088d007e&
|
|
215046
|
+
var HoDocvue_type_template_id_088d007e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [_c('HoPage',{key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos,"poperTipPos":_vm.poperTipPos,"textStyle":_vm.textStyle,"aiInfo":_vm.aiInfo},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)})]})],2):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('PoperMark',{directives:[{name:"show",rawName:"v-show",value:(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' || _vm.poperType === 'table-cell-poper'),expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}}),_c('PoperTipText',{attrs:{"isPoperText":_vm.isPoperText,"poperText":_vm.poperText,"poperPos":_vm.poperTextPos},on:{"poperTextClose":_vm.poperTextClose}}),_c('ul',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return (_vm.isCreateRightMenuModal = false); }),expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:(_vm.isCreateRightMenuModal),expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[(_vm.showCommentsBtn)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.hideComments}},[_vm._v(_vm._s(_vm.isHideComments ? '显示' : '隐藏')+"批注")]):_vm._e(),(_vm.showDeleteSignMenu)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.deleteSignNode}},[_vm._v("删除签名")]):_vm._e(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本: "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
|
|
215047
|
+
var HoDocvue_type_template_id_088d007e_staticRenderFns = []
|
|
214733
215048
|
|
|
214734
215049
|
|
|
214735
215050
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
@@ -215386,7 +215701,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
215386
215701
|
var hoeditorfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
215387
215702
|
var dPage = hoeditorfactory.drawTree.drawPages[this._pageIndex];
|
|
215388
215703
|
|
|
215389
|
-
if (!dPage.drawDomLevel) {
|
|
215704
|
+
if (!dPage || !dPage.drawDomLevel) {
|
|
215390
215705
|
return false;
|
|
215391
215706
|
}
|
|
215392
215707
|
|
|
@@ -216658,7 +216973,7 @@ var DrawPage = __webpack_require__(65870);
|
|
|
216658
216973
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
216659
216974
|
var util = __webpack_require__(33913);
|
|
216660
216975
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 8 modules
|
|
216661
|
-
var PoperSelect = __webpack_require__(
|
|
216976
|
+
var PoperSelect = __webpack_require__(2706);
|
|
216662
216977
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
216663
216978
|
var PoperMark = __webpack_require__(93069);
|
|
216664
216979
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -218370,7 +218685,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
218370
218685
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
218371
218686
|
var ParagraphNode = __webpack_require__(14208);
|
|
218372
218687
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
218373
|
-
/* harmony default export */ var version = ('2.0.
|
|
218688
|
+
/* harmony default export */ var version = ('2.0.101');
|
|
218374
218689
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
218375
218690
|
var PoperTipText = __webpack_require__(91831);
|
|
218376
218691
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -219153,8 +219468,8 @@ var ImageNode = __webpack_require__(88389);
|
|
|
219153
219468
|
|
|
219154
219469
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
219155
219470
|
components_HoDocvue_type_script_lang_js_,
|
|
219156
|
-
|
|
219157
|
-
|
|
219471
|
+
HoDocvue_type_template_id_088d007e_render,
|
|
219472
|
+
HoDocvue_type_template_id_088d007e_staticRenderFns,
|
|
219158
219473
|
false,
|
|
219159
219474
|
null,
|
|
219160
219475
|
null,
|
|
@@ -219421,6 +219736,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219421
219736
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219422
219737
|
|
|
219423
219738
|
if (aDrawArea instanceof DrawPageCell/* DrawPageCell */.k) {
|
|
219739
|
+
//单元格内的绘制单独调用paintDrawPageCell
|
|
219424
219740
|
this.paintDrawPageCell(aDrawArea, dRoots, startLine, endLine);
|
|
219425
219741
|
return;
|
|
219426
219742
|
}
|
|
@@ -219428,16 +219744,19 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219428
219744
|
var startUpdateLine = endLine;
|
|
219429
219745
|
var drawArea = aDrawArea;
|
|
219430
219746
|
this._oldPageCount = hoEditorFactory.drawTree.drawPages.length;
|
|
219431
|
-
var restHeight = Infinity;
|
|
219747
|
+
var restHeight = Infinity; //-----------开始定位绘制起始行,绘制起始位置--------------------------
|
|
219748
|
+
|
|
219432
219749
|
var aline = dRoots[startLine];
|
|
219433
219750
|
var dLine;
|
|
219434
219751
|
var dTop = 0;
|
|
219435
219752
|
var mainDTop = 0;
|
|
219436
219753
|
|
|
219437
219754
|
if (aline instanceof DrawTable/* DrawTable */.t) {
|
|
219755
|
+
//表格在绘制时,只取最后一个分页表格,
|
|
219438
219756
|
if (aline.drawPageTables.length > 0) {
|
|
219439
219757
|
dLine = aline.drawPageTables[aline.drawPageTables.length - 1];
|
|
219440
219758
|
} else {
|
|
219759
|
+
//表格还未开始绘制,无起始行
|
|
219441
219760
|
dLine = null;
|
|
219442
219761
|
|
|
219443
219762
|
if (startLine > 0) {
|
|
@@ -219469,7 +219788,8 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219469
219788
|
} else {
|
|
219470
219789
|
dLine = aline;
|
|
219471
219790
|
dTop = aline.y;
|
|
219472
|
-
}
|
|
219791
|
+
} //----------------结束定位绘制起始行,绘制起始位置--------------------------
|
|
219792
|
+
|
|
219473
219793
|
|
|
219474
219794
|
if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop; // let drawArea = this.getMainRootArea(dLine);
|
|
219475
219795
|
|
|
@@ -219487,12 +219807,13 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219487
219807
|
this.clearAreas([mainArea]);
|
|
219488
219808
|
}
|
|
219489
219809
|
|
|
219490
|
-
var nextLine = startLine;
|
|
219810
|
+
var nextLine = startLine; //用于判断是否页已经満页的map
|
|
219811
|
+
|
|
219491
219812
|
var pageIsFull = new Map();
|
|
219492
219813
|
|
|
219493
219814
|
try {
|
|
219494
219815
|
this._startNeedUpdatePage = -1;
|
|
219495
|
-
this._endNeedUpdatePage = -1;
|
|
219816
|
+
this._endNeedUpdatePage = -1; //------------开始将不分页绘制树中的绘制行,按页进行摆放--------------------------
|
|
219496
219817
|
|
|
219497
219818
|
while (nextLine <= endLine) {
|
|
219498
219819
|
var dline = dRoots[nextLine]; //如果需要新起一页,则新起一页
|
|
@@ -219505,7 +219826,8 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219505
219826
|
drawArea = this.getNextDrawArea(drawArea, true)[0];
|
|
219506
219827
|
dTop = 0;
|
|
219507
219828
|
if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop;
|
|
219508
|
-
}
|
|
219829
|
+
} // 判断是否已经满页
|
|
219830
|
+
|
|
219509
219831
|
|
|
219510
219832
|
if (dline instanceof DrawTable/* DrawTable */.t && restHeight < hoEditorFactory.defaultLineHeight || dline instanceof DrawLine/* DrawLine */.a && restHeight < dline.dHeight) {
|
|
219511
219833
|
if (dline instanceof DrawLine/* DrawLine */.a && restHeight >= hoEditorFactory.defaultLineHeight) {
|
|
@@ -219524,11 +219846,13 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219524
219846
|
|
|
219525
219847
|
|
|
219526
219848
|
if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
219527
|
-
|
|
219849
|
+
//当前已经満页,绘制批注页码等信息
|
|
219850
|
+
this.afterAreaFinishPaint(drawArea); // 计算重绘页范围 ,已废弃
|
|
219851
|
+
|
|
219528
219852
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
219529
219853
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
219530
219854
|
pageIsFull.set(drawArea.index, true);
|
|
219531
|
-
var isNew = false;
|
|
219855
|
+
var isNew = false; //获取下一个绘制页,并初始化绘制位置
|
|
219532
219856
|
|
|
219533
219857
|
var _this$getNextDrawArea = this.getNextDrawArea(drawArea);
|
|
219534
219858
|
|
|
@@ -219546,7 +219870,8 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219546
219870
|
break;
|
|
219547
219871
|
}
|
|
219548
219872
|
}
|
|
219549
|
-
}
|
|
219873
|
+
} //当前行不会触发满页,正常绘制
|
|
219874
|
+
|
|
219550
219875
|
|
|
219551
219876
|
var _dobj = dRoots[nextLine];
|
|
219552
219877
|
var cbParagraph = _dobj.paragraphNode.combineParagraph;
|
|
@@ -219555,10 +219880,12 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219555
219880
|
var bFinishedPaint = _dobj.drawPageTables.length > 0 && _dobj.isFinishedPaint();
|
|
219556
219881
|
|
|
219557
219882
|
if (bFinishedPaint) {
|
|
219883
|
+
//修改起始绘制点,已废弃
|
|
219558
219884
|
if (nextLine < startUpdateLine) {
|
|
219559
219885
|
startUpdateLine = nextLine > 0 ? nextLine - 1 : 0;
|
|
219560
219886
|
}
|
|
219561
219887
|
} else {
|
|
219888
|
+
//表格分页绘制,当表格分页绘制完成,但未达到最后一行绘制完时,需要新起一页,接着绘制,直到表格绘制完成
|
|
219562
219889
|
while (!bFinishedPaint) {
|
|
219563
219890
|
var startRow = 0;
|
|
219564
219891
|
|
|
@@ -219621,6 +219948,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219621
219948
|
dTop += cbParagraph.lineSpace;
|
|
219622
219949
|
}
|
|
219623
219950
|
} else {
|
|
219951
|
+
//普通行绘制,检查是否满页,満页后需要新起一页绘制
|
|
219624
219952
|
if (_dobj.dHeight > restHeight && dTop > 0) {
|
|
219625
219953
|
if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
219626
219954
|
drawArea.endDline = nextLine - 1; // drawArea.stage.update();
|
|
@@ -219636,12 +219964,14 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219636
219964
|
restHeight = drawArea.maxHeight - dTop;
|
|
219637
219965
|
}
|
|
219638
219966
|
}
|
|
219639
|
-
}
|
|
219967
|
+
} //普通行正常绘制
|
|
219968
|
+
|
|
219640
219969
|
|
|
219641
219970
|
if (nextLine > startLine || nextLine === startLine && !drawArea.contains(_dobj)) {
|
|
219642
219971
|
drawArea.addChild(_dobj);
|
|
219643
219972
|
_dobj.y = dTop; // dobj.x = cbParagraph.leftMarginPixes;
|
|
219644
|
-
}
|
|
219973
|
+
} //修改下一行的绘制起始位置
|
|
219974
|
+
|
|
219645
219975
|
|
|
219646
219976
|
dTop = _dobj.y + _dobj.dHeight + _dobj.paragraphNode.combineParagraph.lineSpace;
|
|
219647
219977
|
mainArea.docHeight = dTop;
|
|
@@ -219654,7 +219984,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219654
219984
|
// }
|
|
219655
219985
|
|
|
219656
219986
|
|
|
219657
|
-
var mainIndex = Math.min(nextLine, endLine, startUpdateLine);
|
|
219987
|
+
var mainIndex = Math.min(nextLine, endLine, startUpdateLine); //绘制完成,清理多出来的绘制页
|
|
219658
219988
|
|
|
219659
219989
|
if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$ && mainIndex === dRoots.length - 1) {
|
|
219660
219990
|
drawArea.endDline = mainIndex;
|
|
@@ -219731,7 +220061,8 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219731
220061
|
|
|
219732
220062
|
if (startDrawLine instanceof DrawPageTable/* DrawPageTable */.ox && !mainArea.contains(startDrawLine) && startDrawLine instanceof DrawPageTable/* DrawPageTable */.ox && startDrawLine.table.drawTable.drawPageTables.indexOf(startDrawLine) > 0) {
|
|
219733
220063
|
drawTop = 0;
|
|
219734
|
-
}
|
|
220064
|
+
} //对于新插入的内容绘制完成后(一直到最后一个插入的段落结束),后续的段落需要进行移动位置,则调用update
|
|
220065
|
+
|
|
219735
220066
|
|
|
219736
220067
|
this.update(mainArea, dMainRoots, drawTop, mainIndex, mainIndex, true);
|
|
219737
220068
|
} finally {
|
|
@@ -219999,7 +220330,8 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219999
220330
|
}
|
|
220000
220331
|
|
|
220001
220332
|
var startIndex = startLine;
|
|
220002
|
-
var bChangedInTable = false;
|
|
220333
|
+
var bChangedInTable = false; //计算绘制起始坐标
|
|
220334
|
+
|
|
220003
220335
|
var nextDlineTop = 0;
|
|
220004
220336
|
|
|
220005
220337
|
if (startIndex === endLine && dRoots[startIndex] instanceof DrawTable/* DrawTable */.t) {
|
|
@@ -220017,7 +220349,8 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
220017
220349
|
|
|
220018
220350
|
nextDlineTop = dobj.y;
|
|
220019
220351
|
}
|
|
220020
|
-
}
|
|
220352
|
+
} //----------
|
|
220353
|
+
|
|
220021
220354
|
|
|
220022
220355
|
var aEndLine = dRoots.length - 1;
|
|
220023
220356
|
var restHeight = Infinity;
|
|
@@ -220050,6 +220383,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
220050
220383
|
// dLine.paragraphNode.combineParagraph.lineSpace;
|
|
220051
220384
|
// startDline.dHeight +
|
|
220052
220385
|
// startDline.paragraphNode.combineParagraph.lineSpace;
|
|
220386
|
+
//启用绘制优化,如果当前页不可见,则缓存绘制调用,当页可见时再调用
|
|
220053
220387
|
|
|
220054
220388
|
|
|
220055
220389
|
if (hoEditorFactory.isUseDrawingOptimization) {
|
|
@@ -220060,13 +220394,14 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
220060
220394
|
return;
|
|
220061
220395
|
}
|
|
220062
220396
|
}
|
|
220063
|
-
}
|
|
220397
|
+
} //按区域调整区域内的所有坐标
|
|
220398
|
+
|
|
220064
220399
|
|
|
220065
220400
|
drawArea.update(prevArea, dRoots, startIndex, dTop, restHeight);
|
|
220066
220401
|
this.afterAreaFinishPaint(drawArea);
|
|
220067
220402
|
this._startNeedUpdatePage = Math.min(drawArea.index, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
220068
220403
|
this._endNeedUpdatePage = Math.max(drawArea.index, this._endNeedUpdatePage);
|
|
220069
|
-
startIndex = drawArea.endDline;
|
|
220404
|
+
startIndex = drawArea.endDline; //如果绘制是在表格内,将下一个绘制对象切换到表格外(只遍历最外层绘制对象)
|
|
220070
220405
|
|
|
220071
220406
|
if (bChangedInTable && startIndex > endLine + 1) {
|
|
220072
220407
|
var _dItem = dRoots[endLine + 1];
|
|
@@ -221689,7 +222024,7 @@ var es_string_search = __webpack_require__(64765);
|
|
|
221689
222024
|
|
|
221690
222025
|
|
|
221691
222026
|
|
|
221692
|
-
function
|
|
222027
|
+
function XmlBeauty_xmlBeauty(text) {
|
|
221693
222028
|
var ar = text //.replace(/>\s{0,}</g, "><")
|
|
221694
222029
|
.replace(/</g, "~::~<").replace(/xmlns:/g, "~::~xmlns:").replace(/xmlns=/g, "~::~xmlns=").split('~::~');
|
|
221695
222030
|
var len = ar.length;
|
|
@@ -222647,13 +222982,13 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
222647
222982
|
xmlRoot += "</pageSettings>";
|
|
222648
222983
|
xmlRoot += "<styles>";
|
|
222649
222984
|
|
|
222650
|
-
var _styles = this.doc2Json("styles");
|
|
222985
|
+
var _styles = this.doc2Json("styles", "xml", xmlRoot, clearSign);
|
|
222651
222986
|
|
|
222652
222987
|
xmlRoot += x2js.js2xml(_styles);
|
|
222653
222988
|
xmlRoot += "</styles>";
|
|
222654
222989
|
xmlRoot += "<comments>";
|
|
222655
222990
|
|
|
222656
|
-
var _comments = this.doc2Json("comments");
|
|
222991
|
+
var _comments = this.doc2Json("comments", "xml", xmlRoot, clearSign);
|
|
222657
222992
|
|
|
222658
222993
|
xmlRoot += x2js.js2xml(_comments);
|
|
222659
222994
|
xmlRoot += "</comments>";
|
|
@@ -222686,9 +223021,16 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
222686
223021
|
return xmlRoot;
|
|
222687
223022
|
}
|
|
222688
223023
|
|
|
222689
|
-
return
|
|
223024
|
+
return XmlBeauty_xmlBeauty(xmlRoot);
|
|
222690
223025
|
}
|
|
222691
223026
|
}
|
|
223027
|
+
}, {
|
|
223028
|
+
key: "xmlBeauty",
|
|
223029
|
+
value: function xmlBeauty(xml) {
|
|
223030
|
+
var axml = XmlBeauty_xmlBeauty(xml);
|
|
223031
|
+
|
|
223032
|
+
return axml;
|
|
223033
|
+
}
|
|
222692
223034
|
}, {
|
|
222693
223035
|
key: "xml2Doc",
|
|
222694
223036
|
value: function xml2Doc(xml, isClearSign) {
|
|
@@ -222740,6 +223082,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
222740
223082
|
// footerArrays[index][fj] = node;
|
|
222741
223083
|
// }
|
|
222742
223084
|
// }
|
|
223085
|
+
//this.xmlBeauty(xml)
|
|
222743
223086
|
var aobject = this.xml2Object(xml);
|
|
222744
223087
|
|
|
222745
223088
|
if (aobject) {
|
|
@@ -223128,6 +223471,10 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
223128
223471
|
delete textStyleJson["creatorIndex"];
|
|
223129
223472
|
}
|
|
223130
223473
|
|
|
223474
|
+
if (clearSign && textStyle.commentID !== "0" && textStyle.commentID !== undefined) {
|
|
223475
|
+
textStyle.commentID = "0";
|
|
223476
|
+
}
|
|
223477
|
+
|
|
223131
223478
|
if (textStyle.commentID === "0" || textStyle.commentID === undefined || textStyle.commentID === defaultFont.commentID) {
|
|
223132
223479
|
delete textStyleJson["commentID"];
|
|
223133
223480
|
}
|
|
@@ -223187,12 +223534,16 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
223187
223534
|
|
|
223188
223535
|
if (xmlNode === "comments") {
|
|
223189
223536
|
var commentsArr = [];
|
|
223190
|
-
|
|
223191
|
-
|
|
223192
|
-
var
|
|
223193
|
-
|
|
223194
|
-
|
|
223195
|
-
|
|
223537
|
+
|
|
223538
|
+
if (!clearSign) {
|
|
223539
|
+
var comments = hoEditorFactory.drawTree.commentsMap;
|
|
223540
|
+
comments.forEach(function (value) {
|
|
223541
|
+
var commentJson = JSON.parse(JSON.stringify(value, Comment/* Comment.whiteList */.s.whiteList()));
|
|
223542
|
+
commentJson.customProperty = value.customProperty;
|
|
223543
|
+
commentsArr.push(commentJson);
|
|
223544
|
+
});
|
|
223545
|
+
}
|
|
223546
|
+
|
|
223196
223547
|
return {
|
|
223197
223548
|
comment: commentsArr
|
|
223198
223549
|
};
|
|
@@ -223925,6 +224276,9 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
223925
224276
|
}
|
|
223926
224277
|
} else if (temp.nodeType == BaseNode/* NodeType.ntImage */.Jq.ntImage) {
|
|
223927
224278
|
if (temp.imageType == "Image") {
|
|
224279
|
+
// if (temp.imageDataBase64String.substring(0, 5) == "file:") {
|
|
224280
|
+
// return;
|
|
224281
|
+
// }
|
|
223928
224282
|
return ImageNode/* ImageNode.json2Node */.H.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
223929
224283
|
} else if (temp.imageType == "Barcode") {
|
|
223930
224284
|
return BarcodeNode/* BarcodeNode.json2Node */.T.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
@@ -224988,6 +225342,11 @@ var StructureNode = /*#__PURE__*/function () {
|
|
|
224988
225342
|
this._text = this._Convertor.toText();
|
|
224989
225343
|
|
|
224990
225344
|
if (clipboard) {
|
|
225345
|
+
if (this._json != "") {
|
|
225346
|
+
var patientID = hoEditorFactory.docTree.docProperty.patientID;
|
|
225347
|
+
this._json = patientID + ":" + this._json;
|
|
225348
|
+
}
|
|
225349
|
+
|
|
224991
225350
|
clipboard.setData(ClipboardType.ctJSON, this._json);
|
|
224992
225351
|
clipboard.setData(ClipboardType.ctHTML, this._html);
|
|
224993
225352
|
clipboard.setData(ClipboardType.ctText, this._text);
|
|
@@ -230279,6 +230638,23 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230279
230638
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
230280
230639
|
hoEditorFactory.docController.updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc);
|
|
230281
230640
|
}
|
|
230641
|
+
/**
|
|
230642
|
+
* 修改空签名
|
|
230643
|
+
* @param node 签名节点
|
|
230644
|
+
* @param name 签名名称
|
|
230645
|
+
* @param attribute 签名属性
|
|
230646
|
+
*/
|
|
230647
|
+
|
|
230648
|
+
}, {
|
|
230649
|
+
key: "updateEmptySignNode",
|
|
230650
|
+
value: function updateEmptySignNode(node, name, attribute, connectChar) {
|
|
230651
|
+
if (node.type !== 0) {
|
|
230652
|
+
return;
|
|
230653
|
+
}
|
|
230654
|
+
|
|
230655
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
230656
|
+
hoEditorFactory.docController.updateEmptySignNode(node, name, attribute, connectChar);
|
|
230657
|
+
}
|
|
230282
230658
|
/**
|
|
230283
230659
|
* 更新签名时间
|
|
230284
230660
|
* @param node 签名节点
|
|
@@ -232724,6 +233100,10 @@ var message_default = /*#__PURE__*/__webpack_require__.n(message);
|
|
|
232724
233100
|
|
|
232725
233101
|
|
|
232726
233102
|
|
|
233103
|
+
|
|
233104
|
+
|
|
233105
|
+
|
|
233106
|
+
|
|
232727
233107
|
|
|
232728
233108
|
|
|
232729
233109
|
|
|
@@ -233059,10 +233439,28 @@ var EditController = /*#__PURE__*/function () {
|
|
|
233059
233439
|
|
|
233060
233440
|
var nodes;
|
|
233061
233441
|
|
|
233442
|
+
if (!jsonData) {
|
|
233443
|
+
if (hoeditorfactory.notAllowCrossPatiPaste && hoeditorfactory.drawTree.paintStatus !== DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
233444
|
+
message_box_default().alert("不能粘贴他人病历内容到该患者病历中");
|
|
233445
|
+
|
|
233446
|
+
return;
|
|
233447
|
+
}
|
|
233448
|
+
}
|
|
233449
|
+
|
|
233062
233450
|
if (jsonData) {
|
|
233451
|
+
var patientID = jsonData.split(":")[0];
|
|
233452
|
+
var index = jsonData.indexOf(":");
|
|
233453
|
+
jsonData = jsonData.substring(index + 1, jsonData.length);
|
|
233454
|
+
|
|
233063
233455
|
if (hoeditorfactory.drawTree.paintStatus === DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
233064
233456
|
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
233065
233457
|
} else {
|
|
233458
|
+
if (hoeditorfactory.notAllowCrossPatiPaste && patientID !== hoeditorfactory.docTree.docProperty.patientID) {
|
|
233459
|
+
message_box_default().alert("不能粘贴他人病历内容到该患者病历中");
|
|
233460
|
+
|
|
233461
|
+
return;
|
|
233462
|
+
}
|
|
233463
|
+
|
|
233066
233464
|
var jsonObject = JSON.parse(jsonData);
|
|
233067
233465
|
|
|
233068
233466
|
if (jsonObject.length == 1 && jsonObject[0].nodeType === "ntTable" && parentNode instanceof CellNode/* CellNode */.D) {
|
|
@@ -235309,28 +235707,24 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
235309
235707
|
// storeName: this._storeName,
|
|
235310
235708
|
// });
|
|
235311
235709
|
|
|
235312
|
-
(_window = window) === null || _window === void 0 ? void 0 : (_window$chrome = _window.chrome) === null || _window$chrome === void 0 ? void 0 : (_window$chrome$webvie = _window$chrome.webview) === null || _window$chrome$webvie === void 0 ? void 0 : _window$chrome$webvie.addEventListener(
|
|
235710
|
+
(_window = window) === null || _window === void 0 ? void 0 : (_window$chrome = _window.chrome) === null || _window$chrome === void 0 ? void 0 : (_window$chrome$webvie = _window$chrome.webview) === null || _window$chrome$webvie === void 0 ? void 0 : _window$chrome$webvie.addEventListener('message', function (e) {
|
|
235313
235711
|
var res = JSON.parse(e.data);
|
|
235314
235712
|
|
|
235315
|
-
if (res.result == true && res.res.cmd ==
|
|
235713
|
+
if (res.result == true && res.res.cmd == 'GetList') {
|
|
235316
235714
|
var _this$callBack;
|
|
235317
235715
|
|
|
235318
235716
|
_this._localXmlList = res.res.EMR;
|
|
235319
235717
|
(_this$callBack = _this.callBack) === null || _this$callBack === void 0 ? void 0 : _this$callBack.call(_this, _this._localXmlList);
|
|
235320
235718
|
}
|
|
235321
235719
|
|
|
235322
|
-
|
|
235323
|
-
|
|
235324
|
-
if (res.result == true && res.res.cmd == "Load") {
|
|
235720
|
+
if (res.result == true && res.res.cmd == 'Load') {
|
|
235325
235721
|
var _this$callBackForLoad;
|
|
235326
235722
|
|
|
235327
235723
|
_this._localXmlContent = res.res.EMR;
|
|
235328
235724
|
(_this$callBackForLoad = _this.callBackForLoad) === null || _this$callBackForLoad === void 0 ? void 0 : _this$callBackForLoad.call(_this, _this._localXmlContent);
|
|
235329
235725
|
}
|
|
235330
235726
|
|
|
235331
|
-
|
|
235332
|
-
|
|
235333
|
-
if (res.res.cmd == "save") {} else {
|
|
235727
|
+
if (res.res.cmd == 'save') {} else {
|
|
235334
235728
|
return false;
|
|
235335
235729
|
}
|
|
235336
235730
|
});
|
|
@@ -235364,9 +235758,9 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
235364
235758
|
this.callBack = callBack;
|
|
235365
235759
|
var hoEitfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
235366
235760
|
var data = {
|
|
235367
|
-
exec:
|
|
235761
|
+
exec: 'emr',
|
|
235368
235762
|
data: {
|
|
235369
|
-
cmd:
|
|
235763
|
+
cmd: 'getlist',
|
|
235370
235764
|
content: {
|
|
235371
235765
|
PatientID: hoEitfactory.docTree.docProperty.patientID,
|
|
235372
235766
|
EMRName: hoEitfactory.docTree.docProperty.title
|
|
@@ -235391,9 +235785,9 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
235391
235785
|
|
|
235392
235786
|
this.callBackForLoad = callBack;
|
|
235393
235787
|
var data = {
|
|
235394
|
-
exec:
|
|
235788
|
+
exec: 'emr',
|
|
235395
235789
|
data: {
|
|
235396
|
-
cmd:
|
|
235790
|
+
cmd: 'load',
|
|
235397
235791
|
content: {
|
|
235398
235792
|
PatientID: item.PatientID,
|
|
235399
235793
|
FileName: item.FileName
|
|
@@ -235451,9 +235845,9 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
235451
235845
|
|
|
235452
235846
|
if (hoEitfactory && hoEitfactory.vueController.isModifyDoc()) {
|
|
235453
235847
|
var data = {
|
|
235454
|
-
exec:
|
|
235848
|
+
exec: 'emr',
|
|
235455
235849
|
data: {
|
|
235456
|
-
cmd:
|
|
235850
|
+
cmd: 'save',
|
|
235457
235851
|
content: {
|
|
235458
235852
|
PatientID: hoEitfactory.docTree.docProperty.patientID,
|
|
235459
235853
|
EMRName: hoEitfactory.docTree.docProperty.title,
|
|
@@ -235540,10 +235934,18 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
235540
235934
|
key: "saveFontString",
|
|
235541
235935
|
value: function saveFontString(font) {
|
|
235542
235936
|
this._print_font.setItem('sunsim_font', font);
|
|
235937
|
+
|
|
235938
|
+
this._print_font.setItem('sunsim_font_cache', '1');
|
|
235543
235939
|
}
|
|
235544
235940
|
}, {
|
|
235545
235941
|
key: "loadFontString",
|
|
235546
|
-
value: function loadFontString() {
|
|
235942
|
+
value: function loadFontString(cache) {
|
|
235943
|
+
if (cache === '1') {
|
|
235944
|
+
return this._print_font.getItem('sunsim_font_cache');
|
|
235945
|
+
}
|
|
235946
|
+
|
|
235947
|
+
this._print_font.setItem('sunsim_font_cache', '1');
|
|
235948
|
+
|
|
235547
235949
|
return this._print_font.getItem('sunsim_font');
|
|
235548
235950
|
}
|
|
235549
235951
|
}]);
|
|
@@ -235625,6 +236027,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
235625
236027
|
this._lastSaveTime = new Date(Date.now());
|
|
235626
236028
|
this._superiorSigns = []; //上级医生签名
|
|
235627
236029
|
|
|
236030
|
+
this._notAllowCrossPatiPaste = false; //不允许跨病人复制粘贴
|
|
236031
|
+
|
|
235628
236032
|
this._hoEditorFactoryId = id;
|
|
235629
236033
|
}
|
|
235630
236034
|
/**
|
|
@@ -236181,6 +236585,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
236181
236585
|
this._pasteBase = value;
|
|
236182
236586
|
}
|
|
236183
236587
|
}
|
|
236588
|
+
}, {
|
|
236589
|
+
key: "notAllowCrossPatiPaste",
|
|
236590
|
+
get: function get() {
|
|
236591
|
+
return this._notAllowCrossPatiPaste;
|
|
236592
|
+
},
|
|
236593
|
+
set: function set(value) {
|
|
236594
|
+
if (this._notAllowCrossPatiPaste !== value) {
|
|
236595
|
+
this._notAllowCrossPatiPaste = value;
|
|
236596
|
+
}
|
|
236597
|
+
}
|
|
236184
236598
|
}, {
|
|
236185
236599
|
key: "isHideComments",
|
|
236186
236600
|
get: function get() {
|