@knime/scripting-editor 0.0.81 → 0.0.82

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.
Files changed (48) hide show
  1. package/dist/initial-data-service-browser-mock.js +22 -10
  2. package/dist/lib/main.d.ts +2 -2
  3. package/dist/main.js +6 -6
  4. package/dist/node_modules/@knime/components/src/components/Buttons/Button.vue.d.ts +131 -0
  5. package/dist/node_modules/@knime/components/src/components/Buttons/PlusButton.vue.d.ts +28 -0
  6. package/dist/node_modules/@knime/components/src/components/Buttons/SplitButton.vue.d.ts +9 -0
  7. package/dist/node_modules/@knime/components/src/components/Carousel/Carousel.vue.d.ts +22 -0
  8. package/dist/node_modules/@knime/components/src/components/FileExplorer/components/FileExplorer.vue.d.ts +216 -0
  9. package/dist/node_modules/@knime/components/src/components/FileExplorer/components/FileExplorerContextMenu.vue.d.ts +40 -0
  10. package/dist/node_modules/@knime/components/src/components/FileExplorer/components/FileExplorerItem.vue.d.ts +78 -0
  11. package/dist/node_modules/@knime/components/src/components/FileExplorer/components/FileExplorerItemBack.vue.d.ts +12 -0
  12. package/dist/node_modules/@knime/components/src/components/FileExplorer/components/FileExplorerItemBase.vue.d.ts +20 -0
  13. package/dist/node_modules/@knime/components/src/components/LinkList/LinkList.vue.d.ts +27 -0
  14. package/dist/node_modules/@knime/components/src/components/Modal/Modal.vue.d.ts +66 -0
  15. package/dist/node_modules/@knime/components/src/components/Pill/Pill.vue.d.ts +36 -0
  16. package/dist/node_modules/@knime/components/src/components/SubMenu/SubMenu.vue.d.ts +199 -0
  17. package/dist/node_modules/@knime/components/src/components/Tag/Tag.vue.d.ts +45 -0
  18. package/dist/node_modules/@knime/components/src/components/Tag/TagList.vue.d.ts +82 -0
  19. package/dist/node_modules/@knime/components/src/components/Toast/components/Toast.vue.d.ts +51 -0
  20. package/dist/node_modules/@knime/components/src/components/Toast/components/ToastButton.vue.d.ts +27 -0
  21. package/dist/node_modules/@knime/components/src/components/Toast/components/ToastStack.vue.d.ts +30 -0
  22. package/dist/node_modules/@knime/components/src/components/base/Button/BaseButton.vue.d.ts +90 -0
  23. package/dist/node_modules/@knime/components/src/components/base/MenuItem/BaseMenuItem.vue.d.ts +28 -0
  24. package/dist/node_modules/@knime/components/src/components/base/MenuItem/BaseMenuItemText.vue.d.ts +19 -0
  25. package/dist/node_modules/@knime/components/src/components/base/MenuItem/BaseMenuItems.vue.d.ts +123 -0
  26. package/dist/node_modules/@knime/components/src/components/base/MenuItem/MenuItems.vue.d.ts +96 -0
  27. package/dist/node_modules/@knime/components/src/components/base/Modal/BaseModal.vue.d.ts +66 -0
  28. package/dist/node_modules/@knime/components/src/components/forms/ComboBox/ComboBox.vue.d.ts +150 -0
  29. package/dist/node_modules/@knime/components/src/components/forms/Dropdown/Dropdown.vue.d.ts +203 -0
  30. package/dist/node_modules/@knime/components/src/components/forms/MultiModeTwinlist/MultiModeTwinlist.vue.d.ts +299 -0
  31. package/dist/node_modules/@knime/components/src/components/forms/MultiselectListBox/MultiselectListBox.vue.d.ts +279 -0
  32. package/dist/node_modules/@knime/components/src/components/forms/NumberInput/NumberInput.vue.d.ts +166 -0
  33. package/dist/node_modules/@knime/components/src/components/forms/QuantityInput/QuantityInput.vue.d.ts +45 -0
  34. package/dist/node_modules/@knime/components/src/components/forms/RadioButtons/BaseRadioButtons.vue.d.ts +66 -0
  35. package/dist/node_modules/@knime/components/src/components/forms/SearchableCheckboxes/SearchableCheckboxes.vue.d.ts +267 -0
  36. package/dist/node_modules/@knime/components/src/components/forms/SearchableList/SearchableList.vue.d.ts +285 -0
  37. package/dist/node_modules/@knime/components/src/components/forms/SortList/SortList.vue.d.ts +26 -0
  38. package/dist/node_modules/@knime/components/src/components/forms/Twinlist/Twinlist.vue.d.ts +381 -0
  39. package/dist/node_modules/@knime/components/src/components/forms/ValueSwitch/ValueSwitch.vue.d.ts +65 -0
  40. package/dist/node_modules/@knime/ui-extension-renderer/src/UIExtIFrame.vue.d.ts +27 -0
  41. package/dist/node_modules/@knime/ui-extension-renderer/src/UIExtShadowApp.vue.d.ts +41 -0
  42. package/dist/node_modules/@knime/ui-extension-renderer/src/UIExtension.vue.d.ts +49 -0
  43. package/dist/node_modules/@knime/ui-extension-renderer/src/UIExtensionAlerts.vue.d.ts +34 -0
  44. package/dist/node_modules/@knime/ui-extension-renderer/src/UIExtensionErrorOverlay.vue.d.ts +41 -0
  45. package/dist/node_modules/@knime/ui-extension-renderer/src/UIExtensionWarningButton.vue.d.ts +34 -0
  46. package/dist/src/initial-data-service-browser-mock.d.ts +2 -1
  47. package/dist/src/initial-data-service.d.ts +14 -1
  48. package/package.json +1 -1
