@n8n/design-system 2.36.1 → 2.37.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.
@@ -248,7 +248,7 @@ declare function __VLS_template(): {
248
248
  readonly refocusAfterSend?: boolean | undefined;
249
249
  readonly autofocus?: boolean | undefined;
250
250
  readonly buttonLabel?: string | undefined;
251
- readonly layout?: "multiline" | "single-line" | undefined;
251
+ readonly layout?: "multiline" | "single-line" | "adaptive" | undefined;
252
252
  readonly autosize?: boolean | {
253
253
  minRows: number;
254
254
  maxRows: number;
@@ -315,7 +315,7 @@ declare function __VLS_template(): {
315
315
  showAskOwnerTooltip: boolean;
316
316
  refocusAfterSend: boolean;
317
317
  buttonLabel: string;
318
- layout: "multiline" | "single-line";
318
+ layout: "multiline" | "single-line" | "adaptive";
319
319
  submitDisabled: boolean;
320
320
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
321
321
  beforeCreate?: (() => void) | (() => void)[];
@@ -357,7 +357,7 @@ declare function __VLS_template(): {
357
357
  showAskOwnerTooltip: boolean;
358
358
  refocusAfterSend: boolean;
359
359
  buttonLabel: string;
360
- layout: "multiline" | "single-line";
360
+ layout: "multiline" | "single-line" | "adaptive";
361
361
  submitDisabled: boolean;
362
362
  }> & Omit<Readonly<import('../N8nChatInput/ChatInput.vue').N8nChatInputProps> & Readonly<{
363
363
  onFocus?: ((event: FocusEvent) => any) | undefined;
@@ -592,7 +592,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
592
592
  readonly refocusAfterSend?: boolean | undefined;
593
593
  readonly autofocus?: boolean | undefined;
594
594
  readonly buttonLabel?: string | undefined;
595
- readonly layout?: "multiline" | "single-line" | undefined;
595
+ readonly layout?: "multiline" | "single-line" | "adaptive" | undefined;
596
596
  readonly autosize?: boolean | {
597
597
  minRows: number;
598
598
  maxRows: number;
@@ -659,7 +659,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
659
659
  showAskOwnerTooltip: boolean;
660
660
  refocusAfterSend: boolean;
661
661
  buttonLabel: string;
662
- layout: "multiline" | "single-line";
662
+ layout: "multiline" | "single-line" | "adaptive";
663
663
  submitDisabled: boolean;
664
664
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
665
665
  beforeCreate?: (() => void) | (() => void)[];
@@ -701,7 +701,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
701
701
  showAskOwnerTooltip: boolean;
702
702
  refocusAfterSend: boolean;
703
703
  buttonLabel: string;
704
- layout: "multiline" | "single-line";
704
+ layout: "multiline" | "single-line" | "adaptive";
705
705
  submitDisabled: boolean;
706
706
  }> & Omit<Readonly<import('../N8nChatInput/ChatInput.vue').N8nChatInputProps> & Readonly<{
707
707
  onFocus?: ((event: FocusEvent) => any) | undefined;
@@ -11,5 +11,7 @@ export interface AiModelSelectorMenuItemData {
11
11
  parts?: string[];
12
12
  credentialType?: string;
13
13
  leadingIcon?: string;
14
+ loading?: boolean;
15
+ connectedLabel?: string;
14
16
  }
15
17
  export type AiModelSelectorMenuItem<TData extends AiModelSelectorMenuItemData = AiModelSelectorMenuItemData> = DropdownMenuItemProps<string, TData>;
@@ -5,6 +5,7 @@ declare const _default: <TData extends AiModelSelectorMenuItemData = AiModelSele
5
5
  readonly onSelect?: ((id: string) => any) | undefined;
6
6
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onSearch"> & {
7
7
  items: Array<AiModelSelectorMenuItem<TData>>;
8
+ isLoading?: boolean;
8
9
  selectedLabel: string;
9
10
  selectedCredentialName?: string;
10
11
  credentialsMissing?: boolean;
@@ -12,7 +12,7 @@ export interface N8nChatInputProps {
12
12
  refocusAfterSend?: boolean;
13
13
  autofocus?: boolean;
14
14
  buttonLabel?: string;
15
- layout?: 'multiline' | 'single-line';
15
+ layout?: 'multiline' | 'single-line' | 'adaptive';
16
16
  autosize?: boolean | {
17
17
  minRows: number;
18
18
  maxRows: number;
@@ -74,7 +74,7 @@ declare const __VLS_component: import('vue').DefineComponent<N8nChatInputProps,
74
74
  showAskOwnerTooltip: boolean;
75
75
  refocusAfterSend: boolean;
76
76
  buttonLabel: string;
77
- layout: "multiline" | "single-line";
77
+ layout: "multiline" | "single-line" | "adaptive";
78
78
  submitDisabled: boolean;
79
79
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
80
80
  textareaRef: HTMLTextAreaElement;
@@ -22,8 +22,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
22
22
  }>, {
23
23
  zIndex: number;
24
24
  placeholder: string;
25
- context: string;
26
25
  isLoading: boolean;
26
+ context: string;
27
27
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
28
28
  commandBarRef: HTMLDivElement;
29
29
  inputRef: HTMLInputElement;
@@ -369,6 +369,7 @@ export declare const updatedIconSet: {
369
369
  readonly laptop: import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
370
370
  readonly layers: import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
371
371
  readonly 'layout-template': import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
372
+ readonly 'life-buoy': import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
372
373
  readonly lightbulb: import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
373
374
  readonly link: import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
374
375
  readonly list: import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
@@ -12,6 +12,11 @@ export type InputNumberEmits = NumberFieldRootEmits & {
12
12
  focus: [event: FocusEvent];
13
13
  blur: [event: FocusEvent];
14
14
  };
15
+ export interface InputNumberExposed {
16
+ focus: () => void;
17
+ blur: () => void;
18
+ select: () => void;
19
+ }
15
20
  export type InputNumberControlSlotProps = {
16
21
  ui: {
17
22
  class: string;
@@ -1,16 +1,136 @@
1
- import { InputSize } from '../../types';
2
- type InputNumberProps = {
3
- size?: InputSize;
4
- min?: number;
5
- max?: number;
6
- step?: number;
7
- precision?: number;
1
+ import { InputNumberProps, InputNumberSlots } from './InputNumber.types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Readonly<InputNumberSlots> & InputNumberSlots;
5
+ refs: {
6
+ inputRef: ({
7
+ $: import('vue').ComponentInternalInstance;
8
+ $data: {};
9
+ $props: {
10
+ readonly asChild?: boolean | undefined;
11
+ readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
12
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
13
+ $attrs: {
14
+ [x: string]: unknown;
15
+ };
16
+ $refs: {
17
+ [x: string]: unknown;
18
+ };
19
+ $slots: Readonly<{
20
+ [name: string]: import('vue').Slot<any> | undefined;
21
+ }>;
22
+ $root: import('vue').ComponentPublicInstance | null;
23
+ $parent: import('vue').ComponentPublicInstance | null;
24
+ $host: Element | null;
25
+ $emit: (event: string, ...args: any[]) => void;
26
+ $el: any;
27
+ $options: import('vue').ComponentOptionsBase<Readonly<import('reka-ui').NumberFieldInputProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
28
+ as: import('reka-ui').AsTag | import('vue').Component;
29
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
30
+ beforeCreate?: (() => void) | (() => void)[];
31
+ created?: (() => void) | (() => void)[];
32
+ beforeMount?: (() => void) | (() => void)[];
33
+ mounted?: (() => void) | (() => void)[];
34
+ beforeUpdate?: (() => void) | (() => void)[];
35
+ updated?: (() => void) | (() => void)[];
36
+ activated?: (() => void) | (() => void)[];
37
+ deactivated?: (() => void) | (() => void)[];
38
+ beforeDestroy?: (() => void) | (() => void)[];
39
+ beforeUnmount?: (() => void) | (() => void)[];
40
+ destroyed?: (() => void) | (() => void)[];
41
+ unmounted?: (() => void) | (() => void)[];
42
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
43
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
44
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
45
+ };
46
+ $forceUpdate: () => void;
47
+ $nextTick: typeof import('vue').nextTick;
48
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
49
+ } & Readonly<{
50
+ as: import('reka-ui').AsTag | import('vue').Component;
51
+ }> & Omit<Readonly<import('reka-ui').NumberFieldInputProps> & Readonly<{}>, "as"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
52
+ $slots: {
53
+ default?: (props: {}) => any;
54
+ };
55
+ }) | null;
56
+ };
57
+ rootEl: any;
8
58
  };
9
- declare const _default: import('vue').DefineComponent<InputNumberProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<InputNumberProps> & Readonly<{}>, {
10
- size: InputSize;
59
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
60
+ declare const __VLS_component: import('vue').DefineComponent<InputNumberProps, {
61
+ focus: () => void;
62
+ blur: () => void;
63
+ select: () => void;
64
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
65
+ focus: (event: FocusEvent) => any;
66
+ "update:modelValue": (val: number) => any;
67
+ blur: (event: FocusEvent) => any;
68
+ }, string, import('vue').PublicProps, Readonly<InputNumberProps> & Readonly<{
69
+ onFocus?: ((event: FocusEvent) => any) | undefined;
70
+ "onUpdate:modelValue"?: ((val: number) => any) | undefined;
71
+ onBlur?: ((event: FocusEvent) => any) | undefined;
72
+ }>, {
73
+ size: import('./InputNumber.types').InputNumberSize;
11
74
  step: number;
12
- min: number;
13
- max: number;
14
- precision: number;
15
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
75
+ stepSnapping: boolean;
76
+ controls: boolean;
77
+ controlsPosition: import('./InputNumber.types').InputNumberControlsPosition;
78
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
79
+ inputRef: ({
80
+ $: import('vue').ComponentInternalInstance;
81
+ $data: {};
82
+ $props: {
83
+ readonly asChild?: boolean | undefined;
84
+ readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
85
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
86
+ $attrs: {
87
+ [x: string]: unknown;
88
+ };
89
+ $refs: {
90
+ [x: string]: unknown;
91
+ };
92
+ $slots: Readonly<{
93
+ [name: string]: import('vue').Slot<any> | undefined;
94
+ }>;
95
+ $root: import('vue').ComponentPublicInstance | null;
96
+ $parent: import('vue').ComponentPublicInstance | null;
97
+ $host: Element | null;
98
+ $emit: (event: string, ...args: any[]) => void;
99
+ $el: any;
100
+ $options: import('vue').ComponentOptionsBase<Readonly<import('reka-ui').NumberFieldInputProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
101
+ as: import('reka-ui').AsTag | import('vue').Component;
102
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
103
+ beforeCreate?: (() => void) | (() => void)[];
104
+ created?: (() => void) | (() => void)[];
105
+ beforeMount?: (() => void) | (() => void)[];
106
+ mounted?: (() => void) | (() => void)[];
107
+ beforeUpdate?: (() => void) | (() => void)[];
108
+ updated?: (() => void) | (() => void)[];
109
+ activated?: (() => void) | (() => void)[];
110
+ deactivated?: (() => void) | (() => void)[];
111
+ beforeDestroy?: (() => void) | (() => void)[];
112
+ beforeUnmount?: (() => void) | (() => void)[];
113
+ destroyed?: (() => void) | (() => void)[];
114
+ unmounted?: (() => void) | (() => void)[];
115
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
116
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
117
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
118
+ };
119
+ $forceUpdate: () => void;
120
+ $nextTick: typeof import('vue').nextTick;
121
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
122
+ } & Readonly<{
123
+ as: import('reka-ui').AsTag | import('vue').Component;
124
+ }> & Omit<Readonly<import('reka-ui').NumberFieldInputProps> & Readonly<{}>, "as"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
125
+ $slots: {
126
+ default?: (props: {}) => any;
127
+ };
128
+ }) | null;
129
+ }, any>;
130
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
131
  export default _default;
132
+ type __VLS_WithTemplateSlots<T, S> = T & {
133
+ new (): {
134
+ $slots: S;
135
+ };
136
+ };
@@ -1,2 +1,4 @@
1
1
  import { default as N8nInputNumber } from './InputNumber.vue';
2
2
  export default N8nInputNumber;
3
+ export { N8nInputNumber };
4
+ export type * from './InputNumber.types';
@@ -1,6 +1,6 @@
1
1
  import { Editor, Extension, EditorOptions } from '@tiptap/core';
2
2
  export type MarkdownEditorVariant = 'ghost' | 'contained';
3
- export type MarkdownEditorToolbarMode = 'never' | 'hover' | 'always';
3
+ export type MarkdownEditorToolbarMode = 'never' | 'hover' | 'always' | 'floating';
4
4
  export type N8nMarkdownEditorProps = {
5
5
  modelValue: string;
6
6
  variant?: MarkdownEditorVariant;
@@ -10,7 +10,6 @@ interface ResizeProps {
10
10
  scale?: number;
11
11
  gridSize?: number;
12
12
  supportedDirections?: Direction[];
13
- outset?: boolean;
14
13
  window?: Window;
15
14
  }
16
15
  declare function __VLS_template(): {
@@ -42,7 +41,6 @@ declare const __VLS_component: import('vue').DefineComponent<ResizeProps, {}, {}
42
41
  isResizingEnabled: boolean;
43
42
  gridSize: number;
44
43
  supportedDirections: Direction[];
45
- outset: boolean;
46
44
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
47
45
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
48
46
  export default _default;
@@ -46,6 +46,7 @@ export { default as N8nInfoTip } from './N8nInfoTip';
46
46
  export { default as N8nInput } from './N8nInput';
47
47
  export { default as N8nInputLabel } from './N8nInputLabel';
48
48
  export { default as N8nInputNumber } from './N8nInputNumber';
49
+ export type * from './N8nInputNumber/InputNumber.types';
49
50
  export { default as N8nLink } from './N8nLink';
50
51
  export { default as N8nLogo } from './N8nLogo';
51
52
  export { default as N8nLoading } from './N8nLoading';
@@ -457,7 +457,6 @@ $input-small-height: 30px !default;
457
457
  $input-mini-font-size: 12px;
458
458
  /// height||Other|4
459
459
  $input-mini-height: 26px !default;
460
- $input-number-control-border-radius: 3px;
461
460
 
462
461
  /* Cascader
463
462
  -------------------------- */
@@ -8,7 +8,6 @@
8
8
  @use './dropdown.scss';
9
9
  @use './menu.scss';
10
10
  @use './input.scss';
11
- @use './input-number.scss';
12
11
  @use './radio.scss';
13
12
  @use './checkbox.scss';
14
13
  @use './switch.scss';
@@ -36,6 +36,8 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = {
36
36
  "codeDiff.replaceMyCode": "Replace my code",
37
37
  "codeDiff.replacing": "Replacing...",
38
38
  "codeDiff.undo": "Undo",
39
+ "generic.copy": "Copy",
40
+ "generic.copiedToClipboard": "Copied to clipboard",
39
41
  "codeBlock.copy": "Copy code",
40
42
  "codeBlock.copiedToClipboard": "Copied to clipboard",
41
43
  "codeBlock.copyFailed": "Couldn't copy code. Try again or copy it manually.",
package/dist/index.d.ts CHANGED
@@ -19,8 +19,6 @@ export type * from './v2/components/Checkbox/Checkbox.types';
19
19
  export type * from './components/N8nPagination/Pagination.types';
20
20
  export { default as N8nLoading2 } from './v2/components/Loading/Loading.vue';
21
21
  export type * from './v2/components/Loading/Loading.types';
22
- export { default as N8nInputNumber2 } from './v2/components/InputNumber/InputNumber.vue';
23
- export type * from './v2/components/InputNumber/InputNumber.types';
24
22
  export { default as N8nRadioGroupItem } from './components/N8nRadioGroup/RadioGroupItem.vue';
25
23
  export { default as N8nRadioGroup } from './components/N8nRadioGroup/RadioGroup.vue';
26
24
  export type * from './components/N8nRadioGroup/RadioGroupItem.types';