hoeditor-web 2.0.55 → 2.0.56

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.
@@ -22413,8 +22413,7 @@ var Comment = /*#__PURE__*/function () {
22413
22413
  key: "whiteList",
22414
22414
  value: function whiteList() {
22415
22415
  return ['id', 'text', 'date', 'lineHeight', //"endPath",
22416
- 'userID', 'userName', //"endMarkNode"
22417
- 'customProperty'];
22416
+ 'userID', 'userName'];
22418
22417
  }
22419
22418
  }]);
22420
22419
 
@@ -62623,11 +62622,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62623
62622
  }
62624
62623
 
62625
62624
  this._tmp.start = Arange.startPath;
62626
- this._tmp.end = Arange.endPath;
62627
-
62628
- if (s instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_21__/* .MarkNode */ .j && s.parentNode == hoEditorFactory.docTree.getParentNode(Arange.endPath) && Arange.endPath != hoEditorFactory.docTree.getNodeFirstPath(s.nextLeaf())) {
62629
- return true;
62630
- }
62625
+ this._tmp.end = Arange.endPath; // if (s instanceof MarkNode && s.parentNode == hoEditorFactory.docTree.getParentNode(Arange.endPath) && Arange.endPath != hoEditorFactory.docTree.getNodeFirstPath(s.nextLeaf() as BaseNode)) {
62626
+ // return true;
62627
+ // }
62631
62628
 
62632
62629
  if (s === e) {
62633
62630
  if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_13__/* .TextNode */ .R) {
@@ -206743,7 +206740,7 @@ var SignNode = __webpack_require__(34450);
206743
206740
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
206744
206741
  var ParagraphNode = __webpack_require__(14208);
206745
206742
  ;// CONCATENATED MODULE: ./src/components/version.ts
206746
- /* harmony default export */ var version = ('2.0.55');
206743
+ /* harmony default export */ var version = ('2.0.56');
206747
206744
  ;// 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&
206748
206745
  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)}
206749
206746
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
@@ -211843,6 +211840,7 @@ var StructureConvert = /*#__PURE__*/function () {
211843
211840
  var comments = hoEditorFactory.drawTree.commentsMap;
211844
211841
  comments.forEach(function (value) {
211845
211842
  var commentJson = JSON.parse(JSON.stringify(value, Comment/* Comment.whiteList */.s.whiteList()));
211843
+ commentJson.customProperty = value.customProperty;
211846
211844
  commentsArr.push(commentJson);
211847
211845
  });
211848
211846
  return {
@@ -220325,6 +220323,71 @@ var VueController = /*#__PURE__*/function () {
220325
220323
  getAllNodes(mainNodes);
220326
220324
  return isHasDoctorSign;
220327
220325
  }
220326
+ }, {
220327
+ key: "SyncElements",
220328
+ value: function SyncElements() {
220329
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220330
+ var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
220331
+ var nodes = DomRange/* DomRange.getSelectDomNodesForUpdate */.a.getSelectDomNodesForUpdate(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.endPath);
220332
+ var fieldNames = [];
220333
+ var dateNames = [];
220334
+ var downNames = [];
220335
+ hoEditorFactory.docTree.curDomRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.startPath);
220336
+
220337
+ for (var i = 0; i < nodes.length; i++) {
220338
+ var node = nodes[i];
220339
+
220340
+ if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220341
+ if (fieldNames.indexOf(node.name) === -1) {
220342
+ fieldNames.push(node.name);
220343
+ var sameNameEles = this.getNodesByName("all", true, node.name);
220344
+
220345
+ for (var j = 0; j < sameNameEles.length; j++) {
220346
+ var ele = sameNameEles[j];
220347
+ if (nodes.indexOf(ele) >= 0) continue;
220348
+
220349
+ if (ele instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220350
+ ele.setFieldText(node.text);
220351
+ }
220352
+ }
220353
+ }
220354
+ }
220355
+
220356
+ if (node instanceof DateTimeNode/* DateTimeNode */.Z) {
220357
+ if (dateNames.indexOf(node.name) === -1) {
220358
+ dateNames.push(node.name);
220359
+
220360
+ var _sameNameEles = this.getNodesByName("all", true, node.name);
220361
+
220362
+ for (var _j = 0; _j < _sameNameEles.length; _j++) {
220363
+ var _ele = _sameNameEles[_j];
220364
+ if (nodes.indexOf(_ele) >= 0) continue;
220365
+
220366
+ if (_ele instanceof DateTimeNode/* DateTimeNode */.Z) {
220367
+ _ele.setDateTimeText(node.text);
220368
+ }
220369
+ }
220370
+ }
220371
+ }
220372
+
220373
+ if (node instanceof DownListNode/* DownListNode */.yF) {
220374
+ if (downNames.indexOf(node.name) === -1) {
220375
+ downNames.push(node.name);
220376
+
220377
+ var _sameNameEles2 = this.getNodesByName("all", true, node.name);
220378
+
220379
+ for (var _j2 = 0; _j2 < _sameNameEles2.length; _j2++) {
220380
+ var _ele2 = _sameNameEles2[_j2];
220381
+ if (nodes.indexOf(_ele2) >= 0) continue;
220382
+
220383
+ if (_ele2 instanceof DownListNode/* DownListNode */.yF) {
220384
+ _ele2.setDownListText(node.text);
220385
+ }
220386
+ }
220387
+ }
220388
+ }
220389
+ }
220390
+ }
220328
220391
  }]);
