@visactor/vseed 0.0.27 → 0.0.28
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/builder/builder/builder.d.ts +48 -0
- package/dist/index.cjs +31 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +31 -32
- package/dist/index.js.map +1 -1
- package/dist/types/advancedVSeed.d.ts +12 -0
- package/dist/types/properties/config/config.d.ts +12 -0
- package/dist/types/properties/theme/customTheme.d.ts +12 -0
- package/dist/umd/index.js +34 -357
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -2
package/dist/umd/index.js
CHANGED
@@ -294,7 +294,7 @@
|
|
294
294
|
defineLazy: ()=>defineLazy,
|
295
295
|
esc: ()=>esc,
|
296
296
|
escapeRegex: ()=>escapeRegex,
|
297
|
-
extend: ()=>
|
297
|
+
extend: ()=>extend,
|
298
298
|
finalizeIssue: ()=>finalizeIssue,
|
299
299
|
floatSafeRemainder: ()=>floatSafeRemainder,
|
300
300
|
getElementAtPath: ()=>getElementAtPath,
|
@@ -6969,345 +6969,20 @@
|
|
6969
6969
|
}))
|
6970
6970
|
};
|
6971
6971
|
};
|
6972
|
-
function src_define(constructor, factory, prototype) {
|
6973
|
-
constructor.prototype = factory.prototype = prototype;
|
6974
|
-
prototype.constructor = constructor;
|
6975
|
-
}
|
6976
|
-
function extend(parent, definition) {
|
6977
|
-
var prototype = Object.create(parent.prototype);
|
6978
|
-
for(var key in definition)prototype[key] = definition[key];
|
6979
|
-
return prototype;
|
6980
|
-
}
|
6981
|
-
function Color() {}
|
6982
|
-
var darker = 0.7;
|
6983
|
-
var brighter = 1 / darker;
|
6984
|
-
var reI = "\\s*([+-]?\\d+)\\s*", reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex = /^#([0-9a-f]{3,8})$/, reRgbInteger = new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`), reRgbPercent = new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`), reRgbaInteger = new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`), reRgbaPercent = new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`), reHslPercent = new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`), reHslaPercent = new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`);
|
6985
|
-
var named = {
|
6986
|
-
aliceblue: 0xf0f8ff,
|
6987
|
-
antiquewhite: 0xfaebd7,
|
6988
|
-
aqua: 0x00ffff,
|
6989
|
-
aquamarine: 0x7fffd4,
|
6990
|
-
azure: 0xf0ffff,
|
6991
|
-
beige: 0xf5f5dc,
|
6992
|
-
bisque: 0xffe4c4,
|
6993
|
-
black: 0x000000,
|
6994
|
-
blanchedalmond: 0xffebcd,
|
6995
|
-
blue: 0x0000ff,
|
6996
|
-
blueviolet: 0x8a2be2,
|
6997
|
-
brown: 0xa52a2a,
|
6998
|
-
burlywood: 0xdeb887,
|
6999
|
-
cadetblue: 0x5f9ea0,
|
7000
|
-
chartreuse: 0x7fff00,
|
7001
|
-
chocolate: 0xd2691e,
|
7002
|
-
coral: 0xff7f50,
|
7003
|
-
cornflowerblue: 0x6495ed,
|
7004
|
-
cornsilk: 0xfff8dc,
|
7005
|
-
crimson: 0xdc143c,
|
7006
|
-
cyan: 0x00ffff,
|
7007
|
-
darkblue: 0x00008b,
|
7008
|
-
darkcyan: 0x008b8b,
|
7009
|
-
darkgoldenrod: 0xb8860b,
|
7010
|
-
darkgray: 0xa9a9a9,
|
7011
|
-
darkgreen: 0x006400,
|
7012
|
-
darkgrey: 0xa9a9a9,
|
7013
|
-
darkkhaki: 0xbdb76b,
|
7014
|
-
darkmagenta: 0x8b008b,
|
7015
|
-
darkolivegreen: 0x556b2f,
|
7016
|
-
darkorange: 0xff8c00,
|
7017
|
-
darkorchid: 0x9932cc,
|
7018
|
-
darkred: 0x8b0000,
|
7019
|
-
darksalmon: 0xe9967a,
|
7020
|
-
darkseagreen: 0x8fbc8f,
|
7021
|
-
darkslateblue: 0x483d8b,
|
7022
|
-
darkslategray: 0x2f4f4f,
|
7023
|
-
darkslategrey: 0x2f4f4f,
|
7024
|
-
darkturquoise: 0x00ced1,
|
7025
|
-
darkviolet: 0x9400d3,
|
7026
|
-
deeppink: 0xff1493,
|
7027
|
-
deepskyblue: 0x00bfff,
|
7028
|
-
dimgray: 0x696969,
|
7029
|
-
dimgrey: 0x696969,
|
7030
|
-
dodgerblue: 0x1e90ff,
|
7031
|
-
firebrick: 0xb22222,
|
7032
|
-
floralwhite: 0xfffaf0,
|
7033
|
-
forestgreen: 0x228b22,
|
7034
|
-
fuchsia: 0xff00ff,
|
7035
|
-
gainsboro: 0xdcdcdc,
|
7036
|
-
ghostwhite: 0xf8f8ff,
|
7037
|
-
gold: 0xffd700,
|
7038
|
-
goldenrod: 0xdaa520,
|
7039
|
-
gray: 0x808080,
|
7040
|
-
green: 0x008000,
|
7041
|
-
greenyellow: 0xadff2f,
|
7042
|
-
grey: 0x808080,
|
7043
|
-
honeydew: 0xf0fff0,
|
7044
|
-
hotpink: 0xff69b4,
|
7045
|
-
indianred: 0xcd5c5c,
|
7046
|
-
indigo: 0x4b0082,
|
7047
|
-
ivory: 0xfffff0,
|
7048
|
-
khaki: 0xf0e68c,
|
7049
|
-
lavender: 0xe6e6fa,
|
7050
|
-
lavenderblush: 0xfff0f5,
|
7051
|
-
lawngreen: 0x7cfc00,
|
7052
|
-
lemonchiffon: 0xfffacd,
|
7053
|
-
lightblue: 0xadd8e6,
|
7054
|
-
lightcoral: 0xf08080,
|
7055
|
-
lightcyan: 0xe0ffff,
|
7056
|
-
lightgoldenrodyellow: 0xfafad2,
|
7057
|
-
lightgray: 0xd3d3d3,
|
7058
|
-
lightgreen: 0x90ee90,
|
7059
|
-
lightgrey: 0xd3d3d3,
|
7060
|
-
lightpink: 0xffb6c1,
|
7061
|
-
lightsalmon: 0xffa07a,
|
7062
|
-
lightseagreen: 0x20b2aa,
|
7063
|
-
lightskyblue: 0x87cefa,
|
7064
|
-
lightslategray: 0x778899,
|
7065
|
-
lightslategrey: 0x778899,
|
7066
|
-
lightsteelblue: 0xb0c4de,
|
7067
|
-
lightyellow: 0xffffe0,
|
7068
|
-
lime: 0x00ff00,
|
7069
|
-
limegreen: 0x32cd32,
|
7070
|
-
linen: 0xfaf0e6,
|
7071
|
-
magenta: 0xff00ff,
|
7072
|
-
maroon: 0x800000,
|
7073
|
-
mediumaquamarine: 0x66cdaa,
|
7074
|
-
mediumblue: 0x0000cd,
|
7075
|
-
mediumorchid: 0xba55d3,
|
7076
|
-
mediumpurple: 0x9370db,
|
7077
|
-
mediumseagreen: 0x3cb371,
|
7078
|
-
mediumslateblue: 0x7b68ee,
|
7079
|
-
mediumspringgreen: 0x00fa9a,
|
7080
|
-
mediumturquoise: 0x48d1cc,
|
7081
|
-
mediumvioletred: 0xc71585,
|
7082
|
-
midnightblue: 0x191970,
|
7083
|
-
mintcream: 0xf5fffa,
|
7084
|
-
mistyrose: 0xffe4e1,
|
7085
|
-
moccasin: 0xffe4b5,
|
7086
|
-
navajowhite: 0xffdead,
|
7087
|
-
navy: 0x000080,
|
7088
|
-
oldlace: 0xfdf5e6,
|
7089
|
-
olive: 0x808000,
|
7090
|
-
olivedrab: 0x6b8e23,
|
7091
|
-
orange: 0xffa500,
|
7092
|
-
orangered: 0xff4500,
|
7093
|
-
orchid: 0xda70d6,
|
7094
|
-
palegoldenrod: 0xeee8aa,
|
7095
|
-
palegreen: 0x98fb98,
|
7096
|
-
paleturquoise: 0xafeeee,
|
7097
|
-
palevioletred: 0xdb7093,
|
7098
|
-
papayawhip: 0xffefd5,
|
7099
|
-
peachpuff: 0xffdab9,
|
7100
|
-
peru: 0xcd853f,
|
7101
|
-
pink: 0xffc0cb,
|
7102
|
-
plum: 0xdda0dd,
|
7103
|
-
powderblue: 0xb0e0e6,
|
7104
|
-
purple: 0x800080,
|
7105
|
-
rebeccapurple: 0x663399,
|
7106
|
-
red: 0xff0000,
|
7107
|
-
rosybrown: 0xbc8f8f,
|
7108
|
-
royalblue: 0x4169e1,
|
7109
|
-
saddlebrown: 0x8b4513,
|
7110
|
-
salmon: 0xfa8072,
|
7111
|
-
sandybrown: 0xf4a460,
|
7112
|
-
seagreen: 0x2e8b57,
|
7113
|
-
seashell: 0xfff5ee,
|
7114
|
-
sienna: 0xa0522d,
|
7115
|
-
silver: 0xc0c0c0,
|
7116
|
-
skyblue: 0x87ceeb,
|
7117
|
-
slateblue: 0x6a5acd,
|
7118
|
-
slategray: 0x708090,
|
7119
|
-
slategrey: 0x708090,
|
7120
|
-
snow: 0xfffafa,
|
7121
|
-
springgreen: 0x00ff7f,
|
7122
|
-
steelblue: 0x4682b4,
|
7123
|
-
tan: 0xd2b48c,
|
7124
|
-
teal: 0x008080,
|
7125
|
-
thistle: 0xd8bfd8,
|
7126
|
-
tomato: 0xff6347,
|
7127
|
-
turquoise: 0x40e0d0,
|
7128
|
-
violet: 0xee82ee,
|
7129
|
-
wheat: 0xf5deb3,
|
7130
|
-
white: 0xffffff,
|
7131
|
-
whitesmoke: 0xf5f5f5,
|
7132
|
-
yellow: 0xffff00,
|
7133
|
-
yellowgreen: 0x9acd32
|
7134
|
-
};
|
7135
|
-
src_define(Color, src_color_color, {
|
7136
|
-
copy (channels) {
|
7137
|
-
return Object.assign(new this.constructor, this, channels);
|
7138
|
-
},
|
7139
|
-
displayable () {
|
7140
|
-
return this.rgb().displayable();
|
7141
|
-
},
|
7142
|
-
hex: color_formatHex,
|
7143
|
-
formatHex: color_formatHex,
|
7144
|
-
formatHex8: color_formatHex8,
|
7145
|
-
formatHsl: color_formatHsl,
|
7146
|
-
formatRgb: color_formatRgb,
|
7147
|
-
toString: color_formatRgb
|
7148
|
-
});
|
7149
|
-
function color_formatHex() {
|
7150
|
-
return this.rgb().formatHex();
|
7151
|
-
}
|
7152
|
-
function color_formatHex8() {
|
7153
|
-
return this.rgb().formatHex8();
|
7154
|
-
}
|
7155
|
-
function color_formatHsl() {
|
7156
|
-
return hslConvert(this).formatHsl();
|
7157
|
-
}
|
7158
|
-
function color_formatRgb() {
|
7159
|
-
return this.rgb().formatRgb();
|
7160
|
-
}
|
7161
|
-
function src_color_color(format) {
|
7162
|
-
var m, l;
|
7163
|
-
format = (format + "").trim().toLowerCase();
|
7164
|
-
return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), 6 === l ? rgbn(m) : 3 === l ? new Rgb(m >> 8 & 0xf | m >> 4 & 0xf0, m >> 4 & 0xf | 0xf0 & m, (0xf & m) << 4 | 0xf & m, 1) : 8 === l ? rgba(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (0xff & m) / 0xff) : 4 === l ? rgba(m >> 12 & 0xf | m >> 8 & 0xf0, m >> 8 & 0xf | m >> 4 & 0xf0, m >> 4 & 0xf | 0xf0 & m, ((0xf & m) << 4 | 0xf & m) / 0xff) : null) : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) : (m = reRgbPercent.exec(format)) ? new Rgb(255 * m[1] / 100, 255 * m[2] / 100, 255 * m[3] / 100, 1) : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) : (m = reRgbaPercent.exec(format)) ? rgba(255 * m[1] / 100, 255 * m[2] / 100, 255 * m[3] / 100, m[4]) : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) : named.hasOwnProperty(format) ? rgbn(named[format]) : "transparent" === format ? new Rgb(NaN, NaN, NaN, 0) : null;
|
7165
|
-
}
|
7166
|
-
function rgbn(n) {
|
7167
|
-
return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, 0xff & n, 1);
|
7168
|
-
}
|
7169
|
-
function rgba(r, g, b, a) {
|
7170
|
-
if (a <= 0) r = g = b = NaN;
|
7171
|
-
return new Rgb(r, g, b, a);
|
7172
|
-
}
|
7173
|
-
function rgbConvert(o) {
|
7174
|
-
if (!(o instanceof Color)) o = src_color_color(o);
|
7175
|
-
if (!o) return new Rgb;
|
7176
|
-
o = o.rgb();
|
7177
|
-
return new Rgb(o.r, o.g, o.b, o.opacity);
|
7178
|
-
}
|
7179
|
-
function rgb(r, g, b, opacity) {
|
7180
|
-
return 1 === arguments.length ? rgbConvert(r) : new Rgb(r, g, b, null == opacity ? 1 : opacity);
|
7181
|
-
}
|
7182
|
-
function Rgb(r, g, b, opacity) {
|
7183
|
-
this.r = +r;
|
7184
|
-
this.g = +g;
|
7185
|
-
this.b = +b;
|
7186
|
-
this.opacity = +opacity;
|
7187
|
-
}
|
7188
|
-
src_define(Rgb, rgb, extend(Color, {
|
7189
|
-
brighter (k) {
|
7190
|
-
k = null == k ? brighter : Math.pow(brighter, k);
|
7191
|
-
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
7192
|
-
},
|
7193
|
-
darker (k) {
|
7194
|
-
k = null == k ? darker : Math.pow(darker, k);
|
7195
|
-
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
7196
|
-
},
|
7197
|
-
rgb () {
|
7198
|
-
return this;
|
7199
|
-
},
|
7200
|
-
clamp () {
|
7201
|
-
return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
|
7202
|
-
},
|
7203
|
-
displayable () {
|
7204
|
-
return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
7205
|
-
},
|
7206
|
-
hex: rgb_formatHex,
|
7207
|
-
formatHex: rgb_formatHex,
|
7208
|
-
formatHex8: rgb_formatHex8,
|
7209
|
-
formatRgb: rgb_formatRgb,
|
7210
|
-
toString: rgb_formatRgb
|
7211
|
-
}));
|
7212
|
-
function rgb_formatHex() {
|
7213
|
-
return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`;
|
7214
|
-
}
|
7215
|
-
function rgb_formatHex8() {
|
7216
|
-
return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
7217
|
-
}
|
7218
|
-
function rgb_formatRgb() {
|
7219
|
-
const a = clampa(this.opacity);
|
7220
|
-
return `${1 === a ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${1 === a ? ")" : `, ${a})`}`;
|
7221
|
-
}
|
7222
|
-
function clampa(opacity) {
|
7223
|
-
return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity));
|
7224
|
-
}
|
7225
|
-
function clampi(value) {
|
7226
|
-
return Math.max(0, Math.min(255, Math.round(value) || 0));
|
7227
|
-
}
|
7228
|
-
function hex(value) {
|
7229
|
-
value = clampi(value);
|
7230
|
-
return (value < 16 ? "0" : "") + value.toString(16);
|
7231
|
-
}
|
7232
|
-
function hsla(h, s, l, a) {
|
7233
|
-
if (a <= 0) h = s = l = NaN;
|
7234
|
-
else if (l <= 0 || l >= 1) h = s = NaN;
|
7235
|
-
else if (s <= 0) h = NaN;
|
7236
|
-
return new Hsl(h, s, l, a);
|
7237
|
-
}
|
7238
|
-
function hslConvert(o) {
|
7239
|
-
if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
|
7240
|
-
if (!(o instanceof Color)) o = src_color_color(o);
|
7241
|
-
if (!o) return new Hsl;
|
7242
|
-
if (o instanceof Hsl) return o;
|
7243
|
-
o = o.rgb();
|
7244
|
-
var r = o.r / 255, g = o.g / 255, b = o.b / 255, min = Math.min(r, g, b), max = Math.max(r, g, b), h = NaN, s = max - min, l = (max + min) / 2;
|
7245
|
-
if (s) {
|
7246
|
-
h = r === max ? (g - b) / s + (g < b) * 6 : g === max ? (b - r) / s + 2 : (r - g) / s + 4;
|
7247
|
-
s /= l < 0.5 ? max + min : 2 - max - min;
|
7248
|
-
h *= 60;
|
7249
|
-
} else s = l > 0 && l < 1 ? 0 : h;
|
7250
|
-
return new Hsl(h, s, l, o.opacity);
|
7251
|
-
}
|
7252
|
-
function hsl(h, s, l, opacity) {
|
7253
|
-
return 1 === arguments.length ? hslConvert(h) : new Hsl(h, s, l, null == opacity ? 1 : opacity);
|
7254
|
-
}
|
7255
|
-
function Hsl(h, s, l, opacity) {
|
7256
|
-
this.h = +h;
|
7257
|
-
this.s = +s;
|
7258
|
-
this.l = +l;
|
7259
|
-
this.opacity = +opacity;
|
7260
|
-
}
|
7261
|
-
src_define(Hsl, hsl, extend(Color, {
|
7262
|
-
brighter (k) {
|
7263
|
-
k = null == k ? brighter : Math.pow(brighter, k);
|
7264
|
-
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
7265
|
-
},
|
7266
|
-
darker (k) {
|
7267
|
-
k = null == k ? darker : Math.pow(darker, k);
|
7268
|
-
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
7269
|
-
},
|
7270
|
-
rgb () {
|
7271
|
-
var h = this.h % 360 + (this.h < 0) * 360, s = isNaN(h) || isNaN(this.s) ? 0 : this.s, l = this.l, m2 = l + (l < 0.5 ? l : 1 - l) * s, m1 = 2 * l - m2;
|
7272
|
-
return new Rgb(hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity);
|
7273
|
-
},
|
7274
|
-
clamp () {
|
7275
|
-
return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
|
7276
|
-
},
|
7277
|
-
displayable () {
|
7278
|
-
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
7279
|
-
},
|
7280
|
-
formatHsl () {
|
7281
|
-
const a = clampa(this.opacity);
|
7282
|
-
return `${1 === a ? "hsl(" : "hsla("}${clamph(this.h)}, ${100 * clampt(this.s)}%, ${100 * clampt(this.l)}%${1 === a ? ")" : `, ${a})`}`;
|
7283
|
-
}
|
7284
|
-
}));
|
7285
|
-
function clamph(value) {
|
7286
|
-
value = (value || 0) % 360;
|
7287
|
-
return value < 0 ? value + 360 : value;
|
7288
|
-
}
|
7289
|
-
function clampt(value) {
|
7290
|
-
return Math.max(0, Math.min(1, value || 0));
|
7291
|
-
}
|
7292
|
-
function hsl2rgb(h, m1, m2) {
|
7293
|
-
return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
|
7294
|
-
}
|
7295
6972
|
const bodyStyle = (spec, context)=>{
|
7296
6973
|
const result = {
|
7297
6974
|
...spec
|
7298
6975
|
};
|
7299
6976
|
const { advancedVSeed } = context;
|
7300
6977
|
const { customTheme, chartType } = advancedVSeed;
|
7301
|
-
const
|
7302
|
-
if (!result.theme || !
|
7303
|
-
const borderColor =
|
7304
|
-
const backgroundColor =
|
7305
|
-
const fontColor =
|
7306
|
-
const fontSize =
|
7307
|
-
const hoverCellBgColor =
|
7308
|
-
const hoverInlineColor =
|
7309
|
-
opacity: 0.2
|
7310
|
-
}).toString();
|
6978
|
+
const themeConfig = customTheme?.config?.[chartType];
|
6979
|
+
if (!result.theme || !themeConfig) return result;
|
6980
|
+
const borderColor = themeConfig.borderColor || 'rgb(224, 224, 224)';
|
6981
|
+
const backgroundColor = themeConfig.bodyBackgroundColor || '#fff';
|
6982
|
+
const fontColor = themeConfig.bodyFontColor || '#1B1F23';
|
6983
|
+
const fontSize = themeConfig.bodyFontSize || 12;
|
6984
|
+
const hoverCellBgColor = themeConfig.hoverBodyBackgroundColor || '#bedaff';
|
6985
|
+
const hoverInlineColor = themeConfig.hoverBodyInlineBackgroundColor || '#bedaff';
|
7311
6986
|
result.theme.bodyStyle = {
|
7312
6987
|
borderColor: borderColor,
|
7313
6988
|
borderLineWidth: 1,
|
@@ -7346,7 +7021,7 @@
|
|
7346
7021
|
const fontColor = themConfig.headerFontColor || '#1B1F23';
|
7347
7022
|
const fontSize = themConfig.headerFontSize || 12;
|
7348
7023
|
const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff';
|
7349
|
-
const hoverInlineColor = themConfig.
|
7024
|
+
const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor || '#bedaff';
|
7350
7025
|
result.theme.headerStyle = {
|
7351
7026
|
borderColor: borderColor,
|
7352
7027
|
borderLineWidth: 1,
|
@@ -7358,9 +7033,7 @@
|
|
7358
7033
|
],
|
7359
7034
|
textAlign: 'center',
|
7360
7035
|
hover: {
|
7361
|
-
cellBgColor:
|
7362
|
-
opacity: 1
|
7363
|
-
}).brighter(0.5).toString(),
|
7036
|
+
cellBgColor: hoverCellBgColor,
|
7364
7037
|
inlineRowBgColor: hoverInlineColor,
|
7365
7038
|
inlineColumnBgColor: hoverInlineColor
|
7366
7039
|
},
|
@@ -7396,7 +7069,7 @@
|
|
7396
7069
|
const fontColor = themConfig.headerFontColor || '#1B1F23';
|
7397
7070
|
const fontSize = themConfig.headerFontSize || 12;
|
7398
7071
|
const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff';
|
7399
|
-
const hoverInlineColor = themConfig.
|
7072
|
+
const hoverInlineColor = themConfig.hoverBodyInlineBackgroundColor || '#bedaff';
|
7400
7073
|
result.theme.rowHeaderStyle = {
|
7401
7074
|
borderColor: borderColor,
|
7402
7075
|
borderLineWidth: 1,
|
@@ -7408,9 +7081,7 @@
|
|
7408
7081
|
],
|
7409
7082
|
textAlign: 'left',
|
7410
7083
|
hover: {
|
7411
|
-
cellBgColor:
|
7412
|
-
opacity: 1
|
7413
|
-
}).brighter(0.5).toString(),
|
7084
|
+
cellBgColor: hoverCellBgColor,
|
7414
7085
|
inlineRowBgColor: hoverInlineColor,
|
7415
7086
|
inlineColumnBgColor: hoverInlineColor
|
7416
7087
|
},
|
@@ -7445,8 +7116,8 @@
|
|
7445
7116
|
const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
|
7446
7117
|
const fontColor = themConfig.headerFontColor || '#1B1F23';
|
7447
7118
|
const fontSize = themConfig.headerFontSize || 12;
|
7448
|
-
const
|
7449
|
-
const
|
7119
|
+
const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor;
|
7120
|
+
const hoverCellColor = themConfig.hoverHeaderBackgroundColor;
|
7450
7121
|
result.theme.cornerHeaderStyle = {
|
7451
7122
|
borderColor: [
|
7452
7123
|
borderColor,
|
@@ -7461,9 +7132,7 @@
|
|
7461
7132
|
],
|
7462
7133
|
textAlign: 'left',
|
7463
7134
|
hover: {
|
7464
|
-
cellBgColor:
|
7465
|
-
opacity: 1
|
7466
|
-
}).brighter(0.5).toString(),
|
7135
|
+
cellBgColor: hoverCellColor,
|
7467
7136
|
inlineRowBgColor: hoverInlineColor,
|
7468
7137
|
inlineColumnBgColor: hoverInlineColor
|
7469
7138
|
},
|
@@ -7511,12 +7180,11 @@
|
|
7511
7180
|
const themConfig = customTheme?.config?.[chartType];
|
7512
7181
|
if (!result.theme || !themConfig) return result;
|
7513
7182
|
const borderColor = themConfig.selectedBorderColor || 'rgb(224, 224, 224)';
|
7183
|
+
const backgroundColor = themConfig.selectedBackgroundColor || 'rgb(224, 224, 224, 0.5)';
|
7514
7184
|
result.theme.selectionStyle = {
|
7515
7185
|
cellBorderColor: borderColor,
|
7516
7186
|
cellBorderLineWidth: 2,
|
7517
|
-
cellBgColor:
|
7518
|
-
opacity: 0.15
|
7519
|
-
}).toString()
|
7187
|
+
cellBgColor: backgroundColor
|
7520
7188
|
};
|
7521
7189
|
return result;
|
7522
7190
|
};
|
@@ -7896,8 +7564,11 @@
|
|
7896
7564
|
headerFontColor: '#21252c',
|
7897
7565
|
headerBackgroundColor: '#f6f7f9',
|
7898
7566
|
hoverBodyBackgroundColor: '#bedaff',
|
7899
|
-
|
7900
|
-
|
7567
|
+
hoverBodyInlineBackgroundColor: '#bedaff33',
|
7568
|
+
hoverHeaderBackgroundColor: '#D9DDE4',
|
7569
|
+
hoverHeaderInlineBackgroundColor: '#D9DDE455',
|
7570
|
+
selectedBorderColor: '#4080ffee',
|
7571
|
+
selectedBackgroundColor: '#4080ff10'
|
7901
7572
|
};
|
7902
7573
|
return {
|
7903
7574
|
config: {
|
@@ -8215,8 +7886,11 @@
|
|
8215
7886
|
headerFontColor: '#fdfdfd',
|
8216
7887
|
headerBackgroundColor: '#36393e',
|
8217
7888
|
hoverBodyBackgroundColor: '#4284ff66',
|
8218
|
-
|
8219
|
-
|
7889
|
+
hoverBodyInlineBackgroundColor: '#4284ff10',
|
7890
|
+
hoverHeaderBackgroundColor: '#6f7984cc',
|
7891
|
+
hoverHeaderInlineBackgroundColor: '#4b4f54',
|
7892
|
+
selectedBorderColor: '#3073F2',
|
7893
|
+
selectedBackgroundColor: '#3073F210'
|
8220
7894
|
};
|
8221
7895
|
return {
|
8222
7896
|
config: {
|
@@ -8867,7 +8541,7 @@
|
|
8867
8541
|
});
|
8868
8542
|
return clone(schema, def);
|
8869
8543
|
}
|
8870
|
-
function
|
8544
|
+
function extend(schema, shape) {
|
8871
8545
|
if (!isPlainObject(shape)) throw new Error("Invalid input to extend: expected a plain object");
|
8872
8546
|
const def = mergeDefs(schema._zod.def, {
|
8873
8547
|
get shape () {
|
@@ -12751,7 +12425,7 @@
|
|
12751
12425
|
...inst._zod.def,
|
12752
12426
|
catchall: void 0
|
12753
12427
|
});
|
12754
|
-
inst.extend = (incoming)=>
|
12428
|
+
inst.extend = (incoming)=>extend(inst, incoming);
|
12755
12429
|
inst.merge = (other)=>merge(inst, other);
|
12756
12430
|
inst.pick = (mask)=>pick(inst, mask);
|
12757
12431
|
inst.omit = (mask)=>omit(inst, mask);
|
@@ -13541,11 +13215,14 @@
|
|
13541
13215
|
bodyFontColor: schemas_string().optional(),
|
13542
13216
|
bodyBackgroundColor: schemas_string().optional(),
|
13543
13217
|
hoverBodyBackgroundColor: schemas_string().optional(),
|
13218
|
+
hoverBodyInlineBackgroundColor: schemas_string().optional(),
|
13544
13219
|
headerFontSize: schemas_number().optional(),
|
13545
13220
|
headerFontColor: schemas_string().optional(),
|
13546
13221
|
headerBackgroundColor: schemas_string().optional(),
|
13547
13222
|
hoverHeaderBackgroundColor: schemas_string().optional(),
|
13548
|
-
|
13223
|
+
hoverHeaderInlineBackgroundColor: schemas_string().optional(),
|
13224
|
+
selectedBorderColor: schemas_string().optional(),
|
13225
|
+
selectedBackgroundColor: schemas_string().optional()
|
13549
13226
|
});
|
13550
13227
|
const zPivotTableConfig = zTableConfig;
|
13551
13228
|
const zLineConfig = schemas_object({
|