@wcardinal/wcardinal-ui 0.442.0 → 0.444.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 (75) hide show
  1. package/dist/types/wcardinal/ui/d-picker-color.d.ts +3 -0
  2. package/dist/types/wcardinal/ui/d-table-column-state.d.ts +4 -1
  3. package/dist/types/wcardinal/ui/d-table-state.d.ts +4 -0
  4. package/dist/types/wcardinal/ui/theme/common/new-svg-rounded-checkerboard.d.ts +1 -0
  5. package/dist/types/wcardinal/ui/theme/common/new-svg-rounded-rect.d.ts +1 -0
  6. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-picker-color.d.ts +3 -0
  7. package/dist/types/wcardinal/ui/theme/dark/new-dark-svg-rounded-checkerboard.d.ts +1 -0
  8. package/dist/types/wcardinal/ui/theme/white/d-theme-white-picker-color.d.ts +3 -0
  9. package/dist/types/wcardinal/ui/theme/white/new-white-svg-rounded-checkerboard.d.ts +1 -0
  10. package/dist/types/wcardinal/ui/util/index.d.ts +1 -0
  11. package/dist/types/wcardinal/ui/util/util-extract.d.ts +13 -2
  12. package/dist/types/wcardinal/ui/util/util-extractor-canvas.d.ts +18 -0
  13. package/dist/types/wcardinal/ui/util/util-extractor.d.ts +3 -2
  14. package/dist/wcardinal/ui/d-image-piece-impl.js +8 -0
  15. package/dist/wcardinal/ui/d-image-piece-impl.js.map +1 -1
  16. package/dist/wcardinal/ui/d-picker-color.js +5 -4
  17. package/dist/wcardinal/ui/d-picker-color.js.map +1 -1
  18. package/dist/wcardinal/ui/d-table-body.js +3 -2
  19. package/dist/wcardinal/ui/d-table-body.js.map +1 -1
  20. package/dist/wcardinal/ui/d-table-column-state.js.map +1 -1
  21. package/dist/wcardinal/ui/d-table-state.js +4 -0
  22. package/dist/wcardinal/ui/d-table-state.js.map +1 -1
  23. package/dist/wcardinal/ui/theme/common/new-svg-rounded-checkerboard.js +20 -0
  24. package/dist/wcardinal/ui/theme/common/new-svg-rounded-checkerboard.js.map +1 -0
  25. package/dist/wcardinal/ui/theme/common/new-svg-rounded-rect.js +15 -0
  26. package/dist/wcardinal/ui/theme/common/new-svg-rounded-rect.js.map +1 -0
  27. package/dist/wcardinal/ui/theme/dark/d-theme-dark-button-color-gradient.js +2 -5
  28. package/dist/wcardinal/ui/theme/dark/d-theme-dark-button-color-gradient.js.map +1 -1
  29. package/dist/wcardinal/ui/theme/dark/d-theme-dark-button-color.js +3 -6
  30. package/dist/wcardinal/ui/theme/dark/d-theme-dark-button-color.js.map +1 -1
  31. package/dist/wcardinal/ui/theme/dark/d-theme-dark-picker-color.js +24 -35
  32. package/dist/wcardinal/ui/theme/dark/d-theme-dark-picker-color.js.map +1 -1
  33. package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-cells.js +7 -2
  34. package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-cells.js.map +1 -1
  35. package/dist/wcardinal/ui/theme/dark/new-dark-svg-rounded-checkerboard.js +5 -0
  36. package/dist/wcardinal/ui/theme/dark/new-dark-svg-rounded-checkerboard.js.map +1 -0
  37. package/dist/wcardinal/ui/theme/white/d-theme-white-button-color-gradient.js +2 -5
  38. package/dist/wcardinal/ui/theme/white/d-theme-white-button-color-gradient.js.map +1 -1
  39. package/dist/wcardinal/ui/theme/white/d-theme-white-button-color.js +3 -6
  40. package/dist/wcardinal/ui/theme/white/d-theme-white-button-color.js.map +1 -1
  41. package/dist/wcardinal/ui/theme/white/d-theme-white-picker-color.js +24 -35
  42. package/dist/wcardinal/ui/theme/white/d-theme-white-picker-color.js.map +1 -1
  43. package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-cells.js +7 -2
  44. package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-cells.js.map +1 -1
  45. package/dist/wcardinal/ui/theme/white/new-white-svg-rounded-checkerboard.js +5 -0
  46. package/dist/wcardinal/ui/theme/white/new-white-svg-rounded-checkerboard.js.map +1 -0
  47. package/dist/wcardinal/ui/util/index.js +1 -0
  48. package/dist/wcardinal/ui/util/index.js.map +1 -1
  49. package/dist/wcardinal/ui/util/util-extract.js +34 -10
  50. package/dist/wcardinal/ui/util/util-extract.js.map +1 -1
  51. package/dist/wcardinal/ui/util/util-extractor-canvas.js +110 -0
  52. package/dist/wcardinal/ui/util/util-extractor-canvas.js.map +1 -0
  53. package/dist/wcardinal/ui/util/util-extractor.js +45 -20
  54. package/dist/wcardinal/ui/util/util-extractor.js.map +1 -1
  55. package/dist/wcardinal-ui-theme-dark-en-us.js +71 -49
  56. package/dist/wcardinal-ui-theme-dark-en-us.min.js +2 -2
  57. package/dist/wcardinal-ui-theme-dark-en-us.min.js.map +1 -1
  58. package/dist/wcardinal-ui-theme-dark-ja-jp.js +71 -49
  59. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +2 -2
  60. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js.map +1 -1
  61. package/dist/wcardinal-ui-theme-dark.js +71 -49
  62. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  63. package/dist/wcardinal-ui-theme-white-en-us.js +71 -49
  64. package/dist/wcardinal-ui-theme-white-en-us.min.js +2 -2
  65. package/dist/wcardinal-ui-theme-white-en-us.min.js.map +1 -1
  66. package/dist/wcardinal-ui-theme-white-ja-jp.js +71 -49
  67. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +2 -2
  68. package/dist/wcardinal-ui-theme-white-ja-jp.min.js.map +1 -1
  69. package/dist/wcardinal-ui-theme-white.js +71 -49
  70. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  71. package/dist/wcardinal-ui.cjs.js +313 -132
  72. package/dist/wcardinal-ui.js +207 -36
  73. package/dist/wcardinal-ui.min.js +2 -2
  74. package/dist/wcardinal-ui.min.js.map +1 -1
  75. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.442.0
2
+ Winter Cardinal UI v0.444.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -23628,6 +23628,115 @@ var DCanvasContainer = /** @class */ (function (_super) {
23628
23628
  return DCanvasContainer;
23629
23629
  }(DBase));
23630
23630
 
