@masterteam/components 0.0.342 → 0.0.343

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.
@@ -1,12 +1,13 @@
1
1
  import * as i0 from '@angular/core';
2
- import { signal, Injectable, InjectionToken, ChangeDetectionStrategy, Component, input, computed, inject, ElementRef, DestroyRef, afterNextRender, Directive, effect, untracked, ViewEncapsulation, output, NgZone, model } from '@angular/core';
2
+ import { signal, Injectable, InjectionToken, inject, input, computed, DestroyRef, ChangeDetectionStrategy, Component, viewChild, ElementRef, afterNextRender, Directive, effect, untracked, ViewEncapsulation, output, NgZone, model } from '@angular/core';
3
3
  import { Tooltip, TruncateTooltip } from '@masterteam/components/tooltip';
4
4
  import { Icon } from '@masterteam/icons';
5
- import { TranslocoPipe, TranslocoService } from '@jsverse/transloco';
6
- import { toSignal } from '@angular/core/rxjs-interop';
7
5
  import { NgTemplateOutlet, NgComponentOutlet, DOCUMENT } from '@angular/common';
6
+ import { TranslocoPipe, TranslocoService } from '@jsverse/transloco';
7
+ import { Popover } from 'primeng/popover';
8
8
  import { MTDateFormatPipe, REQUEST_CONTEXT, coerceCheckboxValue, readableTextOn, getLightColor } from '@masterteam/components';
9
- import { HttpContext, HttpClient } from '@angular/common/http';
9
+ import { HttpClient, HttpContext } from '@angular/common/http';
10
+ import { toSignal } from '@angular/core/rxjs-interop';
10
11
  import { Avatar } from '@masterteam/components/avatar';
11
12
  import { SecureImagePipe, UploadField } from '@masterteam/components/upload-field';
12
13
  import { Progress } from '@masterteam/components/progress';
@@ -345,6 +346,347 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
345
346
  */
346
347
  const ENTITY_LIST_TABLE_COMPONENT = new InjectionToken('ENTITY_LIST_TABLE_COMPONENT');
347
348
 
