@masterteam/components 0.0.196 → 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.
Files changed (39) hide show
  1. package/README.md +70 -70
  2. package/fesm2022/masterteam-components-business-fields.mjs +24 -6
  3. package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
  4. package/fesm2022/masterteam-components-card.mjs +2 -2
  5. package/fesm2022/masterteam-components-card.mjs.map +1 -1
  6. package/fesm2022/masterteam-components-drawer.mjs +2 -2
  7. package/fesm2022/masterteam-components-drawer.mjs.map +1 -1
  8. package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +1 -1
  9. package/fesm2022/masterteam-components-entities.mjs +22 -19
  10. package/fesm2022/masterteam-components-entities.mjs.map +1 -1
  11. package/fesm2022/masterteam-components-field-validation.mjs.map +1 -1
  12. package/fesm2022/masterteam-components-formula.mjs +2 -2
  13. package/fesm2022/masterteam-components-formula.mjs.map +1 -1
  14. package/fesm2022/masterteam-components-icon-field.mjs.map +1 -1
  15. package/fesm2022/masterteam-components-location-field.mjs +4 -4
  16. package/fesm2022/masterteam-components-location-field.mjs.map +1 -1
  17. package/fesm2022/masterteam-components-multi-select-field.mjs.map +1 -1
  18. package/fesm2022/masterteam-components-number-field.mjs +2 -2
  19. package/fesm2022/masterteam-components-number-field.mjs.map +1 -1
  20. package/fesm2022/masterteam-components-radio-cards-field.mjs +2 -2
  21. package/fesm2022/masterteam-components-radio-cards-field.mjs.map +1 -1
  22. package/fesm2022/masterteam-components-runtime-action.mjs.map +1 -1
  23. package/fesm2022/masterteam-components-table.mjs +24 -11
  24. package/fesm2022/masterteam-components-table.mjs.map +1 -1
  25. package/fesm2022/masterteam-components-text-field.mjs +2 -2
  26. package/fesm2022/masterteam-components-text-field.mjs.map +1 -1
  27. package/fesm2022/masterteam-components-textarea-field.mjs +2 -2
  28. package/fesm2022/masterteam-components-textarea-field.mjs.map +1 -1
  29. package/fesm2022/masterteam-components-toggle-field.mjs +2 -2
  30. package/fesm2022/masterteam-components-toggle-field.mjs.map +1 -1
  31. package/fesm2022/masterteam-components-treeselect-field.mjs +2 -2
  32. package/fesm2022/masterteam-components-treeselect-field.mjs.map +1 -1
  33. package/fesm2022/masterteam-components.mjs +3 -3
  34. package/fesm2022/masterteam-components.mjs.map +1 -1
  35. package/package.json +2 -2
  36. package/types/masterteam-components-business-fields.d.ts +8 -0
  37. package/types/masterteam-components-entities.d.ts +2 -2
  38. package/types/masterteam-components-formula.d.ts +1 -1
  39. package/types/masterteam-components-table.d.ts +20 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/components",
3
- "version": "0.0.196",
3
+ "version": "0.0.198",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/components",
6
6
  "linkDirectory": true,
@@ -21,7 +21,7 @@
21
21
  "quill": "^2.0.3",
22
22
  "tailwindcss": "^4.2.2",
23
23
  "tailwindcss-primeui": "^0.6.1",
24
- "@masterteam/icons": "^0.0.16"
24
+ "@masterteam/icons": "^0.0.17"
25
25
  },
26
26
  "repository": {
27
27
  "type": "git",
@@ -130,6 +130,14 @@ declare class SchemaConnectionField implements ControlValueAccessor {
130
130
  ngControl: NgControl | null;
131
131
  private http;
132
132
  private destroyRef;
133
+ private transloco;
134
+ /** Active UI language, kept reactive so source labels re-resolve on switch. */
135
+ private readonly activeLang;
136
+ /**
137
+ * Resolve a source level's display name in the active locale, falling back
138
+ * to English, Arabic, then the level/module key.
139
+ */
140
+ protected resolveSourceName(source: ConnectionSourceLevel): string;
133
141
  /**
134
142
  * Source levels from configuration.
135
143
  */
@@ -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>;
@@ -410,7 +410,7 @@ declare class EntityAttachment {
410
410
  readonly data: _angular_core.InputSignal<EntityData | undefined>;
411
411
  readonly name: _angular_core.InputSignal<string | undefined>;
412
412
  readonly shape: _angular_core.InputSignal<"compact" | "default">;
413
- readonly value: _angular_core.InputSignal<string | EntityAttachmentItemValue | EntityAttachmentValue | null | undefined>;
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;
@@ -606,7 +606,7 @@ declare class FormulaToolbarItem {
606
606
  /** Function signature (for functions only, e.g., "SUM(values)") */
607
607
  readonly signature: _angular_core.InputSignal<string | undefined>;
608
608
  /** Function examples (for functions only) - can be strings or objects with code/description */
609
- readonly examples: _angular_core.InputSignal<(string | ExampleItem | FunctionExample)[]>;
609
+ readonly examples: _angular_core.InputSignal<(string | FunctionExample | ExampleItem)[]>;
610
610
  /** Backend template to insert (preferred over signature) */
611
611
  readonly template: _angular_core.InputSignal<string | undefined>;
612
612
  /** Cursor offset relative to inserted template */
@@ -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.