@abp/ng.theme.shared 5.1.4 → 5.2.0-rc.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 (26) hide show
  1. package/esm2020/extensions/lib/components/extensible-table/extensible-table.component.mjs +7 -6
  2. package/esm2020/extensions/lib/tokens/extensions.token.mjs +4 -1
  3. package/esm2020/lib/components/button/button.component.mjs +7 -2
  4. package/esm2020/lib/components/confirmation/confirmation.component.mjs +25 -19
  5. package/esm2020/lib/models/common.mjs +1 -1
  6. package/esm2020/lib/models/confirmation.mjs +1 -1
  7. package/esm2020/lib/services/confirmation.service.mjs +2 -2
  8. package/esm2020/lib/theme-shared.module.mjs +11 -3
  9. package/esm2020/lib/tokens/confirmation-icons.token.mjs +10 -0
  10. package/extensions/lib/components/extensible-table/extensible-table.component.d.ts +2 -0
  11. package/extensions/lib/tokens/extensions.token.d.ts +7 -0
  12. package/fesm2015/abp-ng.theme.shared-extensions.mjs +10 -6
  13. package/fesm2015/abp-ng.theme.shared-extensions.mjs.map +1 -1
  14. package/fesm2015/abp-ng.theme.shared.mjs +47 -22
  15. package/fesm2015/abp-ng.theme.shared.mjs.map +1 -1
  16. package/fesm2020/abp-ng.theme.shared-extensions.mjs +10 -6
  17. package/fesm2020/abp-ng.theme.shared-extensions.mjs.map +1 -1
  18. package/fesm2020/abp-ng.theme.shared.mjs +48 -22
  19. package/fesm2020/abp-ng.theme.shared.mjs.map +1 -1
  20. package/lib/components/button/button.component.d.ts +2 -1
  21. package/lib/components/confirmation/confirmation.component.d.ts +6 -1
  22. package/lib/models/common.d.ts +3 -1
  23. package/lib/models/confirmation.d.ts +2 -0
  24. package/lib/theme-shared.module.d.ts +1 -1
  25. package/lib/tokens/confirmation-icons.token.d.ts +10 -0
  26. package/package.json +2 -2
