@masterteam/components 0.0.197 → 0.0.199

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/components",
3
- "version": "0.0.197",
3
+ "version": "0.0.199",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/components",
6
6
  "linkDirectory": true,
@@ -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<boolean>;
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>;
@@ -338,6 +338,8 @@ declare class EntityPercentage {
338
338
  readonly maxValue: _angular_core.Signal<number>;
339
339
  readonly hideName: _angular_core.Signal<boolean>;
340
340
  readonly progressColor: _angular_core.Signal<string>;
341
+ /** Rounds a numeric percentage to one decimal place, preserving a `%` suffix. */
342
+ private formatPercentageDisplay;
341
343
  private parseNumericValue;
342
344
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPercentage, never>;
343
345
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPercentage, "mt-entity-percentage", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "rawValue": { "alias": "rawValue"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -409,8 +411,8 @@ type AttachmentReference = EntityAttachmentItemValue | string;
409
411
  declare class EntityAttachment {
410
412
  readonly data: _angular_core.InputSignal<EntityData | undefined>;
411
413
  readonly name: _angular_core.InputSignal<string | undefined>;
412
- readonly shape: _angular_core.InputSignal<"default" | "compact">;
413
- readonly value: _angular_core.InputSignal<string | EntityAttachmentItemValue | EntityAttachmentValue | null | undefined>;
414
+ readonly shape: _angular_core.InputSignal<"compact" | "default">;
415
+ readonly value: _angular_core.InputSignal<string | EntityAttachmentValue | EntityAttachmentItemValue | null | undefined>;
414
416
  readonly endPoint: _angular_core.InputSignal<string>;
415
417
  readonly context: _angular_core.InputSignal<HttpContext | undefined>;
416
418
  private readonly httpClient;
@@ -539,7 +541,7 @@ declare function buildDisplayEntities(entities: EntityData[]): EntityData[];
539
541
 
540
542
  declare class EntityPreview {
541
543
  readonly data: _angular_core.InputSignal<EntityData>;
542
- readonly attachmentShape: _angular_core.InputSignal<"default" | "compact">;
544
+ readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
543
545
  readonly comparisonKind: _angular_core.Signal<"Value" | "EntityList" | null>;
544
546
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreview, never>;
545
547
  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 +549,7 @@ declare class EntityPreview {
547
549
 
548
550
  declare class EntityPreviewBody {
549
551
  readonly data: _angular_core.InputSignal<EntityData>;
550
- readonly attachmentShape: _angular_core.InputSignal<"default" | "compact">;
552
+ readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
551
553
  readonly previewType: _angular_core.Signal<"Text" | "LongText" | "Date" | "DateTime" | "Number" | "Percentage" | "Status" | "Currency" | "Checkbox" | "User" | "Lookup" | "Attachment" | "Location" | "LookupModuleCheckList" | "LeafDetails" | "Connection" | "ScheduleItemSelector">;
552
554
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreviewBody, never>;
553
555
  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 +596,7 @@ declare class EntitiesPreview {
594
596
  private readonly transloco;
595
597
  /** Array of entity data to display */
596
598
  readonly entities: _angular_core.InputSignal<EntityData[]>;
597
- readonly attachmentShape: _angular_core.InputSignal<"default" | "compact">;
599
+ readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
598
600
  /**
599
601
  * Set of entity keys that should appear interactive (cursor pointer,
600
602
  * 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.