@dolusoft/query-table 3.5.1 → 3.6.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/dist/types/contract.d.ts
CHANGED
|
@@ -597,4 +597,15 @@ export interface QueryTableExpose {
|
|
|
597
597
|
* error. Nothing while `loading` or when there is no next page.
|
|
598
598
|
*/
|
|
599
599
|
loadMore(): void;
|
|
600
|
+
/**
|
|
601
|
+
* The width each drawn column needs for its content (C-99), by `field`:
|
|
602
|
+
* the header label and the cells of the drawn data rows, padding and
|
|
603
|
+
* border included, in whole pixels rounded up, as the browser lays them
|
|
604
|
+
* out without widths. The filter row and the resize handle do not count.
|
|
605
|
+
* Not clamped to `minWidth` and `maxWidth`. Only `fields`, when given; a
|
|
606
|
+
* hidden column, or a table that is not displayed, is left out. Emits
|
|
607
|
+
* nothing and keeps no width: writing one back as `Column.width` is the
|
|
608
|
+
* consumer's.
|
|
609
|
+
*/
|
|
610
|
+
measureColumnWidths(fields?: readonly string[]): Record<string, number>;
|
|
600
611
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The max-content width of each drawn column, by `field`: header label and
|
|
3
|
+
* the cells of the drawn data rows, padding and border included, in whole
|
|
4
|
+
* pixels rounded up. The browser lays the table out once with its automatic
|
|
5
|
+
* layout and no widths, the parts that do not count taken out, and every
|
|
6
|
+
* style is put back before the function returns: nothing is painted in
|
|
7
|
+
* between, and slot content that draws a block or a flex box counts with the
|
|
8
|
+
* width its content needs, not the width its cell gives it. Only `fields`
|
|
9
|
+
* when given; a column with no box (the table not displayed) is left out.
|
|
10
|
+
*/
|
|
11
|
+
export declare const measureColumnWidths: (table: HTMLTableElement | null | undefined, fields?: readonly string[]) => Record<string, number>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dolusoft/query-table",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "A thin Vue 3 table for server-side data: it renders rows and emits sort, filter, search and paging changes. Built on TanStack Table.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
],
|
|
46
46
|
"license": "MIT",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@dolusoft/query-protocol": "3.
|
|
49
|
-
"@dolusoft/query-table-core": "3.
|
|
48
|
+
"@dolusoft/query-protocol": "3.6.0",
|
|
49
|
+
"@dolusoft/query-table-core": "3.6.0",
|
|
50
50
|
"@tanstack/vue-table": "9.2.6"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|