@a-vision-software/vue-input-components 1.3.23 → 1.3.24

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.
@@ -0,0 +1,42 @@
1
+ import { ListProps, ListColumn } from '../types/list';
2
+
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ListProps>, {
4
+ presentation: string;
5
+ loading: boolean;
6
+ }>>, {
7
+ focus: () => void;
8
+ blur: () => void;
9
+ clearFilter: () => void;
10
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ "update:filter": (value: string) => void;
12
+ sort: (column: ListColumn, direction: "desc" | "asc") => void;
13
+ "row-click": (row: any, index: number) => void;
14
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ListProps>, {
15
+ presentation: string;
16
+ loading: boolean;
17
+ }>>> & Readonly<{
18
+ onSort?: ((column: ListColumn, direction: "desc" | "asc") => any) | undefined;
19
+ "onUpdate:filter"?: ((value: string) => any) | undefined;
20
+ "onRow-click"?: ((row: any, index: number) => any) | undefined;
21
+ }>, {
22
+ presentation: import('../types/list').ListPresentation;
23
+ loading: boolean;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
+ export default _default;
26
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
+ type __VLS_TypePropsToRuntimeProps<T> = {
28
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
29
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
+ } : {
31
+ type: import('vue').PropType<T[K]>;
32
+ required: true;
33
+ };
34
+ };
35
+ type __VLS_WithDefaults<P, D> = {
36
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
37
+ default: D[K];
38
+ }> : P[K];
39
+ };
40
+ type __VLS_Prettify<T> = {
41
+ [K in keyof T]: T[K];
42
+ } & {};
@@ -69,10 +69,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
69
69
  labelWidth: string;
70
70
  placeholder: string;
71
71
  maxHeight: string;
72
- height: string;
73
72
  readonly: boolean;
74
73
  maxlength: number;
75
74
  min: string | Date;
75
+ height: string;
76
76
  bgColor: string;
77
77
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
78
78
  export default _default;
@@ -4,6 +4,7 @@ import { default as Navigation } from './components/Navigation.vue';
4
4
  import { default as Action } from './components/Action.vue';
5
5
  import { default as Dropdown } from './components/Dropdown.vue';
6
6
  import { default as Checkbox } from './components/Checkbox.vue';
7
+ import { default as List } from './components/List.vue';
7
8
 
8
- export { TextInput, FileUpload, Navigation, Action, Dropdown, Checkbox };
9
+ export { TextInput, FileUpload, Navigation, Action, Dropdown, Checkbox, List };
9
10
  export * from './types';
@@ -0,0 +1,40 @@
1
+ export type ListPresentation = 'default' | 'minimal';
2
+ export type ListDataType = 'text' | 'number' | 'date' | 'action' | 'checkbox' | 'icon';
3
+ export interface ListColumn {
4
+ key: string;
5
+ label: string;
6
+ type: ListDataType;
7
+ sortable?: boolean;
8
+ filterable?: boolean;
9
+ width?: string;
10
+ align?: 'left' | 'center' | 'right';
11
+ }
12
+ export interface ListAction {
13
+ label: string;
14
+ icon?: string;
15
+ onClick: () => void;
16
+ disabled?: boolean;
17
+ }
18
+ export interface ListFilter {
19
+ placeholder?: string;
20
+ debounce?: number;
21
+ }
22
+ export interface ListProps {
23
+ columns: ListColumn[];
24
+ data: any[];
25
+ presentation?: ListPresentation;
26
+ filter?: ListFilter;
27
+ actions?: ListAction[];
28
+ loading?: boolean;
29
+ emptyMessage?: string;
30
+ }
31
+ export interface ListEmits {
32
+ (e: 'update:filter', value: string): void;
33
+ (e: 'sort', column: ListColumn, direction: 'asc' | 'desc'): void;
34
+ (e: 'row-click', row: any, index: number): void;
35
+ }
36
+ export interface ListComponent {
37
+ focus: () => void;
38
+ blur: () => void;
39
+ clearFilter: () => void;
40
+ }