@wcardinal/wcardinal-ui 0.332.0 → 0.333.0

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,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.332.0
2
+ Winter Cardinal UI v0.333.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -13777,7 +13777,8 @@
13777
13777
  _this._snippet = new DBaseSnippetContainer(_this);
13778
13778
  _this._reflowable = new DBaseReflowableContainer();
13779
13779
  _this._clearType = toEnum((_b = options === null || options === void 0 ? void 0 : options.clear) !== null && _b !== void 0 ? _b : theme.getClearType(), DLayoutClearType);
13780
- _this._padding = new DBasePadding(theme, options, function () {
13780
+ _this._padding = _this.newPadding(theme, options, function () {
13781
+ _this.toDirty();
13781
13782
  _this.toParentResized();
13782
13783
  _this.toHierarchyDirty();
13783
13784
  DApplications.update(_this);
@@ -14023,6 +14024,9 @@
14023
14024
  _this.emit("init", _this);
14024
14025
  return _this;
14025
14026
  }
14027
+ DBase.prototype.newPadding = function (theme, options, callback) {
14028
+ return new DBasePadding(theme, options, callback);
14029
+ };
14026
14030
  DBase.prototype.toCursor = function (cursor, state) {
14027
14031
  if (cursor) {
14028
14032
  if (isFunction(cursor)) {
@@ -18357,14 +18361,18 @@
18357
18361
  EShapeConnectorEdgeImpl.prototype.attach = function () {
18358
18362
  var shape = this._acceptor.shape;
18359
18363
  if (shape) {
18360
- shape.connector.add(this);
18364
+ if (shape.connector.add(this)) {
18365
+ this.onAcceptorChange();
18366
+ }
18361
18367
  }
18362
18368
  return this;
18363
18369
  };
18364
18370
  EShapeConnectorEdgeImpl.prototype.detach = function () {
18365
18371
  var shape = this._acceptor.shape;
18366
18372
  if (shape) {
18367
- shape.connector.remove(this);
18373
+ if (shape.connector.remove(this)) {
18374
+ this.onAcceptorChange();
18375
+ }
18368
18376
  }
18369
18377
  return this;
18370
18378
  };
@@ -49451,128 +49459,66 @@
49451
49459
  * Copyright (C) 2019 Toshiba Corporation
49452
49460
  * SPDX-License-Identifier: Apache-2.0
49453
49461
  */
49454
- var DBasePaddingAdjustable = /** @class */ (function () {
49455
- function DBasePaddingAdjustable(target) {
49456
- this._target = target;
49457
- this._top = 0;
49458
- this._right = 0;
49459
- this._bottom = 0;
49460
- this._left = 0;
49461
- if (target instanceof DBasePadding) {
49462
- this._callback = target.getCallback();
49463
- }
49462
+ var DBasePaddingAdjustable = /** @class */ (function (_super) {
49463
+ __extends(DBasePaddingAdjustable, _super);
49464
+ function DBasePaddingAdjustable(theme, options, callback) {
49465
+ var _this = _super.call(this, theme, options, callback) || this;
49466
+ _this._atop = 0;
49467
+ _this._aright = 0;
49468
+ _this._abottom = 0;
49469
+ _this._aleft = 0;
49470
+ return _this;
49464
49471
  }
49465
- DBasePaddingAdjustable.prototype.getTheme = function () {
49466
- return this._target.getTheme();
49467
- };
49468
- DBasePaddingAdjustable.prototype.setTheme = function (theme) {
49469
- this._target.setTheme(theme);
49470
- };
49471
49472
  DBasePaddingAdjustable.prototype.getLeft = function () {
49472
- return this._target.getLeft() + this._left;
49473
+ return _super.prototype.getLeft.call(this) + this._aleft;
49473
49474
  };
49474
- DBasePaddingAdjustable.prototype.adjLeft = function (left) {
49475
- if (this._left !== left) {
49476
- this._left = left;
49475
+ DBasePaddingAdjustable.prototype.adjLeft = function (aleft) {
49476
+ if (this._aleft !== aleft) {
49477
+ this._aleft = aleft;
49477
49478
  var callback = this._callback;
49478
49479
  if (callback) {
49479
49480
  callback();
49480
49481
  }
49481
49482
  }
49482
49483
  };
49483
- Object.defineProperty(DBasePaddingAdjustable.prototype, "left", {
49484
- get: function () {
49485
- return this._target.left;
49486
- },
49487
- set: function (left) {
49488
- this._target.left = left;
49489
- },
49490
- enumerable: false,
49491
- configurable: true
49492
- });
49493
49484
  DBasePaddingAdjustable.prototype.getTop = function () {
49494
- return this._target.getTop() + this._top;
49485
+ return _super.prototype.getTop.call(this) + this._atop;
49495
49486
  };
49496
- DBasePaddingAdjustable.prototype.adjTop = function (top) {
49497
- if (this._top !== top) {
49498
- this._top = top;
49487
+ DBasePaddingAdjustable.prototype.adjTop = function (atop) {
49488
+ if (this._atop !== atop) {
49489
+ this._atop = atop;
49499
49490
  var callback = this._callback;
49500
49491
  if (callback) {
49501
49492
  callback();
49502
49493
  }
49503
49494
  }
49504
49495
  };
49505
- Object.defineProperty(DBasePaddingAdjustable.prototype, "top", {
49506
- get: function () {
49507
- return this._target.top;
49508
- },
49509
- set: function (top) {
49510
- this._target.top = top;
49511
- },
49512
- enumerable: false,
49513
- configurable: true
49514
- });
49515
49496
  DBasePaddingAdjustable.prototype.getRight = function () {
49516
- return this._target.getRight() + this._right;
49497
+ return _super.prototype.getRight.call(this) + this._aright;
49517
49498
  };
49518
- DBasePaddingAdjustable.prototype.adjRight = function (right) {
49519
- if (this._right !== right) {
49520
- this._right = right;
49499
+ DBasePaddingAdjustable.prototype.adjRight = function (aright) {
49500
+ if (this._aright !== aright) {
49501
+ this._aright = aright;
49521
49502
  var callback = this._callback;
49522
49503
  if (callback) {
49523
49504
  callback();
49524
49505
  }
49525
49506
  }
49526
49507
  };
49527
- Object.defineProperty(DBasePaddingAdjustable.prototype, "right", {
49528
- get: function () {
49529
- return this._target.right;
49530
- },
49531
- set: function (right) {
49532
- this._target.right = right;
49533
- },
49534
- enumerable: false,
49535
- configurable: true
49536
- });
49537
49508
  DBasePaddingAdjustable.prototype.getBottom = function () {
49538
- return this._target.getBottom() + this._bottom;
49509
+ return _super.prototype.getBottom.call(this) + this._abottom;
49539
49510
  };
49540
- DBasePaddingAdjustable.prototype.adjBottom = function (bottom) {
49541
- if (this._bottom !== bottom) {
49542
- this._bottom = bottom;
49511
+ DBasePaddingAdjustable.prototype.adjBottom = function (abottom) {
49512
+ if (this._abottom !== abottom) {
49513
+ this._abottom = abottom;
49543
49514
  var callback = this._callback;
49544
49515
  if (callback) {
49545
49516
  callback();
49546
49517
  }
49547
49518
  }
49548
49519
  };
49549
- Object.defineProperty(DBasePaddingAdjustable.prototype, "bottom", {
49550
- get: function () {
49551
- return this._target.bottom;
49552
- },
49553
- set: function (bottom) {
49554
- this._target.bottom = bottom;
49555
- },
49556
- enumerable: false,
49557
- configurable: true
49558
- });
49559
- DBasePaddingAdjustable.prototype.set = function (top, right, bottom, left) {
49560
- var target = this._target;
49561
- if (right == null) {
49562
- target.set(top);
49563
- }
49564
- else if (bottom == null) {
49565
- target.set(top, right);
49566
- }
49567
- else if (left == null) {
49568
- target.set(top, right, bottom);
49569
- }
49570
- else {
49571
- target.set(top, right, bottom, left);
49572
- }
49573
- };
49574
49520
  return DBasePaddingAdjustable;
49575
- }());
49521
+ }(DBasePadding));
49576
49522
 
49577
49523
  /*
49578
49524
  * Copyright (C) 2019 Toshiba Corporation
@@ -69015,11 +68961,12 @@
69015
68961
  */
69016
68962
  var DTableBodyCellInputTreeInput = /** @class */ (function (_super) {
69017
68963
  __extends(DTableBodyCellInputTreeInput, _super);
69018
- function DTableBodyCellInputTreeInput(options) {
69019
- var _this = _super.call(this, options) || this;
69020
- _this._padding = new DBasePaddingAdjustable(_this._padding);
69021
- return _this;
68964
+ function DTableBodyCellInputTreeInput() {
68965
+ return _super !== null && _super.apply(this, arguments) || this;
69022
68966
  }
68967
+ DTableBodyCellInputTreeInput.prototype.newPadding = function (theme, options, callback) {
68968
+ return new DBasePaddingAdjustable(theme, options, callback);
68969
+ };
69023
68970
  Object.defineProperty(DTableBodyCellInputTreeInput.prototype, "padding", {
69024
68971
  get: function () {
69025
68972
  return this._padding;
@@ -69605,12 +69552,12 @@
69605
69552
  var DTableBodyCellTree = /** @class */ (function (_super) {
69606
69553
  __extends(DTableBodyCellTree, _super);
69607
69554
  function DTableBodyCellTree(columnIndex, column, onChange, options) {
69608
- var _this = this;
69609
69555
  var _a;
69610
- _this = _super.call(this, columnIndex, column, onChange, DLinks.toStateOptions((_a = options === null || options === void 0 ? void 0 : options.link) === null || _a === void 0 ? void 0 : _a.target, options)) || this;
69611
- _this._padding = new DBasePaddingAdjustable(_this._padding);
69612
- return _this;
69556
+ return _super.call(this, columnIndex, column, onChange, DLinks.toStateOptions((_a = options === null || options === void 0 ? void 0 : options.link) === null || _a === void 0 ? void 0 : _a.target, options)) || this;
69613
69557
  }
69558
+ DTableBodyCellTree.prototype.newPadding = function (theme, options, callback) {
69559
+ return new DBasePaddingAdjustable(theme, options, callback);
69560
+ };
69614
69561
  DTableBodyCellTree.prototype.onClick = function (e) {
69615
69562
  var _a;
69616
69563
  if (((_a = this.link) === null || _a === void 0 ? void 0 : _a.onClick(this, e)) !== true) {
@@ -74681,10 +74628,12 @@
74681
74628
  __extends(DTreeItemText, _super);
74682
74629
  function DTreeItemText(data, options) {
74683
74630
  var _this = _super.call(this, options) || this;
74684
- _this._padding = new DBasePaddingAdjustable(_this._padding);
74685
74631
  _this._data = data;
74686
74632
  return _this;
74687
74633
  }
74634
+ DTreeItemText.prototype.newPadding = function (theme, options, callback) {
74635
+ return new DBasePaddingAdjustable(theme, options, callback);
74636
+ };
74688
74637
  Object.defineProperty(DTreeItemText.prototype, "node", {
74689
74638
  get: function () {
74690
74639
  return this._node;