@nebula.js/stardust 2.4.1 → 2.7.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/CHANGELOG.md +24 -0
- package/core/esm/dev.js +2447 -1718
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +2 -2
- package/core/esm/index.js.map +1 -1
- package/dist/stardust.dev.js +2970 -1762
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +6 -6
- package/dist/stardust.js.map +1 -1
- package/package.json +9 -9
- package/types/index.d.ts +34 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nebula.js/stardust",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.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",
|
|
@@ -39,18 +39,18 @@
|
|
|
39
39
|
"version": "yarn run spec && yarn run ts && git add ./api-spec/spec.json ./types/index.d.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@types/qlik-engineapi": "12.67.
|
|
42
|
+
"@types/qlik-engineapi": "12.67.12"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@material-ui/core": "4.12.3",
|
|
46
46
|
"@material-ui/icons": "4.11.2",
|
|
47
47
|
"@material-ui/styles": "4.11.4",
|
|
48
|
-
"@nebula.js/conversion": "^2.
|
|
49
|
-
"@nebula.js/locale": "^2.
|
|
50
|
-
"@nebula.js/nucleus": "^2.
|
|
51
|
-
"@nebula.js/supernova": "^2.
|
|
52
|
-
"@nebula.js/theme": "^2.
|
|
53
|
-
"@nebula.js/ui": "^2.
|
|
48
|
+
"@nebula.js/conversion": "^2.7.0",
|
|
49
|
+
"@nebula.js/locale": "^2.7.0",
|
|
50
|
+
"@nebula.js/nucleus": "^2.7.0",
|
|
51
|
+
"@nebula.js/supernova": "^2.7.0",
|
|
52
|
+
"@nebula.js/theme": "^2.7.0",
|
|
53
|
+
"@nebula.js/ui": "^2.7.0",
|
|
54
54
|
"@scriptappy/cli": "0.1.0",
|
|
55
55
|
"@scriptappy/to-dts": "1.0.0-beta.4",
|
|
56
56
|
"extend": "3.0.2",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"regenerator-runtime": "0.13.9",
|
|
65
65
|
"semver": "6.3.0"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "2b595cabaa08b22ca50e2b72c5c349342725fecd"
|
|
68
68
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -171,6 +171,7 @@ export function useKeyboard(): stardust.Keyboard;
|
|
|
171
171
|
|
|
172
172
|
declare namespace stardust {
|
|
173
173
|
interface Context {
|
|
174
|
+
disableCellPadding?: boolean;
|
|
174
175
|
keyboardNavigation?: boolean;
|
|
175
176
|
constraints?: {
|
|
176
177
|
active?: boolean;
|
|
@@ -230,6 +231,14 @@ declare namespace stardust {
|
|
|
230
231
|
|
|
231
232
|
}
|
|
232
233
|
|
|
234
|
+
type Direction = "ltr" | "rtl";
|
|
235
|
+
|
|
236
|
+
type ListLayout = "vertical" | "horizontal";
|
|
237
|
+
|
|
238
|
+
type FrequencyMode = "none" | "value" | "percent" | "relative";
|
|
239
|
+
|
|
240
|
+
type SearchMode = "false" | "true" | "toggle";
|
|
241
|
+
|
|
233
242
|
/**
|
|
234
243
|
* A callback function which receives another function as input.
|
|
235
244
|
*/
|
|
@@ -243,23 +252,33 @@ declare namespace stardust {
|
|
|
243
252
|
* @param element
|
|
244
253
|
* @param options Settings for the embedded listbox
|
|
245
254
|
*/
|
|
246
|
-
|
|
255
|
+
mount(element: HTMLElement, options?: {
|
|
247
256
|
title?: string;
|
|
248
|
-
direction?:
|
|
249
|
-
listLayout?:
|
|
250
|
-
|
|
257
|
+
direction?: stardust.Direction;
|
|
258
|
+
listLayout?: stardust.ListLayout;
|
|
259
|
+
frequencyMode?: stardust.FrequencyMode;
|
|
260
|
+
histogram?: boolean;
|
|
261
|
+
search?: stardust.SearchMode;
|
|
262
|
+
focusSearch?: boolean;
|
|
251
263
|
toolbar?: boolean;
|
|
264
|
+
checkboxes?: boolean;
|
|
265
|
+
rangeSelect?: boolean;
|
|
266
|
+
dense?: boolean;
|
|
252
267
|
stateName?: boolean;
|
|
253
268
|
properties?: object;
|
|
254
269
|
sessionModel?: object;
|
|
255
270
|
selectionsApi?: object;
|
|
271
|
+
/**
|
|
272
|
+
* Define a function which tells when selections are disabled (true) or enabled (false). By default, always returns false.
|
|
273
|
+
*/
|
|
274
|
+
"selectDisabled="?(): boolean;
|
|
256
275
|
update?: stardust.ReceiverFunction;
|
|
257
276
|
}): void;
|
|
258
277
|
|
|
259
278
|
/**
|
|
260
279
|
* Unmounts the field listbox from the DOM.
|
|
261
280
|
*/
|
|
262
|
-
|
|
281
|
+
unmount(): void;
|
|
263
282
|
|
|
264
283
|
}
|
|
265
284
|
|
|
@@ -370,7 +389,7 @@ declare namespace stardust {
|
|
|
370
389
|
*/
|
|
371
390
|
interface CreateConfig extends stardust.BaseConfig{
|
|
372
391
|
type: string;
|
|
373
|
-
version
|
|
392
|
+
version?: string;
|
|
374
393
|
fields?: stardust.Field[];
|
|
375
394
|
properties?: EngineAPI.IGenericObjectProperties;
|
|
376
395
|
}
|
|
@@ -415,20 +434,11 @@ declare namespace stardust {
|
|
|
415
434
|
|
|
416
435
|
interface TypeInfo {
|
|
417
436
|
name: string;
|
|
418
|
-
version
|
|
437
|
+
version?: string;
|
|
419
438
|
load: stardust.LoadType;
|
|
420
439
|
meta?: object;
|
|
421
440
|
}
|
|
422
441
|
|
|
423
|
-
type MinMaxResult = {
|
|
424
|
-
};
|
|
425
|
-
|
|
426
|
-
/**
|
|
427
|
-
* Returns the min and max indices of elemNumbersOrdered which contains
|
|
428
|
-
* all numbers in elementNbrs.
|
|
429
|
-
*/
|
|
430
|
-
type getMinMax = (elementNbrs: number[], elemNumbersOrdered: number[])=>stardust.MinMaxResult;
|
|
431
|
-
|
|
432
442
|
interface ActionToolbarElement extends HTMLElement{
|
|
433
443
|
className: "njs-action-toolbar-popover";
|
|
434
444
|
}
|
|
@@ -622,14 +632,18 @@ declare namespace stardust {
|
|
|
622
632
|
getContrastingColorTo(color: string): string;
|
|
623
633
|
|
|
624
634
|
/**
|
|
625
|
-
* Get the value of a style attribute in the theme
|
|
626
|
-
*
|
|
635
|
+
* Get the value of a style attribute in the theme
|
|
636
|
+
* by searching in the theme's JSON structure.
|
|
637
|
+
* The search starts at the specified base path
|
|
638
|
+
* and continues upwards until the value is found.
|
|
627
639
|
* If possible it will get the attribute's value using the given path.
|
|
640
|
+
* When attributes separated by dots are provided, such as 'hover.color',
|
|
641
|
+
* they are required in the theme JSON file
|
|
628
642
|
* @param basePath Base path in the theme's JSON structure to start the search in (specified as a name path separated by dots).
|
|
629
643
|
* @param path Expected path for the attribute (specified as a name path separated by dots).
|
|
630
|
-
* @param attribute Name of the style attribute.
|
|
644
|
+
* @param attribute Name of the style attribute. (specified as a name attribute separated by dots).
|
|
631
645
|
*/
|
|
632
|
-
getStyle(basePath: string, path: string, attribute: string): string;
|
|
646
|
+
getStyle(basePath: string, path: string, attribute: string): string | undefined;
|
|
633
647
|
|
|
634
648
|
}
|
|
635
649
|
|