349
+ /**
350
+ * Reads the latest saved calculation of a value. The request never
351
+ * recalculates anything; the response is marked `no-store`, so every open
352
+ * asks again.
353
+ */
354
+ class CalculationExplanationApi {
355
+ http = inject(HttpClient);
356
+ read(source, propertyKey) {
357
+ return this.http.get('properties/calculation-explanation', {
358
+ params: {
359
+ contextKey: toCalculationContextKey(source.contextKey) ?? '',
360
+ recordId: source.recordId,
361
+ propertyKey,
362
+ },
363
+ });
364
+ }
365
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: CalculationExplanationApi, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
366
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: CalculationExplanationApi, providedIn: 'root' });
367
+ }
368
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: CalculationExplanationApi, decorators: [{
369
+ type: Injectable,
370
+ args: [{ providedIn: 'root' }]
371
+ }] });
372
+ /**
373
+ * The context key in the casing the endpoint accepts. Fetch contexts are
374
+ * written `level:12/module:5`, but this endpoint validates `Level:12/Module:5`
375
+ * case-sensitively and answers anything else with a 400. Null for a context it
376
+ * does not explain.
377
+ */
378
+ function toCalculationContextKey(contextKey) {
379
+ const key = contextKey.trim();
380
+ const level = /^level:([1-9]\d*)(?:\/module:([1-9]\d*))?$/i.exec(key);
381
+ if (level) {
382
+ return level[2]
383
+ ? `Level:${level[1]}/Module:${level[2]}`
384
+ : `Level:${level[1]}`;
385
+ }
386
+ const moduleOnly = /^module:([1-9]\d*)$/i.exec(key);
387
+ return moduleOnly ? `Module:${moduleOnly[1]}` : null;
388
+ }
389
+ /**
390
+ * What a value's calculated-value mark explains on click: only a calculated
391
+ * value whose host named the record it was read from. A status is
392
+ * recalculated but has no formula (the endpoint answers `unsupported`), so it
393
+ * keeps the plain mark.
394
+ */
395
+ function toCalculationExplanationTarget(entity, label) {
396
+ const source = entity?.calculationSource;
397
+ if (!entity?.calculated ||
398
+ !source ||
399
+ !entity.key ||
400
+ entity.viewType === 'Status' ||
401
+ !(source.recordId > 0) ||
402
+ !toCalculationContextKey(source.contextKey)) {
403
+ return null;
404
+ }
405
+ return {
406
+ source,
407
+ propertyKey: entity.key,
408
+ label: label || entity.name || entity.key,
409
+ displayedValue: entity.rawValue,
410
+ };
411
+ }
412
+ /**
413
+ * Lets an explanation ask the host that rendered a value to read it again,
414
+ * when the saved value no longer matches the one on screen. Provided by
415
+ * `mt-client-instance-preview`; without it the explanation only says so.
416
+ */
417
+ class EntityCalculationRefresher {
418
+ }
419
+
420
+ const KEY_PREFIX = 'components.entitiesPreview.calculationExplanation';
421
+ /** Unavailable outcomes with their own message; anything else is generic. */
422
+ const UNAVAILABLE_KEYS = {
423
+ notCaptured: `${KEY_PREFIX}.notCaptured`,
424
+ unsupported: `${KEY_PREFIX}.unsupported`,
425
+ limitExceeded: `${KEY_PREFIX}.limitExceeded`,
426
+ restricted: `${KEY_PREFIX}.restricted`,
427
+ valueChanged: `${KEY_PREFIX}.valueChanged`,
428
+ notCalculated: `${KEY_PREFIX}.notCalculated`,
429
+ };
430
+ /**
431
+ * How a calculated value was calculated: its formula with the values it used,
432
+ * the result and when, as saved with the value. Fetched each time it opens and
433
+ * never recalculated here.
434
+ */
435
+ class EntityCalculationExplanation {
436
+ api = inject(CalculationExplanationApi);
437
+ refresher = inject(EntityCalculationRefresher, {
438
+ optional: true,
439
+ });
440
+ target = input.required(...(ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []));
441
+ prefix = KEY_PREFIX;
442
+ state = signal({ kind: 'loading' }, ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
443
+ available = computed(() => {
444
+ const state = this.state();
445
+ return state.kind === 'available' ? state : null;
446
+ }, ...(ngDevMode ? [{ debugName: "available" }] : /* istanbul ignore next */ []));
447
+ unavailableKey = computed(() => {
448
+ const state = this.state();
449
+ return state.kind === 'unavailable' ? state.messageKey : null;
450
+ }, ...(ngDevMode ? [{ debugName: "unavailableKey" }] : /* istanbul ignore next */ []));
451
+ request;
452
+ constructor() {
453
+ inject(DestroyRef).onDestroy(() => this.request?.unsubscribe());
454
+ }
455
+ // Created when the popover opens and destroyed when it closes: one read per
456
+ // open, never re-read when the value it explains is refreshed underneath.
457
+ ngOnInit() {
458
+ this.load(false);
459
+ }
460
+ load(retried) {
461
+ const target = this.target();
462
+ this.request?.unsubscribe();
463
+ this.request = this.api.read(target.source, target.propertyKey).subscribe({
464
+ next: (response) => this.apply(response, retried),
465
+ error: () => this.state.set({ kind: 'failed' }),
466
+ });
467
+ }
468
+ apply(response, retried) {
469
+ // The value was saved again while the explanation was read: show the new
470
+ // value, then explain that one.
471
+ if (response.status === 'valueChanged' && !retried) {
472
+ this.refresher?.refreshStaleCalculatedValue();
473
+ this.load(true);
474
+ return;
475
+ }
476
+ const explanation = response.explanation;
477
+ if (response.status !== 'available' ||
478
+ !explanation ||
479
+ explanation.schemaVersion !== 1 ||
480
+ explanation.provider !== 'formula') {
481
+ this.state.set({
482
+ kind: 'unavailable',
483
+ messageKey: UNAVAILABLE_KEYS[response.status] ?? `${KEY_PREFIX}.unavailable`,
484
+ });
485
+ return;
486
+ }
487
+ const stale = !isSameSavedValue(response.savedValue, this.target().displayedValue);
488
+ if (stale) {
489
+ this.refresher?.refreshStaleCalculatedValue();
490
+ }
491
+ this.state.set({
492
+ kind: 'available',
493
+ formulaWithValues: explanation.formulaWithValues,
494
+ result: formatExplanationValue(explanation.result),
495
+ calculatedAt: explanation.calculatedAt,
496
+ definitionChanged: response.definitionChanged,
497
+ refreshed: stale && !!this.refresher,
498
+ });
499
+ }
500
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityCalculationExplanation, deps: [], target: i0.ɵɵFactoryTarget.Component });
501
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityCalculationExplanation, isStandalone: true, selector: "mt-entity-calculation-explanation", inputs: { target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
502
+ <div class="flex w-80 max-w-[calc(100vw-2rem)] flex-col gap-3 text-sm">
503
+ <div class="flex min-w-0 flex-col gap-0.5">
504
+ <span
505
+ class="truncate font-semibold text-surface-900 dark:text-surface-0"
506
+ >
507
+ {{ target().label }}
508
+ </span>
509
+ <span class="text-xs text-surface-500 dark:text-surface-400">
510
+ {{ prefix + '.title' | transloco }}
511
+ </span>
512
+ </div>
513
+
514
+ @switch (state().kind) {
515
+ @case ('loading') {
516
+ <div class="flex flex-col gap-2" aria-busy="true">
517
+ <div
518
+ class="h-10 animate-pulse rounded-md bg-surface-100 dark:bg-surface-800"
519
+ ></div>
520
+ <div
521
+ class="h-3 w-1/2 animate-pulse rounded-md bg-surface-100 dark:bg-surface-800"
522
+ ></div>
523
+ </div>
524
+ }
525
+ @case ('available') {
526
+ @if (available(); as explanation) {
527
+ <div
528
+ class="rounded-md border border-surface-200 bg-surface-50 px-3 py-2 font-mono text-sm break-words text-surface-800 dark:border-surface-700 dark:bg-surface-800 dark:text-surface-100"
529
+ dir="ltr"
530
+ >
531
+ @if (explanation.formulaWithValues) {
532
+ <span>{{ explanation.formulaWithValues }}</span>
533
+ <span class="px-1 text-surface-400">=</span>
534
+ }
535
+ <span class="font-semibold">{{ explanation.result }}</span>
536
+ </div>
537
+ <div class="text-xs text-surface-500 dark:text-surface-400">
538
+ {{ prefix + '.calculatedAt' | transloco }}
539
+ <span dir="ltr" class="tabular-nums">{{
540
+ explanation.calculatedAt | mtDateFormat: 'dateTime'
541
+ }}</span>
542
+ </div>
543
+ @if (explanation.definitionChanged) {
544
+ <div
545
+ class="rounded-md border border-amber-200 bg-amber-50 px-3 py-2 text-xs text-amber-700"
546
+ >
547
+ {{ prefix + '.definitionChanged' | transloco }}
548
+ </div>
549
+ }
550
+ @if (explanation.refreshed) {
551
+ <div
552
+ class="rounded-md border border-primary-200 bg-primary-50 px-3 py-2 text-xs text-primary-700"
553
+ >
554
+ {{ prefix + '.valueRefreshed' | transloco }}
555
+ </div>
556
+ }
557
+ }
558
+ }
559
+ @case ('unavailable') {
560
+ @if (unavailableKey(); as messageKey) {
561
+ <div
562
+ class="rounded-md border border-surface-200 bg-surface-50 px-3 py-2 text-surface-600 dark:border-surface-700 dark:bg-surface-800 dark:text-surface-300"
563
+ >
564
+ {{ messageKey | transloco }}
565
+ </div>
566
+ }
567
+ }
568
+ @case ('failed') {
569
+ <div
570
+ class="rounded-md border border-red-200 bg-red-50 px-3 py-2 text-red-700"
571
+ >
572
+ {{ prefix + '.loadFailed' | transloco }}
573
+ </div>
574
+ }
575
+ }
576
+ </div>
577
+ `, isInline: true, dependencies: [{ kind: "pipe", type: TranslocoPipe, name: "transloco" }, { kind: "pipe", type: MTDateFormatPipe, name: "mtDateFormat" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
578
+ }
579
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityCalculationExplanation, decorators: [{
580
+ type: Component,
581
+ args: [{
582
+ selector: 'mt-entity-calculation-explanation',
583
+ changeDetection: ChangeDetectionStrategy.OnPush,
584
+ imports: [TranslocoPipe, MTDateFormatPipe],
585
+ template: `
586
+ <div class="flex w-80 max-w-[calc(100vw-2rem)] flex-col gap-3 text-sm">
587
+ <div class="flex min-w-0 flex-col gap-0.5">
588
+ <span
589
+ class="truncate font-semibold text-surface-900 dark:text-surface-0"
590
+ >
591
+ {{ target().label }}
592
+ </span>
593
+ <span class="text-xs text-surface-500 dark:text-surface-400">
594
+ {{ prefix + '.title' | transloco }}
595
+ </span>
596
+ </div>
597
+
598
+ @switch (state().kind) {
599
+ @case ('loading') {
600
+ <div class="flex flex-col gap-2" aria-busy="true">
601
+ <div
602
+ class="h-10 animate-pulse rounded-md bg-surface-100 dark:bg-surface-800"
603
+ ></div>
604
+ <div
605
+ class="h-3 w-1/2 animate-pulse rounded-md bg-surface-100 dark:bg-surface-800"
606
+ ></div>
607
+ </div>
608
+ }
609
+ @case ('available') {
610
+ @if (available(); as explanation) {
611
+ <div
612
+ class="rounded-md border border-surface-200 bg-surface-50 px-3 py-2 font-mono text-sm break-words text-surface-800 dark:border-surface-700 dark:bg-surface-800 dark:text-surface-100"
613
+ dir="ltr"
614
+ >
615
+ @if (explanation.formulaWithValues) {
616
+ <span>{{ explanation.formulaWithValues }}</span>
617
+ <span class="px-1 text-surface-400">=</span>
618
+ }
619
+ <span class="font-semibold">{{ explanation.result }}</span>
620
+ </div>
621
+ <div class="text-xs text-surface-500 dark:text-surface-400">
622
+ {{ prefix + '.calculatedAt' | transloco }}
623
+ <span dir="ltr" class="tabular-nums">{{
624
+ explanation.calculatedAt | mtDateFormat: 'dateTime'
625
+ }}</span>
626
+ </div>
627
+ @if (explanation.definitionChanged) {
628
+ <div
629
+ class="rounded-md border border-amber-200 bg-amber-50 px-3 py-2 text-xs text-amber-700"
630
+ >
631
+ {{ prefix + '.definitionChanged' | transloco }}
632
+ </div>
633
+ }
634
+ @if (explanation.refreshed) {
635
+ <div
636
+ class="rounded-md border border-primary-200 bg-primary-50 px-3 py-2 text-xs text-primary-700"
637
+ >
638
+ {{ prefix + '.valueRefreshed' | transloco }}
639
+ </div>
640
+ }
641
+ }
642
+ }
643
+ @case ('unavailable') {
644
+ @if (unavailableKey(); as messageKey) {
645
+ <div
646
+ class="rounded-md border border-surface-200 bg-surface-50 px-3 py-2 text-surface-600 dark:border-surface-700 dark:bg-surface-800 dark:text-surface-300"
647
+ >
648
+ {{ messageKey | transloco }}
649
+ </div>
650
+ }
651
+ }
652
+ @case ('failed') {
653
+ <div
654
+ class="rounded-md border border-red-200 bg-red-50 px-3 py-2 text-red-700"
655
+ >
656
+ {{ prefix + '.loadFailed' | transloco }}
657
+ </div>
658
+ }
659
+ }
660
+ </div>
661
+ `,
662
+ }]
663
+ }], ctorParameters: () => [], propDecorators: { target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: true }] }] } });
664
+ /**
665
+ * Whether the saved value is the one on screen. Both are the persisted string,
666
+ * but a number may be written either way (`40` and `40.0`), so numbers compare
667
+ * as numbers.
668
+ */
669
+ function isSameSavedValue(saved, displayed) {
670
+ const a = (saved ?? '').trim();
671
+ const b = (displayed ?? '').trim();
672
+ if (a === b) {
673
+ return true;
674
+ }
675
+ if (a === '' || b === '') {
676
+ return false;
677
+ }
678
+ const x = Number(a);
679
+ const y = Number(b);
680
+ return Number.isFinite(x) && Number.isFinite(y) && x === y;
681
+ }
682
+ /** A captured value as plain text. Never formatted or rounded here. */
683
+ function formatExplanationValue(value) {
684
+ if (value === null || value === undefined) {
685
+ return '—';
686
+ }
687
+ return typeof value === 'object' ? JSON.stringify(value) : String(value);
688
+ }
689
+
348
690
  const TOOLTIP_KEYS = {
349
691
  idle: 'components.entitiesPreview.calculatedValue',
350
692
  running: 'components.entitiesPreview.calculatingValue',
@@ -352,26 +694,27 @@ const TOOLTIP_KEYS = {
352
694
  delayed: 'components.entitiesPreview.calculationDelayed',
353
695
  };
354
696
  const CHANGED_TOOLTIP_KEY = 'components.entitiesPreview.calculatedValueChanged';
697
+ const EXPLAIN_TOOLTIP_KEY = 'components.entitiesPreview.explainCalculation';
355
698
  /** The calculated-value mark. Drawn, so it sits centred at any size. */
356
699
  class EntityCalculatedGlyph {
357
700
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityCalculatedGlyph, deps: [], target: i0.ɵɵFactoryTarget.Component });
358
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.8", type: EntityCalculatedGlyph, isStandalone: true, selector: "mt-entity-calculated-glyph", host: { classAttribute: "block size-full" }, ngImport: i0, template: `
359
- <svg
360
- viewBox="0 0 16 16"
361
- width="100%"
362
- height="100%"
363
- fill="none"
364
- stroke="currentColor"
365
- stroke-width="1.5"
366
- stroke-linecap="round"
367
- stroke-linejoin="round"
368
- aria-hidden="true"
369
- >
370
- <path
371
- d="M10.1 4.7c-.35-.42-.85-.62-1.38-.56-.87.1-1.4.76-1.57 1.66L6.1 11.3"
372
- />
373
- <path d="M5.5 7.5h3.9" />
374
- </svg>
701
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.8", type: EntityCalculatedGlyph, isStandalone: true, selector: "mt-entity-calculated-glyph", host: { classAttribute: "block size-full" }, ngImport: i0, template: `
702
+ <svg
703
+ viewBox="0 0 16 16"
704
+ width="100%"
705
+ height="100%"
706
+ fill="none"
707
+ stroke="currentColor"
708
+ stroke-width="1.5"
709
+ stroke-linecap="round"
710
+ stroke-linejoin="round"
711
+ aria-hidden="true"
712
+ >
713
+ <path
714
+ d="M10.1 4.7c-.35-.42-.85-.62-1.38-.56-.87.1-1.4.76-1.57 1.66L6.1 11.3"
715
+ />
716
+ <path d="M5.5 7.5h3.9" />
717
+ </svg>
375
718
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
376
719
  }
