@solfacil/girassol 0.3.5 → 0.4.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.
Files changed (32) hide show
  1. package/dist/components.d.ts +3 -0
  2. package/dist/components.json +1 -1
  3. package/dist/girassol.es.js +2412 -1774
  4. package/dist/girassol.umd.js +6 -6
  5. package/dist/list-slots-disclaimer.png +0 -0
  6. package/dist/style.css +1 -1
  7. package/dist/theme/solfacil/screens.d.ts +4 -1
  8. package/dist/types/components/forms/checkbox/checkbox/Checkbox.vue.d.ts +2 -0
  9. package/dist/types/components/forms/checkbox/type.d.ts +1 -0
  10. package/dist/types/components/forms/radio/radio/Radio.vue.d.ts +2 -0
  11. package/dist/types/components/forms/radio/types.d.ts +1 -0
  12. package/dist/types/components/informations/alert/Alert.vue.d.ts +126 -0
  13. package/dist/types/components/informations/alert/alert.spec.d.ts +1 -0
  14. package/dist/types/components/informations/alert/index.d.ts +2 -0
  15. package/dist/types/components/informations/tag/Tag.vue.d.ts +121 -0
  16. package/dist/types/components/informations/tag/index.d.ts +2 -0
  17. package/dist/types/components/informations/tag/tag.spec.d.ts +1 -0
  18. package/dist/types/components/informations/text-value/TextValue.vue.d.ts +105 -0
  19. package/dist/types/components/list/List.vue.d.ts +204 -0
  20. package/dist/types/components/list/ListItem.vue.d.ts +151 -0
  21. package/dist/types/components/list/index.d.ts +2 -0
  22. package/dist/types/components/list/list.spec.d.ts +1 -0
  23. package/dist/types/components/list/types.d.ts +51 -0
  24. package/dist/types/components/menus/menu/Menu.vue.d.ts +11 -0
  25. package/dist/types/components/menus/menu-item/menu-item/MenuItem.vue.d.ts +77 -0
  26. package/dist/types/components/menus/menu-item/menu-item/index.d.ts +2 -0
  27. package/dist/types/composables/use-navigate/index.d.ts +7 -0
  28. package/dist/types/index.d.ts +639 -8
  29. package/package.json +1 -1
  30. package/public/list-slots-disclaimer.png +0 -0
  31. package/theme/solfacil/screens.ts +5 -4
  32. package/theme/solfacil/utilities.ts +9 -13
