@masterteam/components 0.0.297 → 0.0.298
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
|
@@ -465,11 +465,65 @@ declare class EntityListField implements ControlValueAccessor {
|
|
|
465
465
|
*/
|
|
466
466
|
private readonly showsPendingOperations;
|
|
467
467
|
/**
|
|
468
|
-
*
|
|
469
|
-
* removed
|
|
468
|
+
* Whether each row is flagged with the operation the request performs on it,
|
|
469
|
+
* and a removed row stays on screen instead of disappearing.
|
|
470
|
+
*
|
|
471
|
+
* Only while reviewing an unapplied submission. In an editable field the user
|
|
472
|
+
* just pressed delete, so the row leaving *is* the feedback — putting it back
|
|
473
|
+
* with a badge and no way to undo reads as a delete that failed.
|
|
474
|
+
*/
|
|
475
|
+
protected readonly showsChangeFlags: _angular_core.Signal<boolean>;
|
|
476
|
+
/**
|
|
477
|
+
* Rows rendered in the table: existing rows merged with pending edits, and
|
|
478
|
+
* created rows appended.
|
|
479
|
+
*
|
|
480
|
+
* While reviewing a submission the removed rows stay too, flagged `deleted`,
|
|
481
|
+
* and every row carries the operation it represents. An approver has to see
|
|
482
|
+
* the deletes they are approving — hiding them understated what pressing
|
|
483
|
+
* Approve would do. Everywhere else a removed row is simply gone.
|
|
470
484
|
*/
|
|
471
485
|
protected readonly displayRows: _angular_core.Signal<EntityListRow[]>;
|
|
472
486
|
protected readonly hasRows: _angular_core.Signal<boolean>;
|
|
487
|
+
/**
|
|
488
|
+
* Tag a rendered row with its staged operation and the cell that displays it.
|
|
489
|
+
* A no-op outside a reviewed submission, so an editable table keeps the rows
|
|
490
|
+
* exactly as the projection built them.
|
|
491
|
+
*/
|
|
492
|
+
private withRowChange;
|
|
493
|
+
/**
|
|
494
|
+
* Deleted ids with no loaded record behind them — already applied elsewhere,
|
|
495
|
+
* or outside the level-data scope this table queries. They render as an empty
|
|
496
|
+
* flagged row rather than vanishing: a review screen that silently drops a
|
|
497
|
+
* delete is the bug this whole overlay exists to avoid, and an id the table
|
|
498
|
+
* cannot describe is still a deletion the approver is signing off on.
|
|
499
|
+
*/
|
|
500
|
+
private orphanDeletedRows;
|
|
501
|
+
/**
|
|
502
|
+
* The flag cell, built as the `Status` entity `mt-table` already renders — a
|
|
503
|
+
* `rounded-md` badge tinted from the value's own colour. Assembled here
|
|
504
|
+
* rather than as a bespoke cell template so the column looks like every other
|
|
505
|
+
* cell in the table and needs no host wiring.
|
|
506
|
+
*/
|
|
507
|
+
private buildRowChangeCell;
|
|
508
|
+
/**
|
|
509
|
+
* Badge labels, re-resolved when the active language changes. `translate()`
|
|
510
|
+
* is a plain call, so without a language signal to depend on the computed
|
|
511
|
+
* would keep whichever language it first ran in.
|
|
512
|
+
*/
|
|
513
|
+
private readonly rowChangeLabels;
|
|
514
|
+
/**
|
|
515
|
+
* Columns bound to the table: the data columns, followed by the flag column
|
|
516
|
+
* while reviewing a submission.
|
|
517
|
+
*
|
|
518
|
+
* Last, not first: the leading column is what identifies a row, and pushing
|
|
519
|
+
* the record's own name aside for a badge makes the table harder to read for
|
|
520
|
+
* the rows nothing happened to — which is most of them.
|
|
521
|
+
*
|
|
522
|
+
* Deliberately separate from `columns()`, which is the metadata projection
|
|
523
|
+
* the row builders iterate — a synthetic column in there would be looked up
|
|
524
|
+
* against the record values and add an empty cell to every row.
|
|
525
|
+
*/
|
|
526
|
+
protected readonly tableColumns: _angular_core.Signal<EntityListColumnDef[]>;
|
|
473
527
|
/** Enough context to ask the backend what this field should render. */
|
|
474
528
|
protected readonly hasRequiredContext: _angular_core.Signal<boolean>;
|
|
475
529
|
/**
|
|
@@ -486,6 +540,8 @@ declare class EntityListField implements ControlValueAccessor {
|
|
|
486
540
|
private readonly destroyRef;
|
|
487
541
|
private readonly modal;
|
|
488
542
|
private readonly transloco;
|
|
543
|
+
/** Active language — see `rowChangeLabels`. */
|
|
544
|
+
private readonly lang;
|
|
489
545
|
/**
|
|
490
546
|
* Optional rich add-row dialog (provided by `@masterteam/forms` via
|
|
491
547
|
* `provideEntityListAddForm()`). When available, used instead of the local
|