@coolon/angular-ui-powerups 12.4.0-alpha.76 → 12.4.0-alpha.78

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 (52) hide show
  1. package/assets/markdown.scss +10 -0
  2. package/assets/styles.scss +1 -0
  3. package/bundles/coolon-angular-ui-powerups.umd.js +107 -140
  4. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  5. package/coolon-angular-ui-powerups.metadata.json +1 -1
  6. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  7. package/esm2015/lib/components/forms/select-input/select-input.component.js +2 -2
  8. package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
  9. package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
  10. package/esm2015/lib/components/text/markdown/markdown.component.js +12 -7
  11. package/esm2015/lib/components/text/markdown/markdown.component.js.map +1 -1
  12. package/esm2015/lib/components/text/markdown/markdown.component.metadata.json +1 -1
  13. package/esm2015/lib/interaction/activity.js +1 -1
  14. package/esm2015/lib/interaction/activity.js.map +1 -1
  15. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js +23 -0
  16. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.js.map +1 -0
  17. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.metadata.json +1 -0
  18. package/esm2015/lib/interaction/components/abstract-confirm-dialog.component.ngfactory.js.map +1 -0
  19. package/esm2015/lib/interaction/components/abstract-dialog.component.js +52 -0
  20. package/esm2015/lib/interaction/components/abstract-dialog.component.js.map +1 -0
  21. package/esm2015/lib/interaction/components/abstract-dialog.component.metadata.json +1 -0
  22. package/esm2015/lib/interaction/components/abstract-dialog.component.ngfactory.js.map +1 -0
  23. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +4 -17
  24. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
  25. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.metadata.json +1 -1
  26. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +6 -34
  27. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
  28. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.metadata.json +1 -1
  29. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js +5 -31
  30. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.js.map +1 -1
  31. package/esm2015/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.metadata.json +1 -1
  32. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +5 -29
  33. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
  34. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.metadata.json +1 -1
  35. package/esm2015/lib/interaction/exports.js +2 -0
  36. package/esm2015/lib/interaction/exports.js.map +1 -1
  37. package/esm2015/lib/interaction/exports.metadata.json +1 -1
  38. package/esm2015/lib/interaction/interaction.module.js +5 -1
  39. package/esm2015/lib/interaction/interaction.module.js.map +1 -1
  40. package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
  41. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  42. package/fesm2015/coolon-angular-ui-powerups.js +93 -112
  43. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  44. package/lib/components/text/markdown/markdown.component.d.ts +1 -0
  45. package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +7 -0
  46. package/lib/interaction/components/abstract-dialog.component.d.ts +17 -0
  47. package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +2 -11
  48. package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +2 -13
  49. package/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.d.ts +2 -12
  50. package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +2 -12
  51. package/lib/interaction/exports.d.ts +2 -0
  52. package/package.json +1 -1
@@ -10,4 +10,5 @@ export declare class MarkdownComponent extends DisposableComponent implements On
10
10
  inline: boolean;
11
11
  constructor(element: ElementRef, markdownService: MarkdownService);
12
12
  ngOnInit(): void;
13
+ private renderContent;
13
14
  }
@@ -0,0 +1,7 @@
1
+ import { CommandFace } from '../../components/commands/command-face';
2
+ import { Confirm } from '../confirm';
3
+ import { AbstractDialogComponent } from './abstract-dialog.component';
4
+ export declare class AbstractConfirmDialogComponent<D, R, E = any> extends AbstractDialogComponent<D, R, E> {
5
+ readonly cancelFace: CommandFace;
6
+ constructor(config: Confirm);
7
+ }
@@ -0,0 +1,17 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { CommandFace } from '../../components/commands/command-face';
3
+ import { Activity } from '../activity';
4
+ import { Alert } from '../alert';
5
+ import { Confirm } from '../confirm';
6
+ export declare const ALERT_CONFIG: InjectionToken<any>;
7
+ export declare class AbstractDialogComponent<D, R, E = any> extends Activity<D, R, E> {
8
+ protected readonly config: Alert | Confirm;
9
+ readonly confirmFace: CommandFace;
10
+ readonly title: string;
11
+ readonly content: string[];
12
+ readonly color?: 'primary' | 'accent' | 'warn';
13
+ constructor(config: Alert | Confirm);
14
+ getConfig(): Alert | Confirm;
15
+ protected checkColor(rawColor: string): 'primary' | 'accent' | 'warn';
16
+ isDestructive(): boolean;
17
+ }
@@ -1,14 +1,5 @@
1
- import { OnInit } from '@angular/core';
2
- import { CommandFace } from '../../../components/commands/command-face';
3
- import { Activity } from '../../activity';
4
1
  import { Alert } from '../../alert';
