@vuecs/table 1.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.
Files changed (58) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +59 -0
  3. package/dist/components/Table.vue.d.ts +511 -0
  4. package/dist/components/Table.vue.d.ts.map +1 -0
  5. package/dist/components/TableBody.vue.d.ts +43 -0
  6. package/dist/components/TableBody.vue.d.ts.map +1 -0
  7. package/dist/components/TableCell.vue.d.ts +182 -0
  8. package/dist/components/TableCell.vue.d.ts.map +1 -0
  9. package/dist/components/TableEmpty.vue.d.ts +104 -0
  10. package/dist/components/TableEmpty.vue.d.ts.map +1 -0
  11. package/dist/components/TableFooter.vue.d.ts +40 -0
  12. package/dist/components/TableFooter.vue.d.ts.map +1 -0
  13. package/dist/components/TableHeadCell.vue.d.ts +267 -0
  14. package/dist/components/TableHeadCell.vue.d.ts.map +1 -0
  15. package/dist/components/TableHeader.vue.d.ts +40 -0
  16. package/dist/components/TableHeader.vue.d.ts.map +1 -0
  17. package/dist/components/TableLite.vue.d.ts +250 -0
  18. package/dist/components/TableLite.vue.d.ts.map +1 -0
  19. package/dist/components/TableLoading.vue.d.ts +88 -0
  20. package/dist/components/TableLoading.vue.d.ts.map +1 -0
  21. package/dist/components/TableRow.vue.d.ts +116 -0
  22. package/dist/components/TableRow.vue.d.ts.map +1 -0
  23. package/dist/components/TableSortIndicators.vue.d.ts +335 -0
  24. package/dist/components/TableSortIndicators.vue.d.ts.map +1 -0
  25. package/dist/components/index.d.ts +23 -0
  26. package/dist/components/index.d.ts.map +1 -0
  27. package/dist/composables/context.d.ts +104 -0
  28. package/dist/composables/context.d.ts.map +1 -0
  29. package/dist/composables/define-table.d.ts +48 -0
  30. package/dist/composables/define-table.d.ts.map +1 -0
  31. package/dist/composables/index.d.ts +5 -0
  32. package/dist/composables/index.d.ts.map +1 -0
  33. package/dist/composables/selection.d.ts +10 -0
  34. package/dist/composables/selection.d.ts.map +1 -0
  35. package/dist/composables/sort.d.ts +61 -0
  36. package/dist/composables/sort.d.ts.map +1 -0
  37. package/dist/defaults.d.ts +41 -0
  38. package/dist/defaults.d.ts.map +1 -0
  39. package/dist/index.d.ts +18 -0
  40. package/dist/index.d.ts.map +1 -0
  41. package/dist/index.mjs +2081 -0
  42. package/dist/index.mjs.map +1 -0
  43. package/dist/style.css +145 -0
  44. package/dist/theme.d.ts +13 -0
  45. package/dist/theme.d.ts.map +1 -0
  46. package/dist/types.d.ts +248 -0
  47. package/dist/types.d.ts.map +1 -0
  48. package/dist/utils/auto-render.d.ts +31 -0
  49. package/dist/utils/auto-render.d.ts.map +1 -0
  50. package/dist/utils/index.d.ts +3 -0
  51. package/dist/utils/index.d.ts.map +1 -0
  52. package/dist/utils/render-utils.d.ts +49 -0
  53. package/dist/utils/render-utils.d.ts.map +1 -0
  54. package/dist/utils/sort-rows.d.ts +29 -0
  55. package/dist/utils/sort-rows.d.ts.map +1 -0
  56. package/dist/vue.d.ts +27 -0
  57. package/dist/vue.d.ts.map +1 -0
  58. package/package.json +62 -0
