@illinois-grad/grad-vue 4.0.4 → 5.0.0
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/custom-elements.json +34 -33
- package/dist/components/GTable.vue.d.ts +22 -8
- package/dist/{grad-vue-BP-cplar.js → grad-vue-DId9tLsv.js} +681 -514
- package/dist/{grad-vue-BP-cplar.js.map → grad-vue-DId9tLsv.js.map} +1 -1
- package/dist/grad-vue-elements.css +31 -31
- package/dist/grad-vue-elements.d.ts +7 -6
- package/dist/grad-vue-elements.js +900 -731
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.css +1 -1
- package/dist/grad-vue.d.ts +1 -2
- package/dist/grad-vue.js +2 -2
- package/dist/plugin.d.ts +1 -2
- package/dist/plugin.js +4 -4
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -2092,7 +2092,7 @@
|
|
|
2092
2092
|
"text": "number"
|
|
2093
2093
|
},
|
|
2094
2094
|
"optional": true,
|
|
2095
|
-
"description": "Result count for all of the possible results (not just the current page) This is shown in the toolbar."
|
|
2095
|
+
"description": "Result count for all of the possible results (not just the current page) This is shown in the toolbar and used by built-in pagination."
|
|
2096
2096
|
},
|
|
2097
2097
|
{
|
|
2098
2098
|
"kind": "field",
|
|
@@ -2148,6 +2148,25 @@
|
|
|
2148
2148
|
"optional": false,
|
|
2149
2149
|
"description": "The starting index for this page This is used for the ARIA rowindex attribute, and is VERY important to not get wrong."
|
|
2150
2150
|
},
|
|
2151
|
+
{
|
|
2152
|
+
"kind": "field",
|
|
2153
|
+
"name": "pageSize",
|
|
2154
|
+
"type": {
|
|
2155
|
+
"text": "number"
|
|
2156
|
+
},
|
|
2157
|
+
"optional": true,
|
|
2158
|
+
"description": "Current page size for the built-in pagination controls."
|
|
2159
|
+
},
|
|
2160
|
+
{
|
|
2161
|
+
"kind": "field",
|
|
2162
|
+
"name": "pageSizes",
|
|
2163
|
+
"type": {
|
|
2164
|
+
"text": "number[]"
|
|
2165
|
+
},
|
|
2166
|
+
"optional": true,
|
|
2167
|
+
"description": "Available page sizes for the built-in pagination controls.",
|
|
2168
|
+
"default": "() => [10, 25, 50, 100]"
|
|
2169
|
+
},
|
|
2151
2170
|
{
|
|
2152
2171
|
"kind": "field",
|
|
2153
2172
|
"name": "bulkSelectionEnabled",
|
|
@@ -2179,12 +2198,12 @@
|
|
|
2179
2198
|
},
|
|
2180
2199
|
{
|
|
2181
2200
|
"kind": "field",
|
|
2182
|
-
"name": "
|
|
2201
|
+
"name": "pagination",
|
|
2183
2202
|
"type": {
|
|
2184
2203
|
"text": "boolean"
|
|
2185
2204
|
},
|
|
2186
2205
|
"optional": true,
|
|
2187
|
-
"description": "
|
|
2206
|
+
"description": "Enable the built-in pagination controls.",
|
|
2188
2207
|
"default": "false"
|
|
2189
2208
|
},
|
|
2190
2209
|
{
|
|
@@ -2238,6 +2257,18 @@
|
|
|
2238
2257
|
"type": {
|
|
2239
2258
|
"text": "CustomEvent"
|
|
2240
2259
|
}
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
"name": "update:startIndex",
|
|
2263
|
+
"type": {
|
|
2264
|
+
"text": "CustomEvent"
|
|
2265
|
+
}
|
|
2266
|
+
},
|
|
2267
|
+
{
|
|
2268
|
+
"name": "update:pageSize",
|
|
2269
|
+
"type": {
|
|
2270
|
+
"text": "CustomEvent"
|
|
2271
|
+
}
|
|
2241
2272
|
}
|
|
2242
2273
|
]
|
|
2243
2274
|
}
|
|
@@ -2364,36 +2395,6 @@
|
|
|
2364
2395
|
}
|
|
2365
2396
|
]
|
|
2366
2397
|
},
|
|
2367
|
-
{
|
|
2368
|
-
"kind": "javascript-module",
|
|
2369
|
-
"path": "dist/web-components.js",
|
|
2370
|
-
"declarations": [
|
|
2371
|
-
{
|
|
2372
|
-
"kind": "custom-element",
|
|
2373
|
-
"name": "GTablePaginationElement",
|
|
2374
|
-
"tagName": "g-table-pagination",
|
|
2375
|
-
"members": [
|
|
2376
|
-
{
|
|
2377
|
-
"kind": "field",
|
|
2378
|
-
"name": "start",
|
|
2379
|
-
"type": {
|
|
2380
|
-
"text": "number"
|
|
2381
|
-
},
|
|
2382
|
-
"optional": true
|
|
2383
|
-
},
|
|
2384
|
-
{
|
|
2385
|
-
"kind": "field",
|
|
2386
|
-
"name": "pageSize",
|
|
2387
|
-
"type": {
|
|
2388
|
-
"text": "number"
|
|
2389
|
-
},
|
|
2390
|
-
"optional": true
|
|
2391
|
-
}
|
|
2392
|
-
],
|
|
2393
|
-
"events": []
|
|
2394
|
-
}
|
|
2395
|
-
]
|
|
2396
|
-
},
|
|
2397
2398
|
{
|
|
2398
2399
|
"kind": "javascript-module",
|
|
2399
2400
|
"path": "dist/web-components.js",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TableColumn, TableRow, TableSort } from "./table/TableColumn.ts";
|
|
2
|
-
import { VNode } from "vue";
|
|
3
|
-
import { UseFilteringReturn } from "../compose/useFiltering.ts";
|
|
4
|
-
import { CellChangePayload, UseTableChangesReturn } from "../compose/useTableChanges.ts";
|
|
1
|
+
import type { TableColumn, TableRow, TableSort } from "./table/TableColumn.ts";
|
|
2
|
+
import type { VNode } from "vue";
|
|
3
|
+
import type { UseFilteringReturn } from "../compose/useFiltering.ts";
|
|
4
|
+
import type { CellChangePayload, UseTableChangesReturn } from "../compose/useTableChanges.ts";
|
|
5
5
|
export interface BulkAction {
|
|
6
6
|
/**
|
|
7
7
|
* Action identifier
|
|
@@ -43,6 +43,8 @@ export interface BulkAction {
|
|
|
43
43
|
* with the link `href` from the first link in the row.
|
|
44
44
|
*
|
|
45
45
|
* Grouping can be enabled by passing a column key to `groupBy`.
|
|
46
|
+
*
|
|
47
|
+
* The controls bar can be extended with the `controls` slot.
|
|
46
48
|
*/
|
|
47
49
|
declare const _default: typeof __VLS_export;
|
|
48
50
|
export default _default;
|
|
@@ -71,7 +73,7 @@ declare const __VLS_export: <T extends TableRow, C extends TableColumn<T>>(__VLS
|
|
|
71
73
|
/**
|
|
72
74
|
* Result count for all of the possible results (not just the current page)
|
|
73
75
|
*
|
|
74
|
-
* This is shown in the toolbar.
|
|
76
|
+
* This is shown in the toolbar and used by built-in pagination.
|
|
75
77
|
*/
|
|
76
78
|
resultCount?: number;
|
|
77
79
|
/**
|
|
@@ -107,6 +109,14 @@ declare const __VLS_export: <T extends TableRow, C extends TableColumn<T>>(__VLS
|
|
|
107
109
|
* to not get wrong.
|
|
108
110
|
*/
|
|
109
111
|
startIndex: number;
|
|
112
|
+
/**
|
|
113
|
+
* Current page size for the built-in pagination controls.
|
|
114
|
+
*/
|
|
115
|
+
pageSize?: number;
|
|
116
|
+
/**
|
|
117
|
+
* Available page sizes for the built-in pagination controls.
|
|
118
|
+
*/
|
|
119
|
+
pageSizes?: number[];
|
|
110
120
|
/**
|
|
111
121
|
* Enable bulk selection with checkboxes
|
|
112
122
|
* @demo
|
|
@@ -122,10 +132,10 @@ declare const __VLS_export: <T extends TableRow, C extends TableColumn<T>>(__VLS
|
|
|
122
132
|
*/
|
|
123
133
|
changeTracker?: UseTableChangesReturn<T>;
|
|
124
134
|
/**
|
|
125
|
-
*
|
|
135
|
+
* Enable the built-in pagination controls.
|
|
126
136
|
* @demo
|
|
127
137
|
*/
|
|
128
|
-
|
|
138
|
+
pagination?: boolean;
|
|
129
139
|
} & {
|
|
130
140
|
sorts?: TableSort<T>[];
|
|
131
141
|
filter?: Partial<Record<keyof T, any>>;
|
|
@@ -134,10 +144,12 @@ declare const __VLS_export: <T extends TableRow, C extends TableColumn<T>>(__VLS
|
|
|
134
144
|
}) & {
|
|
135
145
|
"onRow-click"?: ((link: string) => any) | undefined;
|
|
136
146
|
"onCell-change"?: ((payload: CellChangePayload<T, Extract<keyof T, string>>) => any) | undefined;
|
|
147
|
+
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
137
148
|
"onUpdate:sorts"?: ((value: TableSort<T, Extract<keyof T, string>>[]) => any) | undefined;
|
|
138
149
|
"onUpdate:filter"?: ((value: Partial<Record<keyof T, any>>) => any) | undefined;
|
|
139
150
|
"onUpdate:columnVisibility"?: ((value: Partial<Record<Extract<keyof T, string>, boolean>>) => any) | undefined;
|
|
140
151
|
"onUpdate:selectedRows"?: ((value: string[]) => any) | undefined;
|
|
152
|
+
"onUpdate:startIndex"?: ((value: number) => any) | undefined;
|
|
141
153
|
"onBulk-action"?: ((actionId: string, selectedKeys: string[]) => any) | undefined;
|
|
142
154
|
}> & (typeof globalThis extends {
|
|
143
155
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -145,12 +157,14 @@ declare const __VLS_export: <T extends TableRow, C extends TableColumn<T>>(__VLS
|
|
|
145
157
|
expose: (exposed: {}) => void;
|
|
146
158
|
attrs: any;
|
|
147
159
|
slots: {
|
|
148
|
-
|
|
160
|
+
controls?: () => any;
|
|
149
161
|
};
|
|
150
162
|
emit: {
|
|
151
163
|
(e: "row-click", link: string): void;
|
|
152
164
|
(e: "bulk-action", actionId: string, selectedKeys: string[]): void;
|
|
153
165
|
(e: "cell-change", payload: CellChangePayload<T>): void;
|
|
166
|
+
(e: "update:startIndex", value: number): void;
|
|
167
|
+
(e: "update:pageSize", value: number): void;
|
|
154
168
|
} & (((event: "update:sorts", value: TableSort<T, Extract<keyof T, string>>[]) => void) & ((event: "update:filter", value: Partial<Record<keyof T, any>>) => void) & ((event: "update:columnVisibility", value: Partial<Record<Extract<keyof T, string>, boolean>>) => void) & ((event: "update:selectedRows", value: string[]) => void));
|
|
155
169
|
}>) => import("vue").VNode & {
|
|
156
170
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|