@solfacil/girassol 0.6.0 → 0.7.0-beta-pagination.1

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 (44) hide show
  1. package/dist/components.d.ts +3 -1
  2. package/dist/components.json +1 -1
  3. package/dist/girassol.es.js +2362 -2130
  4. package/dist/girassol.umd.js +6 -6
  5. package/dist/style.css +1 -1
  6. package/dist/theme/solfacil/index.d.ts +1 -0
  7. package/dist/theme/solfacil/utilities.d.ts +1 -0
  8. package/dist/types/components/{informations/chip/Chip.vue.d.ts → filters/chip/removable-chip/RemovableChip.vue.d.ts} +37 -37
  9. package/dist/types/components/filters/chip/removable-chip/index.d.ts +2 -0
  10. package/dist/types/components/{informations/chip/chip.spec.d.ts → filters/chip/removable-chip/removable-chip.spec.d.ts} +0 -0
  11. package/dist/types/components/filters/chip/removable-chip/types.d.ts +4 -0
  12. package/dist/types/components/filters/chip/selectable-chip/SelectableChip.vue.d.ts +125 -0
  13. package/dist/types/components/filters/chip/selectable-chip/index.d.ts +2 -0
  14. package/dist/types/components/filters/chip/selectable-chip/selectable-chip.spec.d.ts +1 -0
  15. package/dist/types/components/filters/chip/selectable-chip/types.d.ts +5 -0
  16. package/dist/types/components/filters/chip/types.d.ts +6 -0
  17. package/dist/types/components/forms/button/button/Button.vue.d.ts +4 -4
  18. package/dist/types/components/forms/checkbox/checkbox/Checkbox.vue.d.ts +81 -13
  19. package/dist/types/components/forms/checkbox/checkbox-group/CheckboxGroup.vue.d.ts +4 -20
  20. package/dist/types/components/forms/inputs/input-core/Input.vue.d.ts +91 -15
  21. package/dist/types/components/forms/inputs/input-password/InputPassword.vue.d.ts +107 -21
  22. package/dist/types/components/forms/inputs/input-textarea/InputTextarea.vue.d.ts +121 -33
  23. package/dist/types/components/forms/radio/radio/Radio.vue.d.ts +78 -12
  24. package/dist/types/components/forms/radio/radio-group/RadioGroup.vue.d.ts +4 -20
  25. package/dist/types/components/forms/select/ListOption.vue.d.ts +16 -60
  26. package/dist/types/components/forms/select/Select.vue.d.ts +26 -24
  27. package/dist/types/components/forms/select/types.d.ts +2 -2
  28. package/dist/types/components/forms/switch/Switch.vue.d.ts +107 -20
  29. package/dist/types/components/loader/CircleLoader.vue.d.ts +72 -10
  30. package/dist/types/components/modal/Modal.vue.d.ts +4 -4
  31. package/dist/types/components/pagination/Pagination.vue.d.ts +190 -0
  32. package/dist/types/components/pagination/index.d.ts +2 -0
  33. package/dist/types/components/pagination/pagination.spec.d.ts +1 -0
  34. package/dist/types/components/pagination/types.d.ts +14 -0
  35. package/dist/types/composables/use-filters/index.d.ts +8 -0
  36. package/dist/types/composables/use-filters/use-filters.spec.d.ts +1 -0
  37. package/dist/types/composables/use-validate-field/index.d.ts +3 -3
  38. package/dist/types/composables/use-validate-field/types.d.ts +4 -8
  39. package/dist/types/index.d.ts +2060 -971
  40. package/package.json +24 -18
  41. package/theme/solfacil/index.ts +2 -1
  42. package/theme/solfacil/utilities.ts +26 -1
  43. package/windi.config.ts +1 -14
  44. package/dist/types/components/informations/chip/index.d.ts +0 -2
