codexly-ui 0.12.41 → 0.12.43
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 +16 -3
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/codexly-ui.d.ts +10 -0
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -16287,7 +16287,10 @@ class ClxProductQuickViewComponent {
|
|
|
16287
16287
|
ref = inject(CLX_MODAL_REF, { optional: true });
|
|
16288
16288
|
data = inject(CLX_MODAL_DATA, { optional: true });
|
|
16289
16289
|
_onAddToCart(event) {
|
|
16290
|
-
this.ref?.close(event);
|
|
16290
|
+
this.ref?.close({ ...event, action: 'addToCart' });
|
|
16291
|
+
}
|
|
16292
|
+
_onBuyNow(event) {
|
|
16293
|
+
this.ref?.close({ ...event, action: 'buyNow' });
|
|
16291
16294
|
}
|
|
16292
16295
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxProductQuickViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16293
16296
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.15", type: ClxProductQuickViewComponent, isStandalone: true, selector: "clx-product-quick-view", ngImport: i0, template: `
|
|
@@ -16299,8 +16302,13 @@ class ClxProductQuickViewComponent {
|
|
|
16299
16302
|
[product]="data?.product ?? null"
|
|
16300
16303
|
[initialVariationId]="data?.initialVariationId ?? null"
|
|
16301
16304
|
[clxColor]="data?.clxColor ?? 'indigo'"
|
|
16305
|
+
buyNowColor="slate" buyNowTextColor="neutral-50"
|
|
16306
|
+
wishlistColor="red" wishlistVariant="ghost"
|
|
16307
|
+
stockBadgeColor="green-700" specButtonColor="slate" specButtonTextColor="neutral-50" quantityColor="slate"
|
|
16308
|
+
variant="outlined"
|
|
16302
16309
|
[currency]="data?.currency ?? 'COP'"
|
|
16303
|
-
(addToCart)="_onAddToCart($event)"
|
|
16310
|
+
(addToCart)="_onAddToCart($event)"
|
|
16311
|
+
(buyNow)="_onBuyNow($event)">
|
|
16304
16312
|
</clx-product-detail>
|
|
16305
16313
|
</clx-modal>
|
|
16306
16314
|
`, isInline: true, dependencies: [{ kind: "component", type: ClxModalComponent, selector: "clx-modal", inputs: ["size", "showClose", "confirmButton", "cancelButton", "showCancelButton"], outputs: ["confirmClick", "cancelClick"] }, { kind: "component", type: ClxProductDetailComponent, selector: "clx-product-detail", inputs: ["product", "initialVariationId", "clxColor", "buyNowColor", "buyNowTextColor", "addToCartColor", "addToCartTextColor", "leaveReviewColor", "leaveReviewTextColor", "wishlistColor", "wishlistTextColor", "wishlistVariant", "stockBadgeColor", "discountBadgeColor", "quantityColor", "specButtonColor", "specButtonTextColor", "loading", "currency", "compact", "variant"], outputs: ["addToCart", "buyNow", "wishlist", "variationChange", "leaveReview"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
@@ -16320,8 +16328,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
16320
16328
|
[product]="data?.product ?? null"
|
|
16321
16329
|
[initialVariationId]="data?.initialVariationId ?? null"
|
|
16322
16330
|
[clxColor]="data?.clxColor ?? 'indigo'"
|
|
16331
|
+
buyNowColor="slate" buyNowTextColor="neutral-50"
|
|
16332
|
+
wishlistColor="red" wishlistVariant="ghost"
|
|
16333
|
+
stockBadgeColor="green-700" specButtonColor="slate" specButtonTextColor="neutral-50" quantityColor="slate"
|
|
16334
|
+
variant="outlined"
|
|
16323
16335
|
[currency]="data?.currency ?? 'COP'"
|
|
16324
|
-
(addToCart)="_onAddToCart($event)"
|
|
16336
|
+
(addToCart)="_onAddToCart($event)"
|
|
16337
|
+
(buyNow)="_onBuyNow($event)">
|
|
16325
16338
|
</clx-product-detail>
|
|
16326
16339
|
</clx-modal>
|
|
16327
16340
|
`,
|