@datarailsshared/datarailsshared 1.6.324 → 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 +5 -6
- package/esm2022/lib/dr-toastr/dr-toastr.module.mjs +7 -6
- package/fesm2022/datarailsshared-datarailsshared.mjs +9 -8
- 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 +5 -4
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.6.324.tgz +0 -0
|
Binary file
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, HostBinding } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
2
|
import { Toast, ToastPackage, ToastrService } from 'ngx-toastr';
|
|
4
3
|
import { ToastrStatus, ToastrStatusIcon } from '../../models/toastr';
|
|
5
|
-
import { DrButtonComponent } from '../../dr-inputs/button/button.component';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
import * as i1 from "ngx-toastr";
|
|
8
6
|
import * as i2 from "@angular/common";
|
|
7
|
+
import * as i3 from "../../dr-inputs/button/button.component";
|
|
9
8
|
function DefaultToastrComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
10
9
|
i0.ɵɵelementStart(0, "div", 10);
|
|
11
10
|
i0.ɵɵtext(1);
|
|
@@ -64,7 +63,7 @@ export class DefaultToastrComponent extends Toast {
|
|
|
64
63
|
/** @nocollapse */ static { this.ɵfac = function DefaultToastrComponent_Factory(t) { return new (t || DefaultToastrComponent)(i0.ɵɵdirectiveInject(i1.ToastrService), i0.ɵɵdirectiveInject(i1.ToastPackage)); }; }
|
|
65
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) {
|
|
66
65
|
i0.ɵɵclassMap(ctx.class);
|
|
67
|
-
} },
|
|
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) {
|
|
68
67
|
i0.ɵɵelement(0, "div", 0);
|
|
69
68
|
i0.ɵɵelementStart(1, "div", 1);
|
|
70
69
|
i0.ɵɵelement(2, "i", 2);
|
|
@@ -90,13 +89,13 @@ export class DefaultToastrComponent extends Toast {
|
|
|
90
89
|
i0.ɵɵproperty("ngIf", !ctx.data.isHtmlBody)("ngIfElse", _r1);
|
|
91
90
|
i0.ɵɵadvance(3);
|
|
92
91
|
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: [
|
|
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 }); }
|
|
94
93
|
}
|
|
95
94
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DefaultToastrComponent, [{
|
|
96
95
|
type: Component,
|
|
97
|
-
args: [{ selector: 'dr-default-toastr',
|
|
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"] }]
|
|
98
97
|
}], function () { return [{ type: i1.ToastrService }, { type: i1.ToastPackage }]; }, { class: [{
|
|
99
98
|
type: HostBinding,
|
|
100
99
|
args: ['class']
|
|
101
100
|
}] }); })();
|
|
102
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
101
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdC10b2FzdHIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZGF0YXJhaWxzc2hhcmVkL3NyYy9saWIvZHItdG9hc3RyL2RlZmF1bHQtdG9hc3RyL2RlZmF1bHQtdG9hc3RyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2RhdGFyYWlsc3NoYXJlZC9zcmMvbGliL2RyLXRvYXN0ci9kZWZhdWx0LXRvYXN0ci9kZWZhd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bnRfX2NvbnRhaW5lcl9fbWVzc2FnZVwiIFtpbm5lckhUTUxdPVwiZGF0YS5tZXNzYWdlXCI+PC9kaXY+XG4gICAgICAgICAgICA8L25nLXRlbXBsYXRlPlxuXG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwiY29udGVudF9fY29udGFpbmVyX19hY3Rpb25zXCIgKm5nSWY9XCJkYXRhPy5vcHRpb25zPy5hY3Rpb25zPy5sZW5ndGhcIj5cbiAgICAgICAgICAgICAgICA8ZHItYnV0dG9uIFxuICAgICAgICAgICAgICAgICAgICBjbGFzcz1cImNvbnRlbnRfX2NvbnRhaW5lcl9fYWN0aW9uc19fYnV0dG9uXCJcbiAgICAgICAgICAgICAgICAgICAgKm5nRm9yPVwibGV0IGFjdGlvbkl0ZW0gb2YgZGF0YS5vcHRpb25zLmFjdGlvbnNcIlxuICAgICAgICAgICAgICAgICAgICBbdGhlbWVdPVwiYWN0aW9uSXRlbS50aGVtZVwiXG4gICAgICAgICAgICAgICAgICAgIChjbGljayk9XCJhY3Rpb25JdGVtLm9uQWN0aW9uKClcIj5cbiAgICAgICAgICAgICAgICAgICAge3sgYWN0aW9uSXRlbS5sYWJlbCB9fVxuICAgICAgICAgICAgICAgIDwvZHItYnV0dG9uPlxuICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgIDwvZGl2PlxuICAgIDwvZGl2PlxuICAgIDxpIGNsYXNzPVwiY29udGVudF9fY2xvc2UtaWNvbiBkci1pY29uLWV4aXRcIj48L2k+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -3,13 +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,
|
|
12
|
-
|
|
13
|
+
DrButtonComponent,
|
|
13
14
|
ToastrModule.forRoot({
|
|
14
15
|
toastComponent: DefaultToastrComponent,
|
|
15
16
|
})] }); }
|
|
@@ -17,10 +18,10 @@ export class DrToastrModule {
|
|
|
17
18
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrToastrModule, [{
|
|
18
19
|
type: NgModule,
|
|
19
20
|
args: [{
|
|
20
|
-
declarations: [],
|
|
21
|
+
declarations: [DefaultToastrComponent],
|
|
21
22
|
imports: [
|
|
22
23
|
CommonModule,
|
|
23
|
-
|
|
24
|
+
DrButtonComponent,
|
|
24
25
|
ToastrModule.forRoot({
|
|
25
26
|
toastComponent: DefaultToastrComponent,
|
|
26
27
|
}),
|
|
@@ -28,6 +29,6 @@ export class DrToastrModule {
|
|
|
28
29
|
providers: [DrToastrService],
|
|
29
30
|
}]
|
|
30
31
|
}], null, null); })();
|
|
31
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrToastrModule, { imports: [CommonModule,
|
|
32
|
-
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
32
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrToastrModule, { declarations: [DefaultToastrComponent], imports: [CommonModule,
|
|
33
|
+
DrButtonComponent, i1.ToastrModule] }); })();
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjoz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FBYyxtQkFWUixzQkFBc0IsYUFFakMsWUFBWTtRQUNaLGlCQUFpQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgRHJUb2FzdHJTZXJ2aWNlIH0gZnJvbSAnLi9kci10b2FzdHIuc2VydmljZSc7XG5pbXBvcnQgeyBUb2FzdHJNb2R1bGUgfSBmcm9tICduZ3gtdG9hc3RyJztcbmltcG9ydCB7IERlZmF1bHRUb2FzdHJDb21wb25lbnQgfSBmcm9tICcuL2RlZmF1bHQtdG9hc3RyL2RlZmF1bHQtdG9hc3RyLmNvbXBvbmVudCc7XG5pbXBvcnQgeyBEckJ1dHRvbkNvbXBvbmVudCB9IGZyb20gJ3Byb2plY3RzL2RhdGFyYWlsc3NoYXJlZC9zcmMvcHVibGljLWFwaSc7XG5cbkBOZ01vZHVsZSh7XG4gICAgZGVjbGFyYXRpb25zOiBbRGVmYXVsdFRvYXN0ckNvbXBvbmVudF0sXG4gICAgaW1wb3J0czogW1xuICAgICAgICBDb21tb25Nb2R1bGUsXG4gICAgICAgIERyQnV0dG9uQ29tcG9uZW50LFxuICAgICAgICBUb2FzdHJNb2R1bGUuZm9yUm9vdCh7XG4gICAgICAgICAgICB0b2FzdENvbXBvbmVudDogRGVmYXVsdFRvYXN0ckNvbXBvbmVudCxcbiAgICAgICAgfSksXG4gICAgXSxcbiAgICBwcm92aWRlcnM6IFtEclRvYXN0clNlcnZpY2VdLFxufSlcbmV4cG9ydCBjbGFzcyBEclRvYXN0ck1vZHVsZSB7fVxuIl19
|
|
@@ -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';
|
|
@@ -13544,7 +13545,7 @@ class DefaultToastrComponent extends Toast {
|
|
|
13544
13545
|
/** @nocollapse */ static { this.ɵfac = function DefaultToastrComponent_Factory(t) { return new (t || DefaultToastrComponent)(i0.ɵɵdirectiveInject(i1$6.ToastrService), i0.ɵɵdirectiveInject(i1$6.ToastPackage)); }; }
|
|
13545
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) {
|
|
13546
13547
|
i0.ɵɵclassMap(ctx.class);
|
|
13547
|
-
} },
|
|
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) {
|
|
13548
13549
|
i0.ɵɵelement(0, "div", 0);
|
|
13549
13550
|
i0.ɵɵelementStart(1, "div", 1);
|
|
13550
13551
|
i0.ɵɵelement(2, "i", 2);
|
|
@@ -13570,11 +13571,11 @@ class DefaultToastrComponent extends Toast {
|
|
|
13570
13571
|
i0.ɵɵproperty("ngIf", !ctx.data.isHtmlBody)("ngIfElse", _r1);
|
|
13571
13572
|
i0.ɵɵadvance(3);
|
|
13572
13573
|
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: [
|
|
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 }); }
|
|
13574
13575
|
}
|
|
13575
13576
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DefaultToastrComponent, [{
|
|
13576
13577
|
type: Component,
|
|
13577
|
-
args: [{ selector: 'dr-default-toastr',
|
|
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"] }]
|
|
13578
13579
|
}], function () { return [{ type: i1$6.ToastrService }, { type: i1$6.ToastPackage }]; }, { class: [{
|
|
13579
13580
|
type: HostBinding,
|
|
13580
13581
|
args: ['class']
|
|
@@ -14827,7 +14828,7 @@ class DrToastrModule {
|
|
|
14827
14828
|
/** @nocollapse */ static { this.ɵfac = function DrToastrModule_Factory(t) { return new (t || DrToastrModule)(); }; }
|
|
14828
14829
|
/** @nocollapse */ static { this.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DrToastrModule }); }
|
|
14829
14830
|
/** @nocollapse */ static { this.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [DrToastrService], imports: [CommonModule,
|
|
14830
|
-
|
|
14831
|
+
DrButtonComponent$1,
|
|
14831
14832
|
ToastrModule.forRoot({
|
|
14832
14833
|
toastComponent: DefaultToastrComponent,
|
|
14833
14834
|
})] }); }
|
|
@@ -14835,10 +14836,10 @@ class DrToastrModule {
|
|
|
14835
14836
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrToastrModule, [{
|
|
14836
14837
|
type: NgModule,
|
|
14837
14838
|
args: [{
|
|
14838
|
-
declarations: [],
|
|
14839
|
+
declarations: [DefaultToastrComponent],
|
|
14839
14840
|
imports: [
|
|
14840
14841
|
CommonModule,
|
|
14841
|
-
|
|
14842
|
+
DrButtonComponent$1,
|
|
14842
14843
|
ToastrModule.forRoot({
|
|
14843
14844
|
toastComponent: DefaultToastrComponent,
|
|
14844
14845
|
}),
|
|
@@ -14846,8 +14847,8 @@ class DrToastrModule {
|
|
|
14846
14847
|
providers: [DrToastrService],
|
|
14847
14848
|
}]
|
|
14848
14849
|
}], null, null); })();
|
|
14849
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrToastrModule, { imports: [CommonModule,
|
|
14850
|
-
|
|
14850
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrToastrModule, { declarations: [DefaultToastrComponent], imports: [CommonModule,
|
|
14851
|
+
DrButtonComponent$1, i1$6.ToastrModule] }); })();
|
|
14851
14852
|
|
|
14852
14853
|
class DrCodeEditorModule {
|
|
14853
14854
|
/** @nocollapse */ static { this.ɵfac = function DrCodeEditorModule_Factory(t) { return new (t || DrCodeEditorModule)(); }; }
|