220329
220392
 
220330
220393
  return VueController;
@@ -232462,9 +232525,9 @@ var HoDocs_component = normalizeComponent(
232462
232525
  )
232463
232526
 
232464
232527
  /* harmony default export */ var components_HoDocs = (HoDocs_component.exports);
232465
- ;// 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/toolbar/ToolBar.vue?vue&type=template&id=3f61d307&
232466
- var ToolBarvue_type_template_id_3f61d307_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tabs',{attrs:{"tabKey":_vm.tabKey},on:{"tabClick":_vm.mainBarClick,"updateTabKey":_vm.updateTabKey}},[_vm._t("beforeBrowse"),_c('tab-pane',{attrs:{"isShow":_vm.defaultBrowseJson.isBrowse,"label":"浏览模式","notHover":true,"name":"ho-browse"}},[(_vm.defaultBrowseJson.saveAsFile)?_c('li',{staticClass:"sub-bar-items"},[_c('el-dropdown',{attrs:{"trigger":"click"}},[_c('span',{staticClass:"el-dropdown-link"},[_vm._v("另存为")]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('xml')}}},[_vm._v("XML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('html')}}},[_vm._v("HTML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('pdf')}}},[_vm._v("PDF")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('plain')}}},[_vm._v("TXT")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('json')}}},[_vm._v("JSON")])],1)],1)],1):_vm._e(),(_vm.isPrinted)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{class:_vm.isPrintClass,on:{"click":_vm.outPrinted}},[_vm._v("退出打印预览状态")])]):_vm._e(),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printed)?_c('span',{class:_vm.printedClass,on:{"click":_vm.printed}},[_vm._v("打印")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printSelected)?_c('span',{class:_vm.printSelectedClass,on:{"click":_vm.printSelected}},[_vm._v("打印拖动鼠标选中区域")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border-right":"1px solid #e6e6e6"}},[(_vm.defaultBrowseJson.printCaret)?_c('span',{class:_vm.printCaretClass,on:{"click":_vm.printCaret}},[_vm._v("打印鼠标点击位置")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border":"0"}},[(_vm.defaultBrowseJson.printContinue)?_c('span',{class:_vm.printContinueClass,on:{"click":_vm.printContinue}},[_vm._v("续打")]):_vm._e()]),_c('HoPrintDialog',{attrs:{"vueController":_vm.vueController,"printBeforeStatus":5,"printModal":_vm.printModal},on:{"closed":_vm.closedHoPrintModal}})],1),_vm._t("beforeEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isEdit,"label":"编辑模式","notHover":true,"name":"ho-edit"}},[_c('ToolBarChild',{attrs:{"editJson":_vm.defaultEditJson,"vueController":_vm.vueController,"tabStatus":_vm.tabStatus,"textStyle":_vm.textStyle,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus}})],1),_vm._t("afterEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertElement,"label":"插入","name":"ho-insert"}},[_c('tool-control',{attrs:{"insert":_vm.defaultEditJson,"vueController":_vm.vueController,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus},scopedSlots:_vm._u([{key:"hoInsertItem",fn:function(){return [_vm._t("insideInsert")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertTable,"label":"表格","name":"ho-table"}},[_c('tool-table',{attrs:{"table":_vm.defaultEditJson,"tableProperty":{canAddRow: _vm.textStyle.canAddRow, canDeleteRow: _vm.textStyle.canDeleteRow},"vueController":_vm.vueController},scopedSlots:_vm._u([{key:"hoTableItem",fn:function(){return [_vm._t("insideTable")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultReviewJson.isReview,"label":"审阅模式","name":"ho-review"}},[_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.insertComment)?_c('span',{staticClass:"review",on:{"click":function($event){$event.stopPropagation();return _vm.createControlComment.apply(null, arguments)}}},[_vm._v("插入批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.editComment)?_c('span',{staticClass:"review",on:{"click":_vm.editComment}},[_vm._v("编辑批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteComment}},[_vm._v("删除批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteAllComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteAllComment}},[_vm._v("删除全部批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.cancelDelete)?_c('span',{staticClass:"review",on:{"click":_vm.cancelDelete}},[_vm._v("取消删除文本")]):_vm._e()]),_vm._t("insertReview"),(_vm.defaultReviewJson.printStatus)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{on:{"click":_vm.reviewPrintStatus}},[_vm._v(_vm._s(_vm.isPrinted ? "返回审阅模式" : "浏览模式"))])]):_vm._e()],2),_vm._t("afterReview")],2)}
232467
- var ToolBarvue_type_template_id_3f61d307_staticRenderFns = []
232528
+ ;// 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/toolbar/ToolBar.vue?vue&type=template&id=0e95df22&
232529
+ var ToolBarvue_type_template_id_0e95df22_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tabs',{attrs:{"tabKey":_vm.tabKey},on:{"tabClick":_vm.mainBarClick,"updateTabKey":_vm.updateTabKey}},[_vm._t("beforeBrowse"),_c('tab-pane',{attrs:{"isShow":_vm.defaultBrowseJson.isBrowse,"label":"浏览模式","notHover":true,"name":"ho-browse"}},[(_vm.defaultBrowseJson.saveAsFile)?_c('li',{staticClass:"sub-bar-items"},[_c('el-dropdown',{attrs:{"trigger":"click"}},[_c('span',{staticClass:"el-dropdown-link"},[_vm._v("另存为")]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('xml')}}},[_vm._v("XML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('html')}}},[_vm._v("HTML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('pdf')}}},[_vm._v("PDF")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('plain')}}},[_vm._v("TXT")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('json')}}},[_vm._v("JSON")])],1)],1)],1):_vm._e(),(_vm.isPrinted)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{class:_vm.isPrintClass,on:{"click":_vm.outPrinted}},[_vm._v("退出打印预览状态")])]):_vm._e(),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printed)?_c('span',{class:_vm.printedClass,on:{"click":_vm.printed}},[_vm._v("打印")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printSelected)?_c('span',{class:_vm.printSelectedClass,on:{"click":_vm.printSelected}},[_vm._v("打印拖动鼠标选中区域")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border-right":"1px solid #e6e6e6"}},[(_vm.defaultBrowseJson.printCaret)?_c('span',{class:_vm.printCaretClass,on:{"click":_vm.printCaret}},[_vm._v("打印鼠标点击位置")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border":"0"}},[(_vm.defaultBrowseJson.printContinue)?_c('span',{class:_vm.printContinueClass,on:{"click":_vm.printContinue}},[_vm._v("续打")]):_vm._e()]),_c('HoPrintDialog',{attrs:{"vueController":_vm.vueController,"printBeforeStatus":5,"printModal":_vm.printModal},on:{"closed":_vm.closedHoPrintModal}})],1),_vm._t("beforeEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isEdit,"label":"编辑模式","notHover":true,"name":"ho-edit"}},[_c('ToolBarChild',{attrs:{"editJson":_vm.defaultEditJson,"vueController":_vm.vueController,"tabStatus":_vm.tabStatus,"textStyle":_vm.textStyle,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus}})],1),_vm._t("afterEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertElement,"label":"插入","name":"ho-insert"}},[_c('tool-control',{attrs:{"insert":_vm.defaultEditJson,"vueController":_vm.vueController,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus},scopedSlots:_vm._u([{key:"hoInsertItem",fn:function(){return [_vm._t("insideInsert")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertTable,"label":"表格","name":"ho-table"}},[_c('tool-table',{attrs:{"table":_vm.defaultEditJson,"tableProperty":{canAddRow: _vm.textStyle.canAddRow, canDeleteRow: _vm.textStyle.canDeleteRow},"vueController":_vm.vueController},scopedSlots:_vm._u([{key:"hoTableItem",fn:function(){return [_vm._t("insideTable")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultReviewJson.isReview,"label":"审阅模式","name":"ho-review"}},[_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.insertComment)?_c('span',{staticClass:"review",on:{"click":function($event){$event.stopPropagation();return _vm.createControlComment.apply(null, arguments)}}},[_vm._v("插入批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.editComment)?_c('span',{staticClass:"review",on:{"click":_vm.editComment}},[_vm._v("编辑批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteComment}},[_vm._v("删除批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteAllComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteAllComment}},[_vm._v("删除全部批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.cancelDelete)?_c('span',{staticClass:"review",on:{"click":_vm.cancelDelete}},[_vm._v("取消删除文本")]):_vm._e()]),_vm._t("insertReview"),(_vm.defaultReviewJson.printStatus)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{on:{"click":_vm.reviewPrintStatus}},[_vm._v(_vm._s(_vm.isPrinted ? "显示批注" : "隐藏批注"))])]):_vm._e()],2),_vm._t("afterReview")],2)}
232530
+ var ToolBarvue_type_template_id_0e95df22_staticRenderFns = []
232468
232531
 