@@ -0,0 +1,121 @@
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{
6
+ text: string;
7
+ type: 'positive' | 'warning' | 'negative' | 'informative' | 'neutral';
8
+ size: 'small' | 'medium';
9
+ variant: 'fill' | 'outline';
10
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
+ id: string;
12
+ text?: string | undefined;
13
+ variant?: "fill" | "outline" | undefined;
14
+ size?: "small" | "medium" | undefined;
15
+ type?: "warning" | "informative" | "neutral" | "positive" | "negative" | undefined;
16
+ }>, {
17
+ text: string;
18
+ variant: string;
19
+ size: string;
20
+ type: string;
21
+ }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "text" | "type" | "size" | "variant">;
22
+ $attrs: {
23
+ [x: string]: unknown;
24
+ };
25
+ $refs: {
26
+ [x: string]: unknown;
27
+ };
28
+ $slots: Readonly<{
29
+ [name: string]: import("vue").Slot | undefined;
30
+ }>;
31
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
32
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
33
+ $emit: (event: string, ...args: any[]) => void;
34
+ $el: any;
35
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
36
+ id: string;
37
+ text?: string | undefined;
38
+ variant?: "fill" | "outline" | undefined;
39
+ size?: "small" | "medium" | undefined;
40
+ type?: "warning" | "informative" | "neutral" | "positive" | "negative" | undefined;
41
+ }>, {
42
+ text: string;
43
+ variant: string;
44
+ size: string;
45
+ type: string;
46
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
47
+ text: string;
48
+ type: 'positive' | 'warning' | 'negative' | 'informative' | 'neutral';
49
+ size: 'small' | 'medium';
50
+ variant: 'fill' | 'outline';
51
+ }> & {
52
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
53
+ created?: ((() => void) | (() => void)[]) | undefined;
54
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
55
+ mounted?: ((() => void) | (() => void)[]) | undefined;
56
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
57
+ updated?: ((() => void) | (() => void)[]) | undefined;
58
+ activated?: ((() => void) | (() => void)[]) | undefined;
59
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
60
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
61
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
62
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
63
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
64
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
65
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
66
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
67
+ };
68
+ $forceUpdate: () => void;
69
+ $nextTick: typeof import("vue").nextTick;
70
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
71
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
72
+ id: string;
73
+ text?: string | undefined;
74
+ variant?: "fill" | "outline" | undefined;
75
+ size?: "small" | "medium" | undefined;
76
+ type?: "warning" | "informative" | "neutral" | "positive" | "negative" | undefined;
77
+ }>, {
78
+ text: string;
79
+ variant: string;
80
+ size: string;
81
+ type: string;
82
+ }>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
83
+ __isFragment?: undefined;
84
+ __isTeleport?: undefined;
85
+ __isSuspense?: undefined;
86
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
87
+ id: string;
88
+ text?: string | undefined;
89
+ variant?: "fill" | "outline" | undefined;
90
+ size?: "small" | "medium" | undefined;
91
+ type?: "warning" | "informative" | "neutral" | "positive" | "negative" | undefined;
92
+ }>, {
93
+ text: string;
94
+ variant: string;
95
+ size: string;
96
+ type: string;
97
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
98
+ text: string;
99
+ type: 'positive' | 'warning' | 'negative' | 'informative' | 'neutral';
100
+ size: 'small' | 'medium';
101
+ variant: 'fill' | 'outline';
102
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
103
+ $slots: {
104
+ default: (_: {}) => any;
105
+ };
106
+ });
107
+ export default _default;
108
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
109
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
110
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
111
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
112
+ } : {
113
+ type: import('vue').PropType<T[K]>;
114
+ required: true;
115
+ };
116
+ };
117
+ declare type __VLS_WithDefaults<P, D> = {
118
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
119
+ default: D[K];
120
+ } : P[K];
121
+ };
@@ -0,0 +1,2 @@
1
+ import SolTag from './Tag.vue';
2
+ export { SolTag, };
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,105 @@
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{
6
+ align: 'left' | 'right';
7
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
+ itemProp?: string | undefined;
9
+ property?: string | undefined;
10
+ value?: string | number | undefined;
11
+ isHighlightValue?: boolean | undefined;
12
+ align?: "left" | "right" | undefined;
13
+ hide?: boolean | undefined;
14
+ }>, {
15
+ align: string;
16
+ }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "align">;
17
+ $attrs: {
18
+ [x: string]: unknown;
19
+ };
20
+ $refs: {
21
+ [x: string]: unknown;
22
+ };
23
+ $slots: Readonly<{
24
+ [name: string]: import("vue").Slot | undefined;
25
+ }>;
26
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
27
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
28
+ $emit: (event: string, ...args: any[]) => void;
29
+ $el: any;
30
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
31
+ itemProp?: string | undefined;
32
+ property?: string | undefined;
33
+ value?: string | number | undefined;
34
+ isHighlightValue?: boolean | undefined;
35
+ align?: "left" | "right" | undefined;
36
+ hide?: boolean | undefined;
37
+ }>, {
38
+ align: string;
39
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
40
+ align: 'left' | 'right';
41
+ }> & {
42
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
43
+ created?: ((() => void) | (() => void)[]) | undefined;
44
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
45
+ mounted?: ((() => void) | (() => void)[]) | undefined;
46
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
47
+ updated?: ((() => void) | (() => void)[]) | undefined;
48
+ activated?: ((() => void) | (() => void)[]) | undefined;
49
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
50
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
51
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
52
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
53
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
54
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
55
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
56
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
57
+ };
58
+ $forceUpdate: () => void;
59
+ $nextTick: typeof import("vue").nextTick;
60
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
61
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
62
+ itemProp?: string | undefined;
63
+ property?: string | undefined;
64
+ value?: string | number | undefined;
65
+ isHighlightValue?: boolean | undefined;
66
+ align?: "left" | "right" | undefined;
67
+ hide?: boolean | undefined;
68
+ }>, {
69
+ align: string;
70
+ }>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
71
+ __isFragment?: undefined;
72
+ __isTeleport?: undefined;
73
+ __isSuspense?: undefined;
74
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
75
+ itemProp?: string | undefined;
76
+ property?: string | undefined;
77
+ value?: string | number | undefined;
78
+ isHighlightValue?: boolean | undefined;
79
+ align?: "left" | "right" | undefined;
80
+ hide?: boolean | undefined;
81
+ }>, {
82
+ align: string;
83
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
84
+ align: 'left' | 'right';
85
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
86
+ $slots: {
87
+ property: (_: {}) => any;
88
+ value: (_: {}) => any;
89
+ };
90
+ });
91
+ export default _default;
92
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
93
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
94
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
95
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
96
+ } : {
97
+ type: import('vue').PropType<T[K]>;
98
+ required: true;
99
+ };
100
+ };
101
+ declare type __VLS_WithDefaults<P, D> = {
102
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
103
+ default: D[K];
104
+ } : P[K];
105
+ };
@@ -0,0 +1,204 @@
1
+ import type { Data, List } from './types';
2
+ declare const _default: {
3
+ new (...args: any[]): {
4
+ $: import("vue").ComponentInternalInstance;
5
+ $data: {};
6
+ $props: Partial<{
7
+ ariaLabel: List['ariaLabel'];
8
+ fallbackValue: string;
9
+ dataIdentifier: import("./types").DataIdentifier;
10
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
+ id: List['id'];
12
+ data: List['data'];
13
+ headers?: import("./types").Header | undefined;
14
+ selected?: List['selected'];
15
+ ariaLabel: List['ariaLabel'];
16
+ selectMode?: import("./types").SelectMode | undefined;
17
+ dataIdentifier?: List['dataIdentifier'];
18
+ sortPositions?: import("./types").SortPositions | undefined;
19
+ fallbackValue?: List['fallbackValue'];
20
+ }>, {
21
+ fallbackValue: string;
22
+ ariaLabel: string;
23
+ dataIdentifier: () => {
24
+ key: string;
25
+ };
26
+ }>>> & {
27
+ "onUpdate:selected"?: ((selected: Data | Data[]) => any) | undefined;
28
+ "onListitem:click"?: ((item: Data) => any) | undefined;
29
+ "onListitem:selected"?: ((item: Data) => any) | undefined;
30
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "ariaLabel" | "fallbackValue" | "dataIdentifier">;
31
+ $attrs: {
32
+ [x: string]: unknown;
33
+ };
34
+ $refs: {
35
+ [x: string]: unknown;
36
+ };
37
+ $slots: Readonly<{
38
+ [name: string]: import("vue").Slot | undefined;
39
+ }>;
40
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
41
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
42
+ $emit: ((event: "update:selected", selected: Data | Data[]) => void) & ((event: "listitem:click", item: Data) => void) & ((event: "listitem:selected", item: Data) => void);
43
+ $el: any;
44
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
45
+ id: List['id'];
46
+ data: List['data'];
47
+ headers?: import("./types").Header | undefined;
48
+ selected?: List['selected'];
49
+ ariaLabel: List['ariaLabel'];
50
+ selectMode?: import("./types").SelectMode | undefined;
51
+ dataIdentifier?: List['dataIdentifier'];
52
+ sortPositions?: import("./types").SortPositions | undefined;
53
+ fallbackValue?: List['fallbackValue'];
54
+ }>, {
55
+ fallbackValue: string;
56
+ ariaLabel: string;
57
+ dataIdentifier: () => {
58
+ key: string;
59
+ };
60
+ }>>> & {
61
+ "onUpdate:selected"?: ((selected: Data | Data[]) => any) | undefined;
62
+ "onListitem:click"?: ((item: Data) => any) | undefined;
63
+ "onListitem:selected"?: ((item: Data) => any) | undefined;
64
+ }, {
65
+ unselectAll: () => void;
66
+ selectAll: () => void;
67
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
68
+ "listitem:click": (item: Data) => void;
69
+ } & {
70
+ "listitem:selected": (item: Data) => void;
71
+ } & {
72
+ "update:selected": (selected: Data | Data[]) => void;
73
+ }, string, {
74
+ ariaLabel: List['ariaLabel'];
75
+ fallbackValue: string;
76
+ dataIdentifier: import("./types").DataIdentifier;
77
+ }> & {
78
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
79
+ created?: ((() => void) | (() => void)[]) | undefined;
80
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
81
+ mounted?: ((() => void) | (() => void)[]) | undefined;
82
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
83
+ updated?: ((() => void) | (() => void)[]) | undefined;
84
+ activated?: ((() => void) | (() => void)[]) | undefined;
85
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
86
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
87
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
88
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
89
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
90
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
91
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
92
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
93
+ };
94
+ $forceUpdate: () => void;
95
+ $nextTick: typeof import("vue").nextTick;
96
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
97
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
98
+ id: List['id'];
99
+ data: List['data'];
100
+ headers?: import("./types").Header | undefined;
101
+ selected?: List['selected'];
102
+ ariaLabel: List['ariaLabel'];
103
+ selectMode?: import("./types").SelectMode | undefined;
104
+ dataIdentifier?: List['dataIdentifier'];
105
+ sortPositions?: import("./types").SortPositions | undefined;
106
+ fallbackValue?: List['fallbackValue'];
107
+ }>, {
108
+ fallbackValue: string;
109
+ ariaLabel: string;
110
+ dataIdentifier: () => {
111
+ key: string;
112
+ };
113
+ }>>> & {
114
+ "onUpdate:selected"?: ((selected: Data | Data[]) => any) | undefined;
115
+ "onListitem:click"?: ((item: Data) => any) | undefined;
116
+ "onListitem:selected"?: ((item: Data) => any) | undefined;
117
+ } & import("vue").ShallowUnwrapRef<{
118
+ unselectAll: () => void;
119
+ selectAll: () => void;
120
+ }> & {} & import("vue").ComponentCustomProperties;
121
+ __isFragment?: undefined;
122
+ __isTeleport?: undefined;
123
+ __isSuspense?: undefined;
124
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
125
+ id: List['id'];
126
+ data: List['data'];
127
+ headers?: import("./types").Header | undefined;
128
+ selected?: List['selected'];
129
+ ariaLabel: List['ariaLabel'];
130
+ selectMode?: import("./types").SelectMode | undefined;
131
+ dataIdentifier?: List['dataIdentifier'];
132
+ sortPositions?: import("./types").SortPositions | undefined;
133
+ fallbackValue?: List['fallbackValue'];
134
+ }>, {
135
+ fallbackValue: string;
136
+ ariaLabel: string;
137
+ dataIdentifier: () => {
138
+ key: string;
139
+ };
140
+ }>>> & {
141
+ "onUpdate:selected"?: ((selected: Data | Data[]) => any) | undefined;
142
+ "onListitem:click"?: ((item: Data) => any) | undefined;
143
+ "onListitem:selected"?: ((item: Data) => any) | undefined;
144
+ }, {
145
+ unselectAll: () => void;
146
+ selectAll: () => void;
147
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
148
+ "listitem:click": (item: Data) => void;
149
+ } & {
150
+ "listitem:selected": (item: Data) => void;
151
+ } & {
152
+ "update:selected": (selected: Data | Data[]) => void;
153
+ }, string, {
154
+ ariaLabel: List['ariaLabel'];
155
+ fallbackValue: string;
156
+ dataIdentifier: import("./types").DataIdentifier;
157
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
158
+ $slots: Record<string, {
159
+ data: any;
160
+ index: any;
161
+ columnIndex: number;
162
+ renderHeader: (headerKey: string) => string;
163
+ headers: import("./types").Header | undefined;
164
+ }> & Record<string, {
165
+ data: any;
166
+ index: any;
167
+ columnIndex: any;
168
+ renderHeader: any;
169
+ headers: any;
170
+ }> & Record<string, {
171
+ data: any;
172
+ index: any;
173
+ columnIndex: any;
174
+ isHighlight: any;
175
+ }> & {
176
+ image: (_: {
177
+ data: Data;
178
+ }) => any;
179
+ 'action-button': (_: {
180
+ arias: {
181
+ testid: string;
182
+ data: Data;
183
+ index: number;
184
+ ariaLabel: string;
185
+ };
186
+ }) => any;
187
+ menu: (_: {}) => any;
188
+ };
189
+ });
190
+ export default _default;
191
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
192
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
193
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
194
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
195
+ } : {
196
+ type: import('vue').PropType<T[K]>;
197
+ required: true;
198
+ };
199
+ };
200
+ declare type __VLS_WithDefaults<P, D> = {
201
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
202
+ default: D[K];
203
+ } : P[K];
204
+ };
@@ -0,0 +1,151 @@
1
+ import type { DataValue, ListItem } from './types';
2
+ declare const _default: {
3
+ new (...args: any[]): {
4
+ $: import("vue").ComponentInternalInstance;
5
+ $data: {};
6
+ $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
+ id: ListItem['id'];
8
+ itemIndex: ListItem['index'];
9
+ headers?: ListItem['headers'];
10
+ data: ListItem['data'];
11
+ hasMenu: ListItem['hasMenu'];
12
+ hasImage: ListItem['hasMenu'];
13
+ renderHeader: ListItem['renderHeader'];
14
+ isHighlight: ListItem['isHighlight'];
15
+ isSelected: ListItem['hasMenu'];
16
+ fallbackValue: ListItem['fallbackValue'];
17
+ setFixedColumnSize: ListItem['setFixedColumnSize'];
18
+ sortPositions: ListItem['sortPositions'];
19
+ }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
20
+ $attrs: {
21
+ [x: string]: unknown;
22
+ };
23
+ $refs: {
24
+ [x: string]: unknown;
25
+ };
26
+ $slots: Readonly<{
27
+ [name: string]: import("vue").Slot | undefined;
28
+ }>;
29
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
30
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
31
+ $emit: (event: string, ...args: any[]) => void;
32
+ $el: any;
33
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
34
+ id: ListItem['id'];
35
+ itemIndex: ListItem['index'];
36
+ headers?: ListItem['headers'];
37
+ data: ListItem['data'];
38
+ hasMenu: ListItem['hasMenu'];
39
+ hasImage: ListItem['hasMenu'];
40
+ renderHeader: ListItem['renderHeader'];
41
+ isHighlight: ListItem['isHighlight'];
42
+ isSelected: ListItem['hasMenu'];
43
+ fallbackValue: ListItem['fallbackValue'];
44
+ setFixedColumnSize: ListItem['setFixedColumnSize'];
45
+ sortPositions: ListItem['sortPositions'];
46
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}> & {
47
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
48
+ created?: ((() => void) | (() => void)[]) | undefined;
49
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
50
+ mounted?: ((() => void) | (() => void)[]) | undefined;
51
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
52
+ updated?: ((() => void) | (() => void)[]) | undefined;
53
+ activated?: ((() => void) | (() => void)[]) | undefined;
54
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
55
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
56
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
57
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
58
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
59
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
60
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
61
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
62
+ };
63
+ $forceUpdate: () => void;
64
+ $nextTick: typeof import("vue").nextTick;
65
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
66
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
67
+ id: ListItem['id'];
68
+ itemIndex: ListItem['index'];
69
+ headers?: ListItem['headers'];
70
+ data: ListItem['data'];
71
+ hasMenu: ListItem['hasMenu'];
72
+ hasImage: ListItem['hasMenu'];
73
+ renderHeader: ListItem['renderHeader'];
74
+ isHighlight: ListItem['isHighlight'];
75
+ isSelected: ListItem['hasMenu'];
76
+ fallbackValue: ListItem['fallbackValue'];
77
+ setFixedColumnSize: ListItem['setFixedColumnSize'];
78
+ sortPositions: ListItem['sortPositions'];
79
+ }>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
80
+ __isFragment?: undefined;
81
+ __isTeleport?: undefined;
82
+ __isSuspense?: undefined;
83
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
84
+ id: ListItem['id'];
85
+ itemIndex: ListItem['index'];
86
+ headers?: ListItem['headers'];
87
+ data: ListItem['data'];
88
+ hasMenu: ListItem['hasMenu'];
89
+ hasImage: ListItem['hasMenu'];
90
+ renderHeader: ListItem['renderHeader'];
91
+ isHighlight: ListItem['isHighlight'];
92
+ isSelected: ListItem['hasMenu'];
93
+ fallbackValue: ListItem['fallbackValue'];
94
+ setFixedColumnSize: ListItem['setFixedColumnSize'];
95
+ sortPositions: ListItem['sortPositions'];
96
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
97
+ $slots: Record<string, {
98
+ data: {
99
+ key: string;
100
+ value: DataValue;
101
+ };
102
+ index: number;
103
+ columnIndex: number;
104
+ renderHeader: (header: string) => string;
105
+ headers: import("./types").Header | undefined;
106
+ }> & Record<string, {
107
+ data: {
108
+ key: string;
109
+ value: DataValue;
110
+ };
111
+ index: number;
112
+ columnIndex: number;
113
+ renderHeader: (header: string) => string;
114
+ headers: import("./types").Header | undefined;
115
+ }> & Record<string, {
116
+ data: {
117
+ key: string;
118
+ value: DataValue;
119
+ };
120
+ index: number;
121
+ columnIndex: number;
122
+ isHighlight: (param: import("./types").IsHighlightParams) => boolean;
123
+ }> & {
124
+ selectable: (_: {
125
+ data: import("./types").Data;
126
+ index: number;
127
+ label: string;
128
+ }) => any;
129
+ image: (_: {
130
+ data: import("./types").Data;
131
+ }) => any;
132
+ 'action-button': (_: {
133
+ arias: {
134
+ testid: string;
135
+ data: import("./types").Data;
136
+ index: number;
137
+ ariaLabel: string;
138
+ };
139
+ }) => any;
140
+ };
141
+ });
142
+ export default _default;
143
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
144
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
145
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
146
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
147
+ } : {
148
+ type: import('vue').PropType<T[K]>;
149
+ required: true;
150
+ };
151
+ };
@@ -0,0 +1,2 @@
1
+ import SolList from './List.vue';
2
+ export { SolList, };
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,51 @@
1
+ export declare type DataValue = string | number;
2
+ export declare type Data = Record<string, DataValue>;
3
+ export interface HeaderOptions {
4
+ highlight?: boolean;
5
+ align?: 'left' | 'right';
6
+ hide?: boolean;
7
+ text?: string;
8
+ width?: string;
9
+ mobileWidth?: string;
10
+ }
11
+ export declare type Header = Record<string, HeaderOptions>;
12
+ export declare type DesktopDataPosition = string[];
13
+ export declare type MobileDataPosition = string[][];
14
+ export declare type DataIdentifier = {
15
+ inputName?: string;
16
+ key: string;
17
+ };
18
+ export declare type IsHighlightParams = {
19
+ key?: string;
20
+ value?: boolean;
21
+ };
22
+ export declare type SortPositions = {
23
+ desktop: DesktopDataPosition;
24
+ mobile: MobileDataPosition;
25
+ };
26
+ export declare type Selected = Data | Data[];
27
+ export declare type SelectMode = 'checkbox' | 'radio';
28
+ export interface List {
29
+ id: string;
30
+ selected?: Selected;
31
+ sortPositions: SortPositions;
32
+ selectMode: SelectMode;
33
+ ariaLabel: string;
34
+ headers: Header;
35
+ data: Data[];
36
+ fallbackValue?: string;
37
+ dataIdentifier?: DataIdentifier;
38
+ }
39
+ export interface ListItem {
40
+ id: string;
41
+ index: number;
42
+ headers?: Header;
43
+ data: Data;
44
+ hasSelectable: boolean;
45
+ hasMenu: boolean;
46
+ sortPositions: MobileDataPosition | DesktopDataPosition;
47
+ fallbackValue: string;
48
+ renderHeader: (header: string) => string;
49
+ isHighlight: (param: IsHighlightParams) => boolean;
50
+ setFixedColumnSize: (key: string) => string | undefined;
51
+ }