@coolon/angular-ui-powerups 16.1.0-alpha.337 → 16.1.0-alpha.338

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.
@@ -139,6 +139,8 @@ export declare abstract class AbstractTableModel<Row extends object> extends Gar
139
139
  get visibleColumns$(): ListModel<ColumnModel<Row>>;
140
140
  /** Whether each column flexes, so a view can redraw when one starts or stops. */
141
141
  get columnFlexes$(): ListModel<boolean>;
142
+ /** Whether each column is kept in view, so a view can redraw when one starts or stops. */
143
+ get columnsKeptInView$(): ListModel<boolean>;
142
144
  /**
143
145
  * Shows the columns of a display scope in place of the default ones, such as a phone layout's, and searches those
144
146
  * columns only. Undefined is the default scope. A column shows in the default scope only, until it is given scopes with
@@ -9,6 +9,7 @@ export declare class ColumnManager<Row extends object> extends GarbageCollector
9
9
  readonly columnVisibilities$: WatchList<boolean>;
10
10
  readonly columnDisplayScopes$: WatchList<ColumnModel.DisplayScopes>;
11
11
  readonly columnFlexes$: WatchList<boolean>;
12
+ readonly columnsKeptInView$: WatchList<boolean>;
12
13
  private readonly _displayScope$;
13
14
  /**
14
15
  * The columns shown: those visible in their own right and shown in the table's display scope. A search covers these
@@ -30,6 +30,7 @@ export declare class ColumnModel<Row extends object> extends GarbageCollector {
30
30
  private _cellRendererPortalRef;
31
31
  private _enableRowSelection;
32
32
  private readonly _flex$;
33
+ private readonly _keepInView$;
33
34
  private readonly _displayScopes$;
34
35
  private _defaultVisibility$;
35
36
  private _masterVisibility$;
@@ -113,6 +114,14 @@ export declare class ColumnModel<Row extends object> extends GarbageCollector {
113
114
  flex(flex?: boolean | ValueModel<boolean>): void;
114
115
  get flex$(): ValueModel<boolean>;
115
116
  isFlex(): boolean;
117
+ /**
118
+ * Keeps the column in view while the table scrolls sideways. Its cells stay in their place until they would
119
+ * leave the table, then hold at its left or right edge while the other columns scroll under them. A model makes
120
+ * it follow a condition, such as a layout.
121
+ */
122
+ keepInView(keep?: boolean | ValueModel<boolean>): this;
123
+ get keepInView$(): ValueModel<boolean>;
124
+ isKeptInView(): boolean;
116
125
  attachHeaderCell(host: any): void;
117
126
  attachCell(host: any): void;
118
127
  onHeaderAttached(host: TableHeaderCellComponent, ref: CdkPortalOutletAttachedRef): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-alpha.337",
3
+ "version": "16.1.0-alpha.338",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.9",
6
6
  "@angular/common": "^16.2.9",
@@ -12,7 +12,7 @@
12
12
  "@angular/platform-browser-dynamic": "^16.2.9",
13
13
  "@angular/material-moment-adapter": "^16.2.10",
14
14
  "@angular/router": "^16.2.9",
15
- "@coolon/pectin": "^5.0.0-alpha.151",
15
+ "@coolon/pectin": "^5.0.0-alpha.152",
16
16
  "fast-typescript-memoize": "^1.1.1",
17
17
  "lodash-es": "^4.17.21",
18
18
  "marked": "4.0.10",