ngx-core-components 0.3.4 → 0.3.6

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 +1 @@
1
- {"version":3,"file":"ngx-core-components-layout.mjs","sources":["../../../projects/ngx-core-components/layout/card/card.component.ts","../../../projects/ngx-core-components/layout/tab-strip/tab-strip.component.ts","../../../projects/ngx-core-components/layout/accordion/accordion.component.ts","../../../projects/ngx-core-components/layout/stepper/stepper.component.ts","../../../projects/ngx-core-components/layout/splitter/splitter.component.ts","../../../projects/ngx-core-components/layout/public-api.ts","../../../projects/ngx-core-components/layout/ngx-core-components-layout.ts"],"sourcesContent":["import { Component, computed, input, output } from '@angular/core';\n\nexport type CardVariant = 'default' | 'outlined' | 'elevated' | 'filled';\n\n@Component({\n selector: 'ngx-card',\n standalone: true,\n template: `\n <div\n class=\"ngx-card\"\n [class]=\"'ngx-card-' + variant()\"\n [class.hoverable]=\"hoverable()\"\n [class.selectable]=\"selectable()\"\n [class.selected]=\"selected()\"\n (click)=\"(selectable() || hoverable()) ? cardClick.emit($event) : null\"\n >\n @if (hasHeader()) {\n <div class=\"card-header\">\n @if (headerIcon()) { <span class=\"card-header-icon\">{{ headerIcon() }}</span> }\n <div class=\"card-header-text\">\n <div class=\"card-title\">{{ title() }}</div>\n @if (subtitle()) { <div class=\"card-subtitle\">{{ subtitle() }}</div> }\n </div>\n <div class=\"card-header-actions\">\n <ng-content select=\"[cardActions]\" />\n </div>\n </div>\n }\n @if (imageUrl()) {\n <div class=\"card-image\"><img [src]=\"imageUrl()\" [alt]=\"imageAlt()\" /></div>\n }\n <div class=\"card-body\">\n <ng-content />\n </div>\n <ng-content select=\"[cardFooter]\" />\n </div>\n `,\n styles: [`\n :host { display: block; }\n .ngx-card {\n background: var(--ngx-card-bg, #fff);\n border-radius: var(--ngx-card-radius, 8px);\n overflow: hidden; font-family: inherit;\n }\n .ngx-card-default { border: 1px solid var(--ngx-card-border, #e9ecef); }\n .ngx-card-outlined { border: 2px solid var(--ngx-card-border, #dee2e6); }\n .ngx-card-elevated { border: none; box-shadow: var(--ngx-card-shadow, 0 2px 12px rgba(0,0,0,0.1)); }\n .ngx-card-filled { background: var(--ngx-card-filled-bg, #f8f9fa); border: 1px solid transparent; }\n .ngx-card.hoverable { transition: box-shadow 0.2s, transform 0.2s; cursor: pointer; }\n .ngx-card.hoverable:hover { box-shadow: var(--ngx-card-hover-shadow, 0 4px 20px rgba(0,0,0,0.15)); transform: translateY(-2px); }\n .ngx-card.selectable { cursor: pointer; }\n .ngx-card.selected { border-color: var(--ngx-card-selected-border, #1a73e8); box-shadow: 0 0 0 2px rgba(26,115,232,0.2); }\n\n .card-header { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; }\n .card-header-icon { font-size: 20px; flex-shrink: 0; }\n .card-header-text { flex: 1; min-width: 0; }\n .card-title { font-size: 15px; font-weight: 700; color: var(--ngx-card-title-color, #212529); }\n .card-subtitle { font-size: 12px; color: var(--ngx-card-subtitle-color, #6c757d); margin-top: 2px; }\n .card-header-actions { display: flex; align-items: center; gap: 6px; }\n\n .card-image img { width: 100%; height: 180px; object-fit: cover; display: block; }\n .card-body { padding: var(--ngx-card-padding, 20px); font-size: 14px; color: var(--ngx-card-text, #495057); line-height: 1.6; }\n `]\n})\nexport class CardComponent {\n title = input('');\n subtitle = input('');\n headerIcon = input('');\n imageUrl = input('');\n imageAlt = input('');\n variant = input<CardVariant>('default');\n hoverable = input(false);\n selectable = input(false);\n selected = input(false);\n\n cardClick = output<MouseEvent>();\n\n hasHeader = computed(() => !!(this.title() || this.subtitle() || this.headerIcon()));\n}\n","import { Component, input, output, signal, contentChildren, AfterContentInit } from '@angular/core';\n\n@Component({\n selector: 'ngx-tab',\n standalone: true,\n template: `\n <div [hidden]=\"!isActive()\">\n <ng-content />\n </div>\n `,\n})\nexport class TabComponent {\n title = input.required<string>();\n icon = input<string>('');\n disabled = input(false);\n badge = input<string | number>('');\n isActive = signal(false);\n}\n\n@Component({\n selector: 'ngx-tab-strip',\n standalone: true,\n imports: [],\n template: `\n <div class=\"ngx-tab-strip\" [class]=\"'tabs-' + position()\">\n <div class=\"tab-list\" role=\"tablist\">\n @for (tab of tabs(); track tab.title(); let i = $index) {\n <button\n class=\"tab-btn\"\n [class.active]=\"activeIndex() === i\"\n [class.disabled]=\"tab.disabled()\"\n role=\"tab\"\n [attr.aria-selected]=\"activeIndex() === i\"\n [disabled]=\"tab.disabled()\"\n (click)=\"selectTab(i)\"\n >\n @if (tab.icon()) { <span class=\"tab-icon\" aria-hidden=\"true\">{{ tab.icon() }}</span> }\n <span class=\"tab-title\">{{ tab.title() }}</span>\n @if (tab.badge()) { <span class=\"tab-badge\">{{ tab.badge() }}</span> }\n </button>\n }\n </div>\n <div class=\"tab-content\" role=\"tabpanel\">\n <ng-content />\n </div>\n </div>\n `,\n styles: [`\n :host { display: block; }\n .ngx-tab-strip { display: flex; flex-direction: column; }\n .tab-list { display: flex; border-bottom: 2px solid var(--ngx-tab-border, #e9ecef); position: relative; overflow-x: auto; gap: 0; }\n .tab-btn {\n display: flex; align-items: center; gap: 6px; padding: 10px 18px;\n background: none; border: none; font-size: 13px; font-weight: 500;\n color: var(--ngx-tab-color, #6c757d); cursor: pointer; font-family: inherit;\n border-bottom: 2px solid transparent; margin-bottom: -2px;\n transition: color 0.15s; white-space: nowrap; position: relative;\n }\n .tab-btn:hover:not(:disabled):not(.active) { color: var(--ngx-tab-hover-color, #212529); }\n .tab-btn.active { color: var(--ngx-tab-active-color, #1a73e8); border-bottom-color: var(--ngx-tab-active-color, #1a73e8); font-weight: 600; }\n .tab-btn.disabled { opacity: 0.45; cursor: not-allowed; }\n .tab-icon { font-size: 15px; }\n .tab-badge { background: var(--ngx-tab-badge-bg, #e74c3c); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; min-width: 18px; text-align: center; }\n .tab-indicator { display: none; }\n .tab-content { padding: var(--ngx-tab-content-padding, 20px 0); }\n `]\n})\nexport class TabStripComponent implements AfterContentInit {\n position = input<'top' | 'bottom' | 'left' | 'right'>('top');\n activeIndex = signal(0);\n indicatorLeft = signal(0);\n indicatorWidth = signal(0);\n\n tabs = contentChildren(TabComponent);\n\n tabChange = output<number>();\n\n ngAfterContentInit() {\n this._syncActiveTabs();\n }\n\n selectTab(index: number) {\n this.activeIndex.set(index);\n this._syncActiveTabs();\n this.tabChange.emit(index);\n }\n\n private _syncActiveTabs(): void {\n const tabs = this.tabs();\n const active = this.activeIndex();\n tabs.forEach((tab, i) => tab.isActive.set(i === active));\n }\n}\n","import { Component, input, signal } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nexport interface AccordionItem {\n title: string;\n content: string;\n icon?: string;\n disabled?: boolean;\n expanded?: boolean;\n}\n\n@Component({\n selector: 'ngx-accordion',\n standalone: true,\n imports: [CommonModule],\n template: `\n <div class=\"ngx-accordion\">\n @for (item of items(); track item.title; let i = $index) {\n <div class=\"accordion-item\" [class.expanded]=\"isExpanded(i)\" [class.disabled]=\"item.disabled\">\n <button\n class=\"accordion-header\"\n [attr.aria-expanded]=\"isExpanded(i)\"\n [disabled]=\"item.disabled\"\n (click)=\"toggle(i)\"\n >\n @if (item.icon) { <span class=\"acc-icon\" aria-hidden=\"true\">{{ item.icon }}</span> }\n <span class=\"acc-title\">{{ item.title }}</span>\n <span class=\"acc-chevron\" [class.open]=\"isExpanded(i)\">▾</span>\n </button>\n @if (isExpanded(i)) {\n <div class=\"accordion-body\" role=\"region\">\n {{ item.content }}\n </div>\n }\n </div>\n }\n </div>\n `,\n styles: [`\n :host { display: block; }\n .ngx-accordion { border: 1px solid var(--ngx-acc-border, #dee2e6); border-radius: var(--ngx-acc-radius, 6px); overflow: hidden; }\n .accordion-item { border-bottom: 1px solid var(--ngx-acc-border, #dee2e6); }\n .accordion-item:last-child { border-bottom: none; }\n .accordion-item.disabled { opacity: 0.5; }\n .accordion-header {\n display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 18px;\n background: var(--ngx-acc-header-bg, #fafbfc); border: none; cursor: pointer; font-family: inherit;\n font-size: 14px; font-weight: 500; color: var(--ngx-acc-header-color, #212529);\n text-align: left; transition: background 0.12s;\n }\n .accordion-header:hover:not(:disabled) { background: var(--ngx-acc-header-hover-bg, #f1f3f5); }\n .accordion-item.expanded .accordion-header { background: var(--ngx-acc-expanded-bg, #fff); color: var(--ngx-acc-expanded-color, #1a73e8); }\n .acc-icon { font-size: 16px; flex-shrink: 0; }\n .acc-title { flex: 1; }\n .acc-chevron { font-size: 12px; transition: transform 0.2s; flex-shrink: 0; }\n .acc-chevron.open { transform: rotate(180deg); }\n .accordion-body { padding: 14px 18px; font-size: 14px; color: var(--ngx-acc-body-color, #495057); line-height: 1.6; background: var(--ngx-acc-body-bg, #fff); border-top: 1px solid var(--ngx-acc-border, #dee2e6); }\n `]\n})\nexport class AccordionComponent {\n items = input<AccordionItem[]>([]);\n multi = input(false);\n private expanded = signal<Set<number>>(new Set());\n\n isExpanded(i: number): boolean {\n return this.expanded().has(i);\n }\n\n toggle(i: number): void {\n const s = new Set(this.expanded());\n if (s.has(i)) { s.delete(i); } else {\n if (!this.multi()) s.clear();\n s.add(i);\n }\n this.expanded.set(s);\n }\n}\n","import { Component, input, output, signal } from '@angular/core';\n\nexport interface StepperStep {\n label: string;\n description?: string;\n icon?: string;\n optional?: boolean;\n state?: 'pending' | 'current' | 'complete' | 'error';\n}\n\n@Component({\n selector: 'ngx-stepper',\n standalone: true,\n template: `\n <div class=\"ngx-stepper\" [class.stepper-vertical]=\"orientation() === 'vertical'\">\n @for (step of steps(); track step.label; let i = $index) {\n <div class=\"stepper-step\" [class.completed]=\"i < currentStep()\" [class.active]=\"i === currentStep()\" [class.error]=\"step.state === 'error'\">\n <div class=\"step-header\">\n <div class=\"step-indicator\">\n @if (i < currentStep()) {\n <span class=\"step-check\">✓</span>\n } @else if (step.state === 'error') {\n <span class=\"step-error-icon\">✕</span>\n } @else {\n <span class=\"step-number\">{{ i + 1 }}</span>\n }\n </div>\n @if (i < steps().length - 1) {\n <div class=\"step-connector\"></div>\n }\n </div>\n <div class=\"step-content\">\n <div class=\"step-label\">{{ step.label }}</div>\n @if (step.description) { <div class=\"step-desc\">{{ step.description }}</div> }\n @if (step.optional) { <div class=\"step-optional\">Optional</div> }\n </div>\n </div>\n }\n </div>\n @if (showContent()) {\n <div class=\"stepper-content\">\n <ng-content />\n </div>\n @if (showActions()) {\n <div class=\"stepper-actions\">\n <button class=\"stepper-btn stepper-btn-back\" [disabled]=\"currentStep() === 0\" (click)=\"back()\">← Back</button>\n <button class=\"stepper-btn stepper-btn-next\" [disabled]=\"currentStep() === steps().length - 1\" (click)=\"next()\">\n {{ currentStep() === steps().length - 1 ? 'Finish' : 'Next →' }}\n </button>\n </div>\n }\n }\n `,\n styles: [`\n :host { display: block; }\n .ngx-stepper { display: flex; align-items: flex-start; gap: 0; }\n .ngx-stepper.stepper-vertical { flex-direction: column; }\n .stepper-step { display: flex; flex-direction: column; align-items: center; flex: 1; }\n .stepper-vertical .stepper-step { flex-direction: row; flex: initial; align-items: flex-start; width: 100%; }\n .step-header { display: flex; align-items: center; flex-direction: column; width: 100%; }\n .stepper-vertical .step-header { flex-direction: column; align-items: center; margin-right: 14px; flex-shrink: 0; }\n .step-indicator {\n width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;\n background: var(--ngx-stepper-pending-bg, #f1f3f5); color: var(--ngx-stepper-pending-color, #adb5bd);\n border: 2px solid var(--ngx-stepper-pending-border, #dee2e6); font-size: 13px; font-weight: 700;\n transition: all 0.2s; flex-shrink: 0; z-index: 1;\n }\n .active .step-indicator { background: var(--ngx-stepper-active-bg, #1a73e8); color: #fff; border-color: var(--ngx-stepper-active-bg, #1a73e8); }\n .completed .step-indicator { background: var(--ngx-stepper-complete-bg, #27ae60); color: #fff; border-color: var(--ngx-stepper-complete-bg, #27ae60); }\n .error .step-indicator { background: #e74c3c; color: #fff; border-color: #e74c3c; }\n .step-connector { flex: 1; height: 2px; background: var(--ngx-stepper-line, #dee2e6); width: 100%; margin: 16px 0 0; }\n .stepper-vertical .step-connector { width: 2px; height: 32px; margin: 0; }\n .completed .step-connector { background: var(--ngx-stepper-complete-bg, #27ae60); }\n .step-content { text-align: center; padding: 8px 4px 0; }\n .stepper-vertical .step-content { text-align: left; padding: 4px 0 24px; }\n .step-label { font-size: 12px; font-weight: 600; color: var(--ngx-stepper-label, #212529); }\n .active .step-label { color: var(--ngx-stepper-active-bg, #1a73e8); }\n .step-desc { font-size: 11px; color: #6c757d; margin-top: 2px; }\n .step-optional { font-size: 10px; color: #adb5bd; font-style: italic; }\n .stepper-content { padding: 20px 0; border-top: 1px solid #e9ecef; margin-top: 16px; }\n .stepper-actions { display: flex; gap: 10px; margin-top: 16px; }\n .stepper-btn { padding: 8px 18px; font-size: 13px; font-weight: 500; border-radius: 4px; cursor: pointer; font-family: inherit; }\n .stepper-btn-back { background: #f1f3f5; color: #495057; border: 1px solid #dee2e6; }\n .stepper-btn-back:hover:not(:disabled) { background: #e2e6ea; }\n .stepper-btn-next { background: #1a73e8; color: #fff; border: 1px solid #1a73e8; }\n .stepper-btn-next:hover:not(:disabled) { background: #1557b0; }\n .stepper-btn:disabled { opacity: 0.5; cursor: not-allowed; }\n `]\n})\nexport class StepperComponent {\n steps = input<StepperStep[]>([]);\n currentStep = signal(0);\n orientation = input<'horizontal' | 'vertical'>('horizontal');\n showContent = input(true);\n showActions = input(true);\n stepChange = output<number>();\n\n next() { if (this.currentStep() < this.steps().length - 1) { this.currentStep.update(v => v + 1); this.stepChange.emit(this.currentStep()); } }\n back() { if (this.currentStep() > 0) { this.currentStep.update(v => v - 1); this.stepChange.emit(this.currentStep()); } }\n}\n","import { Component, effect, input, output, signal } from '@angular/core';\n\n@Component({\n selector: 'ngx-splitter',\n standalone: true,\n template: `\n <div class=\"ngx-splitter\" [class.splitter-vertical]=\"orientation() === 'vertical'\" [style]=\"hostStyle()\">\n <div class=\"split-pane split-pane-first\" style=\"flex: 0 0 auto\" [style.flexBasis]=\"firstSize()\">\n <ng-content select=\"[pane1]\" />\n </div>\n <div class=\"split-divider\" (mousedown)=\"startDrag($event)\" [class.dragging]=\"dragging()\" title=\"Drag to resize\">\n <span class=\"split-divider-grip\"></span>\n </div>\n <div class=\"split-pane split-pane-second\" style=\"flex: 1 1 auto\">\n <ng-content select=\"[pane2]\" />\n </div>\n </div>\n `,\n styles: [`\n :host { display: flex; flex: 1 1 auto; min-height: 0; }\n .ngx-splitter { display: flex; flex: 1; overflow: hidden; }\n .ngx-splitter.splitter-vertical { flex-direction: column; }\n .split-pane { overflow: auto; min-width: 0; min-height: 0; }\n .split-divider {\n flex: 0 0 5px; background: var(--ngx-splitter-divider, #dee2e6);\n cursor: col-resize; display: flex; align-items: center; justify-content: center;\n transition: background 0.1s; position: relative;\n }\n .splitter-vertical .split-divider { cursor: row-resize; height: 5px; flex: 0 0 5px; }\n .split-divider:hover, .split-divider.dragging { background: var(--ngx-splitter-divider-hover, #1a73e8); }\n .split-divider-grip { width: 3px; height: 20px; background: rgba(255,255,255,0.5); border-radius: 2px; }\n .splitter-vertical .split-divider-grip { width: 20px; height: 3px; }\n `]\n})\nexport class SplitterComponent {\n orientation = input<'horizontal' | 'vertical'>('horizontal');\n size = input<string | number | null>(null);\n initialSize = input<string | number>('50%');\n min = input(60);\n firstSize = signal('50%');\n dragging = signal(false);\n sizeChange = output<string>();\n private startX = 0;\n private startSize = 0;\n private containerSize = 0;\n private configuredSize = '';\n\n constructor() {\n effect(() => {\n const nextSize = this.normalizeSize(this.size() ?? this.initialSize());\n if (nextSize !== this.configuredSize) {\n this.configuredSize = nextSize;\n this.firstSize.set(nextSize);\n }\n });\n }\n\n hostStyle() { return this.orientation() === 'horizontal' ? 'width:100%;height:100%' : 'width:100%;height:100%;flex-direction:column'; }\n\n startDrag(e: MouseEvent): void {\n e.preventDefault();\n this.dragging.set(true);\n this.startX = this.orientation() === 'horizontal' ? e.clientX : e.clientY;\n const host = (e.currentTarget as HTMLElement).closest('.ngx-splitter') as HTMLElement | null;\n if (!host) {\n this.dragging.set(false);\n return;\n }\n\n this.containerSize = this.orientation() === 'horizontal' ? host.offsetWidth : host.offsetHeight;\n this.startSize = this.toPixels(this.firstSize(), this.containerSize);\n const move = (me: MouseEvent) => {\n const current = this.orientation() === 'horizontal' ? me.clientX : me.clientY;\n const delta = current - this.startX;\n const min = Math.max(0, this.min());\n const newSize = Math.max(min, Math.min(this.containerSize - min, this.startSize + delta));\n const nextSize = `${newSize}px`;\n this.firstSize.set(nextSize);\n this.sizeChange.emit(nextSize);\n };\n const up = () => { this.dragging.set(false); document.removeEventListener('mousemove', move); document.removeEventListener('mouseup', up); };\n document.addEventListener('mousemove', move);\n document.addEventListener('mouseup', up);\n }\n\n private normalizeSize(value: string | number): string {\n if (typeof value === 'number') {\n return `${Math.max(0, value)}px`;\n }\n\n const trimmed = value.trim();\n if (trimmed.endsWith('%') || trimmed.endsWith('px')) {\n return trimmed;\n }\n\n const numeric = Number(trimmed);\n return Number.isFinite(numeric) ? `${Math.max(0, numeric)}px` : '50%';\n }\n\n private toPixels(value: string, containerSize: number): number {\n return value.endsWith('%')\n ? (parseFloat(value) / 100) * containerSize\n : parseFloat(value);\n }\n}\n","/*\n * Public API Surface — secondary entry point: ngx-core-components/layout\n */\n\nexport { CardComponent } from './card/card.component';\nexport type { CardVariant } from './card/card.component';\n\nexport { TabStripComponent, TabComponent } from './tab-strip/tab-strip.component';\n\nexport { AccordionComponent } from './accordion/accordion.component';\nexport type { AccordionItem } from './accordion/accordion.component';\n\nexport { StepperComponent } from './stepper/stepper.component';\nexport type { StepperStep } from './stepper/stepper.component';\n\nexport { SplitterComponent } from './splitter/splitter.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAgEa,aAAa,CAAA;AACxB,IAAA,KAAK,GAAG,KAAK,CAAC,EAAE,CAAC;AACjB,IAAA,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EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,GAAA,EAAA,EAAA,iBAAA,EAAA,KAAA,EAAA,UAAA,EAAA,KAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EA7BlB;;;;;;;;;;;;AAYT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,2sBAAA,CAAA,EAAA,CAAA;;4FAiBU,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAhC7B,SAAS;+BACE,cAAc,EAAA,UAAA,EACZ,IAAI,EAAA,QAAA,EACN;;;;;;;;;;;;AAYT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,2sBAAA,CAAA,EAAA;;;ACjBH;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-core-components-layout.mjs","sources":["../../../projects/ngx-core-components/layout/card/card.component.ts","../../../projects/ngx-core-components/layout/tab-strip/tab-strip.component.ts","../../../projects/ngx-core-components/layout/accordion/accordion.component.ts","../../../projects/ngx-core-components/layout/stepper/stepper.component.ts","../../../projects/ngx-core-components/layout/splitter/splitter.component.ts","../../../projects/ngx-core-components/layout/dashboard-layout/dashboard-layout.component.ts","../../../projects/ngx-core-components/layout/carousel/carousel.component.ts","../../../projects/ngx-core-components/layout/drawer/drawer.component.ts","../../../projects/ngx-core-components/layout/public-api.ts","../../../projects/ngx-core-components/layout/ngx-core-components-layout.ts"],"sourcesContent":["import { Component, computed, input, output } from '@angular/core';\n\nexport type CardVariant = 'default' | 'outlined' | 'elevated' | 'filled';\n\n@Component({\n selector: 'ngx-card',\n standalone: true,\n template: `\n <div\n class=\"ngx-card\"\n [class]=\"'ngx-card-' + variant()\"\n [class.hoverable]=\"hoverable()\"\n [class.selectable]=\"selectable()\"\n [class.selected]=\"selected()\"\n (click)=\"(selectable() || hoverable()) ? cardClick.emit($event) : null\"\n >\n @if (hasHeader()) {\n <div class=\"card-header\">\n @if (headerIcon()) { <span class=\"card-header-icon\">{{ headerIcon() }}</span> }\n <div class=\"card-header-text\">\n <div class=\"card-title\">{{ title() }}</div>\n @if (subtitle()) { <div class=\"card-subtitle\">{{ subtitle() }}</div> }\n </div>\n <div class=\"card-header-actions\">\n <ng-content select=\"[cardActions]\" />\n </div>\n </div>\n }\n @if (imageUrl()) {\n <div class=\"card-image\"><img [src]=\"imageUrl()\" [alt]=\"imageAlt()\" /></div>\n }\n <div class=\"card-body\">\n <ng-content />\n </div>\n <ng-content select=\"[cardFooter]\" />\n </div>\n `,\n styles: [`\n :host { display: block; }\n .ngx-card {\n background: var(--ngx-card-bg, #fff);\n border-radius: var(--ngx-card-radius, 8px);\n overflow: hidden; font-family: inherit;\n }\n .ngx-card-default { border: 1px solid var(--ngx-card-border, #e9ecef); }\n .ngx-card-outlined { border: 2px solid var(--ngx-card-border, #dee2e6); }\n .ngx-card-elevated { border: none; box-shadow: var(--ngx-card-shadow, 0 2px 12px rgba(0,0,0,0.1)); }\n .ngx-card-filled { background: var(--ngx-card-filled-bg, #f8f9fa); border: 1px solid transparent; }\n .ngx-card.hoverable { transition: box-shadow 0.2s, transform 0.2s; cursor: pointer; }\n .ngx-card.hoverable:hover { box-shadow: var(--ngx-card-hover-shadow, 0 4px 20px rgba(0,0,0,0.15)); transform: translateY(-2px); }\n .ngx-card.selectable { cursor: pointer; }\n .ngx-card.selected { border-color: var(--ngx-card-selected-border, #1a73e8); box-shadow: 0 0 0 2px rgba(26,115,232,0.2); }\n\n .card-header { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; }\n .card-header-icon { font-size: 20px; flex-shrink: 0; }\n .card-header-text { flex: 1; min-width: 0; }\n .card-title { font-size: 15px; font-weight: 700; color: var(--ngx-card-title-color, #212529); }\n .card-subtitle { font-size: 12px; color: var(--ngx-card-subtitle-color, #6c757d); margin-top: 2px; }\n .card-header-actions { display: flex; align-items: center; gap: 6px; }\n\n .card-image img { width: 100%; height: 180px; object-fit: cover; display: block; }\n .card-body { padding: var(--ngx-card-padding, 20px); font-size: 14px; color: var(--ngx-card-text, #495057); line-height: 1.6; }\n `]\n})\nexport class CardComponent {\n title = input('');\n subtitle = input('');\n headerIcon = input('');\n imageUrl = input('');\n imageAlt = input('');\n variant = input<CardVariant>('default');\n hoverable = input(false);\n selectable = input(false);\n selected = input(false);\n\n cardClick = output<MouseEvent>();\n\n hasHeader = computed(() => !!(this.title() || this.subtitle() || this.headerIcon()));\n}\n","import { Component, input, output, signal, contentChildren, AfterContentInit } from '@angular/core';\n\n@Component({\n selector: 'ngx-tab',\n standalone: true,\n template: `\n <div [hidden]=\"!isActive()\">\n <ng-content />\n </div>\n `,\n})\nexport class TabComponent {\n title = input.required<string>();\n icon = input<string>('');\n disabled = input(false);\n badge = input<string | number>('');\n isActive = signal(false);\n}\n\n@Component({\n selector: 'ngx-tab-strip',\n standalone: true,\n imports: [],\n template: `\n <div class=\"ngx-tab-strip\" [class]=\"'tabs-' + position()\">\n <div class=\"tab-list\" role=\"tablist\">\n @for (tab of tabs(); track tab.title(); let i = $index) {\n <button\n class=\"tab-btn\"\n [class.active]=\"activeIndex() === i\"\n [class.disabled]=\"tab.disabled()\"\n role=\"tab\"\n [attr.aria-selected]=\"activeIndex() === i\"\n [disabled]=\"tab.disabled()\"\n (click)=\"selectTab(i)\"\n >\n @if (tab.icon()) { <span class=\"tab-icon\" aria-hidden=\"true\">{{ tab.icon() }}</span> }\n <span class=\"tab-title\">{{ tab.title() }}</span>\n @if (tab.badge()) { <span class=\"tab-badge\">{{ tab.badge() }}</span> }\n </button>\n }\n </div>\n <div class=\"tab-content\" role=\"tabpanel\">\n <ng-content />\n </div>\n </div>\n `,\n styles: [`\n :host { display: block; }\n .ngx-tab-strip { display: flex; flex-direction: column; }\n .tab-list { display: flex; border-bottom: 2px solid var(--ngx-tab-border, #e9ecef); position: relative; overflow-x: auto; gap: 0; }\n .tab-btn {\n display: flex; align-items: center; gap: 6px; padding: 10px 18px;\n background: none; border: none; font-size: 13px; font-weight: 500;\n color: var(--ngx-tab-color, #6c757d); cursor: pointer; font-family: inherit;\n border-bottom: 2px solid transparent; margin-bottom: -2px;\n transition: color 0.15s; white-space: nowrap; position: relative;\n }\n .tab-btn:hover:not(:disabled):not(.active) { color: var(--ngx-tab-hover-color, #212529); }\n .tab-btn.active { color: var(--ngx-tab-active-color, #1a73e8); border-bottom-color: var(--ngx-tab-active-color, #1a73e8); font-weight: 600; }\n .tab-btn.disabled { opacity: 0.45; cursor: not-allowed; }\n .tab-icon { font-size: 15px; }\n .tab-badge { background: var(--ngx-tab-badge-bg, #e74c3c); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; min-width: 18px; text-align: center; }\n .tab-indicator { display: none; }\n .tab-content { padding: var(--ngx-tab-content-padding, 20px 0); }\n `]\n})\nexport class TabStripComponent implements AfterContentInit {\n position = input<'top' | 'bottom' | 'left' | 'right'>('top');\n activeIndex = signal(0);\n indicatorLeft = signal(0);\n indicatorWidth = signal(0);\n\n tabs = contentChildren(TabComponent);\n\n tabChange = output<number>();\n\n ngAfterContentInit() {\n this._syncActiveTabs();\n }\n\n selectTab(index: number) {\n this.activeIndex.set(index);\n this._syncActiveTabs();\n this.tabChange.emit(index);\n }\n\n private _syncActiveTabs(): void {\n const tabs = this.tabs();\n const active = this.activeIndex();\n tabs.forEach((tab, i) => tab.isActive.set(i === active));\n }\n}\n","import { Component, input, signal } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nexport interface AccordionItem {\n title: string;\n content: string;\n icon?: string;\n disabled?: boolean;\n expanded?: boolean;\n}\n\n@Component({\n selector: 'ngx-accordion',\n standalone: true,\n imports: [CommonModule],\n template: `\n <div class=\"ngx-accordion\">\n @for (item of items(); track item.title; let i = $index) {\n <div class=\"accordion-item\" [class.expanded]=\"isExpanded(i)\" [class.disabled]=\"item.disabled\">\n <button\n class=\"accordion-header\"\n [attr.aria-expanded]=\"isExpanded(i)\"\n [disabled]=\"item.disabled\"\n (click)=\"toggle(i)\"\n >\n @if (item.icon) { <span class=\"acc-icon\" aria-hidden=\"true\">{{ item.icon }}</span> }\n <span class=\"acc-title\">{{ item.title }}</span>\n <span class=\"acc-chevron\" [class.open]=\"isExpanded(i)\">▾</span>\n </button>\n @if (isExpanded(i)) {\n <div class=\"accordion-body\" role=\"region\">\n {{ item.content }}\n </div>\n }\n </div>\n }\n </div>\n `,\n styles: [`\n :host { display: block; }\n .ngx-accordion { border: 1px solid var(--ngx-acc-border, #dee2e6); border-radius: var(--ngx-acc-radius, 6px); overflow: hidden; }\n .accordion-item { border-bottom: 1px solid var(--ngx-acc-border, #dee2e6); }\n .accordion-item:last-child { border-bottom: none; }\n .accordion-item.disabled { opacity: 0.5; }\n .accordion-header {\n display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 18px;\n background: var(--ngx-acc-header-bg, #fafbfc); border: none; cursor: pointer; font-family: inherit;\n font-size: 14px; font-weight: 500; color: var(--ngx-acc-header-color, #212529);\n text-align: left; transition: background 0.12s;\n }\n .accordion-header:hover:not(:disabled) { background: var(--ngx-acc-header-hover-bg, #f1f3f5); }\n .accordion-item.expanded .accordion-header { background: var(--ngx-acc-expanded-bg, #fff); color: var(--ngx-acc-expanded-color, #1a73e8); }\n .acc-icon { font-size: 16px; flex-shrink: 0; }\n .acc-title { flex: 1; }\n .acc-chevron { font-size: 12px; transition: transform 0.2s; flex-shrink: 0; }\n .acc-chevron.open { transform: rotate(180deg); }\n .accordion-body { padding: 14px 18px; font-size: 14px; color: var(--ngx-acc-body-color, #495057); line-height: 1.6; background: var(--ngx-acc-body-bg, #fff); border-top: 1px solid var(--ngx-acc-border, #dee2e6); }\n `]\n})\nexport class AccordionComponent {\n items = input<AccordionItem[]>([]);\n multi = input(false);\n private expanded = signal<Set<number>>(new Set());\n\n isExpanded(i: number): boolean {\n return this.expanded().has(i);\n }\n\n toggle(i: number): void {\n const s = new Set(this.expanded());\n if (s.has(i)) { s.delete(i); } else {\n if (!this.multi()) s.clear();\n s.add(i);\n }\n this.expanded.set(s);\n }\n}\n","import { Component, input, output, signal } from '@angular/core';\n\nexport interface StepperStep {\n label: string;\n description?: string;\n icon?: string;\n optional?: boolean;\n state?: 'pending' | 'current' | 'complete' | 'error';\n}\n\n@Component({\n selector: 'ngx-stepper',\n standalone: true,\n template: `\n <div class=\"ngx-stepper\" [class.stepper-vertical]=\"orientation() === 'vertical'\">\n @for (step of steps(); track step.label; let i = $index) {\n <div class=\"stepper-step\" [class.completed]=\"i < currentStep()\" [class.active]=\"i === currentStep()\" [class.error]=\"step.state === 'error'\">\n <div class=\"step-header\">\n <div class=\"step-indicator\">\n @if (i < currentStep()) {\n <span class=\"step-check\">✓</span>\n } @else if (step.state === 'error') {\n <span class=\"step-error-icon\">✕</span>\n } @else {\n <span class=\"step-number\">{{ i + 1 }}</span>\n }\n </div>\n @if (i < steps().length - 1) {\n <div class=\"step-connector\"></div>\n }\n </div>\n <div class=\"step-content\">\n <div class=\"step-label\">{{ step.label }}</div>\n @if (step.description) { <div class=\"step-desc\">{{ step.description }}</div> }\n @if (step.optional) { <div class=\"step-optional\">Optional</div> }\n </div>\n </div>\n }\n </div>\n @if (showContent()) {\n <div class=\"stepper-content\">\n <ng-content />\n </div>\n @if (showActions()) {\n <div class=\"stepper-actions\">\n <button class=\"stepper-btn stepper-btn-back\" [disabled]=\"currentStep() === 0\" (click)=\"back()\">← Back</button>\n <button class=\"stepper-btn stepper-btn-next\" [disabled]=\"currentStep() === steps().length - 1\" (click)=\"next()\">\n {{ currentStep() === steps().length - 1 ? 'Finish' : 'Next →' }}\n </button>\n </div>\n }\n }\n `,\n styles: [`\n :host { display: block; }\n .ngx-stepper { display: flex; align-items: flex-start; gap: 0; }\n .ngx-stepper.stepper-vertical { flex-direction: column; }\n .stepper-step { display: flex; flex-direction: column; align-items: center; flex: 1; }\n .stepper-vertical .stepper-step { flex-direction: row; flex: initial; align-items: flex-start; width: 100%; }\n .step-header { display: flex; align-items: center; flex-direction: column; width: 100%; }\n .stepper-vertical .step-header { flex-direction: column; align-items: center; margin-right: 14px; flex-shrink: 0; }\n .step-indicator {\n width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;\n background: var(--ngx-stepper-pending-bg, #f1f3f5); color: var(--ngx-stepper-pending-color, #adb5bd);\n border: 2px solid var(--ngx-stepper-pending-border, #dee2e6); font-size: 13px; font-weight: 700;\n transition: all 0.2s; flex-shrink: 0; z-index: 1;\n }\n .active .step-indicator { background: var(--ngx-stepper-active-bg, #1a73e8); color: #fff; border-color: var(--ngx-stepper-active-bg, #1a73e8); }\n .completed .step-indicator { background: var(--ngx-stepper-complete-bg, #27ae60); color: #fff; border-color: var(--ngx-stepper-complete-bg, #27ae60); }\n .error .step-indicator { background: #e74c3c; color: #fff; border-color: #e74c3c; }\n .step-connector { flex: 1; height: 2px; background: var(--ngx-stepper-line, #dee2e6); width: 100%; margin: 16px 0 0; }\n .stepper-vertical .step-connector { width: 2px; height: 32px; margin: 0; }\n .completed .step-connector { background: var(--ngx-stepper-complete-bg, #27ae60); }\n .step-content { text-align: center; padding: 8px 4px 0; }\n .stepper-vertical .step-content { text-align: left; padding: 4px 0 24px; }\n .step-label { font-size: 12px; font-weight: 600; color: var(--ngx-stepper-label, #212529); }\n .active .step-label { color: var(--ngx-stepper-active-bg, #1a73e8); }\n .step-desc { font-size: 11px; color: #6c757d; margin-top: 2px; }\n .step-optional { font-size: 10px; color: #adb5bd; font-style: italic; }\n .stepper-content { padding: 20px 0; border-top: 1px solid #e9ecef; margin-top: 16px; }\n .stepper-actions { display: flex; gap: 10px; margin-top: 16px; }\n .stepper-btn { padding: 8px 18px; font-size: 13px; font-weight: 500; border-radius: 4px; cursor: pointer; font-family: inherit; }\n .stepper-btn-back { background: #f1f3f5; color: #495057; border: 1px solid #dee2e6; }\n .stepper-btn-back:hover:not(:disabled) { background: #e2e6ea; }\n .stepper-btn-next { background: #1a73e8; color: #fff; border: 1px solid #1a73e8; }\n .stepper-btn-next:hover:not(:disabled) { background: #1557b0; }\n .stepper-btn:disabled { opacity: 0.5; cursor: not-allowed; }\n `]\n})\nexport class StepperComponent {\n steps = input<StepperStep[]>([]);\n currentStep = signal(0);\n orientation = input<'horizontal' | 'vertical'>('horizontal');\n showContent = input(true);\n showActions = input(true);\n stepChange = output<number>();\n\n next() { if (this.currentStep() < this.steps().length - 1) { this.currentStep.update(v => v + 1); this.stepChange.emit(this.currentStep()); } }\n back() { if (this.currentStep() > 0) { this.currentStep.update(v => v - 1); this.stepChange.emit(this.currentStep()); } }\n}\n","import { Component, effect, input, output, signal } from '@angular/core';\n\n@Component({\n selector: 'ngx-splitter',\n standalone: true,\n template: `\n <div class=\"ngx-splitter\" [class.splitter-vertical]=\"orientation() === 'vertical'\" [style]=\"hostStyle()\">\n <div class=\"split-pane split-pane-first\" style=\"flex: 0 0 auto\" [style.flexBasis]=\"firstSize()\">\n <ng-content select=\"[pane1]\" />\n </div>\n <div class=\"split-divider\" (mousedown)=\"startDrag($event)\" [class.dragging]=\"dragging()\" title=\"Drag to resize\">\n <span class=\"split-divider-grip\"></span>\n </div>\n <div class=\"split-pane split-pane-second\" style=\"flex: 1 1 auto\">\n <ng-content select=\"[pane2]\" />\n </div>\n </div>\n `,\n styles: [`\n :host { display: flex; flex: 1 1 auto; min-height: 0; }\n .ngx-splitter { display: flex; flex: 1; overflow: hidden; }\n .ngx-splitter.splitter-vertical { flex-direction: column; }\n .split-pane { overflow: auto; min-width: 0; min-height: 0; }\n .split-divider {\n flex: 0 0 5px; background: var(--ngx-splitter-divider, #dee2e6);\n cursor: col-resize; display: flex; align-items: center; justify-content: center;\n transition: background 0.1s; position: relative;\n }\n .splitter-vertical .split-divider { cursor: row-resize; height: 5px; flex: 0 0 5px; }\n .split-divider:hover, .split-divider.dragging { background: var(--ngx-splitter-divider-hover, #1a73e8); }\n .split-divider-grip { width: 3px; height: 20px; background: rgba(255,255,255,0.5); border-radius: 2px; }\n .splitter-vertical .split-divider-grip { width: 20px; height: 3px; }\n `]\n})\nexport class SplitterComponent {\n orientation = input<'horizontal' | 'vertical'>('horizontal');\n size = input<string | number | null>(null);\n initialSize = input<string | number>('50%');\n min = input(60);\n firstSize = signal('50%');\n dragging = signal(false);\n sizeChange = output<string>();\n private startX = 0;\n private startSize = 0;\n private containerSize = 0;\n private configuredSize = '';\n\n constructor() {\n effect(() => {\n const nextSize = this.normalizeSize(this.size() ?? this.initialSize());\n if (nextSize !== this.configuredSize) {\n this.configuredSize = nextSize;\n this.firstSize.set(nextSize);\n }\n });\n }\n\n hostStyle() { return this.orientation() === 'horizontal' ? 'width:100%;height:100%' : 'width:100%;height:100%;flex-direction:column'; }\n\n startDrag(e: MouseEvent): void {\n e.preventDefault();\n this.dragging.set(true);\n this.startX = this.orientation() === 'horizontal' ? e.clientX : e.clientY;\n const host = (e.currentTarget as HTMLElement).closest('.ngx-splitter') as HTMLElement | null;\n if (!host) {\n this.dragging.set(false);\n return;\n }\n\n this.containerSize = this.orientation() === 'horizontal' ? host.offsetWidth : host.offsetHeight;\n this.startSize = this.toPixels(this.firstSize(), this.containerSize);\n const move = (me: MouseEvent) => {\n const current = this.orientation() === 'horizontal' ? me.clientX : me.clientY;\n const delta = current - this.startX;\n const min = Math.max(0, this.min());\n const newSize = Math.max(min, Math.min(this.containerSize - min, this.startSize + delta));\n const nextSize = `${newSize}px`;\n this.firstSize.set(nextSize);\n this.sizeChange.emit(nextSize);\n };\n const up = () => { this.dragging.set(false); document.removeEventListener('mousemove', move); document.removeEventListener('mouseup', up); };\n document.addEventListener('mousemove', move);\n document.addEventListener('mouseup', up);\n }\n\n private normalizeSize(value: string | number): string {\n if (typeof value === 'number') {\n return `${Math.max(0, value)}px`;\n }\n\n const trimmed = value.trim();\n if (trimmed.endsWith('%') || trimmed.endsWith('px')) {\n return trimmed;\n }\n\n const numeric = Number(trimmed);\n return Number.isFinite(numeric) ? `${Math.max(0, numeric)}px` : '50%';\n }\n\n private toPixels(value: string, containerSize: number): number {\n return value.endsWith('%')\n ? (parseFloat(value) / 100) * containerSize\n : parseFloat(value);\n }\n}\n","import {\n Component, input, signal, output, computed, effect, ChangeDetectionStrategy\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { DashboardItem, DashboardLayoutChangeEvent, DashboardPanelActionEvent } from './models';\n\n@Component({\n selector: 'ngx-dashboard-layout',\n standalone: true,\n imports: [CommonModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div \n class=\"ngx-dashboard-wrapper\" \n [class.dark]=\"theme() === 'dark'\"\n [class.has-maximized]=\"hasMaximizedPanel()\"\n >\n <div \n class=\"ngx-dashboard-grid\"\n [style.grid-template-columns]=\"'repeat(' + columns() + ', 1fr)'\"\n [style.grid-auto-rows]=\"rowHeight()\"\n (dragover)=\"onDragOverGrid($event)\"\n (drop)=\"onDrop($event)\"\n >\n <!-- Background grid cells for drop snapping guide -->\n @if (isDragging()) {\n <div class=\"grid-background-overlay\">\n @for (cell of bgCells(); track cell.key) {\n <div \n class=\"bg-cell-target\"\n [style.grid-column-start]=\"cell.col + 1\"\n [style.grid-row-start]=\"cell.row + 1\"\n (dragover)=\"onDragOverCell($event)\"\n (dragenter)=\"onDragEnterCell($event, cell.col, cell.row)\"\n ></div>\n }\n </div>\n \n <!-- Drop Position Placeholder -->\n @if (dragPlaceholder(); as placeholder) {\n <div \n class=\"drag-placeholder-indicator\"\n [style.grid-column-start]=\"placeholder.col + 1\"\n [style.grid-column-end]=\"placeholder.col + 1 + placeholder.colSpan\"\n [style.grid-row-start]=\"placeholder.row + 1\"\n [style.grid-row-end]=\"placeholder.row + 1 + placeholder.rowSpan\"\n >\n <div class=\"placeholder-inner\"></div>\n </div>\n }\n }\n\n <!-- Active Dashboard Cards -->\n @for (item of itemsState(); track item.id) {\n <div \n class=\"dashboard-panel-card\"\n [class.maximized]=\"item.maximized\"\n [class.collapsed]=\"item.collapsed\"\n [class.dragging-active]=\"activeDraggingId() === item.id\"\n [style.grid-column-start]=\"item.maximized ? 1 : item.col + 1\"\n [style.grid-column-end]=\"item.maximized ? columns() + 1 : item.col + 1 + item.colSpan\"\n [style.grid-row-start]=\"item.maximized ? 1 : item.row + 1\"\n [style.grid-row-end]=\"item.maximized ? 'span 4' : item.row + 1 + item.rowSpan\"\n [attr.draggable]=\"(allowDragging() && item.draggable !== false && !item.maximized && !item.collapsed) ? 'true' : 'false'\"\n (dragstart)=\"onDragStart($event, item)\"\n (dragend)=\"onDragEnd()\"\n >\n <!-- Panel Header -->\n <div \n class=\"panel-header\" \n [class.draggable-handle]=\"allowDragging() && item.draggable !== false && !item.maximized && !item.collapsed\"\n >\n <div class=\"panel-title-group\">\n <span class=\"panel-icon-dot\" [style.background-color]=\"getCategoryColor(item.category)\"></span>\n <span class=\"panel-title\" [title]=\"item.title\">{{ item.title }}</span>\n </div>\n\n <div class=\"panel-actions\" (click)=\"$event.stopPropagation()\">\n <!-- Settings Action -->\n <button class=\"action-btn\" (click)=\"emitPanelAction(item, 'settings')\" title=\"Panel Settings\">\n ⚙️\n </button>\n \n <!-- Minimize / Expand Toggle -->\n <button class=\"action-btn\" (click)=\"toggleCollapse(item)\" [title]=\"item.collapsed ? 'Expand Content' : 'Collapse Content'\">\n {{ item.collapsed ? '▼' : '▲' }}\n </button>\n\n <!-- Maximize / Restore Toggle -->\n <button class=\"action-btn\" (click)=\"toggleMaximize(item)\" [title]=\"item.maximized ? 'Restore View' : 'Maximize Panel'\">\n {{ item.maximized ? '🗗' : '🗖' }}\n </button>\n\n <!-- Close Panel -->\n <button class=\"action-btn close-btn\" (click)=\"closePanel(item)\" title=\"Close Panel\">\n ✕\n </button>\n </div>\n </div>\n\n <!-- Panel Body -->\n <div class=\"panel-content-body\">\n <ng-content [select]=\"'[panel-id=' + item.id + ']'\"></ng-content>\n \n <!-- Fallback Content if no projection matches -->\n <div class=\"fallback-placeholder\">\n <span class=\"fallback-icon\">▦</span>\n <h4>{{ item.title }}</h4>\n <p>{{ item.description || 'Provide a matching projection container with attribute panel-id=\"' + item.id + '\"' }}</p>\n </div>\n </div>\n\n <!-- Resize Grip Handle -->\n @if (allowResizing() && item.resizable !== false && !item.maximized && !item.collapsed) {\n <div \n class=\"resize-handle\"\n (mousedown)=\"onResizeStart($event, item)\"\n >\n <svg width=\"10\" height=\"10\" viewBox=\"0 0 10 10\">\n <path d=\"M10,0 L0,10 M10,4 L4,10 M10,8 L8,10\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" fill=\"none\" opacity=\"0.3\"></path>\n </svg>\n </div>\n }\n </div>\n }\n </div>\n </div>\n `,\n styles: [`\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .ngx-dashboard-wrapper {\n position: relative;\n width: 100%;\n height: 100%;\n background: var(--bg-primary, #f8fafc);\n padding: 16px;\n box-sizing: border-box;\n overflow-y: auto;\n transition: background 0.3s ease;\n }\n\n .ngx-dashboard-wrapper.dark {\n background: #0f172a;\n }\n\n .ngx-dashboard-grid {\n position: relative;\n display: grid;\n gap: 16px;\n width: 100%;\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n }\n\n /* Grid Background Overlay for Snapping Hints */\n .grid-background-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: grid;\n grid-template-columns: inherit;\n grid-auto-rows: inherit;\n gap: inherit;\n pointer-events: none;\n z-index: 1;\n }\n\n .bg-cell-target {\n border: 1px dashed var(--border-color, #cbd5e1);\n border-radius: 8px;\n background: rgba(148, 163, 184, 0.02);\n pointer-events: auto;\n box-sizing: border-box;\n }\n .ngx-dashboard-wrapper.dark .bg-cell-target {\n border-color: #334155;\n background: rgba(30, 41, 59, 0.1);\n }\n\n /* Drag Placeholder Box */\n .drag-placeholder-indicator {\n border-radius: 12px;\n border: 2px dashed var(--primary-color, #4f46e5);\n background: var(--primary-glow, rgba(79, 70, 229, 0.05));\n z-index: 2;\n box-sizing: border-box;\n animation: pulsePlaceholder 1.5s infinite ease-in-out;\n }\n\n @keyframes pulsePlaceholder {\n 0%, 100% { opacity: 0.6; }\n 50% { opacity: 0.9; }\n }\n\n .placeholder-inner {\n width: 100%;\n height: 100%;\n }\n\n /* Panel Card Styling */\n .dashboard-panel-card {\n position: relative;\n display: flex;\n flex-direction: column;\n background: var(--bg-secondary, #ffffff);\n border: 1px solid var(--border-color, #e2e8f0);\n border-radius: 12px;\n box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));\n overflow: hidden;\n z-index: 3;\n transition: box-shadow 0.25s, transform 0.25s;\n box-sizing: border-box;\n }\n .ngx-dashboard-wrapper.dark .dashboard-panel-card {\n background: #1e293b;\n border-color: #334155;\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);\n }\n\n .dashboard-panel-card:hover {\n box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,0.08));\n }\n\n .dashboard-panel-card.dragging-active {\n opacity: 0.4;\n border-style: dashed;\n border-color: var(--primary-color, #4f46e5);\n }\n\n /* Maximized override state */\n .dashboard-panel-card.maximized {\n grid-column: 1 / -1 !important;\n grid-row: auto !important;\n min-height: 500px;\n z-index: 50;\n box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.15));\n }\n .ngx-dashboard-wrapper.has-maximized .dashboard-panel-card:not(.maximized) {\n display: none !important;\n }\n\n /* Collapsed state */\n .dashboard-panel-card.collapsed {\n grid-row-end: span 1 !important;\n height: fit-content !important;\n min-height: 0 !important;\n }\n .dashboard-panel-card.collapsed .panel-content-body {\n display: none !important;\n }\n .dashboard-panel-card.collapsed .resize-handle {\n display: none !important;\n }\n\n /* Header styling */\n .panel-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 12px 16px;\n border-bottom: 1px solid var(--border-color, #e2e8f0);\n background: var(--border-light, #f8fafc);\n user-select: none;\n gap: 12px;\n }\n .ngx-dashboard-wrapper.dark .panel-header {\n background: #1e293b;\n border-bottom-color: #334155;\n }\n\n .panel-header.draggable-handle {\n cursor: grab;\n }\n .panel-header.draggable-handle:active {\n cursor: grabbing;\n }\n\n .panel-title-group {\n display: flex;\n align-items: center;\n gap: 10px;\n min-width: 0;\n }\n\n .panel-icon-dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n flex-shrink: 0;\n }\n\n .panel-title {\n font-size: 13px;\n font-weight: 700;\n color: var(--text-primary, #1e293b);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .ngx-dashboard-wrapper.dark .panel-title {\n color: #f8fafc;\n }\n\n .panel-actions {\n display: flex;\n align-items: center;\n gap: 4px;\n }\n\n .action-btn {\n background: none;\n border: none;\n cursor: pointer;\n font-size: 11px;\n padding: 4px;\n border-radius: 4px;\n color: var(--text-secondary, #64748b);\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.15s;\n }\n .action-btn:hover {\n background: var(--border-color, #cbd5e1);\n color: var(--text-primary, #0f172a);\n }\n .ngx-dashboard-wrapper.dark .action-btn:hover {\n background: #334155;\n color: #ffffff;\n }\n\n .action-btn.close-btn:hover {\n background: #fca5a5;\n color: #991b1b;\n }\n\n /* Content Body styling */\n .panel-content-body {\n flex: 1;\n position: relative;\n overflow: auto;\n box-sizing: border-box;\n }\n\n /* Projected content wrapper fallback style */\n .fallback-placeholder {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n padding: 24px;\n text-align: center;\n color: var(--text-secondary, #64748b);\n font-family: var(--ngx-font-family, sans-serif);\n box-sizing: border-box;\n }\n .ngx-dashboard-wrapper.dark .fallback-placeholder {\n color: #94a3b8;\n }\n\n .fallback-icon {\n font-size: 28px;\n margin-bottom: 8px;\n opacity: 0.5;\n }\n\n .fallback-placeholder h4 {\n margin: 0 0 4px;\n font-size: 13px;\n font-weight: 600;\n }\n\n .fallback-placeholder p {\n margin: 0;\n font-size: 11px;\n line-height: 1.4;\n max-width: 250px;\n }\n\n /* Custom layout content is projected so we hide default placeholder when projected content is active */\n .panel-content-body:has([panel-id]) .fallback-placeholder {\n display: none !important;\n }\n\n /* Resize Grip Handle */\n .resize-handle {\n position: absolute;\n right: 2px;\n bottom: 2px;\n width: 14px;\n height: 14px;\n cursor: nwse-resize;\n display: flex;\n align-items: flex-end;\n justify-content: flex-end;\n color: var(--text-secondary, #94a3b8);\n z-index: 5;\n }\n .resize-handle:hover {\n color: var(--primary-color, #4f46e5);\n }\n `]\n})\nexport class DashboardLayoutComponent {\n // Inputs\n items = input<DashboardItem[]>([]);\n columns = input<number>(12);\n rowHeight = input<string>('150px');\n theme = input<'light' | 'dark'>('light');\n allowDragging = input<boolean>(true);\n allowResizing = input<boolean>(true);\n\n // Outputs\n layoutChange = output<DashboardLayoutChangeEvent>();\n panelAction = output<DashboardPanelActionEvent>();\n\n // State Signals\n itemsState = signal<DashboardItem[]>([]);\n isDragging = signal<boolean>(false);\n activeDraggingId = signal<string | null>(null);\n dragPlaceholder = signal<{ col: number; row: number; colSpan: number; rowSpan: number } | null>(null);\n\n constructor() {\n effect(() => {\n this.itemsState.set(this.items());\n }, { allowSignalWrites: true });\n }\n\n // Detect if any panel is currently maximized\n hasMaximizedPanel = computed(() => {\n return this.itemsState().some(it => it.maximized);\n });\n\n // Calculate dynamic rows needed in background grid\n maxRows = computed(() => {\n let max = 6;\n for (const item of this.itemsState()) {\n if (!item.maximized) {\n const bottom = item.row + item.rowSpan;\n if (bottom > max) {\n max = bottom;\n }\n }\n }\n return max + 2; // Always keep 2 empty grid rows buffer space\n });\n\n // Generate grid mapping cells\n bgCells = computed(() => {\n const cols = this.columns();\n const rows = this.maxRows();\n const cells: { key: string; col: number; row: number }[] = [];\n for (let r = 0; r < rows; r++) {\n for (let c = 0; c < cols; c++) {\n cells.push({ key: `${r}-${c}`, col: c, row: r });\n }\n }\n return cells;\n });\n\n // Helper colors mapping\n getCategoryColor(cat?: string): string {\n if (!cat) return '#6366f1';\n switch (cat.toLowerCase()) {\n case 'chart': return '#3b82f6'; // Blue\n case 'data': return '#10b981'; // Green\n case 'feed': return '#f59e0b'; // Amber\n case 'metric': return '#ec4899'; // Pink\n case 'alert': return '#ef4444'; // Red\n default: return '#8b5cf6'; // Violet\n }\n }\n\n // Native HTML5 Drag events\n onDragStart(event: DragEvent, item: DashboardItem): void {\n if (!this.allowDragging() || item.draggable === false || item.maximized || item.collapsed) return;\n \n this.activeDraggingId.set(item.id);\n this.isDragging.set(true);\n\n if (event.dataTransfer) {\n event.dataTransfer.setData('text/plain', item.id);\n event.dataTransfer.effectAllowed = 'move';\n }\n\n // Set initial placeholder\n this.dragPlaceholder.set({\n col: item.col,\n row: item.row,\n colSpan: item.colSpan,\n rowSpan: item.rowSpan\n });\n }\n\n onDragEnd(): void {\n this.isDragging.set(false);\n this.activeDraggingId.set(null);\n this.dragPlaceholder.set(null);\n }\n\n onDragOverGrid(event: DragEvent): void {\n event.preventDefault();\n }\n\n onDragOverCell(event: DragEvent): void {\n event.preventDefault();\n }\n\n onDragEnterCell(event: DragEvent, col: number, row: number): void {\n event.preventDefault();\n const draggedId = this.activeDraggingId();\n if (!draggedId) return;\n\n const items = this.itemsState();\n const item = items.find(it => it.id === draggedId);\n if (!item) return;\n\n // Calculate snapped coordinates based on boundaries\n let targetCol = Math.max(0, Math.min(this.columns() - item.colSpan, col));\n let targetRow = Math.max(0, row);\n\n // Update placeholder\n this.dragPlaceholder.set({\n col: targetCol,\n row: targetRow,\n colSpan: item.colSpan,\n rowSpan: item.rowSpan\n });\n }\n\n onDrop(event: DragEvent): void {\n event.preventDefault();\n const placeholder = this.dragPlaceholder();\n const draggedId = this.activeDraggingId();\n\n if (placeholder && draggedId) {\n this.itemsState.update(items => {\n return items.map(it => {\n if (it.id === draggedId) {\n return {\n ...it,\n col: placeholder.col,\n row: placeholder.row\n };\n }\n return it;\n });\n });\n this.layoutChange.emit({ items: this.itemsState() });\n }\n\n this.onDragEnd();\n }\n\n // Panel resizing handler\n onResizeStart(event: MouseEvent, item: DashboardItem): void {\n event.preventDefault();\n event.stopPropagation();\n\n if (!this.allowResizing() || item.resizable === false || item.maximized || item.collapsed) return;\n\n const startX = event.pageX;\n const startY = event.pageY;\n const startColSpan = item.colSpan;\n const startRowSpan = item.rowSpan;\n\n // Find the enclosing element bounding boxes\n const panelEl = (event.target as HTMLElement).closest('.dashboard-panel-card');\n if (!panelEl) return;\n\n const startWidth = panelEl.clientWidth;\n const startHeight = panelEl.clientHeight;\n\n // Calculate approximate cell bounds\n const colWidth = startWidth / startColSpan;\n const rowHeight = startHeight / startRowSpan;\n\n const onMouseMove = (moveEvent: MouseEvent) => {\n const deltaX = moveEvent.pageX - startX;\n const deltaY = moveEvent.pageY - startY;\n\n let newColSpan = Math.round((startWidth + deltaX) / colWidth);\n newColSpan = Math.max(item.minColSpan || 1, Math.min(this.columns() - item.col, newColSpan));\n if (item.maxColSpan) {\n newColSpan = Math.min(item.maxColSpan, newColSpan);\n }\n\n let newRowSpan = Math.round((startHeight + deltaY) / rowHeight);\n newRowSpan = Math.max(item.minRowSpan || 1, newRowSpan);\n if (item.maxRowSpan) {\n newRowSpan = Math.min(item.maxRowSpan, newRowSpan);\n }\n\n if (newColSpan !== item.colSpan || newRowSpan !== item.rowSpan) {\n this.itemsState.update(items => {\n return items.map(it => {\n if (it.id === item.id) {\n return { ...it, colSpan: newColSpan, rowSpan: newRowSpan };\n }\n return it;\n });\n });\n }\n };\n\n const onMouseUp = () => {\n document.removeEventListener('mousemove', onMouseMove);\n document.removeEventListener('mouseup', onMouseUp);\n this.layoutChange.emit({ items: this.itemsState() });\n };\n\n document.addEventListener('mousemove', onMouseMove);\n document.addEventListener('mouseup', onMouseUp);\n }\n\n // Panel Control Actions\n toggleCollapse(item: DashboardItem): void {\n const collapsed = !item.collapsed;\n this.itemsState.update(items => {\n return items.map(it => {\n if (it.id === item.id) {\n return { ...it, collapsed };\n }\n return it;\n });\n });\n this.panelAction.emit({\n panelId: item.id,\n action: collapsed ? 'minimize' : 'restore',\n item: { ...item, collapsed }\n });\n this.layoutChange.emit({ items: this.itemsState() });\n }\n\n toggleMaximize(item: DashboardItem): void {\n const maximized = !item.maximized;\n this.itemsState.update(items => {\n return items.map(it => {\n if (it.id === item.id) {\n return { ...it, maximized };\n }\n return it;\n });\n });\n this.panelAction.emit({\n panelId: item.id,\n action: maximized ? 'maximize' : 'restore',\n item: { ...item, maximized }\n });\n }\n\n closePanel(item: DashboardItem): void {\n this.itemsState.update(items => items.filter(it => it.id !== item.id));\n this.panelAction.emit({\n panelId: item.id,\n action: 'close',\n item\n });\n this.layoutChange.emit({ items: this.itemsState() });\n }\n\n emitPanelAction(item: DashboardItem, action: 'settings'): void {\n this.panelAction.emit({\n panelId: item.id,\n action,\n item\n });\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n output,\n signal,\n computed,\n OnInit,\n OnDestroy,\n TemplateRef,\n HostListener,\n effect,\n untracked,\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'ngx-carousel',\n standalone: true,\n imports: [CommonModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div\n class=\"ngx-carousel\"\n [class.dark]=\"theme() === 'dark'\"\n [attr.id]=\"id()\"\n (keydown)=\"onKeyDown($event)\"\n tabindex=\"0\"\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave()\"\n >\n <div\n class=\"ngx-carousel__stage\"\n (touchstart)=\"onTouchStart($event)\"\n (touchend)=\"onTouchEnd($event)\"\n >\n @for (item of items(); track $index) {\n <div\n class=\"ngx-carousel__slide\"\n [class]=\"getSlideClass($index)\"\n >\n @if (itemTemplate()) {\n <ng-container *ngTemplateOutlet=\"itemTemplate()!; context: { $implicit: item, index: $index }\"></ng-container>\n } @else {\n <!-- Default Image layout -->\n <img [src]=\"item.url\" [alt]=\"item.title || 'Slide ' + ($index + 1)\" class=\"ngx-carousel__img\" />\n @if (item.title || item.caption) {\n <div class=\"ngx-carousel__caption-card\">\n @if (item.title) {\n <h3 class=\"ngx-carousel__caption-title\">{{ item.title }}</h3>\n }\n @if (item.caption) {\n <p class=\"ngx-carousel__caption-desc\">{{ item.caption }}</p>\n }\n </div>\n }\n }\n </div>\n }\n </div>\n\n <!-- Controls -->\n @if (showControls() && items().length > 1) {\n <button\n class=\"ngx-carousel__control prev\"\n (click)=\"prevSlide()\"\n aria-label=\"Previous slide\"\n >\n <svg viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\">\n <polyline points=\"15 18 9 12 15 6\" />\n </svg>\n </button>\n <button\n class=\"ngx-carousel__control next\"\n (click)=\"nextSlide()\"\n aria-label=\"Next slide\"\n >\n <svg viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\">\n <polyline points=\"9 18 15 12 9 6\" />\n </svg>\n </button>\n }\n\n <!-- Indicators -->\n @if (showIndicators() && items().length > 1) {\n <div class=\"ngx-carousel__indicators\">\n @for (item of items(); track $index) {\n <button\n class=\"ngx-carousel__indicator\"\n [class.active]=\"$index === activeIndex()\"\n (click)=\"goToSlide($index)\"\n [attr.aria-label]=\"'Go to slide ' + ($index + 1)\"\n ></button>\n }\n </div>\n }\n </div>\n `,\n styles: [`\n :host {\n display: block;\n width: 100%;\n }\n\n .ngx-carousel {\n position: relative;\n width: 100%;\n border-radius: 16px;\n overflow: hidden;\n outline: none;\n background: #f1f5f9;\n box-shadow: \n 0 10px 25px -5px rgba(0, 0, 0, 0.05),\n 0 8px 10px -6px rgba(0, 0, 0, 0.05);\n font-family: var(--ngx-font-family, system-ui, sans-serif);\n transition: box-shadow 0.3s ease;\n }\n\n .ngx-carousel.dark {\n background: #0f172a;\n }\n\n .ngx-carousel:focus-visible {\n box-shadow: 0 0 0 3px var(--primary-color, #3b82f6);\n }\n\n .ngx-carousel__stage {\n position: relative;\n width: 100%;\n height: 400px;\n overflow: hidden;\n }\n\n /* ── Slide styles ── */\n .ngx-carousel__slide {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n visibility: hidden;\n opacity: 0;\n overflow: hidden;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .ngx-carousel__slide.active {\n visibility: visible;\n opacity: 1;\n transform: translateX(0);\n z-index: 2;\n }\n\n .ngx-carousel__img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n user-select: none;\n pointer-events: none;\n }\n\n /* ── Glassmorphic Caption Card ── */\n .ngx-carousel__caption-card {\n position: absolute;\n bottom: 24px;\n left: 24px;\n right: 24px;\n padding: 16px 20px;\n border-radius: 12px;\n background: rgba(255, 255, 255, 0.65);\n backdrop-filter: blur(12px);\n -webkit-backdrop-filter: blur(12px);\n border: 1px solid rgba(255, 255, 255, 0.4);\n box-shadow: \n 0 10px 15px -3px rgba(0, 0, 0, 0.05),\n 0 4px 6px -4px rgba(0, 0, 0, 0.05);\n z-index: 5;\n max-width: 480px;\n animation: captionEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;\n transform: translateY(10px);\n opacity: 0;\n }\n\n .dark .ngx-carousel__caption-card {\n background: rgba(15, 23, 42, 0.65);\n border-color: rgba(255, 255, 255, 0.08);\n }\n\n .ngx-carousel__caption-title {\n margin: 0 0 4px 0;\n font-size: 16px;\n font-weight: 700;\n color: #0f172a;\n }\n\n .dark .ngx-carousel__caption-title {\n color: #f8fafc;\n }\n\n .ngx-carousel__caption-desc {\n margin: 0;\n font-size: 13px;\n line-height: 1.4;\n color: #334155;\n }\n\n .dark .ngx-carousel__caption-desc {\n color: #cbd5e1;\n }\n\n @keyframes captionEntrance {\n to {\n transform: translateY(0);\n opacity: 1;\n }\n }\n\n /* ── Controls (Next/Prev) ── */\n .ngx-carousel__control {\n position: absolute;\n top: 50%;\n transform: translateY(-50%) scale(0.9);\n width: 42px;\n height: 42px;\n border-radius: 50%;\n background: rgba(255, 255, 255, 0.6);\n backdrop-filter: blur(8px);\n -webkit-backdrop-filter: blur(8px);\n border: 1px solid rgba(255, 255, 255, 0.4);\n color: #0f172a;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n z-index: 10;\n transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);\n opacity: 0;\n }\n\n .dark .ngx-carousel__control {\n background: rgba(15, 23, 42, 0.6);\n border-color: rgba(255, 255, 255, 0.08);\n color: #cbd5e1;\n }\n\n .ngx-carousel:hover .ngx-carousel__control {\n opacity: 1;\n transform: translateY(-50%) scale(1);\n }\n\n .ngx-carousel__control:hover {\n background: rgba(255, 255, 255, 0.85);\n transform: translateY(-50%) scale(1.08) !important;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n }\n\n .ngx-carousel__control.prev {\n left: 16px;\n }\n\n .ngx-carousel__control.next {\n right: 16px;\n }\n\n /* ── Indicators ── */\n .ngx-carousel__indicators {\n position: absolute;\n bottom: 24px;\n left: 50%;\n transform: translateX(-50%);\n display: flex;\n gap: 8px;\n z-index: 10;\n background: rgba(255, 255, 255, 0.45);\n padding: 6px 10px;\n border-radius: 20px;\n backdrop-filter: blur(6px);\n -webkit-backdrop-filter: blur(6px);\n border: 1px solid rgba(255, 255, 255, 0.2);\n }\n\n .dark .ngx-carousel__indicators {\n background: rgba(15, 23, 42, 0.45);\n border-color: rgba(255, 255, 255, 0.05);\n }\n\n .ngx-carousel__indicator {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n border: none;\n background: rgba(0, 0, 0, 0.25);\n cursor: pointer;\n transition: all 0.2s ease;\n padding: 0;\n }\n\n .dark .ngx-carousel__indicator {\n background: rgba(255, 255, 255, 0.25);\n }\n\n .ngx-carousel__indicator.active {\n background: var(--primary-color, #3b82f6);\n width: 18px;\n border-radius: 4px;\n }\n\n /* ── Transitions ── */\n .ngx-carousel__slide.transition-fade {\n /* Fade is simple opacity change */\n }\n\n /* Slide Keyframes */\n .ngx-carousel__slide.transition-slide.active-from-right {\n animation: slideInRight 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;\n z-index: 3;\n }\n .ngx-carousel__slide.transition-slide.active-from-left {\n animation: slideInLeft 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;\n z-index: 3;\n }\n .ngx-carousel__slide.transition-slide.exit-to-right {\n animation: slideOutRight 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;\n visibility: visible;\n z-index: 1;\n }\n .ngx-carousel__slide.transition-slide.exit-to-left {\n animation: slideOutLeft 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;\n visibility: visible;\n z-index: 1;\n }\n\n @keyframes slideInRight {\n from { transform: translateX(100%); opacity: 0; }\n to { transform: translateX(0); opacity: 1; }\n }\n @keyframes slideInLeft {\n from { transform: translateX(-100%); opacity: 0; }\n to { transform: translateX(0); opacity: 1; }\n }\n @keyframes slideOutRight {\n from { transform: translateX(0); opacity: 1; }\n to { transform: translateX(100%); opacity: 0; }\n }\n @keyframes slideOutLeft {\n from { transform: translateX(0); opacity: 1; }\n to { transform: translateX(-100%); opacity: 0; }\n }\n `]\n})\nexport class CarouselComponent implements OnInit, OnDestroy {\n // Inputs\n items = input<any[]>([]);\n autoplay = input<boolean>(true);\n interval = input<number>(5000);\n transition = input<'slide' | 'fade'>('slide');\n theme = input<'light' | 'dark'>('light');\n showIndicators = input<boolean>(true);\n showControls = input<boolean>(true);\n itemTemplate = input<TemplateRef<any> | null>(null);\n id = input<string>('ngx-carousel-' + Math.random().toString(36).substring(2, 9));\n\n // Outputs\n slideChange = output<{ index: number; item: any }>();\n\n // State Signals\n activeIndex = signal<number>(0);\n lastActiveIndex = signal<number>(-1);\n navDirection = signal<'next' | 'prev'>('next');\n\n constructor() {\n effect(() => {\n // Clamp index on item changes\n const total = this.items().length;\n if (this.activeIndex() >= total) {\n this.activeIndex.set(total > 0 ? total - 1 : 0);\n }\n }, { allowSignalWrites: true });\n\n effect(() => {\n // React to autoplay and interval updates\n this.autoplay();\n this.interval();\n\n untracked(() => {\n this.resetAutoplay();\n });\n });\n }\n\n private autoplayTimer: any = null;\n private touchStartX = 0;\n\n ngOnInit() {\n this.startAutoplay();\n }\n\n ngOnDestroy() {\n this.stopAutoplay();\n }\n\n goToSlide(index: number) {\n if (index === this.activeIndex() || this.items().length <= 1) return;\n\n this.lastActiveIndex.set(this.activeIndex());\n this.navDirection.set(index > this.activeIndex() ? 'next' : 'prev');\n this.activeIndex.set(index);\n\n this.slideChange.emit({\n index: index,\n item: this.items()[index],\n });\n\n this.resetAutoplay();\n }\n\n nextSlide() {\n const total = this.items().length;\n if (total <= 1) return;\n const nextIdx = (this.activeIndex() + 1) % total;\n this.goToSlide(nextIdx);\n }\n\n prevSlide() {\n const total = this.items().length;\n if (total <= 1) return;\n const prevIdx = (this.activeIndex() - 1 + total) % total;\n this.goToSlide(prevIdx);\n }\n\n onKeyDown(event: KeyboardEvent) {\n if (event.key === 'ArrowRight') {\n this.nextSlide();\n event.preventDefault();\n } else if (event.key === 'ArrowLeft') {\n this.prevSlide();\n event.preventDefault();\n }\n }\n\n // Touch Swipe Handlers\n onTouchStart(event: TouchEvent) {\n this.touchStartX = event.touches[0].clientX;\n }\n\n onTouchEnd(event: TouchEvent) {\n const touchEndX = event.changedTouches[0].clientX;\n const diff = touchEndX - this.touchStartX;\n\n // Minimum swipe threshold (50px)\n if (Math.abs(diff) > 50) {\n if (diff > 0) {\n this.prevSlide(); // Swiped right -> go to previous\n } else {\n this.nextSlide(); // Swiped left -> go to next\n }\n }\n }\n\n // Autoplay Logic\n onMouseEnter() {\n this.stopAutoplay();\n }\n\n onMouseLeave() {\n this.startAutoplay();\n }\n\n private startAutoplay() {\n if (!this.autoplay() || this.items().length <= 1) return;\n this.stopAutoplay();\n this.autoplayTimer = setInterval(() => {\n this.nextSlide();\n }, this.interval());\n }\n\n private stopAutoplay() {\n if (this.autoplayTimer) {\n clearInterval(this.autoplayTimer);\n this.autoplayTimer = null;\n }\n }\n\n private resetAutoplay() {\n this.stopAutoplay();\n this.startAutoplay();\n }\n\n // Helper to dynamically calculate classes per slide to trigger CSS animations\n getSlideClass(index: number): string {\n const active = this.activeIndex();\n const last = this.lastActiveIndex();\n const transitionType = this.transition();\n\n if (index === active) {\n if (last === -1) return 'active';\n const direction = this.navDirection();\n return `active transition-${transitionType} active-from-${direction === 'next' ? 'right' : 'left'}`;\n }\n if (index === last) {\n const direction = this.navDirection();\n return `transition-${transitionType} exit-to-${direction === 'next' ? 'left' : 'right'}`;\n }\n return '';\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n output,\n model,\n computed,\n HostListener,\n effect,\n OnDestroy,\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'ngx-drawer',\n standalone: true,\n imports: [CommonModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div\n class=\"ngx-drawer-container\"\n [class.open]=\"isOpen()\"\n [class.dark]=\"theme() === 'dark'\"\n [attr.aria-hidden]=\"!isOpen()\"\n >\n <!-- Backdrop Blur Overlay -->\n <div class=\"ngx-drawer-backdrop\" (click)=\"onBackdropClick()\"></div>\n\n <!-- Main Slider Panel -->\n <div\n class=\"ngx-drawer-panel\"\n [class]=\"position()\"\n [style.width]=\"isHorizontal() ? size() : '100%'\"\n [style.height]=\"isVertical() ? size() : '100%'\"\n role=\"dialog\"\n aria-modal=\"true\"\n >\n <!-- Header Section -->\n <div class=\"ngx-drawer-header\">\n <ng-content select=\"[drawer-header]\">\n <div class=\"ngx-drawer-header-default\">\n <h2 class=\"ngx-drawer-title\">{{ title() }}</h2>\n <button\n class=\"ngx-drawer-close-btn\"\n (click)=\"closeDrawer()\"\n aria-label=\"Close drawer\"\n >\n <svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\" />\n <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\" />\n </svg>\n </button>\n </div>\n </ng-content>\n </div>\n\n <!-- Body Section -->\n <div class=\"ngx-drawer-body\">\n <ng-content></ng-content>\n </div>\n\n <!-- Footer Section -->\n <div class=\"ngx-drawer-footer\">\n <ng-content select=\"[drawer-footer]\"></ng-content>\n </div>\n </div>\n </div>\n `,\n styles: [`\n .ngx-drawer-container {\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n z-index: 1000;\n visibility: hidden;\n pointer-events: none;\n transition: visibility 0.28s ease;\n font-family: var(--ngx-font-family, system-ui, sans-serif);\n }\n\n .ngx-drawer-container.open {\n visibility: visible;\n pointer-events: auto;\n }\n\n /* Backdrop blurring */\n .ngx-drawer-backdrop {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(15, 23, 42, 0.25);\n backdrop-filter: blur(4px);\n -webkit-backdrop-filter: blur(4px);\n opacity: 0;\n transition: opacity 0.28s ease;\n }\n\n .ngx-drawer-container.open .ngx-drawer-backdrop {\n opacity: 1;\n }\n\n /* Panel layout */\n .ngx-drawer-panel {\n position: absolute;\n background: rgba(255, 255, 255, 0.85);\n backdrop-filter: blur(24px);\n -webkit-backdrop-filter: blur(24px);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-shadow: \n 0 20px 25px -5px rgba(0, 0, 0, 0.1),\n 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n display: flex;\n flex-direction: column;\n transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);\n box-sizing: border-box;\n z-index: 1001;\n }\n\n /* Positions translations */\n .ngx-drawer-panel.left {\n top: 0;\n left: 0;\n height: 100%;\n transform: translateX(-100%);\n border-right-width: 1.5px;\n }\n\n .ngx-drawer-panel.right {\n top: 0;\n right: 0;\n height: 100%;\n transform: translateX(100%);\n border-left-width: 1.5px;\n }\n\n .ngx-drawer-panel.top {\n top: 0;\n left: 0;\n width: 100%;\n transform: translateY(-100%);\n border-bottom-width: 1.5px;\n }\n\n .ngx-drawer-panel.bottom {\n bottom: 0;\n left: 0;\n width: 100%;\n transform: translateY(100%);\n border-top-width: 1.5px;\n }\n\n /* Open modifications */\n .ngx-drawer-container.open .ngx-drawer-panel.left,\n .ngx-drawer-container.open .ngx-drawer-panel.right {\n transform: translateX(0);\n }\n\n .ngx-drawer-container.open .ngx-drawer-panel.top,\n .ngx-drawer-container.open .ngx-drawer-panel.bottom {\n transform: translateY(0);\n }\n\n /* Dark Mode styling */\n .ngx-drawer-container.dark .ngx-drawer-panel {\n background: rgba(30, 32, 48, 0.88);\n border-color: rgba(255, 255, 255, 0.08);\n color: #f8fafc;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);\n }\n\n /* Header Styling */\n .ngx-drawer-header {\n padding: 18px 24px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.06);\n }\n\n .ngx-drawer-container.dark .ngx-drawer-header {\n border-bottom-color: rgba(255, 255, 255, 0.06);\n }\n\n .ngx-drawer-header-default {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n }\n\n .ngx-drawer-title {\n margin: 0;\n font-size: 16px;\n font-weight: 700;\n color: #0f172a;\n }\n\n .ngx-drawer-container.dark .ngx-drawer-title {\n color: #f1f5f9;\n }\n\n .ngx-drawer-close-btn {\n width: 32px;\n height: 32px;\n border-radius: 50%;\n border: none;\n background: rgba(0, 0, 0, 0.03);\n color: #64748b;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: all 0.2s ease;\n padding: 0;\n }\n\n .ngx-drawer-close-btn:hover {\n background: rgba(0, 0, 0, 0.08);\n color: #0f172a;\n }\n\n .ngx-drawer-container.dark .ngx-drawer-close-btn {\n background: rgba(255, 255, 255, 0.05);\n color: #94a3b8;\n }\n\n .ngx-drawer-container.dark .ngx-drawer-close-btn:hover {\n background: rgba(255, 255, 255, 0.1);\n color: #f1f5f9;\n }\n\n /* Body scroll */\n .ngx-drawer-body {\n padding: 24px;\n flex-grow: 1;\n overflow-y: auto;\n }\n\n /* Footer styling */\n .ngx-drawer-footer {\n padding: 16px 24px;\n border-top: 1px solid rgba(0, 0, 0, 0.06);\n background: rgba(0, 0, 0, 0.01);\n }\n\n .ngx-drawer-container.dark .ngx-drawer-footer {\n border-top-color: rgba(255, 255, 255, 0.06);\n background: rgba(255, 255, 255, 0.01);\n }\n `]\n})\nexport class DrawerComponent implements OnDestroy {\n // Inputs\n isOpen = model<boolean>(false); // Signal-based model for two-way binding\n position = input<'left' | 'right' | 'top' | 'bottom'>('right');\n size = input<string>('380px');\n closeOnBackdrop = input<boolean>(true);\n closeOnEscape = input<boolean>(true);\n theme = input<'light' | 'dark'>('light');\n title = input<string>('');\n\n // Outputs\n close = output<void>();\n\n constructor() {\n effect(() => {\n if (this.isOpen()) {\n document.body.style.overflow = 'hidden';\n } else {\n document.body.style.overflow = '';\n }\n });\n }\n\n ngOnDestroy() {\n document.body.style.overflow = '';\n }\n\n // Helper Computeds\n isHorizontal = computed(() => {\n const pos = this.position();\n return pos === 'left' || pos === 'right';\n });\n\n isVertical = computed(() => {\n const pos = this.position();\n return pos === 'top' || pos === 'bottom';\n });\n\n closeDrawer() {\n this.close.emit();\n this.isOpen.set(false);\n }\n\n onBackdropClick() {\n if (this.closeOnBackdrop()) {\n this.closeDrawer();\n }\n }\n\n @HostListener('document:keydown.escape', ['$event'])\n onEscapeKey(event: KeyboardEvent) {\n if (this.isOpen() && this.closeOnEscape()) {\n this.closeDrawer();\n }\n }\n}\n","/*\n * Public API Surface — secondary entry point: ngx-core-components/layout\n */\n\nexport { CardComponent } from './card/card.component';\nexport type { CardVariant } from './card/card.component';\n\nexport { TabStripComponent, TabComponent } from './tab-strip/tab-strip.component';\n\nexport { AccordionComponent } from './accordion/accordion.component';\nexport type { AccordionItem } from './accordion/accordion.component';\n\nexport { StepperComponent } from './stepper/stepper.component';\nexport type { StepperStep } from './stepper/stepper.component';\n\nexport { SplitterComponent } from './splitter/splitter.component';\n\n// Dashboard Layout - Grid widget panel orchestrator\nexport { DashboardLayoutComponent } from './dashboard-layout/dashboard-layout.component';\nexport type {\n DashboardItem,\n DashboardLayoutChangeEvent,\n DashboardPanelActionEvent,\n} from './dashboard-layout/models';\n\n// Carousel Slider\nexport { CarouselComponent } from './carousel/carousel.component';\n\n// Side Drawer Container\nexport { DrawerComponent } from './drawer/drawer.component';\n\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAgEa,aAAa,CAAA;AACxB,IAAA,KAAK,GAAG,KAAK,CAAC,EAAE,CAAC;AACjB,IAAA,QAAQ,GAAG,KAAK,CAAC,EAAE,CAAC;AACpB,IAAA,UAAU,GAAG,KAAK,CAAC,EAAE,CAAC;AACtB,IAAA,QAAQ,GAAG,KAAK,CAAC,EAAE,CAAC;AACpB,IAAA,QAAQ,GAAG,KAAK,CAAC,EAAE,CAAC;AACpB,IAAA,OAAO,GAAG,KAAK,CAAc,SAAS,CAAC;AACvC,IAAA,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC;AACxB,IAAA,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC;AACzB,IAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC;IAEvB,SAAS,GAAG,MAAM,EAAc;IAEhC,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,IAAI,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC,UAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,osFAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAnDS,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FA4OX,eAAe,EAAA,UAAA,EAAA,CAAA;kBA/O3B,SAAS;+BACE,YAAY,EAAA,UAAA,EACV,IAAI,EAAA,OAAA,EACP,CAAC,YAAY,CAAC,EAAA,eAAA,EACN,uBAAuB,CAAC,MAAM,EAAA,QAAA,EACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,osFAAA,CAAA,EAAA;wDA2OD,WAAW,EAAA,CAAA;sBADV,YAAY;uBAAC,yBAAyB,EAAE,CAAC,QAAQ,CAAC;;;AC7SrD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, output, Component, signal, HostListener, effect, computed, ViewChild } from '@angular/core';
2
+ import { input, output, Component, signal, HostListener, effect, computed, ViewChild, ChangeDetectionStrategy } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
4
 
5
5
  class BreadcrumbComponent {
@@ -462,6 +462,166 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
462
462
  args: ['document:keydown', ['$event']]
463
463
  }] } });
