codexly-ui 0.12.42 → 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.
@@ -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: `
@@ -16304,7 +16307,8 @@ class ClxProductQuickViewComponent {
16304
16307
  stockBadgeColor="green-700" specButtonColor="slate" specButtonTextColor="neutral-50" quantityColor="slate"
16305
16308
  variant="outlined"
16306
16309
  [currency]="data?.currency ?? 'COP'"
16307
- (addToCart)="_onAddToCart($event)">
16310
+ (addToCart)="_onAddToCart($event)"
16311
+ (buyNow)="_onBuyNow($event)">
16308
16312
  </clx-product-detail>
16309
16313
  </clx-modal>
16310
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 });
@@ -16329,7 +16333,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
16329
16333
  stockBadgeColor="green-700" specButtonColor="slate" specButtonTextColor="neutral-50" quantityColor="slate"
16330
16334
  variant="outlined"
16331
16335
  [currency]="data?.currency ?? 'COP'"
16332
- (addToCart)="_onAddToCart($event)">
16336
+ (addToCart)="_onAddToCart($event)"
16337
+ (buyNow)="_onBuyNow($event)">
16333
16338
  </clx-product-detail>
16334
16339
  </clx-modal>
16335
16340
  `,