@a-vision-software/vue-input-components 1.4.20 → 1.4.22
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 +3 -1
- package/dist/src/types/list.d.ts +11 -2
- package/dist/src/types/textinput.d.ts +2 -0
- package/dist/vue-input-components.cjs.js +2 -2
- package/dist/vue-input-components.css +1 -1
- package/dist/vue-input-components.es.js +2833 -2814
- package/dist/vue-input-components.umd.js +2 -2
- package/package.json +1 -1
- package/src/components/List.vue +52 -28
- package/src/components/TextInput.vue +46 -15
- package/src/types/list.ts +12 -1
- package/src/types/textinput.ts +1 -0
- package/src/views/ListTestView.vue +79 -2
package/README.md
CHANGED
|
@@ -44,14 +44,16 @@ A checkbox component with support for single/multiple selection and various pres
|
|
|
44
44
|
|
|
45
45
|
### [List](docs/components/List.md)
|
|
46
46
|
|
|
47
|
-
A flexible and customizable list component that supports sorting, filtering, and different presentation styles.
|
|
47
|
+
A flexible and customizable list component that supports sorting, filtering, header tooltips, fixed rows, and different presentation styles.
|
|
48
48
|
|
|
49
49
|
## Quick Installation
|
|
50
50
|
|
|
51
51
|
```bash
|
|
52
52
|
npm install @a-vision-software/vue-input-components
|
|
53
53
|
```
|
|
54
|
+
|
|
54
55
|
### Declare global types
|
|
56
|
+
|
|
55
57
|
Add the global types to your `tsconfig.app.json`
|
|
56
58
|
|
|
57
59
|
```
|
package/dist/src/types/list.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ interface ListColumn {
|
|
|
25
25
|
minWidth?: string;
|
|
26
26
|
maxWidth?: string;
|
|
27
27
|
cellClasses?: conditionalClassList;
|
|
28
|
+
headerTooltip?: string;
|
|
28
29
|
}
|
|
29
30
|
interface ListFilter {
|
|
30
31
|
placeholder?: string;
|
|
@@ -32,7 +33,7 @@ interface ListFilter {
|
|
|
32
33
|
}
|
|
33
34
|
interface ListProps {
|
|
34
35
|
columns: ListColumn[];
|
|
35
|
-
data:
|
|
36
|
+
data: ListRowData[];
|
|
36
37
|
actions?: ListActionProps[];
|
|
37
38
|
CSVDownload?: string;
|
|
38
39
|
filter?: {
|
|
@@ -57,4 +58,12 @@ interface ListIconProps {
|
|
|
57
58
|
icon: string;
|
|
58
59
|
color?: string;
|
|
59
60
|
}
|
|
60
|
-
|
|
61
|
+
interface ListRowData {
|
|
62
|
+
excludeFromSort?: boolean;
|
|
63
|
+
excludeFromFilter?: boolean;
|
|
64
|
+
fixed?: 'top' | 'bottom';
|
|
65
|
+
selected?: boolean;
|
|
66
|
+
class?: string;
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
}
|
|
69
|
+
export type { ListPresentation, ListProps, ListAction, ListEmits, ListComponent, ListIconProps, ListColumn, ListFilter, ListRowData, };
|