5
- export declare class AlertDialogComponent extends Activity<Alert, void> implements OnInit {
6
- readonly alert: Alert;
7
- readonly confirmFace: CommandFace;
8
- readonly title: string;
9
- readonly content: string[];
10
- readonly color?: 'primary' | 'accent' | 'warn';
2
+ import { AbstractDialogComponent } from '../abstract-dialog.component';
3
+ export declare class AlertDialogComponent extends AbstractDialogComponent<Alert, void> {
11
4
  constructor(alert: Alert);
12
- isContentArray(): void;
13
- ngOnInit(): void;
14
5
  }
@@ -1,20 +1,9 @@
1
- import { OnInit } from '@angular/core';
2
1
  import { Constructable } from '@coolon/pectin';
3
- import { CommandFace } from '../../../components/commands/command-face';
4
2
  import { Activity } from '../../activity';
5
3
  import { Confirm } from '../../confirm';
6
- export declare class ConfirmThenDialogComponent<D, R, E> extends Activity<ConfirmThenDialogComponent.Data<D, R, E>, R, E> implements OnInit {
7
- readonly config: ConfirmThenDialogComponent.Data<D, R, E>;
8
- readonly confirmFace: CommandFace;
9
- readonly cancelFace: CommandFace;
10
- readonly title: string;
11
- readonly color: 'primary' | 'accent' | 'warn';
12
- readonly content: string[];
4
+ import { AbstractConfirmDialogComponent } from '../abstract-confirm-dialog.component';
5
+ export declare class ConfirmThenDialogComponent<D, R, E> extends AbstractConfirmDialogComponent<ConfirmThenDialogComponent.Data<D, R, E>, R, E> {
13
6
  constructor(config: ConfirmThenDialogComponent.Data<D, R, E>);
14
- ngOnInit(): void;
15
- get confirm(): Confirm;
16
- get titleColor(): string;
17
- isDestructive(): boolean;
18
7
  }
19
8
  export declare namespace ConfirmThenDialogComponent {
20
9
  interface Data<D, R, E> {
@@ -1,18 +1,8 @@
1
- import { CommandFace } from '../../../components/commands/command-face';
2
- import { Activity } from '../../activity';
3
1
  import { Confirm } from '../../confirm';
4
2
  import { InteractionContext } from '../../interaction-context';
5
- export declare class ConfirmThenExecuteDialogComponent<R, E> extends Activity<ConfirmThenExecuteDialogComponent.Data<R, E>, R, E> {
6
- readonly data: ConfirmThenExecuteDialogComponent.Data<R, E>;
7
- readonly confirmFace: CommandFace;
8
- readonly cancelFace: CommandFace;
9
- readonly title: string;
10
- readonly color: 'primary' | 'accent' | 'warn';
11
- readonly content: string[];
3
+ import { AbstractConfirmDialogComponent } from '../abstract-confirm-dialog.component';
4
+ export declare class ConfirmThenExecuteDialogComponent<R, E> extends AbstractConfirmDialogComponent<ConfirmThenExecuteDialogComponent.Data<R, E>, R, E> {
12
5
  constructor(data: ConfirmThenExecuteDialogComponent.Data<R, E>);
13
- get confirm(): Confirm;
14
- get titleColor(): string;
15
- isDestructive(): boolean;
16
6
  }
17
7
  export declare namespace ConfirmThenExecuteDialogComponent {
18
8
  interface Data<R, E> {
@@ -1,16 +1,6 @@
1
- import { OnInit } from '@angular/core';
2
- import { CommandFace } from '../../../components/commands/command-face';
3
- import { Activity } from '../../activity';
4
1
  import { Confirm } from '../../confirm';
5
- export declare class ConfirmationDialogComponent extends Activity<Confirm, void> implements OnInit {
2
+ import { AbstractConfirmDialogComponent } from '../abstract-confirm-dialog.component';
3
+ export declare class ConfirmationDialogComponent extends AbstractConfirmDialogComponent<Confirm, void> {
6
4
  readonly confirm: Confirm;
7
- readonly confirmFace: CommandFace;
8
- readonly cancelFace: CommandFace;
9
- readonly title: string;
10
- readonly color: 'primary' | 'accent' | 'warn';
11
- readonly content: string[];
12
5
  constructor(confirm: Confirm);
13
- ngOnInit(): void;
14
- get titleColor(): string;
15
- isDestructive(): boolean;
16
6
  }
@@ -9,6 +9,8 @@ export * from "./confirm";
9
9
  export * from "./interaction-context";
10
10
  export * from "./interaction.module";
11
11
  export * from "./route-synchronisation-adapter";
12
+ export * from "./components/abstract-confirm-dialog.component";
13
+ export * from "./components/abstract-dialog.component";
12
14
  export * from "./components/activity-actions/activity-actions.component";
13
15
  export * from "./components/activity-body/activity-body.component";
14
16
  export * from "./components/activity-container/activity-container.component";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "12.4.0-alpha.76",
3
+ "version": "12.4.0-alpha.78",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "@coolon/typescript-utilities": "^2.3.0",