hoeditor-web 3.1.2 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.css +2 -18387
- package/lib/hoeditor.umd.js +582 -350
- package/lib/hoeditor.umd.min.js +14 -14
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -5149,7 +5149,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
5149
5149
|
|
|
5150
5150
|
/***/ }),
|
|
5151
5151
|
|
|
5152
|
-
/***/
|
|
5152
|
+
/***/ 29582:
|
|
5153
5153
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5154
5154
|
|
|
5155
5155
|
"use strict";
|
|
@@ -5171,7 +5171,7 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
5171
5171
|
var es_regexp_exec = __webpack_require__(74916);
|
|
5172
5172
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
5173
5173
|
var es_string_replace = __webpack_require__(15306);
|
|
5174
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/dateDialog/DateDialog.vue?vue&type=template&id=
|
|
5174
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/dateDialog/DateDialog.vue?vue&type=template&id=0e5e15a9&
|
|
5175
5175
|
|
|
5176
5176
|
|
|
5177
5177
|
|
|
@@ -5420,7 +5420,18 @@ var render = function render() {
|
|
|
5420
5420
|
},
|
|
5421
5421
|
expression: "notReplaceElement"
|
|
5422
5422
|
}
|
|
5423
|
-
}, [_vm._v("不启用元素引用")])
|
|
5423
|
+
}, [_vm._v("不启用元素引用")]), _c('a-checkbox', {
|
|
5424
|
+
attrs: {
|
|
5425
|
+
"size": "small"
|
|
5426
|
+
},
|
|
5427
|
+
model: {
|
|
5428
|
+
value: _vm.notSelectTime,
|
|
5429
|
+
callback: function callback($$v) {
|
|
5430
|
+
_vm.notSelectTime = $$v;
|
|
5431
|
+
},
|
|
5432
|
+
expression: "notSelectTime"
|
|
5433
|
+
}
|
|
5434
|
+
}, [_vm._v("不允许往后选择日期")])], 1)])])]), _vm._t("hoTextFieldModal")], 2)], 1), _c('footer', {
|
|
5424
5435
|
staticClass: "ho-modal-footer"
|
|
5425
5436
|
}, [_c('a-button', {
|
|
5426
5437
|
attrs: {
|
|
@@ -5440,7 +5451,7 @@ var render = function render() {
|
|
|
5440
5451
|
};
|
|
5441
5452
|
var staticRenderFns = [];
|
|
5442
5453
|
|
|
5443
|
-
;// CONCATENATED MODULE: ./src/components/controls/dateDialog/DateDialog.vue?vue&type=template&id=
|
|
5454
|
+
;// CONCATENATED MODULE: ./src/components/controls/dateDialog/DateDialog.vue?vue&type=template&id=0e5e15a9&
|
|
5444
5455
|
|
|
5445
5456
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
5446
5457
|
var objectSpread2 = __webpack_require__(63442);
|
|
@@ -5504,6 +5515,7 @@ var zh_cn = __webpack_require__(83839);
|
|
|
5504
5515
|
tipText: '',
|
|
5505
5516
|
isAllowDelete: false,
|
|
5506
5517
|
notReplaceElement: false,
|
|
5518
|
+
notSelectTime: false,
|
|
5507
5519
|
isReadOnly: false,
|
|
5508
5520
|
controlStyle: 'yyyy/MM/dd',
|
|
5509
5521
|
innerIdentifier: '',
|
|
@@ -5539,6 +5551,7 @@ var zh_cn = __webpack_require__(83839);
|
|
|
5539
5551
|
this.tipText = updateNode.tipText;
|
|
5540
5552
|
this.isAllowDelete = updateNode.isAllowDelete;
|
|
5541
5553
|
this.notReplaceElement = updateNode.notReplaceElement == 'undefined' || updateNode.notReplaceElement == undefined ? false : updateNode.notReplaceElement;
|
|
5554
|
+
this.notSelectTime = updateNode.notSelectTime == 'undefined' || updateNode.notSelectTime == undefined ? false : updateNode.notSelectTime;
|
|
5542
5555
|
this.isReadOnly = updateNode.isReadOnly;
|
|
5543
5556
|
this.controlStyle = updateNode.controlStyle;
|
|
5544
5557
|
this.innerIdentifier = updateNode.innerIdentifier;
|
|
@@ -5622,6 +5635,7 @@ var zh_cn = __webpack_require__(83839);
|
|
|
5622
5635
|
readType: this.readType,
|
|
5623
5636
|
labelText: this.name,
|
|
5624
5637
|
notReplaceElement: this.notReplaceElement,
|
|
5638
|
+
notSelectTime: this.notSelectTime,
|
|
5625
5639
|
customProperty: (0,objectSpread2/* default */.Z)({}, customProperty)
|
|
5626
5640
|
};
|
|
5627
5641
|
params.readType ? params.readType = 1 : params.readType = 0;
|
|
@@ -5642,10 +5656,10 @@ var zh_cn = __webpack_require__(83839);
|
|
|
5642
5656
|
});
|
|
5643
5657
|
;// CONCATENATED MODULE: ./src/components/controls/dateDialog/DateDialog.vue?vue&type=script&lang=js&
|
|
5644
5658
|
/* harmony default export */ var dateDialog_DateDialogvue_type_script_lang_js_ = (DateDialogvue_type_script_lang_js_);
|
|
5645
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/dateDialog/DateDialog.vue?vue&type=style&index=0&id=
|
|
5659
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/dateDialog/DateDialog.vue?vue&type=style&index=0&id=0e5e15a9&prod&lang=less&
|
|
5646
5660
|
// extracted by mini-css-extract-plugin
|
|
5647
5661
|
|
|
5648
|
-
;// CONCATENATED MODULE: ./src/components/controls/dateDialog/DateDialog.vue?vue&type=style&index=0&id=
|
|
5662
|
+
;// CONCATENATED MODULE: ./src/components/controls/dateDialog/DateDialog.vue?vue&type=style&index=0&id=0e5e15a9&prod&lang=less&
|
|
5649
5663
|
|
|
5650
5664
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
5651
5665
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -9348,7 +9362,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
9348
9362
|
|
|
9349
9363
|
/***/ }),
|
|
9350
9364
|
|
|
9351
|
-
/***/
|
|
9365
|
+
/***/ 6459:
|
|
9352
9366
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9353
9367
|
|
|
9354
9368
|
"use strict";
|
|
@@ -9368,7 +9382,7 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
9368
9382
|
var es_regexp_exec = __webpack_require__(74916);
|
|
9369
9383
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
9370
9384
|
var es_string_replace = __webpack_require__(15306);
|
|
9371
|
-
;// 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=
|
|
9385
|
+
;// 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=07f366ec&
|
|
9372
9386
|
|
|
9373
9387
|
|
|
9374
9388
|
|
|
@@ -9623,6 +9637,7 @@ var render = function render() {
|
|
|
9623
9637
|
"open": true,
|
|
9624
9638
|
"locale": _vm.locale,
|
|
9625
9639
|
"showToday": false,
|
|
9640
|
+
"disabled-date": _vm.disabledEndDate,
|
|
9626
9641
|
"format": _vm.dateTimeStyle.replace(/dd/g, 'DD').split(' ')[0],
|
|
9627
9642
|
"valueFormat": _vm.dateTimeStyle.replace(/dd/g, 'DD').split(' ')[0]
|
|
9628
9643
|
},
|
|
@@ -9756,7 +9771,7 @@ var render = function render() {
|
|
|
9756
9771
|
};
|
|
9757
9772
|
var staticRenderFns = [];
|
|
9758
9773
|
|
|
9759
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
9774
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=07f366ec&
|
|
9760
9775
|
|
|
9761
9776
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
9762
9777
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -11834,6 +11849,7 @@ var type = __webpack_require__(41542);
|
|
|
11834
11849
|
endPath: '',
|
|
11835
11850
|
calendarInstance: null,
|
|
11836
11851
|
calendarTimeInstance: null,
|
|
11852
|
+
notSelectTime: false,
|
|
11837
11853
|
isSelected: false
|
|
11838
11854
|
};
|
|
11839
11855
|
},
|
|
@@ -11882,6 +11898,7 @@ var type = __webpack_require__(41542);
|
|
|
11882
11898
|
var currentPoperNode = this.getCurrentPoperNode();
|
|
11883
11899
|
if (this.poperType === 'datePoper') {
|
|
11884
11900
|
if (currentPoperNode instanceof DateTimeNode/* DateTimeNode */.Z) {
|
|
11901
|
+
this.notSelectTime = currentPoperNode.notSelectTime ? currentPoperNode.notSelectTime : false;
|
|
11885
11902
|
this.dateTimeStyle = currentPoperNode.controlStyle;
|
|
11886
11903
|
var text = currentPoperNode.text;
|
|
11887
11904
|
if (!text || text === currentPoperNode.name) {
|
|
@@ -12012,6 +12029,12 @@ var type = __webpack_require__(41542);
|
|
|
12012
12029
|
});
|
|
12013
12030
|
}
|
|
12014
12031
|
},
|
|
12032
|
+
disabledEndDate: function disabledEndDate(current) {
|
|
12033
|
+
if (this.notSelectTime) {
|
|
12034
|
+
return current && current > moment_default()().endOf('day');
|
|
12035
|
+
}
|
|
12036
|
+
return false;
|
|
12037
|
+
},
|
|
12015
12038
|
calendarTimeInstanceChange: function calendarTimeInstanceChange(event) {
|
|
12016
12039
|
var style = this.dateTimeStyle.replace(/dd/g, 'DD').replace(/yyyy/g, 'YYYY');
|
|
12017
12040
|
var timeFormat = this.dateTimeStyle.includes(' ') ? this.dateTimeStyle.split(' ')[1] : this.dateTimeStyle;
|
|
@@ -12172,6 +12195,8 @@ var type = __webpack_require__(41542);
|
|
|
12172
12195
|
innerIdentifier: node.innerIdentifier,
|
|
12173
12196
|
dataMetaIdentifier: node.dataMetaIdentifier,
|
|
12174
12197
|
identifierFormat: node.identifierFormat,
|
|
12198
|
+
notSelectTime: node.notSelectTime,
|
|
12199
|
+
notReplaceElement: node.notReplaceElement,
|
|
12175
12200
|
readType: node.readType,
|
|
12176
12201
|
labelText: node.labelText,
|
|
12177
12202
|
customProperty: node.customProperty
|
|
@@ -12208,6 +12233,8 @@ var type = __webpack_require__(41542);
|
|
|
12208
12233
|
innerIdentifier: node.innerIdentifier,
|
|
12209
12234
|
dataMetaIdentifier: node.dataMetaIdentifier,
|
|
12210
12235
|
identifierFormat: node.identifierFormat,
|
|
12236
|
+
notSelectTime: node.notSelectTime,
|
|
12237
|
+
notReplaceElement: node.notReplaceElement,
|
|
12211
12238
|
readType: node.readType,
|
|
12212
12239
|
labelText: node.labelText,
|
|
12213
12240
|
customProperty: node.customProperty
|
|
@@ -12523,10 +12550,10 @@ var type = __webpack_require__(41542);
|
|
|
12523
12550
|
});
|
|
12524
12551
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
12525
12552
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
|
|
12526
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12553
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=07f366ec&prod&lang=less&
|
|
12527
12554
|
// extracted by mini-css-extract-plugin
|
|
12528
12555
|
|
|
12529
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12556
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=07f366ec&prod&lang=less&
|
|
12530
12557
|
|
|
12531
12558
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
12532
12559
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -13495,7 +13522,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
13495
13522
|
|
|
13496
13523
|
/***/ }),
|
|
13497
13524
|
|
|
13498
|
-
/***/
|
|
13525
|
+
/***/ 68763:
|
|
13499
13526
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
13500
13527
|
|
|
13501
13528
|
"use strict";
|
|
@@ -13509,7 +13536,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
13509
13536
|
|
|
13510
13537
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
13511
13538
|
var es_function_name = __webpack_require__(68309);
|
|
13512
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=
|
|
13539
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=ddf4f372&
|
|
13513
13540
|
|
|
13514
13541
|
var render = function render() {
|
|
13515
13542
|
var _vm = this,
|
|
@@ -14218,7 +14245,7 @@ var render = function render() {
|
|
|
14218
14245
|
};
|
|
14219
14246
|
var staticRenderFns = [];
|
|
14220
14247
|
|
|
14221
|
-
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=
|
|
14248
|
+
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=ddf4f372&
|
|
14222
14249
|
|
|
14223
14250
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
14224
14251
|
var objectSpread2 = __webpack_require__(63442);
|
|
@@ -14391,7 +14418,6 @@ var defaultBox = {
|
|
|
14391
14418
|
for (var i = 0; i < nodes.length; i++) {
|
|
14392
14419
|
var node = nodes[i];
|
|
14393
14420
|
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
14394
|
-
if (node.name == '单次用量') {}
|
|
14395
14421
|
ret.push({
|
|
14396
14422
|
dataId: node.dataId,
|
|
14397
14423
|
name: node.name,
|
|
@@ -14520,10 +14546,10 @@ var defaultBox = {
|
|
|
14520
14546
|
});
|
|
14521
14547
|
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=script&lang=js&
|
|
14522
14548
|
/* harmony default export */ var radioCheckBox_RadioCheckboxvue_type_script_lang_js_ = (RadioCheckboxvue_type_script_lang_js_);
|
|
14523
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=
|
|
14549
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=ddf4f372&prod&lang=less&
|
|
14524
14550
|
// extracted by mini-css-extract-plugin
|
|
14525
14551
|
|
|
14526
|
-
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=
|
|
14552
|
+
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=ddf4f372&prod&lang=less&
|
|
14527
14553
|
|
|
14528
14554
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
14529
14555
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -17970,7 +17996,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
17970
17996
|
|
|
17971
17997
|
/***/ }),
|
|
17972
17998
|
|
|
17973
|
-
/***/
|
|
17999
|
+
/***/ 46226:
|
|
17974
18000
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17975
18001
|
|
|
17976
18002
|
"use strict";
|
|
@@ -17990,7 +18016,7 @@ var es_array_includes = __webpack_require__(26699);
|
|
|
17990
18016
|
var es_string_includes = __webpack_require__(32023);
|
|
17991
18017
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
17992
18018
|
var es_number_constructor = __webpack_require__(9653);
|
|
17993
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableColProperty.vue?vue&type=template&id=
|
|
18019
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableColProperty.vue?vue&type=template&id=9ef504d2&
|
|
17994
18020
|
|
|
17995
18021
|
|
|
17996
18022
|
|
|
@@ -18143,6 +18169,20 @@ var render = function render() {
|
|
|
18143
18169
|
"value": 5
|
|
18144
18170
|
}
|
|
18145
18171
|
}, [_vm._v("输入域")])], 1)], 1), _c('li', {
|
|
18172
|
+
staticClass: "control-item"
|
|
18173
|
+
}, [_c('div', {
|
|
18174
|
+
staticStyle: {
|
|
18175
|
+
"padding-right": "20px"
|
|
18176
|
+
}
|
|
18177
|
+
}, [_c('a-checkbox', {
|
|
18178
|
+
model: {
|
|
18179
|
+
value: _vm.isSignLock,
|
|
18180
|
+
callback: function callback($$v) {
|
|
18181
|
+
_vm.isSignLock = $$v;
|
|
18182
|
+
},
|
|
18183
|
+
expression: "isSignLock"
|
|
18184
|
+
}
|
|
18185
|
+
}, [_vm._v("签名完成后锁定列")])], 1)]), _c('li', {
|
|
18146
18186
|
directives: [{
|
|
18147
18187
|
name: "show",
|
|
18148
18188
|
rawName: "v-show",
|
|
@@ -18468,7 +18508,7 @@ var render = function render() {
|
|
|
18468
18508
|
};
|
|
18469
18509
|
var staticRenderFns = [];
|
|
18470
18510
|
|
|
18471
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=template&id=
|
|
18511
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=template&id=9ef504d2&
|
|
18472
18512
|
|
|
18473
18513
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
18474
18514
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -18567,7 +18607,8 @@ var getCellNode = __webpack_require__(5986);
|
|
|
18567
18607
|
numberProperty: undefined
|
|
18568
18608
|
},
|
|
18569
18609
|
colInfoes: null,
|
|
18570
|
-
tableInfo: null
|
|
18610
|
+
tableInfo: null,
|
|
18611
|
+
isSignLock: false
|
|
18571
18612
|
};
|
|
18572
18613
|
},
|
|
18573
18614
|
inject: ['hoEditorProvider'],
|
|
@@ -18625,6 +18666,7 @@ var getCellNode = __webpack_require__(5986);
|
|
|
18625
18666
|
this.width = colProperty.width ? colProperty.width : 0;
|
|
18626
18667
|
this.colWidth = (hoEditorFactory.unitConvert.pxConversionMm(colInfoes.colWidth, false) / 10).toFixed(2);
|
|
18627
18668
|
this.isSpecifyWidth = colProperty.isSpecifyWidth ? true : false;
|
|
18669
|
+
this.isSignLock = colProperty.isSignLock ? true : false;
|
|
18628
18670
|
}
|
|
18629
18671
|
},
|
|
18630
18672
|
methods: {
|
|
@@ -18749,7 +18791,8 @@ var getCellNode = __webpack_require__(5986);
|
|
|
18749
18791
|
align: this.align,
|
|
18750
18792
|
width: this.width,
|
|
18751
18793
|
isSpecifyWidth: this.isSpecifyWidth,
|
|
18752
|
-
customProperties: this.customProperties
|
|
18794
|
+
customProperties: this.customProperties,
|
|
18795
|
+
isSignLock: this.isSignLock
|
|
18753
18796
|
};
|
|
18754
18797
|
Object.keys(params).forEach(function (key) {
|
|
18755
18798
|
if (JSON.stringify(_this2[key]) !== JSON.stringify(_this2.defaultColProperty[key])) {
|
|
@@ -18771,10 +18814,10 @@ var getCellNode = __webpack_require__(5986);
|
|
|
18771
18814
|
});
|
|
18772
18815
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=script&lang=js&
|
|
18773
18816
|
/* harmony default export */ var table_TableColPropertyvue_type_script_lang_js_ = (TableColPropertyvue_type_script_lang_js_);
|
|
18774
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableColProperty.vue?vue&type=style&index=0&id=
|
|
18817
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableColProperty.vue?vue&type=style&index=0&id=9ef504d2&prod&lang=less&
|
|
18775
18818
|
// extracted by mini-css-extract-plugin
|
|
18776
18819
|
|
|
18777
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=style&index=0&id=
|
|
18820
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=style&index=0&id=9ef504d2&prod&lang=less&
|
|
18778
18821
|
|
|
18779
18822
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
18780
18823
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -40121,7 +40164,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40121
40164
|
key: "deleteTextBeforePath",
|
|
40122
40165
|
value: function () {
|
|
40123
40166
|
var _deleteTextBeforePath = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().mark(function _callee(startPath) {
|
|
40124
|
-
var hoEditorFactory, domRange, nodePosition, childIndex, node, ret, topath, arr, tmp, aRange, endPath, _topath, _aRange, isError, prevNode, cellNode, tableNode, tIndex, cIndex, preParaNode, newpath, signUserId, preNode, nextNode, path, signNode, spath, epath, newSignNode, nodesDeleteUndoUnit, pNode;
|
|
40167
|
+
var hoEditorFactory, domRange, nodePosition, childIndex, node, ret, topath, arr, tmp, aRange, endPath, _topath, _aRange, isError, prevNode, cellNode, tableNode, tIndex, cIndex, preParaNode, newpath, signUserId, preNode, nextNode, path, signNode, table, c, colProperty, spath, epath, newSignNode, nodesDeleteUndoUnit, pNode;
|
|
40125
40168
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
|
|
40126
40169
|
while (1) switch (_context.prev = _context.next) {
|
|
40127
40170
|
case 0:
|
|
@@ -40142,18 +40185,18 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40142
40185
|
// )
|
|
40143
40186
|
// );
|
|
40144
40187
|
// hoEditorFactory.undoService.commit();
|
|
40145
|
-
_context.next =
|
|
40188
|
+
_context.next = 126;
|
|
40146
40189
|
break;
|
|
40147
40190
|
case 6:
|
|
40148
40191
|
nodePosition = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
40149
40192
|
childIndex = nodePosition.childIndex;
|
|
40150
40193
|
node = nodePosition.node;
|
|
40151
40194
|
if (!node) {
|
|
40152
|
-
_context.next =
|
|
40195
|
+
_context.next = 126;
|
|
40153
40196
|
break;
|
|
40154
40197
|
}
|
|
40155
40198
|
if (!domRange.isEmpty) {
|
|
40156
|
-
_context.next =
|
|
40199
|
+
_context.next = 126;
|
|
40157
40200
|
break;
|
|
40158
40201
|
}
|
|
40159
40202
|
if (!(node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R)) {
|
|
@@ -40209,7 +40252,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40209
40252
|
aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_32__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, topath).normalize();
|
|
40210
40253
|
this.deleteRange(aRange, true);
|
|
40211
40254
|
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_32__/* .DomRange */ .a(this._hoEditorFactoryID, topath, topath);
|
|
40212
|
-
_context.next =
|
|
40255
|
+
_context.next = 126;
|
|
40213
40256
|
break;
|
|
40214
40257
|
case 36:
|
|
40215
40258
|
if (!(node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j)) {
|
|
@@ -40261,7 +40304,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40261
40304
|
// )
|
|
40262
40305
|
// );
|
|
40263
40306
|
// hoEditorFactory.undoService.commit();
|
|
40264
|
-
_context.next =
|
|
40307
|
+
_context.next = 126;
|
|
40265
40308
|
break;
|
|
40266
40309
|
case 56:
|
|
40267
40310
|
if (!(node instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_31__/* .ParagraphNode */ .C)) {
|
|
@@ -40348,13 +40391,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40348
40391
|
return _context.abrupt("return");
|
|
40349
40392
|
case 98:
|
|
40350
40393
|
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N)) {
|
|
40351
|
-
_context.next =
|
|
40394
|
+
_context.next = 121;
|
|
40352
40395
|
break;
|
|
40353
40396
|
}
|
|
40354
40397
|
preNode = node.previousLeaf();
|
|
40355
40398
|
nextNode = node.nextLeaf();
|
|
40356
40399
|
if (!((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N) && !(nextNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N))) {
|
|
40357
|
-
_context.next =
|
|
40400
|
+
_context.next = 110;
|
|
40358
40401
|
break;
|
|
40359
40402
|
}
|
|
40360
40403
|
path = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
@@ -40363,10 +40406,22 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40363
40406
|
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
40364
40407
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, signNode));
|
|
40365
40408
|
hoEditorFactory.undoService.commit();
|
|
40409
|
+
if (node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_58__/* .CellNode */ .D) {
|
|
40410
|
+
table = node.parentNode.table;
|
|
40411
|
+
if (table.tableProperty.isSignLock && table.tableProperty.isLock) {
|
|
40412
|
+
table.tableProperty.isLock = false;
|
|
40413
|
+
} else {
|
|
40414
|
+
c = node.parentNode.row.indexOf(node.parentNode);
|
|
40415
|
+
colProperty = table.colInfos[c].colProperty;
|
|
40416
|
+
if (colProperty.isSignLock && colProperty.isLock) {
|
|
40417
|
+
colProperty.isLock = false;
|
|
40418
|
+
}
|
|
40419
|
+
}
|
|
40420
|
+
}
|
|
40366
40421
|
return _context.abrupt("return");
|
|
40367
|
-
case
|
|
40422
|
+
case 110:
|
|
40368
40423
|
if (!(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N)) {
|
|
40369
|
-
_context.next =
|
|
40424
|
+
_context.next = 121;
|
|
40370
40425
|
break;
|
|
40371
40426
|
}
|
|
40372
40427
|
spath = "";
|
|
@@ -40388,7 +40443,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40388
40443
|
}
|
|
40389
40444
|
hoEditorFactory.undoService.commit();
|
|
40390
40445
|
return _context.abrupt("return");
|
|
40391
|
-
case
|
|
40446
|
+
case 121:
|
|
40392
40447
|
pNode = node.parentNode;
|
|
40393
40448
|
hoEditorFactory.undoService.begin();
|
|
40394
40449
|
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
@@ -40396,7 +40451,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40396
40451
|
if (pNode && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_47__/* .TextInputFieldNode */ .re && pNode.childNodes.length === 2) {
|
|
40397
40452
|
this.resetEmptyInputFieldNode(hoEditorFactory, pNode);
|
|
40398
40453
|
}
|
|
40399
|
-
case
|
|
40454
|
+
case 126:
|
|
40400
40455
|
case "end":
|
|
40401
40456
|
return _context.stop();
|
|
40402
40457
|
}
|
|
@@ -42196,6 +42251,33 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42196
42251
|
} else {
|
|
42197
42252
|
var nodesMap = object.obj1;
|
|
42198
42253
|
var indexsMap = object.obj2;
|
|
42254
|
+
var temp = ""; //临时变量
|
|
42255
|
+
var flag = true; //是否交换的标志
|
|
42256
|
+
for (var i = 1; i < indexsMap.size; i++) {
|
|
42257
|
+
//表示趟数,一共 arr.length-1 次
|
|
42258
|
+
// 每次遍历标志位都要先置为false,才能判断后面的元素是否发生了交换
|
|
42259
|
+
flag = true;
|
|
42260
|
+
for (var j = indexsMap.size; j > i; j--) {
|
|
42261
|
+
//选出该趟排序的最大值往后移动
|
|
42262
|
+
var val2 = indexsMap.get(j);
|
|
42263
|
+
var paraIndex2 = val2.split("|")[0];
|
|
42264
|
+
var textCount2 = parseInt(val2.split("|")[1]);
|
|
42265
|
+
var strIndex2 = parseInt(val2.split("|")[2]);
|
|
42266
|
+
var val3 = indexsMap.get(j - 1);
|
|
42267
|
+
var paraIndex3 = val3.split("|")[0];
|
|
42268
|
+
var textCount3 = parseInt(val3.split("|")[1]);
|
|
42269
|
+
var strIndex3 = parseInt(val3.split("|")[2]);
|
|
42270
|
+
if (paraIndex2 === paraIndex3 && (textCount3 < textCount2 || textCount2 === textCount3 && strIndex3 < strIndex2)) {
|
|
42271
|
+
temp = val2;
|
|
42272
|
+
indexsMap.set(j, indexsMap.get(j - 1));
|
|
42273
|
+
indexsMap.set(j - 1, temp);
|
|
42274
|
+
flag = false; //只要有发生了交换,flag就置为true
|
|
42275
|
+
continue;
|
|
42276
|
+
}
|
|
42277
|
+
}
|
|
42278
|
+
// 判断标志位是否为false,如果为false,说明后面的元素已经有序,就直接return
|
|
42279
|
+
if (flag) break;
|
|
42280
|
+
}
|
|
42199
42281
|
var _iterator = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(indexsMap.values()),
|
|
42200
42282
|
_step;
|
|
42201
42283
|
try {
|
|
@@ -43156,6 +43238,49 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43156
43238
|
hoeditorfactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, prevNodePath, textNode));
|
|
43157
43239
|
hoeditorfactory.undoService.commit();
|
|
43158
43240
|
}
|
|
43241
|
+
}, {
|
|
43242
|
+
key: "signLockCheck",
|
|
43243
|
+
value: function signLockCheck(cellNode) {
|
|
43244
|
+
var table = cellNode.table;
|
|
43245
|
+
var mark = true;
|
|
43246
|
+
var loopValid = function loopValid(type, c) {
|
|
43247
|
+
var _loop = function _loop() {
|
|
43248
|
+
var cell = table.childNodes[i];
|
|
43249
|
+
var loopCell = function loopCell() {
|
|
43250
|
+
for (var j = 1; j < cell.childNodes.length; j++) {
|
|
43251
|
+
var anode = cell.childNodes[j];
|
|
43252
|
+
if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N && anode.imgSrc == "" && anode.fingerPrintSrc == "") {
|
|
43253
|
+
mark = false;
|
|
43254
|
+
break;
|
|
43255
|
+
}
|
|
43256
|
+
}
|
|
43257
|
+
};
|
|
43258
|
+
if (type === 1) {
|
|
43259
|
+
loopCell();
|
|
43260
|
+
}
|
|
43261
|
+
if (type === 2) {
|
|
43262
|
+
var col = cell.row.indexOf(cell);
|
|
43263
|
+
if (col === c) {
|
|
43264
|
+
loopCell();
|
|
43265
|
+
}
|
|
43266
|
+
}
|
|
43267
|
+
if (!mark) return 1; // break
|
|
43268
|
+
};
|
|
43269
|
+
for (var i = 0; i < table.childNodes.length; i++) {
|
|
43270
|
+
if (_loop()) break;
|
|
43271
|
+
}
|
|
43272
|
+
};
|
|
43273
|
+
if (table.tableProperty.isSignLock) {
|
|
43274
|
+
loopValid(1, -1);
|
|
43275
|
+
table.tableProperty.isLock = mark;
|
|
43276
|
+
} else {
|
|
43277
|
+
var c = cellNode.row.indexOf(cellNode);
|
|
43278
|
+
if (table.colInfos[c].colProperty.isSignLock) {
|
|
43279
|
+
loopValid(2, c);
|
|
43280
|
+
table.colInfos[c].colProperty.isLock = mark;
|
|
43281
|
+
}
|
|
43282
|
+
}
|
|
43283
|
+
}
|
|
43159
43284
|
/**
|
|
43160
43285
|
* 插入空签名
|
|
43161
43286
|
* @param name 签名名称(空签名的初始化显示)
|
|
@@ -43206,6 +43331,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43206
43331
|
hoEditorFactory.undoService.begin();
|
|
43207
43332
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
43208
43333
|
hoEditorFactory.undoService.commit();
|
|
43334
|
+
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_58__/* .CellNode */ .D) {
|
|
43335
|
+
this.signLockCheck(parentNode);
|
|
43336
|
+
}
|
|
43209
43337
|
}
|
|
43210
43338
|
/**
|
|
43211
43339
|
* 更新签名
|
|
@@ -43246,6 +43374,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43246
43374
|
// }
|
|
43247
43375
|
//node.connectMode = "/";
|
|
43248
43376
|
hoEditorFactory.docTree.change(changeEvent);
|
|
43377
|
+
if (node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_58__/* .CellNode */ .D) {
|
|
43378
|
+
this.signLockCheck(node.parentNode);
|
|
43379
|
+
}
|
|
43249
43380
|
} else {
|
|
43250
43381
|
//第二次更新签名
|
|
43251
43382
|
if (node.connectMode === "换行") {
|
|
@@ -47395,13 +47526,13 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
47395
47526
|
/*
|
|
47396
47527
|
* @Author: your name
|
|
47397
47528
|
* @Date: 2020-12-24 16:01:16
|
|
47398
|
-
* @LastEditTime: 2023-08-
|
|
47529
|
+
* @LastEditTime: 2023-08-23 15:35:57
|
|
47399
47530
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
47400
47531
|
* @Description: In User Settings Edit
|
|
47401
47532
|
* @FilePath: \hoeditor-web\src\editor\dom\TableProperty.ts
|
|
47402
47533
|
*/
|
|
47403
47534
|
var TableProperty = /*#__PURE__*/function () {
|
|
47404
|
-
|
|
47535
|
+
//是否锁定
|
|
47405
47536
|
function TableProperty(objectValues) {
|
|
47406
47537
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, TableProperty);
|
|
47407
47538
|
//private _id!: string; //编号
|
|
@@ -47434,6 +47565,8 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
47434
47565
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_isUsePopEdit", false);
|
|
47435
47566
|
//是否启用表单弹框编辑
|
|
47436
47567
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_isSignLock", false);
|
|
47568
|
+
//签名后是否锁定
|
|
47569
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_isLock", false);
|
|
47437
47570
|
if (objectValues !== "") {
|
|
47438
47571
|
var valuesObj = eval('(' + objectValues + ')');
|
|
47439
47572
|
var assignvalue = function assignvalue(target, source) {
|
|
@@ -47586,6 +47719,14 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
47586
47719
|
set: function set(value) {
|
|
47587
47720
|
this._isSignLock = value;
|
|
47588
47721
|
}
|
|
47722
|
+
}, {
|
|
47723
|
+
key: "isLock",
|
|
47724
|
+
get: function get() {
|
|
47725
|
+
return this._isLock;
|
|
47726
|
+
},
|
|
47727
|
+
set: function set(value) {
|
|
47728
|
+
this._isLock = value;
|
|
47729
|
+
}
|
|
47589
47730
|
}]);
|
|
47590
47731
|
return TableProperty;
|
|
47591
47732
|
}();
|
|
@@ -48003,7 +48144,7 @@ var EditorProperty;
|
|
|
48003
48144
|
EditorProperty[EditorProperty["Textarea"] = 5] = "Textarea";
|
|
48004
48145
|
})(EditorProperty || (EditorProperty = {})); //编辑器属性 {无,下拉列表,日期,数值,签名,输入域}
|
|
48005
48146
|
var ColProperty = /*#__PURE__*/function () {
|
|
48006
|
-
|
|
48147
|
+
//是否锁定
|
|
48007
48148
|
function ColProperty(objectValues //, table: TableNode
|
|
48008
48149
|
) {
|
|
48009
48150
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, ColProperty);
|
|
@@ -48022,6 +48163,10 @@ var ColProperty = /*#__PURE__*/function () {
|
|
|
48022
48163
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_signProperty", void 0);
|
|
48023
48164
|
//签名属性
|
|
48024
48165
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_customProperties", []);
|
|
48166
|
+
//自定义属性
|
|
48167
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_isSignLock", false);
|
|
48168
|
+
//签名后是否锁定
|
|
48169
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_isLock", false);
|
|
48025
48170
|
if (objectValues !== "") {
|
|
48026
48171
|
var valuesObj = eval('(' + objectValues + ')');
|
|
48027
48172
|
var assignvalue = function assignvalue(target, source) {
|
|
@@ -48132,6 +48277,22 @@ var ColProperty = /*#__PURE__*/function () {
|
|
|
48132
48277
|
set: function set(value) {
|
|
48133
48278
|
this._customProperties = value;
|
|
48134
48279
|
}
|
|
48280
|
+
}, {
|
|
48281
|
+
key: "isSignLock",
|
|
48282
|
+
get: function get() {
|
|
48283
|
+
return this._isSignLock;
|
|
48284
|
+
},
|
|
48285
|
+
set: function set(value) {
|
|
48286
|
+
this._isSignLock = value;
|
|
48287
|
+
}
|
|
48288
|
+
}, {
|
|
48289
|
+
key: "isLock",
|
|
48290
|
+
get: function get() {
|
|
48291
|
+
return this._isLock;
|
|
48292
|
+
},
|
|
48293
|
+
set: function set(value) {
|
|
48294
|
+
this._isLock = value;
|
|
48295
|
+
}
|
|
48135
48296
|
}]);
|
|
48136
48297
|
return ColProperty;
|
|
48137
48298
|
}();
|
|
@@ -53114,6 +53275,8 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
53114
53275
|
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
|
|
53115
53276
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_isReadOnly", false);
|
|
53116
53277
|
//是否只读
|
|
53278
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_notSelectTime", false);
|
|
53279
|
+
// 是否禁止选择大于今天的日期
|
|
53117
53280
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_controlStyle", "");
|
|
53118
53281
|
_this._styleIndex = styleIndex;
|
|
53119
53282
|
_this.remark = "";
|
|
@@ -53220,6 +53383,16 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
53220
53383
|
this._isReadOnly = value;
|
|
53221
53384
|
}
|
|
53222
53385
|
}
|
|
53386
|
+
}, {
|
|
53387
|
+
key: "notSelectTime",
|
|
53388
|
+
get: function get() {
|
|
53389
|
+
return this._notSelectTime;
|
|
53390
|
+
},
|
|
53391
|
+
set: function set(value) {
|
|
53392
|
+
if (this._notSelectTime !== value) {
|
|
53393
|
+
this._notSelectTime = value;
|
|
53394
|
+
}
|
|
53395
|
+
}
|
|
53223
53396
|
}, {
|
|
53224
53397
|
key: "controlStyle",
|
|
53225
53398
|
get: function get() {
|
|
@@ -53364,6 +53537,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
53364
53537
|
readType: this.readType,
|
|
53365
53538
|
customProperty: this.customProperty,
|
|
53366
53539
|
notReplaceElement: this.notReplaceElement,
|
|
53540
|
+
notSelectTime: this.notSelectTime,
|
|
53367
53541
|
remark: this.remark
|
|
53368
53542
|
};
|
|
53369
53543
|
}
|
|
@@ -53393,6 +53567,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
53393
53567
|
readType: this.readType,
|
|
53394
53568
|
customProperty: this.customProperty,
|
|
53395
53569
|
notReplaceElement: this.notReplaceElement,
|
|
53570
|
+
notSelectTime: this.notSelectTime,
|
|
53396
53571
|
remark: this.remark
|
|
53397
53572
|
};
|
|
53398
53573
|
var paga = {
|
|
@@ -53421,6 +53596,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
53421
53596
|
json.isSynchro = !json.isSynchro ? false : json.isSynchro;
|
|
53422
53597
|
json.isAllowDelete = !json.isAllowDelete ? false : json.isAllowDelete;
|
|
53423
53598
|
json.isReadOnly = !json.isReadOnly ? false : json.isReadOnly;
|
|
53599
|
+
json.notSelectTime = !json.notSelectTime ? false : json.notSelectTime;
|
|
53424
53600
|
json.type = parseInt(_ControlNode__WEBPACK_IMPORTED_MODULE_25__/* .ControlType */ .C[json.type]);
|
|
53425
53601
|
json.controlStyle = json.controlStyle.replace("hh", "HH");
|
|
53426
53602
|
if (json.controlStyle !== "yyyy-MM-dd HH:mm:ss" && json.controlStyle !== "") {
|
|
@@ -64262,25 +64438,26 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64262
64438
|
cols = pto.col;
|
|
64263
64439
|
if (to.colSpan > 1) {
|
|
64264
64440
|
cols = pto.col + to.colSpan - 1;
|
|
64265
|
-
} else {
|
|
64266
|
-
|
|
64267
|
-
|
|
64268
|
-
|
|
64269
|
-
|
|
64270
|
-
|
|
64271
|
-
|
|
64272
|
-
|
|
64273
|
-
|
|
64274
|
-
|
|
64275
|
-
|
|
64276
|
-
|
|
64277
|
-
|
|
64278
|
-
|
|
64279
|
-
|
|
64280
|
-
|
|
64281
|
-
|
|
64282
|
-
|
|
64283
|
-
}
|
|
64441
|
+
} //else {
|
|
64442
|
+
// const tableProperty = {
|
|
64443
|
+
// canAddRow: this.tableProperty.canAddRow,
|
|
64444
|
+
// canAddCol: this.tableProperty.canAddCol,
|
|
64445
|
+
// canAdjustRowHeight: this.tableProperty.canAdjustRowHeight,
|
|
64446
|
+
// canAdjustRowWidth: this.tableProperty.canAdjustRowWidth,
|
|
64447
|
+
// canDeleteRow: this.tableProperty.canDeleteRow,
|
|
64448
|
+
// canDeleteTable: this.tableProperty.canDeleteTable,
|
|
64449
|
+
// continuePrintBorders: this.tableProperty.continuePrintBorders,
|
|
64450
|
+
// customProperties: this.tableProperty.customProperties,
|
|
64451
|
+
// layoutFullLine: this.tableProperty.layoutFullLine,
|
|
64452
|
+
// tightLineSpace: this.tableProperty.tightLineSpace,
|
|
64453
|
+
// isAutoChangeLine: this.tableProperty.isAutoChangeLine,
|
|
64454
|
+
// autoLineHeight: this.tableProperty.autoLineHeight,
|
|
64455
|
+
// fixedOnePage: this.tableProperty.fixedOnePage,
|
|
64456
|
+
// isUsePopEdit: this.tableProperty.isUsePopEdit,
|
|
64457
|
+
// isSignLock: this.tableProperty.isSignLock,
|
|
64458
|
+
// isLock: this.tableProperty.isLock
|
|
64459
|
+
// };
|
|
64460
|
+
//}
|
|
64284
64461
|
}
|
|
64285
64462
|
//for (let i = pfrom.row; i <= this.rowInfos.length-1; i++) {
|
|
64286
64463
|
for (var i = pfrom.row; i <= rows; i++) {
|
|
@@ -64338,7 +64515,9 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64338
64515
|
dateTimeProperty: "",
|
|
64339
64516
|
numberProperty: "",
|
|
64340
64517
|
signProperty: "",
|
|
64341
|
-
customProperties: ""
|
|
64518
|
+
customProperties: "",
|
|
64519
|
+
isSignLock: false,
|
|
64520
|
+
isLock: false
|
|
64342
64521
|
};
|
|
64343
64522
|
var defaultColPropJson = JSON.parse(JSON.stringify(defaultColProp));
|
|
64344
64523
|
//处理列宽
|
|
@@ -64359,6 +64538,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64359
64538
|
numberProperty: colInfo.colProperty.numberProperty,
|
|
64360
64539
|
signProperty: colInfo.colProperty.signProperty,
|
|
64361
64540
|
//customProperties: colInfo.colProperty.customProperties
|
|
64541
|
+
isSignLock: colInfo.colProperty.isSignLock,
|
|
64542
|
+
isLock: colInfo.colProperty.isLock,
|
|
64362
64543
|
customProperties: _customProperties2
|
|
64363
64544
|
};
|
|
64364
64545
|
var colPropertyJson = JSON.parse(JSON.stringify(colProperty));
|
|
@@ -64524,7 +64705,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64524
64705
|
autoLineHeight: this.tableProperty.autoLineHeight,
|
|
64525
64706
|
fixedOnePage: this.tableProperty.fixedOnePage,
|
|
64526
64707
|
isUsePopEdit: this.tableProperty.isUsePopEdit,
|
|
64527
|
-
isSignLock: this.tableProperty.isSignLock
|
|
64708
|
+
isSignLock: this.tableProperty.isSignLock,
|
|
64709
|
+
isLock: this.tableProperty.isLock
|
|
64528
64710
|
};
|
|
64529
64711
|
var retJson = {
|
|
64530
64712
|
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_28__/* .NodeType */ .Jq[this.nodeType],
|
|
@@ -65205,6 +65387,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65205
65387
|
tableProperty.autoLineHeight = tableProperty["autoLineHeight"] || 0.53;
|
|
65206
65388
|
tableProperty.autoLineHeightPx = _editor_utils_UnitConvert__WEBPACK_IMPORTED_MODULE_40__/* .UnitConvert */ .P.instance.mmConversionPx(parseFloat(tableProperty.autoLineHeight) * 10, false);
|
|
65207
65389
|
tableProperty.isSignLock = tableProperty["isSignLock"] || false;
|
|
65390
|
+
tableProperty.isLock = tableProperty["isLock"] || false;
|
|
65208
65391
|
// console.log("json2node", 1);
|
|
65209
65392
|
var tableNode = new TableNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, Number(json.rowCount), Number(json.colCount), tableProperty);
|
|
65210
65393
|
// console.log("json2node", 2);
|
|
@@ -65323,6 +65506,12 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65323
65506
|
if (colProperty.customProperties) {
|
|
65324
65507
|
tableNode.colInfos[_i6].colProperty.customProperties = Array.isArray(colProperty.customProperties.customProperty) ? colProperty.customProperties.customProperty : Array(colProperty.customProperties.customProperty);
|
|
65325
65508
|
}
|
|
65509
|
+
if (colProperty.isSignLock) {
|
|
65510
|
+
tableNode.colInfos[_i6].colProperty.isSignLock = colProperty.isSignLock;
|
|
65511
|
+
}
|
|
65512
|
+
if (colProperty.isLock) {
|
|
65513
|
+
tableNode.colInfos[_i6].colProperty.isLock = colProperty.isLock;
|
|
65514
|
+
}
|
|
65326
65515
|
}
|
|
65327
65516
|
}
|
|
65328
65517
|
// console.log("json2node", 5);
|
|
@@ -65463,16 +65652,15 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65463
65652
|
"use strict";
|
|
65464
65653
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
65465
65654
|
/* harmony export */ OL: function() { return /* binding */ DownListProperty; },
|
|
65466
|
-
/* harmony export */ ZX: function() { return /* binding */ DataFormat; },
|
|
65467
65655
|
/* harmony export */ Zi: function() { return /* binding */ InputFieldType; },
|
|
65468
65656
|
/* harmony export */ hc: function() { return /* binding */ ExecuteStatus; },
|
|
65469
65657
|
/* harmony export */ mK: function() { return /* binding */ ReadOnlyStatus; },
|
|
65470
65658
|
/* harmony export */ re: function() { return /* binding */ TextInputFieldNode; },
|
|
65471
65659
|
/* harmony export */ wz: function() { return /* binding */ DataVerifyFormat; }
|
|
65472
65660
|
/* harmony export */ });
|
|
65473
|
-
/* unused harmony exports SpecialFormat, BandDataSource */
|
|
65661
|
+
/* unused harmony exports SpecialFormat, DataFormat, BandDataSource */
|
|
65474
65662
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94310);
|
|
65475
|
-
/* harmony import */ var
|
|
65663
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(40735);
|
|
65476
65664
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61748);
|
|
65477
65665
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80543);
|
|
65478
65666
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(81448);
|
|
@@ -65521,37 +65709,40 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65521
65709
|
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_29__);
|
|
65522
65710
|
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(21703);
|
|
65523
65711
|
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_30__);
|
|
65524
|
-
/* harmony import */ var
|
|
65525
|
-
/* harmony import */ var
|
|
65526
|
-
/* harmony import */ var
|
|
65527
|
-
/* harmony import */ var
|
|
65528
|
-
/* harmony import */ var
|
|
65529
|
-
/* harmony import */ var
|
|
65530
|
-
/* harmony import */ var
|
|
65531
|
-
/* harmony import */ var
|
|
65532
|
-
/* harmony import */ var
|
|
65533
|
-
/* harmony import */ var
|
|
65534
|
-
/* harmony import */ var
|
|
65535
|
-
/* harmony import */ var
|
|
65536
|
-
/* harmony import */ var
|
|
65537
|
-
/* harmony import */ var
|
|
65538
|
-
/* harmony import */ var
|
|
65539
|
-
/* harmony import */ var
|
|
65540
|
-
/* harmony import */ var
|
|
65541
|
-
/* harmony import */ var
|
|
65542
|
-
/* harmony import */ var
|
|
65543
|
-
/* harmony import */ var
|
|
65544
|
-
/* harmony import */ var
|
|
65545
|
-
/* harmony import */ var
|
|
65546
|
-
/* harmony import */ var
|
|
65547
|
-
/* harmony import */ var
|
|
65548
|
-
/* harmony import */ var
|
|
65549
|
-
/* harmony import */ var
|
|
65550
|
-
/* harmony import */ var
|
|
65551
|
-
/* harmony import */ var
|
|
65552
|
-
/* harmony import */ var
|
|
65553
|
-
/* harmony import */ var
|
|
65554
|
-
/* harmony import */ var
|
|
65712
|
+
/* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(68757);
|
|
65713
|
+
/* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_31__);
|
|
65714
|
+
/* harmony import */ var _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(96635);
|
|
65715
|
+
/* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(51760);
|
|
65716
|
+
/* harmony import */ var _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(53901);
|
|
65717
|
+
/* harmony import */ var _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(48541);
|
|
65718
|
+
/* harmony import */ var _editor_events_Exception__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(8277);
|
|
65719
|
+
/* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(2613);
|
|
65720
|
+
/* harmony import */ var _editor_undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(64465);
|
|
65721
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(74089);
|
|
65722
|
+
/* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(32629);
|
|
65723
|
+
/* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(29899);
|
|
65724
|
+
/* harmony import */ var _DomRange__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(94639);
|
|
65725
|
+
/* harmony import */ var _NodePosition__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(42921);
|
|
65726
|
+
/* harmony import */ var _BaseCombineNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(4938);
|
|
65727
|
+
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(62358);
|
|
65728
|
+
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(91105);
|
|
65729
|
+
/* harmony import */ var _DateTimeNode__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(92501);
|
|
65730
|
+
/* harmony import */ var _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(47088);
|
|
65731
|
+
/* harmony import */ var _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(59621);
|
|
65732
|
+
/* harmony import */ var _MarkNode__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(57727);
|
|
65733
|
+
/* harmony import */ var _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(80177);
|
|
65734
|
+
/* harmony import */ var _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(45836);
|
|
65735
|
+
/* harmony import */ var _ParagraphNode__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(67945);
|
|
65736
|
+
/* harmony import */ var _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(13307);
|
|
65737
|
+
/* harmony import */ var _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(11429);
|
|
65738
|
+
/* harmony import */ var _PupilMapNode__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(19995);
|
|
65739
|
+
/* harmony import */ var _SignNode__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(24701);
|
|
65740
|
+
/* harmony import */ var _TableFormula__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(90832);
|
|
65741
|
+
/* harmony import */ var _TableNode__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(5010);
|
|
65742
|
+
/* harmony import */ var _TextNode__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(27198);
|
|
65743
|
+
/* harmony import */ var _QrcodeNode__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(12659);
|
|
65744
|
+
/* harmony import */ var _RareCharNode__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(34910);
|
|
65745
|
+
|
|
65555
65746
|
|
|
65556
65747
|
|
|
65557
65748
|
|
|
@@ -65587,7 +65778,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65587
65778
|
/*
|
|
65588
65779
|
* @Author: your name
|
|
65589
65780
|
* @Date: 2020-11-03 15:17:54
|
|
65590
|
-
* @LastEditTime: 2023-08-
|
|
65781
|
+
* @LastEditTime: 2023-08-24 11:04:19
|
|
65591
65782
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
65592
65783
|
* @Description: In User Settings Edit
|
|
65593
65784
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -66044,8 +66235,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66044
66235
|
//private _importStyle!: ImportStyle;//输入样式
|
|
66045
66236
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["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), "_downListProperty", void 0);
|
|
66046
66237
|
//下拉列表属性
|
|
66047
|
-
|
|
66048
|
-
//数据校验格式
|
|
66238
|
+
//private _dataVerifyFormat!: DataVerifyFormat; //数据校验格式
|
|
66049
66239
|
//private _bandDataSource!: BandDataSource; //绑定数据源
|
|
66050
66240
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["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), "_customProperty", void 0);
|
|
66051
66241
|
//自定义属性
|
|
@@ -66080,7 +66270,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66080
66270
|
_this._childNodes2 = [];
|
|
66081
66271
|
//this._importStyle = new ImportStyle();
|
|
66082
66272
|
_this._downListProperty = new DownListProperty();
|
|
66083
|
-
|
|
66273
|
+
//this._dataVerifyFormat = new DataVerifyFormat();
|
|
66084
66274
|
//this._bandDataSource = new BandDataSource();
|
|
66085
66275
|
_this._alignWithBlocked = false;
|
|
66086
66276
|
_this._customProperty = new Object();
|
|
@@ -66098,7 +66288,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66098
66288
|
}
|
|
66099
66289
|
}
|
|
66100
66290
|
if (!_this._dataId) {
|
|
66101
|
-
_this._dataId =
|
|
66291
|
+
_this._dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_39__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID('Field');
|
|
66102
66292
|
}
|
|
66103
66293
|
_this.node2DrawNodeRange(0, _this.text.length - 1);
|
|
66104
66294
|
//FIXME:正式使用时下面事件触发要注释掉,这里会在节点被删除后被卡死
|
|
@@ -66167,8 +66357,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66167
66357
|
}, {
|
|
66168
66358
|
key: "mouseEvent",
|
|
66169
66359
|
value: function mouseEvent(event) {
|
|
66170
|
-
if (event.type ==
|
|
66171
|
-
if (event.type ==
|
|
66360
|
+
if (event.type == _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_35__/* .DmouseEventType */ .p.detOver) this.activity(true);
|
|
66361
|
+
if (event.type == _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_35__/* .DmouseEventType */ .p.detOut) this.activity(false);
|
|
66172
66362
|
}
|
|
66173
66363
|
// public activity(active: boolean) {
|
|
66174
66364
|
// if (active) {
|
|
@@ -66387,16 +66577,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66387
66577
|
this._downListProperty = value;
|
|
66388
66578
|
}
|
|
66389
66579
|
}
|
|
66390
|
-
|
|
66391
|
-
|
|
66392
|
-
|
|
66393
|
-
|
|
66394
|
-
|
|
66395
|
-
|
|
66396
|
-
|
|
66397
|
-
|
|
66398
|
-
}
|
|
66399
|
-
}
|
|
66580
|
+
// get dataVerifyFormat(): DataVerifyFormat {
|
|
66581
|
+
// return this._dataVerifyFormat;
|
|
66582
|
+
// }
|
|
66583
|
+
// set dataVerifyFormat(value: DataVerifyFormat) {
|
|
66584
|
+
// if (this._dataVerifyFormat !== value) {
|
|
66585
|
+
// this._dataVerifyFormat = value;
|
|
66586
|
+
// }
|
|
66587
|
+
// }
|
|
66400
66588
|
// get bandDataSource(): BandDataSource {
|
|
66401
66589
|
// return this._bandDataSource;
|
|
66402
66590
|
// }
|
|
@@ -66527,7 +66715,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66527
66715
|
} else {
|
|
66528
66716
|
for (var i = 0; i < this.childNodes.length; i++) {
|
|
66529
66717
|
var child = this.childNodes[i];
|
|
66530
|
-
if (child instanceof
|
|
66718
|
+
if (child instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j && child.MarkNodeType == 1) {
|
|
66531
66719
|
return child;
|
|
66532
66720
|
}
|
|
66533
66721
|
}
|
|
@@ -66542,7 +66730,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66542
66730
|
key: "update",
|
|
66543
66731
|
value: function update(mode) {
|
|
66544
66732
|
var _this2 = this;
|
|
66545
|
-
var hoEditorFactory =
|
|
66733
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_39__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
66546
66734
|
/**
|
|
66547
66735
|
* 内容为空,显示一个点位符
|
|
66548
66736
|
*/
|
|
@@ -66564,9 +66752,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66564
66752
|
case 0:
|
|
66565
66753
|
//由于在表格在放置输入域后会在绘制时触发输入域重绘,此时表格还未放置于舞台,造成报错,故暂时禁用此函数
|
|
66566
66754
|
//熊跃龙 2021-03-19
|
|
66567
|
-
changeEvent = new
|
|
66755
|
+
changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_37__/* .NodeChangeEvent */ .G(_this2.hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_40__/* .DocAction */ .gk.daModifyStyle, path1 || startPath, path2 || endPath);
|
|
66568
66756
|
changeEvent.oldEndPath = path2 || endPath;
|
|
66569
|
-
changeEvent.oldDrawLines = new
|
|
66757
|
+
changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_34__/* .SelectRange */ .E(_this2.hoEditorFactoryID).getRangeDrawLines(path1 || startPath, path2 || endPath, true);
|
|
66570
66758
|
_context.next = 5;
|
|
66571
66759
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
66572
66760
|
case 5:
|
|
@@ -66585,11 +66773,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66585
66773
|
}();
|
|
66586
66774
|
if (mode == 0) {
|
|
66587
66775
|
var prev = first.previousLeaf();
|
|
66588
|
-
if (!prev) throw
|
|
66776
|
+
if (!prev) throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_36__/* .Exception */ .P.NodeNotFound();
|
|
66589
66777
|
refresh(hoEditorFactory.docTree.getNodeLastPath(prev), hoEditorFactory.docTree.getNodeLastPath(last));
|
|
66590
66778
|
setTimeout(function () {
|
|
66591
66779
|
prev = first.previousLeaf();
|
|
66592
|
-
if (!prev) throw
|
|
66780
|
+
if (!prev) throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_36__/* .Exception */ .P.NodeNotFound();
|
|
66593
66781
|
refresh(hoEditorFactory.docTree.getNodeLastPath(prev), hoEditorFactory.docTree.getNodeLastPath(last));
|
|
66594
66782
|
}, 200);
|
|
66595
66783
|
return;
|
|
@@ -66635,7 +66823,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66635
66823
|
// } else
|
|
66636
66824
|
if (this.StartMarkNode.drawNodes.length > 0 && this.EndMarkNode.drawNodes.length > 0) {
|
|
66637
66825
|
//不空,还原
|
|
66638
|
-
var bInSameLine =
|
|
66826
|
+
var bInSameLine = _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_32__/* .DrawLine */ .a.inSameLine(this.StartMarkNode.drawNodes[0], this.EndMarkNode.drawNodes[0]);
|
|
66639
66827
|
if (fixWidthPix == 0 || !bInSameLine || usedWidth >= maxEmptWidth) {
|
|
66640
66828
|
firthWidth = 0;
|
|
66641
66829
|
lastWidth = 0;
|
|
@@ -66655,7 +66843,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66655
66843
|
last.width = lastWidth;
|
|
66656
66844
|
var _prev = last.previousLeaf();
|
|
66657
66845
|
if (!_prev) {
|
|
66658
|
-
throw
|
|
66846
|
+
throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_36__/* .Exception */ .P.NodeNotFound();
|
|
66659
66847
|
}
|
|
66660
66848
|
startPath = hoEditorFactory.docTree.getNodeLastPath(_prev);
|
|
66661
66849
|
endPath = last.getNodePath();
|
|
@@ -66667,7 +66855,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66667
66855
|
last.width = lastWidth;
|
|
66668
66856
|
var _prev2 = first.previousLeaf();
|
|
66669
66857
|
if (!_prev2) {
|
|
66670
|
-
throw
|
|
66858
|
+
throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_36__/* .Exception */ .P.NodeNotFound();
|
|
66671
66859
|
}
|
|
66672
66860
|
startPath = hoEditorFactory.docTree.getNodeLastPath(_prev2);
|
|
66673
66861
|
endPath = last.getNodePath();
|
|
@@ -66692,8 +66880,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66692
66880
|
var loopChildNodes = function loopChildNodes(node) {
|
|
66693
66881
|
var nodes = node.childNodes.slice(1);
|
|
66694
66882
|
nodes.forEach(function (childNode) {
|
|
66695
|
-
if (childNode instanceof
|
|
66696
|
-
var hoEditorFactory =
|
|
66883
|
+
if (childNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_60__/* .TextNode */ .R) {
|
|
66884
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_39__/* .HOEditorFactorys */ .b.instance().getFactory(_this3.hoEditorFactoryID);
|
|
66697
66885
|
var textStyle = hoEditorFactory.docTree.styles[childNode.styleIndex];
|
|
66698
66886
|
if (!textStyle) {
|
|
66699
66887
|
textStyle = hoEditorFactory.docTree.styles[0];
|
|
@@ -66708,36 +66896,36 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66708
66896
|
text += childNode.text;
|
|
66709
66897
|
}
|
|
66710
66898
|
}
|
|
66711
|
-
} else if (childNode instanceof
|
|
66712
|
-
if (childNode instanceof
|
|
66899
|
+
} else if (childNode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_46__/* .ControlNode */ .w) {
|
|
66900
|
+
if (childNode instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_47__/* .DateTimeNode */ .Z && (isClearValue || childNode.text == childNode.name)) {
|
|
66713
66901
|
text += '';
|
|
66714
66902
|
} else {
|
|
66715
66903
|
text += childNode.text;
|
|
66716
66904
|
}
|
|
66717
|
-
} else if (childNode instanceof
|
|
66905
|
+
} else if (childNode instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_44__/* .BaseCombineNode */ .V) {
|
|
66718
66906
|
loopChildNodes(childNode);
|
|
66719
|
-
} else if (childNode instanceof
|
|
66907
|
+
} else if (childNode instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_53__/* .ParagraphNode */ .C) {
|
|
66720
66908
|
text += '\n';
|
|
66721
|
-
} else if (childNode instanceof
|
|
66909
|
+
} else if (childNode instanceof _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_51__/* .MedicalExpressionNode */ .H) {
|
|
66722
66910
|
var expressJson = JSON.parse('{}');
|
|
66723
66911
|
text += '<MedicalExpress>';
|
|
66724
|
-
if (childNode instanceof
|
|
66912
|
+
if (childNode instanceof _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_52__/* .MenstrualHistoryNode */ .n) {
|
|
66725
66913
|
expressJson.expressStyle = childNode.expressStyle;
|
|
66726
66914
|
expressJson.menseDays = childNode.menseDays;
|
|
66727
66915
|
expressJson.cycleDays = childNode.cycleDays;
|
|
66728
66916
|
expressJson.menarcheAge = childNode.menarcheAge;
|
|
66729
66917
|
expressJson.menoPauseAge = childNode.menoPauseAge;
|
|
66730
|
-
} else if (childNode instanceof
|
|
66918
|
+
} else if (childNode instanceof _PupilMapNode__WEBPACK_IMPORTED_MODULE_56__/* .PupilMapNode */ .v || childNode instanceof _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_49__/* .LightLocationMapNode */ .D || childNode instanceof _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_48__/* .FetalHeartMapNode */ .t) {
|
|
66731
66919
|
expressJson.value1 = childNode.value1;
|
|
66732
66920
|
expressJson.value2 = childNode.value2;
|
|
66733
66921
|
expressJson.value3 = childNode.value3;
|
|
66734
66922
|
expressJson.value4 = childNode.value4;
|
|
66735
66923
|
expressJson.value5 = childNode.value5;
|
|
66736
66924
|
expressJson.value6 = childNode.value6;
|
|
66737
|
-
if (childNode instanceof
|
|
66925
|
+
if (childNode instanceof _PupilMapNode__WEBPACK_IMPORTED_MODULE_56__/* .PupilMapNode */ .v) {
|
|
66738
66926
|
expressJson.expressStyle = 'PupilMapNode';
|
|
66739
66927
|
expressJson.value7 = childNode.value7;
|
|
66740
|
-
} else if (childNode instanceof
|
|
66928
|
+
} else if (childNode instanceof _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_49__/* .LightLocationMapNode */ .D) {
|
|
66741
66929
|
expressJson.expressStyle = 'LightLocationMapNode';
|
|
66742
66930
|
expressJson.value7 = childNode.value7;
|
|
66743
66931
|
expressJson.value8 = childNode.value8;
|
|
@@ -66745,12 +66933,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66745
66933
|
} else {
|
|
66746
66934
|
expressJson.expressStyle = 'FetalHeartMapNode';
|
|
66747
66935
|
}
|
|
66748
|
-
} else if (childNode instanceof
|
|
66749
|
-
if (childNode instanceof
|
|
66936
|
+
} else if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_54__/* .PermanentTeethMapNode */ .f || childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_55__/* .PrimaryTeethMapNode */ .x) {
|
|
66937
|
+
if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_54__/* .PermanentTeethMapNode */ .f) {
|
|
66750
66938
|
expressJson.expressStyle = 'PermanentTeethMapNode';
|
|
66751
66939
|
expressJson.remark = childNode.remark;
|
|
66752
66940
|
}
|
|
66753
|
-
if (childNode instanceof
|
|
66941
|
+
if (childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_55__/* .PrimaryTeethMapNode */ .x) {
|
|
66754
66942
|
expressJson.expressStyle = 'PrimaryTeethMapNode';
|
|
66755
66943
|
}
|
|
66756
66944
|
expressJson.topLeftSelected = childNode.topLeftSelected;
|
|
@@ -66809,7 +66997,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66809
66997
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee2$(_context2) {
|
|
66810
66998
|
while (1) switch (_context2.prev = _context2.next) {
|
|
66811
66999
|
case 0:
|
|
66812
|
-
if (!(text === '' && this.childNodes[1] instanceof
|
|
67000
|
+
if (!(text === '' && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j)) {
|
|
66813
67001
|
_context2.next = 2;
|
|
66814
67002
|
break;
|
|
66815
67003
|
}
|
|
@@ -66826,12 +67014,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66826
67014
|
}
|
|
66827
67015
|
oldValue = this._canModifyContent.valueOf();
|
|
66828
67016
|
this._canModifyContent = true;
|
|
66829
|
-
hoEditorFactory =
|
|
67017
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_39__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
66830
67018
|
startPath = this.StartMarkNode.getNodePath();
|
|
66831
67019
|
endPath = hoEditorFactory.docTree.getNodeLastPath(this.childNodes[this.childNodes.length - 2]);
|
|
66832
|
-
aRange = new
|
|
66833
|
-
if (!(this.childNodes[1] instanceof
|
|
66834
|
-
anodes =
|
|
67020
|
+
aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_42__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath).normalize();
|
|
67021
|
+
if (!(this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j) && this.inputFieldType === 0) {
|
|
67022
|
+
anodes = _DomRange__WEBPACK_IMPORTED_MODULE_42__/* .DomRange */ .a.getSelectDomNodesForDelete(this.hoEditorFactoryID, startPath, endPath);
|
|
66835
67023
|
for (i = 0; i < anodes.length; i++) {
|
|
66836
67024
|
anode = anodes[i];
|
|
66837
67025
|
if (anode instanceof TextInputFieldNode && anode.parentNode === this && anode.isAllowDelete === false) {
|
|
@@ -66847,9 +67035,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66847
67035
|
break;
|
|
66848
67036
|
}
|
|
66849
67037
|
this._childNodes.splice(1, this._childNodes.length - 2);
|
|
66850
|
-
markNode = new
|
|
67038
|
+
markNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntText, this.labelText, hoEditorFactory.docTree.curStyleIndex, _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNodeType */ .q.mtContent);
|
|
66851
67039
|
hoEditorFactory.undoService.begin();
|
|
66852
|
-
hoEditorFactory.undoService.add(new
|
|
67040
|
+
hoEditorFactory.undoService.add(new _editor_undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, markNode));
|
|
66853
67041
|
hoEditorFactory.undoService.commit();
|
|
66854
67042
|
if (this._childNodes2.length === 3) {
|
|
66855
67043
|
this._childNodes2.splice(1, 1);
|
|
@@ -66906,7 +67094,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66906
67094
|
value: function node2DrawNodeRange(startIndex, endIndex) {
|
|
66907
67095
|
this.childNodes.length = 0;
|
|
66908
67096
|
this._childNodes2.length = 0;
|
|
66909
|
-
var hoEditorFactory =
|
|
67097
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_39__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
66910
67098
|
var curStyleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
66911
67099
|
var cbStyle = hoEditorFactory.docTree.styles[curStyleIndex].combineStyle;
|
|
66912
67100
|
var dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
|
|
@@ -66917,17 +67105,17 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66917
67105
|
// if (this.enableGlobalColor) {
|
|
66918
67106
|
// index = astyle.changeStyleString("fontBackColor", "transparent");
|
|
66919
67107
|
// }
|
|
66920
|
-
this.StartMarkNode = new
|
|
67108
|
+
this.StartMarkNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntMark, '|', index, _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNodeType */ .q.mtStart);
|
|
66921
67109
|
this.StartMarkNode.isReadOnly = true;
|
|
66922
|
-
this.StartMarkNode.MarkNodeType =
|
|
66923
|
-
this.EndMarkNode = new
|
|
67110
|
+
this.StartMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNodeType */ .q.mtStart;
|
|
67111
|
+
this.EndMarkNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntMark, ']', index, _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNodeType */ .q.mtEnd);
|
|
66924
67112
|
this.EndMarkNode.isReadOnly = true;
|
|
66925
|
-
this.EndMarkNode.MarkNodeType =
|
|
67113
|
+
this.EndMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNodeType */ .q.mtEnd;
|
|
66926
67114
|
this.StartMarkNode.pair = this.EndMarkNode;
|
|
66927
67115
|
this.EndMarkNode.pair = this.StartMarkNode;
|
|
66928
67116
|
this._childNodes2.push(this.StartMarkNode);
|
|
66929
67117
|
if (this.labelText.length != 0) {
|
|
66930
|
-
this._childNodes2.push(new
|
|
67118
|
+
this._childNodes2.push(new _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntText, this.labelText, index, _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNodeType */ .q.mtContent));
|
|
66931
67119
|
// this._labelNode = new MarkNode(this._rootNodes, this, NodeType.ntText, this.labelText, 0);
|
|
66932
67120
|
// this._childNodes2.push(this._labelNode);
|
|
66933
67121
|
}
|
|
@@ -66938,7 +67126,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66938
67126
|
if (this._childNodes2.length == 3) {
|
|
66939
67127
|
this.childNodes.splice(1, 1);
|
|
66940
67128
|
}
|
|
66941
|
-
this._childNodes.splice(1, 0, new
|
|
67129
|
+
this._childNodes.splice(1, 0, new _TextNode__WEBPACK_IMPORTED_MODULE_60__/* .TextNode */ .R(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntText, this.text, index));
|
|
66942
67130
|
}
|
|
66943
67131
|
}
|
|
66944
67132
|
}, {
|
|
@@ -66971,14 +67159,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66971
67159
|
if (startIndex >= this.getLength()) {
|
|
66972
67160
|
return dline;
|
|
66973
67161
|
}
|
|
66974
|
-
var hoEditorFactory =
|
|
67162
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_39__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
66975
67163
|
var endnode = hoEditorFactory.docTree.findNodePositionByPath(endPath).node;
|
|
66976
67164
|
var isEnd = false;
|
|
66977
67165
|
for (var index = 0; index < this.childNodes.length; index++) {
|
|
66978
67166
|
var value = this.childNodes[index];
|
|
66979
|
-
if (value instanceof
|
|
67167
|
+
if (value instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_53__/* .ParagraphNode */ .C) {
|
|
66980
67168
|
if (aline.paragraphNode !== value) {
|
|
66981
|
-
if (aline instanceof
|
|
67169
|
+
if (aline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_32__/* .DrawLine */ .a) {
|
|
66982
67170
|
aline.fitLines();
|
|
66983
67171
|
aline.updateLineStyle();
|
|
66984
67172
|
}
|
|
@@ -66991,7 +67179,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66991
67179
|
}
|
|
66992
67180
|
paraNode = value;
|
|
66993
67181
|
aline = paraNode.drawlines[0];
|
|
66994
|
-
} else if (value instanceof
|
|
67182
|
+
} else if (value instanceof _TableNode__WEBPACK_IMPORTED_MODULE_59__/* .TableNode */ .Fh) {
|
|
66995
67183
|
value.placeDNodeAfterDrawLine(paraNode, aline, endPath);
|
|
66996
67184
|
aline = value.drawTable;
|
|
66997
67185
|
} else {
|
|
@@ -67002,14 +67190,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67002
67190
|
aline = value.placeDNode2DrawLine(droots, paraNode, aline, start, start + value.getLength() - 1, endPath);
|
|
67003
67191
|
}
|
|
67004
67192
|
var nodePath = hoEditorFactory.docTree.getNodeLastPath(value);
|
|
67005
|
-
var cresult =
|
|
67193
|
+
var cresult = _NodePosition__WEBPACK_IMPORTED_MODULE_43__/* .NodePosition */ .F.treePathCompare(endPath, nodePath);
|
|
67006
67194
|
if (cresult <= 0) {
|
|
67007
67195
|
break;
|
|
67008
67196
|
}
|
|
67009
67197
|
}
|
|
67010
67198
|
aline.fitLines();
|
|
67011
67199
|
aline.updateLineStyle();
|
|
67012
|
-
if (dline === aline && aline instanceof
|
|
67200
|
+
if (dline === aline && aline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_32__/* .DrawLine */ .a) {
|
|
67013
67201
|
this._text = this.getFieldText();
|
|
67014
67202
|
var fixWidthPix = hoEditorFactory.unitConvert.mmConversionPx(this.fixedWidth * 10, true);
|
|
67015
67203
|
var restWidth = aline.dWidth - aline.paragraphNode.combineParagraph.leftMarginPixes - aline.paragraphNode.combineParagraph.rightMarginPixes - this.StartMarkNode.drawNodes[0].x;
|
|
@@ -67054,7 +67242,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67054
67242
|
//this.EndMarkNode.node2DrawNode();
|
|
67055
67243
|
aline = this.EndMarkNode.placeDNode2DrawLine(droots, paraNode, aline, start, start + this.EndMarkNode.getLength() - 1, endPath);
|
|
67056
67244
|
}
|
|
67057
|
-
if (this.hideDuringPrint && !this.isEmpty() && (hoEditorFactory.drawTree.paintStatus ==
|
|
67245
|
+
if (this.hideDuringPrint && !this.isEmpty() && (hoEditorFactory.drawTree.paintStatus == _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_33__/* .PaintState */ .Dh.psPreview || hoEditorFactory.drawTree.paintStatus == _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_33__/* .PaintState */ .Dh.psPrint)) {
|
|
67058
67246
|
var hidden = function hidden(childNodes) {
|
|
67059
67247
|
for (var h = 1; h < childNodes.length - 1; h++) {
|
|
67060
67248
|
var child = childNodes[h];
|
|
@@ -67087,15 +67275,15 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67087
67275
|
}, {
|
|
67088
67276
|
key: "getReadyToEdit",
|
|
67089
67277
|
value: function getReadyToEdit(callback) {
|
|
67090
|
-
var hoEditorFactory =
|
|
67091
|
-
if (!this.canModifyContent && hoEditorFactory.drawTree.paintStatus !==
|
|
67278
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_39__/* .HOEditorFactorys */ .b.instance().getFactory(this.hoEditorFactoryID);
|
|
67279
|
+
if (!this.canModifyContent && hoEditorFactory.drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_33__/* .PaintState */ .Dh.psDesign) {
|
|
67092
67280
|
return [false, ''];
|
|
67093
67281
|
}
|
|
67094
67282
|
var label = this.getLabel();
|
|
67095
67283
|
if (label) {
|
|
67096
67284
|
var prev = label.previousLeaf();
|
|
67097
|
-
if (!prev) throw
|
|
67098
|
-
var path =
|
|
67285
|
+
if (!prev) throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_36__/* .Exception */ .P.NodeNotFound();
|
|
67286
|
+
var path = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_39__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(prev);
|
|
67099
67287
|
if (callback) callback(label);
|
|
67100
67288
|
return [true, path];
|
|
67101
67289
|
}
|
|
@@ -67118,19 +67306,19 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67118
67306
|
value: function getActualWidth() {
|
|
67119
67307
|
var w = 0;
|
|
67120
67308
|
this.childNodes.forEach(function (value) {
|
|
67121
|
-
if (!(value instanceof
|
|
67309
|
+
if (!(value instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_53__/* .ParagraphNode */ .C)) w += value.getActualWidth();
|
|
67122
67310
|
});
|
|
67123
67311
|
return w;
|
|
67124
67312
|
}
|
|
67125
67313
|
}, {
|
|
67126
67314
|
key: "delete",
|
|
67127
67315
|
value: function _delete(operType) {
|
|
67128
|
-
var hoEditorFactory =
|
|
67129
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
67316
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_39__/* .HOEditorFactorys */ .b.instance().getFactory(this.hoEditorFactoryID);
|
|
67317
|
+
if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_33__/* .PaintState */ .Dh.psDesign || this.isAllowDelete) {
|
|
67130
67318
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(TextInputFieldNode.prototype), "delete", this).call(this);
|
|
67131
67319
|
} else {
|
|
67132
67320
|
if (operType !== 'update') {
|
|
67133
|
-
|
|
67321
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_63__/* ["default"] */ .Z.warn('文本域已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。');
|
|
67134
67322
|
} else {
|
|
67135
67323
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(TextInputFieldNode.prototype), "delete", this).call(this);
|
|
67136
67324
|
}
|
|
@@ -67155,7 +67343,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67155
67343
|
return false;
|
|
67156
67344
|
} else {
|
|
67157
67345
|
for (var i = 0; i++; i < this.childNodes.length) {
|
|
67158
|
-
if (this.childNodes[i] instanceof
|
|
67346
|
+
if (this.childNodes[i] instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_44__/* .BaseCombineNode */ .V) {
|
|
67159
67347
|
if (this.childNodes[i].removeChild(node)) return true;
|
|
67160
67348
|
}
|
|
67161
67349
|
}
|
|
@@ -67173,9 +67361,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67173
67361
|
if (this.childNodes.length == 2) {
|
|
67174
67362
|
return true;
|
|
67175
67363
|
}
|
|
67176
|
-
if (this.childNodes.length == 3 && this.childNodes[1] instanceof
|
|
67364
|
+
if (this.childNodes.length == 3 && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j) {
|
|
67177
67365
|
var markNode = this.childNodes[1];
|
|
67178
|
-
if (markNode.MarkNodeType ===
|
|
67366
|
+
if (markNode.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNodeType */ .q.mtContent) {
|
|
67179
67367
|
return true;
|
|
67180
67368
|
} else return false;
|
|
67181
67369
|
}
|
|
@@ -67206,7 +67394,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67206
67394
|
var ilen = arr.length;
|
|
67207
67395
|
for (var i = 1; i < ilen; i++) {
|
|
67208
67396
|
textInputFieldNode.insertText(arr[i].text, textInputFieldNode.text.length);
|
|
67209
|
-
|
|
67397
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_39__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.deleteNode(arr[i]);
|
|
67210
67398
|
}
|
|
67211
67399
|
return textInputFieldNode;
|
|
67212
67400
|
}
|
|
@@ -67224,10 +67412,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67224
67412
|
if (!range) {
|
|
67225
67413
|
for (var i = 0; i < this.childNodes.length; i++) {
|
|
67226
67414
|
var node = this.childNodes[i];
|
|
67227
|
-
if (!(node instanceof
|
|
67228
|
-
if (node instanceof
|
|
67415
|
+
if (!(node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j && node.text.substr(0, 1) !== 'C')) {
|
|
67416
|
+
if (node instanceof _TableNode__WEBPACK_IMPORTED_MODULE_59__/* .TableNode */ .Fh || node instanceof TextInputFieldNode) {
|
|
67229
67417
|
childArray.push(node.node2Json(undefined, isCopy, type, clearSign));
|
|
67230
|
-
} else if (node instanceof
|
|
67418
|
+
} else if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_57__/* .SignNode */ .N) {
|
|
67231
67419
|
if (clearSign) {
|
|
67232
67420
|
if (node.isTemplate) {
|
|
67233
67421
|
childArray.push(node.node2Json(undefined, isCopy, undefined, clearSign));
|
|
@@ -67236,11 +67424,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67236
67424
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
67237
67425
|
}
|
|
67238
67426
|
} else {
|
|
67239
|
-
if (node instanceof
|
|
67427
|
+
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_60__/* .TextNode */ .R) {
|
|
67240
67428
|
if (node.text !== '') {
|
|
67241
67429
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
67242
67430
|
}
|
|
67243
|
-
} else if (node instanceof
|
|
67431
|
+
} else if (node instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_47__/* .DateTimeNode */ .Z || node instanceof _QrcodeNode__WEBPACK_IMPORTED_MODULE_61__/* .QrcodeNode */ .d) {
|
|
67244
67432
|
childArray.push(node.node2Json(undefined, isCopy, undefined, clearSign));
|
|
67245
67433
|
} else {
|
|
67246
67434
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
@@ -67293,7 +67481,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67293
67481
|
canCopy = _node.checkPath(rec.from);
|
|
67294
67482
|
}
|
|
67295
67483
|
if (canCopy) {
|
|
67296
|
-
if (!(_node instanceof
|
|
67484
|
+
if (!(_node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j && _node.text.substr(0, 1) === 'C')) {
|
|
67297
67485
|
childArray.push(_node.node2Json(rec, isCopy));
|
|
67298
67486
|
}
|
|
67299
67487
|
}
|
|
@@ -67361,7 +67549,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67361
67549
|
enableGlobalColor: this.enableGlobalColor,
|
|
67362
67550
|
defaultValue: this.defaultValue,
|
|
67363
67551
|
downListProperty: this.downListProperty,
|
|
67364
|
-
dataVerifyFormat: this.dataVerifyFormat,
|
|
67552
|
+
//dataVerifyFormat: this.dataVerifyFormat,
|
|
67365
67553
|
//bandDataSource: this.bandDataSource,
|
|
67366
67554
|
customProperty: this.customProperty,
|
|
67367
67555
|
alignWithBlocked: this.alignWithBlocked,
|
|
@@ -67403,7 +67591,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67403
67591
|
enableGlobalColor: this.enableGlobalColor,
|
|
67404
67592
|
defaultValue: this.defaultValue,
|
|
67405
67593
|
downListProperty: this.downListProperty,
|
|
67406
|
-
dataVerifyFormat: this.dataVerifyFormat,
|
|
67594
|
+
//dataVerifyFormat: this.dataVerifyFormat,
|
|
67407
67595
|
//bandDataSource: this.bandDataSource,
|
|
67408
67596
|
customProperty: this.customProperty,
|
|
67409
67597
|
alignWithBlocked: this.alignWithBlocked,
|
|
@@ -67423,7 +67611,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67423
67611
|
}, {
|
|
67424
67612
|
key: "getLeftWidth",
|
|
67425
67613
|
value: function getLeftWidth() {
|
|
67426
|
-
var hoEditorFactory =
|
|
67614
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_39__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
67427
67615
|
if (this.alignWithBlocked && this.StartMarkNode && this.StartMarkNode.drawNodes.length > 0) {
|
|
67428
67616
|
var dNode = this.StartMarkNode.drawNodes[0];
|
|
67429
67617
|
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(dNode);
|
|
@@ -67479,7 +67667,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67479
67667
|
}], [{
|
|
67480
67668
|
key: "json2Node",
|
|
67481
67669
|
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
|
|
67482
|
-
var hoEditorFactory =
|
|
67670
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_39__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID);
|
|
67483
67671
|
var eachCount = 0;
|
|
67484
67672
|
var isErrorValid = false;
|
|
67485
67673
|
delete json.nodeType;
|
|
@@ -67508,7 +67696,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67508
67696
|
json.includesKeyword = !json.includesKeyword ? false : json.includesKeyword;
|
|
67509
67697
|
json.valueArea = !json.valueArea ? false : json.valueArea;
|
|
67510
67698
|
json.isElementLink = !json.isElementLink ? false : json.isElementLink;
|
|
67511
|
-
var temp = new TextInputFieldNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null,
|
|
67699
|
+
var temp = new TextInputFieldNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntField, json);
|
|
67512
67700
|
// this.insertChild
|
|
67513
67701
|
if (json.childNodes) {
|
|
67514
67702
|
var nodes = new Array();
|
|
@@ -67528,10 +67716,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67528
67716
|
// console.timeEnd(`----${i}----1-1----${item[i].name}`);
|
|
67529
67717
|
// };
|
|
67530
67718
|
if (node) {
|
|
67531
|
-
if (node instanceof
|
|
67719
|
+
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_60__/* .TextNode */ .R) {
|
|
67532
67720
|
if (temp.innerIdentifier == "name" && node.text.length > (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(node.text).length) {
|
|
67533
67721
|
//特殊处理生僻字
|
|
67534
|
-
var rareCharNode = new
|
|
67722
|
+
var rareCharNode = new _RareCharNode__WEBPACK_IMPORTED_MODULE_62__/* .RareCharNode */ .Q(temp.hoEditorFactoryID, node.rootNodes, node.parentNode, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntRareChar, node.text, node.styleIndex);
|
|
67535
67723
|
nodes.push(rareCharNode);
|
|
67536
67724
|
} else {
|
|
67537
67725
|
if (node.text !== '' && node.text !== '' && node.text !== '' && node.text !== '' && node.text !== '' && node.text !== '') {
|
|
@@ -67544,7 +67732,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67544
67732
|
}
|
|
67545
67733
|
} else {
|
|
67546
67734
|
if (isClearSign) {
|
|
67547
|
-
if (node instanceof
|
|
67735
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_57__/* .SignNode */ .N) {
|
|
67548
67736
|
if (node.isTemplate && !(node.number == 0 && node.type == 0 && node.name == '')) {
|
|
67549
67737
|
nodes.push(node);
|
|
67550
67738
|
}
|
|
@@ -67552,7 +67740,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67552
67740
|
nodes.push(node);
|
|
67553
67741
|
}
|
|
67554
67742
|
} else {
|
|
67555
|
-
if (node instanceof
|
|
67743
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_57__/* .SignNode */ .N) {
|
|
67556
67744
|
if (!(node.number == 0 && node.type == 0 && node.name == "")) {
|
|
67557
67745
|
nodes.push(node);
|
|
67558
67746
|
}
|
|
@@ -67562,10 +67750,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67562
67750
|
}
|
|
67563
67751
|
}
|
|
67564
67752
|
}
|
|
67565
|
-
if (node instanceof
|
|
67753
|
+
if (node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j && node.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNodeType */ .q.mtEnd && node.text.substring(0, 1) === 'C') {
|
|
67566
67754
|
hoEditorFactory.structureConvert._markNodes.push(node);
|
|
67567
67755
|
}
|
|
67568
|
-
if (node instanceof
|
|
67756
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_57__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(node.customProperty.bce01)) {
|
|
67569
67757
|
hoEditorFactory.structureConvert._superiorSign[0] = node;
|
|
67570
67758
|
}
|
|
67571
67759
|
}
|
|
@@ -67573,10 +67761,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67573
67761
|
//单个对象
|
|
67574
67762
|
var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp, undefined, undefined, isClearSign);
|
|
67575
67763
|
if (_node2) {
|
|
67576
|
-
if (_node2 instanceof
|
|
67764
|
+
if (_node2 instanceof _TextNode__WEBPACK_IMPORTED_MODULE_60__/* .TextNode */ .R) {
|
|
67577
67765
|
if (temp.innerIdentifier == "name" && _node2.text.length > (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_node2.text).length) {
|
|
67578
67766
|
//特殊处理生僻字
|
|
67579
|
-
var _rareCharNode = new
|
|
67767
|
+
var _rareCharNode = new _RareCharNode__WEBPACK_IMPORTED_MODULE_62__/* .RareCharNode */ .Q(temp.hoEditorFactoryID, _node2.rootNodes, _node2.parentNode, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntRareChar, _node2.text, _node2.styleIndex);
|
|
67580
67768
|
nodes.push(_rareCharNode);
|
|
67581
67769
|
} else {
|
|
67582
67770
|
if (_node2.text !== '' && _node2.text !== '' && _node2.text !== '' && _node2.text !== '' && _node2.text !== '' && _node2.text !== '') {
|
|
@@ -67590,7 +67778,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67590
67778
|
} else {
|
|
67591
67779
|
//nodes.push(node);
|
|
67592
67780
|
if (isClearSign) {
|
|
67593
|
-
if (_node2 instanceof
|
|
67781
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_57__/* .SignNode */ .N) {
|
|
67594
67782
|
if (_node2.isTemplate && !(_node2.number == 0 && _node2.type == 0 && _node2.name == '')) {
|
|
67595
67783
|
nodes.push(_node2);
|
|
67596
67784
|
}
|
|
@@ -67598,7 +67786,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67598
67786
|
nodes.push(_node2);
|
|
67599
67787
|
}
|
|
67600
67788
|
} else {
|
|
67601
|
-
if (_node2 instanceof
|
|
67789
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_57__/* .SignNode */ .N) {
|
|
67602
67790
|
if (!(_node2.number == 0 && _node2.type == 0 && _node2.name == '')) {
|
|
67603
67791
|
nodes.push(_node2);
|
|
67604
67792
|
}
|
|
@@ -67608,10 +67796,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67608
67796
|
}
|
|
67609
67797
|
}
|
|
67610
67798
|
}
|
|
67611
|
-
if (_node2 instanceof
|
|
67799
|
+
if (_node2 instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j && _node2.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNodeType */ .q.mtEnd && _node2.text.substring(0, 1) === 'C') {
|
|
67612
67800
|
hoEditorFactory.structureConvert._markNodes.push(_node2);
|
|
67613
67801
|
}
|
|
67614
|
-
if (_node2 instanceof
|
|
67802
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_57__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(_node2.customProperty.bce01)) {
|
|
67615
67803
|
hoEditorFactory.structureConvert._superiorSign[0] = _node2;
|
|
67616
67804
|
}
|
|
67617
67805
|
}
|
|
@@ -67629,11 +67817,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67629
67817
|
}
|
|
67630
67818
|
// if(json.name === '1-1') console.timeEnd("1-1--0");
|
|
67631
67819
|
if (nodes.length > 0) {
|
|
67632
|
-
if (nodes[0] instanceof
|
|
67820
|
+
if (nodes[0] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j) {
|
|
67633
67821
|
var _temp$childNodes;
|
|
67634
67822
|
temp.childNodes.length = 0;
|
|
67635
67823
|
(_temp$childNodes = temp.childNodes).splice.apply(_temp$childNodes, [0, 0].concat(nodes));
|
|
67636
|
-
if (temp.childNodes.length === 3 && temp.childNodes[1] instanceof
|
|
67824
|
+
if (temp.childNodes.length === 3 && temp.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j) {
|
|
67637
67825
|
temp._childNodes2.splice(1, 1);
|
|
67638
67826
|
temp._childNodes2.splice(1, 0, temp.childNodes[1]);
|
|
67639
67827
|
}
|
|
@@ -67648,30 +67836,33 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67648
67836
|
//if (hoEditorFactory.drawTree.paintStatus === PaintState.psDesign) {
|
|
67649
67837
|
var sChildNode = temp.childNodes[0];
|
|
67650
67838
|
var eChildNode = temp.childNodes[temp.childNodes.length - 1];
|
|
67651
|
-
if (!(sChildNode instanceof
|
|
67839
|
+
if (!(sChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j) || sChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j && sChildNode.MarkNodeType !== _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNodeType */ .q.mtStart) {
|
|
67652
67840
|
throw new Error('经检测,病历元素“' + temp.name + '”的模板格式有问题,无法正常加载,请联系工程师进行处理。');
|
|
67653
67841
|
}
|
|
67654
|
-
if (!(eChildNode instanceof
|
|
67842
|
+
if (!(eChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j) || eChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j && eChildNode.MarkNodeType !== _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNodeType */ .q.mtEnd) {
|
|
67655
67843
|
throw new Error('经检测,病历元素“' + temp.name + '”的模板格式有问题,无法正常加载,请联系工程师进行处理。');
|
|
67656
67844
|
}
|
|
67657
|
-
if (temp.childNodes.length > 3 && temp.childNodes[1] instanceof
|
|
67845
|
+
if (temp.childNodes.length > 3 && temp.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j && temp.childNodes[1].MarkNodeType == _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNodeType */ .q.mtContent) {
|
|
67658
67846
|
temp.childNodes.splice(1, 1);
|
|
67659
67847
|
}
|
|
67660
67848
|
//}
|
|
67661
|
-
if (temp.childNodes[1] instanceof
|
|
67849
|
+
if (temp.childNodes[1] instanceof _TableFormula__WEBPACK_IMPORTED_MODULE_58__/* .TableFormula */ .N) {
|
|
67662
67850
|
return temp;
|
|
67663
67851
|
}
|
|
67664
67852
|
if (!isPaste) {
|
|
67665
67853
|
var childFields = [];
|
|
67666
67854
|
for (var c = 0; c < temp.childNodes.length; c++) {
|
|
67667
67855
|
var childNode = temp.childNodes[c];
|
|
67668
|
-
if (childNode instanceof TextInputFieldNode || childNode instanceof
|
|
67856
|
+
if (childNode instanceof TextInputFieldNode || childNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_57__/* .SignNode */ .N) {
|
|
67669
67857
|
childFields.push(childNode);
|
|
67670
67858
|
}
|
|
67671
67859
|
}
|
|
67672
67860
|
if (childFields.length === 0 && !isErrorValid) {
|
|
67673
67861
|
//不嵌套 用text
|
|
67674
67862
|
var fieldText = temp.getFieldText();
|
|
67863
|
+
if (temp.text === fieldText && temp.text.indexOf("\n") > 0) {
|
|
67864
|
+
temp.text = temp.text.replaceAll("\n", "");
|
|
67865
|
+
}
|
|
67675
67866
|
if (temp.text !== fieldText && (temp.inputFieldType == 0 || temp.inputFieldType == 1 && temp.readType == 1)) {
|
|
67676
67867
|
temp.childNodes.splice(1, temp.childNodes.length - 2);
|
|
67677
67868
|
var styleIndex = temp.childNodes[0].styleIndex;
|
|
@@ -67685,10 +67876,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67685
67876
|
}
|
|
67686
67877
|
for (var i = 0; i < lineArr.length; i++) {
|
|
67687
67878
|
var lineText = lineArr[i];
|
|
67688
|
-
var textNode = new
|
|
67879
|
+
var textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_60__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntText, lineText, styleIndex);
|
|
67689
67880
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode);
|
|
67690
67881
|
if (i < lineArr.length - 1) {
|
|
67691
|
-
var paraNode = new
|
|
67882
|
+
var paraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_53__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, temp, 0);
|
|
67692
67883
|
paraNode.styleIndex = styleIndex;
|
|
67693
67884
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, paraNode);
|
|
67694
67885
|
}
|
|
@@ -67774,35 +67965,35 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67774
67965
|
if (resultArr[k].text != '') {
|
|
67775
67966
|
var newStyleIndex = styleIndex;
|
|
67776
67967
|
if (resultArr[k].mark == 1) {
|
|
67777
|
-
var textStyle = new
|
|
67968
|
+
var textStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_41__/* .TextStyle */ .pn(hoEditorFactoryID);
|
|
67778
67969
|
textStyle.copyProperty(hoEditorFactory.docTree.styles[styleIndex], textStyle);
|
|
67779
67970
|
textStyle.script = 2;
|
|
67780
67971
|
newStyleIndex = hoEditorFactory.docTree.styleCompare(textStyle);
|
|
67781
67972
|
}
|
|
67782
67973
|
if (resultArr[k].mark == 2) {
|
|
67783
|
-
var _textStyle = new
|
|
67974
|
+
var _textStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_41__/* .TextStyle */ .pn(hoEditorFactoryID);
|
|
67784
67975
|
_textStyle.copyProperty(hoEditorFactory.docTree.styles[styleIndex], _textStyle);
|
|
67785
67976
|
_textStyle.script = 1;
|
|
67786
67977
|
newStyleIndex = hoEditorFactory.docTree.styleCompare(_textStyle);
|
|
67787
67978
|
}
|
|
67788
|
-
var textNode0 = new
|
|
67979
|
+
var textNode0 = new _TextNode__WEBPACK_IMPORTED_MODULE_60__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntText, resultArr[k].text, newStyleIndex);
|
|
67789
67980
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode0);
|
|
67790
67981
|
}
|
|
67791
67982
|
}
|
|
67792
67983
|
} else {
|
|
67793
67984
|
if (textArr[0] != "") {
|
|
67794
67985
|
if (temp.innerIdentifier == "name" && temp.text.length > (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(temp.text).length) {
|
|
67795
|
-
var rareCharNode = new
|
|
67986
|
+
var rareCharNode = new _RareCharNode__WEBPACK_IMPORTED_MODULE_62__/* .RareCharNode */ .Q(temp.hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntRareChar, textArr[0], styleIndex);
|
|
67796
67987
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, rareCharNode);
|
|
67797
67988
|
} else {
|
|
67798
|
-
var textNode1 = new
|
|
67989
|
+
var textNode1 = new _TextNode__WEBPACK_IMPORTED_MODULE_60__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntText, textArr[0], styleIndex);
|
|
67799
67990
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode1);
|
|
67800
67991
|
}
|
|
67801
67992
|
}
|
|
67802
67993
|
}
|
|
67803
67994
|
if (textArr.length > 1) {
|
|
67804
67995
|
for (var _i2 = 1; _i2 < textArr.length; _i2++) {
|
|
67805
|
-
var paragraNode = new
|
|
67996
|
+
var paragraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_53__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, temp, 0);
|
|
67806
67997
|
paragraNode.styleIndex = styleIndex;
|
|
67807
67998
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, paragraNode);
|
|
67808
67999
|
if (textArr[_i2] !== '') {
|
|
@@ -67813,17 +68004,17 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67813
68004
|
if (resultArr1[_k].text != '') {
|
|
67814
68005
|
var _newStyleIndex = styleIndex;
|
|
67815
68006
|
if (resultArr1[_k].mark == 1) {
|
|
67816
|
-
var _textStyle2 = new
|
|
68007
|
+
var _textStyle2 = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_41__/* .TextStyle */ .pn(hoEditorFactoryID);
|
|
67817
68008
|
_textStyle2.copyProperty(hoEditorFactory.docTree.styles[styleIndex], _textStyle2);
|
|
67818
68009
|
_textStyle2.script = 2;
|
|
67819
68010
|
_newStyleIndex = hoEditorFactory.docTree.styleCompare(_textStyle2);
|
|
67820
68011
|
}
|
|
67821
|
-
var _textNode = new
|
|
68012
|
+
var _textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_60__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntText, resultArr1[_k].text, _newStyleIndex);
|
|
67822
68013
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, _textNode);
|
|
67823
68014
|
}
|
|
67824
68015
|
}
|
|
67825
68016
|
} else {
|
|
67826
|
-
var _textNode2 = new
|
|
68017
|
+
var _textNode2 = new _TextNode__WEBPACK_IMPORTED_MODULE_60__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntText, textArr[_i2], styleIndex);
|
|
67827
68018
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, _textNode2);
|
|
67828
68019
|
}
|
|
67829
68020
|
}
|
|
@@ -67840,25 +68031,25 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67840
68031
|
var eIndex = expressArr[_i3].eIndex;
|
|
67841
68032
|
var expressJson = temp.text.substring(sIndex + 16, eIndex);
|
|
67842
68033
|
var expressObj = JSON.parse(expressJson);
|
|
67843
|
-
var expressStyle =
|
|
68034
|
+
var expressStyle = _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_52__/* .ExpressStyle */ .e[expressObj.expressStyle];
|
|
67844
68035
|
if (!expressStyle) {
|
|
67845
68036
|
expressStyle = expressObj.expressStyle;
|
|
67846
68037
|
}
|
|
67847
68038
|
var medicalExpressNode = void 0;
|
|
67848
68039
|
if (expressStyle.includes('style')) {
|
|
67849
68040
|
//经期史
|
|
67850
|
-
medicalExpressNode = new
|
|
68041
|
+
medicalExpressNode = new _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_52__/* .MenstrualHistoryNode */ .n(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntMedicalExpression, expressStyle, expressObj.menseDays, expressObj.cycleDays, expressObj.menarcheAge, expressObj.menoPauseAge);
|
|
67851
68042
|
} else {
|
|
67852
68043
|
if (expressStyle === 'PupilMapNode') {
|
|
67853
|
-
medicalExpressNode = new
|
|
68044
|
+
medicalExpressNode = new _PupilMapNode__WEBPACK_IMPORTED_MODULE_56__/* .PupilMapNode */ .v(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6, expressObj.value7);
|
|
67854
68045
|
} else if (expressStyle === 'LightLocationMapNode') {
|
|
67855
|
-
medicalExpressNode = new
|
|
68046
|
+
medicalExpressNode = new _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_49__/* .LightLocationMapNode */ .D(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6, expressObj.value7, expressObj.value8, expressObj.value9);
|
|
67856
68047
|
} else if (expressStyle === 'FetalHeartMapNode') {
|
|
67857
|
-
medicalExpressNode = new
|
|
68048
|
+
medicalExpressNode = new _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_48__/* .FetalHeartMapNode */ .t(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6);
|
|
67858
68049
|
} else if (expressStyle === 'PermanentTeethMapNode') {
|
|
67859
|
-
medicalExpressNode = new
|
|
68050
|
+
medicalExpressNode = new _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_54__/* .PermanentTeethMapNode */ .f(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected, expressObj.remark);
|
|
67860
68051
|
} else {
|
|
67861
|
-
medicalExpressNode = new
|
|
68052
|
+
medicalExpressNode = new _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_55__/* .PrimaryTeethMapNode */ .x(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected);
|
|
67862
68053
|
}
|
|
67863
68054
|
}
|
|
67864
68055
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, medicalExpressNode);
|
|
@@ -67883,9 +68074,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67883
68074
|
}
|
|
67884
68075
|
} else {
|
|
67885
68076
|
temp._childNodes2.splice(1, temp._childNodes2.length - 2);
|
|
67886
|
-
var markNode = new
|
|
68077
|
+
var markNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNode */ .j(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_45__/* .NodeType */ .Jq.ntText, temp.labelText,
|
|
67887
68078
|
//hoEditorFactory.docTree.curStyleIndex,
|
|
67888
|
-
styleIndex,
|
|
68079
|
+
styleIndex, _MarkNode__WEBPACK_IMPORTED_MODULE_50__/* .MarkNodeType */ .q.mtContent);
|
|
67889
68080
|
temp._childNodes.splice(1, 0, markNode);
|
|
67890
68081
|
temp._childNodes2.splice(1, 0, markNode);
|
|
67891
68082
|
}
|
|
@@ -67908,18 +68099,18 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67908
68099
|
}, {
|
|
67909
68100
|
key: "textInpubNodeRedraw",
|
|
67910
68101
|
value: function textInpubNodeRedraw(hoEditorFactoryID, node) {
|
|
67911
|
-
var hoEditorFactory =
|
|
68102
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_39__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID);
|
|
67912
68103
|
var startPath = node.StartMarkNode.getNodePath();
|
|
67913
68104
|
var paragraphNode = hoEditorFactory.docTree.getNodeParaNode(node.EndMarkNode);
|
|
67914
68105
|
var endPath = hoEditorFactory.docTree.getNodeLastPath(paragraphNode);
|
|
67915
|
-
var changeEvent = new
|
|
68106
|
+
var changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_37__/* .NodeChangeEvent */ .G(hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_40__/* .DocAction */ .gk.daModifyStyle, startPath, endPath);
|
|
67916
68107
|
changeEvent.oldEndPath = endPath;
|
|
67917
|
-
changeEvent.oldDrawLines = new
|
|
68108
|
+
changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_34__/* .SelectRange */ .E(hoEditorFactoryID).getRangeDrawLines(startPath, endPath, true);
|
|
67918
68109
|
hoEditorFactory.docTree.change(changeEvent);
|
|
67919
68110
|
}
|
|
67920
68111
|
}]);
|
|
67921
68112
|
return TextInputFieldNode;
|
|
67922
|
-
}(
|
|
68113
|
+
}(_BaseCombineNode__WEBPACK_IMPORTED_MODULE_44__/* .BaseCombineNode */ .V);
|
|
67923
68114
|
|
|
67924
68115
|
/***/ }),
|
|
67925
68116
|
|
|
@@ -176663,7 +176854,7 @@ var map = {
|
|
|
176663
176854
|
"./commentDialog/CommentDialog.vue": 61720,
|
|
176664
176855
|
"./customAttributes/CustomAttributes.vue": 75819,
|
|
176665
176856
|
"./dataSource/DataSource.vue": 84051,
|
|
176666
|
-
"./dateDialog/DateDialog.vue":
|
|
176857
|
+
"./dateDialog/DateDialog.vue": 29582,
|
|
176667
176858
|
"./delimiter/Delimiter.vue": 13785,
|
|
176668
176859
|
"./expressionForm/ExpressionForm.vue": 77541,
|
|
176669
176860
|
"./findReplace/FindReplace.vue": 29737,
|
|
@@ -176674,18 +176865,18 @@ var map = {
|
|
|
176674
176865
|
"./pageInfoes/PageInfoes.vue": 99749,
|
|
176675
176866
|
"./paragraph/ParagraphDialog.vue": 58874,
|
|
176676
176867
|
"./poperSelect/PoperMark.vue": 20734,
|
|
176677
|
-
"./poperSelect/PoperSelect.vue":
|
|
176868
|
+
"./poperSelect/PoperSelect.vue": 6459,
|
|
176678
176869
|
"./poperTipText/PoperTipText.vue": 50987,
|
|
176679
176870
|
"./popers/Poper.vue": 57937,
|
|
176680
176871
|
"./popers/Title.vue": 85516,
|
|
176681
176872
|
"./printstyle/PrintLineStyle.vue": 51484,
|
|
176682
176873
|
"./qrCode/QrCode.vue": 93973,
|
|
176683
|
-
"./radioCheckBox/RadioCheckbox.vue":
|
|
176874
|
+
"./radioCheckBox/RadioCheckbox.vue": 68763,
|
|
176684
176875
|
"./selectDialog/SelectDialog.vue": 64033,
|
|
176685
176876
|
"./sign/Sign.vue": 64207,
|
|
176686
176877
|
"./table/TableCellPoper.vue": 2043,
|
|
176687
176878
|
"./table/TableCellProperty.vue": 23890,
|
|
176688
|
-
"./table/TableColProperty.vue":
|
|
176879
|
+
"./table/TableColProperty.vue": 46226,
|
|
176689
176880
|
"./table/TableForm.vue": 79036,
|
|
176690
176881
|
"./table/TableFormTree.vue": 84804,
|
|
176691
176882
|
"./table/TableFormula.vue": 58585,
|
|
@@ -214129,8 +214320,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
214129
214320
|
var es_number_constructor = __webpack_require__(9653);
|
|
214130
214321
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
214131
214322
|
var es_json_stringify = __webpack_require__(38862);
|
|
214132
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
214133
|
-
var
|
|
214323
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=57fcb250&
|
|
214324
|
+
var HoDocvue_type_template_id_57fcb250_render = function render() {
|
|
214134
214325
|
var _vm = this,
|
|
214135
214326
|
_c = _vm._self._c;
|
|
214136
214327
|
return _c('div', {
|
|
@@ -214278,7 +214469,7 @@ var HoDocvue_type_template_id_0e4bf394_render = function render() {
|
|
|
214278
214469
|
}
|
|
214279
214470
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
214280
214471
|
};
|
|
214281
|
-
var
|
|
214472
|
+
var HoDocvue_type_template_id_57fcb250_staticRenderFns = [];
|
|
214282
214473
|
|
|
214283
214474
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
214284
214475
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -215873,7 +216064,7 @@ var HoToPage_component = (0,componentNormalizer/* default */.Z)(
|
|
|
215873
216064
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
215874
216065
|
var plugins_util = __webpack_require__(62783);
|
|
215875
216066
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
|
|
215876
|
-
var PoperSelect = __webpack_require__(
|
|
216067
|
+
var PoperSelect = __webpack_require__(6459);
|
|
215877
216068
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
215878
216069
|
var PoperMark = __webpack_require__(20734);
|
|
215879
216070
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -217278,7 +217469,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
217278
217469
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
217279
217470
|
var ParagraphNode = __webpack_require__(67945);
|
|
217280
217471
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
217281
|
-
/* harmony default export */ var version = ('3.1.
|
|
217472
|
+
/* harmony default export */ var version = ('3.1.4');
|
|
217282
217473
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
217283
217474
|
var PoperTipText = __webpack_require__(50987);
|
|
217284
217475
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -217697,6 +217888,14 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
217697
217888
|
startPath: hoEditorFactory.docTree.curDomRange.normalize().startPath,
|
|
217698
217889
|
endPath: hoEditorFactory.docTree.curDomRange.normalize().endPath
|
|
217699
217890
|
};
|
|
217891
|
+
var _vueController$getDom = vueController.getDomRange().inSameTable(),
|
|
217892
|
+
_vueController$getDom2 = (0,esm_slicedToArray/* default */.Z)(_vueController$getDom, 2),
|
|
217893
|
+
isInTable = _vueController$getDom2[0],
|
|
217894
|
+
tableNode = _vueController$getDom2[1];
|
|
217895
|
+
if (paintStatus == 1 && isInTable) {
|
|
217896
|
+
var result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
|
|
217897
|
+
if (!result) return;
|
|
217898
|
+
}
|
|
217700
217899
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
217701
217900
|
if (paintStatus === 0 && !node.imgSrc && !node.fingerPrintSrc) {
|
|
217702
217901
|
this.hoEditorProvider.setControlProperty('sign', 'update', '');
|
|
@@ -218027,10 +218226,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218027
218226
|
});
|
|
218028
218227
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
218029
218228
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
218030
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
218229
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=57fcb250&prod&lang=less&
|
|
218031
218230
|
// extracted by mini-css-extract-plugin
|
|
218032
218231
|
|
|
218033
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
218232
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=57fcb250&prod&lang=less&
|
|
218034
218233
|
|
|
218035
218234
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
218036
218235
|
|
|
@@ -218043,8 +218242,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218043
218242
|
|
|
218044
218243
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
218045
218244
|
components_HoDocvue_type_script_lang_js_,
|
|
218046
|
-
|
|
218047
|
-
|
|
218245
|
+
HoDocvue_type_template_id_57fcb250_render,
|
|
218246
|
+
HoDocvue_type_template_id_57fcb250_staticRenderFns,
|
|
218048
218247
|
false,
|
|
218049
218248
|
null,
|
|
218050
218249
|
null,
|
|
@@ -220388,6 +220587,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
220388
220587
|
tableProperty.isAutoChangeLine = tableProperty['isAutoChangeLine'] || false;
|
|
220389
220588
|
tableProperty.autoLineHeight = tableProperty['autoLineHeight'] || 0.53;
|
|
220390
220589
|
tableProperty.isSignLock = tableProperty['isSignLock'] || false;
|
|
220590
|
+
tableProperty.isLock = tableProperty['isLock'] || false;
|
|
220391
220591
|
return tableProperty;
|
|
220392
220592
|
}
|
|
220393
220593
|
}, {
|
|
@@ -228481,6 +228681,18 @@ var VueController = /*#__PURE__*/function () {
|
|
|
228481
228681
|
hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, node, ePath));
|
|
228482
228682
|
hoEditorFactory.undoService.add(new NodeInsertUndoUnit/* NodeInsertUndoUnit */.R(this._hoEditorFactoryID, sPath, signNode));
|
|
228483
228683
|
hoEditorFactory.undoService.commit();
|
|
228684
|
+
if (node.parentNode instanceof CellNode/* CellNode */.D) {
|
|
228685
|
+
var table = node.parentNode.table;
|
|
228686
|
+
if (table.tableProperty.isSignLock && table.tableProperty.isLock) {
|
|
228687
|
+
table.tableProperty.isLock = false;
|
|
228688
|
+
} else {
|
|
228689
|
+
var c = node.parentNode.row.indexOf(node.parentNode);
|
|
228690
|
+
var colProperty = table.colInfos[c].colProperty;
|
|
228691
|
+
if (colProperty.isSignLock && colProperty.isLock) {
|
|
228692
|
+
colProperty.isLock = false;
|
|
228693
|
+
}
|
|
228694
|
+
}
|
|
228695
|
+
}
|
|
228484
228696
|
return;
|
|
228485
228697
|
}
|
|
228486
228698
|
if (preNode instanceof SignNode/* SignNode */.N) {
|
|
@@ -228603,90 +228815,88 @@ var VueController = /*#__PURE__*/function () {
|
|
|
228603
228815
|
* 验证病历文件中所有文本域的数据格式
|
|
228604
228816
|
* @param 错误列表(元素,错误信息)
|
|
228605
228817
|
*/
|
|
228606
|
-
|
|
228607
|
-
|
|
228608
|
-
|
|
228609
|
-
|
|
228610
|
-
|
|
228611
|
-
|
|
228612
|
-
|
|
228613
|
-
|
|
228614
|
-
|
|
228615
|
-
|
|
228616
|
-
|
|
228617
|
-
|
|
228618
|
-
|
|
228619
|
-
|
|
228620
|
-
|
|
228621
|
-
|
|
228622
|
-
|
|
228623
|
-
|
|
228624
|
-
|
|
228625
|
-
|
|
228626
|
-
|
|
228627
|
-
|
|
228628
|
-
|
|
228629
|
-
|
|
228630
|
-
|
|
228631
|
-
|
|
228632
|
-
|
|
228633
|
-
|
|
228634
|
-
|
|
228635
|
-
|
|
228636
|
-
|
|
228637
|
-
|
|
228638
|
-
|
|
228639
|
-
|
|
228640
|
-
|
|
228641
|
-
|
|
228642
|
-
|
|
228643
|
-
|
|
228644
|
-
|
|
228645
|
-
|
|
228646
|
-
|
|
228647
|
-
|
|
228648
|
-
|
|
228649
|
-
|
|
228650
|
-
|
|
228651
|
-
|
|
228652
|
-
|
|
228653
|
-
|
|
228654
|
-
|
|
228655
|
-
|
|
228656
|
-
|
|
228657
|
-
|
|
228658
|
-
|
|
228659
|
-
|
|
228660
|
-
|
|
228661
|
-
|
|
228662
|
-
|
|
228663
|
-
|
|
228664
|
-
|
|
228665
|
-
|
|
228666
|
-
|
|
228667
|
-
|
|
228668
|
-
|
|
228669
|
-
|
|
228670
|
-
|
|
228671
|
-
|
|
228672
|
-
|
|
228673
|
-
|
|
228674
|
-
|
|
228675
|
-
|
|
228676
|
-
|
|
228677
|
-
|
|
228678
|
-
|
|
228679
|
-
|
|
228680
|
-
|
|
228681
|
-
|
|
228682
|
-
|
|
228683
|
-
|
|
228684
|
-
|
|
228685
|
-
|
|
228686
|
-
|
|
228687
|
-
|
|
228688
|
-
return errorArray;
|
|
228689
|
-
}
|
|
228818
|
+
// public verifyTextFieldsDataFormat(): Array<[TextInputFieldNode, string]> {
|
|
228819
|
+
// const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
228820
|
+
// const errorArray: Array<[TextInputFieldNode, string]> = [];
|
|
228821
|
+
// let errorInfo = '';
|
|
228822
|
+
// const headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
228823
|
+
// const footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
|
|
228824
|
+
// const mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
228825
|
+
// const loopFieldNodes = (filedNodes: TextInputFieldNode[]) => {
|
|
228826
|
+
// for (let h = 0; h < filedNodes.length; h++) {
|
|
228827
|
+
// const node = filedNodes[h];
|
|
228828
|
+
// const dataVerifyFormat = node.dataVerifyFormat;
|
|
228829
|
+
// if (dataVerifyFormat.mustInputValue && node.text === '') {
|
|
228830
|
+
// errorInfo = '必须输入,不能为空';
|
|
228831
|
+
// errorArray.push([node, errorInfo]);
|
|
228832
|
+
// } else {
|
|
228833
|
+
// if (dataVerifyFormat.dataFormat === DataFormat.text) {
|
|
228834
|
+
// //文本格式
|
|
228835
|
+
// if (dataVerifyFormat.minLength > 0) {
|
|
228836
|
+
// if (node.text.length < dataVerifyFormat.minLength) {
|
|
228837
|
+
// errorInfo = '内容不能少于' + dataVerifyFormat.minLength.toString() + '个字符';
|
|
228838
|
+
// errorArray.push([node, errorInfo]);
|
|
228839
|
+
// }
|
|
228840
|
+
// }
|
|
228841
|
+
// if (dataVerifyFormat.maxLength > 0) {
|
|
228842
|
+
// if (node.text.length > dataVerifyFormat.maxLength) {
|
|
228843
|
+
// errorInfo = '内容不能多于' + dataVerifyFormat.maxLength.toString() + '个字符';
|
|
228844
|
+
// errorArray.push([node, errorInfo]);
|
|
228845
|
+
// }
|
|
228846
|
+
// }
|
|
228847
|
+
// } else {
|
|
228848
|
+
// //数值格式
|
|
228849
|
+
// if (!isNumber(node.text)) {
|
|
228850
|
+
// errorInfo = '内容必须为数值';
|
|
228851
|
+
// errorArray.push([node, errorInfo]);
|
|
228852
|
+
// } else {
|
|
228853
|
+
// if (dataVerifyFormat.onlyInputInt) {
|
|
228854
|
+
// //必须是整数
|
|
228855
|
+
// if (Number(node.text) % 1 !== 0) {
|
|
228856
|
+
// errorInfo = '数值必须为整数';
|
|
228857
|
+
// errorArray.push([node, errorInfo]);
|
|
228858
|
+
// } else {
|
|
228859
|
+
// if (dataVerifyFormat.maxValue !== 0 && Number(node.text) > dataVerifyFormat.maxValue) {
|
|
228860
|
+
// errorInfo = '数值不能大于' + dataVerifyFormat.maxValue.toString();
|
|
228861
|
+
// errorArray.push([node, errorInfo]);
|
|
228862
|
+
// }
|
|
228863
|
+
// if (dataVerifyFormat.minValue !== 0 && Number(node.text) < dataVerifyFormat.minValue) {
|
|
228864
|
+
// errorInfo = '数值不能小于' + dataVerifyFormat.minValue.toString();
|
|
228865
|
+
// errorArray.push([node, errorInfo]);
|
|
228866
|
+
// }
|
|
228867
|
+
// }
|
|
228868
|
+
// } else {
|
|
228869
|
+
// //非必须是整数
|
|
228870
|
+
// if (dataVerifyFormat.maxSmallBits !== 0 && node.text.split('.')[1].length > dataVerifyFormat.maxSmallBits) {
|
|
228871
|
+
// errorInfo = '小数位数不能多于' + dataVerifyFormat.maxSmallBits.toString() + '位';
|
|
228872
|
+
// errorArray.push([node, errorInfo]);
|
|
228873
|
+
// }
|
|
228874
|
+
// }
|
|
228875
|
+
// }
|
|
228876
|
+
// }
|
|
228877
|
+
// }
|
|
228878
|
+
// }
|
|
228879
|
+
// };
|
|
228880
|
+
// for (let i = 0; i < headerDocTree.length; i++) {
|
|
228881
|
+
// const headerNodes = headerDocTree[i].subDocNodes;
|
|
228882
|
+
// const hsPath = headerNodes[0].getNodePath();
|
|
228883
|
+
// const hePath = hoEditorFactory.docTree.getNodeLastPath(headerNodes[headerNodes.length - 1]);
|
|
228884
|
+
// const headerFileds = DomRange.getRangeTextInputField(this._hoEditorFactoryID, hsPath, hePath, false);
|
|
228885
|
+
// loopFieldNodes(headerFileds);
|
|
228886
|
+
// }
|
|
228887
|
+
// const msPath = mainNodes[0].getNodePath();
|
|
228888
|
+
// const mePath = hoEditorFactory.docTree.getNodeLastPath(mainNodes[mainNodes.length - 1]);
|
|
228889
|
+
// const mainFileds = DomRange.getRangeTextInputField(this._hoEditorFactoryID, msPath, mePath, false);
|
|
228890
|
+
// loopFieldNodes(mainFileds);
|
|
228891
|
+
// for (let i = 0; i < footerDocTree.length; i++) {
|
|
228892
|
+
// const footerNodes = footerDocTree[i].subDocNodes;
|
|
228893
|
+
// const fsPath = footerNodes[0].getNodePath();
|
|
228894
|
+
// const fePath = hoEditorFactory.docTree.getNodeLastPath(footerNodes[footerNodes.length - 1]);
|
|
228895
|
+
// const footerFileds = DomRange.getRangeTextInputField(this._hoEditorFactoryID, fsPath, fePath, false);
|
|
228896
|
+
// loopFieldNodes(footerFileds);
|
|
228897
|
+
// }
|
|
228898
|
+
// return errorArray;
|
|
228899
|
+
// }
|
|
228690
228900
|
/**
|
|
228691
228901
|
* 插入空签名
|
|
228692
228902
|
* @param name 签名名称(空签名的初始化显示)
|
|
@@ -229980,7 +230190,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
229980
230190
|
path = pathArr.join('/');
|
|
229981
230191
|
}
|
|
229982
230192
|
};
|
|
229983
|
-
for (var
|
|
230193
|
+
for (var _i3 = 0; _i3 < text.length; _i3++) {
|
|
229984
230194
|
_loop4();
|
|
229985
230195
|
}
|
|
229986
230196
|
var selectRange = new SelectRange/* SelectRange */.E(this.hoEditorFactoryID);
|
|
@@ -230623,6 +230833,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230623
230833
|
type: 'sign',
|
|
230624
230834
|
signed: false,
|
|
230625
230835
|
isTemplate: node.isTemplate,
|
|
230836
|
+
number: node.number,
|
|
230626
230837
|
isVerify: node.otherProperties && node.otherProperties.isVerify ? true : false,
|
|
230627
230838
|
customProperty: {}
|
|
230628
230839
|
};
|
|
@@ -230705,8 +230916,19 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230705
230916
|
};
|
|
230706
230917
|
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
230707
230918
|
getAllNodes(mainNodes);
|
|
230919
|
+
var hSignList = signList.map(function (sign, index) {
|
|
230920
|
+
if (sign.number > 1) {
|
|
230921
|
+
for (var i = index; i < signList.length; i++) {
|
|
230922
|
+
if (signList[i].number == 1) {
|
|
230923
|
+
sign.isTemplate = signList[i].isTemplate;
|
|
230924
|
+
break;
|
|
230925
|
+
}
|
|
230926
|
+
}
|
|
230927
|
+
}
|
|
230928
|
+
return sign;
|
|
230929
|
+
});
|
|
230708
230930
|
return {
|
|
230709
|
-
sign:
|
|
230931
|
+
sign: hSignList,
|
|
230710
230932
|
patientSign: patientSignList,
|
|
230711
230933
|
bce01List: bce01List
|
|
230712
230934
|
};
|
|
@@ -230860,7 +231082,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230860
231082
|
autoLineHeight: node.tableProperty.autoLineHeight,
|
|
230861
231083
|
fixedOnePage: node.tableProperty.fixedOnePage,
|
|
230862
231084
|
isUsePopEdit: node.tableProperty.isUsePopEdit,
|
|
230863
|
-
isSignLock: node.tableProperty.isSignLock
|
|
231085
|
+
isSignLock: node.tableProperty.isSignLock,
|
|
231086
|
+
isLock: node.tableProperty.isLock
|
|
230864
231087
|
};
|
|
230865
231088
|
var defaultRowProp = {
|
|
230866
231089
|
customProperties: '',
|
|
@@ -230880,8 +231103,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230880
231103
|
var rowInfosArray = new Array();
|
|
230881
231104
|
var rows = node.rowInfos.length - 1;
|
|
230882
231105
|
var cols = node.colInfos.length - 1;
|
|
230883
|
-
for (var
|
|
230884
|
-
var rowInfo = node.rowInfos[
|
|
231106
|
+
for (var _i4 = 0; _i4 <= rows; _i4++) {
|
|
231107
|
+
var rowInfo = node.rowInfos[_i4];
|
|
230885
231108
|
var _customProperties = {
|
|
230886
231109
|
customProperty: Array(rowInfo.rowProperty.customProperties)
|
|
230887
231110
|
};
|
|
@@ -230933,13 +231156,15 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230933
231156
|
dateTimeProperty: '',
|
|
230934
231157
|
numberProperty: '',
|
|
230935
231158
|
signProperty: '',
|
|
230936
|
-
customProperties: ''
|
|
231159
|
+
customProperties: '',
|
|
231160
|
+
isSignLock: false,
|
|
231161
|
+
isLock: false
|
|
230937
231162
|
};
|
|
230938
231163
|
var defaultColPropJson = JSON.parse(JSON.stringify(defaultColProp));
|
|
230939
231164
|
//处理列宽
|
|
230940
231165
|
var colInfosArray = new Array();
|
|
230941
|
-
for (var
|
|
230942
|
-
var colInfo = node.colInfos[
|
|
231166
|
+
for (var _i5 = 0; _i5 <= cols; _i5++) {
|
|
231167
|
+
var colInfo = node.colInfos[_i5];
|
|
230943
231168
|
var _customProperties2 = {
|
|
230944
231169
|
customProperty: Array(colInfo.colProperty.customProperties)
|
|
230945
231170
|
};
|
|
@@ -230952,6 +231177,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230952
231177
|
dateTimeProperty: colInfo.colProperty.dateTimeProperty,
|
|
230953
231178
|
numberProperty: colInfo.colProperty.numberProperty,
|
|
230954
231179
|
signProperty: colInfo.colProperty.signProperty,
|
|
231180
|
+
isSignLock: colInfo.colProperty.isSignLock,
|
|
231181
|
+
isLock: colInfo.colProperty.isLock,
|
|
230955
231182
|
customProperties: _customProperties2
|
|
230956
231183
|
};
|
|
230957
231184
|
var colPropertyJson = JSON.parse(JSON.stringify(colProperty));
|
|
@@ -231064,8 +231291,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231064
231291
|
if (node instanceof CellNode/* CellNode */.D) {
|
|
231065
231292
|
//处理子节点
|
|
231066
231293
|
var childArray = new Array();
|
|
231067
|
-
for (var
|
|
231068
|
-
var anode = node.childNodes[
|
|
231294
|
+
for (var _i6 = 0; _i6 < node.childNodes.length; _i6++) {
|
|
231295
|
+
var anode = node.childNodes[_i6];
|
|
231069
231296
|
var nodeJson = void 0;
|
|
231070
231297
|
if (anode instanceof TextNode/* TextNode */.R) {
|
|
231071
231298
|
if (anode.text !== '') {
|
|
@@ -231180,8 +231407,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231180
231407
|
};
|
|
231181
231408
|
var xmlRoot = '<?xml version="1.0" encoding="utf-8"?>';
|
|
231182
231409
|
var doc2XmlJson = function doc2XmlJson(nodes) {
|
|
231183
|
-
for (var
|
|
231184
|
-
var node = nodes[
|
|
231410
|
+
for (var _i7 = 0; _i7 < nodes.length; _i7++) {
|
|
231411
|
+
var node = nodes[_i7];
|
|
231185
231412
|
if (node instanceof TextNode/* TextNode */.R || node instanceof ParagraphNode/* ParagraphNode */.C || node instanceof TableNode/* TableNode */.Fh || node instanceof ImageNode/* ImageNode */.H) {
|
|
231186
231413
|
var nodeJson = node2Json(node);
|
|
231187
231414
|
xmlRoot += x2js.js2xml(nodeJson);
|
|
@@ -231557,7 +231784,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231557
231784
|
for (var j = 0; j < pathArr.length; j++) {
|
|
231558
231785
|
var apath = pathArr[j];
|
|
231559
231786
|
var nodeLastPath = pathArr[j];
|
|
231560
|
-
for (var
|
|
231787
|
+
for (var _i8 = 0; _i8 < findText.length; _i8++) {
|
|
231561
231788
|
var np = hoEditorFactory.docTree.findNodePositionByPath(apath);
|
|
231562
231789
|
if (np && np.node) {
|
|
231563
231790
|
nodeLastPath = hoEditorFactory.docTree.getNodeLastPath(np.node);
|
|
@@ -231921,6 +232148,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231921
232148
|
hoEditorFactory.drawTree.moveCaretToPath("main/0");
|
|
231922
232149
|
hoEditorFactory.docController.parseNodeData(nodes);
|
|
231923
232150
|
}
|
|
232151
|
+
}, {
|
|
232152
|
+
key: "canIsEdit",
|
|
232153
|
+
value: function canIsEdit() {
|
|
232154
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232155
|
+
return hoEditorFactory.editController.canIsEdit(hoEditorFactory);
|
|
232156
|
+
}
|
|
231924
232157
|
}]);
|
|
231925
232158
|
return VueController;
|
|
231926
232159
|
}();
|
|
@@ -232523,7 +232756,6 @@ var DomController = /*#__PURE__*/function () {
|
|
|
232523
232756
|
|
|
232524
232757
|
|
|
232525
232758
|
|
|
232526
|
-
|
|
232527
232759
|
|
|
232528
232760
|
|
|
232529
232761
|
var EditController = /*#__PURE__*/function () {
|
|
@@ -233046,16 +233278,18 @@ var EditController = /*#__PURE__*/function () {
|
|
|
233046
233278
|
}
|
|
233047
233279
|
if (result && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psDesign) {
|
|
233048
233280
|
var pNode = hoEditorFactory.docTree.getParentNode(curDomRange.startPath);
|
|
233049
|
-
if (pNode && pNode instanceof CellNode/* CellNode */.D
|
|
233050
|
-
|
|
233051
|
-
|
|
233052
|
-
|
|
233053
|
-
|
|
233054
|
-
|
|
233055
|
-
|
|
233056
|
-
|
|
233057
|
-
|
|
233058
|
-
|
|
233281
|
+
if (pNode && pNode instanceof CellNode/* CellNode */.D) {
|
|
233282
|
+
if (pNode.table.tableProperty.isSignLock && pNode.table.tableProperty.isLock) {
|
|
233283
|
+
message/* default */.Z.destroy();
|
|
233284
|
+
message/* default */.Z.error("表格已完成签名,不允许修改编辑。");
|
|
233285
|
+
return false;
|
|
233286
|
+
} else {
|
|
233287
|
+
var c = pNode.row.indexOf(pNode);
|
|
233288
|
+
var colProperty = pNode.table.colInfos[c].colProperty;
|
|
233289
|
+
if (colProperty.isSignLock && colProperty.isLock) {
|
|
233290
|
+
message/* default */.Z.destroy();
|
|
233291
|
+
message/* default */.Z.error("本列已完成签名,不允许修改编辑。");
|
|
233292
|
+
return false;
|
|
233059
233293
|
}
|
|
233060
233294
|
}
|
|
233061
233295
|
}
|
|
@@ -233082,7 +233316,7 @@ var EditController = /*#__PURE__*/function () {
|
|
|
233082
233316
|
/*
|
|
233083
233317
|
* @Author: your name
|
|
233084
233318
|
* @Date: 2021-07-31 09:27:53
|
|
233085
|
-
* @LastEditTime: 2023-01-06
|
|
233319
|
+
* @LastEditTime: 2023-01-06 10:15:24
|
|
233086
233320
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
233087
233321
|
* @Description: In User Settings Edit
|
|
233088
233322
|
* @FilePath: \hoeditor-web\src\editor\externalCall\ElementController.ts
|
|
@@ -233160,7 +233394,7 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
233160
233394
|
*/
|
|
233161
233395
|
}, {
|
|
233162
233396
|
key: "updateTextInputFieldValue",
|
|
233163
|
-
value: function updateTextInputFieldValue(node, text, customProperty, keyValue, value
|
|
233397
|
+
value: function updateTextInputFieldValue(node, text, customProperty, keyValue, value) {
|
|
233164
233398
|
var hPromise = Promise.resolve();
|
|
233165
233399
|
hPromise = hPromise.then(function (res) {
|
|
233166
233400
|
return new Promise( /*#__PURE__*/function () {
|
|
@@ -233237,12 +233471,10 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
233237
233471
|
* 验证病历文件中所有文本域的数据格式
|
|
233238
233472
|
* @param 错误列表(元素,错误信息)
|
|
233239
233473
|
*/
|
|
233240
|
-
|
|
233241
|
-
|
|
233242
|
-
|
|
233243
|
-
|
|
233244
|
-
return hoEditorFactory.vueController.verifyTextFieldsDataFormat();
|
|
233245
|
-
}
|
|
233474
|
+
// public verifyTextFieldsDataFormat(): Array<[TextInputFieldNode, string]> {
|
|
233475
|
+
// const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
233476
|
+
// return hoEditorFactory.vueController.verifyTextFieldsDataFormat();
|
|
233477
|
+
// }
|
|
233246
233478
|
/**
|
|
233247
233479
|
* @description 获取所有的元素:包括日期、下拉选择组件、文本域
|
|
233248
233480
|
* @returns 返回获取到的所有元素
|