@masterteam/components 0.0.288 → 0.0.290

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.
@@ -14,6 +14,7 @@ import { FormsModule } from '@angular/forms';
14
14
  import { Button } from '@masterteam/components/button';
15
15
  import { forkJoin, finalize, of, take, switchMap, EMPTY, map, catchError } from 'rxjs';
16
16
  import { Chip } from '@masterteam/components/chip';
17
+ import { ModalService } from '@masterteam/components/modal';
17
18
  import * as i1$1 from 'primeng/tooltip';
18
19
  import { TooltipModule } from 'primeng/tooltip';
19
20
  import { NgTemplateOutlet, DOCUMENT } from '@angular/common';
@@ -648,17 +649,70 @@ function matchesPercentageColorRule(value, rule) {
648
649
  return max === null || value <= max;
649
650
  }
650
651
  /**
651
- * The colour for a percentage value: rules in their configured order, first
652
- * match wins, `defaultColor` when nothing matches.
652
+ * Whether the configuration takes its colour from another property rather than
653
+ * from the percentage value. A mode of `property` with no usable reference is
654
+ * not dynamic — a half-authored configuration must keep behaving like the
655
+ * value-based one rather than losing its colour entirely.
656
+ */
657
+ function isDynamicPercentageColorSource(source) {
658
+ return resolvePercentageColorPropertyRef(source) !== null;
659
+ }
660
+ /**
661
+ * The colour-bearing property the configuration points at, or `null` when it
662
+ * is value-based.
663
+ *
664
+ * The mode is also inferred from a present reference, not only from
665
+ * `colorSource`: the reference is the part that carries meaning, and a stored
666
+ * configuration that kept it while losing the discriminator must still resolve
667
+ * dynamically instead of silently repainting itself from the rules.
668
+ */
669
+ function resolvePercentageColorPropertyRef(source) {
670
+ if (source?.colorSource === 'rules') {
671
+ return null;
672
+ }
673
+ const ref = source?.colorProperty;
674
+ if (!ref || !isPropertyId(ref.propertyId)) {
675
+ return null;
676
+ }
677
+ return { ...ref, propertyId: ref.propertyId };
678
+ }
679
+ /**
680
+ * Whether a value identifies a real property.
681
+ *
682
+ * `0` is rejected as deliberately as `null`. Property ids are database
683
+ * identities and start at 1, so a zero can only mean "none" — and a backend
684
+ * DTO that models the reference as a non-nullable struct emits exactly that
685
+ * for an absent one. Accepting it would read every such payload as dynamic and
686
+ * abandon the colour rules of every Percentage property on the record.
687
+ *
688
+ * Nothing is coerced here either. `''`, `' '` and `[]` all become `0` through
689
+ * `Number()`, so a string or array that happens to stringify to nothing would
690
+ * otherwise sail through as a valid id.
691
+ */
692
+ function isPropertyId(value) {
693
+ return typeof value === 'number' && Number.isInteger(value) && value > 0;
694
+ }
695
+ /**
696
+ * The colour for a percentage value.
697
+ *
698
+ * In `rules` mode: the rules in their configured order, first match wins,
699
+ * `defaultColor` when nothing matches. In `property` mode the value decides
700
+ * nothing, and there is nothing here to decide it with — the colour belongs to
701
+ * another property on the same record, which only the backend can read — so the
702
+ * answer is `defaultColor`. The rules are never consulted in that mode: they
703
+ * would paint a value-based colour that the author deliberately replaced.
653
704
  *
654
705
  * The backend owns this evaluation and ships the winner as `color` on
655
706
  * render/value/fetch responses, so callers must prefer that resolved colour.
656
- * This exists for the surfaces that hold a raw rule set and no resolved colour
657
- * — the property-form preview, and catalog reads that never went through a
658
- * value response.
707
+ * This exists for the surfaces that hold a raw configuration and no resolved
708
+ * colour — the property-form preview, and catalog reads that never went through
709
+ * a value response.
659
710
  */
