ngx-core-components 0.3.4 → 0.3.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.
Files changed (36) hide show
  1. package/feedback/avatar/avatar.component.d.ts +37 -0
  2. package/feedback/countdown/countdown.component.d.ts +46 -0
  3. package/feedback/empty-state/empty-state.component.d.ts +14 -0
  4. package/feedback/public-api.d.ts +7 -0
  5. package/feedback/stat-card/stat-card.component.d.ts +18 -0
  6. package/fesm2022/ngx-core-components-feedback.mjs +789 -5
  7. package/fesm2022/ngx-core-components-feedback.mjs.map +1 -1
  8. package/fesm2022/ngx-core-components-inputs.mjs +611 -3
  9. package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
  10. package/fesm2022/ngx-core-components-layout.mjs +930 -2
  11. package/fesm2022/ngx-core-components-layout.mjs.map +1 -1
  12. package/fesm2022/ngx-core-components-navigation.mjs +162 -2
  13. package/fesm2022/ngx-core-components-navigation.mjs.map +1 -1
  14. package/fesm2022/ngx-core-components-views.mjs +1120 -2
  15. package/fesm2022/ngx-core-components-views.mjs.map +1 -1
  16. package/fesm2022/ngx-core-components.mjs +5 -5
  17. package/fesm2022/ngx-core-components.mjs.map +1 -1
  18. package/inputs/file-preview/file-preview.component.d.ts +61 -0
  19. package/inputs/public-api.d.ts +5 -0
  20. package/inputs/segmented-control/segmented-control.component.d.ts +20 -0
  21. package/inputs/tag-input/tag-input.component.d.ts +25 -0
  22. package/layout/carousel/carousel.component.d.ts +39 -0
  23. package/layout/dashboard-layout/dashboard-layout.component.d.ts +43 -0
  24. package/layout/dashboard-layout/models.d.ts +26 -0
  25. package/layout/drawer/drawer.component.d.ts +21 -0
  26. package/layout/public-api.d.ts +4 -0
  27. package/navigation/back-to-top/back-to-top.component.d.ts +15 -0
  28. package/navigation/public-api.d.ts +1 -0
  29. package/package.json +1 -1
  30. package/public-api.d.ts +14 -6
  31. package/views/image-compare/image-compare.component.d.ts +26 -0
  32. package/views/key-value-list/key-value-list.component.d.ts +36 -0
  33. package/views/public-api.d.ts +7 -0
  34. package/views/scheduler/models.d.ts +18 -0
  35. package/views/scheduler/scheduler.component.d.ts +36 -0
  36. package/views/virtual-list/virtual-list.component.d.ts +42 -0
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, computed, Component, signal, createComponent, Injectable, output } from '@angular/core';
2
+ import { input, computed, Component, signal, createComponent, Injectable, output, ChangeDetectionStrategy, effect, untracked } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
4
 
