@codemonster-ru/vueforge 0.47.0 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +97 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.ts.mjs +3311 -2943
- package/dist/index.ts.umd.js +3 -3
- package/dist/package/components/__tests__/color-picker.test.d.ts +1 -0
- package/dist/package/components/__tests__/masked-input.test.d.ts +1 -0
- package/dist/package/components/color-picker.vue.d.ts +40 -0
- package/dist/package/components/masked-input.vue.d.ts +60 -0
- package/dist/package/components/timepicker.vue.d.ts +1 -1
- package/dist/package/config/theme-core.d.ts +63 -0
- package/dist/package/themes/default/components/color-picker.d.ts +40 -0
- package/dist/package/themes/default/components/masked-input.d.ts +23 -0
- package/dist/package/themes/default/index.d.ts +61 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
type Size = 'small' | 'normal' | 'large';
|
|
2
|
+
type Variant = 'filled' | 'outlined';
|
|
3
|
+
type Format = 'hex' | 'rgb' | 'hsl';
|
|
4
|
+
interface Props {
|
|
5
|
+
modelValue?: string;
|
|
6
|
+
format?: Format;
|
|
7
|
+
alpha?: boolean;
|
|
8
|
+
presets?: Array<string>;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
readonly?: boolean;
|
|
12
|
+
size?: Size;
|
|
13
|
+
variant?: Variant;
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
change: (...args: any[]) => void;
|
|
18
|
+
close: (...args: any[]) => void;
|
|
19
|
+
"update:modelValue": (...args: any[]) => void;
|
|
20
|
+
open: (...args: any[]) => void;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
22
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
size: Size;
|
|
29
|
+
variant: Variant;
|
|
30
|
+
modelValue: string;
|
|
31
|
+
placeholder: string;
|
|
32
|
+
readonly: boolean;
|
|
33
|
+
ariaLabel: string;
|
|
34
|
+
format: Format;
|
|
35
|
+
alpha: boolean;
|
|
36
|
+
presets: Array<string>;
|
|
37
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
38
|
+
root: HTMLDivElement;
|
|
39
|
+
}, HTMLDivElement>;
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
type Size = 'small' | 'normal' | 'large';
|
|
2
|
+
type Variant = 'filled' | 'outlined';
|
|
3
|
+
type MaskTransformer = (value: string) => string;
|
|
4
|
+
interface Props {
|
|
5
|
+
modelValue?: string;
|
|
6
|
+
mask?: string | MaskTransformer;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
placeholderChar?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
readonly?: boolean;
|
|
11
|
+
unmask?: boolean;
|
|
12
|
+
size?: Size;
|
|
13
|
+
variant?: Variant;
|
|
14
|
+
}
|
|
15
|
+
declare function __VLS_template(): {
|
|
16
|
+
attrs: Partial<{}>;
|
|
17
|
+
slots: {
|
|
18
|
+
prefix?(_: {}): any;
|
|
19
|
+
suffix?(_: {}): any;
|
|
20
|
+
};
|
|
21
|
+
refs: {
|
|
22
|
+
control: HTMLInputElement;
|
|
23
|
+
};
|
|
24
|
+
rootEl: HTMLDivElement;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
+
blur: (...args: any[]) => void;
|
|
29
|
+
change: (...args: any[]) => void;
|
|
30
|
+
focus: (...args: any[]) => void;
|
|
31
|
+
input: (...args: any[]) => void;
|
|
32
|
+
"update:modelValue": (...args: any[]) => void;
|
|
33
|
+
complete: (...args: any[]) => void;
|
|
34
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
35
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
onComplete?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
mask: string | MaskTransformer;
|
|
44
|
+
size: Size;
|
|
45
|
+
variant: Variant;
|
|
46
|
+
modelValue: string;
|
|
47
|
+
placeholder: string;
|
|
48
|
+
readonly: boolean;
|
|
49
|
+
placeholderChar: string;
|
|
50
|
+
unmask: boolean;
|
|
51
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
52
|
+
control: HTMLInputElement;
|
|
53
|
+
}, HTMLDivElement>;
|
|
54
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
55
|
+
export default _default;
|
|
56
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -30,10 +30,10 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
30
30
|
modelValue: string;
|
|
31
31
|
placeholder: string;
|
|
32
32
|
readonly: boolean;
|
|
33
|
+
format: TimeFormat;
|
|
33
34
|
min: string;
|
|
34
35
|
max: string;
|
|
35
36
|
step: number;
|
|
36
|
-
format: TimeFormat;
|
|
37
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
38
38
|
root: HTMLDivElement;
|
|
39
39
|
control: HTMLButtonElement;
|
|
@@ -137,6 +137,67 @@ export type OtpInputTokens = {
|
|
|
137
137
|
fontSize?: string;
|
|
138
138
|
};
|
|
139
139
|
};
|
|
140
|
+
export type ColorPickerTokens = {
|
|
141
|
+
minWidth?: string;
|
|
142
|
+
gap?: string;
|
|
143
|
+
fontSize?: string;
|
|
144
|
+
padding?: string;
|
|
145
|
+
borderRadius?: string;
|
|
146
|
+
borderColor?: string;
|
|
147
|
+
backgroundColor?: string;
|
|
148
|
+
textColor?: string;
|
|
149
|
+
placeholderColor?: string;
|
|
150
|
+
focusBorderColor?: string;
|
|
151
|
+
focusRingShadow?: string;
|
|
152
|
+
hoverBorderColor?: string;
|
|
153
|
+
disabledOpacity?: string;
|
|
154
|
+
swatchSize?: string;
|
|
155
|
+
swatchRadius?: string;
|
|
156
|
+
panelPadding?: string;
|
|
157
|
+
panelBorderColor?: string;
|
|
158
|
+
panelBackgroundColor?: string;
|
|
159
|
+
panelShadow?: string;
|
|
160
|
+
panelGap?: string;
|
|
161
|
+
rangeAccentColor?: string;
|
|
162
|
+
presetSize?: string;
|
|
163
|
+
presetRadius?: string;
|
|
164
|
+
presetBorderColor?: string;
|
|
165
|
+
presetHoverBorderColor?: string;
|
|
166
|
+
small?: {
|
|
167
|
+
padding?: string;
|
|
168
|
+
fontSize?: string;
|
|
169
|
+
swatchSize?: string;
|
|
170
|
+
presetSize?: string;
|
|
171
|
+
};
|
|
172
|
+
large?: {
|
|
173
|
+
padding?: string;
|
|
174
|
+
fontSize?: string;
|
|
175
|
+
swatchSize?: string;
|
|
176
|
+
presetSize?: string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
export type MaskedInputTokens = {
|
|
180
|
+
gap?: string;
|
|
181
|
+
fontSize?: string;
|
|
182
|
+
padding?: string;
|
|
183
|
+
borderRadius?: string;
|
|
184
|
+
borderColor?: string;
|
|
185
|
+
backgroundColor?: string;
|
|
186
|
+
textColor?: string;
|
|
187
|
+
placeholderColor?: string;
|
|
188
|
+
focusBorderColor?: string;
|
|
189
|
+
focusRingShadow?: string;
|
|
190
|
+
hoverBorderColor?: string;
|
|
191
|
+
disabledOpacity?: string;
|
|
192
|
+
small?: {
|
|
193
|
+
padding?: string;
|
|
194
|
+
fontSize?: string;
|
|
195
|
+
};
|
|
196
|
+
large?: {
|
|
197
|
+
padding?: string;
|
|
198
|
+
fontSize?: string;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
140
201
|
export type NumberInputTokens = {
|
|
141
202
|
gap?: string;
|
|
142
203
|
fontSize?: string;
|
|
@@ -1319,6 +1380,8 @@ export type ThemeComponentTokens = {
|
|
|
1319
1380
|
input?: InputTokens;
|
|
1320
1381
|
passwordInput?: PasswordInputTokens;
|
|
1321
1382
|
otpInput?: OtpInputTokens;
|
|
1383
|
+
colorPicker?: ColorPickerTokens;
|
|
1384
|
+
maskedInput?: MaskedInputTokens;
|
|
1322
1385
|
numberInput?: NumberInputTokens;
|
|
1323
1386
|
formField?: FormFieldTokens;
|
|
1324
1387
|
textarea?: TextareaTokens;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
minWidth: string;
|
|
3
|
+
gap: string;
|
|
4
|
+
fontSize: string;
|
|
5
|
+
padding: string;
|
|
6
|
+
borderRadius: string;
|
|
7
|
+
borderColor: string;
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
textColor: string;
|
|
10
|
+
placeholderColor: string;
|
|
11
|
+
focusBorderColor: string;
|
|
12
|
+
focusRingShadow: string;
|
|
13
|
+
hoverBorderColor: string;
|
|
14
|
+
disabledOpacity: string;
|
|
15
|
+
swatchSize: string;
|
|
16
|
+
swatchRadius: string;
|
|
17
|
+
panelPadding: string;
|
|
18
|
+
panelBorderColor: string;
|
|
19
|
+
panelBackgroundColor: string;
|
|
20
|
+
panelShadow: string;
|
|
21
|
+
panelGap: string;
|
|
22
|
+
rangeAccentColor: string;
|
|
23
|
+
presetSize: string;
|
|
24
|
+
presetRadius: string;
|
|
25
|
+
presetBorderColor: string;
|
|
26
|
+
presetHoverBorderColor: string;
|
|
27
|
+
small: {
|
|
28
|
+
padding: string;
|
|
29
|
+
fontSize: string;
|
|
30
|
+
swatchSize: string;
|
|
31
|
+
presetSize: string;
|
|
32
|
+
};
|
|
33
|
+
large: {
|
|
34
|
+
padding: string;
|
|
35
|
+
fontSize: string;
|
|
36
|
+
swatchSize: string;
|
|
37
|
+
presetSize: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
gap: string;
|
|
3
|
+
fontSize: string;
|
|
4
|
+
padding: string;
|
|
5
|
+
borderRadius: string;
|
|
6
|
+
borderColor: string;
|
|
7
|
+
backgroundColor: string;
|
|
8
|
+
textColor: string;
|
|
9
|
+
placeholderColor: string;
|
|
10
|
+
focusBorderColor: string;
|
|
11
|
+
focusRingShadow: string;
|
|
12
|
+
hoverBorderColor: string;
|
|
13
|
+
disabledOpacity: string;
|
|
14
|
+
small: {
|
|
15
|
+
padding: string;
|
|
16
|
+
fontSize: string;
|
|
17
|
+
};
|
|
18
|
+
large: {
|
|
19
|
+
padding: string;
|
|
20
|
+
fontSize: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -294,6 +294,67 @@ declare const _default: {
|
|
|
294
294
|
fontSize: string;
|
|
295
295
|
};
|
|
296
296
|
};
|
|
297
|
+
colorPicker: {
|
|
298
|
+
minWidth: string;
|
|
299
|
+
gap: string;
|
|
300
|
+
fontSize: string;
|
|
301
|
+
padding: string;
|
|
302
|
+
borderRadius: string;
|
|
303
|
+
borderColor: string;
|
|
304
|
+
backgroundColor: string;
|
|
305
|
+
textColor: string;
|
|
306
|
+
placeholderColor: string;
|
|
307
|
+
focusBorderColor: string;
|
|
308
|
+
focusRingShadow: string;
|
|
309
|
+
hoverBorderColor: string;
|
|
310
|
+
disabledOpacity: string;
|
|
311
|
+
swatchSize: string;
|
|
312
|
+
swatchRadius: string;
|
|
313
|
+
panelPadding: string;
|
|
314
|
+
panelBorderColor: string;
|
|
315
|
+
panelBackgroundColor: string;
|
|
316
|
+
panelShadow: string;
|
|
317
|
+
panelGap: string;
|
|
318
|
+
rangeAccentColor: string;
|
|
319
|
+
presetSize: string;
|
|
320
|
+
presetRadius: string;
|
|
321
|
+
presetBorderColor: string;
|
|
322
|
+
presetHoverBorderColor: string;
|
|
323
|
+
small: {
|
|
324
|
+
padding: string;
|
|
325
|
+
fontSize: string;
|
|
326
|
+
swatchSize: string;
|
|
327
|
+
presetSize: string;
|
|
328
|
+
};
|
|
329
|
+
large: {
|
|
330
|
+
padding: string;
|
|
331
|
+
fontSize: string;
|
|
332
|
+
swatchSize: string;
|
|
333
|
+
presetSize: string;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
maskedInput: {
|
|
337
|
+
gap: string;
|
|
338
|
+
fontSize: string;
|
|
339
|
+
padding: string;
|
|
340
|
+
borderRadius: string;
|
|
341
|
+
borderColor: string;
|
|
342
|
+
backgroundColor: string;
|
|
343
|
+
textColor: string;
|
|
344
|
+
placeholderColor: string;
|
|
345
|
+
focusBorderColor: string;
|
|
346
|
+
focusRingShadow: string;
|
|
347
|
+
hoverBorderColor: string;
|
|
348
|
+
disabledOpacity: string;
|
|
349
|
+
small: {
|
|
350
|
+
padding: string;
|
|
351
|
+
fontSize: string;
|
|
352
|
+
};
|
|
353
|
+
large: {
|
|
354
|
+
padding: string;
|
|
355
|
+
fontSize: string;
|
|
356
|
+
};
|
|
357
|
+
};
|
|
297
358
|
numberInput: {
|
|
298
359
|
gap: string;
|
|
299
360
|
fontSize: string;
|