@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 CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/stardust v4.12.0
2
+ * @nebula.js/stardust v4.13.0
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -2850,6 +2850,23 @@ var dataColors = {
2850
2850
  errorColor: "#ff4444",
2851
2851
  nullColor: "#d2d2d2"
2852
2852
  };
2853
+ var object$2 = {
2854
+ title: {
2855
+ main: {
2856
+ color: "@B50",
2857
+ fontSize: "15px"
2858
+ },
2859
+ subTitle: {
2860
+ color: "@B50",
2861
+ fontSize: "12px"
2862
+ },
2863
+ footer: {
2864
+ color: "@B50",
2865
+ fontSize: "12px",
2866
+ backgroundColor: "transparent"
2867
+ }
2868
+ }
2869
+ };
2853
2870
  var scales = [
2854
2871
  {
2855
2872
  name: "Sequential Gradient",
@@ -3036,6 +3053,7 @@ var baseRawJSON = {
3036
3053
  fontFamily: fontFamily,
3037
3054
  backgroundColor: backgroundColor$1,
3038
3055
  dataColors: dataColors,
3056
+ object: object$2,
3039
3057
  scales: scales,
3040
3058
  palettes: palettes
3041
3059
  };
@@ -3233,9 +3251,15 @@ function theme$1(resolvedTheme) {
3233
3251
  };
3234
3252
  },
3235
3253
  uiColor(c, shift) {
3254
+ const indexIsValid = typeof (c === null || c === void 0 ? void 0 : c.index) === 'number' && !Number.isNaN(c === null || c === void 0 ? void 0 : c.index);
3255
+ const colorIsValid = typeof (c === null || c === void 0 ? void 0 : c.color) === 'string';
3256
+ const somethingIsValid = indexIsValid || colorIsValid;
3257
+ if (!somethingIsValid) {
3258
+ return undefined;
3259
+ }
3236
3260
  // eslint-disable-next-line no-param-reassign
3237
3261
  shift = !!shift;
3238
- if (c.index < 0 || typeof c.index === 'undefined') {
3262
+ if ((c === null || c === void 0 ? void 0 : c.index) < 0 || typeof (c === null || c === void 0 ? void 0 : c.index) === 'undefined') {
3239
3263
  return c.color;
3240
3264
  }
3241
3265
  if (typeof uiPalette === 'undefined') {
@@ -9033,7 +9057,7 @@ function create$3(definition) {
9033
9057
  return cache[key];
9034
9058
  }
9035
9059
 
9036
- const NEBULA_VERSION_HASH = "03a3" ;
9060
+ const NEBULA_VERSION_HASH = "3ebc" ;
9037
9061
  ClassNameGenerator.configure(componentName => {
9038
9062
  return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
9039
9063
  });
@@ -9293,7 +9317,7 @@ function boot(_ref2) {
9293
9317
  const appRef = React__default.createRef();
9294
9318
  const element = document.createElement('div');
9295
9319
  element.style.display = 'none';
9296
- element.setAttribute('data-nebulajs-version', "4.12.0" );
9320
+ element.setAttribute('data-nebulajs-version', "4.13.0" );
9297
9321
  element.setAttribute('data-app-id', app.id);
9298
9322
  document.body.appendChild(element);
9299
9323
  if (context) {
@@ -15385,6 +15409,9 @@ function ActionsToolbar(_ref3) {
15385
15409
  transformOrigin: popoverTransformOrigin,
15386
15410
  hideBackdrop: true,
15387
15411
  style: popoverStyle,
15412
+ onMouseDown: e => {
15413
+ e.stopPropagation(); // prevent click through, closing when it should not
15414
+ },
15388
15415
  slotProps: {
15389
15416
  paper: {
15390
15417
  id: 'njs-action-toolbar-popover',
@@ -17821,6 +17848,7 @@ function resolveTextStyle(textComp, target, theme, objectType) {
17821
17848
  const fontStyle = unfurlFontStyle(textProps.fontStyle, target);
17822
17849
  return {
17823
17850
  fontFamily: textProps.fontFamily || theme.getStyle("object.".concat(objectType), "title.".concat(target), 'fontFamily'),
17851
+ fontSize: textProps.fontSize || theme.getStyle("object.".concat(objectType), "title.".concat(target), 'fontSize'),
17824
17852
  color: textProps.color && textProps.color.color !== 'none' ? theme.getColorPickerColor(textProps.color, true) : theme.getStyle("object.".concat(objectType), target, 'color'),
17825
17853
  fontWeight: fontStyle.includes('bold') ? 'bold' : 'normal',
17826
17854
  fontStyle: fontStyle.includes('italic') ? 'italic' : 'normal',