@wcardinal/wcardinal-ui 0.389.0 → 0.390.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.
Files changed (54) hide show
  1. package/dist/types/wcardinal/ui/d-dialog-layered-footer.d.ts +26 -1
  2. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-dialog-layered-footer.d.ts +2 -0
  3. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-dialog-layered-header-separator.d.ts +1 -0
  4. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-scroll-bar-thumb.d.ts +3 -0
  5. package/dist/types/wcardinal/ui/theme/white/d-theme-white-dialog-layered-footer.d.ts +2 -0
  6. package/dist/types/wcardinal/ui/theme/white/d-theme-white-dialog-layered-header-separator.d.ts +1 -0
  7. package/dist/types/wcardinal/ui/theme/white/d-theme-white-scroll-bar-thumb.d.ts +3 -0
  8. package/dist/wcardinal/ui/d-dialog-layered-footer.js +56 -16
  9. package/dist/wcardinal/ui/d-dialog-layered-footer.js.map +1 -1
  10. package/dist/wcardinal/ui/theme/dark/d-theme-dark-base.js +2 -2
  11. package/dist/wcardinal/ui/theme/dark/d-theme-dark-base.js.map +1 -1
  12. package/dist/wcardinal/ui/theme/dark/d-theme-dark-dialog-layered-footer.js +6 -0
  13. package/dist/wcardinal/ui/theme/dark/d-theme-dark-dialog-layered-footer.js.map +1 -1
  14. package/dist/wcardinal/ui/theme/dark/d-theme-dark-dialog-layered-header-separator.js +3 -0
  15. package/dist/wcardinal/ui/theme/dark/d-theme-dark-dialog-layered-header-separator.js.map +1 -1
  16. package/dist/wcardinal/ui/theme/dark/d-theme-dark-list-items.js +2 -2
  17. package/dist/wcardinal/ui/theme/dark/d-theme-dark-list-items.js.map +1 -1
  18. package/dist/wcardinal/ui/theme/dark/d-theme-dark-scroll-bar-thumb.js +10 -7
  19. package/dist/wcardinal/ui/theme/dark/d-theme-dark-scroll-bar-thumb.js.map +1 -1
  20. package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-row.js +1 -1
  21. package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-row.js.map +1 -1
  22. package/dist/wcardinal/ui/theme/white/d-theme-white-base.js +2 -2
  23. package/dist/wcardinal/ui/theme/white/d-theme-white-base.js.map +1 -1
  24. package/dist/wcardinal/ui/theme/white/d-theme-white-dialog-layered-footer.js +6 -0
  25. package/dist/wcardinal/ui/theme/white/d-theme-white-dialog-layered-footer.js.map +1 -1
  26. package/dist/wcardinal/ui/theme/white/d-theme-white-dialog-layered-header-separator.js +3 -0
  27. package/dist/wcardinal/ui/theme/white/d-theme-white-dialog-layered-header-separator.js.map +1 -1
  28. package/dist/wcardinal/ui/theme/white/d-theme-white-list-items.js +1 -1
  29. package/dist/wcardinal/ui/theme/white/d-theme-white-list-items.js.map +1 -1
  30. package/dist/wcardinal/ui/theme/white/d-theme-white-scroll-bar-thumb.js +10 -7
  31. package/dist/wcardinal/ui/theme/white/d-theme-white-scroll-bar-thumb.js.map +1 -1
  32. package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-row.js +1 -1
  33. package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-row.js.map +1 -1
  34. package/dist/wcardinal-ui-theme-dark-en-us.js +25 -13
  35. package/dist/wcardinal-ui-theme-dark-en-us.min.js +2 -2
  36. package/dist/wcardinal-ui-theme-dark-en-us.min.js.map +1 -1
  37. package/dist/wcardinal-ui-theme-dark-ja-jp.js +25 -13
  38. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +2 -2
  39. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js.map +1 -1
  40. package/dist/wcardinal-ui-theme-dark.js +25 -13
  41. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  42. package/dist/wcardinal-ui-theme-white-en-us.js +24 -12
  43. package/dist/wcardinal-ui-theme-white-en-us.min.js +2 -2
  44. package/dist/wcardinal-ui-theme-white-en-us.min.js.map +1 -1
  45. package/dist/wcardinal-ui-theme-white-ja-jp.js +24 -12
  46. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +2 -2
  47. package/dist/wcardinal-ui-theme-white-ja-jp.min.js.map +1 -1
  48. package/dist/wcardinal-ui-theme-white.js +24 -12
  49. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  50. package/dist/wcardinal-ui.cjs.js +104 -40
  51. package/dist/wcardinal-ui.js +57 -17
  52. package/dist/wcardinal-ui.min.js +2 -2
  53. package/dist/wcardinal-ui.min.js.map +1 -1
  54. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.389.0
