@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.
- package/dist/components.d.ts +3 -0
- package/dist/components.json +1 -1
- package/dist/girassol.es.js +2412 -1774
- package/dist/girassol.umd.js +6 -6
- package/dist/list-slots-disclaimer.png +0 -0
- package/dist/style.css +1 -1
- package/dist/theme/solfacil/screens.d.ts +4 -1
- package/dist/types/components/forms/checkbox/checkbox/Checkbox.vue.d.ts +2 -0
- package/dist/types/components/forms/checkbox/type.d.ts +1 -0
- package/dist/types/components/forms/radio/radio/Radio.vue.d.ts +2 -0
- package/dist/types/components/forms/radio/types.d.ts +1 -0
- package/dist/types/components/informations/alert/Alert.vue.d.ts +126 -0
- package/dist/types/components/informations/alert/alert.spec.d.ts +1 -0
- package/dist/types/components/informations/alert/index.d.ts +2 -0
- package/dist/types/components/informations/tag/Tag.vue.d.ts +121 -0
- package/dist/types/components/informations/tag/index.d.ts +2 -0
- package/dist/types/components/informations/tag/tag.spec.d.ts +1 -0
- package/dist/types/components/informations/text-value/TextValue.vue.d.ts +105 -0
- package/dist/types/components/list/List.vue.d.ts +204 -0
- package/dist/types/components/list/ListItem.vue.d.ts +151 -0
- package/dist/types/components/list/index.d.ts +2 -0
- package/dist/types/components/list/list.spec.d.ts +1 -0
- package/dist/types/components/list/types.d.ts +51 -0
- package/dist/types/components/menus/menu/Menu.vue.d.ts +11 -0
- package/dist/types/components/menus/menu-item/menu-item/MenuItem.vue.d.ts +77 -0
- package/dist/types/components/menus/menu-item/menu-item/index.d.ts +2 -0
- package/dist/types/composables/use-navigate/index.d.ts +7 -0
- package/dist/types/index.d.ts +639 -8
- package/package.json +1 -1
- package/public/list-slots-disclaimer.png +0 -0
- package/theme/solfacil/screens.ts +5 -4
- package/theme/solfacil/utilities.ts +9 -13
|
@@ -79,6 +79,17 @@ declare const _default: {
|
|
|
79
79
|
position: ("bottom" | "top") | ("left" | "right");
|
|
80
80
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
81
81
|
$slots: {
|
|
82
|
+
trigger: (_: {
|
|
83
|
+
id: string;
|
|
84
|
+
toggle: () => void;
|
|
85
|
+
isOpen: boolean;
|
|
86
|
+
arias: {
|
|
87
|
+
role: string;
|
|
88
|
+
class: string;
|
|
89
|
+
ariaHaspopup: boolean;
|
|
90
|
+
ariaExpanded: boolean;
|
|
91
|
+
};
|
|
92
|
+
}) => any;
|
|
82
93
|
label: (_: {
|
|
83
94
|
isOpen: boolean;
|
|
84
95
|
}) => any;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
id: string;
|
|
7
|
+
}>>> & {
|
|
8
|
+
onClicked?: (() => any) | undefined;
|
|
9
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
10
|
+
$attrs: {
|
|
11
|
+
[x: string]: unknown;
|
|
12
|
+
};
|
|
13
|
+
$refs: {
|
|
14
|
+
[x: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
$slots: Readonly<{
|
|
17
|
+
[name: string]: import("vue").Slot | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
20
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
21
|
+
$emit: (event: "clicked") => void;
|
|
22
|
+
$el: any;
|
|
23
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
24
|
+
id: string;
|
|
25
|
+
}>>> & {
|
|
26
|
+
onClicked?: (() => any) | undefined;
|
|
27
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
clicked: () => void;
|
|
29
|
+
}, string, {}> & {
|
|
30
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
43
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
44
|
+
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;
|
|
45
|
+
};
|
|
46
|
+
$forceUpdate: () => void;
|
|
47
|
+
$nextTick: typeof import("vue").nextTick;
|
|
48
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
49
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
50
|
+
id: string;
|
|
51
|
+
}>>> & {
|
|
52
|
+
onClicked?: (() => any) | undefined;
|
|
53
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
54
|
+
__isFragment?: undefined;
|
|
55
|
+
__isTeleport?: undefined;
|
|
56
|
+
__isSuspense?: undefined;
|
|
57
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
58
|
+
id: string;
|
|
59
|
+
}>>> & {
|
|
60
|
+
onClicked?: (() => any) | undefined;
|
|
61
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
62
|
+
clicked: () => void;
|
|
63
|
+
}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
64
|
+
$slots: {
|
|
65
|
+
default: (_: {}) => any;
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
export default _default;
|
|
69
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
70
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
71
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
72
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
73
|
+
} : {
|
|
74
|
+
type: import('vue').PropType<T[K]>;
|
|
75
|
+
required: true;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { Args, Codes, UseNavigateArgs } from './types';
|
|
2
|
+
interface NavigateInsideRow {
|
|
3
|
+
to: 'RIGHT' | 'LEFT';
|
|
4
|
+
query: string | string[];
|
|
5
|
+
}
|
|
2
6
|
export declare function useNavigate(codes: Codes, args?: UseNavigateArgs): {
|
|
3
7
|
navigate: ({ code }: KeyboardEvent) => void;
|
|
4
8
|
};
|
|
@@ -6,6 +10,7 @@ export declare function useNavigateProvider({ target, query }: Args): {
|
|
|
6
10
|
elementFocus: {
|
|
7
11
|
id: string;
|
|
8
12
|
index: number;
|
|
13
|
+
rowIndex: number;
|
|
9
14
|
};
|
|
10
15
|
isItemFocused: (arg: {
|
|
11
16
|
index?: number;
|
|
@@ -17,4 +22,6 @@ export declare function useNavigateProvider({ target, query }: Args): {
|
|
|
17
22
|
focusOnNextItem: (dataLength: number) => void;
|
|
18
23
|
focusOnFirstItem: () => void;
|
|
19
24
|
focusOnLastItem: (dataLength: number) => void;
|
|
25
|
+
focusInsideRow: ({ query, to }: NavigateInsideRow) => void;
|
|
20
26
|
};
|
|
27
|
+
export {};
|