377
720
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityCalculatedGlyph, decorators: [{
@@ -379,23 +722,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
379
722
  args: [{
380
723
  selector: 'mt-entity-calculated-glyph',
381
724
  changeDetection: ChangeDetectionStrategy.OnPush,
382
- template: `
383
- <svg
384
- viewBox="0 0 16 16"
385
- width="100%"
386
- height="100%"
387
- fill="none"
388
- stroke="currentColor"
389
- stroke-width="1.5"
390
- stroke-linecap="round"
391
- stroke-linejoin="round"
392
- aria-hidden="true"
393
- >
394
- <path
395
- d="M10.1 4.7c-.35-.42-.85-.62-1.38-.56-.87.1-1.4.76-1.57 1.66L6.1 11.3"
396
- />
397
- <path d="M5.5 7.5h3.9" />
398
- </svg>
725
+ template: `
726
+ <svg
727
+ viewBox="0 0 16 16"
728
+ width="100%"
729
+ height="100%"
730
+ fill="none"
731
+ stroke="currentColor"
732
+ stroke-width="1.5"
733
+ stroke-linecap="round"
734
+ stroke-linejoin="round"
735
+ aria-hidden="true"
736
+ >
737
+ <path
738
+ d="M10.1 4.7c-.35-.42-.85-.62-1.38-.56-.87.1-1.4.76-1.57 1.66L6.1 11.3"
739
+ />
740
+ <path d="M5.5 7.5h3.9" />
741
+ </svg>
399
742
  `,
400
743
  host: {
401
744
  class: 'block size-full',
@@ -406,19 +749,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
406
749
  * Marks a property value the backend calculates. Rendered beside its label; it
407
750
  * pulses while a recalculation that covers the value is in progress, and stays
408
751
  * lit without pulsing once that is taking longer than expected.
752
+ *
753
+ * Given an `explanation` target it is a button: clicking it shows how the saved
754
+ * value was calculated.
409
755
  */
410
756
  class EntityCalculatedIndicator {
411
757
  /** Set while the value is being recalculated. */
412
758
  status = input(null, ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
413
759
  /** The value's last change, described in the tooltip when it is not busy. */
414
760
  change = input(null, ...(ngDevMode ? [{ debugName: "change" }] : /* istanbul ignore next */ []));
761
+ /** The value to explain on click. Without it the mark only has a tooltip. */
762
+ explanation = input(null, ...(ngDevMode ? [{ debugName: "explanation" }] : /* istanbul ignore next */ []));
763
+ popover = viewChild(Popover, ...(ngDevMode ? [{ debugName: "popover" }] : /* istanbul ignore next */ []));
764
+ opened = signal(false, ...(ngDevMode ? [{ debugName: "opened" }] : /* istanbul ignore next */ []));
415
765
  pulsing = computed(() => !!this.status() && this.status() !== 'delayed', ...(ngDevMode ? [{ debugName: "pulsing" }] : /* istanbul ignore next */ []));
416
766
  tooltipKey = computed(() => {
417
767
  const status = this.status();
418
768
  if (status) {
419
769
  return TOOLTIP_KEYS[status];
420
770
  }
421
- return this.change() ? CHANGED_TOOLTIP_KEY : TOOLTIP_KEYS.idle;
771
+ if (this.change()) {
772
+ return CHANGED_TOOLTIP_KEY;
773
+ }
774
+ return this.explanation() ? EXPLAIN_TOOLTIP_KEY : TOOLTIP_KEYS.idle;
422
775
  }, ...(ngDevMode ? [{ debugName: "tooltipKey" }] : /* istanbul ignore next */ []));
423
776
  tooltipParams = computed(() => {
424
777
  const change = this.change();
@@ -426,63 +779,145 @@ class EntityCalculatedIndicator {
426
779
  ? { previous: change.previous, current: change.current }
427
780
  : undefined;
428
781
  }, ...(ngDevMode ? [{ debugName: "tooltipParams" }] : /* istanbul ignore next */ []));
782
+ toggle(event) {
783
+ // The mark sits inside cards and headers that may act on a click.
784
+ event.stopPropagation();
785
+ this.popover()?.toggle(event);
786
+ }
429
787
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityCalculatedIndicator, deps: [], target: i0.ɵɵFactoryTarget.Component });
430
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityCalculatedIndicator, isStandalone: true, selector: "mt-entity-calculated-indicator", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, change: { classPropertyName: "change", publicName: "change", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "inline-flex shrink-0" }, ngImport: i0, template: `
431
- <span
432
- class="relative inline-flex size-4 cursor-help items-center justify-center rounded-full select-none"
433
- [class]="
434
- status()
435
- ? 'bg-primary-700 text-white'
436
- : 'bg-surface-100 text-surface-500 dark:bg-surface-800 dark:text-surface-300'
437
- "
438
- role="img"
439
- [attr.aria-label]="tooltipKey() | transloco: tooltipParams()"
440
- [mtTooltip]="tooltipKey() | transloco: tooltipParams()"
441
- tooltipPosition="top"
442
- >
443
- @if (pulsing()) {
444
- <span
445
- class="absolute inset-0 animate-ping rounded-full bg-primary-700 opacity-60 motion-reduce:animate-none"
446
- aria-hidden="true"
447
- ></span>
448
- }
449
- <mt-entity-calculated-glyph class="relative" />
450
- </span>
451
- `, isInline: true, dependencies: [{ kind: "component", type: EntityCalculatedGlyph, selector: "mt-entity-calculated-glyph" }, { kind: "directive", type: Tooltip, selector: "[mtTooltip]" }, { kind: "pipe", type: TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
788
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityCalculatedIndicator, isStandalone: true, selector: "mt-entity-calculated-indicator", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, change: { classPropertyName: "change", publicName: "change", isSignal: true, isRequired: false, transformFunction: null }, explanation: { classPropertyName: "explanation", publicName: "explanation", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "inline-flex shrink-0" }, viewQueries: [{ propertyName: "popover", first: true, predicate: Popover, descendants: true, isSignal: true }], ngImport: i0, template: `
789
+ <ng-template #mark>
790
+ @if (pulsing()) {
791
+ <span
792
+ class="absolute inset-0 animate-ping rounded-full bg-primary-700 opacity-60 motion-reduce:animate-none"
793
+ aria-hidden="true"
794
+ ></span>
795
+ }
796
+ <mt-entity-calculated-glyph class="relative" />
797
+ </ng-template>
798
+
799
+ @if (explanation(); as target) {
800
+ <button
801
+ type="button"
802
+ class="relative inline-flex size-4 cursor-pointer items-center justify-center rounded-full select-none focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary-500"
803
+ [class]="
804
+ status()
805
+ ? 'bg-primary-700 text-white'
806
+ : 'bg-surface-100 text-surface-500 hover:bg-primary-100 hover:text-primary-700 dark:bg-surface-800 dark:text-surface-300'
807
+ "
808
+ [attr.aria-label]="tooltipKey() | transloco: tooltipParams()"
809
+ aria-haspopup="dialog"
810
+ [mtTooltip]="tooltipKey() | transloco: tooltipParams()"
811
+ tooltipPosition="top"
812
+ (click)="toggle($event)"
813
+ >
814
+ <ng-container [ngTemplateOutlet]="mark" />
815
+ </button>
816
+ <!-- Projected content is created with this view even while the popover
817
+ is closed, so the explanation is gated on the open state: it reads
818
+ its value when opened, not when the page loads. -->
819
+ <p-popover
820
+ appendTo="body"
821
+ (onShow)="opened.set(true)"
822
+ (onHide)="opened.set(false)"
823
+ >
824
+ @if (opened()) {
825
+ <mt-entity-calculation-explanation [target]="target" />
826
+ }
827
+ </p-popover>
828
+ } @else {
829
+ <span
830
+ class="relative inline-flex size-4 cursor-help items-center justify-center rounded-full select-none"
831
+ [class]="
832
+ status()
833
+ ? 'bg-primary-700 text-white'
834
+ : 'bg-surface-100 text-surface-500 dark:bg-surface-800 dark:text-surface-300'
835
+ "
836
+ role="img"
837
+ [attr.aria-label]="tooltipKey() | transloco: tooltipParams()"
838
+ [mtTooltip]="tooltipKey() | transloco: tooltipParams()"
839
+ tooltipPosition="top"
840
+ >
841
+ <ng-container [ngTemplateOutlet]="mark" />
842
+ </span>
843
+ }
844
+ `, isInline: true, dependencies: [{ kind: "component", type: EntityCalculatedGlyph, selector: "mt-entity-calculated-glyph" }, { kind: "component", type: EntityCalculationExplanation, selector: "mt-entity-calculation-explanation", inputs: ["target"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "directive", type: Tooltip, selector: "[mtTooltip]" }, { kind: "pipe", type: TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
452
845
  }
453
846
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityCalculatedIndicator, decorators: [{
454
847
  type: Component,
455
848
  args: [{
456
849
  selector: 'mt-entity-calculated-indicator',
457
850
  changeDetection: ChangeDetectionStrategy.OnPush,
458
- imports: [EntityCalculatedGlyph, Tooltip, TranslocoPipe],
459
- template: `
460
- <span
461
- class="relative inline-flex size-4 cursor-help items-center justify-center rounded-full select-none"
462
- [class]="
463
- status()
464
- ? 'bg-primary-700 text-white'
465
- : 'bg-surface-100 text-surface-500 dark:bg-surface-800 dark:text-surface-300'
466
- "
467
- role="img"
468
- [attr.aria-label]="tooltipKey() | transloco: tooltipParams()"
469
- [mtTooltip]="tooltipKey() | transloco: tooltipParams()"
470
- tooltipPosition="top"
471
- >
472
- @if (pulsing()) {
473
- <span
474
- class="absolute inset-0 animate-ping rounded-full bg-primary-700 opacity-60 motion-reduce:animate-none"
475
- aria-hidden="true"
476
- ></span>
477
- }
478
- <mt-entity-calculated-glyph class="relative" />
479
- </span>
851
+ imports: [
852
+ EntityCalculatedGlyph,
853
+ EntityCalculationExplanation,
854
+ NgTemplateOutlet,
855
+ Popover,
856
+ Tooltip,
857
+ TranslocoPipe,
858
+ ],
859
+ template: `
860
+ <ng-template #mark>
861
+ @if (pulsing()) {
862
+ <span
863
+ class="absolute inset-0 animate-ping rounded-full bg-primary-700 opacity-60 motion-reduce:animate-none"
864
+ aria-hidden="true"
865
+ ></span>
866
+ }
867
+ <mt-entity-calculated-glyph class="relative" />
868
+ </ng-template>
869
+
870
+ @if (explanation(); as target) {
871
+ <button
872
+ type="button"
873
+ class="relative inline-flex size-4 cursor-pointer items-center justify-center rounded-full select-none focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary-500"
874
+ [class]="
875
+ status()
876
+ ? 'bg-primary-700 text-white'
877
+ : 'bg-surface-100 text-surface-500 hover:bg-primary-100 hover:text-primary-700 dark:bg-surface-800 dark:text-surface-300'
878
+ "
879
+ [attr.aria-label]="tooltipKey() | transloco: tooltipParams()"
880
+ aria-haspopup="dialog"
881
+ [mtTooltip]="tooltipKey() | transloco: tooltipParams()"
882
+ tooltipPosition="top"
883
+ (click)="toggle($event)"
884
+ >
885
+ <ng-container [ngTemplateOutlet]="mark" />
886
+ </button>
887
+ <!-- Projected content is created with this view even while the popover
888
+ is closed, so the explanation is gated on the open state: it reads
889
+ its value when opened, not when the page loads. -->
890
+ <p-popover
891
+ appendTo="body"
892
+ (onShow)="opened.set(true)"
893
+ (onHide)="opened.set(false)"
894
+ >
895
+ @if (opened()) {
896
+ <mt-entity-calculation-explanation [target]="target" />
897
+ }
898
+ </p-popover>
899
+ } @else {
900
+ <span
901
+ class="relative inline-flex size-4 cursor-help items-center justify-center rounded-full select-none"
902
+ [class]="
903
+ status()
904
+ ? 'bg-primary-700 text-white'
905
+ : 'bg-surface-100 text-surface-500 dark:bg-surface-800 dark:text-surface-300'
906
+ "
907
+ role="img"
908
+ [attr.aria-label]="tooltipKey() | transloco: tooltipParams()"
909
+ [mtTooltip]="tooltipKey() | transloco: tooltipParams()"
910
+ tooltipPosition="top"
911
+ >
912
+ <ng-container [ngTemplateOutlet]="mark" />
913
+ </span>
914
+ }
480
915
  `,
481
916
  host: {
482
917
  class: 'inline-flex shrink-0',
483
918
  },
484
919
  }]
485
- }], propDecorators: { status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], change: [{ type: i0.Input, args: [{ isSignal: true, alias: "change", required: false }] }] } });
920
+ }], propDecorators: { status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], change: [{ type: i0.Input, args: [{ isSignal: true, alias: "change", required: false }] }], explanation: [{ type: i0.Input, args: [{ isSignal: true, alias: "explanation", required: false }] }], popover: [{ type: i0.ViewChild, args: [i0.forwardRef(() => Popover), { isSignal: true }] }] } });
486
921
 
