hoeditor-web 3.1.115 → 3.1.117
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.umd.js +892 -699
- package/lib/hoeditor.umd.min.js +15 -15
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -13897,7 +13897,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
13897
13897
|
|
|
13898
13898
|
/***/ }),
|
|
13899
13899
|
|
|
13900
|
-
/***/
|
|
13900
|
+
/***/ 58895:
|
|
13901
13901
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
13902
13902
|
|
|
13903
13903
|
"use strict";
|
|
@@ -13911,7 +13911,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
13911
13911
|
|
|
13912
13912
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
13913
13913
|
var es_function_name = __webpack_require__(68309);
|
|
13914
|
-
;// 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/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=
|
|
13914
|
+
;// 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/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=35805d03&
|
|
13915
13915
|
|
|
13916
13916
|
var render = function render() {
|
|
13917
13917
|
var _vm = this,
|
|
@@ -14671,7 +14671,7 @@ var render = function render() {
|
|
|
14671
14671
|
};
|
|
14672
14672
|
var staticRenderFns = [];
|
|
14673
14673
|
|
|
14674
|
-
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=
|
|
14674
|
+
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=35805d03&
|
|
14675
14675
|
|
|
14676
14676
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
14677
14677
|
var defineProperty = __webpack_require__(78255);
|
|
@@ -15005,10 +15005,10 @@ var defaultBox = {
|
|
|
15005
15005
|
}), _name$data$inject$pro);
|
|
15006
15006
|
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=script&lang=js&
|
|
15007
15007
|
/* harmony default export */ var radioCheckBox_RadioCheckboxvue_type_script_lang_js_ = (RadioCheckboxvue_type_script_lang_js_);
|
|
15008
|
-
;// 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/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=
|
|
15008
|
+
;// 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/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=35805d03&prod&lang=less&
|
|
15009
15009
|
// extracted by mini-css-extract-plugin
|
|
15010
15010
|
|
|
15011
|
-
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=
|
|
15011
|
+
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=35805d03&prod&lang=less&
|
|
15012
15012
|
|
|
15013
15013
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
15014
15014
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -37150,7 +37150,7 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
37150
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
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
37152
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(94310);
|
|
37153
|
-
/* harmony import */ var
|
|
37153
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(40735);
|
|
37154
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
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
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);
|
|
@@ -37162,105 +37162,114 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
37162
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
37163
|
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(54747);
|
|
37164
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
|
|
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
|
|
37165
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(66992);
|
|
37166
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
37167
|
+
/* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(51532);
|
|
37168
|
+
/* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
37169
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(78783);
|
|
37170
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_15__);
|
|
37171
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(33948);
|
|
37172
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_16__);
|
|
37173
|
+
/* harmony import */ var core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(2707);
|
|
37174
|
+
/* harmony import */ var core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_17__);
|
|
37175
|
+
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(69600);
|
|
37176
|
+
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
37177
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(68309);
|
|
37178
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
37179
|
+
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(21703);
|
|
37180
|
+
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
37181
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(92222);
|
|
37182
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_21__);
|
|
37183
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(9653);
|
|
37184
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_22__);
|
|
37185
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(40561);
|
|
37186
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_23__);
|
|
37187
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(74916);
|
|
37188
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_24__);
|
|
37189
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(15306);
|
|
37190
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_25__);
|
|
37191
|
+
/* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(68757);
|
|
37192
|
+
/* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_26__);
|
|
37193
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(39714);
|
|
37194
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_27__);
|
|
37195
|
+
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(69826);
|
|
37196
|
+
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_28__);
|
|
37197
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(26699);
|
|
37198
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_29__);
|
|
37199
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(32023);
|
|
37200
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_30__);
|
|
37201
|
+
/* harmony import */ var _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(10574);
|
|
37202
|
+
/* harmony import */ var _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(62358);
|
|
37203
|
+
/* harmony import */ var _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(64465);
|
|
37204
|
+
/* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(32629);
|
|
37205
|
+
/* harmony import */ var _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(27198);
|
|
37206
|
+
/* harmony import */ var _undoRedo_TextInsertUndoUnit__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(78560);
|
|
37207
|
+
/* harmony import */ var _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(67945);
|
|
37208
|
+
/* harmony import */ var _DomRange__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(94639);
|
|
37209
|
+
/* harmony import */ var _undoRedo_SelectionUndoUnit__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(1544);
|
|
37210
|
+
/* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(29899);
|
|
37211
|
+
/* harmony import */ var _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(90432);
|
|
37212
|
+
/* harmony import */ var _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(931);
|
|
37213
|
+
/* harmony import */ var _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(71144);
|
|
37214
|
+
/* harmony import */ var _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(38938);
|
|
37215
|
+
/* harmony import */ var _undoRedo_LineStyleUndoUnit__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(38695);
|
|
37216
|
+
/* harmony import */ var _treeNode_MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(45836);
|
|
37217
|
+
/* harmony import */ var _treeNode_PupilMapNode__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(19995);
|
|
37218
|
+
/* harmony import */ var _treeNode_LightLocationMapNode__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(59621);
|
|
37219
|
+
/* harmony import */ var _treeNode_FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(47088);
|
|
37220
|
+
/* harmony import */ var _treeNode_PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(13307);
|
|
37221
|
+
/* harmony import */ var _treeNode_PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(11429);
|
|
37222
|
+
/* harmony import */ var _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(80177);
|
|
37223
|
+
/* harmony import */ var _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(65043);
|
|
37224
|
+
/* harmony import */ var _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(57727);
|
|
37225
|
+
/* harmony import */ var _treeNode_ImageNode__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(97186);
|
|
37226
|
+
/* harmony import */ var _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(96637);
|
|
37227
|
+
/* harmony import */ var _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(12659);
|
|
37228
|
+
/* harmony import */ var _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(5010);
|
|
37229
|
+
/* harmony import */ var _events_Exception__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(8277);
|
|
37230
|
+
/* harmony import */ var _treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(99152);
|
|
37231
|
+
/* harmony import */ var _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(92501);
|
|
37232
|
+
/* harmony import */ var _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(45712);
|
|
37233
|
+
/* harmony import */ var _SubDocManger__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(80556);
|
|
37234
|
+
/* harmony import */ var _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(68598);
|
|
37235
|
+
/* harmony import */ var _TableProperty__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(79546);
|
|
37236
|
+
/* harmony import */ var _treeNode_SpecialCharsNode__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(61024);
|
|
37237
|
+
/* harmony import */ var _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(48458);
|
|
37238
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertUndoUnit__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(48988);
|
|
37239
|
+
/* harmony import */ var _undoRedo_TableUndos_TableDeleteRowUndoUnit__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(34908);
|
|
37240
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(43109);
|
|
37241
|
+
/* harmony import */ var _undoRedo_TableUndos_TableDeleteColUndoUnit__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(64180);
|
|
37242
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertColUndoUnit__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(24799);
|
|
37243
|
+
/* harmony import */ var _undoRedo_TableUndos_TableMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(36288);
|
|
37244
|
+
/* harmony import */ var _undoRedo_TableUndos_TableUnMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(92827);
|
|
37245
|
+
/* harmony import */ var _domNode_Comment__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(2592);
|
|
37246
|
+
/* harmony import */ var _treeNode_PageNumNode__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(10719);
|
|
37247
|
+
/* harmony import */ var _treeNode_PageCountNode__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(66034);
|
|
37248
|
+
/* harmony import */ var _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(90832);
|
|
37249
|
+
/* harmony import */ var _runTimeInfo_UserInfo__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(14871);
|
|
37250
|
+
/* harmony import */ var _undoRedo_TableUndos_TableResizeColUndoUnit__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(52269);
|
|
37251
|
+
/* harmony import */ var _undoRedo_TableUndos_TableResizeRowUndoUnit__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(30589);
|
|
37252
|
+
/* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(2613);
|
|
37253
|
+
/* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(53901);
|
|
37254
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(74089);
|
|
37255
|
+
/* harmony import */ var _undoRedo_ParseUndoUnit__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(56422);
|
|
37256
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(80437);
|
|
37257
|
+
/* harmony import */ var _draw_DrawLine__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(96635);
|
|
37258
|
+
/* harmony import */ var _treeNode_SeparateCharNode__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(39385);
|
|
37259
|
+
/* harmony import */ var _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(95089);
|
|
37260
|
+
/* harmony import */ var _NodePosition__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(42921);
|
|
37261
|
+
/* harmony import */ var _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(24701);
|
|
37262
|
+
/* harmony import */ var _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(76830);
|
|
37263
|
+
/* harmony import */ var _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(73632);
|
|
37264
|
+
/* harmony import */ var _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(90809);
|
|
37265
|
+
/* harmony import */ var _treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(34910);
|
|
37266
|
+
/* harmony import */ var _treeNode_JumpButtonNode__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(330);
|
|
37267
|
+
/* harmony import */ var _utils_StructureNode__WEBPACK_IMPORTED_MODULE_97__ = __webpack_require__(63602);
|
|
37268
|
+
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(51760);
|
|
37269
|
+
/* harmony import */ var _plugins_util__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(62783);
|
|
37270
|
+
|
|
37271
|
+
|
|
37272
|
+
|
|
37264
37273
|
|
|
37265
37274
|
|
|
37266
37275
|
|
|
@@ -37416,19 +37425,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37416
37425
|
if (!bNormalized) {
|
|
37417
37426
|
aRange = range.normalize();
|
|
37418
37427
|
}
|
|
37419
|
-
var hoEditorFactory =
|
|
37428
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37420
37429
|
var creatorIndex = -1;
|
|
37421
|
-
if ((hoEditorFactory.drawTree.paintStatus ===
|
|
37430
|
+
if ((hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psTrace) && aRange.npEnd.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R) {
|
|
37422
37431
|
var style = hoEditorFactory.docTree.styles[aRange.npEnd.node.styleIndex];
|
|
37423
37432
|
creatorIndex = style.creatorIndex === undefined ? -1 : style.creatorIndex;
|
|
37424
37433
|
}
|
|
37425
|
-
if ((hoEditorFactory.drawTree.paintStatus ===
|
|
37434
|
+
if ((hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psTrace) && oper !== 'update' && creatorIndex === -1) {
|
|
37426
37435
|
hoEditorFactory.undoService.begin();
|
|
37427
|
-
hoEditorFactory.undoService.add(new
|
|
37436
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, aRange.startPath, aRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .Operate */ .p('reviewDelete', 'string')));
|
|
37428
37437
|
hoEditorFactory.undoService.commit();
|
|
37429
37438
|
} else {
|
|
37430
37439
|
hoEditorFactory.undoService.begin();
|
|
37431
|
-
var nodesDeleteUndoUnit = new
|
|
37440
|
+
var nodesDeleteUndoUnit = new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_43__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, aRange.startPath, aRange.endPath, oper === 'update' ? true : false);
|
|
37432
37441
|
hoEditorFactory.undoService.add(nodesDeleteUndoUnit);
|
|
37433
37442
|
hoEditorFactory.undoService.commit();
|
|
37434
37443
|
return nodesDeleteUndoUnit.isError;
|
|
@@ -37438,10 +37447,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37438
37447
|
}, {
|
|
37439
37448
|
key: "insertNodeByPath",
|
|
37440
37449
|
value: function insertNodeByPath(path, node, isResetFieldText, isHasRelateEle, isTrace) {
|
|
37441
|
-
var hoEditorFactory =
|
|
37450
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37442
37451
|
var curRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
37443
37452
|
var parentNode = node.parentNode;
|
|
37444
|
-
if (node instanceof
|
|
37453
|
+
if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1 && isResetFieldText && !isHasRelateEle
|
|
37445
37454
|
//&& !parentNode.downListProperty.listItems?.includes("<元素>")
|
|
37446
37455
|
) {
|
|
37447
37456
|
var firstPath = parentNode.StartMarkNode.getNodePath();
|
|
@@ -37469,26 +37478,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37469
37478
|
|
|
37470
37479
|
if (!isError) {
|
|
37471
37480
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
37472
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
37481
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview) {
|
|
37473
37482
|
path = curDomRange.endPath;
|
|
37474
37483
|
}
|
|
37475
37484
|
var npNode = curDomRange.npEnd.node;
|
|
37476
|
-
if (npNode && npNode instanceof
|
|
37485
|
+
if (npNode && npNode instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__/* .MarkNode */ .j && npNode.MarkNodeType == 1) {
|
|
37477
37486
|
path = npNode.parentNode.StartMarkNode.getNodePath();
|
|
37478
37487
|
}
|
|
37479
|
-
if (isTrace && node instanceof
|
|
37488
|
+
if (isTrace && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re && parentNode.inputFieldType === 1 && node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R) {
|
|
37480
37489
|
var styleIndex = node.styleIndex;
|
|
37481
37490
|
var curTextStyle = hoEditorFactory.docTree.styles[styleIndex];
|
|
37482
|
-
var nodeStyle = new
|
|
37491
|
+
var nodeStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_40__/* .TextStyle */ .pn(this._hoEditorFactoryID);
|
|
37483
37492
|
nodeStyle.copyProperty(curTextStyle, nodeStyle);
|
|
37484
|
-
var newHistory = new
|
|
37493
|
+
var newHistory = new _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_67__/* .UserHistory */ .R(this._hoEditorFactoryID, _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_67__/* .HistoryEditType */ .N.hetModify);
|
|
37485
37494
|
var historyIndex = newHistory.userCompare();
|
|
37486
37495
|
nodeStyle.modifierIndex = historyIndex;
|
|
37487
37496
|
node.styleIndex = hoEditorFactory.docTree.styleCompare(nodeStyle);
|
|
37488
37497
|
}
|
|
37489
37498
|
hoEditorFactory.undoService.begin();
|
|
37490
37499
|
// this.insertNodeByPath(textNode,this._curNodePosition.path);
|
|
37491
|
-
hoEditorFactory.undoService.add(new
|
|
37500
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, node));
|
|
37492
37501
|
hoEditorFactory.undoService.commit();
|
|
37493
37502
|
}
|
|
37494
37503
|
return hoEditorFactory.docTree.curDomRange.startPath;
|
|
@@ -37501,10 +37510,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37501
37510
|
}, {
|
|
37502
37511
|
key: "keyBoardInput",
|
|
37503
37512
|
value: function keyBoardInput(text) {
|
|
37504
|
-
var hoEditorFactory =
|
|
37513
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37505
37514
|
var domRange = hoEditorFactory.docTree.curDomRange;
|
|
37506
|
-
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus ===
|
|
37507
|
-
|
|
37515
|
+
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview) {
|
|
37516
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('质控医生站的病历只可进行批注不可编辑修改');
|
|
37508
37517
|
return;
|
|
37509
37518
|
}
|
|
37510
37519
|
// alert(text);
|
|
@@ -37529,9 +37538,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37529
37538
|
// hoEditorFactory.drawTree.moveCaretToPath(startPath);
|
|
37530
37539
|
// }
|
|
37531
37540
|
// }
|
|
37532
|
-
var changingEvent = new
|
|
37541
|
+
var changingEvent = new _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_31__/* .NodeChangingEvent */ .Q(_DocTree__WEBPACK_IMPORTED_MODULE_34__/* .DocAction */ .gk.daInsert, startPath, endPath, _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_31__/* .OperType */ .y.keyBoardInput);
|
|
37533
37542
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
37534
|
-
if (domRange.npStart.node && domRange.npStart.node.parentNode instanceof
|
|
37543
|
+
if (domRange.npStart.node && domRange.npStart.node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) {
|
|
37535
37544
|
//if (hoEditorFactory.docTree.docProperty.type === EmrType.etForm) {
|
|
37536
37545
|
var cellNode = domRange.npStart.node.parentNode;
|
|
37537
37546
|
var colIndex = cellNode.row.indexOf(cellNode);
|
|
@@ -37541,7 +37550,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37541
37550
|
var isAllowEdit = colProperty.downListProperty.canModifyContent;
|
|
37542
37551
|
//const cellText = cellNode.getCellText();
|
|
37543
37552
|
if (!isAllowEdit) {
|
|
37544
|
-
|
|
37553
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('不允许用户直接编辑,请双击单元格进行选择.');
|
|
37545
37554
|
return;
|
|
37546
37555
|
}
|
|
37547
37556
|
}
|
|
@@ -37549,7 +37558,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37549
37558
|
var _isAllowEdit = cellProperty.downListProperty.canModifyContent;
|
|
37550
37559
|
//const cellText = cellNode.getCellText();
|
|
37551
37560
|
if (!_isAllowEdit) {
|
|
37552
|
-
|
|
37561
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('不允许用户直接编辑,请双击单元格进行选择.');
|
|
37553
37562
|
return;
|
|
37554
37563
|
}
|
|
37555
37564
|
}
|
|
@@ -37562,7 +37571,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37562
37571
|
}, {
|
|
37563
37572
|
key: "insertNodeText",
|
|
37564
37573
|
value: function insertNodeText(node, path, text) {
|
|
37565
|
-
var hoEditorFactory =
|
|
37574
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37566
37575
|
var curRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
37567
37576
|
var isError;
|
|
37568
37577
|
if (!curRange.isEmpty) {
|
|
@@ -37586,7 +37595,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37586
37595
|
if (!isError) {
|
|
37587
37596
|
hoEditorFactory.undoService.begin();
|
|
37588
37597
|
// this.insertNodeByPath(textNode,this._curNodePosition.path);
|
|
37589
|
-
hoEditorFactory.undoService.add(new
|
|
37598
|
+
hoEditorFactory.undoService.add(new _undoRedo_TextInsertUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .TextInsertUndoUnit */ .t(this._hoEditorFactoryID, node, path, text));
|
|
37590
37599
|
hoEditorFactory.undoService.commit();
|
|
37591
37600
|
}
|
|
37592
37601
|
}
|
|
@@ -37627,7 +37636,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37627
37636
|
}
|
|
37628
37637
|
}, {
|
|
37629
37638
|
key: "insertALine",
|
|
37630
|
-
value: function insertALine(hoEditorFactory, path, lineText, roots, pNode, curTextStyle, node, childIndex, isEndLine, aresolve, oldCanModifyContent, isUpdate,
|
|
37639
|
+
value: function insertALine(hoEditorFactory, path, lineText, roots, pNode, curTextStyle, node, childIndex, isEndLine, aresolve, oldCanModifyContent, isUpdate, isTrace) {
|
|
37631
37640
|
var _this = this;
|
|
37632
37641
|
var arrSubString = new Array();
|
|
37633
37642
|
arrSubString.push([0, lineText]);
|
|
@@ -37659,10 +37668,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37659
37668
|
strPath = res;
|
|
37660
37669
|
if (index === arrSubString.length - 1) {
|
|
37661
37670
|
if (!isEndLine) {
|
|
37662
|
-
var paragraphNode = new
|
|
37671
|
+
var paragraphNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_37__/* .ParagraphNode */ .C(_this._hoEditorFactoryID, roots, pNode, hoEditorFactory.docTree.curParaNo);
|
|
37663
37672
|
strPath = _this.insertNodeByPath(strPath, paragraphNode);
|
|
37664
37673
|
} else {
|
|
37665
|
-
if (oldCanModifyContent !== undefined && pNode instanceof
|
|
37674
|
+
if (oldCanModifyContent !== undefined && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re) {
|
|
37666
37675
|
pNode.canModifyContent = oldCanModifyContent;
|
|
37667
37676
|
pNode.update();
|
|
37668
37677
|
}
|
|
@@ -37675,28 +37684,97 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37675
37684
|
}
|
|
37676
37685
|
} else {
|
|
37677
37686
|
node = hoEditorFactory.docTree.findNodePositionByPath(strPath).node;
|
|
37678
|
-
if (aTextArray[0] == 0 && node instanceof
|
|
37679
|
-
if (hoEditorFactory.drawTree.paintStatus !==
|
|
37687
|
+
if (aTextArray[0] == 0 && node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R && childIndex >= 0 && node.styleIndex == hoEditorFactory.docTree.curStyleIndex) {
|
|
37688
|
+
if (hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview && hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psTrace || (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psTrace) && !curTextStyle.combineStyle.strikeout) {
|
|
37680
37689
|
var textNode = node;
|
|
37681
37690
|
_this.insertNodeText(textNode, strPath, aText);
|
|
37682
37691
|
//strPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
37683
37692
|
strPath = hoEditorFactory.docTree.getNodeLastPath(textNode);
|
|
37684
37693
|
} else {
|
|
37685
|
-
var _textNode = new
|
|
37694
|
+
var _textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntText, aText, hoEditorFactory.docTree.curStyleIndex);
|
|
37686
37695
|
strPath = _this.insertNodeByPath(strPath, _textNode, isUpdate, isHasRelateEle && index >= 1 ? true : false);
|
|
37687
37696
|
}
|
|
37688
37697
|
} else {
|
|
37689
37698
|
var styleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
37690
|
-
if (pNode instanceof
|
|
37699
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re && node === pNode.first() && hoEditorFactory.drawTree.paintStatus != _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview) {
|
|
37691
37700
|
styleIndex = node.styleIndex;
|
|
37692
37701
|
}
|
|
37693
37702
|
if (aTextArray[0] > 1) {
|
|
37694
37703
|
var newStyle = hoEditorFactory.docTree.styles[styleIndex].clone();
|
|
37695
|
-
newStyle.script = aTextArray[0] == 2 ?
|
|
37704
|
+
newStyle.script = aTextArray[0] == 2 ? _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_40__/* .StyleScriptType */ .n$.sstsup : _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_40__/* .StyleScriptType */ .n$.sstsub;
|
|
37696
37705
|
styleIndex = hoEditorFactory.docTree.styleCompare(newStyle);
|
|
37697
37706
|
}
|
|
37698
|
-
|
|
37699
|
-
|
|
37707
|
+
if (isTrace) {
|
|
37708
|
+
var addIndex = aText.indexOf("(add)");
|
|
37709
|
+
var delIndex = aText.indexOf("(del)");
|
|
37710
|
+
var oldIndex = aText.indexOf("(old)");
|
|
37711
|
+
if (addIndex >= 0 || delIndex >= 0 || oldIndex >= 0) {
|
|
37712
|
+
var curStyle = hoEditorFactory.docTree.styles[styleIndex];
|
|
37713
|
+
var _newStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_40__/* .TextStyle */ .pn(_this._hoEditorFactoryID);
|
|
37714
|
+
_newStyle.copyProperty(curStyle, _newStyle);
|
|
37715
|
+
var indexMap = new Map();
|
|
37716
|
+
var arr = [];
|
|
37717
|
+
do {
|
|
37718
|
+
if (addIndex >= 0) {
|
|
37719
|
+
indexMap.set(addIndex, "add");
|
|
37720
|
+
arr.push(addIndex);
|
|
37721
|
+
addIndex = aText.indexOf("(add)", addIndex + 5);
|
|
37722
|
+
}
|
|
37723
|
+
} while (addIndex >= 0);
|
|
37724
|
+
do {
|
|
37725
|
+
if (delIndex >= 0) {
|
|
37726
|
+
indexMap.set(delIndex, "del");
|
|
37727
|
+
arr.push(delIndex);
|
|
37728
|
+
delIndex = aText.indexOf("(del)", delIndex + 5);
|
|
37729
|
+
}
|
|
37730
|
+
} while (delIndex >= 0);
|
|
37731
|
+
do {
|
|
37732
|
+
if (oldIndex >= 0) {
|
|
37733
|
+
indexMap.set(oldIndex, "old");
|
|
37734
|
+
arr.push(oldIndex);
|
|
37735
|
+
oldIndex = aText.indexOf("(old)", oldIndex + 5);
|
|
37736
|
+
}
|
|
37737
|
+
} while (oldIndex >= 0);
|
|
37738
|
+
arr = arr.sort(function (a, b) {
|
|
37739
|
+
return a - b;
|
|
37740
|
+
});
|
|
37741
|
+
for (var c = 0; c < arr.length; c++) {
|
|
37742
|
+
var oper = indexMap.get(arr[c]);
|
|
37743
|
+
if (oper == "add") {
|
|
37744
|
+
var addEnd = aText.indexOf("(/add)", arr[c]);
|
|
37745
|
+
var addText = aText.substring(arr[c] + 5, addEnd);
|
|
37746
|
+
var user = new _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_67__/* .UserHistory */ .R(_this._hoEditorFactoryID, _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_67__/* .HistoryEditType */ .N.hetCreate);
|
|
37747
|
+
var newIndex = user.userCompare();
|
|
37748
|
+
_newStyle.creatorIndex = newIndex;
|
|
37749
|
+
_newStyle.strikeout = false;
|
|
37750
|
+
styleIndex = hoEditorFactory.docTree.styleCompare(_newStyle);
|
|
37751
|
+
var _textNode2 = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntText, addText, styleIndex);
|
|
37752
|
+
strPath = _this.insertNodeByPath(strPath, _textNode2, isUpdate, isHasRelateEle && index >= 1 ? true : false, isTrace);
|
|
37753
|
+
} else if (oper == "del") {
|
|
37754
|
+
var delEnd = aText.indexOf("(/del)", arr[c]);
|
|
37755
|
+
var delText = aText.substring(arr[c] + 5, delEnd);
|
|
37756
|
+
var _user = new _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_67__/* .UserHistory */ .R(_this._hoEditorFactoryID, _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_67__/* .HistoryEditType */ .N.hetDelete);
|
|
37757
|
+
var _newIndex = _user.userCompare();
|
|
37758
|
+
_newStyle.deleterIndex = _newIndex;
|
|
37759
|
+
_newStyle.strikeout = true;
|
|
37760
|
+
styleIndex = hoEditorFactory.docTree.styleCompare(_newStyle);
|
|
37761
|
+
var _textNode3 = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntText, delText, styleIndex);
|
|
37762
|
+
strPath = _this.insertNodeByPath(strPath, _textNode3, isUpdate, isHasRelateEle && index >= 1 ? true : false, isTrace);
|
|
37763
|
+
} else {
|
|
37764
|
+
var oldEnd = aText.indexOf("(/old)", arr[c]);
|
|
37765
|
+
var oldText = aText.substring(arr[c] + 5, oldEnd);
|
|
37766
|
+
var _textNode4 = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntText, oldText, styleIndex);
|
|
37767
|
+
strPath = _this.insertNodeByPath(strPath, _textNode4, isUpdate, isHasRelateEle && index >= 1 ? true : false, isTrace);
|
|
37768
|
+
}
|
|
37769
|
+
}
|
|
37770
|
+
} else {
|
|
37771
|
+
var _textNode5 = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntText, aText, styleIndex);
|
|
37772
|
+
strPath = _this.insertNodeByPath(strPath, _textNode5, isUpdate, isHasRelateEle && index >= 1 ? true : false, true);
|
|
37773
|
+
}
|
|
37774
|
+
} else {
|
|
37775
|
+
var _textNode6 = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntText, aText, styleIndex);
|
|
37776
|
+
strPath = _this.insertNodeByPath(strPath, _textNode6, isUpdate, isHasRelateEle && index >= 1 ? true : false);
|
|
37777
|
+
}
|
|
37700
37778
|
}
|
|
37701
37779
|
// if (index === arrSubString.length - 1 && isEndLine && oldCanModifyContent !== undefined && pNode instanceof TextInputFieldNode) {
|
|
37702
37780
|
// pNode.canModifyContent = oldCanModifyContent;
|
|
@@ -37704,14 +37782,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37704
37782
|
// }
|
|
37705
37783
|
if (index === arrSubString.length - 1) {
|
|
37706
37784
|
if (!isEndLine) {
|
|
37707
|
-
var paragraphNode = new
|
|
37785
|
+
var paragraphNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_37__/* .ParagraphNode */ .C(_this._hoEditorFactoryID, roots, pNode, hoEditorFactory.docTree.curParaNo);
|
|
37708
37786
|
strPath = _this.insertNodeByPath(strPath, paragraphNode);
|
|
37709
37787
|
} else {
|
|
37710
|
-
if (oldCanModifyContent !== undefined && pNode instanceof
|
|
37788
|
+
if (oldCanModifyContent !== undefined && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re) {
|
|
37711
37789
|
pNode.canModifyContent = oldCanModifyContent;
|
|
37712
37790
|
pNode.update();
|
|
37713
37791
|
var ppNode = pNode.parentNode;
|
|
37714
|
-
if (ppNode instanceof
|
|
37792
|
+
if (ppNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) {
|
|
37715
37793
|
ppNode.drawCell.needUpdate = true;
|
|
37716
37794
|
ppNode.table.update();
|
|
37717
37795
|
}
|
|
@@ -37742,9 +37820,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37742
37820
|
*/
|
|
37743
37821
|
}, {
|
|
37744
37822
|
key: "insertPlainTextAfterPath",
|
|
37745
|
-
value: function insertPlainTextAfterPath(path, text, oldCanModifyContent,
|
|
37823
|
+
value: function insertPlainTextAfterPath(path, text, oldCanModifyContent, isTrace) {
|
|
37746
37824
|
var _this2 = this;
|
|
37747
|
-
var hoEditorFactory =
|
|
37825
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37748
37826
|
if (text === '') {
|
|
37749
37827
|
return;
|
|
37750
37828
|
}
|
|
@@ -37760,10 +37838,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37760
37838
|
var curStyleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
37761
37839
|
var curParaNo = hoEditorFactory.docTree.curParaNo;
|
|
37762
37840
|
var curTextStyle = hoEditorFactory.docTree.styles[curStyleIndex];
|
|
37763
|
-
var nodeStyle = new
|
|
37841
|
+
var nodeStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_40__/* .TextStyle */ .pn(this._hoEditorFactoryID);
|
|
37764
37842
|
nodeStyle.copyProperty(curTextStyle, nodeStyle);
|
|
37765
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
37766
|
-
var newHistory = new
|
|
37843
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psTrace) {
|
|
37844
|
+
var newHistory = new _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_67__/* .UserHistory */ .R(this._hoEditorFactoryID, _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_67__/* .HistoryEditType */ .N.hetCreate);
|
|
37767
37845
|
var historyIndex = newHistory.userCompare();
|
|
37768
37846
|
nodeStyle.creatorIndex = historyIndex;
|
|
37769
37847
|
if (nodeStyle.combineStyle.strikeout) {
|
|
@@ -37776,33 +37854,33 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37776
37854
|
curStyleIndex = hoEditorFactory.docTree.styleCompare(nodeStyle);
|
|
37777
37855
|
hoEditorFactory.docTree.curStyleIndex = curStyleIndex;
|
|
37778
37856
|
var pNode = node.parentNode;
|
|
37779
|
-
if (pNode instanceof
|
|
37857
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re && pNode.childNodes.indexOf(node) === 0 && hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview) {
|
|
37780
37858
|
curStyleIndex = node.styleIndex;
|
|
37781
37859
|
hoEditorFactory.docTree.curStyleIndex = curStyleIndex;
|
|
37782
37860
|
}
|
|
37783
37861
|
var slibs = nodePosition.roots;
|
|
37784
|
-
if (pNode && pNode instanceof
|
|
37862
|
+
if (pNode && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re && node == pNode.last()) {
|
|
37785
37863
|
slibs = pNode.getParentNodes();
|
|
37786
37864
|
pNode = pNode.parentNode;
|
|
37787
37865
|
}
|
|
37788
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
37866
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psTrace) {
|
|
37789
37867
|
if (curTextStyle.strikeout) {
|
|
37790
|
-
var _nodeStyle = new
|
|
37868
|
+
var _nodeStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_40__/* .TextStyle */ .pn(this._hoEditorFactoryID);
|
|
37791
37869
|
_nodeStyle.copyProperty(curTextStyle, _nodeStyle);
|
|
37792
37870
|
_nodeStyle.strikeout = false;
|
|
37793
37871
|
_nodeStyle.deleterIndex = -1;
|
|
37794
|
-
var _newHistory = new
|
|
37872
|
+
var _newHistory = new _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_67__/* .UserHistory */ .R(this._hoEditorFactoryID, _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_67__/* .HistoryEditType */ .N.hetCreate);
|
|
37795
37873
|
var _historyIndex = _newHistory.userCompare();
|
|
37796
37874
|
_nodeStyle.creatorIndex = _historyIndex;
|
|
37797
37875
|
curStyleIndex = hoEditorFactory.docTree.styleCompare(_nodeStyle);
|
|
37798
37876
|
}
|
|
37799
37877
|
}
|
|
37800
37878
|
var canModifyContent = true;
|
|
37801
|
-
if (pNode instanceof
|
|
37879
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re) {
|
|
37802
37880
|
canModifyContent = pNode.canModifyContent;
|
|
37803
37881
|
}
|
|
37804
37882
|
var insertParagraph = function insertParagraph(aPath) {
|
|
37805
|
-
var paragraphNode = new
|
|
37883
|
+
var paragraphNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_37__/* .ParagraphNode */ .C(_this2._hoEditorFactoryID, nodePosition.roots, pNode, curParaNo);
|
|
37806
37884
|
_this2.insertNodeByPath(aPath, paragraphNode);
|
|
37807
37885
|
return hoEditorFactory.docTree.curDomRange.startPath;
|
|
37808
37886
|
};
|
|
@@ -37818,17 +37896,17 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37818
37896
|
strPath = insertParagraph(strPath);
|
|
37819
37897
|
resolve(strPath);
|
|
37820
37898
|
} else {
|
|
37821
|
-
if (pNode instanceof
|
|
37899
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re) {
|
|
37822
37900
|
pNode.canModifyContent = canModifyContent;
|
|
37823
37901
|
}
|
|
37824
37902
|
var isUpdate = false;
|
|
37825
37903
|
if (oldCanModifyContent !== undefined) {
|
|
37826
37904
|
isUpdate = true;
|
|
37827
|
-
if (pNode instanceof
|
|
37905
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re && pNode.downListProperty.isMultiLinesDisplay && index > 0) {
|
|
37828
37906
|
isUpdate = false;
|
|
37829
37907
|
}
|
|
37830
37908
|
}
|
|
37831
|
-
strPath = _this2.insertALine(hoEditorFactory, strPath, text, nodePosition.roots, pNode, curTextStyle, node, nodePosition.childIndex, index === lines.length - 1, resolve, oldCanModifyContent, isUpdate,
|
|
37909
|
+
strPath = _this2.insertALine(hoEditorFactory, strPath, text, nodePosition.roots, pNode, curTextStyle, node, nodePosition.childIndex, index === lines.length - 1, resolve, oldCanModifyContent, isUpdate, isTrace);
|
|
37832
37910
|
}
|
|
37833
37911
|
});
|
|
37834
37912
|
});
|
|
@@ -37848,7 +37926,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37848
37926
|
}, {
|
|
37849
37927
|
key: "directionKey",
|
|
37850
37928
|
value: function directionKey(keyValue) {
|
|
37851
|
-
var hoEditorFactory =
|
|
37929
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37852
37930
|
var domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
37853
37931
|
var oldRange = hoEditorFactory.docTree.curDomRange.clone();
|
|
37854
37932
|
var startPath = domRange.startPath;
|
|
@@ -37857,13 +37935,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37857
37935
|
if (!domRange.isEmpty) {
|
|
37858
37936
|
//有选中区域
|
|
37859
37937
|
if (keyValue === 'left' || keyValue === 'up') {
|
|
37860
|
-
newRange = new
|
|
37938
|
+
newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, startPath);
|
|
37861
37939
|
} else {
|
|
37862
|
-
newRange = new
|
|
37940
|
+
newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, endPath, endPath);
|
|
37863
37941
|
}
|
|
37864
37942
|
} else {
|
|
37865
37943
|
var toPath = hoEditorFactory.docTree.getToPath(keyValue, startPath);
|
|
37866
|
-
newRange = new
|
|
37944
|
+
newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, toPath, toPath);
|
|
37867
37945
|
}
|
|
37868
37946
|
// const superiorSign = hoEditorFactory.structureConvert._superiorSign;
|
|
37869
37947
|
// if (superiorSign.length > 0 && (superiorSign[0] as SignNode).imgSrc != "") {
|
|
@@ -37896,19 +37974,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37896
37974
|
value: function keyBoardDelete(keyValue) {
|
|
37897
37975
|
var startPath = '';
|
|
37898
37976
|
var endPath = '';
|
|
37899
|
-
var hoEditorFactory =
|
|
37977
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37900
37978
|
var domRange = hoEditorFactory.docTree.curDomRange;
|
|
37901
37979
|
if (!domRange.isEmpty) {
|
|
37902
37980
|
domRange = domRange.normalize();
|
|
37903
|
-
} else if ((hoEditorFactory.drawTree.paintStatus ===
|
|
37904
|
-
if (domRange.npStart.node instanceof
|
|
37905
|
-
|
|
37981
|
+
} else if ((hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psTrace) && !(domRange.npStart.node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
37982
|
+
if (domRange.npStart.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== undefined && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== -1) {} else {
|
|
37983
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('审阅模式下,只能选中文档内容进行删除');
|
|
37906
37984
|
return;
|
|
37907
37985
|
}
|
|
37908
37986
|
}
|
|
37909
37987
|
startPath = domRange.startPath;
|
|
37910
37988
|
endPath = domRange.endPath;
|
|
37911
|
-
var changingEvent = new
|
|
37989
|
+
var changingEvent = new _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_31__/* .NodeChangingEvent */ .Q(_DocTree__WEBPACK_IMPORTED_MODULE_34__/* .DocAction */ .gk.daInsert, startPath, endPath, _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_31__/* .OperType */ .y.keyBoardDelete);
|
|
37912
37990
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
37913
37991
|
if (keyValue === 'Backspace') {
|
|
37914
37992
|
this.deleteTextBeforePath(startPath);
|
|
@@ -37930,7 +38008,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37930
38008
|
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) {
|
|
37931
38009
|
while (1) switch (_context.prev = _context.next) {
|
|
37932
38010
|
case 0:
|
|
37933
|
-
hoEditorFactory =
|
|
38011
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37934
38012
|
domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
37935
38013
|
if (domRange.isEmpty) {
|
|
37936
38014
|
_context.next = 6;
|
|
@@ -37961,11 +38039,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37961
38039
|
_context.next = 122;
|
|
37962
38040
|
break;
|
|
37963
38041
|
}
|
|
37964
|
-
if (!(node instanceof
|
|
38042
|
+
if (!(node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R)) {
|
|
37965
38043
|
_context.next = 35;
|
|
37966
38044
|
break;
|
|
37967
38045
|
}
|
|
37968
|
-
if (!(node.parentNode instanceof
|
|
38046
|
+
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D)) {
|
|
37969
38047
|
_context.next = 16;
|
|
37970
38048
|
break;
|
|
37971
38049
|
}
|
|
@@ -38000,7 +38078,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38000
38078
|
console.error('这里应该不会出现这种情况 2020.10.28');
|
|
38001
38079
|
return _context.abrupt("return");
|
|
38002
38080
|
case 30:
|
|
38003
|
-
hoEditorFactory.docTree.curDomRange = new
|
|
38081
|
+
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, topath, startPath);
|
|
38004
38082
|
// hoEditorFactory.undoService.begin();
|
|
38005
38083
|
// hoEditorFactory.undoService.add(
|
|
38006
38084
|
// new NodesDeleteUndoUnit(
|
|
@@ -38011,7 +38089,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38011
38089
|
// )
|
|
38012
38090
|
// );
|
|
38013
38091
|
// hoEditorFactory.undoService.commit();
|
|
38014
|
-
aRange = new
|
|
38092
|
+
aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, topath).normalize();
|
|
38015
38093
|
this.deleteRange(aRange, true);
|
|
38016
38094
|
//hoEditorFactory.drawTree.moveCaretToPath(topath);
|
|
38017
38095
|
//hoEditorFactory.docTree.curDomRange.setSamePath(topath);
|
|
@@ -38021,16 +38099,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38021
38099
|
_context.next = 122;
|
|
38022
38100
|
break;
|
|
38023
38101
|
case 35:
|
|
38024
|
-
if (!(node instanceof
|
|
38102
|
+
if (!(node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__/* .MarkNode */ .j)) {
|
|
38025
38103
|
_context.next = 55;
|
|
38026
38104
|
break;
|
|
38027
38105
|
}
|
|
38028
38106
|
endPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
38029
|
-
if (!(node.parentNode && node.parentNode instanceof
|
|
38107
|
+
if (!(node.parentNode && node.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re)) {
|
|
38030
38108
|
_context.next = 50;
|
|
38031
38109
|
break;
|
|
38032
38110
|
}
|
|
38033
|
-
if (!(node.parentNode.childNodes[1] instanceof
|
|
38111
|
+
if (!(node.parentNode.childNodes[1] instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__/* .MarkNode */ .j)) {
|
|
38034
38112
|
_context.next = 43;
|
|
38035
38113
|
break;
|
|
38036
38114
|
}
|
|
@@ -38054,7 +38132,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38054
38132
|
}
|
|
38055
38133
|
return _context.abrupt("return");
|
|
38056
38134
|
case 50:
|
|
38057
|
-
_aRange = new
|
|
38135
|
+
_aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath //hoEditorFactory.docTree.getNodeLastPath(node)
|
|
38058
38136
|
).normalize();
|
|
38059
38137
|
isError = this.deleteRange(_aRange, true);
|
|
38060
38138
|
if (isError) {
|
|
@@ -38073,12 +38151,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38073
38151
|
_context.next = 122;
|
|
38074
38152
|
break;
|
|
38075
38153
|
case 55:
|
|
38076
|
-
if (!(node instanceof
|
|
38154
|
+
if (!(node instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_37__/* .ParagraphNode */ .C)) {
|
|
38077
38155
|
_context.next = 81;
|
|
38078
38156
|
break;
|
|
38079
38157
|
}
|
|
38080
38158
|
prevNode = node.prevSibling();
|
|
38081
|
-
if (!(prevNode instanceof
|
|
38159
|
+
if (!(prevNode instanceof _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_58__/* .TableNode */ .Fh)) {
|
|
38082
38160
|
_context.next = 59;
|
|
38083
38161
|
break;
|
|
38084
38162
|
}
|
|
@@ -38088,7 +38166,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38088
38166
|
_context.next = 81;
|
|
38089
38167
|
break;
|
|
38090
38168
|
}
|
|
38091
|
-
if (!(node.parentNode instanceof
|
|
38169
|
+
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D)) {
|
|
38092
38170
|
_context.next = 80;
|
|
38093
38171
|
break;
|
|
38094
38172
|
}
|
|
@@ -38097,7 +38175,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38097
38175
|
tIndex = tableNode.childNodes.indexOf(cellNode);
|
|
38098
38176
|
cIndex = cellNode.childNodes.indexOf(node);
|
|
38099
38177
|
preParaNode = hoEditorFactory.docTree.getSameRectPrevParanode(tableNode.paragraphNode);
|
|
38100
|
-
if (!(preParaNode && tIndex == 0 && cIndex == 0 && preParaNode.drawlines.length == 1 && preParaNode.drawlines[0] instanceof
|
|
38178
|
+
if (!(preParaNode && tIndex == 0 && cIndex == 0 && preParaNode.drawlines.length == 1 && preParaNode.drawlines[0] instanceof _draw_DrawLine__WEBPACK_IMPORTED_MODULE_87__/* .DrawLine */ .a && preParaNode.drawlines[0].isEmpty())) {
|
|
38101
38179
|
_context.next = 77;
|
|
38102
38180
|
break;
|
|
38103
38181
|
}
|
|
@@ -38107,7 +38185,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38107
38185
|
// );
|
|
38108
38186
|
// await hoEditorFactory.undoService.commit();
|
|
38109
38187
|
hoEditorFactory.undoService.begin();
|
|
38110
|
-
hoEditorFactory.undoService.add(new
|
|
38188
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_94__/* .TableDeleteParagraphUndoUnit */ .T(this._hoEditorFactoryID, tableNode, tableNode.paragraphNode));
|
|
38111
38189
|
_context.next = 71;
|
|
38112
38190
|
return hoEditorFactory.undoService.commit();
|
|
38113
38191
|
case 71:
|
|
@@ -38123,14 +38201,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38123
38201
|
case 80:
|
|
38124
38202
|
return _context.abrupt("return");
|
|
38125
38203
|
case 81:
|
|
38126
|
-
if (!(hoEditorFactory.drawTree.paintStatus ===
|
|
38204
|
+
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview && !(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N))) {
|
|
38127
38205
|
_context.next = 86;
|
|
38128
38206
|
break;
|
|
38129
38207
|
}
|
|
38130
|
-
|
|
38208
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('审阅模式下,只能对文本内容进行删除');
|
|
38131
38209
|
return _context.abrupt("return");
|
|
38132
38210
|
case 86:
|
|
38133
|
-
if (!((hoEditorFactory.drawTree.paintStatus ===
|
|
38211
|
+
if (!((hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psTrace) && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
38134
38212
|
_context.next = 91;
|
|
38135
38213
|
break;
|
|
38136
38214
|
}
|
|
@@ -38139,24 +38217,24 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38139
38217
|
_context.next = 91;
|
|
38140
38218
|
break;
|
|
38141
38219
|
}
|
|
38142
|
-
|
|
38220
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('不是本人签名,不允许删除!');
|
|
38143
38221
|
return _context.abrupt("return");
|
|
38144
38222
|
case 91:
|
|
38145
|
-
if (!(hoEditorFactory.drawTree.paintStatus !==
|
|
38223
|
+
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
38146
38224
|
_context.next = 94;
|
|
38147
38225
|
break;
|
|
38148
38226
|
}
|
|
38149
|
-
|
|
38227
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('不允许使用删除键删除签名,请右键删除元素');
|
|
38150
38228
|
return _context.abrupt("return");
|
|
38151
38229
|
case 94:
|
|
38152
|
-
if (!(hoEditorFactory.drawTree.paintStatus !==
|
|
38230
|
+
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
38153
38231
|
_context.next = 97;
|
|
38154
38232
|
break;
|
|
38155
38233
|
}
|
|
38156
|
-
|
|
38234
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('该签名元素不允许删除!');
|
|
38157
38235
|
return _context.abrupt("return");
|
|
38158
38236
|
case 97:
|
|
38159
|
-
if (!(node instanceof
|
|
38237
|
+
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
38160
38238
|
_context.next = 117;
|
|
38161
38239
|
break;
|
|
38162
38240
|
}
|
|
@@ -38169,12 +38247,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38169
38247
|
break;
|
|
38170
38248
|
}
|
|
38171
38249
|
path = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
38172
|
-
signNode = new
|
|
38250
|
+
signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .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);
|
|
38173
38251
|
hoEditorFactory.undoService.begin();
|
|
38174
|
-
hoEditorFactory.undoService.add(new
|
|
38175
|
-
hoEditorFactory.undoService.add(new
|
|
38252
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38253
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, signNode));
|
|
38176
38254
|
hoEditorFactory.undoService.commit();
|
|
38177
|
-
if (node.parentNode instanceof
|
|
38255
|
+
if (node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) {
|
|
38178
38256
|
table = node.parentNode.table;
|
|
38179
38257
|
if (table.tableProperty.isSignLock && table.tableProperty.isLock) {
|
|
38180
38258
|
table.tableProperty.isLock = false;
|
|
@@ -38188,19 +38266,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38188
38266
|
}
|
|
38189
38267
|
return _context.abrupt("return");
|
|
38190
38268
|
case 112:
|
|
38191
|
-
if (node.connectMode == '换行' && preNode instanceof
|
|
38269
|
+
if (node.connectMode == '换行' && preNode instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_37__/* .ParagraphNode */ .C) {
|
|
38192
38270
|
sPath = hoEditorFactory.docTree.getNodeLastPath(preNode.previousLeaf());
|
|
38193
38271
|
}
|
|
38194
38272
|
hoEditorFactory.undoService.begin();
|
|
38195
|
-
hoEditorFactory.undoService.add(new
|
|
38273
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_43__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, sPath, ePath, true));
|
|
38196
38274
|
hoEditorFactory.undoService.commit();
|
|
38197
38275
|
return _context.abrupt("return");
|
|
38198
38276
|
case 117:
|
|
38199
38277
|
pNode = node.parentNode;
|
|
38200
38278
|
hoEditorFactory.undoService.begin();
|
|
38201
|
-
hoEditorFactory.undoService.add(new
|
|
38279
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38202
38280
|
hoEditorFactory.undoService.commit();
|
|
38203
|
-
if (pNode && pNode instanceof
|
|
38281
|
+
if (pNode && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re && pNode.childNodes.length === 2) {
|
|
38204
38282
|
this.resetEmptyInputFieldNode(hoEditorFactory, pNode);
|
|
38205
38283
|
}
|
|
38206
38284
|
case 122:
|
|
@@ -38221,7 +38299,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38221
38299
|
contentMarkNode.styleIndex = node.childNodes[0].styleIndex;
|
|
38222
38300
|
var insertPath = hoEditorFactory.docTree.getNodeLastPath(node.childNodes[0]);
|
|
38223
38301
|
hoEditorFactory.undoService.begin();
|
|
38224
|
-
hoEditorFactory.undoService.add(new
|
|
38302
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, insertPath, contentMarkNode));
|
|
38225
38303
|
hoEditorFactory.undoService.commit();
|
|
38226
38304
|
}
|
|
38227
38305
|
/**
|
|
@@ -38233,7 +38311,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38233
38311
|
key: "deleteTextAfterPath",
|
|
38234
38312
|
value: function deleteTextAfterPath(path) {
|
|
38235
38313
|
var _this3 = this;
|
|
38236
|
-
var hoEditorFactory =
|
|
38314
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38237
38315
|
var domRange = hoEditorFactory.docTree.curDomRange;
|
|
38238
38316
|
if (!domRange.isEmpty) {
|
|
38239
38317
|
domRange = domRange.normalize();
|
|
@@ -38246,7 +38324,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38246
38324
|
throw new Error("\u8DEF\u5F84\u9519\u8BEF".concat(path));
|
|
38247
38325
|
}
|
|
38248
38326
|
var tmp;
|
|
38249
|
-
if (np.node instanceof
|
|
38327
|
+
if (np.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R) {
|
|
38250
38328
|
if (np.childIndex < np.node.getLength() - 1) {
|
|
38251
38329
|
var arr = path.split('/');
|
|
38252
38330
|
arr[arr.length - 1] = parseInt(arr[arr.length - 1]) + 1 + '';
|
|
@@ -38257,16 +38335,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38257
38335
|
} else {
|
|
38258
38336
|
tmp = np.node.nextSibling();
|
|
38259
38337
|
}
|
|
38260
|
-
if (tmp instanceof
|
|
38338
|
+
if (tmp instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R) {
|
|
38261
38339
|
return hoEditorFactory.docTree.getNodeFirstPath(tmp);
|
|
38262
38340
|
} else if (tmp) {
|
|
38263
|
-
if (tmp instanceof
|
|
38341
|
+
if (tmp instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_37__/* .ParagraphNode */ .C) {
|
|
38264
38342
|
var nextNode = tmp.nextSibling();
|
|
38265
|
-
if (nextNode instanceof
|
|
38343
|
+
if (nextNode instanceof _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_58__/* .TableNode */ .Fh) {
|
|
38266
38344
|
return;
|
|
38267
38345
|
} else {
|
|
38268
38346
|
hoEditorFactory.undoService.begin();
|
|
38269
|
-
hoEditorFactory.undoService.add(new
|
|
38347
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(_this3._hoEditorFactoryID, tmp, tmp.getNodePath()));
|
|
38270
38348
|
hoEditorFactory.undoService.commit();
|
|
38271
38349
|
return;
|
|
38272
38350
|
}
|
|
@@ -38299,17 +38377,17 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38299
38377
|
}, {
|
|
38300
38378
|
key: "KeyBoardEnterEvent",
|
|
38301
38379
|
value: function KeyBoardEnterEvent(strPath) {
|
|
38302
|
-
var hoEditorFactory =
|
|
38380
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38303
38381
|
//判断当前是否有选中
|
|
38304
38382
|
var arange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
38305
38383
|
if (!arange.isEmpty) {
|
|
38306
|
-
if (arange.npEnd.node instanceof
|
|
38384
|
+
if (arange.npEnd.node instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_61__/* .DateTimeNode */ .Z || arange.npEnd.node instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_62__/* .DownListNode */ .yF) {
|
|
38307
38385
|
var prevNodePath = hoEditorFactory.docTree.getNodeLastPath(arange.npEnd.node.previousLeaf());
|
|
38308
38386
|
if (prevNodePath === arange.startPath) {
|
|
38309
38387
|
var drawNode = arange.npEnd.node.drawNodes[0];
|
|
38310
38388
|
var drawArea = hoEditorFactory.drawPageTree.getMainRootArea(drawNode);
|
|
38311
38389
|
if (drawArea) {
|
|
38312
|
-
var nodeNeedModifyEvent = new
|
|
38390
|
+
var nodeNeedModifyEvent = new _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_92__/* .NodeNeedModifyEvent */ .x(arange.npEnd.node, 'dblclick', drawArea.index);
|
|
38313
38391
|
hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
38314
38392
|
return;
|
|
38315
38393
|
} else {
|
|
@@ -38328,34 +38406,34 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38328
38406
|
//处理结尾,如果是在一个复合结点的结尾,插入节点的Parent与复合节点相同,否慢其Parent为复合节点
|
|
38329
38407
|
var parentnode = np.node.parentNode;
|
|
38330
38408
|
if (parentnode) {
|
|
38331
|
-
if (np.node instanceof
|
|
38409
|
+
if (np.node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__/* .MarkNode */ .j) {
|
|
38332
38410
|
if (parentnode.last() == np.node) {
|
|
38333
38411
|
parentnode = parentnode.parentNode;
|
|
38334
38412
|
}
|
|
38335
|
-
} else if (parentnode instanceof
|
|
38413
|
+
} else if (parentnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) {
|
|
38336
38414
|
if (strPath === "".concat(parentnode.getNodePath(), "/0") && parentnode.table.childNodes.indexOf(parentnode) == 0) {
|
|
38337
|
-
var _paraNode = new
|
|
38415
|
+
var _paraNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_37__/* .ParagraphNode */ .C(this._hoEditorFactoryID, parentnode.table.paragraphNode.rootNodes, parentnode.table.paragraphNode.parentNode, parentnode.table.paragraphNode.paraNo);
|
|
38338
38416
|
_paraNode.styleIndex = parentnode.table.paragraphNode.styleIndex;
|
|
38339
38417
|
_paraNode.node2DrawNode();
|
|
38340
38418
|
hoEditorFactory.undoService.begin();
|
|
38341
|
-
hoEditorFactory.undoService.add(new
|
|
38419
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_86__/* .TableInsertParagraphUndoUnit */ .r(this._hoEditorFactoryID, parentnode.table, _paraNode));
|
|
38342
38420
|
hoEditorFactory.undoService.commit();
|
|
38343
38421
|
return;
|
|
38344
38422
|
}
|
|
38345
38423
|
}
|
|
38346
38424
|
}
|
|
38347
|
-
var paraNode = new
|
|
38425
|
+
var paraNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_37__/* .ParagraphNode */ .C(this._hoEditorFactoryID, np.roots, parentnode, hoEditorFactory.docTree.curParaNo);
|
|
38348
38426
|
this.insertNodeByPath(strPath, paraNode);
|
|
38349
38427
|
}
|
|
38350
38428
|
}
|
|
38351
38429
|
}, {
|
|
38352
38430
|
key: "selectARange",
|
|
38353
38431
|
value: function selectARange(startPath, endPath) {
|
|
38354
|
-
var hoEditorFactory =
|
|
38432
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38355
38433
|
var oldRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
38356
|
-
var newRange = new
|
|
38434
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
38357
38435
|
hoEditorFactory.undoService.begin();
|
|
38358
|
-
hoEditorFactory.undoService.add(new
|
|
38436
|
+
hoEditorFactory.undoService.add(new _undoRedo_SelectionUndoUnit__WEBPACK_IMPORTED_MODULE_39__/* .SelectionUndoUnit */ .t(this._hoEditorFactoryID, oldRange, newRange));
|
|
38359
38437
|
hoEditorFactory.undoService.commit();
|
|
38360
38438
|
}
|
|
38361
38439
|
// /**
|
|
@@ -38387,7 +38465,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38387
38465
|
}, {
|
|
38388
38466
|
key: "fontStyleChange",
|
|
38389
38467
|
value: function fontStyleChange(operateType, curDomRange) {
|
|
38390
|
-
var hoEditorFactory =
|
|
38468
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38391
38469
|
var normalDomRange = curDomRange.normalize();
|
|
38392
38470
|
var astart = normalDomRange.npStart.node;
|
|
38393
38471
|
var aend = normalDomRange.npEnd.node;
|
|
@@ -38395,7 +38473,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38395
38473
|
throw new Error("\u9519\u8BEF\u7684\u9009\u62E9\u8303\u56F4".concat(curDomRange.startPath, " ").concat(curDomRange.endPath));
|
|
38396
38474
|
}
|
|
38397
38475
|
hoEditorFactory.undoService.begin();
|
|
38398
|
-
hoEditorFactory.undoService.add(new
|
|
38476
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, normalDomRange.startPath, normalDomRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .Operate */ .p(operateType)));
|
|
38399
38477
|
hoEditorFactory.undoService.commit();
|
|
38400
38478
|
}
|
|
38401
38479
|
/**
|
|
@@ -38407,7 +38485,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38407
38485
|
}, {
|
|
38408
38486
|
key: "fontStyleChangeBool",
|
|
38409
38487
|
value: function fontStyleChangeBool(operateType, curDomRange, isSelsected) {
|
|
38410
|
-
var hoEditorFactory =
|
|
38488
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38411
38489
|
var normalDomRange = curDomRange.normalize();
|
|
38412
38490
|
var astart = normalDomRange.npStart.node;
|
|
38413
38491
|
var aend = normalDomRange.npEnd.node;
|
|
@@ -38415,7 +38493,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38415
38493
|
throw new Error("\u9519\u8BEF\u7684\u9009\u62E9\u8303\u56F4".concat(curDomRange.startPath, " ").concat(curDomRange.endPath));
|
|
38416
38494
|
}
|
|
38417
38495
|
hoEditorFactory.undoService.begin();
|
|
38418
|
-
hoEditorFactory.undoService.add(new
|
|
38496
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, normalDomRange.startPath, normalDomRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .Operate */ .p(operateType, operateType === 'fontBold' || operateType === 'fontItalic' ? isSelsected : undefined)));
|
|
38419
38497
|
hoEditorFactory.undoService.commit();
|
|
38420
38498
|
}
|
|
38421
38499
|
/**
|
|
@@ -38427,7 +38505,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38427
38505
|
}, {
|
|
38428
38506
|
key: "fontStyleChangeStr",
|
|
38429
38507
|
value: function fontStyleChangeStr(operateType, curDomRange, changeValue) {
|
|
38430
|
-
var hoEditorFactory =
|
|
38508
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38431
38509
|
var normalDomRange = curDomRange.normalize();
|
|
38432
38510
|
var astart = normalDomRange.npStart.node;
|
|
38433
38511
|
var aend = normalDomRange.npEnd.node;
|
|
@@ -38435,7 +38513,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38435
38513
|
throw new Error("\u9519\u8BEF\u7684\u9009\u62E9\u8303\u56F4".concat(curDomRange.startPath, " ").concat(curDomRange.endPath));
|
|
38436
38514
|
}
|
|
38437
38515
|
hoEditorFactory.undoService.begin();
|
|
38438
|
-
hoEditorFactory.undoService.add(new
|
|
38516
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, normalDomRange.startPath, normalDomRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .Operate */ .p(operateType, changeValue)));
|
|
38439
38517
|
hoEditorFactory.undoService.commit();
|
|
38440
38518
|
}
|
|
38441
38519
|
/**
|
|
@@ -38483,7 +38561,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38483
38561
|
if (anode && astart) {
|
|
38484
38562
|
do {
|
|
38485
38563
|
if (anode) {
|
|
38486
|
-
if (anode instanceof
|
|
38564
|
+
if (anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R) {
|
|
38487
38565
|
anode.styleIndex = formatStyleIndex;
|
|
38488
38566
|
}
|
|
38489
38567
|
anode = anode.previousLeaf();
|
|
@@ -38498,7 +38576,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38498
38576
|
}, {
|
|
38499
38577
|
key: "undoOperate",
|
|
38500
38578
|
value: function undoOperate() {
|
|
38501
|
-
|
|
38579
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.undo();
|
|
38502
38580
|
return;
|
|
38503
38581
|
}
|
|
38504
38582
|
/**
|
|
@@ -38507,7 +38585,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38507
38585
|
}, {
|
|
38508
38586
|
key: "redoOperate",
|
|
38509
38587
|
value: function redoOperate() {
|
|
38510
|
-
|
|
38588
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.redo();
|
|
38511
38589
|
return;
|
|
38512
38590
|
}
|
|
38513
38591
|
/**
|
|
@@ -38519,11 +38597,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38519
38597
|
}, {
|
|
38520
38598
|
key: "paraStyleChange",
|
|
38521
38599
|
value: function paraStyleChange(operateType, curDomRange, selectablePara) {
|
|
38522
|
-
var op = new
|
|
38600
|
+
var op = new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .Operate */ .p(operateType, selectablePara);
|
|
38523
38601
|
var currDom = curDomRange;
|
|
38524
|
-
|
|
38525
|
-
|
|
38526
|
-
|
|
38602
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38603
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_LineStyleUndoUnit__WEBPACK_IMPORTED_MODULE_45__/* .LineStyleUndoUnit */ .d(this._hoEditorFactoryID, currDom.startPath, currDom.endPath, op));
|
|
38604
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38527
38605
|
}
|
|
38528
38606
|
}, {
|
|
38529
38607
|
key: "copy",
|
|
@@ -38537,7 +38615,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38537
38615
|
if (anode && astart) {
|
|
38538
38616
|
do {
|
|
38539
38617
|
if (anode) {
|
|
38540
|
-
if (anode instanceof
|
|
38618
|
+
if (anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R) {
|
|
38541
38619
|
selectedText = selectedText + anode.getTextByRange(normalDomRange);
|
|
38542
38620
|
}
|
|
38543
38621
|
anode = anode.previousLeaf();
|
|
@@ -38567,26 +38645,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38567
38645
|
var domRange = curDomRange.normalize();
|
|
38568
38646
|
var startPath = domRange.endPath;
|
|
38569
38647
|
if (operType === 'update') {
|
|
38570
|
-
var np =
|
|
38648
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
38571
38649
|
if (np) {
|
|
38572
38650
|
var node = np.node;
|
|
38573
|
-
if (node instanceof
|
|
38574
|
-
|
|
38575
|
-
|
|
38651
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_52__/* .MedicalExpressionNode */ .H) {
|
|
38652
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38653
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38576
38654
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38577
38655
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
38578
|
-
startPath =
|
|
38656
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
38579
38657
|
}
|
|
38580
38658
|
}
|
|
38581
38659
|
}
|
|
38582
|
-
var parentNode =
|
|
38583
|
-
var menstrualHistoryNode = new
|
|
38660
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
38661
|
+
var menstrualHistoryNode = new _treeNode_MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_46__/* .MenstrualHistoryNode */ .n(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntMedicalExpression, expressionStyle, menseDays, cycleDays, menarcheAge, menoPauseAge);
|
|
38584
38662
|
//插入该表达式节点
|
|
38585
38663
|
if (operType === 'add') {
|
|
38586
|
-
|
|
38664
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38587
38665
|
}
|
|
38588
|
-
|
|
38589
|
-
|
|
38666
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, menstrualHistoryNode));
|
|
38667
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38590
38668
|
}
|
|
38591
38669
|
/**
|
|
38592
38670
|
* 瞳孔图
|
|
@@ -38604,26 +38682,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38604
38682
|
var domRange = curDomRange.normalize();
|
|
38605
38683
|
var startPath = domRange.endPath;
|
|
38606
38684
|
if (operType === 'update') {
|
|
38607
|
-
var np =
|
|
38685
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
38608
38686
|
if (np) {
|
|
38609
38687
|
var node = np.node;
|
|
38610
|
-
if (node instanceof
|
|
38611
|
-
|
|
38612
|
-
|
|
38688
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_52__/* .MedicalExpressionNode */ .H) {
|
|
38689
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38690
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38613
38691
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38614
38692
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
38615
|
-
startPath =
|
|
38693
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
38616
38694
|
}
|
|
38617
38695
|
}
|
|
38618
38696
|
}
|
|
38619
|
-
var parentNode =
|
|
38620
|
-
var pupilMapNode = new
|
|
38697
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
38698
|
+
var pupilMapNode = new _treeNode_PupilMapNode__WEBPACK_IMPORTED_MODULE_47__/* .PupilMapNode */ .v(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntMedicalExpression, value1, value2, value3, value4, value5, value6, value7);
|
|
38621
38699
|
//插入该表达式节点
|
|
38622
38700
|
if (operType === 'add') {
|
|
38623
|
-
|
|
38701
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38624
38702
|
}
|
|
38625
|
-
|
|
38626
|
-
|
|
38703
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, pupilMapNode));
|
|
38704
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38627
38705
|
}
|
|
38628
38706
|
/**
|
|
38629
38707
|
* 光定位图
|
|
@@ -38643,26 +38721,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38643
38721
|
var domRange = curDomRange.normalize();
|
|
38644
38722
|
var startPath = domRange.endPath;
|
|
38645
38723
|
if (operType === 'update') {
|
|
38646
|
-
var np =
|
|
38724
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
38647
38725
|
if (np) {
|
|
38648
38726
|
var node = np.node;
|
|
38649
|
-
if (node instanceof
|
|
38650
|
-
|
|
38651
|
-
|
|
38727
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_52__/* .MedicalExpressionNode */ .H) {
|
|
38728
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38729
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38652
38730
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38653
38731
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
38654
|
-
startPath =
|
|
38732
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
38655
38733
|
}
|
|
38656
38734
|
}
|
|
38657
38735
|
}
|
|
38658
|
-
var parentNode =
|
|
38659
|
-
var lightLocationMapNode = new
|
|
38736
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
38737
|
+
var lightLocationMapNode = new _treeNode_LightLocationMapNode__WEBPACK_IMPORTED_MODULE_48__/* .LightLocationMapNode */ .D(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntMedicalExpression, value1, value2, value3, value4, value5, value6, value7, value8, value9);
|
|
38660
38738
|
//插入该表达式节点
|
|
38661
38739
|
if (operType === 'add') {
|
|
38662
|
-
|
|
38740
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38663
38741
|
}
|
|
38664
|
-
|
|
38665
|
-
|
|
38742
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, lightLocationMapNode));
|
|
38743
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38666
38744
|
}
|
|
38667
38745
|
/**
|
|
38668
38746
|
* 胎心图
|
|
@@ -38679,26 +38757,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38679
38757
|
var domRange = curDomRange.normalize();
|
|
38680
38758
|
var startPath = domRange.endPath;
|
|
38681
38759
|
if (operType === 'update') {
|
|
38682
|
-
var np =
|
|
38760
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
38683
38761
|
if (np) {
|
|
38684
38762
|
var node = np.node;
|
|
38685
|
-
if (node instanceof
|
|
38686
|
-
|
|
38687
|
-
|
|
38763
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_52__/* .MedicalExpressionNode */ .H) {
|
|
38764
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38765
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38688
38766
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38689
38767
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
38690
|
-
startPath =
|
|
38768
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
38691
38769
|
}
|
|
38692
38770
|
}
|
|
38693
38771
|
}
|
|
38694
|
-
var parentNode =
|
|
38695
|
-
var fetalHeartMapNode = new
|
|
38772
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
38773
|
+
var fetalHeartMapNode = new _treeNode_FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_49__/* .FetalHeartMapNode */ .t(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntMedicalExpression, value1, value2, value3, value4, value5, value6);
|
|
38696
38774
|
//插入该表达式节点
|
|
38697
38775
|
if (operType === 'add') {
|
|
38698
|
-
|
|
38776
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38699
38777
|
}
|
|
38700
|
-
|
|
38701
|
-
|
|
38778
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, fetalHeartMapNode));
|
|
38779
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38702
38780
|
}
|
|
38703
38781
|
/**
|
|
38704
38782
|
* 恒牙牙位图
|
|
@@ -38713,26 +38791,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38713
38791
|
var domRange = curDomRange.normalize();
|
|
38714
38792
|
var startPath = domRange.endPath;
|
|
38715
38793
|
if (operType === 'update') {
|
|
38716
|
-
var np =
|
|
38794
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
38717
38795
|
if (np) {
|
|
38718
38796
|
var node = np.node;
|
|
38719
|
-
if (node instanceof
|
|
38720
|
-
|
|
38721
|
-
|
|
38797
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_52__/* .MedicalExpressionNode */ .H) {
|
|
38798
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38799
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38722
38800
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38723
38801
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
38724
|
-
startPath =
|
|
38802
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
38725
38803
|
}
|
|
38726
38804
|
}
|
|
38727
38805
|
}
|
|
38728
|
-
var parentNode =
|
|
38729
|
-
var permanentTeethMapNode = new
|
|
38806
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
38807
|
+
var permanentTeethMapNode = new _treeNode_PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_50__/* .PermanentTeethMapNode */ .f(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntMedicalExpression, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected, remark);
|
|
38730
38808
|
//插入该表达式节点
|
|
38731
38809
|
if (operType === 'add') {
|
|
38732
|
-
|
|
38810
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38733
38811
|
}
|
|
38734
|
-
|
|
38735
|
-
|
|
38812
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, permanentTeethMapNode));
|
|
38813
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38736
38814
|
}
|
|
38737
38815
|
/**
|
|
38738
38816
|
* 乳牙牙位图
|
|
@@ -38746,14 +38824,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38746
38824
|
value: function insertPrimaryTeethMap(operType, curDomRange, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected) {
|
|
38747
38825
|
var domRange = curDomRange.normalize();
|
|
38748
38826
|
var startPath = domRange.endPath;
|
|
38749
|
-
var hoEditorFactory =
|
|
38827
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38750
38828
|
if (operType === 'update') {
|
|
38751
38829
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
38752
38830
|
if (np) {
|
|
38753
38831
|
var node = np.node;
|
|
38754
|
-
if (node instanceof
|
|
38832
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_52__/* .MedicalExpressionNode */ .H) {
|
|
38755
38833
|
hoEditorFactory.undoService.begin();
|
|
38756
|
-
hoEditorFactory.undoService.add(new
|
|
38834
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38757
38835
|
//hoEditorFactory.undoService.commit();
|
|
38758
38836
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
38759
38837
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
@@ -38761,12 +38839,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38761
38839
|
}
|
|
38762
38840
|
}
|
|
38763
38841
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
38764
|
-
var primaryTeethMapNode = new
|
|
38842
|
+
var primaryTeethMapNode = new _treeNode_PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_51__/* .PrimaryTeethMapNode */ .x(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntMedicalExpression, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected);
|
|
38765
38843
|
//插入该表达式节点
|
|
38766
38844
|
if (operType === 'add') {
|
|
38767
38845
|
hoEditorFactory.undoService.begin();
|
|
38768
38846
|
}
|
|
38769
|
-
hoEditorFactory.undoService.add(new
|
|
38847
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, primaryTeethMapNode));
|
|
38770
38848
|
hoEditorFactory.undoService.commit();
|
|
38771
38849
|
}
|
|
38772
38850
|
/**
|
|
@@ -38779,17 +38857,17 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38779
38857
|
value: function insertTextInputField(operType, curDomRange, valuesObject, updateProps) {
|
|
38780
38858
|
var domRange = curDomRange.normalize();
|
|
38781
38859
|
var startPath = domRange.endPath;
|
|
38782
|
-
var hoEditorFactory =
|
|
38860
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38783
38861
|
var childNodes = [];
|
|
38784
38862
|
if (operType === 'update') {
|
|
38785
38863
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
38786
38864
|
if (np && np.node) {
|
|
38787
38865
|
var node;
|
|
38788
|
-
if (np.node instanceof
|
|
38866
|
+
if (np.node instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re) {
|
|
38789
38867
|
node = np.node;
|
|
38790
38868
|
childNodes = node.childNodes;
|
|
38791
38869
|
}
|
|
38792
|
-
if (np.node.parentNode instanceof
|
|
38870
|
+
if (np.node.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re) {
|
|
38793
38871
|
node = np.node.parentNode;
|
|
38794
38872
|
childNodes = np.node.parentNode.childNodes;
|
|
38795
38873
|
}
|
|
@@ -38797,13 +38875,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38797
38875
|
//const sPath = hoEditorFactory.docTree.getNodeFirstPath(node);
|
|
38798
38876
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
38799
38877
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
38800
|
-
var changeEvent = new
|
|
38878
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_82__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_34__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
38801
38879
|
changeEvent.oldEndPath = ePath;
|
|
38802
|
-
changeEvent.oldDrawLines = new
|
|
38880
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_83__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true, true);
|
|
38803
38881
|
node.setValuesObject(valuesObject);
|
|
38804
38882
|
// const values = eval("(" + valuesObject + ")");
|
|
38805
38883
|
var values = valuesObject;
|
|
38806
|
-
if (node.childNodes.length == 3 && node.childNodes[1] instanceof
|
|
38884
|
+
if (node.childNodes.length == 3 && node.childNodes[1] instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__/* .MarkNode */ .j) {
|
|
38807
38885
|
if (node.childNodes2[1].text !== node.name) {
|
|
38808
38886
|
var text = node.childNodes2[1].text;
|
|
38809
38887
|
node.childNodes2[1].clearDrawNodes(0, text.length - 1);
|
|
@@ -38817,15 +38895,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38817
38895
|
var _text = values['text'];
|
|
38818
38896
|
var textArr = _text.split('\n');
|
|
38819
38897
|
if (textArr.length == 1) {
|
|
38820
|
-
var textNode = new
|
|
38898
|
+
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R(this._hoEditorFactoryID, node.rootNodes, node, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntText, _text, hoEditorFactory.docTree.curStyleIndex);
|
|
38821
38899
|
node.childNodes.splice(1, 0, textNode);
|
|
38822
38900
|
} else {
|
|
38823
38901
|
for (var i = 0; i < textArr.length; i++) {
|
|
38824
38902
|
var atext = textArr[i];
|
|
38825
|
-
var atnode = new
|
|
38903
|
+
var atnode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R(this._hoEditorFactoryID, node.rootNodes, node, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntText, atext, hoEditorFactory.docTree.curStyleIndex);
|
|
38826
38904
|
node.childNodes.splice(node.childNodes.length - 1, 0, atnode);
|
|
38827
38905
|
if (i < textArr.length - 1) {
|
|
38828
|
-
var apnode = new
|
|
38906
|
+
var apnode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_37__/* .ParagraphNode */ .C(this._hoEditorFactoryID, node.rootNodes, node, hoEditorFactory.docTree.curParaNo);
|
|
38829
38907
|
node.childNodes.splice(node.childNodes.length - 1, 0, apnode);
|
|
38830
38908
|
}
|
|
38831
38909
|
}
|
|
@@ -38854,11 +38932,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38854
38932
|
if (pnode && pnode.parentNode) {
|
|
38855
38933
|
pnode = pnode.parentNode;
|
|
38856
38934
|
}
|
|
38857
|
-
if (pnode instanceof
|
|
38935
|
+
if (pnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) {
|
|
38858
38936
|
break;
|
|
38859
38937
|
}
|
|
38860
38938
|
} while ((_pnode = pnode) !== null && _pnode !== void 0 && _pnode.parentNode);
|
|
38861
|
-
if (pnode instanceof
|
|
38939
|
+
if (pnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) {
|
|
38862
38940
|
if (Number(values['inputFieldType']) === 1) {
|
|
38863
38941
|
pnode.drawCell.needUpdate = true;
|
|
38864
38942
|
pnode.table.update();
|
|
@@ -38872,6 +38950,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38872
38950
|
}
|
|
38873
38951
|
var record = hoEditorFactory.docTree.elementChangeRecords.get(node.id + '|' + node.dataId);
|
|
38874
38952
|
if (!record || record.indexOf('add') < 0) {
|
|
38953
|
+
//hoEditorFactory.docTree.elementChangeRecords.set(node.id + '|' + node.dataId, ['update', updateProps]);
|
|
38875
38954
|
var changeProps = {};
|
|
38876
38955
|
if (record && record[0] == "update" && record[1]) {
|
|
38877
38956
|
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]);
|
|
@@ -38885,7 +38964,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38885
38964
|
}
|
|
38886
38965
|
}
|
|
38887
38966
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
38888
|
-
var textInputFieldNode = new
|
|
38967
|
+
var textInputFieldNode = new _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntField, valuesObject);
|
|
38889
38968
|
// if (operType === "update") {
|
|
38890
38969
|
// const values = eval("(" + valuesObject + ")");
|
|
38891
38970
|
// if (values["inputFieldType"] === 0) {
|
|
@@ -38900,12 +38979,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38900
38979
|
// }
|
|
38901
38980
|
//插入该表达式节点
|
|
38902
38981
|
hoEditorFactory.undoService.begin();
|
|
38903
|
-
hoEditorFactory.undoService.add(new
|
|
38982
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, textInputFieldNode));
|
|
38904
38983
|
hoEditorFactory.undoService.commit();
|
|
38905
38984
|
var afterPath = hoEditorFactory.docTree.getNodeLastPath(textInputFieldNode);
|
|
38906
38985
|
//hoEditorFactory.drawTree.moveCaretToPath(afterPath);
|
|
38907
38986
|
hoEditorFactory.docTree.curDomRange.setSamePath(afterPath);
|
|
38908
|
-
if (parentNode instanceof
|
|
38987
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re) {
|
|
38909
38988
|
hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id + '|' + textInputFieldNode.dataId, ['add']);
|
|
38910
38989
|
} else {
|
|
38911
38990
|
hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id + '|' + textInputFieldNode.dataId, ['add0']);
|
|
@@ -38924,12 +39003,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38924
39003
|
value: function insertImage(curDomRange, imagePath, width, height, options) {
|
|
38925
39004
|
var domRange = curDomRange.normalize();
|
|
38926
39005
|
var startPath = domRange.startPath;
|
|
38927
|
-
var hoEditorFactory =
|
|
39006
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38928
39007
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
38929
|
-
var imageNode = new
|
|
39008
|
+
var imageNode = new _treeNode_ImageNode__WEBPACK_IMPORTED_MODULE_55__/* .ImageNode */ .H(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntImage, hoEditorFactory.gernerateCode.generateID('IMG'), imagePath, width, height, options);
|
|
38930
39009
|
//插入该表达式节点
|
|
38931
39010
|
hoEditorFactory.undoService.begin();
|
|
38932
|
-
hoEditorFactory.undoService.add(new
|
|
39011
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, imageNode));
|
|
38933
39012
|
hoEditorFactory.undoService.commit();
|
|
38934
39013
|
}
|
|
38935
39014
|
/**
|
|
@@ -38950,21 +39029,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38950
39029
|
innerIdentifier) {
|
|
38951
39030
|
var domRange = curDomRange.normalize();
|
|
38952
39031
|
var startPath = domRange.endPath;
|
|
38953
|
-
var hoEditorFactory =
|
|
39032
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38954
39033
|
if (operType === 'update') {
|
|
38955
39034
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
38956
39035
|
if (np) {
|
|
38957
39036
|
var node = np.node;
|
|
38958
|
-
if (node instanceof
|
|
39037
|
+
if (node instanceof _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_56__/* .BarcodeNode */ .T) {
|
|
38959
39038
|
hoEditorFactory.undoService.begin();
|
|
38960
|
-
hoEditorFactory.undoService.add(new
|
|
39039
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38961
39040
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
38962
39041
|
}
|
|
38963
39042
|
}
|
|
38964
39043
|
}
|
|
38965
39044
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
38966
39045
|
var rootPath = hoEditorFactory.docTree.getRootPathByNodes(domRange.npStart.roots);
|
|
38967
|
-
var barCodeNode = new
|
|
39046
|
+
var barCodeNode = new _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_56__/* .BarcodeNode */ .T(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntImage, id,
|
|
38968
39047
|
//name,
|
|
38969
39048
|
innerIdentifier, textContent, isDisplayText, imagePath, width, height
|
|
38970
39049
|
//,bandDataSource
|
|
@@ -38973,7 +39052,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38973
39052
|
if (operType === 'add') {
|
|
38974
39053
|
hoEditorFactory.undoService.begin();
|
|
38975
39054
|
}
|
|
38976
|
-
hoEditorFactory.undoService.add(new
|
|
39055
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, barCodeNode));
|
|
38977
39056
|
hoEditorFactory.undoService.commit();
|
|
38978
39057
|
}
|
|
38979
39058
|
/**
|
|
@@ -38996,14 +39075,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38996
39075
|
value: function insertQrcode(operType, curDomRange, id, textContent, type, correctLevel, width, height, name, innerIdentifier, isFillBack) {
|
|
38997
39076
|
var domRange = curDomRange.normalize();
|
|
38998
39077
|
var startPath = domRange.endPath;
|
|
38999
|
-
var hoEditorFactory =
|
|
39078
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39000
39079
|
if (operType === 'update') {
|
|
39001
39080
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
39002
39081
|
if (np) {
|
|
39003
39082
|
var node = np.node;
|
|
39004
|
-
if (node instanceof
|
|
39083
|
+
if (node instanceof _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_57__/* .QrcodeNode */ .d) {
|
|
39005
39084
|
hoEditorFactory.undoService.begin();
|
|
39006
|
-
hoEditorFactory.undoService.add(new
|
|
39085
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
39007
39086
|
//hoEditorFactory.undoService.commit();
|
|
39008
39087
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
39009
39088
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
@@ -39011,52 +39090,87 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39011
39090
|
}
|
|
39012
39091
|
}
|
|
39013
39092
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
39014
|
-
var qrcodeNode = new
|
|
39093
|
+
var qrcodeNode = new _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_57__/* .QrcodeNode */ .d(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntImage, id, name, innerIdentifier, textContent, type, correctLevel, width, height, isFillBack);
|
|
39015
39094
|
//插入该表达式节点
|
|
39016
39095
|
if (operType === 'add') {
|
|
39017
39096
|
hoEditorFactory.undoService.begin();
|
|
39018
39097
|
}
|
|
39019
|
-
hoEditorFactory.undoService.add(new
|
|
39098
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, qrcodeNode));
|
|
39020
39099
|
hoEditorFactory.undoService.commit();
|
|
39021
39100
|
}
|
|
39022
39101
|
}, {
|
|
39023
39102
|
key: "updateCodeContent",
|
|
39024
39103
|
value: function updateCodeContent(node, content) {
|
|
39025
|
-
var hoEditorFactory =
|
|
39104
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39026
39105
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
39027
39106
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
39028
|
-
var changeEvent = new
|
|
39107
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_82__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_34__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
39029
39108
|
changeEvent.oldEndPath = ePath;
|
|
39030
39109
|
changeEvent.afterChangePath = ePath;
|
|
39031
|
-
changeEvent.oldDrawLines = new
|
|
39110
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_83__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true, true);
|
|
39032
39111
|
node.textContent = content;
|
|
39033
39112
|
hoEditorFactory.docTree.change(changeEvent);
|
|
39034
39113
|
}
|
|
39035
39114
|
}, {
|
|
39036
39115
|
key: "insertTable",
|
|
39037
|
-
value: function insertTable(arange, row, col
|
|
39038
|
-
var hoEditorFactory =
|
|
39116
|
+
value: function insertTable(arange, row, col) {
|
|
39117
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39039
39118
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
39040
39119
|
var parentNode = hoEditorFactory.docTree.getParentNode(arange.startPath);
|
|
39041
|
-
if (parentNode instanceof
|
|
39042
|
-
|
|
39120
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re) {
|
|
39121
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('不允许在文本域内插入表格');
|
|
39043
39122
|
return;
|
|
39044
39123
|
}
|
|
39045
|
-
if (parentNode instanceof
|
|
39046
|
-
|
|
39124
|
+
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) {
|
|
39125
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('不允许在表格内再插入表格');
|
|
39047
39126
|
return;
|
|
39048
39127
|
}
|
|
39049
|
-
|
|
39050
|
-
|
|
39128
|
+
// const nextParaNode = new ParagraphNode(
|
|
39129
|
+
// this._hoEditorFactoryID,
|
|
39130
|
+
// np.roots,
|
|
39131
|
+
// parentNode,
|
|
39132
|
+
// hoEditorFactory.docTree.curParaNo
|
|
39133
|
+
// );
|
|
39134
|
+
// hoEditorFactory.docTree.insertNodeAfterPath(
|
|
39135
|
+
// arange.startPath,
|
|
39136
|
+
// nextParaNode
|
|
39137
|
+
// );
|
|
39138
|
+
// let tablePath = arange.startPath;
|
|
39139
|
+
// let paraNode;
|
|
39140
|
+
// if (np.node instanceof ParagraphNode) {
|
|
39141
|
+
// paraNode = np.node as ParagraphNode;
|
|
39142
|
+
// } else {
|
|
39143
|
+
// paraNode = new ParagraphNode(
|
|
39144
|
+
// this._hoEditorFactoryID,
|
|
39145
|
+
// np.roots,
|
|
39146
|
+
// parentNode,
|
|
39147
|
+
// hoEditorFactory.docTree.curParaNo
|
|
39148
|
+
// );
|
|
39149
|
+
// tablePath = hoEditorFactory.docTree.insertNodeAfterPath(
|
|
39150
|
+
// arange.startPath,
|
|
39151
|
+
// paraNode
|
|
39152
|
+
// );
|
|
39153
|
+
// }
|
|
39154
|
+
var tableProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_65__/* .TableProperty */ .vE('');
|
|
39155
|
+
var tableNode = new _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_58__/* .TableNode */ .Fh(this._hoEditorFactoryID, np.roots, parentNode, row, col, tableProperty);
|
|
39051
39156
|
hoEditorFactory.undoService.begin();
|
|
39052
|
-
hoEditorFactory.undoService.add(new
|
|
39157
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertUndoUnit__WEBPACK_IMPORTED_MODULE_68__/* .TableInsertUndoUnit */ .m(this._hoEditorFactoryID, arange.startPath, tableNode));
|
|
39053
39158
|
hoEditorFactory.undoService.commit();
|
|
39159
|
+
// hoEditorFactory.docTree.insertNodeAfterPath(tablePath, tableNode);
|
|
39160
|
+
// hoEditorFactory.docTree.curDomRange.endPath = nextParaNode.getNodePath();
|
|
39161
|
+
// const changeEvent = new NodeChangeEvent(
|
|
39162
|
+
// this._hoEditorFactoryID,
|
|
39163
|
+
// DocAction.daInsert,
|
|
39164
|
+
// arange.startPath,
|
|
39165
|
+
// hoEditorFactory.docTree.curDomRange.endPath
|
|
39166
|
+
// );
|
|
39167
|
+
// hoEditorFactory.docTree.change(changeEvent);
|
|
39054
39168
|
}
|
|
39055
39169
|
}, {
|
|
39056
39170
|
key: "insertTableRowAbove",
|
|
39057
39171
|
value: function insertTableRowAbove(arange, count) {
|
|
39058
39172
|
var _this4 = this;
|
|
39059
|
-
var hoEditorFactory =
|
|
39173
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39060
39174
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
39061
39175
|
if (np && np.node) {
|
|
39062
39176
|
// const index = np.childIndex;
|
|
@@ -39064,20 +39178,20 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39064
39178
|
// }else{
|
|
39065
39179
|
// }
|
|
39066
39180
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
39067
|
-
if (cell && cell instanceof
|
|
39068
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
39181
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) {
|
|
39182
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddRow) {
|
|
39069
39183
|
var _cell$table$getCellIn = cell.table.getCellInfos(cell),
|
|
39070
39184
|
_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),
|
|
39071
39185
|
r = _cell$table$getCellIn2[0],
|
|
39072
39186
|
c = _cell$table$getCellIn2[1];
|
|
39073
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
39187
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psEdit && r > 0) {
|
|
39074
39188
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r - 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
39075
|
-
|
|
39189
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
39076
39190
|
return;
|
|
39077
39191
|
}
|
|
39078
39192
|
}
|
|
39079
39193
|
hoEditorFactory.undoService.begin();
|
|
39080
|
-
hoEditorFactory.undoService.add(new
|
|
39194
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_70__/* .TableInsertRowUndoUnit */ .I(this._hoEditorFactoryID, cell.table, r, r, count));
|
|
39081
39195
|
hoEditorFactory.undoService.commit();
|
|
39082
39196
|
var newLineWithCellContent = cell.table.rowInfos[r + count].rowProperty.newLineWithCellContent;
|
|
39083
39197
|
var withFormula = cell.table.rowInfos[r].rowProperty.withFormula;
|
|
@@ -39089,26 +39203,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39089
39203
|
if (tCell && sCell && sCell.childNodes.length > 1) {
|
|
39090
39204
|
var spath = sCell.childNodes[0].getNodePath();
|
|
39091
39205
|
var epath = hoEditorFactory.docTree.getNodeLastPath(sCell.childNodes[sCell.childNodes.length - 1]);
|
|
39092
|
-
var domRange = new
|
|
39206
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
39093
39207
|
var jsonData = hoEditorFactory.structureNode.Copy(domRange, null, false);
|
|
39094
39208
|
hoEditorFactory.docTree.curDomRange.setSamePath(tCell.childNodes[0].getNodePath());
|
|
39095
|
-
var nodes = hoEditorFactory.structureNode.Parse(
|
|
39209
|
+
var nodes = hoEditorFactory.structureNode.Parse(_utils_StructureNode__WEBPACK_IMPORTED_MODULE_97__/* .ClipboardType */ .Y6.ctJSON, jsonData);
|
|
39096
39210
|
for (var n = 0; n < nodes.length; n++) {
|
|
39097
39211
|
var anode = nodes[n];
|
|
39098
|
-
if (anode instanceof
|
|
39212
|
+
if (anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R) {
|
|
39099
39213
|
nodes.splice(n, 1);
|
|
39100
|
-
} else if (anode instanceof
|
|
39214
|
+
} else if (anode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re && !anode.isEmpty()) {
|
|
39101
39215
|
anode.childNodes.splice(1, anode.childNodes.length - 2);
|
|
39102
|
-
var markNode = new
|
|
39216
|
+
var markNode = new _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__/* .MarkNode */ .j(this._hoEditorFactoryID, anode.rootNodes, anode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntMark, anode.name, anode.childNodes[0].styleIndex, 1);
|
|
39103
39217
|
anode.childNodes.splice(1, 0, markNode);
|
|
39104
|
-
} else if (anode instanceof
|
|
39218
|
+
} else if (anode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_62__/* .DownListNode */ .yF && anode.keyValue !== '') {
|
|
39105
39219
|
anode.text = anode.name;
|
|
39106
39220
|
anode.keyValue = '';
|
|
39107
39221
|
anode.node2DrawNode();
|
|
39108
|
-
} else if (anode instanceof
|
|
39222
|
+
} else if (anode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_61__/* .DateTimeNode */ .Z && anode.text !== anode.labelText) {
|
|
39109
39223
|
anode.text = anode.labelText;
|
|
39110
39224
|
anode.node2DrawNode();
|
|
39111
|
-
} else if (anode instanceof
|
|
39225
|
+
} else if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N && anode.number !== 0) {
|
|
39112
39226
|
anode.number = 0;
|
|
39113
39227
|
anode.type = 0;
|
|
39114
39228
|
anode.signor = '';
|
|
@@ -39119,7 +39233,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39119
39233
|
anode.fingerPrintSrc = '';
|
|
39120
39234
|
anode.fingerPosition = 0;
|
|
39121
39235
|
anode.imgSrc = '';
|
|
39122
|
-
} else if (withFormula && anode instanceof
|
|
39236
|
+
} else if (withFormula && anode instanceof _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_78__/* .TableFormula */ .N) {
|
|
39123
39237
|
anode.formulaStr = anode.formulaStr.replaceAll(/\d/g, (i + 1).toString());
|
|
39124
39238
|
anode.node2DrawNode();
|
|
39125
39239
|
var oldFormula = sCell.childNodes[n + 1];
|
|
@@ -39136,7 +39250,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39136
39250
|
var mark = false;
|
|
39137
39251
|
var index = hoEditorFactory.vueController.getTableTitleMaxRowIndex(cell.table);
|
|
39138
39252
|
var newTextNode = function newTextNode(text, c) {
|
|
39139
|
-
var textNode = new
|
|
39253
|
+
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R(_this4._hoEditorFactoryID, cell.rootNodes, cell, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntText, text, cell.childNodes[0].styleIndex);
|
|
39140
39254
|
var fillCell = cell.table.rows[index + 1][c];
|
|
39141
39255
|
if (fillCell) {
|
|
39142
39256
|
var path = fillCell.childNodes[0].getNodePath();
|
|
@@ -39148,11 +39262,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39148
39262
|
var colProperty = cell.table.colInfos[k].colProperty;
|
|
39149
39263
|
if (colProperty.dateTimeProperty && colProperty.dateTimeProperty.isAutoInputCurDate) {
|
|
39150
39264
|
var date = Date.now();
|
|
39151
|
-
var text = (0,
|
|
39265
|
+
var text = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_99__/* .dateFormat */ .vc)(date, colProperty.dateTimeProperty.inputStyle);
|
|
39152
39266
|
newTextNode(text, k);
|
|
39153
39267
|
mark = true;
|
|
39154
39268
|
}
|
|
39155
|
-
if (colProperty.editorProperty ===
|
|
39269
|
+
if (colProperty.editorProperty === _TableProperty__WEBPACK_IMPORTED_MODULE_65__/* .EditorProperty */ .YS.OrderNumber) {
|
|
39156
39270
|
var acell = cell.table.rows[index + 2][k];
|
|
39157
39271
|
if (acell) {
|
|
39158
39272
|
var ctext = acell.getCellText();
|
|
@@ -39191,8 +39305,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39191
39305
|
if (sCellNode && eCellNode) {
|
|
39192
39306
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
39193
39307
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
39194
|
-
var newRange = new
|
|
39195
|
-
var cgEvent = new
|
|
39308
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
39309
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_42__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
39196
39310
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
39197
39311
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
39198
39312
|
}
|
|
@@ -39214,7 +39328,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39214
39328
|
// );
|
|
39215
39329
|
// }
|
|
39216
39330
|
} else {
|
|
39217
|
-
|
|
39331
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('表格已设置不允许新增行');
|
|
39218
39332
|
return;
|
|
39219
39333
|
}
|
|
39220
39334
|
}
|
|
@@ -39223,24 +39337,24 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39223
39337
|
}, {
|
|
39224
39338
|
key: "insertTableRowBelow",
|
|
39225
39339
|
value: function insertTableRowBelow(arange, count) {
|
|
39226
|
-
var hoEditorFactory =
|
|
39340
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39227
39341
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.endPath);
|
|
39228
39342
|
if (np && np.node) {
|
|
39229
39343
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
39230
|
-
if (cell && cell instanceof
|
|
39231
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
39344
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) {
|
|
39345
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddRow) {
|
|
39232
39346
|
var _cell$table$getCellIn3 = cell.table.getCellInfos(cell),
|
|
39233
39347
|
_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),
|
|
39234
39348
|
r = _cell$table$getCellIn4[0],
|
|
39235
39349
|
c = _cell$table$getCellIn4[1];
|
|
39236
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
39350
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psEdit) {
|
|
39237
39351
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r + 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
39238
|
-
|
|
39352
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
39239
39353
|
return;
|
|
39240
39354
|
}
|
|
39241
39355
|
}
|
|
39242
39356
|
hoEditorFactory.undoService.begin();
|
|
39243
|
-
hoEditorFactory.undoService.add(new
|
|
39357
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_70__/* .TableInsertRowUndoUnit */ .I(this._hoEditorFactoryID, cell.table, r + 1, r, count));
|
|
39244
39358
|
hoEditorFactory.undoService.commit();
|
|
39245
39359
|
var newLineWithCellContent = cell.table.rowInfos[r].rowProperty.newLineWithCellContent;
|
|
39246
39360
|
var withFormula = cell.table.rowInfos[r].rowProperty.withFormula;
|
|
@@ -39252,26 +39366,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39252
39366
|
if (tCell && sCell && sCell.childNodes.length > 1) {
|
|
39253
39367
|
var spath = sCell.childNodes[0].getNodePath();
|
|
39254
39368
|
var epath = hoEditorFactory.docTree.getNodeLastPath(sCell.childNodes[sCell.childNodes.length - 1]);
|
|
39255
|
-
var domRange = new
|
|
39369
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
39256
39370
|
var jsonData = hoEditorFactory.structureNode.Copy(domRange, null, false);
|
|
39257
|
-
var nodes = hoEditorFactory.structureNode.Parse(
|
|
39371
|
+
var nodes = hoEditorFactory.structureNode.Parse(_utils_StructureNode__WEBPACK_IMPORTED_MODULE_97__/* .ClipboardType */ .Y6.ctJSON, jsonData);
|
|
39258
39372
|
hoEditorFactory.docTree.curDomRange.setSamePath(tCell.childNodes[0].getNodePath());
|
|
39259
39373
|
for (var n = 0; n < nodes.length; n++) {
|
|
39260
39374
|
var anode = nodes[n];
|
|
39261
|
-
if (anode instanceof
|
|
39375
|
+
if (anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R) {
|
|
39262
39376
|
nodes.splice(n, 1);
|
|
39263
|
-
} else if (anode instanceof
|
|
39377
|
+
} else if (anode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re && !anode.isEmpty()) {
|
|
39264
39378
|
anode.childNodes.splice(1, anode.childNodes.length - 2);
|
|
39265
|
-
var markNode = new
|
|
39379
|
+
var markNode = new _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__/* .MarkNode */ .j(this._hoEditorFactoryID, anode.rootNodes, anode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntMark, anode.name, anode.childNodes[0].styleIndex, 1);
|
|
39266
39380
|
anode.childNodes.splice(1, 0, markNode);
|
|
39267
|
-
} else if (anode instanceof
|
|
39381
|
+
} else if (anode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_62__/* .DownListNode */ .yF && anode.keyValue !== '') {
|
|
39268
39382
|
anode.text = anode.name;
|
|
39269
39383
|
anode.keyValue = '';
|
|
39270
39384
|
anode.node2DrawNode();
|
|
39271
|
-
} else if (anode instanceof
|
|
39385
|
+
} else if (anode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_61__/* .DateTimeNode */ .Z && anode.text !== anode.labelText) {
|
|
39272
39386
|
anode.text = anode.labelText;
|
|
39273
39387
|
anode.node2DrawNode();
|
|
39274
|
-
} else if (anode instanceof
|
|
39388
|
+
} else if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N && anode.number !== 0) {
|
|
39275
39389
|
anode.number = 0;
|
|
39276
39390
|
anode.type = 0;
|
|
39277
39391
|
anode.signor = '';
|
|
@@ -39282,7 +39396,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39282
39396
|
anode.fingerPrintSrc = '';
|
|
39283
39397
|
anode.fingerPosition = 0;
|
|
39284
39398
|
anode.imgSrc = '';
|
|
39285
|
-
} else if (withFormula && anode instanceof
|
|
39399
|
+
} else if (withFormula && anode instanceof _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_78__/* .TableFormula */ .N) {
|
|
39286
39400
|
anode.formulaStr = anode.formulaStr.replaceAll(/\d/g, (i + 1).toString());
|
|
39287
39401
|
anode.node2DrawNode();
|
|
39288
39402
|
}
|
|
@@ -39313,8 +39427,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39313
39427
|
if (sCellNode && eCellNode) {
|
|
39314
39428
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
39315
39429
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
39316
|
-
var newRange = new
|
|
39317
|
-
var cgEvent = new
|
|
39430
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
39431
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_42__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
39318
39432
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
39319
39433
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
39320
39434
|
}
|
|
@@ -39336,7 +39450,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39336
39450
|
// );
|
|
39337
39451
|
// }
|
|
39338
39452
|
} else {
|
|
39339
|
-
|
|
39453
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('表格已设置不允许新增行');
|
|
39340
39454
|
return;
|
|
39341
39455
|
}
|
|
39342
39456
|
}
|
|
@@ -39345,19 +39459,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39345
39459
|
}, {
|
|
39346
39460
|
key: "insertTableColLeft",
|
|
39347
39461
|
value: function insertTableColLeft(arange, count) {
|
|
39348
|
-
var hoEditorFactory =
|
|
39462
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39349
39463
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.endPath);
|
|
39350
39464
|
if (np && np.node) {
|
|
39351
39465
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
39352
|
-
if (cell && cell instanceof
|
|
39466
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) {
|
|
39353
39467
|
var status = hoEditorFactory.drawTree.paintStatus;
|
|
39354
|
-
if (status ==
|
|
39468
|
+
if (status == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddCol) {
|
|
39355
39469
|
var _cell$table$getCellIn5 = cell.table.getCellInfos(cell),
|
|
39356
39470
|
_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),
|
|
39357
39471
|
r = _cell$table$getCellIn6[0],
|
|
39358
39472
|
c = _cell$table$getCellIn6[1];
|
|
39359
39473
|
hoEditorFactory.undoService.begin();
|
|
39360
|
-
hoEditorFactory.undoService.add(new
|
|
39474
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertColUndoUnit__WEBPACK_IMPORTED_MODULE_72__/* .TableInsertColUndoUnit */ .m(this._hoEditorFactoryID, cell.table, c, count));
|
|
39361
39475
|
hoEditorFactory.undoService.commit();
|
|
39362
39476
|
var sCellNode = cell.table.rows[0][c];
|
|
39363
39477
|
var eCellNode = cell.table.rows[cell.table.rowCount - 1][c + count - 1];
|
|
@@ -39372,8 +39486,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39372
39486
|
if (sCellNode && eCellNode) {
|
|
39373
39487
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
39374
39488
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
39375
|
-
var newRange = new
|
|
39376
|
-
var cgEvent = new
|
|
39489
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
39490
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_42__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
39377
39491
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
39378
39492
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
39379
39493
|
}
|
|
@@ -39397,7 +39511,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39397
39511
|
// );
|
|
39398
39512
|
// }
|
|
39399
39513
|
} else {
|
|
39400
|
-
|
|
39514
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('表格已设置不允许新增列');
|
|
39401
39515
|
return;
|
|
39402
39516
|
}
|
|
39403
39517
|
}
|
|
@@ -39406,18 +39520,18 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39406
39520
|
}, {
|
|
39407
39521
|
key: "insertTableColRight",
|
|
39408
39522
|
value: function insertTableColRight(arange, count) {
|
|
39409
|
-
var hoEditorFactory =
|
|
39523
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39410
39524
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.endPath);
|
|
39411
39525
|
if (np && np.node) {
|
|
39412
39526
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
39413
|
-
if (cell && cell instanceof
|
|
39414
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
39527
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) {
|
|
39528
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddCol) {
|
|
39415
39529
|
var _cell$table$getCellIn7 = cell.table.getCellInfos(cell),
|
|
39416
39530
|
_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),
|
|
39417
39531
|
r = _cell$table$getCellIn8[0],
|
|
39418
39532
|
c = _cell$table$getCellIn8[1];
|
|
39419
39533
|
hoEditorFactory.undoService.begin();
|
|
39420
|
-
hoEditorFactory.undoService.add(new
|
|
39534
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertColUndoUnit__WEBPACK_IMPORTED_MODULE_72__/* .TableInsertColUndoUnit */ .m(this._hoEditorFactoryID, cell.table, c + 1, count));
|
|
39421
39535
|
hoEditorFactory.undoService.commit();
|
|
39422
39536
|
var sCellNode = cell.table.rows[0][c + 1];
|
|
39423
39537
|
var eCellNode = cell.table.rows[cell.table.rowCount - 1][c + count];
|
|
@@ -39432,8 +39546,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39432
39546
|
if (sCellNode && eCellNode) {
|
|
39433
39547
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
39434
39548
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
39435
|
-
var newRange = new
|
|
39436
|
-
var cgEvent = new
|
|
39549
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
39550
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_42__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
39437
39551
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
39438
39552
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
39439
39553
|
}
|
|
@@ -39455,7 +39569,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39455
39569
|
// );
|
|
39456
39570
|
// }
|
|
39457
39571
|
} else {
|
|
39458
|
-
|
|
39572
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('表格已设置不允许新增列');
|
|
39459
39573
|
return;
|
|
39460
39574
|
}
|
|
39461
39575
|
}
|
|
@@ -39464,7 +39578,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39464
39578
|
}, {
|
|
39465
39579
|
key: "tableDeleteRows",
|
|
39466
39580
|
value: function tableDeleteRows(aRange) {
|
|
39467
|
-
var _TableNode$getSelectT =
|
|
39581
|
+
var _TableNode$getSelectT = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_58__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, aRange),
|
|
39468
39582
|
_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),
|
|
39469
39583
|
table = _TableNode$getSelectT2[0],
|
|
39470
39584
|
r1 = _TableNode$getSelectT2[1],
|
|
@@ -39472,19 +39586,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39472
39586
|
r2 = _TableNode$getSelectT2[3],
|
|
39473
39587
|
c2 = _TableNode$getSelectT2[4];
|
|
39474
39588
|
if (!table) {
|
|
39475
|
-
|
|
39589
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格才能删除');
|
|
39476
39590
|
return;
|
|
39477
39591
|
}
|
|
39478
39592
|
// const eParentNode = (aRange.npEnd.node as BaseNode).parentNode;
|
|
39479
39593
|
// if (eParentNode instanceof CellNode && eParentNode.rowSpan > 1) {
|
|
39480
39594
|
// r2 = r2 + eParentNode.rowSpan - 1;
|
|
39481
39595
|
// }
|
|
39482
|
-
var hoEditorFactory =
|
|
39483
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
39596
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39597
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psEdit) {
|
|
39484
39598
|
for (var i = r1; i <= r2; i++) {
|
|
39485
39599
|
var rowInfo = table.rowInfos[i];
|
|
39486
39600
|
if (rowInfo.rowProperty.repeatAsTitleAtPageTop) {
|
|
39487
|
-
|
|
39601
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('表头行不允许删除');
|
|
39488
39602
|
return;
|
|
39489
39603
|
}
|
|
39490
39604
|
}
|
|
@@ -39497,7 +39611,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39497
39611
|
return;
|
|
39498
39612
|
}
|
|
39499
39613
|
hoEditorFactory.undoService.begin();
|
|
39500
|
-
hoEditorFactory.undoService.add(new
|
|
39614
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteRowUndoUnit__WEBPACK_IMPORTED_MODULE_69__/* .TableDeleteRowUndoUnit */ .$r(this._hoEditorFactoryID, table, r1, r2 - r1 + 1));
|
|
39501
39615
|
hoEditorFactory.undoService.commit();
|
|
39502
39616
|
if (table.childNodes.length > 0) {
|
|
39503
39617
|
var path = '';
|
|
@@ -39510,9 +39624,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39510
39624
|
var firstCell = table.childNodes[0];
|
|
39511
39625
|
path = hoEditorFactory.docTree.getNodeFirstPath(firstCell);
|
|
39512
39626
|
}
|
|
39513
|
-
var newDomRange = new
|
|
39627
|
+
var newDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, path, path);
|
|
39514
39628
|
hoEditorFactory.docTree.curDomRange = newDomRange;
|
|
39515
|
-
var cgEvent = new
|
|
39629
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_42__/* .SelectionChangeEvent */ .r(newDomRange, newDomRange); //选中范围变化事件
|
|
39516
39630
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
39517
39631
|
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
39518
39632
|
}
|
|
@@ -39535,7 +39649,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39535
39649
|
}, {
|
|
39536
39650
|
key: "tableDeleteCols",
|
|
39537
39651
|
value: function tableDeleteCols(aRange) {
|
|
39538
|
-
var _TableNode$getSelectT3 =
|
|
39652
|
+
var _TableNode$getSelectT3 = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_58__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, aRange),
|
|
39539
39653
|
_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),
|
|
39540
39654
|
table = _TableNode$getSelectT4[0],
|
|
39541
39655
|
r1 = _TableNode$getSelectT4[1],
|
|
@@ -39543,12 +39657,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39543
39657
|
r2 = _TableNode$getSelectT4[3],
|
|
39544
39658
|
c2 = _TableNode$getSelectT4[4];
|
|
39545
39659
|
if (!table) {
|
|
39546
|
-
|
|
39660
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格才能删除');
|
|
39547
39661
|
return;
|
|
39548
39662
|
}
|
|
39549
|
-
var hoEditorFactory =
|
|
39663
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39550
39664
|
var eParentNode = aRange.npEnd.node.parentNode;
|
|
39551
|
-
if (eParentNode instanceof
|
|
39665
|
+
if (eParentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D && eParentNode.colSpan > 1) {
|
|
39552
39666
|
c2 = c2 + eParentNode.colSpan - 1;
|
|
39553
39667
|
}
|
|
39554
39668
|
if (c1 === 0 && c2 == table.colCount - 1) {
|
|
@@ -39559,14 +39673,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39559
39673
|
return;
|
|
39560
39674
|
}
|
|
39561
39675
|
hoEditorFactory.undoService.begin();
|
|
39562
|
-
hoEditorFactory.undoService.add(new
|
|
39676
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteColUndoUnit__WEBPACK_IMPORTED_MODULE_71__/* .TableDeleteColUndoUnit */ .u(this._hoEditorFactoryID, table, c1, c2 - c1 + 1));
|
|
39563
39677
|
hoEditorFactory.undoService.commit();
|
|
39564
39678
|
if (table.childNodes.length > 0) {
|
|
39565
39679
|
var firstCell = table.childNodes[0];
|
|
39566
39680
|
var path = hoEditorFactory.docTree.getNodeFirstPath(firstCell);
|
|
39567
|
-
var newDomRange = new
|
|
39681
|
+
var newDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, path, path);
|
|
39568
39682
|
hoEditorFactory.docTree.curDomRange = newDomRange;
|
|
39569
|
-
var cgEvent = new
|
|
39683
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_42__/* .SelectionChangeEvent */ .r(newDomRange, newDomRange); //选中范围变化事件
|
|
39570
39684
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
39571
39685
|
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
39572
39686
|
}
|
|
@@ -39589,14 +39703,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39589
39703
|
}, {
|
|
39590
39704
|
key: "tableMergerCells",
|
|
39591
39705
|
value: function tableMergerCells(aRange) {
|
|
39592
|
-
var hoEditorFactory =
|
|
39706
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39593
39707
|
var np1 = hoEditorFactory.docTree.findNodePositionByPath(aRange.startPath);
|
|
39594
39708
|
var np2 = hoEditorFactory.docTree.findNodePositionByPath(aRange.endPath);
|
|
39595
39709
|
if (np1 && np1.node && np2 && np2.node) {
|
|
39596
39710
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
39597
39711
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
39598
|
-
if (!(cell1 instanceof
|
|
39599
|
-
|
|
39712
|
+
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) || cell1.table !== cell2.table || cell1 === cell2) {
|
|
39713
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的不同单元格才能合并');
|
|
39600
39714
|
return;
|
|
39601
39715
|
}
|
|
39602
39716
|
var _cell1$table$getCellI = cell1.table.getCellInfos(cell1),
|
|
@@ -39618,7 +39732,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39618
39732
|
aColSpan = _cell1$table$canMerge2[2];
|
|
39619
39733
|
if (ret) {
|
|
39620
39734
|
hoEditorFactory.undoService.begin();
|
|
39621
|
-
hoEditorFactory.undoService.add(new
|
|
39735
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_73__/* .TableMergeCellUndoUnit */ .A(this._hoEditorFactoryID, cell1.table, r1, c1, aRowSpan, aColSpan));
|
|
39622
39736
|
hoEditorFactory.undoService.commit();
|
|
39623
39737
|
// cell1.table.mergeCells(r1, c1, rowSpan, colSpan);
|
|
39624
39738
|
// const endPath = (cell1 as CellNode).table.getNodePath();
|
|
@@ -39641,14 +39755,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39641
39755
|
}, {
|
|
39642
39756
|
key: "tableUnMergerCells",
|
|
39643
39757
|
value: function tableUnMergerCells(aRange) {
|
|
39644
|
-
var hoEditorFactory =
|
|
39758
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39645
39759
|
var np1 = hoEditorFactory.docTree.findNodePositionByPath(aRange.startPath);
|
|
39646
39760
|
var np2 = hoEditorFactory.docTree.findNodePositionByPath(aRange.endPath);
|
|
39647
39761
|
if (np1 && np1.node && np2 && np2.node) {
|
|
39648
39762
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
39649
39763
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
39650
|
-
if (!(cell1 instanceof
|
|
39651
|
-
|
|
39764
|
+
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) || cell1.table !== cell2.table) {
|
|
39765
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的单元格才能取消合并');
|
|
39652
39766
|
return;
|
|
39653
39767
|
}
|
|
39654
39768
|
var endPath = cell1.table.getNodePath();
|
|
@@ -39675,7 +39789,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39675
39789
|
var cell = cell1.table.rows[r][c];
|
|
39676
39790
|
if (cell && (cell.rowSpan > 1 || cell.colSpan > 1)) {
|
|
39677
39791
|
hoEditorFactory.undoService.begin();
|
|
39678
|
-
hoEditorFactory.undoService.add(new
|
|
39792
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableUnMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_74__/* .TableUnMergeCellUndoUnit */ .u(this._hoEditorFactoryID, cell1.table, r, c));
|
|
39679
39793
|
hoEditorFactory.undoService.commit();
|
|
39680
39794
|
}
|
|
39681
39795
|
}
|
|
@@ -39700,7 +39814,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39700
39814
|
}, {
|
|
39701
39815
|
key: "setTableProperty",
|
|
39702
39816
|
value: function setTableProperty(objectValues, tableNode) {
|
|
39703
|
-
var tableProperty = new
|
|
39817
|
+
var tableProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_65__/* .TableProperty */ .vE(objectValues);
|
|
39704
39818
|
tableNode.tableProperty = tableProperty;
|
|
39705
39819
|
}
|
|
39706
39820
|
/**
|
|
@@ -39712,9 +39826,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39712
39826
|
key: "setRowProperty",
|
|
39713
39827
|
value: function setRowProperty(curDomRange, objectValues, rowInfo) {
|
|
39714
39828
|
var _this5 = this;
|
|
39715
|
-
var hoEditorFactory =
|
|
39829
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39716
39830
|
var setRowProps = function setRowProps(rowInfo) {
|
|
39717
|
-
var rowProperty = new
|
|
39831
|
+
var rowProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_65__/* .RowProperty */ .Nr(objectValues);
|
|
39718
39832
|
var oldRowProperty = rowInfo.rowProperty;
|
|
39719
39833
|
rowInfo.rowProperty = rowProperty;
|
|
39720
39834
|
if (rowProperty.isSpecifyHeight && rowProperty.rowHeight !== oldRowProperty.rowHeight) {
|
|
@@ -39723,7 +39837,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39723
39837
|
var r = rowInfo.table.rowInfos.indexOf(rowInfo);
|
|
39724
39838
|
if (r >= 0) {
|
|
39725
39839
|
hoEditorFactory.undoService.begin();
|
|
39726
|
-
hoEditorFactory.undoService.add(new
|
|
39840
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableResizeRowUndoUnit__WEBPACK_IMPORTED_MODULE_81__/* .TableResizeRowUndoUnit */ .w(_this5._hoEditorFactoryID, rowInfo.table, r, oldHeight, newHeight));
|
|
39727
39841
|
hoEditorFactory.undoService.commit();
|
|
39728
39842
|
}
|
|
39729
39843
|
}
|
|
@@ -39732,7 +39846,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39732
39846
|
setRowProps(rowInfo);
|
|
39733
39847
|
} else {
|
|
39734
39848
|
if (curDomRange.startMainNode && curDomRange.endMainNode) {
|
|
39735
|
-
var rowscols =
|
|
39849
|
+
var rowscols = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_58__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, curDomRange);
|
|
39736
39850
|
if (rowscols[0]) {
|
|
39737
39851
|
var startRowNo = rowscols[1];
|
|
39738
39852
|
var endRowNo = rowscols[3];
|
|
@@ -39750,7 +39864,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39750
39864
|
}
|
|
39751
39865
|
}
|
|
39752
39866
|
rowInfo.table.update();
|
|
39753
|
-
var cgEvent = new
|
|
39867
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_42__/* .SelectionChangeEvent */ .r(curDomRange, curDomRange); //选中范围变化事件
|
|
39754
39868
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
39755
39869
|
}
|
|
39756
39870
|
/**
|
|
@@ -39762,9 +39876,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39762
39876
|
key: "setColProperty",
|
|
39763
39877
|
value: function setColProperty(curDomRange, objectValues, colInfo) {
|
|
39764
39878
|
var _this6 = this;
|
|
39765
|
-
var hoEditorFactory =
|
|
39879
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39766
39880
|
var setColProps = function setColProps(colInfo) {
|
|
39767
|
-
var colProperty = new
|
|
39881
|
+
var colProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_65__/* .ColProperty */ .Ti(objectValues);
|
|
39768
39882
|
var oldColProperty = colInfo.colProperty;
|
|
39769
39883
|
colInfo.colProperty = colProperty;
|
|
39770
39884
|
if (colProperty.isSpecifyWidth && colProperty.width !== oldColProperty.width) {
|
|
@@ -39772,7 +39886,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39772
39886
|
var c = colInfo.table.colInfos.indexOf(colInfo);
|
|
39773
39887
|
if (c >= 0) {
|
|
39774
39888
|
hoEditorFactory.undoService.begin();
|
|
39775
|
-
hoEditorFactory.undoService.add(new
|
|
39889
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableResizeColUndoUnit__WEBPACK_IMPORTED_MODULE_80__/* .TableResizeColUndoUnit */ .D(_this6._hoEditorFactoryID, colInfo.table, c, newHeight));
|
|
39776
39890
|
hoEditorFactory.undoService.commit();
|
|
39777
39891
|
}
|
|
39778
39892
|
}
|
|
@@ -39793,7 +39907,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39793
39907
|
setColProps(colInfo);
|
|
39794
39908
|
} else {
|
|
39795
39909
|
if (curDomRange.startMainNode && curDomRange.endMainNode) {
|
|
39796
|
-
var rowscols =
|
|
39910
|
+
var rowscols = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_58__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, curDomRange);
|
|
39797
39911
|
if (rowscols[0]) {
|
|
39798
39912
|
var startColNo = rowscols[2];
|
|
39799
39913
|
var endColNo = rowscols[4];
|
|
@@ -39811,7 +39925,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39811
39925
|
}
|
|
39812
39926
|
}
|
|
39813
39927
|
colInfo.table.update();
|
|
39814
|
-
var cgEvent = new
|
|
39928
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_42__/* .SelectionChangeEvent */ .r(curDomRange, curDomRange); //选中范围变化事件
|
|
39815
39929
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
39816
39930
|
}
|
|
39817
39931
|
/**
|
|
@@ -39822,7 +39936,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39822
39936
|
}, {
|
|
39823
39937
|
key: "setCellProperty",
|
|
39824
39938
|
value: function setCellProperty(objectValues, cellNode) {
|
|
39825
|
-
var cellProperty = new
|
|
39939
|
+
var cellProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_65__/* .CellProperty */ .$W(objectValues);
|
|
39826
39940
|
cellNode.cellProperty = cellProperty;
|
|
39827
39941
|
cellNode.drawCell.drawPageCells.forEach(function (pcell) {
|
|
39828
39942
|
pcell.valignTop = pcell.calcValignTop(pcell.dHeight)[0];
|
|
@@ -39834,12 +39948,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39834
39948
|
}, {
|
|
39835
39949
|
key: "addHeader",
|
|
39836
39950
|
value: function addHeader(arange) {
|
|
39837
|
-
var hoEditorFactory =
|
|
39951
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39838
39952
|
//切换路径
|
|
39839
39953
|
var cpage = hoEditorFactory.drawTree.activePage;
|
|
39840
|
-
if (!cpage) throw
|
|
39954
|
+
if (!cpage) throw _events_Exception__WEBPACK_IMPORTED_MODULE_59__/* .Exception */ .P.LineNotDefined();
|
|
39841
39955
|
//切换当前页面页眉
|
|
39842
|
-
hoEditorFactory.subDocManger.addANewSubDoc(cpage.pageIndex,
|
|
39956
|
+
hoEditorFactory.subDocManger.addANewSubDoc(cpage.pageIndex, _SubDocManger__WEBPACK_IMPORTED_MODULE_63__/* .HeaderFooterType */ .pi.hftHead);
|
|
39843
39957
|
// const index = hoEditorFactory.drawTree.headerDNodes.length;
|
|
39844
39958
|
// const newPath = `${gHeaderPath}/${index}`;
|
|
39845
39959
|
// cpage?.drawDomLevel?.drawHeader.DeletePage(cpage);
|
|
@@ -39884,15 +39998,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39884
39998
|
value: function insertRadioAndCheckBox(operType, curDomRange, valuesObject, styleIndex) {
|
|
39885
39999
|
var domRange = curDomRange.normalize();
|
|
39886
40000
|
var startPath = domRange.endPath;
|
|
39887
|
-
var hoEditorFactory =
|
|
40001
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39888
40002
|
var oldIsTransToText = false;
|
|
39889
40003
|
if (operType === 'update') {
|
|
39890
40004
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
39891
40005
|
if (np) {
|
|
39892
40006
|
var node = np.node;
|
|
39893
|
-
if (node instanceof
|
|
40007
|
+
if (node instanceof _treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_60__/* .RadioAndCheckBoxNode */ .Yh) {
|
|
39894
40008
|
hoEditorFactory.undoService.begin();
|
|
39895
|
-
hoEditorFactory.undoService.add(new
|
|
40009
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
39896
40010
|
oldIsTransToText = node.isTransToText;
|
|
39897
40011
|
//hoEditorFactory.undoService.commit();
|
|
39898
40012
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
@@ -39908,18 +40022,18 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39908
40022
|
//valuesObj["text"] = "";
|
|
39909
40023
|
//valuesObject = JSON.stringify(valuesObj);
|
|
39910
40024
|
//}
|
|
39911
|
-
var radioAndCheckBoxNode = new
|
|
40025
|
+
var radioAndCheckBoxNode = new _treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_60__/* .RadioAndCheckBoxNode */ .Yh(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntControl, valuesObject, styleIndex);
|
|
39912
40026
|
//插入该表达式节点
|
|
39913
40027
|
if (operType === 'add') {
|
|
39914
40028
|
hoEditorFactory.undoService.begin();
|
|
39915
40029
|
}
|
|
39916
|
-
hoEditorFactory.undoService.add(new
|
|
40030
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, radioAndCheckBoxNode));
|
|
39917
40031
|
hoEditorFactory.undoService.commit();
|
|
39918
40032
|
if (isTransToText && (operType === 'add' || operType === 'update' && !oldIsTransToText)) {
|
|
39919
40033
|
var path = radioAndCheckBoxNode.getNodePath();
|
|
39920
|
-
var textNode = new
|
|
40034
|
+
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntText, text, styleIndex);
|
|
39921
40035
|
hoEditorFactory.undoService.begin();
|
|
39922
|
-
hoEditorFactory.undoService.add(new
|
|
40036
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, textNode));
|
|
39923
40037
|
hoEditorFactory.undoService.commit();
|
|
39924
40038
|
}
|
|
39925
40039
|
}
|
|
@@ -39932,7 +40046,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39932
40046
|
}, {
|
|
39933
40047
|
key: "find",
|
|
39934
40048
|
value: function find(curDomRange, findContent, direction, matchCase) {
|
|
39935
|
-
var hoEditorFactory =
|
|
40049
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39936
40050
|
if (this._findContent.length === 0) {
|
|
39937
40051
|
this._findContent = findContent;
|
|
39938
40052
|
this._count++;
|
|
@@ -39956,7 +40070,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39956
40070
|
}
|
|
39957
40071
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
39958
40072
|
if (object.obj2.size === 0) {
|
|
39959
|
-
|
|
40073
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('未能找到指定内容。');
|
|
39960
40074
|
} else {
|
|
39961
40075
|
var nodesMap = object.obj1;
|
|
39962
40076
|
var indexsMap = object.obj2;
|
|
@@ -39985,8 +40099,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39985
40099
|
}
|
|
39986
40100
|
}
|
|
39987
40101
|
var oldRange = hoEditorFactory.docTree.curDomRange;
|
|
39988
|
-
var newRange = new
|
|
39989
|
-
var cgEvent = new
|
|
40102
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, returnPath, path);
|
|
40103
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_42__/* .SelectionChangeEvent */ .r(oldRange, newRange); //选中范围变化事件
|
|
39990
40104
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
39991
40105
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
39992
40106
|
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
@@ -40004,7 +40118,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40004
40118
|
}, {
|
|
40005
40119
|
key: "replace",
|
|
40006
40120
|
value: function replace(curDomRange, findContent, replaceContent, path, type, direction, matchCase) {
|
|
40007
|
-
var hoEditorFactory =
|
|
40121
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40008
40122
|
var domRange = curDomRange.normalize();
|
|
40009
40123
|
var startNode = domRange.npStart.node;
|
|
40010
40124
|
var sNode = startNode;
|
|
@@ -40017,7 +40131,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40017
40131
|
sNode = startNode.rootNodes[0];
|
|
40018
40132
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
40019
40133
|
if (object.obj2.size === 0) {
|
|
40020
|
-
|
|
40134
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('未能找到指定内容。');
|
|
40021
40135
|
} else {
|
|
40022
40136
|
var nodesMap = object.obj1;
|
|
40023
40137
|
var indexsMap = object.obj2;
|
|
@@ -40058,9 +40172,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40058
40172
|
var endPath1 = getArr1[1];
|
|
40059
40173
|
var newTextNode1 = getArr1[2];
|
|
40060
40174
|
hoEditorFactory.undoService.begin();
|
|
40061
|
-
hoEditorFactory.undoService.add(new
|
|
40175
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_43__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, startPath, endPath1));
|
|
40062
40176
|
if (replaceContent !== '') {
|
|
40063
|
-
hoEditorFactory.undoService.add(new
|
|
40177
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, newTextNode1));
|
|
40064
40178
|
}
|
|
40065
40179
|
hoEditorFactory.undoService.commit();
|
|
40066
40180
|
}
|
|
@@ -40069,7 +40183,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40069
40183
|
} finally {
|
|
40070
40184
|
_iterator.f();
|
|
40071
40185
|
}
|
|
40072
|
-
|
|
40186
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.info('成功替换了' + indexsMap.size.toString() + '处文档内容。');
|
|
40073
40187
|
var toPath = hoEditorFactory.docTree.curDomRange.endPath;
|
|
40074
40188
|
hoEditorFactory.drawTree.moveCaretToPath(toPath);
|
|
40075
40189
|
}
|
|
@@ -40082,9 +40196,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40082
40196
|
var endPath2 = getArr2[0];
|
|
40083
40197
|
var newTextNode2 = getArr2[1];
|
|
40084
40198
|
hoEditorFactory.undoService.begin();
|
|
40085
|
-
hoEditorFactory.undoService.add(new
|
|
40199
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_43__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, path, endPath2));
|
|
40086
40200
|
if (replaceContent !== '') {
|
|
40087
|
-
hoEditorFactory.undoService.add(new
|
|
40201
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, newTextNode2));
|
|
40088
40202
|
}
|
|
40089
40203
|
hoEditorFactory.undoService.commit();
|
|
40090
40204
|
var oldRange = hoEditorFactory.docTree.curDomRange;
|
|
@@ -40092,8 +40206,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40092
40206
|
if (replaceContent !== '') {
|
|
40093
40207
|
endPath = hoEditorFactory.docTree.getNodeLastPath(newTextNode2);
|
|
40094
40208
|
}
|
|
40095
|
-
var newRange = new
|
|
40096
|
-
var cgEvent = new
|
|
40209
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, path, endPath);
|
|
40210
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_42__/* .SelectionChangeEvent */ .r(oldRange, newRange); //选中范围变化事件
|
|
40097
40211
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
40098
40212
|
}
|
|
40099
40213
|
}
|
|
@@ -40116,7 +40230,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40116
40230
|
oldDataID = '';
|
|
40117
40231
|
oldId = '';
|
|
40118
40232
|
domRange = curDomRange.normalize();
|
|
40119
|
-
hoEditorFactory =
|
|
40233
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40120
40234
|
startPath = domRange.endPath;
|
|
40121
40235
|
if (!(operType === 'update')) {
|
|
40122
40236
|
_context2.next = 16;
|
|
@@ -40128,7 +40242,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40128
40242
|
break;
|
|
40129
40243
|
}
|
|
40130
40244
|
node = np.node;
|
|
40131
|
-
if (!(node instanceof
|
|
40245
|
+
if (!(node instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_61__/* .DateTimeNode */ .Z)) {
|
|
40132
40246
|
_context2.next = 16;
|
|
40133
40247
|
break;
|
|
40134
40248
|
}
|
|
@@ -40137,20 +40251,20 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40137
40251
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
40138
40252
|
hoEditorFactory.undoService.begin();
|
|
40139
40253
|
_context2.next = 16;
|
|
40140
|
-
return hoEditorFactory.undoService.add(new
|
|
40254
|
+
return hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
40141
40255
|
case 16:
|
|
40142
40256
|
parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
40143
|
-
dateTimeNode = new
|
|
40257
|
+
dateTimeNode = new _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_61__/* .DateTimeNode */ .Z(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntControl, valuesObject, styleIndex, isTrace); //插入该表达式节点
|
|
40144
40258
|
if (operType === 'add') {
|
|
40145
40259
|
hoEditorFactory.undoService.begin();
|
|
40146
40260
|
} else {
|
|
40147
40261
|
dateTimeNode.dataId = oldDataID;
|
|
40148
40262
|
dateTimeNode.id = oldId;
|
|
40149
40263
|
}
|
|
40150
|
-
hoEditorFactory.undoService.add(new
|
|
40264
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, dateTimeNode));
|
|
40151
40265
|
hoEditorFactory.undoService.commit();
|
|
40152
40266
|
if (operType === 'add') {
|
|
40153
|
-
if (parentNode instanceof
|
|
40267
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re) {
|
|
40154
40268
|
hoEditorFactory.docTree.elementChangeRecords.set(dateTimeNode.id + '|' + dateTimeNode.dataId, ['add']);
|
|
40155
40269
|
} else {
|
|
40156
40270
|
hoEditorFactory.docTree.elementChangeRecords.set(dateTimeNode.id + '|' + dateTimeNode.dataId, ['add0']);
|
|
@@ -40208,7 +40322,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40208
40322
|
startPath = domRange.endPath;
|
|
40209
40323
|
oldDataID = '';
|
|
40210
40324
|
oldId = '';
|
|
40211
|
-
hoEditorFactory =
|
|
40325
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40212
40326
|
if (!(operType === 'update')) {
|
|
40213
40327
|
_context3.next = 16;
|
|
40214
40328
|
break;
|
|
@@ -40219,7 +40333,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40219
40333
|
break;
|
|
40220
40334
|
}
|
|
40221
40335
|
node = np.node;
|
|
40222
|
-
if (!(node instanceof
|
|
40336
|
+
if (!(node instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_62__/* .DownListNode */ .yF)) {
|
|
40223
40337
|
_context3.next = 16;
|
|
40224
40338
|
break;
|
|
40225
40339
|
}
|
|
@@ -40227,24 +40341,24 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40227
40341
|
oldId = node.id;
|
|
40228
40342
|
hoEditorFactory.undoService.begin();
|
|
40229
40343
|
_context3.next = 15;
|
|
40230
|
-
return hoEditorFactory.undoService.add(new
|
|
40344
|
+
return hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
40231
40345
|
case 15:
|
|
40232
40346
|
//hoEditorFactory.undoService.commit();
|
|
40233
40347
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
40234
40348
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
40235
40349
|
case 16:
|
|
40236
40350
|
parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
40237
|
-
downListNode = new
|
|
40351
|
+
downListNode = new _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_62__/* .DownListNode */ .yF(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntControl, valuesObject, downListContent, styleIndex, isTrace); //插入该表达式节点
|
|
40238
40352
|
if (operType === 'add') {
|
|
40239
40353
|
hoEditorFactory.undoService.begin();
|
|
40240
40354
|
} else {
|
|
40241
40355
|
downListNode.dataId = oldDataID;
|
|
40242
40356
|
downListNode.id = oldId;
|
|
40243
40357
|
}
|
|
40244
|
-
hoEditorFactory.undoService.add(new
|
|
40358
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, downListNode));
|
|
40245
40359
|
hoEditorFactory.undoService.commit();
|
|
40246
40360
|
if (operType === 'add') {
|
|
40247
|
-
if (parentNode instanceof
|
|
40361
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re) {
|
|
40248
40362
|
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + '|' + downListNode.dataId, ['add']);
|
|
40249
40363
|
} else {
|
|
40250
40364
|
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + '|' + downListNode.dataId, ['add0']);
|
|
@@ -40252,6 +40366,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40252
40366
|
} else {
|
|
40253
40367
|
record = hoEditorFactory.docTree.elementChangeRecords.get(downListNode.id + '|' + downListNode.dataId);
|
|
40254
40368
|
if (!record || record.indexOf('add') < 0) {
|
|
40369
|
+
//hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + '|' + downListNode.dataId, ['update', updateProps]);
|
|
40255
40370
|
changeProps = {};
|
|
40256
40371
|
if (record && record[0] == "update" && record[1]) {
|
|
40257
40372
|
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]);
|
|
@@ -40282,12 +40397,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40282
40397
|
value: function insertSpecialChars(operType, curDomRange, specialChars, styleIndex) {
|
|
40283
40398
|
var domRange = curDomRange.normalize();
|
|
40284
40399
|
var startPath = domRange.endPath;
|
|
40285
|
-
var hoEditorFactory =
|
|
40400
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40286
40401
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
40287
|
-
var specialCharsNode = new
|
|
40402
|
+
var specialCharsNode = new _treeNode_SpecialCharsNode__WEBPACK_IMPORTED_MODULE_66__/* .SpecialCharsNode */ .y(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntSpecialChar, specialChars, styleIndex);
|
|
40288
40403
|
//插入该表达式节点
|
|
40289
40404
|
hoEditorFactory.undoService.begin();
|
|
40290
|
-
hoEditorFactory.undoService.add(new
|
|
40405
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, specialCharsNode));
|
|
40291
40406
|
hoEditorFactory.undoService.commit();
|
|
40292
40407
|
}
|
|
40293
40408
|
/**
|
|
@@ -40302,12 +40417,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40302
40417
|
value: function insertRareChar(operType, curDomRange, text, styleIndex) {
|
|
40303
40418
|
var domRange = curDomRange.normalize();
|
|
40304
40419
|
var startPath = domRange.endPath;
|
|
40305
|
-
var hoEditorFactory =
|
|
40420
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40306
40421
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
40307
|
-
var rareCharNode = new
|
|
40422
|
+
var rareCharNode = new _treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_95__/* .RareCharNode */ .Q(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntRareChar, text, styleIndex);
|
|
40308
40423
|
//插入该表达式节点
|
|
40309
40424
|
hoEditorFactory.undoService.begin();
|
|
40310
|
-
hoEditorFactory.undoService.add(new
|
|
40425
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, rareCharNode));
|
|
40311
40426
|
hoEditorFactory.undoService.commit();
|
|
40312
40427
|
}
|
|
40313
40428
|
/**
|
|
@@ -40319,25 +40434,25 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40319
40434
|
}, {
|
|
40320
40435
|
key: "insertJumpButton",
|
|
40321
40436
|
value: function insertJumpButton(operType, curDomRange, name, fileId) {
|
|
40322
|
-
var hoEditorFactory =
|
|
40437
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40323
40438
|
var startPath = curDomRange.endPath;
|
|
40324
40439
|
if (operType === 'update') {
|
|
40325
40440
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
40326
40441
|
if (np) {
|
|
40327
40442
|
var node = np.node;
|
|
40328
|
-
if (node instanceof
|
|
40443
|
+
if (node instanceof _treeNode_JumpButtonNode__WEBPACK_IMPORTED_MODULE_96__/* .JumpButtonNode */ .a) {
|
|
40329
40444
|
hoEditorFactory.undoService.begin();
|
|
40330
|
-
hoEditorFactory.undoService.add(new
|
|
40445
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
40331
40446
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
40332
40447
|
}
|
|
40333
40448
|
}
|
|
40334
40449
|
}
|
|
40335
40450
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
40336
|
-
var jumpButtonNode = new
|
|
40451
|
+
var jumpButtonNode = new _treeNode_JumpButtonNode__WEBPACK_IMPORTED_MODULE_96__/* .JumpButtonNode */ .a(this._hoEditorFactoryID, curDomRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntJumpButton, name, fileId, hoEditorFactory.docTree.curStyleIndex);
|
|
40337
40452
|
if (operType === 'add') {
|
|
40338
40453
|
hoEditorFactory.undoService.begin();
|
|
40339
40454
|
}
|
|
40340
|
-
hoEditorFactory.undoService.add(new
|
|
40455
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, jumpButtonNode));
|
|
40341
40456
|
hoEditorFactory.undoService.commit();
|
|
40342
40457
|
}
|
|
40343
40458
|
/**
|
|
@@ -40347,7 +40462,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40347
40462
|
}, {
|
|
40348
40463
|
key: "setPageProperty",
|
|
40349
40464
|
value: function setPageProperty(objectValues) {
|
|
40350
|
-
var hoEditorFactory =
|
|
40465
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40351
40466
|
hoEditorFactory.pageProperty.setPageProperty(objectValues);
|
|
40352
40467
|
}
|
|
40353
40468
|
/**
|
|
@@ -40360,12 +40475,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40360
40475
|
value: function insertComment(text, curDomRange, source) {
|
|
40361
40476
|
var domRange = curDomRange.normalize();
|
|
40362
40477
|
if (!domRange.npStart.node) {
|
|
40363
|
-
throw
|
|
40478
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_59__/* .Exception */ .P.NodeNotFound();
|
|
40364
40479
|
}
|
|
40365
40480
|
if (!domRange.npEnd.node) {
|
|
40366
|
-
throw
|
|
40481
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_59__/* .Exception */ .P.NodeNotFound();
|
|
40367
40482
|
}
|
|
40368
|
-
var hoEditorFactory =
|
|
40483
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40369
40484
|
var commentID = hoEditorFactory.gernerateCode.generateID('C');
|
|
40370
40485
|
var startPath = domRange.startPath;
|
|
40371
40486
|
var endPath = domRange.endPath;
|
|
@@ -40374,13 +40489,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40374
40489
|
// domRange.npEnd.node instanceof TextNode
|
|
40375
40490
|
// ? domRange.npEnd.node.styleIndex
|
|
40376
40491
|
// : 0;
|
|
40377
|
-
var endNode = new
|
|
40378
|
-
endNode.MarkNodeType =
|
|
40492
|
+
var endNode = new _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__/* .MarkNode */ .j(this._hoEditorFactoryID, domRange.npStart.roots, ePNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntMark, commentID, 0, _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__/* .MarkNodeType */ .q.mtEnd);
|
|
40493
|
+
endNode.MarkNodeType = _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__/* .MarkNodeType */ .q.mtEnd;
|
|
40379
40494
|
endNode.isReadOnly = true;
|
|
40380
40495
|
hoEditorFactory.undoService.begin();
|
|
40381
|
-
hoEditorFactory.undoService.add(new
|
|
40496
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, endPath, endNode));
|
|
40382
40497
|
hoEditorFactory.undoService.commit();
|
|
40383
|
-
var comment = new
|
|
40498
|
+
var comment = new _domNode_Comment__WEBPACK_IMPORTED_MODULE_75__/* .Comment */ .s(this._hoEditorFactoryID, commentID, text, endNode, source);
|
|
40384
40499
|
var curArea = hoEditorFactory.drawPageTree.getMainRootArea(endNode.drawNodes[0]);
|
|
40385
40500
|
if (!curArea) {
|
|
40386
40501
|
return;
|
|
@@ -40390,7 +40505,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40390
40505
|
// 2023-05-23注释 25临时放开
|
|
40391
40506
|
curArea.drawComments();
|
|
40392
40507
|
hoEditorFactory.undoService.begin();
|
|
40393
|
-
hoEditorFactory.undoService.add(new
|
|
40508
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, startPath, endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_41__/* .Operate */ .p('insertComment', commentID)));
|
|
40394
40509
|
hoEditorFactory.undoService.commit();
|
|
40395
40510
|
// const newEndpath = endNode.getNodePath();
|
|
40396
40511
|
// const newRange = new DomRange(
|
|
@@ -40410,7 +40525,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40410
40525
|
key: "deleteComment",
|
|
40411
40526
|
value: function deleteComment(type, commentID) {
|
|
40412
40527
|
var _this7 = this;
|
|
40413
|
-
var hoEditorFactory =
|
|
40528
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40414
40529
|
var delStyleComment = function delStyleComment(commentID) {
|
|
40415
40530
|
hoEditorFactory.docTree.styles.forEach(function (value, index) {
|
|
40416
40531
|
if (value.commentID === commentID) {
|
|
@@ -40428,7 +40543,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40428
40543
|
hoEditorFactory.drawTree.commentsMap.delete(comment.id);
|
|
40429
40544
|
var endPath = comment.eNode.getNodePath();
|
|
40430
40545
|
hoEditorFactory.undoService.begin();
|
|
40431
|
-
hoEditorFactory.undoService.add(new
|
|
40546
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(_this7._hoEditorFactoryID, comment.eNode, endPath));
|
|
40432
40547
|
hoEditorFactory.undoService.commit();
|
|
40433
40548
|
hoEditorFactory.drawTree.rebuildAllDrawLine(false);
|
|
40434
40549
|
};
|
|
@@ -40450,7 +40565,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40450
40565
|
} else {
|
|
40451
40566
|
var _comment = hoEditorFactory.drawTree.curOnSelectedComment;
|
|
40452
40567
|
if (_comment.userID != hoEditorFactory.userInfo.id) {
|
|
40453
|
-
|
|
40568
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_100__/* ["default"] */ .Z.warn('不允许删除其他用户创建的批注!');
|
|
40454
40569
|
return;
|
|
40455
40570
|
}
|
|
40456
40571
|
del(_comment);
|
|
@@ -40489,7 +40604,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40489
40604
|
key: "insertPageNum",
|
|
40490
40605
|
value: function insertPageNum(operType, domRange, contentType, formatType, autoSetHeight) {
|
|
40491
40606
|
var startPath = domRange.normalize().endPath;
|
|
40492
|
-
var hoEditorFactory =
|
|
40607
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40493
40608
|
// if (operType === "update") {
|
|
40494
40609
|
// const np = hoEditorFactory.docTree.findNodePositionByPath(
|
|
40495
40610
|
// startPath
|
|
@@ -40512,17 +40627,17 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40512
40627
|
//插入页码
|
|
40513
40628
|
// const pageNum = hoEditorFactory.drawTree.activePage
|
|
40514
40629
|
// ?.pageIndex as number;
|
|
40515
|
-
var pageNumNode = new
|
|
40630
|
+
var pageNumNode = new _treeNode_PageNumNode__WEBPACK_IMPORTED_MODULE_76__/* .PageNumNode */ .h(this._hoEditorFactoryID, domRange.npStart.roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntPageNum,
|
|
40516
40631
|
//pageNum + 1,
|
|
40517
40632
|
formatType, autoSetHeight, hoEditorFactory.docTree.curStyleIndex);
|
|
40518
|
-
hoEditorFactory.undoService.add(new
|
|
40633
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, pageNumNode));
|
|
40519
40634
|
} else {
|
|
40520
40635
|
//插入页数
|
|
40521
40636
|
//const pageCount = hoEditorFactory.drawTree.drawPages.length;
|
|
40522
|
-
var pageCountNode = new
|
|
40637
|
+
var pageCountNode = new _treeNode_PageCountNode__WEBPACK_IMPORTED_MODULE_77__/* .PageCountNode */ .y(this._hoEditorFactoryID, domRange.npStart.roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntPageCount,
|
|
40523
40638
|
//pageCount,
|
|
40524
40639
|
formatType, autoSetHeight, hoEditorFactory.docTree.curStyleIndex);
|
|
40525
|
-
hoEditorFactory.undoService.add(new
|
|
40640
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, pageCountNode));
|
|
40526
40641
|
}
|
|
40527
40642
|
hoEditorFactory.undoService.commit();
|
|
40528
40643
|
}
|
|
@@ -40532,15 +40647,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40532
40647
|
}, {
|
|
40533
40648
|
key: "selectAll",
|
|
40534
40649
|
value: function selectAll() {
|
|
40535
|
-
var hoEditorFactory =
|
|
40650
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40536
40651
|
var curDomRange = hoEditorFactory.docTree.curDomRange;
|
|
40537
40652
|
var path = curDomRange.normalize().startPath;
|
|
40538
40653
|
var rootNodes = hoEditorFactory.docTree.getPathRoots(path);
|
|
40539
40654
|
if (rootNodes) {
|
|
40540
40655
|
var startPath = hoEditorFactory.docTree.getNodeFirstPath(rootNodes[0]);
|
|
40541
40656
|
var endPath = hoEditorFactory.docTree.getNodeLastPath(rootNodes[rootNodes.length - 1]);
|
|
40542
|
-
var newRange = new
|
|
40543
|
-
var cgEvent = new
|
|
40657
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
40658
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_42__/* .SelectionChangeEvent */ .r(curDomRange, newRange); //选中范围变化事件
|
|
40544
40659
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
40545
40660
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
40546
40661
|
}
|
|
@@ -40553,7 +40668,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40553
40668
|
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) {
|
|
40554
40669
|
while (1) switch (_context4.prev = _context4.next) {
|
|
40555
40670
|
case 0:
|
|
40556
|
-
hoEditorFactory =
|
|
40671
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40557
40672
|
_context4.next = 3;
|
|
40558
40673
|
return hoEditorFactory.drawPageTree.stopPageEvent();
|
|
40559
40674
|
case 3:
|
|
@@ -40607,7 +40722,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40607
40722
|
}, {
|
|
40608
40723
|
key: "editComment",
|
|
40609
40724
|
value: function editComment(commentID, text, source) {
|
|
40610
|
-
var hoEditorFactory =
|
|
40725
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40611
40726
|
var curComment = hoEditorFactory.drawTree.curOnSelectedComment;
|
|
40612
40727
|
var markNode;
|
|
40613
40728
|
if (curComment) {
|
|
@@ -40725,17 +40840,17 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40725
40840
|
}, {
|
|
40726
40841
|
key: "insertTableFormula",
|
|
40727
40842
|
value: function insertTableFormula(domRange, formulaStr, isHideZero, formulaType) {
|
|
40728
|
-
var hoEditorFactory =
|
|
40843
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40729
40844
|
var startPath = domRange.normalize().endPath;
|
|
40730
40845
|
var pNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
40731
40846
|
hoEditorFactory.undoService.begin();
|
|
40732
|
-
if (domRange.npEnd.node instanceof
|
|
40847
|
+
if (domRange.npEnd.node instanceof _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_78__/* .TableFormula */ .N) {
|
|
40733
40848
|
var prePath = hoEditorFactory.docTree.getNodeLastPath(domRange.npEnd.node.previousLeaf());
|
|
40734
|
-
hoEditorFactory.undoService.add(new
|
|
40849
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, domRange.npEnd.node, startPath, 'update'));
|
|
40735
40850
|
startPath = prePath;
|
|
40736
40851
|
}
|
|
40737
|
-
var tableFormula = new
|
|
40738
|
-
hoEditorFactory.undoService.add(new
|
|
40852
|
+
var tableFormula = new _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_78__/* .TableFormula */ .N(this._hoEditorFactoryID, domRange.npStart.roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntTableFormula, formulaStr, hoEditorFactory.docTree.curStyleIndex, isHideZero, formulaType);
|
|
40853
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, tableFormula));
|
|
40739
40854
|
hoEditorFactory.undoService.commit();
|
|
40740
40855
|
}
|
|
40741
40856
|
// /**
|
|
@@ -40758,8 +40873,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40758
40873
|
}, {
|
|
40759
40874
|
key: "setUserLoginInfo",
|
|
40760
40875
|
value: function setUserLoginInfo(id, name, permissionLevel, clientIP) {
|
|
40761
|
-
var hoEditorFactory =
|
|
40762
|
-
var userLogin = new
|
|
40876
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40877
|
+
var userLogin = new _runTimeInfo_UserInfo__WEBPACK_IMPORTED_MODULE_79__/* .UserInfo */ .a(this._hoEditorFactoryID);
|
|
40763
40878
|
userLogin.setUserInfo(id, name, permissionLevel, clientIP);
|
|
40764
40879
|
hoEditorFactory.userInfo = userLogin;
|
|
40765
40880
|
}
|
|
@@ -40767,13 +40882,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40767
40882
|
key: "parseNodeData",
|
|
40768
40883
|
value: function parseNodeData(nodes) {
|
|
40769
40884
|
if (nodes && nodes.length > 0) {
|
|
40770
|
-
if (nodes.length === 1 && nodes[0] instanceof
|
|
40885
|
+
if (nodes.length === 1 && nodes[0] instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_37__/* .ParagraphNode */ .C) {
|
|
40771
40886
|
return;
|
|
40772
40887
|
}
|
|
40773
|
-
var hoeditorfactory =
|
|
40888
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40889
|
+
// const startPos = hoeditorfactory.drawTree.selectRange.spStart;
|
|
40890
|
+
// const curNode = hoeditorfactory.docTree.findNodePositionByPath(startPos.path)?.node;
|
|
40774
40891
|
var curNode = hoeditorfactory.docTree.curDomRange.normalize().npStart.node;
|
|
40775
40892
|
//const parentNode = hoeditorfactory.docTree.getParentNode(startPath);
|
|
40776
|
-
var parentNode = curNode.parentNode;
|
|
40893
|
+
var parentNode = curNode === null || curNode === void 0 ? void 0 : curNode.parentNode;
|
|
40777
40894
|
if (parentNode) {
|
|
40778
40895
|
for (var i = 0; i < nodes.length; i++) {
|
|
40779
40896
|
var node = nodes[i];
|
|
@@ -40787,21 +40904,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40787
40904
|
// nodes.splice(0, 1);
|
|
40788
40905
|
// }
|
|
40789
40906
|
var isChange = false;
|
|
40790
|
-
if (parentNode instanceof
|
|
40907
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re) {
|
|
40791
40908
|
parentNode.childNodes.forEach(function (value) {
|
|
40792
|
-
if (value instanceof
|
|
40909
|
+
if (value instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__/* .MarkNode */ .j && value.MarkNodeType === _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__/* .MarkNodeType */ .q.mtContent) {
|
|
40793
40910
|
parentNode.removeChild(value);
|
|
40794
40911
|
isChange = true;
|
|
40795
40912
|
}
|
|
40796
40913
|
});
|
|
40797
40914
|
if (isChange) {
|
|
40798
|
-
var sMarkNodePath =
|
|
40799
|
-
hoeditorfactory.docTree.curDomRange = new
|
|
40915
|
+
var sMarkNodePath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(parentNode.childNodes[0]);
|
|
40916
|
+
hoeditorfactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, sMarkNodePath, sMarkNodePath);
|
|
40800
40917
|
}
|
|
40801
40918
|
}
|
|
40802
40919
|
// this._pasteNodes.splice(0, 0, nodes);
|
|
40803
40920
|
hoeditorfactory.undoService.begin();
|
|
40804
|
-
hoeditorfactory.undoService.add(new
|
|
40921
|
+
hoeditorfactory.undoService.add(new _undoRedo_ParseUndoUnit__WEBPACK_IMPORTED_MODULE_85__/* .ParseUndoUnit */ .e(this._hoEditorFactoryID, hoeditorfactory.docTree.curDomRange.startPath, hoeditorfactory.docTree.curDomRange.endPath, nodes));
|
|
40805
40922
|
hoeditorfactory.undoService.commit();
|
|
40806
40923
|
}
|
|
40807
40924
|
}
|
|
@@ -40812,7 +40929,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40812
40929
|
}, {
|
|
40813
40930
|
key: "insertHtmlText",
|
|
40814
40931
|
value: function insertHtmlText(strHtml) {
|
|
40815
|
-
var hoEditorFactory =
|
|
40932
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40816
40933
|
var nodes = hoEditorFactory.htmlConverter.parseHtmlString(strHtml);
|
|
40817
40934
|
hoEditorFactory.docController.parseNodeData(nodes);
|
|
40818
40935
|
}
|
|
@@ -40826,14 +40943,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40826
40943
|
}, {
|
|
40827
40944
|
key: "getRedrawObject",
|
|
40828
40945
|
value: function getRedrawObject(startPath, endPath, action) {
|
|
40829
|
-
var domRange = new
|
|
40830
|
-
var cgEvent = new
|
|
40831
|
-
if (action ===
|
|
40946
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath).normalize();
|
|
40947
|
+
var cgEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_82__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, action, domRange.startPath, domRange.endPath);
|
|
40948
|
+
if (action === _DocTree__WEBPACK_IMPORTED_MODULE_34__/* .DocAction */ .gk.daUndoInsert || action === _DocTree__WEBPACK_IMPORTED_MODULE_34__/* .DocAction */ .gk.daDelete) {
|
|
40832
40949
|
cgEvent.oldEndPath = domRange.endPath;
|
|
40833
|
-
cgEvent.oldDrawTreeLines = new
|
|
40834
|
-
} else if (action ===
|
|
40950
|
+
cgEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_83__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(domRange.startPath, domRange.endPath);
|
|
40951
|
+
} else if (action === _DocTree__WEBPACK_IMPORTED_MODULE_34__/* .DocAction */ .gk.daParaStyleChange) {
|
|
40835
40952
|
cgEvent.oldEndPath = domRange.endPath;
|
|
40836
|
-
cgEvent.oldDrawLines = new
|
|
40953
|
+
cgEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_83__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(domRange.startPath, domRange.endPath, false, true);
|
|
40837
40954
|
}
|
|
40838
40955
|
return cgEvent;
|
|
40839
40956
|
}
|
|
@@ -40845,16 +40962,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40845
40962
|
}, {
|
|
40846
40963
|
key: "modifyRedraw",
|
|
40847
40964
|
value: function modifyRedraw(cgEvent, endModifyNode) {
|
|
40848
|
-
var hoeditorfactory =
|
|
40965
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40849
40966
|
var endPath;
|
|
40850
|
-
if (endModifyNode instanceof
|
|
40967
|
+
if (endModifyNode instanceof _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .BaseNode */ .Hd) endPath = hoeditorfactory.docTree.getNodeLastPath(endModifyNode);else endPath = endModifyNode;
|
|
40851
40968
|
cgEvent.afterChangePath = endPath;
|
|
40852
40969
|
hoeditorfactory.docTree.change(cgEvent);
|
|
40853
40970
|
}
|
|
40854
40971
|
}, {
|
|
40855
40972
|
key: "deleteRedraw",
|
|
40856
40973
|
value: function deleteRedraw(cgEvent) {
|
|
40857
|
-
var hoeditorfactory =
|
|
40974
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40858
40975
|
cgEvent.afterChangePath = cgEvent.beforeChangePath;
|
|
40859
40976
|
hoeditorfactory.docTree.change(cgEvent);
|
|
40860
40977
|
}
|
|
@@ -40866,9 +40983,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40866
40983
|
}, {
|
|
40867
40984
|
key: "insertRedraw",
|
|
40868
40985
|
value: function insertRedraw(startPath, endPath) {
|
|
40869
|
-
var hoeditorfactory =
|
|
40870
|
-
var domRange = new
|
|
40871
|
-
var cgEvent = new
|
|
40986
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40987
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath).normalize();
|
|
40988
|
+
var cgEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_82__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_34__/* .DocAction */ .gk.daInsert, domRange.startPath, domRange.endPath);
|
|
40872
40989
|
hoeditorfactory.docTree.change(cgEvent);
|
|
40873
40990
|
}
|
|
40874
40991
|
/**
|
|
@@ -40879,7 +40996,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40879
40996
|
}, {
|
|
40880
40997
|
key: "insertSeparateChar",
|
|
40881
40998
|
value: function insertSeparateChar(range, width, color, line) {
|
|
40882
|
-
var hoeditorfactory =
|
|
40999
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40883
41000
|
var np = range.normalize().npStart;
|
|
40884
41001
|
if (np && np.node) {
|
|
40885
41002
|
var curLine = hoeditorfactory.drawTree.getDlineByPath(np.path);
|
|
@@ -40890,8 +41007,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40890
41007
|
var paraNode;
|
|
40891
41008
|
if (!isNullLine) {
|
|
40892
41009
|
hoeditorfactory.undoService.begin();
|
|
40893
|
-
paraNode = new
|
|
40894
|
-
hoeditorfactory.undoService.add(new
|
|
41010
|
+
paraNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_37__/* .ParagraphNode */ .C(this._hoEditorFactoryID, np.roots, parentNode, 0);
|
|
41011
|
+
hoeditorfactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, paraLastPath, paraNode));
|
|
40895
41012
|
hoeditorfactory.undoService.commit();
|
|
40896
41013
|
} else {
|
|
40897
41014
|
paraNode = curLine.paragraphNode;
|
|
@@ -40901,8 +41018,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40901
41018
|
}
|
|
40902
41019
|
hoeditorfactory.undoService.begin();
|
|
40903
41020
|
var newParaPath = paraNode.getNodePath();
|
|
40904
|
-
var separateCharNode = new
|
|
40905
|
-
hoeditorfactory.undoService.add(new
|
|
41021
|
+
var separateCharNode = new _treeNode_SeparateCharNode__WEBPACK_IMPORTED_MODULE_88__/* .SeparateCharNode */ .O(this._hoEditorFactoryID, np.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntSeparateChar, width, color, line);
|
|
41022
|
+
hoeditorfactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, newParaPath, separateCharNode));
|
|
40906
41023
|
hoeditorfactory.undoService.commit();
|
|
40907
41024
|
}
|
|
40908
41025
|
}
|
|
@@ -40916,25 +41033,25 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40916
41033
|
value: function insertGestation(range, operType, lastMenstruationDate, usedDate) {
|
|
40917
41034
|
var domRange = range.normalize();
|
|
40918
41035
|
var startPath = domRange.endPath;
|
|
40919
|
-
var hoEditorFactory =
|
|
41036
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40920
41037
|
if (operType === 'update') {
|
|
40921
41038
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
40922
41039
|
if (np) {
|
|
40923
41040
|
var node = np.node;
|
|
40924
|
-
if (node instanceof
|
|
41041
|
+
if (node instanceof _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_93__/* .GestationNode */ .G) {
|
|
40925
41042
|
hoEditorFactory.undoService.begin();
|
|
40926
|
-
hoEditorFactory.undoService.add(new
|
|
41043
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
40927
41044
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
40928
41045
|
}
|
|
40929
41046
|
}
|
|
40930
41047
|
}
|
|
40931
41048
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
40932
|
-
var gestationNode = new
|
|
41049
|
+
var gestationNode = new _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_93__/* .GestationNode */ .G(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntGestation, lastMenstruationDate, usedDate, hoEditorFactory.docTree.curStyleIndex);
|
|
40933
41050
|
//插入节点
|
|
40934
41051
|
if (operType === 'add') {
|
|
40935
41052
|
hoEditorFactory.undoService.begin();
|
|
40936
41053
|
}
|
|
40937
|
-
hoEditorFactory.undoService.add(new
|
|
41054
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, gestationNode));
|
|
40938
41055
|
hoEditorFactory.undoService.commit();
|
|
40939
41056
|
}
|
|
40940
41057
|
}, {
|
|
@@ -40945,7 +41062,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40945
41062
|
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) {
|
|
40946
41063
|
while (1) switch (_context5.prev = _context5.next) {
|
|
40947
41064
|
case 0:
|
|
40948
|
-
hoeditorfactory =
|
|
41065
|
+
hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40949
41066
|
astart = range.npStart.node;
|
|
40950
41067
|
aend = range.npEnd.node;
|
|
40951
41068
|
sChildIndex = range.npStart.childIndex;
|
|
@@ -40958,7 +41075,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40958
41075
|
_context5.next = 34;
|
|
40959
41076
|
break;
|
|
40960
41077
|
}
|
|
40961
|
-
if (!(anode instanceof
|
|
41078
|
+
if (!(anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R)) {
|
|
40962
41079
|
_context5.next = 32;
|
|
40963
41080
|
break;
|
|
40964
41081
|
}
|
|
@@ -41012,20 +41129,20 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41012
41129
|
endPath = hoeditorfactory.docTree.getNodeLastPath(anode);
|
|
41013
41130
|
}
|
|
41014
41131
|
}
|
|
41015
|
-
labelNode = new
|
|
41016
|
-
delRange = new
|
|
41132
|
+
labelNode = new _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_89__/* .LabelNode */ .P(this._hoEditorFactoryID, range.npStart.roots, anode.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntLabel, text, anode.styleIndex, associatedElement);
|
|
41133
|
+
delRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
41017
41134
|
_context5.next = 28;
|
|
41018
41135
|
return this.deleteRange(delRange, true);
|
|
41019
41136
|
case 28:
|
|
41020
41137
|
hoeditorfactory.undoService.begin();
|
|
41021
|
-
hoeditorfactory.undoService.add(new
|
|
41138
|
+
hoeditorfactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, labelNode));
|
|
41022
41139
|
hoeditorfactory.undoService.commit();
|
|
41023
41140
|
anode = labelNode;
|
|
41024
41141
|
case 32:
|
|
41025
41142
|
anode = anode.previousLeaf();
|
|
41026
41143
|
if (anode) {
|
|
41027
41144
|
anodeEndPath = hoeditorfactory.docTree.getNodeLastPath(anode);
|
|
41028
|
-
result =
|
|
41145
|
+
result = _NodePosition__WEBPACK_IMPORTED_MODULE_90__/* .NodePosition */ .F.treePathCompare(anodeEndPath, range.startPath);
|
|
41029
41146
|
if (result <= 0) {
|
|
41030
41147
|
anode = null;
|
|
41031
41148
|
}
|
|
@@ -41053,18 +41170,18 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41053
41170
|
}, {
|
|
41054
41171
|
key: "labelToText",
|
|
41055
41172
|
value: function labelToText(node) {
|
|
41056
|
-
var hoeditorfactory =
|
|
41173
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41057
41174
|
node.isAllowDelete = true;
|
|
41058
41175
|
var text = node.text;
|
|
41059
41176
|
var styleIndex = node.styleIndex;
|
|
41060
41177
|
var parentNode = node.parentNode;
|
|
41061
41178
|
var prevNodePath = hoeditorfactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41062
41179
|
var lastPath = hoeditorfactory.docTree.getNodeLastPath(node);
|
|
41063
|
-
var range = new
|
|
41180
|
+
var range = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, prevNodePath, lastPath);
|
|
41064
41181
|
this.deleteRange(range, true);
|
|
41065
41182
|
hoeditorfactory.undoService.begin();
|
|
41066
|
-
var textNode = new
|
|
41067
|
-
hoeditorfactory.undoService.add(new
|
|
41183
|
+
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R(this._hoEditorFactoryID, node.rootNodes, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntText, text, styleIndex);
|
|
41184
|
+
hoeditorfactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, prevNodePath, textNode));
|
|
41068
41185
|
hoeditorfactory.undoService.commit();
|
|
41069
41186
|
}
|
|
41070
41187
|
}, {
|
|
@@ -41078,7 +41195,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41078
41195
|
var loopCell = function loopCell() {
|
|
41079
41196
|
for (var j = 1; j < cell.childNodes.length; j++) {
|
|
41080
41197
|
var anode = cell.childNodes[j];
|
|
41081
|
-
if (anode instanceof
|
|
41198
|
+
if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N && anode.imgSrc == '' && anode.fingerPrintSrc == '') {
|
|
41082
41199
|
mark = false;
|
|
41083
41200
|
break;
|
|
41084
41201
|
}
|
|
@@ -41123,13 +41240,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41123
41240
|
}, {
|
|
41124
41241
|
key: "insertEmptySignNode",
|
|
41125
41242
|
value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, customProperty, connectMode, isFront, allowEditSignTime, attribute, connectChar, otherProperties, associatedElement) {
|
|
41126
|
-
var hoEditorFactory =
|
|
41243
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41127
41244
|
var startPath = domRange.startPath;
|
|
41128
41245
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41129
|
-
var signNode = new
|
|
41246
|
+
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .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);
|
|
41130
41247
|
//插入该表达式节点
|
|
41131
41248
|
hoEditorFactory.undoService.begin();
|
|
41132
|
-
hoEditorFactory.undoService.add(new
|
|
41249
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
41133
41250
|
hoEditorFactory.undoService.commit();
|
|
41134
41251
|
}
|
|
41135
41252
|
/**
|
|
@@ -41144,16 +41261,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41144
41261
|
}, {
|
|
41145
41262
|
key: "insertSignNode",
|
|
41146
41263
|
value: function insertSignNode(domRange, type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition, otherProperties, signType) {
|
|
41147
|
-
var hoEditorFactory =
|
|
41264
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41148
41265
|
var startPath = domRange.startPath;
|
|
41149
41266
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41150
41267
|
var attribute = signType ? signType : 0;
|
|
41151
|
-
var signNode = new
|
|
41268
|
+
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .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);
|
|
41152
41269
|
//插入该表达式节点
|
|
41153
41270
|
hoEditorFactory.undoService.begin();
|
|
41154
|
-
hoEditorFactory.undoService.add(new
|
|
41271
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
41155
41272
|
hoEditorFactory.undoService.commit();
|
|
41156
|
-
if (parentNode instanceof
|
|
41273
|
+
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) {
|
|
41157
41274
|
this.signLockCheck(parentNode);
|
|
41158
41275
|
}
|
|
41159
41276
|
this.drawMask(signNode);
|
|
@@ -41171,15 +41288,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41171
41288
|
}, {
|
|
41172
41289
|
key: "updateSignNode",
|
|
41173
41290
|
value: function updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition, otherProperties) {
|
|
41174
|
-
var hoEditorFactory =
|
|
41291
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41175
41292
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41176
41293
|
if (node.imgSrc === '') {
|
|
41177
41294
|
//第一次更新签名
|
|
41178
41295
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41179
|
-
var changeEvent = new
|
|
41296
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_82__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_34__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
41180
41297
|
changeEvent.oldEndPath = ePath;
|
|
41181
41298
|
changeEvent.afterChangePath = ePath;
|
|
41182
|
-
changeEvent.oldDrawLines = new
|
|
41299
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_83__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true, true);
|
|
41183
41300
|
node.type = type;
|
|
41184
41301
|
node.name = name;
|
|
41185
41302
|
node.number = 1;
|
|
@@ -41197,7 +41314,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41197
41314
|
// }
|
|
41198
41315
|
//node.connectMode = "/";
|
|
41199
41316
|
hoEditorFactory.docTree.change(changeEvent);
|
|
41200
|
-
if (node.parentNode instanceof
|
|
41317
|
+
if (node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) {
|
|
41201
41318
|
this.signLockCheck(node.parentNode);
|
|
41202
41319
|
}
|
|
41203
41320
|
this.drawMask(node);
|
|
@@ -41207,9 +41324,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41207
41324
|
sPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41208
41325
|
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]);
|
|
41209
41326
|
var curParaNode = dline.paragraphNode;
|
|
41210
|
-
var newPara = new
|
|
41327
|
+
var newPara = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_37__/* .ParagraphNode */ .C(this._hoEditorFactoryID, node.rootNodes, node.parentNode, curParaNode.paraNo);
|
|
41211
41328
|
hoEditorFactory.undoService.begin();
|
|
41212
|
-
hoEditorFactory.undoService.add(new
|
|
41329
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, sPath, newPara));
|
|
41213
41330
|
hoEditorFactory.undoService.commit();
|
|
41214
41331
|
sPath = newPara.getNodePath();
|
|
41215
41332
|
} else {
|
|
@@ -41217,10 +41334,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41217
41334
|
sPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41218
41335
|
}
|
|
41219
41336
|
}
|
|
41220
|
-
var newSignNode = new
|
|
41337
|
+
var newSignNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .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);
|
|
41221
41338
|
//插入该表达式节点
|
|
41222
41339
|
hoEditorFactory.undoService.begin();
|
|
41223
|
-
hoEditorFactory.undoService.add(new
|
|
41340
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, sPath, newSignNode));
|
|
41224
41341
|
hoEditorFactory.undoService.commit();
|
|
41225
41342
|
this.drawMask(node);
|
|
41226
41343
|
}
|
|
@@ -41228,7 +41345,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41228
41345
|
}, {
|
|
41229
41346
|
key: "drawMask",
|
|
41230
41347
|
value: function drawMask(node) {
|
|
41231
|
-
var hoEditorFactory =
|
|
41348
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41232
41349
|
if (hoEditorFactory.forbidEditBeforeSign) {
|
|
41233
41350
|
if (hoEditorFactory.structureConvert._superiorSign.length === 0) {
|
|
41234
41351
|
hoEditorFactory.structureConvert._superiorSign[0] = node;
|
|
@@ -41237,7 +41354,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41237
41354
|
var sign1 = hoEditorFactory.structureConvert._superiorSign[0];
|
|
41238
41355
|
var path1 = sign1.getNodePath();
|
|
41239
41356
|
var path2 = node.getNodePath();
|
|
41240
|
-
var result =
|
|
41357
|
+
var result = _NodePosition__WEBPACK_IMPORTED_MODULE_90__/* .NodePosition */ .F.treePathCompare(path1, path2);
|
|
41241
41358
|
if (result <= 0) {
|
|
41242
41359
|
hoEditorFactory.structureConvert._superiorSign[0] = node;
|
|
41243
41360
|
hoEditorFactory.vueController.hiddenMask(false);
|
|
@@ -41265,13 +41382,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41265
41382
|
}, {
|
|
41266
41383
|
key: "updateEmptySignNode",
|
|
41267
41384
|
value: function updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat, connectMode, otherProperties, isFront, associatedElement) {
|
|
41268
|
-
var hoEditorFactory =
|
|
41385
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41269
41386
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41270
41387
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41271
|
-
var changeEvent = new
|
|
41388
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_82__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_34__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
41272
41389
|
changeEvent.oldEndPath = ePath;
|
|
41273
41390
|
changeEvent.afterChangePath = ePath;
|
|
41274
|
-
changeEvent.oldDrawLines = new
|
|
41391
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_83__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true, true);
|
|
41275
41392
|
node.name = name;
|
|
41276
41393
|
node.connectChar = connectChar;
|
|
41277
41394
|
node.signType = signType;
|
|
@@ -41294,13 +41411,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41294
41411
|
}, {
|
|
41295
41412
|
key: "updateSignTime",
|
|
41296
41413
|
value: function updateSignTime(node, signText) {
|
|
41297
|
-
var hoEditorFactory =
|
|
41414
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41298
41415
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41299
41416
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41300
|
-
var changeEvent = new
|
|
41417
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_82__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_34__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
41301
41418
|
changeEvent.oldEndPath = ePath;
|
|
41302
41419
|
changeEvent.afterChangePath = ePath;
|
|
41303
|
-
changeEvent.oldDrawLines = new
|
|
41420
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_83__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true, true);
|
|
41304
41421
|
node.imgSrc = signText;
|
|
41305
41422
|
hoEditorFactory.docTree.change(changeEvent);
|
|
41306
41423
|
}
|
|
@@ -41313,13 +41430,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41313
41430
|
}, {
|
|
41314
41431
|
key: "updateSignType",
|
|
41315
41432
|
value: function updateSignType(node, type, imgSrc, imgWidth, imgHeight) {
|
|
41316
|
-
var hoEditorFactory =
|
|
41433
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41317
41434
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41318
41435
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41319
|
-
var changeEvent = new
|
|
41436
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_82__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_34__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
41320
41437
|
changeEvent.oldEndPath = ePath;
|
|
41321
41438
|
changeEvent.afterChangePath = ePath;
|
|
41322
|
-
changeEvent.oldDrawLines = new
|
|
41439
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_83__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true, true);
|
|
41323
41440
|
node.type = type;
|
|
41324
41441
|
node.imgWidth = imgWidth;
|
|
41325
41442
|
node.imgHeight = imgHeight;
|
|
@@ -41334,13 +41451,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41334
41451
|
}, {
|
|
41335
41452
|
key: "updateSignCustomProp",
|
|
41336
41453
|
value: function updateSignCustomProp(node, customProperty) {
|
|
41337
|
-
var hoEditorFactory =
|
|
41454
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41338
41455
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41339
41456
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41340
|
-
var changeEvent = new
|
|
41457
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_82__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_34__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
41341
41458
|
changeEvent.oldEndPath = ePath;
|
|
41342
41459
|
changeEvent.afterChangePath = ePath;
|
|
41343
|
-
changeEvent.oldDrawLines = new
|
|
41460
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_83__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true, true);
|
|
41344
41461
|
node.customProperty = customProperty;
|
|
41345
41462
|
hoEditorFactory.docTree.change(changeEvent);
|
|
41346
41463
|
}
|
|
@@ -41351,7 +41468,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41351
41468
|
}, {
|
|
41352
41469
|
key: "getLogs",
|
|
41353
41470
|
value: function getLogs() {
|
|
41354
|
-
var hoEditorFactory =
|
|
41471
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41355
41472
|
return hoEditorFactory.undoService.getModifyHistory();
|
|
41356
41473
|
}
|
|
41357
41474
|
/**
|
|
@@ -41361,7 +41478,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41361
41478
|
key: "tabToNextElement",
|
|
41362
41479
|
value: function tabToNextElement() {
|
|
41363
41480
|
var _this8 = this;
|
|
41364
|
-
var hoEditorFactory =
|
|
41481
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41365
41482
|
var domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
41366
41483
|
if (!domRange.npStart || !domRange.npStart.node || !domRange.npEnd || !domRange.npEnd.node) return;
|
|
41367
41484
|
var endPath = domRange.endPath;
|
|
@@ -41369,7 +41486,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41369
41486
|
var curNode = domRange.npEnd.node;
|
|
41370
41487
|
var nextNode = curNode.nextLeaf();
|
|
41371
41488
|
do {
|
|
41372
|
-
if (nextNode instanceof
|
|
41489
|
+
if (nextNode instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__/* .MarkNode */ .j && nextNode.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re && nextNode.MarkNodeType === _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__/* .MarkNodeType */ .q.mtStart && nextNode.parentNode.canModifyContent || nextNode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_62__/* .DownListNode */ .yF || nextNode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_61__/* .DateTimeNode */ .Z) {
|
|
41373
41490
|
break;
|
|
41374
41491
|
}
|
|
41375
41492
|
if (nextNode) {
|
|
@@ -41391,16 +41508,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41391
41508
|
}
|
|
41392
41509
|
} while (1);
|
|
41393
41510
|
var setSelectRange = function setSelectRange(sPath, ePath) {
|
|
41394
|
-
var newRange = new
|
|
41395
|
-
var cgEvent = new
|
|
41511
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(_this8._hoEditorFactoryID, sPath, ePath);
|
|
41512
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_42__/* .SelectionChangeEvent */ .r(domRange, newRange); //选中范围变化事件
|
|
41396
41513
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
41397
41514
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
41398
41515
|
};
|
|
41399
41516
|
var toPath = '';
|
|
41400
|
-
if (nextNode instanceof
|
|
41517
|
+
if (nextNode instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_54__/* .MarkNode */ .j) {
|
|
41401
41518
|
toPath = nextNode.getNodePath();
|
|
41402
41519
|
setSelectRange(toPath, toPath);
|
|
41403
|
-
} else if (nextNode instanceof
|
|
41520
|
+
} else if (nextNode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_62__/* .DownListNode */ .yF || nextNode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_61__/* .DateTimeNode */ .Z) {
|
|
41404
41521
|
toPath = nextNode.getNodePath();
|
|
41405
41522
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(nextNode.previousLeaf());
|
|
41406
41523
|
setSelectRange(sPath, toPath);
|
|
@@ -41412,7 +41529,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41412
41529
|
}, {
|
|
41413
41530
|
key: "mergeCells",
|
|
41414
41531
|
value: function mergeCells(cell, r, c, rowSpan, colSpan) {
|
|
41415
|
-
var hoEditorFactory =
|
|
41532
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41416
41533
|
var _cell$table$canMergeC = cell.table.canMergeCell(r, c, rowSpan, colSpan),
|
|
41417
41534
|
_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),
|
|
41418
41535
|
ret = _cell$table$canMergeC2[0],
|
|
@@ -41420,7 +41537,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41420
41537
|
aColSpan = _cell$table$canMergeC2[2];
|
|
41421
41538
|
if (ret) {
|
|
41422
41539
|
hoEditorFactory.undoService.begin();
|
|
41423
|
-
hoEditorFactory.undoService.add(new
|
|
41540
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_73__/* .TableMergeCellUndoUnit */ .A(this._hoEditorFactoryID, cell.table, r, c, aRowSpan, aColSpan));
|
|
41424
41541
|
hoEditorFactory.undoService.commit();
|
|
41425
41542
|
}
|
|
41426
41543
|
}
|
|
@@ -64143,8 +64260,6 @@ var es_array_push = __webpack_require__(57658);
|
|
|
64143
64260
|
var es_array_join = __webpack_require__(69600);
|
|
64144
64261
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
64145
64262
|
var es_array_splice = __webpack_require__(40561);
|
|
64146
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
64147
|
-
var es_promise = __webpack_require__(88674);
|
|
64148
64263
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
64149
64264
|
var es_object_assign = __webpack_require__(19601);
|
|
64150
64265
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
@@ -64201,8 +64316,6 @@ var PrimaryTeethMapNode = __webpack_require__(11429);
|
|
|
64201
64316
|
var PupilMapNode = __webpack_require__(19995);
|
|
64202
64317
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/SignNode.ts
|
|
64203
64318
|
var SignNode = __webpack_require__(24701);
|
|
64204
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableFormula.ts
|
|
64205
|
-
var TableFormula = __webpack_require__(90832);
|
|
64206
64319
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableNode.ts
|
|
64207
64320
|
var TableNode = __webpack_require__(5010);
|
|
64208
64321
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextNode.ts
|
|
@@ -65914,6 +66027,8 @@ function escapeHTML(s) {
|
|
|
65914
66027
|
|
|
65915
66028
|
|
|
65916
66029
|
|
|
66030
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableFormula.ts
|
|
66031
|
+
var TableFormula = __webpack_require__(90832);
|
|
65917
66032
|
;// CONCATENATED MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts
|
|
65918
66033
|
|
|
65919
66034
|
|
|
@@ -65945,13 +66060,12 @@ function escapeHTML(s) {
|
|
|
65945
66060
|
|
|
65946
66061
|
|
|
65947
66062
|
|
|
65948
|
-
|
|
65949
66063
|
|
|
65950
66064
|
|
|
65951
66065
|
/*
|
|
65952
66066
|
* @Author: your name
|
|
65953
66067
|
* @Date: 2020-11-03 15:17:54
|
|
65954
|
-
* @LastEditTime: 2024-04-
|
|
66068
|
+
* @LastEditTime: 2024-04-22 14:09:41
|
|
65955
66069
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
65956
66070
|
* @Description: In User Settings Edit
|
|
65957
66071
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -67204,8 +67318,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67204
67318
|
key: "setFieldText",
|
|
67205
67319
|
value: function () {
|
|
67206
67320
|
var _setFieldText = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(text, customProperty, keyValue, value, isTrace) {
|
|
67207
|
-
var
|
|
67208
|
-
var hoEditorFactory, startPath, oldValue, endPath, aRange, anodes, i, anode, contentMark, styleIndex, contentMarkNode, changes, insertPath, aPromise, k, change;
|
|
67321
|
+
var hoEditorFactory, startPath, oldValue, endPath, aRange, anodes, i, anode, contentMark, styleIndex, contentMarkNode, textStr, changes, m, change, addArr, a, delArr, d, oldArr, r;
|
|
67209
67322
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context2) {
|
|
67210
67323
|
while (1) switch (_context2.prev = _context2.next) {
|
|
67211
67324
|
case 0:
|
|
@@ -67271,41 +67384,54 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67271
67384
|
return _context2.abrupt("return");
|
|
67272
67385
|
case 33:
|
|
67273
67386
|
if (!isTrace) {
|
|
67274
|
-
_context2.next =
|
|
67387
|
+
_context2.next = 40;
|
|
67275
67388
|
break;
|
|
67276
67389
|
}
|
|
67277
|
-
|
|
67278
|
-
|
|
67279
|
-
|
|
67280
|
-
|
|
67281
|
-
|
|
67282
|
-
|
|
67283
|
-
|
|
67284
|
-
|
|
67285
|
-
|
|
67286
|
-
|
|
67287
|
-
|
|
67288
|
-
|
|
67289
|
-
oper = "add";
|
|
67290
|
-
} else if (change.removed) {
|
|
67291
|
-
//删除文本
|
|
67292
|
-
oper = "remove";
|
|
67390
|
+
textStr = "";
|
|
67391
|
+
if (this.inputFieldType === 0) {
|
|
67392
|
+
changes = diffChars(this.text, text);
|
|
67393
|
+
for (m = 0; m < changes.length; m++) {
|
|
67394
|
+
change = changes[m];
|
|
67395
|
+
if (change.added) {
|
|
67396
|
+
//新增文本
|
|
67397
|
+
addArr = change.value.split("\n");
|
|
67398
|
+
for (a = 0; a < addArr.length; a++) {
|
|
67399
|
+
if (addArr[a].length > 0) {
|
|
67400
|
+
addArr[a] = "(add)" + addArr[a] + "(/add)";
|
|
67401
|
+
}
|
|
67293
67402
|
}
|
|
67294
|
-
|
|
67295
|
-
|
|
67296
|
-
|
|
67297
|
-
|
|
67298
|
-
|
|
67299
|
-
|
|
67300
|
-
|
|
67301
|
-
|
|
67403
|
+
textStr += addArr.join("\n");
|
|
67404
|
+
} else if (change.removed) {
|
|
67405
|
+
//删除文本
|
|
67406
|
+
delArr = change.value.split("\n");
|
|
67407
|
+
for (d = 0; d < delArr.length; d++) {
|
|
67408
|
+
if (delArr[d].length > 0) {
|
|
67409
|
+
delArr[d] = "(del)" + delArr[d] + "(/del)";
|
|
67410
|
+
}
|
|
67411
|
+
}
|
|
67412
|
+
textStr += delArr.join("\n");
|
|
67413
|
+
} else {
|
|
67414
|
+
oldArr = change.value.split("\n");
|
|
67415
|
+
for (r = 0; r < oldArr.length; r++) {
|
|
67416
|
+
if (oldArr[r].length > 0) {
|
|
67417
|
+
oldArr[r] = "(old)" + oldArr[r] + "(/old)";
|
|
67418
|
+
}
|
|
67419
|
+
}
|
|
67420
|
+
textStr += oldArr.join("\n");
|
|
67421
|
+
}
|
|
67422
|
+
}
|
|
67423
|
+
} else {
|
|
67424
|
+
textStr = text;
|
|
67302
67425
|
}
|
|
67303
|
-
_context2.next =
|
|
67426
|
+
_context2.next = 38;
|
|
67427
|
+
return hoEditorFactory.docController.insertPlainTextAfterPath(startPath, textStr, oldValue, isTrace);
|
|
67428
|
+
case 38:
|
|
67429
|
+
_context2.next = 42;
|
|
67304
67430
|
break;
|
|
67305
|
-
case
|
|
67306
|
-
_context2.next =
|
|
67431
|
+
case 40:
|
|
67432
|
+
_context2.next = 42;
|
|
67307
67433
|
return hoEditorFactory.docController.insertPlainTextAfterPath(startPath, text, oldValue);
|
|
67308
|
-
case
|
|
67434
|
+
case 42:
|
|
67309
67435
|
case "end":
|
|
67310
67436
|
return _context2.stop();
|
|
67311
67437
|
}
|
|
@@ -82686,11 +82812,11 @@ var EditorController = /*#__PURE__*/function () {
|
|
|
82686
82812
|
this.editor.input.addEventListener('keypress', this._editKeyPress);
|
|
82687
82813
|
this.editor.input.addEventListener('keyup', this._editKeyUp);
|
|
82688
82814
|
this.editor.input.addEventListener('keydown', this._editKeyDown);
|
|
82689
|
-
document.addEventListener('visibilitychange',
|
|
82690
|
-
|
|
82691
|
-
|
|
82692
|
-
|
|
82693
|
-
})
|
|
82815
|
+
// document.addEventListener('visibilitychange', () => {
|
|
82816
|
+
// if(!document.hidden) {
|
|
82817
|
+
// this.editor.input.focus();
|
|
82818
|
+
// }
|
|
82819
|
+
// })
|
|
82694
82820
|
this.editor.input.addEventListener('cut', function (e) {
|
|
82695
82821
|
if (!e || !e.clipboardData) {
|
|
82696
82822
|
return;
|
|
@@ -94590,6 +94716,8 @@ var NodeConvert = /*#__PURE__*/function () {
|
|
|
94590
94716
|
}
|
|
94591
94717
|
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType */ .Jq.ntLabel]) {
|
|
94592
94718
|
paragraphText += item.text;
|
|
94719
|
+
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType */ .Jq.ntControl]) {
|
|
94720
|
+
paragraphText += item.text;
|
|
94593
94721
|
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType */ .Jq.ntRareChar]) {
|
|
94594
94722
|
paragraphText += item.text;
|
|
94595
94723
|
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType */ .Jq.ntSpecialChar]) {
|
|
@@ -94782,6 +94910,11 @@ var StructureNode = /*#__PURE__*/function () {
|
|
|
94782
94910
|
clipboard.setData(ClipboardType.ctJSON, this._json);
|
|
94783
94911
|
clipboard.setData(ClipboardType.ctHTML, this._html);
|
|
94784
94912
|
clipboard.setData(ClipboardType.ctText, this._text);
|
|
94913
|
+
if (type != "cut") {
|
|
94914
|
+
hoEditorFactory.drawTree.selectRange.beginRangeSelect = false;
|
|
94915
|
+
hoEditorFactory.drawTree.selectRange.clearAllSelectShape();
|
|
94916
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(hoEditorFactory.drawTree.selectRange.spStart.path);
|
|
94917
|
+
}
|
|
94785
94918
|
} else {
|
|
94786
94919
|
return this._json;
|
|
94787
94920
|
}
|
|
@@ -168999,7 +169132,7 @@ var map = {
|
|
|
168999
169132
|
"./popers/Title.vue": 31276,
|
|
169000
169133
|
"./printstyle/PrintLineStyle.vue": 51484,
|
|
169001
169134
|
"./qrCode/QrCode.vue": 59805,
|
|
169002
|
-
"./radioCheckBox/RadioCheckbox.vue":
|
|
169135
|
+
"./radioCheckBox/RadioCheckbox.vue": 58895,
|
|
169003
169136
|
"./selectDialog/SelectDialog.vue": 32497,
|
|
169004
169137
|
"./sign/Sign.vue": 67218,
|
|
169005
169138
|
"./specialChars/HoSpecialChars.vue": 71361,
|
|
@@ -207262,6 +207395,8 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
207262
207395
|
hoeditorfactory.drawTree.selectRange.spEnd = startPos;
|
|
207263
207396
|
if (aevent.nativeEvent.button === 0) {
|
|
207264
207397
|
hoeditorfactory.docTree.curDomRange.setSamePath(startPos.path);
|
|
207398
|
+
} else if (aevent.nativeEvent.button === 2 && hoeditorfactory.docTree.curDomRange.isEmpty) {
|
|
207399
|
+
hoeditorfactory.docTree.curDomRange.setSamePath(startPos.path);
|
|
207265
207400
|
}
|
|
207266
207401
|
hoeditorfactory.drawTree.moveCaretToPath(startPos.path);
|
|
207267
207402
|
if (aevent.nativeEvent.button === 0) {
|
|
@@ -209641,7 +209776,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
209641
209776
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
209642
209777
|
var ParagraphNode = __webpack_require__(67945);
|
|
209643
209778
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
209644
|
-
/* harmony default export */ var version = ('3.1.
|
|
209779
|
+
/* harmony default export */ var version = ('3.1.117');
|
|
209645
209780
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
209646
209781
|
var PoperTipText = __webpack_require__(50987);
|
|
209647
209782
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -218147,7 +218282,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218147
218282
|
var endPath = _curDomRange.normalize().endPath;
|
|
218148
218283
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.insertTable);
|
|
218149
218284
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
218150
|
-
hoEditorFactory.docController.insertTable(_curDomRange, irow, icol
|
|
218285
|
+
hoEditorFactory.docController.insertTable(_curDomRange, irow, icol);
|
|
218151
218286
|
}
|
|
218152
218287
|
}
|
|
218153
218288
|
/**
|
|
@@ -220193,10 +220328,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220193
220328
|
/**
|
|
220194
220329
|
* 插入文本(包括大段文本)
|
|
220195
220330
|
* @param text 文本
|
|
220331
|
+
* @param isAppentText 追加文本内容开头为换行符时是否处理换行
|
|
220332
|
+
* @param canModifyContent 判断当前位置元素是否可编辑
|
|
220196
220333
|
*/
|
|
220197
220334
|
}, {
|
|
220198
220335
|
key: "insertText",
|
|
220199
|
-
value: function insertText(text, isAppentText) {
|
|
220336
|
+
value: function insertText(text, isAppentText, canModifyContent) {
|
|
220200
220337
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220201
220338
|
if (!isAppentText && hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReadOnly) {
|
|
220202
220339
|
return;
|
|
@@ -220210,6 +220347,20 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220210
220347
|
}
|
|
220211
220348
|
var npStart = curDomRange.npStart;
|
|
220212
220349
|
if (npStart && npStart.node) {
|
|
220350
|
+
if (canModifyContent) {
|
|
220351
|
+
var currentNode = null;
|
|
220352
|
+
if (npStart.node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
220353
|
+
currentNode = npStart.node;
|
|
220354
|
+
} else if (npStart.node.parentNode && npStart.node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
220355
|
+
currentNode = npStart.node.parentNode;
|
|
220356
|
+
}
|
|
220357
|
+
if (currentNode && !currentNode.canModifyContent) {
|
|
220358
|
+
message/* default */.Z.destroy();
|
|
220359
|
+
message/* default */.Z.error("\u5143\u7D20\u3010".concat(currentNode.name, "\u3011\u4E0D\u5141\u8BB8\u76F4\u63A5\u8F93\u5165\u3001\u7C98\u8D34\u3001\u5F15\u5165\u6587\u672C\u5185\u5BB9"));
|
|
220360
|
+
currentNode = null;
|
|
220361
|
+
return;
|
|
220362
|
+
}
|
|
220363
|
+
}
|
|
220213
220364
|
hoEditorFactory.docTree.curDomRange.setSamePath(curDomRange.startPath);
|
|
220214
220365
|
var nodes = [];
|
|
220215
220366
|
var lines = text.split('\n');
|
|
@@ -227316,6 +227467,9 @@ var EditController = /*#__PURE__*/function () {
|
|
|
227316
227467
|
}
|
|
227317
227468
|
var startPath = hoeditorfactory.docTree.curDomRange.startPath;
|
|
227318
227469
|
var parentNode = hoeditorfactory.docTree.getParentNode(startPath);
|
|
227470
|
+
// 获取路径 docTree.curDomRange.startPath变更为 drawTree.selectRange.npStart.path
|
|
227471
|
+
// const startPos = hoeditorfactory.drawTree.selectRange.spStart;
|
|
227472
|
+
// const parentNode = hoeditorfactory.docTree.getParentNode(startPos.path);
|
|
227319
227473
|
if (parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && !parentNode.canModifyContent) {
|
|
227320
227474
|
return;
|
|
227321
227475
|
}
|
|
@@ -227595,7 +227749,7 @@ var EditController = /*#__PURE__*/function () {
|
|
|
227595
227749
|
/*
|
|
227596
227750
|
* @Author: your name
|
|
227597
227751
|
* @Date: 2021-07-31 09:27:53
|
|
227598
|
-
* @LastEditTime: 2024-
|
|
227752
|
+
* @LastEditTime: 2024-04-08 17:42:41
|
|
227599
227753
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
227600
227754
|
* @Description: In User Settings Edit
|
|
227601
227755
|
* @FilePath: \hoeditor-web\src\editor\externalCall\ElementController.ts
|
|
@@ -227686,6 +227840,10 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
227686
227840
|
return;
|
|
227687
227841
|
}
|
|
227688
227842
|
}
|
|
227843
|
+
var isTrace = false;
|
|
227844
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psTrace) {
|
|
227845
|
+
isTrace = true;
|
|
227846
|
+
}
|
|
227689
227847
|
var hPromise = Promise.resolve();
|
|
227690
227848
|
hPromise = hPromise.then(function (res) {
|
|
227691
227849
|
return new Promise( /*#__PURE__*/function () {
|
|
@@ -227699,7 +227857,7 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
227699
227857
|
break;
|
|
227700
227858
|
}
|
|
227701
227859
|
_context.next = 3;
|
|
227702
|
-
return node.setFieldText(text, customProperty, keyValue, value);
|
|
227860
|
+
return node.setFieldText(text, customProperty, keyValue, value, isTrace);
|
|
227703
227861
|
case 3:
|
|
227704
227862
|
if (node.rootPath.includes("header")) {
|
|
227705
227863
|
_hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this._hoEditorFactoryID);
|
|
@@ -238522,6 +238680,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238522
238680
|
(_window = window) === null || _window === void 0 || (_window = _window.chrome) === null || _window === void 0 || (_window = _window.webview) === null || _window === void 0 ? void 0 : _window.addEventListener('message', function (e) {
|
|
238523
238681
|
if (e && e.data) {
|
|
238524
238682
|
var res = JSON.parse(e.data);
|
|
238683
|
+
// console.log('res-----', res);
|
|
238525
238684
|
if (res.result == true && res.res.cmd == 'GetList') {
|
|
238526
238685
|
var _this$callBack;
|
|
238527
238686
|
_this._localXmlList = res.res.EMR;
|
|
@@ -238670,6 +238829,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238670
238829
|
}
|
|
238671
238830
|
}
|
|
238672
238831
|
};
|
|
238832
|
+
// console.log('SaveEmrData', data);
|
|
238673
238833
|
window.chrome.webview.postMessage(data);
|
|
238674
238834
|
}
|
|
238675
238835
|
} else if (this._networkConnectionStatus) {
|
|
@@ -246292,8 +246452,8 @@ var ToolBar_component = (0,componentNormalizer/* default */.Z)(
|
|
|
246292
246452
|
)
|
|
246293
246453
|
|
|
246294
246454
|
/* harmony default export */ var ToolBar = (ToolBar_component.exports);
|
|
246295
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/TableFeatures.vue?vue&type=template&id=
|
|
246296
|
-
var
|
|
246455
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/TableFeatures.vue?vue&type=template&id=70d7ecdd&
|
|
246456
|
+
var TableFeaturesvue_type_template_id_70d7ecdd_render = function render() {
|
|
246297
246457
|
var _vm = this,
|
|
246298
246458
|
_c = _vm._self._c;
|
|
246299
246459
|
return _c('p', {
|
|
@@ -246342,6 +246502,11 @@ var TableFeaturesvue_type_template_id_f3124b16_render = function render() {
|
|
|
246342
246502
|
"precision": 0,
|
|
246343
246503
|
"min": 1
|
|
246344
246504
|
},
|
|
246505
|
+
nativeOn: {
|
|
246506
|
+
"click": function click($event) {
|
|
246507
|
+
$event.stopPropagation();
|
|
246508
|
+
}
|
|
246509
|
+
},
|
|
246345
246510
|
model: {
|
|
246346
246511
|
value: _vm.topRows,
|
|
246347
246512
|
callback: function callback($$v) {
|
|
@@ -246386,6 +246551,11 @@ var TableFeaturesvue_type_template_id_f3124b16_render = function render() {
|
|
|
246386
246551
|
"precision": 0,
|
|
246387
246552
|
"min": 1
|
|
246388
246553
|
},
|
|
246554
|
+
nativeOn: {
|
|
246555
|
+
"click": function click($event) {
|
|
246556
|
+
$event.stopPropagation();
|
|
246557
|
+
}
|
|
246558
|
+
},
|
|
246389
246559
|
model: {
|
|
246390
246560
|
value: _vm.bottomRows,
|
|
246391
246561
|
callback: function callback($$v) {
|
|
@@ -246430,6 +246600,11 @@ var TableFeaturesvue_type_template_id_f3124b16_render = function render() {
|
|
|
246430
246600
|
"precision": 0,
|
|
246431
246601
|
"min": 1
|
|
246432
246602
|
},
|
|
246603
|
+
nativeOn: {
|
|
246604
|
+
"click": function click($event) {
|
|
246605
|
+
$event.stopPropagation();
|
|
246606
|
+
}
|
|
246607
|
+
},
|
|
246433
246608
|
model: {
|
|
246434
246609
|
value: _vm.leftRows,
|
|
246435
246610
|
callback: function callback($$v) {
|
|
@@ -246474,6 +246649,11 @@ var TableFeaturesvue_type_template_id_f3124b16_render = function render() {
|
|
|
246474
246649
|
"controls": false,
|
|
246475
246650
|
"min": 1
|
|
246476
246651
|
},
|
|
246652
|
+
nativeOn: {
|
|
246653
|
+
"click": function click($event) {
|
|
246654
|
+
$event.stopPropagation();
|
|
246655
|
+
}
|
|
246656
|
+
},
|
|
246477
246657
|
model: {
|
|
246478
246658
|
value: _vm.rightRows,
|
|
246479
246659
|
callback: function callback($$v) {
|
|
@@ -246660,7 +246840,7 @@ var TableFeaturesvue_type_template_id_f3124b16_render = function render() {
|
|
|
246660
246840
|
}
|
|
246661
246841
|
})])]), _c('span', [_vm._v("取消合并单元格")])]) : _vm._e()])]);
|
|
246662
246842
|
};
|
|
246663
|
-
var
|
|
246843
|
+
var TableFeaturesvue_type_template_id_70d7ecdd_staticRenderFns = [];
|
|
246664
246844
|
|
|
246665
246845
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/TableFeatures.vue?vue&type=script&lang=js&
|
|
246666
246846
|
/* harmony default export */ var TableFeaturesvue_type_script_lang_js_ = ({
|
|
@@ -246710,11 +246890,7 @@ var TableFeaturesvue_type_template_id_f3124b16_staticRenderFns = [];
|
|
|
246710
246890
|
var elements = document.querySelector(className);
|
|
246711
246891
|
if (!elements.contains(e.target)) {
|
|
246712
246892
|
this.$emit("closeMenu");
|
|
246713
|
-
// const [isInTable, tableNode] = this.vueController.getDomRange().inSameTable();
|
|
246714
|
-
// if(this.topRows == 1 && isInTable && tableNode.tableProperty.isUsePopEdit) {
|
|
246715
|
-
// } else {
|
|
246716
246893
|
this.vueController.insertTableRowAbove(this.topRows);
|
|
246717
|
-
// }
|
|
246718
246894
|
}
|
|
246719
246895
|
},
|
|
246720
246896
|
tableInsertRowBelow: function tableInsertRowBelow(e) {
|
|
@@ -246757,8 +246933,8 @@ var TableFeaturesvue_type_template_id_f3124b16_staticRenderFns = [];
|
|
|
246757
246933
|
this.$emit("closeMenu");
|
|
246758
246934
|
this.vueController.tableUnMergerCells();
|
|
246759
246935
|
},
|
|
246760
|
-
tableControlClick: function tableControlClick() {
|
|
246761
|
-
|
|
246936
|
+
tableControlClick: function tableControlClick(e) {
|
|
246937
|
+
cnsole.log(e.target);
|
|
246762
246938
|
},
|
|
246763
246939
|
init: function init() {
|
|
246764
246940
|
this.topRows = 1;
|
|
@@ -246777,10 +246953,10 @@ var TableFeaturesvue_type_template_id_f3124b16_staticRenderFns = [];
|
|
|
246777
246953
|
});
|
|
246778
246954
|
;// CONCATENATED MODULE: ./src/components/toolbar/TableFeatures.vue?vue&type=script&lang=js&
|
|
246779
246955
|
/* harmony default export */ var toolbar_TableFeaturesvue_type_script_lang_js_ = (TableFeaturesvue_type_script_lang_js_);
|
|
246780
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/TableFeatures.vue?vue&type=style&index=0&id=
|
|
246956
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/TableFeatures.vue?vue&type=style&index=0&id=70d7ecdd&prod&lang=less&
|
|
246781
246957
|
// extracted by mini-css-extract-plugin
|
|
246782
246958
|
|
|
246783
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/TableFeatures.vue?vue&type=style&index=0&id=
|
|
246959
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/TableFeatures.vue?vue&type=style&index=0&id=70d7ecdd&prod&lang=less&
|
|
246784
246960
|
|
|
246785
246961
|
;// CONCATENATED MODULE: ./src/components/toolbar/TableFeatures.vue
|
|
246786
246962
|
|
|
@@ -246793,8 +246969,8 @@ var TableFeaturesvue_type_template_id_f3124b16_staticRenderFns = [];
|
|
|
246793
246969
|
|
|
246794
246970
|
var TableFeatures_component = (0,componentNormalizer/* default */.Z)(
|
|
246795
246971
|
toolbar_TableFeaturesvue_type_script_lang_js_,
|
|
246796
|
-
|
|
246797
|
-
|
|
246972
|
+
TableFeaturesvue_type_template_id_70d7ecdd_render,
|
|
246973
|
+
TableFeaturesvue_type_template_id_70d7ecdd_staticRenderFns,
|
|
246798
246974
|
false,
|
|
246799
246975
|
null,
|
|
246800
246976
|
null,
|
|
@@ -246827,6 +247003,10 @@ var popper = __webpack_require__(95551);
|
|
|
246827
247003
|
|
|
246828
247004
|
|
|
246829
247005
|
|
|
247006
|
+
|
|
247007
|
+
|
|
247008
|
+
|
|
247009
|
+
|
|
246830
247010
|
|
|
246831
247011
|
|
|
246832
247012
|
|
|
@@ -246906,10 +247086,15 @@ var popper = __webpack_require__(95551);
|
|
|
246906
247086
|
},
|
|
246907
247087
|
created: function created() {
|
|
246908
247088
|
var _this = this;
|
|
247089
|
+
// if(chrome?.webview?.postMessage) {
|
|
247090
|
+
// window?.chrome?.webview?.addEventListener('message', this.getMessage);
|
|
247091
|
+
// this.postMessage();
|
|
247092
|
+
// this.isWebview = true;
|
|
247093
|
+
// }
|
|
247094
|
+
// permissionStatus.state 的值是 'granted'、'denied'、'prompt':
|
|
246909
247095
|
navigator.permissions.query({
|
|
246910
247096
|
name: 'clipboard-read'
|
|
246911
247097
|
}).then(function (permissionStatus) {
|
|
246912
|
-
// permissionStatus.state 的值是 'granted'、'denied'、'prompt':
|
|
246913
247098
|
if (permissionStatus.state === 'denied') {
|
|
246914
247099
|
var _window, _chrome;
|
|
246915
247100
|
(_window = window) === null || _window === void 0 || (_window = _window.chrome) === null || _window === void 0 || (_window = _window.webview) === null || _window === void 0 ? void 0 : _window.addEventListener('message', _this.getMessage);
|
|
@@ -247103,95 +247288,112 @@ var popper = __webpack_require__(95551);
|
|
|
247103
247288
|
getClipboardContents: function getClipboardContents() {
|
|
247104
247289
|
var _this4 = this;
|
|
247105
247290
|
return (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee() {
|
|
247106
|
-
var clipboardItems, _iterator, _step, clipboardItem, _iterator2, _step2,
|
|
247107
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(
|
|
247108
|
-
while (1) switch (
|
|
247291
|
+
var clipboardItems, htmls, _iterator, _step, clipboardItem, _iterator2, _step2, _loop;
|
|
247292
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context2) {
|
|
247293
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
247109
247294
|
case 0:
|
|
247110
|
-
|
|
247111
|
-
|
|
247295
|
+
_context2.prev = 0;
|
|
247296
|
+
_context2.next = 3;
|
|
247112
247297
|
return navigator.clipboard.read();
|
|
247113
247298
|
case 3:
|
|
247114
|
-
clipboardItems =
|
|
247299
|
+
clipboardItems = _context2.sent;
|
|
247300
|
+
// console.log(clipboardItems)
|
|
247301
|
+
htmls = "";
|
|
247115
247302
|
_iterator = (0,createForOfIteratorHelper/* default */.Z)(clipboardItems);
|
|
247116
|
-
|
|
247303
|
+
_context2.prev = 6;
|
|
247117
247304
|
_iterator.s();
|
|
247118
|
-
case
|
|
247305
|
+
case 8:
|
|
247119
247306
|
if ((_step = _iterator.n()).done) {
|
|
247120
|
-
|
|
247307
|
+
_context2.next = 28;
|
|
247121
247308
|
break;
|
|
247122
247309
|
}
|
|
247123
247310
|
clipboardItem = _step.value;
|
|
247124
247311
|
_iterator2 = (0,createForOfIteratorHelper/* default */.Z)(clipboardItem.types);
|
|
247125
|
-
|
|
247312
|
+
_context2.prev = 11;
|
|
247313
|
+
_loop = /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _loop() {
|
|
247314
|
+
var type, blob, reader;
|
|
247315
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _loop$(_context) {
|
|
247316
|
+
while (1) switch (_context.prev = _context.next) {
|
|
247317
|
+
case 0:
|
|
247318
|
+
type = _step2.value;
|
|
247319
|
+
if (!(type === 'text/html')) {
|
|
247320
|
+
_context.next = 8;
|
|
247321
|
+
break;
|
|
247322
|
+
}
|
|
247323
|
+
_context.next = 4;
|
|
247324
|
+
return clipboardItem.getType(type);
|
|
247325
|
+
case 4:
|
|
247326
|
+
blob = _context.sent;
|
|
247327
|
+
// console.log(type, blob, '---------');
|
|
247328
|
+
reader = new FileReader();
|
|
247329
|
+
reader.readAsText(blob, 'UTF-8');
|
|
247330
|
+
reader.onload = function (e) {
|
|
247331
|
+
if (type === 'text/html' && !htmls.includes('<html><body>')) {
|
|
247332
|
+
htmls = '<html><body>' + e.target.result + '</body></html>';
|
|
247333
|
+
_this4.vueController.pasteInsertDocument('', htmls, '');
|
|
247334
|
+
} else if (type === 'text/plain') {
|
|
247335
|
+
// htmls = '<html><body><span>' + e.target.result + '</span></body></html>';
|
|
247336
|
+
}
|
|
247337
|
+
};
|
|
247338
|
+
case 8:
|
|
247339
|
+
case "end":
|
|
247340
|
+
return _context.stop();
|
|
247341
|
+
}
|
|
247342
|
+
}, _loop);
|
|
247343
|
+
});
|
|
247126
247344
|
_iterator2.s();
|
|
247127
|
-
case
|
|
247345
|
+
case 14:
|
|
247128
247346
|
if ((_step2 = _iterator2.n()).done) {
|
|
247129
|
-
|
|
247130
|
-
break;
|
|
247131
|
-
}
|
|
247132
|
-
type = _step2.value;
|
|
247133
|
-
if (!(type === 'text/html')) {
|
|
247134
|
-
_context.next = 21;
|
|
247347
|
+
_context2.next = 18;
|
|
247135
247348
|
break;
|
|
247136
247349
|
}
|
|
247137
|
-
|
|
247138
|
-
|
|
247139
|
-
|
|
247140
|
-
blob = _context.sent;
|
|
247141
|
-
reader = new FileReader();
|
|
247142
|
-
reader.readAsText(blob, 'UTF-8');
|
|
247143
|
-
reader.onload = function (e) {
|
|
247144
|
-
var htmls = e.target.result;
|
|
247145
|
-
if (!htmls.includes('<html><body>')) {
|
|
247146
|
-
htmls = '<html><body>' + e.target.result + '</body></html>';
|
|
247147
|
-
}
|
|
247148
|
-
_this4.vueController.pasteInsertDocument('', htmls, '');
|
|
247149
|
-
};
|
|
247150
|
-
case 21:
|
|
247151
|
-
_context.next = 12;
|
|
247350
|
+
return _context2.delegateYield(_loop(), "t0", 16);
|
|
247351
|
+
case 16:
|
|
247352
|
+
_context2.next = 14;
|
|
247152
247353
|
break;
|
|
247354
|
+
case 18:
|
|
247355
|
+
_context2.next = 23;
|
|
247356
|
+
break;
|
|
247357
|
+
case 20:
|
|
247358
|
+
_context2.prev = 20;
|
|
247359
|
+
_context2.t1 = _context2["catch"](11);
|
|
247360
|
+
_iterator2.e(_context2.t1);
|
|
247153
247361
|
case 23:
|
|
247154
|
-
|
|
247362
|
+
_context2.prev = 23;
|
|
247363
|
+
_iterator2.f();
|
|
247364
|
+
return _context2.finish(23);
|
|
247365
|
+
case 26:
|
|
247366
|
+
_context2.next = 8;
|
|
247155
247367
|
break;
|
|
247156
|
-
case 25:
|
|
247157
|
-
_context.prev = 25;
|
|
247158
|
-
_context.t0 = _context["catch"](10);
|
|
247159
|
-
_iterator2.e(_context.t0);
|
|
247160
247368
|
case 28:
|
|
247161
|
-
|
|
247162
|
-
_iterator2.f();
|
|
247163
|
-
return _context.finish(28);
|
|
247164
|
-
case 31:
|
|
247165
|
-
_context.next = 7;
|
|
247369
|
+
_context2.next = 33;
|
|
247166
247370
|
break;
|
|
247371
|
+
case 30:
|
|
247372
|
+
_context2.prev = 30;
|
|
247373
|
+
_context2.t2 = _context2["catch"](6);
|
|
247374
|
+
_iterator.e(_context2.t2);
|
|
247167
247375
|
case 33:
|
|
247168
|
-
|
|
247169
|
-
break;
|
|
247170
|
-
case 35:
|
|
247171
|
-
_context.prev = 35;
|
|
247172
|
-
_context.t1 = _context["catch"](5);
|
|
247173
|
-
_iterator.e(_context.t1);
|
|
247174
|
-
case 38:
|
|
247175
|
-
_context.prev = 38;
|
|
247376
|
+
_context2.prev = 33;
|
|
247176
247377
|
_iterator.f();
|
|
247177
|
-
return
|
|
247178
|
-
case
|
|
247179
|
-
|
|
247378
|
+
return _context2.finish(33);
|
|
247379
|
+
case 36:
|
|
247380
|
+
_context2.next = 43;
|
|
247180
247381
|
break;
|
|
247181
|
-
case
|
|
247182
|
-
|
|
247183
|
-
|
|
247382
|
+
case 38:
|
|
247383
|
+
_context2.prev = 38;
|
|
247384
|
+
_context2.t3 = _context2["catch"](0);
|
|
247385
|
+
console.warn(JSON.stringify(_context2.t3));
|
|
247184
247386
|
message/* default */.Z.destroy();
|
|
247185
247387
|
message/* default */.Z.error('当前浏览器不支持,请用 ctrl+ v 粘贴');
|
|
247186
|
-
case
|
|
247187
|
-
|
|
247388
|
+
case 43:
|
|
247389
|
+
_context2.prev = 43;
|
|
247188
247390
|
_this4.handleClose();
|
|
247189
|
-
return
|
|
247190
|
-
case
|
|
247391
|
+
return _context2.finish(43);
|
|
247392
|
+
case 46:
|
|
247191
247393
|
case "end":
|
|
247192
|
-
return
|
|
247394
|
+
return _context2.stop();
|
|
247193
247395
|
}
|
|
247194
|
-
}, _callee, null, [[0,
|
|
247396
|
+
}, _callee, null, [[0, 38, 43, 46], [6, 30, 33, 36], [11, 20, 23, 26]]);
|
|
247195
247397
|
}))();
|
|
247196
247398
|
},
|
|
247197
247399
|
hideComments: function hideComments() {
|
|
@@ -247233,7 +247435,7 @@ var popper = __webpack_require__(95551);
|
|
|
247233
247435
|
"class": 'mouse-menu-item',
|
|
247234
247436
|
"style": 'justify-content: space-between;',
|
|
247235
247437
|
"on": {
|
|
247236
|
-
"click": this.
|
|
247438
|
+
"click": this.hoPaste.bind(this)
|
|
247237
247439
|
}
|
|
247238
247440
|
}, [h("span", ["\u7C98\u8D34"]), h("span", ["Ctrl + V"])]), h("li", {
|
|
247239
247441
|
"class": 'mouse-menu-item mouse-right-menu-line'
|
|
@@ -247466,7 +247668,7 @@ var popper = __webpack_require__(95551);
|
|
|
247466
247668
|
},
|
|
247467
247669
|
"props": (0,objectSpread2/* default */.Z)({}, {
|
|
247468
247670
|
vueController: this.vueController,
|
|
247469
|
-
className: 'insert-rows-columns-right',
|
|
247671
|
+
className: 'insert-rows-columns-right-menu',
|
|
247470
247672
|
table: this.defaultTable,
|
|
247471
247673
|
paintStatus: rightNode.paintStatus,
|
|
247472
247674
|
tableProperty: rightNode.tableProperty
|
|
@@ -247770,17 +247972,8 @@ var HoRightMenu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
247770
247972
|
var _hoEditorFactory$docT;
|
|
247771
247973
|
var value;
|
|
247772
247974
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.activeDocId);
|
|
247773
|
-
// let node = hoEditorFactory.vueController.findNodebyPath(this.domRange.endPath)?.node;
|
|
247774
|
-
|
|
247775
247975
|
var startPos = hoEditorFactory.drawTree.selectRange.spStart;
|
|
247776
247976
|
var node = (_hoEditorFactory$docT = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)) === null || _hoEditorFactory$docT === void 0 ? void 0 : _hoEditorFactory$docT.node;
|
|
247777
|
-
|
|
247778
|
-
// if (startPos) {
|
|
247779
|
-
// const npNode = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)?.node;
|
|
247780
|
-
// if (npNode instanceof SignNode && npNode.type == 3) {
|
|
247781
|
-
// node = npNode;
|
|
247782
|
-
// }
|
|
247783
|
-
// }
|
|
247784
247977
|
if (node instanceof MarkNode/* MarkNode */.j || node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
247785
247978
|
var parentNode = node.parentNode;
|
|
247786
247979
|
if (parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|