hoeditor-web 3.1.155 → 3.1.157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.umd.js +778 -508
- package/lib/hoeditor.umd.min.js +23 -23
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -3363,7 +3363,7 @@ function _extends(){return _extends=Object.assign?Object.assign.bind():function(
|
|
|
3363
3363
|
|
|
3364
3364
|
/***/ }),
|
|
3365
3365
|
|
|
3366
|
-
/***/
|
|
3366
|
+
/***/ 10597:
|
|
3367
3367
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3368
3368
|
|
|
3369
3369
|
"use strict";
|
|
@@ -3375,7 +3375,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
3375
3375
|
"default": function() { return /* binding */ ControlModal; }
|
|
3376
3376
|
});
|
|
3377
3377
|
|
|
3378
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=
|
|
3378
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=bc7baef6&
|
|
3379
3379
|
var render = function render() {
|
|
3380
3380
|
var _vm = this,
|
|
3381
3381
|
_c = _vm._self._c;
|
|
@@ -3494,6 +3494,7 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
3494
3494
|
sign: 'sign/Sign',
|
|
3495
3495
|
text: 'textDialog/TextDialog',
|
|
3496
3496
|
'text-to-label': 'textDialog/TextToLabelDialog',
|
|
3497
|
+
'text-border': 'textDialog/TextBorderDialog',
|
|
3497
3498
|
date: 'dateDialog/DateDialog',
|
|
3498
3499
|
select: 'selectDialog/SelectDialog',
|
|
3499
3500
|
RadioBox: 'radioCheckBox/RadioCheckbox',
|
|
@@ -22931,6 +22932,211 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
22931
22932
|
|
|
22932
22933
|
/***/ }),
|
|
22933
22934
|
|
|
22935
|
+
/***/ 52023:
|
|
22936
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
22937
|
+
|
|
22938
|
+
"use strict";
|
|
22939
|
+
// ESM COMPAT FLAG
|
|
22940
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22941
|
+
|
|
22942
|
+
// EXPORTS
|
|
22943
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
22944
|
+
"default": function() { return /* binding */ TextBorderDialog; }
|
|
22945
|
+
});
|
|
22946
|
+
|
|
22947
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextBorderDialog.vue?vue&type=template&id=726226fa&
|
|
22948
|
+
var render = function render() {
|
|
22949
|
+
var _vm = this,
|
|
22950
|
+
_c = _vm._self._c;
|
|
22951
|
+
return _c('div', {
|
|
22952
|
+
class: _vm.animationClassNames
|
|
22953
|
+
}, [_c('header', {
|
|
22954
|
+
staticClass: "modal-title"
|
|
22955
|
+
}, [_c('span', [_vm._v("文本框元素")]), _c('a-icon', {
|
|
22956
|
+
staticClass: "modal-title-close",
|
|
22957
|
+
attrs: {
|
|
22958
|
+
"type": "close"
|
|
22959
|
+
},
|
|
22960
|
+
on: {
|
|
22961
|
+
"click": _vm.handleClose
|
|
22962
|
+
}
|
|
22963
|
+
})], 1), _c('section', {
|
|
22964
|
+
staticClass: "modal-content"
|
|
22965
|
+
}, [_c('ul', {
|
|
22966
|
+
staticClass: "control-list"
|
|
22967
|
+
}, [_c('li', {
|
|
22968
|
+
staticClass: "control-item"
|
|
22969
|
+
}, [_c('span', {
|
|
22970
|
+
staticClass: "label"
|
|
22971
|
+
}, [_vm._v("文本")]), _c('a-input', {
|
|
22972
|
+
ref: "textBorderInput",
|
|
22973
|
+
attrs: {
|
|
22974
|
+
"size": "small",
|
|
22975
|
+
"placeholder": "文本内容"
|
|
22976
|
+
},
|
|
22977
|
+
model: {
|
|
22978
|
+
value: _vm.text,
|
|
22979
|
+
callback: function callback($$v) {
|
|
22980
|
+
_vm.text = $$v;
|
|
22981
|
+
},
|
|
22982
|
+
expression: "text"
|
|
22983
|
+
}
|
|
22984
|
+
})], 1)])]), _c('footer', {
|
|
22985
|
+
staticClass: "ho-modal-footer"
|
|
22986
|
+
}, [_c('a-button', {
|
|
22987
|
+
attrs: {
|
|
22988
|
+
"type": "primary"
|
|
22989
|
+
},
|
|
22990
|
+
on: {
|
|
22991
|
+
"click": _vm.sure
|
|
22992
|
+
}
|
|
22993
|
+
}, [_vm._v("确定")]), _c('a-button', {
|
|
22994
|
+
staticStyle: {
|
|
22995
|
+
"margin-left": "30px"
|
|
22996
|
+
},
|
|
22997
|
+
on: {
|
|
22998
|
+
"click": _vm.handleClose
|
|
22999
|
+
}
|
|
23000
|
+
}, [_vm._v("取消")])], 1)]);
|
|
23001
|
+
};
|
|
23002
|
+
var staticRenderFns = [];
|
|
23003
|
+
|
|
23004
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
23005
|
+
var es_object_to_string = __webpack_require__(41539);
|
|
23006
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
23007
|
+
var web_dom_collections_for_each = __webpack_require__(54747);
|
|
23008
|
+
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
23009
|
+
var HOEditorFactorys = __webpack_require__(74089);
|
|
23010
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts + 1 modules
|
|
23011
|
+
var TextInputFieldNode = __webpack_require__(65043);
|
|
23012
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/BaseCombineNode.ts
|
|
23013
|
+
var BaseCombineNode = __webpack_require__(4938);
|
|
23014
|
+
// EXTERNAL MODULE: ./src/editor/dom/DomRange.ts
|
|
23015
|
+
var DomRange = __webpack_require__(94639);
|
|
23016
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextBorderNode.ts + 1 modules
|
|
23017
|
+
var TextBorderNode = __webpack_require__(11596);
|
|
23018
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextBorderDialog.vue?vue&type=script&lang=js&
|
|
23019
|
+
|
|
23020
|
+
|
|
23021
|
+
|
|
23022
|
+
|
|
23023
|
+
|
|
23024
|
+
|
|
23025
|
+
|
|
23026
|
+
/* harmony default export */ var TextBorderDialogvue_type_script_lang_js_ = ({
|
|
23027
|
+
name: 'TextBorderDialog',
|
|
23028
|
+
components: {},
|
|
23029
|
+
data: function data() {
|
|
23030
|
+
return {
|
|
23031
|
+
animationClassNames: 'control-modal-contents label-to-text-modal animation-in',
|
|
23032
|
+
text: '',
|
|
23033
|
+
endPath: ''
|
|
23034
|
+
};
|
|
23035
|
+
},
|
|
23036
|
+
props: {
|
|
23037
|
+
hoEditorFactoryId: {
|
|
23038
|
+
default: ''
|
|
23039
|
+
},
|
|
23040
|
+
controlStatus: {
|
|
23041
|
+
default: ''
|
|
23042
|
+
},
|
|
23043
|
+
vueController: {
|
|
23044
|
+
default: function _default() {}
|
|
23045
|
+
}
|
|
23046
|
+
},
|
|
23047
|
+
inject: ['hoEditorProvider'],
|
|
23048
|
+
created: function created() {
|
|
23049
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
23050
|
+
this.endPath = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
23051
|
+
},
|
|
23052
|
+
mounted: function mounted() {
|
|
23053
|
+
var node = this.getTextBorderNode();
|
|
23054
|
+
if (node) {
|
|
23055
|
+
this.text = node.text;
|
|
23056
|
+
this.$refs.textBorderInput.focus();
|
|
23057
|
+
}
|
|
23058
|
+
},
|
|
23059
|
+
methods: {
|
|
23060
|
+
getTextBorderNode: function getTextBorderNode() {
|
|
23061
|
+
var _this$vueController$f;
|
|
23062
|
+
var node = (_this$vueController$f = this.vueController.findNodebyPath(this.endPath)) === null || _this$vueController$f === void 0 ? void 0 : _this$vueController$f.node;
|
|
23063
|
+
if (node instanceof TextBorderNode/* TextBorderNode */.D) {
|
|
23064
|
+
return node;
|
|
23065
|
+
}
|
|
23066
|
+
return null;
|
|
23067
|
+
},
|
|
23068
|
+
sure: function sure() {
|
|
23069
|
+
var _this$labelTextId;
|
|
23070
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
23071
|
+
var arr = (_this$labelTextId = this.labelTextId) === null || _this$labelTextId === void 0 ? void 0 : _this$labelTextId.split('___');
|
|
23072
|
+
var id = '';
|
|
23073
|
+
if (arr && arr.length === 3) {
|
|
23074
|
+
id = arr[1];
|
|
23075
|
+
}
|
|
23076
|
+
if (this.hoEditorProvider.controlStatus === 'update') {
|
|
23077
|
+
var node = this.getTextBorderNode();
|
|
23078
|
+
if (node) {
|
|
23079
|
+
node.setTextBorderText(this.text);
|
|
23080
|
+
}
|
|
23081
|
+
} else {
|
|
23082
|
+
hoEditorFactory.vueController.insertTextBorder(this.text);
|
|
23083
|
+
}
|
|
23084
|
+
this.handleClose();
|
|
23085
|
+
},
|
|
23086
|
+
textToLabel: function textToLabel() {
|
|
23087
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
23088
|
+
if (this.hoEditorProvider.controlStatus === 'update') {
|
|
23089
|
+
var label = this.getTextBorderNode();
|
|
23090
|
+
if (label.length > 0) {
|
|
23091
|
+
label.forEach(function (v) {
|
|
23092
|
+
hoEditorFactory.vueController.updateAssociatedElement(v, '');
|
|
23093
|
+
});
|
|
23094
|
+
}
|
|
23095
|
+
} else {
|
|
23096
|
+
hoEditorFactory.vueController.textToLabel();
|
|
23097
|
+
}
|
|
23098
|
+
this.handleClose();
|
|
23099
|
+
},
|
|
23100
|
+
handleClose: function handleClose() {
|
|
23101
|
+
this.animationClassNames = 'control-modal-contents label-to-text-modal animation-out';
|
|
23102
|
+
this.$emit('closed');
|
|
23103
|
+
this.endPath = '';
|
|
23104
|
+
}
|
|
23105
|
+
}
|
|
23106
|
+
});
|
|
23107
|
+
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextBorderDialog.vue?vue&type=script&lang=js&
|
|
23108
|
+
/* harmony default export */ var textDialog_TextBorderDialogvue_type_script_lang_js_ = (TextBorderDialogvue_type_script_lang_js_);
|
|
23109
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextBorderDialog.vue?vue&type=style&index=0&id=726226fa&prod&lang=less&
|
|
23110
|
+
// extracted by mini-css-extract-plugin
|
|
23111
|
+
|
|
23112
|
+
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextBorderDialog.vue?vue&type=style&index=0&id=726226fa&prod&lang=less&
|
|
23113
|
+
|
|
23114
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
23115
|
+
var componentNormalizer = __webpack_require__(70713);
|
|
23116
|
+
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextBorderDialog.vue
|
|
23117
|
+
|
|
23118
|
+
|
|
23119
|
+
|
|
23120
|
+
;
|
|
23121
|
+
|
|
23122
|
+
|
|
23123
|
+
/* normalize component */
|
|
23124
|
+
|
|
23125
|
+
var component = (0,componentNormalizer/* default */.Z)(
|
|
23126
|
+
textDialog_TextBorderDialogvue_type_script_lang_js_,
|
|
23127
|
+
render,
|
|
23128
|
+
staticRenderFns,
|
|
23129
|
+
false,
|
|
23130
|
+
null,
|
|
23131
|
+
null,
|
|
23132
|
+
null
|
|
23133
|
+
|
|
23134
|
+
)
|
|
23135
|
+
|
|
23136
|
+
/* harmony default export */ var TextBorderDialog = (component.exports);
|
|
23137
|
+
|
|
23138
|
+
/***/ }),
|
|
23139
|
+
|
|
22934
23140
|
/***/ 61911:
|
|
22935
23141
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
22936
23142
|
|
|
@@ -36099,7 +36305,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
36099
36305
|
key: "createPDFBase64",
|
|
36100
36306
|
value: function () {
|
|
36101
36307
|
var _createPDFBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee4(hoEditorFactoryID, reslove, PDF) {
|
|
36102
|
-
var hoEditorFactory,
|
|
36308
|
+
var hoEditorFactory, svgBox, last, pageNumber, _iterator2, _step2, _cpage$drawDomLevel7, _cpage$drawDomLevel8, index, cpage, children, ctx;
|
|
36103
36309
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee4$(_context5) {
|
|
36104
36310
|
while (1) switch (_context5.prev = _context5.next) {
|
|
36105
36311
|
case 0:
|
|
@@ -36109,44 +36315,35 @@ var Print = /*#__PURE__*/function () {
|
|
|
36109
36315
|
if (hoEditorFactory.printStatus.printRange == PrintRange.prContinue) {
|
|
36110
36316
|
hoEditorFactory.printStatus.DrawPrintRange().preparePrint();
|
|
36111
36317
|
}
|
|
36112
|
-
orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
|
|
36113
36318
|
svgBox = document.createElement('div');
|
|
36114
36319
|
svgBox.className = 'ho-print-svg-box';
|
|
36115
36320
|
last = -1;
|
|
36116
36321
|
pageNumber = 0;
|
|
36117
36322
|
_iterator2 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
|
|
36118
|
-
_context5.prev =
|
|
36323
|
+
_context5.prev = 9;
|
|
36119
36324
|
_iterator2.s();
|
|
36120
|
-
case
|
|
36325
|
+
case 11:
|
|
36121
36326
|
if ((_step2 = _iterator2.n()).done) {
|
|
36122
|
-
_context5.next =
|
|
36327
|
+
_context5.next = 32;
|
|
36123
36328
|
break;
|
|
36124
36329
|
}
|
|
36125
36330
|
index = _step2.value;
|
|
36126
36331
|
if (!(index == -1)) {
|
|
36127
|
-
_context5.next =
|
|
36332
|
+
_context5.next = 16;
|
|
36128
36333
|
break;
|
|
36129
36334
|
}
|
|
36130
36335
|
message/* default */.Z.info('请进行翻页');
|
|
36131
|
-
return _context5.abrupt("continue",
|
|
36132
|
-
case
|
|
36336
|
+
return _context5.abrupt("continue", 30);
|
|
36337
|
+
case 16:
|
|
36133
36338
|
last = index;
|
|
36134
|
-
cpage = hoEditorFactory.drawTree.drawPages[index];
|
|
36135
|
-
// index === hoEditorFactory.drawTree.drawPages.length - 1 &&
|
|
36136
|
-
// cpage.drawMainDoc.children.length === 2 &&
|
|
36137
|
-
// !(cpage.drawMainDoc.children[0] instanceof DrawPageTable) &&
|
|
36138
|
-
// cpage.drawMainDoc.children[1] &&
|
|
36139
|
-
// (cpage.drawMainDoc.children[1] as any).drawItems.length === 0
|
|
36140
|
-
// ) {
|
|
36141
|
-
// break;
|
|
36142
|
-
// }
|
|
36339
|
+
cpage = hoEditorFactory.drawTree.drawPages[index];
|
|
36143
36340
|
children = cpage.drawMainDoc.children;
|
|
36144
36341
|
if (!(children.length == 2 && !(children[0] instanceof DrawPageTable/* DrawPageTable */.ox) && children[1] && children[1].drawItems.length == 0 || children.length == 1 && children[0] instanceof DrawLine/* DrawLine */.a && children[0].drawItems.length == 0)) {
|
|
36145
|
-
_context5.next =
|
|
36342
|
+
_context5.next = 21;
|
|
36146
36343
|
break;
|
|
36147
36344
|
}
|
|
36148
|
-
return _context5.abrupt("continue",
|
|
36149
|
-
case
|
|
36345
|
+
return _context5.abrupt("continue", 30);
|
|
36346
|
+
case 21:
|
|
36150
36347
|
if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
|
|
36151
36348
|
cpage.drawDomLevel.bindStage();
|
|
36152
36349
|
cpage.needUpdateStage = true;
|
|
@@ -36162,31 +36359,31 @@ var Print = /*#__PURE__*/function () {
|
|
|
36162
36359
|
ctx && ((_cpage$drawDomLevel7 = cpage.drawDomLevel) === null || _cpage$drawDomLevel7 === void 0 || (_cpage$drawDomLevel7 = _cpage$drawDomLevel7.stage) === null || _cpage$drawDomLevel7 === void 0 ? void 0 : _cpage$drawDomLevel7.draw(ctx));
|
|
36163
36360
|
ctx = null;
|
|
36164
36361
|
index > 0 && ((_cpage$drawDomLevel8 = cpage.drawDomLevel) === null || _cpage$drawDomLevel8 === void 0 ? void 0 : _cpage$drawDomLevel8.clearStage());
|
|
36165
|
-
case
|
|
36166
|
-
_context5.next =
|
|
36362
|
+
case 30:
|
|
36363
|
+
_context5.next = 11;
|
|
36167
36364
|
break;
|
|
36168
|
-
case
|
|
36169
|
-
_context5.next =
|
|
36365
|
+
case 32:
|
|
36366
|
+
_context5.next = 37;
|
|
36170
36367
|
break;
|
|
36171
|
-
case
|
|
36172
|
-
_context5.prev =
|
|
36173
|
-
_context5.t0 = _context5["catch"](
|
|
36368
|
+
case 34:
|
|
36369
|
+
_context5.prev = 34;
|
|
36370
|
+
_context5.t0 = _context5["catch"](9);
|
|
36174
36371
|
_iterator2.e(_context5.t0);
|
|
36175
|
-
case
|
|
36176
|
-
_context5.prev =
|
|
36372
|
+
case 37:
|
|
36373
|
+
_context5.prev = 37;
|
|
36177
36374
|
_iterator2.f();
|
|
36178
|
-
return _context5.finish(
|
|
36179
|
-
case
|
|
36375
|
+
return _context5.finish(37);
|
|
36376
|
+
case 40:
|
|
36180
36377
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
|
|
36181
36378
|
hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
36182
36379
|
}
|
|
36183
36380
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
36184
36381
|
reslove && reslove(pageNumber);
|
|
36185
|
-
case
|
|
36382
|
+
case 43:
|
|
36186
36383
|
case "end":
|
|
36187
36384
|
return _context5.stop();
|
|
36188
36385
|
}
|
|
36189
|
-
}, _callee4, null, [[
|
|
36386
|
+
}, _callee4, null, [[9, 34, 37, 40]]);
|
|
36190
36387
|
}));
|
|
36191
36388
|
function createPDFBase64(_x12, _x13, _x14) {
|
|
36192
36389
|
return _createPDFBase.apply(this, arguments);
|
|
@@ -37316,7 +37513,7 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
37316
37513
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80543);
|
|
37317
37514
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(81448);
|
|
37318
37515
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(94310);
|
|
37319
|
-
/* harmony import */ var
|
|
37516
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(40735);
|
|
37320
37517
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(70280);
|
|
37321
37518
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(66298);
|
|
37322
37519
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(78255);
|
|
@@ -37434,6 +37631,8 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
37434
37631
|
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(51760);
|
|
37435
37632
|
/* harmony import */ var _plugins_util__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(62783);
|
|
37436
37633
|
/* harmony import */ var _treeNode_PopQScoreNode__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(12790);
|
|
37634
|
+
/* harmony import */ var _treeNode_TextBorderNode__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(11596);
|
|
37635
|
+
|
|
37437
37636
|
|
|
37438
37637
|
|
|
37439
37638
|
|
|
@@ -37681,7 +37880,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37681
37880
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37682
37881
|
var domRange = hoEditorFactory.docTree.curDomRange;
|
|
37683
37882
|
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview) {
|
|
37684
|
-
|
|
37883
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('质控医生站的病历只可进行批注不可编辑修改');
|
|
37685
37884
|
return;
|
|
37686
37885
|
}
|
|
37687
37886
|
// alert(text);
|
|
@@ -37718,7 +37917,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37718
37917
|
var isAllowEdit = colProperty.downListProperty.canModifyContent;
|
|
37719
37918
|
//const cellText = cellNode.getCellText();
|
|
37720
37919
|
if (!isAllowEdit) {
|
|
37721
|
-
|
|
37920
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不允许用户直接编辑,请双击单元格进行选择.');
|
|
37722
37921
|
return;
|
|
37723
37922
|
}
|
|
37724
37923
|
}
|
|
@@ -37726,7 +37925,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37726
37925
|
var _isAllowEdit = cellProperty.downListProperty.canModifyContent;
|
|
37727
37926
|
//const cellText = cellNode.getCellText();
|
|
37728
37927
|
if (!_isAllowEdit) {
|
|
37729
|
-
|
|
37928
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不允许用户直接编辑,请双击单元格进行选择.');
|
|
37730
37929
|
return;
|
|
37731
37930
|
}
|
|
37732
37931
|
}
|
|
@@ -38155,7 +38354,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38155
38354
|
domRange = domRange.normalize();
|
|
38156
38355
|
} else if ((hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psTrace) && !(domRange.npStart.node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
38157
38356
|
if (domRange.npStart.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== undefined && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== -1) {} else {
|
|
38158
|
-
|
|
38357
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('审阅模式下,只能选中文档内容进行删除');
|
|
38159
38358
|
return;
|
|
38160
38359
|
}
|
|
38161
38360
|
}
|
|
@@ -38380,7 +38579,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38380
38579
|
_context.next = 86;
|
|
38381
38580
|
break;
|
|
38382
38581
|
}
|
|
38383
|
-
|
|
38582
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('审阅模式下,只能对文本内容进行删除');
|
|
38384
38583
|
return _context.abrupt("return");
|
|
38385
38584
|
case 86:
|
|
38386
38585
|
if (!((hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psTrace) && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
@@ -38392,21 +38591,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38392
38591
|
_context.next = 91;
|
|
38393
38592
|
break;
|
|
38394
38593
|
}
|
|
38395
|
-
|
|
38594
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不是本人签名,不允许删除!');
|
|
38396
38595
|
return _context.abrupt("return");
|
|
38397
38596
|
case 91:
|
|
38398
38597
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
38399
38598
|
_context.next = 94;
|
|
38400
38599
|
break;
|
|
38401
38600
|
}
|
|
38402
|
-
|
|
38601
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不允许使用删除键删除签名,请右键删除元素');
|
|
38403
38602
|
return _context.abrupt("return");
|
|
38404
38603
|
case 94:
|
|
38405
38604
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
38406
38605
|
_context.next = 97;
|
|
38407
38606
|
break;
|
|
38408
38607
|
}
|
|
38409
|
-
|
|
38608
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('该签名元素不允许删除!');
|
|
38410
38609
|
return _context.abrupt("return");
|
|
38411
38610
|
case 97:
|
|
38412
38611
|
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
@@ -39337,11 +39536,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39337
39536
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
39338
39537
|
var parentNode = hoEditorFactory.docTree.getParentNode(arange.startPath);
|
|
39339
39538
|
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re) {
|
|
39340
|
-
|
|
39539
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不允许在文本域内插入表格');
|
|
39341
39540
|
return;
|
|
39342
39541
|
}
|
|
39343
39542
|
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) {
|
|
39344
|
-
|
|
39543
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不允许在表格内再插入表格');
|
|
39345
39544
|
return;
|
|
39346
39545
|
}
|
|
39347
39546
|
// const nextParaNode = new ParagraphNode(
|
|
@@ -39401,7 +39600,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39401
39600
|
c = _cell$table$getCellIn2[1];
|
|
39402
39601
|
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psEdit && r > 0) {
|
|
39403
39602
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r - 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
39404
|
-
|
|
39603
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
39405
39604
|
return;
|
|
39406
39605
|
}
|
|
39407
39606
|
}
|
|
@@ -39534,7 +39733,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39534
39733
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
39535
39734
|
}
|
|
39536
39735
|
} else {
|
|
39537
|
-
|
|
39736
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('表格已设置不允许新增行');
|
|
39538
39737
|
return;
|
|
39539
39738
|
}
|
|
39540
39739
|
}
|
|
@@ -39555,7 +39754,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39555
39754
|
c = _cell$table$getCellIn4[1];
|
|
39556
39755
|
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psEdit) {
|
|
39557
39756
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r + 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
39558
|
-
|
|
39757
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
39559
39758
|
return;
|
|
39560
39759
|
}
|
|
39561
39760
|
}
|
|
@@ -39656,7 +39855,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39656
39855
|
// );
|
|
39657
39856
|
// }
|
|
39658
39857
|
} else {
|
|
39659
|
-
|
|
39858
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('表格已设置不允许新增行');
|
|
39660
39859
|
return;
|
|
39661
39860
|
}
|
|
39662
39861
|
}
|
|
@@ -39717,7 +39916,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39717
39916
|
// );
|
|
39718
39917
|
// }
|
|
39719
39918
|
} else {
|
|
39720
|
-
|
|
39919
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('表格已设置不允许新增列');
|
|
39721
39920
|
return;
|
|
39722
39921
|
}
|
|
39723
39922
|
}
|
|
@@ -39775,7 +39974,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39775
39974
|
// );
|
|
39776
39975
|
// }
|
|
39777
39976
|
} else {
|
|
39778
|
-
|
|
39977
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('表格已设置不允许新增列');
|
|
39779
39978
|
return;
|
|
39780
39979
|
}
|
|
39781
39980
|
}
|
|
@@ -39792,7 +39991,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39792
39991
|
r2 = _TableNode$getSelectT2[3],
|
|
39793
39992
|
c2 = _TableNode$getSelectT2[4];
|
|
39794
39993
|
if (!table) {
|
|
39795
|
-
|
|
39994
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格才能删除');
|
|
39796
39995
|
return;
|
|
39797
39996
|
}
|
|
39798
39997
|
// const eParentNode = (aRange.npEnd.node as BaseNode).parentNode;
|
|
@@ -39804,7 +40003,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39804
40003
|
for (var i = r1; i <= r2; i++) {
|
|
39805
40004
|
var rowInfo = table.rowInfos[i];
|
|
39806
40005
|
if (rowInfo.rowProperty.repeatAsTitleAtPageTop) {
|
|
39807
|
-
|
|
40006
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('表头行不允许删除');
|
|
39808
40007
|
return;
|
|
39809
40008
|
}
|
|
39810
40009
|
}
|
|
@@ -39863,7 +40062,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39863
40062
|
r2 = _TableNode$getSelectT4[3],
|
|
39864
40063
|
c2 = _TableNode$getSelectT4[4];
|
|
39865
40064
|
if (!table) {
|
|
39866
|
-
|
|
40065
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格才能删除');
|
|
39867
40066
|
return;
|
|
39868
40067
|
}
|
|
39869
40068
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -39916,7 +40115,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39916
40115
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
39917
40116
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
39918
40117
|
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) || cell1.table !== cell2.table || cell1 === cell2) {
|
|
39919
|
-
|
|
40118
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的不同单元格才能合并');
|
|
39920
40119
|
return;
|
|
39921
40120
|
}
|
|
39922
40121
|
var _cell1$table$getCellI = cell1.table.getCellInfos(cell1),
|
|
@@ -39968,7 +40167,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39968
40167
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
39969
40168
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
39970
40169
|
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) || cell1.table !== cell2.table) {
|
|
39971
|
-
|
|
40170
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的单元格才能取消合并');
|
|
39972
40171
|
return;
|
|
39973
40172
|
}
|
|
39974
40173
|
var endPath = cell1.table.getNodePath();
|
|
@@ -40276,7 +40475,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40276
40475
|
}
|
|
40277
40476
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
40278
40477
|
if (object.obj2.size === 0) {
|
|
40279
|
-
|
|
40478
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('未能找到指定内容。');
|
|
40280
40479
|
} else {
|
|
40281
40480
|
var nodesMap = object.obj1;
|
|
40282
40481
|
var indexsMap = object.obj2;
|
|
@@ -40339,7 +40538,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40339
40538
|
sNode = startNode.rootNodes[0];
|
|
40340
40539
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
40341
40540
|
if (object.obj2.size === 0) {
|
|
40342
|
-
|
|
40541
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('未能找到指定内容。');
|
|
40343
40542
|
} else {
|
|
40344
40543
|
var nodesMap = object.obj1;
|
|
40345
40544
|
var indexsMap = object.obj2;
|
|
@@ -40393,7 +40592,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40393
40592
|
} finally {
|
|
40394
40593
|
_iterator.f();
|
|
40395
40594
|
}
|
|
40396
|
-
|
|
40595
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.info('成功替换了' + indexsMap.size.toString() + '处文档内容。');
|
|
40397
40596
|
var toPath = hoEditorFactory.docTree.curDomRange.endPath;
|
|
40398
40597
|
hoEditorFactory.drawTree.moveCaretToPath(toPath);
|
|
40399
40598
|
}
|
|
@@ -40659,6 +40858,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40659
40858
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, rareCharNode));
|
|
40660
40859
|
hoEditorFactory.undoService.commit();
|
|
40661
40860
|
}
|
|
40861
|
+
/**
|
|
40862
|
+
* 插入文本框
|
|
40863
|
+
* @param 操作类型
|
|
40864
|
+
* @param 选区
|
|
40865
|
+
* @param 符号串
|
|
40866
|
+
* @param 样式索引
|
|
40867
|
+
*/
|
|
40868
|
+
}, {
|
|
40869
|
+
key: "insertTextBorder",
|
|
40870
|
+
value: function insertTextBorder(operType, curDomRange, text, styleIndex) {
|
|
40871
|
+
var domRange = curDomRange.normalize();
|
|
40872
|
+
var startPath = domRange.endPath;
|
|
40873
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40874
|
+
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
40875
|
+
var rareCharNode = new _treeNode_TextBorderNode__WEBPACK_IMPORTED_MODULE_101__/* .TextBorderNode */ .D(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntTextBorder, text, styleIndex);
|
|
40876
|
+
//插入该表达式节点
|
|
40877
|
+
hoEditorFactory.undoService.begin();
|
|
40878
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, rareCharNode));
|
|
40879
|
+
hoEditorFactory.undoService.commit();
|
|
40880
|
+
}
|
|
40662
40881
|
/**
|
|
40663
40882
|
* 插入链接按钮
|
|
40664
40883
|
* @param operType 操作类型 "add"新增
|
|
@@ -40799,7 +41018,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40799
41018
|
} else {
|
|
40800
41019
|
var _comment = hoEditorFactory.drawTree.curOnSelectedComment;
|
|
40801
41020
|
if (_comment.userID != hoEditorFactory.userInfo.id) {
|
|
40802
|
-
|
|
41021
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不允许删除其他用户创建的批注!');
|
|
40803
41022
|
return;
|
|
40804
41023
|
}
|
|
40805
41024
|
del(_comment);
|
|
@@ -41796,7 +42015,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41796
42015
|
/* harmony export */ x_: function() { return /* binding */ ctlKey; }
|
|
41797
42016
|
/* harmony export */ });
|
|
41798
42017
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94310);
|
|
41799
|
-
/* harmony import */ var
|
|
42018
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(40735);
|
|
41800
42019
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27222);
|
|
41801
42020
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17519);
|
|
41802
42021
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70280);
|
|
@@ -41856,13 +42075,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41856
42075
|
/* harmony import */ var _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(5010);
|
|
41857
42076
|
/* harmony import */ var _events_Exception__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(8277);
|
|
41858
42077
|
/* harmony import */ var _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(68598);
|
|
41859
|
-
/* harmony import */ var _draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(
|
|
42078
|
+
/* harmony import */ var _draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(24492);
|
|
41860
42079
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(74089);
|
|
41861
42080
|
/* harmony import */ var _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(92501);
|
|
41862
42081
|
/* harmony import */ var _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(45712);
|
|
41863
42082
|
/* harmony import */ var _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(95089);
|
|
41864
42083
|
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(51760);
|
|
41865
42084
|
/* harmony import */ var _treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(91105);
|
|
42085
|
+
/* harmony import */ var _treeNode_TextBorderNode__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(11596);
|
|
42086
|
+
|
|
41866
42087
|
|
|
41867
42088
|
|
|
41868
42089
|
|
|
@@ -42486,6 +42707,8 @@ var DocTree = /*#__PURE__*/function () {
|
|
|
42486
42707
|
nodeType = "DownList";
|
|
42487
42708
|
} else if (node instanceof _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_48__/* .LabelNode */ .P) {
|
|
42488
42709
|
nodeType = "LabelNode";
|
|
42710
|
+
} else if (node instanceof _treeNode_TextBorderNode__WEBPACK_IMPORTED_MODULE_51__/* .TextBorderNode */ .D) {
|
|
42711
|
+
nodeType = "TextBorderNode";
|
|
42489
42712
|
}
|
|
42490
42713
|
return node.delete(operType, nodeType, isForceDelete);
|
|
42491
42714
|
}
|
|
@@ -43490,7 +43713,7 @@ var DocTree = /*#__PURE__*/function () {
|
|
|
43490
43713
|
}
|
|
43491
43714
|
} else {
|
|
43492
43715
|
if (count === indexsMap.size + 1) {
|
|
43493
|
-
|
|
43716
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_52__/* ["default"] */ .Z.info("已完成对文档的搜索。");
|
|
43494
43717
|
return "";
|
|
43495
43718
|
} else {
|
|
43496
43719
|
return "-1";
|
|
@@ -51513,21 +51736,20 @@ var ControlNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
51513
51736
|
var tip = "";
|
|
51514
51737
|
if (nodeType === "RadioBox") {
|
|
51515
51738
|
tip = "单选框";
|
|
51516
|
-
}
|
|
51517
|
-
if (nodeType === "CheckBox") {
|
|
51739
|
+
} else if (nodeType === "CheckBox") {
|
|
51518
51740
|
tip = "复选框";
|
|
51519
|
-
}
|
|
51520
|
-
if (nodeType === "DateTime") {
|
|
51741
|
+
} else if (nodeType === "DateTime") {
|
|
51521
51742
|
tip = "日期时间";
|
|
51522
|
-
}
|
|
51523
|
-
if (nodeType === "DownList") {
|
|
51743
|
+
} else if (nodeType === "DownList") {
|
|
51524
51744
|
tip = "下拉列表";
|
|
51525
51745
|
}
|
|
51526
51746
|
if (nodeType === "LabelNode") {
|
|
51527
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.warn("
|
|
51747
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.warn("不允许删除标签元素文本内容。");
|
|
51528
51748
|
return false;
|
|
51529
|
-
}
|
|
51530
|
-
|
|
51749
|
+
} else if (nodeType === "TextBorderNode") {
|
|
51750
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.warn("不允许删除文本框元素文本内容。");
|
|
51751
|
+
return false;
|
|
51752
|
+
} else if (nodeType) {
|
|
51531
51753
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.warn(tip + "元素已设置为不允许删除。");
|
|
51532
51754
|
} else {
|
|
51533
51755
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(ControlNode.prototype), "delete", this).call(this);
|
|
@@ -53121,7 +53343,7 @@ var FetalHeartMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
|
|
|
53121
53343
|
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
53122
53344
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(57658);
|
|
53123
53345
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
53124
|
-
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
|
|
53346
|
+
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(24492);
|
|
53125
53347
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(74089);
|
|
53126
53348
|
/* harmony import */ var _plugins_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62783);
|
|
53127
53349
|
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(62358);
|
|
@@ -54677,7 +54899,7 @@ var LightLocationMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
|
|
|
54677
54899
|
/* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(19601);
|
|
54678
54900
|
/* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
54679
54901
|
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(62358);
|
|
54680
|
-
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
|
|
54902
|
+
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(24492);
|
|
54681
54903
|
/* harmony import */ var _editor_draw_drawNode_DrawMarkNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(57732);
|
|
54682
54904
|
/* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(29899);
|
|
54683
54905
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(74089);
|
|
@@ -60361,7 +60583,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
60361
60583
|
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
60362
60584
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(57658);
|
|
60363
60585
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
60364
|
-
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
60586
|
+
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(24492);
|
|
60365
60587
|
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(62358);
|
|
60366
60588
|
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(91105);
|
|
60367
60589
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(74089);
|
|
@@ -61066,14 +61288,13 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61066
61288
|
strValue = hoEditorFactory.unitConvert.replaceAll(strValue, '\r', '');
|
|
61067
61289
|
if (strValue === '') {
|
|
61068
61290
|
bret = true;
|
|
61291
|
+
ret = "";
|
|
61069
61292
|
for (var i = 1; i < cell.childNodes.length; i++) {
|
|
61070
61293
|
var aNode = cell.childNodes[i];
|
|
61071
61294
|
if (aNode instanceof _RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_41__/* .RadioAndCheckBoxNode */ .Yh) {
|
|
61072
61295
|
bret = true;
|
|
61073
61296
|
if (aNode.isSelected && aNode.numericValue !== "") {
|
|
61074
|
-
ret
|
|
61075
|
-
} else {
|
|
61076
|
-
ret = "";
|
|
61297
|
+
ret += Number(aNode.numericValue);
|
|
61077
61298
|
}
|
|
61078
61299
|
}
|
|
61079
61300
|
}
|
|
@@ -61083,14 +61304,13 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61083
61304
|
bret = true;
|
|
61084
61305
|
ret = strValue;
|
|
61085
61306
|
} else {
|
|
61307
|
+
ret = "";
|
|
61086
61308
|
for (var j = 1; j < cell.childNodes.length; j++) {
|
|
61087
61309
|
var bNode = cell.childNodes[j];
|
|
61088
61310
|
if (bNode instanceof _RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_41__/* .RadioAndCheckBoxNode */ .Yh) {
|
|
61089
61311
|
bret = true;
|
|
61090
61312
|
if (bNode.isSelected && bNode.numericValue !== "") {
|
|
61091
|
-
ret
|
|
61092
|
-
} else {
|
|
61093
|
-
ret = "";
|
|
61313
|
+
ret += Number(bNode.numericValue);
|
|
61094
61314
|
}
|
|
61095
61315
|
}
|
|
61096
61316
|
}
|
|
@@ -64763,6 +64983,279 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64763
64983
|
|
|
64764
64984
|
/***/ }),
|
|
64765
64985
|
|
|
64986
|
+
/***/ 11596:
|
|
64987
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
64988
|
+
|
|
64989
|
+
"use strict";
|
|
64990
|
+
|
|
64991
|
+
// EXPORTS
|
|
64992
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
64993
|
+
D: function() { return /* binding */ TextBorderNode; }
|
|
64994
|
+
});
|
|
64995
|
+
|
|
64996
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
64997
|
+
var classCallCheck = __webpack_require__(70280);
|
|
64998
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
64999
|
+
var createClass = __webpack_require__(66298);
|
|
65000
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules
|
|
65001
|
+
var inherits = __webpack_require__(11651);
|
|
65002
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js + 2 modules
|
|
65003
|
+
var createSuper = __webpack_require__(19593);
|
|
65004
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
65005
|
+
var es_number_constructor = __webpack_require__(9653);
|
|
65006
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
65007
|
+
var es_array_push = __webpack_require__(57658);
|
|
65008
|
+
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
65009
|
+
var HOEditorFactorys = __webpack_require__(74089);
|
|
65010
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/BaseNode.ts
|
|
65011
|
+
var BaseNode = __webpack_require__(62358);
|
|
65012
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ControlNode.ts
|
|
65013
|
+
var ControlNode = __webpack_require__(91105);
|
|
65014
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
65015
|
+
var assertThisInitialized = __webpack_require__(75808);
|
|
65016
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
65017
|
+
var defineProperty = __webpack_require__(78255);
|
|
65018
|
+
// EXTERNAL MODULE: ./src/editor/utils/DrawSimpleText.ts
|
|
65019
|
+
var DrawSimpleText = __webpack_require__(57590);
|
|
65020
|
+
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawCombineNode.ts
|
|
65021
|
+
var DrawCombineNode = __webpack_require__(66114);
|
|
65022
|
+
;// CONCATENATED MODULE: ./src/editor/draw/drawNode/DrawTextBorderNode.ts
|
|
65023
|
+
|
|
65024
|
+
|
|
65025
|
+
|
|
65026
|
+
|
|
65027
|
+
|
|
65028
|
+
|
|
65029
|
+
|
|
65030
|
+
|
|
65031
|
+
var DrawTextBorderNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
65032
|
+
(0,inherits/* default */.Z)(DrawTextBorderNode, _DrawCombineNode);
|
|
65033
|
+
var _super = (0,createSuper/* default */.Z)(DrawTextBorderNode);
|
|
65034
|
+
function DrawTextBorderNode(hoeditfactoryID, rootPath, node, index, text, textStyle) {
|
|
65035
|
+
var _this;
|
|
65036
|
+
(0,classCallCheck/* default */.Z)(this, DrawTextBorderNode);
|
|
65037
|
+
_this = _super.call(this, hoeditfactoryID, rootPath, node, index);
|
|
65038
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_text", void 0);
|
|
65039
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_dStyleKey", void 0);
|
|
65040
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_dText", void 0);
|
|
65041
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_textStyle", void 0);
|
|
65042
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_bd", void 0);
|
|
65043
|
+
_this._textStyle = textStyle;
|
|
65044
|
+
_this._text = text;
|
|
65045
|
+
_this._dStyleKey = node.dStyleKey;
|
|
65046
|
+
_this._dText = new createjs.Text(text, _this._dStyleKey, node.dColor);
|
|
65047
|
+
_this.dWidth = _this._dText.getMeasuredWidth();
|
|
65048
|
+
_this.dHeight = node.dHeight;
|
|
65049
|
+
_this.drawRareChar();
|
|
65050
|
+
return _this;
|
|
65051
|
+
}
|
|
65052
|
+
(0,createClass/* default */.Z)(DrawTextBorderNode, [{
|
|
65053
|
+
key: "text",
|
|
65054
|
+
get: function get() {
|
|
65055
|
+
return this._text;
|
|
65056
|
+
}
|
|
65057
|
+
}, {
|
|
65058
|
+
key: "dStyleKey",
|
|
65059
|
+
get: function get() {
|
|
65060
|
+
return this._dStyleKey;
|
|
65061
|
+
}
|
|
65062
|
+
}, {
|
|
65063
|
+
key: "drawRareChar",
|
|
65064
|
+
value: function drawRareChar() {
|
|
65065
|
+
this.dWidth = this._dText.getMeasuredWidth();
|
|
65066
|
+
if (!this._bd) this._bd = new createjs.Shape();
|
|
65067
|
+
this._bd.graphics.clear();
|
|
65068
|
+
var leftWidth = 0;
|
|
65069
|
+
for (var i = 0; i < this._text.length; i++) {
|
|
65070
|
+
var text = this._text[i];
|
|
65071
|
+
var dText = new DrawSimpleText/* DrawSimpleText */.b(text, this._textStyle.getStyleKey(), '#000');
|
|
65072
|
+
var currentWidthwidth = dText.getMeasuredWidth();
|
|
65073
|
+
dText.textBaseline = 'alphabetic';
|
|
65074
|
+
dText.textAlign = 'left';
|
|
65075
|
+
var maxHeight = this.dHeight;
|
|
65076
|
+
var maxWidth = Math.max(currentWidthwidth, maxHeight * 1.25);
|
|
65077
|
+
var rect = dText.getBounds().clone();
|
|
65078
|
+
if (rect) {
|
|
65079
|
+
dText.x = leftWidth + maxWidth * 0.25;
|
|
65080
|
+
dText.y = 0;
|
|
65081
|
+
}
|
|
65082
|
+
this.addChild(dText);
|
|
65083
|
+
this._bd.graphics.beginStroke(this._textStyle.color).drawRect(leftWidth,
|
|
65084
|
+
//x
|
|
65085
|
+
-maxHeight,
|
|
65086
|
+
//y
|
|
65087
|
+
currentWidthwidth + maxWidth * 0.5, maxHeight * 1.25);
|
|
65088
|
+
leftWidth = leftWidth + dText.getMeasuredWidth();
|
|
65089
|
+
if (i < this._text.length - 1) {
|
|
65090
|
+
leftWidth += maxWidth;
|
|
65091
|
+
} else {
|
|
65092
|
+
leftWidth += maxWidth * 0.75;
|
|
65093
|
+
}
|
|
65094
|
+
}
|
|
65095
|
+
this.addChild(this._bd);
|
|
65096
|
+
this.dWidth = leftWidth;
|
|
65097
|
+
}
|
|
65098
|
+
}]);
|
|
65099
|
+
return DrawTextBorderNode;
|
|
65100
|
+
}(DrawCombineNode/* DrawCombineNode */.o);
|
|
65101
|
+
// EXTERNAL MODULE: ./src/editor/events/NodeChangeEvent.ts
|
|
65102
|
+
var NodeChangeEvent = __webpack_require__(2613);
|
|
65103
|
+
// EXTERNAL MODULE: ./src/editor/draw/SelectRange.ts
|
|
65104
|
+
var SelectRange = __webpack_require__(53901);
|
|
65105
|
+
// EXTERNAL MODULE: ./src/editor/dom/DocTree.ts
|
|
65106
|
+
var DocTree = __webpack_require__(32629);
|
|
65107
|
+
;// CONCATENATED MODULE: ./src/editor/dom/treeNode/TextBorderNode.ts
|
|
65108
|
+
|
|
65109
|
+
|
|
65110
|
+
|
|
65111
|
+
|
|
65112
|
+
|
|
65113
|
+
|
|
65114
|
+
|
|
65115
|
+
|
|
65116
|
+
|
|
65117
|
+
|
|
65118
|
+
|
|
65119
|
+
|
|
65120
|
+
|
|
65121
|
+
var TextBorderNode = /*#__PURE__*/function (_ControlNode) {
|
|
65122
|
+
(0,inherits/* default */.Z)(TextBorderNode, _ControlNode);
|
|
65123
|
+
var _super = (0,createSuper/* default */.Z)(TextBorderNode);
|
|
65124
|
+
function TextBorderNode(hoEditorFactoryID, rootNodes, pNode, nodeType, text, styleIndex) {
|
|
65125
|
+
var _this;
|
|
65126
|
+
(0,classCallCheck/* default */.Z)(this, TextBorderNode);
|
|
65127
|
+
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
|
|
65128
|
+
_this._text = text;
|
|
65129
|
+
_this._styleIndex = styleIndex;
|
|
65130
|
+
_this.node2DrawNodeRange();
|
|
65131
|
+
return _this;
|
|
65132
|
+
}
|
|
65133
|
+
(0,createClass/* default */.Z)(TextBorderNode, [{
|
|
65134
|
+
key: "text",
|
|
65135
|
+
get: function get() {
|
|
65136
|
+
return this._text;
|
|
65137
|
+
},
|
|
65138
|
+
set: function set(val) {
|
|
65139
|
+
if (val !== this._text) {
|
|
65140
|
+
this._text = val;
|
|
65141
|
+
}
|
|
65142
|
+
}
|
|
65143
|
+
}, {
|
|
65144
|
+
key: "styleIndex",
|
|
65145
|
+
get: function get() {
|
|
65146
|
+
return this._styleIndex;
|
|
65147
|
+
},
|
|
65148
|
+
set: function set(val) {
|
|
65149
|
+
if (this._styleIndex !== Number(val)) {
|
|
65150
|
+
this._styleIndex = Number(val);
|
|
65151
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
65152
|
+
if (!hoEditorFactory.docTree.isSaveValid) {
|
|
65153
|
+
this.node2DrawNode();
|
|
65154
|
+
}
|
|
65155
|
+
}
|
|
65156
|
+
}
|
|
65157
|
+
}, {
|
|
65158
|
+
key: "refreshDrawStyle",
|
|
65159
|
+
value: function refreshDrawStyle() {
|
|
65160
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
65161
|
+
var textStyle = hoEditorFactory.docTree.styles[this._styleIndex];
|
|
65162
|
+
var cbStyle;
|
|
65163
|
+
if (textStyle) {
|
|
65164
|
+
cbStyle = textStyle.combineStyle;
|
|
65165
|
+
} else {
|
|
65166
|
+
cbStyle = hoEditorFactory.docTree.styles[0].combineStyle;
|
|
65167
|
+
this.styleIndex = 0;
|
|
65168
|
+
}
|
|
65169
|
+
this.dStyleKey = cbStyle.getStyleKey();
|
|
65170
|
+
this.dColor = cbStyle.color;
|
|
65171
|
+
this.dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
|
|
65172
|
+
this.dCombineStyle = cbStyle;
|
|
65173
|
+
}
|
|
65174
|
+
//根据可放置的宽度,将普通组件转换成绘制组件
|
|
65175
|
+
}, {
|
|
65176
|
+
key: "node2DrawNodeRange",
|
|
65177
|
+
value: function node2DrawNodeRange() {
|
|
65178
|
+
this.refreshDrawStyle();
|
|
65179
|
+
var dNode = new DrawTextBorderNode(this._hoEditorFactoryID, this._rootPath, this, 0, this.text, this.dCombineStyle);
|
|
65180
|
+
this._drawNodes.push(dNode);
|
|
65181
|
+
}
|
|
65182
|
+
}, {
|
|
65183
|
+
key: "node2DrawNode",
|
|
65184
|
+
value: function node2DrawNode() {
|
|
65185
|
+
this.clearDrawNodes(0, 0);
|
|
65186
|
+
this.node2DrawNodeRange();
|
|
65187
|
+
}
|
|
65188
|
+
/**
|
|
65189
|
+
* @author xyl
|
|
65190
|
+
* @param dRoots 绘制根数组
|
|
65191
|
+
* @param paragraphNode 对应的段落
|
|
65192
|
+
* @param start 当前起始位置,绘制时不应含入
|
|
65193
|
+
* @param endIndex 结束位置 ,包含入
|
|
65194
|
+
*/
|
|
65195
|
+
//根据可放置的宽度,将普通组件转换成绘制组件
|
|
65196
|
+
}, {
|
|
65197
|
+
key: "placeDNode2DrawLine",
|
|
65198
|
+
value: function placeDNode2DrawLine(droots, paragraphNode, dline, start, endIndex) {
|
|
65199
|
+
var startIndex = start;
|
|
65200
|
+
if (startIndex >= 1) {
|
|
65201
|
+
return dline;
|
|
65202
|
+
}
|
|
65203
|
+
dline.addChild(this._drawNodes[0]);
|
|
65204
|
+
dline.drawItems.push(this._drawNodes[0]);
|
|
65205
|
+
dline.fitLines();
|
|
65206
|
+
return dline.paragraphNode.getLastDrawline();
|
|
65207
|
+
}
|
|
65208
|
+
}, {
|
|
65209
|
+
key: "setTextBorderText",
|
|
65210
|
+
value: function setTextBorderText(text) {
|
|
65211
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
65212
|
+
var sPath = hoEditorFactory.docTree.getNodeLastPath(this.previousLeaf());
|
|
65213
|
+
var ePath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
65214
|
+
var changeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(this.hoEditorFactoryID, DocTree/* DocAction */.gk.daModifyStyle, sPath, ePath);
|
|
65215
|
+
changeEvent.oldEndPath = ePath;
|
|
65216
|
+
changeEvent.oldDrawLines = new SelectRange/* SelectRange */.E(this.hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true, true);
|
|
65217
|
+
this.text = text;
|
|
65218
|
+
this.node2DrawNode();
|
|
65219
|
+
changeEvent.afterChangePath = ePath;
|
|
65220
|
+
hoEditorFactory.docTree.change(changeEvent);
|
|
65221
|
+
}
|
|
65222
|
+
}, {
|
|
65223
|
+
key: "hasChildPath",
|
|
65224
|
+
value: function hasChildPath() {
|
|
65225
|
+
return false;
|
|
65226
|
+
}
|
|
65227
|
+
}, {
|
|
65228
|
+
key: "node2Json",
|
|
65229
|
+
value: function node2Json(range, isCopy) {
|
|
65230
|
+
var retObj = {
|
|
65231
|
+
nodeType: BaseNode/* NodeType */.Jq[this.nodeType],
|
|
65232
|
+
text: this.text,
|
|
65233
|
+
styleIndex: this.styleIndex
|
|
65234
|
+
};
|
|
65235
|
+
if (isCopy) {
|
|
65236
|
+
return retObj;
|
|
65237
|
+
}
|
|
65238
|
+
return {
|
|
65239
|
+
"TextBorderNode": retObj
|
|
65240
|
+
};
|
|
65241
|
+
}
|
|
65242
|
+
}, {
|
|
65243
|
+
key: "getTagNameCn",
|
|
65244
|
+
value: function getTagNameCn() {
|
|
65245
|
+
return "文本框";
|
|
65246
|
+
}
|
|
65247
|
+
}], [{
|
|
65248
|
+
key: "json2Node",
|
|
65249
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
|
|
65250
|
+
var styleIndex = Number(json.styleIndex);
|
|
65251
|
+
return new TextBorderNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, BaseNode/* NodeType */.Jq.ntTextBorder, json.text, styleIndex);
|
|
65252
|
+
}
|
|
65253
|
+
}]);
|
|
65254
|
+
return TextBorderNode;
|
|
65255
|
+
}(ControlNode/* ControlNode */.w);
|
|
65256
|
+
|
|
65257
|
+
/***/ }),
|
|
65258
|
+
|
|
64766
65259
|
/***/ 65043:
|
|
64767
65260
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
64768
65261
|
|
|
@@ -69180,7 +69673,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
69180
69673
|
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(62358);
|
|
69181
69674
|
/* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(51760);
|
|
69182
69675
|
/* harmony import */ var _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(96635);
|
|
69183
|
-
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(
|
|
69676
|
+
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(24492);
|
|
69184
69677
|
/* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(29899);
|
|
69185
69678
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(74089);
|
|
69186
69679
|
/* harmony import */ var _editor_utils_UnitConvert__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(91404);
|
|
@@ -70025,8 +70518,8 @@ var DrawContainer = __webpack_require__(47535);
|
|
|
70025
70518
|
var DrawCombineNode = __webpack_require__(66114);
|
|
70026
70519
|
// EXTERNAL MODULE: ./src/editor/dom/domNode/Paragraph.ts
|
|
70027
70520
|
var Paragraph = __webpack_require__(53474);
|
|
70028
|
-
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawTextNode.ts +
|
|
70029
|
-
var DrawTextNode = __webpack_require__(
|
|
70521
|
+
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawTextNode.ts + 1 modules
|
|
70522
|
+
var DrawTextNode = __webpack_require__(24492);
|
|
70030
70523
|
;// CONCATENATED MODULE: ./src/editor/events/DrawChangeEvent.ts
|
|
70031
70524
|
|
|
70032
70525
|
|
|
@@ -73107,52 +73600,9 @@ var DrawFooter = /*#__PURE__*/function (_DrawPageHeaderFooter) {
|
|
|
73107
73600
|
}
|
|
73108
73601
|
return Math.max(Math.min(docHeight, this.maxHeight), hoeditfactory.pageProperty.bottomMarginPixes - hoeditfactory.pageProperty.footerYPixes);
|
|
73109
73602
|
}
|
|
73110
|
-
// public AddPage(aPage: DrawPage) {
|
|
73111
|
-
// if (this._pages.indexOf(aPage) == -1) {
|
|
73112
|
-
// this._pages.push(aPage);
|
|
73113
|
-
// const dlevel = aPage.drawDomLevel;
|
|
73114
|
-
// if (dlevel) {
|
|
73115
|
-
// dlevel.drawFooter = this;
|
|
73116
|
-
// aPage.repaint();
|
|
73117
|
-
// }
|
|
73118
|
-
// }
|
|
73119
|
-
// }
|
|
73120
|
-
// public DeletePage(aPage: DrawPage) {
|
|
73121
|
-
// const index = this._pages.indexOf(aPage);
|
|
73122
|
-
// if (index == -1) return;
|
|
73123
|
-
// this._pages[index]?.drawDomLevel?.stage.removeChild(this);
|
|
73124
|
-
// this._pages.splice(index, 1);
|
|
73125
|
-
// }
|
|
73126
|
-
// public nodify() {
|
|
73127
|
-
// if (this.rootPath != "") {
|
|
73128
|
-
// const arr = this.rootPath.split("/");
|
|
73129
|
-
// // this.drawLines = [...HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.footerDNodes[parseInt(arr[1])]];
|
|
73130
|
-
// }
|
|
73131
|
-
// this._pages.forEach((value) => {
|
|
73132
|
-
// value.refresh();
|
|
73133
|
-
// });
|
|
73134
|
-
// }
|
|
73135
73603
|
}, {
|
|
73136
73604
|
key: "paintBackground",
|
|
73137
73605
|
value: function paintBackground() {
|
|
73138
|
-
// if (this.rootPath != '') {
|
|
73139
|
-
// const arr = this.rootPath.split('/')
|
|
73140
|
-
// this.drawLines = [...HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.headerDNodes[parseInt(arr[1])]];
|
|
73141
|
-
// // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.buildDrawTree(this.rootPath);
|
|
73142
|
-
// }
|
|
73143
|
-
// const dWidth =
|
|
73144
|
-
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.widthPixes -
|
|
73145
|
-
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.leftMarginPixes -
|
|
73146
|
-
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.rightMarginPixes;
|
|
73147
|
-
// if (!this._sharp) this._sharp = new createjs.Shape();
|
|
73148
|
-
// this._sharp.graphics.clear();
|
|
73149
|
-
// this._sharp.graphics.beginFill("#FF0000").drawRect(
|
|
73150
|
-
// -1, //x
|
|
73151
|
-
// 0, //y
|
|
73152
|
-
// dWidth,
|
|
73153
|
-
// 1 //Math.max(this.dHeight, this.docHeight)
|
|
73154
|
-
// );
|
|
73155
|
-
// this.addChildAt(this._sharp, this.numChildren);
|
|
73156
73606
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(DrawFooter.prototype), "paintBackground", this).call(this);
|
|
73157
73607
|
}
|
|
73158
73608
|
}, {
|
|
@@ -73233,62 +73683,9 @@ var DrawHeader = /*#__PURE__*/function (_DrawPageHeaderFooter) {
|
|
|
73233
73683
|
get: function get() {
|
|
73234
73684
|
return Infinity;
|
|
73235
73685
|
}
|
|
73236
|
-
// public AddPage(aPage: DrawPage) {
|
|
73237
|
-
// if (this._pages.indexOf(aPage) == -1) {
|
|
73238
|
-
// this._pages.push(aPage);
|
|
73239
|
-
// const dlevel = aPage.drawDomLevel;
|
|
73240
|
-
// if (dlevel) {
|
|
73241
|
-
// dlevel.drawHeader = this;
|
|
73242
|
-
// aPage.repaint();
|
|
73243
|
-
// }
|
|
73244
|
-
// }
|
|
73245
|
-
// }
|
|
73246
|
-
// public DeletePage(aPage: DrawPage) {
|
|
73247
|
-
// const index = this._pages.indexOf(aPage);
|
|
73248
|
-
// if (index == -1) return;
|
|
73249
|
-
// this._pages[index]?.drawDomLevel?.stage.removeChild(this);
|
|
73250
|
-
// this._pages.splice(index, 1);
|
|
73251
|
-
// }
|
|
73252
|
-
// public nodify() {
|
|
73253
|
-
// if (this.rootPath != "") {
|
|
73254
|
-
// const arr = this.rootPath.split("/");
|
|
73255
|
-
// // this.drawLines = [...HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.headerDNodes[parseInt(arr[1])]];
|
|
73256
|
-
// }
|
|
73257
|
-
// this._pages.forEach((value) => {
|
|
73258
|
-
// value.refresh();
|
|
73259
|
-
// });
|
|
73260
|
-
// }
|
|
73261
|
-
// constructor(path: string, index: number, drawPage: DrawPage) {
|
|
73262
|
-
// const dTop = 0;// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.headerYPixes;
|
|
73263
|
-
// const dLeft = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.leftMarginPixes;
|
|
73264
|
-
// const dWidth = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.widthPixes - dLeft - HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.rightMarginMm;
|
|
73265
|
-
// const dHeight = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.topMarginPixes - dTop;
|
|
73266
|
-
// const maxHeight = Math.floor((HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.heightPixes - dTop) / 2 - HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.heightPixes / 5);
|
|
73267
|
-
// const maxWidth = dWidth;
|
|
73268
|
-
// super(path, index, dLeft, dTop, dWidth, dHeight, maxWidth, maxHeight)
|
|
73269
|
-
// this._allowAcrossPage = false;
|
|
73270
|
-
// this._drawPage = drawPage;
|
|
73271
|
-
// this.drawHeader();
|
|
73272
|
-
// }
|
|
73273
73686
|
}, {
|
|
73274
73687
|
key: "paintBackground",
|
|
73275
73688
|
value: function paintBackground() {
|
|
73276
|
-
// const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
73277
|
-
// const dWidth =
|
|
73278
|
-
// hoEditorFactory.pageProperty.widthPixes -
|
|
73279
|
-
// hoEditorFactory.pageProperty.leftMarginPixes -
|
|
73280
|
-
// hoEditorFactory.pageProperty.rightMarginPixes;
|
|
73281
|
-
// if (hoEditorFactory.drawTree.activePage?.drawDomLevel?.activeDrawRect != this)
|
|
73282
|
-
// return
|
|
73283
|
-
// if (!this._sharp) this._sharp = new createjs.Shape();
|
|
73284
|
-
// this._sharp.graphics.clear();
|
|
73285
|
-
// this._sharp.graphics.beginFill("#FF0000").drawRect(
|
|
73286
|
-
// -1, //x
|
|
73287
|
-
// Math.max(this.dHeight, this.actualHeight),
|
|
73288
|
-
// dWidth,
|
|
73289
|
-
// 1 //Math.max(this.dHeight, this.docHeight)
|
|
73290
|
-
// );
|
|
73291
|
-
// this.addChildAt(this._sharp, this.numChildren);
|
|
73292
73689
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(DrawHeader.prototype), "paintBackground", this).call(this);
|
|
73293
73690
|
}
|
|
73294
73691
|
}, {
|
|
@@ -81513,7 +81910,7 @@ var DrawTableFormular = /*#__PURE__*/function (_DrawSimpleNode) {
|
|
|
81513
81910
|
|
|
81514
81911
|
/***/ }),
|
|
81515
81912
|
|
|
81516
|
-
/***/
|
|
81913
|
+
/***/ 24492:
|
|
81517
81914
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
81518
81915
|
|
|
81519
81916
|
"use strict";
|
|
@@ -81543,6 +81940,12 @@ var es_object_keys = __webpack_require__(47941);
|
|
|
81543
81940
|
var es_string_ends_with = __webpack_require__(27852);
|
|
81544
81941
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
81545
81942
|
var es_function_name = __webpack_require__(68309);
|
|
81943
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
81944
|
+
var es_array_filter = __webpack_require__(57327);
|
|
81945
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
81946
|
+
var es_object_to_string = __webpack_require__(41539);
|
|
81947
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
81948
|
+
var web_dom_collections_for_each = __webpack_require__(54747);
|
|
81546
81949
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.italics.js
|
|
81547
81950
|
var es_string_italics = __webpack_require__(58734);
|
|
81548
81951
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.bold.js
|
|
@@ -81949,19 +82352,9 @@ var TextInputFieldNode = __webpack_require__(65043);
|
|
|
81949
82352
|
var DrawSimpleText = __webpack_require__(57590);
|
|
81950
82353
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/GestationNode.ts
|
|
81951
82354
|
var GestationNode = __webpack_require__(73632);
|
|
81952
|
-
// EXTERNAL MODULE: ./
|
|
81953
|
-
var
|
|
81954
|
-
|
|
81955
|
-
var es_regexp_to_string = __webpack_require__(39714);
|
|
81956
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
81957
|
-
var es_array_push = __webpack_require__(57658);
|
|
81958
|
-
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
81959
|
-
var util = __webpack_require__(62783);
|
|
81960
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/BaseNode.ts
|
|
81961
|
-
var BaseNode = __webpack_require__(62358);
|
|
81962
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ControlNode.ts
|
|
81963
|
-
var ControlNode = __webpack_require__(91105);
|
|
81964
|
-
;// CONCATENATED MODULE: ./src/editor/dom/treeNode/TextBorderNode.ts
|
|
82355
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextBorderNode.ts + 1 modules
|
|
82356
|
+
var TextBorderNode = __webpack_require__(11596);
|
|
82357
|
+
;// CONCATENATED MODULE: ./src/editor/draw/drawNode/DrawTextNode.ts
|
|
81965
82358
|
|
|
81966
82359
|
|
|
81967
82360
|
|
|
@@ -81977,185 +82370,6 @@ var ControlNode = __webpack_require__(91105);
|
|
|
81977
82370
|
|
|
81978
82371
|
|
|
81979
82372
|
|
|
81980
|
-
/*
|
|
81981
|
-
* @Author: liyanan 2441631434@qq.com
|
|
81982
|
-
* @Date: 2022-05-11 17:07:13
|
|
81983
|
-
* @LastEditors: liyanan 2441631434@qq.com
|
|
81984
|
-
* @LastEditTime: 2022-05-12 08:30:21
|
|
81985
|
-
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\GestationNode.ts
|
|
81986
|
-
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
81987
|
-
*/
|
|
81988
|
-
var TextBorderNode = /*#__PURE__*/function (_ControlNode) {
|
|
81989
|
-
(0,inherits/* default */.Z)(TextBorderNode, _ControlNode);
|
|
81990
|
-
var _super = (0,createSuper/* default */.Z)(TextBorderNode);
|
|
81991
|
-
//用来计算的日期
|
|
81992
|
-
function TextBorderNode(hoEditorFactoryID, rootNodes, pNode, nodeType, lastMenstruationDate, usedDate, styleIndex) {
|
|
81993
|
-
var _this;
|
|
81994
|
-
(0,classCallCheck/* default */.Z)(this, TextBorderNode);
|
|
81995
|
-
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
|
|
81996
|
-
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_lastMenstruationDate", "");
|
|
81997
|
-
//末次月经日期
|
|
81998
|
-
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_usedDate", "");
|
|
81999
|
-
_this._lastMenstruationDate = lastMenstruationDate;
|
|
82000
|
-
_this._usedDate = usedDate;
|
|
82001
|
-
_this._styleIndex = styleIndex;
|
|
82002
|
-
_this._text = _this.clacGestation();
|
|
82003
|
-
_this.node2DrawNodeRange(0, 0);
|
|
82004
|
-
return _this;
|
|
82005
|
-
}
|
|
82006
|
-
(0,createClass/* default */.Z)(TextBorderNode, [{
|
|
82007
|
-
key: "lastMenstruationDate",
|
|
82008
|
-
get: function get() {
|
|
82009
|
-
return this._lastMenstruationDate;
|
|
82010
|
-
},
|
|
82011
|
-
set: function set(val) {
|
|
82012
|
-
if (this._lastMenstruationDate !== val) {
|
|
82013
|
-
this._lastMenstruationDate = val;
|
|
82014
|
-
}
|
|
82015
|
-
}
|
|
82016
|
-
}, {
|
|
82017
|
-
key: "usedDate",
|
|
82018
|
-
get: function get() {
|
|
82019
|
-
return this._usedDate;
|
|
82020
|
-
},
|
|
82021
|
-
set: function set(val) {
|
|
82022
|
-
if (this._usedDate !== val) {
|
|
82023
|
-
this._usedDate = val;
|
|
82024
|
-
}
|
|
82025
|
-
}
|
|
82026
|
-
}, {
|
|
82027
|
-
key: "styleIndex",
|
|
82028
|
-
get: function get() {
|
|
82029
|
-
return this._styleIndex;
|
|
82030
|
-
},
|
|
82031
|
-
set: function set(val) {
|
|
82032
|
-
if (this._styleIndex !== Number(val)) {
|
|
82033
|
-
this._styleIndex = Number(val);
|
|
82034
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
82035
|
-
if (!hoEditorFactory.docTree.isSaveValid) {
|
|
82036
|
-
this.node2DrawNode();
|
|
82037
|
-
}
|
|
82038
|
-
}
|
|
82039
|
-
}
|
|
82040
|
-
}, {
|
|
82041
|
-
key: "clacGestation",
|
|
82042
|
-
value: function clacGestation() {
|
|
82043
|
-
var strRet = "";
|
|
82044
|
-
if ((0,util/* isDate */.J_)(this.lastMenstruationDate) && (0,util/* isDate */.J_)(this.usedDate)) {
|
|
82045
|
-
var sDate = new Date(this.lastMenstruationDate);
|
|
82046
|
-
var sTime = sDate.getTime();
|
|
82047
|
-
var eDate = new Date(this.usedDate);
|
|
82048
|
-
var eTime = eDate.getTime();
|
|
82049
|
-
var subTime = ((eTime - sTime + 1) / (1000 * 3600 * 24 * 7)).toString();
|
|
82050
|
-
var weekData = subTime.split('.');
|
|
82051
|
-
var week = Number(weekData[0]);
|
|
82052
|
-
var days = 0;
|
|
82053
|
-
if (weekData.length > 1) {
|
|
82054
|
-
days = parseInt((Number("0." + weekData[1]) * 7).toString());
|
|
82055
|
-
}
|
|
82056
|
-
strRet = week.toString() + "周+" + days.toString() + "天";
|
|
82057
|
-
}
|
|
82058
|
-
return strRet;
|
|
82059
|
-
}
|
|
82060
|
-
}, {
|
|
82061
|
-
key: "refreshDrawStyle",
|
|
82062
|
-
value: function refreshDrawStyle() {
|
|
82063
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
82064
|
-
var textStyle = hoEditorFactory.docTree.styles[this._styleIndex];
|
|
82065
|
-
var cbStyle;
|
|
82066
|
-
if (textStyle) {
|
|
82067
|
-
cbStyle = textStyle.combineStyle;
|
|
82068
|
-
} else {
|
|
82069
|
-
cbStyle = hoEditorFactory.docTree.styles[0].combineStyle;
|
|
82070
|
-
this.styleIndex = 0;
|
|
82071
|
-
}
|
|
82072
|
-
this.dStyleKey = cbStyle.getStyleKey();
|
|
82073
|
-
this.dColor = cbStyle.color;
|
|
82074
|
-
this.dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
|
|
82075
|
-
this.dCombineStyle = cbStyle;
|
|
82076
|
-
}
|
|
82077
|
-
//根据可放置的宽度,将普通组件转换成绘制组件
|
|
82078
|
-
}, {
|
|
82079
|
-
key: "node2DrawNodeRange",
|
|
82080
|
-
value: function node2DrawNodeRange(startIndex, endIndex) {
|
|
82081
|
-
this.refreshDrawStyle();
|
|
82082
|
-
var dNode = new DrawTextNode(this._hoEditorFactoryID, this._rootPath, this, 0);
|
|
82083
|
-
this._drawNodes.push(dNode);
|
|
82084
|
-
}
|
|
82085
|
-
}, {
|
|
82086
|
-
key: "node2DrawNode",
|
|
82087
|
-
value: function node2DrawNode() {
|
|
82088
|
-
this.clearDrawNodes(0, 0);
|
|
82089
|
-
this.node2DrawNodeRange(0, 0);
|
|
82090
|
-
}
|
|
82091
|
-
/**
|
|
82092
|
-
* @author xyl
|
|
82093
|
-
* @param dRoots 绘制根数组
|
|
82094
|
-
* @param paragraphNode 对应的段落
|
|
82095
|
-
* @param start 当前起始位置,绘制时不应含入
|
|
82096
|
-
* @param endIndex 结束位置 ,包含入
|
|
82097
|
-
*/
|
|
82098
|
-
//根据可放置的宽度,将普通组件转换成绘制组件
|
|
82099
|
-
}, {
|
|
82100
|
-
key: "placeDNode2DrawLine",
|
|
82101
|
-
value: function placeDNode2DrawLine(droots, paragraphNode, dline, start, endIndex) {
|
|
82102
|
-
var startIndex = start;
|
|
82103
|
-
if (startIndex >= 1) {
|
|
82104
|
-
return dline;
|
|
82105
|
-
}
|
|
82106
|
-
dline.addChild(this._drawNodes[0]);
|
|
82107
|
-
dline.drawItems.push(this._drawNodes[0]);
|
|
82108
|
-
dline.fitLines();
|
|
82109
|
-
return dline.paragraphNode.getLastDrawline();
|
|
82110
|
-
}
|
|
82111
|
-
}, {
|
|
82112
|
-
key: "hasChildPath",
|
|
82113
|
-
value: function hasChildPath() {
|
|
82114
|
-
return false;
|
|
82115
|
-
}
|
|
82116
|
-
}, {
|
|
82117
|
-
key: "node2Json",
|
|
82118
|
-
value: function node2Json(range, isCopy) {
|
|
82119
|
-
var retObj = {
|
|
82120
|
-
nodeType: BaseNode/* NodeType */.Jq[this.nodeType],
|
|
82121
|
-
lastMenstruationDate: this.lastMenstruationDate,
|
|
82122
|
-
usedDate: this.usedDate,
|
|
82123
|
-
styleIndex: this.styleIndex
|
|
82124
|
-
};
|
|
82125
|
-
if (isCopy) {
|
|
82126
|
-
return retObj;
|
|
82127
|
-
}
|
|
82128
|
-
return {
|
|
82129
|
-
"GestationNode": retObj
|
|
82130
|
-
};
|
|
82131
|
-
}
|
|
82132
|
-
}, {
|
|
82133
|
-
key: "getTagNameCn",
|
|
82134
|
-
value: function getTagNameCn() {
|
|
82135
|
-
return "孕周";
|
|
82136
|
-
}
|
|
82137
|
-
}], [{
|
|
82138
|
-
key: "json2Node",
|
|
82139
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
|
|
82140
|
-
var styleIndex = Number(json.styleIndex);
|
|
82141
|
-
return new TextBorderNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, BaseNode/* NodeType */.Jq.ntGestation, json.lastMenstruationDate, json.usedDate, styleIndex);
|
|
82142
|
-
}
|
|
82143
|
-
}]);
|
|
82144
|
-
return TextBorderNode;
|
|
82145
|
-
}(ControlNode/* ControlNode */.w);
|
|
82146
|
-
;// CONCATENATED MODULE: ./src/editor/draw/drawNode/DrawTextNode.ts
|
|
82147
|
-
|
|
82148
|
-
|
|
82149
|
-
|
|
82150
|
-
|
|
82151
|
-
|
|
82152
|
-
|
|
82153
|
-
|
|
82154
|
-
|
|
82155
|
-
|
|
82156
|
-
|
|
82157
|
-
|
|
82158
|
-
|
|
82159
82373
|
|
|
82160
82374
|
// import {DrawNode} from "./DrawSimpleNode"
|
|
82161
82375
|
|
|
@@ -82200,7 +82414,7 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82200
82414
|
_this._textNode = node;
|
|
82201
82415
|
_this._dTextShape = new createjs.Shape();
|
|
82202
82416
|
// this.redraw();
|
|
82203
|
-
if (node instanceof SpecialCharsNode/* SpecialCharsNode */.y || node instanceof GestationNode/* GestationNode */.G || node instanceof TextBorderNode) {
|
|
82417
|
+
if (node instanceof SpecialCharsNode/* SpecialCharsNode */.y || node instanceof GestationNode/* GestationNode */.G || node instanceof TextBorderNode/* TextBorderNode */.D) {
|
|
82204
82418
|
_this._text = node.text;
|
|
82205
82419
|
if (endIndex) _this._endIndex = endIndex;else _this._endIndex = _this._text.length - 1;
|
|
82206
82420
|
} else {
|
|
@@ -82383,7 +82597,6 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82383
82597
|
}
|
|
82384
82598
|
}
|
|
82385
82599
|
}
|
|
82386
|
-
// this.setBounds(0, 0, this.dWidth + this._wspace, Math.max(this.dHeight, this._lineheight));
|
|
82387
82600
|
return true;
|
|
82388
82601
|
}
|
|
82389
82602
|
/**
|
|
@@ -82394,9 +82607,7 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82394
82607
|
value: function drawBackColor() {
|
|
82395
82608
|
var backColor = this._textNode.dCombineStyle.backColor;
|
|
82396
82609
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
82397
|
-
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psPrint
|
|
82398
|
-
//&& hoEditorFactory.drawTree.paintStatus !== PaintState.psTrace
|
|
82399
|
-
) {
|
|
82610
|
+
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psPrint) {
|
|
82400
82611
|
if (this.node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
82401
82612
|
var parentNode = this.node.parentNode;
|
|
82402
82613
|
if (parentNode.inputFieldType === 0) {
|
|
@@ -82452,7 +82663,6 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82452
82663
|
}
|
|
82453
82664
|
}
|
|
82454
82665
|
}
|
|
82455
|
-
//hoEditorFactory.isEnabledGlobalColor = true;
|
|
82456
82666
|
if (hoEditorFactory.isEnabledGlobalColor) {
|
|
82457
82667
|
if (!(this.node instanceof MarkNode/* MarkNode */.j) && this.node.parentNode.inputFieldType === 0) {
|
|
82458
82668
|
backColor = "transparent";
|
|
@@ -82464,9 +82674,7 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82464
82674
|
}
|
|
82465
82675
|
}
|
|
82466
82676
|
var isReviewColor = false;
|
|
82467
|
-
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReview
|
|
82468
|
-
//|| (hoEditorFactory.drawTree.paintStatus === PaintState.psReadOnly && !hoEditorFactory.isHideComments)
|
|
82469
|
-
|| !hoEditorFactory.isHideComments) {
|
|
82677
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReview || !hoEditorFactory.isHideComments) {
|
|
82470
82678
|
var commentID = this._textNode.dCombineStyle.commentID;
|
|
82471
82679
|
var createID = this._textNode.dCombineStyle.creatorIndex;
|
|
82472
82680
|
var deleteID = this._textNode.dCombineStyle.deleterIndex;
|
|
@@ -82481,17 +82689,6 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82481
82689
|
var createLevel = createHistory ? createHistory.permissionLevel : -1;
|
|
82482
82690
|
var deleteLevel = deleteHistory ? deleteHistory.permissionLevel : -1;
|
|
82483
82691
|
var ilevel = Math.max(comLevel, createLevel, deleteLevel);
|
|
82484
|
-
// if (commentID !== "0") {
|
|
82485
|
-
// backColor = "#ffce7b";
|
|
82486
|
-
// } else if (deleteLevel >= 0) {
|
|
82487
|
-
// backColor = "#f3715c";
|
|
82488
|
-
// } else if (ilevel === 0) {
|
|
82489
|
-
// backColor = "#abc88b";
|
|
82490
|
-
// } else if (ilevel === 1) {
|
|
82491
|
-
// backColor = "#90d7ec";
|
|
82492
|
-
// } else {
|
|
82493
|
-
// backColor = "#f3715c";
|
|
82494
|
-
// }
|
|
82495
82692
|
if (ilevel > 0) {
|
|
82496
82693
|
isReviewColor = true;
|
|
82497
82694
|
}
|
|
@@ -82592,20 +82789,6 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82592
82789
|
this.addChildAt(markLine, 0);
|
|
82593
82790
|
}
|
|
82594
82791
|
}
|
|
82595
|
-
// const line1 = new createjs.Shape();
|
|
82596
|
-
// line1.graphics.clear();
|
|
82597
|
-
// line1.graphics
|
|
82598
|
-
// .beginStroke("#F31A1A")
|
|
82599
|
-
// .moveTo(x, 1 + 2 * h)
|
|
82600
|
-
// .lineTo(x + w + this._wspace + 1, 1 + 2 * h);
|
|
82601
|
-
// this.addChild(line1);
|
|
82602
|
-
// const line2 = new createjs.Shape();
|
|
82603
|
-
// line2.graphics.clear();
|
|
82604
|
-
// line2.graphics
|
|
82605
|
-
// .beginStroke("#F31A1A")
|
|
82606
|
-
// .moveTo(x, 8 * h)
|
|
82607
|
-
// .lineTo(x + w + this._wspace + 1, 8 * h);
|
|
82608
|
-
// this.addChild(line2);
|
|
82609
82792
|
}
|
|
82610
82793
|
/**
|
|
82611
82794
|
* 下划线
|
|
@@ -82618,13 +82801,8 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82618
82801
|
if (!this._ul) this._ul = new createjs.Shape();
|
|
82619
82802
|
this._ul.graphics.clear();
|
|
82620
82803
|
this._ul.graphics.beginStroke(this._textNode.dCombineStyle.color).moveTo(0, 0 + 2 * h).lineTo(this.dWidth + this._wspace + 1, 0 + 2 * h);
|
|
82621
|
-
// this._ul.graphics.clear();
|
|
82622
|
-
// this._ul.graphics
|
|
82623
|
-
// .beginFill(this._textNode.dCombineStyle.color) //"black")
|
|
82624
|
-
// .drawRect(0, 0 + 2 * h, this.dWidth + this._wspace + 1, h);
|
|
82625
82804
|
this.addChild(this._ul);
|
|
82626
82805
|
this._ul.x = -1;
|
|
82627
|
-
// srec.y = 2;
|
|
82628
82806
|
}
|
|
82629
82807
|
}
|
|
82630
82808
|
/**
|
|
@@ -82648,14 +82826,9 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82648
82826
|
key: "updateStyleByScript",
|
|
82649
82827
|
value: function updateStyleByScript() {
|
|
82650
82828
|
var tmp = null;
|
|
82651
|
-
// let rect = null;
|
|
82652
82829
|
if (this._textNode.dCombineStyle.script !== TextStyle/* StyleScriptType */.n$.sstnormal) {
|
|
82653
82830
|
tmp = this._dText.clone();
|
|
82654
82831
|
tmp.font = this.getStyle(this._textNode.dCombineStyle);
|
|
82655
|
-
// console.log(this._dText.getBounds());
|
|
82656
|
-
// console.log(this._wspace, this._dWidth, this._dHeight);
|
|
82657
|
-
// console.log(tmp);
|
|
82658
|
-
// rect = tmp.getBounds(); //实际大小
|
|
82659
82832
|
this.setBounds(0, 0, this._dWidth + this._wspace, this.dHeight);
|
|
82660
82833
|
switch (this._textNode.dCombineStyle.script) {
|
|
82661
82834
|
case TextStyle/* StyleScriptType */.n$.sstsub:
|
|
@@ -82674,20 +82847,34 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82674
82847
|
}, {
|
|
82675
82848
|
key: "updateBorder",
|
|
82676
82849
|
value: function updateBorder() {
|
|
82850
|
+
var _this2 = this;
|
|
82677
82851
|
if (!this._bd) this._bd = new createjs.Shape();
|
|
82678
|
-
|
|
82679
|
-
|
|
82680
|
-
|
|
82681
|
-
|
|
82682
|
-
|
|
82683
|
-
|
|
82684
|
-
|
|
82685
|
-
|
|
82686
|
-
|
|
82687
|
-
|
|
82688
|
-
|
|
82689
|
-
|
|
82690
|
-
|
|
82852
|
+
var textList = this._textNode.text.split("").filter(function (v) {
|
|
82853
|
+
return v != '';
|
|
82854
|
+
});
|
|
82855
|
+
if (textList.length) {
|
|
82856
|
+
this._bd.graphics.clear();
|
|
82857
|
+
var x = 0;
|
|
82858
|
+
var width = 0;
|
|
82859
|
+
textList.forEach(function (v, i) {
|
|
82860
|
+
var currentWidth = _this2._dText._getMeasuredWidth(v);
|
|
82861
|
+
_this2._bd.graphics.beginStroke(_this2._textNode.dCombineStyle.color).drawRect(x,
|
|
82862
|
+
//x
|
|
82863
|
+
-_this2.dHeight,
|
|
82864
|
+
//y
|
|
82865
|
+
currentWidth, _this2.dHeight);
|
|
82866
|
+
x = currentWidth + x;
|
|
82867
|
+
width += x;
|
|
82868
|
+
});
|
|
82869
|
+
this.dWidth = width;
|
|
82870
|
+
// this.space = 4;
|
|
82871
|
+
this._dText.letterSpacing = this.space;
|
|
82872
|
+
this.setBounds(0, -this.dHeight, this._dWidth, this.dHeight);
|
|
82873
|
+
// this._textNode.dCombineStyle.chineseWidth = this._dWidth;
|
|
82874
|
+
this._dText.x = 0;
|
|
82875
|
+
this._dText.y = 0;
|
|
82876
|
+
this.addChild(this._bd);
|
|
82877
|
+
}
|
|
82691
82878
|
}
|
|
82692
82879
|
/**
|
|
82693
82880
|
* 功能:同getStyleKey()
|
|
@@ -84545,7 +84732,6 @@ var DrawPage = /*#__PURE__*/function () {
|
|
|
84545
84732
|
hoEditorFactory.pageProperty.canvasHeadFootPos.headerY = dhheight;
|
|
84546
84733
|
hoEditorFactory.pageProperty.canvasHeadFootPos.footerY = dfheight;
|
|
84547
84734
|
// }
|
|
84548
|
-
// this.refresh();
|
|
84549
84735
|
}
|
|
84550
84736
|
/**
|
|
84551
84737
|
* 隐藏此页面上的表格边框
|
|
@@ -84821,8 +85007,8 @@ var DrawPageCell = __webpack_require__(59105);
|
|
|
84821
85007
|
var PrintStatus = __webpack_require__(82215);
|
|
84822
85008
|
// EXTERNAL MODULE: ./src/editor/draw/drawArea/DrawPageMainDoc.ts
|
|
84823
85009
|
var DrawPageMainDoc = __webpack_require__(77441);
|
|
84824
|
-
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawTextNode.ts +
|
|
84825
|
-
var DrawTextNode = __webpack_require__(
|
|
85010
|
+
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawTextNode.ts + 1 modules
|
|
85011
|
+
var DrawTextNode = __webpack_require__(24492);
|
|
84826
85012
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableFormula.ts
|
|
84827
85013
|
var TableFormula = __webpack_require__(90832);
|
|
84828
85014
|
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawSignNode.ts
|
|
@@ -87900,7 +88086,6 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
87900
88086
|
}
|
|
87901
88087
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
87902
88088
|
var dLine = hoEditorFactory.docTree.getNodeParaNode(dNode.node).getLastDrawline();
|
|
87903
|
-
if (dLine == undefined) {}
|
|
87904
88089
|
return dLine;
|
|
87905
88090
|
// throw new Error(`未找到路径${((dNode as unknown) as DrawInfos).node.getNodePath()}的绘制行`)
|
|
87906
88091
|
}
|
|
@@ -88523,10 +88708,37 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
88523
88708
|
key: "rebuildAllDrawLine",
|
|
88524
88709
|
value: function () {
|
|
88525
88710
|
var _rebuildAllDrawLine = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(needUpdateParaStyle, resolve) {
|
|
88526
|
-
var
|
|
88711
|
+
var moveCaret,
|
|
88712
|
+
hoEditorFactory,
|
|
88713
|
+
headerDocTree,
|
|
88714
|
+
i,
|
|
88715
|
+
_nodes3,
|
|
88716
|
+
dline,
|
|
88717
|
+
_startPath,
|
|
88718
|
+
_endPath,
|
|
88719
|
+
_cgEvent,
|
|
88720
|
+
footerDocTree,
|
|
88721
|
+
j,
|
|
88722
|
+
_nodes4,
|
|
88723
|
+
_dline4,
|
|
88724
|
+
_startPath2,
|
|
88725
|
+
_endPath2,
|
|
88726
|
+
_cgEvent2,
|
|
88727
|
+
nodes,
|
|
88728
|
+
_dline5,
|
|
88729
|
+
startPath,
|
|
88730
|
+
endPath,
|
|
88731
|
+
lastNode,
|
|
88732
|
+
lastNodeStyle,
|
|
88733
|
+
newParaNode,
|
|
88734
|
+
cgEvent,
|
|
88735
|
+
lastPath,
|
|
88736
|
+
selChangeEvent,
|
|
88737
|
+
_args3 = arguments;
|
|
88527
88738
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context3) {
|
|
88528
88739
|
while (1) switch (_context3.prev = _context3.next) {
|
|
88529
88740
|
case 0:
|
|
88741
|
+
moveCaret = _args3.length > 2 && _args3[2] !== undefined ? _args3[2] : true;
|
|
88530
88742
|
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawPageTree.clear;
|
|
88531
88743
|
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawPageTree.initDoc();
|
|
88532
88744
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -88539,14 +88751,14 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
88539
88751
|
}
|
|
88540
88752
|
headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
88541
88753
|
i = 0;
|
|
88542
|
-
case
|
|
88754
|
+
case 5:
|
|
88543
88755
|
if (!(i < headerDocTree.length)) {
|
|
88544
|
-
_context3.next =
|
|
88756
|
+
_context3.next = 21;
|
|
88545
88757
|
break;
|
|
88546
88758
|
}
|
|
88547
88759
|
_nodes3 = headerDocTree[i].subDocNodes;
|
|
88548
88760
|
if (!(_nodes3 && _nodes3.length > 0)) {
|
|
88549
|
-
_context3.next =
|
|
88761
|
+
_context3.next = 18;
|
|
88550
88762
|
break;
|
|
88551
88763
|
}
|
|
88552
88764
|
if (this._headerChildNodes[i].length > 0) {
|
|
@@ -88559,27 +88771,27 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
88559
88771
|
_cgEvent.needUpdateParaStyle = needUpdateParaStyle;
|
|
88560
88772
|
_cgEvent.oldEndPath = _endPath;
|
|
88561
88773
|
_cgEvent.oldDrawLines = new SelectRange/* SelectRange */.E(this._hoEditorFactoryID).getRangeDrawLines(_startPath, _endPath, true, true);
|
|
88562
|
-
_context3.next =
|
|
88774
|
+
_context3.next = 17;
|
|
88563
88775
|
return hoEditorFactory.docTree.change(_cgEvent);
|
|
88564
|
-
case
|
|
88776
|
+
case 17:
|
|
88565
88777
|
if (i <= hoEditorFactory.drawTree.drawPages.length - 1) {
|
|
88566
88778
|
hoEditorFactory.subDocManger.updateAllSameSubDoc(i, SubDocManger/* HeaderFooterType */.pi.hftHead, false, true);
|
|
88567
88779
|
}
|
|
88568
|
-
case
|
|
88780
|
+
case 18:
|
|
88569
88781
|
i++;
|
|
88570
|
-
_context3.next =
|
|
88782
|
+
_context3.next = 5;
|
|
88571
88783
|
break;
|
|
88572
|
-
case
|
|
88784
|
+
case 21:
|
|
88573
88785
|
footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
|
|
88574
88786
|
j = 0;
|
|
88575
|
-
case
|
|
88787
|
+
case 23:
|
|
88576
88788
|
if (!(j < footerDocTree.length)) {
|
|
88577
|
-
_context3.next =
|
|
88789
|
+
_context3.next = 39;
|
|
88578
88790
|
break;
|
|
88579
88791
|
}
|
|
88580
88792
|
_nodes4 = footerDocTree[j].subDocNodes;
|
|
88581
88793
|
if (!(_nodes4 && _nodes4.length > 0)) {
|
|
88582
|
-
_context3.next =
|
|
88794
|
+
_context3.next = 36;
|
|
88583
88795
|
break;
|
|
88584
88796
|
}
|
|
88585
88797
|
if (this._footerChildNodes[j].length > 0) {
|
|
@@ -88592,17 +88804,17 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
88592
88804
|
_cgEvent2.oldEndPath = _endPath2;
|
|
88593
88805
|
_cgEvent2.needUpdateParaStyle = needUpdateParaStyle;
|
|
88594
88806
|
_cgEvent2.oldDrawLines = new SelectRange/* SelectRange */.E(this._hoEditorFactoryID).getRangeDrawLines(_startPath2, _endPath2, true, true);
|
|
88595
|
-
_context3.next =
|
|
88807
|
+
_context3.next = 35;
|
|
88596
88808
|
return hoEditorFactory.docTree.change(_cgEvent2);
|
|
88597
|
-
case
|
|
88809
|
+
case 35:
|
|
88598
88810
|
if (j <= hoEditorFactory.drawTree.drawPages.length - 1) {
|
|
88599
88811
|
hoEditorFactory.subDocManger.updateAllSameSubDoc(j, SubDocManger/* HeaderFooterType */.pi.hftFoot, false, true);
|
|
88600
88812
|
}
|
|
88601
|
-
case
|
|
88813
|
+
case 36:
|
|
88602
88814
|
j++;
|
|
88603
|
-
_context3.next =
|
|
88815
|
+
_context3.next = 23;
|
|
88604
88816
|
break;
|
|
88605
|
-
case
|
|
88817
|
+
case 39:
|
|
88606
88818
|
nodes = hoEditorFactory.docTree.mainNodes;
|
|
88607
88819
|
if (this._mainChildNodes.length > 0) {
|
|
88608
88820
|
_dline5 = this._mainChildNodes[0];
|
|
@@ -88623,16 +88835,20 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
88623
88835
|
cgEvent.oldEndPath = endPath;
|
|
88624
88836
|
cgEvent.needUpdateParaStyle = needUpdateParaStyle;
|
|
88625
88837
|
cgEvent.oldDrawLines = new SelectRange/* SelectRange */.E(this._hoEditorFactoryID).getRangeDrawLines(startPath, endPath, true, true);
|
|
88626
|
-
_context3.next =
|
|
88838
|
+
_context3.next = 51;
|
|
88627
88839
|
return hoEditorFactory.docTree.change(cgEvent);
|
|
88628
|
-
case
|
|
88629
|
-
if (hoEditorFactory.docTree.curDomRange.startPath != "")
|
|
88840
|
+
case 51:
|
|
88841
|
+
if (hoEditorFactory.docTree.curDomRange.startPath != "") {
|
|
88842
|
+
if (moveCaret) {
|
|
88843
|
+
this.moveCaretToPath(hoEditorFactory.docTree.curDomRange.startPath);
|
|
88844
|
+
}
|
|
88845
|
+
} else {
|
|
88630
88846
|
lastPath = hoEditorFactory.docTree.getNodeLastPath(hoEditorFactory.docTree.mainNodes[hoEditorFactory.docTree.mainNodes.length - 1]);
|
|
88631
88847
|
selChangeEvent = new SelectionChangeEvent/* SelectionChangeEvent */.r(hoEditorFactory.docTree.curDomRange, new DomRange/* DomRange */.a(this._hoEditorFactoryID, lastPath, lastPath));
|
|
88632
88848
|
hoEditorFactory.docTree.selectChange(selChangeEvent);
|
|
88633
88849
|
}
|
|
88634
88850
|
resolve && resolve(true);
|
|
88635
|
-
case
|
|
88851
|
+
case 53:
|
|
88636
88852
|
case "end":
|
|
88637
88853
|
return _context3.stop();
|
|
88638
88854
|
}
|
|
@@ -95612,6 +95828,8 @@ var NodeConvert = /*#__PURE__*/function () {
|
|
|
95612
95828
|
paragraphText += item.text;
|
|
95613
95829
|
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType */ .Jq.ntRareChar]) {
|
|
95614
95830
|
paragraphText += item.text;
|
|
95831
|
+
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType */ .Jq.ntTextBorder]) {
|
|
95832
|
+
paragraphText += item.text;
|
|
95615
95833
|
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType */ .Jq.ntSpecialChar]) {
|
|
95616
95834
|
paragraphText += item.text;
|
|
95617
95835
|
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType */ .Jq.ntField]) {
|
|
@@ -170007,7 +170225,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
170007
170225
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
170008
170226
|
|
|
170009
170227
|
var map = {
|
|
170010
|
-
"./ControlModal.vue":
|
|
170228
|
+
"./ControlModal.vue": 10597,
|
|
170011
170229
|
"./barCode/BarCodes.vue": 39411,
|
|
170012
170230
|
"./colorPicker/HoColorPicker.vue": 10306,
|
|
170013
170231
|
"./colorPicker/HoColorPickers.vue": 98181,
|
|
@@ -170044,6 +170262,7 @@ var map = {
|
|
|
170044
170262
|
"./table/TableFormula.vue": 80199,
|
|
170045
170263
|
"./table/TableProperty.vue": 98800,
|
|
170046
170264
|
"./table/TableRowProperty.vue": 55631,
|
|
170265
|
+
"./textDialog/TextBorderDialog.vue": 52023,
|
|
170047
170266
|
"./textDialog/TextDialog.vue": 61911,
|
|
170048
170267
|
"./textDialog/TextToLabelDialog.vue": 2355,
|
|
170049
170268
|
"./textDialog/VerifyTip.vue": 74618,
|
|
@@ -207482,8 +207701,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
207482
207701
|
var es_number_constructor = __webpack_require__(9653);
|
|
207483
207702
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
207484
207703
|
var es_json_stringify = __webpack_require__(38862);
|
|
207485
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
207486
|
-
var
|
|
207704
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=3b58cf3f&
|
|
207705
|
+
var HoDocvue_type_template_id_3b58cf3f_render = function render() {
|
|
207487
207706
|
var _vm = this,
|
|
207488
207707
|
_c = _vm._self._c;
|
|
207489
207708
|
return _c('div', {
|
|
@@ -207684,7 +207903,7 @@ var HoDocvue_type_template_id_1993340c_render = function render() {
|
|
|
207684
207903
|
}
|
|
207685
207904
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
207686
207905
|
};
|
|
207687
|
-
var
|
|
207906
|
+
var HoDocvue_type_template_id_3b58cf3f_staticRenderFns = [];
|
|
207688
207907
|
|
|
207689
207908
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
207690
207909
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -208141,7 +208360,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
208141
208360
|
hoEditorFactory.docTree.selectChange(selectChangeEvent);
|
|
208142
208361
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
208143
208362
|
}
|
|
208144
|
-
if (!(np.node.nodeType === BaseNode/* NodeType */.Jq.ntMedicalExpression || np.node.nodeType === BaseNode/* NodeType */.Jq.ntControl && !(np.node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) || ((_np$node$parentNode = np.node.parentNode) === null || _np$node$parentNode === void 0 ? void 0 : _np$node$parentNode.nodeType) === BaseNode/* NodeType */.Jq.ntField || np.node.nodeType === BaseNode/* NodeType */.Jq.ntSign || np.node.nodeType === BaseNode/* NodeType */.Jq.ntGestation || np.node.nodeType === BaseNode/* NodeType */.Jq.ntImage)) {
|
|
208363
|
+
if (!(np.node.nodeType === BaseNode/* NodeType */.Jq.ntMedicalExpression || np.node.nodeType === BaseNode/* NodeType */.Jq.ntControl && !(np.node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) || ((_np$node$parentNode = np.node.parentNode) === null || _np$node$parentNode === void 0 ? void 0 : _np$node$parentNode.nodeType) === BaseNode/* NodeType */.Jq.ntField || np.node.nodeType === BaseNode/* NodeType */.Jq.ntSign || np.node.nodeType === BaseNode/* NodeType */.Jq.ntGestation || np.node.nodeType === BaseNode/* NodeType */.Jq.ntImage || np.node.nodeType === BaseNode/* NodeType */.Jq.ntTextBorder)) {
|
|
208145
208364
|
_context.next = 39;
|
|
208146
208365
|
break;
|
|
208147
208366
|
}
|
|
@@ -210675,7 +210894,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
210675
210894
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
210676
210895
|
var ParagraphNode = __webpack_require__(67945);
|
|
210677
210896
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
210678
|
-
/* harmony default export */ var version = ('3.1.
|
|
210897
|
+
/* harmony default export */ var version = ('3.1.157');
|
|
210679
210898
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
210680
210899
|
var PoperTipText = __webpack_require__(84531);
|
|
210681
210900
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -210685,6 +210904,8 @@ var PoperTipText = __webpack_require__(84531);
|
|
|
210685
210904
|
var ImageNode = __webpack_require__(97186);
|
|
210686
210905
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableNode.ts
|
|
210687
210906
|
var TableNode = __webpack_require__(5010);
|
|
210907
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextBorderNode.ts + 1 modules
|
|
210908
|
+
var TextBorderNode = __webpack_require__(11596);
|
|
210688
210909
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
210689
210910
|
|
|
210690
210911
|
|
|
@@ -210724,6 +210945,7 @@ var TableNode = __webpack_require__(5010);
|
|
|
210724
210945
|
|
|
210725
210946
|
|
|
210726
210947
|
|
|
210948
|
+
|
|
210727
210949
|
|
|
210728
210950
|
|
|
210729
210951
|
var scaleXY = DrawConfig/* DrawConfig */.f.instance().scale;
|
|
@@ -211201,6 +211423,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
211201
211423
|
});
|
|
211202
211424
|
this.poperType = '';
|
|
211203
211425
|
return;
|
|
211426
|
+
} else if (node instanceof TextBorderNode/* TextBorderNode */.D) {
|
|
211427
|
+
this.hoEditorProvider.setControlProperty('text-border', 'update', '');
|
|
211428
|
+
// this.hoEditorProvider.setUpdateNodeValue(node);
|
|
211429
|
+
return;
|
|
211204
211430
|
} else {
|
|
211205
211431
|
if (paintStatus === DrawTree/* PaintState */.Dh.psReview) {
|
|
211206
211432
|
if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
@@ -211714,10 +211940,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
211714
211940
|
});
|
|
211715
211941
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
211716
211942
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
211717
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
211943
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=3b58cf3f&prod&lang=less&
|
|
211718
211944
|
// extracted by mini-css-extract-plugin
|
|
211719
211945
|
|
|
211720
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
211946
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=3b58cf3f&prod&lang=less&
|
|
211721
211947
|
|
|
211722
211948
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
211723
211949
|
|
|
@@ -211730,8 +211956,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
211730
211956
|
|
|
211731
211957
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
211732
211958
|
components_HoDocvue_type_script_lang_js_,
|
|
211733
|
-
|
|
211734
|
-
|
|
211959
|
+
HoDocvue_type_template_id_3b58cf3f_render,
|
|
211960
|
+
HoDocvue_type_template_id_3b58cf3f_staticRenderFns,
|
|
211735
211961
|
false,
|
|
211736
211962
|
null,
|
|
211737
211963
|
null,
|
|
@@ -212813,7 +213039,6 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
212813
213039
|
// )
|
|
212814
213040
|
// );
|
|
212815
213041
|
// }
|
|
212816
|
-
// this.refresh();
|
|
212817
213042
|
}
|
|
212818
213043
|
}, {
|
|
212819
213044
|
key: "getMainRootArea",
|
|
@@ -212989,9 +213214,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
212989
213214
|
// dPage.storeDrawHeader.dWidth = widthPixes;
|
|
212990
213215
|
// dPage.storeDrawHeader.maxWidth = widthPixes;
|
|
212991
213216
|
dPage.storeDrawHeader.docWidth = docWidth;
|
|
212992
|
-
// dPage.reFreshBounds();
|
|
212993
213217
|
}
|
|
212994
|
-
|
|
212995
213218
|
for (var _i3 = 0; _i3 < this._drawMainDocs.length; _i3++) {
|
|
212996
213219
|
var _area2 = this._drawMainDocs[_i3];
|
|
212997
213220
|
// area.dWidth = widthPixes;
|
|
@@ -214871,6 +215094,7 @@ var PopQScoreNode = __webpack_require__(12790);
|
|
|
214871
215094
|
|
|
214872
215095
|
|
|
214873
215096
|
|
|
215097
|
+
|
|
214874
215098
|
|
|
214875
215099
|
|
|
214876
215100
|
var StructureConvert = /*#__PURE__*/function () {
|
|
@@ -216642,6 +216866,8 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
216642
216866
|
return SeparateCharNode/* SeparateCharNode */.O.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
216643
216867
|
} else if (temp.nodeType == BaseNode/* NodeType */.Jq.ntLabel) {
|
|
216644
216868
|
return LabelNode/* LabelNode */.P.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
216869
|
+
} else if (temp.nodeType == BaseNode/* NodeType */.Jq.ntTextBorder) {
|
|
216870
|
+
return TextBorderNode/* TextBorderNode */.D.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
216645
216871
|
} else if (temp.nodeType == BaseNode/* NodeType */.Jq.ntSign) {
|
|
216646
216872
|
return SignNode/* SignNode */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isClearSign, isPaste);
|
|
216647
216873
|
} else if (temp.nodeType == BaseNode/* NodeType */.Jq.ntGestation) {
|
|
@@ -217531,6 +217757,9 @@ var TOHTMLConverter = /*#__PURE__*/function () {
|
|
|
217531
217757
|
this.convert.set(BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntLabel], function (val) {
|
|
217532
217758
|
return _this.TransText(val);
|
|
217533
217759
|
});
|
|
217760
|
+
this.convert.set(BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntTextBorder], function (val) {
|
|
217761
|
+
return _this.TransText(val);
|
|
217762
|
+
});
|
|
217534
217763
|
this.convert.set(BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntSign], function (val) {
|
|
217535
217764
|
return _this.TransText(val);
|
|
217536
217765
|
});
|
|
@@ -217644,20 +217873,17 @@ var TOHTMLConverter = /*#__PURE__*/function () {
|
|
|
217644
217873
|
var str = "";
|
|
217645
217874
|
if (jnode.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntText]) {
|
|
217646
217875
|
str += jnode.text;
|
|
217647
|
-
}
|
|
217648
|
-
if (jnode.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntLabel]) {
|
|
217876
|
+
} else if (jnode.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntLabel]) {
|
|
217649
217877
|
str += jnode.text;
|
|
217650
|
-
}
|
|
217651
|
-
if (jnode.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntRareChar]) {
|
|
217878
|
+
} else if (jnode.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntTextBorder]) {
|
|
217652
217879
|
str += jnode.text;
|
|
217653
|
-
}
|
|
217654
|
-
if (jnode.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntSpecialChar]) {
|
|
217880
|
+
} else if (jnode.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntRareChar]) {
|
|
217655
217881
|
str += jnode.text;
|
|
217656
|
-
}
|
|
217657
|
-
if (jnode.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntControl]) {
|
|
217882
|
+
} else if (jnode.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntSpecialChar]) {
|
|
217658
217883
|
str += jnode.text;
|
|
217659
|
-
}
|
|
217660
|
-
|
|
217884
|
+
} else if (jnode.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntControl]) {
|
|
217885
|
+
str += jnode.text;
|
|
217886
|
+
} else if (jnode.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType */.Jq.ntSign]) {
|
|
217661
217887
|
if (jnode.type == "2") {
|
|
217662
217888
|
str += jnode.imgSrc;
|
|
217663
217889
|
}
|
|
@@ -220243,7 +220469,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220243
220469
|
}
|
|
220244
220470
|
}
|
|
220245
220471
|
/**
|
|
220246
|
-
*
|
|
220472
|
+
* 插入生僻字
|
|
220247
220473
|
* @param operType 操作类型 "add"新增
|
|
220248
220474
|
* @param chars 字符
|
|
220249
220475
|
*/
|
|
@@ -220262,6 +220488,25 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220262
220488
|
}
|
|
220263
220489
|
}
|
|
220264
220490
|
}
|
|
220491
|
+
/**
|
|
220492
|
+
* 设置文本框元素
|
|
220493
|
+
* @param text 文本内容
|
|
220494
|
+
*/
|
|
220495
|
+
}, {
|
|
220496
|
+
key: "insertTextBorder",
|
|
220497
|
+
value: function insertTextBorder(text) {
|
|
220498
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220499
|
+
var result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
|
|
220500
|
+
if (result) {
|
|
220501
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
220502
|
+
var startPath = _curDomRange.normalize().startPath;
|
|
220503
|
+
var endPath = _curDomRange.normalize().endPath;
|
|
220504
|
+
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.insertRareChar);
|
|
220505
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
220506
|
+
hoEditorFactory.docController.insertTextBorder('add', _curDomRange, text, hoEditorFactory.docTree.curStyleIndex);
|
|
220507
|
+
}
|
|
220508
|
+
}
|
|
220509
|
+
}
|
|
220265
220510
|
/**
|
|
220266
220511
|
* 插入链接按钮
|
|
220267
220512
|
* @param operType 操作类型 "add"新增
|
|
@@ -238239,6 +238484,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238239
238484
|
}
|
|
238240
238485
|
return _context3.abrupt("return");
|
|
238241
238486
|
case 2:
|
|
238487
|
+
console.time('create_base64_all_time');
|
|
238242
238488
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID); // 保存打印前文档状态 和 内容
|
|
238243
238489
|
path = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
238244
238490
|
beforePrintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
@@ -238255,23 +238501,25 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238255
238501
|
this.PDF = null;
|
|
238256
238502
|
this.PDF = new jspdf(options);
|
|
238257
238503
|
hPromise = Promise.resolve();
|
|
238504
|
+
console.time("rebuild_time");
|
|
238258
238505
|
hPromise = hPromise.then(function () {
|
|
238259
238506
|
return new Promise(function (resolve) {
|
|
238260
238507
|
hoEditorFactory.printStatus.printMode = 0;
|
|
238261
238508
|
hoEditorFactory.drawTree.paintStatus = DrawTree/* PaintState */.Dh.psPreview;
|
|
238262
|
-
hoEditorFactory.drawTree.rebuildAllDrawLine(false, resolve);
|
|
238509
|
+
hoEditorFactory.drawTree.rebuildAllDrawLine(false, resolve, false);
|
|
238263
238510
|
});
|
|
238264
238511
|
});
|
|
238512
|
+
console.timeEnd("rebuild_time");
|
|
238513
|
+
console.time("create_time");
|
|
238265
238514
|
hPromise = hPromise.then(function () {
|
|
238266
238515
|
return new Promise(function (resolve) {
|
|
238267
238516
|
PrintStatus/* Print */.Kh.createPDFBase64(_this2._hoEditorFactoryID, resolve, _this2.PDF);
|
|
238268
238517
|
});
|
|
238269
238518
|
});
|
|
238270
|
-
_context3.next =
|
|
238519
|
+
_context3.next = 20;
|
|
238271
238520
|
return hPromise.then(function (pageNumber) {
|
|
238272
|
-
//
|
|
238273
|
-
hoEditorFactory.
|
|
238274
|
-
hoEditorFactory.vueController.openXml(xml);
|
|
238521
|
+
// hoEditorFactory.drawTree.paintStatus = beforePrintStatus;
|
|
238522
|
+
// hoEditorFactory.vueController.openXml(xml);
|
|
238275
238523
|
// this.PDF.deletePage(1);
|
|
238276
238524
|
var otherPageNumber = _this2.PDF.internal.getNumberOfPages() - pageNumber;
|
|
238277
238525
|
if (otherPageNumber >= 2) {
|
|
@@ -238292,6 +238540,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238292
238540
|
} else {
|
|
238293
238541
|
pdf = _this2.PDF.output('datauristring');
|
|
238294
238542
|
}
|
|
238543
|
+
console.timeEnd("create_time");
|
|
238295
238544
|
if (callback) {
|
|
238296
238545
|
callback && callback({
|
|
238297
238546
|
page: pageNumber,
|
|
@@ -238301,26 +238550,31 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238301
238550
|
resolves(pdf);
|
|
238302
238551
|
});
|
|
238303
238552
|
});
|
|
238304
|
-
case
|
|
238553
|
+
case 20:
|
|
238305
238554
|
base64 = _context3.sent;
|
|
238306
238555
|
if (!base64) {
|
|
238307
|
-
_context3.next =
|
|
238556
|
+
_context3.next = 29;
|
|
238308
238557
|
break;
|
|
238309
238558
|
}
|
|
238310
238559
|
setTimeout(function () {
|
|
238560
|
+
console.time('restore_time');
|
|
238561
|
+
hoEditorFactory.drawTree.paintStatus = beforePrintStatus;
|
|
238562
|
+
hoEditorFactory.vueController.openXml(xml);
|
|
238311
238563
|
hoEditorFactory.vueController.moveCaretToPath(path);
|
|
238564
|
+
console.timeEnd('restore_time');
|
|
238312
238565
|
_this2.clearJsPDF();
|
|
238313
238566
|
}, 0);
|
|
238567
|
+
console.timeEnd('create_base64_all_time');
|
|
238314
238568
|
if (!(pdfPath == 'url')) {
|
|
238315
|
-
_context3.next =
|
|
238569
|
+
_context3.next = 28;
|
|
238316
238570
|
break;
|
|
238317
238571
|
}
|
|
238318
238572
|
return _context3.abrupt("return", base64);
|
|
238319
|
-
case
|
|
238573
|
+
case 28:
|
|
238320
238574
|
return _context3.abrupt("return", base64.replace(/^data:application\/pdf;filename=generated.pdf;base64,/, ''));
|
|
238321
|
-
case
|
|
238575
|
+
case 29:
|
|
238322
238576
|
return _context3.abrupt("return", null);
|
|
238323
|
-
case
|
|
238577
|
+
case 30:
|
|
238324
238578
|
case "end":
|
|
238325
238579
|
return _context3.stop();
|
|
238326
238580
|
}
|
|
@@ -241390,7 +241644,7 @@ var HoFooter_component = (0,componentNormalizer/* default */.Z)(
|
|
|
241390
241644
|
|
|
241391
241645
|
/* harmony default export */ var HoFooter = (HoFooter_component.exports);
|
|
241392
241646
|
// EXTERNAL MODULE: ./src/components/controls/ControlModal.vue + 3 modules
|
|
241393
|
-
var ControlModal = __webpack_require__(
|
|
241647
|
+
var ControlModal = __webpack_require__(10597);
|
|
241394
241648
|
// EXTERNAL MODULE: ./src/components/controls/findReplace/FindReplace.vue + 5 modules
|
|
241395
241649
|
var FindReplace = __webpack_require__(98064);
|
|
241396
241650
|
;// CONCATENATED MODULE: ./src/components/controls/findReplace/index.ts
|
|
@@ -242551,8 +242805,8 @@ var HoDocs_component = (0,componentNormalizer/* default */.Z)(
|
|
|
242551
242805
|
)
|
|
242552
242806
|
|
|
242553
242807
|
/* harmony default export */ var HoDocs = (HoDocs_component.exports);
|
|
242554
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=template&id=
|
|
242555
|
-
var
|
|
242808
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=template&id=595248f8&
|
|
242809
|
+
var ToolBarvue_type_template_id_595248f8_render = function render() {
|
|
242556
242810
|
var _vm = this,
|
|
242557
242811
|
_c = _vm._self._c;
|
|
242558
242812
|
return _c('div', {
|
|
@@ -242785,7 +243039,7 @@ var ToolBarvue_type_template_id_2bbec870_render = function render() {
|
|
|
242785
243039
|
}, [_vm._v(_vm._s(item.title))]);
|
|
242786
243040
|
}), 1)], 1) : _vm._e()], 1);
|
|
242787
243041
|
};
|
|
242788
|
-
var
|
|
243042
|
+
var ToolBarvue_type_template_id_595248f8_staticRenderFns = [];
|
|
242789
243043
|
|
|
242790
243044
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoMedicalExpression.vue?vue&type=template&id=079ade04&
|
|
242791
243045
|
var HoMedicalExpressionvue_type_template_id_079ade04_render = function render() {
|
|
@@ -245137,8 +245391,8 @@ var ToolBarChild_component = (0,componentNormalizer/* default */.Z)(
|
|
|
245137
245391
|
)
|
|
245138
245392
|
|
|
245139
245393
|
/* harmony default export */ var ToolBarChild = (ToolBarChild_component.exports);
|
|
245140
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/ToolControl.vue?vue&type=template&id=
|
|
245141
|
-
var
|
|
245394
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/ToolControl.vue?vue&type=template&id=2edb7b26&
|
|
245395
|
+
var ToolControlvue_type_template_id_2edb7b26_render = function render() {
|
|
245142
245396
|
var _vm = this,
|
|
245143
245397
|
_c = _vm._self._c;
|
|
245144
245398
|
return _c('div', {
|
|
@@ -245389,7 +245643,14 @@ var ToolControlvue_type_template_id_5eea3dcd_render = function render() {
|
|
|
245389
245643
|
attrs: {
|
|
245390
245644
|
"d": "M761.417143 282.331429L416.182857 628.297143 223.817143 438.857143A58.514286 58.514286 0 0 0 146.285714 438.857143a58.514286 58.514286 0 0 0 0 73.142857l230.4 230.4a90.697143 90.697143 0 0 0 38.765715 13.165714 67.291429 67.291429 0 0 0 38.034285-13.165714l384-384a47.542857 47.542857 0 0 0 0-76.8 58.514286 58.514286 0 0 0-76.068571 0.731429z"
|
|
245391
245645
|
}
|
|
245392
|
-
})]), _c('span', [_vm._v("复选框")])]) : _vm._e(), _vm.insert.
|
|
245646
|
+
})]), _c('span', [_vm._v("复选框")])]) : _vm._e(), _vm.insert.textBorder ? _c('div', {
|
|
245647
|
+
staticClass: "ho-emr-tool-item",
|
|
245648
|
+
on: {
|
|
245649
|
+
"click": function click($event) {
|
|
245650
|
+
return _vm.createControl('text-border');
|
|
245651
|
+
}
|
|
245652
|
+
}
|
|
245653
|
+
}, [_c('span', [_vm._v("文本框")])]) : _vm._e(), _vm.insert.rareword ? _c('div', {
|
|
245393
245654
|
staticClass: "ho-emr-tool-item",
|
|
245394
245655
|
on: {
|
|
245395
245656
|
"click": _vm.createRarewords
|
|
@@ -245436,7 +245697,7 @@ var ToolControlvue_type_template_id_5eea3dcd_render = function render() {
|
|
|
245436
245697
|
}
|
|
245437
245698
|
}, [_c('span', [_vm._v("特殊字符")])]) : _vm._e()], 2);
|
|
245438
245699
|
};
|
|
245439
|
-
var
|
|
245700
|
+
var ToolControlvue_type_template_id_2edb7b26_staticRenderFns = [];
|
|
245440
245701
|
|
|
245441
245702
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoDateTime.vue?vue&type=template&id=6b089050&
|
|
245442
245703
|
var HoDateTimevue_type_template_id_6b089050_render = function render() {
|
|
@@ -245767,8 +246028,8 @@ var ajax = __webpack_require__(79969);
|
|
|
245767
246028
|
;
|
|
245768
246029
|
var ToolControl_component = (0,componentNormalizer/* default */.Z)(
|
|
245769
246030
|
insert_ToolControlvue_type_script_lang_js_,
|
|
245770
|
-
|
|
245771
|
-
|
|
246031
|
+
ToolControlvue_type_template_id_2edb7b26_render,
|
|
246032
|
+
ToolControlvue_type_template_id_2edb7b26_staticRenderFns,
|
|
245772
246033
|
false,
|
|
245773
246034
|
null,
|
|
245774
246035
|
null,
|
|
@@ -246697,6 +246958,8 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
246697
246958
|
// 特殊字符
|
|
246698
246959
|
gestation: true,
|
|
246699
246960
|
// 孕周
|
|
246961
|
+
textBorder: true,
|
|
246962
|
+
// 文本框
|
|
246700
246963
|
rareword: true,
|
|
246701
246964
|
// 生僻字
|
|
246702
246965
|
link: true,
|
|
@@ -247177,10 +247440,10 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
247177
247440
|
});
|
|
247178
247441
|
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=script&lang=js&
|
|
247179
247442
|
/* harmony default export */ var toolbar_ToolBarvue_type_script_lang_js_ = (ToolBarvue_type_script_lang_js_);
|
|
247180
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=
|
|
247443
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=595248f8&prod&lang=less&
|
|
247181
247444
|
// extracted by mini-css-extract-plugin
|
|
247182
247445
|
|
|
247183
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=
|
|
247446
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=595248f8&prod&lang=less&
|
|
247184
247447
|
|
|
247185
247448
|
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue
|
|
247186
247449
|
|
|
@@ -247193,8 +247456,8 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
247193
247456
|
|
|
247194
247457
|
var ToolBar_component = (0,componentNormalizer/* default */.Z)(
|
|
247195
247458
|
toolbar_ToolBarvue_type_script_lang_js_,
|
|
247196
|
-
|
|
247197
|
-
|
|
247459
|
+
ToolBarvue_type_template_id_595248f8_render,
|
|
247460
|
+
ToolBarvue_type_template_id_595248f8_staticRenderFns,
|
|
247198
247461
|
false,
|
|
247199
247462
|
null,
|
|
247200
247463
|
null,
|
|
@@ -248491,6 +248754,7 @@ var HoRightMenu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
248491
248754
|
|
|
248492
248755
|
|
|
248493
248756
|
|
|
248757
|
+
|
|
248494
248758
|
|
|
248495
248759
|
|
|
248496
248760
|
/* harmony default export */ var HoDefaultProvidervue_type_script_lang_js_ = ({
|
|
@@ -248668,6 +248932,8 @@ var HoRightMenu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
248668
248932
|
}
|
|
248669
248933
|
} else if (node instanceof LabelNode/* LabelNode */.P) {
|
|
248670
248934
|
this.rightType = 'label';
|
|
248935
|
+
} else if (node instanceof TextBorderNode/* TextBorderNode */.D) {
|
|
248936
|
+
this.rightType = 'text-border';
|
|
248671
248937
|
} else if (node instanceof SignNode/* SignNode */.N) {
|
|
248672
248938
|
this.rightType = 'sign';
|
|
248673
248939
|
} else if (node instanceof SeparateCharNode/* SeparateCharNode */.O) {
|
|
@@ -248735,11 +249001,13 @@ var HoRightMenu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
248735
249001
|
}
|
|
248736
249002
|
},
|
|
248737
249003
|
getCurrentSelectNode: function getCurrentSelectNode() {
|
|
248738
|
-
var _hoEditorFactory$docT;
|
|
248739
|
-
var value;
|
|
249004
|
+
var _hoEditorFactory$docT, _hoEditorFactory$docT2;
|
|
249005
|
+
var value = null;
|
|
248740
249006
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.activeDocId);
|
|
248741
249007
|
var startPos = hoEditorFactory.drawTree.selectRange.spStart;
|
|
249008
|
+
var endPos = hoEditorFactory.drawTree.selectRange.spEnd;
|
|
248742
249009
|
var node = (_hoEditorFactory$docT = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)) === null || _hoEditorFactory$docT === void 0 ? void 0 : _hoEditorFactory$docT.node;
|
|
249010
|
+
var endNode = (_hoEditorFactory$docT2 = hoEditorFactory.docTree.findNodePositionByPath(endPos.path)) === null || _hoEditorFactory$docT2 === void 0 ? void 0 : _hoEditorFactory$docT2.node;
|
|
248743
249011
|
if (node instanceof MarkNode/* MarkNode */.j || node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
248744
249012
|
var parentNode = node.parentNode;
|
|
248745
249013
|
if (parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
@@ -248756,7 +249024,9 @@ var HoRightMenu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
248756
249024
|
}
|
|
248757
249025
|
} else if (node instanceof ParagraphNode/* ParagraphNode */.C && node.parentNode instanceof CellNode/* CellNode */.D) {
|
|
248758
249026
|
value = node.parentNode;
|
|
248759
|
-
} else if (node instanceof
|
|
249027
|
+
} else if (node instanceof ParagraphNode/* ParagraphNode */.C && endNode instanceof TextBorderNode/* TextBorderNode */.D) {
|
|
249028
|
+
value = endNode;
|
|
249029
|
+
} else if (node instanceof DateTimeNode/* DateTimeNode */.Z || node instanceof DownListNode/* DownListNode */.yF || node instanceof BarcodeNode/* BarcodeNode */.T || node instanceof QrcodeNode/* QrcodeNode */.d || node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh || node instanceof ImageNode/* ImageNode */.H || node instanceof LabelNode/* LabelNode */.P || node instanceof TextBorderNode/* TextBorderNode */.D || node instanceof SignNode/* SignNode */.N || node instanceof SeparateCharNode/* SeparateCharNode */.O || node instanceof TableFormula/* TableFormula */.N) {
|
|
248760
249030
|
value = node;
|
|
248761
249031
|
}
|
|
248762
249032
|
return value;
|