hoeditor-web 3.1.209 → 3.1.212
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.css +1 -15845
- package/lib/hoeditor.umd.js +110 -63
- package/lib/hoeditor.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -113774,6 +113774,14 @@ const textParams = {
|
|
|
113774
113774
|
|
|
113775
113775
|
/***/ }),
|
|
113776
113776
|
|
|
113777
|
+
/***/ 41063:
|
|
113778
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
|
113779
|
+
|
|
113780
|
+
"use strict";
|
|
113781
|
+
/* harmony default export */ __webpack_exports__.A = ('3.1.212');
|
|
113782
|
+
|
|
113783
|
+
/***/ }),
|
|
113784
|
+
|
|
113777
113785
|
/***/ 31881:
|
|
113778
113786
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
113779
113787
|
|
|
@@ -117699,7 +117707,6 @@ class DocController {
|
|
|
117699
117707
|
const node = nodePosition.node;
|
|
117700
117708
|
if (node) {
|
|
117701
117709
|
let curStyleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
117702
|
-
const curParaNo = hoEditorFactory.docTree.curParaNo;
|
|
117703
117710
|
let curTextStyle = hoEditorFactory.docTree.styles[curStyleIndex];
|
|
117704
117711
|
if (curTextStyle.combineStyle.font != "himalaya") {
|
|
117705
117712
|
curStyleIndex = curTextStyle.changeStyleString('fontFormat', "himalaya");
|
|
@@ -120916,10 +120923,11 @@ class DocController {
|
|
|
120916
120923
|
const prePath = hoEditorFactory.docTree.getNodeLastPath(domRange.npEnd.node.previousLeaf());
|
|
120917
120924
|
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_27__/* .NodeDeleteUndoUnit */ .s(this._hoEditorFactoryID, domRange.npEnd.node, startPath, 'update'));
|
|
120918
120925
|
startPath = prePath;
|
|
120926
|
+
} else {
|
|
120927
|
+
const tableFormula = new _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_61__/* .TableFormula */ .d(this._hoEditorFactoryID, domRange.npStart.roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType */ .Z6.ntTableFormula, formulaStr, hoEditorFactory.docTree.curStyleIndex, isHideZero, formulaType, '', formulaProperty);
|
|
120928
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_16__/* .NodeInsertUndoUnit */ .Q(this._hoEditorFactoryID, startPath, tableFormula));
|
|
120929
|
+
hoEditorFactory.undoService.commit();
|
|
120919
120930
|
}
|
|
120920
|
-
const tableFormula = new _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_61__/* .TableFormula */ .d(this._hoEditorFactoryID, domRange.npStart.roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType */ .Z6.ntTableFormula, formulaStr, hoEditorFactory.docTree.curStyleIndex, isHideZero, formulaType, '', formulaProperty);
|
|
120921
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_16__/* .NodeInsertUndoUnit */ .Q(this._hoEditorFactoryID, startPath, tableFormula));
|
|
120922
|
-
hoEditorFactory.undoService.commit();
|
|
120923
120931
|
}
|
|
120924
120932
|
// /**
|
|
120925
120933
|
// * 设置审阅级别颜色和元素颜色
|
|
@@ -135630,6 +135638,8 @@ class SeparateCharNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_4__/* .BaseNod
|
|
|
135630
135638
|
/* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(58382);
|
|
135631
135639
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(57703);
|
|
135632
135640
|
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(29269);
|
|
135641
|
+
/* harmony import */ var _components_version__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(41063);
|
|
135642
|
+
|
|
135633
135643
|
|
|
135634
135644
|
|
|
135635
135645
|
|
|
@@ -135709,7 +135719,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
|
|
|
135709
135719
|
this._type = type;
|
|
135710
135720
|
this._signor = signor;
|
|
135711
135721
|
this._signTime = signTime;
|
|
135712
|
-
this.
|
|
135722
|
+
this.imgSrc = imgSrc;
|
|
135713
135723
|
this._attribute = attribute === undefined ? 0 : attribute;
|
|
135714
135724
|
this._connectChar = connectChar === undefined ? ":" : connectChar;
|
|
135715
135725
|
// if (fingerPrintSrc || (imgSrc && !fingerPrintSrc && customProperty && !customProperty.created_date)) { // 用自定义属性区分并兼容旧的患者签名
|
|
@@ -135904,7 +135914,11 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
|
|
|
135904
135914
|
}
|
|
135905
135915
|
set imgSrc(value) {
|
|
135906
135916
|
if (this._imgSrc !== value) {
|
|
135907
|
-
|
|
135917
|
+
if (value.indexOf("http") != -1) {
|
|
135918
|
+
this._imgSrc = value + `?_=${_components_version__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .A}`;
|
|
135919
|
+
} else {
|
|
135920
|
+
this._imgSrc = value;
|
|
135921
|
+
}
|
|
135908
135922
|
this.node2DrawNodeRange(0, 0);
|
|
135909
135923
|
}
|
|
135910
135924
|
}
|
|
@@ -153541,7 +153555,9 @@ class DrawSignNode extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_6__/* .Draw
|
|
|
153541
153555
|
handleOrientation();
|
|
153542
153556
|
}
|
|
153543
153557
|
};
|
|
153544
|
-
image.onerror = () =>
|
|
153558
|
+
image.onerror = () => {
|
|
153559
|
+
hoEditorFactory.loadImageCount--;
|
|
153560
|
+
};
|
|
153545
153561
|
} else {
|
|
153546
153562
|
const signArr = this.imgSrc.split('\n');
|
|
153547
153563
|
if (signArr.length === 1) {
|
|
@@ -154585,41 +154601,49 @@ class DrawTableFormularChart extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_1
|
|
|
154585
154601
|
getCell(table, arr) {
|
|
154586
154602
|
const [startRow, startCol] = this.dNode.getRowColByCellAdress(arr[0]);
|
|
154587
154603
|
const [endRow, endCol] = this.dNode.getRowColByCellAdress(arr[1]);
|
|
154588
|
-
const list = [];
|
|
154589
154604
|
let notAllowEdit = false;
|
|
154590
|
-
|
|
154591
|
-
|
|
154592
|
-
|
|
154593
|
-
|
|
154594
|
-
|
|
154595
|
-
|
|
154596
|
-
|
|
154597
|
-
|
|
154598
|
-
if (
|
|
154599
|
-
|
|
154600
|
-
|
|
154601
|
-
if (
|
|
154602
|
-
|
|
154603
|
-
|
|
154604
|
-
|
|
154605
|
-
|
|
154606
|
-
|
|
154607
|
-
|
|
154608
|
-
|
|
154609
|
-
|
|
154610
|
-
|
|
154611
|
-
|
|
154612
|
-
|
|
154613
|
-
|
|
154614
|
-
|
|
154605
|
+
const list = [];
|
|
154606
|
+
if (this.formularProperty) {
|
|
154607
|
+
let messageList = [];
|
|
154608
|
+
if (startRow >= 0 && startCol >= 0 && endRow >= 0 && endCol >= 0) {
|
|
154609
|
+
if (startRow === endRow || startCol === endCol) {
|
|
154610
|
+
for (let r = startRow; r <= endRow; r++) {
|
|
154611
|
+
for (let c = startCol; c <= endCol; c++) {
|
|
154612
|
+
const cell = table.rows[r][c];
|
|
154613
|
+
if (cell) {
|
|
154614
|
+
notAllowEdit = cell.cellProperty.notAllowEdit || false;
|
|
154615
|
+
let text = cell.getCellText();
|
|
154616
|
+
if (notAllowEdit) {
|
|
154617
|
+
list.push(text);
|
|
154618
|
+
} else {
|
|
154619
|
+
text = text.replace(/\+|-/g, '');
|
|
154620
|
+
if (text) {
|
|
154621
|
+
if (text > this.formularProperty.max) {
|
|
154622
|
+
var _cell$drawCell$drawPa;
|
|
154623
|
+
text = '';
|
|
154624
|
+
(_cell$drawCell$drawPa = cell.drawCell.drawPageCells[0]) === null || _cell$drawCell$drawPa === void 0 || _cell$drawCell$drawPa.paintBackColor(true);
|
|
154625
|
+
messageList.push(`【${r}行 ${c} 列】`);
|
|
154626
|
+
} else if (text < this.formularProperty.min) {
|
|
154627
|
+
var _cell$drawCell$drawPa2;
|
|
154628
|
+
text = '';
|
|
154629
|
+
messageList.push(`【${r}行 ${c} 列】`);
|
|
154630
|
+
(_cell$drawCell$drawPa2 = cell.drawCell.drawPageCells[0]) === null || _cell$drawCell$drawPa2 === void 0 || _cell$drawCell$drawPa2.paintBackColor(true);
|
|
154631
|
+
} else {
|
|
154632
|
+
var _cell$drawCell$drawPa3;
|
|
154633
|
+
(_cell$drawCell$drawPa3 = cell.drawCell.drawPageCells[0]) === null || _cell$drawCell$drawPa3 === void 0 || _cell$drawCell$drawPa3.paintBackColor(false);
|
|
154634
|
+
}
|
|
154615
154635
|
}
|
|
154636
|
+
list.push(text);
|
|
154616
154637
|
}
|
|
154617
|
-
list.push(text.replace(/\+|-/g, ''));
|
|
154618
154638
|
}
|
|
154619
154639
|
}
|
|
154620
154640
|
}
|
|
154621
154641
|
}
|
|
154622
154642
|
}
|
|
154643
|
+
if (messageList.length > 0) {
|
|
154644
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .A.destroy();
|
|
154645
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .A.error(`以下单元格的值超出曲线图设置的范围【${this.formularProperty.min}~${this.formularProperty.max}】:${messageList.join('、')}`);
|
|
154646
|
+
}
|
|
154623
154647
|
}
|
|
154624
154648
|
return {
|
|
154625
154649
|
notAllowEdit,
|
|
@@ -220045,9 +220069,9 @@ var entry_lib_web_dom_collections_iterator = __webpack_require__(62953);
|
|
|
220045
220069
|
var build_entry_lib_objectSpread2 = __webpack_require__(33217);
|
|
220046
220070
|
// EXTERNAL MODULE: ./src/i18n/index.ts + 1 modules
|
|
220047
220071
|
var entry_lib_i18n = __webpack_require__(49850);
|
|
220048
|
-
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
220072
|
+
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=14a6cdbd
|
|
220049
220073
|
|
|
220050
|
-
var
|
|
220074
|
+
var entry_lib_HoDocvue_type_template_id_14a6cdbd_render = function render() {
|
|
220051
220075
|
var _vm = this,
|
|
220052
220076
|
_c = _vm._self._c;
|
|
220053
220077
|
return _c('div', {
|
|
@@ -220246,9 +220270,9 @@ var entry_lib_HoDocvue_type_template_id_030c30c6_render = function render() {
|
|
|
220246
220270
|
}
|
|
220247
220271
|
}, [_vm._v("v " + _vm._s(_vm.version))])])], 2)], 1);
|
|
220248
220272
|
};
|
|
220249
|
-
var
|
|
220273
|
+
var entry_lib_HoDocvue_type_template_id_14a6cdbd_staticRenderFns = [];
|
|
220250
220274
|
|
|
220251
|
-
;// ./src/components/HoDoc.vue?vue&type=template&id=
|
|
220275
|
+
;// ./src/components/HoDoc.vue?vue&type=template&id=14a6cdbd
|
|
220252
220276
|
|
|
220253
220277
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
|
|
220254
220278
|
var entry_lib_es_array_sort = __webpack_require__(26910);
|
|
@@ -223093,8 +223117,8 @@ var entry_lib_SignNode = __webpack_require__(65617);
|
|
|
223093
223117
|
var entry_lib_TextNode = __webpack_require__(32083);
|
|
223094
223118
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
223095
223119
|
var entry_lib_ParagraphNode = __webpack_require__(40504);
|
|
223096
|
-
|
|
223097
|
-
|
|
223120
|
+
// EXTERNAL MODULE: ./src/components/version.ts
|
|
223121
|
+
var entry_lib_version = __webpack_require__(41063);
|
|
223098
223122
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
223099
223123
|
var entry_lib_PoperTipText = __webpack_require__(89316);
|
|
223100
223124
|
;// ./src/components/controls/poperTipText/index.ts
|
|
@@ -223245,7 +223269,7 @@ const entry_lib_defaultHeight = Math.floor(1122 * entry_lib_scaleXY) % 2 === 1 ?
|
|
|
223245
223269
|
// 是否创建右键弹窗 只显示编辑器版本
|
|
223246
223270
|
showDeleteSignMenu: false,
|
|
223247
223271
|
// 审阅模式显示删除签名菜单
|
|
223248
|
-
version: entry_lib_version,
|
|
223272
|
+
version: entry_lib_version/* default */.A,
|
|
223249
223273
|
isHideComments: false,
|
|
223250
223274
|
showCommentsBtn: false,
|
|
223251
223275
|
domRange: {
|
|
@@ -223614,6 +223638,7 @@ const entry_lib_defaultHeight = Math.floor(1122 * entry_lib_scaleXY) % 2 === 1 ?
|
|
|
223614
223638
|
if (Number(parentNode.inputFieldType) === 0 && (customProperty.additionsEditor == 'true' || customProperty.additionsEditor == true)) {
|
|
223615
223639
|
if (node instanceof entry_lib_DateTimeNode/* DateTimeNode */.Y) {
|
|
223616
223640
|
if (node.isReadOnly && node.text.replace(/\s*/g, '') !== '') {
|
|
223641
|
+
this.$message.error('元素属性设置只读,无法编辑');
|
|
223617
223642
|
return false;
|
|
223618
223643
|
}
|
|
223619
223644
|
this.computedPoperPosition(node, pageIndex);
|
|
@@ -223642,7 +223667,7 @@ const entry_lib_defaultHeight = Math.floor(1122 * entry_lib_scaleXY) % 2 === 1 ?
|
|
|
223642
223667
|
}
|
|
223643
223668
|
const [isInTable, tableNode] = hoEditorFactory.vueController.getDomRange().inSameTable();
|
|
223644
223669
|
if (paintStatus == entry_lib_DrawTree/* PaintState */.ak.psEdit && isInTable && !(node instanceof entry_lib_SignNode/* SignNode */.u)) {
|
|
223645
|
-
const result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
|
|
223670
|
+
const result = hoEditorFactory.editController.canIsEdit(hoEditorFactory, 'dblclick');
|
|
223646
223671
|
if (!result) return;
|
|
223647
223672
|
}
|
|
223648
223673
|
if (node instanceof entry_lib_SignNode/* SignNode */.u) {
|
|
@@ -223689,6 +223714,7 @@ const entry_lib_defaultHeight = Math.floor(1122 * entry_lib_scaleXY) % 2 === 1 ?
|
|
|
223689
223714
|
return;
|
|
223690
223715
|
}
|
|
223691
223716
|
if (node.isReadOnly && node.text.replace(/\s*/g, '') !== '') {
|
|
223717
|
+
this.$message.error('元素属性设置只读,无法编辑');
|
|
223692
223718
|
return false;
|
|
223693
223719
|
}
|
|
223694
223720
|
this.computedPoperPosition(node, pageIndex);
|
|
@@ -223828,6 +223854,7 @@ const entry_lib_defaultHeight = Math.floor(1122 * entry_lib_scaleXY) % 2 === 1 ?
|
|
|
223828
223854
|
return;
|
|
223829
223855
|
}
|
|
223830
223856
|
if (node.isReadOnly && node.text.replace(/\s*/g, '') !== '') {
|
|
223857
|
+
this.$message.error('元素属性设置只读,无法编辑');
|
|
223831
223858
|
return;
|
|
223832
223859
|
}
|
|
223833
223860
|
const callback = list => {
|
|
@@ -224171,10 +224198,10 @@ const entry_lib_defaultHeight = Math.floor(1122 * entry_lib_scaleXY) % 2 === 1 ?
|
|
|
224171
224198
|
|
|
224172
224199
|
/* harmony default export */ var entry_lib_components_HoDocvue_type_script_lang_js = (entry_lib_HoDocvue_type_script_lang_js);
|
|
224173
224200
|
|
|
224174
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
224201
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=14a6cdbd&prod&lang=less
|
|
224175
224202
|
// extracted by mini-css-extract-plugin
|
|
224176
224203
|
|
|
224177
|
-
;// ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
224204
|
+
;// ./src/components/HoDoc.vue?vue&type=style&index=0&id=14a6cdbd&prod&lang=less
|
|
224178
224205
|
|
|
224179
224206
|
;// ./src/components/HoDoc.vue
|
|
224180
224207
|
|
|
@@ -224187,8 +224214,8 @@ const entry_lib_defaultHeight = Math.floor(1122 * entry_lib_scaleXY) % 2 === 1 ?
|
|
|
224187
224214
|
|
|
224188
224215
|
var entry_lib_HoDoc_component = (0,entry_lib_componentNormalizer/* default */.A)(
|
|
224189
224216
|
entry_lib_components_HoDocvue_type_script_lang_js,
|
|
224190
|
-
|
|
224191
|
-
|
|
224217
|
+
entry_lib_HoDocvue_type_template_id_14a6cdbd_render,
|
|
224218
|
+
entry_lib_HoDocvue_type_template_id_14a6cdbd_staticRenderFns,
|
|
224192
224219
|
false,
|
|
224193
224220
|
null,
|
|
224194
224221
|
null,
|
|
@@ -228887,7 +228914,6 @@ class entry_lib_StructureConvert {
|
|
|
228887
228914
|
count: 0
|
|
228888
228915
|
});
|
|
228889
228916
|
// console.time("openJson2Doc");
|
|
228890
|
-
|
|
228891
228917
|
if (nodes) {
|
|
228892
228918
|
const insertNode = (array, prevNode) => {
|
|
228893
228919
|
const firstNode = array[0];
|
|
@@ -235754,7 +235780,6 @@ class entry_lib_VueController {
|
|
|
235754
235780
|
if (lastNextDays) {
|
|
235755
235781
|
this.updateCellNextDays(lastNextDays.rowNo, lastNextDays.colNo, lastNextDays.tableId, '', true);
|
|
235756
235782
|
}
|
|
235757
|
-
setTimeout(() => {}, 1000);
|
|
235758
235783
|
}
|
|
235759
235784
|
}
|
|
235760
235785
|
/**
|
|
@@ -235769,6 +235794,11 @@ class entry_lib_VueController {
|
|
|
235769
235794
|
let updateCount = 1;
|
|
235770
235795
|
let nextCellText = false;
|
|
235771
235796
|
const currentCellNode = (_tableNodeMap$get = tableNodeMap.get(tableId)) === null || _tableNodeMap$get === void 0 ? void 0 : _tableNodeMap$get.rows[rowNo][colNo];
|
|
235797
|
+
const lastNode = currentCellNode === null || currentCellNode === void 0 ? void 0 : currentCellNode.childNodes[currentCellNode.childNodes.length - 1];
|
|
235798
|
+
if (lastNode && lastNode.styleIndex !== undefined) {
|
|
235799
|
+
// 自动更新日期时候 样式变更为最后一个日期单元格内容样式
|
|
235800
|
+
hoEditorFactory.docTree.curStyleIndex = lastNode.styleIndex;
|
|
235801
|
+
}
|
|
235772
235802
|
let currentText = (currentCellNode === null || currentCellNode === void 0 ? void 0 : currentCellNode.getCellText()) || '';
|
|
235773
235803
|
if (currentCellNode && (currentText.replace(/ /g, '') == '' || isAddNewPage && currentText.replace(/ /g, '') != '')) {
|
|
235774
235804
|
const currentStyle = currentCellNode.cellProperty.dateTimeProperty.inputStyle.replace(/dd/g, 'DD').replace(/yyyy/g, 'YYYY');
|
|
@@ -241752,8 +241782,8 @@ class entry_lib_EditController {
|
|
|
241752
241782
|
}
|
|
241753
241783
|
}
|
|
241754
241784
|
if (hoEditorFactory.isUseForm) {
|
|
241755
|
-
// 无选区 只判断结束节点 有选区需要判断首尾节点
|
|
241756
|
-
if (curDomRange.startPath == curDomRange.endPath) {
|
|
241785
|
+
// 无选区 只判断结束节点 有选区需要判断首尾节点 || 双击元素弹窗只判断结束节点 避免双击选区起始节点选到段落不能编辑
|
|
241786
|
+
if (curDomRange.startPath == curDomRange.endPath || curDomRange.startPath != curDomRange.endPath && source == 'dblclick') {
|
|
241757
241787
|
result = this.isEdit(hoEditorFactory, enode, curDomRange);
|
|
241758
241788
|
} else {
|
|
241759
241789
|
let sResult = this.isEdit(hoEditorFactory, snode, curDomRange);
|
|
@@ -247750,7 +247780,7 @@ for(!/[^\x00-\xFF]/.test(a),b="\x00\x00\x00\x00".slice(a.length%4||4),a+=b,c=[],
|
|
|
247750
247780
|
*/jsPDFAPI.loadImageFile=jsPDFAPI.loadFile;function browserRequest(url,sync,callback){sync=sync===false?false:true;callback=typeof callback==="function"?callback:function(){};var result=undefined;var xhr=function xhr(url,sync,callback){var request=new XMLHttpRequest();var i=0;var sanitizeUnicode=function sanitizeUnicode(data){var dataLength=data.length;var charArray=[];var StringFromCharCode=String.fromCharCode;//Transform Unicode to ASCII
|
|
247751
247781
|
for(i=0;i<dataLength;i+=1){charArray.push(StringFromCharCode(data.charCodeAt(i)&0xff));}return charArray.join("");};request.open("GET",url,!sync);// XHR binary charset opt by Marcus Granado 2006 [http://mgran.blogspot.com]
|
|
247752
247782
|
request.overrideMimeType("text/plain; charset=x-user-defined");if(sync===false){request.onload=function(){if(request.status===200){callback(sanitizeUnicode(this.responseText));}else{callback(undefined);}};}request.send(null);if(sync&&request.status===200){return sanitizeUnicode(request.responseText);}};try{result=xhr(url,sync,callback);// eslint-disable-next-line no-empty
|
|
247753
|
-
}catch(e){}return result;}})(entry_lib_jsPDF.API);/**
|
|
247783
|
+
}catch(e){if(jsPDFAPI.catchErrorBack){jsPDFAPI.catchErrorBack(e);}}return result;}})(entry_lib_jsPDF.API);/**
|
|
247754
247784
|
* jsPDF html PlugIn
|
|
247755
247785
|
*
|
|
247756
247786
|
* @name html
|
|
@@ -249286,6 +249316,8 @@ count=data.readShort();stringOffset=data.readShort();entries=[];for(i=0;0<=count
|
|
|
249286
249316
|
|
|
249287
249317
|
|
|
249288
249318
|
|
|
249319
|
+
|
|
249320
|
+
|
|
249289
249321
|
/*
|
|
249290
249322
|
* @Author: your name
|
|
249291
249323
|
* @Date: 2021-07-31 09:25:57
|
|
@@ -249718,7 +249750,6 @@ class entry_lib_PrintController {
|
|
|
249718
249750
|
* }` 返回打印位置
|
|
249719
249751
|
*/
|
|
249720
249752
|
async mergeXmlToPrintPDFNew(xmlInfoes, callback) {
|
|
249721
|
-
console.time('连续打印总用时');
|
|
249722
249753
|
let list = [];
|
|
249723
249754
|
if (Array.isArray(xmlInfoes.xmlList[0])) {
|
|
249724
249755
|
list = xmlInfoes.xmlList;
|
|
@@ -249739,6 +249770,7 @@ class entry_lib_PrintController {
|
|
|
249739
249770
|
}
|
|
249740
249771
|
hoEditorFactory.printStatus.printMode = 0;
|
|
249741
249772
|
hoEditorFactory.drawTree.paintStatus = entry_lib_DrawTree/* PaintState */.ak.psPreview;
|
|
249773
|
+
console.time('连续打印总用时');
|
|
249742
249774
|
let hPromise = Promise.resolve();
|
|
249743
249775
|
console.time('连续查看病历合并总用时');
|
|
249744
249776
|
hPromise = hPromise.then(res => {
|
|
@@ -249776,6 +249808,12 @@ class entry_lib_PrintController {
|
|
|
249776
249808
|
};
|
|
249777
249809
|
this.PDF = null;
|
|
249778
249810
|
if (hoEditorFactory.isUseImagePrint) {
|
|
249811
|
+
entry_lib_jspdf.API.catchErrorBack = error => {
|
|
249812
|
+
entry_lib_message/* default */.A.error(`打印失败,图片加载错误: ${error}`);
|
|
249813
|
+
if (error) {
|
|
249814
|
+
resolve();
|
|
249815
|
+
}
|
|
249816
|
+
};
|
|
249779
249817
|
this.PDF = new entry_lib_jspdf(options);
|
|
249780
249818
|
}
|
|
249781
249819
|
entry_lib_PrintStatus/* Print */.aS.printToPDF(this._hoEditorFactoryID, this.PDF, undefined, undefined, resolve, positionY, format);
|
|
@@ -249865,6 +249903,15 @@ class entry_lib_PrintController {
|
|
|
249865
249903
|
};
|
|
249866
249904
|
this.PDF = null;
|
|
249867
249905
|
if (hoEditorFactory.isUseImagePrint) {
|
|
249906
|
+
entry_lib_jspdf.API.catchErrorBack = error => {
|
|
249907
|
+
entry_lib_message/* default */.A.error(`打印失败,图片加载错误: ${error}`);
|
|
249908
|
+
if (error) {
|
|
249909
|
+
callback && callback({});
|
|
249910
|
+
hoEditorFactory.drawTree.paintStatus = beforePrintStatus;
|
|
249911
|
+
hoEditorFactory.vueController.openXml(xml);
|
|
249912
|
+
this.clearJsPDF();
|
|
249913
|
+
}
|
|
249914
|
+
};
|
|
249868
249915
|
this.PDF = new entry_lib_jspdf(options);
|
|
249869
249916
|
} else {
|
|
249870
249917
|
this.PDF = document.createElement('div');
|
|
@@ -250990,7 +251037,7 @@ var entry_lib_DocController = __webpack_require__(5011);
|
|
|
250990
251037
|
|
|
250991
251038
|
|
|
250992
251039
|
class entry_lib_HOEditorFactory {
|
|
250993
|
-
//
|
|
251040
|
+
// 错误图片地址
|
|
250994
251041
|
/**
|
|
250995
251042
|
* Getter hoLocalStorage
|
|
250996
251043
|
* @return {HoLocalStorage}
|
|
@@ -251239,6 +251286,8 @@ class entry_lib_HOEditorFactory {
|
|
|
251239
251286
|
(0,entry_lib_esm_defineProperty/* default */.A)(this, "emitClickEvent", false);
|
|
251240
251287
|
// 点击元素是否触发click事件
|
|
251241
251288
|
(0,entry_lib_esm_defineProperty/* default */.A)(this, "fixTableImage", false);
|
|
251289
|
+
// 修复表格图片卡死问题
|
|
251290
|
+
(0,entry_lib_esm_defineProperty/* default */.A)(this, "errorImgurl", []);
|
|
251242
251291
|
this._hoEditorFactoryId = id;
|
|
251243
251292
|
}
|
|
251244
251293
|
get defaultLineHeight() {
|
|
@@ -252102,7 +252151,7 @@ var entry_lib_commondata = __webpack_require__(92611);
|
|
|
252102
252151
|
data() {
|
|
252103
252152
|
return {
|
|
252104
252153
|
defaultDocProperty: {
|
|
252105
|
-
version: entry_lib_version,
|
|
252154
|
+
version: entry_lib_version/* default */.A,
|
|
252106
252155
|
//版本号
|
|
252107
252156
|
type: 0,
|
|
252108
252157
|
//类型
|
|
@@ -258955,9 +259004,9 @@ var entry_lib_HoToolBar_component = (0,entry_lib_componentNormalizer/* default *
|
|
|
258955
259004
|
)
|
|
258956
259005
|
|
|
258957
259006
|
/* harmony default export */ var entry_lib_HoToolBar = (entry_lib_HoToolBar_component.exports);
|
|
258958
|
-
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/HoRightMenu.vue?vue&type=template&id=
|
|
259007
|
+
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/HoRightMenu.vue?vue&type=template&id=35b02cd4
|
|
258959
259008
|
|
|
258960
|
-
var
|
|
259009
|
+
var entry_lib_HoRightMenuvue_type_template_id_35b02cd4_render = function render() {
|
|
258961
259010
|
var _vm$hoEditorProvider$, _vm$hoEditorProvider$2, _vm$hoEditorProvider$3, _vm$hoEditorProvider$4, _vm$hoEditorProvider$5, _vm$hoEditorProvider$6, _vm$hoEditorProvider$7, _vm$hoEditorProvider$8, _vm$hoEditorProvider$10, _vm$hoEditorProvider$11, _vm$hoEditorProvider$12, _vm$hoEditorProvider$13, _vm$hoEditorProvider$14, _vm$hoEditorProvider$15, _vm$hoEditorProvider$16, _vm$hoEditorProvider$17, _vm$hoEditorProvider$18, _vm$hoEditorProvider$19, _vm$hoEditorProvider$20, _vm$hoEditorProvider$21, _vm$hoEditorProvider$22, _vm$hoEditorProvider$23, _vm$hoEditorProvider$24, _vm$hoEditorProvider$25, _vm$hoEditorProvider$26, _vm$hoEditorProvider$27;
|
|
258962
259011
|
var _vm = this,
|
|
258963
259012
|
_c = _vm._self._c;
|
|
@@ -259290,9 +259339,9 @@ var entry_lib_HoRightMenuvue_type_template_id_c072f7c2_render = function render(
|
|
|
259290
259339
|
}
|
|
259291
259340
|
}, [_vm._v("v " + _vm._s(_vm.versions))])])])], 2);
|
|
259292
259341
|
};
|
|
259293
|
-
var
|
|
259342
|
+
var entry_lib_HoRightMenuvue_type_template_id_35b02cd4_staticRenderFns = [];
|
|
259294
259343
|
|
|
259295
|
-
;// ./src/components/toolbar/HoRightMenu.vue?vue&type=template&id=
|
|
259344
|
+
;// ./src/components/toolbar/HoRightMenu.vue?vue&type=template&id=35b02cd4
|
|
259296
259345
|
|
|
259297
259346
|
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/TableFeatures.vue?vue&type=template&id=5bcdf497
|
|
259298
259347
|
|
|
@@ -259884,7 +259933,7 @@ var entry_lib_popper = __webpack_require__(98234);
|
|
|
259884
259933
|
data() {
|
|
259885
259934
|
return {
|
|
259886
259935
|
mouseRightMenuPopup: null,
|
|
259887
|
-
versions: entry_lib_version,
|
|
259936
|
+
versions: entry_lib_version/* default */.A,
|
|
259888
259937
|
isDeisgn: 0,
|
|
259889
259938
|
defaultTable: {
|
|
259890
259939
|
insertTable: true,
|
|
@@ -260106,13 +260155,11 @@ var entry_lib_popper = __webpack_require__(98234);
|
|
|
260106
260155
|
async getClipboardContents() {
|
|
260107
260156
|
try {
|
|
260108
260157
|
const clipboardItems = await navigator.clipboard.read();
|
|
260109
|
-
// console.log(clipboardItems)
|
|
260110
260158
|
let htmls = "";
|
|
260111
260159
|
for (const clipboardItem of clipboardItems) {
|
|
260112
260160
|
for (const type of clipboardItem.types) {
|
|
260113
260161
|
if (type === 'text/html') {
|
|
260114
260162
|
const blob = await clipboardItem.getType(type);
|
|
260115
|
-
// console.log(type, blob, '---------');
|
|
260116
260163
|
const reader = new FileReader();
|
|
260117
260164
|
reader.readAsText(blob, 'UTF-8');
|
|
260118
260165
|
reader.onload = e => {
|
|
@@ -260374,8 +260421,8 @@ var entry_lib_popper = __webpack_require__(98234);
|
|
|
260374
260421
|
;
|
|
260375
260422
|
var entry_lib_HoRightMenu_component = (0,entry_lib_componentNormalizer/* default */.A)(
|
|
260376
260423
|
entry_lib_toolbar_HoRightMenuvue_type_script_lang_js,
|
|
260377
|
-
|
|
260378
|
-
|
|
260424
|
+
entry_lib_HoRightMenuvue_type_template_id_35b02cd4_render,
|
|
260425
|
+
entry_lib_HoRightMenuvue_type_template_id_35b02cd4_staticRenderFns,
|
|
260379
260426
|
false,
|
|
260380
260427
|
null,
|
|
260381
260428
|
null,
|