@wpic/ui 0.9.21 → 0.9.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 +8 -0
- package/dist/components/WTable.vue.d.ts +13 -0
- package/dist/wpic-ui.cjs +58 -58
- package/dist/wpic-ui.css +1 -1
- package/dist/wpic-ui.js +1710 -1708
- package/package.json +1 -1
- package/src/style.css +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 0.9.23
|
|
2
|
+
|
|
3
|
+
- WTable: support controlled server sorting without reordering the current page locally.
|
|
4
|
+
|
|
5
|
+
## 0.9.22
|
|
6
|
+
|
|
7
|
+
- WTag: use text-sm for the default md size; the compact sm size keeps text-xs.
|
|
8
|
+
|
|
1
9
|
## 0.9.19
|
|
2
10
|
|
|
3
11
|
- WCard: add a shared Tailwind metric variant with single-line titles, standard value typography, trend actions and optional sparkline slot.
|
|
@@ -25,6 +25,11 @@ type __VLS_Props = {
|
|
|
25
25
|
pageSize?: number;
|
|
26
26
|
serverTotal?: number;
|
|
27
27
|
serverPage?: number;
|
|
28
|
+
/** Controlled sorting: emit changes and preserve the server row order. */
|
|
29
|
+
serverSort?: {
|
|
30
|
+
field: string | null;
|
|
31
|
+
direction: 'asc' | 'desc';
|
|
32
|
+
};
|
|
28
33
|
searchPlaceholder?: string;
|
|
29
34
|
rowClickable?: boolean;
|
|
30
35
|
showHeader?: boolean;
|
|
@@ -82,11 +87,19 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
82
87
|
"update:selectedKeys": (keys: (string | number)[]) => any;
|
|
83
88
|
"row-select": (row: Record<string, unknown>, selected: boolean) => any;
|
|
84
89
|
"update:serverPage": (page: number) => any;
|
|
90
|
+
"update:serverSort": (sort: {
|
|
91
|
+
field: string;
|
|
92
|
+
direction: "asc" | "desc";
|
|
93
|
+
}) => any;
|
|
85
94
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
86
95
|
"onRow-click"?: ((row: Record<string, unknown>) => any) | undefined;
|
|
87
96
|
"onUpdate:selectedKeys"?: ((keys: (string | number)[]) => any) | undefined;
|
|
88
97
|
"onRow-select"?: ((row: Record<string, unknown>, selected: boolean) => any) | undefined;
|
|
89
98
|
"onUpdate:serverPage"?: ((page: number) => any) | undefined;
|
|
99
|
+
"onUpdate:serverSort"?: ((sort: {
|
|
100
|
+
field: string;
|
|
101
|
+
direction: "asc" | "desc";
|
|
102
|
+
}) => any) | undefined;
|
|
90
103
|
}>, {
|
|
91
104
|
loadingSpinner: boolean;
|
|
92
105
|
searchPlaceholder: string;
|