23631
+ var UtilExtractorCanvas = /** @class */ (function () {
23632
+ function UtilExtractorCanvas(width, height) {
23633
+ var element = document.createElement("canvas");
23634
+ this._element = element;
23635
+ var context = this._element.getContext("2d", {
23636
+ willReadFrequently: true
23637
+ });
23638
+ this._context = context;
23639
+ element.width = width;
23640
+ element.height = height;
23641
+ }
23642
+ Object.defineProperty(UtilExtractorCanvas.prototype, "element", {
23643
+ get: function () {
23644
+ var result = this._element;
23645
+ if (result != null) {
23646
+ return result;
23647
+ }
23648
+ throw new Error("No Element Available");
23649
+ },
23650
+ enumerable: false,
23651
+ configurable: true
23652
+ });
23653
+ UtilExtractorCanvas.prototype.getElement = function () {
23654
+ return this._element;
23655
+ };
23656
+ Object.defineProperty(UtilExtractorCanvas.prototype, "canvas", {
23657
+ get: function () {
23658
+ return this.element;
23659
+ },
23660
+ enumerable: false,
23661
+ configurable: true
23662
+ });
23663
+ Object.defineProperty(UtilExtractorCanvas.prototype, "context", {
23664
+ get: function () {
23665
+ var result = this._context;
23666
+ if (result != null) {
23667
+ return result;
23668
+ }
23669
+ throw new Error("No Context Available");
23670
+ },
23671
+ enumerable: false,
23672
+ configurable: true
23673
+ });
23674
+ UtilExtractorCanvas.prototype.getContext = function () {
23675
+ return this._context;
23676
+ };
23677
+ Object.defineProperty(UtilExtractorCanvas.prototype, "resolution", {
23678
+ get: function () {
23679
+ return 1;
23680
+ },
23681
+ enumerable: false,
23682
+ configurable: true
23683
+ });
23684
+ Object.defineProperty(UtilExtractorCanvas.prototype, "width", {
23685
+ get: function () {
23686
+ var element = this._element;
23687
+ if (element != null) {
23688
+ return element.width;
23689
+ }
23690
+ return 0;
23691
+ },
23692
+ set: function (width) {
23693
+ var element = this._element;
23694
+ if (element != null) {
23695
+ element.width = width;
23696
+ }
23697
+ },
23698
+ enumerable: false,
23699
+ configurable: true
23700
+ });
23701
+ Object.defineProperty(UtilExtractorCanvas.prototype, "height", {
23702
+ get: function () {
23703
+ var element = this._element;
23704
+ if (element != null) {
23705
+ return element.height;
23706
+ }
23707
+ return 0;
23708
+ },
23709
+ set: function (height) {
23710
+ var element = this._element;
23711
+ if (element != null) {
23712
+ element.height = height;
23713
+ }
23714
+ },
23715
+ enumerable: false,
23716
+ configurable: true
23717
+ });
23718
+ UtilExtractorCanvas.prototype.clear = function () {
23719
+ var element = this._element;
23720
+ var context = this._context;
23721
+ if (element != null && context != null) {
23722
+ context.setTransform(1, 0, 0, 1, 0, 0);
23723
+ context.clearRect(0, 0, element.width, element.height);
23724
+ }
23725
+ };
23726
+ UtilExtractorCanvas.prototype.resize = function (width, height) {
23727
+ var element = this._element;
23728
+ if (element != null) {
23729
+ element.width = width;
23730
+ element.height = height;
23731
+ }
23732
+ };
23733
+ UtilExtractorCanvas.prototype.destroy = function () {
23734
+ this._context = null;
23735
+ this._element = null;
23736
+ };
23737
+ return UtilExtractorCanvas;
23738
+ }());
23739
+
23631
23740
  /*
23632
23741
  * Copyright (C) 2019 Toshiba Corporation
23633
23742
  * SPDX-License-Identifier: Apache-2.0
@@ -23637,9 +23746,11 @@ var UtilExtractor = /** @class */ (function () {
23637
23746
  }
23638
23747
  UtilExtractor.toTexture = function (target, resolution, clear, skipUpdateTransform) {
23639
23748
  var scale = target.transform.scale;
23749
+ var width = Math.max(1, Math.ceil(target.width * scale.x));
23750
+ var height = Math.max(1, Math.ceil(target.height * scale.y));
23640
23751
  var result = pixi_js.RenderTexture.create({
23641
- width: target.width * scale.x,
23642
- height: target.height * scale.y,
23752
+ width: width,
23753
+ height: height,
23643
23754
  scaleMode: pixi_js.SCALE_MODES.LINEAR,
23644
23755
  resolution: resolution
23645
23756
  });
@@ -23651,46 +23762,68 @@ var UtilExtractor = /** @class */ (function () {
23651
23762
  return result;
23652
23763
  };
23653
23764
  UtilExtractor.toPixels = function (renderTexture, renderer) {
23765
+ var baseTexture = renderTexture.baseTexture;
23766
+ var realWidth = baseTexture.realWidth;
23767
+ var realHeight = baseTexture.realHeight;
23654
23768
  var resolution = renderTexture.resolution;
23655
23769
  var frame = renderTexture.frame;
23656
- var width = Math.floor(frame.width * resolution);
23657
- var height = Math.floor(frame.height * resolution);
23770
+ var x0 = Math.floor(frame.x * resolution);
23771
+ var y0 = Math.floor(frame.y * resolution);
23772
+ var x1 = Math.floor((frame.x + frame.width) * resolution);
23773
+ var y1 = Math.floor((frame.y + frame.height) * resolution);
23774
+ var width = Math.min(x1 - x0, realWidth);
23775
+ var height = Math.min(y1 - y0, realHeight);
23658
23776
  var pixels = new Uint8Array(4 * width * height);
23659
- var oldRenderTexture = renderer.renderTexture.current;
23660
- renderer.renderTexture.bind(renderTexture);
23661
- var gl = renderer.gl;
23662
- gl.readPixels(frame.x * resolution, frame.y * resolution, width, height, gl.RGBA, gl.UNSIGNED_BYTE, pixels);
23663
- renderer.renderTexture.bind(oldRenderTexture);
23777
+ if (0 < width && 0 < height) {
23778
+ var oldRenderTexture = renderer.renderTexture.current;
23779
+ renderer.renderTexture.bind(renderTexture);
23780
+ var gl = renderer.gl;
23781
+ gl.readPixels(x0, y0, width, height, gl.RGBA, gl.UNSIGNED_BYTE, pixels);
23782
+ renderer.renderTexture.bind(oldRenderTexture);
23783
+ }
23664
23784
  return {
23665
23785
  width: width,
23666
23786
  height: height,
23667
23787
  array: pixels
23668
23788
  };
23669
23789
  };
23670
- UtilExtractor.toCanvas = function (pixels, scale, ignorePremutipliedAlpha) {
23790
+ UtilExtractor.toCanvas = function (pixels, scale, ignorePremutipliedAlpha, result) {
23671
23791
  var width = pixels.width;
23672
23792
  var height = pixels.height;
23673
23793
  var array = pixels.array;
23674
- var canvasRenderTarget = new pixi_js.utils.CanvasRenderTarget(width, height, 1);
23675
- var imageData = canvasRenderTarget.context.getImageData(0, 0, width, height);
23794
+ if (result == null) {
23795
+ result = new UtilExtractorCanvas(width, height);
23796
+ }
23797
+ else {
23798
+ result.resize(width, height);
23799
+ }
23800
+ if (width <= 0 || height <= 0) {
23801
+ return result;
23802
+ }
23803
+ var context = result.getContext();
23804
+ var element = result.getElement();
23805
+ if (context == null || element == null) {
23806
+ return result;
23807
+ }
23808
+ var imageData = context.getImageData(0, 0, width, height);
23676
23809
  if (ignorePremutipliedAlpha) {
23677
23810
  imageData.data.set(array);
23678
23811
  }
23679
23812
  else {
23680
23813
  pixi_js.Extract.arrayPostDivide(array, imageData.data);
23681
23814
  }
23682
- canvasRenderTarget.context.putImageData(imageData, 0, 0);
23815
+ context.putImageData(imageData, 0, 0);
23683
23816
  // Scale down
23684
23817
  if (scale != null && scale !== 1) {
23685
- canvasRenderTarget.context.scale(scale, scale);
23686
- canvasRenderTarget.context.drawImage(canvasRenderTarget.canvas, 0, 0);
23818
+ context.scale(scale, scale);
23819
+ context.drawImage(element, 0, 0);
23687
23820
  var scaledWidth = Math.floor(width * scale);
23688
23821
  var scaledHeight = Math.floor(height * scale);
23689
- var scaledImageData = canvasRenderTarget.context.getImageData(0, 0, scaledWidth, scaledHeight);
23690
- canvasRenderTarget.resize(scaledWidth, scaledHeight);
23691
- canvasRenderTarget.context.putImageData(scaledImageData, 0, 0);
23822
+ var scaledImageData = context.getImageData(0, 0, scaledWidth, scaledHeight);
23823
+ result.resize(scaledWidth, scaledHeight);
23824
+ context.putImageData(scaledImageData, 0, 0);
23692
23825
  }
23693
- return canvasRenderTarget;
23826
+ return result;
23694
23827
  };
23695
23828
  UtilExtractor.toBase64 = function (canvas, format, quality) {
23696
23829
  return canvas.toDataURL(format, quality);
@@ -23825,8 +23958,15 @@ var UtilExtract = /** @class */ (function () {
23825
23958
  // Create a render texture
23826
23959
  var target = options.target;
23827
23960
  var scale = target.transform.scale;
23828
- var width = Math.floor(target.width * scale.x);
23829
- var height = Math.floor(target.height * scale.y);
23961
+ var width = Math.ceil(target.width * scale.x);
23962
+ var height = Math.ceil(target.height * scale.y);
23963
+ if (width <= 0 || height <= 0) {
23964
+ return {
23965
+ width: width,
23966
+ height: height,
23967
+ array: new Uint8Array(0)
23968
+ };
23969
+ }
23830
23970
  var resolution = toResolution(options);
23831
23971
  var renderTexture = UtilExtract.WORK_RENDER_TEXTURE;
23832
23972
  if (renderTexture == null) {
@@ -23874,16 +24014,27 @@ var UtilExtract = /** @class */ (function () {
23874
24014
  var scale = toScale(pixels, options);
23875
24015
  return UtilExtractor.toCanvas(pixels, scale, ignorePremutipliedAlpha);
23876
24016
  };
24017
+ /**
24018
+ * Extracts Base64 data URL from the target.
24019
+ * This method internally creates a render texture and a canvas render target.
24020
+ * They are used to extract pixels from the target.
24021
+ * To free the allocated render texture and canvas render target, please call {@link destroy()}.
24022
+ *
24023
+ * @param options an extraction options
24024
+ * @returns extracted Base64 data URL
24025
+ */
23877
24026
  UtilExtract.base64 = function (options) {
23878
- var canvas = this.canvas(options);
23879
- try {
23880
- return UtilExtractor.toBase64(canvas.canvas, options.format, options.quality);
23881
- }
23882
- finally {
23883
- if (canvas) {
23884
- canvas.destroy();
23885
- }
24027
+ var _a, _b, _c;
24028
+ var pixels = this.pixels(options);
24029
+ var ignorePremutipliedAlpha = (_b = (_a = options.alpha) === null || _a === void 0 ? void 0 : _a.premultiplied) === null || _b === void 0 ? void 0 : _b.ignore;
24030
+ var scale = toScale(pixels, options);
24031
+ var canvas = ((_c = this.WORK_CANVAS) !== null && _c !== void 0 ? _c : (this.WORK_CANVAS = new UtilExtractorCanvas(pixels.width, pixels.height)));
24032
+ UtilExtractor.toCanvas(pixels, scale, ignorePremutipliedAlpha, canvas);
24033
+ var element = canvas.getElement();
24034
+ if (element != null) {
24035
+ return UtilExtractor.toBase64(element, options.format, options.quality);
23886
24036
  }
24037
+ return "data:,";
23887
24038
  };
23888
24039
  UtilExtract.file = function (options) {
23889
24040
  UtilFileDownloader.downloadUrl(options.filename, this.base64(options));
@@ -23897,6 +24048,11 @@ var UtilExtract = /** @class */ (function () {
23897
24048
  this.WORK_RENDER_TEXTURE = undefined;
23898
24049
  texture.destroy(true);
23899
24050
  }
24051
+ var canvas = this.WORK_CANVAS;
24052
+ if (canvas != null) {
24053
+ this.WORK_CANVAS = undefined;
24054
+ canvas.destroy();
24055
+ }
23900
24056
  };
23901
24057
  return UtilExtract;
23902
24058
  }());
@@ -34260,8 +34416,16 @@ var DImagePieceImpl = /** @class */ (function () {
34260
34416
  object.alpha = alpha;
34261
34417
  result = true;
34262
34418
  }
34419
+ if (!object.visible) {
34420
+ object.visible = true;
34421
+ result = true;
34422
+ }
34263
34423
  return result;
34264
34424
  }
34425
+ else if (object.visible) {
34426
+ object.visible = false;
34427
+ return true;
34428
+ }
34265
34429
  }
34266
34430
  }
34267
34431
  return false;
@@ -57491,6 +57655,10 @@ var DTableState = {
57491
57655
  * Cells of a right-most frozen column.
57492
57656
  */
57493
57657
  FROZEN_END: "FROZEN_END",
57658
+ /**
57659
+ * Rows with data
57660
+ */
57661
+ HAS_DATA: "HAS_DATA",
57494
57662
  /**
57495
57663
  * Header cells of sortable columns.
57496
57664
  */
@@ -57798,16 +57966,27 @@ var loadThemeWhite = function () {
57798
57966
  DThemes.setDefaultThemeClass(DThemeWhite);
57799
57967
  };
57800
57968
 
57969
+ var newSvgRoundedRect = function (x, y, width, height, fill, stroke, strokeWidth, strokeOpacity) {
57970
+ var sw = strokeWidth !== null && strokeWidth !== void 0 ? strokeWidth : 0;
57971
+ var o = sw * 0.5;
57972
+ var r = Math.max(0, 3 - o);
57973
+ var w = width - sw - r - r;
57974
+ var h = height - sw - r - r;
57975
+ x += o + r;
57976
+ y += o;
57977
+ return ("<path d=\"M".concat(x, ",").concat(y, " h").concat(w, " a").concat(r, ",").concat(r, " 0 0 1 ").concat(r, ",").concat(r, " v").concat(h, " a").concat(r, ",").concat(r, " 0 0 1 -").concat(r, ",").concat(r, " h-").concat(w, " a").concat(r, ",").concat(r, " 0 0 1 -").concat(r, ",-").concat(r, " v-").concat(h, " a").concat(r, ",").concat(r, " 0 0 1 ").concat(r, ",-").concat(r, "z\" fill=\"").concat(fill, "\"") +
57978
+ (stroke ? " stroke=\"".concat(stroke, "\"") : "") +
57979
+ (strokeWidth != null ? " stroke-width=\"".concat(strokeWidth, "\"") : "") +
57980
+ (strokeOpacity != null ? " stroke-opacity=\"".concat(strokeOpacity, "\"") : "") +
57981
+ " />");
57982
+ };
57983
+
57801
57984
  /*
57802
57985
  * Copyright (C) 2019 Toshiba Corporation
57803
57986
  * SPDX-License-Identifier: Apache-2.0
57804
57987
  */
57805
- // Material Design icons by Google.
57806
- // Apache license version 2.0.
57807
57988
  /* eslint-disable prettier/prettier */
57808
- DThemeWhiteAtlas.add("button_color_sample", 21, 21, "<g transform=\"scale(0.875,0.875)\">" +
57809
- "<path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z\" fill=\"#fff\"/>" +
57810
- "</g>");
57989
+ DThemeWhiteAtlas.add("button_color_sample", 21, 21, newSvgRoundedRect(3, 3, 15, 15, "#fff", "#eee", 1));
57811
57990
  /* eslint-enable prettier/prettier */
57812
57991
  var formatter$j = function (colorAndAlpha) {
57813
57992
  return "#".concat(UtilRgb.toCode(colorAndAlpha.color), " A").concat(colorAndAlpha.alpha.toFixed(2));
@@ -57818,7 +57997,7 @@ var DThemeWhiteButtonColor = /** @class */ (function (_super) {
57818
57997
  return _super !== null && _super.apply(this, arguments) || this;
57819
57998
  }
57820
57999
  DThemeWhiteButtonColor.prototype.getImageTintColor = function (state) {
57821
- return null;
58000
+ return 0xffffff;
57822
58001
  };
57823
58002
  DThemeWhiteButtonColor.prototype.getImageSource = function (state) {
57824
58003
  return DThemeWhiteAtlas.mappings.button_color_sample;
@@ -57856,25 +58035,35 @@ var DColorType = {
57856
58035
  STANDARD: 1
57857
58036
  };
57858
58037
 
58038
+ var isPatternInjected = false;
58039
+ var newSvgRoundedCheckerboard = function (width, height, color1, color2, stroke, strokeWidth, strokeOpacity) {
58040
+ var result = "";
58041
+ if (!isPatternInjected) {
58042
+ isPatternInjected = true;
58043
+ result =
58044
+ "<defs>" +
58045
+ "<pattern id=\"rounded-checkerboard-pattern\" patternUnits=\"userSpaceOnUse\" width=\"18\" height=\"18\">" +
58046
+ "<rect x=\"0\" y=\"0\" width=\"9\" height=\"9\" fill=\"".concat(color1, "\" />") +
58047
+ "<rect x=\"9\" y=\"0\" width=\"9\" height=\"9\" fill=\"".concat(color2, "\" />") +
58048
+ "<rect x=\"0\" y=\"9\" width=\"9\" height=\"9\" fill=\"".concat(color2, "\" />") +
58049
+ "<rect x=\"9\" y=\"9\" width=\"9\" height=\"9\" fill=\"".concat(color1, "\" />") +
58050
+ "</pattern>" +
58051
+ "</defs>";
58052
+ }
58053
+ result += newSvgRoundedRect(0, 0, width, height, "url(#rounded-checkerboard-pattern)", stroke, strokeWidth, strokeOpacity);
58054
+ return result;
58055
+ };
58056
+
58057
+ var newWhiteSvgRoundedCheckerboard = function (width, height, stroke, strokeWidth, strokeOpacity) {
58058
+ return newSvgRoundedCheckerboard(width, height, "#bfbfbf", "#a5a5a5", stroke, strokeWidth, strokeOpacity);
58059
+ };
58060
+
57859
58061
  /*
57860
58062
  * Copyright (C) 2019 Toshiba Corporation
57861
58063
  * SPDX-License-Identifier: Apache-2.0
57862
58064
  */
57863
- var makeCheckerboard$1 = function (width, height) {
57864
- var LIGHT = "#bfbfbf";
57865
- var DARK = "#a5a5a5";
57866
- var result = "<g>";
57867
- for (var ih = 0; ih < height; ++ih) {
57868
- for (var iw = 0; iw < width; ++iw) {
57869
- var color = (iw + ih) % 2 === 0 ? LIGHT : DARK;
57870
- result += "<rect x=\"".concat(9 * iw, "\" y=\"").concat(9 * ih, "\" width=\"9\" height=\"9\" fill=\"").concat(color, "\" />");
57871
- }
57872
- }
57873
- result += "</g>";
57874
- return result;
57875
- };
57876
58065
  /* eslint-disable prettier/prettier */
57877
- DThemeWhiteAtlas.add("picker_color_main", 236, 164, "<g>" +
58066
+ DThemeWhiteAtlas.add("picker_color_main", 234, 162, "<g>" +
57878
58067
  "<linearGradient id=\"fs7w3iusfdnb\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">" +
57879
58068
  "<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>" +
57880
58069
  "<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>" +
@@ -57883,13 +58072,11 @@ DThemeWhiteAtlas.add("picker_color_main", 236, 164, "<g>" +
57883
58072
  "<stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"0\"/>" +
57884
58073
  "<stop stop-color=\"#000000\" stop-opacity=\"1\" offset=\"1\"/>" +
57885
58074
  "</linearGradient>" +
57886
- "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"url(#fs7w3iusfdnb)\" />" +
57887
- "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"url(#2rfcfe9874bw)\" />" +
57888
- "</g>", 1, 1, 234, 162);
57889
- DThemeWhiteAtlas.add("picker_color_main_base", 236, 164, "<g>" +
57890
- "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />" +
57891
- "</g>", 1, 1, 234, 162);
57892
- DThemeWhiteAtlas.add("picker_color_alpha_checkerboard", 234, 18, makeCheckerboard$1(26, 2));
58075
+ newSvgRoundedRect(0, 0, 234, 162, "url(#fs7w3iusfdnb)") +
58076
+ newSvgRoundedRect(0, 0, 234, 162, "url(#2rfcfe9874bw)") +
58077
+ "</g>");
58078
+ DThemeWhiteAtlas.add("picker_color_main_base", 234, 162, "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />");
58079
+ DThemeWhiteAtlas.add("picker_color_alpha_checkerboard", 234, 18, newWhiteSvgRoundedCheckerboard(234, 18));
57893
58080
  DThemeWhiteAtlas.add("picker_color_alpha", 234, 18, "<g>" +
57894
58081
  "<linearGradient id=\"s48afbuh44\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">" +
57895
58082
  "<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>" +
@@ -57907,20 +58094,15 @@ DThemeWhiteAtlas.add("picker_color_base", 234, 18, "<g>" +
57907
58094
  "<stop stop-color=\"#FF00FF\" offset=\"0.833\"/>" +
57908
58095
  "<stop stop-color=\"#FF0000\" offset=\"1\"/>" +
57909
58096
  "</linearGradient>" +
57910
- "<rect x=\"0\" y=\"0\" width=\"234\" height=\"18\" fill=\"url(#ni2rbisdf3)\" />" +
58097
+ newSvgRoundedRect(0, 0, 234, 18, "url(#ni2rbisdf3)") +
57911
58098
  "</g>");
57912
58099
  DThemeWhiteAtlas.add("picker_color_base_pointer", 16.2, 31.8, "<rect x=\"4.5\" y=\"4.5\" width=\"7.2\" height=\"22.8\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />");
57913
58100
  DThemeWhiteAtlas.add("picker_color_pointer", 25.8, 25.8, "<circle cx=\"12.9\" cy=\"12.9\" r=\"4.8\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />" +
57914
58101
  "<circle cx=\"12.9\" cy=\"12.9\" r=\"7.2\" stroke=\"#ffffff\" stroke-width=\"2.4\" fill=\"none\" />");
57915
- DThemeWhiteAtlas.add("picker_color_recent_checkerboard", 36, 36, makeCheckerboard$1(4, 4), 9, 9, 18, 18);
57916
- DThemeWhiteAtlas.add("picker_color_recent", 36, 36, "<g>" +
57917
- "<rect x=\"0\" y=\"0\" width=\"36\" height=\"36\" fill=\"#fff\" />" +
57918
- "<path x=\"0\" y=\"0\" d=\"M9 9 h18 v18 h-18 v-18 m1 1 v16 h16 v-16 h-16 z\" fill=\"#eee\" />" +
57919
- "</g>", 9, 9, 18, 18);
57920
- DThemeWhiteAtlas.add("picker_color_sample_checkerboard", 45, 63, makeCheckerboard$1(5, 7));
57921
- DThemeWhiteAtlas.add("picker_color_sample", 47, 65, "<g>" +
57922
- "<rect x=\"0\" y=\"0\" width=\"47\" height=\"65\" fill=\"#fff\" />" +
57923
- "</g>", 1, 1, 45, 63);
58102
+ DThemeWhiteAtlas.add("picker_color_recent_checkerboard", 18, 18, newWhiteSvgRoundedCheckerboard(18, 18));
58103
+ DThemeWhiteAtlas.add("picker_color_recent", 18, 18, newSvgRoundedRect(0, 0, 18, 18, "#fff", "#eee", 1));
58104
+ DThemeWhiteAtlas.add("picker_color_sample_checkerboard", 42, 66, newWhiteSvgRoundedCheckerboard(42, 66, "#fff", 1, 0));
58105
+ DThemeWhiteAtlas.add("picker_color_sample", 42, 66, newSvgRoundedRect(0, 0, 42, 66, "#fff", "#eee", 1));
57924
58106
  DThemeWhiteAtlas.add("picker_color_anchor_outlined", 25.8, 25.8, "<circle cx=\"12.9\" cy=\"12.9\" r=\"8.4\" stroke=\"none\" fill=\"#ffffff\" />" +
57925
58107
  "<circle cx=\"12.9\" cy=\"12.9\" r=\"9.6\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />");
57926
58108
  DThemeWhiteAtlas.add("picker_color_anchor", 28.2, 28.2, "<circle cx=\"14.1\" cy=\"14.1\" r=\"6\" stroke=\"none\" fill=\"#ffffff\" />" +
@@ -57928,9 +58110,7 @@ DThemeWhiteAtlas.add("picker_color_anchor", 28.2, 28.2, "<circle cx=\"14.1\" cy=
57928
58110
  DThemeWhiteAtlas.add("picker_color_direction", 12, 30, "<path d=\"M0.6 25.8 L 12.0375 5.9895\" stroke=\"#5f5f5f\" stroke-width=\"1.2\" fill=\"none\" />" +
57929
58111
  "<path d=\"M8.5125 25.8 A 8.475 8.475 0 0 0 4.275 18.4605\" stroke=\"#5f5f5f\" stroke-width=\"1.2\" fill=\"none\" />" +
57930
58112
  "<rect x=\"0.6\" y=\"24.6\" width=\"11.4375\" height=\"1.2\" rx=\"0.6\" ry=\"0.6\" stroke=\"none\" fill=\"#5f5f5f\" />");
57931
- DThemeWhiteAtlas.add("picker_color_standard", 18, 18, "<g>" +
57932
- "<rect x=\"0\" y=\"0\" width=\"18\" height=\"18\" fill=\"#fff\" stroke-width=\"1\" stroke=\"#eee\" />" +
57933
- "</g>");
58113
+ DThemeWhiteAtlas.add("picker_color_standard", 18, 18, newSvgRoundedRect(0, 0, 18, 18, "#fff", "#eee", 1));
57934
58114
  /* eslint-enable prettier/prettier */
57935
58115
  var DThemeWhitePickerColor = /** @class */ (function (_super) {
57936
58116
  __extends(DThemeWhitePickerColor, _super);
@@ -58022,7 +58202,16 @@ var DThemeWhitePickerColor = /** @class */ (function (_super) {
58022
58202
  return this.getBaseMargin();
58023
58203
  };
58024
58204
  DThemeWhitePickerColor.prototype.getInputLabelWidth = function () {
58025
- return 15;
58205
+ return 18;
58206
+ };
58207
+ DThemeWhitePickerColor.prototype.getSampleWidth = function () {
58208
+ return 42;
58209
+ };
58210
+ DThemeWhitePickerColor.prototype.getSampleHeight = function () {
58211
+ return 66;
58212
+ };
58213
+ DThemeWhitePickerColor.prototype.getSampleMargin = function () {
58214
+ return this.getBaseMargin();
58026
58215
  };
58027
58216
  DThemeWhitePickerColor.prototype.getSampleCheckerboardOldTexture = function () {
58028
58217
  return DThemeWhiteAtlas.mappings.picker_color_sample_checkerboard;
@@ -58436,12 +58625,8 @@ var DColorGradientObservable = /** @class */ (function (_super) {
58436
58625
  * Copyright (C) 2019 Toshiba Corporation
58437
58626
  * SPDX-License-Identifier: Apache-2.0
58438
58627
  */
58439
- // Material Design icons by Google.
58440
- // Apache license version 2.0.
58441
58628
  /* eslint-disable prettier/prettier */
58442
- DThemeWhiteAtlas.add("button_color_gradient_sample", 21, 21, "<g transform=\"scale(0.875,0.875)\">" +
58443
- "<path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z\" fill=\"#fff\"/>" +
58444
- "</g>");
58629
+ DThemeWhiteAtlas.add("button_color_gradient_sample", 21, 21, newSvgRoundedRect(3, 3, 15, 15, "#fff", "#eee", 1));
58445
58630
  /* eslint-enable prettier/prettier */
58446
58631
  var formatter$i = function () {
58447
58632
  return "";
@@ -60622,8 +60807,13 @@ var DThemeWhiteTableBodyCells = /** @class */ (function () {
60622
60807
  return DThemeWhiteConstants.COLOR;
60623
60808
  };
60624
60809
  DThemeWhiteTableBodyCells.getAlpha = function (state) {
60625
- if (state.inEnabled) {
60626
- return 1.0;
60810
+ if (state.in(DTableState.HAS_DATA)) {
60811
+ if (state.inEnabled) {
60812
+ return 1.0;
60813
+ }
60814
+ else {
60815
+ return 0.5;
60816
+ }
60627
60817
  }
60628
60818
  return 0;
60629
60819
  };
@@ -68809,12 +68999,8 @@ var loadThemeDark = function () {
68809
68999
  * Copyright (C) 2019 Toshiba Corporation
68810
69000
  * SPDX-License-Identifier: Apache-2.0
68811
69001
  */
68812
- // Material Design icons by Google.
68813
- // Apache license version 2.0.
68814
69002
  /* eslint-disable prettier/prettier */
68815
- DThemeDarkAtlas.add("button_color_sample", 21, 21, "<g transform=\"scale(0.875,0.875)\">" +
68816
- "<path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z\" fill=\"#fff\"/>" +
68817
- "</g>");
69003
+ DThemeDarkAtlas.add("button_color_sample", 21, 21, newSvgRoundedRect(3, 3, 15, 15, "#fff", "#eee", 1));
68818
69004
  /* eslint-enable prettier/prettier */
68819
69005
  var formatter$8 = function (colorAndAlpha) {
68820
69006
  return "#".concat(UtilRgb.toCode(colorAndAlpha.color), " A").concat(colorAndAlpha.alpha.toFixed(2));
@@ -68825,7 +69011,7 @@ var DThemeDarkButtonColor = /** @class */ (function (_super) {
68825
69011
  return _super !== null && _super.apply(this, arguments) || this;
68826
69012
  }
68827
69013
  DThemeDarkButtonColor.prototype.getImageTintColor = function (state) {
68828
- return null;
69014
+ return 0xffffff;
68829
69015
  };
68830
69016
  DThemeDarkButtonColor.prototype.getImageSource = function (state) {
68831
69017
  return DThemeDarkAtlas.mappings.button_color_sample;
@@ -68854,25 +69040,16 @@ var DThemeDarkDialogColor = /** @class */ (function (_super) {
68854
69040
  return DThemeDarkDialogColor;
68855
69041
  }(DThemeDarkDialogFitted));
68856
69042
 
69043
+ var newDarkSvgRoundedCheckerboard = function (width, height, stroke, strokeWidth, strokeOpacity) {
69044
+ return newSvgRoundedCheckerboard(width, height, "#5f5f5f", "#454545", stroke, strokeWidth, strokeOpacity);
69045
+ };
69046
+
68857
69047
  /*
68858
69048
  * Copyright (C) 2019 Toshiba Corporation
68859
69049
  * SPDX-License-Identifier: Apache-2.0
68860
69050
  */
68861
- var makeCheckerboard = function (width, height) {
68862
- var LIGHT = "#5f5f5f";
68863
- var DARK = "#454545";
68864
- var result = "<g>";
68865
- for (var ih = 0; ih < height; ++ih) {
68866
- for (var iw = 0; iw < width; ++iw) {
68867
- var color = (iw + ih) % 2 === 0 ? LIGHT : DARK;
68868
- result += "<rect x=\"".concat(9 * iw, "\" y=\"").concat(9 * ih, "\" width=\"9\" height=\"9\" fill=\"").concat(color, "\" />");
68869
- }
68870
- }
68871
- result += "</g>";
68872
- return result;
68873
- };
68874
69051
  /* eslint-disable prettier/prettier */
68875
- DThemeDarkAtlas.add("picker_color_main", 236, 164, "<g>" +
69052
+ DThemeDarkAtlas.add("picker_color_main", 234, 162, "<g>" +
68876
69053
  "<linearGradient id=\"fs7w3iusfdnb\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">" +
68877
69054
  "<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>" +
68878
69055
  "<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>" +
@@ -68881,13 +69058,11 @@ DThemeDarkAtlas.add("picker_color_main", 236, 164, "<g>" +
68881
69058
  "<stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"0\"/>" +
68882
69059
  "<stop stop-color=\"#000000\" stop-opacity=\"1\" offset=\"1\"/>" +
68883
69060
  "</linearGradient>" +
68884
- "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"url(#fs7w3iusfdnb)\" />" +
68885
- "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"url(#2rfcfe9874bw)\" />" +
68886
- "</g>", 1, 1, 234, 162);
68887
- DThemeDarkAtlas.add("picker_color_main_base", 236, 164, "<g>" +
68888
- "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />" +
68889
- "</g>", 1, 1, 234, 162);
68890
- DThemeDarkAtlas.add("picker_color_alpha_checkerboard", 234, 18, makeCheckerboard(26, 2));
69061
+ newSvgRoundedRect(0, 0, 234, 162, "url(#fs7w3iusfdnb)") +
69062
+ newSvgRoundedRect(0, 0, 234, 162, "url(#2rfcfe9874bw)") +
69063
+ "</g>");
69064
+ DThemeDarkAtlas.add("picker_color_main_base", 234, 162, "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />");
69065
+ DThemeDarkAtlas.add("picker_color_alpha_checkerboard", 234, 18, newDarkSvgRoundedCheckerboard(234, 18));
68891
69066
  DThemeDarkAtlas.add("picker_color_alpha", 234, 18, "<g>" +
68892
69067
  "<linearGradient id=\"s48afbuh44\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">" +
68893
69068
  "<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>" +
@@ -68905,20 +69080,15 @@ DThemeDarkAtlas.add("picker_color_base", 234, 18, "<g>" +
68905
69080
  "<stop stop-color=\"#FF00FF\" offset=\"0.833\"/>" +
68906
69081
  "<stop stop-color=\"#FF0000\" offset=\"1\"/>" +
68907
69082
  "</linearGradient>" +
68908
- "<rect x=\"0\" y=\"0\" width=\"234\" height=\"18\" fill=\"url(#ni2rbisdf3)\" />" +
69083
+ newSvgRoundedRect(0, 0, 234, 18, "url(#ni2rbisdf3)") +
68909
69084
  "</g>");
68910
69085
  DThemeDarkAtlas.add("picker_color_base_pointer", 16.2, 31.8, "<rect x=\"4.5\" y=\"4.5\" width=\"7.2\" height=\"22.8\" stroke=\"#ffffff\" stroke-width=\"2.4\" fill=\"none\" />");
68911
69086
  DThemeDarkAtlas.add("picker_color_pointer", 25.8, 25.8, "<circle cx=\"12.9\" cy=\"12.9\" r=\"4.8\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />" +
68912
69087
  "<circle cx=\"12.9\" cy=\"12.9\" r=\"7.2\" stroke=\"#ffffff\" stroke-width=\"2.4\" fill=\"none\" />");
68913
- DThemeDarkAtlas.add("picker_color_recent_checkerboard", 36, 36, makeCheckerboard(4, 4), 9, 9, 18, 18);
68914
- DThemeDarkAtlas.add("picker_color_recent", 36, 36, "<g>" +
68915
- "<rect x=\"0\" y=\"0\" width=\"36\" height=\"36\" fill=\"#fff\" />" +
68916
- "<path x=\"0\" y=\"0\" d=\"M9 9 h18 v18 h-18 v-18 m1 1 v16 h16 v-16 h-16 z\" fill=\"#eee\" />" +
68917
- "</g>", 9, 9, 18, 18);
68918
- DThemeDarkAtlas.add("picker_color_sample_checkerboard", 45, 63, makeCheckerboard(5, 7));
68919
- DThemeDarkAtlas.add("picker_color_sample", 47, 65, "<g>" +
68920
- "<rect x=\"0\" y=\"0\" width=\"47\" height=\"65\" fill=\"#fff\" />" +
68921
- "</g>", 1, 1, 45, 63);
69088
+ DThemeDarkAtlas.add("picker_color_recent_checkerboard", 18, 18, newDarkSvgRoundedCheckerboard(18, 18));
69089
+ DThemeDarkAtlas.add("picker_color_recent", 18, 18, newSvgRoundedRect(0, 0, 18, 18, "#fff", "#eee", 1));
69090
+ DThemeDarkAtlas.add("picker_color_sample_checkerboard", 42, 66, newDarkSvgRoundedCheckerboard(42, 66, "#fff", 1, 0));
69091
+ DThemeDarkAtlas.add("picker_color_sample", 42, 66, newSvgRoundedRect(0, 0, 42, 66, "#fff", "#eee", 1));
68922
69092
  DThemeDarkAtlas.add("picker_color_anchor_outlined", 25.8, 25.8, "<circle cx=\"12.9\" cy=\"12.9\" r=\"8.4\" stroke=\"none\" fill=\"#ffffff\" />" +
68923
69093
  "<circle cx=\"12.9\" cy=\"12.9\" r=\"9.6\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />");
68924
69094
  DThemeDarkAtlas.add("picker_color_anchor", 28.2, 28.2, "<circle cx=\"14.1\" cy=\"14.1\" r=\"6\" stroke=\"none\" fill=\"#ffffff\" />" +
@@ -68926,9 +69096,7 @@ DThemeDarkAtlas.add("picker_color_anchor", 28.2, 28.2, "<circle cx=\"14.1\" cy=\
68926
69096
  DThemeDarkAtlas.add("picker_color_direction", 12, 30, "<path d=\"M0.6 25.8 L 12.0375 5.9895\" stroke=\"#5f5f5f\" stroke-width=\"1.2\" fill=\"none\" />" +
68927
69097
  "<path d=\"M8.5125 25.8 A 8.475 8.475 0 0 0 4.275 18.4605\" stroke=\"#5f5f5f\" stroke-width=\"1.2\" fill=\"none\" />" +
68928
69098
  "<rect x=\"0.6\" y=\"24.6\" width=\"11.4375\" height=\"1.2\" rx=\"0.6\" ry=\"0.6\" stroke=\"none\" fill=\"#5f5f5f\" />");
68929
- DThemeDarkAtlas.add("picker_color_standard", 18, 18, "<g>" +
68930
- "<rect x=\"0\" y=\"0\" width=\"18\" height=\"18\" fill=\"#fff\" stroke-width=\"1\" stroke=\"#eee\" />" +
68931
- "</g>");
69099
+ DThemeDarkAtlas.add("picker_color_standard", 18, 18, newSvgRoundedRect(0, 0, 18, 18, "#fff", "#eee", 1));
68932
69100
  /* eslint-enable prettier/prettier */
68933
69101
  var DThemeDarkPickerColor = /** @class */ (function (_super) {
68934
69102
  __extends(DThemeDarkPickerColor, _super);
@@ -69020,7 +69188,16 @@ var DThemeDarkPickerColor = /** @class */ (function (_super) {
69020
69188
  return this.getBaseMargin();
69021
69189
  };
69022
69190
  DThemeDarkPickerColor.prototype.getInputLabelWidth = function () {
69023
- return 15;
69191
+ return 18;
69192
+ };
69193
+ DThemeDarkPickerColor.prototype.getSampleWidth = function () {
69194
+ return 42;
69195
+ };
69196
+ DThemeDarkPickerColor.prototype.getSampleHeight = function () {
69197
+ return 66;
69198
+ };
69199
+ DThemeDarkPickerColor.prototype.getSampleMargin = function () {
69200
+ return this.getBaseMargin();
69024
69201
  };
69025
69202
  DThemeDarkPickerColor.prototype.getSampleCheckerboardOldTexture = function () {
69026
69203
  return DThemeDarkAtlas.mappings.picker_color_sample_checkerboard;
@@ -69115,12 +69292,8 @@ var loadThemeDarkEnUsButtonColor = function () {
69115
69292
  * Copyright (C) 2019 Toshiba Corporation
69116
69293
  * SPDX-License-Identifier: Apache-2.0
69117
69294
  */
69118
- // Material Design icons by Google.
69119
- // Apache license version 2.0.
69120
69295
  /* eslint-disable prettier/prettier */
69121
- DThemeDarkAtlas.add("button_color_gradient_sample", 21, 21, "<g transform=\"scale(0.875,0.875)\">" +
69122
- "<path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z\" fill=\"#fff\"/>" +
69123
- "</g>");
69296
+ DThemeDarkAtlas.add("button_color_gradient_sample", 21, 21, newSvgRoundedRect(3, 3, 15, 15, "#fff", "#eee", 1));
69124
69297
  /* eslint-enable prettier/prettier */
69125
69298
  var formatter$7 = function () {
69126
69299
  return "";
@@ -71203,8 +71376,13 @@ var DThemeDarkTableBodyCells = /** @class */ (function () {
71203
71376
  return DThemeDarkConstants.COLOR;
71204
71377
  };
71205
71378
  DThemeDarkTableBodyCells.getAlpha = function (state) {
71206
- if (state.inEnabled) {
71207
- return 1.0;
71379
+ if (state.in(DTableState.HAS_DATA)) {
71380
+ if (state.inEnabled) {
71381
+ return 1.0;
71382
+ }
71383
+ else {
71384
+ return 0.5;
71385
+ }
71208
71386
  }
71209
71387
  return 0;
71210
71388
  };
@@ -77361,10 +77539,11 @@ var DPickerColor = /** @class */ (function (_super) {
77361
77539
  });
77362
77540
  this._inputAndLabelAlpha = inputAndLabelAlpha;
77363
77541
  // Samples
77364
- var sampleWidth = (inputWidth - inputLabelWidth - inputMargin) * 0.5;
77365
- var sampleHeight = inputHeight + inputMargin + inputHeight;
77542
+ var sampleWidth = theme.getSampleWidth();
77543
+ var sampleHeight = theme.getSampleHeight();
77366
77544
  var sampleX = paddingLeft + (mainWidth - inputMargin) * 0.5 + inputMargin;
77367
77545
  var sampleY = inputY + (inputHeight + inputMargin + inputAndLabelAlpha.height - sampleHeight) * 0.5;
77546
+ var sampleMargin = theme.getSampleMargin();
77368
77547
  var sampleCurrentCheckerboardSprite = new pixi_js.Sprite(theme.getSampleCheckerboardOldTexture());
77369
77548
  this._sampleCurrentCheckerboardSprite = sampleCurrentCheckerboardSprite;
77370
77549
  sampleCurrentCheckerboardSprite.x = sampleX;
@@ -77391,7 +77570,7 @@ var DPickerColor = /** @class */ (function (_super) {
77391
77570
  this.addChild(sampleCurrentSprite);
77392
77571
  var sampleNewCheckerboardSprite = new pixi_js.Sprite(theme.getSampleCheckerboardNewTexture());
77393
77572
  this._sampleNewCheckerboardSprite = sampleNewCheckerboardSprite;
77394
- sampleNewCheckerboardSprite.x = sampleX + sampleWidth;
77573
+ sampleNewCheckerboardSprite.x = sampleX + sampleWidth + sampleMargin;
77395
77574
  sampleNewCheckerboardSprite.y = sampleY;
77396
77575
  sampleNewCheckerboardSprite.width = sampleWidth;
77397
77576
  sampleNewCheckerboardSprite.height = sampleHeight;
@@ -77399,7 +77578,7 @@ var DPickerColor = /** @class */ (function (_super) {
77399
77578
  this.addChild(sampleNewCheckerboardSprite);
77400
77579
  var sampleNewSprite = new pixi_js.Sprite(theme.getSampleNewTexture());
77401
77580
  this._sampleNewSprite = sampleNewSprite;
77402
- sampleNewSprite.x = sampleX + sampleWidth;
77581
+ sampleNewSprite.x = sampleX + sampleWidth + sampleMargin;
77403
77582
  sampleNewSprite.y = sampleY;
77404
77583
  sampleNewSprite.tint = this._new.color;
77405
77584
  sampleNewSprite.alpha = this._new.alpha;
@@ -96683,6 +96862,7 @@ var DTableBody = /** @class */ (function (_super) {
96683
96862
  // State
96684
96863
  var rowState = row.state;
96685
96864
  rowState.lock();
96865
+ rowState.add(DTableState.HAS_DATA);
96686
96866
  rowState.set(DTableState.SELECTABLE, isRowSelectable);
96687
96867
  rowState.set(DBaseState.ACTIVE, selection.contains(unmappedIndex));
96688
96868
  rowState.remove(DBaseState.DISABLED);
@@ -96698,7 +96878,7 @@ var DTableBody = /** @class */ (function (_super) {
96698
96878
  var rowState = row.state;
96699
96879
  rowState.lock();
96700
96880
  rowState.add(DBaseState.DISABLED);
96701
- rowState.removeAll(DTableState.SELECTABLE, DBaseState.ACTIVE);
96881
+ rowState.removeAll(DTableState.HAS_DATA, DTableState.SELECTABLE, DBaseState.ACTIVE);
96702
96882
  rowState.unlock();
96703
96883
  // Data
96704
96884
  row.unset();
@@ -96711,7 +96891,7 @@ var DTableBody = /** @class */ (function (_super) {
96711
96891
  var rowState = row.state;
96712
96892
  rowState.lock();
96713
96893
  rowState.add(DBaseState.DISABLED);
96714
- rowState.removeAll(DTableState.SELECTABLE, DBaseState.ACTIVE);
96894
+ rowState.removeAll(DTableState.HAS_DATA, DTableState.SELECTABLE, DBaseState.ACTIVE);
96715
96895
  rowState.unlock();
96716
96896
  // Data
96717
96897
  row.unset();
@@ -102973,6 +103153,7 @@ exports.UtilClickOutside = UtilClickOutside;
102973
103153
  exports.UtilClipboard = UtilClipboard;
102974
103154
  exports.UtilExtract = UtilExtract;
102975
103155
  exports.UtilExtractor = UtilExtractor;
103156
+ exports.UtilExtractorCanvas = UtilExtractorCanvas;
102976
103157
  exports.UtilFileAs = UtilFileAs;
102977
103158
  exports.UtilFileDownloader = UtilFileDownloader;
102978
103159
  exports.UtilFileOpener = UtilFileOpener;