codexly-ui 0.11.4 → 0.11.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.
@@ -11369,6 +11369,11 @@ class ClxNotificationComponent {
11369
11369
  /** Optional third tab that filters items by ClxNotificationItem.category — e.g.
11370
11370
  * `{ id: 'orders', label: 'Órdenes' }`. Omit for just Todas/Sin leer. */
11371
11371
  categoryTab = input(undefined, ...(ngDevMode ? [{ debugName: "categoryTab" }] : /* istanbul ignore next */ []));
11372
+ // ── Trigger button overrides — the bell is a real clx-button under the hood, so any of its
11373
+ // own look-and-feel inputs can be pinned here without needing a separate trigger component. ──
11374
+ triggerVariant = input('ghost', ...(ngDevMode ? [{ debugName: "triggerVariant" }] : /* istanbul ignore next */ []));
11375
+ triggerSize = input('md', ...(ngDevMode ? [{ debugName: "triggerSize" }] : /* istanbul ignore next */ []));
11376
+ triggerIcon = input('notifications', ...(ngDevMode ? [{ debugName: "triggerIcon" }] : /* istanbul ignore next */ []));
11372
11377
  itemClick = output();
11373
11378
  markRead = output();
11374
11379
  markAllRead = output();
@@ -11385,10 +11390,6 @@ class ClxNotificationComponent {
11385
11390
  ];
11386
11391
  _isOpen = signal(false, ...(ngDevMode ? [{ debugName: "_isOpen" }] : /* istanbul ignore next */ []));
11387
11392
  _filter = signal('all', ...(ngDevMode ? [{ debugName: "_filter" }] : /* istanbul ignore next */ []));
11388
- _ringClass = computed(() => {
11389
- const t = resolveColor(this._color());
11390
- return `focus-visible:${t.ringBase}`;
11391
- }, ...(ngDevMode ? [{ debugName: "_ringClass" }] : /* istanbul ignore next */ []));
11392
11393
  _panelClass = computed(() => `w-96 bg-clx-surface shadow-xl border border-clx-border-soft overflow-hidden mt-2 flex flex-col ${resolveContainerRadius(this._style().radius)}`, ...(ngDevMode ? [{ debugName: "_panelClass" }] : /* istanbul ignore next */ []));
11393
11394
  _unreadCount = computed(() => this.items().filter(i => !i.read).length, ...(ngDevMode ? [{ debugName: "_unreadCount" }] : /* istanbul ignore next */ []));
11394
11395
  _readCount = computed(() => this.items().filter(i => i.read).length, ...(ngDevMode ? [{ debugName: "_readCount" }] : /* istanbul ignore next */ []));
@@ -11473,20 +11474,25 @@ class ClxNotificationComponent {
11473
11474
  return new Date(iso).toLocaleTimeString('es-CO', { hour: '2-digit', minute: '2-digit' });
11474
11475
  }
11475
11476
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxNotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
11476
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxNotificationComponent, isStandalone: true, selector: "clx-notification", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, categoryTab: { classPropertyName: "categoryTab", publicName: "categoryTab", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick", markRead: "markRead", markAllRead: "markAllRead", delete: "delete", deleteAllRead: "deleteAllRead" }, host: { classAttribute: "relative inline-flex items-center" }, ngImport: i0, template: `
11477
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxNotificationComponent, isStandalone: true, selector: "clx-notification", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, categoryTab: { classPropertyName: "categoryTab", publicName: "categoryTab", isSignal: true, isRequired: false, transformFunction: null }, triggerVariant: { classPropertyName: "triggerVariant", publicName: "triggerVariant", isSignal: true, isRequired: false, transformFunction: null }, triggerSize: { classPropertyName: "triggerSize", publicName: "triggerSize", isSignal: true, isRequired: false, transformFunction: null }, triggerIcon: { classPropertyName: "triggerIcon", publicName: "triggerIcon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick", markRead: "markRead", markAllRead: "markAllRead", delete: "delete", deleteAllRead: "deleteAllRead" }, host: { classAttribute: "relative inline-flex items-center" }, ngImport: i0, template: `
11477
11478
  <!-- Trigger -->
11478
- <button
11479
+ <button clx-button
11479
11480
  #origin="cdkOverlayOrigin"
11480
11481
  cdkOverlayOrigin
11481
11482
  type="button"
11483
+ [variant]="triggerVariant()"
11484
+ [color]="_color()"
11485
+ [size]="triggerSize()"
11486
+ shape="circle"
11487
+ [icon]="triggerIcon()"
11488
+ [iconOnly]="true"
11482
11489
  aria-label="Notificaciones"
11483
- class="relative flex items-center justify-center w-9 h-9 rounded-full text-clx-text-muted hover:bg-clx-surface-2 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 cursor-pointer"
11484
- [class]="_ringClass()"
11490
+ class="relative"
11485
11491
  (click)="_toggle()">
11486
- <span clx-icon name="notifications" size="sm"></span>
11487
11492
  @if (_unreadCount() > 0) {
11488
- <span clx-badge [color]="_style().unreadColor" variant="solid" size="xs" shape="circle"
11489
- class="absolute -top-0.5 -right-0.5">{{ _unreadCount() > 9 ? '9+' : _unreadCount() }}</span>
11493
+ <span clx-badge [color]="_style().unreadColor" variant="solid" size="xs" shape="circle" [positioned]="true">
11494
+ {{ _unreadCount() > 9 ? '9+' : _unreadCount() }}
11495
+ </span>
11490
11496
  }
11491
11497
  </button>
11492
11498
 
@@ -11588,18 +11594,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
11588
11594
  imports: [OverlayModule, ClxIconComponent, ClxBadgeComponent, ClxButtonComponent, ClxPageEmptyComponent, ClxTabsComponent],
11589
11595
  template: `
11590
11596
  <!-- Trigger -->
11591
- <button
11597
+ <button clx-button
11592
11598
  #origin="cdkOverlayOrigin"
11593
11599
  cdkOverlayOrigin
11594
11600
  type="button"
11601
+ [variant]="triggerVariant()"
11602
+ [color]="_color()"
11603
+ [size]="triggerSize()"
11604
+ shape="circle"
11605
+ [icon]="triggerIcon()"
11606
+ [iconOnly]="true"
11595
11607
  aria-label="Notificaciones"
11596
- class="relative flex items-center justify-center w-9 h-9 rounded-full text-clx-text-muted hover:bg-clx-surface-2 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 cursor-pointer"
11597
- [class]="_ringClass()"
11608
+ class="relative"
11598
11609
  (click)="_toggle()">
11599
- <span clx-icon name="notifications" size="sm"></span>
11600
11610
  @if (_unreadCount() > 0) {
11601
- <span clx-badge [color]="_style().unreadColor" variant="solid" size="xs" shape="circle"
11602
- class="absolute -top-0.5 -right-0.5">{{ _unreadCount() > 9 ? '9+' : _unreadCount() }}</span>
11611
+ <span clx-badge [color]="_style().unreadColor" variant="solid" size="xs" shape="circle" [positioned]="true">
11612
+ {{ _unreadCount() > 9 ? '9+' : _unreadCount() }}
11613
+ </span>
11603
11614
  }
11604
11615
  </button>
11605
11616
 
@@ -11696,7 +11707,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
11696
11707
  changeDetection: ChangeDetectionStrategy.OnPush,
11697
11708
  host: { class: 'relative inline-flex items-center' },
11698
11709
  }]
11699
- }], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], categoryTab: [{ type: i0.Input, args: [{ isSignal: true, alias: "categoryTab", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], markRead: [{ type: i0.Output, args: ["markRead"] }], markAllRead: [{ type: i0.Output, args: ["markAllRead"] }], delete: [{ type: i0.Output, args: ["delete"] }], deleteAllRead: [{ type: i0.Output, args: ["deleteAllRead"] }] } });
11710
+ }], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], categoryTab: [{ type: i0.Input, args: [{ isSignal: true, alias: "categoryTab", required: false }] }], triggerVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerVariant", required: false }] }], triggerSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerSize", required: false }] }], triggerIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerIcon", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], markRead: [{ type: i0.Output, args: ["markRead"] }], markAllRead: [{ type: i0.Output, args: ["markAllRead"] }], delete: [{ type: i0.Output, args: ["delete"] }], deleteAllRead: [{ type: i0.Output, args: ["deleteAllRead"] }] } });
11700
11711
 
11701
11712
  // ─── CDK overlay token (carries the resolved ref into the component) ──────────
11702
11713
  const CLX_ALERT_OPTIONS = new InjectionToken('CLX_ALERT_OPTIONS');