@coolon/angular-ui-powerups 12.4.0-alpha.54 → 12.4.0-alpha.56
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/bundles/coolon-angular-ui-powerups.umd.js +0 -30
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/exports.js +0 -2
- package/esm2015/lib/components/exports.js.map +1 -1
- package/esm2015/lib/components/exports.metadata.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-table-component.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +1 -27
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/exports.d.ts +0 -2
- package/lib/components/tables/tree-table/tree-table-component.d.ts +1 -1
- package/package.json +1 -1
- package/esm2015/lib/components/tables/tree-table/tree-node.js +0 -2
- package/esm2015/lib/components/tables/tree-table/tree-node.js.map +0 -1
- package/esm2015/lib/components/tables/tree-table/tree-node.metadata.json +0 -1
- package/esm2015/lib/components/tables/tree-table/visitable.class.js +0 -26
- package/esm2015/lib/components/tables/tree-table/visitable.class.js.map +0 -1
- package/esm2015/lib/components/tables/tree-table/visitable.class.metadata.json +0 -1
- package/lib/components/tables/tree-table/tree-node.d.ts +0 -3
- package/lib/components/tables/tree-table/visitable.class.d.ts +0 -22
|
@@ -71,10 +71,8 @@ export * from "./tables/tree-table/decorated-tree-node";
|
|
|
71
71
|
export * from "./tables/tree-table/flattened-tree-list-model";
|
|
72
72
|
export * from "./tables/tree-table/tree-expansion-model";
|
|
73
73
|
export * from "./tables/tree-table/tree-label-column-model";
|
|
74
|
-
export * from "./tables/tree-table/tree-node";
|
|
75
74
|
export * from "./tables/tree-table/tree-table-component";
|
|
76
75
|
export * from "./tables/tree-table/tree-table-model";
|
|
77
|
-
export * from "./tables/tree-table/visitable.class";
|
|
78
76
|
export * from "./tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component";
|
|
79
77
|
export * from "./tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component";
|
|
80
78
|
export * from "./types/bounds.class";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementRef, NgZone } from '@angular/core';
|
|
2
|
+
import { TreeNode } from '@coolon/typescript-utilities';
|
|
2
3
|
import { AbstractTableModel } from '../abstract-table-model';
|
|
3
4
|
import { AbstractTableComponent } from '../abstract-table.component';
|
|
4
|
-
import { TreeNode } from './tree-node';
|
|
5
5
|
import { TreeTableModel } from './tree-table-model';
|
|
6
6
|
/**
|
|
7
7
|
* Create your model:
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tree-node.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/tables/tree-table/tree-node.ts"],"names":[],"mappings":"","sourcesContent":["export interface TreeNode<T extends TreeNode<T>> {\n children: T[];\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"TreeNode":{"__symbolic":"interface"}}}]
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export class SelfAndDescendantsVisitor {
|
|
2
|
-
constructor() {
|
|
3
|
-
}
|
|
4
|
-
visit(it) {
|
|
5
|
-
this.onVisit(it);
|
|
6
|
-
if (this.shouldVisitChildrenOf(it)) {
|
|
7
|
-
it.visitChildren(this);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
shouldVisitChildrenOf(it) {
|
|
11
|
-
return true;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
(function (SelfAndDescendantsVisitor) {
|
|
15
|
-
class Each extends SelfAndDescendantsVisitor {
|
|
16
|
-
constructor(callback) {
|
|
17
|
-
super();
|
|
18
|
-
this.callback = callback;
|
|
19
|
-
}
|
|
20
|
-
onVisit(it) {
|
|
21
|
-
this.callback(it);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
SelfAndDescendantsVisitor.Each = Each;
|
|
25
|
-
})(SelfAndDescendantsVisitor || (SelfAndDescendantsVisitor = {}));
|
|
26
|
-
//# sourceMappingURL=visitable.class.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"visitable.class.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/tables/tree-table/visitable.class.ts"],"names":[],"mappings":"AAaA,MAAM,OAAgB,yBAAyB;IAE3C;IACA,CAAC;IAED,KAAK,CAAC,EAAK;QACP,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACjB,IAAI,IAAI,CAAC,qBAAqB,CAAC,EAAE,CAAC,EAAE;YAChC,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;SAC1B;IACL,CAAC;IAIS,qBAAqB,CAAC,EAAK;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAED,WAAiB,yBAAyB;IAEtC,MAAa,IAAmC,SAAQ,yBAA4B;QAChF,YAAoB,QAAyB;YACzC,KAAK,EAAE,CAAC;YADQ,aAAQ,GAAR,QAAQ,CAAiB;QAE7C,CAAC;QACS,OAAO,CAAC,EAAK;YACnB,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACtB,CAAC;KACJ;IAPY,8BAAI,OAOhB,CAAA;AACL,CAAC,EAVgB,yBAAyB,KAAzB,yBAAyB,QAUzC","sourcesContent":["export interface Visitor<T> {\n visit(it: T);\n}\n\nexport interface Visitable<T> {\n visit<V extends Visitor<T>>(it: V):V;\n}\n\nexport interface VisitableTree<T> extends Visitable<T> {\n visitChildren<V extends Visitor<T>>(it: V):V;\n}\n\n\nexport abstract class SelfAndDescendantsVisitor<T extends VisitableTree<T>> implements Visitor<T> {\n\n constructor() {\n }\n\n visit(it: T) {\n this.onVisit(it);\n if (this.shouldVisitChildrenOf(it)) {\n it.visitChildren(this);\n }\n }\n\n protected abstract onVisit(it: T);\n\n protected shouldVisitChildrenOf(it: T): boolean {\n return true;\n }\n}\n\nexport namespace SelfAndDescendantsVisitor {\n\n export class Each<T extends VisitableTree<any>> extends SelfAndDescendantsVisitor<T> {\n constructor(private callback: (it: T) => void) {\n super();\n }\n protected onVisit(it: T) {\n this.callback(it);\n }\n }\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"Visitor":{"__symbolic":"interface"},"Visitable":{"__symbolic":"interface"},"VisitableTree":{"__symbolic":"interface"},"SelfAndDescendantsVisitor":{"__symbolic":"class","arity":1,"members":{"__ctor__":[{"__symbolic":"constructor"}],"visit":[{"__symbolic":"method"}],"onVisit":[{"__symbolic":"method"}],"shouldVisitChildrenOf":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface Visitor<T> {
|
|
2
|
-
visit(it: T): any;
|
|
3
|
-
}
|
|
4
|
-
export interface Visitable<T> {
|
|
5
|
-
visit<V extends Visitor<T>>(it: V): V;
|
|
6
|
-
}
|
|
7
|
-
export interface VisitableTree<T> extends Visitable<T> {
|
|
8
|
-
visitChildren<V extends Visitor<T>>(it: V): V;
|
|
9
|
-
}
|
|
10
|
-
export declare abstract class SelfAndDescendantsVisitor<T extends VisitableTree<T>> implements Visitor<T> {
|
|
11
|
-
constructor();
|
|
12
|
-
visit(it: T): void;
|
|
13
|
-
protected abstract onVisit(it: T): any;
|
|
14
|
-
protected shouldVisitChildrenOf(it: T): boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare namespace SelfAndDescendantsVisitor {
|
|
17
|
-
class Each<T extends VisitableTree<any>> extends SelfAndDescendantsVisitor<T> {
|
|
18
|
-
private callback;
|
|
19
|
-
constructor(callback: (it: T) => void);
|
|
20
|
-
protected onVisit(it: T): void;
|
|
21
|
-
}
|
|
22
|
-
}
|