hoeditor-web 3.1.110 → 3.1.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.css +17969 -1
- package/lib/hoeditor.umd.js +642 -617
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -5200,7 +5200,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
5200
5200
|
|
|
5201
5201
|
/***/ }),
|
|
5202
5202
|
|
|
5203
|
-
/***/
|
|
5203
|
+
/***/ 64362:
|
|
5204
5204
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5205
5205
|
|
|
5206
5206
|
"use strict";
|
|
@@ -5222,7 +5222,7 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
5222
5222
|
var es_regexp_exec = __webpack_require__(74916);
|
|
5223
5223
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
5224
5224
|
var es_string_replace = __webpack_require__(15306);
|
|
5225
|
-
;// 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/dateDialog/DateDialog.vue?vue&type=template&id=
|
|
5225
|
+
;// 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/dateDialog/DateDialog.vue?vue&type=template&id=58852ca2&
|
|
5226
5226
|
|
|
5227
5227
|
|
|
5228
5228
|
|
|
@@ -5497,7 +5497,7 @@ var render = function render() {
|
|
|
5497
5497
|
};
|
|
5498
5498
|
var staticRenderFns = [];
|
|
5499
5499
|
|
|
5500
|
-
;// CONCATENATED MODULE: ./src/components/controls/dateDialog/DateDialog.vue?vue&type=template&id=
|
|
5500
|
+
;// CONCATENATED MODULE: ./src/components/controls/dateDialog/DateDialog.vue?vue&type=template&id=58852ca2&
|
|
5501
5501
|
|
|
5502
5502
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
5503
5503
|
var objectSpread2 = __webpack_require__(63442);
|
|
@@ -5717,17 +5717,8 @@ var zh_cn = __webpack_require__(83839);
|
|
|
5717
5717
|
this.vueController.insertDateTime(this.controlStatus, JSON.stringify(params));
|
|
5718
5718
|
} else if (this.controlStatus === 'update') {
|
|
5719
5719
|
this.clearWatchProps();
|
|
5720
|
-
this.
|
|
5721
|
-
this
|
|
5722
|
-
if (Object.keys(_this3.modifyProps).length) {
|
|
5723
|
-
_this3.modifyProps['customProperty'] = (0,objectSpread2/* default */.Z)({}, customProperty);
|
|
5724
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this3.hoEditorFactoryId);
|
|
5725
|
-
var record = hoEditorFactory.docTree.elementChangeRecords.get(_this3.id + '|' + _this3.dataId);
|
|
5726
|
-
if (!record || record.indexOf('add') < 0) {
|
|
5727
|
-
hoEditorFactory.docTree.elementChangeRecords.set(_this3.id + '|' + _this3.dataId, ['update', (0,objectSpread2/* default */.Z)({}, _this3.modifyProps)]);
|
|
5728
|
-
}
|
|
5729
|
-
}
|
|
5730
|
-
});
|
|
5720
|
+
this.modifyProps['customProperty'] = (0,objectSpread2/* default */.Z)({}, customProperty);
|
|
5721
|
+
this.vueController.updateDateTime(JSON.stringify(params), (0,objectSpread2/* default */.Z)({}, this.modifyProps));
|
|
5731
5722
|
}
|
|
5732
5723
|
this.$nextTick(function () {
|
|
5733
5724
|
return _this3.handleClose();
|
|
@@ -5741,10 +5732,10 @@ var zh_cn = __webpack_require__(83839);
|
|
|
5741
5732
|
});
|
|
5742
5733
|
;// CONCATENATED MODULE: ./src/components/controls/dateDialog/DateDialog.vue?vue&type=script&lang=js&
|
|
5743
5734
|
/* harmony default export */ var dateDialog_DateDialogvue_type_script_lang_js_ = (DateDialogvue_type_script_lang_js_);
|
|
5744
|
-
;// 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/dateDialog/DateDialog.vue?vue&type=style&index=0&id=
|
|
5735
|
+
;// 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/dateDialog/DateDialog.vue?vue&type=style&index=0&id=58852ca2&prod&lang=less&
|
|
5745
5736
|
// extracted by mini-css-extract-plugin
|
|
5746
5737
|
|
|
5747
|
-
;// CONCATENATED MODULE: ./src/components/controls/dateDialog/DateDialog.vue?vue&type=style&index=0&id=
|
|
5738
|
+
;// CONCATENATED MODULE: ./src/components/controls/dateDialog/DateDialog.vue?vue&type=style&index=0&id=58852ca2&prod&lang=less&
|
|
5748
5739
|
|
|
5749
5740
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
5750
5741
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -22796,7 +22787,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
22796
22787
|
|
|
22797
22788
|
/***/ }),
|
|
22798
22789
|
|
|
22799
|
-
/***/
|
|
22790
|
+
/***/ 49594:
|
|
22800
22791
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
22801
22792
|
|
|
22802
22793
|
"use strict";
|
|
@@ -22810,7 +22801,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
22810
22801
|
|
|
22811
22802
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
22812
22803
|
var es_function_name = __webpack_require__(68309);
|
|
22813
|
-
;// 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/TextDialog.vue?vue&type=template&id=
|
|
22804
|
+
;// 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/TextDialog.vue?vue&type=template&id=407078ae&
|
|
22814
22805
|
|
|
22815
22806
|
var render = function render() {
|
|
22816
22807
|
var _vm = this,
|
|
@@ -23340,7 +23331,7 @@ var render = function render() {
|
|
|
23340
23331
|
};
|
|
23341
23332
|
var staticRenderFns = [];
|
|
23342
23333
|
|
|
23343
|
-
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=
|
|
23334
|
+
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=407078ae&
|
|
23344
23335
|
|
|
23345
23336
|
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/message/style/index.js + 1 modules
|
|
23346
23337
|
var style = __webpack_require__(94310);
|
|
@@ -23638,7 +23629,9 @@ var VerifyTip = __webpack_require__(74618);
|
|
|
23638
23629
|
this.vueController.insertTextInputField(this.controlStatus, this.textParam);
|
|
23639
23630
|
} else if (this.controlStatus === 'update') {
|
|
23640
23631
|
this.clearWatchProps();
|
|
23641
|
-
this.modifyProps['customProperty'] =
|
|
23632
|
+
this.modifyProps['customProperty'] = (0,objectSpread2/* default */.Z)({}, customProperty);
|
|
23633
|
+
this.modifyProps['includesKeyword'] = this.textParam.includesKeyword;
|
|
23634
|
+
this.modifyProps['valueArea'] = this.textParam.valueArea;
|
|
23642
23635
|
if (this.textParam.inputFieldType == 1) {
|
|
23643
23636
|
this.modifyProps['downListProperty'] = this.textParam.downListProperty;
|
|
23644
23637
|
}
|
|
@@ -23667,10 +23660,10 @@ var VerifyTip = __webpack_require__(74618);
|
|
|
23667
23660
|
});
|
|
23668
23661
|
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=script&lang=js&
|
|
23669
23662
|
/* harmony default export */ var textDialog_TextDialogvue_type_script_lang_js_ = (TextDialogvue_type_script_lang_js_);
|
|
23670
|
-
;// 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/TextDialog.vue?vue&type=style&index=0&id=
|
|
23663
|
+
;// 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/TextDialog.vue?vue&type=style&index=0&id=407078ae&prod&lang=less&
|
|
23671
23664
|
// extracted by mini-css-extract-plugin
|
|
23672
23665
|
|
|
23673
|
-
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=
|
|
23666
|
+
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=407078ae&prod&lang=less&
|
|
23674
23667
|
|
|
23675
23668
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
23676
23669
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -37153,120 +37146,122 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
37153
37146
|
/* harmony export */ });
|
|
37154
37147
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17519);
|
|
37155
37148
|
/* 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);
|
|
37156
|
-
/* harmony import */ var
|
|
37157
|
-
/* harmony import */ var
|
|
37158
|
-
/* harmony import */ var
|
|
37159
|
-
/* harmony import */ var
|
|
37160
|
-
/* harmony import */ var
|
|
37161
|
-
/* harmony import */ var
|
|
37162
|
-
/* harmony import */ var
|
|
37163
|
-
/* harmony import */ var
|
|
37164
|
-
/* harmony import */ var
|
|
37165
|
-
/* harmony import */ var
|
|
37166
|
-
/* harmony import */ var
|
|
37167
|
-
/* harmony import */ var
|
|
37168
|
-
/* harmony import */ var
|
|
37169
|
-
/* harmony import */ var
|
|
37170
|
-
/* harmony import */ var
|
|
37171
|
-
/* harmony import */ var
|
|
37172
|
-
/* harmony import */ var
|
|
37173
|
-
/* harmony import */ var
|
|
37174
|
-
/* harmony import */ var
|
|
37175
|
-
/* harmony import */ var
|
|
37176
|
-
/* harmony import */ var
|
|
37177
|
-
/* harmony import */ var
|
|
37178
|
-
/* harmony import */ var
|
|
37179
|
-
/* harmony import */ var
|
|
37180
|
-
/* harmony import */ var
|
|
37181
|
-
/* harmony import */ var
|
|
37182
|
-
/* harmony import */ var
|
|
37183
|
-
/* harmony import */ var
|
|
37184
|
-
/* harmony import */ var
|
|
37185
|
-
/* harmony import */ var
|
|
37186
|
-
/* harmony import */ var
|
|
37187
|
-
/* harmony import */ var
|
|
37188
|
-
/* harmony import */ var
|
|
37189
|
-
/* harmony import */ var
|
|
37190
|
-
/* harmony import */ var
|
|
37191
|
-
/* harmony import */ var
|
|
37192
|
-
/* harmony import */ var
|
|
37193
|
-
/* harmony import */ var
|
|
37194
|
-
/* harmony import */ var
|
|
37195
|
-
/* harmony import */ var
|
|
37196
|
-
/* harmony import */ var
|
|
37197
|
-
/* harmony import */ var
|
|
37198
|
-
/* harmony import */ var
|
|
37199
|
-
/* harmony import */ var
|
|
37200
|
-
/* harmony import */ var
|
|
37201
|
-
/* harmony import */ var
|
|
37202
|
-
/* harmony import */ var
|
|
37203
|
-
/* harmony import */ var
|
|
37204
|
-
/* harmony import */ var
|
|
37205
|
-
/* harmony import */ var
|
|
37206
|
-
/* harmony import */ var
|
|
37207
|
-
/* harmony import */ var
|
|
37208
|
-
/* harmony import */ var
|
|
37209
|
-
/* harmony import */ var
|
|
37210
|
-
/* harmony import */ var
|
|
37211
|
-
/* harmony import */ var
|
|
37212
|
-
/* harmony import */ var
|
|
37213
|
-
/* harmony import */ var
|
|
37214
|
-
/* harmony import */ var
|
|
37215
|
-
/* harmony import */ var
|
|
37216
|
-
/* harmony import */ var
|
|
37217
|
-
/* harmony import */ var
|
|
37218
|
-
/* harmony import */ var
|
|
37219
|
-
/* harmony import */ var
|
|
37220
|
-
/* harmony import */ var
|
|
37221
|
-
/* harmony import */ var
|
|
37222
|
-
/* harmony import */ var
|
|
37223
|
-
/* harmony import */ var
|
|
37224
|
-
/* harmony import */ var
|
|
37225
|
-
/* harmony import */ var
|
|
37226
|
-
/* harmony import */ var
|
|
37227
|
-
/* harmony import */ var
|
|
37228
|
-
/* harmony import */ var
|
|
37229
|
-
/* harmony import */ var
|
|
37230
|
-
/* harmony import */ var
|
|
37231
|
-
/* harmony import */ var
|
|
37232
|
-
/* harmony import */ var
|
|
37233
|
-
/* harmony import */ var
|
|
37234
|
-
/* harmony import */ var
|
|
37235
|
-
/* harmony import */ var
|
|
37236
|
-
/* harmony import */ var
|
|
37237
|
-
/* harmony import */ var
|
|
37238
|
-
/* harmony import */ var
|
|
37239
|
-
/* harmony import */ var
|
|
37240
|
-
/* harmony import */ var
|
|
37241
|
-
/* harmony import */ var
|
|
37242
|
-
/* harmony import */ var
|
|
37243
|
-
/* harmony import */ var
|
|
37244
|
-
/* harmony import */ var
|
|
37245
|
-
/* harmony import */ var
|
|
37246
|
-
/* harmony import */ var
|
|
37247
|
-
/* harmony import */ var
|
|
37248
|
-
/* harmony import */ var
|
|
37249
|
-
/* harmony import */ var
|
|
37250
|
-
/* harmony import */ var
|
|
37251
|
-
/* harmony import */ var
|
|
37252
|
-
/* harmony import */ var
|
|
37253
|
-
/* harmony import */ var
|
|
37254
|
-
/* harmony import */ var
|
|
37255
|
-
/* harmony import */ var
|
|
37256
|
-
/* harmony import */ var
|
|
37257
|
-
/* harmony import */ var
|
|
37258
|
-
/* harmony import */ var
|
|
37259
|
-
/* harmony import */ var
|
|
37260
|
-
/* harmony import */ var
|
|
37261
|
-
/* harmony import */ var
|
|
37262
|
-
/* harmony import */ var
|
|
37263
|
-
/* harmony import */ var
|
|
37264
|
-
/* harmony import */ var
|
|
37265
|
-
/* harmony import */ var
|
|
37266
|
-
/* harmony import */ var
|
|
37267
|
-
/* harmony import */ var
|
|
37268
|
-
/* harmony import */ var
|
|
37269
|
-
/* harmony import */ var
|
|
37149
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(63442);
|
|
37150
|
+
/* 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);
|
|
37151
|
+
/* 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);
|
|
37152
|
+
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(94310);
|
|
37153
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__ = __webpack_require__(40735);
|
|
37154
|
+
/* 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);
|
|
37155
|
+
/* 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);
|
|
37156
|
+
/* 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);
|
|
37157
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(57658);
|
|
37158
|
+
/* 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__);
|
|
37159
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(41539);
|
|
37160
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
37161
|
+
/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(88674);
|
|
37162
|
+
/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
37163
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(54747);
|
|
37164
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
37165
|
+
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(69600);
|
|
37166
|
+
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
37167
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(68309);
|
|
37168
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
37169
|
+
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(21703);
|
|
37170
|
+
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_15__);
|
|
37171
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(92222);
|
|
37172
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_16__);
|
|
37173
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(9653);
|
|
37174
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_17__);
|
|
37175
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(40561);
|
|
37176
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
37177
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(74916);
|
|
37178
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
37179
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(15306);
|
|
37180
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
37181
|
+
/* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(68757);
|
|
37182
|
+
/* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_21__);
|
|
37183
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(39714);
|
|
37184
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_22__);
|
|
37185
|
+
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(69826);
|
|
37186
|
+
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_23__);
|
|
37187
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(66992);
|
|
37188
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_24__);
|
|
37189
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(33948);
|
|
37190
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_25__);
|
|
37191
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(26699);
|
|
37192
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_26__);
|
|
37193
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(32023);
|
|
37194
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_27__);
|
|
37195
|
+
/* harmony import */ var _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(10574);
|
|
37196
|
+
/* harmony import */ var _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(62358);
|
|
37197
|
+
/* harmony import */ var _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(64465);
|
|
37198
|
+
/* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(32629);
|
|
37199
|
+
/* harmony import */ var _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(27198);
|
|
37200
|
+
/* harmony import */ var _undoRedo_TextInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(78560);
|
|
37201
|
+
/* harmony import */ var _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(67945);
|
|
37202
|
+
/* harmony import */ var _DomRange__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(94639);
|
|
37203
|
+
/* harmony import */ var _undoRedo_SelectionUndoUnit__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(1544);
|
|
37204
|
+
/* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(29899);
|
|
37205
|
+
/* harmony import */ var _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(90432);
|
|
37206
|
+
/* harmony import */ var _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(931);
|
|
37207
|
+
/* harmony import */ var _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(71144);
|
|
37208
|
+
/* harmony import */ var _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(38938);
|
|
37209
|
+
/* harmony import */ var _undoRedo_LineStyleUndoUnit__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(38695);
|
|
37210
|
+
/* harmony import */ var _treeNode_MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(45836);
|
|
37211
|
+
/* harmony import */ var _treeNode_PupilMapNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(19995);
|
|
37212
|
+
/* harmony import */ var _treeNode_LightLocationMapNode__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(59621);
|
|
37213
|
+
/* harmony import */ var _treeNode_FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(47088);
|
|
37214
|
+
/* harmony import */ var _treeNode_PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(13307);
|
|
37215
|
+
/* harmony import */ var _treeNode_PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(11429);
|
|
37216
|
+
/* harmony import */ var _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(80177);
|
|
37217
|
+
/* harmony import */ var _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(65043);
|
|
37218
|
+
/* harmony import */ var _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(57727);
|
|
37219
|
+
/* harmony import */ var _treeNode_ImageNode__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(97186);
|
|
37220
|
+
/* harmony import */ var _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(96637);
|
|
37221
|
+
/* harmony import */ var _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(12659);
|
|
37222
|
+
/* harmony import */ var _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(5010);
|
|
37223
|
+
/* harmony import */ var _events_Exception__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(8277);
|
|
37224
|
+
/* harmony import */ var _treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(99152);
|
|
37225
|
+
/* harmony import */ var _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(92501);
|
|
37226
|
+
/* harmony import */ var _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(45712);
|
|
37227
|
+
/* harmony import */ var _SubDocManger__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(80556);
|
|
37228
|
+
/* harmony import */ var _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(68598);
|
|
37229
|
+
/* harmony import */ var _TableProperty__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(79546);
|
|
37230
|
+
/* harmony import */ var _treeNode_SpecialCharsNode__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(61024);
|
|
37231
|
+
/* harmony import */ var _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(48458);
|
|
37232
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertUndoUnit__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(48988);
|
|
37233
|
+
/* harmony import */ var _undoRedo_TableUndos_TableDeleteRowUndoUnit__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(34908);
|
|
37234
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(43109);
|
|
37235
|
+
/* harmony import */ var _undoRedo_TableUndos_TableDeleteColUndoUnit__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(64180);
|
|
37236
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertColUndoUnit__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(24799);
|
|
37237
|
+
/* harmony import */ var _undoRedo_TableUndos_TableMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(36288);
|
|
37238
|
+
/* harmony import */ var _undoRedo_TableUndos_TableUnMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(92827);
|
|
37239
|
+
/* harmony import */ var _domNode_Comment__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(2592);
|
|
37240
|
+
/* harmony import */ var _treeNode_PageNumNode__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(10719);
|
|
37241
|
+
/* harmony import */ var _treeNode_PageCountNode__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(66034);
|
|
37242
|
+
/* harmony import */ var _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(90832);
|
|
37243
|
+
/* harmony import */ var _runTimeInfo_UserInfo__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(14871);
|
|
37244
|
+
/* harmony import */ var _undoRedo_TableUndos_TableResizeColUndoUnit__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(52269);
|
|
37245
|
+
/* harmony import */ var _undoRedo_TableUndos_TableResizeRowUndoUnit__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(30589);
|
|
37246
|
+
/* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(2613);
|
|
37247
|
+
/* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(53901);
|
|
37248
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(74089);
|
|
37249
|
+
/* harmony import */ var _undoRedo_ParseUndoUnit__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(56422);
|
|
37250
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(80437);
|
|
37251
|
+
/* harmony import */ var _draw_DrawLine__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(96635);
|
|
37252
|
+
/* harmony import */ var _treeNode_SeparateCharNode__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(39385);
|
|
37253
|
+
/* harmony import */ var _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(95089);
|
|
37254
|
+
/* harmony import */ var _NodePosition__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(42921);
|
|
37255
|
+
/* harmony import */ var _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(24701);
|
|
37256
|
+
/* harmony import */ var _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(76830);
|
|
37257
|
+
/* harmony import */ var _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(73632);
|
|
37258
|
+
/* harmony import */ var _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(90809);
|
|
37259
|
+
/* harmony import */ var _treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(34910);
|
|
37260
|
+
/* harmony import */ var _treeNode_JumpButtonNode__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(330);
|
|
37261
|
+
/* harmony import */ var _utils_StructureNode__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(63602);
|
|
37262
|
+
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(51760);
|
|
37263
|
+
/* harmony import */ var _plugins_util__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(62783);
|
|
37264
|
+
|
|
37270
37265
|
|
|
37271
37266
|
|
|
37272
37267
|
|
|
@@ -37366,12 +37361,12 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
37366
37361
|
|
|
37367
37362
|
var DocController = /*#__PURE__*/function () {
|
|
37368
37363
|
function DocController(hoEditorFactoryID) {
|
|
37369
|
-
(0,
|
|
37364
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, DocController);
|
|
37370
37365
|
//private static _instance: DocController;
|
|
37371
|
-
(0,
|
|
37372
|
-
(0,
|
|
37373
|
-
(0,
|
|
37374
|
-
(0,
|
|
37366
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_findContent", '');
|
|
37367
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_count", 0);
|
|
37368
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_hoEditorFactoryID", void 0);
|
|
37369
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_onInsertNodeByID", void 0);
|
|
37375
37370
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
37376
37371
|
this._onInsertNodeByID = null;
|
|
37377
37372
|
}
|
|
@@ -37381,7 +37376,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37381
37376
|
// }
|
|
37382
37377
|
// return this._instance;
|
|
37383
37378
|
// }
|
|
37384
|
-
(0,
|
|
37379
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(DocController, [{
|
|
37385
37380
|
key: "onInsertNodeByID",
|
|
37386
37381
|
get: function get() {
|
|
37387
37382
|
return this._onInsertNodeByID;
|
|
@@ -37421,19 +37416,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37421
37416
|
if (!bNormalized) {
|
|
37422
37417
|
aRange = range.normalize();
|
|
37423
37418
|
}
|
|
37424
|
-
var hoEditorFactory =
|
|
37419
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37425
37420
|
var creatorIndex = -1;
|
|
37426
|
-
if ((hoEditorFactory.drawTree.paintStatus ===
|
|
37421
|
+
if ((hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psTrace) && aRange.npEnd.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R) {
|
|
37427
37422
|
var style = hoEditorFactory.docTree.styles[aRange.npEnd.node.styleIndex];
|
|
37428
37423
|
creatorIndex = style.creatorIndex === undefined ? -1 : style.creatorIndex;
|
|
37429
37424
|
}
|
|
37430
|
-
if ((hoEditorFactory.drawTree.paintStatus ===
|
|
37425
|
+
if ((hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psTrace) && oper !== 'update' && creatorIndex === -1) {
|
|
37431
37426
|
hoEditorFactory.undoService.begin();
|
|
37432
|
-
hoEditorFactory.undoService.add(new
|
|
37427
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, aRange.startPath, aRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .Operate */ .p('reviewDelete', 'string')));
|
|
37433
37428
|
hoEditorFactory.undoService.commit();
|
|
37434
37429
|
} else {
|
|
37435
37430
|
hoEditorFactory.undoService.begin();
|
|
37436
|
-
var nodesDeleteUndoUnit = new
|
|
37431
|
+
var nodesDeleteUndoUnit = new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_40__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, aRange.startPath, aRange.endPath, oper === 'update' ? true : false);
|
|
37437
37432
|
hoEditorFactory.undoService.add(nodesDeleteUndoUnit);
|
|
37438
37433
|
hoEditorFactory.undoService.commit();
|
|
37439
37434
|
return nodesDeleteUndoUnit.isError;
|
|
@@ -37443,10 +37438,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37443
37438
|
}, {
|
|
37444
37439
|
key: "insertNodeByPath",
|
|
37445
37440
|
value: function insertNodeByPath(path, node, isResetFieldText, isHasRelateEle, isTrace) {
|
|
37446
|
-
var hoEditorFactory =
|
|
37441
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37447
37442
|
var curRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
37448
37443
|
var parentNode = node.parentNode;
|
|
37449
|
-
if (node instanceof
|
|
37444
|
+
if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1 && isResetFieldText && !isHasRelateEle
|
|
37450
37445
|
//&& !parentNode.downListProperty.listItems?.includes("<元素>")
|
|
37451
37446
|
) {
|
|
37452
37447
|
var firstPath = parentNode.StartMarkNode.getNodePath();
|
|
@@ -37474,26 +37469,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37474
37469
|
|
|
37475
37470
|
if (!isError) {
|
|
37476
37471
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
37477
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
37472
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psReview) {
|
|
37478
37473
|
path = curDomRange.endPath;
|
|
37479
37474
|
}
|
|
37480
37475
|
var npNode = curDomRange.npEnd.node;
|
|
37481
|
-
if (npNode && npNode instanceof
|
|
37476
|
+
if (npNode && npNode instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_51__/* .MarkNode */ .j && npNode.MarkNodeType == 1) {
|
|
37482
37477
|
path = npNode.parentNode.StartMarkNode.getNodePath();
|
|
37483
37478
|
}
|
|
37484
|
-
if (isTrace && node instanceof
|
|
37479
|
+
if (isTrace && node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R) {
|
|
37485
37480
|
var styleIndex = node.styleIndex;
|
|
37486
37481
|
var curTextStyle = hoEditorFactory.docTree.styles[styleIndex];
|
|
37487
|
-
var nodeStyle = new
|
|
37482
|
+
var nodeStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_37__/* .TextStyle */ .pn(this._hoEditorFactoryID);
|
|
37488
37483
|
nodeStyle.copyProperty(curTextStyle, nodeStyle);
|
|
37489
|
-
var newHistory = new
|
|
37484
|
+
var newHistory = new _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_64__/* .UserHistory */ .R(this._hoEditorFactoryID, _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_64__/* .HistoryEditType */ .N.hetModify);
|
|
37490
37485
|
var historyIndex = newHistory.userCompare();
|
|
37491
37486
|
nodeStyle.modifierIndex = historyIndex;
|
|
37492
37487
|
node.styleIndex = hoEditorFactory.docTree.styleCompare(nodeStyle);
|
|
37493
37488
|
}
|
|
37494
37489
|
hoEditorFactory.undoService.begin();
|
|
37495
37490
|
// this.insertNodeByPath(textNode,this._curNodePosition.path);
|
|
37496
|
-
hoEditorFactory.undoService.add(new
|
|
37491
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, node));
|
|
37497
37492
|
hoEditorFactory.undoService.commit();
|
|
37498
37493
|
}
|
|
37499
37494
|
return hoEditorFactory.docTree.curDomRange.startPath;
|
|
@@ -37506,10 +37501,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37506
37501
|
}, {
|
|
37507
37502
|
key: "keyBoardInput",
|
|
37508
37503
|
value: function keyBoardInput(text) {
|
|
37509
|
-
var hoEditorFactory =
|
|
37504
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37510
37505
|
var domRange = hoEditorFactory.docTree.curDomRange;
|
|
37511
|
-
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus ===
|
|
37512
|
-
|
|
37506
|
+
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psReview) {
|
|
37507
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('质控医生站的病历只可进行批注不可编辑修改');
|
|
37513
37508
|
return;
|
|
37514
37509
|
}
|
|
37515
37510
|
// alert(text);
|
|
@@ -37534,9 +37529,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37534
37529
|
// hoEditorFactory.drawTree.moveCaretToPath(startPath);
|
|
37535
37530
|
// }
|
|
37536
37531
|
// }
|
|
37537
|
-
var changingEvent = new
|
|
37532
|
+
var changingEvent = new _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_28__/* .NodeChangingEvent */ .Q(_DocTree__WEBPACK_IMPORTED_MODULE_31__/* .DocAction */ .gk.daInsert, startPath, endPath, _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_28__/* .OperType */ .y.keyBoardInput);
|
|
37538
37533
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
37539
|
-
if (domRange.npStart.node && domRange.npStart.node.parentNode instanceof
|
|
37534
|
+
if (domRange.npStart.node && domRange.npStart.node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D) {
|
|
37540
37535
|
//if (hoEditorFactory.docTree.docProperty.type === EmrType.etForm) {
|
|
37541
37536
|
var cellNode = domRange.npStart.node.parentNode;
|
|
37542
37537
|
var colIndex = cellNode.row.indexOf(cellNode);
|
|
@@ -37546,7 +37541,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37546
37541
|
var isAllowEdit = colProperty.downListProperty.canModifyContent;
|
|
37547
37542
|
//const cellText = cellNode.getCellText();
|
|
37548
37543
|
if (!isAllowEdit) {
|
|
37549
|
-
|
|
37544
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('不允许用户直接编辑,请双击单元格进行选择.');
|
|
37550
37545
|
return;
|
|
37551
37546
|
}
|
|
37552
37547
|
}
|
|
@@ -37554,7 +37549,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37554
37549
|
var _isAllowEdit = cellProperty.downListProperty.canModifyContent;
|
|
37555
37550
|
//const cellText = cellNode.getCellText();
|
|
37556
37551
|
if (!_isAllowEdit) {
|
|
37557
|
-
|
|
37552
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('不允许用户直接编辑,请双击单元格进行选择.');
|
|
37558
37553
|
return;
|
|
37559
37554
|
}
|
|
37560
37555
|
}
|
|
@@ -37567,7 +37562,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37567
37562
|
}, {
|
|
37568
37563
|
key: "insertNodeText",
|
|
37569
37564
|
value: function insertNodeText(node, path, text) {
|
|
37570
|
-
var hoEditorFactory =
|
|
37565
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37571
37566
|
var curRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
37572
37567
|
var isError;
|
|
37573
37568
|
if (!curRange.isEmpty) {
|
|
@@ -37591,7 +37586,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37591
37586
|
if (!isError) {
|
|
37592
37587
|
hoEditorFactory.undoService.begin();
|
|
37593
37588
|
// this.insertNodeByPath(textNode,this._curNodePosition.path);
|
|
37594
|
-
hoEditorFactory.undoService.add(new
|
|
37589
|
+
hoEditorFactory.undoService.add(new _undoRedo_TextInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .TextInsertUndoUnit */ .t(this._hoEditorFactoryID, node, path, text));
|
|
37595
37590
|
hoEditorFactory.undoService.commit();
|
|
37596
37591
|
}
|
|
37597
37592
|
}
|
|
@@ -37664,10 +37659,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37664
37659
|
strPath = res;
|
|
37665
37660
|
if (index === arrSubString.length - 1) {
|
|
37666
37661
|
if (!isEndLine) {
|
|
37667
|
-
var paragraphNode = new
|
|
37662
|
+
var paragraphNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_34__/* .ParagraphNode */ .C(_this._hoEditorFactoryID, roots, pNode, hoEditorFactory.docTree.curParaNo);
|
|
37668
37663
|
strPath = _this.insertNodeByPath(strPath, paragraphNode);
|
|
37669
37664
|
} else {
|
|
37670
|
-
if (oldCanModifyContent !== undefined && pNode instanceof
|
|
37665
|
+
if (oldCanModifyContent !== undefined && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re) {
|
|
37671
37666
|
pNode.canModifyContent = oldCanModifyContent;
|
|
37672
37667
|
pNode.update();
|
|
37673
37668
|
}
|
|
@@ -37680,27 +37675,27 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37680
37675
|
}
|
|
37681
37676
|
} else {
|
|
37682
37677
|
node = hoEditorFactory.docTree.findNodePositionByPath(strPath).node;
|
|
37683
|
-
if (aTextArray[0] == 0 && node instanceof
|
|
37684
|
-
if (hoEditorFactory.drawTree.paintStatus !==
|
|
37678
|
+
if (aTextArray[0] == 0 && node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R && childIndex >= 0 && node.styleIndex == hoEditorFactory.docTree.curStyleIndex) {
|
|
37679
|
+
if (hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psReview && hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psTrace || (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psTrace) && !curTextStyle.combineStyle.strikeout) {
|
|
37685
37680
|
var textNode = node;
|
|
37686
37681
|
_this.insertNodeText(textNode, strPath, aText);
|
|
37687
37682
|
//strPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
37688
37683
|
strPath = hoEditorFactory.docTree.getNodeLastPath(textNode);
|
|
37689
37684
|
} else {
|
|
37690
|
-
var _textNode = new
|
|
37685
|
+
var _textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntText, aText, hoEditorFactory.docTree.curStyleIndex);
|
|
37691
37686
|
strPath = _this.insertNodeByPath(strPath, _textNode, isUpdate, isHasRelateEle && index >= 1 ? true : false);
|
|
37692
37687
|
}
|
|
37693
37688
|
} else {
|
|
37694
37689
|
var styleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
37695
|
-
if (pNode instanceof
|
|
37690
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re && node === pNode.first() && hoEditorFactory.drawTree.paintStatus != _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psReview) {
|
|
37696
37691
|
styleIndex = node.styleIndex;
|
|
37697
37692
|
}
|
|
37698
37693
|
if (aTextArray[0] > 1) {
|
|
37699
37694
|
var newStyle = hoEditorFactory.docTree.styles[styleIndex].clone();
|
|
37700
|
-
newStyle.script = aTextArray[0] == 2 ?
|
|
37695
|
+
newStyle.script = aTextArray[0] == 2 ? _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_37__/* .StyleScriptType */ .n$.sstsup : _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_37__/* .StyleScriptType */ .n$.sstsub;
|
|
37701
37696
|
styleIndex = hoEditorFactory.docTree.styleCompare(newStyle);
|
|
37702
37697
|
}
|
|
37703
|
-
var _textNode2 = new
|
|
37698
|
+
var _textNode2 = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntText, aText, styleIndex);
|
|
37704
37699
|
strPath = _this.insertNodeByPath(strPath, _textNode2, isUpdate, isHasRelateEle && index >= 1 ? true : false);
|
|
37705
37700
|
}
|
|
37706
37701
|
// if (index === arrSubString.length - 1 && isEndLine && oldCanModifyContent !== undefined && pNode instanceof TextInputFieldNode) {
|
|
@@ -37709,14 +37704,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37709
37704
|
// }
|
|
37710
37705
|
if (index === arrSubString.length - 1) {
|
|
37711
37706
|
if (!isEndLine) {
|
|
37712
|
-
var paragraphNode = new
|
|
37707
|
+
var paragraphNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_34__/* .ParagraphNode */ .C(_this._hoEditorFactoryID, roots, pNode, hoEditorFactory.docTree.curParaNo);
|
|
37713
37708
|
strPath = _this.insertNodeByPath(strPath, paragraphNode);
|
|
37714
37709
|
} else {
|
|
37715
|
-
if (oldCanModifyContent !== undefined && pNode instanceof
|
|
37710
|
+
if (oldCanModifyContent !== undefined && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re) {
|
|
37716
37711
|
pNode.canModifyContent = oldCanModifyContent;
|
|
37717
37712
|
pNode.update();
|
|
37718
37713
|
var ppNode = pNode.parentNode;
|
|
37719
|
-
if (ppNode instanceof
|
|
37714
|
+
if (ppNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D) {
|
|
37720
37715
|
ppNode.drawCell.needUpdate = true;
|
|
37721
37716
|
ppNode.table.update();
|
|
37722
37717
|
}
|
|
@@ -37749,7 +37744,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37749
37744
|
key: "insertPlainTextAfterPath",
|
|
37750
37745
|
value: function insertPlainTextAfterPath(path, text, oldCanModifyContent, oper) {
|
|
37751
37746
|
var _this2 = this;
|
|
37752
|
-
var hoEditorFactory =
|
|
37747
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37753
37748
|
if (text === '') {
|
|
37754
37749
|
return;
|
|
37755
37750
|
}
|
|
@@ -37765,10 +37760,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37765
37760
|
var curStyleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
37766
37761
|
var curParaNo = hoEditorFactory.docTree.curParaNo;
|
|
37767
37762
|
var curTextStyle = hoEditorFactory.docTree.styles[curStyleIndex];
|
|
37768
|
-
var nodeStyle = new
|
|
37763
|
+
var nodeStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_37__/* .TextStyle */ .pn(this._hoEditorFactoryID);
|
|
37769
37764
|
nodeStyle.copyProperty(curTextStyle, nodeStyle);
|
|
37770
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
37771
|
-
var newHistory = new
|
|
37765
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psTrace) {
|
|
37766
|
+
var newHistory = new _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_64__/* .UserHistory */ .R(this._hoEditorFactoryID, _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_64__/* .HistoryEditType */ .N.hetCreate);
|
|
37772
37767
|
var historyIndex = newHistory.userCompare();
|
|
37773
37768
|
nodeStyle.creatorIndex = historyIndex;
|
|
37774
37769
|
if (nodeStyle.combineStyle.strikeout) {
|
|
@@ -37781,33 +37776,33 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37781
37776
|
curStyleIndex = hoEditorFactory.docTree.styleCompare(nodeStyle);
|
|
37782
37777
|
hoEditorFactory.docTree.curStyleIndex = curStyleIndex;
|
|
37783
37778
|
var pNode = node.parentNode;
|
|
37784
|
-
if (pNode instanceof
|
|
37779
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re && pNode.childNodes.indexOf(node) === 0 && hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psReview) {
|
|
37785
37780
|
curStyleIndex = node.styleIndex;
|
|
37786
37781
|
hoEditorFactory.docTree.curStyleIndex = curStyleIndex;
|
|
37787
37782
|
}
|
|
37788
37783
|
var slibs = nodePosition.roots;
|
|
37789
|
-
if (pNode && pNode instanceof
|
|
37784
|
+
if (pNode && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re && node == pNode.last()) {
|
|
37790
37785
|
slibs = pNode.getParentNodes();
|
|
37791
37786
|
pNode = pNode.parentNode;
|
|
37792
37787
|
}
|
|
37793
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
37788
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psTrace) {
|
|
37794
37789
|
if (curTextStyle.strikeout) {
|
|
37795
|
-
var _nodeStyle = new
|
|
37790
|
+
var _nodeStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_37__/* .TextStyle */ .pn(this._hoEditorFactoryID);
|
|
37796
37791
|
_nodeStyle.copyProperty(curTextStyle, _nodeStyle);
|
|
37797
37792
|
_nodeStyle.strikeout = false;
|
|
37798
37793
|
_nodeStyle.deleterIndex = -1;
|
|
37799
|
-
var _newHistory = new
|
|
37794
|
+
var _newHistory = new _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_64__/* .UserHistory */ .R(this._hoEditorFactoryID, _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_64__/* .HistoryEditType */ .N.hetCreate);
|
|
37800
37795
|
var _historyIndex = _newHistory.userCompare();
|
|
37801
37796
|
_nodeStyle.creatorIndex = _historyIndex;
|
|
37802
37797
|
curStyleIndex = hoEditorFactory.docTree.styleCompare(_nodeStyle);
|
|
37803
37798
|
}
|
|
37804
37799
|
}
|
|
37805
37800
|
var canModifyContent = true;
|
|
37806
|
-
if (pNode instanceof
|
|
37801
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re) {
|
|
37807
37802
|
canModifyContent = pNode.canModifyContent;
|
|
37808
37803
|
}
|
|
37809
37804
|
var insertParagraph = function insertParagraph(aPath) {
|
|
37810
|
-
var paragraphNode = new
|
|
37805
|
+
var paragraphNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_34__/* .ParagraphNode */ .C(_this2._hoEditorFactoryID, nodePosition.roots, pNode, curParaNo);
|
|
37811
37806
|
_this2.insertNodeByPath(aPath, paragraphNode);
|
|
37812
37807
|
return hoEditorFactory.docTree.curDomRange.startPath;
|
|
37813
37808
|
};
|
|
@@ -37823,13 +37818,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37823
37818
|
strPath = insertParagraph(strPath);
|
|
37824
37819
|
resolve(strPath);
|
|
37825
37820
|
} else {
|
|
37826
|
-
if (pNode instanceof
|
|
37821
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re) {
|
|
37827
37822
|
pNode.canModifyContent = canModifyContent;
|
|
37828
37823
|
}
|
|
37829
37824
|
var isUpdate = false;
|
|
37830
37825
|
if (oldCanModifyContent !== undefined) {
|
|
37831
37826
|
isUpdate = true;
|
|
37832
|
-
if (pNode instanceof
|
|
37827
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re && pNode.downListProperty.isMultiLinesDisplay && index > 0) {
|
|
37833
37828
|
isUpdate = false;
|
|
37834
37829
|
}
|
|
37835
37830
|
}
|
|
@@ -37853,7 +37848,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37853
37848
|
}, {
|
|
37854
37849
|
key: "directionKey",
|
|
37855
37850
|
value: function directionKey(keyValue) {
|
|
37856
|
-
var hoEditorFactory =
|
|
37851
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37857
37852
|
var domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
37858
37853
|
var oldRange = hoEditorFactory.docTree.curDomRange.clone();
|
|
37859
37854
|
var startPath = domRange.startPath;
|
|
@@ -37862,13 +37857,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37862
37857
|
if (!domRange.isEmpty) {
|
|
37863
37858
|
//有选中区域
|
|
37864
37859
|
if (keyValue === 'left' || keyValue === 'up') {
|
|
37865
|
-
newRange = new
|
|
37860
|
+
newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, startPath);
|
|
37866
37861
|
} else {
|
|
37867
|
-
newRange = new
|
|
37862
|
+
newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, endPath, endPath);
|
|
37868
37863
|
}
|
|
37869
37864
|
} else {
|
|
37870
37865
|
var toPath = hoEditorFactory.docTree.getToPath(keyValue, startPath);
|
|
37871
|
-
newRange = new
|
|
37866
|
+
newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, toPath, toPath);
|
|
37872
37867
|
}
|
|
37873
37868
|
// const superiorSign = hoEditorFactory.structureConvert._superiorSign;
|
|
37874
37869
|
// if (superiorSign.length > 0 && (superiorSign[0] as SignNode).imgSrc != "") {
|
|
@@ -37901,19 +37896,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37901
37896
|
value: function keyBoardDelete(keyValue) {
|
|
37902
37897
|
var startPath = '';
|
|
37903
37898
|
var endPath = '';
|
|
37904
|
-
var hoEditorFactory =
|
|
37899
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37905
37900
|
var domRange = hoEditorFactory.docTree.curDomRange;
|
|
37906
37901
|
if (!domRange.isEmpty) {
|
|
37907
37902
|
domRange = domRange.normalize();
|
|
37908
|
-
} else if ((hoEditorFactory.drawTree.paintStatus ===
|
|
37909
|
-
if (domRange.npStart.node instanceof
|
|
37910
|
-
|
|
37903
|
+
} else if ((hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psTrace) && !(domRange.npStart.node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_88__/* .SignNode */ .N)) {
|
|
37904
|
+
if (domRange.npStart.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== undefined && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== -1) {} else {
|
|
37905
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('审阅模式下,只能选中文档内容进行删除');
|
|
37911
37906
|
return;
|
|
37912
37907
|
}
|
|
37913
37908
|
}
|
|
37914
37909
|
startPath = domRange.startPath;
|
|
37915
37910
|
endPath = domRange.endPath;
|
|
37916
|
-
var changingEvent = new
|
|
37911
|
+
var changingEvent = new _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_28__/* .NodeChangingEvent */ .Q(_DocTree__WEBPACK_IMPORTED_MODULE_31__/* .DocAction */ .gk.daInsert, startPath, endPath, _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_28__/* .OperType */ .y.keyBoardDelete);
|
|
37917
37912
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
37918
37913
|
if (keyValue === 'Backspace') {
|
|
37919
37914
|
this.deleteTextBeforePath(startPath);
|
|
@@ -37930,12 +37925,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37930
37925
|
}, {
|
|
37931
37926
|
key: "deleteTextBeforePath",
|
|
37932
37927
|
value: function () {
|
|
37933
|
-
var _deleteTextBeforePath = (0,
|
|
37928
|
+
var _deleteTextBeforePath = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)().mark(function _callee(startPath) {
|
|
37934
37929
|
var hoEditorFactory, domRange, nodePosition, childIndex, node, ret, topath, arr, tmp, aRange, endPath, _topath, _aRange, isError, prevNode, cellNode, tableNode, tIndex, cIndex, preParaNode, newpath, signUserId, preNode, sPath, ePath, path, signNode, table, c, colProperty, pNode;
|
|
37935
|
-
return (0,
|
|
37930
|
+
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
|
|
37936
37931
|
while (1) switch (_context.prev = _context.next) {
|
|
37937
37932
|
case 0:
|
|
37938
|
-
hoEditorFactory =
|
|
37933
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37939
37934
|
domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
37940
37935
|
if (domRange.isEmpty) {
|
|
37941
37936
|
_context.next = 6;
|
|
@@ -37966,11 +37961,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37966
37961
|
_context.next = 122;
|
|
37967
37962
|
break;
|
|
37968
37963
|
}
|
|
37969
|
-
if (!(node instanceof
|
|
37964
|
+
if (!(node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R)) {
|
|
37970
37965
|
_context.next = 35;
|
|
37971
37966
|
break;
|
|
37972
37967
|
}
|
|
37973
|
-
if (!(node.parentNode instanceof
|
|
37968
|
+
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D)) {
|
|
37974
37969
|
_context.next = 16;
|
|
37975
37970
|
break;
|
|
37976
37971
|
}
|
|
@@ -38005,7 +38000,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38005
38000
|
console.error('这里应该不会出现这种情况 2020.10.28');
|
|
38006
38001
|
return _context.abrupt("return");
|
|
38007
38002
|
case 30:
|
|
38008
|
-
hoEditorFactory.docTree.curDomRange = new
|
|
38003
|
+
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, topath, startPath);
|
|
38009
38004
|
// hoEditorFactory.undoService.begin();
|
|
38010
38005
|
// hoEditorFactory.undoService.add(
|
|
38011
38006
|
// new NodesDeleteUndoUnit(
|
|
@@ -38016,7 +38011,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38016
38011
|
// )
|
|
38017
38012
|
// );
|
|
38018
38013
|
// hoEditorFactory.undoService.commit();
|
|
38019
|
-
aRange = new
|
|
38014
|
+
aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, topath).normalize();
|
|
38020
38015
|
this.deleteRange(aRange, true);
|
|
38021
38016
|
//hoEditorFactory.drawTree.moveCaretToPath(topath);
|
|
38022
38017
|
//hoEditorFactory.docTree.curDomRange.setSamePath(topath);
|
|
@@ -38026,16 +38021,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38026
38021
|
_context.next = 122;
|
|
38027
38022
|
break;
|
|
38028
38023
|
case 35:
|
|
38029
|
-
if (!(node instanceof
|
|
38024
|
+
if (!(node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_51__/* .MarkNode */ .j)) {
|
|
38030
38025
|
_context.next = 55;
|
|
38031
38026
|
break;
|
|
38032
38027
|
}
|
|
38033
38028
|
endPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
38034
|
-
if (!(node.parentNode && node.parentNode instanceof
|
|
38029
|
+
if (!(node.parentNode && node.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re)) {
|
|
38035
38030
|
_context.next = 50;
|
|
38036
38031
|
break;
|
|
38037
38032
|
}
|
|
38038
|
-
if (!(node.parentNode.childNodes[1] instanceof
|
|
38033
|
+
if (!(node.parentNode.childNodes[1] instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_51__/* .MarkNode */ .j)) {
|
|
38039
38034
|
_context.next = 43;
|
|
38040
38035
|
break;
|
|
38041
38036
|
}
|
|
@@ -38059,7 +38054,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38059
38054
|
}
|
|
38060
38055
|
return _context.abrupt("return");
|
|
38061
38056
|
case 50:
|
|
38062
|
-
_aRange = new
|
|
38057
|
+
_aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath //hoEditorFactory.docTree.getNodeLastPath(node)
|
|
38063
38058
|
).normalize();
|
|
38064
38059
|
isError = this.deleteRange(_aRange, true);
|
|
38065
38060
|
if (isError) {
|
|
@@ -38078,12 +38073,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38078
38073
|
_context.next = 122;
|
|
38079
38074
|
break;
|
|
38080
38075
|
case 55:
|
|
38081
|
-
if (!(node instanceof
|
|
38076
|
+
if (!(node instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_34__/* .ParagraphNode */ .C)) {
|
|
38082
38077
|
_context.next = 81;
|
|
38083
38078
|
break;
|
|
38084
38079
|
}
|
|
38085
38080
|
prevNode = node.prevSibling();
|
|
38086
|
-
if (!(prevNode instanceof
|
|
38081
|
+
if (!(prevNode instanceof _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_55__/* .TableNode */ .Fh)) {
|
|
38087
38082
|
_context.next = 59;
|
|
38088
38083
|
break;
|
|
38089
38084
|
}
|
|
@@ -38093,7 +38088,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38093
38088
|
_context.next = 81;
|
|
38094
38089
|
break;
|
|
38095
38090
|
}
|
|
38096
|
-
if (!(node.parentNode instanceof
|
|
38091
|
+
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D)) {
|
|
38097
38092
|
_context.next = 80;
|
|
38098
38093
|
break;
|
|
38099
38094
|
}
|
|
@@ -38102,7 +38097,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38102
38097
|
tIndex = tableNode.childNodes.indexOf(cellNode);
|
|
38103
38098
|
cIndex = cellNode.childNodes.indexOf(node);
|
|
38104
38099
|
preParaNode = hoEditorFactory.docTree.getSameRectPrevParanode(tableNode.paragraphNode);
|
|
38105
|
-
if (!(preParaNode && tIndex == 0 && cIndex == 0 && preParaNode.drawlines.length == 1 && preParaNode.drawlines[0] instanceof
|
|
38100
|
+
if (!(preParaNode && tIndex == 0 && cIndex == 0 && preParaNode.drawlines.length == 1 && preParaNode.drawlines[0] instanceof _draw_DrawLine__WEBPACK_IMPORTED_MODULE_84__/* .DrawLine */ .a && preParaNode.drawlines[0].isEmpty())) {
|
|
38106
38101
|
_context.next = 77;
|
|
38107
38102
|
break;
|
|
38108
38103
|
}
|
|
@@ -38112,7 +38107,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38112
38107
|
// );
|
|
38113
38108
|
// await hoEditorFactory.undoService.commit();
|
|
38114
38109
|
hoEditorFactory.undoService.begin();
|
|
38115
|
-
hoEditorFactory.undoService.add(new
|
|
38110
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_91__/* .TableDeleteParagraphUndoUnit */ .T(this._hoEditorFactoryID, tableNode, tableNode.paragraphNode));
|
|
38116
38111
|
_context.next = 71;
|
|
38117
38112
|
return hoEditorFactory.undoService.commit();
|
|
38118
38113
|
case 71:
|
|
@@ -38128,14 +38123,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38128
38123
|
case 80:
|
|
38129
38124
|
return _context.abrupt("return");
|
|
38130
38125
|
case 81:
|
|
38131
|
-
if (!(hoEditorFactory.drawTree.paintStatus ===
|
|
38126
|
+
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psReview && !(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_88__/* .SignNode */ .N))) {
|
|
38132
38127
|
_context.next = 86;
|
|
38133
38128
|
break;
|
|
38134
38129
|
}
|
|
38135
|
-
|
|
38130
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('审阅模式下,只能对文本内容进行删除');
|
|
38136
38131
|
return _context.abrupt("return");
|
|
38137
38132
|
case 86:
|
|
38138
|
-
if (!((hoEditorFactory.drawTree.paintStatus ===
|
|
38133
|
+
if (!((hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psTrace) && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_88__/* .SignNode */ .N)) {
|
|
38139
38134
|
_context.next = 91;
|
|
38140
38135
|
break;
|
|
38141
38136
|
}
|
|
@@ -38144,24 +38139,24 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38144
38139
|
_context.next = 91;
|
|
38145
38140
|
break;
|
|
38146
38141
|
}
|
|
38147
|
-
|
|
38142
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('不是本人签名,不允许删除!');
|
|
38148
38143
|
return _context.abrupt("return");
|
|
38149
38144
|
case 91:
|
|
38150
|
-
if (!(hoEditorFactory.drawTree.paintStatus !==
|
|
38145
|
+
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_88__/* .SignNode */ .N)) {
|
|
38151
38146
|
_context.next = 94;
|
|
38152
38147
|
break;
|
|
38153
38148
|
}
|
|
38154
|
-
|
|
38149
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('不允许使用删除键删除签名,请右键删除元素');
|
|
38155
38150
|
return _context.abrupt("return");
|
|
38156
38151
|
case 94:
|
|
38157
|
-
if (!(hoEditorFactory.drawTree.paintStatus !==
|
|
38152
|
+
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_88__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
38158
38153
|
_context.next = 97;
|
|
38159
38154
|
break;
|
|
38160
38155
|
}
|
|
38161
|
-
|
|
38156
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('该签名元素不允许删除!');
|
|
38162
38157
|
return _context.abrupt("return");
|
|
38163
38158
|
case 97:
|
|
38164
|
-
if (!(node instanceof
|
|
38159
|
+
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_88__/* .SignNode */ .N)) {
|
|
38165
38160
|
_context.next = 117;
|
|
38166
38161
|
break;
|
|
38167
38162
|
}
|
|
@@ -38174,12 +38169,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38174
38169
|
break;
|
|
38175
38170
|
}
|
|
38176
38171
|
path = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
38177
|
-
signNode = new
|
|
38172
|
+
signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_88__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntSign, 0, 0, node.name === '' ? '医师签名' : node.name, node.signType, node.signFormat, '', '', node.signTimeFormat, '', 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime, undefined, undefined, node.attribute, node.connectChar, node.otherProperties, undefined, node.associatedElement);
|
|
38178
38173
|
hoEditorFactory.undoService.begin();
|
|
38179
|
-
hoEditorFactory.undoService.add(new
|
|
38180
|
-
hoEditorFactory.undoService.add(new
|
|
38174
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38175
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, signNode));
|
|
38181
38176
|
hoEditorFactory.undoService.commit();
|
|
38182
|
-
if (node.parentNode instanceof
|
|
38177
|
+
if (node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D) {
|
|
38183
38178
|
table = node.parentNode.table;
|
|
38184
38179
|
if (table.tableProperty.isSignLock && table.tableProperty.isLock) {
|
|
38185
38180
|
table.tableProperty.isLock = false;
|
|
@@ -38193,19 +38188,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38193
38188
|
}
|
|
38194
38189
|
return _context.abrupt("return");
|
|
38195
38190
|
case 112:
|
|
38196
|
-
if (node.connectMode == '换行' && preNode instanceof
|
|
38191
|
+
if (node.connectMode == '换行' && preNode instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_34__/* .ParagraphNode */ .C) {
|
|
38197
38192
|
sPath = hoEditorFactory.docTree.getNodeLastPath(preNode.previousLeaf());
|
|
38198
38193
|
}
|
|
38199
38194
|
hoEditorFactory.undoService.begin();
|
|
38200
|
-
hoEditorFactory.undoService.add(new
|
|
38195
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_40__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, sPath, ePath, true));
|
|
38201
38196
|
hoEditorFactory.undoService.commit();
|
|
38202
38197
|
return _context.abrupt("return");
|
|
38203
38198
|
case 117:
|
|
38204
38199
|
pNode = node.parentNode;
|
|
38205
38200
|
hoEditorFactory.undoService.begin();
|
|
38206
|
-
hoEditorFactory.undoService.add(new
|
|
38201
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38207
38202
|
hoEditorFactory.undoService.commit();
|
|
38208
|
-
if (pNode && pNode instanceof
|
|
38203
|
+
if (pNode && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re && pNode.childNodes.length === 2) {
|
|
38209
38204
|
this.resetEmptyInputFieldNode(hoEditorFactory, pNode);
|
|
38210
38205
|
}
|
|
38211
38206
|
case 122:
|
|
@@ -38226,7 +38221,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38226
38221
|
contentMarkNode.styleIndex = node.childNodes[0].styleIndex;
|
|
38227
38222
|
var insertPath = hoEditorFactory.docTree.getNodeLastPath(node.childNodes[0]);
|
|
38228
38223
|
hoEditorFactory.undoService.begin();
|
|
38229
|
-
hoEditorFactory.undoService.add(new
|
|
38224
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, insertPath, contentMarkNode));
|
|
38230
38225
|
hoEditorFactory.undoService.commit();
|
|
38231
38226
|
}
|
|
38232
38227
|
/**
|
|
@@ -38238,7 +38233,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38238
38233
|
key: "deleteTextAfterPath",
|
|
38239
38234
|
value: function deleteTextAfterPath(path) {
|
|
38240
38235
|
var _this3 = this;
|
|
38241
|
-
var hoEditorFactory =
|
|
38236
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38242
38237
|
var domRange = hoEditorFactory.docTree.curDomRange;
|
|
38243
38238
|
if (!domRange.isEmpty) {
|
|
38244
38239
|
domRange = domRange.normalize();
|
|
@@ -38251,7 +38246,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38251
38246
|
throw new Error("\u8DEF\u5F84\u9519\u8BEF".concat(path));
|
|
38252
38247
|
}
|
|
38253
38248
|
var tmp;
|
|
38254
|
-
if (np.node instanceof
|
|
38249
|
+
if (np.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R) {
|
|
38255
38250
|
if (np.childIndex < np.node.getLength() - 1) {
|
|
38256
38251
|
var arr = path.split('/');
|
|
38257
38252
|
arr[arr.length - 1] = parseInt(arr[arr.length - 1]) + 1 + '';
|
|
@@ -38262,16 +38257,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38262
38257
|
} else {
|
|
38263
38258
|
tmp = np.node.nextSibling();
|
|
38264
38259
|
}
|
|
38265
|
-
if (tmp instanceof
|
|
38260
|
+
if (tmp instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R) {
|
|
38266
38261
|
return hoEditorFactory.docTree.getNodeFirstPath(tmp);
|
|
38267
38262
|
} else if (tmp) {
|
|
38268
|
-
if (tmp instanceof
|
|
38263
|
+
if (tmp instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_34__/* .ParagraphNode */ .C) {
|
|
38269
38264
|
var nextNode = tmp.nextSibling();
|
|
38270
|
-
if (nextNode instanceof
|
|
38265
|
+
if (nextNode instanceof _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_55__/* .TableNode */ .Fh) {
|
|
38271
38266
|
return;
|
|
38272
38267
|
} else {
|
|
38273
38268
|
hoEditorFactory.undoService.begin();
|
|
38274
|
-
hoEditorFactory.undoService.add(new
|
|
38269
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeDeleteUndoUnit */ .w(_this3._hoEditorFactoryID, tmp, tmp.getNodePath()));
|
|
38275
38270
|
hoEditorFactory.undoService.commit();
|
|
38276
38271
|
return;
|
|
38277
38272
|
}
|
|
@@ -38304,17 +38299,17 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38304
38299
|
}, {
|
|
38305
38300
|
key: "KeyBoardEnterEvent",
|
|
38306
38301
|
value: function KeyBoardEnterEvent(strPath) {
|
|
38307
|
-
var hoEditorFactory =
|
|
38302
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38308
38303
|
//判断当前是否有选中
|
|
38309
38304
|
var arange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
38310
38305
|
if (!arange.isEmpty) {
|
|
38311
|
-
if (arange.npEnd.node instanceof
|
|
38306
|
+
if (arange.npEnd.node instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_58__/* .DateTimeNode */ .Z || arange.npEnd.node instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_59__/* .DownListNode */ .yF) {
|
|
38312
38307
|
var prevNodePath = hoEditorFactory.docTree.getNodeLastPath(arange.npEnd.node.previousLeaf());
|
|
38313
38308
|
if (prevNodePath === arange.startPath) {
|
|
38314
38309
|
var drawNode = arange.npEnd.node.drawNodes[0];
|
|
38315
38310
|
var drawArea = hoEditorFactory.drawPageTree.getMainRootArea(drawNode);
|
|
38316
38311
|
if (drawArea) {
|
|
38317
|
-
var nodeNeedModifyEvent = new
|
|
38312
|
+
var nodeNeedModifyEvent = new _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_89__/* .NodeNeedModifyEvent */ .x(arange.npEnd.node, 'dblclick', drawArea.index);
|
|
38318
38313
|
hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
38319
38314
|
return;
|
|
38320
38315
|
} else {
|
|
@@ -38333,34 +38328,34 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38333
38328
|
//处理结尾,如果是在一个复合结点的结尾,插入节点的Parent与复合节点相同,否慢其Parent为复合节点
|
|
38334
38329
|
var parentnode = np.node.parentNode;
|
|
38335
38330
|
if (parentnode) {
|
|
38336
|
-
if (np.node instanceof
|
|
38331
|
+
if (np.node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_51__/* .MarkNode */ .j) {
|
|
38337
38332
|
if (parentnode.last() == np.node) {
|
|
38338
38333
|
parentnode = parentnode.parentNode;
|
|
38339
38334
|
}
|
|
38340
|
-
} else if (parentnode instanceof
|
|
38335
|
+
} else if (parentnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D) {
|
|
38341
38336
|
if (strPath === "".concat(parentnode.getNodePath(), "/0") && parentnode.table.childNodes.indexOf(parentnode) == 0) {
|
|
38342
|
-
var _paraNode = new
|
|
38337
|
+
var _paraNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_34__/* .ParagraphNode */ .C(this._hoEditorFactoryID, parentnode.table.paragraphNode.rootNodes, parentnode.table.paragraphNode.parentNode, parentnode.table.paragraphNode.paraNo);
|
|
38343
38338
|
_paraNode.styleIndex = parentnode.table.paragraphNode.styleIndex;
|
|
38344
38339
|
_paraNode.node2DrawNode();
|
|
38345
38340
|
hoEditorFactory.undoService.begin();
|
|
38346
|
-
hoEditorFactory.undoService.add(new
|
|
38341
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_83__/* .TableInsertParagraphUndoUnit */ .r(this._hoEditorFactoryID, parentnode.table, _paraNode));
|
|
38347
38342
|
hoEditorFactory.undoService.commit();
|
|
38348
38343
|
return;
|
|
38349
38344
|
}
|
|
38350
38345
|
}
|
|
38351
38346
|
}
|
|
38352
|
-
var paraNode = new
|
|
38347
|
+
var paraNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_34__/* .ParagraphNode */ .C(this._hoEditorFactoryID, np.roots, parentnode, hoEditorFactory.docTree.curParaNo);
|
|
38353
38348
|
this.insertNodeByPath(strPath, paraNode);
|
|
38354
38349
|
}
|
|
38355
38350
|
}
|
|
38356
38351
|
}, {
|
|
38357
38352
|
key: "selectARange",
|
|
38358
38353
|
value: function selectARange(startPath, endPath) {
|
|
38359
|
-
var hoEditorFactory =
|
|
38354
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38360
38355
|
var oldRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
38361
|
-
var newRange = new
|
|
38356
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
38362
38357
|
hoEditorFactory.undoService.begin();
|
|
38363
|
-
hoEditorFactory.undoService.add(new
|
|
38358
|
+
hoEditorFactory.undoService.add(new _undoRedo_SelectionUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .SelectionUndoUnit */ .t(this._hoEditorFactoryID, oldRange, newRange));
|
|
38364
38359
|
hoEditorFactory.undoService.commit();
|
|
38365
38360
|
}
|
|
38366
38361
|
// /**
|
|
@@ -38392,7 +38387,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38392
38387
|
}, {
|
|
38393
38388
|
key: "fontStyleChange",
|
|
38394
38389
|
value: function fontStyleChange(operateType, curDomRange) {
|
|
38395
|
-
var hoEditorFactory =
|
|
38390
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38396
38391
|
var normalDomRange = curDomRange.normalize();
|
|
38397
38392
|
var astart = normalDomRange.npStart.node;
|
|
38398
38393
|
var aend = normalDomRange.npEnd.node;
|
|
@@ -38400,7 +38395,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38400
38395
|
throw new Error("\u9519\u8BEF\u7684\u9009\u62E9\u8303\u56F4".concat(curDomRange.startPath, " ").concat(curDomRange.endPath));
|
|
38401
38396
|
}
|
|
38402
38397
|
hoEditorFactory.undoService.begin();
|
|
38403
|
-
hoEditorFactory.undoService.add(new
|
|
38398
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, normalDomRange.startPath, normalDomRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .Operate */ .p(operateType)));
|
|
38404
38399
|
hoEditorFactory.undoService.commit();
|
|
38405
38400
|
}
|
|
38406
38401
|
/**
|
|
@@ -38412,7 +38407,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38412
38407
|
}, {
|
|
38413
38408
|
key: "fontStyleChangeBool",
|
|
38414
38409
|
value: function fontStyleChangeBool(operateType, curDomRange, isSelsected) {
|
|
38415
|
-
var hoEditorFactory =
|
|
38410
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38416
38411
|
var normalDomRange = curDomRange.normalize();
|
|
38417
38412
|
var astart = normalDomRange.npStart.node;
|
|
38418
38413
|
var aend = normalDomRange.npEnd.node;
|
|
@@ -38420,7 +38415,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38420
38415
|
throw new Error("\u9519\u8BEF\u7684\u9009\u62E9\u8303\u56F4".concat(curDomRange.startPath, " ").concat(curDomRange.endPath));
|
|
38421
38416
|
}
|
|
38422
38417
|
hoEditorFactory.undoService.begin();
|
|
38423
|
-
hoEditorFactory.undoService.add(new
|
|
38418
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, normalDomRange.startPath, normalDomRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .Operate */ .p(operateType, operateType === 'fontBold' || operateType === 'fontItalic' ? isSelsected : undefined)));
|
|
38424
38419
|
hoEditorFactory.undoService.commit();
|
|
38425
38420
|
}
|
|
38426
38421
|
/**
|
|
@@ -38432,7 +38427,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38432
38427
|
}, {
|
|
38433
38428
|
key: "fontStyleChangeStr",
|
|
38434
38429
|
value: function fontStyleChangeStr(operateType, curDomRange, changeValue) {
|
|
38435
|
-
var hoEditorFactory =
|
|
38430
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38436
38431
|
var normalDomRange = curDomRange.normalize();
|
|
38437
38432
|
var astart = normalDomRange.npStart.node;
|
|
38438
38433
|
var aend = normalDomRange.npEnd.node;
|
|
@@ -38440,7 +38435,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38440
38435
|
throw new Error("\u9519\u8BEF\u7684\u9009\u62E9\u8303\u56F4".concat(curDomRange.startPath, " ").concat(curDomRange.endPath));
|
|
38441
38436
|
}
|
|
38442
38437
|
hoEditorFactory.undoService.begin();
|
|
38443
|
-
hoEditorFactory.undoService.add(new
|
|
38438
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, normalDomRange.startPath, normalDomRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .Operate */ .p(operateType, changeValue)));
|
|
38444
38439
|
hoEditorFactory.undoService.commit();
|
|
38445
38440
|
}
|
|
38446
38441
|
/**
|
|
@@ -38488,7 +38483,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38488
38483
|
if (anode && astart) {
|
|
38489
38484
|
do {
|
|
38490
38485
|
if (anode) {
|
|
38491
|
-
if (anode instanceof
|
|
38486
|
+
if (anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R) {
|
|
38492
38487
|
anode.styleIndex = formatStyleIndex;
|
|
38493
38488
|
}
|
|
38494
38489
|
anode = anode.previousLeaf();
|
|
@@ -38503,7 +38498,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38503
38498
|
}, {
|
|
38504
38499
|
key: "undoOperate",
|
|
38505
38500
|
value: function undoOperate() {
|
|
38506
|
-
|
|
38501
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.undo();
|
|
38507
38502
|
return;
|
|
38508
38503
|
}
|
|
38509
38504
|
/**
|
|
@@ -38512,7 +38507,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38512
38507
|
}, {
|
|
38513
38508
|
key: "redoOperate",
|
|
38514
38509
|
value: function redoOperate() {
|
|
38515
|
-
|
|
38510
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.redo();
|
|
38516
38511
|
return;
|
|
38517
38512
|
}
|
|
38518
38513
|
/**
|
|
@@ -38524,11 +38519,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38524
38519
|
}, {
|
|
38525
38520
|
key: "paraStyleChange",
|
|
38526
38521
|
value: function paraStyleChange(operateType, curDomRange, selectablePara) {
|
|
38527
|
-
var op = new
|
|
38522
|
+
var op = new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .Operate */ .p(operateType, selectablePara);
|
|
38528
38523
|
var currDom = curDomRange;
|
|
38529
|
-
|
|
38530
|
-
|
|
38531
|
-
|
|
38524
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38525
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_LineStyleUndoUnit__WEBPACK_IMPORTED_MODULE_42__/* .LineStyleUndoUnit */ .d(this._hoEditorFactoryID, currDom.startPath, currDom.endPath, op));
|
|
38526
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38532
38527
|
}
|
|
38533
38528
|
}, {
|
|
38534
38529
|
key: "copy",
|
|
@@ -38542,7 +38537,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38542
38537
|
if (anode && astart) {
|
|
38543
38538
|
do {
|
|
38544
38539
|
if (anode) {
|
|
38545
|
-
if (anode instanceof
|
|
38540
|
+
if (anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R) {
|
|
38546
38541
|
selectedText = selectedText + anode.getTextByRange(normalDomRange);
|
|
38547
38542
|
}
|
|
38548
38543
|
anode = anode.previousLeaf();
|
|
@@ -38572,26 +38567,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38572
38567
|
var domRange = curDomRange.normalize();
|
|
38573
38568
|
var startPath = domRange.endPath;
|
|
38574
38569
|
if (operType === 'update') {
|
|
38575
|
-
var np =
|
|
38570
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
38576
38571
|
if (np) {
|
|
38577
38572
|
var node = np.node;
|
|
38578
|
-
if (node instanceof
|
|
38579
|
-
|
|
38580
|
-
|
|
38573
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_49__/* .MedicalExpressionNode */ .H) {
|
|
38574
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38575
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38581
38576
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38582
38577
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
38583
|
-
startPath =
|
|
38578
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
38584
38579
|
}
|
|
38585
38580
|
}
|
|
38586
38581
|
}
|
|
38587
|
-
var parentNode =
|
|
38588
|
-
var menstrualHistoryNode = new
|
|
38582
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
38583
|
+
var menstrualHistoryNode = new _treeNode_MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_43__/* .MenstrualHistoryNode */ .n(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntMedicalExpression, expressionStyle, menseDays, cycleDays, menarcheAge, menoPauseAge);
|
|
38589
38584
|
//插入该表达式节点
|
|
38590
38585
|
if (operType === 'add') {
|
|
38591
|
-
|
|
38586
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38592
38587
|
}
|
|
38593
|
-
|
|
38594
|
-
|
|
38588
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, menstrualHistoryNode));
|
|
38589
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38595
38590
|
}
|
|
38596
38591
|
/**
|
|
38597
38592
|
* 瞳孔图
|
|
@@ -38609,26 +38604,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38609
38604
|
var domRange = curDomRange.normalize();
|
|
38610
38605
|
var startPath = domRange.endPath;
|
|
38611
38606
|
if (operType === 'update') {
|
|
38612
|
-
var np =
|
|
38607
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
38613
38608
|
if (np) {
|
|
38614
38609
|
var node = np.node;
|
|
38615
|
-
if (node instanceof
|
|
38616
|
-
|
|
38617
|
-
|
|
38610
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_49__/* .MedicalExpressionNode */ .H) {
|
|
38611
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38612
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38618
38613
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38619
38614
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
38620
|
-
startPath =
|
|
38615
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
38621
38616
|
}
|
|
38622
38617
|
}
|
|
38623
38618
|
}
|
|
38624
|
-
var parentNode =
|
|
38625
|
-
var pupilMapNode = new
|
|
38619
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
38620
|
+
var pupilMapNode = new _treeNode_PupilMapNode__WEBPACK_IMPORTED_MODULE_44__/* .PupilMapNode */ .v(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntMedicalExpression, value1, value2, value3, value4, value5, value6, value7);
|
|
38626
38621
|
//插入该表达式节点
|
|
38627
38622
|
if (operType === 'add') {
|
|
38628
|
-
|
|
38623
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38629
38624
|
}
|
|
38630
|
-
|
|
38631
|
-
|
|
38625
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, pupilMapNode));
|
|
38626
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38632
38627
|
}
|
|
38633
38628
|
/**
|
|
38634
38629
|
* 光定位图
|
|
@@ -38648,26 +38643,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38648
38643
|
var domRange = curDomRange.normalize();
|
|
38649
38644
|
var startPath = domRange.endPath;
|
|
38650
38645
|
if (operType === 'update') {
|
|
38651
|
-
var np =
|
|
38646
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
38652
38647
|
if (np) {
|
|
38653
38648
|
var node = np.node;
|
|
38654
|
-
if (node instanceof
|
|
38655
|
-
|
|
38656
|
-
|
|
38649
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_49__/* .MedicalExpressionNode */ .H) {
|
|
38650
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38651
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38657
38652
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38658
38653
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
38659
|
-
startPath =
|
|
38654
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
38660
38655
|
}
|
|
38661
38656
|
}
|
|
38662
38657
|
}
|
|
38663
|
-
var parentNode =
|
|
38664
|
-
var lightLocationMapNode = new
|
|
38658
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
38659
|
+
var lightLocationMapNode = new _treeNode_LightLocationMapNode__WEBPACK_IMPORTED_MODULE_45__/* .LightLocationMapNode */ .D(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntMedicalExpression, value1, value2, value3, value4, value5, value6, value7, value8, value9);
|
|
38665
38660
|
//插入该表达式节点
|
|
38666
38661
|
if (operType === 'add') {
|
|
38667
|
-
|
|
38662
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38668
38663
|
}
|
|
38669
|
-
|
|
38670
|
-
|
|
38664
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, lightLocationMapNode));
|
|
38665
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38671
38666
|
}
|
|
38672
38667
|
/**
|
|
38673
38668
|
* 胎心图
|
|
@@ -38684,26 +38679,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38684
38679
|
var domRange = curDomRange.normalize();
|
|
38685
38680
|
var startPath = domRange.endPath;
|
|
38686
38681
|
if (operType === 'update') {
|
|
38687
|
-
var np =
|
|
38682
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
38688
38683
|
if (np) {
|
|
38689
38684
|
var node = np.node;
|
|
38690
|
-
if (node instanceof
|
|
38691
|
-
|
|
38692
|
-
|
|
38685
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_49__/* .MedicalExpressionNode */ .H) {
|
|
38686
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38687
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38693
38688
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38694
38689
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
38695
|
-
startPath =
|
|
38690
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
38696
38691
|
}
|
|
38697
38692
|
}
|
|
38698
38693
|
}
|
|
38699
|
-
var parentNode =
|
|
38700
|
-
var fetalHeartMapNode = new
|
|
38694
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
38695
|
+
var fetalHeartMapNode = new _treeNode_FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_46__/* .FetalHeartMapNode */ .t(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntMedicalExpression, value1, value2, value3, value4, value5, value6);
|
|
38701
38696
|
//插入该表达式节点
|
|
38702
38697
|
if (operType === 'add') {
|
|
38703
|
-
|
|
38698
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38704
38699
|
}
|
|
38705
|
-
|
|
38706
|
-
|
|
38700
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, fetalHeartMapNode));
|
|
38701
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38707
38702
|
}
|
|
38708
38703
|
/**
|
|
38709
38704
|
* 恒牙牙位图
|
|
@@ -38718,26 +38713,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38718
38713
|
var domRange = curDomRange.normalize();
|
|
38719
38714
|
var startPath = domRange.endPath;
|
|
38720
38715
|
if (operType === 'update') {
|
|
38721
|
-
var np =
|
|
38716
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
38722
38717
|
if (np) {
|
|
38723
38718
|
var node = np.node;
|
|
38724
|
-
if (node instanceof
|
|
38725
|
-
|
|
38726
|
-
|
|
38719
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_49__/* .MedicalExpressionNode */ .H) {
|
|
38720
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38721
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38727
38722
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38728
38723
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
38729
|
-
startPath =
|
|
38724
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
38730
38725
|
}
|
|
38731
38726
|
}
|
|
38732
38727
|
}
|
|
38733
|
-
var parentNode =
|
|
38734
|
-
var permanentTeethMapNode = new
|
|
38728
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
38729
|
+
var permanentTeethMapNode = new _treeNode_PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_47__/* .PermanentTeethMapNode */ .f(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntMedicalExpression, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected, remark);
|
|
38735
38730
|
//插入该表达式节点
|
|
38736
38731
|
if (operType === 'add') {
|
|
38737
|
-
|
|
38732
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38738
38733
|
}
|
|
38739
|
-
|
|
38740
|
-
|
|
38734
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, permanentTeethMapNode));
|
|
38735
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38741
38736
|
}
|
|
38742
38737
|
/**
|
|
38743
38738
|
* 乳牙牙位图
|
|
@@ -38751,14 +38746,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38751
38746
|
value: function insertPrimaryTeethMap(operType, curDomRange, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected) {
|
|
38752
38747
|
var domRange = curDomRange.normalize();
|
|
38753
38748
|
var startPath = domRange.endPath;
|
|
38754
|
-
var hoEditorFactory =
|
|
38749
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38755
38750
|
if (operType === 'update') {
|
|
38756
38751
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
38757
38752
|
if (np) {
|
|
38758
38753
|
var node = np.node;
|
|
38759
|
-
if (node instanceof
|
|
38754
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_49__/* .MedicalExpressionNode */ .H) {
|
|
38760
38755
|
hoEditorFactory.undoService.begin();
|
|
38761
|
-
hoEditorFactory.undoService.add(new
|
|
38756
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38762
38757
|
//hoEditorFactory.undoService.commit();
|
|
38763
38758
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
38764
38759
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
@@ -38766,12 +38761,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38766
38761
|
}
|
|
38767
38762
|
}
|
|
38768
38763
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
38769
|
-
var primaryTeethMapNode = new
|
|
38764
|
+
var primaryTeethMapNode = new _treeNode_PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_48__/* .PrimaryTeethMapNode */ .x(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntMedicalExpression, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected);
|
|
38770
38765
|
//插入该表达式节点
|
|
38771
38766
|
if (operType === 'add') {
|
|
38772
38767
|
hoEditorFactory.undoService.begin();
|
|
38773
38768
|
}
|
|
38774
|
-
hoEditorFactory.undoService.add(new
|
|
38769
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, primaryTeethMapNode));
|
|
38775
38770
|
hoEditorFactory.undoService.commit();
|
|
38776
38771
|
}
|
|
38777
38772
|
/**
|
|
@@ -38784,17 +38779,17 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38784
38779
|
value: function insertTextInputField(operType, curDomRange, valuesObject, updateProps) {
|
|
38785
38780
|
var domRange = curDomRange.normalize();
|
|
38786
38781
|
var startPath = domRange.endPath;
|
|
38787
|
-
var hoEditorFactory =
|
|
38782
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38788
38783
|
var childNodes = [];
|
|
38789
38784
|
if (operType === 'update') {
|
|
38790
38785
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
38791
38786
|
if (np && np.node) {
|
|
38792
38787
|
var node;
|
|
38793
|
-
if (np.node instanceof
|
|
38788
|
+
if (np.node instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re) {
|
|
38794
38789
|
node = np.node;
|
|
38795
38790
|
childNodes = node.childNodes;
|
|
38796
38791
|
}
|
|
38797
|
-
if (np.node.parentNode instanceof
|
|
38792
|
+
if (np.node.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re) {
|
|
38798
38793
|
node = np.node.parentNode;
|
|
38799
38794
|
childNodes = np.node.parentNode.childNodes;
|
|
38800
38795
|
}
|
|
@@ -38802,13 +38797,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38802
38797
|
//const sPath = hoEditorFactory.docTree.getNodeFirstPath(node);
|
|
38803
38798
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
38804
38799
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
38805
|
-
var changeEvent = new
|
|
38800
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_79__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_31__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
38806
38801
|
changeEvent.oldEndPath = ePath;
|
|
38807
|
-
changeEvent.oldDrawLines = new
|
|
38802
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_80__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true, true);
|
|
38808
38803
|
node.setValuesObject(valuesObject);
|
|
38809
38804
|
// const values = eval("(" + valuesObject + ")");
|
|
38810
38805
|
var values = valuesObject;
|
|
38811
|
-
if (node.childNodes.length == 3 && node.childNodes[1] instanceof
|
|
38806
|
+
if (node.childNodes.length == 3 && node.childNodes[1] instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_51__/* .MarkNode */ .j) {
|
|
38812
38807
|
if (node.childNodes2[1].text !== node.name) {
|
|
38813
38808
|
var text = node.childNodes2[1].text;
|
|
38814
38809
|
node.childNodes2[1].clearDrawNodes(0, text.length - 1);
|
|
@@ -38822,15 +38817,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38822
38817
|
var _text = values['text'];
|
|
38823
38818
|
var textArr = _text.split('\n');
|
|
38824
38819
|
if (textArr.length == 1) {
|
|
38825
|
-
var textNode = new
|
|
38820
|
+
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R(this._hoEditorFactoryID, node.rootNodes, node, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntText, _text, hoEditorFactory.docTree.curStyleIndex);
|
|
38826
38821
|
node.childNodes.splice(1, 0, textNode);
|
|
38827
38822
|
} else {
|
|
38828
38823
|
for (var i = 0; i < textArr.length; i++) {
|
|
38829
38824
|
var atext = textArr[i];
|
|
38830
|
-
var atnode = new
|
|
38825
|
+
var atnode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R(this._hoEditorFactoryID, node.rootNodes, node, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntText, atext, hoEditorFactory.docTree.curStyleIndex);
|
|
38831
38826
|
node.childNodes.splice(node.childNodes.length - 1, 0, atnode);
|
|
38832
38827
|
if (i < textArr.length - 1) {
|
|
38833
|
-
var apnode = new
|
|
38828
|
+
var apnode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_34__/* .ParagraphNode */ .C(this._hoEditorFactoryID, node.rootNodes, node, hoEditorFactory.docTree.curParaNo);
|
|
38834
38829
|
node.childNodes.splice(node.childNodes.length - 1, 0, apnode);
|
|
38835
38830
|
}
|
|
38836
38831
|
}
|
|
@@ -38859,11 +38854,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38859
38854
|
if (pnode && pnode.parentNode) {
|
|
38860
38855
|
pnode = pnode.parentNode;
|
|
38861
38856
|
}
|
|
38862
|
-
if (pnode instanceof
|
|
38857
|
+
if (pnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D) {
|
|
38863
38858
|
break;
|
|
38864
38859
|
}
|
|
38865
38860
|
} while ((_pnode = pnode) !== null && _pnode !== void 0 && _pnode.parentNode);
|
|
38866
|
-
if (pnode instanceof
|
|
38861
|
+
if (pnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D) {
|
|
38867
38862
|
if (Number(values['inputFieldType']) === 1) {
|
|
38868
38863
|
pnode.drawCell.needUpdate = true;
|
|
38869
38864
|
pnode.table.update();
|
|
@@ -38877,7 +38872,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38877
38872
|
}
|
|
38878
38873
|
var record = hoEditorFactory.docTree.elementChangeRecords.get(node.id + '|' + node.dataId);
|
|
38879
38874
|
if (!record || record.indexOf('add') < 0) {
|
|
38880
|
-
|
|
38875
|
+
var changeProps = {};
|
|
38876
|
+
if (record && record[0] == "update" && record[1]) {
|
|
38877
|
+
changeProps = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, record[1]);
|
|
38878
|
+
}
|
|
38879
|
+
hoEditorFactory.docTree.elementChangeRecords.set(node.id + '|' + node.dataId, ['update', (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, changeProps), updateProps)]);
|
|
38881
38880
|
}
|
|
38882
38881
|
return '';
|
|
38883
38882
|
} else {
|
|
@@ -38886,7 +38885,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38886
38885
|
}
|
|
38887
38886
|
}
|
|
38888
38887
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
38889
|
-
var textInputFieldNode = new
|
|
38888
|
+
var textInputFieldNode = new _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntField, valuesObject);
|
|
38890
38889
|
// if (operType === "update") {
|
|
38891
38890
|
// const values = eval("(" + valuesObject + ")");
|
|
38892
38891
|
// if (values["inputFieldType"] === 0) {
|
|
@@ -38901,12 +38900,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38901
38900
|
// }
|
|
38902
38901
|
//插入该表达式节点
|
|
38903
38902
|
hoEditorFactory.undoService.begin();
|
|
38904
|
-
hoEditorFactory.undoService.add(new
|
|
38903
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, textInputFieldNode));
|
|
38905
38904
|
hoEditorFactory.undoService.commit();
|
|
38906
38905
|
var afterPath = hoEditorFactory.docTree.getNodeLastPath(textInputFieldNode);
|
|
38907
38906
|
//hoEditorFactory.drawTree.moveCaretToPath(afterPath);
|
|
38908
38907
|
hoEditorFactory.docTree.curDomRange.setSamePath(afterPath);
|
|
38909
|
-
if (parentNode instanceof
|
|
38908
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re) {
|
|
38910
38909
|
hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id + '|' + textInputFieldNode.dataId, ['add']);
|
|
38911
38910
|
} else {
|
|
38912
38911
|
hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id + '|' + textInputFieldNode.dataId, ['add0']);
|
|
@@ -38925,12 +38924,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38925
38924
|
value: function insertImage(curDomRange, imagePath, width, height, options) {
|
|
38926
38925
|
var domRange = curDomRange.normalize();
|
|
38927
38926
|
var startPath = domRange.startPath;
|
|
38928
|
-
var hoEditorFactory =
|
|
38927
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38929
38928
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
38930
|
-
var imageNode = new
|
|
38929
|
+
var imageNode = new _treeNode_ImageNode__WEBPACK_IMPORTED_MODULE_52__/* .ImageNode */ .H(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntImage, hoEditorFactory.gernerateCode.generateID('IMG'), imagePath, width, height, options);
|
|
38931
38930
|
//插入该表达式节点
|
|
38932
38931
|
hoEditorFactory.undoService.begin();
|
|
38933
|
-
hoEditorFactory.undoService.add(new
|
|
38932
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, imageNode));
|
|
38934
38933
|
hoEditorFactory.undoService.commit();
|
|
38935
38934
|
}
|
|
38936
38935
|
/**
|
|
@@ -38951,21 +38950,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38951
38950
|
innerIdentifier) {
|
|
38952
38951
|
var domRange = curDomRange.normalize();
|
|
38953
38952
|
var startPath = domRange.endPath;
|
|
38954
|
-
var hoEditorFactory =
|
|
38953
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38955
38954
|
if (operType === 'update') {
|
|
38956
38955
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
38957
38956
|
if (np) {
|
|
38958
38957
|
var node = np.node;
|
|
38959
|
-
if (node instanceof
|
|
38958
|
+
if (node instanceof _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_53__/* .BarcodeNode */ .T) {
|
|
38960
38959
|
hoEditorFactory.undoService.begin();
|
|
38961
|
-
hoEditorFactory.undoService.add(new
|
|
38960
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38962
38961
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
38963
38962
|
}
|
|
38964
38963
|
}
|
|
38965
38964
|
}
|
|
38966
38965
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
38967
38966
|
var rootPath = hoEditorFactory.docTree.getRootPathByNodes(domRange.npStart.roots);
|
|
38968
|
-
var barCodeNode = new
|
|
38967
|
+
var barCodeNode = new _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_53__/* .BarcodeNode */ .T(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntImage, id,
|
|
38969
38968
|
//name,
|
|
38970
38969
|
innerIdentifier, textContent, isDisplayText, imagePath, width, height
|
|
38971
38970
|
//,bandDataSource
|
|
@@ -38974,7 +38973,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38974
38973
|
if (operType === 'add') {
|
|
38975
38974
|
hoEditorFactory.undoService.begin();
|
|
38976
38975
|
}
|
|
38977
|
-
hoEditorFactory.undoService.add(new
|
|
38976
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, barCodeNode));
|
|
38978
38977
|
hoEditorFactory.undoService.commit();
|
|
38979
38978
|
}
|
|
38980
38979
|
/**
|
|
@@ -38997,14 +38996,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38997
38996
|
value: function insertQrcode(operType, curDomRange, id, textContent, type, correctLevel, width, height, name, innerIdentifier, isFillBack) {
|
|
38998
38997
|
var domRange = curDomRange.normalize();
|
|
38999
38998
|
var startPath = domRange.endPath;
|
|
39000
|
-
var hoEditorFactory =
|
|
38999
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39001
39000
|
if (operType === 'update') {
|
|
39002
39001
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
39003
39002
|
if (np) {
|
|
39004
39003
|
var node = np.node;
|
|
39005
|
-
if (node instanceof
|
|
39004
|
+
if (node instanceof _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_54__/* .QrcodeNode */ .d) {
|
|
39006
39005
|
hoEditorFactory.undoService.begin();
|
|
39007
|
-
hoEditorFactory.undoService.add(new
|
|
39006
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
39008
39007
|
//hoEditorFactory.undoService.commit();
|
|
39009
39008
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
39010
39009
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
@@ -39012,39 +39011,39 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39012
39011
|
}
|
|
39013
39012
|
}
|
|
39014
39013
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
39015
|
-
var qrcodeNode = new
|
|
39014
|
+
var qrcodeNode = new _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_54__/* .QrcodeNode */ .d(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntImage, id, name, innerIdentifier, textContent, type, correctLevel, width, height, isFillBack);
|
|
39016
39015
|
//插入该表达式节点
|
|
39017
39016
|
if (operType === 'add') {
|
|
39018
39017
|
hoEditorFactory.undoService.begin();
|
|
39019
39018
|
}
|
|
39020
|
-
hoEditorFactory.undoService.add(new
|
|
39019
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, qrcodeNode));
|
|
39021
39020
|
hoEditorFactory.undoService.commit();
|
|
39022
39021
|
}
|
|
39023
39022
|
}, {
|
|
39024
39023
|
key: "updateCodeContent",
|
|
39025
39024
|
value: function updateCodeContent(node, content) {
|
|
39026
|
-
var hoEditorFactory =
|
|
39025
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39027
39026
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
39028
39027
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
39029
|
-
var changeEvent = new
|
|
39028
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_79__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_31__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
39030
39029
|
changeEvent.oldEndPath = ePath;
|
|
39031
39030
|
changeEvent.afterChangePath = ePath;
|
|
39032
|
-
changeEvent.oldDrawLines = new
|
|
39031
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_80__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true, true);
|
|
39033
39032
|
node.textContent = content;
|
|
39034
39033
|
hoEditorFactory.docTree.change(changeEvent);
|
|
39035
39034
|
}
|
|
39036
39035
|
}, {
|
|
39037
39036
|
key: "insertTable",
|
|
39038
39037
|
value: function insertTable(arange, row, col) {
|
|
39039
|
-
var hoEditorFactory =
|
|
39038
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39040
39039
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
39041
39040
|
var parentNode = hoEditorFactory.docTree.getParentNode(arange.startPath);
|
|
39042
|
-
if (parentNode instanceof
|
|
39043
|
-
|
|
39041
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re) {
|
|
39042
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('不允许在文本域内插入表格');
|
|
39044
39043
|
return;
|
|
39045
39044
|
}
|
|
39046
|
-
if (parentNode instanceof
|
|
39047
|
-
|
|
39045
|
+
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D) {
|
|
39046
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('不允许在表格内再插入表格');
|
|
39048
39047
|
return;
|
|
39049
39048
|
}
|
|
39050
39049
|
// const nextParaNode = new ParagraphNode(
|
|
@@ -39073,10 +39072,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39073
39072
|
// paraNode
|
|
39074
39073
|
// );
|
|
39075
39074
|
// }
|
|
39076
|
-
var tableProperty = new
|
|
39077
|
-
var tableNode = new
|
|
39075
|
+
var tableProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_62__/* .TableProperty */ .vE('');
|
|
39076
|
+
var tableNode = new _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_55__/* .TableNode */ .Fh(this._hoEditorFactoryID, np.roots, parentNode, row, col, tableProperty);
|
|
39078
39077
|
hoEditorFactory.undoService.begin();
|
|
39079
|
-
hoEditorFactory.undoService.add(new
|
|
39078
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertUndoUnit__WEBPACK_IMPORTED_MODULE_65__/* .TableInsertUndoUnit */ .m(this._hoEditorFactoryID, arange.startPath, tableNode));
|
|
39080
39079
|
hoEditorFactory.undoService.commit();
|
|
39081
39080
|
// hoEditorFactory.docTree.insertNodeAfterPath(tablePath, tableNode);
|
|
39082
39081
|
// hoEditorFactory.docTree.curDomRange.endPath = nextParaNode.getNodePath();
|
|
@@ -39092,7 +39091,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39092
39091
|
key: "insertTableRowAbove",
|
|
39093
39092
|
value: function insertTableRowAbove(arange, count) {
|
|
39094
39093
|
var _this4 = this;
|
|
39095
|
-
var hoEditorFactory =
|
|
39094
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39096
39095
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
39097
39096
|
if (np && np.node) {
|
|
39098
39097
|
// const index = np.childIndex;
|
|
@@ -39100,20 +39099,20 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39100
39099
|
// }else{
|
|
39101
39100
|
// }
|
|
39102
39101
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
39103
|
-
if (cell && cell instanceof
|
|
39104
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
39102
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D) {
|
|
39103
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddRow) {
|
|
39105
39104
|
var _cell$table$getCellIn = cell.table.getCellInfos(cell),
|
|
39106
39105
|
_cell$table$getCellIn2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn, 2),
|
|
39107
39106
|
r = _cell$table$getCellIn2[0],
|
|
39108
39107
|
c = _cell$table$getCellIn2[1];
|
|
39109
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
39108
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psEdit && r > 0) {
|
|
39110
39109
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r - 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
39111
|
-
|
|
39110
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
39112
39111
|
return;
|
|
39113
39112
|
}
|
|
39114
39113
|
}
|
|
39115
39114
|
hoEditorFactory.undoService.begin();
|
|
39116
|
-
hoEditorFactory.undoService.add(new
|
|
39115
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_67__/* .TableInsertRowUndoUnit */ .I(this._hoEditorFactoryID, cell.table, r, r, count));
|
|
39117
39116
|
hoEditorFactory.undoService.commit();
|
|
39118
39117
|
var newLineWithCellContent = cell.table.rowInfos[r + count].rowProperty.newLineWithCellContent;
|
|
39119
39118
|
var withFormula = cell.table.rowInfos[r].rowProperty.withFormula;
|
|
@@ -39125,26 +39124,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39125
39124
|
if (tCell && sCell && sCell.childNodes.length > 1) {
|
|
39126
39125
|
var spath = sCell.childNodes[0].getNodePath();
|
|
39127
39126
|
var epath = hoEditorFactory.docTree.getNodeLastPath(sCell.childNodes[sCell.childNodes.length - 1]);
|
|
39128
|
-
var domRange = new
|
|
39127
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
39129
39128
|
var jsonData = hoEditorFactory.structureNode.Copy(domRange, null, false);
|
|
39130
39129
|
hoEditorFactory.docTree.curDomRange.setSamePath(tCell.childNodes[0].getNodePath());
|
|
39131
|
-
var nodes = hoEditorFactory.structureNode.Parse(
|
|
39130
|
+
var nodes = hoEditorFactory.structureNode.Parse(_utils_StructureNode__WEBPACK_IMPORTED_MODULE_94__/* .ClipboardType */ .Y6.ctJSON, jsonData);
|
|
39132
39131
|
for (var n = 0; n < nodes.length; n++) {
|
|
39133
39132
|
var anode = nodes[n];
|
|
39134
|
-
if (anode instanceof
|
|
39133
|
+
if (anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R) {
|
|
39135
39134
|
nodes.splice(n, 1);
|
|
39136
|
-
} else if (anode instanceof
|
|
39135
|
+
} else if (anode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re && !anode.isEmpty()) {
|
|
39137
39136
|
anode.childNodes.splice(1, anode.childNodes.length - 2);
|
|
39138
|
-
var markNode = new
|
|
39137
|
+
var markNode = new _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_51__/* .MarkNode */ .j(this._hoEditorFactoryID, anode.rootNodes, anode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntMark, anode.name, anode.childNodes[0].styleIndex, 1);
|
|
39139
39138
|
anode.childNodes.splice(1, 0, markNode);
|
|
39140
|
-
} else if (anode instanceof
|
|
39139
|
+
} else if (anode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_59__/* .DownListNode */ .yF && anode.keyValue !== '') {
|
|
39141
39140
|
anode.text = anode.name;
|
|
39142
39141
|
anode.keyValue = '';
|
|
39143
39142
|
anode.node2DrawNode();
|
|
39144
|
-
} else if (anode instanceof
|
|
39143
|
+
} else if (anode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_58__/* .DateTimeNode */ .Z && anode.text !== anode.labelText) {
|
|
39145
39144
|
anode.text = anode.labelText;
|
|
39146
39145
|
anode.node2DrawNode();
|
|
39147
|
-
} else if (anode instanceof
|
|
39146
|
+
} else if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_88__/* .SignNode */ .N && anode.number !== 0) {
|
|
39148
39147
|
anode.number = 0;
|
|
39149
39148
|
anode.type = 0;
|
|
39150
39149
|
anode.signor = '';
|
|
@@ -39155,7 +39154,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39155
39154
|
anode.fingerPrintSrc = '';
|
|
39156
39155
|
anode.fingerPosition = 0;
|
|
39157
39156
|
anode.imgSrc = '';
|
|
39158
|
-
} else if (withFormula && anode instanceof
|
|
39157
|
+
} else if (withFormula && anode instanceof _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_75__/* .TableFormula */ .N) {
|
|
39159
39158
|
anode.formulaStr = anode.formulaStr.replaceAll(/\d/g, (i + 1).toString());
|
|
39160
39159
|
anode.node2DrawNode();
|
|
39161
39160
|
var oldFormula = sCell.childNodes[n + 1];
|
|
@@ -39172,7 +39171,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39172
39171
|
var mark = false;
|
|
39173
39172
|
var index = hoEditorFactory.vueController.getTableTitleMaxRowIndex(cell.table);
|
|
39174
39173
|
var newTextNode = function newTextNode(text, c) {
|
|
39175
|
-
var textNode = new
|
|
39174
|
+
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R(_this4._hoEditorFactoryID, cell.rootNodes, cell, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntText, text, cell.childNodes[0].styleIndex);
|
|
39176
39175
|
var fillCell = cell.table.rows[index + 1][c];
|
|
39177
39176
|
if (fillCell) {
|
|
39178
39177
|
var path = fillCell.childNodes[0].getNodePath();
|
|
@@ -39184,11 +39183,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39184
39183
|
var colProperty = cell.table.colInfos[k].colProperty;
|
|
39185
39184
|
if (colProperty.dateTimeProperty && colProperty.dateTimeProperty.isAutoInputCurDate) {
|
|
39186
39185
|
var date = Date.now();
|
|
39187
|
-
var text = (0,
|
|
39186
|
+
var text = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_96__/* .dateFormat */ .vc)(date, colProperty.dateTimeProperty.inputStyle);
|
|
39188
39187
|
newTextNode(text, k);
|
|
39189
39188
|
mark = true;
|
|
39190
39189
|
}
|
|
39191
|
-
if (colProperty.editorProperty ===
|
|
39190
|
+
if (colProperty.editorProperty === _TableProperty__WEBPACK_IMPORTED_MODULE_62__/* .EditorProperty */ .YS.OrderNumber) {
|
|
39192
39191
|
var acell = cell.table.rows[index + 2][k];
|
|
39193
39192
|
if (acell) {
|
|
39194
39193
|
var ctext = acell.getCellText();
|
|
@@ -39227,8 +39226,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39227
39226
|
if (sCellNode && eCellNode) {
|
|
39228
39227
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
39229
39228
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
39230
|
-
var newRange = new
|
|
39231
|
-
var cgEvent = new
|
|
39229
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
39230
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_39__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
39232
39231
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
39233
39232
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
39234
39233
|
}
|
|
@@ -39250,7 +39249,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39250
39249
|
// );
|
|
39251
39250
|
// }
|
|
39252
39251
|
} else {
|
|
39253
|
-
|
|
39252
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('表格已设置不允许新增行');
|
|
39254
39253
|
return;
|
|
39255
39254
|
}
|
|
39256
39255
|
}
|
|
@@ -39259,24 +39258,24 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39259
39258
|
}, {
|
|
39260
39259
|
key: "insertTableRowBelow",
|
|
39261
39260
|
value: function insertTableRowBelow(arange, count) {
|
|
39262
|
-
var hoEditorFactory =
|
|
39261
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39263
39262
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.endPath);
|
|
39264
39263
|
if (np && np.node) {
|
|
39265
39264
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
39266
|
-
if (cell && cell instanceof
|
|
39267
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
39265
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D) {
|
|
39266
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddRow) {
|
|
39268
39267
|
var _cell$table$getCellIn3 = cell.table.getCellInfos(cell),
|
|
39269
39268
|
_cell$table$getCellIn4 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn3, 2),
|
|
39270
39269
|
r = _cell$table$getCellIn4[0],
|
|
39271
39270
|
c = _cell$table$getCellIn4[1];
|
|
39272
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
39271
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psEdit) {
|
|
39273
39272
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r + 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
39274
|
-
|
|
39273
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
39275
39274
|
return;
|
|
39276
39275
|
}
|
|
39277
39276
|
}
|
|
39278
39277
|
hoEditorFactory.undoService.begin();
|
|
39279
|
-
hoEditorFactory.undoService.add(new
|
|
39278
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_67__/* .TableInsertRowUndoUnit */ .I(this._hoEditorFactoryID, cell.table, r + 1, r, count));
|
|
39280
39279
|
hoEditorFactory.undoService.commit();
|
|
39281
39280
|
var newLineWithCellContent = cell.table.rowInfos[r].rowProperty.newLineWithCellContent;
|
|
39282
39281
|
var withFormula = cell.table.rowInfos[r].rowProperty.withFormula;
|
|
@@ -39288,26 +39287,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39288
39287
|
if (tCell && sCell && sCell.childNodes.length > 1) {
|
|
39289
39288
|
var spath = sCell.childNodes[0].getNodePath();
|
|
39290
39289
|
var epath = hoEditorFactory.docTree.getNodeLastPath(sCell.childNodes[sCell.childNodes.length - 1]);
|
|
39291
|
-
var domRange = new
|
|
39290
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
39292
39291
|
var jsonData = hoEditorFactory.structureNode.Copy(domRange, null, false);
|
|
39293
|
-
var nodes = hoEditorFactory.structureNode.Parse(
|
|
39292
|
+
var nodes = hoEditorFactory.structureNode.Parse(_utils_StructureNode__WEBPACK_IMPORTED_MODULE_94__/* .ClipboardType */ .Y6.ctJSON, jsonData);
|
|
39294
39293
|
hoEditorFactory.docTree.curDomRange.setSamePath(tCell.childNodes[0].getNodePath());
|
|
39295
39294
|
for (var n = 0; n < nodes.length; n++) {
|
|
39296
39295
|
var anode = nodes[n];
|
|
39297
|
-
if (anode instanceof
|
|
39296
|
+
if (anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R) {
|
|
39298
39297
|
nodes.splice(n, 1);
|
|
39299
|
-
} else if (anode instanceof
|
|
39298
|
+
} else if (anode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re && !anode.isEmpty()) {
|
|
39300
39299
|
anode.childNodes.splice(1, anode.childNodes.length - 2);
|
|
39301
|
-
var markNode = new
|
|
39300
|
+
var markNode = new _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_51__/* .MarkNode */ .j(this._hoEditorFactoryID, anode.rootNodes, anode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntMark, anode.name, anode.childNodes[0].styleIndex, 1);
|
|
39302
39301
|
anode.childNodes.splice(1, 0, markNode);
|
|
39303
|
-
} else if (anode instanceof
|
|
39302
|
+
} else if (anode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_59__/* .DownListNode */ .yF && anode.keyValue !== '') {
|
|
39304
39303
|
anode.text = anode.name;
|
|
39305
39304
|
anode.keyValue = '';
|
|
39306
39305
|
anode.node2DrawNode();
|
|
39307
|
-
} else if (anode instanceof
|
|
39306
|
+
} else if (anode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_58__/* .DateTimeNode */ .Z && anode.text !== anode.labelText) {
|
|
39308
39307
|
anode.text = anode.labelText;
|
|
39309
39308
|
anode.node2DrawNode();
|
|
39310
|
-
} else if (anode instanceof
|
|
39309
|
+
} else if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_88__/* .SignNode */ .N && anode.number !== 0) {
|
|
39311
39310
|
anode.number = 0;
|
|
39312
39311
|
anode.type = 0;
|
|
39313
39312
|
anode.signor = '';
|
|
@@ -39318,7 +39317,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39318
39317
|
anode.fingerPrintSrc = '';
|
|
39319
39318
|
anode.fingerPosition = 0;
|
|
39320
39319
|
anode.imgSrc = '';
|
|
39321
|
-
} else if (withFormula && anode instanceof
|
|
39320
|
+
} else if (withFormula && anode instanceof _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_75__/* .TableFormula */ .N) {
|
|
39322
39321
|
anode.formulaStr = anode.formulaStr.replaceAll(/\d/g, (i + 1).toString());
|
|
39323
39322
|
anode.node2DrawNode();
|
|
39324
39323
|
}
|
|
@@ -39349,8 +39348,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39349
39348
|
if (sCellNode && eCellNode) {
|
|
39350
39349
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
39351
39350
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
39352
|
-
var newRange = new
|
|
39353
|
-
var cgEvent = new
|
|
39351
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
39352
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_39__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
39354
39353
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
39355
39354
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
39356
39355
|
}
|
|
@@ -39372,7 +39371,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39372
39371
|
// );
|
|
39373
39372
|
// }
|
|
39374
39373
|
} else {
|
|
39375
|
-
|
|
39374
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('表格已设置不允许新增行');
|
|
39376
39375
|
return;
|
|
39377
39376
|
}
|
|
39378
39377
|
}
|
|
@@ -39381,19 +39380,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39381
39380
|
}, {
|
|
39382
39381
|
key: "insertTableColLeft",
|
|
39383
39382
|
value: function insertTableColLeft(arange, count) {
|
|
39384
|
-
var hoEditorFactory =
|
|
39383
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39385
39384
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.endPath);
|
|
39386
39385
|
if (np && np.node) {
|
|
39387
39386
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
39388
|
-
if (cell && cell instanceof
|
|
39387
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D) {
|
|
39389
39388
|
var status = hoEditorFactory.drawTree.paintStatus;
|
|
39390
|
-
if (status ==
|
|
39389
|
+
if (status == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddCol) {
|
|
39391
39390
|
var _cell$table$getCellIn5 = cell.table.getCellInfos(cell),
|
|
39392
39391
|
_cell$table$getCellIn6 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn5, 2),
|
|
39393
39392
|
r = _cell$table$getCellIn6[0],
|
|
39394
39393
|
c = _cell$table$getCellIn6[1];
|
|
39395
39394
|
hoEditorFactory.undoService.begin();
|
|
39396
|
-
hoEditorFactory.undoService.add(new
|
|
39395
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertColUndoUnit__WEBPACK_IMPORTED_MODULE_69__/* .TableInsertColUndoUnit */ .m(this._hoEditorFactoryID, cell.table, c, count));
|
|
39397
39396
|
hoEditorFactory.undoService.commit();
|
|
39398
39397
|
var sCellNode = cell.table.rows[0][c];
|
|
39399
39398
|
var eCellNode = cell.table.rows[cell.table.rowCount - 1][c + count - 1];
|
|
@@ -39408,8 +39407,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39408
39407
|
if (sCellNode && eCellNode) {
|
|
39409
39408
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
39410
39409
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
39411
|
-
var newRange = new
|
|
39412
|
-
var cgEvent = new
|
|
39410
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
39411
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_39__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
39413
39412
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
39414
39413
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
39415
39414
|
}
|
|
@@ -39433,7 +39432,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39433
39432
|
// );
|
|
39434
39433
|
// }
|
|
39435
39434
|
} else {
|
|
39436
|
-
|
|
39435
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('表格已设置不允许新增列');
|
|
39437
39436
|
return;
|
|
39438
39437
|
}
|
|
39439
39438
|
}
|
|
@@ -39442,18 +39441,18 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39442
39441
|
}, {
|
|
39443
39442
|
key: "insertTableColRight",
|
|
39444
39443
|
value: function insertTableColRight(arange, count) {
|
|
39445
|
-
var hoEditorFactory =
|
|
39444
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39446
39445
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.endPath);
|
|
39447
39446
|
if (np && np.node) {
|
|
39448
39447
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
39449
|
-
if (cell && cell instanceof
|
|
39450
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
39448
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D) {
|
|
39449
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddCol) {
|
|
39451
39450
|
var _cell$table$getCellIn7 = cell.table.getCellInfos(cell),
|
|
39452
39451
|
_cell$table$getCellIn8 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn7, 2),
|
|
39453
39452
|
r = _cell$table$getCellIn8[0],
|
|
39454
39453
|
c = _cell$table$getCellIn8[1];
|
|
39455
39454
|
hoEditorFactory.undoService.begin();
|
|
39456
|
-
hoEditorFactory.undoService.add(new
|
|
39455
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertColUndoUnit__WEBPACK_IMPORTED_MODULE_69__/* .TableInsertColUndoUnit */ .m(this._hoEditorFactoryID, cell.table, c + 1, count));
|
|
39457
39456
|
hoEditorFactory.undoService.commit();
|
|
39458
39457
|
var sCellNode = cell.table.rows[0][c + 1];
|
|
39459
39458
|
var eCellNode = cell.table.rows[cell.table.rowCount - 1][c + count];
|
|
@@ -39468,8 +39467,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39468
39467
|
if (sCellNode && eCellNode) {
|
|
39469
39468
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
39470
39469
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
39471
|
-
var newRange = new
|
|
39472
|
-
var cgEvent = new
|
|
39470
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
39471
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_39__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
39473
39472
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
39474
39473
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
39475
39474
|
}
|
|
@@ -39491,7 +39490,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39491
39490
|
// );
|
|
39492
39491
|
// }
|
|
39493
39492
|
} else {
|
|
39494
|
-
|
|
39493
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('表格已设置不允许新增列');
|
|
39495
39494
|
return;
|
|
39496
39495
|
}
|
|
39497
39496
|
}
|
|
@@ -39500,7 +39499,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39500
39499
|
}, {
|
|
39501
39500
|
key: "tableDeleteRows",
|
|
39502
39501
|
value: function tableDeleteRows(aRange) {
|
|
39503
|
-
var _TableNode$getSelectT =
|
|
39502
|
+
var _TableNode$getSelectT = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_55__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, aRange),
|
|
39504
39503
|
_TableNode$getSelectT2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_TableNode$getSelectT, 5),
|
|
39505
39504
|
table = _TableNode$getSelectT2[0],
|
|
39506
39505
|
r1 = _TableNode$getSelectT2[1],
|
|
@@ -39508,19 +39507,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39508
39507
|
r2 = _TableNode$getSelectT2[3],
|
|
39509
39508
|
c2 = _TableNode$getSelectT2[4];
|
|
39510
39509
|
if (!table) {
|
|
39511
|
-
|
|
39510
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格才能删除');
|
|
39512
39511
|
return;
|
|
39513
39512
|
}
|
|
39514
39513
|
// const eParentNode = (aRange.npEnd.node as BaseNode).parentNode;
|
|
39515
39514
|
// if (eParentNode instanceof CellNode && eParentNode.rowSpan > 1) {
|
|
39516
39515
|
// r2 = r2 + eParentNode.rowSpan - 1;
|
|
39517
39516
|
// }
|
|
39518
|
-
var hoEditorFactory =
|
|
39519
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
39517
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39518
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_95__/* .PaintState */ .Dh.psEdit) {
|
|
39520
39519
|
for (var i = r1; i <= r2; i++) {
|
|
39521
39520
|
var rowInfo = table.rowInfos[i];
|
|
39522
39521
|
if (rowInfo.rowProperty.repeatAsTitleAtPageTop) {
|
|
39523
|
-
|
|
39522
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('表头行不允许删除');
|
|
39524
39523
|
return;
|
|
39525
39524
|
}
|
|
39526
39525
|
}
|
|
@@ -39533,7 +39532,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39533
39532
|
return;
|
|
39534
39533
|
}
|
|
39535
39534
|
hoEditorFactory.undoService.begin();
|
|
39536
|
-
hoEditorFactory.undoService.add(new
|
|
39535
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteRowUndoUnit__WEBPACK_IMPORTED_MODULE_66__/* .TableDeleteRowUndoUnit */ .$r(this._hoEditorFactoryID, table, r1, r2 - r1 + 1));
|
|
39537
39536
|
hoEditorFactory.undoService.commit();
|
|
39538
39537
|
if (table.childNodes.length > 0) {
|
|
39539
39538
|
var path = '';
|
|
@@ -39546,9 +39545,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39546
39545
|
var firstCell = table.childNodes[0];
|
|
39547
39546
|
path = hoEditorFactory.docTree.getNodeFirstPath(firstCell);
|
|
39548
39547
|
}
|
|
39549
|
-
var newDomRange = new
|
|
39548
|
+
var newDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, path, path);
|
|
39550
39549
|
hoEditorFactory.docTree.curDomRange = newDomRange;
|
|
39551
|
-
var cgEvent = new
|
|
39550
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_39__/* .SelectionChangeEvent */ .r(newDomRange, newDomRange); //选中范围变化事件
|
|
39552
39551
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
39553
39552
|
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
39554
39553
|
}
|
|
@@ -39571,7 +39570,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39571
39570
|
}, {
|
|
39572
39571
|
key: "tableDeleteCols",
|
|
39573
39572
|
value: function tableDeleteCols(aRange) {
|
|
39574
|
-
var _TableNode$getSelectT3 =
|
|
39573
|
+
var _TableNode$getSelectT3 = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_55__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, aRange),
|
|
39575
39574
|
_TableNode$getSelectT4 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_TableNode$getSelectT3, 5),
|
|
39576
39575
|
table = _TableNode$getSelectT4[0],
|
|
39577
39576
|
r1 = _TableNode$getSelectT4[1],
|
|
@@ -39579,12 +39578,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39579
39578
|
r2 = _TableNode$getSelectT4[3],
|
|
39580
39579
|
c2 = _TableNode$getSelectT4[4];
|
|
39581
39580
|
if (!table) {
|
|
39582
|
-
|
|
39581
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格才能删除');
|
|
39583
39582
|
return;
|
|
39584
39583
|
}
|
|
39585
|
-
var hoEditorFactory =
|
|
39584
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39586
39585
|
var eParentNode = aRange.npEnd.node.parentNode;
|
|
39587
|
-
if (eParentNode instanceof
|
|
39586
|
+
if (eParentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D && eParentNode.colSpan > 1) {
|
|
39588
39587
|
c2 = c2 + eParentNode.colSpan - 1;
|
|
39589
39588
|
}
|
|
39590
39589
|
if (c1 === 0 && c2 == table.colCount - 1) {
|
|
@@ -39595,14 +39594,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39595
39594
|
return;
|
|
39596
39595
|
}
|
|
39597
39596
|
hoEditorFactory.undoService.begin();
|
|
39598
|
-
hoEditorFactory.undoService.add(new
|
|
39597
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteColUndoUnit__WEBPACK_IMPORTED_MODULE_68__/* .TableDeleteColUndoUnit */ .u(this._hoEditorFactoryID, table, c1, c2 - c1 + 1));
|
|
39599
39598
|
hoEditorFactory.undoService.commit();
|
|
39600
39599
|
if (table.childNodes.length > 0) {
|
|
39601
39600
|
var firstCell = table.childNodes[0];
|
|
39602
39601
|
var path = hoEditorFactory.docTree.getNodeFirstPath(firstCell);
|
|
39603
|
-
var newDomRange = new
|
|
39602
|
+
var newDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, path, path);
|
|
39604
39603
|
hoEditorFactory.docTree.curDomRange = newDomRange;
|
|
39605
|
-
var cgEvent = new
|
|
39604
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_39__/* .SelectionChangeEvent */ .r(newDomRange, newDomRange); //选中范围变化事件
|
|
39606
39605
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
39607
39606
|
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
39608
39607
|
}
|
|
@@ -39625,14 +39624,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39625
39624
|
}, {
|
|
39626
39625
|
key: "tableMergerCells",
|
|
39627
39626
|
value: function tableMergerCells(aRange) {
|
|
39628
|
-
var hoEditorFactory =
|
|
39627
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39629
39628
|
var np1 = hoEditorFactory.docTree.findNodePositionByPath(aRange.startPath);
|
|
39630
39629
|
var np2 = hoEditorFactory.docTree.findNodePositionByPath(aRange.endPath);
|
|
39631
39630
|
if (np1 && np1.node && np2 && np2.node) {
|
|
39632
39631
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
39633
39632
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
39634
|
-
if (!(cell1 instanceof
|
|
39635
|
-
|
|
39633
|
+
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D) || cell1.table !== cell2.table || cell1 === cell2) {
|
|
39634
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的不同单元格才能合并');
|
|
39636
39635
|
return;
|
|
39637
39636
|
}
|
|
39638
39637
|
var _cell1$table$getCellI = cell1.table.getCellInfos(cell1),
|
|
@@ -39654,7 +39653,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39654
39653
|
aColSpan = _cell1$table$canMerge2[2];
|
|
39655
39654
|
if (ret) {
|
|
39656
39655
|
hoEditorFactory.undoService.begin();
|
|
39657
|
-
hoEditorFactory.undoService.add(new
|
|
39656
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_70__/* .TableMergeCellUndoUnit */ .A(this._hoEditorFactoryID, cell1.table, r1, c1, aRowSpan, aColSpan));
|
|
39658
39657
|
hoEditorFactory.undoService.commit();
|
|
39659
39658
|
// cell1.table.mergeCells(r1, c1, rowSpan, colSpan);
|
|
39660
39659
|
// const endPath = (cell1 as CellNode).table.getNodePath();
|
|
@@ -39677,14 +39676,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39677
39676
|
}, {
|
|
39678
39677
|
key: "tableUnMergerCells",
|
|
39679
39678
|
value: function tableUnMergerCells(aRange) {
|
|
39680
|
-
var hoEditorFactory =
|
|
39679
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39681
39680
|
var np1 = hoEditorFactory.docTree.findNodePositionByPath(aRange.startPath);
|
|
39682
39681
|
var np2 = hoEditorFactory.docTree.findNodePositionByPath(aRange.endPath);
|
|
39683
39682
|
if (np1 && np1.node && np2 && np2.node) {
|
|
39684
39683
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
39685
39684
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
39686
|
-
if (!(cell1 instanceof
|
|
39687
|
-
|
|
39685
|
+
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D) || cell1.table !== cell2.table) {
|
|
39686
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的单元格才能取消合并');
|
|
39688
39687
|
return;
|
|
39689
39688
|
}
|
|
39690
39689
|
var endPath = cell1.table.getNodePath();
|
|
@@ -39711,7 +39710,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39711
39710
|
var cell = cell1.table.rows[r][c];
|
|
39712
39711
|
if (cell && (cell.rowSpan > 1 || cell.colSpan > 1)) {
|
|
39713
39712
|
hoEditorFactory.undoService.begin();
|
|
39714
|
-
hoEditorFactory.undoService.add(new
|
|
39713
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableUnMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_71__/* .TableUnMergeCellUndoUnit */ .u(this._hoEditorFactoryID, cell1.table, r, c));
|
|
39715
39714
|
hoEditorFactory.undoService.commit();
|
|
39716
39715
|
}
|
|
39717
39716
|
}
|
|
@@ -39736,7 +39735,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39736
39735
|
}, {
|
|
39737
39736
|
key: "setTableProperty",
|
|
39738
39737
|
value: function setTableProperty(objectValues, tableNode) {
|
|
39739
|
-
var tableProperty = new
|
|
39738
|
+
var tableProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_62__/* .TableProperty */ .vE(objectValues);
|
|
39740
39739
|
tableNode.tableProperty = tableProperty;
|
|
39741
39740
|
}
|
|
39742
39741
|
/**
|
|
@@ -39748,9 +39747,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39748
39747
|
key: "setRowProperty",
|
|
39749
39748
|
value: function setRowProperty(curDomRange, objectValues, rowInfo) {
|
|
39750
39749
|
var _this5 = this;
|
|
39751
|
-
var hoEditorFactory =
|
|
39750
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39752
39751
|
var setRowProps = function setRowProps(rowInfo) {
|
|
39753
|
-
var rowProperty = new
|
|
39752
|
+
var rowProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_62__/* .RowProperty */ .Nr(objectValues);
|
|
39754
39753
|
var oldRowProperty = rowInfo.rowProperty;
|
|
39755
39754
|
rowInfo.rowProperty = rowProperty;
|
|
39756
39755
|
if (rowProperty.isSpecifyHeight && rowProperty.rowHeight !== oldRowProperty.rowHeight) {
|
|
@@ -39759,7 +39758,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39759
39758
|
var r = rowInfo.table.rowInfos.indexOf(rowInfo);
|
|
39760
39759
|
if (r >= 0) {
|
|
39761
39760
|
hoEditorFactory.undoService.begin();
|
|
39762
|
-
hoEditorFactory.undoService.add(new
|
|
39761
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableResizeRowUndoUnit__WEBPACK_IMPORTED_MODULE_78__/* .TableResizeRowUndoUnit */ .w(_this5._hoEditorFactoryID, rowInfo.table, r, oldHeight, newHeight));
|
|
39763
39762
|
hoEditorFactory.undoService.commit();
|
|
39764
39763
|
}
|
|
39765
39764
|
}
|
|
@@ -39768,7 +39767,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39768
39767
|
setRowProps(rowInfo);
|
|
39769
39768
|
} else {
|
|
39770
39769
|
if (curDomRange.startMainNode && curDomRange.endMainNode) {
|
|
39771
|
-
var rowscols =
|
|
39770
|
+
var rowscols = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_55__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, curDomRange);
|
|
39772
39771
|
if (rowscols[0]) {
|
|
39773
39772
|
var startRowNo = rowscols[1];
|
|
39774
39773
|
var endRowNo = rowscols[3];
|
|
@@ -39786,7 +39785,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39786
39785
|
}
|
|
39787
39786
|
}
|
|
39788
39787
|
rowInfo.table.update();
|
|
39789
|
-
var cgEvent = new
|
|
39788
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_39__/* .SelectionChangeEvent */ .r(curDomRange, curDomRange); //选中范围变化事件
|
|
39790
39789
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
39791
39790
|
}
|
|
39792
39791
|
/**
|
|
@@ -39798,9 +39797,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39798
39797
|
key: "setColProperty",
|
|
39799
39798
|
value: function setColProperty(curDomRange, objectValues, colInfo) {
|
|
39800
39799
|
var _this6 = this;
|
|
39801
|
-
var hoEditorFactory =
|
|
39800
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39802
39801
|
var setColProps = function setColProps(colInfo) {
|
|
39803
|
-
var colProperty = new
|
|
39802
|
+
var colProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_62__/* .ColProperty */ .Ti(objectValues);
|
|
39804
39803
|
var oldColProperty = colInfo.colProperty;
|
|
39805
39804
|
colInfo.colProperty = colProperty;
|
|
39806
39805
|
if (colProperty.isSpecifyWidth && colProperty.width !== oldColProperty.width) {
|
|
@@ -39808,7 +39807,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39808
39807
|
var c = colInfo.table.colInfos.indexOf(colInfo);
|
|
39809
39808
|
if (c >= 0) {
|
|
39810
39809
|
hoEditorFactory.undoService.begin();
|
|
39811
|
-
hoEditorFactory.undoService.add(new
|
|
39810
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableResizeColUndoUnit__WEBPACK_IMPORTED_MODULE_77__/* .TableResizeColUndoUnit */ .D(_this6._hoEditorFactoryID, colInfo.table, c, newHeight));
|
|
39812
39811
|
hoEditorFactory.undoService.commit();
|
|
39813
39812
|
}
|
|
39814
39813
|
}
|
|
@@ -39829,7 +39828,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39829
39828
|
setColProps(colInfo);
|
|
39830
39829
|
} else {
|
|
39831
39830
|
if (curDomRange.startMainNode && curDomRange.endMainNode) {
|
|
39832
|
-
var rowscols =
|
|
39831
|
+
var rowscols = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_55__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, curDomRange);
|
|
39833
39832
|
if (rowscols[0]) {
|
|
39834
39833
|
var startColNo = rowscols[2];
|
|
39835
39834
|
var endColNo = rowscols[4];
|
|
@@ -39847,7 +39846,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39847
39846
|
}
|
|
39848
39847
|
}
|
|
39849
39848
|
colInfo.table.update();
|
|
39850
|
-
var cgEvent = new
|
|
39849
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_39__/* .SelectionChangeEvent */ .r(curDomRange, curDomRange); //选中范围变化事件
|
|
39851
39850
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
39852
39851
|
}
|
|
39853
39852
|
/**
|
|
@@ -39858,7 +39857,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39858
39857
|
}, {
|
|
39859
39858
|
key: "setCellProperty",
|
|
39860
39859
|
value: function setCellProperty(objectValues, cellNode) {
|
|
39861
|
-
var cellProperty = new
|
|
39860
|
+
var cellProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_62__/* .CellProperty */ .$W(objectValues);
|
|
39862
39861
|
cellNode.cellProperty = cellProperty;
|
|
39863
39862
|
cellNode.drawCell.drawPageCells.forEach(function (pcell) {
|
|
39864
39863
|
pcell.valignTop = pcell.calcValignTop(pcell.dHeight)[0];
|
|
@@ -39870,12 +39869,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39870
39869
|
}, {
|
|
39871
39870
|
key: "addHeader",
|
|
39872
39871
|
value: function addHeader(arange) {
|
|
39873
|
-
var hoEditorFactory =
|
|
39872
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39874
39873
|
//切换路径
|
|
39875
39874
|
var cpage = hoEditorFactory.drawTree.activePage;
|
|
39876
|
-
if (!cpage) throw
|
|
39875
|
+
if (!cpage) throw _events_Exception__WEBPACK_IMPORTED_MODULE_56__/* .Exception */ .P.LineNotDefined();
|
|
39877
39876
|
//切换当前页面页眉
|
|
39878
|
-
hoEditorFactory.subDocManger.addANewSubDoc(cpage.pageIndex,
|
|
39877
|
+
hoEditorFactory.subDocManger.addANewSubDoc(cpage.pageIndex, _SubDocManger__WEBPACK_IMPORTED_MODULE_60__/* .HeaderFooterType */ .pi.hftHead);
|
|
39879
39878
|
// const index = hoEditorFactory.drawTree.headerDNodes.length;
|
|
39880
39879
|
// const newPath = `${gHeaderPath}/${index}`;
|
|
39881
39880
|
// cpage?.drawDomLevel?.drawHeader.DeletePage(cpage);
|
|
@@ -39920,15 +39919,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39920
39919
|
value: function insertRadioAndCheckBox(operType, curDomRange, valuesObject, styleIndex) {
|
|
39921
39920
|
var domRange = curDomRange.normalize();
|
|
39922
39921
|
var startPath = domRange.endPath;
|
|
39923
|
-
var hoEditorFactory =
|
|
39922
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39924
39923
|
var oldIsTransToText = false;
|
|
39925
39924
|
if (operType === 'update') {
|
|
39926
39925
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
39927
39926
|
if (np) {
|
|
39928
39927
|
var node = np.node;
|
|
39929
|
-
if (node instanceof
|
|
39928
|
+
if (node instanceof _treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_57__/* .RadioAndCheckBoxNode */ .Yh) {
|
|
39930
39929
|
hoEditorFactory.undoService.begin();
|
|
39931
|
-
hoEditorFactory.undoService.add(new
|
|
39930
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
39932
39931
|
oldIsTransToText = node.isTransToText;
|
|
39933
39932
|
//hoEditorFactory.undoService.commit();
|
|
39934
39933
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
@@ -39944,18 +39943,18 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39944
39943
|
//valuesObj["text"] = "";
|
|
39945
39944
|
//valuesObject = JSON.stringify(valuesObj);
|
|
39946
39945
|
//}
|
|
39947
|
-
var radioAndCheckBoxNode = new
|
|
39946
|
+
var radioAndCheckBoxNode = new _treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_57__/* .RadioAndCheckBoxNode */ .Yh(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntControl, valuesObject, styleIndex);
|
|
39948
39947
|
//插入该表达式节点
|
|
39949
39948
|
if (operType === 'add') {
|
|
39950
39949
|
hoEditorFactory.undoService.begin();
|
|
39951
39950
|
}
|
|
39952
|
-
hoEditorFactory.undoService.add(new
|
|
39951
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, radioAndCheckBoxNode));
|
|
39953
39952
|
hoEditorFactory.undoService.commit();
|
|
39954
39953
|
if (isTransToText && (operType === 'add' || operType === 'update' && !oldIsTransToText)) {
|
|
39955
39954
|
var path = radioAndCheckBoxNode.getNodePath();
|
|
39956
|
-
var textNode = new
|
|
39955
|
+
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntText, text, styleIndex);
|
|
39957
39956
|
hoEditorFactory.undoService.begin();
|
|
39958
|
-
hoEditorFactory.undoService.add(new
|
|
39957
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, textNode));
|
|
39959
39958
|
hoEditorFactory.undoService.commit();
|
|
39960
39959
|
}
|
|
39961
39960
|
}
|
|
@@ -39968,7 +39967,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39968
39967
|
}, {
|
|
39969
39968
|
key: "find",
|
|
39970
39969
|
value: function find(curDomRange, findContent, direction, matchCase) {
|
|
39971
|
-
var hoEditorFactory =
|
|
39970
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39972
39971
|
if (this._findContent.length === 0) {
|
|
39973
39972
|
this._findContent = findContent;
|
|
39974
39973
|
this._count++;
|
|
@@ -39992,7 +39991,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39992
39991
|
}
|
|
39993
39992
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
39994
39993
|
if (object.obj2.size === 0) {
|
|
39995
|
-
|
|
39994
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('未能找到指定内容。');
|
|
39996
39995
|
} else {
|
|
39997
39996
|
var nodesMap = object.obj1;
|
|
39998
39997
|
var indexsMap = object.obj2;
|
|
@@ -40021,8 +40020,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40021
40020
|
}
|
|
40022
40021
|
}
|
|
40023
40022
|
var oldRange = hoEditorFactory.docTree.curDomRange;
|
|
40024
|
-
var newRange = new
|
|
40025
|
-
var cgEvent = new
|
|
40023
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, returnPath, path);
|
|
40024
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_39__/* .SelectionChangeEvent */ .r(oldRange, newRange); //选中范围变化事件
|
|
40026
40025
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
40027
40026
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
40028
40027
|
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
@@ -40040,7 +40039,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40040
40039
|
}, {
|
|
40041
40040
|
key: "replace",
|
|
40042
40041
|
value: function replace(curDomRange, findContent, replaceContent, path, type, direction, matchCase) {
|
|
40043
|
-
var hoEditorFactory =
|
|
40042
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40044
40043
|
var domRange = curDomRange.normalize();
|
|
40045
40044
|
var startNode = domRange.npStart.node;
|
|
40046
40045
|
var sNode = startNode;
|
|
@@ -40053,7 +40052,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40053
40052
|
sNode = startNode.rootNodes[0];
|
|
40054
40053
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
40055
40054
|
if (object.obj2.size === 0) {
|
|
40056
|
-
|
|
40055
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('未能找到指定内容。');
|
|
40057
40056
|
} else {
|
|
40058
40057
|
var nodesMap = object.obj1;
|
|
40059
40058
|
var indexsMap = object.obj2;
|
|
@@ -40094,9 +40093,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40094
40093
|
var endPath1 = getArr1[1];
|
|
40095
40094
|
var newTextNode1 = getArr1[2];
|
|
40096
40095
|
hoEditorFactory.undoService.begin();
|
|
40097
|
-
hoEditorFactory.undoService.add(new
|
|
40096
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_40__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, startPath, endPath1));
|
|
40098
40097
|
if (replaceContent !== '') {
|
|
40099
|
-
hoEditorFactory.undoService.add(new
|
|
40098
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, newTextNode1));
|
|
40100
40099
|
}
|
|
40101
40100
|
hoEditorFactory.undoService.commit();
|
|
40102
40101
|
}
|
|
@@ -40105,7 +40104,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40105
40104
|
} finally {
|
|
40106
40105
|
_iterator.f();
|
|
40107
40106
|
}
|
|
40108
|
-
|
|
40107
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.info('成功替换了' + indexsMap.size.toString() + '处文档内容。');
|
|
40109
40108
|
var toPath = hoEditorFactory.docTree.curDomRange.endPath;
|
|
40110
40109
|
hoEditorFactory.drawTree.moveCaretToPath(toPath);
|
|
40111
40110
|
}
|
|
@@ -40118,9 +40117,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40118
40117
|
var endPath2 = getArr2[0];
|
|
40119
40118
|
var newTextNode2 = getArr2[1];
|
|
40120
40119
|
hoEditorFactory.undoService.begin();
|
|
40121
|
-
hoEditorFactory.undoService.add(new
|
|
40120
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_40__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, path, endPath2));
|
|
40122
40121
|
if (replaceContent !== '') {
|
|
40123
|
-
hoEditorFactory.undoService.add(new
|
|
40122
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, newTextNode2));
|
|
40124
40123
|
}
|
|
40125
40124
|
hoEditorFactory.undoService.commit();
|
|
40126
40125
|
var oldRange = hoEditorFactory.docTree.curDomRange;
|
|
@@ -40128,8 +40127,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40128
40127
|
if (replaceContent !== '') {
|
|
40129
40128
|
endPath = hoEditorFactory.docTree.getNodeLastPath(newTextNode2);
|
|
40130
40129
|
}
|
|
40131
|
-
var newRange = new
|
|
40132
|
-
var cgEvent = new
|
|
40130
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, path, endPath);
|
|
40131
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_39__/* .SelectionChangeEvent */ .r(oldRange, newRange); //选中范围变化事件
|
|
40133
40132
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
40134
40133
|
}
|
|
40135
40134
|
}
|
|
@@ -40144,15 +40143,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40144
40143
|
}, {
|
|
40145
40144
|
key: "insertDateTime",
|
|
40146
40145
|
value: function () {
|
|
40147
|
-
var _insertDateTime = (0,
|
|
40148
|
-
var oldDataID, oldId, domRange, hoEditorFactory, startPath, np, node, parentNode, dateTimeNode;
|
|
40149
|
-
return (0,
|
|
40146
|
+
var _insertDateTime = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)().mark(function _callee2(operType, curDomRange, valuesObject, styleIndex, isTrace, updateProps) {
|
|
40147
|
+
var oldDataID, oldId, domRange, hoEditorFactory, startPath, np, node, parentNode, dateTimeNode, record, changeProps;
|
|
40148
|
+
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)().wrap(function _callee2$(_context2) {
|
|
40150
40149
|
while (1) switch (_context2.prev = _context2.next) {
|
|
40151
40150
|
case 0:
|
|
40152
40151
|
oldDataID = '';
|
|
40153
40152
|
oldId = '';
|
|
40154
40153
|
domRange = curDomRange.normalize();
|
|
40155
|
-
hoEditorFactory =
|
|
40154
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40156
40155
|
startPath = domRange.endPath;
|
|
40157
40156
|
if (!(operType === 'update')) {
|
|
40158
40157
|
_context2.next = 16;
|
|
@@ -40164,7 +40163,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40164
40163
|
break;
|
|
40165
40164
|
}
|
|
40166
40165
|
node = np.node;
|
|
40167
|
-
if (!(node instanceof
|
|
40166
|
+
if (!(node instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_58__/* .DateTimeNode */ .Z)) {
|
|
40168
40167
|
_context2.next = 16;
|
|
40169
40168
|
break;
|
|
40170
40169
|
}
|
|
@@ -40173,24 +40172,33 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40173
40172
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
40174
40173
|
hoEditorFactory.undoService.begin();
|
|
40175
40174
|
_context2.next = 16;
|
|
40176
|
-
return hoEditorFactory.undoService.add(new
|
|
40175
|
+
return hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
40177
40176
|
case 16:
|
|
40178
40177
|
parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
40179
|
-
dateTimeNode = new
|
|
40178
|
+
dateTimeNode = new _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_58__/* .DateTimeNode */ .Z(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntControl, valuesObject, styleIndex, isTrace); //插入该表达式节点
|
|
40180
40179
|
if (operType === 'add') {
|
|
40181
40180
|
hoEditorFactory.undoService.begin();
|
|
40182
40181
|
} else {
|
|
40183
40182
|
dateTimeNode.dataId = oldDataID;
|
|
40184
40183
|
dateTimeNode.id = oldId;
|
|
40185
40184
|
}
|
|
40186
|
-
hoEditorFactory.undoService.add(new
|
|
40185
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, dateTimeNode));
|
|
40187
40186
|
hoEditorFactory.undoService.commit();
|
|
40188
40187
|
if (operType === 'add') {
|
|
40189
|
-
if (parentNode instanceof
|
|
40188
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re) {
|
|
40190
40189
|
hoEditorFactory.docTree.elementChangeRecords.set(dateTimeNode.id + '|' + dateTimeNode.dataId, ['add']);
|
|
40191
40190
|
} else {
|
|
40192
40191
|
hoEditorFactory.docTree.elementChangeRecords.set(dateTimeNode.id + '|' + dateTimeNode.dataId, ['add0']);
|
|
40193
40192
|
}
|
|
40193
|
+
} else {
|
|
40194
|
+
record = hoEditorFactory.docTree.elementChangeRecords.get(dateTimeNode.id + '|' + dateTimeNode.dataId);
|
|
40195
|
+
if (!record || record.indexOf('add') < 0) {
|
|
40196
|
+
changeProps = {};
|
|
40197
|
+
if (record && record[0] == "update" && record[1]) {
|
|
40198
|
+
changeProps = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, record[1]);
|
|
40199
|
+
}
|
|
40200
|
+
hoEditorFactory.docTree.elementChangeRecords.set(dateTimeNode.id + '|' + dateTimeNode.dataId, ['update', (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, changeProps), updateProps)]);
|
|
40201
|
+
}
|
|
40194
40202
|
}
|
|
40195
40203
|
// const dline = hoEditorFactory.drawTree.getDrawLineByDNode(dateTimeNode.drawNodes[0]);
|
|
40196
40204
|
// const paraNode = dline.paragraphNode;
|
|
@@ -40210,7 +40218,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40210
40218
|
}
|
|
40211
40219
|
}, _callee2, this);
|
|
40212
40220
|
}));
|
|
40213
|
-
function insertDateTime(_x2, _x3, _x4, _x5, _x6) {
|
|
40221
|
+
function insertDateTime(_x2, _x3, _x4, _x5, _x6, _x7) {
|
|
40214
40222
|
return _insertDateTime.apply(this, arguments);
|
|
40215
40223
|
}
|
|
40216
40224
|
return insertDateTime;
|
|
@@ -40226,16 +40234,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40226
40234
|
}, {
|
|
40227
40235
|
key: "insertDownList",
|
|
40228
40236
|
value: function () {
|
|
40229
|
-
var _insertDownList = (0,
|
|
40230
|
-
var domRange, startPath, oldDataID, oldId, hoEditorFactory, np, node, parentNode, downListNode, record;
|
|
40231
|
-
return (0,
|
|
40237
|
+
var _insertDownList = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)().mark(function _callee3(operType, curDomRange, valuesObject, downListContent, styleIndex, updateProps, isTrace) {
|
|
40238
|
+
var domRange, startPath, oldDataID, oldId, hoEditorFactory, np, node, parentNode, downListNode, record, changeProps;
|
|
40239
|
+
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)().wrap(function _callee3$(_context3) {
|
|
40232
40240
|
while (1) switch (_context3.prev = _context3.next) {
|
|
40233
40241
|
case 0:
|
|
40234
40242
|
domRange = curDomRange.normalize();
|
|
40235
40243
|
startPath = domRange.endPath;
|
|
40236
40244
|
oldDataID = '';
|
|
40237
40245
|
oldId = '';
|
|
40238
|
-
hoEditorFactory =
|
|
40246
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40239
40247
|
if (!(operType === 'update')) {
|
|
40240
40248
|
_context3.next = 16;
|
|
40241
40249
|
break;
|
|
@@ -40246,7 +40254,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40246
40254
|
break;
|
|
40247
40255
|
}
|
|
40248
40256
|
node = np.node;
|
|
40249
|
-
if (!(node instanceof
|
|
40257
|
+
if (!(node instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_59__/* .DownListNode */ .yF)) {
|
|
40250
40258
|
_context3.next = 16;
|
|
40251
40259
|
break;
|
|
40252
40260
|
}
|
|
@@ -40254,24 +40262,24 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40254
40262
|
oldId = node.id;
|
|
40255
40263
|
hoEditorFactory.undoService.begin();
|
|
40256
40264
|
_context3.next = 15;
|
|
40257
|
-
return hoEditorFactory.undoService.add(new
|
|
40265
|
+
return hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
40258
40266
|
case 15:
|
|
40259
40267
|
//hoEditorFactory.undoService.commit();
|
|
40260
40268
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
40261
40269
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
40262
40270
|
case 16:
|
|
40263
40271
|
parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
40264
|
-
downListNode = new
|
|
40272
|
+
downListNode = new _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_59__/* .DownListNode */ .yF(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntControl, valuesObject, downListContent, styleIndex, isTrace); //插入该表达式节点
|
|
40265
40273
|
if (operType === 'add') {
|
|
40266
40274
|
hoEditorFactory.undoService.begin();
|
|
40267
40275
|
} else {
|
|
40268
40276
|
downListNode.dataId = oldDataID;
|
|
40269
40277
|
downListNode.id = oldId;
|
|
40270
40278
|
}
|
|
40271
|
-
hoEditorFactory.undoService.add(new
|
|
40279
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, downListNode));
|
|
40272
40280
|
hoEditorFactory.undoService.commit();
|
|
40273
40281
|
if (operType === 'add') {
|
|
40274
|
-
if (parentNode instanceof
|
|
40282
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re) {
|
|
40275
40283
|
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + '|' + downListNode.dataId, ['add']);
|
|
40276
40284
|
} else {
|
|
40277
40285
|
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + '|' + downListNode.dataId, ['add0']);
|
|
@@ -40279,7 +40287,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40279
40287
|
} else {
|
|
40280
40288
|
record = hoEditorFactory.docTree.elementChangeRecords.get(downListNode.id + '|' + downListNode.dataId);
|
|
40281
40289
|
if (!record || record.indexOf('add') < 0) {
|
|
40282
|
-
|
|
40290
|
+
changeProps = {};
|
|
40291
|
+
if (record && record[0] == "update" && record[1]) {
|
|
40292
|
+
changeProps = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, record[1]);
|
|
40293
|
+
}
|
|
40294
|
+
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + '|' + downListNode.dataId, ['update', (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, changeProps), updateProps)]);
|
|
40283
40295
|
}
|
|
40284
40296
|
}
|
|
40285
40297
|
case 22:
|
|
@@ -40288,7 +40300,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40288
40300
|
}
|
|
40289
40301
|
}, _callee3, this);
|
|
40290
40302
|
}));
|
|
40291
|
-
function insertDownList(
|
|
40303
|
+
function insertDownList(_x8, _x9, _x10, _x11, _x12, _x13, _x14) {
|
|
40292
40304
|
return _insertDownList.apply(this, arguments);
|
|
40293
40305
|
}
|
|
40294
40306
|
return insertDownList;
|
|
@@ -40305,12 +40317,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40305
40317
|
value: function insertSpecialChars(operType, curDomRange, specialChars, styleIndex) {
|
|
40306
40318
|
var domRange = curDomRange.normalize();
|
|
40307
40319
|
var startPath = domRange.endPath;
|
|
40308
|
-
var hoEditorFactory =
|
|
40320
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40309
40321
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
40310
|
-
var specialCharsNode = new
|
|
40322
|
+
var specialCharsNode = new _treeNode_SpecialCharsNode__WEBPACK_IMPORTED_MODULE_63__/* .SpecialCharsNode */ .y(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntSpecialChar, specialChars, styleIndex);
|
|
40311
40323
|
//插入该表达式节点
|
|
40312
40324
|
hoEditorFactory.undoService.begin();
|
|
40313
|
-
hoEditorFactory.undoService.add(new
|
|
40325
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, specialCharsNode));
|
|
40314
40326
|
hoEditorFactory.undoService.commit();
|
|
40315
40327
|
}
|
|
40316
40328
|
/**
|
|
@@ -40325,12 +40337,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40325
40337
|
value: function insertRareChar(operType, curDomRange, text, styleIndex) {
|
|
40326
40338
|
var domRange = curDomRange.normalize();
|
|
40327
40339
|
var startPath = domRange.endPath;
|
|
40328
|
-
var hoEditorFactory =
|
|
40340
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40329
40341
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
40330
|
-
var rareCharNode = new
|
|
40342
|
+
var rareCharNode = new _treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_92__/* .RareCharNode */ .Q(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntRareChar, text, styleIndex);
|
|
40331
40343
|
//插入该表达式节点
|
|
40332
40344
|
hoEditorFactory.undoService.begin();
|
|
40333
|
-
hoEditorFactory.undoService.add(new
|
|
40345
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, rareCharNode));
|
|
40334
40346
|
hoEditorFactory.undoService.commit();
|
|
40335
40347
|
}
|
|
40336
40348
|
/**
|
|
@@ -40342,25 +40354,25 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40342
40354
|
}, {
|
|
40343
40355
|
key: "insertJumpButton",
|
|
40344
40356
|
value: function insertJumpButton(operType, curDomRange, name, fileId) {
|
|
40345
|
-
var hoEditorFactory =
|
|
40357
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40346
40358
|
var startPath = curDomRange.endPath;
|
|
40347
40359
|
if (operType === 'update') {
|
|
40348
40360
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
40349
40361
|
if (np) {
|
|
40350
40362
|
var node = np.node;
|
|
40351
|
-
if (node instanceof
|
|
40363
|
+
if (node instanceof _treeNode_JumpButtonNode__WEBPACK_IMPORTED_MODULE_93__/* .JumpButtonNode */ .a) {
|
|
40352
40364
|
hoEditorFactory.undoService.begin();
|
|
40353
|
-
hoEditorFactory.undoService.add(new
|
|
40365
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
40354
40366
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
40355
40367
|
}
|
|
40356
40368
|
}
|
|
40357
40369
|
}
|
|
40358
40370
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
40359
|
-
var jumpButtonNode = new
|
|
40371
|
+
var jumpButtonNode = new _treeNode_JumpButtonNode__WEBPACK_IMPORTED_MODULE_93__/* .JumpButtonNode */ .a(this._hoEditorFactoryID, curDomRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntJumpButton, name, fileId, hoEditorFactory.docTree.curStyleIndex);
|
|
40360
40372
|
if (operType === 'add') {
|
|
40361
40373
|
hoEditorFactory.undoService.begin();
|
|
40362
40374
|
}
|
|
40363
|
-
hoEditorFactory.undoService.add(new
|
|
40375
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, jumpButtonNode));
|
|
40364
40376
|
hoEditorFactory.undoService.commit();
|
|
40365
40377
|
}
|
|
40366
40378
|
/**
|
|
@@ -40370,7 +40382,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40370
40382
|
}, {
|
|
40371
40383
|
key: "setPageProperty",
|
|
40372
40384
|
value: function setPageProperty(objectValues) {
|
|
40373
|
-
var hoEditorFactory =
|
|
40385
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40374
40386
|
hoEditorFactory.pageProperty.setPageProperty(objectValues);
|
|
40375
40387
|
}
|
|
40376
40388
|
/**
|
|
@@ -40383,12 +40395,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40383
40395
|
value: function insertComment(text, curDomRange, source) {
|
|
40384
40396
|
var domRange = curDomRange.normalize();
|
|
40385
40397
|
if (!domRange.npStart.node) {
|
|
40386
|
-
throw
|
|
40398
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_56__/* .Exception */ .P.NodeNotFound();
|
|
40387
40399
|
}
|
|
40388
40400
|
if (!domRange.npEnd.node) {
|
|
40389
|
-
throw
|
|
40401
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_56__/* .Exception */ .P.NodeNotFound();
|
|
40390
40402
|
}
|
|
40391
|
-
var hoEditorFactory =
|
|
40403
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40392
40404
|
var commentID = hoEditorFactory.gernerateCode.generateID('C');
|
|
40393
40405
|
var startPath = domRange.startPath;
|
|
40394
40406
|
var endPath = domRange.endPath;
|
|
@@ -40397,13 +40409,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40397
40409
|
// domRange.npEnd.node instanceof TextNode
|
|
40398
40410
|
// ? domRange.npEnd.node.styleIndex
|
|
40399
40411
|
// : 0;
|
|
40400
|
-
var endNode = new
|
|
40401
|
-
endNode.MarkNodeType =
|
|
40412
|
+
var endNode = new _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_51__/* .MarkNode */ .j(this._hoEditorFactoryID, domRange.npStart.roots, ePNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntMark, commentID, 0, _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_51__/* .MarkNodeType */ .q.mtEnd);
|
|
40413
|
+
endNode.MarkNodeType = _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_51__/* .MarkNodeType */ .q.mtEnd;
|
|
40402
40414
|
endNode.isReadOnly = true;
|
|
40403
40415
|
hoEditorFactory.undoService.begin();
|
|
40404
|
-
hoEditorFactory.undoService.add(new
|
|
40416
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, endPath, endNode));
|
|
40405
40417
|
hoEditorFactory.undoService.commit();
|
|
40406
|
-
var comment = new
|
|
40418
|
+
var comment = new _domNode_Comment__WEBPACK_IMPORTED_MODULE_72__/* .Comment */ .s(this._hoEditorFactoryID, commentID, text, endNode, source);
|
|
40407
40419
|
var curArea = hoEditorFactory.drawPageTree.getMainRootArea(endNode.drawNodes[0]);
|
|
40408
40420
|
if (!curArea) {
|
|
40409
40421
|
return;
|
|
@@ -40413,7 +40425,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40413
40425
|
// 2023-05-23注释 25临时放开
|
|
40414
40426
|
curArea.drawComments();
|
|
40415
40427
|
hoEditorFactory.undoService.begin();
|
|
40416
|
-
hoEditorFactory.undoService.add(new
|
|
40428
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, startPath, endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .Operate */ .p('insertComment', commentID)));
|
|
40417
40429
|
hoEditorFactory.undoService.commit();
|
|
40418
40430
|
// const newEndpath = endNode.getNodePath();
|
|
40419
40431
|
// const newRange = new DomRange(
|
|
@@ -40433,7 +40445,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40433
40445
|
key: "deleteComment",
|
|
40434
40446
|
value: function deleteComment(type, commentID) {
|
|
40435
40447
|
var _this7 = this;
|
|
40436
|
-
var hoEditorFactory =
|
|
40448
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40437
40449
|
var delStyleComment = function delStyleComment(commentID) {
|
|
40438
40450
|
hoEditorFactory.docTree.styles.forEach(function (value, index) {
|
|
40439
40451
|
if (value.commentID === commentID) {
|
|
@@ -40451,7 +40463,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40451
40463
|
hoEditorFactory.drawTree.commentsMap.delete(comment.id);
|
|
40452
40464
|
var endPath = comment.eNode.getNodePath();
|
|
40453
40465
|
hoEditorFactory.undoService.begin();
|
|
40454
|
-
hoEditorFactory.undoService.add(new
|
|
40466
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeDeleteUndoUnit */ .w(_this7._hoEditorFactoryID, comment.eNode, endPath));
|
|
40455
40467
|
hoEditorFactory.undoService.commit();
|
|
40456
40468
|
hoEditorFactory.drawTree.rebuildAllDrawLine(false);
|
|
40457
40469
|
};
|
|
@@ -40473,7 +40485,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40473
40485
|
} else {
|
|
40474
40486
|
var _comment = hoEditorFactory.drawTree.curOnSelectedComment;
|
|
40475
40487
|
if (_comment.userID != hoEditorFactory.userInfo.id) {
|
|
40476
|
-
|
|
40488
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_97__/* ["default"] */ .Z.warn('不允许删除其他用户创建的批注!');
|
|
40477
40489
|
return;
|
|
40478
40490
|
}
|
|
40479
40491
|
del(_comment);
|
|
@@ -40512,7 +40524,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40512
40524
|
key: "insertPageNum",
|
|
40513
40525
|
value: function insertPageNum(operType, domRange, contentType, formatType, autoSetHeight) {
|
|
40514
40526
|
var startPath = domRange.normalize().endPath;
|
|
40515
|
-
var hoEditorFactory =
|
|
40527
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40516
40528
|
// if (operType === "update") {
|
|
40517
40529
|
// const np = hoEditorFactory.docTree.findNodePositionByPath(
|
|
40518
40530
|
// startPath
|
|
@@ -40535,17 +40547,17 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40535
40547
|
//插入页码
|
|
40536
40548
|
// const pageNum = hoEditorFactory.drawTree.activePage
|
|
40537
40549
|
// ?.pageIndex as number;
|
|
40538
|
-
var pageNumNode = new
|
|
40550
|
+
var pageNumNode = new _treeNode_PageNumNode__WEBPACK_IMPORTED_MODULE_73__/* .PageNumNode */ .h(this._hoEditorFactoryID, domRange.npStart.roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntPageNum,
|
|
40539
40551
|
//pageNum + 1,
|
|
40540
40552
|
formatType, autoSetHeight, hoEditorFactory.docTree.curStyleIndex);
|
|
40541
|
-
hoEditorFactory.undoService.add(new
|
|
40553
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, pageNumNode));
|
|
40542
40554
|
} else {
|
|
40543
40555
|
//插入页数
|
|
40544
40556
|
//const pageCount = hoEditorFactory.drawTree.drawPages.length;
|
|
40545
|
-
var pageCountNode = new
|
|
40557
|
+
var pageCountNode = new _treeNode_PageCountNode__WEBPACK_IMPORTED_MODULE_74__/* .PageCountNode */ .y(this._hoEditorFactoryID, domRange.npStart.roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntPageCount,
|
|
40546
40558
|
//pageCount,
|
|
40547
40559
|
formatType, autoSetHeight, hoEditorFactory.docTree.curStyleIndex);
|
|
40548
|
-
hoEditorFactory.undoService.add(new
|
|
40560
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, pageCountNode));
|
|
40549
40561
|
}
|
|
40550
40562
|
hoEditorFactory.undoService.commit();
|
|
40551
40563
|
}
|
|
@@ -40555,15 +40567,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40555
40567
|
}, {
|
|
40556
40568
|
key: "selectAll",
|
|
40557
40569
|
value: function selectAll() {
|
|
40558
|
-
var hoEditorFactory =
|
|
40570
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40559
40571
|
var curDomRange = hoEditorFactory.docTree.curDomRange;
|
|
40560
40572
|
var path = curDomRange.normalize().startPath;
|
|
40561
40573
|
var rootNodes = hoEditorFactory.docTree.getPathRoots(path);
|
|
40562
40574
|
if (rootNodes) {
|
|
40563
40575
|
var startPath = hoEditorFactory.docTree.getNodeFirstPath(rootNodes[0]);
|
|
40564
40576
|
var endPath = hoEditorFactory.docTree.getNodeLastPath(rootNodes[rootNodes.length - 1]);
|
|
40565
|
-
var newRange = new
|
|
40566
|
-
var cgEvent = new
|
|
40577
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
40578
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_39__/* .SelectionChangeEvent */ .r(curDomRange, newRange); //选中范围变化事件
|
|
40567
40579
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
40568
40580
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
40569
40581
|
}
|
|
@@ -40571,12 +40583,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40571
40583
|
}, {
|
|
40572
40584
|
key: "initBlankDoc",
|
|
40573
40585
|
value: function () {
|
|
40574
|
-
var _initBlankDoc = (0,
|
|
40586
|
+
var _initBlankDoc = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)().mark(function _callee4() {
|
|
40575
40587
|
var hoEditorFactory, firstNode, strFirstPath, aPage;
|
|
40576
|
-
return (0,
|
|
40588
|
+
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)().wrap(function _callee4$(_context4) {
|
|
40577
40589
|
while (1) switch (_context4.prev = _context4.next) {
|
|
40578
40590
|
case 0:
|
|
40579
|
-
hoEditorFactory =
|
|
40591
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40580
40592
|
_context4.next = 3;
|
|
40581
40593
|
return hoEditorFactory.drawPageTree.stopPageEvent();
|
|
40582
40594
|
case 3:
|
|
@@ -40630,7 +40642,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40630
40642
|
}, {
|
|
40631
40643
|
key: "editComment",
|
|
40632
40644
|
value: function editComment(commentID, text, source) {
|
|
40633
|
-
var hoEditorFactory =
|
|
40645
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40634
40646
|
var curComment = hoEditorFactory.drawTree.curOnSelectedComment;
|
|
40635
40647
|
var markNode;
|
|
40636
40648
|
if (curComment) {
|
|
@@ -40748,17 +40760,17 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40748
40760
|
}, {
|
|
40749
40761
|
key: "insertTableFormula",
|
|
40750
40762
|
value: function insertTableFormula(domRange, formulaStr, isHideZero, formulaType) {
|
|
40751
|
-
var hoEditorFactory =
|
|
40763
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40752
40764
|
var startPath = domRange.normalize().endPath;
|
|
40753
40765
|
var pNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
40754
40766
|
hoEditorFactory.undoService.begin();
|
|
40755
|
-
if (domRange.npEnd.node instanceof
|
|
40767
|
+
if (domRange.npEnd.node instanceof _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_75__/* .TableFormula */ .N) {
|
|
40756
40768
|
var prePath = hoEditorFactory.docTree.getNodeLastPath(domRange.npEnd.node.previousLeaf());
|
|
40757
|
-
hoEditorFactory.undoService.add(new
|
|
40769
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, domRange.npEnd.node, startPath, 'update'));
|
|
40758
40770
|
startPath = prePath;
|
|
40759
40771
|
}
|
|
40760
|
-
var tableFormula = new
|
|
40761
|
-
hoEditorFactory.undoService.add(new
|
|
40772
|
+
var tableFormula = new _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_75__/* .TableFormula */ .N(this._hoEditorFactoryID, domRange.npStart.roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntTableFormula, formulaStr, hoEditorFactory.docTree.curStyleIndex, isHideZero, formulaType);
|
|
40773
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, tableFormula));
|
|
40762
40774
|
hoEditorFactory.undoService.commit();
|
|
40763
40775
|
}
|
|
40764
40776
|
// /**
|
|
@@ -40781,8 +40793,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40781
40793
|
}, {
|
|
40782
40794
|
key: "setUserLoginInfo",
|
|
40783
40795
|
value: function setUserLoginInfo(id, name, permissionLevel, clientIP) {
|
|
40784
|
-
var hoEditorFactory =
|
|
40785
|
-
var userLogin = new
|
|
40796
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40797
|
+
var userLogin = new _runTimeInfo_UserInfo__WEBPACK_IMPORTED_MODULE_76__/* .UserInfo */ .a(this._hoEditorFactoryID);
|
|
40786
40798
|
userLogin.setUserInfo(id, name, permissionLevel, clientIP);
|
|
40787
40799
|
hoEditorFactory.userInfo = userLogin;
|
|
40788
40800
|
}
|
|
@@ -40790,10 +40802,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40790
40802
|
key: "parseNodeData",
|
|
40791
40803
|
value: function parseNodeData(nodes) {
|
|
40792
40804
|
if (nodes && nodes.length > 0) {
|
|
40793
|
-
if (nodes.length === 1 && nodes[0] instanceof
|
|
40805
|
+
if (nodes.length === 1 && nodes[0] instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_34__/* .ParagraphNode */ .C) {
|
|
40794
40806
|
return;
|
|
40795
40807
|
}
|
|
40796
|
-
var hoeditorfactory =
|
|
40808
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40797
40809
|
var curNode = hoeditorfactory.docTree.curDomRange.normalize().npStart.node;
|
|
40798
40810
|
//const parentNode = hoeditorfactory.docTree.getParentNode(startPath);
|
|
40799
40811
|
var parentNode = curNode.parentNode;
|
|
@@ -40810,21 +40822,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40810
40822
|
// nodes.splice(0, 1);
|
|
40811
40823
|
// }
|
|
40812
40824
|
var isChange = false;
|
|
40813
|
-
if (parentNode instanceof
|
|
40825
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re) {
|
|
40814
40826
|
parentNode.childNodes.forEach(function (value) {
|
|
40815
|
-
if (value instanceof
|
|
40827
|
+
if (value instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_51__/* .MarkNode */ .j && value.MarkNodeType === _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_51__/* .MarkNodeType */ .q.mtContent) {
|
|
40816
40828
|
parentNode.removeChild(value);
|
|
40817
40829
|
isChange = true;
|
|
40818
40830
|
}
|
|
40819
40831
|
});
|
|
40820
40832
|
if (isChange) {
|
|
40821
|
-
var sMarkNodePath =
|
|
40822
|
-
hoeditorfactory.docTree.curDomRange = new
|
|
40833
|
+
var sMarkNodePath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(parentNode.childNodes[0]);
|
|
40834
|
+
hoeditorfactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, sMarkNodePath, sMarkNodePath);
|
|
40823
40835
|
}
|
|
40824
40836
|
}
|
|
40825
40837
|
// this._pasteNodes.splice(0, 0, nodes);
|
|
40826
40838
|
hoeditorfactory.undoService.begin();
|
|
40827
|
-
hoeditorfactory.undoService.add(new
|
|
40839
|
+
hoeditorfactory.undoService.add(new _undoRedo_ParseUndoUnit__WEBPACK_IMPORTED_MODULE_82__/* .ParseUndoUnit */ .e(this._hoEditorFactoryID, hoeditorfactory.docTree.curDomRange.startPath, hoeditorfactory.docTree.curDomRange.endPath, nodes));
|
|
40828
40840
|
hoeditorfactory.undoService.commit();
|
|
40829
40841
|
}
|
|
40830
40842
|
}
|
|
@@ -40835,7 +40847,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40835
40847
|
}, {
|
|
40836
40848
|
key: "insertHtmlText",
|
|
40837
40849
|
value: function insertHtmlText(strHtml) {
|
|
40838
|
-
var hoEditorFactory =
|
|
40850
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40839
40851
|
var nodes = hoEditorFactory.htmlConverter.parseHtmlString(strHtml);
|
|
40840
40852
|
hoEditorFactory.docController.parseNodeData(nodes);
|
|
40841
40853
|
}
|
|
@@ -40849,14 +40861,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40849
40861
|
}, {
|
|
40850
40862
|
key: "getRedrawObject",
|
|
40851
40863
|
value: function getRedrawObject(startPath, endPath, action) {
|
|
40852
|
-
var domRange = new
|
|
40853
|
-
var cgEvent = new
|
|
40854
|
-
if (action ===
|
|
40864
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath).normalize();
|
|
40865
|
+
var cgEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_79__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, action, domRange.startPath, domRange.endPath);
|
|
40866
|
+
if (action === _DocTree__WEBPACK_IMPORTED_MODULE_31__/* .DocAction */ .gk.daUndoInsert || action === _DocTree__WEBPACK_IMPORTED_MODULE_31__/* .DocAction */ .gk.daDelete) {
|
|
40855
40867
|
cgEvent.oldEndPath = domRange.endPath;
|
|
40856
|
-
cgEvent.oldDrawTreeLines = new
|
|
40857
|
-
} else if (action ===
|
|
40868
|
+
cgEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_80__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(domRange.startPath, domRange.endPath);
|
|
40869
|
+
} else if (action === _DocTree__WEBPACK_IMPORTED_MODULE_31__/* .DocAction */ .gk.daParaStyleChange) {
|
|
40858
40870
|
cgEvent.oldEndPath = domRange.endPath;
|
|
40859
|
-
cgEvent.oldDrawLines = new
|
|
40871
|
+
cgEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_80__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(domRange.startPath, domRange.endPath, false, true);
|
|
40860
40872
|
}
|
|
40861
40873
|
return cgEvent;
|
|
40862
40874
|
}
|
|
@@ -40868,16 +40880,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40868
40880
|
}, {
|
|
40869
40881
|
key: "modifyRedraw",
|
|
40870
40882
|
value: function modifyRedraw(cgEvent, endModifyNode) {
|
|
40871
|
-
var hoeditorfactory =
|
|
40883
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40872
40884
|
var endPath;
|
|
40873
|
-
if (endModifyNode instanceof
|
|
40885
|
+
if (endModifyNode instanceof _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .BaseNode */ .Hd) endPath = hoeditorfactory.docTree.getNodeLastPath(endModifyNode);else endPath = endModifyNode;
|
|
40874
40886
|
cgEvent.afterChangePath = endPath;
|
|
40875
40887
|
hoeditorfactory.docTree.change(cgEvent);
|
|
40876
40888
|
}
|
|
40877
40889
|
}, {
|
|
40878
40890
|
key: "deleteRedraw",
|
|
40879
40891
|
value: function deleteRedraw(cgEvent) {
|
|
40880
|
-
var hoeditorfactory =
|
|
40892
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40881
40893
|
cgEvent.afterChangePath = cgEvent.beforeChangePath;
|
|
40882
40894
|
hoeditorfactory.docTree.change(cgEvent);
|
|
40883
40895
|
}
|
|
@@ -40889,9 +40901,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40889
40901
|
}, {
|
|
40890
40902
|
key: "insertRedraw",
|
|
40891
40903
|
value: function insertRedraw(startPath, endPath) {
|
|
40892
|
-
var hoeditorfactory =
|
|
40893
|
-
var domRange = new
|
|
40894
|
-
var cgEvent = new
|
|
40904
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40905
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath).normalize();
|
|
40906
|
+
var cgEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_79__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_31__/* .DocAction */ .gk.daInsert, domRange.startPath, domRange.endPath);
|
|
40895
40907
|
hoeditorfactory.docTree.change(cgEvent);
|
|
40896
40908
|
}
|
|
40897
40909
|
/**
|
|
@@ -40902,7 +40914,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40902
40914
|
}, {
|
|
40903
40915
|
key: "insertSeparateChar",
|
|
40904
40916
|
value: function insertSeparateChar(range, width, color, line) {
|
|
40905
|
-
var hoeditorfactory =
|
|
40917
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40906
40918
|
var np = range.normalize().npStart;
|
|
40907
40919
|
if (np && np.node) {
|
|
40908
40920
|
var curLine = hoeditorfactory.drawTree.getDlineByPath(np.path);
|
|
@@ -40913,8 +40925,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40913
40925
|
var paraNode;
|
|
40914
40926
|
if (!isNullLine) {
|
|
40915
40927
|
hoeditorfactory.undoService.begin();
|
|
40916
|
-
paraNode = new
|
|
40917
|
-
hoeditorfactory.undoService.add(new
|
|
40928
|
+
paraNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_34__/* .ParagraphNode */ .C(this._hoEditorFactoryID, np.roots, parentNode, 0);
|
|
40929
|
+
hoeditorfactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, paraLastPath, paraNode));
|
|
40918
40930
|
hoeditorfactory.undoService.commit();
|
|
40919
40931
|
} else {
|
|
40920
40932
|
paraNode = curLine.paragraphNode;
|
|
@@ -40924,8 +40936,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40924
40936
|
}
|
|
40925
40937
|
hoeditorfactory.undoService.begin();
|
|
40926
40938
|
var newParaPath = paraNode.getNodePath();
|
|
40927
|
-
var separateCharNode = new
|
|
40928
|
-
hoeditorfactory.undoService.add(new
|
|
40939
|
+
var separateCharNode = new _treeNode_SeparateCharNode__WEBPACK_IMPORTED_MODULE_85__/* .SeparateCharNode */ .O(this._hoEditorFactoryID, np.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntSeparateChar, width, color, line);
|
|
40940
|
+
hoeditorfactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, newParaPath, separateCharNode));
|
|
40929
40941
|
hoeditorfactory.undoService.commit();
|
|
40930
40942
|
}
|
|
40931
40943
|
}
|
|
@@ -40939,36 +40951,36 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40939
40951
|
value: function insertGestation(range, operType, lastMenstruationDate, usedDate) {
|
|
40940
40952
|
var domRange = range.normalize();
|
|
40941
40953
|
var startPath = domRange.endPath;
|
|
40942
|
-
var hoEditorFactory =
|
|
40954
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40943
40955
|
if (operType === 'update') {
|
|
40944
40956
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
40945
40957
|
if (np) {
|
|
40946
40958
|
var node = np.node;
|
|
40947
|
-
if (node instanceof
|
|
40959
|
+
if (node instanceof _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_90__/* .GestationNode */ .G) {
|
|
40948
40960
|
hoEditorFactory.undoService.begin();
|
|
40949
|
-
hoEditorFactory.undoService.add(new
|
|
40961
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
40950
40962
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
40951
40963
|
}
|
|
40952
40964
|
}
|
|
40953
40965
|
}
|
|
40954
40966
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
40955
|
-
var gestationNode = new
|
|
40967
|
+
var gestationNode = new _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_90__/* .GestationNode */ .G(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntGestation, lastMenstruationDate, usedDate, hoEditorFactory.docTree.curStyleIndex);
|
|
40956
40968
|
//插入节点
|
|
40957
40969
|
if (operType === 'add') {
|
|
40958
40970
|
hoEditorFactory.undoService.begin();
|
|
40959
40971
|
}
|
|
40960
|
-
hoEditorFactory.undoService.add(new
|
|
40972
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, gestationNode));
|
|
40961
40973
|
hoEditorFactory.undoService.commit();
|
|
40962
40974
|
}
|
|
40963
40975
|
}, {
|
|
40964
40976
|
key: "textToLabel",
|
|
40965
40977
|
value: function () {
|
|
40966
|
-
var _textToLabel = (0,
|
|
40978
|
+
var _textToLabel = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)().mark(function _callee5(range, associatedElement) {
|
|
40967
40979
|
var hoeditorfactory, astart, aend, sChildIndex, eChildIndex, anode, startPath, endPath, drawNode, i, text, pathArr, _pathArr, labelNode, delRange, anodeEndPath, result;
|
|
40968
|
-
return (0,
|
|
40980
|
+
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)().wrap(function _callee5$(_context5) {
|
|
40969
40981
|
while (1) switch (_context5.prev = _context5.next) {
|
|
40970
40982
|
case 0:
|
|
40971
|
-
hoeditorfactory =
|
|
40983
|
+
hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40972
40984
|
astart = range.npStart.node;
|
|
40973
40985
|
aend = range.npEnd.node;
|
|
40974
40986
|
sChildIndex = range.npStart.childIndex;
|
|
@@ -40981,7 +40993,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40981
40993
|
_context5.next = 34;
|
|
40982
40994
|
break;
|
|
40983
40995
|
}
|
|
40984
|
-
if (!(anode instanceof
|
|
40996
|
+
if (!(anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R)) {
|
|
40985
40997
|
_context5.next = 32;
|
|
40986
40998
|
break;
|
|
40987
40999
|
}
|
|
@@ -41035,20 +41047,20 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41035
41047
|
endPath = hoeditorfactory.docTree.getNodeLastPath(anode);
|
|
41036
41048
|
}
|
|
41037
41049
|
}
|
|
41038
|
-
labelNode = new
|
|
41039
|
-
delRange = new
|
|
41050
|
+
labelNode = new _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_86__/* .LabelNode */ .P(this._hoEditorFactoryID, range.npStart.roots, anode.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntLabel, text, anode.styleIndex, associatedElement);
|
|
41051
|
+
delRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
41040
41052
|
_context5.next = 28;
|
|
41041
41053
|
return this.deleteRange(delRange, true);
|
|
41042
41054
|
case 28:
|
|
41043
41055
|
hoeditorfactory.undoService.begin();
|
|
41044
|
-
hoeditorfactory.undoService.add(new
|
|
41056
|
+
hoeditorfactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, labelNode));
|
|
41045
41057
|
hoeditorfactory.undoService.commit();
|
|
41046
41058
|
anode = labelNode;
|
|
41047
41059
|
case 32:
|
|
41048
41060
|
anode = anode.previousLeaf();
|
|
41049
41061
|
if (anode) {
|
|
41050
41062
|
anodeEndPath = hoeditorfactory.docTree.getNodeLastPath(anode);
|
|
41051
|
-
result =
|
|
41063
|
+
result = _NodePosition__WEBPACK_IMPORTED_MODULE_87__/* .NodePosition */ .F.treePathCompare(anodeEndPath, range.startPath);
|
|
41052
41064
|
if (result <= 0) {
|
|
41053
41065
|
anode = null;
|
|
41054
41066
|
}
|
|
@@ -41064,7 +41076,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41064
41076
|
}
|
|
41065
41077
|
}, _callee5, this);
|
|
41066
41078
|
}));
|
|
41067
|
-
function textToLabel(
|
|
41079
|
+
function textToLabel(_x15, _x16) {
|
|
41068
41080
|
return _textToLabel.apply(this, arguments);
|
|
41069
41081
|
}
|
|
41070
41082
|
return textToLabel;
|
|
@@ -41076,18 +41088,18 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41076
41088
|
}, {
|
|
41077
41089
|
key: "labelToText",
|
|
41078
41090
|
value: function labelToText(node) {
|
|
41079
|
-
var hoeditorfactory =
|
|
41091
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41080
41092
|
node.isAllowDelete = true;
|
|
41081
41093
|
var text = node.text;
|
|
41082
41094
|
var styleIndex = node.styleIndex;
|
|
41083
41095
|
var parentNode = node.parentNode;
|
|
41084
41096
|
var prevNodePath = hoeditorfactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41085
41097
|
var lastPath = hoeditorfactory.docTree.getNodeLastPath(node);
|
|
41086
|
-
var range = new
|
|
41098
|
+
var range = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(this._hoEditorFactoryID, prevNodePath, lastPath);
|
|
41087
41099
|
this.deleteRange(range, true);
|
|
41088
41100
|
hoeditorfactory.undoService.begin();
|
|
41089
|
-
var textNode = new
|
|
41090
|
-
hoeditorfactory.undoService.add(new
|
|
41101
|
+
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_32__/* .TextNode */ .R(this._hoEditorFactoryID, node.rootNodes, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntText, text, styleIndex);
|
|
41102
|
+
hoeditorfactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, prevNodePath, textNode));
|
|
41091
41103
|
hoeditorfactory.undoService.commit();
|
|
41092
41104
|
}
|
|
41093
41105
|
}, {
|
|
@@ -41101,7 +41113,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41101
41113
|
var loopCell = function loopCell() {
|
|
41102
41114
|
for (var j = 1; j < cell.childNodes.length; j++) {
|
|
41103
41115
|
var anode = cell.childNodes[j];
|
|
41104
|
-
if (anode instanceof
|
|
41116
|
+
if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_88__/* .SignNode */ .N && anode.imgSrc == '' && anode.fingerPrintSrc == '') {
|
|
41105
41117
|
mark = false;
|
|
41106
41118
|
break;
|
|
41107
41119
|
}
|
|
@@ -41146,13 +41158,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41146
41158
|
}, {
|
|
41147
41159
|
key: "insertEmptySignNode",
|
|
41148
41160
|
value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, customProperty, connectMode, isFront, allowEditSignTime, attribute, connectChar, otherProperties, associatedElement) {
|
|
41149
|
-
var hoEditorFactory =
|
|
41161
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41150
41162
|
var startPath = domRange.startPath;
|
|
41151
41163
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41152
|
-
var signNode = new
|
|
41164
|
+
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_88__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntSign, 0, 0, name, signType, signFormat, '', '', signTimeFormat, '', 0, 0, customProperty, true, hoEditorFactory.docTree.curStyleIndex, connectMode, isFront, allowEditSignTime, undefined, undefined, attribute, connectChar, otherProperties, undefined, associatedElement);
|
|
41153
41165
|
//插入该表达式节点
|
|
41154
41166
|
hoEditorFactory.undoService.begin();
|
|
41155
|
-
hoEditorFactory.undoService.add(new
|
|
41167
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
41156
41168
|
hoEditorFactory.undoService.commit();
|
|
41157
41169
|
}
|
|
41158
41170
|
/**
|
|
@@ -41167,16 +41179,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41167
41179
|
}, {
|
|
41168
41180
|
key: "insertSignNode",
|
|
41169
41181
|
value: function insertSignNode(domRange, type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition, otherProperties, signType) {
|
|
41170
|
-
var hoEditorFactory =
|
|
41182
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41171
41183
|
var startPath = domRange.startPath;
|
|
41172
41184
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41173
41185
|
var attribute = signType ? signType : 0;
|
|
41174
|
-
var signNode = new
|
|
41186
|
+
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_88__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntSign, 1, type, name, 0, '医师签名', signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, hoEditorFactory.docTree.curStyleIndex, undefined, undefined, undefined, fingerPrintSrc, fingerPosition, attribute, undefined, otherProperties);
|
|
41175
41187
|
//插入该表达式节点
|
|
41176
41188
|
hoEditorFactory.undoService.begin();
|
|
41177
|
-
hoEditorFactory.undoService.add(new
|
|
41189
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
41178
41190
|
hoEditorFactory.undoService.commit();
|
|
41179
|
-
if (parentNode instanceof
|
|
41191
|
+
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D) {
|
|
41180
41192
|
this.signLockCheck(parentNode);
|
|
41181
41193
|
}
|
|
41182
41194
|
this.drawMask(signNode);
|
|
@@ -41194,15 +41206,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41194
41206
|
}, {
|
|
41195
41207
|
key: "updateSignNode",
|
|
41196
41208
|
value: function updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition, otherProperties) {
|
|
41197
|
-
var hoEditorFactory =
|
|
41209
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41198
41210
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41199
41211
|
if (node.imgSrc === '') {
|
|
41200
41212
|
//第一次更新签名
|
|
41201
41213
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41202
|
-
var changeEvent = new
|
|
41214
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_79__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_31__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
41203
41215
|
changeEvent.oldEndPath = ePath;
|
|
41204
41216
|
changeEvent.afterChangePath = ePath;
|
|
41205
|
-
changeEvent.oldDrawLines = new
|
|
41217
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_80__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true, true);
|
|
41206
41218
|
node.type = type;
|
|
41207
41219
|
node.name = name;
|
|
41208
41220
|
node.number = 1;
|
|
@@ -41220,7 +41232,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41220
41232
|
// }
|
|
41221
41233
|
//node.connectMode = "/";
|
|
41222
41234
|
hoEditorFactory.docTree.change(changeEvent);
|
|
41223
|
-
if (node.parentNode instanceof
|
|
41235
|
+
if (node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_61__/* .CellNode */ .D) {
|
|
41224
41236
|
this.signLockCheck(node.parentNode);
|
|
41225
41237
|
}
|
|
41226
41238
|
this.drawMask(node);
|
|
@@ -41230,9 +41242,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41230
41242
|
sPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41231
41243
|
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]);
|
|
41232
41244
|
var curParaNode = dline.paragraphNode;
|
|
41233
|
-
var newPara = new
|
|
41245
|
+
var newPara = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_34__/* .ParagraphNode */ .C(this._hoEditorFactoryID, node.rootNodes, node.parentNode, curParaNode.paraNo);
|
|
41234
41246
|
hoEditorFactory.undoService.begin();
|
|
41235
|
-
hoEditorFactory.undoService.add(new
|
|
41247
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, sPath, newPara));
|
|
41236
41248
|
hoEditorFactory.undoService.commit();
|
|
41237
41249
|
sPath = newPara.getNodePath();
|
|
41238
41250
|
} else {
|
|
@@ -41240,10 +41252,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41240
41252
|
sPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41241
41253
|
}
|
|
41242
41254
|
}
|
|
41243
|
-
var newSignNode = new
|
|
41255
|
+
var newSignNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_88__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntSign, 2, type, name, node.signType, node.signFormat, signor, signTime, node.signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, node.styleIndex, node.connectMode, type == 1 && node.signType == 1 ? true : node.isFront, node.allowEditSignTime, fingerPrintSrc, fingerPosition, node.attribute, node.connectChar, otherProperties ? otherProperties : node.otherProperties, '', node.associatedElement);
|
|
41244
41256
|
//插入该表达式节点
|
|
41245
41257
|
hoEditorFactory.undoService.begin();
|
|
41246
|
-
hoEditorFactory.undoService.add(new
|
|
41258
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_30__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, sPath, newSignNode));
|
|
41247
41259
|
hoEditorFactory.undoService.commit();
|
|
41248
41260
|
this.drawMask(node);
|
|
41249
41261
|
}
|
|
@@ -41251,7 +41263,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41251
41263
|
}, {
|
|
41252
41264
|
key: "drawMask",
|
|
41253
41265
|
value: function drawMask(node) {
|
|
41254
|
-
var hoEditorFactory =
|
|
41266
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41255
41267
|
if (hoEditorFactory.forbidEditBeforeSign) {
|
|
41256
41268
|
if (hoEditorFactory.structureConvert._superiorSign.length === 0) {
|
|
41257
41269
|
hoEditorFactory.structureConvert._superiorSign[0] = node;
|
|
@@ -41260,7 +41272,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41260
41272
|
var sign1 = hoEditorFactory.structureConvert._superiorSign[0];
|
|
41261
41273
|
var path1 = sign1.getNodePath();
|
|
41262
41274
|
var path2 = node.getNodePath();
|
|
41263
|
-
var result =
|
|
41275
|
+
var result = _NodePosition__WEBPACK_IMPORTED_MODULE_87__/* .NodePosition */ .F.treePathCompare(path1, path2);
|
|
41264
41276
|
if (result <= 0) {
|
|
41265
41277
|
hoEditorFactory.structureConvert._superiorSign[0] = node;
|
|
41266
41278
|
hoEditorFactory.vueController.hiddenMask(false);
|
|
@@ -41288,13 +41300,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41288
41300
|
}, {
|
|
41289
41301
|
key: "updateEmptySignNode",
|
|
41290
41302
|
value: function updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat, connectMode, otherProperties, isFront, associatedElement) {
|
|
41291
|
-
var hoEditorFactory =
|
|
41303
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41292
41304
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41293
41305
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41294
|
-
var changeEvent = new
|
|
41306
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_79__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_31__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
41295
41307
|
changeEvent.oldEndPath = ePath;
|
|
41296
41308
|
changeEvent.afterChangePath = ePath;
|
|
41297
|
-
changeEvent.oldDrawLines = new
|
|
41309
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_80__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true, true);
|
|
41298
41310
|
node.name = name;
|
|
41299
41311
|
node.connectChar = connectChar;
|
|
41300
41312
|
node.signType = signType;
|
|
@@ -41317,13 +41329,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41317
41329
|
}, {
|
|
41318
41330
|
key: "updateSignTime",
|
|
41319
41331
|
value: function updateSignTime(node, signText) {
|
|
41320
|
-
var hoEditorFactory =
|
|
41332
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41321
41333
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41322
41334
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41323
|
-
var changeEvent = new
|
|
41335
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_79__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_31__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
41324
41336
|
changeEvent.oldEndPath = ePath;
|
|
41325
41337
|
changeEvent.afterChangePath = ePath;
|
|
41326
|
-
changeEvent.oldDrawLines = new
|
|
41338
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_80__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true, true);
|
|
41327
41339
|
node.imgSrc = signText;
|
|
41328
41340
|
hoEditorFactory.docTree.change(changeEvent);
|
|
41329
41341
|
}
|
|
@@ -41336,13 +41348,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41336
41348
|
}, {
|
|
41337
41349
|
key: "updateSignType",
|
|
41338
41350
|
value: function updateSignType(node, type, imgSrc, imgWidth, imgHeight) {
|
|
41339
|
-
var hoEditorFactory =
|
|
41351
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41340
41352
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41341
41353
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41342
|
-
var changeEvent = new
|
|
41354
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_79__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_31__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
41343
41355
|
changeEvent.oldEndPath = ePath;
|
|
41344
41356
|
changeEvent.afterChangePath = ePath;
|
|
41345
|
-
changeEvent.oldDrawLines = new
|
|
41357
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_80__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true, true);
|
|
41346
41358
|
node.type = type;
|
|
41347
41359
|
node.imgWidth = imgWidth;
|
|
41348
41360
|
node.imgHeight = imgHeight;
|
|
@@ -41357,13 +41369,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41357
41369
|
}, {
|
|
41358
41370
|
key: "updateSignCustomProp",
|
|
41359
41371
|
value: function updateSignCustomProp(node, customProperty) {
|
|
41360
|
-
var hoEditorFactory =
|
|
41372
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41361
41373
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41362
41374
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41363
|
-
var changeEvent = new
|
|
41375
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_79__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_31__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
41364
41376
|
changeEvent.oldEndPath = ePath;
|
|
41365
41377
|
changeEvent.afterChangePath = ePath;
|
|
41366
|
-
changeEvent.oldDrawLines = new
|
|
41378
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_80__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true, true);
|
|
41367
41379
|
node.customProperty = customProperty;
|
|
41368
41380
|
hoEditorFactory.docTree.change(changeEvent);
|
|
41369
41381
|
}
|
|
@@ -41374,7 +41386,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41374
41386
|
}, {
|
|
41375
41387
|
key: "getLogs",
|
|
41376
41388
|
value: function getLogs() {
|
|
41377
|
-
var hoEditorFactory =
|
|
41389
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41378
41390
|
return hoEditorFactory.undoService.getModifyHistory();
|
|
41379
41391
|
}
|
|
41380
41392
|
/**
|
|
@@ -41384,7 +41396,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41384
41396
|
key: "tabToNextElement",
|
|
41385
41397
|
value: function tabToNextElement() {
|
|
41386
41398
|
var _this8 = this;
|
|
41387
|
-
var hoEditorFactory =
|
|
41399
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41388
41400
|
var domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
41389
41401
|
if (!domRange.npStart || !domRange.npStart.node || !domRange.npEnd || !domRange.npEnd.node) return;
|
|
41390
41402
|
var endPath = domRange.endPath;
|
|
@@ -41392,7 +41404,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41392
41404
|
var curNode = domRange.npEnd.node;
|
|
41393
41405
|
var nextNode = curNode.nextLeaf();
|
|
41394
41406
|
do {
|
|
41395
|
-
if (nextNode instanceof
|
|
41407
|
+
if (nextNode instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_51__/* .MarkNode */ .j && nextNode.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_50__/* .TextInputFieldNode */ .re && nextNode.MarkNodeType === _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_51__/* .MarkNodeType */ .q.mtStart && nextNode.parentNode.canModifyContent || nextNode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_59__/* .DownListNode */ .yF || nextNode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_58__/* .DateTimeNode */ .Z) {
|
|
41396
41408
|
break;
|
|
41397
41409
|
}
|
|
41398
41410
|
if (nextNode) {
|
|
@@ -41414,16 +41426,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41414
41426
|
}
|
|
41415
41427
|
} while (1);
|
|
41416
41428
|
var setSelectRange = function setSelectRange(sPath, ePath) {
|
|
41417
|
-
var newRange = new
|
|
41418
|
-
var cgEvent = new
|
|
41429
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_35__/* .DomRange */ .a(_this8._hoEditorFactoryID, sPath, ePath);
|
|
41430
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_39__/* .SelectionChangeEvent */ .r(domRange, newRange); //选中范围变化事件
|
|
41419
41431
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
41420
41432
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
41421
41433
|
};
|
|
41422
41434
|
var toPath = '';
|
|
41423
|
-
if (nextNode instanceof
|
|
41435
|
+
if (nextNode instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_51__/* .MarkNode */ .j) {
|
|
41424
41436
|
toPath = nextNode.getNodePath();
|
|
41425
41437
|
setSelectRange(toPath, toPath);
|
|
41426
|
-
} else if (nextNode instanceof
|
|
41438
|
+
} else if (nextNode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_59__/* .DownListNode */ .yF || nextNode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_58__/* .DateTimeNode */ .Z) {
|
|
41427
41439
|
toPath = nextNode.getNodePath();
|
|
41428
41440
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(nextNode.previousLeaf());
|
|
41429
41441
|
setSelectRange(sPath, toPath);
|
|
@@ -41435,7 +41447,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41435
41447
|
}, {
|
|
41436
41448
|
key: "mergeCells",
|
|
41437
41449
|
value: function mergeCells(cell, r, c, rowSpan, colSpan) {
|
|
41438
|
-
var hoEditorFactory =
|
|
41450
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_81__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41439
41451
|
var _cell$table$canMergeC = cell.table.canMergeCell(r, c, rowSpan, colSpan),
|
|
41440
41452
|
_cell$table$canMergeC2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$canMergeC, 3),
|
|
41441
41453
|
ret = _cell$table$canMergeC2[0],
|
|
@@ -41443,7 +41455,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41443
41455
|
aColSpan = _cell$table$canMergeC2[2];
|
|
41444
41456
|
if (ret) {
|
|
41445
41457
|
hoEditorFactory.undoService.begin();
|
|
41446
|
-
hoEditorFactory.undoService.add(new
|
|
41458
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_70__/* .TableMergeCellUndoUnit */ .A(this._hoEditorFactoryID, cell.table, r, c, aRowSpan, aColSpan));
|
|
41447
41459
|
hoEditorFactory.undoService.commit();
|
|
41448
41460
|
}
|
|
41449
41461
|
}
|
|
@@ -168986,7 +168998,7 @@ var map = {
|
|
|
168986
168998
|
"./commentDialog/CommentDialog.vue": 61720,
|
|
168987
168999
|
"./customAttributes/CustomAttributes.vue": 75819,
|
|
168988
169000
|
"./dataSource/DataSource.vue": 84051,
|
|
168989
|
-
"./dateDialog/DateDialog.vue":
|
|
169001
|
+
"./dateDialog/DateDialog.vue": 64362,
|
|
168990
169002
|
"./delimiter/Delimiter.vue": 93230,
|
|
168991
169003
|
"./expressionForm/ExpressionForm.vue": 77541,
|
|
168992
169004
|
"./findReplace/FindReplace.vue": 98064,
|
|
@@ -169016,7 +169028,7 @@ var map = {
|
|
|
169016
169028
|
"./table/TableFormula.vue": 80199,
|
|
169017
169029
|
"./table/TableProperty.vue": 54054,
|
|
169018
169030
|
"./table/TableRowProperty.vue": 55631,
|
|
169019
|
-
"./textDialog/TextDialog.vue":
|
|
169031
|
+
"./textDialog/TextDialog.vue": 49594,
|
|
169020
169032
|
"./textDialog/TextToLabelDialog.vue": 2355,
|
|
169021
169033
|
"./textDialog/VerifyTip.vue": 74618,
|
|
169022
169034
|
"./upload/CanvasImageDialog.vue": 40061,
|
|
@@ -209645,7 +209657,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
209645
209657
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
209646
209658
|
var ParagraphNode = __webpack_require__(67945);
|
|
209647
209659
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
209648
|
-
/* harmony default export */ var version = ('3.1.
|
|
209660
|
+
/* harmony default export */ var version = ('3.1.111');
|
|
209649
209661
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
209650
209662
|
var PoperTipText = __webpack_require__(50987);
|
|
209651
209663
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -219057,7 +219069,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219057
219069
|
*/
|
|
219058
219070
|
}, {
|
|
219059
219071
|
key: "updateDateTime",
|
|
219060
|
-
value: function updateDateTime(valuesObject) {
|
|
219072
|
+
value: function updateDateTime(valuesObject, updateProps) {
|
|
219061
219073
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219062
219074
|
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
219063
219075
|
var startPath = _curDomRange.normalize().startPath;
|
|
@@ -219068,7 +219080,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219068
219080
|
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psTrace) {
|
|
219069
219081
|
isTrace = true;
|
|
219070
219082
|
}
|
|
219071
|
-
hoEditorFactory.docController.insertDateTime('update', _curDomRange, valuesObject, hoEditorFactory.docTree.curStyleIndex, isTrace);
|
|
219083
|
+
hoEditorFactory.docController.insertDateTime('update', _curDomRange, valuesObject, hoEditorFactory.docTree.curStyleIndex, isTrace, updateProps);
|
|
219072
219084
|
}
|
|
219073
219085
|
}
|
|
219074
219086
|
/**
|
|
@@ -221924,6 +221936,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221924
221936
|
value: function getSelectText() {
|
|
221925
221937
|
return this.getRangeText(this.getDomRange());
|
|
221926
221938
|
}
|
|
221939
|
+
}, {
|
|
221940
|
+
key: "clearSuperiorSign",
|
|
221941
|
+
value: function clearSuperiorSign() {
|
|
221942
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221943
|
+
hoEditorFactory.structureConvert._superiorSign = [];
|
|
221944
|
+
this.hiddenMask(true);
|
|
221945
|
+
}
|
|
221927
221946
|
}, {
|
|
221928
221947
|
key: "deleteNode",
|
|
221929
221948
|
value: function deleteNode(node) {
|
|
@@ -226348,6 +226367,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
226348
226367
|
});
|
|
226349
226368
|
return recordArr;
|
|
226350
226369
|
}
|
|
226370
|
+
}, {
|
|
226371
|
+
key: "cleatElementChangeRecords",
|
|
226372
|
+
value: function cleatElementChangeRecords() {
|
|
226373
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
226374
|
+
hoEditorFactory.docTree.elementChangeRecords = new Map();
|
|
226375
|
+
}
|
|
226351
226376
|
//获取前一个有效单元格
|
|
226352
226377
|
}, {
|
|
226353
226378
|
key: "getPreCell",
|