hoeditor-web 2.0.85 → 2.0.88
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 +582 -470
- package/lib/hoeditor.css +826 -2
- package/lib/hoeditor.umd.js +582 -470
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -47751,7 +47751,7 @@ var SpecialCharsNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
47751
47751
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37174);
|
|
47752
47752
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(58913);
|
|
47753
47753
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35671);
|
|
47754
|
-
/* harmony import */ var
|
|
47754
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(22342);
|
|
47755
47755
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(61670);
|
|
47756
47756
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24084);
|
|
47757
47757
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(99640);
|
|
@@ -47770,18 +47770,18 @@ var SpecialCharsNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
47770
47770
|
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
47771
47771
|
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(23123);
|
|
47772
47772
|
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
47773
|
-
/* harmony import */ var
|
|
47774
|
-
/* harmony import */ var
|
|
47775
|
-
/* harmony import */ var
|
|
47776
|
-
/* harmony import */ var
|
|
47777
|
-
/* harmony import */ var
|
|
47778
|
-
/* harmony import */ var
|
|
47779
|
-
/* harmony import */ var
|
|
47780
|
-
/* harmony import */ var
|
|
47781
|
-
/* harmony import */ var
|
|
47782
|
-
/* harmony import */ var
|
|
47783
|
-
/* harmony import */ var
|
|
47784
|
-
/* harmony import */ var
|
|
47773
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(39714);
|
|
47774
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_15__);
|
|
47775
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(15306);
|
|
47776
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_16__);
|
|
47777
|
+
/* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(68757);
|
|
47778
|
+
/* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_17__);
|
|
47779
|
+
/* harmony import */ var core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(24603);
|
|
47780
|
+
/* harmony import */ var core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
47781
|
+
/* harmony import */ var core_js_modules_es_regexp_dot_all_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(28450);
|
|
47782
|
+
/* harmony import */ var core_js_modules_es_regexp_dot_all_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_dot_all_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
47783
|
+
/* harmony import */ var core_js_modules_es_regexp_sticky_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(88386);
|
|
47784
|
+
/* harmony import */ var core_js_modules_es_regexp_sticky_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_sticky_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
47785
47785
|
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(40561);
|
|
47786
47786
|
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_21__);
|
|
47787
47787
|
/* harmony import */ var core_js_modules_es_string_match_all_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(76373);
|
|
@@ -47798,9 +47798,11 @@ var SpecialCharsNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
47798
47798
|
/* harmony import */ var _editor_utils_ExpressionCalculator__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(28284);
|
|
47799
47799
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(41005);
|
|
47800
47800
|
/* harmony import */ var _plugins_util__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(33913);
|
|
47801
|
-
/* harmony import */ var
|
|
47802
|
-
/* harmony import */ var
|
|
47803
|
-
/* harmony import */ var
|
|
47801
|
+
/* harmony import */ var _BaseCombineNode__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(8);
|
|
47802
|
+
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(50369);
|
|
47803
|
+
/* harmony import */ var _CellNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(15798);
|
|
47804
|
+
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(8395);
|
|
47805
|
+
|
|
47804
47806
|
|
|
47805
47807
|
|
|
47806
47808
|
|
|
@@ -47897,7 +47899,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
47897
47899
|
return _this;
|
|
47898
47900
|
}
|
|
47899
47901
|
|
|
47900
|
-
(0,
|
|
47902
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_35__/* ["default"] */ .Z)(TableFormula, [{
|
|
47901
47903
|
key: "setCustomProperty",
|
|
47902
47904
|
value: function setCustomProperty(customProperty) {
|
|
47903
47905
|
var assignvalue = function assignvalue(target, source) {
|
|
@@ -48012,9 +48014,9 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48012
48014
|
}, {
|
|
48013
48015
|
key: "node2DrawNodeRange",
|
|
48014
48016
|
value: function node2DrawNodeRange(startIndex, endIndex) {
|
|
48015
|
-
this.refreshDrawStyle();
|
|
48016
|
-
|
|
48017
|
-
var dNode = new _editor_draw_drawNode_DrawTableFormular__WEBPACK_IMPORTED_MODULE_27__/* .DrawTableFormular */ .A(this._rootPath, this,
|
|
48017
|
+
this.refreshDrawStyle(); //const text = this._hideZero && (this._text == "0" || this._text === "0.00") ? " " : this._text;
|
|
48018
|
+
|
|
48019
|
+
var dNode = new _editor_draw_drawNode_DrawTableFormular__WEBPACK_IMPORTED_MODULE_27__/* .DrawTableFormular */ .A(this._rootPath, this, this._text);
|
|
48018
48020
|
|
|
48019
48021
|
this._drawNodes.push(dNode);
|
|
48020
48022
|
}
|
|
@@ -48057,7 +48059,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48057
48059
|
key: "node2Json",
|
|
48058
48060
|
value: function node2Json(range, isCopy) {
|
|
48059
48061
|
var retObj = {
|
|
48060
|
-
nodeType:
|
|
48062
|
+
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq[this.nodeType],
|
|
48061
48063
|
text: this._formulaStr,
|
|
48062
48064
|
styleIndex: this.styleIndex,
|
|
48063
48065
|
hideZero: this._hideZero,
|
|
@@ -48079,7 +48081,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48079
48081
|
var pNode = this.parentNode;
|
|
48080
48082
|
|
|
48081
48083
|
while (pNode) {
|
|
48082
|
-
if (pNode instanceof
|
|
48084
|
+
if (pNode instanceof _CellNode__WEBPACK_IMPORTED_MODULE_33__/* .CellNode */ .D) {
|
|
48083
48085
|
return pNode;
|
|
48084
48086
|
}
|
|
48085
48087
|
|
|
@@ -48095,7 +48097,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48095
48097
|
|
|
48096
48098
|
var table = this.getParentCell().table;
|
|
48097
48099
|
var totalOk = false;
|
|
48098
|
-
var total =
|
|
48100
|
+
var total = " ";
|
|
48099
48101
|
|
|
48100
48102
|
if (arr.length == 2) {
|
|
48101
48103
|
var _this$getRowColByCell = this.getRowColByCellAdress(arr[0]),
|
|
@@ -48115,6 +48117,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48115
48117
|
for (var r = istartRow; r <= iEndRow; r++) {
|
|
48116
48118
|
for (var c = istartCol; c <= iEndCol; c++) {
|
|
48117
48119
|
if (bCalc) {
|
|
48120
|
+
if (!table.rows[r]) return "?";
|
|
48118
48121
|
var cell = table.rows[r][c];
|
|
48119
48122
|
if (!cell) continue;
|
|
48120
48123
|
|
|
@@ -48125,7 +48128,10 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48125
48128
|
|
|
48126
48129
|
if (cell.cellProperty.downListProperty) {
|
|
48127
48130
|
if (bret) {
|
|
48128
|
-
total
|
|
48131
|
+
//total+=value;
|
|
48132
|
+
if (value !== "") {
|
|
48133
|
+
total = ((total == " " ? 0.00 : Number(total)) + Number(value)).toString();
|
|
48134
|
+
}
|
|
48129
48135
|
} else {
|
|
48130
48136
|
var cellText = cell.getCellText();
|
|
48131
48137
|
var downListProperty = cell.cellProperty.downListProperty;
|
|
@@ -48143,7 +48149,8 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48143
48149
|
var val = Number(listItem.value);
|
|
48144
48150
|
|
|
48145
48151
|
if (!isNaN(val)) {
|
|
48146
|
-
total += val;
|
|
48152
|
+
//total += val;
|
|
48153
|
+
total = ((total == " " ? 0.00 : Number(total)) + val).toString();
|
|
48147
48154
|
} else {
|
|
48148
48155
|
totalOk = false;
|
|
48149
48156
|
break;
|
|
@@ -48163,8 +48170,11 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48163
48170
|
break;
|
|
48164
48171
|
}
|
|
48165
48172
|
|
|
48166
|
-
;
|
|
48167
|
-
|
|
48173
|
+
; //total += value;
|
|
48174
|
+
|
|
48175
|
+
if (value !== "") {
|
|
48176
|
+
total = ((total == " " ? 0.00 : Number(total)) + Number(value)).toString();
|
|
48177
|
+
}
|
|
48168
48178
|
}
|
|
48169
48179
|
} else {
|
|
48170
48180
|
this._cellRange.push([r, c]);
|
|
@@ -48188,7 +48198,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48188
48198
|
}, {
|
|
48189
48199
|
key: "getCellNumber",
|
|
48190
48200
|
value: function getCellNumber(tb, irow, icol) {
|
|
48191
|
-
var ret =
|
|
48201
|
+
var ret = "";
|
|
48192
48202
|
var bret = false;
|
|
48193
48203
|
var cell = tb.rows[irow][icol];
|
|
48194
48204
|
|
|
@@ -48215,7 +48225,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48215
48225
|
|
|
48216
48226
|
if (!isNaN(ivalue)) {
|
|
48217
48227
|
bret = true;
|
|
48218
|
-
ret =
|
|
48228
|
+
ret = strValue;
|
|
48219
48229
|
}
|
|
48220
48230
|
}
|
|
48221
48231
|
|
|
@@ -48245,7 +48255,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48245
48255
|
}, {
|
|
48246
48256
|
key: "clacFormula",
|
|
48247
48257
|
value: function clacFormula(bCalc) {
|
|
48248
|
-
var strRet = '
|
|
48258
|
+
var strRet = ' ';
|
|
48249
48259
|
|
|
48250
48260
|
var strFormula = this._formulaStr.toLowerCase();
|
|
48251
48261
|
|
|
@@ -48297,7 +48307,8 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48297
48307
|
avalue = _this$getCellNumber4[1];
|
|
48298
48308
|
|
|
48299
48309
|
if (isNumber) {
|
|
48300
|
-
value[i] = avalue.toString();
|
|
48310
|
+
//value[i] = avalue.toString();
|
|
48311
|
+
value[i] = avalue;
|
|
48301
48312
|
} else {
|
|
48302
48313
|
totalOk = false;
|
|
48303
48314
|
break;
|
|
@@ -48314,7 +48325,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48314
48325
|
}
|
|
48315
48326
|
|
|
48316
48327
|
if (!bCalc) {
|
|
48317
|
-
return '
|
|
48328
|
+
return ' ';
|
|
48318
48329
|
}
|
|
48319
48330
|
|
|
48320
48331
|
if (totalOk) {
|
|
@@ -48322,20 +48333,25 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48322
48333
|
var isRet = true;
|
|
48323
48334
|
|
|
48324
48335
|
for (var m = 0; m < value.length; m++) {
|
|
48325
|
-
if (value[m] !== "0") {
|
|
48336
|
+
// if (value[m] !== "0") {
|
|
48337
|
+
// isRet = false;
|
|
48338
|
+
// }
|
|
48339
|
+
if (value[m] !== "") {
|
|
48326
48340
|
isRet = false;
|
|
48341
|
+
break;
|
|
48327
48342
|
}
|
|
48328
48343
|
}
|
|
48329
48344
|
|
|
48330
48345
|
if (isRet) {
|
|
48331
|
-
return
|
|
48346
|
+
return " ";
|
|
48332
48347
|
}
|
|
48333
48348
|
|
|
48334
48349
|
for (var k = arr.length - 1; k >= 0; k--) {
|
|
48335
48350
|
strFormula = hoEditorFactory.unitConvert.replaceAll(strFormula, arr[k], value[k]); //strFormula.replaceAll(arr[k], value[k]);
|
|
48336
48351
|
}
|
|
48337
48352
|
|
|
48338
|
-
|
|
48353
|
+
var result = (0,_editor_utils_ExpressionCalculator__WEBPACK_IMPORTED_MODULE_28__/* .expressionCalculator */ .C)(strFormula);
|
|
48354
|
+
strRet = result.toString() == "NaN" ? " " : result.toString();
|
|
48339
48355
|
}
|
|
48340
48356
|
|
|
48341
48357
|
return strRet;
|
|
@@ -48343,7 +48359,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48343
48359
|
}, {
|
|
48344
48360
|
key: "clacBMI",
|
|
48345
48361
|
value: function clacBMI() {
|
|
48346
|
-
var strRet = "
|
|
48362
|
+
var strRet = " ";
|
|
48347
48363
|
var table = this.getParentCell().table;
|
|
48348
48364
|
var arrStr = this.formulaStr.split(",");
|
|
48349
48365
|
|
|
@@ -48362,6 +48378,8 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48362
48378
|
heightCol = _this$getRowColByCell10[1];
|
|
48363
48379
|
|
|
48364
48380
|
if (weightRow >= 0 && weightCol >= 0 && heightRow >= 0 && heightCol >= 0) {
|
|
48381
|
+
if (!table.rows[weightRow]) return strRet;
|
|
48382
|
+
if (!table.rows[heightRow]) return strRet;
|
|
48365
48383
|
var wCell = table.rows[weightRow][weightCol];
|
|
48366
48384
|
var hCell = table.rows[heightRow][heightCol];
|
|
48367
48385
|
|
|
@@ -48369,14 +48387,17 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48369
48387
|
var _this$getCellNumber5 = this.getCellNumber(table, weightRow, weightCol),
|
|
48370
48388
|
_this$getCellNumber6 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$getCellNumber5, 2),
|
|
48371
48389
|
wRet = _this$getCellNumber6[0],
|
|
48372
|
-
|
|
48390
|
+
weight = _this$getCellNumber6[1];
|
|
48373
48391
|
|
|
48374
48392
|
var _this$getCellNumber7 = this.getCellNumber(table, heightRow, heightCol),
|
|
48375
48393
|
_this$getCellNumber8 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$getCellNumber7, 2),
|
|
48376
48394
|
hRet = _this$getCellNumber8[0],
|
|
48377
|
-
|
|
48395
|
+
height = _this$getCellNumber8[1];
|
|
48378
48396
|
|
|
48379
|
-
if (
|
|
48397
|
+
if (height == "0" || height == "") return strRet;
|
|
48398
|
+
if (weight == "") return strRet;
|
|
48399
|
+
var weightNum = Number(weight);
|
|
48400
|
+
var heightNum = Number(height);
|
|
48380
48401
|
|
|
48381
48402
|
if (wRet && hRet) {
|
|
48382
48403
|
if (heightNum > 3) {
|
|
@@ -48424,6 +48445,8 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48424
48445
|
}
|
|
48425
48446
|
|
|
48426
48447
|
if (sRow >= 0 && sCol >= 0 && eRow >= 0 && eCol >= 0) {
|
|
48448
|
+
if (!table.rows[sRow]) return "0";
|
|
48449
|
+
if (!table.rows[eRow]) return "0";
|
|
48427
48450
|
var sCell = table.rows[sRow][sCol];
|
|
48428
48451
|
var eCell = table.rows[eRow][eCol];
|
|
48429
48452
|
|
|
@@ -48482,6 +48505,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48482
48505
|
|
|
48483
48506
|
if (arrStr.length === 3) {
|
|
48484
48507
|
if (aRow >= 0 && aCol >= 0) {
|
|
48508
|
+
if (!table.rows[aRow]) return "0";
|
|
48485
48509
|
var aCell = table.rows[aRow][aCol];
|
|
48486
48510
|
|
|
48487
48511
|
if (aCell) {
|
|
@@ -48592,6 +48616,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48592
48616
|
col = _this$getRowColByCell18[1];
|
|
48593
48617
|
|
|
48594
48618
|
if (row >= 0 && col >= 0) {
|
|
48619
|
+
if (!table.rows[row]) return "0";
|
|
48595
48620
|
var cell = table.rows[row][col];
|
|
48596
48621
|
|
|
48597
48622
|
if (cell) {
|
|
@@ -48636,6 +48661,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48636
48661
|
col = _this$getRowColByCell20[1];
|
|
48637
48662
|
|
|
48638
48663
|
if (row >= 0 && col >= 0) {
|
|
48664
|
+
if (!table.rows[row]) return "0";
|
|
48639
48665
|
var cell = table.rows[row][col];
|
|
48640
48666
|
|
|
48641
48667
|
if (cell) {
|
|
@@ -48669,7 +48695,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48669
48695
|
}, {
|
|
48670
48696
|
key: "getScoreMapping",
|
|
48671
48697
|
value: function getScoreMapping() {
|
|
48672
|
-
var strRet = "
|
|
48698
|
+
var strRet = " ";
|
|
48673
48699
|
var formularJson = JSON.parse(this.formulaStr);
|
|
48674
48700
|
var cellNo = formularJson.cell;
|
|
48675
48701
|
var items = formularJson.items;
|
|
@@ -48681,20 +48707,38 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48681
48707
|
col = _this$getRowColByCell22[1];
|
|
48682
48708
|
|
|
48683
48709
|
if (row >= 0 && col >= 0) {
|
|
48710
|
+
if (!table.rows[row]) return " ";
|
|
48684
48711
|
var cell = table.rows[row][col];
|
|
48685
48712
|
|
|
48686
|
-
if (cell
|
|
48687
|
-
var tableFormular = cell.childNodes[
|
|
48713
|
+
if (cell) {
|
|
48714
|
+
var tableFormular = cell.childNodes[0];
|
|
48715
|
+
|
|
48716
|
+
var loopNodes = function loopNodes(nodes) {
|
|
48717
|
+
for (var k = 0; k < nodes.length; k++) {
|
|
48718
|
+
var node = nodes[k];
|
|
48719
|
+
|
|
48720
|
+
if (node instanceof TableFormula) {
|
|
48721
|
+
tableFormular = node;
|
|
48722
|
+
break;
|
|
48723
|
+
}
|
|
48724
|
+
|
|
48725
|
+
if (node instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_31__/* .BaseCombineNode */ .V) {
|
|
48726
|
+
loopNodes(node.childNodes);
|
|
48727
|
+
}
|
|
48728
|
+
}
|
|
48729
|
+
};
|
|
48730
|
+
|
|
48731
|
+
loopNodes(cell.childNodes);
|
|
48732
|
+
if (!(tableFormular instanceof TableFormula)) return " "; //const scoreText = cell.getCellText();
|
|
48688
48733
|
|
|
48689
48734
|
var scoreText = tableFormular.text;
|
|
48690
48735
|
|
|
48691
48736
|
if (scoreText == "" || scoreText == " ") {
|
|
48692
48737
|
return strRet;
|
|
48693
|
-
}
|
|
48738
|
+
} // if (tableFormular.hideZero && (scoreText == "0" || scoreText == "0.00")) {
|
|
48739
|
+
// return strRet;
|
|
48740
|
+
// }
|
|
48694
48741
|
|
|
48695
|
-
if (tableFormular.hideZero && (scoreText == "0" || scoreText == "0.00")) {
|
|
48696
|
-
return strRet;
|
|
48697
|
-
}
|
|
48698
48742
|
|
|
48699
48743
|
var score = Number(scoreText);
|
|
48700
48744
|
|
|
@@ -48817,13 +48861,13 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
48817
48861
|
formularType = json.text.indexOf(':') > 0 ? FormularType.ftSum : FormularType.ftFormular;
|
|
48818
48862
|
}
|
|
48819
48863
|
|
|
48820
|
-
var ret = new TableFormula(hoEditorFactoryID, rootNodes, pNode ? pNode : null,
|
|
48864
|
+
var ret = new TableFormula(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType.ntTableFormula */ .Jq.ntTableFormula, json.text, styleIndex, hideZero, formularType, json.customProperty);
|
|
48821
48865
|
return ret;
|
|
48822
48866
|
}
|
|
48823
48867
|
}]);
|
|
48824
48868
|
|
|
48825
48869
|
return TableFormula;
|
|
48826
|
-
}(
|
|
48870
|
+
}(_ControlNode__WEBPACK_IMPORTED_MODULE_34__/* .ControlNode */ .w);
|
|
48827
48871
|
|
|
48828
48872
|
/***/ }),
|
|
48829
48873
|
|
|
@@ -49257,6 +49301,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
49257
49301
|
}
|
|
49258
49302
|
}
|
|
49259
49303
|
|
|
49304
|
+
_this.countChildNodes();
|
|
49305
|
+
|
|
49260
49306
|
_this.node2DrawNode();
|
|
49261
49307
|
|
|
49262
49308
|
_this.updateWidth();
|
|
@@ -49353,11 +49399,11 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
49353
49399
|
}, {
|
|
49354
49400
|
key: "childNodes",
|
|
49355
49401
|
get: function get() {
|
|
49356
|
-
|
|
49402
|
+
if (!this._childNodes) {
|
|
49403
|
+
this.countChildNodes();
|
|
49404
|
+
}
|
|
49357
49405
|
|
|
49358
|
-
return
|
|
49359
|
-
return element !== undefined;
|
|
49360
|
-
});
|
|
49406
|
+
return this._childNodes;
|
|
49361
49407
|
}
|
|
49362
49408
|
}, {
|
|
49363
49409
|
key: "borderWidth",
|
|
@@ -49367,6 +49413,15 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
49367
49413
|
set: function set(borderWidth) {
|
|
49368
49414
|
this._borderWidth = borderWidth;
|
|
49369
49415
|
}
|
|
49416
|
+
}, {
|
|
49417
|
+
key: "countChildNodes",
|
|
49418
|
+
value: function countChildNodes() {
|
|
49419
|
+
var arr = this._rows.flat();
|
|
49420
|
+
|
|
49421
|
+
this._childNodes = arr.filter(function (element) {
|
|
49422
|
+
return element !== undefined;
|
|
49423
|
+
});
|
|
49424
|
+
}
|
|
49370
49425
|
}, {
|
|
49371
49426
|
key: "calcColWidth",
|
|
49372
49427
|
value: function calcColWidth() {
|
|
@@ -49503,6 +49558,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
49503
49558
|
}
|
|
49504
49559
|
|
|
49505
49560
|
this._rowCount += 1;
|
|
49561
|
+
this.countChildNodes();
|
|
49506
49562
|
this._drawTable.needUpdate = true;
|
|
49507
49563
|
}
|
|
49508
49564
|
|
|
@@ -49763,6 +49819,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
49763
49819
|
}
|
|
49764
49820
|
|
|
49765
49821
|
this._colCount += count;
|
|
49822
|
+
this.countChildNodes();
|
|
49766
49823
|
this.updateWidth(); // }
|
|
49767
49824
|
}
|
|
49768
49825
|
/**
|
|
@@ -49948,6 +50005,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
49948
50005
|
// }
|
|
49949
50006
|
// vampireCell.updateHeight(aHeight);
|
|
49950
50007
|
|
|
50008
|
+
this.countChildNodes();
|
|
49951
50009
|
vampireCell.drawCell.needUpdate = true;
|
|
49952
50010
|
return vampireCell;
|
|
49953
50011
|
}
|
|
@@ -50204,6 +50262,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50204
50262
|
// }
|
|
50205
50263
|
|
|
50206
50264
|
this._rows.splice(index, count);
|
|
50265
|
+
|
|
50266
|
+
this.countChildNodes();
|
|
50207
50267
|
}
|
|
50208
50268
|
}, {
|
|
50209
50269
|
key: "deleteCols",
|
|
@@ -50295,6 +50355,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50295
50355
|
if (cols.length > 0) {
|
|
50296
50356
|
this.updateColsWidth(cols, newWidth);
|
|
50297
50357
|
}
|
|
50358
|
+
|
|
50359
|
+
this.countChildNodes();
|
|
50298
50360
|
}
|
|
50299
50361
|
}, {
|
|
50300
50362
|
key: "unMergeCell",
|
|
@@ -50336,6 +50398,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50336
50398
|
} else if (bUnMergeCol) {
|
|
50337
50399
|
this.doUnMergeCol(r, c);
|
|
50338
50400
|
}
|
|
50401
|
+
|
|
50402
|
+
this.countChildNodes();
|
|
50339
50403
|
}
|
|
50340
50404
|
}
|
|
50341
50405
|
}, {
|
|
@@ -51846,6 +51910,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
51846
51910
|
}
|
|
51847
51911
|
}
|
|
51848
51912
|
|
|
51913
|
+
tableNode.countChildNodes();
|
|
51849
51914
|
return tableNode;
|
|
51850
51915
|
}
|
|
51851
51916
|
}, {
|
|
@@ -61653,14 +61718,6 @@ var getPrototypeOf = __webpack_require__(24084);
|
|
|
61653
61718
|
var inherits = __webpack_require__(99640);
|
|
61654
61719
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js + 2 modules
|
|
61655
61720
|
var createSuper = __webpack_require__(28214);
|
|
61656
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
61657
|
-
var es_function_name = __webpack_require__(68309);
|
|
61658
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
61659
|
-
var es_array_includes = __webpack_require__(26699);
|
|
61660
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
61661
|
-
var es_string_includes = __webpack_require__(32023);
|
|
61662
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
61663
|
-
var es_array_splice = __webpack_require__(40561);
|
|
61664
61721
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
|
|
61665
61722
|
var es_error_cause = __webpack_require__(21703);
|
|
61666
61723
|
// EXTERNAL MODULE: ./src/editor/dom/TableProperty.ts
|
|
@@ -62015,10 +62072,6 @@ var DrawPageTable = __webpack_require__(46002);
|
|
|
62015
62072
|
|
|
62016
62073
|
|
|
62017
62074
|
|
|
62018
|
-
|
|
62019
|
-
|
|
62020
|
-
|
|
62021
|
-
|
|
62022
62075
|
|
|
62023
62076
|
|
|
62024
62077
|
var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
@@ -62489,6 +62542,8 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
62489
62542
|
key: "startPaintBackGround",
|
|
62490
62543
|
value: function startPaintBackGround() {
|
|
62491
62544
|
this._backImg.uncache();
|
|
62545
|
+
|
|
62546
|
+
this._backImg.graphics.clear();
|
|
62492
62547
|
}
|
|
62493
62548
|
}, {
|
|
62494
62549
|
key: "endPaintBackGround",
|
|
@@ -62497,34 +62552,28 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
62497
62552
|
}
|
|
62498
62553
|
}, {
|
|
62499
62554
|
key: "paintMarker",
|
|
62500
|
-
value: function paintMarker(
|
|
62501
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
62502
|
-
|
|
62503
|
-
|
|
62504
|
-
|
|
62505
|
-
|
|
62506
|
-
}
|
|
62507
|
-
}
|
|
62555
|
+
value: function paintMarker(color) {
|
|
62556
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID); // for (let i = this.children.length - 1; i >= 0; i--) {
|
|
62557
|
+
// if (this.children[i].name && this.children[i].name.includes("markline")) {
|
|
62558
|
+
// this.children.splice(i, 1);
|
|
62559
|
+
// }
|
|
62560
|
+
// }
|
|
62508
62561
|
|
|
62509
62562
|
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
|
|
62510
|
-
|
|
62511
|
-
|
|
62512
|
-
|
|
62513
|
-
|
|
62563
|
+
// const markerLine1 = new createjs.Shape();
|
|
62564
|
+
// const markerLine2 = new createjs.Shape();
|
|
62565
|
+
// const markerLine3 = new createjs.Shape();
|
|
62566
|
+
// const markerLine4 = new createjs.Shape();
|
|
62514
62567
|
var width = this.dWidth;
|
|
62515
|
-
var height = this.dHeight;
|
|
62516
|
-
|
|
62517
|
-
|
|
62518
|
-
|
|
62519
|
-
|
|
62520
|
-
|
|
62521
|
-
|
|
62522
|
-
|
|
62523
|
-
|
|
62524
|
-
this.addChild(markerLine1);
|
|
62525
|
-
this.addChild(markerLine2);
|
|
62526
|
-
this.addChild(markerLine3);
|
|
62527
|
-
this.addChild(markerLine4);
|
|
62568
|
+
var height = this.dHeight; // markerLine1.name = "markline1";
|
|
62569
|
+
// markerLine2.name = "markline2";
|
|
62570
|
+
// markerLine3.name = "markline3";
|
|
62571
|
+
// markerLine4.name = "markline4";
|
|
62572
|
+
|
|
62573
|
+
this._backImg.graphics.beginStroke(color).moveTo(width - 7, height - 0.5).lineTo(width - 0.5, height - 7).moveTo(width - 5, height - 0.5).lineTo(width - 0.5, height - 5).moveTo(width - 3, height - 0.5).lineTo(width - 0.5, height - 3).moveTo(width - 2, height - 0.5).lineTo(width - 0.5, height - 2);
|
|
62574
|
+
|
|
62575
|
+
this._backImg.graphics.endStroke(); // this.addChild(markerLine1);
|
|
62576
|
+
|
|
62528
62577
|
}
|
|
62529
62578
|
}
|
|
62530
62579
|
}, {
|
|
@@ -62533,9 +62582,7 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
62533
62582
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
62534
62583
|
this._backImg.x = 0;
|
|
62535
62584
|
this._backImg.y = 0; // this._backImg.uncache();
|
|
62536
|
-
|
|
62537
|
-
this._backImg.graphics.clear(); // 白色背景转透明 处理转换pdf生成的多余线
|
|
62538
|
-
|
|
62585
|
+
// 白色背景转透明 处理转换pdf生成的多余线
|
|
62539
62586
|
|
|
62540
62587
|
this._backImg.graphics.beginFill(this._cell.cellProperty.backColor === '#FFFFFF' ? 'transparent' : this._cell.cellProperty.backColor);
|
|
62541
62588
|
|
|
@@ -63056,7 +63103,7 @@ var DrawPageMarkNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
63056
63103
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5914);
|
|
63057
63104
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(99640);
|
|
63058
63105
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(28214);
|
|
63059
|
-
/* harmony import */ var
|
|
63106
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(22342);
|
|
63060
63107
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35671);
|
|
63061
63108
|
/* harmony import */ var core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2707);
|
|
63062
63109
|
/* harmony import */ var core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
@@ -63066,12 +63113,16 @@ var DrawPageMarkNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
63066
63113
|
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
63067
63114
|
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(92222);
|
|
63068
63115
|
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
63069
|
-
/* harmony import */ var
|
|
63070
|
-
/* harmony import */ var
|
|
63071
|
-
/* harmony import */ var
|
|
63072
|
-
/* harmony import */ var
|
|
63073
|
-
/* harmony import */ var
|
|
63074
|
-
/* harmony import */ var
|
|
63116
|
+
/* harmony import */ var _editor_dom_treeNode_BaseCombineNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(8);
|
|
63117
|
+
/* harmony import */ var _editor_dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(39869);
|
|
63118
|
+
/* harmony import */ var _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(95883);
|
|
63119
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(41005);
|
|
63120
|
+
/* harmony import */ var _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(24093);
|
|
63121
|
+
/* harmony import */ var _IDrawInfos__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(70692);
|
|
63122
|
+
/* harmony import */ var _DrawPageCell__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(39648);
|
|
63123
|
+
/* harmony import */ var _DrawRect__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(152);
|
|
63124
|
+
|
|
63125
|
+
|
|
63075
63126
|
|
|
63076
63127
|
|
|
63077
63128
|
|
|
@@ -63133,7 +63184,7 @@ var DrawPageMarkNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
63133
63184
|
// }
|
|
63134
63185
|
// }
|
|
63135
63186
|
|
|
63136
|
-
var PartRowHeight = /*#__PURE__*/(0,
|
|
63187
|
+
var PartRowHeight = /*#__PURE__*/(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(function PartRowHeight() {
|
|
63137
63188
|
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, PartRowHeight);
|
|
63138
63189
|
});
|
|
63139
63190
|
var PartRowHeights = /*#__PURE__*/function () {
|
|
@@ -63144,7 +63195,7 @@ var PartRowHeights = /*#__PURE__*/function () {
|
|
|
63144
63195
|
this._drawPageTable = drawPageTable;
|
|
63145
63196
|
}
|
|
63146
63197
|
|
|
63147
|
-
(0,
|
|
63198
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(PartRowHeights, [{
|
|
63148
63199
|
key: "getLastRow",
|
|
63149
63200
|
value: function getLastRow() {
|
|
63150
63201
|
if (this._rowHeights.length > 0) {
|
|
@@ -63238,7 +63289,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
63238
63289
|
_this._table = tableNode;
|
|
63239
63290
|
_this._dParent = dParent;
|
|
63240
63291
|
_this._charSpace = paragraphNode.combineParagraph.charSpace;
|
|
63241
|
-
_this._discriminator =
|
|
63292
|
+
_this._discriminator = _IDrawInfos__WEBPACK_IMPORTED_MODULE_17__/* .gDrawIntfID */ .t;
|
|
63242
63293
|
_this._dTop = dTop;
|
|
63243
63294
|
_this._node = tableNode;
|
|
63244
63295
|
_this._dWidth = aWidth;
|
|
@@ -63253,7 +63304,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
63253
63304
|
} // private _endRowinfos: EndRowInfo;
|
|
63254
63305
|
|
|
63255
63306
|
|
|
63256
|
-
(0,
|
|
63307
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(DrawPageTable, [{
|
|
63257
63308
|
key: "startRow",
|
|
63258
63309
|
get: function get() {
|
|
63259
63310
|
return this._startRow;
|
|
@@ -63533,19 +63584,42 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
63533
63584
|
}, {
|
|
63534
63585
|
key: "paintCellBorder",
|
|
63535
63586
|
value: function paintCellBorder(partCell, r, c, newHeight) {
|
|
63587
|
+
partCell.startPaintBackGround();
|
|
63536
63588
|
var colInfo = this._table.colInfos[c];
|
|
63537
63589
|
|
|
63538
63590
|
if (partCell.cell.cellProperty.editorProperty !== 0 || colInfo.colProperty.editorProperty !== 0) {
|
|
63539
|
-
partCell.paintMarker(
|
|
63591
|
+
partCell.paintMarker("#FB0101");
|
|
63592
|
+
}
|
|
63593
|
+
|
|
63594
|
+
var isHasTableFormula = false;
|
|
63595
|
+
|
|
63596
|
+
var loopNodes = function loopNodes(nodes) {
|
|
63597
|
+
for (var k = 0; k < nodes.length; k++) {
|
|
63598
|
+
var node = nodes[k];
|
|
63599
|
+
|
|
63600
|
+
if (node instanceof _editor_dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_10__/* .TableFormula */ .N) {
|
|
63601
|
+
isHasTableFormula = true;
|
|
63602
|
+
break;
|
|
63603
|
+
}
|
|
63604
|
+
|
|
63605
|
+
if (node instanceof _editor_dom_treeNode_BaseCombineNode__WEBPACK_IMPORTED_MODULE_9__/* .BaseCombineNode */ .V) {
|
|
63606
|
+
loopNodes(node.childNodes);
|
|
63607
|
+
}
|
|
63608
|
+
}
|
|
63609
|
+
};
|
|
63610
|
+
|
|
63611
|
+
loopNodes(partCell.cell.childNodes);
|
|
63612
|
+
|
|
63613
|
+
if (isHasTableFormula) {
|
|
63614
|
+
partCell.paintMarker("#0312FA");
|
|
63540
63615
|
}
|
|
63541
63616
|
|
|
63542
|
-
partCell.startPaintBackGround();
|
|
63543
63617
|
partCell.paintCellBackground(newHeight, r, c);
|
|
63544
63618
|
partCell.endPaintBackGround(newHeight);
|
|
63545
63619
|
partCell.updateCrossShap();
|
|
63546
|
-
var hoEditorFactory =
|
|
63620
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this.table.hoEditorFactoryID);
|
|
63547
63621
|
|
|
63548
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
63622
|
+
if (hoEditorFactory.drawTree.paintStatus === _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_13__/* .PaintState.psPreview */ .Dh.psPreview || hoEditorFactory.drawTree.paintStatus === _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_13__/* .PaintState.psPrint */ .Dh.psPrint) {
|
|
63549
63623
|
return;
|
|
63550
63624
|
}
|
|
63551
63625
|
|
|
@@ -63586,7 +63660,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
63586
63660
|
}
|
|
63587
63661
|
}
|
|
63588
63662
|
|
|
63589
|
-
var hoEditorFactory =
|
|
63663
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._table.hoEditorFactoryID);
|
|
63590
63664
|
var tableRestHeight = pageRestHeight;
|
|
63591
63665
|
this._endRow = this._startRow;
|
|
63592
63666
|
var emptyRowHeight = 0;
|
|
@@ -63595,13 +63669,13 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
63595
63669
|
for (var r = this._startRow; r < this._table.rowCount; r++) {
|
|
63596
63670
|
var rowRestHeight = 0;
|
|
63597
63671
|
|
|
63598
|
-
if (pageRestHeight <
|
|
63672
|
+
if (pageRestHeight < _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_11__/* .gDefaultRowHeight */ .dT) {
|
|
63599
63673
|
break;
|
|
63600
63674
|
} //开始行需要判断是否存在上一个未绘制完成的表格
|
|
63601
63675
|
|
|
63602
63676
|
|
|
63603
63677
|
if (r === this._startRow && index > 0 && !bStartRowFinished) {
|
|
63604
|
-
rowRestHeight = Math.max(this._table.drawTable.getRowRestHeight(index - 1, this._startRow),
|
|
63678
|
+
rowRestHeight = Math.max(this._table.drawTable.getRowRestHeight(index - 1, this._startRow), _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_11__/* .gDefaultRowHeight */ .dT);
|
|
63605
63679
|
} else {
|
|
63606
63680
|
rowRestHeight = this._table.rowInfos[r].rowHeight;
|
|
63607
63681
|
}
|
|
@@ -63624,7 +63698,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
63624
63698
|
|
|
63625
63699
|
if (isEmptyRow) {
|
|
63626
63700
|
if (r >= this._startRow) {
|
|
63627
|
-
var aRowHeight = Math.max(this._table.rowInfos[r].rowHeight,
|
|
63701
|
+
var aRowHeight = Math.max(this._table.rowInfos[r].rowHeight, _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_11__/* .gDefaultRowHeight */ .dT);
|
|
63628
63702
|
|
|
63629
63703
|
this._partRowHeights.set(r, aRowHeight);
|
|
63630
63704
|
|
|
@@ -63727,7 +63801,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
63727
63801
|
|
|
63728
63802
|
if (cell.rowSpan + r - 1 === row) {
|
|
63729
63803
|
var partCell = cell.drawCell.getDrawPageCell(this);
|
|
63730
|
-
var hoeditorfactory =
|
|
63804
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._table.hoEditorFactoryID);
|
|
63731
63805
|
|
|
63732
63806
|
if (partCell) {
|
|
63733
63807
|
// const dobj = partCell.lastDrawLine;
|
|
@@ -63738,14 +63812,14 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
63738
63812
|
|
|
63739
63813
|
if (index == 0 || index == partCell.cell.drawCell.drawPageCells.length - 1) {
|
|
63740
63814
|
if (index == 0 && index == partCell.cell.drawCell.drawPageCells.length - 1) {
|
|
63741
|
-
dHeight = Math.max(
|
|
63815
|
+
dHeight = Math.max(_editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_11__/* .gDefaultRowHeight */ .dT, innerTop + partCell.docHeight + innerBottom);
|
|
63742
63816
|
} else if (index == 0) {
|
|
63743
|
-
dHeight = Math.max(
|
|
63817
|
+
dHeight = Math.max(_editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_11__/* .gDefaultRowHeight */ .dT, innerTop + partCell.docHeight);
|
|
63744
63818
|
} else if (index == partCell.cell.drawCell.drawPageCells.length - 1) {
|
|
63745
|
-
dHeight = Math.max(
|
|
63819
|
+
dHeight = Math.max(_editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_11__/* .gDefaultRowHeight */ .dT, innerBottom + partCell.docHeight);
|
|
63746
63820
|
}
|
|
63747
63821
|
} else {
|
|
63748
|
-
dHeight = Math.max(
|
|
63822
|
+
dHeight = Math.max(_editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_11__/* .gDefaultRowHeight */ .dT, partCell.docHeight);
|
|
63749
63823
|
}
|
|
63750
63824
|
|
|
63751
63825
|
if (index === partCell.cell.drawCell.drawPageCells.length - 1 || this._table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop) {
|
|
@@ -63868,7 +63942,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
63868
63942
|
|
|
63869
63943
|
|
|
63870
63944
|
if (partCellindex === cell.drawCell.drawPageCells.length - 1) {
|
|
63871
|
-
dPartCell = new
|
|
63945
|
+
dPartCell = new _DrawPageCell__WEBPACK_IMPORTED_MODULE_14__/* .DrawPageCell */ .k(this.table.hoEditorFactoryID, this, cell, aleft, cellRowTop, awidth, cellMaxHeight, partCellindex + 1, startChildIndex, cellMaxHeight);
|
|
63872
63946
|
cell.drawCell.drawPageCells.push(dPartCell);
|
|
63873
63947
|
dPartCell.y = cellRowTop;
|
|
63874
63948
|
dPartCell.x = aleft; //this.drawItems.push(dPartCell);
|
|
@@ -63912,7 +63986,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
63912
63986
|
}, {
|
|
63913
63987
|
key: "getMainRestHeight",
|
|
63914
63988
|
value: function getMainRestHeight() {
|
|
63915
|
-
var hoEditorFactory =
|
|
63989
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this.table.hoEditorFactoryID);
|
|
63916
63990
|
var mainArea = hoEditorFactory.drawPageTree.getMainRootArea(this);
|
|
63917
63991
|
if (!mainArea) return 0;
|
|
63918
63992
|
var pos = this.localToLocal(0, 0, mainArea);
|
|
@@ -63920,7 +63994,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
63920
63994
|
var pArea = hoEditorFactory.drawTree.getParentDrawArea(this);
|
|
63921
63995
|
|
|
63922
63996
|
while (pArea && pArea !== mainArea) {
|
|
63923
|
-
if (pArea instanceof
|
|
63997
|
+
if (pArea instanceof _DrawPageCell__WEBPACK_IMPORTED_MODULE_14__/* .DrawPageCell */ .k) {
|
|
63924
63998
|
var rowIndex = pArea.cell.table.rows.indexOf(pArea.cell.row);
|
|
63925
63999
|
|
|
63926
64000
|
if (rowIndex >= 0) {
|
|
@@ -63940,7 +64014,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
63940
64014
|
}, {
|
|
63941
64015
|
key: "getAndUpdatePartRowHeight",
|
|
63942
64016
|
value: function getAndUpdatePartRowHeight(row) {
|
|
63943
|
-
var hoEditorFactory =
|
|
64017
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this.table.hoEditorFactoryID);
|
|
63944
64018
|
var aHeight = 0;
|
|
63945
64019
|
|
|
63946
64020
|
for (var c = 0; c < this._table.colCount; c++) {
|
|
@@ -63959,7 +64033,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
63959
64033
|
}
|
|
63960
64034
|
}
|
|
63961
64035
|
|
|
63962
|
-
aHeight = Math.ceil(Math.max(aHeight,
|
|
64036
|
+
aHeight = Math.ceil(Math.max(aHeight, _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_11__/* .gDefaultRowHeight */ .dT));
|
|
63963
64037
|
|
|
63964
64038
|
if (this._table.rowInfos[row].rowProperty.isSpecifyHeight && this._table.rowInfos[row].rowProperty.isLockRowHeight) {
|
|
63965
64039
|
aHeight = hoEditorFactory.unitConvert.mmConversionPx(this._table.rowInfos[row].rowProperty.rowHeight * 10, false);
|
|
@@ -64169,7 +64243,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
64169
64243
|
}, {
|
|
64170
64244
|
key: "getRowDocHeight",
|
|
64171
64245
|
value: function getRowDocHeight(r) {
|
|
64172
|
-
var ret =
|
|
64246
|
+
var ret = _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_11__/* .gDefaultRowHeight */ .dT;
|
|
64173
64247
|
|
|
64174
64248
|
for (var c = 0; c < this._table.colCount; c++) {
|
|
64175
64249
|
var cell = this._table.rows[r][c];
|
|
@@ -64276,7 +64350,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
64276
64350
|
var _this$_partRowHeights2;
|
|
64277
64351
|
|
|
64278
64352
|
var startHeight = (_this$_partRowHeights2 = this._partRowHeights.get(this._startRow)) === null || _this$_partRowHeights2 === void 0 ? void 0 : _this$_partRowHeights2.rowHeight;
|
|
64279
|
-
var hoEditorFactory =
|
|
64353
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._table.hoEditorFactoryID);
|
|
64280
64354
|
var dPage = null;
|
|
64281
64355
|
if (this.stage) dPage = hoEditorFactory.drawPageTree.getDrawPageByDNode(this);
|
|
64282
64356
|
|
|
@@ -64296,7 +64370,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
64296
64370
|
}, {
|
|
64297
64371
|
key: "drawUpdate",
|
|
64298
64372
|
value: function drawUpdate(prevdPageTable, dRestHeight) {
|
|
64299
|
-
var hoEditorFactory =
|
|
64373
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this.table.hoEditorFactoryID);
|
|
64300
64374
|
|
|
64301
64375
|
if (this.table.tableProperty.fixedOnePage) {
|
|
64302
64376
|
dRestHeight = Infinity;
|
|
@@ -64348,12 +64422,12 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
64348
64422
|
|
|
64349
64423
|
for (var r = startRow; r < this._table.rowCount; r++) {
|
|
64350
64424
|
if (r === this._startRow && index > 0 && !bStartRowFinished) {
|
|
64351
|
-
rowRestHeight = Math.max(this._table.drawTable.getRowRestHeight(index, this._startRow),
|
|
64425
|
+
rowRestHeight = Math.max(this._table.drawTable.getRowRestHeight(index, this._startRow), _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_11__/* .gDefaultRowHeight */ .dT);
|
|
64352
64426
|
} else {
|
|
64353
64427
|
rowRestHeight = this._table.rowInfos[r].rowHeight;
|
|
64354
64428
|
}
|
|
64355
64429
|
|
|
64356
|
-
if (pageRestHeight <
|
|
64430
|
+
if (pageRestHeight < _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_11__/* .gDefaultRowHeight */ .dT) {
|
|
64357
64431
|
this.removeDrawCellAfterRow(r);
|
|
64358
64432
|
break;
|
|
64359
64433
|
}
|
|
@@ -64377,7 +64451,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
64377
64451
|
|
|
64378
64452
|
if (isEmptyRow) {
|
|
64379
64453
|
if (r >= this._startRow) {
|
|
64380
|
-
var aRowHeight = Math.max(this._table.rowInfos[r].rowHeight,
|
|
64454
|
+
var aRowHeight = Math.max(this._table.rowInfos[r].rowHeight, _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_11__/* .gDefaultRowHeight */ .dT);
|
|
64381
64455
|
|
|
64382
64456
|
this._partRowHeights.set(r, aRowHeight);
|
|
64383
64457
|
|
|
@@ -64425,7 +64499,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
64425
64499
|
|
|
64426
64500
|
if (partCellindex === _cell2.drawCell.drawPageCells.length - 1) {
|
|
64427
64501
|
bRowHeightChanged = true;
|
|
64428
|
-
dPartCell = new
|
|
64502
|
+
dPartCell = new _DrawPageCell__WEBPACK_IMPORTED_MODULE_14__/* .DrawPageCell */ .k(this.table.hoEditorFactoryID, this, _cell2, aleft, cellRowTop, awidth, rowRestHeight, partCellindex + 1, startChildIndex, cellMaxHeight);
|
|
64429
64503
|
|
|
64430
64504
|
_cell2.drawCell.drawPageCells.push(dPartCell);
|
|
64431
64505
|
|
|
@@ -64591,7 +64665,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
64591
64665
|
}]);
|
|
64592
64666
|
|
|
64593
64667
|
return DrawPageTable;
|
|
64594
|
-
}(
|
|
64668
|
+
}(_DrawRect__WEBPACK_IMPORTED_MODULE_15__/* .DrawRect */ .t);
|
|
64595
64669
|
|
|
64596
64670
|
/***/ }),
|
|
64597
64671
|
|
|
@@ -76505,8 +76579,8 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76505
76579
|
var _tmp = _this.getPrevNodeDomRange(Anode); //1.移动光标
|
|
76506
76580
|
|
|
76507
76581
|
|
|
76508
|
-
_this.
|
|
76509
|
-
|
|
76582
|
+
hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(_this._hoEditorFactoryID, _tmp.endPath, _tmp.endPath); // this.MoveCaret(tmp.endPath);
|
|
76583
|
+
//2.删除内容
|
|
76510
76584
|
|
|
76511
76585
|
info[0] = 1;
|
|
76512
76586
|
info[1] = _tmp;
|
|
@@ -76514,7 +76588,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76514
76588
|
//移动光标到文本域外
|
|
76515
76589
|
var _tmp2 = _this.getPrevNodeDomRange(Anode);
|
|
76516
76590
|
|
|
76517
|
-
_this.MoveCaret(
|
|
76591
|
+
hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(_this._hoEditorFactoryID, _tmp2.endPath, _tmp2.endPath); // this.MoveCaret(tmp.endPath);
|
|
76518
76592
|
|
|
76519
76593
|
info[0] = 2;
|
|
76520
76594
|
info[1] = _tmp2;
|
|
@@ -213811,7 +213885,7 @@ var es_function_name = __webpack_require__(68309);
|
|
|
213811
213885
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
213812
213886
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
|
|
213813
213887
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
213814
|
-
;// 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/HoDocs.vue?vue&type=template&id=
|
|
213888
|
+
;// 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/HoDocs.vue?vue&type=template&id=0f14fdda&
|
|
213815
213889
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.hoEditorFactoryIdList.length > 0)?_c('div',{staticClass:"ho-docs"},[_c('section',{class:_vm.defaultEditJson.isFooter ? 'ho-editor-list' : 'ho-editor-list editor-no-footer',on:{"contextmenu":function($event){return _vm.blankAreaRightClick.apply(null, arguments)}}},[_vm._l((_vm.hoEditorFactoryIdList),function(hoEditorId,index){return [_c('HoDoc',{key:index,attrs:{"docIndex":index,"hoEditorId":hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"activeDocId":_vm.activeDocId,"editJson":_vm.defaultEditJson,"isUseTipText":_vm.isUseTipText,"textStyle":_vm.textStyle},on:{"dblNodeClick":_vm.dblNodeClick,"setFontStyles":_vm.setFontStyles,"rightClickEvent":_vm.rightClickEvent,"setActiveDocIndex":_vm.setActiveDocIndex,"setActivePageIndex":_vm.setActivePageIndex,"drawPagesLengthChange":_vm.drawPagesLengthChange},scopedSlots:_vm._u([{key:"hoDocHead",fn:function(){return [_vm._t("hoHead")]},proxy:true},{key:"hoDocFoot",fn:function(){return [_vm._t("hoFoot")]},proxy:true}],null,true)})]})],2),(_vm.notUseModal)?_c('ControlModal',{attrs:{"hoEditorFactoryId":_vm.activeDocId,"controlProperty":_vm.controlProperty,"isDataSource":_vm.isDataSource,"isCustoms":_vm.isCustoms,"isTableProperty":_vm.isTableProperty,"isListStyle":_vm.isListStyle,"uploadImageParams":_vm.uploadImageParams},on:{"insertComments":_vm.insertComments,"closeControlmodal":_vm.closeControlModal},scopedSlots:_vm._u([{key:"hoTextModal",fn:function(){return [_vm._t("hoTextField")]},proxy:true},{key:"hoParagraphModal",fn:function(){return [_vm._t("hoParagraphField")]},proxy:true},{key:"hoComment",fn:function(){return [_vm._t("hoTextComment")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlFindType)?_c('FindReplaceDialog',{attrs:{"hoEditorFactoryId":_vm.activeDocId}}):_vm._e(),(_vm.defaultEditJson.isFooter)?_c('HoFooter',{attrs:{"docProperty":_vm.defaultDocProperty,"hoEditorFactoryId":_vm.activeDocId,"drawPages":_vm.drawPageLength,"currentActivePages":_vm.activePageIndex}}):_vm._e()],1):_vm._e()}
|
|
213816
213890
|
var staticRenderFns = []
|
|
213817
213891
|
|
|
@@ -213838,11 +213912,14 @@ var es_string_match = __webpack_require__(4723);
|
|
|
213838
213912
|
var es_number_constructor = __webpack_require__(9653);
|
|
213839
213913
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
213840
213914
|
var es_json_stringify = __webpack_require__(38862);
|
|
213841
|
-
;// 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=
|
|
213842
|
-
var
|
|
213843
|
-
var
|
|
213915
|
+
;// 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=90f26168&
|
|
213916
|
+
var HoDocvue_type_template_id_90f26168_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.currentNode && _vm.currentNode.customProperty && _vm.currentNode.signFormat )?_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)}
|
|
213917
|
+
var HoDocvue_type_template_id_90f26168_staticRenderFns = []
|
|
213844
213918
|
|
|
213845
213919
|
|
|
213920
|
+
// EXTERNAL MODULE: ./node_modules/element-ui/lib/message-box.js
|
|
213921
|
+
var message_box = __webpack_require__(86769);
|
|
213922
|
+
var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box);
|
|
213846
213923
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
213847
213924
|
var es_array_filter = __webpack_require__(57327);
|
|
213848
213925
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
@@ -215776,6 +215853,315 @@ var TableCellPoper = __webpack_require__(99083);
|
|
|
215776
215853
|
var DateTimeNode = __webpack_require__(36395);
|
|
215777
215854
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DownListNode.ts
|
|
215778
215855
|
var DownListNode = __webpack_require__(98390);
|
|
215856
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
215857
|
+
var es_promise = __webpack_require__(88674);
|
|
215858
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
|
|
215859
|
+
var es_string_trim = __webpack_require__(73210);
|
|
215860
|
+
;// CONCATENATED MODULE: ./src/editor/externalCall/ElementController.ts
|
|
215861
|
+
|
|
215862
|
+
|
|
215863
|
+
|
|
215864
|
+
|
|
215865
|
+
|
|
215866
|
+
|
|
215867
|
+
|
|
215868
|
+
|
|
215869
|
+
|
|
215870
|
+
/*
|
|
215871
|
+
* @Author: your name
|
|
215872
|
+
* @Date: 2021-07-31 09:27:53
|
|
215873
|
+
* @LastEditTime: 2022-02-21 10:32:29
|
|
215874
|
+
* @LastEditors: Please set LastEditors
|
|
215875
|
+
* @Description: In User Settings Edit
|
|
215876
|
+
* @FilePath: \hoeditor-web\src\editor\externalCall\ElementController.ts
|
|
215877
|
+
*/
|
|
215878
|
+
|
|
215879
|
+
|
|
215880
|
+
|
|
215881
|
+
var ElementController = /*#__PURE__*/function () {
|
|
215882
|
+
function ElementController(hoEditorFactoryID) {
|
|
215883
|
+
(0,classCallCheck/* default */.Z)(this, ElementController);
|
|
215884
|
+
|
|
215885
|
+
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
215886
|
+
}
|
|
215887
|
+
/**
|
|
215888
|
+
* 根据路径找节点
|
|
215889
|
+
* @param path 路径
|
|
215890
|
+
*/
|
|
215891
|
+
|
|
215892
|
+
|
|
215893
|
+
(0,createClass/* default */.Z)(ElementController, [{
|
|
215894
|
+
key: "findNodebyPath",
|
|
215895
|
+
value: function findNodebyPath(path) {
|
|
215896
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
215897
|
+
return hoEditorFactory.vueController.findNodebyPath(path);
|
|
215898
|
+
}
|
|
215899
|
+
/**
|
|
215900
|
+
* 根据节点id找节点
|
|
215901
|
+
* @param scope 查找区域 "all":所有区域 "header":页眉 "main":正文 "footer":页脚
|
|
215902
|
+
* @param id 节点id
|
|
215903
|
+
*/
|
|
215904
|
+
|
|
215905
|
+
}, {
|
|
215906
|
+
key: "getNodeByID",
|
|
215907
|
+
value: function getNodeByID(scope, id) {
|
|
215908
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
215909
|
+
return hoEditorFactory.vueController.getNodeByID(scope, id);
|
|
215910
|
+
}
|
|
215911
|
+
/**
|
|
215912
|
+
* 根据节点名称找节点
|
|
215913
|
+
* @param scope 查找区域 "all":所有区域 "header":页眉 "main":正文 "footer":页脚
|
|
215914
|
+
* @param bFindAll 是否查找所有符合的 true:返回所有符合的 false:返回第一个符合的
|
|
215915
|
+
* @param name 节点名称
|
|
215916
|
+
*/
|
|
215917
|
+
|
|
215918
|
+
}, {
|
|
215919
|
+
key: "getNodesByName",
|
|
215920
|
+
value: function getNodesByName(scope, bFindAll, name) {
|
|
215921
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
215922
|
+
return hoEditorFactory.vueController.getNodesByName(scope, bFindAll, name);
|
|
215923
|
+
}
|
|
215924
|
+
/**
|
|
215925
|
+
* 获取文本域内文本内容
|
|
215926
|
+
* @param node 文本域节点
|
|
215927
|
+
* @returns 域内文本内容
|
|
215928
|
+
*/
|
|
215929
|
+
|
|
215930
|
+
}, {
|
|
215931
|
+
key: "getTextInputFieldValue",
|
|
215932
|
+
value: function getTextInputFieldValue(node) {
|
|
215933
|
+
var text = node.getFieldText();
|
|
215934
|
+
return text;
|
|
215935
|
+
}
|
|
215936
|
+
/**
|
|
215937
|
+
* 获取单元格内文本内容
|
|
215938
|
+
* @param node 单元格节点
|
|
215939
|
+
* @returns 单元格内文本内容
|
|
215940
|
+
*/
|
|
215941
|
+
|
|
215942
|
+
}, {
|
|
215943
|
+
key: "getCellText",
|
|
215944
|
+
value: function getCellText(node) {
|
|
215945
|
+
var text = node.getCellText();
|
|
215946
|
+
return text;
|
|
215947
|
+
}
|
|
215948
|
+
/**
|
|
215949
|
+
* 更新文本域内文本
|
|
215950
|
+
* @param node 文本域节点
|
|
215951
|
+
* @param text 更新文本
|
|
215952
|
+
* @param customProperty 自定义属性
|
|
215953
|
+
*/
|
|
215954
|
+
|
|
215955
|
+
}, {
|
|
215956
|
+
key: "updateTextInputFieldValue",
|
|
215957
|
+
value: function updateTextInputFieldValue(node, text, customProperty, keyValue) {
|
|
215958
|
+
var hPromise = Promise.resolve();
|
|
215959
|
+
hPromise = hPromise.then(function (res) {
|
|
215960
|
+
return new Promise( /*#__PURE__*/function () {
|
|
215961
|
+
var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(resolve) {
|
|
215962
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
|
|
215963
|
+
while (1) {
|
|
215964
|
+
switch (_context.prev = _context.next) {
|
|
215965
|
+
case 0:
|
|
215966
|
+
_context.next = 2;
|
|
215967
|
+
return node.setFieldText(text, customProperty, keyValue);
|
|
215968
|
+
|
|
215969
|
+
case 2:
|
|
215970
|
+
resolve();
|
|
215971
|
+
|
|
215972
|
+
case 3:
|
|
215973
|
+
case "end":
|
|
215974
|
+
return _context.stop();
|
|
215975
|
+
}
|
|
215976
|
+
}
|
|
215977
|
+
}, _callee);
|
|
215978
|
+
}));
|
|
215979
|
+
|
|
215980
|
+
return function (_x) {
|
|
215981
|
+
return _ref.apply(this, arguments);
|
|
215982
|
+
};
|
|
215983
|
+
}());
|
|
215984
|
+
});
|
|
215985
|
+
}
|
|
215986
|
+
/**
|
|
215987
|
+
* 更新单元格内文本
|
|
215988
|
+
* @param node 单元格节点
|
|
215989
|
+
* @param text 更新为
|
|
215990
|
+
*/
|
|
215991
|
+
|
|
215992
|
+
}, {
|
|
215993
|
+
key: "updateCellText",
|
|
215994
|
+
value: function updateCellText(node, text) {
|
|
215995
|
+
node.setCellText(text);
|
|
215996
|
+
}
|
|
215997
|
+
/**
|
|
215998
|
+
* 更新日期时间元素文本
|
|
215999
|
+
* @param node 日期时间节点
|
|
216000
|
+
* @param text 更新为
|
|
216001
|
+
*/
|
|
216002
|
+
|
|
216003
|
+
}, {
|
|
216004
|
+
key: "updateDateTimeText",
|
|
216005
|
+
value: function updateDateTimeText(node, text) {
|
|
216006
|
+
node.setDateTimeText(text);
|
|
216007
|
+
}
|
|
216008
|
+
/**
|
|
216009
|
+
* 更新下拉列表元素文本
|
|
216010
|
+
* @param node 下拉列表节点
|
|
216011
|
+
* @param text 更新为
|
|
216012
|
+
*/
|
|
216013
|
+
|
|
216014
|
+
}, {
|
|
216015
|
+
key: "updateDownListText",
|
|
216016
|
+
value: function updateDownListText(node, text) {
|
|
216017
|
+
node.setDownListText(text);
|
|
216018
|
+
}
|
|
216019
|
+
/**
|
|
216020
|
+
* 删除元素
|
|
216021
|
+
* @param node 节点
|
|
216022
|
+
*/
|
|
216023
|
+
|
|
216024
|
+
}, {
|
|
216025
|
+
key: "deleteNode",
|
|
216026
|
+
value: function deleteNode(node) {
|
|
216027
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
216028
|
+
hoEditorFactory.vueController.deleteNode(node);
|
|
216029
|
+
}
|
|
216030
|
+
/**
|
|
216031
|
+
* 验证病历文件中所有文本域的数据格式
|
|
216032
|
+
* @param 错误列表(元素,错误信息)
|
|
216033
|
+
*/
|
|
216034
|
+
|
|
216035
|
+
}, {
|
|
216036
|
+
key: "verifyTextFieldsDataFormat",
|
|
216037
|
+
value: function verifyTextFieldsDataFormat() {
|
|
216038
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
216039
|
+
return hoEditorFactory.vueController.verifyTextFieldsDataFormat();
|
|
216040
|
+
}
|
|
216041
|
+
/**
|
|
216042
|
+
* @description 获取所有的元素:包括日期、下拉选择组件、文本域
|
|
216043
|
+
* @returns 返回获取到的所有元素
|
|
216044
|
+
*/
|
|
216045
|
+
|
|
216046
|
+
}, {
|
|
216047
|
+
key: "getAllElementNodes",
|
|
216048
|
+
value: function getAllElementNodes() {
|
|
216049
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
216050
|
+
var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
216051
|
+
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
216052
|
+
var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
|
|
216053
|
+
var ret = new Array();
|
|
216054
|
+
|
|
216055
|
+
for (var i = 0; i < headerDocTree.length; i++) {
|
|
216056
|
+
var headerNodes = headerDocTree[i].subDocNodes;
|
|
216057
|
+
var hsPath = headerNodes[0].getNodePath();
|
|
216058
|
+
var hePath = hoEditorFactory.docTree.getNodeLastPath(headerNodes[headerNodes.length - 1]);
|
|
216059
|
+
ret = ret.concat(DomRange/* DomRange.getElementNode */.a.getElementNode(this._hoEditorFactoryID, hsPath, hePath, true));
|
|
216060
|
+
}
|
|
216061
|
+
|
|
216062
|
+
var msPath = mainNodes[0].getNodePath();
|
|
216063
|
+
var mePath = hoEditorFactory.docTree.getNodeLastPath(mainNodes[mainNodes.length - 1]);
|
|
216064
|
+
ret = ret.concat(DomRange/* DomRange.getElementNode */.a.getElementNode(this._hoEditorFactoryID, msPath, mePath, true));
|
|
216065
|
+
|
|
216066
|
+
for (var _i = 0; _i < footerDocTree.length; _i++) {
|
|
216067
|
+
var footerNodes = footerDocTree[_i].subDocNodes;
|
|
216068
|
+
var fsPath = footerNodes[0].getNodePath();
|
|
216069
|
+
var fePath = hoEditorFactory.docTree.getNodeLastPath(footerNodes[footerNodes.length - 1]);
|
|
216070
|
+
ret = ret.concat(DomRange/* DomRange.getElementNode */.a.getElementNode(this._hoEditorFactoryID, fsPath, fePath, true));
|
|
216071
|
+
}
|
|
216072
|
+
|
|
216073
|
+
return ret;
|
|
216074
|
+
}
|
|
216075
|
+
/**
|
|
216076
|
+
* 插入签名
|
|
216077
|
+
* @param type 1图片 2字符串
|
|
216078
|
+
* @param name 签名名称
|
|
216079
|
+
* @param signor 签名人
|
|
216080
|
+
* @param signTime 签名时间
|
|
216081
|
+
* @param imgSrc type=1:图片路径或者base64,type=2:字符串
|
|
216082
|
+
* @param imgWidth 图片宽
|
|
216083
|
+
* @param imgHeight 图片高
|
|
216084
|
+
* @param customProperty 自定义参数
|
|
216085
|
+
*/
|
|
216086
|
+
|
|
216087
|
+
}, {
|
|
216088
|
+
key: "insertSignNode",
|
|
216089
|
+
value: function insertSignNode(type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc) {
|
|
216090
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
216091
|
+
hoEditorFactory.vueController.insertSignNode(type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc);
|
|
216092
|
+
}
|
|
216093
|
+
/**
|
|
216094
|
+
* 更新签名
|
|
216095
|
+
* @param node 签名节点
|
|
216096
|
+
* @param type 1图片 2字符串
|
|
216097
|
+
* @param name 签名名称
|
|
216098
|
+
* @param signor 签名人
|
|
216099
|
+
* @param signTime 签名时间
|
|
216100
|
+
* @param imgSrc type=1:图片路径或者base64,type=2:字符串
|
|
216101
|
+
* @param imgWidth 图片宽
|
|
216102
|
+
* @param imgHeight 图片高
|
|
216103
|
+
* @param customProperty 自定义参数
|
|
216104
|
+
*/
|
|
216105
|
+
|
|
216106
|
+
}, {
|
|
216107
|
+
key: "updateSignNode",
|
|
216108
|
+
value: function updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc) {
|
|
216109
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
216110
|
+
hoEditorFactory.vueController.updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc);
|
|
216111
|
+
}
|
|
216112
|
+
/**
|
|
216113
|
+
* 强制删除
|
|
216114
|
+
*/
|
|
216115
|
+
|
|
216116
|
+
}, {
|
|
216117
|
+
key: "forceDelete",
|
|
216118
|
+
value: function forceDelete() {
|
|
216119
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
216120
|
+
hoEditorFactory.vueController.forceDelete();
|
|
216121
|
+
}
|
|
216122
|
+
/**
|
|
216123
|
+
* @param node 单复选节点
|
|
216124
|
+
* @param additionalInfo 附加说明
|
|
216125
|
+
*/
|
|
216126
|
+
|
|
216127
|
+
}, {
|
|
216128
|
+
key: "editRadioCheckBoxText",
|
|
216129
|
+
value: function editRadioCheckBoxText(node, appendText) {
|
|
216130
|
+
if (!node || !(node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) || !node.isEditText || appendText.trim().length === 0) return;
|
|
216131
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
216132
|
+
hoEditorFactory.vueController.editRadioCheckBoxText(node, appendText);
|
|
216133
|
+
}
|
|
216134
|
+
/**
|
|
216135
|
+
* 获取当前病历中的所有元素
|
|
216136
|
+
* @returns 返回元素是{id,name,text,json}的数据
|
|
216137
|
+
*/
|
|
216138
|
+
|
|
216139
|
+
}, {
|
|
216140
|
+
key: "getAllElements",
|
|
216141
|
+
value: function getAllElements() {
|
|
216142
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
216143
|
+
hoEditorFactory.vueController.getAllElements();
|
|
216144
|
+
}
|
|
216145
|
+
/**
|
|
216146
|
+
* 根据元素id更新元素
|
|
216147
|
+
*/
|
|
216148
|
+
|
|
216149
|
+
}, {
|
|
216150
|
+
key: "updateElementById",
|
|
216151
|
+
value: function updateElementById(id, eleJson) {
|
|
216152
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
216153
|
+
hoEditorFactory.vueController.updateElementById(id, eleJson);
|
|
216154
|
+
}
|
|
216155
|
+
}, {
|
|
216156
|
+
key: "moveCaretToElement",
|
|
216157
|
+
value: function moveCaretToElement(scope, id) {
|
|
216158
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
216159
|
+
hoEditorFactory.vueController.moveCaretToElement(scope, id);
|
|
216160
|
+
}
|
|
216161
|
+
}]);
|
|
216162
|
+
|
|
216163
|
+
return ElementController;
|
|
216164
|
+
}();
|
|
215779
216165
|
;// CONCATENATED MODULE: ./node_modules/intersection-observer-polyfill/src/shims/es6-collections.js
|
|
215780
216166
|
/**
|
|
215781
216167
|
* Simple shims for WeakMap and Map classes.
|
|
@@ -217166,7 +217552,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
217166
217552
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
217167
217553
|
var ParagraphNode = __webpack_require__(14208);
|
|
217168
217554
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
217169
|
-
/* harmony default export */ var version = ('2.0.
|
|
217555
|
+
/* harmony default export */ var version = ('2.0.88');
|
|
217170
217556
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
217171
217557
|
var PoperTipText = __webpack_require__(91831);
|
|
217172
217558
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -217188,6 +217574,10 @@ var ImageNode = __webpack_require__(88389);
|
|
|
217188
217574
|
|
|
217189
217575
|
|
|
217190
217576
|
|
|
217577
|
+
|
|
217578
|
+
|
|
217579
|
+
|
|
217580
|
+
//
|
|
217191
217581
|
//
|
|
217192
217582
|
//
|
|
217193
217583
|
//
|
|
@@ -217276,6 +217666,7 @@ var ImageNode = __webpack_require__(88389);
|
|
|
217276
217666
|
|
|
217277
217667
|
|
|
217278
217668
|
|
|
217669
|
+
|
|
217279
217670
|
|
|
217280
217671
|
|
|
217281
217672
|
/* harmony default export */ var HoDocvue_type_script_lang_js_ = ({
|
|
@@ -217323,6 +217714,9 @@ var ImageNode = __webpack_require__(88389);
|
|
|
217323
217714
|
},
|
|
217324
217715
|
data: function data() {
|
|
217325
217716
|
return {
|
|
217717
|
+
eleNode: null,
|
|
217718
|
+
// 右键返回信息
|
|
217719
|
+
currentNode: null,
|
|
217326
217720
|
dateFormat: util/* dateFormat */.vc,
|
|
217327
217721
|
canvasParams: {
|
|
217328
217722
|
width: Math.floor(793 * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY) % 2 === 1 ? Math.floor(793 * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY) + 1 : Math.floor(793 * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY),
|
|
@@ -217434,7 +217828,7 @@ var ImageNode = __webpack_require__(88389);
|
|
|
217434
217828
|
hoEditorFactory.nodeMouseMove.isUseTipText = this.isUseTipText;
|
|
217435
217829
|
}
|
|
217436
217830
|
},
|
|
217437
|
-
inject: ['setRightClickNodeValue', 'setDblclickNodeValue', 'setUpdateNodeValue'],
|
|
217831
|
+
inject: ['setRightClickNodeValue', 'setDblclickNodeValue', 'setUpdateNodeValue', "getRightClickNodeValue"],
|
|
217438
217832
|
created: function created() {
|
|
217439
217833
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
217440
217834
|
hoEditorFactory.hoEditorFactoryIndex = this.docIndex;
|
|
@@ -217480,6 +217874,25 @@ var ImageNode = __webpack_require__(88389);
|
|
|
217480
217874
|
hoEditorFactory.drawTree.caret.aiInfo = this.aiInfo;
|
|
217481
217875
|
},
|
|
217482
217876
|
methods: {
|
|
217877
|
+
deleteSignNode: function deleteSignNode() {
|
|
217878
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
217879
|
+
var signUserId = this.currentNode.customProperty.bce01 || '';
|
|
217880
|
+
|
|
217881
|
+
if (hoEditorFactory.userInfo.id != signUserId) {
|
|
217882
|
+
message_box_default().alert("不是本人签名,不允许删除!");
|
|
217883
|
+
|
|
217884
|
+
this.eleNode = null;
|
|
217885
|
+
this.currentNode = null;
|
|
217886
|
+
this.isCreateRightMenuModal = false;
|
|
217887
|
+
return;
|
|
217888
|
+
} // hoEditorFactory.elementController.deleteNode(this.eleNode.node());
|
|
217889
|
+
|
|
217890
|
+
|
|
217891
|
+
hoEditorFactory.vueController.forceDelete();
|
|
217892
|
+
this.eleNode = null;
|
|
217893
|
+
this.currentNode = null;
|
|
217894
|
+
this.isCreateRightMenuModal = false;
|
|
217895
|
+
},
|
|
217483
217896
|
beforeDestroy: function beforeDestroy() {
|
|
217484
217897
|
var _this$viewableAreaObs,
|
|
217485
217898
|
_this2 = this;
|
|
@@ -217822,10 +218235,20 @@ var ImageNode = __webpack_require__(88389);
|
|
|
217822
218235
|
var _hoEditorFactory$vueC2;
|
|
217823
218236
|
|
|
217824
218237
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
218238
|
+
var path = hoEditorFactory.vueController.getCaretPosition();
|
|
218239
|
+
var node = (_hoEditorFactory$vueC2 = hoEditorFactory.vueController.findNodebyPath(path)) === null || _hoEditorFactory$vueC2 === void 0 ? void 0 : _hoEditorFactory$vueC2.node;
|
|
218240
|
+
this.setRightClickNodeValue(node);
|
|
218241
|
+
this.eleNode = this.getRightClickNodeValue();
|
|
218242
|
+
this.currentNode = node;
|
|
217825
218243
|
var rightPosition = {
|
|
217826
218244
|
clientX: e.clientX || e.pageX,
|
|
217827
218245
|
clientY: e.clientY || e.pageY
|
|
217828
|
-
};
|
|
218246
|
+
}; // psDesign, // 设计状态
|
|
218247
|
+
// psEdit, // 编辑状态
|
|
218248
|
+
// psPreview, // 打印预览
|
|
218249
|
+
// psPrint, // 打印
|
|
218250
|
+
// psReview, // 审阅
|
|
218251
|
+
// psReadOnly, // 预览
|
|
217829
218252
|
|
|
217830
218253
|
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psDesign */.Dh.psDesign && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psEdit */.Dh.psEdit) {
|
|
217831
218254
|
var _hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
@@ -217842,8 +218265,6 @@ var ImageNode = __webpack_require__(88389);
|
|
|
217842
218265
|
}
|
|
217843
218266
|
|
|
217844
218267
|
var startPos = hoEditorFactory.drawTree.selectRange.spStart;
|
|
217845
|
-
var path = hoEditorFactory.vueController.getCaretPosition();
|
|
217846
|
-
var node = (_hoEditorFactory$vueC2 = hoEditorFactory.vueController.findNodebyPath(path)) === null || _hoEditorFactory$vueC2 === void 0 ? void 0 : _hoEditorFactory$vueC2.node;
|
|
217847
218268
|
|
|
217848
218269
|
if (startPos) {
|
|
217849
218270
|
var _hoEditorFactory$docT;
|
|
@@ -217911,8 +218332,8 @@ var ImageNode = __webpack_require__(88389);
|
|
|
217911
218332
|
|
|
217912
218333
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
217913
218334
|
components_HoDocvue_type_script_lang_js_,
|
|
217914
|
-
|
|
217915
|
-
|
|
218335
|
+
HoDocvue_type_template_id_90f26168_render,
|
|
218336
|
+
HoDocvue_type_template_id_90f26168_staticRenderFns,
|
|
217916
218337
|
false,
|
|
217917
218338
|
null,
|
|
217918
218339
|
null,
|
|
@@ -218472,7 +218893,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218472
218893
|
drawTop = 0;
|
|
218473
218894
|
}
|
|
218474
218895
|
|
|
218475
|
-
this.update(mainArea, dMainRoots, drawTop, mainIndex, mainIndex);
|
|
218896
|
+
this.update(mainArea, dMainRoots, drawTop, mainIndex, mainIndex, true);
|
|
218476
218897
|
} finally {
|
|
218477
218898
|
// const iendDraw= hoEditorFactory.drawTree.inViewPages[hoEditorFactory.drawTree.inViewPages.length-1];
|
|
218478
218899
|
// const istartDraw=hoEditorFactory.drawTree.inViewPages[0];
|
|
@@ -218720,7 +219141,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218720
219141
|
}, {
|
|
218721
219142
|
key: "update",
|
|
218722
219143
|
value: function update(drawArea, dRoots, // startDline: DrawLine | DrawPageTable,
|
|
218723
|
-
dTop, startLine, endLine) {
|
|
219144
|
+
dTop, startLine, endLine, callFromPaint) {
|
|
218724
219145
|
var _this2 = this;
|
|
218725
219146
|
|
|
218726
219147
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -218874,9 +219295,12 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218874
219295
|
// this._endNeedUpdatePage = -1;
|
|
218875
219296
|
|
|
218876
219297
|
|
|
218877
|
-
|
|
218878
|
-
|
|
218879
|
-
|
|
219298
|
+
if (!callFromPaint) {
|
|
219299
|
+
hoEditorFactory.drawTree.inViewPages.forEach(function (i) {
|
|
219300
|
+
_this2.updateDrawPage(i);
|
|
219301
|
+
});
|
|
219302
|
+
} // }
|
|
219303
|
+
|
|
218880
219304
|
} // if (hoEditorFactory.drawTree.paintStatus === PaintState.psReview) {
|
|
218881
219305
|
// drawArea.drawComments();
|
|
218882
219306
|
// }
|
|
@@ -219553,17 +219977,12 @@ var GenerateCode = /*#__PURE__*/function () {
|
|
|
219553
219977
|
|
|
219554
219978
|
return GenerateCode;
|
|
219555
219979
|
}();
|
|
219556
|
-
// EXTERNAL MODULE: ./node_modules/element-ui/lib/message-box.js
|
|
219557
|
-
var message_box = __webpack_require__(86769);
|
|
219558
|
-
var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box);
|
|
219559
219980
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
|
|
219560
219981
|
var es_string_ends_with = __webpack_require__(27852);
|
|
219561
219982
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
219562
219983
|
var es_object_assign = __webpack_require__(19601);
|
|
219563
219984
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
219564
219985
|
var es_number_to_fixed = __webpack_require__(56977);
|
|
219565
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
|
|
219566
|
-
var es_string_trim = __webpack_require__(73210);
|
|
219567
219986
|
// EXTERNAL MODULE: ./node_modules/jquery/dist/jquery.js
|
|
219568
219987
|
var jquery = __webpack_require__(19755);
|
|
219569
219988
|
var jquery_default = /*#__PURE__*/__webpack_require__.n(jquery);
|
|
@@ -220369,8 +220788,6 @@ var es_regexp_constructor = __webpack_require__(24603);
|
|
|
220369
220788
|
var es_regexp_dot_all = __webpack_require__(28450);
|
|
220370
220789
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.sticky.js
|
|
220371
220790
|
var es_regexp_sticky = __webpack_require__(88386);
|
|
220372
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
220373
|
-
var es_promise = __webpack_require__(88674);
|
|
220374
220791
|
// EXTERNAL MODULE: ./node_modules/x2js/x2js.js
|
|
220375
220792
|
var x2js_x2js = __webpack_require__(27098);
|
|
220376
220793
|
var x2js_default = /*#__PURE__*/__webpack_require__.n(x2js_x2js);
|
|
@@ -231806,7 +232223,7 @@ var EditController = /*#__PURE__*/function () {
|
|
|
231806
232223
|
var style = hoeditorfactory.docTree.styles[node.styleIndex];
|
|
231807
232224
|
|
|
231808
232225
|
if (style.combineStyle.script != 0) {
|
|
231809
|
-
var newStyle =
|
|
232226
|
+
var newStyle = hoeditorfactory.docTree.styles[hoeditorfactory.docTree.curStyleIndex].clone();
|
|
231810
232227
|
newStyle.script = style.combineStyle.script;
|
|
231811
232228
|
var newStyleIndex = hoeditorfactory.docTree.styleCompare(newStyle);
|
|
231812
232229
|
node.styleIndex = newStyleIndex;
|
|
@@ -231870,311 +232287,6 @@ var EditController = /*#__PURE__*/function () {
|
|
|
231870
232287
|
|
|
231871
232288
|
return EditController;
|
|
231872
232289
|
}();
|
|
231873
|
-
;// CONCATENATED MODULE: ./src/editor/externalCall/ElementController.ts
|
|
231874
|
-
|
|
231875
|
-
|
|
231876
|
-
|
|
231877
|
-
|
|
231878
|
-
|
|
231879
|
-
|
|
231880
|
-
|
|
231881
|
-
|
|
231882
|
-
|
|
231883
|
-
/*
|
|
231884
|
-
* @Author: your name
|
|
231885
|
-
* @Date: 2021-07-31 09:27:53
|
|
231886
|
-
* @LastEditTime: 2022-02-21 10:32:29
|
|
231887
|
-
* @LastEditors: Please set LastEditors
|
|
231888
|
-
* @Description: In User Settings Edit
|
|
231889
|
-
* @FilePath: \hoeditor-web\src\editor\externalCall\ElementController.ts
|
|
231890
|
-
*/
|
|
231891
|
-
|
|
231892
|
-
|
|
231893
|
-
|
|
231894
|
-
var ElementController = /*#__PURE__*/function () {
|
|
231895
|
-
function ElementController(hoEditorFactoryID) {
|
|
231896
|
-
(0,classCallCheck/* default */.Z)(this, ElementController);
|
|
231897
|
-
|
|
231898
|
-
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
231899
|
-
}
|
|
231900
|
-
/**
|
|
231901
|
-
* 根据路径找节点
|
|
231902
|
-
* @param path 路径
|
|
231903
|
-
*/
|
|
231904
|
-
|
|
231905
|
-
|
|
231906
|
-
(0,createClass/* default */.Z)(ElementController, [{
|
|
231907
|
-
key: "findNodebyPath",
|
|
231908
|
-
value: function findNodebyPath(path) {
|
|
231909
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
231910
|
-
return hoEditorFactory.vueController.findNodebyPath(path);
|
|
231911
|
-
}
|
|
231912
|
-
/**
|
|
231913
|
-
* 根据节点id找节点
|
|
231914
|
-
* @param scope 查找区域 "all":所有区域 "header":页眉 "main":正文 "footer":页脚
|
|
231915
|
-
* @param id 节点id
|
|
231916
|
-
*/
|
|
231917
|
-
|
|
231918
|
-
}, {
|
|
231919
|
-
key: "getNodeByID",
|
|
231920
|
-
value: function getNodeByID(scope, id) {
|
|
231921
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
231922
|
-
return hoEditorFactory.vueController.getNodeByID(scope, id);
|
|
231923
|
-
}
|
|
231924
|
-
/**
|
|
231925
|
-
* 根据节点名称找节点
|
|
231926
|
-
* @param scope 查找区域 "all":所有区域 "header":页眉 "main":正文 "footer":页脚
|
|
231927
|
-
* @param bFindAll 是否查找所有符合的 true:返回所有符合的 false:返回第一个符合的
|
|
231928
|
-
* @param name 节点名称
|
|
231929
|
-
*/
|
|
231930
|
-
|
|
231931
|
-
}, {
|
|
231932
|
-
key: "getNodesByName",
|
|
231933
|
-
value: function getNodesByName(scope, bFindAll, name) {
|
|
231934
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
231935
|
-
return hoEditorFactory.vueController.getNodesByName(scope, bFindAll, name);
|
|
231936
|
-
}
|
|
231937
|
-
/**
|
|
231938
|
-
* 获取文本域内文本内容
|
|
231939
|
-
* @param node 文本域节点
|
|
231940
|
-
* @returns 域内文本内容
|
|
231941
|
-
*/
|
|
231942
|
-
|
|
231943
|
-
}, {
|
|
231944
|
-
key: "getTextInputFieldValue",
|
|
231945
|
-
value: function getTextInputFieldValue(node) {
|
|
231946
|
-
var text = node.getFieldText();
|
|
231947
|
-
return text;
|
|
231948
|
-
}
|
|
231949
|
-
/**
|
|
231950
|
-
* 获取单元格内文本内容
|
|
231951
|
-
* @param node 单元格节点
|
|
231952
|
-
* @returns 单元格内文本内容
|
|
231953
|
-
*/
|
|
231954
|
-
|
|
231955
|
-
}, {
|
|
231956
|
-
key: "getCellText",
|
|
231957
|
-
value: function getCellText(node) {
|
|
231958
|
-
var text = node.getCellText();
|
|
231959
|
-
return text;
|
|
231960
|
-
}
|
|
231961
|
-
/**
|
|
231962
|
-
* 更新文本域内文本
|
|
231963
|
-
* @param node 文本域节点
|
|
231964
|
-
* @param text 更新文本
|
|
231965
|
-
* @param customProperty 自定义属性
|
|
231966
|
-
*/
|
|
231967
|
-
|
|
231968
|
-
}, {
|
|
231969
|
-
key: "updateTextInputFieldValue",
|
|
231970
|
-
value: function updateTextInputFieldValue(node, text, customProperty, keyValue) {
|
|
231971
|
-
var hPromise = Promise.resolve();
|
|
231972
|
-
hPromise = hPromise.then(function (res) {
|
|
231973
|
-
return new Promise( /*#__PURE__*/function () {
|
|
231974
|
-
var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(resolve) {
|
|
231975
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
|
|
231976
|
-
while (1) {
|
|
231977
|
-
switch (_context.prev = _context.next) {
|
|
231978
|
-
case 0:
|
|
231979
|
-
_context.next = 2;
|
|
231980
|
-
return node.setFieldText(text, customProperty, keyValue);
|
|
231981
|
-
|
|
231982
|
-
case 2:
|
|
231983
|
-
resolve();
|
|
231984
|
-
|
|
231985
|
-
case 3:
|
|
231986
|
-
case "end":
|
|
231987
|
-
return _context.stop();
|
|
231988
|
-
}
|
|
231989
|
-
}
|
|
231990
|
-
}, _callee);
|
|
231991
|
-
}));
|
|
231992
|
-
|
|
231993
|
-
return function (_x) {
|
|
231994
|
-
return _ref.apply(this, arguments);
|
|
231995
|
-
};
|
|
231996
|
-
}());
|
|
231997
|
-
});
|
|
231998
|
-
}
|
|
231999
|
-
/**
|
|
232000
|
-
* 更新单元格内文本
|
|
232001
|
-
* @param node 单元格节点
|
|
232002
|
-
* @param text 更新为
|
|
232003
|
-
*/
|
|
232004
|
-
|
|
232005
|
-
}, {
|
|
232006
|
-
key: "updateCellText",
|
|
232007
|
-
value: function updateCellText(node, text) {
|
|
232008
|
-
node.setCellText(text);
|
|
232009
|
-
}
|
|
232010
|
-
/**
|
|
232011
|
-
* 更新日期时间元素文本
|
|
232012
|
-
* @param node 日期时间节点
|
|
232013
|
-
* @param text 更新为
|
|
232014
|
-
*/
|
|
232015
|
-
|
|
232016
|
-
}, {
|
|
232017
|
-
key: "updateDateTimeText",
|
|
232018
|
-
value: function updateDateTimeText(node, text) {
|
|
232019
|
-
node.setDateTimeText(text);
|
|
232020
|
-
}
|
|
232021
|
-
/**
|
|
232022
|
-
* 更新下拉列表元素文本
|
|
232023
|
-
* @param node 下拉列表节点
|
|
232024
|
-
* @param text 更新为
|
|
232025
|
-
*/
|
|
232026
|
-
|
|
232027
|
-
}, {
|
|
232028
|
-
key: "updateDownListText",
|
|
232029
|
-
value: function updateDownListText(node, text) {
|
|
232030
|
-
node.setDownListText(text);
|
|
232031
|
-
}
|
|
232032
|
-
/**
|
|
232033
|
-
* 删除元素
|
|
232034
|
-
* @param node 节点
|
|
232035
|
-
*/
|
|
232036
|
-
|
|
232037
|
-
}, {
|
|
232038
|
-
key: "deleteNode",
|
|
232039
|
-
value: function deleteNode(node) {
|
|
232040
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232041
|
-
hoEditorFactory.vueController.deleteNode(node);
|
|
232042
|
-
}
|
|
232043
|
-
/**
|
|
232044
|
-
* 验证病历文件中所有文本域的数据格式
|
|
232045
|
-
* @param 错误列表(元素,错误信息)
|
|
232046
|
-
*/
|
|
232047
|
-
|
|
232048
|
-
}, {
|
|
232049
|
-
key: "verifyTextFieldsDataFormat",
|
|
232050
|
-
value: function verifyTextFieldsDataFormat() {
|
|
232051
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232052
|
-
return hoEditorFactory.vueController.verifyTextFieldsDataFormat();
|
|
232053
|
-
}
|
|
232054
|
-
/**
|
|
232055
|
-
* @description 获取所有的元素:包括日期、下拉选择组件、文本域
|
|
232056
|
-
* @returns 返回获取到的所有元素
|
|
232057
|
-
*/
|
|
232058
|
-
|
|
232059
|
-
}, {
|
|
232060
|
-
key: "getAllElementNodes",
|
|
232061
|
-
value: function getAllElementNodes() {
|
|
232062
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232063
|
-
var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
232064
|
-
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
232065
|
-
var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
|
|
232066
|
-
var ret = new Array();
|
|
232067
|
-
|
|
232068
|
-
for (var i = 0; i < headerDocTree.length; i++) {
|
|
232069
|
-
var headerNodes = headerDocTree[i].subDocNodes;
|
|
232070
|
-
var hsPath = headerNodes[0].getNodePath();
|
|
232071
|
-
var hePath = hoEditorFactory.docTree.getNodeLastPath(headerNodes[headerNodes.length - 1]);
|
|
232072
|
-
ret = ret.concat(DomRange/* DomRange.getElementNode */.a.getElementNode(this._hoEditorFactoryID, hsPath, hePath, true));
|
|
232073
|
-
}
|
|
232074
|
-
|
|
232075
|
-
var msPath = mainNodes[0].getNodePath();
|
|
232076
|
-
var mePath = hoEditorFactory.docTree.getNodeLastPath(mainNodes[mainNodes.length - 1]);
|
|
232077
|
-
ret = ret.concat(DomRange/* DomRange.getElementNode */.a.getElementNode(this._hoEditorFactoryID, msPath, mePath, true));
|
|
232078
|
-
|
|
232079
|
-
for (var _i = 0; _i < footerDocTree.length; _i++) {
|
|
232080
|
-
var footerNodes = footerDocTree[_i].subDocNodes;
|
|
232081
|
-
var fsPath = footerNodes[0].getNodePath();
|
|
232082
|
-
var fePath = hoEditorFactory.docTree.getNodeLastPath(footerNodes[footerNodes.length - 1]);
|
|
232083
|
-
ret = ret.concat(DomRange/* DomRange.getElementNode */.a.getElementNode(this._hoEditorFactoryID, fsPath, fePath, true));
|
|
232084
|
-
}
|
|
232085
|
-
|
|
232086
|
-
return ret;
|
|
232087
|
-
}
|
|
232088
|
-
/**
|
|
232089
|
-
* 插入签名
|
|
232090
|
-
* @param type 1图片 2字符串
|
|
232091
|
-
* @param name 签名名称
|
|
232092
|
-
* @param signor 签名人
|
|
232093
|
-
* @param signTime 签名时间
|
|
232094
|
-
* @param imgSrc type=1:图片路径或者base64,type=2:字符串
|
|
232095
|
-
* @param imgWidth 图片宽
|
|
232096
|
-
* @param imgHeight 图片高
|
|
232097
|
-
* @param customProperty 自定义参数
|
|
232098
|
-
*/
|
|
232099
|
-
|
|
232100
|
-
}, {
|
|
232101
|
-
key: "insertSignNode",
|
|
232102
|
-
value: function insertSignNode(type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc) {
|
|
232103
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232104
|
-
hoEditorFactory.vueController.insertSignNode(type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc);
|
|
232105
|
-
}
|
|
232106
|
-
/**
|
|
232107
|
-
* 更新签名
|
|
232108
|
-
* @param node 签名节点
|
|
232109
|
-
* @param type 1图片 2字符串
|
|
232110
|
-
* @param name 签名名称
|
|
232111
|
-
* @param signor 签名人
|
|
232112
|
-
* @param signTime 签名时间
|
|
232113
|
-
* @param imgSrc type=1:图片路径或者base64,type=2:字符串
|
|
232114
|
-
* @param imgWidth 图片宽
|
|
232115
|
-
* @param imgHeight 图片高
|
|
232116
|
-
* @param customProperty 自定义参数
|
|
232117
|
-
*/
|
|
232118
|
-
|
|
232119
|
-
}, {
|
|
232120
|
-
key: "updateSignNode",
|
|
232121
|
-
value: function updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc) {
|
|
232122
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232123
|
-
hoEditorFactory.vueController.updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc);
|
|
232124
|
-
}
|
|
232125
|
-
/**
|
|
232126
|
-
* 强制删除
|
|
232127
|
-
*/
|
|
232128
|
-
|
|
232129
|
-
}, {
|
|
232130
|
-
key: "forceDelete",
|
|
232131
|
-
value: function forceDelete() {
|
|
232132
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232133
|
-
hoEditorFactory.vueController.forceDelete();
|
|
232134
|
-
}
|
|
232135
|
-
/**
|
|
232136
|
-
* @param node 单复选节点
|
|
232137
|
-
* @param additionalInfo 附加说明
|
|
232138
|
-
*/
|
|
232139
|
-
|
|
232140
|
-
}, {
|
|
232141
|
-
key: "editRadioCheckBoxText",
|
|
232142
|
-
value: function editRadioCheckBoxText(node, appendText) {
|
|
232143
|
-
if (!node || !(node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) || !node.isEditText || appendText.trim().length === 0) return;
|
|
232144
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232145
|
-
hoEditorFactory.vueController.editRadioCheckBoxText(node, appendText);
|
|
232146
|
-
}
|
|
232147
|
-
/**
|
|
232148
|
-
* 获取当前病历中的所有元素
|
|
232149
|
-
* @returns 返回元素是{id,name,text,json}的数据
|
|
232150
|
-
*/
|
|
232151
|
-
|
|
232152
|
-
}, {
|
|
232153
|
-
key: "getAllElements",
|
|
232154
|
-
value: function getAllElements() {
|
|
232155
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232156
|
-
hoEditorFactory.vueController.getAllElements();
|
|
232157
|
-
}
|
|
232158
|
-
/**
|
|
232159
|
-
* 根据元素id更新元素
|
|
232160
|
-
*/
|
|
232161
|
-
|
|
232162
|
-
}, {
|
|
232163
|
-
key: "updateElementById",
|
|
232164
|
-
value: function updateElementById(id, eleJson) {
|
|
232165
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232166
|
-
hoEditorFactory.vueController.updateElementById(id, eleJson);
|
|
232167
|
-
}
|
|
232168
|
-
}, {
|
|
232169
|
-
key: "moveCaretToElement",
|
|
232170
|
-
value: function moveCaretToElement(scope, id) {
|
|
232171
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232172
|
-
hoEditorFactory.vueController.moveCaretToElement(scope, id);
|
|
232173
|
-
}
|
|
232174
|
-
}]);
|
|
232175
|
-
|
|
232176
|
-
return ElementController;
|
|
232177
|
-
}();
|
|
232178
232290
|
;// CONCATENATED MODULE: ./src/editor/externalCall/NodeController.ts
|
|
232179
232291
|
|
|
232180
232292
|
|
|
@@ -241645,9 +241757,9 @@ var ToolControlvue_type_template_id_a55c0f5a_render = function () {var _vm=this;
|
|
|
241645
241757
|
var ToolControlvue_type_template_id_a55c0f5a_staticRenderFns = []
|
|
241646
241758
|
|
|
241647
241759
|
|
|
241648
|
-
;// 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/HoSpecialChars.vue?vue&type=template&id=
|
|
241649
|
-
var
|
|
241650
|
-
var
|
|
241760
|
+
;// 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/HoSpecialChars.vue?vue&type=template&id=463b09d0&scoped=true&
|
|
241761
|
+
var HoSpecialCharsvue_type_template_id_463b09d0_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dropdown',{class:_vm.dropdownClassName,attrs:{"trigger":"click","placement":"bottom-start","popper-append-to-body":"","tabindex":-1},on:{"visible-change":_vm.dropdownChange}},[_c('span',{staticClass:"el-dropdown-link"},[_c('svg',{staticStyle:{"transform":"translateY(0px)"},attrs:{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('path',{attrs:{"d":"M825.163595 883.651765H416.226184v-10.842353c62.162824-39.996235 99.629176-117.157647 99.629176-211.727059 0-32.768-4.999529-64.813176-12.047059-95.232H727.642654a18.432 18.432 0 0 0 18.130824-18.672941V477.605647a18.432 18.432 0 0 0-18.130824-18.612706h-254.192941c-16.263529-52.525176-30.358588-106.194824-30.358588-163.84 0-101.074824 77.101176-163.117176 198.053647-163.117176 48.790588 0 96.496941 9.517176 137.095529 24.395294 11.806118 4.457412 24.094118-4.638118 24.094118-17.648941V46.983529a18.853647 18.853647 0 0 0-11.866353-17.468235A448.752941 448.752941 0 0 0 630.904772 0c-210.823529 0-343.762824 103.424-343.762824 279.491765 0 61.138824 15.661176 120.892235 33.129412 179.2H198.776772A18.432 18.432 0 0 0 180.706184 477.304471V546.936471c0 10.24 8.192 18.612706 18.130823 18.612705H351.172066c7.710118 34.153412 13.372235 68.306824 13.372235 102.701177 0 105.050353-65.355294 193.536-165.165176 218.895059a18.552471 18.552471 0 0 0-13.854118 18.070588v89.509647c0 10.24 8.192 18.612706 18.130824 18.612706H825.223831a18.432 18.432 0 0 0 18.130823-18.672941V902.324706a18.432 18.432 0 0 0-18.130823-18.672941z"}})]),_c('span',[_vm._v("特殊字符")]),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{staticClass:"special-characters",attrs:{"disabled":""}},[_c('section',[_c('ul',[_c('li',[_c('header',[_vm._v("特殊字符")]),_c('p',{staticClass:"chars-list special-chars-list"},_vm._l((_vm.specialChars),function(chars){return _c('span',{key:chars,on:{"click":function($event){return _vm.specialCharsClick(chars)}}},[_vm._v(_vm._s(chars))])}),0)]),_c('li',[_c('header',[_vm._v("罗马字符")]),_c('p',{staticClass:"chars-list"},_vm._l((_vm.romanChars),function(chars){return _c('span',{key:chars,on:{"click":function($event){return _vm.specialCharsClick(chars)}}},[_vm._v(_vm._s(chars))])}),0)]),_c('li',[_c('header',[_vm._v("数学字符")]),_c('p',{staticClass:"chars-list"},_vm._l((_vm.mathChars),function(chars){return _c('span',{key:chars,on:{"click":function($event){return _vm.specialCharsClick(chars)}}},[_vm._v(_vm._s(chars))])}),0)])])])])],1)],1)}
|
|
241762
|
+
var HoSpecialCharsvue_type_template_id_463b09d0_scoped_true_staticRenderFns = []
|
|
241651
241763
|
|
|
241652
241764
|
|
|
241653
241765
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoSpecialChars.vue?vue&type=script&lang=js&
|
|
@@ -241714,7 +241826,7 @@ var HoSpecialCharsvue_type_template_id_146e538d_scoped_true_staticRenderFns = []
|
|
|
241714
241826
|
arrChars: ['㎎', '㎏', '㎜', '㎝', '㎞', '㎡', '㏄', '㏎', '㏑', '㏒', '㏕', '℡'],
|
|
241715
241827
|
specialChars: ['、', '。', '·', 'ˉ', 'ˇ', '¨', '〃', '々', '—', '~', '‖', '…', '‘', '’', '“', '”', '〔', '〕', '〈', '〉', '《', '》', '「', '」', '『', '』', '±', '×', '÷', '∶', '∧', '∨', '∑', '∏', '∪', '∩', '∈', 'α', 'β', 'γ', '∷', '√', '⊥', '∥', '∠', '⌒', '⊙', '∫', '∮', '≡', '≌', '≈', '∽', '∝', '≠', '≮', '≯', '≤', '≥', '∞', '∵', '∴', '♂', '♀', '°', '′', '″', '℃', '$', '¤', '¢', '£', '‰', '§', '№', '※', '→', '←', '↑', '↓', '㎎', '㎏', '㎜', '㎝', '㎞', '㎡', '㏄', '㏎', '㏑', '㏒', '㏕', '℡', '▽', '△', '▷', '◁', '/', '∕'],
|
|
241716
241828
|
romanChars: ['ⅰ', 'ⅱ', 'ⅲ', 'ⅳ', 'ⅴ', 'ⅵ', 'ⅶ', 'ⅷ', 'ⅸ', 'ⅹ', 'Ⅰ', 'Ⅱ', 'Ⅲ', 'Ⅳ', 'Ⅴ', 'Ⅵ', 'Ⅶ', 'Ⅷ', 'Ⅸ', 'Ⅹ', 'Ⅺ', 'Ⅻ'],
|
|
241717
|
-
|
|
241829
|
+
usedChars: [],
|
|
241718
241830
|
mathChars: ['⒈', '⒉', '⒊', '⒋', '⒌', '⒍', '⒎', '⒏', '⒐', '⒑', '⒒', '⒓', '⒔', '⒕', '⒖', '⒗', '⒘', '⒙', '⒚', '⒛', '⑴', '⑵', '⑶', '⑷', '⑸', '⑹', '⑺', '⑻', '⑼', '⑽', '⑾', '⑿', '⒀', '⒁', '⒂', '⒃', '⒄', '⒅', '⒆', '⒇', '①', '②', '③', '④', '⑤', '⑥', '⑦', '⑧', '⑨', '⑩', '㈠', '㈡', '㈢', '㈣', '㈤', '㈥', '㈦', '㈧', '㈨', '㈩']
|
|
241719
241831
|
};
|
|
241720
241832
|
},
|
|
@@ -241746,10 +241858,10 @@ var HoSpecialCharsvue_type_template_id_146e538d_scoped_true_staticRenderFns = []
|
|
|
241746
241858
|
});
|
|
241747
241859
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoSpecialChars.vue?vue&type=script&lang=js&
|
|
241748
241860
|
/* harmony default export */ var insert_HoSpecialCharsvue_type_script_lang_js_ = (HoSpecialCharsvue_type_script_lang_js_);
|
|
241749
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoSpecialChars.vue?vue&type=style&index=0&id=
|
|
241861
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoSpecialChars.vue?vue&type=style&index=0&id=463b09d0&lang=scss&scoped=true&
|
|
241750
241862
|
// extracted by mini-css-extract-plugin
|
|
241751
241863
|
|
|
241752
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoSpecialChars.vue?vue&type=style&index=0&id=
|
|
241864
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoSpecialChars.vue?vue&type=style&index=0&id=463b09d0&lang=scss&scoped=true&
|
|
241753
241865
|
|
|
241754
241866
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoSpecialChars.vue
|
|
241755
241867
|
|
|
@@ -241762,11 +241874,11 @@ var HoSpecialCharsvue_type_template_id_146e538d_scoped_true_staticRenderFns = []
|
|
|
241762
241874
|
|
|
241763
241875
|
var HoSpecialChars_component = (0,componentNormalizer/* default */.Z)(
|
|
241764
241876
|
insert_HoSpecialCharsvue_type_script_lang_js_,
|
|
241765
|
-
|
|
241766
|
-
|
|
241877
|
+
HoSpecialCharsvue_type_template_id_463b09d0_scoped_true_render,
|
|
241878
|
+
HoSpecialCharsvue_type_template_id_463b09d0_scoped_true_staticRenderFns,
|
|
241767
241879
|
false,
|
|
241768
241880
|
null,
|
|
241769
|
-
"
|
|
241881
|
+
"463b09d0",
|
|
241770
241882
|
null
|
|
241771
241883
|
|
|
241772
241884
|
)
|