@@ -1,21 +1,104 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- id: string;
3
- name: string;
4
- value?: string | undefined;
5
- label: string;
6
- checked?: boolean | undefined;
7
- class?: string | Record<string, boolean> | undefined;
8
- textDirection?: "left" | "right" | undefined;
9
- hideLabel?: boolean | undefined;
10
- stretchLabel?: boolean | undefined;
11
- }>, {
12
- textDirection: string;
13
- stretchLabel: boolean;
14
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
- change: (value: string | boolean) => void;
16
- } & {
17
- "update:checked": (value: boolean) => void;
18
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{
6
+ textDirection: 'left' | 'right';
7
+ stretchLabel: boolean;
8
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ id: string;
10
+ name: string;
11
+ value?: string | undefined;
12
+ label: string;
13
+ checked?: boolean | undefined;
14
+ class?: string | Record<string, boolean> | undefined;
15
+ textDirection?: "left" | "right" | undefined;
16
+ hideLabel?: boolean | undefined;
17
+ stretchLabel?: boolean | undefined;
18
+ }>, {
19
+ textDirection: string;
20
+ stretchLabel: boolean;
21
+ }>>> & {
22
+ onChange?: ((value: string | boolean) => any) | undefined;
23
+ "onUpdate:checked"?: ((value: boolean) => any) | undefined;
24
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "textDirection" | "stretchLabel">;
25
+ $attrs: {
26
+ [x: string]: unknown;
27
+ };
28
+ $refs: {
29
+ [x: string]: unknown;
30
+ };
31
+ $slots: Readonly<{
32
+ [name: string]: import("vue").Slot | undefined;
33
+ }>;
34
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
35
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
36
+ $emit: ((event: "change", value: string | boolean) => void) & ((event: "update:checked", value: boolean) => void);
37
+ $el: any;
38
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
39
+ id: string;
40
+ name: string;
41
+ value?: string | undefined;
42
+ label: string;
43
+ checked?: boolean | undefined;
44
+ class?: string | Record<string, boolean> | undefined;
45
+ textDirection?: "left" | "right" | undefined;
46
+ hideLabel?: boolean | undefined;
47
+ stretchLabel?: boolean | undefined;
48
+ }>, {
49
+ textDirection: string;
50
+ stretchLabel: boolean;
51
+ }>>> & {
52
+ onChange?: ((value: string | boolean) => any) | undefined;
53
+ "onUpdate:checked"?: ((value: boolean) => any) | undefined;
54
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
55
+ change: (value: string | boolean) => void;
56
+ } & {
57
+ "update:checked": (value: boolean) => void;
58
+ }, string, {
59
+ textDirection: 'left' | 'right';
60
+ stretchLabel: boolean;
61
+ }> & {
62
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
63
+ created?: ((() => void) | (() => void)[]) | undefined;
64
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
65
+ mounted?: ((() => void) | (() => void)[]) | undefined;
66
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
67
+ updated?: ((() => void) | (() => void)[]) | undefined;
68
+ activated?: ((() => void) | (() => void)[]) | undefined;
69
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
70
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
71
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
72
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
73
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
74
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
75
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
76
+ 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;
77
+ };
78
+ $forceUpdate: () => void;
79
+ $nextTick: typeof import("vue").nextTick;
80
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
81
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
82
+ id: string;
83
+ name: string;
84
+ value?: string | undefined;
85
+ label: string;
86
+ checked?: boolean | undefined;
87
+ class?: string | Record<string, boolean> | undefined;
88
+ textDirection?: "left" | "right" | undefined;
89
+ hideLabel?: boolean | undefined;
90
+ stretchLabel?: boolean | undefined;
91
+ }>, {
92
+ textDirection: string;
93
+ stretchLabel: boolean;
94
+ }>>> & {
95
+ onChange?: ((value: string | boolean) => any) | undefined;
96
+ "onUpdate:checked"?: ((value: boolean) => any) | undefined;
97
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
98
+ __isFragment?: undefined;
99
+ __isTeleport?: undefined;
100
+ __isSuspense?: undefined;
101
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
19
102
  id: string;
20
103
  name: string;
21
104
  value?: string | undefined;
@@ -31,10 +114,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
31
114
  }>>> & {
32
115
  onChange?: ((value: string | boolean) => any) | undefined;
33
116
  "onUpdate:checked"?: ((value: boolean) => any) | undefined;
34
- }, {
117
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
118
+ change: (value: string | boolean) => void;
119
+ } & {
120
+ "update:checked": (value: boolean) => void;
121
+ }, string, {
35
122
  textDirection: 'left' | 'right';
36
123
  stretchLabel: boolean;
37
- }>;
124
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
38
125
  export default _default;
