@lumx/vue 4.7.1-alpha.4 → 4.8.0-alpha.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/components/text-field/Stories/WithChips.vue.d.ts +2 -0
- package/components/text-field/TextField.d.ts +64 -0
- package/components/text-field/TextField.stories.d.ts +101 -0
- package/components/text-field/index.d.ts +1 -0
- package/components/uploader/Uploader.d.ts +38 -0
- package/components/uploader/index.d.ts +2 -0
- package/index.d.ts +1 -0
- package/index.js +2067 -1712
- package/index.js.map +1 -1
- package/package.json +4 -4
- package/CONTRIBUTING.md +0 -157
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { TextFieldProps as UIProps, TextFieldPropsToOverride } from '@lumx/core/js/components/TextField/TextField';
|
|
2
|
+
import { InputLabelProps } from '@lumx/core/js/components/InputLabel';
|
|
3
|
+
import { CLASSNAME, COMPONENT_NAME } from '@lumx/core/js/components/TextField/constants';
|
|
4
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
5
|
+
export type TextFieldProps = VueToJSXProps<UIProps, TextFieldPropsToOverride | 'chips'> & {
|
|
6
|
+
/** Native input id property (generated if not provided). */
|
|
7
|
+
id?: string;
|
|
8
|
+
/** Props to pass to the clear button. If not specified, the button won't be displayed. */
|
|
9
|
+
clearButtonProps?: {
|
|
10
|
+
label: string;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
/** Native input name property. */
|
|
14
|
+
name?: string;
|
|
15
|
+
/** Native input type (only when multiline is disabled). */
|
|
16
|
+
type?: string;
|
|
17
|
+
/** Minimum rows for textarea (only when multiline is enabled). */
|
|
18
|
+
minimumRows?: number;
|
|
19
|
+
/** Additional label props. */
|
|
20
|
+
labelProps?: InputLabelProps;
|
|
21
|
+
};
|
|
22
|
+
export declare const emitSchema: {
|
|
23
|
+
change: (value: string, _name?: string, _event?: Event) => boolean;
|
|
24
|
+
focus: (_event?: FocusEvent) => boolean;
|
|
25
|
+
blur: (_event?: FocusEvent) => boolean;
|
|
26
|
+
clear: (_event?: MouseEvent) => boolean;
|
|
27
|
+
};
|
|
28
|
+
export { CLASSNAME, COMPONENT_NAME };
|
|
29
|
+
/**
|
|
30
|
+
* TextField component.
|
|
31
|
+
*
|
|
32
|
+
* @param props Component props.
|
|
33
|
+
* @return Vue element.
|
|
34
|
+
*/
|
|
35
|
+
declare const TextField: import('vue').DefineSetupFnComponent<TextFieldProps, {
|
|
36
|
+
change: (value: string, _name?: string, _event?: Event) => boolean;
|
|
37
|
+
focus: (_event?: FocusEvent) => boolean;
|
|
38
|
+
blur: (_event?: FocusEvent) => boolean;
|
|
39
|
+
clear: (_event?: MouseEvent) => boolean;
|
|
40
|
+
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "chips" | TextFieldPropsToOverride> & {
|
|
41
|
+
class?: string;
|
|
42
|
+
} & {
|
|
43
|
+
/** Native input id property (generated if not provided). */
|
|
44
|
+
id?: string;
|
|
45
|
+
/** Props to pass to the clear button. If not specified, the button won't be displayed. */
|
|
46
|
+
clearButtonProps?: {
|
|
47
|
+
label: string;
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
};
|
|
50
|
+
/** Native input name property. */
|
|
51
|
+
name?: string;
|
|
52
|
+
/** Native input type (only when multiline is disabled). */
|
|
53
|
+
type?: string;
|
|
54
|
+
/** Minimum rows for textarea (only when multiline is enabled). */
|
|
55
|
+
minimumRows?: number;
|
|
56
|
+
/** Additional label props. */
|
|
57
|
+
labelProps?: InputLabelProps;
|
|
58
|
+
} & {
|
|
59
|
+
onBlur?: ((_event?: FocusEvent | undefined) => any) | undefined;
|
|
60
|
+
onChange?: ((value: string, _name?: string | undefined, _event?: Event | undefined) => any) | undefined;
|
|
61
|
+
onFocus?: ((_event?: FocusEvent | undefined) => any) | undefined;
|
|
62
|
+
onClear?: ((_event?: MouseEvent | undefined) => any) | undefined;
|
|
63
|
+
}, import('vue').PublicProps>;
|
|
64
|
+
export default TextField;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: any;
|
|
3
|
+
argTypes: {
|
|
4
|
+
clearButtonProps: {
|
|
5
|
+
control: boolean;
|
|
6
|
+
};
|
|
7
|
+
chips: {
|
|
8
|
+
control: boolean;
|
|
9
|
+
};
|
|
10
|
+
afterElement: {
|
|
11
|
+
control: boolean;
|
|
12
|
+
};
|
|
13
|
+
onClear: {
|
|
14
|
+
action: boolean;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
decorators: ((story: any, context: any) => any)[];
|
|
18
|
+
title: string;
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
21
|
+
export declare const Default: {
|
|
22
|
+
args: {
|
|
23
|
+
value: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const Placeholder: {
|
|
27
|
+
args: {
|
|
28
|
+
value: string;
|
|
29
|
+
placeholder: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare const LabelAndHelper: {
|
|
33
|
+
args: {
|
|
34
|
+
label: string;
|
|
35
|
+
helper: string;
|
|
36
|
+
value: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare const CustomLabelAndHelper: {
|
|
40
|
+
render: (args: any) => import("vue/jsx-runtime").JSX.Element;
|
|
41
|
+
};
|
|
42
|
+
export declare const NumberField: {
|
|
43
|
+
args: {
|
|
44
|
+
value: string;
|
|
45
|
+
type: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export declare const TextareaField: {
|
|
49
|
+
args: {
|
|
50
|
+
value: string;
|
|
51
|
+
multiline: boolean;
|
|
52
|
+
minimumRows: number;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare const Error: {
|
|
56
|
+
args: {
|
|
57
|
+
hasError: boolean;
|
|
58
|
+
error: string;
|
|
59
|
+
label: string;
|
|
60
|
+
helper: string;
|
|
61
|
+
value: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export declare const Valid: {
|
|
65
|
+
args: {
|
|
66
|
+
isValid: boolean;
|
|
67
|
+
label: string;
|
|
68
|
+
helper: string;
|
|
69
|
+
value: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export declare const MaxLength: {
|
|
73
|
+
args: {
|
|
74
|
+
value: string;
|
|
75
|
+
maxLength: number;
|
|
76
|
+
label: string;
|
|
77
|
+
helper: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export declare const WithAfterElement: {
|
|
81
|
+
render: (args: any) => import("vue/jsx-runtime").JSX.Element;
|
|
82
|
+
};
|
|
83
|
+
export declare const WithChips: {
|
|
84
|
+
render: (args: any) => {
|
|
85
|
+
components: {
|
|
86
|
+
[x: string]: any;
|
|
87
|
+
};
|
|
88
|
+
setup(): {
|
|
89
|
+
args: any;
|
|
90
|
+
};
|
|
91
|
+
template: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export declare const Disabled: {
|
|
95
|
+
args: {
|
|
96
|
+
value: string;
|
|
97
|
+
label: string;
|
|
98
|
+
helper: string;
|
|
99
|
+
};
|
|
100
|
+
decorators: ((story: any, context: any) => any)[];
|
|
101
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { UploaderVariant, DEFAULT_PROPS, CLASSNAME, COMPONENT_NAME, UploaderProps as UIProps, UploaderPropsToOverride, UploaderSize } from '@lumx/core/js/components/Uploader';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
type VueFileInputProps = {
|
|
4
|
+
/** Accepted file types. */
|
|
5
|
+
accept?: string;
|
|
6
|
+
/** Whether multiple files can be selected. */
|
|
7
|
+
multiple?: boolean;
|
|
8
|
+
/** Camera capture mode. */
|
|
9
|
+
capture?: boolean | 'user' | 'environment';
|
|
10
|
+
/** Native input id (generated if not provided). */
|
|
11
|
+
id?: string;
|
|
12
|
+
};
|
|
13
|
+
export type UploaderProps = VueToJSXProps<UIProps, UploaderPropsToOverride> & {
|
|
14
|
+
/** Handle file selection with a native input file. */
|
|
15
|
+
fileInputProps?: VueFileInputProps;
|
|
16
|
+
};
|
|
17
|
+
export declare const emitSchema: {
|
|
18
|
+
change: (_files: File[], _event?: Event) => boolean;
|
|
19
|
+
};
|
|
20
|
+
export type { UploaderSize };
|
|
21
|
+
export { UploaderVariant, DEFAULT_PROPS, CLASSNAME, COMPONENT_NAME };
|
|
22
|
+
/**
|
|
23
|
+
* Uploader component.
|
|
24
|
+
*
|
|
25
|
+
* @param props Component props.
|
|
26
|
+
* @return Vue element.
|
|
27
|
+
*/
|
|
28
|
+
declare const Uploader: import('vue').DefineSetupFnComponent<UploaderProps, {
|
|
29
|
+
change: (_files: File[], _event?: Event) => boolean;
|
|
30
|
+
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | UploaderPropsToOverride> & {
|
|
31
|
+
class?: string;
|
|
32
|
+
} & {
|
|
33
|
+
/** Handle file selection with a native input file. */
|
|
34
|
+
fileInputProps?: VueFileInputProps;
|
|
35
|
+
} & {
|
|
36
|
+
onChange?: ((_files: File[], _event?: Event | undefined) => any) | undefined;
|
|
37
|
+
}, import('vue').PublicProps>;
|
|
38
|
+
export default Uploader;
|
package/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from './components/radio-button';
|
|
|
22
22
|
export * from './components/skeleton';
|
|
23
23
|
export * from './components/switch';
|
|
24
24
|
export * from './components/text-field';
|
|
25
|
+
export * from './components/uploader';
|
|
25
26
|
export * from './components/table';
|
|
26
27
|
export * from './components/text';
|
|
27
28
|
export * from './components/thumbnail';
|