@wcardinal/wcardinal-ui 0.332.0 → 0.334.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 (55) hide show
  1. package/dist/types/wcardinal/ui/d-base-padding-adjustable.d.ts +12 -34
  2. package/dist/types/wcardinal/ui/d-base.d.ts +2 -0
  3. package/dist/types/wcardinal/ui/d-button-select.d.ts +3 -3
  4. package/dist/types/wcardinal/ui/d-dialog-select-search-dismissable-impl.d.ts +7 -7
  5. package/dist/types/wcardinal/ui/d-dialog-select-search-dismissable.d.ts +4 -4
  6. package/dist/types/wcardinal/ui/d-dialog-select-search-impl.d.ts +4 -4
  7. package/dist/types/wcardinal/ui/d-dialog-select-search.d.ts +2 -2
  8. package/dist/types/wcardinal/ui/d-dialog-select.d.ts +42 -14
  9. package/dist/types/wcardinal/ui/d-table-body-cell-input-tree-input.d.ts +1 -1
  10. package/dist/types/wcardinal/ui/d-table-body-cell-tree.d.ts +1 -0
  11. package/dist/types/wcardinal/ui/d-tree-item-text.d.ts +1 -0
  12. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-dialog-select.d.ts +2 -0
  13. package/dist/types/wcardinal/ui/theme/white/d-theme-white-dialog-select.d.ts +2 -0
  14. package/dist/types/wcardinal/ui/util/index.d.ts +1 -0
  15. package/dist/types/wcardinal/ui/util/to-id.d.ts +1 -0
  16. package/dist/wcardinal/ui/d-base-padding-adjustable.js +27 -88
  17. package/dist/wcardinal/ui/d-base-padding-adjustable.js.map +1 -1
  18. package/dist/wcardinal/ui/d-base.js +5 -1
  19. package/dist/wcardinal/ui/d-base.js.map +1 -1
  20. package/dist/wcardinal/ui/d-button-select.js +2 -37
  21. package/dist/wcardinal/ui/d-button-select.js.map +1 -1
  22. package/dist/wcardinal/ui/d-dialog-select-search-dismissable-impl.js.map +1 -1
  23. package/dist/wcardinal/ui/d-dialog-select-search-dismissable.js.map +1 -1
  24. package/dist/wcardinal/ui/d-dialog-select-search-impl.js +1 -1
  25. package/dist/wcardinal/ui/d-dialog-select-search-impl.js.map +1 -1
  26. package/dist/wcardinal/ui/d-dialog-select-search.js.map +1 -1
  27. package/dist/wcardinal/ui/d-dialog-select.js +162 -15
  28. package/dist/wcardinal/ui/d-dialog-select.js.map +1 -1
  29. package/dist/wcardinal/ui/d-table-body-cell-input-tree-input.js +5 -4
  30. package/dist/wcardinal/ui/d-table-body-cell-input-tree-input.js.map +1 -1
  31. package/dist/wcardinal/ui/d-table-body-cell-tree.js +4 -4
  32. package/dist/wcardinal/ui/d-table-body-cell-tree.js.map +1 -1
  33. package/dist/wcardinal/ui/d-tree-item-text.js +3 -1
  34. package/dist/wcardinal/ui/d-tree-item-text.js.map +1 -1
  35. package/dist/wcardinal/ui/shape/e-shape-connector-edge-impl.js +6 -2
  36. package/dist/wcardinal/ui/shape/e-shape-connector-edge-impl.js.map +1 -1
  37. package/dist/wcardinal/ui/theme/dark/d-theme-dark-dialog-select.js +9 -1
  38. package/dist/wcardinal/ui/theme/dark/d-theme-dark-dialog-select.js.map +1 -1
  39. package/dist/wcardinal/ui/theme/white/d-theme-white-dialog-select.js +9 -1
  40. package/dist/wcardinal/ui/theme/white/d-theme-white-dialog-select.js.map +1 -1
  41. package/dist/wcardinal/ui/util/index.js +1 -0
  42. package/dist/wcardinal/ui/util/index.js.map +1 -1
  43. package/dist/wcardinal/ui/util/to-id.js +27 -0
  44. package/dist/wcardinal/ui/util/to-id.js.map +1 -0
  45. package/dist/wcardinal-ui-theme-dark.js +10 -2
  46. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  47. package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
  48. package/dist/wcardinal-ui-theme-white.js +10 -2
  49. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  50. package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
  51. package/dist/wcardinal-ui.cjs.js +252 -156
  52. package/dist/wcardinal-ui.js +238 -154
  53. package/dist/wcardinal-ui.min.js +2 -2
  54. package/dist/wcardinal-ui.min.js.map +1 -1
  55. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.332.0