487
922
  /**
488
923
  * One shared active-language signal per `TranslocoService`.
@@ -773,6 +1208,8 @@ class EntityField {
773
1208
  calculated = computed(() => this.previewData?.().calculated === true, ...(ngDevMode ? [{ debugName: "calculated" }] : /* istanbul ignore next */ []));
774
1209
  calculationStatus = computed(() => this.previewData?.().calculationStatus, ...(ngDevMode ? [{ debugName: "calculationStatus" }] : /* istanbul ignore next */ []));
775
1210
  calculationChange = computed(() => this.previewData?.().calculationChange, ...(ngDevMode ? [{ debugName: "calculationChange" }] : /* istanbul ignore next */ []));
1211
+ /** What the calculated-value mark explains on click, if anything. */
1212
+ calculationExplanation = computed(() => toCalculationExplanationTarget(this.previewData?.(), this.label()), ...(ngDevMode ? [{ debugName: "calculationExplanation" }] : /* istanbul ignore next */ []));
776
1213
  recentChange = computed(() => {
777
1214
  const change = this.calculationChange();
778
1215
  return change?.recent ? change : null;
@@ -838,12 +1275,13 @@ class EntityField {
838
1275
  <mt-entity-calculated-indicator
839
1276
  [status]="calculationStatus()"
840
1277
  [change]="calculationChange()"
1278
+ [explanation]="calculationExplanation()"
841
1279
  />
842
1280
  }
843
1281
  </div>
844
1282
  }
845
1283
  </div>
846
- `, isInline: true, dependencies: [{ kind: "directive", type: TruncateTooltip, selector: "[mtTruncateTooltip]" }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "component", type: EntityCalculatedIndicator, selector: "mt-entity-calculated-indicator", inputs: ["status", "change"] }, { kind: "component", type: EntityCalculationChangeChip, selector: "mt-entity-calculation-change", inputs: ["change"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1284
+ `, isInline: true, dependencies: [{ kind: "directive", type: TruncateTooltip, selector: "[mtTruncateTooltip]" }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "component", type: EntityCalculatedIndicator, selector: "mt-entity-calculated-indicator", inputs: ["status", "change", "explanation"] }, { kind: "component", type: EntityCalculationChangeChip, selector: "mt-entity-calculation-change", inputs: ["change"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
847
1285
  }
848
1286
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityField, decorators: [{
849
1287
  type: Component,
@@ -880,6 +1318,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
880
1318
  <mt-entity-calculated-indicator
881
1319
  [status]="calculationStatus()"
882
1320
  [change]="calculationChange()"
1321
+ [explanation]="calculationExplanation()"
883
1322
  />
884
1323
  }
885
1324
  </div>
@@ -1316,6 +1755,8 @@ class EntityPercentage {
1316
1755
  value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
1317
1756
  rawValue = input(...(ngDevMode ? [undefined, { debugName: "rawValue" }] : /* istanbul ignore next */ []));
1318
1757
  displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: "displayName" }] : /* istanbul ignore next */ []));
