clr-lift 1.1.1 → 1.2.0
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/esm2022/lib/components/alert/alert.component.mjs +4 -3
- package/esm2022/lib/components/alerts/alert.type.mjs +1 -1
- package/fesm2022/clr-lift.mjs +3 -2
- package/fesm2022/clr-lift.mjs.map +1 -1
- package/lib/components/alert/alert.component.d.ts +2 -1
- package/lib/components/alerts/alert-container.component.d.ts +2 -1
- package/lib/components/alerts/alert.service.d.ts +2 -1
- package/lib/components/alerts/alert.type.d.ts +7 -3
- package/lib/components/status-indicator/status-indicator.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6,15 +6,16 @@ export class AlertComponent {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
this.alertType = input('danger');
|
|
8
8
|
this.isSmall = input(false);
|
|
9
|
+
this.isLightweight = input(false);
|
|
9
10
|
this.isAppLevel = input(false);
|
|
10
11
|
this.error = input();
|
|
11
12
|
this.content = input('');
|
|
12
13
|
}
|
|
13
14
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: AlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.10", type: AlertComponent, isStandalone: true, selector: "cll-alert", inputs: { alertType: { classPropertyName: "alertType", publicName: "alertType", isSignal: true, isRequired: false, transformFunction: null }, isSmall: { classPropertyName: "isSmall", publicName: "isSmall", isSignal: true, isRequired: false, transformFunction: null }, isAppLevel: { classPropertyName: "isAppLevel", publicName: "isAppLevel", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<clr-alert
|
|
15
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.10", type: AlertComponent, isStandalone: true, selector: "cll-alert", inputs: { alertType: { classPropertyName: "alertType", publicName: "alertType", isSignal: true, isRequired: false, transformFunction: null }, isSmall: { classPropertyName: "isSmall", publicName: "isSmall", isSignal: true, isRequired: false, transformFunction: null }, isLightweight: { classPropertyName: "isLightweight", publicName: "isLightweight", isSignal: true, isRequired: false, transformFunction: null }, isAppLevel: { classPropertyName: "isAppLevel", publicName: "isAppLevel", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<clr-alert\n [clrAlertType]=\"alertType()\"\n [clrAlertSizeSmall]=\"isSmall()\"\n [clrAlertAppLevel]=\"isAppLevel()\"\n [clrAlertLightweight]=\"isLightweight()\"\n>\n <clr-alert-item>\n @if (error()) {\n <span class=\"alert-text\" role=\"alert\">{{ error()?.error.message || error()?.message }}</span>\n }\n @if (content()) {\n <span class=\"alert-text\" role=\"alert\" [innerHTML]=\"content()\"></span>\n }\n </clr-alert-item>\n</clr-alert>\n", styles: [":host{display:block}:host .alert-text{word-break:break-all}\n"], dependencies: [{ kind: "ngmodule", type: ClarityModule }, { kind: "component", type: i1.ClrAlert, selector: "clr-alert", inputs: ["clrAlertSizeSmall", "clrAlertClosable", "clrAlertAppLevel", "clrCloseButtonAriaLabel", "clrAlertLightweight", "clrAlertType", "clrAlertIcon", "clrAlertClosed"], outputs: ["clrAlertClosedChange"] }, { kind: "component", type: i1.ClrAlertItem, selector: "clr-alert-item" }, { kind: "directive", type: i1.ClrAlertText, selector: ".alert-text" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15
16
|
}
|
|
16
17
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: AlertComponent, decorators: [{
|
|
17
18
|
type: Component,
|
|
18
|
-
args: [{ selector: 'cll-alert', standalone: true, imports: [ClarityModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<clr-alert
|
|
19
|
+
args: [{ selector: 'cll-alert', standalone: true, imports: [ClarityModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<clr-alert\n [clrAlertType]=\"alertType()\"\n [clrAlertSizeSmall]=\"isSmall()\"\n [clrAlertAppLevel]=\"isAppLevel()\"\n [clrAlertLightweight]=\"isLightweight()\"\n>\n <clr-alert-item>\n @if (error()) {\n <span class=\"alert-text\" role=\"alert\">{{ error()?.error.message || error()?.message }}</span>\n }\n @if (content()) {\n <span class=\"alert-text\" role=\"alert\" [innerHTML]=\"content()\"></span>\n }\n </clr-alert-item>\n</clr-alert>\n", styles: [":host{display:block}:host .alert-text{word-break:break-all}\n"] }]
|
|
19
20
|
}] });
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2xyLWxpZnQvc3JjL2xpYi9jb21wb25lbnRzL2FsZXJ0L2FsZXJ0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nsci1saWZ0L3NyYy9saWIvY29tcG9uZW50cy9hbGVydC9hbGVydC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUMsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN4RSxPQUFPLEVBQUMsYUFBYSxFQUFDLE1BQU0sY0FBYyxDQUFDOzs7QUFZM0MsTUFBTSxPQUFPLGNBQWM7SUFSM0I7UUFTRSxjQUFTLEdBQUcs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{
|
|
|
20
20
|
constructor() {
|
|
21
21
|
this.alertType = input('danger');
|
|
22
22
|
this.isSmall = input(false);
|
|
23
|
+
this.isLightweight = input(false);
|
|
23
24
|
this.isAppLevel = input(false);
|
|
24
25
|
this.error = input();
|
|
25
26
|
this.content = input('');
|
|
26
27
|
}
|
|
27
28
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: AlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
28
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.10", type: AlertComponent, isStandalone: true, selector: "cll-alert", inputs: { alertType: { classPropertyName: "alertType", publicName: "alertType", isSignal: true, isRequired: false, transformFunction: null }, isSmall: { classPropertyName: "isSmall", publicName: "isSmall", isSignal: true, isRequired: false, transformFunction: null }, isAppLevel: { classPropertyName: "isAppLevel", publicName: "isAppLevel", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<clr-alert
|
|
29
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.10", type: AlertComponent, isStandalone: true, selector: "cll-alert", inputs: { alertType: { classPropertyName: "alertType", publicName: "alertType", isSignal: true, isRequired: false, transformFunction: null }, isSmall: { classPropertyName: "isSmall", publicName: "isSmall", isSignal: true, isRequired: false, transformFunction: null }, isLightweight: { classPropertyName: "isLightweight", publicName: "isLightweight", isSignal: true, isRequired: false, transformFunction: null }, isAppLevel: { classPropertyName: "isAppLevel", publicName: "isAppLevel", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<clr-alert\n [clrAlertType]=\"alertType()\"\n [clrAlertSizeSmall]=\"isSmall()\"\n [clrAlertAppLevel]=\"isAppLevel()\"\n [clrAlertLightweight]=\"isLightweight()\"\n>\n <clr-alert-item>\n @if (error()) {\n <span class=\"alert-text\" role=\"alert\">{{ error()?.error.message || error()?.message }}</span>\n }\n @if (content()) {\n <span class=\"alert-text\" role=\"alert\" [innerHTML]=\"content()\"></span>\n }\n </clr-alert-item>\n</clr-alert>\n", styles: [":host{display:block}:host .alert-text{word-break:break-all}\n"], dependencies: [{ kind: "ngmodule", type: ClarityModule }, { kind: "component", type: i1.ClrAlert, selector: "clr-alert", inputs: ["clrAlertSizeSmall", "clrAlertClosable", "clrAlertAppLevel", "clrCloseButtonAriaLabel", "clrAlertLightweight", "clrAlertType", "clrAlertIcon", "clrAlertClosed"], outputs: ["clrAlertClosedChange"] }, { kind: "component", type: i1.ClrAlertItem, selector: "clr-alert-item" }, { kind: "directive", type: i1.ClrAlertText, selector: ".alert-text" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
29
30
|
}
|
|
30
31
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: AlertComponent, decorators: [{
|
|
31
32
|
type: Component,
|
|
32
|
-
args: [{ selector: 'cll-alert', standalone: true, imports: [ClarityModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<clr-alert
|
|
33
|
+
args: [{ selector: 'cll-alert', standalone: true, imports: [ClarityModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<clr-alert\n [clrAlertType]=\"alertType()\"\n [clrAlertSizeSmall]=\"isSmall()\"\n [clrAlertAppLevel]=\"isAppLevel()\"\n [clrAlertLightweight]=\"isLightweight()\"\n>\n <clr-alert-item>\n @if (error()) {\n <span class=\"alert-text\" role=\"alert\">{{ error()?.error.message || error()?.message }}</span>\n }\n @if (content()) {\n <span class=\"alert-text\" role=\"alert\" [innerHTML]=\"content()\"></span>\n }\n </clr-alert-item>\n</clr-alert>\n", styles: [":host{display:block}:host .alert-text{word-break:break-all}\n"] }]
|
|
33
34
|
}] });
|
|
34
35
|
|
|
35
36
|
class AlertService {
|