hoeditor-web 3.1.160 → 3.1.161
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 +1 -18038
- package/lib/hoeditor.umd.js +35 -39
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -59004,9 +59004,10 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
59004
59004
|
//this.name,
|
|
59005
59005
|
this.isSelected, this.boxAlign, this.numericValue, dHeight, cbStyle);
|
|
59006
59006
|
this._drawNodes.push(dNode);
|
|
59007
|
+
var dBoxWidth = dNode.dBoxWidth || dHeight;
|
|
59007
59008
|
var dNodePrint = new _editor_draw_drawNode_DrawRadioAndCheckBoxPrint__WEBPACK_IMPORTED_MODULE_16__/* .DrawRadioAndCheckBoxPrint */ .w(this._hoEditorFactoryID, this._rootPath, this, 0, this.controlStyle,
|
|
59008
59009
|
//this.name,
|
|
59009
|
-
this.isSelected, this.boxAlign, this.numericValue, dHeight, cbStyle);
|
|
59010
|
+
this.isSelected, this.boxAlign, this.numericValue, dHeight, cbStyle, dBoxWidth);
|
|
59010
59011
|
this._drawNodes.push(dNodePrint);
|
|
59011
59012
|
}
|
|
59012
59013
|
}, {
|
|
@@ -61046,7 +61047,8 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61046
61047
|
_this$getCellNumber2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this$getCellNumber, 2),
|
|
61047
61048
|
bret = _this$getCellNumber2[0],
|
|
61048
61049
|
value = _this$getCellNumber2[1];
|
|
61049
|
-
|
|
61050
|
+
var downListProperty = cell.cellProperty.downListProperty;
|
|
61051
|
+
if (downListProperty) {
|
|
61050
61052
|
if (bret) {
|
|
61051
61053
|
//total+=value;
|
|
61052
61054
|
if (value !== "") {
|
|
@@ -61054,7 +61056,6 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61054
61056
|
}
|
|
61055
61057
|
} else {
|
|
61056
61058
|
var cellText = cell.getCellText();
|
|
61057
|
-
var downListProperty = cell.cellProperty.downListProperty;
|
|
61058
61059
|
var listItems = JSON.parse(downListProperty.listItems);
|
|
61059
61060
|
if (listItems.length === undefined) {
|
|
61060
61061
|
listItems = Array(JSON.parse(downListProperty.listItems));
|
|
@@ -61111,6 +61112,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61111
61112
|
}, {
|
|
61112
61113
|
key: "getCellNumber",
|
|
61113
61114
|
value: function getCellNumber(tb, irow, icol) {
|
|
61115
|
+
var _cell$getCellText;
|
|
61114
61116
|
var ret = "";
|
|
61115
61117
|
var bret = false;
|
|
61116
61118
|
var cell = tb.rows[irow][icol];
|
|
@@ -61124,6 +61126,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61124
61126
|
// }
|
|
61125
61127
|
//const strValue = cell.getCellText().replaceAll('\n', '').replaceAll(' ', '').replaceAll('\b', '').replaceAll('\r', '');
|
|
61126
61128
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_35__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
61129
|
+
var cellText = ((_cell$getCellText = cell.getCellText()) === null || _cell$getCellText === void 0 ? void 0 : _cell$getCellText.replace(/\n/g, '')) || '';
|
|
61127
61130
|
var strValue = hoEditorFactory.unitConvert.replaceAll(cell.getCellText(), '\n', '');
|
|
61128
61131
|
//如果单元格存在下拉项,取值为下拉项的value,而非节点的text
|
|
61129
61132
|
if (cell.cellProperty.downListProperty) {
|
|
@@ -61146,10 +61149,6 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61146
61149
|
}
|
|
61147
61150
|
});
|
|
61148
61151
|
strValue = String(value);
|
|
61149
|
-
// strValue = itemObject.value
|
|
61150
|
-
// if(strValue === ''){
|
|
61151
|
-
// strValue = itemObject.text
|
|
61152
|
-
// }
|
|
61153
61152
|
}
|
|
61154
61153
|
}
|
|
61155
61154
|
//针对单元格childNodes节点下嵌套的下拉选择处理
|
|
@@ -61182,6 +61181,9 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61182
61181
|
}
|
|
61183
61182
|
}
|
|
61184
61183
|
}
|
|
61184
|
+
if (strValue == '' && !isNaN(Number(cellText))) {
|
|
61185
|
+
strValue = cellText;
|
|
61186
|
+
}
|
|
61185
61187
|
strValue = hoEditorFactory.unitConvert.replaceAll(strValue, ' ', '');
|
|
61186
61188
|
strValue = hoEditorFactory.unitConvert.replaceAll(strValue, '\b', '');
|
|
61187
61189
|
strValue = hoEditorFactory.unitConvert.replaceAll(strValue, '\r', '');
|
|
@@ -79029,6 +79031,7 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
79029
79031
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_dAppendText", void 0);
|
|
79030
79032
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_dUnderLine", void 0);
|
|
79031
79033
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_charCount", void 0);
|
|
79034
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "dBoxWidth", 0);
|
|
79032
79035
|
_this._controlStyle = controlStyle;
|
|
79033
79036
|
if (node.isTransToText) {
|
|
79034
79037
|
_this._charCount = 1;
|
|
@@ -79063,6 +79066,7 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
79063
79066
|
}
|
|
79064
79067
|
var textWidth = _this._dText.getMeasuredWidth();
|
|
79065
79068
|
var boxwidth = _this._dBox.getMeasuredWidth();
|
|
79069
|
+
_this.dBoxWidth = boxwidth;
|
|
79066
79070
|
_this.dWidth = textWidth + boxwidth + blockWidth;
|
|
79067
79071
|
if (node.isEditText) {
|
|
79068
79072
|
var underLineLen = 40;
|
|
@@ -79076,10 +79080,6 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
79076
79080
|
}
|
|
79077
79081
|
_this.dHeight = height;
|
|
79078
79082
|
_this._textStyle = textStyle;
|
|
79079
|
-
// this._border = new createjs.Shape();
|
|
79080
|
-
// this._border.graphics.beginFill("red").drawRect(0, 0, this.dWidth, this.dHeight);
|
|
79081
|
-
// this._border.y = - this.dHeight;
|
|
79082
|
-
//this._mouseOverShape = new createjs.Shape();
|
|
79083
79083
|
_this.drawRadioAndCheckBox();
|
|
79084
79084
|
return _this;
|
|
79085
79085
|
}
|
|
@@ -79140,14 +79140,6 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
79140
79140
|
key: "drawRadioAndCheckBox",
|
|
79141
79141
|
value: function drawRadioAndCheckBox() {
|
|
79142
79142
|
this.clear();
|
|
79143
|
-
// const backColor = new createjs.Shape();
|
|
79144
|
-
// backColor.graphics.clear();
|
|
79145
|
-
// backColor.graphics
|
|
79146
|
-
// .beginFill("#ADD8E6")
|
|
79147
|
-
// .drawRect(0, 0, this.dWidth, -this.dHeight);
|
|
79148
|
-
// backColor.alpha = 0.01;
|
|
79149
|
-
// backColor.name = "backColor";
|
|
79150
|
-
// this.addChildAt(backColor, 0);
|
|
79151
79143
|
if (this.boxAlign) {
|
|
79152
79144
|
this.drawBox();
|
|
79153
79145
|
if (!this.node.isTransToText && this.text.length > 0) {
|
|
@@ -79279,9 +79271,10 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
79279
79271
|
var DrawRadioAndCheckBoxPrint = /*#__PURE__*/function (_DrawCombineNode) {
|
|
79280
79272
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(DrawRadioAndCheckBoxPrint, _DrawCombineNode);
|
|
79281
79273
|
var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(DrawRadioAndCheckBoxPrint);
|
|
79274
|
+
// public dBoxWidth: number = 0;
|
|
79282
79275
|
function DrawRadioAndCheckBoxPrint(hoeditfactoryID, rootPath, node, index, controlStyle,
|
|
79283
79276
|
//name: string,
|
|
79284
|
-
isSelected, boxAlign, numericValue, height, textStyle) {
|
|
79277
|
+
isSelected, boxAlign, numericValue, height, textStyle, dBoxWidth) {
|
|
79285
79278
|
var _this;
|
|
79286
79279
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, DrawRadioAndCheckBoxPrint);
|
|
79287
79280
|
_this = _super.call(this, hoeditfactoryID, rootPath, node, index);
|
|
@@ -79317,12 +79310,12 @@ var DrawRadioAndCheckBoxPrint = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
79317
79310
|
_this._dBox.graphics.clear().setStrokeStyle(1, 'round', 'round').beginStroke("#000").drawCircle((height - 2) / 2, -height / 2 + 2, (height - 2) / 2).endStroke();
|
|
79318
79311
|
}
|
|
79319
79312
|
var textWidth = _this._dText.getMeasuredWidth();
|
|
79320
|
-
var boxwidth = height;
|
|
79321
79313
|
var blockWidth = 0;
|
|
79322
79314
|
if (_this.text !== "") {
|
|
79323
79315
|
blockWidth = 6;
|
|
79324
79316
|
}
|
|
79325
|
-
|
|
79317
|
+
// this.dBoxWidth = dBoxWidth;
|
|
79318
|
+
_this.dWidth = textWidth + dBoxWidth + blockWidth;
|
|
79326
79319
|
if (node.isEditText) {
|
|
79327
79320
|
var underLineLen = 40;
|
|
79328
79321
|
if (node.appendText.length > 0) {
|
|
@@ -79415,54 +79408,57 @@ var DrawRadioAndCheckBoxPrint = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
79415
79408
|
value: function drawBox() {
|
|
79416
79409
|
var drawBox;
|
|
79417
79410
|
drawBox = new createjs.Shape();
|
|
79411
|
+
var textWidth = this._dText.getMeasuredWidth();
|
|
79412
|
+
var x = 0;
|
|
79413
|
+
if (this.boxAlign) {
|
|
79414
|
+
// if(this.controlStyle === "CheckBox"){
|
|
79415
|
+
// x = Math.max(1, this.dBoxWidth - this.dHeight);
|
|
79416
|
+
// } else {
|
|
79417
|
+
x = 1;
|
|
79418
|
+
// }
|
|
79419
|
+
} else {
|
|
79420
|
+
x = textWidth;
|
|
79421
|
+
}
|
|
79418
79422
|
if (this.controlStyle === "CheckBox") {
|
|
79419
79423
|
//复选框
|
|
79420
79424
|
if (this.isSelected) {
|
|
79421
79425
|
drawBox.graphics.clear().beginStroke(this._textStyle.color).drawRect(0, -this.dHeight + 2, this.dHeight - 2, this.dHeight - 2).endStroke();
|
|
79422
|
-
this.addChild(drawBox);
|
|
79423
79426
|
var line1 = new createjs.Shape();
|
|
79424
79427
|
var line2 = new createjs.Shape();
|
|
79425
79428
|
if (this.boxAlign) {
|
|
79426
79429
|
line1.graphics.beginStroke(this._textStyle.color).moveTo(3, -this.dHeight / 2 + 2).lineTo(this.dHeight / 2 - 1, -2).endStroke();
|
|
79427
|
-
this.addChild(line1);
|
|
79428
79430
|
line2.graphics.beginStroke(this._textStyle.color).moveTo(this.dHeight / 2 - 1, -2).lineTo(this.dHeight - 3, -this.dHeight + 4).endStroke();
|
|
79429
|
-
|
|
79431
|
+
line1.x = x;
|
|
79432
|
+
line2.x = x;
|
|
79430
79433
|
} else {
|
|
79431
|
-
var textWidth = this._dText.getMeasuredWidth();
|
|
79432
79434
|
line1.graphics.beginStroke(this._textStyle.color).moveTo(3 + textWidth, -this.dHeight / 2 + 2).lineTo(this.dHeight / 2 - 1 + textWidth, -2).endStroke();
|
|
79433
|
-
this.addChild(line1);
|
|
79434
79435
|
line2.graphics.beginStroke(this._textStyle.color).moveTo(this.dHeight / 2 - 1 + textWidth, -2).lineTo(this.dHeight - 3 + textWidth, -this.dHeight + 4).endStroke();
|
|
79435
|
-
this.addChild(line2);
|
|
79436
79436
|
}
|
|
79437
|
+
this.addChild(line1);
|
|
79438
|
+
this.addChild(line2);
|
|
79437
79439
|
} else {
|
|
79438
79440
|
drawBox.graphics.clear().beginStroke(this._textStyle.color).drawRect(0, -this.dHeight + 2, this.dHeight - 2, this.dHeight - 2).endStroke();
|
|
79439
|
-
this.addChild(drawBox);
|
|
79440
79441
|
}
|
|
79441
79442
|
} else {
|
|
79442
79443
|
//单选框
|
|
79443
79444
|
if (this.isSelected) {
|
|
79444
79445
|
drawBox.graphics.clear().setStrokeStyle(1, 'round', 'round').beginStroke(this._textStyle.color).drawCircle((this.dHeight - 2) / 2, -this.dHeight / 2 + 2, (this.dHeight - 2) / 2).endStroke();
|
|
79445
|
-
this.addChild(drawBox);
|
|
79446
79446
|
var dot = new createjs.Shape();
|
|
79447
79447
|
if (this.boxAlign) {
|
|
79448
|
-
dot.graphics.clear().beginStroke(this._textStyle.color).beginFill(this._textStyle.color).drawCircle((this.dHeight - 2) / 2 +
|
|
79448
|
+
dot.graphics.clear().beginStroke(this._textStyle.color).beginFill(this._textStyle.color).drawCircle((this.dHeight - 2) / 2 + x, -this.dHeight / 2 + 2, 1).endStroke();
|
|
79449
79449
|
this.addChild(dot);
|
|
79450
79450
|
} else {
|
|
79451
|
-
dot.graphics.clear().beginStroke(this._textStyle.color).beginFill(this._textStyle.color).drawCircle((this.dHeight - 2) / 2 +
|
|
79451
|
+
dot.graphics.clear().beginStroke(this._textStyle.color).beginFill(this._textStyle.color).drawCircle((this.dHeight - 2) / 2 + textWidth, -this.dHeight / 2 + 2, 1).endStroke();
|
|
79452
79452
|
this.addChild(dot);
|
|
79453
79453
|
}
|
|
79454
79454
|
} else {
|
|
79455
79455
|
drawBox.graphics.clear().setStrokeStyle(1, 'round', 'round').beginStroke(this._textStyle.color).drawCircle((this.dHeight - 2) / 2, -this.dHeight / 2 + 2, (this.dHeight - 2) / 2).endStroke();
|
|
79456
|
-
this.addChild(drawBox);
|
|
79457
79456
|
}
|
|
79458
79457
|
}
|
|
79459
79458
|
drawBox.name = "box";
|
|
79460
|
-
|
|
79461
|
-
drawBox.x = 1;
|
|
79462
|
-
} else {
|
|
79463
|
-
drawBox.x = this._dText.getMeasuredWidth();
|
|
79464
|
-
}
|
|
79459
|
+
drawBox.x = x;
|
|
79465
79460
|
drawBox.y = this.y;
|
|
79461
|
+
this.addChild(drawBox);
|
|
79466
79462
|
}
|
|
79467
79463
|
}, {
|
|
79468
79464
|
key: "drawText",
|
|
@@ -210502,7 +210498,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
210502
210498
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
210503
210499
|
var ParagraphNode = __webpack_require__(67945);
|
|
210504
210500
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
210505
|
-
/* harmony default export */ var version = ('3.1.
|
|
210501
|
+
/* harmony default export */ var version = ('3.1.161');
|
|
210506
210502
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
210507
210503
|
var PoperTipText = __webpack_require__(84531);
|
|
210508
210504
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|