1758
+ /** What the calculated-value mark explains on click, if anything. */
1759
+ calculationExplanation = computed(() => toCalculationExplanationTarget(this.data(), this.displayName()), ...(ngDevMode ? [{ debugName: "calculationExplanation" }] : /* istanbul ignore next */ []));
1319
1760
  displayValue = computed(() => {
1320
1761
  const d = this.data();
1321
1762
  const raw = d
@@ -1425,11 +1866,11 @@ class EntityPercentage {
1425
1866
  return Number.isNaN(numericValue) ? null : numericValue;
1426
1867
  }
1427
1868
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityPercentage, deps: [], target: i0.ɵɵFactoryTarget.Component });
1428
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityPercentage, isStandalone: true, selector: "mt-entity-percentage", 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 }, rawValue: { classPropertyName: "rawValue", publicName: "rawValue", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"flex flex-col gap-1\">\r\n <div class=\"flex items-center justify-between\">\r\n @if (!hideName()) {\r\n <span class=\"inline-flex min-w-0 items-center gap-1\">\r\n <span class=\"text-xs font-semibold\">{{ displayName() }}</span>\r\n @if (data()?.calculated) {\r\n <mt-entity-calculated-indicator\r\n [status]=\"data()?.calculationStatus\"\r\n [change]=\"data()?.calculationChange\"\r\n />\r\n }\r\n </span>\r\n }\r\n <span class=\"inline-flex items-center gap-1.5\" [class.ms-auto]=\"hideName()\">\r\n @if (data()?.calculationChange; as change) {\r\n @if (change.recent) {\r\n <mt-entity-calculation-change [change]=\"change\" />\r\n }\r\n }\r\n <span class=\"text-xs font-bold\">{{ displayValue() }}</span>\r\n </span>\r\n </div>\r\n @if (hasNumericValue()) {\r\n <mt-progress\r\n [value]=\"numericValue()\"\r\n [showLabel]=\"false\"\r\n [height]=\"9\"\r\n [maxValue]=\"maxValue()\"\r\n [color]=\"progressColor()\"\r\n >\r\n </mt-progress>\r\n } @else {\r\n <div class=\"h-[9px] rounded-full bg-gray-200\"></div>\r\n }\r\n</div>\r\n", dependencies: [{ kind: "component", type: Progress, selector: "mt-progress", inputs: ["value", "mode", "showLabel", "unit", "color", "minValue", "maxValue", "height", "circleSize", "strokeWidth", "customClass"] }, { kind: "component", type: EntityCalculatedIndicator, selector: "mt-entity-calculated-indicator", inputs: ["status", "change"] }, { kind: "component", type: EntityCalculationChangeChip, selector: "mt-entity-calculation-change", inputs: ["change"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1869
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityPercentage, isStandalone: true, selector: "mt-entity-percentage", 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 }, rawValue: { classPropertyName: "rawValue", publicName: "rawValue", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"flex flex-col gap-1\">\r\n <div class=\"flex items-center justify-between\">\r\n @if (!hideName()) {\r\n <span class=\"inline-flex min-w-0 items-center gap-1\">\r\n <span class=\"text-xs font-semibold\">{{ displayName() }}</span>\r\n @if (data()?.calculated) {\r\n <mt-entity-calculated-indicator\r\n [status]=\"data()?.calculationStatus\"\r\n [change]=\"data()?.calculationChange\"\r\n [explanation]=\"calculationExplanation()\"\r\n />\r\n }\r\n </span>\r\n }\r\n <span class=\"inline-flex items-center gap-1.5\" [class.ms-auto]=\"hideName()\">\r\n @if (data()?.calculationChange; as change) {\r\n @if (change.recent) {\r\n <mt-entity-calculation-change [change]=\"change\" />\r\n }\r\n }\r\n <span class=\"text-xs font-bold\">{{ displayValue() }}</span>\r\n </span>\r\n </div>\r\n @if (hasNumericValue()) {\r\n <mt-progress\r\n [value]=\"numericValue()\"\r\n [showLabel]=\"false\"\r\n [height]=\"9\"\r\n [maxValue]=\"maxValue()\"\r\n [color]=\"progressColor()\"\r\n >\r\n </mt-progress>\r\n } @else {\r\n <div class=\"h-[9px] rounded-full bg-gray-200\"></div>\r\n }\r\n</div>\r\n", dependencies: [{ kind: "component", type: Progress, selector: "mt-progress", inputs: ["value", "mode", "showLabel", "unit", "color", "minValue", "maxValue", "height", "circleSize", "strokeWidth", "customClass"] }, { kind: "component", type: EntityCalculatedIndicator, selector: "mt-entity-calculated-indicator", inputs: ["status", "change", "explanation"] }, { kind: "component", type: EntityCalculationChangeChip, selector: "mt-entity-calculation-change", inputs: ["change"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1429
1870
  }
1430
1871
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityPercentage, decorators: [{
1431
1872
  type: Component,
1432
- args: [{ selector: 'mt-entity-percentage', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [Progress, EntityCalculatedIndicator, EntityCalculationChangeChip], template: "<div class=\"flex flex-col gap-1\">\r\n <div class=\"flex items-center justify-between\">\r\n @if (!hideName()) {\r\n <span class=\"inline-flex min-w-0 items-center gap-1\">\r\n <span class=\"text-xs font-semibold\">{{ displayName() }}</span>\r\n @if (data()?.calculated) {\r\n <mt-entity-calculated-indicator\r\n [status]=\"data()?.calculationStatus\"\r\n [change]=\"data()?.calculationChange\"\r\n />\r\n }\r\n </span>\r\n }\r\n <span class=\"inline-flex items-center gap-1.5\" [class.ms-auto]=\"hideName()\">\r\n @if (data()?.calculationChange; as change) {\r\n @if (change.recent) {\r\n <mt-entity-calculation-change [change]=\"change\" />\r\n }\r\n }\r\n <span class=\"text-xs font-bold\">{{ displayValue() }}</span>\r\n </span>\r\n </div>\r\n @if (hasNumericValue()) {\r\n <mt-progress\r\n [value]=\"numericValue()\"\r\n [showLabel]=\"false\"\r\n [height]=\"9\"\r\n [maxValue]=\"maxValue()\"\r\n [color]=\"progressColor()\"\r\n >\r\n </mt-progress>\r\n } @else {\r\n <div class=\"h-[9px] rounded-full bg-gray-200\"></div>\r\n }\r\n</div>\r\n" }]
1873
+ args: [{ selector: 'mt-entity-percentage', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [Progress, EntityCalculatedIndicator, EntityCalculationChangeChip], template: "<div class=\"flex flex-col gap-1\">\r\n <div class=\"flex items-center justify-between\">\r\n @if (!hideName()) {\r\n <span class=\"inline-flex min-w-0 items-center gap-1\">\r\n <span class=\"text-xs font-semibold\">{{ displayName() }}</span>\r\n @if (data()?.calculated) {\r\n <mt-entity-calculated-indicator\r\n [status]=\"data()?.calculationStatus\"\r\n [change]=\"data()?.calculationChange\"\r\n [explanation]=\"calculationExplanation()\"\r\n />\r\n }\r\n </span>\r\n }\r\n <span class=\"inline-flex items-center gap-1.5\" [class.ms-auto]=\"hideName()\">\r\n @if (data()?.calculationChange; as change) {\r\n @if (change.recent) {\r\n <mt-entity-calculation-change [change]=\"change\" />\r\n }\r\n }\r\n <span class=\"text-xs font-bold\">{{ displayValue() }}</span>\r\n </span>\r\n </div>\r\n @if (hasNumericValue()) {\r\n <mt-progress\r\n [value]=\"numericValue()\"\r\n [showLabel]=\"false\"\r\n [height]=\"9\"\r\n [maxValue]=\"maxValue()\"\r\n [color]=\"progressColor()\"\r\n >\r\n </mt-progress>\r\n } @else {\r\n <div class=\"h-[9px] rounded-full bg-gray-200\"></div>\r\n }\r\n</div>\r\n" }]
1433
1874
  }], 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 }] }], rawValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "rawValue", required: false }] }] } });
