@open-xamu-co/ui-components-vue 3.1.0-next.9 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +517 -0
- package/dist/components/action/Button.stories.d.ts +4 -4
- package/dist/components/action/Button.vue.d.ts +4 -0
- package/dist/components/action/ButtonToggle.stories.d.ts +2 -0
- package/dist/components/base/Box.vue.d.ts +6 -0
- package/dist/components/base/ErrorBoundary.vue.d.ts +7 -2
- package/dist/components/base/Img.vue.d.ts +15 -56
- package/dist/components/base/Input.vue.d.ts +2 -0
- package/dist/components/base/Wrapper.vue.d.ts +3 -2
- package/dist/components/box/Action.vue.d.ts +1 -1
- package/dist/components/box/Message.stories.d.ts +1 -1
- package/dist/components/dropdown/Simple.stories.d.ts +6 -4
- package/dist/components/form/InputCountriesAPI.vue.d.ts +2 -6
- package/dist/components/form/InputNValues.vue.d.ts +2 -0
- package/dist/components/form/Simple.stories.d.ts +5 -3
- package/dist/components/form/Simple.vue.d.ts +5 -4
- package/dist/components/form/Stages.stories.d.ts +6 -9
- package/dist/components/input/Color.stories.d.ts +3 -3
- package/dist/components/input/Color.vue.d.ts +10 -2
- package/dist/components/input/File.vue.d.ts +4 -0
- package/dist/components/input/Toggle.vue.d.ts +2 -2
- package/dist/components/loader/ContentFetch.vue.d.ts +6 -3
- package/dist/components/modal/Simple.stories.d.ts +13 -4
- package/dist/components/pagination/Content.vue.d.ts +16 -4
- package/dist/components/pagination/ContentTable.stories.d.ts +4 -3
- package/dist/components/pagination/ContentTable.vue.d.ts +43 -14
- package/dist/components/pagination/Simple.stories.d.ts +14 -1
- package/dist/components/select/Choice.stories.d.ts +6 -5
- package/dist/components/select/Filter.stories.d.ts +5 -5
- package/dist/components/table/Body.vue.d.ts +17 -12
- package/dist/components/table/HeadActions.vue.d.ts +26 -0
- package/dist/components/table/HeadContent.vue.d.ts +17 -0
- package/dist/components/table/Simple.stories.d.ts +35 -11
- package/dist/components/table/Simple.vue.d.ts +22 -15
- package/dist/composables/theme.d.ts +8 -1
- package/dist/composables/utils.d.ts +2 -1
- package/dist/index-BeKPWN3w.js +4 -0
- package/dist/index-DPLrKbNp.mjs +8400 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/dist/plugin.js +1 -1
- package/dist/plugin.mjs +143 -133
- package/dist/theme-CChhGSbE.js +1 -0
- package/dist/theme-DWMJmaKP.mjs +83 -0
- package/dist/theme.js +1 -1
- package/dist/theme.mjs +1 -1
- package/dist/types/plugin.d.ts +9 -1
- package/dist/types/props.d.ts +59 -16
- package/package.json +7 -6
- 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/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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
-
import
|
|
2
|
+
import TableSimple from "./Simple.vue";
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: Record<keyof typeof
|
|
5
|
+
component: Record<keyof typeof TableSimple, unknown>;
|
|
6
6
|
args: {
|
|
7
7
|
nodes: {
|
|
8
8
|
id: number;
|
|
@@ -10,26 +10,50 @@ declare const meta: {
|
|
|
10
10
|
firstName: string;
|
|
11
11
|
lastName: string;
|
|
12
12
|
email: string;
|
|
13
|
-
cellphoneNumber: string;
|
|
14
|
-
cellphoneIndicative: string;
|
|
15
|
-
locationCountry: string;
|
|
16
|
-
locationState: string;
|
|
17
|
-
locationCity: string;
|
|
18
|
-
address: string;
|
|
19
13
|
zipCode: string;
|
|
20
14
|
pathPhoto: string;
|
|
21
15
|
createdAt: string;
|
|
22
16
|
updatedAt: string;
|
|
23
|
-
|
|
17
|
+
price: number;
|
|
18
|
+
iva: boolean;
|
|
19
|
+
reference: string;
|
|
20
|
+
variants: number;
|
|
21
|
+
visible: boolean;
|
|
24
22
|
permissions: {
|
|
25
23
|
endpoint: string;
|
|
26
24
|
description: string;
|
|
27
25
|
}[];
|
|
26
|
+
category: {
|
|
27
|
+
name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
keywords: string[];
|
|
30
|
+
createdAt: string;
|
|
31
|
+
updatedAt: string;
|
|
32
|
+
possibleVariants: {
|
|
33
|
+
name: string;
|
|
34
|
+
type: string;
|
|
35
|
+
values: {
|
|
36
|
+
name: string;
|
|
37
|
+
value: string;
|
|
38
|
+
}[];
|
|
39
|
+
createdAt: string;
|
|
40
|
+
updatedAt: string;
|
|
41
|
+
id: string;
|
|
42
|
+
}[];
|
|
43
|
+
id: string;
|
|
44
|
+
};
|
|
28
45
|
businesses: never[];
|
|
29
46
|
}[];
|
|
47
|
+
modalProps: {
|
|
48
|
+
class: string;
|
|
49
|
+
invertTheme: true;
|
|
50
|
+
};
|
|
30
51
|
};
|
|
31
52
|
};
|
|
32
|
-
type Story = StoryObj<typeof
|
|
53
|
+
type Story = StoryObj<typeof TableSimple>;
|
|
33
54
|
export declare const Sample: Story;
|
|
34
|
-
export declare const
|
|
55
|
+
export declare const Empty: Story;
|
|
56
|
+
export declare const Opaque: Story;
|
|
57
|
+
export declare const Nested: Story;
|
|
58
|
+
export declare const NestedOpaque: Story;
|
|
35
59
|
export default meta;
|
|
@@ -1,39 +1,46 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { iNodeFn } from "@open-xamu-co/ui-common-types";
|
|
2
|
+
import type { iTableProps, iMappedNodes } from "../../types/props";
|
|
3
|
+
declare const _default: <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_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
5
|
readonly "onUpdate:sort"?: ((...args: any[]) => any) | undefined;
|
|
5
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:sort"> & Partial<{}> & iTableProps<T>> & import("vue").PublicProps;
|
|
6
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:sort"> & Partial<{}> & iTableProps<T, TM>> & import("vue").PublicProps;
|
|
6
7
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
7
8
|
attrs: any;
|
|
8
9
|
slots: {
|
|
9
10
|
headActions?(_: {
|
|
10
11
|
nodes: T[];
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
mappedNodes: iMappedNodes<T, TM>;
|
|
13
|
+
updateNodeAndRefresh: iNodeFn<T>;
|
|
14
|
+
cloneNodeAndRefresh: iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
15
|
+
deleteNodeAndRefresh: iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
14
16
|
deleteNodesAndRefresh: (nodes?: T[] | undefined) => Promise<void>;
|
|
15
17
|
}): any;
|
|
16
18
|
default?(_: {
|
|
17
19
|
node: T;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
mappedNode: TM;
|
|
21
|
+
updateNodeAndRefresh: iNodeFn<T>;
|
|
22
|
+
cloneNodeAndRefresh: iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
23
|
+
deleteNodeAndRefresh: iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
21
24
|
deleteNodesAndRefresh: (nodes?: T[] | undefined) => Promise<void>;
|
|
25
|
+
createNodeChildrenAndRefresh: iNodeFn<T>;
|
|
22
26
|
show: boolean;
|
|
27
|
+
hydrateParentNode: (newNode: T | null, _newErrors?: unknown) => void;
|
|
23
28
|
}): any;
|
|
24
29
|
modifyActions?(_: {
|
|
25
30
|
node: T;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
mappedNode: TM;
|
|
32
|
+
updateNodeAndRefresh: iNodeFn<T>;
|
|
33
|
+
cloneNodeAndRefresh: iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
34
|
+
deleteNodeAndRefresh: iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
29
35
|
deleteNodesAndRefresh: (nodes?: T[] | undefined) => Promise<void>;
|
|
30
36
|
show: boolean;
|
|
31
37
|
}): any;
|
|
32
38
|
modifyDropdownActions?(_: {
|
|
33
39
|
node: T;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
40
|
+
mappedNode: TM;
|
|
41
|
+
updateNodeAndRefresh: iNodeFn<T>;
|
|
42
|
+
cloneNodeAndRefresh: iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
43
|
+
deleteNodeAndRefresh: iNodeFn<T, [T, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
|
|
37
44
|
deleteNodesAndRefresh: (nodes?: T[] | undefined) => Promise<void>;
|
|
38
45
|
show: boolean;
|
|
39
46
|
}): any;
|
|
@@ -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>>;
|