232469
232532
 
232470
232533
  ;// 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/toolbar/insert/HoMedicalExpression.vue?vue&type=template&id=7096edd1&scoped=true&
@@ -237762,8 +237825,8 @@ ToolBar = __decorate([vue_class_component_esm({
237762
237825
 
237763
237826
  var ToolBar_component = normalizeComponent(
237764
237827
  toolbar_ToolBarvue_type_script_lang_ts_,
237765
- ToolBarvue_type_template_id_3f61d307_render,
237766
- ToolBarvue_type_template_id_3f61d307_staticRenderFns,
237828
+ ToolBarvue_type_template_id_0e95df22_render,
237829
+ ToolBarvue_type_template_id_0e95df22_staticRenderFns,
237767
237830
  false,
237768
237831
  null,
237769
237832
  null,
@@ -22423,8 +22423,7 @@ var Comment = /*#__PURE__*/function () {
22423
22423
  key: "whiteList",
22424
22424
  value: function whiteList() {
22425
22425
  return ['id', 'text', 'date', 'lineHeight', //"endPath",
22426
- 'userID', 'userName', //"endMarkNode"
22427
- 'customProperty'];
22426
+ 'userID', 'userName'];
22428
22427
  }
22429
22428
  }]);
22430
22429
 
@@ -62633,11 +62632,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62633
62632
  }
62634
62633
 
62635
62634
  this._tmp.start = Arange.startPath;
62636
- this._tmp.end = Arange.endPath;
62637
-
62638
- if (s instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_21__/* .MarkNode */ .j && s.parentNode == hoEditorFactory.docTree.getParentNode(Arange.endPath) && Arange.endPath != hoEditorFactory.docTree.getNodeFirstPath(s.nextLeaf())) {
62639
- return true;
62640
- }
62635
+ this._tmp.end = Arange.endPath; // if (s instanceof MarkNode && s.parentNode == hoEditorFactory.docTree.getParentNode(Arange.endPath) && Arange.endPath != hoEditorFactory.docTree.getNodeFirstPath(s.nextLeaf() as BaseNode)) {
62636
+ // return true;
62637
+ // }
62641
62638
 
62642
62639
  if (s === e) {
62643
62640
  if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_13__/* .TextNode */ .R) {
@@ -206753,7 +206750,7 @@ var SignNode = __webpack_require__(78975);
206753
206750
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
206754
206751
  var ParagraphNode = __webpack_require__(13880);
206755
206752
  ;// CONCATENATED MODULE: ./src/components/version.ts
206756
- /* harmony default export */ var version = ('2.0.55');
206753
+ /* harmony default export */ var version = ('2.0.56');
206757
206754
  ;// 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&
206758
206755
  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)}
