codexly-ui 0.16.0 → 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 +38 -25
- 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>
|
|
@@ -16713,12 +16713,12 @@ class ClxTableProductCellComponent {
|
|
|
16713
16713
|
price = input('', ...(ngDevMode ? [{ debugName: "price" }] : /* istanbul ignore next */ []));
|
|
16714
16714
|
soldQty = input('', ...(ngDevMode ? [{ debugName: "soldQty" }] : /* istanbul ignore next */ []));
|
|
16715
16715
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxTableProductCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16716
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxTableProductCellComponent, isStandalone: true, selector: "clx-table-product-cell", inputs: { imageSrc: { classPropertyName: "imageSrc", publicName: "imageSrc", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, category: { classPropertyName: "category", publicName: "category", isSignal: true, isRequired: false, transformFunction: null }, price: { classPropertyName: "price", publicName: "price", isSignal: true, isRequired: false, transformFunction: null }, soldQty: { classPropertyName: "soldQty", publicName: "soldQty", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "flex items-center
|
|
16717
|
-
<div class="flex items-center gap-2
|
|
16716
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxTableProductCellComponent, isStandalone: true, selector: "clx-table-product-cell", inputs: { imageSrc: { classPropertyName: "imageSrc", publicName: "imageSrc", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, category: { classPropertyName: "category", publicName: "category", isSignal: true, isRequired: false, transformFunction: null }, price: { classPropertyName: "price", publicName: "price", isSignal: true, isRequired: false, transformFunction: null }, soldQty: { classPropertyName: "soldQty", publicName: "soldQty", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "flex items-center gap-2 w-full min-w-0" }, ngImport: i0, template: `
|
|
16717
|
+
<div class="flex items-center gap-2 min-w-0 flex-1">
|
|
16718
16718
|
@if (imageSrc()) {
|
|
16719
|
-
<img [src]="imageSrc()" [alt]="name()" class="w-
|
|
16719
|
+
<img [src]="imageSrc()" [alt]="name()" class="w-8 h-8 rounded-lg object-cover shrink-0 bg-clx-surface-2" />
|
|
16720
16720
|
} @else {
|
|
16721
|
-
<div class="w-
|
|
16721
|
+
<div class="w-8 h-8 rounded-lg shrink-0 bg-clx-surface-2"></div>
|
|
16722
16722
|
}
|
|
16723
16723
|
<div class="min-w-0">
|
|
16724
16724
|
<p class="text-sm text-clx-text-label truncate">{{ name() }}</p>
|
|
@@ -16727,10 +16727,10 @@ class ClxTableProductCellComponent {
|
|
|
16727
16727
|
}
|
|
16728
16728
|
</div>
|
|
16729
16729
|
</div>
|
|
16730
|
-
<div class="text-right shrink-0">
|
|
16731
|
-
<p class="text-sm font-semibold text-clx-text tabular-nums">{{ price() }}</p>
|
|
16730
|
+
<div class="text-right shrink-0 min-w-0">
|
|
16731
|
+
<p class="text-sm font-semibold text-clx-text tabular-nums truncate">{{ price() }}</p>
|
|
16732
16732
|
@if (soldQty()) {
|
|
16733
|
-
<p class="text-xs text-clx-text-muted">{{ soldQty() }} vendidos</p>
|
|
16733
|
+
<p class="text-xs text-clx-text-muted whitespace-nowrap">{{ soldQty() }} vendidos</p>
|
|
16734
16734
|
}
|
|
16735
16735
|
</div>
|
|
16736
16736
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
@@ -16742,13 +16742,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
16742
16742
|
standalone: true,
|
|
16743
16743
|
encapsulation: ViewEncapsulation.None,
|
|
16744
16744
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16745
|
-
host: { class: 'flex items-center
|
|
16745
|
+
host: { class: 'flex items-center gap-2 w-full min-w-0' },
|
|
16746
16746
|
template: `
|
|
16747
|
-
<div class="flex items-center gap-2
|
|
16747
|
+
<div class="flex items-center gap-2 min-w-0 flex-1">
|
|
16748
16748
|
@if (imageSrc()) {
|
|
16749
|
-
<img [src]="imageSrc()" [alt]="name()" class="w-
|
|
16749
|
+
<img [src]="imageSrc()" [alt]="name()" class="w-8 h-8 rounded-lg object-cover shrink-0 bg-clx-surface-2" />
|
|
16750
16750
|
} @else {
|
|
16751
|
-
<div class="w-
|
|
16751
|
+
<div class="w-8 h-8 rounded-lg shrink-0 bg-clx-surface-2"></div>
|
|
16752
16752
|
}
|
|
16753
16753
|
<div class="min-w-0">
|
|
16754
16754
|
<p class="text-sm text-clx-text-label truncate">{{ name() }}</p>
|
|
@@ -16757,19 +16757,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
16757
16757
|
}
|
|
16758
16758
|
</div>
|
|
16759
16759
|
</div>
|
|
16760
|
-
<div class="text-right shrink-0">
|
|
16761
|
-
<p class="text-sm font-semibold text-clx-text tabular-nums">{{ price() }}</p>
|
|
16760
|
+
<div class="text-right shrink-0 min-w-0">
|
|
16761
|
+
<p class="text-sm font-semibold text-clx-text tabular-nums truncate">{{ price() }}</p>
|
|
16762
16762
|
@if (soldQty()) {
|
|
16763
|
-
<p class="text-xs text-clx-text-muted">{{ soldQty() }} vendidos</p>
|
|
16763
|
+
<p class="text-xs text-clx-text-muted whitespace-nowrap">{{ soldQty() }} vendidos</p>
|
|
16764
16764
|
}
|
|
16765
16765
|
</div>
|
|
16766
16766
|
`,
|
|
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)">
|