1434
1875
 
1435
1876
  class EntityCurrency {
@@ -1472,6 +1913,8 @@ class EntityCheckbox {
1472
1913
  value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
1473
1914
  rawValue = input(...(ngDevMode ? [undefined, { debugName: "rawValue" }] : /* istanbul ignore next */ []));
1474
1915
  displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: "displayName" }] : /* istanbul ignore next */ []));
1916
+ /** What the calculated-value mark explains on click, if anything. */
1917
+ calculationExplanation = computed(() => toCalculationExplanationTarget(this.data(), this.displayName()), ...(ngDevMode ? [{ debugName: "calculationExplanation" }] : /* istanbul ignore next */ []));
1475
1918
  emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;
1476
1919
  hideName = computed(() => isEntityLabelHidden(this.data()?.configuration), ...(ngDevMode ? [{ debugName: "hideName" }] : /* istanbul ignore next */ []));
1477
1920
  // Reads `rawValue` first (the value as stored) and falls back to the
@@ -1485,11 +1928,11 @@ class EntityCheckbox {
1485
1928
  return coerceCheckboxValue(this.data()?.value ?? this.value());
1486
1929
  }, ...(ngDevMode ? [{ debugName: "checkboxState" }] : /* istanbul ignore next */ []));
1487
1930
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
1488
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityCheckbox, isStandalone: true, selector: "mt-entity-checkbox", 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 }, rawValue: { classPropertyName: "rawValue", publicName: "rawValue", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"flex items-center gap-2\">\r\n @if (checkboxState() === true) {\r\n <svg class=\"w-5 h-5 text-green-500\" viewBox=\"0 0 20 20\" fill=\"currentColor\">\r\n <path\r\n fill-rule=\"evenodd\"\r\n d=\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z\"\r\n clip-rule=\"evenodd\"\r\n />\r\n </svg>\r\n } @else if (checkboxState() === false) {\r\n <svg class=\"w-5 h-5 text-gray-300\" viewBox=\"0 0 20 20\" fill=\"currentColor\">\r\n <path\r\n fill-rule=\"evenodd\"\r\n d=\"M10 18a8 8 0 100-16 8 8 0 000 16zm-1-5.414l-2.293-2.293a1 1 0 011.414-1.414L10 11.172l3.879-3.879a1 1 0 111.414 1.414L10 13.414l-.707-.707-.293-.293z\"\r\n clip-rule=\"evenodd\"\r\n />\r\n </svg>\r\n } @else {\r\n <span\r\n class=\"inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-gray-100 px-1 text-[10px] font-semibold text-gray-500\"\r\n >\r\n {{ emptyLabel }}\r\n </span>\r\n }\r\n @if (!hideName()) {\r\n <span class=\"text-sm font-semibold\">{{ displayName() }}</span>\r\n @if (data()?.calculated) {\r\n <mt-entity-calculated-indicator\r\n [status]=\"data()?.calculationStatus\"\r\n [change]=\"data()?.calculationChange\"\r\n />\r\n @if (data()?.calculationChange; as change) {\r\n @if (change.recent) {\r\n <mt-entity-calculation-change [change]=\"change\" />\r\n }\r\n }\r\n }\r\n }\r\n</div>\r\n", dependencies: [{ kind: "component", type: EntityCalculatedIndicator, selector: "mt-entity-calculated-indicator", inputs: ["status", "change"] }, { kind: "component", type: EntityCalculationChangeChip, selector: "mt-entity-calculation-change", inputs: ["change"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1931
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityCheckbox, isStandalone: true, selector: "mt-entity-checkbox", 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 }, rawValue: { classPropertyName: "rawValue", publicName: "rawValue", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"flex items-center gap-2\">\r\n @if (checkboxState() === true) {\r\n <svg class=\"w-5 h-5 text-green-500\" viewBox=\"0 0 20 20\" fill=\"currentColor\">\r\n <path\r\n fill-rule=\"evenodd\"\r\n d=\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z\"\r\n clip-rule=\"evenodd\"\r\n />\r\n </svg>\r\n } @else if (checkboxState() === false) {\r\n <svg class=\"w-5 h-5 text-gray-300\" viewBox=\"0 0 20 20\" fill=\"currentColor\">\r\n <path\r\n fill-rule=\"evenodd\"\r\n d=\"M10 18a8 8 0 100-16 8 8 0 000 16zm-1-5.414l-2.293-2.293a1 1 0 011.414-1.414L10 11.172l3.879-3.879a1 1 0 111.414 1.414L10 13.414l-.707-.707-.293-.293z\"\r\n clip-rule=\"evenodd\"\r\n />\r\n </svg>\r\n } @else {\r\n <span\r\n class=\"inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-gray-100 px-1 text-[10px] font-semibold text-gray-500\"\r\n >\r\n {{ emptyLabel }}\r\n </span>\r\n }\r\n @if (!hideName()) {\r\n <span class=\"text-sm font-semibold\">{{ displayName() }}</span>\r\n @if (data()?.calculated) {\r\n <mt-entity-calculated-indicator\r\n [status]=\"data()?.calculationStatus\"\r\n [change]=\"data()?.calculationChange\"\r\n [explanation]=\"calculationExplanation()\"\r\n />\r\n @if (data()?.calculationChange; as change) {\r\n @if (change.recent) {\r\n <mt-entity-calculation-change [change]=\"change\" />\r\n }\r\n }\r\n }\r\n }\r\n</div>\r\n", dependencies: [{ kind: "component", type: EntityCalculatedIndicator, selector: "mt-entity-calculated-indicator", inputs: ["status", "change", "explanation"] }, { kind: "component", type: EntityCalculationChangeChip, selector: "mt-entity-calculation-change", inputs: ["change"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1489
1932
  }
1490
1933
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityCheckbox, decorators: [{
1491
1934
  type: Component,
1492
- args: [{ selector: 'mt-entity-checkbox', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityCalculatedIndicator, EntityCalculationChangeChip], template: "<div class=\"flex items-center gap-2\">\r\n @if (checkboxState() === true) {\r\n <svg class=\"w-5 h-5 text-green-500\" viewBox=\"0 0 20 20\" fill=\"currentColor\">\r\n <path\r\n fill-rule=\"evenodd\"\r\n d=\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z\"\r\n clip-rule=\"evenodd\"\r\n />\r\n </svg>\r\n } @else if (checkboxState() === false) {\r\n <svg class=\"w-5 h-5 text-gray-300\" viewBox=\"0 0 20 20\" fill=\"currentColor\">\r\n <path\r\n fill-rule=\"evenodd\"\r\n d=\"M10 18a8 8 0 100-16 8 8 0 000 16zm-1-5.414l-2.293-2.293a1 1 0 011.414-1.414L10 11.172l3.879-3.879a1 1 0 111.414 1.414L10 13.414l-.707-.707-.293-.293z\"\r\n clip-rule=\"evenodd\"\r\n />\r\n </svg>\r\n } @else {\r\n <span\r\n class=\"inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-gray-100 px-1 text-[10px] font-semibold text-gray-500\"\r\n >\r\n {{ emptyLabel }}\r\n </span>\r\n }\r\n @if (!hideName()) {\r\n <span class=\"text-sm font-semibold\">{{ displayName() }}</span>\r\n @if (data()?.calculated) {\r\n <mt-entity-calculated-indicator\r\n [status]=\"data()?.calculationStatus\"\r\n [change]=\"data()?.calculationChange\"\r\n />\r\n @if (data()?.calculationChange; as change) {\r\n @if (change.recent) {\r\n <mt-entity-calculation-change [change]=\"change\" />\r\n }\r\n }\r\n }\r\n }\r\n</div>\r\n" }]
1935
+ args: [{ selector: 'mt-entity-checkbox', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityCalculatedIndicator, EntityCalculationChangeChip], template: "<div class=\"flex items-center gap-2\">\r\n @if (checkboxState() === true) {\r\n <svg class=\"w-5 h-5 text-green-500\" viewBox=\"0 0 20 20\" fill=\"currentColor\">\r\n <path\r\n fill-rule=\"evenodd\"\r\n d=\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z\"\r\n clip-rule=\"evenodd\"\r\n />\r\n </svg>\r\n } @else if (checkboxState() === false) {\r\n <svg class=\"w-5 h-5 text-gray-300\" viewBox=\"0 0 20 20\" fill=\"currentColor\">\r\n <path\r\n fill-rule=\"evenodd\"\r\n d=\"M10 18a8 8 0 100-16 8 8 0 000 16zm-1-5.414l-2.293-2.293a1 1 0 011.414-1.414L10 11.172l3.879-3.879a1 1 0 111.414 1.414L10 13.414l-.707-.707-.293-.293z\"\r\n clip-rule=\"evenodd\"\r\n />\r\n </svg>\r\n } @else {\r\n <span\r\n class=\"inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-gray-100 px-1 text-[10px] font-semibold text-gray-500\"\r\n >\r\n {{ emptyLabel }}\r\n </span>\r\n }\r\n @if (!hideName()) {\r\n <span class=\"text-sm font-semibold\">{{ displayName() }}</span>\r\n @if (data()?.calculated) {\r\n <mt-entity-calculated-indicator\r\n [status]=\"data()?.calculationStatus\"\r\n [change]=\"data()?.calculationChange\"\r\n [explanation]=\"calculationExplanation()\"\r\n />\r\n @if (data()?.calculationChange; as change) {\r\n @if (change.recent) {\r\n <mt-entity-calculation-change [change]=\"change\" />\r\n }\r\n }\r\n }\r\n }\r\n</div>\r\n" }]
1493
1936
  }], 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 }] }], rawValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "rawValue", required: false }] }] } });
