@a-vision-software/vue-input-components 1.4.5 → 1.4.7
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/src/components/Action.vue.d.ts +3 -13
- package/dist/src/types/action.d.ts +13 -3
- package/dist/src/types/list.d.ts +19 -9
- package/dist/vue-input-components.cjs.js +1 -1
- package/dist/vue-input-components.css +1 -1
- package/dist/vue-input-components.es.js +95 -90
- package/dist/vue-input-components.umd.js +1 -1
- package/package.json +1 -1
- package/src/components/Action.vue +1 -13
- package/src/components/List.vue +7 -3
- package/src/components/TextInput.vue +8 -2
- package/src/types/action.ts +15 -3
- package/src/types/list.ts +30 -9
- package/src/views/TextInputTestView.vue +2 -2
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
icon?: string;
|
|
4
|
-
label?: string;
|
|
5
|
-
href?: string;
|
|
6
|
-
type?: 'button' | 'submit' | 'reset';
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
color?: string;
|
|
9
|
-
size?: 'small' | 'regular' | 'large';
|
|
10
|
-
variant?: 'solid' | 'transparent';
|
|
11
|
-
presentation?: 'default' | 'minimal';
|
|
12
|
-
}
|
|
1
|
+
import { ActionProps } from '../types/action';
|
|
2
|
+
|
|
13
3
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ActionProps>, {
|
|
14
4
|
id: undefined;
|
|
15
5
|
icon: undefined;
|
|
@@ -44,8 +34,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
44
34
|
label: string;
|
|
45
35
|
href: string;
|
|
46
36
|
color: string;
|
|
47
|
-
size: "small" | "regular" | "large";
|
|
48
37
|
variant: "solid" | "transparent";
|
|
38
|
+
size: "small" | "regular" | "large";
|
|
49
39
|
presentation: "default" | "minimal";
|
|
50
40
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
51
41
|
export default _default;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/*******************************************************************************
|
|
2
|
+
* (c) 2025 Copyright A-Vision Software
|
|
3
|
+
*
|
|
4
|
+
* File description : Action types
|
|
5
|
+
*
|
|
6
|
+
* Created by : Arnold Velzel
|
|
7
|
+
* Created on : 26-05-2025
|
|
8
|
+
*
|
|
9
|
+
*******************************************************************************/
|
|
10
|
+
interface ActionProps {
|
|
2
11
|
id?: string;
|
|
3
12
|
icon?: string;
|
|
4
13
|
label?: string;
|
|
@@ -10,10 +19,11 @@ export interface ActionProps {
|
|
|
10
19
|
size?: 'small' | 'regular' | 'large';
|
|
11
20
|
presentation?: 'default' | 'minimal';
|
|
12
21
|
}
|
|
13
|
-
|
|
22
|
+
interface ListActionProps extends ActionProps {
|
|
14
23
|
onActionClick: (row: any, action: any) => void;
|
|
15
24
|
}
|
|
16
|
-
|
|
25
|
+
interface ActionComponent {
|
|
17
26
|
focus: () => void;
|
|
18
27
|
blur: () => void;
|
|
19
28
|
}
|
|
29
|
+
export type { ActionProps, ListActionProps, ActionComponent };
|
package/dist/src/types/list.d.ts
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import { ListActionProps } from './action';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
type ListPresentation = 'default' | 'minimal';
|
|
4
|
+
type ListDataType = 'text' | 'number' | 'date' | 'action' | 'checkbox' | 'icon';
|
|
5
|
+
interface ListAction {
|
|
6
|
+
id: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
href?: string;
|
|
11
|
+
onClick?: (item: any) => void;
|
|
12
|
+
onActionClick?: (item: any, action: any) => void;
|
|
13
|
+
}
|
|
14
|
+
interface ListColumn {
|
|
6
15
|
key: string;
|
|
7
16
|
label: string;
|
|
8
|
-
type?:
|
|
17
|
+
type?: ListDataType;
|
|
9
18
|
align?: 'left' | 'center' | 'right';
|
|
10
19
|
sortable?: boolean;
|
|
11
20
|
filterable?: boolean;
|
|
@@ -13,11 +22,11 @@ export interface ListColumn {
|
|
|
13
22
|
minWidth?: string;
|
|
14
23
|
maxWidth?: string;
|
|
15
24
|
}
|
|
16
|
-
|
|
25
|
+
interface ListFilter {
|
|
17
26
|
placeholder?: string;
|
|
18
27
|
debounce?: number;
|
|
19
28
|
}
|
|
20
|
-
|
|
29
|
+
interface ListProps {
|
|
21
30
|
columns: ListColumn[];
|
|
22
31
|
data: any[];
|
|
23
32
|
actions?: ListActionProps[];
|
|
@@ -29,17 +38,18 @@ export interface ListProps {
|
|
|
29
38
|
presentation?: 'default' | 'minimal';
|
|
30
39
|
width?: string;
|
|
31
40
|
}
|
|
32
|
-
|
|
41
|
+
interface ListEmits {
|
|
33
42
|
(e: 'update:filter', value: string): void;
|
|
34
43
|
(e: 'row-click', row: any, index: number): void;
|
|
35
44
|
(e: 'row-dblclick', row: any, index: number): void;
|
|
36
45
|
}
|
|
37
|
-
|
|
46
|
+
interface ListComponent {
|
|
38
47
|
focus: () => void;
|
|
39
48
|
blur: () => void;
|
|
40
49
|
clearFilter: () => void;
|
|
41
50
|
}
|
|
42
|
-
|
|
51
|
+
interface ListIconProps {
|
|
43
52
|
icon: string;
|
|
44
53
|
color?: string;
|
|
45
54
|
}
|
|
55
|
+
export type { ListPresentation, ListProps, ListAction, ListEmits, ListComponent, ListIconProps, ListColumn, ListFilter, };
|