@knime/scripting-editor 0.0.104 → 0.0.105

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.
@@ -102,9 +102,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
102
102
  activeDescendant: string | undefined;
103
103
  }, {}, {
104
104
  toggleMenu(event: Event): void;
105
- onItemClick(event: Event, item: any): void;
105
+ onItemClick(event: Event, item: MenuItem): void;
106
106
  onKeydown(event: KeyboardEvent): void;
107
- getMenuItems(): any;
107
+ getMenuItems(): InstanceType<typeof import('@knime/components').MenuItems>;
108
108
  setActiveDescendant(id: string | null): void;
109
109
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("close" | "toggle" | "open" | "item-click")[], "close" | "toggle" | "open" | "item-click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
110
110
  items: {
@@ -177,15 +177,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
177
177
  focusIndex: (index?: number) => void;
178
178
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
179
179
  close: () => any;
180
- "item-click": (event: MouseEvent, item: MenuItem<any, any>, menuId: string) => any;
181
- "item-focused": (itemId: string | null, item: MenuItem<any, any> | null) => any;
182
- "item-hovered": (item: MenuItem<any, any> | null, menuId: string, index: number | null) => any;
180
+ "item-click": (event: MouseEvent, item: MenuItem<unknown, unknown>, menuId: string) => any;
181
+ "item-focused": (itemId: string | null, item: MenuItem<unknown, unknown> | null) => any;
182
+ "item-hovered": (item: MenuItem<unknown, unknown> | null, menuId: string, index: number | null) => any;
183
183
  "close-submenu": () => any;
184
184
  }, string, import('vue').PublicProps, Readonly<import('node_modules/@knime/components/src/components/base/MenuItem/MenuItems.vue').Props> & Readonly<{
185
185
  onClose?: (() => any) | undefined;
186
- "onItem-click"?: ((event: MouseEvent, item: MenuItem<any, any>, menuId: string) => any) | undefined;
187
- "onItem-focused"?: ((itemId: string | null, item: MenuItem<any, any> | null) => any) | undefined;
188
- "onItem-hovered"?: ((item: MenuItem<any, any> | null, menuId: string, index: number | null) => any) | undefined;
186
+ "onItem-click"?: ((event: MouseEvent, item: MenuItem<unknown, unknown>, menuId: string) => any) | undefined;
187
+ "onItem-focused"?: ((itemId: string | null, item: MenuItem<unknown, unknown> | null) => any) | undefined;
188
+ "onItem-hovered"?: ((item: MenuItem<unknown, unknown> | null, menuId: string, index: number | null) => any) | undefined;
189
189
  "onClose-submenu"?: (() => any) | undefined;
190
190
  }>, {
191
191
  disableSpaceToClick: boolean;
@@ -203,9 +203,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
203
203
  readonly maxMenuWidth?: number | null | undefined;
204
204
  readonly positionRelativeToElement?: (HTMLElement | null) | undefined;
205
205
  readonly clippingBoundary?: import('@floating-ui/dom').Boundary | undefined;
206
- readonly "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any) | undefined;
207
- readonly "onItem-focused"?: ((id: string | null, args_1: MenuItem<any, any> | null) => any) | undefined;
208
- readonly "onItem-hovered"?: ((args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any) | undefined;
206
+ readonly "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any) | undefined;
207
+ readonly "onItem-focused"?: ((id: string | null, args_1: MenuItem<unknown, unknown> | null) => any) | undefined;
208
+ readonly "onItem-hovered"?: ((args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any) | undefined;
209
209
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
210
210
  $attrs: {
211
211
  [x: string]: unknown;
@@ -221,7 +221,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
221
221
  $root: import('vue').ComponentPublicInstance | null;
222
222
  $parent: import('vue').ComponentPublicInstance | null;
223
223
  $host: Element | null;
224
- $emit: ((event: "item-click", args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => void) & ((event: "item-focused", id: string | null, args_1: MenuItem<any, any> | null) => void) & ((event: "item-hovered", args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => void);
224
+ $emit: ((event: "item-click", args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => void) & ((event: "item-focused", id: string | null, args_1: MenuItem<unknown, unknown> | null) => void) & ((event: "item-hovered", args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => void);
225
225
  $el: HTMLUListElement;
226
226
  $options: import('vue').ComponentOptionsBase<Readonly<{
227
227
  items: Array<MenuItem>;
@@ -232,9 +232,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
232
232
  positionRelativeToElement?: HTMLElement | null;
233
233
  clippingBoundary?: import('@floating-ui/dom').Boundary;
234
234
  }> & Readonly<{
235
- "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any) | undefined;
236
- "onItem-focused"?: ((id: string | null, args_1: MenuItem<any, any> | null) => any) | undefined;
237
- "onItem-hovered"?: ((args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any) | undefined;
235
+ "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any) | undefined;
236
+ "onItem-focused"?: ((id: string | null, args_1: MenuItem<unknown, unknown> | null) => any) | undefined;
237
+ "onItem-hovered"?: ((args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any) | undefined;
238
238
  }>, {
239
239
  scrollTo: (element: HTMLLIElement) => void;
240
240
  getEnabledListItems: () => {
@@ -243,9 +243,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
243
243
  onClick: () => void;
244
244
  }[];
245
245
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
246
- "item-click": (args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any;
247
- "item-focused": (id: string | null, args_1: MenuItem<any, any> | null) => any;
248
- "item-hovered": (args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any;
246
+ "item-click": (args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any;
247
+ "item-focused": (id: string | null, args_1: MenuItem<unknown, unknown> | null) => any;
248
+ "item-hovered": (args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any;
249
249
  }, string, {
250
250
  id: string;
251
251
  focusedItemIndex: number | null;
@@ -287,9 +287,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
287
287
  positionRelativeToElement?: HTMLElement | null;
288
288
  clippingBoundary?: import('@floating-ui/dom').Boundary;
289
289
  }> & Readonly<{
290
- "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any) | undefined;
291
- "onItem-focused"?: ((id: string | null, args_1: MenuItem<any, any> | null) => any) | undefined;
292
- "onItem-hovered"?: ((args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any) | undefined;
290
+ "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any) | undefined;
291
+ "onItem-focused"?: ((id: string | null, args_1: MenuItem<unknown, unknown> | null) => any) | undefined;
292
+ "onItem-hovered"?: ((args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any) | undefined;
293
293
  }>, "scrollTo" | "getEnabledListItems" | ("id" | "focusedItemIndex" | "maxMenuWidth" | "positionRelativeToElement" | "clippingBoundary")> & import('vue').ShallowUnwrapRef<{
294
294
  scrollTo: (element: HTMLLIElement) => void;
295
295
  getEnabledListItems: () => {
@@ -300,7 +300,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
300
300
  }> & {} & import('vue').ComponentCustomProperties & {} & {
301
301
  $slots: {
302
302
  item?(_: {
303
- item: MenuItem<any, any>;
303
+ item: MenuItem<unknown, unknown>;
304
304
  index: number;
305
305
  menuId: string;
306
306
  menuItemId: (index: number) => string;
@@ -319,9 +319,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
319
319
  readonly registerKeydown?: boolean | undefined;
320
320
  readonly clippingBoundary?: import('@floating-ui/dom').Boundary | undefined;
321
321
  readonly onClose?: (() => any) | undefined;
322
- readonly "onItem-click"?: ((event: MouseEvent, item: MenuItem<any, any>, menuId: string) => any) | undefined;
323
- readonly "onItem-focused"?: ((itemId: string | null, item: MenuItem<any, any> | null) => any) | undefined;
324
- readonly "onItem-hovered"?: ((item: MenuItem<any, any> | null, menuId: string, index: number | null) => any) | undefined;
322
+ readonly "onItem-click"?: ((event: MouseEvent, item: MenuItem<unknown, unknown>, menuId: string) => any) | undefined;
323
+ readonly "onItem-focused"?: ((itemId: string | null, item: MenuItem<unknown, unknown> | null) => any) | undefined;
324
+ readonly "onItem-hovered"?: ((item: MenuItem<unknown, unknown> | null, menuId: string, index: number | null) => any) | undefined;
325
325
  readonly "onClose-submenu"?: (() => any) | undefined;
326
326
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
327
327
  $attrs: {
@@ -336,13 +336,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
336
336
  $root: import('vue').ComponentPublicInstance | null;
337
337
  $parent: import('vue').ComponentPublicInstance | null;
338
338
  $host: Element | null;
339
- $emit: ((event: "close") => void) & ((event: "item-click", event: MouseEvent, item: MenuItem<any, any>, menuId: string) => void) & ((event: "item-focused", itemId: string | null, item: MenuItem<any, any> | null) => void) & ((event: "item-hovered", item: MenuItem<any, any> | null, menuId: string, index: number | null) => void) & ((event: "close-submenu") => void);
339
+ $emit: ((event: "close") => void) & ((event: "item-click", event: MouseEvent, item: MenuItem<unknown, unknown>, menuId: string) => void) & ((event: "item-focused", itemId: string | null, item: MenuItem<unknown, unknown> | null) => void) & ((event: "item-hovered", item: MenuItem<unknown, unknown> | null, menuId: string, index: number | null) => void) & ((event: "close-submenu") => void);
340
340
  $el: any;
341
341
  $options: import('vue').ComponentOptionsBase<Readonly<import('node_modules/@knime/components/src/components/base/MenuItem/MenuItems.vue').Props> & Readonly<{
342
342
  onClose?: (() => any) | undefined;
343
- "onItem-click"?: ((event: MouseEvent, item: MenuItem<any, any>, menuId: string) => any) | undefined;
344
- "onItem-focused"?: ((itemId: string | null, item: MenuItem<any, any> | null) => any) | undefined;
345
- "onItem-hovered"?: ((item: MenuItem<any, any> | null, menuId: string, index: number | null) => any) | undefined;
343
+ "onItem-click"?: ((event: MouseEvent, item: MenuItem<unknown, unknown>, menuId: string) => any) | undefined;
344
+ "onItem-focused"?: ((itemId: string | null, item: MenuItem<unknown, unknown> | null) => any) | undefined;
345
+ "onItem-hovered"?: ((item: MenuItem<unknown, unknown> | null, menuId: string, index: number | null) => any) | undefined;
346
346
  "onClose-submenu"?: (() => any) | undefined;
347
347
  }>, {
348
348
  ArrowNextIcon: typeof MenuIcon;
@@ -359,9 +359,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
359
359
  readonly maxMenuWidth?: number | null | undefined;
360
360
  readonly positionRelativeToElement?: (HTMLElement | null) | undefined;
361
361
  readonly clippingBoundary?: import('@floating-ui/dom').Boundary | undefined;
362
- readonly "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any) | undefined;
363
- readonly "onItem-focused"?: ((id: string | null, args_1: MenuItem<any, any> | null) => any) | undefined;
364
- readonly "onItem-hovered"?: ((args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any) | undefined;
362
+ readonly "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any) | undefined;
363
+ readonly "onItem-focused"?: ((id: string | null, args_1: MenuItem<unknown, unknown> | null) => any) | undefined;
364
+ readonly "onItem-hovered"?: ((args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any) | undefined;
365
365
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
366
366
  $attrs: {
367
367
  [x: string]: unknown;
@@ -377,7 +377,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
377
377
  $root: import('vue').ComponentPublicInstance | null;
378
378
  $parent: import('vue').ComponentPublicInstance | null;
379
379
  $host: Element | null;
380
- $emit: ((event: "item-click", args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => void) & ((event: "item-focused", id: string | null, args_1: MenuItem<any, any> | null) => void) & ((event: "item-hovered", args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => void);
380
+ $emit: ((event: "item-click", args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => void) & ((event: "item-focused", id: string | null, args_1: MenuItem<unknown, unknown> | null) => void) & ((event: "item-hovered", args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => void);
381
381
  $el: HTMLUListElement;
382
382
  $options: import('vue').ComponentOptionsBase<Readonly<{
383
383
  items: Array<MenuItem>;
@@ -388,9 +388,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
388
388
  positionRelativeToElement?: HTMLElement | null;
389
389
  clippingBoundary?: import('@floating-ui/dom').Boundary;
390
390
  }> & Readonly<{
391
- "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any) | undefined;
392
- "onItem-focused"?: ((id: string | null, args_1: MenuItem<any, any> | null) => any) | undefined;
393
- "onItem-hovered"?: ((args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any) | undefined;
391
+ "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any) | undefined;
392
+ "onItem-focused"?: ((id: string | null, args_1: MenuItem<unknown, unknown> | null) => any) | undefined;
393
+ "onItem-hovered"?: ((args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any) | undefined;
394
394
  }>, {
395
395
  scrollTo: (element: HTMLLIElement) => void;
396
396
  getEnabledListItems: () => {
@@ -399,9 +399,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
399
399
  onClick: () => void;
400
400
  }[];
401
401
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
402
- "item-click": (args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any;
403
- "item-focused": (id: string | null, args_1: MenuItem<any, any> | null) => any;
404
- "item-hovered": (args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any;
402
+ "item-click": (args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any;
403
+ "item-focused": (id: string | null, args_1: MenuItem<unknown, unknown> | null) => any;
404
+ "item-hovered": (args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any;
405
405
  }, string, {
406
406
  id: string;
407
407
  focusedItemIndex: number | null;
@@ -443,9 +443,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
443
443
  positionRelativeToElement?: HTMLElement | null;
444
444
  clippingBoundary?: import('@floating-ui/dom').Boundary;
445
445
  }> & Readonly<{
446
- "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any) | undefined;
447
- "onItem-focused"?: ((id: string | null, args_1: MenuItem<any, any> | null) => any) | undefined;
448
- "onItem-hovered"?: ((args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any) | undefined;
446
+ "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any) | undefined;
447
+ "onItem-focused"?: ((id: string | null, args_1: MenuItem<unknown, unknown> | null) => any) | undefined;
448
+ "onItem-hovered"?: ((args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any) | undefined;
449
449
  }>, "scrollTo" | "getEnabledListItems" | ("id" | "focusedItemIndex" | "maxMenuWidth" | "positionRelativeToElement" | "clippingBoundary")> & import('vue').ShallowUnwrapRef<{
450
450
  scrollTo: (element: HTMLLIElement) => void;
451
451
  getEnabledListItems: () => {
@@ -456,7 +456,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
456
456
  }> & {} & import('vue').ComponentCustomProperties & {} & {
457
457
  $slots: {
458
458
  item?(_: {
459
- item: MenuItem<any, any>;
459
+ item: MenuItem<unknown, unknown>;
460
460
  index: number;
461
461
  menuId: string;
462
462
  menuItemId: (index: number) => string;
@@ -475,9 +475,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
475
475
  readonly maxMenuWidth?: number | null | undefined;
476
476
  readonly positionRelativeToElement?: (HTMLElement | null) | undefined;
477
477
  readonly clippingBoundary?: import('@floating-ui/dom').Boundary | undefined;
478
- readonly "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any) | undefined;
479
- readonly "onItem-focused"?: ((id: string | null, args_1: MenuItem<any, any> | null) => any) | undefined;
480
- readonly "onItem-hovered"?: ((args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any) | undefined;
478
+ readonly "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any) | undefined;
479
+ readonly "onItem-focused"?: ((id: string | null, args_1: MenuItem<unknown, unknown> | null) => any) | undefined;
480
+ readonly "onItem-hovered"?: ((args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any) | undefined;
481
481
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
482
482
  $attrs: {
483
483
  [x: string]: unknown;
@@ -493,7 +493,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
493
493
  $root: import('vue').ComponentPublicInstance | null;
494
494
  $parent: import('vue').ComponentPublicInstance | null;
495
495
  $host: Element | null;
496
- $emit: ((event: "item-click", args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => void) & ((event: "item-focused", id: string | null, args_1: MenuItem<any, any> | null) => void) & ((event: "item-hovered", args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => void);
496
+ $emit: ((event: "item-click", args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => void) & ((event: "item-focused", id: string | null, args_1: MenuItem<unknown, unknown> | null) => void) & ((event: "item-hovered", args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => void);
497
497
  $el: HTMLUListElement;
498
498
  $options: import('vue').ComponentOptionsBase<Readonly<{
499
499
  items: Array<MenuItem>;
@@ -504,9 +504,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
504
504
  positionRelativeToElement?: HTMLElement | null;
505
505
  clippingBoundary?: import('@floating-ui/dom').Boundary;
506
506
  }> & Readonly<{
507
- "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any) | undefined;
508
- "onItem-focused"?: ((id: string | null, args_1: MenuItem<any, any> | null) => any) | undefined;
509
- "onItem-hovered"?: ((args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any) | undefined;
507
+ "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any) | undefined;
508
+ "onItem-focused"?: ((id: string | null, args_1: MenuItem<unknown, unknown> | null) => any) | undefined;
509
+ "onItem-hovered"?: ((args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any) | undefined;
510
510
  }>, {
511
511
  scrollTo: (element: HTMLLIElement) => void;
512
512
  getEnabledListItems: () => {
@@ -515,9 +515,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
515
515
  onClick: () => void;
516
516
  }[];
517
517
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
518
- "item-click": (args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any;
519
- "item-focused": (id: string | null, args_1: MenuItem<any, any> | null) => any;
520
- "item-hovered": (args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any;
518
+ "item-click": (args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any;
519
+ "item-focused": (id: string | null, args_1: MenuItem<unknown, unknown> | null) => any;
520
+ "item-hovered": (args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any;
521
521
  }, string, {
522
522
  id: string;
523
523
  focusedItemIndex: number | null;
@@ -559,9 +559,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
559
559
  positionRelativeToElement?: HTMLElement | null;
560
560
  clippingBoundary?: import('@floating-ui/dom').Boundary;
561
561
  }> & Readonly<{
562
- "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any) | undefined;
563
- "onItem-focused"?: ((id: string | null, args_1: MenuItem<any, any> | null) => any) | undefined;
564
- "onItem-hovered"?: ((args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any) | undefined;
562
+ "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any) | undefined;
563
+ "onItem-focused"?: ((id: string | null, args_1: MenuItem<unknown, unknown> | null) => any) | undefined;
564
+ "onItem-hovered"?: ((args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any) | undefined;
565
565
  }>, "scrollTo" | "getEnabledListItems" | ("id" | "focusedItemIndex" | "maxMenuWidth" | "positionRelativeToElement" | "clippingBoundary")> & import('vue').ShallowUnwrapRef<{
566
566
  scrollTo: (element: HTMLLIElement) => void;
567
567
  getEnabledListItems: () => {
@@ -572,7 +572,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
572
572
  }> & {} & import('vue').ComponentCustomProperties & {} & {
573
573
  $slots: {
574
574
  item?(_: {
575
- item: MenuItem<any, any>;
575
+ item: MenuItem<unknown, unknown>;
576
576
  index: number;
577
577
  menuId: string;
578
578
  menuItemId: (index: number) => string;
@@ -582,16 +582,24 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
582
582
  };
583
583
  }) | null>;
584
584
  openSubmenuItemIndex: import('vue').Ref<number, number>;
585
- subLevelItems: import('vue').Ref<any, any>;
585
+ subLevelItems: import('vue').Ref<import('vue').ComponentPublicInstance<{
586
+ focusIndex: (index?: number) => void;
587
+ }, {
588
+ onKeydown: (event: KeyboardEvent) => void;
589
+ }> | null, import('vue').ComponentPublicInstance<{
590
+ focusIndex: (index?: number) => void;
591
+ }, {
592
+ onKeydown: (event: KeyboardEvent) => void;
593
+ }> | null>;
586
594
  currentIndex: Readonly<import('vue').Ref<number | null, number | null>>;
587
595
  onItemHovered: (item: MenuItem | null, id: string, index: number | null) => void;
588
596
  onKeydown: (event: KeyboardEvent) => void;
589
597
  hasSelectedChildItem: (item: MenuItem) => boolean;
590
598
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
591
599
  close: () => any;
592
- "item-click": (event: MouseEvent, item: MenuItem<any, any>, menuId: string) => any;
593
- "item-focused": (itemId: string | null, item: MenuItem<any, any> | null) => any;
594
- "item-hovered": (item: MenuItem<any, any> | null, menuId: string, index: number | null) => any;
600
+ "item-click": (event: MouseEvent, item: MenuItem<unknown, unknown>, menuId: string) => any;
601
+ "item-focused": (itemId: string | null, item: MenuItem<unknown, unknown> | null) => any;
602
+ "item-hovered": (item: MenuItem<unknown, unknown> | null, menuId: string, index: number | null) => any;
595
603
  "close-submenu": () => any;
596
604
  }, string, {
597
605
  disableSpaceToClick: boolean;
@@ -623,9 +631,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
623
631
  registerKeydown: boolean;
624
632
  }> & Omit<Readonly<import('node_modules/@knime/components/src/components/base/MenuItem/MenuItems.vue').Props> & Readonly<{
625
633
  onClose?: (() => any) | undefined;
626
- "onItem-click"?: ((event: MouseEvent, item: MenuItem<any, any>, menuId: string) => any) | undefined;
627
- "onItem-focused"?: ((itemId: string | null, item: MenuItem<any, any> | null) => any) | undefined;
628
- "onItem-hovered"?: ((item: MenuItem<any, any> | null, menuId: string, index: number | null) => any) | undefined;
634
+ "onItem-click"?: ((event: MouseEvent, item: MenuItem<unknown, unknown>, menuId: string) => any) | undefined;
635
+ "onItem-focused"?: ((itemId: string | null, item: MenuItem<unknown, unknown> | null) => any) | undefined;
636
+ "onItem-hovered"?: ((item: MenuItem<unknown, unknown> | null, menuId: string, index: number | null) => any) | undefined;
629
637
  "onClose-submenu"?: (() => any) | undefined;
630
638
  }>, "onKeydown" | "BaseMenuItem" | "BaseMenuItems" | "currentIndex" | "ArrowNextIcon" | "baseMenuItems" | "openSubmenuItemIndex" | "subLevelItems" | "onItemHovered" | "hasSelectedChildItem" | ("disableSpaceToClick" | "clippingBoundary" | "registerKeydown")> & import('vue').ShallowUnwrapRef<{
631
639
  ArrowNextIcon: typeof MenuIcon;
@@ -642,9 +650,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
642
650
  readonly maxMenuWidth?: number | null | undefined;
643
651
  readonly positionRelativeToElement?: (HTMLElement | null) | undefined;
644
652
  readonly clippingBoundary?: import('@floating-ui/dom').Boundary | undefined;
645
- readonly "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any) | undefined;
646
- readonly "onItem-focused"?: ((id: string | null, args_1: MenuItem<any, any> | null) => any) | undefined;
647
- readonly "onItem-hovered"?: ((args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any) | undefined;
653
+ readonly "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any) | undefined;
654
+ readonly "onItem-focused"?: ((id: string | null, args_1: MenuItem<unknown, unknown> | null) => any) | undefined;
655
+ readonly "onItem-hovered"?: ((args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any) | undefined;
648
656
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
649
657
  $attrs: {
650
658
  [x: string]: unknown;
@@ -660,7 +668,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
660
668
  $root: import('vue').ComponentPublicInstance | null;
661
669
  $parent: import('vue').ComponentPublicInstance | null;
662
670
  $host: Element | null;
663
- $emit: ((event: "item-click", args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => void) & ((event: "item-focused", id: string | null, args_1: MenuItem<any, any> | null) => void) & ((event: "item-hovered", args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => void);
671
+ $emit: ((event: "item-click", args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => void) & ((event: "item-focused", id: string | null, args_1: MenuItem<unknown, unknown> | null) => void) & ((event: "item-hovered", args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => void);
664
672
  $el: HTMLUListElement;
665
673
  $options: import('vue').ComponentOptionsBase<Readonly<{
666
674
  items: Array<MenuItem>;
@@ -671,9 +679,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
671
679
  positionRelativeToElement?: HTMLElement | null;
672
680
  clippingBoundary?: import('@floating-ui/dom').Boundary;
673
681
  }> & Readonly<{
674
- "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any) | undefined;
675
- "onItem-focused"?: ((id: string | null, args_1: MenuItem<any, any> | null) => any) | undefined;
676
- "onItem-hovered"?: ((args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any) | undefined;
682
+ "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any) | undefined;
683
+ "onItem-focused"?: ((id: string | null, args_1: MenuItem<unknown, unknown> | null) => any) | undefined;
684
+ "onItem-hovered"?: ((args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any) | undefined;
677
685
  }>, {
678
686
  scrollTo: (element: HTMLLIElement) => void;
679
687
  getEnabledListItems: () => {
@@ -682,9 +690,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
682
690
  onClick: () => void;
683
691
  }[];
684
692
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
685
- "item-click": (args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any;
686
- "item-focused": (id: string | null, args_1: MenuItem<any, any> | null) => any;
687
- "item-hovered": (args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any;
693
+ "item-click": (args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any;
694
+ "item-focused": (id: string | null, args_1: MenuItem<unknown, unknown> | null) => any;
695
+ "item-hovered": (args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any;
688
696
  }, string, {
689
697
  id: string;
690
698
  focusedItemIndex: number | null;
@@ -726,9 +734,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
726
734
  positionRelativeToElement?: HTMLElement | null;
727
735
  clippingBoundary?: import('@floating-ui/dom').Boundary;
728
736
  }> & Readonly<{
729
- "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any) | undefined;
730
- "onItem-focused"?: ((id: string | null, args_1: MenuItem<any, any> | null) => any) | undefined;
731
- "onItem-hovered"?: ((args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any) | undefined;
737
+ "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any) | undefined;
738
+ "onItem-focused"?: ((id: string | null, args_1: MenuItem<unknown, unknown> | null) => any) | undefined;
739
+ "onItem-hovered"?: ((args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any) | undefined;
732
740
  }>, "scrollTo" | "getEnabledListItems" | ("id" | "focusedItemIndex" | "maxMenuWidth" | "positionRelativeToElement" | "clippingBoundary")> & import('vue').ShallowUnwrapRef<{
733
741
  scrollTo: (element: HTMLLIElement) => void;
734
742
  getEnabledListItems: () => {
@@ -739,7 +747,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
739
747
  }> & {} & import('vue').ComponentCustomProperties & {} & {
740
748
  $slots: {
741
749
  item?(_: {
742
- item: MenuItem<any, any>;
750
+ item: MenuItem<unknown, unknown>;
743
751
  index: number;
744
752
  menuId: string;
745
753
  menuItemId: (index: number) => string;
@@ -758,9 +766,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
758
766
  readonly maxMenuWidth?: number | null | undefined;
759
767
  readonly positionRelativeToElement?: (HTMLElement | null) | undefined;
760
768
  readonly clippingBoundary?: import('@floating-ui/dom').Boundary | undefined;
761
- readonly "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any) | undefined;
762
- readonly "onItem-focused"?: ((id: string | null, args_1: MenuItem<any, any> | null) => any) | undefined;
763
- readonly "onItem-hovered"?: ((args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any) | undefined;
769
+ readonly "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any) | undefined;
770
+ readonly "onItem-focused"?: ((id: string | null, args_1: MenuItem<unknown, unknown> | null) => any) | undefined;
771
+ readonly "onItem-hovered"?: ((args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any) | undefined;
764
772
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
765
773
  $attrs: {
766
774
  [x: string]: unknown;
@@ -776,7 +784,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
776
784
  $root: import('vue').ComponentPublicInstance | null;
777
785
  $parent: import('vue').ComponentPublicInstance | null;
778
786
  $host: Element | null;
779
- $emit: ((event: "item-click", args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => void) & ((event: "item-focused", id: string | null, args_1: MenuItem<any, any> | null) => void) & ((event: "item-hovered", args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => void);
787
+ $emit: ((event: "item-click", args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => void) & ((event: "item-focused", id: string | null, args_1: MenuItem<unknown, unknown> | null) => void) & ((event: "item-hovered", args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => void);
780
788
  $el: HTMLUListElement;
781
789
  $options: import('vue').ComponentOptionsBase<Readonly<{
782
790
  items: Array<MenuItem>;
@@ -787,9 +795,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
787
795
  positionRelativeToElement?: HTMLElement | null;
788
796
  clippingBoundary?: import('@floating-ui/dom').Boundary;
789
797
  }> & Readonly<{
790
- "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any) | undefined;
791
- "onItem-focused"?: ((id: string | null, args_1: MenuItem<any, any> | null) => any) | undefined;
792
- "onItem-hovered"?: ((args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any) | undefined;
798
+ "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any) | undefined;
799
+ "onItem-focused"?: ((id: string | null, args_1: MenuItem<unknown, unknown> | null) => any) | undefined;
800
+ "onItem-hovered"?: ((args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any) | undefined;
793
801
  }>, {
794
802
  scrollTo: (element: HTMLLIElement) => void;
795
803
  getEnabledListItems: () => {
@@ -798,9 +806,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
798
806
  onClick: () => void;
799
807
  }[];
800
808
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
801
- "item-click": (args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any;
802
- "item-focused": (id: string | null, args_1: MenuItem<any, any> | null) => any;
803
- "item-hovered": (args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any;
809
+ "item-click": (args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any;
810
+ "item-focused": (id: string | null, args_1: MenuItem<unknown, unknown> | null) => any;
811
+ "item-hovered": (args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any;
804
812
  }, string, {
805
813
  id: string;
806
814
  focusedItemIndex: number | null;
@@ -842,9 +850,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
842
850
  positionRelativeToElement?: HTMLElement | null;
843
851
  clippingBoundary?: import('@floating-ui/dom').Boundary;
844
852
  }> & Readonly<{
845
- "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<any, any>, args_2: string) => any) | undefined;
846
- "onItem-focused"?: ((id: string | null, args_1: MenuItem<any, any> | null) => any) | undefined;
847
- "onItem-hovered"?: ((args_0: MenuItem<any, any> | null, args_1: string, args_2: number | null) => any) | undefined;
853
+ "onItem-click"?: ((args_0: MouseEvent, args_1: MenuItem<unknown, unknown>, args_2: string) => any) | undefined;
854
+ "onItem-focused"?: ((id: string | null, args_1: MenuItem<unknown, unknown> | null) => any) | undefined;
855
+ "onItem-hovered"?: ((args_0: MenuItem<unknown, unknown> | null, args_1: string, args_2: number | null) => any) | undefined;
848
856
  }>, "scrollTo" | "getEnabledListItems" | ("id" | "focusedItemIndex" | "maxMenuWidth" | "positionRelativeToElement" | "clippingBoundary")> & import('vue').ShallowUnwrapRef<{
849
857
  scrollTo: (element: HTMLLIElement) => void;
850
858
  getEnabledListItems: () => {
@@ -855,7 +863,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
855
863
  }> & {} & import('vue').ComponentCustomProperties & {} & {
856
864
  $slots: {
857
865
  item?(_: {
858
- item: MenuItem<any, any>;
866
+ item: MenuItem<unknown, unknown>;
859
867
  index: number;
860
868
  menuId: string;
861
869
  menuItemId: (index: number) => string;
@@ -865,7 +873,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
865
873
  };
866
874
  }) | null>;
867
875
  openSubmenuItemIndex: import('vue').Ref<number, number>;
868
- subLevelItems: import('vue').Ref<any, any>;
876
+ subLevelItems: import('vue').Ref<import('vue').ComponentPublicInstance<{
877
+ focusIndex: (index?: number) => void;
878
+ }, {
879
+ onKeydown: (event: KeyboardEvent) => void;
880
+ }> | null, import('vue').ComponentPublicInstance<{
881
+ focusIndex: (index?: number) => void;
882
+ }, {
883
+ onKeydown: (event: KeyboardEvent) => void;
884
+ }> | null>;
869
885
  currentIndex: Readonly<import('vue').Ref<number | null, number | null>>;
870
886
  onItemHovered: (item: MenuItem | null, id: string, index: number | null) => void;
871
887
  onKeydown: (event: KeyboardEvent) => void;
@@ -14,7 +14,7 @@ declare class SettingsHelper {
14
14
  private loadDataIntoCache;
15
15
  getInitialDataAndSettings(): Promise<InitialDataAndSettings>;
16
16
  registerApplyListener(settingsGetter: () => GenericNodeSettings): Promise<void>;
17
- registerSettings<T>(modelOrView: "view" | "model"): Promise<(initialSetting: T) => SettingState>;
17
+ registerSettings<T>(modelOrView: "view" | "model"): Promise<(initialSetting: T) => SettingState<T>>;
18
18
  static getInstance(): SettingsHelper;
19
19
  }
20
20
  export declare const getSettingsHelper: () => SettingsHelper;
@@ -1,5 +1,5 @@
1
1
  import { SettingState } from '@knime/ui-extension-service';
2
2
  import { GenericNodeSettings, SettingsServiceType } from './settings-service';
3
3
  export declare const DEFAULT_INITIAL_SETTINGS: GenericNodeSettings;
4
- export declare const registerSettingsMock: () => Promise<() => SettingState<any>>;
4
+ export declare const registerSettingsMock: () => Promise<() => SettingState<unknown>>;
5
5
  export declare const createSettingsServiceMock: (data?: GenericNodeSettings) => SettingsServiceType;
@@ -5,7 +5,7 @@ export type GenericNodeSettings = {
5
5
  declare const settingsService: {
6
6
  getSettings: () => Promise<GenericNodeSettings>;
7
7
  registerSettingsGetterForApply: (settingsGetter: () => GenericNodeSettings) => Promise<void>;
8
- registerSettings: (modelOrView: "model" | "view") => Promise<(initialSetting: unknown) => import('@knime/ui-extension-service').SettingState>;
8
+ registerSettings: (modelOrView: "model" | "view") => Promise<(initialSetting: unknown) => import('@knime/ui-extension-service').SettingState<unknown>>;
9
9
  };
10
10
  export type SettingsServiceType = typeof settingsService;
11
11
  export declare const getSettingsService: () => SettingsServiceType;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knime/scripting-editor",
3
3
  "type": "module",
4
- "version": "0.0.104",
4
+ "version": "0.0.105",
5
5
  "description": "Shared Scripting Editor components for KNIME",
6
6
  "author": "KNIME AG, Zurich, Switzerland",
7
7
  "license": "See the file license.txt",
@@ -25,8 +25,8 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@knime/styles": "1.8.0",
28
- "@knime/ui-extension-renderer": "2.0.51",
29
- "@knime/utils": "1.5.1",
28
+ "@knime/ui-extension-renderer": "2.2.0",
29
+ "@knime/utils": "1.5.3",
30
30
  "@vueuse/core": "13.5.0",
31
31
  "@xterm/addon-fit": "^0.10.0",
32
32
  "@xterm/addon-unicode11": "^0.8.0",
@@ -63,11 +63,12 @@
63
63
  "vite-plugin-dts": "4.5.4",
64
64
  "vite-svg-loader": "5.1.0",
65
65
  "vitest": "2.1.9",
66
+ "@knime/components": "1.32.0",
66
67
  "vue-tsc": "2.2.12"
67
68
  },
68
69
  "peerDependencies": {
69
- "@knime/components": "1.30.1",
70
- "@knime/ui-extension-service": "2.2.0",
70
+ "@knime/components": "1.32.0",
71
+ "@knime/ui-extension-service": "2.4.0",
71
72
  "monaco-editor": "0.45.x",
72
73
  "vue": "3.5.17"
73
74
  },