devexpress-diagram 2.0.44 → 2.0.45

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.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Diagram (dx-diagram)
3
- * Version: 2.0.44
4
- * Build date: Thu Oct 21 2021
3
+ * Version: 2.0.45
4
+ * Build date: Fri Nov 12 2021
5
5
  *
6
6
  * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
@@ -509,10 +509,11 @@
509
509
 
510
510
  .dxdi-clipboard-input,
511
511
  .dxdi-focus-input {
512
- position: fixed;
512
+ position: absolute;
513
513
  overflow: hidden;
514
514
  left: -1000px !important;
515
- top: -1000px !important; }
515
+ top: -1000px !important;
516
+ opacity: 0; }
516
517
 
517
518
  .dxdi-text-input-container {
518
519
  display: none; }
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Diagram (dx-diagram)
3
- * Version: 2.0.44
4
- * Build date: Thu Oct 21 2021
3
+ * Version: 2.0.45
4
+ * Build date: Fri Nov 12 2021
5
5
  *
6
6
  * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
@@ -382,7 +382,7 @@ exports.Size = Size;
382
382
  "use strict";
383
383
 
384
384
  Object.defineProperty(exports, "__esModule", { value: true });
385
- exports.ObjectUtils = exports.GeometryUtils = exports.Utils = exports.EventDispatcher = exports.Range = exports.LineEquation = void 0;
385
+ exports.HtmlFocusUtils = exports.ObjectUtils = exports.GeometryUtils = exports.Utils = exports.EventDispatcher = exports.Range = exports.LineEquation = void 0;
386
386
  __webpack_require__(175);
387
387
  var size_1 = __webpack_require__(2);
388
388
  var point_1 = __webpack_require__(1);
@@ -393,6 +393,7 @@ var math_1 = __webpack_require__(32);
393
393
  var vector_1 = __webpack_require__(58);
394
394
  var segment_1 = __webpack_require__(33);
395
395
  var Style_1 = __webpack_require__(27);