1494
1937
 
1495
1938
  class EntityLongText {
@@ -2323,11 +2766,11 @@ class EntityConnection {
2323
2766
  }, ...(ngDevMode ? [{ debugName: "connection" }] : /* istanbul ignore next */ []));
2324
2767
  displayValue = computed(() => displayOrPlaceholder(this.connection()?.display), ...(ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []));
2325
2768
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityConnection, deps: [], target: i0.ɵɵFactoryTarget.Component });
2326
- 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 });
2769
+ 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 });
2327
2770
  }
2328
2771
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityConnection, decorators: [{
2329
2772
  type: Component,
2330
- 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" }]
2773
+ 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" }]
2331
2774
  }], 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 }] }] } });
2332
2775
  function normalizeEntityConnection(value) {
2333
2776
  if (value === null || value === undefined || value === '') {
@@ -2375,11 +2818,11 @@ class EntityScheduleItem {
2375
2818
  }, ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
2376
2819
  emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;
2377
2820
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityScheduleItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
2378
- 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 });
2821
+ 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 });
2379
2822
  }
2380
2823
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityScheduleItem, decorators: [{
2381
2824
  type: Component,
2382
- 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" }]
2825
+ 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" }]
2383
2826
  }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }] } });
2384
2827
 
2385
2828
  /**
@@ -4622,5 +5065,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
4622
5065
  * Generated bundle index. Do not edit.
4623
5066
  */
