@soybeanjs/ui 0.13.0 → 0.13.2
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/dist/components/alert-dialog/alert-dialog.vue.d.ts +1 -1
- package/dist/components/command/command.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-pure.vue.d.ts +1 -1
- package/dist/components/dialog/dialog.vue.d.ts +1 -1
- package/dist/components/drawer/drawer.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper.vue.d.ts +1 -1
- package/dist/components/popconfirm/popconfirm.vue.d.ts +2 -2
- package/dist/components/table/hooks.js +1 -1
- package/package.json +3 -3
|
@@ -29,10 +29,10 @@ declare const __VLS_base: vue.DefineComponent<AlertDialogProps, {}, {}, {}, {},
|
|
|
29
29
|
onClose?: (() => any) | undefined;
|
|
30
30
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
31
31
|
}>, {
|
|
32
|
+
showCancel: "onlyWarning" | boolean;
|
|
32
33
|
open: boolean;
|
|
33
34
|
defaultOpen: boolean;
|
|
34
35
|
showIcon: boolean;
|
|
35
|
-
showCancel: "onlyWarning" | boolean;
|
|
36
36
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
37
37
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
38
38
|
declare const _default: typeof __VLS_export;
|
|
@@ -8,8 +8,8 @@ declare const __VLS_export: <T extends CommandBaseOptionData = CommandBaseOption
|
|
|
8
8
|
props: vue.PublicProps & __VLS_PrettifyLocal<CommandProps<T> & {
|
|
9
9
|
onSelect?: ((event: _soybeanjs_headless0.SelectEvent<string>) => any) | undefined;
|
|
10
10
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
-
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
12
11
|
onHighlight?: ((payload?: _soybeanjs_headless_composables0.CollectionItemData<_soybeanjs_headless0.ListboxCollectionItemData> | undefined) => any) | undefined;
|
|
12
|
+
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
13
13
|
onLeave?: ((event: Event) => any) | undefined;
|
|
14
14
|
"onUpdate:searchTerm"?: ((value: string) => any) | undefined;
|
|
15
15
|
}> & (typeof globalThis extends {
|
|
@@ -38,7 +38,7 @@ declare const __VLS_export: <T extends CommandBaseOptionData = CommandBaseOption
|
|
|
38
38
|
} & {
|
|
39
39
|
bottom?: (props: {}) => any;
|
|
40
40
|
};
|
|
41
|
-
emit: ((evt: "select", event: _soybeanjs_headless0.SelectEvent<string>) => void) & ((evt: "update:modelValue", value: string) => void) & ((evt: "
|
|
41
|
+
emit: ((evt: "select", event: _soybeanjs_headless0.SelectEvent<string>) => void) & ((evt: "update:modelValue", value: string) => void) & ((evt: "highlight", payload?: _soybeanjs_headless_composables0.CollectionItemData<_soybeanjs_headless0.ListboxCollectionItemData> | undefined) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "leave", event: Event) => void) & ((evt: "update:searchTerm", value: string) => void);
|
|
42
42
|
}>) => vue.VNode & {
|
|
43
43
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
44
44
|
};
|
|
@@ -31,10 +31,10 @@ declare const __VLS_base: vue.DefineComponent<DialogPureProps, {}, {}, {}, {}, v
|
|
|
31
31
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
32
32
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
|
+
modal: boolean;
|
|
34
35
|
closable: boolean;
|
|
35
36
|
open: boolean;
|
|
36
37
|
defaultOpen: boolean;
|
|
37
|
-
modal: boolean;
|
|
38
38
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
39
39
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
40
40
|
declare const _default: typeof __VLS_export;
|
|
@@ -46,10 +46,10 @@ declare const __VLS_base: vue.DefineComponent<DialogProps, {}, {}, {}, {}, vue.C
|
|
|
46
46
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
47
47
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
48
48
|
}>, {
|
|
49
|
+
modal: boolean;
|
|
49
50
|
closable: boolean;
|
|
50
51
|
open: boolean;
|
|
51
52
|
defaultOpen: boolean;
|
|
52
|
-
modal: boolean;
|
|
53
53
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
54
54
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
55
55
|
declare const _default: typeof __VLS_export;
|
|
@@ -46,10 +46,10 @@ declare const __VLS_base: vue.DefineComponent<DrawerProps, {}, {}, {}, {}, vue.C
|
|
|
46
46
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
47
47
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
48
48
|
}>, {
|
|
49
|
+
modal: boolean;
|
|
49
50
|
closable: boolean;
|
|
50
51
|
open: boolean;
|
|
51
52
|
defaultOpen: boolean;
|
|
52
|
-
modal: boolean;
|
|
53
53
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
54
54
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
55
55
|
declare const _default: typeof __VLS_export;
|
|
@@ -28,8 +28,8 @@ declare const __VLS_base: vue.DefineComponent<DropdownMenuWrapperProps, {}, {},
|
|
|
28
28
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
29
29
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
30
30
|
}>, {
|
|
31
|
-
open: boolean;
|
|
32
31
|
modal: boolean;
|
|
32
|
+
open: boolean;
|
|
33
33
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
35
|
declare const _default: typeof __VLS_export;
|
|
@@ -44,11 +44,11 @@ declare const __VLS_base: vue.DefineComponent<PopconfirmProps, {}, {}, {}, {}, v
|
|
|
44
44
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
45
45
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
46
46
|
}>, {
|
|
47
|
+
showCancel: "onlyWarning" | boolean;
|
|
48
|
+
modal: boolean;
|
|
47
49
|
open: boolean;
|
|
48
50
|
defaultOpen: boolean;
|
|
49
|
-
modal: boolean;
|
|
50
51
|
showIcon: boolean;
|
|
51
|
-
showCancel: "onlyWarning" | boolean;
|
|
52
52
|
showArrow: boolean;
|
|
53
53
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
54
54
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{shallowRef as e,watch as t}from"vue";import{useTable as n}from"@soybeanjs/hooks";function r(e){return n({...e,getColumnChecks:a,getColumns:o})}function i(r){let{page:i=1,pageSize:s=10,fetchOnPaginationChange:c=!0}=r,
|
|
1
|
+
import{shallowRef as e,watch as t}from"vue";import{useTable as n}from"@soybeanjs/hooks";function r(e){return n({...e,getColumnChecks:a,getColumns:o})}function i(r){let{page:i=1,pageSize:s=10,fetchOnPaginationChange:c=!0,onFetched:l}=r,u=e(i),d=e(s),f=e(0),p=n({...r,pagination:!0,getColumnChecks:a,getColumns:o,onFetched:e=>{e.total&&e.total!==f.value&&(f.value=e.total),e.page&&e.page!==u.value&&(u.value=e.page),e.pageSize&&e.pageSize!==d.value&&(d.value=e.pageSize),l?.(e)}});return t([u,d],()=>{c&&p.fetchData()},{flush:`post`}),{page:u,pageSize:d,total:f,...p}}function a(e){let t=[];return e.forEach(e=>{let{type:n,dataIndex:r,title:i,hidden:a}=e;if(n)return;let o=r,s={key:o,title:i||o,hidden:a,fixed:!1};t.push(s)}),t}function o(e,t){let n=new Map;return t.forEach(e=>{n.set(e.key,e)}),e.filter(e=>{if(e.type)return!0;let t=n.get(e.dataIndex);return t&&!t.hidden})}export{i as usePaginatedTable,r as useTable};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soybeanjs/ui",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"description": "SoybeanUI is built on top of SoybeanHeadless, providing a collection of styled components for Vue 3.",
|
|
5
5
|
"homepage": "https://github.com/soybeanjs/soybean-ui",
|
|
6
6
|
"bugs": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"tailwind-variants": "^3.2.2",
|
|
56
56
|
"valibot": "^1.3.1",
|
|
57
57
|
"zod": "^4.3.6",
|
|
58
|
-
"@soybeanjs/headless": "^0.13.
|
|
58
|
+
"@soybeanjs/headless": "^0.13.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@soybeanjs/cli": "^1.7.1",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@unocss/cli": "^66.6.7",
|
|
67
67
|
"@vitest/coverage-v8": "^4.1.0",
|
|
68
68
|
"@vue/test-utils": "^2.4.6",
|
|
69
|
-
"eslint": "^10.0
|
|
69
|
+
"eslint": "^10.1.0",
|
|
70
70
|
"happy-dom": "^20.8.4",
|
|
71
71
|
"lint-staged": "^16.4.0",
|
|
72
72
|
"oxfmt": "^0.41.0",
|