206759
206756
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
@@ -211853,6 +211850,7 @@ var StructureConvert = /*#__PURE__*/function () {
211853
211850
  var comments = hoEditorFactory.drawTree.commentsMap;
211854
211851
  comments.forEach(function (value) {
211855
211852
  var commentJson = JSON.parse(JSON.stringify(value, Comment/* Comment.whiteList */.s.whiteList()));
211853
+ commentJson.customProperty = value.customProperty;
211856
211854
  commentsArr.push(commentJson);
211857
211855
  });
211858
211856
  return {
@@ -220335,6 +220333,71 @@ var VueController = /*#__PURE__*/function () {
220335
220333
  getAllNodes(mainNodes);
220336
220334
  return isHasDoctorSign;
220337
220335
  }
220336
+ }, {
220337
+ key: "SyncElements",
220338
+ value: function SyncElements() {
220339
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220340
+ var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
220341
+ var nodes = DomRange/* DomRange.getSelectDomNodesForUpdate */.a.getSelectDomNodesForUpdate(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.endPath);
220342
+ var fieldNames = [];
220343
+ var dateNames = [];
220344
+ var downNames = [];
220345
+ hoEditorFactory.docTree.curDomRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.startPath);
220346
+
220347
+ for (var i = 0; i < nodes.length; i++) {
220348
+ var node = nodes[i];
220349
+
220350
+ if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220351
+ if (fieldNames.indexOf(node.name) === -1) {
220352
+ fieldNames.push(node.name);
220353
+ var sameNameEles = this.getNodesByName("all", true, node.name);
220354
+
220355
+ for (var j = 0; j < sameNameEles.length; j++) {
220356
+ var ele = sameNameEles[j];
220357
+ if (nodes.indexOf(ele) >= 0) continue;
220358
+
220359
+ if (ele instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220360
+ ele.setFieldText(node.text);
220361
+ }
220362
+ }
220363
+ }
220364
+ }
220365
+
220366
+ if (node instanceof DateTimeNode/* DateTimeNode */.Z) {
220367
+ if (dateNames.indexOf(node.name) === -1) {
220368
+ dateNames.push(node.name);
220369
+
220370
+ var _sameNameEles = this.getNodesByName("all", true, node.name);
220371
+
220372
+ for (var _j = 0; _j < _sameNameEles.length; _j++) {
220373
+ var _ele = _sameNameEles[_j];
220374
+ if (nodes.indexOf(_ele) >= 0) continue;
220375
+
220376
+ if (_ele instanceof DateTimeNode/* DateTimeNode */.Z) {
220377
+ _ele.setDateTimeText(node.text);
220378
+ }
220379
+ }
220380
+ }
220381
+ }
220382
+
220383
+ if (node instanceof DownListNode/* DownListNode */.yF) {
220384
+ if (downNames.indexOf(node.name) === -1) {
220385
+ downNames.push(node.name);
220386
+
220387
+ var _sameNameEles2 = this.getNodesByName("all", true, node.name);
220388
+
220389
+ for (var _j2 = 0; _j2 < _sameNameEles2.length; _j2++) {
220390
+ var _ele2 = _sameNameEles2[_j2];
220391
+ if (nodes.indexOf(_ele2) >= 0) continue;
220392
+
220393
+ if (_ele2 instanceof DownListNode/* DownListNode */.yF) {
220394
+ _ele2.setDownListText(node.text);
220395
+ }
220396
+ }
220397
+ }
220398
+ }
220399
+ }
220400
+ }
220338
220401
  }]);
