@coolon/angular-ui-powerups 12.4.0-alpha.33 → 12.4.0-alpha.35

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.
@@ -1,11 +1,15 @@
1
- import { ListModel, MutableValueModel, Validator, ValueModel } from '@coolon/pectin';
1
+ import { GarbageCollector, ListModel, MutableValueModel, Validator, ValueModel } from '@coolon/pectin';
2
2
  import { EditContext } from '../edit-context';
3
- export declare class InlineEditorModel<T> {
3
+ export declare class InlineEditorModel<T> extends GarbageCollector {
4
4
  readonly valueModel: ValueModel<T>;
5
5
  readonly saveCallback: InlineEditorModel.SaveCallback<T>;
6
6
  readonly editing: MutableValueModel<boolean>;
7
7
  private readonly _validators;
8
+ private _editingEnabled;
8
9
  constructor(valueModel: ValueModel<T>, saveCallback: InlineEditorModel.SaveCallback<T>);
10
+ get editingEnabled(): ValueModel<boolean>;
11
+ disableWhile(condition: ValueModel<boolean>): this;
12
+ enableWhile(condition: ValueModel<boolean>): this;
9
13
  get validators(): ListModel<Validator<T>>;
10
14
  validateUsing(validator: Validator<T>): this;
11
15
  isEditing(): boolean;
@@ -1,5 +1,5 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { BooleanValueModelChain, Command, ValueModel, ValueModelChain } from '@coolon/pectin';
2
+ import { BooleanValueModelChain, Command, DelegatingValueModel, ValueModel, ValueModelChain } from '@coolon/pectin';
3
3
  import { CommandFace } from '../../../../components/commands/command-face';
4
4
  import { DisposableComponent } from '../../../../components/disposable-component';
5
5
  import { InteractionService } from '../../../services/interaction.service';
@@ -38,6 +38,7 @@ export declare class InlineStringEditorComponent extends DisposableComponent imp
38
38
  readonly editFaceModel: ValueModelChain<CommandFace>;
39
39
  readonly saveFace: ValueModelChain<CommandFace>;
40
40
  readonly cancelFace: ValueModelChain<CommandFace>;
41
+ readonly editingEnabled: DelegatingValueModel<boolean>;
41
42
  constructor(interactionService: InteractionService);
42
43
  ngOnInit(): void;
43
44
  private createInputActivityData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "12.4.0-alpha.33",
3
+ "version": "12.4.0-alpha.35",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "@coolon/typescript-utilities": "^2.2.0",