hoeditor-web 3.1.106 → 3.1.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.css +1 -1
- package/lib/hoeditor.umd.js +640 -700
- package/lib/hoeditor.umd.min.js +21 -21
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -3363,7 +3363,7 @@ function _extends(){return _extends=Object.assign?Object.assign.bind():function(
|
|
|
3363
3363
|
|
|
3364
3364
|
/***/ }),
|
|
3365
3365
|
|
|
3366
|
-
/***/
|
|
3366
|
+
/***/ 27901:
|
|
3367
3367
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3368
3368
|
|
|
3369
3369
|
"use strict";
|
|
@@ -3375,13 +3375,14 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
3375
3375
|
"default": function() { return /* binding */ ControlModal; }
|
|
3376
3376
|
});
|
|
3377
3377
|
|
|
3378
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=
|
|
3378
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=6ac3b0e4&
|
|
3379
3379
|
var render = function render() {
|
|
3380
3380
|
var _vm = this,
|
|
3381
3381
|
_c = _vm._self._c;
|
|
3382
3382
|
return _c('div', {
|
|
3383
3383
|
ref: "toolModals",
|
|
3384
3384
|
staticClass: "control-modal",
|
|
3385
|
+
style: _vm.controlModalStyle,
|
|
3385
3386
|
on: {
|
|
3386
3387
|
"mousedown": _vm.toolModalDown
|
|
3387
3388
|
}
|
|
@@ -3470,6 +3471,7 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
3470
3471
|
data: function data() {
|
|
3471
3472
|
return {
|
|
3472
3473
|
toolModals: null,
|
|
3474
|
+
controlModalStyle: {},
|
|
3473
3475
|
names: {
|
|
3474
3476
|
style1: '经期史',
|
|
3475
3477
|
style5: '瞳孔图',
|
|
@@ -3494,8 +3496,8 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
3494
3496
|
'text-to-label': 'textDialog/TextToLabelDialog',
|
|
3495
3497
|
date: 'dateDialog/DateDialog',
|
|
3496
3498
|
select: 'selectDialog/SelectDialog',
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
+
RadioBox: 'radioCheckBox/RadioCheckbox',
|
|
3500
|
+
CheckBox: 'radioCheckBox/RadioCheckbox',
|
|
3499
3501
|
table: 'table/TableProperty',
|
|
3500
3502
|
'table-row': 'table/TableRowProperty',
|
|
3501
3503
|
'table-col': 'table/TableColProperty',
|
|
@@ -3510,7 +3512,8 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
3510
3512
|
paragraph: 'paragraph/ParagraphDialog',
|
|
3511
3513
|
gestation: 'gestation/Gestation',
|
|
3512
3514
|
// 'ho-formula': 'hoformula/HoFormula',
|
|
3513
|
-
'ho-print': 'hoprint/HoPrint'
|
|
3515
|
+
'ho-print': 'hoprint/HoPrint',
|
|
3516
|
+
'special-chars': 'specialChars/HoSpecialChars'
|
|
3514
3517
|
}
|
|
3515
3518
|
};
|
|
3516
3519
|
},
|
|
@@ -3594,6 +3597,20 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
3594
3597
|
this.modalComponent = {
|
|
3595
3598
|
component: loadedComponent
|
|
3596
3599
|
};
|
|
3600
|
+
if (controlType == 'special-chars') {
|
|
3601
|
+
this.controlModalStyle = {
|
|
3602
|
+
right: '20px',
|
|
3603
|
+
top: '120px',
|
|
3604
|
+
transform: 'translate(0, 0)',
|
|
3605
|
+
width: '360px'
|
|
3606
|
+
};
|
|
3607
|
+
} else {
|
|
3608
|
+
this.controlModalStyle = {
|
|
3609
|
+
left: '50%',
|
|
3610
|
+
top: '50%',
|
|
3611
|
+
transform: 'translate(-50%, -50%)'
|
|
3612
|
+
};
|
|
3613
|
+
}
|
|
3597
3614
|
return;
|
|
3598
3615
|
}
|
|
3599
3616
|
}
|
|
@@ -16799,6 +16816,163 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
16799
16816
|
|
|
16800
16817
|
/***/ }),
|
|
16801
16818
|
|
|
16819
|
+
/***/ 71361:
|
|
16820
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
16821
|
+
|
|
16822
|
+
"use strict";
|
|
16823
|
+
// ESM COMPAT FLAG
|
|
16824
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16825
|
+
|
|
16826
|
+
// EXPORTS
|
|
16827
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
16828
|
+
"default": function() { return /* binding */ HoSpecialChars; }
|
|
16829
|
+
});
|
|
16830
|
+
|
|
16831
|
+
;// 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/specialChars/HoSpecialChars.vue?vue&type=template&id=080be996&
|
|
16832
|
+
var render = function render() {
|
|
16833
|
+
var _vm = this,
|
|
16834
|
+
_c = _vm._self._c;
|
|
16835
|
+
return _c('div', {
|
|
16836
|
+
class: _vm.animationClassNames
|
|
16837
|
+
}, [_c('header', {
|
|
16838
|
+
staticClass: "modal-title"
|
|
16839
|
+
}, [_c('span'), _c('a-icon', {
|
|
16840
|
+
staticClass: "modal-title-close",
|
|
16841
|
+
attrs: {
|
|
16842
|
+
"type": "close"
|
|
16843
|
+
},
|
|
16844
|
+
on: {
|
|
16845
|
+
"click": _vm.handleClose
|
|
16846
|
+
}
|
|
16847
|
+
})], 1), _c('section', {
|
|
16848
|
+
staticClass: "modal-content"
|
|
16849
|
+
}, [_c('ul', [_c('li', [_c('header', [_vm._v("特殊字符")]), _c('p', {
|
|
16850
|
+
staticClass: "chars-list special-chars-list"
|
|
16851
|
+
}, _vm._l(_vm.specialChars, function (chars) {
|
|
16852
|
+
return _c('span', {
|
|
16853
|
+
key: chars,
|
|
16854
|
+
on: {
|
|
16855
|
+
"click": function click($event) {
|
|
16856
|
+
$event.stopPropagation();
|
|
16857
|
+
return _vm.specialCharsClick(chars);
|
|
16858
|
+
}
|
|
16859
|
+
}
|
|
16860
|
+
}, [_vm._v(_vm._s(chars))]);
|
|
16861
|
+
}), 0)]), _c('li', [_c('header', [_vm._v("罗马字符")]), _c('p', {
|
|
16862
|
+
staticClass: "chars-list"
|
|
16863
|
+
}, _vm._l(_vm.romanChars, function (chars) {
|
|
16864
|
+
return _c('span', {
|
|
16865
|
+
key: chars,
|
|
16866
|
+
on: {
|
|
16867
|
+
"click": function click($event) {
|
|
16868
|
+
$event.stopPropagation();
|
|
16869
|
+
return _vm.specialCharsClick(chars);
|
|
16870
|
+
}
|
|
16871
|
+
}
|
|
16872
|
+
}, [_vm._v(_vm._s(chars))]);
|
|
16873
|
+
}), 0)]), _c('li', [_c('header', [_vm._v("数学字符")]), _c('p', {
|
|
16874
|
+
staticClass: "chars-list"
|
|
16875
|
+
}, _vm._l(_vm.mathChars, function (chars) {
|
|
16876
|
+
return _c('span', {
|
|
16877
|
+
key: chars,
|
|
16878
|
+
on: {
|
|
16879
|
+
"click": function click($event) {
|
|
16880
|
+
$event.stopPropagation();
|
|
16881
|
+
return _vm.specialCharsClick(chars);
|
|
16882
|
+
}
|
|
16883
|
+
}
|
|
16884
|
+
}, [_vm._v(_vm._s(chars))]);
|
|
16885
|
+
}), 0)])])])]);
|
|
16886
|
+
};
|
|
16887
|
+
var staticRenderFns = [];
|
|
16888
|
+
|
|
16889
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
16890
|
+
var es_array_includes = __webpack_require__(26699);
|
|
16891
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
16892
|
+
var es_string_includes = __webpack_require__(32023);
|
|
16893
|
+
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
16894
|
+
var HOEditorFactorys = __webpack_require__(74089);
|
|
16895
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/specialChars/HoSpecialChars.vue?vue&type=script&lang=js&
|
|
16896
|
+
|
|
16897
|
+
|
|
16898
|
+
|
|
16899
|
+
/* harmony default export */ var HoSpecialCharsvue_type_script_lang_js_ = ({
|
|
16900
|
+
name: 'HoSpecialChars',
|
|
16901
|
+
data: function data() {
|
|
16902
|
+
return {
|
|
16903
|
+
animationClassNames: 'control-modal-contents special-chars-modal animation-in',
|
|
16904
|
+
arrChars: ['㎎', '㎏', '㎜', '㎝', '㎞', '㎡', '㏄', '㏎', '㏑', '㏒', '㏕', '℡'],
|
|
16905
|
+
specialChars: ['、', '。', '·', 'ˉ', 'ˇ', '¨', '〃', '々', '—', '~', '‖', '…', '‘', '’', '“', '”', '〔', '〕', '〈', '〉', '《', '》', '{', '}', '【', '】', '〖', '〗', '「', '」', '『', '』', '﹂', '﹁', '└', '┐', '┌', '┘', '|', '±', '×', '÷', '∶', '∧', '∨', '∑', '∏', '∪', '∩', '∈', 'α', 'β', 'γ', 'λ', '∷', '√', '⊥', '∥', '∠', '⌒', '⊙', '○', '◎', '□', '∫', '∮', '≡', '≌', '≈', '∽', '∝', '≠', '≮', '≯', '≤', '≥', '∞', '∵', '∴', '♂', '♀', '°', '•', '●', '′', '″', '℃', '$', '¥', '¤', '¢', '£', '‰', '%', '§', '№', '#', '※', '→', '←', '↑', '↓', '℡', '▽', '△', '/', '∕', '㎎', '㎏', '㎜', '㎝', '㎞', '㎡', '㏄', '㏎', '㏑', '㏒', '㏕', 'mmol/L', 'μmol/L', 'umol/L', 'pg/ml', 'ng/ml', 'mmHg', 'g/L', 'Cells', 'Φ', '次/分', '?á', '?à', '£L', '?', '??', '+2'],
|
|
16906
|
+
romanChars: ['ⅰ', 'ⅱ', 'ⅲ', 'ⅳ', 'ⅴ', 'ⅵ', 'ⅶ', 'ⅷ', 'ⅸ', 'ⅹ', 'Ⅰ', 'Ⅱ', 'Ⅲ', 'Ⅳ', 'Ⅴ', 'Ⅵ', 'Ⅶ', 'Ⅷ', 'Ⅸ', 'Ⅹ', 'Ⅺ', 'Ⅻ'],
|
|
16907
|
+
usedChars: [],
|
|
16908
|
+
mathChars: ['⒈', '⒉', '⒊', '⒋', '⒌', '⒍', '⒎', '⒏', '⒐', '⒑', '⒒', '⒓', '⒔', '⒕', '⒖', '⒗', '⒘', '⒙', '⒚', '⒛', '⑴', '⑵', '⑶', '⑷', '⑸', '⑹', '⑺', '⑻', '⑼', '⑽', '⑾', '⑿', '⒀', '⒁', '⒂', '⒃', '⒄', '⒅', '⒆', '⒇', '①', '②', '③', '④', '⑤', '⑥', '⑦', '⑧', '⑨', '⑩', '㈠', '㈡', '㈢', '㈣', '㈤', '㈥', '㈦', '㈧', '㈨', '㈩']
|
|
16909
|
+
};
|
|
16910
|
+
},
|
|
16911
|
+
inject: ['hoEditorProvider'],
|
|
16912
|
+
props: {
|
|
16913
|
+
hoEditorFactoryId: {
|
|
16914
|
+
required: true,
|
|
16915
|
+
default: ''
|
|
16916
|
+
},
|
|
16917
|
+
controlStatus: {
|
|
16918
|
+
required: true,
|
|
16919
|
+
default: ''
|
|
16920
|
+
},
|
|
16921
|
+
vueController: {
|
|
16922
|
+
required: true
|
|
16923
|
+
}
|
|
16924
|
+
},
|
|
16925
|
+
mounted: function mounted() {},
|
|
16926
|
+
methods: {
|
|
16927
|
+
specialCharsClick: function specialCharsClick(chars) {
|
|
16928
|
+
this.vueController.insertSpecialChars('', chars);
|
|
16929
|
+
if (this.usedChars.includes(chars)) {
|
|
16930
|
+
return false;
|
|
16931
|
+
}
|
|
16932
|
+
this.usedChars.unshift(chars);
|
|
16933
|
+
if (this.usedChars.length > 22) {
|
|
16934
|
+
this.usedChars.pop();
|
|
16935
|
+
}
|
|
16936
|
+
},
|
|
16937
|
+
handleClose: function handleClose() {
|
|
16938
|
+
this.animationClassNames = 'control-modal-contents special-chars-modal animation-out';
|
|
16939
|
+
this.$emit('closed');
|
|
16940
|
+
}
|
|
16941
|
+
}
|
|
16942
|
+
});
|
|
16943
|
+
;// CONCATENATED MODULE: ./src/components/controls/specialChars/HoSpecialChars.vue?vue&type=script&lang=js&
|
|
16944
|
+
/* harmony default export */ var specialChars_HoSpecialCharsvue_type_script_lang_js_ = (HoSpecialCharsvue_type_script_lang_js_);
|
|
16945
|
+
;// 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/specialChars/HoSpecialChars.vue?vue&type=style&index=0&id=080be996&prod&lang=less&
|
|
16946
|
+
// extracted by mini-css-extract-plugin
|
|
16947
|
+
|
|
16948
|
+
;// CONCATENATED MODULE: ./src/components/controls/specialChars/HoSpecialChars.vue?vue&type=style&index=0&id=080be996&prod&lang=less&
|
|
16949
|
+
|
|
16950
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
16951
|
+
var componentNormalizer = __webpack_require__(70713);
|
|
16952
|
+
;// CONCATENATED MODULE: ./src/components/controls/specialChars/HoSpecialChars.vue
|
|
16953
|
+
|
|
16954
|
+
|
|
16955
|
+
|
|
16956
|
+
;
|
|
16957
|
+
|
|
16958
|
+
|
|
16959
|
+
/* normalize component */
|
|
16960
|
+
|
|
16961
|
+
var component = (0,componentNormalizer/* default */.Z)(
|
|
16962
|
+
specialChars_HoSpecialCharsvue_type_script_lang_js_,
|
|
16963
|
+
render,
|
|
16964
|
+
staticRenderFns,
|
|
16965
|
+
false,
|
|
16966
|
+
null,
|
|
16967
|
+
null,
|
|
16968
|
+
null
|
|
16969
|
+
|
|
16970
|
+
)
|
|
16971
|
+
|
|
16972
|
+
/* harmony default export */ var HoSpecialChars = (component.exports);
|
|
16973
|
+
|
|
16974
|
+
/***/ }),
|
|
16975
|
+
|
|
16802
16976
|
/***/ 97628:
|
|
16803
16977
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
16804
16978
|
|
|
@@ -18279,7 +18453,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
18279
18453
|
|
|
18280
18454
|
/***/ }),
|
|
18281
18455
|
|
|
18282
|
-
/***/
|
|
18456
|
+
/***/ 83316:
|
|
18283
18457
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18284
18458
|
|
|
18285
18459
|
"use strict";
|
|
@@ -18295,7 +18469,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
18295
18469
|
var es_array_includes = __webpack_require__(26699);
|
|
18296
18470
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
18297
18471
|
var es_string_includes = __webpack_require__(32023);
|
|
18298
|
-
;// 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/table/TableCellProperty.vue?vue&type=template&id=
|
|
18472
|
+
;// 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/table/TableCellProperty.vue?vue&type=template&id=e618a5b6&
|
|
18299
18473
|
|
|
18300
18474
|
|
|
18301
18475
|
var render = function render() {
|
|
@@ -18686,13 +18860,11 @@ var render = function render() {
|
|
|
18686
18860
|
attrs: {
|
|
18687
18861
|
"value": 2
|
|
18688
18862
|
}
|
|
18689
|
-
}, [_vm._v("日期")])
|
|
18690
|
-
|
|
18691
|
-
|
|
18692
|
-
|
|
18693
|
-
|
|
18694
|
-
expression: "editorProperty === 1"
|
|
18695
|
-
}],
|
|
18863
|
+
}, [_vm._v("日期")]), _c('a-select-option', {
|
|
18864
|
+
attrs: {
|
|
18865
|
+
"value": 3
|
|
18866
|
+
}
|
|
18867
|
+
}, [_vm._v("计算公式")])], 1)], 1), _vm.editorProperty === 1 ? [_c('li', {
|
|
18696
18868
|
staticClass: "control-item"
|
|
18697
18869
|
}, [_c('div', {
|
|
18698
18870
|
staticClass: "control-item"
|
|
@@ -18734,12 +18906,6 @@ var render = function render() {
|
|
|
18734
18906
|
"value": "-"
|
|
18735
18907
|
}
|
|
18736
18908
|
}, [_vm._v("-")])], 1)], 1)]), _c('li', {
|
|
18737
|
-
directives: [{
|
|
18738
|
-
name: "show",
|
|
18739
|
-
rawName: "v-show",
|
|
18740
|
-
value: _vm.editorProperty === 1,
|
|
18741
|
-
expression: "editorProperty === 1"
|
|
18742
|
-
}],
|
|
18743
18909
|
staticClass: "control-item"
|
|
18744
18910
|
}, [_c('a-checkbox', {
|
|
18745
18911
|
model: {
|
|
@@ -18766,12 +18932,6 @@ var render = function render() {
|
|
|
18766
18932
|
expression: "canModifyContent"
|
|
18767
18933
|
}
|
|
18768
18934
|
}, [_vm._v("用户可以直接编辑修改内容")])], 1), _c('li', {
|
|
18769
|
-
directives: [{
|
|
18770
|
-
name: "show",
|
|
18771
|
-
rawName: "v-show",
|
|
18772
|
-
value: _vm.editorProperty === 1,
|
|
18773
|
-
expression: "editorProperty === 1"
|
|
18774
|
-
}],
|
|
18775
18935
|
staticClass: "control-item"
|
|
18776
18936
|
}, [_c('span', {
|
|
18777
18937
|
staticClass: "label"
|
|
@@ -18787,12 +18947,6 @@ var render = function render() {
|
|
|
18787
18947
|
expression: "source"
|
|
18788
18948
|
}
|
|
18789
18949
|
})], 1), _c('li', {
|
|
18790
|
-
directives: [{
|
|
18791
|
-
name: "show",
|
|
18792
|
-
rawName: "v-show",
|
|
18793
|
-
value: _vm.editorProperty === 1,
|
|
18794
|
-
expression: "editorProperty === 1"
|
|
18795
|
-
}],
|
|
18796
18950
|
staticClass: "control-item"
|
|
18797
18951
|
}, [_c('a-table', {
|
|
18798
18952
|
staticStyle: {
|
|
@@ -18915,7 +19069,7 @@ var render = function render() {
|
|
|
18915
19069
|
}
|
|
18916
19070
|
}, [_vm._v("删除")]) : _vm._e()];
|
|
18917
19071
|
}
|
|
18918
|
-
}])
|
|
19072
|
+
}], null, false, 400672906)
|
|
18919
19073
|
}, [_c('template', {
|
|
18920
19074
|
slot: "customNum"
|
|
18921
19075
|
}, [_c('div', [_c('span', {
|
|
@@ -18934,13 +19088,7 @@ var render = function render() {
|
|
|
18934
19088
|
attrs: {
|
|
18935
19089
|
"type": "question-circle"
|
|
18936
19090
|
}
|
|
18937
|
-
})], 2)], 1)])], 2)], 1)
|
|
18938
|
-
directives: [{
|
|
18939
|
-
name: "show",
|
|
18940
|
-
rawName: "v-show",
|
|
18941
|
-
value: _vm.editorProperty === 2,
|
|
18942
|
-
expression: "editorProperty === 2"
|
|
18943
|
-
}],
|
|
19091
|
+
})], 2)], 1)])], 2)], 1)] : _vm.editorProperty === 2 ? [_c('li', {
|
|
18944
19092
|
staticClass: "control-item"
|
|
18945
19093
|
}, [_c('div', {
|
|
18946
19094
|
staticClass: "control-item"
|
|
@@ -18969,12 +19117,6 @@ var render = function render() {
|
|
|
18969
19117
|
}
|
|
18970
19118
|
}, [_vm._v(_vm._s(item))]);
|
|
18971
19119
|
}), 1)], 1)]), _c('li', {
|
|
18972
|
-
directives: [{
|
|
18973
|
-
name: "show",
|
|
18974
|
-
rawName: "v-show",
|
|
18975
|
-
value: _vm.editorProperty === 2,
|
|
18976
|
-
expression: "editorProperty === 2"
|
|
18977
|
-
}],
|
|
18978
19120
|
staticClass: "control-item"
|
|
18979
19121
|
}, [_c('div', {
|
|
18980
19122
|
staticClass: "control-item"
|
|
@@ -18986,7 +19128,22 @@ var render = function render() {
|
|
|
18986
19128
|
},
|
|
18987
19129
|
expression: "isAutoInputCurDate"
|
|
18988
19130
|
}
|
|
18989
|
-
}, [_vm._v("双击设置当前日期时间")])], 1)])]
|
|
19131
|
+
}, [_vm._v("双击设置当前日期时间")])], 1)])] : _vm.editorProperty === 3 ? [_c('li', {
|
|
19132
|
+
staticClass: "control-item"
|
|
19133
|
+
}, [_c('span', {
|
|
19134
|
+
staticClass: "label"
|
|
19135
|
+
}, [_vm._v("公式")]), _c('a-input', {
|
|
19136
|
+
attrs: {
|
|
19137
|
+
"size": "small"
|
|
19138
|
+
},
|
|
19139
|
+
model: {
|
|
19140
|
+
value: _vm.formula,
|
|
19141
|
+
callback: function callback($$v) {
|
|
19142
|
+
_vm.formula = $$v;
|
|
19143
|
+
},
|
|
19144
|
+
expression: "formula"
|
|
19145
|
+
}
|
|
19146
|
+
})], 1)] : _vm._e()], 2)]), _c('a-tab-pane', {
|
|
18990
19147
|
key: "2",
|
|
18991
19148
|
attrs: {
|
|
18992
19149
|
"tab": "斜分割线"
|
|
@@ -19103,7 +19260,7 @@ var render = function render() {
|
|
|
19103
19260
|
};
|
|
19104
19261
|
var staticRenderFns = [];
|
|
19105
19262
|
|
|
19106
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=
|
|
19263
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=e618a5b6&
|
|
19107
19264
|
|
|
19108
19265
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 3 modules
|
|
19109
19266
|
var slicedToArray = __webpack_require__(27222);
|
|
@@ -19263,9 +19420,11 @@ var columns = [{
|
|
|
19263
19420
|
obliqueSplitLine: 0,
|
|
19264
19421
|
// 斜分割线
|
|
19265
19422
|
endPath: '',
|
|
19266
|
-
tableInfo: null
|
|
19423
|
+
tableInfo: null,
|
|
19424
|
+
formula: '' // 公式
|
|
19267
19425
|
};
|
|
19268
19426
|
},
|
|
19427
|
+
|
|
19269
19428
|
inject: ['hoEditorProvider'],
|
|
19270
19429
|
computed: {
|
|
19271
19430
|
customProperties: function customProperties() {
|
|
@@ -19304,6 +19463,7 @@ var columns = [{
|
|
|
19304
19463
|
} else {
|
|
19305
19464
|
this.gridLineDisplay = [true, true, true, true];
|
|
19306
19465
|
}
|
|
19466
|
+
this.formula = cellNode.cellProperty.formula;
|
|
19307
19467
|
this.backColor = cellNode.cellProperty.backColor ? cellNode.cellProperty.backColor : '#ffffff';
|
|
19308
19468
|
this.gridLinesStyle = cellNode.cellProperty.gridLinesStyle;
|
|
19309
19469
|
this.span = cellNode.cellProperty.span;
|
|
@@ -19450,6 +19610,7 @@ var columns = [{
|
|
|
19450
19610
|
title: this.title,
|
|
19451
19611
|
customProperties: this.customProperties,
|
|
19452
19612
|
// dataSource: this.dataSource,
|
|
19613
|
+
formula: this.formula,
|
|
19453
19614
|
align: this.align,
|
|
19454
19615
|
backColor: this.backColor,
|
|
19455
19616
|
cellInnerMargin: [this.cellTop, this.cellBottom, this.cellLeft, this.cellRight],
|
|
@@ -19502,10 +19663,10 @@ var columns = [{
|
|
|
19502
19663
|
});
|
|
19503
19664
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=script&lang=js&
|
|
19504
19665
|
/* harmony default export */ var table_TableCellPropertyvue_type_script_lang_js_ = (TableCellPropertyvue_type_script_lang_js_);
|
|
19505
|
-
;// 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/table/TableCellProperty.vue?vue&type=style&index=0&id=
|
|
19666
|
+
;// 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/table/TableCellProperty.vue?vue&type=style&index=0&id=e618a5b6&prod&lang=less&
|
|
19506
19667
|
// extracted by mini-css-extract-plugin
|
|
19507
19668
|
|
|
19508
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=
|
|
19669
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=e618a5b6&prod&lang=less&
|
|
19509
19670
|
|
|
19510
19671
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
19511
19672
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -32033,7 +32194,7 @@ var CommonData = /*#__PURE__*/function () {
|
|
|
32033
32194
|
|
|
32034
32195
|
/***/ }),
|
|
32035
32196
|
|
|
32036
|
-
/***/
|
|
32197
|
+
/***/ 97036:
|
|
32037
32198
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
32038
32199
|
|
|
32039
32200
|
"use strict";
|
|
@@ -32058,14 +32219,14 @@ var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(77203);
|
|
|
32058
32219
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
32059
32220
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
32060
32221
|
var es_function_name = __webpack_require__(68309);
|
|
32061
|
-
;// 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/common/holink/HoLink.vue?vue&type=template&id=
|
|
32222
|
+
;// 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/common/holink/HoLink.vue?vue&type=template&id=f23f6bbc&
|
|
32062
32223
|
|
|
32063
32224
|
var render = function render() {
|
|
32064
32225
|
var _vm = this,
|
|
32065
32226
|
_c = _vm._self._c;
|
|
32066
32227
|
return _c('div', {
|
|
32067
32228
|
ref: "toolModals",
|
|
32068
|
-
staticClass: "control-modal",
|
|
32229
|
+
staticClass: "control-modal ho-create-control-modal",
|
|
32069
32230
|
attrs: {
|
|
32070
32231
|
"id": "hoHoLinkBox"
|
|
32071
32232
|
},
|
|
@@ -32136,7 +32297,7 @@ var render = function render() {
|
|
|
32136
32297
|
};
|
|
32137
32298
|
var staticRenderFns = [];
|
|
32138
32299
|
|
|
32139
|
-
;// CONCATENATED MODULE: ./src/components/common/holink/HoLink.vue?vue&type=template&id=
|
|
32300
|
+
;// CONCATENATED MODULE: ./src/components/common/holink/HoLink.vue?vue&type=template&id=f23f6bbc&
|
|
32140
32301
|
|
|
32141
32302
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
32142
32303
|
var util = __webpack_require__(62783);
|
|
@@ -32194,10 +32355,10 @@ var appendToBody = __webpack_require__(95677);
|
|
|
32194
32355
|
});
|
|
32195
32356
|
;// CONCATENATED MODULE: ./src/components/common/holink/HoLink.vue?vue&type=script&lang=js&
|
|
32196
32357
|
/* harmony default export */ var holink_HoLinkvue_type_script_lang_js_ = (HoLinkvue_type_script_lang_js_);
|
|
32197
|
-
;// 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/common/holink/HoLink.vue?vue&type=style&index=0&id=
|
|
32358
|
+
;// 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/common/holink/HoLink.vue?vue&type=style&index=0&id=f23f6bbc&prod&lang=less&
|
|
32198
32359
|
// extracted by mini-css-extract-plugin
|
|
32199
32360
|
|
|
32200
|
-
;// CONCATENATED MODULE: ./src/components/common/holink/HoLink.vue?vue&type=style&index=0&id=
|
|
32361
|
+
;// CONCATENATED MODULE: ./src/components/common/holink/HoLink.vue?vue&type=style&index=0&id=f23f6bbc&prod&lang=less&
|
|
32201
32362
|
|
|
32202
32363
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
32203
32364
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -32262,7 +32423,7 @@ var $HoLink = {
|
|
|
32262
32423
|
|
|
32263
32424
|
/***/ }),
|
|
32264
32425
|
|
|
32265
|
-
/***/
|
|
32426
|
+
/***/ 73126:
|
|
32266
32427
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
32267
32428
|
|
|
32268
32429
|
"use strict";
|
|
@@ -32285,13 +32446,13 @@ var es_string_iterator = __webpack_require__(78783);
|
|
|
32285
32446
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
32286
32447
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(77203);
|
|
32287
32448
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
32288
|
-
;// 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/common/rarewords/index.vue?vue&type=template&id=
|
|
32449
|
+
;// 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/common/rarewords/index.vue?vue&type=template&id=4eb1d29f&
|
|
32289
32450
|
var render = function render() {
|
|
32290
32451
|
var _vm = this,
|
|
32291
32452
|
_c = _vm._self._c;
|
|
32292
32453
|
return _c('div', {
|
|
32293
32454
|
ref: "toolModals",
|
|
32294
|
-
staticClass: "control-modal",
|
|
32455
|
+
staticClass: "control-modal ho-create-control-modal",
|
|
32295
32456
|
attrs: {
|
|
32296
32457
|
"id": "hoRarewordsBox"
|
|
32297
32458
|
},
|
|
@@ -32358,7 +32519,7 @@ var staticRenderFns = [function () {
|
|
|
32358
32519
|
})]);
|
|
32359
32520
|
}];
|
|
32360
32521
|
|
|
32361
|
-
;// CONCATENATED MODULE: ./src/components/common/rarewords/index.vue?vue&type=template&id=
|
|
32522
|
+
;// CONCATENATED MODULE: ./src/components/common/rarewords/index.vue?vue&type=template&id=4eb1d29f&
|
|
32362
32523
|
|
|
32363
32524
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
32364
32525
|
var util = __webpack_require__(62783);
|
|
@@ -32412,10 +32573,10 @@ var appendToBody = __webpack_require__(95677);
|
|
|
32412
32573
|
});
|
|
32413
32574
|
;// CONCATENATED MODULE: ./src/components/common/rarewords/index.vue?vue&type=script&lang=js&
|
|
32414
32575
|
/* harmony default export */ var common_rarewordsvue_type_script_lang_js_ = (rarewordsvue_type_script_lang_js_);
|
|
32415
|
-
;// 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/common/rarewords/index.vue?vue&type=style&index=0&id=
|
|
32576
|
+
;// 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/common/rarewords/index.vue?vue&type=style&index=0&id=4eb1d29f&prod&lang=less&
|
|
32416
32577
|
// extracted by mini-css-extract-plugin
|
|
32417
32578
|
|
|
32418
|
-
;// CONCATENATED MODULE: ./src/components/common/rarewords/index.vue?vue&type=style&index=0&id=
|
|
32579
|
+
;// CONCATENATED MODULE: ./src/components/common/rarewords/index.vue?vue&type=style&index=0&id=4eb1d29f&prod&lang=less&
|
|
32419
32580
|
|
|
32420
32581
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
32421
32582
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -36985,7 +37146,7 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
36985
37146
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80543);
|
|
36986
37147
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(81448);
|
|
36987
37148
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(94310);
|
|
36988
|
-
/* harmony import */ var
|
|
37149
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(40735);
|
|
36989
37150
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(70280);
|
|
36990
37151
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(66298);
|
|
36991
37152
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(78255);
|
|
@@ -37096,8 +37257,6 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
37096
37257
|
/* harmony import */ var _utils_StructureNode__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(63602);
|
|
37097
37258
|
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(51760);
|
|
37098
37259
|
/* harmony import */ var _plugins_util__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(62783);
|
|
37099
|
-
/* harmony import */ var _draw_drawArea_DrawPageMainDoc__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(77441);
|
|
37100
|
-
|
|
37101
37260
|
|
|
37102
37261
|
|
|
37103
37262
|
|
|
@@ -37339,16 +37498,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37339
37498
|
value: function keyBoardInput(text) {
|
|
37340
37499
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_80__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37341
37500
|
var domRange = hoEditorFactory.docTree.curDomRange;
|
|
37342
|
-
var drawPage = hoEditorFactory.drawTree.activePage;
|
|
37343
|
-
if (drawPage) {
|
|
37344
|
-
var dNode = hoEditorFactory.drawTree.getDNodeByPath(domRange.endPath);
|
|
37345
|
-
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(dNode);
|
|
37346
|
-
var stagePt = dline.localToGlobal(dNode.x, dNode.y);
|
|
37347
|
-
var result = hoEditorFactory.vueController.isCanEdit(drawPage.pageIndex, stagePt.x, stagePt.y);
|
|
37348
|
-
if (!result) return;
|
|
37349
|
-
}
|
|
37350
37501
|
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_94__/* .PaintState */ .Dh.psReview) {
|
|
37351
|
-
|
|
37502
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('质控医生站的病历只可进行批注不可编辑修改');
|
|
37352
37503
|
return;
|
|
37353
37504
|
}
|
|
37354
37505
|
// alert(text);
|
|
@@ -37385,7 +37536,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37385
37536
|
var isAllowEdit = colProperty.downListProperty.canModifyContent;
|
|
37386
37537
|
//const cellText = cellNode.getCellText();
|
|
37387
37538
|
if (!isAllowEdit) {
|
|
37388
|
-
|
|
37539
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('不允许用户直接编辑,请双击单元格进行选择.');
|
|
37389
37540
|
return;
|
|
37390
37541
|
}
|
|
37391
37542
|
}
|
|
@@ -37393,7 +37544,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37393
37544
|
var _isAllowEdit = cellProperty.downListProperty.canModifyContent;
|
|
37394
37545
|
//const cellText = cellNode.getCellText();
|
|
37395
37546
|
if (!_isAllowEdit) {
|
|
37396
|
-
|
|
37547
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('不允许用户直接编辑,请双击单元格进行选择.');
|
|
37397
37548
|
return;
|
|
37398
37549
|
}
|
|
37399
37550
|
}
|
|
@@ -37471,7 +37622,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37471
37622
|
}
|
|
37472
37623
|
}, {
|
|
37473
37624
|
key: "insertALine",
|
|
37474
|
-
value: function insertALine(hoEditorFactory, path, lineText, roots, pNode, curTextStyle, node, childIndex, isEndLine, aresolve, oldCanModifyContent, isUpdate,
|
|
37625
|
+
value: function insertALine(hoEditorFactory, path, lineText, roots, pNode, curTextStyle, node, childIndex, isEndLine, aresolve, oldCanModifyContent, isUpdate, oper) {
|
|
37475
37626
|
var _this = this;
|
|
37476
37627
|
var arrSubString = new Array();
|
|
37477
37628
|
arrSubString.push([0, lineText]);
|
|
@@ -37527,7 +37678,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37527
37678
|
strPath = hoEditorFactory.docTree.getNodeLastPath(textNode);
|
|
37528
37679
|
} else {
|
|
37529
37680
|
var _textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_31__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_28__/* .NodeType */ .Jq.ntText, aText, hoEditorFactory.docTree.curStyleIndex);
|
|
37530
|
-
strPath = _this.insertNodeByPath(strPath, _textNode, isUpdate, isHasRelateEle && index >= 1 ? true : false
|
|
37681
|
+
strPath = _this.insertNodeByPath(strPath, _textNode, isUpdate, isHasRelateEle && index >= 1 ? true : false);
|
|
37531
37682
|
}
|
|
37532
37683
|
} else {
|
|
37533
37684
|
var styleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
@@ -37540,7 +37691,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37540
37691
|
styleIndex = hoEditorFactory.docTree.styleCompare(newStyle);
|
|
37541
37692
|
}
|
|
37542
37693
|
var _textNode2 = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_31__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_28__/* .NodeType */ .Jq.ntText, aText, styleIndex);
|
|
37543
|
-
strPath = _this.insertNodeByPath(strPath, _textNode2, isUpdate, isHasRelateEle && index >= 1 ? true : false
|
|
37694
|
+
strPath = _this.insertNodeByPath(strPath, _textNode2, isUpdate, isHasRelateEle && index >= 1 ? true : false);
|
|
37544
37695
|
}
|
|
37545
37696
|
// if (index === arrSubString.length - 1 && isEndLine && oldCanModifyContent !== undefined && pNode instanceof TextInputFieldNode) {
|
|
37546
37697
|
// pNode.canModifyContent = oldCanModifyContent;
|
|
@@ -37586,7 +37737,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37586
37737
|
*/
|
|
37587
37738
|
}, {
|
|
37588
37739
|
key: "insertPlainTextAfterPath",
|
|
37589
|
-
value: function insertPlainTextAfterPath(path, text, oldCanModifyContent,
|
|
37740
|
+
value: function insertPlainTextAfterPath(path, text, oldCanModifyContent, oper) {
|
|
37590
37741
|
var _this2 = this;
|
|
37591
37742
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_80__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37592
37743
|
if (text === '') {
|
|
@@ -37672,7 +37823,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37672
37823
|
isUpdate = false;
|
|
37673
37824
|
}
|
|
37674
37825
|
}
|
|
37675
|
-
strPath = _this2.insertALine(hoEditorFactory, strPath, text, nodePosition.roots, pNode, curTextStyle, node, nodePosition.childIndex, index === lines.length - 1, resolve, oldCanModifyContent, isUpdate,
|
|
37826
|
+
strPath = _this2.insertALine(hoEditorFactory, strPath, text, nodePosition.roots, pNode, curTextStyle, node, nodePosition.childIndex, index === lines.length - 1, resolve, oldCanModifyContent, isUpdate, oper);
|
|
37676
37827
|
}
|
|
37677
37828
|
});
|
|
37678
37829
|
});
|
|
@@ -37709,21 +37860,24 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37709
37860
|
var toPath = hoEditorFactory.docTree.getToPath(keyValue, startPath);
|
|
37710
37861
|
newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_34__/* .DomRange */ .a(this._hoEditorFactoryID, toPath, toPath);
|
|
37711
37862
|
}
|
|
37712
|
-
|
|
37713
|
-
if (superiorSign.length > 0 && superiorSign[0].imgSrc != "") {
|
|
37714
|
-
|
|
37715
|
-
|
|
37716
|
-
|
|
37717
|
-
|
|
37718
|
-
|
|
37719
|
-
|
|
37720
|
-
|
|
37721
|
-
|
|
37722
|
-
|
|
37723
|
-
|
|
37724
|
-
|
|
37725
|
-
|
|
37726
|
-
}
|
|
37863
|
+
// const superiorSign = hoEditorFactory.structureConvert._superiorSign;
|
|
37864
|
+
// if (superiorSign.length > 0 && (superiorSign[0] as SignNode).imgSrc != "") {
|
|
37865
|
+
// if (hoEditorFactory.drawTree.paintStatus === PaintState.psEdit
|
|
37866
|
+
// || hoEditorFactory.drawTree.paintStatus === PaintState.psReview
|
|
37867
|
+
// || hoEditorFactory.drawTree.paintStatus === PaintState.psTrace
|
|
37868
|
+
// ) {
|
|
37869
|
+
// const dNode = hoEditorFactory.drawTree.getDNodeByPath(newRange.endPath);
|
|
37870
|
+
// const area = hoEditorFactory.drawPageTree.getMainRootArea(dNode);
|
|
37871
|
+
// const dline = hoEditorFactory.drawTree.getDrawLineByDNode(dNode);
|
|
37872
|
+
// const stagePt = dline.localToGlobal(dNode.x, dNode.y);
|
|
37873
|
+
// if (area && area instanceof DrawPageMainDoc) {
|
|
37874
|
+
// const result = hoEditorFactory.vueController.isCanEdit(area.pageIndex, stagePt.y);
|
|
37875
|
+
// if (!result) {
|
|
37876
|
+
// return;
|
|
37877
|
+
// }
|
|
37878
|
+
// }
|
|
37879
|
+
// }
|
|
37880
|
+
// }
|
|
37727
37881
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
37728
37882
|
//const cgEvent = new SelectionChangeEvent(oldRange, newRange); //选中范围变化事件
|
|
37729
37883
|
//hoEditorFactory.docTree.selectChange(cgEvent);
|
|
@@ -37743,20 +37897,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37743
37897
|
domRange = domRange.normalize();
|
|
37744
37898
|
} else if ((hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_94__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_94__/* .PaintState */ .Dh.psTrace) && !(domRange.npStart.node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_87__/* .SignNode */ .N)) {
|
|
37745
37899
|
if (domRange.npStart.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_31__/* .TextNode */ .R && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== undefined && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== -1) {} else {
|
|
37746
|
-
|
|
37900
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('审阅模式下,只能选中文档内容进行删除');
|
|
37747
37901
|
return;
|
|
37748
37902
|
}
|
|
37749
37903
|
}
|
|
37750
37904
|
startPath = domRange.startPath;
|
|
37751
37905
|
endPath = domRange.endPath;
|
|
37752
|
-
var drawPage = hoEditorFactory.drawTree.activePage;
|
|
37753
|
-
if (drawPage) {
|
|
37754
|
-
var dNode = hoEditorFactory.drawTree.getDNodeByPath(endPath);
|
|
37755
|
-
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(dNode);
|
|
37756
|
-
var stagePt = dline.localToGlobal(dNode.x, dNode.y);
|
|
37757
|
-
var result = hoEditorFactory.vueController.isCanEdit(drawPage.pageIndex, stagePt.x, stagePt.y);
|
|
37758
|
-
if (!result) return;
|
|
37759
|
-
}
|
|
37760
37906
|
var changingEvent = new _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_27__/* .NodeChangingEvent */ .Q(_DocTree__WEBPACK_IMPORTED_MODULE_30__/* .DocAction */ .gk.daInsert, startPath, endPath, _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_27__/* .OperType */ .y.keyBoardDelete);
|
|
37761
37907
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
37762
37908
|
if (keyValue === 'Backspace') {
|
|
@@ -37976,7 +38122,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37976
38122
|
_context.next = 86;
|
|
37977
38123
|
break;
|
|
37978
38124
|
}
|
|
37979
|
-
|
|
38125
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('审阅模式下,只能对文本内容进行删除');
|
|
37980
38126
|
return _context.abrupt("return");
|
|
37981
38127
|
case 86:
|
|
37982
38128
|
if (!((hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_94__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_94__/* .PaintState */ .Dh.psTrace) && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_87__/* .SignNode */ .N)) {
|
|
@@ -37988,21 +38134,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37988
38134
|
_context.next = 91;
|
|
37989
38135
|
break;
|
|
37990
38136
|
}
|
|
37991
|
-
|
|
38137
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('不是本人签名,不允许删除!');
|
|
37992
38138
|
return _context.abrupt("return");
|
|
37993
38139
|
case 91:
|
|
37994
38140
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_94__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_87__/* .SignNode */ .N)) {
|
|
37995
38141
|
_context.next = 94;
|
|
37996
38142
|
break;
|
|
37997
38143
|
}
|
|
37998
|
-
|
|
38144
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('不允许使用删除键删除签名,请右键删除元素');
|
|
37999
38145
|
return _context.abrupt("return");
|
|
38000
38146
|
case 94:
|
|
38001
38147
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_94__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_87__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
38002
38148
|
_context.next = 97;
|
|
38003
38149
|
break;
|
|
38004
38150
|
}
|
|
38005
|
-
|
|
38151
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('该签名元素不允许删除!');
|
|
38006
38152
|
return _context.abrupt("return");
|
|
38007
38153
|
case 97:
|
|
38008
38154
|
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_87__/* .SignNode */ .N)) {
|
|
@@ -38884,11 +39030,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38884
39030
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
38885
39031
|
var parentNode = hoEditorFactory.docTree.getParentNode(arange.startPath);
|
|
38886
39032
|
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_49__/* .TextInputFieldNode */ .re) {
|
|
38887
|
-
|
|
39033
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('不允许在文本域内插入表格');
|
|
38888
39034
|
return;
|
|
38889
39035
|
}
|
|
38890
39036
|
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_60__/* .CellNode */ .D) {
|
|
38891
|
-
|
|
39037
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('不允许在表格内再插入表格');
|
|
38892
39038
|
return;
|
|
38893
39039
|
}
|
|
38894
39040
|
// const nextParaNode = new ParagraphNode(
|
|
@@ -38952,7 +39098,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38952
39098
|
c = _cell$table$getCellIn2[1];
|
|
38953
39099
|
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_94__/* .PaintState */ .Dh.psEdit && r > 0) {
|
|
38954
39100
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r - 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
38955
|
-
|
|
39101
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
38956
39102
|
return;
|
|
38957
39103
|
}
|
|
38958
39104
|
}
|
|
@@ -39094,7 +39240,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39094
39240
|
// );
|
|
39095
39241
|
// }
|
|
39096
39242
|
} else {
|
|
39097
|
-
|
|
39243
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('表格已设置不允许新增行');
|
|
39098
39244
|
return;
|
|
39099
39245
|
}
|
|
39100
39246
|
}
|
|
@@ -39115,7 +39261,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39115
39261
|
c = _cell$table$getCellIn4[1];
|
|
39116
39262
|
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_94__/* .PaintState */ .Dh.psEdit) {
|
|
39117
39263
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r + 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
39118
|
-
|
|
39264
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
39119
39265
|
return;
|
|
39120
39266
|
}
|
|
39121
39267
|
}
|
|
@@ -39216,7 +39362,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39216
39362
|
// );
|
|
39217
39363
|
// }
|
|
39218
39364
|
} else {
|
|
39219
|
-
|
|
39365
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('表格已设置不允许新增行');
|
|
39220
39366
|
return;
|
|
39221
39367
|
}
|
|
39222
39368
|
}
|
|
@@ -39277,7 +39423,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39277
39423
|
// );
|
|
39278
39424
|
// }
|
|
39279
39425
|
} else {
|
|
39280
|
-
|
|
39426
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('表格已设置不允许新增列');
|
|
39281
39427
|
return;
|
|
39282
39428
|
}
|
|
39283
39429
|
}
|
|
@@ -39335,7 +39481,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39335
39481
|
// );
|
|
39336
39482
|
// }
|
|
39337
39483
|
} else {
|
|
39338
|
-
|
|
39484
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('表格已设置不允许新增列');
|
|
39339
39485
|
return;
|
|
39340
39486
|
}
|
|
39341
39487
|
}
|
|
@@ -39352,7 +39498,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39352
39498
|
r2 = _TableNode$getSelectT2[3],
|
|
39353
39499
|
c2 = _TableNode$getSelectT2[4];
|
|
39354
39500
|
if (!table) {
|
|
39355
|
-
|
|
39501
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格才能删除');
|
|
39356
39502
|
return;
|
|
39357
39503
|
}
|
|
39358
39504
|
// const eParentNode = (aRange.npEnd.node as BaseNode).parentNode;
|
|
@@ -39364,7 +39510,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39364
39510
|
for (var i = r1; i <= r2; i++) {
|
|
39365
39511
|
var rowInfo = table.rowInfos[i];
|
|
39366
39512
|
if (rowInfo.rowProperty.repeatAsTitleAtPageTop) {
|
|
39367
|
-
|
|
39513
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('表头行不允许删除');
|
|
39368
39514
|
return;
|
|
39369
39515
|
}
|
|
39370
39516
|
}
|
|
@@ -39423,7 +39569,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39423
39569
|
r2 = _TableNode$getSelectT4[3],
|
|
39424
39570
|
c2 = _TableNode$getSelectT4[4];
|
|
39425
39571
|
if (!table) {
|
|
39426
|
-
|
|
39572
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格才能删除');
|
|
39427
39573
|
return;
|
|
39428
39574
|
}
|
|
39429
39575
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_80__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -39476,7 +39622,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39476
39622
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
39477
39623
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
39478
39624
|
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_60__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_60__/* .CellNode */ .D) || cell1.table !== cell2.table || cell1 === cell2) {
|
|
39479
|
-
|
|
39625
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的不同单元格才能合并');
|
|
39480
39626
|
return;
|
|
39481
39627
|
}
|
|
39482
39628
|
var _cell1$table$getCellI = cell1.table.getCellInfos(cell1),
|
|
@@ -39528,7 +39674,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39528
39674
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
39529
39675
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
39530
39676
|
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_60__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_60__/* .CellNode */ .D) || cell1.table !== cell2.table) {
|
|
39531
|
-
|
|
39677
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的单元格才能取消合并');
|
|
39532
39678
|
return;
|
|
39533
39679
|
}
|
|
39534
39680
|
var endPath = cell1.table.getNodePath();
|
|
@@ -39836,7 +39982,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39836
39982
|
}
|
|
39837
39983
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
39838
39984
|
if (object.obj2.size === 0) {
|
|
39839
|
-
|
|
39985
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('未能找到指定内容。');
|
|
39840
39986
|
} else {
|
|
39841
39987
|
var nodesMap = object.obj1;
|
|
39842
39988
|
var indexsMap = object.obj2;
|
|
@@ -39897,7 +40043,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39897
40043
|
sNode = startNode.rootNodes[0];
|
|
39898
40044
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
39899
40045
|
if (object.obj2.size === 0) {
|
|
39900
|
-
|
|
40046
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('未能找到指定内容。');
|
|
39901
40047
|
} else {
|
|
39902
40048
|
var nodesMap = object.obj1;
|
|
39903
40049
|
var indexsMap = object.obj2;
|
|
@@ -39949,7 +40095,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39949
40095
|
} finally {
|
|
39950
40096
|
_iterator.f();
|
|
39951
40097
|
}
|
|
39952
|
-
|
|
40098
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.info('成功替换了' + indexsMap.size.toString() + '处文档内容。');
|
|
39953
40099
|
var toPath = hoEditorFactory.docTree.curDomRange.endPath;
|
|
39954
40100
|
hoEditorFactory.drawTree.moveCaretToPath(toPath);
|
|
39955
40101
|
}
|
|
@@ -40317,7 +40463,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40317
40463
|
} else {
|
|
40318
40464
|
var _comment = hoEditorFactory.drawTree.curOnSelectedComment;
|
|
40319
40465
|
if (_comment.userID != hoEditorFactory.userInfo.id) {
|
|
40320
|
-
|
|
40466
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_96__/* ["default"] */ .Z.warn('不允许删除其他用户创建的批注!');
|
|
40321
40467
|
return;
|
|
40322
40468
|
}
|
|
40323
40469
|
del(_comment);
|
|
@@ -41148,9 +41294,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41148
41294
|
node.signTimeFormat = signTimeFormat;
|
|
41149
41295
|
node.attribute = attribute;
|
|
41150
41296
|
node.isFront = isFront;
|
|
41151
|
-
|
|
41152
|
-
node.associatedElement = associatedElement;
|
|
41153
|
-
}
|
|
41297
|
+
node.associatedElement = associatedElement || '';
|
|
41154
41298
|
node.connectMode = connectMode;
|
|
41155
41299
|
node.otherProperties = otherProperties;
|
|
41156
41300
|
hoEditorFactory.docTree.change(changeEvent);
|
|
@@ -45291,7 +45435,7 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
45291
45435
|
/* harmony export */ q5: function() { return /* binding */ SignProperty; },
|
|
45292
45436
|
/* harmony export */ vE: function() { return /* binding */ TableProperty; }
|
|
45293
45437
|
/* harmony export */ });
|
|
45294
|
-
/* unused harmony
|
|
45438
|
+
/* unused harmony exports DataSource, Formula */
|
|
45295
45439
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8495);
|
|
45296
45440
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70280);
|
|
45297
45441
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(66298);
|
|
@@ -45319,7 +45463,7 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
45319
45463
|
/*
|
|
45320
45464
|
* @Author: your name
|
|
45321
45465
|
* @Date: 2020-12-24 16:01:16
|
|
45322
|
-
* @LastEditTime: 2024-04-
|
|
45466
|
+
* @LastEditTime: 2024-04-10 14:43:46
|
|
45323
45467
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
45324
45468
|
* @Description: In User Settings Edit
|
|
45325
45469
|
* @FilePath: \hoeditor-web\src\editor\dom\TableProperty.ts
|
|
@@ -45939,7 +46083,8 @@ var EditorProperty;
|
|
|
45939
46083
|
EditorProperty[EditorProperty["Sign"] = 4] = "Sign";
|
|
45940
46084
|
EditorProperty[EditorProperty["Textarea"] = 5] = "Textarea";
|
|
45941
46085
|
EditorProperty[EditorProperty["OrderNumber"] = 6] = "OrderNumber";
|
|
45942
|
-
|
|
46086
|
+
EditorProperty[EditorProperty["Formula"] = 7] = "Formula";
|
|
46087
|
+
})(EditorProperty || (EditorProperty = {})); //编辑器属性 {无,下拉列表,日期,数值,签名,输入域,次数,计算公式}
|
|
45943
46088
|
var ColProperty = /*#__PURE__*/function () {
|
|
45944
46089
|
//是否锁定
|
|
45945
46090
|
function ColProperty(objectValues //, table: TableNode
|
|
@@ -46120,6 +46265,39 @@ var DiagonalType;
|
|
|
46120
46265
|
DiagonalType[DiagonalType["Left"] = 1] = "Left";
|
|
46121
46266
|
DiagonalType[DiagonalType["Right"] = 2] = "Right";
|
|
46122
46267
|
})(DiagonalType || (DiagonalType = {}));
|
|
46268
|
+
var Formula = /*#__PURE__*/function () {
|
|
46269
|
+
function Formula(objectValues) {
|
|
46270
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, Formula);
|
|
46271
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_formulaStr", "");
|
|
46272
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_oldValue", "");
|
|
46273
|
+
//this._formularType = objectValues["formularType"] ? objectValues["formularType"] : objectValues["_formularType"];
|
|
46274
|
+
this._formulaStr = objectValues["formulaStr"] ? objectValues["formulaStr"] : objectValues["_formulaStr"];
|
|
46275
|
+
}
|
|
46276
|
+
// get formularType(): FormularType {
|
|
46277
|
+
// return this._formularType;
|
|
46278
|
+
// }
|
|
46279
|
+
// set formularType(value: FormularType) {
|
|
46280
|
+
// this._formularType = value;
|
|
46281
|
+
// }
|
|
46282
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(Formula, [{
|
|
46283
|
+
key: "formulaStr",
|
|
46284
|
+
get: function get() {
|
|
46285
|
+
return this._formulaStr;
|
|
46286
|
+
},
|
|
46287
|
+
set: function set(value) {
|
|
46288
|
+
this._formulaStr = value;
|
|
46289
|
+
}
|
|
46290
|
+
}, {
|
|
46291
|
+
key: "oldValue",
|
|
46292
|
+
get: function get() {
|
|
46293
|
+
return this._oldValue;
|
|
46294
|
+
},
|
|
46295
|
+
set: function set(value) {
|
|
46296
|
+
this._oldValue = value;
|
|
46297
|
+
}
|
|
46298
|
+
}]);
|
|
46299
|
+
return Formula;
|
|
46300
|
+
}();
|
|
46123
46301
|
var CellProperty = /*#__PURE__*/function () {
|
|
46124
46302
|
function CellProperty(objectValues //, table: TableNode
|
|
46125
46303
|
) {
|
|
@@ -46156,13 +46334,14 @@ var CellProperty = /*#__PURE__*/function () {
|
|
|
46156
46334
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_downListProperty", void 0);
|
|
46157
46335
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_dateTimeProperty", void 0);
|
|
46158
46336
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_diagonalType", DiagonalType.None);
|
|
46337
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_formula", void 0);
|
|
46159
46338
|
//this._dataSource = new DataSource();
|
|
46160
46339
|
if (objectValues !== "") {
|
|
46161
46340
|
var valuesObj = eval('(' + objectValues + ')');
|
|
46162
46341
|
var assignvalue = function assignvalue(target, source) {
|
|
46163
46342
|
Object.keys(source).forEach(function (value) {
|
|
46164
46343
|
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(target[value]) == 'object') {
|
|
46165
|
-
if (value !== "downListProperty" && value !== "dateTimeProperty" && value !== "numberProperty") {
|
|
46344
|
+
if (value !== "downListProperty" && value !== "dateTimeProperty" && value !== "numberProperty" && value !== "formula") {
|
|
46166
46345
|
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(target[value]) == "object") {
|
|
46167
46346
|
if (value === "gridLinesColor" || value === "cellInnerMargin" || value === "gridLineDisplay") {
|
|
46168
46347
|
target[value] = source[value];
|
|
@@ -46193,6 +46372,9 @@ var CellProperty = /*#__PURE__*/function () {
|
|
|
46193
46372
|
if (valuesObj["editorProperty"] === EditorProperty.DateTime) {
|
|
46194
46373
|
this._dateTimeProperty = new DateTimeProperty(valuesObj["dateTimeProperty"]);
|
|
46195
46374
|
}
|
|
46375
|
+
if (valuesObj["editorProperty"] === EditorProperty.Formula) {
|
|
46376
|
+
this._formula = new Formula(valuesObj["formula"]);
|
|
46377
|
+
}
|
|
46196
46378
|
}
|
|
46197
46379
|
}
|
|
46198
46380
|
// get id(): string {
|
|
@@ -46349,6 +46531,16 @@ var CellProperty = /*#__PURE__*/function () {
|
|
|
46349
46531
|
this._diagonalType = value;
|
|
46350
46532
|
}
|
|
46351
46533
|
}
|
|
46534
|
+
}, {
|
|
46535
|
+
key: "formula",
|
|
46536
|
+
get: function get() {
|
|
46537
|
+
return this._formula;
|
|
46538
|
+
},
|
|
46539
|
+
set: function set(value) {
|
|
46540
|
+
if (this._formula != value) {
|
|
46541
|
+
this._formula = value;
|
|
46542
|
+
}
|
|
46543
|
+
}
|
|
46352
46544
|
}]);
|
|
46353
46545
|
return CellProperty;
|
|
46354
46546
|
}();
|
|
@@ -59031,9 +59223,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
59031
59223
|
_this._allowEditSignTime = allowEditSignTime;
|
|
59032
59224
|
}
|
|
59033
59225
|
_this._otherProperties = new Object();
|
|
59034
|
-
|
|
59035
|
-
_this._associatedElement = associatedElement;
|
|
59036
|
-
}
|
|
59226
|
+
_this._associatedElement = associatedElement || '';
|
|
59037
59227
|
_this._customProperty = new Object();
|
|
59038
59228
|
var assignvalue = function assignvalue(target, source) {
|
|
59039
59229
|
Object.keys(source).forEach(function (value) {
|
|
@@ -60202,21 +60392,11 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60202
60392
|
var arr = new Array();
|
|
60203
60393
|
arr.length = 0;
|
|
60204
60394
|
var value = new Array();
|
|
60205
|
-
//const insertToArr = (str: string) => {
|
|
60206
|
-
// let bInserted = false;
|
|
60207
|
-
// for (let i = 0, ilen = arr.length; i < ilen; i++) {
|
|
60208
|
-
// if (str.length > arr[i].length) continue
|
|
60209
|
-
// else arr.splice(i, 0, str);
|
|
60210
|
-
// }
|
|
60211
|
-
//if (!bInserted)
|
|
60212
|
-
//arr.push(str);
|
|
60213
|
-
//}
|
|
60214
60395
|
var cellArddressRe = new RegExp(/[a-z]+\d+/, 'g');
|
|
60215
60396
|
var strRets = strFormula.matchAll(cellArddressRe);
|
|
60216
60397
|
if (strRets) {
|
|
60217
60398
|
var aRet = strRets.next();
|
|
60218
60399
|
while (!aRet.done) {
|
|
60219
|
-
//insertToArr(aRet.value[0]);
|
|
60220
60400
|
arr.push(aRet.value[0]);
|
|
60221
60401
|
aRet = strRets.next();
|
|
60222
60402
|
}
|
|
@@ -60262,9 +60442,6 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60262
60442
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
60263
60443
|
var isRet = true;
|
|
60264
60444
|
for (var m = 0; m < value.length; m++) {
|
|
60265
|
-
// if (value[m] !== "0") {
|
|
60266
|
-
// isRet = false;
|
|
60267
|
-
// }
|
|
60268
60445
|
if (value[m] !== "") {
|
|
60269
60446
|
isRet = false;
|
|
60270
60447
|
break;
|
|
@@ -63898,6 +64075,8 @@ var es_array_push = __webpack_require__(57658);
|
|
|
63898
64075
|
var es_array_join = __webpack_require__(69600);
|
|
63899
64076
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
63900
64077
|
var es_array_splice = __webpack_require__(40561);
|
|
64078
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
64079
|
+
var es_promise = __webpack_require__(88674);
|
|
63901
64080
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
63902
64081
|
var es_object_assign = __webpack_require__(19601);
|
|
63903
64082
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
@@ -65698,12 +65877,13 @@ function escapeHTML(s) {
|
|
|
65698
65877
|
|
|
65699
65878
|
|
|
65700
65879
|
|
|
65880
|
+
|
|
65701
65881
|
|
|
65702
65882
|
|
|
65703
65883
|
/*
|
|
65704
65884
|
* @Author: your name
|
|
65705
65885
|
* @Date: 2020-11-03 15:17:54
|
|
65706
|
-
* @LastEditTime: 2024-04-
|
|
65886
|
+
* @LastEditTime: 2024-04-11 15:28:21
|
|
65707
65887
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
65708
65888
|
* @Description: In User Settings Edit
|
|
65709
65889
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -66956,7 +67136,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66956
67136
|
key: "setFieldText",
|
|
66957
67137
|
value: function () {
|
|
66958
67138
|
var _setFieldText = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(text, customProperty, keyValue, value, isTrace) {
|
|
66959
|
-
var
|
|
67139
|
+
var _this4 = this;
|
|
67140
|
+
var hoEditorFactory, startPath, oldValue, endPath, aRange, anodes, i, anode, contentMark, styleIndex, contentMarkNode, changes, insertPath, aPromise, k, change;
|
|
66960
67141
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context2) {
|
|
66961
67142
|
while (1) switch (_context2.prev = _context2.next) {
|
|
66962
67143
|
case 0:
|
|
@@ -67021,10 +67202,42 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67021
67202
|
hoEditorFactory.drawTree.moveCaretToPath(startPath);
|
|
67022
67203
|
return _context2.abrupt("return");
|
|
67023
67204
|
case 33:
|
|
67024
|
-
|
|
67025
|
-
|
|
67026
|
-
|
|
67027
|
-
|
|
67205
|
+
if (!isTrace) {
|
|
67206
|
+
_context2.next = 41;
|
|
67207
|
+
break;
|
|
67208
|
+
}
|
|
67209
|
+
changes = diffChars(this.text, text);
|
|
67210
|
+
insertPath = startPath;
|
|
67211
|
+
aPromise = new Promise(function (resolve, reject) {
|
|
67212
|
+
resolve(insertPath);
|
|
67213
|
+
});
|
|
67214
|
+
changes.forEach(function (change) {
|
|
67215
|
+
aPromise = aPromise.then(function (res) {
|
|
67216
|
+
res = insertPath;
|
|
67217
|
+
return new Promise(function (resolve, reject) {
|
|
67218
|
+
var oper = "none";
|
|
67219
|
+
if (change.added) {
|
|
67220
|
+
//新增文本
|
|
67221
|
+
oper = "add";
|
|
67222
|
+
} else if (change.removed) {
|
|
67223
|
+
//删除文本
|
|
67224
|
+
oper = "remove";
|
|
67225
|
+
}
|
|
67226
|
+
hoEditorFactory.docController.insertPlainTextAfterPath(insertPath, text, oldValue, oper);
|
|
67227
|
+
insertPath = hoEditorFactory.docTree.getNodeLastPath(_this4.childNodes[_this4.childNodes.length - 2]);
|
|
67228
|
+
resolve(insertPath);
|
|
67229
|
+
});
|
|
67230
|
+
});
|
|
67231
|
+
});
|
|
67232
|
+
for (k = 0; k < changes.length; k++) {
|
|
67233
|
+
change = changes[k];
|
|
67234
|
+
}
|
|
67235
|
+
_context2.next = 43;
|
|
67236
|
+
break;
|
|
67237
|
+
case 41:
|
|
67238
|
+
_context2.next = 43;
|
|
67239
|
+
return hoEditorFactory.docController.insertPlainTextAfterPath(startPath, text, oldValue);
|
|
67240
|
+
case 43:
|
|
67028
67241
|
case "end":
|
|
67029
67242
|
return _context2.stop();
|
|
67030
67243
|
}
|
|
@@ -70554,6 +70767,7 @@ var SelectRange = /*#__PURE__*/function () {
|
|
|
70554
70767
|
var aPage = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawPageTree.getDrawPageBySelectContainer(SelectRange.shapes[i].parent);
|
|
70555
70768
|
if (aPage) {
|
|
70556
70769
|
aPage.selectContainer.removeChild(SelectRange.shapes[i]);
|
|
70770
|
+
//aPage.selectContainer.removeChild(SelectRange.shapes[i]);
|
|
70557
70771
|
if (pages.indexOf(aPage)) {
|
|
70558
70772
|
pages.push(aPage);
|
|
70559
70773
|
}
|
|
@@ -89071,6 +89285,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
89071
89285
|
/* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(68598);
|
|
89072
89286
|
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(51760);
|
|
89073
89287
|
/* harmony import */ var _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(92501);
|
|
89288
|
+
/* harmony import */ var _dom_TableProperty__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(79546);
|
|
89074
89289
|
|
|
89075
89290
|
|
|
89076
89291
|
|
|
@@ -89088,7 +89303,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
89088
89303
|
/*
|
|
89089
89304
|
* @Author: your name
|
|
89090
89305
|
* @Date: 2020-09-24 15:56:09
|
|
89091
|
-
* @LastEditTime:
|
|
89306
|
+
* @LastEditTime: 2024-04-10 15:05:52
|
|
89092
89307
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
89093
89308
|
* @Description: In User Settings Edit
|
|
89094
89309
|
* @FilePath: \hoeditor-web\src\editor\undoRedo\NodeInsertUndoUnit.ts
|
|
@@ -89110,6 +89325,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
89110
89325
|
|
|
89111
89326
|
|
|
89112
89327
|
|
|
89328
|
+
|
|
89113
89329
|
var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
89114
89330
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(NodeInsertUndoUnit, _UndoInfo);
|
|
89115
89331
|
var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(NodeInsertUndoUnit);
|
|
@@ -89298,9 +89514,17 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
89298
89514
|
pNode.update();
|
|
89299
89515
|
pNode = pNode.parentNode;
|
|
89300
89516
|
}
|
|
89301
|
-
if (pNode instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_28__/* .CellNode */ .D
|
|
89302
|
-
pNode.drawCell.
|
|
89303
|
-
|
|
89517
|
+
if (pNode instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_28__/* .CellNode */ .D) {
|
|
89518
|
+
if (pNode.drawCell.drawPageCells.length > 1) {
|
|
89519
|
+
pNode.drawCell.needUpdate = true;
|
|
89520
|
+
pNode.table.update();
|
|
89521
|
+
}
|
|
89522
|
+
if (pNode.cellProperty.editorProperty === _dom_TableProperty__WEBPACK_IMPORTED_MODULE_31__/* .EditorProperty */ .YS.Formula) {
|
|
89523
|
+
var cellText = pNode.getCellText();
|
|
89524
|
+
if (cellText !== "") {
|
|
89525
|
+
hoeditorfactory.vueController.markRed(pNode, cellText);
|
|
89526
|
+
}
|
|
89527
|
+
}
|
|
89304
89528
|
}
|
|
89305
89529
|
}
|
|
89306
89530
|
}, {
|
|
@@ -90510,7 +90734,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90510
90734
|
// //}
|
|
90511
90735
|
// }
|
|
90512
90736
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_42__/* .PaintState */ .Dh.psDesign && !this._isForceDelete)) {
|
|
90513
|
-
_context3.next =
|
|
90737
|
+
_context3.next = 74;
|
|
90514
90738
|
break;
|
|
90515
90739
|
}
|
|
90516
90740
|
lastNode = nodes[nodes.length - 1];
|
|
@@ -90551,7 +90775,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90551
90775
|
n = 0;
|
|
90552
90776
|
case 31:
|
|
90553
90777
|
if (!(n < nodes.length)) {
|
|
90554
|
-
_context3.next =
|
|
90778
|
+
_context3.next = 73;
|
|
90555
90779
|
break;
|
|
90556
90780
|
}
|
|
90557
90781
|
node = nodes[n]; // if (node instanceof MarkNode && node.parentNode instanceof TextInputFieldNode && node.MarkNodeType === 1 && !node.parentNode.isAllowDelete) {
|
|
@@ -90585,53 +90809,66 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90585
90809
|
this._isError = true;
|
|
90586
90810
|
return _context3.abrupt("return");
|
|
90587
90811
|
case 44:
|
|
90588
|
-
if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j
|
|
90589
|
-
_context3.next =
|
|
90812
|
+
if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j)) {
|
|
90813
|
+
_context3.next = 55;
|
|
90814
|
+
break;
|
|
90815
|
+
}
|
|
90816
|
+
if (!(node.MarkNodeType === 0)) {
|
|
90817
|
+
_context3.next = 50;
|
|
90590
90818
|
break;
|
|
90591
90819
|
}
|
|
90592
90820
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
90593
90821
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("元素已设置为不允许删除,请正确操作。");
|
|
90594
90822
|
this._isError = true;
|
|
90595
90823
|
return _context3.abrupt("return");
|
|
90596
|
-
case
|
|
90824
|
+
case 50:
|
|
90825
|
+
if (!(node.MarkNodeType === 2 && node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && !node.parentNode.canModifyContent)) {
|
|
90826
|
+
_context3.next = 55;
|
|
90827
|
+
break;
|
|
90828
|
+
}
|
|
90829
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
90830
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("该元素不允许编辑、删除,请正确操作。");
|
|
90831
|
+
this._isError = true;
|
|
90832
|
+
return _context3.abrupt("return");
|
|
90833
|
+
case 55:
|
|
90597
90834
|
if (!(node instanceof _dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_40__/* .TableFormula */ .N)) {
|
|
90598
|
-
_context3.next =
|
|
90835
|
+
_context3.next = 60;
|
|
90599
90836
|
break;
|
|
90600
90837
|
}
|
|
90601
90838
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
90602
90839
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("不允许删除表格计算公式");
|
|
90603
90840
|
this._isError = true;
|
|
90604
90841
|
return _context3.abrupt("return");
|
|
90605
|
-
case
|
|
90842
|
+
case 60:
|
|
90606
90843
|
if (!(node instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_31__/* .TableNode */ .Fh)) {
|
|
90607
|
-
_context3.next =
|
|
90844
|
+
_context3.next = 65;
|
|
90608
90845
|
break;
|
|
90609
90846
|
}
|
|
90610
90847
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
90611
90848
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("不允许删除表格");
|
|
90612
90849
|
this._isError = true;
|
|
90613
90850
|
return _context3.abrupt("return");
|
|
90614
|
-
case
|
|
90851
|
+
case 65:
|
|
90615
90852
|
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_38__/* .SignNode */ .N)) {
|
|
90616
|
-
_context3.next =
|
|
90853
|
+
_context3.next = 70;
|
|
90617
90854
|
break;
|
|
90618
90855
|
}
|
|
90619
90856
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
90620
90857
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("不允许直接删除签名!");
|
|
90621
90858
|
this._isError = true;
|
|
90622
90859
|
return _context3.abrupt("return");
|
|
90623
|
-
case
|
|
90860
|
+
case 70:
|
|
90624
90861
|
n++;
|
|
90625
90862
|
_context3.next = 31;
|
|
90626
90863
|
break;
|
|
90627
|
-
case
|
|
90864
|
+
case 73:
|
|
90628
90865
|
if (nodes.length === 1 && nodes[0] instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && !nodes[0].isAllowDelete && nodes[0].childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j) {
|
|
90629
90866
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._endPath);
|
|
90630
90867
|
}
|
|
90631
|
-
case
|
|
90868
|
+
case 74:
|
|
90632
90869
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
90633
90870
|
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
90634
|
-
_context3.next =
|
|
90871
|
+
_context3.next = 80;
|
|
90635
90872
|
break;
|
|
90636
90873
|
}
|
|
90637
90874
|
//判断当前TextInputField是否可编辑
|
|
@@ -90643,19 +90880,19 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90643
90880
|
// this._undo.commit();
|
|
90644
90881
|
});
|
|
90645
90882
|
if (_res[0]) {
|
|
90646
|
-
_context3.next =
|
|
90883
|
+
_context3.next = 80;
|
|
90647
90884
|
break;
|
|
90648
90885
|
}
|
|
90649
90886
|
return _context3.abrupt("return");
|
|
90650
|
-
case
|
|
90887
|
+
case 80:
|
|
90651
90888
|
changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_19__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_17__/* .DocAction */ .gk.daUndoInsert, currRange.startPath, ""); //FIXME:deleteRange函数完成后调用这个
|
|
90652
90889
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
90653
90890
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
90654
|
-
_context3.next =
|
|
90891
|
+
_context3.next = 83;
|
|
90655
90892
|
break;
|
|
90656
90893
|
}
|
|
90657
90894
|
throw _events_Exception__WEBPACK_IMPORTED_MODULE_27__/* .Exception */ .P.NodeNotFound();
|
|
90658
|
-
case
|
|
90895
|
+
case 83:
|
|
90659
90896
|
// const [startPath, endPath] = DomRange.skipStartEndTablePath(
|
|
90660
90897
|
// this._hoEditorFactory,
|
|
90661
90898
|
// currRange.startPath,
|
|
@@ -90667,17 +90904,17 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90667
90904
|
changeEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_30__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
|
|
90668
90905
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
90669
90906
|
if (!(res == 1)) {
|
|
90670
|
-
_context3.next =
|
|
90907
|
+
_context3.next = 95;
|
|
90671
90908
|
break;
|
|
90672
90909
|
}
|
|
90673
90910
|
changeEvent.beforeChangePath = startPath;
|
|
90674
90911
|
changeEvent.afterChangePath = this._tmp.start;
|
|
90675
|
-
_context3.next =
|
|
90912
|
+
_context3.next = 93;
|
|
90676
90913
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
90677
|
-
case
|
|
90914
|
+
case 93:
|
|
90678
90915
|
cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_23__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.start));
|
|
90679
90916
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
90680
|
-
case
|
|
90917
|
+
case 95:
|
|
90681
90918
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
|
|
90682
90919
|
hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
|
|
90683
90920
|
aNode = currRange.npStart.node;
|
|
@@ -90685,12 +90922,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90685
90922
|
pnode = aNode.parentNode;
|
|
90686
90923
|
}
|
|
90687
90924
|
if (!(aNode && pnode)) {
|
|
90688
|
-
_context3.next =
|
|
90925
|
+
_context3.next = 102;
|
|
90689
90926
|
break;
|
|
90690
90927
|
}
|
|
90691
|
-
_context3.next =
|
|
90928
|
+
_context3.next = 102;
|
|
90692
90929
|
return this.ParentRepaint(pnode);
|
|
90693
|
-
case
|
|
90930
|
+
case 102:
|
|
90694
90931
|
case "end":
|
|
90695
90932
|
return _context3.stop();
|
|
90696
90933
|
}
|
|
@@ -92640,6 +92877,10 @@ var TableUnMergeCellUndoUnit = /*#__PURE__*/function () {
|
|
|
92640
92877
|
/* harmony import */ var _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(65043);
|
|
92641
92878
|
/* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(53901);
|
|
92642
92879
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(74089);
|
|
92880
|
+
/* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(68598);
|
|
92881
|
+
/* harmony import */ var _dom_TableProperty__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(79546);
|
|
92882
|
+
|
|
92883
|
+
|
|
92643
92884
|
|
|
92644
92885
|
|
|
92645
92886
|
|
|
@@ -92814,11 +93055,18 @@ var TextInsertUndoUnit = /*#__PURE__*/function () {
|
|
|
92814
93055
|
}, {
|
|
92815
93056
|
key: "ParentRepaint",
|
|
92816
93057
|
value: function ParentRepaint() {
|
|
93058
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
92817
93059
|
var pNode = this._pnode;
|
|
92818
93060
|
while (pNode && pNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_9__/* .TextInputFieldNode */ .re) {
|
|
92819
93061
|
pNode.update();
|
|
92820
93062
|
pNode = pNode.parentNode;
|
|
92821
93063
|
}
|
|
93064
|
+
if (pNode instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_12__/* .CellNode */ .D && pNode.cellProperty.editorProperty === _dom_TableProperty__WEBPACK_IMPORTED_MODULE_13__/* .EditorProperty */ .YS.Formula) {
|
|
93065
|
+
var cellText = pNode.getCellText();
|
|
93066
|
+
if (cellText !== "") {
|
|
93067
|
+
hoEditorFactory.vueController.markRed(pNode, cellText);
|
|
93068
|
+
}
|
|
93069
|
+
}
|
|
92822
93070
|
}
|
|
92823
93071
|
}, {
|
|
92824
93072
|
key: "actionString",
|
|
@@ -94564,8 +94812,11 @@ var StructureNode = /*#__PURE__*/function () {
|
|
|
94564
94812
|
/* harmony import */ var core_js_modules_es_regexp_dot_all_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_dot_all_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
94565
94813
|
/* harmony import */ var core_js_modules_es_regexp_sticky_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(88386);
|
|
94566
94814
|
/* harmony import */ var core_js_modules_es_regexp_sticky_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_sticky_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
94567
|
-
/* harmony import */ var
|
|
94568
|
-
/* harmony import */ var
|
|
94815
|
+
/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(73210);
|
|
94816
|
+
/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
94817
|
+
/* harmony import */ var core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(77601);
|
|
94818
|
+
/* harmony import */ var core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
94819
|
+
|
|
94569
94820
|
|
|
94570
94821
|
|
|
94571
94822
|
|
|
@@ -94580,7 +94831,7 @@ var StructureNode = /*#__PURE__*/function () {
|
|
|
94580
94831
|
/*
|
|
94581
94832
|
* @Author: your name
|
|
94582
94833
|
* @Date: 2020-11-30 08:42:46
|
|
94583
|
-
* @LastEditTime:
|
|
94834
|
+
* @LastEditTime: 2024-04-10 14:21:01
|
|
94584
94835
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
94585
94836
|
* @Description: In User Settings Edit
|
|
94586
94837
|
* @FilePath: \hoeditor-web\src\editor\utils\UnitConvert.ts
|
|
@@ -94741,6 +94992,34 @@ var UnitConvert = /*#__PURE__*/function () {
|
|
|
94741
94992
|
}
|
|
94742
94993
|
return correctSize;
|
|
94743
94994
|
}
|
|
94995
|
+
}, {
|
|
94996
|
+
key: "getRowColByCellAdress",
|
|
94997
|
+
value: function getRowColByCellAdress(strRowCol) {
|
|
94998
|
+
var iRow = -1;
|
|
94999
|
+
var iCol = -1;
|
|
95000
|
+
var colRe = new RegExp(/[a-z]+/);
|
|
95001
|
+
var rowRe = new RegExp(/\d+/);
|
|
95002
|
+
var ret = rowRe.exec(strRowCol);
|
|
95003
|
+
if (ret) {
|
|
95004
|
+
iRow = parseInt(ret[0]) - 1;
|
|
95005
|
+
}
|
|
95006
|
+
ret = colRe.exec(strRowCol);
|
|
95007
|
+
if (ret) {
|
|
95008
|
+
iCol = this.col2Byte(ret[0]) - 1;
|
|
95009
|
+
}
|
|
95010
|
+
return [iRow, iCol];
|
|
95011
|
+
}
|
|
95012
|
+
}, {
|
|
95013
|
+
key: "col2Byte",
|
|
95014
|
+
value: function col2Byte(str) {
|
|
95015
|
+
var result = 0;
|
|
95016
|
+
var strCol = str.trim();
|
|
95017
|
+
for (var i = 0, j = str.length; i < j; i++) {
|
|
95018
|
+
var iend = str[i].charCodeAt(0);
|
|
95019
|
+
result = result + (str[i].charCodeAt(0) - 97 + 1) * Math.pow(26, j - i - 1);
|
|
95020
|
+
}
|
|
95021
|
+
return result;
|
|
95022
|
+
}
|
|
94744
95023
|
}], [{
|
|
94745
95024
|
key: "instance",
|
|
94746
95025
|
get: function get() {
|
|
@@ -168637,7 +168916,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
168637
168916
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
168638
168917
|
|
|
168639
168918
|
var map = {
|
|
168640
|
-
"./ControlModal.vue":
|
|
168919
|
+
"./ControlModal.vue": 27901,
|
|
168641
168920
|
"./barCode/BarCodes.vue": 72727,
|
|
168642
168921
|
"./colorPicker/HoColorPicker.vue": 10306,
|
|
168643
168922
|
"./colorPicker/HoColorPickers.vue": 98181,
|
|
@@ -168664,9 +168943,10 @@ var map = {
|
|
|
168664
168943
|
"./radioCheckBox/RadioCheckbox.vue": 17983,
|
|
168665
168944
|
"./selectDialog/SelectDialog.vue": 32497,
|
|
168666
168945
|
"./sign/Sign.vue": 67218,
|
|
168946
|
+
"./specialChars/HoSpecialChars.vue": 71361,
|
|
168667
168947
|
"./table/TableCellPoper.vue": 97628,
|
|
168668
168948
|
"./table/TableCellPoper1.vue": 44645,
|
|
168669
|
-
"./table/TableCellProperty.vue":
|
|
168949
|
+
"./table/TableCellProperty.vue": 83316,
|
|
168670
168950
|
"./table/TableColProperty.vue": 15417,
|
|
168671
168951
|
"./table/TableForm.vue": 79036,
|
|
168672
168952
|
"./table/TableFormTree.vue": 84804,
|
|
@@ -205984,7 +206264,7 @@ Input.install = function (Vue) {
|
|
|
205984
206264
|
|
|
205985
206265
|
|
|
205986
206266
|
/* harmony default export */ var antd = ([es_button, input, input_number, es_checkbox, date_picker, time_picker, es_radio, es_select, es_tabs, es_dropdown, es_menu, es_upload, tooltip, table, popover, es_icon/* default */.Z, config_provider]);
|
|
205987
|
-
;// 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/HoDocs.vue?vue&type=template&id=
|
|
206267
|
+
;// 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/HoDocs.vue?vue&type=template&id=643185d5&
|
|
205988
206268
|
var render = function render() {
|
|
205989
206269
|
var _vm = this,
|
|
205990
206270
|
_c = _vm._self._c;
|
|
@@ -206111,8 +206391,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
206111
206391
|
var es_number_constructor = __webpack_require__(9653);
|
|
206112
206392
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
206113
206393
|
var es_json_stringify = __webpack_require__(38862);
|
|
206114
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
206115
|
-
var
|
|
206394
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=51f49778&
|
|
206395
|
+
var HoDocvue_type_template_id_51f49778_render = function render() {
|
|
206116
206396
|
var _vm = this,
|
|
206117
206397
|
_c = _vm._self._c;
|
|
206118
206398
|
return _c('div', {
|
|
@@ -206313,7 +206593,7 @@ var HoDocvue_type_template_id_6187b845_render = function render() {
|
|
|
206313
206593
|
}
|
|
206314
206594
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
206315
206595
|
};
|
|
206316
|
-
var
|
|
206596
|
+
var HoDocvue_type_template_id_51f49778_staticRenderFns = [];
|
|
206317
206597
|
|
|
206318
206598
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
206319
206599
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -206685,14 +206965,14 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
206685
206965
|
key: "mouseDblClick",
|
|
206686
206966
|
value: function () {
|
|
206687
206967
|
var _mouseDblClick = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(aevent) {
|
|
206688
|
-
var hoEditorFactory, dPage, oldDPage, oldPageIndex, oldArea, targetArea, isSameArea, cgEvent, startPos,
|
|
206968
|
+
var hoEditorFactory, dPage, oldDPage, oldPageIndex, oldArea, targetArea, isSameArea, cgEvent, startPos, np, _np$node$parentNode, prevNode, oldRange, startPath, endPath, newRange, selectChangeEvent, nodeNeedModifyEvent, cellNode, colInfos, rowInfos, colProperty, _nodeNeedModifyEvent, _nodeNeedModifyEvent2, _nodeNeedModifyEvent3, dPageTable, dPageCell, pos, docHeight, dHeight, index, i, dLastObj, distance, aHeight, count, str, j, _oldRange, _endPath, _newRange;
|
|
206689
206969
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
|
|
206690
206970
|
while (1) switch (_context.prev = _context.next) {
|
|
206691
206971
|
case 0:
|
|
206692
206972
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
206693
206973
|
dPage = hoEditorFactory.drawTree.drawPages[this._pageIndex];
|
|
206694
206974
|
if (!(aevent.currentTarget === this.stage)) {
|
|
206695
|
-
_context.next =
|
|
206975
|
+
_context.next = 49;
|
|
206696
206976
|
break;
|
|
206697
206977
|
}
|
|
206698
206978
|
oldDPage = hoEditorFactory.drawTree.activePage;
|
|
@@ -206734,37 +207014,27 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
206734
207014
|
//this._drawPage.drawDomLevel.activeDrawRect,
|
|
206735
207015
|
aevent.stageX, aevent.stageY);
|
|
206736
207016
|
if (!startPos) {
|
|
206737
|
-
_context.next =
|
|
207017
|
+
_context.next = 49;
|
|
206738
207018
|
break;
|
|
206739
207019
|
}
|
|
206740
|
-
dNode = hoEditorFactory.drawTree.getDNodeByPath(startPos.path);
|
|
206741
|
-
dline = hoEditorFactory.drawTree.getDrawLineByDNode(dNode);
|
|
206742
|
-
stagePt = dline.localToGlobal(dNode.x, dNode.y);
|
|
206743
|
-
result = hoEditorFactory.vueController.isCanEdit(dPage.pageIndex, stagePt.x, stagePt.y);
|
|
206744
|
-
if (result) {
|
|
206745
|
-
_context.next = 30;
|
|
206746
|
-
break;
|
|
206747
|
-
}
|
|
206748
|
-
return _context.abrupt("return");
|
|
206749
|
-
case 30:
|
|
206750
207020
|
if (!(!isSameArea && startPos.page)) {
|
|
206751
|
-
_context.next =
|
|
207021
|
+
_context.next = 30;
|
|
206752
207022
|
break;
|
|
206753
207023
|
}
|
|
206754
207024
|
//活动区域变更
|
|
206755
207025
|
hoEditorFactory.docTree.curDomRange.setSamePath(startPos.path);
|
|
206756
207026
|
if (!(targetArea.children.length === 0)) {
|
|
206757
|
-
_context.next =
|
|
207027
|
+
_context.next = 28;
|
|
206758
207028
|
break;
|
|
206759
207029
|
}
|
|
206760
207030
|
return _context.abrupt("return", true);
|
|
206761
|
-
case
|
|
207031
|
+
case 28:
|
|
206762
207032
|
hoEditorFactory.drawTree.moveCaretToPath(startPos.path);
|
|
206763
207033
|
return _context.abrupt("return", true);
|
|
206764
|
-
case
|
|
207034
|
+
case 30:
|
|
206765
207035
|
np = hoEditorFactory.docTree.findNodePositionByPath(startPos.path);
|
|
206766
207036
|
if (!(np && np.node)) {
|
|
206767
|
-
_context.next =
|
|
207037
|
+
_context.next = 49;
|
|
206768
207038
|
break;
|
|
206769
207039
|
}
|
|
206770
207040
|
prevNode = np.node.prevSibling();
|
|
@@ -206781,33 +207051,33 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
206781
207051
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
206782
207052
|
}
|
|
206783
207053
|
if (!(np.node.nodeType === BaseNode/* NodeType */.Jq.ntMedicalExpression || np.node.nodeType === BaseNode/* NodeType */.Jq.ntControl && !(np.node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) || ((_np$node$parentNode = np.node.parentNode) === null || _np$node$parentNode === void 0 ? void 0 : _np$node$parentNode.nodeType) === BaseNode/* NodeType */.Jq.ntField || np.node.nodeType === BaseNode/* NodeType */.Jq.ntSign || np.node.nodeType === BaseNode/* NodeType */.Jq.ntGestation || np.node.nodeType === BaseNode/* NodeType */.Jq.ntImage)) {
|
|
206784
|
-
_context.next =
|
|
207054
|
+
_context.next = 39;
|
|
206785
207055
|
break;
|
|
206786
207056
|
}
|
|
206787
207057
|
nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
|
|
206788
207058
|
hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
206789
|
-
_context.next =
|
|
207059
|
+
_context.next = 49;
|
|
206790
207060
|
break;
|
|
206791
|
-
case
|
|
207061
|
+
case 39:
|
|
206792
207062
|
if (!(np.node.parentNode instanceof CellNode/* CellNode */.D)) {
|
|
206793
|
-
_context.next =
|
|
207063
|
+
_context.next = 49;
|
|
206794
207064
|
break;
|
|
206795
207065
|
}
|
|
206796
207066
|
cellNode = np.node.parentNode;
|
|
206797
207067
|
colInfos = cellNode.table.colInfos[np.node.parentNode.row.indexOf(np.node.parentNode)];
|
|
206798
207068
|
if (colInfos.isAllowEdit) {
|
|
206799
|
-
_context.next =
|
|
207069
|
+
_context.next = 44;
|
|
206800
207070
|
break;
|
|
206801
207071
|
}
|
|
206802
207072
|
return _context.abrupt("return");
|
|
206803
|
-
case
|
|
207073
|
+
case 44:
|
|
206804
207074
|
rowInfos = cellNode.table.rowInfos[np.node.parentNode.table.rows.indexOf(np.node.parentNode.row)];
|
|
206805
207075
|
if (!(!rowInfos.isAllowEdit || rowInfos.rowProperty.repeatAsTitleAtPageTop)) {
|
|
206806
|
-
_context.next =
|
|
207076
|
+
_context.next = 47;
|
|
206807
207077
|
break;
|
|
206808
207078
|
}
|
|
206809
207079
|
return _context.abrupt("return");
|
|
206810
|
-
case
|
|
207080
|
+
case 47:
|
|
206811
207081
|
colProperty = colInfos.colProperty;
|
|
206812
207082
|
if (cellNode.table.tableProperty.isUsePopEdit && colProperty.editorProperty !== TableProperty/* EditorProperty */.YS.Sign) {
|
|
206813
207083
|
_nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(cellNode, 'dblclick', this._pageIndex);
|
|
@@ -206853,9 +207123,9 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
206853
207123
|
}
|
|
206854
207124
|
}
|
|
206855
207125
|
}
|
|
206856
|
-
case
|
|
207126
|
+
case 49:
|
|
206857
207127
|
return _context.abrupt("return", true);
|
|
206858
|
-
case
|
|
207128
|
+
case 50:
|
|
206859
207129
|
case "end":
|
|
206860
207130
|
return _context.stop();
|
|
206861
207131
|
}
|
|
@@ -206983,8 +207253,6 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
206983
207253
|
var hoeditorfactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
206984
207254
|
hoeditorfactory.drawTree.caret.aiInfo.aiText = '';
|
|
206985
207255
|
comment/* hoCreateComment */.$.close();
|
|
206986
|
-
// const result = hoeditorfactory.vueController.isCanEdit(this._pageIndex, aevent.stageX, aevent.stageY);
|
|
206987
|
-
// if (!result) return false;
|
|
206988
207256
|
if (aevent.nativeEvent.button === 0) {
|
|
206989
207257
|
this._mouseDownCount += 1;
|
|
206990
207258
|
var leftDownInterval = setTimeout(function () {
|
|
@@ -209314,7 +209582,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
209314
209582
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
209315
209583
|
var ParagraphNode = __webpack_require__(67945);
|
|
209316
209584
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
209317
|
-
/* harmony default export */ var version = ('3.1.
|
|
209585
|
+
/* harmony default export */ var version = ('3.1.108');
|
|
209318
209586
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
209319
209587
|
var PoperTipText = __webpack_require__(50987);
|
|
209320
209588
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -210210,7 +210478,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
210210
210478
|
var node = hoEditorFactory.drawTree.getDNodeByPath(endPos.path);
|
|
210211
210479
|
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(node);
|
|
210212
210480
|
var stagePt = dline.localToGlobal(node.x, node.y);
|
|
210213
|
-
var result = hoEditorFactory.vueController.isCanEdit(endPos.page.pageIndex, stagePt.
|
|
210481
|
+
var result = hoEditorFactory.vueController.isCanEdit(endPos.page.pageIndex, stagePt.y);
|
|
210214
210482
|
return !result;
|
|
210215
210483
|
}
|
|
210216
210484
|
return false;
|
|
@@ -210330,10 +210598,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
210330
210598
|
});
|
|
210331
210599
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
210332
210600
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
210333
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
210601
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=51f49778&prod&lang=less&
|
|
210334
210602
|
// extracted by mini-css-extract-plugin
|
|
210335
210603
|
|
|
210336
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
210604
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=51f49778&prod&lang=less&
|
|
210337
210605
|
|
|
210338
210606
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
210339
210607
|
|
|
@@ -210346,8 +210614,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
210346
210614
|
|
|
210347
210615
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
210348
210616
|
components_HoDocvue_type_script_lang_js_,
|
|
210349
|
-
|
|
210350
|
-
|
|
210617
|
+
HoDocvue_type_template_id_51f49778_render,
|
|
210618
|
+
HoDocvue_type_template_id_51f49778_staticRenderFns,
|
|
210351
210619
|
false,
|
|
210352
210620
|
null,
|
|
210353
210621
|
null,
|
|
@@ -216542,6 +216810,8 @@ var web_url_search_params_delete = __webpack_require__(46229);
|
|
|
216542
216810
|
var web_url_search_params_has = __webpack_require__(17330);
|
|
216543
216811
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.size.js
|
|
216544
216812
|
var web_url_search_params_size = __webpack_require__(62062);
|
|
216813
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match-all.js
|
|
216814
|
+
var es_string_match_all = __webpack_require__(76373);
|
|
216545
216815
|
// EXTERNAL MODULE: ./src/editor/events/NodeChangingEvent.ts
|
|
216546
216816
|
var NodeChangingEvent = __webpack_require__(10574);
|
|
216547
216817
|
// EXTERNAL MODULE: ./src/editor/draw/SelectRange.ts
|
|
@@ -217112,6 +217382,8 @@ const gBase64 = {
|
|
|
217112
217382
|
// and finally,
|
|
217113
217383
|
|
|
217114
217384
|
|
|
217385
|
+
// EXTERNAL MODULE: ./src/editor/utils/ExpressionCalculator.ts
|
|
217386
|
+
var ExpressionCalculator = __webpack_require__(71115);
|
|
217115
217387
|
;// CONCATENATED MODULE: ./src/editor/VueController.ts
|
|
217116
217388
|
|
|
217117
217389
|
|
|
@@ -217166,6 +217438,10 @@ const gBase64 = {
|
|
|
217166
217438
|
|
|
217167
217439
|
|
|
217168
217440
|
|
|
217441
|
+
|
|
217442
|
+
|
|
217443
|
+
|
|
217444
|
+
|
|
217169
217445
|
|
|
217170
217446
|
|
|
217171
217447
|
|
|
@@ -217225,6 +217501,7 @@ const gBase64 = {
|
|
|
217225
217501
|
|
|
217226
217502
|
|
|
217227
217503
|
|
|
217504
|
+
|
|
217228
217505
|
|
|
217229
217506
|
|
|
217230
217507
|
var VueController = /*#__PURE__*/function () {
|
|
@@ -219441,7 +219718,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219441
219718
|
mask.name = 'mask' + (index + 1).toString();
|
|
219442
219719
|
}
|
|
219443
219720
|
selectContainer.addChild(mask);
|
|
219444
|
-
//selectContainer.stage.update();
|
|
219445
219721
|
hoEditorFactory.drawPageTree.updateDrawPage(index);
|
|
219446
219722
|
};
|
|
219447
219723
|
_context.next = 22;
|
|
@@ -219627,22 +219903,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219627
219903
|
}
|
|
219628
219904
|
}, {
|
|
219629
219905
|
key: "isCanEdit",
|
|
219630
|
-
value: function isCanEdit(pageIndex,
|
|
219906
|
+
value: function isCanEdit(pageIndex, stageY) {
|
|
219631
219907
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219632
|
-
// const superiorSign = hoEditorFactory.structureConvert._superiorSign;
|
|
219633
|
-
// if (superiorSign.length > 0 && (superiorSign[0] as SignNode).imgSrc != "") {
|
|
219634
|
-
// if (hoEditorFactory.drawTree.paintStatus === PaintState.psEdit || hoEditorFactory.drawTree.paintStatus === PaintState.psReview) {
|
|
219635
|
-
// if (pageIndex < (superiorSign[1] as number)) {
|
|
219636
|
-
// return false;
|
|
219637
|
-
// }
|
|
219638
|
-
// if ((pageIndex === superiorSign[1] as number)) {
|
|
219639
|
-
// const localPt = hoEditorFactory.drawPageTree.drawMainDocs[pageIndex].globalToLocal(stageX, stageY);
|
|
219640
|
-
// if (localPt.y < (superiorSign[2] as number)) {
|
|
219641
|
-
// return false;
|
|
219642
|
-
// }
|
|
219643
|
-
// }
|
|
219644
|
-
// }
|
|
219645
|
-
// }
|
|
219646
219908
|
var scaleXY = DrawConfig/* DrawConfig */.f.instance().scale;
|
|
219647
219909
|
var drawPage = hoEditorFactory.drawTree.drawPages[pageIndex];
|
|
219648
219910
|
for (var j = 0; j < drawPage.selectContainer.children.length; j++) {
|
|
@@ -221588,6 +221850,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221588
221850
|
return text;
|
|
221589
221851
|
}
|
|
221590
221852
|
}
|
|
221853
|
+
}, {
|
|
221854
|
+
key: "getSelectText",
|
|
221855
|
+
value: function getSelectText() {
|
|
221856
|
+
return this.getRangeText(this.getDomRange());
|
|
221857
|
+
}
|
|
221591
221858
|
}, {
|
|
221592
221859
|
key: "deleteNode",
|
|
221593
221860
|
value: function deleteNode(node) {
|
|
@@ -225756,12 +226023,113 @@ var VueController = /*#__PURE__*/function () {
|
|
|
225756
226023
|
var textNode = new TextNode/* TextNode */.R(this._hoEditorFactoryID, table.rootNodes, _cell, BaseNode/* NodeType */.Jq.ntText, text, _cell.childNodes[0].styleIndex);
|
|
225757
226024
|
_cell.drawCell.needUpdate = true;
|
|
225758
226025
|
_cell.childNodes.push(textNode);
|
|
226026
|
+
} else {
|
|
226027
|
+
if (_cell.cellProperty.editorProperty === TableProperty/* EditorProperty */.YS.Formula) {
|
|
226028
|
+
var formulaStr = _cell.cellProperty.formula.formulaStr;
|
|
226029
|
+
var result = this.clacFormula(_cell, formulaStr);
|
|
226030
|
+
if (result !== "") {
|
|
226031
|
+
_cell.childNodes.splice(1, _cell.childNodes.length);
|
|
226032
|
+
var _textNode = new TextNode/* TextNode */.R(this._hoEditorFactoryID, table.rootNodes, _cell, BaseNode/* NodeType */.Jq.ntText, result, _cell.childNodes[0].styleIndex);
|
|
226033
|
+
_cell.drawCell.needUpdate = true;
|
|
226034
|
+
_cell.childNodes.push(_textNode);
|
|
226035
|
+
_cell.cellProperty.formula.oldValue = result;
|
|
226036
|
+
}
|
|
226037
|
+
}
|
|
225759
226038
|
}
|
|
225760
226039
|
}
|
|
225761
226040
|
}
|
|
225762
226041
|
table.update();
|
|
225763
226042
|
}
|
|
225764
226043
|
}
|
|
226044
|
+
}, {
|
|
226045
|
+
key: "clacFormula",
|
|
226046
|
+
value: function clacFormula(cell, formulaStr) {
|
|
226047
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
226048
|
+
var strRet = '';
|
|
226049
|
+
var strFormula = formulaStr.toLowerCase();
|
|
226050
|
+
var arr = new Array();
|
|
226051
|
+
arr.length = 0;
|
|
226052
|
+
var value = new Array();
|
|
226053
|
+
var cellArddressRe = new RegExp(/[a-z]+\d+/, 'g');
|
|
226054
|
+
var strRets = strFormula.matchAll(cellArddressRe);
|
|
226055
|
+
if (strRets) {
|
|
226056
|
+
var aRet = strRets.next();
|
|
226057
|
+
while (!aRet.done) {
|
|
226058
|
+
arr.push(aRet.value[0]);
|
|
226059
|
+
aRet = strRets.next();
|
|
226060
|
+
}
|
|
226061
|
+
}
|
|
226062
|
+
var table = cell.table;
|
|
226063
|
+
var totalOk = true;
|
|
226064
|
+
for (var i = 0, j = arr.length; i < j; i++) {
|
|
226065
|
+
{
|
|
226066
|
+
var _hoEditorFactory$unit = hoEditorFactory.unitConvert.getRowColByCellAdress(arr[i]),
|
|
226067
|
+
_hoEditorFactory$unit2 = (0,esm_slicedToArray/* default */.Z)(_hoEditorFactory$unit, 2),
|
|
226068
|
+
r = _hoEditorFactory$unit2[0],
|
|
226069
|
+
c = _hoEditorFactory$unit2[1];
|
|
226070
|
+
if (r >= 0 && c >= 0 && r < table.rowCount && c < table.colCount) {
|
|
226071
|
+
var strValue = cell.getCellText();
|
|
226072
|
+
var ivalue = Number(strValue === "" ? '0' : strValue);
|
|
226073
|
+
if (!isNaN(ivalue)) {
|
|
226074
|
+
value[i] = strValue;
|
|
226075
|
+
} else {
|
|
226076
|
+
totalOk = false;
|
|
226077
|
+
break;
|
|
226078
|
+
}
|
|
226079
|
+
} else {
|
|
226080
|
+
totalOk = false;
|
|
226081
|
+
break;
|
|
226082
|
+
}
|
|
226083
|
+
}
|
|
226084
|
+
}
|
|
226085
|
+
if (totalOk) {
|
|
226086
|
+
var isRet = true;
|
|
226087
|
+
for (var m = 0; m < value.length; m++) {
|
|
226088
|
+
if (value[m] !== "") {
|
|
226089
|
+
isRet = false;
|
|
226090
|
+
break;
|
|
226091
|
+
}
|
|
226092
|
+
}
|
|
226093
|
+
if (isRet) {
|
|
226094
|
+
return "";
|
|
226095
|
+
}
|
|
226096
|
+
for (var k = arr.length - 1; k >= 0; k--) {
|
|
226097
|
+
strFormula = hoEditorFactory.unitConvert.replaceAll(strFormula, arr[k], value[k] == "" ? "0" : value[k]); //strFormula.replaceAll(arr[k], value[k]);
|
|
226098
|
+
}
|
|
226099
|
+
|
|
226100
|
+
var result = (0,ExpressionCalculator/* expressionCalculator */.C)(strFormula);
|
|
226101
|
+
strRet = result == "NaN" ? "" : result;
|
|
226102
|
+
}
|
|
226103
|
+
return strRet;
|
|
226104
|
+
}
|
|
226105
|
+
}, {
|
|
226106
|
+
key: "markRed",
|
|
226107
|
+
value: function markRed(cell, text) {
|
|
226108
|
+
var _this13 = this;
|
|
226109
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
226110
|
+
var repaint = function repaint(type) {
|
|
226111
|
+
var styleIndex = cell.childNodes[0].styleIndex;
|
|
226112
|
+
var curStyle = hoEditorFactory.docTree.styles[styleIndex];
|
|
226113
|
+
var newStyle = new TextStyle/* TextStyle */.pn(_this13._hoEditorFactoryID);
|
|
226114
|
+
newStyle.copyProperty(curStyle, newStyle);
|
|
226115
|
+
if (type === 1) {
|
|
226116
|
+
newStyle.color = "red";
|
|
226117
|
+
} else {
|
|
226118
|
+
newStyle.color = "#000";
|
|
226119
|
+
}
|
|
226120
|
+
var newIndex = hoEditorFactory.docTree.styleCompare(newStyle);
|
|
226121
|
+
cell.childNodes.splice(1, cell.childNodes.length);
|
|
226122
|
+
var textNode = new TextNode/* TextNode */.R(_this13._hoEditorFactoryID, cell.table.rootNodes, cell, BaseNode/* NodeType */.Jq.ntText, text, newIndex);
|
|
226123
|
+
cell.childNodes.push(textNode);
|
|
226124
|
+
};
|
|
226125
|
+
if (text !== cell.cellProperty.formula.oldValue) {
|
|
226126
|
+
repaint(1);
|
|
226127
|
+
} else if (cell.cellProperty.formula.oldValue !== "") {
|
|
226128
|
+
repaint(2);
|
|
226129
|
+
}
|
|
226130
|
+
cell.drawCell.needUpdate = true;
|
|
226131
|
+
cell.table.update();
|
|
226132
|
+
}
|
|
225765
226133
|
}, {
|
|
225766
226134
|
key: "clearCommentTextBackColor",
|
|
225767
226135
|
value: function clearCommentTextBackColor(ids) {
|
|
@@ -225840,7 +226208,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
225840
226208
|
}, {
|
|
225841
226209
|
key: "getElementChangeRecords",
|
|
225842
226210
|
value: function getElementChangeRecords() {
|
|
225843
|
-
var
|
|
226211
|
+
var _this14 = this;
|
|
225844
226212
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
225845
226213
|
var recordArr = new Array();
|
|
225846
226214
|
var records = hoEditorFactory.docTree.elementChangeRecords;
|
|
@@ -225875,7 +226243,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
225875
226243
|
});
|
|
225876
226244
|
}
|
|
225877
226245
|
if (value[1].nodeTypes == 'sign') {
|
|
225878
|
-
var _node16 =
|
|
226246
|
+
var _node16 = _this14.getNodeByDataID('main', key.replace('|', ''));
|
|
225879
226247
|
if (_node16 instanceof SignNode/* SignNode */.N) {
|
|
225880
226248
|
var signJsons = _node16.node2Json();
|
|
225881
226249
|
var signXml = x2js.js2xml(signJsons);
|
|
@@ -225903,7 +226271,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
225903
226271
|
}
|
|
225904
226272
|
} else {
|
|
225905
226273
|
var id = key.split("|")[0];
|
|
225906
|
-
var _node17 =
|
|
226274
|
+
var _node17 = _this14.getNodeByID('all', id);
|
|
225907
226275
|
}
|
|
225908
226276
|
});
|
|
225909
226277
|
return recordArr;
|
|
@@ -226594,6 +226962,7 @@ var DomController = /*#__PURE__*/function () {
|
|
|
226594
226962
|
|
|
226595
226963
|
|
|
226596
226964
|
|
|
226965
|
+
|
|
226597
226966
|
|
|
226598
226967
|
|
|
226599
226968
|
var EditController = /*#__PURE__*/function () {
|
|
@@ -227091,9 +227460,12 @@ var EditController = /*#__PURE__*/function () {
|
|
|
227091
227460
|
var drawPage = hoEditorFactory.drawTree.activePage;
|
|
227092
227461
|
if (drawPage) {
|
|
227093
227462
|
var dNode = hoEditorFactory.drawTree.getDNodeByPath(curDomRange.endPath);
|
|
227463
|
+
if (dNode instanceof DrawLine/* DrawLine */.a && dNode.drawItems.length > 0) {
|
|
227464
|
+
dNode = dNode.drawItems[0];
|
|
227465
|
+
}
|
|
227094
227466
|
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(dNode);
|
|
227095
227467
|
var stagePt = dline.localToGlobal(dNode.x, dNode.y);
|
|
227096
|
-
result = hoEditorFactory.vueController.isCanEdit(drawPage.pageIndex, stagePt.
|
|
227468
|
+
result = hoEditorFactory.vueController.isCanEdit(drawPage.pageIndex, stagePt.y);
|
|
227097
227469
|
if (!result) {
|
|
227098
227470
|
return false;
|
|
227099
227471
|
}
|
|
@@ -239643,7 +240015,7 @@ var HoFooter_component = (0,componentNormalizer/* default */.Z)(
|
|
|
239643
240015
|
|
|
239644
240016
|
/* harmony default export */ var HoFooter = (HoFooter_component.exports);
|
|
239645
240017
|
// EXTERNAL MODULE: ./src/components/controls/ControlModal.vue + 3 modules
|
|
239646
|
-
var ControlModal = __webpack_require__(
|
|
240018
|
+
var ControlModal = __webpack_require__(27901);
|
|
239647
240019
|
// EXTERNAL MODULE: ./src/components/controls/findReplace/FindReplace.vue + 5 modules
|
|
239648
240020
|
var FindReplace = __webpack_require__(98064);
|
|
239649
240021
|
;// CONCATENATED MODULE: ./src/components/controls/findReplace/index.ts
|
|
@@ -240436,6 +240808,8 @@ var commondata = __webpack_require__(76285);
|
|
|
240436
240808
|
hoEditorFactory.hoLocalStorage.initHoWebSql();
|
|
240437
240809
|
if (!window.vueController) {
|
|
240438
240810
|
window.vueController = hoEditorFactory.vueController;
|
|
240811
|
+
} else {
|
|
240812
|
+
window.vueControllerNext = hoEditorFactory.vueController;
|
|
240439
240813
|
}
|
|
240440
240814
|
if (!window.printController) {
|
|
240441
240815
|
window.printController = hoEditorFactory.printController;
|
|
@@ -240776,10 +241150,10 @@ var commondata = __webpack_require__(76285);
|
|
|
240776
241150
|
});
|
|
240777
241151
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
|
|
240778
241152
|
/* harmony default export */ var components_HoDocsvue_type_script_lang_js_ = (HoDocsvue_type_script_lang_js_);
|
|
240779
|
-
;// 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/HoDocs.vue?vue&type=style&index=0&id=
|
|
241153
|
+
;// 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/HoDocs.vue?vue&type=style&index=0&id=643185d5&prod&lang=less&media=print&
|
|
240780
241154
|
// extracted by mini-css-extract-plugin
|
|
240781
241155
|
|
|
240782
|
-
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=
|
|
241156
|
+
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=643185d5&prod&lang=less&media=print&
|
|
240783
241157
|
|
|
240784
241158
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue
|
|
240785
241159
|
|
|
@@ -243808,8 +244182,8 @@ var ToolBarChild_component = (0,componentNormalizer/* default */.Z)(
|
|
|
243808
244182
|
)
|
|
243809
244183
|
|
|
243810
244184
|
/* harmony default export */ var ToolBarChild = (ToolBarChild_component.exports);
|
|
243811
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/ToolControl.vue?vue&type=template&id=
|
|
243812
|
-
var
|
|
244185
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/ToolControl.vue?vue&type=template&id=5eea3dcd&
|
|
244186
|
+
var ToolControlvue_type_template_id_5eea3dcd_render = function render() {
|
|
243813
244187
|
var _vm = this,
|
|
243814
244188
|
_c = _vm._self._c;
|
|
243815
244189
|
return _c('div', {
|
|
@@ -244099,450 +244473,16 @@ var ToolControlvue_type_template_id_08c856c8_render = function render() {
|
|
|
244099
244473
|
"d": "M732.258937 608.38132H448.886312a32.154589 32.154589 0 0 0-31.659903 32.237037 31.742351 31.742351 0 0 0 31.659903 32.237038h283.372625a32.237037 32.237037 0 0 0 0-64.474075zM793.929791 0h-439.446055a132.41095 132.41095 0 0 0-126.144928 127.793881l-36.689211 1.071819A127.1343 127.1343 0 0 0 70.533977 256.082448v640.041223a131.916264 131.916264 0 0 0 126.144928 127.793881h472.837359a132.41095 132.41095 0 0 0 126.144928-127.793881h31.659903a132.41095 132.41095 0 0 0 126.144928-127.79388V214.446377zM669.516264 959.525926H196.349114a65.958132 65.958132 0 0 1-62.742673-63.89694V256.164895a62.907568 62.907568 0 0 1 60.0219-62.742673l34.463124-1.071819v575.567149a131.916264 131.916264 0 0 0 126.144928 127.793881h378.022544a67.277295 67.277295 0 0 1-62.990016 63.814493z m220.547504-191.690821a66.37037 66.37037 0 0 1-62.742673 63.89694H353.98905a65.958132 65.958132 0 0 1-62.742673-63.89694V127.793881A66.37037 66.37037 0 0 1 353.98905 63.89694h376.703382c-0.577134 74.202899 0 25.558776 0 25.558777 0 66.700161 34.463124 127.216747 101.657971 127.216747h57.713365zM732.258937 448.350403H448.886312a32.154589 32.154589 0 0 0-31.659903 32.237037 31.742351 31.742351 0 0 0 31.659903 32.237037h283.372625a32.237037 32.237037 0 0 0 0-64.474074z"
|
|
244100
244474
|
}
|
|
244101
244475
|
})]), _c('span', [_vm._v("页码页数信息")])]) : _vm._e(), _vm._t("hoInsertItem"), _vm.insert.specialChars ? _c('div', {
|
|
244102
|
-
staticClass: "ho-emr-tool-item"
|
|
244103
|
-
}, [_c('HoSpecialChars', {
|
|
244104
|
-
attrs: {
|
|
244105
|
-
"vueController": _vm.vueController
|
|
244106
|
-
}
|
|
244107
|
-
})], 1) : _vm._e()], 2);
|
|
244108
|
-
};
|
|
244109
|
-
var ToolControlvue_type_template_id_08c856c8_staticRenderFns = [];
|
|
244110
|
-
|
|
244111
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoSpecialChars.vue?vue&type=template&id=6a152162&
|
|
244112
|
-
var HoSpecialCharsvue_type_template_id_6a152162_render = function render() {
|
|
244113
|
-
var _vm = this,
|
|
244114
|
-
_c = _vm._self._c;
|
|
244115
|
-
return _c('a-dropdown', {
|
|
244116
|
-
attrs: {
|
|
244117
|
-
"trigger": ['click']
|
|
244118
|
-
}
|
|
244119
|
-
}, [_c('p', {
|
|
244120
|
-
staticClass: "ant-dropdown-link-text",
|
|
244476
|
+
staticClass: "ho-emr-tool-item",
|
|
244121
244477
|
on: {
|
|
244122
244478
|
"click": function click($event) {
|
|
244123
|
-
|
|
244479
|
+
return _vm.createControl('special-chars');
|
|
244124
244480
|
}
|
|
244125
244481
|
}
|
|
244126
|
-
}, [_c('
|
|
244127
|
-
staticStyle: {
|
|
244128
|
-
"transform": "translateY(0px)"
|
|
244129
|
-
},
|
|
244130
|
-
attrs: {
|
|
244131
|
-
"viewBox": "0 0 1024 1024",
|
|
244132
|
-
"version": "1.1",
|
|
244133
|
-
"xmlns": "http://www.w3.org/2000/svg",
|
|
244134
|
-
"width": "16",
|
|
244135
|
-
"height": "16"
|
|
244136
|
-
}
|
|
244137
|
-
}, [_c('path', {
|
|
244138
|
-
attrs: {
|
|
244139
|
-
"d": "M825.163595 883.651765H416.226184v-10.842353c62.162824-39.996235 99.629176-117.157647 99.629176-211.727059 0-32.768-4.999529-64.813176-12.047059-95.232H727.642654a18.432 18.432 0 0 0 18.130824-18.672941V477.605647a18.432 18.432 0 0 0-18.130824-18.612706h-254.192941c-16.263529-52.525176-30.358588-106.194824-30.358588-163.84 0-101.074824 77.101176-163.117176 198.053647-163.117176 48.790588 0 96.496941 9.517176 137.095529 24.395294 11.806118 4.457412 24.094118-4.638118 24.094118-17.648941V46.983529a18.853647 18.853647 0 0 0-11.866353-17.468235A448.752941 448.752941 0 0 0 630.904772 0c-210.823529 0-343.762824 103.424-343.762824 279.491765 0 61.138824 15.661176 120.892235 33.129412 179.2H198.776772A18.432 18.432 0 0 0 180.706184 477.304471V546.936471c0 10.24 8.192 18.612706 18.130823 18.612705H351.172066c7.710118 34.153412 13.372235 68.306824 13.372235 102.701177 0 105.050353-65.355294 193.536-165.165176 218.895059a18.552471 18.552471 0 0 0-13.854118 18.070588v89.509647c0 10.24 8.192 18.612706 18.130824 18.612706H825.223831a18.432 18.432 0 0 0 18.130823-18.672941V902.324706a18.432 18.432 0 0 0-18.130823-18.672941z"
|
|
244140
|
-
}
|
|
244141
|
-
})]), _c('span', [_vm._v("特殊字符")]), _c('a-icon', {
|
|
244142
|
-
attrs: {
|
|
244143
|
-
"type": "caret-down"
|
|
244144
|
-
}
|
|
244145
|
-
})], 1), _c('template', {
|
|
244146
|
-
slot: "overlay"
|
|
244147
|
-
}, [_c('a-menu', {
|
|
244148
|
-
staticStyle: {
|
|
244149
|
-
"max-height": "600px",
|
|
244150
|
-
"overflow": "auto"
|
|
244151
|
-
}
|
|
244152
|
-
}, [_c('a-menu-item', {
|
|
244153
|
-
staticClass: "special-chars-item"
|
|
244154
|
-
}, [_c('section', [_c('ul', [_c('li', [_c('header', [_vm._v("特殊字符")]), _c('p', {
|
|
244155
|
-
staticClass: "chars-list special-chars-list"
|
|
244156
|
-
}, _vm._l(_vm.specialChars, function (chars) {
|
|
244157
|
-
return _c('span', {
|
|
244158
|
-
key: chars,
|
|
244159
|
-
on: {
|
|
244160
|
-
"click": function click($event) {
|
|
244161
|
-
$event.stopPropagation();
|
|
244162
|
-
return _vm.specialCharsClick(chars);
|
|
244163
|
-
}
|
|
244164
|
-
}
|
|
244165
|
-
}, [_vm._v(_vm._s(chars))]);
|
|
244166
|
-
}), 0)]), _c('li', [_c('header', [_vm._v("罗马字符")]), _c('p', {
|
|
244167
|
-
staticClass: "chars-list"
|
|
244168
|
-
}, _vm._l(_vm.romanChars, function (chars) {
|
|
244169
|
-
return _c('span', {
|
|
244170
|
-
key: chars,
|
|
244171
|
-
on: {
|
|
244172
|
-
"click": function click($event) {
|
|
244173
|
-
$event.stopPropagation();
|
|
244174
|
-
return _vm.specialCharsClick(chars);
|
|
244175
|
-
}
|
|
244176
|
-
}
|
|
244177
|
-
}, [_vm._v(_vm._s(chars))]);
|
|
244178
|
-
}), 0)]), _c('li', [_c('header', [_vm._v("数学字符")]), _c('p', {
|
|
244179
|
-
staticClass: "chars-list"
|
|
244180
|
-
}, _vm._l(_vm.mathChars, function (chars) {
|
|
244181
|
-
return _c('span', {
|
|
244182
|
-
key: chars,
|
|
244183
|
-
on: {
|
|
244184
|
-
"click": function click($event) {
|
|
244185
|
-
$event.stopPropagation();
|
|
244186
|
-
return _vm.specialCharsClick(chars);
|
|
244187
|
-
}
|
|
244188
|
-
}
|
|
244189
|
-
}, [_vm._v(_vm._s(chars))]);
|
|
244190
|
-
}), 0)])])])])], 1)], 1)], 2);
|
|
244482
|
+
}, [_c('span', [_vm._v("特殊字符")])]) : _vm._e()], 2);
|
|
244191
244483
|
};
|
|
244192
|
-
var
|
|
244193
|
-
|
|
244194
|
-
;// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/vue-property-decorator.js
|
|
244195
|
-
/** vue-property-decorator verson 8.5.1 MIT LICENSE copyright 2020 kaorun343 */
|
|
244196
|
-
/// <reference types='reflect-metadata'/>
|
|
244197
|
-
|
|
244198
|
-
|
|
244199
|
-
|
|
244200
|
-
|
|
244201
|
-
/** Used for keying reactive provide/inject properties */
|
|
244202
|
-
var reactiveInjectKey = '__reactiveInject__';
|
|
244203
|
-
/**
|
|
244204
|
-
* decorator of an inject
|
|
244205
|
-
* @param from key
|
|
244206
|
-
* @return PropertyDecorator
|
|
244207
|
-
*/
|
|
244208
|
-
function Inject(options) {
|
|
244209
|
-
return createDecorator(function (componentOptions, key) {
|
|
244210
|
-
if (typeof componentOptions.inject === 'undefined') {
|
|
244211
|
-
componentOptions.inject = {};
|
|
244212
|
-
}
|
|
244213
|
-
if (!Array.isArray(componentOptions.inject)) {
|
|
244214
|
-
componentOptions.inject[key] = options || key;
|
|
244215
|
-
}
|
|
244216
|
-
});
|
|
244217
|
-
}
|
|
244218
|
-
/**
|
|
244219
|
-
* decorator of a reactive inject
|
|
244220
|
-
* @param from key
|
|
244221
|
-
* @return PropertyDecorator
|
|
244222
|
-
*/
|
|
244223
|
-
function InjectReactive(options) {
|
|
244224
|
-
return createDecorator(function (componentOptions, key) {
|
|
244225
|
-
if (typeof componentOptions.inject === 'undefined') {
|
|
244226
|
-
componentOptions.inject = {};
|
|
244227
|
-
}
|
|
244228
|
-
if (!Array.isArray(componentOptions.inject)) {
|
|
244229
|
-
var fromKey_1 = !!options ? options.from || options : key;
|
|
244230
|
-
var defaultVal_1 = (!!options && options.default) || undefined;
|
|
244231
|
-
if (!componentOptions.computed)
|
|
244232
|
-
componentOptions.computed = {};
|
|
244233
|
-
componentOptions.computed[key] = function () {
|
|
244234
|
-
var obj = this[reactiveInjectKey];
|
|
244235
|
-
return obj ? obj[fromKey_1] : defaultVal_1;
|
|
244236
|
-
};
|
|
244237
|
-
componentOptions.inject[reactiveInjectKey] = reactiveInjectKey;
|
|
244238
|
-
}
|
|
244239
|
-
});
|
|
244240
|
-
}
|
|
244241
|
-
function produceProvide(original) {
|
|
244242
|
-
var provide = function () {
|
|
244243
|
-
var _this = this;
|
|
244244
|
-
var rv = typeof original === 'function' ? original.call(this) : original;
|
|
244245
|
-
rv = Object.create(rv || null);
|
|
244246
|
-
// set reactive services (propagates previous services if necessary)
|
|
244247
|
-
rv[reactiveInjectKey] = this[reactiveInjectKey] || {};
|
|
244248
|
-
for (var i in provide.managed) {
|
|
244249
|
-
rv[provide.managed[i]] = this[i];
|
|
244250
|
-
}
|
|
244251
|
-
var _loop_1 = function (i) {
|
|
244252
|
-
rv[provide.managedReactive[i]] = this_1[i]; // Duplicates the behavior of `@Provide`
|
|
244253
|
-
Object.defineProperty(rv[reactiveInjectKey], provide.managedReactive[i], {
|
|
244254
|
-
enumerable: true,
|
|
244255
|
-
get: function () { return _this[i]; },
|
|
244256
|
-
});
|
|
244257
|
-
};
|
|
244258
|
-
var this_1 = this;
|
|
244259
|
-
for (var i in provide.managedReactive) {
|
|
244260
|
-
_loop_1(i);
|
|
244261
|
-
}
|
|
244262
|
-
return rv;
|
|
244263
|
-
};
|
|
244264
|
-
provide.managed = {};
|
|
244265
|
-
provide.managedReactive = {};
|
|
244266
|
-
return provide;
|
|
244267
|
-
}
|
|
244268
|
-
function needToProduceProvide(original) {
|
|
244269
|
-
return (typeof original !== 'function' ||
|
|
244270
|
-
(!original.managed && !original.managedReactive));
|
|
244271
|
-
}
|
|
244272
|
-
/**
|
|
244273
|
-
* decorator of a provide
|
|
244274
|
-
* @param key key
|
|
244275
|
-
* @return PropertyDecorator | void
|
|
244276
|
-
*/
|
|
244277
|
-
function Provide(key) {
|
|
244278
|
-
return createDecorator(function (componentOptions, k) {
|
|
244279
|
-
var provide = componentOptions.provide;
|
|
244280
|
-
if (needToProduceProvide(provide)) {
|
|
244281
|
-
provide = componentOptions.provide = produceProvide(provide);
|
|
244282
|
-
}
|
|
244283
|
-
provide.managed[k] = key || k;
|
|
244284
|
-
});
|
|
244285
|
-
}
|
|
244286
|
-
/**
|
|
244287
|
-
* decorator of a reactive provide
|
|
244288
|
-
* @param key key
|
|
244289
|
-
* @return PropertyDecorator | void
|
|
244290
|
-
*/
|
|
244291
|
-
function ProvideReactive(key) {
|
|
244292
|
-
return createDecorator(function (componentOptions, k) {
|
|
244293
|
-
var provide = componentOptions.provide;
|
|
244294
|
-
// inject parent reactive services (if any)
|
|
244295
|
-
if (!Array.isArray(componentOptions.inject)) {
|
|
244296
|
-
componentOptions.inject = componentOptions.inject || {};
|
|
244297
|
-
componentOptions.inject[reactiveInjectKey] = {
|
|
244298
|
-
from: reactiveInjectKey,
|
|
244299
|
-
default: {},
|
|
244300
|
-
};
|
|
244301
|
-
}
|
|
244302
|
-
if (needToProduceProvide(provide)) {
|
|
244303
|
-
provide = componentOptions.provide = produceProvide(provide);
|
|
244304
|
-
}
|
|
244305
|
-
provide.managedReactive[k] = key || k;
|
|
244306
|
-
});
|
|
244307
|
-
}
|
|
244308
|
-
/** @see {@link https://github.com/vuejs/vue-class-component/blob/master/src/reflect.ts} */
|
|
244309
|
-
var reflectMetadataIsSupported = typeof Reflect !== 'undefined' && typeof Reflect.getMetadata !== 'undefined';
|
|
244310
|
-
function applyMetadata(options, target, key) {
|
|
244311
|
-
if (reflectMetadataIsSupported) {
|
|
244312
|
-
if (!Array.isArray(options) &&
|
|
244313
|
-
typeof options !== 'function' &&
|
|
244314
|
-
typeof options.type === 'undefined') {
|
|
244315
|
-
var type = Reflect.getMetadata('design:type', target, key);
|
|
244316
|
-
if (type !== Object) {
|
|
244317
|
-
options.type = type;
|
|
244318
|
-
}
|
|
244319
|
-
}
|
|
244320
|
-
}
|
|
244321
|
-
}
|
|
244322
|
-
/**
|
|
244323
|
-
* decorator of model
|
|
244324
|
-
* @param event event name
|
|
244325
|
-
* @param options options
|
|
244326
|
-
* @return PropertyDecorator
|
|
244327
|
-
*/
|
|
244328
|
-
function Model(event, options) {
|
|
244329
|
-
if (options === void 0) { options = {}; }
|
|
244330
|
-
return function (target, key) {
|
|
244331
|
-
applyMetadata(options, target, key);
|
|
244332
|
-
createDecorator(function (componentOptions, k) {
|
|
244333
|
-
;
|
|
244334
|
-
(componentOptions.props || (componentOptions.props = {}))[k] = options;
|
|
244335
|
-
componentOptions.model = { prop: k, event: event || k };
|
|
244336
|
-
})(target, key);
|
|
244337
|
-
};
|
|
244338
|
-
}
|
|
244339
|
-
/**
|
|
244340
|
-
* decorator of a prop
|
|
244341
|
-
* @param options the options for the prop
|
|
244342
|
-
* @return PropertyDecorator | void
|
|
244343
|
-
*/
|
|
244344
|
-
function Prop(options) {
|
|
244345
|
-
if (options === void 0) { options = {}; }
|
|
244346
|
-
return function (target, key) {
|
|
244347
|
-
applyMetadata(options, target, key);
|
|
244348
|
-
createDecorator(function (componentOptions, k) {
|
|
244349
|
-
;
|
|
244350
|
-
(componentOptions.props || (componentOptions.props = {}))[k] = options;
|
|
244351
|
-
})(target, key);
|
|
244352
|
-
};
|
|
244353
|
-
}
|
|
244354
|
-
/**
|
|
244355
|
-
* decorator of a synced prop
|
|
244356
|
-
* @param propName the name to interface with from outside, must be different from decorated property
|
|
244357
|
-
* @param options the options for the synced prop
|
|
244358
|
-
* @return PropertyDecorator | void
|
|
244359
|
-
*/
|
|
244360
|
-
function PropSync(propName, options) {
|
|
244361
|
-
if (options === void 0) { options = {}; }
|
|
244362
|
-
// @ts-ignore
|
|
244363
|
-
return function (target, key) {
|
|
244364
|
-
applyMetadata(options, target, key);
|
|
244365
|
-
createDecorator(function (componentOptions, k) {
|
|
244366
|
-
;
|
|
244367
|
-
(componentOptions.props || (componentOptions.props = {}))[propName] = options;
|
|
244368
|
-
(componentOptions.computed || (componentOptions.computed = {}))[k] = {
|
|
244369
|
-
get: function () {
|
|
244370
|
-
return this[propName];
|
|
244371
|
-
},
|
|
244372
|
-
set: function (value) {
|
|
244373
|
-
// @ts-ignore
|
|
244374
|
-
this.$emit("update:" + propName, value);
|
|
244375
|
-
},
|
|
244376
|
-
};
|
|
244377
|
-
})(target, key);
|
|
244378
|
-
};
|
|
244379
|
-
}
|
|
244380
|
-
/**
|
|
244381
|
-
* decorator of a watch function
|
|
244382
|
-
* @param path the path or the expression to observe
|
|
244383
|
-
* @param WatchOption
|
|
244384
|
-
* @return MethodDecorator
|
|
244385
|
-
*/
|
|
244386
|
-
function Watch(path, options) {
|
|
244387
|
-
if (options === void 0) { options = {}; }
|
|
244388
|
-
var _a = options.deep, deep = _a === void 0 ? false : _a, _b = options.immediate, immediate = _b === void 0 ? false : _b;
|
|
244389
|
-
return createDecorator(function (componentOptions, handler) {
|
|
244390
|
-
if (typeof componentOptions.watch !== 'object') {
|
|
244391
|
-
componentOptions.watch = Object.create(null);
|
|
244392
|
-
}
|
|
244393
|
-
var watch = componentOptions.watch;
|
|
244394
|
-
if (typeof watch[path] === 'object' && !Array.isArray(watch[path])) {
|
|
244395
|
-
watch[path] = [watch[path]];
|
|
244396
|
-
}
|
|
244397
|
-
else if (typeof watch[path] === 'undefined') {
|
|
244398
|
-
watch[path] = [];
|
|
244399
|
-
}
|
|
244400
|
-
watch[path].push({ handler: handler, deep: deep, immediate: immediate });
|
|
244401
|
-
});
|
|
244402
|
-
}
|
|
244403
|
-
// Code copied from Vue/src/shared/util.js
|
|
244404
|
-
var hyphenateRE = /\B([A-Z])/g;
|
|
244405
|
-
var hyphenate = function (str) { return str.replace(hyphenateRE, '-$1').toLowerCase(); };
|
|
244406
|
-
/**
|
|
244407
|
-
* decorator of an event-emitter function
|
|
244408
|
-
* @param event The name of the event
|
|
244409
|
-
* @return MethodDecorator
|
|
244410
|
-
*/
|
|
244411
|
-
function Emit(event) {
|
|
244412
|
-
return function (_target, propertyKey, descriptor) {
|
|
244413
|
-
var key = hyphenate(propertyKey);
|
|
244414
|
-
var original = descriptor.value;
|
|
244415
|
-
descriptor.value = function emitter() {
|
|
244416
|
-
var _this = this;
|
|
244417
|
-
var args = [];
|
|
244418
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
244419
|
-
args[_i] = arguments[_i];
|
|
244420
|
-
}
|
|
244421
|
-
var emit = function (returnValue) {
|
|
244422
|
-
var emitName = event || key;
|
|
244423
|
-
if (returnValue === undefined) {
|
|
244424
|
-
if (args.length === 0) {
|
|
244425
|
-
_this.$emit(emitName);
|
|
244426
|
-
}
|
|
244427
|
-
else if (args.length === 1) {
|
|
244428
|
-
_this.$emit(emitName, args[0]);
|
|
244429
|
-
}
|
|
244430
|
-
else {
|
|
244431
|
-
_this.$emit.apply(_this, [emitName].concat(args));
|
|
244432
|
-
}
|
|
244433
|
-
}
|
|
244434
|
-
else {
|
|
244435
|
-
if (args.length === 0) {
|
|
244436
|
-
_this.$emit(emitName, returnValue);
|
|
244437
|
-
}
|
|
244438
|
-
else if (args.length === 1) {
|
|
244439
|
-
_this.$emit(emitName, returnValue, args[0]);
|
|
244440
|
-
}
|
|
244441
|
-
else {
|
|
244442
|
-
_this.$emit.apply(_this, [emitName, returnValue].concat(args));
|
|
244443
|
-
}
|
|
244444
|
-
}
|
|
244445
|
-
};
|
|
244446
|
-
var returnValue = original.apply(this, args);
|
|
244447
|
-
if (isPromise(returnValue)) {
|
|
244448
|
-
returnValue.then(emit);
|
|
244449
|
-
}
|
|
244450
|
-
else {
|
|
244451
|
-
emit(returnValue);
|
|
244452
|
-
}
|
|
244453
|
-
return returnValue;
|
|
244454
|
-
};
|
|
244455
|
-
};
|
|
244456
|
-
}
|
|
244457
|
-
/**
|
|
244458
|
-
* decorator of a ref prop
|
|
244459
|
-
* @param refKey the ref key defined in template
|
|
244460
|
-
*/
|
|
244461
|
-
function Ref(refKey) {
|
|
244462
|
-
return createDecorator(function (options, key) {
|
|
244463
|
-
options.computed = options.computed || {};
|
|
244464
|
-
options.computed[key] = {
|
|
244465
|
-
cache: false,
|
|
244466
|
-
get: function () {
|
|
244467
|
-
return this.$refs[refKey || key];
|
|
244468
|
-
},
|
|
244469
|
-
};
|
|
244470
|
-
});
|
|
244471
|
-
}
|
|
244472
|
-
function isPromise(obj) {
|
|
244473
|
-
return obj instanceof Promise || (obj && typeof obj.then === 'function');
|
|
244474
|
-
}
|
|
244475
|
-
|
|
244476
|
-
;// 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/insert/HoSpecialChars.vue?vue&type=script&lang=js&
|
|
244477
|
-
|
|
244478
|
-
|
|
244479
|
-
|
|
244480
|
-
/* harmony default export */ var HoSpecialCharsvue_type_script_lang_js_ = ({
|
|
244481
|
-
name: 'HoSpecialChars',
|
|
244482
|
-
props: {
|
|
244483
|
-
vueController: {
|
|
244484
|
-
default: function _default() {}
|
|
244485
|
-
}
|
|
244486
|
-
},
|
|
244487
|
-
data: function data() {
|
|
244488
|
-
return {
|
|
244489
|
-
arrChars: ['㎎', '㎏', '㎜', '㎝', '㎞', '㎡', '㏄', '㏎', '㏑', '㏒', '㏕', '℡'],
|
|
244490
|
-
specialChars: ['、', '。', '·', 'ˉ', 'ˇ', '¨', '〃', '々', '—', '~', '‖', '…', '‘', '’', '“', '”', '〔', '〕', '〈', '〉', '《', '》', '{', '}', '【', '】', '〖', '〗', '「', '」', '『', '』', '﹂', '﹁', '└', '┐', '┌', '┘', '|', '±', '×', '÷', '∶', '∧', '∨', '∑', '∏', '∪', '∩', '∈', 'α', 'β', 'γ', 'λ', '∷', '√', '⊥', '∥', '∠', '⌒', '⊙', '○', '◎', '□', '∫', '∮', '≡', '≌', '≈', '∽', '∝', '≠', '≮', '≯', '≤', '≥', '∞', '∵', '∴', '♂', '♀', '°', '•', '●', '′', '″', '℃', '$', '¥', '¤', '¢', '£', '‰', '%', '§', '№', '#', '※', '→', '←', '↑', '↓', '℡', '▽', '△', '/', '∕', '㎎', '㎏', '㎜', '㎝', '㎞', '㎡', '㏄', '㏎', '㏑', '㏒', '㏕', 'mmol/L', 'μmol/L', 'umol/L', 'pg/ml', 'ng/ml', 'mmHg', 'g/L', 'Cells', 'Φ', '次/分', '?á', '?à', '£L', '?', '??', '+2'],
|
|
244491
|
-
romanChars: ['ⅰ', 'ⅱ', 'ⅲ', 'ⅳ', 'ⅴ', 'ⅵ', 'ⅶ', 'ⅷ', 'ⅸ', 'ⅹ', 'Ⅰ', 'Ⅱ', 'Ⅲ', 'Ⅳ', 'Ⅴ', 'Ⅵ', 'Ⅶ', 'Ⅷ', 'Ⅸ', 'Ⅹ', 'Ⅺ', 'Ⅻ'],
|
|
244492
|
-
usedChars: [],
|
|
244493
|
-
mathChars: ['⒈', '⒉', '⒊', '⒋', '⒌', '⒍', '⒎', '⒏', '⒐', '⒑', '⒒', '⒓', '⒔', '⒕', '⒖', '⒗', '⒘', '⒙', '⒚', '⒛', '⑴', '⑵', '⑶', '⑷', '⑸', '⑹', '⑺', '⑻', '⑼', '⑽', '⑾', '⑿', '⒀', '⒁', '⒂', '⒃', '⒄', '⒅', '⒆', '⒇', '①', '②', '③', '④', '⑤', '⑥', '⑦', '⑧', '⑨', '⑩', '㈠', '㈡', '㈢', '㈣', '㈤', '㈥', '㈦', '㈧', '㈨', '㈩']
|
|
244494
|
-
};
|
|
244495
|
-
},
|
|
244496
|
-
methods: {
|
|
244497
|
-
specialCharsClick: function specialCharsClick(chars) {
|
|
244498
|
-
this.vueController.insertSpecialChars('', chars);
|
|
244499
|
-
if (this.usedChars.includes(chars)) {
|
|
244500
|
-
return false;
|
|
244501
|
-
}
|
|
244502
|
-
this.usedChars.unshift(chars);
|
|
244503
|
-
if (this.usedChars.length > 22) {
|
|
244504
|
-
this.usedChars.pop();
|
|
244505
|
-
}
|
|
244506
|
-
},
|
|
244507
|
-
sure: function sure() {
|
|
244508
|
-
var _this = this;
|
|
244509
|
-
this.$nextTick(function () {
|
|
244510
|
-
return _this.handleClose();
|
|
244511
|
-
});
|
|
244512
|
-
},
|
|
244513
|
-
handleClose: function handleClose() {
|
|
244514
|
-
this.$emit('close-menu');
|
|
244515
|
-
}
|
|
244516
|
-
}
|
|
244517
|
-
});
|
|
244518
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoSpecialChars.vue?vue&type=script&lang=js&
|
|
244519
|
-
/* harmony default export */ var insert_HoSpecialCharsvue_type_script_lang_js_ = (HoSpecialCharsvue_type_script_lang_js_);
|
|
244520
|
-
;// 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/insert/HoSpecialChars.vue?vue&type=style&index=0&id=6a152162&prod&lang=less&
|
|
244521
|
-
// extracted by mini-css-extract-plugin
|
|
244522
|
-
|
|
244523
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoSpecialChars.vue?vue&type=style&index=0&id=6a152162&prod&lang=less&
|
|
244524
|
-
|
|
244525
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoSpecialChars.vue
|
|
244484
|
+
var ToolControlvue_type_template_id_5eea3dcd_staticRenderFns = [];
|
|
244526
244485
|
|
|
244527
|
-
|
|
244528
|
-
|
|
244529
|
-
;
|
|
244530
|
-
|
|
244531
|
-
|
|
244532
|
-
/* normalize component */
|
|
244533
|
-
|
|
244534
|
-
var HoSpecialChars_component = (0,componentNormalizer/* default */.Z)(
|
|
244535
|
-
insert_HoSpecialCharsvue_type_script_lang_js_,
|
|
244536
|
-
HoSpecialCharsvue_type_template_id_6a152162_render,
|
|
244537
|
-
HoSpecialCharsvue_type_template_id_6a152162_staticRenderFns,
|
|
244538
|
-
false,
|
|
244539
|
-
null,
|
|
244540
|
-
null,
|
|
244541
|
-
null
|
|
244542
|
-
|
|
244543
|
-
)
|
|
244544
|
-
|
|
244545
|
-
/* harmony default export */ var HoSpecialChars = (HoSpecialChars_component.exports);
|
|
244546
244486
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoDateTime.vue?vue&type=template&id=d4373800&
|
|
244547
244487
|
var HoDateTimevue_type_template_id_d4373800_render = function render() {
|
|
244548
244488
|
var _vm = this,
|
|
@@ -244702,7 +244642,7 @@ var ajax = __webpack_require__(79969);
|
|
|
244702
244642
|
|
|
244703
244643
|
|
|
244704
244644
|
|
|
244705
|
-
|
|
244645
|
+
// import HoSpecialChars from '@/components/toolbar/insert/HoSpecialChars.vue';
|
|
244706
244646
|
|
|
244707
244647
|
|
|
244708
244648
|
// import { $HoFormula } from '@/components/common/hoformula';
|
|
@@ -244711,7 +244651,7 @@ var ajax = __webpack_require__(79969);
|
|
|
244711
244651
|
name: 'ToolControl',
|
|
244712
244652
|
components: {
|
|
244713
244653
|
HoMedicalExpression: HoMedicalExpression,
|
|
244714
|
-
|
|
244654
|
+
// HoSpecialChars,
|
|
244715
244655
|
HoDateTime: HoDateTime,
|
|
244716
244656
|
Poper: popers/* default */.Z
|
|
244717
244657
|
},
|
|
@@ -244827,12 +244767,12 @@ var ajax = __webpack_require__(79969);
|
|
|
244827
244767
|
// },
|
|
244828
244768
|
createRarewords: function createRarewords() {
|
|
244829
244769
|
this.closeControlModal();
|
|
244830
|
-
var $Rarewords = (__webpack_require__(
|
|
244770
|
+
var $Rarewords = (__webpack_require__(73126)/* ["default"] */ .Z);
|
|
244831
244771
|
$Rarewords.open();
|
|
244832
244772
|
},
|
|
244833
244773
|
createHoLink: function createHoLink() {
|
|
244834
244774
|
this.closeControlModal();
|
|
244835
|
-
var $HoLink = (__webpack_require__(
|
|
244775
|
+
var $HoLink = (__webpack_require__(97036)/* ["default"] */ .Z);
|
|
244836
244776
|
$HoLink.open();
|
|
244837
244777
|
},
|
|
244838
244778
|
/**
|
|
@@ -244861,8 +244801,8 @@ var ajax = __webpack_require__(79969);
|
|
|
244861
244801
|
;
|
|
244862
244802
|
var ToolControl_component = (0,componentNormalizer/* default */.Z)(
|
|
244863
244803
|
insert_ToolControlvue_type_script_lang_js_,
|
|
244864
|
-
|
|
244865
|
-
|
|
244804
|
+
ToolControlvue_type_template_id_5eea3dcd_render,
|
|
244805
|
+
ToolControlvue_type_template_id_5eea3dcd_staticRenderFns,
|
|
244866
244806
|
false,
|
|
244867
244807
|
null,
|
|
244868
244808
|
null,
|
|
@@ -248039,7 +247979,7 @@ HoEditorProvide.install = function (Vue) {
|
|
|
248039
247979
|
};
|
|
248040
247980
|
|
|
248041
247981
|
// EXTERNAL MODULE: ./src/components/common/rarewords/index.ts + 7 modules
|
|
248042
|
-
var rarewords = __webpack_require__(
|
|
247982
|
+
var rarewords = __webpack_require__(73126);
|
|
248043
247983
|
;// CONCATENATED MODULE: ./src/plugins/clickoutside.js
|
|
248044
247984
|
|
|
248045
247985
|
|