@coolon/angular-ui-powerups 11.2.0 → 11.2.3

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.
@@ -13,7 +13,7 @@ export declare class AbstractListInputComponent<T> extends AbstractInputComponen
13
13
  * friendly delegate. We have to use an existing delegate for union types as pectin just
14
14
  * gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
15
15
  */
16
- protected readonly formValueModel: Form.DelegatingListModel<T>;
16
+ protected readonly formValueModel: Form.DelegatingFormListModel<T>;
17
17
  readonly componentListModel: MutableListModel<T>;
18
18
  private setValueIsInProgress;
19
19
  private listHolder;
@@ -13,7 +13,7 @@ export declare class AbstractValueInputComponent<T> extends AbstractInputCompone
13
13
  * friendly delegate. We have to use an existing delegate for union types as pectin just
14
14
  * gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
15
15
  */
16
- protected readonly formValueModel: Form.DelegatingValueModel<T>;
16
+ protected readonly formValueModel: Form.DelegatingFormValueModel<T>;
17
17
  protected setValueInProgress: Guard;
18
18
  readonly componentValueModel: MutableValueModel<T>;
19
19
  private plainValueHolder;
@@ -8,6 +8,10 @@ export declare namespace Place {
8
8
  [key: string]: any;
9
9
  };
10
10
  authenticate?: boolean;
11
+ role?: any;
12
+ /**
13
+ * @deprecated use #role instead
14
+ */
11
15
  roles?: string[];
12
16
  children?: Constructable<PlaceComponent>[];
13
17
  defaultChild?: Constructable<PlaceComponent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "11.2.0",
3
+ "version": "11.2.3",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "@coolon/typescript-utilities": "^2.2.0",
@@ -32,7 +32,7 @@
32
32
  "rxjs": "~6.6.3",
33
33
  "reflect-metadata": "^0.1.13",
34
34
  "zone.js": "~0.10.3",
35
- "@coolon/pectin": ">=3.10.1"
35
+ "@coolon/pectin": ">=3.11.1"
36
36
  },
37
37
  "main": "bundles/coolon-angular-ui-powerups.umd.js",
38
38
  "module": "fesm2015/coolon-angular-ui-powerups.js",
@@ -1,18 +1,20 @@
1
1
  import {Component} from "@angular/core";
2
- import {HomeComponent} from "./places/home/home.component";
2
+ import {DisposableComponent} from "@coolon/angular-ui-powerups";
3
+ import {Dsl} from "@coolon/pectin";
3
4
 
4
5
  @Component({
5
6
  selector: "<%= dasherize(project)%>-root",
6
7
  templateUrl: "./app.component.html",
7
8
  styleUrls: ["./app.component.scss"],
8
9
  })
9
- export class AppComponent {
10
+ export class AppComponent extends DisposableComponent {
10
11
 
11
12
  readonly places = [
12
- HomeComponent
13
13
  ];
14
14
 
15
15
  constructor() {
16
+ super();
17
+ const {chain} = Dsl.disposeWith(this);
16
18
  }
17
19
 
18
20
  }
@@ -0,0 +1,16 @@
1
+ import {NgModule} from '@angular/core';
2
+ import {ComponentsModule as AupComponentsModule, InteractionModule} from "@coolon/angular-ui-powerups";
3
+
4
+ @NgModule({
5
+ declarations: [
6
+ ],
7
+ imports: [
8
+ AupComponentsModule,
9
+ InteractionModule
10
+ ],
11
+ providers: [],
12
+ })
13
+ export class ComponentsModule {
14
+ constructor() {
15
+ }
16
+ }