myrta-ui 17.0.0-beta.10 → 17.0.0-beta.12

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.
@@ -1,18 +1,25 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { LinkSizesTypes, LinkTargetTypes, LinkTypes } from './link.enum';
3
+ import { Router } from '@angular/router';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class LinkComponent {
5
- type: LinkTypes;
6
+ private _router;
7
+ href: string;
6
8
  target: LinkTargetTypes;
9
+ routerLink?: string;
10
+ queryParams?: {
11
+ [key: string]: string;
12
+ };
13
+ type: LinkTypes;
7
14
  monochrome: boolean;
8
15
  customClasses: string;
9
- href: string;
10
16
  prevent: boolean;
11
17
  size: LinkSizesTypes;
12
18
  clicked: EventEmitter<MouseEvent>;
19
+ constructor(_router: Router);
13
20
  get getClasses(): string;
14
21
  get getTarget(): string;
15
22
  onClick(event: any): void;
16
23
  static ɵfac: i0.ɵɵFactoryDeclaration<LinkComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<LinkComponent, "mrx-link", never, { "type": { "alias": "type"; "required": false; }; "target": { "alias": "target"; "required": false; }; "monochrome": { "alias": "monochrome"; "required": false; }; "customClasses": { "alias": "customClasses"; "required": false; }; "href": { "alias": "href"; "required": false; }; "prevent": { "alias": "prevent"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "clicked": "clicked"; }, never, ["*"], false, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<LinkComponent, "mrx-link", never, { "href": { "alias": "href"; "required": false; }; "target": { "alias": "target"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; "queryParams": { "alias": "queryParams"; "required": false; }; "type": { "alias": "type"; "required": false; }; "monochrome": { "alias": "monochrome"; "required": false; }; "customClasses": { "alias": "customClasses"; "required": false; }; "prevent": { "alias": "prevent"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "clicked": "clicked"; }, never, ["*"], false, never>;
18
25
  }
@@ -1,8 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./link.component";
3
3
  import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/router";
4
5
  export declare class LinkModule {
5
6
  static ɵfac: i0.ɵɵFactoryDeclaration<LinkModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<LinkModule, [typeof i1.LinkComponent], [typeof i2.CommonModule], [typeof i1.LinkComponent]>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LinkModule, [typeof i1.LinkComponent], [typeof i2.CommonModule, typeof i3.RouterModule], [typeof i1.LinkComponent]>;
7
8
  static ɵinj: i0.ɵɵInjectorDeclaration<LinkModule>;
8
9
  }
@@ -8,3 +8,6 @@ export * from './modal-service/modal-service.module';
8
8
  export * from './modal-service/models/modal-config.model';
9
9
  export * from './modal-service/modal-service.service';
10
10
  export * from './modal-service/helpers';
11
+ export * from './toaster-service/toaster-service.module';
12
+ export * from './toaster-service/toaster-service.service';
13
+ export * from './toaster-service/models/toaster.model';
@@ -0,0 +1,10 @@
1
+ import { Toast, ToastPackage, ToastrService } from 'ngx-toastr';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ToasterComponent extends Toast {
4
+ protected toastrService: ToastrService;
5
+ toastPackage: ToastPackage;
6
+ constructor(toastrService: ToastrService, toastPackage: ToastPackage);
7
+ action(event: Event): boolean;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToasterComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToasterComponent, "mrx-toaster", never, {}, {}, never, never, false, never>;
10
+ }
@@ -0,0 +1,12 @@
1
+ export declare enum ToasterType {
2
+ Info = "info",
3
+ Positive = "positive",
4
+ Negative = "negative",
5
+ Attention = "attention"
6
+ }
7
+ export declare enum ToasterPosition {
8
+ TopRight = "toast-top-right",
9
+ BottomRight = "toast-bottom-right",
10
+ TopLeft = "toast-top-left",
11
+ BottomLeft = "toast-bottom-left"
12
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/toaster/toaster.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "ngx-toastr";
5
+ import * as i4 from "../../pipes/safe/safe.module";
6
+ export declare class ToasterServiceModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToasterServiceModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ToasterServiceModule, [typeof i1.ToasterComponent], [typeof i2.CommonModule, typeof i3.ToastrModule, typeof i4.SafeModule], never>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<ToasterServiceModule>;
10
+ }
@@ -0,0 +1,15 @@
1
+ import { ToastrService } from 'ngx-toastr';
2
+ import { ToasterType } from './models/toaster.model';
3
+ import { IndividualConfig } from 'ngx-toastr/toastr/toastr-config';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ToasterService {
6
+ private _toasterService;
7
+ constructor(_toasterService: ToastrService);
8
+ show(data: {
9
+ title?: string;
10
+ message?: string;
11
+ type?: ToasterType;
12
+ }, customConfig?: Partial<IndividualConfig>): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToasterService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<ToasterService>;
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myrta-ui",
3
- "version": "17.0.0-beta.10",
3
+ "version": "17.0.0-beta.12",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0",