hoeditor-web 3.1.13 → 3.1.15
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 -18406
- package/lib/hoeditor.umd.js +306 -126
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -14586,7 +14586,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
14586
14586
|
|
|
14587
14587
|
/***/ }),
|
|
14588
14588
|
|
|
14589
|
-
/***/
|
|
14589
|
+
/***/ 47891:
|
|
14590
14590
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
14591
14591
|
|
|
14592
14592
|
"use strict";
|
|
@@ -14604,7 +14604,7 @@ var es_function_name = __webpack_require__(68309);
|
|
|
14604
14604
|
var es_array_includes = __webpack_require__(26699);
|
|
14605
14605
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
14606
14606
|
var es_string_includes = __webpack_require__(32023);
|
|
14607
|
-
;// 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/selectDialog/SelectDialog.vue?vue&type=template&id=
|
|
14607
|
+
;// 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/selectDialog/SelectDialog.vue?vue&type=template&id=fccf2be2&
|
|
14608
14608
|
|
|
14609
14609
|
|
|
14610
14610
|
|
|
@@ -14996,7 +14996,7 @@ var render = function render() {
|
|
|
14996
14996
|
};
|
|
14997
14997
|
var staticRenderFns = [];
|
|
14998
14998
|
|
|
14999
|
-
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=
|
|
14999
|
+
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=fccf2be2&
|
|
15000
15000
|
|
|
15001
15001
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
15002
15002
|
var objectSpread2 = __webpack_require__(63442);
|
|
@@ -15012,6 +15012,8 @@ var es_object_to_string = __webpack_require__(41539);
|
|
|
15012
15012
|
var web_dom_collections_for_each = __webpack_require__(54747);
|
|
15013
15013
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
15014
15014
|
var es_object_keys = __webpack_require__(47941);
|
|
15015
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
15016
|
+
var es_array_push = __webpack_require__(57658);
|
|
15015
15017
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
15016
15018
|
var es_array_splice = __webpack_require__(40561);
|
|
15017
15019
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
@@ -15020,8 +15022,6 @@ var es_regexp_exec = __webpack_require__(74916);
|
|
|
15020
15022
|
var es_string_replace = __webpack_require__(15306);
|
|
15021
15023
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
15022
15024
|
var es_array_filter = __webpack_require__(57327);
|
|
15023
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
15024
|
-
var es_array_push = __webpack_require__(57658);
|
|
15025
15025
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
|
|
15026
15026
|
var es_array_join = __webpack_require__(69600);
|
|
15027
15027
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DownListNode.ts
|
|
@@ -15079,9 +15079,15 @@ var type = __webpack_require__(41542);
|
|
|
15079
15079
|
errorArr: [],
|
|
15080
15080
|
errorIndex: [],
|
|
15081
15081
|
animationClassNames: 'control-modal-contents select-modal animation-in',
|
|
15082
|
-
tableInfo: null
|
|
15082
|
+
tableInfo: null,
|
|
15083
|
+
modifyProps: {},
|
|
15084
|
+
unwatchProps: [],
|
|
15085
|
+
watchProps: ['name', 'tipText', 'isReadOnly', 'mutexSelect', 'allowMultiSelect', 'isAllowDelete', 'innerIdentifier', 'dataMetaIdentifier', 'identifierFormat', 'readType'
|
|
15086
|
+
// 'downListContent', 'customProperty'
|
|
15087
|
+
]
|
|
15083
15088
|
};
|
|
15084
15089
|
},
|
|
15090
|
+
|
|
15085
15091
|
props: {
|
|
15086
15092
|
hoEditorFactoryId: {
|
|
15087
15093
|
default: ''
|
|
@@ -15122,11 +15128,6 @@ var type = __webpack_require__(41542);
|
|
|
15122
15128
|
if (v.id === undefined) {
|
|
15123
15129
|
v.id = _this.getKeyId(index);
|
|
15124
15130
|
}
|
|
15125
|
-
// if(updateNode.keyValue.includes(v.id)) {
|
|
15126
|
-
// v.default = true;
|
|
15127
|
-
// } else {
|
|
15128
|
-
// v.default = false;
|
|
15129
|
-
// }
|
|
15130
15131
|
return v;
|
|
15131
15132
|
}));
|
|
15132
15133
|
this.innerIdentifier = updateNode.innerIdentifier;
|
|
@@ -15143,6 +15144,7 @@ var type = __webpack_require__(41542);
|
|
|
15143
15144
|
property[key] = _this.customPropertys[key];
|
|
15144
15145
|
});
|
|
15145
15146
|
this.customPropertyValue = (0,objectSpread2/* default */.Z)({}, property);
|
|
15147
|
+
this.setWatchProps();
|
|
15146
15148
|
} else {
|
|
15147
15149
|
this.id = this.vueController.generateID('DL');
|
|
15148
15150
|
this.downListContent = [].concat(list);
|
|
@@ -15152,8 +15154,25 @@ var type = __webpack_require__(41542);
|
|
|
15152
15154
|
this.tableInfo = document.querySelector('.ant-table-body');
|
|
15153
15155
|
},
|
|
15154
15156
|
methods: {
|
|
15155
|
-
|
|
15157
|
+
setWatchProps: function setWatchProps() {
|
|
15156
15158
|
var _this2 = this;
|
|
15159
|
+
this.watchProps.forEach(function (key) {
|
|
15160
|
+
_this2.unwatchProps.push(_this2.$watch("".concat(key), function (newValue, oldValue) {
|
|
15161
|
+
if (key === 'readType') {
|
|
15162
|
+
this.modifyProps['readType'] = newValue ? '1' : '0';
|
|
15163
|
+
} else {
|
|
15164
|
+
this.modifyProps[key] = newValue;
|
|
15165
|
+
}
|
|
15166
|
+
}));
|
|
15167
|
+
});
|
|
15168
|
+
},
|
|
15169
|
+
clearWatchProps: function clearWatchProps() {
|
|
15170
|
+
this.unwatchProps.forEach(function (func) {
|
|
15171
|
+
func && func();
|
|
15172
|
+
});
|
|
15173
|
+
},
|
|
15174
|
+
customRow: function customRow(record, index) {
|
|
15175
|
+
var _this3 = this;
|
|
15157
15176
|
return {
|
|
15158
15177
|
style: {
|
|
15159
15178
|
cursor: 'move'
|
|
@@ -15169,8 +15188,8 @@ var type = __webpack_require__(41542);
|
|
|
15169
15188
|
dragstart: function dragstart(event) {
|
|
15170
15189
|
var ev = event || window.event;
|
|
15171
15190
|
ev.stopPropagation();
|
|
15172
|
-
|
|
15173
|
-
|
|
15191
|
+
_this3.sourceObj = record;
|
|
15192
|
+
_this3.dragStartIndex = index;
|
|
15174
15193
|
},
|
|
15175
15194
|
// 拖动元素经过的元素
|
|
15176
15195
|
dragover: function dragover(event) {
|
|
@@ -15181,9 +15200,9 @@ var type = __webpack_require__(41542);
|
|
|
15181
15200
|
drop: function drop(event) {
|
|
15182
15201
|
var ev = event || window.event;
|
|
15183
15202
|
ev.stopPropagation();
|
|
15184
|
-
|
|
15185
|
-
|
|
15186
|
-
|
|
15203
|
+
_this3.targetObj = record;
|
|
15204
|
+
_this3.downListContent.splice(index, 1, _this3.sourceObj);
|
|
15205
|
+
_this3.downListContent.splice(_this3.dragStartIndex, 1, _this3.targetObj);
|
|
15187
15206
|
}
|
|
15188
15207
|
}
|
|
15189
15208
|
};
|
|
@@ -15230,7 +15249,7 @@ var type = __webpack_require__(41542);
|
|
|
15230
15249
|
}
|
|
15231
15250
|
},
|
|
15232
15251
|
inputIndex: function inputIndex(index) {
|
|
15233
|
-
var
|
|
15252
|
+
var _this4 = this;
|
|
15234
15253
|
var item = this.downListContent[index];
|
|
15235
15254
|
this.errorArr = (0,toConsumableArray/* default */.Z)(this.downListContent.filter(function (v) {
|
|
15236
15255
|
if (v.text === (item === null || item === void 0 ? void 0 : item.text) && v.id !== (item === null || item === void 0 ? void 0 : item.id)) {
|
|
@@ -15245,7 +15264,7 @@ var type = __webpack_require__(41542);
|
|
|
15245
15264
|
if (this.errorArr.length > 0) {
|
|
15246
15265
|
if (!this.errorIndex.includes(item.id)) this.errorIndex.push(item.id);
|
|
15247
15266
|
emptyItem.forEach(function (v) {
|
|
15248
|
-
|
|
15267
|
+
_this4.deleteCurrentRow(v.id);
|
|
15249
15268
|
});
|
|
15250
15269
|
} else {
|
|
15251
15270
|
this.errorIndex = [];
|
|
@@ -15255,7 +15274,7 @@ var type = __webpack_require__(41542);
|
|
|
15255
15274
|
}
|
|
15256
15275
|
},
|
|
15257
15276
|
addCustoms: function addCustoms() {
|
|
15258
|
-
var
|
|
15277
|
+
var _this5 = this;
|
|
15259
15278
|
this.downListContent.push({
|
|
15260
15279
|
text: '',
|
|
15261
15280
|
value: '',
|
|
@@ -15264,18 +15283,18 @@ var type = __webpack_require__(41542);
|
|
|
15264
15283
|
default: false
|
|
15265
15284
|
});
|
|
15266
15285
|
setTimeout(function () {
|
|
15267
|
-
if (
|
|
15268
|
-
|
|
15286
|
+
if (_this5.tableInfo) {
|
|
15287
|
+
_this5.tableInfo.scrollTo(0, 10000);
|
|
15269
15288
|
}
|
|
15270
15289
|
}, 0);
|
|
15271
15290
|
},
|
|
15272
15291
|
setDefault: function setDefault(id) {
|
|
15273
|
-
var
|
|
15292
|
+
var _this6 = this;
|
|
15274
15293
|
this.downListContent = (0,toConsumableArray/* default */.Z)(this.downListContent.map(function (v) {
|
|
15275
15294
|
if (v.id === id) {
|
|
15276
15295
|
if (v.text.replace(/\s*/g, '') !== '') v.default = true;
|
|
15277
15296
|
} else {
|
|
15278
|
-
if (!
|
|
15297
|
+
if (!_this6.allowMultiSelect) v.default = false;
|
|
15279
15298
|
}
|
|
15280
15299
|
return v;
|
|
15281
15300
|
}));
|
|
@@ -15302,7 +15321,7 @@ var type = __webpack_require__(41542);
|
|
|
15302
15321
|
return objs;
|
|
15303
15322
|
},
|
|
15304
15323
|
sure: function sure() {
|
|
15305
|
-
var
|
|
15324
|
+
var _this7 = this;
|
|
15306
15325
|
if (this.errorArr.length !== 0) {
|
|
15307
15326
|
return false;
|
|
15308
15327
|
}
|
|
@@ -15344,18 +15363,20 @@ var type = __webpack_require__(41542);
|
|
|
15344
15363
|
innerIdentifier: this.innerIdentifier,
|
|
15345
15364
|
dataMetaIdentifier: this.dataMetaIdentifier,
|
|
15346
15365
|
identifierFormat: this.identifierFormat,
|
|
15347
|
-
readType: this.readType,
|
|
15366
|
+
readType: this.readType ? 1 : 0,
|
|
15348
15367
|
mutexSelect: this.mutexSelect,
|
|
15349
15368
|
customProperty: this.customProperty
|
|
15350
15369
|
};
|
|
15351
|
-
params.readType ? params.readType = 1 : params.readType = 0;
|
|
15352
15370
|
if (this.controlStatus === 'add') {
|
|
15353
15371
|
this.vueController.insertDownList('add', params, list);
|
|
15354
15372
|
} else if (this.controlStatus === 'update') {
|
|
15355
|
-
this.
|
|
15373
|
+
this.clearWatchProps();
|
|
15374
|
+
this.modifyProps.value = params.value;
|
|
15375
|
+
this.modifyProps.keyValue = params.keyValue;
|
|
15376
|
+
this.vueController.updateDownList(params, list, (0,objectSpread2/* default */.Z)({}, this.modifyProps));
|
|
15356
15377
|
}
|
|
15357
15378
|
this.$nextTick(function () {
|
|
15358
|
-
return
|
|
15379
|
+
return _this7.handleClose();
|
|
15359
15380
|
});
|
|
15360
15381
|
},
|
|
15361
15382
|
getKeyId: function getKeyId(index) {
|
|
@@ -15369,10 +15390,10 @@ var type = __webpack_require__(41542);
|
|
|
15369
15390
|
});
|
|
15370
15391
|
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=script&lang=js&
|
|
15371
15392
|
/* harmony default export */ var selectDialog_SelectDialogvue_type_script_lang_js_ = (SelectDialogvue_type_script_lang_js_);
|
|
15372
|
-
;// 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/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=
|
|
15393
|
+
;// 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/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=fccf2be2&prod&lang=less&
|
|
15373
15394
|
// extracted by mini-css-extract-plugin
|
|
15374
15395
|
|
|
15375
|
-
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=
|
|
15396
|
+
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=fccf2be2&prod&lang=less&
|
|
15376
15397
|
|
|
15377
15398
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
15378
15399
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -21067,7 +21088,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
21067
21088
|
|
|
21068
21089
|
/***/ }),
|
|
21069
21090
|
|
|
21070
|
-
/***/
|
|
21091
|
+
/***/ 35143:
|
|
21071
21092
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21072
21093
|
|
|
21073
21094
|
"use strict";
|
|
@@ -21081,7 +21102,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
21081
21102
|
|
|
21082
21103
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
21083
21104
|
var es_function_name = __webpack_require__(68309);
|
|
21084
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=
|
|
21105
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=d85e2e88&
|
|
21085
21106
|
|
|
21086
21107
|
var render = function render() {
|
|
21087
21108
|
var _vm = this,
|
|
@@ -21561,7 +21582,7 @@ var render = function render() {
|
|
|
21561
21582
|
};
|
|
21562
21583
|
var staticRenderFns = [];
|
|
21563
21584
|
|
|
21564
|
-
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=
|
|
21585
|
+
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=d85e2e88&
|
|
21565
21586
|
|
|
21566
21587
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
21567
21588
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -21583,12 +21604,12 @@ var es_regexp_exec = __webpack_require__(74916);
|
|
|
21583
21604
|
var es_string_replace = __webpack_require__(15306);
|
|
21584
21605
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
21585
21606
|
var es_number_constructor = __webpack_require__(9653);
|
|
21607
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
21608
|
+
var es_array_push = __webpack_require__(57658);
|
|
21586
21609
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
21587
21610
|
var es_array_map = __webpack_require__(21249);
|
|
21588
21611
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
21589
21612
|
var es_json_stringify = __webpack_require__(38862);
|
|
21590
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
21591
|
-
var es_array_push = __webpack_require__(57658);
|
|
21592
21613
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
|
|
21593
21614
|
var es_array_join = __webpack_require__(69600);
|
|
21594
21615
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
@@ -21652,9 +21673,15 @@ var VerifyTip = __webpack_require__(82633);
|
|
|
21652
21673
|
endPath: '',
|
|
21653
21674
|
elementController: {},
|
|
21654
21675
|
verifyKewordList: [],
|
|
21655
|
-
verifyAreaList: []
|
|
21676
|
+
verifyAreaList: [],
|
|
21677
|
+
modifyProps: {},
|
|
21678
|
+
unwatchProps: [],
|
|
21679
|
+
watchProps: ['labelText', 'name', 'tipText', 'fixedWidth', 'isCentered', 'canModifyContent', 'includesKeyword', 'valueArea', 'isAllowDelete', 'enableGlobalColor', 'alignWithBlocked', 'innerIdentifier', 'dataMetaIdentifier', 'identifierFormat', 'readTypeBool', 'keyValue', 'value', 'hideDuringPrint', 'notReplaceElement', 'insCheckSyncUpdateList'
|
|
21680
|
+
// 'downListProperty', 'customProperty'
|
|
21681
|
+
]
|
|
21656
21682
|
};
|
|
21657
21683
|
},
|
|
21684
|
+
|
|
21658
21685
|
props: {
|
|
21659
21686
|
hoEditorFactoryId: {
|
|
21660
21687
|
default: ''
|
|
@@ -21738,12 +21765,30 @@ var VerifyTip = __webpack_require__(82633);
|
|
|
21738
21765
|
} else {
|
|
21739
21766
|
this.textParam.inputFieldType = 0;
|
|
21740
21767
|
}
|
|
21768
|
+
this.setWatchProps();
|
|
21741
21769
|
} else {
|
|
21742
21770
|
this.textParam.id = this.vueController.generateID('TF');
|
|
21743
21771
|
this.textParam.downListProperty.splitCharacter = ',';
|
|
21744
21772
|
}
|
|
21745
21773
|
},
|
|
21746
21774
|
methods: {
|
|
21775
|
+
setWatchProps: function setWatchProps() {
|
|
21776
|
+
var _this2 = this;
|
|
21777
|
+
this.watchProps.forEach(function (key) {
|
|
21778
|
+
_this2.unwatchProps.push(_this2.$watch("textParam.".concat(key), function (newValue, oldValue) {
|
|
21779
|
+
if (key === 'readTypeBool') {
|
|
21780
|
+
this.modifyProps['readType'] = newValue ? '1' : '0';
|
|
21781
|
+
} else {
|
|
21782
|
+
this.modifyProps[key] = newValue;
|
|
21783
|
+
}
|
|
21784
|
+
}));
|
|
21785
|
+
});
|
|
21786
|
+
},
|
|
21787
|
+
clearWatchProps: function clearWatchProps() {
|
|
21788
|
+
this.unwatchProps.forEach(function (func) {
|
|
21789
|
+
func && func();
|
|
21790
|
+
});
|
|
21791
|
+
},
|
|
21747
21792
|
getTextNode: function getTextNode() {
|
|
21748
21793
|
var _this$vueController$f;
|
|
21749
21794
|
var value;
|
|
@@ -21797,7 +21842,7 @@ var VerifyTip = __webpack_require__(82633);
|
|
|
21797
21842
|
});
|
|
21798
21843
|
},
|
|
21799
21844
|
sure: function sure() {
|
|
21800
|
-
var
|
|
21845
|
+
var _this3 = this;
|
|
21801
21846
|
if (this.textParam.inputFieldType === 1) {
|
|
21802
21847
|
this.textParam.downListProperty.source = this.listArrSource;
|
|
21803
21848
|
var arr = this.hoEditorProvider.getListStyle();
|
|
@@ -21821,8 +21866,6 @@ var VerifyTip = __webpack_require__(82633);
|
|
|
21821
21866
|
} else {
|
|
21822
21867
|
this.textParam.downListProperty = new TextInputFieldNode/* DownListProperty */.OL();
|
|
21823
21868
|
}
|
|
21824
|
-
|
|
21825
|
-
// this.textParam.bandDataSource = this.dataSource;
|
|
21826
21869
|
if (this.textParam.inputFieldType === 0) {
|
|
21827
21870
|
this.textParam.name = this.textParam.name ? this.textParam.name : '请输入';
|
|
21828
21871
|
} else if (this.textParam.inputFieldType === 1) {
|
|
@@ -21839,16 +21882,17 @@ var VerifyTip = __webpack_require__(82633);
|
|
|
21839
21882
|
if (this.controlStatus === 'add') {
|
|
21840
21883
|
this.vueController.insertTextInputField(this.controlStatus, this.textParam);
|
|
21841
21884
|
} else if (this.controlStatus === 'update') {
|
|
21842
|
-
this.
|
|
21885
|
+
this.clearWatchProps();
|
|
21886
|
+
this.vueController.updateTextInputField(this.textParam, (0,objectSpread2/* default */.Z)({}, this.modifyProps));
|
|
21843
21887
|
}
|
|
21844
21888
|
if (this.textParam.text.includes('<元素>')) {
|
|
21845
21889
|
setTimeout(function () {
|
|
21846
|
-
var node =
|
|
21890
|
+
var node = _this3.vueController.getNodeByID('main', _this3.textParam.id);
|
|
21847
21891
|
if (node) {
|
|
21848
|
-
|
|
21892
|
+
_this3.elementController.updateTextInputFieldValue(node, _this3.textParam.text, node.customProperty, _this3.textParam.keyValue, _this3.textParam.value);
|
|
21849
21893
|
}
|
|
21850
21894
|
setTimeout(function () {
|
|
21851
|
-
|
|
21895
|
+
_this3.handleClose();
|
|
21852
21896
|
}, 200);
|
|
21853
21897
|
}, 200);
|
|
21854
21898
|
} else {
|
|
@@ -21864,10 +21908,10 @@ var VerifyTip = __webpack_require__(82633);
|
|
|
21864
21908
|
});
|
|
21865
21909
|
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=script&lang=js&
|
|
21866
21910
|
/* harmony default export */ var textDialog_TextDialogvue_type_script_lang_js_ = (TextDialogvue_type_script_lang_js_);
|
|
21867
|
-
;// 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/textDialog/TextDialog.vue?vue&type=style&index=0&id=
|
|
21911
|
+
;// 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/textDialog/TextDialog.vue?vue&type=style&index=0&id=d85e2e88&prod&lang=less&
|
|
21868
21912
|
// extracted by mini-css-extract-plugin
|
|
21869
21913
|
|
|
21870
|
-
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=
|
|
21914
|
+
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=d85e2e88&prod&lang=less&
|
|
21871
21915
|
|
|
21872
21916
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
21873
21917
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -30864,11 +30908,7 @@ var textParams = {
|
|
|
30864
30908
|
canModifyContent: true,
|
|
30865
30909
|
isAllowDelete: false,
|
|
30866
30910
|
enableGlobalColor: false,
|
|
30867
|
-
defaultValue: "",
|
|
30868
|
-
//importStyle: new ImportStyle(),
|
|
30869
30911
|
downListProperty: new _editor_dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_0__/* .DownListProperty */ .OL(),
|
|
30870
|
-
dataVerifyFormat: new _editor_dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_0__/* .DataVerifyFormat */ .wz(),
|
|
30871
|
-
// bandDataSource: dataSource,
|
|
30872
30912
|
customProperty: new Object(),
|
|
30873
30913
|
alignWithBlocked: false,
|
|
30874
30914
|
innerIdentifier: "",
|
|
@@ -30883,7 +30923,6 @@ var textParams = {
|
|
|
30883
30923
|
notReplaceElement: false,
|
|
30884
30924
|
includesKeyword: [],
|
|
30885
30925
|
valueArea: [] // 元素值域范围
|
|
30886
|
-
// isMultiLinesDisplay: false
|
|
30887
30926
|
};
|
|
30888
30927
|
|
|
30889
30928
|
/***/ }),
|
|
@@ -30993,7 +31032,7 @@ var Caret = /*#__PURE__*/function () {
|
|
|
30993
31032
|
if (_draw_DrawConfig__WEBPACK_IMPORTED_MODULE_4__/* .DrawConfig */ .f.instance().transformScale !== 1) {
|
|
30994
31033
|
this.div_cursor.style.height = Math.max(val, 12) + "px";
|
|
30995
31034
|
} else {
|
|
30996
|
-
this.div_cursor.style.height = Math.max(val, 12) * _draw_DrawConfig__WEBPACK_IMPORTED_MODULE_4__/* .DrawConfig */ .f.instance().scaleXY + "px";
|
|
31035
|
+
this.div_cursor.style.height = Math.max(Math.max(val, 12) * _draw_DrawConfig__WEBPACK_IMPORTED_MODULE_4__/* .DrawConfig */ .f.instance().scaleXY, 1) + "px";
|
|
30997
31036
|
}
|
|
30998
31037
|
// this.updateCaret();
|
|
30999
31038
|
}
|
|
@@ -41060,7 +41099,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41060
41099
|
*/
|
|
41061
41100
|
}, {
|
|
41062
41101
|
key: "insertTextInputField",
|
|
41063
|
-
value: function insertTextInputField(operType, curDomRange, valuesObject) {
|
|
41102
|
+
value: function insertTextInputField(operType, curDomRange, valuesObject, updateProps) {
|
|
41064
41103
|
var domRange = curDomRange.normalize();
|
|
41065
41104
|
var startPath = domRange.endPath;
|
|
41066
41105
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -41156,7 +41195,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41156
41195
|
}
|
|
41157
41196
|
var record = hoEditorFactory.docTree.elementChangeRecords.get(node.id + "|" + node.dataId);
|
|
41158
41197
|
if (!record || record.indexOf("add") < 0) {
|
|
41159
|
-
hoEditorFactory.docTree.elementChangeRecords.set(node.id + "|" + node.dataId, "update");
|
|
41198
|
+
hoEditorFactory.docTree.elementChangeRecords.set(node.id + "|" + node.dataId, ["update", updateProps]);
|
|
41160
41199
|
}
|
|
41161
41200
|
return "";
|
|
41162
41201
|
} else {
|
|
@@ -41186,9 +41225,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41186
41225
|
//hoEditorFactory.drawTree.moveCaretToPath(afterPath);
|
|
41187
41226
|
hoEditorFactory.docTree.curDomRange.setSamePath(afterPath);
|
|
41188
41227
|
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_47__/* .TextInputFieldNode */ .re) {
|
|
41189
|
-
hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id + "|" + textInputFieldNode.dataId, "add");
|
|
41228
|
+
hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id + "|" + textInputFieldNode.dataId, ["add"]);
|
|
41190
41229
|
} else {
|
|
41191
|
-
hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id + "|" + textInputFieldNode.dataId, "add0");
|
|
41230
|
+
hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id + "|" + textInputFieldNode.dataId, ["add0"]);
|
|
41192
41231
|
}
|
|
41193
41232
|
return afterPath;
|
|
41194
41233
|
}
|
|
@@ -42438,7 +42477,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42438
42477
|
}, {
|
|
42439
42478
|
key: "insertDownList",
|
|
42440
42479
|
value: function () {
|
|
42441
|
-
var _insertDownList = (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 _callee3(operType, curDomRange, valuesObject, downListContent, styleIndex) {
|
|
42480
|
+
var _insertDownList = (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 _callee3(operType, curDomRange, valuesObject, downListContent, styleIndex, updateProps) {
|
|
42442
42481
|
var domRange, startPath, oldDataID, oldId, hoEditorFactory, np, node, parentNode, downListNode, record;
|
|
42443
42482
|
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 _callee3$(_context3) {
|
|
42444
42483
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -42484,14 +42523,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42484
42523
|
hoEditorFactory.undoService.commit();
|
|
42485
42524
|
if (operType === "add") {
|
|
42486
42525
|
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_47__/* .TextInputFieldNode */ .re) {
|
|
42487
|
-
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + "|" + downListNode.dataId, "add");
|
|
42526
|
+
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + "|" + downListNode.dataId, ["add"]);
|
|
42488
42527
|
} else {
|
|
42489
|
-
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + "|" + downListNode.dataId, "add0");
|
|
42528
|
+
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + "|" + downListNode.dataId, ["add0"]);
|
|
42490
42529
|
}
|
|
42491
42530
|
} else {
|
|
42492
42531
|
record = hoEditorFactory.docTree.elementChangeRecords.get(downListNode.id + "|" + downListNode.dataId);
|
|
42493
42532
|
if (!record || record.indexOf("add") < 0) {
|
|
42494
|
-
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + "|" + downListNode.dataId, "update");
|
|
42533
|
+
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + "|" + downListNode.dataId, ["update", updateProps]);
|
|
42495
42534
|
}
|
|
42496
42535
|
}
|
|
42497
42536
|
case 22:
|
|
@@ -42500,7 +42539,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42500
42539
|
}
|
|
42501
42540
|
}, _callee3, this);
|
|
42502
42541
|
}));
|
|
42503
|
-
function insertDownList(_x6, _x7, _x8, _x9, _x10) {
|
|
42542
|
+
function insertDownList(_x6, _x7, _x8, _x9, _x10, _x11) {
|
|
42504
42543
|
return _insertDownList.apply(this, arguments);
|
|
42505
42544
|
}
|
|
42506
42545
|
return insertDownList;
|
|
@@ -42605,8 +42644,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42605
42644
|
var startPath = domRange.startPath;
|
|
42606
42645
|
var endPath = domRange.endPath;
|
|
42607
42646
|
var ePNode = hoEditorFactory.docTree.getParentNode(endPath); //结束节点的父节点
|
|
42608
|
-
|
|
42609
|
-
|
|
42647
|
+
// const eStyleIndex =
|
|
42648
|
+
// domRange.npEnd.node instanceof TextNode
|
|
42649
|
+
// ? domRange.npEnd.node.styleIndex
|
|
42650
|
+
// : 0;
|
|
42651
|
+
var endNode = new _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j(this._hoEditorFactoryID, domRange.npStart.roots, ePNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMark, commentID, 0, _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNodeType */ .q.mtEnd);
|
|
42610
42652
|
endNode.MarkNodeType = _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNodeType */ .q.mtEnd;
|
|
42611
42653
|
endNode.isReadOnly = true;
|
|
42612
42654
|
hoEditorFactory.undoService.begin();
|
|
@@ -43273,7 +43315,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43273
43315
|
}
|
|
43274
43316
|
}, _callee5, this);
|
|
43275
43317
|
}));
|
|
43276
|
-
function textToLabel(
|
|
43318
|
+
function textToLabel(_x12, _x13) {
|
|
43277
43319
|
return _textToLabel.apply(this, arguments);
|
|
43278
43320
|
}
|
|
43279
43321
|
return textToLabel;
|
|
@@ -53221,7 +53263,7 @@ var ControlNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
53221
53263
|
if (record && record.indexOf("add") >= 0) {
|
|
53222
53264
|
hoEditorFactory.docTree.elementChangeRecords.delete(this.id + "|" + this.dataId);
|
|
53223
53265
|
} else {
|
|
53224
|
-
hoEditorFactory.docTree.elementChangeRecords.set(this.id + "|" + this.dataId, "delete");
|
|
53266
|
+
hoEditorFactory.docTree.elementChangeRecords.set(this.id + "|" + this.dataId, ["delete"]);
|
|
53225
53267
|
}
|
|
53226
53268
|
}
|
|
53227
53269
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(ControlNode.prototype), "delete", this).call(this);
|
|
@@ -59790,7 +59832,7 @@ var RadioAndCheckBoxInstance = /*#__PURE__*/function () {
|
|
|
59790
59832
|
var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
|
|
59791
59833
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(RadioAndCheckBoxNode, _ControlNode);
|
|
59792
59834
|
var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(RadioAndCheckBoxNode);
|
|
59793
|
-
|
|
59835
|
+
//关联带出元素
|
|
59794
59836
|
function RadioAndCheckBoxNode(hoEditorFactoryID, rootNodes, pNode, nodeType, valuesObject, styleIndex //, backColor: string
|
|
59795
59837
|
) {
|
|
59796
59838
|
var _this;
|
|
@@ -59817,6 +59859,8 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
59817
59859
|
(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_1__/* ["default"] */ .Z)(_this), "_groupHasOptions", false);
|
|
59818
59860
|
//同组保存时必须有选项不能全部为空
|
|
59819
59861
|
(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_1__/* ["default"] */ .Z)(_this), "_associatedElement", "");
|
|
59862
|
+
//关联元素id
|
|
59863
|
+
(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_1__/* ["default"] */ .Z)(_this), "_associatedId", "");
|
|
59820
59864
|
_this._styleIndex = styleIndex;
|
|
59821
59865
|
//const valuesObj = eval("(" + valuesObject + ")");
|
|
59822
59866
|
_this.setValuesObject(valuesObject);
|
|
@@ -60022,6 +60066,16 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
60022
60066
|
this._associatedElement = value;
|
|
60023
60067
|
}
|
|
60024
60068
|
}
|
|
60069
|
+
}, {
|
|
60070
|
+
key: "associatedId",
|
|
60071
|
+
get: function get() {
|
|
60072
|
+
return this._associatedId;
|
|
60073
|
+
},
|
|
60074
|
+
set: function set(value) {
|
|
60075
|
+
if (this._associatedId !== value) {
|
|
60076
|
+
this._associatedId = value;
|
|
60077
|
+
}
|
|
60078
|
+
}
|
|
60025
60079
|
// get bandDataSource(): BandDataSource {
|
|
60026
60080
|
// return this._bandDataSource;
|
|
60027
60081
|
// }
|
|
@@ -65744,10 +65798,9 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65744
65798
|
/* harmony export */ Zi: function() { return /* binding */ InputFieldType; },
|
|
65745
65799
|
/* harmony export */ hc: function() { return /* binding */ ExecuteStatus; },
|
|
65746
65800
|
/* harmony export */ mK: function() { return /* binding */ ReadOnlyStatus; },
|
|
65747
|
-
/* harmony export */ re: function() { return /* binding */ TextInputFieldNode; }
|
|
65748
|
-
/* harmony export */ wz: function() { return /* binding */ DataVerifyFormat; }
|
|
65801
|
+
/* harmony export */ re: function() { return /* binding */ TextInputFieldNode; }
|
|
65749
65802
|
/* harmony export */ });
|
|
65750
|
-
/* unused harmony exports SpecialFormat, DataFormat, BandDataSource */
|
|
65803
|
+
/* unused harmony exports SpecialFormat, DataFormat, DataVerifyFormat, BandDataSource */
|
|
65751
65804
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94310);
|
|
65752
65805
|
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(40735);
|
|
65753
65806
|
/* 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);
|
|
@@ -66046,33 +66099,33 @@ var DownListProperty = /*#__PURE__*/function () {
|
|
|
66046
66099
|
}]);
|
|
66047
66100
|
return DownListProperty;
|
|
66048
66101
|
}();
|
|
66049
|
-
var DataVerifyFormat = /*#__PURE__*/function () {
|
|
66102
|
+
var DataVerifyFormat = /*#__PURE__*/(/* unused pure expression or super */ null && (function () {
|
|
66050
66103
|
//数值格式 最大小数位数
|
|
66051
66104
|
// private _noEarlierTheDate!: string;//日期时间格式 不得早于该日期
|
|
66052
66105
|
// private _noLaterTheDate!: string;//日期时间格式 不得晚于该日期
|
|
66053
66106
|
// private _noEarlierTheTime!: string;//时间格式 不得早于该时间
|
|
66054
66107
|
// private _noLaterTheTime!: string;//时间格式 不得晚于该时间
|
|
66055
66108
|
function DataVerifyFormat() {
|
|
66056
|
-
(
|
|
66109
|
+
_classCallCheck(this, DataVerifyFormat);
|
|
66057
66110
|
//数据校验格式
|
|
66058
|
-
(
|
|
66111
|
+
_defineProperty(this, "_mustInputValue", void 0);
|
|
66059
66112
|
//必须输入,不能为空
|
|
66060
|
-
(
|
|
66113
|
+
_defineProperty(this, "_dataFormat", void 0);
|
|
66061
66114
|
//数据格式
|
|
66062
|
-
(
|
|
66115
|
+
_defineProperty(this, "_minLength", void 0);
|
|
66063
66116
|
//文本格式最小长度
|
|
66064
|
-
(
|
|
66117
|
+
_defineProperty(this, "_maxLength", void 0);
|
|
66065
66118
|
//文本格式最大长度
|
|
66066
|
-
(
|
|
66119
|
+
_defineProperty(this, "_onlyInputInt", void 0);
|
|
66067
66120
|
//数值格式 是否只能输入整数
|
|
66068
|
-
(
|
|
66121
|
+
_defineProperty(this, "_minValue", void 0);
|
|
66069
66122
|
//数值格式 最小值
|
|
66070
|
-
(
|
|
66123
|
+
_defineProperty(this, "_maxValue", void 0);
|
|
66071
66124
|
//数值格式 最大值
|
|
66072
|
-
(
|
|
66125
|
+
_defineProperty(this, "_maxSmallBits", void 0);
|
|
66073
66126
|
DataVerifyFormat.setDefaultDataVerifyFormat(this);
|
|
66074
66127
|
}
|
|
66075
|
-
(
|
|
66128
|
+
_createClass(DataVerifyFormat, [{
|
|
66076
66129
|
key: "mustInputValue",
|
|
66077
66130
|
get: function get() {
|
|
66078
66131
|
return this._mustInputValue;
|
|
@@ -66171,7 +66224,7 @@ var DataVerifyFormat = /*#__PURE__*/function () {
|
|
|
66171
66224
|
}
|
|
66172
66225
|
}]);
|
|
66173
66226
|
return DataVerifyFormat;
|
|
66174
|
-
}();
|
|
66227
|
+
}()));
|
|
66175
66228
|
var BandDataSource = /*#__PURE__*/(/* unused pure expression or super */ null && (function () {
|
|
66176
66229
|
//执行状态
|
|
66177
66230
|
function BandDataSource() {
|
|
@@ -67402,7 +67455,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67402
67455
|
if (record && record.indexOf("add") >= 0) {
|
|
67403
67456
|
hoEditorFactory.docTree.elementChangeRecords.delete(this.id + "|" + this.dataId);
|
|
67404
67457
|
} else {
|
|
67405
|
-
hoEditorFactory.docTree.elementChangeRecords.set(this.id + "|" + this.dataId, "delete");
|
|
67458
|
+
hoEditorFactory.docTree.elementChangeRecords.set(this.id + "|" + this.dataId, ["delete"]);
|
|
67406
67459
|
}
|
|
67407
67460
|
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);
|
|
67408
67461
|
} else {
|
|
@@ -77164,6 +77217,9 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
77164
77217
|
}, {
|
|
77165
77218
|
key: "paintLastLineMergeCrossCell",
|
|
77166
77219
|
value: function paintLastLineMergeCrossCell(r, newHeight, tableRestHeight) {
|
|
77220
|
+
if (r >= this._table.rowCount) {
|
|
77221
|
+
return;
|
|
77222
|
+
}
|
|
77167
77223
|
for (var c = 0; c < this._table.colCount; c++) {
|
|
77168
77224
|
var _this$_table$getMainC7 = this._table.getMainCell(r, c),
|
|
77169
77225
|
_this$_table$getMainC8 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC7, 3),
|
|
@@ -78505,7 +78561,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
78505
78561
|
/*
|
|
78506
78562
|
* @Author: your name
|
|
78507
78563
|
* @Date: 2021-09-01 16:51:49
|
|
78508
|
-
* @LastEditTime: 2023-09-
|
|
78564
|
+
* @LastEditTime: 2023-09-21 15:01:26
|
|
78509
78565
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
78510
78566
|
* @Description: In User Settings Edit
|
|
78511
78567
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
|
|
@@ -79295,10 +79351,10 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
79295
79351
|
}
|
|
79296
79352
|
}
|
|
79297
79353
|
if (isFront) {
|
|
79298
|
-
line.graphics.beginStroke('#000000').
|
|
79354
|
+
line.graphics.clear().beginStroke('#000000').moveTo(this.dWidth - this._drawText.getMeasuredWidth(), 2).lineTo(this.dWidth, -theHeight - 2);
|
|
79299
79355
|
this.addChild(line);
|
|
79300
79356
|
} else {
|
|
79301
|
-
line.graphics.beginStroke('#000000').
|
|
79357
|
+
line.graphics.clear().beginStroke('#000000').moveTo(0, 2).lineTo(this._drawText.getMeasuredWidth(), -theHeight - 2);
|
|
79302
79358
|
this.addChildAt(line);
|
|
79303
79359
|
}
|
|
79304
79360
|
}
|
|
@@ -80614,8 +80670,11 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
80614
80670
|
ctx.fillStyle = col;
|
|
80615
80671
|
}
|
|
80616
80672
|
ctx = this._prepContext(ctx);
|
|
80617
|
-
// u2003 html实体全角空格( )
|
|
80618
|
-
|
|
80673
|
+
// \u2003 html实体全角空格( )转换为两个普通空格
|
|
80674
|
+
// \u2002 html实体半角空格( )转换为普通空格
|
|
80675
|
+
// \u00A0 html 不间断空格( )转换为普通空格
|
|
80676
|
+
// const str = this.text.replace(/\ /g, '22').replace(/\ /g, '33').replace(/\u00A0/g, '11');
|
|
80677
|
+
var str = this.text.replace(/\u2003/g, ' ').replace(/\u2002/g, ' ').replace(/\u00A0/g, ' ');
|
|
80619
80678
|
var left = 0;
|
|
80620
80679
|
var docWidth = 0;
|
|
80621
80680
|
this._firstCharWidth = this.getCharWidth(ctx, str[0]);
|
|
@@ -82549,9 +82608,7 @@ var EditorController = /*#__PURE__*/function () {
|
|
|
82549
82608
|
//return true;
|
|
82550
82609
|
} else if (keyCode === 88) {
|
|
82551
82610
|
//解切
|
|
82552
|
-
} else if (keyCode === 67) {
|
|
82553
|
-
//复制
|
|
82554
|
-
} else if (keyCode === 86) {
|
|
82611
|
+
} else if (keyCode === 67) {} else if (keyCode === 86) {
|
|
82555
82612
|
//粘贴
|
|
82556
82613
|
} else if (keyCode === 90 && !shiftKey) {
|
|
82557
82614
|
if (hoeditorfactory.drawTree.paintStatus === PaintState.psReadOnly) {
|
|
@@ -83600,6 +83657,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
83600
83657
|
(0,defineProperty/* default */.Z)(this, "_pageCountNodes", void 0);
|
|
83601
83658
|
(0,defineProperty/* default */.Z)(this, "_errorsMap", void 0);
|
|
83602
83659
|
//错别字提示
|
|
83660
|
+
(0,defineProperty/* default */.Z)(this, "_onInsertNodeByID", void 0);
|
|
83603
83661
|
(0,defineProperty/* default */.Z)(this, "_formularNodes", void 0);
|
|
83604
83662
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
83605
83663
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -83629,6 +83687,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
83629
83687
|
this._pageCountNodes = new Map();
|
|
83630
83688
|
this._formularNodes = new Map();
|
|
83631
83689
|
this._errorsMap = new Map();
|
|
83690
|
+
this._onInsertNodeByID = null;
|
|
83632
83691
|
// this._drawPageMarks = new Array<DrawPageMarkNode>();
|
|
83633
83692
|
// this._nodeMouseOverHandler = new Array<NodeMouseOverHandler>();
|
|
83634
83693
|
// this._nodeMouseOutHandler = new Array<NodeMouseOutHandler>();
|
|
@@ -83784,6 +83843,14 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
83784
83843
|
* Getter formularNodes
|
|
83785
83844
|
* @return {Map<string, TableFormula>}
|
|
83786
83845
|
*/
|
|
83846
|
+
}, {
|
|
83847
|
+
key: "onInsertNodeByID",
|
|
83848
|
+
get: function get() {
|
|
83849
|
+
return this._onInsertNodeByID;
|
|
83850
|
+
},
|
|
83851
|
+
set: function set(onInsertNodeByID) {
|
|
83852
|
+
this._onInsertNodeByID = onInsertNodeByID;
|
|
83853
|
+
}
|
|
83787
83854
|
}, {
|
|
83788
83855
|
key: "formularNodes",
|
|
83789
83856
|
get: function get() {
|
|
@@ -85562,7 +85629,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
85562
85629
|
hoEditorFactory.docController.insertRadioAndCheckBox("update", newDomRangeCur, nodeObjectStr, aNode.styleIndex
|
|
85563
85630
|
//aNode.backColor
|
|
85564
85631
|
);
|
|
85565
|
-
|
|
85632
|
+
//单复选关联元素必填标记
|
|
85566
85633
|
if (e.node.associatedElement) {
|
|
85567
85634
|
var node = hoEditorFactory.vueController.getNodeByDataID("main", e.node.associatedElement);
|
|
85568
85635
|
if (node && node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
@@ -85574,6 +85641,70 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
85574
85641
|
node.update(0);
|
|
85575
85642
|
}
|
|
85576
85643
|
}
|
|
85644
|
+
} else {
|
|
85645
|
+
if (e.node.controlStyle === "RadioBox" && e.node.isSelected) {
|
|
85646
|
+
var _iterator2 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.docTree.radioAndCheckBoxsMap.values()),
|
|
85647
|
+
_step2;
|
|
85648
|
+
try {
|
|
85649
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
85650
|
+
var value = _step2.value;
|
|
85651
|
+
if (value.associatedElement && value.controlStyle === "RadioBox" && value.groupName === groupName && groupName !== "") {
|
|
85652
|
+
var _node = hoEditorFactory.vueController.getNodeByDataID("main", value.associatedElement);
|
|
85653
|
+
if (_node && _node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
85654
|
+
_node.customProperty.must = false;
|
|
85655
|
+
_node.update(0);
|
|
85656
|
+
break;
|
|
85657
|
+
}
|
|
85658
|
+
}
|
|
85659
|
+
}
|
|
85660
|
+
} catch (err) {
|
|
85661
|
+
_iterator2.e(err);
|
|
85662
|
+
} finally {
|
|
85663
|
+
_iterator2.f();
|
|
85664
|
+
}
|
|
85665
|
+
}
|
|
85666
|
+
}
|
|
85667
|
+
//单复选带出关联元素
|
|
85668
|
+
var deleteAssociatedEle = function deleteAssociatedEle(node) {
|
|
85669
|
+
var changeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(_this2._hoEditorFactoryID, DocTree/* DocAction */.gk.daDelete, nodePathCur, "");
|
|
85670
|
+
changeEvent.oldEndPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
85671
|
+
hoEditorFactory.docTree.deleteNode(node, "update");
|
|
85672
|
+
changeEvent.oldDrawTreeLines = new SelectRange/* SelectRange */.E(_this2._hoEditorFactoryID).getRangeDrawTreeLines(nodePathCur, changeEvent.oldEndPath);
|
|
85673
|
+
changeEvent.afterChangePath = nodePathCur;
|
|
85674
|
+
hoEditorFactory.docTree.change(changeEvent);
|
|
85675
|
+
};
|
|
85676
|
+
if (e.node.associatedId) {
|
|
85677
|
+
if (this._onInsertNodeByID) {
|
|
85678
|
+
if (e.node.isSelected) {
|
|
85679
|
+
this._onInsertNodeByID(nodePathCur, e.node.associatedId);
|
|
85680
|
+
} else {
|
|
85681
|
+
var _node2 = hoEditorFactory.vueController.getNodeByDataID("main", e.node.associatedId);
|
|
85682
|
+
if (_node2) {
|
|
85683
|
+
deleteAssociatedEle(_node2);
|
|
85684
|
+
}
|
|
85685
|
+
}
|
|
85686
|
+
}
|
|
85687
|
+
} else {
|
|
85688
|
+
if (e.node.controlStyle === "RadioBox" && e.node.isSelected) {
|
|
85689
|
+
var _iterator3 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.docTree.radioAndCheckBoxsMap.values()),
|
|
85690
|
+
_step3;
|
|
85691
|
+
try {
|
|
85692
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
85693
|
+
var _value = _step3.value;
|
|
85694
|
+
if (_value.associatedId && _value.controlStyle === "RadioBox" && _value.groupName === groupName && groupName !== "") {
|
|
85695
|
+
var _node3 = hoEditorFactory.vueController.getNodeByDataID("main", _value.associatedId);
|
|
85696
|
+
if (_node3) {
|
|
85697
|
+
deleteAssociatedEle(_node3);
|
|
85698
|
+
break;
|
|
85699
|
+
}
|
|
85700
|
+
}
|
|
85701
|
+
}
|
|
85702
|
+
} catch (err) {
|
|
85703
|
+
_iterator3.e(err);
|
|
85704
|
+
} finally {
|
|
85705
|
+
_iterator3.f();
|
|
85706
|
+
}
|
|
85707
|
+
}
|
|
85577
85708
|
}
|
|
85578
85709
|
}
|
|
85579
85710
|
}
|
|
@@ -85698,12 +85829,12 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
85698
85829
|
selectStart = "".concat(_dNode.node.getNodePath(), "/").concat(childIndex);
|
|
85699
85830
|
}
|
|
85700
85831
|
} else if ((0,IDrawInfos/* instanceOfIDrawInfos */.r)(_dNode)) {
|
|
85701
|
-
var
|
|
85702
|
-
var _dindex =
|
|
85703
|
-
if (
|
|
85704
|
-
selectStart = "".concat(
|
|
85832
|
+
var _node4 = _dNode.node;
|
|
85833
|
+
var _dindex = _node4.drawNodes.indexOf(_dNode);
|
|
85834
|
+
if (_node4.hasChildPath()) {
|
|
85835
|
+
selectStart = "".concat(_node4.getNodePath(), "/").concat(_dindex);
|
|
85705
85836
|
} else {
|
|
85706
|
-
selectStart = "".concat(
|
|
85837
|
+
selectStart = "".concat(_node4.getNodePath());
|
|
85707
85838
|
}
|
|
85708
85839
|
}
|
|
85709
85840
|
}
|
|
@@ -91571,6 +91702,7 @@ var TableInsertParagraphUndoUnit = /*#__PURE__*/function () {
|
|
|
91571
91702
|
var newRange = new _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_5__/* .DomRange */ .a(this._hoEditorFactoryID, caretPath, caretPath);
|
|
91572
91703
|
var scgEvent = new _editor_events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_9__/* .SelectionChangeEvent */ .r(oldRange, newRange);
|
|
91573
91704
|
hoEditorFactory.docTree.selectChange(scgEvent);
|
|
91705
|
+
this._positionNode.update();
|
|
91574
91706
|
return;
|
|
91575
91707
|
}
|
|
91576
91708
|
}, {
|
|
@@ -91601,6 +91733,7 @@ var TableInsertParagraphUndoUnit = /*#__PURE__*/function () {
|
|
|
91601
91733
|
var newRange = new _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_5__/* .DomRange */ .a(this._hoEditorFactoryID, endPath, endPath);
|
|
91602
91734
|
var scgEvent = new _editor_events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_9__/* .SelectionChangeEvent */ .r(oldRange, newRange);
|
|
91603
91735
|
hoeditorfacotry.docTree.selectChange(scgEvent);
|
|
91736
|
+
this._positionNode.update();
|
|
91604
91737
|
}
|
|
91605
91738
|
}, {
|
|
91606
91739
|
key: "merge",
|
|
@@ -177089,7 +177222,7 @@ var map = {
|
|
|
177089
177222
|
"./printstyle/PrintLineStyle.vue": 51484,
|
|
177090
177223
|
"./qrCode/QrCode.vue": 93973,
|
|
177091
177224
|
"./radioCheckBox/RadioCheckbox.vue": 23875,
|
|
177092
|
-
"./selectDialog/SelectDialog.vue":
|
|
177225
|
+
"./selectDialog/SelectDialog.vue": 47891,
|
|
177093
177226
|
"./sign/Sign.vue": 64207,
|
|
177094
177227
|
"./table/TableCellPoper.vue": 2043,
|
|
177095
177228
|
"./table/TableCellProperty.vue": 63689,
|
|
@@ -177099,7 +177232,7 @@ var map = {
|
|
|
177099
177232
|
"./table/TableFormula.vue": 58585,
|
|
177100
177233
|
"./table/TableProperty.vue": 89305,
|
|
177101
177234
|
"./table/TableRowProperty.vue": 21568,
|
|
177102
|
-
"./textDialog/TextDialog.vue":
|
|
177235
|
+
"./textDialog/TextDialog.vue": 35143,
|
|
177103
177236
|
"./textDialog/TextToLabelDialog.vue": 2355,
|
|
177104
177237
|
"./textDialog/VerifyTip.vue": 82633,
|
|
177105
177238
|
"./upload/CanvasImageDialog.vue": 40061,
|
|
@@ -214537,8 +214670,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
214537
214670
|
var es_number_constructor = __webpack_require__(9653);
|
|
214538
214671
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
214539
214672
|
var es_json_stringify = __webpack_require__(38862);
|
|
214540
|
-
;// 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=
|
|
214541
|
-
var
|
|
214673
|
+
;// 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=cbe64bbc&
|
|
214674
|
+
var HoDocvue_type_template_id_cbe64bbc_render = function render() {
|
|
214542
214675
|
var _vm = this,
|
|
214543
214676
|
_c = _vm._self._c;
|
|
214544
214677
|
return _c('div', {
|
|
@@ -214667,7 +214800,15 @@ var HoDocvue_type_template_id_4d76cdc3_render = function render() {
|
|
|
214667
214800
|
}],
|
|
214668
214801
|
ref: "rightMenuModal",
|
|
214669
214802
|
staticClass: "create-right-menu"
|
|
214670
|
-
}, [
|
|
214803
|
+
}, [_c('li', {
|
|
214804
|
+
staticClass: "mouse-menu-item",
|
|
214805
|
+
staticStyle: {
|
|
214806
|
+
"justify-content": "space-between"
|
|
214807
|
+
},
|
|
214808
|
+
on: {
|
|
214809
|
+
"click": _vm.hoCopy
|
|
214810
|
+
}
|
|
214811
|
+
}, [_c('span', [_vm._v("复制")]), _c('span', [_vm._v("Ctrl + C")])]), _vm.showCommentsBtn ? _c('li', {
|
|
214671
214812
|
staticClass: "mouse-menu-item",
|
|
214672
214813
|
on: {
|
|
214673
214814
|
"click": _vm.hideComments
|
|
@@ -214686,7 +214827,7 @@ var HoDocvue_type_template_id_4d76cdc3_render = function render() {
|
|
|
214686
214827
|
}
|
|
214687
214828
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
214688
214829
|
};
|
|
214689
|
-
var
|
|
214830
|
+
var HoDocvue_type_template_id_cbe64bbc_staticRenderFns = [];
|
|
214690
214831
|
|
|
214691
214832
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
214692
214833
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -217691,7 +217832,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
217691
217832
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
217692
217833
|
var ParagraphNode = __webpack_require__(67945);
|
|
217693
217834
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
217694
|
-
/* harmony default export */ var version = ('3.1.
|
|
217835
|
+
/* harmony default export */ var version = ('3.1.15');
|
|
217695
217836
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
217696
217837
|
var PoperTipText = __webpack_require__(50987);
|
|
217697
217838
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -218420,6 +218561,15 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218420
218561
|
_this6.$emit('rightClickEventIn', rightPosition);
|
|
218421
218562
|
});
|
|
218422
218563
|
},
|
|
218564
|
+
hoCopy: function hoCopy(e) {
|
|
218565
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
218566
|
+
hoEditorFactory.drawTree.editor.input.focus();
|
|
218567
|
+
document.execCommand('Copy');
|
|
218568
|
+
setTimeout(function () {
|
|
218569
|
+
hoEditorFactory.drawTree.editor.input.blur();
|
|
218570
|
+
}, 100);
|
|
218571
|
+
this.isCreateRightMenuModal = false;
|
|
218572
|
+
},
|
|
218423
218573
|
/**
|
|
218424
218574
|
* 打开和隐藏批注
|
|
218425
218575
|
*/
|
|
@@ -218452,10 +218602,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218452
218602
|
});
|
|
218453
218603
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
218454
218604
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
218455
|
-
;// 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=
|
|
218605
|
+
;// 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=cbe64bbc&prod&lang=less&
|
|
218456
218606
|
// extracted by mini-css-extract-plugin
|
|
218457
218607
|
|
|
218458
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
218608
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=cbe64bbc&prod&lang=less&
|
|
218459
218609
|
|
|
218460
218610
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
218461
218611
|
|
|
@@ -218468,8 +218618,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218468
218618
|
|
|
218469
218619
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
218470
218620
|
components_HoDocvue_type_script_lang_js_,
|
|
218471
|
-
|
|
218472
|
-
|
|
218621
|
+
HoDocvue_type_template_id_cbe64bbc_render,
|
|
218622
|
+
HoDocvue_type_template_id_cbe64bbc_staticRenderFns,
|
|
218473
218623
|
false,
|
|
218474
218624
|
null,
|
|
218475
218625
|
null,
|
|
@@ -219180,7 +219330,9 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219180
219330
|
}
|
|
219181
219331
|
bFinishedPaint = _dobj2.isFinishedPaint();
|
|
219182
219332
|
}
|
|
219183
|
-
dTop +=
|
|
219333
|
+
dTop += cbParagraph.lineSpace;
|
|
219334
|
+
//2023-09-22新加改行
|
|
219335
|
+
restHeight -= cbParagraph.lineSpace;
|
|
219184
219336
|
}
|
|
219185
219337
|
} else {
|
|
219186
219338
|
if (_dobj2.dHeight > restHeight && dTop > 0) {
|
|
@@ -226032,14 +226184,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
226032
226184
|
*/
|
|
226033
226185
|
}, {
|
|
226034
226186
|
key: "updateTextInputField",
|
|
226035
|
-
value: function updateTextInputField(valuesObject) {
|
|
226187
|
+
value: function updateTextInputField(valuesObject, updateProps) {
|
|
226036
226188
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
226037
226189
|
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
226038
226190
|
var startPath = _curDomRange.normalize().startPath;
|
|
226039
226191
|
var endPath = _curDomRange.normalize().endPath;
|
|
226040
226192
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.updateTextInputField);
|
|
226041
226193
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
226042
|
-
hoEditorFactory.docController.insertTextInputField('update', _curDomRange, valuesObject);
|
|
226194
|
+
hoEditorFactory.docController.insertTextInputField('update', _curDomRange, valuesObject, updateProps);
|
|
226043
226195
|
}
|
|
226044
226196
|
}
|
|
226045
226197
|
/**
|
|
@@ -226397,14 +226549,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
226397
226549
|
*/
|
|
226398
226550
|
}, {
|
|
226399
226551
|
key: "updateDownList",
|
|
226400
|
-
value: function updateDownList(valuesObject, downListContent) {
|
|
226552
|
+
value: function updateDownList(valuesObject, downListContent, updateProps) {
|
|
226401
226553
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
226402
226554
|
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
226403
226555
|
var startPath = _curDomRange.normalize().startPath;
|
|
226404
226556
|
var endPath = _curDomRange.normalize().endPath;
|
|
226405
226557
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.updateDownList);
|
|
226406
226558
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
226407
|
-
HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDownList('update', _curDomRange, valuesObject, downListContent, hoEditorFactory.docTree.curStyleIndex);
|
|
226559
|
+
HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDownList('update', _curDomRange, valuesObject, downListContent, hoEditorFactory.docTree.curStyleIndex, updateProps);
|
|
226408
226560
|
}
|
|
226409
226561
|
}
|
|
226410
226562
|
/**
|
|
@@ -229338,11 +229490,15 @@ var VueController = /*#__PURE__*/function () {
|
|
|
229338
229490
|
if (startPosition) {
|
|
229339
229491
|
var sLine = startPosition.dline;
|
|
229340
229492
|
if (sLine instanceof DrawLine/* DrawLine */.a) {
|
|
229341
|
-
if (
|
|
229342
|
-
sPath =
|
|
229343
|
-
//sPath = hoEditorFactory.docTree.getNodeLastPath(sLine.parent._drawPageTable.table);
|
|
229493
|
+
if (pageIndex == 0) {
|
|
229494
|
+
sPath = "main/0";
|
|
229344
229495
|
} else {
|
|
229345
|
-
|
|
229496
|
+
if (sLine.parent instanceof DrawPageCell/* DrawPageCell */.k) {
|
|
229497
|
+
sPath = sLine.parent._drawPageTable.table.nextLeaf().getNodePath();
|
|
229498
|
+
//sPath = hoEditorFactory.docTree.getNodeLastPath(sLine.parent._drawPageTable.table);
|
|
229499
|
+
} else {
|
|
229500
|
+
sPath = startPosition.path;
|
|
229501
|
+
}
|
|
229346
229502
|
}
|
|
229347
229503
|
} else {
|
|
229348
229504
|
sPath = sLine.table.paragraphNode.getNodePath();
|
|
@@ -232337,7 +232493,18 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232337
232493
|
}
|
|
232338
232494
|
}
|
|
232339
232495
|
if (table) {
|
|
232340
|
-
var
|
|
232496
|
+
var rowIndex = this.getTableTitleMaxRowIndex(table);
|
|
232497
|
+
if (rowIndex === -1) {
|
|
232498
|
+
rowIndex = 0;
|
|
232499
|
+
}
|
|
232500
|
+
var rowCellNum = 0;
|
|
232501
|
+
for (var r = 0; r <= rowIndex; r++) {
|
|
232502
|
+
for (var c = 0; c < table.colCount; c++) {
|
|
232503
|
+
if (table.rows[r][c]) {
|
|
232504
|
+
rowCellNum++;
|
|
232505
|
+
}
|
|
232506
|
+
}
|
|
232507
|
+
}
|
|
232341
232508
|
for (var _k4 = rowCellNum; _k4 < table.childNodes.length; _k4++) {
|
|
232342
232509
|
var cell = table.childNodes[_k4];
|
|
232343
232510
|
if (cell.childNodes.length > 1) {
|
|
@@ -232347,8 +232514,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232347
232514
|
}
|
|
232348
232515
|
if (table.childNodes.length - rowCellNum < data.length) {
|
|
232349
232516
|
var needCellNum = data.length - (table.childNodes.length - rowCellNum);
|
|
232350
|
-
var needRows = Number((needCellNum /
|
|
232351
|
-
var remainder = needCellNum %
|
|
232517
|
+
var needRows = Number((needCellNum / table.colCount).toFixed());
|
|
232518
|
+
var remainder = needCellNum % table.colCount;
|
|
232352
232519
|
if (remainder > 0) {
|
|
232353
232520
|
needRows++;
|
|
232354
232521
|
}
|
|
@@ -232450,14 +232617,27 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232450
232617
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232451
232618
|
var recordArr = new Array();
|
|
232452
232619
|
var records = hoEditorFactory.docTree.elementChangeRecords;
|
|
232620
|
+
var obj = new Object();
|
|
232453
232621
|
records.forEach(function (value, key) {
|
|
232454
|
-
if (value !== "add0") {
|
|
232455
|
-
|
|
232456
|
-
|
|
232457
|
-
|
|
232458
|
-
|
|
232459
|
-
|
|
232460
|
-
|
|
232622
|
+
if (value[0] !== "add0") {
|
|
232623
|
+
if (value[0] === "delete" || value[0] === "add") {
|
|
232624
|
+
obj = {
|
|
232625
|
+
"type": value[0],
|
|
232626
|
+
"id": key.split("|")[0],
|
|
232627
|
+
"dataid": key.split("|")[1]
|
|
232628
|
+
};
|
|
232629
|
+
recordArr.push(obj);
|
|
232630
|
+
} else {
|
|
232631
|
+
if (Object.keys(value[1]).length > 0) {
|
|
232632
|
+
obj = {
|
|
232633
|
+
"type": value[0],
|
|
232634
|
+
"id": key.split("|")[0],
|
|
232635
|
+
"dataid": key.split("|")[1],
|
|
232636
|
+
"record": value[1]
|
|
232637
|
+
};
|
|
232638
|
+
recordArr.push(obj);
|
|
232639
|
+
}
|
|
232640
|
+
}
|
|
232461
232641
|
}
|
|
232462
232642
|
});
|
|
232463
232643
|
return recordArr;
|