@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.
Files changed (33) hide show
  1. package/assets/interaction/editor/inline-string-editor.scss +4 -1
  2. package/bundles/coolon-angular-ui-powerups-cypress.umd.js +23 -9
  3. package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.js +67 -13
  5. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  6. package/coolon-angular-ui-powerups.metadata.json +1 -1
  7. package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
  8. package/cypress/package.json +1 -1
  9. package/cypress/page.d.ts +3 -0
  10. package/esm2015/cypress/page.js +23 -9
  11. package/esm2015/cypress/page.js.map +1 -1
  12. package/esm2015/cypress/page.metadata.json +1 -1
  13. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +18 -2
  14. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +1 -1
  15. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +1 -1
  16. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +6 -4
  17. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +1 -1
  18. package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.metadata.json +1 -1
  19. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  20. package/esm2015/lib/place/place-component.js +31 -4
  21. package/esm2015/lib/place/place-component.js.map +1 -1
  22. package/esm2015/lib/place/place-component.metadata.json +1 -1
  23. package/esm2015/lib/place/visit.js +5 -1
  24. package/esm2015/lib/place/visit.js.map +1 -1
  25. package/esm2015/lib/place/visit.metadata.json +1 -1
  26. package/fesm2015/coolon-angular-ui-powerups-cypress.js +23 -9
  27. package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
  28. package/fesm2015/coolon-angular-ui-powerups.js +57 -9
  29. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  30. package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +6 -2
  31. package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +2 -1
  32. package/lib/place/place-component.d.ts +6 -1
  33. 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;
@@ -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
- private installBinding;
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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "12.4.0-alpha.32",
3
+ "version": "12.4.0-alpha.34",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "@coolon/typescript-utilities": "^2.2.0",