@aures5g/vue-component-library 0.9.0 → 0.10.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/HelloWorld/HelloWorld.vue.d.ts +1 -0
- package/dist/components/badge/UIBadge.vue.d.ts +11 -14
- package/dist/components/button/UIButton.vue.d.ts +15 -18
- package/dist/components/copyToClipboard/UICopy.vue.d.ts +10 -10
- package/dist/components/menu/UIMenu.vue.d.ts +11 -11
- package/dist/components/menu/useMenu.composables.d.ts +6 -6
- package/dist/components/tag/UITag.vue.d.ts +14 -17
- package/package.json +5 -3
|
@@ -4,6 +4,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
4
4
|
msg: string;
|
|
5
5
|
}>>>, {}, {}>;
|
|
6
6
|
export default _default;
|
|
7
|
+
|
|
7
8
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
9
|
type __VLS_TypePropsToOption<T> = {
|
|
9
10
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -2,39 +2,36 @@ import { type BadgePassThroughOptions } from 'primevue/badge';
|
|
|
2
2
|
import { type PassThroughOptions } from 'primevue/passthrough';
|
|
3
3
|
import type { PassThrough } from 'primevue/ts-helpers';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
5
|
-
value?: string;
|
|
6
|
-
severity?: "
|
|
5
|
+
value?: string | undefined;
|
|
6
|
+
severity?: "primary" | "success" | "warning" | "danger" | "secondary" | "info" | "contrast" | undefined;
|
|
7
7
|
pt?: PassThrough<BadgePassThroughOptions<any>>;
|
|
8
|
-
ptOptions?: PassThroughOptions;
|
|
8
|
+
ptOptions?: PassThroughOptions | undefined;
|
|
9
9
|
}>, {
|
|
10
10
|
value: string;
|
|
11
11
|
severity: "primary";
|
|
12
|
-
pt:
|
|
12
|
+
pt: undefined;
|
|
13
13
|
ptOptions: () => {
|
|
14
14
|
mergeSections: boolean;
|
|
15
15
|
mergeProps: boolean;
|
|
16
16
|
};
|
|
17
17
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
18
|
-
value?: string;
|
|
19
|
-
severity?: "
|
|
18
|
+
value?: string | undefined;
|
|
19
|
+
severity?: "primary" | "success" | "warning" | "danger" | "secondary" | "info" | "contrast" | undefined;
|
|
20
20
|
pt?: PassThrough<BadgePassThroughOptions<any>>;
|
|
21
|
-
ptOptions?: PassThroughOptions;
|
|
21
|
+
ptOptions?: PassThroughOptions | undefined;
|
|
22
22
|
}>, {
|
|
23
23
|
value: string;
|
|
24
24
|
severity: "primary";
|
|
25
|
-
pt:
|
|
25
|
+
pt: undefined;
|
|
26
26
|
ptOptions: () => {
|
|
27
27
|
mergeSections: boolean;
|
|
28
28
|
mergeProps: boolean;
|
|
29
29
|
};
|
|
30
30
|
}>>>, {
|
|
31
|
+
severity: "primary" | "success" | "warning" | "danger" | "secondary" | "info" | "contrast";
|
|
32
|
+
pt: object | BadgePassThroughOptions<any>;
|
|
33
|
+
ptOptions: PassThroughOptions;
|
|
31
34
|
value: string;
|
|
32
|
-
pt: any;
|
|
33
|
-
ptOptions: {
|
|
34
|
-
mergeSections: boolean;
|
|
35
|
-
mergeProps: boolean;
|
|
36
|
-
};
|
|
37
|
-
severity: "success" | "info" | "warning" | "secondary" | "danger" | "contrast" | "primary";
|
|
38
35
|
}, {}>;
|
|
39
36
|
export default _default;
|
|
40
37
|
type __VLS_WithDefaults<P, D> = {
|
|
@@ -2,16 +2,16 @@ import { type ButtonPassThroughOptions } from 'primevue/button';
|
|
|
2
2
|
import { type PassThroughOptions } from 'primevue/passthrough';
|
|
3
3
|
import type { PassThrough } from 'primevue/ts-helpers';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
5
|
-
severity?: "text" | "
|
|
6
|
-
label?: string;
|
|
5
|
+
severity?: "text" | "primary" | "outlined" | "success" | "warning" | "danger" | undefined;
|
|
6
|
+
label?: string | undefined;
|
|
7
7
|
pt?: PassThrough<ButtonPassThroughOptions<any>>;
|
|
8
|
-
ptOptions?: PassThroughOptions;
|
|
9
|
-
isAction?: boolean;
|
|
10
|
-
small?: boolean;
|
|
8
|
+
ptOptions?: PassThroughOptions | undefined;
|
|
9
|
+
isAction?: boolean | undefined;
|
|
10
|
+
small?: boolean | undefined;
|
|
11
11
|
}>, {
|
|
12
12
|
label: string;
|
|
13
13
|
severity: "primary";
|
|
14
|
-
pt:
|
|
14
|
+
pt: undefined;
|
|
15
15
|
ptOptions: () => {
|
|
16
16
|
mergeSections: boolean;
|
|
17
17
|
mergeProps: boolean;
|
|
@@ -19,16 +19,16 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
19
19
|
isAction: boolean;
|
|
20
20
|
small: boolean;
|
|
21
21
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
22
|
-
severity?: "text" | "
|
|
23
|
-
label?: string;
|
|
22
|
+
severity?: "text" | "primary" | "outlined" | "success" | "warning" | "danger" | undefined;
|
|
23
|
+
label?: string | undefined;
|
|
24
24
|
pt?: PassThrough<ButtonPassThroughOptions<any>>;
|
|
25
|
-
ptOptions?: PassThroughOptions;
|
|
26
|
-
isAction?: boolean;
|
|
27
|
-
small?: boolean;
|
|
25
|
+
ptOptions?: PassThroughOptions | undefined;
|
|
26
|
+
isAction?: boolean | undefined;
|
|
27
|
+
small?: boolean | undefined;
|
|
28
28
|
}>, {
|
|
29
29
|
label: string;
|
|
30
30
|
severity: "primary";
|
|
31
|
-
pt:
|
|
31
|
+
pt: undefined;
|
|
32
32
|
ptOptions: () => {
|
|
33
33
|
mergeSections: boolean;
|
|
34
34
|
mergeProps: boolean;
|
|
@@ -38,12 +38,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
38
38
|
}>>>, {
|
|
39
39
|
small: boolean;
|
|
40
40
|
label: string;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
mergeProps: boolean;
|
|
45
|
-
};
|
|
46
|
-
severity: "text" | "success" | "warning" | "danger" | "outlined" | "primary";
|
|
41
|
+
severity: "text" | "primary" | "outlined" | "success" | "warning" | "danger";
|
|
42
|
+
pt: object | ButtonPassThroughOptions<any>;
|
|
43
|
+
ptOptions: PassThroughOptions;
|
|
47
44
|
isAction: boolean;
|
|
48
45
|
}, {}>;
|
|
49
46
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
2
|
textToClipboard: string;
|
|
3
|
-
textToDisplay?: string | number;
|
|
3
|
+
textToDisplay?: string | number | undefined;
|
|
4
4
|
tooltipText: string | number;
|
|
5
|
-
tooltipPosition?: "left" | "top" | "bottom" |
|
|
6
|
-
hiddenIcon?: boolean;
|
|
7
|
-
iconPosition?: "
|
|
5
|
+
tooltipPosition?: "right" | "left" | "top" | "bottom" | undefined;
|
|
6
|
+
hiddenIcon?: boolean | undefined;
|
|
7
|
+
iconPosition?: "right" | "left" | undefined;
|
|
8
8
|
}>, {
|
|
9
9
|
textToDisplay: string;
|
|
10
10
|
tooltipPosition: "top";
|
|
@@ -12,11 +12,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
12
12
|
iconPosition: "right";
|
|
13
13
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
14
14
|
textToClipboard: string;
|
|
15
|
-
textToDisplay?: string | number;
|
|
15
|
+
textToDisplay?: string | number | undefined;
|
|
16
16
|
tooltipText: string | number;
|
|
17
|
-
tooltipPosition?: "left" | "top" | "bottom" |
|
|
18
|
-
hiddenIcon?: boolean;
|
|
19
|
-
iconPosition?: "
|
|
17
|
+
tooltipPosition?: "right" | "left" | "top" | "bottom" | undefined;
|
|
18
|
+
hiddenIcon?: boolean | undefined;
|
|
19
|
+
iconPosition?: "right" | "left" | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
textToDisplay: string;
|
|
22
22
|
tooltipPosition: "top";
|
|
@@ -24,9 +24,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
24
24
|
iconPosition: "right";
|
|
25
25
|
}>>>, {
|
|
26
26
|
textToDisplay: string | number;
|
|
27
|
-
tooltipPosition: "
|
|
27
|
+
tooltipPosition: "right" | "left" | "top" | "bottom";
|
|
28
28
|
hiddenIcon: boolean;
|
|
29
|
-
iconPosition: "
|
|
29
|
+
iconPosition: "right" | "left";
|
|
30
30
|
}, {}>, {
|
|
31
31
|
default?(_: {}): any;
|
|
32
32
|
}>;
|
|
@@ -3,26 +3,26 @@ import type { Icon, MenuItems } from './menu.types';
|
|
|
3
3
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
4
4
|
mainMenuItems: MenuItems;
|
|
5
5
|
branding: [string, string];
|
|
6
|
-
brandLogo?: Icon;
|
|
7
|
-
landingRoute?: RouteRecordName;
|
|
8
|
-
expandedRoutes?: RouteRecordName[];
|
|
6
|
+
brandLogo?: Icon | undefined;
|
|
7
|
+
landingRoute?: RouteRecordName | null | undefined;
|
|
8
|
+
expandedRoutes?: RouteRecordName[] | undefined;
|
|
9
9
|
}>, {
|
|
10
10
|
brandLogo: () => import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
11
|
-
landingRoute:
|
|
12
|
-
expandedRoutes: () =>
|
|
11
|
+
landingRoute: null;
|
|
12
|
+
expandedRoutes: () => never[];
|
|
13
13
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
14
14
|
mainMenuItems: MenuItems;
|
|
15
15
|
branding: [string, string];
|
|
16
|
-
brandLogo?: Icon;
|
|
17
|
-
landingRoute?: RouteRecordName;
|
|
18
|
-
expandedRoutes?: RouteRecordName[];
|
|
16
|
+
brandLogo?: Icon | undefined;
|
|
17
|
+
landingRoute?: RouteRecordName | null | undefined;
|
|
18
|
+
expandedRoutes?: RouteRecordName[] | undefined;
|
|
19
19
|
}>, {
|
|
20
20
|
brandLogo: () => import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
21
|
-
landingRoute:
|
|
22
|
-
expandedRoutes: () =>
|
|
21
|
+
landingRoute: null;
|
|
22
|
+
expandedRoutes: () => never[];
|
|
23
23
|
}>>>, {
|
|
24
24
|
brandLogo: Icon;
|
|
25
|
-
landingRoute: RouteRecordName;
|
|
25
|
+
landingRoute: RouteRecordName | null;
|
|
26
26
|
expandedRoutes: RouteRecordName[];
|
|
27
27
|
}, {}>;
|
|
28
28
|
export default _default;
|
|
@@ -27,13 +27,13 @@ export declare function useMenuCategories(mainMenuItems: MenuItems, landingRoute
|
|
|
27
27
|
* Handle everything around floating menu
|
|
28
28
|
*/
|
|
29
29
|
export declare function useFloatingMenu(mainMenuItems: MenuItems, menuCategories: Ref<Record<string, boolean>>): {
|
|
30
|
-
activeFloatingMenuIndex: Ref<number>;
|
|
30
|
+
activeFloatingMenuIndex: Ref<number | null>;
|
|
31
31
|
menuItemRefs: Ref<HTMLLIElement[]>;
|
|
32
|
-
navbarRef: Ref<HTMLDivElement>;
|
|
32
|
+
navbarRef: Ref<HTMLDivElement | null>;
|
|
33
33
|
enterFloatingTrigger: (index: number, category: string) => void;
|
|
34
34
|
leaveFloatingTrigger: (index: number) => Promise<void>;
|
|
35
|
-
activeFloatingMenu: import("vue").ComputedRef<MenuItemWithSubmenu>;
|
|
36
|
-
floatingMenuWrapperRef: Ref<HTMLDivElement>;
|
|
35
|
+
activeFloatingMenu: import("vue").ComputedRef<MenuItemWithSubmenu | null>;
|
|
36
|
+
floatingMenuWrapperRef: Ref<HTMLDivElement | null>;
|
|
37
37
|
resetFloatingMenu: () => Promise<void>;
|
|
38
38
|
focusFloatingMenu: () => Promise<void>;
|
|
39
39
|
blurFloatingMenu: () => Promise<void>;
|
|
@@ -46,7 +46,7 @@ export declare function useCategoryLink(): {
|
|
|
46
46
|
getCategoryLinkProps: (menu: MenuItemWithSubmenu) => {
|
|
47
47
|
readonly [x: string]: string | {
|
|
48
48
|
name: string;
|
|
49
|
-
};
|
|
50
|
-
readonly target: "_blank";
|
|
49
|
+
} | null | undefined;
|
|
50
|
+
readonly target: "_blank" | null;
|
|
51
51
|
};
|
|
52
52
|
};
|
|
@@ -2,44 +2,41 @@ import { type TagPassThroughOptions } from 'primevue/tag';
|
|
|
2
2
|
import type { PassThrough } from 'primevue/ts-helpers';
|
|
3
3
|
import { type PassThroughOptions } from 'primevue/passthrough';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
5
|
-
value?: string;
|
|
6
|
-
severity?: "
|
|
5
|
+
value?: string | undefined;
|
|
6
|
+
severity?: "primary" | "success" | "warning" | "danger" | "secondary" | "info" | "contrast" | undefined;
|
|
7
7
|
pt?: PassThrough<TagPassThroughOptions>;
|
|
8
|
-
ptOptions?: PassThroughOptions;
|
|
9
|
-
size?: "sm" | "lg";
|
|
8
|
+
ptOptions?: PassThroughOptions | undefined;
|
|
9
|
+
size?: "sm" | "lg" | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
value: string;
|
|
12
12
|
severity: "primary";
|
|
13
|
-
pt:
|
|
13
|
+
pt: undefined;
|
|
14
14
|
ptOptions: () => {
|
|
15
15
|
mergeSections: boolean;
|
|
16
16
|
mergeProps: boolean;
|
|
17
17
|
};
|
|
18
18
|
size: "sm";
|
|
19
19
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
20
|
-
value?: string;
|
|
21
|
-
severity?: "
|
|
20
|
+
value?: string | undefined;
|
|
21
|
+
severity?: "primary" | "success" | "warning" | "danger" | "secondary" | "info" | "contrast" | undefined;
|
|
22
22
|
pt?: PassThrough<TagPassThroughOptions>;
|
|
23
|
-
ptOptions?: PassThroughOptions;
|
|
24
|
-
size?: "sm" | "lg";
|
|
23
|
+
ptOptions?: PassThroughOptions | undefined;
|
|
24
|
+
size?: "sm" | "lg" | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
value: string;
|
|
27
27
|
severity: "primary";
|
|
28
|
-
pt:
|
|
28
|
+
pt: undefined;
|
|
29
29
|
ptOptions: () => {
|
|
30
30
|
mergeSections: boolean;
|
|
31
31
|
mergeProps: boolean;
|
|
32
32
|
};
|
|
33
33
|
size: "sm";
|
|
34
34
|
}>>>, {
|
|
35
|
-
|
|
35
|
+
severity: "primary" | "success" | "warning" | "danger" | "secondary" | "info" | "contrast";
|
|
36
|
+
pt: object | TagPassThroughOptions;
|
|
37
|
+
ptOptions: PassThroughOptions;
|
|
36
38
|
size: "sm" | "lg";
|
|
37
|
-
|
|
38
|
-
ptOptions: {
|
|
39
|
-
mergeSections: boolean;
|
|
40
|
-
mergeProps: boolean;
|
|
41
|
-
};
|
|
42
|
-
severity: "success" | "info" | "warning" | "secondary" | "danger" | "contrast" | "primary";
|
|
39
|
+
value: string;
|
|
43
40
|
}, {}>;
|
|
44
41
|
export default _default;
|
|
45
42
|
type __VLS_WithDefaults<P, D> = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aures5g/vue-component-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"dev": "vite",
|
|
26
|
-
"build": "vite build && vue-tsc --
|
|
26
|
+
"build": "vite build && vue-tsc --project tsconfig.typings.json",
|
|
27
|
+
"build:dry": "run-p type-check \"build-only {@}\" --",
|
|
27
28
|
"preview": "vite preview",
|
|
28
29
|
"test:unit": "vitest",
|
|
29
30
|
"build-only": "vite build",
|
|
@@ -33,7 +34,8 @@
|
|
|
33
34
|
"format": "prettier --write src/ .storybook/",
|
|
34
35
|
"format:check": "prettier --check src/ .storybook/",
|
|
35
36
|
"storybook": "storybook dev -p 6006",
|
|
36
|
-
"build-storybook": "storybook build"
|
|
37
|
+
"build-storybook": "storybook build",
|
|
38
|
+
"check-version": "./check-version.sh"
|
|
37
39
|
},
|
|
38
40
|
"devDependencies": {
|
|
39
41
|
"@aures5g/style-guide": "^1.1.2",
|