@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.
- package/LICENSE +201 -0
- package/README.md +59 -0
- package/dist/components/Table.vue.d.ts +511 -0
- package/dist/components/Table.vue.d.ts.map +1 -0
- package/dist/components/TableBody.vue.d.ts +43 -0
- package/dist/components/TableBody.vue.d.ts.map +1 -0
- package/dist/components/TableCell.vue.d.ts +182 -0
- package/dist/components/TableCell.vue.d.ts.map +1 -0
- package/dist/components/TableEmpty.vue.d.ts +104 -0
- package/dist/components/TableEmpty.vue.d.ts.map +1 -0
- package/dist/components/TableFooter.vue.d.ts +40 -0
- package/dist/components/TableFooter.vue.d.ts.map +1 -0
- package/dist/components/TableHeadCell.vue.d.ts +267 -0
- package/dist/components/TableHeadCell.vue.d.ts.map +1 -0
- package/dist/components/TableHeader.vue.d.ts +40 -0
- package/dist/components/TableHeader.vue.d.ts.map +1 -0
- package/dist/components/TableLite.vue.d.ts +250 -0
- package/dist/components/TableLite.vue.d.ts.map +1 -0
- package/dist/components/TableLoading.vue.d.ts +88 -0
- package/dist/components/TableLoading.vue.d.ts.map +1 -0
- package/dist/components/TableRow.vue.d.ts +116 -0
- package/dist/components/TableRow.vue.d.ts.map +1 -0
- package/dist/components/TableSortIndicators.vue.d.ts +335 -0
- package/dist/components/TableSortIndicators.vue.d.ts.map +1 -0
- package/dist/components/index.d.ts +23 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/composables/context.d.ts +104 -0
- package/dist/composables/context.d.ts.map +1 -0
- package/dist/composables/define-table.d.ts +48 -0
- package/dist/composables/define-table.d.ts.map +1 -0
- package/dist/composables/index.d.ts +5 -0
- package/dist/composables/index.d.ts.map +1 -0
- package/dist/composables/selection.d.ts +10 -0
- package/dist/composables/selection.d.ts.map +1 -0
- package/dist/composables/sort.d.ts +61 -0
- package/dist/composables/sort.d.ts.map +1 -0
- package/dist/defaults.d.ts +41 -0
- package/dist/defaults.d.ts.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +2081 -0
- package/dist/index.mjs.map +1 -0
- package/dist/style.css +145 -0
- package/dist/theme.d.ts +13 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/types.d.ts +248 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/auto-render.d.ts +31 -0
- package/dist/utils/auto-render.d.ts.map +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/render-utils.d.ts +49 -0
- package/dist/utils/render-utils.d.ts.map +1 -0
- package/dist/utils/sort-rows.d.ts +29 -0
- package/dist/utils/sort-rows.d.ts.map +1 -0
- package/dist/vue.d.ts +27 -0
- package/dist/vue.d.ts.map +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes, PropType, SlotsType } from 'vue';
|
|
2
|
+
import type { TableColumnRaw, TableSlotProps, TableThemeClasses } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Slim sibling of `<VCTable>` — same columns driver + theme system +
|
|
5
|
+
* auto-render, but with the sort + row-click + keyboard-nav machinery
|
|
6
|
+
* stripped out (plan 033 v0.2-C). Consumers who want their own state
|
|
7
|
+
* plumbing (e.g. tanstack-table on top) import this instead of the
|
|
8
|
+
* full `<VCTable>`. Lite-only consumers tree-shake `useSortMachine`
|
|
9
|
+
* out of their bundle.
|
|
10
|
+
*
|
|
11
|
+
* Provides the same `TableContext` shape so child components
|
|
12
|
+
* (`<VCTableRow>`, `<VCTableHeadCell>`, …) work identically — the
|
|
13
|
+
* sort / row-click hooks are wired to no-ops, so sortable headers and
|
|
14
|
+
* `:row-clickable` rows visually behave as if the consumer hadn't
|
|
15
|
+
* opted in.
|
|
16
|
+
*/
|
|
17
|
+
declare const tableLiteProps: {
|
|
18
|
+
themeClass: {
|
|
19
|
+
type: PropType<import("@vuecs/core").ThemeClassesOverride<TableThemeClasses>>;
|
|
20
|
+
default: any;
|
|
21
|
+
};
|
|
22
|
+
themeVariant: {
|
|
23
|
+
type: PropType<import("@vuecs/core").VariantValues>;
|
|
24
|
+
default: any;
|
|
25
|
+
};
|
|
26
|
+
/** Row data array. */
|
|
27
|
+
data: {
|
|
28
|
+
type: PropType<unknown[]>;
|
|
29
|
+
default: () => any[];
|
|
30
|
+
};
|
|
31
|
+
/** Column definitions (TableColumn or bare-string shorthand). When omitted, columns are derived from `Object.keys(data[0])`. */
|
|
32
|
+
columns: {
|
|
33
|
+
type: PropType<TableColumnRaw<unknown>[]>;
|
|
34
|
+
default: any;
|
|
35
|
+
};
|
|
36
|
+
/** Busy flag — drives `aria-busy` on the `<table>` and gates the loading-band render. */
|
|
37
|
+
busy: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
/** Wrap the `<table>` in an overflow scroll container. */
|
|
42
|
+
scrollable: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
/** When `:scrollable`, sticks the `<thead>` to the top of the scroll container. */
|
|
47
|
+
stickyHeader: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
/** When `:scrollable`, applied as `max-height` on the scroll container. */
|
|
52
|
+
maxHeight: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: any;
|
|
55
|
+
};
|
|
56
|
+
/** Stacked responsive mode opt-in. Same shape as `<VCTable :responsive>`. */
|
|
57
|
+
responsive: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
/** Density shorthand for `themeVariant.density`. */
|
|
62
|
+
density: {
|
|
63
|
+
type: PropType<"compact" | "normal" | "spacious">;
|
|
64
|
+
default: any;
|
|
65
|
+
};
|
|
66
|
+
/** Alternating row backgrounds — shorthand for `themeVariant.striped`. */
|
|
67
|
+
striped: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: any;
|
|
70
|
+
};
|
|
71
|
+
/** Cell borders — shorthand for `themeVariant.bordered`. */
|
|
72
|
+
bordered: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: any;
|
|
75
|
+
};
|
|
76
|
+
/** Row hover highlight — shorthand for `themeVariant.hover`. */
|
|
77
|
+
hover: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: any;
|
|
80
|
+
};
|
|
81
|
+
/** HTML tag to render. */
|
|
82
|
+
tag: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
export type TableLiteProps = ExtractPublicPropTypes<typeof tableLiteProps>;
|
|
88
|
+
declare const _default: typeof __VLS_export;
|
|
89
|
+
export default _default;
|
|
90
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
91
|
+
themeClass: {
|
|
92
|
+
type: PropType<import("@vuecs/core").ThemeClassesOverride<TableThemeClasses>>;
|
|
93
|
+
default: any;
|
|
94
|
+
};
|
|
95
|
+
themeVariant: {
|
|
96
|
+
type: PropType<import("@vuecs/core").VariantValues>;
|
|
97
|
+
default: any;
|
|
98
|
+
};
|
|
99
|
+
/** Row data array. */
|
|
100
|
+
data: {
|
|
101
|
+
type: PropType<unknown[]>;
|
|
102
|
+
default: () => any[];
|
|
103
|
+
};
|
|
104
|
+
/** Column definitions (TableColumn or bare-string shorthand). When omitted, columns are derived from `Object.keys(data[0])`. */
|
|
105
|
+
columns: {
|
|
106
|
+
type: PropType<TableColumnRaw<unknown>[]>;
|
|
107
|
+
default: any;
|
|
108
|
+
};
|
|
109
|
+
/** Busy flag — drives `aria-busy` on the `<table>` and gates the loading-band render. */
|
|
110
|
+
busy: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
default: boolean;
|
|
113
|
+
};
|
|
114
|
+
/** Wrap the `<table>` in an overflow scroll container. */
|
|
115
|
+
scrollable: {
|
|
116
|
+
type: BooleanConstructor;
|
|
117
|
+
default: boolean;
|
|
118
|
+
};
|
|
119
|
+
/** When `:scrollable`, sticks the `<thead>` to the top of the scroll container. */
|
|
120
|
+
stickyHeader: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
/** When `:scrollable`, applied as `max-height` on the scroll container. */
|
|
125
|
+
maxHeight: {
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
default: any;
|
|
128
|
+
};
|
|
129
|
+
/** Stacked responsive mode opt-in. Same shape as `<VCTable :responsive>`. */
|
|
130
|
+
responsive: {
|
|
131
|
+
type: BooleanConstructor;
|
|
132
|
+
default: boolean;
|
|
133
|
+
};
|
|
134
|
+
/** Density shorthand for `themeVariant.density`. */
|
|
135
|
+
density: {
|
|
136
|
+
type: PropType<"compact" | "normal" | "spacious">;
|
|
137
|
+
default: any;
|
|
138
|
+
};
|
|
139
|
+
/** Alternating row backgrounds — shorthand for `themeVariant.striped`. */
|
|
140
|
+
striped: {
|
|
141
|
+
type: BooleanConstructor;
|
|
142
|
+
default: any;
|
|
143
|
+
};
|
|
144
|
+
/** Cell borders — shorthand for `themeVariant.bordered`. */
|
|
145
|
+
bordered: {
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
default: any;
|
|
148
|
+
};
|
|
149
|
+
/** Row hover highlight — shorthand for `themeVariant.hover`. */
|
|
150
|
+
hover: {
|
|
151
|
+
type: BooleanConstructor;
|
|
152
|
+
default: any;
|
|
153
|
+
};
|
|
154
|
+
/** HTML tag to render. */
|
|
155
|
+
tag: {
|
|
156
|
+
type: StringConstructor;
|
|
157
|
+
default: string;
|
|
158
|
+
};
|
|
159
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
160
|
+
[key: string]: any;
|
|
161
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
162
|
+
themeClass: {
|
|
163
|
+
type: PropType<import("@vuecs/core").ThemeClassesOverride<TableThemeClasses>>;
|
|
164
|
+
default: any;
|
|
165
|
+
};
|
|
166
|
+
themeVariant: {
|
|
167
|
+
type: PropType<import("@vuecs/core").VariantValues>;
|
|
168
|
+
default: any;
|
|
169
|
+
};
|
|
170
|
+
/** Row data array. */
|
|
171
|
+
data: {
|
|
172
|
+
type: PropType<unknown[]>;
|
|
173
|
+
default: () => any[];
|
|
174
|
+
};
|
|
175
|
+
/** Column definitions (TableColumn or bare-string shorthand). When omitted, columns are derived from `Object.keys(data[0])`. */
|
|
176
|
+
columns: {
|
|
177
|
+
type: PropType<TableColumnRaw<unknown>[]>;
|
|
178
|
+
default: any;
|
|
179
|
+
};
|
|
180
|
+
/** Busy flag — drives `aria-busy` on the `<table>` and gates the loading-band render. */
|
|
181
|
+
busy: {
|
|
182
|
+
type: BooleanConstructor;
|
|
183
|
+
default: boolean;
|
|
184
|
+
};
|
|
185
|
+
/** Wrap the `<table>` in an overflow scroll container. */
|
|
186
|
+
scrollable: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
default: boolean;
|
|
189
|
+
};
|
|
190
|
+
/** When `:scrollable`, sticks the `<thead>` to the top of the scroll container. */
|
|
191
|
+
stickyHeader: {
|
|
192
|
+
type: BooleanConstructor;
|
|
193
|
+
default: boolean;
|
|
194
|
+
};
|
|
195
|
+
/** When `:scrollable`, applied as `max-height` on the scroll container. */
|
|
196
|
+
maxHeight: {
|
|
197
|
+
type: StringConstructor;
|
|
198
|
+
default: any;
|
|
199
|
+
};
|
|
200
|
+
/** Stacked responsive mode opt-in. Same shape as `<VCTable :responsive>`. */
|
|
201
|
+
responsive: {
|
|
202
|
+
type: BooleanConstructor;
|
|
203
|
+
default: boolean;
|
|
204
|
+
};
|
|
205
|
+
/** Density shorthand for `themeVariant.density`. */
|
|
206
|
+
density: {
|
|
207
|
+
type: PropType<"compact" | "normal" | "spacious">;
|
|
208
|
+
default: any;
|
|
209
|
+
};
|
|
210
|
+
/** Alternating row backgrounds — shorthand for `themeVariant.striped`. */
|
|
211
|
+
striped: {
|
|
212
|
+
type: BooleanConstructor;
|
|
213
|
+
default: any;
|
|
214
|
+
};
|
|
215
|
+
/** Cell borders — shorthand for `themeVariant.bordered`. */
|
|
216
|
+
bordered: {
|
|
217
|
+
type: BooleanConstructor;
|
|
218
|
+
default: any;
|
|
219
|
+
};
|
|
220
|
+
/** Row hover highlight — shorthand for `themeVariant.hover`. */
|
|
221
|
+
hover: {
|
|
222
|
+
type: BooleanConstructor;
|
|
223
|
+
default: any;
|
|
224
|
+
};
|
|
225
|
+
/** HTML tag to render. */
|
|
226
|
+
tag: {
|
|
227
|
+
type: StringConstructor;
|
|
228
|
+
default: string;
|
|
229
|
+
};
|
|
230
|
+
}>> & Readonly<{}>, {
|
|
231
|
+
columns: TableColumnRaw<unknown>[];
|
|
232
|
+
themeClass: import("@vuecs/core").ThemeClassesOverride<TableThemeClasses>;
|
|
233
|
+
themeVariant: import("@vuecs/core").VariantValues;
|
|
234
|
+
data: unknown[];
|
|
235
|
+
busy: boolean;
|
|
236
|
+
scrollable: boolean;
|
|
237
|
+
stickyHeader: boolean;
|
|
238
|
+
maxHeight: string;
|
|
239
|
+
responsive: boolean;
|
|
240
|
+
density: "compact" | "normal" | "spacious";
|
|
241
|
+
striped: boolean;
|
|
242
|
+
bordered: boolean;
|
|
243
|
+
hover: boolean;
|
|
244
|
+
tag: string;
|
|
245
|
+
}, SlotsType<{
|
|
246
|
+
default(props: TableSlotProps): unknown;
|
|
247
|
+
caption(): unknown;
|
|
248
|
+
colgroup(): unknown;
|
|
249
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
250
|
+
//# sourceMappingURL=TableLite.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableLite.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableLite.vue"],"names":[],"mappings":"AAyPA,OAAO,KAAK,EAAE,sBAAsB,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAQvE,OAAO,KAAK,EAER,cAAc,EACd,cAAc,EACd,iBAAiB,EACpB,MAAM,UAAU,CAAC;AAWlB;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,cAAc;;;;;;;;;IAChB,sBAAsB;;cACC,QAAQ,CAAC,OAAO,EAAE,CAAC;;;IAC1C,gIAAgI;;cACtG,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;;;IAC7D,yFAAyF;;;;;IAEzF,0DAA0D;;;;;IAE1D,mFAAmF;;;;;IAEnF,2EAA2E;;;;;IAE3E,6EAA6E;;;;;IAE7E,oDAAoD;;cACzB,QAAQ,CAAC,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;;;IACtE,0EAA0E;;;;;IAE1E,4DAA4D;;;;;IAE5D,gEAAgE;;;;;IAEhE,0BAA0B;;;;;CAG7B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,sBAAsB,CAAC,OAAO,cAAc,CAAC,CAAC;wBAatD,OAAO,YAAY;AAAxC,wBAAyC;AAQzC,QAAA,MAAM,YAAY;;;;;;;;;IAhDd,sBAAsB;;cACC,QAAQ,CAAC,OAAO,EAAE,CAAC;;;IAC1C,gIAAgI;;cACtG,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;;;IAC7D,yFAAyF;;;;;IAEzF,0DAA0D;;;;;IAE1D,mFAAmF;;;;;IAEnF,2EAA2E;;;;;IAE3E,6EAA6E;;;;;IAE7E,oDAAoD;;cACzB,QAAQ,CAAC,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;;;IACtE,0EAA0E;;;;;IAE1E,4DAA4D;;;;;IAE5D,gEAAgE;;;;;IAEhE,0BAA0B;;;;;;;;;;;;;;;;IAtB1B,sBAAsB;;cACC,QAAQ,CAAC,OAAO,EAAE,CAAC;;;IAC1C,gIAAgI;;cACtG,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;;;IAC7D,yFAAyF;;;;;IAEzF,0DAA0D;;;;;IAE1D,mFAAmF;;;;;IAEnF,2EAA2E;;;;;IAE3E,6EAA6E;;;;;IAE7E,oDAAoD;;cACzB,QAAQ,CAAC,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;;;IACtE,0EAA0E;;;;;IAE1E,4DAA4D;;;;;IAE5D,gEAAgE;;;;;IAEhE,0BAA0B;;;;;;;;;;;;;;;;;;;;;mBA+BP,cAAc,GAAG,OAAO;eAC5B,OAAO;gBACN,OAAO;yEA2IzB,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
import type { TableLoadingThemeClasses } from '../types';
|
|
3
|
+
declare const tableLoadingProps: {
|
|
4
|
+
themeClass: {
|
|
5
|
+
type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<TableLoadingThemeClasses>>;
|
|
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` (default mode only — ignored in overlay mode). */
|
|
13
|
+
colspan: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
default: any;
|
|
16
|
+
};
|
|
17
|
+
/** Render as a positioned overlay on top of the existing `<tbody>` (refresh feedback). Default mode is a centered tbody/tr/td placeholder. */
|
|
18
|
+
overlay: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
/** Override the rendered text. Falls back to global defaults. */
|
|
23
|
+
content: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: any;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export type TableLoadingProps = ExtractPublicPropTypes<typeof tableLoadingProps>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
32
|
+
themeClass: {
|
|
33
|
+
type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<TableLoadingThemeClasses>>;
|
|
34
|
+
default: any;
|
|
35
|
+
};
|
|
36
|
+
themeVariant: {
|
|
37
|
+
type: import("vue").PropType<import("@vuecs/core").VariantValues>;
|
|
38
|
+
default: any;
|
|
39
|
+
};
|
|
40
|
+
/** Override the auto-derived `colspan` (default mode only — ignored in overlay mode). */
|
|
41
|
+
colspan: {
|
|
42
|
+
type: NumberConstructor;
|
|
43
|
+
default: any;
|
|
44
|
+
};
|
|
45
|
+
/** Render as a positioned overlay on top of the existing `<tbody>` (refresh feedback). Default mode is a centered tbody/tr/td placeholder. */
|
|
46
|
+
overlay: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
/** Override the rendered text. Falls back to global defaults. */
|
|
51
|
+
content: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: any;
|
|
54
|
+
};
|
|
55
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
|
+
themeClass: {
|
|
59
|
+
type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<TableLoadingThemeClasses>>;
|
|
60
|
+
default: any;
|
|
61
|
+
};
|
|
62
|
+
themeVariant: {
|
|
63
|
+
type: import("vue").PropType<import("@vuecs/core").VariantValues>;
|
|
64
|
+
default: any;
|
|
65
|
+
};
|
|
66
|
+
/** Override the auto-derived `colspan` (default mode only — ignored in overlay mode). */
|
|
67
|
+
colspan: {
|
|
68
|
+
type: NumberConstructor;
|
|
69
|
+
default: any;
|
|
70
|
+
};
|
|
71
|
+
/** Render as a positioned overlay on top of the existing `<tbody>` (refresh feedback). Default mode is a centered tbody/tr/td placeholder. */
|
|
72
|
+
overlay: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
/** Override the rendered text. Falls back to global defaults. */
|
|
77
|
+
content: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
default: any;
|
|
80
|
+
};
|
|
81
|
+
}>> & Readonly<{}>, {
|
|
82
|
+
overlay: boolean;
|
|
83
|
+
themeClass: import("@vuecs/core").ThemeClassesOverride<TableLoadingThemeClasses>;
|
|
84
|
+
themeVariant: import("@vuecs/core").VariantValues;
|
|
85
|
+
colspan: number;
|
|
86
|
+
content: string;
|
|
87
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
88
|
+
//# sourceMappingURL=TableLoading.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableLoading.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableLoading.vue"],"names":[],"mappings":"AAoIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAQlD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAMzD,QAAA,MAAM,iBAAiB;;;;;;;;;IACnB,yFAAyF;;;;;IAEzF,8IAA8I;;;;;IAE9I,iEAAiE;;;;;CAGpE,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,sBAAsB,CAAC,OAAO,iBAAiB,CAAC,CAAC;wBAE5D,OAAO,YAAY;AAAxC,wBAAyC;AAQzC,QAAA,MAAM,YAAY;;;;;;;;;IAnBd,yFAAyF;;;;;IAEzF,8IAA8I;;;;;IAE9I,iEAAiE;;;;;;;;;;;;;;;;IAJjE,yFAAyF;;;;;IAEzF,8IAA8I;;;;;IAE9I,iEAAiE;;;;;;;;;;;4EAqGnE,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes, PropType } from 'vue';
|
|
2
|
+
import type { TableRowThemeClasses } from '../types';
|
|
3
|
+
declare const tableRowProps: {
|
|
4
|
+
themeClass: {
|
|
5
|
+
type: PropType<import("@vuecs/core").ThemeClassesOverride<TableRowThemeClasses>>;
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
8
|
+
themeVariant: {
|
|
9
|
+
type: PropType<import("@vuecs/core").VariantValues>;
|
|
10
|
+
default: any;
|
|
11
|
+
};
|
|
12
|
+
/** Current row data — used to resolve `_rowVariant` / `_cellVariants` and to emit `@row-click`. */
|
|
13
|
+
row: {
|
|
14
|
+
type: PropType<unknown>;
|
|
15
|
+
default: any;
|
|
16
|
+
};
|
|
17
|
+
/** Row index — used by row keyboard navigation + focused-row tracking. */
|
|
18
|
+
index: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: any;
|
|
21
|
+
};
|
|
22
|
+
/** Mark the row disabled — forwarded to `themeVariant.disabled`. */
|
|
23
|
+
disabled: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: any;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Manual override for the row's selected state. When set, wins over
|
|
29
|
+
* the auto-resolved selection from `useTable().selection`. Leave
|
|
30
|
+
* undefined to let `<VCTable :selection>` drive selection state.
|
|
31
|
+
*/
|
|
32
|
+
selected: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: any;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export type TableRowProps = ExtractPublicPropTypes<typeof tableRowProps>;
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
39
|
+
export default _default;
|
|
40
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
41
|
+
themeClass: {
|
|
42
|
+
type: PropType<import("@vuecs/core").ThemeClassesOverride<TableRowThemeClasses>>;
|
|
43
|
+
default: any;
|
|
44
|
+
};
|
|
45
|
+
themeVariant: {
|
|
46
|
+
type: PropType<import("@vuecs/core").VariantValues>;
|
|
47
|
+
default: any;
|
|
48
|
+
};
|
|
49
|
+
/** Current row data — used to resolve `_rowVariant` / `_cellVariants` and to emit `@row-click`. */
|
|
50
|
+
row: {
|
|
51
|
+
type: PropType<unknown>;
|
|
52
|
+
default: any;
|
|
53
|
+
};
|
|
54
|
+
/** Row index — used by row keyboard navigation + focused-row tracking. */
|
|
55
|
+
index: {
|
|
56
|
+
type: NumberConstructor;
|
|
57
|
+
default: any;
|
|
58
|
+
};
|
|
59
|
+
/** Mark the row disabled — forwarded to `themeVariant.disabled`. */
|
|
60
|
+
disabled: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: any;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Manual override for the row's selected state. When set, wins over
|
|
66
|
+
* the auto-resolved selection from `useTable().selection`. Leave
|
|
67
|
+
* undefined to let `<VCTable :selection>` drive selection state.
|
|
68
|
+
*/
|
|
69
|
+
selected: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: any;
|
|
72
|
+
};
|
|
73
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
76
|
+
themeClass: {
|
|
77
|
+
type: PropType<import("@vuecs/core").ThemeClassesOverride<TableRowThemeClasses>>;
|
|
78
|
+
default: any;
|
|
79
|
+
};
|
|
80
|
+
themeVariant: {
|
|
81
|
+
type: PropType<import("@vuecs/core").VariantValues>;
|
|
82
|
+
default: any;
|
|
83
|
+
};
|
|
84
|
+
/** Current row data — used to resolve `_rowVariant` / `_cellVariants` and to emit `@row-click`. */
|
|
85
|
+
row: {
|
|
86
|
+
type: PropType<unknown>;
|
|
87
|
+
default: any;
|
|
88
|
+
};
|
|
89
|
+
/** Row index — used by row keyboard navigation + focused-row tracking. */
|
|
90
|
+
index: {
|
|
91
|
+
type: NumberConstructor;
|
|
92
|
+
default: any;
|
|
93
|
+
};
|
|
94
|
+
/** Mark the row disabled — forwarded to `themeVariant.disabled`. */
|
|
95
|
+
disabled: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: any;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Manual override for the row's selected state. When set, wins over
|
|
101
|
+
* the auto-resolved selection from `useTable().selection`. Leave
|
|
102
|
+
* undefined to let `<VCTable :selection>` drive selection state.
|
|
103
|
+
*/
|
|
104
|
+
selected: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: any;
|
|
107
|
+
};
|
|
108
|
+
}>> & Readonly<{}>, {
|
|
109
|
+
themeClass: import("@vuecs/core").ThemeClassesOverride<TableRowThemeClasses>;
|
|
110
|
+
themeVariant: import("@vuecs/core").VariantValues;
|
|
111
|
+
row: any;
|
|
112
|
+
index: number;
|
|
113
|
+
disabled: boolean;
|
|
114
|
+
selected: boolean;
|
|
115
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
116
|
+
//# sourceMappingURL=TableRow.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableRow.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableRow.vue"],"names":[],"mappings":"AAiVA,OAAO,KAAK,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAS5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAKrD,QAAA,MAAM,aAAa;;;;;;;;;IACf,mGAAmG;;cACnE,QAAQ,CAAC,OAAO,CAAC;;;IACjD,0EAA0E;;;;;IAE1E,oEAAoE;;;;;IAEpE;;;;OAIG;;;;;CAGN,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,sBAAsB,CAAC,OAAO,aAAa,CAAC,CAAC;wBAEpD,OAAO,YAAY;AAAxC,wBAAyC;AAQzC,QAAA,MAAM,YAAY;;;;;;;;;IAzBd,mGAAmG;;cACnE,QAAQ,CAAC,OAAO,CAAC;;;IACjD,0EAA0E;;;;;IAE1E,oEAAoE;;;;;IAEpE;;;;OAIG;;;;;;;;;;;;;;;;IAVH,mGAAmG;;cACnE,QAAQ,CAAC,OAAO,CAAC;;;IACjD,0EAA0E;;;;;IAE1E,oEAAoE;;;;;IAEpE;;;;OAIG;;;;;;;;;;;;4EAsSL,CAAC"}
|