hoeditor-web 3.1.106 → 3.1.107
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 +629 -686
- 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);
|
|
@@ -45291,7 +45437,7 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
45291
45437
|
/* harmony export */ q5: function() { return /* binding */ SignProperty; },
|
|
45292
45438
|
/* harmony export */ vE: function() { return /* binding */ TableProperty; }
|
|
45293
45439
|
/* harmony export */ });
|
|
45294
|
-
/* unused harmony
|
|
45440
|
+
/* unused harmony exports DataSource, Formula */
|
|
45295
45441
|
/* 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
45442
|
/* 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
45443
|
/* 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 +45465,7 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
45319
45465
|
/*
|
|
45320
45466
|
* @Author: your name
|
|
45321
45467
|
* @Date: 2020-12-24 16:01:16
|
|
45322
|
-
* @LastEditTime: 2024-04-
|
|
45468
|
+
* @LastEditTime: 2024-04-10 14:43:46
|
|
45323
45469
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
45324
45470
|
* @Description: In User Settings Edit
|
|
45325
45471
|
* @FilePath: \hoeditor-web\src\editor\dom\TableProperty.ts
|
|
@@ -45939,7 +46085,8 @@ var EditorProperty;
|
|
|
45939
46085
|
EditorProperty[EditorProperty["Sign"] = 4] = "Sign";
|
|
45940
46086
|
EditorProperty[EditorProperty["Textarea"] = 5] = "Textarea";
|
|
45941
46087
|
EditorProperty[EditorProperty["OrderNumber"] = 6] = "OrderNumber";
|
|
45942
|
-
|
|
46088
|
+
EditorProperty[EditorProperty["Formula"] = 7] = "Formula";
|
|
46089
|
+
})(EditorProperty || (EditorProperty = {})); //编辑器属性 {无,下拉列表,日期,数值,签名,输入域,次数,计算公式}
|
|
45943
46090
|
var ColProperty = /*#__PURE__*/function () {
|
|
45944
46091
|
//是否锁定
|
|
45945
46092
|
function ColProperty(objectValues //, table: TableNode
|
|
@@ -46120,6 +46267,39 @@ var DiagonalType;
|
|
|
46120
46267
|
DiagonalType[DiagonalType["Left"] = 1] = "Left";
|
|
46121
46268
|
DiagonalType[DiagonalType["Right"] = 2] = "Right";
|
|
46122
46269
|
})(DiagonalType || (DiagonalType = {}));
|
|
46270
|
+
var Formula = /*#__PURE__*/function () {
|
|
46271
|
+
function Formula(objectValues) {
|
|
46272
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, Formula);
|
|
46273
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_formulaStr", "");
|
|
46274
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_oldValue", "");
|
|
46275
|
+
//this._formularType = objectValues["formularType"] ? objectValues["formularType"] : objectValues["_formularType"];
|
|
46276
|
+
this._formulaStr = objectValues["formulaStr"] ? objectValues["formulaStr"] : objectValues["_formulaStr"];
|
|
46277
|
+
}
|
|
46278
|
+
// get formularType(): FormularType {
|
|
46279
|
+
// return this._formularType;
|
|
46280
|
+
// }
|
|
46281
|
+
// set formularType(value: FormularType) {
|
|
46282
|
+
// this._formularType = value;
|
|
46283
|
+
// }
|
|
46284
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(Formula, [{
|
|
46285
|
+
key: "formulaStr",
|
|
46286
|
+
get: function get() {
|
|
46287
|
+
return this._formulaStr;
|
|
46288
|
+
},
|
|
46289
|
+
set: function set(value) {
|
|
46290
|
+
this._formulaStr = value;
|
|
46291
|
+
}
|
|
46292
|
+
}, {
|
|
46293
|
+
key: "oldValue",
|
|
46294
|
+
get: function get() {
|
|
46295
|
+
return this._oldValue;
|
|
46296
|
+
},
|
|
46297
|
+
set: function set(value) {
|
|
46298
|
+
this._oldValue = value;
|
|
46299
|
+
}
|
|
46300
|
+
}]);
|
|
46301
|
+
return Formula;
|
|
46302
|
+
}();
|
|
46123
46303
|
var CellProperty = /*#__PURE__*/function () {
|
|
46124
46304
|
function CellProperty(objectValues //, table: TableNode
|
|
46125
46305
|
) {
|
|
@@ -46156,13 +46336,14 @@ var CellProperty = /*#__PURE__*/function () {
|
|
|
46156
46336
|
(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
46337
|
(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
46338
|
(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);
|
|
46339
|
+
(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
46340
|
//this._dataSource = new DataSource();
|
|
46160
46341
|
if (objectValues !== "") {
|
|
46161
46342
|
var valuesObj = eval('(' + objectValues + ')');
|
|
46162
46343
|
var assignvalue = function assignvalue(target, source) {
|
|
46163
46344
|
Object.keys(source).forEach(function (value) {
|
|
46164
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') {
|
|
46165
|
-
if (value !== "downListProperty" && value !== "dateTimeProperty" && value !== "numberProperty") {
|
|
46346
|
+
if (value !== "downListProperty" && value !== "dateTimeProperty" && value !== "numberProperty" && value !== "formula") {
|
|
46166
46347
|
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
46348
|
if (value === "gridLinesColor" || value === "cellInnerMargin" || value === "gridLineDisplay") {
|
|
46168
46349
|
target[value] = source[value];
|
|
@@ -46193,6 +46374,9 @@ var CellProperty = /*#__PURE__*/function () {
|
|
|
46193
46374
|
if (valuesObj["editorProperty"] === EditorProperty.DateTime) {
|
|
46194
46375
|
this._dateTimeProperty = new DateTimeProperty(valuesObj["dateTimeProperty"]);
|
|
46195
46376
|
}
|
|
46377
|
+
if (valuesObj["editorProperty"] === EditorProperty.Formula) {
|
|
46378
|
+
this._formula = new Formula(valuesObj["formula"]);
|
|
46379
|
+
}
|
|
46196
46380
|
}
|
|
46197
46381
|
}
|
|
46198
46382
|
// get id(): string {
|
|
@@ -46349,6 +46533,16 @@ var CellProperty = /*#__PURE__*/function () {
|
|
|
46349
46533
|
this._diagonalType = value;
|
|
46350
46534
|
}
|
|
46351
46535
|
}
|
|
46536
|
+
}, {
|
|
46537
|
+
key: "formula",
|
|
46538
|
+
get: function get() {
|
|
46539
|
+
return this._formula;
|
|
46540
|
+
},
|
|
46541
|
+
set: function set(value) {
|
|
46542
|
+
if (this._formula != value) {
|
|
46543
|
+
this._formula = value;
|
|
46544
|
+
}
|
|
46545
|
+
}
|
|
46352
46546
|
}]);
|
|
46353
46547
|
return CellProperty;
|
|
46354
46548
|
}();
|
|
@@ -60202,21 +60396,11 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60202
60396
|
var arr = new Array();
|
|
60203
60397
|
arr.length = 0;
|
|
60204
60398
|
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
60399
|
var cellArddressRe = new RegExp(/[a-z]+\d+/, 'g');
|
|
60215
60400
|
var strRets = strFormula.matchAll(cellArddressRe);
|
|
60216
60401
|
if (strRets) {
|
|
60217
60402
|
var aRet = strRets.next();
|
|
60218
60403
|
while (!aRet.done) {
|
|
60219
|
-
//insertToArr(aRet.value[0]);
|
|
60220
60404
|
arr.push(aRet.value[0]);
|
|
60221
60405
|
aRet = strRets.next();
|
|
60222
60406
|
}
|
|
@@ -60262,9 +60446,6 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60262
60446
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
60263
60447
|
var isRet = true;
|
|
60264
60448
|
for (var m = 0; m < value.length; m++) {
|
|
60265
|
-
// if (value[m] !== "0") {
|
|
60266
|
-
// isRet = false;
|
|
60267
|
-
// }
|
|
60268
60449
|
if (value[m] !== "") {
|
|
60269
60450
|
isRet = false;
|
|
60270
60451
|
break;
|
|
@@ -63898,6 +64079,8 @@ var es_array_push = __webpack_require__(57658);
|
|
|
63898
64079
|
var es_array_join = __webpack_require__(69600);
|
|
63899
64080
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
63900
64081
|
var es_array_splice = __webpack_require__(40561);
|
|
64082
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
64083
|
+
var es_promise = __webpack_require__(88674);
|
|
63901
64084
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
63902
64085
|
var es_object_assign = __webpack_require__(19601);
|
|
63903
64086
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
@@ -65698,12 +65881,13 @@ function escapeHTML(s) {
|
|
|
65698
65881
|
|
|
65699
65882
|
|
|
65700
65883
|
|
|
65884
|
+
|
|
65701
65885
|
|
|
65702
65886
|
|
|
65703
65887
|
/*
|
|
65704
65888
|
* @Author: your name
|
|
65705
65889
|
* @Date: 2020-11-03 15:17:54
|
|
65706
|
-
* @LastEditTime: 2024-04-
|
|
65890
|
+
* @LastEditTime: 2024-04-11 15:28:21
|
|
65707
65891
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
65708
65892
|
* @Description: In User Settings Edit
|
|
65709
65893
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -66956,7 +67140,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66956
67140
|
key: "setFieldText",
|
|
66957
67141
|
value: function () {
|
|
66958
67142
|
var _setFieldText = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(text, customProperty, keyValue, value, isTrace) {
|
|
66959
|
-
var
|
|
67143
|
+
var _this4 = this;
|
|
67144
|
+
var hoEditorFactory, startPath, oldValue, endPath, aRange, anodes, i, anode, contentMark, styleIndex, contentMarkNode, changes, insertPath, aPromise, k, change;
|
|
66960
67145
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context2) {
|
|
66961
67146
|
while (1) switch (_context2.prev = _context2.next) {
|
|
66962
67147
|
case 0:
|
|
@@ -67021,10 +67206,42 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67021
67206
|
hoEditorFactory.drawTree.moveCaretToPath(startPath);
|
|
67022
67207
|
return _context2.abrupt("return");
|
|
67023
67208
|
case 33:
|
|
67024
|
-
|
|
67025
|
-
|
|
67026
|
-
|
|
67027
|
-
|
|
67209
|
+
if (!isTrace) {
|
|
67210
|
+
_context2.next = 41;
|
|
67211
|
+
break;
|
|
67212
|
+
}
|
|
67213
|
+
changes = diffChars(this.text, text);
|
|
67214
|
+
insertPath = startPath;
|
|
67215
|
+
aPromise = new Promise(function (resolve, reject) {
|
|
67216
|
+
resolve(insertPath);
|
|
67217
|
+
});
|
|
67218
|
+
changes.forEach(function (change) {
|
|
67219
|
+
aPromise = aPromise.then(function (res) {
|
|
67220
|
+
res = insertPath;
|
|
67221
|
+
return new Promise(function (resolve, reject) {
|
|
67222
|
+
var oper = "none";
|
|
67223
|
+
if (change.added) {
|
|
67224
|
+
//新增文本
|
|
67225
|
+
oper = "add";
|
|
67226
|
+
} else if (change.removed) {
|
|
67227
|
+
//删除文本
|
|
67228
|
+
oper = "remove";
|
|
67229
|
+
}
|
|
67230
|
+
hoEditorFactory.docController.insertPlainTextAfterPath(insertPath, text, oldValue, oper);
|
|
67231
|
+
insertPath = hoEditorFactory.docTree.getNodeLastPath(_this4.childNodes[_this4.childNodes.length - 2]);
|
|
67232
|
+
resolve(insertPath);
|
|
67233
|
+
});
|
|
67234
|
+
});
|
|
67235
|
+
});
|
|
67236
|
+
for (k = 0; k < changes.length; k++) {
|
|
67237
|
+
change = changes[k];
|
|
67238
|
+
}
|
|
67239
|
+
_context2.next = 43;
|
|
67240
|
+
break;
|
|
67241
|
+
case 41:
|
|
67242
|
+
_context2.next = 43;
|
|
67243
|
+
return hoEditorFactory.docController.insertPlainTextAfterPath(startPath, text, oldValue);
|
|
67244
|
+
case 43:
|
|
67028
67245
|
case "end":
|
|
67029
67246
|
return _context2.stop();
|
|
67030
67247
|
}
|
|
@@ -89071,6 +89288,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
89071
89288
|
/* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(68598);
|
|
89072
89289
|
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(51760);
|
|
89073
89290
|
/* harmony import */ var _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(92501);
|
|
89291
|
+
/* harmony import */ var _dom_TableProperty__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(79546);
|
|
89074
89292
|
|
|
89075
89293
|
|
|
89076
89294
|
|
|
@@ -89088,7 +89306,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
89088
89306
|
/*
|
|
89089
89307
|
* @Author: your name
|
|
89090
89308
|
* @Date: 2020-09-24 15:56:09
|
|
89091
|
-
* @LastEditTime:
|
|
89309
|
+
* @LastEditTime: 2024-04-10 15:05:52
|
|
89092
89310
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
89093
89311
|
* @Description: In User Settings Edit
|
|
89094
89312
|
* @FilePath: \hoeditor-web\src\editor\undoRedo\NodeInsertUndoUnit.ts
|
|
@@ -89110,6 +89328,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
89110
89328
|
|
|
89111
89329
|
|
|
89112
89330
|
|
|
89331
|
+
|
|
89113
89332
|
var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
89114
89333
|
(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
89334
|
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 +89517,17 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
89298
89517
|
pNode.update();
|
|
89299
89518
|
pNode = pNode.parentNode;
|
|
89300
89519
|
}
|
|
89301
|
-
if (pNode instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_28__/* .CellNode */ .D
|
|
89302
|
-
pNode.drawCell.
|
|
89303
|
-
|
|
89520
|
+
if (pNode instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_28__/* .CellNode */ .D) {
|
|
89521
|
+
if (pNode.drawCell.drawPageCells.length > 1) {
|
|
89522
|
+
pNode.drawCell.needUpdate = true;
|
|
89523
|
+
pNode.table.update();
|
|
89524
|
+
}
|
|
89525
|
+
if (pNode.cellProperty.editorProperty === _dom_TableProperty__WEBPACK_IMPORTED_MODULE_31__/* .EditorProperty */ .YS.Formula) {
|
|
89526
|
+
var cellText = pNode.getCellText();
|
|
89527
|
+
if (cellText !== "") {
|
|
89528
|
+
hoeditorfactory.vueController.markRed(pNode, cellText);
|
|
89529
|
+
}
|
|
89530
|
+
}
|
|
89304
89531
|
}
|
|
89305
89532
|
}
|
|
89306
89533
|
}, {
|
|
@@ -90510,7 +90737,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90510
90737
|
// //}
|
|
90511
90738
|
// }
|
|
90512
90739
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_42__/* .PaintState */ .Dh.psDesign && !this._isForceDelete)) {
|
|
90513
|
-
_context3.next =
|
|
90740
|
+
_context3.next = 74;
|
|
90514
90741
|
break;
|
|
90515
90742
|
}
|
|
90516
90743
|
lastNode = nodes[nodes.length - 1];
|
|
@@ -90551,7 +90778,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90551
90778
|
n = 0;
|
|
90552
90779
|
case 31:
|
|
90553
90780
|
if (!(n < nodes.length)) {
|
|
90554
|
-
_context3.next =
|
|
90781
|
+
_context3.next = 73;
|
|
90555
90782
|
break;
|
|
90556
90783
|
}
|
|
90557
90784
|
node = nodes[n]; // if (node instanceof MarkNode && node.parentNode instanceof TextInputFieldNode && node.MarkNodeType === 1 && !node.parentNode.isAllowDelete) {
|
|
@@ -90585,53 +90812,66 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90585
90812
|
this._isError = true;
|
|
90586
90813
|
return _context3.abrupt("return");
|
|
90587
90814
|
case 44:
|
|
90588
|
-
if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j
|
|
90589
|
-
_context3.next =
|
|
90815
|
+
if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j)) {
|
|
90816
|
+
_context3.next = 55;
|
|
90817
|
+
break;
|
|
90818
|
+
}
|
|
90819
|
+
if (!(node.MarkNodeType === 0)) {
|
|
90820
|
+
_context3.next = 50;
|
|
90590
90821
|
break;
|
|
90591
90822
|
}
|
|
90592
90823
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
90593
90824
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("元素已设置为不允许删除,请正确操作。");
|
|
90594
90825
|
this._isError = true;
|
|
90595
90826
|
return _context3.abrupt("return");
|
|
90596
|
-
case
|
|
90827
|
+
case 50:
|
|
90828
|
+
if (!(node.MarkNodeType === 2 && node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && !node.parentNode.canModifyContent)) {
|
|
90829
|
+
_context3.next = 55;
|
|
90830
|
+
break;
|
|
90831
|
+
}
|
|
90832
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
90833
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("该元素不允许编辑、删除,请正确操作。");
|
|
90834
|
+
this._isError = true;
|
|
90835
|
+
return _context3.abrupt("return");
|
|
90836
|
+
case 55:
|
|
90597
90837
|
if (!(node instanceof _dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_40__/* .TableFormula */ .N)) {
|
|
90598
|
-
_context3.next =
|
|
90838
|
+
_context3.next = 60;
|
|
90599
90839
|
break;
|
|
90600
90840
|
}
|
|
90601
90841
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
90602
90842
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("不允许删除表格计算公式");
|
|
90603
90843
|
this._isError = true;
|
|
90604
90844
|
return _context3.abrupt("return");
|
|
90605
|
-
case
|
|
90845
|
+
case 60:
|
|
90606
90846
|
if (!(node instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_31__/* .TableNode */ .Fh)) {
|
|
90607
|
-
_context3.next =
|
|
90847
|
+
_context3.next = 65;
|
|
90608
90848
|
break;
|
|
90609
90849
|
}
|
|
90610
90850
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
90611
90851
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("不允许删除表格");
|
|
90612
90852
|
this._isError = true;
|
|
90613
90853
|
return _context3.abrupt("return");
|
|
90614
|
-
case
|
|
90854
|
+
case 65:
|
|
90615
90855
|
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_38__/* .SignNode */ .N)) {
|
|
90616
|
-
_context3.next =
|
|
90856
|
+
_context3.next = 70;
|
|
90617
90857
|
break;
|
|
90618
90858
|
}
|
|
90619
90859
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
90620
90860
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("不允许直接删除签名!");
|
|
90621
90861
|
this._isError = true;
|
|
90622
90862
|
return _context3.abrupt("return");
|
|
90623
|
-
case
|
|
90863
|
+
case 70:
|
|
90624
90864
|
n++;
|
|
90625
90865
|
_context3.next = 31;
|
|
90626
90866
|
break;
|
|
90627
|
-
case
|
|
90867
|
+
case 73:
|
|
90628
90868
|
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
90869
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._endPath);
|
|
90630
90870
|
}
|
|
90631
|
-
case
|
|
90871
|
+
case 74:
|
|
90632
90872
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
90633
90873
|
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
90634
|
-
_context3.next =
|
|
90874
|
+
_context3.next = 80;
|
|
90635
90875
|
break;
|
|
90636
90876
|
}
|
|
90637
90877
|
//判断当前TextInputField是否可编辑
|
|
@@ -90643,19 +90883,19 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90643
90883
|
// this._undo.commit();
|
|
90644
90884
|
});
|
|
90645
90885
|
if (_res[0]) {
|
|
90646
|
-
_context3.next =
|
|
90886
|
+
_context3.next = 80;
|
|
90647
90887
|
break;
|
|
90648
90888
|
}
|
|
90649
90889
|
return _context3.abrupt("return");
|
|
90650
|
-
case
|
|
90890
|
+
case 80:
|
|
90651
90891
|
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
90892
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
90653
90893
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
90654
|
-
_context3.next =
|
|
90894
|
+
_context3.next = 83;
|
|
90655
90895
|
break;
|
|
90656
90896
|
}
|
|
90657
90897
|
throw _events_Exception__WEBPACK_IMPORTED_MODULE_27__/* .Exception */ .P.NodeNotFound();
|
|
90658
|
-
case
|
|
90898
|
+
case 83:
|
|
90659
90899
|
// const [startPath, endPath] = DomRange.skipStartEndTablePath(
|
|
90660
90900
|
// this._hoEditorFactory,
|
|
90661
90901
|
// currRange.startPath,
|
|
@@ -90667,17 +90907,17 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90667
90907
|
changeEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_30__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
|
|
90668
90908
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
90669
90909
|
if (!(res == 1)) {
|
|
90670
|
-
_context3.next =
|
|
90910
|
+
_context3.next = 95;
|
|
90671
90911
|
break;
|
|
90672
90912
|
}
|
|
90673
90913
|
changeEvent.beforeChangePath = startPath;
|
|
90674
90914
|
changeEvent.afterChangePath = this._tmp.start;
|
|
90675
|
-
_context3.next =
|
|
90915
|
+
_context3.next = 93;
|
|
90676
90916
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
90677
|
-
case
|
|
90917
|
+
case 93:
|
|
90678
90918
|
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
90919
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
90680
|
-
case
|
|
90920
|
+
case 95:
|
|
90681
90921
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
|
|
90682
90922
|
hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
|
|
90683
90923
|
aNode = currRange.npStart.node;
|
|
@@ -90685,12 +90925,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90685
90925
|
pnode = aNode.parentNode;
|
|
90686
90926
|
}
|
|
90687
90927
|
if (!(aNode && pnode)) {
|
|
90688
|
-
_context3.next =
|
|
90928
|
+
_context3.next = 102;
|
|
90689
90929
|
break;
|
|
90690
90930
|
}
|
|
90691
|
-
_context3.next =
|
|
90931
|
+
_context3.next = 102;
|
|
90692
90932
|
return this.ParentRepaint(pnode);
|
|
90693
|
-
case
|
|
90933
|
+
case 102:
|
|
90694
90934
|
case "end":
|
|
90695
90935
|
return _context3.stop();
|
|
90696
90936
|
}
|
|
@@ -92640,6 +92880,10 @@ var TableUnMergeCellUndoUnit = /*#__PURE__*/function () {
|
|
|
92640
92880
|
/* harmony import */ var _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(65043);
|
|
92641
92881
|
/* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(53901);
|
|
92642
92882
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(74089);
|
|
92883
|
+
/* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(68598);
|
|
92884
|
+
/* harmony import */ var _dom_TableProperty__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(79546);
|
|
92885
|
+
|
|
92886
|
+
|
|
92643
92887
|
|
|
92644
92888
|
|
|
92645
92889
|
|
|
@@ -92814,11 +93058,18 @@ var TextInsertUndoUnit = /*#__PURE__*/function () {
|
|
|
92814
93058
|
}, {
|
|
92815
93059
|
key: "ParentRepaint",
|
|
92816
93060
|
value: function ParentRepaint() {
|
|
93061
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
92817
93062
|
var pNode = this._pnode;
|
|
92818
93063
|
while (pNode && pNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_9__/* .TextInputFieldNode */ .re) {
|
|
92819
93064
|
pNode.update();
|
|
92820
93065
|
pNode = pNode.parentNode;
|
|
92821
93066
|
}
|
|
93067
|
+
if (pNode instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_12__/* .CellNode */ .D && pNode.cellProperty.editorProperty === _dom_TableProperty__WEBPACK_IMPORTED_MODULE_13__/* .EditorProperty */ .YS.Formula) {
|
|
93068
|
+
var cellText = pNode.getCellText();
|
|
93069
|
+
if (cellText !== "") {
|
|
93070
|
+
hoEditorFactory.vueController.markRed(pNode, cellText);
|
|
93071
|
+
}
|
|
93072
|
+
}
|
|
92822
93073
|
}
|
|
92823
93074
|
}, {
|
|
92824
93075
|
key: "actionString",
|
|
@@ -94564,8 +94815,11 @@ var StructureNode = /*#__PURE__*/function () {
|
|
|
94564
94815
|
/* 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
94816
|
/* harmony import */ var core_js_modules_es_regexp_sticky_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(88386);
|
|
94566
94817
|
/* 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
|
|
94818
|
+
/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(73210);
|
|
94819
|
+
/* 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__);
|
|
94820
|
+
/* harmony import */ var core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(77601);
|
|
94821
|
+
/* 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__);
|
|
94822
|
+
|
|
94569
94823
|
|
|
94570
94824
|
|
|
94571
94825
|
|
|
@@ -94580,7 +94834,7 @@ var StructureNode = /*#__PURE__*/function () {
|
|
|
94580
94834
|
/*
|
|
94581
94835
|
* @Author: your name
|
|
94582
94836
|
* @Date: 2020-11-30 08:42:46
|
|
94583
|
-
* @LastEditTime:
|
|
94837
|
+
* @LastEditTime: 2024-04-10 14:21:01
|
|
94584
94838
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
94585
94839
|
* @Description: In User Settings Edit
|
|
94586
94840
|
* @FilePath: \hoeditor-web\src\editor\utils\UnitConvert.ts
|
|
@@ -94741,6 +94995,34 @@ var UnitConvert = /*#__PURE__*/function () {
|
|
|
94741
94995
|
}
|
|
94742
94996
|
return correctSize;
|
|
94743
94997
|
}
|
|
94998
|
+
}, {
|
|
94999
|
+
key: "getRowColByCellAdress",
|
|
95000
|
+
value: function getRowColByCellAdress(strRowCol) {
|
|
95001
|
+
var iRow = -1;
|
|
95002
|
+
var iCol = -1;
|
|
95003
|
+
var colRe = new RegExp(/[a-z]+/);
|
|
95004
|
+
var rowRe = new RegExp(/\d+/);
|
|
95005
|
+
var ret = rowRe.exec(strRowCol);
|
|
95006
|
+
if (ret) {
|
|
95007
|
+
iRow = parseInt(ret[0]) - 1;
|
|
95008
|
+
}
|
|
95009
|
+
ret = colRe.exec(strRowCol);
|
|
95010
|
+
if (ret) {
|
|
95011
|
+
iCol = this.col2Byte(ret[0]) - 1;
|
|
95012
|
+
}
|
|
95013
|
+
return [iRow, iCol];
|
|
95014
|
+
}
|
|
95015
|
+
}, {
|
|
95016
|
+
key: "col2Byte",
|
|
95017
|
+
value: function col2Byte(str) {
|
|
95018
|
+
var result = 0;
|
|
95019
|
+
var strCol = str.trim();
|
|
95020
|
+
for (var i = 0, j = str.length; i < j; i++) {
|
|
95021
|
+
var iend = str[i].charCodeAt(0);
|
|
95022
|
+
result = result + (str[i].charCodeAt(0) - 97 + 1) * Math.pow(26, j - i - 1);
|
|
95023
|
+
}
|
|
95024
|
+
return result;
|
|
95025
|
+
}
|
|
94744
95026
|
}], [{
|
|
94745
95027
|
key: "instance",
|
|
94746
95028
|
get: function get() {
|
|
@@ -168637,7 +168919,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
168637
168919
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
168638
168920
|
|
|
168639
168921
|
var map = {
|
|
168640
|
-
"./ControlModal.vue":
|
|
168922
|
+
"./ControlModal.vue": 27901,
|
|
168641
168923
|
"./barCode/BarCodes.vue": 72727,
|
|
168642
168924
|
"./colorPicker/HoColorPicker.vue": 10306,
|
|
168643
168925
|
"./colorPicker/HoColorPickers.vue": 98181,
|
|
@@ -168664,9 +168946,10 @@ var map = {
|
|
|
168664
168946
|
"./radioCheckBox/RadioCheckbox.vue": 17983,
|
|
168665
168947
|
"./selectDialog/SelectDialog.vue": 32497,
|
|
168666
168948
|
"./sign/Sign.vue": 67218,
|
|
168949
|
+
"./specialChars/HoSpecialChars.vue": 71361,
|
|
168667
168950
|
"./table/TableCellPoper.vue": 97628,
|
|
168668
168951
|
"./table/TableCellPoper1.vue": 44645,
|
|
168669
|
-
"./table/TableCellProperty.vue":
|
|
168952
|
+
"./table/TableCellProperty.vue": 83316,
|
|
168670
168953
|
"./table/TableColProperty.vue": 15417,
|
|
168671
168954
|
"./table/TableForm.vue": 79036,
|
|
168672
168955
|
"./table/TableFormTree.vue": 84804,
|
|
@@ -205984,7 +206267,7 @@ Input.install = function (Vue) {
|
|
|
205984
206267
|
|
|
205985
206268
|
|
|
205986
206269
|
/* 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=
|
|
206270
|
+
;// 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
206271
|
var render = function render() {
|
|
205989
206272
|
var _vm = this,
|
|
205990
206273
|
_c = _vm._self._c;
|
|
@@ -206685,14 +206968,14 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
206685
206968
|
key: "mouseDblClick",
|
|
206686
206969
|
value: function () {
|
|
206687
206970
|
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,
|
|
206971
|
+
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
206972
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
|
|
206690
206973
|
while (1) switch (_context.prev = _context.next) {
|
|
206691
206974
|
case 0:
|
|
206692
206975
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
206693
206976
|
dPage = hoEditorFactory.drawTree.drawPages[this._pageIndex];
|
|
206694
206977
|
if (!(aevent.currentTarget === this.stage)) {
|
|
206695
|
-
_context.next =
|
|
206978
|
+
_context.next = 49;
|
|
206696
206979
|
break;
|
|
206697
206980
|
}
|
|
206698
206981
|
oldDPage = hoEditorFactory.drawTree.activePage;
|
|
@@ -206734,37 +207017,27 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
206734
207017
|
//this._drawPage.drawDomLevel.activeDrawRect,
|
|
206735
207018
|
aevent.stageX, aevent.stageY);
|
|
206736
207019
|
if (!startPos) {
|
|
206737
|
-
_context.next =
|
|
206738
|
-
break;
|
|
206739
|
-
}
|
|
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;
|
|
207020
|
+
_context.next = 49;
|
|
206746
207021
|
break;
|
|
206747
207022
|
}
|
|
206748
|
-
return _context.abrupt("return");
|
|
206749
|
-
case 30:
|
|
206750
207023
|
if (!(!isSameArea && startPos.page)) {
|
|
206751
|
-
_context.next =
|
|
207024
|
+
_context.next = 30;
|
|
206752
207025
|
break;
|
|
206753
207026
|
}
|
|
206754
207027
|
//活动区域变更
|
|
206755
207028
|
hoEditorFactory.docTree.curDomRange.setSamePath(startPos.path);
|
|
206756
207029
|
if (!(targetArea.children.length === 0)) {
|
|
206757
|
-
_context.next =
|
|
207030
|
+
_context.next = 28;
|
|
206758
207031
|
break;
|
|
206759
207032
|
}
|
|
206760
207033
|
return _context.abrupt("return", true);
|
|
206761
|
-
case
|
|
207034
|
+
case 28:
|
|
206762
207035
|
hoEditorFactory.drawTree.moveCaretToPath(startPos.path);
|
|
206763
207036
|
return _context.abrupt("return", true);
|
|
206764
|
-
case
|
|
207037
|
+
case 30:
|
|
206765
207038
|
np = hoEditorFactory.docTree.findNodePositionByPath(startPos.path);
|
|
206766
207039
|
if (!(np && np.node)) {
|
|
206767
|
-
_context.next =
|
|
207040
|
+
_context.next = 49;
|
|
206768
207041
|
break;
|
|
206769
207042
|
}
|
|
206770
207043
|
prevNode = np.node.prevSibling();
|
|
@@ -206781,33 +207054,33 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
206781
207054
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
206782
207055
|
}
|
|
206783
207056
|
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 =
|
|
207057
|
+
_context.next = 39;
|
|
206785
207058
|
break;
|
|
206786
207059
|
}
|
|
206787
207060
|
nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, 'dblclick', this._pageIndex);
|
|
206788
207061
|
hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
206789
|
-
_context.next =
|
|
207062
|
+
_context.next = 49;
|
|
206790
207063
|
break;
|
|
206791
|
-
case
|
|
207064
|
+
case 39:
|
|
206792
207065
|
if (!(np.node.parentNode instanceof CellNode/* CellNode */.D)) {
|
|
206793
|
-
_context.next =
|
|
207066
|
+
_context.next = 49;
|
|
206794
207067
|
break;
|
|
206795
207068
|
}
|
|
206796
207069
|
cellNode = np.node.parentNode;
|
|
206797
207070
|
colInfos = cellNode.table.colInfos[np.node.parentNode.row.indexOf(np.node.parentNode)];
|
|
206798
207071
|
if (colInfos.isAllowEdit) {
|
|
206799
|
-
_context.next =
|
|
207072
|
+
_context.next = 44;
|
|
206800
207073
|
break;
|
|
206801
207074
|
}
|
|
206802
207075
|
return _context.abrupt("return");
|
|
206803
|
-
case
|
|
207076
|
+
case 44:
|
|
206804
207077
|
rowInfos = cellNode.table.rowInfos[np.node.parentNode.table.rows.indexOf(np.node.parentNode.row)];
|
|
206805
207078
|
if (!(!rowInfos.isAllowEdit || rowInfos.rowProperty.repeatAsTitleAtPageTop)) {
|
|
206806
|
-
_context.next =
|
|
207079
|
+
_context.next = 47;
|
|
206807
207080
|
break;
|
|
206808
207081
|
}
|
|
206809
207082
|
return _context.abrupt("return");
|
|
206810
|
-
case
|
|
207083
|
+
case 47:
|
|
206811
207084
|
colProperty = colInfos.colProperty;
|
|
206812
207085
|
if (cellNode.table.tableProperty.isUsePopEdit && colProperty.editorProperty !== TableProperty/* EditorProperty */.YS.Sign) {
|
|
206813
207086
|
_nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(cellNode, 'dblclick', this._pageIndex);
|
|
@@ -206853,9 +207126,9 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
206853
207126
|
}
|
|
206854
207127
|
}
|
|
206855
207128
|
}
|
|
206856
|
-
case
|
|
207129
|
+
case 49:
|
|
206857
207130
|
return _context.abrupt("return", true);
|
|
206858
|
-
case
|
|
207131
|
+
case 50:
|
|
206859
207132
|
case "end":
|
|
206860
207133
|
return _context.stop();
|
|
206861
207134
|
}
|
|
@@ -206983,8 +207256,6 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
206983
207256
|
var hoeditorfactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
206984
207257
|
hoeditorfactory.drawTree.caret.aiInfo.aiText = '';
|
|
206985
207258
|
comment/* hoCreateComment */.$.close();
|
|
206986
|
-
// const result = hoeditorfactory.vueController.isCanEdit(this._pageIndex, aevent.stageX, aevent.stageY);
|
|
206987
|
-
// if (!result) return false;
|
|
206988
207259
|
if (aevent.nativeEvent.button === 0) {
|
|
206989
207260
|
this._mouseDownCount += 1;
|
|
206990
207261
|
var leftDownInterval = setTimeout(function () {
|
|
@@ -209314,7 +209585,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
209314
209585
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
209315
209586
|
var ParagraphNode = __webpack_require__(67945);
|
|
209316
209587
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
209317
|
-
/* harmony default export */ var version = ('3.1.
|
|
209588
|
+
/* harmony default export */ var version = ('3.1.107');
|
|
209318
209589
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
209319
209590
|
var PoperTipText = __webpack_require__(50987);
|
|
209320
209591
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -216542,6 +216813,8 @@ var web_url_search_params_delete = __webpack_require__(46229);
|
|
|
216542
216813
|
var web_url_search_params_has = __webpack_require__(17330);
|
|
216543
216814
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.size.js
|
|
216544
216815
|
var web_url_search_params_size = __webpack_require__(62062);
|
|
216816
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match-all.js
|
|
216817
|
+
var es_string_match_all = __webpack_require__(76373);
|
|
216545
216818
|
// EXTERNAL MODULE: ./src/editor/events/NodeChangingEvent.ts
|
|
216546
216819
|
var NodeChangingEvent = __webpack_require__(10574);
|
|
216547
216820
|
// EXTERNAL MODULE: ./src/editor/draw/SelectRange.ts
|
|
@@ -217112,6 +217385,8 @@ const gBase64 = {
|
|
|
217112
217385
|
// and finally,
|
|
217113
217386
|
|
|
217114
217387
|
|
|
217388
|
+
// EXTERNAL MODULE: ./src/editor/utils/ExpressionCalculator.ts
|
|
217389
|
+
var ExpressionCalculator = __webpack_require__(71115);
|
|
217115
217390
|
;// CONCATENATED MODULE: ./src/editor/VueController.ts
|
|
217116
217391
|
|
|
217117
217392
|
|
|
@@ -217166,6 +217441,10 @@ const gBase64 = {
|
|
|
217166
217441
|
|
|
217167
217442
|
|
|
217168
217443
|
|
|
217444
|
+
|
|
217445
|
+
|
|
217446
|
+
|
|
217447
|
+
|
|
217169
217448
|
|
|
217170
217449
|
|
|
217171
217450
|
|
|
@@ -217225,6 +217504,7 @@ const gBase64 = {
|
|
|
217225
217504
|
|
|
217226
217505
|
|
|
217227
217506
|
|
|
217507
|
+
|
|
217228
217508
|
|
|
217229
217509
|
|
|
217230
217510
|
var VueController = /*#__PURE__*/function () {
|
|
@@ -219441,7 +219721,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219441
219721
|
mask.name = 'mask' + (index + 1).toString();
|
|
219442
219722
|
}
|
|
219443
219723
|
selectContainer.addChild(mask);
|
|
219444
|
-
//selectContainer.stage.update();
|
|
219445
219724
|
hoEditorFactory.drawPageTree.updateDrawPage(index);
|
|
219446
219725
|
};
|
|
219447
219726
|
_context.next = 22;
|
|
@@ -219627,22 +219906,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219627
219906
|
}
|
|
219628
219907
|
}, {
|
|
219629
219908
|
key: "isCanEdit",
|
|
219630
|
-
value: function isCanEdit(pageIndex,
|
|
219909
|
+
value: function isCanEdit(pageIndex, stageY) {
|
|
219631
219910
|
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
219911
|
var scaleXY = DrawConfig/* DrawConfig */.f.instance().scale;
|
|
219647
219912
|
var drawPage = hoEditorFactory.drawTree.drawPages[pageIndex];
|
|
219648
219913
|
for (var j = 0; j < drawPage.selectContainer.children.length; j++) {
|
|
@@ -221588,6 +221853,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221588
221853
|
return text;
|
|
221589
221854
|
}
|
|
221590
221855
|
}
|
|
221856
|
+
}, {
|
|
221857
|
+
key: "getSelectText",
|
|
221858
|
+
value: function getSelectText() {
|
|
221859
|
+
return this.getRangeText(this.getDomRange());
|
|
221860
|
+
}
|
|
221591
221861
|
}, {
|
|
221592
221862
|
key: "deleteNode",
|
|
221593
221863
|
value: function deleteNode(node) {
|
|
@@ -225756,12 +226026,113 @@ var VueController = /*#__PURE__*/function () {
|
|
|
225756
226026
|
var textNode = new TextNode/* TextNode */.R(this._hoEditorFactoryID, table.rootNodes, _cell, BaseNode/* NodeType */.Jq.ntText, text, _cell.childNodes[0].styleIndex);
|
|
225757
226027
|
_cell.drawCell.needUpdate = true;
|
|
225758
226028
|
_cell.childNodes.push(textNode);
|
|
226029
|
+
} else {
|
|
226030
|
+
if (_cell.cellProperty.editorProperty === TableProperty/* EditorProperty */.YS.Formula) {
|
|
226031
|
+
var formulaStr = _cell.cellProperty.formula.formulaStr;
|
|
226032
|
+
var result = this.clacFormula(_cell, formulaStr);
|
|
226033
|
+
if (result !== "") {
|
|
226034
|
+
_cell.childNodes.splice(1, _cell.childNodes.length);
|
|
226035
|
+
var _textNode = new TextNode/* TextNode */.R(this._hoEditorFactoryID, table.rootNodes, _cell, BaseNode/* NodeType */.Jq.ntText, result, _cell.childNodes[0].styleIndex);
|
|
226036
|
+
_cell.drawCell.needUpdate = true;
|
|
226037
|
+
_cell.childNodes.push(_textNode);
|
|
226038
|
+
_cell.cellProperty.formula.oldValue = result;
|
|
226039
|
+
}
|
|
226040
|
+
}
|
|
225759
226041
|
}
|
|
225760
226042
|
}
|
|
225761
226043
|
}
|
|
225762
226044
|
table.update();
|
|
225763
226045
|
}
|
|
225764
226046
|
}
|
|
226047
|
+
}, {
|
|
226048
|
+
key: "clacFormula",
|
|
226049
|
+
value: function clacFormula(cell, formulaStr) {
|
|
226050
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
226051
|
+
var strRet = '';
|
|
226052
|
+
var strFormula = formulaStr.toLowerCase();
|
|
226053
|
+
var arr = new Array();
|
|
226054
|
+
arr.length = 0;
|
|
226055
|
+
var value = new Array();
|
|
226056
|
+
var cellArddressRe = new RegExp(/[a-z]+\d+/, 'g');
|
|
226057
|
+
var strRets = strFormula.matchAll(cellArddressRe);
|
|
226058
|
+
if (strRets) {
|
|
226059
|
+
var aRet = strRets.next();
|
|
226060
|
+
while (!aRet.done) {
|
|
226061
|
+
arr.push(aRet.value[0]);
|
|
226062
|
+
aRet = strRets.next();
|
|
226063
|
+
}
|
|
226064
|
+
}
|
|
226065
|
+
var table = cell.table;
|
|
226066
|
+
var totalOk = true;
|
|
226067
|
+
for (var i = 0, j = arr.length; i < j; i++) {
|
|
226068
|
+
{
|
|
226069
|
+
var _hoEditorFactory$unit = hoEditorFactory.unitConvert.getRowColByCellAdress(arr[i]),
|
|
226070
|
+
_hoEditorFactory$unit2 = (0,esm_slicedToArray/* default */.Z)(_hoEditorFactory$unit, 2),
|
|
226071
|
+
r = _hoEditorFactory$unit2[0],
|
|
226072
|
+
c = _hoEditorFactory$unit2[1];
|
|
226073
|
+
if (r >= 0 && c >= 0 && r < table.rowCount && c < table.colCount) {
|
|
226074
|
+
var strValue = cell.getCellText();
|
|
226075
|
+
var ivalue = Number(strValue === "" ? '0' : strValue);
|
|
226076
|
+
if (!isNaN(ivalue)) {
|
|
226077
|
+
value[i] = strValue;
|
|
226078
|
+
} else {
|
|
226079
|
+
totalOk = false;
|
|
226080
|
+
break;
|
|
226081
|
+
}
|
|
226082
|
+
} else {
|
|
226083
|
+
totalOk = false;
|
|
226084
|
+
break;
|
|
226085
|
+
}
|
|
226086
|
+
}
|
|
226087
|
+
}
|
|
226088
|
+
if (totalOk) {
|
|
226089
|
+
var isRet = true;
|
|
226090
|
+
for (var m = 0; m < value.length; m++) {
|
|
226091
|
+
if (value[m] !== "") {
|
|
226092
|
+
isRet = false;
|
|
226093
|
+
break;
|
|
226094
|
+
}
|
|
226095
|
+
}
|
|
226096
|
+
if (isRet) {
|
|
226097
|
+
return "";
|
|
226098
|
+
}
|
|
226099
|
+
for (var k = arr.length - 1; k >= 0; k--) {
|
|
226100
|
+
strFormula = hoEditorFactory.unitConvert.replaceAll(strFormula, arr[k], value[k] == "" ? "0" : value[k]); //strFormula.replaceAll(arr[k], value[k]);
|
|
226101
|
+
}
|
|
226102
|
+
|
|
226103
|
+
var result = (0,ExpressionCalculator/* expressionCalculator */.C)(strFormula);
|
|
226104
|
+
strRet = result == "NaN" ? "" : result;
|
|
226105
|
+
}
|
|
226106
|
+
return strRet;
|
|
226107
|
+
}
|
|
226108
|
+
}, {
|
|
226109
|
+
key: "markRed",
|
|
226110
|
+
value: function markRed(cell, text) {
|
|
226111
|
+
var _this13 = this;
|
|
226112
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
226113
|
+
var repaint = function repaint(type) {
|
|
226114
|
+
var styleIndex = cell.childNodes[0].styleIndex;
|
|
226115
|
+
var curStyle = hoEditorFactory.docTree.styles[styleIndex];
|
|
226116
|
+
var newStyle = new TextStyle/* TextStyle */.pn(_this13._hoEditorFactoryID);
|
|
226117
|
+
newStyle.copyProperty(curStyle, newStyle);
|
|
226118
|
+
if (type === 1) {
|
|
226119
|
+
newStyle.color = "red";
|
|
226120
|
+
} else {
|
|
226121
|
+
newStyle.color = "#000";
|
|
226122
|
+
}
|
|
226123
|
+
var newIndex = hoEditorFactory.docTree.styleCompare(newStyle);
|
|
226124
|
+
cell.childNodes.splice(1, cell.childNodes.length);
|
|
226125
|
+
var textNode = new TextNode/* TextNode */.R(_this13._hoEditorFactoryID, cell.table.rootNodes, cell, BaseNode/* NodeType */.Jq.ntText, text, newIndex);
|
|
226126
|
+
cell.childNodes.push(textNode);
|
|
226127
|
+
};
|
|
226128
|
+
if (text !== cell.cellProperty.formula.oldValue) {
|
|
226129
|
+
repaint(1);
|
|
226130
|
+
} else if (cell.cellProperty.formula.oldValue !== "") {
|
|
226131
|
+
repaint(2);
|
|
226132
|
+
}
|
|
226133
|
+
cell.drawCell.needUpdate = true;
|
|
226134
|
+
cell.table.update();
|
|
226135
|
+
}
|
|
225765
226136
|
}, {
|
|
225766
226137
|
key: "clearCommentTextBackColor",
|
|
225767
226138
|
value: function clearCommentTextBackColor(ids) {
|
|
@@ -225840,7 +226211,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
225840
226211
|
}, {
|
|
225841
226212
|
key: "getElementChangeRecords",
|
|
225842
226213
|
value: function getElementChangeRecords() {
|
|
225843
|
-
var
|
|
226214
|
+
var _this14 = this;
|
|
225844
226215
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
225845
226216
|
var recordArr = new Array();
|
|
225846
226217
|
var records = hoEditorFactory.docTree.elementChangeRecords;
|
|
@@ -225875,7 +226246,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
225875
226246
|
});
|
|
225876
226247
|
}
|
|
225877
226248
|
if (value[1].nodeTypes == 'sign') {
|
|
225878
|
-
var _node16 =
|
|
226249
|
+
var _node16 = _this14.getNodeByDataID('main', key.replace('|', ''));
|
|
225879
226250
|
if (_node16 instanceof SignNode/* SignNode */.N) {
|
|
225880
226251
|
var signJsons = _node16.node2Json();
|
|
225881
226252
|
var signXml = x2js.js2xml(signJsons);
|
|
@@ -225903,7 +226274,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
225903
226274
|
}
|
|
225904
226275
|
} else {
|
|
225905
226276
|
var id = key.split("|")[0];
|
|
225906
|
-
var _node17 =
|
|
226277
|
+
var _node17 = _this14.getNodeByID('all', id);
|
|
225907
226278
|
}
|
|
225908
226279
|
});
|
|
225909
226280
|
return recordArr;
|
|
@@ -226594,6 +226965,7 @@ var DomController = /*#__PURE__*/function () {
|
|
|
226594
226965
|
|
|
226595
226966
|
|
|
226596
226967
|
|
|
226968
|
+
|
|
226597
226969
|
|
|
226598
226970
|
|
|
226599
226971
|
var EditController = /*#__PURE__*/function () {
|
|
@@ -227091,9 +227463,12 @@ var EditController = /*#__PURE__*/function () {
|
|
|
227091
227463
|
var drawPage = hoEditorFactory.drawTree.activePage;
|
|
227092
227464
|
if (drawPage) {
|
|
227093
227465
|
var dNode = hoEditorFactory.drawTree.getDNodeByPath(curDomRange.endPath);
|
|
227466
|
+
if (dNode instanceof DrawLine/* DrawLine */.a && dNode.drawItems.length > 0) {
|
|
227467
|
+
dNode = dNode.drawItems[0];
|
|
227468
|
+
}
|
|
227094
227469
|
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(dNode);
|
|
227095
227470
|
var stagePt = dline.localToGlobal(dNode.x, dNode.y);
|
|
227096
|
-
result = hoEditorFactory.vueController.isCanEdit(drawPage.pageIndex, stagePt.
|
|
227471
|
+
result = hoEditorFactory.vueController.isCanEdit(drawPage.pageIndex, stagePt.y);
|
|
227097
227472
|
if (!result) {
|
|
227098
227473
|
return false;
|
|
227099
227474
|
}
|
|
@@ -239643,7 +240018,7 @@ var HoFooter_component = (0,componentNormalizer/* default */.Z)(
|
|
|
239643
240018
|
|
|
239644
240019
|
/* harmony default export */ var HoFooter = (HoFooter_component.exports);
|
|
239645
240020
|
// EXTERNAL MODULE: ./src/components/controls/ControlModal.vue + 3 modules
|
|
239646
|
-
var ControlModal = __webpack_require__(
|
|
240021
|
+
var ControlModal = __webpack_require__(27901);
|
|
239647
240022
|
// EXTERNAL MODULE: ./src/components/controls/findReplace/FindReplace.vue + 5 modules
|
|
239648
240023
|
var FindReplace = __webpack_require__(98064);
|
|
239649
240024
|
;// CONCATENATED MODULE: ./src/components/controls/findReplace/index.ts
|
|
@@ -240436,6 +240811,8 @@ var commondata = __webpack_require__(76285);
|
|
|
240436
240811
|
hoEditorFactory.hoLocalStorage.initHoWebSql();
|
|
240437
240812
|
if (!window.vueController) {
|
|
240438
240813
|
window.vueController = hoEditorFactory.vueController;
|
|
240814
|
+
} else {
|
|
240815
|
+
window.vueControllerNext = hoEditorFactory.vueController;
|
|
240439
240816
|
}
|
|
240440
240817
|
if (!window.printController) {
|
|
240441
240818
|
window.printController = hoEditorFactory.printController;
|
|
@@ -240776,10 +241153,10 @@ var commondata = __webpack_require__(76285);
|
|
|
240776
241153
|
});
|
|
240777
241154
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
|
|
240778
241155
|
/* 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=
|
|
241156
|
+
;// 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
241157
|
// extracted by mini-css-extract-plugin
|
|
240781
241158
|
|
|
240782
|
-
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=
|
|
241159
|
+
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=643185d5&prod&lang=less&media=print&
|
|
240783
241160
|
|
|
240784
241161
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue
|
|
240785
241162
|
|
|
@@ -243808,8 +244185,8 @@ var ToolBarChild_component = (0,componentNormalizer/* default */.Z)(
|
|
|
243808
244185
|
)
|
|
243809
244186
|
|
|
243810
244187
|
/* 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
|
|
244188
|
+
;// 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&
|
|
244189
|
+
var ToolControlvue_type_template_id_5eea3dcd_render = function render() {
|
|
243813
244190
|
var _vm = this,
|
|
243814
244191
|
_c = _vm._self._c;
|
|
243815
244192
|
return _c('div', {
|
|
@@ -244099,450 +244476,16 @@ var ToolControlvue_type_template_id_08c856c8_render = function render() {
|
|
|
244099
244476
|
"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
244477
|
}
|
|
244101
244478
|
})]), _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",
|
|
244479
|
+
staticClass: "ho-emr-tool-item",
|
|
244121
244480
|
on: {
|
|
244122
244481
|
"click": function click($event) {
|
|
244123
|
-
|
|
244482
|
+
return _vm.createControl('special-chars');
|
|
244124
244483
|
}
|
|
244125
244484
|
}
|
|
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);
|
|
244485
|
+
}, [_c('span', [_vm._v("特殊字符")])]) : _vm._e()], 2);
|
|
244191
244486
|
};
|
|
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
|
-
|
|
244487
|
+
var ToolControlvue_type_template_id_5eea3dcd_staticRenderFns = [];
|
|
244200
244488
|
|
|
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
|
|
244526
|
-
|
|
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
244489
|
;// 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
244490
|
var HoDateTimevue_type_template_id_d4373800_render = function render() {
|
|
244548
244491
|
var _vm = this,
|
|
@@ -244702,7 +244645,7 @@ var ajax = __webpack_require__(79969);
|
|
|
244702
244645
|
|
|
244703
244646
|
|
|
244704
244647
|
|
|
244705
|
-
|
|
244648
|
+
// import HoSpecialChars from '@/components/toolbar/insert/HoSpecialChars.vue';
|
|
244706
244649
|
|
|
244707
244650
|
|
|
244708
244651
|
// import { $HoFormula } from '@/components/common/hoformula';
|
|
@@ -244711,7 +244654,7 @@ var ajax = __webpack_require__(79969);
|
|
|
244711
244654
|
name: 'ToolControl',
|
|
244712
244655
|
components: {
|
|
244713
244656
|
HoMedicalExpression: HoMedicalExpression,
|
|
244714
|
-
|
|
244657
|
+
// HoSpecialChars,
|
|
244715
244658
|
HoDateTime: HoDateTime,
|
|
244716
244659
|
Poper: popers/* default */.Z
|
|
244717
244660
|
},
|
|
@@ -244827,12 +244770,12 @@ var ajax = __webpack_require__(79969);
|
|
|
244827
244770
|
// },
|
|
244828
244771
|
createRarewords: function createRarewords() {
|
|
244829
244772
|
this.closeControlModal();
|
|
244830
|
-
var $Rarewords = (__webpack_require__(
|
|
244773
|
+
var $Rarewords = (__webpack_require__(73126)/* ["default"] */ .Z);
|
|
244831
244774
|
$Rarewords.open();
|
|
244832
244775
|
},
|
|
244833
244776
|
createHoLink: function createHoLink() {
|
|
244834
244777
|
this.closeControlModal();
|
|
244835
|
-
var $HoLink = (__webpack_require__(
|
|
244778
|
+
var $HoLink = (__webpack_require__(97036)/* ["default"] */ .Z);
|
|
244836
244779
|
$HoLink.open();
|
|
244837
244780
|
},
|
|
244838
244781
|
/**
|
|
@@ -244861,8 +244804,8 @@ var ajax = __webpack_require__(79969);
|
|
|
244861
244804
|
;
|
|
244862
244805
|
var ToolControl_component = (0,componentNormalizer/* default */.Z)(
|
|
244863
244806
|
insert_ToolControlvue_type_script_lang_js_,
|
|
244864
|
-
|
|
244865
|
-
|
|
244807
|
+
ToolControlvue_type_template_id_5eea3dcd_render,
|
|
244808
|
+
ToolControlvue_type_template_id_5eea3dcd_staticRenderFns,
|
|
244866
244809
|
false,
|
|
244867
244810
|
null,
|
|
244868
244811
|
null,
|
|
@@ -248039,7 +247982,7 @@ HoEditorProvide.install = function (Vue) {
|
|
|
248039
247982
|
};
|
|
248040
247983
|
|
|
248041
247984
|
// EXTERNAL MODULE: ./src/components/common/rarewords/index.ts + 7 modules
|
|
248042
|
-
var rarewords = __webpack_require__(
|
|
247985
|
+
var rarewords = __webpack_require__(73126);
|
|
248043
247986
|
;// CONCATENATED MODULE: ./src/plugins/clickoutside.js
|
|
248044
247987
|
|
|
248045
247988
|
|