39
126
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
127
  declare type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,21 +1,83 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{
6
+ title: string;
7
+ size: 'small' | 'medium' | 'large';
8
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ size: 'small' | 'medium' | 'large';
10
+ dark?: boolean | undefined;
11
+ title?: string | undefined;
12
+ }>, {
13
+ size: string;
14
+ title: string;
15
+ }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "size">;
16
+ $attrs: {
17
+ [x: string]: unknown;
18
+ };
19
+ $refs: {
20
+ [x: string]: unknown;
21
+ };
22
+ $slots: Readonly<{
23
+ [name: string]: import("vue").Slot | undefined;
24
+ }>;
25
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
26
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
27
+ $emit: (event: string, ...args: any[]) => void;
28
+ $el: any;
29
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
30
+ size: 'small' | 'medium' | 'large';
31
+ dark?: boolean | undefined;
32
+ title?: string | undefined;
33
+ }>, {
34
+ size: string;
35
+ title: string;
36
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
37
+ title: string;
38
+ size: 'small' | 'medium' | 'large';
39
+ }> & {
40
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
41
+ created?: ((() => void) | (() => void)[]) | undefined;
42
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
43
+ mounted?: ((() => void) | (() => void)[]) | undefined;
44
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
45
+ updated?: ((() => void) | (() => void)[]) | undefined;
46
+ activated?: ((() => void) | (() => void)[]) | undefined;
47
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
48
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
49
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
50
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
51
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
52
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
53
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
54
+ 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;
55
+ };
56
+ $forceUpdate: () => void;
57
+ $nextTick: typeof import("vue").nextTick;
58
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
59
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
60
+ size: 'small' | 'medium' | 'large';
61
+ dark?: boolean | undefined;
62
+ title?: string | undefined;
63
+ }>, {
64
+ size: string;
65
+ title: string;
66
+ }>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
67
+ __isFragment?: undefined;
68
+ __isTeleport?: undefined;
69
+ __isSuspense?: undefined;
70
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
71
  size: 'small' | 'medium' | 'large';
3
72
  dark?: boolean | undefined;
4
73
  title?: string | undefined;
5
74
  }>, {
6
75
  size: string;
7
76
  title: string;
8
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
- size: 'small' | 'medium' | 'large';
10
- dark?: boolean | undefined;
11
- title?: string | undefined;
12
- }>, {
13
- size: string;
14
- title: string;
15
- }>>>, {
77
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
16
78
  title: string;
17
79
  size: 'small' | 'medium' | 'large';
18
- }>;
80
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
19
81
  export default _default;
