@wcardinal/wcardinal-ui 0.442.0 → 0.443.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 (63) 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/wcardinal/ui/d-image-piece-impl.js +8 -0
  11. package/dist/wcardinal/ui/d-image-piece-impl.js.map +1 -1
  12. package/dist/wcardinal/ui/d-picker-color.js +5 -4
  13. package/dist/wcardinal/ui/d-picker-color.js.map +1 -1
  14. package/dist/wcardinal/ui/d-table-body.js +3 -2
  15. package/dist/wcardinal/ui/d-table-body.js.map +1 -1
  16. package/dist/wcardinal/ui/d-table-column-state.js.map +1 -1
  17. package/dist/wcardinal/ui/d-table-state.js +4 -0
  18. package/dist/wcardinal/ui/d-table-state.js.map +1 -1
  19. package/dist/wcardinal/ui/theme/common/new-svg-rounded-checkerboard.js +20 -0
  20. package/dist/wcardinal/ui/theme/common/new-svg-rounded-checkerboard.js.map +1 -0
  21. package/dist/wcardinal/ui/theme/common/new-svg-rounded-rect.js +15 -0
  22. package/dist/wcardinal/ui/theme/common/new-svg-rounded-rect.js.map +1 -0
  23. package/dist/wcardinal/ui/theme/dark/d-theme-dark-button-color-gradient.js +2 -5
  24. package/dist/wcardinal/ui/theme/dark/d-theme-dark-button-color-gradient.js.map +1 -1
  25. package/dist/wcardinal/ui/theme/dark/d-theme-dark-button-color.js +3 -6
  26. package/dist/wcardinal/ui/theme/dark/d-theme-dark-button-color.js.map +1 -1
  27. package/dist/wcardinal/ui/theme/dark/d-theme-dark-picker-color.js +24 -35
  28. package/dist/wcardinal/ui/theme/dark/d-theme-dark-picker-color.js.map +1 -1
  29. package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-cells.js +7 -2
  30. package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-cells.js.map +1 -1
  31. package/dist/wcardinal/ui/theme/dark/new-dark-svg-rounded-checkerboard.js +5 -0
  32. package/dist/wcardinal/ui/theme/dark/new-dark-svg-rounded-checkerboard.js.map +1 -0
  33. package/dist/wcardinal/ui/theme/white/d-theme-white-button-color-gradient.js +2 -5
  34. package/dist/wcardinal/ui/theme/white/d-theme-white-button-color-gradient.js.map +1 -1
  35. package/dist/wcardinal/ui/theme/white/d-theme-white-button-color.js +3 -6
  36. package/dist/wcardinal/ui/theme/white/d-theme-white-button-color.js.map +1 -1
  37. package/dist/wcardinal/ui/theme/white/d-theme-white-picker-color.js +24 -35
  38. package/dist/wcardinal/ui/theme/white/d-theme-white-picker-color.js.map +1 -1
  39. package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-cells.js +7 -2
  40. package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-cells.js.map +1 -1
  41. package/dist/wcardinal/ui/theme/white/new-white-svg-rounded-checkerboard.js +5 -0
  42. package/dist/wcardinal/ui/theme/white/new-white-svg-rounded-checkerboard.js.map +1 -0
  43. package/dist/wcardinal-ui-theme-dark-en-us.js +71 -49
  44. package/dist/wcardinal-ui-theme-dark-en-us.min.js +2 -2
  45. package/dist/wcardinal-ui-theme-dark-en-us.min.js.map +1 -1
  46. package/dist/wcardinal-ui-theme-dark-ja-jp.js +71 -49
  47. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +2 -2
  48. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js.map +1 -1
  49. package/dist/wcardinal-ui-theme-dark.js +71 -49
  50. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  51. package/dist/wcardinal-ui-theme-white-en-us.js +71 -49
  52. package/dist/wcardinal-ui-theme-white-en-us.min.js +2 -2
  53. package/dist/wcardinal-ui-theme-white-en-us.min.js.map +1 -1
  54. package/dist/wcardinal-ui-theme-white-ja-jp.js +71 -49
  55. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +2 -2
  56. package/dist/wcardinal-ui-theme-white-ja-jp.min.js.map +1 -1
  57. package/dist/wcardinal-ui-theme-white.js +71 -49
  58. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  59. package/dist/wcardinal-ui.cjs.js +127 -103
  60. package/dist/wcardinal-ui.js +21 -7
  61. package/dist/wcardinal-ui.min.js +2 -2
  62. package/dist/wcardinal-ui.min.js.map +1 -1
  63. package/package.json +1 -1
@@ -6,12 +6,9 @@ import { __extends } from "tslib";
6
6
  import { DColorGradientObservable } from "../../d-color-gradient-observable";
7
7
  import { DThemeWhiteAtlas } from "./d-theme-white-atlas";
8
8
  import { DThemeWhiteButton } from "./d-theme-white-button";
9
- // Material Design icons by Google.
10
- // Apache license version 2.0.
9
+ import { newSvgRoundedRect } from "../common/new-svg-rounded-rect";
11
10
  /* eslint-disable prettier/prettier */
12
- DThemeWhiteAtlas.add("button_color_gradient_sample", 21, 21, "<g transform=\"scale(0.875,0.875)\">" +
13
- "<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\"/>" +
14
- "</g>");
11
+ DThemeWhiteAtlas.add("button_color_gradient_sample", 21, 21, newSvgRoundedRect(3, 3, 15, 15, "#fff", "#eee", 1));
15
12
  /* eslint-enable prettier/prettier */
16
13
  var formatter = function () {
17
14
  return "";
@@ -1 +1 @@
1
- {"version":3,"file":"d-theme-white-button-color-gradient.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-button-color-gradient.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,mCAAmC;AACnC,8BAA8B;AAC9B,sCAAsC;AACtC,gBAAgB,CAAC,GAAG,CAAC,8BAA8B,EAAE,EAAE,EAAE,EAAE,EAC1D,sCAAoC;IACnC,0GAAsG;IACvG,MAAM,CACN,CAAC;AACF,qCAAqC;AAErC,IAAM,SAAS,GAAG;IACjB,OAAO,EAAE,CAAC;AACX,CAAC,CAAC;AAEF;IACS,kDAA2C;IADpD;;IAmBA,CAAC;IAfA,2DAAkB,GAAlB;QACC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC/D,CAAC;IAED,yDAAgB,GAAhB;QACC,OAAO,SAAS,CAAC;IAClB,CAAC;IAED,qDAAY,GAAZ;QACC,OAAO,IAAI,wBAAwB,EAAE,CAAC;IACvC,CAAC;IAED,yDAAgB,GAAhB;QACC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACrB,CAAC;IACF,qCAAC;AAAD,CAAC,AAnBD,CACS,iBAAiB,GAkBzB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Texture } from \"pixi.js\";\nimport { DButtonColorGradient, DThemeButtonColorGradient } from \"../../d-button-color-gradient\";\nimport { DColorGradientObservable } from \"../../d-color-gradient-observable\";\nimport { DStateAwareOrValueMightBe } from \"../../d-state-aware\";\nimport { DThemeWhiteAtlas } from \"./d-theme-white-atlas\";\nimport { DThemeWhiteButton } from \"./d-theme-white-button\";\n\n// Material Design icons by Google.\n// Apache license version 2.0.\n/* eslint-disable prettier/prettier */\nDThemeWhiteAtlas.add(\"button_color_gradient_sample\", 21, 21,\n\t`<g transform=\"scale(0.875,0.875)\">` +\n\t\t`<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\"/>` +\n\t`</g>`\n);\n/* eslint-enable prettier/prettier */\n\nconst formatter = (): string => {\n\treturn \"\";\n};\n\nexport class DThemeWhiteButtonColorGradient\n\textends DThemeWhiteButton<DColorGradientObservable>\n\timplements DThemeButtonColorGradient\n{\n\tgetViewBaseTexture(): Texture | null {\n\t\treturn DThemeWhiteAtlas.mappings.button_color_gradient_sample;\n\t}\n\n\tgetTextFormatter(): (value: DColorGradientObservable, caller: DButtonColorGradient) => string {\n\t\treturn formatter;\n\t}\n\n\tnewTextValue(): DStateAwareOrValueMightBe<DColorGradientObservable> {\n\t\treturn new DColorGradientObservable();\n\t}\n\n\tgetCheckerColors(): [number, number] {\n\t\treturn [0.75, 0.65];\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-theme-white-button-color-gradient.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-button-color-gradient.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,sCAAsC;AACtC,gBAAgB,CAAC,GAAG,CAAC,8BAA8B,EAAE,EAAE,EAAE,EAAE,EAC1D,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAClD,CAAC;AACF,qCAAqC;AAErC,IAAM,SAAS,GAAG;IACjB,OAAO,EAAE,CAAC;AACX,CAAC,CAAC;AAEF;IACS,kDAA2C;IADpD;;IAmBA,CAAC;IAfA,2DAAkB,GAAlB;QACC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC/D,CAAC;IAED,yDAAgB,GAAhB;QACC,OAAO,SAAS,CAAC;IAClB,CAAC;IAED,qDAAY,GAAZ;QACC,OAAO,IAAI,wBAAwB,EAAE,CAAC;IACvC,CAAC;IAED,yDAAgB,GAAhB;QACC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACrB,CAAC;IACF,qCAAC;AAAD,CAAC,AAnBD,CACS,iBAAiB,GAkBzB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Texture } from \"pixi.js\";\nimport { DButtonColorGradient, DThemeButtonColorGradient } from \"../../d-button-color-gradient\";\nimport { DColorGradientObservable } from \"../../d-color-gradient-observable\";\nimport { DStateAwareOrValueMightBe } from \"../../d-state-aware\";\nimport { DThemeWhiteAtlas } from \"./d-theme-white-atlas\";\nimport { DThemeWhiteButton } from \"./d-theme-white-button\";\nimport { newSvgRoundedRect } from \"../common/new-svg-rounded-rect\";\n\n/* eslint-disable prettier/prettier */\nDThemeWhiteAtlas.add(\"button_color_gradient_sample\", 21, 21,\n\tnewSvgRoundedRect(3, 3, 15, 15, \"#fff\", \"#eee\", 1)\n);\n/* eslint-enable prettier/prettier */\n\nconst formatter = (): string => {\n\treturn \"\";\n};\n\nexport class DThemeWhiteButtonColorGradient\n\textends DThemeWhiteButton<DColorGradientObservable>\n\timplements DThemeButtonColorGradient\n{\n\tgetViewBaseTexture(): Texture | null {\n\t\treturn DThemeWhiteAtlas.mappings.button_color_gradient_sample;\n\t}\n\n\tgetTextFormatter(): (value: DColorGradientObservable, caller: DButtonColorGradient) => string {\n\t\treturn formatter;\n\t}\n\n\tnewTextValue(): DStateAwareOrValueMightBe<DColorGradientObservable> {\n\t\treturn new DColorGradientObservable();\n\t}\n\n\tgetCheckerColors(): [number, number] {\n\t\treturn [0.75, 0.65];\n\t}\n}\n"]}
@@ -6,12 +6,9 @@ import { __extends } from "tslib";
6
6
  import { UtilRgb } from "../../util/util-rgb";
