@wcardinal/wcardinal-ui 0.297.0 → 0.299.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 (99) hide show
  1. package/dist/types/wcardinal/ui/d-chart-selection-container-impl.d.ts +18 -0
  2. package/dist/types/wcardinal/ui/{d-chart-selection-gridline-container.d.ts → d-chart-selection-container.d.ts} +4 -4
  3. package/dist/types/wcardinal/ui/d-chart-selection-gridline-x.d.ts +2 -2
  4. package/dist/types/wcardinal/ui/d-chart-selection-gridline-y.d.ts +2 -2
  5. package/dist/types/wcardinal/ui/d-chart-selection-marker.d.ts +2 -2
  6. package/dist/types/wcardinal/ui/d-chart-selection-shape-base.d.ts +5 -3
  7. package/dist/types/wcardinal/ui/d-chart-selection-shape.d.ts +4 -3
  8. package/dist/types/wcardinal/ui/d-chart-selection-simple.d.ts +2 -0
  9. package/dist/types/wcardinal/ui/d-chart-selection-sub-impl.d.ts +3 -5
  10. package/dist/types/wcardinal/ui/d-chart-selection-sub.d.ts +3 -2
  11. package/dist/types/wcardinal/ui/d-table-data-list-mapped.d.ts +1 -0
  12. package/dist/types/wcardinal/ui/d-table-data.d.ts +4 -0
  13. package/dist/types/wcardinal/ui/index.d.ts +2 -2
  14. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-x.d.ts +6 -2
  15. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-y.d.ts +3 -2
  16. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-marker.d.ts +2 -2
  17. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-shape.d.ts +7 -0
  18. package/dist/types/wcardinal/ui/theme/dark/index.d.ts +4 -0
  19. package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-x.d.ts +6 -2
  20. package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-y.d.ts +3 -2
  21. package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-selection-marker.d.ts +2 -2
  22. package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-selection-shape.d.ts +7 -0
  23. package/dist/types/wcardinal/ui/theme/white/index.d.ts +4 -0
  24. package/dist/wcardinal/ui/d-chart-selection-container-impl.js +48 -0
  25. package/dist/wcardinal/ui/d-chart-selection-container-impl.js.map +1 -0
  26. package/dist/wcardinal/ui/{d-chart-selection-gridline-container.js → d-chart-selection-container.js} +1 -1
  27. package/dist/wcardinal/ui/d-chart-selection-container.js.map +1 -0
  28. package/dist/wcardinal/ui/d-chart-selection-gridline-x.js +5 -4
  29. package/dist/wcardinal/ui/d-chart-selection-gridline-x.js.map +1 -1
  30. package/dist/wcardinal/ui/d-chart-selection-gridline-y.js +5 -4
  31. package/dist/wcardinal/ui/d-chart-selection-gridline-y.js.map +1 -1
  32. package/dist/wcardinal/ui/d-chart-selection-marker.js +3 -3
  33. package/dist/wcardinal/ui/d-chart-selection-marker.js.map +1 -1
  34. package/dist/wcardinal/ui/d-chart-selection-shape-base.js +28 -10
  35. package/dist/wcardinal/ui/d-chart-selection-shape-base.js.map +1 -1
  36. package/dist/wcardinal/ui/d-chart-selection-shape.js.map +1 -1
  37. package/dist/wcardinal/ui/d-chart-selection-simple.js +22 -6
  38. package/dist/wcardinal/ui/d-chart-selection-simple.js.map +1 -1
  39. package/dist/wcardinal/ui/d-chart-selection-sub-impl.js +11 -15
  40. package/dist/wcardinal/ui/d-chart-selection-sub-impl.js.map +1 -1
  41. package/dist/wcardinal/ui/d-chart-selection-sub.js.map +1 -1
  42. package/dist/wcardinal/ui/d-table-data-list-mapped.js +11 -0
  43. package/dist/wcardinal/ui/d-table-data-list-mapped.js.map +1 -1
  44. package/dist/wcardinal/ui/d-table-data.js.map +1 -1
  45. package/dist/wcardinal/ui/index.js +2 -2
  46. package/dist/wcardinal/ui/index.js.map +1 -1
  47. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-x-datetime.js +5 -5
  48. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-x-datetime.js.map +1 -1
  49. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-transform.js +1 -1
  50. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-transform.js.map +1 -1
  51. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate.js +1 -1
  52. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate.js.map +1 -1
  53. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-x.js +14 -2
  54. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-x.js.map +1 -1
  55. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-y.js +7 -3
  56. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-y.js.map +1 -1
  57. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-marker.js +8 -9
  58. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-marker.js.map +1 -1
  59. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-shape.js +11 -0
  60. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-shape.js.map +1 -0
  61. package/dist/wcardinal/ui/theme/dark/index.js +4 -0
  62. package/dist/wcardinal/ui/theme/dark/index.js.map +1 -1
  63. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-axis-x-datetime.js +5 -5
  64. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-axis-x-datetime.js.map +1 -1
  65. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-transform.js +1 -1
  66. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-transform.js.map +1 -1
  67. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate.js +1 -1
  68. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate.js.map +1 -1
  69. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-x.js +15 -2
  70. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-x.js.map +1 -1
  71. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-y.js +8 -3
  72. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-y.js.map +1 -1
  73. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-marker.js +8 -9
  74. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-marker.js.map +1 -1
  75. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-shape.js +11 -0
  76. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-shape.js.map +1 -0
  77. package/dist/wcardinal/ui/theme/white/index.js +4 -0
  78. package/dist/wcardinal/ui/theme/white/index.js.map +1 -1
  79. package/dist/wcardinal-ui-theme-dark.js +38 -34
  80. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  81. package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
  82. package/dist/wcardinal-ui-theme-white.js +40 -34
  83. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  84. package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
  85. package/dist/wcardinal-ui.cjs.js +202 -152
  86. package/dist/wcardinal-ui.js +130 -90
  87. package/dist/wcardinal-ui.min.js +2 -2
  88. package/dist/wcardinal-ui.min.js.map +1 -1
  89. package/package.json +1 -1
  90. package/dist/types/wcardinal/ui/d-chart-selection-gridline-container-impl.d.ts +0 -18
  91. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline.d.ts +0 -7
  92. package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline.d.ts +0 -7
  93. package/dist/wcardinal/ui/d-chart-selection-gridline-container-impl.js +0 -50
  94. package/dist/wcardinal/ui/d-chart-selection-gridline-container-impl.js.map +0 -1
  95. package/dist/wcardinal/ui/d-chart-selection-gridline-container.js.map +0 -1
  96. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline.js +0 -22
  97. package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline.js.map +0 -1
  98. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline.js +0 -22
  99. package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.297.0
