@solfacil/girassol 0.16.0 → 0.16.2
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/cli/build/cli.js +1 -1
- package/cli/build/commands/create:component.js +1 -1
- package/cli/build/commands/generate:plugin.js +1 -1
- package/cli/build/commands/generate:types.js +1 -1
- package/cli/build/commands/girassol-cli.js +1 -1
- package/dist/girassol.es.js +3683 -3645
- package/dist/girassol.umd.js +8 -8
- package/dist/style.css +1 -1
- package/dist/types/components/accordion/Accordion.vue.d.ts +10 -10
- package/dist/types/components/collapsible/Collapsible.vue.d.ts +10 -10
- package/dist/types/components/date-picker/DatePicker.vue.d.ts +10 -10
- package/dist/types/components/date-picker/types.d.ts +1 -1
- package/dist/types/components/empty-state/EmptyState.vue.d.ts +10 -10
- package/dist/types/components/empty-state/types.d.ts +1 -1
- package/dist/types/components/file-upload/Download.vue.d.ts +10 -10
- package/dist/types/components/file-upload/FileUpload.vue.d.ts +10 -10
- package/dist/types/components/file-upload/Upload.vue.d.ts +10 -10
- package/dist/types/components/file-upload/types.d.ts +4 -4
- package/dist/types/components/filters/chip/removable-chip/RemovableChip.vue.d.ts +10 -10
- package/dist/types/components/filters/chip/selectable-chip/SelectableChip.vue.d.ts +10 -10
- package/dist/types/components/forms/button/button/Button.vue.d.ts +10 -10
- package/dist/types/components/forms/button/button-destructive/ButtonDestructive.vue.d.ts +10 -10
- package/dist/types/components/forms/checkbox/checkbox/Checkbox.vue.d.ts +9 -9
- package/dist/types/components/forms/checkbox/checkbox-group/CheckboxGroup.vue.d.ts +10 -10
- package/dist/types/components/forms/checkbox/type.d.ts +1 -1
- package/dist/types/components/forms/inputs/input-core/Input.vue.d.ts +10 -10
- package/dist/types/components/forms/inputs/input-password/InputPassword.vue.d.ts +10 -10
- package/dist/types/components/forms/inputs/input-text/InputText.vue.d.ts +11 -11
- package/dist/types/components/forms/inputs/input-textarea/InputTextarea.vue.d.ts +10 -10
- package/dist/types/components/forms/inputs/types.d.ts +2 -2
- package/dist/types/components/forms/radio/radio/Radio.vue.d.ts +9 -9
- package/dist/types/components/forms/radio/radio-group/RadioGroup.vue.d.ts +10 -10
- package/dist/types/components/forms/radio/types.d.ts +1 -1
- package/dist/types/components/forms/select/ListOption.vue.d.ts +9 -9
- package/dist/types/components/forms/select/Select.vue.d.ts +10 -10
- package/dist/types/components/forms/select/types.d.ts +2 -2
- package/dist/types/components/forms/switch/Switch.vue.d.ts +10 -10
- package/dist/types/components/informations/alert/Alert.vue.d.ts +10 -10
- package/dist/types/components/informations/tag/Tag.vue.d.ts +14 -14
- package/dist/types/components/informations/text-value/TextValue.vue.d.ts +10 -10
- package/dist/types/components/list/List.vue.d.ts +26 -11
- package/dist/types/components/list/ListItem.vue.d.ts +9 -9
- package/dist/types/components/list/ListItemTextValue.vue.d.ts +10 -10
- package/dist/types/components/list/types.d.ts +12 -10
- package/dist/types/components/loader/CircleLoader.vue.d.ts +10 -10
- package/dist/types/components/menus/menu/Menu.vue.d.ts +10 -10
- package/dist/types/components/menus/menu-item/menu-item/MenuItem.vue.d.ts +9 -9
- package/dist/types/components/menus/menu-item/menu-item-link/MenuItemLink.vue.d.ts +9 -9
- package/dist/types/components/menus/menu-navigation-links/MenuNavigationLinks.vue.d.ts +9 -9
- package/dist/types/components/modal/Modal.vue.d.ts +10 -10
- package/dist/types/components/modal/types.d.ts +3 -3
- package/dist/types/components/pagination/Pagination.vue.d.ts +10 -10
- package/dist/types/components/pagination/types.d.ts +2 -2
- package/dist/types/components/search/Search.vue.d.ts +44 -11
- package/dist/types/components/search/types.d.ts +4 -1
- package/dist/types/components/steps/Steps.vue.d.ts +10 -10
- package/dist/types/components/steps/types.d.ts +1 -1
- package/dist/types/components/tabs/TabItem.vue.d.ts +10 -10
- package/dist/types/components/tabs/Tabs.vue.d.ts +10 -10
- package/dist/types/components/tabs/types.d.ts +1 -1
- package/dist/types/composables/use-mask/index.d.ts +1 -1
- package/dist/types/composables/use-navigate/types.d.ts +11 -11
- package/dist/types/composables/use-toast/Toast.vue.d.ts +10 -10
- package/dist/types/composables/use-toast/index.d.ts +1 -1
- package/dist/types/composables/use-toast/types.d.ts +3 -3
- package/dist/types/composables/use-validate-field/types.d.ts +2 -2
- package/dist/types/index.d.ts +591 -487
- package/package.json +35 -35
- package/theme/solfacil/utilities.ts +5 -7
|
@@ -34,8 +34,8 @@ declare const _default: {
|
|
|
34
34
|
$slots: Readonly<{
|
|
35
35
|
[name: string]: import("vue").Slot | undefined;
|
|
36
36
|
}>;
|
|
37
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
38
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
37
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
38
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
39
39
|
$emit: ((event: "update:tabList", tab: TabList[]) => void) & ((event: "tabitem:active", tab: TabList) => void);
|
|
40
40
|
$el: any;
|
|
41
41
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -63,7 +63,7 @@ declare const _default: {
|
|
|
63
63
|
"tabitem:active": (tab: TabList) => void;
|
|
64
64
|
}, string, {
|
|
65
65
|
tabList: Tabs['tabList'];
|
|
66
|
-
}> & {
|
|
66
|
+
}, {}, string> & {
|
|
67
67
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
68
68
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
69
69
|
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -78,11 +78,11 @@ declare const _default: {
|
|
|
78
78
|
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
79
79
|
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
80
80
|
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
81
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
81
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
82
82
|
};
|
|
83
83
|
$forceUpdate: () => void;
|
|
84
84
|
$nextTick: typeof import("vue").nextTick;
|
|
85
|
-
$watch
|
|
85
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
86
86
|
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
87
87
|
id: Tabs['id'];
|
|
88
88
|
tabList?: TabList[] | undefined;
|
|
@@ -102,7 +102,7 @@ declare const _default: {
|
|
|
102
102
|
}>>> & {
|
|
103
103
|
"onUpdate:tabList"?: ((tab: TabList[]) => any) | undefined;
|
|
104
104
|
"onTabitem:active"?: ((tab: TabList) => any) | undefined;
|
|
105
|
-
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
105
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
106
106
|
__isFragment?: undefined;
|
|
107
107
|
__isTeleport?: undefined;
|
|
108
108
|
__isSuspense?: undefined;
|
|
@@ -131,10 +131,10 @@ declare const _default: {
|
|
|
131
131
|
"tabitem:active": (tab: TabList) => void;
|
|
132
132
|
}, string, {
|
|
133
133
|
tabList: Tabs['tabList'];
|
|
134
|
-
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
134
|
+
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
135
135
|
export default _default;
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
137
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
138
138
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
139
139
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
140
140
|
} : {
|
|
@@ -142,7 +142,7 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
142
142
|
required: true;
|
|
143
143
|
};
|
|
144
144
|
};
|
|
145
|
-
|
|
145
|
+
type __VLS_WithDefaults<P, D> = {
|
|
146
146
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
147
147
|
default: D[K];
|
|
148
148
|
} : P[K];
|
|
@@ -5,7 +5,7 @@ export declare const MaskPresets: {
|
|
|
5
5
|
readonly CPF_CNPJ: readonly ["###.###.###-##", "##.###.###/#####-##"];
|
|
6
6
|
readonly MobilePhoneDDD: "(##) # ####-####";
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type Mask = string | string[] | {
|
|
9
9
|
preset: keyof typeof MaskPresets;
|
|
10
10
|
mask?: string;
|
|
11
11
|
tokens?: any;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { Ref, VNodeRef } from "vue";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
2
|
+
type Arrows = 'ArrowUp' | 'ArrowDown' | 'ArrowLeft' | 'ArrowRight';
|
|
3
|
+
type Commands = 'Home' | 'End' | 'Space' | 'Enter' | 'NumpadEnter' | 'Escape' | 'Tab' | 'Delete' | 'Backspace';
|
|
4
|
+
type Numbers = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9';
|
|
5
|
+
type Alphabetic = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'U' | 'T' | 'W' | 'X' | 'Y' | 'Z';
|
|
6
|
+
type DigitNumbers = `Digit${Numbers}`;
|
|
7
|
+
type NumpadNumbers = `Numpad${Numbers}`;
|
|
8
|
+
type KeyLetters = `Key${Alphabetic}`;
|
|
9
|
+
export type Code = Commands | Arrows | KeyLetters | DigitNumbers | NumpadNumbers;
|
|
10
|
+
export type Codes = Partial<Record<Code, () => void>>;
|
|
11
|
+
export type UseNavigateArgs = {
|
|
12
12
|
fallback: () => void;
|
|
13
13
|
exclude?: Code | Code[];
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type Args = {
|
|
16
16
|
target: Ref<VNodeRef> | undefined;
|
|
17
17
|
query?: string;
|
|
18
18
|
};
|
|
@@ -42,8 +42,8 @@ declare const _default: {
|
|
|
42
42
|
$slots: Readonly<{
|
|
43
43
|
[name: string]: import("vue").Slot | undefined;
|
|
44
44
|
}>;
|
|
45
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
46
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
45
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
46
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
47
47
|
$emit: (event: string, ...args: any[]) => void;
|
|
48
48
|
$el: any;
|
|
49
49
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -75,7 +75,7 @@ declare const _default: {
|
|
|
75
75
|
visible: boolean;
|
|
76
76
|
hideProgressBar: boolean;
|
|
77
77
|
showIcon: boolean;
|
|
78
|
-
}> & {
|
|
78
|
+
}, {}, string> & {
|
|
79
79
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
80
80
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
81
81
|
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -90,11 +90,11 @@ declare const _default: {
|
|
|
90
90
|
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
91
91
|
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
92
92
|
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
93
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
93
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
94
94
|
};
|
|
95
95
|
$forceUpdate: () => void;
|
|
96
96
|
$nextTick: typeof import("vue").nextTick;
|
|
97
|
-
$watch
|
|
97
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
98
98
|
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
99
99
|
id: string | number;
|
|
100
100
|
type: ToastOptions['type'];
|
|
@@ -117,7 +117,7 @@ declare const _default: {
|
|
|
117
117
|
hideProgressBar: boolean | undefined;
|
|
118
118
|
offset: number;
|
|
119
119
|
visible: boolean;
|
|
120
|
-
}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
120
|
+
}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
121
121
|
__isFragment?: undefined;
|
|
122
122
|
__isTeleport?: undefined;
|
|
123
123
|
__isSuspense?: undefined;
|
|
@@ -150,7 +150,7 @@ declare const _default: {
|
|
|
150
150
|
visible: boolean;
|
|
151
151
|
hideProgressBar: boolean;
|
|
152
152
|
showIcon: boolean;
|
|
153
|
-
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
153
|
+
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
154
154
|
$slots: {
|
|
155
155
|
'icon-status': (_: {
|
|
156
156
|
type: import("./types").ToastType | undefined;
|
|
@@ -160,8 +160,8 @@ declare const _default: {
|
|
|
160
160
|
};
|
|
161
161
|
});
|
|
162
162
|
export default _default;
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
164
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
165
165
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
166
166
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
167
167
|
} : {
|
|
@@ -169,7 +169,7 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
169
169
|
required: true;
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
|
-
|
|
172
|
+
type __VLS_WithDefaults<P, D> = {
|
|
173
173
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
174
174
|
default: D[K];
|
|
175
175
|
} : P[K];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { VNode } from 'vue';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type ToastType = 'informative' | 'error' | 'warning' | 'success';
|
|
3
|
+
export type Position = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-center' | 'bottom-center';
|
|
4
4
|
export interface ToastContent {
|
|
5
5
|
type?: ToastType;
|
|
6
6
|
title?: string;
|
|
@@ -47,4 +47,4 @@ export interface ToastComponent {
|
|
|
47
47
|
hideProgress?: boolean;
|
|
48
48
|
showIcon?: boolean;
|
|
49
49
|
}
|
|
50
|
-
export
|
|
50
|
+
export type ContentTostParams = ToastContent | string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { useField } from 'vee-validate';
|
|
2
2
|
import type { ComputedRef, Ref } from 'vue';
|
|
3
|
-
|
|
3
|
+
type Error = ComputedRef<string | null>;
|
|
4
4
|
export interface ParentValidation<T = unknown> {
|
|
5
5
|
error?: Error;
|
|
6
6
|
useFieldParent?: typeof useField;
|
|
@@ -11,7 +11,7 @@ export interface VModelSetting<T = unknown> {
|
|
|
11
11
|
propKey: string;
|
|
12
12
|
emit: (args: T) => void;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export type ValidateFieldReturn<T = string> = {
|
|
15
15
|
value: Ref<T>;
|
|
16
16
|
errorMessage: ComputedRef<string | null> | undefined;
|
|
17
17
|
};
|