hoeditor-web 3.0.52 → 3.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.umd.js +555 -391
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -5764,7 +5764,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
5764
5764
|
|
|
5765
5765
|
/***/ }),
|
|
5766
5766
|
|
|
5767
|
-
/***/
|
|
5767
|
+
/***/ 66053:
|
|
5768
5768
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5769
5769
|
|
|
5770
5770
|
"use strict";
|
|
@@ -5776,7 +5776,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
5776
5776
|
"default": function() { return /* binding */ ExpressionForm; }
|
|
5777
5777
|
});
|
|
5778
5778
|
|
|
5779
|
-
;// 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/expressionForm/ExpressionForm.vue?vue&type=template&id=
|
|
5779
|
+
;// 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/expressionForm/ExpressionForm.vue?vue&type=template&id=3bb70df0&
|
|
5780
5780
|
var render = function render() {
|
|
5781
5781
|
var _vm = this,
|
|
5782
5782
|
_c = _vm._self._c;
|
|
@@ -5832,7 +5832,13 @@ var render = function render() {
|
|
|
5832
5832
|
staticClass: "expression-item"
|
|
5833
5833
|
}, [_c('span', {
|
|
5834
5834
|
staticClass: "expression-item-label"
|
|
5835
|
-
}, [_vm._v("末次月经/绝经年龄")]),
|
|
5835
|
+
}, [_vm._v("末次月经/绝经年龄")]), _c('a-date-picker', {
|
|
5836
|
+
directives: [{
|
|
5837
|
+
name: "show",
|
|
5838
|
+
rawName: "v-show",
|
|
5839
|
+
value: _vm.isUseDate,
|
|
5840
|
+
expression: "isUseDate"
|
|
5841
|
+
}],
|
|
5836
5842
|
attrs: {
|
|
5837
5843
|
"prefix-icon": "null",
|
|
5838
5844
|
"type": "date",
|
|
@@ -5848,7 +5854,13 @@ var render = function render() {
|
|
|
5848
5854
|
},
|
|
5849
5855
|
expression: "menstrualHistory.menoPauseAge"
|
|
5850
5856
|
}
|
|
5851
|
-
})
|
|
5857
|
+
}), _c('a-input', {
|
|
5858
|
+
directives: [{
|
|
5859
|
+
name: "show",
|
|
5860
|
+
rawName: "v-show",
|
|
5861
|
+
value: !_vm.isUseDate,
|
|
5862
|
+
expression: "!isUseDate"
|
|
5863
|
+
}],
|
|
5852
5864
|
attrs: {
|
|
5853
5865
|
"type": "text"
|
|
5854
5866
|
},
|
|
@@ -5864,7 +5876,7 @@ var render = function render() {
|
|
|
5864
5876
|
"slot": "addonAfter"
|
|
5865
5877
|
},
|
|
5866
5878
|
slot: "addonAfter"
|
|
5867
|
-
}, [_vm._v(_vm._s(_vm.menoPauseAgeText))]) : _vm._e()])
|
|
5879
|
+
}, [_vm._v(_vm._s(_vm.menoPauseAgeText))]) : _vm._e()])], 1)]), _c('div', {
|
|
5868
5880
|
staticClass: "expression-item"
|
|
5869
5881
|
}, [_c('span', {
|
|
5870
5882
|
staticClass: "expression-item-label"
|
|
@@ -6674,14 +6686,12 @@ var staticRenderFns = [function () {
|
|
|
6674
6686
|
}, [_c('li', [_vm._v("第二乳磨牙")]), _c('li', [_vm._v("第一乳磨牙")]), _c('li', [_vm._v("乳尖牙")]), _c('li', [_vm._v("乳侧切牙")]), _c('li', [_vm._v("乳中切牙")]), _c('li', [_vm._v("乳中切牙")]), _c('li', [_vm._v("乳侧切牙")]), _c('li', [_vm._v("乳尖牙")]), _c('li', [_vm._v("第一乳磨牙")]), _c('li', [_vm._v("第二乳磨牙")])]);
|
|
6675
6687
|
}];
|
|
6676
6688
|
|
|
6677
|
-
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=template&id=
|
|
6689
|
+
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=template&id=3bb70df0&
|
|
6678
6690
|
|
|
6679
6691
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
6680
6692
|
var objectSpread2 = __webpack_require__(63442);
|
|
6681
6693
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
6682
6694
|
var toConsumableArray = __webpack_require__(61748);
|
|
6683
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
6684
|
-
var es_number_constructor = __webpack_require__(9653);
|
|
6685
6695
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
6686
6696
|
var es_array_includes = __webpack_require__(26699);
|
|
6687
6697
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
@@ -6734,7 +6744,6 @@ var zh_cn = __webpack_require__(83839);
|
|
|
6734
6744
|
|
|
6735
6745
|
|
|
6736
6746
|
|
|
6737
|
-
|
|
6738
6747
|
/* harmony default export */ var ExpressionFormvue_type_script_lang_js_ = ({
|
|
6739
6748
|
name: 'ExpressionForm',
|
|
6740
6749
|
data: function data() {
|
|
@@ -6818,16 +6827,16 @@ var zh_cn = __webpack_require__(83839);
|
|
|
6818
6827
|
}
|
|
6819
6828
|
},
|
|
6820
6829
|
watch: {
|
|
6821
|
-
'menstrualHistory.menoPauseAge': {
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
}
|
|
6830
|
+
// 'menstrualHistory.menoPauseAge': {
|
|
6831
|
+
// deep: true,
|
|
6832
|
+
// handler() {
|
|
6833
|
+
// if ((Number(this.menstrualHistory.menoPauseAge) && parseInt(this.menstrualHistory.menoPauseAge)) || this.menstrualHistory.menoPauseAge == '') {
|
|
6834
|
+
// this.menoPauseAgeText = '岁';
|
|
6835
|
+
// } else {
|
|
6836
|
+
// this.menoPauseAgeText = '';
|
|
6837
|
+
// }
|
|
6838
|
+
// },
|
|
6839
|
+
// },
|
|
6831
6840
|
},
|
|
6832
6841
|
computed: {
|
|
6833
6842
|
controlType: function controlType() {
|
|
@@ -7116,10 +7125,10 @@ var zh_cn = __webpack_require__(83839);
|
|
|
7116
7125
|
});
|
|
7117
7126
|
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=script&lang=js&
|
|
7118
7127
|
/* harmony default export */ var expressionForm_ExpressionFormvue_type_script_lang_js_ = (ExpressionFormvue_type_script_lang_js_);
|
|
7119
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=style&index=0&id=
|
|
7128
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=style&index=0&id=3bb70df0&prod&lang=scss&
|
|
7120
7129
|
// extracted by mini-css-extract-plugin
|
|
7121
7130
|
|
|
7122
|
-
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=style&index=0&id=
|
|
7131
|
+
;// CONCATENATED MODULE: ./src/components/controls/expressionForm/ExpressionForm.vue?vue&type=style&index=0&id=3bb70df0&prod&lang=scss&
|
|
7123
7132
|
|
|
7124
7133
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
7125
7134
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -8877,7 +8886,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
8877
8886
|
|
|
8878
8887
|
/***/ }),
|
|
8879
8888
|
|
|
8880
|
-
/***/
|
|
8889
|
+
/***/ 85778:
|
|
8881
8890
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8882
8891
|
|
|
8883
8892
|
"use strict";
|
|
@@ -8897,7 +8906,7 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
8897
8906
|
var es_regexp_exec = __webpack_require__(74916);
|
|
8898
8907
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
8899
8908
|
var es_string_replace = __webpack_require__(15306);
|
|
8900
|
-
;// 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/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
8909
|
+
;// 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/poperSelect/PoperSelect.vue?vue&type=template&id=5888a1e4&
|
|
8901
8910
|
|
|
8902
8911
|
|
|
8903
8912
|
|
|
@@ -9285,7 +9294,7 @@ var render = function render() {
|
|
|
9285
9294
|
};
|
|
9286
9295
|
var staticRenderFns = [];
|
|
9287
9296
|
|
|
9288
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
9297
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=5888a1e4&
|
|
9289
9298
|
|
|
9290
9299
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
9291
9300
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -11362,7 +11371,8 @@ var type = __webpack_require__(41542);
|
|
|
11362
11371
|
// 保存打开表单时的节点路径
|
|
11363
11372
|
endPath: '',
|
|
11364
11373
|
calendarInstance: null,
|
|
11365
|
-
calendarTimeInstance: null
|
|
11374
|
+
calendarTimeInstance: null,
|
|
11375
|
+
isSelected: false
|
|
11366
11376
|
};
|
|
11367
11377
|
},
|
|
11368
11378
|
computed: {
|
|
@@ -11798,6 +11808,7 @@ var type = __webpack_require__(41542);
|
|
|
11798
11808
|
*/
|
|
11799
11809
|
selectItemsChange: function selectItemsChange(value) {
|
|
11800
11810
|
var _this8 = this;
|
|
11811
|
+
if (this.isSelected) return; // 单选时已选过不在进入选择
|
|
11801
11812
|
if (!this.isAllowMultiSelect) {
|
|
11802
11813
|
var item = {};
|
|
11803
11814
|
var selectItemIndex = 0;
|
|
@@ -11809,6 +11820,7 @@ var type = __webpack_require__(41542);
|
|
|
11809
11820
|
}
|
|
11810
11821
|
});
|
|
11811
11822
|
item.selected = !item.selected;
|
|
11823
|
+
this.isSelected = true;
|
|
11812
11824
|
this.poperSelectList.splice(selectItemIndex, 1, item);
|
|
11813
11825
|
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
11814
11826
|
this.sureSelect();
|
|
@@ -11843,10 +11855,12 @@ var type = __webpack_require__(41542);
|
|
|
11843
11855
|
},
|
|
11844
11856
|
selectItems: function selectItems(item, index) {
|
|
11845
11857
|
var _this9 = this;
|
|
11858
|
+
if (this.isSelected) return; // 单选时已选过不在进入选择
|
|
11846
11859
|
if (!this.isAllowMultiSelect) {
|
|
11847
11860
|
this.poperSelectList.forEach(function (v) {
|
|
11848
11861
|
v.selected = false;
|
|
11849
11862
|
});
|
|
11863
|
+
this.isSelected = true;
|
|
11850
11864
|
item.selected = !item.selected;
|
|
11851
11865
|
this.poperSelectList.splice(index, 1, item);
|
|
11852
11866
|
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
@@ -11976,16 +11990,12 @@ var type = __webpack_require__(41542);
|
|
|
11976
11990
|
this.textParam.keyValue = keyValue;
|
|
11977
11991
|
this.textParam.value = value;
|
|
11978
11992
|
if (this.textParam.downListProperty.allowMultiSelected && !this.textParam.insCheckSyncUpdateList) {
|
|
11979
|
-
hoEditorFactory.vueController.updateTextInputField(this.textParam);
|
|
11980
|
-
} else if (this.textParam.downListProperty.allowMultiSelected && this.textParam.insCheckSyncUpdateList) {
|
|
11981
|
-
// hoEditorFactory.vueController.updateTextInputField(this.textParam);
|
|
11982
|
-
// console.log(text, value, keyValue, this.selectedList);
|
|
11983
11993
|
// hoEditorFactory.vueController.updateTextInputField(this.textParam);
|
|
11994
|
+
hoEditorFactory.elementController.updateTextInputFieldValue(currentPoperNode, text, currentPoperNode.customProperty, keyValue, value);
|
|
11995
|
+
} else if (this.textParam.downListProperty.allowMultiSelected && this.textParam.insCheckSyncUpdateList) {
|
|
11984
11996
|
var checkText = '<span>' + textArr.join('') + '</span>';
|
|
11985
11997
|
hoEditorFactory.vueController.insertHtmlText(checkText, checkText, keyValue, this.selectedList, true);
|
|
11986
11998
|
} else {
|
|
11987
|
-
// const customProperty = this.getCustomProperty ? this.getCustomProperty() : {};
|
|
11988
|
-
|
|
11989
11999
|
hoEditorFactory.elementController.updateTextInputFieldValue(currentPoperNode, text, currentPoperNode.customProperty, keyValue, value);
|
|
11990
12000
|
}
|
|
11991
12001
|
}
|
|
@@ -12022,6 +12032,7 @@ var type = __webpack_require__(41542);
|
|
|
12022
12032
|
this.poppernIstance && this.poppernIstance.update();
|
|
12023
12033
|
},
|
|
12024
12034
|
handleClose: function handleClose() {
|
|
12035
|
+
this.isSelected = false;
|
|
12025
12036
|
this.removeListerner();
|
|
12026
12037
|
this.$emit('poperClose');
|
|
12027
12038
|
console.timeEnd('下拉选中时间');
|
|
@@ -12038,10 +12049,10 @@ var type = __webpack_require__(41542);
|
|
|
12038
12049
|
});
|
|
12039
12050
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
12040
12051
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
|
|
12041
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12052
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=5888a1e4&prod&lang=scss&
|
|
12042
12053
|
// extracted by mini-css-extract-plugin
|
|
12043
12054
|
|
|
12044
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12055
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=5888a1e4&prod&lang=scss&
|
|
12045
12056
|
|
|
12046
12057
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
12047
12058
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -20216,7 +20227,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
20216
20227
|
|
|
20217
20228
|
/***/ }),
|
|
20218
20229
|
|
|
20219
|
-
/***/
|
|
20230
|
+
/***/ 74353:
|
|
20220
20231
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
20221
20232
|
|
|
20222
20233
|
"use strict";
|
|
@@ -20230,7 +20241,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
20230
20241
|
|
|
20231
20242
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
20232
20243
|
var es_function_name = __webpack_require__(68309);
|
|
20233
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=
|
|
20244
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=2e48f0d1&
|
|
20234
20245
|
|
|
20235
20246
|
var render = function render() {
|
|
20236
20247
|
var _vm = this,
|
|
@@ -20661,7 +20672,18 @@ var render = function render() {
|
|
|
20661
20672
|
},
|
|
20662
20673
|
expression: "textParam.insCheckSyncUpdateList"
|
|
20663
20674
|
}
|
|
20664
|
-
}, [_vm._v("插入检查检验同步更新列表项")])
|
|
20675
|
+
}, [_vm._v("插入检查检验同步更新列表项")]), _c('a-checkbox', {
|
|
20676
|
+
attrs: {
|
|
20677
|
+
"size": "small"
|
|
20678
|
+
},
|
|
20679
|
+
model: {
|
|
20680
|
+
value: _vm.textParam.hideDuringPrint,
|
|
20681
|
+
callback: function callback($$v) {
|
|
20682
|
+
_vm.$set(_vm.textParam, "hideDuringPrint", $$v);
|
|
20683
|
+
},
|
|
20684
|
+
expression: "textParam.hideDuringPrint"
|
|
20685
|
+
}
|
|
20686
|
+
}, [_vm._v("打印时隐藏")])], 1)])]), _c('a-tab-pane', {
|
|
20665
20687
|
key: "third",
|
|
20666
20688
|
attrs: {
|
|
20667
20689
|
"tab": "其他属性"
|
|
@@ -20696,7 +20718,7 @@ var render = function render() {
|
|
|
20696
20718
|
};
|
|
20697
20719
|
var staticRenderFns = [];
|
|
20698
20720
|
|
|
20699
|
-
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=
|
|
20721
|
+
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=2e48f0d1&
|
|
20700
20722
|
|
|
20701
20723
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
20702
20724
|
var objectSpread2 = __webpack_require__(63442);
|
|
@@ -20821,6 +20843,8 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
20821
20843
|
_this.customPropertyValue = (0,objectSpread2/* default */.Z)({}, property);
|
|
20822
20844
|
} else if (key === 'readType') {
|
|
20823
20845
|
_this.textParam.readType = updateNode.readType == 1 ? true : false;
|
|
20846
|
+
} else if (key === 'hideDuringPrint') {
|
|
20847
|
+
_this.textParam.hideDuringPrint = updateNode.hideDuringPrint == 'undefined' || updateNode.hideDuringPrint == undefined ? false : updateNode.hideDuringPrint;
|
|
20824
20848
|
} else {
|
|
20825
20849
|
_this.textParam[key] = updateNode[key];
|
|
20826
20850
|
}
|
|
@@ -20924,10 +20948,10 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
20924
20948
|
});
|
|
20925
20949
|
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=script&lang=js&
|
|
20926
20950
|
/* harmony default export */ var textDialog_TextDialogvue_type_script_lang_js_ = (TextDialogvue_type_script_lang_js_);
|
|
20927
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=
|
|
20951
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=2e48f0d1&prod&lang=scss&
|
|
20928
20952
|
// extracted by mini-css-extract-plugin
|
|
20929
20953
|
|
|
20930
|
-
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=
|
|
20954
|
+
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=2e48f0d1&prod&lang=scss&
|
|
20931
20955
|
|
|
20932
20956
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
20933
20957
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -28962,7 +28986,8 @@ var textParams = {
|
|
|
28962
28986
|
readType: false,
|
|
28963
28987
|
keyValue: '',
|
|
28964
28988
|
value: '',
|
|
28965
|
-
insCheckSyncUpdateList: false
|
|
28989
|
+
insCheckSyncUpdateList: false,
|
|
28990
|
+
hideDuringPrint: false
|
|
28966
28991
|
// isMultiLinesDisplay: false
|
|
28967
28992
|
};
|
|
28968
28993
|
|
|
@@ -35276,6 +35301,8 @@ var DrawPageTable = __webpack_require__(15694);
|
|
|
35276
35301
|
var ParagraphNode = __webpack_require__(67945);
|
|
35277
35302
|
// EXTERNAL MODULE: ./src/editor/draw/drawArea/DrawPageMainDoc.ts
|
|
35278
35303
|
var DrawPageMainDoc = __webpack_require__(77441);
|
|
35304
|
+
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawTable.ts
|
|
35305
|
+
var DrawTable = __webpack_require__(74298);
|
|
35279
35306
|
;// CONCATENATED MODULE: ./src/editor/PrintStatus.ts
|
|
35280
35307
|
|
|
35281
35308
|
|
|
@@ -35317,6 +35344,7 @@ var DrawPageMainDoc = __webpack_require__(77441);
|
|
|
35317
35344
|
|
|
35318
35345
|
|
|
35319
35346
|
|
|
35347
|
+
|
|
35320
35348
|
|
|
35321
35349
|
|
|
35322
35350
|
/**
|
|
@@ -35922,7 +35950,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
35922
35950
|
key: "printToPDF",
|
|
35923
35951
|
value: function () {
|
|
35924
35952
|
var _printToPDF = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(hoEditorFactoryID, PDF, type, fileName, reslove, positionY, format) {
|
|
35925
|
-
var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, last, pageNumber, startPageNumOver, _iterator, _step, index, cpage, mainHeight, lastDline, dShape, posIndex, posY, _dShape, svg2pdfOptions, _cpage$drawDomLevel, _cpage$drawDomLevel$s, ctx, pageSize, _cpage$drawDomLevel2, _cpage$drawDomLevel2$, _ctx, _ctx2, _svgBox2, svgData, _ctx3, _cpage$drawDomLevel$s2, _svgBox, printStyle, exportHtml, url, link, _last, otherPageNumber, i, name;
|
|
35953
|
+
var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, last, pageNumber, startPageNumOver, _iterator, _step, index, cpage, children, mainHeight, lastDline, dShape, posIndex, posY, _dShape, svg2pdfOptions, _cpage$drawDomLevel, _cpage$drawDomLevel$s, ctx, pageSize, _cpage$drawDomLevel2, _cpage$drawDomLevel2$, _ctx, _ctx2, _svgBox2, svgData, _ctx3, _cpage$drawDomLevel$s2, _svgBox, printStyle, exportHtml, url, link, _last, otherPageNumber, i, name;
|
|
35926
35954
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context3) {
|
|
35927
35955
|
while (1) {
|
|
35928
35956
|
switch (_context3.prev = _context3.next) {
|
|
@@ -35974,7 +36002,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
35974
36002
|
_iterator.s();
|
|
35975
36003
|
case 19:
|
|
35976
36004
|
if ((_step = _iterator.n()).done) {
|
|
35977
|
-
_context3.next =
|
|
36005
|
+
_context3.next = 67;
|
|
35978
36006
|
break;
|
|
35979
36007
|
}
|
|
35980
36008
|
index = _step.value;
|
|
@@ -35983,22 +36011,32 @@ var Print = /*#__PURE__*/function () {
|
|
|
35983
36011
|
break;
|
|
35984
36012
|
}
|
|
35985
36013
|
message/* default.info */.Z.info('请进行翻页');
|
|
35986
|
-
return _context3.abrupt("continue",
|
|
36014
|
+
return _context3.abrupt("continue", 65);
|
|
35987
36015
|
case 24:
|
|
35988
36016
|
last = index;
|
|
35989
36017
|
if (!(index < hoEditorFactory.startPageNum)) {
|
|
35990
36018
|
_context3.next = 27;
|
|
35991
36019
|
break;
|
|
35992
36020
|
}
|
|
35993
|
-
return _context3.abrupt("break",
|
|
36021
|
+
return _context3.abrupt("break", 67);
|
|
35994
36022
|
case 27:
|
|
35995
|
-
cpage = hoEditorFactory.drawTree.drawPages[index];
|
|
35996
|
-
|
|
35997
|
-
|
|
36023
|
+
cpage = hoEditorFactory.drawTree.drawPages[index]; // if (
|
|
36024
|
+
// index === hoEditorFactory.drawTree.drawPages.length - 1 &&
|
|
36025
|
+
// cpage.drawMainDoc.children.length === 2 &&
|
|
36026
|
+
// !(cpage.drawMainDoc.children[0] instanceof DrawPageTable) &&
|
|
36027
|
+
// cpage.drawMainDoc.children[1] &&
|
|
36028
|
+
// (cpage.drawMainDoc.children[1] as any).drawItems.length === 0
|
|
36029
|
+
// ) {
|
|
36030
|
+
// console.log('??????');
|
|
36031
|
+
// break;
|
|
36032
|
+
// }
|
|
36033
|
+
children = cpage.drawMainDoc.children;
|
|
36034
|
+
if (!(children.length == 2 && !(children[0] instanceof DrawPageTable/* DrawPageTable */.ox) && children[1] && children[1].drawItems.length == 0 || children.length == 1 && children[0] instanceof DrawLine/* DrawLine */.a && children[0].drawItems.length == 0)) {
|
|
36035
|
+
_context3.next = 31;
|
|
35998
36036
|
break;
|
|
35999
36037
|
}
|
|
36000
|
-
return _context3.abrupt("
|
|
36001
|
-
case
|
|
36038
|
+
return _context3.abrupt("continue", 65);
|
|
36039
|
+
case 31:
|
|
36002
36040
|
if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
|
|
36003
36041
|
cpage.drawDomLevel.bindStage();
|
|
36004
36042
|
cpage.needUpdateStage = true;
|
|
@@ -36006,8 +36044,8 @@ var Print = /*#__PURE__*/function () {
|
|
|
36006
36044
|
// 合并续打: 上一页还有空余时续打起始页隐藏页脚
|
|
36007
36045
|
if (index === hoEditorFactory.startPageNum && positionY) {
|
|
36008
36046
|
mainHeight = cpage.drawMainDoc.y;
|
|
36009
|
-
if (
|
|
36010
|
-
lastDline =
|
|
36047
|
+
if (children.length > 0) {
|
|
36048
|
+
lastDline = children[children.length - 1];
|
|
36011
36049
|
mainHeight += lastDline.y + lastDline.dHeight;
|
|
36012
36050
|
}
|
|
36013
36051
|
if (mainHeight - positionY <= 10) {
|
|
@@ -36048,7 +36086,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
36048
36086
|
}
|
|
36049
36087
|
}
|
|
36050
36088
|
if (!(hoEditorFactory.isUseImagePrint && type !== 'html')) {
|
|
36051
|
-
_context3.next =
|
|
36089
|
+
_context3.next = 50;
|
|
36052
36090
|
break;
|
|
36053
36091
|
}
|
|
36054
36092
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
@@ -36068,9 +36106,9 @@ var Print = /*#__PURE__*/function () {
|
|
|
36068
36106
|
|
|
36069
36107
|
ctx && ((_cpage$drawDomLevel = cpage.drawDomLevel) === null || _cpage$drawDomLevel === void 0 ? void 0 : (_cpage$drawDomLevel$s = _cpage$drawDomLevel.stage) === null || _cpage$drawDomLevel$s === void 0 ? void 0 : _cpage$drawDomLevel$s.draw(ctx));
|
|
36070
36108
|
ctx = null;
|
|
36071
|
-
_context3.next =
|
|
36109
|
+
_context3.next = 64;
|
|
36072
36110
|
break;
|
|
36073
|
-
case
|
|
36111
|
+
case 50:
|
|
36074
36112
|
_ctx = new canvas2svg({
|
|
36075
36113
|
width: width,
|
|
36076
36114
|
height: height,
|
|
@@ -36078,61 +36116,61 @@ var Print = /*#__PURE__*/function () {
|
|
|
36078
36116
|
});
|
|
36079
36117
|
_ctx && ((_cpage$drawDomLevel2 = cpage.drawDomLevel) === null || _cpage$drawDomLevel2 === void 0 ? void 0 : (_cpage$drawDomLevel2$ = _cpage$drawDomLevel2.stage) === null || _cpage$drawDomLevel2$ === void 0 ? void 0 : _cpage$drawDomLevel2$.draw(_ctx));
|
|
36080
36118
|
if (!(type === 'html')) {
|
|
36081
|
-
_context3.next =
|
|
36119
|
+
_context3.next = 57;
|
|
36082
36120
|
break;
|
|
36083
36121
|
}
|
|
36084
36122
|
svgData = (_ctx2 = _ctx) === null || _ctx2 === void 0 ? void 0 : _ctx2.getSvg();
|
|
36085
36123
|
svgData && ((_svgBox2 = svgBox) === null || _svgBox2 === void 0 ? void 0 : _svgBox2.appendChild(svgData));
|
|
36086
|
-
_context3.next =
|
|
36124
|
+
_context3.next = 63;
|
|
36087
36125
|
break;
|
|
36088
|
-
case
|
|
36126
|
+
case 57:
|
|
36089
36127
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
36090
36128
|
pageNumber++;
|
|
36091
36129
|
_context3.t0 = PDF;
|
|
36092
36130
|
if (!_context3.t0) {
|
|
36093
|
-
_context3.next =
|
|
36131
|
+
_context3.next = 63;
|
|
36094
36132
|
break;
|
|
36095
36133
|
}
|
|
36096
|
-
_context3.next =
|
|
36134
|
+
_context3.next = 63;
|
|
36097
36135
|
return svg2pdf((_ctx3 = _ctx) === null || _ctx3 === void 0 ? void 0 : _ctx3.getSvg(), PDF, svg2pdfOptions);
|
|
36098
|
-
case 62:
|
|
36099
|
-
_ctx = null;
|
|
36100
36136
|
case 63:
|
|
36137
|
+
_ctx = null;
|
|
36138
|
+
case 64:
|
|
36101
36139
|
if (index > 0 && cpage.drawDomLevel) {
|
|
36102
36140
|
(_cpage$drawDomLevel$s2 = cpage.drawDomLevel.stage) === null || _cpage$drawDomLevel$s2 === void 0 ? void 0 : _cpage$drawDomLevel$s2.removeAllChildren();
|
|
36103
36141
|
cpage.drawDomLevel.clearStage();
|
|
36104
36142
|
}
|
|
36105
36143
|
// index > 0 && cpage.drawDomLevel?.clearStage();
|
|
36106
|
-
case
|
|
36144
|
+
case 65:
|
|
36107
36145
|
_context3.next = 19;
|
|
36108
36146
|
break;
|
|
36109
|
-
case
|
|
36110
|
-
_context3.next =
|
|
36147
|
+
case 67:
|
|
36148
|
+
_context3.next = 72;
|
|
36111
36149
|
break;
|
|
36112
|
-
case
|
|
36113
|
-
_context3.prev =
|
|
36150
|
+
case 69:
|
|
36151
|
+
_context3.prev = 69;
|
|
36114
36152
|
_context3.t1 = _context3["catch"](17);
|
|
36115
36153
|
_iterator.e(_context3.t1);
|
|
36116
|
-
case
|
|
36117
|
-
_context3.prev =
|
|
36154
|
+
case 72:
|
|
36155
|
+
_context3.prev = 72;
|
|
36118
36156
|
_iterator.f();
|
|
36119
|
-
return _context3.finish(
|
|
36120
|
-
case
|
|
36157
|
+
return _context3.finish(72);
|
|
36158
|
+
case 75:
|
|
36121
36159
|
console.timeEnd('绘制svg和生成pdf');
|
|
36122
36160
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
36123
36161
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
36124
36162
|
if (!(type === 'html')) {
|
|
36125
|
-
_context3.next =
|
|
36163
|
+
_context3.next = 95;
|
|
36126
36164
|
break;
|
|
36127
36165
|
}
|
|
36128
36166
|
if (!(svgBox && svgBox.childNodes.length === 0)) {
|
|
36129
|
-
_context3.next =
|
|
36167
|
+
_context3.next = 83;
|
|
36130
36168
|
break;
|
|
36131
36169
|
}
|
|
36132
36170
|
message/* default.info */.Z.info('无新增内容');
|
|
36133
36171
|
reslove && reslove('printend');
|
|
36134
36172
|
return _context3.abrupt("return");
|
|
36135
|
-
case
|
|
36173
|
+
case 83:
|
|
36136
36174
|
printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
|
|
36137
36175
|
exportHtml = "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <style>".concat(printStyle.innerHTML, "</style>\n </head>\n <body>").concat((_svgBox = svgBox) === null || _svgBox === void 0 ? void 0 : _svgBox.innerHTML, "</body>\n </html>\n ");
|
|
36138
36176
|
url = window.URL.createObjectURL(new Blob([exportHtml], {
|
|
@@ -36149,20 +36187,20 @@ var Print = /*#__PURE__*/function () {
|
|
|
36149
36187
|
}, 100);
|
|
36150
36188
|
reslove && reslove('printend');
|
|
36151
36189
|
return _context3.abrupt("return");
|
|
36152
|
-
case
|
|
36190
|
+
case 95:
|
|
36153
36191
|
if (!(positionY || hoEditorFactory.startPageNum !== 0 && positionY !== undefined)) {
|
|
36154
|
-
_context3.next =
|
|
36192
|
+
_context3.next = 101;
|
|
36155
36193
|
break;
|
|
36156
36194
|
}
|
|
36157
36195
|
_last = hoEditorFactory.printStatus.printRecord.last();
|
|
36158
36196
|
if (!(_last && hoEditorFactory.startPageNum == _last[0] && positionY === _last[1])) {
|
|
36159
|
-
_context3.next =
|
|
36197
|
+
_context3.next = 101;
|
|
36160
36198
|
break;
|
|
36161
36199
|
}
|
|
36162
36200
|
message/* default.info */.Z.info('无新增内容无法续打,如果要打印最后一份病历,请打开打印记录,删除最近一次打印记录');
|
|
36163
36201
|
reslove && reslove('printend');
|
|
36164
36202
|
return _context3.abrupt("return");
|
|
36165
|
-
case
|
|
36203
|
+
case 101:
|
|
36166
36204
|
if (type === 'pdf') {
|
|
36167
36205
|
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
36168
36206
|
PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName + '.pdf');
|
|
@@ -36185,12 +36223,12 @@ var Print = /*#__PURE__*/function () {
|
|
|
36185
36223
|
PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes, hoEditorFactory.printSilently);
|
|
36186
36224
|
}
|
|
36187
36225
|
reslove && reslove('printend');
|
|
36188
|
-
case
|
|
36226
|
+
case 103:
|
|
36189
36227
|
case "end":
|
|
36190
36228
|
return _context3.stop();
|
|
36191
36229
|
}
|
|
36192
36230
|
}
|
|
36193
|
-
}, _callee2, this, [[17,
|
|
36231
|
+
}, _callee2, this, [[17, 69, 72, 75]]);
|
|
36194
36232
|
}));
|
|
36195
36233
|
function printToPDF(_x2, _x3, _x4, _x5, _x6, _x7, _x8) {
|
|
36196
36234
|
return _printToPDF.apply(this, arguments);
|
|
@@ -36201,7 +36239,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
36201
36239
|
key: "createPDFBase64",
|
|
36202
36240
|
value: function () {
|
|
36203
36241
|
var _createPDFBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee3(hoEditorFactoryID, reslove, PDF) {
|
|
36204
|
-
var hoEditorFactory, orientation, svgBox, last, pageNumber, _iterator2, _step2, _cpage$drawDomLevel5, index, cpage, _cpage$drawDomLevel3, _cpage$drawDomLevel3$, ctx, _cpage$drawDomLevel4, _cpage$drawDomLevel4$, _ctx5, _ctx4;
|
|
36242
|
+
var hoEditorFactory, orientation, svgBox, last, pageNumber, _iterator2, _step2, _cpage$drawDomLevel5, index, cpage, children, _cpage$drawDomLevel3, _cpage$drawDomLevel3$, ctx, _cpage$drawDomLevel4, _cpage$drawDomLevel4$, _ctx5, _ctx4;
|
|
36205
36243
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee3$(_context4) {
|
|
36206
36244
|
while (1) {
|
|
36207
36245
|
switch (_context4.prev = _context4.next) {
|
|
@@ -36222,7 +36260,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
36222
36260
|
_iterator2.s();
|
|
36223
36261
|
case 12:
|
|
36224
36262
|
if ((_step2 = _iterator2.n()).done) {
|
|
36225
|
-
_context4.next =
|
|
36263
|
+
_context4.next = 43;
|
|
36226
36264
|
break;
|
|
36227
36265
|
}
|
|
36228
36266
|
index = _step2.value;
|
|
@@ -36231,16 +36269,25 @@ var Print = /*#__PURE__*/function () {
|
|
|
36231
36269
|
break;
|
|
36232
36270
|
}
|
|
36233
36271
|
message/* default.info */.Z.info('请进行翻页');
|
|
36234
|
-
return _context4.abrupt("continue",
|
|
36272
|
+
return _context4.abrupt("continue", 41);
|
|
36235
36273
|
case 17:
|
|
36236
36274
|
last = index;
|
|
36237
|
-
cpage = hoEditorFactory.drawTree.drawPages[index];
|
|
36238
|
-
|
|
36239
|
-
|
|
36275
|
+
cpage = hoEditorFactory.drawTree.drawPages[index]; // if (
|
|
36276
|
+
// index === hoEditorFactory.drawTree.drawPages.length - 1 &&
|
|
36277
|
+
// cpage.drawMainDoc.children.length === 2 &&
|
|
36278
|
+
// !(cpage.drawMainDoc.children[0] instanceof DrawPageTable) &&
|
|
36279
|
+
// cpage.drawMainDoc.children[1] &&
|
|
36280
|
+
// (cpage.drawMainDoc.children[1] as any).drawItems.length === 0
|
|
36281
|
+
// ) {
|
|
36282
|
+
// break;
|
|
36283
|
+
// }
|
|
36284
|
+
children = cpage.drawMainDoc.children;
|
|
36285
|
+
if (!(children.length == 2 && !(children[0] instanceof DrawPageTable/* DrawPageTable */.ox) && children[1] && children[1].drawItems.length == 0 || children.length == 1 && children[0] instanceof DrawLine/* DrawLine */.a && children[0].drawItems.length == 0)) {
|
|
36286
|
+
_context4.next = 22;
|
|
36240
36287
|
break;
|
|
36241
36288
|
}
|
|
36242
|
-
return _context4.abrupt("
|
|
36243
|
-
case
|
|
36289
|
+
return _context4.abrupt("continue", 41);
|
|
36290
|
+
case 22:
|
|
36244
36291
|
if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
|
|
36245
36292
|
cpage.drawDomLevel.bindStage();
|
|
36246
36293
|
cpage.needUpdateStage = true;
|
|
@@ -36250,7 +36297,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
36250
36297
|
cpage.needUpdateStage = false;
|
|
36251
36298
|
}
|
|
36252
36299
|
if (!hoEditorFactory.isUseImagePrint) {
|
|
36253
|
-
_context4.next =
|
|
36300
|
+
_context4.next = 33;
|
|
36254
36301
|
break;
|
|
36255
36302
|
}
|
|
36256
36303
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
@@ -36259,9 +36306,9 @@ var Print = /*#__PURE__*/function () {
|
|
|
36259
36306
|
window.printBlack = hoEditorFactory.printBlack;
|
|
36260
36307
|
ctx && ((_cpage$drawDomLevel3 = cpage.drawDomLevel) === null || _cpage$drawDomLevel3 === void 0 ? void 0 : (_cpage$drawDomLevel3$ = _cpage$drawDomLevel3.stage) === null || _cpage$drawDomLevel3$ === void 0 ? void 0 : _cpage$drawDomLevel3$.draw(ctx));
|
|
36261
36308
|
ctx = null;
|
|
36262
|
-
_context4.next =
|
|
36309
|
+
_context4.next = 40;
|
|
36263
36310
|
break;
|
|
36264
|
-
case
|
|
36311
|
+
case 33:
|
|
36265
36312
|
_ctx4 = new canvas2svg({
|
|
36266
36313
|
width: hoEditorFactory.pageProperty.widthPixes,
|
|
36267
36314
|
height: orientation === 'l' ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes,
|
|
@@ -36270,38 +36317,38 @@ var Print = /*#__PURE__*/function () {
|
|
|
36270
36317
|
_ctx4 && ((_cpage$drawDomLevel4 = cpage.drawDomLevel) === null || _cpage$drawDomLevel4 === void 0 ? void 0 : (_cpage$drawDomLevel4$ = _cpage$drawDomLevel4.stage) === null || _cpage$drawDomLevel4$ === void 0 ? void 0 : _cpage$drawDomLevel4$.draw(_ctx4));
|
|
36271
36318
|
PDF.addPage();
|
|
36272
36319
|
pageNumber++;
|
|
36273
|
-
_context4.next =
|
|
36320
|
+
_context4.next = 39;
|
|
36274
36321
|
return svg2pdf((_ctx5 = _ctx4) === null || _ctx5 === void 0 ? void 0 : _ctx5.getSvg(), PDF);
|
|
36275
|
-
case 38:
|
|
36276
|
-
_ctx4 = null;
|
|
36277
36322
|
case 39:
|
|
36278
|
-
|
|
36323
|
+
_ctx4 = null;
|
|
36279
36324
|
case 40:
|
|
36325
|
+
index > 0 && ((_cpage$drawDomLevel5 = cpage.drawDomLevel) === null || _cpage$drawDomLevel5 === void 0 ? void 0 : _cpage$drawDomLevel5.clearStage());
|
|
36326
|
+
case 41:
|
|
36280
36327
|
_context4.next = 12;
|
|
36281
36328
|
break;
|
|
36282
|
-
case
|
|
36283
|
-
_context4.next =
|
|
36329
|
+
case 43:
|
|
36330
|
+
_context4.next = 48;
|
|
36284
36331
|
break;
|
|
36285
|
-
case
|
|
36286
|
-
_context4.prev =
|
|
36332
|
+
case 45:
|
|
36333
|
+
_context4.prev = 45;
|
|
36287
36334
|
_context4.t0 = _context4["catch"](10);
|
|
36288
36335
|
_iterator2.e(_context4.t0);
|
|
36289
|
-
case
|
|
36290
|
-
_context4.prev =
|
|
36336
|
+
case 48:
|
|
36337
|
+
_context4.prev = 48;
|
|
36291
36338
|
_iterator2.f();
|
|
36292
|
-
return _context4.finish(
|
|
36293
|
-
case
|
|
36339
|
+
return _context4.finish(48);
|
|
36340
|
+
case 51:
|
|
36294
36341
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
|
|
36295
36342
|
hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
36296
36343
|
}
|
|
36297
36344
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
36298
36345
|
reslove && reslove(pageNumber);
|
|
36299
|
-
case
|
|
36346
|
+
case 54:
|
|
36300
36347
|
case "end":
|
|
36301
36348
|
return _context4.stop();
|
|
36302
36349
|
}
|
|
36303
36350
|
}
|
|
36304
|
-
}, _callee3, null, [[10,
|
|
36351
|
+
}, _callee3, null, [[10, 45, 48, 51]]);
|
|
36305
36352
|
}));
|
|
36306
36353
|
function createPDFBase64(_x9, _x10, _x11) {
|
|
36307
36354
|
return _createPDFBase.apply(this, arguments);
|
|
@@ -36312,7 +36359,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
36312
36359
|
key: "createHTML",
|
|
36313
36360
|
value: function () {
|
|
36314
36361
|
var _createHTML = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee4(hoEditorFactoryID, reslove, htmlText) {
|
|
36315
|
-
var hoEditorFactory, svgBox, orientation, width, height, last, _iterator3, _step3, _cpage$drawDomLevel6, _cpage$drawDomLevel6$, _cpage$drawDomLevel7, index, cpage, ctx, svgData, printStyle;
|
|
36362
|
+
var hoEditorFactory, svgBox, orientation, width, height, last, _iterator3, _step3, _cpage$drawDomLevel6, _cpage$drawDomLevel6$, _cpage$drawDomLevel7, index, cpage, children, ctx, svgData, printStyle;
|
|
36316
36363
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee4$(_context5) {
|
|
36317
36364
|
while (1) {
|
|
36318
36365
|
switch (_context5.prev = _context5.next) {
|
|
@@ -36331,7 +36378,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
36331
36378
|
_iterator3.s();
|
|
36332
36379
|
case 12:
|
|
36333
36380
|
if ((_step3 = _iterator3.n()).done) {
|
|
36334
|
-
_context5.next =
|
|
36381
|
+
_context5.next = 31;
|
|
36335
36382
|
break;
|
|
36336
36383
|
}
|
|
36337
36384
|
index = _step3.value;
|
|
@@ -36340,16 +36387,25 @@ var Print = /*#__PURE__*/function () {
|
|
|
36340
36387
|
break;
|
|
36341
36388
|
}
|
|
36342
36389
|
message/* default.info */.Z.info('请进行翻页');
|
|
36343
|
-
return _context5.abrupt("continue",
|
|
36390
|
+
return _context5.abrupt("continue", 29);
|
|
36344
36391
|
case 17:
|
|
36345
36392
|
last = index;
|
|
36346
|
-
cpage = hoEditorFactory.drawTree.drawPages[index];
|
|
36347
|
-
|
|
36348
|
-
|
|
36393
|
+
cpage = hoEditorFactory.drawTree.drawPages[index]; // if (
|
|
36394
|
+
// index === hoEditorFactory.drawTree.drawPages.length - 1 &&
|
|
36395
|
+
// cpage.drawMainDoc.children.length === 2 &&
|
|
36396
|
+
// !(cpage.drawMainDoc.children[0] instanceof DrawPageTable) &&
|
|
36397
|
+
// cpage.drawMainDoc.children[1] &&
|
|
36398
|
+
// (cpage.drawMainDoc.children[1] as any).drawItems.length === 0
|
|
36399
|
+
// ) {
|
|
36400
|
+
// break;
|
|
36401
|
+
// }
|
|
36402
|
+
children = cpage.drawMainDoc.children;
|
|
36403
|
+
if (!(children.length == 2 && !(children[0] instanceof DrawPageTable/* DrawPageTable */.ox) && children[1] && children[1].drawItems.length == 0 || children.length == 1 && children[0] instanceof DrawLine/* DrawLine */.a && children[0].drawItems.length == 0)) {
|
|
36404
|
+
_context5.next = 22;
|
|
36349
36405
|
break;
|
|
36350
36406
|
}
|
|
36351
|
-
return _context5.abrupt("
|
|
36352
|
-
case
|
|
36407
|
+
return _context5.abrupt("continue", 29);
|
|
36408
|
+
case 22:
|
|
36353
36409
|
if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
|
|
36354
36410
|
cpage.drawDomLevel.bindStage();
|
|
36355
36411
|
cpage.needUpdateStage = true;
|
|
@@ -36367,21 +36423,21 @@ var Print = /*#__PURE__*/function () {
|
|
|
36367
36423
|
svgData = ctx === null || ctx === void 0 ? void 0 : ctx.getSvg();
|
|
36368
36424
|
svgBox === null || svgBox === void 0 ? void 0 : svgBox.appendChild(svgData);
|
|
36369
36425
|
index > 0 && ((_cpage$drawDomLevel7 = cpage.drawDomLevel) === null || _cpage$drawDomLevel7 === void 0 ? void 0 : _cpage$drawDomLevel7.clearStage());
|
|
36370
|
-
case
|
|
36426
|
+
case 29:
|
|
36371
36427
|
_context5.next = 12;
|
|
36372
36428
|
break;
|
|
36373
|
-
case
|
|
36374
|
-
_context5.next =
|
|
36429
|
+
case 31:
|
|
36430
|
+
_context5.next = 36;
|
|
36375
36431
|
break;
|
|
36376
|
-
case
|
|
36377
|
-
_context5.prev =
|
|
36432
|
+
case 33:
|
|
36433
|
+
_context5.prev = 33;
|
|
36378
36434
|
_context5.t0 = _context5["catch"](10);
|
|
36379
36435
|
_iterator3.e(_context5.t0);
|
|
36380
|
-
case
|
|
36381
|
-
_context5.prev =
|
|
36436
|
+
case 36:
|
|
36437
|
+
_context5.prev = 36;
|
|
36382
36438
|
_iterator3.f();
|
|
36383
|
-
return _context5.finish(
|
|
36384
|
-
case
|
|
36439
|
+
return _context5.finish(36);
|
|
36440
|
+
case 39:
|
|
36385
36441
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
|
|
36386
36442
|
hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
36387
36443
|
}
|
|
@@ -36389,12 +36445,12 @@ var Print = /*#__PURE__*/function () {
|
|
|
36389
36445
|
printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
|
|
36390
36446
|
htmlText.text = "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <style>".concat(printStyle.innerHTML, "</style>\n </head>\n <body>").concat(svgBox === null || svgBox === void 0 ? void 0 : svgBox.innerHTML, "</body>\n </html>\n ");
|
|
36391
36447
|
reslove && reslove('printend');
|
|
36392
|
-
case
|
|
36448
|
+
case 44:
|
|
36393
36449
|
case "end":
|
|
36394
36450
|
return _context5.stop();
|
|
36395
36451
|
}
|
|
36396
36452
|
}
|
|
36397
|
-
}, _callee4, null, [[10,
|
|
36453
|
+
}, _callee4, null, [[10, 33, 36, 39]]);
|
|
36398
36454
|
}));
|
|
36399
36455
|
function createHTML(_x12, _x13, _x14) {
|
|
36400
36456
|
return _createHTML.apply(this, arguments);
|
|
@@ -36405,7 +36461,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
36405
36461
|
key: "printAllNew",
|
|
36406
36462
|
value: function () {
|
|
36407
36463
|
var _printAllNew = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(hoEditorFactoryID, reslove, PDF, position, isPrintFirstDoc) {
|
|
36408
|
-
var hoEditorFactory, a4Size, svgBox, last, widthPixes, heightPixes, orientation, formats, format, svg2pdfOptions, firstPageIndex, _iterator4, _step4, _cpage$drawDomLevel10, index, cpage, _cpage$drawDomLevel8, _cpage$drawDomLevel8$, pageSize, ctx, _cpage$drawDomLevel9, _cpage$drawDomLevel9$, _ctx7, _ctx6, lastPos;
|
|
36464
|
+
var hoEditorFactory, a4Size, svgBox, last, widthPixes, heightPixes, orientation, formats, format, svg2pdfOptions, firstPageIndex, _iterator4, _step4, _cpage$drawDomLevel10, index, cpage, children, _cpage$drawDomLevel8, _cpage$drawDomLevel8$, pageSize, ctx, _cpage$drawDomLevel9, _cpage$drawDomLevel9$, _ctx7, _ctx6, lastPos;
|
|
36409
36465
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee5$(_context6) {
|
|
36410
36466
|
while (1) {
|
|
36411
36467
|
switch (_context6.prev = _context6.next) {
|
|
@@ -36438,10 +36494,14 @@ var Print = /*#__PURE__*/function () {
|
|
|
36438
36494
|
}
|
|
36439
36495
|
}
|
|
36440
36496
|
firstPageIndex = -1; // 用来处理 批量打印----首次病程单独打印----未选择首次病程----只选择病程记录----合并时带上首次病程确保页数准确----打印时丢掉首次病程确保不重复打印首次病程
|
|
36441
|
-
if (isPrintFirstDoc) {
|
|
36497
|
+
if (isPrintFirstDoc && firstPageIndex == -1) {
|
|
36442
36498
|
hoEditorFactory.docTree.mainNodes.forEach(function (node) {
|
|
36443
|
-
if (node instanceof ParagraphNode/* ParagraphNode */.C && node.printAsSinglePage
|
|
36444
|
-
|
|
36499
|
+
if (node instanceof ParagraphNode/* ParagraphNode */.C && node.printAsSinglePage) {
|
|
36500
|
+
if (node.drawlines[0].parent instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
36501
|
+
firstPageIndex = node.drawlines[0].parent.pageIndex;
|
|
36502
|
+
} else if (node.drawlines[0] instanceof DrawTable/* DrawTable */.t && node.drawlines[0].drawPageTables[0].parent instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
36503
|
+
firstPageIndex = node.drawlines[0].drawPageTables[0].parent.pageIndex;
|
|
36504
|
+
}
|
|
36445
36505
|
}
|
|
36446
36506
|
});
|
|
36447
36507
|
}
|
|
@@ -36450,7 +36510,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
36450
36510
|
_iterator4.s();
|
|
36451
36511
|
case 19:
|
|
36452
36512
|
if ((_step4 = _iterator4.n()).done) {
|
|
36453
|
-
_context6.next =
|
|
36513
|
+
_context6.next = 55;
|
|
36454
36514
|
break;
|
|
36455
36515
|
}
|
|
36456
36516
|
index = _step4.value;
|
|
@@ -36459,13 +36519,13 @@ var Print = /*#__PURE__*/function () {
|
|
|
36459
36519
|
break;
|
|
36460
36520
|
}
|
|
36461
36521
|
message/* default.info */.Z.info('请进行翻页');
|
|
36462
|
-
return _context6.abrupt("continue",
|
|
36522
|
+
return _context6.abrupt("continue", 53);
|
|
36463
36523
|
case 24:
|
|
36464
36524
|
if (!(index < firstPageIndex)) {
|
|
36465
36525
|
_context6.next = 26;
|
|
36466
36526
|
break;
|
|
36467
36527
|
}
|
|
36468
|
-
return _context6.abrupt("continue",
|
|
36528
|
+
return _context6.abrupt("continue", 53);
|
|
36469
36529
|
case 26:
|
|
36470
36530
|
last = index;
|
|
36471
36531
|
cpage = hoEditorFactory.drawTree.drawPages[index];
|
|
@@ -36477,14 +36537,25 @@ var Print = /*#__PURE__*/function () {
|
|
|
36477
36537
|
cpage.drawDomLevel.stage.update();
|
|
36478
36538
|
cpage.needUpdateStage = false;
|
|
36479
36539
|
}
|
|
36480
|
-
if (
|
|
36481
|
-
|
|
36540
|
+
// if (
|
|
36541
|
+
// index === hoEditorFactory.drawTree.drawPages.length - 1 &&
|
|
36542
|
+
// cpage.drawMainDoc.children.length === 2 &&
|
|
36543
|
+
// !(cpage.drawMainDoc.children[0] instanceof DrawPageTable) &&
|
|
36544
|
+
// cpage.drawMainDoc.children[1] &&
|
|
36545
|
+
// (cpage.drawMainDoc.children[1] as any).drawItems.length === 0
|
|
36546
|
+
// ) {
|
|
36547
|
+
// console.log('??????');
|
|
36548
|
+
// break;
|
|
36549
|
+
// }
|
|
36550
|
+
children = cpage.drawMainDoc.children;
|
|
36551
|
+
if (!(children.length == 2 && !(children[0] instanceof DrawPageTable/* DrawPageTable */.ox) && children[1] && children[1].drawItems.length == 0 || children.length == 1 && children[0] instanceof DrawLine/* DrawLine */.a && children[0].drawItems.length == 0)) {
|
|
36552
|
+
_context6.next = 33;
|
|
36482
36553
|
break;
|
|
36483
36554
|
}
|
|
36484
|
-
return _context6.abrupt("
|
|
36485
|
-
case
|
|
36555
|
+
return _context6.abrupt("continue", 53);
|
|
36556
|
+
case 33:
|
|
36486
36557
|
if (!hoEditorFactory.isUseImagePrint) {
|
|
36487
|
-
_context6.next =
|
|
36558
|
+
_context6.next = 46;
|
|
36488
36559
|
break;
|
|
36489
36560
|
}
|
|
36490
36561
|
pageSize = JSON.stringify([hoEditorFactory.pageProperty.widthMm, hoEditorFactory.pageProperty.heightMm]);
|
|
@@ -36516,9 +36587,9 @@ var Print = /*#__PURE__*/function () {
|
|
|
36516
36587
|
ctx.posY = svg2pdfOptions.y;
|
|
36517
36588
|
ctx && ((_cpage$drawDomLevel8 = cpage.drawDomLevel) === null || _cpage$drawDomLevel8 === void 0 ? void 0 : (_cpage$drawDomLevel8$ = _cpage$drawDomLevel8.stage) === null || _cpage$drawDomLevel8$ === void 0 ? void 0 : _cpage$drawDomLevel8$.draw(ctx));
|
|
36518
36589
|
ctx = null;
|
|
36519
|
-
_context6.next =
|
|
36590
|
+
_context6.next = 52;
|
|
36520
36591
|
break;
|
|
36521
|
-
case
|
|
36592
|
+
case 46:
|
|
36522
36593
|
_ctx6 = new canvas2svg({
|
|
36523
36594
|
width: widthPixes,
|
|
36524
36595
|
height: orientation === 'l' ? heightPixes - 1 : heightPixes,
|
|
@@ -36530,27 +36601,27 @@ var Print = /*#__PURE__*/function () {
|
|
|
36530
36601
|
} else {
|
|
36531
36602
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage(format, orientation);
|
|
36532
36603
|
}
|
|
36533
|
-
_context6.next =
|
|
36604
|
+
_context6.next = 51;
|
|
36534
36605
|
return svg2pdf((_ctx7 = _ctx6) === null || _ctx7 === void 0 ? void 0 : _ctx7.getSvg(), PDF, svg2pdfOptions);
|
|
36535
|
-
case 50:
|
|
36536
|
-
_ctx6 = null;
|
|
36537
36606
|
case 51:
|
|
36538
|
-
|
|
36607
|
+
_ctx6 = null;
|
|
36539
36608
|
case 52:
|
|
36609
|
+
index > 0 && ((_cpage$drawDomLevel10 = cpage.drawDomLevel) === null || _cpage$drawDomLevel10 === void 0 ? void 0 : _cpage$drawDomLevel10.clearStage());
|
|
36610
|
+
case 53:
|
|
36540
36611
|
_context6.next = 19;
|
|
36541
36612
|
break;
|
|
36542
|
-
case
|
|
36543
|
-
_context6.next =
|
|
36613
|
+
case 55:
|
|
36614
|
+
_context6.next = 60;
|
|
36544
36615
|
break;
|
|
36545
|
-
case
|
|
36546
|
-
_context6.prev =
|
|
36616
|
+
case 57:
|
|
36617
|
+
_context6.prev = 57;
|
|
36547
36618
|
_context6.t0 = _context6["catch"](17);
|
|
36548
36619
|
_iterator4.e(_context6.t0);
|
|
36549
|
-
case
|
|
36550
|
-
_context6.prev =
|
|
36620
|
+
case 60:
|
|
36621
|
+
_context6.prev = 60;
|
|
36551
36622
|
_iterator4.f();
|
|
36552
|
-
return _context6.finish(
|
|
36553
|
-
case
|
|
36623
|
+
return _context6.finish(60);
|
|
36624
|
+
case 63:
|
|
36554
36625
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
|
|
36555
36626
|
hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
36556
36627
|
}
|
|
@@ -36564,12 +36635,12 @@ var Print = /*#__PURE__*/function () {
|
|
|
36564
36635
|
}
|
|
36565
36636
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
36566
36637
|
reslove();
|
|
36567
|
-
case
|
|
36638
|
+
case 67:
|
|
36568
36639
|
case "end":
|
|
36569
36640
|
return _context6.stop();
|
|
36570
36641
|
}
|
|
36571
36642
|
}
|
|
36572
|
-
}, _callee5, null, [[17,
|
|
36643
|
+
}, _callee5, null, [[17, 57, 60, 63]]);
|
|
36573
36644
|
}));
|
|
36574
36645
|
function printAllNew(_x15, _x16, _x17, _x18, _x19) {
|
|
36575
36646
|
return _printAllNew.apply(this, arguments);
|
|
@@ -37873,7 +37944,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37873
37944
|
}
|
|
37874
37945
|
}, {
|
|
37875
37946
|
key: "insertALine",
|
|
37876
|
-
value: function insertALine(hoEditorFactory, path, lineText, roots, pNode, curTextStyle, node, childIndex, isEndLine, aresolve, oldCanModifyContent) {
|
|
37947
|
+
value: function insertALine(hoEditorFactory, path, lineText, roots, pNode, curTextStyle, node, childIndex, isEndLine, aresolve, oldCanModifyContent, isUpdate) {
|
|
37877
37948
|
var _this = this;
|
|
37878
37949
|
// const startTagLen = "<元素>".length;
|
|
37879
37950
|
// let istart = lineText.indexOf("<元素>");
|
|
@@ -37952,7 +38023,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37952
38023
|
strPath = hoEditorFactory.docTree.getNodeLastPath(textNode);
|
|
37953
38024
|
} else {
|
|
37954
38025
|
var _textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_26__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntText */ .Jq.ntText, aText, hoEditorFactory.docTree.curStyleIndex);
|
|
37955
|
-
strPath = _this.insertNodeByPath(strPath, _textNode,
|
|
38026
|
+
strPath = _this.insertNodeByPath(strPath, _textNode, isUpdate, isHasRelateEle && index > 1 ? true : false);
|
|
37956
38027
|
}
|
|
37957
38028
|
} else {
|
|
37958
38029
|
var styleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
@@ -37965,7 +38036,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37965
38036
|
styleIndex = hoEditorFactory.docTree.styleCompare(newStyle);
|
|
37966
38037
|
}
|
|
37967
38038
|
var _textNode2 = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_26__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntText */ .Jq.ntText, aText, styleIndex);
|
|
37968
|
-
strPath = _this.insertNodeByPath(strPath, _textNode2,
|
|
38039
|
+
strPath = _this.insertNodeByPath(strPath, _textNode2, isUpdate, isHasRelateEle && index > 1 ? true : false);
|
|
37969
38040
|
}
|
|
37970
38041
|
// if (index === arrSubString.length - 1 && isEndLine && oldCanModifyContent !== undefined && pNode instanceof TextInputFieldNode) {
|
|
37971
38042
|
// pNode.canModifyContent = oldCanModifyContent;
|
|
@@ -38089,7 +38160,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38089
38160
|
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_45__/* .TextInputFieldNode */ .re) {
|
|
38090
38161
|
pNode.canModifyContent = canModifyContent;
|
|
38091
38162
|
}
|
|
38092
|
-
|
|
38163
|
+
var isUpdate = false;
|
|
38164
|
+
if (oldCanModifyContent !== undefined) {
|
|
38165
|
+
isUpdate = true;
|
|
38166
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_45__/* .TextInputFieldNode */ .re && pNode.downListProperty.isMultiLinesDisplay && index > 0) {
|
|
38167
|
+
isUpdate = false;
|
|
38168
|
+
}
|
|
38169
|
+
}
|
|
38170
|
+
strPath = _this2.insertALine(hoEditorFactory, strPath, text, nodePosition.roots, pNode, curTextStyle, node, nodePosition.childIndex, index === lines.length - 1, resolve, oldCanModifyContent, isUpdate);
|
|
38093
38171
|
}
|
|
38094
38172
|
});
|
|
38095
38173
|
});
|
|
@@ -44831,7 +44909,8 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
44831
44909
|
this._widthPixes = hoEditorFactory.unitConvert.mmConversionPx(this._widthMm + this._commentWidthMm, true);
|
|
44832
44910
|
this._commentWidthPixes = hoEditorFactory.unitConvert.mmConversionPx(this._commentWidthMm, true);
|
|
44833
44911
|
this._rightMarginPixes = hoEditorFactory.unitConvert.mmConversionPx(this._rightMarginMm + this._commentWidthMm, true);
|
|
44834
|
-
var
|
|
44912
|
+
var scaleXY = _draw_DrawConfig__WEBPACK_IMPORTED_MODULE_9__/* .DrawConfig.instance */ .f.instance().scaleXY;
|
|
44913
|
+
var width = Math.floor(this._widthPixes * scaleXY) % 2 === 1 ? Math.floor(this._widthPixes * scaleXY) + 1 : Math.floor(this._widthPixes * scaleXY);
|
|
44835
44914
|
this._canvasParams.width = width;
|
|
44836
44915
|
}
|
|
44837
44916
|
}
|
|
@@ -44847,7 +44926,8 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
44847
44926
|
this._widthPixes = hoeditorfacotry.unitConvert.mmConversionPx(this._widthMm + this._commentWidthMm, true);
|
|
44848
44927
|
hoeditorfacotry.drawTree.updateDrawTreeFirstLine();
|
|
44849
44928
|
}
|
|
44850
|
-
var
|
|
44929
|
+
var scaleXY = _draw_DrawConfig__WEBPACK_IMPORTED_MODULE_9__/* .DrawConfig.instance */ .f.instance().scaleXY;
|
|
44930
|
+
var width = Math.floor(this._widthPixes * scaleXY) % 2 === 1 ? Math.floor(this._widthPixes * scaleXY) + 1 : Math.floor(this._widthPixes * scaleXY);
|
|
44851
44931
|
this._canvasParams.width = width;
|
|
44852
44932
|
}
|
|
44853
44933
|
}, {
|
|
@@ -44860,7 +44940,8 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
44860
44940
|
this._heightMm = value;
|
|
44861
44941
|
this._heightPixes = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(this._heightMm, false);
|
|
44862
44942
|
}
|
|
44863
|
-
var
|
|
44943
|
+
var scaleXY = _draw_DrawConfig__WEBPACK_IMPORTED_MODULE_9__/* .DrawConfig.instance */ .f.instance().scaleXY;
|
|
44944
|
+
var height = Math.floor(this._heightPixes * scaleXY) % 2 === 1 ? Math.floor(this._heightPixes * scaleXY) + 1 : Math.floor(this._heightPixes * scaleXY);
|
|
44864
44945
|
this._canvasParams.height = height;
|
|
44865
44946
|
}
|
|
44866
44947
|
}, {
|
|
@@ -44884,7 +44965,7 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
44884
44965
|
if (value !== this._bottomMarginMm) {
|
|
44885
44966
|
this._bottomMarginMm = value;
|
|
44886
44967
|
this._bottomMarginPixes = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(this._bottomMarginMm, false);
|
|
44887
|
-
//
|
|
44968
|
+
// this._canvasHeadFootPos.footerY = this._heightPixes - this._bottomMarginPixes;
|
|
44888
44969
|
}
|
|
44889
44970
|
}
|
|
44890
44971
|
}, {
|
|
@@ -47156,7 +47237,7 @@ var CombineStyle = /*#__PURE__*/function () {
|
|
|
47156
47237
|
//小五
|
|
47157
47238
|
fontHeight = hoeditfactory.unitConvert.mmConversionPx(3.18, false);
|
|
47158
47239
|
}
|
|
47159
|
-
if (fontSize === 10.5
|
|
47240
|
+
if (fontSize === 10.5) {
|
|
47160
47241
|
//五号
|
|
47161
47242
|
fontHeight = hoeditfactory.unitConvert.mmConversionPx(3.70, false);
|
|
47162
47243
|
}
|
|
@@ -52962,7 +53043,7 @@ var NodeNeedModifyEvent = __webpack_require__(76830);
|
|
|
52962
53043
|
* @Author: liyanan 2441631434@qq.com
|
|
52963
53044
|
* @Date: 2023-03-17 14:19:29
|
|
52964
53045
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
52965
|
-
* @LastEditTime: 2023-
|
|
53046
|
+
* @LastEditTime: 2023-04-19 15:29:42
|
|
52966
53047
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawJumpButton.ts
|
|
52967
53048
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
52968
53049
|
*/
|
|
@@ -53025,22 +53106,6 @@ var DrawJumpButton = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
53025
53106
|
hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
53026
53107
|
}
|
|
53027
53108
|
});
|
|
53028
|
-
// button.addEventListener("mouseover", function () {
|
|
53029
|
-
// const hoEditorFactory = HOEditorFactorys.instance().getFactory(drawNode._hoEditorFactoryID);
|
|
53030
|
-
// const dArea = hoEditorFactory.drawPageTree.getMainRootArea(drawNode);
|
|
53031
|
-
// if (dArea) {
|
|
53032
|
-
// (button.children[1] as createjs.Text).font = "bold " + font;
|
|
53033
|
-
// hoEditorFactory.drawPageTree.updateDrawPage(dArea.index);
|
|
53034
|
-
// }
|
|
53035
|
-
// });
|
|
53036
|
-
// button.addEventListener("mouseout", function () {
|
|
53037
|
-
// const hoEditorFactory = HOEditorFactorys.instance().getFactory(drawNode._hoEditorFactoryID);
|
|
53038
|
-
// const dArea = hoEditorFactory.drawPageTree.getMainRootArea(drawNode);
|
|
53039
|
-
// if (dArea) {
|
|
53040
|
-
// (button.children[1] as createjs.Text).font = font;
|
|
53041
|
-
// hoEditorFactory.drawPageTree.updateDrawPage(dArea.index);
|
|
53042
|
-
// }
|
|
53043
|
-
// });
|
|
53044
53109
|
button.addEventListener("pressup", function () {
|
|
53045
53110
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(drawNode._hoEditorFactoryID);
|
|
53046
53111
|
var dArea = hoEditorFactory.drawPageTree.getMainRootArea(drawNode);
|
|
@@ -55237,6 +55302,8 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55237
55302
|
var index = this._drawLines.length;
|
|
55238
55303
|
if (index > 0) {
|
|
55239
55304
|
var prevLine = this._drawLines[index - 1];
|
|
55305
|
+
prevLine.x = this.combineParagraph.leftMarginPixes + ileft;
|
|
55306
|
+
prevLine.dWidth = paragraphWidth - this.combineParagraph.leftMarginPixes - this.combineParagraph.rightMarginPixes;
|
|
55240
55307
|
if (prevLine instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_15__/* .DrawLine */ .a) prevLine.updateLineStyle();
|
|
55241
55308
|
}
|
|
55242
55309
|
var aline = new _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_15__/* .DrawLine */ .a(this._rootPath, this, index, paragraphWidth);
|
|
@@ -55546,9 +55613,9 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55546
55613
|
styleIndex: this._paraNo,
|
|
55547
55614
|
textStyleNo: this.styleIndex,
|
|
55548
55615
|
printAsSinglePage: this.printAsSinglePage,
|
|
55616
|
+
forceChangeHeader: this.forceChangeHeader,
|
|
55549
55617
|
docId: this.docId,
|
|
55550
|
-
customProperty: this.customProperty
|
|
55551
|
-
forceChangeHeader: this.forceChangeHeader
|
|
55618
|
+
customProperty: this.customProperty
|
|
55552
55619
|
};
|
|
55553
55620
|
return paga;
|
|
55554
55621
|
}
|
|
@@ -55558,9 +55625,9 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55558
55625
|
styleIndex: this._paraNo,
|
|
55559
55626
|
textStyleNo: this.styleIndex,
|
|
55560
55627
|
printAsSinglePage: this.printAsSinglePage,
|
|
55628
|
+
forceChangeHeader: this.forceChangeHeader,
|
|
55561
55629
|
docId: this.docId,
|
|
55562
|
-
customProperty: this.customProperty
|
|
55563
|
-
forceChangeHeader: this.forceChangeHeader
|
|
55630
|
+
customProperty: this.customProperty
|
|
55564
55631
|
}
|
|
55565
55632
|
};
|
|
55566
55633
|
}
|
|
@@ -55620,8 +55687,6 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55620
55687
|
paragraphNode.printAsSinglePage = json.printAsSinglePage ? json.printAsSinglePage === "true" ? true : false : false;
|
|
55621
55688
|
paragraphNode.forceChangeHeader = json.forceChangeHeader ? json.forceChangeHeader === "true" ? true : false : false;
|
|
55622
55689
|
paragraphNode.styleIndex = json.textStyleNo ? Number(json.textStyleNo) : 0;
|
|
55623
|
-
// paragraphNode._dHeight = Number(json.height);
|
|
55624
|
-
// paragraphNode._dTop = Number(json.top);
|
|
55625
55690
|
return paragraphNode;
|
|
55626
55691
|
}
|
|
55627
55692
|
}]);
|
|
@@ -63094,7 +63159,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63094
63159
|
/*
|
|
63095
63160
|
* @Author: your name
|
|
63096
63161
|
* @Date: 2020-11-03 15:17:54
|
|
63097
|
-
* @LastEditTime: 2023-04-
|
|
63162
|
+
* @LastEditTime: 2023-04-28 09:27:36
|
|
63098
63163
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
63099
63164
|
* @Description: In User Settings Edit
|
|
63100
63165
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -63544,6 +63609,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
63544
63609
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_58__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "_keyValue", '');
|
|
63545
63610
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_58__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "_value", '');
|
|
63546
63611
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_58__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "_insCheckSyncUpdateList", false);
|
|
63612
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_58__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "_hideDuringPrint", false);
|
|
63613
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_58__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "_isElementLink", false);
|
|
63547
63614
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_58__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "_childNodes2", void 0);
|
|
63548
63615
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_58__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "StartMarkNode", void 0);
|
|
63549
63616
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_58__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "EndMarkNode", void 0);
|
|
@@ -63718,6 +63785,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
63718
63785
|
//选中项的key值
|
|
63719
63786
|
//选中项的value值
|
|
63720
63787
|
//插入检查检验同步更新列表项
|
|
63788
|
+
//打印时隐藏
|
|
63789
|
+
//是否进行元素联动
|
|
63721
63790
|
/**
|
|
63722
63791
|
* Getter alignWithBlocked
|
|
63723
63792
|
* @return {boolean}
|
|
@@ -64065,6 +64134,26 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
64065
64134
|
this._insCheckSyncUpdateList = val;
|
|
64066
64135
|
}
|
|
64067
64136
|
}
|
|
64137
|
+
}, {
|
|
64138
|
+
key: "hideDuringPrint",
|
|
64139
|
+
get: function get() {
|
|
64140
|
+
return this._hideDuringPrint;
|
|
64141
|
+
},
|
|
64142
|
+
set: function set(val) {
|
|
64143
|
+
if (this._hideDuringPrint !== val) {
|
|
64144
|
+
this._hideDuringPrint = val;
|
|
64145
|
+
}
|
|
64146
|
+
}
|
|
64147
|
+
}, {
|
|
64148
|
+
key: "isElementLink",
|
|
64149
|
+
get: function get() {
|
|
64150
|
+
return this._isElementLink;
|
|
64151
|
+
},
|
|
64152
|
+
set: function set(val) {
|
|
64153
|
+
if (this._isElementLink !== val) {
|
|
64154
|
+
this._isElementLink = val;
|
|
64155
|
+
}
|
|
64156
|
+
}
|
|
64068
64157
|
}, {
|
|
64069
64158
|
key: "generateInnerCode",
|
|
64070
64159
|
value: function generateInnerCode() {
|
|
@@ -64614,6 +64703,20 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
64614
64703
|
//this.EndMarkNode.node2DrawNode();
|
|
64615
64704
|
aline = this.EndMarkNode.placeDNode2DrawLine(droots, paraNode, aline, start, start + this.EndMarkNode.getLength() - 1, endPath);
|
|
64616
64705
|
}
|
|
64706
|
+
if (this.hideDuringPrint && !this.isEmpty() && (hoEditorFactory.drawTree.paintStatus == _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psPreview */ .Dh.psPreview || hoEditorFactory.drawTree.paintStatus == _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psPrint */ .Dh.psPrint)) {
|
|
64707
|
+
var hidden = function hidden(childNodes) {
|
|
64708
|
+
for (var h = 1; h < childNodes.length - 1; h++) {
|
|
64709
|
+
var child = childNodes[h];
|
|
64710
|
+
if (child instanceof TextInputFieldNode) {
|
|
64711
|
+
hidden(child.childNodes);
|
|
64712
|
+
}
|
|
64713
|
+
for (var k = 0; k < child.drawNodes.length; k++) {
|
|
64714
|
+
child.drawNodes[k].alpha = 0;
|
|
64715
|
+
}
|
|
64716
|
+
}
|
|
64717
|
+
};
|
|
64718
|
+
hidden(this.childNodes);
|
|
64719
|
+
}
|
|
64617
64720
|
return aline.paragraphNode.getLastDrawline();
|
|
64618
64721
|
}
|
|
64619
64722
|
}, {
|
|
@@ -64949,6 +65052,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
64949
65052
|
alignWithBlocked: this.alignWithBlocked,
|
|
64950
65053
|
readType: this.readType,
|
|
64951
65054
|
insCheckSyncUpdateList: this.insCheckSyncUpdateList,
|
|
65055
|
+
hideDuringPrint: this.hideDuringPrint,
|
|
65056
|
+
isElementLink: this.isElementLink,
|
|
64952
65057
|
childNodes: childNodes
|
|
64953
65058
|
};
|
|
64954
65059
|
return {
|
|
@@ -65038,6 +65143,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
65038
65143
|
json.isSynchro = !json.isSynchro ? false : json.isSynchro;
|
|
65039
65144
|
json.readType = json.readType ? Number(json.readType) : -1;
|
|
65040
65145
|
json.insCheckSyncUpdateList = !json.insCheckSyncUpdateList ? false : json.insCheckSyncUpdateList;
|
|
65146
|
+
json.hideDuringPrint = !json.hideDuringPrint ? false : json.hideDuringPrint;
|
|
65147
|
+
json.isElementLink = !json.isElementLink ? false : json.isElementLink;
|
|
65041
65148
|
var temp = new TextInputFieldNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntField */ .Jq.ntField, json);
|
|
65042
65149
|
// this.insertChild
|
|
65043
65150
|
if (json.childNodes) {
|
|
@@ -66717,8 +66824,8 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
|
|
|
66717
66824
|
// this.paragraphNode.getParagraphLeftWidth()[1] - this.paragraphNode.combineParagraph.leftMarginPixes
|
|
66718
66825
|
// - this.paragraphNode.combineParagraph.rightMarginPixes;
|
|
66719
66826
|
// if (this.paragraphNode.parentNode instanceof TextInputFieldNode)
|
|
66720
|
-
|
|
66721
|
-
//
|
|
66827
|
+
this.x = this.paragraphNode.getParagraphLeftWidth()[0] + this.paragraphNode.combineParagraph.leftMarginPixes;
|
|
66828
|
+
//else this.x = this.paragraphNode.combineParagraph.leftMarginPixes
|
|
66722
66829
|
//文字摆放开始位置
|
|
66723
66830
|
//this.paragraphNode.combineParagraph.leftMarginPixes;
|
|
66724
66831
|
//字间距,分散对齐:计算宽度时候使用默认字间距
|
|
@@ -68447,8 +68554,8 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
68447
68554
|
dline.drawPageTables[j].parent.removeChild(dline.drawPageTables[j]);
|
|
68448
68555
|
}
|
|
68449
68556
|
}
|
|
68557
|
+
dline.drawPageTables.splice(index, dline.drawPageTables.length);
|
|
68450
68558
|
}
|
|
68451
|
-
dline.drawPageTables.splice(index, dline.drawPageTables.length);
|
|
68452
68559
|
}
|
|
68453
68560
|
this._endDline = nextDline - 1;
|
|
68454
68561
|
this.clearOverDitem(dlines, nextDline);
|
|
@@ -71531,7 +71638,7 @@ var DrawDateTime = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
71531
71638
|
/*
|
|
71532
71639
|
* @Author: your name
|
|
71533
71640
|
* @Date: 2020-11-30 10:59:00
|
|
71534
|
-
* @LastEditTime:
|
|
71641
|
+
* @LastEditTime: 2023-04-20 16:59:41
|
|
71535
71642
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
71536
71643
|
* @Description: In User Settings Edit
|
|
71537
71644
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawDownListNode.ts
|
|
@@ -71604,6 +71711,14 @@ var DrawDownListNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
71604
71711
|
if (child.name !== "backColor" && child.name !== "event") {
|
|
71605
71712
|
this.children.splice(j, 1);
|
|
71606
71713
|
}
|
|
71714
|
+
if (child.name == "backColor" && child instanceof createjs.Shape) {
|
|
71715
|
+
var color = child.graphics.instructions[2].style;
|
|
71716
|
+
this.children.splice(j, 1);
|
|
71717
|
+
var backColor = new createjs.Shape();
|
|
71718
|
+
backColor.graphics.clear().beginFill(color).drawRect(0, -this.dHeight + 2, this.dWidth, this.dHeight);
|
|
71719
|
+
backColor.name = "backColor";
|
|
71720
|
+
this.addChildAt(backColor, 0);
|
|
71721
|
+
}
|
|
71607
71722
|
}
|
|
71608
71723
|
var leftWidth = 0;
|
|
71609
71724
|
for (var i = 0; i < this._text.length; i++) {
|
|
@@ -73244,7 +73359,8 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
73244
73359
|
}, {
|
|
73245
73360
|
key: "endPaintBackGround",
|
|
73246
73361
|
value: function endPaintBackGround(newHeight) {
|
|
73247
|
-
//
|
|
73362
|
+
//this._backImg.cache(-1, -1, this._dWidth + 1, newHeight + 1);
|
|
73363
|
+
this._backImg.graphics.endStroke();
|
|
73248
73364
|
}
|
|
73249
73365
|
}, {
|
|
73250
73366
|
key: "paintMarker",
|
|
@@ -79807,17 +79923,21 @@ var EditorController = /*#__PURE__*/function () {
|
|
|
79807
79923
|
if (!metaKey && !altKey) {
|
|
79808
79924
|
if (keyCode === 37) {
|
|
79809
79925
|
hoeditorfactory.docController.directionKey('left'); //左移
|
|
79926
|
+
hoeditorfactory.drawTree.caret.aiInfo.aiText = '';
|
|
79810
79927
|
} else if (keyCode === 39) {
|
|
79811
79928
|
hoeditorfactory.docController.directionKey('right'); //右移
|
|
79929
|
+
hoeditorfactory.drawTree.caret.aiInfo.aiText = '';
|
|
79812
79930
|
} else if (keyCode === 38) {
|
|
79813
79931
|
if (!ctrlKey) {
|
|
79814
79932
|
hoeditorfactory.docController.directionKey('up'); //上移
|
|
79933
|
+
hoeditorfactory.drawTree.caret.aiInfo.aiText = '';
|
|
79815
79934
|
} else {
|
|
79816
79935
|
return true;
|
|
79817
79936
|
}
|
|
79818
79937
|
} else if (keyCode === 40) {
|
|
79819
79938
|
if (!ctrlKey) {
|
|
79820
79939
|
hoeditorfactory.docController.directionKey('down'); //下移
|
|
79940
|
+
hoeditorfactory.drawTree.caret.aiInfo.aiText = '';
|
|
79821
79941
|
} else {
|
|
79822
79942
|
return true;
|
|
79823
79943
|
}
|
|
@@ -84235,41 +84355,50 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
84235
84355
|
}, {
|
|
84236
84356
|
key: "updateDrawFormular",
|
|
84237
84357
|
value: function updateDrawFormular(cell) {
|
|
84238
|
-
var _this5 = this;
|
|
84239
84358
|
var hoeditfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
84240
84359
|
var _cell$table$getCellIn = cell.table.getCellInfos(cell),
|
|
84241
84360
|
_cell$table$getCellIn2 = (0,slicedToArray/* default */.Z)(_cell$table$getCellIn, 2),
|
|
84242
84361
|
r = _cell$table$getCellIn2[0],
|
|
84243
84362
|
c = _cell$table$getCellIn2[1];
|
|
84363
|
+
var isNeedUpdate = false;
|
|
84244
84364
|
this.formularNodes.forEach(function (value, key) {
|
|
84245
|
-
|
|
84246
|
-
|
|
84247
|
-
|
|
84248
|
-
|
|
84249
|
-
value.parentNode.
|
|
84250
|
-
|
|
84251
|
-
|
|
84252
|
-
|
|
84253
|
-
|
|
84254
|
-
value.
|
|
84255
|
-
|
|
84256
|
-
|
|
84257
|
-
|
|
84258
|
-
|
|
84259
|
-
|
|
84260
|
-
|
|
84261
|
-
|
|
84262
|
-
|
|
84263
|
-
|
|
84264
|
-
|
|
84265
|
-
|
|
84266
|
-
|
|
84267
|
-
|
|
84268
|
-
|
|
84269
|
-
|
|
84365
|
+
var pnode = value.getParentCell();
|
|
84366
|
+
if (cell.table == pnode.table) {
|
|
84367
|
+
// if (value.parentNode && value.parentNode instanceof TextInputFieldNode) {
|
|
84368
|
+
// if (value.parentNode.childNodes.length === 0) {
|
|
84369
|
+
// value.parentNode.node2DrawNode();
|
|
84370
|
+
// }
|
|
84371
|
+
// value.parentNode.update();
|
|
84372
|
+
// }
|
|
84373
|
+
var isCellInFormula = value.isCellInFormula(cell, r, c);
|
|
84374
|
+
if (isCellInFormula || value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping || value.formularType === TableFormula/* FormularType.ftBodySurfaceArea */.a.ftBodySurfaceArea || value.formularType === TableFormula/* FormularType.ftCalcDays */.a.ftCalcDays) {
|
|
84375
|
+
//const str = value.formulaStr;
|
|
84376
|
+
value.updateResult();
|
|
84377
|
+
value.getParentCell().drawCell.needUpdate = true;
|
|
84378
|
+
isNeedUpdate = true;
|
|
84379
|
+
// if (isCellInFormula) {
|
|
84380
|
+
// this.updateDrawFormular(value.getParentCell());
|
|
84381
|
+
// }
|
|
84382
|
+
// const prevNode = value.previousLeaf();
|
|
84383
|
+
// if (!prevNode) {
|
|
84384
|
+
// throw new Error('错误的绘制位置');
|
|
84385
|
+
// }
|
|
84386
|
+
// const startPath = hoeditfactory.docTree.getNodeLastPath(prevNode);
|
|
84387
|
+
// const changeEvent = new NodeChangeEvent(this._hoEditorFactoryID,
|
|
84388
|
+
// DocAction.daModifyStyle, startPath, startPath)
|
|
84389
|
+
// changeEvent.oldEndPath = startPath;
|
|
84390
|
+
// changeEvent.oldDrawLines = new SelectRange(this._hoEditorFactoryID).getRangeDrawLines(startPath, startPath, false)
|
|
84391
|
+
// hoeditfactory.docTree.change(changeEvent);
|
|
84392
|
+
// if (value.parentNode && value.parentNode instanceof TextInputFieldNode) {
|
|
84393
|
+
// value.parentNode.update();
|
|
84394
|
+
// }
|
|
84270
84395
|
}
|
|
84271
84396
|
}
|
|
84272
84397
|
});
|
|
84398
|
+
|
|
84399
|
+
if (isNeedUpdate) {
|
|
84400
|
+
cell.table.update();
|
|
84401
|
+
}
|
|
84273
84402
|
}
|
|
84274
84403
|
}, {
|
|
84275
84404
|
key: "setCaretVisible",
|
|
@@ -90378,8 +90507,8 @@ function expressionCalculator(expr) {
|
|
|
90378
90507
|
/*
|
|
90379
90508
|
* @Author: your name
|
|
90380
90509
|
* @Date: 2020-11-30 08:42:46
|
|
90381
|
-
* @LastEditTime:
|
|
90382
|
-
* @LastEditors:
|
|
90510
|
+
* @LastEditTime: 2023-04-19 11:36:26
|
|
90511
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
90383
90512
|
* @Description: In User Settings Edit
|
|
90384
90513
|
* @FilePath: \hoeditor-web\src\editor\utils\UnitConvert.ts
|
|
90385
90514
|
*/
|
|
@@ -90496,6 +90625,47 @@ var UnitConvert = /*#__PURE__*/function () {
|
|
|
90496
90625
|
str = str.replace(new RegExp(s1, 'gm'), s2);
|
|
90497
90626
|
return str;
|
|
90498
90627
|
}
|
|
90628
|
+
}, {
|
|
90629
|
+
key: "getCorrectFontSize",
|
|
90630
|
+
value: function getCorrectFontSize(size) {
|
|
90631
|
+
var correctSize = 12;
|
|
90632
|
+
if (size < 6) {
|
|
90633
|
+
if (size == 5) {
|
|
90634
|
+
correctSize = 5;
|
|
90635
|
+
} else {
|
|
90636
|
+
correctSize = 5.5;
|
|
90637
|
+
}
|
|
90638
|
+
} else if (size >= 6 && size <= 7) {
|
|
90639
|
+
correctSize = 6.5;
|
|
90640
|
+
} else if (size > 7 && size <= 8) {
|
|
90641
|
+
correctSize = 7.5;
|
|
90642
|
+
} else if (size > 8 && size < 10) {
|
|
90643
|
+
correctSize = 9;
|
|
90644
|
+
} else if (size >= 10 && size <= 11) {
|
|
90645
|
+
correctSize = 10.5;
|
|
90646
|
+
} else if (size > 11 && size <= 13) {
|
|
90647
|
+
correctSize = 12;
|
|
90648
|
+
} else if (size > 13 && size <= 14.5) {
|
|
90649
|
+
correctSize = 14;
|
|
90650
|
+
} else if (size > 14.5 && size <= 15.5) {
|
|
90651
|
+
correctSize = 15;
|
|
90652
|
+
} else if (size > 15.5 && size <= 17) {
|
|
90653
|
+
correctSize = 16;
|
|
90654
|
+
} else if (size > 17 && size <= 20) {
|
|
90655
|
+
correctSize = 18;
|
|
90656
|
+
} else if (size > 20 && size <= 23) {
|
|
90657
|
+
correctSize = 22;
|
|
90658
|
+
} else if (size > 23 && size <= 25) {
|
|
90659
|
+
correctSize = 24;
|
|
90660
|
+
} else if (size > 25 && size <= 31) {
|
|
90661
|
+
correctSize = 26;
|
|
90662
|
+
} else if (size > 31 && size <= 39) {
|
|
90663
|
+
correctSize = 36;
|
|
90664
|
+
} else if (size > 39) {
|
|
90665
|
+
correctSize = 42;
|
|
90666
|
+
}
|
|
90667
|
+
return correctSize;
|
|
90668
|
+
}
|
|
90499
90669
|
}], [{
|
|
90500
90670
|
key: "instance",
|
|
90501
90671
|
get:
|
|
@@ -195866,7 +196036,7 @@ var map = {
|
|
|
195866
196036
|
"./dataSource/DataSource.vue": 9238,
|
|
195867
196037
|
"./dateDialog/DateDialog.vue": 12144,
|
|
195868
196038
|
"./delimiter/Delimiter.vue": 31861,
|
|
195869
|
-
"./expressionForm/ExpressionForm.vue":
|
|
196039
|
+
"./expressionForm/ExpressionForm.vue": 66053,
|
|
195870
196040
|
"./findReplace/FindReplace.vue": 25918,
|
|
195871
196041
|
"./gestation/Gestation.vue": 6251,
|
|
195872
196042
|
"./hoprint/HoPrint.vue": 62321,
|
|
@@ -195875,7 +196045,7 @@ var map = {
|
|
|
195875
196045
|
"./pageInfoes/PageInfoes.vue": 17481,
|
|
195876
196046
|
"./paragraph/ParagraphDialog.vue": 54949,
|
|
195877
196047
|
"./poperSelect/PoperMark.vue": 71472,
|
|
195878
|
-
"./poperSelect/PoperSelect.vue":
|
|
196048
|
+
"./poperSelect/PoperSelect.vue": 85778,
|
|
195879
196049
|
"./poperTipText/PoperTipText.vue": 15845,
|
|
195880
196050
|
"./popers/Poper.vue": 57937,
|
|
195881
196051
|
"./popers/Title.vue": 89987,
|
|
@@ -195892,7 +196062,7 @@ var map = {
|
|
|
195892
196062
|
"./table/TableFormula.vue": 79032,
|
|
195893
196063
|
"./table/TableProperty.vue": 47130,
|
|
195894
196064
|
"./table/TableRowProperty.vue": 5218,
|
|
195895
|
-
"./textDialog/TextDialog.vue":
|
|
196065
|
+
"./textDialog/TextDialog.vue": 74353,
|
|
195896
196066
|
"./textDialog/TextToLabelDialog.vue": 35791,
|
|
195897
196067
|
"./upload/CanvasImageDialog.vue": 94116,
|
|
195898
196068
|
"./upload/HoFabric.vue": 43008,
|
|
@@ -232878,6 +233048,8 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
232878
233048
|
} else {
|
|
232879
233049
|
if (lastPath == startPos.path) {
|
|
232880
233050
|
hoeditorfactory.vueController.getCaretPreviousText(nextNode.parentNode.text);
|
|
233051
|
+
} else {
|
|
233052
|
+
hoeditorfactory.drawTree.caret.aiInfo.aiText = '';
|
|
232881
233053
|
}
|
|
232882
233054
|
}
|
|
232883
233055
|
}
|
|
@@ -233795,7 +233967,7 @@ var DrawPage = __webpack_require__(72722);
|
|
|
233795
233967
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
233796
233968
|
var plugins_util = __webpack_require__(62783);
|
|
233797
233969
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
|
|
233798
|
-
var PoperSelect = __webpack_require__(
|
|
233970
|
+
var PoperSelect = __webpack_require__(85778);
|
|
233799
233971
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
233800
233972
|
var PoperMark = __webpack_require__(71472);
|
|
233801
233973
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -235494,7 +235666,7 @@ var ParagraphNode = __webpack_require__(67945);
|
|
|
235494
235666
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
235495
235667
|
var MarkNode = __webpack_require__(57727);
|
|
235496
235668
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
235497
|
-
/* harmony default export */ var version = ('3.0.
|
|
235669
|
+
/* harmony default export */ var version = ('3.0.54');
|
|
235498
235670
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
235499
235671
|
var PoperTipText = __webpack_require__(15845);
|
|
235500
235672
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -236581,7 +236753,15 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
236581
236753
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
236582
236754
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
236583
236755
|
if (dline.paragraphNode.docId != '') {
|
|
236584
|
-
|
|
236756
|
+
if (drawArea.children.length > 0) {
|
|
236757
|
+
if (drawArea.children.length == 1 && drawArea.children[0] instanceof DrawLine/* DrawLine */.a && drawArea.children[0].drawItems.length == 0) {
|
|
236758
|
+
hoEditorFactory.subDocManger.updateSubDocPageIndexByPath(drawArea.pageIndex, dline.paragraphNode.docId);
|
|
236759
|
+
} else {
|
|
236760
|
+
hoEditorFactory.subDocManger.updateSubDocPageIndexByPath(drawArea.pageIndex + 1, dline.paragraphNode.docId);
|
|
236761
|
+
}
|
|
236762
|
+
} else {
|
|
236763
|
+
hoEditorFactory.subDocManger.updateSubDocPageIndexByPath(drawArea.pageIndex, dline.paragraphNode.docId);
|
|
236764
|
+
}
|
|
236585
236765
|
}
|
|
236586
236766
|
if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop;
|
|
236587
236767
|
}
|
|
@@ -238344,9 +238524,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
238344
238524
|
//size = Math.round(hoeditorfactory.unitConvert.pxConversionMm(size, true) );
|
|
238345
238525
|
size = size / 96 * 72;
|
|
238346
238526
|
}
|
|
238347
|
-
|
|
238348
|
-
size = 12;
|
|
238349
|
-
}
|
|
238527
|
+
size = hoeditorfactory.unitConvert.getCorrectFontSize(size);
|
|
238350
238528
|
tmp.size = size;
|
|
238351
238529
|
}
|
|
238352
238530
|
}
|
|
@@ -240782,7 +240960,8 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
240782
240960
|
var fontStyle = styles[i];
|
|
240783
240961
|
var textStyle = new TextStyle/* TextStyle */.pn(this._hoEditorFactoryID);
|
|
240784
240962
|
if (typeof fontStyle["size"] !== "undefined" && fontStyle["size"] !== defaultFont.size.toString()) {
|
|
240785
|
-
textStyle.size = Number(fontStyle["size"]);
|
|
240963
|
+
//textStyle.size = Number(fontStyle["size"]);
|
|
240964
|
+
textStyle.size = hoEditorFactory.unitConvert.getCorrectFontSize(Number(fontStyle["size"]));
|
|
240786
240965
|
}
|
|
240787
240966
|
if (typeof fontStyle["font"] !== "undefined" && fontStyle["font"] !== defaultFont.font) {
|
|
240788
240967
|
textStyle.font = fontStyle["font"];
|
|
@@ -241243,50 +241422,15 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
241243
241422
|
if (value.formularType === TableFormula/* FormularType.ftSum */.a.ftSum || value.formularType === TableFormula/* FormularType.ftFormular */.a.ftFormular || value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping || value.formularType === TableFormula/* FormularType.ftBodySurfaceArea */.a.ftBodySurfaceArea || value.formularType === TableFormula/* FormularType.ftCalcDays */.a.ftCalcDays) {
|
|
241244
241423
|
value.updateResult();
|
|
241245
241424
|
value.getParentCell().drawCell.needUpdate = true;
|
|
241246
|
-
// const prevNode = value.previousLeaf();
|
|
241247
|
-
// if (!prevNode) {
|
|
241248
|
-
// throw new Error('错误的绘制位置');
|
|
241249
|
-
// }
|
|
241250
241425
|
var table = value.getParentCell().table;
|
|
241251
241426
|
if (!tableArr.includes(table)) {
|
|
241252
241427
|
tableArr.push(table);
|
|
241253
241428
|
}
|
|
241254
|
-
// const startPath = hoEditorFactory.docTree.getNodeLastPath(prevNode);
|
|
241255
|
-
// const changeEvent = new NodeChangeEvent(this._hoEditorFactoryID,
|
|
241256
|
-
// DocAction.daModifyStyle, startPath, startPath)
|
|
241257
|
-
// changeEvent.oldEndPath = startPath;
|
|
241258
|
-
// changeEvent.oldDrawLines = new SelectRange(this._hoEditorFactoryID).getRangeDrawLines(startPath, startPath, false)
|
|
241259
|
-
// hangeEvent.repaintImmediate=false;
|
|
241260
|
-
//hoEditorFactory.docTree.change(changeEvent);
|
|
241261
241429
|
}
|
|
241262
241430
|
});
|
|
241263
|
-
|
|
241264
241431
|
for (var t = tableArr.length - 1; t >= 0; t--) {
|
|
241265
|
-
// const table=tableArr[t];
|
|
241266
241432
|
tableArr[t].update();
|
|
241267
|
-
// const dpos = hoEditorFactory.drawTree.getDlineDrawRootLists(
|
|
241268
|
-
// table.drawTable
|
|
241269
|
-
// );
|
|
241270
|
-
// const mainArea = hoEditorFactory.drawPageTree.getMainRootArea(
|
|
241271
|
-
// table.drawTable.drawPageTables[0]
|
|
241272
|
-
// );
|
|
241273
|
-
// if (mainArea) {
|
|
241274
|
-
// let drawTop = table.drawTable.drawPageTables[0].y;
|
|
241275
|
-
// if (mainArea.contains(table.drawTable.drawPageTables[0]) && table.drawTable.drawPageTables[0] instanceof DrawPageTable
|
|
241276
|
-
// && (table.drawTable.drawPageTables[0] as DrawPageTable).table.drawTable.drawPageTables.indexOf(table.drawTable.drawPageTables[0] as DrawPageTable) > 0
|
|
241277
|
-
// ) {
|
|
241278
|
-
// drawTop = 0
|
|
241279
|
-
// }
|
|
241280
|
-
// hoEditorFactory.drawPageTree.update(
|
|
241281
|
-
// mainArea,
|
|
241282
|
-
// dpos[0].drawRoots,
|
|
241283
|
-
// drawTop,
|
|
241284
|
-
// dpos[0].index,
|
|
241285
|
-
// dpos[0].index
|
|
241286
|
-
// );
|
|
241287
|
-
// }
|
|
241288
241433
|
}
|
|
241289
|
-
|
|
241290
241434
|
var errorsMap = hoEditorFactory.drawTree.errorsMap;
|
|
241291
241435
|
if (errorsMap.size > 0) {
|
|
241292
241436
|
var area = hoEditorFactory.drawPageTree.drawMainDocs[0];
|
|
@@ -244684,6 +244828,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
244684
244828
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
244685
244829
|
hoEditorFactory.docController.deleteComment(type);
|
|
244686
244830
|
}
|
|
244831
|
+
comment/* $Comment.close */.D.close();
|
|
244687
244832
|
}
|
|
244688
244833
|
// /**
|
|
244689
244834
|
// * 设置当前用户
|
|
@@ -246293,7 +246438,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
246293
246438
|
if (list[i][0]) {
|
|
246294
246439
|
updateNodesStyle(xmlobj.header[0].subDocNodes, fontStyleMap, paraStyleMap);
|
|
246295
246440
|
//生成随机数ID用于合并病历新起一页时,找到对应的页眉页脚
|
|
246296
|
-
var strID = hoEditorFactory.gernerateCode.generateID('
|
|
246441
|
+
var strID = hoEditorFactory.gernerateCode.generateID('DocId');
|
|
246297
246442
|
xmlobj.header[0].beginPath = strID;
|
|
246298
246443
|
xmlobj.header[0].pageIndex = -1;
|
|
246299
246444
|
mergeObject.header.push(xmlobj.header[0]);
|
|
@@ -246319,7 +246464,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
246319
246464
|
if (list[i][2]) {
|
|
246320
246465
|
updateNodesStyle(xmlobj.header[0].subDocNodes, fontStyleMap, paraStyleMap);
|
|
246321
246466
|
//生成随机数ID用于合并病历新起一页时,找到对应的页眉页脚
|
|
246322
|
-
var _strID = hoEditorFactory.gernerateCode.generateID('
|
|
246467
|
+
var _strID = hoEditorFactory.gernerateCode.generateID('DocId');
|
|
246323
246468
|
xmlobj.header[0].beginPath = _strID;
|
|
246324
246469
|
xmlobj.header[0].pageIndex = -1;
|
|
246325
246470
|
mergeObject.header.push(xmlobj.header[0]);
|
|
@@ -248129,9 +248274,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
248129
248274
|
key: "initAiFunc",
|
|
248130
248275
|
value: function initAiFunc(getAiText) {
|
|
248131
248276
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
248132
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
248133
|
-
|
|
248134
|
-
}
|
|
248277
|
+
// if (hoEditorFactory.drawTree.paintStatus === PaintState.psEdit) {
|
|
248278
|
+
hoEditorFactory.aiTextFunc = getAiText;
|
|
248279
|
+
// }
|
|
248135
248280
|
}
|
|
248136
248281
|
/**
|
|
248137
248282
|
* 查询光标所在位置之前的文本内容
|
|
@@ -249610,6 +249755,20 @@ var VueController = /*#__PURE__*/function () {
|
|
|
249610
249755
|
var newDomRangeCur = new DomRange/* DomRange */.a(this._hoEditorFactoryID, nodePathCur, nodePathCur);
|
|
249611
249756
|
hoEditorFactory.docController.insertRadioAndCheckBox("update", newDomRangeCur, nodeObjectStr, node.styleIndex);
|
|
249612
249757
|
}
|
|
249758
|
+
//是否是空页
|
|
249759
|
+
}, {
|
|
249760
|
+
key: "isEmptyPage",
|
|
249761
|
+
value: function isEmptyPage(index) {
|
|
249762
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
249763
|
+
var drawMainDoc = hoEditorFactory.drawPageTree.drawMainDocs[index];
|
|
249764
|
+
if (drawMainDoc) {
|
|
249765
|
+
var children = drawMainDoc.children;
|
|
249766
|
+
if (children.length == 1 && children[0] instanceof DrawLine/* DrawLine */.a && children[0].drawItems.length == 0) {
|
|
249767
|
+
return true;
|
|
249768
|
+
}
|
|
249769
|
+
}
|
|
249770
|
+
return false;
|
|
249771
|
+
}
|
|
249613
249772
|
}]);
|
|
249614
249773
|
return VueController;
|
|
249615
249774
|
}();
|
|
@@ -250652,14 +250811,18 @@ var EditController = /*#__PURE__*/function () {
|
|
|
250652
250811
|
}
|
|
250653
250812
|
//粘贴完重新绘制一下计算公式
|
|
250654
250813
|
var formularNodes = hoeditorfactory.drawTree.formularNodes;
|
|
250814
|
+
var isNeedUpdate = false;
|
|
250655
250815
|
formularNodes.forEach(function (value) {
|
|
250656
250816
|
var acell = value.getParentCell();
|
|
250657
250817
|
if (acell.table == parentNode.table) {
|
|
250658
250818
|
value.updateResult();
|
|
250659
250819
|
acell.drawCell.needUpdate = true;
|
|
250820
|
+
isNeedUpdate = true;
|
|
250660
250821
|
}
|
|
250661
250822
|
});
|
|
250662
|
-
|
|
250823
|
+
if (isNeedUpdate) {
|
|
250824
|
+
parentNode.table.update();
|
|
250825
|
+
}
|
|
250663
250826
|
return;
|
|
250664
250827
|
} else {
|
|
250665
250828
|
if (parentNode instanceof CellNode/* CellNode */.D && nodes.length > 0) {
|
|
@@ -253073,6 +253236,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
253073
253236
|
}
|
|
253074
253237
|
setTimeout(function () {
|
|
253075
253238
|
hoEditorFactory.vueController.moveCaretToPath(path);
|
|
253239
|
+
_this2.clearJsPDF();
|
|
253076
253240
|
}, 0);
|
|
253077
253241
|
return _context2.abrupt("return", base64.replace(/^data:application\/pdf;filename=generated.pdf;base64,/, ''));
|
|
253078
253242
|
case 21:
|
|
@@ -253105,8 +253269,18 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
253105
253269
|
if (this._waitPrint) {
|
|
253106
253270
|
this.printPromisePDF();
|
|
253107
253271
|
}
|
|
253108
|
-
if (this._waitSavepdf) {
|
|
253109
|
-
|
|
253272
|
+
// if (this._waitSavepdf) {
|
|
253273
|
+
// this.saveAsPDF();
|
|
253274
|
+
// }
|
|
253275
|
+
}
|
|
253276
|
+
}, {
|
|
253277
|
+
key: "clearJsPDF",
|
|
253278
|
+
value: function clearJsPDF() {
|
|
253279
|
+
if (this.PDF.internal.getFont("SimSun")) {
|
|
253280
|
+
delete this.PDF.internal.getFont("SimSun").metadata;
|
|
253281
|
+
delete this.PDF.internal.getFont("SimSun").data;
|
|
253282
|
+
delete this.PDF.internal.vFS["SimSun-normal.ttf"];
|
|
253283
|
+
this.PDF = null;
|
|
253110
253284
|
}
|
|
253111
253285
|
}
|
|
253112
253286
|
/**
|
|
@@ -253118,53 +253292,62 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
253118
253292
|
value: function saveAsPDF(pdfName, type, isSpecial) {
|
|
253119
253293
|
var _this3 = this;
|
|
253120
253294
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
253121
|
-
|
|
253122
|
-
|
|
253123
|
-
|
|
253124
|
-
|
|
253125
|
-
|
|
253126
|
-
|
|
253127
|
-
|
|
253128
|
-
|
|
253129
|
-
|
|
253130
|
-
|
|
253131
|
-
|
|
253132
|
-
|
|
253133
|
-
|
|
253134
|
-
hoEditorFactory.drawTree.paintStatus = DrawTree/* PaintState.psPreview */.Dh.psPreview;
|
|
253135
|
-
hoEditorFactory.drawTree.rebuildAllDrawLine(false, resolve);
|
|
253295
|
+
var print = function print() {
|
|
253296
|
+
var fileType = type ? type : 'pdf';
|
|
253297
|
+
var fileName = pdfName ? pdfName : hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
|
|
253298
|
+
// 保存打印前文档状态 和 内容
|
|
253299
|
+
var beforePrintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
253300
|
+
var xml = hoEditorFactory.vueController.getDocXml(true);
|
|
253301
|
+
var hPromise = Promise.resolve();
|
|
253302
|
+
hPromise = hPromise.then(function () {
|
|
253303
|
+
return new Promise(function (resolve) {
|
|
253304
|
+
hoEditorFactory.printStatus.printMode = 0;
|
|
253305
|
+
hoEditorFactory.drawTree.paintStatus = DrawTree/* PaintState.psPreview */.Dh.psPreview;
|
|
253306
|
+
hoEditorFactory.drawTree.rebuildAllDrawLine(false, resolve);
|
|
253307
|
+
});
|
|
253136
253308
|
});
|
|
253137
|
-
|
|
253138
|
-
|
|
253139
|
-
|
|
253140
|
-
|
|
253141
|
-
|
|
253142
|
-
|
|
253143
|
-
|
|
253144
|
-
|
|
253145
|
-
|
|
253146
|
-
|
|
253147
|
-
|
|
253148
|
-
|
|
253149
|
-
|
|
253150
|
-
|
|
253151
|
-
|
|
253152
|
-
|
|
253153
|
-
|
|
253154
|
-
|
|
253155
|
-
|
|
253156
|
-
|
|
253157
|
-
|
|
253158
|
-
|
|
253159
|
-
|
|
253160
|
-
|
|
253309
|
+
hPromise = hPromise.then(function () {
|
|
253310
|
+
return new Promise(function (resolve) {
|
|
253311
|
+
var orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
|
|
253312
|
+
var format = [hoEditorFactory.pageProperty.widthPixes, hoEditorFactory.pageProperty.heightPixes];
|
|
253313
|
+
if (hoEditorFactory.isFixedPrintToA4 == '1' && isSpecial) {
|
|
253314
|
+
format = _this3._a4Size[orientation];
|
|
253315
|
+
}
|
|
253316
|
+
var pageSize = JSON.stringify([hoEditorFactory.pageProperty.widthMm, hoEditorFactory.pageProperty.heightMm]);
|
|
253317
|
+
if (hoEditorFactory.isFixedPrintToA4 == '2' && ['[148,210]', '[210,148]'].includes(pageSize)) {
|
|
253318
|
+
format = [793, 1122];
|
|
253319
|
+
orientation = 'p';
|
|
253320
|
+
}
|
|
253321
|
+
var options = {
|
|
253322
|
+
orientation: orientation,
|
|
253323
|
+
unit: 'px',
|
|
253324
|
+
format: format,
|
|
253325
|
+
hotfixes: ['px_scaling'],
|
|
253326
|
+
compress: true
|
|
253327
|
+
};
|
|
253328
|
+
_this3.PDF = null;
|
|
253329
|
+
_this3.PDF = new jspdf/* default */.ZP(options);
|
|
253330
|
+
// PDF.setFont("SimSun");
|
|
253331
|
+
PrintStatus/* Print.printToPDF */.Kh.printToPDF(_this3._hoEditorFactoryID, _this3.PDF, fileType, fileName, resolve, undefined, format);
|
|
253332
|
+
});
|
|
253161
253333
|
});
|
|
253162
|
-
|
|
253163
|
-
|
|
253164
|
-
|
|
253165
|
-
|
|
253166
|
-
|
|
253167
|
-
|
|
253334
|
+
hPromise.then(function (resolve) {
|
|
253335
|
+
// 恢复文档状态 和 内容;
|
|
253336
|
+
hoEditorFactory.drawTree.paintStatus = beforePrintStatus;
|
|
253337
|
+
hoEditorFactory.vueController.openXml(xml);
|
|
253338
|
+
_this3.clearJsPDF();
|
|
253339
|
+
});
|
|
253340
|
+
};
|
|
253341
|
+
if (!this._isSetFont) {
|
|
253342
|
+
hoEditorFactory.vueController.hoLocalStorage().loadFontString().then(function (font) {
|
|
253343
|
+
if (font) {
|
|
253344
|
+
_this3.setjsPDFFonts(font);
|
|
253345
|
+
print();
|
|
253346
|
+
}
|
|
253347
|
+
});
|
|
253348
|
+
} else {
|
|
253349
|
+
print();
|
|
253350
|
+
}
|
|
253168
253351
|
}
|
|
253169
253352
|
/**
|
|
253170
253353
|
* 打印
|
|
@@ -253300,6 +253483,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
253300
253483
|
});
|
|
253301
253484
|
hoEditorFactory.vueController.rebuildAll(true);
|
|
253302
253485
|
}
|
|
253486
|
+
_this4.clearJsPDF();
|
|
253303
253487
|
}
|
|
253304
253488
|
});
|
|
253305
253489
|
}
|
|
@@ -253469,6 +253653,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
253469
253653
|
// hoEditorFactory.drawTree.rebuildAllDrawLine(false);
|
|
253470
253654
|
// }, 0);
|
|
253471
253655
|
console.timeEnd('连续打印总用时');
|
|
253656
|
+
_this5.clearJsPDF();
|
|
253472
253657
|
resolves(pos);
|
|
253473
253658
|
});
|
|
253474
253659
|
} else {
|
|
@@ -253481,10 +253666,8 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
253481
253666
|
// hoEditorFactory.vueController.newFile("caseHistory");
|
|
253482
253667
|
// 恢复文档内容
|
|
253483
253668
|
hoEditorFactory.vueController.openXml(xml);
|
|
253484
|
-
// setTimeout(() => {
|
|
253485
|
-
// hoEditorFactory.drawTree.rebuildAllDrawLine(false);
|
|
253486
|
-
// }, 0);
|
|
253487
253669
|
console.timeEnd('连续打印总用时');
|
|
253670
|
+
_this5.clearJsPDF();
|
|
253488
253671
|
return null;
|
|
253489
253672
|
}
|
|
253490
253673
|
});
|
|
@@ -253624,6 +253807,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
253624
253807
|
(_this6$PDF = _this6.PDF) === null || _this6$PDF === void 0 ? void 0 : _this6$PDF.deletePage(1);
|
|
253625
253808
|
name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
|
|
253626
253809
|
PrintStatus/* Print.openDataUriInWindow */.Kh.openDataUriInWindow(_this6.PDF, name, hoEditorFactory.pageProperty.widthPixes, hoEditorFactory.printSilently);
|
|
253810
|
+
_this6.clearJsPDF();
|
|
253627
253811
|
}
|
|
253628
253812
|
case 2:
|
|
253629
253813
|
case "end":
|
|
@@ -253664,54 +253848,6 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
253664
253848
|
list.push([false, v]);
|
|
253665
253849
|
});
|
|
253666
253850
|
hoEditorFactory.vueController.openDocsForPrint(list);
|
|
253667
|
-
// if (!hoEditorFactory.isHideComments) {
|
|
253668
|
-
// hoEditorFactory.vueController.hideComments(true);
|
|
253669
|
-
// }
|
|
253670
|
-
// hoEditorFactory.printStatus.printMode = 0;
|
|
253671
|
-
// hoEditorFactory.drawTree.paintStatus = PaintState.psReadOnly;
|
|
253672
|
-
// console.time("连续查看病历合并总用时");
|
|
253673
|
-
// if (!hoEditorFactory.continuousView.status) {
|
|
253674
|
-
// hoEditorFactory.continuousView.status = true;
|
|
253675
|
-
// this._viewXmlList = [...xmlList];
|
|
253676
|
-
// this._xmlIndex = -1;
|
|
253677
|
-
// } else {
|
|
253678
|
-
// this._viewXmlList = [...this._viewXmlList, ...xmlList];
|
|
253679
|
-
// }
|
|
253680
|
-
// const createSvg = () => {
|
|
253681
|
-
// this._xmlIndex++;
|
|
253682
|
-
// if (this._xmlIndex <= this._viewXmlList.length - 1) {
|
|
253683
|
-
// const current = typeof this._viewXmlList[this._xmlIndex] != "string";
|
|
253684
|
-
// const xml = current ? this._viewXmlList[this._xmlIndex].xml : this._viewXmlList[this._xmlIndex];
|
|
253685
|
-
// const isMerge = current ? this._viewXmlList[this._xmlIndex].isMerge : false;
|
|
253686
|
-
// if (this._xmlIndex === 0) {
|
|
253687
|
-
// Promise.all([hoEditorFactory.vueController.openXml(xml, undefined, true)]).then(() => {
|
|
253688
|
-
// if (hoEditorFactory.loadImageCount == 0) {
|
|
253689
|
-
// hoEditorFactory.loadImageCallback = null;
|
|
253690
|
-
// createSvg();
|
|
253691
|
-
// } else {
|
|
253692
|
-
// hoEditorFactory.loadImageCallback = createSvg;
|
|
253693
|
-
// }
|
|
253694
|
-
// });
|
|
253695
|
-
// } else {
|
|
253696
|
-
// Promise.all([hoEditorFactory.vueController.mergeDocs(xml, isMerge, undefined, true)]).then(() => {
|
|
253697
|
-
// if (hoEditorFactory.loadImageCount == 0) {
|
|
253698
|
-
// hoEditorFactory.loadImageCallback = null;
|
|
253699
|
-
// createSvg();
|
|
253700
|
-
// } else {
|
|
253701
|
-
// hoEditorFactory.loadImageCallback = createSvg;
|
|
253702
|
-
// }
|
|
253703
|
-
// });
|
|
253704
|
-
// }
|
|
253705
|
-
// if (this._xmlIndex === this._viewXmlList.length - 1) {
|
|
253706
|
-
// console.timeEnd("连续查看病历合并总用时");
|
|
253707
|
-
// }
|
|
253708
|
-
// if (mergeEnd) {
|
|
253709
|
-
// this._xmlIndex = 0;
|
|
253710
|
-
// this._viewXmlList = [];
|
|
253711
|
-
// }
|
|
253712
|
-
// }
|
|
253713
|
-
// };
|
|
253714
|
-
// createSvg();
|
|
253715
253851
|
}
|
|
253716
253852
|
}]);
|
|
253717
253853
|
return PrintController;
|
|
@@ -254286,6 +254422,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
254286
254422
|
// 网络中断后缓存文件
|
|
254287
254423
|
// 网络连接状态
|
|
254288
254424
|
// 网络连接中断后定时30s缓存一次
|
|
254425
|
+
// 增加页面刷新时缓存未保存的病历数据
|
|
254289
254426
|
function HoLocalStorage(hoEditorFactoryID) {
|
|
254290
254427
|
var _window, _window$chrome, _window$chrome$webvie;
|
|
254291
254428
|
(0,esm_classCallCheck/* default */.Z)(this, HoLocalStorage);
|
|
@@ -254307,6 +254444,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
254307
254444
|
(0,esm_defineProperty/* default */.Z)(this, "_offline_cache_list", void 0);
|
|
254308
254445
|
(0,esm_defineProperty/* default */.Z)(this, "_networkConnectionStatus", true);
|
|
254309
254446
|
(0,esm_defineProperty/* default */.Z)(this, "_offLineIntervalCacheTimer", void 0);
|
|
254447
|
+
(0,esm_defineProperty/* default */.Z)(this, "pageLoadCacheList", void 0);
|
|
254310
254448
|
var _this = this;
|
|
254311
254449
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
254312
254450
|
// 设置今天的 storeName
|
|
@@ -254364,7 +254502,11 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
254364
254502
|
name: '_ho_web',
|
|
254365
254503
|
storeName: '_offline_cache_list'
|
|
254366
254504
|
});
|
|
254367
|
-
this.
|
|
254505
|
+
this.pageLoadCacheList = localforage_default().createInstance({
|
|
254506
|
+
name: '_ho_web',
|
|
254507
|
+
storeName: 'PageLoadCacheList'
|
|
254508
|
+
});
|
|
254509
|
+
// this.networkEventListener();
|
|
254368
254510
|
}
|
|
254369
254511
|
//获取localXmlList
|
|
254370
254512
|
}, {
|
|
@@ -262860,7 +263002,7 @@ var popper = __webpack_require__(95551);
|
|
|
262860
263002
|
formularType: {
|
|
262861
263003
|
sum: '表格行列求和公式',
|
|
262862
263004
|
formula: '四则运算公式',
|
|
262863
|
-
bmi: '
|
|
263005
|
+
bmi: 'BMI计算公式',
|
|
262864
263006
|
labor: '产程公式',
|
|
262865
263007
|
expectedDate: '预产期公式',
|
|
262866
263008
|
pregnantWeeks: '孕周公式',
|
|
@@ -262871,7 +263013,8 @@ var popper = __webpack_require__(95551);
|
|
|
262871
263013
|
isPasted: false,
|
|
262872
263014
|
isWebview: false,
|
|
262873
263015
|
htmlText: '',
|
|
262874
|
-
txtText: ''
|
|
263016
|
+
txtText: '',
|
|
263017
|
+
radioBoxSelected: false
|
|
262875
263018
|
};
|
|
262876
263019
|
},
|
|
262877
263020
|
created: function created() {
|
|
@@ -262895,7 +263038,7 @@ var popper = __webpack_require__(95551);
|
|
|
262895
263038
|
});
|
|
262896
263039
|
},
|
|
262897
263040
|
mounted: function mounted() {
|
|
262898
|
-
var _this$hoEditorProvide, _this$hoEditorProvide2;
|
|
263041
|
+
var _this$hoEditorProvide, _this$hoEditorProvide2, _this$hoEditorProvide3;
|
|
262899
263042
|
this.isIncludes = (_this$hoEditorProvide = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide === void 0 ? void 0 : _this$hoEditorProvide.labelNode().isIncludes;
|
|
262900
263043
|
// this.patientID = this.vueController?.getDocProperty().patientID;
|
|
262901
263044
|
this.isDeisgn = this.hoEditorProvider.rightNode.paintStatus;
|
|
@@ -262915,6 +263058,10 @@ var popper = __webpack_require__(95551);
|
|
|
262915
263058
|
}]
|
|
262916
263059
|
});
|
|
262917
263060
|
}
|
|
263061
|
+
if (((_this$hoEditorProvide3 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide3 === void 0 ? void 0 : _this$hoEditorProvide3.type) === 'RadioBox') {
|
|
263062
|
+
var _this$hoEditorProvide4;
|
|
263063
|
+
this.radioBoxSelected = (_this$hoEditorProvide4 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide4 === void 0 ? void 0 : _this$hoEditorProvide4.node().isSelected;
|
|
263064
|
+
}
|
|
262918
263065
|
this.emrDebug = window && window.emrDebug0331 ? true : false;
|
|
262919
263066
|
},
|
|
262920
263067
|
methods: {
|
|
@@ -262985,6 +263132,12 @@ var popper = __webpack_require__(95551);
|
|
|
262985
263132
|
|
|
262986
263133
|
this.handleClose();
|
|
262987
263134
|
},
|
|
263135
|
+
cancelRadioSelect: function cancelRadioSelect() {
|
|
263136
|
+
this.handleClose();
|
|
263137
|
+
if (this.hoEditorProvider.rightNode) {
|
|
263138
|
+
this.vueController.cancelSelect(this.hoEditorProvider.rightNode.node());
|
|
263139
|
+
}
|
|
263140
|
+
},
|
|
262988
263141
|
addDiagonal: function addDiagonal(type) {
|
|
262989
263142
|
var node = this.hoEditorProvider.rightNode.node();
|
|
262990
263143
|
if (node instanceof CellNode/* CellNode */.D) {
|
|
@@ -263157,16 +263310,14 @@ var popper = __webpack_require__(95551);
|
|
|
263157
263310
|
}
|
|
263158
263311
|
},
|
|
263159
263312
|
render: function render() {
|
|
263160
|
-
var _this$
|
|
263313
|
+
var _this$hoEditorProvide5,
|
|
263161
263314
|
_this$$slots$hoRightS,
|
|
263162
|
-
_this$hoEditorProvide4,
|
|
263163
|
-
_this$hoEditorProvide5,
|
|
263164
263315
|
_this$hoEditorProvide6,
|
|
263165
263316
|
_this$hoEditorProvide7,
|
|
263166
263317
|
_this$hoEditorProvide8,
|
|
263167
|
-
_this5 = this,
|
|
263168
263318
|
_this$hoEditorProvide9,
|
|
263169
263319
|
_this$hoEditorProvide10,
|
|
263320
|
+
_this5 = this,
|
|
263170
263321
|
_this$hoEditorProvide11,
|
|
263171
263322
|
_this$hoEditorProvide12,
|
|
263172
263323
|
_this$hoEditorProvide13,
|
|
@@ -263187,7 +263338,9 @@ var popper = __webpack_require__(95551);
|
|
|
263187
263338
|
_this$hoEditorProvide28,
|
|
263188
263339
|
_this$hoEditorProvide29,
|
|
263189
263340
|
_this$hoEditorProvide30,
|
|
263190
|
-
_this$hoEditorProvide31
|
|
263341
|
+
_this$hoEditorProvide31,
|
|
263342
|
+
_this$hoEditorProvide32,
|
|
263343
|
+
_this$hoEditorProvide33;
|
|
263191
263344
|
var h = arguments[0];
|
|
263192
263345
|
return h("div", {
|
|
263193
263346
|
"directives": [{
|
|
@@ -263196,7 +263349,7 @@ var popper = __webpack_require__(95551);
|
|
|
263196
263349
|
}],
|
|
263197
263350
|
"ref": "mouseRightMenuPopup",
|
|
263198
263351
|
"class": "mouse-right-menu-popup animation-in"
|
|
263199
|
-
}, [(this.isPasted || this.isWebview || this.htmlText || this.txtText) && ((_this$
|
|
263352
|
+
}, [(this.isPasted || this.isWebview || this.htmlText || this.txtText) && ((_this$hoEditorProvide5 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide5 === void 0 ? void 0 : _this$hoEditorProvide5.paintStatus) !== 4 && h("ul", {
|
|
263200
263353
|
"class": "mouse-right-menu"
|
|
263201
263354
|
}, [h("li", {
|
|
263202
263355
|
"class": "mouse-menu-item",
|
|
@@ -263220,7 +263373,7 @@ var popper = __webpack_require__(95551);
|
|
|
263220
263373
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
263221
263374
|
})]), (_this$$slots$hoRightS = this.$slots.hoRightSlot) === null || _this$$slots$hoRightS === void 0 ? void 0 : _this$$slots$hoRightS.map(function (v) {
|
|
263222
263375
|
return v;
|
|
263223
|
-
}), ((_this$
|
|
263376
|
+
}), ((_this$hoEditorProvide6 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide6 === void 0 ? void 0 : _this$hoEditorProvide6.paintStatus) !== 4 && h("p", [this.isIncludes === 'toLabel' && h("ul", {
|
|
263224
263377
|
"class": "mouse-right-menu"
|
|
263225
263378
|
}, [h("li", {
|
|
263226
263379
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -263238,12 +263391,12 @@ var popper = __webpack_require__(95551);
|
|
|
263238
263391
|
"on": {
|
|
263239
263392
|
"click": this.labelToText.bind(this)
|
|
263240
263393
|
}
|
|
263241
|
-
}, ["\u6807\u7B7E\u8F6C\u6587\u672C"]), ((_this$
|
|
263394
|
+
}, ["\u6807\u7B7E\u8F6C\u6587\u672C"]), ((_this$hoEditorProvide7 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide7 === void 0 ? void 0 : _this$hoEditorProvide7.paintStatus) == 0 && h("li", {
|
|
263242
263395
|
"class": "mouse-menu-item",
|
|
263243
263396
|
"on": {
|
|
263244
263397
|
"click": this.editLabel.bind(this)
|
|
263245
263398
|
}
|
|
263246
|
-
}, ["\u7F16\u8F91\u6807\u7B7E\u5173\u8054\u5143\u7D20"])]), ((_this$
|
|
263399
|
+
}, ["\u7F16\u8F91\u6807\u7B7E\u5173\u8054\u5143\u7D20"])]), ((_this$hoEditorProvide8 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide8 === void 0 ? void 0 : _this$hoEditorProvide8.type) === 'express' && ((_this$hoEditorProvide9 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide9 === void 0 ? void 0 : _this$hoEditorProvide9.paintStatus) === 0 && ((_this$hoEditorProvide10 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide10 === void 0 ? void 0 : _this$hoEditorProvide10.paintStatus) === 0 && h("ul", {
|
|
263247
263400
|
"class": "mouse-right-menu"
|
|
263248
263401
|
}, [h("li", {
|
|
263249
263402
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -263254,7 +263407,7 @@ var popper = __webpack_require__(95551);
|
|
|
263254
263407
|
return _this5.toUpdateNodes('express', event);
|
|
263255
263408
|
}
|
|
263256
263409
|
}
|
|
263257
|
-
}, ["\u533B\u5B66\u8868\u8FBE\u5F0F\u5C5E\u6027"])]), (((_this$
|
|
263410
|
+
}, ["\u533B\u5B66\u8868\u8FBE\u5F0F\u5C5E\u6027"])]), (((_this$hoEditorProvide11 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide11 === void 0 ? void 0 : _this$hoEditorProvide11.type) === 'RadioBox' || ((_this$hoEditorProvide12 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide12 === void 0 ? void 0 : _this$hoEditorProvide12.type) === 'CheckBox') && ((_this$hoEditorProvide13 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide13 === void 0 ? void 0 : _this$hoEditorProvide13.paintStatus) === 0 && h("ul", {
|
|
263258
263411
|
"class": "mouse-right-menu"
|
|
263259
263412
|
}, [h("li", {
|
|
263260
263413
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -263266,7 +263419,18 @@ var popper = __webpack_require__(95551);
|
|
|
263266
263419
|
return _this5.toUpdateNodes((_this5$hoEditorProvid = _this5.hoEditorProvider.rightNode) === null || _this5$hoEditorProvid === void 0 ? void 0 : _this5$hoEditorProvid.type, event);
|
|
263267
263420
|
}
|
|
263268
263421
|
}
|
|
263269
|
-
}, [((_this$
|
|
263422
|
+
}, [((_this$hoEditorProvide14 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide14 === void 0 ? void 0 : _this$hoEditorProvide14.type) === 'RadioBox' ? '单选框属性' : '复选框属性'])]), this.radioBoxSelected && h("ul", {
|
|
263423
|
+
"class": "mouse-right-menu"
|
|
263424
|
+
}, [h("li", {
|
|
263425
|
+
"class": "mouse-menu-item mouse-right-menu-line"
|
|
263426
|
+
}), h("li", {
|
|
263427
|
+
"class": "mouse-menu-item",
|
|
263428
|
+
"on": {
|
|
263429
|
+
"click": function click() {
|
|
263430
|
+
return _this5.cancelRadioSelect();
|
|
263431
|
+
}
|
|
263432
|
+
}
|
|
263433
|
+
}, ["\u53D6\u6D88\u9009\u4E2D"])]), ((_this$hoEditorProvide15 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide15 === void 0 ? void 0 : _this$hoEditorProvide15.type) === 'date' && ((_this$hoEditorProvide16 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide16 === void 0 ? void 0 : _this$hoEditorProvide16.paintStatus) === 0 && h("ul", {
|
|
263270
263434
|
"class": "mouse-right-menu"
|
|
263271
263435
|
}, [h("li", {
|
|
263272
263436
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -263277,7 +263441,7 @@ var popper = __webpack_require__(95551);
|
|
|
263277
263441
|
return _this5.toUpdateNodes('date', event);
|
|
263278
263442
|
}
|
|
263279
263443
|
}
|
|
263280
|
-
}, ["\u65E5\u671F\u5C5E\u6027"])]), ((_this$
|
|
263444
|
+
}, ["\u65E5\u671F\u5C5E\u6027"])]), ((_this$hoEditorProvide17 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide17 === void 0 ? void 0 : _this$hoEditorProvide17.type) === 'select' && ((_this$hoEditorProvide18 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide18 === void 0 ? void 0 : _this$hoEditorProvide18.paintStatus) === 0 && h("ul", {
|
|
263281
263445
|
"class": "mouse-right-menu"
|
|
263282
263446
|
}, [h("li", {
|
|
263283
263447
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -263288,7 +263452,7 @@ var popper = __webpack_require__(95551);
|
|
|
263288
263452
|
return _this5.toUpdateNodes('select', event);
|
|
263289
263453
|
}
|
|
263290
263454
|
}
|
|
263291
|
-
}, ["\u4E0B\u62C9\u6846\u5C5E\u6027"])]), ((_this$
|
|
263455
|
+
}, ["\u4E0B\u62C9\u6846\u5C5E\u6027"])]), ((_this$hoEditorProvide19 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide19 === void 0 ? void 0 : _this$hoEditorProvide19.type) === 'barcode' && ((_this$hoEditorProvide20 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide20 === void 0 ? void 0 : _this$hoEditorProvide20.paintStatus) === 0 && h("ul", {
|
|
263292
263456
|
"class": "mouse-right-menu"
|
|
263293
263457
|
}, [h("li", {
|
|
263294
263458
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -263299,7 +263463,7 @@ var popper = __webpack_require__(95551);
|
|
|
263299
263463
|
return _this5.toUpdateNodes('barcode', event);
|
|
263300
263464
|
}
|
|
263301
263465
|
}
|
|
263302
|
-
}, ["\u6761\u5F62\u7801\u5C5E\u6027"])]), ((_this$
|
|
263466
|
+
}, ["\u6761\u5F62\u7801\u5C5E\u6027"])]), ((_this$hoEditorProvide21 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide21 === void 0 ? void 0 : _this$hoEditorProvide21.type) === 'qrcode' && ((_this$hoEditorProvide22 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide22 === void 0 ? void 0 : _this$hoEditorProvide22.paintStatus) === 0 && h("ul", {
|
|
263303
263467
|
"class": "mouse-right-menu"
|
|
263304
263468
|
}, [h("li", {
|
|
263305
263469
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -263310,7 +263474,7 @@ var popper = __webpack_require__(95551);
|
|
|
263310
263474
|
return _this5.toUpdateNodes('qrcode', event);
|
|
263311
263475
|
}
|
|
263312
263476
|
}
|
|
263313
|
-
}, ["\u4E8C\u7EF4\u7801\u5C5E\u6027"])]), ((_this$
|
|
263477
|
+
}, ["\u4E8C\u7EF4\u7801\u5C5E\u6027"])]), ((_this$hoEditorProvide23 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide23 === void 0 ? void 0 : _this$hoEditorProvide23.type) === 'edit-image' && ((_this$hoEditorProvide24 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide24 === void 0 ? void 0 : _this$hoEditorProvide24.paintStatus) === 0 && h("ul", {
|
|
263314
263478
|
"class": "mouse-right-menu"
|
|
263315
263479
|
}, [h("li", {
|
|
263316
263480
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -263321,7 +263485,7 @@ var popper = __webpack_require__(95551);
|
|
|
263321
263485
|
return _this5.toUpdateNodes('edit-image', event);
|
|
263322
263486
|
}
|
|
263323
263487
|
}
|
|
263324
|
-
}, ["\u7F16\u8F91\u56FE\u7247"])]), ((_this$
|
|
263488
|
+
}, ["\u7F16\u8F91\u56FE\u7247"])]), ((_this$hoEditorProvide25 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide25 === void 0 ? void 0 : _this$hoEditorProvide25.type) === 'text' && ((_this$hoEditorProvide26 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide26 === void 0 ? void 0 : _this$hoEditorProvide26.paintStatus) === 0 && h("ul", {
|
|
263325
263489
|
"class": "mouse-right-menu"
|
|
263326
263490
|
}, [h("li", {
|
|
263327
263491
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -263332,7 +263496,7 @@ var popper = __webpack_require__(95551);
|
|
|
263332
263496
|
return _this5.toUpdateNodes('text', event);
|
|
263333
263497
|
}
|
|
263334
263498
|
}
|
|
263335
|
-
}, ["\u6587\u672C\u57DF\u5C5E\u6027"])]), (((_this$
|
|
263499
|
+
}, ["\u6587\u672C\u57DF\u5C5E\u6027"])]), (((_this$hoEditorProvide27 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide27 === void 0 ? void 0 : _this$hoEditorProvide27.rightTypeIsTable) && this.defaultTable && (((_this$hoEditorProvide28 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide28 === void 0 ? void 0 : _this$hoEditorProvide28.paintStatus) === 0 || ((_this$hoEditorProvide29 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide29 === void 0 ? void 0 : _this$hoEditorProvide29.isCanUseTableProperty)) || this.emrDebug) && h("ul", {
|
|
263336
263500
|
"class": "mouse-right-menu"
|
|
263337
263501
|
}, [h("li", {
|
|
263338
263502
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -263371,7 +263535,7 @@ var popper = __webpack_require__(95551);
|
|
|
263371
263535
|
return _this5.toUpdateNodes('table-formula', event);
|
|
263372
263536
|
}
|
|
263373
263537
|
}
|
|
263374
|
-
}, [this.formularType[this.hoEditorProvider.rightNode.tableFormulaType]])]), ((_this$
|
|
263538
|
+
}, [this.formularType[this.hoEditorProvider.rightNode.tableFormulaType]])]), ((_this$hoEditorProvide30 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide30 === void 0 ? void 0 : _this$hoEditorProvide30.rightTypeIsTable) && this.defaultTable && h("ul", {
|
|
263375
263539
|
"class": "mouse-right-menu"
|
|
263376
263540
|
}, [h("li", {
|
|
263377
263541
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -263427,7 +263591,7 @@ var popper = __webpack_require__(95551);
|
|
|
263427
263591
|
"type": "delete"
|
|
263428
263592
|
},
|
|
263429
263593
|
"style": "font-size: 20px;"
|
|
263430
|
-
}), h("span", ["\u5220\u9664\u5BF9\u89D2\u7EBF"])])]), ((_this$
|
|
263594
|
+
}), h("span", ["\u5220\u9664\u5BF9\u89D2\u7EBF"])])]), ((_this$hoEditorProvide31 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide31 === void 0 ? void 0 : _this$hoEditorProvide31.rightTypeIsTable) && this.defaultTable && h("ul", {
|
|
263431
263595
|
"class": "mouse-right-menu"
|
|
263432
263596
|
}, [h("li", {
|
|
263433
263597
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -263441,7 +263605,7 @@ var popper = __webpack_require__(95551);
|
|
|
263441
263605
|
table: this.defaultTable,
|
|
263442
263606
|
tableProperty: this.hoEditorProvider.rightNode.tableProperty
|
|
263443
263607
|
})
|
|
263444
|
-
})]), ((_this$
|
|
263608
|
+
})]), ((_this$hoEditorProvide32 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide32 === void 0 ? void 0 : _this$hoEditorProvide32.canShowComment) && h("ul", {
|
|
263445
263609
|
"class": "mouse-right-menu"
|
|
263446
263610
|
}, [h("li", {
|
|
263447
263611
|
"class": "mouse-menu-item",
|
|
@@ -263450,7 +263614,7 @@ var popper = __webpack_require__(95551);
|
|
|
263450
263614
|
return _this5.hideComments();
|
|
263451
263615
|
}
|
|
263452
263616
|
}
|
|
263453
|
-
}, [(_this$
|
|
263617
|
+
}, [(_this$hoEditorProvide33 = this.hoEditorProvider.rightNode) !== null && _this$hoEditorProvide33 !== void 0 && _this$hoEditorProvide33.isHideComments ? '显示' : '隐藏', "\u6279\u6CE8"])])]), h("ul", {
|
|
263454
263618
|
"class": "mouse-right-menu"
|
|
263455
263619
|
}, [h("li", {
|
|
263456
263620
|
"class": "mouse-menu-item"
|