genesys-spark-chart-components 4.140.0 → 4.141.1
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/cjs/{color-palette-9910bf5b.js → color-palette-7df53fed.js} +5 -5
- package/dist/cjs/gux-chart-column-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-line-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +129 -66
- package/dist/esm/{color-palette-8a725d18.js → color-palette-27e803d3.js} +5 -5
- package/dist/esm/gux-chart-column-beta.entry.js +1 -1
- package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
- package/dist/esm/gux-chart-line-beta.entry.js +1 -1
- package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
- package/dist/esm/gux-chart-scatter-plot-beta.entry.js +1 -1
- package/dist/esm/gux-visualization-beta.entry.js +129 -66
- package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
- package/dist/genesys-chart-webcomponents/{p-cbc13e16.js → p-06eaaf70.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-5603ae32.entry.js → p-07c83f5a.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-cc69b6a7.entry.js → p-09e72f83.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-2054a182.entry.js → p-21c39087.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-ef6604f0.entry.js → p-39846a2a.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-3baf1411.entry.js → p-759843fb.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-12381ef7.entry.js → p-d7821e5e.entry.js} +3 -3
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h as h$1, g as getElement } from './index-eabc38b4.js';
|
|
2
|
-
import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, t as trackComponent } from './color-palette-
|
|
2
|
+
import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, t as trackComponent } from './color-palette-27e803d3.js';
|
|
3
3
|
|
|
4
4
|
// Note: This regex matches even invalid JSON strings, but since we’re
|
|
5
5
|
// working on the output of `JSON.stringify` we know that only valid strings
|
|
@@ -35648,7 +35648,7 @@ const xf = /*#__PURE__*/Object.freeze({
|
|
|
35648
35648
|
});
|
|
35649
35649
|
|
|
35650
35650
|
const RawCode = 'RawCode';
|
|
35651
|
-
const Literal = 'Literal';
|
|
35651
|
+
const Literal$1 = 'Literal';
|
|
35652
35652
|
const Property = 'Property';
|
|
35653
35653
|
const Identifier = 'Identifier';
|
|
35654
35654
|
const ArrayExpression = 'ArrayExpression';
|
|
@@ -35689,7 +35689,7 @@ function children(node) {
|
|
|
35689
35689
|
case UnaryExpression:
|
|
35690
35690
|
return [node.argument];
|
|
35691
35691
|
case Identifier:
|
|
35692
|
-
case Literal:
|
|
35692
|
+
case Literal$1:
|
|
35693
35693
|
case RawCode:
|
|
35694
35694
|
default:
|
|
35695
35695
|
return [];
|
|
@@ -35731,26 +35731,26 @@ function children(node) {
|
|
|
35731
35731
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
35732
35732
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
35733
35733
|
*/
|
|
35734
|
-
var TokenName, source, index, length, lookahead;
|
|
35735
|
-
var TokenBooleanLiteral = 1,
|
|
35736
|
-
TokenEOF = 2,
|
|
35737
|
-
TokenIdentifier = 3,
|
|
35738
|
-
TokenKeyword = 4,
|
|
35739
|
-
TokenNullLiteral = 5,
|
|
35740
|
-
TokenNumericLiteral = 6,
|
|
35741
|
-
TokenPunctuator = 7,
|
|
35742
|
-
TokenStringLiteral = 8,
|
|
35743
|
-
TokenRegularExpression = 9;
|
|
35744
|
-
TokenName = {};
|
|
35745
|
-
TokenName[TokenBooleanLiteral] = 'Boolean';
|
|
35746
|
-
TokenName[TokenEOF] = '<end>';
|
|
35747
|
-
TokenName[TokenIdentifier] = 'Identifier';
|
|
35748
|
-
TokenName[TokenKeyword] = 'Keyword';
|
|
35749
|
-
TokenName[TokenNullLiteral] = 'Null';
|
|
35750
|
-
TokenName[TokenNumericLiteral] = 'Numeric';
|
|
35751
|
-
TokenName[TokenPunctuator] = 'Punctuator';
|
|
35752
|
-
TokenName[TokenStringLiteral] = 'String';
|
|
35753
|
-
TokenName[TokenRegularExpression] = 'RegularExpression';
|
|
35734
|
+
var TokenName$1, source, index, length, lookahead;
|
|
35735
|
+
var TokenBooleanLiteral$1 = 1,
|
|
35736
|
+
TokenEOF$1 = 2,
|
|
35737
|
+
TokenIdentifier$1 = 3,
|
|
35738
|
+
TokenKeyword$1 = 4,
|
|
35739
|
+
TokenNullLiteral$1 = 5,
|
|
35740
|
+
TokenNumericLiteral$1 = 6,
|
|
35741
|
+
TokenPunctuator$1 = 7,
|
|
35742
|
+
TokenStringLiteral$1 = 8,
|
|
35743
|
+
TokenRegularExpression$1 = 9;
|
|
35744
|
+
TokenName$1 = {};
|
|
35745
|
+
TokenName$1[TokenBooleanLiteral$1] = 'Boolean';
|
|
35746
|
+
TokenName$1[TokenEOF$1] = '<end>';
|
|
35747
|
+
TokenName$1[TokenIdentifier$1] = 'Identifier';
|
|
35748
|
+
TokenName$1[TokenKeyword$1] = 'Keyword';
|
|
35749
|
+
TokenName$1[TokenNullLiteral$1] = 'Null';
|
|
35750
|
+
TokenName$1[TokenNumericLiteral$1] = 'Numeric';
|
|
35751
|
+
TokenName$1[TokenPunctuator$1] = 'Punctuator';
|
|
35752
|
+
TokenName$1[TokenStringLiteral$1] = 'String';
|
|
35753
|
+
TokenName$1[TokenRegularExpression$1] = 'RegularExpression';
|
|
35754
35754
|
var SyntaxArrayExpression = 'ArrayExpression',
|
|
35755
35755
|
SyntaxBinaryExpression = 'BinaryExpression',
|
|
35756
35756
|
SyntaxCallExpression = 'CallExpression',
|
|
@@ -36011,16 +36011,16 @@ function scanIdentifier() {
|
|
|
36011
36011
|
// There is no keyword or literal with only one character.
|
|
36012
36012
|
// Thus, it must be an identifier.
|
|
36013
36013
|
if (id.length === 1) {
|
|
36014
|
-
type = TokenIdentifier;
|
|
36014
|
+
type = TokenIdentifier$1;
|
|
36015
36015
|
} else if (keywords$2.hasOwnProperty(id)) {
|
|
36016
36016
|
// eslint-disable-line no-prototype-builtins
|
|
36017
|
-
type = TokenKeyword;
|
|
36017
|
+
type = TokenKeyword$1;
|
|
36018
36018
|
} else if (id === 'null') {
|
|
36019
|
-
type = TokenNullLiteral;
|
|
36019
|
+
type = TokenNullLiteral$1;
|
|
36020
36020
|
} else if (id === 'true' || id === 'false') {
|
|
36021
|
-
type = TokenBooleanLiteral;
|
|
36021
|
+
type = TokenBooleanLiteral$1;
|
|
36022
36022
|
} else {
|
|
36023
|
-
type = TokenIdentifier;
|
|
36023
|
+
type = TokenIdentifier$1;
|
|
36024
36024
|
}
|
|
36025
36025
|
return {
|
|
36026
36026
|
type: type,
|
|
@@ -36057,7 +36057,7 @@ function scanPunctuator() {
|
|
|
36057
36057
|
// ~
|
|
36058
36058
|
++index;
|
|
36059
36059
|
return {
|
|
36060
|
-
type: TokenPunctuator,
|
|
36060
|
+
type: TokenPunctuator$1,
|
|
36061
36061
|
value: String.fromCharCode(code),
|
|
36062
36062
|
start: start,
|
|
36063
36063
|
end: index
|
|
@@ -36081,7 +36081,7 @@ function scanPunctuator() {
|
|
|
36081
36081
|
// *
|
|
36082
36082
|
index += 2;
|
|
36083
36083
|
return {
|
|
36084
|
-
type: TokenPunctuator,
|
|
36084
|
+
type: TokenPunctuator$1,
|
|
36085
36085
|
value: String.fromCharCode(code) + String.fromCharCode(code2),
|
|
36086
36086
|
start: start,
|
|
36087
36087
|
end: index
|
|
@@ -36096,7 +36096,7 @@ function scanPunctuator() {
|
|
|
36096
36096
|
++index;
|
|
36097
36097
|
}
|
|
36098
36098
|
return {
|
|
36099
|
-
type: TokenPunctuator,
|
|
36099
|
+
type: TokenPunctuator$1,
|
|
36100
36100
|
value: source.slice(start, index),
|
|
36101
36101
|
start: start,
|
|
36102
36102
|
end: index
|
|
@@ -36111,7 +36111,7 @@ function scanPunctuator() {
|
|
|
36111
36111
|
if (ch4 === '>>>=') {
|
|
36112
36112
|
index += 4;
|
|
36113
36113
|
return {
|
|
36114
|
-
type: TokenPunctuator,
|
|
36114
|
+
type: TokenPunctuator$1,
|
|
36115
36115
|
value: ch4,
|
|
36116
36116
|
start: start,
|
|
36117
36117
|
end: index
|
|
@@ -36124,7 +36124,7 @@ function scanPunctuator() {
|
|
|
36124
36124
|
if (ch3 === '>>>' || ch3 === '<<=' || ch3 === '>>=') {
|
|
36125
36125
|
index += 3;
|
|
36126
36126
|
return {
|
|
36127
|
-
type: TokenPunctuator,
|
|
36127
|
+
type: TokenPunctuator$1,
|
|
36128
36128
|
value: ch3,
|
|
36129
36129
|
start: start,
|
|
36130
36130
|
end: index
|
|
@@ -36136,7 +36136,7 @@ function scanPunctuator() {
|
|
|
36136
36136
|
if (ch1 === ch2[1] && '+-<>&|'.includes(ch1) || ch2 === '=>') {
|
|
36137
36137
|
index += 2;
|
|
36138
36138
|
return {
|
|
36139
|
-
type: TokenPunctuator,
|
|
36139
|
+
type: TokenPunctuator$1,
|
|
36140
36140
|
value: ch2,
|
|
36141
36141
|
start: start,
|
|
36142
36142
|
end: index
|
|
@@ -36151,7 +36151,7 @@ function scanPunctuator() {
|
|
|
36151
36151
|
if ('<>=!+-*%&|^/'.includes(ch1)) {
|
|
36152
36152
|
++index;
|
|
36153
36153
|
return {
|
|
36154
|
-
type: TokenPunctuator,
|
|
36154
|
+
type: TokenPunctuator$1,
|
|
36155
36155
|
value: ch1,
|
|
36156
36156
|
start: start,
|
|
36157
36157
|
end: index
|
|
@@ -36177,7 +36177,7 @@ function scanHexLiteral(start) {
|
|
|
36177
36177
|
throwError({}, MessageUnexpectedToken, ILLEGAL$1);
|
|
36178
36178
|
}
|
|
36179
36179
|
return {
|
|
36180
|
-
type: TokenNumericLiteral,
|
|
36180
|
+
type: TokenNumericLiteral$1,
|
|
36181
36181
|
value: parseInt('0x' + number, 16),
|
|
36182
36182
|
start: start,
|
|
36183
36183
|
end: index
|
|
@@ -36195,7 +36195,7 @@ function scanOctalLiteral(start) {
|
|
|
36195
36195
|
throwError({}, MessageUnexpectedToken, ILLEGAL$1);
|
|
36196
36196
|
}
|
|
36197
36197
|
return {
|
|
36198
|
-
type: TokenNumericLiteral,
|
|
36198
|
+
type: TokenNumericLiteral$1,
|
|
36199
36199
|
value: parseInt(number, 8),
|
|
36200
36200
|
octal: true,
|
|
36201
36201
|
start: start,
|
|
@@ -36258,7 +36258,7 @@ function scanNumericLiteral() {
|
|
|
36258
36258
|
throwError({}, MessageUnexpectedToken, ILLEGAL$1);
|
|
36259
36259
|
}
|
|
36260
36260
|
return {
|
|
36261
|
-
type: TokenNumericLiteral,
|
|
36261
|
+
type: TokenNumericLiteral$1,
|
|
36262
36262
|
value: parseFloat(number),
|
|
36263
36263
|
start: start,
|
|
36264
36264
|
end: index
|
|
@@ -36353,7 +36353,7 @@ function scanStringLiteral() {
|
|
|
36353
36353
|
throwError({}, MessageUnexpectedToken, ILLEGAL$1);
|
|
36354
36354
|
}
|
|
36355
36355
|
return {
|
|
36356
|
-
type: TokenStringLiteral,
|
|
36356
|
+
type: TokenStringLiteral$1,
|
|
36357
36357
|
value: str,
|
|
36358
36358
|
octal: octal,
|
|
36359
36359
|
start: start,
|
|
@@ -36476,13 +36476,13 @@ function scanRegExp() {
|
|
|
36476
36476
|
};
|
|
36477
36477
|
}
|
|
36478
36478
|
function isIdentifierName(token) {
|
|
36479
|
-
return token.type === TokenIdentifier || token.type === TokenKeyword || token.type === TokenBooleanLiteral || token.type === TokenNullLiteral;
|
|
36479
|
+
return token.type === TokenIdentifier$1 || token.type === TokenKeyword$1 || token.type === TokenBooleanLiteral$1 || token.type === TokenNullLiteral$1;
|
|
36480
36480
|
}
|
|
36481
36481
|
function advance() {
|
|
36482
36482
|
skipComment();
|
|
36483
36483
|
if (index >= length) {
|
|
36484
36484
|
return {
|
|
36485
|
-
type: TokenEOF,
|
|
36485
|
+
type: TokenEOF$1,
|
|
36486
36486
|
start: index,
|
|
36487
36487
|
end: index
|
|
36488
36488
|
};
|
|
@@ -36615,19 +36615,19 @@ function throwError(token, messageFormat) {
|
|
|
36615
36615
|
// Throw an exception because of the token.
|
|
36616
36616
|
|
|
36617
36617
|
function throwUnexpected(token) {
|
|
36618
|
-
if (token.type === TokenEOF) {
|
|
36618
|
+
if (token.type === TokenEOF$1) {
|
|
36619
36619
|
throwError(token, MessageUnexpectedEOS);
|
|
36620
36620
|
}
|
|
36621
|
-
if (token.type === TokenNumericLiteral) {
|
|
36621
|
+
if (token.type === TokenNumericLiteral$1) {
|
|
36622
36622
|
throwError(token, MessageUnexpectedNumber);
|
|
36623
36623
|
}
|
|
36624
|
-
if (token.type === TokenStringLiteral) {
|
|
36624
|
+
if (token.type === TokenStringLiteral$1) {
|
|
36625
36625
|
throwError(token, MessageUnexpectedString);
|
|
36626
36626
|
}
|
|
36627
|
-
if (token.type === TokenIdentifier) {
|
|
36627
|
+
if (token.type === TokenIdentifier$1) {
|
|
36628
36628
|
throwError(token, MessageUnexpectedIdentifier);
|
|
36629
36629
|
}
|
|
36630
|
-
if (token.type === TokenKeyword) {
|
|
36630
|
+
if (token.type === TokenKeyword$1) {
|
|
36631
36631
|
throwError(token, MessageUnexpectedReserved);
|
|
36632
36632
|
}
|
|
36633
36633
|
|
|
@@ -36640,7 +36640,7 @@ function throwUnexpected(token) {
|
|
|
36640
36640
|
|
|
36641
36641
|
function expect(value) {
|
|
36642
36642
|
const token = lex();
|
|
36643
|
-
if (token.type !== TokenPunctuator || token.value !== value) {
|
|
36643
|
+
if (token.type !== TokenPunctuator$1 || token.value !== value) {
|
|
36644
36644
|
throwUnexpected(token);
|
|
36645
36645
|
}
|
|
36646
36646
|
}
|
|
@@ -36648,13 +36648,13 @@ function expect(value) {
|
|
|
36648
36648
|
// Return true if the next token matches the specified punctuator.
|
|
36649
36649
|
|
|
36650
36650
|
function match(value) {
|
|
36651
|
-
return lookahead.type === TokenPunctuator && lookahead.value === value;
|
|
36651
|
+
return lookahead.type === TokenPunctuator$1 && lookahead.value === value;
|
|
36652
36652
|
}
|
|
36653
36653
|
|
|
36654
36654
|
// Return true if the next token matches the specified keyword
|
|
36655
36655
|
|
|
36656
36656
|
function matchKeyword(keyword) {
|
|
36657
|
-
return lookahead.type === TokenKeyword && lookahead.value === keyword;
|
|
36657
|
+
return lookahead.type === TokenKeyword$1 && lookahead.value === keyword;
|
|
36658
36658
|
}
|
|
36659
36659
|
|
|
36660
36660
|
// 11.1.4 Array Initialiser
|
|
@@ -36687,7 +36687,7 @@ function parseObjectPropertyKey() {
|
|
|
36687
36687
|
// Note: This function is called only from parseObjectProperty(), where
|
|
36688
36688
|
// EOF and Punctuator tokens are already filtered out.
|
|
36689
36689
|
|
|
36690
|
-
if (token.type === TokenStringLiteral || token.type === TokenNumericLiteral) {
|
|
36690
|
+
if (token.type === TokenStringLiteral$1 || token.type === TokenNumericLiteral$1) {
|
|
36691
36691
|
if (token.octal) {
|
|
36692
36692
|
throwError(token, MessageStrictOctalLiteral);
|
|
36693
36693
|
}
|
|
@@ -36699,13 +36699,13 @@ function parseObjectProperty() {
|
|
|
36699
36699
|
var token, key, id, value;
|
|
36700
36700
|
index = lookahead.start;
|
|
36701
36701
|
token = lookahead;
|
|
36702
|
-
if (token.type === TokenIdentifier) {
|
|
36702
|
+
if (token.type === TokenIdentifier$1) {
|
|
36703
36703
|
id = parseObjectPropertyKey();
|
|
36704
36704
|
expect(':');
|
|
36705
36705
|
value = parseConditionalExpression();
|
|
36706
36706
|
return finishProperty('init', id, value);
|
|
36707
36707
|
}
|
|
36708
|
-
if (token.type === TokenEOF || token.type === TokenPunctuator) {
|
|
36708
|
+
if (token.type === TokenEOF$1 || token.type === TokenPunctuator$1) {
|
|
36709
36709
|
throwUnexpected(token);
|
|
36710
36710
|
} else {
|
|
36711
36711
|
key = parseObjectPropertyKey();
|
|
@@ -36772,20 +36772,20 @@ function parsePrimaryExpression() {
|
|
|
36772
36772
|
}
|
|
36773
36773
|
type = lookahead.type;
|
|
36774
36774
|
index = lookahead.start;
|
|
36775
|
-
if (type === TokenIdentifier || legalKeywords[lookahead.value]) {
|
|
36775
|
+
if (type === TokenIdentifier$1 || legalKeywords[lookahead.value]) {
|
|
36776
36776
|
expr = finishIdentifier(lex().value);
|
|
36777
|
-
} else if (type === TokenStringLiteral || type === TokenNumericLiteral) {
|
|
36777
|
+
} else if (type === TokenStringLiteral$1 || type === TokenNumericLiteral$1) {
|
|
36778
36778
|
if (lookahead.octal) {
|
|
36779
36779
|
throwError(lookahead, MessageStrictOctalLiteral);
|
|
36780
36780
|
}
|
|
36781
36781
|
expr = finishLiteral(lex());
|
|
36782
|
-
} else if (type === TokenKeyword) {
|
|
36782
|
+
} else if (type === TokenKeyword$1) {
|
|
36783
36783
|
throw new Error(DISABLED);
|
|
36784
|
-
} else if (type === TokenBooleanLiteral) {
|
|
36784
|
+
} else if (type === TokenBooleanLiteral$1) {
|
|
36785
36785
|
token = lex();
|
|
36786
36786
|
token.value = token.value === 'true';
|
|
36787
36787
|
expr = finishLiteral(token);
|
|
36788
|
-
} else if (type === TokenNullLiteral) {
|
|
36788
|
+
} else if (type === TokenNullLiteral$1) {
|
|
36789
36789
|
token = lex();
|
|
36790
36790
|
token.value = null;
|
|
36791
36791
|
expr = finishLiteral(token);
|
|
@@ -36857,7 +36857,7 @@ function parseLeftHandSideExpressionAllowCall() {
|
|
|
36857
36857
|
|
|
36858
36858
|
function parsePostfixExpression() {
|
|
36859
36859
|
const expr = parseLeftHandSideExpressionAllowCall();
|
|
36860
|
-
if (lookahead.type === TokenPunctuator) {
|
|
36860
|
+
if (lookahead.type === TokenPunctuator$1) {
|
|
36861
36861
|
if (match('++') || match('--')) {
|
|
36862
36862
|
throw new Error(DISABLED);
|
|
36863
36863
|
}
|
|
@@ -36869,7 +36869,7 @@ function parsePostfixExpression() {
|
|
|
36869
36869
|
|
|
36870
36870
|
function parseUnaryExpression() {
|
|
36871
36871
|
var token, expr;
|
|
36872
|
-
if (lookahead.type !== TokenPunctuator && lookahead.type !== TokenKeyword) {
|
|
36872
|
+
if (lookahead.type !== TokenPunctuator$1 && lookahead.type !== TokenKeyword$1) {
|
|
36873
36873
|
expr = parsePostfixExpression();
|
|
36874
36874
|
} else if (match('++') || match('--')) {
|
|
36875
36875
|
throw new Error(DISABLED);
|
|
@@ -36886,7 +36886,7 @@ function parseUnaryExpression() {
|
|
|
36886
36886
|
}
|
|
36887
36887
|
function binaryPrecedence(token) {
|
|
36888
36888
|
let prec = 0;
|
|
36889
|
-
if (token.type !== TokenPunctuator && token.type !== TokenKeyword) {
|
|
36889
|
+
if (token.type !== TokenPunctuator$1 && token.type !== TokenKeyword$1) {
|
|
36890
36890
|
return 0;
|
|
36891
36891
|
}
|
|
36892
36892
|
switch (token.value) {
|
|
@@ -37022,7 +37022,7 @@ function parser$1 (code) {
|
|
|
37022
37022
|
lookahead = null;
|
|
37023
37023
|
peek();
|
|
37024
37024
|
const expr = parseExpression$1();
|
|
37025
|
-
if (lookahead.type !== TokenEOF) {
|
|
37025
|
+
if (lookahead.type !== TokenEOF$1) {
|
|
37026
37026
|
throw new Error('Unexpect token after expression.');
|
|
37027
37027
|
}
|
|
37028
37028
|
return expr;
|
|
@@ -37220,6 +37220,64 @@ function codegen (opt) {
|
|
|
37220
37220
|
return codegen;
|
|
37221
37221
|
}
|
|
37222
37222
|
|
|
37223
|
+
const Literal = 'Literal';
|
|
37224
|
+
|
|
37225
|
+
/*
|
|
37226
|
+
The following expression parser is based on Esprima (http://esprima.org/).
|
|
37227
|
+
Original header comment and license for Esprima is included here:
|
|
37228
|
+
|
|
37229
|
+
Copyright (C) 2013 Ariya Hidayat <ariya.hidayat@gmail.com>
|
|
37230
|
+
Copyright (C) 2013 Thaddee Tyl <thaddee.tyl@gmail.com>
|
|
37231
|
+
Copyright (C) 2013 Mathias Bynens <mathias@qiwi.be>
|
|
37232
|
+
Copyright (C) 2012 Ariya Hidayat <ariya.hidayat@gmail.com>
|
|
37233
|
+
Copyright (C) 2012 Mathias Bynens <mathias@qiwi.be>
|
|
37234
|
+
Copyright (C) 2012 Joost-Wim Boekesteijn <joost-wim@boekesteijn.nl>
|
|
37235
|
+
Copyright (C) 2012 Kris Kowal <kris.kowal@cixar.com>
|
|
37236
|
+
Copyright (C) 2012 Yusuke Suzuki <utatane.tea@gmail.com>
|
|
37237
|
+
Copyright (C) 2012 Arpad Borsos <arpad.borsos@googlemail.com>
|
|
37238
|
+
Copyright (C) 2011 Ariya Hidayat <ariya.hidayat@gmail.com>
|
|
37239
|
+
|
|
37240
|
+
Redistribution and use in source and binary forms, with or without
|
|
37241
|
+
modification, are permitted provided that the following conditions are met:
|
|
37242
|
+
|
|
37243
|
+
* Redistributions of source code must retain the above copyright
|
|
37244
|
+
notice, this list of conditions and the following disclaimer.
|
|
37245
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
37246
|
+
notice, this list of conditions and the following disclaimer in the
|
|
37247
|
+
documentation and/or other materials provided with the distribution.
|
|
37248
|
+
|
|
37249
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
37250
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
37251
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
37252
|
+
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
|
37253
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
37254
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
37255
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
37256
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
37257
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
37258
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
37259
|
+
*/
|
|
37260
|
+
var TokenName;
|
|
37261
|
+
var TokenBooleanLiteral = 1,
|
|
37262
|
+
TokenEOF = 2,
|
|
37263
|
+
TokenIdentifier = 3,
|
|
37264
|
+
TokenKeyword = 4,
|
|
37265
|
+
TokenNullLiteral = 5,
|
|
37266
|
+
TokenNumericLiteral = 6,
|
|
37267
|
+
TokenPunctuator = 7,
|
|
37268
|
+
TokenStringLiteral = 8,
|
|
37269
|
+
TokenRegularExpression = 9;
|
|
37270
|
+
TokenName = {};
|
|
37271
|
+
TokenName[TokenBooleanLiteral] = 'Boolean';
|
|
37272
|
+
TokenName[TokenEOF] = '<end>';
|
|
37273
|
+
TokenName[TokenIdentifier] = 'Identifier';
|
|
37274
|
+
TokenName[TokenKeyword] = 'Keyword';
|
|
37275
|
+
TokenName[TokenNullLiteral] = 'Null';
|
|
37276
|
+
TokenName[TokenNumericLiteral] = 'Numeric';
|
|
37277
|
+
TokenName[TokenPunctuator] = 'Punctuator';
|
|
37278
|
+
TokenName[TokenStringLiteral] = 'String';
|
|
37279
|
+
TokenName[TokenRegularExpression] = 'RegularExpression';
|
|
37280
|
+
|
|
37223
37281
|
// Registers vega-util field accessors to protect against XSS attacks
|
|
37224
37282
|
const SELECTION_GETTER = Symbol('vega_selection_getter');
|
|
37225
37283
|
function getter(f) {
|
|
@@ -37615,7 +37673,7 @@ const ScalePrefix = '%';
|
|
|
37615
37673
|
const SignalPrefix = '$';
|
|
37616
37674
|
|
|
37617
37675
|
function dataVisitor(name, args, scope, params) {
|
|
37618
|
-
if (args[0].type !== Literal) {
|
|
37676
|
+
if (args[0].type !== Literal$1) {
|
|
37619
37677
|
error$1('First argument to data functions must be a string literal.');
|
|
37620
37678
|
}
|
|
37621
37679
|
const data = args[0].value,
|
|
@@ -37629,8 +37687,8 @@ function dataVisitor(name, args, scope, params) {
|
|
|
37629
37687
|
}
|
|
37630
37688
|
}
|
|
37631
37689
|
function indataVisitor(name, args, scope, params) {
|
|
37632
|
-
if (args[0].type !== Literal) error$1('First argument to indata must be a string literal.');
|
|
37633
|
-
if (args[1].type !== Literal) error$1('Second argument to indata must be a string literal.');
|
|
37690
|
+
if (args[0].type !== Literal$1) error$1('First argument to indata must be a string literal.');
|
|
37691
|
+
if (args[1].type !== Literal$1) error$1('Second argument to indata must be a string literal.');
|
|
37634
37692
|
const data = args[0].value,
|
|
37635
37693
|
field = args[1].value,
|
|
37636
37694
|
indexName = IndexPrefix + field;
|
|
@@ -37639,7 +37697,7 @@ function indataVisitor(name, args, scope, params) {
|
|
|
37639
37697
|
}
|
|
37640
37698
|
}
|
|
37641
37699
|
function scaleVisitor(name, args, scope, params) {
|
|
37642
|
-
if (args[0].type === Literal) {
|
|
37700
|
+
if (args[0].type === Literal$1) {
|
|
37643
37701
|
// add scale dependency
|
|
37644
37702
|
addScaleDependency(scope, params, args[0].value);
|
|
37645
37703
|
} else {
|
|
@@ -37680,7 +37738,7 @@ function internalScaleFunctions(codegen, fnctx, visitors) {
|
|
|
37680
37738
|
visitors._scale = scaleVisitor;
|
|
37681
37739
|
|
|
37682
37740
|
// resolve scale reference directly to the signal hash argument
|
|
37683
|
-
const ref = arg => '_[' + (arg.type === Literal ? $(ScalePrefix + arg.value) : $(ScalePrefix) + '+' + codegen(arg)) + ']';
|
|
37741
|
+
const ref = arg => '_[' + (arg.type === Literal$1 ? $(ScalePrefix + arg.value) : $(ScalePrefix) + '+' + codegen(arg)) + ']';
|
|
37684
37742
|
|
|
37685
37743
|
// define and return internal scale function code generators
|
|
37686
37744
|
// these internal functions are called by mark encoders
|
|
@@ -44572,6 +44630,11 @@ var Functions = {
|
|
|
44572
44630
|
return apply('replace', arguments, String);
|
|
44573
44631
|
},
|
|
44574
44632
|
trim: x => String(x).trim(),
|
|
44633
|
+
// Base64 encode/decode
|
|
44634
|
+
// Convert binary string to base64-encoded ascii
|
|
44635
|
+
btoa: x => btoa(x),
|
|
44636
|
+
// Convert base64-encoded ascii to binary string
|
|
44637
|
+
atob: x => atob(x),
|
|
44575
44638
|
// regexp functions
|
|
44576
44639
|
regexp: RegExp,
|
|
44577
44640
|
test: (r, t) => RegExp(r).test(t)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as l}from"./p-977a4087.js";export{s as setNonce}from"./p-977a4087.js";import{g as a}from"./p-e1255160.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((async e=>(await a(),l([["p-
|
|
1
|
+
import{p as e,b as l}from"./p-977a4087.js";export{s as setNonce}from"./p-977a4087.js";import{g as a}from"./p-e1255160.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((async e=>(await a(),l([["p-d7821e5e",[[1,"gux-visualization-beta",{visualizationSpec:[16],embedOptions:[16]}]]],["p-07c83f5a",[[1,"gux-chart-column-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],xFieldName:[1,"x-field-name"],yFieldName:[1,"y-field-name"],xAxisTitle:[1,"x-axis-title"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],legendPosition:[1,"legend-position"],chartLayers:[16],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-39846a2a",[[1,"gux-chart-donut-beta",{chartData:[16],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],outerRadius:[2,"outer-radius"],innerRadius:[2,"inner-radius"],labelRadius:[2,"label-radius"],labelField:[1,"label-field"],gauge:[4],centerText:[1,"center-text"],centerSubText:[1,"center-sub-text"],showTooltip:[4,"show-tooltip"],tooltipOptions:[16],legendX:[2,"legend-x"],legendY:[2,"legend-y"],legendFontSize:[2,"legend-font-size"],legendSymbolSize:[2,"legend-symbol-size"],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-21c39087",[[1,"gux-chart-line-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],includeDataPointMarkers:[4,"include-data-point-markers"],xFieldName:[1,"x-field-name"],xAxisTitle:[1,"x-axis-title"],yFieldName:[1,"y-field-name"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],strokeDash:[4,"stroke-dash"],interpolation:[1],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-09e72f83",[[1,"gux-chart-pie-beta",{chartData:[16],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],outerRadius:[2,"outer-radius"],labelRadius:[2,"label-radius"],labelField:[1,"label-field"],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-759843fb",[[1,"gux-chart-scatter-plot-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],xFieldName:[1,"x-field-name"],xAxisTitle:[1,"x-axis-title"],yFieldName:[1,"y-field-name"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],useShape:[1,"use-shape"],embedOptions:[16]},null,{chartData:["parseData"]}]]]],e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t="4.
|
|
1
|
+
const t="4.141.1",e=20,n=3e4,o=[function(t){const[e,n,...o]=t.split(".");return{name:"spark-library",metadata:{fullVersion:`${e}.${n}.${o.join(".")}`,majorVersion:e,minorVersion:`${e}.${n}`}}}(t)];function a(){const t=window.newrelic;if(t){for(let s=0;s<e;s++){if(0==o.length)return void setTimeout(a,n);const e=o.shift();t.addPageAction(e.name,Object.assign(Object.assign({},e.metadata),{queueDepth:o.length}))}setTimeout(a,n)}}let s=!1;function i(e,n){window.newrelic&&(s||(s=!0,a()),document.contains(e)&&o.push({name:"spark-component",metadata:Object.assign(Object.assign({},n),{component:e.tagName.toLowerCase(),version:t})}))}const r=["#203B73","#1DA8B3","#75A8FF","#8452CF","#B5B5EB","#CC3EBE","#5E5782","#FF8FDD","#868C1E","#DDD933"],c="#596373",m="#596373";export{c as D,r as V,m as a,i as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,g as a}from"./p-977a4087.js";import{D as s,a as e,V as r,t as h}from"./p-
|
|
1
|
+
import{r as t,h as i,g as a}from"./p-977a4087.js";import{D as s,a as e,V as r,t as h}from"./p-06eaaf70.js";import{l as n}from"./p-23610106.js";const o=class{constructor(i){t(this,i),this.labelColor=s,this.domainColor=e,this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",mark:{type:"bar"},config:{axis:{ticks:!1,titlePadding:8,labelColor:this.labelColor||s,domainColor:this.domainColor||e},axisX:{labelAngle:0},scale:{bandPaddingInner:.4,bandPaddingOuter:.4},legend:{symbolType:"circle"},bar:{color:r[0]}},encoding:{x:{type:"nominal"},y:{type:"quantitative"},tooltip:{aggregate:"count",type:"quantitative"}}},this.legendPosition="right"}parseData(){this.xFieldName&&this.yFieldName||n(this.root,"requires x-field-name and y-field-name");let t={};this.chartData&&(t={data:this.chartData}),this.xTickLabelSlant&&(this.baseChartSpec.config.axisX.labelAngle=45),this.includeLegend&&(this.baseChartSpec.encoding.color={field:"category"}),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const i=this.xFieldName,a=this.yFieldName,s=this.xAxisTitle,e=this.yAxisTitle,h=this.legendTitle;if(this.chartLayers){const t=this.chartLayers.map((t=>({mark:"bar",transform:[{filter:{field:"series",equal:t}}],encoding:{x:{field:i,type:"nominal"},y:{field:a,type:"quantitative"}}})));this.baseChartSpec.layer=t}else i&&(this.baseChartSpec.encoding.x.field=i),a&&(this.baseChartSpec.encoding.y.field=a),s&&(this.baseChartSpec.encoding.x.title=s),e&&(this.baseChartSpec.encoding.y.title=e),h&&(this.baseChartSpec.encoding.color.title=h);const o=i;this.baseChartSpec.config.range={[o]:r};const l=Object.assign(this.baseChartSpec,t);this.visualizationSpec=l}componentWillLoad(){h(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"5bcc2fcee3bfb4905b9fdbb572593402531f960d",visualizationSpec:this.visualizationSpec})}get root(){return a(this)}static get watchers(){return{chartData:["parseData"]}}};o.style="gux-visualization-beta{height:fit-content;color:#2e394c;}gux-visualization-beta .mark-rect.layer_0_marks path{fill:url(#diagonalHatch0)}gux-visualization-beta .mark-rect.layer_1_marks path{fill:#1da8b3}";export{o as gux_chart_column_beta}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,g as i}from"./p-977a4087.js";import{V as a,t as s}from"./p-
|
|
1
|
+
import{r as t,h as e,g as i}from"./p-977a4087.js";import{V as a,t as s}from"./p-06eaaf70.js";import{l as r}from"./p-23610106.js";const o="category",h="value",n=class{constructor(e){t(this,e),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",config:{legend:{symbolType:"circle"}},encoding:{theta:{field:"value",type:"quantitative",stack:!0},color:{field:o,type:"nominal",scale:{range:a},legend:null},tooltip:{aggregate:"count",type:"quantitative"}},layer:[{mark:{type:"arc",outerRadius:80}},{mark:{type:"text",radius:90},encoding:{text:{field:h,type:"quantitative"}}}],view:{stroke:null}},this.legendPosition="right"}parseData(){this.outerRadius||r(this.root,"requires outer-radius");let t={};this.chartData&&(t={data:this.chartData}),this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const e=this.colorFieldName||o;e&&(this.baseChartSpec.encoding.color.field=e);const i=this.legendTitle;i&&(this.baseChartSpec.encoding.color.title=i),this.baseChartSpec.layer=[{mark:{type:"arc",outerRadius:this.outerRadius}}];const a=this.labelRadius;a&&this.baseChartSpec.layer.push({mark:{type:"text",radius:a},encoding:{text:{field:this.labelField||h,type:"quantitative"}}});const s=Object.assign(this.baseChartSpec,t);this.visualizationSpec=s}componentWillLoad(){s(this.root),this.parseData()}render(){return e("gux-visualization-beta",{key:"b3049772a9d436bf4d6aa1b0e9ebe21a9d9e84e9",visualizationSpec:this.visualizationSpec})}get root(){return i(this)}static get watchers(){return{chartData:["parseData"]}}};n.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{n as gux_chart_pie_beta}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,g as s}from"./p-977a4087.js";import{D as a,a as e,V as h,t as o}from"./p-
|
|
1
|
+
import{r as t,h as i,g as s}from"./p-977a4087.js";import{D as a,a as e,V as h,t as o}from"./p-06eaaf70.js";import{l as n}from"./p-23610106.js";const l="category",r=class{constructor(i){t(this,i),this.labelColor=a,this.domainColor=e,this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",mark:{type:"line",interpolate:"linear",point:!1},config:{axis:{ticks:!1,titlePadding:8,labelColor:this.labelColor||a,domainColor:this.domainColor||e},axisX:{labelAngle:0},legend:{symbolType:"circle"}},encoding:{x:{type:"nominal"},y:{type:"quantitative"},color:{field:l,type:"nominal",scale:{range:h},legend:null},tooltip:{aggregate:"count",type:"quantitative"}}},this.legendPosition="right"}parseData(){this.xFieldName&&this.yFieldName||n(this.root,"requires x-field-name and y-field-name");let t={};this.chartData&&(t={data:this.chartData}),this.xTickLabelSlant&&(this.baseChartSpec.config.axisX.labelAngle=45),this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const i=this.xFieldName,s=this.xAxisTitle,a=this.yFieldName,e=this.yAxisTitle,h=this.legendTitle,o=this.colorFieldName||l,r=this.interpolation,c=this.strokeDash,g=this.includeDataPointMarkers;i&&(this.baseChartSpec.encoding.x.field=i),s&&(this.baseChartSpec.encoding.x.title=s),a&&(this.baseChartSpec.encoding.y.field=a),e&&(this.baseChartSpec.encoding.y.title=e),o&&(this.baseChartSpec.encoding.color.field=o),h&&(this.baseChartSpec.encoding.color.title=h),c&&(this.baseChartSpec.encoding.strokeDash={field:o,type:"nominal"}),r&&(this.baseChartSpec.mark.interpolate=r),g&&(this.baseChartSpec.mark.point=g);const p=Object.assign(this.baseChartSpec,t);this.visualizationSpec=p}componentWillLoad(){o(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"9a0bbdde50dc38102cff841ca0b2aa9aa47b47ff",visualizationSpec:this.visualizationSpec})}get root(){return s(this)}static get watchers(){return{chartData:["parseData"]}}};r.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{r as gux_chart_line_beta}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,g as i}from"./p-977a4087.js";import{V as a,t as s}from"./p-
|
|
1
|
+
import{r as t,h as e,g as i}from"./p-977a4087.js";import{V as a,t as s}from"./p-06eaaf70.js";import{l as n}from"./p-23610106.js";const r="category",h="value",l=class{constructor(e){t(this,e),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",config:{legend:{symbolType:"circle"}},encoding:{theta:{field:"value",type:"quantitative",stack:!0},color:{field:r,type:"nominal",scale:{range:a},legend:null}},layer:[{mark:{type:"arc",outerRadius:80}},{mark:{type:"text",radius:90},encoding:{text:{field:h,type:"quantitative"}}}],view:{stroke:null}},this.legendPosition="right",this.showTooltip=!0}parseData(){this.outerRadius||this.innerRadius||n(this.root,"requires at least one of outer-radius or inner-radius");let t={};this.chartData&&(t={data:this.chartData}),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition),this.includeLegend?(this.baseChartSpec.encoding.color.legend={},(this.legendX||this.legendY)&&(this.baseChartSpec.config.legend.orient="none",this.legendX&&(this.baseChartSpec.encoding.color.legend.legendX=this.legendX),this.legendY&&(this.baseChartSpec.encoding.color.legend.legendY=this.legendY)),this.legendFontSize&&(this.baseChartSpec.encoding.color.legend.labelFontSize=this.legendFontSize),this.legendSymbolSize&&(this.baseChartSpec.encoding.color.legend.symbolSize=this.legendSymbolSize)):this.baseChartSpec.encoding.color.legend=null;const e=this.colorFieldName||r;e&&(this.baseChartSpec.encoding.color.field=e);this.baseChartSpec.encoding.color.title=this.legendTitle||"";let i=this.outerRadius,a=this.innerRadius;i||(i=a+32),a||(a=i-32);let s=1;this.gauge?(this.baseChartSpec.layer=[{data:{values:[{progress:"default",value:100}]},mark:{type:"arc",innerRadius:a},encoding:{theta:{field:"value",type:"quantitative"},color:{value:"#E4E9F0"},tooltip:null}},{mark:{type:"arc",outerRadius:i,innerRadius:a,padAngle:.01}},{mark:{type:"arc",innerRadius:a,padAngle:.01}}],s=2):this.baseChartSpec.layer=[{mark:{type:"arc",outerRadius:i,innerRadius:a}},{mark:{type:"arc",innerRadius:a,stroke:"#fff"}}];const l=this.centerText;l&&this.baseChartSpec.layer.push({data:{values:[{centerText:l,value:0}]},mark:{align:"center",type:"text",baseline:"middle"},encoding:{color:{value:"#4C5054"},text:{field:"centerText"},size:{value:{expr:"height * 0.09"}},tooltip:null}});const o=this.centerSubText;o&&this.baseChartSpec.layer.push({data:{values:[{centerSubText:o,value:0}]},mark:{align:"center",type:"text",baseline:"middle",y:{expr:"height/2 + 20"}},encoding:{color:{value:"#6A6D70"},text:{field:"centerSubText"},size:{value:{expr:"height * 0.06"}},tooltip:null}});const u=this.labelRadius,c=this.labelField||h;u&&this.baseChartSpec.layer.push({mark:{type:"text",radius:u},encoding:{text:{field:c,type:"quantitative"}}}),this.showTooltip&&(this.tooltipOptions?(this.baseChartSpec.layer[s].mark.tooltip={content:"data"},this.tooltipSpec={actions:!1,tooltip:this.tooltipOptions}):this.baseChartSpec.encoding.tooltip={field:c,aggregate:"count",type:"quantitative"});const d=Object.assign(this.baseChartSpec,t);this.visualizationSpec=d}componentWillLoad(){s(this.root),this.parseData()}render(){return e("gux-visualization-beta",{key:"1841c32ed4312b87b8bdeca52a007a6905effce9",visualizationSpec:this.visualizationSpec,embedOptions:this.tooltipSpec})}get root(){return i(this)}static get watchers(){return{chartData:["parseData"]}}};l.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{l as gux_chart_donut_beta}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,g as e}from"./p-977a4087.js";import{D as s,a,V as o,t as h}from"./p-
|
|
1
|
+
import{r as t,h as i,g as e}from"./p-977a4087.js";import{D as s,a,V as o,t as h}from"./p-06eaaf70.js";import{l}from"./p-23610106.js";const n="category",r=class{constructor(i){t(this,i),this.labelColor=s,this.domainColor=a,this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",params:[{name:"onHover",select:{type:"point",on:"mouseover"}}],config:{axis:{ticks:!1,titlePadding:8,gridColor:"#F6F7F9",labelColor:this.labelColor||s,domainColor:this.domainColor||a},axisX:{labelAngle:0,grid:!0},legend:{symbolType:"circle"}},width:{step:40},encoding:{x:{type:"nominal"},y:{type:"quantitative"},color:{field:n,type:"nominal",scale:{range:o},legend:null},size:{condition:[{param:"onHover",empty:!1,value:100}],value:40}}},this.legendPosition="right"}parseData(){this.xFieldName&&this.yFieldName||l(this.root,"requires x-field-name and y-field-name");let t={};this.chartData&&(t={data:this.chartData}),this.xTickLabelSlant&&(this.baseChartSpec.config.axisX.labelAngle=-45),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const i=this.xFieldName,e=this.xAxisTitle,s=this.yFieldName,a=this.yAxisTitle,o=this.legendTitle,h=this.useShape||"circle",r=this.colorFieldName||n;this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),i&&(this.baseChartSpec.encoding.x.field=i),e&&(this.baseChartSpec.encoding.x.title=e),s&&(this.baseChartSpec.encoding.y.field=s),a&&(this.baseChartSpec.encoding.y.title=a),r&&(this.baseChartSpec.encoding.color.field=r),o&&(this.baseChartSpec.encoding.color.title=o),this.baseChartSpec.mark={type:h,filled:!0},this.baseChartSpec.config.legend.symbolType=h,this.baseChartSpec.encoding.shape={field:r,type:"nominal"},this.baseChartSpec.encoding.tooltip=[{field:i,type:"nominal",title:e},{field:s,type:"quantitative",title:a},{field:r,type:"nominal",title:o}];const c=Object.assign(this.baseChartSpec,t);this.visualizationSpec=c}componentWillLoad(){h(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"99d30b8b621965db1bb64abc45fa8075f7f1db2f",visualizationSpec:this.visualizationSpec})}get root(){return e(this)}static get watchers(){return{chartData:["parseData"]}}};r.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{r as gux_chart_scatter_plot_beta}
|