arthub-table 0.2.0-beta.12 → 0.2.0-beta.13
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/arthub-table.common.js +1 -1
- package/dist/arthub-table.common.js.map +1 -1
- package/dist/arthub-table.umd.js +1 -1
- package/dist/arthub-table.umd.js.map +1 -1
- package/dist/arthub-table.umd.min.js +1 -1
- package/dist/arthub-table.umd.min.js.map +1 -1
- package/dist/types/core/viewers/RelatedTaskViewer.d.ts +20 -0
- package/dist/types/core/viewers/types.d.ts +4 -0
- package/package.json +1 -1
|
@@ -18,6 +18,21 @@ declare class RelatedTaskViewer implements CellViewer<RelatedTaskViewerData> {
|
|
|
18
18
|
private get EMPTY_TEXT_COLOR();
|
|
19
19
|
private get DASHED_BORDER_COLOR();
|
|
20
20
|
constructor();
|
|
21
|
+
/**
|
|
22
|
+
* Calculate thumbnail height for single-line mode.
|
|
23
|
+
* Max height = cell height - top/bottom padding (4px each).
|
|
24
|
+
*/
|
|
25
|
+
private getSingleLineThumbnailHeight;
|
|
26
|
+
/**
|
|
27
|
+
* Calculate thumbnail width for a given image, maintaining aspect ratio.
|
|
28
|
+
* If no image is cached yet, returns thumbHeight (square placeholder).
|
|
29
|
+
*/
|
|
30
|
+
private getThumbnailWidth;
|
|
31
|
+
/**
|
|
32
|
+
* Draw an image within the given area according to the specified fit mode.
|
|
33
|
+
* Mirrors the logic in FileViewer.drawPreviewImage and ImageViewer.drawImageWithFit.
|
|
34
|
+
*/
|
|
35
|
+
private drawImageWithFit;
|
|
21
36
|
/**
|
|
22
37
|
* Draw the related task cell content
|
|
23
38
|
*/
|
|
@@ -33,6 +48,11 @@ declare class RelatedTaskViewer implements CellViewer<RelatedTaskViewerData> {
|
|
|
33
48
|
* Draw empty placeholder — consistent with other viewers
|
|
34
49
|
*/
|
|
35
50
|
private drawEmptyPlaceholder;
|
|
51
|
+
/**
|
|
52
|
+
* Draw a file status/format icon when coverUrl is not available.
|
|
53
|
+
* Uses the same getIconByFileStatus logic as FileViewer for visual consistency.
|
|
54
|
+
*/
|
|
55
|
+
private drawFileStatusIcon;
|
|
36
56
|
/**
|
|
37
57
|
* Draw a dashed rectangle placeholder for unloaded/missing images
|
|
38
58
|
*/
|
|
@@ -1280,6 +1280,8 @@ export interface RelatedTaskDisplayField {
|
|
|
1280
1280
|
fileData?: Array<{
|
|
1281
1281
|
coverUrl: string;
|
|
1282
1282
|
assetId?: number;
|
|
1283
|
+
status?: number;
|
|
1284
|
+
fileFormat?: string;
|
|
1283
1285
|
}>;
|
|
1284
1286
|
/** File meta key for file-type fields (e.g. 'deliverable') */
|
|
1285
1287
|
fileMeta?: string;
|
|
@@ -1304,6 +1306,8 @@ export interface RelatedTaskViewerData extends CellViewerData {
|
|
|
1304
1306
|
/** Display fields with resolved values */
|
|
1305
1307
|
displayFields: RelatedTaskDisplayField[];
|
|
1306
1308
|
} | null;
|
|
1309
|
+
/** Thumbnail fit mode for file-type fields (synced from imageDisplayMode config) */
|
|
1310
|
+
thumbnailFit?: 'contain' | 'cover' | 'fill' | 'height-full' | 'width-full';
|
|
1307
1311
|
/** Callback when user clicks a file thumbnail — opens asset detail page */
|
|
1308
1312
|
onFileGoToDetail?: (file: {
|
|
1309
1313
|
assetId: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arthub-table",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.13",
|
|
4
4
|
"description": "High-performance canvas-based table/grid component for Vue 3 with TypeScript support, featuring virtual scrolling, cell viewers, grouped rows, and nested grids.",
|
|
5
5
|
"main": "dist/arthub-table.common.js",
|
|
6
6
|
"module": "dist/arthub-table.umd.min.js",
|