@wcardinal/wcardinal-ui 0.300.0 → 0.302.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 (26) hide show
  1. package/dist/types/wcardinal/ui/d-button-base.d.ts +16 -0
  2. package/dist/wcardinal/ui/d-button-base.js +26 -7
  3. package/dist/wcardinal/ui/d-button-base.js.map +1 -1
  4. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-x.js +1 -0
  5. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-x.js.map +1 -1
  6. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-y.js +1 -0
  7. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-y.js.map +1 -1
  8. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-marker.js +2 -0
  9. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-marker.js.map +1 -1
  10. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-x.js +1 -1
  11. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-x.js.map +1 -1
  12. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-y.js +1 -1
  13. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-y.js.map +1 -1
  14. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-marker.js +2 -0
  15. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-marker.js.map +1 -1
  16. package/dist/wcardinal-ui-theme-dark.js +5 -1
  17. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  18. package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
  19. package/dist/wcardinal-ui-theme-white.js +5 -3
  20. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  21. package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
  22. package/dist/wcardinal-ui.cjs.js +35 -10
  23. package/dist/wcardinal-ui.js +27 -8
  24. package/dist/wcardinal-ui.min.js +2 -2
  25. package/dist/wcardinal-ui.min.js.map +1 -1
  26. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.300.0
2
+ Winter Cardinal UI v0.302.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -28859,13 +28859,15 @@ var DButtonBase = /** @class */ (function (_super) {
28859
28859
  }
28860
28860
  };
28861
28861
  this.on(UtilPointerEvent.down, function () {
28862
- _this.state.isPressed = true;
28863
- var layer = DApplications.getLayer(_this);
28864
- if (layer) {
28865
- interactionManager = layer.renderer.plugins.interaction;
28866
- interactionManager.on(UtilPointerEvent.up, onUp);
28867
- interactionManager.on(UtilPointerEvent.upoutside, onUp);
28868
- interactionManager.on(UtilPointerEvent.cancel, onUp);
28862
+ if (_this.state.isActionable) {
28863
+ _this.state.isPressed = true;
28864
+ var layer = DApplications.getLayer(_this);
28865
+ if (layer) {
28866
+ interactionManager = layer.renderer.plugins.interaction;
28867
+ interactionManager.on(UtilPointerEvent.up, onUp);
28868
+ interactionManager.on(UtilPointerEvent.upoutside, onUp);
28869
+ interactionManager.on(UtilPointerEvent.cancel, onUp);
28870
+ }
28869
28871
  }
28870
28872
  });
28871
28873
  };
@@ -28960,6 +28962,23 @@ var DButtonBase = /** @class */ (function (_super) {
28960
28962
  }
28961
28963
  return _super.prototype.onKeyUp.call(this, e);
28962
28964
  };
