@ship-ui/core 0.14.6 → 0.14.8
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.
|
@@ -68,10 +68,11 @@ class ShipAlertComponent {
|
|
|
68
68
|
this.currentClasses = classMutationSignal();
|
|
69
69
|
this.activeClass = computed(() => {
|
|
70
70
|
const variant = this.variant();
|
|
71
|
+
const _current = `${this.currentClasses()} sh-sheet`;
|
|
71
72
|
if (!variant)
|
|
72
|
-
return
|
|
73
|
+
return _current;
|
|
73
74
|
const hasVariant = POSSIBLE_VARIANTS.find((x) => this.currentClasses().includes(x));
|
|
74
|
-
return hasVariant ?
|
|
75
|
+
return hasVariant ? _current : `${_current} ${variant}`;
|
|
75
76
|
}, ...(ngDevMode ? [{ debugName: "activeClass" }] : []));
|
|
76
77
|
}
|
|
77
78
|
#shConfig;
|
|
@@ -81,7 +82,7 @@ class ShipAlertComponent {
|
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
84
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ShipAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
84
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: ShipAlertComponent, isStandalone: true, selector: "sh-alert", inputs: { alertService: { classPropertyName: "alertService", publicName: "alertService", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, host: {
|
|
85
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: ShipAlertComponent, isStandalone: true, selector: "sh-alert", inputs: { alertService: { classPropertyName: "alertService", publicName: "alertService", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "activeClass()" } }, ngImport: i0, template: `
|
|
85
86
|
<div class="alert">
|
|
86
87
|
<div #ref class="icon" [style.display]="!ref.children.length ? 'none' : 'block'">
|
|
87
88
|
<ng-content select="[icon]" />
|
|
@@ -169,7 +170,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
169
170
|
`,
|
|
170
171
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
171
172
|
host: {
|
|
172
|
-
class: '
|
|
173
|
+
'[class]': 'activeClass()',
|
|
173
174
|
},
|
|
174
175
|
}]
|
|
175
176
|
}] });
|