@nebula.js/stardust 4.8.0 → 4.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebula.js/stardust",
3
- "version": "4.8.0",
3
+ "version": "4.9.0",
4
4
  "description": "Product and framework agnostic integration API for Qlik's Associative Engine",
5
5
  "license": "MIT",
6
6
  "author": "QlikTech International AB",
@@ -48,13 +48,13 @@
48
48
  "@emotion/styled": "^11.11.0",
49
49
  "@mui/icons-material": "^5.14.18",
50
50
  "@mui/material": "^5.14.18",
51
- "@nebula.js/conversion": "^4.8.0",
52
- "@nebula.js/enigma-mocker": "^4.8.0",
53
- "@nebula.js/locale": "^4.8.0",
54
- "@nebula.js/nucleus": "^4.8.0",
55
- "@nebula.js/supernova": "^4.8.0",
56
- "@nebula.js/theme": "^4.8.0",
57
- "@nebula.js/ui": "^4.8.0",
51
+ "@nebula.js/conversion": "^4.9.0",
52
+ "@nebula.js/enigma-mocker": "^4.9.0",
53
+ "@nebula.js/locale": "^4.9.0",
54
+ "@nebula.js/nucleus": "^4.9.0",
55
+ "@nebula.js/supernova": "^4.9.0",
56
+ "@nebula.js/theme": "^4.9.0",
57
+ "@nebula.js/ui": "^4.9.0",
58
58
  "@scriptappy/cli": "0.10.0",
59
59
  "@scriptappy/from-jsdoc": "0.19.0",
60
60
  "@scriptappy/to-dts": "1.0.0-beta.4",
@@ -69,5 +69,5 @@
69
69
  "regenerator-runtime": "0.14.0",
70
70
  "semver": "7.5.4"
71
71
  },
72
- "gitHead": "29cc6d55fb18bb173d4a397730fe6fe54102be92"
72
+ "gitHead": "45dbf5b8fae64c7774b8ebabd3a94af33c7d2283"
73
73
  }
package/types/index.d.ts CHANGED
@@ -242,6 +242,7 @@ declare namespace stardust {
242
242
  interactions?: stardust.Interactions;
243
243
  keyboardNavigation?: boolean;
244
244
  disableCellPadding?: boolean;
245
+ dataViewType?: string;
245
246
  }
246
247
 
247
248
  interface Galaxy {
@@ -411,6 +412,16 @@ declare namespace stardust {
411
412
  */
412
413
  convertTo(newType: string, forceUpdate?: boolean, forcePatch?: boolean): Promise<object>;
413
414
 
415
+ /**
416
+ * Toggles the chart to a data view of the chart.
417
+ *
418
+ * The chart will be toggled to the type defined in the nebula context (dataViewType).
419
+ *
420
+ * The default dataViewType for nebula is sn-table. The specified chart type needs to be registered as well, in order to make it possible to render the data view.
421
+ * @param showDataView If included, forces the chart into a specific state. True will show data view, and false will show the original chart. If not included it will always toggle between the two views.
422
+ */
423
+ toggleDataView(showDataView?: boolean): void;
424
+
414
425
  /**
415
426
  * Listens to custom events from inside the visualization. See useEmitter
416
427
  * @param eventName Event name to listen to
@@ -514,6 +525,16 @@ declare namespace stardust {
514
525
 
515
526
  }
516
527
 
528
+ /**
529
+ * An object literal containing meta information about the plugin and a function containing the plugin implementation.
530
+ */
531
+ interface Plugin {
532
+ info: {
533
+ name: string;
534
+ };
535
+ fn: ()=>void;
536
+ }
537
+
517
538
  type Field = string | EngineAPI.INxDimension | EngineAPI.INxMeasure | stardust.LibraryField;
518
539
 
519
540
  /**
@@ -546,16 +567,6 @@ declare namespace stardust {
546
567
  type: "dimension" | "measure";
547
568
  }
548
569
 
549
- /**
550
- * An object literal containing meta information about the plugin and a function containing the plugin implementation.
551
- */
552
- interface Plugin {
553
- info: {
554
- name: string;
555
- };
556
- fn: ()=>void;
557
- }
558
-
559
570
  interface LoadType {
560
571
  (type: {
561
572
  name: string;