4624
5067
 
4625
- export { CALCULATION_CHANGE_CHIP_MS, CONNECTION_KEY_SEPARATOR, CURRENCY_COMPACT_THRESHOLD, CalculatedValueHistory, ComparisonEntityList, ComparisonValue, DEFAULT_PERFORMANCE_SCORE_CHART_SIZE, DEFAULT_PHASE_GATE_COLOR, ENTITY_EMPTY_VALUE_PLACEHOLDER, ENTITY_HEADER_VIEW_TYPES, ENTITY_LIST_TABLE_COMPONENT, ENTITY_ROW_SPANS, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCalculatedGlyph, EntityCalculatedIndicator, EntityCalculationChangeChip, EntityCheckbox, EntityColor, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityHeader, EntityIcon, EntityLeafDetails, EntityListDrawer, EntityListPreview, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPerformanceScore, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityRuntimeContextStore, EntityScheduleItem, EntityStatus, EntityText, EntityUser, FitText, LEAF_DETAILS_KEY_SEPARATOR, LEAF_PHASES_KEY_SEPARATOR, PERFORMANCE_SCORE_CHART_SIZES, SECTION_KEY_PREFIX, buildConnectionKey, buildDisplayEntities, buildEntityListRows, buildSectionKey, canEntityBeHeader, compactCurrencyDisplay, currencyUnitOf, describeCalculationChange, displayOrPlaceholder, expandConnectionEntity, expandLeafDetailsEntity, extractDisplayText, formatCalculationDelta, getEntitySectionTitle, getPerformanceScoreBands, groupEntitiesIntoSections, humanizeEntityListKey, isCalculatedProperty, isConnectionSyntheticKey, isEntityAlignEnd, isEntityHeader, isEntityLabelHidden, isEntityListLocalDocument, isEntityListSelectionDocument, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isLeafPhasesSyntheticKey, isLeafSyntheticKey, isSectionKey, isValueMissing, localCellsByFieldId, matchesPercentageColorRule, mergeStakeholderNameColumns, mergeStakeholderNameEntities, mergeStakeholderNameRows, normalizeConnectionSourceLevels, normalizeNumerals, parseCurrencyAmount, parsePerformanceScore, pinEntityHeaderFirst, readEntityHeaderDefaults, readEntityValueColor, resolveConnectionLevelName, resolveEntityGridRow, resolveEntityHeader, resolveEntityInfo, resolveEntityLabelPosition, resolveLocalFieldConfiguration, resolveLocalFieldLabel, resolveLocalFieldViewType, resolveLocalizedLabel, resolvePercentageColor, resolvePerformanceScoreStatus, serializeEntityRawValue, sharedActiveLang, sortLocalRows, splitConnectionKey, splitLeafKey, summarizeEntityListRows, visibleLocalSchemaFields };
5068
+ export { CALCULATION_CHANGE_CHIP_MS, CONNECTION_KEY_SEPARATOR, CURRENCY_COMPACT_THRESHOLD, CalculatedValueHistory, CalculationExplanationApi, ComparisonEntityList, ComparisonValue, DEFAULT_PERFORMANCE_SCORE_CHART_SIZE, DEFAULT_PHASE_GATE_COLOR, ENTITY_EMPTY_VALUE_PLACEHOLDER, ENTITY_HEADER_VIEW_TYPES, ENTITY_LIST_TABLE_COMPONENT, ENTITY_ROW_SPANS, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCalculatedGlyph, EntityCalculatedIndicator, EntityCalculationChangeChip, EntityCalculationExplanation, EntityCalculationRefresher, EntityCheckbox, EntityColor, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityHeader, EntityIcon, EntityLeafDetails, EntityListDrawer, EntityListPreview, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPerformanceScore, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityRuntimeContextStore, EntityScheduleItem, EntityStatus, EntityText, EntityUser, FitText, LEAF_DETAILS_KEY_SEPARATOR, LEAF_PHASES_KEY_SEPARATOR, PERFORMANCE_SCORE_CHART_SIZES, SECTION_KEY_PREFIX, buildConnectionKey, buildDisplayEntities, buildEntityListRows, buildSectionKey, canEntityBeHeader, compactCurrencyDisplay, currencyUnitOf, describeCalculationChange, displayOrPlaceholder, expandConnectionEntity, expandLeafDetailsEntity, extractDisplayText, formatCalculationDelta, formatExplanationValue, getEntitySectionTitle, getPerformanceScoreBands, groupEntitiesIntoSections, humanizeEntityListKey, isCalculatedProperty, isConnectionSyntheticKey, isEntityAlignEnd, isEntityHeader, isEntityLabelHidden, isEntityListLocalDocument, isEntityListSelectionDocument, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isLeafPhasesSyntheticKey, isLeafSyntheticKey, isSameSavedValue, isSectionKey, isValueMissing, localCellsByFieldId, matchesPercentageColorRule, mergeStakeholderNameColumns, mergeStakeholderNameEntities, mergeStakeholderNameRows, normalizeConnectionSourceLevels, normalizeNumerals, parseCurrencyAmount, parsePerformanceScore, pinEntityHeaderFirst, readEntityHeaderDefaults, readEntityValueColor, resolveConnectionLevelName, resolveEntityGridRow, resolveEntityHeader, resolveEntityInfo, resolveEntityLabelPosition, resolveLocalFieldConfiguration, resolveLocalFieldLabel, resolveLocalFieldViewType, resolveLocalizedLabel, resolvePercentageColor, resolvePerformanceScoreStatus, serializeEntityRawValue, sharedActiveLang, sortLocalRows, splitConnectionKey, splitLeafKey, summarizeEntityListRows, toCalculationContextKey, toCalculationExplanationTarget, visibleLocalSchemaFields };
4626
5069
  //# sourceMappingURL=masterteam-components-entities.mjs.map