464
464
 
465
+ class BackToTopComponent {
466
+ // Inputs
467
+ threshold = input(300);
468
+ target = input(null);
469
+ theme = input('light');
470
+ showProgress = input(true);
471
+ // Internal state signals
472
+ isVisible = signal(false);
473
+ scrollPercent = signal(0);
474
+ // Computed circular ring offset (113.1 is circumference of circle r=18)
475
+ strokeDashoffset = computed(() => {
476
+ const circ = 113.1;
477
+ const ratio = this.scrollPercent() / 100;
478
+ return circ * (1 - ratio);
479
+ });
480
+ constructor() {
481
+ effect((onCleanup) => {
482
+ const targetSel = this.target();
483
+ this.threshold(); // Track threshold changes too
484
+ let scrollEl = null;
485
+ if (typeof targetSel === 'string') {
486
+ scrollEl = document.querySelector(targetSel);
487
+ }
488
+ else if (targetSel instanceof HTMLElement) {
489
+ scrollEl = targetSel;
490
+ }
491
+ if (!scrollEl) {
492
+ scrollEl = window;
493
+ }
494
+ const listener = () => {
495
+ this.checkScroll(scrollEl);
496
+ };
497
+ scrollEl.addEventListener('scroll', listener, { passive: true });
498
+ this.checkScroll(scrollEl);
499
+ onCleanup(() => {
500
+ if (scrollEl) {
501
+ scrollEl.removeEventListener('scroll', listener);
502
+ }
503
+ });
504
+ }, { allowSignalWrites: true });
505
+ }
506
+ checkScroll(scrollEl) {
507
+ let scrollTop = 0;
508
+ let scrollHeight = 0;
509
+ let clientHeight = 0;
510
+ if (scrollEl === window) {
511
+ scrollTop = window.scrollY || document.documentElement.scrollTop;
512
+ scrollHeight = document.documentElement.scrollHeight;
513
+ clientHeight = document.documentElement.clientHeight;
514
+ }
515
+ else if (scrollEl instanceof HTMLElement) {
516
+ scrollTop = scrollEl.scrollTop;
517
+ scrollHeight = scrollEl.scrollHeight;
518
+ clientHeight = scrollEl.clientHeight;
519
+ }
520
+ this.isVisible.set(scrollTop >= this.threshold());
521
+ const maxScroll = scrollHeight - clientHeight;
522
+ if (maxScroll > 0) {
523
+ const percent = Math.round((scrollTop / maxScroll) * 100);
524
+ this.scrollPercent.set(percent);
525
+ }
526
+ else {
527
+ this.scrollPercent.set(0);
528
+ }
529
+ }
530
+ scrollToTop() {
531
+ const targetSel = this.target();
532
+ let scrollEl = null;
533
+ if (typeof targetSel === 'string') {
534
+ scrollEl = document.querySelector(targetSel);
535
+ }
536
+ else if (targetSel instanceof HTMLElement) {
537
+ scrollEl = targetSel;
538
+ }
539
+ if (!scrollEl) {
540
+ scrollEl = window;
541
+ }
542
+ if (scrollEl === window) {
543
+ window.scrollTo({ top: 0, behavior: 'smooth' });
544
+ }
545
+ else if (scrollEl instanceof HTMLElement) {
546
+ scrollEl.scrollTo({ top: 0, behavior: 'smooth' });
547
+ }
548
+ }
549
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BackToTopComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
550
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: BackToTopComponent, isStandalone: true, selector: "ngx-back-to-top", inputs: { threshold: { classPropertyName: "threshold", publicName: "threshold", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, showProgress: { classPropertyName: "showProgress", publicName: "showProgress", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
551
+ <button
552
+ class="ngx-back-to-top"
553
+ [class.visible]="isVisible()"
554
+ [class.dark]="theme() === 'dark'"
555
+ (click)="scrollToTop()"
556
+ aria-label="Back to top"
557
+ >
558
+ @if (showProgress()) {
559
+ <svg class="ngx-back-to-top__svg" viewBox="0 0 40 40">
560
+ <circle
561
+ class="ngx-back-to-top__circle-bg"
562
+ cx="20"
563
+ cy="20"
564
+ r="18"
565
+ stroke-width="2.5"
566
+ />
567
+ <circle
568
+ class="ngx-back-to-top__circle-progress"
569
+ cx="20"
570
+ cy="20"
571
+ r="18"
572
+ stroke-width="2.5"
573
+ [style.strokeDashoffset]="strokeDashoffset()"
574
+ stroke-linecap="round"
575
+ transform="rotate(-90 20 20)"
576
+ />
577
+ </svg>
578
+ }
579
+
580
+ <svg class="arrow-up-icon" viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="3">
581
+ <polyline points="18 15 12 9 6 15"></polyline>
582
+ </svg>
583
+ </button>
584
+ `, isInline: true, styles: [".ngx-back-to-top{position:fixed;bottom:24px;right:24px;width:44px;height:44px;border-radius:50%;border:none;background:#fffc;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#0f172a;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000000d;z-index:99;opacity:0;transform:translateY(12px) scale(.9);pointer-events:none;transition:all .3s cubic-bezier(.16,1,.3,1);outline:none;padding:0}.ngx-back-to-top.visible{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}.ngx-back-to-top:hover{background:#fff;transform:scale(1.06) translateY(-1px);box-shadow:0 20px 25px -5px #00000026,0 10px 10px -5px #0000000f}.ngx-back-to-top:active{transform:scale(.98) translateY(0)}.dark .ngx-back-to-top{background:#0f172acc;border-color:#ffffff14;color:#cbd5e1;box-shadow:0 10px 15px -3px #0000004d}.dark .ngx-back-to-top:hover{background:#1e293b;color:#fff}.ngx-back-to-top__svg{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.ngx-back-to-top__circle-bg{fill:none;stroke:#0000000d}.dark .ngx-back-to-top__circle-bg{stroke:#ffffff0f}.ngx-back-to-top__circle-progress{fill:none;stroke:var(--primary-color, #3b82f6);stroke-dasharray:113.1;transition:stroke-dashoffset .1s ease}.arrow-up-icon{z-index:2;transition:transform .2s ease}.ngx-back-to-top:hover .arrow-up-icon{transform:translateY(-2px)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
585
+ }
586
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BackToTopComponent, decorators: [{
587
+ type: Component,
588
+ args: [{ selector: 'ngx-back-to-top', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
589
+ <button
590
+ class="ngx-back-to-top"
591
+ [class.visible]="isVisible()"
592
+ [class.dark]="theme() === 'dark'"
593
+ (click)="scrollToTop()"
594
+ aria-label="Back to top"
595
+ >
596
+ @if (showProgress()) {
597
+ <svg class="ngx-back-to-top__svg" viewBox="0 0 40 40">
598
+ <circle
599
+ class="ngx-back-to-top__circle-bg"
600
+ cx="20"
601
+ cy="20"
602
+ r="18"
603
+ stroke-width="2.5"
604
+ />
605
+ <circle
606
+ class="ngx-back-to-top__circle-progress"
607
+ cx="20"
608
+ cy="20"
609
+ r="18"
610
+ stroke-width="2.5"
611
+ [style.strokeDashoffset]="strokeDashoffset()"
612
+ stroke-linecap="round"
613
+ transform="rotate(-90 20 20)"
614
+ />
615
+ </svg>
616
+ }
617
+
618
+ <svg class="arrow-up-icon" viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="3">
619
+ <polyline points="18 15 12 9 6 15"></polyline>
620
+ </svg>
621
+ </button>
622
+ `, styles: [".ngx-back-to-top{position:fixed;bottom:24px;right:24px;width:44px;height:44px;border-radius:50%;border:none;background:#fffc;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#0f172a;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000000d;z-index:99;opacity:0;transform:translateY(12px) scale(.9);pointer-events:none;transition:all .3s cubic-bezier(.16,1,.3,1);outline:none;padding:0}.ngx-back-to-top.visible{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}.ngx-back-to-top:hover{background:#fff;transform:scale(1.06) translateY(-1px);box-shadow:0 20px 25px -5px #00000026,0 10px 10px -5px #0000000f}.ngx-back-to-top:active{transform:scale(.98) translateY(0)}.dark .ngx-back-to-top{background:#0f172acc;border-color:#ffffff14;color:#cbd5e1;box-shadow:0 10px 15px -3px #0000004d}.dark .ngx-back-to-top:hover{background:#1e293b;color:#fff}.ngx-back-to-top__svg{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.ngx-back-to-top__circle-bg{fill:none;stroke:#0000000d}.dark .ngx-back-to-top__circle-bg{stroke:#ffffff0f}.ngx-back-to-top__circle-progress{fill:none;stroke:var(--primary-color, #3b82f6);stroke-dasharray:113.1;transition:stroke-dashoffset .1s ease}.arrow-up-icon{z-index:2;transition:transform .2s ease}.ngx-back-to-top:hover .arrow-up-icon{transform:translateY(-2px)}\n"] }]
623
+ }], ctorParameters: () => [] });
624
+
465
625
  /*
466
626
  * Public API Surface — secondary entry point: ngx-core-components/navigation
467
627
  */
@@ -470,5 +630,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
470
630
  * Generated bundle index. Do not edit.
471
631
  */
472
632
 
473
- export { BreadcrumbComponent, CommandPaletteComponent, MenuComponent };
633
+ export { BackToTopComponent, BreadcrumbComponent, CommandPaletteComponent, MenuComponent };
474
634
  //# sourceMappingURL=ngx-core-components-navigation.mjs.map