@wcardinal/wcardinal-ui 0.434.0 → 0.436.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 (45) hide show
  1. package/dist/types/wcardinal/ui/d-layout-board.d.ts +16 -0
  2. package/dist/types/wcardinal/ui/index.d.ts +1 -0
  3. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-layout-board.d.ts +10 -0
  4. package/dist/types/wcardinal/ui/theme/dark/index-zz-zz.d.ts +1 -0
  5. package/dist/types/wcardinal/ui/theme/white/d-theme-white-layout-board.d.ts +10 -0
  6. package/dist/types/wcardinal/ui/theme/white/index-zz-zz.d.ts +1 -0
  7. package/dist/wcardinal/ui/d-diagram-canvas-editor-snap.js +10 -5
  8. package/dist/wcardinal/ui/d-diagram-canvas-editor-snap.js.map +1 -1
  9. package/dist/wcardinal/ui/d-layout-board.js +26 -0
  10. package/dist/wcardinal/ui/d-layout-board.js.map +1 -0
  11. package/dist/wcardinal/ui/index.js +1 -0
  12. package/dist/wcardinal/ui/index.js.map +1 -1
  13. package/dist/wcardinal/ui/theme/dark/d-theme-dark-layout-board.js +29 -0
  14. package/dist/wcardinal/ui/theme/dark/d-theme-dark-layout-board.js.map +1 -0
  15. package/dist/wcardinal/ui/theme/dark/index-zz-zz.js +1 -0
  16. package/dist/wcardinal/ui/theme/dark/index-zz-zz.js.map +1 -1
  17. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-layout.js +2 -0
  18. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-layout.js.map +1 -1
  19. package/dist/wcardinal/ui/theme/white/d-theme-white-layout-board.js +29 -0
  20. package/dist/wcardinal/ui/theme/white/d-theme-white-layout-board.js.map +1 -0
  21. package/dist/wcardinal/ui/theme/white/index-zz-zz.js +1 -0
  22. package/dist/wcardinal/ui/theme/white/index-zz-zz.js.map +1 -1
  23. package/dist/wcardinal/ui/theme/white/load/load-theme-white-layout.js +2 -0
  24. package/dist/wcardinal/ui/theme/white/load/load-theme-white-layout.js.map +1 -1
  25. package/dist/wcardinal-ui-theme-dark-en-us.js +28 -1
  26. package/dist/wcardinal-ui-theme-dark-en-us.min.js +2 -2
  27. package/dist/wcardinal-ui-theme-dark-en-us.min.js.map +1 -1
  28. package/dist/wcardinal-ui-theme-dark-ja-jp.js +28 -1
  29. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +2 -2
  30. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js.map +1 -1
  31. package/dist/wcardinal-ui-theme-dark.js +28 -1
  32. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  33. package/dist/wcardinal-ui-theme-white-en-us.js +28 -1
  34. package/dist/wcardinal-ui-theme-white-en-us.min.js +2 -2
  35. package/dist/wcardinal-ui-theme-white-en-us.min.js.map +1 -1
  36. package/dist/wcardinal-ui-theme-white-ja-jp.js +28 -1
  37. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +2 -2
  38. package/dist/wcardinal-ui-theme-white-ja-jp.min.js.map +1 -1
  39. package/dist/wcardinal-ui-theme-white.js +28 -1
  40. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  41. package/dist/wcardinal-ui.cjs.js +89 -6
  42. package/dist/wcardinal-ui.js +35 -6
  43. package/dist/wcardinal-ui.min.js +2 -2
  44. package/dist/wcardinal-ui.min.js.map +1 -1
  45. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.434.0
2
+ Winter Cardinal UI v0.436.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -51859,6 +51859,31 @@ var loadThemeWhiteInputText = function () {
51859
51859
  DThemeWhite.set("DInputText", DThemeWhiteInputText);
51860
51860
  };
51861
51861
 
