rd-outer-component 0.1.21 → 0.1.23

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.
@@ -0,0 +1,2 @@
1
+ export * from './rd-common-box.component';
2
+ export * from './rd-common-box.module';
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class RdCommonBoxComponent {
3
+ label: string;
4
+ value: any;
5
+ rightContent: boolean;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<RdCommonBoxComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<RdCommonBoxComponent, "app-rd-box-item", never, { "label": "label"; "value": "value"; "rightContent": "rightContent"; }, {}, never, ["[left]", "[right]"], false, never>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./rd-common-box.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class RdCommonBoxModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<RdCommonBoxModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RdCommonBoxModule, [typeof i1.RdCommonBoxComponent], [typeof i2.CommonModule], [typeof i1.RdCommonBoxComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<RdCommonBoxModule>;
8
+ }
@@ -1,3 +1,3 @@
1
1
  export * from './notification.component';
2
- export * from './notification.module';
3
2
  export * from './notification.service';
3
+ export * from './notification.module';
@@ -1,18 +1,16 @@
1
1
  import { OnDestroy } from '@angular/core';
2
2
  import { NzNotificationService } from 'ng-zorro-antd/notification';
3
- import { DomSanitizer } from '@angular/platform-browser';
4
- import { IData } from './notification.service';
3
+ import { IRdNotificationData } from './notification.service';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class RdNotificationComponent implements OnDestroy {
7
6
  private notificationService;
8
- private sanitizer;
9
7
  private notificationTpl;
10
8
  private closeTpl;
11
9
  private notifications;
12
- constructor(notificationService: NzNotificationService, sanitizer: DomSanitizer);
13
- showNotification(data: IData): void;
14
- getDesc(desc: string): import("@angular/platform-browser").SafeHtml;
15
- onClick(data: IData): void;
10
+ constructor(notificationService: NzNotificationService);
11
+ showNotification(data: IRdNotificationData): void;
12
+ getDesc(desc: string): string;
13
+ onClick(data: IRdNotificationData): void;
16
14
  private generateId;
17
15
  ngOnDestroy(): void;
18
16
  static ɵfac: i0.ɵɵFactoryDeclaration<RdNotificationComponent, never>;
@@ -1,13 +1,16 @@
1
1
  import { Injector, OnDestroy, EnvironmentInjector } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export interface IData {
3
+ export interface IRdNotificationData {
4
4
  title?: string;
5
5
  desc?: string;
6
6
  actionDesc?: string;
7
7
  duration?: number;
8
+ originType?: 'normal' | 'bpn';
8
9
  type: 'success' | 'warn' | 'error';
9
10
  onLinkClick?: () => void;
10
11
  }
12
+ /** @deprecated Use IRdNotificationData */
13
+ export type IData = IRdNotificationData;
11
14
  export declare class RdNotificationService implements OnDestroy {
12
15
  private injector;
13
16
  private environmentInjector;
@@ -16,9 +19,9 @@ export declare class RdNotificationService implements OnDestroy {
16
19
  private isCreating;
17
20
  constructor(injector: Injector, environmentInjector: EnvironmentInjector);
18
21
  private ensureComponentCreated;
19
- show(data: IData): Promise<void>;
22
+ show(data: IRdNotificationData): Promise<void>;
20
23
  ngOnDestroy(): void;
21
- static show(data: IData): void;
24
+ static show(data: IRdNotificationData): void;
22
25
  private static getInstance;
23
26
  static ɵfac: i0.ɵɵFactoryDeclaration<RdNotificationService, never>;
24
27
  static ɵprov: i0.ɵɵInjectableDeclaration<RdNotificationService>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rd-outer-component",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "15.2.10",
6
6
  "@angular/core": "15.2.10",
package/public-api.d.ts CHANGED
@@ -10,6 +10,7 @@ export * from './lib/modules/custom-pagination';
10
10
  export * from './lib/modules/status-field';
11
11
  export * from './lib/modules/header-step';
12
12
  export * from './lib/modules/rd-notification';
13
+ export * from './lib/modules/rd-common-box';
13
14
  export * from './lib/modules/task-base';
14
15
  export * from './lib/modules/rd-button';
15
16
  export * from './lib/modules/rd-loading';