@solfacil/girassol 0.7.0 → 0.8.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/cli/build/cli.js +68 -0
- package/cli/build/commands/create:component.js +136 -0
- package/cli/build/commands/generate:plugin.js +109 -0
- package/cli/build/commands/generate:types.js +76 -0
- package/cli/build/commands/girassol-cli.js +52 -0
- package/cli/build/extensions/cli-extension.js +17 -0
- package/cli/build/templates/components.d.ts.ejs +1 -0
- package/cli/build/templates/nuxt-plugin.ejs +8 -0
- package/cli/build/templates/vitesse-plugin.ejs +8 -0
- package/cli/build/templates/vue-plugin.ejs +5 -0
- package/cli/build/templates/windi.config.ts.ejs +3 -0
- package/cli/build/types/cli.d.ts +1 -0
- package/cli/build/types/commands/create:component.d.ts +1 -0
- package/cli/build/types/commands/generate:plugin.d.ts +1 -0
- package/cli/build/types/commands/generate:types.d.ts +7 -0
- package/cli/build/types/commands/girassol-cli.d.ts +1 -0
- package/cli/build/types/extensions/cli-extension.d.ts +1 -0
- package/cli/build/types/types.d.ts +0 -0
- package/cli/build/types.js +2 -0
- package/dist/components.d.ts +4 -0
- package/dist/components.json +1 -1
- package/dist/girassol.es.js +2953 -2628
- package/dist/girassol.umd.js +9 -9
- package/dist/style.css +1 -1
- package/dist/types/components/empty-state/EmptyState.vue.d.ts +97 -0
- package/dist/types/components/empty-state/empty-state.spec.d.ts +1 -0
- package/dist/types/components/empty-state/index.d.ts +2 -0
- package/dist/types/components/empty-state/types.d.ts +7 -0
- package/dist/types/components/filters/chip/removable-chip/RemovableChip.vue.d.ts +4 -4
- package/dist/types/components/forms/button/button/Button.vue.d.ts +4 -4
- package/dist/types/components/forms/checkbox/checkbox/Checkbox.vue.d.ts +81 -13
- package/dist/types/components/forms/checkbox/checkbox-group/CheckboxGroup.vue.d.ts +4 -20
- package/dist/types/components/forms/inputs/input-core/Input.vue.d.ts +91 -15
- package/dist/types/components/forms/inputs/input-password/InputPassword.vue.d.ts +107 -21
- package/dist/types/components/forms/inputs/input-textarea/InputTextarea.vue.d.ts +121 -33
- package/dist/types/components/forms/radio/radio/Radio.vue.d.ts +78 -12
- package/dist/types/components/forms/radio/radio-group/RadioGroup.vue.d.ts +4 -20
- package/dist/types/components/forms/select/ListOption.vue.d.ts +16 -60
- package/dist/types/components/forms/select/Select.vue.d.ts +23 -21
- package/dist/types/components/forms/select/types.d.ts +2 -2
- package/dist/types/components/forms/switch/Switch.vue.d.ts +107 -20
- package/dist/types/components/informations/tag/Tag.vue.d.ts +4 -4
- package/dist/types/components/list/ListItem.vue.d.ts +17 -9
- package/dist/types/components/list/types.d.ts +2 -2
- package/dist/types/components/loader/CircleLoader.vue.d.ts +72 -10
- package/dist/types/components/pagination/Pagination.vue.d.ts +190 -0
- package/dist/types/components/pagination/index.d.ts +2 -0
- package/dist/types/components/pagination/pagination.spec.d.ts +1 -0
- package/dist/types/components/pagination/types.d.ts +14 -0
- package/dist/types/components/tabs/TabItem.vue.d.ts +83 -0
- package/dist/types/components/tabs/Tabs.vue.d.ts +133 -0
- package/dist/types/components/tabs/index.d.ts +2 -0
- package/dist/types/components/tabs/tabs.spec.d.ts +1 -0
- package/dist/types/components/tabs/types.d.ts +13 -0
- package/dist/types/composables/use-navigate/index.d.ts +3 -6
- package/dist/types/composables/use-navigate/types.d.ts +8 -0
- package/dist/types/composables/use-validate-field/index.d.ts +3 -3
- package/dist/types/composables/use-validate-field/types.d.ts +4 -8
- package/dist/types/index.d.ts +2119 -847
- package/package.json +41 -31
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import type { Args, Codes, UseNavigateArgs } from './types';
|
|
2
|
-
interface NavigateInsideRow {
|
|
3
|
-
to: 'RIGHT' | 'LEFT';
|
|
4
|
-
query: string | string[];
|
|
5
|
-
}
|
|
1
|
+
import type { Args, Codes, NavigateGenericElement, NavigateInsideRow, UseNavigateArgs } from './types';
|
|
6
2
|
export declare function useNavigate(codes: Codes, args?: UseNavigateArgs): {
|
|
7
3
|
navigate: ({ code }: KeyboardEvent) => void;
|
|
8
4
|
};
|
|
@@ -11,6 +7,7 @@ export declare function useNavigateProvider({ target, query }: Args): {
|
|
|
11
7
|
id: string;
|
|
12
8
|
index: number;
|
|
13
9
|
rowIndex: number;
|
|
10
|
+
genericIndex: number;
|
|
14
11
|
};
|
|
15
12
|
isItemFocused: (arg: {
|
|
16
13
|
index?: number;
|
|
@@ -23,5 +20,5 @@ export declare function useNavigateProvider({ target, query }: Args): {
|
|
|
23
20
|
focusOnFirstItem: () => void;
|
|
24
21
|
focusOnLastItem: (dataLength: number) => void;
|
|
25
22
|
focusInsideRow: ({ query, to }: NavigateInsideRow) => void;
|
|
23
|
+
focusGenericElement: ({ query, to }: NavigateGenericElement) => void;
|
|
26
24
|
};
|
|
27
|
-
export {};
|
|
@@ -16,4 +16,12 @@ export declare type Args = {
|
|
|
16
16
|
target: Ref<VNodeRef> | undefined;
|
|
17
17
|
query?: string;
|
|
18
18
|
};
|
|
19
|
+
export interface NavigateInsideRow {
|
|
20
|
+
to: 'RIGHT' | 'LEFT';
|
|
21
|
+
query: string | string[];
|
|
22
|
+
}
|
|
23
|
+
export interface NavigateGenericElement {
|
|
24
|
+
to: 'NEXT' | 'PREVIOUS';
|
|
25
|
+
query: string | string[];
|
|
26
|
+
}
|
|
19
27
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ParentValidation } from './types';
|
|
2
|
-
export declare function useValidateField<T = unknown>(name: string, parentValidation
|
|
3
|
-
value: import("vue").
|
|
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;
|