2
+ Winter Cardinal UI v0.299.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -49127,17 +49127,17 @@ var STEP_FUNCTION$1 = function (domainMin, domainMax, majorCount) {
49127
49127
  else {
49128
49128
  var days = hours / 24;
49129
49129
  var base = Math.pow(10, Math.floor(Math.log(days) / Math.LN10));
49130
- var scale = span / base;
49130
+ var scale = days / base;
49131
49131
  if (scale <= 1.33) {
49132
- return base;
49132
+ return base * 86400000;
49133
49133
  }
49134
49134
  else if (scale <= 2.86) {
49135
- return 2 * base;
49135
+ return base * 172800000;
49136
49136
  }
49137
49137
  else if (scale <= 6.67) {
49138
- return 5 * base;
49138
+ return base * 432000000;
49139
49139
  }
49140
- return 10 * base;
49140
+ return base * 864000000;
49141
49141
  }
49142
49142
  }
49143
49143
  };
@@ -49181,7 +49181,7 @@ var DThemeWhiteChartCoordinate = /** @class */ (function () {
49181
49181
  function DThemeWhiteChartCoordinate() {
49182
49182
  }
49183
49183
  DThemeWhiteChartCoordinate.prototype.isZero = function (value) {
49184
- return Math.abs(value) < 0.00001;
49184
+ return Math.abs(value) < Number.EPSILON;
49185
49185
  };
49186
49186
  return DThemeWhiteChartCoordinate;
49187
49187
  }());
@@ -49224,7 +49224,7 @@ var DThemeWhiteChartCoordinateTransform = /** @class */ (function () {
49224
49224
  function DThemeWhiteChartCoordinateTransform() {
49225
49225
  }
49226
49226
  DThemeWhiteChartCoordinateTransform.prototype.isZero = function (value) {
49227
- return Math.abs(value) < 0.00001;
49227
+ return Math.abs(value) < Number.EPSILON;
49228
49228
  };
49229
49229
  return DThemeWhiteChartCoordinateTransform;
49230
49230
  }());
