@datarailsshared/datarailsshared 1.6.322 → 1.6.324
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.
- package/datarailsshared-datarailsshared-1.6.324.tgz +0 -0
- package/esm2022/lib/dr-toastr/default-toastr/default-toastr.component.mjs +43 -13
- package/esm2022/lib/dr-toastr/dr-toastr.module.mjs +6 -4
- package/esm2022/lib/dr-toastr/dr-toastr.service.mjs +11 -10
- package/esm2022/lib/models/toastr.mjs +1 -1
- package/fesm2022/datarailsshared-datarailsshared.mjs +55 -24
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/dr-toastr/default-toastr/default-toastr.component.d.ts +1 -1
- package/lib/dr-toastr/dr-toastr.module.d.ts +3 -3
- package/lib/dr-toastr/dr-toastr.service.d.ts +5 -4
- package/lib/models/toastr.d.ts +10 -0
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.6.322.tgz +0 -0
|
Binary file
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, HostBinding } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
2
3
|
import { Toast, ToastPackage, ToastrService } from 'ngx-toastr';
|
|
3
4
|
import { ToastrStatus, ToastrStatusIcon } from '../../models/toastr';
|
|
5
|
+
import { DrButtonComponent } from '../../dr-inputs/button/button.component';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
import * as i1 from "ngx-toastr";
|
|
6
8
|
import * as i2 from "@angular/common";
|
|
7
|
-
function
|
|
8
|
-
i0.ɵɵelementStart(0, "div",
|
|
9
|
+
function DefaultToastrComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
10
|
+
i0.ɵɵelementStart(0, "div", 10);
|
|
9
11
|
i0.ɵɵtext(1);
|
|
10
12
|
i0.ɵɵelementEnd();
|
|
11
13
|
} if (rf & 2) {
|
|
@@ -13,12 +15,33 @@ function DefaultToastrComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
13
15
|
i0.ɵɵadvance(1);
|
|
14
16
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.data.message, " ");
|
|
15
17
|
} }
|
|
16
|
-
function
|
|
17
|
-
i0.ɵɵelement(0, "div",
|
|
18
|
+
function DefaultToastrComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
19
|
+
i0.ɵɵelement(0, "div", 11);
|
|
18
20
|
} if (rf & 2) {
|
|
19
21
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
20
22
|
i0.ɵɵproperty("innerHTML", ctx_r2.data.message, i0.ɵɵsanitizeHtml);
|
|
21
23
|
} }
|
|
24
|
+
function DefaultToastrComponent_div_10_dr_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
26
|
+
i0.ɵɵelementStart(0, "dr-button", 14);
|
|
27
|
+
i0.ɵɵlistener("click", function DefaultToastrComponent_div_10_dr_button_1_Template_dr_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r7); const actionItem_r5 = restoredCtx.$implicit; return i0.ɵɵresetView(actionItem_r5.onAction()); });
|
|
28
|
+
i0.ɵɵtext(1);
|
|
29
|
+
i0.ɵɵelementEnd();
|
|
30
|
+
} if (rf & 2) {
|
|
31
|
+
const actionItem_r5 = ctx.$implicit;
|
|
32
|
+
i0.ɵɵproperty("theme", actionItem_r5.theme);
|
|
33
|
+
i0.ɵɵadvance(1);
|
|
34
|
+
i0.ɵɵtextInterpolate1(" ", actionItem_r5.label, " ");
|
|
35
|
+
} }
|
|
36
|
+
function DefaultToastrComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
37
|
+
i0.ɵɵelementStart(0, "div", 12);
|
|
38
|
+
i0.ɵɵtemplate(1, DefaultToastrComponent_div_10_dr_button_1_Template, 2, 2, "dr-button", 13);
|
|
39
|
+
i0.ɵɵelementEnd();
|
|
40
|
+
} if (rf & 2) {
|
|
41
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
42
|
+
i0.ɵɵadvance(1);
|
|
43
|
+
i0.ɵɵproperty("ngForOf", ctx_r3.data.options.actions);
|
|
44
|
+
} }
|
|
22
45
|
export class DefaultToastrComponent extends Toast {
|
|
23
46
|
constructor(toastrService, toastPackage) {
|
|
24
47
|
super(toastrService, toastPackage);
|
|
@@ -29,6 +52,7 @@ export class DefaultToastrComponent extends Toast {
|
|
|
29
52
|
message: '',
|
|
30
53
|
status: ToastrStatus.SUCCESS,
|
|
31
54
|
isHtmlBody: false,
|
|
55
|
+
options: {},
|
|
32
56
|
};
|
|
33
57
|
this.icon = ToastrStatusIcon[this.data.status];
|
|
34
58
|
this.class = this.data.status;
|
|
@@ -40,33 +64,39 @@ export class DefaultToastrComponent extends Toast {
|
|
|
40
64
|
/** @nocollapse */ static { this.ɵfac = function DefaultToastrComponent_Factory(t) { return new (t || DefaultToastrComponent)(i0.ɵɵdirectiveInject(i1.ToastrService), i0.ɵɵdirectiveInject(i1.ToastPackage)); }; }
|
|
41
65
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DefaultToastrComponent, selectors: [["dr-default-toastr"]], hostVars: 2, hostBindings: function DefaultToastrComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
42
66
|
i0.ɵɵclassMap(ctx.class);
|
|
43
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
67
|
+
} }, standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 12, vars: 7, consts: [[1, "status-bar"], [1, "content"], [1, "content__status-icon", 3, "ngClass"], [1, "content__container"], [1, "content__container__title"], [1, "content__wrapper"], ["class", "content__container__message", 4, "ngIf", "ngIfElse"], ["htmlBody", ""], ["class", "content__container__actions", 4, "ngIf"], [1, "content__close-icon", "dr-icon-exit"], [1, "content__container__message"], [1, "content__container__message", 3, "innerHTML"], [1, "content__container__actions"], ["class", "content__container__actions__button", 3, "theme", "click", 4, "ngFor", "ngForOf"], [1, "content__container__actions__button", 3, "theme", "click"]], template: function DefaultToastrComponent_Template(rf, ctx) { if (rf & 1) {
|
|
44
68
|
i0.ɵɵelement(0, "div", 0);
|
|
45
69
|
i0.ɵɵelementStart(1, "div", 1);
|
|
46
70
|
i0.ɵɵelement(2, "i", 2);
|
|
47
71
|
i0.ɵɵelementStart(3, "div", 3)(4, "span", 4);
|
|
48
72
|
i0.ɵɵtext(5);
|
|
49
73
|
i0.ɵɵelementEnd();
|
|
50
|
-
i0.ɵɵ
|
|
51
|
-
i0.ɵɵtemplate(7,
|
|
52
|
-
i0.ɵɵ
|
|
53
|
-
i0.ɵɵ
|
|
74
|
+
i0.ɵɵelementStart(6, "div", 5);
|
|
75
|
+
i0.ɵɵtemplate(7, DefaultToastrComponent_div_7_Template, 2, 1, "div", 6);
|
|
76
|
+
i0.ɵɵtemplate(8, DefaultToastrComponent_ng_template_8_Template, 1, 1, "ng-template", null, 7, i0.ɵɵtemplateRefExtractor);
|
|
77
|
+
i0.ɵɵtemplate(10, DefaultToastrComponent_div_10_Template, 2, 1, "div", 8);
|
|
78
|
+
i0.ɵɵelementEnd()();
|
|
79
|
+
i0.ɵɵelement(11, "i", 9);
|
|
54
80
|
i0.ɵɵelementEnd();
|
|
55
81
|
} if (rf & 2) {
|
|
56
|
-
const _r1 = i0.ɵɵreference(
|
|
82
|
+
const _r1 = i0.ɵɵreference(9);
|
|
57
83
|
i0.ɵɵadvance(2);
|
|
58
84
|
i0.ɵɵproperty("ngClass", ctx.icon);
|
|
59
85
|
i0.ɵɵadvance(3);
|
|
60
86
|
i0.ɵɵtextInterpolate1(" ", ctx.data.title, " ");
|
|
61
87
|
i0.ɵɵadvance(1);
|
|
88
|
+
i0.ɵɵclassProp("content__wrapper--inline", ctx.data.options == null ? null : ctx.data.options.inlineActions);
|
|
89
|
+
i0.ɵɵadvance(1);
|
|
62
90
|
i0.ɵɵproperty("ngIf", !ctx.data.isHtmlBody)("ngIfElse", _r1);
|
|
63
|
-
|
|
91
|
+
i0.ɵɵadvance(3);
|
|
92
|
+
i0.ɵɵproperty("ngIf", ctx.data == null ? null : ctx.data.options == null ? null : ctx.data.options.actions == null ? null : ctx.data.options.actions.length);
|
|
93
|
+
} }, dependencies: [CommonModule, i2.NgClass, i2.NgForOf, i2.NgIf, DrButtonComponent], styles: [".toastr-bottom-left{left:24px!important;bottom:24px!important} dr-default-toastr:not(:last-child){margin-bottom:24px!important}.ngx-toastr[_nghost-%COMP%]{display:flex;flex-direction:column;background:#fff;position:relative;overflow:hidden;pointer-events:auto;min-width:280px;max-width:480px;width:-moz-fit-content;width:fit-content;border-radius:6px;padding:0;margin:0;box-shadow:0 4px 14px #00000040}.ngx-toastr[_nghost-%COMP%] .status-bar[_ngcontent-%COMP%]{display:flex;width:100%;height:5px}.ngx-toastr[_nghost-%COMP%] .content[_ngcontent-%COMP%]{display:flex;flex-grow:1;padding:12px 16px}.ngx-toastr[_nghost-%COMP%] .content__wrapper--inline[_ngcontent-%COMP%]{display:inline-flex;align-items:center;width:max-content}.ngx-toastr[_nghost-%COMP%] .content__close-icon[_ngcontent-%COMP%]{color:#6d6e6f;cursor:pointer}.ngx-toastr[_nghost-%COMP%] .content__container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-grow:1;padding:0 4px}.ngx-toastr[_nghost-%COMP%] .content__container__title[_ngcontent-%COMP%], .ngx-toastr[_nghost-%COMP%] .content__container__message[_ngcontent-%COMP%]{color:#333;word-break:break-word}.ngx-toastr[_nghost-%COMP%] .content__container__title[_ngcontent-%COMP%]{font-size:14px;line-height:24px;font-weight:600}.ngx-toastr[_nghost-%COMP%] .content__container__message[_ngcontent-%COMP%]{font-size:14px;line-height:24px;font-weight:400}.ngx-toastr[_nghost-%COMP%] .content__container__message[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:underline!important}.ngx-toastr[_nghost-%COMP%] .content__container__actions__button[_ngcontent-%COMP%]{position:relative;left:5px}.ngx-toastr.status-success[_nghost-%COMP%] .status-bar[_ngcontent-%COMP%]{background-color:#03a678}.ngx-toastr.status-success[_nghost-%COMP%] .content__status-icon[_ngcontent-%COMP%]{color:#03a678}.ngx-toastr.status-info[_nghost-%COMP%] .status-bar[_ngcontent-%COMP%]{background-color:#0061ff}.ngx-toastr.status-info[_nghost-%COMP%] .content__status-icon[_ngcontent-%COMP%]{color:#0061ff}.ngx-toastr.status-warning[_nghost-%COMP%] .status-bar[_ngcontent-%COMP%]{background-color:#fda014}.ngx-toastr.status-warning[_nghost-%COMP%] .content__status-icon[_ngcontent-%COMP%]{color:#fda014}.ngx-toastr.status-danger[_nghost-%COMP%] .status-bar[_ngcontent-%COMP%]{background-color:#de2833}.ngx-toastr.status-danger[_nghost-%COMP%] .content__status-icon[_ngcontent-%COMP%]{color:#de2833}"], changeDetection: 0 }); }
|
|
64
94
|
}
|
|
65
95
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DefaultToastrComponent, [{
|
|
66
96
|
type: Component,
|
|
67
|
-
args: [{ selector: 'dr-default-toastr', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"status-bar\"></div>\n<div class=\"content\">\n <i class=\"content__status-icon\" [ngClass]=\"icon\"></i>\n <div class=\"content__container\">\n <span class=\"content__container__title\">\n {{ data.title }}\n </span>\n\n
|
|
97
|
+
args: [{ selector: 'dr-default-toastr', standalone: true, imports: [CommonModule, DrButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"status-bar\"></div>\n<div class=\"content\">\n <i class=\"content__status-icon\" [ngClass]=\"icon\"></i>\n <div class=\"content__container\">\n <span class=\"content__container__title\">\n {{ data.title }}\n </span>\n <div class=\"content__wrapper\" [class.content__wrapper--inline]=\"data.options?.inlineActions\">\n <div class=\"content__container__message\" *ngIf=\"!data.isHtmlBody; else htmlBody\">\n {{ data.message }}\n </div>\n\n <ng-template #htmlBody>\n <div class=\"content__container__message\" [innerHTML]=\"data.message\"></div>\n </ng-template>\n\n <div class=\"content__container__actions\" *ngIf=\"data?.options?.actions?.length\">\n <dr-button \n class=\"content__container__actions__button\"\n *ngFor=\"let actionItem of data.options.actions\"\n [theme]=\"actionItem.theme\"\n (click)=\"actionItem.onAction()\">\n {{ actionItem.label }}\n </dr-button>\n </div>\n </div>\n </div>\n <i class=\"content__close-icon dr-icon-exit\"></i>\n</div>\n", styles: ["::ng-deep .toastr-bottom-left{left:24px!important;bottom:24px!important}::ng-deep dr-default-toastr:not(:last-child){margin-bottom:24px!important}:host.ngx-toastr{display:flex;flex-direction:column;background:#fff;position:relative;overflow:hidden;pointer-events:auto;min-width:280px;max-width:480px;width:-moz-fit-content;width:fit-content;border-radius:6px;padding:0;margin:0;box-shadow:0 4px 14px #00000040}:host.ngx-toastr .status-bar{display:flex;width:100%;height:5px}:host.ngx-toastr .content{display:flex;flex-grow:1;padding:12px 16px}:host.ngx-toastr .content__wrapper--inline{display:inline-flex;align-items:center;width:max-content}:host.ngx-toastr .content__close-icon{color:#6d6e6f;cursor:pointer}:host.ngx-toastr .content__container{display:flex;flex-direction:column;flex-grow:1;padding:0 4px}:host.ngx-toastr .content__container__title,:host.ngx-toastr .content__container__message{color:#333;word-break:break-word}:host.ngx-toastr .content__container__title{font-size:14px;line-height:24px;font-weight:600}:host.ngx-toastr .content__container__message{font-size:14px;line-height:24px;font-weight:400}:host.ngx-toastr .content__container__message a{text-decoration:underline!important}:host.ngx-toastr .content__container__actions__button{position:relative;left:5px}:host.ngx-toastr.status-success .status-bar{background-color:#03a678}:host.ngx-toastr.status-success .content__status-icon{color:#03a678}:host.ngx-toastr.status-info .status-bar{background-color:#0061ff}:host.ngx-toastr.status-info .content__status-icon{color:#0061ff}:host.ngx-toastr.status-warning .status-bar{background-color:#fda014}:host.ngx-toastr.status-warning .content__status-icon{color:#fda014}:host.ngx-toastr.status-danger .status-bar{background-color:#de2833}:host.ngx-toastr.status-danger .content__status-icon{color:#de2833}\n"] }]
|
|
68
98
|
}], function () { return [{ type: i1.ToastrService }, { type: i1.ToastPackage }]; }, { class: [{
|
|
69
99
|
type: HostBinding,
|
|
70
100
|
args: ['class']
|
|
71
101
|
}] }); })();
|
|
72
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
102
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdC10b2FzdHIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZGF0YXJhaWxzc2hhcmVkL3NyYy9saWIvZHItdG9hc3RyL2RlZmF1bHQtdG9hc3RyL2RlZmF1bHQtdG9hc3RyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2RhdGFyYWlsc3NoYXJlZC9zcmMvbGliL2RyLXRvYXN0ci9kZWZhdWx0LXRvYXN0ci9kZWZhdWx0LXRvYXN0ci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLFdBQVcsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUN4RixPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLEtBQUssRUFBRSxZQUFZLEVBQUUsYUFBYSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQ2hFLE9BQU8sRUFBb0MsWUFBWSxFQUFFLGdCQUFnQixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdkcsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0seUNBQXlDLENBQUM7Ozs7O0lDSWhFLCtCQUFpRjtJQUM3RSxZQUNKO0lBQUEsaUJBQU07OztJQURGLGVBQ0o7SUFESSxvREFDSjs7O0lBR0ksMEJBQTB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xdPVwiZGF0YS5tZXNzYWdlXCI+PC9kaXY+XG4gICAgICAgICAgICA8L25nLXRlbXBsYXRlPlxuXG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwiY29udGVudF9fY29udGFpbmVyX19hY3Rpb25zXCIgKm5nSWY9XCJkYXRhPy5vcHRpb25zPy5hY3Rpb25zPy5sZW5ndGhcIj5cbiAgICAgICAgICAgICAgICA8ZHItYnV0dG9uIFxuICAgICAgICAgICAgICAgICAgICBjbGFzcz1cImNvbnRlbnRfX2NvbnRhaW5lcl9fYWN0aW9uc19fYnV0dG9uXCJcbiAgICAgICAgICAgICAgICAgICAgKm5nRm9yPVwibGV0IGFjdGlvbkl0ZW0gb2YgZGF0YS5vcHRpb25zLmFjdGlvbnNcIlxuICAgICAgICAgICAgICAgICAgICBbdGhlbWVdPVwiYWN0aW9uSXRlbS50aGVtZVwiXG4gICAgICAgICAgICAgICAgICAgIChjbGljayk9XCJhY3Rpb25JdGVtLm9uQWN0aW9uKClcIj5cbiAgICAgICAgICAgICAgICAgICAge3sgYWN0aW9uSXRlbS5sYWJlbCB9fVxuICAgICAgICAgICAgICAgIDwvZHItYnV0dG9uPlxuICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgIDwvZGl2PlxuICAgIDwvZGl2PlxuICAgIDxpIGNsYXNzPVwiY29udGVudF9fY2xvc2UtaWNvbiBkci1pY29uLWV4aXRcIj48L2k+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -9,6 +9,7 @@ export class DrToastrModule {
|
|
|
9
9
|
/** @nocollapse */ static { this.ɵfac = function DrToastrModule_Factory(t) { return new (t || DrToastrModule)(); }; }
|
|
10
10
|
/** @nocollapse */ static { this.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DrToastrModule }); }
|
|
11
11
|
/** @nocollapse */ static { this.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [DrToastrService], imports: [CommonModule,
|
|
12
|
+
DefaultToastrComponent,
|
|
12
13
|
ToastrModule.forRoot({
|
|
13
14
|
toastComponent: DefaultToastrComponent,
|
|
14
15
|
})] }); }
|
|
@@ -16,16 +17,17 @@ export class DrToastrModule {
|
|
|
16
17
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrToastrModule, [{
|
|
17
18
|
type: NgModule,
|
|
18
19
|
args: [{
|
|
19
|
-
declarations: [
|
|
20
|
+
declarations: [],
|
|
20
21
|
imports: [
|
|
21
22
|
CommonModule,
|
|
23
|
+
DefaultToastrComponent,
|
|
22
24
|
ToastrModule.forRoot({
|
|
23
25
|
toastComponent: DefaultToastrComponent,
|
|
24
26
|
}),
|
|
25
27
|
],
|
|
26
|
-
exports: [DefaultToastrComponent],
|
|
27
28
|
providers: [DrToastrService],
|
|
28
29
|
}]
|
|
29
30
|
}], null, null); })();
|
|
30
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrToastrModule, {
|
|
31
|
-
|
|
31
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrToastrModule, { imports: [CommonModule,
|
|
32
|
+
DefaultToastrComponent, i1.ToastrModule] }); })();
|
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHItdG9hc3RyLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2RhdGFyYWlsc3NoYXJlZC9zcmMvbGliL2RyLXRvYXN0ci9kci10b2FzdHIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxlQUFlLEVB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QnV0dG9uQ29tcG9uZW50IH0gZnJvbSAncHJvamVjdHMvZGF0YXJhaWxzc2hhcmVkL3NyYy9wdWJsaWMtYXBpJztcblxuQE5nTW9kdWxlKHtcbiAgICBkZWNsYXJhdGlvbnM6IFtdLFxuICAgIGltcG9ydHM6IFtcbiAgICAgICAgQ29tbW9uTW9kdWxlLFxuICAgICAgICBEZWZhdWx0VG9hc3RyQ29tcG9uZW50LFxuICAgICAgICBUb2FzdHJNb2R1bGUuZm9yUm9vdCh7XG4gICAgICAgICAgICB0b2FzdENvbXBvbmVudDogRGVmYXVsdFRvYXN0ckNvbXBvbmVudCxcbiAgICAgICAgfSksXG4gICAgXSxcbiAgICBwcm92aWRlcnM6IFtEclRvYXN0clNlcnZpY2VdLFxufSlcbmV4cG9ydCBjbGFzcyBEclRvYXN0ck1vZHVsZSB7fVxuIl19
|
|
@@ -7,17 +7,17 @@ export class DrToastrService {
|
|
|
7
7
|
constructor(toastr) {
|
|
8
8
|
this.toastr = toastr;
|
|
9
9
|
}
|
|
10
|
-
info(message, title, isHtmlBody, timeOut) {
|
|
11
|
-
return this.showToastr(message, title, ToastrStatus.INFO, isHtmlBody, timeOut);
|
|
10
|
+
info(message, title, isHtmlBody, timeOut, options) {
|
|
11
|
+
return this.showToastr(message, title, ToastrStatus.INFO, isHtmlBody, timeOut, options);
|
|
12
12
|
}
|
|
13
|
-
danger(message, title, isHtmlBody, timeOut) {
|
|
14
|
-
return this.showToastr(message, title, ToastrStatus.ERROR, isHtmlBody, timeOut);
|
|
13
|
+
danger(message, title, isHtmlBody, timeOut, options) {
|
|
14
|
+
return this.showToastr(message, title, ToastrStatus.ERROR, isHtmlBody, timeOut, options);
|
|
15
15
|
}
|
|
16
|
-
success(message, title, isHtmlBody, timeOut) {
|
|
17
|
-
return this.showToastr(message, title, ToastrStatus.SUCCESS, isHtmlBody, timeOut);
|
|
16
|
+
success(message, title, isHtmlBody, timeOut, options) {
|
|
17
|
+
return this.showToastr(message, title, ToastrStatus.SUCCESS, isHtmlBody, timeOut, options);
|
|
18
18
|
}
|
|
19
|
-
warning(message, title, isHtmlBody, timeOut) {
|
|
20
|
-
return this.showToastr(message, title, ToastrStatus.WARNING, isHtmlBody, timeOut);
|
|
19
|
+
warning(message, title, isHtmlBody, timeOut, options) {
|
|
20
|
+
return this.showToastr(message, title, ToastrStatus.WARNING, isHtmlBody, timeOut, options);
|
|
21
21
|
}
|
|
22
22
|
clear(toastId) {
|
|
23
23
|
this.toastr.clear(toastId);
|
|
@@ -27,7 +27,7 @@ export class DrToastrService {
|
|
|
27
27
|
this.toastr.remove(toastId);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
showToastr(message, title, status, isHtmlBody, timeOut = 5000) {
|
|
30
|
+
showToastr(message, title, status, isHtmlBody, timeOut = 5000, options) {
|
|
31
31
|
const toastr = this.toastr.show('', '', {
|
|
32
32
|
positionClass: 'toastr-bottom-left',
|
|
33
33
|
tapToDismiss: true,
|
|
@@ -39,6 +39,7 @@ export class DrToastrService {
|
|
|
39
39
|
message,
|
|
40
40
|
status,
|
|
41
41
|
isHtmlBody,
|
|
42
|
+
options: options || {},
|
|
42
43
|
};
|
|
43
44
|
return toastr.toastId;
|
|
44
45
|
}
|
|
@@ -53,4 +54,4 @@ export class DrToastrService {
|
|
|
53
54
|
providedIn: 'root',
|
|
54
55
|
}]
|
|
55
56
|
}], function () { return [{ type: i1.ToastrService }]; }, null); })();
|
|
56
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHItdG9hc3RyLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9kYXRhcmFpbHNzaGFyZWQvc3JjL2xpYi9kci10b2FzdHIvZHItdG9hc3RyLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0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0YXR1cy5XQVJOSU5HLCBpc0h0bWxCb2R5LCB0aW1lT3V0LCBvcHRpb25zKTtcbiAgICB9XG5cbiAgICBjbGVhcih0b2FzdElkPzogbnVtYmVyKTogdm9pZCB7XG4gICAgICAgIHRoaXMudG9hc3RyLmNsZWFyKHRvYXN0SWQpO1xuICAgIH1cblxuICAgIHJlbW92ZSh0b2FzdElkOiBudW1iZXIpOiB2b2lkIHtcbiAgICAgICAgaWYgKHRvYXN0SWQpIHtcbiAgICAgICAgICAgIHRoaXMudG9hc3RyLnJlbW92ZSh0b2FzdElkKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHByaXZhdGUgc2hvd1RvYXN0cihcbiAgICAgICAgbWVzc2FnZTogc3RyaW5nIHwgU2FmZUh0bWwsXG4gICAgICAgIHRpdGxlOiBzdHJpbmcsXG4gICAgICAgIHN0YXR1czogVG9hc3RyU3RhdHVzLFxuICAgICAgICBpc0h0bWxCb2R5PzogYm9vbGVhbixcbiAgICAgICAgdGltZU91dDogbnVtYmVyID0gNTAwMCxcbiAgICAgICAgb3B0aW9ucz86IFRvYXN0ck9wdGlvbnMsXG4gICAgKTogbnVtYmVyIHwgdW5kZWZpbmVkIHtcbiAgICAgICAgY29uc3QgdG9hc3RyID0gdGhpcy50b2FzdHIuc2hvdygnJywgJycsIHtcbiAgICAgICAgICAgIHBvc2l0aW9uQ2xhc3M6ICd0b2FzdHItYm90dG9tLWxlZnQnLFxuICAgICAgICAgICAgdGFwVG9EaXNtaXNzOiB0cnVlLFxuICAgICAgICAgICAgdGltZU91dCxcbiAgICAgICAgfSk7XG5cbiAgICAgICAgaWYgKHRvYXN0cj8ucG9ydGFsPy5pbnN0YW5jZSkge1xuICAgICAgICAgICAgdG9hc3RyLnBvcnRhbC5pbnN0YW5jZS5kYXRhID0ge1xuICAgICAgICAgICAgICAgIHRpdGxlLFxuICAgICAgICAgICAgICAgIG1lc3NhZ2UsXG4gICAgICAgICAgICAgICAgc3RhdHVzLFxuICAgICAgICAgICAgICAgIGlzSHRtbEJvZHksXG4gICAgICAgICAgICAgICAgb3B0aW9uczogb3B0aW9ucyB8fCB7fSxcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgICByZXR1cm4gdG9hc3RyLnRvYXN0SWQ7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -11,4 +11,4 @@ export const ToastrStatusIcon = {
|
|
|
11
11
|
[ToastrStatus.SUCCESS]: 'dr-icon-noty-success',
|
|
12
12
|
[ToastrStatus.WARNING]: 'dr-icon-noty-warning',
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9hc3RyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZGF0YXJhaWxzc2hhcmVkL3NyYy9saWIvbW9kZWxzL3RvYXN0ci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLENBQU4sSUFBWSxZQUtYO0FBTEQsV0FBWSxZQUFZO0lBQ3BCLG9DQUFvQixDQUFBO0lBQ3BCLHVDQUF1QixDQUFBO0lBQ3ZCLDBDQUEwQixDQUFBO0lBQzFCLDBDQUEwQixDQUFBO0FBQzlCLENBQUMsRUFMVyxZQUFZLEtBQVosWUFBWSxRQUt2QjtBQUVELE1BQU0sQ0FBQyxNQUFNLGdCQUFnQixHQUFHO0lBQzVCLENBQUMsWUFBWSxDQUFDLElBQUksQ0FBQyxFQUFFLDJCQUEyQjtJQUNoRCxDQUFDLFlBQVksQ0FBQyxLQUFLLENBQUMsRUFBRSxvQkFBb0I7SUFDMUMsQ0FBQyxZQUFZLENBQUMsT0FBTyxDQUFDLEVBQUUsc0JBQXNCO0lBQzlDLENBQUMsWUFBWSxDQUFDLE9BQU8s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iBib29sZWFuO1xuICAgIG9wdGlvbnM/OiBUb2FzdHJPcHRpb25zO1xufTtcbiJdfQ==
|
|
@@ -13486,8 +13486,8 @@ const ToastrStatusIcon = {
|
|
|
13486
13486
|
[ToastrStatus.WARNING]: 'dr-icon-noty-warning',
|
|
13487
13487
|
};
|
|
13488
13488
|
|
|
13489
|
-
function
|
|
13490
|
-
i0.ɵɵelementStart(0, "div",
|
|
13489
|
+
function DefaultToastrComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
13490
|
+
i0.ɵɵelementStart(0, "div", 10);
|
|
13491
13491
|
i0.ɵɵtext(1);
|
|
13492
13492
|
i0.ɵɵelementEnd();
|
|
13493
13493
|
} if (rf & 2) {
|
|
@@ -13495,12 +13495,33 @@ function DefaultToastrComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
13495
13495
|
i0.ɵɵadvance(1);
|
|
13496
13496
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.data.message, " ");
|
|
13497
13497
|
} }
|
|
13498
|
-
function
|
|
13499
|
-
i0.ɵɵelement(0, "div",
|
|
13498
|
+
function DefaultToastrComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
13499
|
+
i0.ɵɵelement(0, "div", 11);
|
|
13500
13500
|
} if (rf & 2) {
|
|
13501
13501
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
13502
13502
|
i0.ɵɵproperty("innerHTML", ctx_r2.data.message, i0.ɵɵsanitizeHtml);
|
|
13503
13503
|
} }
|
|
13504
|
+
function DefaultToastrComponent_div_10_dr_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
13505
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
13506
|
+
i0.ɵɵelementStart(0, "dr-button", 14);
|
|
13507
|
+
i0.ɵɵlistener("click", function DefaultToastrComponent_div_10_dr_button_1_Template_dr_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r7); const actionItem_r5 = restoredCtx.$implicit; return i0.ɵɵresetView(actionItem_r5.onAction()); });
|
|
13508
|
+
i0.ɵɵtext(1);
|
|
13509
|
+
i0.ɵɵelementEnd();
|
|
13510
|
+
} if (rf & 2) {
|
|
13511
|
+
const actionItem_r5 = ctx.$implicit;
|
|
13512
|
+
i0.ɵɵproperty("theme", actionItem_r5.theme);
|
|
13513
|
+
i0.ɵɵadvance(1);
|
|
13514
|
+
i0.ɵɵtextInterpolate1(" ", actionItem_r5.label, " ");
|
|
13515
|
+
} }
|
|
13516
|
+
function DefaultToastrComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
13517
|
+
i0.ɵɵelementStart(0, "div", 12);
|
|
13518
|
+
i0.ɵɵtemplate(1, DefaultToastrComponent_div_10_dr_button_1_Template, 2, 2, "dr-button", 13);
|
|
13519
|
+
i0.ɵɵelementEnd();
|
|
13520
|
+
} if (rf & 2) {
|
|
13521
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
13522
|
+
i0.ɵɵadvance(1);
|
|
13523
|
+
i0.ɵɵproperty("ngForOf", ctx_r3.data.options.actions);
|
|
13524
|
+
} }
|
|
13504
13525
|
class DefaultToastrComponent extends Toast {
|
|
13505
13526
|
constructor(toastrService, toastPackage) {
|
|
13506
13527
|
super(toastrService, toastPackage);
|
|
@@ -13511,6 +13532,7 @@ class DefaultToastrComponent extends Toast {
|
|
|
13511
13532
|
message: '',
|
|
13512
13533
|
status: ToastrStatus.SUCCESS,
|
|
13513
13534
|
isHtmlBody: false,
|
|
13535
|
+
options: {},
|
|
13514
13536
|
};
|
|
13515
13537
|
this.icon = ToastrStatusIcon[this.data.status];
|
|
13516
13538
|
this.class = this.data.status;
|
|
@@ -13522,31 +13544,37 @@ class DefaultToastrComponent extends Toast {
|
|
|
13522
13544
|
/** @nocollapse */ static { this.ɵfac = function DefaultToastrComponent_Factory(t) { return new (t || DefaultToastrComponent)(i0.ɵɵdirectiveInject(i1$6.ToastrService), i0.ɵɵdirectiveInject(i1$6.ToastPackage)); }; }
|
|
13523
13545
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DefaultToastrComponent, selectors: [["dr-default-toastr"]], hostVars: 2, hostBindings: function DefaultToastrComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
13524
13546
|
i0.ɵɵclassMap(ctx.class);
|
|
13525
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
13547
|
+
} }, standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 12, vars: 7, consts: [[1, "status-bar"], [1, "content"], [1, "content__status-icon", 3, "ngClass"], [1, "content__container"], [1, "content__container__title"], [1, "content__wrapper"], ["class", "content__container__message", 4, "ngIf", "ngIfElse"], ["htmlBody", ""], ["class", "content__container__actions", 4, "ngIf"], [1, "content__close-icon", "dr-icon-exit"], [1, "content__container__message"], [1, "content__container__message", 3, "innerHTML"], [1, "content__container__actions"], ["class", "content__container__actions__button", 3, "theme", "click", 4, "ngFor", "ngForOf"], [1, "content__container__actions__button", 3, "theme", "click"]], template: function DefaultToastrComponent_Template(rf, ctx) { if (rf & 1) {
|
|
13526
13548
|
i0.ɵɵelement(0, "div", 0);
|
|
13527
13549
|
i0.ɵɵelementStart(1, "div", 1);
|
|
13528
13550
|
i0.ɵɵelement(2, "i", 2);
|
|
13529
13551
|
i0.ɵɵelementStart(3, "div", 3)(4, "span", 4);
|
|
13530
13552
|
i0.ɵɵtext(5);
|
|
13531
13553
|
i0.ɵɵelementEnd();
|
|
13532
|
-
i0.ɵɵ
|
|
13533
|
-
i0.ɵɵtemplate(7,
|
|
13534
|
-
i0.ɵɵ
|
|
13535
|
-
i0.ɵɵ
|
|
13554
|
+
i0.ɵɵelementStart(6, "div", 5);
|
|
13555
|
+
i0.ɵɵtemplate(7, DefaultToastrComponent_div_7_Template, 2, 1, "div", 6);
|
|
13556
|
+
i0.ɵɵtemplate(8, DefaultToastrComponent_ng_template_8_Template, 1, 1, "ng-template", null, 7, i0.ɵɵtemplateRefExtractor);
|
|
13557
|
+
i0.ɵɵtemplate(10, DefaultToastrComponent_div_10_Template, 2, 1, "div", 8);
|
|
13558
|
+
i0.ɵɵelementEnd()();
|
|
13559
|
+
i0.ɵɵelement(11, "i", 9);
|
|
13536
13560
|
i0.ɵɵelementEnd();
|
|
13537
13561
|
} if (rf & 2) {
|
|
13538
|
-
const _r1 = i0.ɵɵreference(
|
|
13562
|
+
const _r1 = i0.ɵɵreference(9);
|
|
13539
13563
|
i0.ɵɵadvance(2);
|
|
13540
13564
|
i0.ɵɵproperty("ngClass", ctx.icon);
|
|
13541
13565
|
i0.ɵɵadvance(3);
|
|
13542
13566
|
i0.ɵɵtextInterpolate1(" ", ctx.data.title, " ");
|
|
13543
13567
|
i0.ɵɵadvance(1);
|
|
13568
|
+
i0.ɵɵclassProp("content__wrapper--inline", ctx.data.options == null ? null : ctx.data.options.inlineActions);
|
|
13569
|
+
i0.ɵɵadvance(1);
|
|
13544
13570
|
i0.ɵɵproperty("ngIf", !ctx.data.isHtmlBody)("ngIfElse", _r1);
|
|
13545
|
-
|
|
13571
|
+
i0.ɵɵadvance(3);
|
|
13572
|
+
i0.ɵɵproperty("ngIf", ctx.data == null ? null : ctx.data.options == null ? null : ctx.data.options.actions == null ? null : ctx.data.options.actions.length);
|
|
13573
|
+
} }, dependencies: [CommonModule, i1$1.NgClass, i1$1.NgForOf, i1$1.NgIf, DrButtonComponent], styles: [".toastr-bottom-left{left:24px!important;bottom:24px!important} dr-default-toastr:not(:last-child){margin-bottom:24px!important}.ngx-toastr[_nghost-%COMP%]{display:flex;flex-direction:column;background:#fff;position:relative;overflow:hidden;pointer-events:auto;min-width:280px;max-width:480px;width:-moz-fit-content;width:fit-content;border-radius:6px;padding:0;margin:0;box-shadow:0 4px 14px #00000040}.ngx-toastr[_nghost-%COMP%] .status-bar[_ngcontent-%COMP%]{display:flex;width:100%;height:5px}.ngx-toastr[_nghost-%COMP%] .content[_ngcontent-%COMP%]{display:flex;flex-grow:1;padding:12px 16px}.ngx-toastr[_nghost-%COMP%] .content__wrapper--inline[_ngcontent-%COMP%]{display:inline-flex;align-items:center;width:max-content}.ngx-toastr[_nghost-%COMP%] .content__close-icon[_ngcontent-%COMP%]{color:#6d6e6f;cursor:pointer}.ngx-toastr[_nghost-%COMP%] .content__container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-grow:1;padding:0 4px}.ngx-toastr[_nghost-%COMP%] .content__container__title[_ngcontent-%COMP%], .ngx-toastr[_nghost-%COMP%] .content__container__message[_ngcontent-%COMP%]{color:#333;word-break:break-word}.ngx-toastr[_nghost-%COMP%] .content__container__title[_ngcontent-%COMP%]{font-size:14px;line-height:24px;font-weight:600}.ngx-toastr[_nghost-%COMP%] .content__container__message[_ngcontent-%COMP%]{font-size:14px;line-height:24px;font-weight:400}.ngx-toastr[_nghost-%COMP%] .content__container__message[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:underline!important}.ngx-toastr[_nghost-%COMP%] .content__container__actions__button[_ngcontent-%COMP%]{position:relative;left:5px}.ngx-toastr.status-success[_nghost-%COMP%] .status-bar[_ngcontent-%COMP%]{background-color:#03a678}.ngx-toastr.status-success[_nghost-%COMP%] .content__status-icon[_ngcontent-%COMP%]{color:#03a678}.ngx-toastr.status-info[_nghost-%COMP%] .status-bar[_ngcontent-%COMP%]{background-color:#0061ff}.ngx-toastr.status-info[_nghost-%COMP%] .content__status-icon[_ngcontent-%COMP%]{color:#0061ff}.ngx-toastr.status-warning[_nghost-%COMP%] .status-bar[_ngcontent-%COMP%]{background-color:#fda014}.ngx-toastr.status-warning[_nghost-%COMP%] .content__status-icon[_ngcontent-%COMP%]{color:#fda014}.ngx-toastr.status-danger[_nghost-%COMP%] .status-bar[_ngcontent-%COMP%]{background-color:#de2833}.ngx-toastr.status-danger[_nghost-%COMP%] .content__status-icon[_ngcontent-%COMP%]{color:#de2833}"], changeDetection: 0 }); }
|
|
13546
13574
|
}
|
|
13547
13575
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DefaultToastrComponent, [{
|
|
13548
13576
|
type: Component,
|
|
13549
|
-
args: [{ selector: 'dr-default-toastr', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"status-bar\"></div>\n<div class=\"content\">\n <i class=\"content__status-icon\" [ngClass]=\"icon\"></i>\n <div class=\"content__container\">\n <span class=\"content__container__title\">\n {{ data.title }}\n </span>\n\n
|
|
13577
|
+
args: [{ selector: 'dr-default-toastr', standalone: true, imports: [CommonModule, DrButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"status-bar\"></div>\n<div class=\"content\">\n <i class=\"content__status-icon\" [ngClass]=\"icon\"></i>\n <div class=\"content__container\">\n <span class=\"content__container__title\">\n {{ data.title }}\n </span>\n <div class=\"content__wrapper\" [class.content__wrapper--inline]=\"data.options?.inlineActions\">\n <div class=\"content__container__message\" *ngIf=\"!data.isHtmlBody; else htmlBody\">\n {{ data.message }}\n </div>\n\n <ng-template #htmlBody>\n <div class=\"content__container__message\" [innerHTML]=\"data.message\"></div>\n </ng-template>\n\n <div class=\"content__container__actions\" *ngIf=\"data?.options?.actions?.length\">\n <dr-button \n class=\"content__container__actions__button\"\n *ngFor=\"let actionItem of data.options.actions\"\n [theme]=\"actionItem.theme\"\n (click)=\"actionItem.onAction()\">\n {{ actionItem.label }}\n </dr-button>\n </div>\n </div>\n </div>\n <i class=\"content__close-icon dr-icon-exit\"></i>\n</div>\n", styles: ["::ng-deep .toastr-bottom-left{left:24px!important;bottom:24px!important}::ng-deep dr-default-toastr:not(:last-child){margin-bottom:24px!important}:host.ngx-toastr{display:flex;flex-direction:column;background:#fff;position:relative;overflow:hidden;pointer-events:auto;min-width:280px;max-width:480px;width:-moz-fit-content;width:fit-content;border-radius:6px;padding:0;margin:0;box-shadow:0 4px 14px #00000040}:host.ngx-toastr .status-bar{display:flex;width:100%;height:5px}:host.ngx-toastr .content{display:flex;flex-grow:1;padding:12px 16px}:host.ngx-toastr .content__wrapper--inline{display:inline-flex;align-items:center;width:max-content}:host.ngx-toastr .content__close-icon{color:#6d6e6f;cursor:pointer}:host.ngx-toastr .content__container{display:flex;flex-direction:column;flex-grow:1;padding:0 4px}:host.ngx-toastr .content__container__title,:host.ngx-toastr .content__container__message{color:#333;word-break:break-word}:host.ngx-toastr .content__container__title{font-size:14px;line-height:24px;font-weight:600}:host.ngx-toastr .content__container__message{font-size:14px;line-height:24px;font-weight:400}:host.ngx-toastr .content__container__message a{text-decoration:underline!important}:host.ngx-toastr .content__container__actions__button{position:relative;left:5px}:host.ngx-toastr.status-success .status-bar{background-color:#03a678}:host.ngx-toastr.status-success .content__status-icon{color:#03a678}:host.ngx-toastr.status-info .status-bar{background-color:#0061ff}:host.ngx-toastr.status-info .content__status-icon{color:#0061ff}:host.ngx-toastr.status-warning .status-bar{background-color:#fda014}:host.ngx-toastr.status-warning .content__status-icon{color:#fda014}:host.ngx-toastr.status-danger .status-bar{background-color:#de2833}:host.ngx-toastr.status-danger .content__status-icon{color:#de2833}\n"] }]
|
|
13550
13578
|
}], function () { return [{ type: i1$6.ToastrService }, { type: i1$6.ToastPackage }]; }, { class: [{
|
|
13551
13579
|
type: HostBinding,
|
|
13552
13580
|
args: ['class']
|
|
@@ -14175,17 +14203,17 @@ class DrToastrService {
|
|
|
14175
14203
|
constructor(toastr) {
|
|
14176
14204
|
this.toastr = toastr;
|
|
14177
14205
|
}
|
|
14178
|
-
info(message, title, isHtmlBody, timeOut) {
|
|
14179
|
-
return this.showToastr(message, title, ToastrStatus.INFO, isHtmlBody, timeOut);
|
|
14206
|
+
info(message, title, isHtmlBody, timeOut, options) {
|
|
14207
|
+
return this.showToastr(message, title, ToastrStatus.INFO, isHtmlBody, timeOut, options);
|
|
14180
14208
|
}
|
|
14181
|
-
danger(message, title, isHtmlBody, timeOut) {
|
|
14182
|
-
return this.showToastr(message, title, ToastrStatus.ERROR, isHtmlBody, timeOut);
|
|
14209
|
+
danger(message, title, isHtmlBody, timeOut, options) {
|
|
14210
|
+
return this.showToastr(message, title, ToastrStatus.ERROR, isHtmlBody, timeOut, options);
|
|
14183
14211
|
}
|
|
14184
|
-
success(message, title, isHtmlBody, timeOut) {
|
|
14185
|
-
return this.showToastr(message, title, ToastrStatus.SUCCESS, isHtmlBody, timeOut);
|
|
14212
|
+
success(message, title, isHtmlBody, timeOut, options) {
|
|
14213
|
+
return this.showToastr(message, title, ToastrStatus.SUCCESS, isHtmlBody, timeOut, options);
|
|
14186
14214
|
}
|
|
14187
|
-
warning(message, title, isHtmlBody, timeOut) {
|
|
14188
|
-
return this.showToastr(message, title, ToastrStatus.WARNING, isHtmlBody, timeOut);
|
|
14215
|
+
warning(message, title, isHtmlBody, timeOut, options) {
|
|
14216
|
+
return this.showToastr(message, title, ToastrStatus.WARNING, isHtmlBody, timeOut, options);
|
|
14189
14217
|
}
|
|
14190
14218
|
clear(toastId) {
|
|
14191
14219
|
this.toastr.clear(toastId);
|
|
@@ -14195,7 +14223,7 @@ class DrToastrService {
|
|
|
14195
14223
|
this.toastr.remove(toastId);
|
|
14196
14224
|
}
|
|
14197
14225
|
}
|
|
14198
|
-
showToastr(message, title, status, isHtmlBody, timeOut = 5000) {
|
|
14226
|
+
showToastr(message, title, status, isHtmlBody, timeOut = 5000, options) {
|
|
14199
14227
|
const toastr = this.toastr.show('', '', {
|
|
14200
14228
|
positionClass: 'toastr-bottom-left',
|
|
14201
14229
|
tapToDismiss: true,
|
|
@@ -14207,6 +14235,7 @@ class DrToastrService {
|
|
|
14207
14235
|
message,
|
|
14208
14236
|
status,
|
|
14209
14237
|
isHtmlBody,
|
|
14238
|
+
options: options || {},
|
|
14210
14239
|
};
|
|
14211
14240
|
return toastr.toastId;
|
|
14212
14241
|
}
|
|
@@ -14798,6 +14827,7 @@ class DrToastrModule {
|
|
|
14798
14827
|
/** @nocollapse */ static { this.ɵfac = function DrToastrModule_Factory(t) { return new (t || DrToastrModule)(); }; }
|
|
14799
14828
|
/** @nocollapse */ static { this.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DrToastrModule }); }
|
|
14800
14829
|
/** @nocollapse */ static { this.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [DrToastrService], imports: [CommonModule,
|
|
14830
|
+
DefaultToastrComponent,
|
|
14801
14831
|
ToastrModule.forRoot({
|
|
14802
14832
|
toastComponent: DefaultToastrComponent,
|
|
14803
14833
|
})] }); }
|
|
@@ -14805,18 +14835,19 @@ class DrToastrModule {
|
|
|
14805
14835
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrToastrModule, [{
|
|
14806
14836
|
type: NgModule,
|
|
14807
14837
|
args: [{
|
|
14808
|
-
declarations: [
|
|
14838
|
+
declarations: [],
|
|
14809
14839
|
imports: [
|
|
14810
14840
|
CommonModule,
|
|
14841
|
+
DefaultToastrComponent,
|
|
14811
14842
|
ToastrModule.forRoot({
|
|
14812
14843
|
toastComponent: DefaultToastrComponent,
|
|
14813
14844
|
}),
|
|
14814
14845
|
],
|
|
14815
|
-
exports: [DefaultToastrComponent],
|
|
14816
14846
|
providers: [DrToastrService],
|
|
14817
14847
|
}]
|
|
14818
14848
|
}], null, null); })();
|
|
14819
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrToastrModule, {
|
|
14849
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrToastrModule, { imports: [CommonModule,
|
|
14850
|
+
DefaultToastrComponent, i1$6.ToastrModule] }); })();
|
|
14820
14851
|
|
|
14821
14852
|
class DrCodeEditorModule {
|
|
14822
14853
|
/** @nocollapse */ static { this.ɵfac = function DrCodeEditorModule_Factory(t) { return new (t || DrCodeEditorModule)(); }; }
|