@nebula.js/stardust 3.1.0-alpha.2 → 3.1.0-alpha.4
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 +4606 -2947
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +5 -5
- package/core/esm/index.js.map +1 -1
- package/core/package.json +2 -2
- package/dist/stardust.dev.js +6576 -4842
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +15 -15
- package/dist/stardust.js.map +1 -1
- package/package.json +12 -12
- package/types/index.d.ts +71 -46
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nebula.js/stardust",
|
|
3
|
-
"version": "3.1.0-alpha.
|
|
3
|
+
"version": "3.1.0-alpha.4",
|
|
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,16 +44,16 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@emotion/react": "^11.10.5",
|
|
46
46
|
"@emotion/styled": "^11.10.5",
|
|
47
|
-
"@mui/icons-material": "^5.
|
|
48
|
-
"@mui/material": "^5.
|
|
49
|
-
"@nebula.js/conversion": "^3.1.0-alpha.
|
|
50
|
-
"@nebula.js/enigma-mocker": "^3.1.0-alpha.
|
|
51
|
-
"@nebula.js/locale": "^3.1.0-alpha.
|
|
52
|
-
"@nebula.js/nucleus": "^3.1.0-alpha.
|
|
53
|
-
"@nebula.js/supernova": "^3.1.0-alpha.
|
|
54
|
-
"@nebula.js/theme": "^3.1.0-alpha.
|
|
55
|
-
"@nebula.js/ui": "^3.1.0-alpha.
|
|
56
|
-
"@scriptappy/cli": "0.
|
|
47
|
+
"@mui/icons-material": "^5.11.0",
|
|
48
|
+
"@mui/material": "^5.11.4",
|
|
49
|
+
"@nebula.js/conversion": "^3.1.0-alpha.4",
|
|
50
|
+
"@nebula.js/enigma-mocker": "^3.1.0-alpha.4",
|
|
51
|
+
"@nebula.js/locale": "^3.1.0-alpha.4",
|
|
52
|
+
"@nebula.js/nucleus": "^3.1.0-alpha.4",
|
|
53
|
+
"@nebula.js/supernova": "^3.1.0-alpha.4",
|
|
54
|
+
"@nebula.js/theme": "^3.1.0-alpha.4",
|
|
55
|
+
"@nebula.js/ui": "^3.1.0-alpha.4",
|
|
56
|
+
"@scriptappy/cli": "0.5.0",
|
|
57
57
|
"@scriptappy/to-dts": "1.0.0-beta.4",
|
|
58
58
|
"extend": "3.0.2",
|
|
59
59
|
"node-event-emitter": "0.0.1",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"regenerator-runtime": "0.13.11",
|
|
67
67
|
"semver": "6.3.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "99152950d6e1ffd73c944673c90931958dc86c03"
|
|
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
|
*/
|
|
@@ -324,39 +344,6 @@ declare namespace stardust {
|
|
|
324
344
|
isEnabled(flag: string): boolean;
|
|
325
345
|
}
|
|
326
346
|
|
|
327
|
-
type Field = string | EngineAPI.INxDimension | EngineAPI.INxMeasure | stardust.LibraryField;
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* Rendering configuration for creating and rendering a new object
|
|
331
|
-
*/
|
|
332
|
-
interface CreateConfig extends stardust.BaseConfig{
|
|
333
|
-
type: string;
|
|
334
|
-
version?: string;
|
|
335
|
-
fields?: stardust.Field[];
|
|
336
|
-
properties?: EngineAPI.IGenericObjectProperties;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* Basic rendering configuration for rendering an object
|
|
341
|
-
*/
|
|
342
|
-
interface BaseConfig {
|
|
343
|
-
element: HTMLElement;
|
|
344
|
-
options?: object;
|
|
345
|
-
plugins?: stardust.Plugin[];
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* Rendering configuration for rendering an existing object
|
|
350
|
-
*/
|
|
351
|
-
interface GetConfig extends stardust.BaseConfig{
|
|
352
|
-
id: string;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
interface LibraryField {
|
|
356
|
-
qLibraryId: string;
|
|
357
|
-
type: "dimension" | "measure";
|
|
358
|
-
}
|
|
359
|
-
|
|
360
347
|
class AppSelections {
|
|
361
348
|
constructor();
|
|
362
349
|
|
|
@@ -417,18 +404,37 @@ declare namespace stardust {
|
|
|
417
404
|
|
|
418
405
|
}
|
|
419
406
|
|
|
420
|
-
|
|
421
|
-
(type: {
|
|
422
|
-
name: string;
|
|
423
|
-
version: string;
|
|
424
|
-
}): Promise<stardust.Visualization>;
|
|
425
|
-
}
|
|
407
|
+
type Field = string | EngineAPI.INxDimension | EngineAPI.INxMeasure | stardust.LibraryField;
|
|
426
408
|
|
|
427
|
-
|
|
428
|
-
|
|
409
|
+
/**
|
|
410
|
+
* Rendering configuration for creating and rendering a new object
|
|
411
|
+
*/
|
|
412
|
+
interface CreateConfig extends stardust.BaseConfig{
|
|
413
|
+
type: string;
|
|
429
414
|
version?: string;
|
|
430
|
-
|
|
431
|
-
|
|
415
|
+
fields?: stardust.Field[];
|
|
416
|
+
properties?: EngineAPI.IGenericObjectProperties;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Basic rendering configuration for rendering an object
|
|
421
|
+
*/
|
|
422
|
+
interface BaseConfig {
|
|
423
|
+
element: HTMLElement;
|
|
424
|
+
options?: object;
|
|
425
|
+
plugins?: stardust.Plugin[];
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Rendering configuration for rendering an existing object
|
|
430
|
+
*/
|
|
431
|
+
interface GetConfig extends stardust.BaseConfig{
|
|
432
|
+
id: string;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
interface LibraryField {
|
|
436
|
+
qLibraryId: string;
|
|
437
|
+
type: "dimension" | "measure";
|
|
432
438
|
}
|
|
433
439
|
|
|
434
440
|
/**
|
|
@@ -441,6 +447,20 @@ declare namespace stardust {
|
|
|
441
447
|
fn: ()=>void;
|
|
442
448
|
}
|
|
443
449
|
|
|
450
|
+
interface LoadType {
|
|
451
|
+
(type: {
|
|
452
|
+
name: string;
|
|
453
|
+
version: string;
|
|
454
|
+
}): Promise<stardust.Visualization>;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
interface TypeInfo {
|
|
458
|
+
name: string;
|
|
459
|
+
version?: string;
|
|
460
|
+
load: stardust.LoadType;
|
|
461
|
+
meta?: object;
|
|
462
|
+
}
|
|
463
|
+
|
|
444
464
|
interface ActionToolbarElement extends HTMLElement{
|
|
445
465
|
className: "njs-action-toolbar-popover";
|
|
446
466
|
}
|
|
@@ -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`.
|