396
+ var browser_1 = __webpack_require__(19);
396
397
  var LineEquation = /** @class */ (function () {
397
398
  function LineEquation(aParam, bParam, cParam) {
398
399
  this.aParam = aParam;
@@ -1073,6 +1074,50 @@ var ObjectUtils = /** @class */ (function () {
1073
1074
  return ObjectUtils;
1074
1075
  }());
1075
1076
  exports.ObjectUtils = ObjectUtils;
1077
+ var HtmlFocusUtils = /** @class */ (function () {
1078
+ function HtmlFocusUtils() {
1079
+ }
1080
+ HtmlFocusUtils.focusWithPreventScroll = function (element) {
1081
+ try {
1082
+ var isPreventScrollNotSupported = browser_1.Browser.Safari;
1083
+ var savedDocumentScrollPosition = isPreventScrollNotSupported && this.getHtmlScrollPosition();
1084
+ element.focus({ preventScroll: true });
1085
+ if (isPreventScrollNotSupported) {
1086
+ var newDocumentScrollPosition = this.getHtmlScrollPosition();
1087
+ if (!ObjectUtils.compareObjects(savedDocumentScrollPosition, newDocumentScrollPosition))
1088
+ this.setHtmlScrollPosition(savedDocumentScrollPosition);
1089
+ }
1090
+ }
1091
+ catch (e) {
1092
+ }
1093
+ };
1094
+ HtmlFocusUtils.getHtmlScrollPosition = function () {
1095
+ return {
1096
+ pos: this.getDocumentScrollPosition(window, document),
1097
+ iframePos: window.top !== window && this.getDocumentScrollPosition(window.top, window.top.document)
1098
+ };
1099
+ };
1100
+ HtmlFocusUtils.getDocumentScrollPosition = function (win, doc) {
1101
+ return {
1102
+ left: win.pageXOffset || doc.documentElement.scrollLeft || doc.body.scrollLeft,
1103
+ top: win.pageYOffset || doc.documentElement.scrollTop || doc.body.scrollTop
1104
+ };
1105
+ };
1106
+ HtmlFocusUtils.setHtmlScrollPosition = function (position) {
1107
+ this.setDocumentScrollPosition(document, position.pos);
1108
+ if (window.top !== window && position.iframePos)
1109
+ this.setDocumentScrollPosition(window.top.document, position.iframePos);
1110
+ };
1111
+ HtmlFocusUtils.setDocumentScrollPosition = function (doc, pos) {
1112
+ doc.documentElement.scrollTop = pos.top;
1113
+ doc.documentElement.scrollLeft = pos.left;
1114
+ // old Safari on iOS
1115
+ doc.body.scrollTop = pos.top;
1116
+ doc.body.scrollLeft = pos.left;
1117
+ };
1118
+ return HtmlFocusUtils;
1119
+ }());
1120
+ exports.HtmlFocusUtils = HtmlFocusUtils;
1076
1121
 
1077
1122
 
1078
1123
  /***/ }),
@@ -4138,7 +4183,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
4138
4183
  exports.raiseEvent = exports.isLeftButtonPressed = exports.RenderUtils = void 0;
4139
4184
  var Event_1 = __webpack_require__(14);
4140
4185
  var math_1 = __webpack_require__(32);
4141
- var browser_1 = __webpack_require__(20);
4186
+ var browser_1 = __webpack_require__(19);
4142
4187
  var evt_1 = __webpack_require__(60);
4143
4188
  var RenderUtils = /** @class */ (function () {
4144
4189
  function RenderUtils() {
@@ -4309,69 +4354,6 @@ exports.RectangleShapeDescription = RectangleShapeDescription;
4309
4354
 
4310
4355
  "use strict";
4311
4356
 
4312
- var __extends = (this && this.__extends) || (function () {
4313
- var extendStatics = function (d, b) {
4314
- extendStatics = Object.setPrototypeOf ||
4315
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
4316
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
4317
- return extendStatics(d, b);
4318
- };
4319
- return function (d, b) {
4320
- extendStatics(d, b);
4321
- function __() { this.constructor = d; }
4322
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4323
- };
4324
- })();
4325
- Object.defineProperty(exports, "__esModule", { value: true });
4326
- exports.Alignment = exports.DataLayoutOrientation = exports.LogicalDirectionKind = exports.TreeLayoutSettings = exports.LayoutSettings = void 0;
4327
- var Connector_1 = __webpack_require__(6);
4328
- var LayoutSettings = /** @class */ (function () {
4329
- function LayoutSettings(gridSize) {
4330
- this.orientation = DataLayoutOrientation.Vertical;
4331
- this.direction = LogicalDirectionKind.Forward;
4332
- var baseSpacing = (gridSize && gridSize * 2 > Connector_1.Connector.minOffset) ? gridSize * 2 : Connector_1.Connector.minOffset;
4333
- this.columnSpacing = baseSpacing;
4334
- this.layerSpacing = baseSpacing * 2;
4335
- this.containerPadding = baseSpacing * 2;
4336
- this.componentSpacing = baseSpacing * 2;
4337
- }
4338
- return LayoutSettings;
4339
- }());
4340
- exports.LayoutSettings = LayoutSettings;
4341
- var TreeLayoutSettings = /** @class */ (function (_super) {
4342
- __extends(TreeLayoutSettings, _super);
4343
- function TreeLayoutSettings(gridSize) {
4344
- var _this = _super.call(this, gridSize) || this;
4345
- _this.alignment = Alignment.Center;
4346
- _this.subTreeColumnSpacing = _this.componentSpacing / 2;
4347
- return _this;
4348
- }
4349
- return TreeLayoutSettings;
4350
- }(LayoutSettings));
4351
- exports.TreeLayoutSettings = TreeLayoutSettings;
4352
- var LogicalDirectionKind;
4353
- (function (LogicalDirectionKind) {
4354
- LogicalDirectionKind[LogicalDirectionKind["Backward"] = 0] = "Backward";
4355
- LogicalDirectionKind[LogicalDirectionKind["Forward"] = 1] = "Forward";
4356
- })(LogicalDirectionKind = exports.LogicalDirectionKind || (exports.LogicalDirectionKind = {}));
4357
- var DataLayoutOrientation;
4358
- (function (DataLayoutOrientation) {
4359
- DataLayoutOrientation[DataLayoutOrientation["Horizontal"] = 0] = "Horizontal";
4360
- DataLayoutOrientation[DataLayoutOrientation["Vertical"] = 1] = "Vertical";
4361
- })(DataLayoutOrientation = exports.DataLayoutOrientation || (exports.DataLayoutOrientation = {}));
4362
- var Alignment;
4363
- (function (Alignment) {
4364
- Alignment[Alignment["Left"] = 0] = "Left";
4365
- Alignment[Alignment["Center"] = 1] = "Center";
4366
- })(Alignment = exports.Alignment || (exports.Alignment = {}));
4367
-
4368
-
4369
- /***/ }),
4370
- /* 20 */
4371
- /***/ (function(module, exports, __webpack_require__) {
4372
-
4373
- "use strict";
4374
-
4375
4357
  Object.defineProperty(exports, "__esModule", { value: true });
4376
4358
  var Browser = (function () {
4377
4359
  function Browser() {
@@ -4592,6 +4574,69 @@ var Browser = (function () {
4592
4574
  exports.Browser = Browser;
4593
4575
 
4594
4576
 
4577
+ /***/ }),
4578
+ /* 20 */
4579
+ /***/ (function(module, exports, __webpack_require__) {
4580
+
4581
+ "use strict";
4582
+
4583
+ var __extends = (this && this.__extends) || (function () {
4584
+ var extendStatics = function (d, b) {
4585
+ extendStatics = Object.setPrototypeOf ||
4586
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
4587
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
4588
+ return extendStatics(d, b);
4589
+ };
4590
+ return function (d, b) {
4591
+ extendStatics(d, b);
4592
+ function __() { this.constructor = d; }
4593
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4594
+ };
4595
+ })();
4596
+ Object.defineProperty(exports, "__esModule", { value: true });
4597
+ exports.Alignment = exports.DataLayoutOrientation = exports.LogicalDirectionKind = exports.TreeLayoutSettings = exports.LayoutSettings = void 0;
4598
+ var Connector_1 = __webpack_require__(6);
4599
+ var LayoutSettings = /** @class */ (function () {
4600
+ function LayoutSettings(gridSize) {
4601
+ this.orientation = DataLayoutOrientation.Vertical;
4602
+ this.direction = LogicalDirectionKind.Forward;
4603
+ var baseSpacing = (gridSize && gridSize * 2 > Connector_1.Connector.minOffset) ? gridSize * 2 : Connector_1.Connector.minOffset;
4604
+ this.columnSpacing = baseSpacing;
4605
+ this.layerSpacing = baseSpacing * 2;
4606
+ this.containerPadding = baseSpacing * 2;
4607
+ this.componentSpacing = baseSpacing * 2;
4608
+ }
4609
+ return LayoutSettings;
4610
+ }());
4611
+ exports.LayoutSettings = LayoutSettings;
4612
+ var TreeLayoutSettings = /** @class */ (function (_super) {
4613
+ __extends(TreeLayoutSettings, _super);
4614
+ function TreeLayoutSettings(gridSize) {
4615
+ var _this = _super.call(this, gridSize) || this;
4616
+ _this.alignment = Alignment.Center;
4617
+ _this.subTreeColumnSpacing = _this.componentSpacing / 2;
4618
+ return _this;
4619
+ }
4620
+ return TreeLayoutSettings;
4621
+ }(LayoutSettings));
4622
+ exports.TreeLayoutSettings = TreeLayoutSettings;
4623
+ var LogicalDirectionKind;
4624
+ (function (LogicalDirectionKind) {
4625
+ LogicalDirectionKind[LogicalDirectionKind["Backward"] = 0] = "Backward";
4626
+ LogicalDirectionKind[LogicalDirectionKind["Forward"] = 1] = "Forward";
4627
+ })(LogicalDirectionKind = exports.LogicalDirectionKind || (exports.LogicalDirectionKind = {}));
4628
+ var DataLayoutOrientation;
4629
+ (function (DataLayoutOrientation) {
4630
+ DataLayoutOrientation[DataLayoutOrientation["Horizontal"] = 0] = "Horizontal";
4631
+ DataLayoutOrientation[DataLayoutOrientation["Vertical"] = 1] = "Vertical";
4632
+ })(DataLayoutOrientation = exports.DataLayoutOrientation || (exports.DataLayoutOrientation = {}));
4633
+ var Alignment;
4634
+ (function (Alignment) {
4635
+ Alignment[Alignment["Left"] = 0] = "Left";
4636
+ Alignment[Alignment["Center"] = 1] = "Center";
4637
+ })(Alignment = exports.Alignment || (exports.Alignment = {}));
4638
+
4639
+
4595
4640
  /***/ }),
4596
4641
  /* 21 */
4597
4642
  /***/ (function(module, exports, __webpack_require__) {
@@ -4806,7 +4851,7 @@ exports.ColorUtils = ColorUtils;
4806
4851
  "use strict";
4807
4852
 
4808
4853
  Object.defineProperty(exports, "__esModule", { value: true });
4809
- var browser_1 = __webpack_require__(20);
4854
+ var browser_1 = __webpack_require__(19);
4810
4855
  var common_1 = __webpack_require__(34);
4811
4856
  var math_1 = __webpack_require__(32);
4812
4857
  var string_1 = __webpack_require__(50);
@@ -5114,7 +5159,7 @@ var DomUtils = (function () {
5114
5159
  return getAbsolutePositionX_IE(element);
5115
5160
  else if (browser_1.Browser.Firefox && browser_1.Browser.Version >= 3)
5116
5161
  return getAbsolutePositionX_FF3(element);
5117
- else if (browser_1.Browser.Opera)
5162
+ else if (browser_1.Browser.Opera && browser_1.Browser.Version <= 12)
5118
5163
  return getAbsolutePositionX_Opera(element);
5119
5164
  else if (browser_1.Browser.NetscapeFamily && (!browser_1.Browser.Firefox || browser_1.Browser.Version < 3))
5120
5165
  return getAbsolutePositionX_NS(element);
@@ -5429,7 +5474,7 @@ exports.SvgPrimitive = SvgPrimitive;
5429
5474
  "use strict";
5430
5475
 
5431
5476
  Object.defineProperty(exports, "__esModule", { value: true });
5432
- var browser_1 = __webpack_require__(20);
5477
+ var browser_1 = __webpack_require__(19);
5433
5478
  var encode_1 = __webpack_require__(173);
5434
5479
  var string_1 = __webpack_require__(50);
5435
5480
  var KeyUtils = (function () {
@@ -5443,6 +5488,8 @@ var KeyUtils = (function () {
5443
5488
  result |= ModifierKey.Ctrl;
5444
5489
  if (evt.shiftKey)
5445
5490
  result |= ModifierKey.Shift;
5491
+ if (evt.metaKey)
5492
+ result |= ModifierKey.Meta;
5446
5493
  return result;
5447
5494
  };
5448
5495
  KeyUtils.getShortcutCode = function (keyCode, isCtrlKey, isShiftKey, isAltKey, isMetaKey) {
@@ -8646,7 +8693,7 @@ exports.Diagnostics = Diagnostics;
8646
8693
  "use strict";
8647
8694
 
8648
8695
  Object.defineProperty(exports, "__esModule", { value: true });
8649
- var browser_1 = __webpack_require__(20);
8696
+ var browser_1 = __webpack_require__(19);
8650
8697
  var common_1 = __webpack_require__(34);
8651
8698
  var dom_1 = __webpack_require__(23);
8652
8699
  var touch_1 = __webpack_require__(174);
@@ -11033,7 +11080,7 @@ var Structures_1 = __webpack_require__(39);
11033
11080
  var ListUtils_1 = __webpack_require__(90);
11034
11081
  var search_1 = __webpack_require__(42);
11035
11082
  var point_1 = __webpack_require__(1);
11036
- var LayoutSettings_1 = __webpack_require__(19);
11083
+ var LayoutSettings_1 = __webpack_require__(20);
11037
11084
  var GraphLayout_1 = __webpack_require__(139);
11038
11085
  var Connector_1 = __webpack_require__(6);
11039
11086
  var CycleRemover_1 = __webpack_require__(270);
@@ -13440,7 +13487,7 @@ var point_1 = __webpack_require__(1);
13440
13487
  var BaseBuilder_1 = __webpack_require__(140);
13441
13488
  var Structures_1 = __webpack_require__(39);
13442
13489
  var DiagramItem_1 = __webpack_require__(9);
13443
- var LayoutSettings_1 = __webpack_require__(19);
13490
+ var LayoutSettings_1 = __webpack_require__(20);
13444
13491
  var TreeLayoutBuilder = /** @class */ (function (_super) {
13445
13492
  __extends(TreeLayoutBuilder, _super);
13446
13493
  function TreeLayoutBuilder() {
@@ -13902,7 +13949,7 @@ exports.ChangeZindexHistoryItem = ChangeZindexHistoryItem;
13902
13949
 
13903
13950
  Object.defineProperty(exports, "__esModule", { value: true });
13904
13951
  exports.DataLayoutParameters = exports.DataLayoutType = void 0;
13905
- var LayoutSettings_1 = __webpack_require__(19);
13952
+ var LayoutSettings_1 = __webpack_require__(20);
13906
13953
  var WideTree_1 = __webpack_require__(97);
13907
13954
  var Sugiyama_1 = __webpack_require__(79);
13908
13955
  var DataLayoutType;
@@ -14089,7 +14136,7 @@ exports.ToolboxDragEventsHandlerBase = ToolboxDragEventsHandlerBase;
14089
14136
 
14090
14137
  Object.defineProperty(exports, "__esModule", { value: true });
14091
14138
  exports.RenderManagerDragEventsHandlerBase = void 0;
14092
- var browser_1 = __webpack_require__(20);
14139
+ var browser_1 = __webpack_require__(19);
14093
14140
  var RenderManagerDragEventsHandlerBase = /** @class */ (function () {
14094
14141
  function RenderManagerDragEventsHandlerBase() {
14095
14142
  this.isMoveLocked = false;
@@ -14188,13 +14235,13 @@ Object.defineProperty(exports, "ShapeCategories", { enumerable: true, get: funct
14188
14235
  Object.defineProperty(exports, "ShapeType", { enumerable: true, get: function () { return ShapeTypes_1.ShapeType; } });
14189
14236
  var unit_converter_1 = __webpack_require__(11);
14190
14237
  Object.defineProperty(exports, "UnitConverter", { enumerable: true, get: function () { return unit_converter_1.UnitConverter; } });
14191
- var browser_1 = __webpack_require__(20);
14238
+ var browser_1 = __webpack_require__(19);
14192
14239
  Object.defineProperty(exports, "Browser", { enumerable: true, get: function () { return browser_1.Browser; } });
14193
14240
  var Settings_1 = __webpack_require__(28);
14194
14241
  Object.defineProperty(exports, "AutoZoomMode", { enumerable: true, get: function () { return Settings_1.AutoZoomMode; } });
14195
14242
  var DataLayoutParameters_1 = __webpack_require__(103);
14196
14243
  Object.defineProperty(exports, "DataLayoutType", { enumerable: true, get: function () { return DataLayoutParameters_1.DataLayoutType; } });
14197
- var LayoutSettings_1 = __webpack_require__(19);
14244
+ var LayoutSettings_1 = __webpack_require__(20);
14198
14245
  Object.defineProperty(exports, "DataLayoutOrientation", { enumerable: true, get: function () { return LayoutSettings_1.DataLayoutOrientation; } });
14199
14246
  __webpack_require__(387);
14200
14247
  var ConnectorProperties_1 = __webpack_require__(30);
@@ -15827,7 +15874,7 @@ exports.ShapeImageIndicator = void 0;
15827
15874
  var EllipsePrimitive_1 = __webpack_require__(54);
15828
15875
  var PathPrimitive_1 = __webpack_require__(5);
15829
15876
  var GroupPrimitive_1 = __webpack_require__(40);
15830
- var browser_1 = __webpack_require__(20);
15877
+ var browser_1 = __webpack_require__(19);
15831
15878
  var RectaglePrimitive_1 = __webpack_require__(21);
15832
15879
  var unit_converter_1 = __webpack_require__(11);
15833
15880
  var ShapeImageIndicator = /** @class */ (function () {
@@ -16624,7 +16671,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
16624
16671
  exports.AutoLayoutTreeVerticalCommand = void 0;
16625
16672
  var AutoLayoutCommandBase_1 = __webpack_require__(75);
16626
16673
  var WideTree_1 = __webpack_require__(97);
16627
- var LayoutSettings_1 = __webpack_require__(19);
16674
+ var LayoutSettings_1 = __webpack_require__(20);
16628
16675
  var AutoLayoutTreeVerticalCommand = /** @class */ (function (_super) {
16629
16676
  __extends(AutoLayoutTreeVerticalCommand, _super);
16630
16677
  function AutoLayoutTreeVerticalCommand() {
@@ -16724,7 +16771,7 @@ exports.GraphLayout = GraphLayout;
16724
16771
 
16725
16772
  Object.defineProperty(exports, "__esModule", { value: true });
16726
16773
  exports.LayoutBuilder = void 0;
16727
- var LayoutSettings_1 = __webpack_require__(19);
16774
+ var LayoutSettings_1 = __webpack_require__(20);
16728
16775
  var LayoutBuilder = /** @class */ (function () {
16729
16776
  function LayoutBuilder(settings, graph) {
16730
16777
  this.settings = settings;
@@ -17051,7 +17098,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17051
17098
  exports.AutoLayoutLayeredHorizontalCommand = void 0;
17052
17099
  var AutoLayoutCommandBase_1 = __webpack_require__(75);
17053
17100
  var Sugiyama_1 = __webpack_require__(79);
17054
- var LayoutSettings_1 = __webpack_require__(19);
17101
+ var LayoutSettings_1 = __webpack_require__(20);
17055
17102
  var AutoLayoutLayeredHorizontalCommand = /** @class */ (function (_super) {
17056
17103
  __extends(AutoLayoutLayeredHorizontalCommand, _super);
17057
17104
  function AutoLayoutLayeredHorizontalCommand() {
@@ -17093,7 +17140,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17093
17140
  exports.AutoLayoutTreeHorizontalCommand = void 0;
17094
17141
  var AutoLayoutCommandBase_1 = __webpack_require__(75);
17095
17142
  var WideTree_1 = __webpack_require__(97);
17096
- var LayoutSettings_1 = __webpack_require__(19);
17143
+ var LayoutSettings_1 = __webpack_require__(20);
17097
17144
  var AutoLayoutTreeHorizontalCommand = /** @class */ (function (_super) {
17098
17145
  __extends(AutoLayoutTreeHorizontalCommand, _super);
17099
17146
  function AutoLayoutTreeHorizontalCommand() {
@@ -17136,7 +17183,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17136
17183
  exports.AutoLayoutLayeredVerticalCommand = void 0;
17137
17184
  var AutoLayoutCommandBase_1 = __webpack_require__(75);
17138
17185
  var Sugiyama_1 = __webpack_require__(79);
17139
- var LayoutSettings_1 = __webpack_require__(19);
17186
+ var LayoutSettings_1 = __webpack_require__(20);
17140
17187
  var AutoLayoutLayeredVerticalCommand = /** @class */ (function (_super) {
17141
17188
  __extends(AutoLayoutLayeredVerticalCommand, _super);
17142
17189
  function AutoLayoutLayeredVerticalCommand() {
@@ -20329,7 +20376,7 @@ exports.EncodeUtils = EncodeUtils;
20329
20376
  "use strict";
20330
20377
 
20331
20378
  Object.defineProperty(exports, "__esModule", { value: true });
20332
- var browser_1 = __webpack_require__(20);
20379
+ var browser_1 = __webpack_require__(19);
20333
20380
  var common_1 = __webpack_require__(34);
20334
20381
  var TouchUtils = (function () {
20335
20382
  function TouchUtils() {
@@ -20436,7 +20483,7 @@ module.exports = {
20436
20483
  "use strict";
20437
20484
 
20438
20485
  Object.defineProperty(exports, "__esModule", { value: true });
20439
- var browser_1 = __webpack_require__(20);
20486
+ var browser_1 = __webpack_require__(19);
20440
20487
  var base64_1 = __webpack_require__(83);
20441
20488
  var common_1 = __webpack_require__(34);
20442
20489
  var FileUtils = (function () {
@@ -26455,7 +26502,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
26455
26502
  Object.defineProperty(exports, "__esModule", { value: true });
26456
26503
  exports.CanvasExportManager = void 0;
26457
26504
  var unit_converter_1 = __webpack_require__(11);
26458
- var browser_1 = __webpack_require__(20);
26505
+ var browser_1 = __webpack_require__(19);
26459
26506
  var Utils_1 = __webpack_require__(17);
26460
26507
  var CanvasManagerBase_1 = __webpack_require__(43);
26461
26508
  var RenderHelper_1 = __webpack_require__(15);
@@ -26959,7 +27006,7 @@ var Connector_1 = __webpack_require__(6);
26959
27006
  var AddConnectorHistoryItem_1 = __webpack_require__(64);
26960
27007
  var AddConnectionHistoryItem_1 = __webpack_require__(49);
26961
27008
  var Sugiyama_1 = __webpack_require__(79);
26962
- var LayoutSettings_1 = __webpack_require__(19);
27009
+ var LayoutSettings_1 = __webpack_require__(20);
26963
27010
  var ExportImportCommandBase_1 = __webpack_require__(56);
26964
27011
  var ImportBPMNCommand = /** @class */ (function (_super) {
26965
27012
  __extends(ImportBPMNCommand, _super);
@@ -29137,7 +29184,7 @@ var __extends = (this && this.__extends) || (function () {
29137
29184
  })();
29138
29185
  Object.defineProperty(exports, "__esModule", { value: true });
29139
29186
  exports.AutoLayoutTreeVerticalBottomToTopCommand = void 0;
29140
- var LayoutSettings_1 = __webpack_require__(19);
29187
+ var LayoutSettings_1 = __webpack_require__(20);
29141
29188
  var AutoLayoutTreeVerticalCommand_1 = __webpack_require__(138);
29142
29189
  var AutoLayoutTreeVerticalBottomToTopCommand = /** @class */ (function (_super) {
29143
29190
  __extends(AutoLayoutTreeVerticalBottomToTopCommand, _super);
@@ -29175,7 +29222,7 @@ var __extends = (this && this.__extends) || (function () {
29175
29222
  })();
29176
29223
  Object.defineProperty(exports, "__esModule", { value: true });
29177
29224
  exports.AutoLayoutTreeHorizontalRightToLeftCommand = void 0;
29178
- var LayoutSettings_1 = __webpack_require__(19);
29225
+ var LayoutSettings_1 = __webpack_require__(20);
29179
29226
  var AutoLayoutTreeHorizontalCommand_1 = __webpack_require__(144);
29180
29227
  var AutoLayoutTreeHorizontalRightToLeftCommand = /** @class */ (function (_super) {
29181
29228
  __extends(AutoLayoutTreeHorizontalRightToLeftCommand, _super);
@@ -29213,7 +29260,7 @@ var __extends = (this && this.__extends) || (function () {
29213
29260
  })();
29214
29261
  Object.defineProperty(exports, "__esModule", { value: true });
29215
29262
  exports.AutoLayoutLayeredVerticalBottomToTopCommand = void 0;
29216
- var LayoutSettings_1 = __webpack_require__(19);
29263
+ var LayoutSettings_1 = __webpack_require__(20);
29217
29264
  var AutoLayoutLayeredVerticalCommand_1 = __webpack_require__(145);
29218
29265
  var AutoLayoutLayeredVerticalBottomToTopCommand = /** @class */ (function (_super) {
29219
29266
  __extends(AutoLayoutLayeredVerticalBottomToTopCommand, _super);
@@ -29251,7 +29298,7 @@ var __extends = (this && this.__extends) || (function () {
29251
29298
  })();
29252
29299
  Object.defineProperty(exports, "__esModule", { value: true });
29253
29300
  exports.AutoLayoutLayeredHorizontalRightToLeftCommand = void 0;
29254
- var LayoutSettings_1 = __webpack_require__(19);
29301
+ var LayoutSettings_1 = __webpack_require__(20);
29255
29302
  var AutoLayoutLayeredHorizontalCommand_1 = __webpack_require__(143);
29256
29303
  var AutoLayoutLayeredHorizontalRightToLeftCommand = /** @class */ (function (_super) {
29257
29304
  __extends(AutoLayoutLayeredHorizontalRightToLeftCommand, _super);
@@ -29318,7 +29365,7 @@ exports.ChangeConnectorRoutingModeCommand = ChangeConnectorRoutingModeCommand;
29318
29365
  Object.defineProperty(exports, "__esModule", { value: true });
29319
29366
  exports.DiagramControl = void 0;
29320
29367
  var point_1 = __webpack_require__(1);
29321
- var browser_1 = __webpack_require__(20);
29368
+ var browser_1 = __webpack_require__(19);
29322
29369
  var ModelManipulator_1 = __webpack_require__(302);
29323
29370
  var CommandManager_1 = __webpack_require__(81);
29324
29371
  var EventManager_1 = __webpack_require__(303);
@@ -29435,7 +29482,7 @@ var DiagramControl = /** @class */ (function () {
29435
29482
  this.render = undefined;
29436
29483
  }
29437
29484
  };
29438
- DiagramControl.prototype.createDocument = function (parent, scrollView) {
29485
+ DiagramControl.prototype.createDocument = function (parent, scrollView, focusElementsParent) {
29439
29486
  if (!this.measurer)
29440
29487
  this.initMeasurer(parent);
29441
29488
  if (this.render)
@@ -29455,7 +29502,7 @@ var DiagramControl = /** @class */ (function () {
29455
29502
  autoZoom: this.settings.autoZoom,
29456
29503
  rectangle: this.model.getRectangle(true),
29457
29504
  isTouchUIEnabled: this.isTouchUIEnabled
29458
- }, scrollView);
29505
+ }, scrollView, focusElementsParent);
29459
29506
  this.createRenderManagerDragEventsHandler().attach(this.render);
29460
29507
  this.settings.onZoomChanged.add(this.render.view);
29461
29508
  this.settings.onViewChanged.add(this.render.page);
@@ -32719,7 +32766,7 @@ var Event_1 = __webpack_require__(14);
32719
32766
  var key_1 = __webpack_require__(26);
32720
32767
  var batch_updatable_1 = __webpack_require__(80);
32721
32768
  var ModelUtils_1 = __webpack_require__(4);
32722
- var browser_1 = __webpack_require__(20);
32769
+ var browser_1 = __webpack_require__(19);
32723
32770
  var SELECTION_CHANGED_EVENT = 1;
32724
32771
  var ContextMenuHandler = /** @class */ (function (_super) {
32725
32772
  __extends(ContextMenuHandler, _super);
@@ -34194,7 +34241,7 @@ var READONLY_CSSCLASS = "dxdi-read-only";
34194
34241
  exports.LONG_TOUCH_TIMEOUT = 500;
34195
34242
  exports.DBL_CLICK_TIMEOUT = 500;
34196
34243
  var RenderManager = /** @class */ (function () {
34197
- function RenderManager(parent, events, measurer, settings, scrollView) {
34244
+ function RenderManager(parent, events, measurer, settings, scrollView, focusElementsParent) {
34198
34245
  this.touchPositionLimit = 4;
34199
34246
  var mainElement = RenderHelper_1.RenderHelper.createMainElement(parent);
34200
34247
  this.svgElement = RenderHelper_1.RenderHelper.createSvgElement(mainElement);
@@ -34202,7 +34249,7 @@ var RenderManager = /** @class */ (function () {
34202
34249
  this.measurer = measurer;
34203
34250
  this.dom = new DOMManipulator_1.DOMManipulator(this.measurer);
34204
34251
  this.view = new CanvasViewManager_1.CanvasViewManager(this.scroll, this.svgElement, settings.modelSize, settings.zoomLevel, settings.autoZoom, settings.simpleView, settings.rectangle, this.dom);
34205
- this.input = new InputManager_1.InputManager(mainElement, this.view, events, this.measurer, settings.zoomLevel, settings.isTouchUIEnabled);
34252
+ this.input = new InputManager_1.InputManager(mainElement, this.view, events, this.measurer, settings.zoomLevel, settings.isTouchUIEnabled, focusElementsParent);
34206
34253
  this.items = new CanvasItemsManager_1.CanvasItemsManager(this.view.canvasElement, settings.zoomLevel, this.dom);
34207
34254
  this.page = new CanvasPageManager_1.CanvasPageManager(this.view.pageElement, settings, this.dom);
34208
34255
  this.selection = new CanvasSelectionManager_1.CanvasSelectionManager(this.view.canvasElement, settings.zoomLevel, settings.readOnly, this.dom, settings.isTouchUIEnabled);
@@ -34619,23 +34666,25 @@ var Shape_1 = __webpack_require__(13);
34619
34666
  var Connector_1 = __webpack_require__(6);
34620
34667
  var evt_1 = __webpack_require__(60);
34621
34668
  var ITextMeasurer_1 = __webpack_require__(44);
34622
- var browser_1 = __webpack_require__(20);
34669
+ var browser_1 = __webpack_require__(19);
34623
34670
  var unit_converter_1 = __webpack_require__(11);
34624
34671
  var RenderHelper_1 = __webpack_require__(15);
34625
34672
  var TextUtils_1 = __webpack_require__(63);
34673
+ var Utils_2 = __webpack_require__(3);
34626
34674
  var TEXT_INPUT_CSSCLASS = "dxdi-text-input";
34627
34675
  var InputManager = /** @class */ (function () {
34628
- function InputManager(mainElement, layoutPointResolver, eventManager, textMeasurer, actualZoom, isTouchUIEnabled) {
34676
+ function InputManager(mainElement, layoutPointResolver, eventManager, textMeasurer, actualZoom, isTouchUIEnabled, focusElementsParent) {
34629
34677
  this.mainElement = mainElement;
34630
34678
  this.layoutPointResolver = layoutPointResolver;
34631
34679
  this.eventManager = eventManager;
34632
34680
  this.textMeasurer = textMeasurer;
34633
34681
  this.actualZoom = actualZoom;
34634
34682
  this.isTouchUIEnabled = isTouchUIEnabled;
34683
+ this.focusElementsParent = focusElementsParent;
34635
34684
  this.lockedCaptureFocus = false;
34636
34685
  this.focused = false;
34637
34686
  this.focusLocked = false;
34638
- this.createInputElements(this.mainElement);
34687
+ this.createInputElements(this.mainElement, this.focusElementsParent);
34639
34688
  }
34640
34689
  InputManager.prototype.detachEvents = function () {
34641
34690
  this.detachInputElementEvents();
@@ -34652,13 +34701,11 @@ var InputManager = /** @class */ (function () {
34652
34701
  };
34653
34702
  InputManager.prototype.captureFocus = function () {
34654
34703
  if (!this.lockedCaptureFocus)
34655
- this.inputElement.focus({ preventScroll: true });
34704
+ Utils_2.HtmlFocusUtils.focusWithPreventScroll(this.inputElement);
34656
34705
  };
34657
34706
  InputManager.prototype.setClipboardData = function (data) {
34658
34707
  this.clipboardInputElement.value = data;
34659
- this.clipboardInputElement.focus({
34660
- preventScroll: true
34661
- });
34708
+ Utils_2.HtmlFocusUtils.focusWithPreventScroll(this.clipboardInputElement);
34662
34709
  this.clipboardInputElement.select();
34663
34710
  document.execCommand("copy");
34664
34711
  this.captureFocus();
@@ -34675,9 +34722,7 @@ var InputManager = /** @class */ (function () {
34675
34722
  });
34676
34723
  else if (browser_1.Browser.IE) {
34677
34724
  this.clipboardInputElement.value = "";
34678
- this.clipboardInputElement.focus({
34679
- preventScroll: true
34680
- });
34725
+ Utils_2.HtmlFocusUtils.focusWithPreventScroll(this.clipboardInputElement);
34681
34726
  this.clipboardInputElement.select();
34682
34727
  document.execCommand("Paste");
34683
34728
  callback(this.clipboardInputElement.value);
@@ -34687,10 +34732,10 @@ var InputManager = /** @class */ (function () {
34687
34732
  InputManager.prototype.isPasteSupportedByBrowser = function () {
34688
34733
  return browser_1.Browser.IE || (browser_1.Browser.WebKitFamily && navigator && navigator["clipboard"] !== undefined);
34689
34734
  };
34690
- InputManager.prototype.createInputElements = function (parent) {
34691
- this.createFocusInputElement(parent);
34735
+ InputManager.prototype.createInputElements = function (parent, focusElementsParent) {
34736
+ this.createFocusInputElement(focusElementsParent || parent);
34692
34737
  this.createTextInputElement(parent);
34693
- this.createClipboardInputElement(parent);
34738
+ this.createClipboardInputElement(focusElementsParent || parent);
34694
34739
  this.attachInputElementEvents();
34695
34740
  };
34696
34741
  InputManager.prototype.setInputElementFocusHandlerMode = function () {
@@ -34705,7 +34750,7 @@ var InputManager = /** @class */ (function () {
34705
34750
  this.updateTextInputPadding();
34706
34751
  if (!this.lockedCaptureFocus) {
34707
34752
  var element = this.textInputElement || this.inputElement;
34708
- element.focus({ preventScroll: true });
34753
+ Utils_2.HtmlFocusUtils.focusWithPreventScroll(element);
34709
34754
  if (element.select)
34710
34755
  element.select();
34711
34756
  }
@@ -34841,7 +34886,7 @@ var InputManager = /** @class */ (function () {
34841
34886
  Utils_1.raiseEvent(evt, this.getDiagramKeyboardEvent(evt), function (e) { return _this.eventManager.onKeyDown(e); });
34842
34887
  };
34843
34888
  InputManager.prototype.onInputKeyPress = function (evt) {
34844
- if (evt.preventDefault)
34889
+ if (evt.preventDefault && !(browser_1.Browser.Safari && evt.code === "KeyV"))
34845
34890
  evt.preventDefault(); // prevent page scroll because of hidden textarea
34846
34891
  };
34847
34892
  InputManager.prototype.onInputKeyUp = function (evt) {
@@ -40573,6 +40618,7 @@ var __extends = (this && this.__extends) || (function () {
40573
40618
  })();
40574
40619
  Object.defineProperty(exports, "__esModule", { value: true });
40575
40620
  exports.ToolboxTouchDragEventsHandler = void 0;
40621
+ var Utils_1 = __webpack_require__(3);
40576
40622
  var ToolboxDragEventsHandlerBase_1 = __webpack_require__(105);
40577
40623
  var ToolboxTouchDragEventsHandler = /** @class */ (function (_super) {
40578
40624
  __extends(ToolboxTouchDragEventsHandler, _super);
@@ -40607,7 +40653,7 @@ var ToolboxTouchDragEventsHandler = /** @class */ (function (_super) {
40607
40653
  _super.prototype.detach.call(this);
40608
40654
  };
40609
40655
  ToolboxTouchDragEventsHandler.prototype.onDownCore = function (evt) {
40610
- this.manager.mainElement.focus();
40656
+ Utils_1.HtmlFocusUtils.focusWithPreventScroll(this.manager.mainElement);
40611
40657
  this.manager.startTouchDragging();
40612
40658
  };
40613
40659
  ToolboxTouchDragEventsHandler.prototype.onElementTouchMove = function (evt) {
@@ -40644,6 +40690,7 @@ exports.ToolboxPointerDragEventsHandler = void 0;
40644
40690
  var dom_1 = __webpack_require__(23);
40645
40691
  var ToolboxDragEventsHandlerBase_1 = __webpack_require__(105);
40646
40692
  var IDragEventsHandler_1 = __webpack_require__(161);
40693
+ var Utils_1 = __webpack_require__(3);
40647
40694
  var ToolboxPointerDragEventsHandler = /** @class */ (function (_super) {
40648
40695
  __extends(ToolboxPointerDragEventsHandler, _super);
40649
40696
  function ToolboxPointerDragEventsHandler() {
@@ -40679,7 +40726,7 @@ var ToolboxPointerDragEventsHandler = /** @class */ (function (_super) {
40679
40726
  _super.prototype.detach.call(this);
40680
40727
  };
40681
40728
  ToolboxPointerDragEventsHandler.prototype.onDownCore = function (evt) {
40682
- this.manager.mainElement.focus();
40729
+ Utils_1.HtmlFocusUtils.focusWithPreventScroll(this.manager.mainElement);
40683
40730
  if (this.isTouchEvent(evt))
40684
40731
  this.manager.startTouchDragging();
40685
40732
  };