@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.
- package/CHANGELOG.md +44 -1
- package/fesm2022/zambon-dev-library.mjs +131 -62
- package/fesm2022/zambon-dev-library.mjs.map +1 -1
- package/lib/components/data-grid/data-grid.component.d.ts +1 -0
- package/lib/components/data-grid-row/data-grid-row.component.d.ts +1 -1
- package/lib/helpers/display-controls.d.ts +29 -0
- package/lib/helpers/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
|
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
|
+
}
|
package/lib/helpers/index.d.ts
CHANGED