@datarailsshared/datarailsshared 1.5.422 → 1.5.426
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/assets/styles/colors.scss +1 -0
- package/datarailsshared-datarailsshared-1.5.426.tgz +0 -0
- package/esm2022/lib/dr-alert/dr-alert.component.mjs +13 -15
- package/fesm2022/datarailsshared-datarailsshared.mjs +12 -14
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.5.422.tgz +0 -0
|
Binary file
|
|
@@ -2,18 +2,13 @@ import { ChangeDetectionStrategy, Component, HostBinding, Input } from '@angular
|
|
|
2
2
|
import { DrAlertTheme } from './enums/dr-alert-theme.enum';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "@angular/common";
|
|
5
|
-
function
|
|
6
|
-
i0.ɵɵ
|
|
7
|
-
i0.ɵɵ
|
|
8
|
-
i0.ɵɵelementStart(2, "span", 4);
|
|
9
|
-
i0.ɵɵtext(3);
|
|
5
|
+
function DrAlertComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
6
|
+
i0.ɵɵelementStart(0, "span", 4);
|
|
7
|
+
i0.ɵɵtext(1);
|
|
10
8
|
i0.ɵɵelementEnd();
|
|
11
|
-
i0.ɵɵelementContainerEnd();
|
|
12
9
|
} if (rf & 2) {
|
|
13
10
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
14
11
|
i0.ɵɵadvance(1);
|
|
15
|
-
i0.ɵɵclassMap("dr-alert__icon " + ctx_r0.themeIconClass);
|
|
16
|
-
i0.ɵɵadvance(2);
|
|
17
12
|
i0.ɵɵtextInterpolate(ctx_r0.text);
|
|
18
13
|
} }
|
|
19
14
|
const _c0 = ["*"];
|
|
@@ -37,22 +32,25 @@ export class DrAlertComponent {
|
|
|
37
32
|
/** @nocollapse */ static { this.ɵfac = function DrAlertComponent_Factory(t) { return new (t || DrAlertComponent)(); }; }
|
|
38
33
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAlertComponent, selectors: [["dr-alert"]], hostVars: 2, hostBindings: function DrAlertComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
39
34
|
i0.ɵɵclassMap(ctx.elementClass);
|
|
40
|
-
} }, inputs: { theme: "theme", customIconClass: "customIconClass", text: "text" }, ngContentSelectors: _c0, decls:
|
|
35
|
+
} }, inputs: { theme: "theme", customIconClass: "customIconClass", text: "text" }, ngContentSelectors: _c0, decls: 6, vars: 3, consts: [[1, "dr-alert__content-wrapper"], ["class", "dr-alert__text", 4, "ngIf"], [1, "dr-alert__custom-content"], ["contentRef", ""], [1, "dr-alert__text"]], template: function DrAlertComponent_Template(rf, ctx) { if (rf & 1) {
|
|
41
36
|
i0.ɵɵprojectionDef();
|
|
42
37
|
i0.ɵɵelementStart(0, "div", 0);
|
|
43
|
-
i0.ɵɵ
|
|
44
|
-
i0.ɵɵ
|
|
45
|
-
i0.ɵɵ
|
|
38
|
+
i0.ɵɵelement(1, "i");
|
|
39
|
+
i0.ɵɵtemplate(2, DrAlertComponent_span_2_Template, 2, 1, "span", 1);
|
|
40
|
+
i0.ɵɵelementStart(3, "div", 2, 3);
|
|
41
|
+
i0.ɵɵprojection(5);
|
|
46
42
|
i0.ɵɵelementEnd()();
|
|
47
43
|
} if (rf & 2) {
|
|
48
|
-
const _r1 = i0.ɵɵreference(
|
|
44
|
+
const _r1 = i0.ɵɵreference(4);
|
|
45
|
+
i0.ɵɵadvance(1);
|
|
46
|
+
i0.ɵɵclassMap("dr-alert__icon " + ctx.themeIconClass);
|
|
49
47
|
i0.ɵɵadvance(1);
|
|
50
48
|
i0.ɵɵproperty("ngIf", !_r1.innerHTML.trim());
|
|
51
49
|
} }, dependencies: [i1.NgIf], styles: ["[_nghost-%COMP%]{font-family:Poppins,sans-serif;display:flex;padding:8px 16px;align-items:center;border-radius:8px;min-height:56px;color:#6d6e6f}.dr-alert--info[_nghost-%COMP%]{background:#e6efff}.dr-alert--bold-error[_nghost-%COMP%]{color:#fff;background:#bf1d30}.dr-alert--error[_nghost-%COMP%]{background:#f7d9dc}.dr-alert--warning[_nghost-%COMP%]{background:#ffefc7}.dr-alert--success[_nghost-%COMP%]{background:#dbf5e6}[_nghost-%COMP%] .dr-alert__content-wrapper[_ngcontent-%COMP%]{display:flex;font-size:12px}[_nghost-%COMP%] .dr-alert__text[_ngcontent-%COMP%], [_nghost-%COMP%] .dr-alert__icon[_ngcontent-%COMP%], [_nghost-%COMP%] .dr-alert__custom-content[_ngcontent-%COMP%]{line-height:20px}[_nghost-%COMP%] .dr-alert__text[_ngcontent-%COMP%], [_nghost-%COMP%] .dr-alert__custom-content[_ngcontent-%COMP%]{margin-left:8px;white-space:pre-line}"], changeDetection: 0 }); }
|
|
52
50
|
}
|
|
53
51
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrAlertComponent, [{
|
|
54
52
|
type: Component,
|
|
55
|
-
args: [{ selector: 'dr-alert', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"dr-alert__content-wrapper\">\n <
|
|
53
|
+
args: [{ selector: 'dr-alert', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"dr-alert__content-wrapper\">\n <i [class]=\"'dr-alert__icon ' + themeIconClass\"></i>\n <span *ngIf=\"!contentRef.innerHTML.trim()\" class=\"dr-alert__text\">{{ text }}</span>\n <div class=\"dr-alert__custom-content\" #contentRef>\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [":host{font-family:Poppins,sans-serif;display:flex;padding:8px 16px;align-items:center;border-radius:8px;min-height:56px;color:#6d6e6f}:host.dr-alert--info{background:#e6efff}:host.dr-alert--bold-error{color:#fff;background:#bf1d30}:host.dr-alert--error{background:#f7d9dc}:host.dr-alert--warning{background:#ffefc7}:host.dr-alert--success{background:#dbf5e6}:host .dr-alert__content-wrapper{display:flex;font-size:12px}:host .dr-alert__text,:host .dr-alert__icon,:host .dr-alert__custom-content{line-height:20px}:host .dr-alert__text,:host .dr-alert__custom-content{margin-left:8px;white-space:pre-line}\n"] }]
|
|
56
54
|
}], null, { theme: [{
|
|
57
55
|
type: Input
|
|
58
56
|
}], customIconClass: [{
|
|
@@ -63,4 +61,4 @@ export class DrAlertComponent {
|
|
|
63
61
|
type: HostBinding,
|
|
64
62
|
args: ['class']
|
|
65
63
|
}] }); })();
|
|
66
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
64
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHItYWxlcnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZGF0YXJhaWxzc2hhcmVkL3NyYy9saWIvZHItYWxlcnQvZHItYWxlcnQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZGF0YXJhaWxzc2hhcmVkL3NyYy9saWIvZHItYWxlcnQvZHItYWxlcnQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxXQUFXLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3ZGLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQzs7OztJQ0N2RCwrQkFBa0U7SUFBQSxZQUFVO0lBQUEsaUJBQU87OztJQUFqQixlQUFVO0lBQVYsaUNBQVU7OztBRENoRixNQUFNLGlCQUFpQixHQUFHO0lBQ3RCLENBQUMsWUFBWSxDQUFDLE9BQU8sQ0FBQyxFQUFFLDBCQUEwQjtJQUNsRCxDQUFDLFlBQVksQ0FBQyxVQUFVLENBQUMsRUFBRSxlQUFlO0lBQzFDLENBQUMsWUFBWSxDQU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hlbWVJY29uQ2xhc3MoKTogc3RyaW5nIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuY3VzdG9tSWNvbkNsYXNzIHx8IEFMRVJUX1RIRU1FX0lDT05TW3RoaXMudGhlbWVdO1xuICAgIH1cbn1cbiIsIjxkaXYgY2xhc3M9XCJkci1hbGVydF9fY29udGVudC13cmFwcGVyXCI+XG4gICAgPGkgW2NsYXNzXT1cIidkci1hbGVydF9faWNvbiAnICsgdGhlbWVJY29uQ2xhc3NcIj48L2k+XG4gICAgPHNwYW4gKm5nSWY9XCIhY29udGVudFJlZi5pbm5lckhUTUwudHJpbSgpXCIgY2xhc3M9XCJkci1hbGVydF9fdGV4dFwiPnt7IHRleHQgfX08L3NwYW4+XG4gICAgPGRpdiBjbGFzcz1cImRyLWFsZXJ0X19jdXN0b20tY29udGVudFwiICNjb250ZW50UmVmPlxuICAgICAgICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG4gICAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -6353,18 +6353,13 @@ var DrAlertTheme;
|
|
|
6353
6353
|
DrAlertTheme["INFO"] = "info";
|
|
6354
6354
|
})(DrAlertTheme || (DrAlertTheme = {}));
|
|
6355
6355
|
|
|
6356
|
-
function
|
|
6357
|
-
i0.ɵɵ
|
|
6358
|
-
i0.ɵɵ
|
|
6359
|
-
i0.ɵɵelementStart(2, "span", 4);
|
|
6360
|
-
i0.ɵɵtext(3);
|
|
6356
|
+
function DrAlertComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
6357
|
+
i0.ɵɵelementStart(0, "span", 4);
|
|
6358
|
+
i0.ɵɵtext(1);
|
|
6361
6359
|
i0.ɵɵelementEnd();
|
|
6362
|
-
i0.ɵɵelementContainerEnd();
|
|
6363
6360
|
} if (rf & 2) {
|
|
6364
6361
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
6365
6362
|
i0.ɵɵadvance(1);
|
|
6366
|
-
i0.ɵɵclassMap("dr-alert__icon " + ctx_r0.themeIconClass);
|
|
6367
|
-
i0.ɵɵadvance(2);
|
|
6368
6363
|
i0.ɵɵtextInterpolate(ctx_r0.text);
|
|
6369
6364
|
} }
|
|
6370
6365
|
const _c0$j = ["*"];
|
|
@@ -6388,22 +6383,25 @@ class DrAlertComponent {
|
|
|
6388
6383
|
/** @nocollapse */ static { this.ɵfac = function DrAlertComponent_Factory(t) { return new (t || DrAlertComponent)(); }; }
|
|
6389
6384
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAlertComponent, selectors: [["dr-alert"]], hostVars: 2, hostBindings: function DrAlertComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
6390
6385
|
i0.ɵɵclassMap(ctx.elementClass);
|
|
6391
|
-
} }, inputs: { theme: "theme", customIconClass: "customIconClass", text: "text" }, ngContentSelectors: _c0$j, decls:
|
|
6386
|
+
} }, inputs: { theme: "theme", customIconClass: "customIconClass", text: "text" }, ngContentSelectors: _c0$j, decls: 6, vars: 3, consts: [[1, "dr-alert__content-wrapper"], ["class", "dr-alert__text", 4, "ngIf"], [1, "dr-alert__custom-content"], ["contentRef", ""], [1, "dr-alert__text"]], template: function DrAlertComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6392
6387
|
i0.ɵɵprojectionDef();
|
|
6393
6388
|
i0.ɵɵelementStart(0, "div", 0);
|
|
6394
|
-
i0.ɵɵ
|
|
6395
|
-
i0.ɵɵ
|
|
6396
|
-
i0.ɵɵ
|
|
6389
|
+
i0.ɵɵelement(1, "i");
|
|
6390
|
+
i0.ɵɵtemplate(2, DrAlertComponent_span_2_Template, 2, 1, "span", 1);
|
|
6391
|
+
i0.ɵɵelementStart(3, "div", 2, 3);
|
|
6392
|
+
i0.ɵɵprojection(5);
|
|
6397
6393
|
i0.ɵɵelementEnd()();
|
|
6398
6394
|
} if (rf & 2) {
|
|
6399
|
-
const _r1 = i0.ɵɵreference(
|
|
6395
|
+
const _r1 = i0.ɵɵreference(4);
|
|
6396
|
+
i0.ɵɵadvance(1);
|
|
6397
|
+
i0.ɵɵclassMap("dr-alert__icon " + ctx.themeIconClass);
|
|
6400
6398
|
i0.ɵɵadvance(1);
|
|
6401
6399
|
i0.ɵɵproperty("ngIf", !_r1.innerHTML.trim());
|
|
6402
6400
|
} }, dependencies: [i1.NgIf], styles: ["[_nghost-%COMP%]{font-family:Poppins,sans-serif;display:flex;padding:8px 16px;align-items:center;border-radius:8px;min-height:56px;color:#6d6e6f}.dr-alert--info[_nghost-%COMP%]{background:#e6efff}.dr-alert--bold-error[_nghost-%COMP%]{color:#fff;background:#bf1d30}.dr-alert--error[_nghost-%COMP%]{background:#f7d9dc}.dr-alert--warning[_nghost-%COMP%]{background:#ffefc7}.dr-alert--success[_nghost-%COMP%]{background:#dbf5e6}[_nghost-%COMP%] .dr-alert__content-wrapper[_ngcontent-%COMP%]{display:flex;font-size:12px}[_nghost-%COMP%] .dr-alert__text[_ngcontent-%COMP%], [_nghost-%COMP%] .dr-alert__icon[_ngcontent-%COMP%], [_nghost-%COMP%] .dr-alert__custom-content[_ngcontent-%COMP%]{line-height:20px}[_nghost-%COMP%] .dr-alert__text[_ngcontent-%COMP%], [_nghost-%COMP%] .dr-alert__custom-content[_ngcontent-%COMP%]{margin-left:8px;white-space:pre-line}"], changeDetection: 0 }); }
|
|
6403
6401
|
}
|
|
6404
6402
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrAlertComponent, [{
|
|
6405
6403
|
type: Component,
|
|
6406
|
-
args: [{ selector: 'dr-alert', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"dr-alert__content-wrapper\">\n <
|
|
6404
|
+
args: [{ selector: 'dr-alert', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"dr-alert__content-wrapper\">\n <i [class]=\"'dr-alert__icon ' + themeIconClass\"></i>\n <span *ngIf=\"!contentRef.innerHTML.trim()\" class=\"dr-alert__text\">{{ text }}</span>\n <div class=\"dr-alert__custom-content\" #contentRef>\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [":host{font-family:Poppins,sans-serif;display:flex;padding:8px 16px;align-items:center;border-radius:8px;min-height:56px;color:#6d6e6f}:host.dr-alert--info{background:#e6efff}:host.dr-alert--bold-error{color:#fff;background:#bf1d30}:host.dr-alert--error{background:#f7d9dc}:host.dr-alert--warning{background:#ffefc7}:host.dr-alert--success{background:#dbf5e6}:host .dr-alert__content-wrapper{display:flex;font-size:12px}:host .dr-alert__text,:host .dr-alert__icon,:host .dr-alert__custom-content{line-height:20px}:host .dr-alert__text,:host .dr-alert__custom-content{margin-left:8px;white-space:pre-line}\n"] }]
|
|
6407
6405
|
}], null, { theme: [{
|
|
6408
6406
|
type: Input
|
|
6409
6407
|
}], customIconClass: [{
|