@coolon/angular-ui-powerups 16.1.0-alpha.343 → 16.1.0-alpha.345
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/assets/table.scss +24 -12
- package/esm2022/lib/components/tables/column/column-model.mjs +3 -3
- package/esm2022/lib/components/tables/tree-table/tree-expansion-model.mjs +29 -4
- package/fesm2022/coolon-angular-ui-powerups.mjs +29 -5
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/tables/column/column-model.d.ts +2 -2
- package/lib/components/tables/tree-table/tree-expansion-model.d.ts +19 -3
- package/package.json +9 -3
|
@@ -126,8 +126,8 @@ export declare class ColumnModel<Row extends object> extends GarbageCollector {
|
|
|
126
126
|
/**
|
|
127
127
|
* Marks a column whose cells end in an icon button, such as a more menu or a row's actions. At the table's edge, the
|
|
128
128
|
* column's padding there gives back the transparent inset round the button's icon, so the icon lines up with the
|
|
129
|
-
* content edge as the first column's text does. The cells' content
|
|
130
|
-
*
|
|
129
|
+
* content edge as the first column's text does. The cells' content is held against that edge, so a column wider
|
|
130
|
+
* than its buttons, such as a flex one, still ends in them.
|
|
131
131
|
*/
|
|
132
132
|
iconButtonColumn(iconButton?: boolean): this;
|
|
133
133
|
isIconButtonColumn(): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Disposable, DisposedWith, GarbageCollector, ListModel, OneTimeBinding } from '@coolon/pectin';
|
|
1
|
+
import { CanIdentify, Disposable, DisposedWith, GarbageCollector, ListModel, OneTimeBinding } from '@coolon/pectin';
|
|
2
2
|
export declare class TreeExpansionModel<T> extends GarbageCollector implements OneTimeBinding {
|
|
3
3
|
/** A proxied tree expansion model is a one-time binding: it cannot be read before its input is set. */
|
|
4
4
|
readonly [OneTimeBinding.brand]: true;
|
|
@@ -6,10 +6,22 @@ export declare class TreeExpansionModel<T> extends GarbageCollector implements O
|
|
|
6
6
|
private readonly collapsedIds;
|
|
7
7
|
private readonly _isExpandedPredicate$;
|
|
8
8
|
private readonly _visibleRows$;
|
|
9
|
-
|
|
9
|
+
private readonly _identityOf;
|
|
10
|
+
private readonly identifiesRowsItself;
|
|
11
|
+
/**
|
|
12
|
+
* A model that identifies its rows itself (`identifiedBy` or `identifiedWith`) knows a node from the start. One that
|
|
13
|
+
* does not takes the table's identity once the table binds it, and moves any expansion set before then over to it.
|
|
14
|
+
*/
|
|
15
|
+
constructor(options: TreeExpansionModel.Options<T>);
|
|
10
16
|
bindToTable(source$: ListModel<T>, visibleRows$: ListModel<T>): Disposable;
|
|
11
17
|
get visibleRows$(): ListModel<T>;
|
|
12
|
-
protected identityOf(row: T):
|
|
18
|
+
protected identityOf(row: T): unknown;
|
|
19
|
+
/**
|
|
20
|
+
* Before the table binds, a model that does not identify its rows itself knows a node only as the node, so a node
|
|
21
|
+
* expanded or collapsed then is stored as the node. The table identifies its rows its own way (by id, say), and the
|
|
22
|
+
* stored node would match no row. The choice used to be lost that way.
|
|
23
|
+
*/
|
|
24
|
+
private keyCollapsedNodesByTheTablesIdentity;
|
|
13
25
|
get isExpandedPredicate$(): import("@coolon/pectin").ValueModel<(node: T) => boolean>;
|
|
14
26
|
expand(node: T): void;
|
|
15
27
|
collapse(node: T): void;
|
|
@@ -32,3 +44,7 @@ export declare class TreeExpansionModel<T> extends GarbageCollector implements O
|
|
|
32
44
|
private forEachNode;
|
|
33
45
|
private updatePredicate;
|
|
34
46
|
}
|
|
47
|
+
export declare namespace TreeExpansionModel {
|
|
48
|
+
interface Options<T> extends DisposedWith, CanIdentify.Options<T> {
|
|
49
|
+
}
|
|
50
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolon/angular-ui-powerups",
|
|
3
|
-
"version": "16.1.0-alpha.
|
|
3
|
+
"version": "16.1.0-alpha.345",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "^16.2.9",
|
|
6
6
|
"@angular/common": "^16.2.9",
|
|
@@ -32,9 +32,13 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"tslib": "^2.3.0"
|
|
34
34
|
},
|
|
35
|
-
"module": "fesm2022/coolon-angular-ui-powerups.mjs",
|
|
36
|
-
"typings": "index.d.ts",
|
|
37
35
|
"exports": {
|
|
36
|
+
"./assets/icon-button": {
|
|
37
|
+
"sass": "./assets/_icon-button.scss"
|
|
38
|
+
},
|
|
39
|
+
"./assets/*": {
|
|
40
|
+
"sass": "./assets/*.scss"
|
|
41
|
+
},
|
|
38
42
|
"./package.json": {
|
|
39
43
|
"default": "./package.json"
|
|
40
44
|
},
|
|
@@ -45,5 +49,7 @@
|
|
|
45
49
|
"default": "./fesm2022/coolon-angular-ui-powerups.mjs"
|
|
46
50
|
}
|
|
47
51
|
},
|
|
52
|
+
"module": "fesm2022/coolon-angular-ui-powerups.mjs",
|
|
53
|
+
"typings": "index.d.ts",
|
|
48
54
|
"sideEffects": false
|
|
49
55
|
}
|