@nebula.js/stardust 3.1.0-alpha.1 → 3.1.0-alpha.3

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": "3.1.0-alpha.1",
3
+ "version": "3.1.0-alpha.3",
4
4
  "description": "Product and framework agnostic integration API for Qlik's Associative Engine",
5
5
  "license": "MIT",
6
6
  "author": "QlikTech International AB",
@@ -44,15 +44,15 @@
44
44
  "devDependencies": {
45
45
  "@emotion/react": "^11.10.5",
46
46
  "@emotion/styled": "^11.10.5",
47
- "@mui/icons-material": "^5.10.9",
48
- "@mui/material": "^5.10.12",
49
- "@nebula.js/conversion": "^3.1.0-alpha.1",
50
- "@nebula.js/enigma-mocker": "^3.1.0-alpha.1",
51
- "@nebula.js/locale": "^3.1.0-alpha.1",
52
- "@nebula.js/nucleus": "^3.1.0-alpha.1",
53
- "@nebula.js/supernova": "^3.1.0-alpha.1",
54
- "@nebula.js/theme": "^3.1.0-alpha.1",
55
- "@nebula.js/ui": "^3.1.0-alpha.1",
47
+ "@mui/icons-material": "^5.10.16",
48
+ "@mui/material": "^5.10.16",
49
+ "@nebula.js/conversion": "^3.1.0-alpha.3",
50
+ "@nebula.js/enigma-mocker": "^3.1.0-alpha.3",
51
+ "@nebula.js/locale": "^3.1.0-alpha.3",
52
+ "@nebula.js/nucleus": "^3.1.0-alpha.3",
53
+ "@nebula.js/supernova": "^3.1.0-alpha.3",
54
+ "@nebula.js/theme": "^3.1.0-alpha.3",
55
+ "@nebula.js/ui": "^3.1.0-alpha.3",
56
56
  "@scriptappy/cli": "0.1.0",
57
57
  "@scriptappy/to-dts": "1.0.0-beta.4",
58
58
  "extend": "3.0.2",
@@ -63,8 +63,8 @@
63
63
  "react-virtualized-auto-sizer": "^1.0.7",
64
64
  "react-window": "1.8.8",
65
65
  "react-window-infinite-loader": "1.0.8",
66
- "regenerator-runtime": "0.13.10",
66
+ "regenerator-runtime": "0.13.11",
67
67
  "semver": "6.3.0"
68
68
  },
69
- "gitHead": "62d1862cc80fca13ab2753702ce2c396fed4b9d8"
69
+ "gitHead": "7697cb029246354e9f2255410c389b6996c89ced"
70
70
  }
package/types/index.d.ts CHANGED
@@ -213,10 +213,11 @@ declare namespace stardust {
213
213
  constructor();
214
214
 
215
215
  /**
216
- * Renders a visualization into an HTMLElement.
216
+ * Renders a visualization or sheet into an HTMLElement.
217
+ * Support for sense sheets is experimental.
217
218
  * @param cfg The render configuration.
218
219
  */
219
- render(cfg: stardust.CreateConfig | stardust.GetConfig): Promise<stardust.Viz>;
220
+ render(cfg: stardust.CreateConfig | stardust.GetConfig): Promise<stardust.Viz | stardust.Sheet>;
220
221
 
221
222
  /**
222
223
  * Updates the current context of this embed instance.
@@ -294,6 +295,23 @@ declare namespace stardust {
294
295
  qId: string;
295
296
  }
296
297
 
298
+ /**
299
+ * A controller to further modify a visualization after it has been rendered.
300
+ */
301
+ class Sheet {
302
+ constructor();
303
+
304
+ id: string;
305
+
306
+ model: string;
307
+
308
+ /**
309
+ * Destroys the sheet and removes it from the the DOM.
310
+ */
311
+ destroy(): void;
312
+
313
+ }
314
+
297
315
  /**
298
316
  * A controller to further modify a visualization after it has been rendered.
299
317
  */
@@ -302,6 +320,8 @@ declare namespace stardust {
302
320
 
303
321
  id: string;
304
322
 
323
+ model: string;
324
+
305
325
  /**
306
326
  * Destroys the visualization and removes it from the the DOM.
307
327
  */
@@ -465,6 +485,10 @@ declare namespace stardust {
465
485
  className: "njs-cell-sub-title";
466
486
  }
467
487
 
488
+ interface SheetElement extends HTMLElement{
489
+ className: "njs-sheet";
490
+ }
491
+
468
492
  interface VizElementAttributes extends NamedNodeMap{
469
493
  "data-render-count": string;
470
494
  }
@@ -618,11 +642,12 @@ declare namespace stardust {
618
642
  /**
619
643
  * Resolve a color object using the color picker palette from the provided JSON theme.
620
644
  * @param c
645
+ * @param supportNone Shifts the palette index by one to account for the "none" color
621
646
  */
622
647
  getColorPickerColor(c: {
623
648
  index?: number;
624
649
  color?: string;
625
- }): string;
650
+ }, supportNone?: boolean): string;
626
651
 
627
652
  /**
628
653
  * Get the best contrasting color against the specified `color`.