@coolon/angular-ui-powerups 12.4.0-alpha.32 → 12.4.0-alpha.34
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/interaction/editor/inline-string-editor.scss +4 -1
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js +23 -9
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +67 -13
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
- package/cypress/package.json +1 -1
- package/cypress/page.d.ts +3 -0
- package/esm2015/cypress/page.js +23 -9
- package/esm2015/cypress/page.js.map +1 -1
- package/esm2015/cypress/page.metadata.json +1 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +18 -2
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +1 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +1 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +6 -4
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +1 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/place-component.js +31 -4
- package/esm2015/lib/place/place-component.js.map +1 -1
- package/esm2015/lib/place/place-component.metadata.json +1 -1
- package/esm2015/lib/place/visit.js +5 -1
- package/esm2015/lib/place/visit.js.map +1 -1
- package/esm2015/lib/place/visit.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups-cypress.js +23 -9
- package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +57 -9
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +6 -2
- package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +2 -1
- package/lib/place/place-component.d.ts +6 -1
- package/package.json +1 -1
|
@@ -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;
|
package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts
CHANGED
|
@@ -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;
|
|
@@ -22,7 +22,12 @@ export declare class PlaceComponent extends DisposableComponent {
|
|
|
22
22
|
initialiseVisit(visit: Visit, notifyVisitChanged: (current: Visit, previous: Visit) => void): void;
|
|
23
23
|
updateVisit(visit: Visit): void;
|
|
24
24
|
isInitialised(): boolean;
|
|
25
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Initialised the component bindings. If any binding has an initial model value (e.g. a selection model
|
|
27
|
+
* initialised during the constructor) and the route has nothing, then the visit will be udpated and this
|
|
28
|
+
* method will return ture to nofiy the the visit has changed.
|
|
29
|
+
*/
|
|
30
|
+
private installAndInitialiseBinding;
|
|
26
31
|
get placeDefinition(): PlaceDefinition;
|
|
27
32
|
get active(): ValueModel<boolean>;
|
|
28
33
|
/**
|