devexpress-richedit 24.1.2-beta → 24.1.4-build-24183-0102
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/bin/gulpfile.js +1 -1
- package/bin/index-custom.js +1 -1
- package/bin/localization-builder.js +1 -1
- package/bin/nspell-index.js +1 -1
- package/bin/nspell.webpack.config.js +1 -1
- package/bin/webpack-externals.js +1 -1
- package/bin/webpack.config.js +1 -1
- package/dist/dx.richedit.css +1 -1
- package/dist/dx.richedit.d.ts +1 -1
- package/dist/dx.richedit.js +277 -210
- package/dist/dx.richedit.min.js +2 -2
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/lib/client/client-rich-edit.js +2 -2
- package/lib/client/public/ribbon/creator.js +1 -0
- package/lib/client/public/ribbon/items/select-box.d.ts +2 -0
- package/lib/client/public/ribbon/items/select-box.js +7 -0
- package/lib/client/public/utils.d.ts +4 -0
- package/lib/client/public/utils.js +15 -0
- package/lib/client/ribbon/i-toolbar-item-options.d.ts +1 -0
- package/lib/common/canvas/canvas-manager.js +1 -1
- package/lib/common/formats/html/export/html-builder.js +8 -4
- package/lib/common/formats/html/export/html-export.d.ts +12 -0
- package/lib/common/formats/html/export/html-export.js +113 -99
- package/lib/common/formats/html/import/html-importer.js +21 -8
- package/lib/common/layout-formatter/floating/position-calculators/base-calculator.d.ts +1 -0
- package/lib/common/layout-formatter/floating/position-calculators/base-calculator.js +1 -0
- package/lib/common/layout-formatter/floating/position-calculators/vertical.js +6 -4
- package/lib/common/model/fonts/loader.js +11 -6
- package/lib/common/ui/ruler/controls/divisions.js +2 -1
- package/lib/common/ui/ruler/controls/indent/first-line.js +4 -3
- package/lib/common/ui/ruler/controls/indent/left.js +5 -4
- package/lib/common/ui/ruler/ruler.js +2 -1
- package/package.json +4 -4
@@ -6,6 +6,7 @@ import { RICH_EDIT_CLASS_NAME_PREFIX, RULLER_NUMBER_CORRECTION } from '../../set
|
|
6
6
|
import { RulerModelState } from '../base';
|
7
7
|
import { RulerTemplateManager } from '../template-manager';
|
8
8
|
import { RulerBaseIndentControl, RulerMinDistanceBetweenIndents } from './base';
|
9
|
+
import { SizeUtils } from '../../../../../common/utils/size-utils';
|
9
10
|
const LEFT_INDENT_DRAG_HANDLE_BODY = RICH_EDIT_CLASS_NAME_PREFIX + "leftIndentDragHandleBody";
|
10
11
|
export class RulerLeftIndentDragHandle extends RulerBaseIndentControl {
|
11
12
|
constructor(modelData, controls) {
|
@@ -26,18 +27,18 @@ export class RulerLeftIndentDragHandle extends RulerBaseIndentControl {
|
|
26
27
|
const mainElementWidth = this.topElement.offsetWidth;
|
27
28
|
this.bodyElement.style.width = mainElementWidth + "px";
|
28
29
|
const style = this.rootElement.style;
|
29
|
-
style.height = this.topElement
|
30
|
+
style.height = SizeUtils.getOffsetHeight(this.topElement) + SizeUtils.getOffsetHeight(this.bodyElement) + "px";
|
30
31
|
style.width = mainElementWidth + "px";
|
31
32
|
style.marginTop = this.controls.divisions.height / 2 + "px";
|
32
33
|
this.bodyElement.title = this.modelData.settings.titles.leftIndent;
|
33
34
|
this.topElement.title = this.modelData.settings.titles.hangingIndent;
|
34
|
-
this.leftCorrection = Math.round(this.rootElement
|
35
|
-
this._heightOfProtrudingPart = this.rootElement
|
35
|
+
this.leftCorrection = Math.round(SizeUtils.getOffsetWidth(this.rootElement) / 2);
|
36
|
+
this._heightOfProtrudingPart = SizeUtils.getOffsetHeight(this.rootElement) - this.controls.divisions.height / 2;
|
36
37
|
}
|
37
38
|
get heightOfProtrudingPart() { return this.modelData.settings.showLeftIndent ? this._heightOfProtrudingPart : 0; }
|
38
39
|
getRootClassName() { return this.modelData.settings.styles.leftIndent.className; }
|
39
40
|
adjustByTop() {
|
40
|
-
const mainElementHeight = this.rootElement
|
41
|
+
const mainElementHeight = SizeUtils.getOffsetHeight(this.rootElement);
|
41
42
|
const divisionsControlHeight = this.controls.divisions.height;
|
42
43
|
this.rootElement.style.marginTop = (mainElementHeight - divisionsControlHeight) / 2 + "px";
|
43
44
|
}
|
@@ -4,6 +4,7 @@ import { Flag } from '@devexpress/utils/lib/class/flag';
|
|
4
4
|
import { RulerControls } from './manager';
|
5
5
|
import { RulerModelData } from './model-data';
|
6
6
|
import { RulerVisibility } from './settings';
|
7
|
+
import { SizeUtils } from '../../../common/utils/size-utils';
|
7
8
|
var HorizontalRulerEventType;
|
8
9
|
(function (HorizontalRulerEventType) {
|
9
10
|
HorizontalRulerEventType[HorizontalRulerEventType["None"] = 0] = "None";
|
@@ -190,7 +191,7 @@ export class HorizontalRulerControl extends BatchUpdatableObject {
|
|
190
191
|
return this._visible;
|
191
192
|
}
|
192
193
|
getHeight() {
|
193
|
-
return this.initialized ? this.controls.wrapper.rootElement
|
194
|
+
return this.initialized ? SizeUtils.getOffsetHeight(this.controls.wrapper.rootElement) : 0;
|
194
195
|
}
|
195
196
|
onViewTypeChanged() {
|
196
197
|
this.innerSetVisible(this._visible && !this.modelData.innerClientProperties.viewsSettings.isSimpleView);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "devexpress-richedit",
|
3
|
-
"version": "24.1.
|
3
|
+
"version": "24.1.4-build-24183-0102",
|
4
4
|
"homepage": "https://www.devexpress.com/",
|
5
5
|
"bugs": "https://www.devexpress.com/support/",
|
6
6
|
"author": "Developer Express Inc.",
|
@@ -14,13 +14,13 @@
|
|
14
14
|
"build-nspell": "webpack --mode production --config=bin/nspell.webpack.config.js"
|
15
15
|
},
|
16
16
|
"peerDependencies": {
|
17
|
-
"devextreme": "24.1.
|
18
|
-
"devextreme-dist": "24.1.
|
17
|
+
"devextreme": "24.1.4-build-24181-1937",
|
18
|
+
"devextreme-dist": "24.1.4-build-24181-1937"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
21
|
"jszip": "~3.10.1",
|
22
22
|
"tslib": "2.6.0",
|
23
|
-
"@devexpress/utils": "1.4.
|
23
|
+
"@devexpress/utils": "^1.4.3"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
26
|
"webpack": "5.75.0",
|