@coolon/angular-ui-powerups 13.0.4 → 13.1.1

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 (21) hide show
  1. package/esm2020/lib/components/commands/command/command.component.mjs +1 -1
  2. package/esm2020/lib/components/commands/command-face.mjs +1 -1
  3. package/esm2020/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +1 -1
  4. package/esm2020/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +1 -1
  5. package/esm2020/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +1 -1
  6. package/esm2020/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +1 -1
  7. package/esm2020/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +27 -4
  8. package/esm2020/lib/interaction/in-place-interaction-context.mjs +1 -1
  9. package/esm2020/lib/interaction/services/interaction.service.mjs +11 -11
  10. package/esm2020/lib/place/place-router.mjs +6 -2
  11. package/esm2020/lib/place/url-snapshot.mjs +2 -2
  12. package/fesm2015/coolon-angular-ui-powerups.mjs +46 -14
  13. package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
  14. package/fesm2020/coolon-angular-ui-powerups.mjs +41 -14
  15. package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
  16. package/lib/components/commands/command/command.component.d.ts +1 -1
  17. package/lib/components/commands/command-face.d.ts +4 -5
  18. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +8 -2
  19. package/lib/interaction/in-place-interaction-context.d.ts +1 -1
  20. package/lib/interaction/services/interaction.service.d.ts +5 -5
  21. package/package.json +6 -2
@@ -18,7 +18,7 @@ export declare class CommandComponent extends PopupAwareComponent implements OnI
18
18
  alignFace: HorizontalAlignment;
19
19
  readonly faces$: ListModelChain<CommandFace>;
20
20
  readonly buttonStyle$: ValueModelChain<string>;
21
- readonly color$: ValueModelChain<'primary' | 'accent' | 'warn' | undefined>;
21
+ readonly color$: ValueModelChain<string>;
22
22
  private activeFace$;
23
23
  readonly iconOnly$: BooleanValueModelChain;
24
24
  readonly tooltip$: ValueModelChain<string>;
@@ -1,4 +1,3 @@
1
- import { ThemePalette } from '@angular/material/core';
2
1
  import { Enum } from 'typescript-string-enums';
3
2
  export interface CommandFace {
4
3
  text?(): string;
@@ -19,8 +18,8 @@ export declare namespace CommandFace {
19
18
  RAISED: "raised";
20
19
  };
21
20
  type Style = Enum<typeof Style>;
22
- function getColorOf(face: CommandFace): ThemePalette;
23
- function getStyleOf(face: CommandFace): Style;
21
+ function getColorOf(face: CommandFace): string;
22
+ function getStyleOf(face: CommandFace): string;
24
23
  function getIconOf(face: CommandFace): string;
25
24
  function getIconPositionOf(face: CommandFace): string;
26
25
  function getTooltipOf(face: CommandFace): string;
@@ -34,7 +33,7 @@ export declare namespace CommandFace {
34
33
  get tooltip(): string;
35
34
  get iconPositionStart(): boolean;
36
35
  get iconPositionEnd(): boolean;
37
- get color(): ThemePalette;
38
- get style(): Style;
36
+ get color(): string;
37
+ get style(): string;
39
38
  }
40
39
  }
@@ -30,11 +30,17 @@ export declare class InPlaceInteractionContextComponent<D, R, E> extends Disposa
30
30
  * the activity will replace the existing content immediately.
31
31
  */
32
32
  animateFirstActivity: boolean;
33
+ /**
34
+ * If true the activity will sync with the router to enable back button support. This is a work around for
35
+ * deeply nested activities that can't be linked with the root place interactionContext hook for cancelling
36
+ * active interactions.
37
+ */
38
+ syncWithRoutes: boolean;
33
39
  get animationDuration(): string;
34
40
  get active(): boolean;
35
41
  constructor(interactionService: InteractionService, tabConfig: MatTabsConfig);
36
42
  ngAfterViewInit(): void;
37
- initialise(id: string, api: InteractionService.Api): void;
43
+ onInplaceInteractionContextRegistered(id: string, api: InteractionService.Api): void;
38
44
  get identifier(): string;
