@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.
- package/dist/components/AskAssistantChat/AskAssistantChat.vue.d.ts +6 -6
- package/dist/components/N8nAiModelSelectorDropdown/AiModelSelectorDropdown.types.d.ts +2 -0
- package/dist/components/N8nAiModelSelectorDropdown/AiModelSelectorDropdown.vue.d.ts +1 -0
- package/dist/components/N8nChatInput/ChatInput.vue.d.ts +2 -2
- package/dist/components/N8nCommandBar/CommandBar.vue.d.ts +1 -1
- package/dist/components/N8nIcon/icons.d.ts +1 -0
- package/dist/{v2/components/InputNumber → components/N8nInputNumber}/InputNumber.types.d.ts +5 -0
- package/dist/components/N8nInputNumber/InputNumber.vue.d.ts +133 -13
- package/dist/components/N8nInputNumber/index.d.ts +2 -0
- package/dist/components/N8nMarkdownEditor/MarkdownEditor.types.d.ts +1 -1
- package/dist/components/N8nResizeWrapper/ResizeWrapper.vue.d.ts +0 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/css/common/var.scss +0 -1
- package/dist/css/index.scss +0 -1
- package/dist/{en-BrDOZbhj.js → en-Ubc0tWnj.js} +2 -0
- package/dist/index.d.ts +0 -2
- package/dist/index.js +5539 -5371
- package/dist/style.css +1 -1
- package/dist/theme.css +1 -1
- package/dist/types/resize.d.ts +4 -4
- package/package.json +4 -4
- package/dist/css/input-number.scss +0 -191
- package/dist/v2/components/InputNumber/InputNumber.vue.d.ts +0 -30
- package/dist/v2/components/InputNumber/index.d.ts +0 -2
package/dist/types/resize.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const directionsCursorMaps: {
|
|
2
|
-
readonly right: "
|
|
3
|
-
readonly top: "
|
|
4
|
-
readonly bottom: "
|
|
5
|
-
readonly left: "
|
|
2
|
+
readonly right: "col-resize";
|
|
3
|
+
readonly top: "row-resize";
|
|
4
|
+
readonly bottom: "row-resize";
|
|
5
|
+
readonly left: "col-resize";
|
|
6
6
|
readonly topLeft: "nw-resize";
|
|
7
7
|
readonly topRight: "ne-resize";
|
|
8
8
|
readonly bottomLeft: "sw-resize";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@n8n/design-system",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.37.1",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"sanitize-html": "2.17.5",
|
|
68
68
|
"vue-boring-avatars": "^1.3.0",
|
|
69
69
|
"xss": "1.0.15",
|
|
70
|
-
"@n8n/composables": "1.
|
|
71
|
-
"@n8n/utils": "
|
|
72
|
-
"@n8n/
|
|
70
|
+
"@n8n/composables": "1.28.1",
|
|
71
|
+
"@n8n/frontend-utils": "0.4.0",
|
|
72
|
+
"@n8n/utils": "1.46.1"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"vue": "^3.5.13",
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
@use 'mixins/mixins';
|
|
2
|
-
@use './common/var';
|
|
3
|
-
@use 'input';
|
|
4
|
-
|
|
5
|
-
@include mixins.b(input-number) {
|
|
6
|
-
position: relative;
|
|
7
|
-
display: inline-block;
|
|
8
|
-
line-height: #{var.$input-height - 2};
|
|
9
|
-
width: 100%;
|
|
10
|
-
|
|
11
|
-
/* Chrome, Safari, Edge, Opera */
|
|
12
|
-
input::-webkit-outer-spin-button,
|
|
13
|
-
input::-webkit-inner-spin-button {
|
|
14
|
-
-webkit-appearance: none;
|
|
15
|
-
margin: 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* Firefox */
|
|
19
|
-
input[type='number'] {
|
|
20
|
-
-moz-appearance: textfield !important;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.el-input {
|
|
24
|
-
display: block;
|
|
25
|
-
|
|
26
|
-
&__inner {
|
|
27
|
-
-webkit-appearance: none;
|
|
28
|
-
padding-left: #{var.$input-height + 10};
|
|
29
|
-
padding-right: #{var.$input-height + 10};
|
|
30
|
-
text-align: center;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@include mixins.e((increase, decrease)) {
|
|
35
|
-
--input--color--disabled: var(--color--text--tint-1);
|
|
36
|
-
position: absolute;
|
|
37
|
-
z-index: 1;
|
|
38
|
-
top: 1px;
|
|
39
|
-
bottom: 1px;
|
|
40
|
-
display: flex;
|
|
41
|
-
align-items: center;
|
|
42
|
-
justify-content: center;
|
|
43
|
-
width: var.$input-height;
|
|
44
|
-
height: auto;
|
|
45
|
-
background: var.$background-color-base;
|
|
46
|
-
color: var(--color--text--shade-1);
|
|
47
|
-
cursor: pointer;
|
|
48
|
-
font-size: 13px;
|
|
49
|
-
|
|
50
|
-
&:hover {
|
|
51
|
-
color: var(--color--primary);
|
|
52
|
-
|
|
53
|
-
&:not(.is-disabled) ~ .el-input .el-input__inner:not(.is-disabled) {
|
|
54
|
-
border-color: var.$input-focus-border;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&.is-disabled {
|
|
59
|
-
color: var.$disabled-color-base;
|
|
60
|
-
cursor: not-allowed;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@include mixins.e(increase) {
|
|
65
|
-
right: 1px;
|
|
66
|
-
border-radius: 0 var.$input-number-control-border-radius var.$input-number-control-border-radius
|
|
67
|
-
0;
|
|
68
|
-
border-left: var(--border);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@include mixins.e(decrease) {
|
|
72
|
-
left: 1px;
|
|
73
|
-
border-radius: var.$input-number-control-border-radius 0 0
|
|
74
|
-
var.$input-number-control-border-radius;
|
|
75
|
-
border-right: var(--border);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@include mixins.when(disabled) {
|
|
79
|
-
@include mixins.e((increase, decrease)) {
|
|
80
|
-
border-color: var.$disabled-border-base;
|
|
81
|
-
color: var.$disabled-border-base;
|
|
82
|
-
|
|
83
|
-
&:hover {
|
|
84
|
-
color: var.$disabled-border-base;
|
|
85
|
-
cursor: not-allowed;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
@include mixins.m(medium) {
|
|
91
|
-
line-height: #{var.$input-medium-height - 4};
|
|
92
|
-
|
|
93
|
-
@include mixins.e((increase, decrease)) {
|
|
94
|
-
width: var.$input-medium-height;
|
|
95
|
-
font-size: var.$input-medium-font-size;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.el-input__inner {
|
|
99
|
-
padding-left: #{var.$input-medium-height + 7};
|
|
100
|
-
padding-right: #{var.$input-medium-height + 7};
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
@include mixins.m(small) {
|
|
105
|
-
line-height: #{var.$input-small-height - 4};
|
|
106
|
-
|
|
107
|
-
@include mixins.e((increase, decrease)) {
|
|
108
|
-
width: var.$input-small-height;
|
|
109
|
-
font-size: var.$input-small-font-size;
|
|
110
|
-
|
|
111
|
-
[class*='el-icon'] {
|
|
112
|
-
transform: scale(0.9);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.el-input__inner {
|
|
117
|
-
padding-left: #{var.$input-small-height + 7};
|
|
118
|
-
padding-right: #{var.$input-small-height + 7};
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@include mixins.m(mini) {
|
|
123
|
-
line-height: #{var.$input-mini-height - 4};
|
|
124
|
-
|
|
125
|
-
@include mixins.e((increase, decrease)) {
|
|
126
|
-
width: var.$input-mini-height;
|
|
127
|
-
font-size: var.$input-mini-font-size;
|
|
128
|
-
|
|
129
|
-
[class*='el-icon'] {
|
|
130
|
-
transform: scale(0.8);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.el-input__inner {
|
|
135
|
-
padding-left: #{var.$input-mini-height + 7};
|
|
136
|
-
padding-right: #{var.$input-mini-height + 7};
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
@include mixins.when(without-controls) {
|
|
141
|
-
.el-input__inner {
|
|
142
|
-
text-align: left;
|
|
143
|
-
padding-left: var(--spacing--2xs);
|
|
144
|
-
padding-right: var(--spacing--2xs);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
@include mixins.when(controls-right) {
|
|
149
|
-
.el-input__inner {
|
|
150
|
-
padding-left: var(--spacing--2xs);
|
|
151
|
-
padding-right: #{var.$input-height + 4};
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
&.el-input-number--medium .el-input__inner {
|
|
155
|
-
padding-right: #{var.$input-medium-height + 4};
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&.el-input-number--small .el-input__inner {
|
|
159
|
-
padding-right: #{var.$input-small-height + 4};
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
&.el-input-number--mini .el-input__inner {
|
|
163
|
-
padding-left: var(--spacing--4xs);
|
|
164
|
-
padding-right: #{var.$input-mini-height + 4};
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
@include mixins.e((increase, decrease)) {
|
|
168
|
-
height: calc((100% - 1px) / 2);
|
|
169
|
-
bottom: auto;
|
|
170
|
-
|
|
171
|
-
[class*='el-icon'] {
|
|
172
|
-
transform: scale(0.8);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
@include mixins.e(increase) {
|
|
177
|
-
border-radius: 0 var.$input-number-control-border-radius 0 0;
|
|
178
|
-
border-bottom: var(--border);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
@include mixins.e(decrease) {
|
|
182
|
-
right: 1px;
|
|
183
|
-
bottom: 1px;
|
|
184
|
-
top: auto;
|
|
185
|
-
left: auto;
|
|
186
|
-
border-right: none;
|
|
187
|
-
border-left: var(--border);
|
|
188
|
-
border-radius: 0 0 var.$input-number-control-border-radius 0;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { InputNumberProps, InputNumberSlots } from './InputNumber.types';
|
|
2
|
-
declare function __VLS_template(): {
|
|
3
|
-
attrs: Partial<{}>;
|
|
4
|
-
slots: Readonly<InputNumberSlots> & InputNumberSlots;
|
|
5
|
-
refs: {};
|
|
6
|
-
rootEl: any;
|
|
7
|
-
};
|
|
8
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
-
declare const __VLS_component: import('vue').DefineComponent<InputNumberProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
-
focus: (event: FocusEvent) => any;
|
|
11
|
-
"update:modelValue": (val: number) => any;
|
|
12
|
-
blur: (event: FocusEvent) => any;
|
|
13
|
-
}, string, import('vue').PublicProps, Readonly<InputNumberProps> & Readonly<{
|
|
14
|
-
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
15
|
-
"onUpdate:modelValue"?: ((val: number) => any) | undefined;
|
|
16
|
-
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
17
|
-
}>, {
|
|
18
|
-
size: import('./InputNumber.types').InputNumberSize;
|
|
19
|
-
step: number;
|
|
20
|
-
controls: boolean;
|
|
21
|
-
controlsPosition: import('./InputNumber.types').InputNumberControlsPosition;
|
|
22
|
-
stepSnapping: boolean;
|
|
23
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
|
-
export default _default;
|
|
26
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
-
new (): {
|
|
28
|
-
$slots: S;
|
|
29
|
-
};
|
|
30
|
-
};
|