@datarailsshared/datarailsshared 1.6.322 → 1.6.326
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.326.tgz +0 -0
- package/esm2022/lib/dr-toastr/default-toastr/default-toastr.component.mjs +42 -13
- package/esm2022/lib/dr-toastr/dr-toastr.module.mjs +6 -3
- 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 -23
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/dr-toastr/dr-toastr.module.d.ts +3 -2
- 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
|
|
@@ -4,8 +4,9 @@ import { ToastrStatus, ToastrStatusIcon } from '../../models/toastr';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "ngx-toastr";
|
|
6
6
|
import * as i2 from "@angular/common";
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
import * as i3 from "../../dr-inputs/button/button.component";
|
|
8
|
+
function DefaultToastrComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
+
i0.ɵɵelementStart(0, "div", 10);
|
|
9
10
|
i0.ɵɵtext(1);
|
|
10
11
|
i0.ɵɵelementEnd();
|
|
11
12
|
} if (rf & 2) {
|
|
@@ -13,12 +14,33 @@ function DefaultToastrComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
13
14
|
i0.ɵɵadvance(1);
|
|
14
15
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.data.message, " ");
|
|
15
16
|
} }
|
|
16
|
-
function
|
|
17
|
-
i0.ɵɵelement(0, "div",
|
|
17
|
+
function DefaultToastrComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
+
i0.ɵɵelement(0, "div", 11);
|
|
18
19
|
} if (rf & 2) {
|
|
19
20
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
20
21
|
i0.ɵɵproperty("innerHTML", ctx_r2.data.message, i0.ɵɵsanitizeHtml);
|
|
21
22
|
} }
|
|
23
|
+
function DefaultToastrComponent_div_10_dr_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
24
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
25
|
+
i0.ɵɵelementStart(0, "dr-button", 14);
|
|
26
|
+
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()); });
|
|
27
|
+
i0.ɵɵtext(1);
|
|
28
|
+
i0.ɵɵelementEnd();
|
|
29
|
+
} if (rf & 2) {
|
|
30
|
+
const actionItem_r5 = ctx.$implicit;
|
|
31
|
+
i0.ɵɵproperty("theme", actionItem_r5.theme);
|
|
32
|
+
i0.ɵɵadvance(1);
|
|
33
|
+
i0.ɵɵtextInterpolate1(" ", actionItem_r5.label, " ");
|
|
34
|
+
} }
|
|
35
|
+
function DefaultToastrComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
36
|
+
i0.ɵɵelementStart(0, "div", 12);
|
|
37
|
+
i0.ɵɵtemplate(1, DefaultToastrComponent_div_10_dr_button_1_Template, 2, 2, "dr-button", 13);
|
|
38
|
+
i0.ɵɵelementEnd();
|
|
39
|
+
} if (rf & 2) {
|
|
40
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
41
|
+
i0.ɵɵadvance(1);
|
|
42
|
+
i0.ɵɵproperty("ngForOf", ctx_r3.data.options.actions);
|
|
43
|
+
} }
|
|
22
44
|
export class DefaultToastrComponent extends Toast {
|
|
23
45
|
constructor(toastrService, toastPackage) {
|
|
24
46
|
super(toastrService, toastPackage);
|
|
@@ -29,6 +51,7 @@ export class DefaultToastrComponent extends Toast {
|
|
|
29
51
|
message: '',
|
|
30
52
|
status: ToastrStatus.SUCCESS,
|
|
31
53
|
isHtmlBody: false,
|
|
54
|
+
options: {},
|
|
32
55
|
};
|
|
33
56
|
this.icon = ToastrStatusIcon[this.data.status];
|
|
34
57
|
this.class = this.data.status;
|
|
@@ -40,33 +63,39 @@ export class DefaultToastrComponent extends Toast {
|
|
|
40
63
|
/** @nocollapse */ static { this.ɵfac = function DefaultToastrComponent_Factory(t) { return new (t || DefaultToastrComponent)(i0.ɵɵdirectiveInject(i1.ToastrService), i0.ɵɵdirectiveInject(i1.ToastPackage)); }; }
|
|
41
64
|
/** @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
65
|
i0.ɵɵclassMap(ctx.class);
|
|
43
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
66
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], 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
67
|
i0.ɵɵelement(0, "div", 0);
|
|
45
68
|
i0.ɵɵelementStart(1, "div", 1);
|
|
46
69
|
i0.ɵɵelement(2, "i", 2);
|
|
47
70
|
i0.ɵɵelementStart(3, "div", 3)(4, "span", 4);
|
|
48
71
|
i0.ɵɵtext(5);
|
|
49
72
|
i0.ɵɵelementEnd();
|
|
50
|
-
i0.ɵɵ
|
|
51
|
-
i0.ɵɵtemplate(7,
|
|
52
|
-
i0.ɵɵ
|
|
53
|
-
i0.ɵɵ
|
|
73
|
+
i0.ɵɵelementStart(6, "div", 5);
|
|
74
|
+
i0.ɵɵtemplate(7, DefaultToastrComponent_div_7_Template, 2, 1, "div", 6);
|
|
75
|
+
i0.ɵɵtemplate(8, DefaultToastrComponent_ng_template_8_Template, 1, 1, "ng-template", null, 7, i0.ɵɵtemplateRefExtractor);
|
|
76
|
+
i0.ɵɵtemplate(10, DefaultToastrComponent_div_10_Template, 2, 1, "div", 8);
|
|
77
|
+
i0.ɵɵelementEnd()();
|
|
78
|
+
i0.ɵɵelement(11, "i", 9);
|
|
54
79
|
i0.ɵɵelementEnd();
|
|
55
80
|
} if (rf & 2) {
|
|
56
|
-
const _r1 = i0.ɵɵreference(
|
|
81
|
+
const _r1 = i0.ɵɵreference(9);
|
|
57
82
|
i0.ɵɵadvance(2);
|
|
58
83
|
i0.ɵɵproperty("ngClass", ctx.icon);
|
|
59
84
|
i0.ɵɵadvance(3);
|
|
60
85
|
i0.ɵɵtextInterpolate1(" ", ctx.data.title, " ");
|
|
61
86
|
i0.ɵɵadvance(1);
|
|
87
|
+
i0.ɵɵclassProp("content__wrapper--inline", ctx.data.options == null ? null : ctx.data.options.inlineActions);
|
|
88
|
+
i0.ɵɵadvance(1);
|
|
62
89
|
i0.ɵɵproperty("ngIf", !ctx.data.isHtmlBody)("ngIfElse", _r1);
|
|
63
|
-
|
|
90
|
+
i0.ɵɵadvance(3);
|
|
91
|
+
i0.ɵɵproperty("ngIf", ctx.data == null ? null : ctx.data.options == null ? null : ctx.data.options.actions == null ? null : ctx.data.options.actions.length);
|
|
92
|
+
} }, dependencies: [i2.NgClass, i2.NgForOf, i2.NgIf, i3.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
93
|
}
|
|
65
94
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DefaultToastrComponent, [{
|
|
66
95
|
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
|
|
96
|
+
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 <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
97
|
}], function () { return [{ type: i1.ToastrService }, { type: i1.ToastPackage }]; }, { class: [{
|
|
69
98
|
type: HostBinding,
|
|
70
99
|
args: ['class']
|
|
71
100
|
}] }); })();
|
|
72
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
101
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdC10b2FzdHIuY29tcG9uZW50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PlxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cImNvbnRlbnRfX2NvbnRhaW5lcl9fbWVzc2FnZVwiICpuZ0lmPVwiIWRhdGEuaXNIdG1sQm9keTsgZWxzZSBodG1sQm9keVwiPlxuICAgICAgICAgICAgICAgIHt7IGRhdGEubWVzc2FnZSB9fVxuICAgICAgICAgICAgPC9kaXY+XG5cbiAgICAgICAgICAgIDxuZy10ZW1wbGF0ZSAjaHRtbEJvZHk+XG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImNvbnRlbnRfX2NvbnRhaW5lcl9fbWVzc2FnZVwiIFtpbm5lckhUTUxdPVwiZGF0YS5tZXNzYWdlXCI+PC9kaXY+XG4gICAgICAgICAgICA8L25nLXRlbXBsYXRlPlxuXG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwiY29udGVudF9fY29udGFpbmVyX19hY3Rpb25zXCIgKm5nSWY9XCJkYXRhPy5vcHRpb25zPy5hY3Rpb25zPy5sZW5ndGhcIj5cbiAgICAgICAgICAgICAgICA8ZHItYnV0dG9uIFxuICAgICAgICAgICAgICAgICAgICBjbGFzcz1cImNvbnRlbnRfX2NvbnRhaW5lcl9fYWN0aW9uc19fYnV0dG9uXCJcbiAgICAgICAgICAgICAgICAgICAgKm5nRm9yPVwibGV0IGFjdGlvbkl0ZW0gb2YgZGF0YS5vcHRpb25zLmFjdGlvbnNcIlxuICAgICAgICAgICAgICAgICAgICBbdGhlbWVdPVwiYWN0aW9uSXRlbS50aGVtZVwiXG4gICAgICAgICAgICAgICAgICAgIChjbGljayk9XCJhY3Rpb25JdGVtLm9uQWN0aW9uKClcIj5cbiAgICAgICAgICAgICAgICAgICAge3sgYWN0aW9uSXRlbS5sYWJlbCB9fVxuICAgICAgICAgICAgICAgIDwvZHItYnV0dG9uPlxuICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgIDwvZGl2PlxuICAgIDwvZGl2PlxuICAgIDxpIGNsYXNzPVwiY29udGVudF9fY2xvc2UtaWNvbiBkci1pY29uLWV4aXRcIj48L2k+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -3,12 +3,14 @@ import { CommonModule } from '@angular/common';
|
|
|
3
3
|
import { DrToastrService } from './dr-toastr.service';
|
|
4
4
|
import { ToastrModule } from 'ngx-toastr';
|
|
5
5
|
import { DefaultToastrComponent } from './default-toastr/default-toastr.component';
|
|
6
|
+
import { DrButtonComponent } from 'projects/datarailsshared/src/public-api';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
import * as i1 from "ngx-toastr";
|
|
8
9
|
export class DrToastrModule {
|
|
9
10
|
/** @nocollapse */ static { this.ɵfac = function DrToastrModule_Factory(t) { return new (t || DrToastrModule)(); }; }
|
|
10
11
|
/** @nocollapse */ static { this.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DrToastrModule }); }
|
|
11
12
|
/** @nocollapse */ static { this.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [DrToastrService], imports: [CommonModule,
|
|
13
|
+
DrButtonComponent,
|
|
12
14
|
ToastrModule.forRoot({
|
|
13
15
|
toastComponent: DefaultToastrComponent,
|
|
14
16
|
})] }); }
|
|
@@ -19,13 +21,14 @@ export class DrToastrModule {
|
|
|
19
21
|
declarations: [DefaultToastrComponent],
|
|
20
22
|
imports: [
|
|
21
23
|
CommonModule,
|
|
24
|
+
DrButtonComponent,
|
|
22
25
|
ToastrModule.forRoot({
|
|
23
26
|
toastComponent: DefaultToastrComponent,
|
|
24
27
|
}),
|
|
25
28
|
],
|
|
26
|
-
exports: [DefaultToastrComponent],
|
|
27
29
|
providers: [DrToastrService],
|
|
28
30
|
}]
|
|
29
31
|
}], null, null); })();
|
|
30
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrToastrModule, { declarations: [DefaultToastrComponent], imports: [CommonModule,
|
|
31
|
-
|
|
32
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrToastrModule, { declarations: [DefaultToastrComponent], imports: [CommonModule,
|
|
33
|
+
DrButtonComponent, i1.ToastrModule] }); })();
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHItdG9hc3RyLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2RhdGFyYWlsc3NoYXJlZC9zcmMvbGliL2RyLXRvYXN0ci9kci10b2FzdHIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN0RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQzFDLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLDJDQUEyQyxDQUFDO0FBQ25GLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHlDQUF5QyxDQUFDOzs7QUFhNUUsTUFBTSxPQUFPLGNBQWM7a0dBQWQsY0FBYztrR0FBZCxjQUFjO3VHQUZaLENBQUMsZUFBZSxDQUFDLFlBTnhCLFlBQVk7WUFDWixpQkFBaUI7WUFDakIsWUFBWSxDQUFDLE9BQU8sQ0FBQztnQkFDakIsY0FBYyxFQUFFLHNCQUFzQjthQUN6QyxDQUFDOzt1RkFJRyxjQUFjO2NBWDFCLFFBQVE7ZUFBQztnQkFDTixZQUFZLEVBQUUsQ0FBQyxzQkFBc0IsQ0FBQztnQkFDdEMsT0FBTyxFQUFFO29CQUNMLFlBQVk7b0JBQ1osaUJBQWlCO29CQUNqQixZQUFZ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sZSB7fVxuIl19
|
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHItdG9hc3RyLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9kYXRhcmFpbHNzaGFyZWQvc3JjL2xpYi9kci10b2FzdHIvZHItdG9hc3RyLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLFlBQVksQ0FBQztBQUMzQyxPQUFPLEVBQWlCLFlBQVksRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQy9ELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQUszQyxNQUFNLE9BQU8sZUFBZTtJQUN4QixZQUFvQixNQUFxQjtRQUFyQixXQUFNLEdBQU4sTUFBTSxDQUFlO0lBQUcsQ0FBQztJQUU3QyxJQUFJLENBQ0EsT0FBMEIsRUFDMUIsS0FBYyxFQUNkLFVBQW9CLEVBQ3BCLE9BQWdCLEVBQ2hCLE9BQXVCO1FBRXZCLE9BQU8sSUFBSSxDQUFDLFVBQVUsQ0FBQyxPQUFPLEVBQUUsS0FBSyxFQUFFLFlBQVksQ0FB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G4gICAgICAgIHN0YXR1czogVG9hc3RyU3RhdHVzLFxuICAgICAgICBpc0h0bWxCb2R5PzogYm9vbGVhbixcbiAgICAgICAgdGltZU91dDogbnVtYmVyID0gNTAwMCxcbiAgICAgICAgb3B0aW9ucz86IFRvYXN0ck9wdGlvbnMsXG4gICAgKTogbnVtYmVyIHwgdW5kZWZpbmVkIHtcbiAgICAgICAgY29uc3QgdG9hc3RyID0gdGhpcy50b2FzdHIuc2hvdygnJywgJycsIHtcbiAgICAgICAgICAgIHBvc2l0aW9uQ2xhc3M6ICd0b2FzdHItYm90dG9tLWxlZnQnLFxuICAgICAgICAgICAgdGFwVG9EaXNtaXNzOiB0cnVlLFxuICAgICAgICAgICAgdGltZU91dCxcbiAgICAgICAgfSk7XG5cbiAgICAgICAgaWYgKHRvYXN0cj8ucG9ydGFsPy5pbnN0YW5jZSkge1xuICAgICAgICAgICAgdG9hc3RyLnBvcnRhbC5pbnN0YW5jZS5kYXRhID0ge1xuICAgICAgICAgICAgICAgIHRpdGxlLFxuICAgICAgICAgICAgICAgIG1lc3NhZ2UsXG4gICAgICAgICAgICAgICAgc3RhdHVzLFxuICAgICAgICAgICAgICAgIGlzSHRtbEJvZHksXG4gICAgICAgICAgICAgICAgb3B0aW9uczogb3B0aW9ucyB8fCB7fSxcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgICByZXR1cm4gdG9hc3RyLnRvYXN0SWQ7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9hc3Ry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W5vdHktbm90aWZpY2F0aW9uJyxcbiAgICBbVG9hc3RyU3RhdHVzLkVSUk9SXTogJ2RyLWljb24tbm90eS1lcnJvcicsXG4gICAgW1RvYXN0clN0YXR1cy5TVUNDRVNTXTogJ2RyLWljb24tbm90eS1zdWNjZXNzJyxcbiAgICBbVG9hc3RyU3RhdHVzLldBUk5JTkddOiAnZHItaWNvbi1ub3R5LXdhcm5pbmcnLFxufTtcblxuZXhwb3J0IHR5cGUgVG9hc3RyT3B0aW9ucyA9IHtcbiAgICBhY3Rpb25zPzogQXJyYXk8e1xuICAgICAgICBsYWJlbDogc3RyaW5nO1xuICAgICAgICB0aGVtZTogQnV0dG9uVHlwZTtcbiAgICAgICAgb25BY3Rpb246ICgpID0+IHZvaWQ7XG4gICAgfT47XG4gICAgaW5saW5lQWN0aW9ucz86IGJvb2xlYW47XG59O1xuXG5leHBvcnQgdHlwZSBEZWZhdWx0VG9hc3RyRGF0YSA9IHtcbiAgICB0aXRsZTogc3RyaW5nO1xuICAgIG1lc3NhZ2U6IHN0cmluZztcbiAgICBzdGF0dXM6IFRvYXN0clN0YXR1cztcbiAgICBpc0h0bWxCb2R5OiBib29sZWFuO1xuICAgIG9wdGlvbnM/OiBUb2FzdHJPcHRpb25zO1xufTtcbiJdfQ==
|
|
@@ -33,6 +33,7 @@ import * as i1$5 from '@angular/material/legacy-dialog';
|
|
|
33
33
|
import { MAT_LEGACY_DIALOG_DATA, MatLegacyDialogRef, MatLegacyDialogModule } from '@angular/material/legacy-dialog';
|
|
34
34
|
import * as i1$6 from 'ngx-toastr';
|
|
35
35
|
import { Toast, ToastrModule } from 'ngx-toastr';
|
|
36
|
+
import { DrButtonComponent as DrButtonComponent$1 } from 'projects/datarailsshared/src/public-api';
|
|
36
37
|
import 'codemirror/mode/javascript/javascript';
|
|
37
38
|
import 'codemirror/addon/edit/matchbrackets';
|
|
38
39
|
import 'codemirror/addon/hint/show-hint';
|
|
@@ -13486,8 +13487,8 @@ const ToastrStatusIcon = {
|
|
|
13486
13487
|
[ToastrStatus.WARNING]: 'dr-icon-noty-warning',
|
|
13487
13488
|
};
|
|
13488
13489
|
|
|
13489
|
-
function
|
|
13490
|
-
i0.ɵɵelementStart(0, "div",
|
|
13490
|
+
function DefaultToastrComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
13491
|
+
i0.ɵɵelementStart(0, "div", 10);
|
|
13491
13492
|
i0.ɵɵtext(1);
|
|
13492
13493
|
i0.ɵɵelementEnd();
|
|
13493
13494
|
} if (rf & 2) {
|
|
@@ -13495,12 +13496,33 @@ function DefaultToastrComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
13495
13496
|
i0.ɵɵadvance(1);
|
|
13496
13497
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.data.message, " ");
|
|
13497
13498
|
} }
|
|
13498
|
-
function
|
|
13499
|
-
i0.ɵɵelement(0, "div",
|
|
13499
|
+
function DefaultToastrComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
13500
|
+
i0.ɵɵelement(0, "div", 11);
|
|
13500
13501
|
} if (rf & 2) {
|
|
13501
13502
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
13502
13503
|
i0.ɵɵproperty("innerHTML", ctx_r2.data.message, i0.ɵɵsanitizeHtml);
|
|
13503
13504
|
} }
|
|
13505
|
+
function DefaultToastrComponent_div_10_dr_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
13506
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
13507
|
+
i0.ɵɵelementStart(0, "dr-button", 14);
|
|
13508
|
+
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()); });
|
|
13509
|
+
i0.ɵɵtext(1);
|
|
13510
|
+
i0.ɵɵelementEnd();
|
|
13511
|
+
} if (rf & 2) {
|
|
13512
|
+
const actionItem_r5 = ctx.$implicit;
|
|
13513
|
+
i0.ɵɵproperty("theme", actionItem_r5.theme);
|
|
13514
|
+
i0.ɵɵadvance(1);
|
|
13515
|
+
i0.ɵɵtextInterpolate1(" ", actionItem_r5.label, " ");
|
|
13516
|
+
} }
|
|
13517
|
+
function DefaultToastrComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
13518
|
+
i0.ɵɵelementStart(0, "div", 12);
|
|
13519
|
+
i0.ɵɵtemplate(1, DefaultToastrComponent_div_10_dr_button_1_Template, 2, 2, "dr-button", 13);
|
|
13520
|
+
i0.ɵɵelementEnd();
|
|
13521
|
+
} if (rf & 2) {
|
|
13522
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
13523
|
+
i0.ɵɵadvance(1);
|
|
13524
|
+
i0.ɵɵproperty("ngForOf", ctx_r3.data.options.actions);
|
|
13525
|
+
} }
|
|
13504
13526
|
class DefaultToastrComponent extends Toast {
|
|
13505
13527
|
constructor(toastrService, toastPackage) {
|
|
13506
13528
|
super(toastrService, toastPackage);
|
|
@@ -13511,6 +13533,7 @@ class DefaultToastrComponent extends Toast {
|
|
|
13511
13533
|
message: '',
|
|
13512
13534
|
status: ToastrStatus.SUCCESS,
|
|
13513
13535
|
isHtmlBody: false,
|
|
13536
|
+
options: {},
|
|
13514
13537
|
};
|
|
13515
13538
|
this.icon = ToastrStatusIcon[this.data.status];
|
|
13516
13539
|
this.class = this.data.status;
|
|
@@ -13522,31 +13545,37 @@ class DefaultToastrComponent extends Toast {
|
|
|
13522
13545
|
/** @nocollapse */ static { this.ɵfac = function DefaultToastrComponent_Factory(t) { return new (t || DefaultToastrComponent)(i0.ɵɵdirectiveInject(i1$6.ToastrService), i0.ɵɵdirectiveInject(i1$6.ToastPackage)); }; }
|
|
13523
13546
|
/** @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
13547
|
i0.ɵɵclassMap(ctx.class);
|
|
13525
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
13548
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], 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
13549
|
i0.ɵɵelement(0, "div", 0);
|
|
13527
13550
|
i0.ɵɵelementStart(1, "div", 1);
|
|
13528
13551
|
i0.ɵɵelement(2, "i", 2);
|
|
13529
13552
|
i0.ɵɵelementStart(3, "div", 3)(4, "span", 4);
|
|
13530
13553
|
i0.ɵɵtext(5);
|
|
13531
13554
|
i0.ɵɵelementEnd();
|
|
13532
|
-
i0.ɵɵ
|
|
13533
|
-
i0.ɵɵtemplate(7,
|
|
13534
|
-
i0.ɵɵ
|
|
13535
|
-
i0.ɵɵ
|
|
13555
|
+
i0.ɵɵelementStart(6, "div", 5);
|
|
13556
|
+
i0.ɵɵtemplate(7, DefaultToastrComponent_div_7_Template, 2, 1, "div", 6);
|
|
13557
|
+
i0.ɵɵtemplate(8, DefaultToastrComponent_ng_template_8_Template, 1, 1, "ng-template", null, 7, i0.ɵɵtemplateRefExtractor);
|
|
13558
|
+
i0.ɵɵtemplate(10, DefaultToastrComponent_div_10_Template, 2, 1, "div", 8);
|
|
13559
|
+
i0.ɵɵelementEnd()();
|
|
13560
|
+
i0.ɵɵelement(11, "i", 9);
|
|
13536
13561
|
i0.ɵɵelementEnd();
|
|
13537
13562
|
} if (rf & 2) {
|
|
13538
|
-
const _r1 = i0.ɵɵreference(
|
|
13563
|
+
const _r1 = i0.ɵɵreference(9);
|
|
13539
13564
|
i0.ɵɵadvance(2);
|
|
13540
13565
|
i0.ɵɵproperty("ngClass", ctx.icon);
|
|
13541
13566
|
i0.ɵɵadvance(3);
|
|
13542
13567
|
i0.ɵɵtextInterpolate1(" ", ctx.data.title, " ");
|
|
13543
13568
|
i0.ɵɵadvance(1);
|
|
13569
|
+
i0.ɵɵclassProp("content__wrapper--inline", ctx.data.options == null ? null : ctx.data.options.inlineActions);
|
|
13570
|
+
i0.ɵɵadvance(1);
|
|
13544
13571
|
i0.ɵɵproperty("ngIf", !ctx.data.isHtmlBody)("ngIfElse", _r1);
|
|
13545
|
-
|
|
13572
|
+
i0.ɵɵadvance(3);
|
|
13573
|
+
i0.ɵɵproperty("ngIf", ctx.data == null ? null : ctx.data.options == null ? null : ctx.data.options.actions == null ? null : ctx.data.options.actions.length);
|
|
13574
|
+
} }, dependencies: [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
13575
|
}
|
|
13547
13576
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DefaultToastrComponent, [{
|
|
13548
13577
|
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
|
|
13578
|
+
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 <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
13579
|
}], function () { return [{ type: i1$6.ToastrService }, { type: i1$6.ToastPackage }]; }, { class: [{
|
|
13551
13580
|
type: HostBinding,
|
|
13552
13581
|
args: ['class']
|
|
@@ -14175,17 +14204,17 @@ class DrToastrService {
|
|
|
14175
14204
|
constructor(toastr) {
|
|
14176
14205
|
this.toastr = toastr;
|
|
14177
14206
|
}
|
|
14178
|
-
info(message, title, isHtmlBody, timeOut) {
|
|
14179
|
-
return this.showToastr(message, title, ToastrStatus.INFO, isHtmlBody, timeOut);
|
|
14207
|
+
info(message, title, isHtmlBody, timeOut, options) {
|
|
14208
|
+
return this.showToastr(message, title, ToastrStatus.INFO, isHtmlBody, timeOut, options);
|
|
14180
14209
|
}
|
|
14181
|
-
danger(message, title, isHtmlBody, timeOut) {
|
|
14182
|
-
return this.showToastr(message, title, ToastrStatus.ERROR, isHtmlBody, timeOut);
|
|
14210
|
+
danger(message, title, isHtmlBody, timeOut, options) {
|
|
14211
|
+
return this.showToastr(message, title, ToastrStatus.ERROR, isHtmlBody, timeOut, options);
|
|
14183
14212
|
}
|
|
14184
|
-
success(message, title, isHtmlBody, timeOut) {
|
|
14185
|
-
return this.showToastr(message, title, ToastrStatus.SUCCESS, isHtmlBody, timeOut);
|
|
14213
|
+
success(message, title, isHtmlBody, timeOut, options) {
|
|
14214
|
+
return this.showToastr(message, title, ToastrStatus.SUCCESS, isHtmlBody, timeOut, options);
|
|
14186
14215
|
}
|
|
14187
|
-
warning(message, title, isHtmlBody, timeOut) {
|
|
14188
|
-
return this.showToastr(message, title, ToastrStatus.WARNING, isHtmlBody, timeOut);
|
|
14216
|
+
warning(message, title, isHtmlBody, timeOut, options) {
|
|
14217
|
+
return this.showToastr(message, title, ToastrStatus.WARNING, isHtmlBody, timeOut, options);
|
|
14189
14218
|
}
|
|
14190
14219
|
clear(toastId) {
|
|
14191
14220
|
this.toastr.clear(toastId);
|
|
@@ -14195,7 +14224,7 @@ class DrToastrService {
|
|
|
14195
14224
|
this.toastr.remove(toastId);
|
|
14196
14225
|
}
|
|
14197
14226
|
}
|
|
14198
|
-
showToastr(message, title, status, isHtmlBody, timeOut = 5000) {
|
|
14227
|
+
showToastr(message, title, status, isHtmlBody, timeOut = 5000, options) {
|
|
14199
14228
|
const toastr = this.toastr.show('', '', {
|
|
14200
14229
|
positionClass: 'toastr-bottom-left',
|
|
14201
14230
|
tapToDismiss: true,
|
|
@@ -14207,6 +14236,7 @@ class DrToastrService {
|
|
|
14207
14236
|
message,
|
|
14208
14237
|
status,
|
|
14209
14238
|
isHtmlBody,
|
|
14239
|
+
options: options || {},
|
|
14210
14240
|
};
|
|
14211
14241
|
return toastr.toastId;
|
|
14212
14242
|
}
|
|
@@ -14798,6 +14828,7 @@ class DrToastrModule {
|
|
|
14798
14828
|
/** @nocollapse */ static { this.ɵfac = function DrToastrModule_Factory(t) { return new (t || DrToastrModule)(); }; }
|
|
14799
14829
|
/** @nocollapse */ static { this.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DrToastrModule }); }
|
|
14800
14830
|
/** @nocollapse */ static { this.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [DrToastrService], imports: [CommonModule,
|
|
14831
|
+
DrButtonComponent$1,
|
|
14801
14832
|
ToastrModule.forRoot({
|
|
14802
14833
|
toastComponent: DefaultToastrComponent,
|
|
14803
14834
|
})] }); }
|
|
@@ -14808,15 +14839,16 @@ class DrToastrModule {
|
|
|
14808
14839
|
declarations: [DefaultToastrComponent],
|
|
14809
14840
|
imports: [
|
|
14810
14841
|
CommonModule,
|
|
14842
|
+
DrButtonComponent$1,
|
|
14811
14843
|
ToastrModule.forRoot({
|
|
14812
14844
|
toastComponent: DefaultToastrComponent,
|
|
14813
14845
|
}),
|
|
14814
14846
|
],
|
|
14815
|
-
exports: [DefaultToastrComponent],
|
|
14816
14847
|
providers: [DrToastrService],
|
|
14817
14848
|
}]
|
|
14818
14849
|
}], null, null); })();
|
|
14819
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrToastrModule, { declarations: [DefaultToastrComponent], imports: [CommonModule,
|
|
14850
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrToastrModule, { declarations: [DefaultToastrComponent], imports: [CommonModule,
|
|
14851
|
+
DrButtonComponent$1, i1$6.ToastrModule] }); })();
|
|
14820
14852
|
|
|
14821
14853
|
class DrCodeEditorModule {
|
|
14822
14854
|
/** @nocollapse */ static { this.ɵfac = function DrCodeEditorModule_Factory(t) { return new (t || DrCodeEditorModule)(); }; }
|