@open-xamu-co/ui-components-vue 3.1.0-next.6 → 3.1.0-next.8

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 CHANGED
@@ -1,5 +1,37 @@
1
1
  Xamu UI
2
2
 
3
+ # [@open-xamu-co/ui-components-vue-v3.1.0-next.8](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v3.1.0-next.7...@open-xamu-co/ui-components-vue-v3.1.0-next.8) (2025-07-18)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * always show id for tables with children ([340b5f7](https://github.com/xamu-co/ui/commit/340b5f7ae4a4d7a0da31b6196d62af4d30e9da1c))
9
+ * unasuming pagination table defaults ([71f9d00](https://github.com/xamu-co/ui/commit/71f9d00bef64f417b8621ce81a376d9626571f0e))
10
+ * use key on pagination table content ([1f40232](https://github.com/xamu-co/ui/commit/1f40232b1a568421a2924921e21d0589d055e587))
11
+
12
+
13
+
14
+
15
+
16
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "3.1.0-next.8"
17
+ Updating "nuxt"
18
+ Succesfully updated "nuxt" package
19
+
20
+ # [@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)
21
+
22
+
23
+ ### Features
24
+
25
+ * pagination content table ([703652b](https://github.com/xamu-co/ui/commit/703652bc0ba569678392405a214f4cfc9bbfa09a))
26
+
27
+
28
+
29
+
30
+
31
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "3.1.0-next.7"
32
+ Updating "nuxt"
33
+ Succesfully updated "nuxt" package
34
+
3
35
  # [@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)
4
36
 
5
37
 
@@ -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: NonNullable<NoInfer<import("../../types/countries").iCity[]>>;
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<NoInfer<T>>;
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: NonNullable<NoInfer<iPage<T, C> | undefined>>;
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
+ } & {};