@open-xamu-co/ui-components-vue 3.1.0-next.5 → 3.1.0-next.7
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 +31 -0
- package/dist/components/base/BrowserOnly.vue.d.ts +18 -0
- package/dist/components/form/InputCountriesAPI.vue.d.ts +1 -1
- package/dist/components/loader/ContentFetch.vue.d.ts +1 -1
- package/dist/components/pagination/Content.vue.d.ts +1 -1
- package/dist/components/pagination/ContentTable.stories.d.ts +10 -0
- package/dist/components/pagination/ContentTable.vue.d.ts +68 -0
- package/dist/index-CjyyM6pK.mjs +6749 -0
- package/dist/index-CmkNRtl-.js +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +32 -30
- package/dist/plugin.js +1 -1
- package/dist/plugin.mjs +2 -2
- package/dist/theme-DSVG59vT.js +1 -0
- package/dist/theme-DVpUQx-w.mjs +78 -0
- package/dist/theme.js +1 -1
- package/dist/theme.mjs +1 -1
- package/package.json +13 -13
- package/dist/index-C8jC7Z38.mjs +0 -6740
- package/dist/index-oUWLOZ7l.js +0 -4
- package/dist/theme-C1e9Ec-R.mjs +0 -80
- package/dist/theme-DYVp9ofi.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
Xamu UI
|
|
2
2
|
|
|
3
|
+
# [@open-xamu-co/ui-components-vue-v3.1.0-next.7](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v3.1.0-next.6...@open-xamu-co/ui-components-vue-v3.1.0-next.7) (2025-07-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* pagination content table ([703652b](https://github.com/xamu-co/ui/commit/703652bc0ba569678392405a214f4cfc9bbfa09a))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
[34mUpdating dependant packages with "@open-xamu-co/ui-components-vue" version "3.1.0-next.7"[0m
|
|
15
|
+
[34mUpdating "nuxt"[0m
|
|
16
|
+
[34mSuccesfully updated "nuxt" package[0m
|
|
17
|
+
|
|
18
|
+
# [@open-xamu-co/ui-components-vue-v3.1.0-next.6](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v3.1.0-next.5...@open-xamu-co/ui-components-vue-v3.1.0-next.6) (2025-07-14)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* handle nuxt hydration behavior ([7d1cd53](https://github.com/xamu-co/ui/commit/7d1cd53b0a0a0ffa4d4dde9f36e60cf45a871412))
|
|
24
|
+
* handle undefined edges ([8eb7215](https://github.com/xamu-co/ui/commit/8eb7215de8239ba223df4c34f19c57b4fbc799a3))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
[34mUpdating dependant packages with "@open-xamu-co/ui-components-vue" version "3.1.0-next.6"[0m
|
|
31
|
+
[34mUpdating "nuxt"[0m
|
|
32
|
+
[34mSuccesfully updated "nuxt" package[0m
|
|
33
|
+
|
|
3
34
|
# [@open-xamu-co/ui-components-vue-v3.1.0-next.5](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v3.1.0-next.4...@open-xamu-co/ui-components-vue-v3.1.0-next.5) (2025-04-28)
|
|
4
35
|
|
|
5
36
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
fallback?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -14,7 +14,7 @@ declare function __VLS_template(): {
|
|
|
14
14
|
default?(_: {
|
|
15
15
|
statesReq: Record<string, any>;
|
|
16
16
|
citiesReq: {
|
|
17
|
-
content:
|
|
17
|
+
content: import("../../types/countries").iCity[];
|
|
18
18
|
refresh: (opts?: any) => Promise<void>;
|
|
19
19
|
loading: boolean;
|
|
20
20
|
errors: unknown;
|
|
@@ -50,7 +50,7 @@ declare const _default: <T, P extends any[] = any[]>(__VLS_props: NonNullable<Aw
|
|
|
50
50
|
attrs: any;
|
|
51
51
|
slots: {
|
|
52
52
|
default?(_: {
|
|
53
|
-
content: NonNullable<
|
|
53
|
+
content: NonNullable<T>;
|
|
54
54
|
refresh: (opts?: any) => Promise<void>;
|
|
55
55
|
loading: boolean;
|
|
56
56
|
errors: unknown;
|
|
@@ -62,7 +62,7 @@ declare const _default: <T, C extends string | number = string, R = never>(__VLS
|
|
|
62
62
|
default?(_: {
|
|
63
63
|
content: NoInfer<T>[];
|
|
64
64
|
pagination: iPagination;
|
|
65
|
-
currentPage:
|
|
65
|
+
currentPage: iPage<T, C>;
|
|
66
66
|
refresh: (opts?: any) => Promise<void>;
|
|
67
67
|
}): any;
|
|
68
68
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
+
import ContentTable from "./ContentTable.vue";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: Record<keyof typeof ContentTable, unknown>;
|
|
6
|
+
args: {};
|
|
7
|
+
};
|
|
8
|
+
type Story = StoryObj<typeof ContentTable>;
|
|
9
|
+
export declare const Sample: Story;
|
|
10
|
+
export default meta;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { iGetPage, tThemeModifier, tThemeTuple } from "@open-xamu-co/ui-common-types";
|
|
2
|
+
import type { iTableProps } from "@open-xamu-co/ui-components-vue";
|
|
3
|
+
export interface iPaginationContentTableProps<Ti extends Record<string, any>, TMi extends Record<string, any>> {
|
|
4
|
+
/**
|
|
5
|
+
* Required to dedupe caching
|
|
6
|
+
*/
|
|
7
|
+
url: string;
|
|
8
|
+
page: iGetPage<Ti>;
|
|
9
|
+
defaults?: Record<string, any>;
|
|
10
|
+
mapNode?: (node: Ti) => TMi;
|
|
11
|
+
preventAutoload?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Additional refresh function
|
|
14
|
+
*/
|
|
15
|
+
refresh?: () => void;
|
|
16
|
+
noContentMessage?: string;
|
|
17
|
+
tableProps?: Omit<iTableProps<TMi>, "nodes" | "refresh">;
|
|
18
|
+
theme?: tThemeModifier | tThemeTuple;
|
|
19
|
+
client?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Additional class for the table
|
|
22
|
+
*
|
|
23
|
+
* @example --txtColor
|
|
24
|
+
*/
|
|
25
|
+
tableClass?: string | string[] | Record<string, boolean>;
|
|
26
|
+
/**
|
|
27
|
+
* Additional class for the modal
|
|
28
|
+
*
|
|
29
|
+
* @example --txtColor
|
|
30
|
+
*/
|
|
31
|
+
modalClass?: string | string[] | Record<string, boolean>;
|
|
32
|
+
}
|
|
33
|
+
declare const _default: <T extends Record<string, any>, TM 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_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
34
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & Partial<{}> & iPaginationContentTableProps<T, TM>> & import("vue").PublicProps;
|
|
35
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
36
|
+
attrs: any;
|
|
37
|
+
slots: {
|
|
38
|
+
default?(_: {
|
|
39
|
+
hasContent: boolean;
|
|
40
|
+
refreshData: () => void;
|
|
41
|
+
}): any;
|
|
42
|
+
headActions?(_: {
|
|
43
|
+
hasContent: false;
|
|
44
|
+
refreshData: () => void;
|
|
45
|
+
}): any;
|
|
46
|
+
headActions?(_: {
|
|
47
|
+
hasContent: boolean;
|
|
48
|
+
refreshData: () => void;
|
|
49
|
+
}): any;
|
|
50
|
+
tableChildren?(_: {
|
|
51
|
+
hasContent: boolean;
|
|
52
|
+
refreshData: () => void;
|
|
53
|
+
node: TM;
|
|
54
|
+
updateNodeAndRefresh: (node: TM) => Promise<void>;
|
|
55
|
+
cloneNodeAndRefresh: (node: TM, toggleModal?: (m?: boolean) => any) => Promise<void>;
|
|
56
|
+
deleteNodeAndRefresh: (node: TM, toggleModal?: (m?: boolean) => any, modalRef?: HTMLElement) => Promise<void>;
|
|
57
|
+
deleteNodesAndRefresh: (nodes?: TM[] | undefined) => Promise<void>;
|
|
58
|
+
show: boolean;
|
|
59
|
+
}): any;
|
|
60
|
+
};
|
|
61
|
+
emit: {};
|
|
62
|
+
}>) => import("vue").VNode & {
|
|
63
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
64
|
+
};
|
|
65
|
+
export default _default;
|
|
66
|
+
type __VLS_PrettifyLocal<T> = {
|
|
67
|
+
[K in keyof T]: T[K];
|
|
68
|
+
} & {};
|