51862
+ /*
51863
+ * Copyright (C) 2019 Toshiba Corporation
51864
+ * SPDX-License-Identifier: Apache-2.0
51865
+ */
51866
+ var DThemeWhiteLayoutBoard = /** @class */ (function (_super) {
51867
+ __extends(DThemeWhiteLayoutBoard, _super);
51868
+ function DThemeWhiteLayoutBoard() {
51869
+ return _super !== null && _super.apply(this, arguments) || this;
51870
+ }
51871
+ DThemeWhiteLayoutBoard.prototype.getBackgroundColor = function (state) {
51872
+ return null;
51873
+ };
51874
+ DThemeWhiteLayoutBoard.prototype.getBorderColor = function (state) {
51875
+ return null;
51876
+ };
51877
+ DThemeWhiteLayoutBoard.prototype.getInteractive = function () {
51878
+ return DBaseInteractive.CHILDREN;
51879
+ };
51880
+ DThemeWhiteLayoutBoard.prototype.newState = function (state) {
51881
+ _super.prototype.newState.call(this, state);
51882
+ state.isFocusable = false;
51883
+ };
51884
+ return DThemeWhiteLayoutBoard;
51885
+ }(DThemeWhiteBase));
51886
+
51862
51887
  /*
51863
51888
  * Copyright (C) 2019 Toshiba Corporation
51864
51889
  * SPDX-License-Identifier: Apache-2.0
@@ -51902,6 +51927,7 @@ var loadThemeWhiteLayout = function () {
51902
51927
  DThemeWhite.set("DLayoutHorizontal", DThemeWhiteLayoutHorizontal);
51903
51928
  DThemeWhite.set("DLayoutSpace", DThemeWhiteLayoutSpace);
51904
51929
  DThemeWhite.set("DLayoutVertical", DThemeWhiteLayoutVertical);
51930
+ DThemeWhite.set("DLayoutBoard", DThemeWhiteLayoutBoard);
51905
51931
  };
51906
51932
 
51907
51933
  /*
@@ -62882,6 +62908,31 @@ var loadThemeDarkInputText = function () {
62882
62908
  DThemeDark.set("DInputText", DThemeDarkInputText);
62883
62909
  };
62884
62910
 
62911
+ /*
62912
+ * Copyright (C) 2019 Toshiba Corporation
62913
+ * SPDX-License-Identifier: Apache-2.0
62914
+ */
62915
+ var DThemeDarkLayoutBoard = /** @class */ (function (_super) {
62916
+ __extends(DThemeDarkLayoutBoard, _super);
62917
+ function DThemeDarkLayoutBoard() {
62918
+ return _super !== null && _super.apply(this, arguments) || this;
62919
+ }
62920
+ DThemeDarkLayoutBoard.prototype.getBackgroundColor = function (state) {
62921
+ return null;
62922
+ };
62923
+ DThemeDarkLayoutBoard.prototype.getBorderColor = function (state) {
62924
+ return null;
62925
+ };
62926
+ DThemeDarkLayoutBoard.prototype.getInteractive = function () {
62927
+ return DBaseInteractive.CHILDREN;
62928
+ };
62929
+ DThemeDarkLayoutBoard.prototype.newState = function (state) {
62930
+ _super.prototype.newState.call(this, state);
62931
+ state.isFocusable = false;
62932
+ };
62933
+ return DThemeDarkLayoutBoard;
62934
+ }(DThemeDarkBase));
62935
+
62885
62936
  /*
62886
62937
  * Copyright (C) 2019 Toshiba Corporation
62887
62938
  * SPDX-License-Identifier: Apache-2.0
@@ -62925,6 +62976,7 @@ var loadThemeDarkLayout = function () {
62925
62976
  DThemeDark.set("DLayoutHorizontal", DThemeDarkLayoutHorizontal);
62926
62977
  DThemeDark.set("DLayoutSpace", DThemeDarkLayoutSpace);
62927
62978
  DThemeDark.set("DLayoutVertical", DThemeDarkLayoutVertical);
62979
+ DThemeDark.set("DLayoutBoard", DThemeDarkLayoutBoard);
62928
62980
  };
62929
62981
 
62930
62982
  /*
@@ -87436,13 +87488,18 @@ var DDiagramCanvasEditorSnap = /** @class */ (function () {
87436
87488
  return this._controller.serialize();
87437
87489
  };
87438
87490
  DDiagramCanvasEditorSnap.prototype.onResize = function (newWidth, newHeight, oldWidth, oldHeight) {
87439
- this._gridParentWidth = newWidth;
87440
- this._gridParentHeight = newHeight;
87441
- this.updateGridSize();
87491
+ if (this._gridParentWidth !== newWidth || this._gridParentHeight !== newHeight) {
87492
+ this._gridParentWidth = newWidth;
87493
+ this._gridParentHeight = newHeight;
87494
+ this._isDirty = true;
87495
+ this.updateGridSize();
87496
+ }
87442
87497
  };
87443
87498
  DDiagramCanvasEditorSnap.prototype.onScale = function (newX, newY, oldX, oldY) {
87444
- this._gridParentScale = newX;
87445
- this.updateGridSize();
87499
+ if (this._gridParentScale !== newX) {
87500
+ this._gridParentScale = newX;
87501
+ this.updateGridSize();
87502
+ }
87446
87503
  };
87447
87504
  DDiagramCanvasEditorSnap.prototype.updateGridSize = function () {
87448
87505
  var gridSize = this.newGridSize();
@@ -90071,6 +90128,29 @@ var DInputTextArea = /** @class */ (function (_super) {
90071
90128
  return DInputTextArea;
90072
90129
  }(DInput));
90073
90130
 
90131
+ /*
90132
+ * Copyright (C) 2019 Toshiba Corporation
90133
+ * SPDX-License-Identifier: Apache-2.0
90134
+ */
90135
+ /**
90136
+ * A board for layouting elements.
90137
+ * Unlike {@link DLayoutVertical} and {@link DLayoutHorizontal},
90138
+ * this class doesn't change the position and the size of children.
90139
+ * Unlike {@link DBase} and {@link DBoard}, this class doesn't have
90140
+ * the background, the border, and the outline. And its children are
90141
+ * interactive by default.
90142
+ */
90143
+ var DLayoutBoard = /** @class */ (function (_super) {
90144
+ __extends(DLayoutBoard, _super);
90145
+ function DLayoutBoard() {
90146
+ return _super !== null && _super.apply(this, arguments) || this;
90147
+ }
90148
+ DLayoutBoard.prototype.getType = function () {
90149
+ return "DLayoutBoard";
90150
+ };
90151
+ return DLayoutBoard;
90152
+ }(DBase));
90153
+
90074
90154
  /*
90075
90155
  * Copyright (C) 2019 Toshiba Corporation
90076
90156
  * SPDX-License-Identifier: Apache-2.0
@@ -101586,6 +101666,7 @@ exports.DInputTextAndLabel = DInputTextAndLabel;
101586
101666
  exports.DInputTextArea = DInputTextArea;
101587
101667
  exports.DItemUpdater = DItemUpdater;
101588
101668
  exports.DLayout = DLayout;
101669
+ exports.DLayoutBoard = DLayoutBoard;
101589
101670
  exports.DLayoutClearType = DLayoutClearType;
101590
101671
  exports.DLayoutDirection = DLayoutDirection;
101591
101672
  exports.DLayoutHorizontal = DLayoutHorizontal;
@@ -101941,6 +102022,7 @@ exports.DThemeDarkJaJpPickerDate = DThemeDarkJaJpPickerDate;
101941
102022
  exports.DThemeDarkJaJpPickerDatetime = DThemeDarkJaJpPickerDatetime;
101942
102023
  exports.DThemeDarkJaJpPickerTime = DThemeDarkJaJpPickerTime;
101943
102024
  exports.DThemeDarkLayout = DThemeDarkLayout;
102025
+ exports.DThemeDarkLayoutBoard = DThemeDarkLayoutBoard;
101944
102026
  exports.DThemeDarkLayoutHorizontal = DThemeDarkLayoutHorizontal;
101945
102027
  exports.DThemeDarkLayoutSpace = DThemeDarkLayoutSpace;
101946
102028
  exports.DThemeDarkLayoutVertical = DThemeDarkLayoutVertical;
@@ -102212,6 +102294,7 @@ exports.DThemeWhiteJaJpPickerDate = DThemeWhiteJaJpPickerDate;
102212
102294
  exports.DThemeWhiteJaJpPickerDatetime = DThemeWhiteJaJpPickerDatetime;
102213
102295
  exports.DThemeWhiteJaJpPickerTime = DThemeWhiteJaJpPickerTime;
102214
102296
  exports.DThemeWhiteLayout = DThemeWhiteLayout;
102297
+ exports.DThemeWhiteLayoutBoard = DThemeWhiteLayoutBoard;
102215
102298
  exports.DThemeWhiteLayoutHorizontal = DThemeWhiteLayoutHorizontal;
102216
102299
  exports.DThemeWhiteLayoutSpace = DThemeWhiteLayoutSpace;
102217
102300
  exports.DThemeWhiteLayoutVertical = DThemeWhiteLayoutVertical;
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.434.0
2
+ Winter Cardinal UI v0.436.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -66247,13 +66247,18 @@
66247
66247
  return this._controller.serialize();
66248
66248
  };
66249
66249
  DDiagramCanvasEditorSnap.prototype.onResize = function (newWidth, newHeight, oldWidth, oldHeight) {
66250
- this._gridParentWidth = newWidth;
66251
- this._gridParentHeight = newHeight;
66252
- this.updateGridSize();
66250
+ if (this._gridParentWidth !== newWidth || this._gridParentHeight !== newHeight) {
66251
+ this._gridParentWidth = newWidth;
66252
+ this._gridParentHeight = newHeight;
66253
+ this._isDirty = true;
66254
+ this.updateGridSize();
66255
+ }
66253
66256
  };
66254
66257
  DDiagramCanvasEditorSnap.prototype.onScale = function (newX, newY, oldX, oldY) {
66255
- this._gridParentScale = newX;
66256
- this.updateGridSize();
66258
+ if (this._gridParentScale !== newX) {
66259
+ this._gridParentScale = newX;
66260
+ this.updateGridSize();
66261
+ }
66257
66262
  };
66258
66263
  DDiagramCanvasEditorSnap.prototype.updateGridSize = function () {
66259
66264
  var gridSize = this.newGridSize();
@@ -68882,6 +68887,29 @@
68882
68887
  return DInputTextArea;
68883
68888
  }(DInput));
68884
68889
 
68890
+ /*
68891
+ * Copyright (C) 2019 Toshiba Corporation
68892
+ * SPDX-License-Identifier: Apache-2.0
68893
+ */
68894
+ /**
68895
+ * A board for layouting elements.
68896
+ * Unlike {@link DLayoutVertical} and {@link DLayoutHorizontal},
68897
+ * this class doesn't change the position and the size of children.
68898
+ * Unlike {@link DBase} and {@link DBoard}, this class doesn't have
68899
+ * the background, the border, and the outline. And its children are
68900
+ * interactive by default.
68901
+ */
68902
+ var DLayoutBoard = /** @class */ (function (_super) {
68903
+ __extends(DLayoutBoard, _super);
68904
+ function DLayoutBoard() {
68905
+ return _super !== null && _super.apply(this, arguments) || this;
68906
+ }
68907
+ DLayoutBoard.prototype.getType = function () {
68908
+ return "DLayoutBoard";
68909
+ };
68910
+ return DLayoutBoard;
68911
+ }(DBase));
68912
+
68885
68913
  /*
68886
68914
  * Copyright (C) 2019 Toshiba Corporation
68887
68915
  * SPDX-License-Identifier: Apache-2.0
@@ -81065,6 +81093,7 @@
81065
81093
  DInputText: DInputText,
81066
81094
  DInput: DInput,
81067
81095
  DItemUpdater: DItemUpdater,
81096
+ DLayoutBoard: DLayoutBoard,
81068
81097
  DLayoutClearType: DLayoutClearType,
81069
81098
  DLayoutDirection: DLayoutDirection,
81070
81099
  DLayoutHorizontal: DLayoutHorizontal,