@@ -49314,19 +49314,10 @@ var DThemeWhiteChartPlotArea = /** @class */ (function (_super) {
49314
49314
  * Copyright (C) 2019 Toshiba Corporation
49315
49315
  * SPDX-License-Identifier: Apache-2.0
49316
49316
  */
49317
- var DThemeWhiteChartSelectionGridline = /** @class */ (function () {
49318
- function DThemeWhiteChartSelectionGridline() {
49317
+ var DThemeWhiteChartSelectionShape = /** @class */ (function () {
49318
+ function DThemeWhiteChartSelectionShape() {
49319
49319
  }
49320
- DThemeWhiteChartSelectionGridline.prototype.isEnabled = function (state) {
49321
- return true;
49322
- };
49323
- DThemeWhiteChartSelectionGridline.prototype.newShape = function (state) {
49324
- var result = new EShapeBar();
49325
- result.points.position = EShapeBarPosition.TOP;
49326
- result.stroke.alpha = 0.5;
49327
- return result;
49328
- };
49329
- return DThemeWhiteChartSelectionGridline;
49320
+ return DThemeWhiteChartSelectionShape;
49330
49321
  }());
49331
49322
 
49332
49323
  /*
@@ -49338,8 +49329,18 @@ var DThemeWhiteChartSelectionGridlineX = /** @class */ (function (_super) {
49338
49329
  function DThemeWhiteChartSelectionGridlineX() {
49339
49330
  return _super !== null && _super.apply(this, arguments) || this;
49340
49331
  }
49332
+ DThemeWhiteChartSelectionGridlineX.prototype.isEnabled = function (state) {
49333
+ return state.isHovered;
49334
+ };
49335
+ DThemeWhiteChartSelectionGridlineX.prototype.newShape = function (state) {
49336
+ var result = new EShapeBar();
49337
+ result.points.position = EShapeBarPosition.TOP;
49338
+ result.stroke.style = EShapeStrokeStyle.DASHED;
49339
+ result.stroke.alpha = 0.25;
49340
+ return result;
49341
+ };
49341
49342
  return DThemeWhiteChartSelectionGridlineX;
49342
- }(DThemeWhiteChartSelectionGridline));
49343
+ }(DThemeWhiteChartSelectionShape));
49343
49344
 
49344
49345
  /*
49345
49346
  * Copyright (C) 2019 Toshiba Corporation
@@ -49350,37 +49351,38 @@ var DThemeWhiteChartSelectionGridlineY = /** @class */ (function (_super) {
49350
49351
  function DThemeWhiteChartSelectionGridlineY() {
49351
49352
  return _super !== null && _super.apply(this, arguments) || this;
49352
49353
  }
49354
+ DThemeWhiteChartSelectionGridlineY.prototype.isEnabled = function (state) {
49355
+ return state.isHovered;
49356
+ };
49353
49357
  DThemeWhiteChartSelectionGridlineY.prototype.newShape = function (state) {
49354
49358
  var result = new EShapeBar();
49355
49359
  result.points.position = EShapeBarPosition.LEFT;
49356
- result.stroke.alpha = 0.5;
49360
+ result.stroke.style = EShapeStrokeStyle.DASHED;
49361
+ result.stroke.alpha = 0.25;
49357
49362
  return result;
49358
49363
  };
49359
49364
  return DThemeWhiteChartSelectionGridlineY;
49360
- }(DThemeWhiteChartSelectionGridline));
49365
+ }(DThemeWhiteChartSelectionShape));
49361
49366
 
49362
49367
  /*
49363
49368
  * Copyright (C) 2019 Toshiba Corporation
49364
49369
  * SPDX-License-Identifier: Apache-2.0
49365
49370
  */
49366
- var DThemeWhiteChartSelectionMarker = /** @class */ (function () {
49371
+ var DThemeWhiteChartSelectionMarker = /** @class */ (function (_super) {
49372
+ __extends(DThemeWhiteChartSelectionMarker, _super);
49367
49373
  function DThemeWhiteChartSelectionMarker() {
49374
+ return _super !== null && _super.apply(this, arguments) || this;
49368
49375
  }
49369
49376
  DThemeWhiteChartSelectionMarker.prototype.isEnabled = function (state) {
49370
- return false;
49377
+ return state.isActive;
49371
49378
  };
49372
49379
  DThemeWhiteChartSelectionMarker.prototype.newShape = function (state) {
49373
49380
  var result = new EShapeCircle();
49374
- if (state.isHovered) {
49375
- result.size.set(14, 14);
49376
- }
49377
- else {
49378
- result.size.set(20, 20);
49379
- }
49381
+ result.size.set(14, 14);
49380
49382
  return result;
49381
49383
  };
49382
49384
  return DThemeWhiteChartSelectionMarker;
49383
- }());
49385
+ }(DThemeWhiteChartSelectionShape));
49384
49386
 
49385
49387
  /*
49386
49388
  * Copyright (C) 2019 Toshiba Corporation
@@ -58287,17 +58289,17 @@ var STEP_FUNCTION = function (domainMin, domainMax, majorCount) {
58287
58289
  else {
58288
58290
  var days = hours / 24;
58289
58291
  var base = Math.pow(10, Math.floor(Math.log(days) / Math.LN10));
58290
- var scale = span / base;
58292
+ var scale = days / base;
58291
58293
  if (scale <= 1.33) {
58292
- return base;
58294
+ return base * 86400000;
58293
58295
  }
58294
58296
  else if (scale <= 2.86) {
58295
- return 2 * base;
58297
+ return base * 172800000;
58296
58298
  }
58297
58299
  else if (scale <= 6.67) {
58298
- return 5 * base;
58300
+ return base * 432000000;
58299
58301
  }
58300
- return 10 * base;
58302
+ return base * 864000000;
58301
58303
  }
58302
58304
  }
58303
58305
  };
@@ -58341,7 +58343,7 @@ var DThemeDarkChartCoordinate = /** @class */ (function () {
58341
58343
  function DThemeDarkChartCoordinate() {
58342
58344
  }
58343
58345
  DThemeDarkChartCoordinate.prototype.isZero = function (value) {
58344
- return Math.abs(value) < 0.00001;
58346
+ return Math.abs(value) < Number.EPSILON;
58345
58347
  };
58346
58348
  return DThemeDarkChartCoordinate;
58347
58349
  }());
@@ -58384,7 +58386,7 @@ var DThemeDarkChartCoordinateTransform = /** @class */ (function () {
58384
58386
  function DThemeDarkChartCoordinateTransform() {
58385
58387
  }
58386
58388
  DThemeDarkChartCoordinateTransform.prototype.isZero = function (value) {
58387
- return Math.abs(value) < 0.00001;
58389
+ return Math.abs(value) < Number.EPSILON;
58388
58390
  };
58389
58391
  return DThemeDarkChartCoordinateTransform;
58390
58392
  }());
@@ -58474,19 +58476,10 @@ var DThemeDarkChartPlotArea = /** @class */ (function (_super) {
58474
58476
  * Copyright (C) 2019 Toshiba Corporation
58475
58477
  * SPDX-License-Identifier: Apache-2.0
58476
58478
  */
58477
- var DThemeDarkChartSelectionGridline = /** @class */ (function () {
58478
- function DThemeDarkChartSelectionGridline() {
58479
+ var DThemeDarkChartSelectionShape = /** @class */ (function () {
58480
+ function DThemeDarkChartSelectionShape() {
58479
58481
  }
58480
- DThemeDarkChartSelectionGridline.prototype.isEnabled = function (state) {
58481
- return true;
58482
- };
58483
- DThemeDarkChartSelectionGridline.prototype.newShape = function (state) {
58484
- var result = new EShapeBar();
58485
- result.points.position = EShapeBarPosition.TOP;
58486
- result.stroke.alpha = 0.5;
58487
- return result;
58488
- };
58489
- return DThemeDarkChartSelectionGridline;
58482
+ return DThemeDarkChartSelectionShape;
58490
58483
  }());
58491
58484
 
58492
58485
  /*
@@ -58498,8 +58491,17 @@ var DThemeDarkChartSelectionGridlineX = /** @class */ (function (_super) {
58498
58491
  function DThemeDarkChartSelectionGridlineX() {
58499
58492
  return _super !== null && _super.apply(this, arguments) || this;
58500
58493
  }
58494
+ DThemeDarkChartSelectionGridlineX.prototype.isEnabled = function (state) {
58495
+ return state.isHovered;
58496
+ };
58497
+ DThemeDarkChartSelectionGridlineX.prototype.newShape = function (state) {
58498
+ var result = new EShapeBar();
58499
+ result.points.position = EShapeBarPosition.TOP;
58500
+ result.stroke.style = EShapeStrokeStyle.DASHED;
58501
+ return result;
58502
+ };
58501
58503
  return DThemeDarkChartSelectionGridlineX;
58502
- }(DThemeDarkChartSelectionGridline));
58504
+ }(DThemeDarkChartSelectionShape));
58503
58505
 
58504
58506
  /*
58505
58507
  * Copyright (C) 2019 Toshiba Corporation
@@ -58510,37 +58512,37 @@ var DThemeDarkChartSelectionGridlineY = /** @class */ (function (_super) {
58510
58512
  function DThemeDarkChartSelectionGridlineY() {
58511
58513
  return _super !== null && _super.apply(this, arguments) || this;
58512
58514
  }
58515
+ DThemeDarkChartSelectionGridlineY.prototype.isEnabled = function (state) {
58516
+ return state.isHovered;
58517
+ };
58513
58518
  DThemeDarkChartSelectionGridlineY.prototype.newShape = function (state) {
58514
58519
  var result = new EShapeBar();
58515
58520
  result.points.position = EShapeBarPosition.LEFT;
58516
- result.stroke.alpha = 0.5;
58521
+ result.stroke.style = EShapeStrokeStyle.DASHED;
58517
58522
  return result;
58518
58523
  };
58519
58524
  return DThemeDarkChartSelectionGridlineY;
58520
- }(DThemeDarkChartSelectionGridline));
58525
+ }(DThemeDarkChartSelectionShape));
58521
58526
 
58522
58527
  /*
58523
58528
  * Copyright (C) 2019 Toshiba Corporation
58524
58529
  * SPDX-License-Identifier: Apache-2.0
58525
58530
  */
58526
- var DThemeDarkChartSelectionMarker = /** @class */ (function () {
58531
+ var DThemeDarkChartSelectionMarker = /** @class */ (function (_super) {
58532
+ __extends(DThemeDarkChartSelectionMarker, _super);
58527
58533
  function DThemeDarkChartSelectionMarker() {
58534
+ return _super !== null && _super.apply(this, arguments) || this;
58528
58535
  }
58529
58536
  DThemeDarkChartSelectionMarker.prototype.isEnabled = function (state) {
58530
- return false;
58537
+ return state.isActive;
58531
58538
  };
58532
58539
  DThemeDarkChartSelectionMarker.prototype.newShape = function (state) {
58533
58540
  var result = new EShapeCircle();
58534
- if (state.isHovered) {
58535
- result.size.set(14, 14);
58536
- }
58537
- else {
58538
- result.size.set(20, 20);
58539
- }
58541
+ result.size.set(14, 14);
58540
58542
  return result;
58541
58543
  };
58542
58544
  return DThemeDarkChartSelectionMarker;
58543
- }());
58545
+ }(DThemeDarkChartSelectionShape));
58544
58546
 
58545
58547
  /*
58546
58548
  * Copyright (C) 2019 Toshiba Corporation
@@ -75443,6 +75445,53 @@ var DChartRegionImplObservable = /** @class */ (function () {
75443
75445
  return DChartRegionImplObservable;
75444
75446
  }());
75445
75447
 
75448
+ /*
75449
+ * Copyright (C) 2019 Toshiba Corporation
75450
+ * SPDX-License-Identifier: Apache-2.0
75451
+ */
75452
+ var DChartSelectionContainerImpl = /** @class */ (function () {
75453
+ function DChartSelectionContainerImpl(x, y) {
75454
+ this._x = x;
75455
+ this._y = y;
75456
+ }
75457
+ Object.defineProperty(DChartSelectionContainerImpl.prototype, "x", {
75458
+ get: function () {
75459
+ return this._x;
75460
+ },
75461
+ enumerable: false,
75462
+ configurable: true
75463
+ });
75464
+ Object.defineProperty(DChartSelectionContainerImpl.prototype, "y", {
75465
+ get: function () {
75466
+ return this._y;
75467
+ },
75468
+ enumerable: false,
75469
+ configurable: true
75470
+ });
75471
+ DChartSelectionContainerImpl.prototype.bind = function (container) {
75472
+ this._x.bind(container);
75473
+ this._y.bind(container);
75474
+ };
75475
+ DChartSelectionContainerImpl.prototype.unbind = function () {
75476
+ this._x.unbind();
75477
+ this._y.unbind();
75478
+ };
75479
+ DChartSelectionContainerImpl.prototype.set = function (container, position, mappedPosition, series) {
75480
+ this._x.set(container, position, mappedPosition, series);
75481
+ this._y.set(container, position, mappedPosition, series);
75482
+ };
75483
+ DChartSelectionContainerImpl.prototype.unset = function () {
75484
+ this._x.unset();
75485
+ this._y.unset();
75486
+ };
75487
+ DChartSelectionContainerImpl.prototype.update = function (container, position, mappedPosition) {
75488
+ var isXUpdated = this._x.update(container, position, mappedPosition);
75489
+ var isYUpdated = this._y.update(container, position, mappedPosition);
75490
+ return isXUpdated || isYUpdated;
75491
+ };
75492
+ return DChartSelectionContainerImpl;
75493
+ }());
75494
+
75446
75495
  /*
75447
75496
  * Copyright (C) 2019 Toshiba Corporation
75448
75497
  * SPDX-License-Identifier: Apache-2.0
@@ -75455,12 +75504,32 @@ var DChartSelectionShapeBase = /** @class */ (function () {
75455
75504
  var state = new DBaseStateSetImpl().add((_a = options === null || options === void 0 ? void 0 : options.state) !== null && _a !== void 0 ? _a : DBaseState.HOVERED);
75456
75505
  this._state = state;
75457
75506
  this._isEnabled = (_b = options === null || options === void 0 ? void 0 : options.enable) !== null && _b !== void 0 ? _b : theme.isEnabled(state);
75458
- this._shape = options === null || options === void 0 ? void 0 : options.shape;
75507
+ if (options != null) {
75508
+ var shape = options.shape;
75509
+ if (shape != null) {
75510
+ if (isFunction(shape)) {
75511
+ this._newShape = shape;
75512
+ }
75513
+ else {
75514
+ this._shape = shape;
75515
+ }
75516
+ }
75517
+ }
75459
75518
  this._style = (_c = options === null || options === void 0 ? void 0 : options.style) !== null && _c !== void 0 ? _c : this.setStyle;
75460
75519
  }
75461
75520
  DChartSelectionShapeBase.prototype.bind = function (container) {
75462
75521
  if (this._isEnabled) {
75463
- var shape = this._shape || this.newShape(this._theme);
75522
+ var shape = this._shape;
75523
+ if (shape == null) {
75524
+ var state = this._state;
75525
+ var newShape = this._newShape;
75526
+ if (newShape != null) {
75527
+ shape = newShape(state);
75528
+ }
75529
+ else {
75530
+ shape = this.newShape(state, this._theme);
75531
+ }
75532
+ }
75464
75533
  this._shape = shape;
75465
75534
  shape.attach(container.plotArea.axis.container);
75466
75535
  shape.visible = false;
@@ -75472,21 +75541,18 @@ var DChartSelectionShapeBase = /** @class */ (function () {
75472
75541
  shape.detach();
75473
75542
  }
75474
75543
  };
75475
- DChartSelectionShapeBase.prototype.newShape = function (theme) {
75476
- return theme.newShape(this._state);
75544
+ DChartSelectionShapeBase.prototype.newShape = function (state, theme) {
75545
+ return theme.newShape(state);
75477
75546
  };
75478
- DChartSelectionShapeBase.prototype.set = function (container, mappedPosition, series) {
75479
- this.update(container, mappedPosition);
75547
+ DChartSelectionShapeBase.prototype.set = function (container, position, mappedPosition, series) {
75548
+ this.update(container, position, mappedPosition);
75480
75549
  var shape = this._shape;
75481
75550
  if (shape) {
75482
75551
  this._style(shape, series);
75483
75552
  }
75484
75553
  };
75485
75554
  DChartSelectionShapeBase.prototype.setStyle = function (shape, series) {
75486
- var seriesShape = series.shape;
75487
- if (seriesShape) {
75488
- shape.stroke.color = seriesShape.stroke.color;
75489
- }
75555
+ // DO NOTHING
75490
75556
  };
75491
75557
  DChartSelectionShapeBase.prototype.unset = function () {
75492
75558
  var shape = this._shape;
@@ -75521,20 +75587,21 @@ var DChartSelectionGridlineX = /** @class */ (function (_super) {
75521
75587
  function DChartSelectionGridlineX() {
75522
75588
  return _super !== null && _super.apply(this, arguments) || this;
75523
75589
  }
75524
- DChartSelectionGridlineX.prototype.update = function (container, mappedPosition) {
75590
+ DChartSelectionGridlineX.prototype.update = function (container, position, mappedPosition) {
75525
75591
  var shape = this._shape;
75526
75592
  if (shape) {
75527
75593
  var mappedX = mappedPosition.x;
75528
75594
  var height = container.plotArea.height;
75529
75595
  shape.transform.position.set(mappedX, height * 0.5);
75530
75596
  shape.size.set(0, height);
75531
- shape.visible = this.isVisible(container, mappedX);
75597
+ shape.visible = this.isVisible(container, position, mappedPosition);
75532
75598
  return true;
75533
75599
  }
75534
75600
  return false;
75535
75601
  };
75536
- DChartSelectionGridlineX.prototype.isVisible = function (container, mappedX) {
75537
- return 0 <= mappedX && mappedX <= container.plotArea.width;
75602
+ DChartSelectionGridlineX.prototype.isVisible = function (container, position, mappedPosition) {
75603
+ var x = mappedPosition.x;
75604
+ return 0 <= x && x <= container.plotArea.width;
75538
75605
  };
75539
75606
  DChartSelectionGridlineX.prototype.getType = function () {
75540
75607
  return "DChartSelectionGridlineX";
@@ -75551,20 +75618,21 @@ var DChartSelectionGridlineY = /** @class */ (function (_super) {
75551
75618
  function DChartSelectionGridlineY() {
75552
75619
  return _super !== null && _super.apply(this, arguments) || this;
75553
75620
  }
75554
- DChartSelectionGridlineY.prototype.update = function (container, mappedPosition) {
75621
+ DChartSelectionGridlineY.prototype.update = function (container, position, mappedPosition) {
75555
75622
  var shape = this._shape;
75556
75623
  if (shape) {
75557
75624
  var mappedY = mappedPosition.y;
75558
75625
  var width = container.plotArea.width;
75559
75626
  shape.transform.position.set(width * 0.5, mappedY);
75560
75627
  shape.size.set(width, 0);
75561
- shape.visible = this.isVisible(container, mappedY);
75628
+ shape.visible = this.isVisible(container, position, mappedPosition);
75562
75629
  return true;
75563
75630
  }
75564
75631
  return false;
75565
75632
  };
75566
- DChartSelectionGridlineY.prototype.isVisible = function (container, mappedY) {
75567
- return 0 <= mappedY && mappedY <= container.plotArea.height;
75633
+ DChartSelectionGridlineY.prototype.isVisible = function (container, position, mappedPosition) {
75634
+ var y = mappedPosition.y;
75635
+ return 0 <= y && y <= container.plotArea.height;
75568
75636
  };
75569
75637
  DChartSelectionGridlineY.prototype.getType = function () {
75570
75638
  return "DChartSelectionGridlineY";
@@ -75572,53 +75640,6 @@ var DChartSelectionGridlineY = /** @class */ (function (_super) {
75572
75640
  return DChartSelectionGridlineY;
75573
75641
  }(DChartSelectionShapeBase));
75574
75642
 
75575
- /*
75576
- * Copyright (C) 2019 Toshiba Corporation
75577
- * SPDX-License-Identifier: Apache-2.0
75578
- */
75579
- var DChartSelectionGridlineContainerImpl = /** @class */ (function () {
75580
- function DChartSelectionGridlineContainerImpl(options) {
75581
- this._x = new DChartSelectionGridlineX(options === null || options === void 0 ? void 0 : options.x);
75582
- this._y = new DChartSelectionGridlineY(options === null || options === void 0 ? void 0 : options.y);
75583
- }
75584
- Object.defineProperty(DChartSelectionGridlineContainerImpl.prototype, "x", {
75585
- get: function () {
75586
- return this._x;
75587
- },
75588
- enumerable: false,
75589
- configurable: true
75590
- });
75591
- Object.defineProperty(DChartSelectionGridlineContainerImpl.prototype, "y", {
75592
- get: function () {
75593
- return this._y;
75594
- },
75595
- enumerable: false,
75596
- configurable: true
75597
- });
75598
- DChartSelectionGridlineContainerImpl.prototype.bind = function (container) {
75599
- this._x.bind(container);
75600
- this._y.bind(container);
75601
- };
75602
- DChartSelectionGridlineContainerImpl.prototype.unbind = function () {
75603
- this._x.unbind();
75604
- this._y.unbind();
75605
- };
75606
- DChartSelectionGridlineContainerImpl.prototype.set = function (container, mappedPosition, series) {
75607
- this._x.set(container, mappedPosition, series);
75608
- this._y.set(container, mappedPosition, series);
75609
- };
75610
- DChartSelectionGridlineContainerImpl.prototype.unset = function () {
75611
- this._x.unset();
75612
- this._y.unset();
75613
- };
75614
- DChartSelectionGridlineContainerImpl.prototype.update = function (container, mappedPosition) {
75615
- var isXUpdated = this._x.update(container, mappedPosition);
75616
- var isYUpdated = this._y.update(container, mappedPosition);
75617
- return isXUpdated || isYUpdated;
75618
- };
75619
- return DChartSelectionGridlineContainerImpl;
75620
- }());
75621
-
75622
75643
  /*
75623
75644
  * Copyright (C) 2019 Toshiba Corporation
75624
75645
  * SPDX-License-Identifier: Apache-2.0
@@ -75628,16 +75649,16 @@ var DChartSelectionMarker = /** @class */ (function (_super) {
75628
75649
  function DChartSelectionMarker() {
75629
75650
  return _super !== null && _super.apply(this, arguments) || this;
75630
75651
  }
75631
- DChartSelectionMarker.prototype.update = function (container, mappedPosition) {
75652
+ DChartSelectionMarker.prototype.update = function (container, position, mappedPosition) {
75632
75653
  var shape = this._shape;
75633
75654
  if (shape) {
75634
75655
  shape.transform.position.copyFrom(mappedPosition);
75635
- shape.visible = this.isVisible(container, mappedPosition);
75656
+ shape.visible = this.isVisible(container, position, mappedPosition);
75636
75657
  return true;
75637
75658
  }
75638
75659
  return false;
75639
75660
  };
75640
- DChartSelectionMarker.prototype.isVisible = function (container, mappedPosition) {
75661
+ DChartSelectionMarker.prototype.isVisible = function (container, position, mappedPosition) {
75641
75662
  var x = mappedPosition.x;
75642
75663
  var y = mappedPosition.y;
75643
75664
  var plotArea = container.plotArea;
@@ -75668,18 +75689,18 @@ var DChartSelectionSubImpl = /** @class */ (function (_super) {
75668
75689
  __extends(DChartSelectionSubImpl, _super);
75669
75690
  function DChartSelectionSubImpl(options) {
75670
75691
  var _this = this;
75671
- var _a, _b, _c;
75692
+ var _a, _b, _c, _d, _e;
75672
75693
  _this = _super.call(this) || this;
75673
75694
  _this._container = null;
75674
75695
  _this._series = null;
75675
75696
  _this._isEnabled = (_a = options.enable) !== null && _a !== void 0 ? _a : true;
75676
- _this._gridline = new DChartSelectionGridlineContainerImpl(options.gridline);
75697
+ _this._gridline = new DChartSelectionContainerImpl(new DChartSelectionGridlineX((_b = options.gridline) === null || _b === void 0 ? void 0 : _b.x), new DChartSelectionGridlineY((_c = options.gridline) === null || _c === void 0 ? void 0 : _c.y));
75677
75698
  _this._marker = new DChartSelectionMarker(options.marker);
75678
- _this._state = (_b = options.state) !== null && _b !== void 0 ? _b : DBaseState.HOVERED;
75699
+ _this._state = (_d = options.state) !== null && _d !== void 0 ? _d : DBaseState.HOVERED;
75679
75700
  _this._coordinateX = null;
75680
75701
  _this._coordinateY = null;
75681
75702
  _this._position = new pixi_js.Point();
75682
- _this._point = (_c = options.point) !== null && _c !== void 0 ? _c : DChartSelectionPoint.CLOSER;
75703
+ _this._point = (_e = options.point) !== null && _e !== void 0 ? _e : DChartSelectionPoint.CLOSER;
75683
75704
  _this._work = new pixi_js.Point();
75684
75705
  // Events
75685
75706
  var on = options.on;
@@ -75774,8 +75795,8 @@ var DChartSelectionSubImpl = /** @class */ (function (_super) {
75774
75795
  work.set(coordinateX.transform.map(coordinateX.map(position.x)), coordinateY.transform.map(coordinateY.map(position.y)));
75775
75796
  transform.apply(work, work);
75776
75797
  }
75777
- this._gridline.set(container, work, series);
75778
- this._marker.set(container, work, series);
75798
+ this._gridline.set(container, position, work, series);
75799
+ this._marker.set(container, position, work, series);
75779
75800
  DApplications.update(container.plotArea);
75780
75801
  }
75781
75802
  var oldSeries = this._series;
@@ -75789,12 +75810,6 @@ var DChartSelectionSubImpl = /** @class */ (function (_super) {
75789
75810
  }
75790
75811
  this.emit("change", this);
75791
75812
  };
75792
- DChartSelectionSubImpl.prototype.setStyle = function (shape, series) {
75793
- var seriesShape = series.shape;
75794
- if (seriesShape) {
75795
- shape.stroke.color = seriesShape.stroke.color;
75796
- }
75797
- };
75798
75813
  DChartSelectionSubImpl.prototype.unset = function () {
75799
75814
  var series = this._series;
75800
75815
  if (series) {
@@ -75816,8 +75831,8 @@ var DChartSelectionSubImpl = /** @class */ (function (_super) {
75816
75831
  var work = this._work;
75817
75832
  work.set(coordinateX.transform.map(coordinateX.map(position.x)), coordinateY.transform.map(coordinateY.map(position.y)));
75818
75833
  container.plotArea.container.localTransform.apply(work, work);
75819
- var isGridlineUpdated = this._gridline.update(container, work);
75820
- var isMarkerUpdated = this._marker.update(container, work);
75834
+ var isGridlineUpdated = this._gridline.update(container, position, work);
75835
+ var isMarkerUpdated = this._marker.update(container, position, work);
75821
75836
  return isGridlineUpdated || isMarkerUpdated;
75822
75837
  }
75823
75838
  return false;
@@ -75859,12 +75874,19 @@ var DChartSelectionSimple = /** @class */ (function (_super) {
75859
75874
  return _this;
75860
75875
  }
75861
75876
  DChartSelectionSimple.prototype.newSelected = function (point, options) {
75862
- return new DChartSelectionSubImpl(this.toSubOptions(point, options, DBaseState.ACTIVE));
75877
+ return new DChartSelectionSubImpl(this.toSelectedOptions(point, options));
75863
75878
  };
75864
75879
  DChartSelectionSimple.prototype.newHovered = function (point, options) {
75865
- return new DChartSelectionSubImpl(this.toSubOptions(point, options, DBaseState.HOVERED));
75880
+ return new DChartSelectionSubImpl(this.toHoveredOptions(point, options));
75881
+ };
75882
+ DChartSelectionSimple.prototype.toSelectedOptions = function (point, options) {
75883
+ return this.toSubOptions(point, options, DBaseState.ACTIVE);
75884
+ };
75885
+ DChartSelectionSimple.prototype.toHoveredOptions = function (point, options) {
75886
+ return this.toSubOptions(point, options, DBaseState.HOVERED);
75866
75887
  };
75867
75888
  DChartSelectionSimple.prototype.toSubOptions = function (point, options, state) {
75889
+ var _a, _b, _c, _d, _e, _f, _g;
75868
75890
  options = options || {};
75869
75891
  if (options.point == null) {
75870
75892
  options.point = point;
@@ -75872,19 +75894,28 @@ var DChartSelectionSimple = /** @class */ (function (_super) {
75872
75894
  if (options.state == null) {
75873
75895
  options.state = state;
75874
75896
  }
75875
- var gridline = options.gridline || {};
75876
- var gridlineX = gridline.x || {};
75897
+ var gridline = ((_a = options.gridline) !== null && _a !== void 0 ? _a : (options.gridline = {}));
75898
+ var gridlineX = ((_b = gridline.x) !== null && _b !== void 0 ? _b : (gridline.x = {}));
75877
75899
  if (gridlineX.state == null) {
75878
75900
  gridlineX.state = state;
75879
75901
  }
75880
- var gridlineY = gridline.y || {};
75902
+ var gridlineY = ((_c = gridline.y) !== null && _c !== void 0 ? _c : (gridline.y = {}));
75881
75903
  if (gridlineY.state == null) {
75882
75904
  gridlineY.state = state;
75883
75905
  }
75884
- var marker = options.marker || {};
75906
+ var marker = ((_d = options.marker) !== null && _d !== void 0 ? _d : (options.marker = {}));
75885
75907
  if (marker.state == null) {
75886
75908
  marker.state = state;
75887
75909
  }
75910
+ var label = ((_e = options.label) !== null && _e !== void 0 ? _e : (options.label = {}));
75911
+ var labelX = ((_f = label.x) !== null && _f !== void 0 ? _f : (label.x = {}));
75912
+ if (labelX.state == null) {
75913
+ labelX.state = state;
75914
+ }
75915
+ var labelY = ((_g = label.y) !== null && _g !== void 0 ? _g : (label.y = {}));
75916
+ if (labelY.state == null) {
75917
+ labelY.state = state;
75918
+ }
75888
75919
  return options;
75889
75920
  };
75890
75921
  DChartSelectionSimple.prototype.onClick = function (e) {
@@ -86595,6 +86626,17 @@ var DTableDataListMapped = /** @class */ (function () {
86595
86626
  function DTableDataListMapped(parent) {
86596
86627
  this._parent = parent;
86597
86628
  }
86629
+ Object.defineProperty(DTableDataListMapped.prototype, "rows", {
86630
+ get: function () {
86631
+ var result = [];
86632
+ this.each(function (row) {
86633
+ result.push(row);
86634
+ });
86635
+ return result;
86636
+ },
86637
+ enumerable: false,
86638
+ configurable: true
86639
+ });
86598
86640
  DTableDataListMapped.prototype.map = function (unmappedIndex) {
86599
86641
  var parent = this._parent;
86600
86642
  var sortedIndex = parent.sorter.map(unmappedIndex);
@@ -91577,7 +91619,7 @@ exports.DChartPlotAreaContainer = DChartPlotAreaContainer;
91577
91619
  exports.DChartPlotAreaImpl = DChartPlotAreaImpl;
91578
91620
  exports.DChartRegionImpl = DChartRegionImpl;
91579
91621
  exports.DChartRegionImplObservable = DChartRegionImplObservable;
91580
- exports.DChartSelectionGridlineContainerImpl = DChartSelectionGridlineContainerImpl;
91622
+ exports.DChartSelectionContainerImpl = DChartSelectionContainerImpl;
91581
91623
  exports.DChartSelectionGridlineX = DChartSelectionGridlineX;
91582
91624
  exports.DChartSelectionGridlineY = DChartSelectionGridlineY;
91583
91625
  exports.DChartSelectionMarker = DChartSelectionMarker;
@@ -91970,6 +92012,10 @@ exports.DThemeDarkChartLegend = DThemeDarkChartLegend;
91970
92012
  exports.DThemeDarkChartLegendItem = DThemeDarkChartLegendItem;
91971
92013
  exports.DThemeDarkChartOverview = DThemeDarkChartOverview;
91972
92014
  exports.DThemeDarkChartPlotArea = DThemeDarkChartPlotArea;
92015
+ exports.DThemeDarkChartSelectionGridlineX = DThemeDarkChartSelectionGridlineX;
92016
+ exports.DThemeDarkChartSelectionGridlineY = DThemeDarkChartSelectionGridlineY;
92017
+ exports.DThemeDarkChartSelectionMarker = DThemeDarkChartSelectionMarker;
92018
+ exports.DThemeDarkChartSelectionShape = DThemeDarkChartSelectionShape;
91973
92019
  exports.DThemeDarkContent = DThemeDarkContent;
91974
92020
  exports.DThemeDarkDiagram = DThemeDarkDiagram;
91975
92021
  exports.DThemeDarkDiagramBase = DThemeDarkDiagramBase;
@@ -92180,6 +92226,10 @@ exports.DThemeWhiteChartLegend = DThemeWhiteChartLegend;
92180
92226
  exports.DThemeWhiteChartLegendItem = DThemeWhiteChartLegendItem;
92181
92227
  exports.DThemeWhiteChartOverview = DThemeWhiteChartOverview;
92182
92228
  exports.DThemeWhiteChartPlotArea = DThemeWhiteChartPlotArea;
92229
+ exports.DThemeWhiteChartSelectionGridlineX = DThemeWhiteChartSelectionGridlineX;
92230
+ exports.DThemeWhiteChartSelectionGridlineY = DThemeWhiteChartSelectionGridlineY;
92231
+ exports.DThemeWhiteChartSelectionMarker = DThemeWhiteChartSelectionMarker;
92232
+ exports.DThemeWhiteChartSelectionShape = DThemeWhiteChartSelectionShape;
92183
92233
  exports.DThemeWhiteContent = DThemeWhiteContent;
92184
92234
  exports.DThemeWhiteDiagram = DThemeWhiteDiagram;
92185
92235
  exports.DThemeWhiteDiagramBase = DThemeWhiteDiagramBase;