hoeditor-web 2.0.65 → 2.0.66
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.common.js +63 -9
- package/lib/hoeditor.umd.js +63 -9
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -27990,7 +27990,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
27990
27990
|
identifierFormat: this.identifierFormat,
|
|
27991
27991
|
isSynchro: this.isSynchro,
|
|
27992
27992
|
name: this.name,
|
|
27993
|
-
text: this.text,
|
|
27993
|
+
text: this.keyValue == "" ? "" : this.text,
|
|
27994
27994
|
keyValue: this.keyValue,
|
|
27995
27995
|
title: this.title,
|
|
27996
27996
|
styleIndex: this.styleIndex,
|
|
@@ -53010,6 +53010,8 @@ var createSuper = __webpack_require__(28214);
|
|
|
53010
53010
|
var es_regexp_exec = __webpack_require__(74916);
|
|
53011
53011
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
|
|
53012
53012
|
var es_string_split = __webpack_require__(23123);
|
|
53013
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
|
|
53014
|
+
var es_string_ends_with = __webpack_require__(27852);
|
|
53013
53015
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.italics.js
|
|
53014
53016
|
var es_string_italics = __webpack_require__(58734);
|
|
53015
53017
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.bold.js
|
|
@@ -53459,6 +53461,7 @@ var GestationNode = __webpack_require__(74873);
|
|
|
53459
53461
|
|
|
53460
53462
|
|
|
53461
53463
|
|
|
53464
|
+
|
|
53462
53465
|
// import {DrawNode} from "./DrawSimpleNode"
|
|
53463
53466
|
|
|
53464
53467
|
|
|
@@ -53680,17 +53683,68 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
53680
53683
|
|
|
53681
53684
|
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
|
|
53682
53685
|
if (this.node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
53683
|
-
|
|
53686
|
+
var parentNode = this.node.parentNode;
|
|
53687
|
+
|
|
53688
|
+
if (parentNode.inputFieldType === 0) {
|
|
53684
53689
|
if (backColor === hoEditorFactory.pageProperty.backColor) {
|
|
53685
53690
|
backColor = hoEditorFactory.option.getColorByLevel(10);
|
|
53686
53691
|
}
|
|
53687
53692
|
} else {
|
|
53688
|
-
if (
|
|
53693
|
+
if (parentNode.keyValue == "") {
|
|
53689
53694
|
backColor = hoEditorFactory.option.getColorByLevel(120);
|
|
53690
53695
|
} else {
|
|
53691
|
-
|
|
53696
|
+
var downListProperty = parentNode.downListProperty;
|
|
53697
|
+
|
|
53698
|
+
if (hoEditorFactory.isSameColorWithEmptyVlaue && downListProperty.listItems) {
|
|
53699
|
+
var isDefault = false;
|
|
53700
|
+
var listItems = JSON.parse(downListProperty.listItems);
|
|
53701
|
+
|
|
53702
|
+
if (downListProperty.allowMultiSelected) {
|
|
53703
|
+
var defaultValues = "";
|
|
53704
|
+
|
|
53705
|
+
for (var i = 0; i < listItems.length; i++) {
|
|
53706
|
+
var item1 = listItems[i];
|
|
53707
|
+
|
|
53708
|
+
if (item1.default) {
|
|
53709
|
+
defaultValues += item1.id + ",";
|
|
53710
|
+
}
|
|
53711
|
+
}
|
|
53712
|
+
|
|
53713
|
+
if (defaultValues.endsWith(',')) {
|
|
53714
|
+
defaultValues = defaultValues.substring(0, defaultValues.length - 1);
|
|
53715
|
+
}
|
|
53716
|
+
|
|
53717
|
+
var keyValue = parentNode.keyValue;
|
|
53718
|
+
|
|
53719
|
+
if (keyValue.endsWith(',')) {
|
|
53720
|
+
keyValue = keyValue.substring(0, keyValue.length - 1);
|
|
53721
|
+
}
|
|
53722
|
+
|
|
53723
|
+
if (defaultValues === keyValue) {
|
|
53724
|
+
isDefault = true;
|
|
53725
|
+
}
|
|
53726
|
+
} else {
|
|
53727
|
+
for (var j = 0; j < listItems.length; j++) {
|
|
53728
|
+
var item2 = listItems[j];
|
|
53729
|
+
|
|
53730
|
+
if (item2.id === parentNode.keyValue.split(',')[0] && item2.default) {
|
|
53731
|
+
isDefault = true;
|
|
53732
|
+
break;
|
|
53733
|
+
}
|
|
53734
|
+
}
|
|
53735
|
+
}
|
|
53736
|
+
|
|
53737
|
+
if (isDefault) {
|
|
53738
|
+
backColor = hoEditorFactory.option.getColorByLevel(120);
|
|
53739
|
+
} else {
|
|
53740
|
+
backColor = hoEditorFactory.option.getColorByLevel(12);
|
|
53741
|
+
}
|
|
53742
|
+
} else {
|
|
53743
|
+
backColor = hoEditorFactory.option.getColorByLevel(12);
|
|
53744
|
+
}
|
|
53692
53745
|
}
|
|
53693
|
-
}
|
|
53746
|
+
} //hoEditorFactory.isEnabledGlobalColor = true;
|
|
53747
|
+
|
|
53694
53748
|
|
|
53695
53749
|
if (hoEditorFactory.isEnabledGlobalColor) {
|
|
53696
53750
|
if (!(this.node instanceof MarkNode/* MarkNode */.j) && this.node.parentNode.inputFieldType === 0) {
|
|
@@ -207215,7 +207269,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
207215
207269
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207216
207270
|
var ParagraphNode = __webpack_require__(14208);
|
|
207217
207271
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207218
|
-
/* harmony default export */ var version = ('2.0.
|
|
207272
|
+
/* harmony default export */ var version = ('2.0.66');
|
|
207219
207273
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=template&id=3fa4e4d3&scoped=true&
|
|
207220
207274
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"},{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],ref:"poperTextNode",staticClass:"poper-text-modal animation-in",style:(_vm.posStyle),on:{"mouseenter":_vm.mouseEnter,"mouseleave":_vm.mouseLeave}},_vm._l((_vm.poperText),function(text){return _c('div',{key:text + Math.random(0, 1),staticClass:"poper-text"},[_vm._v(" "+_vm._s(text)+" ")])}),0)}
|
|
207221
207275
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -209726,8 +209780,8 @@ var UserInfo = __webpack_require__(75013);
|
|
|
209726
209780
|
/*
|
|
209727
209781
|
* @Author: your name
|
|
209728
209782
|
* @Date: 2021-06-21 17:47:51
|
|
209729
|
-
* @LastEditTime: 2022-
|
|
209730
|
-
* @LastEditors:
|
|
209783
|
+
* @LastEditTime: 2022-07-08 23:50:19
|
|
209784
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
209731
209785
|
* @Description: In User Settings Edit
|
|
209732
209786
|
* @FilePath: \hoeditor-web\src\editor\runTimeInfo\Option.ts
|
|
209733
209787
|
*/
|
|
@@ -209747,7 +209801,7 @@ var Option = /*#__PURE__*/function () {
|
|
|
209747
209801
|
|
|
209748
209802
|
this._downListColor = "#D2ECB1"; //下拉列表元素颜色//#D2ECB1
|
|
209749
209803
|
|
|
209750
|
-
this._downListColor2 = "#
|
|
209804
|
+
this._downListColor2 = "#D2ACB1"; //下拉列表默认元素颜色
|
|
209751
209805
|
|
|
209752
209806
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
209753
209807
|
}
|
package/lib/hoeditor.umd.js
CHANGED
|
@@ -28000,7 +28000,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
28000
28000
|
identifierFormat: this.identifierFormat,
|
|
28001
28001
|
isSynchro: this.isSynchro,
|
|
28002
28002
|
name: this.name,
|
|
28003
|
-
text: this.text,
|
|
28003
|
+
text: this.keyValue == "" ? "" : this.text,
|
|
28004
28004
|
keyValue: this.keyValue,
|
|
28005
28005
|
title: this.title,
|
|
28006
28006
|
styleIndex: this.styleIndex,
|
|
@@ -53020,6 +53020,8 @@ var createSuper = __webpack_require__(46455);
|
|
|
53020
53020
|
var es_regexp_exec = __webpack_require__(74916);
|
|
53021
53021
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
|
|
53022
53022
|
var es_string_split = __webpack_require__(23123);
|
|
53023
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
|
|
53024
|
+
var es_string_ends_with = __webpack_require__(27852);
|
|
53023
53025
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.italics.js
|
|
53024
53026
|
var es_string_italics = __webpack_require__(58734);
|
|
53025
53027
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.bold.js
|
|
@@ -53469,6 +53471,7 @@ var GestationNode = __webpack_require__(55817);
|
|
|
53469
53471
|
|
|
53470
53472
|
|
|
53471
53473
|
|
|
53474
|
+
|
|
53472
53475
|
// import {DrawNode} from "./DrawSimpleNode"
|
|
53473
53476
|
|
|
53474
53477
|
|
|
@@ -53690,17 +53693,68 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
53690
53693
|
|
|
53691
53694
|
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
|
|
53692
53695
|
if (this.node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
53693
|
-
|
|
53696
|
+
var parentNode = this.node.parentNode;
|
|
53697
|
+
|
|
53698
|
+
if (parentNode.inputFieldType === 0) {
|
|
53694
53699
|
if (backColor === hoEditorFactory.pageProperty.backColor) {
|
|
53695
53700
|
backColor = hoEditorFactory.option.getColorByLevel(10);
|
|
53696
53701
|
}
|
|
53697
53702
|
} else {
|
|
53698
|
-
if (
|
|
53703
|
+
if (parentNode.keyValue == "") {
|
|
53699
53704
|
backColor = hoEditorFactory.option.getColorByLevel(120);
|
|
53700
53705
|
} else {
|
|
53701
|
-
|
|
53706
|
+
var downListProperty = parentNode.downListProperty;
|
|
53707
|
+
|
|
53708
|
+
if (hoEditorFactory.isSameColorWithEmptyVlaue && downListProperty.listItems) {
|
|
53709
|
+
var isDefault = false;
|
|
53710
|
+
var listItems = JSON.parse(downListProperty.listItems);
|
|
53711
|
+
|
|
53712
|
+
if (downListProperty.allowMultiSelected) {
|
|
53713
|
+
var defaultValues = "";
|
|
53714
|
+
|
|
53715
|
+
for (var i = 0; i < listItems.length; i++) {
|
|
53716
|
+
var item1 = listItems[i];
|
|
53717
|
+
|
|
53718
|
+
if (item1.default) {
|
|
53719
|
+
defaultValues += item1.id + ",";
|
|
53720
|
+
}
|
|
53721
|
+
}
|
|
53722
|
+
|
|
53723
|
+
if (defaultValues.endsWith(',')) {
|
|
53724
|
+
defaultValues = defaultValues.substring(0, defaultValues.length - 1);
|
|
53725
|
+
}
|
|
53726
|
+
|
|
53727
|
+
var keyValue = parentNode.keyValue;
|
|
53728
|
+
|
|
53729
|
+
if (keyValue.endsWith(',')) {
|
|
53730
|
+
keyValue = keyValue.substring(0, keyValue.length - 1);
|
|
53731
|
+
}
|
|
53732
|
+
|
|
53733
|
+
if (defaultValues === keyValue) {
|
|
53734
|
+
isDefault = true;
|
|
53735
|
+
}
|
|
53736
|
+
} else {
|
|
53737
|
+
for (var j = 0; j < listItems.length; j++) {
|
|
53738
|
+
var item2 = listItems[j];
|
|
53739
|
+
|
|
53740
|
+
if (item2.id === parentNode.keyValue.split(',')[0] && item2.default) {
|
|
53741
|
+
isDefault = true;
|
|
53742
|
+
break;
|
|
53743
|
+
}
|
|
53744
|
+
}
|
|
53745
|
+
}
|
|
53746
|
+
|
|
53747
|
+
if (isDefault) {
|
|
53748
|
+
backColor = hoEditorFactory.option.getColorByLevel(120);
|
|
53749
|
+
} else {
|
|
53750
|
+
backColor = hoEditorFactory.option.getColorByLevel(12);
|
|
53751
|
+
}
|
|
53752
|
+
} else {
|
|
53753
|
+
backColor = hoEditorFactory.option.getColorByLevel(12);
|
|
53754
|
+
}
|
|
53702
53755
|
}
|
|
53703
|
-
}
|
|
53756
|
+
} //hoEditorFactory.isEnabledGlobalColor = true;
|
|
53757
|
+
|
|
53704
53758
|
|
|
53705
53759
|
if (hoEditorFactory.isEnabledGlobalColor) {
|
|
53706
53760
|
if (!(this.node instanceof MarkNode/* MarkNode */.j) && this.node.parentNode.inputFieldType === 0) {
|
|
@@ -207225,7 +207279,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
207225
207279
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207226
207280
|
var ParagraphNode = __webpack_require__(13880);
|
|
207227
207281
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207228
|
-
/* harmony default export */ var version = ('2.0.
|
|
207282
|
+
/* harmony default export */ var version = ('2.0.66');
|
|
207229
207283
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=template&id=3fa4e4d3&scoped=true&
|
|
207230
207284
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"},{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],ref:"poperTextNode",staticClass:"poper-text-modal animation-in",style:(_vm.posStyle),on:{"mouseenter":_vm.mouseEnter,"mouseleave":_vm.mouseLeave}},_vm._l((_vm.poperText),function(text){return _c('div',{key:text + Math.random(0, 1),staticClass:"poper-text"},[_vm._v(" "+_vm._s(text)+" ")])}),0)}
|
|
207231
207285
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -209736,8 +209790,8 @@ var UserInfo = __webpack_require__(82084);
|
|
|
209736
209790
|
/*
|
|
209737
209791
|
* @Author: your name
|
|
209738
209792
|
* @Date: 2021-06-21 17:47:51
|
|
209739
|
-
* @LastEditTime: 2022-
|
|
209740
|
-
* @LastEditors:
|
|
209793
|
+
* @LastEditTime: 2022-07-08 23:50:19
|
|
209794
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
209741
209795
|
* @Description: In User Settings Edit
|
|
209742
209796
|
* @FilePath: \hoeditor-web\src\editor\runTimeInfo\Option.ts
|
|
209743
209797
|
*/
|
|
@@ -209757,7 +209811,7 @@ var Option = /*#__PURE__*/function () {
|
|
|
209757
209811
|
|
|
209758
209812
|
this._downListColor = "#D2ECB1"; //下拉列表元素颜色//#D2ECB1
|
|
209759
209813
|
|
|
209760
|
-
this._downListColor2 = "#
|
|
209814
|
+
this._downListColor2 = "#D2ACB1"; //下拉列表默认元素颜色
|
|
209761
209815
|
|
|
209762
209816
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
209763
209817
|
}
|