660
711
  function resolvePercentageColor(value, source) {
661
712
  const fallback = source?.defaultColor?.trim() || null;
713
+ if (isDynamicPercentageColorSource(source)) {
714
+ return fallback;
715
+ }
662
716
  const numericValue = toFiniteNumber(value);
663
717
  const rules = source?.colorRules;
664
718
  if (numericValue === null || !Array.isArray(rules)) {
@@ -708,11 +762,21 @@ class EntityPercentage {
708
762
  // ── Configuration-driven visibility ──
709
763
  hideName = computed(() => isEntityLabelHidden(this.data()?.configuration), ...(ngDevMode ? [{ debugName: "hideName" }] : /* istanbul ignore next */ []));
710
764
  /**
711
- * The bar colour. The backend evaluates the property's colour rules and
765
+ * The bar colour. The backend evaluates the property's configuration and
712
766
  * returns the winner as `color` on render/value/fetch responses, so a
713
- * resolved colour always wins — the rules are only evaluated here for
714
- * configurations that arrive without one (a catalog read, or the
715
- * property-form preview).
767
+ * resolved colour always wins — the configuration is only evaluated here for
768
+ * ones that arrive without it (a catalog read, or the property-form preview).
769
+ *
770
+ * A configuration that takes its colour from another property has no
771
+ * client-side answer at all: this component is given one entity and cannot
772
+ * see the Status or Lookup sitting next to it. Its fallback is the declared
773
+ * `defaultColor`, and the rules are skipped entirely.
774
+ *
775
+ * Dynamic-ness is decided once, across *both* configurations, before either
776
+ * is evaluated. Deciding it per-configuration would let a `colorRules` copy
777
+ * left on the instance config paint a band colour for a property whose own
778
+ * configuration replaced those rules — the one outcome this mode exists to
779
+ * prevent.
716
780
  */
717
781
  progressColor = computed(() => {
718
782
  const d = this.data();
@@ -722,6 +786,12 @@ class EntityPercentage {
722
786
  if (resolved) {
723
787
  return resolved;
724
788
  }
789
+ if (isDynamicPercentageColorSource(direct) ||
790
+ isDynamicPercentageColorSource(fromProperty)) {
791
+ return (direct?.defaultColor?.trim() ||
792
+ fromProperty?.defaultColor?.trim() ||
793
+ 'primary');
794
+ }
725
795
  const raw = this.rawNumericValue();
726
796
  return (resolvePercentageColor(raw, direct) ??
727
797
  resolvePercentageColor(raw, fromProperty) ??
@@ -1469,11 +1539,11 @@ class EntityConnection {
1469
1539
  }, ...(ngDevMode ? [{ debugName: "connection" }] : /* istanbul ignore next */ []));
1470
1540
  displayValue = computed(() => displayOrPlaceholder(this.connection()?.display), ...(ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []));
1471
1541
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityConnection, deps: [], target: i0.ɵɵFactoryTarget.Component });
1472
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.8", type: EntityConnection, isStandalone: true, selector: "mt-entity-connection", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<mt-entity-field\r\n [label]=\"displayName()\"\r\n [configuration]=\"data()?.configuration\"\r\n>\r\n <div\r\n class=\"min-w-0 max-w-full truncate text-sm font-semibold\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >\r\n {{ displayValue() }}\r\n </div>\r\n</mt-entity-field>\r\n", dependencies: [{ kind: "component", type: EntityField, selector: "mt-entity-field", inputs: ["label", "labelIconName", "configuration", "gap"] }, { kind: "directive", type: TruncateTooltip, selector: "[mtTruncateTooltip]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1542
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.8", type: EntityConnection, isStandalone: true, selector: "mt-entity-connection", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<mt-entity-field\n [label]=\"displayName()\"\n [configuration]=\"data()?.configuration\"\n>\n <div\n class=\"min-w-0 max-w-full truncate text-sm font-semibold\"\n mtTruncateTooltip\n tooltipPosition=\"top\"\n >\n {{ displayValue() }}\n </div>\n</mt-entity-field>\n", dependencies: [{ kind: "component", type: EntityField, selector: "mt-entity-field", inputs: ["label", "labelIconName", "configuration", "gap"] }, { kind: "directive", type: TruncateTooltip, selector: "[mtTruncateTooltip]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1473
1543
  }
1474
1544
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityConnection, decorators: [{
1475
1545
  type: Component,
1476
- args: [{ selector: 'mt-entity-connection', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, TruncateTooltip], template: "<mt-entity-field\r\n [label]=\"displayName()\"\r\n [configuration]=\"data()?.configuration\"\r\n>\r\n <div\r\n class=\"min-w-0 max-w-full truncate text-sm font-semibold\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >\r\n {{ displayValue() }}\r\n </div>\r\n</mt-entity-field>\r\n" }]
1546
+ args: [{ selector: 'mt-entity-connection', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, TruncateTooltip], template: "<mt-entity-field\n [label]=\"displayName()\"\n [configuration]=\"data()?.configuration\"\n>\n <div\n class=\"min-w-0 max-w-full truncate text-sm font-semibold\"\n mtTruncateTooltip\n tooltipPosition=\"top\"\n >\n {{ displayValue() }}\n </div>\n</mt-entity-field>\n" }]
1477
1547
  }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }] } });
1478
1548
  function normalizeEntityConnection(value) {
1479
1549
  if (value === null || value === undefined || value === '') {
@@ -1521,13 +1591,243 @@ class EntityScheduleItem {
1521
1591
  }, ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
1522
1592
  emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;
1523
1593
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityScheduleItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
1524
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityScheduleItem, isStandalone: true, selector: "mt-entity-schedule-item", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<mt-entity-field\r\n [label]=\"displayName()\"\r\n [configuration]=\"data()?.configuration\"\r\n gap=\"normal\"\r\n>\r\n @if (items().length) {\r\n <div class=\"flex flex-wrap items-center gap-2\">\r\n @for (item of items(); track item.id) {\r\n <mt-chip [label]=\"item.name\" size=\"small\" />\r\n }\r\n </div>\r\n } @else {\r\n <span\r\n class=\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\"\r\n >\r\n {{ emptyLabel }}\r\n </span>\r\n }\r\n</mt-entity-field>\r\n", dependencies: [{ kind: "component", type: EntityField, selector: "mt-entity-field", inputs: ["label", "labelIconName", "configuration", "gap"] }, { kind: "component", type: Chip, selector: "mt-chip", inputs: ["label", "icon", "image", "removable", "removeIcon", "styleClass", "size"], outputs: ["onRemove", "onImageError"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1594
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityScheduleItem, isStandalone: true, selector: "mt-entity-schedule-item", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<mt-entity-field\n [label]=\"displayName()\"\n [configuration]=\"data()?.configuration\"\n gap=\"normal\"\n>\n @if (items().length) {\n <div class=\"flex flex-wrap items-center gap-2\">\n @for (item of items(); track item.id) {\n <mt-chip [label]=\"item.name\" size=\"small\" />\n }\n </div>\n } @else {\n <span\n class=\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\"\n >\n {{ emptyLabel }}\n </span>\n }\n</mt-entity-field>\n", dependencies: [{ kind: "component", type: EntityField, selector: "mt-entity-field", inputs: ["label", "labelIconName", "configuration", "gap"] }, { kind: "component", type: Chip, selector: "mt-chip", inputs: ["label", "icon", "image", "removable", "removeIcon", "styleClass", "size"], outputs: ["onRemove", "onImageError"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1525
1595
  }
1526
1596
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityScheduleItem, decorators: [{
1527
1597
  type: Component,
1528
- args: [{ selector: 'mt-entity-schedule-item', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, Chip], template: "<mt-entity-field\r\n [label]=\"displayName()\"\r\n [configuration]=\"data()?.configuration\"\r\n gap=\"normal\"\r\n>\r\n @if (items().length) {\r\n <div class=\"flex flex-wrap items-center gap-2\">\r\n @for (item of items(); track item.id) {\r\n <mt-chip [label]=\"item.name\" size=\"small\" />\r\n }\r\n </div>\r\n } @else {\r\n <span\r\n class=\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\"\r\n >\r\n {{ emptyLabel }}\r\n </span>\r\n }\r\n</mt-entity-field>\r\n" }]
1598
+ args: [{ selector: 'mt-entity-schedule-item', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, Chip], template: "<mt-entity-field\n [label]=\"displayName()\"\n [configuration]=\"data()?.configuration\"\n gap=\"normal\"\n>\n @if (items().length) {\n <div class=\"flex flex-wrap items-center gap-2\">\n @for (item of items(); track item.id) {\n <mt-chip [label]=\"item.name\" size=\"small\" />\n }\n </div>\n } @else {\n <span\n class=\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\"\n >\n {{ emptyLabel }}\n </span>\n }\n</mt-entity-field>\n" }]
1529
1599
  }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }] } });
1530
1600
 
1601
+ /**
1602
+ * Nested fields render as small labelled pairs. The row is the unit of
1603
+ * meaning, so labels sit above their values and stay muted.
1604
+ */
1605
+ const NESTED_FIELD_CONFIG = {
1606
+ labelPosition: 'top',
1607
+ hideLabel: false,
1608
+ };
1609
+ /**
1610
+ * A badge already says what it is: "Status" stacked above a green "Completed"
1611
+ * pill is one wasted line per row. Applies only to the folded `_key`/`_color`
1612
+ * status, whose display text is its own label.
1613
+ */
1614
+ const BADGE_FIELD_CONFIG = {
1615
+ hideLabel: true,
1616
+ };
1617
+ /** The title renders bare — the row itself is the label. */
1618
+ const TITLE_FIELD_CONFIG = {
1619
+ hideLabel: true,
1620
+ };
1621
+ /**
1622
+ * Suffixes that mark a field as the *machine companion* of another field
1623
+ * present in the same list — `status_key` and `status_color` describe
1624
+ * `status`, they are not values of their own. Folded into a single `Status`
1625
+ * entity so the trio renders as one coloured badge, which is what the backend
1626
+ * emits them for.
1627
+ */
1628
+ const COMPANION_SUFFIXES = ['key', 'color'];
1629
+ function normalizeViewType(viewType) {
1630
+ return (viewType ?? 'Text');
1631
+ }
1632
+ /**
1633
+ * Identifier fields are plumbing, not content: a row that reads
1634
+ * "Schema Phase Gate Item Id: 5" tells the reader nothing. Only `Number`
1635
+ * fields are dropped, so a genuine text field ending in `_id` still renders.
1636
+ */
1637
+ function isIdentifierField(meta) {
1638
+ return (normalizeViewType(meta.viewType) === 'Number' &&
1639
+ meta.key.toLowerCase().endsWith('_id'));
1640
+ }
1641
+ /**
1642
+ * Derive a readable label from a raw field key. Inline `EntityList` fields
1643
+ * carry no label of their own — the configuration defines them as bare keys —
1644
+ * so this strips separators and title-cases what is left.
1645
+ */
1646
+ function humanizeEntityListKey(key) {
1647
+ const words = key
1648
+ .replace(/[_-]+/g, ' ')
1649
+ .replace(/([a-z0-9])([A-Z])/g, '$1 $2')
1650
+ .trim();
1651
+ if (!words)
1652
+ return key;
1653
+ return words.charAt(0).toUpperCase() + words.slice(1);
1654
+ }
1655
+ /**
1656
+ * The value arrives parsed when the host hands over the rendered cell, and as
1657
+ * JSON when it comes through `rawValue` — the table serializes object cells on
1658
+ * the way in.
1659
+ */
1660
+ function coerceValue(data) {
1661
+ const value = data.value;
1662
+ if (value && typeof value === 'object' && !Array.isArray(value)) {
1663
+ return value;
1664
+ }
1665
+ const raw = typeof value === 'string' && value ? value : data.rawValue;
1666
+ if (typeof raw !== 'string' || !raw.trim())
1667
+ return null;
1668
+ try {
1669
+ const parsed = JSON.parse(raw);
1670
+ return parsed && typeof parsed === 'object' && !Array.isArray(parsed)
1671
+ ? parsed
1672
+ : null;
1673
+ }
1674
+ catch {
1675
+ return null;
1676
+ }
1677
+ }
1678
+ /**
1679
+ * The inline field catalog. `propertyConfiguration` is the untouched catalog
1680
+ * entry; `configuration` is read as well because the table merges its own
1681
+ * display flags into that object when it builds a cell.
1682
+ */
1683
+ function readInlineFields(data) {
1684
+ const sources = [
1685
+ data.propertyConfiguration ?? null,
1686
+ (data.configuration ?? null),
1687
+ ];
1688
+ for (const source of sources) {
1689
+ if (!source || Array.isArray(source))
1690
+ continue;
1691
+ const fields = source['inlineFields'];
1692
+ if (Array.isArray(fields) && fields.length > 0) {
1693
+ return fields;
1694
+ }
1695
+ }
1696
+ return [];
1697
+ }
1698
+ /**
1699
+ * The field this one is a machine companion of, when that field is present in
1700
+ * the same list. `status_color` returns `status`; a standalone `color` field
1701
+ * with no `color` sibling returns null and renders normally.
1702
+ */
1703
+ function companionTargetOf(field, present) {
1704
+ for (const suffix of COMPANION_SUFFIXES) {
1705
+ if (!field.key.endsWith(`_${suffix}`))
1706
+ continue;
1707
+ const target = field.key.slice(0, -(suffix.length + 1));
1708
+ if (target && present.has(target))
1709
+ return target;
1710
+ }
1711
+ return null;
1712
+ }
1713
+ /** Field definitions in render order, machine companions already removed. */
1714
+ function visibleFields(data, allowed) {
1715
+ const declared = [...readInlineFields(data)].sort((a, b) => (a.order ?? 0) - (b.order ?? 0));
1716
+ const present = new Set(declared.map((field) => field.key));
1717
+ const visible = declared.filter((field) => !isIdentifierField(field) && !companionTargetOf(field, present));
1718
+ if (allowed.length === 0)
1719
+ return visible;
1720
+ const byKey = new Map(visible.map((field) => [field.key, field]));
1721
+ return allowed
1722
+ .map((key) => byKey.get(key))
1723
+ .filter((field) => !!field);
1724
+ }
1725
+ function valuesByKey(row) {
1726
+ const map = new Map();
1727
+ for (const item of row.values ?? []) {
1728
+ if (item?.propertyKey)
1729
+ map.set(item.propertyKey, item.rawValue ?? null);
1730
+ }
1731
+ return map;
1732
+ }
1733
+ /**
1734
+ * Builds the entity for one nested field. A field with a `_key`/`_color`
1735
+ * companion becomes a `Status`, so the trio renders as one coloured badge
1736
+ * instead of three separate cells.
1737
+ */
1738
+ function toNestedEntity(field, values) {
1739
+ const raw = values.get(field.key) ?? null;
1740
+ const color = values.get(`${field.key}_color`);
1741
+ const statusKey = values.get(`${field.key}_key`);
1742
+ const base = {
1743
+ key: field.key,
1744
+ name: humanizeEntityListKey(field.key),
1745
+ propertyConfiguration: field.configuration,
1746
+ configuration: NESTED_FIELD_CONFIG,
1747
+ order: field.order,
1748
+ };
1749
+ if (color !== undefined || statusKey !== undefined) {
1750
+ // No display text means no badge to show — an empty status is empty.
1751
+ if (!raw)
1752
+ return null;
1753
+ return {
1754
+ ...base,
1755
+ configuration: BADGE_FIELD_CONFIG,
1756
+ rawValue: raw,
1757
+ viewType: 'Status',
1758
+ value: { key: statusKey ?? raw, display: raw, color: color ?? '' },
1759
+ };
1760
+ }
1761
+ return {
1762
+ ...base,
1763
+ rawValue: raw ?? undefined,
1764
+ viewType: normalizeViewType(field.viewType),
1765
+ value: raw ?? '',
1766
+ };
1767
+ }
1768
+ /**
1769
+ * Turns an `EntityList` entity into rendered rows.
1770
+ *
1771
+ * Nothing is fetched: the value already carries `rows[]`, and the property
1772
+ * configuration's `inlineFields` is the only description of the nested columns
1773
+ * — the rows themselves carry bare keys. Shared by the trigger
1774
+ * (`mt-entity-list-preview`, which needs the count and the titles) and the
1775
+ * drawer that renders them in full.
1776
+ *
1777
+ * `allowed` narrows to those keys, in that order; empty renders every field
1778
+ * that survives the companion and identifier rules.
1779
+ */
1780
+ function buildEntityListRows(data, allowed = []) {
1781
+ const fields = visibleFields(data, allowed);
1782
+ const rows = coerceValue(data)?.rows;
1783
+ if (!Array.isArray(rows))
1784
+ return [];
1785
+ return rows
1786
+ .filter((row) => !!row)
1787
+ .map((row, index) => {
1788
+ const values = valuesByKey(row);
1789
+ const rendered = fields
1790
+ .map((field) => toNestedEntity(field, values))
1791
+ .filter((entity) => !!entity);
1792
+ // The title is the first field that actually rendered, not the first
1793
+ // that was declared: a leading field can drop out (an empty status
1794
+ // renders nothing), and the survivor promoted into the title slot must
1795
+ // lose its label there rather than keep the one it was built with.
1796
+ const [first, ...rest] = rendered;
1797
+ return {
1798
+ id: String(row.rowId ?? row.entityId ?? index),
1799
+ title: first ? { ...first, configuration: TITLE_FIELD_CONFIG } : null,
1800
+ fields: rest,
1801
+ };
1802
+ });
1803
+ }
1804
+ /**
1805
+ * The row's title as plain text. A title that folded into a `Status` carries
1806
+ * an object, not a string — reading only the string case would silently drop
1807
+ * every row from the tooltip whenever the leading field is a status.
1808
+ */
1809
+ function titleTextOf(row) {
1810
+ const value = row.title?.value;
1811
+ if (typeof value === 'string')
1812
+ return value.trim();
1813
+ if (value && typeof value === 'object' && 'display' in value) {
1814
+ const display = value.display;
1815
+ return typeof display === 'string' ? display.trim() : '';
1816
+ }
1817
+ return '';
1818
+ }
1819
+ /**
1820
+ * Plain-text summary of the rows, for the trigger's tooltip. Caps the list so
1821
+ * a forty-item checklist does not become a forty-line tooltip.
1822
+ */
1823
+ function summarizeEntityListRows(rows, limit) {
1824
+ const names = rows.map(titleTextOf).filter((name) => name.length > 0);
1825
+ return {
1826
+ names: names.slice(0, limit),
1827
+ remaining: Math.max(0, names.length - limit),
1828
+ };
1829
+ }
1830
+
1531
1831
  /**
1532
1832
  * One shared active-language signal per `TranslocoService`.
1533
1833
  *
@@ -1709,6 +2009,131 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
1709
2009
  }, template: "@switch (previewType()) {\r\n @case (\"Text\") {\r\n <mt-entity-text [data]=\"data()\" />\r\n }\r\n @case (\"LongText\") {\r\n <mt-entity-long-text [data]=\"data()\" />\r\n }\r\n @case (\"Date\") {\r\n <mt-entity-date [data]=\"data()\" />\r\n }\r\n @case (\"DateTime\") {\r\n <mt-entity-date [data]=\"data()\" [viewType]=\"'DateTime'\" />\r\n }\r\n @case (\"Time\") {\r\n <mt-entity-date [data]=\"data()\" [viewType]=\"'Time'\" />\r\n }\r\n @case (\"User\") {\r\n <mt-entity-user [data]=\"data()\" />\r\n }\r\n @case (\"MultiUser\") {\r\n <mt-entity-user [data]=\"data()\" />\r\n }\r\n @case (\"Percentage\") {\r\n <mt-entity-percentage [data]=\"data()\" />\r\n }\r\n @case (\"Currency\") {\r\n <mt-entity-currency [data]=\"data()\" />\r\n }\r\n @case (\"Number\") {\r\n <mt-entity-text [data]=\"data()\" />\r\n }\r\n @case (\"Checkbox\") {\r\n <mt-entity-checkbox [data]=\"data()\" />\r\n }\r\n @case (\"Lookup\") {\r\n <mt-entity-lookup [data]=\"data()\" />\r\n }\r\n @case (\"Status\") {\r\n <mt-entity-status [data]=\"data()\" />\r\n }\r\n @case (\"Icon\") {\r\n <mt-entity-icon [data]=\"data()\" />\r\n }\r\n @case (\"PhaseGate\") {\r\n <mt-entity-phase-gate [data]=\"data()\" />\r\n }\r\n @case (\"Attachment\") {\r\n <mt-entity-attachment [data]=\"data()\" [shape]=\"attachmentShape()\" />\r\n }\r\n @case (\"Location\") {\r\n <mt-entity-location [data]=\"data()\" />\r\n }\r\n @case (\"Connection\") {\r\n <mt-entity-connection [data]=\"data()\" />\r\n }\r\n @case (\"ScheduleItemSelector\") {\r\n <mt-entity-schedule-item [data]=\"data()\" />\r\n }\r\n @case (\"LeafDetails\") {\r\n <mt-entity-leaf-details [data]=\"data()\" />\r\n }\r\n @default {\r\n <mt-entity-text [data]=\"data()\" />\r\n }\r\n}\r\n" }]
1710
2010
  }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], attachmentShape: [{ type: i0.Input, args: [{ isSignal: true, alias: "attachmentShape", required: false }] }] } });
1711
2011
 
2012
+ /**
2013
+ * The full nested `EntityList`, rendered in a drawer opened by
2014
+ * `mt-entity-list-preview`.
2015
+ *
2016
+ * It lives in a drawer rather than in the cell because the cell is a table
2017
+ * column: even three lines per row set the height of every row in the table,
2018
+ * and a checklist of fifteen made the grid unreadable. The drawer has the
2019
+ * width and height this content actually needs.
2020
+ *
2021
+ * Created through `ModalService`, so its inputs arrive via `inputValues` and
2022
+ * it is built with the **root** injector — nothing route-provided is visible
2023
+ * here, which is why it takes the already-resolved entity rather than looking
2024
+ * anything up.
2025
+ */
2026
+ class EntityListDrawer {
2027
+ data = input.required(...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
2028
+ /** Ordered allowlist of nested field keys; empty renders all of them. */
2029
+ fields = input([], ...(ngDevMode ? [{ debugName: "fields" }] : /* istanbul ignore next */ []));
2030
+ rows = computed(() => buildEntityListRows(this.data(), this.fields()), ...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
2031
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityListDrawer, deps: [], target: i0.ɵɵFactoryTarget.Component });
2032
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityListDrawer, isStandalone: true, selector: "mt-entity-list-drawer", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, fields: { classPropertyName: "fields", publicName: "fields", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "block h-full" }, ngImport: i0, template: "<!--\r\n Owns its scroll rather than taking the shared `mt-modal-content` shell: that\r\n class reserves 60px for a footer, and this drawer is read-only and has none,\r\n so it would leave a dead strip at the bottom. `h-full` chains off the host's,\r\n which chains off `.p-drawer-content` \u2014 the one definite height here.\r\n-->\r\n<div class=\"flex h-full flex-col gap-2 overflow-auto p-5\">\r\n @for (row of rows(); track row.id) {\r\n <div class=\"rounded-md border border-surface-200 bg-surface-50 px-3 py-2.5\">\r\n @if (row.title; as title) {\r\n <div class=\"min-w-0 text-sm font-medium text-color\">\r\n <mt-entity-value-preview [data]=\"title\" attachmentShape=\"compact\" />\r\n </div>\r\n }\r\n\r\n @if (row.fields.length) {\r\n <!--\r\n The drawer has room the cell did not, so fields get a real grid with\r\n their labels instead of being crushed onto one wrapping line.\r\n `auto-fill` adapts to the drawer's actual width without a container\r\n query, and the `min()` floor keeps a narrow drawer from being forced\r\n wider than the viewport.\r\n -->\r\n <div\r\n class=\"mt-2 grid gap-x-4 gap-y-3 [grid-template-columns:repeat(auto-fill,minmax(min(9rem,100%),1fr))]\"\r\n >\r\n @for (field of row.fields; track field.key) {\r\n <div class=\"min-w-0 overflow-hidden\">\r\n <mt-entity-value-preview\r\n [data]=\"field\"\r\n attachmentShape=\"compact\"\r\n />\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n }\r\n</div>\r\n", dependencies: [{ kind: "component", type: EntityValuePreview, selector: "mt-entity-value-preview", inputs: ["data", "attachmentShape"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2033
+ }
2034
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityListDrawer, decorators: [{
2035
+ type: Component,
2036
+ args: [{ selector: 'mt-entity-list-drawer', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [EntityValuePreview], host: { class: 'block h-full' }, template: "<!--\r\n Owns its scroll rather than taking the shared `mt-modal-content` shell: that\r\n class reserves 60px for a footer, and this drawer is read-only and has none,\r\n so it would leave a dead strip at the bottom. `h-full` chains off the host's,\r\n which chains off `.p-drawer-content` \u2014 the one definite height here.\r\n-->\r\n<div class=\"flex h-full flex-col gap-2 overflow-auto p-5\">\r\n @for (row of rows(); track row.id) {\r\n <div class=\"rounded-md border border-surface-200 bg-surface-50 px-3 py-2.5\">\r\n @if (row.title; as title) {\r\n <div class=\"min-w-0 text-sm font-medium text-color\">\r\n <mt-entity-value-preview [data]=\"title\" attachmentShape=\"compact\" />\r\n </div>\r\n }\r\n\r\n @if (row.fields.length) {\r\n <!--\r\n The drawer has room the cell did not, so fields get a real grid with\r\n their labels instead of being crushed onto one wrapping line.\r\n `auto-fill` adapts to the drawer's actual width without a container\r\n query, and the `min()` floor keeps a narrow drawer from being forced\r\n wider than the viewport.\r\n -->\r\n <div\r\n class=\"mt-2 grid gap-x-4 gap-y-3 [grid-template-columns:repeat(auto-fill,minmax(min(9rem,100%),1fr))]\"\r\n >\r\n @for (field of row.fields; track field.key) {\r\n <div class=\"min-w-0 overflow-hidden\">\r\n <mt-entity-value-preview\r\n [data]=\"field\"\r\n attachmentShape=\"compact\"\r\n />\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n }\r\n</div>\r\n" }]
2037
+ }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], fields: [{ type: i0.Input, args: [{ isSignal: true, alias: "fields", required: false }] }] } });
2038
+
2039
+ /** Rows named in the tooltip before it collapses into "+N more". */
2040
+ const TOOLTIP_ROW_LIMIT = 6;
2041
+ /**
2042
+ * Read-only renderer for an `EntityList` value nested inside another entity —
2043
+ * typically one column of the table `mt-entity-list-field` builds, where the
2044
+ * target module carries a calculated inline list of its own (phase gate
2045
+ * checklists being the case this was written for).
2046
+ *
2047
+ * The cell shows a count and a preview button, not the list. Rendering the
2048
+ * rows inline made the column own the table's row height — three lines per
2049
+ * checklist item, times however many items the phase gate has — and the grid
2050
+ * stopped being scannable. The rows go in a drawer instead, where they have
2051
+ * room; the tooltip names them so the common "which ones are these?" question
2052
+ * is answered without opening anything.
2053
+ *
2054
+ * Nothing is fetched: the value already carries its rows, and the property
2055
+ * configuration's `inlineFields` carries the only description of the columns.
2056
+ * There is no writable path here by design — calculated inline lists are
2057
+ * `access: Read` at the source.
2058
+ */
2059
+ class EntityListPreview {
2060
+ data = input.required(...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
2061
+ /**
2062
+ * Restricts rendering to these nested field keys, in this order. Left empty,
2063
+ * every field in `inlineFields` renders — what the generic table path wants;
2064
+ * a host that knows the list narrows it here. Forwarded to the drawer.
2065
+ */
2066
+ fields = input([], ...(ngDevMode ? [{ debugName: "fields" }] : /* istanbul ignore next */ []));
2067
+ modal = inject(ModalService);
2068
+ transloco = inject(TranslocoService);
2069
+ /**
2070
+ * Read inside every computed that translates. `transloco.translate()` is a
2071
+ * one-shot read with no signal of its own, so without this dependency the
2072
+ * tooltip and the accessible name keep whatever language they were first
2073
+ * built in — both apps switch language at runtime. Shared rather than a
2074
+ * per-instance subscription: this renders once per cell per row.
2075
+ */
2076
+ activeLang = sharedActiveLang(this.transloco);
2077
+ label = computed(() => this.data().name ?? '', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
2078
+ rows = computed(() => buildEntityListRows(this.data(), this.fields()), ...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
2079
+ count = computed(() => this.rows().length, ...(ngDevMode ? [{ debugName: "count" }] : /* istanbul ignore next */ []));
2080
+ hasRows = computed(() => this.count() > 0, ...(ngDevMode ? [{ debugName: "hasRows" }] : /* istanbul ignore next */ []));
2081
+ /**
2082
+ * An empty list reads as the standard empty value, not as a sentence — this
2083
+ * sits in a table cell, where a "no related items" line would be louder than
2084
+ * the rows it stands in for.
2085
+ */
2086
+ emptyLabel = displayOrPlaceholder(null);
2087
+ /**
2088
+ * The button's accessible name. Set explicitly because `mt-button` resolves
2089
+ * it as `ariaLabel → label → tooltip`, and the label here is the bare count
2090
+ * — a screen reader would otherwise announce the button as "2".
2091
+ */
2092
+ ariaLabel = computed(() => {
2093
+ this.activeLang();
2094
+ return `${this.viewLabel()} (${this.count()})`;
2095
+ }, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
2096
+ /**
2097
+ * Names the rows, so the cell answers "which ones?" on hover. Falls back to
2098
+ * the button's own wording when no row has a title to show.
2099
+ */
2100
+ tooltip = computed(() => {
2101
+ this.activeLang();
2102
+ const { names, remaining } = summarizeEntityListRows(this.rows(), TOOLTIP_ROW_LIMIT);
2103
+ if (names.length === 0)
2104
+ return this.viewLabel();
2105
+ const more = remaining > 0
2106
+ ? [
2107
+ this.transloco.translate('components.entityListPreview.more', {
2108
+ count: remaining,
2109
+ }),
2110
+ ]
2111
+ : [];
2112
+ return [...names, ...more].join(' · ');
2113
+ }, ...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
2114
+ viewLabel() {
2115
+ return this.transloco.translate('components.entityListPreview.view');
2116
+ }
2117
+ openDrawer() {
2118
+ this.modal.openModal(EntityListDrawer, 'drawer', {
2119
+ header: this.label() || undefined,
2120
+ position: 'end',
2121
+ styleClass: '!w-[34rem] max-w-[96vw]',
2122
+ dismissableMask: true,
2123
+ inputValues: {
2124
+ data: this.data(),
2125
+ fields: this.fields(),
2126
+ },
2127
+ });
2128
+ }
2129
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityListPreview, deps: [], target: i0.ɵɵFactoryTarget.Component });
2130
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityListPreview, isStandalone: true, selector: "mt-entity-list-preview", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, fields: { classPropertyName: "fields", publicName: "fields", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<mt-entity-field\r\n [label]=\"label()\"\r\n [configuration]=\"data().configuration\"\r\n gap=\"normal\"\r\n>\r\n @if (hasRows()) {\r\n <!--\r\n The count carries the information; the button carries the affordance.\r\n `mt-button` owns the tooltip and the accessible name, so the trigger is\r\n one element rather than a button wrapped in a tooltip host.\r\n -->\r\n <mt-button\r\n icon=\"general.eye\"\r\n [label]=\"count().toString()\"\r\n [tooltip]=\"tooltip()\"\r\n [ariaLabel]=\"ariaLabel()\"\r\n variant=\"text\"\r\n size=\"small\"\r\n styleClass=\"!px-2 !py-1 !gap-1\"\r\n (onClick)=\"openDrawer()\"\r\n />\r\n } @else {\r\n <span\r\n class=\"inline-flex w-fit items-center rounded-md bg-surface-100 px-3 py-2 text-xs font-semibold text-muted-color\"\r\n >\r\n {{ emptyLabel }}\r\n </span>\r\n }\r\n</mt-entity-field>\r\n", dependencies: [{ kind: "component", type: EntityField, selector: "mt-entity-field", inputs: ["label", "labelIconName", "configuration", "gap"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2131
+ }
2132
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityListPreview, decorators: [{
2133
+ type: Component,
2134
+ args: [{ selector: 'mt-entity-list-preview', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [EntityField, Button], template: "<mt-entity-field\r\n [label]=\"label()\"\r\n [configuration]=\"data().configuration\"\r\n gap=\"normal\"\r\n>\r\n @if (hasRows()) {\r\n <!--\r\n The count carries the information; the button carries the affordance.\r\n `mt-button` owns the tooltip and the accessible name, so the trigger is\r\n one element rather than a button wrapped in a tooltip host.\r\n -->\r\n <mt-button\r\n icon=\"general.eye\"\r\n [label]=\"count().toString()\"\r\n [tooltip]=\"tooltip()\"\r\n [ariaLabel]=\"ariaLabel()\"\r\n variant=\"text\"\r\n size=\"small\"\r\n styleClass=\"!px-2 !py-1 !gap-1\"\r\n (onClick)=\"openDrawer()\"\r\n />\r\n } @else {\r\n <span\r\n class=\"inline-flex w-fit items-center rounded-md bg-surface-100 px-3 py-2 text-xs font-semibold text-muted-color\"\r\n >\r\n {{ emptyLabel }}\r\n </span>\r\n }\r\n</mt-entity-field>\r\n" }]
2135
+ }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], fields: [{ type: i0.Input, args: [{ isSignal: true, alias: "fields", required: false }] }] } });
2136
+
1712
2137
  /**
1713
2138
  * Nested props render inside the entry card's own grid, so they take the label
1714
2139
  * treatment and leave sizing to the grid.
@@ -2267,17 +2692,23 @@ function buildDisplayEntities(entities) {
2267
2692
  .sort((a, b) => (a.order ?? 0) - (b.order ?? 0));
2268
2693
  }
2269
2694
 
2695
+ /**
2696
+ * Owns the view types that render their own nested properties *through*
2697
+ * `EntityValuePreview`. Routing them from inside that component instead would
2698
+ * make the two files import each other, so they branch here and everything
2699
+ * else is delegated.
2700
+ */
2270
2701
  class EntityPreviewBody {
2271
2702
  data = input.required(...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
2272
2703
  attachmentShape = input('default', ...(ngDevMode ? [{ debugName: "attachmentShape" }] : /* istanbul ignore next */ []));
2273
2704
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityPreviewBody, deps: [], target: i0.ɵɵFactoryTarget.Component });
2274
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityPreviewBody, isStandalone: true, selector: "mt-entity-preview-body", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, attachmentShape: { classPropertyName: "attachmentShape", publicName: "attachmentShape", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "w-full" }, ngImport: i0, template: "@if (data().viewType === \"LookupModuleCheckList\") {\r\n <mt-entity-lookup-module-check-list [data]=\"data()\" />\r\n} @else {\r\n <mt-entity-value-preview\r\n [data]=\"data()\"\r\n [attachmentShape]=\"attachmentShape()\"\r\n />\r\n}\r\n", dependencies: [{ kind: "component", type: EntityLookupModuleCheckList, selector: "mt-entity-lookup-module-check-list", inputs: ["data"] }, { kind: "component", type: EntityValuePreview, selector: "mt-entity-value-preview", inputs: ["data", "attachmentShape"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2705
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityPreviewBody, isStandalone: true, selector: "mt-entity-preview-body", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, attachmentShape: { classPropertyName: "attachmentShape", publicName: "attachmentShape", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "w-full" }, ngImport: i0, template: "@if (data().viewType === \"LookupModuleCheckList\") {\r\n <mt-entity-lookup-module-check-list [data]=\"data()\" />\r\n} @else if (data().viewType === \"EntityList\") {\r\n <mt-entity-list-preview [data]=\"data()\" />\r\n} @else {\r\n <mt-entity-value-preview\r\n [data]=\"data()\"\r\n [attachmentShape]=\"attachmentShape()\"\r\n />\r\n}\r\n", dependencies: [{ kind: "component", type: EntityListPreview, selector: "mt-entity-list-preview", inputs: ["data", "fields"] }, { kind: "component", type: EntityLookupModuleCheckList, selector: "mt-entity-lookup-module-check-list", inputs: ["data"] }, { kind: "component", type: EntityValuePreview, selector: "mt-entity-value-preview", inputs: ["data", "attachmentShape"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2275
2706
  }
2276
2707
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityPreviewBody, decorators: [{
2277
2708
  type: Component,
2278
- args: [{ selector: 'mt-entity-preview-body', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [EntityLookupModuleCheckList, EntityValuePreview], host: {
2709
+ args: [{ selector: 'mt-entity-preview-body', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [EntityListPreview, EntityLookupModuleCheckList, EntityValuePreview], host: {
2279
2710
  class: 'w-full',
2280
- }, template: "@if (data().viewType === \"LookupModuleCheckList\") {\r\n <mt-entity-lookup-module-check-list [data]=\"data()\" />\r\n} @else {\r\n <mt-entity-value-preview\r\n [data]=\"data()\"\r\n [attachmentShape]=\"attachmentShape()\"\r\n />\r\n}\r\n" }]
2711
+ }, template: "@if (data().viewType === \"LookupModuleCheckList\") {\r\n <mt-entity-lookup-module-check-list [data]=\"data()\" />\r\n} @else if (data().viewType === \"EntityList\") {\r\n <mt-entity-list-preview [data]=\"data()\" />\r\n} @else {\r\n <mt-entity-value-preview\r\n [data]=\"data()\"\r\n [attachmentShape]=\"attachmentShape()\"\r\n />\r\n}\r\n" }]
2281
2712
  }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], attachmentShape: [{ type: i0.Input, args: [{ isSignal: true, alias: "attachmentShape", required: false }] }] } });
2282
2713
 
2283
2714
  class ComparisonValue {
@@ -2738,5 +3169,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
2738
3169
  * Generated bundle index. Do not edit.
2739
3170
  */
2740
3171
 
2741
- export { CONNECTION_KEY_SEPARATOR, CURRENCY_COMPACT_THRESHOLD, ComparisonEntityList, ComparisonValue, DEFAULT_PHASE_GATE_COLOR, ENTITY_EMPTY_VALUE_PLACEHOLDER, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityIcon, EntityLeafDetails, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityScheduleItem, EntityStatus, EntityText, EntityUser, FitText, LEAF_DETAILS_KEY_SEPARATOR, LEAF_PHASES_KEY_SEPARATOR, SECTION_KEY_PREFIX, buildConnectionKey, buildDisplayEntities, buildSectionKey, compactCurrencyDisplay, currencyUnitOf, displayOrPlaceholder, expandConnectionEntity, expandLeafDetailsEntity, extractDisplayText, getEntitySectionTitle, groupEntitiesIntoSections, isConnectionSyntheticKey, isEntityAlignEnd, isEntityLabelHidden, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isLeafPhasesSyntheticKey, isLeafSyntheticKey, isSectionKey, isValueMissing, matchesPercentageColorRule, normalizeConnectionSourceLevels, normalizeNumerals, parseCurrencyAmount, resolveConnectionLevelName, resolveEntityInfo, resolveEntityLabelPosition, resolveLocalizedLabel, resolvePercentageColor, serializeEntityRawValue, sharedActiveLang, splitConnectionKey, splitLeafKey };
3172
+ export { CONNECTION_KEY_SEPARATOR, CURRENCY_COMPACT_THRESHOLD, ComparisonEntityList, ComparisonValue, DEFAULT_PHASE_GATE_COLOR, ENTITY_EMPTY_VALUE_PLACEHOLDER, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityIcon, EntityLeafDetails, EntityListDrawer, EntityListPreview, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityScheduleItem, EntityStatus, EntityText, EntityUser, FitText, LEAF_DETAILS_KEY_SEPARATOR, LEAF_PHASES_KEY_SEPARATOR, SECTION_KEY_PREFIX, buildConnectionKey, buildDisplayEntities, buildEntityListRows, buildSectionKey, compactCurrencyDisplay, currencyUnitOf, displayOrPlaceholder, expandConnectionEntity, expandLeafDetailsEntity, extractDisplayText, getEntitySectionTitle, groupEntitiesIntoSections, humanizeEntityListKey, isConnectionSyntheticKey, isDynamicPercentageColorSource, isEntityAlignEnd, isEntityLabelHidden, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isLeafPhasesSyntheticKey, isLeafSyntheticKey, isSectionKey, isValueMissing, matchesPercentageColorRule, normalizeConnectionSourceLevels, normalizeNumerals, parseCurrencyAmount, resolveConnectionLevelName, resolveEntityInfo, resolveEntityLabelPosition, resolveLocalizedLabel, resolvePercentageColor, resolvePercentageColorPropertyRef, serializeEntityRawValue, sharedActiveLang, splitConnectionKey, splitLeafKey, summarizeEntityListRows };
2742
3173
  //# sourceMappingURL=masterteam-components-entities.mjs.map