@sportsdataverse/sdvtables 0.1.0 → 0.2.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/README.md +70 -112
- package/data/table_themes.json +12136 -0
- package/data/table_themes.json.sha256 +1 -0
- package/dist/aggrid.d.ts +104 -0
- package/dist/aggrid.js +230 -0
- package/dist/aggrid.js.map +1 -0
- package/dist/chunk-3TJR7TKS.js +223 -0
- package/dist/chunk-3TJR7TKS.js.map +1 -0
- package/dist/{chunk-UCRLJGDL.js → chunk-R375P3MN.js} +963 -276
- package/dist/chunk-R375P3MN.js.map +1 -0
- package/dist/chunk-UTOVFIFT.js +15176 -0
- package/dist/chunk-UTOVFIFT.js.map +1 -0
- package/dist/{chunk-U6W6MWKW.js → chunk-VLF2S6VW.js} +7 -5
- package/dist/chunk-VLF2S6VW.js.map +1 -0
- package/dist/chunk-WBTFIGYK.js +189 -0
- package/dist/chunk-WBTFIGYK.js.map +1 -0
- package/dist/{engine-CkfxYXAL.d.ts → engine-BFIPJUlC.d.ts} +1 -1
- package/dist/export.d.ts +1 -1
- package/dist/export.js +4 -3
- package/dist/export.js.map +1 -1
- package/dist/html.d.ts +8 -5
- package/dist/html.js +4 -3
- package/dist/index.d.ts +121 -8
- package/dist/index.js +51 -3
- package/dist/index.js.map +1 -1
- package/dist/mui.d.ts +134 -0
- package/dist/mui.js +193 -0
- package/dist/mui.js.map +1 -0
- package/dist/react.d.ts +2 -2
- package/dist/react.js +3 -2
- package/dist/react.js.map +1 -1
- package/dist/spec-A88vJX5A.d.ts +748 -0
- package/dist/tanstack-table.d.ts +113 -0
- package/dist/tanstack-table.js +98 -0
- package/dist/tanstack-table.js.map +1 -0
- package/dist/{tokens-CpYFsFtf.d.ts → tokens-CHwBt9gs.d.ts} +1 -1
- package/package.json +40 -3
- package/dist/chunk-4VKYHOHL.js +0 -2081
- package/dist/chunk-4VKYHOHL.js.map +0 -1
- package/dist/chunk-U6W6MWKW.js.map +0 -1
- package/dist/chunk-UCRLJGDL.js.map +0 -1
- package/dist/spec-BEhLDtj_.d.ts +0 -430
package/dist/spec-BEhLDtj_.d.ts
DELETED
|
@@ -1,430 +0,0 @@
|
|
|
1
|
-
import { League, SeasonInput, IdSystem, Variant, EspnHeadshotLeague, HeadshotIdSystem, Which } from '@sportsdataverse/sdvplot';
|
|
2
|
-
|
|
3
|
-
type Density = "comfortable" | "compact" | "social";
|
|
4
|
-
type Align = "left" | "center" | "right";
|
|
5
|
-
/** `& keyof Row & string`: a mapped-type index alone is not provably a string key of Row (TS2344 otherwise). */
|
|
6
|
-
type NumericKey<Row> = {
|
|
7
|
-
[K in keyof Row]-?: Row[K] extends number | null | undefined ? K : never;
|
|
8
|
-
}[keyof Row] & keyof Row & string;
|
|
9
|
-
type StringKey<Row> = {
|
|
10
|
-
[K in keyof Row]-?: Row[K] extends string | null | undefined ? K : never;
|
|
11
|
-
}[keyof Row] & keyof Row & string;
|
|
12
|
-
type PredicateOp = "==" | "!=" | ">" | ">=" | "<" | "<=" | "in" | "notIn" | "isNull" | "notNull" | "matches";
|
|
13
|
-
interface Predicate<Row> {
|
|
14
|
-
readonly key: keyof Row & string;
|
|
15
|
-
readonly op: PredicateOp;
|
|
16
|
-
readonly value?: unknown;
|
|
17
|
-
}
|
|
18
|
-
type RowSelector<Row> = readonly number[] | Predicate<Row>;
|
|
19
|
-
interface ColumnBase<Row, K extends keyof Row & string = keyof Row & string> {
|
|
20
|
-
readonly key: K;
|
|
21
|
-
readonly label?: string;
|
|
22
|
-
readonly subheader?: string;
|
|
23
|
-
readonly align?: Align;
|
|
24
|
-
/** CSS width of the column, written on its `<th>` (e.g. "220px"). */
|
|
25
|
-
readonly width?: string;
|
|
26
|
-
/** Phase 5 (headless engine) — accepted and ignored by renderHTML. */
|
|
27
|
-
readonly sortable?: boolean;
|
|
28
|
-
readonly filterable?: boolean;
|
|
29
|
-
/** Phase 5 — the one non-serializable field (JSON.stringify drops it). A method signature, so a numeric kind's comparator still fits `ColumnBase<Row>`. */
|
|
30
|
-
compare?(a: Row[K], b: Row[K]): number;
|
|
31
|
-
}
|
|
32
|
-
type FormatType = "number" | "comma" | "currency" | "percent";
|
|
33
|
-
interface TeamOpts {
|
|
34
|
-
readonly league: League;
|
|
35
|
-
readonly season?: SeasonInput;
|
|
36
|
-
readonly idSystem?: IdSystem;
|
|
37
|
-
readonly strict?: boolean;
|
|
38
|
-
}
|
|
39
|
-
type ColumnSpec<Row> = (ColumnBase<Row> & {
|
|
40
|
-
readonly kind: "text";
|
|
41
|
-
}) | (ColumnBase<Row, NumericKey<Row>> & {
|
|
42
|
-
readonly kind: "num";
|
|
43
|
-
readonly digits?: number;
|
|
44
|
-
readonly big?: boolean;
|
|
45
|
-
readonly prefix?: string;
|
|
46
|
-
readonly suffix?: string;
|
|
47
|
-
readonly forceSign?: boolean;
|
|
48
|
-
}) | (ColumnBase<Row, NumericKey<Row>> & {
|
|
49
|
-
readonly kind: "int";
|
|
50
|
-
}) | (ColumnBase<Row, NumericKey<Row>> & {
|
|
51
|
-
readonly kind: "pct";
|
|
52
|
-
readonly digits: number;
|
|
53
|
-
readonly scale: boolean;
|
|
54
|
-
}) | (ColumnBase<Row, NumericKey<Row>> & {
|
|
55
|
-
readonly kind: "rank";
|
|
56
|
-
readonly superscript: boolean;
|
|
57
|
-
readonly suffixSize: string;
|
|
58
|
-
}) | (ColumnBase<Row, NumericKey<Row>> & {
|
|
59
|
-
readonly kind: "delta";
|
|
60
|
-
readonly to: NumericKey<Row>;
|
|
61
|
-
readonly percent: boolean;
|
|
62
|
-
readonly decimals: number;
|
|
63
|
-
readonly arrows: boolean;
|
|
64
|
-
readonly color: boolean;
|
|
65
|
-
readonly colorPositive: string;
|
|
66
|
-
readonly colorNegative: string;
|
|
67
|
-
readonly colorNeutral?: string;
|
|
68
|
-
readonly forceSign: boolean;
|
|
69
|
-
}) | (ColumnBase<Row, NumericKey<Row>> & {
|
|
70
|
-
readonly kind: "tally";
|
|
71
|
-
readonly keys: readonly NumericKey<Row>[];
|
|
72
|
-
readonly separator: string;
|
|
73
|
-
readonly share: boolean;
|
|
74
|
-
readonly shareOf: number;
|
|
75
|
-
readonly shareDecimals: number;
|
|
76
|
-
readonly shareLabel: string;
|
|
77
|
-
readonly sharePrefix: string;
|
|
78
|
-
readonly shareSuffix: string;
|
|
79
|
-
}) | (ColumnBase<Row> & TeamOpts & {
|
|
80
|
-
readonly kind: "logo";
|
|
81
|
-
readonly height: number;
|
|
82
|
-
readonly variant?: Variant;
|
|
83
|
-
readonly includeName: boolean;
|
|
84
|
-
}) | (ColumnBase<Row> & TeamOpts & {
|
|
85
|
-
readonly kind: "wordmark";
|
|
86
|
-
readonly height: number;
|
|
87
|
-
readonly variant?: Variant;
|
|
88
|
-
}) | (ColumnBase<Row> & {
|
|
89
|
-
readonly kind: "headshot";
|
|
90
|
-
readonly league: EspnHeadshotLeague;
|
|
91
|
-
readonly idSystem: HeadshotIdSystem;
|
|
92
|
-
readonly height: number;
|
|
93
|
-
}) | (ColumnBase<Row, NumericKey<Row>> & {
|
|
94
|
-
readonly kind: "colorPills";
|
|
95
|
-
readonly palette: readonly string[];
|
|
96
|
-
readonly domain?: readonly [number, number];
|
|
97
|
-
readonly fillType: "continuous" | "rank";
|
|
98
|
-
readonly rankOrder: "asc" | "desc";
|
|
99
|
-
readonly digits?: number;
|
|
100
|
-
readonly formatType: FormatType;
|
|
101
|
-
readonly scalePercent: boolean;
|
|
102
|
-
readonly suffix: string;
|
|
103
|
-
readonly reverse: boolean;
|
|
104
|
-
readonly outlineColor?: string;
|
|
105
|
-
readonly outlineWidth: number;
|
|
106
|
-
readonly pillHeight: number;
|
|
107
|
-
readonly textColor?: string;
|
|
108
|
-
readonly naColor?: string;
|
|
109
|
-
}) | (ColumnBase<Row, NumericKey<Row>> & {
|
|
110
|
-
readonly kind: "colorRanks";
|
|
111
|
-
readonly palette: readonly string[];
|
|
112
|
-
readonly domain?: readonly [number, number];
|
|
113
|
-
readonly reverse: boolean;
|
|
114
|
-
}) | (ColumnBase<Row> & {
|
|
115
|
-
readonly kind: "colorResults";
|
|
116
|
-
readonly winColor: string;
|
|
117
|
-
readonly lossColor: string;
|
|
118
|
-
readonly tieColor?: string;
|
|
119
|
-
readonly winTextColor: string;
|
|
120
|
-
readonly lossTextColor: string;
|
|
121
|
-
readonly tieTextColor: string;
|
|
122
|
-
readonly tieValue: unknown;
|
|
123
|
-
readonly resultType: "wl" | "binary";
|
|
124
|
-
}) | (ColumnBase<Row, NumericKey<Row>> & {
|
|
125
|
-
readonly kind: "percentileBar";
|
|
126
|
-
readonly domain: readonly [number, number];
|
|
127
|
-
readonly scale: "auto" | "none" | number;
|
|
128
|
-
readonly palette: readonly string[];
|
|
129
|
-
readonly reverse: boolean;
|
|
130
|
-
readonly trackColor: string;
|
|
131
|
-
readonly trackHeight: number;
|
|
132
|
-
readonly markerSize: number;
|
|
133
|
-
readonly textColor: string;
|
|
134
|
-
readonly fontSize?: number;
|
|
135
|
-
readonly ringColor?: string;
|
|
136
|
-
readonly ringWidth: number;
|
|
137
|
-
readonly fullTrack: boolean;
|
|
138
|
-
readonly naLabel?: string;
|
|
139
|
-
readonly naTrackColor?: string;
|
|
140
|
-
readonly naTextColor: string;
|
|
141
|
-
readonly decimals: number;
|
|
142
|
-
}) | (ColumnBase<Row> & {
|
|
143
|
-
readonly kind: "indicatorBox";
|
|
144
|
-
readonly truthy: readonly unknown[];
|
|
145
|
-
readonly fill: string;
|
|
146
|
-
readonly neutral: string;
|
|
147
|
-
readonly size: number;
|
|
148
|
-
readonly showOnly?: "filled" | "neutral";
|
|
149
|
-
}) | (ColumnBase<Row> & {
|
|
150
|
-
readonly kind: "highlight";
|
|
151
|
-
readonly when: Predicate<Row>;
|
|
152
|
-
readonly fill: string;
|
|
153
|
-
readonly textColor?: string;
|
|
154
|
-
readonly bold: boolean;
|
|
155
|
-
}) | (ColumnBase<Row> & {
|
|
156
|
-
readonly kind: "highlightNa";
|
|
157
|
-
readonly fill?: string;
|
|
158
|
-
readonly textColor?: string;
|
|
159
|
-
readonly bold: boolean;
|
|
160
|
-
readonly italic: boolean;
|
|
161
|
-
readonly missingText?: string;
|
|
162
|
-
readonly naStrings: readonly string[];
|
|
163
|
-
readonly ignoreCase: boolean;
|
|
164
|
-
}) | (ColumnBase<Row> & TeamOpts & {
|
|
165
|
-
readonly kind: "mergeStackTeamColor";
|
|
166
|
-
readonly stack: keyof Row & string;
|
|
167
|
-
readonly team: keyof Row & string;
|
|
168
|
-
readonly fontSizeTop: number;
|
|
169
|
-
readonly fontSizeBottom: number;
|
|
170
|
-
readonly color: string;
|
|
171
|
-
readonly background?: string;
|
|
172
|
-
}) | (ColumnBase<Row> & TeamOpts & {
|
|
173
|
-
readonly kind: "teamColorBar";
|
|
174
|
-
readonly which: Which;
|
|
175
|
-
readonly naColor: string;
|
|
176
|
-
readonly barWidth: number;
|
|
177
|
-
}) | (ColumnBase<Row> & TeamOpts & {
|
|
178
|
-
readonly kind: "teamColorBg";
|
|
179
|
-
readonly which: Which;
|
|
180
|
-
readonly alpha: number;
|
|
181
|
-
readonly naColor: string;
|
|
182
|
-
}) | (ColumnBase<Row> & {
|
|
183
|
-
readonly kind: "image";
|
|
184
|
-
readonly height: string;
|
|
185
|
-
readonly alt?: keyof Row & string;
|
|
186
|
-
});
|
|
187
|
-
type ColumnKind = ColumnSpec<never>["kind"];
|
|
188
|
-
interface TextStyle {
|
|
189
|
-
readonly color?: string;
|
|
190
|
-
readonly size?: string;
|
|
191
|
-
readonly weight?: number | string;
|
|
192
|
-
readonly font?: string;
|
|
193
|
-
readonly transform?: "none" | "uppercase";
|
|
194
|
-
readonly style?: "normal" | "italic";
|
|
195
|
-
}
|
|
196
|
-
type Decoration<Row> = {
|
|
197
|
-
readonly type: "title";
|
|
198
|
-
readonly text: string;
|
|
199
|
-
} | {
|
|
200
|
-
readonly type: "subtitle";
|
|
201
|
-
readonly text: string;
|
|
202
|
-
} | {
|
|
203
|
-
readonly type: "titleHeader";
|
|
204
|
-
readonly title: string;
|
|
205
|
-
readonly subtitle?: string;
|
|
206
|
-
readonly kicker?: string;
|
|
207
|
-
readonly date?: string;
|
|
208
|
-
readonly kickerStyle?: TextStyle;
|
|
209
|
-
readonly titleStyle?: TextStyle;
|
|
210
|
-
readonly subtitleStyle?: TextStyle;
|
|
211
|
-
readonly dateStyle?: TextStyle;
|
|
212
|
-
} | {
|
|
213
|
-
readonly type: "sourceNote";
|
|
214
|
-
readonly html: string;
|
|
215
|
-
readonly unsafe?: boolean;
|
|
216
|
-
} | {
|
|
217
|
-
readonly type: "caption538";
|
|
218
|
-
readonly top?: string;
|
|
219
|
-
readonly bottom?: string;
|
|
220
|
-
readonly ruleColor?: string;
|
|
221
|
-
readonly ruleWidth: number;
|
|
222
|
-
readonly size: number;
|
|
223
|
-
readonly align: Align;
|
|
224
|
-
} | {
|
|
225
|
-
readonly type: "groupBy";
|
|
226
|
-
readonly key: keyof Row & string;
|
|
227
|
-
} | {
|
|
228
|
-
readonly type: "groupStripes";
|
|
229
|
-
readonly color: string;
|
|
230
|
-
readonly start: 1 | 2;
|
|
231
|
-
} | {
|
|
232
|
-
readonly type: "rowAccent";
|
|
233
|
-
readonly key: keyof Row & string;
|
|
234
|
-
readonly palette?: Readonly<Record<string, string>> | readonly string[];
|
|
235
|
-
readonly rows?: RowSelector<Row>;
|
|
236
|
-
readonly width: number;
|
|
237
|
-
readonly side: "left" | "right";
|
|
238
|
-
readonly hide: boolean;
|
|
239
|
-
readonly naColor: string;
|
|
240
|
-
} | {
|
|
241
|
-
readonly type: "boldRows";
|
|
242
|
-
readonly rows: RowSelector<Row>;
|
|
243
|
-
readonly textColor: string;
|
|
244
|
-
readonly highlightColor?: string;
|
|
245
|
-
} | {
|
|
246
|
-
readonly type: "spotlight";
|
|
247
|
-
readonly rows: RowSelector<Row>;
|
|
248
|
-
readonly columns?: readonly (keyof Row & string)[];
|
|
249
|
-
readonly fill?: string;
|
|
250
|
-
readonly textColor?: string;
|
|
251
|
-
readonly bold: boolean;
|
|
252
|
-
readonly accentColor?: string;
|
|
253
|
-
readonly accentWidth: number;
|
|
254
|
-
readonly dimColor: string | "auto" | null;
|
|
255
|
-
}
|
|
256
|
-
/** `after` = rows above each line (Python gt_cutline, _cells.py:840-841): 3 draws between the 3rd and 4th rows, 0 above the first. */
|
|
257
|
-
| {
|
|
258
|
-
readonly type: "cutline";
|
|
259
|
-
readonly after: readonly number[];
|
|
260
|
-
readonly label?: readonly (string | null)[];
|
|
261
|
-
readonly color: string;
|
|
262
|
-
readonly weight: number;
|
|
263
|
-
readonly style: "dashed" | "solid" | "dotted";
|
|
264
|
-
readonly labelColor?: string;
|
|
265
|
-
readonly labelSize: number;
|
|
266
|
-
readonly labelPosition: "above" | "below";
|
|
267
|
-
readonly gap: readonly number[];
|
|
268
|
-
} | {
|
|
269
|
-
readonly type: "borderGrid";
|
|
270
|
-
readonly color: string;
|
|
271
|
-
readonly weight: number;
|
|
272
|
-
readonly includeLabels: boolean;
|
|
273
|
-
} | {
|
|
274
|
-
readonly type: "borderBars";
|
|
275
|
-
readonly side: "top" | "bottom";
|
|
276
|
-
readonly colors: readonly string[];
|
|
277
|
-
readonly barHeight: number;
|
|
278
|
-
readonly barWidth: string;
|
|
279
|
-
readonly barAlign: Align;
|
|
280
|
-
readonly img?: string;
|
|
281
|
-
readonly imgWidth: number;
|
|
282
|
-
readonly imgHeight: number;
|
|
283
|
-
readonly imgPadding: number;
|
|
284
|
-
readonly imgAlign: "left" | "right";
|
|
285
|
-
readonly text?: string;
|
|
286
|
-
readonly textWeight: string;
|
|
287
|
-
readonly textColor: string;
|
|
288
|
-
readonly textSize: number;
|
|
289
|
-
readonly textAlign: Align;
|
|
290
|
-
readonly textPadding: number;
|
|
291
|
-
} | {
|
|
292
|
-
readonly type: "legendContinuous";
|
|
293
|
-
readonly columns?: readonly (keyof Row & string)[];
|
|
294
|
-
readonly palette?: readonly string[];
|
|
295
|
-
readonly domain?: readonly [number, number];
|
|
296
|
-
readonly reverse?: boolean;
|
|
297
|
-
readonly nBins: number;
|
|
298
|
-
readonly labels?: readonly string[];
|
|
299
|
-
readonly digits: number;
|
|
300
|
-
readonly title?: string;
|
|
301
|
-
readonly titlePosition: "top" | "left";
|
|
302
|
-
readonly location: "top" | "bottom";
|
|
303
|
-
readonly swatchWidth: number;
|
|
304
|
-
readonly swatchHeight: number;
|
|
305
|
-
} | {
|
|
306
|
-
readonly type: "legendDiscrete";
|
|
307
|
-
readonly key: Readonly<Record<string, string>> | "recorded";
|
|
308
|
-
readonly heading?: string;
|
|
309
|
-
readonly subtitle?: string;
|
|
310
|
-
readonly location: "top" | "bottom";
|
|
311
|
-
readonly shape: "square" | "circle";
|
|
312
|
-
readonly swatchSize: number;
|
|
313
|
-
readonly border: boolean;
|
|
314
|
-
readonly borderColor?: string;
|
|
315
|
-
readonly gap: number;
|
|
316
|
-
readonly direction: "horizontal" | "vertical";
|
|
317
|
-
readonly align: Align;
|
|
318
|
-
} | {
|
|
319
|
-
readonly type: "significance";
|
|
320
|
-
readonly pairs: readonly {
|
|
321
|
-
readonly estimate: keyof Row & string;
|
|
322
|
-
readonly p: keyof Row & string;
|
|
323
|
-
}[];
|
|
324
|
-
readonly levels: readonly number[];
|
|
325
|
-
readonly symbols: readonly string[];
|
|
326
|
-
readonly superscript: boolean;
|
|
327
|
-
readonly note: boolean;
|
|
328
|
-
readonly hideP: boolean;
|
|
329
|
-
} | {
|
|
330
|
-
readonly type: "outliers";
|
|
331
|
-
readonly columns: readonly (keyof Row & string)[];
|
|
332
|
-
readonly method: "iqr" | "sd" | "bounds";
|
|
333
|
-
readonly threshold?: number;
|
|
334
|
-
readonly bounds?: readonly [number | null, number | null];
|
|
335
|
-
readonly side: "both" | "high" | "low";
|
|
336
|
-
readonly fill?: string;
|
|
337
|
-
readonly color?: string;
|
|
338
|
-
readonly bold: boolean;
|
|
339
|
-
readonly symbol?: string;
|
|
340
|
-
readonly note?: string | boolean;
|
|
341
|
-
} | {
|
|
342
|
-
readonly type: "scaleNote";
|
|
343
|
-
readonly columns: readonly (keyof Row & string)[];
|
|
344
|
-
readonly divisor: number;
|
|
345
|
-
readonly note?: string;
|
|
346
|
-
readonly where: "sourceNote" | "label" | "both";
|
|
347
|
-
readonly labelSuffix?: string;
|
|
348
|
-
readonly decimals: number;
|
|
349
|
-
} | {
|
|
350
|
-
readonly type: "socialTag";
|
|
351
|
-
readonly accounts: Readonly<Record<string, string>>;
|
|
352
|
-
readonly caption?: string;
|
|
353
|
-
readonly stack: boolean;
|
|
354
|
-
readonly separator: string;
|
|
355
|
-
readonly align: Align;
|
|
356
|
-
readonly iconColor?: string;
|
|
357
|
-
readonly iconHeight: string;
|
|
358
|
-
} | {
|
|
359
|
-
readonly type: "watermark";
|
|
360
|
-
readonly text?: string;
|
|
361
|
-
readonly image?: string;
|
|
362
|
-
readonly opacity: number;
|
|
363
|
-
readonly size: string;
|
|
364
|
-
readonly position: string;
|
|
365
|
-
readonly color: string;
|
|
366
|
-
readonly angle: number;
|
|
367
|
-
readonly font: string;
|
|
368
|
-
} | {
|
|
369
|
-
readonly type: "wrapLabels";
|
|
370
|
-
readonly columns?: readonly (keyof Row & string)[];
|
|
371
|
-
readonly width: number;
|
|
372
|
-
readonly balance: boolean;
|
|
373
|
-
} | {
|
|
374
|
-
readonly type: "marginalia";
|
|
375
|
-
readonly columns: readonly (keyof Row & string)[];
|
|
376
|
-
readonly width?: number | string;
|
|
377
|
-
readonly label: string;
|
|
378
|
-
readonly italic: boolean;
|
|
379
|
-
readonly color?: string;
|
|
380
|
-
readonly size: string;
|
|
381
|
-
readonly rule: boolean;
|
|
382
|
-
readonly ruleColor?: string;
|
|
383
|
-
readonly align: Align;
|
|
384
|
-
} | {
|
|
385
|
-
readonly type: "snake";
|
|
386
|
-
readonly nCols: number;
|
|
387
|
-
readonly rowsPerCol?: number;
|
|
388
|
-
readonly gap: number;
|
|
389
|
-
readonly fill: string;
|
|
390
|
-
readonly cleanGaps: boolean;
|
|
391
|
-
} | {
|
|
392
|
-
readonly type: "tiers";
|
|
393
|
-
readonly levels: readonly string[];
|
|
394
|
-
readonly colors?: readonly string[];
|
|
395
|
-
readonly tierKey: keyof Row & string;
|
|
396
|
-
readonly imageColumns: readonly (keyof Row & string)[];
|
|
397
|
-
readonly imgHeight: string;
|
|
398
|
-
readonly style: "light" | "dark";
|
|
399
|
-
} | {
|
|
400
|
-
readonly type: "font";
|
|
401
|
-
readonly family: string;
|
|
402
|
-
readonly google: boolean;
|
|
403
|
-
readonly weight?: number | string;
|
|
404
|
-
readonly style?: "normal" | "italic";
|
|
405
|
-
};
|
|
406
|
-
type DecorationType = Decoration<never>["type"];
|
|
407
|
-
interface ThemeRef {
|
|
408
|
-
readonly name: string;
|
|
409
|
-
readonly density: Density;
|
|
410
|
-
readonly options?: Readonly<Record<string, string>>;
|
|
411
|
-
}
|
|
412
|
-
interface TableSpec<Row> {
|
|
413
|
-
readonly id?: string;
|
|
414
|
-
readonly columns: readonly ColumnSpec<Row>[];
|
|
415
|
-
readonly decorations: readonly Decoration<Row>[];
|
|
416
|
-
readonly theme: ThemeRef;
|
|
417
|
-
/**
|
|
418
|
-
* Phase 5, read by the engine and its renderers (a static `renderHTML(spec, rows)` ignores it): `pageSize` is
|
|
419
|
-
* `createTable`'s default page size; `hotkeys: false` turns off the j/k/h/l/s and `/` keys (Task 10), leaving the
|
|
420
|
-
* grid's arrow keys, Enter and Space.
|
|
421
|
-
*/
|
|
422
|
-
readonly interactive?: {
|
|
423
|
-
readonly pageSize?: number;
|
|
424
|
-
readonly hotkeys?: boolean;
|
|
425
|
-
};
|
|
426
|
-
/** J31: the column whose value is a row's link id (`String(row[rowKey])`); absent → the row's index in the input rows. */
|
|
427
|
-
readonly rowKey?: keyof Row & string;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
export type { Align as A, ColumnSpec as C, Density as D, FormatType as F, NumericKey as N, Predicate as P, RowSelector as R, StringKey as S, TableSpec as T, ThemeRef as a, ColumnBase as b, Decoration as c, ColumnKind as d, DecorationType as e, PredicateOp as f, TeamOpts as g, TextStyle as h };
|