2
+ Winter Cardinal UI v0.334.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
  };
@@ -46982,6 +46990,31 @@
46982
46990
  return target;
46983
46991
  };
46984
46992
 
46993
+ /*
46994
+ * Copyright (C) 2019 Toshiba Corporation
46995
+ * SPDX-License-Identifier: Apache-2.0
46996
+ */
46997
+ var toId = function (target) {
46998
+ if (target != null) {
46999
+ if (isString(target)) {
47000
+ return target;
47001
+ }
47002
+ else if (isNumber(target)) {
47003
+ return target;
47004
+ }
47005
+ else if ("id" in target) {
47006
+ return target.id;
47007
+ }
47008
+ else if ("name" in target) {
47009
+ return target.name;
47010
+ }
47011
+ else if ("label" in target) {
47012
+ return target.label;
47013
+ }
47014
+ }
47015
+ return 0;
47016
+ };
47017
+
46985
47018
  /*
46986
47019
  * Copyright (C) 2019 Toshiba Corporation
46987
47020
  * SPDX-License-Identifier: Apache-2.0
@@ -49451,128 +49484,66 @@
49451
49484
  * Copyright (C) 2019 Toshiba Corporation
49452
49485
  * SPDX-License-Identifier: Apache-2.0
49453
49486
  */
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
- }
49487
+ var DBasePaddingAdjustable = /** @class */ (function (_super) {
49488
+ __extends(DBasePaddingAdjustable, _super);
49489
+ function DBasePaddingAdjustable(theme, options, callback) {
49490
+ var _this = _super.call(this, theme, options, callback) || this;
49491
+ _this._atop = 0;
49492
+ _this._aright = 0;
49493
+ _this._abottom = 0;
49494
+ _this._aleft = 0;
49495
+ return _this;
49464
49496
  }
49465
- DBasePaddingAdjustable.prototype.getTheme = function () {
49466
- return this._target.getTheme();
49467
- };
49468
- DBasePaddingAdjustable.prototype.setTheme = function (theme) {
49469
- this._target.setTheme(theme);
49470
- };
49471
49497
  DBasePaddingAdjustable.prototype.getLeft = function () {
49472
- return this._target.getLeft() + this._left;
49498
+ return _super.prototype.getLeft.call(this) + this._aleft;
49473
49499
  };
49474
- DBasePaddingAdjustable.prototype.adjLeft = function (left) {
49475
- if (this._left !== left) {
49476
- this._left = left;
49500
+ DBasePaddingAdjustable.prototype.adjLeft = function (aleft) {
49501
+ if (this._aleft !== aleft) {
49502
+ this._aleft = aleft;
49477
49503
  var callback = this._callback;
49478
49504
  if (callback) {
49479
49505
  callback();
49480
49506
  }
49481
49507
  }
49482
49508
  };
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
49509
  DBasePaddingAdjustable.prototype.getTop = function () {
49494
- return this._target.getTop() + this._top;
49510
+ return _super.prototype.getTop.call(this) + this._atop;
49495
49511
  };
49496
- DBasePaddingAdjustable.prototype.adjTop = function (top) {
49497
- if (this._top !== top) {
49498
- this._top = top;
49512
+ DBasePaddingAdjustable.prototype.adjTop = function (atop) {
49513
+ if (this._atop !== atop) {
49514
+ this._atop = atop;
49499
49515
  var callback = this._callback;
49500
49516
  if (callback) {
49501
49517
  callback();
49502
49518
  }
49503
49519
  }
49504
49520
  };
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
49521
  DBasePaddingAdjustable.prototype.getRight = function () {
49516
- return this._target.getRight() + this._right;
49522
+ return _super.prototype.getRight.call(this) + this._aright;
49517
49523
  };
49518
- DBasePaddingAdjustable.prototype.adjRight = function (right) {
49519
- if (this._right !== right) {
49520
- this._right = right;
49524
+ DBasePaddingAdjustable.prototype.adjRight = function (aright) {
49525
+ if (this._aright !== aright) {
49526
+ this._aright = aright;
49521
49527
  var callback = this._callback;
49522
49528
  if (callback) {
49523
49529
  callback();
49524
49530
  }
49525
49531
  }
49526
49532
  };
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
49533
  DBasePaddingAdjustable.prototype.getBottom = function () {
49538
- return this._target.getBottom() + this._bottom;
49534
+ return _super.prototype.getBottom.call(this) + this._abottom;
49539
49535
  };
49540
- DBasePaddingAdjustable.prototype.adjBottom = function (bottom) {
49541
- if (this._bottom !== bottom) {
49542
- this._bottom = bottom;
49536
+ DBasePaddingAdjustable.prototype.adjBottom = function (abottom) {
49537
+ if (this._abottom !== abottom) {
49538
+ this._abottom = abottom;
49543
49539
  var callback = this._callback;
49544
49540
  if (callback) {
49545
49541
  callback();
49546
49542
  }
49547
49543
  }
49548
49544
  };
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
49545
  return DBasePaddingAdjustable;
49575
- }());
49546
+ }(DBasePadding));
49576
49547
 
49577
49548
  /*
49578
49549
  * Copyright (C) 2019 Toshiba Corporation
@@ -55157,7 +55128,7 @@
55157
55128
  DDialogSelectSearhImpl.prototype.create = function (args) {
55158
55129
  var _this = this;
55159
55130
  var id = ++this._id;
55160
- this._search(args[0]).then(function (searchResult) {
55131
+ this._search(args[0], args[1]).then(function (searchResult) {
55161
55132
  if (_this._id === id) {
55162
55133
  _this._idCompleted = id;
55163
55134
  _this.emit("success", _this, searchResult);
@@ -55370,7 +55341,7 @@
55370
55341
  get: function () {
55371
55342
  var result = this._inputLayout;
55372
55343
  if (result == null) {
55373
- result = this.newInputLayout(this.input, this.theme, this._options);
55344
+ result = this.newInputLayout();
55374
55345
  this._inputLayout = result;
55375
55346
  }
55376
55347
  return result;
@@ -55378,20 +55349,78 @@
55378
55349
  enumerable: false,
55379
55350
  configurable: true
55380
55351
  });
55381
- DDialogSelect.prototype.newInputLayout = function (input, theme, options) {
55382
- return new DLayoutHorizontal(this.toInputLayoutOptions(input, theme, options));
55383
- };
55384
- DDialogSelect.prototype.toInputLayoutOptions = function (input, theme, options) {
55385
- var margin = this.toInputMargin(theme, options);
55386
- return {
55352
+ DDialogSelect.prototype.newInputLayout = function () {
55353
+ return new DLayoutHorizontal({
55387
55354
  width: "padding",
55388
55355
  height: "auto",
55389
- children: [
55390
- new DLayoutSpace({ width: margin }),
55391
- input,
55392
- new DLayoutSpace({ width: margin })
55393
- ]
55394
- };
55356
+ children: [this.spaceLeft, this.selectCategory, this.input, this.spaceRight]
55357
+ });
55358
+ };
55359
+ Object.defineProperty(DDialogSelect.prototype, "spaceLeft", {
55360
+ get: function () {
55361
+ var result = this._spaceLeft;
55362
+ if (result == null) {
55363
+ result = this.newSpace();
55364
+ this._spaceLeft = result;
55365
+ }
55366
+ return result;
55367
+ },
55368
+ enumerable: false,
55369
+ configurable: true
55370
+ });
55371
+ Object.defineProperty(DDialogSelect.prototype, "spaceRight", {
55372
+ get: function () {
55373
+ var result = this._spaceRight;
55374
+ if (result == null) {
55375
+ result = this.newSpace();
55376
+ this._spaceRight = result;
55377
+ }
55378
+ return result;
55379
+ },
55380
+ enumerable: false,
55381
+ configurable: true
55382
+ });
55383
+ DDialogSelect.prototype.newSpace = function () {
55384
+ return new DLayoutSpace({
55385
+ width: this.toInputMargin(this.theme, this._options)
55386
+ });
55387
+ };
55388
+ Object.defineProperty(DDialogSelect.prototype, "selectCategory", {
55389
+ get: function () {
55390
+ var result = this._selectCategory;
55391
+ if (result === undefined) {
55392
+ result = this.newSelectCategory();
55393
+ this._selectCategory = result;
55394
+ }
55395
+ return result;
55396
+ },
55397
+ enumerable: false,
55398
+ configurable: true
55399
+ });
55400
+ DDialogSelect.prototype.newSelectCategory = function () {
55401
+ var _this = this;
55402
+ var options = this._options;
55403
+ if (options != null) {
55404
+ var controller = options.controller;
55405
+ if (controller != null && controller.getCategories != null) {
55406
+ var result = new DSelect(this.toSelectCategoryOptions(this.theme, this._options));
55407
+ result.on("change", function (value) {
55408
+ _this.onSelectCategoryChange(value);
55409
+ });
55410
+ return result;
55411
+ }
55412
+ }
55413
+ return null;
55414
+ };
55415
+ DDialogSelect.prototype.toSelectCategoryOptions = function (theme, options) {
55416
+ var result = (options === null || options === void 0 ? void 0 : options.category) || {};
55417
+ if (result.width === undefined && result.weight === undefined) {
55418
+ result.width = 140;
55419
+ }
55420
+ return result;
55421
+ };
55422
+ DDialogSelect.prototype.onSelectCategoryChange = function (categoryId) {
55423
+ this.search.create([this.input.value, categoryId]);
55395
55424
  };
55396
55425
  Object.defineProperty(DDialogSelect.prototype, "input", {
55397
55426
  get: function () {
@@ -55409,7 +55438,7 @@
55409
55438
  var _this = this;
55410
55439
  var result = new DInputSearch(this.toInputOptions(this.theme, this._options));
55411
55440
  result.on("input", function (value) {
55412
- _this.search.create([value]);
55441
+ _this.onInputInput(value);
55413
55442
  });
55414
55443
  return result;
55415
55444
  };
@@ -55424,6 +55453,10 @@
55424
55453
  var _a, _b;
55425
55454
  return (_b = (_a = options === null || options === void 0 ? void 0 : options.input) === null || _a === void 0 ? void 0 : _a.margin) !== null && _b !== void 0 ? _b : theme.getInputMargin();
55426
55455
  };
55456
+ DDialogSelect.prototype.onInputInput = function (value) {
55457
+ var _a, _b;
55458
+ this.search.create([value, (_b = (_a = this.selectCategory) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : null]);
55459
+ };
55427
55460
  Object.defineProperty(DDialogSelect.prototype, "list", {
55428
55461
  get: function () {
55429
55462
  var result = this._list;
@@ -55602,9 +55635,91 @@
55602
55635
  return "DDialogSelect";
55603
55636
  };
55604
55637
  DDialogSelect.prototype.onOpen = function () {
55638
+ var _this = this;
55605
55639
  _super.prototype.onOpen.call(this);
55606
55640
  this.list.selection.clear();
55607
- this.search.create([this.input.value]);
55641
+ var selectCategory = this.selectCategory;
55642
+ if (selectCategory != null) {
55643
+ if (this._isCategoryFetched !== true) {
55644
+ this._isCategoryFetched = true;
55645
+ var categoriesOrPromise = this.findCategories();
55646
+ if (categoriesOrPromise == null) {
55647
+ this.search.create([this.input.value, null]);
55648
+ }
55649
+ else if (isArray(categoriesOrPromise)) {
55650
+ this.onCategoryFetched(selectCategory, categoriesOrPromise);
55651
+ }
55652
+ else {
55653
+ selectCategory.state.isEnabled = false;
55654
+ categoriesOrPromise.then(function (categories) {
55655
+ selectCategory.state.isEnabled = true;
55656
+ _this.onCategoryFetched(selectCategory, categories);
55657
+ });
55658
+ }
55659
+ }
55660
+ else {
55661
+ this.search.create([this.input.value, selectCategory.value]);
55662
+ }
55663
+ }
55664
+ else {
55665
+ this.search.create([this.input.value, null]);
55666
+ }
55667
+ };
55668
+ DDialogSelect.prototype.onCategoryFetched = function (selectCategory, categories) {
55669
+ var items = [];
55670
+ for (var i = 0, imax = categories.length; i < imax; ++i) {
55671
+ var category = categories[i];
55672
+ items.push({
55673
+ value: this.toCategoryId(category),
55674
+ text: {
55675
+ value: this.toCategoryLabel(category)
55676
+ }
55677
+ });
55678
+ }
55679
+ selectCategory.menu = new DMenu({
55680
+ fit: true,
55681
+ items: items
55682
+ });
55683
+ var newValue = 0 < items.length ? items[0].value : null;
55684
+ selectCategory.value = newValue;
55685
+ selectCategory.show();
55686
+ this.search.create([this.input.value, newValue]);
55687
+ };
55688
+ DDialogSelect.prototype.toCategoryId = function (target) {
55689
+ var options = this._options;
55690
+ if (options != null) {
55691
+ var category = options.category;
55692
+ if (category != null) {
55693
+ var toId = category.toId;
55694
+ if (toId != null) {
55695
+ return toId(target);
55696
+ }
55697
+ }
55698
+ }
55699
+ return this.theme.toCategoryId(target);
55700
+ };
55701
+ DDialogSelect.prototype.toCategoryLabel = function (target) {
55702
+ var options = this._options;
55703
+ if (options != null) {
55704
+ var category = options.category;
55705
+ if (category != null) {
55706
+ var toLabel = category.toLabel;
55707
+ if (toLabel != null) {
55708
+ return toLabel(target);
55709
+ }
55710
+ }
55711
+ }
55712
+ return this.theme.toCategoryLabel(target);
55713
+ };
55714
+ DDialogSelect.prototype.findCategories = function () {
55715
+ var options = this._options;
55716
+ if (options != null) {
55717
+ var controller = options.controller;
55718
+ if (controller != null && controller.getCategories != null) {
55719
+ return controller.getCategories();
55720
+ }
55721
+ }
55722
+ return null;
55608
55723
  };
55609
55724
  DDialogSelect.prototype.onOk = function (value) {
55610
55725
  this.emit("select", value, this);
@@ -55647,47 +55762,12 @@
55647
55762
  var defaultSetter$1 = function () {
55648
55763
  // DO NOTHING
55649
55764
  };
55650
- var toOptions = function (options) {
55651
- var _a, _b, _c;
55652
- if (options) {
55653
- // Try to copy text.formatter to dialog.item.text.formatter at first
55654
- var formatter = (_a = options.text) === null || _a === void 0 ? void 0 : _a.formatter;
55655
- if (formatter !== undefined) {
55656
- var dialog = options.dialog;
55657
- if (!(dialog && "open" in dialog)) {
55658
- dialog = dialog || {};
55659
- var item = (dialog.item = dialog.item || {});
55660
- var text = (item.text = item.text || {});
55661
- if (text.formatter === undefined) {
55662
- // Assumes formatter is ( value: DIALOG_VALUE | null, caller: any ) => string.
55663
- text.formatter = formatter;
55664
- }
55665
- }
55666
- }
55667
- else {
55668
- // Try to copy dialog.item.text.formatter to text.formatter
55669
- var dialog = options.dialog;
55670
- if (!(dialog && "open" in dialog)) {
55671
- var dialogFormatter = (_c = (_b = dialog === null || dialog === void 0 ? void 0 : dialog.item) === null || _b === void 0 ? void 0 : _b.text) === null || _c === void 0 ? void 0 : _c.formatter;
55672
- if (dialogFormatter !== undefined) {
55673
- var text = options.text || {};
55674
- options.text = text;
55675
- if (text.formatter === undefined) {
55676
- // Assumes dialogFormatter is ( value: VALUE | null, caller: any ) => string.
55677
- text.formatter = dialogFormatter;
55678
- }
55679
- }
55680
- }
55681
- }
55682
- }
55683
- return options;
55684
- };
55685
55765
  var DButtonSelect = /** @class */ (function (_super) {
55686
55766
  __extends(DButtonSelect, _super);
55687
55767
  function DButtonSelect(options) {
55688
55768
  var _this = this;
55689
55769
  var _a, _b;
55690
- _this = _super.call(this, toOptions(options)) || this;
55770
+ _this = _super.call(this, options) || this;
55691
55771
  _this._dialogGetter = (_a = options === null || options === void 0 ? void 0 : options.getter) !== null && _a !== void 0 ? _a : defaultGetter$1;
55692
55772
  _this._dialogSetter = (_b = options === null || options === void 0 ? void 0 : options.setter) !== null && _b !== void 0 ? _b : defaultSetter$1;
55693
55773
  return _this;
@@ -55717,7 +55797,7 @@
55717
55797
  dialog = options;
55718
55798
  }
55719
55799
  else {
55720
- // Assumes DIALOG === DDialogSelect<DIALOG_VALUE>.
55800
+ // Assumes DIALOG === DDialogSelect<DIALOG_VALUE, DIALOG_CATEGORY, DIALOG_CATEGORY_ID>.
55721
55801
  dialog = new DDialogSelect(options);
55722
55802
  }
55723
55803
  this._dialog = dialog;
@@ -69015,11 +69095,12 @@
69015
69095
  */
69016
69096
  var DTableBodyCellInputTreeInput = /** @class */ (function (_super) {
69017
69097
  __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;
69098
+ function DTableBodyCellInputTreeInput() {
69099
+ return _super !== null && _super.apply(this, arguments) || this;
69022
69100
  }
69101
+ DTableBodyCellInputTreeInput.prototype.newPadding = function (theme, options, callback) {
69102
+ return new DBasePaddingAdjustable(theme, options, callback);
69103
+ };
69023
69104
  Object.defineProperty(DTableBodyCellInputTreeInput.prototype, "padding", {
69024
69105
  get: function () {
69025
69106
  return this._padding;
@@ -69605,12 +69686,12 @@
69605
69686
  var DTableBodyCellTree = /** @class */ (function (_super) {
69606
69687
  __extends(DTableBodyCellTree, _super);
69607
69688
  function DTableBodyCellTree(columnIndex, column, onChange, options) {
69608
- var _this = this;
69609
69689
  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;
69690
+ 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
69691
  }
69692
+ DTableBodyCellTree.prototype.newPadding = function (theme, options, callback) {
69693
+ return new DBasePaddingAdjustable(theme, options, callback);
69694
+ };
69614
69695
  DTableBodyCellTree.prototype.onClick = function (e) {
69615
69696
  var _a;
69616
69697
  if (((_a = this.link) === null || _a === void 0 ? void 0 : _a.onClick(this, e)) !== true) {
@@ -74681,10 +74762,12 @@
74681
74762
  __extends(DTreeItemText, _super);
74682
74763
  function DTreeItemText(data, options) {
74683
74764
  var _this = _super.call(this, options) || this;
74684
- _this._padding = new DBasePaddingAdjustable(_this._padding);
74685
74765
  _this._data = data;
74686
74766
  return _this;
74687
74767
  }
74768
+ DTreeItemText.prototype.newPadding = function (theme, options, callback) {
74769
+ return new DBasePaddingAdjustable(theme, options, callback);
74770
+ };
74688
74771
  Object.defineProperty(DTreeItemText.prototype, "node", {
74689
74772
  get: function () {
74690
74773
  return this._node;
@@ -75679,6 +75762,7 @@
75679
75762
  toCeilingIndex: toCeilingIndex,
75680
75763
  toCloned: toCloned,
75681
75764
  toEnum: toEnum,
75765
+ toId: toId,
75682
75766
  toIndexOf: toIndexOf,
75683
75767
  toLabel: toLabel$1,
75684
75768
  toMerged: toMerged,