hoeditor-web 3.1.14 → 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.umd.js +191 -111
- 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;
|
|
@@ -43276,7 +43315,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43276
43315
|
}
|
|
43277
43316
|
}, _callee5, this);
|
|
43278
43317
|
}));
|
|
43279
|
-
function textToLabel(
|
|
43318
|
+
function textToLabel(_x12, _x13) {
|
|
43280
43319
|
return _textToLabel.apply(this, arguments);
|
|
43281
43320
|
}
|
|
43282
43321
|
return textToLabel;
|
|
@@ -53224,7 +53263,7 @@ var ControlNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
53224
53263
|
if (record && record.indexOf("add") >= 0) {
|
|
53225
53264
|
hoEditorFactory.docTree.elementChangeRecords.delete(this.id + "|" + this.dataId);
|
|
53226
53265
|
} else {
|
|
53227
|
-
hoEditorFactory.docTree.elementChangeRecords.set(this.id + "|" + this.dataId, "delete");
|
|
53266
|
+
hoEditorFactory.docTree.elementChangeRecords.set(this.id + "|" + this.dataId, ["delete"]);
|
|
53228
53267
|
}
|
|
53229
53268
|
}
|
|
53230
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);
|
|
@@ -65759,10 +65798,9 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65759
65798
|
/* harmony export */ Zi: function() { return /* binding */ InputFieldType; },
|
|
65760
65799
|
/* harmony export */ hc: function() { return /* binding */ ExecuteStatus; },
|
|
65761
65800
|
/* harmony export */ mK: function() { return /* binding */ ReadOnlyStatus; },
|
|
65762
|
-
/* harmony export */ re: function() { return /* binding */ TextInputFieldNode; }
|
|
65763
|
-
/* harmony export */ wz: function() { return /* binding */ DataVerifyFormat; }
|
|
65801
|
+
/* harmony export */ re: function() { return /* binding */ TextInputFieldNode; }
|
|
65764
65802
|
/* harmony export */ });
|
|
65765
|
-
/* unused harmony exports SpecialFormat, DataFormat, BandDataSource */
|
|
65803
|
+
/* unused harmony exports SpecialFormat, DataFormat, DataVerifyFormat, BandDataSource */
|
|
65766
65804
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94310);
|
|
65767
65805
|
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(40735);
|
|
65768
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);
|
|
@@ -66061,33 +66099,33 @@ var DownListProperty = /*#__PURE__*/function () {
|
|
|
66061
66099
|
}]);
|
|
66062
66100
|
return DownListProperty;
|
|
66063
66101
|
}();
|
|
66064
|
-
var DataVerifyFormat = /*#__PURE__*/function () {
|
|
66102
|
+
var DataVerifyFormat = /*#__PURE__*/(/* unused pure expression or super */ null && (function () {
|
|
66065
66103
|
//数值格式 最大小数位数
|
|
66066
66104
|
// private _noEarlierTheDate!: string;//日期时间格式 不得早于该日期
|
|
66067
66105
|
// private _noLaterTheDate!: string;//日期时间格式 不得晚于该日期
|
|
66068
66106
|
// private _noEarlierTheTime!: string;//时间格式 不得早于该时间
|
|
66069
66107
|
// private _noLaterTheTime!: string;//时间格式 不得晚于该时间
|
|
66070
66108
|
function DataVerifyFormat() {
|
|
66071
|
-
(
|
|
66109
|
+
_classCallCheck(this, DataVerifyFormat);
|
|
66072
66110
|
//数据校验格式
|
|
66073
|
-
(
|
|
66111
|
+
_defineProperty(this, "_mustInputValue", void 0);
|
|
66074
66112
|
//必须输入,不能为空
|
|
66075
|
-
(
|
|
66113
|
+
_defineProperty(this, "_dataFormat", void 0);
|
|
66076
66114
|
//数据格式
|
|
66077
|
-
(
|
|
66115
|
+
_defineProperty(this, "_minLength", void 0);
|
|
66078
66116
|
//文本格式最小长度
|
|
66079
|
-
(
|
|
66117
|
+
_defineProperty(this, "_maxLength", void 0);
|
|
66080
66118
|
//文本格式最大长度
|
|
66081
|
-
(
|
|
66119
|
+
_defineProperty(this, "_onlyInputInt", void 0);
|
|
66082
66120
|
//数值格式 是否只能输入整数
|
|
66083
|
-
(
|
|
66121
|
+
_defineProperty(this, "_minValue", void 0);
|
|
66084
66122
|
//数值格式 最小值
|
|
66085
|
-
(
|
|
66123
|
+
_defineProperty(this, "_maxValue", void 0);
|
|
66086
66124
|
//数值格式 最大值
|
|
66087
|
-
(
|
|
66125
|
+
_defineProperty(this, "_maxSmallBits", void 0);
|
|
66088
66126
|
DataVerifyFormat.setDefaultDataVerifyFormat(this);
|
|
66089
66127
|
}
|
|
66090
|
-
(
|
|
66128
|
+
_createClass(DataVerifyFormat, [{
|
|
66091
66129
|
key: "mustInputValue",
|
|
66092
66130
|
get: function get() {
|
|
66093
66131
|
return this._mustInputValue;
|
|
@@ -66186,7 +66224,7 @@ var DataVerifyFormat = /*#__PURE__*/function () {
|
|
|
66186
66224
|
}
|
|
66187
66225
|
}]);
|
|
66188
66226
|
return DataVerifyFormat;
|
|
66189
|
-
}();
|
|
66227
|
+
}()));
|
|
66190
66228
|
var BandDataSource = /*#__PURE__*/(/* unused pure expression or super */ null && (function () {
|
|
66191
66229
|
//执行状态
|
|
66192
66230
|
function BandDataSource() {
|
|
@@ -67417,7 +67455,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67417
67455
|
if (record && record.indexOf("add") >= 0) {
|
|
67418
67456
|
hoEditorFactory.docTree.elementChangeRecords.delete(this.id + "|" + this.dataId);
|
|
67419
67457
|
} else {
|
|
67420
|
-
hoEditorFactory.docTree.elementChangeRecords.set(this.id + "|" + this.dataId, "delete");
|
|
67458
|
+
hoEditorFactory.docTree.elementChangeRecords.set(this.id + "|" + this.dataId, ["delete"]);
|
|
67421
67459
|
}
|
|
67422
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);
|
|
67423
67461
|
} else {
|
|
@@ -77179,6 +77217,9 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
77179
77217
|
}, {
|
|
77180
77218
|
key: "paintLastLineMergeCrossCell",
|
|
77181
77219
|
value: function paintLastLineMergeCrossCell(r, newHeight, tableRestHeight) {
|
|
77220
|
+
if (r >= this._table.rowCount) {
|
|
77221
|
+
return;
|
|
77222
|
+
}
|
|
77182
77223
|
for (var c = 0; c < this._table.colCount; c++) {
|
|
77183
77224
|
var _this$_table$getMainC7 = this._table.getMainCell(r, c),
|
|
77184
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),
|
|
@@ -80629,8 +80670,11 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
80629
80670
|
ctx.fillStyle = col;
|
|
80630
80671
|
}
|
|
80631
80672
|
ctx = this._prepContext(ctx);
|
|
80632
|
-
// u2003 html实体全角空格( )
|
|
80633
|
-
|
|
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, ' ');
|
|
80634
80678
|
var left = 0;
|
|
80635
80679
|
var docWidth = 0;
|
|
80636
80680
|
this._firstCharWidth = this.getCharWidth(ctx, str[0]);
|
|
@@ -82564,9 +82608,7 @@ var EditorController = /*#__PURE__*/function () {
|
|
|
82564
82608
|
//return true;
|
|
82565
82609
|
} else if (keyCode === 88) {
|
|
82566
82610
|
//解切
|
|
82567
|
-
} else if (keyCode === 67) {
|
|
82568
|
-
//复制
|
|
82569
|
-
} else if (keyCode === 86) {
|
|
82611
|
+
} else if (keyCode === 67) {} else if (keyCode === 86) {
|
|
82570
82612
|
//粘贴
|
|
82571
82613
|
} else if (keyCode === 90 && !shiftKey) {
|
|
82572
82614
|
if (hoeditorfactory.drawTree.paintStatus === PaintState.psReadOnly) {
|
|
@@ -91660,6 +91702,7 @@ var TableInsertParagraphUndoUnit = /*#__PURE__*/function () {
|
|
|
91660
91702
|
var newRange = new _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_5__/* .DomRange */ .a(this._hoEditorFactoryID, caretPath, caretPath);
|
|
91661
91703
|
var scgEvent = new _editor_events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_9__/* .SelectionChangeEvent */ .r(oldRange, newRange);
|
|
91662
91704
|
hoEditorFactory.docTree.selectChange(scgEvent);
|
|
91705
|
+
this._positionNode.update();
|
|
91663
91706
|
return;
|
|
91664
91707
|
}
|
|
91665
91708
|
}, {
|
|
@@ -91690,6 +91733,7 @@ var TableInsertParagraphUndoUnit = /*#__PURE__*/function () {
|
|
|
91690
91733
|
var newRange = new _editor_dom_DomRange__WEBPACK_IMPORTED_MODULE_5__/* .DomRange */ .a(this._hoEditorFactoryID, endPath, endPath);
|
|
91691
91734
|
var scgEvent = new _editor_events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_9__/* .SelectionChangeEvent */ .r(oldRange, newRange);
|
|
91692
91735
|
hoeditorfacotry.docTree.selectChange(scgEvent);
|
|
91736
|
+
this._positionNode.update();
|
|
91693
91737
|
}
|
|
91694
91738
|
}, {
|
|
91695
91739
|
key: "merge",
|
|
@@ -177178,7 +177222,7 @@ var map = {
|
|
|
177178
177222
|
"./printstyle/PrintLineStyle.vue": 51484,
|
|
177179
177223
|
"./qrCode/QrCode.vue": 93973,
|
|
177180
177224
|
"./radioCheckBox/RadioCheckbox.vue": 23875,
|
|
177181
|
-
"./selectDialog/SelectDialog.vue":
|
|
177225
|
+
"./selectDialog/SelectDialog.vue": 47891,
|
|
177182
177226
|
"./sign/Sign.vue": 64207,
|
|
177183
177227
|
"./table/TableCellPoper.vue": 2043,
|
|
177184
177228
|
"./table/TableCellProperty.vue": 63689,
|
|
@@ -177188,7 +177232,7 @@ var map = {
|
|
|
177188
177232
|
"./table/TableFormula.vue": 58585,
|
|
177189
177233
|
"./table/TableProperty.vue": 89305,
|
|
177190
177234
|
"./table/TableRowProperty.vue": 21568,
|
|
177191
|
-
"./textDialog/TextDialog.vue":
|
|
177235
|
+
"./textDialog/TextDialog.vue": 35143,
|
|
177192
177236
|
"./textDialog/TextToLabelDialog.vue": 2355,
|
|
177193
177237
|
"./textDialog/VerifyTip.vue": 82633,
|
|
177194
177238
|
"./upload/CanvasImageDialog.vue": 40061,
|
|
@@ -214626,8 +214670,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
214626
214670
|
var es_number_constructor = __webpack_require__(9653);
|
|
214627
214671
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
214628
214672
|
var es_json_stringify = __webpack_require__(38862);
|
|
214629
|
-
;// 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=
|
|
214630
|
-
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() {
|
|
214631
214675
|
var _vm = this,
|
|
214632
214676
|
_c = _vm._self._c;
|
|
214633
214677
|
return _c('div', {
|
|
@@ -214756,7 +214800,15 @@ var HoDocvue_type_template_id_4d76cdc3_render = function render() {
|
|
|
214756
214800
|
}],
|
|
214757
214801
|
ref: "rightMenuModal",
|
|
214758
214802
|
staticClass: "create-right-menu"
|
|
214759
|
-
}, [
|
|
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', {
|
|
214760
214812
|
staticClass: "mouse-menu-item",
|
|
214761
214813
|
on: {
|
|
214762
214814
|
"click": _vm.hideComments
|
|
@@ -214775,7 +214827,7 @@ var HoDocvue_type_template_id_4d76cdc3_render = function render() {
|
|
|
214775
214827
|
}
|
|
214776
214828
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
214777
214829
|
};
|
|
214778
|
-
var
|
|
214830
|
+
var HoDocvue_type_template_id_cbe64bbc_staticRenderFns = [];
|
|
214779
214831
|
|
|
214780
214832
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
214781
214833
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -217780,7 +217832,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
217780
217832
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
217781
217833
|
var ParagraphNode = __webpack_require__(67945);
|
|
217782
217834
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
217783
|
-
/* harmony default export */ var version = ('3.1.
|
|
217835
|
+
/* harmony default export */ var version = ('3.1.15');
|
|
217784
217836
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
217785
217837
|
var PoperTipText = __webpack_require__(50987);
|
|
217786
217838
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -218509,6 +218561,15 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218509
218561
|
_this6.$emit('rightClickEventIn', rightPosition);
|
|
218510
218562
|
});
|
|
218511
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
|
+
},
|
|
218512
218573
|
/**
|
|
218513
218574
|
* 打开和隐藏批注
|
|
218514
218575
|
*/
|
|
@@ -218541,10 +218602,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218541
218602
|
});
|
|
218542
218603
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
218543
218604
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
218544
|
-
;// 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&
|
|
218545
218606
|
// extracted by mini-css-extract-plugin
|
|
218546
218607
|
|
|
218547
|
-
;// 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&
|
|
218548
218609
|
|
|
218549
218610
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
218550
218611
|
|
|
@@ -218557,8 +218618,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218557
218618
|
|
|
218558
218619
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
218559
218620
|
components_HoDocvue_type_script_lang_js_,
|
|
218560
|
-
|
|
218561
|
-
|
|
218621
|
+
HoDocvue_type_template_id_cbe64bbc_render,
|
|
218622
|
+
HoDocvue_type_template_id_cbe64bbc_staticRenderFns,
|
|
218562
218623
|
false,
|
|
218563
218624
|
null,
|
|
218564
218625
|
null,
|
|
@@ -219269,7 +219330,9 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219269
219330
|
}
|
|
219270
219331
|
bFinishedPaint = _dobj2.isFinishedPaint();
|
|
219271
219332
|
}
|
|
219272
|
-
dTop +=
|
|
219333
|
+
dTop += cbParagraph.lineSpace;
|
|
219334
|
+
//2023-09-22新加改行
|
|
219335
|
+
restHeight -= cbParagraph.lineSpace;
|
|
219273
219336
|
}
|
|
219274
219337
|
} else {
|
|
219275
219338
|
if (_dobj2.dHeight > restHeight && dTop > 0) {
|
|
@@ -226121,14 +226184,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
226121
226184
|
*/
|
|
226122
226185
|
}, {
|
|
226123
226186
|
key: "updateTextInputField",
|
|
226124
|
-
value: function updateTextInputField(valuesObject) {
|
|
226187
|
+
value: function updateTextInputField(valuesObject, updateProps) {
|
|
226125
226188
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
226126
226189
|
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
226127
226190
|
var startPath = _curDomRange.normalize().startPath;
|
|
226128
226191
|
var endPath = _curDomRange.normalize().endPath;
|
|
226129
226192
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.updateTextInputField);
|
|
226130
226193
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
226131
|
-
hoEditorFactory.docController.insertTextInputField('update', _curDomRange, valuesObject);
|
|
226194
|
+
hoEditorFactory.docController.insertTextInputField('update', _curDomRange, valuesObject, updateProps);
|
|
226132
226195
|
}
|
|
226133
226196
|
}
|
|
226134
226197
|
/**
|
|
@@ -226486,14 +226549,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
226486
226549
|
*/
|
|
226487
226550
|
}, {
|
|
226488
226551
|
key: "updateDownList",
|
|
226489
|
-
value: function updateDownList(valuesObject, downListContent) {
|
|
226552
|
+
value: function updateDownList(valuesObject, downListContent, updateProps) {
|
|
226490
226553
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
226491
226554
|
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
226492
226555
|
var startPath = _curDomRange.normalize().startPath;
|
|
226493
226556
|
var endPath = _curDomRange.normalize().endPath;
|
|
226494
226557
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.updateDownList);
|
|
226495
226558
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
226496
|
-
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);
|
|
226497
226560
|
}
|
|
226498
226561
|
}
|
|
226499
226562
|
/**
|
|
@@ -229427,11 +229490,15 @@ var VueController = /*#__PURE__*/function () {
|
|
|
229427
229490
|
if (startPosition) {
|
|
229428
229491
|
var sLine = startPosition.dline;
|
|
229429
229492
|
if (sLine instanceof DrawLine/* DrawLine */.a) {
|
|
229430
|
-
if (
|
|
229431
|
-
sPath =
|
|
229432
|
-
//sPath = hoEditorFactory.docTree.getNodeLastPath(sLine.parent._drawPageTable.table);
|
|
229493
|
+
if (pageIndex == 0) {
|
|
229494
|
+
sPath = "main/0";
|
|
229433
229495
|
} else {
|
|
229434
|
-
|
|
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
|
+
}
|
|
229435
229502
|
}
|
|
229436
229503
|
} else {
|
|
229437
229504
|
sPath = sLine.table.paragraphNode.getNodePath();
|
|
@@ -232550,14 +232617,27 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232550
232617
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232551
232618
|
var recordArr = new Array();
|
|
232552
232619
|
var records = hoEditorFactory.docTree.elementChangeRecords;
|
|
232620
|
+
var obj = new Object();
|
|
232553
232621
|
records.forEach(function (value, key) {
|
|
232554
|
-
if (value !== "add0") {
|
|
232555
|
-
|
|
232556
|
-
|
|
232557
|
-
|
|
232558
|
-
|
|
232559
|
-
|
|
232560
|
-
|
|
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
|
+
}
|
|
232561
232641
|
}
|
|
232562
232642
|
});
|
|
232563
232643
|
return recordArr;
|