@open-xamu-co/ui-components-vue 4.0.0-next.21 → 4.0.0-next.23
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/components/collapse/Simple.vue.d.ts +1 -0
- package/dist/components/form/Input.stories.d.ts +1 -0
- package/dist/components/form/InputOptions.vue.d.ts +4 -3
- package/dist/components/loader/ContentFetch.vue.d.ts +1 -1
- package/dist/components/select/Filter.stories.d.ts +4 -0
- package/dist/composables/async.d.ts +2 -2
- package/dist/{index-BkugQnzT.cjs → index-BVK9giT4.cjs} +39 -39
- package/dist/{index-DJHxJ3Bp.js → index-CIQ1i-47.js} +7046 -7006
- 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/base.d.ts +2 -2
- package/package.json +4 -4
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.23](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.22...@open-xamu-co/ui-components-vue-v4.0.0-next.23) (2026-05-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **collapse:** target indicator modifier ([9860062](https://github.com/xamu-co/ui/commit/986006200559aa48d2345931cb3d3d075f14d3c1))
|
|
9
|
+
* **vue:** fixes & refactoring for async options handling ([f4d51bf](https://github.com/xamu-co/ui/commit/f4d51bf69ff8e9e8f62c0e645fd3596fb96bc642))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **forms:** accept async function for input options ([e8ebf68](https://github.com/xamu-co/ui/commit/e8ebf688f4fd71bd049883eb2961b36be579b1c2))
|
|
15
|
+
* **vue:** select filter with async options ([c36568c](https://github.com/xamu-co/ui/commit/c36568cfe7e68d0902b3cc8035c50d3dc99d22c5))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
[34mUpdating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.23"[0m
|
|
22
|
+
[34mUpdating "nuxt"[0m
|
|
23
|
+
[34mSuccesfully updated "nuxt" package[0m
|
|
24
|
+
|
|
25
|
+
# [@open-xamu-co/ui-components-vue-v4.0.0-next.22](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.21...@open-xamu-co/ui-components-vue-v4.0.0-next.22) (2026-05-11)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **vue:** allow setting max file size from input meta ([876d45e](https://github.com/xamu-co/ui/commit/876d45ed27005fa3188b2806c93f8d04c9692e42))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
[34mUpdating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.22"[0m
|
|
37
|
+
[34mUpdating "nuxt"[0m
|
|
38
|
+
[34mSuccesfully updated "nuxt" package[0m
|
|
39
|
+
|
|
3
40
|
# [@open-xamu-co/ui-components-vue-v4.0.0-next.21](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.20...@open-xamu-co/ui-components-vue-v4.0.0-next.21) (2026-05-10)
|
|
4
41
|
|
|
5
42
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { tFormInput } from "@open-xamu-co/ui-common-types";
|
|
1
|
+
import type { iFormOption, tFormInput } from "@open-xamu-co/ui-common-types";
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
input: tFormInput;
|
|
4
4
|
/**
|
|
@@ -8,12 +8,13 @@ type __VLS_Props = {
|
|
|
8
8
|
/**
|
|
9
9
|
* Currently selected values
|
|
10
10
|
* When `input.multiple === true`
|
|
11
|
+
* @example [selectedValue, ...otherValues]
|
|
11
12
|
*/
|
|
12
13
|
selectedValues?: (number | string)[];
|
|
13
14
|
};
|
|
14
15
|
declare var __VLS_1: {
|
|
15
|
-
key: number;
|
|
16
|
-
options: {
|
|
16
|
+
key: string | number;
|
|
17
|
+
options: ((v?: string | number, signal?: AbortSignal) => Promise<iFormOption[]>) | {
|
|
17
18
|
icon?: import("@fortawesome/fontawesome-common-types").IconName | undefined;
|
|
18
19
|
pattern?: string | undefined;
|
|
19
20
|
placeholder?: string | undefined;
|
|
@@ -63,7 +63,7 @@ declare const __VLS_export: <T, P extends any[] = any[]>(__VLS_props: NonNullabl
|
|
|
63
63
|
content: NonNullable<T>;
|
|
64
64
|
refresh: (opts?: any) => Promise<void>;
|
|
65
65
|
loading: boolean;
|
|
66
|
-
errors:
|
|
66
|
+
errors: any;
|
|
67
67
|
hydrate: (newContent: T | null, newErrors?: unknown) => void;
|
|
68
68
|
}) => any;
|
|
69
69
|
};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import type { iFormOption } from "@open-xamu-co/ui-common-types";
|
|
2
3
|
import SelectFilter from "./Filter.vue";
|
|
3
4
|
declare const meta: Meta<typeof SelectFilter>;
|
|
4
5
|
type Story = StoryObj<typeof meta>;
|
|
5
6
|
export declare const Sample: Story;
|
|
6
7
|
export declare const WithOptions: Story;
|
|
8
|
+
/** Emulate async options loader */
|
|
9
|
+
export declare function mockOptionsLoader(query?: string | number): Promise<iFormOption[]>;
|
|
10
|
+
export declare const AsyncOptions: Story;
|
|
7
11
|
export default meta;
|
|
@@ -20,6 +20,6 @@ type tAsyncDataHandler<T> = (nuxtApp?: any, options?: {
|
|
|
20
20
|
*
|
|
21
21
|
* @see https://nuxt.com/docs/api/composables/use-async-data#type
|
|
22
22
|
*/
|
|
23
|
-
export declare function useAsyncDataFn<T, E>(handler: tAsyncDataHandler<T>, options?: AsyncDataOptions<T>): iAsyncData<T, E>;
|
|
24
|
-
export declare function useAsyncDataFn<T, E>(key: string, handler: tAsyncDataHandler<T>, options?: AsyncDataOptions<T>): iAsyncData<T, E>;
|
|
23
|
+
export declare function useAsyncDataFn<T, E = any>(handler: tAsyncDataHandler<T>, options?: AsyncDataOptions<T>): iAsyncData<T, E>;
|
|
24
|
+
export declare function useAsyncDataFn<T, E = any>(key: string, handler: tAsyncDataHandler<T>, options?: AsyncDataOptions<T>): iAsyncData<T, E>;
|
|
25
25
|
export {};
|