@@ -0,0 +1,381 @@
1
+ import { PropType, Ref } from 'vue';
2
+ import { Id, PossibleValue } from '../possibleValues';
3
+
4
+ interface TransformOnMovePayload {
5
+ /**
6
+ * The to be updated list of ids
7
+ */
8
+ previous: Id[];
9
+ movingParts: {
10
+ /**
11
+ * The moved items that are not the "unknown values"
12
+ */
13
+ knownValues: Array<Id>;
14
+ /**
15
+ * Whether the unknown values are part of the moved items
16
+ */
17
+ movingUnknownValues: boolean;
18
+ };
19
+ }
20
+ /** The included values or null if not yet known. Values which are not an id in the possible values will be shown as missing. */
21
+ type SimpleTwinlistModelValue<T extends Id> = null | T[];
22
+ /**
23
+ * using this form of model value allows showing unknown values. With that the logic for missing values also changes:
24
+ * Missing values on the same side as unknown values are not displayed and removed as soon as the user moves items.
25
+ * Also missing values now can always exist on the opposite side of the unknown values which is why we also need to
26
+ * keep track of the excluded values as data.
27
+ */
28
+ interface TwinlistModelValueWithUnknownValues<T extends Id> {
29
+ /**
30
+ * null if not yet known
31
+ */
32
+ includedValues: T[] | null;
33
+ /**
34
+ * null if not yet known
35
+ */
36
+ excludedValues: T[] | null;
37
+ includeUnknownValues: boolean;
38
+ }
39
+ type TwinlistModelValue<T extends Id = Id> = SimpleTwinlistModelValue<T> | TwinlistModelValueWithUnknownValues<T>;
40
+ declare const useTwinlistModelValue: (modelValue: Ref<TwinlistModelValue>) => {
41
+ includedValues: import('vue').ComputedRef<Id[] | null>;
42
+ excludedValues: import('vue').ComputedRef<Id[] | null>;
43
+ showUnknownExcludedValues: import('vue').ComputedRef<boolean>;
44
+ showUnknownIncludedValues: import('vue').ComputedRef<boolean>;
45
+ getEmitValue: (newIncludedValues: Id[] | null, toNewExcluded?: (oldVal: Id[] | null) => Id[] | null, toNewIncludeUnknownValues?: (oldVal: boolean) => boolean) => TwinlistModelValue;
46
+ };
47
+ export { type TwinlistModelValue, useTwinlistModelValue };
48
+ declare const _default: import('vue').DefineComponent<{
49
+ modelValue: {
50
+ type: PropType<TwinlistModelValue<Id>>;
51
+ default: null;
52
+ };
53
+ initialCaseSensitiveSearch: {
54
+ default: boolean;
55
+ type: BooleanConstructor;
56
+ };
57
+ initialSearchTerm: {
58
+ type: StringConstructor;
59
+ required: false;
60
+ default: string;
61
+ };
62
+ /**
63
+ * Hiding and disabling
64
+ */
65
+ showSearch: {
66
+ default: boolean;
67
+ type: BooleanConstructor;
68
+ };
69
+ disabled: {
70
+ default: boolean;
71
+ type: BooleanConstructor;
72
+ };
73
+ showEmptyState: {
74
+ default: boolean;
75
+ type: BooleanConstructor;
76
+ };
77
+ /**
78
+ * Labels
79
+ */
80
+ leftLabel: {
81
+ type: StringConstructor;
82
+ required: true;
83
+ default: string;
84
+ };
85
+ rightLabel: {
86
+ type: StringConstructor;
87
+ required: true;
88
+ default: string;
89
+ };
90
+ withSearchLabel: {
91
+ default: boolean;
92
+ type: BooleanConstructor;
93
+ };
94
+ searchLabel: {
95
+ type: StringConstructor;
96
+ required: false;
97
+ default: string;
98
+ };
99
+ searchPlaceholder: {
100
+ type: StringConstructor;
101
+ required: false;
102
+ default: string;
103
+ };
104
+ unknownValuesText: {
105
+ type: StringConstructor;
106
+ required: false;
107
+ default: string;
108
+ };
109
+ /**
110
+ * Is only used when emptyStateComponent is null
111
+ */
112
+ emptyStateLabel: {
113
+ default: string;
114
+ type: StringConstructor;
115
+ };
116
+ /**
117
+ * this component is displayed centered in the middle of the box in case it is empty
118
+ */
119
+ emptyStateComponent: {
120
+ default: null;
121
+ type: ObjectConstructor;
122
+ };
123
+ /**
124
+ * Controls the size of the list.
125
+ * Number of visible items (for others user need to scroll)
126
+ * - 0 means all
127
+ * - values 1 - 4 are ignored; 5 is minimum
128
+ */
129
+ size: {
130
+ type: NumberConstructor;
131
+ default: number;
132
+ validator(value: number): boolean;
133
+ };
134
+ isValid: {
135
+ default: boolean;
136
+ type: BooleanConstructor;
137
+ };
138
+ /**
139
+ * List of possible values. Each item must have an `id` and a `text` property
140
+ * @example
141
+ * [{
142
+ * id: 'pdf',
143
+ * text: 'PDF'
144
+ * }, {
145
+ * id: 'XLS',
146
+ * text: 'Excel',
147
+ * }]
148
+ */
149
+ possibleValues: {
150
+ type: PropType<PossibleValue[]>;
151
+ default: () => never[];
152
+ };
153
+ /**
154
+ * If this setting is true, on a change of possible values, the currently
155
+ * chosen values which are missing with respect to the new possible values
156
+ * are removed.
157
+ */
158
+ filterChosenValuesOnPossibleValuesChange: {
159
+ type: BooleanConstructor;
160
+ default: boolean;
161
+ required: false;
162
+ };
163
+ compact: {
164
+ type: BooleanConstructor;
165
+ default: boolean;
166
+ };
167
+ }, {
168
+ includedValues: import('vue').ComputedRef<Id[] | null>;
169
+ excludedValues: import('vue').ComputedRef<Id[] | null>;
170
+ showUnknownExcludedValues: import('vue').ComputedRef<boolean>;
171
+ showUnknownIncludedValues: import('vue').ComputedRef<boolean>;
172
+ getEmitValue: (newIncludedValues: Id[] | null, toNewExcluded?: (oldVal: Id[] | null) => Id[] | null, toNewIncludeUnknownValues?: (oldVal: boolean) => boolean) => TwinlistModelValue<Id>;
173
+ searchTerm: Ref<string>;
174
+ filteredExcludedItems: import('vue').ComputedRef<PossibleValue[]>;
175
+ filteredIncludedItems: import('vue').ComputedRef<PossibleValue[]>;
176
+ knownExcludedValues: import('vue').ComputedRef<Id[]>;
177
+ knownIncludedValues: import('vue').ComputedRef<Id[] | null>;
178
+ possibleValueIds: import('vue').ComputedRef<Id[]>;
179
+ possibleValueIdsSet: import('vue').ComputedRef<Set<Id>>;
180
+ excludedLabels: import('vue').ComputedRef<string | null>;
181
+ includedLabels: import('vue').ComputedRef<string | null>;
182
+ caseSensitiveSearch: Ref<boolean>;
183
+ allIncludedItems: import('vue').ComputedRef<PossibleValue[]>;
184
+ possibleValueMap: import('vue').ComputedRef<Record<Id, {
185
+ item: PossibleValue;
186
+ index: number;
187
+ }>>;
188
+ }, {
189
+ invalidPossibleValueIds: Set<unknown>;
190
+ rightSelected: Id[];
191
+ leftSelected: Id[];
192
+ unknownValuesId: symbol;
193
+ }, {
194
+ listSize(): number;
195
+ moveAllRightButtonDisabled(): boolean;
196
+ moveRightButtonDisabled(): boolean;
197
+ moveAllLeftButtonDisabled(): boolean;
198
+ moveLeftButtonDisabled(): boolean;
199
+ }, {
200
+ getIndex(id: Id): number;
201
+ compareByOriginalSorting(a: Id, b: Id): number;
202
+ clearSelections(): void;
203
+ moveItems(items: Id[], { toNewIncludedValues, toNewExcludedValues, }: {
204
+ toNewIncludedValues: (params: TransformOnMovePayload) => Id[];
205
+ toNewExcludedValues: (params: TransformOnMovePayload) => Id[];
206
+ }): void;
207
+ moveRight(itemsParam?: Id[] | null): void;
208
+ moveLeft(itemsParam?: Id[] | null): void;
209
+ /**
210
+ * Filters out the moved items and also invalid items if unknown values are being moved.
211
+ */
212
+ filterMovedItems({ previous, movingParts: { movingUnknownValues, knownValues }, }: TransformOnMovePayload): Id[];
213
+ /**
214
+ * Adds the given items sorting by the order in the possible values afterwards and removing invalid items
215
+ * if unknown values are being moved
216
+ */
217
+ addMovedItems({ previous, movingParts: { movingUnknownValues, knownValues }, }: TransformOnMovePayload): Id[];
218
+ onMoveRightButtonClick(): void;
219
+ onMoveAllRightButtonClick(): void;
220
+ onMoveAllRightButtonKey(e: KeyboardEvent): void;
221
+ onMoveRightButtonKey(e: KeyboardEvent): void;
222
+ onMoveLeftButtonClick(): void;
223
+ onMoveAllLeftButtonClick(): void;
224
+ onMoveLeftButtonKey(e: KeyboardEvent): void;
225
+ onMoveAllLeftButtonKey(e: KeyboardEvent): void;
226
+ stopPropagation(e: KeyboardEvent): void;
227
+ onLeftListBoxDoubleClick(item: Id): void;
228
+ onLeftListBoxShiftDoubleClick(items: Id[]): void;
229
+ onRightListBoxDoubleClick(item: Id): void;
230
+ onRightListBoxShiftDoubleClick(items: Id[]): void;
231
+ onLeftInput(value: Id[]): void;
232
+ onRightInput(value: Id[]): void;
233
+ onSearchInput(value: string): void;
234
+ hasSelection(): boolean;
235
+ validate(): {
236
+ isValid: boolean;
237
+ errorMessage: string | null;
238
+ };
239
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
240
+ modelValue: {
241
+ type: PropType<TwinlistModelValue<Id>>;
242
+ default: null;
243
+ };
244
+ initialCaseSensitiveSearch: {
245
+ default: boolean;
246
+ type: BooleanConstructor;
247
+ };
248
+ initialSearchTerm: {
249
+ type: StringConstructor;
250
+ required: false;
251
+ default: string;
252
+ };
253
+ /**
254
+ * Hiding and disabling
255
+ */
256
+ showSearch: {
257
+ default: boolean;
258
+ type: BooleanConstructor;
259
+ };
260
+ disabled: {
261
+ default: boolean;
262
+ type: BooleanConstructor;
263
+ };
264
+ showEmptyState: {
265
+ default: boolean;
266
+ type: BooleanConstructor;
267
+ };
268
+ /**
269
+ * Labels
270
+ */
271
+ leftLabel: {
272
+ type: StringConstructor;
273
+ required: true;
274
+ default: string;
275
+ };
276
+ rightLabel: {
277
+ type: StringConstructor;
278
+ required: true;
279
+ default: string;
280
+ };
281
+ withSearchLabel: {
282
+ default: boolean;
283
+ type: BooleanConstructor;
284
+ };
285
+ searchLabel: {
286
+ type: StringConstructor;
287
+ required: false;
288
+ default: string;
289
+ };
290
+ searchPlaceholder: {
291
+ type: StringConstructor;
292
+ required: false;
293
+ default: string;
294
+ };
295
+ unknownValuesText: {
296
+ type: StringConstructor;
297
+ required: false;
298
+ default: string;
299
+ };
300
+ /**
301
+ * Is only used when emptyStateComponent is null
302
+ */
303
+ emptyStateLabel: {
304
+ default: string;
305
+ type: StringConstructor;
306
+ };
307
+ /**
308
+ * this component is displayed centered in the middle of the box in case it is empty
309
+ */
310
+ emptyStateComponent: {
311
+ default: null;
312
+ type: ObjectConstructor;
313
+ };
314
+ /**
315
+ * Controls the size of the list.
316
+ * Number of visible items (for others user need to scroll)
317
+ * - 0 means all
318
+ * - values 1 - 4 are ignored; 5 is minimum
319
+ */
320
+ size: {
321
+ type: NumberConstructor;
322
+ default: number;
323
+ validator(value: number): boolean;
324
+ };
325
+ isValid: {
326
+ default: boolean;
327
+ type: BooleanConstructor;
328
+ };
329
+ /**
330
+ * List of possible values. Each item must have an `id` and a `text` property
331
+ * @example
332
+ * [{
333
+ * id: 'pdf',
334
+ * text: 'PDF'
335
+ * }, {
336
+ * id: 'XLS',
337
+ * text: 'Excel',
338
+ * }]
339
+ */
340
+ possibleValues: {
341
+ type: PropType<PossibleValue[]>;
342
+ default: () => never[];
343
+ };
344
+ /**
345
+ * If this setting is true, on a change of possible values, the currently
346
+ * chosen values which are missing with respect to the new possible values
347
+ * are removed.
348
+ */
349
+ filterChosenValuesOnPossibleValuesChange: {
350
+ type: BooleanConstructor;
351
+ default: boolean;
352
+ required: false;
353
+ };
354
+ compact: {
355
+ type: BooleanConstructor;
356
+ default: boolean;
357
+ };
358
+ }>> & {
359
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
360
+ }, {
361
+ size: number;
362
+ disabled: boolean;
363
+ compact: boolean;
364
+ possibleValues: PossibleValue[];
365
+ modelValue: TwinlistModelValue<Id>;
366
+ isValid: boolean;
367
+ emptyStateLabel: string;
368
+ emptyStateComponent: Record<string, any>;
369
+ showEmptyState: boolean;
370
+ initialCaseSensitiveSearch: boolean;
371
+ initialSearchTerm: string;
372
+ showSearch: boolean;
373
+ leftLabel: string;
374
+ rightLabel: string;
375
+ withSearchLabel: boolean;
376
+ searchLabel: string;
377
+ searchPlaceholder: string;
378
+ unknownValuesText: string;
379
+ filterChosenValuesOnPossibleValuesChange: boolean;
380
+ }, {}>;
381
+ export default _default;
@@ -0,0 +1,65 @@
1
+ import { PropType } from 'vue';
2
+ import { BaseRadioButtonItem } from '../RadioButtons/BaseRadioButtons.vue';
3
+
4
+ export type ValueSwitchItem = BaseRadioButtonItem;
5
+ declare const _default: import('vue').DefineComponent<{
6
+ id: {
7
+ type: StringConstructor;
8
+ default: null;
9
+ };
10
+ modelValue: {
11
+ type: StringConstructor;
12
+ default: null;
13
+ };
14
+ name: {
15
+ type: StringConstructor;
16
+ default: null;
17
+ };
18
+ disabled: {
19
+ default: boolean;
20
+ type: BooleanConstructor;
21
+ };
22
+ possibleValues: {
23
+ type: PropType<BaseRadioButtonItem[]>;
24
+ default: () => never[];
25
+ };
26
+ compact: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ }, unknown, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
31
+ id: {
32
+ type: StringConstructor;
33
+ default: null;
34
+ };
35
+ modelValue: {
36
+ type: StringConstructor;
37
+ default: null;
38
+ };
39
+ name: {
40
+ type: StringConstructor;
41
+ default: null;
42
+ };
43
+ disabled: {
44
+ default: boolean;
45
+ type: BooleanConstructor;
46
+ };
47
+ possibleValues: {
48
+ type: PropType<BaseRadioButtonItem[]>;
49
+ default: () => never[];
50
+ };
51
+ compact: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ }>> & {
56
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
57
+ }, {
58
+ disabled: boolean;
59
+ id: string;
60
+ name: string;
61
+ compact: boolean;
62
+ possibleValues: BaseRadioButtonItem[];
63
+ modelValue: string;
64
+ }, {}>;
65
+ export default _default;
@@ -0,0 +1,27 @@
1
+ import { UIExtensionPushEvents, UIExtensionServiceAPILayer } from '@knime/ui-extension-service';
2
+
3
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
+ resourceLocation: string;
5
+ apiLayer: UIExtensionServiceAPILayer;
6
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ serviceCreated: (service: {
8
+ dispatchPushEvent: (event: UIExtensionPushEvents.PushEvent<any, any>) => void;
9
+ }) => void;
10
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
11
+ resourceLocation: string;
12
+ apiLayer: UIExtensionServiceAPILayer;
13
+ }>>> & {
14
+ onServiceCreated?: ((service: {
15
+ dispatchPushEvent: (event: UIExtensionPushEvents.PushEvent<any, any>) => void;
16
+ }) => any) | undefined;
17
+ }, {}, {}>;
18
+ export default _default;
19
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
+ type __VLS_TypePropsToRuntimeProps<T> = {
21
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
22
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
23
+ } : {
24
+ type: import('vue').PropType<T[K]>;
25
+ required: true;
26
+ };
27
+ };
@@ -0,0 +1,41 @@
1
+ import { UIExtensionServiceAPILayer, UIExtensionPushEvents } from '@knime/ui-extension-service';
2
+ import { StyleValue } from 'vue';
3
+
4
+ interface Props {
5
+ resourceLocation: string;
6
+ apiLayer: UIExtensionServiceAPILayer;
7
+ style?: StyleValue;
8
+ }
9
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
+ style: null;
11
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ serviceCreated: (_service: {
13
+ dispatchPushEvent: (event: UIExtensionPushEvents.PushEvent<any, any>) => void;
14
+ }) => void;
15
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
16
+ style: null;
17
+ }>>> & {
18
+ onServiceCreated?: ((_service: {
19
+ dispatchPushEvent: (event: UIExtensionPushEvents.PushEvent<any, any>) => void;
20
+ }) => any) | undefined;
21
+ }, {
22
+ style: string | false | import('vue').CSSProperties | StyleValue[] | null;
23
+ }, {}>;
24
+ export default _default;
25
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
+ type __VLS_TypePropsToRuntimeProps<T> = {
27
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
28
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
29
+ } : {
30
+ type: import('vue').PropType<T[K]>;
31
+ required: true;
32
+ };
33
+ };
34
+ type __VLS_WithDefaults<P, D> = {
35
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
36
+ default: D[K];
37
+ }> : P[K];
38
+ };
39
+ type __VLS_Prettify<T> = {
40
+ [K in keyof T]: T[K];
41
+ } & {};
@@ -0,0 +1,49 @@
1
+ import { StyleValue } from 'vue';
2
+ import { UIExtensionAPILayer } from './types/UIExtensionAPILayer';
3
+ import { ExtensionConfig } from './types/ExtensionConfig';
4
+
5
+ /**
6
+ * Wrapper for all UIExtensions. Determines the type of component to render (either native/Vue-based or iframe-based).
7
+ * Also detects changes to it's configuration and increments a local counter to help with re-renders of iframe-based
8
+ * components.
9
+ */
10
+ type Props = {
11
+ apiLayer: UIExtensionAPILayer;
12
+ extensionConfig: ExtensionConfig;
13
+ resourceLocation: string;
14
+ /**
15
+ * See ExtensionConfig.initialSharedData
16
+ */
17
+ initialSharedData?: any;
18
+ isReporting?: boolean;
19
+ isDialogLayout?: boolean;
20
+ shadowAppStyle?: StyleValue | null;
21
+ };
22
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
23
+ initialSharedData: null;
24
+ shadowAppStyle: null;
25
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
26
+ initialSharedData: null;
27
+ shadowAppStyle: null;
28
+ }>>>, {
29
+ initialSharedData: any;
30
+ shadowAppStyle: string | false | import('vue').CSSProperties | StyleValue[] | null;
31
+ }, {}>;
32
+ export default _default;
33
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
+ type __VLS_TypePropsToRuntimeProps<T> = {
35
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
36
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
+ } : {
38
+ type: import('vue').PropType<T[K]>;
39
+ required: true;
40
+ };
41
+ };
42
+ type __VLS_WithDefaults<P, D> = {
43
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
44
+ default: D[K];
45
+ }> : P[K];
46
+ };
47
+ type __VLS_Prettify<T> = {
48
+ [K in keyof T]: T[K];
49
+ } & {};
@@ -0,0 +1,34 @@
1
+ import { Alert } from '@knime/ui-extension-service';
2
+
3
+ type Props = {
4
+ alert?: Alert | null;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
7
+ alert: null;
8
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ display: () => void;
10
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ alert: null;
12
+ }>>> & {
13
+ onDisplay?: (() => any) | undefined;
14
+ }, {
15
+ alert: Alert | null;
16
+ }, {}>;
17
+ export default _default;
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToRuntimeProps<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
27
+ type __VLS_WithDefaults<P, D> = {
28
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
+ default: D[K];
30
+ }> : P[K];
31
+ };
32
+ type __VLS_Prettify<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -0,0 +1,41 @@
1
+ import { Alert } from '@knime/ui-extension-service';
2
+
3
+ /**
4
+ * This is the local alert/error management component created for use with the NodeViewIFrame. Its main use is to
5
+ * replace the native browser `alert`. It is composed of a full screen overlay which blocks mouse events and an
6
+ * icon with a tooltip to show more details. When active, this component uses a @see Popover to cover 100% of the
7
+ * parent container. If parent container lacks dimensions, you must assign a min-width/height conditionally when
8
+ * this component is active for proper display.
9
+ */
10
+ type Props = {
11
+ alert?: Alert | null;
12
+ };
13
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
14
+ alert: null;
15
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ display: () => void;
17
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
18
+ alert: null;
19
+ }>>> & {
20
+ onDisplay?: (() => any) | undefined;
21
+ }, {
22
+ alert: Alert | null;
23
+ }, {}>;
24
+ export default _default;
25
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
+ type __VLS_TypePropsToRuntimeProps<T> = {
27
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
28
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
29
+ } : {
30
+ type: import('vue').PropType<T[K]>;
31
+ required: true;
32
+ };
33
+ };
34
+ type __VLS_WithDefaults<P, D> = {
35
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
36
+ default: D[K];
37
+ }> : P[K];
38
+ };
39
+ type __VLS_Prettify<T> = {
40
+ [K in keyof T]: T[K];
41
+ } & {};
@@ -0,0 +1,34 @@
1
+ import { Alert } from '@knime/ui-extension-service';
2
+
3
+ type Props = {
4
+ alert?: Alert | null;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
7
+ alert: null;
8
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ display: () => void;
10
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ alert: null;
12
+ }>>> & {
13
+ onDisplay?: (() => any) | undefined;
14
+ }, {
15
+ alert: Alert | null;
16
+ }, {}>;
17
+ export default _default;
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToRuntimeProps<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
27
+ type __VLS_WithDefaults<P, D> = {
28
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
+ default: D[K];
30
+ }> : P[K];
31
+ };
32
+ type __VLS_Prettify<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -1,7 +1,8 @@
1
- import { GenericInitialData, InitialDataServiceType } from './initial-data-service';
1
+ import { GenericInitialData, InitialDataServiceType, InputConnectionInfo } from './initial-data-service';
2
2
  import { InputOutputModel } from 'lib/main';
3
3
 
4
4
  export declare const DEFAULT_INPUT_OBJECTS: InputOutputModel[];
5
+ export declare const DEFAULT_PORT_INFORMATION: InputConnectionInfo[];
5
6
  export declare const DEFAULT_OUTPUT_OBJECTS: InputOutputModel[];
6
7
  export declare const DEFAULT_FLOW_VARIABLE_INPUTS: InputOutputModel;
7
8
  export declare const DEFAULT_INITIAL_DATA: GenericInitialData;