devexpress-richedit 24.2.14 → 24.2.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/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.d.ts +1 -1
- package/dist/dx.richedit.js +133 -126
- 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/common/model/fields/parsers/field-code-parser-toc.d.ts +1 -0
- package/lib/common/model/fields/parsers/field-code-parser-toc.js +9 -2
- package/package.json +3 -3
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -61,8 +61,8 @@ export class ClientRichEdit {
|
|
|
61
61
|
this.rawDataSource = settings.rawDataSource;
|
|
62
62
|
this.contextMenuSettings = settings.contextMenuSettings;
|
|
63
63
|
this.fullScreenHelper = new FullScreenHelper(element);
|
|
64
|
-
if ("
|
|
65
|
-
config(JSON.parse(atob("
|
|
64
|
+
if ("eyJsaWNlbnNlS2V5IjoiZXdvZ0lDSm1iM0p0WVhRaU9pQXhMQW9nSUNKcGJuUmxjbTVoYkZWellXZGxTV1FpT2lBaVR6bGtVR1V5UlhsRFF6TnVTVGhhYTA1UFZUSklRU0lLZlE9PS5meXZCUFNITFZEd0I2ZU5ZK3dyNDVjK3p6V1Y4Ymw1U3E2RmxkamU0a2p0RlVwU3ZTMkl5M3MyWmxad3A3bVN2b3N5bkxJYkUreXRyeWV2ZnQzNjdQUTBpOG9CS2VsbDFaTzkwcjU0aVVCTXNMa1hjV2VGa0xqdTkrTUlva1MzVmhyUENOdz09In0=")
|
|
65
|
+
config(JSON.parse(atob("eyJsaWNlbnNlS2V5IjoiZXdvZ0lDSm1iM0p0WVhRaU9pQXhMQW9nSUNKcGJuUmxjbTVoYkZWellXZGxTV1FpT2lBaVR6bGtVR1V5UlhsRFF6TnVTVGhhYTA1UFZUSklRU0lLZlE9PS5meXZCUFNITFZEd0I2ZU5ZK3dyNDVjK3p6V1Y4Ymw1U3E2RmxkamU0a2p0RlVwU3ZTMkl5M3MyWmxad3A3bVN2b3N5bkxJYkUreXRyeWV2ZnQzNjdQUTBpOG9CS2VsbDFaTzkwcjU0aVVCTXNMa1hjV2VGa0xqdTkrTUlva1MzVmhyUENOdz09In0=")));
|
|
66
66
|
this.prepareElement(element, settings);
|
|
67
67
|
this.initDefaultFontsAndStyles();
|
|
68
68
|
this.initBars(settings.ribbon, settings.fonts);
|
|
@@ -29,6 +29,7 @@ export declare class FieldCodeParserToc extends FieldCodeParserClientUpdatingBas
|
|
|
29
29
|
private getBookmarkName;
|
|
30
30
|
private createNewBookmark;
|
|
31
31
|
private generateNewBookmarkName;
|
|
32
|
+
private generateId;
|
|
32
33
|
}
|
|
33
34
|
export declare class TocParserParameters {
|
|
34
35
|
asHyperlink: boolean;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { UnitConverter } from '@devexpress/utils/lib/class/unit-converter';
|
|
2
2
|
import { FixedInterval } from '@devexpress/utils/lib/intervals/fixed';
|
|
3
3
|
import { ListUtils } from '@devexpress/utils/lib/utils/list';
|
|
4
|
-
import { MathUtils } from '@devexpress/utils/lib/utils/math';
|
|
5
4
|
import { TabLeaderType } from '../../../layout/main-structures/layout-boxes/layout-tab-space-box';
|
|
6
5
|
import { MaskedParagraphPropertiesBundleFull } from '../../../rich-utils/properties-bundle';
|
|
7
6
|
import { ConstBookmark } from '../../bookmarks';
|
|
@@ -263,13 +262,21 @@ export class FieldCodeParserToc extends FieldCodeParserClientUpdatingBase {
|
|
|
263
262
|
}
|
|
264
263
|
generateNewBookmarkName() {
|
|
265
264
|
while (true) {
|
|
266
|
-
const name = this.modelManager.model.simpleFormattersManager.formatString("_Toc{0}",
|
|
265
|
+
const name = this.modelManager.model.simpleFormattersManager.formatString("_Toc{0}", this.generateId(10));
|
|
267
266
|
for (let i = 0, bookmark; bookmark = this.subDocument.bookmarks[i]; i++)
|
|
268
267
|
if (bookmark.name.toUpperCase() == name.toUpperCase())
|
|
269
268
|
continue;
|
|
270
269
|
return name;
|
|
271
270
|
}
|
|
272
271
|
}
|
|
272
|
+
generateId(length) {
|
|
273
|
+
if (length <= 0)
|
|
274
|
+
throw new Error('Length must be positive');
|
|
275
|
+
let result = '';
|
|
276
|
+
for (let i = 0; i < length; i++)
|
|
277
|
+
result += Math.floor(Math.random() * 10);
|
|
278
|
+
return result;
|
|
279
|
+
}
|
|
273
280
|
}
|
|
274
281
|
export class TocParserParameters {
|
|
275
282
|
constructor() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "devexpress-richedit",
|
|
3
|
-
"version": "24.2.
|
|
3
|
+
"version": "24.2.15",
|
|
4
4
|
"homepage": "https://www.devexpress.com/",
|
|
5
5
|
"bugs": "https://www.devexpress.com/support/",
|
|
6
6
|
"author": "Developer Express Inc.",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"build-nspell": "webpack --mode production --config=bin/nspell.webpack.config.js"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"devextreme": "24.2.
|
|
15
|
-
"devextreme-dist": "24.2.
|
|
14
|
+
"devextreme": "24.2.15",
|
|
15
|
+
"devextreme-dist": "24.2.15"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"webpack": "5.89.0",
|