hoeditor-web 2.0.97 → 2.0.98
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 +50 -8
- package/lib/hoeditor.umd.js +50 -8
- package/lib/hoeditor.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -214673,9 +214673,9 @@ var es_string_match = __webpack_require__(4723);
|
|
|
214673
214673
|
var es_number_constructor = __webpack_require__(9653);
|
|
214674
214674
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
214675
214675
|
var es_json_stringify = __webpack_require__(38862);
|
|
214676
|
-
;// 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=
|
|
214677
|
-
var
|
|
214678
|
-
var
|
|
214676
|
+
;// 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=1c848738&
|
|
214677
|
+
var HoDocvue_type_template_id_1c848738_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)}
|
|
214678
|
+
var HoDocvue_type_template_id_1c848738_staticRenderFns = []
|
|
214679
214679
|
|
|
214680
214680
|
|
|
214681
214681
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
@@ -218316,7 +218316,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
218316
218316
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
218317
218317
|
var ParagraphNode = __webpack_require__(14208);
|
|
218318
218318
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
218319
|
-
/* harmony default export */ var version = ('2.0.
|
|
218319
|
+
/* harmony default export */ var version = ('2.0.98');
|
|
218320
218320
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
218321
218321
|
var PoperTipText = __webpack_require__(91831);
|
|
218322
218322
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -218801,6 +218801,10 @@ var ImageNode = __webpack_require__(88389);
|
|
|
218801
218801
|
};
|
|
218802
218802
|
|
|
218803
218803
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
218804
|
+
// if(hoEditorFactory.drawTree.paintStatus === 0 && !node.imgSrc && !node.fingerPrintSrc) {
|
|
218805
|
+
// // this.$emit()
|
|
218806
|
+
// return;
|
|
218807
|
+
// }
|
|
218804
218808
|
// 通过自定义属性内部字段判断是否属于患者签名 指纹签名只有患者签名才会有 同时患者签名不存在自定义属性可以用是否存在某个属性确定是否是患者签名(需要确定的是imgsrc要存在 imgsrc不存在是指空签名元素)
|
|
218805
218809
|
if (node.fingerPrintSrc || node.imgSrc && !node.fingerPrintSrc && node.customProperty && !node.customProperty.created_date) return false;
|
|
218806
218810
|
this.$emit('dblNodeClick', {
|
|
@@ -219095,8 +219099,8 @@ var ImageNode = __webpack_require__(88389);
|
|
|
219095
219099
|
|
|
219096
219100
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
219097
219101
|
components_HoDocvue_type_script_lang_js_,
|
|
219098
|
-
|
|
219099
|
-
|
|
219102
|
+
HoDocvue_type_template_id_1c848738_render,
|
|
219103
|
+
HoDocvue_type_template_id_1c848738_staticRenderFns,
|
|
219100
219104
|
false,
|
|
219101
219105
|
null,
|
|
219102
219106
|
null,
|
|
@@ -227601,8 +227605,23 @@ var VueController = /*#__PURE__*/function () {
|
|
|
227601
227605
|
}, {
|
|
227602
227606
|
key: "getDocXml",
|
|
227603
227607
|
value: function getDocXml(beauty, isValidStyle, clearSign) {
|
|
227604
|
-
var
|
|
227605
|
-
|
|
227608
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
227609
|
+
|
|
227610
|
+
if (beauty && isValidStyle) {
|
|
227611
|
+
hoEditorFactory.contentIsModify.isModify = false;
|
|
227612
|
+
var stack = hoEditorFactory.undoService.stack;
|
|
227613
|
+
|
|
227614
|
+
if (stack.length > 0) {
|
|
227615
|
+
var lastUnRedo = stack[stack.length - 1];
|
|
227616
|
+
var undoUnits = lastUnRedo.undoUnits;
|
|
227617
|
+
var undoUnit = undoUnits[undoUnits.length - 1];
|
|
227618
|
+
hoEditorFactory.lastSaveTime = undoUnit.opTime;
|
|
227619
|
+
} else {
|
|
227620
|
+
hoEditorFactory.lastSaveTime = new Date(Date.now());
|
|
227621
|
+
}
|
|
227622
|
+
}
|
|
227623
|
+
|
|
227624
|
+
return hoEditorFactory.structureConvert.doc2Xml('xml', beauty, isValidStyle, clearSign);
|
|
227606
227625
|
}
|
|
227607
227626
|
/**
|
|
227608
227627
|
* 返回编辑后的表单json数据
|
|
@@ -230431,6 +230450,29 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230431
230450
|
|
|
230432
230451
|
return isModify;
|
|
230433
230452
|
}
|
|
230453
|
+
/**
|
|
230454
|
+
* 文档修改信息
|
|
230455
|
+
*/
|
|
230456
|
+
|
|
230457
|
+
}, {
|
|
230458
|
+
key: "getDocModifyInfo",
|
|
230459
|
+
value: function getDocModifyInfo() {
|
|
230460
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
230461
|
+
var modifyInfo = {
|
|
230462
|
+
lastSaveTime: new Date(hoEditorFactory.lastSaveTime).getTime(),
|
|
230463
|
+
lastModifyTime: -1
|
|
230464
|
+
};
|
|
230465
|
+
var stack = hoEditorFactory.undoService.stack;
|
|
230466
|
+
|
|
230467
|
+
if (stack.length > 0) {
|
|
230468
|
+
var lastUnRedo = stack[stack.length - 1];
|
|
230469
|
+
var undoUnits = lastUnRedo.undoUnits;
|
|
230470
|
+
var undoUnit = undoUnits[undoUnits.length - 1];
|
|
230471
|
+
modifyInfo.lastModifyTime = new Date(undoUnit.opTime).getTime();
|
|
230472
|
+
}
|
|
230473
|
+
|
|
230474
|
+
return modifyInfo;
|
|
230475
|
+
}
|
|
230434
230476
|
/**
|
|
230435
230477
|
* 获取当前病历中的所有元素
|
|
230436
230478
|
* @returns 返回元素是{id,name,text,json}的数据
|
package/lib/hoeditor.umd.js
CHANGED
|
@@ -214683,9 +214683,9 @@ var es_string_match = __webpack_require__(4723);
|
|
|
214683
214683
|
var es_number_constructor = __webpack_require__(9653);
|
|
214684
214684
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
214685
214685
|
var es_json_stringify = __webpack_require__(38862);
|
|
214686
|
-
;// 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=
|
|
214687
|
-
var
|
|
214688
|
-
var
|
|
214686
|
+
;// 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=1c848738&
|
|
214687
|
+
var HoDocvue_type_template_id_1c848738_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)}
|
|
214688
|
+
var HoDocvue_type_template_id_1c848738_staticRenderFns = []
|
|
214689
214689
|
|
|
214690
214690
|
|
|
214691
214691
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
@@ -218326,7 +218326,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
218326
218326
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
218327
218327
|
var ParagraphNode = __webpack_require__(13880);
|
|
218328
218328
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
218329
|
-
/* harmony default export */ var version = ('2.0.
|
|
218329
|
+
/* harmony default export */ var version = ('2.0.98');
|
|
218330
218330
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
218331
218331
|
var PoperTipText = __webpack_require__(97824);
|
|
218332
218332
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -218811,6 +218811,10 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218811
218811
|
};
|
|
218812
218812
|
|
|
218813
218813
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
218814
|
+
// if(hoEditorFactory.drawTree.paintStatus === 0 && !node.imgSrc && !node.fingerPrintSrc) {
|
|
218815
|
+
// // this.$emit()
|
|
218816
|
+
// return;
|
|
218817
|
+
// }
|
|
218814
218818
|
// 通过自定义属性内部字段判断是否属于患者签名 指纹签名只有患者签名才会有 同时患者签名不存在自定义属性可以用是否存在某个属性确定是否是患者签名(需要确定的是imgsrc要存在 imgsrc不存在是指空签名元素)
|
|
218815
218819
|
if (node.fingerPrintSrc || node.imgSrc && !node.fingerPrintSrc && node.customProperty && !node.customProperty.created_date) return false;
|
|
218816
218820
|
this.$emit('dblNodeClick', {
|
|
@@ -219105,8 +219109,8 @@ var ImageNode = __webpack_require__(23778);
|
|
|
219105
219109
|
|
|
219106
219110
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
219107
219111
|
components_HoDocvue_type_script_lang_js_,
|
|
219108
|
-
|
|
219109
|
-
|
|
219112
|
+
HoDocvue_type_template_id_1c848738_render,
|
|
219113
|
+
HoDocvue_type_template_id_1c848738_staticRenderFns,
|
|
219110
219114
|
false,
|
|
219111
219115
|
null,
|
|
219112
219116
|
null,
|
|
@@ -227611,8 +227615,23 @@ var VueController = /*#__PURE__*/function () {
|
|
|
227611
227615
|
}, {
|
|
227612
227616
|
key: "getDocXml",
|
|
227613
227617
|
value: function getDocXml(beauty, isValidStyle, clearSign) {
|
|
227614
|
-
var
|
|
227615
|
-
|
|
227618
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
227619
|
+
|
|
227620
|
+
if (beauty && isValidStyle) {
|
|
227621
|
+
hoEditorFactory.contentIsModify.isModify = false;
|
|
227622
|
+
var stack = hoEditorFactory.undoService.stack;
|
|
227623
|
+
|
|
227624
|
+
if (stack.length > 0) {
|
|
227625
|
+
var lastUnRedo = stack[stack.length - 1];
|
|
227626
|
+
var undoUnits = lastUnRedo.undoUnits;
|
|
227627
|
+
var undoUnit = undoUnits[undoUnits.length - 1];
|
|
227628
|
+
hoEditorFactory.lastSaveTime = undoUnit.opTime;
|
|
227629
|
+
} else {
|
|
227630
|
+
hoEditorFactory.lastSaveTime = new Date(Date.now());
|
|
227631
|
+
}
|
|
227632
|
+
}
|
|
227633
|
+
|
|
227634
|
+
return hoEditorFactory.structureConvert.doc2Xml('xml', beauty, isValidStyle, clearSign);
|
|
227616
227635
|
}
|
|
227617
227636
|
/**
|
|
227618
227637
|
* 返回编辑后的表单json数据
|
|
@@ -230441,6 +230460,29 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230441
230460
|
|
|
230442
230461
|
return isModify;
|
|
230443
230462
|
}
|
|
230463
|
+
/**
|
|
230464
|
+
* 文档修改信息
|
|
230465
|
+
*/
|
|
230466
|
+
|
|
230467
|
+
}, {
|
|
230468
|
+
key: "getDocModifyInfo",
|
|
230469
|
+
value: function getDocModifyInfo() {
|
|
230470
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
230471
|
+
var modifyInfo = {
|
|
230472
|
+
lastSaveTime: new Date(hoEditorFactory.lastSaveTime).getTime(),
|
|
230473
|
+
lastModifyTime: -1
|
|
230474
|
+
};
|
|
230475
|
+
var stack = hoEditorFactory.undoService.stack;
|
|
230476
|
+
|
|
230477
|
+
if (stack.length > 0) {
|
|
230478
|
+
var lastUnRedo = stack[stack.length - 1];
|
|
230479
|
+
var undoUnits = lastUnRedo.undoUnits;
|
|
230480
|
+
var undoUnit = undoUnits[undoUnits.length - 1];
|
|
230481
|
+
modifyInfo.lastModifyTime = new Date(undoUnit.opTime).getTime();
|
|
230482
|
+
}
|
|
230483
|
+
|
|
230484
|
+
return modifyInfo;
|
|
230485
|
+
}
|
|
230444
230486
|
/**
|
|
230445
230487
|
* 获取当前病历中的所有元素
|
|
230446
230488
|
* @returns 返回元素是{id,name,text,json}的数据
|