@coolon/angular-ui-powerups 14.41.1 → 14.43.0

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.
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
6
6
  export declare class InputActivity<T, D extends InputActivity.Data<T> = InputActivity.Data<T>> extends Activity<D, T> {
7
7
  readonly confirmCommand: Command<void>;
8
8
  readonly cancelCommand: Command<void>;
9
- readonly valueModel: Form.ValueModelBase<T>;
9
+ readonly value$: Form.ValueModelBase<T>;
10
10
  class: string;
11
11
  readonly confirmFace: CommandFace;
12
12
  readonly cancelFace: CommandFace;
@@ -2,7 +2,7 @@ import { ListModel } from '@coolon/pectin';
2
2
  import { InputActivity } from './input-activity';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SelectInputActivity<T> extends InputActivity<T, SelectInputActivity.Data<T>> {
5
- readonly defaultOptionLabelFormat: (option: T) => T | T[keyof T];
5
+ readonly defaultOptionLabelFormat: (option: T) => "" | T | T[keyof T];
6
6
  get optionLabelFormat(): (option: T) => any;
7
7
  get options(): T[];
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectInputActivity<any>, never>;
@@ -14,5 +14,7 @@ export declare namespace SelectInputActivity {
14
14
  optionsModel?: ListModel<T>;
15
15
  optionLabel?: keyof T;
16
16
  optionLabelFormat?: (option: T) => any;
17
+ allowNil?: boolean;
18
+ nilLabel?: string;
17
19
  }
18
20
  }
@@ -14,9 +14,9 @@ interface MenuItem {
14
14
  export declare class AbstractPlaceNavigationComponent extends DisposableComponent implements OnInit {
15
15
  readonly placeRouter: PlaceRouter;
16
16
  places: Constructable<PlaceComponent>[];
17
- placesModel: ListModel<Constructable<PlaceComponent>>;
17
+ places$: ListModel<Constructable<PlaceComponent>>;
18
18
  placeOutlet: PlaceOutletComponent;
19
- placeOutletModel: ValueModel<PlaceOutletComponent>;
19
+ placeOutlet$: ValueModel<PlaceOutletComponent>;
20
20
  private readonly placeDefinitions;
21
21
  readonly menuItems: ListModelChain<MenuItem>;
22
22
  readonly commandFactory: Command.Factory<PlaceDefinition, void>;
@@ -30,6 +30,6 @@ export declare class AbstractPlaceNavigationComponent extends DisposableComponen
30
30
  private createCommandFaceFor;
31
31
  ngOnInit(): void;
32
32
  static ɵfac: i0.ɵɵFactoryDeclaration<AbstractPlaceNavigationComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<AbstractPlaceNavigationComponent, "ng-component", never, { "places": "places"; "placesModel": "placesModel"; "placeOutlet": "placeOutlet"; "placeOutletModel": "placeOutletModel"; }, {}, never, never, false>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<AbstractPlaceNavigationComponent, "ng-component", never, { "places": "places"; "places$": "places$"; "placeOutlet": "placeOutlet"; "placeOutlet$": "placeOutlet$"; }, {}, never, never, false>;
34
34
  }
35
35
  export {};
@@ -1,9 +1,10 @@
1
1
  import { ActivatedRouteSnapshot } from '@angular/router';
2
- import { Constructable, ValueModel } from '@coolon/pectin';
2
+ import { Constructable, ListModel, ValueModel } from '@coolon/pectin';
3
3
  import 'reflect-metadata';
4
4
  import { DisposableComponent } from '../components/disposable-component';
5
5
  import { InteractionContext } from '../interaction/interaction-context';
6
6
  import { PlaceDefinition } from './place-definition';
7
+ import { PlaceRouter } from "./place-router";
7
8
  import { ParameterDefinition } from './route/parameter-definition';
8
9
  import { UrlSnapshot } from './url-snapshot';
9
10
  import { VisitSegment } from './visit-segment';
@@ -16,11 +17,17 @@ export declare class PlaceComponent extends DisposableComponent {
16
17
  private _inVisitUpdate;
17
18
  private _active;
18
19
  interactionContext?: InteractionContext;
19
- childPlaces: Constructable<PlaceComponent>[];
20
+ childPlaces$: ListModel<Constructable<PlaceComponent>>;
21
+ readonly authorisedChildPlaces$: ListModel<Constructable<PlaceComponent>>;
20
22
  private readonly _parameterChangeInterceptors;
21
23
  canDeactivate?(interactionContext: InteractionContext): boolean | Promise<boolean>;
24
+ protected readonly placeRouter: PlaceRouter;
22
25
  constructor();
23
26
  initialiseVisit(visit: VisitSegment, notifyVisitChanged: (current: VisitSegment, previous: VisitSegment) => void): void;
27
+ /**
28
+ * @deprecated use authorisedChildPlaces$ instead
29
+ */
30
+ get childPlaces(): Constructable<PlaceComponent>[];
24
31
  updateVisit(visit: VisitSegment): void;
25
32
  isInitialised(): boolean;
26
33
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "14.41.1",
3
+ "version": "14.43.0",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "peerDependencies": {
6
6
  "@angular/animations": "^14.2.12",