codexly-ui 0.19.4 → 0.19.5

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.
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { input, computed, ChangeDetectionStrategy, ViewEncapsulation, Component, InjectionToken, inject, PLATFORM_ID, signal, effect, Injectable, ElementRef, HostAttributeToken, output, Directive, forwardRef, contentChild, model, ApplicationRef, EnvironmentInjector, RendererFactory2, createComponent, DestroyRef, untracked, ViewChildren, HostListener, viewChild, ViewChild, Injector, ChangeDetectorRef, NgZone, contentChildren, ContentChildren, numberAttribute, booleanAttribute, Input } from '@angular/core';
3
3
  import { DomSanitizer } from '@angular/platform-browser';
4
- import { isPlatformBrowser, NgTemplateOutlet, DOCUMENT, NgStyle, CurrencyPipe, DecimalPipe } from '@angular/common';
4
+ import { isPlatformBrowser, NgTemplateOutlet, DOCUMENT, NgStyle, NgOptimizedImage, CurrencyPipe, DecimalPipe } from '@angular/common';
5
5
  import * as i1$1 from '@angular/forms';
6
6
  import { NG_VALUE_ACCESSOR, FormControl, NgControl, TouchedChangeEvent, ReactiveFormsModule, FormGroup, Validators, FormsModule } from '@angular/forms';
7
7
  import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
@@ -17126,12 +17126,13 @@ class ClxProductComponent {
17126
17126
 
17127
17127
  <!-- Image Container -->
17128
17128
  <div [class]="_imageContainerClass()">
17129
- @if (product()?.main_image) {
17129
+ @if (product()?.main_image; as mainImage) {
17130
17130
  <img
17131
- [src]="product()!.main_image"
17131
+ [ngSrc]="mainImage"
17132
17132
  [alt]="product()!.name"
17133
17133
  [class]="_imageClass()"
17134
- [loading]="priority() ? 'eager' : 'lazy'"
17134
+ [priority]="priority()"
17135
+ fill
17135
17136
  />
17136
17137
  } @else {
17137
17138
  <div class="w-full h-full flex items-center justify-center bg-clx-surface-2">
@@ -17220,14 +17221,14 @@ class ClxProductComponent {
17220
17221
  </div>
17221
17222
  </article>
17222
17223
  }
17223
- `, isInline: true, dependencies: [{ kind: "component", type: ClxBadgeComponent, selector: "span[clx-badge]", inputs: ["variant", "color", "size", "shape", "positioned"] }, { kind: "component", type: ClxButtonComponent, selector: "button[clx-button], a[clx-button]", inputs: ["variant", "color", "emphasis", "textColor", "size", "shape", "loading", "disabled", "block", "icon", "iconPosition", "iconOnly", "badge", "badgeColor"] }, { kind: "component", type: ClxSkeletonComponent, selector: "clx-skeleton", inputs: ["variant", "size", "width", "height"] }, { kind: "directive", type: ClxTooltipDirective, selector: "[clxTooltip]", inputs: ["clxTooltip", "clxTooltipPosition", "clxTooltipColor", "clxTooltipSize", "clxTooltipDelay"] }, { kind: "pipe", type: CurrencyPipe, name: "currency" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
17224
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "component", type: ClxBadgeComponent, selector: "span[clx-badge]", inputs: ["variant", "color", "size", "shape", "positioned"] }, { kind: "component", type: ClxButtonComponent, selector: "button[clx-button], a[clx-button]", inputs: ["variant", "color", "emphasis", "textColor", "size", "shape", "loading", "disabled", "block", "icon", "iconPosition", "iconOnly", "badge", "badgeColor"] }, { kind: "component", type: ClxSkeletonComponent, selector: "clx-skeleton", inputs: ["variant", "size", "width", "height"] }, { kind: "directive", type: ClxTooltipDirective, selector: "[clxTooltip]", inputs: ["clxTooltip", "clxTooltipPosition", "clxTooltipColor", "clxTooltipSize", "clxTooltipDelay"] }, { kind: "pipe", type: CurrencyPipe, name: "currency" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
17224
17225
  }
17225
17226
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxProductComponent, decorators: [{
17226
17227
  type: Component,
17227
17228
  args: [{
17228
17229
  selector: 'clx-product',
17229
17230
  standalone: true,
17230
- imports: [CurrencyPipe, ClxBadgeComponent, ClxButtonComponent, ClxSkeletonComponent, ClxTooltipDirective],
17231
+ imports: [CurrencyPipe, NgOptimizedImage, ClxBadgeComponent, ClxButtonComponent, ClxSkeletonComponent, ClxTooltipDirective],
17231
17232
  template: `
17232
17233
  @if (loading()) {
17233
17234
  @if (_h()) {
@@ -17263,12 +17264,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
17263
17264
 
17264
17265
  <!-- Image Container -->
17265
17266
  <div [class]="_imageContainerClass()">
17266
- @if (product()?.main_image) {
17267
+ @if (product()?.main_image; as mainImage) {
17267
17268
  <img
17268
- [src]="product()!.main_image"
17269
+ [ngSrc]="mainImage"
17269
17270
  [alt]="product()!.name"
17270
17271
  [class]="_imageClass()"
17271
- [loading]="priority() ? 'eager' : 'lazy'"
17272
+ [priority]="priority()"
17273
+ fill
17272
17274
  />
17273
17275
  } @else {
17274
17276
  <div class="w-full h-full flex items-center justify-center bg-clx-surface-2">