@meshmakers/shared-ui 3.4.1430 → 3.4.1440

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": "@meshmakers/shared-ui",
3
- "version": "3.4.1430",
3
+ "version": "3.4.1440",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.0.0",
6
6
  "@angular/core": "^22.0.0",
@@ -115,6 +115,14 @@ interface TableColumn {
115
115
  * the identifying columns keep their room on small screens.
116
116
  */
117
117
  hideBelow?: number;
118
+ /**
119
+ * Horizontal alignment of the column's header and cells. Defaults to the
120
+ * grid's start alignment. Amount and quantity columns should be `'right'`:
121
+ * right-aligned figures line up on the decimal separator so magnitudes can
122
+ * be compared down the column, and the cell additionally renders with
123
+ * tabular (fixed-width) digits so the digits themselves line up too.
124
+ */
125
+ align?: 'left' | 'center' | 'right';
118
126
  /**
119
127
  * Status mapping for single-field statusIcons columns.
120
128
  * Use this when the column displays icons for a single field.
@@ -494,6 +502,28 @@ declare class ListViewComponent extends CommandBaseService implements OnDestroy,
494
502
  */
495
503
  private recomputeAutoPageSize;
496
504
  ngOnDestroy(): void;
505
+ /**
506
+ * CSS class carrying the column's `align` to its header and body cells
507
+ * (`mm-col-align-right` …); empty for the default start alignment so the
508
+ * grid's own cell classes stay untouched.
509
+ */
510
+ protected alignClass(column: TableColumn): string;
511
+ /**
512
+ * Below this column width the date and numeric row-filter cells render
513
+ * compact (see `isCompactFilter`). Kendo's date filter cell is a date picker
514
+ * plus an operator picker: in a 120px column the calendar toggle (33px) and
515
+ * the operator (34px) leave the date input 35px — three characters of a
516
+ * dd.MM.yyyy. The threshold is the width at which the full cell fits.
517
+ */
518
+ private static readonly COMPACT_FILTER_BELOW;
519
+ /**
520
+ * Whether the column's row-filter cell drops its secondary controls — the
521
+ * calendar toggle of a date filter (Alt+Down still opens the calendar, the
522
+ * masked input stays), the spinners of a numeric filter — and tightens its
523
+ * padding, because the column is narrower than `COMPACT_FILTER_BELOW`.
524
+ * Auto-sized columns without a width are never compact.
525
+ */
526
+ protected isCompactFilter(column: TableColumn): boolean;
497
527
  /** Whether the column is hidden at the current component width (`hideBelow`). */
498
528
  protected isColumnHidden(column: TableColumn): boolean;
499
529
  /** Whether the row-checkbox column is rendered (selection enabled AND above `hideCheckboxesBelow`). */