5
5
  class BadgeComponent {
@@ -460,13 +460,797 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
460
460
  `, styles: [":host{display:block;width:100%}.ngx-alert-banner{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border-radius:var(--radius-md, 8px);border-width:1px;border-style:solid;font-family:var(--ngx-font-family, sans-serif);font-size:13px;line-height:1.5;transition:all .25s cubic-bezier(.4,0,.2,1);box-shadow:var(--shadow-sm);animation:alert-fade-in .25s ease-out;position:relative}@keyframes alert-fade-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.ngx-alert-banner.dismissing{opacity:0;transform:translateY(-8px);max-height:0;padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-width:0;overflow:hidden}.ngx-alert-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:20px;height:20px;margin-top:1px}.ngx-alert-icon svg{width:100%;height:100%}.ngx-alert-content{flex:1;display:flex;flex-direction:column;gap:2px}.ngx-alert-title{margin:0;font-size:14px;font-weight:700}.ngx-alert-message{color:currentColor;opacity:.9}.ngx-alert-actions{display:flex;align-items:center;flex-shrink:0;margin-left:8px}.ngx-alert-action-btn{background:transparent;border:1px solid currentColor;border-radius:4px;padding:3px 10px;font-size:11px;font-weight:700;cursor:pointer;color:currentColor;transition:all .15s}.ngx-alert-action-btn:hover{background:#0000000d}.ngx-alert-close-btn{background:transparent;border:none;color:currentColor;opacity:.6;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:2px;border-radius:4px;width:20px;height:20px;flex-shrink:0;transition:all .15s}.ngx-alert-close-btn:hover{opacity:1;background:#0000000a}.ngx-alert-close-btn svg{width:14px;height:14px}.ngx-alert-info{background-color:var(--ngx-alert-info-bg, hsl(207, 95%, 97%));border-color:var(--ngx-alert-info-border, hsl(207, 90%, 88%));color:var(--ngx-alert-info-text, hsl(207, 90%, 30%))}.ngx-alert-success{background-color:var(--ngx-alert-success-bg, hsl(142, 70%, 97%));border-color:var(--ngx-alert-success-border, hsl(142, 60%, 88%));color:var(--ngx-alert-success-text, hsl(142, 60%, 25%))}.ngx-alert-warning{background-color:var(--ngx-alert-warning-bg, hsl(38, 90%, 97%));border-color:var(--ngx-alert-warning-border, hsl(38, 80%, 88%));color:var(--ngx-alert-warning-text, hsl(38, 80%, 28%))}.ngx-alert-error{background-color:var(--ngx-alert-error-bg, hsl(0, 90%, 97%));border-color:var(--ngx-alert-error-border, hsl(0, 80%, 88%));color:var(--ngx-alert-error-text, hsl(0, 80%, 35%))}.ngx-alert-banner.dark{box-shadow:0 4px 12px #0000004d}.ngx-alert-banner.dark.ngx-alert-info{background-color:var(--ngx-alert-info-dark-bg, hsl(207, 80%, 8%));border-color:var(--ngx-alert-info-dark-border, hsl(207, 70%, 18%));color:var(--ngx-alert-info-dark-text, hsl(207, 90%, 75%))}.ngx-alert-banner.dark.ngx-alert-success{background-color:var(--ngx-alert-success-dark-bg, hsl(142, 60%, 7%));border-color:var(--ngx-alert-success-dark-border, hsl(142, 50%, 15%));color:var(--ngx-alert-success-dark-text, hsl(142, 70%, 70%))}.ngx-alert-banner.dark.ngx-alert-warning{background-color:var(--ngx-alert-warning-dark-bg, hsl(38, 70%, 7%));border-color:var(--ngx-alert-warning-dark-border, hsl(38, 60%, 15%));color:var(--ngx-alert-warning-dark-text, hsl(38, 80%, 70%))}.ngx-alert-banner.dark.ngx-alert-error{background-color:var(--ngx-alert-error-dark-bg, hsl(0, 70%, 7%));border-color:var(--ngx-alert-error-dark-border, hsl(0, 60%, 16%));color:var(--ngx-alert-error-dark-text, hsl(0, 80%, 75%))}.ngx-alert-banner.dark .ngx-alert-action-btn:hover{background:#ffffff14}.ngx-alert-banner.dark .ngx-alert-close-btn:hover{background:#ffffff0d}\n"] }]
461
461
  }] });
462
462
 
463
- /*
464
- * Public API Surface — secondary entry point: ngx-core-components/feedback
465
- */
463
+ class StatCardComponent {
464
+ label = input('');
465
+ value = input('');
466
+ subtitle = input('');
467
+ trend = input('neutral');
468
+ trendValue = input('');
469
+ icon = input('');
470
+ variant = input('default');
471
+ theme = input('light');
472
+ loading = input(false);
473
+ variantClass = computed(() => `ngx-stat-card-${this.variant()}`);
474
+ trendClass = computed(() => `trend-${this.trend()}`);
475
+ trendArrow = computed(() => {
476
+ switch (this.trend()) {
477
+ case 'up': return '▲';
478
+ case 'down': return '▼';
479
+ default: return '—';
480
+ }
481
+ });
482
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: StatCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
483
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: StatCardComponent, isStandalone: true, selector: "ngx-stat-card", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, trend: { classPropertyName: "trend", publicName: "trend", isSignal: true, isRequired: false, transformFunction: null }, trendValue: { classPropertyName: "trendValue", publicName: "trendValue", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
484
+ <div
485
+ class="ngx-stat-card"
486
+ [class.dark]="theme() === 'dark'"
487
+ [class.loading]="loading()"
488
+ [class]="variantClass()"
489
+ >
490
+ <!-- Loading skeleton -->
491
+ @if (loading()) {
492
+ <div class="ngx-stat-card__skeleton">
493
+ <div class="skeleton-row skeleton-label"></div>
494
+ <div class="skeleton-row skeleton-value"></div>
495
+ <div class="skeleton-row skeleton-subtitle"></div>
496
+ </div>
497
+ } @else {
498
+ <!-- Icon -->
499
+ @if (icon()) {
500
+ <div class="ngx-stat-card__icon">{{ icon() }}</div>
501
+ }
502
+
503
+ <!-- Label -->
504
+ <div class="ngx-stat-card__label">{{ label() }}</div>
505
+
506
+ <!-- Value -->
507
+ <div class="ngx-stat-card__value">{{ value() }}</div>
508
+
509
+ <!-- Trend + Subtitle row -->
510
+ <div class="ngx-stat-card__footer">
511
+ @if (trend() !== 'neutral' || trendValue()) {
512
+ <span class="ngx-stat-card__trend" [class]="trendClass()">
513
+ {{ trendArrow() }}
514
+ @if (trendValue()) {
515
+ <span class="ngx-stat-card__trend-value">{{ trendValue() }}</span>
516
+ }
517
+ </span>
518
+ }
519
+ @if (subtitle()) {
520
+ <span class="ngx-stat-card__subtitle">{{ subtitle() }}</span>
521
+ }
522
+ </div>
523
+ }
524
+ </div>
525
+ `, isInline: true, styles: [":host{display:block}.ngx-stat-card{position:relative;display:flex;flex-direction:column;gap:6px;padding:22px 24px 18px;border-radius:16px;font-family:var(--ngx-font-family, system-ui, sans-serif);background:var(--ngx-stat-card-bg, rgba(255, 255, 255, .72));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1.5px solid var(--ngx-stat-card-border, rgba(255, 255, 255, .55));box-shadow:0 4px 24px #00000012,0 1.5px 4px #0000000a,inset 0 1px #fffc;transition:transform .22s cubic-bezier(.34,1.56,.64,1),box-shadow .22s ease,border-color .2s ease;cursor:default}.ngx-stat-card:hover:not(.loading){transform:translateY(-3px) scale(1.005);box-shadow:0 12px 36px #0000001a,0 4px 8px #0000000f,inset 0 1px #ffffffd9}.ngx-stat-card.dark{background:var(--ngx-stat-card-dark-bg, rgba(30, 32, 48, .85));border-color:var(--ngx-stat-card-dark-border, rgba(255, 255, 255, .08));box-shadow:0 4px 24px #00000059,0 1.5px 4px #00000040,inset 0 1px #ffffff0f}.ngx-stat-card.dark:hover:not(.loading){box-shadow:0 12px 36px #00000080,0 4px 8px #0000004d,inset 0 1px #ffffff12}.ngx-stat-card:before{content:\"\";position:absolute;inset:0;border-radius:16px;padding:1.5px;background:var(--ngx-stat-card-gradient, linear-gradient(135deg, rgba(200,200,200,.3) 0%, transparent 60%));-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}.ngx-stat-card-success:before{background:linear-gradient(135deg,hsl(142,70%,65%) 0%,transparent 55%)}.ngx-stat-card-danger:before{background:linear-gradient(135deg,hsl(0,75%,65%) 0%,transparent 55%)}.ngx-stat-card-warning:before{background:linear-gradient(135deg,hsl(38,90%,62%) 0%,transparent 55%)}.ngx-stat-card-info:before{background:linear-gradient(135deg,hsl(207,90%,65%) 0%,transparent 55%)}.ngx-stat-card-default:before{background:linear-gradient(135deg,hsl(250,60%,72%) 0%,transparent 55%)}.ngx-stat-card__icon{font-size:28px;line-height:1;margin-bottom:2px;-webkit-user-select:none;user-select:none}.ngx-stat-card__label{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--ngx-stat-label-color, hsl(220, 15%, 55%))}.dark .ngx-stat-card__label{color:var(--ngx-stat-label-dark-color, hsl(220, 15%, 60%))}.ngx-stat-card__value{font-size:36px;font-weight:800;line-height:1.1;letter-spacing:-.02em;color:var(--ngx-stat-value-color, hsl(220, 25%, 14%));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dark .ngx-stat-card__value{color:var(--ngx-stat-value-dark-color, hsl(220, 20%, 94%))}.ngx-stat-card__footer{display:flex;align-items:center;gap:8px;margin-top:2px;flex-wrap:wrap}.ngx-stat-card__trend{display:inline-flex;align-items:center;gap:3px;font-size:13px;font-weight:700;border-radius:6px;padding:1px 7px}.ngx-stat-card__trend-value{font-size:12px}.trend-up{color:#1f7a40;background:#eafbf0}.trend-down{color:#a51d1d;background:#fceeee}.trend-neutral{color:#6e7687;background:#eeeff1}.dark .trend-up{color:#86eaaa;background:#0d2616}.dark .trend-down{color:#ed8282;background:#280b0b}.dark .trend-neutral{color:#a4aab7;background:#24272e}.ngx-stat-card__subtitle{font-size:12px;color:var(--ngx-stat-subtitle-color, hsl(220, 12%, 55%))}.dark .ngx-stat-card__subtitle{color:var(--ngx-stat-subtitle-dark-color, hsl(220, 12%, 58%))}.ngx-stat-card__skeleton{display:flex;flex-direction:column;gap:10px;padding:4px 0}.skeleton-row{border-radius:6px;background:linear-gradient(90deg,#9696961f 25%,#96969638,#9696961f 75%);background-size:200% 100%;animation:skeleton-shimmer 1.4s ease-in-out infinite}.dark .skeleton-row{background:linear-gradient(90deg,#ffffff0a 25%,#ffffff1a,#ffffff0a 75%);background-size:200% 100%}.skeleton-label{height:12px;width:45%}.skeleton-value{height:36px;width:65%}.skeleton-subtitle{height:12px;width:55%}@keyframes skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
526
+ }
527
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: StatCardComponent, decorators: [{
528
+ type: Component,
529
+ args: [{ selector: 'ngx-stat-card', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
530
+ <div
531
+ class="ngx-stat-card"
532
+ [class.dark]="theme() === 'dark'"
533
+ [class.loading]="loading()"
534
+ [class]="variantClass()"
535
+ >
536
+ <!-- Loading skeleton -->
537
+ @if (loading()) {
538
+ <div class="ngx-stat-card__skeleton">
539
+ <div class="skeleton-row skeleton-label"></div>
540
+ <div class="skeleton-row skeleton-value"></div>
541
+ <div class="skeleton-row skeleton-subtitle"></div>
542
+ </div>
543
+ } @else {
544
+ <!-- Icon -->
545
+ @if (icon()) {
546
+ <div class="ngx-stat-card__icon">{{ icon() }}</div>
547
+ }
548
+
549
+ <!-- Label -->
550
+ <div class="ngx-stat-card__label">{{ label() }}</div>
551
+
552
+ <!-- Value -->
553
+ <div class="ngx-stat-card__value">{{ value() }}</div>
554
+
555
+ <!-- Trend + Subtitle row -->
556
+ <div class="ngx-stat-card__footer">
557
+ @if (trend() !== 'neutral' || trendValue()) {
558
+ <span class="ngx-stat-card__trend" [class]="trendClass()">
559
+ {{ trendArrow() }}
560
+ @if (trendValue()) {
561
+ <span class="ngx-stat-card__trend-value">{{ trendValue() }}</span>
562
+ }
563
+ </span>
564
+ }
565
+ @if (subtitle()) {
566
+ <span class="ngx-stat-card__subtitle">{{ subtitle() }}</span>
567
+ }
568
+ </div>
569
+ }
570
+ </div>
571
+ `, styles: [":host{display:block}.ngx-stat-card{position:relative;display:flex;flex-direction:column;gap:6px;padding:22px 24px 18px;border-radius:16px;font-family:var(--ngx-font-family, system-ui, sans-serif);background:var(--ngx-stat-card-bg, rgba(255, 255, 255, .72));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1.5px solid var(--ngx-stat-card-border, rgba(255, 255, 255, .55));box-shadow:0 4px 24px #00000012,0 1.5px 4px #0000000a,inset 0 1px #fffc;transition:transform .22s cubic-bezier(.34,1.56,.64,1),box-shadow .22s ease,border-color .2s ease;cursor:default}.ngx-stat-card:hover:not(.loading){transform:translateY(-3px) scale(1.005);box-shadow:0 12px 36px #0000001a,0 4px 8px #0000000f,inset 0 1px #ffffffd9}.ngx-stat-card.dark{background:var(--ngx-stat-card-dark-bg, rgba(30, 32, 48, .85));border-color:var(--ngx-stat-card-dark-border, rgba(255, 255, 255, .08));box-shadow:0 4px 24px #00000059,0 1.5px 4px #00000040,inset 0 1px #ffffff0f}.ngx-stat-card.dark:hover:not(.loading){box-shadow:0 12px 36px #00000080,0 4px 8px #0000004d,inset 0 1px #ffffff12}.ngx-stat-card:before{content:\"\";position:absolute;inset:0;border-radius:16px;padding:1.5px;background:var(--ngx-stat-card-gradient, linear-gradient(135deg, rgba(200,200,200,.3) 0%, transparent 60%));-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}.ngx-stat-card-success:before{background:linear-gradient(135deg,hsl(142,70%,65%) 0%,transparent 55%)}.ngx-stat-card-danger:before{background:linear-gradient(135deg,hsl(0,75%,65%) 0%,transparent 55%)}.ngx-stat-card-warning:before{background:linear-gradient(135deg,hsl(38,90%,62%) 0%,transparent 55%)}.ngx-stat-card-info:before{background:linear-gradient(135deg,hsl(207,90%,65%) 0%,transparent 55%)}.ngx-stat-card-default:before{background:linear-gradient(135deg,hsl(250,60%,72%) 0%,transparent 55%)}.ngx-stat-card__icon{font-size:28px;line-height:1;margin-bottom:2px;-webkit-user-select:none;user-select:none}.ngx-stat-card__label{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--ngx-stat-label-color, hsl(220, 15%, 55%))}.dark .ngx-stat-card__label{color:var(--ngx-stat-label-dark-color, hsl(220, 15%, 60%))}.ngx-stat-card__value{font-size:36px;font-weight:800;line-height:1.1;letter-spacing:-.02em;color:var(--ngx-stat-value-color, hsl(220, 25%, 14%));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dark .ngx-stat-card__value{color:var(--ngx-stat-value-dark-color, hsl(220, 20%, 94%))}.ngx-stat-card__footer{display:flex;align-items:center;gap:8px;margin-top:2px;flex-wrap:wrap}.ngx-stat-card__trend{display:inline-flex;align-items:center;gap:3px;font-size:13px;font-weight:700;border-radius:6px;padding:1px 7px}.ngx-stat-card__trend-value{font-size:12px}.trend-up{color:#1f7a40;background:#eafbf0}.trend-down{color:#a51d1d;background:#fceeee}.trend-neutral{color:#6e7687;background:#eeeff1}.dark .trend-up{color:#86eaaa;background:#0d2616}.dark .trend-down{color:#ed8282;background:#280b0b}.dark .trend-neutral{color:#a4aab7;background:#24272e}.ngx-stat-card__subtitle{font-size:12px;color:var(--ngx-stat-subtitle-color, hsl(220, 12%, 55%))}.dark .ngx-stat-card__subtitle{color:var(--ngx-stat-subtitle-dark-color, hsl(220, 12%, 58%))}.ngx-stat-card__skeleton{display:flex;flex-direction:column;gap:10px;padding:4px 0}.skeleton-row{border-radius:6px;background:linear-gradient(90deg,#9696961f 25%,#96969638,#9696961f 75%);background-size:200% 100%;animation:skeleton-shimmer 1.4s ease-in-out infinite}.dark .skeleton-row{background:linear-gradient(90deg,#ffffff0a 25%,#ffffff1a,#ffffff0a 75%);background-size:200% 100%}.skeleton-label{height:12px;width:45%}.skeleton-value{height:36px;width:65%}.skeleton-subtitle{height:12px;width:55%}@keyframes skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}\n"] }]
572
+ }] });
573
+
574
+ /** Generates a deterministic hue from a display name */
575
+ function nameToHue(name) {
576
+ let hash = 0;
577
+ for (const ch of name) {
578
+ hash = (hash << 5) - hash + ch.charCodeAt(0);
579
+ hash |= 0;
580
+ }
581
+ return Math.abs(hash) % 360;
582
+ }
583
+ function initials(name) {
584
+ return name
585
+ .split(/\s+/)
586
+ .slice(0, 2)
587
+ .map((w) => w[0]?.toUpperCase() ?? '')
588
+ .join('');
589
+ }
590
+ /** Single avatar */
591
+ class AvatarComponent {
592
+ name = input('');
593
+ src = input('');
594
+ size = input('md');
595
+ shape = input('circle');
596
+ status = input('none');
597
+ badge = input(null);
598
+ color = input('');
599
+ imgError = signal(false);
600
+ displayInitials = computed(() => initials(this.name() || '?'));
601
+ bgColor = computed(() => {
602
+ if (this.color())
603
+ return this.color();
604
+ const hue = nameToHue(this.name() || 'U');
605
+ return `hsl(${hue}, 60%, 45%)`;
606
+ });
607
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: AvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
608
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: AvatarComponent, isStandalone: true, selector: "ngx-avatar", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
609
+ <div
610
+ class="ngx-avatar"
611
+ [class]="'size-' + size() + ' shape-' + shape()"
612
+ [attr.title]="name() || null"
613
+ >
614
+ @if (src()) {
615
+ <img
616
+ class="avatar-img"
617
+ [src]="src()"
618
+ [alt]="name() || 'avatar'"
619
+ (error)="imgError.set(true)"
620
+ />
621
+ }
622
+
623
+ @if (!src() || imgError()) {
624
+ <span class="avatar-initials" [style.background]="bgColor()">
625
+ {{ displayInitials() }}
626
+ </span>
627
+ }
628
+
629
+ @if (status() !== 'none') {
630
+ <span class="avatar-status" [class]="'status-' + status()"></span>
631
+ }
632
+
633
+ @if (badge()) {
634
+ <span class="avatar-badge">{{ badge() }}</span>
635
+ }
636
+ </div>
637
+ `, isInline: true, styles: [":host{display:inline-block;line-height:0}.ngx-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:visible;font-family:inherit;flex-shrink:0}.size-xs{width:24px;height:24px;font-size:9px}.size-sm{width:32px;height:32px;font-size:11px}.size-md{width:40px;height:40px;font-size:13px}.size-lg{width:52px;height:52px;font-size:16px}.size-xl{width:68px;height:68px;font-size:20px}.shape-circle .avatar-img,.shape-circle .avatar-initials{border-radius:50%}.shape-rounded .avatar-img,.shape-rounded .avatar-initials{border-radius:10px}.shape-square .avatar-img,.shape-square .avatar-initials{border-radius:4px}.avatar-img{width:100%;height:100%;object-fit:cover;display:block;border:2px solid var(--bg-primary, #fff);box-shadow:0 1px 3px #0000001f}.avatar-initials{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff;border:2px solid var(--bg-primary, #fff);box-shadow:0 1px 3px #0000001f;letter-spacing:.03em}.avatar-status{position:absolute;bottom:1px;right:1px;width:28%;height:28%;min-width:8px;min-height:8px;border-radius:50%;border:2px solid var(--bg-primary, #fff)}.status-online{background:#22c55e}.status-offline{background:#94a3b8}.status-busy{background:#ef4444}.status-away{background:#f59e0b}.avatar-badge{position:absolute;top:-4px;right:-4px;background:var(--primary-color, #4f46e5);color:#fff;font-size:9px;font-weight:800;padding:1px 4px;border-radius:999px;border:2px solid var(--bg-primary, #fff);line-height:1.4}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
638
+ }
639
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: AvatarComponent, decorators: [{
640
+ type: Component,
641
+ args: [{ selector: 'ngx-avatar', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule], template: `
642
+ <div
643
+ class="ngx-avatar"
644
+ [class]="'size-' + size() + ' shape-' + shape()"
645
+ [attr.title]="name() || null"
646
+ >
647
+ @if (src()) {
648
+ <img
649
+ class="avatar-img"
650
+ [src]="src()"
651
+ [alt]="name() || 'avatar'"
652
+ (error)="imgError.set(true)"
653
+ />
654
+ }
655
+
656
+ @if (!src() || imgError()) {
657
+ <span class="avatar-initials" [style.background]="bgColor()">
658
+ {{ displayInitials() }}
659
+ </span>
660
+ }
661
+
662
+ @if (status() !== 'none') {
663
+ <span class="avatar-status" [class]="'status-' + status()"></span>
664
+ }
665
+
666
+ @if (badge()) {
667
+ <span class="avatar-badge">{{ badge() }}</span>
668
+ }
669
+ </div>
670
+ `, styles: [":host{display:inline-block;line-height:0}.ngx-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:visible;font-family:inherit;flex-shrink:0}.size-xs{width:24px;height:24px;font-size:9px}.size-sm{width:32px;height:32px;font-size:11px}.size-md{width:40px;height:40px;font-size:13px}.size-lg{width:52px;height:52px;font-size:16px}.size-xl{width:68px;height:68px;font-size:20px}.shape-circle .avatar-img,.shape-circle .avatar-initials{border-radius:50%}.shape-rounded .avatar-img,.shape-rounded .avatar-initials{border-radius:10px}.shape-square .avatar-img,.shape-square .avatar-initials{border-radius:4px}.avatar-img{width:100%;height:100%;object-fit:cover;display:block;border:2px solid var(--bg-primary, #fff);box-shadow:0 1px 3px #0000001f}.avatar-initials{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff;border:2px solid var(--bg-primary, #fff);box-shadow:0 1px 3px #0000001f;letter-spacing:.03em}.avatar-status{position:absolute;bottom:1px;right:1px;width:28%;height:28%;min-width:8px;min-height:8px;border-radius:50%;border:2px solid var(--bg-primary, #fff)}.status-online{background:#22c55e}.status-offline{background:#94a3b8}.status-busy{background:#ef4444}.status-away{background:#f59e0b}.avatar-badge{position:absolute;top:-4px;right:-4px;background:var(--primary-color, #4f46e5);color:#fff;font-size:9px;font-weight:800;padding:1px 4px;border-radius:999px;border:2px solid var(--bg-primary, #fff);line-height:1.4}\n"] }]
671
+ }] });
672
+ /** Avatar group with overlap + overflow count */
673
+ class AvatarGroupComponent {
674
+ avatars = input([]);
675
+ maxShow = input(5);
676
+ size = input('md');
677
+ shape = input('circle');
678
+ overlapPx = computed(() => {
679
+ const map = { xs: 8, sm: 10, md: 12, lg: 14, xl: 18 };
680
+ return map[this.size()];
681
+ });
682
+ visibleAvatars = computed(() => this.avatars().slice(0, this.maxShow()));
683
+ overflowCount = computed(() => Math.max(0, this.avatars().length - this.maxShow()));
684
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: AvatarGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
685
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: AvatarGroupComponent, isStandalone: true, selector: "ngx-avatar-group", inputs: { avatars: { classPropertyName: "avatars", publicName: "avatars", isSignal: true, isRequired: false, transformFunction: null }, maxShow: { classPropertyName: "maxShow", publicName: "maxShow", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
686
+ <div class="ngx-avatar-group" [style.gap]="'-' + overlapPx() + 'px'">
687
+ @for (av of visibleAvatars(); track av.id ?? $index) {
688
+ <ngx-avatar
689
+ [name]="av.name || ''"
690
+ [src]="av.src || ''"
691
+ [size]="size()"
692
+ [shape]="shape()"
693
+ [color]="av.color || ''"
694
+ ></ngx-avatar>
695
+ }
696
+ @if (overflowCount() > 0) {
697
+ <div
698
+ class="overflow-bubble"
699
+ [class]="'size-' + size() + ' shape-' + shape()"
700
+ [attr.title]="'+' + overflowCount() + ' more'"
701
+ >
702
+ +{{ overflowCount() }}
703
+ </div>
704
+ }
705
+ </div>
706
+ `, isInline: true, styles: [":host{display:inline-block}.ngx-avatar-group{display:flex;flex-direction:row}.ngx-avatar-group ngx-avatar{margin-left:-10px}.ngx-avatar-group ngx-avatar:first-child{margin-left:0}.overflow-bubble{display:inline-flex;align-items:center;justify-content:center;background:var(--bg-secondary, #e2e8f0);color:var(--text-secondary, #64748b);font-weight:700;font-size:11px;border:2px solid var(--bg-primary, #fff);box-shadow:0 1px 3px #0000001f;flex-shrink:0;margin-left:-10px}.size-xs{width:24px;height:24px;font-size:8px}.size-sm{width:32px;height:32px;font-size:9px}.size-md{width:40px;height:40px;font-size:11px}.size-lg{width:52px;height:52px;font-size:13px}.size-xl{width:68px;height:68px;font-size:16px}.shape-circle{border-radius:50%}.shape-rounded{border-radius:10px}.shape-square{border-radius:4px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: AvatarComponent, selector: "ngx-avatar", inputs: ["name", "src", "size", "shape", "status", "badge", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
707
+ }
708
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: AvatarGroupComponent, decorators: [{
709
+ type: Component,
710
+ args: [{ selector: 'ngx-avatar-group', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, AvatarComponent], template: `
711
+ <div class="ngx-avatar-group" [style.gap]="'-' + overlapPx() + 'px'">
712
+ @for (av of visibleAvatars(); track av.id ?? $index) {
713
+ <ngx-avatar
714
+ [name]="av.name || ''"
715
+ [src]="av.src || ''"
716
+ [size]="size()"
717
+ [shape]="shape()"
718
+ [color]="av.color || ''"
719
+ ></ngx-avatar>
720
+ }
721
+ @if (overflowCount() > 0) {
722
+ <div
723
+ class="overflow-bubble"
724
+ [class]="'size-' + size() + ' shape-' + shape()"
725
+ [attr.title]="'+' + overflowCount() + ' more'"
726
+ >
727
+ +{{ overflowCount() }}
728
+ </div>
729
+ }
730
+ </div>
731
+ `, styles: [":host{display:inline-block}.ngx-avatar-group{display:flex;flex-direction:row}.ngx-avatar-group ngx-avatar{margin-left:-10px}.ngx-avatar-group ngx-avatar:first-child{margin-left:0}.overflow-bubble{display:inline-flex;align-items:center;justify-content:center;background:var(--bg-secondary, #e2e8f0);color:var(--text-secondary, #64748b);font-weight:700;font-size:11px;border:2px solid var(--bg-primary, #fff);box-shadow:0 1px 3px #0000001f;flex-shrink:0;margin-left:-10px}.size-xs{width:24px;height:24px;font-size:8px}.size-sm{width:32px;height:32px;font-size:9px}.size-md{width:40px;height:40px;font-size:11px}.size-lg{width:52px;height:52px;font-size:13px}.size-xl{width:68px;height:68px;font-size:16px}.shape-circle{border-radius:50%}.shape-rounded{border-radius:10px}.shape-square{border-radius:4px}\n"] }]
732
+ }] });
733
+
734
+ class CountdownComponent {
735
+ // Inputs
736
+ targetDate = input(null);
737
+ duration = input(null); // in seconds
738
+ showRing = input(true);
739
+ ringColor = input('');
740
+ theme = input('light');
741
+ variant = input('default');
742
+ autoStart = input(true);
743
+ showControls = input(true);
744
+ compactOnly = input(false);
745
+ forceShowDays = input(false);
746
+ id = input('ngx-countdown-' + Math.random().toString(36).substring(2, 9));
747
+ // Outputs
748
+ finished = output();
749
+ tick = output();
750
+ // Internal Signals
751
+ remainingSeconds = signal(0);
752
+ initialTotalSeconds = signal(1);
753
+ isRunning = signal(false);
754
+ timerId = null;
755
+ // Computeds
756
+ days = computed(() => Math.floor(this.remainingSeconds() / 86400));
757
+ hours = computed(() => Math.floor((this.remainingSeconds() % 86400) / 3600));
758
+ minutes = computed(() => Math.floor((this.remainingSeconds() % 3600) / 60));
759
+ seconds = computed(() => this.remainingSeconds() % 60);
760
+ isFinished = computed(() => this.remainingSeconds() <= 0);
761
+ // Compute progress ratio (0 to 1) for the SVG circle offset
762
+ progressRatio = computed(() => {
763
+ if (this.initialTotalSeconds() <= 0)
764
+ return 0;
765
+ const ratio = this.remainingSeconds() / this.initialTotalSeconds();
766
+ return Math.max(0, Math.min(1, ratio));
767
+ });
768
+ strokeDashoffset = computed(() => {
769
+ const circumference = 326.7; // 2 * Math.PI * 52
770
+ return circumference * (1 - this.progressRatio());
771
+ });
772
+ formattedCompactTime = computed(() => {
773
+ const d = this.days();
774
+ const h = this.formatNumber(this.hours());
775
+ const m = this.formatNumber(this.minutes());
776
+ const s = this.formatNumber(this.seconds());
777
+ if (d > 0) {
778
+ return `${d}d ${h}:${m}`;
779
+ }
780
+ return `${h}:${m}:${s}`;
781
+ });
782
+ variantClass = computed(() => {
783
+ return this.variant() !== 'default' ? `success danger warning info`.split(' ').includes(this.variant()) ? this.variant() : '' : '';
784
+ });
785
+ constructor() {
786
+ effect(() => {
787
+ // React to changes in inputs
788
+ this.targetDate();
789
+ this.duration();
790
+ untracked(() => {
791
+ this.reset();
792
+ if (this.autoStart() && !this.isFinished()) {
793
+ this.start();
794
+ }
795
+ });
796
+ }, { allowSignalWrites: true });
797
+ }
798
+ ngOnDestroy() {
799
+ this.clearTimer();
800
+ }
801
+ start() {
802
+ if (this.isFinished())
803
+ return;
804
+ if (this.timerId)
805
+ return;
806
+ this.isRunning.set(true);
807
+ this.timerId = setInterval(() => {
808
+ const nextVal = this.remainingSeconds() - 1;
809
+ if (nextVal <= 0) {
810
+ this.remainingSeconds.set(0);
811
+ this.clearTimer();
812
+ this.isRunning.set(false);
813
+ this.finished.emit();
814
+ }
815
+ else {
816
+ this.remainingSeconds.set(nextVal);
817
+ }
818
+ this.tick.emit({
819
+ days: this.days(),
820
+ hours: this.hours(),
821
+ minutes: this.minutes(),
822
+ seconds: this.seconds(),
823
+ totalSeconds: this.remainingSeconds()
824
+ });
825
+ }, 1000);
826
+ }
827
+ pause() {
828
+ this.clearTimer();
829
+ this.isRunning.set(false);
830
+ }
831
+ reset() {
832
+ this.clearTimer();
833
+ this.isRunning.set(false);
834
+ let seconds = 0;
835
+ const target = this.targetDate();
836
+ const dur = this.duration();
837
+ if (target) {
838
+ const targetTime = new Date(target).getTime();
839
+ const now = new Date().getTime();
840
+ seconds = Math.max(0, Math.floor((targetTime - now) / 1000));
841
+ }
842
+ else if (dur !== null && dur !== undefined) {
843
+ seconds = Math.max(0, dur);
844
+ }
845
+ this.remainingSeconds.set(seconds);
846
+ this.initialTotalSeconds.set(seconds > 0 ? seconds : 1);
847
+ }
848
+ formatNumber(val) {
849
+ return val < 10 ? `0${val}` : `${val}`;
850
+ }
851
+ clearTimer() {
852
+ if (this.timerId) {
853
+ clearInterval(this.timerId);
854
+ this.timerId = null;
855
+ }
856
+ }
857
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: CountdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
858
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: CountdownComponent, isStandalone: true, selector: "ngx-countdown", inputs: { targetDate: { classPropertyName: "targetDate", publicName: "targetDate", isSignal: true, isRequired: false, transformFunction: null }, duration: { classPropertyName: "duration", publicName: "duration", isSignal: true, isRequired: false, transformFunction: null }, showRing: { classPropertyName: "showRing", publicName: "showRing", isSignal: true, isRequired: false, transformFunction: null }, ringColor: { classPropertyName: "ringColor", publicName: "ringColor", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, autoStart: { classPropertyName: "autoStart", publicName: "autoStart", isSignal: true, isRequired: false, transformFunction: null }, showControls: { classPropertyName: "showControls", publicName: "showControls", isSignal: true, isRequired: false, transformFunction: null }, compactOnly: { classPropertyName: "compactOnly", publicName: "compactOnly", isSignal: true, isRequired: false, transformFunction: null }, forceShowDays: { classPropertyName: "forceShowDays", publicName: "forceShowDays", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { finished: "finished", tick: "tick" }, ngImport: i0, template: `
859
+ <div
860
+ class="ngx-countdown"
861
+ [class.dark]="theme() === 'dark'"
862
+ [class]="variantClass()"
863
+ [attr.id]="id()"
864
+ >
865
+ @if (showRing()) {
866
+ <div class="ngx-countdown__ring-container">
867
+ <svg class="ngx-countdown__svg" viewBox="0 0 120 120">
868
+ <!-- Background circle -->
869
+ <circle
870
+ class="ngx-countdown__circle-bg"
871
+ cx="60"
872
+ cy="60"
873
+ r="52"
874
+ stroke-width="6"
875
+ />
876
+ <!-- Progress circle -->
877
+ <circle
878
+ class="ngx-countdown__circle-progress"
879
+ cx="60"
880
+ cy="60"
881
+ r="52"
882
+ stroke-width="6"
883
+ [style.stroke]="ringColor() || 'var(--primary-color)'"
884
+ [style.strokeDashoffset]="strokeDashoffset()"
885
+ stroke-linecap="round"
886
+ transform="rotate(-90 60 60)"
887
+ />
888
+ </svg>
889
+ <div class="ngx-countdown__ring-content">
890
+ <span class="ngx-countdown__ring-value">{{ formattedCompactTime() }}</span>
891
+ <span class="ngx-countdown__ring-label">remaining</span>
892
+ </div>
893
+ </div>
894
+ }
895
+
896
+ <!-- Flip-card style countdown layout -->
897
+ <div class="ngx-countdown__grid" [class.hidden]="showRing() && compactOnly()">
898
+ <!-- Days -->
899
+ @if (days() > 0 || forceShowDays()) {
900
+ <div class="ngx-countdown__card">
901
+ <div class="ngx-countdown__number-wrap">
902
+ <span class="ngx-countdown__number">{{ formatNumber(days()) }}</span>
903
+ </div>
904
+ <span class="ngx-countdown__label">Days</span>
905
+ </div>
906
+ }
907
+
908
+ <!-- Hours -->
909
+ <div class="ngx-countdown__card">
910
+ <div class="ngx-countdown__number-wrap">
911
+ <span class="ngx-countdown__number">{{ formatNumber(hours()) }}</span>
912
+ </div>
913
+ <span class="ngx-countdown__label">Hours</span>
914
+ </div>
915
+
916
+ <!-- Minutes -->
917
+ <div class="ngx-countdown__card">
918
+ <div class="ngx-countdown__number-wrap">
919
+ <span class="ngx-countdown__number">{{ formatNumber(minutes()) }}</span>
920
+ </div>
921
+ <span class="ngx-countdown__label">Minutes</span>
922
+ </div>
923
+
924
+ <!-- Seconds -->
925
+ <div class="ngx-countdown__card">
926
+ <div class="ngx-countdown__number-wrap">
927
+ <span class="ngx-countdown__number">{{ formatNumber(seconds()) }}</span>
928
+ </div>
929
+ <span class="ngx-countdown__label">Seconds</span>
930
+ </div>
931
+ </div>
932
+
933
+ <!-- Controls -->
934
+ @if (showControls()) {
935
+ <div class="ngx-countdown__controls">
936
+ @if (isRunning()) {
937
+ <button class="ngx-countdown__btn btn-pause" (click)="pause()" aria-label="Pause timer">
938
+ <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
939
+ <rect x="6" y="4" width="4" height="16" rx="1" />
940
+ <rect x="14" y="4" width="4" height="16" rx="1" />
941
+ </svg>
942
+ Pause
943
+ </button>
944
+ } @else {
945
+ <button class="ngx-countdown__btn btn-start" (click)="start()" [disabled]="isFinished()" aria-label="Start timer">
946
+ <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
947
+ <polygon points="5 3 19 12 5 21 5 3" />
948
+ </svg>
949
+ Start
950
+ </button>
951
+ }
952
+ <button class="ngx-countdown__btn btn-reset" (click)="reset()" aria-label="Reset timer">
953
+ <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
954
+ <path d="M21.5 2v6h-6M21.34 15.57a10 10 0 1 1-.57-8.38l5.67-5.67" />
955
+ </svg>
956
+ Reset
957
+ </button>
958
+ </div>
959
+ }
960
+ </div>
961
+ `, isInline: true, styles: [":host{display:inline-block}.ngx-countdown{display:flex;flex-direction:column;align-items:center;gap:20px;padding:24px;border-radius:20px;font-family:var(--ngx-font-family, system-ui, sans-serif);background:#ffffff8c;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.4);box-shadow:0 10px 30px -10px #00000014,0 1px 3px #00000008,inset 0 1px #fffc;transition:all .3s ease}.ngx-countdown.dark{background:#1e2030cc;border-color:#ffffff14;box-shadow:0 10px 30px -10px #0000004d,0 1px 3px #0000001a}.ngx-countdown__ring-container{position:relative;width:140px;height:140px;display:flex;align-items:center;justify-content:center}.ngx-countdown__svg{position:absolute;top:0;left:0;width:100%;height:100%}.ngx-countdown__circle-bg{fill:none;stroke:#0000000d}.dark .ngx-countdown__circle-bg{stroke:#ffffff0f}.ngx-countdown__circle-progress{fill:none;stroke:var(--primary-color);transition:stroke-dashoffset 1s linear;stroke-dasharray:326.7}.ngx-countdown__ring-content{display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:1}.ngx-countdown__ring-value{font-size:20px;font-weight:700;color:#1e293b;letter-spacing:-.5px}.dark .ngx-countdown__ring-value{color:#f1f5f9}.ngx-countdown__ring-label{font-size:10px;font-weight:500;text-transform:uppercase;letter-spacing:1px;color:#64748b;margin-top:2px}.dark .ngx-countdown__ring-label{color:#94a3b8}.ngx-countdown__grid{display:flex;gap:12px;justify-content:center}.ngx-countdown__grid.hidden{display:none}.ngx-countdown__card{display:flex;flex-direction:column;align-items:center;gap:6px}.ngx-countdown__number-wrap{display:flex;align-items:center;justify-content:center;min-width:58px;height:58px;border-radius:12px;background:#ffffffd9;border:1px solid rgba(255,255,255,.7);box-shadow:0 4px 6px -1px #0000000d,0 2px 4px -1px #00000008;transition:all .3s cubic-bezier(.4,0,.2,1)}.dark .ngx-countdown__number-wrap{background:#0f172a73;border-color:#ffffff0f;box-shadow:none}.ngx-countdown__number{font-size:26px;font-weight:700;color:#0f172a;font-variant-numeric:tabular-nums}.dark .ngx-countdown__number{color:#f8fafc;text-shadow:0 0 10px rgba(255,255,255,.05)}.ngx-countdown__label{font-size:11px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.5px}.dark .ngx-countdown__label{color:#94a3b8}.ngx-countdown__controls{display:flex;gap:8px;margin-top:4px}.ngx-countdown__btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;font-size:12px;font-weight:600;border-radius:8px;cursor:pointer;background:#fffc;border:1.5px solid rgba(0,0,0,.06);color:#334155;transition:all .2s ease}.ngx-countdown__btn svg{transition:transform .2s ease}.ngx-countdown__btn:hover:not(:disabled){background:#f8fafc;border-color:#0000001f;transform:translateY(-1px)}.ngx-countdown__btn:active:not(:disabled){transform:translateY(0)}.ngx-countdown__btn:disabled{opacity:.5;cursor:not-allowed}.dark .ngx-countdown__btn{background:#ffffff0d;border-color:#ffffff14;color:#e2e8f0}.dark .ngx-countdown__btn:hover:not(:disabled){background:#ffffff14;border-color:#ffffff26}.ngx-countdown.success .ngx-countdown__circle-progress{stroke:#10b981!important}.ngx-countdown.danger .ngx-countdown__circle-progress{stroke:#ef4444!important}.ngx-countdown.warning .ngx-countdown__circle-progress{stroke:#f59e0b!important}.ngx-countdown.info .ngx-countdown__circle-progress{stroke:#3b82f6!important}.ngx-countdown.success .ngx-countdown__number-wrap{border-color:#10b98140}.ngx-countdown.danger .ngx-countdown__number-wrap{border-color:#ef444440}.ngx-countdown.warning .ngx-countdown__number-wrap{border-color:#f59e0b40}.ngx-countdown.info .ngx-countdown__number-wrap{border-color:#3b82f640}.dark.ngx-countdown.success .ngx-countdown__number-wrap{border-color:#10b98126}.dark.ngx-countdown.danger .ngx-countdown__number-wrap{border-color:#ef444426}.dark.ngx-countdown.warning .ngx-countdown__number-wrap{border-color:#f59e0b26}.dark.ngx-countdown.info .ngx-countdown__number-wrap{border-color:#3b82f626}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
962
+ }
963
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: CountdownComponent, decorators: [{
964
+ type: Component,
965
+ args: [{ selector: 'ngx-countdown', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
966
+ <div
967
+ class="ngx-countdown"
968
+ [class.dark]="theme() === 'dark'"
969
+ [class]="variantClass()"
970
+ [attr.id]="id()"
971
+ >
972
+ @if (showRing()) {
973
+ <div class="ngx-countdown__ring-container">
974
+ <svg class="ngx-countdown__svg" viewBox="0 0 120 120">
975
+ <!-- Background circle -->
976
+ <circle
977
+ class="ngx-countdown__circle-bg"
978
+ cx="60"
979
+ cy="60"
980
+ r="52"
981
+ stroke-width="6"
982
+ />
983
+ <!-- Progress circle -->
984
+ <circle
985
+ class="ngx-countdown__circle-progress"
986
+ cx="60"
987
+ cy="60"
988
+ r="52"
989
+ stroke-width="6"
990
+ [style.stroke]="ringColor() || 'var(--primary-color)'"
991
+ [style.strokeDashoffset]="strokeDashoffset()"
992
+ stroke-linecap="round"
993
+ transform="rotate(-90 60 60)"
994
+ />
995
+ </svg>
996
+ <div class="ngx-countdown__ring-content">
997
+ <span class="ngx-countdown__ring-value">{{ formattedCompactTime() }}</span>
998
+ <span class="ngx-countdown__ring-label">remaining</span>
999
+ </div>
1000
+ </div>
1001
+ }
1002
+
1003
+ <!-- Flip-card style countdown layout -->
1004
+ <div class="ngx-countdown__grid" [class.hidden]="showRing() && compactOnly()">
1005
+ <!-- Days -->
1006
+ @if (days() > 0 || forceShowDays()) {
1007
+ <div class="ngx-countdown__card">
1008
+ <div class="ngx-countdown__number-wrap">
1009
+ <span class="ngx-countdown__number">{{ formatNumber(days()) }}</span>
1010
+ </div>
1011
+ <span class="ngx-countdown__label">Days</span>
1012
+ </div>
1013
+ }
1014
+
1015
+ <!-- Hours -->
1016
+ <div class="ngx-countdown__card">
1017
+ <div class="ngx-countdown__number-wrap">
1018
+ <span class="ngx-countdown__number">{{ formatNumber(hours()) }}</span>
1019
+ </div>
1020
+ <span class="ngx-countdown__label">Hours</span>
1021
+ </div>
1022
+
1023
+ <!-- Minutes -->
1024
+ <div class="ngx-countdown__card">
1025
+ <div class="ngx-countdown__number-wrap">
1026
+ <span class="ngx-countdown__number">{{ formatNumber(minutes()) }}</span>
1027
+ </div>
1028
+ <span class="ngx-countdown__label">Minutes</span>
1029
+ </div>
1030
+
1031
+ <!-- Seconds -->
1032
+ <div class="ngx-countdown__card">
1033
+ <div class="ngx-countdown__number-wrap">
1034
+ <span class="ngx-countdown__number">{{ formatNumber(seconds()) }}</span>
1035
+ </div>
1036
+ <span class="ngx-countdown__label">Seconds</span>
1037
+ </div>
1038
+ </div>
1039
+
1040
+ <!-- Controls -->
1041
+ @if (showControls()) {
1042
+ <div class="ngx-countdown__controls">
1043
+ @if (isRunning()) {
1044
+ <button class="ngx-countdown__btn btn-pause" (click)="pause()" aria-label="Pause timer">
1045
+ <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
1046
+ <rect x="6" y="4" width="4" height="16" rx="1" />
1047
+ <rect x="14" y="4" width="4" height="16" rx="1" />
1048
+ </svg>
1049
+ Pause
1050
+ </button>
1051
+ } @else {
1052
+ <button class="ngx-countdown__btn btn-start" (click)="start()" [disabled]="isFinished()" aria-label="Start timer">
1053
+ <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
1054
+ <polygon points="5 3 19 12 5 21 5 3" />
1055
+ </svg>
1056
+ Start
1057
+ </button>
1058
+ }
1059
+ <button class="ngx-countdown__btn btn-reset" (click)="reset()" aria-label="Reset timer">
1060
+ <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
1061
+ <path d="M21.5 2v6h-6M21.34 15.57a10 10 0 1 1-.57-8.38l5.67-5.67" />
1062
+ </svg>
1063
+ Reset
1064
+ </button>
1065
+ </div>
1066
+ }
1067
+ </div>
1068
+ `, styles: [":host{display:inline-block}.ngx-countdown{display:flex;flex-direction:column;align-items:center;gap:20px;padding:24px;border-radius:20px;font-family:var(--ngx-font-family, system-ui, sans-serif);background:#ffffff8c;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.4);box-shadow:0 10px 30px -10px #00000014,0 1px 3px #00000008,inset 0 1px #fffc;transition:all .3s ease}.ngx-countdown.dark{background:#1e2030cc;border-color:#ffffff14;box-shadow:0 10px 30px -10px #0000004d,0 1px 3px #0000001a}.ngx-countdown__ring-container{position:relative;width:140px;height:140px;display:flex;align-items:center;justify-content:center}.ngx-countdown__svg{position:absolute;top:0;left:0;width:100%;height:100%}.ngx-countdown__circle-bg{fill:none;stroke:#0000000d}.dark .ngx-countdown__circle-bg{stroke:#ffffff0f}.ngx-countdown__circle-progress{fill:none;stroke:var(--primary-color);transition:stroke-dashoffset 1s linear;stroke-dasharray:326.7}.ngx-countdown__ring-content{display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:1}.ngx-countdown__ring-value{font-size:20px;font-weight:700;color:#1e293b;letter-spacing:-.5px}.dark .ngx-countdown__ring-value{color:#f1f5f9}.ngx-countdown__ring-label{font-size:10px;font-weight:500;text-transform:uppercase;letter-spacing:1px;color:#64748b;margin-top:2px}.dark .ngx-countdown__ring-label{color:#94a3b8}.ngx-countdown__grid{display:flex;gap:12px;justify-content:center}.ngx-countdown__grid.hidden{display:none}.ngx-countdown__card{display:flex;flex-direction:column;align-items:center;gap:6px}.ngx-countdown__number-wrap{display:flex;align-items:center;justify-content:center;min-width:58px;height:58px;border-radius:12px;background:#ffffffd9;border:1px solid rgba(255,255,255,.7);box-shadow:0 4px 6px -1px #0000000d,0 2px 4px -1px #00000008;transition:all .3s cubic-bezier(.4,0,.2,1)}.dark .ngx-countdown__number-wrap{background:#0f172a73;border-color:#ffffff0f;box-shadow:none}.ngx-countdown__number{font-size:26px;font-weight:700;color:#0f172a;font-variant-numeric:tabular-nums}.dark .ngx-countdown__number{color:#f8fafc;text-shadow:0 0 10px rgba(255,255,255,.05)}.ngx-countdown__label{font-size:11px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.5px}.dark .ngx-countdown__label{color:#94a3b8}.ngx-countdown__controls{display:flex;gap:8px;margin-top:4px}.ngx-countdown__btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;font-size:12px;font-weight:600;border-radius:8px;cursor:pointer;background:#fffc;border:1.5px solid rgba(0,0,0,.06);color:#334155;transition:all .2s ease}.ngx-countdown__btn svg{transition:transform .2s ease}.ngx-countdown__btn:hover:not(:disabled){background:#f8fafc;border-color:#0000001f;transform:translateY(-1px)}.ngx-countdown__btn:active:not(:disabled){transform:translateY(0)}.ngx-countdown__btn:disabled{opacity:.5;cursor:not-allowed}.dark .ngx-countdown__btn{background:#ffffff0d;border-color:#ffffff14;color:#e2e8f0}.dark .ngx-countdown__btn:hover:not(:disabled){background:#ffffff14;border-color:#ffffff26}.ngx-countdown.success .ngx-countdown__circle-progress{stroke:#10b981!important}.ngx-countdown.danger .ngx-countdown__circle-progress{stroke:#ef4444!important}.ngx-countdown.warning .ngx-countdown__circle-progress{stroke:#f59e0b!important}.ngx-countdown.info .ngx-countdown__circle-progress{stroke:#3b82f6!important}.ngx-countdown.success .ngx-countdown__number-wrap{border-color:#10b98140}.ngx-countdown.danger .ngx-countdown__number-wrap{border-color:#ef444440}.ngx-countdown.warning .ngx-countdown__number-wrap{border-color:#f59e0b40}.ngx-countdown.info .ngx-countdown__number-wrap{border-color:#3b82f640}.dark.ngx-countdown.success .ngx-countdown__number-wrap{border-color:#10b98126}.dark.ngx-countdown.danger .ngx-countdown__number-wrap{border-color:#ef444426}.dark.ngx-countdown.warning .ngx-countdown__number-wrap{border-color:#f59e0b26}.dark.ngx-countdown.info .ngx-countdown__number-wrap{border-color:#3b82f626}\n"] }]
1069
+ }], ctorParameters: () => [] });
1070
+
1071
+ class EmptyStateComponent {
1072
+ // Inputs
1073
+ title = input.required();
1074
+ description = input('');
1075
+ illustration = input('data');
1076
+ primaryActionText = input('');
1077
+ secondaryActionText = input('');
1078
+ theme = input('light');
1079
+ id = input('ngx-empty-state-' + Math.random().toString(36).substring(2, 9));
1080
+ // Outputs
1081
+ primaryAction = output();
1082
+ secondaryAction = output();
1083
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: EmptyStateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1084
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: EmptyStateComponent, isStandalone: true, selector: "ngx-empty-state", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, illustration: { classPropertyName: "illustration", publicName: "illustration", isSignal: true, isRequired: false, transformFunction: null }, primaryActionText: { classPropertyName: "primaryActionText", publicName: "primaryActionText", isSignal: true, isRequired: false, transformFunction: null }, secondaryActionText: { classPropertyName: "secondaryActionText", publicName: "secondaryActionText", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { primaryAction: "primaryAction", secondaryAction: "secondaryAction" }, ngImport: i0, template: `
1085
+ <div
1086
+ class="ngx-empty-state"
1087
+ [class.dark]="theme() === 'dark'"
1088
+ [attr.id]="id()"
1089
+ >
1090
+ <!-- Illustration Section -->
1091
+ @if (illustration() !== 'none') {
1092
+ <div class="ngx-empty-state__illustration">
1093
+ @switch (illustration()) {
1094
+ @case ('search') {
1095
+ <svg viewBox="0 0 24 24" class="illustration-svg outline-blue" fill="none" stroke="currentColor" stroke-width="1.5">
1096
+ <circle cx="11" cy="11" r="7"/>
1097
+ <line x1="21" y1="21" x2="16.65" y2="16.65"/>
1098
+ <path d="M8 11h6" stroke-dasharray="2 2"/>
1099
+ </svg>
1100
+ }
1101
+ @case ('chat') {
1102
+ <svg viewBox="0 0 24 24" class="illustration-svg outline-indigo" fill="none" stroke="currentColor" stroke-width="1.5">
1103
+ <path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/>
1104
+ <circle cx="9" cy="10" r="1" fill="currentColor"/>
1105
+ <circle cx="13" cy="10" r="1" fill="currentColor"/>
1106
+ <circle cx="17" cy="10" r="1" fill="currentColor"/>
1107
+ </svg>
1108
+ }
1109
+ @case ('error') {
1110
+ <svg viewBox="0 0 24 24" class="illustration-svg outline-red" fill="none" stroke="currentColor" stroke-width="1.5">
1111
+ <path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/>
1112
+ <line x1="12" y1="9" x2="12" y2="13"/>
1113
+ <line x1="12" y1="17" x2="12.01" y2="17"/>
1114
+ </svg>
1115
+ }
1116
+ @default {
1117
+ <!-- 'data' layout default -->
1118
+ <svg viewBox="0 0 24 24" class="illustration-svg outline-slate" fill="none" stroke="currentColor" stroke-width="1.5">
1119
+ <ellipse cx="12" cy="5" rx="9" ry="3"/>
1120
+ <path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"/>
1121
+ <path d="M3 12c0 1.66 4 3 9 3s9-1.34 9-3"/>
1122
+ </svg>
1123
+ }
1124
+ }
1125
+ </div>
1126
+ }
1127
+
1128
+ <!-- Custom Projection slot for custom illustrations -->
1129
+ <div class="ngx-empty-state__custom-media">
1130
+ <ng-content select="[empty-media]"></ng-content>
1131
+ </div>
1132
+
1133
+ <!-- Text details -->
1134
+ <h3 class="ngx-empty-state__title">{{ title() }}</h3>
1135
+ <p class="ngx-empty-state__desc">{{ description() }}</p>
1136
+
1137
+ <!-- Projected slot for custom descriptions/content -->
1138
+ <div class="ngx-empty-state__custom-content">
1139
+ <ng-content></ng-content>
1140
+ </div>
1141
+
1142
+ <!-- CTA Buttons actions -->
1143
+ @if (primaryActionText() || secondaryActionText()) {
1144
+ <div class="ngx-empty-state__actions">
1145
+ @if (secondaryActionText()) {
1146
+ <button
1147
+ class="ngx-empty-state__btn btn-secondary"
1148
+ (click)="secondaryAction.emit()"
1149
+ >
1150
+ {{ secondaryActionText() }}
1151
+ </button>
1152
+ }
1153
+ @if (primaryActionText()) {
1154
+ <button
1155
+ class="ngx-empty-state__btn btn-primary"
1156
+ (click)="primaryAction.emit()"
1157
+ >
1158
+ {{ primaryActionText() }}
1159
+ </button>
1160
+ }
1161
+ </div>
1162
+ }
1163
+ </div>
1164
+ `, isInline: true, styles: [":host{display:block;width:100%}.ngx-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 32px;border-radius:16px;background:#ffffff73;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(0,0,0,.04);box-shadow:0 4px 10px #00000005,0 1px 3px #00000003;box-sizing:border-box;font-family:var(--ngx-font-family, system-ui, sans-serif);transition:all .3s ease;animation:fadeIn .4s cubic-bezier(.16,1,.3,1) forwards}.ngx-empty-state.dark{background:#1e203066;border-color:#ffffff0d;box-shadow:none}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.ngx-empty-state__illustration{display:flex;align-items:center;justify-content:center;width:72px;height:72px;border-radius:50%;background:#00000005;margin-bottom:20px}.dark .ngx-empty-state__illustration{background:#ffffff08}.illustration-svg{width:36px;height:36px}.outline-slate{color:#64748b}.outline-blue{color:#3b82f6}.outline-indigo{color:#6366f1}.outline-red{color:#ef4444}.ngx-empty-state__custom-media{margin-bottom:16px}.ngx-empty-state__title{margin:0 0 8px;font-size:16px;font-weight:700;color:#0f172a}.dark .ngx-empty-state__title{color:#f8fafc}.ngx-empty-state__desc{margin:0;font-size:13px;color:#64748b;line-height:1.5;max-width:380px}.dark .ngx-empty-state__desc{color:#94a3b8}.ngx-empty-state__custom-content{margin-top:12px;width:100%}.ngx-empty-state__actions{display:flex;gap:12px;justify-content:center;margin-top:24px}.ngx-empty-state__btn{padding:8px 16px;font-size:13px;font-weight:600;border-radius:6px;cursor:pointer;border:none;transition:all .2s ease}.ngx-empty-state__btn:hover{transform:translateY(-1px)}.ngx-empty-state__btn.btn-primary{background:var(--primary-color, #3b82f6);color:#fff}.ngx-empty-state__btn.btn-primary:hover{box-shadow:0 4px 12px #3b82f633;opacity:.95}.ngx-empty-state__btn.btn-secondary{background:#f1f5f9;color:#475569;border:1px solid #e2e8f0}.ngx-empty-state__btn.btn-secondary:hover{background:#e2e8f0;color:#0f172a}.dark .ngx-empty-state__btn.btn-secondary{background:#ffffff0d;color:#cbd5e1;border-color:#ffffff14}.dark .ngx-empty-state__btn.btn-secondary:hover{background:#ffffff14;color:#fff}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1165
+ }
1166
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: EmptyStateComponent, decorators: [{
1167
+ type: Component,
1168
+ args: [{ selector: 'ngx-empty-state', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
1169
+ <div
1170
+ class="ngx-empty-state"
1171
+ [class.dark]="theme() === 'dark'"
1172
+ [attr.id]="id()"
1173
+ >
1174
+ <!-- Illustration Section -->
1175
+ @if (illustration() !== 'none') {
1176
+ <div class="ngx-empty-state__illustration">
1177
+ @switch (illustration()) {
1178
+ @case ('search') {
1179
+ <svg viewBox="0 0 24 24" class="illustration-svg outline-blue" fill="none" stroke="currentColor" stroke-width="1.5">
1180
+ <circle cx="11" cy="11" r="7"/>
1181
+ <line x1="21" y1="21" x2="16.65" y2="16.65"/>
1182
+ <path d="M8 11h6" stroke-dasharray="2 2"/>
1183
+ </svg>
1184
+ }
1185
+ @case ('chat') {
1186
+ <svg viewBox="0 0 24 24" class="illustration-svg outline-indigo" fill="none" stroke="currentColor" stroke-width="1.5">
1187
+ <path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/>
1188
+ <circle cx="9" cy="10" r="1" fill="currentColor"/>
1189
+ <circle cx="13" cy="10" r="1" fill="currentColor"/>
1190
+ <circle cx="17" cy="10" r="1" fill="currentColor"/>
1191
+ </svg>
1192
+ }
1193
+ @case ('error') {
1194
+ <svg viewBox="0 0 24 24" class="illustration-svg outline-red" fill="none" stroke="currentColor" stroke-width="1.5">
1195
+ <path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/>
1196
+ <line x1="12" y1="9" x2="12" y2="13"/>
1197
+ <line x1="12" y1="17" x2="12.01" y2="17"/>
1198
+ </svg>
1199
+ }
1200
+ @default {
1201
+ <!-- 'data' layout default -->
1202
+ <svg viewBox="0 0 24 24" class="illustration-svg outline-slate" fill="none" stroke="currentColor" stroke-width="1.5">
1203
+ <ellipse cx="12" cy="5" rx="9" ry="3"/>
1204
+ <path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"/>
1205
+ <path d="M3 12c0 1.66 4 3 9 3s9-1.34 9-3"/>
1206
+ </svg>
1207
+ }
1208
+ }
1209
+ </div>
1210
+ }
1211
+
1212
+ <!-- Custom Projection slot for custom illustrations -->
1213
+ <div class="ngx-empty-state__custom-media">
1214
+ <ng-content select="[empty-media]"></ng-content>
1215
+ </div>
1216
+
1217
+ <!-- Text details -->
1218
+ <h3 class="ngx-empty-state__title">{{ title() }}</h3>
1219
+ <p class="ngx-empty-state__desc">{{ description() }}</p>
1220
+
1221
+ <!-- Projected slot for custom descriptions/content -->
1222
+ <div class="ngx-empty-state__custom-content">
1223
+ <ng-content></ng-content>
1224
+ </div>
1225
+
1226
+ <!-- CTA Buttons actions -->
1227
+ @if (primaryActionText() || secondaryActionText()) {
1228
+ <div class="ngx-empty-state__actions">
1229
+ @if (secondaryActionText()) {
1230
+ <button
1231
+ class="ngx-empty-state__btn btn-secondary"
1232
+ (click)="secondaryAction.emit()"
1233
+ >
1234
+ {{ secondaryActionText() }}
1235
+ </button>
1236
+ }
1237
+ @if (primaryActionText()) {
1238
+ <button
1239
+ class="ngx-empty-state__btn btn-primary"
1240
+ (click)="primaryAction.emit()"
1241
+ >
1242
+ {{ primaryActionText() }}
1243
+ </button>
1244
+ }
1245
+ </div>
1246
+ }
1247
+ </div>
1248
+ `, styles: [":host{display:block;width:100%}.ngx-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 32px;border-radius:16px;background:#ffffff73;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(0,0,0,.04);box-shadow:0 4px 10px #00000005,0 1px 3px #00000003;box-sizing:border-box;font-family:var(--ngx-font-family, system-ui, sans-serif);transition:all .3s ease;animation:fadeIn .4s cubic-bezier(.16,1,.3,1) forwards}.ngx-empty-state.dark{background:#1e203066;border-color:#ffffff0d;box-shadow:none}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.ngx-empty-state__illustration{display:flex;align-items:center;justify-content:center;width:72px;height:72px;border-radius:50%;background:#00000005;margin-bottom:20px}.dark .ngx-empty-state__illustration{background:#ffffff08}.illustration-svg{width:36px;height:36px}.outline-slate{color:#64748b}.outline-blue{color:#3b82f6}.outline-indigo{color:#6366f1}.outline-red{color:#ef4444}.ngx-empty-state__custom-media{margin-bottom:16px}.ngx-empty-state__title{margin:0 0 8px;font-size:16px;font-weight:700;color:#0f172a}.dark .ngx-empty-state__title{color:#f8fafc}.ngx-empty-state__desc{margin:0;font-size:13px;color:#64748b;line-height:1.5;max-width:380px}.dark .ngx-empty-state__desc{color:#94a3b8}.ngx-empty-state__custom-content{margin-top:12px;width:100%}.ngx-empty-state__actions{display:flex;gap:12px;justify-content:center;margin-top:24px}.ngx-empty-state__btn{padding:8px 16px;font-size:13px;font-weight:600;border-radius:6px;cursor:pointer;border:none;transition:all .2s ease}.ngx-empty-state__btn:hover{transform:translateY(-1px)}.ngx-empty-state__btn.btn-primary{background:var(--primary-color, #3b82f6);color:#fff}.ngx-empty-state__btn.btn-primary:hover{box-shadow:0 4px 12px #3b82f633;opacity:.95}.ngx-empty-state__btn.btn-secondary{background:#f1f5f9;color:#475569;border:1px solid #e2e8f0}.ngx-empty-state__btn.btn-secondary:hover{background:#e2e8f0;color:#0f172a}.dark .ngx-empty-state__btn.btn-secondary{background:#ffffff0d;color:#cbd5e1;border-color:#ffffff14}.dark .ngx-empty-state__btn.btn-secondary:hover{background:#ffffff14;color:#fff}\n"] }]
1249
+ }] });
466
1250
 
467
1251
  /**
468
1252
  * Generated bundle index. Do not edit.
469
1253
  */
470
1254
 
471
- export { AlertComponent, BadgeComponent, NotificationContainerComponent, NotificationService, ProgressBarComponent, SkeletonComponent };
1255
+ export { AlertComponent, AvatarComponent, AvatarGroupComponent, BadgeComponent, CountdownComponent, EmptyStateComponent, NotificationContainerComponent, NotificationService, ProgressBarComponent, SkeletonComponent, StatCardComponent };
472
1256
  //# sourceMappingURL=ngx-core-components-feedback.mjs.map