@masterteam/components 0.0.197 → 0.0.198
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/fesm2022/masterteam-components-entities.mjs +2 -1
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +20 -7
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-entities.d.ts +6 -6
- package/types/masterteam-components-table.d.ts +20 -0
package/package.json
CHANGED
|
@@ -311,7 +311,7 @@ declare class EntityUser {
|
|
|
311
311
|
* `true` when the referenced user is no longer linked to the application.
|
|
312
312
|
* Drives the inline info badge/tooltip next to the display name.
|
|
313
313
|
*/
|
|
314
|
-
readonly isUnlinked: _angular_core.Signal<
|
|
314
|
+
readonly isUnlinked: _angular_core.Signal<string | false | undefined>;
|
|
315
315
|
private readonly config;
|
|
316
316
|
readonly showDisplayName: _angular_core.Signal<boolean>;
|
|
317
317
|
readonly showPhoneNumber: _angular_core.Signal<boolean>;
|
|
@@ -409,8 +409,8 @@ type AttachmentReference = EntityAttachmentItemValue | string;
|
|
|
409
409
|
declare class EntityAttachment {
|
|
410
410
|
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
411
411
|
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
412
|
-
readonly shape: _angular_core.InputSignal<"
|
|
413
|
-
readonly value: _angular_core.InputSignal<string |
|
|
412
|
+
readonly shape: _angular_core.InputSignal<"compact" | "default">;
|
|
413
|
+
readonly value: _angular_core.InputSignal<string | EntityAttachmentValue | EntityAttachmentItemValue | null | undefined>;
|
|
414
414
|
readonly endPoint: _angular_core.InputSignal<string>;
|
|
415
415
|
readonly context: _angular_core.InputSignal<HttpContext | undefined>;
|
|
416
416
|
private readonly httpClient;
|
|
@@ -539,7 +539,7 @@ declare function buildDisplayEntities(entities: EntityData[]): EntityData[];
|
|
|
539
539
|
|
|
540
540
|
declare class EntityPreview {
|
|
541
541
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
542
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
542
|
+
readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
|
|
543
543
|
readonly comparisonKind: _angular_core.Signal<"Value" | "EntityList" | null>;
|
|
544
544
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreview, never>;
|
|
545
545
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreview, "mt-entity-preview", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "attachmentShape": { "alias": "attachmentShape"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -547,7 +547,7 @@ declare class EntityPreview {
|
|
|
547
547
|
|
|
548
548
|
declare class EntityPreviewBody {
|
|
549
549
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
550
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
550
|
+
readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
|
|
551
551
|
readonly previewType: _angular_core.Signal<"Text" | "LongText" | "Date" | "DateTime" | "Number" | "Percentage" | "Status" | "Currency" | "Checkbox" | "User" | "Lookup" | "Attachment" | "Location" | "LookupModuleCheckList" | "LeafDetails" | "Connection" | "ScheduleItemSelector">;
|
|
552
552
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreviewBody, never>;
|
|
553
553
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreviewBody, "mt-entity-preview-body", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "attachmentShape": { "alias": "attachmentShape"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -594,7 +594,7 @@ declare class EntitiesPreview {
|
|
|
594
594
|
private readonly transloco;
|
|
595
595
|
/** Array of entity data to display */
|
|
596
596
|
readonly entities: _angular_core.InputSignal<EntityData[]>;
|
|
597
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
597
|
+
readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
|
|
598
598
|
/**
|
|
599
599
|
* Set of entity keys that should appear interactive (cursor pointer,
|
|
600
600
|
* clicks emit). Pass `new Set([...])` from a computed signal in the host
|
|
@@ -109,6 +109,20 @@ interface ColumnDef {
|
|
|
109
109
|
readonly?: boolean;
|
|
110
110
|
width?: string;
|
|
111
111
|
filterOnly?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Opts a `custom` column into export/print. Custom columns are excluded by
|
|
114
|
+
* default because their template may render purely visual content with no
|
|
115
|
+
* scalar value. Set this when the underlying cell value is still meaningful
|
|
116
|
+
* (e.g. an entity/count rendered as a styled badge) so it appears in Excel/PDF.
|
|
117
|
+
* No effect on non-custom columns (those export unless `filterOnly`).
|
|
118
|
+
*/
|
|
119
|
+
exportable?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Overrides the exported/printed scalar for this column. When provided it wins
|
|
122
|
+
* over the default type-based resolution — use it for `custom` columns whose
|
|
123
|
+
* cell value isn't trivially resolvable, or to format any column's export value.
|
|
124
|
+
*/
|
|
125
|
+
exportValue?: (row: any) => string | number | boolean | null;
|
|
112
126
|
}
|
|
113
127
|
interface TableAction {
|
|
114
128
|
icon?: MTIcon | undefined;
|
|
@@ -626,6 +640,12 @@ declare class TableExportService {
|
|
|
626
640
|
printPdf(config: TablePrintConfig): void;
|
|
627
641
|
private ensurePrintStyles;
|
|
628
642
|
private getExportableColumns;
|
|
643
|
+
/**
|
|
644
|
+
* Resolves a single cell's exported/printed scalar. A column-level
|
|
645
|
+
* `exportValue` always wins; entity columns use the dedicated entity
|
|
646
|
+
* resolver; everything else defers to the caller-supplied `resolveValue`.
|
|
647
|
+
*/
|
|
648
|
+
private resolveCellValue;
|
|
629
649
|
/**
|
|
630
650
|
* Produces rows keyed by column label (Excel header row).
|
|
631
651
|
* Entity columns use the dedicated entity resolver for a clean export value.
|