@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
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
title: string;
|
|
6
|
-
component: Record<keyof typeof Filter, unknown>;
|
|
7
|
-
args: {
|
|
8
|
-
options: iSelectOption[];
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
type Story = StoryObj<typeof Filter>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import SelectFilter from "./Filter.vue";
|
|
3
|
+
declare const meta: Meta<typeof SelectFilter>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
12
5
|
export declare const Sample: Story;
|
|
6
|
+
export declare const WithOptions: Story;
|
|
13
7
|
export default meta;
|
|
@@ -10,9 +10,10 @@ interface iSelectFilterProps extends iSelectProps, iUseModifiersProps, iUseState
|
|
|
10
10
|
*/
|
|
11
11
|
modelValue?: string | number;
|
|
12
12
|
}
|
|
13
|
-
declare const
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<iSelectFilterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
14
|
"update:model-value": (...args: any[]) => void;
|
|
15
15
|
}, string, import("vue").PublicProps, Readonly<iSelectFilterProps> & Readonly<{
|
|
16
16
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
17
17
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
18
19
|
export default _default;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
title: string;
|
|
6
|
-
component: Record<keyof typeof Simple, unknown>;
|
|
7
|
-
args: {
|
|
8
|
-
options: iSelectOption[];
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
type Story = StoryObj<typeof Simple>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import SelectSimple from "./Simple.vue";
|
|
3
|
+
declare const meta: Meta<typeof SelectSimple>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
12
5
|
export declare const Sample: Story;
|
|
13
6
|
export default meta;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { iUseModifiersProps, iUseStateProps, iUseThemeProps, iSelectProps } from "../../types/props";
|
|
2
2
|
interface iSelectSimpleProps extends iSelectProps, iUseModifiersProps, iUseStateProps, iUseThemeProps {
|
|
3
3
|
}
|
|
4
|
-
declare const
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<iSelectSimpleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iSelectSimpleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
5
6
|
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 SliderSimple from "./Simple.vue";
|
|
3
|
+
declare const meta: Meta<typeof SliderSimple>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
9
5
|
export declare const Sample: Story;
|
|
10
6
|
export default meta;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { iUseThemeProps } from "../../types/props";
|
|
2
|
+
export interface iSliderProps extends iUseThemeProps {
|
|
3
|
+
/**
|
|
4
|
+
* Show controls
|
|
5
|
+
*/
|
|
6
|
+
controls?: boolean | "full";
|
|
7
|
+
/**
|
|
8
|
+
* Auto-animate
|
|
9
|
+
*/
|
|
10
|
+
animate?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Transition duration in ms
|
|
13
|
+
* @values 100 - 1000
|
|
14
|
+
*/
|
|
15
|
+
transitionDuration?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Interval duration in ms
|
|
18
|
+
*/
|
|
19
|
+
intervalDuration?: number;
|
|
20
|
+
visibleSlides?: number;
|
|
21
|
+
/**
|
|
22
|
+
* is gallery (border radius)
|
|
23
|
+
* TODO: allow opening overlay with picture gallery
|
|
24
|
+
*/
|
|
25
|
+
gallery?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Invert gallery
|
|
28
|
+
* Rotates the gallery 180 degrees
|
|
29
|
+
*/
|
|
30
|
+
invertGallery?: boolean;
|
|
31
|
+
enumerate?: boolean;
|
|
32
|
+
}
|
|
33
|
+
declare var __VLS_19: {};
|
|
34
|
+
type __VLS_Slots = {} & {
|
|
35
|
+
default?: (props: typeof __VLS_19) => any;
|
|
36
|
+
};
|
|
37
|
+
declare const __VLS_base: import("vue").DefineComponent<iSliderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iSliderProps> & Readonly<{}>, {
|
|
38
|
+
controls: boolean | "full";
|
|
39
|
+
animate: boolean;
|
|
40
|
+
transitionDuration: number;
|
|
41
|
+
intervalDuration: number;
|
|
42
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
43
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
44
|
+
declare const _default: typeof __VLS_export;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -1,41 +1,53 @@
|
|
|
1
1
|
import type { iTableChildProps } from "../../types/props";
|
|
2
|
-
export interface iTableBodyProps<Ti extends Record<string, any
|
|
2
|
+
export interface iTableBodyProps<Ti extends Record<string, any>, TMi extends Record<string, any> = Ti> extends iTableChildProps<Ti, TMi> {
|
|
3
3
|
}
|
|
4
|
-
declare const
|
|
5
|
-
props: __VLS_PrettifyLocal<
|
|
6
|
-
|
|
4
|
+
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<{
|
|
5
|
+
props: __VLS_PrettifyLocal<iTableBodyProps<T, TM>> & import("vue").PublicProps & (typeof globalThis extends {
|
|
6
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
7
|
+
} ? P : {});
|
|
8
|
+
expose: (exposed: {}) => void;
|
|
7
9
|
attrs: any;
|
|
8
10
|
slots: {
|
|
9
|
-
modifyActions
|
|
11
|
+
modifyActions?: (props: {
|
|
10
12
|
node: T;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
mappedNode: TM;
|
|
14
|
+
updateNodeAndRefresh: import("@open-xamu-co/ui-common-types").iNodeFn<T>;
|
|
15
|
+
cloneNodeAndRefresh: import("@open-xamu-co/ui-common-types").iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
16
|
+
deleteNodeAndRefresh: import("@open-xamu-co/ui-common-types").iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
14
17
|
deleteNodesAndRefresh: (nodes?: T[] | undefined) => Promise<void>;
|
|
15
18
|
show: boolean;
|
|
16
|
-
})
|
|
17
|
-
|
|
19
|
+
}) => any;
|
|
20
|
+
} & {
|
|
21
|
+
modifyDropdownActions?: (props: {
|
|
18
22
|
node: T;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
mappedNode: TM;
|
|
24
|
+
updateNodeAndRefresh: import("@open-xamu-co/ui-common-types").iNodeFn<T>;
|
|
25
|
+
cloneNodeAndRefresh: import("@open-xamu-co/ui-common-types").iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
26
|
+
deleteNodeAndRefresh: import("@open-xamu-co/ui-common-types").iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
22
27
|
deleteNodesAndRefresh: (nodes?: T[] | undefined) => Promise<void>;
|
|
23
28
|
show: boolean;
|
|
24
|
-
})
|
|
25
|
-
|
|
29
|
+
}) => any;
|
|
30
|
+
} & {
|
|
31
|
+
default?: (props: {
|
|
26
32
|
node: T;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
mappedNode: TM;
|
|
34
|
+
updateNodeAndRefresh: import("@open-xamu-co/ui-common-types").iNodeFn<T>;
|
|
35
|
+
cloneNodeAndRefresh: import("@open-xamu-co/ui-common-types").iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
36
|
+
deleteNodeAndRefresh: import("@open-xamu-co/ui-common-types").iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
30
37
|
deleteNodesAndRefresh: (nodes?: T[] | undefined) => Promise<void>;
|
|
38
|
+
createNodeChildrenAndRefresh: import("@open-xamu-co/ui-common-types").iNodeFn<T>;
|
|
31
39
|
show: boolean;
|
|
32
|
-
|
|
40
|
+
hydrateParentNode: (newNode: T | null, _newErrors?: unknown) => void;
|
|
41
|
+
}) => any;
|
|
33
42
|
};
|
|
34
43
|
emit: {};
|
|
35
44
|
}>) => import("vue").VNode & {
|
|
36
45
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
37
46
|
};
|
|
47
|
+
declare const _default: typeof __VLS_export;
|
|
38
48
|
export default _default;
|
|
39
|
-
type __VLS_PrettifyLocal<T> = {
|
|
49
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
40
50
|
[K in keyof T]: T[K];
|
|
41
|
-
}
|
|
51
|
+
} : {
|
|
52
|
+
[K in keyof T as K]: T[K];
|
|
53
|
+
}) & {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { iTableChildProps } from "../../types/props";
|
|
2
|
+
export interface iTableHeadProps<Ti extends Record<string, any>, TMi extends Record<string, any> = Ti> extends iTableChildProps<Ti, TMi> {
|
|
3
|
+
withDefaultSlot: boolean;
|
|
4
|
+
}
|
|
5
|
+
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<{
|
|
6
|
+
props: __VLS_PrettifyLocal<iTableHeadProps<T, TM>> & import("vue").PublicProps & (typeof globalThis extends {
|
|
7
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
8
|
+
} ? P : {});
|
|
9
|
+
expose: (exposed: {}) => void;
|
|
10
|
+
attrs: any;
|
|
11
|
+
slots: {
|
|
12
|
+
headActions?: (props: {
|
|
13
|
+
nodes: T[];
|
|
14
|
+
mappedNodes: import("../../index.js").iMappedNodes<T, TM>;
|
|
15
|
+
updateNodeAndRefresh: import("@open-xamu-co/ui-common-types").iNodeFn<T>;
|
|
16
|
+
cloneNodeAndRefresh: import("@open-xamu-co/ui-common-types").iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
17
|
+
deleteNodeAndRefresh: import("@open-xamu-co/ui-common-types").iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
18
|
+
deleteNodesAndRefresh: (nodes?: T[] | undefined) => Promise<void>;
|
|
19
|
+
}) => any;
|
|
20
|
+
};
|
|
21
|
+
emit: {};
|
|
22
|
+
}>) => import("vue").VNode & {
|
|
23
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
24
|
+
};
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
28
|
+
[K in keyof T]: T[K];
|
|
29
|
+
} : {
|
|
30
|
+
[K in keyof T as K]: T[K];
|
|
31
|
+
}) & {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { iTableChildProps } from "../../types/props";
|
|
2
|
+
export interface iTableHeadProps<Ti extends Record<string, any>, TMi extends Record<string, any> = Ti> extends iTableChildProps<Ti, TMi> {
|
|
3
|
+
withDefaultSlot: boolean;
|
|
4
|
+
}
|
|
5
|
+
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<{
|
|
6
|
+
props: __VLS_PrettifyLocal<iTableHeadProps<T, TM>> & import("vue").PublicProps & (typeof globalThis extends {
|
|
7
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
8
|
+
} ? P : {});
|
|
9
|
+
expose: (exposed: {}) => void;
|
|
10
|
+
attrs: any;
|
|
11
|
+
slots: {};
|
|
12
|
+
emit: {};
|
|
13
|
+
}>) => import("vue").VNode & {
|
|
14
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
15
|
+
};
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
19
|
+
[K in keyof T]: T[K];
|
|
20
|
+
} : {
|
|
21
|
+
[K in keyof T as K]: T[K];
|
|
22
|
+
}) & {};
|
|
@@ -1,35 +1,11 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
args: {
|
|
7
|
-
nodes: {
|
|
8
|
-
id: number;
|
|
9
|
-
slug: string;
|
|
10
|
-
firstName: string;
|
|
11
|
-
lastName: string;
|
|
12
|
-
email: string;
|
|
13
|
-
cellphoneNumber: string;
|
|
14
|
-
cellphoneIndicative: string;
|
|
15
|
-
locationCountry: string;
|
|
16
|
-
locationState: string;
|
|
17
|
-
locationCity: string;
|
|
18
|
-
address: string;
|
|
19
|
-
zipCode: string;
|
|
20
|
-
pathPhoto: string;
|
|
21
|
-
createdAt: string;
|
|
22
|
-
updatedAt: string;
|
|
23
|
-
emailVerifiedAt: string;
|
|
24
|
-
permissions: {
|
|
25
|
-
endpoint: string;
|
|
26
|
-
description: string;
|
|
27
|
-
}[];
|
|
28
|
-
businesses: never[];
|
|
29
|
-
}[];
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
type Story = StoryObj<typeof Simple>;
|
|
1
|
+
import type { StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import type { GenericMeta } from "../../types/storybook";
|
|
3
|
+
import TableSimple from "./Simple.vue";
|
|
4
|
+
declare const meta: GenericMeta<typeof TableSimple>;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
33
6
|
export declare const Sample: Story;
|
|
34
|
-
export declare const
|
|
7
|
+
export declare const Empty: Story;
|
|
8
|
+
export declare const Opaque: Story;
|
|
9
|
+
export declare const Nested: Story;
|
|
10
|
+
export declare const NestedOpaque: Story;
|
|
35
11
|
export default meta;
|
|
@@ -1,48 +1,63 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import type { iNodeFn } from "@open-xamu-co/ui-common-types";
|
|
2
|
+
import type { iTableProps, iMappedNodes } from "../../types/props";
|
|
3
|
+
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<{
|
|
4
|
+
props: __VLS_PrettifyLocal<iTableProps<T, TM> & {
|
|
5
|
+
"onUpdate:sort"?: ((...args: any[]) => any) | undefined;
|
|
6
|
+
}> & import("vue").PublicProps & (typeof globalThis extends {
|
|
7
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
8
|
+
} ? P : {});
|
|
9
|
+
expose: (exposed: {}) => void;
|
|
7
10
|
attrs: any;
|
|
8
11
|
slots: {
|
|
9
|
-
headActions
|
|
12
|
+
headActions?: (props: {
|
|
10
13
|
nodes: T[];
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
mappedNodes: iMappedNodes<T, TM>;
|
|
15
|
+
updateNodeAndRefresh: iNodeFn<T>;
|
|
16
|
+
cloneNodeAndRefresh: iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
17
|
+
deleteNodeAndRefresh: iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
14
18
|
deleteNodesAndRefresh: (nodes?: T[] | undefined) => Promise<void>;
|
|
15
|
-
})
|
|
16
|
-
|
|
19
|
+
}) => any;
|
|
20
|
+
} & {
|
|
21
|
+
default?: (props: {
|
|
17
22
|
node: T;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
23
|
+
mappedNode: TM;
|
|
24
|
+
updateNodeAndRefresh: iNodeFn<T>;
|
|
25
|
+
cloneNodeAndRefresh: iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
26
|
+
deleteNodeAndRefresh: iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
21
27
|
deleteNodesAndRefresh: (nodes?: T[] | undefined) => Promise<void>;
|
|
28
|
+
createNodeChildrenAndRefresh: iNodeFn<T>;
|
|
22
29
|
show: boolean;
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
hydrateParentNode: (newNode: T | null, _newErrors?: unknown) => void;
|
|
31
|
+
}) => any;
|
|
32
|
+
} & {
|
|
33
|
+
modifyActions?: (props: {
|
|
25
34
|
node: T;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
35
|
+
mappedNode: TM;
|
|
36
|
+
updateNodeAndRefresh: iNodeFn<T>;
|
|
37
|
+
cloneNodeAndRefresh: iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
38
|
+
deleteNodeAndRefresh: iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
29
39
|
deleteNodesAndRefresh: (nodes?: T[] | undefined) => Promise<void>;
|
|
30
40
|
show: boolean;
|
|
31
|
-
})
|
|
32
|
-
|
|
41
|
+
}) => any;
|
|
42
|
+
} & {
|
|
43
|
+
modifyDropdownActions?: (props: {
|
|
33
44
|
node: T;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
mappedNode: TM;
|
|
46
|
+
updateNodeAndRefresh: iNodeFn<T>;
|
|
47
|
+
cloneNodeAndRefresh: iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
48
|
+
deleteNodeAndRefresh: iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
37
49
|
deleteNodesAndRefresh: (nodes?: T[] | undefined) => Promise<void>;
|
|
38
50
|
show: boolean;
|
|
39
|
-
})
|
|
51
|
+
}) => any;
|
|
40
52
|
};
|
|
41
53
|
emit: (event: "update:sort", ...args: any[]) => void;
|
|
42
54
|
}>) => import("vue").VNode & {
|
|
43
55
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
44
56
|
};
|
|
57
|
+
declare const _default: typeof __VLS_export;
|
|
45
58
|
export default _default;
|
|
46
|
-
type __VLS_PrettifyLocal<T> = {
|
|
59
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
47
60
|
[K in keyof T]: T[K];
|
|
48
|
-
}
|
|
61
|
+
} : {
|
|
62
|
+
[K in keyof T as K]: T[K];
|
|
63
|
+
}) & {};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
3
|
-
declare const meta:
|
|
4
|
-
|
|
5
|
-
component: Record<keyof typeof Complex, unknown>;
|
|
6
|
-
args: {};
|
|
7
|
-
};
|
|
8
|
-
type Story = StoryObj<typeof Complex>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import ValueComplex from "./Complex.vue";
|
|
3
|
+
declare const meta: Meta<typeof ValueComplex>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
9
5
|
export declare const Sample: Story;
|
|
10
6
|
export default meta;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { iValueComplexProps } from "../../types/props";
|
|
2
|
-
declare const
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<iValueComplexProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iValueComplexProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
3
4
|
export default _default;
|
|
@@ -1,29 +1,6 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
3
|
-
declare const meta:
|
|
4
|
-
|
|
5
|
-
component: Record<keyof typeof List, unknown>;
|
|
6
|
-
args: {
|
|
7
|
-
value: {
|
|
8
|
-
id: number;
|
|
9
|
-
slug: string;
|
|
10
|
-
firstName: string;
|
|
11
|
-
lastName: string;
|
|
12
|
-
email: string;
|
|
13
|
-
cellphoneNumber: string;
|
|
14
|
-
cellphoneIndicative: string;
|
|
15
|
-
locationCountry: string;
|
|
16
|
-
locationState: string;
|
|
17
|
-
locationCity: string;
|
|
18
|
-
address: string;
|
|
19
|
-
zipCode: string;
|
|
20
|
-
pathPhoto: string;
|
|
21
|
-
createdAt: string;
|
|
22
|
-
updatedAt: string;
|
|
23
|
-
emailVerifiedAt: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
type Story = StoryObj<typeof List>;
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import ValueList from "./List.vue";
|
|
3
|
+
declare const meta: Meta<typeof ValueList>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
28
5
|
export declare const Sample: Story;
|
|
29
6
|
export default meta;
|
|
@@ -20,16 +20,6 @@ export interface iValueListProps extends iUseThemeProps {
|
|
|
20
20
|
classes?: tProps<string>;
|
|
21
21
|
modalProps?: iModalProps & AllowedComponentProps;
|
|
22
22
|
}
|
|
23
|
-
declare const
|
|
24
|
-
|
|
25
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
26
|
-
attrs: any;
|
|
27
|
-
slots: {};
|
|
28
|
-
emit: {};
|
|
29
|
-
}>) => import("vue").VNode & {
|
|
30
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
31
|
-
};
|
|
23
|
+
declare const __VLS_export: import("vue").DefineComponent<iValueListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iValueListProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
32
25
|
export default _default;
|
|
33
|
-
type __VLS_PrettifyLocal<T> = {
|
|
34
|
-
[K in keyof T]: T[K];
|
|
35
|
-
} & {};
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
args: {
|
|
7
|
-
value: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
type Story = StoryObj<typeof Simple>;
|
|
1
|
+
import type { StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import type { GenericMeta } from "../../types/storybook";
|
|
3
|
+
import ValueSimple from "./Simple.vue";
|
|
4
|
+
declare const meta: GenericMeta<typeof ValueSimple>;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
11
6
|
export declare const Sample: Story;
|
|
12
7
|
export default meta;
|
|
@@ -23,16 +23,21 @@ export interface iValueSimpleProps<Pi extends Record<string, any>> extends iUseT
|
|
|
23
23
|
verbose?: boolean;
|
|
24
24
|
size?: tSizeModifier;
|
|
25
25
|
}
|
|
26
|
-
declare const
|
|
27
|
-
props: __VLS_PrettifyLocal<
|
|
28
|
-
|
|
26
|
+
declare const __VLS_export: <P extends Record<string, 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<{
|
|
27
|
+
props: __VLS_PrettifyLocal<iValueSimpleProps<P>> & import("vue").PublicProps & (typeof globalThis extends {
|
|
28
|
+
__VLS_PROPS_FALLBACK: infer P_1;
|
|
29
|
+
} ? P_1 : {});
|
|
30
|
+
expose: (exposed: {}) => void;
|
|
29
31
|
attrs: any;
|
|
30
32
|
slots: {};
|
|
31
33
|
emit: {};
|
|
32
34
|
}>) => import("vue").VNode & {
|
|
33
35
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
34
36
|
};
|
|
37
|
+
declare const _default: typeof __VLS_export;
|
|
35
38
|
export default _default;
|
|
36
|
-
type __VLS_PrettifyLocal<T> = {
|
|
39
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
37
40
|
[K in keyof T]: T[K];
|
|
38
|
-
}
|
|
41
|
+
} : {
|
|
42
|
+
[K in keyof T as K]: T[K];
|
|
43
|
+
}) & {};
|
|
@@ -15,12 +15,19 @@ export default function useTheme(props: iAllUseThemeProps, themeAsUnion?: boolea
|
|
|
15
15
|
dangerThemeClasses: import("vue").ComputedRef<string[]>;
|
|
16
16
|
shadowClasses: import("vue").ComputedRef<string[]>;
|
|
17
17
|
tooltipAttributes: import("vue").ComputedRef<{
|
|
18
|
+
"aria-label": string | undefined;
|
|
19
|
+
"data-tooltip"?: undefined;
|
|
20
|
+
"data-tooltip-position"?: undefined;
|
|
21
|
+
"data-tooltip-text"?: undefined;
|
|
22
|
+
"data-tooltip-bg"?: undefined;
|
|
23
|
+
"data-tooltip-color"?: undefined;
|
|
24
|
+
} | {
|
|
18
25
|
"aria-label": string;
|
|
19
26
|
"data-tooltip": string;
|
|
20
27
|
"data-tooltip-position": "left" | "right" | "bottom" | "top" | undefined;
|
|
21
28
|
"data-tooltip-text": boolean;
|
|
22
29
|
"data-tooltip-bg": tThemeModifier;
|
|
23
30
|
"data-tooltip-color": tThemeModifier | undefined;
|
|
24
|
-
}
|
|
31
|
+
}>;
|
|
25
32
|
};
|
|
26
33
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { tOrderBy } from "@open-xamu-co/ui-common-types";
|
|
1
|
+
import type { iNodeFnResponse, tOrderBy } from "@open-xamu-co/ui-common-types";
|
|
2
2
|
import type { iVuePluginOptions } from "../plugin";
|
|
3
3
|
export declare function useHelpers<T = any>(helper: (o: iVuePluginOptions & {
|
|
4
4
|
countriesUrl: string;
|
|
5
5
|
}) => T): T;
|
|
6
6
|
export declare function useOrderBy(orderByParam: any): tOrderBy[];
|
|
7
|
+
export declare function useResolveNodeFn<T extends Record<string, any>>(promise: boolean | undefined | iNodeFnResponse<T> | Promise<boolean | undefined | iNodeFnResponse<T>>): Promise<iNodeFnResponse<T>>;
|