39
45
  alert(alert: Alert): Promise<void>;
40
46
  cancelActiveActivity(): Promise<boolean>;
@@ -45,5 +51,5 @@ export declare class InPlaceInteractionContextComponent<D, R, E> extends Disposa
45
51
  isActive(): boolean;
46
52
  startActivity<D1, R1, E1>(activityType: Constructable<Activity<D1, R1, E1>>, data?: D1, options?: InteractionContext.Options): Promise<R1>;
47
53
  static ɵfac: i0.ɵɵFactoryDeclaration<InPlaceInteractionContextComponent<any, any, any>, [null, { optional: true; }]>;
48
- static ɵcmp: i0.ɵɵComponentDeclaration<InPlaceInteractionContextComponent<any, any, any>, "aup-in-place-interaction-context", never, { "animateFirstActivity": "animateFirstActivity"; }, {}, never, ["*"]>;
54
+ static ɵcmp: i0.ɵɵComponentDeclaration<InPlaceInteractionContextComponent<any, any, any>, "aup-in-place-interaction-context", never, { "animateFirstActivity": "animateFirstActivity"; "syncWithRoutes": "syncWithRoutes"; }, {}, never, ["*"]>;
49
55
  }
@@ -1,5 +1,5 @@
1
1
  import { InteractionContext } from './interaction-context';
2
2
  import { InteractionService } from './services/interaction.service';
3
3
  export interface InPlaceInteractionContext extends InteractionContext {
4
- initialise(id: string, api: InteractionService.Api): any;
4
+ onInplaceInteractionContextRegistered(id: string, api: InteractionService.Api): any;
5
5
  }
@@ -1,9 +1,9 @@
1
- import { BooleanValueModelChain, Disposable, GarbageCollector, ListModel, ListModelChain, ValueModel } from '@coolon/pectin';
2
- import { PlaceRouter } from '../../place/place-router';
1
+ import { BooleanValueModelChain, Disposable, GarbageCollector, ListModel, ListModelChain, ValueModel } from "@coolon/pectin";
2
+ import { PlaceRouter } from "../../place/place-router";
3
3
  import { InPlaceInteractionContext } from "../in-place-interaction-context";
4
- import { InteractionContext } from '../interaction-context';
5
- import { InteractionServiceRoutingAdapter } from './interaction-service-routing-adapter';
6
- import { ModalInteractionContextFactory } from './modal-interaction-context.factory';
4
+ import { InteractionContext } from "../interaction-context";
5
+ import { InteractionServiceRoutingAdapter } from "./interaction-service-routing-adapter";
6
+ import { ModalInteractionContextFactory } from "./modal-interaction-context.factory";
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class InteractionService {
9
9
  readonly modelInteractionContextFactory: ModalInteractionContextFactory;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "13.0.4",
3
+ "version": "13.1.1",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^13.2.3",
@@ -9,7 +9,7 @@
9
9
  "@angular/forms": "^13.2.3",
10
10
  "@angular/material": "^13.2.3",
11
11
  "@angular/router": "^13.2.3",
12
- "@coolon/pectin": "^3.16.4",
12
+ "@coolon/pectin": "^3.16.8",
13
13
  "@coolon/typescript-utilities": "^2.4.1",
14
14
  "@fortawesome/angular-fontawesome": "^0.10.1",
15
15
  "@fortawesome/fontawesome-free": "^6.0.0",
@@ -23,6 +23,10 @@
23
23
  "typescript-string-enums": "^1.0.0",
24
24
  "json5": "^2.1.0",
25
25
  "immer": ">=7.0.15",
26
+ "rxjs": "~6.6.0",
27
+ "@types/circular-json": "^0.4.0",
28
+ "circular-json": "^0.5.9",
29
+ "lodash-es": "^4.17.21",
26
30
  "string": "^3.3.3",
27
31
  "inflected": "^2.1.0",
28
32
  "typescript-memoize": "^1.0.1",