220339
220402
 
220340
220403
  return VueController;
@@ -232472,9 +232535,9 @@ var HoDocs_component = normalizeComponent(
232472
232535
  )
232473
232536
 
232474
232537
  /* harmony default export */ var components_HoDocs = (HoDocs_component.exports);
232475
- ;// 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/toolbar/ToolBar.vue?vue&type=template&id=3f61d307&
232476
- var ToolBarvue_type_template_id_3f61d307_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tabs',{attrs:{"tabKey":_vm.tabKey},on:{"tabClick":_vm.mainBarClick,"updateTabKey":_vm.updateTabKey}},[_vm._t("beforeBrowse"),_c('tab-pane',{attrs:{"isShow":_vm.defaultBrowseJson.isBrowse,"label":"浏览模式","notHover":true,"name":"ho-browse"}},[(_vm.defaultBrowseJson.saveAsFile)?_c('li',{staticClass:"sub-bar-items"},[_c('el-dropdown',{attrs:{"trigger":"click"}},[_c('span',{staticClass:"el-dropdown-link"},[_vm._v("另存为")]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('xml')}}},[_vm._v("XML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('html')}}},[_vm._v("HTML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('pdf')}}},[_vm._v("PDF")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('plain')}}},[_vm._v("TXT")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('json')}}},[_vm._v("JSON")])],1)],1)],1):_vm._e(),(_vm.isPrinted)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{class:_vm.isPrintClass,on:{"click":_vm.outPrinted}},[_vm._v("退出打印预览状态")])]):_vm._e(),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printed)?_c('span',{class:_vm.printedClass,on:{"click":_vm.printed}},[_vm._v("打印")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printSelected)?_c('span',{class:_vm.printSelectedClass,on:{"click":_vm.printSelected}},[_vm._v("打印拖动鼠标选中区域")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border-right":"1px solid #e6e6e6"}},[(_vm.defaultBrowseJson.printCaret)?_c('span',{class:_vm.printCaretClass,on:{"click":_vm.printCaret}},[_vm._v("打印鼠标点击位置")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border":"0"}},[(_vm.defaultBrowseJson.printContinue)?_c('span',{class:_vm.printContinueClass,on:{"click":_vm.printContinue}},[_vm._v("续打")]):_vm._e()]),_c('HoPrintDialog',{attrs:{"vueController":_vm.vueController,"printBeforeStatus":5,"printModal":_vm.printModal},on:{"closed":_vm.closedHoPrintModal}})],1),_vm._t("beforeEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isEdit,"label":"编辑模式","notHover":true,"name":"ho-edit"}},[_c('ToolBarChild',{attrs:{"editJson":_vm.defaultEditJson,"vueController":_vm.vueController,"tabStatus":_vm.tabStatus,"textStyle":_vm.textStyle,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus}})],1),_vm._t("afterEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertElement,"label":"插入","name":"ho-insert"}},[_c('tool-control',{attrs:{"insert":_vm.defaultEditJson,"vueController":_vm.vueController,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus},scopedSlots:_vm._u([{key:"hoInsertItem",fn:function(){return [_vm._t("insideInsert")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertTable,"label":"表格","name":"ho-table"}},[_c('tool-table',{attrs:{"table":_vm.defaultEditJson,"tableProperty":{canAddRow: _vm.textStyle.canAddRow, canDeleteRow: _vm.textStyle.canDeleteRow},"vueController":_vm.vueController},scopedSlots:_vm._u([{key:"hoTableItem",fn:function(){return [_vm._t("insideTable")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultReviewJson.isReview,"label":"审阅模式","name":"ho-review"}},[_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.insertComment)?_c('span',{staticClass:"review",on:{"click":function($event){$event.stopPropagation();return _vm.createControlComment.apply(null, arguments)}}},[_vm._v("插入批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.editComment)?_c('span',{staticClass:"review",on:{"click":_vm.editComment}},[_vm._v("编辑批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteComment}},[_vm._v("删除批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteAllComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteAllComment}},[_vm._v("删除全部批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.cancelDelete)?_c('span',{staticClass:"review",on:{"click":_vm.cancelDelete}},[_vm._v("取消删除文本")]):_vm._e()]),_vm._t("insertReview"),(_vm.defaultReviewJson.printStatus)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{on:{"click":_vm.reviewPrintStatus}},[_vm._v(_vm._s(_vm.isPrinted ? "返回审阅模式" : "浏览模式"))])]):_vm._e()],2),_vm._t("afterReview")],2)}
232477
- var ToolBarvue_type_template_id_3f61d307_staticRenderFns = []
232538
+ ;// 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/toolbar/ToolBar.vue?vue&type=template&id=0e95df22&
232539
+ var ToolBarvue_type_template_id_0e95df22_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tabs',{attrs:{"tabKey":_vm.tabKey},on:{"tabClick":_vm.mainBarClick,"updateTabKey":_vm.updateTabKey}},[_vm._t("beforeBrowse"),_c('tab-pane',{attrs:{"isShow":_vm.defaultBrowseJson.isBrowse,"label":"浏览模式","notHover":true,"name":"ho-browse"}},[(_vm.defaultBrowseJson.saveAsFile)?_c('li',{staticClass:"sub-bar-items"},[_c('el-dropdown',{attrs:{"trigger":"click"}},[_c('span',{staticClass:"el-dropdown-link"},[_vm._v("另存为")]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('xml')}}},[_vm._v("XML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('html')}}},[_vm._v("HTML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('pdf')}}},[_vm._v("PDF")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('plain')}}},[_vm._v("TXT")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('json')}}},[_vm._v("JSON")])],1)],1)],1):_vm._e(),(_vm.isPrinted)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{class:_vm.isPrintClass,on:{"click":_vm.outPrinted}},[_vm._v("退出打印预览状态")])]):_vm._e(),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printed)?_c('span',{class:_vm.printedClass,on:{"click":_vm.printed}},[_vm._v("打印")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printSelected)?_c('span',{class:_vm.printSelectedClass,on:{"click":_vm.printSelected}},[_vm._v("打印拖动鼠标选中区域")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border-right":"1px solid #e6e6e6"}},[(_vm.defaultBrowseJson.printCaret)?_c('span',{class:_vm.printCaretClass,on:{"click":_vm.printCaret}},[_vm._v("打印鼠标点击位置")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border":"0"}},[(_vm.defaultBrowseJson.printContinue)?_c('span',{class:_vm.printContinueClass,on:{"click":_vm.printContinue}},[_vm._v("续打")]):_vm._e()]),_c('HoPrintDialog',{attrs:{"vueController":_vm.vueController,"printBeforeStatus":5,"printModal":_vm.printModal},on:{"closed":_vm.closedHoPrintModal}})],1),_vm._t("beforeEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isEdit,"label":"编辑模式","notHover":true,"name":"ho-edit"}},[_c('ToolBarChild',{attrs:{"editJson":_vm.defaultEditJson,"vueController":_vm.vueController,"tabStatus":_vm.tabStatus,"textStyle":_vm.textStyle,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus}})],1),_vm._t("afterEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertElement,"label":"插入","name":"ho-insert"}},[_c('tool-control',{attrs:{"insert":_vm.defaultEditJson,"vueController":_vm.vueController,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus},scopedSlots:_vm._u([{key:"hoInsertItem",fn:function(){return [_vm._t("insideInsert")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertTable,"label":"表格","name":"ho-table"}},[_c('tool-table',{attrs:{"table":_vm.defaultEditJson,"tableProperty":{canAddRow: _vm.textStyle.canAddRow, canDeleteRow: _vm.textStyle.canDeleteRow},"vueController":_vm.vueController},scopedSlots:_vm._u([{key:"hoTableItem",fn:function(){return [_vm._t("insideTable")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultReviewJson.isReview,"label":"审阅模式","name":"ho-review"}},[_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.insertComment)?_c('span',{staticClass:"review",on:{"click":function($event){$event.stopPropagation();return _vm.createControlComment.apply(null, arguments)}}},[_vm._v("插入批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.editComment)?_c('span',{staticClass:"review",on:{"click":_vm.editComment}},[_vm._v("编辑批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteComment}},[_vm._v("删除批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteAllComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteAllComment}},[_vm._v("删除全部批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.cancelDelete)?_c('span',{staticClass:"review",on:{"click":_vm.cancelDelete}},[_vm._v("取消删除文本")]):_vm._e()]),_vm._t("insertReview"),(_vm.defaultReviewJson.printStatus)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{on:{"click":_vm.reviewPrintStatus}},[_vm._v(_vm._s(_vm.isPrinted ? "显示批注" : "隐藏批注"))])]):_vm._e()],2),_vm._t("afterReview")],2)}
232540
+ var ToolBarvue_type_template_id_0e95df22_staticRenderFns = []
232478
232541
 
232479
232542
 
232480
232543
  ;// 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/toolbar/insert/HoMedicalExpression.vue?vue&type=template&id=7096edd1&scoped=true&
@@ -237772,8 +237835,8 @@ ToolBar = __decorate([vue_class_component_esm({
237772
237835
 
237773
237836
  var ToolBar_component = normalizeComponent(
237774
237837
  toolbar_ToolBarvue_type_script_lang_ts_,
237775
- ToolBarvue_type_template_id_3f61d307_render,
237776
- ToolBarvue_type_template_id_3f61d307_staticRenderFns,
237838
+ ToolBarvue_type_template_id_0e95df22_render,
237839
+ ToolBarvue_type_template_id_0e95df22_staticRenderFns,
237777
237840
  false,
237778
237841
  null,
237779
237842
  null,