@wcardinal/wcardinal-ui 0.441.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.
- package/dist/types/wcardinal/ui/d-picker-color.d.ts +3 -0
- package/dist/types/wcardinal/ui/d-table-column-state.d.ts +4 -1
- package/dist/types/wcardinal/ui/d-table-state.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/common/new-svg-rounded-checkerboard.d.ts +1 -0
- package/dist/types/wcardinal/ui/theme/common/new-svg-rounded-rect.d.ts +1 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-picker-color.d.ts +3 -0
- package/dist/types/wcardinal/ui/theme/dark/new-dark-svg-rounded-checkerboard.d.ts +1 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-picker-color.d.ts +3 -0
- package/dist/types/wcardinal/ui/theme/white/new-white-svg-rounded-checkerboard.d.ts +1 -0
- package/dist/wcardinal/ui/d-dynamic-text.js +3 -8
- package/dist/wcardinal/ui/d-dynamic-text.js.map +1 -1
- package/dist/wcardinal/ui/d-image-piece-impl.js +8 -0
- package/dist/wcardinal/ui/d-image-piece-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-image-piece-layouter-part-container.js +1 -1
- package/dist/wcardinal/ui/d-image-piece-layouter-part-container.js.map +1 -1
- package/dist/wcardinal/ui/d-picker-color.js +5 -4
- package/dist/wcardinal/ui/d-picker-color.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body.js +3 -2
- package/dist/wcardinal/ui/d-table-body.js.map +1 -1
- package/dist/wcardinal/ui/d-table-column-state.js.map +1 -1
- package/dist/wcardinal/ui/d-table-state.js +4 -0
- package/dist/wcardinal/ui/d-table-state.js.map +1 -1
- package/dist/wcardinal/ui/theme/common/new-svg-rounded-checkerboard.js +20 -0
- package/dist/wcardinal/ui/theme/common/new-svg-rounded-checkerboard.js.map +1 -0
- package/dist/wcardinal/ui/theme/common/new-svg-rounded-rect.js +15 -0
- package/dist/wcardinal/ui/theme/common/new-svg-rounded-rect.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-button-color-gradient.js +2 -5
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-button-color-gradient.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-button-color.js +3 -6
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-button-color.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-picker-color.js +24 -35
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-picker-color.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-cells.js +7 -2
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-cells.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/new-dark-svg-rounded-checkerboard.js +5 -0
- package/dist/wcardinal/ui/theme/dark/new-dark-svg-rounded-checkerboard.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-button-color-gradient.js +2 -5
- package/dist/wcardinal/ui/theme/white/d-theme-white-button-color-gradient.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-button-color.js +3 -6
- package/dist/wcardinal/ui/theme/white/d-theme-white-button-color.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-picker-color.js +24 -35
- package/dist/wcardinal/ui/theme/white/d-theme-white-picker-color.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-cells.js +7 -2
- package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-cells.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/new-white-svg-rounded-checkerboard.js +5 -0
- package/dist/wcardinal/ui/theme/white/new-white-svg-rounded-checkerboard.js.map +1 -0
- package/dist/wcardinal-ui-theme-dark-en-us.js +71 -49
- package/dist/wcardinal-ui-theme-dark-en-us.min.js +2 -2
- package/dist/wcardinal-ui-theme-dark-en-us.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark-ja-jp.js +71 -49
- package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +2 -2
- package/dist/wcardinal-ui-theme-dark-ja-jp.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +71 -49
- package/dist/wcardinal-ui-theme-dark.min.js +2 -2
- package/dist/wcardinal-ui-theme-white-en-us.js +71 -49
- package/dist/wcardinal-ui-theme-white-en-us.min.js +2 -2
- package/dist/wcardinal-ui-theme-white-en-us.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-white-ja-jp.js +71 -49
- package/dist/wcardinal-ui-theme-white-ja-jp.min.js +2 -2
- package/dist/wcardinal-ui-theme-white-ja-jp.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-white.js +71 -49
- package/dist/wcardinal-ui-theme-white.min.js +2 -2
- package/dist/wcardinal-ui.cjs.js +131 -112
- package/dist/wcardinal-ui.js +25 -16
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
package/dist/wcardinal-ui.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.443.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -31777,6 +31777,7 @@ var DImagePieceLayouterPartContainer = /** @class */ (function () {
|
|
|
31777
31777
|
var textWidth = 0;
|
|
31778
31778
|
var textHeight = 0;
|
|
31779
31779
|
if (text != null) {
|
|
31780
|
+
text.setClippingDelta(leftSize + rightSize, topSize + bottomSize);
|
|
31780
31781
|
textWidth = text.width;
|
|
31781
31782
|
textHeight = text.height;
|
|
31782
31783
|
}
|
|
@@ -31811,7 +31812,6 @@ var DImagePieceLayouterPartContainer = /** @class */ (function () {
|
|
|
31811
31812
|
}
|
|
31812
31813
|
if (text != null) {
|
|
31813
31814
|
text.position.set(textX, textY);
|
|
31814
|
-
text.setClippingDelta(leftSize + rightSize, topSize + bottomSize);
|
|
31815
31815
|
}
|
|
31816
31816
|
left.execute(textX - leftSize);
|
|
31817
31817
|
center.execute(0, 0, textX * 2 + textWidth);
|
|
@@ -32856,18 +32856,13 @@ var DDynamicText = /** @class */ (function (_super) {
|
|
|
32856
32856
|
if (styleClipping || styleFitting || styleWordWrap) {
|
|
32857
32857
|
var parent_1 = this.parent;
|
|
32858
32858
|
if (parent_1 instanceof DBase) {
|
|
32859
|
-
var
|
|
32860
|
-
|
|
32861
|
-
parent_1.padding.getRight() -
|
|
32862
|
-
modifier.delta.width;
|
|
32859
|
+
var padding = parent_1.padding;
|
|
32860
|
+
var width = parent_1.width - padding.getLeft() - padding.getRight() - modifier.delta.width;
|
|
32863
32861
|
if (modifier.width !== width) {
|
|
32864
32862
|
modifier.width = width;
|
|
32865
32863
|
isChanged = true;
|
|
32866
32864
|
}
|
|
32867
|
-
var height = parent_1.height -
|
|
32868
|
-
parent_1.padding.getTop() -
|
|
32869
|
-
parent_1.padding.getBottom() -
|
|
32870
|
-
modifier.delta.height;
|
|
32865
|
+
var height = parent_1.height - padding.getTop() - padding.getBottom() - modifier.delta.height;
|
|
32871
32866
|
if (modifier.height !== height) {
|
|
32872
32867
|
modifier.height = height;
|
|
32873
32868
|
isChanged = true;
|
|
@@ -34265,8 +34260,16 @@ var DImagePieceImpl = /** @class */ (function () {
|
|
|
34265
34260
|
object.alpha = alpha;
|
|
34266
34261
|
result = true;
|
|
34267
34262
|
}
|
|
34263
|
+
if (!object.visible) {
|
|
34264
|
+
object.visible = true;
|
|
34265
|
+
result = true;
|
|
34266
|
+
}
|
|
34268
34267
|
return result;
|
|
34269
34268
|
}
|
|
34269
|
+
else if (object.visible) {
|
|
34270
|
+
object.visible = false;
|
|
34271
|
+
return true;
|
|
34272
|
+
}
|
|
34270
34273
|
}
|
|
34271
34274
|
}
|
|
34272
34275
|
return false;
|
|
@@ -57496,6 +57499,10 @@ var DTableState = {
|
|
|
57496
57499
|
* Cells of a right-most frozen column.
|
|
57497
57500
|
*/
|
|
57498
57501
|
FROZEN_END: "FROZEN_END",
|
|
57502
|
+
/**
|
|
57503
|
+
* Rows with data
|
|
57504
|
+
*/
|
|
57505
|
+
HAS_DATA: "HAS_DATA",
|
|
57499
57506
|
/**
|
|
57500
57507
|
* Header cells of sortable columns.
|
|
57501
57508
|
*/
|
|
@@ -57803,16 +57810,27 @@ var loadThemeWhite = function () {
|
|
|
57803
57810
|
DThemes.setDefaultThemeClass(DThemeWhite);
|
|
57804
57811
|
};
|
|
57805
57812
|
|
|
57813
|
+
var newSvgRoundedRect = function (x, y, width, height, fill, stroke, strokeWidth, strokeOpacity) {
|
|
57814
|
+
var sw = strokeWidth !== null && strokeWidth !== void 0 ? strokeWidth : 0;
|
|
57815
|
+
var o = sw * 0.5;
|
|
57816
|
+
var r = Math.max(0, 3 - o);
|
|
57817
|
+
var w = width - sw - r - r;
|
|
57818
|
+
var h = height - sw - r - r;
|
|
57819
|
+
x += o + r;
|
|
57820
|
+
y += o;
|
|
57821
|
+
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, "\"") +
|
|
57822
|
+
(stroke ? " stroke=\"".concat(stroke, "\"") : "") +
|
|
57823
|
+
(strokeWidth != null ? " stroke-width=\"".concat(strokeWidth, "\"") : "") +
|
|
57824
|
+
(strokeOpacity != null ? " stroke-opacity=\"".concat(strokeOpacity, "\"") : "") +
|
|
57825
|
+
" />");
|
|
57826
|
+
};
|
|
57827
|
+
|
|
57806
57828
|
/*
|
|
57807
57829
|
* Copyright (C) 2019 Toshiba Corporation
|
|
57808
57830
|
* SPDX-License-Identifier: Apache-2.0
|
|
57809
57831
|
*/
|
|
57810
|
-
// Material Design icons by Google.
|
|
57811
|
-
// Apache license version 2.0.
|
|
57812
57832
|
/* eslint-disable prettier/prettier */
|
|
57813
|
-
DThemeWhiteAtlas.add("button_color_sample", 21, 21,
|
|
57814
|
-
"<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\"/>" +
|
|
57815
|
-
"</g>");
|
|
57833
|
+
DThemeWhiteAtlas.add("button_color_sample", 21, 21, newSvgRoundedRect(3, 3, 15, 15, "#fff", "#eee", 1));
|
|
57816
57834
|
/* eslint-enable prettier/prettier */
|
|
57817
57835
|
var formatter$j = function (colorAndAlpha) {
|
|
57818
57836
|
return "#".concat(UtilRgb.toCode(colorAndAlpha.color), " A").concat(colorAndAlpha.alpha.toFixed(2));
|
|
@@ -57823,7 +57841,7 @@ var DThemeWhiteButtonColor = /** @class */ (function (_super) {
|
|
|
57823
57841
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
57824
57842
|
}
|
|
57825
57843
|
DThemeWhiteButtonColor.prototype.getImageTintColor = function (state) {
|
|
57826
|
-
return
|
|
57844
|
+
return 0xffffff;
|
|
57827
57845
|
};
|
|
57828
57846
|
DThemeWhiteButtonColor.prototype.getImageSource = function (state) {
|
|
57829
57847
|
return DThemeWhiteAtlas.mappings.button_color_sample;
|
|
@@ -57861,25 +57879,35 @@ var DColorType = {
|
|
|
57861
57879
|
STANDARD: 1
|
|
57862
57880
|
};
|
|
57863
57881
|
|
|
57882
|
+
var isPatternInjected = false;
|
|
57883
|
+
var newSvgRoundedCheckerboard = function (width, height, color1, color2, stroke, strokeWidth, strokeOpacity) {
|
|
57884
|
+
var result = "";
|
|
57885
|
+
if (!isPatternInjected) {
|
|
57886
|
+
isPatternInjected = true;
|
|
57887
|
+
result =
|
|
57888
|
+
"<defs>" +
|
|
57889
|
+
"<pattern id=\"rounded-checkerboard-pattern\" patternUnits=\"userSpaceOnUse\" width=\"18\" height=\"18\">" +
|
|
57890
|
+
"<rect x=\"0\" y=\"0\" width=\"9\" height=\"9\" fill=\"".concat(color1, "\" />") +
|
|
57891
|
+
"<rect x=\"9\" y=\"0\" width=\"9\" height=\"9\" fill=\"".concat(color2, "\" />") +
|
|
57892
|
+
"<rect x=\"0\" y=\"9\" width=\"9\" height=\"9\" fill=\"".concat(color2, "\" />") +
|
|
57893
|
+
"<rect x=\"9\" y=\"9\" width=\"9\" height=\"9\" fill=\"".concat(color1, "\" />") +
|
|
57894
|
+
"</pattern>" +
|
|
57895
|
+
"</defs>";
|
|
57896
|
+
}
|
|
57897
|
+
result += newSvgRoundedRect(0, 0, width, height, "url(#rounded-checkerboard-pattern)", stroke, strokeWidth, strokeOpacity);
|
|
57898
|
+
return result;
|
|
57899
|
+
};
|
|
57900
|
+
|
|
57901
|
+
var newWhiteSvgRoundedCheckerboard = function (width, height, stroke, strokeWidth, strokeOpacity) {
|
|
57902
|
+
return newSvgRoundedCheckerboard(width, height, "#bfbfbf", "#a5a5a5", stroke, strokeWidth, strokeOpacity);
|
|
57903
|
+
};
|
|
57904
|
+
|
|
57864
57905
|
/*
|
|
57865
57906
|
* Copyright (C) 2019 Toshiba Corporation
|
|
57866
57907
|
* SPDX-License-Identifier: Apache-2.0
|
|
57867
57908
|
*/
|
|
57868
|
-
var makeCheckerboard$1 = function (width, height) {
|
|
57869
|
-
var LIGHT = "#bfbfbf";
|
|
57870
|
-
var DARK = "#a5a5a5";
|
|
57871
|
-
var result = "<g>";
|
|
57872
|
-
for (var ih = 0; ih < height; ++ih) {
|
|
57873
|
-
for (var iw = 0; iw < width; ++iw) {
|
|
57874
|
-
var color = (iw + ih) % 2 === 0 ? LIGHT : DARK;
|
|
57875
|
-
result += "<rect x=\"".concat(9 * iw, "\" y=\"").concat(9 * ih, "\" width=\"9\" height=\"9\" fill=\"").concat(color, "\" />");
|
|
57876
|
-
}
|
|
57877
|
-
}
|
|
57878
|
-
result += "</g>";
|
|
57879
|
-
return result;
|
|
57880
|
-
};
|
|
57881
57909
|
/* eslint-disable prettier/prettier */
|
|
57882
|
-
DThemeWhiteAtlas.add("picker_color_main",
|
|
57910
|
+
DThemeWhiteAtlas.add("picker_color_main", 234, 162, "<g>" +
|
|
57883
57911
|
"<linearGradient id=\"fs7w3iusfdnb\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">" +
|
|
57884
57912
|
"<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>" +
|
|
57885
57913
|
"<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>" +
|
|
@@ -57888,13 +57916,11 @@ DThemeWhiteAtlas.add("picker_color_main", 236, 164, "<g>" +
|
|
|
57888
57916
|
"<stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"0\"/>" +
|
|
57889
57917
|
"<stop stop-color=\"#000000\" stop-opacity=\"1\" offset=\"1\"/>" +
|
|
57890
57918
|
"</linearGradient>" +
|
|
57891
|
-
|
|
57892
|
-
|
|
57893
|
-
"</g>"
|
|
57894
|
-
DThemeWhiteAtlas.add("picker_color_main_base",
|
|
57895
|
-
|
|
57896
|
-
"</g>", 1, 1, 234, 162);
|
|
57897
|
-
DThemeWhiteAtlas.add("picker_color_alpha_checkerboard", 234, 18, makeCheckerboard$1(26, 2));
|
|
57919
|
+
newSvgRoundedRect(0, 0, 234, 162, "url(#fs7w3iusfdnb)") +
|
|
57920
|
+
newSvgRoundedRect(0, 0, 234, 162, "url(#2rfcfe9874bw)") +
|
|
57921
|
+
"</g>");
|
|
57922
|
+
DThemeWhiteAtlas.add("picker_color_main_base", 234, 162, "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />");
|
|
57923
|
+
DThemeWhiteAtlas.add("picker_color_alpha_checkerboard", 234, 18, newWhiteSvgRoundedCheckerboard(234, 18));
|
|
57898
57924
|
DThemeWhiteAtlas.add("picker_color_alpha", 234, 18, "<g>" +
|
|
57899
57925
|
"<linearGradient id=\"s48afbuh44\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">" +
|
|
57900
57926
|
"<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>" +
|
|
@@ -57912,20 +57938,15 @@ DThemeWhiteAtlas.add("picker_color_base", 234, 18, "<g>" +
|
|
|
57912
57938
|
"<stop stop-color=\"#FF00FF\" offset=\"0.833\"/>" +
|
|
57913
57939
|
"<stop stop-color=\"#FF0000\" offset=\"1\"/>" +
|
|
57914
57940
|
"</linearGradient>" +
|
|
57915
|
-
|
|
57941
|
+
newSvgRoundedRect(0, 0, 234, 18, "url(#ni2rbisdf3)") +
|
|
57916
57942
|
"</g>");
|
|
57917
57943
|
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\" />");
|
|
57918
57944
|
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\" />" +
|
|
57919
57945
|
"<circle cx=\"12.9\" cy=\"12.9\" r=\"7.2\" stroke=\"#ffffff\" stroke-width=\"2.4\" fill=\"none\" />");
|
|
57920
|
-
DThemeWhiteAtlas.add("picker_color_recent_checkerboard",
|
|
57921
|
-
DThemeWhiteAtlas.add("picker_color_recent",
|
|
57922
|
-
|
|
57923
|
-
|
|
57924
|
-
"</g>", 9, 9, 18, 18);
|
|
57925
|
-
DThemeWhiteAtlas.add("picker_color_sample_checkerboard", 45, 63, makeCheckerboard$1(5, 7));
|
|
57926
|
-
DThemeWhiteAtlas.add("picker_color_sample", 47, 65, "<g>" +
|
|
57927
|
-
"<rect x=\"0\" y=\"0\" width=\"47\" height=\"65\" fill=\"#fff\" />" +
|
|
57928
|
-
"</g>", 1, 1, 45, 63);
|
|
57946
|
+
DThemeWhiteAtlas.add("picker_color_recent_checkerboard", 18, 18, newWhiteSvgRoundedCheckerboard(18, 18));
|
|
57947
|
+
DThemeWhiteAtlas.add("picker_color_recent", 18, 18, newSvgRoundedRect(0, 0, 18, 18, "#fff", "#eee", 1));
|
|
57948
|
+
DThemeWhiteAtlas.add("picker_color_sample_checkerboard", 42, 66, newWhiteSvgRoundedCheckerboard(42, 66, "#fff", 1, 0));
|
|
57949
|
+
DThemeWhiteAtlas.add("picker_color_sample", 42, 66, newSvgRoundedRect(0, 0, 42, 66, "#fff", "#eee", 1));
|
|
57929
57950
|
DThemeWhiteAtlas.add("picker_color_anchor_outlined", 25.8, 25.8, "<circle cx=\"12.9\" cy=\"12.9\" r=\"8.4\" stroke=\"none\" fill=\"#ffffff\" />" +
|
|
57930
57951
|
"<circle cx=\"12.9\" cy=\"12.9\" r=\"9.6\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />");
|
|
57931
57952
|
DThemeWhiteAtlas.add("picker_color_anchor", 28.2, 28.2, "<circle cx=\"14.1\" cy=\"14.1\" r=\"6\" stroke=\"none\" fill=\"#ffffff\" />" +
|
|
@@ -57933,9 +57954,7 @@ DThemeWhiteAtlas.add("picker_color_anchor", 28.2, 28.2, "<circle cx=\"14.1\" cy=
|
|
|
57933
57954
|
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\" />" +
|
|
57934
57955
|
"<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\" />" +
|
|
57935
57956
|
"<rect x=\"0.6\" y=\"24.6\" width=\"11.4375\" height=\"1.2\" rx=\"0.6\" ry=\"0.6\" stroke=\"none\" fill=\"#5f5f5f\" />");
|
|
57936
|
-
DThemeWhiteAtlas.add("picker_color_standard", 18, 18, "
|
|
57937
|
-
"<rect x=\"0\" y=\"0\" width=\"18\" height=\"18\" fill=\"#fff\" stroke-width=\"1\" stroke=\"#eee\" />" +
|
|
57938
|
-
"</g>");
|
|
57957
|
+
DThemeWhiteAtlas.add("picker_color_standard", 18, 18, newSvgRoundedRect(0, 0, 18, 18, "#fff", "#eee", 1));
|
|
57939
57958
|
/* eslint-enable prettier/prettier */
|
|
57940
57959
|
var DThemeWhitePickerColor = /** @class */ (function (_super) {
|
|
57941
57960
|
__extends(DThemeWhitePickerColor, _super);
|
|
@@ -58027,7 +58046,16 @@ var DThemeWhitePickerColor = /** @class */ (function (_super) {
|
|
|
58027
58046
|
return this.getBaseMargin();
|
|
58028
58047
|
};
|
|
58029
58048
|
DThemeWhitePickerColor.prototype.getInputLabelWidth = function () {
|
|
58030
|
-
return
|
|
58049
|
+
return 18;
|
|
58050
|
+
};
|
|
58051
|
+
DThemeWhitePickerColor.prototype.getSampleWidth = function () {
|
|
58052
|
+
return 42;
|
|
58053
|
+
};
|
|
58054
|
+
DThemeWhitePickerColor.prototype.getSampleHeight = function () {
|
|
58055
|
+
return 66;
|
|
58056
|
+
};
|
|
58057
|
+
DThemeWhitePickerColor.prototype.getSampleMargin = function () {
|
|
58058
|
+
return this.getBaseMargin();
|
|
58031
58059
|
};
|
|
58032
58060
|
DThemeWhitePickerColor.prototype.getSampleCheckerboardOldTexture = function () {
|
|
58033
58061
|
return DThemeWhiteAtlas.mappings.picker_color_sample_checkerboard;
|
|
@@ -58441,12 +58469,8 @@ var DColorGradientObservable = /** @class */ (function (_super) {
|
|
|
58441
58469
|
* Copyright (C) 2019 Toshiba Corporation
|
|
58442
58470
|
* SPDX-License-Identifier: Apache-2.0
|
|
58443
58471
|
*/
|
|
58444
|
-
// Material Design icons by Google.
|
|
58445
|
-
// Apache license version 2.0.
|
|
58446
58472
|
/* eslint-disable prettier/prettier */
|
|
58447
|
-
DThemeWhiteAtlas.add("button_color_gradient_sample", 21, 21,
|
|
58448
|
-
"<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\"/>" +
|
|
58449
|
-
"</g>");
|
|
58473
|
+
DThemeWhiteAtlas.add("button_color_gradient_sample", 21, 21, newSvgRoundedRect(3, 3, 15, 15, "#fff", "#eee", 1));
|
|
58450
58474
|
/* eslint-enable prettier/prettier */
|
|
58451
58475
|
var formatter$i = function () {
|
|
58452
58476
|
return "";
|
|
@@ -60627,8 +60651,13 @@ var DThemeWhiteTableBodyCells = /** @class */ (function () {
|
|
|
60627
60651
|
return DThemeWhiteConstants.COLOR;
|
|
60628
60652
|
};
|
|
60629
60653
|
DThemeWhiteTableBodyCells.getAlpha = function (state) {
|
|
60630
|
-
if (state.
|
|
60631
|
-
|
|
60654
|
+
if (state.in(DTableState.HAS_DATA)) {
|
|
60655
|
+
if (state.inEnabled) {
|
|
60656
|
+
return 1.0;
|
|
60657
|
+
}
|
|
60658
|
+
else {
|
|
60659
|
+
return 0.5;
|
|
60660
|
+
}
|
|
60632
60661
|
}
|
|
60633
60662
|
return 0;
|
|
60634
60663
|
};
|
|
@@ -68814,12 +68843,8 @@ var loadThemeDark = function () {
|
|
|
68814
68843
|
* Copyright (C) 2019 Toshiba Corporation
|
|
68815
68844
|
* SPDX-License-Identifier: Apache-2.0
|
|
68816
68845
|
*/
|
|
68817
|
-
// Material Design icons by Google.
|
|
68818
|
-
// Apache license version 2.0.
|
|
68819
68846
|
/* eslint-disable prettier/prettier */
|
|
68820
|
-
DThemeDarkAtlas.add("button_color_sample", 21, 21,
|
|
68821
|
-
"<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\"/>" +
|
|
68822
|
-
"</g>");
|
|
68847
|
+
DThemeDarkAtlas.add("button_color_sample", 21, 21, newSvgRoundedRect(3, 3, 15, 15, "#fff", "#eee", 1));
|
|
68823
68848
|
/* eslint-enable prettier/prettier */
|
|
68824
68849
|
var formatter$8 = function (colorAndAlpha) {
|
|
68825
68850
|
return "#".concat(UtilRgb.toCode(colorAndAlpha.color), " A").concat(colorAndAlpha.alpha.toFixed(2));
|
|
@@ -68830,7 +68855,7 @@ var DThemeDarkButtonColor = /** @class */ (function (_super) {
|
|
|
68830
68855
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
68831
68856
|
}
|
|
68832
68857
|
DThemeDarkButtonColor.prototype.getImageTintColor = function (state) {
|
|
68833
|
-
return
|
|
68858
|
+
return 0xffffff;
|
|
68834
68859
|
};
|
|
68835
68860
|
DThemeDarkButtonColor.prototype.getImageSource = function (state) {
|
|
68836
68861
|
return DThemeDarkAtlas.mappings.button_color_sample;
|
|
@@ -68859,25 +68884,16 @@ var DThemeDarkDialogColor = /** @class */ (function (_super) {
|
|
|
68859
68884
|
return DThemeDarkDialogColor;
|
|
68860
68885
|
}(DThemeDarkDialogFitted));
|
|
68861
68886
|
|
|
68887
|
+
var newDarkSvgRoundedCheckerboard = function (width, height, stroke, strokeWidth, strokeOpacity) {
|
|
68888
|
+
return newSvgRoundedCheckerboard(width, height, "#5f5f5f", "#454545", stroke, strokeWidth, strokeOpacity);
|
|
68889
|
+
};
|
|
68890
|
+
|
|
68862
68891
|
/*
|
|
68863
68892
|
* Copyright (C) 2019 Toshiba Corporation
|
|
68864
68893
|
* SPDX-License-Identifier: Apache-2.0
|
|
68865
68894
|
*/
|
|
68866
|
-
var makeCheckerboard = function (width, height) {
|
|
68867
|
-
var LIGHT = "#5f5f5f";
|
|
68868
|
-
var DARK = "#454545";
|
|
68869
|
-
var result = "<g>";
|
|
68870
|
-
for (var ih = 0; ih < height; ++ih) {
|
|
68871
|
-
for (var iw = 0; iw < width; ++iw) {
|
|
68872
|
-
var color = (iw + ih) % 2 === 0 ? LIGHT : DARK;
|
|
68873
|
-
result += "<rect x=\"".concat(9 * iw, "\" y=\"").concat(9 * ih, "\" width=\"9\" height=\"9\" fill=\"").concat(color, "\" />");
|
|
68874
|
-
}
|
|
68875
|
-
}
|
|
68876
|
-
result += "</g>";
|
|
68877
|
-
return result;
|
|
68878
|
-
};
|
|
68879
68895
|
/* eslint-disable prettier/prettier */
|
|
68880
|
-
DThemeDarkAtlas.add("picker_color_main",
|
|
68896
|
+
DThemeDarkAtlas.add("picker_color_main", 234, 162, "<g>" +
|
|
68881
68897
|
"<linearGradient id=\"fs7w3iusfdnb\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">" +
|
|
68882
68898
|
"<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>" +
|
|
68883
68899
|
"<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>" +
|
|
@@ -68886,13 +68902,11 @@ DThemeDarkAtlas.add("picker_color_main", 236, 164, "<g>" +
|
|
|
68886
68902
|
"<stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"0\"/>" +
|
|
68887
68903
|
"<stop stop-color=\"#000000\" stop-opacity=\"1\" offset=\"1\"/>" +
|
|
68888
68904
|
"</linearGradient>" +
|
|
68889
|
-
|
|
68890
|
-
|
|
68891
|
-
"</g>"
|
|
68892
|
-
DThemeDarkAtlas.add("picker_color_main_base",
|
|
68893
|
-
|
|
68894
|
-
"</g>", 1, 1, 234, 162);
|
|
68895
|
-
DThemeDarkAtlas.add("picker_color_alpha_checkerboard", 234, 18, makeCheckerboard(26, 2));
|
|
68905
|
+
newSvgRoundedRect(0, 0, 234, 162, "url(#fs7w3iusfdnb)") +
|
|
68906
|
+
newSvgRoundedRect(0, 0, 234, 162, "url(#2rfcfe9874bw)") +
|
|
68907
|
+
"</g>");
|
|
68908
|
+
DThemeDarkAtlas.add("picker_color_main_base", 234, 162, "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />");
|
|
68909
|
+
DThemeDarkAtlas.add("picker_color_alpha_checkerboard", 234, 18, newDarkSvgRoundedCheckerboard(234, 18));
|
|
68896
68910
|
DThemeDarkAtlas.add("picker_color_alpha", 234, 18, "<g>" +
|
|
68897
68911
|
"<linearGradient id=\"s48afbuh44\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">" +
|
|
68898
68912
|
"<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>" +
|
|
@@ -68910,20 +68924,15 @@ DThemeDarkAtlas.add("picker_color_base", 234, 18, "<g>" +
|
|
|
68910
68924
|
"<stop stop-color=\"#FF00FF\" offset=\"0.833\"/>" +
|
|
68911
68925
|
"<stop stop-color=\"#FF0000\" offset=\"1\"/>" +
|
|
68912
68926
|
"</linearGradient>" +
|
|
68913
|
-
|
|
68927
|
+
newSvgRoundedRect(0, 0, 234, 18, "url(#ni2rbisdf3)") +
|
|
68914
68928
|
"</g>");
|
|
68915
68929
|
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\" />");
|
|
68916
68930
|
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\" />" +
|
|
68917
68931
|
"<circle cx=\"12.9\" cy=\"12.9\" r=\"7.2\" stroke=\"#ffffff\" stroke-width=\"2.4\" fill=\"none\" />");
|
|
68918
|
-
DThemeDarkAtlas.add("picker_color_recent_checkerboard",
|
|
68919
|
-
DThemeDarkAtlas.add("picker_color_recent",
|
|
68920
|
-
|
|
68921
|
-
|
|
68922
|
-
"</g>", 9, 9, 18, 18);
|
|
68923
|
-
DThemeDarkAtlas.add("picker_color_sample_checkerboard", 45, 63, makeCheckerboard(5, 7));
|
|
68924
|
-
DThemeDarkAtlas.add("picker_color_sample", 47, 65, "<g>" +
|
|
68925
|
-
"<rect x=\"0\" y=\"0\" width=\"47\" height=\"65\" fill=\"#fff\" />" +
|
|
68926
|
-
"</g>", 1, 1, 45, 63);
|
|
68932
|
+
DThemeDarkAtlas.add("picker_color_recent_checkerboard", 18, 18, newDarkSvgRoundedCheckerboard(18, 18));
|
|
68933
|
+
DThemeDarkAtlas.add("picker_color_recent", 18, 18, newSvgRoundedRect(0, 0, 18, 18, "#fff", "#eee", 1));
|
|
68934
|
+
DThemeDarkAtlas.add("picker_color_sample_checkerboard", 42, 66, newDarkSvgRoundedCheckerboard(42, 66, "#fff", 1, 0));
|
|
68935
|
+
DThemeDarkAtlas.add("picker_color_sample", 42, 66, newSvgRoundedRect(0, 0, 42, 66, "#fff", "#eee", 1));
|
|
68927
68936
|
DThemeDarkAtlas.add("picker_color_anchor_outlined", 25.8, 25.8, "<circle cx=\"12.9\" cy=\"12.9\" r=\"8.4\" stroke=\"none\" fill=\"#ffffff\" />" +
|
|
68928
68937
|
"<circle cx=\"12.9\" cy=\"12.9\" r=\"9.6\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />");
|
|
68929
68938
|
DThemeDarkAtlas.add("picker_color_anchor", 28.2, 28.2, "<circle cx=\"14.1\" cy=\"14.1\" r=\"6\" stroke=\"none\" fill=\"#ffffff\" />" +
|
|
@@ -68931,9 +68940,7 @@ DThemeDarkAtlas.add("picker_color_anchor", 28.2, 28.2, "<circle cx=\"14.1\" cy=\
|
|
|
68931
68940
|
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\" />" +
|
|
68932
68941
|
"<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\" />" +
|
|
68933
68942
|
"<rect x=\"0.6\" y=\"24.6\" width=\"11.4375\" height=\"1.2\" rx=\"0.6\" ry=\"0.6\" stroke=\"none\" fill=\"#5f5f5f\" />");
|
|
68934
|
-
DThemeDarkAtlas.add("picker_color_standard", 18, 18, "
|
|
68935
|
-
"<rect x=\"0\" y=\"0\" width=\"18\" height=\"18\" fill=\"#fff\" stroke-width=\"1\" stroke=\"#eee\" />" +
|
|
68936
|
-
"</g>");
|
|
68943
|
+
DThemeDarkAtlas.add("picker_color_standard", 18, 18, newSvgRoundedRect(0, 0, 18, 18, "#fff", "#eee", 1));
|
|
68937
68944
|
/* eslint-enable prettier/prettier */
|
|
68938
68945
|
var DThemeDarkPickerColor = /** @class */ (function (_super) {
|
|
68939
68946
|
__extends(DThemeDarkPickerColor, _super);
|
|
@@ -69025,7 +69032,16 @@ var DThemeDarkPickerColor = /** @class */ (function (_super) {
|
|
|
69025
69032
|
return this.getBaseMargin();
|
|
69026
69033
|
};
|
|
69027
69034
|
DThemeDarkPickerColor.prototype.getInputLabelWidth = function () {
|
|
69028
|
-
return
|
|
69035
|
+
return 18;
|
|
69036
|
+
};
|
|
69037
|
+
DThemeDarkPickerColor.prototype.getSampleWidth = function () {
|
|
69038
|
+
return 42;
|
|
69039
|
+
};
|
|
69040
|
+
DThemeDarkPickerColor.prototype.getSampleHeight = function () {
|
|
69041
|
+
return 66;
|
|
69042
|
+
};
|
|
69043
|
+
DThemeDarkPickerColor.prototype.getSampleMargin = function () {
|
|
69044
|
+
return this.getBaseMargin();
|
|
69029
69045
|
};
|
|
69030
69046
|
DThemeDarkPickerColor.prototype.getSampleCheckerboardOldTexture = function () {
|
|
69031
69047
|
return DThemeDarkAtlas.mappings.picker_color_sample_checkerboard;
|
|
@@ -69120,12 +69136,8 @@ var loadThemeDarkEnUsButtonColor = function () {
|
|
|
69120
69136
|
* Copyright (C) 2019 Toshiba Corporation
|
|
69121
69137
|
* SPDX-License-Identifier: Apache-2.0
|
|
69122
69138
|
*/
|
|
69123
|
-
// Material Design icons by Google.
|
|
69124
|
-
// Apache license version 2.0.
|
|
69125
69139
|
/* eslint-disable prettier/prettier */
|
|
69126
|
-
DThemeDarkAtlas.add("button_color_gradient_sample", 21, 21,
|
|
69127
|
-
"<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\"/>" +
|
|
69128
|
-
"</g>");
|
|
69140
|
+
DThemeDarkAtlas.add("button_color_gradient_sample", 21, 21, newSvgRoundedRect(3, 3, 15, 15, "#fff", "#eee", 1));
|
|
69129
69141
|
/* eslint-enable prettier/prettier */
|
|
69130
69142
|
var formatter$7 = function () {
|
|
69131
69143
|
return "";
|
|
@@ -71208,8 +71220,13 @@ var DThemeDarkTableBodyCells = /** @class */ (function () {
|
|
|
71208
71220
|
return DThemeDarkConstants.COLOR;
|
|
71209
71221
|
};
|
|
71210
71222
|
DThemeDarkTableBodyCells.getAlpha = function (state) {
|
|
71211
|
-
if (state.
|
|
71212
|
-
|
|
71223
|
+
if (state.in(DTableState.HAS_DATA)) {
|
|
71224
|
+
if (state.inEnabled) {
|
|
71225
|
+
return 1.0;
|
|
71226
|
+
}
|
|
71227
|
+
else {
|
|
71228
|
+
return 0.5;
|
|
71229
|
+
}
|
|
71213
71230
|
}
|
|
71214
71231
|
return 0;
|
|
71215
71232
|
};
|
|
@@ -77366,10 +77383,11 @@ var DPickerColor = /** @class */ (function (_super) {
|
|
|
77366
77383
|
});
|
|
77367
77384
|
this._inputAndLabelAlpha = inputAndLabelAlpha;
|
|
77368
77385
|
// Samples
|
|
77369
|
-
var sampleWidth = (
|
|
77370
|
-
var sampleHeight =
|
|
77386
|
+
var sampleWidth = theme.getSampleWidth();
|
|
77387
|
+
var sampleHeight = theme.getSampleHeight();
|
|
77371
77388
|
var sampleX = paddingLeft + (mainWidth - inputMargin) * 0.5 + inputMargin;
|
|
77372
77389
|
var sampleY = inputY + (inputHeight + inputMargin + inputAndLabelAlpha.height - sampleHeight) * 0.5;
|
|
77390
|
+
var sampleMargin = theme.getSampleMargin();
|
|
77373
77391
|
var sampleCurrentCheckerboardSprite = new pixi_js.Sprite(theme.getSampleCheckerboardOldTexture());
|
|
77374
77392
|
this._sampleCurrentCheckerboardSprite = sampleCurrentCheckerboardSprite;
|
|
77375
77393
|
sampleCurrentCheckerboardSprite.x = sampleX;
|
|
@@ -77396,7 +77414,7 @@ var DPickerColor = /** @class */ (function (_super) {
|
|
|
77396
77414
|
this.addChild(sampleCurrentSprite);
|
|
77397
77415
|
var sampleNewCheckerboardSprite = new pixi_js.Sprite(theme.getSampleCheckerboardNewTexture());
|
|
77398
77416
|
this._sampleNewCheckerboardSprite = sampleNewCheckerboardSprite;
|
|
77399
|
-
sampleNewCheckerboardSprite.x = sampleX + sampleWidth;
|
|
77417
|
+
sampleNewCheckerboardSprite.x = sampleX + sampleWidth + sampleMargin;
|
|
77400
77418
|
sampleNewCheckerboardSprite.y = sampleY;
|
|
77401
77419
|
sampleNewCheckerboardSprite.width = sampleWidth;
|
|
77402
77420
|
sampleNewCheckerboardSprite.height = sampleHeight;
|
|
@@ -77404,7 +77422,7 @@ var DPickerColor = /** @class */ (function (_super) {
|
|
|
77404
77422
|
this.addChild(sampleNewCheckerboardSprite);
|
|
77405
77423
|
var sampleNewSprite = new pixi_js.Sprite(theme.getSampleNewTexture());
|
|
77406
77424
|
this._sampleNewSprite = sampleNewSprite;
|
|
77407
|
-
sampleNewSprite.x = sampleX + sampleWidth;
|
|
77425
|
+
sampleNewSprite.x = sampleX + sampleWidth + sampleMargin;
|
|
77408
77426
|
sampleNewSprite.y = sampleY;
|
|
77409
77427
|
sampleNewSprite.tint = this._new.color;
|
|
77410
77428
|
sampleNewSprite.alpha = this._new.alpha;
|
|
@@ -96688,6 +96706,7 @@ var DTableBody = /** @class */ (function (_super) {
|
|
|
96688
96706
|
// State
|
|
96689
96707
|
var rowState = row.state;
|
|
96690
96708
|
rowState.lock();
|
|
96709
|
+
rowState.add(DTableState.HAS_DATA);
|
|
96691
96710
|
rowState.set(DTableState.SELECTABLE, isRowSelectable);
|
|
96692
96711
|
rowState.set(DBaseState.ACTIVE, selection.contains(unmappedIndex));
|
|
96693
96712
|
rowState.remove(DBaseState.DISABLED);
|
|
@@ -96703,7 +96722,7 @@ var DTableBody = /** @class */ (function (_super) {
|
|
|
96703
96722
|
var rowState = row.state;
|
|
96704
96723
|
rowState.lock();
|
|
96705
96724
|
rowState.add(DBaseState.DISABLED);
|
|
96706
|
-
rowState.removeAll(DTableState.SELECTABLE, DBaseState.ACTIVE);
|
|
96725
|
+
rowState.removeAll(DTableState.HAS_DATA, DTableState.SELECTABLE, DBaseState.ACTIVE);
|
|
96707
96726
|
rowState.unlock();
|
|
96708
96727
|
// Data
|
|
96709
96728
|
row.unset();
|
|
@@ -96716,7 +96735,7 @@ var DTableBody = /** @class */ (function (_super) {
|
|
|
96716
96735
|
var rowState = row.state;
|
|
96717
96736
|
rowState.lock();
|
|
96718
96737
|
rowState.add(DBaseState.DISABLED);
|
|
96719
|
-
rowState.removeAll(DTableState.SELECTABLE, DBaseState.ACTIVE);
|
|
96738
|
+
rowState.removeAll(DTableState.HAS_DATA, DTableState.SELECTABLE, DBaseState.ACTIVE);
|
|
96720
96739
|
rowState.unlock();
|
|
96721
96740
|
// Data
|
|
96722
96741
|
row.unset();
|
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.443.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -31774,6 +31774,7 @@
|
|
|
31774
31774
|
var textWidth = 0;
|
|
31775
31775
|
var textHeight = 0;
|
|
31776
31776
|
if (text != null) {
|
|
31777
|
+
text.setClippingDelta(leftSize + rightSize, topSize + bottomSize);
|
|
31777
31778
|
textWidth = text.width;
|
|
31778
31779
|
textHeight = text.height;
|
|
31779
31780
|
}
|
|
@@ -31808,7 +31809,6 @@
|
|
|
31808
31809
|
}
|
|
31809
31810
|
if (text != null) {
|
|
31810
31811
|
text.position.set(textX, textY);
|
|
31811
|
-
text.setClippingDelta(leftSize + rightSize, topSize + bottomSize);
|
|
31812
31812
|
}
|
|
31813
31813
|
left.execute(textX - leftSize);
|
|
31814
31814
|
center.execute(0, 0, textX * 2 + textWidth);
|
|
@@ -32853,18 +32853,13 @@
|
|
|
32853
32853
|
if (styleClipping || styleFitting || styleWordWrap) {
|
|
32854
32854
|
var parent_1 = this.parent;
|
|
32855
32855
|
if (parent_1 instanceof DBase) {
|
|
32856
|
-
var
|
|
32857
|
-
|
|
32858
|
-
parent_1.padding.getRight() -
|
|
32859
|
-
modifier.delta.width;
|
|
32856
|
+
var padding = parent_1.padding;
|
|
32857
|
+
var width = parent_1.width - padding.getLeft() - padding.getRight() - modifier.delta.width;
|
|
32860
32858
|
if (modifier.width !== width) {
|
|
32861
32859
|
modifier.width = width;
|
|
32862
32860
|
isChanged = true;
|
|
32863
32861
|
}
|
|
32864
|
-
var height = parent_1.height -
|
|
32865
|
-
parent_1.padding.getTop() -
|
|
32866
|
-
parent_1.padding.getBottom() -
|
|
32867
|
-
modifier.delta.height;
|
|
32862
|
+
var height = parent_1.height - padding.getTop() - padding.getBottom() - modifier.delta.height;
|
|
32868
32863
|
if (modifier.height !== height) {
|
|
32869
32864
|
modifier.height = height;
|
|
32870
32865
|
isChanged = true;
|
|
@@ -34262,8 +34257,16 @@
|
|
|
34262
34257
|
object.alpha = alpha;
|
|
34263
34258
|
result = true;
|
|
34264
34259
|
}
|
|
34260
|
+
if (!object.visible) {
|
|
34261
|
+
object.visible = true;
|
|
34262
|
+
result = true;
|
|
34263
|
+
}
|
|
34265
34264
|
return result;
|
|
34266
34265
|
}
|
|
34266
|
+
else if (object.visible) {
|
|
34267
|
+
object.visible = false;
|
|
34268
|
+
return true;
|
|
34269
|
+
}
|
|
34267
34270
|
}
|
|
34268
34271
|
}
|
|
34269
34272
|
return false;
|
|
@@ -56013,10 +56016,11 @@
|
|
|
56013
56016
|
});
|
|
56014
56017
|
this._inputAndLabelAlpha = inputAndLabelAlpha;
|
|
56015
56018
|
// Samples
|
|
56016
|
-
var sampleWidth = (
|
|
56017
|
-
var sampleHeight =
|
|
56019
|
+
var sampleWidth = theme.getSampleWidth();
|
|
56020
|
+
var sampleHeight = theme.getSampleHeight();
|
|
56018
56021
|
var sampleX = paddingLeft + (mainWidth - inputMargin) * 0.5 + inputMargin;
|
|
56019
56022
|
var sampleY = inputY + (inputHeight + inputMargin + inputAndLabelAlpha.height - sampleHeight) * 0.5;
|
|
56023
|
+
var sampleMargin = theme.getSampleMargin();
|
|
56020
56024
|
var sampleCurrentCheckerboardSprite = new pixi_js.Sprite(theme.getSampleCheckerboardOldTexture());
|
|
56021
56025
|
this._sampleCurrentCheckerboardSprite = sampleCurrentCheckerboardSprite;
|
|
56022
56026
|
sampleCurrentCheckerboardSprite.x = sampleX;
|
|
@@ -56043,7 +56047,7 @@
|
|
|
56043
56047
|
this.addChild(sampleCurrentSprite);
|
|
56044
56048
|
var sampleNewCheckerboardSprite = new pixi_js.Sprite(theme.getSampleCheckerboardNewTexture());
|
|
56045
56049
|
this._sampleNewCheckerboardSprite = sampleNewCheckerboardSprite;
|
|
56046
|
-
sampleNewCheckerboardSprite.x = sampleX + sampleWidth;
|
|
56050
|
+
sampleNewCheckerboardSprite.x = sampleX + sampleWidth + sampleMargin;
|
|
56047
56051
|
sampleNewCheckerboardSprite.y = sampleY;
|
|
56048
56052
|
sampleNewCheckerboardSprite.width = sampleWidth;
|
|
56049
56053
|
sampleNewCheckerboardSprite.height = sampleHeight;
|
|
@@ -56051,7 +56055,7 @@
|
|
|
56051
56055
|
this.addChild(sampleNewCheckerboardSprite);
|
|
56052
56056
|
var sampleNewSprite = new pixi_js.Sprite(theme.getSampleNewTexture());
|
|
56053
56057
|
this._sampleNewSprite = sampleNewSprite;
|
|
56054
|
-
sampleNewSprite.x = sampleX + sampleWidth;
|
|
56058
|
+
sampleNewSprite.x = sampleX + sampleWidth + sampleMargin;
|
|
56055
56059
|
sampleNewSprite.y = sampleY;
|
|
56056
56060
|
sampleNewSprite.tint = this._new.color;
|
|
56057
56061
|
sampleNewSprite.alpha = this._new.alpha;
|
|
@@ -73319,6 +73323,10 @@
|
|
|
73319
73323
|
* Cells of a right-most frozen column.
|
|
73320
73324
|
*/
|
|
73321
73325
|
FROZEN_END: "FROZEN_END",
|
|
73326
|
+
/**
|
|
73327
|
+
* Rows with data
|
|
73328
|
+
*/
|
|
73329
|
+
HAS_DATA: "HAS_DATA",
|
|
73322
73330
|
/**
|
|
73323
73331
|
* Header cells of sortable columns.
|
|
73324
73332
|
*/
|
|
@@ -75528,6 +75536,7 @@
|
|
|
75528
75536
|
// State
|
|
75529
75537
|
var rowState = row.state;
|
|
75530
75538
|
rowState.lock();
|
|
75539
|
+
rowState.add(DTableState.HAS_DATA);
|
|
75531
75540
|
rowState.set(DTableState.SELECTABLE, isRowSelectable);
|
|
75532
75541
|
rowState.set(DBaseState.ACTIVE, selection.contains(unmappedIndex));
|
|
75533
75542
|
rowState.remove(DBaseState.DISABLED);
|
|
@@ -75543,7 +75552,7 @@
|
|
|
75543
75552
|
var rowState = row.state;
|
|
75544
75553
|
rowState.lock();
|
|
75545
75554
|
rowState.add(DBaseState.DISABLED);
|
|
75546
|
-
rowState.removeAll(DTableState.SELECTABLE, DBaseState.ACTIVE);
|
|
75555
|
+
rowState.removeAll(DTableState.HAS_DATA, DTableState.SELECTABLE, DBaseState.ACTIVE);
|
|
75547
75556
|
rowState.unlock();
|
|
75548
75557
|
// Data
|
|
75549
75558
|
row.unset();
|
|
@@ -75556,7 +75565,7 @@
|
|
|
75556
75565
|
var rowState = row.state;
|
|
75557
75566
|
rowState.lock();
|
|
75558
75567
|
rowState.add(DBaseState.DISABLED);
|
|
75559
|
-
rowState.removeAll(DTableState.SELECTABLE, DBaseState.ACTIVE);
|
|
75568
|
+
rowState.removeAll(DTableState.HAS_DATA, DTableState.SELECTABLE, DBaseState.ACTIVE);
|
|
75560
75569
|
rowState.unlock();
|
|
75561
75570
|
// Data
|
|
75562
75571
|
row.unset();
|