@nebula.js/stardust 3.1.2 → 3.2.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": "3.1.2",
3
+ "version": "3.2.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",
@@ -45,14 +45,14 @@
45
45
  "@emotion/react": "^11.10.5",
46
46
  "@emotion/styled": "^11.10.5",
47
47
  "@mui/icons-material": "^5.11.0",
48
- "@mui/material": "^5.11.4",
49
- "@nebula.js/conversion": "^3.1.2",
50
- "@nebula.js/enigma-mocker": "^3.1.2",
51
- "@nebula.js/locale": "^3.1.2",
52
- "@nebula.js/nucleus": "^3.1.2",
53
- "@nebula.js/supernova": "^3.1.2",
54
- "@nebula.js/theme": "^3.1.2",
55
- "@nebula.js/ui": "^3.1.2",
48
+ "@mui/material": "^5.11.7",
49
+ "@nebula.js/conversion": "^3.2.0",
50
+ "@nebula.js/enigma-mocker": "^3.2.0",
51
+ "@nebula.js/locale": "^3.2.0",
52
+ "@nebula.js/nucleus": "^3.2.0",
53
+ "@nebula.js/supernova": "^3.2.0",
54
+ "@nebula.js/theme": "^3.2.0",
55
+ "@nebula.js/ui": "^3.2.0",
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": "d9f7f958030fb27b2c7005c291717abbe6bb6216"
69
+ "gitHead": "de8ac8e30c4314cc78c0390a345709867f8120bc"
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