hoeditor-web 3.1.212 → 3.1.213
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.umd.js +32 -23
- package/lib/hoeditor.umd.min.js +12 -12
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -113778,7 +113778,7 @@ const textParams = {
|
|
|
113778
113778
|
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
|
113779
113779
|
|
|
113780
113780
|
"use strict";
|
|
113781
|
-
/* harmony default export */ __webpack_exports__.A = ('3.1.
|
|
113781
|
+
/* harmony default export */ __webpack_exports__.A = ('3.1.213');
|
|
113782
113782
|
|
|
113783
113783
|
/***/ }),
|
|
113784
113784
|
|
|
@@ -135630,15 +135630,21 @@ class SeparateCharNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_4__/* .BaseNod
|
|
|
135630
135630
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(32356);
|
|
135631
135631
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(44114);
|
|
135632
135632
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
135633
|
-
/* harmony import */ var
|
|
135634
|
-
/* harmony import */ var
|
|
135635
|
-
/* harmony import */ var
|
|
135636
|
-
/* harmony import */ var
|
|
135637
|
-
/* harmony import */ var
|
|
135638
|
-
/* harmony import */ var
|
|
135639
|
-
/* harmony import */ var
|
|
135640
|
-
/* harmony import */ var
|
|
135641
|
-
/* harmony import */ var
|
|
135633
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(27495);
|
|
135634
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
135635
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25440);
|
|
135636
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
135637
|
+
/* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(98992);
|
|
135638
|
+
/* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
135639
|
+
/* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3949);
|
|
135640
|
+
/* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
135641
|
+
/* harmony import */ var _editor_draw_drawNode_DrawSignNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54625);
|
|
135642
|
+
/* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(58382);
|
|
135643
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(57703);
|
|
135644
|
+
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(29269);
|
|
135645
|
+
/* harmony import */ var _components_version__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(41063);
|
|
135646
|
+
|
|
135647
|
+
|
|
135642
135648
|
|
|
135643
135649
|
|
|
135644
135650
|
|
|
@@ -135662,7 +135668,7 @@ var FingerPosition;
|
|
|
135662
135668
|
* @Description: In User Settings Edit
|
|
135663
135669
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\SignNode.ts
|
|
135664
135670
|
*/
|
|
135665
|
-
class SignNode extends
|
|
135671
|
+
class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_10__/* .BaseNode */ .Yp {
|
|
135666
135672
|
constructor(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties, dataId, associatedElement, isTemp) {
|
|
135667
135673
|
super(hoEditorFactoryID, rootNodes, pNode, nodeType);
|
|
135668
135674
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(this, "_dataId", "");
|
|
@@ -135714,7 +135720,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
|
|
|
135714
135720
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(this, "_associatedElement", "");
|
|
135715
135721
|
//关联元素的dataid
|
|
135716
135722
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(this, "isTemp", false);
|
|
135717
|
-
const hoEditorFactory =
|
|
135723
|
+
const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
|
|
135718
135724
|
this.number = number;
|
|
135719
135725
|
this._type = type;
|
|
135720
135726
|
this._signor = signor;
|
|
@@ -135732,7 +135738,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
|
|
|
135732
135738
|
if (dataId) {
|
|
135733
135739
|
this.dataId = dataId;
|
|
135734
135740
|
} else {
|
|
135735
|
-
this.dataId =
|
|
135741
|
+
this.dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys */ .O.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("Sign");
|
|
135736
135742
|
}
|
|
135737
135743
|
if (fingerPrintSrc) {
|
|
135738
135744
|
this._fingerPrintSrc = fingerPrintSrc;
|
|
@@ -135915,7 +135921,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
|
|
|
135915
135921
|
set imgSrc(value) {
|
|
135916
135922
|
if (this._imgSrc !== value) {
|
|
135917
135923
|
if (value.indexOf("http") != -1) {
|
|
135918
|
-
this._imgSrc = value + `?_=${
|
|
135924
|
+
this._imgSrc = value + `?_=${_components_version__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .A}`;
|
|
135919
135925
|
} else {
|
|
135920
135926
|
this._imgSrc = value;
|
|
135921
135927
|
}
|
|
@@ -135961,7 +135967,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
|
|
|
135961
135967
|
set styleIndex(value) {
|
|
135962
135968
|
if (this._styleIndex !== value) {
|
|
135963
135969
|
this._styleIndex = value;
|
|
135964
|
-
const hoEditorFactory =
|
|
135970
|
+
const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
|
|
135965
135971
|
if (!hoEditorFactory.docTree.isSaveValid) {
|
|
135966
135972
|
this.node2DrawNodeRange(0, 0);
|
|
135967
135973
|
}
|
|
@@ -136008,7 +136014,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
|
|
|
136008
136014
|
//根据可放置的宽度,将普通组件转换成绘制组件
|
|
136009
136015
|
node2DrawNodeRange(startIndex, endIndex) {
|
|
136010
136016
|
this._drawNodes.length = 0;
|
|
136011
|
-
const hoEditorFactory =
|
|
136017
|
+
const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
|
|
136012
136018
|
const textStyle = hoEditorFactory.docTree.styles[this.styleIndex];
|
|
136013
136019
|
let cbStyle = hoEditorFactory.docTree.styles[0].combineStyle;
|
|
136014
136020
|
if (textStyle) {
|
|
@@ -136016,7 +136022,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
|
|
|
136016
136022
|
} else {
|
|
136017
136023
|
this.styleIndex = 0;
|
|
136018
136024
|
}
|
|
136019
|
-
const dNode = new
|
|
136025
|
+
const dNode = new _editor_draw_drawNode_DrawSignNode__WEBPACK_IMPORTED_MODULE_7__/* .DrawSignNode */ ._(this._hoEditorFactoryID, this._rootPath, this, this.number, this.type, this.name, this.imgSrc, this.imgWidth, this.imgHeight, cbStyle, this.fingerPrintSrc, this.fingerPosition, this.attribute, this.customProperty, this.connectChar, this.otherProperties);
|
|
136020
136026
|
this._drawNodes.push(dNode);
|
|
136021
136027
|
}
|
|
136022
136028
|
/**
|
|
@@ -136032,9 +136038,9 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
|
|
|
136032
136038
|
if (startIndex >= 1) {
|
|
136033
136039
|
return dline;
|
|
136034
136040
|
}
|
|
136035
|
-
const hoEditorFactory =
|
|
136041
|
+
const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
|
|
136036
136042
|
let isDisPlay = true;
|
|
136037
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
136043
|
+
if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_8__/* .PaintState */ .ak.psPreview || hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_8__/* .PaintState */ .ak.psPrint) {
|
|
136038
136044
|
isDisPlay = false;
|
|
136039
136045
|
}
|
|
136040
136046
|
const drawNode = this._drawNodes[0];
|
|
@@ -136045,7 +136051,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
|
|
|
136045
136051
|
drawNode.children.splice(i, 1);
|
|
136046
136052
|
}
|
|
136047
136053
|
}
|
|
136048
|
-
if (hoEditorFactory.drawTree.paintStatus !==
|
|
136054
|
+
if (hoEditorFactory.drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_8__/* .PaintState */ .ak.psReview) {
|
|
136049
136055
|
if (this.imgSrc === "" && this.fingerPrintSrc === "") {
|
|
136050
136056
|
// for (let i = drawNode.children.length - 1; i >= 0; i--) {
|
|
136051
136057
|
// if (drawNode.children[i].name === "name") {
|
|
@@ -136089,7 +136095,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
|
|
|
136089
136095
|
}
|
|
136090
136096
|
node2Json(range, isCopy, type, clearSign) {
|
|
136091
136097
|
const retObj = {
|
|
136092
|
-
nodeType:
|
|
136098
|
+
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_10__/* .NodeType */ .Z6[this.nodeType],
|
|
136093
136099
|
number: clearSign ? 0 : this.number,
|
|
136094
136100
|
type: clearSign ? 0 : this.type,
|
|
136095
136101
|
dataId: this.dataId,
|
|
@@ -136115,6 +136121,9 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
|
|
|
136115
136121
|
connectChar: this.connectChar,
|
|
136116
136122
|
otherProperties: this.otherProperties
|
|
136117
136123
|
};
|
|
136124
|
+
if (retObj.imgSrc.indexOf("http") != -1) {
|
|
136125
|
+
retObj.imgSrc = retObj.imgSrc.replace(`?_=${_components_version__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .A}`, '');
|
|
136126
|
+
}
|
|
136118
136127
|
if (this.associatedElement) {
|
|
136119
136128
|
retObj.associatedElement = this.associatedElement;
|
|
136120
136129
|
}
|
|
@@ -136126,7 +136135,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
|
|
|
136126
136135
|
};
|
|
136127
136136
|
}
|
|
136128
136137
|
static json2Node(hoEditorFactoryID, json, rootNodes, pNode, isClearSign, isPaste) {
|
|
136129
|
-
const hoEditorFactory =
|
|
136138
|
+
const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys */ .O.instance().getFactory(hoEditorFactoryID);
|
|
136130
136139
|
if (isPaste) {
|
|
136131
136140
|
json.dataId = hoEditorFactory.gernerateCode.generateID("Sign");
|
|
136132
136141
|
}
|
|
@@ -136144,7 +136153,7 @@ class SignNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_8__/* .BaseNode */ .Yp
|
|
|
136144
136153
|
if (typeof json.fingerPrintSrc == 'object') {
|
|
136145
136154
|
json.fingerPrintSrc = '';
|
|
136146
136155
|
}
|
|
136147
|
-
const signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null,
|
|
136156
|
+
const signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_10__/* .NodeType */ .Z6.ntSign, number, type, json.name, json.signType ? Number(json.signType) : 0, json.signFormat ? json.signFormat : "签名医师", isClearSign ? "" : json.signor, isClearSign ? "" : json.signTime, json.signTimeFormat ? json.signTimeFormat : "yyyy-MM-dd HH:mm", isClearSign ? "" : json.imgSrc, imgWidth, imgHeight, isClearSign ? undefined : json.customProperty, isTemplate, json.styleIndex ? Number(json.styleIndex) : undefined, json.connectMode, isFront, allowEditSignTime, isClearSign ? "" : json.fingerPrintSrc, isClearSign ? 0 : json.fingerPosition, attribute, json.connectChar, json.otherProperties, json.dataId, json.associatedElement, isTemp);
|
|
136148
136157
|
// 旧的上级医生签名锁定判断方式 上级医生签名位置 存bec01数组 病历加载时根据签名元素内的bec01处理
|
|
136149
136158
|
let superLuck = Array.isArray(hoEditorFactory.superiorSigns) && hoEditorFactory.superiorSigns.includes(signNode.customProperty.bce01);
|
|
136150
136159
|
// hoEditorFactory.forbidEditBeforeSign 锁定已签名元素前内容
|