hoeditor-web 3.1.71 → 3.1.73
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 -17957
- package/lib/hoeditor.umd.js +75 -47
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -63142,6 +63142,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63142
63142
|
}], [{
|
|
63143
63143
|
key: "json2Node",
|
|
63144
63144
|
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
|
|
63145
|
+
// console.log("加载表格", json.rowCount, json.colCount)
|
|
63145
63146
|
json = this.transType(json);
|
|
63146
63147
|
var tableProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_32__/* .TableProperty */ .vE("");
|
|
63147
63148
|
if (json.tableProperty) {
|
|
@@ -92605,20 +92606,20 @@ var isMap = function isMap(map) {
|
|
|
92605
92606
|
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
92606
92607
|
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(32023);
|
|
92607
92608
|
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
92608
|
-
/* harmony import */ var
|
|
92609
|
-
/* harmony import */ var
|
|
92610
|
-
/* harmony import */ var
|
|
92611
|
-
/* harmony import */ var
|
|
92612
|
-
/* harmony import */ var
|
|
92613
|
-
/* harmony import */ var
|
|
92614
|
-
/* harmony import */ var
|
|
92615
|
-
/* harmony import */ var
|
|
92616
|
-
/* harmony import */ var
|
|
92617
|
-
/* harmony import */ var
|
|
92618
|
-
/* harmony import */ var
|
|
92619
|
-
/* harmony import */ var
|
|
92620
|
-
/* harmony import */ var
|
|
92621
|
-
/* harmony import */ var
|
|
92609
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(92222);
|
|
92610
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
92611
|
+
/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91038);
|
|
92612
|
+
/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
92613
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(78783);
|
|
92614
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
92615
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(41539);
|
|
92616
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
92617
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(39714);
|
|
92618
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
92619
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(54747);
|
|
92620
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
92621
|
+
/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(4723);
|
|
92622
|
+
/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
92622
92623
|
/* harmony import */ var _popperjs_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(95551);
|
|
92623
92624
|
/* harmony import */ var _editor_utils_UnitConvert__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(91404);
|
|
92624
92625
|
|
|
@@ -92724,15 +92725,18 @@ var dateFormat = function dateFormat(date, format) {
|
|
|
92724
92725
|
stringDate = stringDate.replace(/[日|秒]/g, '');
|
|
92725
92726
|
if (isNaN(new Date(stringDate).getTime())) {
|
|
92726
92727
|
if (format && format.includes('MM') && !format.includes('yyyy')) {
|
|
92727
|
-
stringDate = '
|
|
92728
|
+
stringDate = new Date().getFullYear() + '/' + stringDate;
|
|
92728
92729
|
}
|
|
92729
92730
|
if (format && format.includes('HH') && !format.includes('ss')) {
|
|
92730
92731
|
stringDate = stringDate + ':00';
|
|
92731
92732
|
stringDate = stringDate.replace('::', ':');
|
|
92732
92733
|
}
|
|
92733
92734
|
if (!stringDate.includes('/')) {
|
|
92734
|
-
|
|
92735
|
+
var newDates = new Date();
|
|
92736
|
+
stringDate = "".concat(newDates.getFullYear(), "/").concat(newDates.getMonth() + 1, "/").concat(_date.getDate(), " ") + stringDate;
|
|
92735
92737
|
}
|
|
92738
|
+
} else if (format && format.includes('MM') && !format.includes('yyyy')) {
|
|
92739
|
+
stringDate = new Date().getFullYear() + '/' + stringDate;
|
|
92736
92740
|
}
|
|
92737
92741
|
_date = toDate(stringDate);
|
|
92738
92742
|
}
|
|
@@ -206938,7 +206942,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
206938
206942
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
206939
206943
|
var ParagraphNode = __webpack_require__(67945);
|
|
206940
206944
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
206941
|
-
/* harmony default export */ var version = ('3.1.
|
|
206945
|
+
/* harmony default export */ var version = ('3.1.73');
|
|
206942
206946
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
206943
206947
|
var PoperTipText = __webpack_require__(50987);
|
|
206944
206948
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -214016,8 +214020,8 @@ var commonParamList = new Map();
|
|
|
214016
214020
|
|
|
214017
214021
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
214018
214022
|
var es_array_from = __webpack_require__(91038);
|
|
214019
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/common/history/index.vue?vue&type=template&id=
|
|
214020
|
-
var
|
|
214023
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/common/history/index.vue?vue&type=template&id=1a14bdbf&
|
|
214024
|
+
var historyvue_type_template_id_1a14bdbf_render = function render() {
|
|
214021
214025
|
var _vm = this,
|
|
214022
214026
|
_c = _vm._self._c;
|
|
214023
214027
|
return _c('section', {
|
|
@@ -214058,7 +214062,7 @@ var historyvue_type_template_id_cbb3a73a_render = function render() {
|
|
|
214058
214062
|
}, [[_vm._v(" 修改后:" + _vm._s(item.afterContent) + " ")]], 2)])];
|
|
214059
214063
|
})], 2);
|
|
214060
214064
|
};
|
|
214061
|
-
var
|
|
214065
|
+
var historyvue_type_template_id_1a14bdbf_staticRenderFns = [];
|
|
214062
214066
|
|
|
214063
214067
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/common/history/index.vue?vue&type=script&lang=js&
|
|
214064
214068
|
|
|
@@ -214109,17 +214113,19 @@ var historyvue_type_template_id_cbb3a73a_staticRenderFns = [];
|
|
|
214109
214113
|
}
|
|
214110
214114
|
} else {
|
|
214111
214115
|
var boxNextSection = box.querySelector(".ho-history-box");
|
|
214112
|
-
|
|
214113
|
-
|
|
214114
|
-
|
|
214115
|
-
|
|
214116
|
-
|
|
214117
|
-
|
|
214118
|
-
|
|
214119
|
-
element.className
|
|
214120
|
-
|
|
214121
|
-
|
|
214122
|
-
|
|
214116
|
+
if (boxNextSection) {
|
|
214117
|
+
var list = Array.from(box.querySelectorAll('.ho-comment-item'));
|
|
214118
|
+
box.style.transform = "translate(0, 0)";
|
|
214119
|
+
boxNextSection.style.paddingLeft = '0';
|
|
214120
|
+
list.forEach(function (element, index) {
|
|
214121
|
+
element.style.transform = "translate(0, 0)";
|
|
214122
|
+
element.style.boxShadow = '';
|
|
214123
|
+
if (!element.className.includes('history-comment')) {
|
|
214124
|
+
element.className += ' history-comment';
|
|
214125
|
+
}
|
|
214126
|
+
});
|
|
214127
|
+
box.className = box.className.replace('ho-comment-history-selected', '');
|
|
214128
|
+
}
|
|
214123
214129
|
}
|
|
214124
214130
|
});
|
|
214125
214131
|
if (hoCommentBox) {
|
|
@@ -214200,10 +214206,10 @@ var historyvue_type_template_id_cbb3a73a_staticRenderFns = [];
|
|
|
214200
214206
|
});
|
|
214201
214207
|
;// CONCATENATED MODULE: ./src/components/common/history/index.vue?vue&type=script&lang=js&
|
|
214202
214208
|
/* harmony default export */ var common_historyvue_type_script_lang_js_ = (historyvue_type_script_lang_js_);
|
|
214203
|
-
;// CONCATENATED MODULE: ./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/common/history/index.vue?vue&type=style&index=0&id=
|
|
214209
|
+
;// CONCATENATED MODULE: ./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/common/history/index.vue?vue&type=style&index=0&id=1a14bdbf&prod&lang=less&
|
|
214204
214210
|
// extracted by mini-css-extract-plugin
|
|
214205
214211
|
|
|
214206
|
-
;// CONCATENATED MODULE: ./src/components/common/history/index.vue?vue&type=style&index=0&id=
|
|
214212
|
+
;// CONCATENATED MODULE: ./src/components/common/history/index.vue?vue&type=style&index=0&id=1a14bdbf&prod&lang=less&
|
|
214207
214213
|
|
|
214208
214214
|
;// CONCATENATED MODULE: ./src/components/common/history/index.vue
|
|
214209
214215
|
|
|
@@ -214216,8 +214222,8 @@ var historyvue_type_template_id_cbb3a73a_staticRenderFns = [];
|
|
|
214216
214222
|
|
|
214217
214223
|
var history_component = (0,componentNormalizer/* default */.Z)(
|
|
214218
214224
|
common_historyvue_type_script_lang_js_,
|
|
214219
|
-
|
|
214220
|
-
|
|
214225
|
+
historyvue_type_template_id_1a14bdbf_render,
|
|
214226
|
+
historyvue_type_template_id_1a14bdbf_staticRenderFns,
|
|
214221
214227
|
false,
|
|
214222
214228
|
null,
|
|
214223
214229
|
null,
|
|
@@ -215012,10 +215018,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215012
215018
|
value: function insertTableRowAbove(count, table) {
|
|
215013
215019
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
215014
215020
|
if (table) {
|
|
215015
|
-
var
|
|
215016
|
-
|
|
215017
|
-
|
|
215018
|
-
|
|
215021
|
+
var index = this.getTableTitleMaxRowIndex(table);
|
|
215022
|
+
if (table.rowCount > index + 1) {
|
|
215023
|
+
var path = table.rows[index + 1][0].childNodes[0].getNodePath();
|
|
215024
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(path);
|
|
215025
|
+
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
215026
|
+
count = 1;
|
|
215027
|
+
}
|
|
215019
215028
|
}
|
|
215020
215029
|
var _curDomRange = hoEditorFactory.docTree.curDomRange.normalize(); //获取当前选中区域
|
|
215021
215030
|
var startPath = _curDomRange.normalize().startPath;
|
|
@@ -223366,6 +223375,7 @@ var DomController = /*#__PURE__*/function () {
|
|
|
223366
223375
|
|
|
223367
223376
|
|
|
223368
223377
|
|
|
223378
|
+
|
|
223369
223379
|
|
|
223370
223380
|
|
|
223371
223381
|
var EditController = /*#__PURE__*/function () {
|
|
@@ -223899,6 +223909,11 @@ var EditController = /*#__PURE__*/function () {
|
|
|
223899
223909
|
message/* default */.Z.error("本列已完成签名,不允许修改编辑。");
|
|
223900
223910
|
return false;
|
|
223901
223911
|
}
|
|
223912
|
+
if (colProperty.editorProperty === TableProperty/* EditorProperty */.YS.OrderNumber) {
|
|
223913
|
+
message/* default */.Z.destroy();
|
|
223914
|
+
message/* default */.Z.error("不允许编辑该列");
|
|
223915
|
+
return false;
|
|
223916
|
+
}
|
|
223902
223917
|
}
|
|
223903
223918
|
}
|
|
223904
223919
|
}
|
|
@@ -233809,12 +233824,19 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
233809
233824
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee7$(_context7) {
|
|
233810
233825
|
while (1) switch (_context7.prev = _context7.next) {
|
|
233811
233826
|
case 0:
|
|
233812
|
-
if (params && continuousid && Array.isArray(params.notPrintDocId) && params.notPrintDocId.length > 0 && params.notPrintDocId.includes(continuousid)) {
|
|
233813
|
-
|
|
233814
|
-
|
|
233815
|
-
PrintStatus/* Print */.Kh.printAllNew(_this6._hoEditorFactoryID, createSvg, _this6.PDF, position, false, pageNumber);
|
|
233827
|
+
if (!(params && continuousid && Array.isArray(params.notPrintDocId) && params.notPrintDocId.length > 0 && params.notPrintDocId.includes(continuousid))) {
|
|
233828
|
+
_context7.next = 5;
|
|
233829
|
+
break;
|
|
233816
233830
|
}
|
|
233817
|
-
|
|
233831
|
+
_context7.next = 3;
|
|
233832
|
+
return PrintStatus/* Print */.Kh.printAllNew(_this6._hoEditorFactoryID, createSvg, _this6.PDF, position, true, pageNumber);
|
|
233833
|
+
case 3:
|
|
233834
|
+
_context7.next = 7;
|
|
233835
|
+
break;
|
|
233836
|
+
case 5:
|
|
233837
|
+
_context7.next = 7;
|
|
233838
|
+
return PrintStatus/* Print */.Kh.printAllNew(_this6._hoEditorFactoryID, createSvg, _this6.PDF, position, false, pageNumber);
|
|
233839
|
+
case 7:
|
|
233818
233840
|
case "end":
|
|
233819
233841
|
return _context7.stop();
|
|
233820
233842
|
}
|
|
@@ -233837,6 +233859,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
233837
233859
|
if (position == undefined) {
|
|
233838
233860
|
position = {};
|
|
233839
233861
|
}
|
|
233862
|
+
// 多种连续病程时先提交前一类病程循环后重新开始下一类病程循环
|
|
233840
233863
|
if (position && Object.keys(position).length != 0) {
|
|
233841
233864
|
callback && callback((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, position), {}, {
|
|
233842
233865
|
continuousid: continuousid
|
|
@@ -233861,6 +233884,13 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
233861
233884
|
createSvg();
|
|
233862
233885
|
}
|
|
233863
233886
|
} else {
|
|
233887
|
+
// 只有一类病程记录时循环到非病程直接提交
|
|
233888
|
+
if (continuousid && position && Object.keys(position).length != 0) {
|
|
233889
|
+
callback && callback((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, position), {}, {
|
|
233890
|
+
continuousid: continuousid
|
|
233891
|
+
}));
|
|
233892
|
+
position = {};
|
|
233893
|
+
}
|
|
233864
233894
|
mergeList = [];
|
|
233865
233895
|
continuousid = '';
|
|
233866
233896
|
Promise.all([hoEditorFactory.vueController.openXml(xmlList[xmlIndex][0])]).then(function () {
|
|
@@ -233873,9 +233903,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
233873
233903
|
});
|
|
233874
233904
|
}
|
|
233875
233905
|
} else if (xmlIndex > xmlList.length - 1) {
|
|
233876
|
-
callback && callback(
|
|
233877
|
-
continuousid: continuousid
|
|
233878
|
-
}));
|
|
233906
|
+
callback && callback({});
|
|
233879
233907
|
hoEditorFactory.drawTree.paintStatus = beforePrintStatus;
|
|
233880
233908
|
hoEditorFactory.vueController.openXml(xml);
|
|
233881
233909
|
if (hoEditorFactory.isUseImagePrint) {
|