@nebula.js/stardust 4.12.0 → 4.13.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/core/esm/dev.js +32 -4
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +3 -3
- package/core/esm/index.js.map +1 -1
- package/dist/stardust.dev.js +32 -4
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +4 -4
- package/dist/stardust.js.map +1 -1
- package/package.json +9 -9
- package/types/index.d.ts +10 -10
package/dist/stardust.dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v4.
|
|
2
|
+
* @nebula.js/stardust v4.13.0
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -2907,6 +2907,23 @@
|
|
|
2907
2907
|
errorColor: "#ff4444",
|
|
2908
2908
|
nullColor: "#d2d2d2"
|
|
2909
2909
|
};
|
|
2910
|
+
var object$2 = {
|
|
2911
|
+
title: {
|
|
2912
|
+
main: {
|
|
2913
|
+
color: "@B50",
|
|
2914
|
+
fontSize: "15px"
|
|
2915
|
+
},
|
|
2916
|
+
subTitle: {
|
|
2917
|
+
color: "@B50",
|
|
2918
|
+
fontSize: "12px"
|
|
2919
|
+
},
|
|
2920
|
+
footer: {
|
|
2921
|
+
color: "@B50",
|
|
2922
|
+
fontSize: "12px",
|
|
2923
|
+
backgroundColor: "transparent"
|
|
2924
|
+
}
|
|
2925
|
+
}
|
|
2926
|
+
};
|
|
2910
2927
|
var scales = [
|
|
2911
2928
|
{
|
|
2912
2929
|
name: "Sequential Gradient",
|
|
@@ -3093,6 +3110,7 @@
|
|
|
3093
3110
|
fontFamily: fontFamily,
|
|
3094
3111
|
backgroundColor: backgroundColor$1,
|
|
3095
3112
|
dataColors: dataColors,
|
|
3113
|
+
object: object$2,
|
|
3096
3114
|
scales: scales,
|
|
3097
3115
|
palettes: palettes
|
|
3098
3116
|
};
|
|
@@ -3290,9 +3308,15 @@
|
|
|
3290
3308
|
};
|
|
3291
3309
|
},
|
|
3292
3310
|
uiColor(c, shift) {
|
|
3311
|
+
const indexIsValid = typeof (c === null || c === void 0 ? void 0 : c.index) === 'number' && !Number.isNaN(c === null || c === void 0 ? void 0 : c.index);
|
|
3312
|
+
const colorIsValid = typeof (c === null || c === void 0 ? void 0 : c.color) === 'string';
|
|
3313
|
+
const somethingIsValid = indexIsValid || colorIsValid;
|
|
3314
|
+
if (!somethingIsValid) {
|
|
3315
|
+
return undefined;
|
|
3316
|
+
}
|
|
3293
3317
|
// eslint-disable-next-line no-param-reassign
|
|
3294
3318
|
shift = !!shift;
|
|
3295
|
-
if (c.index < 0 || typeof c.index === 'undefined') {
|
|
3319
|
+
if ((c === null || c === void 0 ? void 0 : c.index) < 0 || typeof (c === null || c === void 0 ? void 0 : c.index) === 'undefined') {
|
|
3296
3320
|
return c.color;
|
|
3297
3321
|
}
|
|
3298
3322
|
if (typeof uiPalette === 'undefined') {
|
|
@@ -12652,7 +12676,7 @@
|
|
|
12652
12676
|
return cache[key];
|
|
12653
12677
|
}
|
|
12654
12678
|
|
|
12655
|
-
const NEBULA_VERSION_HASH = "
|
|
12679
|
+
const NEBULA_VERSION_HASH = "3ebc" ;
|
|
12656
12680
|
ClassNameGenerator.configure(componentName => {
|
|
12657
12681
|
return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
|
|
12658
12682
|
});
|
|
@@ -12912,7 +12936,7 @@
|
|
|
12912
12936
|
const appRef = React$1.createRef();
|
|
12913
12937
|
const element = document.createElement('div');
|
|
12914
12938
|
element.style.display = 'none';
|
|
12915
|
-
element.setAttribute('data-nebulajs-version', "4.
|
|
12939
|
+
element.setAttribute('data-nebulajs-version', "4.13.0" );
|
|
12916
12940
|
element.setAttribute('data-app-id', app.id);
|
|
12917
12941
|
document.body.appendChild(element);
|
|
12918
12942
|
if (context) {
|
|
@@ -27599,6 +27623,9 @@
|
|
|
27599
27623
|
transformOrigin: popoverTransformOrigin,
|
|
27600
27624
|
hideBackdrop: true,
|
|
27601
27625
|
style: popoverStyle,
|
|
27626
|
+
onMouseDown: e => {
|
|
27627
|
+
e.stopPropagation(); // prevent click through, closing when it should not
|
|
27628
|
+
},
|
|
27602
27629
|
slotProps: {
|
|
27603
27630
|
paper: {
|
|
27604
27631
|
id: 'njs-action-toolbar-popover',
|
|
@@ -30035,6 +30062,7 @@
|
|
|
30035
30062
|
const fontStyle = unfurlFontStyle(textProps.fontStyle, target);
|
|
30036
30063
|
return {
|
|
30037
30064
|
fontFamily: textProps.fontFamily || theme.getStyle("object.".concat(objectType), "title.".concat(target), 'fontFamily'),
|
|
30065
|
+
fontSize: textProps.fontSize || theme.getStyle("object.".concat(objectType), "title.".concat(target), 'fontSize'),
|
|
30038
30066
|
color: textProps.color && textProps.color.color !== 'none' ? theme.getColorPickerColor(textProps.color, true) : theme.getStyle("object.".concat(objectType), target, 'color'),
|
|
30039
30067
|
fontWeight: fontStyle.includes('bold') ? 'bold' : 'normal',
|
|
30040
30068
|
fontStyle: fontStyle.includes('italic') ? 'italic' : 'normal',
|