codexly-ui 0.15.6 → 0.15.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.
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -15957,7 +15957,12 @@ 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 + justify-center (not h-full alone) so a parent grid cell taller than this card's
|
|
15961
|
+
// natural content centers it instead of stretching/cramming it — a card whose content is
|
|
15962
|
+
// genuinely shorter than the cell just sits centered, never squeezed or clipped. min-h-fit
|
|
15963
|
+
// guards the opposite case: a cell shorter than the content (e.g. horizontal's sparkline row)
|
|
15964
|
+
// still lets the card grow to its real height instead of clipping via overflow-hidden.
|
|
15965
|
+
const base = `bg-clx-surface ${radius} shadow-md border ${border} p-4 w-full h-full justify-center min-h-fit min-w-[200px]`;
|
|
15961
15966
|
// horizontal stacks its title row above its icon/value/sparkline row (flex-col); vertical/bar
|
|
15962
15967
|
// keep a single side-by-side row (flex items-center) as before.
|
|
15963
15968
|
const layoutCls = this.layout() === 'horizontal' ? 'flex flex-col gap-2' : 'flex items-center gap-3';
|
|
@@ -16100,8 +16105,8 @@ class ClxStatCardComponent {
|
|
|
16100
16105
|
@if (layout() === 'bar') {
|
|
16101
16106
|
<!-- Col izquierda: ícono circular + título + valor -->
|
|
16102
16107
|
<div class="flex flex-col gap-1 min-w-0 flex-1">
|
|
16103
|
-
<div class="w-
|
|
16104
|
-
<span clx-icon [name]="metric().icon" size="
|
|
16108
|
+
<div class="w-10 h-10 rounded-full flex items-center justify-center mb-2" [class]="_iconBgSubtle()">
|
|
16109
|
+
<span clx-icon [name]="metric().icon" size="sm" [class]="_iconTextBase()"></span>
|
|
16105
16110
|
</div>
|
|
16106
16111
|
<span class="text-sm text-clx-text-muted truncate">{{ metric().title }}</span>
|
|
16107
16112
|
<span class="text-2xl font-semibold text-clx-text leading-tight">{{ _formattedValue() }}</span>
|
|
@@ -16147,8 +16152,8 @@ class ClxStatCardComponent {
|
|
|
16147
16152
|
</div>
|
|
16148
16153
|
|
|
16149
16154
|
<!-- Col derecha: solo icono -->
|
|
16150
|
-
<div class="shrink-0 w-
|
|
16151
|
-
<span clx-icon [name]="metric().icon" size="
|
|
16155
|
+
<div class="shrink-0 w-10 h-10 rounded-xl flex items-center justify-center" [class]="_iconBg()">
|
|
16156
|
+
<span clx-icon [name]="metric().icon" size="sm" class="text-white"></span>
|
|
16152
16157
|
</div>
|
|
16153
16158
|
}
|
|
16154
16159
|
`, 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 +16220,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
16215
16220
|
@if (layout() === 'bar') {
|
|
16216
16221
|
<!-- Col izquierda: ícono circular + título + valor -->
|
|
16217
16222
|
<div class="flex flex-col gap-1 min-w-0 flex-1">
|
|
16218
|
-
<div class="w-
|
|
16219
|
-
<span clx-icon [name]="metric().icon" size="
|
|
16223
|
+
<div class="w-10 h-10 rounded-full flex items-center justify-center mb-2" [class]="_iconBgSubtle()">
|
|
16224
|
+
<span clx-icon [name]="metric().icon" size="sm" [class]="_iconTextBase()"></span>
|
|
16220
16225
|
</div>
|
|
16221
16226
|
<span class="text-sm text-clx-text-muted truncate">{{ metric().title }}</span>
|
|
16222
16227
|
<span class="text-2xl font-semibold text-clx-text leading-tight">{{ _formattedValue() }}</span>
|
|
@@ -16262,8 +16267,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
16262
16267
|
</div>
|
|
16263
16268
|
|
|
16264
16269
|
<!-- Col derecha: solo icono -->
|
|
16265
|
-
<div class="shrink-0 w-
|
|
16266
|
-
<span clx-icon [name]="metric().icon" size="
|
|
16270
|
+
<div class="shrink-0 w-10 h-10 rounded-xl flex items-center justify-center" [class]="_iconBg()">
|
|
16271
|
+
<span clx-icon [name]="metric().icon" size="sm" class="text-white"></span>
|
|
16267
16272
|
</div>
|
|
16268
16273
|
}
|
|
16269
16274
|
`,
|