28965
+ DButtonBase.prototype.onStateChange = function (newState, oldState) {
28966
+ _super.prototype.onStateChange.call(this, newState, oldState);
28967
+ if (newState.isPressed) {
28968
+ if (!oldState.isPressed) {
28969
+ this.onPress();
28970
+ }
28971
+ }
28972
+ else if (oldState.isPressed) {
28973
+ this.onUnpress();
28974
+ }
28975
+ };
28976
+ DButtonBase.prototype.onPress = function () {
28977
+ this.emit("press", this);
28978
+ };
28979
+ DButtonBase.prototype.onUnpress = function () {
28980
+ this.emit("unpress", this);
28981
+ };
28963
28982
  DButtonBase.prototype.destroy = function () {
28964
28983
  var _a, _b;
28965
28984
  (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.group) === null || _b === void 0 ? void 0 : _b.remove(this);
@@ -49355,7 +49374,7 @@ var DThemeWhiteChartSelectionGridlineX = /** @class */ (function (_super) {
49355
49374
  var result = new EShapeBar();
49356
49375
  result.points.position = EShapeBarPosition.TOP;
49357
49376
  result.stroke.style = EShapeStrokeStyle.DASHED;
49358
- result.stroke.alpha = 0.25;
49377
+ result.stroke.alpha = 0.75;
49359
49378
  return result;
49360
49379
  };
49361
49380
  return DThemeWhiteChartSelectionGridlineX;
@@ -49377,7 +49396,7 @@ var DThemeWhiteChartSelectionGridlineY = /** @class */ (function (_super) {
49377
49396
  var result = new EShapeBar();
49378
49397
  result.points.position = EShapeBarPosition.LEFT;
49379
49398
  result.stroke.style = EShapeStrokeStyle.DASHED;
49380
- result.stroke.alpha = 0.25;
49399
+ result.stroke.alpha = 0.75;
49381
49400
  return result;
49382
49401
  };
49383
49402
  return DThemeWhiteChartSelectionGridlineY;
@@ -49398,6 +49417,8 @@ var DThemeWhiteChartSelectionMarker = /** @class */ (function (_super) {
49398
49417
  DThemeWhiteChartSelectionMarker.prototype.newShape = function (state) {
49399
49418
  var result = new EShapeCircle();
49400
49419
  result.size.set(14, 14);
49420
+ result.fill.enable = false;
49421
+ result.stroke.alpha = 0.75;
49401
49422
  return result;
49402
49423
  };
49403
49424
  return DThemeWhiteChartSelectionMarker;
@@ -58517,6 +58538,7 @@ var DThemeDarkChartSelectionGridlineX = /** @class */ (function (_super) {
58517
58538
  var result = new EShapeBar();
58518
58539
  result.points.position = EShapeBarPosition.TOP;
58519
58540
  result.stroke.style = EShapeStrokeStyle.DASHED;
58541
+ result.stroke.alpha = 0.75;
58520
58542
  return result;
58521
58543
  };
58522
58544
  return DThemeDarkChartSelectionGridlineX;
@@ -58538,6 +58560,7 @@ var DThemeDarkChartSelectionGridlineY = /** @class */ (function (_super) {
58538
58560
  var result = new EShapeBar();
58539
58561
  result.points.position = EShapeBarPosition.LEFT;
58540
58562
  result.stroke.style = EShapeStrokeStyle.DASHED;
58563
+ result.stroke.alpha = 0.75;
58541
58564
  return result;
58542
58565
  };
58543
58566
  return DThemeDarkChartSelectionGridlineY;
@@ -58558,6 +58581,8 @@ var DThemeDarkChartSelectionMarker = /** @class */ (function (_super) {
58558
58581
  DThemeDarkChartSelectionMarker.prototype.newShape = function (state) {
58559
58582
  var result = new EShapeCircle();
58560
58583
  result.size.set(14, 14);
58584
+ result.fill.enable = false;
58585
+ result.stroke.alpha = 0.75;
58561
58586
  return result;
58562
58587
  };
58563
58588
  return DThemeDarkChartSelectionMarker;
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.300.0
2
+ Winter Cardinal UI v0.302.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -28856,13 +28856,15 @@
28856
28856
  }
28857
28857
  };
28858
28858
  this.on(UtilPointerEvent.down, function () {
28859
- _this.state.isPressed = true;
28860
- var layer = DApplications.getLayer(_this);
28861
- if (layer) {
28862
- interactionManager = layer.renderer.plugins.interaction;
28863
- interactionManager.on(UtilPointerEvent.up, onUp);
28864
- interactionManager.on(UtilPointerEvent.upoutside, onUp);
28865
- interactionManager.on(UtilPointerEvent.cancel, onUp);
28859
+ if (_this.state.isActionable) {
28860
+ _this.state.isPressed = true;
28861
+ var layer = DApplications.getLayer(_this);
28862
+ if (layer) {
28863
+ interactionManager = layer.renderer.plugins.interaction;
28864
+ interactionManager.on(UtilPointerEvent.up, onUp);
28865
+ interactionManager.on(UtilPointerEvent.upoutside, onUp);
28866
+ interactionManager.on(UtilPointerEvent.cancel, onUp);
28867
+ }
28866
28868
  }
28867
28869
  });
28868
28870
  };
@@ -28957,6 +28959,23 @@
28957
28959
  }
28958
28960
  return _super.prototype.onKeyUp.call(this, e);
28959
28961
  };
28962
+ DButtonBase.prototype.onStateChange = function (newState, oldState) {
28963
+ _super.prototype.onStateChange.call(this, newState, oldState);
28964
+ if (newState.isPressed) {
28965
+ if (!oldState.isPressed) {
28966
+ this.onPress();
28967
+ }
28968
+ }
28969
+ else if (oldState.isPressed) {
28970
+ this.onUnpress();
28971
+ }
28972
+ };
28973
+ DButtonBase.prototype.onPress = function () {
28974
+ this.emit("press", this);
28975
+ };
28976
+ DButtonBase.prototype.onUnpress = function () {
28977
+ this.emit("unpress", this);
28978
+ };
28960
28979
  DButtonBase.prototype.destroy = function () {
28961
28980
  var _a, _b;
28962
28981
  (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.group) === null || _b === void 0 ? void 0 : _b.remove(this);