@@ -0,0 +1,182 @@
1
+ import type { ExtractPublicPropTypes, PropType, VNode } from 'vue';
2
+ import type { TableCellThemeClasses } from '../types';
3
+ declare const tableCellProps: {
4
+ themeClass: {
5
+ type: PropType<import("@vuecs/core").ThemeClassesOverride<TableCellThemeClasses>>;
6
+ default: any;
7
+ };
8
+ themeVariant: {
9
+ type: PropType<import("@vuecs/core").VariantValues>;
10
+ default: any;
11
+ };
12
+ /** Render as `<th scope="row">` instead of `<td>` (mirror of `column.isRowHeader`). */
13
+ isRowHeader: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ /**
18
+ * Column key this cell corresponds to — used to resolve
19
+ * `_cellVariants[key]` from row meta AND to look up the column's
20
+ * `accessor` / `formatter` for the default-render path.
21
+ */
22
+ columnKey: {
23
+ type: StringConstructor;
24
+ default: any;
25
+ };
26
+ /** Forward-compat for stacked-mode CSS — emitted as `data-label`. */
27
+ dataLabel: {
28
+ type: StringConstructor;
29
+ default: any;
30
+ };
31
+ /** Alignment helper — selects the `align.<value>` theme variant. */
32
+ align: {
33
+ type: PropType<"left" | "center" | "right">;
34
+ default: any;
35
+ };
36
+ /** `position: sticky` on this cell. Forwarded as `themeVariant.stickyColumn`. */
37
+ stickyColumn: {
38
+ type: BooleanConstructor;
39
+ default: any;
40
+ };
41
+ /**
42
+ * Renders a selection checkbox/radio for this row. Pairs with
43
+ * `<VCTableHeadCell isSelector>` to build a selection column.
44
+ * State mirrors `selection.isSelected(rowKey)`; clicking toggles
45
+ * that row independently of any row-click handler. Falls back
46
+ * to the default slot when selection is off.
47
+ */
48
+ isSelector: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ /** `aria-label` for the per-row checkbox (defaults to `'Select row'`). */
53
+ selectorAriaLabel: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ };
58
+ export type TableCellProps = ExtractPublicPropTypes<typeof tableCellProps>;
59
+ declare const _default: typeof __VLS_export;
60
+ export default _default;
61
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
62
+ themeClass: {
63
+ type: PropType<import("@vuecs/core").ThemeClassesOverride<TableCellThemeClasses>>;
64
+ default: any;
65
+ };
66
+ themeVariant: {
67
+ type: PropType<import("@vuecs/core").VariantValues>;
68
+ default: any;
69
+ };
70
+ /** Render as `<th scope="row">` instead of `<td>` (mirror of `column.isRowHeader`). */
71
+ isRowHeader: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ /**
76
+ * Column key this cell corresponds to — used to resolve
77
+ * `_cellVariants[key]` from row meta AND to look up the column's
78
+ * `accessor` / `formatter` for the default-render path.
79
+ */
80
+ columnKey: {
81
+ type: StringConstructor;
82
+ default: any;
83
+ };
84
+ /** Forward-compat for stacked-mode CSS — emitted as `data-label`. */
85
+ dataLabel: {
86
+ type: StringConstructor;
87
+ default: any;
88
+ };
89
+ /** Alignment helper — selects the `align.<value>` theme variant. */
90
+ align: {
91
+ type: PropType<"left" | "center" | "right">;
92
+ default: any;
93
+ };
94
+ /** `position: sticky` on this cell. Forwarded as `themeVariant.stickyColumn`. */
95
+ stickyColumn: {
96
+ type: BooleanConstructor;
97
+ default: any;
98
+ };
99
+ /**
100
+ * Renders a selection checkbox/radio for this row. Pairs with
101
+ * `<VCTableHeadCell isSelector>` to build a selection column.
102
+ * State mirrors `selection.isSelected(rowKey)`; clicking toggles
103
+ * that row independently of any row-click handler. Falls back
104
+ * to the default slot when selection is off.
105
+ */
106
+ isSelector: {
107
+ type: BooleanConstructor;
108
+ default: boolean;
109
+ };
110
+ /** `aria-label` for the per-row checkbox (defaults to `'Select row'`). */
111
+ selectorAriaLabel: {
112
+ type: StringConstructor;
113
+ default: string;
114
+ };
115
+ }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
116
+ [key: string]: any;
117
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
118
+ themeClass: {
119
+ type: PropType<import("@vuecs/core").ThemeClassesOverride<TableCellThemeClasses>>;
120
+ default: any;
121
+ };
122
+ themeVariant: {
123
+ type: PropType<import("@vuecs/core").VariantValues>;
124
+ default: any;
125
+ };
126
+ /** Render as `<th scope="row">` instead of `<td>` (mirror of `column.isRowHeader`). */
127
+ isRowHeader: {
128
+ type: BooleanConstructor;
129
+ default: boolean;
130
+ };
131
+ /**
132
+ * Column key this cell corresponds to — used to resolve
133
+ * `_cellVariants[key]` from row meta AND to look up the column's
134
+ * `accessor` / `formatter` for the default-render path.
135
+ */
136
+ columnKey: {
137
+ type: StringConstructor;
138
+ default: any;
139
+ };
140
+ /** Forward-compat for stacked-mode CSS — emitted as `data-label`. */
141
+ dataLabel: {
142
+ type: StringConstructor;
143
+ default: any;
144
+ };
145
+ /** Alignment helper — selects the `align.<value>` theme variant. */
146
+ align: {
147
+ type: PropType<"left" | "center" | "right">;
148
+ default: any;
149
+ };
150
+ /** `position: sticky` on this cell. Forwarded as `themeVariant.stickyColumn`. */
151
+ stickyColumn: {
152
+ type: BooleanConstructor;
153
+ default: any;
154
+ };
155
+ /**
156
+ * Renders a selection checkbox/radio for this row. Pairs with
157
+ * `<VCTableHeadCell isSelector>` to build a selection column.
158
+ * State mirrors `selection.isSelected(rowKey)`; clicking toggles
159
+ * that row independently of any row-click handler. Falls back
160
+ * to the default slot when selection is off.
161
+ */
162
+ isSelector: {
163
+ type: BooleanConstructor;
164
+ default: boolean;
165
+ };
166
+ /** `aria-label` for the per-row checkbox (defaults to `'Select row'`). */
167
+ selectorAriaLabel: {
168
+ type: StringConstructor;
169
+ default: string;
170
+ };
171
+ }>> & Readonly<{}>, {
172
+ themeClass: import("@vuecs/core").ThemeClassesOverride<TableCellThemeClasses>;
173
+ themeVariant: import("@vuecs/core").VariantValues;
174
+ isRowHeader: boolean;
175
+ columnKey: string;
176
+ dataLabel: string;
177
+ align: "left" | "center" | "right";
178
+ stickyColumn: boolean;
179
+ isSelector: boolean;
180
+ selectorAriaLabel: string;
181
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
182
+ //# sourceMappingURL=TableCell.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableCell.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableCell.vue"],"names":[],"mappings":"AA8NA,OAAO,KAAK,EACR,sBAAsB,EACtB,QAAQ,EACR,KAAK,EAER,MAAM,KAAK,CAAC;AAIb,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAItD,QAAA,MAAM,cAAc;;;;;;;;;IAChB,uFAAuF;;;;;IAEvF;;;;OAIG;;;;;IAEH,qEAAqE;;;;;IAErE,oEAAoE;;cAC3C,QAAQ,CAAC,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;;;IAC9D,iFAAiF;;;;;IAEjF;;;;;;OAMG;;;;;IAEH,0EAA0E;;;;;CAG7E,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,sBAAsB,CAAC,OAAO,cAAc,CAAC,CAAC;wBA2CtD,OAAO,YAAY;AAAxC,wBAAyC;AAQzC,QAAA,MAAM,YAAY;;;;;;;;;IA9Ed,uFAAuF;;;;;IAEvF;;;;OAIG;;;;;IAEH,qEAAqE;;;;;IAErE,oEAAoE;;cAC3C,QAAQ,CAAC,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;;;IAC9D,iFAAiF;;;;;IAEjF;;;;;;OAMG;;;;;IAEH,0EAA0E;;;;;;;;;;;;;;;;IAtB1E,uFAAuF;;;;;IAEvF;;;;OAIG;;;;;IAEH,qEAAqE;;;;;IAErE,oEAAoE;;cAC3C,QAAQ,CAAC,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;;;IAC9D,iFAAiF;;;;;IAEjF;;;;;;OAMG;;;;;IAEH,0EAA0E;;;;;;;;;;;;;;;4EA4K5E,CAAC"}
@@ -0,0 +1,104 @@
1
+ import type { ExtractPublicPropTypes } from 'vue';
2
+ import type { TableEmptyThemeClasses } from '../types';
3
+ declare const tableEmptyProps: {
4
+ themeClass: {
5
+ type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<TableEmptyThemeClasses>>;
6
+ default: any;
7
+ };
8
+ themeVariant: {
9
+ type: import("vue").PropType<import("@vuecs/core").VariantValues>;
10
+ default: any;
11
+ };
12
+ /** Override the auto-derived `colspan`. When omitted, uses the table's resolved colspan. */
13
+ colspan: {
14
+ type: NumberConstructor;
15
+ default: any;
16
+ };
17
+ /** Mark this as the empty-after-filter case (distinct copy / icon vs empty-no-data). */
18
+ filtered: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ /** Override the rendered text. Falls back to global defaults / hardcoded. */
23
+ content: {
24
+ type: StringConstructor;
25
+ default: any;
26
+ };
27
+ /** Override the rendered text for the filtered case. */
28
+ filteredContent: {
29
+ type: StringConstructor;
30
+ default: any;
31
+ };
32
+ };
33
+ export type TableEmptyProps = ExtractPublicPropTypes<typeof tableEmptyProps>;
34
+ declare const _default: typeof __VLS_export;
35
+ export default _default;
36
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
37
+ themeClass: {
38
+ type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<TableEmptyThemeClasses>>;
39
+ default: any;
40
+ };
41
+ themeVariant: {
42
+ type: import("vue").PropType<import("@vuecs/core").VariantValues>;
43
+ default: any;
44
+ };
45
+ /** Override the auto-derived `colspan`. When omitted, uses the table's resolved colspan. */
46
+ colspan: {
47
+ type: NumberConstructor;
48
+ default: any;
49
+ };
50
+ /** Mark this as the empty-after-filter case (distinct copy / icon vs empty-no-data). */
51
+ filtered: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ /** Override the rendered text. Falls back to global defaults / hardcoded. */
56
+ content: {
57
+ type: StringConstructor;
58
+ default: any;
59
+ };
60
+ /** Override the rendered text for the filtered case. */
61
+ filteredContent: {
62
+ type: StringConstructor;
63
+ default: any;
64
+ };
65
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
66
+ [key: string]: any;
67
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
68
+ themeClass: {
69
+ type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<TableEmptyThemeClasses>>;
70
+ default: any;
71
+ };
72
+ themeVariant: {
73
+ type: import("vue").PropType<import("@vuecs/core").VariantValues>;
74
+ default: any;
75
+ };
76
+ /** Override the auto-derived `colspan`. When omitted, uses the table's resolved colspan. */
77
+ colspan: {
78
+ type: NumberConstructor;
79
+ default: any;
80
+ };
81
+ /** Mark this as the empty-after-filter case (distinct copy / icon vs empty-no-data). */
82
+ filtered: {
83
+ type: BooleanConstructor;
84
+ default: boolean;
85
+ };
86
+ /** Override the rendered text. Falls back to global defaults / hardcoded. */
87
+ content: {
88
+ type: StringConstructor;
89
+ default: any;
90
+ };
91
+ /** Override the rendered text for the filtered case. */
92
+ filteredContent: {
93
+ type: StringConstructor;
94
+ default: any;
95
+ };
96
+ }>> & Readonly<{}>, {
97
+ themeClass: import("@vuecs/core").ThemeClassesOverride<TableEmptyThemeClasses>;
98
+ themeVariant: import("@vuecs/core").VariantValues;
99
+ colspan: number;
100
+ filtered: boolean;
101
+ content: string;
102
+ filteredContent: string;
103
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
104
+ //# sourceMappingURL=TableEmpty.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableEmpty.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableEmpty.vue"],"names":[],"mappings":"AAsGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAQlD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AASvD,QAAA,MAAM,eAAe;;;;;;;;;IACjB,4FAA4F;;;;;IAE5F,wFAAwF;;;;;IAExF,6EAA6E;;;;;IAE7E,wDAAwD;;;;;CAG3D,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,sBAAsB,CAAC,OAAO,eAAe,CAAC,CAAC;wBAExD,OAAO,YAAY;AAAxC,wBAAyC;AAQzC,QAAA,MAAM,YAAY;;;;;;;;;IArBd,4FAA4F;;;;;IAE5F,wFAAwF;;;;;IAExF,6EAA6E;;;;;IAE7E,wDAAwD;;;;;;;;;;;;;;;;IANxD,4FAA4F;;;;;IAE5F,wFAAwF;;;;;IAExF,6EAA6E;;;;;IAE7E,wDAAwD;;;;;;;;;;;;4EAoE1D,CAAC"}
@@ -0,0 +1,40 @@
1
+ import type { ExtractPublicPropTypes } from 'vue';
2
+ import type { TableFooterThemeClasses } from '../types';
3
+ declare const tableFooterProps: {
4
+ themeClass: {
5
+ type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<TableFooterThemeClasses>>;
6
+ default: any;
7
+ };
8
+ themeVariant: {
9
+ type: import("vue").PropType<import("@vuecs/core").VariantValues>;
10
+ default: any;
11
+ };
12
+ };
13
+ export type TableFooterProps = ExtractPublicPropTypes<typeof tableFooterProps>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
17
+ themeClass: {
18
+ type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<TableFooterThemeClasses>>;
19
+ default: any;
20
+ };
21
+ themeVariant: {
22
+ type: import("vue").PropType<import("@vuecs/core").VariantValues>;
23
+ default: any;
24
+ };
25
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
26
+ [key: string]: any;
27
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28
+ themeClass: {
29
+ type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<TableFooterThemeClasses>>;
30
+ default: any;
31
+ };
32
+ themeVariant: {
33
+ type: import("vue").PropType<import("@vuecs/core").VariantValues>;
34
+ default: any;
35
+ };
36
+ }>> & Readonly<{}>, {
37
+ themeClass: import("@vuecs/core").ThemeClassesOverride<TableFooterThemeClasses>;
38
+ themeVariant: import("@vuecs/core").VariantValues;
39
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
40
+ //# sourceMappingURL=TableFooter.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableFooter.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableFooter.vue"],"names":[],"mappings":"AAyCA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAGlD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAIxD,QAAA,MAAM,gBAAgB;;;;;;;;;CAAkD,CAAC;AAEzE,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,OAAO,gBAAgB,CAAC,CAAC;wBAE1D,OAAO,YAAY;AAAxC,wBAAyC;AAQzC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;4EAsBhB,CAAC"}
@@ -0,0 +1,267 @@
1
+ import type { ExtractPublicPropTypes, PropType } from 'vue';
2
+ import type { TableHeadCellThemeClasses } from '../types';
3
+ declare const tableHeadCellProps: {
4
+ themeClass: {
5
+ type: PropType<import("@vuecs/core").ThemeClassesOverride<TableHeadCellThemeClasses>>;
6
+ default: any;
7
+ };
8
+ themeVariant: {
9
+ type: PropType<import("@vuecs/core").VariantValues>;
10
+ default: any;
11
+ };
12
+ /** Column key — required for sort wiring (omit for purely presentational heads). */
13
+ columnKey: {
14
+ type: StringConstructor;
15
+ default: any;
16
+ };
17
+ /** Mark this header sortable. When set, click + Enter/Space cycle sort state. */
18
+ sortable: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ /** Override scope ("col" / "colgroup" / "row" / "rowgroup"). Smart default: colspan→colgroup, rowspan→rowgroup, else col. */
23
+ scope: {
24
+ type: PropType<"col" | "colgroup" | "row" | "rowgroup">;
25
+ default: any;
26
+ };
27
+ /** Native `<th colspan>` (forwarded; also drives the smart scope default). */
28
+ colspan: {
29
+ type: NumberConstructor;
30
+ default: any;
31
+ };
32
+ /** Native `<th rowspan>` (forwarded; also drives the smart scope default). */
33
+ rowspan: {
34
+ type: NumberConstructor;
35
+ default: any;
36
+ };
37
+ /** Native `<th title>`. */
38
+ title: {
39
+ type: StringConstructor;
40
+ default: any;
41
+ };
42
+ /** Native `<th abbr>`. */
43
+ abbr: {
44
+ type: StringConstructor;
45
+ default: any;
46
+ };
47
+ /** Alignment helper — selects the `align.<value>` theme variant. */
48
+ align: {
49
+ type: PropType<"left" | "center" | "right">;
50
+ default: any;
51
+ };
52
+ /** `position: sticky` on this header cell. Forwarded as `themeVariant.stickyColumn`. */
53
+ stickyColumn: {
54
+ type: BooleanConstructor;
55
+ default: any;
56
+ };
57
+ /**
58
+ * Renders a select-all checkbox when the parent table has
59
+ * `:selection-mode="multi"`. State is derived from the current
60
+ * selection against the visible data set: checked = all visible
61
+ * rows selected; indeterminate = some visible rows selected;
62
+ * unchecked = none.
63
+ *
64
+ * Click semantics — Gmail / GitHub style: when state is `none`
65
+ * or `some`, ADDS every visible row's key to the selection
66
+ * (preserving any off-screen / paginated selection); when state
67
+ * is `all`, REMOVES every visible row's key (also preserving
68
+ * off-screen selection). Cross-page selection persists across
69
+ * pagination flips.
70
+ *
71
+ * In `single` mode the header renders empty (only one row can
72
+ * be selected); when selection is off, the slot's default
73
+ * content renders so the column collapses gracefully.
74
+ */
75
+ isSelector: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ /** `aria-label` for the select-all checkbox (defaults to `'Select all rows'`). */
80
+ selectorAriaLabel: {
81
+ type: StringConstructor;
82
+ default: string;
83
+ };
84
+ };
85
+ export type TableHeadCellProps = ExtractPublicPropTypes<typeof tableHeadCellProps>;
86
+ declare const _default: typeof __VLS_export;
87
+ export default _default;
88
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
89
+ themeClass: {
90
+ type: PropType<import("@vuecs/core").ThemeClassesOverride<TableHeadCellThemeClasses>>;
91
+ default: any;
92
+ };
93
+ themeVariant: {
94
+ type: PropType<import("@vuecs/core").VariantValues>;
95
+ default: any;
96
+ };
97
+ /** Column key — required for sort wiring (omit for purely presentational heads). */
98
+ columnKey: {
99
+ type: StringConstructor;
100
+ default: any;
101
+ };
102
+ /** Mark this header sortable. When set, click + Enter/Space cycle sort state. */
103
+ sortable: {
104
+ type: BooleanConstructor;
105
+ default: boolean;
106
+ };
107
+ /** Override scope ("col" / "colgroup" / "row" / "rowgroup"). Smart default: colspan→colgroup, rowspan→rowgroup, else col. */
108
+ scope: {
109
+ type: PropType<"col" | "colgroup" | "row" | "rowgroup">;
110
+ default: any;
111
+ };
112
+ /** Native `<th colspan>` (forwarded; also drives the smart scope default). */
113
+ colspan: {
114
+ type: NumberConstructor;
115
+ default: any;
116
+ };
117
+ /** Native `<th rowspan>` (forwarded; also drives the smart scope default). */
118
+ rowspan: {
119
+ type: NumberConstructor;
120
+ default: any;
121
+ };
122
+ /** Native `<th title>`. */
123
+ title: {
124
+ type: StringConstructor;
125
+ default: any;
126
+ };
127
+ /** Native `<th abbr>`. */
128
+ abbr: {
129
+ type: StringConstructor;
130
+ default: any;
131
+ };
132
+ /** Alignment helper — selects the `align.<value>` theme variant. */
133
+ align: {
134
+ type: PropType<"left" | "center" | "right">;
135
+ default: any;
136
+ };
137
+ /** `position: sticky` on this header cell. Forwarded as `themeVariant.stickyColumn`. */
138
+ stickyColumn: {
139
+ type: BooleanConstructor;
140
+ default: any;
141
+ };
142
+ /**
143
+ * Renders a select-all checkbox when the parent table has
144
+ * `:selection-mode="multi"`. State is derived from the current
145
+ * selection against the visible data set: checked = all visible
146
+ * rows selected; indeterminate = some visible rows selected;
147
+ * unchecked = none.
148
+ *
149
+ * Click semantics — Gmail / GitHub style: when state is `none`
150
+ * or `some`, ADDS every visible row's key to the selection
151
+ * (preserving any off-screen / paginated selection); when state
152
+ * is `all`, REMOVES every visible row's key (also preserving
153
+ * off-screen selection). Cross-page selection persists across
154
+ * pagination flips.
155
+ *
156
+ * In `single` mode the header renders empty (only one row can
157
+ * be selected); when selection is off, the slot's default
158
+ * content renders so the column collapses gracefully.
159
+ */
160
+ isSelector: {
161
+ type: BooleanConstructor;
162
+ default: boolean;
163
+ };
164
+ /** `aria-label` for the select-all checkbox (defaults to `'Select all rows'`). */
165
+ selectorAriaLabel: {
166
+ type: StringConstructor;
167
+ default: string;
168
+ };
169
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
170
+ [key: string]: any;
171
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
172
+ themeClass: {
173
+ type: PropType<import("@vuecs/core").ThemeClassesOverride<TableHeadCellThemeClasses>>;
174
+ default: any;
175
+ };
176
+ themeVariant: {
177
+ type: PropType<import("@vuecs/core").VariantValues>;
178
+ default: any;
179
+ };
180
+ /** Column key — required for sort wiring (omit for purely presentational heads). */
181
+ columnKey: {
182
+ type: StringConstructor;
183
+ default: any;
184
+ };
185
+ /** Mark this header sortable. When set, click + Enter/Space cycle sort state. */
186
+ sortable: {
187
+ type: BooleanConstructor;
188
+ default: boolean;
189
+ };
190
+ /** Override scope ("col" / "colgroup" / "row" / "rowgroup"). Smart default: colspan→colgroup, rowspan→rowgroup, else col. */
191
+ scope: {
192
+ type: PropType<"col" | "colgroup" | "row" | "rowgroup">;
193
+ default: any;
194
+ };
195
+ /** Native `<th colspan>` (forwarded; also drives the smart scope default). */
196
+ colspan: {
197
+ type: NumberConstructor;
198
+ default: any;
199
+ };
200
+ /** Native `<th rowspan>` (forwarded; also drives the smart scope default). */
201
+ rowspan: {
202
+ type: NumberConstructor;
203
+ default: any;
204
+ };
205
+ /** Native `<th title>`. */
206
+ title: {
207
+ type: StringConstructor;
208
+ default: any;
209
+ };
210
+ /** Native `<th abbr>`. */
211
+ abbr: {
212
+ type: StringConstructor;
213
+ default: any;
214
+ };
215
+ /** Alignment helper — selects the `align.<value>` theme variant. */
216
+ align: {
217
+ type: PropType<"left" | "center" | "right">;
218
+ default: any;
219
+ };
220
+ /** `position: sticky` on this header cell. Forwarded as `themeVariant.stickyColumn`. */
221
+ stickyColumn: {
222
+ type: BooleanConstructor;
223
+ default: any;
224
+ };
225
+ /**
226
+ * Renders a select-all checkbox when the parent table has
227
+ * `:selection-mode="multi"`. State is derived from the current
228
+ * selection against the visible data set: checked = all visible
229
+ * rows selected; indeterminate = some visible rows selected;
230
+ * unchecked = none.
231
+ *
232
+ * Click semantics — Gmail / GitHub style: when state is `none`
233
+ * or `some`, ADDS every visible row's key to the selection
234
+ * (preserving any off-screen / paginated selection); when state
235
+ * is `all`, REMOVES every visible row's key (also preserving
236
+ * off-screen selection). Cross-page selection persists across
237
+ * pagination flips.
238
+ *
239
+ * In `single` mode the header renders empty (only one row can
240
+ * be selected); when selection is off, the slot's default
241
+ * content renders so the column collapses gracefully.
242
+ */
243
+ isSelector: {
244
+ type: BooleanConstructor;
245
+ default: boolean;
246
+ };
247
+ /** `aria-label` for the select-all checkbox (defaults to `'Select all rows'`). */
248
+ selectorAriaLabel: {
249
+ type: StringConstructor;
250
+ default: string;
251
+ };
252
+ }>> & Readonly<{}>, {
253
+ themeClass: import("@vuecs/core").ThemeClassesOverride<TableHeadCellThemeClasses>;
254
+ themeVariant: import("@vuecs/core").VariantValues;
255
+ abbr: string;
256
+ title: string;
257
+ columnKey: string;
258
+ align: "left" | "center" | "right";
259
+ stickyColumn: boolean;
260
+ isSelector: boolean;
261
+ selectorAriaLabel: string;
262
+ scope: "col" | "colgroup" | "row" | "rowgroup";
263
+ sortable: boolean;
264
+ colspan: number;
265
+ rowspan: number;
266
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
267
+ //# sourceMappingURL=TableHeadCell.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableHeadCell.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableHeadCell.vue"],"names":[],"mappings":"AAsSA,OAAO,KAAK,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAG5D,OAAO,KAAK,EAAiB,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAuCzE,QAAA,MAAM,kBAAkB;;;;;;;;;IACpB,oFAAoF;;;;;IAEpF,iFAAiF;;;;;IAEjF,6HAA6H;;cACpG,QAAQ,CAAC,KAAK,GAAG,UAAU,GAAG,KAAK,GAAG,UAAU,CAAC;;;IAC1E,8EAA8E;;;;;IAE9E,8EAA8E;;;;;IAE9E,2BAA2B;;;;;IAE3B,0BAA0B;;;;;IAE1B,oEAAoE;;cAC3C,QAAQ,CAAC,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;;;IAC9D,wFAAwF;;;;;IAExF;;;;;;;;;;;;;;;;;OAiBG;;;;;IAEH,kFAAkF;;;;;CAGrF,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,CAAC,OAAO,kBAAkB,CAAC,CAAC;wBAE9D,OAAO,YAAY;AAAxC,wBAAyC;AAQzC,QAAA,MAAM,YAAY;;;;;;;;;IApDd,oFAAoF;;;;;IAEpF,iFAAiF;;;;;IAEjF,6HAA6H;;cACpG,QAAQ,CAAC,KAAK,GAAG,UAAU,GAAG,KAAK,GAAG,UAAU,CAAC;;;IAC1E,8EAA8E;;;;;IAE9E,8EAA8E;;;;;IAE9E,2BAA2B;;;;;IAE3B,0BAA0B;;;;;IAE1B,oEAAoE;;cAC3C,QAAQ,CAAC,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;;;IAC9D,wFAAwF;;;;;IAExF;;;;;;;;;;;;;;;;;OAiBG;;;;;IAEH,kFAAkF;;;;;;;;;;;;;;;;IArClF,oFAAoF;;;;;IAEpF,iFAAiF;;;;;IAEjF,6HAA6H;;cACpG,QAAQ,CAAC,KAAK,GAAG,UAAU,GAAG,KAAK,GAAG,UAAU,CAAC;;;IAC1E,8EAA8E;;;;;IAE9E,8EAA8E;;;;;IAE9E,2BAA2B;;;;;IAE3B,0BAA0B;;;;;IAE1B,oEAAoE;;cAC3C,QAAQ,CAAC,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;;;IAC9D,wFAAwF;;;;;IAExF;;;;;;;;;;;;;;;;;OAiBG;;;;;IAEH,kFAAkF;;;;;;;;;;;;;;;;;;;4EAwMpF,CAAC"}
@@ -0,0 +1,40 @@
1
+ import type { ExtractPublicPropTypes } from 'vue';
2
+ import type { TableHeaderThemeClasses } from '../types';
3
+ declare const tableHeaderProps: {
4
+ themeClass: {
5
+ type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<TableHeaderThemeClasses>>;
6
+ default: any;
7
+ };
8
+ themeVariant: {
9
+ type: import("vue").PropType<import("@vuecs/core").VariantValues>;
10
+ default: any;
11
+ };
12
+ };
13
+ export type TableHeaderProps = ExtractPublicPropTypes<typeof tableHeaderProps>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
17
+ themeClass: {
18
+ type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<TableHeaderThemeClasses>>;
19
+ default: any;
20
+ };
21
+ themeVariant: {
22
+ type: import("vue").PropType<import("@vuecs/core").VariantValues>;
23
+ default: any;
24
+ };
25
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
26
+ [key: string]: any;
27
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28
+ themeClass: {
29
+ type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<TableHeaderThemeClasses>>;
30
+ default: any;
31
+ };
32
+ themeVariant: {
33
+ type: import("vue").PropType<import("@vuecs/core").VariantValues>;
34
+ default: any;
35
+ };
36
+ }>> & Readonly<{}>, {
37
+ themeClass: import("@vuecs/core").ThemeClassesOverride<TableHeaderThemeClasses>;
38
+ themeVariant: import("@vuecs/core").VariantValues;
39
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
40
+ //# sourceMappingURL=TableHeader.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableHeader.vue"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAElD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAIxD,QAAA,MAAM,gBAAgB;;;;;;;;;CAAkD,CAAC;AAEzE,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,OAAO,gBAAgB,CAAC,CAAC;wBAE1D,OAAO,YAAY;AAAxC,wBAAyC;AAQzC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;4EAgBhB,CAAC"}