@masterteam/components 0.0.306 → 0.0.308

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/components",
3
- "version": "0.0.306",
3
+ "version": "0.0.308",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/components",
6
6
  "linkDirectory": true,
@@ -330,6 +330,8 @@ interface EntityListRevision {
330
330
  createdBy?: string | null;
331
331
  createdByName?: string | null;
332
332
  }
333
+ /** The values a compared list shows: as saved, or as the sources are now. */
334
+ type EntityListComparisonView = 'preserved' | 'current';
333
335
  /**
334
336
  * Why the metadata request produced no table.
335
337
  *
@@ -737,6 +739,20 @@ declare class EntityListField implements ControlValueAccessor {
737
739
  */
738
740
  protected readonly comparisonMode: _angular_core.Signal<boolean>;
739
741
  protected readonly comparisonReady: _angular_core.Signal<boolean>;
742
+ /** Which values a compared list shows, once the user picked one. */
743
+ private readonly chosenComparisonView;
744
+ /**
745
+ * The values shown: the user's pick, else the property's configured
746
+ * `snapshotMode` — Preserved for `Snapshot` (also the backend's default),
747
+ * Current for `Realtime`. Record previews, cards and table drawers all
748
+ * open on it, so the same list reads the same everywhere.
749
+ */
750
+ protected readonly comparisonView: _angular_core.Signal<EntityListComparisonView>;
751
+ protected readonly comparisonViewOptions: _angular_core.Signal<{
752
+ label: string;
753
+ value: string;
754
+ }[]>;
755
+ protected setComparisonView(view: unknown): void;
740
756
  protected readonly liveRows: _angular_core.Signal<EntityListRow[]>;
741
757
  protected readonly preservedRows: _angular_core.Signal<EntityListRow[]>;
742
758
  /** No baseline was captured yet — not the same as an empty saved list. */
@@ -745,6 +761,11 @@ declare class EntityListField implements ControlValueAccessor {
745
761
  protected readonly unavailableCount: _angular_core.Signal<number>;
746
762
  /** Query of the two read-only review endpoints for this list's owner. */
747
763
  private reviewParams;
764
+ /**
765
+ * The comparison endpoint answered `404` for this owner, so the list is
766
+ * shown from the source query instead (see `fetchComparison`).
767
+ */
768
+ private readonly comparisonUnsupported;
748
769
  private fetchComparison;
749
770
  /**
750
771
  * A list viewed from outside its form, with its owning record named (a
@@ -753,6 +774,12 @@ declare class EntityListField implements ControlValueAccessor {
753
774
  * form know no owner, and history is read-only anyway.
754
775
  */
755
776
  protected readonly historyAvailable: _angular_core.Signal<boolean>;
777
+ /**
778
+ * Saved list revisions are not offered for now (product decision): the
779
+ * button and the history panel are hidden, while the backend keeps storing
780
+ * revisions and serving its API. Turning this on needs nothing else.
781
+ */
782
+ private readonly SHOW_REVISION_HISTORY;
756
783
  /**
757
784
  * A Local or Selected list shows its value until a revision is picked;
758
785
  * then that revision, until *Back to latest*. A Related list always shows
@@ -423,6 +423,11 @@ declare class FormulaEditorCode implements ControlValueAccessor, AfterViewInit,
423
423
  private readonly editorHost;
424
424
  private readonly zone;
425
425
  private readonly document;
426
+ private readonly loader;
427
+ private destroyed;
428
+ readonly loadState: _angular_core.WritableSignal<"error" | "loading" | "ready">;
429
+ private readonly controlDisabled;
430
+ readonly isDisabled: _angular_core.Signal<boolean>;
426
431
  private monaco;
427
432
  private editor;
428
433
  private model;
@@ -446,9 +451,12 @@ declare class FormulaEditorCode implements ControlValueAccessor, AfterViewInit,
446
451
  constructor();
447
452
  ngAfterViewInit(): void;
448
453
  ngOnDestroy(): void;
454
+ private disposeEditor;
449
455
  writeValue(value: string | null): void;
450
456
  registerOnChange(fn: (value: string) => void): void;
451
457
  registerOnTouched(fn: () => void): void;
458
+ setDisabledState(disabled: boolean): void;
459
+ retryLoadEditor(): void;
452
460
  addBlock(block: SmartBlock): void;
453
461
  insertText(text: string, cursorOffset?: number): void;
454
462
  clear(): void;
@@ -578,11 +586,11 @@ declare class FormulaToolbar {
578
586
  /** Custom value input */
579
587
  readonly customValue: _angular_core.WritableSignal<string>;
580
588
  /** Detected type of custom value */
581
- readonly customValueType: _angular_core.Signal<"string" | "number" | "text">;
589
+ readonly customValueType: _angular_core.Signal<"string" | "number" | "boolean" | "text">;
582
590
  /** Preview of custom value */
583
591
  readonly customValuePreview: _angular_core.Signal<string>;
584
592
  /** CSS class for custom value type */
585
- readonly customValueTypeClass: _angular_core.Signal<"bg-rose-100 text-rose-700 hover:bg-rose-200 dark:bg-rose-900/30 dark:text-rose-300 dark:hover:bg-rose-900/50" | "bg-emerald-100 text-emerald-700 hover:bg-emerald-200 dark:bg-emerald-900/30 dark:text-emerald-300 dark:hover:bg-emerald-900/50" | "bg-slate-100 text-slate-700 hover:bg-slate-200 dark:bg-slate-700 dark:text-slate-300 dark:hover:bg-slate-600">;
593
+ readonly customValueTypeClass: _angular_core.Signal<"bg-violet-100 text-violet-700 hover:bg-violet-200 dark:bg-violet-900/30 dark:text-violet-300 dark:hover:bg-violet-900/50" | "bg-rose-100 text-rose-700 hover:bg-rose-200 dark:bg-rose-900/30 dark:text-rose-300 dark:hover:bg-rose-900/50" | "bg-emerald-100 text-emerald-700 hover:bg-emerald-200 dark:bg-emerald-900/30 dark:text-emerald-300 dark:hover:bg-emerald-900/50" | "bg-slate-100 text-slate-700 hover:bg-slate-200 dark:bg-slate-700 dark:text-slate-300 dark:hover:bg-slate-600">;
586
594
  constructor();
587
595
  /** Filtered categories based on search */
588
596
  readonly filteredCategories: _angular_core.Signal<{