@open-xamu-co/ui-components-vue 3.1.0 → 4.0.0-next.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.
- package/CHANGELOG.md +11 -60
- package/dist/components/action/Button.stories.d.ts +6 -12
- package/dist/components/action/Button.vue.d.ts +7 -11
- package/dist/components/action/ButtonLink.stories.d.ts +4 -10
- package/dist/components/action/ButtonLink.vue.d.ts +17 -19
- package/dist/components/action/ButtonToggle.stories.d.ts +4 -10
- package/dist/components/action/ButtonToggle.vue.d.ts +7 -11
- package/dist/components/action/Link.stories.d.ts +4 -10
- package/dist/components/action/Link.vue.d.ts +7 -11
- package/dist/components/base/Action.vue.d.ts +7 -11
- package/dist/components/base/Box.vue.d.ts +7 -11
- package/dist/components/base/BrowserOnly.vue.d.ts +9 -12
- package/dist/components/base/ErrorBoundary.vue.d.ts +11 -14
- package/dist/components/base/Img.vue.d.ts +2 -1
- package/dist/components/base/Input.vue.d.ts +11 -15
- package/dist/components/base/Select.vue.d.ts +2 -1
- package/dist/components/base/Wrapper.vue.d.ts +9 -13
- package/dist/components/box/Action.stories.d.ts +4 -11
- package/dist/components/box/Action.vue.d.ts +2 -1
- package/dist/components/box/Message.stories.d.ts +4 -10
- package/dist/components/box/Message.vue.d.ts +7 -11
- package/dist/components/collapse/Simple.stories.d.ts +4 -11
- package/dist/components/collapse/Simple.vue.d.ts +7 -11
- package/dist/components/dropdown/Simple.stories.d.ts +3 -9
- package/dist/components/dropdown/Simple.vue.d.ts +37 -41
- package/dist/components/form/Input.stories.d.ts +3 -2
- package/dist/components/form/Input.vue.d.ts +2 -1
- package/dist/components/form/InputCountriesAPI.vue.d.ts +10 -14
- package/dist/components/form/InputLoop.vue.d.ts +12 -7
- package/dist/components/form/InputNValues.vue.d.ts +11 -6
- package/dist/components/form/InputOptions.vue.d.ts +19 -23
- package/dist/components/form/Simple.stories.d.ts +4 -2
- package/dist/components/form/Simple.vue.d.ts +14 -9
- package/dist/components/form/Stages.stories.d.ts +4 -62
- package/dist/components/form/Stages.vue.d.ts +29 -28
- package/dist/components/icon/Fa.stories.d.ts +4 -10
- package/dist/components/icon/Fa.vue.d.ts +2 -1
- package/dist/components/icon/Simple.stories.d.ts +4 -8
- package/dist/components/icon/Simple.vue.d.ts +7 -11
- package/dist/components/input/Color.stories.d.ts +3 -7
- package/dist/components/input/Color.vue.d.ts +2 -1
- package/dist/components/input/File.stories.d.ts +4 -10
- package/dist/components/input/File.vue.d.ts +2 -1
- package/dist/components/input/Text.stories.d.ts +4 -11
- package/dist/components/input/Text.vue.d.ts +2 -1
- package/dist/components/input/Toggle.stories.d.ts +4 -10
- package/dist/components/input/Toggle.vue.d.ts +7 -11
- package/dist/components/loader/Content.stories.d.ts +4 -8
- package/dist/components/loader/Content.vue.d.ts +7 -11
- package/dist/components/loader/ContentFetch.stories.d.ts +5 -8
- package/dist/components/loader/ContentFetch.vue.d.ts +16 -11
- package/dist/components/loader/Simple.stories.d.ts +4 -8
- package/dist/components/loader/Simple.vue.d.ts +7 -11
- package/dist/components/modal/Simple.stories.d.ts +3 -15
- package/dist/components/modal/Simple.vue.d.ts +53 -53
- package/dist/components/pagination/Content.stories.d.ts +4 -7
- package/dist/components/pagination/Content.vue.d.ts +15 -10
- package/dist/components/pagination/ContentTable.stories.d.ts +4 -7
- package/dist/components/pagination/ContentTable.vue.d.ts +23 -15
- package/dist/components/pagination/Simple.stories.d.ts +5 -21
- package/dist/components/pagination/Simple.vue.d.ts +12 -7
- package/dist/components/select/Choice.stories.d.ts +3 -9
- package/dist/components/select/Choice.vue.d.ts +2 -1
- package/dist/components/select/Filter.stories.d.ts +3 -9
- package/dist/components/select/Filter.vue.d.ts +2 -1
- package/dist/components/select/Simple.stories.d.ts +4 -11
- package/dist/components/select/Simple.vue.d.ts +2 -1
- package/dist/components/slider/Simple.stories.d.ts +4 -8
- package/dist/components/slider/Simple.vue.d.ts +50 -0
- package/dist/components/table/Body.vue.d.ts +18 -11
- package/dist/components/table/HeadActions.vue.d.ts +12 -7
- package/dist/components/table/HeadContent.vue.d.ts +10 -5
- package/dist/components/table/Simple.stories.d.ts +4 -52
- package/dist/components/table/Simple.vue.d.ts +23 -15
- package/dist/components/value/Complex.stories.d.ts +4 -8
- package/dist/components/value/Complex.vue.d.ts +2 -1
- package/dist/components/value/List.stories.d.ts +4 -27
- package/dist/components/value/List.vue.d.ts +2 -12
- package/dist/components/value/Simple.stories.d.ts +5 -10
- package/dist/components/value/Simple.vue.d.ts +10 -5
- package/dist/index-Bbn-n1yC.js +7098 -0
- package/dist/index-CyI1yZlR.cjs +4 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +45 -1
- package/dist/plugin.cjs +1 -0
- package/dist/plugin.js +902 -1
- package/dist/theme.cjs +1 -0
- package/dist/theme.js +7 -1
- package/dist/types/props.d.ts +1 -1
- package/dist/types/storybook.d.ts +10 -0
- package/package.json +39 -31
- package/dist/index-BeKPWN3w.js +0 -4
- package/dist/index-DPLrKbNp.mjs +0 -8400
- package/dist/index.mjs +0 -45
- package/dist/plugin.mjs +0 -884
- package/dist/theme.mjs +0 -7
- /package/dist/{theme-CChhGSbE.js → theme-CChhGSbE.cjs} +0 -0
- /package/dist/{theme-DWMJmaKP.mjs → theme-DWMJmaKP.js} +0 -0
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
3
|
-
declare const meta:
|
|
4
|
-
|
|
5
|
-
component: Record<keyof typeof Simple, unknown>;
|
|
6
|
-
args: {
|
|
7
|
-
title: string;
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
type Story = StoryObj<typeof Simple>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import CollapseSimple from "./Simple.vue";
|
|
3
|
+
declare const meta: Meta<typeof CollapseSimple>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
12
5
|
export declare const Sample: Story;
|
|
13
6
|
export default meta;
|
|
@@ -5,19 +5,15 @@ interface Collapse extends iUseThemeProps {
|
|
|
5
5
|
checked?: boolean;
|
|
6
6
|
el?: vComponent | string;
|
|
7
7
|
}
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
default?(_: {}): any;
|
|
12
|
-
};
|
|
13
|
-
refs: {};
|
|
14
|
-
rootEl: any;
|
|
8
|
+
declare var __VLS_18: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_18) => any;
|
|
15
11
|
};
|
|
16
|
-
|
|
17
|
-
declare const
|
|
18
|
-
declare const _default:
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<Collapse, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Collapse> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
19
15
|
export default _default;
|
|
20
|
-
type
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
17
|
new (): {
|
|
22
18
|
$slots: S;
|
|
23
19
|
};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
2
|
import DropdownSimple from "./Simple.vue";
|
|
3
|
-
declare const meta:
|
|
4
|
-
|
|
5
|
-
component: Record<keyof typeof DropdownSimple, unknown>;
|
|
6
|
-
args: {
|
|
7
|
-
invertTheme: true;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
type Story = StoryObj<typeof DropdownSimple>;
|
|
3
|
+
declare const meta: Meta<typeof DropdownSimple>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
11
5
|
export declare const Sample: Story;
|
|
12
6
|
export default meta;
|
|
@@ -21,46 +21,41 @@ interface iDropdownProps extends iUseModifiersProps, iUseThemeProps {
|
|
|
21
21
|
classes?: string;
|
|
22
22
|
}
|
|
23
23
|
declare function setModel(value?: boolean): void;
|
|
24
|
-
declare
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
toggleRef: HTMLDivElement;
|
|
58
|
-
dropdownRef: HTMLDivElement;
|
|
59
|
-
};
|
|
60
|
-
rootEl: any;
|
|
24
|
+
declare var __VLS_8: {
|
|
25
|
+
model: boolean;
|
|
26
|
+
setModel: typeof setModel;
|
|
27
|
+
}, __VLS_17: {
|
|
28
|
+
model: boolean;
|
|
29
|
+
isModal: boolean;
|
|
30
|
+
setModel: typeof setModel;
|
|
31
|
+
modalRef: HTMLDialogElement | undefined;
|
|
32
|
+
dropdownRef: HTMLElement | undefined;
|
|
33
|
+
invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
|
|
34
|
+
}, __VLS_19: {
|
|
35
|
+
model: boolean;
|
|
36
|
+
isModal: false;
|
|
37
|
+
setModel: typeof setModel;
|
|
38
|
+
modalRef: HTMLDialogElement | undefined;
|
|
39
|
+
dropdownRef: HTMLElement | undefined;
|
|
40
|
+
invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
|
|
41
|
+
}, __VLS_22: {
|
|
42
|
+
model: boolean;
|
|
43
|
+
isModal: true;
|
|
44
|
+
setModel: typeof setModel;
|
|
45
|
+
modalRef: HTMLDialogElement | undefined;
|
|
46
|
+
dropdownRef: HTMLElement | undefined;
|
|
47
|
+
invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
|
|
48
|
+
};
|
|
49
|
+
type __VLS_Slots = {} & {
|
|
50
|
+
toggle?: (props: typeof __VLS_8) => any;
|
|
51
|
+
} & {
|
|
52
|
+
default?: (props: typeof __VLS_17) => any;
|
|
53
|
+
} & {
|
|
54
|
+
actions?: (props: typeof __VLS_19) => any;
|
|
55
|
+
} & {
|
|
56
|
+
actions?: (props: typeof __VLS_22) => any;
|
|
61
57
|
};
|
|
62
|
-
|
|
63
|
-
declare const __VLS_component: import("vue").DefineComponent<iDropdownProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
58
|
+
declare const __VLS_base: import("vue").DefineComponent<iDropdownProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
64
59
|
close: (...args: any[]) => void;
|
|
65
60
|
"update:model-value": (...args: any[]) => void;
|
|
66
61
|
}, string, import("vue").PublicProps, Readonly<iDropdownProps> & Readonly<{
|
|
@@ -70,9 +65,10 @@ declare const __VLS_component: import("vue").DefineComponent<iDropdownProps, {},
|
|
|
70
65
|
theme: import("@open-xamu-co/ui-common-types").tThemeTuple | import("@open-xamu-co/ui-common-types").tProp<import("@open-xamu-co/ui-common-types").tThemeModifier>;
|
|
71
66
|
classes: string;
|
|
72
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
73
|
-
declare const
|
|
68
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
69
|
+
declare const _default: typeof __VLS_export;
|
|
74
70
|
export default _default;
|
|
75
|
-
type
|
|
71
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
76
72
|
new (): {
|
|
77
73
|
$slots: S;
|
|
78
74
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/vue3";
|
|
2
|
-
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import FormInputComponent from "./Input.vue";
|
|
3
|
+
declare const meta: Meta<typeof FormInputComponent>;
|
|
3
4
|
type Story = StoryObj<typeof meta>;
|
|
4
5
|
export declare const Sample: Story;
|
|
5
6
|
export default meta;
|
|
@@ -13,9 +13,10 @@ export interface iFormInputProps extends iUseThemeProps {
|
|
|
13
13
|
/** Make all inputs read only by disabling them */
|
|
14
14
|
readonly?: boolean;
|
|
15
15
|
}
|
|
16
|
-
declare const
|
|
16
|
+
declare const __VLS_export: import("vue").DefineComponent<iFormInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
17
|
"update:model-value": (...args: any[]) => void;
|
|
18
18
|
}, string, import("vue").PublicProps, Readonly<iFormInputProps> & Readonly<{
|
|
19
19
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
20
20
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
21
22
|
export default _default;
|
|
@@ -9,24 +9,20 @@ interface iFormInputCountriesApi extends iUseThemeProps {
|
|
|
9
9
|
errors?: unknown;
|
|
10
10
|
refresh?: (...args: any[]) => any;
|
|
11
11
|
}
|
|
12
|
-
declare
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}): any;
|
|
19
|
-
};
|
|
20
|
-
refs: {};
|
|
21
|
-
rootEl: any;
|
|
12
|
+
declare var __VLS_14: {
|
|
13
|
+
statesReq: Record<string, any>;
|
|
14
|
+
citiesReq: Record<string, any>;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_Slots = {} & {
|
|
17
|
+
default?: (props: typeof __VLS_14) => any;
|
|
22
18
|
};
|
|
23
|
-
|
|
24
|
-
declare const __VLS_component: import("vue").DefineComponent<iFormInputCountriesApi, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iFormInputCountriesApi> & Readonly<{}>, {
|
|
19
|
+
declare const __VLS_base: import("vue").DefineComponent<iFormInputCountriesApi, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iFormInputCountriesApi> & Readonly<{}>, {
|
|
25
20
|
states: iState[];
|
|
26
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
-
declare const
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
28
24
|
export default _default;
|
|
29
|
-
type
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
26
|
new (): {
|
|
31
27
|
$slots: S;
|
|
32
28
|
};
|
|
@@ -7,20 +7,25 @@ export interface iFormInputLoop<Ti> extends iUseThemeProps {
|
|
|
7
7
|
/** Make all inputs read only by disabling them */
|
|
8
8
|
readonly?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare const
|
|
11
|
-
props: __VLS_PrettifyLocal<
|
|
12
|
-
|
|
10
|
+
declare const __VLS_export: <T extends iFormValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
11
|
+
props: __VLS_PrettifyLocal<iFormInputLoop<T>> & import("vue").PublicProps & (typeof globalThis extends {
|
|
12
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
13
|
+
} ? P : {});
|
|
14
|
+
expose: (exposed: {}) => void;
|
|
13
15
|
attrs: any;
|
|
14
16
|
slots: {
|
|
15
|
-
default
|
|
17
|
+
default?: (props: {
|
|
16
18
|
i: number;
|
|
17
|
-
})
|
|
19
|
+
}) => any;
|
|
18
20
|
};
|
|
19
21
|
emit: {};
|
|
20
22
|
}>) => import("vue").VNode & {
|
|
21
23
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
22
24
|
};
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
23
26
|
export default _default;
|
|
24
|
-
type __VLS_PrettifyLocal<T> = {
|
|
27
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
25
28
|
[K in keyof T]: T[K];
|
|
26
|
-
}
|
|
29
|
+
} : {
|
|
30
|
+
[K in keyof T as K]: T[K];
|
|
31
|
+
}) & {};
|
|
@@ -9,18 +9,23 @@ export interface iFormInputNValues<Ti> {
|
|
|
9
9
|
label?: string;
|
|
10
10
|
refresh?: (...args: any[]) => any;
|
|
11
11
|
}
|
|
12
|
-
declare const
|
|
13
|
-
props: __VLS_PrettifyLocal<
|
|
14
|
-
|
|
12
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
13
|
+
props: __VLS_PrettifyLocal<iFormInputNValues<T>> & import("vue").PublicProps & (typeof globalThis extends {
|
|
14
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
15
|
+
} ? P : {});
|
|
16
|
+
expose: (exposed: {}) => void;
|
|
15
17
|
attrs: any;
|
|
16
18
|
slots: {
|
|
17
|
-
default
|
|
19
|
+
default?: (props: {}) => any;
|
|
18
20
|
};
|
|
19
21
|
emit: {};
|
|
20
22
|
}>) => import("vue").VNode & {
|
|
21
23
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
22
24
|
};
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
23
26
|
export default _default;
|
|
24
|
-
type __VLS_PrettifyLocal<T> = {
|
|
27
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
25
28
|
[K in keyof T]: T[K];
|
|
26
|
-
}
|
|
29
|
+
} : {
|
|
30
|
+
[K in keyof T as K]: T[K];
|
|
31
|
+
}) & {};
|
|
@@ -2,31 +2,27 @@ import type { tFormInput } from "@open-xamu-co/ui-common-types";
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
input: tFormInput;
|
|
4
4
|
};
|
|
5
|
-
declare
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}): any;
|
|
21
|
-
};
|
|
22
|
-
refs: {};
|
|
23
|
-
rootEl: any;
|
|
5
|
+
declare var __VLS_1: {
|
|
6
|
+
key: number;
|
|
7
|
+
options: {
|
|
8
|
+
icon?: import("@fortawesome/fontawesome-common-types").IconName | undefined;
|
|
9
|
+
pattern?: string | undefined;
|
|
10
|
+
placeholder?: string | undefined;
|
|
11
|
+
value: string | number;
|
|
12
|
+
alias?: string | undefined;
|
|
13
|
+
selected?: boolean | undefined;
|
|
14
|
+
disabled?: boolean | undefined;
|
|
15
|
+
hidden?: boolean | undefined;
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
default?: (props: typeof __VLS_1) => any;
|
|
24
20
|
};
|
|
25
|
-
|
|
26
|
-
declare const
|
|
27
|
-
declare const _default:
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
28
24
|
export default _default;
|
|
29
|
-
type
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
26
|
new (): {
|
|
31
27
|
$slots: S;
|
|
32
28
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import type { GenericMeta } from "../../types/storybook";
|
|
3
|
+
import FormSimple from "./Simple.vue";
|
|
4
|
+
declare const meta: GenericMeta<typeof FormSimple>;
|
|
3
5
|
type Story = StoryObj<typeof meta>;
|
|
4
6
|
export declare const Sample: Story;
|
|
5
7
|
export declare const WithInputs: Story;
|
|
@@ -19,21 +19,26 @@ export interface iFormSimple<P extends any[]> extends iUseThemeProps {
|
|
|
19
19
|
/** Make all inputs read only by disabling them */
|
|
20
20
|
readonly?: boolean;
|
|
21
21
|
}
|
|
22
|
-
declare const
|
|
23
|
-
props: __VLS_PrettifyLocal<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} & import("vue").
|
|
27
|
-
|
|
22
|
+
declare const __VLS_export: <P extends any[] = any[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
23
|
+
props: __VLS_PrettifyLocal<iFormSimple<P> & {
|
|
24
|
+
"onUpdate:model-value"?: ((args_0: tFormInput<import("@open-xamu-co/ui-common-types").iFormValue | import("@open-xamu-co/ui-common-types").iFormValue[], import("@open-xamu-co/ui-common-enums").eFormTypeBase | eFormTypeSimple | import("@open-xamu-co/ui-common-enums").eFormTypeComplex>[]) => any) | undefined;
|
|
25
|
+
"onUpdate:invalid"?: ((args_0: iInvalidInput[]) => any) | undefined;
|
|
26
|
+
}> & import("vue").PublicProps & (typeof globalThis extends {
|
|
27
|
+
__VLS_PROPS_FALLBACK: infer P_1;
|
|
28
|
+
} ? P_1 : {});
|
|
29
|
+
expose: (exposed: {}) => void;
|
|
28
30
|
attrs: any;
|
|
29
31
|
slots: {
|
|
30
|
-
default
|
|
32
|
+
default?: (props: {}) => any;
|
|
31
33
|
};
|
|
32
34
|
emit: ((evt: "update:model-value", args_0: tFormInput<import("@open-xamu-co/ui-common-types").iFormValue | import("@open-xamu-co/ui-common-types").iFormValue[], import("@open-xamu-co/ui-common-enums").eFormTypeBase | eFormTypeSimple | import("@open-xamu-co/ui-common-enums").eFormTypeComplex>[]) => void) & ((evt: "update:invalid", args_0: iInvalidInput[]) => void);
|
|
33
35
|
}>) => import("vue").VNode & {
|
|
34
36
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
35
37
|
};
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
36
39
|
export default _default;
|
|
37
|
-
type __VLS_PrettifyLocal<T> = {
|
|
40
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
38
41
|
[K in keyof T]: T[K];
|
|
39
|
-
}
|
|
42
|
+
} : {
|
|
43
|
+
[K in keyof T as K]: T[K];
|
|
44
|
+
}) & {};
|
|
@@ -1,66 +1,8 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
2
|
import type { iForm } from "@open-xamu-co/ui-common-types";
|
|
3
|
-
import
|
|
4
|
-
declare const meta:
|
|
5
|
-
|
|
6
|
-
component: {
|
|
7
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./Stages.vue").iFormStages> & Readonly<{
|
|
8
|
-
"onInput-values"?: ((...args: any[]) => any) | undefined;
|
|
9
|
-
onSubmited?: ((...args: any[]) => any) | undefined;
|
|
10
|
-
"onSet-active-stage"?: ((...args: any[]) => any) | undefined;
|
|
11
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
-
"input-values": (...args: any[]) => void;
|
|
13
|
-
submited: (...args: any[]) => void;
|
|
14
|
-
"set-active-stage": (...args: any[]) => void;
|
|
15
|
-
}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
16
|
-
P: {};
|
|
17
|
-
B: {};
|
|
18
|
-
D: {};
|
|
19
|
-
C: {};
|
|
20
|
-
M: {};
|
|
21
|
-
Defaults: {};
|
|
22
|
-
}, Readonly<import("./Stages.vue").iFormStages> & Readonly<{
|
|
23
|
-
"onInput-values"?: ((...args: any[]) => any) | undefined;
|
|
24
|
-
onSubmited?: ((...args: any[]) => any) | undefined;
|
|
25
|
-
"onSet-active-stage"?: ((...args: any[]) => any) | undefined;
|
|
26
|
-
}>, {}, {}, {}, {}, {}>;
|
|
27
|
-
__isFragment?: never;
|
|
28
|
-
__isTeleport?: never;
|
|
29
|
-
__isSuspense?: never;
|
|
30
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("./Stages.vue").iFormStages> & Readonly<{
|
|
31
|
-
"onInput-values"?: ((...args: any[]) => any) | undefined;
|
|
32
|
-
onSubmited?: ((...args: any[]) => any) | undefined;
|
|
33
|
-
"onSet-active-stage"?: ((...args: any[]) => any) | undefined;
|
|
34
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
|
-
"input-values": (...args: any[]) => void;
|
|
36
|
-
submited: (...args: any[]) => void;
|
|
37
|
-
"set-active-stage": (...args: any[]) => void;
|
|
38
|
-
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
39
|
-
$slots: {
|
|
40
|
-
default?(_: {}): any;
|
|
41
|
-
disclaimers?(_: {}): any;
|
|
42
|
-
actions?(_: {}): any;
|
|
43
|
-
"primary-actions"?(_: {
|
|
44
|
-
activeStage: number;
|
|
45
|
-
stagesLength: number;
|
|
46
|
-
setActiveStage: (newValue: number) => void;
|
|
47
|
-
canSubmit: boolean;
|
|
48
|
-
submit: import("lodash").DebouncedFunc<(e: Event) => Promise<void>>;
|
|
49
|
-
}): any;
|
|
50
|
-
"secondary-actions-content"?(_: {
|
|
51
|
-
activeStage: number;
|
|
52
|
-
stagesLength: number;
|
|
53
|
-
setActiveStage: (newValue: number) => void;
|
|
54
|
-
canSubmit: boolean;
|
|
55
|
-
submit: import("lodash").DebouncedFunc<(e: Event) => Promise<void>>;
|
|
56
|
-
}): any;
|
|
57
|
-
"secondary-actions"?(_: {}): any;
|
|
58
|
-
};
|
|
59
|
-
});
|
|
60
|
-
args: {};
|
|
61
|
-
excludeStories: RegExp;
|
|
62
|
-
};
|
|
63
|
-
type Story = StoryObj<typeof StagesComponent>;
|
|
3
|
+
import FormStages from "./Stages.vue";
|
|
4
|
+
declare const meta: Meta<typeof FormStages>;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
64
6
|
export declare const Sample: Story;
|
|
65
7
|
export declare const stagesData: iForm[][];
|
|
66
8
|
export declare const WithStages: Story;
|
|
@@ -24,33 +24,33 @@ export interface iFormStages extends iUseThemeProps {
|
|
|
24
24
|
unwrap?: boolean;
|
|
25
25
|
}
|
|
26
26
|
declare function setActiveStage(newValue: number): void;
|
|
27
|
-
declare
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
27
|
+
declare var __VLS_14: {}, __VLS_30: {}, __VLS_32: {}, __VLS_34: {
|
|
28
|
+
activeStage: number;
|
|
29
|
+
stagesLength: number;
|
|
30
|
+
setActiveStage: typeof setActiveStage;
|
|
31
|
+
canSubmit: boolean;
|
|
32
|
+
submit: import("lodash").DebouncedFunc<(e: Event) => Promise<void>>;
|
|
33
|
+
}, __VLS_80: {
|
|
34
|
+
activeStage: number;
|
|
35
|
+
stagesLength: number;
|
|
36
|
+
setActiveStage: typeof setActiveStage;
|
|
37
|
+
canSubmit: boolean;
|
|
38
|
+
submit: import("lodash").DebouncedFunc<(e: Event) => Promise<void>>;
|
|
39
|
+
}, __VLS_82: {};
|
|
40
|
+
type __VLS_Slots = {} & {
|
|
41
|
+
default?: (props: typeof __VLS_14) => any;
|
|
42
|
+
} & {
|
|
43
|
+
disclaimers?: (props: typeof __VLS_30) => any;
|
|
44
|
+
} & {
|
|
45
|
+
actions?: (props: typeof __VLS_32) => any;
|
|
46
|
+
} & {
|
|
47
|
+
'primary-actions'?: (props: typeof __VLS_34) => any;
|
|
48
|
+
} & {
|
|
49
|
+
'secondary-actions-content'?: (props: typeof __VLS_80) => any;
|
|
50
|
+
} & {
|
|
51
|
+
'secondary-actions'?: (props: typeof __VLS_82) => any;
|
|
51
52
|
};
|
|
52
|
-
|
|
53
|
-
declare const __VLS_component: import("vue").DefineComponent<iFormStages, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
|
+
declare const __VLS_base: import("vue").DefineComponent<iFormStages, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
54
54
|
"input-values": (...args: any[]) => void;
|
|
55
55
|
submited: (...args: any[]) => void;
|
|
56
56
|
"set-active-stage": (...args: any[]) => void;
|
|
@@ -59,9 +59,10 @@ declare const __VLS_component: import("vue").DefineComponent<iFormStages, {}, {}
|
|
|
59
59
|
onSubmited?: ((...args: any[]) => any) | undefined;
|
|
60
60
|
"onSet-active-stage"?: ((...args: any[]) => any) | undefined;
|
|
61
61
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
62
|
-
declare const
|
|
62
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
63
|
+
declare const _default: typeof __VLS_export;
|
|
63
64
|
export default _default;
|
|
64
|
-
type
|
|
65
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
65
66
|
new (): {
|
|
66
67
|
$slots: S;
|
|
67
68
|
};
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
3
|
-
declare const meta:
|
|
4
|
-
|
|
5
|
-
component: Record<keyof typeof Fa, unknown>;
|
|
6
|
-
args: {
|
|
7
|
-
name: "cubes";
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
type Story = StoryObj<typeof Fa>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import IconFa from "./Fa.vue";
|
|
3
|
+
declare const meta: Meta<typeof IconFa>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
11
5
|
export declare const Sample: Story;
|
|
12
6
|
export declare const Large: Story;
|
|
13
7
|
export default meta;
|
|
@@ -11,5 +11,6 @@ interface iIconFaProps extends iUseModifiersProps {
|
|
|
11
11
|
forceRegular?: boolean;
|
|
12
12
|
size?: number;
|
|
13
13
|
}
|
|
14
|
-
declare const
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<iIconFaProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iIconFaProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
15
16
|
export default _default;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
3
|
-
declare const meta:
|
|
4
|
-
|
|
5
|
-
component: Record<keyof typeof Simple, unknown>;
|
|
6
|
-
args: {};
|
|
7
|
-
};
|
|
8
|
-
type Story = StoryObj<typeof Simple>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import IconSimple from "./Simple.vue";
|
|
3
|
+
declare const meta: Meta<typeof IconSimple>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
9
5
|
export declare const Sample: Story;
|
|
10
6
|
export default meta;
|
|
@@ -6,19 +6,15 @@ interface iIconSimpleProps extends iUseModifiersProps {
|
|
|
6
6
|
height?: number | string;
|
|
7
7
|
viewBox?: string;
|
|
8
8
|
}
|
|
9
|
-
declare
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
default?(_: {}): any;
|
|
13
|
-
};
|
|
14
|
-
refs: {};
|
|
15
|
-
rootEl: any;
|
|
9
|
+
declare var __VLS_1: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
16
12
|
};
|
|
17
|
-
|
|
18
|
-
declare const
|
|
19
|
-
declare const _default:
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<iIconSimpleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iIconSimpleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
20
16
|
export default _default;
|
|
21
|
-
type
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
18
|
new (): {
|
|
23
19
|
$slots: S;
|
|
24
20
|
};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
2
|
import InputColor from "./Color.vue";
|
|
3
|
-
declare const meta:
|
|
4
|
-
|
|
5
|
-
component: Record<keyof typeof InputColor, unknown>;
|
|
6
|
-
args: {};
|
|
7
|
-
};
|
|
8
|
-
type Story = StoryObj<typeof InputColor>;
|
|
3
|
+
declare const meta: Meta<typeof InputColor>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
9
5
|
export declare const Sample: Story;
|
|
10
6
|
export default meta;
|