@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
|
@@ -5,9 +5,10 @@ interface iInputColorProps extends iInputProps, iUseModifiersProps, iUseStatePro
|
|
|
5
5
|
*/
|
|
6
6
|
modelValue?: number | string;
|
|
7
7
|
}
|
|
8
|
-
declare const
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<iInputColorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
"update:model-value": (...args: any[]) => void;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<iInputColorProps> & Readonly<{
|
|
11
11
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
12
12
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
13
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;
|
|
@@ -19,9 +19,10 @@ interface iInputFileProps extends iInputProps, iUseModifiersProps, iUseStateProp
|
|
|
19
19
|
capture?: "environment" | "user";
|
|
20
20
|
modelValue: File[];
|
|
21
21
|
}
|
|
22
|
-
declare const
|
|
22
|
+
declare const __VLS_export: import("vue").DefineComponent<iInputFileProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
23
|
"update:model-value": (...args: any[]) => void;
|
|
24
24
|
}, string, import("vue").PublicProps, Readonly<iInputFileProps> & Readonly<{
|
|
25
25
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
26
26
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
27
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;
|
|
@@ -5,19 +5,15 @@ interface iInputToggleProps extends iInputProps, iUseModifiersProps, iUseStatePr
|
|
|
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
|
};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
3
|
-
declare const meta:
|
|
4
|
-
|
|
5
|
-
component: Record<keyof typeof Content, unknown>;
|
|
6
|
-
args: {};
|
|
7
|
-
};
|
|
8
|
-
type Story = StoryObj<typeof Content>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import LoaderContent from "./Content.vue";
|
|
3
|
+
declare const meta: Meta<typeof LoaderContent>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
9
5
|
export declare const Sample: Story;
|
|
10
6
|
export default meta;
|
|
@@ -41,19 +41,15 @@ interface iLoaderContentProps extends iUseThemeProps {
|
|
|
41
41
|
el?: vComponent | string;
|
|
42
42
|
loaderClasses?: tProps<string>;
|
|
43
43
|
}
|
|
44
|
-
declare
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
default?(_: {}): any;
|
|
48
|
-
};
|
|
49
|
-
refs: {};
|
|
50
|
-
rootEl: any;
|
|
44
|
+
declare var __VLS_66: {};
|
|
45
|
+
type __VLS_Slots = {} & {
|
|
46
|
+
default?: (props: typeof __VLS_66) => any;
|
|
51
47
|
};
|
|
52
|
-
|
|
53
|
-
declare const
|
|
54
|
-
declare const _default:
|
|
48
|
+
declare const __VLS_base: import("vue").DefineComponent<iLoaderContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iLoaderContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
49
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
50
|
+
declare const _default: typeof __VLS_export;
|
|
55
51
|
export default _default;
|
|
56
|
-
type
|
|
52
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
57
53
|
new (): {
|
|
58
54
|
$slots: S;
|
|
59
55
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
args: {};
|
|
7
|
-
};
|
|
8
|
-
type Story = StoryObj<typeof ContentFetch>;
|
|
1
|
+
import type { StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import type { GenericMeta } from "../../types/storybook";
|
|
3
|
+
import LoaderContentFetch from "./ContentFetch.vue";
|
|
4
|
+
declare const meta: GenericMeta<typeof LoaderContentFetch>;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
9
6
|
export declare const Sample: Story;
|
|
10
7
|
export default meta;
|
|
@@ -42,28 +42,33 @@ export interface iLoaderContentFetchProps<Ti, Pi extends any[]> extends iUseThem
|
|
|
42
42
|
*/
|
|
43
43
|
client?: boolean;
|
|
44
44
|
}
|
|
45
|
-
declare const
|
|
46
|
-
props: __VLS_PrettifyLocal<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} & import("vue").
|
|
51
|
-
|
|
45
|
+
declare const __VLS_export: <T, 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<{
|
|
46
|
+
props: __VLS_PrettifyLocal<iLoaderContentFetchProps<T, P> & {
|
|
47
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
48
|
+
"onHas-content"?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
onHydrate?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
}> & import("vue").PublicProps & (typeof globalThis extends {
|
|
51
|
+
__VLS_PROPS_FALLBACK: infer P_1;
|
|
52
|
+
} ? P_1 : {});
|
|
53
|
+
expose: (exposed: {}) => void;
|
|
52
54
|
attrs: any;
|
|
53
55
|
slots: {
|
|
54
|
-
default
|
|
56
|
+
default?: (props: {
|
|
55
57
|
content: NonNullable<T>;
|
|
56
58
|
refresh: (opts?: any) => Promise<void>;
|
|
57
59
|
loading: boolean;
|
|
58
60
|
errors: unknown;
|
|
59
61
|
hydrate: (newContent: T | null, newErrors?: unknown) => void;
|
|
60
|
-
})
|
|
62
|
+
}) => any;
|
|
61
63
|
};
|
|
62
64
|
emit: (event: "refresh" | "has-content" | "hydrate", ...args: any[]) => void;
|
|
63
65
|
}>) => import("vue").VNode & {
|
|
64
66
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
65
67
|
};
|
|
68
|
+
declare const _default: typeof __VLS_export;
|
|
66
69
|
export default _default;
|
|
67
|
-
type __VLS_PrettifyLocal<T> = {
|
|
70
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
68
71
|
[K in keyof T]: T[K];
|
|
69
|
-
}
|
|
72
|
+
} : {
|
|
73
|
+
[K in keyof T as K]: T[K];
|
|
74
|
+
}) & {};
|
|
@@ -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 LoaderSimple from "./Simple.vue";
|
|
3
|
+
declare const meta: Meta<typeof LoaderSimple>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
9
5
|
export declare const Sample: Story;
|
|
10
6
|
export default meta;
|
|
@@ -12,19 +12,15 @@ interface iLoaderSimpleProps extends iUseThemeProps {
|
|
|
12
12
|
*/
|
|
13
13
|
speed?: number;
|
|
14
14
|
}
|
|
15
|
-
declare
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
default?(_: {}): any;
|
|
19
|
-
};
|
|
20
|
-
refs: {};
|
|
21
|
-
rootEl: HTMLSpanElement;
|
|
15
|
+
declare var __VLS_1: {};
|
|
16
|
+
type __VLS_Slots = {} & {
|
|
17
|
+
default?: (props: typeof __VLS_1) => any;
|
|
22
18
|
};
|
|
23
|
-
|
|
24
|
-
declare const
|
|
25
|
-
declare const _default:
|
|
19
|
+
declare const __VLS_base: import("vue").DefineComponent<iLoaderSimpleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iLoaderSimpleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
26
22
|
export default _default;
|
|
27
|
-
type
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
24
|
new (): {
|
|
29
25
|
$slots: S;
|
|
30
26
|
};
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
2
|
import ModalSimple from "./Simple.vue";
|
|
3
|
-
declare const meta:
|
|
4
|
-
|
|
5
|
-
component: Record<keyof typeof ModalSimple, unknown>;
|
|
6
|
-
args: {
|
|
7
|
-
title: string;
|
|
8
|
-
subtitle: string;
|
|
9
|
-
class: string;
|
|
10
|
-
invertTheme: true;
|
|
11
|
-
saveButton: {
|
|
12
|
-
title: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
type Story = StoryObj<typeof ModalSimple>;
|
|
3
|
+
declare const meta: Meta<typeof ModalSimple>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
17
5
|
export declare const Sample: Story;
|
|
18
6
|
export declare const WithFormStages: Story;
|
|
19
7
|
export default meta;
|
|
@@ -4,58 +4,57 @@ import type { iModalProps } from "../../types/props";
|
|
|
4
4
|
* @param success whether the modal action was successfull or not
|
|
5
5
|
*/
|
|
6
6
|
declare function toggleModal(success?: boolean): Promise<boolean | undefined>;
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
7
|
+
declare var __VLS_8: {
|
|
8
|
+
toggleModal: typeof toggleModal;
|
|
9
|
+
model: boolean;
|
|
10
|
+
}, __VLS_16: {
|
|
11
|
+
toggleModal: typeof toggleModal;
|
|
12
|
+
model: boolean;
|
|
13
|
+
modalRef: HTMLDialogElement | undefined;
|
|
14
|
+
invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
|
|
15
|
+
}, __VLS_31: {
|
|
16
|
+
toggleModal: typeof toggleModal;
|
|
17
|
+
model: boolean;
|
|
18
|
+
modalRef: HTMLDialogElement | undefined;
|
|
19
|
+
invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
|
|
20
|
+
}, __VLS_33: {
|
|
21
|
+
toggleModal: typeof toggleModal;
|
|
22
|
+
model: boolean;
|
|
23
|
+
modalRef: HTMLDialogElement | undefined;
|
|
24
|
+
invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
|
|
25
|
+
}, __VLS_35: {
|
|
26
|
+
toggleModal: typeof toggleModal;
|
|
27
|
+
model: boolean;
|
|
28
|
+
modalRef: HTMLDialogElement | undefined;
|
|
29
|
+
invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
|
|
30
|
+
}, __VLS_37: {
|
|
31
|
+
toggleModal: typeof toggleModal;
|
|
32
|
+
model: boolean;
|
|
33
|
+
modalRef: HTMLDialogElement | undefined;
|
|
34
|
+
invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
|
|
35
|
+
save: (e: Event) => void;
|
|
36
|
+
}, __VLS_85: {
|
|
37
|
+
toggleModal: typeof toggleModal;
|
|
38
|
+
model: boolean;
|
|
39
|
+
modalRef: HTMLDialogElement | undefined;
|
|
40
|
+
invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
|
|
41
|
+
};
|
|
42
|
+
type __VLS_Slots = {} & {
|
|
43
|
+
toggle?: (props: typeof __VLS_8) => any;
|
|
44
|
+
} & {
|
|
45
|
+
header?: (props: typeof __VLS_16) => any;
|
|
46
|
+
} & {
|
|
47
|
+
content?: (props: typeof __VLS_31) => any;
|
|
48
|
+
} & {
|
|
49
|
+
default?: (props: typeof __VLS_33) => any;
|
|
50
|
+
} & {
|
|
51
|
+
footer?: (props: typeof __VLS_35) => any;
|
|
52
|
+
} & {
|
|
53
|
+
'footer-actions'?: (props: typeof __VLS_37) => any;
|
|
54
|
+
} & {
|
|
55
|
+
default?: (props: typeof __VLS_85) => any;
|
|
56
56
|
};
|
|
57
|
-
|
|
58
|
-
declare const __VLS_component: import("vue").DefineComponent<iModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
57
|
+
declare const __VLS_base: import("vue").DefineComponent<iModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
59
58
|
close: (...args: any[]) => void;
|
|
60
59
|
save: (...args: any[]) => void;
|
|
61
60
|
"update:model-value": (...args: any[]) => void;
|
|
@@ -66,9 +65,10 @@ declare const __VLS_component: import("vue").DefineComponent<iModalProps, {}, {}
|
|
|
66
65
|
}>, {
|
|
67
66
|
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>;
|
|
68
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
69
|
-
declare const
|
|
68
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
69
|
+
declare const _default: typeof __VLS_export;
|
|
70
70
|
export default _default;
|
|
71
|
-
type
|
|
71
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
72
72
|
new (): {
|
|
73
73
|
$slots: S;
|
|
74
74
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
1
|
+
import type { StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import type { GenericMeta } from "../../types/storybook";
|
|
2
3
|
import Content from "./Content.vue";
|
|
3
|
-
declare const meta:
|
|
4
|
-
|
|
5
|
-
component: Record<keyof typeof Content, unknown>;
|
|
6
|
-
args: {};
|
|
7
|
-
};
|
|
8
|
-
type Story = StoryObj<typeof Content>;
|
|
4
|
+
declare const meta: GenericMeta<typeof Content>;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
9
6
|
export declare const Sample: Story;
|
|
10
7
|
export default meta;
|
|
@@ -62,27 +62,32 @@ export interface iPCProps<Ti, Ci extends string | number = string, Ri = never> e
|
|
|
62
62
|
*/
|
|
63
63
|
paginationClass?: string | string[] | Record<string, boolean>;
|
|
64
64
|
}
|
|
65
|
-
declare const
|
|
66
|
-
props: __VLS_PrettifyLocal<
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
} & import("vue").
|
|
70
|
-
|
|
65
|
+
declare const __VLS_export: <T, C extends string | number = string, R = never>(__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<{
|
|
66
|
+
props: __VLS_PrettifyLocal<iPCProps<T, C, R> & {
|
|
67
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
"onHas-content"?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
}> & import("vue").PublicProps & (typeof globalThis extends {
|
|
70
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
71
|
+
} ? P : {});
|
|
72
|
+
expose: (exposed: {}) => void;
|
|
71
73
|
attrs: any;
|
|
72
74
|
slots: {
|
|
73
|
-
default
|
|
75
|
+
default?: (props: {
|
|
74
76
|
hydrateNodes: ((newContent: T[] | null, newErrors?: unknown) => void) | undefined;
|
|
75
77
|
content: NoInfer<T>[];
|
|
76
78
|
pagination: iPagination;
|
|
77
79
|
currentPage: iPage<T, C>;
|
|
78
80
|
refresh: (opts?: any) => Promise<void>;
|
|
79
|
-
})
|
|
81
|
+
}) => any;
|
|
80
82
|
};
|
|
81
83
|
emit: (event: "refresh" | "has-content", ...args: any[]) => void;
|
|
82
84
|
}>) => import("vue").VNode & {
|
|
83
85
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
84
86
|
};
|
|
87
|
+
declare const _default: typeof __VLS_export;
|
|
85
88
|
export default _default;
|
|
86
|
-
type __VLS_PrettifyLocal<T> = {
|
|
89
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
87
90
|
[K in keyof T]: T[K];
|
|
88
|
-
}
|
|
91
|
+
} : {
|
|
92
|
+
[K in keyof T as K]: T[K];
|
|
93
|
+
}) & {};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
1
|
+
import type { StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import type { GenericMeta } from "../../types/storybook";
|
|
2
3
|
import PaginationContentTable from "./ContentTable.vue";
|
|
3
|
-
declare const meta:
|
|
4
|
-
|
|
5
|
-
component: Record<keyof typeof PaginationContentTable, unknown>;
|
|
6
|
-
args: {};
|
|
7
|
-
};
|
|
8
|
-
type Story = StoryObj<typeof PaginationContentTable>;
|
|
4
|
+
declare const meta: GenericMeta<typeof PaginationContentTable>;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
9
6
|
export declare const Sample: Story;
|
|
10
7
|
export declare const Data: Story;
|
|
11
8
|
export default meta;
|
|
@@ -40,26 +40,30 @@ export interface iPaginationContentTableProps<Ti extends Record<string, any>, TM
|
|
|
40
40
|
*/
|
|
41
41
|
omitRefresh?: boolean;
|
|
42
42
|
}
|
|
43
|
-
declare const
|
|
44
|
-
props: __VLS_PrettifyLocal<
|
|
45
|
-
|
|
46
|
-
} & import("vue").
|
|
47
|
-
|
|
43
|
+
declare const __VLS_export: <T extends Record<string, any>, TM extends Record<string, any> = 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<{
|
|
44
|
+
props: __VLS_PrettifyLocal<iPaginationContentTableProps<T, TM> & {
|
|
45
|
+
"onCreate-node-and-refresh"?: ((...args: any[]) => any) | undefined;
|
|
46
|
+
}> & import("vue").PublicProps & (typeof globalThis extends {
|
|
47
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
48
|
+
} ? P : {});
|
|
49
|
+
expose: (exposed: {}) => void;
|
|
48
50
|
attrs: any;
|
|
49
51
|
slots: {
|
|
50
|
-
default
|
|
52
|
+
default?: (props: {
|
|
51
53
|
refreshData: () => void;
|
|
52
54
|
hasContent: boolean | undefined;
|
|
53
55
|
hydrateData: ((newContent: T[] | null, newErrors?: unknown) => void) | undefined;
|
|
54
56
|
createNodeAndRefresh: () => Promise<import("@open-xamu-co/ui-common-types").iNodeFnResponse<NoInfer<T>>>;
|
|
55
|
-
})
|
|
56
|
-
|
|
57
|
+
}) => any;
|
|
58
|
+
} & {
|
|
59
|
+
headActions?: (props: {
|
|
57
60
|
refreshData: () => void;
|
|
58
61
|
hasContent: false | undefined;
|
|
59
62
|
hydrateData: ((newContent: T[] | null, newErrors?: unknown) => void) | undefined;
|
|
60
63
|
createNodeAndRefresh: () => Promise<import("@open-xamu-co/ui-common-types").iNodeFnResponse<NoInfer<T>>>;
|
|
61
|
-
})
|
|
62
|
-
|
|
64
|
+
}) => any;
|
|
65
|
+
} & {
|
|
66
|
+
headActions?: (props: {
|
|
63
67
|
refreshData: () => void;
|
|
64
68
|
hasContent: true;
|
|
65
69
|
hydrateData: ((newContent: T[] | null, newErrors?: unknown) => void) | undefined;
|
|
@@ -70,8 +74,9 @@ declare const _default: <T extends Record<string, any>, TM extends Record<string
|
|
|
70
74
|
cloneNodeAndRefresh: iNodeFn<NoInfer<T>, [NoInfer<T>, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
71
75
|
deleteNodeAndRefresh: iNodeFn<NoInfer<T>, [NoInfer<T>, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
72
76
|
deleteNodesAndRefresh: (nodes?: NoInfer<T>[] | undefined) => Promise<void>;
|
|
73
|
-
})
|
|
74
|
-
|
|
77
|
+
}) => any;
|
|
78
|
+
} & {
|
|
79
|
+
tableChildren?: (props: {
|
|
75
80
|
refreshData: () => void;
|
|
76
81
|
hasContent: boolean | undefined;
|
|
77
82
|
hydrateData: ((newContent: T[] | null, newErrors?: unknown) => void) | undefined;
|
|
@@ -85,13 +90,16 @@ declare const _default: <T extends Record<string, any>, TM extends Record<string
|
|
|
85
90
|
createNodeChildrenAndRefresh: iNodeFn<NoInfer<T>>;
|
|
86
91
|
show: boolean;
|
|
87
92
|
hydrateParentNode: (newNode: NoInfer<T> | null, _newErrors?: unknown) => void;
|
|
88
|
-
})
|
|
93
|
+
}) => any;
|
|
89
94
|
};
|
|
90
95
|
emit: (event: "create-node-and-refresh", ...args: any[]) => void;
|
|
91
96
|
}>) => import("vue").VNode & {
|
|
92
97
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
93
98
|
};
|
|
99
|
+
declare const _default: typeof __VLS_export;
|
|
94
100
|
export default _default;
|
|
95
|
-
type __VLS_PrettifyLocal<T> = {
|
|
101
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
96
102
|
[K in keyof T]: T[K];
|
|
97
|
-
}
|
|
103
|
+
} : {
|
|
104
|
+
[K in keyof T as K]: T[K];
|
|
105
|
+
}) & {};
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
args: {
|
|
7
|
-
modelValue: {
|
|
8
|
-
at: number;
|
|
9
|
-
first: number;
|
|
10
|
-
};
|
|
11
|
-
currentPage: {
|
|
12
|
-
edges: never[];
|
|
13
|
-
pageInfo: {
|
|
14
|
-
hasNextPage: false;
|
|
15
|
-
hasPreviousPage: false;
|
|
16
|
-
};
|
|
17
|
-
totalCount: number;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
type Story = StoryObj<typeof Simple>;
|
|
1
|
+
import type { StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import type { GenericMeta } from "../../types/storybook";
|
|
3
|
+
import PaginationSimple from "./Simple.vue";
|
|
4
|
+
declare const meta: GenericMeta<typeof PaginationSimple>;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
22
6
|
export declare const Sample: Story;
|
|
23
7
|
export default meta;
|