@corvina/web-components-library 0.1.4 → 0.2.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 +15 -0
- package/components/AnimatedButton.vue.d.ts +197 -0
- package/components/AutocompleteFilter.vue.d.ts +144 -0
- package/components/CorvinaBreadcrumb.ce.vue.d.ts +105 -0
- package/components/CorvinaBreadcrumbDivider.ce.vue.d.ts +2 -0
- package/components/CorvinaButton.ce.vue.d.ts +84 -0
- package/components/CorvinaIcon.ce.vue.d.ts +35 -0
- package/components/CorvinaIconInternal.vue.d.ts +39 -0
- package/components/CorvinaSelect.ce.vue.d.ts +56 -0
- package/components/CorvinaTable.ce.vue.d.ts +176 -0
- package/components/CustomRenderer.vue.d.ts +15 -0
- package/components/InfiniteLoaderAutocomplete.vue.d.ts +21 -0
- package/components/Searchbar.vue.d.ts +105 -0
- package/components/Slots.d.ts +10 -0
- package/components/TableHeader.vue.d.ts +51 -0
- package/{src/index.d.ts → index.d.ts} +40 -2
- package/package.json +3 -7
- package/{src/plugins → plugins}/vuetify.d.ts +2 -1
- package/theme/blueprint.d.ts +3 -0
- package/{src/theme → theme}/ecciconset.d.ts +2 -1
- package/theme/icons-list.d.ts +1 -0
- package/vscode.html-custom-data.json +603 -0
- package/vue-components.d.ts +25 -0
- package/web-components-library.cjs.js +11 -11
- package/web-components-library.css +1 -1
- package/web-components-library.es.d.ts +3 -3
- package/web-components-library.es.js +7541 -6902
- package/web-components-library.umd.js +11 -11
- package/{src/web-components.d.ts → web-components.d.ts} +1 -0
- package/webcomponent-utils/external-styles.d.ts +1 -0
- package/webcomponent-utils/utils.d.ts +2 -0
- package/{src/webcomponent-utils → webcomponent-utils}/web-component-creator.d.ts +4 -4
- package/src/components/AnimatedButton.vue.d.ts +0 -81
- package/src/components/AutocompleteFilter.vue.d.ts +0 -278
- package/src/components/CorvinaBreadcrumb.ce.vue.d.ts +0 -182
- package/src/components/CorvinaBreadcrumbDivider.ce.vue.d.ts +0 -2
- package/src/components/CorvinaButton.ce.vue.d.ts +0 -168
- package/src/components/CorvinaIcon.ce.vue.d.ts +0 -37
- package/src/components/CorvinaIconInternal.vue.d.ts +0 -48
- package/src/components/CorvinaSelect.ce.vue.d.ts +0 -85
- package/src/components/CorvinaTable.ce.vue.d.ts +0 -284
- package/src/components/CustomRenderer.vue.d.ts +0 -13
- package/src/components/InfiniteLoaderAutocomplete.vue.d.ts +0 -15
- package/src/components/Searchbar.vue.d.ts +0 -202
- package/src/components/Slots.d.ts +0 -10
- package/src/components/TableHeader.vue.d.ts +0 -54
- package/src/theme/blueprint.d.ts +0 -2
- /package/{src/utils → utils}/webfontloader.d.ts +0 -0
- /package/{src/webcomponent-utils → webcomponent-utils}/web-components.d.ts +0 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { CORVINA } from '../index';
|
|
2
|
+
|
|
3
|
+
interface Props {
|
|
4
|
+
headers: CORVINA.TABLE.TableHeaderEntries;
|
|
5
|
+
items: any[];
|
|
6
|
+
infiniteScroll?: boolean;
|
|
7
|
+
pagination?: boolean;
|
|
8
|
+
itemsPerPageOptions?: Array<{
|
|
9
|
+
value: number;
|
|
10
|
+
title: string;
|
|
11
|
+
}>;
|
|
12
|
+
itemsPerPage: number;
|
|
13
|
+
currentPage: number;
|
|
14
|
+
itemsLength: number;
|
|
15
|
+
loadingBar?: boolean;
|
|
16
|
+
rowClass?: string;
|
|
17
|
+
sortDesc?: boolean;
|
|
18
|
+
sortBy?: string;
|
|
19
|
+
isExpandable?: boolean;
|
|
20
|
+
propIsExpandable?: string;
|
|
21
|
+
expandedRowIndex?: number;
|
|
22
|
+
fixedHeader?: boolean;
|
|
23
|
+
showSearchBar?: boolean;
|
|
24
|
+
showFilterChips?: boolean;
|
|
25
|
+
searchPlaceholder?: string;
|
|
26
|
+
searchModel?: string;
|
|
27
|
+
filterChipsKeyPlaceholder?: string;
|
|
28
|
+
filterChipsValuePlaceholder?: string;
|
|
29
|
+
filterChipsLoadingText?: string;
|
|
30
|
+
filterChipsNoDataText?: string;
|
|
31
|
+
allowedFilters?: Array<CORVINA.BREADCRUMB.FILTER_BY>;
|
|
32
|
+
filters?: Array<CORVINA.BREADCRUMB.FILTER>;
|
|
33
|
+
filtersCustomComponent?: CORVINA.BREADCRUMB.CUSTOM_VUE_COMPONENT;
|
|
34
|
+
}
|
|
35
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
36
|
+
showSearchBar: boolean;
|
|
37
|
+
showFilterChips: boolean;
|
|
38
|
+
searchPlaceholder: string;
|
|
39
|
+
searchModel: string;
|
|
40
|
+
filterChipsKeyPlaceholder: string;
|
|
41
|
+
filterChipsValuePlaceholder: string;
|
|
42
|
+
filterChipsLoadingText: string;
|
|
43
|
+
filterChipsNoDataText: string;
|
|
44
|
+
allowedFilters: () => never[];
|
|
45
|
+
filters: () => never[];
|
|
46
|
+
filtersCustomComponent: () => CORVINA.BREADCRUMB.CUSTOM_VUE_COMPONENT;
|
|
47
|
+
headers: () => never[];
|
|
48
|
+
items: () => never[];
|
|
49
|
+
infiniteScroll: () => false;
|
|
50
|
+
pagination: () => true;
|
|
51
|
+
itemsPerPage: () => 5;
|
|
52
|
+
itemsPerPageOptions: () => {
|
|
53
|
+
value: number;
|
|
54
|
+
title: string;
|
|
55
|
+
}[];
|
|
56
|
+
currentPage: () => 1;
|
|
57
|
+
itemsLength: () => 0;
|
|
58
|
+
loadingBar: () => false;
|
|
59
|
+
rowClass: () => "";
|
|
60
|
+
sortDesc: () => false;
|
|
61
|
+
sortBy: () => "";
|
|
62
|
+
isExpandable: () => false;
|
|
63
|
+
propIsExpandable: () => "";
|
|
64
|
+
expandedRowIndex: () => -1;
|
|
65
|
+
fixedHeader: () => false;
|
|
66
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
67
|
+
currentPageChanged: (value: number) => void;
|
|
68
|
+
currentItemsPerPageChanged: (value: number) => void;
|
|
69
|
+
handleSorting: (value: CORVINA.TABLE.TableHeaderEntry) => void;
|
|
70
|
+
rowClicked: (index: number, item: any) => void;
|
|
71
|
+
rowExpanded: (index: number) => void;
|
|
72
|
+
"update:searchModel": (value: string) => void;
|
|
73
|
+
"update:filters": (value: CORVINA.BREADCRUMB.FILTER[]) => void;
|
|
74
|
+
"update:filterBy": (value: CORVINA.BREADCRUMB.FILTER_BY) => void;
|
|
75
|
+
loadMore: (cb: CORVINA.TABLE.LoadMoreCallback) => void;
|
|
76
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
77
|
+
showSearchBar: boolean;
|
|
78
|
+
showFilterChips: boolean;
|
|
79
|
+
searchPlaceholder: string;
|
|
80
|
+
searchModel: string;
|
|
81
|
+
filterChipsKeyPlaceholder: string;
|
|
82
|
+
filterChipsValuePlaceholder: string;
|
|
83
|
+
filterChipsLoadingText: string;
|
|
84
|
+
filterChipsNoDataText: string;
|
|
85
|
+
allowedFilters: () => never[];
|
|
86
|
+
filters: () => never[];
|
|
87
|
+
filtersCustomComponent: () => CORVINA.BREADCRUMB.CUSTOM_VUE_COMPONENT;
|
|
88
|
+
headers: () => never[];
|
|
89
|
+
items: () => never[];
|
|
90
|
+
infiniteScroll: () => false;
|
|
91
|
+
pagination: () => true;
|
|
92
|
+
itemsPerPage: () => 5;
|
|
93
|
+
itemsPerPageOptions: () => {
|
|
94
|
+
value: number;
|
|
95
|
+
title: string;
|
|
96
|
+
}[];
|
|
97
|
+
currentPage: () => 1;
|
|
98
|
+
itemsLength: () => 0;
|
|
99
|
+
loadingBar: () => false;
|
|
100
|
+
rowClass: () => "";
|
|
101
|
+
sortDesc: () => false;
|
|
102
|
+
sortBy: () => "";
|
|
103
|
+
isExpandable: () => false;
|
|
104
|
+
propIsExpandable: () => "";
|
|
105
|
+
expandedRowIndex: () => -1;
|
|
106
|
+
fixedHeader: () => false;
|
|
107
|
+
}>>> & Readonly<{
|
|
108
|
+
"onUpdate:searchModel"?: ((value: string) => any) | undefined;
|
|
109
|
+
"onUpdate:filters"?: ((value: CORVINA.BREADCRUMB.FILTER[]) => any) | undefined;
|
|
110
|
+
"onUpdate:filterBy"?: ((value: CORVINA.BREADCRUMB.FILTER_BY) => any) | undefined;
|
|
111
|
+
onHandleSorting?: ((value: CORVINA.TABLE.TableHeaderEntry) => any) | undefined;
|
|
112
|
+
onCurrentPageChanged?: ((value: number) => any) | undefined;
|
|
113
|
+
onCurrentItemsPerPageChanged?: ((value: number) => any) | undefined;
|
|
114
|
+
onRowExpanded?: ((index: number) => any) | undefined;
|
|
115
|
+
onLoadMore?: ((cb: CORVINA.TABLE.LoadMoreCallback) => any) | undefined;
|
|
116
|
+
onRowClicked?: ((index: number, item: any) => any) | undefined;
|
|
117
|
+
}>, {
|
|
118
|
+
filters: Array<CORVINA.BREADCRUMB.FILTER>;
|
|
119
|
+
items: any[];
|
|
120
|
+
searchPlaceholder: string;
|
|
121
|
+
searchModel: string;
|
|
122
|
+
showSearchBar: boolean;
|
|
123
|
+
showFilterChips: boolean;
|
|
124
|
+
filterChipsKeyPlaceholder: string;
|
|
125
|
+
filterChipsValuePlaceholder: string;
|
|
126
|
+
filterChipsLoadingText: string;
|
|
127
|
+
filterChipsNoDataText: string;
|
|
128
|
+
allowedFilters: Array<CORVINA.BREADCRUMB.FILTER_BY>;
|
|
129
|
+
filtersCustomComponent: CORVINA.BREADCRUMB.CUSTOM_VUE_COMPONENT;
|
|
130
|
+
sortDesc: boolean;
|
|
131
|
+
sortBy: string;
|
|
132
|
+
isExpandable: boolean;
|
|
133
|
+
infiniteScroll: boolean;
|
|
134
|
+
pagination: boolean;
|
|
135
|
+
headers: CORVINA.TABLE.TableHeaderEntries;
|
|
136
|
+
itemsPerPageOptions: Array<{
|
|
137
|
+
value: number;
|
|
138
|
+
title: string;
|
|
139
|
+
}>;
|
|
140
|
+
itemsPerPage: number;
|
|
141
|
+
currentPage: number;
|
|
142
|
+
itemsLength: number;
|
|
143
|
+
loadingBar: boolean;
|
|
144
|
+
rowClass: string;
|
|
145
|
+
propIsExpandable: string;
|
|
146
|
+
expandedRowIndex: number;
|
|
147
|
+
fixedHeader: boolean;
|
|
148
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
149
|
+
default?(_: {
|
|
150
|
+
item: any;
|
|
151
|
+
index: number;
|
|
152
|
+
}): any;
|
|
153
|
+
}>;
|
|
154
|
+
export default _default;
|
|
155
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
156
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
157
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
158
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
159
|
+
} : {
|
|
160
|
+
type: import('vue').PropType<T[K]>;
|
|
161
|
+
required: true;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
type __VLS_WithDefaults<P, D> = {
|
|
165
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
166
|
+
default: D[K];
|
|
167
|
+
}> : P[K];
|
|
168
|
+
};
|
|
169
|
+
type __VLS_Prettify<T> = {
|
|
170
|
+
[K in keyof T]: T[K];
|
|
171
|
+
} & {};
|
|
172
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
173
|
+
new (): {
|
|
174
|
+
$slots: S;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
element: HTMLElement | null;
|
|
3
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
element: HTMLElement | null;
|
|
5
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StateHandler } from 'v3-infinite-loading/lib/types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
identifier: number;
|
|
5
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
handler: ($state: StateHandler) => void;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
identifier: number;
|
|
9
|
+
}>>> & Readonly<{
|
|
10
|
+
onHandler?: (($state: StateHandler) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { AUTOCOMPLETE_FILTER_FETCH_OPTIONS } from './AutocompleteFilter.vue';
|
|
2
|
+
|
|
3
|
+
interface SearchProps {
|
|
4
|
+
searchPlaceholder?: string;
|
|
5
|
+
clearable?: boolean;
|
|
6
|
+
highlightOnSearchActive?: boolean;
|
|
7
|
+
clearOnConfirm?: boolean;
|
|
8
|
+
confirmEnabled?: boolean;
|
|
9
|
+
background?: string;
|
|
10
|
+
icon?: string;
|
|
11
|
+
iconEnabled?: boolean;
|
|
12
|
+
searchModel?: string;
|
|
13
|
+
isFilterActive?: boolean;
|
|
14
|
+
isAutocomplete?: boolean;
|
|
15
|
+
autocompleteItems?: Array<any>;
|
|
16
|
+
itemsTitleKey?: string;
|
|
17
|
+
itemsIdKey?: string;
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
useInfiniteLoader?: boolean;
|
|
20
|
+
loadingText?: string;
|
|
21
|
+
noDataText?: string;
|
|
22
|
+
}
|
|
23
|
+
declare function resetSearch(): void;
|
|
24
|
+
declare function clear(): void;
|
|
25
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SearchProps>, {
|
|
26
|
+
background: string;
|
|
27
|
+
clearable: boolean;
|
|
28
|
+
confirmEnabled: boolean;
|
|
29
|
+
clearOnConfirm: boolean;
|
|
30
|
+
icon: string;
|
|
31
|
+
iconEnabled: boolean;
|
|
32
|
+
searchModel: string;
|
|
33
|
+
searchPlaceholder: string;
|
|
34
|
+
highlightOnSearchActive: boolean;
|
|
35
|
+
isFilterActive: boolean;
|
|
36
|
+
isAutocomplete: boolean;
|
|
37
|
+
autocompleteItems: () => never[];
|
|
38
|
+
itemsTitleKey: string;
|
|
39
|
+
itemsIdKey: string;
|
|
40
|
+
loading: boolean;
|
|
41
|
+
useInfiniteLoader: boolean;
|
|
42
|
+
}>>, {
|
|
43
|
+
clear: typeof clear;
|
|
44
|
+
resetSearch: typeof resetSearch;
|
|
45
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
46
|
+
onInputChange: (value: string) => void;
|
|
47
|
+
confirm: (value: string) => void;
|
|
48
|
+
fetchData: (options: AUTOCOMPLETE_FILTER_FETCH_OPTIONS) => void;
|
|
49
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SearchProps>, {
|
|
50
|
+
background: string;
|
|
51
|
+
clearable: boolean;
|
|
52
|
+
confirmEnabled: boolean;
|
|
53
|
+
clearOnConfirm: boolean;
|
|
54
|
+
icon: string;
|
|
55
|
+
iconEnabled: boolean;
|
|
56
|
+
searchModel: string;
|
|
57
|
+
searchPlaceholder: string;
|
|
58
|
+
highlightOnSearchActive: boolean;
|
|
59
|
+
isFilterActive: boolean;
|
|
60
|
+
isAutocomplete: boolean;
|
|
61
|
+
autocompleteItems: () => never[];
|
|
62
|
+
itemsTitleKey: string;
|
|
63
|
+
itemsIdKey: string;
|
|
64
|
+
loading: boolean;
|
|
65
|
+
useInfiniteLoader: boolean;
|
|
66
|
+
}>>> & Readonly<{
|
|
67
|
+
onFetchData?: ((options: AUTOCOMPLETE_FILTER_FETCH_OPTIONS) => any) | undefined;
|
|
68
|
+
onOnInputChange?: ((value: string) => any) | undefined;
|
|
69
|
+
onConfirm?: ((value: string) => any) | undefined;
|
|
70
|
+
}>, {
|
|
71
|
+
loading: boolean;
|
|
72
|
+
icon: string;
|
|
73
|
+
itemsTitleKey: string;
|
|
74
|
+
itemsIdKey: string;
|
|
75
|
+
useInfiniteLoader: boolean;
|
|
76
|
+
clearable: boolean;
|
|
77
|
+
searchPlaceholder: string;
|
|
78
|
+
highlightOnSearchActive: boolean;
|
|
79
|
+
clearOnConfirm: boolean;
|
|
80
|
+
confirmEnabled: boolean;
|
|
81
|
+
background: string;
|
|
82
|
+
iconEnabled: boolean;
|
|
83
|
+
searchModel: string;
|
|
84
|
+
isFilterActive: boolean;
|
|
85
|
+
isAutocomplete: boolean;
|
|
86
|
+
autocompleteItems: Array<any>;
|
|
87
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
88
|
+
export default _default;
|
|
89
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
90
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
91
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
92
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
93
|
+
} : {
|
|
94
|
+
type: import('vue').PropType<T[K]>;
|
|
95
|
+
required: true;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
type __VLS_WithDefaults<P, D> = {
|
|
99
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
100
|
+
default: D[K];
|
|
101
|
+
}> : P[K];
|
|
102
|
+
};
|
|
103
|
+
type __VLS_Prettify<T> = {
|
|
104
|
+
[K in keyof T]: T[K];
|
|
105
|
+
} & {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const CorvinaTableSlots: {
|
|
2
|
+
default: () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>;
|
|
5
|
+
};
|
|
6
|
+
export declare const CorvinaBreadcrumbSlots: {
|
|
7
|
+
default: () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { CORVINA } from '../index';
|
|
2
|
+
|
|
3
|
+
interface Props {
|
|
4
|
+
columns: CORVINA.TABLE.TableHeaderEntries;
|
|
5
|
+
sortDesc: boolean;
|
|
6
|
+
sortBy: string;
|
|
7
|
+
isExpandable?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const expansionColumnHeader: CORVINA.TABLE.TableHeaderEntry;
|
|
10
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
11
|
+
columns: () => never[];
|
|
12
|
+
sortDesc: boolean;
|
|
13
|
+
sortBy: string;
|
|
14
|
+
isExpandable: () => false;
|
|
15
|
+
infiniteScroll: () => false;
|
|
16
|
+
pagination: () => true;
|
|
17
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
handleSorting: (...args: any[]) => void;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
20
|
+
columns: () => never[];
|
|
21
|
+
sortDesc: boolean;
|
|
22
|
+
sortBy: string;
|
|
23
|
+
isExpandable: () => false;
|
|
24
|
+
infiniteScroll: () => false;
|
|
25
|
+
pagination: () => true;
|
|
26
|
+
}>>> & Readonly<{
|
|
27
|
+
onHandleSorting?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
}>, {
|
|
29
|
+
columns: CORVINA.TABLE.TableHeaderEntries;
|
|
30
|
+
sortDesc: boolean;
|
|
31
|
+
sortBy: string;
|
|
32
|
+
isExpandable: boolean;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
37
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
+
} : {
|
|
40
|
+
type: import('vue').PropType<T[K]>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
type __VLS_WithDefaults<P, D> = {
|
|
45
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
46
|
+
default: D[K];
|
|
47
|
+
}> : P[K];
|
|
48
|
+
};
|
|
49
|
+
type __VLS_Prettify<T> = {
|
|
50
|
+
[K in keyof T]: T[K];
|
|
51
|
+
} & {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
|
+
|
|
2
3
|
export declare namespace CORVINA {
|
|
3
4
|
const block: readonly ["top", "bottom"];
|
|
4
5
|
const inline: readonly ["start", "end", "left", "right"];
|
|
@@ -40,6 +41,10 @@ export declare namespace CORVINA {
|
|
|
40
41
|
/** The filter is an autocomplete input */
|
|
41
42
|
AUTOCOMPLETE = "autocomplete"
|
|
42
43
|
}
|
|
44
|
+
enum CUSTOM_COMPONENT_POSITION {
|
|
45
|
+
PREPEND = "prepend",
|
|
46
|
+
APPEND = "append"
|
|
47
|
+
}
|
|
43
48
|
/** An array of this structure defines what the user can filter by. */
|
|
44
49
|
interface FILTER_BY {
|
|
45
50
|
/** Unique key for the filter */
|
|
@@ -69,6 +74,16 @@ export declare namespace CORVINA {
|
|
|
69
74
|
/** Value of the filter */
|
|
70
75
|
value: string;
|
|
71
76
|
}
|
|
77
|
+
interface CUSTOM_VUE_COMPONENT {
|
|
78
|
+
/** Name of the Vue component or Vue component definition */
|
|
79
|
+
component: string | Component;
|
|
80
|
+
/** Vue component's props */
|
|
81
|
+
props?: Record<string, any>;
|
|
82
|
+
/** Name of the prop that will contain the row item */
|
|
83
|
+
itemPropName?: string;
|
|
84
|
+
/** Name of the prop that indicates where the component should be positioned */
|
|
85
|
+
position?: CUSTOM_COMPONENT_POSITION;
|
|
86
|
+
}
|
|
72
87
|
}
|
|
73
88
|
export namespace BUTTON {
|
|
74
89
|
enum VARIANT {
|
|
@@ -88,6 +103,27 @@ export declare namespace CORVINA {
|
|
|
88
103
|
}
|
|
89
104
|
}
|
|
90
105
|
export namespace TABLE {
|
|
106
|
+
/** Horizontal alignment of a column (applied as `text-*` and `justify-*` classes) */
|
|
107
|
+
enum ALIGN {
|
|
108
|
+
START = "start",
|
|
109
|
+
END = "end",
|
|
110
|
+
CENTER = "center"
|
|
111
|
+
}
|
|
112
|
+
/** Status to pass to `done` in the `loadMore` event when `infiniteScroll` is enabled */
|
|
113
|
+
enum INFINITE_SCROLL_STATUS {
|
|
114
|
+
/** More items were loaded: the table keeps listening for scroll */
|
|
115
|
+
OK = "ok",
|
|
116
|
+
/** There are no more items: the table stops requesting them */
|
|
117
|
+
EMPTY = "empty",
|
|
118
|
+
/** Items are still loading */
|
|
119
|
+
LOADING = "loading",
|
|
120
|
+
/** Loading failed */
|
|
121
|
+
ERROR = "error"
|
|
122
|
+
}
|
|
123
|
+
/** Argument of the `loadMore` event: call `done` when the new items have been loaded */
|
|
124
|
+
interface LoadMoreCallback {
|
|
125
|
+
done: (status: INFINITE_SCROLL_STATUS | `${INFINITE_SCROLL_STATUS}`) => void;
|
|
126
|
+
}
|
|
91
127
|
enum HEADER_CELL_TYPE {
|
|
92
128
|
/** You need to set `customHeaderGeneratorFunction` */
|
|
93
129
|
CUSTOM = "Custom",
|
|
@@ -163,7 +199,7 @@ export declare namespace CORVINA {
|
|
|
163
199
|
/** Icon to display in the column header */
|
|
164
200
|
icon?: string;
|
|
165
201
|
/** Alignment of the column text */
|
|
166
|
-
align?:
|
|
202
|
+
align?: ALIGN | `${ALIGN}`;
|
|
167
203
|
/** Width of the column */
|
|
168
204
|
width?: number | string;
|
|
169
205
|
/** Indicates if the column is sortable */
|
|
@@ -206,8 +242,10 @@ export declare namespace CORVINA {
|
|
|
206
242
|
propCellAttributes?: string;
|
|
207
243
|
/** Name of the property of the item object containing an integer that will be used as colspan for the cell */
|
|
208
244
|
propColspan?: string;
|
|
209
|
-
/** Name of the property of the item object
|
|
245
|
+
/** Name of the property of the item object containing an anchor for tooltip alignment */
|
|
210
246
|
alignTooltip?: Anchor;
|
|
247
|
+
/** Name of the property of the item object containing an anchor for header tooltip alignment */
|
|
248
|
+
alignHeaderTooltip?: Anchor;
|
|
211
249
|
}
|
|
212
250
|
type TableHeaderEntries = TableHeaderEntry[];
|
|
213
251
|
}
|
package/package.json
CHANGED
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corvina/web-components-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "web-components-library.umd.js",
|
|
6
6
|
"module": "web-components-library.es.js",
|
|
7
|
-
"types": "web-components-library.d.ts",
|
|
7
|
+
"types": "web-components-library.es.d.ts",
|
|
8
8
|
"files": [
|
|
9
9
|
"*",
|
|
10
10
|
"**/*"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@vue/compiler-sfc": "^3.5.12",
|
|
14
|
-
"lit": "^3.1.4",
|
|
15
|
-
"lodash.debounce": "^4.0.8",
|
|
16
13
|
"v3-infinite-loading": "^1.3.2",
|
|
17
14
|
"vue": "^3.4.21",
|
|
18
|
-
"vuetify": "^3.7.5"
|
|
19
|
-
"webfontloader": "^1.0.0"
|
|
15
|
+
"vuetify": "^3.7.5"
|
|
20
16
|
},
|
|
21
17
|
"packageManager": "pnpm@9.1.1+sha1.09ada6cd05003e0ced25fb716f9fda4063ec2e3b"
|
|
22
18
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const icons: string[];
|