@nebula.js/stardust 3.1.3 → 3.2.1
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 +212 -115
- 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 +212 -115
- 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 +35 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nebula.js/stardust",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "Product and framework agnostic integration API for Qlik's Associative Engine",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "QlikTech International AB",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"@emotion/styled": "^11.10.5",
|
|
47
47
|
"@mui/icons-material": "^5.11.0",
|
|
48
48
|
"@mui/material": "^5.11.7",
|
|
49
|
-
"@nebula.js/conversion": "^3.1
|
|
50
|
-
"@nebula.js/enigma-mocker": "^3.1
|
|
51
|
-
"@nebula.js/locale": "^3.1
|
|
52
|
-
"@nebula.js/nucleus": "^3.1
|
|
53
|
-
"@nebula.js/supernova": "^3.1
|
|
54
|
-
"@nebula.js/theme": "^3.1
|
|
55
|
-
"@nebula.js/ui": "^3.1
|
|
49
|
+
"@nebula.js/conversion": "^3.2.1",
|
|
50
|
+
"@nebula.js/enigma-mocker": "^3.2.1",
|
|
51
|
+
"@nebula.js/locale": "^3.2.1",
|
|
52
|
+
"@nebula.js/nucleus": "^3.2.1",
|
|
53
|
+
"@nebula.js/supernova": "^3.2.1",
|
|
54
|
+
"@nebula.js/theme": "^3.2.1",
|
|
55
|
+
"@nebula.js/ui": "^3.2.1",
|
|
56
56
|
"@scriptappy/cli": "0.6.0",
|
|
57
57
|
"@scriptappy/to-dts": "1.0.0-beta.4",
|
|
58
58
|
"extend": "3.0.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"regenerator-runtime": "0.13.11",
|
|
67
67
|
"semver": "6.3.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "af032d1dfcd67b33b3fd35be26d4897b826a5083"
|
|
70
70
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -198,6 +198,14 @@ export namespace EnigmaMocker {
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
declare namespace stardust {
|
|
201
|
+
interface Configuration {
|
|
202
|
+
load?: stardust.LoadType;
|
|
203
|
+
context?: stardust.Context;
|
|
204
|
+
types?: stardust.TypeInfo[];
|
|
205
|
+
themes?: stardust.ThemeInfo[];
|
|
206
|
+
anything?: object;
|
|
207
|
+
}
|
|
208
|
+
|
|
201
209
|
interface Context {
|
|
202
210
|
keyboardNavigation?: boolean;
|
|
203
211
|
constraints?: {
|
|
@@ -210,13 +218,6 @@ declare namespace stardust {
|
|
|
210
218
|
deviceType?: string;
|
|
211
219
|
}
|
|
212
220
|
|
|
213
|
-
interface Configuration {
|
|
214
|
-
context?: stardust.Context;
|
|
215
|
-
types?: stardust.TypeInfo[];
|
|
216
|
-
themes?: stardust.ThemeInfo[];
|
|
217
|
-
anything?: object;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
221
|
interface Galaxy {
|
|
221
222
|
translator: stardust.Translator;
|
|
222
223
|
flags: stardust.Flags;
|
|
@@ -265,11 +266,27 @@ declare namespace stardust {
|
|
|
265
266
|
|
|
266
267
|
type FrequencyMode = "none" | "value" | "percent" | "relative";
|
|
267
268
|
|
|
268
|
-
type SearchMode = boolean | "toggle";
|
|
269
|
+
type SearchMode = boolean | "toggle" | "inSelection";
|
|
270
|
+
|
|
271
|
+
type FieldEventTypes = "selectionActivated" | "selectionDeactivated";
|
|
269
272
|
|
|
270
273
|
class FieldInstance {
|
|
271
274
|
constructor();
|
|
272
275
|
|
|
276
|
+
/**
|
|
277
|
+
* Event listener function on instance
|
|
278
|
+
* @param eventType event type that function needs to listen
|
|
279
|
+
* @param callback a callback function to run when event emits
|
|
280
|
+
*/
|
|
281
|
+
on(eventType: stardust.FieldEventTypes, callback: ()=>void): void;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Remove listener on instance
|
|
285
|
+
* @param eventType event type
|
|
286
|
+
* @param callback handler
|
|
287
|
+
*/
|
|
288
|
+
removeListener(eventType: stardust.FieldEventTypes, callback: ()=>void): void;
|
|
289
|
+
|
|
273
290
|
/**
|
|
274
291
|
* Mounts the field as a listbox into the provided HTMLElement.
|
|
275
292
|
* @param element
|
|
@@ -419,6 +436,16 @@ declare namespace stardust {
|
|
|
419
436
|
|
|
420
437
|
}
|
|
421
438
|
|
|
439
|
+
/**
|
|
440
|
+
* An object literal containing meta information about the plugin and a function containing the plugin implementation.
|
|
441
|
+
*/
|
|
442
|
+
interface Plugin {
|
|
443
|
+
info: {
|
|
444
|
+
name: string;
|
|
445
|
+
};
|
|
446
|
+
fn: ()=>void;
|
|
447
|
+
}
|
|
448
|
+
|
|
422
449
|
type Field = string | EngineAPI.INxDimension | EngineAPI.INxMeasure | stardust.LibraryField;
|
|
423
450
|
|
|
424
451
|
/**
|
|
@@ -453,16 +480,6 @@ declare namespace stardust {
|
|
|
453
480
|
type: "dimension" | "measure";
|
|
454
481
|
}
|
|
455
482
|
|
|
456
|
-
/**
|
|
457
|
-
* An object literal containing meta information about the plugin and a function containing the plugin implementation.
|
|
458
|
-
*/
|
|
459
|
-
interface Plugin {
|
|
460
|
-
info: {
|
|
461
|
-
name: string;
|
|
462
|
-
};
|
|
463
|
-
fn: ()=>void;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
483
|
interface LoadType {
|
|
467
484
|
(type: {
|
|
468
485
|
name: string;
|