devexpress-richedit 24.1.7 → 24.1.8-build-24316-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 CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (gulpfile.js)
3
- * Version: 24.1.7
3
+ * Version: 24.1.8
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (index-custom.js)
3
- * Version: 24.1.7
3
+ * Version: 24.1.8
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (localization-builder.js)
3
- * Version: 24.1.7
3
+ * Version: 24.1.8
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (nspell-index.js)
3
- * Version: 24.1.7
3
+ * Version: 24.1.8
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (nspell.webpack.config.js)
3
- * Version: 24.1.7
3
+ * Version: 24.1.8
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (webpack-externals.js)
3
- * Version: 24.1.7
3
+ * Version: 24.1.8
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (webpack.config.js)
3
- * Version: 24.1.7
3
+ * Version: 24.1.8
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (dx.richedit.d.ts)
3
- * Version: 24.1.7
3
+ * Version: 24.1.8
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (dx.richedit.js)
3
- * Version: 24.1.7
3
+ * Version: 24.1.8
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -41135,6 +41135,7 @@ class SubDocumentInserter {
41135
41135
  this.collectTables();
41136
41136
  this.collectFields();
41137
41137
  this.collectBookmarks();
41138
+ this.collectRangePermission();
41138
41139
  if (this.options.overlapTableCellContent) {
41139
41140
  const lastInsertedParagraph = this.targetSubDocument.getParagraphByPosition(this.currInsertSubDocumentPosition.position - 1);
41140
41141
  const nextParagraph = this.targetSubDocument.getParagraphByPosition(this.currInsertSubDocumentPosition.position);
@@ -41243,6 +41244,9 @@ class SubDocumentInserter {
41243
41244
  collectBookmarks() {
41244
41245
  this.targetModelManipulator.bookmark.insertBookmarksFromSubDocument(this.sourceSubDocument, this.targetSubDocument, this.sourceInterval, this.modelsConstOffset);
41245
41246
  }
41247
+ collectRangePermission() {
41248
+ this.targetModelManipulator.rangePermission.insertRangePermissionsFromSubDocument(this.sourceSubDocument, this.targetSubDocument, this.sourceInterval, this.modelsConstOffset);
41249
+ }
41246
41250
  prependTableByParagraph() {
41247
41251
  if (this.options.insertParagraphMarkBeforeIfStartsWithTable) {
41248
41252
  const tbl = Table.getTableByPosition(this.sourceSubDocument.tables, this.sourceInterval.start, false);
@@ -45513,6 +45517,7 @@ class NonVisualDrawingObjectInfoManipulator extends BaseManipulator {
45513
45517
 
45514
45518
 
45515
45519
 
45520
+
45516
45521
  class RangePermissionManipulator extends BaseManipulator {
45517
45522
  createRangePermission(subDocument, permissionTemplate) {
45518
45523
  subDocument.rangePermissions.push(new RangePermission(subDocument.positionManager, permissionTemplate.interval, permissionTemplate.userName, permissionTemplate.group));
@@ -45525,6 +45530,40 @@ class RangePermissionManipulator extends BaseManipulator {
45525
45530
  subDocument.filterRangePermissions(this.modelManipulator.modelManager.richOptions.documentProtection);
45526
45531
  this.modelManipulator.notifyModelChanged(new RangePermissionsChangedSubDocumentChange(subDocument.id, permissionTemplate));
45527
45532
  }
45533
+ insertRangePermissionsFromSubDocument(fromSubDocument, toSubDocument, fromInterval, modelsConstOffset) {
45534
+ const rangePermissions = fromSubDocument.rangePermissions;
45535
+ let ind = search.SearchUtils.normedInterpolationIndexOf(rangePermissions, (b) => b.start, fromInterval.start);
45536
+ while (rangePermissions[ind] && rangePermissions[ind].start >= fromInterval.start)
45537
+ ind--;
45538
+ ind = Math.max(0, ind);
45539
+ for (let rpm; (rpm = rangePermissions[ind]) && rpm.start <= fromInterval.end; ind++) {
45540
+ if (fromInterval.containsInterval(rpm.interval)) {
45541
+ const template = rpm.constRangePermission;
45542
+ template.interval.start += modelsConstOffset;
45543
+ template.interval.end += modelsConstOffset + 1;
45544
+ this.createRangePermission(toSubDocument, template);
45545
+ }
45546
+ }
45547
+ toSubDocument.rangePermissions = toSubDocument.rangePermissions.sort(ConstRangePermission.comparer);
45548
+ }
45549
+ deleteRangePermissions(subDocument, interval) {
45550
+ const rangePermissions = subDocument.rangePermissions;
45551
+ const result = [];
45552
+ let ind = search.SearchUtils.normedInterpolationIndexOf(rangePermissions, (b) => b.start, interval.start);
45553
+ while (rangePermissions[ind] && rangePermissions[ind].start >= interval.start)
45554
+ ind--;
45555
+ ind = Math.max(0, ind);
45556
+ for (let curr; (curr = rangePermissions[ind]) && curr.interval.start <= interval.end;) {
45557
+ if (interval.containsInterval(curr.interval)) {
45558
+ const tmpl = curr.constRangePermission;
45559
+ this.deleteRangePermission(subDocument, tmpl, ind);
45560
+ result.push(tmpl);
45561
+ }
45562
+ else
45563
+ ind++;
45564
+ }
45565
+ return result;
45566
+ }
45528
45567
  }
45529
45568
 
45530
45569
  ;// CONCATENATED MODULE: ./src/common/model/character/history-runs.ts
@@ -45658,6 +45697,7 @@ class RemoveIntervalOperation {
45658
45697
  this.cellsIterator = new SelectedCellsIterator(this.subDocument, interval);
45659
45698
  const result = new RemoveIntervalOperationResult(this.cellsIterator);
45660
45699
  result.bookmarkItems = this.modelManipulator.bookmark.deleteBookmarks(this.subDocument, interval);
45700
+ result.rangePermssionsItems = this.modelManipulator.rangePermission.deleteRangePermissions(this.subDocument, interval);
45661
45701
  if (this.tryPackSelectionInOneRun(interval, result))
45662
45702
  return result;
45663
45703
  var iterator = this.subDocument.getRunIterator(interval);
@@ -45983,6 +46023,7 @@ class RemoveIntervalOperationResult {
45983
46023
  this.historyRuns = [];
45984
46024
  this.nestingLevels = [];
45985
46025
  this.bookmarkItems = [];
46026
+ this.rangePermssionsItems = [];
45986
46027
  this.cellsIterator = cellsIterator;
45987
46028
  }
45988
46029
  registerItem(historyRun) {