@@ -6,6 +6,7 @@ export declare class ButtonComponent implements OnInit {
6
6
  buttonId: string;
7
7
  buttonClass: string;
8
8
  buttonType: string;
9
+ formName?: string;
9
10
  iconClass?: string;
10
11
  loading: boolean;
11
12
  disabled: boolean | undefined;
@@ -21,5 +22,5 @@ export declare class ButtonComponent implements OnInit {
21
22
  constructor(renderer: Renderer2);
22
23
  ngOnInit(): void;
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "abp-button", never, { "buttonId": "buttonId"; "buttonClass": "buttonClass"; "buttonType": "buttonType"; "iconClass": "iconClass"; "loading": "loading"; "disabled": "disabled"; "attributes": "attributes"; }, { "click": "click"; "focus": "focus"; "blur": "blur"; "abpClick": "abpClick"; "abpFocus": "abpFocus"; "abpBlur": "abpBlur"; }, never, ["*"]>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "abp-button", never, { "buttonId": "buttonId"; "buttonClass": "buttonClass"; "buttonType": "buttonType"; "formName": "formName"; "iconClass": "iconClass"; "loading": "loading"; "disabled": "disabled"; "attributes": "attributes"; }, { "click": "click"; "focus": "focus"; "blur": "blur"; "abpClick": "abpClick"; "abpFocus": "abpFocus"; "abpBlur": "abpBlur"; }, never, ["*"]>;
25
26
  }
@@ -1,14 +1,19 @@
1
1
  import { ReplaySubject } from 'rxjs';
2
2
  import { Confirmation } from '../../models/confirmation';
3
+ import { ConfirmationIcons } from '../../tokens/confirmation-icons.token';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class ConfirmationComponent {
6
+ private icons;
7
+ constructor(icons: ConfirmationIcons);
5
8
  confirm: Confirmation.Status;
6
9
  reject: Confirmation.Status;
7
10
  dismiss: Confirmation.Status;
8
11
  confirmation$: ReplaySubject<Confirmation.DialogData>;
9
12
  clear: (status: Confirmation.Status) => void;
10
13
  close(status: Confirmation.Status): void;
11
- getIconClass({ severity }: Confirmation.DialogData): string;
14
+ getIconClass({ severity, options }: Confirmation.DialogData): string;
15
+ isCustomIconExists({ options }: Confirmation.DialogData): boolean;
16
+ isIconTemplateExits({ options }: Confirmation.DialogData): boolean;
12
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationComponent, never>;
13
18
  static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationComponent, "abp-confirmation", never, {}, {}, never, never>;
14
19
  }
@@ -2,9 +2,11 @@ import { HttpErrorResponse } from '@angular/common/http';
2
2
  import { Injector, Type } from '@angular/core';
3
3
  import { Validation } from '@ngx-validate/core';
4
4
  import { Observable } from 'rxjs';
5
+ import { ConfirmationIcons } from '../tokens/confirmation-icons.token';
5
6
  export interface RootParams {
6
- httpErrorConfig: HttpErrorConfig;
7
+ httpErrorConfig?: HttpErrorConfig;
7
8
  validation?: Partial<Validation.Config>;
9
+ confirmationIcons?: Partial<ConfirmationIcons>;
8
10
  }
9
11
  export declare type ErrorScreenErrorCodes = 401 | 403 | 404 | 500;
10
12
  export interface HttpErrorConfig {
@@ -9,6 +9,8 @@ export declare namespace Confirmation {
9
9
  hideYesBtn?: boolean;
10
10
  cancelText?: LocalizationParam;
11
11
  yesText?: LocalizationParam;
12
+ icon?: string;
13
+ iconTemplate?: string;
12
14
  }
13
15
  interface DialogData {
14
16
  message: LocalizationParam;
@@ -26,7 +26,7 @@ export declare class BaseThemeSharedModule {
26
26
  static ɵinj: i0.ɵɵInjectorDeclaration<BaseThemeSharedModule>;
27
27
  }
28
28
  export declare class ThemeSharedModule {
29
- static forRoot({ httpErrorConfig, validation }?: RootParams): ModuleWithProviders<ThemeSharedModule>;
29
+ static forRoot({ httpErrorConfig, validation, confirmationIcons }?: RootParams): ModuleWithProviders<ThemeSharedModule>;
30
30
  static ɵfac: i0.ɵɵFactoryDeclaration<ThemeSharedModule, never>;
31
31
  static ɵmod: i0.ɵɵNgModuleDeclaration<ThemeSharedModule, never, [typeof BaseThemeSharedModule], [typeof BaseThemeSharedModule]>;
32
32
  static ɵinj: i0.ɵɵInjectorDeclaration<ThemeSharedModule>;
@@ -0,0 +1,10 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export interface ConfirmationIcons {
3
+ info: string;
4
+ success: string;
5
+ warning: string;
6
+ error: string;
7
+ default: string;
8
+ }
9
+ export declare const CONFIRMATION_ICONS: InjectionToken<Partial<ConfirmationIcons>>;
10
+ export declare const DEFAULT_CONFIRMATION_ICONS: ConfirmationIcons;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@abp/ng.theme.shared",
3
- "version": "5.1.4",
3
+ "version": "5.2.0-rc.1",
4
4
  "homepage": "https://abp.io",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/abpframework/abp.git"
8
8
  },
9
9
  "dependencies": {
10
- "@abp/ng.core": "~5.1.4",
10
+ "@abp/ng.core": "~5.2.0-rc.1",
11
11
  "@fortawesome/fontawesome-free": "^5.15.4",
12
12
  "@ng-bootstrap/ng-bootstrap": "~12.0.0-beta.4",
13
13
  "@ngx-validate/core": "^0.1.1",