codexly-ui 0.15.6 → 0.15.7
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/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -15957,7 +15957,10 @@ class ClxStatCardComponent {
|
|
|
15957
15957
|
_hostClass = computed(() => {
|
|
15958
15958
|
const border = resolveColor(this.color()).borderLight;
|
|
15959
15959
|
const radius = resolveContainerRadius(this._themeSvc.config().borderRadius);
|
|
15960
|
-
|
|
15960
|
+
// h-full so every layout fills whatever height its parent grid cell actually gives it, instead
|
|
15961
|
+
// of only growing to fit its own content — otherwise two cards of the same grid size look like
|
|
15962
|
+
// different heights depending on which of the 3 layouts got picked for each.
|
|
15963
|
+
const base = `bg-clx-surface ${radius} shadow-md border ${border} p-4 w-full h-full overflow-hidden min-w-[200px]`;
|
|
15961
15964
|
// horizontal stacks its title row above its icon/value/sparkline row (flex-col); vertical/bar
|
|
15962
15965
|
// keep a single side-by-side row (flex items-center) as before.
|
|
15963
15966
|
const layoutCls = this.layout() === 'horizontal' ? 'flex flex-col gap-2' : 'flex items-center gap-3';
|
|
@@ -16100,8 +16103,8 @@ class ClxStatCardComponent {
|
|
|
16100
16103
|
@if (layout() === 'bar') {
|
|
16101
16104
|
<!-- Col izquierda: ícono circular + título + valor -->
|
|
16102
16105
|
<div class="flex flex-col gap-1 min-w-0 flex-1">
|
|
16103
|
-
<div class="w-
|
|
16104
|
-
<span clx-icon [name]="metric().icon" size="
|
|
16106
|
+
<div class="w-10 h-10 rounded-full flex items-center justify-center mb-2" [class]="_iconBgSubtle()">
|
|
16107
|
+
<span clx-icon [name]="metric().icon" size="sm" [class]="_iconTextBase()"></span>
|
|
16105
16108
|
</div>
|
|
16106
16109
|
<span class="text-sm text-clx-text-muted truncate">{{ metric().title }}</span>
|
|
16107
16110
|
<span class="text-2xl font-semibold text-clx-text leading-tight">{{ _formattedValue() }}</span>
|
|
@@ -16147,8 +16150,8 @@ class ClxStatCardComponent {
|
|
|
16147
16150
|
</div>
|
|
16148
16151
|
|
|
16149
16152
|
<!-- Col derecha: solo icono -->
|
|
16150
|
-
<div class="shrink-0 w-
|
|
16151
|
-
<span clx-icon [name]="metric().icon" size="
|
|
16153
|
+
<div class="shrink-0 w-10 h-10 rounded-xl flex items-center justify-center" [class]="_iconBg()">
|
|
16154
|
+
<span clx-icon [name]="metric().icon" size="sm" class="text-white"></span>
|
|
16152
16155
|
</div>
|
|
16153
16156
|
}
|
|
16154
16157
|
`, isInline: true, dependencies: [{ kind: "component", type: ClxBadgeComponent, selector: "span[clx-badge]", inputs: ["variant", "color", "size", "shape", "positioned"] }, { kind: "component", type: ClxIconComponent, selector: "span[clx-icon]", inputs: ["name", "size", "color", "fill"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
@@ -16215,8 +16218,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
16215
16218
|
@if (layout() === 'bar') {
|
|
16216
16219
|
<!-- Col izquierda: ícono circular + título + valor -->
|
|
16217
16220
|
<div class="flex flex-col gap-1 min-w-0 flex-1">
|
|
16218
|
-
<div class="w-
|
|
16219
|
-
<span clx-icon [name]="metric().icon" size="
|
|
16221
|
+
<div class="w-10 h-10 rounded-full flex items-center justify-center mb-2" [class]="_iconBgSubtle()">
|
|
16222
|
+
<span clx-icon [name]="metric().icon" size="sm" [class]="_iconTextBase()"></span>
|
|
16220
16223
|
</div>
|
|
16221
16224
|
<span class="text-sm text-clx-text-muted truncate">{{ metric().title }}</span>
|
|
16222
16225
|
<span class="text-2xl font-semibold text-clx-text leading-tight">{{ _formattedValue() }}</span>
|
|
@@ -16262,8 +16265,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
16262
16265
|
</div>
|
|
16263
16266
|
|
|
16264
16267
|
<!-- Col derecha: solo icono -->
|
|
16265
|
-
<div class="shrink-0 w-
|
|
16266
|
-
<span clx-icon [name]="metric().icon" size="
|
|
16268
|
+
<div class="shrink-0 w-10 h-10 rounded-xl flex items-center justify-center" [class]="_iconBg()">
|
|
16269
|
+
<span clx-icon [name]="metric().icon" size="sm" class="text-white"></span>
|
|
16267
16270
|
</div>
|
|
16268
16271
|
}
|
|
16269
16272
|
`,
|