20
82
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
83
  declare type __VLS_TypePropsToRuntimeProps<T> = {
@@ -5,8 +5,8 @@ declare const _default: {
5
5
  $data: {};
6
6
  $props: Partial<{
7
7
  title: Modal['title'];
8
- size: Modal['size'];
9
8
  target: string;
9
+ size: Modal['size'];
10
10
  }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
11
  id: Modal['id'];
12
12
  size?: import("./types").Size | undefined;
@@ -30,7 +30,7 @@ declare const _default: {
30
30
  "onAction:primary"?: (() => any) | undefined;
31
31
  "onAction:secondary"?: (() => any) | undefined;
32
32
  "onAction:tertiary"?: (() => any) | undefined;
33
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "size" | "target">;
33
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "target" | "size">;
34
34
  $attrs: {
35
35
  [x: string]: unknown;
36
36
  };
@@ -84,8 +84,8 @@ declare const _default: {
84
84
  "action:tertiary": () => void;
85
85
  }, string, {
86
86
  title: Modal['title'];
87
- size: Modal['size'];
88
87
  target: string;
88
+ size: Modal['size'];
89
89
  }> & {
90
90
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
91
91
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -176,8 +176,8 @@ declare const _default: {
176
176
  "action:tertiary": () => void;
177
177
  }, string, {
178
178
  title: Modal['title'];
179
- size: Modal['size'];
180
179
  target: string;
180
+ size: Modal['size'];
181
181
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
182
182
  $slots: {
183
183
  default: (_: {}) => any;
@@ -0,0 +1,190 @@
1
+ import type { Pagination } from './types';
2
+ declare const _default: {
3
+ new (...args: any[]): {
4
+ $: import("vue").ComponentInternalInstance;
5
+ $data: {};
6
+ $props: Partial<{
7
+ size: "small" | "medium";
8
+ openMenuPosition: "top" | "dynamic";
9
+ totalPages: Pagination['totalPages'];
10
+ current: number;
11
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
+ id: Pagination['id'];
13
+ size?: Pagination['size'];
14
+ openMenuPosition?: Pagination['openMenuPosition'];
15
+ totalPages: Pagination['totalPages'];
16
+ current?: Pagination['current'];
17
+ nextPageData?: Pagination['nextPageData'];
18
+ previousPageData?: Pagination['previousPageData'];
19
+ }>, {
20
+ openMenuPosition: string;
21
+ size: string;
22
+ current: number;
23
+ totalPages: number;
24
+ }>>> & {
25
+ "onUpdate:current"?: ((page: number | undefined) => any) | undefined;
26
+ onPage?: ((page: number | undefined) => any) | undefined;
27
+ "onPage:next"?: ((value: (Record<string, unknown> & {
28
+ page: number;
29
+ }) | undefined) => any) | undefined;
30
+ "onPage:previous"?: ((value: (Record<string, unknown> & {
31
+ page: number;
32
+ }) | undefined) => any) | undefined;
33
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "openMenuPosition" | "totalPages" | "current">;
34
+ $attrs: {
35
+ [x: string]: unknown;
36
+ };
37
+ $refs: {
38
+ [x: string]: unknown;
39
+ };
40
+ $slots: Readonly<{
41
+ [name: string]: import("vue").Slot | undefined;
42
+ }>;
43
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
44
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
45
+ $emit: ((event: "update:current", page: number | undefined) => void) & ((event: "page", page: number | undefined) => void) & ((event: "page:next", value: (Record<string, unknown> & {
46
+ page: number;
47
+ }) | undefined) => void) & ((event: "page:previous", value: (Record<string, unknown> & {
48
+ page: number;
49
+ }) | undefined) => void);
50
+ $el: any;
51
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
52
+ id: Pagination['id'];
53
+ size?: Pagination['size'];
54
+ openMenuPosition?: Pagination['openMenuPosition'];
55
+ totalPages: Pagination['totalPages'];
56
+ current?: Pagination['current'];
57
+ nextPageData?: Pagination['nextPageData'];
58
+ previousPageData?: Pagination['previousPageData'];
59
+ }>, {
60
+ openMenuPosition: string;
61
+ size: string;
62
+ current: number;
63
+ totalPages: number;
64
+ }>>> & {
65
+ "onUpdate:current"?: ((page: number | undefined) => any) | undefined;
66
+ onPage?: ((page: number | undefined) => any) | undefined;
67
+ "onPage:next"?: ((value: (Record<string, unknown> & {
68
+ page: number;
69
+ }) | undefined) => any) | undefined;
70
+ "onPage:previous"?: ((value: (Record<string, unknown> & {
71
+ page: number;
72
+ }) | undefined) => any) | undefined;
73
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
74
+ "update:current": (page: number | undefined) => void;
75
+ } & {
76
+ page: (page: number | undefined) => void;
77
+ } & {
78
+ "page:next": (value: (Record<string, unknown> & {
79
+ page: number;
80
+ }) | undefined) => void;
81
+ } & {
82
+ "page:previous": (value: (Record<string, unknown> & {
83
+ page: number;
84
+ }) | undefined) => void;
85
+ }, string, {
86
+ size: "small" | "medium";
87
+ openMenuPosition: "top" | "dynamic";
88
+ totalPages: Pagination['totalPages'];
89
+ current: number;
90
+ }> & {
91
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
92
+ created?: ((() => void) | (() => void)[]) | undefined;
93
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
94
+ mounted?: ((() => void) | (() => void)[]) | undefined;
95
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
96
+ updated?: ((() => void) | (() => void)[]) | undefined;
97
+ activated?: ((() => void) | (() => void)[]) | undefined;
98
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
99
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
100
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
101
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
102
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
103
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
104
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
105
+ 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;
106
+ };
107
+ $forceUpdate: () => void;
108
+ $nextTick: typeof import("vue").nextTick;
109
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
110
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
111
+ id: Pagination['id'];
112
+ size?: Pagination['size'];
113
+ openMenuPosition?: Pagination['openMenuPosition'];
114
+ totalPages: Pagination['totalPages'];
115
+ current?: Pagination['current'];
116
+ nextPageData?: Pagination['nextPageData'];
117
+ previousPageData?: Pagination['previousPageData'];
118
+ }>, {
119
+ openMenuPosition: string;
120
+ size: string;
121
+ current: number;
122
+ totalPages: number;
123
+ }>>> & {
124
+ "onUpdate:current"?: ((page: number | undefined) => any) | undefined;
125
+ onPage?: ((page: number | undefined) => any) | undefined;
126
+ "onPage:next"?: ((value: (Record<string, unknown> & {
127
+ page: number;
128
+ }) | undefined) => any) | undefined;
129
+ "onPage:previous"?: ((value: (Record<string, unknown> & {
130
+ page: number;
131
+ }) | undefined) => any) | undefined;
132
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
133
+ __isFragment?: undefined;
134
+ __isTeleport?: undefined;
135
+ __isSuspense?: undefined;
136
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
137
+ id: Pagination['id'];
138
+ size?: Pagination['size'];
139
+ openMenuPosition?: Pagination['openMenuPosition'];
140
+ totalPages: Pagination['totalPages'];
141
+ current?: Pagination['current'];
142
+ nextPageData?: Pagination['nextPageData'];
143
+ previousPageData?: Pagination['previousPageData'];
144
+ }>, {
145
+ openMenuPosition: string;
146
+ size: string;
147
+ current: number;
148
+ totalPages: number;
149
+ }>>> & {
150
+ "onUpdate:current"?: ((page: number | undefined) => any) | undefined;
151
+ onPage?: ((page: number | undefined) => any) | undefined;
152
+ "onPage:next"?: ((value: (Record<string, unknown> & {
153
+ page: number;
154
+ }) | undefined) => any) | undefined;
155
+ "onPage:previous"?: ((value: (Record<string, unknown> & {
156
+ page: number;
157
+ }) | undefined) => any) | undefined;
158
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
159
+ "update:current": (page: number | undefined) => void;
160
+ } & {
161
+ page: (page: number | undefined) => void;
162
+ } & {
163
+ "page:next": (value: (Record<string, unknown> & {
164
+ page: number;
165
+ }) | undefined) => void;
166
+ } & {
167
+ "page:previous": (value: (Record<string, unknown> & {
168
+ page: number;
169
+ }) | undefined) => void;
170
+ }, string, {
171
+ size: "small" | "medium";
172
+ openMenuPosition: "top" | "dynamic";
173
+ totalPages: Pagination['totalPages'];
174
+ current: number;
175
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
176
+ export default _default;
177
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
178
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
179
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
180
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
181
+ } : {
182
+ type: import('vue').PropType<T[K]>;
183
+ required: true;
184
+ };
185
+ };
186
+ declare type __VLS_WithDefaults<P, D> = {
187
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
188
+ default: D[K];
189
+ } : P[K];
190
+ };
@@ -0,0 +1,2 @@
1
+ import SolPagination from './Pagination.vue';
2
+ export { SolPagination, };
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,14 @@
1
+ declare type PageProps = Record<string, unknown> & {
2
+ page: number;
3
+ };
4
+ declare type OpenMenuPosition = 'top' | 'dynamic';
5
+ export interface Pagination {
6
+ id: string;
7
+ size?: 'small' | 'medium';
8
+ openMenuPosition?: OpenMenuPosition;
9
+ totalPages: number;
10
+ current?: number;
11
+ nextPageData?: PageProps;
12
+ previousPageData?: PageProps;
13
+ }
14
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface Parameters {
2
+ initialValues?: string[] | number[];
3
+ }
4
+ export declare function useSelectableChip({ initialValues }?: Parameters): {
5
+ selectedFilters: import("vue").Ref<unknown[]>;
6
+ isSelected: (value: unknown) => boolean;
7
+ setSelectedFilter: (value: unknown) => void;
8
+ };
@@ -1,5 +1,5 @@
1
- import type { ParentValidation } from './types';
2
- export declare function useValidateField<T = unknown>(name: string, parentValidation?: ParentValidation<T>): import("vee-validate").FieldContext<T> | {
3
- value: import("vue").Ref<unknown>;
1
+ import type { ParentValidation, VModelSetting } from './types';
2
+ export declare function useValidateField<T = unknown>(name: string, parentValidation: ParentValidation<T>, vmodelSettings: VModelSetting<T>): import("vee-validate").FieldContext<T> | {
3
+ value: import("vue").WritableComputedRef<T>;
4
4
  errorMessage: import("vue").ComputedRef<string | null> | undefined;
5
5
  };
@@ -1,20 +1,16 @@
1
1
  import type { useField } from 'vee-validate';
2
2
  import type { ComputedRef, Ref } from 'vue';
3
- declare type Option = {
4
- name: string;
5
- value: string;
6
- };
7
3
  declare type Error = ComputedRef<string | null>;
8
- declare type ComponentType = 'input' | 'select' | 'checkbox' | 'radio';
9
4
  export interface ParentValidation<T = unknown> {
10
5
  error?: Error;
11
- modelValue?: T;
12
- component?: ComponentType;
13
- selected?: Option | Option[];
14
6
  useFieldParent?: typeof useField;
15
7
  rules?: Parameters<typeof useField>['1'];
16
8
  opts?: Parameters<typeof useField<T>>['2'];
17
9
  }
10
+ export interface VModelSetting<T = unknown> {
11
+ propKey: string;
12
+ emit: (args: T) => void;
13
+ }
18
14
  export declare type ValidateFieldReturn<T = string> = {
19
15
  value: Ref<T>;
20
16
  errorMessage: ComputedRef<string | null> | undefined;