codexly-ui 0.12.42 → 0.12.44

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.
@@ -11863,19 +11863,26 @@ class ClxNotificationComponent {
11863
11863
  @if (!item.read) {
11864
11864
  <span [class]="_unreadDotClass()"></span>
11865
11865
  }
11866
- <span class="truncate">{{ item.title }}</span>
11866
+ <span>{{ item.title }}</span>
11867
11867
  </p>
11868
11868
  @if (item.detail) {
11869
- <p class="mt-0.5 text-sm line-clamp-2" [class]="_detailClass()">{{ item.detail }}</p>
11869
+ <p class="mt-0.5 text-sm" [class]="_detailClass()">{{ item.detail }}</p>
11870
11870
  }
11871
11871
  <p class="mt-1 text-xs text-clx-text-subtle tabular-nums">{{ _timeOf(item.createdAt) }}</p>
11872
11872
  </div>
11873
11873
 
11874
- <button clx-button type="button" variant="ghost" color="red" shape="circle" size="xs"
11875
- icon="close" [iconOnly]="true"
11876
- class="opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity shrink-0"
11877
- aria-label="Eliminar notificación"
11878
- (click)="$event.stopPropagation(); delete.emit(item.id)"></button>
11874
+ <div class="flex items-center shrink-0">
11875
+ @if (item.actionUrl) {
11876
+ <span clx-icon name="chevron_right" size="xs"
11877
+ class="text-clx-text-subtle opacity-0 group-hover:opacity-100 transition-opacity"
11878
+ aria-hidden="true"></span>
11879
+ }
11880
+ <button clx-button type="button" variant="ghost" color="red" shape="circle" size="xs"
11881
+ icon="close" [iconOnly]="true"
11882
+ class="opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity"
11883
+ aria-label="Eliminar notificación"
11884
+ (click)="$event.stopPropagation(); delete.emit(item.id)"></button>
11885
+ </div>
11879
11886
  </div>
11880
11887
  }
11881
11888
  }
@@ -11978,19 +11985,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
11978
11985
  @if (!item.read) {
11979
11986
  <span [class]="_unreadDotClass()"></span>
11980
11987
  }
11981
- <span class="truncate">{{ item.title }}</span>
11988
+ <span>{{ item.title }}</span>
11982
11989
  </p>
11983
11990
  @if (item.detail) {
11984
- <p class="mt-0.5 text-sm line-clamp-2" [class]="_detailClass()">{{ item.detail }}</p>
11991
+ <p class="mt-0.5 text-sm" [class]="_detailClass()">{{ item.detail }}</p>
11985
11992
  }
11986
11993
  <p class="mt-1 text-xs text-clx-text-subtle tabular-nums">{{ _timeOf(item.createdAt) }}</p>
11987
11994
  </div>
11988
11995
 
11989
- <button clx-button type="button" variant="ghost" color="red" shape="circle" size="xs"
11990
- icon="close" [iconOnly]="true"
11991
- class="opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity shrink-0"
11992
- aria-label="Eliminar notificación"
11993
- (click)="$event.stopPropagation(); delete.emit(item.id)"></button>
11996
+ <div class="flex items-center shrink-0">
11997
+ @if (item.actionUrl) {
11998
+ <span clx-icon name="chevron_right" size="xs"
11999
+ class="text-clx-text-subtle opacity-0 group-hover:opacity-100 transition-opacity"
12000
+ aria-hidden="true"></span>
12001
+ }
12002
+ <button clx-button type="button" variant="ghost" color="red" shape="circle" size="xs"
12003
+ icon="close" [iconOnly]="true"
12004
+ class="opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity"
12005
+ aria-label="Eliminar notificación"
12006
+ (click)="$event.stopPropagation(); delete.emit(item.id)"></button>
12007
+ </div>
11994
12008
  </div>
11995
12009
  }
11996
12010
  }
@@ -16287,7 +16301,10 @@ class ClxProductQuickViewComponent {
16287
16301
  ref = inject(CLX_MODAL_REF, { optional: true });
16288
16302
  data = inject(CLX_MODAL_DATA, { optional: true });
16289
16303
  _onAddToCart(event) {
16290
- this.ref?.close(event);
16304
+ this.ref?.close({ ...event, action: 'addToCart' });
16305
+ }
16306
+ _onBuyNow(event) {
16307
+ this.ref?.close({ ...event, action: 'buyNow' });
16291
16308
  }
16292
16309
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxProductQuickViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
16293
16310
  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 +16321,8 @@ class ClxProductQuickViewComponent {
16304
16321
  stockBadgeColor="green-700" specButtonColor="slate" specButtonTextColor="neutral-50" quantityColor="slate"
16305
16322
  variant="outlined"
16306
16323
  [currency]="data?.currency ?? 'COP'"
16307
- (addToCart)="_onAddToCart($event)">
16324
+ (addToCart)="_onAddToCart($event)"
16325
+ (buyNow)="_onBuyNow($event)">
16308
16326
  </clx-product-detail>
16309
16327
  </clx-modal>
16310
16328
  `, 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 +16347,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
16329
16347
  stockBadgeColor="green-700" specButtonColor="slate" specButtonTextColor="neutral-50" quantityColor="slate"
16330
16348
  variant="outlined"
16331
16349
  [currency]="data?.currency ?? 'COP'"
16332
- (addToCart)="_onAddToCart($event)">
16350
+ (addToCart)="_onAddToCart($event)"
16351
+ (buyNow)="_onBuyNow($event)">
16333
16352
  </clx-product-detail>
16334
16353
  </clx-modal>
16335
16354
  `,