7
7
  import { DThemeWhiteAtlas } from "./d-theme-white-atlas";
8
8
  import { DThemeWhiteButton } from "./d-theme-white-button";
9
- // Material Design icons by Google.
10
- // Apache license version 2.0.
9
+ import { newSvgRoundedRect } from "../common/new-svg-rounded-rect";
11
10
  /* eslint-disable prettier/prettier */
12
- DThemeWhiteAtlas.add("button_color_sample", 21, 21, "<g transform=\"scale(0.875,0.875)\">" +
13
- "<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\"/>" +
14
- "</g>");
11
+ DThemeWhiteAtlas.add("button_color_sample", 21, 21, newSvgRoundedRect(3, 3, 15, 15, "#fff", "#eee", 1));
15
12
  /* eslint-enable prettier/prettier */
16
13
  var formatter = function (colorAndAlpha) {
17
14
  return "#".concat(UtilRgb.toCode(colorAndAlpha.color), " A").concat(colorAndAlpha.alpha.toFixed(2));
@@ -22,7 +19,7 @@ var DThemeWhiteButtonColor = /** @class */ (function (_super) {
22
19
  return _super !== null && _super.apply(this, arguments) || this;
23
20
  }
24
21
  DThemeWhiteButtonColor.prototype.getImageTintColor = function (state) {
25
- return null;
22
+ return 0xffffff;
26
23
  };
27
24
  DThemeWhiteButtonColor.prototype.getImageSource = function (state) {
28
25
  return DThemeWhiteAtlas.mappings.button_color_sample;
@@ -1 +1 @@
1
- {"version":3,"file":"d-theme-white-button-color.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-button-color.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAOH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,mCAAmC;AACnC,8BAA8B;AAC9B,sCAAsC;AACtC,gBAAgB,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,EAAE,EAAE,EACjD,sCAAoC;IACnC,0GAAsG;IACvG,MAAM,CACN,CAAC;AACF,qCAAqC;AAErC,IAAM,SAAS,GAAG,UAAC,aAA6B;IAC/C,OAAO,WAAI,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,eAAK,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,CAAC;AACrF,CAAC,CAAC;AAEF;IACS,0CAAiC;IAD1C;;IAsBA,CAAC;IAlBA,kDAAiB,GAAjB,UAAkB,KAAoB;QACrC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,+CAAc,GAAd,UAAe,KAAoB;QAClC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACtD,CAAC;IAED,iDAAgB,GAAhB;QACC,OAAO,SAAS,CAAC;IAClB,CAAC;IAED,6CAAY,GAAZ;QACC,OAAO;YACN,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,CAAC;SACR,CAAC;IACH,CAAC;IACF,6BAAC;AAAD,CAAC,AAtBD,CACS,iBAAiB,GAqBzB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Texture } from \"pixi.js\";\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DButtonColor, DThemeButtonColor } from \"../../d-button-color\";\nimport { DColorAndAlpha } from \"../../d-color-and-alpha\";\nimport { DStateAwareOrValueMightBe } from \"../../d-state-aware\";\nimport { UtilRgb } from \"../../util/util-rgb\";\nimport { DThemeWhiteAtlas } from \"./d-theme-white-atlas\";\nimport { DThemeWhiteButton } from \"./d-theme-white-button\";\n\n// Material Design icons by Google.\n// Apache license version 2.0.\n/* eslint-disable prettier/prettier */\nDThemeWhiteAtlas.add(\"button_color_sample\", 21, 21,\n\t`<g transform=\"scale(0.875,0.875)\">` +\n\t\t`<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\"/>` +\n\t`</g>`\n);\n/* eslint-enable prettier/prettier */\n\nconst formatter = (colorAndAlpha: DColorAndAlpha): string => {\n\treturn `#${UtilRgb.toCode(colorAndAlpha.color)} A${colorAndAlpha.alpha.toFixed(2)}`;\n};\n\nexport class DThemeWhiteButtonColor\n\textends DThemeWhiteButton<DColorAndAlpha>\n\timplements DThemeButtonColor\n{\n\tgetImageTintColor(state: DBaseStateSet): number | null {\n\t\treturn null;\n\t}\n\n\tgetImageSource(state: DBaseStateSet): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.button_color_sample;\n\t}\n\n\tgetTextFormatter(): (value: DColorAndAlpha, caller: DButtonColor) => string {\n\t\treturn formatter;\n\t}\n\n\tnewTextValue(): DStateAwareOrValueMightBe<DColorAndAlpha> {\n\t\treturn {\n\t\t\tcolor: 0xffffff,\n\t\t\talpha: 1\n\t\t};\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-theme-white-button-color.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-button-color.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAOH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,sCAAsC;AACtC,gBAAgB,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,EAAE,EAAE,EACjD,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAClD,CAAC;AACF,qCAAqC;AAErC,IAAM,SAAS,GAAG,UAAC,aAA6B;IAC/C,OAAO,WAAI,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,eAAK,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,CAAC;AACrF,CAAC,CAAC;AAEF;IACS,0CAAiC;IAD1C;;IAsBA,CAAC;IAlBA,kDAAiB,GAAjB,UAAkB,KAAoB;QACrC,OAAO,QAAQ,CAAC;IACjB,CAAC;IAED,+CAAc,GAAd,UAAe,KAAoB;QAClC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACtD,CAAC;IAED,iDAAgB,GAAhB;QACC,OAAO,SAAS,CAAC;IAClB,CAAC;IAED,6CAAY,GAAZ;QACC,OAAO;YACN,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,CAAC;SACR,CAAC;IACH,CAAC;IACF,6BAAC;AAAD,CAAC,AAtBD,CACS,iBAAiB,GAqBzB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Texture } from \"pixi.js\";\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DButtonColor, DThemeButtonColor } from \"../../d-button-color\";\nimport { DColorAndAlpha } from \"../../d-color-and-alpha\";\nimport { DStateAwareOrValueMightBe } from \"../../d-state-aware\";\nimport { UtilRgb } from \"../../util/util-rgb\";\nimport { DThemeWhiteAtlas } from \"./d-theme-white-atlas\";\nimport { DThemeWhiteButton } from \"./d-theme-white-button\";\nimport { newSvgRoundedRect } from \"../common/new-svg-rounded-rect\";\n\n/* eslint-disable prettier/prettier */\nDThemeWhiteAtlas.add(\"button_color_sample\", 21, 21,\n\tnewSvgRoundedRect(3, 3, 15, 15, \"#fff\", \"#eee\", 1)\n);\n/* eslint-enable prettier/prettier */\n\nconst formatter = (colorAndAlpha: DColorAndAlpha): string => {\n\treturn `#${UtilRgb.toCode(colorAndAlpha.color)} A${colorAndAlpha.alpha.toFixed(2)}`;\n};\n\nexport class DThemeWhiteButtonColor\n\textends DThemeWhiteButton<DColorAndAlpha>\n\timplements DThemeButtonColor\n{\n\tgetImageTintColor(state: DBaseStateSet): number | null {\n\t\treturn 0xffffff;\n\t}\n\n\tgetImageSource(state: DBaseStateSet): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.button_color_sample;\n\t}\n\n\tgetTextFormatter(): (value: DColorAndAlpha, caller: DButtonColor) => string {\n\t\treturn formatter;\n\t}\n\n\tnewTextValue(): DStateAwareOrValueMightBe<DColorAndAlpha> {\n\t\treturn {\n\t\t\tcolor: 0xffffff,\n\t\t\talpha: 1\n\t\t};\n\t}\n}\n"]}
@@ -6,21 +6,10 @@ import { __extends } from "tslib";
6
6
  import { DBaseInteractive } from "../../d-base-interactive";
7
7
  import { DThemeWhiteAtlas } from "./d-theme-white-atlas";
8
8
  import { DThemeWhiteBase } from "./d-theme-white-base";
9
- var makeCheckerboard = function (width, height) {
10
- var LIGHT = "#bfbfbf";
11
- var DARK = "#a5a5a5";
12
- var result = "<g>";
13
- for (var ih = 0; ih < height; ++ih) {
14
- for (var iw = 0; iw < width; ++iw) {
15
- var color = (iw + ih) % 2 === 0 ? LIGHT : DARK;
16
- result += "<rect x=\"".concat(9 * iw, "\" y=\"").concat(9 * ih, "\" width=\"9\" height=\"9\" fill=\"").concat(color, "\" />");
17
- }
18
- }
19
- result += "</g>";
20
- return result;
21
- };
9
+ import { newSvgRoundedRect } from "../common/new-svg-rounded-rect";
10
+ import { newWhiteSvgRoundedCheckerboard } from "./new-white-svg-rounded-checkerboard";
22
11
  /* eslint-disable prettier/prettier */
23
- DThemeWhiteAtlas.add("picker_color_main", 236, 164, "<g>" +
12
+ DThemeWhiteAtlas.add("picker_color_main", 234, 162, "<g>" +
24
13
  "<linearGradient id=\"fs7w3iusfdnb\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">" +
25
14
  "<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>" +
26
15
  "<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>" +
@@ -29,13 +18,11 @@ DThemeWhiteAtlas.add("picker_color_main", 236, 164, "<g>" +
29
18
  "<stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"0\"/>" +
30
19
  "<stop stop-color=\"#000000\" stop-opacity=\"1\" offset=\"1\"/>" +
31
20
  "</linearGradient>" +
32
- "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"url(#fs7w3iusfdnb)\" />" +
33
- "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"url(#2rfcfe9874bw)\" />" +
34
- "</g>", 1, 1, 234, 162);
35
- DThemeWhiteAtlas.add("picker_color_main_base", 236, 164, "<g>" +
36
- "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />" +
37
- "</g>", 1, 1, 234, 162);
38
- DThemeWhiteAtlas.add("picker_color_alpha_checkerboard", 234, 18, makeCheckerboard(26, 2));
21
+ newSvgRoundedRect(0, 0, 234, 162, "url(#fs7w3iusfdnb)") +
22
+ newSvgRoundedRect(0, 0, 234, 162, "url(#2rfcfe9874bw)") +
23
+ "</g>");
24
+ DThemeWhiteAtlas.add("picker_color_main_base", 234, 162, "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />");
25
+ DThemeWhiteAtlas.add("picker_color_alpha_checkerboard", 234, 18, newWhiteSvgRoundedCheckerboard(234, 18));
39
26
  DThemeWhiteAtlas.add("picker_color_alpha", 234, 18, "<g>" +
40
27
  "<linearGradient id=\"s48afbuh44\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">" +
41
28
  "<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>" +
@@ -53,20 +40,15 @@ DThemeWhiteAtlas.add("picker_color_base", 234, 18, "<g>" +
53
40
  "<stop stop-color=\"#FF00FF\" offset=\"0.833\"/>" +
54
41
  "<stop stop-color=\"#FF0000\" offset=\"1\"/>" +
55
42
  "</linearGradient>" +
56
- "<rect x=\"0\" y=\"0\" width=\"234\" height=\"18\" fill=\"url(#ni2rbisdf3)\" />" +
43
+ newSvgRoundedRect(0, 0, 234, 18, "url(#ni2rbisdf3)") +
57
44
  "</g>");
58
45
  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\" />");
59
46
  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\" />" +
60
47
  "<circle cx=\"12.9\" cy=\"12.9\" r=\"7.2\" stroke=\"#ffffff\" stroke-width=\"2.4\" fill=\"none\" />");
61
- DThemeWhiteAtlas.add("picker_color_recent_checkerboard", 36, 36, makeCheckerboard(4, 4), 9, 9, 18, 18);
62
- DThemeWhiteAtlas.add("picker_color_recent", 36, 36, "<g>" +
63
- "<rect x=\"0\" y=\"0\" width=\"36\" height=\"36\" fill=\"#fff\" />" +
64
- "<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\" />" +
65
- "</g>", 9, 9, 18, 18);
66
- DThemeWhiteAtlas.add("picker_color_sample_checkerboard", 45, 63, makeCheckerboard(5, 7));
67
- DThemeWhiteAtlas.add("picker_color_sample", 47, 65, "<g>" +
68
- "<rect x=\"0\" y=\"0\" width=\"47\" height=\"65\" fill=\"#fff\" />" +
69
- "</g>", 1, 1, 45, 63);
48
+ DThemeWhiteAtlas.add("picker_color_recent_checkerboard", 18, 18, newWhiteSvgRoundedCheckerboard(18, 18));
49
+ DThemeWhiteAtlas.add("picker_color_recent", 18, 18, newSvgRoundedRect(0, 0, 18, 18, "#fff", "#eee", 1));
50
+ DThemeWhiteAtlas.add("picker_color_sample_checkerboard", 42, 66, newWhiteSvgRoundedCheckerboard(42, 66, "#fff", 1, 0));
51
+ DThemeWhiteAtlas.add("picker_color_sample", 42, 66, newSvgRoundedRect(0, 0, 42, 66, "#fff", "#eee", 1));
70
52
  DThemeWhiteAtlas.add("picker_color_anchor_outlined", 25.8, 25.8, "<circle cx=\"12.9\" cy=\"12.9\" r=\"8.4\" stroke=\"none\" fill=\"#ffffff\" />" +
71
53
  "<circle cx=\"12.9\" cy=\"12.9\" r=\"9.6\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />");
72
54
  DThemeWhiteAtlas.add("picker_color_anchor", 28.2, 28.2, "<circle cx=\"14.1\" cy=\"14.1\" r=\"6\" stroke=\"none\" fill=\"#ffffff\" />" +
@@ -74,9 +56,7 @@ DThemeWhiteAtlas.add("picker_color_anchor", 28.2, 28.2, "<circle cx=\"14.1\" cy=
74
56
  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\" />" +
75
57
  "<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\" />" +
76
58
  "<rect x=\"0.6\" y=\"24.6\" width=\"11.4375\" height=\"1.2\" rx=\"0.6\" ry=\"0.6\" stroke=\"none\" fill=\"#5f5f5f\" />");
77
- DThemeWhiteAtlas.add("picker_color_standard", 18, 18, "<g>" +
78
- "<rect x=\"0\" y=\"0\" width=\"18\" height=\"18\" fill=\"#fff\" stroke-width=\"1\" stroke=\"#eee\" />" +
79
- "</g>");
59
+ DThemeWhiteAtlas.add("picker_color_standard", 18, 18, newSvgRoundedRect(0, 0, 18, 18, "#fff", "#eee", 1));
80
60
  /* eslint-enable prettier/prettier */
81
61
  var DThemeWhitePickerColor = /** @class */ (function (_super) {
82
62
  __extends(DThemeWhitePickerColor, _super);
@@ -168,7 +148,16 @@ var DThemeWhitePickerColor = /** @class */ (function (_super) {
168
148
  return this.getBaseMargin();
169
149
  };
170
150
  DThemeWhitePickerColor.prototype.getInputLabelWidth = function () {
171
- return 15;
151
+ return 18;
152
+ };
153
+ DThemeWhitePickerColor.prototype.getSampleWidth = function () {
154
+ return 42;
155
+ };
156
+ DThemeWhitePickerColor.prototype.getSampleHeight = function () {
157
+ return 66;
158
+ };
159
+ DThemeWhitePickerColor.prototype.getSampleMargin = function () {
160
+ return this.getBaseMargin();
172
161
  };
173
162
  DThemeWhitePickerColor.prototype.getSampleCheckerboardOldTexture = function () {
174
163
  return DThemeWhiteAtlas.mappings.picker_color_sample_checkerboard;
@@ -1 +1 @@
1
- {"version":3,"file":"d-theme-white-picker-color.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-picker-color.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,IAAM,gBAAgB,GAAG,UAAC,KAAa,EAAE,MAAc;IACtD,IAAM,KAAK,GAAG,SAAS,CAAC;IACxB,IAAM,IAAI,GAAG,SAAS,CAAC;IACvB,IAAI,MAAM,GAAG,KAAK,CAAC;IACnB,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,MAAM,EAAE,EAAE,EAAE,EAAE;QACnC,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,EAAE;YAClC,IAAM,KAAK,GAAG,CA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AQ,CAAC,mBAAmB,CAAC;IACtD,CAAC;IAED,oDAAmB,GAAnB;QACC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACtD,CAAC;IAED,sDAAqB,GAArB;QACC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,sDAAqB,GAArB;QACC,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC;IAC7B,CAAC;IAED,uDAAsB,GAAtB;QACC,OAAO,IAAI,CAAC,qBAAqB,EAAE,CAAC;IACrC,CAAC;IAED,uDAAsB,GAAtB;QACC,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC;IAC7B,CAAC;IAED,mDAAkB,GAAlB;QACC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACxD,CAAC;IAED,mDAAkB,GAAlB,UAAmB,KAAoB;QACtC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,+CAAc,GAAd,UAAe,KAAoB;QAClC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,+CAAc,GAAd;QACC,OAAO,gBAAgB,CAAC,QAAQ,CAAC;IAClC,CAAC;IAED,yCAAQ,GAAR,UAAS,KAAoB;QAC5B,iBAAM,QAAQ,YAAC,KAAK,CAAC,CAAC;QACtB,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC;IAC3B,CAAC;IAGF,6BAAC;AAAD,CAAC,AA3KD,CAAqD,eAAe,GA2KnE","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Texture } from \"pixi.js\";\nimport { DBaseInteractive } from \"../../d-base-interactive\";\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DThemePickerColor } from \"../../d-picker-color\";\nimport { DThemeWhiteAtlas } from \"./d-theme-white-atlas\";\nimport { DThemeWhiteBase } from \"./d-theme-white-base\";\nimport { DColorType } from \"../../d-color-type\";\n\nconst makeCheckerboard = (width: number, height: number): string => {\n\tconst LIGHT = \"#bfbfbf\";\n\tconst DARK = \"#a5a5a5\";\n\tlet result = `<g>`;\n\tfor (let ih = 0; ih < height; ++ih) {\n\t\tfor (let iw = 0; iw < width; ++iw) {\n\t\t\tconst color = (iw + ih) % 2 === 0 ? LIGHT : DARK;\n\t\t\tresult += `<rect x=\"${9 * iw}\" y=\"${9 * ih}\" width=\"9\" height=\"9\" fill=\"${color}\" />`;\n\t\t}\n\t}\n\tresult += \"</g>\";\n\treturn result;\n};\n\n/* eslint-disable prettier/prettier */\nDThemeWhiteAtlas.add(\"picker_color_main\", 236, 164,\n\t`<g>` +\n\t\t`<linearGradient id=\"fs7w3iusfdnb\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\t`<linearGradient id=\"2rfcfe9874bw\" x1=\"0%\" y1=\"0%\" x2=\"0%\" y2=\"100%\">` +\n\t\t\t`<stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#000000\" stop-opacity=\"1\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"url(#fs7w3iusfdnb)\" />` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"url(#2rfcfe9874bw)\" />` +\n\t`</g>`\n\t, 1, 1, 234, 162);\n\nDThemeWhiteAtlas.add(\"picker_color_main_base\", 236, 164,\n\t`<g>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />` +\n\t`</g>`\n, 1, 1, 234, 162);\n\nDThemeWhiteAtlas.add(\"picker_color_alpha_checkerboard\", 234, 18, makeCheckerboard(26, 2));\n\nDThemeWhiteAtlas.add(\"picker_color_alpha\", 234, 18,\n\t`<g>` +\n\t\t`<linearGradient id=\"s48afbuh44\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"234\" height=\"18\" fill=\"url(#s48afbuh44)\" />` +\n\t`</g>`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_base\", 234, 18,\n\t`<g>` +\n\t\t`<linearGradient id=\"ni2rbisdf3\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">` +\n\t\t\t`<stop stop-color=\"#FF0000\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#FFFF00\" offset=\"0.167\"/>` +\n\t\t\t`<stop stop-color=\"#00FF00\" offset=\"0.333\"/>` +\n\t\t\t`<stop stop-color=\"#00FFFF\" offset=\"0.5\"/>` +\n\t\t\t`<stop stop-color=\"#0000FF\" offset=\"0.667\"/>` +\n\t\t\t`<stop stop-color=\"#FF00FF\" offset=\"0.833\"/>` +\n\t\t\t`<stop stop-color=\"#FF0000\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"234\" height=\"18\" fill=\"url(#ni2rbisdf3)\" />` +\n\t`</g>`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_base_pointer\", 16.2, 31.8,\n\t`<rect x=\"4.5\" y=\"4.5\" width=\"7.2\" height=\"22.8\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_pointer\", 25.8, 25.8,\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"4.8\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />` +\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"7.2\" stroke=\"#ffffff\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_recent_checkerboard\", 36, 36, makeCheckerboard(4, 4), 9, 9, 18, 18);\n\nDThemeWhiteAtlas.add(\"picker_color_recent\", 36, 36,\n\t`<g>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"36\" height=\"36\" fill=\"#fff\" />` +\n\t\t`<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\" />` +\n\t`</g>`\n, 9, 9, 18, 18);\n\nDThemeWhiteAtlas.add(\"picker_color_sample_checkerboard\", 45, 63, makeCheckerboard(5, 7));\n\nDThemeWhiteAtlas.add(\"picker_color_sample\", 47, 65,\n\t`<g>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"47\" height=\"65\" fill=\"#fff\" />` +\n\t`</g>`\n, 1, 1, 45, 63);\n\nDThemeWhiteAtlas.add(\"picker_color_anchor_outlined\", 25.8, 25.8,\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"8.4\" stroke=\"none\" fill=\"#ffffff\" />` +\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"9.6\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_anchor\", 28.2, 28.2,\n\t`<circle cx=\"14.1\" cy=\"14.1\" r=\"6\" stroke=\"none\" fill=\"#ffffff\" />` +\n\t`<circle cx=\"14.1\" cy=\"14.1\" r=\"7.2\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_direction\", 12, 30,\n\t`<path d=\"M0.6 25.8 L 12.0375 5.9895\" stroke=\"#5f5f5f\" stroke-width=\"1.2\" fill=\"none\" />` +\n\t`<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\" />` +\n\t`<rect x=\"0.6\" y=\"24.6\" width=\"11.4375\" height=\"1.2\" rx=\"0.6\" ry=\"0.6\" stroke=\"none\" fill=\"#5f5f5f\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_standard\", 18, 18,\n\t`<g>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"18\" height=\"18\" fill=\"#fff\" stroke-width=\"1\" stroke=\"#eee\" />` +\n\t`</g>`\n);\n/* eslint-enable prettier/prettier */\n\nexport abstract class DThemeWhitePickerColor extends DThemeWhiteBase implements DThemePickerColor {\n\tgetMainWidth(): number {\n\t\treturn 234;\n\t}\n\n\tgetMainHeight(): number {\n\t\treturn 162;\n\t}\n\n\tgetMainTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_main;\n\t}\n\n\tgetMainBaseTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_main_base;\n\t}\n\n\tgetMainPointerTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_pointer;\n\t}\n\n\tgetMainPointerColor(): number {\n\t\treturn 0xffffff;\n\t}\n\n\tgetMainPointerAlpha(): number {\n\t\treturn 1;\n\t}\n\n\tgetBaseHeight(): number {\n\t\treturn 18;\n\t}\n\n\tgetBaseMargin(): number {\n\t\treturn 6;\n\t}\n\n\tgetBaseTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_base;\n\t}\n\n\tgetBasePointerTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_base_pointer;\n\t}\n\n\tgetBasePointerColor(): number {\n\t\treturn 0xffffff;\n\t}\n\n\tgetBasePointerAlpha(): number {\n\t\treturn this.getMainPointerAlpha();\n\t}\n\n\tgetAlphaHeight(): number {\n\t\treturn this.getBaseHeight();\n\t}\n\n\tgetAlphaMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetAlphaTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_alpha;\n\t}\n\n\tgetAlphaCheckerboardTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_alpha_checkerboard;\n\t}\n\n\tgetAlphaPointerTexture(): Texture {\n\t\treturn this.getBasePointerTexture();\n\t}\n\n\tgetAlphaPointerColor(): number {\n\t\treturn this.getBasePointerColor();\n\t}\n\n\tgetAlphaPointerAlpha(): number {\n\t\treturn this.getMainPointerAlpha();\n\t}\n\n\tgetRecentMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetRecentColorWidth(): number {\n\t\treturn this.getBaseHeight();\n\t}\n\n\tgetRecentColorHeight(): number {\n\t\treturn this.getRecentColorWidth();\n\t}\n\n\tgetRecentColorMargin(): number {\n\t\treturn this.getRecentMargin();\n\t}\n\n\tgetRecentColorCount(): number {\n\t\treturn 10;\n\t}\n\n\tgetRecentCheckerboardTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_recent_checkerboard;\n\t}\n\n\tgetRecentTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_recent;\n\t}\n\n\tgetInputMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetInputLabelWidth(): number {\n\t\treturn 15;\n\t}\n\n\tgetSampleCheckerboardOldTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_sample_checkerboard;\n\t}\n\n\tgetSampleCheckerboardNewTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_sample_checkerboard;\n\t}\n\n\tgetSampleOldTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_sample;\n\t}\n\n\tgetSampleNewTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_sample;\n\t}\n\n\tgetStandardColorCount(): number {\n\t\treturn 80;\n\t}\n\n\tgetStandardColorWidth(): number {\n\t\treturn this.getBaseHeight();\n\t}\n\n\tgetStandardColorHeight(): number {\n\t\treturn this.getStandardColorWidth();\n\t}\n\n\tgetStandardColorMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetStandardTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_standard;\n\t}\n\n\tgetBackgroundColor(state: DBaseStateSet): number | null {\n\t\treturn null;\n\t}\n\n\tgetBorderColor(state: DBaseStateSet): number | null {\n\t\treturn null;\n\t}\n\n\tgetInteractive(): DBaseInteractive {\n\t\treturn DBaseInteractive.CHILDREN;\n\t}\n\n\tnewState(state: DBaseStateSet): void {\n\t\tsuper.newState(state);\n\t\tstate.isFocusable = false;\n\t}\n\n\tabstract toColorTypeLabel(type: DColorType): string;\n}\n"]}
1
+ {"version":3,"file":"d-theme-white-picker-color.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-picker-color.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAEtF,sCAAsC;AACtC,gBAAgB,CAAC,GAAG,CAAC,mBAAmB,EAAE,GAAG,EAAE,GAAG,EACjD,KAAK;IACJ,gFAAsE;IACrE,gEAA0D;IAC1D,gEAA0D;IAC3D,mBAAmB;IACnB,gFAAsE;IACrE,gEAA0D;IAC1D,gEAA0D;IAC3D,mBAAmB;IACnB,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,oBAAoB,CAAC;IACvD,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,oBAAoB,CAAC;IACxD,MAAM,CACN,CAAC;AAEF,gB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,IAAI,CAAC,aAAa,EAAE,CAAC;IAC7B,CAAC;IAED,mDAAkB,GAAlB;QACC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACxD,CAAC;IAED,mDAAkB,GAAlB,UAAmB,KAAoB;QACtC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,+CAAc,GAAd,UAAe,KAAoB;QAClC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,+CAAc,GAAd;QACC,OAAO,gBAAgB,CAAC,QAAQ,CAAC;IAClC,CAAC;IAED,yCAAQ,GAAR,UAAS,KAAoB;QAC5B,iBAAM,QAAQ,YAAC,KAAK,CAAC,CAAC;QACtB,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC;IAC3B,CAAC;IAGF,6BAAC;AAAD,CAAC,AAvLD,CAAqD,eAAe,GAuLnE","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Texture } from \"pixi.js\";\nimport { DBaseInteractive } from \"../../d-base-interactive\";\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DThemePickerColor } from \"../../d-picker-color\";\nimport { DThemeWhiteAtlas } from \"./d-theme-white-atlas\";\nimport { DThemeWhiteBase } from \"./d-theme-white-base\";\nimport { DColorType } from \"../../d-color-type\";\nimport { newSvgRoundedRect } from \"../common/new-svg-rounded-rect\";\nimport { newWhiteSvgRoundedCheckerboard } from \"./new-white-svg-rounded-checkerboard\";\n\n/* eslint-disable prettier/prettier */\nDThemeWhiteAtlas.add(\"picker_color_main\", 234, 162,\n\t`<g>` +\n\t\t`<linearGradient id=\"fs7w3iusfdnb\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\t`<linearGradient id=\"2rfcfe9874bw\" x1=\"0%\" y1=\"0%\" x2=\"0%\" y2=\"100%\">` +\n\t\t\t`<stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#000000\" stop-opacity=\"1\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\tnewSvgRoundedRect(0, 0, 234, 162, \"url(#fs7w3iusfdnb)\") +\n\t\tnewSvgRoundedRect(0, 0, 234, 162, \"url(#2rfcfe9874bw)\") +\n\t`</g>`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_main_base\", 234, 162,\n\t`<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_alpha_checkerboard\", 234, 18, newWhiteSvgRoundedCheckerboard(234, 18));\n\nDThemeWhiteAtlas.add(\"picker_color_alpha\", 234, 18,\n\t`<g>` +\n\t\t`<linearGradient id=\"s48afbuh44\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"234\" height=\"18\" fill=\"url(#s48afbuh44)\" />` +\n\t`</g>`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_base\", 234, 18,\n\t`<g>` +\n\t\t`<linearGradient id=\"ni2rbisdf3\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">` +\n\t\t\t`<stop stop-color=\"#FF0000\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#FFFF00\" offset=\"0.167\"/>` +\n\t\t\t`<stop stop-color=\"#00FF00\" offset=\"0.333\"/>` +\n\t\t\t`<stop stop-color=\"#00FFFF\" offset=\"0.5\"/>` +\n\t\t\t`<stop stop-color=\"#0000FF\" offset=\"0.667\"/>` +\n\t\t\t`<stop stop-color=\"#FF00FF\" offset=\"0.833\"/>` +\n\t\t\t`<stop stop-color=\"#FF0000\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\tnewSvgRoundedRect(0, 0, 234, 18, \"url(#ni2rbisdf3)\") +\n\t`</g>`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_base_pointer\", 16.2, 31.8,\n\t`<rect x=\"4.5\" y=\"4.5\" width=\"7.2\" height=\"22.8\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_pointer\", 25.8, 25.8,\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"4.8\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />` +\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"7.2\" stroke=\"#ffffff\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_recent_checkerboard\", 18, 18, newWhiteSvgRoundedCheckerboard(18, 18));\n\nDThemeWhiteAtlas.add(\"picker_color_recent\", 18, 18, newSvgRoundedRect(0, 0, 18, 18, \"#fff\", \"#eee\", 1));\n\nDThemeWhiteAtlas.add(\"picker_color_sample_checkerboard\", 42, 66, newWhiteSvgRoundedCheckerboard(42, 66, \"#fff\", 1, 0));\n\nDThemeWhiteAtlas.add(\"picker_color_sample\", 42, 66, newSvgRoundedRect(0, 0, 42, 66, \"#fff\", \"#eee\", 1));\n\nDThemeWhiteAtlas.add(\"picker_color_anchor_outlined\", 25.8, 25.8,\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"8.4\" stroke=\"none\" fill=\"#ffffff\" />` +\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"9.6\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_anchor\", 28.2, 28.2,\n\t`<circle cx=\"14.1\" cy=\"14.1\" r=\"6\" stroke=\"none\" fill=\"#ffffff\" />` +\n\t`<circle cx=\"14.1\" cy=\"14.1\" r=\"7.2\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_direction\", 12, 30,\n\t`<path d=\"M0.6 25.8 L 12.0375 5.9895\" stroke=\"#5f5f5f\" stroke-width=\"1.2\" fill=\"none\" />` +\n\t`<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\" />` +\n\t`<rect x=\"0.6\" y=\"24.6\" width=\"11.4375\" height=\"1.2\" rx=\"0.6\" ry=\"0.6\" stroke=\"none\" fill=\"#5f5f5f\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_standard\", 18, 18, newSvgRoundedRect(0, 0, 18, 18, \"#fff\", \"#eee\", 1));\n/* eslint-enable prettier/prettier */\n\nexport abstract class DThemeWhitePickerColor extends DThemeWhiteBase implements DThemePickerColor {\n\tgetMainWidth(): number {\n\t\treturn 234;\n\t}\n\n\tgetMainHeight(): number {\n\t\treturn 162;\n\t}\n\n\tgetMainTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_main;\n\t}\n\n\tgetMainBaseTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_main_base;\n\t}\n\n\tgetMainPointerTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_pointer;\n\t}\n\n\tgetMainPointerColor(): number {\n\t\treturn 0xffffff;\n\t}\n\n\tgetMainPointerAlpha(): number {\n\t\treturn 1;\n\t}\n\n\tgetBaseHeight(): number {\n\t\treturn 18;\n\t}\n\n\tgetBaseMargin(): number {\n\t\treturn 6;\n\t}\n\n\tgetBaseTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_base;\n\t}\n\n\tgetBasePointerTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_base_pointer;\n\t}\n\n\tgetBasePointerColor(): number {\n\t\treturn 0xffffff;\n\t}\n\n\tgetBasePointerAlpha(): number {\n\t\treturn this.getMainPointerAlpha();\n\t}\n\n\tgetAlphaHeight(): number {\n\t\treturn this.getBaseHeight();\n\t}\n\n\tgetAlphaMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetAlphaTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_alpha;\n\t}\n\n\tgetAlphaCheckerboardTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_alpha_checkerboard;\n\t}\n\n\tgetAlphaPointerTexture(): Texture {\n\t\treturn this.getBasePointerTexture();\n\t}\n\n\tgetAlphaPointerColor(): number {\n\t\treturn this.getBasePointerColor();\n\t}\n\n\tgetAlphaPointerAlpha(): number {\n\t\treturn this.getMainPointerAlpha();\n\t}\n\n\tgetRecentMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetRecentColorWidth(): number {\n\t\treturn this.getBaseHeight();\n\t}\n\n\tgetRecentColorHeight(): number {\n\t\treturn this.getRecentColorWidth();\n\t}\n\n\tgetRecentColorMargin(): number {\n\t\treturn this.getRecentMargin();\n\t}\n\n\tgetRecentColorCount(): number {\n\t\treturn 10;\n\t}\n\n\tgetRecentCheckerboardTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_recent_checkerboard;\n\t}\n\n\tgetRecentTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_recent;\n\t}\n\n\tgetInputMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetInputLabelWidth(): number {\n\t\treturn 18;\n\t}\n\n\tgetSampleWidth(): number {\n\t\treturn 42;\n\t}\n\n\tgetSampleHeight(): number {\n\t\treturn 66;\n\t}\n\n\tgetSampleMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetSampleCheckerboardOldTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_sample_checkerboard;\n\t}\n\n\tgetSampleCheckerboardNewTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_sample_checkerboard;\n\t}\n\n\tgetSampleOldTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_sample;\n\t}\n\n\tgetSampleNewTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_sample;\n\t}\n\n\tgetStandardColorCount(): number {\n\t\treturn 80;\n\t}\n\n\tgetStandardColorWidth(): number {\n\t\treturn this.getBaseHeight();\n\t}\n\n\tgetStandardColorHeight(): number {\n\t\treturn this.getStandardColorWidth();\n\t}\n\n\tgetStandardColorMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetStandardTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_standard;\n\t}\n\n\tgetBackgroundColor(state: DBaseStateSet): number | null {\n\t\treturn null;\n\t}\n\n\tgetBorderColor(state: DBaseStateSet): number | null {\n\t\treturn null;\n\t}\n\n\tgetInteractive(): DBaseInteractive {\n\t\treturn DBaseInteractive.CHILDREN;\n\t}\n\n\tnewState(state: DBaseStateSet): void {\n\t\tsuper.newState(state);\n\t\tstate.isFocusable = false;\n\t}\n\n\tabstract toColorTypeLabel(type: DColorType): string;\n}\n"]}
@@ -62,8 +62,13 @@ var DThemeWhiteTableBodyCells = /** @class */ (function () {
62
62
  return DThemeWhiteConstants.COLOR;
63
63
  };
64
64
  DThemeWhiteTableBodyCells.getAlpha = function (state) {
65
- if (state.inEnabled) {
66
- return 1.0;
65
+ if (state.in(DTableState.HAS_DATA)) {
66
+ if (state.inEnabled) {
67
+ return 1.0;
68
+ }
69
+ else {
70
+ return 0.5;
71
+ }
67
72
  }
68
73
  return 0;
69
74
  };
@@ -1 +1 @@
1
- {"version":3,"file":"d-theme-white-table-body-cells.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/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BAA4B,EACjC,KAAK,CACL,AAHoD,CAGnD;IACwB,sCAAY,GAAG,OAAO,CAAC,MAAM,CAAC,EAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,AAA/C,CAAgD;IAC5D,6CAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,EAAI,CAAC,YAAY,EAAE,KAAK,CAAC,AAA3C,CAA4C;IAyE1F,gCAAC;CAAA,AApFD,IAoFC;SApFY,yBAAyB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DBorderMask } from \"../../d-border-mask\";\nimport { DCoordinateSize } from \"../../d-coordinate\";\nimport { DCornerMask } from \"../../d-corner-mask\";\nimport { DTableState } from \"../../d-table-state\";\nimport { UtilRgb } from \"../../util/util-rgb\";\nimport { DThemeWhiteConstants } from \"./d-theme-white-constants\";\n\nexport class DThemeWhiteTableBodyCells {\n\tprotected static readonly BACKGROUND_COLOR = DThemeWhiteConstants.BACKGROUND_COLOR_ON_BOARD;\n\tprotected static readonly BACKGROUND_COLOR_FROZEN_EVEN = UtilRgb.darken(\n\t\tthis.BACKGROUND_COLOR,\n\t\t0.015\n\t);\n\tprotected static readonly BACKGROUND_COLOR_FROZEN_ODD = UtilRgb.darken(\n\t\tthis.BACKGROUND_COLOR_FROZEN_EVEN,\n\t\t0.015\n\t);\n\tprotected static readonly BORDER_COLOR = UtilRgb.darken(this.BACKGROUND_COLOR, 0.035);\n\tprotected static readonly BORDER_COLOR_FROZEN = UtilRgb.darken(this.BORDER_COLOR, 0.035);\n\n\tstatic getBackgroundColor(state: DBaseStateSet): number | null {\n\t\tif (state.inDisabled) {\n\t\t\tif (state.is(DTableState.FROZEN)) {\n\t\t\t\treturn state.onAlternated\n\t\t\t\t\t? this.BACKGROUND_COLOR_FROZEN_ODD\n\t\t\t\t\t: this.BACKGROUND_COLOR_FROZEN_EVEN;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} else if (state.isInvalid) {\n\t\t\treturn DThemeWhiteConstants.INVALID_BLENDED_ON_BOARD;\n\t\t} else if (state.underActive) {\n\t\t\treturn DThemeWhiteConstants.HIGHLIGHT_BLENDED_ON_BOARD;\n\t\t} else if (state.onHovered || state.isHovered) {\n\t\t\treturn DThemeWhiteConstants.WEAK_HIGHLIGHT_BLENDED_ON_BOARD;\n\t\t} else {\n\t\t\tif (state.is(DTableState.FROZEN)) {\n\t\t\t\treturn state.onAlternated\n\t\t\t\t\t? this.BACKGROUND_COLOR_FROZEN_ODD\n\t\t\t\t\t: this.BACKGROUND_COLOR_FROZEN_EVEN;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic getBackgroundAlpha(state: DBaseStateSet): number {\n\t\treturn 1;\n\t}\n\n\tstatic getBorderColor(state: DBaseStateSet): number | null {\n\t\tif (state.is(DTableState.FROZEN_END)) {\n\t\t\treturn this.BORDER_COLOR_FROZEN;\n\t\t}\n\t\treturn this.BORDER_COLOR;\n\t}\n\n\tstatic getBorderMask(state: DBaseStateSet): DBorderMask {\n\t\tif (state.is(DTableState.END)) {\n\t\t\treturn DBorderMask.ALL;\n\t\t} else {\n\t\t\treturn DBorderMask.NOT_RIGHT;\n\t\t}\n\t}\n\n\tstatic getColor(state: DBaseStateSet): number {\n\t\treturn DThemeWhiteConstants.COLOR;\n\t}\n\n\tstatic getAlpha(state: DBaseStateSet): number {\n\t\tif (state.inEnabled) {\n\t\t\treturn 1.0;\n\t\t}\n\t\treturn 0;\n\t}\n\n\tstatic getImageTintColor(state: DBaseStateSet, isActive?: boolean): number | null {\n\t\tif (state.inDisabled || state.inReadOnly || !(state.isActive || isActive)) {\n\t\t\treturn DThemeWhiteConstants.WEAK_HIGHLIGHT_COLOR;\n\t\t} else {\n\t\t\treturn DThemeWhiteConstants.HIGHLIGHT_COLOR;\n\t\t}\n\t}\n\n\tstatic getHeight(): DCoordinateSize {\n\t\treturn \"padding\";\n\t}\n\n\tstatic getCornerMask(): DCornerMask {\n\t\treturn DCornerMask.ALL;\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-theme-white-table-body-cells.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-table-body-cells.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;IAAA;IAwFA,CAAC;IA3EO,4CAAkB,GAAzB,UAA0B,KAAoB;QAC7C,IAAI,KAAK,CAAC,UAAU,EAAE;YACrB,IAAI,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE;gBACjC,OAAO,KAAK,CAAC,YAAY;oBACxB,CAAC,CAAC,IAAI,CAAC,2BAA2B;oBAClC,CAAC,CAAC,IAAI,CAAC,4BAA4B,CAAC;aACrC;iBAAM;gBACN,OAAO,IAAI,CAAC;aACZ;SACD;aAAM,IAAI,KAAK,CAAC,SAAS,EAAE;YAC3B,OAAO,oBAAoB,CAAC,wBAAwB,CAAC;SACrD;aAAM,IAAI,KAAK,CAAC,WAAW,EAAE;YAC7B,OAAO,oBAAoB,CAAC,0BAA0B,CAAC;SACvD;aAAM,IAAI,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,EAAE;YAC9C,OAAO,oBAAoB,CAAC,+BAA+B,CAAC;SAC5D;aAAM;YACN,IAAI,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE;gBACjC,OAAO,KAAK,CAAC,YAAY;oBACxB,CAAC,CAAC,IAAI,CAAC,2B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AAC;IAEM,uCAAa,GAApB;QACC,OAAO,WAAW,CAAC,GAAG,CAAC;IACxB,CAAC;;;IAtFyB,0CAAgB,GAAG,oBAAoB,CAAC,yBAAyB,AAAjD,CAAkD;IAClE,sDAA4B,GAAG,OAAO,CAAC,MAAM,CACtE,EAAI,CAAC,gBAAgB,EACrB,KAAK,CACL,AAHqD,CAGpD;IACwB,qDAA2B,GAAG,OAAO,CAAC,MAAM,CACrE,EAAI,CAAC,4BAA4B,EACjC,KAAK,CACL,AAHoD,CAGnD;IACwB,sCAAY,GAAG,OAAO,CAAC,MAAM,CAAC,EAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,AAA/C,CAAgD;IAC5D,6CAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,EAAI,CAAC,YAAY,EAAE,KAAK,CAAC,AAA3C,CAA4C;IA6E1F,gCAAC;CAAA,AAxFD,IAwFC;SAxFY,yBAAyB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DBorderMask } from \"../../d-border-mask\";\nimport { DCoordinateSize } from \"../../d-coordinate\";\nimport { DCornerMask } from \"../../d-corner-mask\";\nimport { DTableState } from \"../../d-table-state\";\nimport { UtilRgb } from \"../../util/util-rgb\";\nimport { DThemeWhiteConstants } from \"./d-theme-white-constants\";\n\nexport class DThemeWhiteTableBodyCells {\n\tprotected static readonly BACKGROUND_COLOR = DThemeWhiteConstants.BACKGROUND_COLOR_ON_BOARD;\n\tprotected static readonly BACKGROUND_COLOR_FROZEN_EVEN = UtilRgb.darken(\n\t\tthis.BACKGROUND_COLOR,\n\t\t0.015\n\t);\n\tprotected static readonly BACKGROUND_COLOR_FROZEN_ODD = UtilRgb.darken(\n\t\tthis.BACKGROUND_COLOR_FROZEN_EVEN,\n\t\t0.015\n\t);\n\tprotected static readonly BORDER_COLOR = UtilRgb.darken(this.BACKGROUND_COLOR, 0.035);\n\tprotected static readonly BORDER_COLOR_FROZEN = UtilRgb.darken(this.BORDER_COLOR, 0.035);\n\n\tstatic getBackgroundColor(state: DBaseStateSet): number | null {\n\t\tif (state.inDisabled) {\n\t\t\tif (state.is(DTableState.FROZEN)) {\n\t\t\t\treturn state.onAlternated\n\t\t\t\t\t? this.BACKGROUND_COLOR_FROZEN_ODD\n\t\t\t\t\t: this.BACKGROUND_COLOR_FROZEN_EVEN;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} else if (state.isInvalid) {\n\t\t\treturn DThemeWhiteConstants.INVALID_BLENDED_ON_BOARD;\n\t\t} else if (state.underActive) {\n\t\t\treturn DThemeWhiteConstants.HIGHLIGHT_BLENDED_ON_BOARD;\n\t\t} else if (state.onHovered || state.isHovered) {\n\t\t\treturn DThemeWhiteConstants.WEAK_HIGHLIGHT_BLENDED_ON_BOARD;\n\t\t} else {\n\t\t\tif (state.is(DTableState.FROZEN)) {\n\t\t\t\treturn state.onAlternated\n\t\t\t\t\t? this.BACKGROUND_COLOR_FROZEN_ODD\n\t\t\t\t\t: this.BACKGROUND_COLOR_FROZEN_EVEN;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic getBackgroundAlpha(state: DBaseStateSet): number {\n\t\treturn 1;\n\t}\n\n\tstatic getBorderColor(state: DBaseStateSet): number | null {\n\t\tif (state.is(DTableState.FROZEN_END)) {\n\t\t\treturn this.BORDER_COLOR_FROZEN;\n\t\t}\n\t\treturn this.BORDER_COLOR;\n\t}\n\n\tstatic getBorderMask(state: DBaseStateSet): DBorderMask {\n\t\tif (state.is(DTableState.END)) {\n\t\t\treturn DBorderMask.ALL;\n\t\t} else {\n\t\t\treturn DBorderMask.NOT_RIGHT;\n\t\t}\n\t}\n\n\tstatic getColor(state: DBaseStateSet): number {\n\t\treturn DThemeWhiteConstants.COLOR;\n\t}\n\n\tstatic getAlpha(state: DBaseStateSet): number {\n\t\tif (state.in(DTableState.HAS_DATA)) {\n\t\t\tif (state.inEnabled) {\n\t\t\t\treturn 1.0;\n\t\t\t} else {\n\t\t\t\treturn 0.5;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n\n\tstatic getImageTintColor(state: DBaseStateSet, isActive?: boolean): number | null {\n\t\tif (state.inDisabled || state.inReadOnly || !(state.isActive || isActive)) {\n\t\t\treturn DThemeWhiteConstants.WEAK_HIGHLIGHT_COLOR;\n\t\t} else {\n\t\t\treturn DThemeWhiteConstants.HIGHLIGHT_COLOR;\n\t\t}\n\t}\n\n\tstatic getHeight(): DCoordinateSize {\n\t\treturn \"padding\";\n\t}\n\n\tstatic getCornerMask(): DCornerMask {\n\t\treturn DCornerMask.ALL;\n\t}\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import { newSvgRoundedCheckerboard } from "../common/new-svg-rounded-checkerboard";
2
+ export var newWhiteSvgRoundedCheckerboard = function (width, height, stroke, strokeWidth, strokeOpacity) {
3
+ return newSvgRoundedCheckerboard(width, height, "#bfbfbf", "#a5a5a5", stroke, strokeWidth, strokeOpacity);
4
+ };
5
+ //# sourceMappingURL=new-white-svg-rounded-checkerboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"new-white-svg-rounded-checkerboard.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/new-white-svg-rounded-checkerboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEnF,MAAM,CAAC,IAAM,8BAA8B,GAAG,UAC7C,KAAa,EACb,MAAc,EACd,MAAe,EACf,WAAoB,EACpB,aAAsB;IAEtB,OAAO,yBAAyB,CAC/B,KAAK,EACL,MAAM,EACN,SAAS,EACT,SAAS,EACT,MAAM,EACN,WAAW,EACX,aAAa,CACb,CAAC;AACH,CAAC,CAAC","sourcesContent":["import { newSvgRoundedCheckerboard } from \"../common/new-svg-rounded-checkerboard\";\n\nexport const newWhiteSvgRoundedCheckerboard = (\n\twidth: number,\n\theight: number,\n\tstroke?: string,\n\tstrokeWidth?: number,\n\tstrokeOpacity?: number\n): string => {\n\treturn newSvgRoundedCheckerboard(\n\t\twidth,\n\t\theight,\n\t\t\"#bfbfbf\",\n\t\t\"#a5a5a5\",\n\t\tstroke,\n\t\tstrokeWidth,\n\t\tstrokeOpacity\n\t);\n};\n"]}
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.442.0
2
+ Winter Cardinal UI v0.443.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -6016,16 +6016,27 @@
6016
6016
  DThemes.setDefaultThemeClass(DThemeDark);
6017
6017
  };
6018
6018
 
6019
+ var newSvgRoundedRect = function (x, y, width, height, fill, stroke, strokeWidth, strokeOpacity) {
6020
+ var sw = strokeWidth !== null && strokeWidth !== void 0 ? strokeWidth : 0;
6021
+ var o = sw * 0.5;
6022
+ var r = Math.max(0, 3 - o);
6023
+ var w = width - sw - r - r;
6024
+ var h = height - sw - r - r;
6025
+ x += o + r;
6026
+ y += o;
6027
+ 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, "\"") +
6028
+ (stroke ? " stroke=\"".concat(stroke, "\"") : "") +
6029
+ (strokeWidth != null ? " stroke-width=\"".concat(strokeWidth, "\"") : "") +
6030
+ (strokeOpacity != null ? " stroke-opacity=\"".concat(strokeOpacity, "\"") : "") +
6031
+ " />");
6032
+ };
6033
+
6019
6034
  /*
6020
6035
  * Copyright (C) 2019 Toshiba Corporation
6021
6036
  * SPDX-License-Identifier: Apache-2.0
6022
6037
  */
6023
- // Material Design icons by Google.
6024
- // Apache license version 2.0.
6025
6038
  /* eslint-disable prettier/prettier */
6026
- DThemeDarkAtlas.add("button_color_sample", 21, 21, "<g transform=\"scale(0.875,0.875)\">" +
6027
- "<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\"/>" +
6028
- "</g>");
6039
+ DThemeDarkAtlas.add("button_color_sample", 21, 21, newSvgRoundedRect(3, 3, 15, 15, "#fff", "#eee", 1));
6029
6040
  /* eslint-enable prettier/prettier */
6030
6041
  var formatter$8 = function (colorAndAlpha) {
6031
6042
  return "#".concat(UtilRgb.toCode(colorAndAlpha.color), " A").concat(colorAndAlpha.alpha.toFixed(2));
@@ -6036,7 +6047,7 @@
6036
6047
  return _super !== null && _super.apply(this, arguments) || this;
6037
6048
  }
6038
6049
  DThemeDarkButtonColor.prototype.getImageTintColor = function (state) {
6039
- return null;
6050
+ return 0xffffff;
6040
6051
  };
6041
6052
  DThemeDarkButtonColor.prototype.getImageSource = function (state) {
6042
6053
  return DThemeDarkAtlas.mappings.button_color_sample;
@@ -6067,25 +6078,35 @@
6067
6078
 
6068
6079
  const DColorType = wcardinal.ui.DColorType;
6069
6080
 
6081
+ var isPatternInjected = false;
6082
+ var newSvgRoundedCheckerboard = function (width, height, color1, color2, stroke, strokeWidth, strokeOpacity) {
6083
+ var result = "";
6084
+ if (!isPatternInjected) {
6085
+ isPatternInjected = true;
6086
+ result =
6087
+ "<defs>" +
6088
+ "<pattern id=\"rounded-checkerboard-pattern\" patternUnits=\"userSpaceOnUse\" width=\"18\" height=\"18\">" +
6089
+ "<rect x=\"0\" y=\"0\" width=\"9\" height=\"9\" fill=\"".concat(color1, "\" />") +
6090
+ "<rect x=\"9\" y=\"0\" width=\"9\" height=\"9\" fill=\"".concat(color2, "\" />") +
6091
+ "<rect x=\"0\" y=\"9\" width=\"9\" height=\"9\" fill=\"".concat(color2, "\" />") +
6092
+ "<rect x=\"9\" y=\"9\" width=\"9\" height=\"9\" fill=\"".concat(color1, "\" />") +
6093
+ "</pattern>" +
6094
+ "</defs>";
6095
+ }
6096
+ result += newSvgRoundedRect(0, 0, width, height, "url(#rounded-checkerboard-pattern)", stroke, strokeWidth, strokeOpacity);
6097
+ return result;
6098
+ };
6099
+
6100
+ var newDarkSvgRoundedCheckerboard = function (width, height, stroke, strokeWidth, strokeOpacity) {
6101
+ return newSvgRoundedCheckerboard(width, height, "#5f5f5f", "#454545", stroke, strokeWidth, strokeOpacity);
6102
+ };
6103
+
6070
6104
  /*
6071
6105
  * Copyright (C) 2019 Toshiba Corporation
6072
6106
  * SPDX-License-Identifier: Apache-2.0
6073
6107
  */
6074
- var makeCheckerboard = function (width, height) {
6075
- var LIGHT = "#5f5f5f";
6076
- var DARK = "#454545";
6077
- var result = "<g>";
6078
- for (var ih = 0; ih < height; ++ih) {
6079
- for (var iw = 0; iw < width; ++iw) {
6080
- var color = (iw + ih) % 2 === 0 ? LIGHT : DARK;
6081
- result += "<rect x=\"".concat(9 * iw, "\" y=\"").concat(9 * ih, "\" width=\"9\" height=\"9\" fill=\"").concat(color, "\" />");
6082
- }
6083
- }
6084
- result += "</g>";
6085
- return result;
6086
- };
6087
6108
  /* eslint-disable prettier/prettier */
6088
- DThemeDarkAtlas.add("picker_color_main", 236, 164, "<g>" +
6109
+ DThemeDarkAtlas.add("picker_color_main", 234, 162, "<g>" +
6089
6110
  "<linearGradient id=\"fs7w3iusfdnb\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">" +
6090
6111
  "<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>" +
6091
6112
  "<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>" +
@@ -6094,13 +6115,11 @@
6094
6115
  "<stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"0\"/>" +
6095
6116
  "<stop stop-color=\"#000000\" stop-opacity=\"1\" offset=\"1\"/>" +
6096
6117
  "</linearGradient>" +
6097
- "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"url(#fs7w3iusfdnb)\" />" +
6098
- "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"url(#2rfcfe9874bw)\" />" +
6099
- "</g>", 1, 1, 234, 162);
6100
- DThemeDarkAtlas.add("picker_color_main_base", 236, 164, "<g>" +
6101
- "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />" +
6102
- "</g>", 1, 1, 234, 162);
6103
- DThemeDarkAtlas.add("picker_color_alpha_checkerboard", 234, 18, makeCheckerboard(26, 2));
6118
+ newSvgRoundedRect(0, 0, 234, 162, "url(#fs7w3iusfdnb)") +
6119
+ newSvgRoundedRect(0, 0, 234, 162, "url(#2rfcfe9874bw)") +
6120
+ "</g>");
6121
+ DThemeDarkAtlas.add("picker_color_main_base", 234, 162, "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />");
6122
+ DThemeDarkAtlas.add("picker_color_alpha_checkerboard", 234, 18, newDarkSvgRoundedCheckerboard(234, 18));
6104
6123
  DThemeDarkAtlas.add("picker_color_alpha", 234, 18, "<g>" +
6105
6124
  "<linearGradient id=\"s48afbuh44\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">" +
6106
6125
  "<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>" +
@@ -6118,20 +6137,15 @@
6118
6137
  "<stop stop-color=\"#FF00FF\" offset=\"0.833\"/>" +
6119
6138
  "<stop stop-color=\"#FF0000\" offset=\"1\"/>" +
6120
6139
  "</linearGradient>" +
6121
- "<rect x=\"0\" y=\"0\" width=\"234\" height=\"18\" fill=\"url(#ni2rbisdf3)\" />" +
6140
+ newSvgRoundedRect(0, 0, 234, 18, "url(#ni2rbisdf3)") +
6122
6141
  "</g>");
6123
6142
  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\" />");
6124
6143
  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\" />" +
6125
6144
  "<circle cx=\"12.9\" cy=\"12.9\" r=\"7.2\" stroke=\"#ffffff\" stroke-width=\"2.4\" fill=\"none\" />");
6126
- DThemeDarkAtlas.add("picker_color_recent_checkerboard", 36, 36, makeCheckerboard(4, 4), 9, 9, 18, 18);
6127
- DThemeDarkAtlas.add("picker_color_recent", 36, 36, "<g>" +
6128
- "<rect x=\"0\" y=\"0\" width=\"36\" height=\"36\" fill=\"#fff\" />" +
6129
- "<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\" />" +
6130
- "</g>", 9, 9, 18, 18);
6131
- DThemeDarkAtlas.add("picker_color_sample_checkerboard", 45, 63, makeCheckerboard(5, 7));
6132
- DThemeDarkAtlas.add("picker_color_sample", 47, 65, "<g>" +
6133
- "<rect x=\"0\" y=\"0\" width=\"47\" height=\"65\" fill=\"#fff\" />" +
6134
- "</g>", 1, 1, 45, 63);
6145
+ DThemeDarkAtlas.add("picker_color_recent_checkerboard", 18, 18, newDarkSvgRoundedCheckerboard(18, 18));
6146
+ DThemeDarkAtlas.add("picker_color_recent", 18, 18, newSvgRoundedRect(0, 0, 18, 18, "#fff", "#eee", 1));
6147
+ DThemeDarkAtlas.add("picker_color_sample_checkerboard", 42, 66, newDarkSvgRoundedCheckerboard(42, 66, "#fff", 1, 0));
6148
+ DThemeDarkAtlas.add("picker_color_sample", 42, 66, newSvgRoundedRect(0, 0, 42, 66, "#fff", "#eee", 1));
6135
6149
  DThemeDarkAtlas.add("picker_color_anchor_outlined", 25.8, 25.8, "<circle cx=\"12.9\" cy=\"12.9\" r=\"8.4\" stroke=\"none\" fill=\"#ffffff\" />" +
6136
6150
  "<circle cx=\"12.9\" cy=\"12.9\" r=\"9.6\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />");
6137
6151
  DThemeDarkAtlas.add("picker_color_anchor", 28.2, 28.2, "<circle cx=\"14.1\" cy=\"14.1\" r=\"6\" stroke=\"none\" fill=\"#ffffff\" />" +
@@ -6139,9 +6153,7 @@
6139
6153
  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\" />" +
6140
6154
  "<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\" />" +
6141
6155
  "<rect x=\"0.6\" y=\"24.6\" width=\"11.4375\" height=\"1.2\" rx=\"0.6\" ry=\"0.6\" stroke=\"none\" fill=\"#5f5f5f\" />");
6142
- DThemeDarkAtlas.add("picker_color_standard", 18, 18, "<g>" +
6143
- "<rect x=\"0\" y=\"0\" width=\"18\" height=\"18\" fill=\"#fff\" stroke-width=\"1\" stroke=\"#eee\" />" +
6144
- "</g>");
6156
+ DThemeDarkAtlas.add("picker_color_standard", 18, 18, newSvgRoundedRect(0, 0, 18, 18, "#fff", "#eee", 1));
6145
6157
  /* eslint-enable prettier/prettier */
6146
6158
  var DThemeDarkPickerColor = /** @class */ (function (_super) {
6147
6159
  __extends(DThemeDarkPickerColor, _super);
@@ -6233,7 +6245,16 @@
6233
6245
  return this.getBaseMargin();
6234
6246
  };
6235
6247
  DThemeDarkPickerColor.prototype.getInputLabelWidth = function () {
6236
- return 15;
6248
+ return 18;
6249
+ };
6250
+ DThemeDarkPickerColor.prototype.getSampleWidth = function () {
6251
+ return 42;
6252
+ };
6253
+ DThemeDarkPickerColor.prototype.getSampleHeight = function () {
6254
+ return 66;
6255
+ };
6256
+ DThemeDarkPickerColor.prototype.getSampleMargin = function () {
6257
+ return this.getBaseMargin();
6237
6258
  };
6238
6259
  DThemeDarkPickerColor.prototype.getSampleCheckerboardOldTexture = function () {
6239
6260
  return DThemeDarkAtlas.mappings.picker_color_sample_checkerboard;
@@ -6330,12 +6351,8 @@
6330
6351
  * Copyright (C) 2019 Toshiba Corporation
6331
6352
  * SPDX-License-Identifier: Apache-2.0
6332
6353
  */
6333
- // Material Design icons by Google.
6334
- // Apache license version 2.0.
6335
6354
  /* eslint-disable prettier/prettier */
6336
- DThemeDarkAtlas.add("button_color_gradient_sample", 21, 21, "<g transform=\"scale(0.875,0.875)\">" +
6337
- "<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\"/>" +
6338
- "</g>");
6355
+ DThemeDarkAtlas.add("button_color_gradient_sample", 21, 21, newSvgRoundedRect(3, 3, 15, 15, "#fff", "#eee", 1));
6339
6356
  /* eslint-enable prettier/prettier */
6340
6357
  var formatter$7 = function () {
6341
6358
  return "";
@@ -8430,8 +8447,13 @@
8430
8447
  return DThemeDarkConstants.COLOR;
8431
8448
  };
8432
8449
  DThemeDarkTableBodyCells.getAlpha = function (state) {
8433
- if (state.inEnabled) {
8434
- return 1.0;
8450
+ if (state.in(DTableState.HAS_DATA)) {
8451
+ if (state.inEnabled) {
8452
+ return 1.0;
8453
+ }
8454
+ else {
8455
+ return 0.5;
8456
+ }
8435
8457
  }
8436
8458
  return 0;
8437
8459
  };