codexly-ui 0.16.1 → 0.16.2
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 +24 -11
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/codexly-ui.d.ts +21 -15
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -16120,8 +16120,8 @@ class ClxStatCardComponent {
|
|
|
16120
16120
|
<div class="w-full flex items-center gap-2">
|
|
16121
16121
|
<!-- Icon + value -->
|
|
16122
16122
|
<div class="flex items-center gap-2 min-w-0 flex-1">
|
|
16123
|
-
<div class="shrink-0 w-9 h-9 rounded-full flex items-center justify-center" [class]="
|
|
16124
|
-
<span clx-icon [name]="metric().icon" size="sm"
|
|
16123
|
+
<div class="shrink-0 w-9 h-9 rounded-full flex items-center justify-center" [class]="_iconBg()">
|
|
16124
|
+
<span clx-icon [name]="metric().icon" size="sm" class="text-white"></span>
|
|
16125
16125
|
</div>
|
|
16126
16126
|
<span class="text-lg font-semibold text-clx-text leading-tight">{{ _formattedValue() }}</span>
|
|
16127
16127
|
</div>
|
|
@@ -16285,8 +16285,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
16285
16285
|
<div class="w-full flex items-center gap-2">
|
|
16286
16286
|
<!-- Icon + value -->
|
|
16287
16287
|
<div class="flex items-center gap-2 min-w-0 flex-1">
|
|
16288
|
-
<div class="shrink-0 w-9 h-9 rounded-full flex items-center justify-center" [class]="
|
|
16289
|
-
<span clx-icon [name]="metric().icon" size="sm"
|
|
16288
|
+
<div class="shrink-0 w-9 h-9 rounded-full flex items-center justify-center" [class]="_iconBg()">
|
|
16289
|
+
<span clx-icon [name]="metric().icon" size="sm" class="text-white"></span>
|
|
16290
16290
|
</div>
|
|
16291
16291
|
<span class="text-lg font-semibold text-clx-text leading-tight">{{ _formattedValue() }}</span>
|
|
16292
16292
|
</div>
|
|
@@ -16767,9 +16767,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
16767
16767
|
}]
|
|
16768
16768
|
}], propDecorators: { imageSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "imageSrc", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], category: [{ type: i0.Input, args: [{ isSignal: true, alias: "category", required: false }] }], price: [{ type: i0.Input, args: [{ isSignal: true, alias: "price", required: false }] }], soldQty: [{ type: i0.Input, args: [{ isSignal: true, alias: "soldQty", required: false }] }] } });
|
|
16769
16769
|
|
|
16770
|
-
/** A ranking: color dot + label on the left, optional trend badge +
|
|
16771
|
-
* selling categories" or "Sales by channel" on a dashboard.
|
|
16772
|
-
* ClxListItemComponent (their clxLead/clxTrail slots) rather than
|
|
16770
|
+
/** A ranking: color dot (or a saturated icon circle) + label on the left, optional trend badge +
|
|
16771
|
+
* value on the right — e.g. "Top selling categories" or "Sales by channel" on a dashboard.
|
|
16772
|
+
* Composes ClxListComponent/ClxListItemComponent (their clxLead/clxTrail slots) rather than
|
|
16773
|
+
* reinventing list chrome. */
|
|
16773
16774
|
class ClxRankedListComponent {
|
|
16774
16775
|
items = input.required(...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
16775
16776
|
color = input(undefined, ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
@@ -16786,8 +16787,14 @@ class ClxRankedListComponent {
|
|
|
16786
16787
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxRankedListComponent, isStandalone: true, selector: "clx-ranked-list", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
16787
16788
|
<clx-list [color]="color()">
|
|
16788
16789
|
@for (item of items(); track item.label) {
|
|
16789
|
-
<clx-list-item [label]="item.label">
|
|
16790
|
-
|
|
16790
|
+
<clx-list-item [label]="item.label" [sublabel]="item.sublabel ?? ''">
|
|
16791
|
+
@if (item.icon) {
|
|
16792
|
+
<div clxLead class="w-9 h-9 rounded-full flex items-center justify-center shrink-0" [class]="dotClass(item.colorDot)">
|
|
16793
|
+
<span clx-icon [name]="item.icon" size="sm" class="text-white"></span>
|
|
16794
|
+
</div>
|
|
16795
|
+
} @else {
|
|
16796
|
+
<span clxLead class="w-2 h-2 rounded-full shrink-0" [class]="dotClass(item.colorDot)"></span>
|
|
16797
|
+
}
|
|
16791
16798
|
<div clxTrail class="flex items-center gap-2">
|
|
16792
16799
|
@if (item.trend) {
|
|
16793
16800
|
<span clx-badge size="xs" variant="light" shape="pill" [color]="trendColor(item.trendDirection)">
|
|
@@ -16812,8 +16819,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
16812
16819
|
template: `
|
|
16813
16820
|
<clx-list [color]="color()">
|
|
16814
16821
|
@for (item of items(); track item.label) {
|
|
16815
|
-
<clx-list-item [label]="item.label">
|
|
16816
|
-
|
|
16822
|
+
<clx-list-item [label]="item.label" [sublabel]="item.sublabel ?? ''">
|
|
16823
|
+
@if (item.icon) {
|
|
16824
|
+
<div clxLead class="w-9 h-9 rounded-full flex items-center justify-center shrink-0" [class]="dotClass(item.colorDot)">
|
|
16825
|
+
<span clx-icon [name]="item.icon" size="sm" class="text-white"></span>
|
|
16826
|
+
</div>
|
|
16827
|
+
} @else {
|
|
16828
|
+
<span clxLead class="w-2 h-2 rounded-full shrink-0" [class]="dotClass(item.colorDot)"></span>
|
|
16829
|
+
}
|
|
16817
16830
|
<div clxTrail class="flex items-center gap-2">
|
|
16818
16831
|
@if (item.trend) {
|
|
16819
16832
|
<span clx-badge size="xs" variant="light" shape="pill" [color]="trendColor(item.trendDirection)">
|