codexly-ui 0.10.90 → 0.10.91
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
|
@@ -15522,10 +15522,14 @@ class ClxCartComponent {
|
|
|
15522
15522
|
items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
15523
15523
|
loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
15524
15524
|
color = input('indigo', ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
15525
|
+
/** Overrides only the quantity stepper's color, independent of `color` — same override pattern
|
|
15526
|
+
* as clx-product-detail's per-element color inputs. Falls back to `color()` when unset. */
|
|
15527
|
+
quantityColor = input(undefined, ...(ngDevMode ? [{ debugName: "quantityColor" }] : /* istanbul ignore next */ []));
|
|
15525
15528
|
/** Hide the coupon block entirely when the host app has no coupon backend to back it —
|
|
15526
15529
|
* showing a code input that always fails would read as broken, not "not built yet". */
|
|
15527
15530
|
showCoupon = input(true, ...(ngDevMode ? [{ debugName: "showCoupon" }] : /* istanbul ignore next */ []));
|
|
15528
15531
|
coupon = model(null, ...(ngDevMode ? [{ debugName: "coupon" }] : /* istanbul ignore next */ []));
|
|
15532
|
+
_quantityColor = computed(() => this.quantityColor() ?? this.color(), ...(ngDevMode ? [{ debugName: "_quantityColor" }] : /* istanbul ignore next */ []));
|
|
15529
15533
|
onRemove = output();
|
|
15530
15534
|
onQuantityChange = output();
|
|
15531
15535
|
onClearCart = output();
|
|
@@ -15561,7 +15565,7 @@ class ClxCartComponent {
|
|
|
15561
15565
|
this.coupon.set(null);
|
|
15562
15566
|
}
|
|
15563
15567
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxCartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
15564
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxCartComponent, isStandalone: true, selector: "clx-cart", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, showCoupon: { classPropertyName: "showCoupon", publicName: "showCoupon", isSignal: true, isRequired: false, transformFunction: null }, coupon: { classPropertyName: "coupon", publicName: "coupon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { coupon: "couponChange", onRemove: "onRemove", onQuantityChange: "onQuantityChange", onClearCart: "onClearCart", onApplyCoupon: "onApplyCoupon", onCheckout: "onCheckout", onBrowseCatalog: "onBrowseCatalog" }, ngImport: i0, template: `
|
|
15568
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxCartComponent, isStandalone: true, selector: "clx-cart", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, quantityColor: { classPropertyName: "quantityColor", publicName: "quantityColor", isSignal: true, isRequired: false, transformFunction: null }, showCoupon: { classPropertyName: "showCoupon", publicName: "showCoupon", isSignal: true, isRequired: false, transformFunction: null }, coupon: { classPropertyName: "coupon", publicName: "coupon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { coupon: "couponChange", onRemove: "onRemove", onQuantityChange: "onQuantityChange", onClearCart: "onClearCart", onApplyCoupon: "onApplyCoupon", onCheckout: "onCheckout", onBrowseCatalog: "onBrowseCatalog" }, ngImport: i0, template: `
|
|
15565
15569
|
<!-- ── Loading ─────────────────────────────────────────────────────────────── -->
|
|
15566
15570
|
@if (loading()) {
|
|
15567
15571
|
|
|
@@ -15701,7 +15705,7 @@ class ClxCartComponent {
|
|
|
15701
15705
|
<!-- Quantity control + Total -->
|
|
15702
15706
|
<div class="flex items-end gap-3">
|
|
15703
15707
|
<clx-number
|
|
15704
|
-
variant="stepper" size="sm" [color]="
|
|
15708
|
+
variant="stepper" size="sm" [color]="_quantityColor()"
|
|
15705
15709
|
[min]="1" [max]="item.max_quantity ?? null"
|
|
15706
15710
|
[disabled]="!item.in_stock"
|
|
15707
15711
|
[ngModel]="item.quantity"
|
|
@@ -15982,7 +15986,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
15982
15986
|
<!-- Quantity control + Total -->
|
|
15983
15987
|
<div class="flex items-end gap-3">
|
|
15984
15988
|
<clx-number
|
|
15985
|
-
variant="stepper" size="sm" [color]="
|
|
15989
|
+
variant="stepper" size="sm" [color]="_quantityColor()"
|
|
15986
15990
|
[min]="1" [max]="item.max_quantity ?? null"
|
|
15987
15991
|
[disabled]="!item.in_stock"
|
|
15988
15992
|
[ngModel]="item.quantity"
|
|
@@ -16105,7 +16109,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
16105
16109
|
}
|
|
16106
16110
|
`,
|
|
16107
16111
|
}]
|
|
16108
|
-
}], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], showCoupon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCoupon", required: false }] }], coupon: [{ type: i0.Input, args: [{ isSignal: true, alias: "coupon", required: false }] }, { type: i0.Output, args: ["couponChange"] }], onRemove: [{ type: i0.Output, args: ["onRemove"] }], onQuantityChange: [{ type: i0.Output, args: ["onQuantityChange"] }], onClearCart: [{ type: i0.Output, args: ["onClearCart"] }], onApplyCoupon: [{ type: i0.Output, args: ["onApplyCoupon"] }], onCheckout: [{ type: i0.Output, args: ["onCheckout"] }], onBrowseCatalog: [{ type: i0.Output, args: ["onBrowseCatalog"] }] } });
|
|
16112
|
+
}], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], quantityColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "quantityColor", required: false }] }], showCoupon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCoupon", required: false }] }], coupon: [{ type: i0.Input, args: [{ isSignal: true, alias: "coupon", required: false }] }, { type: i0.Output, args: ["couponChange"] }], onRemove: [{ type: i0.Output, args: ["onRemove"] }], onQuantityChange: [{ type: i0.Output, args: ["onQuantityChange"] }], onClearCart: [{ type: i0.Output, args: ["onClearCart"] }], onApplyCoupon: [{ type: i0.Output, args: ["onApplyCoupon"] }], onCheckout: [{ type: i0.Output, args: ["onCheckout"] }], onBrowseCatalog: [{ type: i0.Output, args: ["onBrowseCatalog"] }] } });
|
|
16109
16113
|
|
|
16110
16114
|
class ClxCartSummaryDrawer {
|
|
16111
16115
|
data = inject(CLX_MODAL_DATA);
|