@open-xamu-co/ui-components-vue 4.0.0-next.30 → 4.0.0-next.32
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 +37 -0
- package/dist/Choice-BaV8zwUF.js +4 -0
- package/dist/Choice-yPm15TmL.cjs +1 -0
- package/dist/Color-JaWt3ThI.cjs +1 -0
- package/dist/Color-LY16xo3z.js +4 -0
- package/dist/Complex-7kIEge6R.cjs +1 -0
- package/dist/Complex-BaU1Sdnu.js +4 -0
- package/dist/ContentFetch-DnFQ5Aq7.cjs +1 -0
- package/dist/ContentFetch-LUDVDqrD.js +4 -0
- package/dist/Editor-7JJR4ATb.cjs +1 -0
- package/dist/Editor-VLeHBkWl.js +4 -0
- package/dist/File-CDxAXmQl.cjs +1 -0
- package/dist/File-DlA49Ibd.js +4 -0
- package/dist/Filter-Cd-x0SvT.js +4 -0
- package/dist/Filter-DKesibMu.cjs +1 -0
- package/dist/InputCountriesAPI-Ca9fzClB.js +72 -0
- package/dist/InputCountriesAPI-Cu0BDOGh.cjs +1 -0
- package/dist/List-Bb-Gfqbx.cjs +1 -0
- package/dist/List-Clfxrmdu.js +4 -0
- package/dist/Simple-4fej94Lz.js +4 -0
- package/dist/Simple-BnFSlbBD.js +4 -0
- package/dist/Simple-Byb1eA82.js +4 -0
- package/dist/Simple-Co65ru9a.cjs +1 -0
- package/dist/Simple-CzNj0aSo.cjs +1 -0
- package/dist/Simple-Knhh5OFo.cjs +1 -0
- package/dist/Time-BNltxUTl.js +4 -0
- package/dist/Time-CprOM_-2.cjs +1 -0
- package/dist/components/base/BrowserOnly.stories.d.ts +6 -0
- package/dist/components/base/ErrorBoundary.stories.d.ts +6 -0
- package/dist/components/form/InputCountriesAPI.stories.d.ts +6 -0
- package/dist/components/form/InputCountriesAPI.vue.d.ts +2 -2
- package/dist/components/form/Simple.vue.d.ts +1 -18
- package/dist/components/select/Filter.stories.d.ts +0 -3
- package/dist/components/select/mocks.d.ts +3 -0
- package/dist/components/table/Body.vue.d.ts +1 -3
- package/dist/components/value/Simple.vue.d.ts +1 -25
- package/dist/{index-CcNccc1e.js → index-B9xuJkkJ.js} +9955 -9939
- package/dist/{index-a6izObYX.cjs → index-CDIdmENN.cjs} +41 -41
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.js +1 -1
- package/dist/types/props/form.d.ts +19 -0
- package/dist/types/props/index.d.ts +1 -0
- package/dist/types/props/table.d.ts +2 -0
- package/dist/types/props/value.d.ts +15 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
Xamu UI
|
|
2
2
|
|
|
3
|
+
# [@open-xamu-co/ui-components-vue-v4.0.0-next.32](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.31...@open-xamu-co/ui-components-vue-v4.0.0-next.32) (2026-07-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **vue:** use the proper async data within select filter ([40bbae3](https://github.com/xamu-co/ui/commit/40bbae318661e94f1fd589dd1a01b8d3283ed02f))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
[34mUpdating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.32"[0m
|
|
15
|
+
[34mUpdating "nuxt"[0m
|
|
16
|
+
[34mSuccesfully updated "nuxt" package[0m
|
|
17
|
+
|
|
18
|
+
# [@open-xamu-co/ui-components-vue-v4.0.0-next.31](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.30...@open-xamu-co/ui-components-vue-v4.0.0-next.31) (2026-07-04)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **vue:** add suspense for forms with loadercontentfetch ([a5520bf](https://github.com/xamu-co/ui/commit/a5520bf14fb4e0b527e4360faaca3a76cc794c67))
|
|
24
|
+
* **vue:** preserve wrapper reactivity ([4e5443a](https://github.com/xamu-co/ui/commit/4e5443a893dd5e0194903dd8e8836462ebf013e8))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* **vue:** async requirements for form & table components ([e2611bd](https://github.com/xamu-co/ui/commit/e2611bd08644e4d99a7360e13960d61deb0c9253))
|
|
30
|
+
* **vue:** async value components ([bdc8634](https://github.com/xamu-co/ui/commit/bdc863490f1c73241e67277a7df36db629cbea37))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
[34mUpdating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.31"[0m
|
|
37
|
+
[34mUpdating "nuxt"[0m
|
|
38
|
+
[34mSuccesfully updated "nuxt" package[0m
|
|
39
|
+
|
|
3
40
|
# [@open-xamu-co/ui-components-vue-v4.0.0-next.30](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.29...@open-xamu-co/ui-components-vue-v4.0.0-next.30) (2026-07-03)
|
|
4
41
|
|
|
5
42
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CDIdmENN.cjs");exports.default=e._sfc_main$9;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CDIdmENN.cjs");exports.default=e._sfc_main$1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CDIdmENN.cjs");exports.default=e._sfc_main$2;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CDIdmENN.cjs");exports.default=e._sfc_main$13;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CDIdmENN.cjs");exports.default=e._sfc_main$10;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CDIdmENN.cjs");exports.default=e._sfc_main$6;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CDIdmENN.cjs");exports.default=e._sfc_main$8;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { defineComponent as C, defineAsyncComponent as g, computed as k, createBlock as u, openBlock as d, Suspense as i, withCtx as t, createVNode as a, unref as l, renderSlot as $, normalizeProps as A, guardReactiveProps as B } from "vue";
|
|
2
|
+
import { n as o, o as b, p as s } from "./index-B9xuJkkJ.js";
|
|
3
|
+
const P = /* @__PURE__ */ C({
|
|
4
|
+
name: "FormInputCountriesApi",
|
|
5
|
+
inheritAttrs: !0,
|
|
6
|
+
__name: "InputCountriesAPI",
|
|
7
|
+
props: {
|
|
8
|
+
model: {},
|
|
9
|
+
countries: {},
|
|
10
|
+
states: { default: () => [] },
|
|
11
|
+
loading: { type: Boolean },
|
|
12
|
+
errors: {},
|
|
13
|
+
refresh: {},
|
|
14
|
+
theme: {},
|
|
15
|
+
invertTheme: { type: Boolean },
|
|
16
|
+
shadow: { type: [Boolean, Array] }
|
|
17
|
+
},
|
|
18
|
+
setup(e) {
|
|
19
|
+
const n = g({
|
|
20
|
+
loader: () => import("./ContentFetch-LUDVDqrD.js"),
|
|
21
|
+
loadingComponent: o
|
|
22
|
+
}), c = e, { defaultCountry: p, getCountryStates: f, getStateCities: h } = b(), r = k(() => c.model[0] || p || "");
|
|
23
|
+
return (w, v) => (d(), u(i, null, {
|
|
24
|
+
fallback: t(() => [
|
|
25
|
+
a(o, { theme: e.theme }, null, 8, ["theme"])
|
|
26
|
+
]),
|
|
27
|
+
default: t(() => [
|
|
28
|
+
a(s, {
|
|
29
|
+
wrapper: l(n),
|
|
30
|
+
wrap: !e.loading && !e.states?.length,
|
|
31
|
+
promise: l(f),
|
|
32
|
+
url: `/${e.model[0]}?states`,
|
|
33
|
+
payload: [r.value],
|
|
34
|
+
fallback: [],
|
|
35
|
+
theme: e.theme,
|
|
36
|
+
unwrap: ""
|
|
37
|
+
}, {
|
|
38
|
+
default: t((m) => [
|
|
39
|
+
(d(), u(i, null, {
|
|
40
|
+
fallback: t(() => [
|
|
41
|
+
a(o, { theme: e.theme }, null, 8, ["theme"])
|
|
42
|
+
]),
|
|
43
|
+
default: t(() => [
|
|
44
|
+
a(s, {
|
|
45
|
+
wrapper: l(n),
|
|
46
|
+
wrap: !e.loading && !m?.loading && !!e.model[1],
|
|
47
|
+
promise: l(h),
|
|
48
|
+
url: `/${e.model[0]}/${e.model[1]}?cities`,
|
|
49
|
+
payload: [r.value, e.model[1]],
|
|
50
|
+
fallback: [],
|
|
51
|
+
theme: e.theme,
|
|
52
|
+
unwrap: ""
|
|
53
|
+
}, {
|
|
54
|
+
default: t((y) => [
|
|
55
|
+
$(w.$slots, "default", A(B({ statesReq: m, citiesReq: y })))
|
|
56
|
+
]),
|
|
57
|
+
_: 2
|
|
58
|
+
}, 1032, ["wrapper", "wrap", "promise", "url", "payload", "theme"])
|
|
59
|
+
]),
|
|
60
|
+
_: 2
|
|
61
|
+
}, 1024))
|
|
62
|
+
]),
|
|
63
|
+
_: 3
|
|
64
|
+
}, 8, ["wrapper", "wrap", "promise", "url", "payload", "theme"])
|
|
65
|
+
]),
|
|
66
|
+
_: 3
|
|
67
|
+
}));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
export {
|
|
71
|
+
P as default
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-CDIdmENN.cjs"),s=e.defineComponent({name:"FormInputCountriesApi",inheritAttrs:!0,__name:"InputCountriesAPI",props:{model:{},countries:{},states:{default:()=>[]},loading:{type:Boolean},errors:{},refresh:{},theme:{},invertTheme:{type:Boolean},shadow:{type:[Boolean,Array]}},setup(t){const n=e.defineAsyncComponent({loader:()=>Promise.resolve().then(()=>require("./ContentFetch-DnFQ5Aq7.cjs")),loadingComponent:a._sfc_main$11}),l=t,{defaultCountry:u,getCountryStates:i,getStateCities:m}=a.useCountries(),r=e.computed(()=>l.model[0]||u||"");return(d,h)=>(e.openBlock(),e.createBlock(e.Suspense,null,{fallback:e.withCtx(()=>[e.createVNode(a._sfc_main$11,{theme:t.theme},null,8,["theme"])]),default:e.withCtx(()=>[e.createVNode(a._sfc_main$12,{wrapper:e.unref(n),wrap:!t.loading&&!t.states?.length,promise:e.unref(i),url:`/${t.model[0]}?states`,payload:[r.value],fallback:[],theme:t.theme,unwrap:""},{default:e.withCtx(o=>[(e.openBlock(),e.createBlock(e.Suspense,null,{fallback:e.withCtx(()=>[e.createVNode(a._sfc_main$11,{theme:t.theme},null,8,["theme"])]),default:e.withCtx(()=>[e.createVNode(a._sfc_main$12,{wrapper:e.unref(n),wrap:!t.loading&&!o?.loading&&!!t.model[1],promise:e.unref(m),url:`/${t.model[0]}/${t.model[1]}?cities`,payload:[r.value,t.model[1]],fallback:[],theme:t.theme,unwrap:""},{default:e.withCtx(c=>[e.renderSlot(d.$slots,"default",e.normalizeProps(e.guardReactiveProps({statesReq:o,citiesReq:c})))]),_:2},1032,["wrapper","wrap","promise","url","payload","theme"])]),_:2},1024))]),_:3},8,["wrapper","wrap","promise","url","payload","theme"])]),_:3}))}});exports.default=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CDIdmENN.cjs");exports.default=e._sfc_main$4;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CDIdmENN.cjs");exports.default=e._sfc_main$5;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CDIdmENN.cjs");exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CDIdmENN.cjs");exports.default=e._sfc_main$3;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CDIdmENN.cjs");exports.default=e._sfc_main$7;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import InputCountriesAPI from "./InputCountriesAPI.vue";
|
|
3
|
+
declare const meta: Meta<typeof InputCountriesAPI>;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
5
|
+
export declare const Sample: Story;
|
|
6
|
+
export default meta;
|
|
@@ -9,12 +9,12 @@ interface iFormInputCountriesApi extends iUseThemeProps {
|
|
|
9
9
|
errors?: unknown;
|
|
10
10
|
refresh?: (...args: any[]) => any;
|
|
11
11
|
}
|
|
12
|
-
declare var
|
|
12
|
+
declare var __VLS_37: {
|
|
13
13
|
statesReq: Record<string, any>;
|
|
14
14
|
citiesReq: Record<string, any>;
|
|
15
15
|
};
|
|
16
16
|
type __VLS_Slots = {} & {
|
|
17
|
-
default?: (props: typeof
|
|
17
|
+
default?: (props: typeof __VLS_37) => any;
|
|
18
18
|
};
|
|
19
19
|
declare const __VLS_base: import("vue").DefineComponent<iFormInputCountriesApi, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iFormInputCountriesApi> & Readonly<{}>, {
|
|
20
20
|
states: iState[];
|
|
@@ -1,24 +1,7 @@
|
|
|
1
1
|
import type { iInvalidInput } from "@open-xamu-co/ui-common-types";
|
|
2
2
|
import type { tFormInput } from "@open-xamu-co/ui-common-types";
|
|
3
3
|
import { eFormTypeSimple } from "@open-xamu-co/ui-common-enums";
|
|
4
|
-
import type {
|
|
5
|
-
export interface iFormSimple<P extends any[]> extends iUseThemeProps {
|
|
6
|
-
title?: string;
|
|
7
|
-
emptyMessage?: string;
|
|
8
|
-
modelValue?: tFormInput[];
|
|
9
|
-
noForm?: boolean;
|
|
10
|
-
invalid?: iInvalidInput[];
|
|
11
|
-
/**
|
|
12
|
-
* If the make function requires a payload
|
|
13
|
-
*/
|
|
14
|
-
payload?: P;
|
|
15
|
-
/**
|
|
16
|
-
* Make model
|
|
17
|
-
*/
|
|
18
|
-
make?: ((...args: P) => tFormInput[]) | ((...args: P) => Promise<tFormInput[]>);
|
|
19
|
-
/** Make all inputs read only by disabling them */
|
|
20
|
-
readonly?: boolean;
|
|
21
|
-
}
|
|
4
|
+
import type { iFormSimple } from "../../types/props";
|
|
22
5
|
declare const __VLS_export: <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<{
|
|
23
6
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<iFormSimple<P> & {
|
|
24
7
|
"onUpdate:model-value"?: ((args_0: tFormInput<import("@open-xamu-co/ui-common-types").iFormValue | import("@open-xamu-co/ui-common-types").iFormValue[], import("@open-xamu-co/ui-common-enums").eFormTypeBase | eFormTypeSimple | import("@open-xamu-co/ui-common-enums").eFormTypeComplex>[]) => any) | undefined;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
-
import type { iFormOption } from "@open-xamu-co/ui-common-types";
|
|
3
2
|
import SelectFilter from "./Filter.vue";
|
|
4
3
|
declare const meta: Meta<typeof SelectFilter>;
|
|
5
4
|
type Story = StoryObj<typeof meta>;
|
|
6
5
|
export declare const Sample: Story;
|
|
7
6
|
export declare const WithOptions: Story;
|
|
8
|
-
/** Emulate async options loader */
|
|
9
|
-
export declare function mockOptionsLoader(query?: string | number): Promise<iFormOption[]>;
|
|
10
7
|
export declare const AsyncOptions: Story;
|
|
11
8
|
export default meta;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export interface iTableBodyProps<Ti extends Record<string, any>, TMi extends Record<string, any> = Ti> extends iTableChildProps<Ti, TMi> {
|
|
3
|
-
}
|
|
1
|
+
import type { iTableBodyProps } from "../../types/props";
|
|
4
2
|
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
3
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<iTableBodyProps<T, TM>> & (typeof globalThis extends {
|
|
6
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { tProps, tSizeModifier, iProperty } from "@open-xamu-co/ui-common-types";
|
|
3
|
-
import type { iModalProps, iUseThemeProps } from "../../types/props";
|
|
4
|
-
/**
|
|
5
|
-
* Simple value
|
|
6
|
-
*
|
|
7
|
-
* TODO: trigger gallery/slideshow, component/modal (Complex value)
|
|
8
|
-
*
|
|
9
|
-
* @component
|
|
10
|
-
*/
|
|
11
|
-
export interface iValueSimpleProps<Pi extends Record<string, any>> extends iUseThemeProps {
|
|
12
|
-
/**
|
|
13
|
-
* Cell value
|
|
14
|
-
*/
|
|
15
|
-
value: Pi[keyof Pi];
|
|
16
|
-
/**
|
|
17
|
-
* Cell column property
|
|
18
|
-
*/
|
|
19
|
-
property?: iProperty<Pi>;
|
|
20
|
-
readonly?: boolean;
|
|
21
|
-
classes?: tProps<string>;
|
|
22
|
-
modalProps?: iModalProps & AllowedComponentProps;
|
|
23
|
-
verbose?: boolean;
|
|
24
|
-
size?: tSizeModifier;
|
|
25
|
-
}
|
|
1
|
+
import type { iValueSimpleProps } from "../../types/props";
|
|
26
2
|
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
3
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<iValueSimpleProps<P>> & (typeof globalThis extends {
|
|
28
4
|
__VLS_PROPS_FALLBACK: infer P_1;
|