@open-xamu-co/ui-components-vue 3.1.0-next.9 → 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 +468 -0
- package/dist/components/action/Button.stories.d.ts +8 -14
- package/dist/components/action/Button.vue.d.ts +11 -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 +6 -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 +13 -11
- package/dist/components/base/BrowserOnly.vue.d.ts +9 -12
- package/dist/components/base/ErrorBoundary.vue.d.ts +17 -15
- package/dist/components/base/Img.vue.d.ts +16 -56
- package/dist/components/base/Input.vue.d.ts +13 -15
- package/dist/components/base/Select.vue.d.ts +2 -1
- package/dist/components/base/Wrapper.vue.d.ts +12 -15
- package/dist/components/box/Action.stories.d.ts +4 -11
- package/dist/components/box/Action.vue.d.ts +3 -2
- 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 +4 -8
- 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 +11 -19
- package/dist/components/form/InputLoop.vue.d.ts +12 -7
- package/dist/components/form/InputNValues.vue.d.ts +13 -6
- package/dist/components/form/InputOptions.vue.d.ts +19 -23
- package/dist/components/form/Simple.stories.d.ts +9 -5
- package/dist/components/form/Simple.vue.d.ts +17 -11
- package/dist/components/form/Stages.stories.d.ts +8 -69
- 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 +4 -8
- package/dist/components/input/Color.vue.d.ts +11 -2
- package/dist/components/input/File.stories.d.ts +4 -10
- package/dist/components/input/File.vue.d.ts +6 -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 +9 -13
- 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 +19 -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 +5 -8
- 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 +29 -12
- package/dist/components/pagination/ContentTable.stories.d.ts +6 -8
- package/dist/components/pagination/ContentTable.vue.d.ts +62 -25
- package/dist/components/pagination/Simple.stories.d.ts +5 -8
- package/dist/components/pagination/Simple.vue.d.ts +12 -7
- package/dist/components/select/Choice.stories.d.ts +6 -11
- package/dist/components/select/Choice.vue.d.ts +2 -1
- package/dist/components/select/Filter.stories.d.ts +5 -11
- 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 +33 -21
- package/dist/components/table/HeadActions.vue.d.ts +31 -0
- package/dist/components/table/HeadContent.vue.d.ts +22 -0
- package/dist/components/table/Simple.stories.d.ts +9 -33
- package/dist/components/table/Simple.vue.d.ts +43 -28
- 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/composables/theme.d.ts +8 -1
- package/dist/composables/utils.d.ts +2 -1
- 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-CChhGSbE.cjs +1 -0
- package/dist/theme-DWMJmaKP.js +83 -0
- package/dist/theme.cjs +1 -0
- package/dist/theme.js +7 -1
- package/dist/types/plugin.d.ts +9 -1
- package/dist/types/props.d.ts +60 -17
- package/dist/types/storybook.d.ts +10 -0
- package/package.json +40 -31
- package/dist/components/table/Head.vue.d.ts +0 -25
- package/dist/index-BtJc7cX1.js +0 -4
- package/dist/index-DTG4ktcY.mjs +0 -6753
- package/dist/index.mjs +0 -45
- package/dist/plugin.mjs +0 -874
- package/dist/screens/DropdownWithToggle.stories.d.ts +0 -11
- package/dist/screens/DropdownWithToggle.vue.d.ts +0 -2
- package/dist/screens/FormWithFetch.stories.d.ts +0 -11
- package/dist/screens/FormWithFetch.vue.d.ts +0 -2
- package/dist/screens/ModalWithFormStages.stories.d.ts +0 -11
- package/dist/screens/ModalWithFormStages.vue.d.ts +0 -2
- package/dist/screens/ModalWithToggle.stories.d.ts +0 -11
- package/dist/screens/ModalWithToggle.vue.d.ts +0 -2
- package/dist/screens/PaginationContentWithTable.stories.d.ts +0 -11
- package/dist/screens/PaginationContentWithTable.vue.d.ts +0 -8
- package/dist/screens/TableWithNestedTable.stories.d.ts +0 -11
- package/dist/screens/TableWithNestedTable.vue.d.ts +0 -8
- package/dist/theme-DSVG59vT.js +0 -1
- package/dist/theme-DVpUQx-w.mjs +0 -78
- package/dist/theme.mjs +0 -7
|
@@ -4,33 +4,25 @@ interface iFormInputCountriesApi extends iUseThemeProps {
|
|
|
4
4
|
model: string[];
|
|
5
5
|
countries?: iCountry[];
|
|
6
6
|
states?: iState[];
|
|
7
|
+
/** Loading countries and states */
|
|
7
8
|
loading?: boolean;
|
|
8
9
|
errors?: unknown;
|
|
9
10
|
refresh?: (...args: any[]) => any;
|
|
10
11
|
}
|
|
11
|
-
declare
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
content: import("../../types/countries").iCity[];
|
|
18
|
-
refresh: (opts?: any) => Promise<void>;
|
|
19
|
-
loading: boolean;
|
|
20
|
-
errors: unknown;
|
|
21
|
-
};
|
|
22
|
-
}): any;
|
|
23
|
-
};
|
|
24
|
-
refs: {};
|
|
25
|
-
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;
|
|
26
18
|
};
|
|
27
|
-
|
|
28
|
-
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<{}>, {
|
|
29
20
|
states: iState[];
|
|
30
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
-
declare const
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
32
24
|
export default _default;
|
|
33
|
-
type
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
34
26
|
new (): {
|
|
35
27
|
$slots: S;
|
|
36
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
|
+
}) & {};
|
|
@@ -5,20 +5,27 @@ export interface iFormInputNValues<Ti> {
|
|
|
5
5
|
content?: boolean;
|
|
6
6
|
loading?: boolean;
|
|
7
7
|
errors?: unknown;
|
|
8
|
+
/** Loader label */
|
|
9
|
+
label?: string;
|
|
8
10
|
refresh?: (...args: any[]) => any;
|
|
9
11
|
}
|
|
10
|
-
declare const
|
|
11
|
-
props: __VLS_PrettifyLocal<
|
|
12
|
-
|
|
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;
|
|
13
17
|
attrs: any;
|
|
14
18
|
slots: {
|
|
15
|
-
default
|
|
19
|
+
default?: (props: {}) => any;
|
|
16
20
|
};
|
|
17
21
|
emit: {};
|
|
18
22
|
}>) => import("vue").VNode & {
|
|
19
23
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
24
|
};
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
21
26
|
export default _default;
|
|
22
|
-
type __VLS_PrettifyLocal<T> = {
|
|
27
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
23
28
|
[K in keyof T]: T[K];
|
|
24
|
-
}
|
|
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,7 +1,11 @@
|
|
|
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
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const Sample: Story;
|
|
7
|
+
export declare const WithInputs: Story;
|
|
8
|
+
export declare const WithLocationField: Story;
|
|
9
|
+
export declare const WithPhoneField: Story;
|
|
10
|
+
export declare const Make: Story;
|
|
7
11
|
export default meta;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { iInvalidInput } from "@open-xamu-co/ui-common-types";
|
|
2
2
|
import type { tFormInput } from "@open-xamu-co/ui-common-types";
|
|
3
|
+
import { eFormTypeSimple } from "@open-xamu-co/ui-common-enums";
|
|
3
4
|
import type { iUseThemeProps } from "../../types/props";
|
|
4
5
|
export interface iFormSimple<P extends any[]> extends iUseThemeProps {
|
|
5
6
|
title?: string;
|
|
@@ -14,25 +15,30 @@ export interface iFormSimple<P extends any[]> extends iUseThemeProps {
|
|
|
14
15
|
/**
|
|
15
16
|
* Make model
|
|
16
17
|
*/
|
|
17
|
-
make?: (...args: P) => tFormInput[];
|
|
18
|
+
make?: ((...args: P) => tFormInput[]) | ((...args: P) => Promise<tFormInput[]>);
|
|
18
19
|
/** Make all inputs read only by disabling them */
|
|
19
20
|
readonly?: boolean;
|
|
20
21
|
}
|
|
21
|
-
declare const
|
|
22
|
-
props: __VLS_PrettifyLocal<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} & import("vue").
|
|
26
|
-
|
|
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;
|
|
27
30
|
attrs: any;
|
|
28
31
|
slots: {
|
|
29
|
-
default
|
|
32
|
+
default?: (props: {}) => any;
|
|
30
33
|
};
|
|
31
|
-
emit: (
|
|
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);
|
|
32
35
|
}>) => import("vue").VNode & {
|
|
33
36
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
34
37
|
};
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
35
39
|
export default _default;
|
|
36
|
-
type __VLS_PrettifyLocal<T> = {
|
|
40
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
37
41
|
[K in keyof T]: T[K];
|
|
38
|
-
}
|
|
42
|
+
} : {
|
|
43
|
+
[K in keyof T as K]: T[K];
|
|
44
|
+
}) & {};
|
|
@@ -1,71 +1,10 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import type { iForm
|
|
3
|
-
import
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import type { iForm } from "@open-xamu-co/ui-common-types";
|
|
3
|
+
import FormStages from "./Stages.vue";
|
|
4
|
+
declare const meta: Meta<typeof FormStages>;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Sample: Story;
|
|
4
7
|
export declare const stagesData: iForm[][];
|
|
5
|
-
declare
|
|
6
|
-
declare const
|
|
7
|
-
title: string;
|
|
8
|
-
component: {
|
|
9
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./Stages.vue").iFormStages> & Readonly<{
|
|
10
|
-
"onInput-values"?: ((...args: any[]) => any) | undefined;
|
|
11
|
-
onSubmited?: ((...args: any[]) => any) | undefined;
|
|
12
|
-
"onSet-active-stage"?: ((...args: any[]) => any) | undefined;
|
|
13
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
-
"input-values": (...args: any[]) => void;
|
|
15
|
-
submited: (...args: any[]) => void;
|
|
16
|
-
"set-active-stage": (...args: any[]) => void;
|
|
17
|
-
}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
18
|
-
P: {};
|
|
19
|
-
B: {};
|
|
20
|
-
D: {};
|
|
21
|
-
C: {};
|
|
22
|
-
M: {};
|
|
23
|
-
Defaults: {};
|
|
24
|
-
}, Readonly<import("./Stages.vue").iFormStages> & Readonly<{
|
|
25
|
-
"onInput-values"?: ((...args: any[]) => any) | undefined;
|
|
26
|
-
onSubmited?: ((...args: any[]) => any) | undefined;
|
|
27
|
-
"onSet-active-stage"?: ((...args: any[]) => any) | undefined;
|
|
28
|
-
}>, {}, {}, {}, {}, {}>;
|
|
29
|
-
__isFragment?: never;
|
|
30
|
-
__isTeleport?: never;
|
|
31
|
-
__isSuspense?: never;
|
|
32
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("./Stages.vue").iFormStages> & Readonly<{
|
|
33
|
-
"onInput-values"?: ((...args: any[]) => any) | undefined;
|
|
34
|
-
onSubmited?: ((...args: any[]) => any) | undefined;
|
|
35
|
-
"onSet-active-stage"?: ((...args: any[]) => any) | undefined;
|
|
36
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
-
"input-values": (...args: any[]) => void;
|
|
38
|
-
submited: (...args: any[]) => void;
|
|
39
|
-
"set-active-stage": (...args: any[]) => void;
|
|
40
|
-
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
41
|
-
$slots: {
|
|
42
|
-
default?(_: {}): any;
|
|
43
|
-
disclaimers?(_: {}): any;
|
|
44
|
-
actions?(_: {}): any;
|
|
45
|
-
"primary-actions"?(_: {
|
|
46
|
-
activeStage: number;
|
|
47
|
-
stagesLength: number;
|
|
48
|
-
setActiveStage: (newValue: number) => void;
|
|
49
|
-
canSubmit: boolean;
|
|
50
|
-
submit: import("lodash").DebouncedFunc<(e: Event) => Promise<void>>;
|
|
51
|
-
}): any;
|
|
52
|
-
"secondary-actions-content"?(_: {
|
|
53
|
-
activeStage: number;
|
|
54
|
-
stagesLength: number;
|
|
55
|
-
setActiveStage: (newValue: number) => void;
|
|
56
|
-
canSubmit: boolean;
|
|
57
|
-
submit: import("lodash").DebouncedFunc<(e: Event) => Promise<void>>;
|
|
58
|
-
}): any;
|
|
59
|
-
"secondary-actions"?(_: {}): any;
|
|
60
|
-
};
|
|
61
|
-
});
|
|
62
|
-
args: {
|
|
63
|
-
stages: iForm[][];
|
|
64
|
-
submitFn: typeof submitFn;
|
|
65
|
-
};
|
|
66
|
-
excludeStories: RegExp;
|
|
67
|
-
};
|
|
68
|
-
type Story = StoryObj<typeof StagesComponent>;
|
|
69
|
-
export declare const Stages: Story;
|
|
70
|
-
export declare const StagesWithInvalidStage: Story;
|
|
8
|
+
export declare const WithStages: Story;
|
|
9
|
+
export declare const WithInvalidStage: Story;
|
|
71
10
|
export default meta;
|
|
@@ -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";
|
|
2
|
-
import
|
|
3
|
-
declare const meta:
|
|
4
|
-
|
|
5
|
-
component: Record<keyof typeof Color, unknown>;
|
|
6
|
-
args: {};
|
|
7
|
-
};
|
|
8
|
-
type Story = StoryObj<typeof Color>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import InputColor from "./Color.vue";
|
|
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;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import type { iUseModifiersProps, iUseStateProps, iUseThemeProps, iInputProps } from "../../types/props";
|
|
2
|
-
interface
|
|
2
|
+
interface iInputColorProps extends iInputProps, iUseModifiersProps, iUseStateProps, iUseThemeProps {
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
*/
|
|
6
|
+
modelValue?: number | string;
|
|
3
7
|
}
|
|
4
|
-
declare const
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<iInputColorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:model-value": (...args: any[]) => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<iInputColorProps> & Readonly<{
|
|
11
|
+
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
5
14
|
export default _default;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
3
|
-
declare const meta:
|
|
4
|
-
|
|
5
|
-
component: Record<keyof typeof File, unknown>;
|
|
6
|
-
args: {
|
|
7
|
-
modelValue: never[];
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
type Story = StoryObj<typeof File>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import InputFile from "./File.vue";
|
|
3
|
+
declare const meta: Meta<typeof InputFile>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
11
5
|
export declare const Sample: Story;
|
|
12
6
|
export default meta;
|
|
@@ -13,11 +13,16 @@ interface iInputFileProps extends iInputProps, iUseModifiersProps, iUseStateProp
|
|
|
13
13
|
* default: all image types
|
|
14
14
|
*/
|
|
15
15
|
accept?: string[];
|
|
16
|
+
/**
|
|
17
|
+
* Capture files directly from camera
|
|
18
|
+
*/
|
|
19
|
+
capture?: "environment" | "user";
|
|
16
20
|
modelValue: File[];
|
|
17
21
|
}
|
|
18
|
-
declare const
|
|
22
|
+
declare const __VLS_export: import("vue").DefineComponent<iInputFileProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
23
|
"update:model-value": (...args: any[]) => void;
|
|
20
24
|
}, string, import("vue").PublicProps, Readonly<iInputFileProps> & Readonly<{
|
|
21
25
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
22
26
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
23
28
|
export default _default;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
3
|
-
declare const meta:
|
|
4
|
-
|
|
5
|
-
component: Record<keyof typeof Text, unknown>;
|
|
6
|
-
args: {
|
|
7
|
-
icon: "cubes";
|
|
8
|
-
placeholder: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
type Story = StoryObj<typeof Text>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import InputText from "./Text.vue";
|
|
3
|
+
declare const meta: Meta<typeof InputText>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
12
5
|
export declare const Sample: Story;
|
|
13
6
|
export default meta;
|
|
@@ -20,9 +20,10 @@ interface iInputTextProps extends iInputProps, iUseModifiersProps, iUseStateProp
|
|
|
20
20
|
*/
|
|
21
21
|
modelValue?: number | string;
|
|
22
22
|
}
|
|
23
|
-
declare const
|
|
23
|
+
declare const __VLS_export: import("vue").DefineComponent<iInputTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
24
|
"update:model-value": (...args: any[]) => void;
|
|
25
25
|
}, string, import("vue").PublicProps, Readonly<iInputTextProps> & Readonly<{
|
|
26
26
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
27
27
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
28
29
|
export default _default;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
3
|
-
declare const meta:
|
|
4
|
-
|
|
5
|
-
component: Record<keyof typeof Toggle, unknown>;
|
|
6
|
-
args: {
|
|
7
|
-
label: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
type Story = StoryObj<typeof Toggle>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import InputToggle from "./Toggle.vue";
|
|
3
|
+
declare const meta: Meta<typeof InputToggle>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
11
5
|
export declare const Sample: Story;
|
|
12
6
|
export default meta;
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
import type { iUseModifiersProps, iUseStateProps, iUseThemeProps, iInputProps } from "../../types/props";
|
|
2
|
-
interface iInputToggleProps extends iInputProps, iUseModifiersProps, iUseStateProps, iUseThemeProps {
|
|
1
|
+
import type { iUseModifiersProps, iUseStateProps, iUseThemeProps, iInputProps, iUseThemeTooltipProps } from "../../types/props";
|
|
2
|
+
interface iInputToggleProps extends iInputProps, iUseModifiersProps, iUseStateProps, iUseThemeProps, iUseThemeTooltipProps {
|
|
3
3
|
type?: "checkbox" | "radio" | "switch";
|
|
4
4
|
label?: string;
|
|
5
5
|
showPlaceholder?: boolean;
|
|
6
6
|
fullWidth?: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
default?(_: {}): any;
|
|
12
|
-
};
|
|
13
|
-
refs: {};
|
|
14
|
-
rootEl: any;
|
|
8
|
+
declare var __VLS_7: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_7) => any;
|
|
15
11
|
};
|
|
16
|
-
|
|
17
|
-
declare const
|
|
18
|
-
declare const _default:
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<iInputToggleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iInputToggleProps> & 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
|
};
|