@zambon-dev/library 1.5.0 → 1.6.1

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 @@ export declare class DataGridComponent extends BaseComponent implements OnInit,
14
14
  protected dataGridDataset: DataGridDataset;
15
15
  protected hasFailed: boolean;
16
16
  protected headerRightMargin: number;
17
+ protected headerScrollLeft: number;
17
18
  protected loading: boolean;
18
19
  private bodyResized$;
19
20
  private bodyResizeObserver?;
@@ -13,7 +13,7 @@ export declare class DataGridRowComponent extends BaseComponent implements OnIni
13
13
  protected dataGridDataset: DataGridDataset;
14
14
  protected selected: boolean;
15
15
  private _rowData;
16
- private isWidthSet;
16
+ private hasMeasured;
17
17
  get rowData(): any;
18
18
  protected get columns(): IGridColumn[];
19
19
  private get isRowDataSelected();
@@ -0,0 +1,29 @@
1
+ import { AbstractControl } from '@angular/forms';
2
+ /**
3
+ * Tracks the form controls that exist only to show a catalog selection's label.
4
+ *
5
+ * `lib-catalog-select` works in pairs: the control named by `controlName` holds the identifier, and
6
+ * the one named by `displayControlName` holds the text the user reads. The second is created by the
7
+ * component itself when a screen does not declare it, so a form ends up carrying controls nobody
8
+ * wrote down — and a filters form then submits them alongside the real filters.
9
+ *
10
+ * The mark lives in a `WeakSet` keyed by the control instance rather than by its name. That is the
11
+ * only scope that is actually correct: two forms may each have an `employeeName`, and only the one
12
+ * a catalog select drives is a display control. It also keeps nothing alive.
13
+ */
14
+ export declare class DisplayControls {
15
+ private static readonly marked;
16
+ /**
17
+ * Whether the control exists only to display a catalog selection's label.
18
+ *
19
+ * @param control The control, which may be absent.
20
+ * @returns `true` when a catalog select drives it as its display control.
21
+ */
22
+ static isDisplayControl(control: AbstractControl | null | undefined): boolean;
23
+ /**
24
+ * Marks the control as existing only to display a catalog selection's label.
25
+ *
26
+ * @param control The control, which may be absent.
27
+ */
28
+ static markAsDisplayControl(control: AbstractControl | null | undefined): void;
29
+ }
@@ -1,3 +1,4 @@
1
1
  export { DateHelpers } from './date-helpers';
2
+ export { DisplayControls } from './display-controls';
2
3
  export { GuidHelper } from './guid-helper';
3
4
  export { RouterFormatter } from './route-formatter';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zambon-dev/library",
3
- "version": "1.5.0",
3
+ "version": "1.6.1",
4
4
  "description": "Angular UI components and shared presentation utilities for Zambon applications.",
5
5
  "keywords": [
6
6
  "angular",