2
+ Winter Cardinal UI v0.390.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -30274,20 +30274,65 @@ var DDialogLayeredFooter = /** @class */ (function (_super) {
30274
30274
  function DDialogLayeredFooter(parent, options) {
30275
30275
  var _this = _super.call(this, options) || this;
30276
30276
  _this._parent = parent;
30277
- var buttonOk = _this.buttonOk;
30278
- var buttonCancel = _this.buttonCancel;
30279
- if (buttonOk != null || buttonCancel != null) {
30280
- _this.addChild(_this.newButtonSpace());
30281
- if (buttonCancel) {
30282
- _this.addChild(buttonCancel);
30277
+ return _this;
30278
+ }
30279
+ DDialogLayeredFooter.prototype.init = function (options) {
30280
+ _super.prototype.init.call(this, options);
30281
+ var children = this.newChildren();
30282
+ if (0 < children.length) {
30283
+ for (var i = 0, imax = children.length; i < imax; ++i) {
30284
+ var child = children[i];
30285
+ if (child != null) {
30286
+ this.addChild(child);
30287
+ }
30283
30288
  }
30284
- if (buttonOk) {
30285
- _this.addChild(buttonOk);
30289
+ }
30290
+ };
30291
+ DDialogLayeredFooter.prototype.newChildren = function () {
30292
+ return [this.buttonSpaceLeft, this.buttonOk, this.buttonCancel, this.buttonSpaceRight];
30293
+ };
30294
+ Object.defineProperty(DDialogLayeredFooter.prototype, "buttonSpaceLeft", {
30295
+ get: function () {
30296
+ var result = this._buttonSpaceLeft;
30297
+ if (result === undefined) {
30298
+ result = this.newButtonSpaceLeft();
30299
+ this._buttonSpaceLeft = result;
30300
+ }
30301
+ return result;
30302
+ },
30303
+ enumerable: false,
30304
+ configurable: true
30305
+ });
30306
+ DDialogLayeredFooter.prototype.newButtonSpaceLeft = function () {
30307
+ var _a, _b, _c, _d;
30308
+ if ((_d = (_c = (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.space) === null || _c === void 0 ? void 0 : _c.left) !== null && _d !== void 0 ? _d : this.theme.isButtonSpaceLeftEnabled()) {
30309
+ return new DLayoutSpace({
30310
+ weight: 1
30311
+ });
30312
+ }
30313
+ return null;
30314
+ };
30315
+ Object.defineProperty(DDialogLayeredFooter.prototype, "buttonSpaceRight", {
30316
+ get: function () {
30317
+ var result = this._buttonSpaceRight;
30318
+ if (result === undefined) {
30319
+ result = this.newButtonSpaceRight();
30320
+ this._buttonSpaceRight = result;
30286
30321
  }
30287
- _this.addChild(_this.newButtonSpace());
30322
+ return result;
30323
+ },
30324
+ enumerable: false,
30325
+ configurable: true
30326
+ });
30327
+ DDialogLayeredFooter.prototype.newButtonSpaceRight = function () {
30328
+ var _a, _b, _c, _d;
30329
+ if ((_d = (_c = (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.space) === null || _c === void 0 ? void 0 : _c.right) !== null && _d !== void 0 ? _d : this.theme.isButtonSpaceRightEnabled()) {
30330
+ return new DLayoutSpace({
30331
+ weight: 1
30332
+ });
30288
30333
  }
30289
- return _this;
30290
- }
30334
+ return null;
30335
+ };
30291
30336
  Object.defineProperty(DDialogLayeredFooter.prototype, "buttonCancel", {
30292
30337
  get: function () {
30293
30338
  var result = this._buttonCancel;
@@ -30368,11 +30413,6 @@ var DDialogLayeredFooter = /** @class */ (function (_super) {
30368
30413
  }
30369
30414
  return null;
30370
30415
  };
30371
- DDialogLayeredFooter.prototype.newButtonSpace = function () {
30372
- return new DLayoutSpace({
30373
- weight: 1
30374
- });
30375
- };
30376
30416
  DDialogLayeredFooter.prototype.getType = function () {
30377
30417
  return "DDialogLayeredFooter";
30378
30418
  };
@@ -46846,7 +46886,7 @@ var DThemeWhiteBase = /** @class */ (function (_super) {
46846
46886
  return 1;
46847
46887
  };
46848
46888
  DThemeWhiteBase.prototype.getBorderWidth = function (state) {
46849
- return 1;
46889
+ return 1.5;
46850
46890
  };
46851
46891
  DThemeWhiteBase.prototype.getBorderAlign = function (state) {
46852
46892
  return 0;
@@ -46885,7 +46925,7 @@ var DThemeWhiteBase = /** @class */ (function (_super) {
46885
46925
  return 0;
46886
46926
  };
46887
46927
  DThemeWhiteBase.prototype.getOutlineWidth = function (state) {
46888
- return 1;
46928
+ return 1.5;
46889
46929
  };
46890
46930
  DThemeWhiteBase.prototype.getOutlineOffset = function (state) {
46891
46931
  return 0;
@@ -49951,7 +49991,7 @@ var DThemeWhiteListItems = /** @class */ (function () {
49951
49991
  if (baseColor != null) {
49952
49992
  this._backgroundColorEven = baseColor;
49953
49993
  this._backgroundAlphaEven = 1;
49954
- this._backgroundColorOdd = UtilRgb.blend(baseColor, 0x000000, 0.0175);
49994
+ this._backgroundColorOdd = UtilRgb.darken(baseColor, 0.0175);
49955
49995
  this._backgroundAlphaOdd = 1;
49956
49996
  this._invalidColor = UtilRgb.blend(baseColor, DThemeWhiteConstants.INVALID_COLOR, DThemeWhiteConstants.INVALID_ALPHA);
49957
49997
  this._invalidAlpha = 1;
@@ -51386,6 +51426,9 @@ var DThemeWhiteScrollBarThumb = /** @class */ (function (_super) {
51386
51426
  function DThemeWhiteScrollBarThumb() {
51387
51427
  var _this = _super !== null && _super.apply(this, arguments) || this;
51388
51428
  _this.BORDER_COLOR = UtilRgb.darken(DThemeWhiteConstants.WEAK_HIGHLIGHT_COLOR, 0.25);
51429
+ _this.BORDER_COLOR_DISABLED = UtilRgb.brighten(_this.BORDER_COLOR, 0.75);
51430
+ _this.BORDER_COLOR_HOVERED = UtilRgb.brighten(_this.BORDER_COLOR, 0.25);
51431
+ _this.BORDER_COLOR_OTHER = UtilRgb.brighten(_this.BORDER_COLOR, 0.5);
51389
51432
  return _this;
51390
51433
  }
51391
51434
  DThemeWhiteScrollBarThumb.prototype.getBackgroundColor = function (state) {
@@ -51395,24 +51438,24 @@ var DThemeWhiteScrollBarThumb = /** @class */ (function (_super) {
51395
51438
  return 1;
51396
51439
  };
51397
51440
  DThemeWhiteScrollBarThumb.prototype.getBorderColor = function (state) {
51398
- return this.BORDER_COLOR;
51399
- };
51400
- DThemeWhiteScrollBarThumb.prototype.getBorderAlpha = function (state) {
51401
51441
  if (state.inDisabled) {
51402
- return 0.25;
51442
+ return this.BORDER_COLOR_DISABLED;
51403
51443
  }
51404
51444
  else if (state.isHovered || state.isGesturing) {
51405
- return 0.75;
51445
+ return this.BORDER_COLOR_HOVERED;
51406
51446
  }
51407
51447
  else {
51408
- return 0.5;
51448
+ return this.BORDER_COLOR_OTHER;
51409
51449
  }
51410
51450
  };
51451
+ DThemeWhiteScrollBarThumb.prototype.getBorderAlpha = function (state) {
51452
+ return 1;
51453
+ };
51411
51454
  DThemeWhiteScrollBarThumb.prototype.getBorderWidth = function (state) {
51412
51455
  return 3;
51413
51456
  };
51414
51457
  DThemeWhiteScrollBarThumb.prototype.getBorderAlign = function (state) {
51415
- return 0.5;
51458
+ return 1;
51416
51459
  };
51417
51460
  DThemeWhiteScrollBarThumb.prototype.getWidth = function () {
51418
51461
  return 13;
@@ -54551,6 +54594,9 @@ var DThemeWhiteDialogLayeredHeaderSeparator = /** @class */ (function (_super) {
54551
54594
  DThemeWhiteDialogLayeredHeaderSeparator.prototype.getInteractive = function () {
54552
54595
  return DBaseInteractive.NONE;
54553
54596
  };
54597
+ DThemeWhiteDialogLayeredHeaderSeparator.prototype.newState = function (state) {
54598
+ state.isFocusable = false;
54599
+ };
54554
54600
  return DThemeWhiteDialogLayeredHeaderSeparator;
54555
54601
  }(DThemeWhiteImageBase));
54556
54602
 
@@ -54563,6 +54609,12 @@ var DThemeWhiteDialogLayeredFooter = /** @class */ (function (_super) {
54563
54609
  function DThemeWhiteDialogLayeredFooter() {
54564
54610
  return _super !== null && _super.apply(this, arguments) || this;
54565
54611
  }
54612
+ DThemeWhiteDialogLayeredFooter.prototype.isButtonSpaceLeftEnabled = function () {
54613
+ return true;
54614
+ };
54615
+ DThemeWhiteDialogLayeredFooter.prototype.isButtonSpaceRightEnabled = function () {
54616
+ return true;
54617
+ };
54566
54618
  DThemeWhiteDialogLayeredFooter.prototype.getX = function () {
54567
54619
  return "padding";
54568
54620
  };
@@ -56474,7 +56526,7 @@ var DThemeWhiteTableBodyRow = /** @class */ (function (_super) {
56474
56526
  function DThemeWhiteTableBodyRow() {
56475
56527
  var _this = _super !== null && _super.apply(this, arguments) || this;
56476
56528
  _this.BACKGROUND_COLOR_EVEN = DThemeWhiteConstants.BACKGROUND_COLOR_ON_BOARD;
56477
- _this.BACKGROUND_COLOR_ODD = UtilRgb.darken(DThemeWhiteConstants.BACKGROUND_COLOR_ON_BOARD, 0.015);
56529
+ _this.BACKGROUND_COLOR_ODD = UtilRgb.darken(DThemeWhiteConstants.BACKGROUND_COLOR_ON_BOARD, 0.0125);
56478
56530
  return _this;
56479
56531
  }
56480
56532
  DThemeWhiteTableBodyRow.prototype.getBackgroundColor = function (state) {
@@ -57831,7 +57883,7 @@ var DThemeDarkBase = /** @class */ (function (_super) {
57831
57883
  return 1;
57832
57884
  };
57833
57885
  DThemeDarkBase.prototype.getBorderWidth = function (state) {
57834
- return 1;
57886
+ return 1.5;
57835
57887
  };
57836
57888
  DThemeDarkBase.prototype.getBorderAlign = function (state) {
57837
57889
  return 0;
@@ -57870,7 +57922,7 @@ var DThemeDarkBase = /** @class */ (function (_super) {
57870
57922
  return 0;
57871
57923
  };
57872
57924
  DThemeDarkBase.prototype.getOutlineWidth = function (state) {
57873
- return 1;
57925
+ return 1.5;
57874
57926
  };
57875
57927
  DThemeDarkBase.prototype.getOutlineOffset = function (state) {
57876
57928
  return 0;
@@ -60793,7 +60845,7 @@ var DThemeDarkListItems = /** @class */ (function () {
60793
60845
  if (baseColor != null) {
60794
60846
  this._backgroundColorEven = baseColor;
60795
60847
  this._backgroundAlphaEven = 1;
60796
- this._backgroundColorOdd = UtilRgb.blend(baseColor, 0xffffff, 0.025);
60848
+ this._backgroundColorOdd = UtilRgb.brighten(baseColor, 0.0075);
60797
60849
  this._backgroundAlphaOdd = 1;
60798
60850
  this._invalidColor = UtilRgb.blend(baseColor, DThemeDarkConstants.INVALID_COLOR, DThemeDarkConstants.INVALID_ALPHA);
60799
60851
  this._invalidAlpha = 1;
@@ -60811,7 +60863,7 @@ var DThemeDarkListItems = /** @class */ (function () {
60811
60863
  this._backgroundColorEven = 0xffffff;
60812
60864
  this._backgroundAlphaEven = 0;
60813
60865
  this._backgroundColorOdd = 0xffffff;
60814
- this._backgroundAlphaOdd = 0.025;
60866
+ this._backgroundAlphaOdd = 0.0075;
60815
60867
  this._invalidColor = DThemeDarkConstants.INVALID_COLOR;
60816
60868
  this._invalidAlpha = DThemeDarkConstants.INVALID_ALPHA;
60817
60869
  this._highlightColor = DThemeDarkConstants.HIGHLIGHT_COLOR;
@@ -62226,6 +62278,9 @@ var DThemeDarkScrollBarThumb = /** @class */ (function (_super) {
62226
62278
  function DThemeDarkScrollBarThumb() {
62227
62279
  var _this = _super !== null && _super.apply(this, arguments) || this;
62228
62280
  _this.BORDER_COLOR = UtilRgb.brighten(DThemeDarkConstants.WEAK_HIGHLIGHT_COLOR, 0.25);
62281
+ _this.BORDER_COLOR_DISABLED = UtilRgb.darken(_this.BORDER_COLOR, 0.75);
62282
+ _this.BORDER_COLOR_HOVERED = UtilRgb.darken(_this.BORDER_COLOR, 0.25);
62283
+ _this.BORDER_COLOR_OTHER = UtilRgb.darken(_this.BORDER_COLOR, 0.5);
62229
62284
  return _this;
62230
62285
  }
62231
62286
  DThemeDarkScrollBarThumb.prototype.getBackgroundColor = function (state) {
@@ -62235,24 +62290,24 @@ var DThemeDarkScrollBarThumb = /** @class */ (function (_super) {
62235
62290
  return 1;
62236
62291
  };
62237
62292
  DThemeDarkScrollBarThumb.prototype.getBorderColor = function (state) {
62238
- return this.BORDER_COLOR;
62239
- };
62240
- DThemeDarkScrollBarThumb.prototype.getBorderAlpha = function (state) {
62241
62293
  if (state.inDisabled) {
62242
- return 0.25;
62294
+ return this.BORDER_COLOR_DISABLED;
62243
62295
  }
62244
62296
  else if (state.isHovered || state.isGesturing) {
62245
- return 0.75;
62297
+ return this.BORDER_COLOR_HOVERED;
62246
62298
  }
62247
62299
  else {
62248
- return 0.5;
62300
+ return this.BORDER_COLOR_OTHER;
62249
62301
  }
62250
62302
  };
62303
+ DThemeDarkScrollBarThumb.prototype.getBorderAlpha = function (state) {
62304
+ return 1;
62305
+ };
62251
62306
  DThemeDarkScrollBarThumb.prototype.getBorderWidth = function (state) {
62252
62307
  return 3;
62253
62308
  };
62254
62309
  DThemeDarkScrollBarThumb.prototype.getBorderAlign = function (state) {
62255
- return 0.5;
62310
+ return 1;
62256
62311
  };
62257
62312
  DThemeDarkScrollBarThumb.prototype.getWidth = function () {
62258
62313
  return 13;
@@ -64925,6 +64980,9 @@ var DThemeDarkDialogLayeredHeaderSeparator = /** @class */ (function (_super) {
64925
64980
  DThemeDarkDialogLayeredHeaderSeparator.prototype.getInteractive = function () {
64926
64981
  return DBaseInteractive.NONE;
64927
64982
  };
64983
+ DThemeDarkDialogLayeredHeaderSeparator.prototype.newState = function (state) {
64984
+ state.isFocusable = false;
64985
+ };
64928
64986
  return DThemeDarkDialogLayeredHeaderSeparator;
64929
64987
  }(DThemeDarkImageBase));
64930
64988
 
@@ -64937,6 +64995,12 @@ var DThemeDarkDialogLayeredFooter = /** @class */ (function (_super) {
64937
64995
  function DThemeDarkDialogLayeredFooter() {
64938
64996
  return _super !== null && _super.apply(this, arguments) || this;
64939
64997
  }
64998
+ DThemeDarkDialogLayeredFooter.prototype.isButtonSpaceLeftEnabled = function () {
64999
+ return true;
65000
+ };
65001
+ DThemeDarkDialogLayeredFooter.prototype.isButtonSpaceRightEnabled = function () {
65002
+ return true;
65003
+ };
64940
65004
  DThemeDarkDialogLayeredFooter.prototype.getX = function () {
64941
65005
  return "padding";
64942
65006
  };
@@ -66845,7 +66909,7 @@ var DThemeDarkTableBodyRow = /** @class */ (function (_super) {
66845
66909
  function DThemeDarkTableBodyRow() {
66846
66910
  var _this = _super !== null && _super.apply(this, arguments) || this;
66847
66911
  _this.BACKGROUND_COLOR_EVEN = DThemeDarkConstants.BACKGROUND_COLOR_ON_BOARD;
66848
- _this.BACKGROUND_COLOR_ODD = UtilRgb.brighten(DThemeDarkConstants.BACKGROUND_COLOR_ON_BOARD, 0.03);
66912
+ _this.BACKGROUND_COLOR_ODD = UtilRgb.brighten(DThemeDarkConstants.BACKGROUND_COLOR_ON_BOARD, 0.01);
66849
66913
  return _this;
66850
66914
  }
66851
66915
  DThemeDarkTableBodyRow.prototype.getBackgroundColor = function (state) {
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.389.0
2
+ Winter Cardinal UI v0.390.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -30271,20 +30271,65 @@
30271
30271
  function DDialogLayeredFooter(parent, options) {
30272
30272
  var _this = _super.call(this, options) || this;
30273
30273
  _this._parent = parent;
30274
- var buttonOk = _this.buttonOk;
30275
- var buttonCancel = _this.buttonCancel;
30276
- if (buttonOk != null || buttonCancel != null) {
30277
- _this.addChild(_this.newButtonSpace());
30278
- if (buttonCancel) {
30279
- _this.addChild(buttonCancel);
30274
+ return _this;
30275
+ }
30276
+ DDialogLayeredFooter.prototype.init = function (options) {
30277
+ _super.prototype.init.call(this, options);
30278
+ var children = this.newChildren();
30279
+ if (0 < children.length) {
30280
+ for (var i = 0, imax = children.length; i < imax; ++i) {
30281
+ var child = children[i];
30282
+ if (child != null) {
30283
+ this.addChild(child);
30284
+ }
30280
30285
  }
30281
- if (buttonOk) {
30282
- _this.addChild(buttonOk);
30286
+ }
30287
+ };
30288
+ DDialogLayeredFooter.prototype.newChildren = function () {
30289
+ return [this.buttonSpaceLeft, this.buttonOk, this.buttonCancel, this.buttonSpaceRight];
30290
+ };
30291
+ Object.defineProperty(DDialogLayeredFooter.prototype, "buttonSpaceLeft", {
30292
+ get: function () {
30293
+ var result = this._buttonSpaceLeft;
30294
+ if (result === undefined) {
30295
+ result = this.newButtonSpaceLeft();
30296
+ this._buttonSpaceLeft = result;
30283
30297
  }
30284
- _this.addChild(_this.newButtonSpace());
30298
+ return result;
30299
+ },
30300
+ enumerable: false,
30301
+ configurable: true
30302
+ });
30303
+ DDialogLayeredFooter.prototype.newButtonSpaceLeft = function () {
30304
+ var _a, _b, _c, _d;
30305
+ if ((_d = (_c = (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.space) === null || _c === void 0 ? void 0 : _c.left) !== null && _d !== void 0 ? _d : this.theme.isButtonSpaceLeftEnabled()) {
30306
+ return new DLayoutSpace({
30307
+ weight: 1
30308
+ });
30285
30309
  }
30286
- return _this;
30287
- }
30310
+ return null;
30311
+ };
30312
+ Object.defineProperty(DDialogLayeredFooter.prototype, "buttonSpaceRight", {
30313
+ get: function () {
30314
+ var result = this._buttonSpaceRight;
30315
+ if (result === undefined) {
30316
+ result = this.newButtonSpaceRight();
30317
+ this._buttonSpaceRight = result;
30318
+ }
30319
+ return result;
30320
+ },
30321
+ enumerable: false,
30322
+ configurable: true
30323
+ });
30324
+ DDialogLayeredFooter.prototype.newButtonSpaceRight = function () {
30325
+ var _a, _b, _c, _d;
30326
+ if ((_d = (_c = (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.space) === null || _c === void 0 ? void 0 : _c.right) !== null && _d !== void 0 ? _d : this.theme.isButtonSpaceRightEnabled()) {
30327
+ return new DLayoutSpace({
30328
+ weight: 1
30329
+ });
30330
+ }
30331
+ return null;
30332
+ };
30288
30333
  Object.defineProperty(DDialogLayeredFooter.prototype, "buttonCancel", {
30289
30334
  get: function () {
30290
30335
  var result = this._buttonCancel;
@@ -30365,11 +30410,6 @@
30365
30410
  }
30366
30411
  return null;
30367
30412
  };
30368
- DDialogLayeredFooter.prototype.newButtonSpace = function () {
30369
- return new DLayoutSpace({
30370
- weight: 1
30371
- });
30372
- };
30373
30413
  DDialogLayeredFooter.prototype.getType = function () {
30374
30414
  return "DDialogLayeredFooter";
30375
30415
  };