ngx-core-components 0.3.21 → 0.3.22

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.
@@ -764,14 +764,18 @@ class BackToTopComponent {
764
764
  });
765
765
  constructor() {
766
766
  effect((onCleanup) => {
767
+ if (typeof window === 'undefined')
768
+ return;
767
769
  const targetSel = this.target();
768
770
  this.threshold(); // Track threshold changes too
769
771
  let scrollEl = null;
770
- if (typeof targetSel === 'string') {
771
- scrollEl = document.querySelector(targetSel);
772
- }
773
- else if (targetSel instanceof HTMLElement) {
774
- scrollEl = targetSel;
772
+ if (typeof document !== 'undefined') {
773
+ if (typeof targetSel === 'string') {
774
+ scrollEl = document.querySelector(targetSel);
775
+ }
776
+ else if (targetSel instanceof HTMLElement) {
777
+ scrollEl = targetSel;
778
+ }
775
779
  }
776
780
  if (!scrollEl) {
777
781
  scrollEl = window;
@@ -792,7 +796,7 @@ class BackToTopComponent {
792
796
  let scrollTop = 0;
793
797
  let scrollHeight = 0;
794
798
  let clientHeight = 0;
795
- if (scrollEl === window) {
799
+ if (typeof window !== 'undefined' && scrollEl === window) {
796
800
  scrollTop = window.scrollY || document.documentElement.scrollTop;
797
801
  scrollHeight = document.documentElement.scrollHeight;
798
802
  clientHeight = document.documentElement.clientHeight;
@@ -815,16 +819,18 @@ class BackToTopComponent {
815
819
  scrollToTop() {
816
820
  const targetSel = this.target();
817
821
  let scrollEl = null;
818
- if (typeof targetSel === 'string') {
819
- scrollEl = document.querySelector(targetSel);
820
- }
821
- else if (targetSel instanceof HTMLElement) {
822
- scrollEl = targetSel;
822
+ if (typeof document !== 'undefined') {
823
+ if (typeof targetSel === 'string') {
824
+ scrollEl = document.querySelector(targetSel);
825
+ }
826
+ else if (targetSel instanceof HTMLElement) {
827
+ scrollEl = targetSel;
828
+ }
823
829
  }
824
- if (!scrollEl) {
830
+ if (!scrollEl && typeof window !== 'undefined') {
825
831
  scrollEl = window;
826
832
  }
827
- if (scrollEl === window) {
833
+ if (typeof window !== 'undefined' && scrollEl === window) {
828
834
  window.scrollTo({ top: 0, behavior: 'smooth' });
829
835
  }
830
836
  else if (scrollEl instanceof HTMLElement) {
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-core-components-navigation.mjs","sources":["../../../projects/ngx-core-components/navigation/breadcrumb/breadcrumb.component.ts","../../../projects/ngx-core-components/navigation/menu/menu.component.ts","../../../projects/ngx-core-components/navigation/command-palette/command-palette.component.ts","../../../projects/ngx-core-components/navigation/context-menu/context-menu.component.ts","../../../projects/ngx-core-components/navigation/back-to-top/back-to-top.component.ts","../../../projects/ngx-core-components/navigation/public-api.ts","../../../projects/ngx-core-components/navigation/ngx-core-components-navigation.ts"],"sourcesContent":["import { Component, computed, input, output, signal } from '@angular/core';\n\nexport interface BreadcrumbItem {\n label: string;\n url?: string;\n icon?: string;\n}\n\n@Component({\n selector: 'ngx-breadcrumb',\n standalone: true,\n template: `\n <nav class=\"ngx-breadcrumb\" aria-label=\"breadcrumb\">\n @for (item of visibleItems(); track item.label; let i = $index; let last = $last) {\n @if (i > 0) { <span class=\"breadcrumb-separator\" aria-hidden=\"true\">{{ separator() }}</span> }\n @if (last) {\n <span class=\"breadcrumb-item active\" aria-current=\"page\">\n @if (item.icon) { <span class=\"breadcrumb-icon\">{{ item.icon }}</span> }\n {{ item.label }}\n </span>\n } @else if (item.url) {\n <a class=\"breadcrumb-item\" [href]=\"item.url\" (click)=\"onNav($event, item)\">\n @if (item.icon) { <span class=\"breadcrumb-icon\">{{ item.icon }}</span> }\n {{ item.label }}\n </a>\n } @else {\n <button class=\"breadcrumb-item breadcrumb-btn\" (click)=\"itemClick.emit(item)\">\n @if (item.icon) { <span class=\"breadcrumb-icon\">{{ item.icon }}</span> }\n {{ item.label }}\n </button>\n }\n }\n @if (shouldCollapse()) {\n <span class=\"breadcrumb-separator\" aria-hidden=\"true\">{{ separator() }}</span>\n <button\n class=\"breadcrumb-item breadcrumb-btn breadcrumb-ellipsis\"\n (click)=\"isCollapsed.set(false)\"\n aria-label=\"Show all breadcrumbs\"\n title=\"Show all breadcrumbs\"\n >&hellip;</button>\n <span class=\"breadcrumb-separator\" aria-hidden=\"true\">{{ separator() }}</span>\n @for (item of tailItems(); track item.label; let i = $index; let last = $last) {\n @if (last) {\n <span class=\"breadcrumb-item active\" aria-current=\"page\">\n @if (item.icon) { <span class=\"breadcrumb-icon\">{{ item.icon }}</span> }\n {{ item.label }}\n </span>\n } @else if (item.url) {\n <a class=\"breadcrumb-item\" [href]=\"item.url\" (click)=\"onNav($event, item)\">\n @if (item.icon) { <span class=\"breadcrumb-icon\">{{ item.icon }}</span> }\n {{ item.label }}\n </a>\n } @else {\n <button class=\"breadcrumb-item breadcrumb-btn\" (click)=\"itemClick.emit(item)\">\n @if (item.icon) { <span class=\"breadcrumb-icon\">{{ item.icon }}</span> }\n {{ item.label }}\n </button>\n }\n @if (!last) { <span class=\"breadcrumb-separator\" aria-hidden=\"true\">{{ separator() }}</span> }\n }\n }\n </nav>\n `,\n styles: [`\n :host { display: block; }\n .ngx-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; }\n .breadcrumb-separator {\n color: var(--ngx-breadcrumb-separator, #adb5bd);\n padding: 0 2px;\n opacity: 0.7;\n transition: opacity 0.2s ease;\n }\n .ngx-breadcrumb:hover .breadcrumb-separator { opacity: 1; }\n .breadcrumb-item {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n color: var(--ngx-breadcrumb-link, #1a73e8);\n text-decoration: none;\n padding: 2px 8px;\n border-radius: 12px;\n transition: background-color 0.2s ease, color 0.2s ease;\n }\n .breadcrumb-item:hover:not(.active) {\n background-color: var(--ngx-breadcrumb-hover-bg, rgba(26, 115, 232, 0.08));\n color: var(--ngx-breadcrumb-link-hover, #1557b0);\n }\n .breadcrumb-item:focus-visible {\n outline: 2px solid var(--ngx-breadcrumb-focus, #1a73e8);\n outline-offset: 2px;\n }\n .breadcrumb-item.active {\n color: var(--ngx-breadcrumb-active, #495057);\n background-color: var(--ngx-breadcrumb-active-bg, rgba(73, 80, 87, 0.08));\n cursor: default;\n font-weight: 600;\n }\n .breadcrumb-btn {\n background: none;\n border: none;\n cursor: pointer;\n font-family: inherit;\n font-size: inherit;\n padding: 2px 8px;\n }\n .breadcrumb-ellipsis {\n font-weight: 700;\n letter-spacing: 1px;\n min-width: 28px;\n justify-content: center;\n }\n .breadcrumb-icon { font-size: 14px; }\n `]\n})\nexport class BreadcrumbComponent {\n items = input<BreadcrumbItem[]>([]);\n separator = input('/');\n maxVisible = input(0);\n itemClick = output<BreadcrumbItem>();\n\n isCollapsed = signal<boolean>(true);\n\n /** True when collapse mode is active: maxVisible > 0, items exceed threshold, and user hasn't expanded */\n shouldCollapse = computed(() => {\n const max = this.maxVisible();\n return max > 0 && this.items().length > max + 1 && this.isCollapsed();\n });\n\n /** Items to render in the main @for loop: all items when not collapsing, or only the first item when collapsing */\n visibleItems = computed(() => {\n if (this.shouldCollapse()) {\n return this.items().slice(0, 1);\n }\n return this.items();\n });\n\n /** The trailing items shown after the ellipsis when collapsed */\n tailItems = computed(() => {\n if (this.shouldCollapse()) {\n return this.items().slice(-this.maxVisible());\n }\n return [];\n });\n\n onNav(event: MouseEvent, item: BreadcrumbItem): void { event.preventDefault(); this.itemClick.emit(item); }\n}\n\n","import { Component, input, output, signal, HostListener, computed } from '@angular/core';\n\nexport interface MenuItem {\n\tlabel?: string;\n\ticon?: string;\n\turl?: string;\n\tdisabled?: boolean;\n\tseparator?: boolean;\n\tchildren?: MenuItem[];\n}\n\n@Component({\n\tselector: 'ngx-menu',\n\tstandalone: true,\n\ttemplate: `\n\t\t<nav class=\"ngx-menu\" [class.menu-vertical]=\"orientation() === 'vertical'\" role=\"menubar\">\n\t\t\t@for (item of items(); track $index; let i = $index) {\n\t\t\t\t@if (item.separator) {\n\t\t\t\t\t<hr class=\"menu-separator\" />\n\t\t\t\t} @else {\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\"menu-item\"\n\t\t\t\t\t\t[class.has-children]=\"item.children && item.children.length > 0\"\n\t\t\t\t\t\t[class.open]=\"openIndex() === i\"\n\t\t\t\t\t\t[class.disabled]=\"item.disabled\"\n\t\t\t\t\t\t[class.active]=\"isActiveItem(item)\"\n\t\t\t\t\t\trole=\"menuitem\"\n\t\t\t\t\t\t[attr.tabindex]=\"item.disabled ? -1 : 0\"\n\t\t\t\t\t\t[attr.aria-haspopup]=\"item.children && item.children.length ? 'true' : null\"\n\t\t\t\t\t\t[attr.aria-expanded]=\"item.children && item.children.length ? (openIndex() === i) : null\"\n\t\t\t\t\t\t(click)=\"handleClick($event, item, i)\"\n\t\t\t\t\t\t(keydown.enter)=\"handleClick($event, item, i)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@if (item.icon) { <span class=\"menu-icon\">{{ item.icon }}</span> }\n\t\t\t\t\t\t<span class=\"menu-label\">{{ item.label }}</span>\n\t\t\t\t\t\t@if (item.children && item.children.length) {\n\t\t\t\t\t\t\t<span class=\"menu-arrow\">{{ orientation() === 'vertical' ? '&#8250;' : '&#9662;' }}</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@if (item.children && item.children.length && openIndex() === i) {\n\t\t\t\t\t\t\t<div class=\"menu-submenu\" role=\"menu\">\n\t\t\t\t\t\t\t\t@for (child of item.children; track $index) {\n\t\t\t\t\t\t\t\t\t@if (child.separator) {\n\t\t\t\t\t\t\t\t\t\t<hr class=\"menu-separator\" />\n\t\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t\t<div class=\"menu-subitem\" [class.disabled]=\"child.disabled\" [class.active]=\"isActiveItem(child)\" role=\"menuitem\" [attr.tabindex]=\"child.disabled ? -1 : 0\" (click)=\"handleSubClick($event, child)\">\n\t\t\t\t\t\t\t\t\t\t\t@if (child.icon) { <span class=\"menu-icon\">{{ child.icon }}</span> }\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"menu-label\">{{ child.label }}</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t}\n\t\t</nav>\n\t`,\n\tstyles: [`\n\t\t@keyframes submenuSlideIn {\n\t\t\tfrom { opacity: 0; transform: translateY(-6px); }\n\t\t\tto { opacity: 1; transform: translateY(0); }\n\t\t}\n\t\t:host { display: block; }\n\t\t.ngx-menu { display: flex; align-items: stretch; background: var(--ngx-menu-bg, #fff); border: 1px solid var(--ngx-menu-border, #dee2e6); border-radius: var(--ngx-menu-radius, 10px); overflow: visible; }\n\t\t.menu-vertical { flex-direction: column; }\n\t\t.menu-item { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 18px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ngx-menu-color, #212529); transition: background 0.2s ease, color 0.2s ease; white-space: nowrap; user-select: none; }\n\t\t.menu-item::after { content: ''; position: absolute; bottom: 0; left: 18px; right: 18px; height: 2.5px; background: linear-gradient(90deg, var(--ngx-menu-active-color, #1a73e8), #4fc3f7); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; pointer-events: none; }\n\t\t:host:not(.menu-vertical) .menu-item:hover:not(.disabled)::after,\n\t\t:host:not(.menu-vertical) .menu-item.active::after { transform: scaleX(1); }\n\t\t.menu-vertical .menu-item::after { display: none; }\n\t\t.menu-item:hover:not(.disabled), .menu-item.open { background: var(--ngx-menu-hover-bg, rgba(26,115,232,0.06)); color: var(--ngx-menu-active-color, #1a73e8); }\n\t\t.menu-item.disabled { opacity: 0.5; cursor: not-allowed; }\n\t\t.menu-item:focus-visible, .menu-subitem:focus-visible { outline: 2px solid var(--ngx-menu-active-color, #1a73e8); outline-offset: -2px; border-radius: 4px; }\n\t\t.menu-icon { font-size: 16px; flex-shrink: 0; display: inline-flex; align-items: center; }\n\t\t.menu-label { flex: 1; }\n\t\t.menu-arrow { margin-left: auto; padding-left: 10px; font-size: 11px; transition: transform 0.2s ease; }\n\t\t.menu-item.open > .menu-arrow { transform: rotate(180deg); }\n\t\t.menu-vertical .menu-item.open > .menu-arrow { transform: rotate(0deg); }\n\t\t.menu-separator { border: none; border-top: 1px solid var(--ngx-menu-separator, #dee2e6); margin: 4px 0; }\n\t\t.menu-submenu { position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--ngx-menu-submenu-bg, rgba(255,255,255,0.82)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--ngx-menu-border, rgba(222,226,230,0.7)); border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 12px 36px rgba(0,0,0,0.10); z-index: 1000; padding: 4px 0; animation: submenuSlideIn 0.18s ease-out; }\n\t\t.menu-vertical .menu-submenu { top: 0; left: 100%; }\n\t\t.menu-subitem { display: flex; align-items: center; gap: 10px; padding: 8px 18px; font-size: 13px; cursor: pointer; color: var(--ngx-menu-color, #212529); transition: background 0.2s ease, color 0.2s ease; white-space: nowrap; border-radius: 6px; margin: 0 4px; }\n\t\t.menu-subitem:hover:not(.disabled) { background: var(--ngx-menu-hover-bg, rgba(26,115,232,0.06)); color: var(--ngx-menu-active-color, #1a73e8); }\n\t\t.menu-item.active, .menu-subitem.active { background: linear-gradient(135deg, var(--ngx-menu-active-bg, rgba(232,240,254,0.85)), rgba(79,195,247,0.15)); color: var(--ngx-menu-active-color, #1a73e8); font-weight: 600; }\n\t`]\n})\nexport class MenuComponent {\n\titems = input<MenuItem[]>([]);\n\torientation = input<'horizontal' | 'vertical'>('horizontal');\n\t/** Label or URL of the currently active item — used to highlight the active menu entry. */\n\tactiveItem = input<string>('');\n\topenIndex = signal<number | null>(null);\n\titemClick = output<MenuItem>();\n\n\tisActiveItem(item: MenuItem): boolean {\n\t\tconst active = this.activeItem();\n\t\tif (!active) return false;\n\t\treturn item.label === active || item.url === active;\n\t}\n\n\thandleClick(event: Event, item: MenuItem, i: number): void {\n\t\tif (item.disabled) return;\n\t\tevent.stopPropagation();\n\t\tif (item.children && item.children.length) { this.openIndex.set(this.openIndex() === i ? null : i); }\n\t\telse { this.itemClick.emit(item); this.openIndex.set(null); }\n\t}\n\n\thandleSubClick(event: Event, child: MenuItem): void {\n\t\tif (child.disabled) return;\n\t\tevent.stopPropagation();\n\t\tthis.itemClick.emit(child);\n\t\tthis.openIndex.set(null);\n\t}\n\n\t@HostListener('document:click')\n\tcloseAll(): void { this.openIndex.set(null); }\n}\n","import { Component, input, signal, computed, HostListener, output, effect, ElementRef, ViewChild } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nexport interface CommandItem {\n id: string;\n label: string;\n desc?: string;\n shortcut?: string;\n icon?: string;\n category?: string;\n}\n\n@Component({\n selector: 'ngx-command-palette',\n standalone: true,\n imports: [CommonModule],\n template: `\n <!-- Global Overlay Backdrop -->\n @if (isOpen()) {\n <div class=\"ngx-palette-overlay\" (click)=\"closePalette()\">\n <div\n class=\"ngx-palette-modal\"\n (click)=\"$event.stopPropagation()\"\n >\n <!-- Search Header input console -->\n <div class=\"ngx-palette-header\">\n <span class=\"search-icon\">🔍</span>\n <input\n #searchInput\n type=\"text\"\n class=\"palette-input\"\n [placeholder]=\"placeholder()\"\n [value]=\"filterQuery()\"\n (input)=\"onSearchInput($event)\"\n />\n <span class=\"esc-badge\">ESC</span>\n </div>\n\n <!-- Command results feed -->\n <div class=\"ngx-palette-results\">\n @if (groupedResults().length === 0) {\n <div class=\"empty-state\">No matching commands found.</div>\n }\n\n @for (group of groupedResults(); track group.category) {\n <div class=\"category-group\">\n @if (group.category) {\n <div class=\"category-header\">{{ group.category }}</div>\n }\n\n @for (cmd of group.items; track cmd.id) {\n <div\n class=\"command-row\"\n [class.active]=\"activeItem()?.id === cmd.id\"\n (mouseenter)=\"activeItem.set(cmd)\"\n (click)=\"executeCommand(cmd)\"\n >\n <div class=\"command-start\">\n @if (cmd.icon) {\n <span class=\"command-icon\">{{ cmd.icon }}</span>\n }\n <div class=\"command-details\">\n <span class=\"command-label\">{{ cmd.label }}</span>\n @if (cmd.desc) {\n <span class=\"command-desc\">{{ cmd.desc }}</span>\n }\n </div>\n </div>\n\n @if (cmd.shortcut) {\n <span class=\"command-shortcut\">{{ cmd.shortcut }}</span>\n }\n </div>\n }\n </div>\n }\n </div>\n\n <!-- Console Footer help actions -->\n <div class=\"ngx-palette-footer\">\n <div class=\"help-item\"><span>↑↓</span> Navigate</div>\n <div class=\"help-item\"><span>↵</span> Select</div>\n <div class=\"help-item\"><span>Ctrl + K</span> Toggle Console</div>\n </div>\n </div>\n </div>\n }\n `,\n styles: [`\n .ngx-palette-overlay {\n position: fixed;\n inset: 0;\n background: rgba(12, 19, 36, 0.45);\n backdrop-filter: blur(8px);\n z-index: 9999;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n padding-top: 15vh;\n animation: fade-in 0.18s cubic-bezier(0.4, 0, 0.2, 1);\n }\n\n @keyframes fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n\n /* Palette Modal container box */\n .ngx-palette-modal {\n width: 100%;\n max-width: 600px;\n background: var(--bg-secondary, #ffffff);\n border: 1px solid var(--border-color, #e2e8f0);\n border-radius: 12px;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);\n display: flex;\n flex-direction: column;\n overflow: hidden;\n font-family: inherit;\n animation: scale-up 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);\n }\n\n @keyframes scale-up {\n from { transform: scale(0.95) translateY(-10px); }\n to { transform: scale(1) translateY(0); }\n }\n\n /* Search Header console input */\n .ngx-palette-header {\n display: flex;\n align-items: center;\n padding: 14px 18px;\n border-bottom: 1px solid var(--border-color, #e2e8f0);\n gap: 12px;\n }\n .search-icon {\n font-size: 16px;\n color: var(--text-secondary, #64748b);\n }\n .palette-input {\n flex: 1;\n border: none;\n background: transparent;\n outline: none;\n font-size: 14px;\n color: var(--text-primary, #0f172a);\n font-family: inherit;\n }\n .palette-input::placeholder {\n color: var(--text-secondary, #64748b);\n opacity: 0.8;\n }\n .esc-badge {\n font-size: 10px;\n font-weight: 700;\n color: var(--text-secondary, #64748b);\n background: var(--border-light, #f1f5f9);\n padding: 3px 6px;\n border-radius: 4px;\n border: 1px solid var(--border-color, #e2e8f0);\n box-shadow: var(--shadow-sm);\n }\n\n /* Command Results List block */\n .ngx-palette-results {\n max-height: 320px;\n overflow-y: auto;\n padding: 8px 0;\n }\n\n .empty-state {\n padding: 24px;\n text-align: center;\n color: var(--text-secondary, #64748b);\n font-size: 13px;\n font-style: italic;\n }\n\n /* Category Group titles */\n .category-group {\n display: flex;\n flex-direction: column;\n }\n .category-header {\n padding: 8px 18px;\n font-size: 10px;\n font-weight: 800;\n text-transform: uppercase;\n letter-spacing: 0.8px;\n color: var(--text-secondary, #64748b);\n opacity: 0.85;\n }\n\n /* Single Command row items */\n .command-row {\n padding: 10px 18px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n transition: background-color 0.12s ease;\n gap: 16px;\n }\n .command-row.active {\n background: var(--primary-glow, rgba(79, 70, 229, 0.08));\n }\n \n .command-start {\n display: flex;\n align-items: center;\n gap: 12px;\n min-width: 0;\n }\n .command-icon {\n font-size: 16px;\n line-height: 1;\n }\n .command-details {\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n .command-label {\n font-size: 13px;\n font-weight: 600;\n color: var(--text-primary, #0f172a);\n }\n .command-row.active .command-label {\n color: var(--primary-color, #4f46e5);\n }\n .command-desc {\n font-size: 11px;\n color: var(--text-secondary, #64748b);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n \n /* Shortcut keycaps style */\n .command-shortcut {\n font-size: 10px;\n font-weight: 600;\n color: var(--text-secondary, #64748b);\n background: var(--border-light, #f1f5f9);\n border: 1px solid var(--border-color, #e2e8f0);\n padding: 2px 6px;\n border-radius: 4px;\n font-family: monospace;\n }\n\n /* Footer help commands guides */\n .ngx-palette-footer {\n display: flex;\n padding: 12px 18px;\n background: var(--border-light, #f1f5f9);\n border-top: 1px solid var(--border-color, #e2e8f0);\n gap: 18px;\n }\n .help-item {\n font-size: 11px;\n font-weight: 500;\n color: var(--text-secondary, #64748b);\n display: flex;\n align-items: center;\n gap: 6px;\n }\n .help-item span {\n background: var(--bg-secondary, #ffffff);\n border: 1px solid var(--border-color, #e2e8f0);\n padding: 1px 4px;\n border-radius: 3px;\n font-weight: 700;\n font-size: 9px;\n }\n `]\n})\nexport class CommandPaletteComponent {\n // Inputs configs\n commands = input.required<CommandItem[]>();\n placeholder = input<string>('Type a command or search...');\n\n // Output emissions\n commandSelected = output<CommandItem>();\n\n @ViewChild('searchInput') searchInput!: ElementRef<HTMLInputElement>;\n\n // Open status logic\n isOpen = signal<boolean>(false);\n filterQuery = signal<string>('');\n\n // Currently focused item in keyboard selection\n activeItem = signal<CommandItem | null>(null);\n\n // Reactive effect to focus the search input field upon dialog opens\n constructor() {\n effect(() => {\n if (this.isOpen()) {\n setTimeout(() => {\n this.searchInput?.nativeElement?.focus();\n }, 50);\n }\n });\n }\n\n // Filter commands by search query\n filteredCommands = computed(() => {\n const query = this.filterQuery().toLowerCase().trim();\n if (!query) return this.commands();\n\n return this.commands().filter(c =>\n c.label.toLowerCase().includes(query) ||\n (c.desc && c.desc.toLowerCase().includes(query)) ||\n (c.category && c.category.toLowerCase().includes(query))\n );\n });\n\n // Group commands by category computed signals\n groupedResults = computed(() => {\n const list = this.filteredCommands();\n const groups: { category: string; items: CommandItem[] }[] = [];\n\n list.forEach(item => {\n const cat = item.category || 'General';\n let grp = groups.find(g => g.category === cat);\n if (!grp) {\n grp = { category: cat, items: [] };\n groups.push(grp);\n }\n grp.items.push(item);\n });\n\n return groups;\n });\n\n // Flat list of current results for keyboard navigation indices mappings\n flatResultsList = computed(() => {\n const groups = this.groupedResults();\n const flat: CommandItem[] = [];\n groups.forEach(g => flat.push(...g.items));\n return flat;\n });\n\n // Watch key inputs reactive alignment\n onSearchInput(event: Event): void {\n const query = (event.target as HTMLInputElement).value;\n this.filterQuery.set(query);\n // Reset active item to first result in filtered list\n const results = this.flatResultsList();\n this.activeItem.set(results.length > 0 ? results[0] : null);\n }\n\n openPalette(): void {\n this.filterQuery.set('');\n const results = this.commands();\n this.activeItem.set(results.length > 0 ? results[0] : null);\n this.isOpen.set(true);\n }\n\n closePalette(): void {\n this.isOpen.set(false);\n }\n\n toggleOpen(): void {\n if (this.isOpen()) {\n this.closePalette();\n } else {\n this.openPalette();\n }\n }\n\n executeCommand(cmd: CommandItem): void {\n this.commandSelected.emit(cmd);\n this.closePalette();\n }\n\n // Global keypress watchers\n @HostListener('document:keydown', ['$event'])\n handleKeyDown(event: KeyboardEvent): void {\n // Ctrl + K or Cmd + K triggers console toggle\n if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'k') {\n event.preventDefault();\n this.toggleOpen();\n return;\n }\n\n if (!this.isOpen()) return;\n\n const flatList = this.flatResultsList();\n if (flatList.length === 0) {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.closePalette();\n }\n return;\n }\n\n const currentActive = this.activeItem();\n let idx = currentActive ? flatList.findIndex(c => c.id === currentActive.id) : -1;\n\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n idx = (idx + 1) % flatList.length;\n const nextItem = flatList[idx];\n this.activeItem.set(nextItem);\n this.scrollToActiveItem();\n } else if (event.key === 'ArrowUp') {\n event.preventDefault();\n idx = (idx - 1 + flatList.length) % flatList.length;\n const prevItem = flatList[idx];\n this.activeItem.set(prevItem);\n this.scrollToActiveItem();\n } else if (event.key === 'Enter') {\n event.preventDefault();\n if (currentActive) {\n this.executeCommand(currentActive);\n }\n } else if (event.key === 'Escape') {\n event.preventDefault();\n this.closePalette();\n }\n }\n\n private scrollToActiveItem(): void {\n setTimeout(() => {\n const activeEl = document.querySelector('.ngx-palette-modal .command-row.active');\n if (activeEl) {\n activeEl.scrollIntoView({ block: 'nearest', inline: 'nearest' });\n }\n }, 0);\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { Component, input, output, signal, effect, HostListener } from '@angular/core';\n\nexport interface ContextMenuItem {\n id: string;\n label: string;\n icon?: string;\n disabled?: boolean;\n danger?: boolean;\n separator?: boolean;\n shortcut?: string;\n children?: ContextMenuItem[];\n}\n\n@Component({\n selector: 'ngx-context-menu',\n standalone: true,\n imports: [CommonModule],\n template: `\n @if (open()) {\n <div\n class=\"ngx-context-menu-backdrop\"\n (click)=\"close()\"\n (contextmenu)=\"$event.preventDefault(); close()\"\n ></div>\n <div\n class=\"ngx-context-menu\"\n role=\"menu\"\n [style.left.px]=\"x()\"\n [style.top.px]=\"y()\"\n [style.min-width.px]=\"width()\"\n (click)=\"$event.stopPropagation()\"\n >\n <ng-container *ngTemplateOutlet=\"menuList; context: { items: items() }\"></ng-container>\n </div>\n }\n\n <ng-template #menuList let-items=\"items\">\n @for (item of items; track item.id; let i = $index) {\n @if (item.separator) {\n <div class=\"menu-separator\" role=\"separator\"></div>\n } @else {\n <div class=\"menu-entry\">\n <button\n class=\"menu-item\"\n type=\"button\"\n role=\"menuitem\"\n [class.danger]=\"item.danger\"\n [class.has-children]=\"item.children?.length\"\n [class.focused]=\"focusedIndex() === flatIndexOf(item)\"\n [disabled]=\"item.disabled\"\n (click)=\"selectItem(item, $event)\"\n >\n @if (item.icon) { <span class=\"menu-icon\">{{ item.icon }}</span> }\n <span class=\"menu-label\">{{ item.label }}</span>\n @if (item.shortcut) { <span class=\"menu-shortcut\">{{ item.shortcut }}</span> }\n @if (item.children?.length) { <span class=\"menu-arrow\">&gt;</span> }\n </button>\n @if (item.children?.length) {\n <div class=\"submenu\" role=\"menu\">\n <ng-container *ngTemplateOutlet=\"menuList; context: { items: item.children }\"></ng-container>\n </div>\n }\n </div>\n }\n }\n </ng-template>\n `,\n styles: [`\n @keyframes contextMenuFadeIn {\n from { opacity: 0; transform: scale(0.95); }\n to { opacity: 1; transform: scale(1); }\n }\n\n .ngx-context-menu-backdrop { position: fixed; inset: 0; z-index: 9998; background: transparent; }\n .ngx-context-menu {\n position: fixed; z-index: 9999; padding: 6px;\n border: 1px solid var(--border-color, rgba(217, 222, 232, 0.6));\n border-radius: 10px;\n background: var(--bg-secondary, rgba(255, 255, 255, 0.82));\n backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);\n box-shadow:\n 0 4px 6px -1px rgba(15, 23, 42, 0.06),\n 0 10px 15px -3px rgba(15, 23, 42, 0.08),\n 0 20px 40px -4px rgba(15, 23, 42, 0.12);\n color: var(--text-primary, #111827);\n font-family: var(--ngx-font-family, inherit);\n animation: contextMenuFadeIn 0.18s cubic-bezier(0.4, 0, 0.2, 1);\n }\n .menu-entry { position: relative; }\n .menu-item {\n position: relative; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 9px;\n width: 100%; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer;\n font: inherit; font-size: 13px; line-height: 1.2; padding: 8px 10px; text-align: left; white-space: nowrap;\n transition: background-color 0.15s ease, color 0.15s ease;\n }\n .menu-item:hover:not(:disabled), .menu-item.focused:not(:disabled) { background: var(--border-light, #f3f6fb); outline: none; }\n .menu-item:focus-visible { background: var(--border-light, #f3f6fb); outline: 2px solid var(--primary-color, #4f46e5); outline-offset: -2px; border-radius: 6px; }\n .menu-item:disabled { color: var(--text-secondary, #94a3b8); cursor: not-allowed; }\n .menu-item.danger { color: var(--ngx-danger, #dc2626); }\n .menu-item.danger:hover:not(:disabled), .menu-item.danger.focused:not(:disabled) { background: rgba(220, 38, 38, 0.08); }\n .menu-icon { width: 16px; text-align: center; color: var(--text-secondary, #64748b); }\n .menu-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }\n .menu-shortcut { font-size: 10px; font-weight: 600; color: var(--text-secondary, #64748b); background: var(--border-light, #f1f5f9); border: 1px solid var(--border-color, #e2e8f0); padding: 2px 6px; border-radius: 4px; font-family: monospace; margin-left: auto; }\n .menu-arrow { color: var(--text-secondary, #64748b); }\n .menu-separator { height: 1px; margin: 5px 4px; background: var(--border-color, #e5e7eb); }\n .submenu {\n display: none; position: absolute; left: calc(100% - 4px); top: -6px; min-width: 190px; padding: 6px;\n border: 1px solid var(--border-color, rgba(217, 222, 232, 0.6));\n border-radius: 10px;\n background: var(--bg-secondary, rgba(255, 255, 255, 0.82));\n backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);\n box-shadow:\n 0 4px 6px -1px rgba(15, 23, 42, 0.06),\n 0 10px 15px -3px rgba(15, 23, 42, 0.08),\n 0 20px 40px -4px rgba(15, 23, 42, 0.12);\n animation: contextMenuFadeIn 0.18s cubic-bezier(0.4, 0, 0.2, 1);\n }\n .menu-entry:hover > .submenu, .menu-entry:focus-within > .submenu { display: block; }\n `]\n})\nexport class ContextMenuComponent {\n items = input<ContextMenuItem[]>([]);\n open = input(false);\n x = input(0);\n y = input(0);\n width = input(200);\n\n itemSelected = output<ContextMenuItem>();\n openChange = output<boolean>();\n\n /** Tracks the focused item index for keyboard navigation (-1 = none). */\n focusedIndex = signal<number>(-1);\n\n constructor() {\n // Reset focused index whenever the menu opens or closes\n effect(() => {\n this.open(); // subscribe to changes\n this.focusedIndex.set(-1);\n });\n }\n\n /** Returns the flat index of an item across all top-level items (excluding separators). */\n flatIndexOf(item: ContextMenuItem): number {\n return this.navigableItems().indexOf(item);\n }\n\n /** Flat list of navigable (non-separator) top-level items. */\n private navigableItems(): ContextMenuItem[] {\n return this.items().filter(i => !i.separator);\n }\n\n /** Navigable and non-disabled items indices used for arrow-key movement. */\n private navigableIndices(): number[] {\n return this.navigableItems()\n .map((item, idx) => (!item.disabled ? idx : -1))\n .filter(idx => idx !== -1);\n }\n\n @HostListener('document:keydown', ['$event'])\n handleKeyDown(event: KeyboardEvent): void {\n if (!this.open()) return;\n\n const indices = this.navigableIndices();\n if (indices.length === 0) {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.close();\n }\n return;\n }\n\n const current = this.focusedIndex();\n\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n const nextIdx = indices.find(i => i > current) ?? indices[0];\n this.focusedIndex.set(nextIdx);\n } else if (event.key === 'ArrowUp') {\n event.preventDefault();\n const reversed = [...indices].reverse();\n const prevIdx = reversed.find(i => i < current) ?? reversed[0];\n this.focusedIndex.set(prevIdx);\n } else if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n const items = this.navigableItems();\n if (current >= 0 && current < items.length) {\n const item = items[current];\n if (!item.disabled && !item.children?.length) {\n this.itemSelected.emit(item);\n this.close();\n }\n }\n } else if (event.key === 'Escape') {\n event.preventDefault();\n this.close();\n }\n }\n\n selectItem(item: ContextMenuItem, event: MouseEvent): void {\n event.stopPropagation();\n if (item.disabled || item.children?.length) return;\n this.itemSelected.emit(item);\n this.close();\n }\n\n close(): void {\n this.openChange.emit(false);\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n signal,\n computed,\n effect,\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'ngx-back-to-top',\n standalone: true,\n imports: [CommonModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <button\n class=\"ngx-back-to-top\"\n [class.visible]=\"isVisible()\"\n [class.dark]=\"theme() === 'dark'\"\n (click)=\"scrollToTop()\"\n aria-label=\"Back to top\"\n >\n @if (showProgress()) {\n <svg class=\"ngx-back-to-top__svg\" viewBox=\"0 0 40 40\">\n <circle\n class=\"ngx-back-to-top__circle-bg\"\n cx=\"20\"\n cy=\"20\"\n r=\"18\"\n stroke-width=\"2.5\"\n />\n <circle\n class=\"ngx-back-to-top__circle-progress\"\n cx=\"20\"\n cy=\"20\"\n r=\"18\"\n stroke-width=\"2.5\"\n [style.strokeDashoffset]=\"strokeDashoffset()\"\n stroke-linecap=\"round\"\n transform=\"rotate(-90 20 20)\"\n />\n </svg>\n }\n\n <svg class=\"arrow-up-icon\" viewBox=\"0 0 24 24\" width=\"18\" height=\"18\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"3\">\n <polyline points=\"18 15 12 9 6 15\"></polyline>\n </svg>\n </button>\n `,\n styles: [`\n .ngx-back-to-top {\n position: fixed;\n bottom: 24px;\n right: 24px;\n width: 44px;\n height: 44px;\n border-radius: 50%;\n border: none;\n background: rgba(255, 255, 255, 0.8);\n backdrop-filter: blur(8px);\n -webkit-backdrop-filter: blur(8px);\n color: #0f172a;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: \n 0 10px 15px -3px rgba(0, 0, 0, 0.1),\n 0 4px 6px -4px rgba(0, 0, 0, 0.05);\n z-index: 99;\n opacity: 0;\n transform: translateY(12px) scale(0.9);\n pointer-events: none;\n transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);\n outline: none;\n padding: 0;\n }\n\n .ngx-back-to-top.visible {\n opacity: 1;\n transform: translateY(0) scale(1);\n pointer-events: auto;\n }\n\n .ngx-back-to-top:hover {\n background: #ffffff;\n transform: scale(1.06) translateY(-1px);\n box-shadow: \n 0 20px 25px -5px rgba(0, 0, 0, 0.15),\n 0 10px 10px -5px rgba(0, 0, 0, 0.06);\n }\n\n .ngx-back-to-top:active {\n transform: scale(0.98) translateY(0);\n }\n\n .ngx-back-to-top.dark {\n background: rgba(15, 23, 42, 0.85);\n border: 1px solid rgba(255, 255, 255, 0.08);\n color: #cbd5e1;\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);\n }\n\n .ngx-back-to-top.dark:hover {\n background: #1e293b;\n color: #ffffff;\n }\n\n .ngx-back-to-top:focus-visible {\n outline: 2px solid var(--primary-color, #3b82f6);\n outline-offset: 3px;\n }\n\n /* ── SVG Progress Ring ── */\n .ngx-back-to-top__svg {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n }\n\n .ngx-back-to-top__circle-bg {\n fill: none;\n stroke: rgba(0, 0, 0, 0.05);\n }\n\n .ngx-back-to-top.dark .ngx-back-to-top__circle-bg {\n stroke: rgba(255, 255, 255, 0.06);\n }\n\n .ngx-back-to-top__circle-progress {\n fill: none;\n stroke: var(--primary-color, #3b82f6);\n stroke-dasharray: 113.1; /* 2 * PI * 18 */\n transition: stroke-dashoffset 0.1s ease;\n }\n\n .arrow-up-icon {\n z-index: 2;\n transition: transform 0.2s ease;\n }\n\n .ngx-back-to-top:hover .arrow-up-icon {\n transform: translateY(-2px);\n }\n `]\n})\nexport class BackToTopComponent {\n // Inputs\n threshold = input<number>(300);\n target = input<string | HTMLElement | null>(null);\n theme = input<'light' | 'dark'>('light');\n showProgress = input<boolean>(true);\n\n // Internal state signals\n isVisible = signal<boolean>(false);\n scrollPercent = signal<number>(0);\n\n // Computed circular ring offset (113.1 is circumference of circle r=18)\n strokeDashoffset = computed(() => {\n const circ = 113.1;\n const ratio = this.scrollPercent() / 100;\n return circ * (1 - ratio);\n });\n\n constructor() {\n effect((onCleanup) => {\n const targetSel = this.target();\n this.threshold(); // Track threshold changes too\n\n let scrollEl: HTMLElement | Window | null = null;\n if (typeof targetSel === 'string') {\n scrollEl = document.querySelector(targetSel) as HTMLElement | null;\n } else if (targetSel instanceof HTMLElement) {\n scrollEl = targetSel;\n }\n\n if (!scrollEl) {\n scrollEl = window;\n }\n\n const listener = () => {\n this.checkScroll(scrollEl);\n };\n\n scrollEl.addEventListener('scroll', listener, { passive: true });\n this.checkScroll(scrollEl);\n\n onCleanup(() => {\n if (scrollEl) {\n scrollEl.removeEventListener('scroll', listener);\n }\n });\n }, { allowSignalWrites: true });\n }\n\n private checkScroll(scrollEl: HTMLElement | Window | null) {\n let scrollTop = 0;\n let scrollHeight = 0;\n let clientHeight = 0;\n\n if (scrollEl === window) {\n scrollTop = window.scrollY || document.documentElement.scrollTop;\n scrollHeight = document.documentElement.scrollHeight;\n clientHeight = document.documentElement.clientHeight;\n } else if (scrollEl instanceof HTMLElement) {\n scrollTop = scrollEl.scrollTop;\n scrollHeight = scrollEl.scrollHeight;\n clientHeight = scrollEl.clientHeight;\n }\n\n this.isVisible.set(scrollTop >= this.threshold());\n\n const maxScroll = scrollHeight - clientHeight;\n if (maxScroll > 0) {\n const percent = Math.round((scrollTop / maxScroll) * 100);\n this.scrollPercent.set(percent);\n } else {\n this.scrollPercent.set(0);\n }\n }\n\n scrollToTop() {\n const targetSel = this.target();\n let scrollEl: HTMLElement | Window | null = null;\n if (typeof targetSel === 'string') {\n scrollEl = document.querySelector(targetSel) as HTMLElement | null;\n } else if (targetSel instanceof HTMLElement) {\n scrollEl = targetSel;\n }\n if (!scrollEl) {\n scrollEl = window;\n }\n\n if (scrollEl === window) {\n window.scrollTo({ top: 0, behavior: 'smooth' });\n } else if (scrollEl instanceof HTMLElement) {\n scrollEl.scrollTo({ top: 0, behavior: 'smooth' });\n }\n }\n}\n","/*\n * Public API Surface — secondary entry point: ngx-core-components/navigation\n */\n\nexport { BreadcrumbComponent } from './breadcrumb/breadcrumb.component';\nexport type { BreadcrumbItem } from './breadcrumb/breadcrumb.component';\n\nexport { MenuComponent } from './menu/menu.component';\nexport type { MenuItem } from './menu/menu.component';\n\nexport { CommandPaletteComponent } from './command-palette/command-palette.component';\nexport type { CommandItem } from './command-palette/command-palette.component';\n\nexport { ContextMenuComponent } from './context-menu/context-menu.component';\nexport type { ContextMenuItem } from './context-menu/context-menu.component';\n\n// Back to Top Indicator\nexport { BackToTopComponent } from './back-to-top/back-to-top.component';\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAkHa,mBAAmB,CAAA;AAC9B,IAAA,KAAK,GAAG,KAAK,CAAmB,EAAE,CAAC;AACnC,IAAA,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC;AACtB,IAAA,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC;IACrB,SAAS,GAAG,MAAM,EAAkB;AAEpC,IAAA,WAAW,GAAG,MAAM,CAAU,IAAI,CAAC;;AAGnC,IAAA,cAAc,GAAG,QAAQ,CAAC,MAAK;AAC7B,QAAA,MAAM,GAAG,GAAG,IAAI,C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;;ACjDH;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-core-components-navigation.mjs","sources":["../../../projects/ngx-core-components/navigation/breadcrumb/breadcrumb.component.ts","../../../projects/ngx-core-components/navigation/menu/menu.component.ts","../../../projects/ngx-core-components/navigation/command-palette/command-palette.component.ts","../../../projects/ngx-core-components/navigation/context-menu/context-menu.component.ts","../../../projects/ngx-core-components/navigation/back-to-top/back-to-top.component.ts","../../../projects/ngx-core-components/navigation/public-api.ts","../../../projects/ngx-core-components/navigation/ngx-core-components-navigation.ts"],"sourcesContent":["import { Component, computed, input, output, signal } from '@angular/core';\n\nexport interface BreadcrumbItem {\n label: string;\n url?: string;\n icon?: string;\n}\n\n@Component({\n selector: 'ngx-breadcrumb',\n standalone: true,\n template: `\n <nav class=\"ngx-breadcrumb\" aria-label=\"breadcrumb\">\n @for (item of visibleItems(); track item.label; let i = $index; let last = $last) {\n @if (i > 0) { <span class=\"breadcrumb-separator\" aria-hidden=\"true\">{{ separator() }}</span> }\n @if (last) {\n <span class=\"breadcrumb-item active\" aria-current=\"page\">\n @if (item.icon) { <span class=\"breadcrumb-icon\">{{ item.icon }}</span> }\n {{ item.label }}\n </span>\n } @else if (item.url) {\n <a class=\"breadcrumb-item\" [href]=\"item.url\" (click)=\"onNav($event, item)\">\n @if (item.icon) { <span class=\"breadcrumb-icon\">{{ item.icon }}</span> }\n {{ item.label }}\n </a>\n } @else {\n <button class=\"breadcrumb-item breadcrumb-btn\" (click)=\"itemClick.emit(item)\">\n @if (item.icon) { <span class=\"breadcrumb-icon\">{{ item.icon }}</span> }\n {{ item.label }}\n </button>\n }\n }\n @if (shouldCollapse()) {\n <span class=\"breadcrumb-separator\" aria-hidden=\"true\">{{ separator() }}</span>\n <button\n class=\"breadcrumb-item breadcrumb-btn breadcrumb-ellipsis\"\n (click)=\"isCollapsed.set(false)\"\n aria-label=\"Show all breadcrumbs\"\n title=\"Show all breadcrumbs\"\n >&hellip;</button>\n <span class=\"breadcrumb-separator\" aria-hidden=\"true\">{{ separator() }}</span>\n @for (item of tailItems(); track item.label; let i = $index; let last = $last) {\n @if (last) {\n <span class=\"breadcrumb-item active\" aria-current=\"page\">\n @if (item.icon) { <span class=\"breadcrumb-icon\">{{ item.icon }}</span> }\n {{ item.label }}\n </span>\n } @else if (item.url) {\n <a class=\"breadcrumb-item\" [href]=\"item.url\" (click)=\"onNav($event, item)\">\n @if (item.icon) { <span class=\"breadcrumb-icon\">{{ item.icon }}</span> }\n {{ item.label }}\n </a>\n } @else {\n <button class=\"breadcrumb-item breadcrumb-btn\" (click)=\"itemClick.emit(item)\">\n @if (item.icon) { <span class=\"breadcrumb-icon\">{{ item.icon }}</span> }\n {{ item.label }}\n </button>\n }\n @if (!last) { <span class=\"breadcrumb-separator\" aria-hidden=\"true\">{{ separator() }}</span> }\n }\n }\n </nav>\n `,\n styles: [`\n :host { display: block; }\n .ngx-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; }\n .breadcrumb-separator {\n color: var(--ngx-breadcrumb-separator, #adb5bd);\n padding: 0 2px;\n opacity: 0.7;\n transition: opacity 0.2s ease;\n }\n .ngx-breadcrumb:hover .breadcrumb-separator { opacity: 1; }\n .breadcrumb-item {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n color: var(--ngx-breadcrumb-link, #1a73e8);\n text-decoration: none;\n padding: 2px 8px;\n border-radius: 12px;\n transition: background-color 0.2s ease, color 0.2s ease;\n }\n .breadcrumb-item:hover:not(.active) {\n background-color: var(--ngx-breadcrumb-hover-bg, rgba(26, 115, 232, 0.08));\n color: var(--ngx-breadcrumb-link-hover, #1557b0);\n }\n .breadcrumb-item:focus-visible {\n outline: 2px solid var(--ngx-breadcrumb-focus, #1a73e8);\n outline-offset: 2px;\n }\n .breadcrumb-item.active {\n color: var(--ngx-breadcrumb-active, #495057);\n background-color: var(--ngx-breadcrumb-active-bg, rgba(73, 80, 87, 0.08));\n cursor: default;\n font-weight: 600;\n }\n .breadcrumb-btn {\n background: none;\n border: none;\n cursor: pointer;\n font-family: inherit;\n font-size: inherit;\n padding: 2px 8px;\n }\n .breadcrumb-ellipsis {\n font-weight: 700;\n letter-spacing: 1px;\n min-width: 28px;\n justify-content: center;\n }\n .breadcrumb-icon { font-size: 14px; }\n `]\n})\nexport class BreadcrumbComponent {\n items = input<BreadcrumbItem[]>([]);\n separator = input('/');\n maxVisible = input(0);\n itemClick = output<BreadcrumbItem>();\n\n isCollapsed = signal<boolean>(true);\n\n /** True when collapse mode is active: maxVisible > 0, items exceed threshold, and user hasn't expanded */\n shouldCollapse = computed(() => {\n const max = this.maxVisible();\n return max > 0 && this.items().length > max + 1 && this.isCollapsed();\n });\n\n /** Items to render in the main @for loop: all items when not collapsing, or only the first item when collapsing */\n visibleItems = computed(() => {\n if (this.shouldCollapse()) {\n return this.items().slice(0, 1);\n }\n return this.items();\n });\n\n /** The trailing items shown after the ellipsis when collapsed */\n tailItems = computed(() => {\n if (this.shouldCollapse()) {\n return this.items().slice(-this.maxVisible());\n }\n return [];\n });\n\n onNav(event: MouseEvent, item: BreadcrumbItem): void { event.preventDefault(); this.itemClick.emit(item); }\n}\n\n","import { Component, input, output, signal, HostListener, computed } from '@angular/core';\n\nexport interface MenuItem {\n\tlabel?: string;\n\ticon?: string;\n\turl?: string;\n\tdisabled?: boolean;\n\tseparator?: boolean;\n\tchildren?: MenuItem[];\n}\n\n@Component({\n\tselector: 'ngx-menu',\n\tstandalone: true,\n\ttemplate: `\n\t\t<nav class=\"ngx-menu\" [class.menu-vertical]=\"orientation() === 'vertical'\" role=\"menubar\">\n\t\t\t@for (item of items(); track $index; let i = $index) {\n\t\t\t\t@if (item.separator) {\n\t\t\t\t\t<hr class=\"menu-separator\" />\n\t\t\t\t} @else {\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\"menu-item\"\n\t\t\t\t\t\t[class.has-children]=\"item.children && item.children.length > 0\"\n\t\t\t\t\t\t[class.open]=\"openIndex() === i\"\n\t\t\t\t\t\t[class.disabled]=\"item.disabled\"\n\t\t\t\t\t\t[class.active]=\"isActiveItem(item)\"\n\t\t\t\t\t\trole=\"menuitem\"\n\t\t\t\t\t\t[attr.tabindex]=\"item.disabled ? -1 : 0\"\n\t\t\t\t\t\t[attr.aria-haspopup]=\"item.children && item.children.length ? 'true' : null\"\n\t\t\t\t\t\t[attr.aria-expanded]=\"item.children && item.children.length ? (openIndex() === i) : null\"\n\t\t\t\t\t\t(click)=\"handleClick($event, item, i)\"\n\t\t\t\t\t\t(keydown.enter)=\"handleClick($event, item, i)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@if (item.icon) { <span class=\"menu-icon\">{{ item.icon }}</span> }\n\t\t\t\t\t\t<span class=\"menu-label\">{{ item.label }}</span>\n\t\t\t\t\t\t@if (item.children && item.children.length) {\n\t\t\t\t\t\t\t<span class=\"menu-arrow\">{{ orientation() === 'vertical' ? '&#8250;' : '&#9662;' }}</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@if (item.children && item.children.length && openIndex() === i) {\n\t\t\t\t\t\t\t<div class=\"menu-submenu\" role=\"menu\">\n\t\t\t\t\t\t\t\t@for (child of item.children; track $index) {\n\t\t\t\t\t\t\t\t\t@if (child.separator) {\n\t\t\t\t\t\t\t\t\t\t<hr class=\"menu-separator\" />\n\t\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t\t<div class=\"menu-subitem\" [class.disabled]=\"child.disabled\" [class.active]=\"isActiveItem(child)\" role=\"menuitem\" [attr.tabindex]=\"child.disabled ? -1 : 0\" (click)=\"handleSubClick($event, child)\">\n\t\t\t\t\t\t\t\t\t\t\t@if (child.icon) { <span class=\"menu-icon\">{{ child.icon }}</span> }\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"menu-label\">{{ child.label }}</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t}\n\t\t</nav>\n\t`,\n\tstyles: [`\n\t\t@keyframes submenuSlideIn {\n\t\t\tfrom { opacity: 0; transform: translateY(-6px); }\n\t\t\tto { opacity: 1; transform: translateY(0); }\n\t\t}\n\t\t:host { display: block; }\n\t\t.ngx-menu { display: flex; align-items: stretch; background: var(--ngx-menu-bg, #fff); border: 1px solid var(--ngx-menu-border, #dee2e6); border-radius: var(--ngx-menu-radius, 10px); overflow: visible; }\n\t\t.menu-vertical { flex-direction: column; }\n\t\t.menu-item { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 18px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ngx-menu-color, #212529); transition: background 0.2s ease, color 0.2s ease; white-space: nowrap; user-select: none; }\n\t\t.menu-item::after { content: ''; position: absolute; bottom: 0; left: 18px; right: 18px; height: 2.5px; background: linear-gradient(90deg, var(--ngx-menu-active-color, #1a73e8), #4fc3f7); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; pointer-events: none; }\n\t\t:host:not(.menu-vertical) .menu-item:hover:not(.disabled)::after,\n\t\t:host:not(.menu-vertical) .menu-item.active::after { transform: scaleX(1); }\n\t\t.menu-vertical .menu-item::after { display: none; }\n\t\t.menu-item:hover:not(.disabled), .menu-item.open { background: var(--ngx-menu-hover-bg, rgba(26,115,232,0.06)); color: var(--ngx-menu-active-color, #1a73e8); }\n\t\t.menu-item.disabled { opacity: 0.5; cursor: not-allowed; }\n\t\t.menu-item:focus-visible, .menu-subitem:focus-visible { outline: 2px solid var(--ngx-menu-active-color, #1a73e8); outline-offset: -2px; border-radius: 4px; }\n\t\t.menu-icon { font-size: 16px; flex-shrink: 0; display: inline-flex; align-items: center; }\n\t\t.menu-label { flex: 1; }\n\t\t.menu-arrow { margin-left: auto; padding-left: 10px; font-size: 11px; transition: transform 0.2s ease; }\n\t\t.menu-item.open > .menu-arrow { transform: rotate(180deg); }\n\t\t.menu-vertical .menu-item.open > .menu-arrow { transform: rotate(0deg); }\n\t\t.menu-separator { border: none; border-top: 1px solid var(--ngx-menu-separator, #dee2e6); margin: 4px 0; }\n\t\t.menu-submenu { position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--ngx-menu-submenu-bg, rgba(255,255,255,0.82)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--ngx-menu-border, rgba(222,226,230,0.7)); border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 12px 36px rgba(0,0,0,0.10); z-index: 1000; padding: 4px 0; animation: submenuSlideIn 0.18s ease-out; }\n\t\t.menu-vertical .menu-submenu { top: 0; left: 100%; }\n\t\t.menu-subitem { display: flex; align-items: center; gap: 10px; padding: 8px 18px; font-size: 13px; cursor: pointer; color: var(--ngx-menu-color, #212529); transition: background 0.2s ease, color 0.2s ease; white-space: nowrap; border-radius: 6px; margin: 0 4px; }\n\t\t.menu-subitem:hover:not(.disabled) { background: var(--ngx-menu-hover-bg, rgba(26,115,232,0.06)); color: var(--ngx-menu-active-color, #1a73e8); }\n\t\t.menu-item.active, .menu-subitem.active { background: linear-gradient(135deg, var(--ngx-menu-active-bg, rgba(232,240,254,0.85)), rgba(79,195,247,0.15)); color: var(--ngx-menu-active-color, #1a73e8); font-weight: 600; }\n\t`]\n})\nexport class MenuComponent {\n\titems = input<MenuItem[]>([]);\n\torientation = input<'horizontal' | 'vertical'>('horizontal');\n\t/** Label or URL of the currently active item — used to highlight the active menu entry. */\n\tactiveItem = input<string>('');\n\topenIndex = signal<number | null>(null);\n\titemClick = output<MenuItem>();\n\n\tisActiveItem(item: MenuItem): boolean {\n\t\tconst active = this.activeItem();\n\t\tif (!active) return false;\n\t\treturn item.label === active || item.url === active;\n\t}\n\n\thandleClick(event: Event, item: MenuItem, i: number): void {\n\t\tif (item.disabled) return;\n\t\tevent.stopPropagation();\n\t\tif (item.children && item.children.length) { this.openIndex.set(this.openIndex() === i ? null : i); }\n\t\telse { this.itemClick.emit(item); this.openIndex.set(null); }\n\t}\n\n\thandleSubClick(event: Event, child: MenuItem): void {\n\t\tif (child.disabled) return;\n\t\tevent.stopPropagation();\n\t\tthis.itemClick.emit(child);\n\t\tthis.openIndex.set(null);\n\t}\n\n\t@HostListener('document:click')\n\tcloseAll(): void { this.openIndex.set(null); }\n}\n","import { Component, input, signal, computed, HostListener, output, effect, ElementRef, ViewChild } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nexport interface CommandItem {\n id: string;\n label: string;\n desc?: string;\n shortcut?: string;\n icon?: string;\n category?: string;\n}\n\n@Component({\n selector: 'ngx-command-palette',\n standalone: true,\n imports: [CommonModule],\n template: `\n <!-- Global Overlay Backdrop -->\n @if (isOpen()) {\n <div class=\"ngx-palette-overlay\" (click)=\"closePalette()\">\n <div\n class=\"ngx-palette-modal\"\n (click)=\"$event.stopPropagation()\"\n >\n <!-- Search Header input console -->\n <div class=\"ngx-palette-header\">\n <span class=\"search-icon\">🔍</span>\n <input\n #searchInput\n type=\"text\"\n class=\"palette-input\"\n [placeholder]=\"placeholder()\"\n [value]=\"filterQuery()\"\n (input)=\"onSearchInput($event)\"\n />\n <span class=\"esc-badge\">ESC</span>\n </div>\n\n <!-- Command results feed -->\n <div class=\"ngx-palette-results\">\n @if (groupedResults().length === 0) {\n <div class=\"empty-state\">No matching commands found.</div>\n }\n\n @for (group of groupedResults(); track group.category) {\n <div class=\"category-group\">\n @if (group.category) {\n <div class=\"category-header\">{{ group.category }}</div>\n }\n\n @for (cmd of group.items; track cmd.id) {\n <div\n class=\"command-row\"\n [class.active]=\"activeItem()?.id === cmd.id\"\n (mouseenter)=\"activeItem.set(cmd)\"\n (click)=\"executeCommand(cmd)\"\n >\n <div class=\"command-start\">\n @if (cmd.icon) {\n <span class=\"command-icon\">{{ cmd.icon }}</span>\n }\n <div class=\"command-details\">\n <span class=\"command-label\">{{ cmd.label }}</span>\n @if (cmd.desc) {\n <span class=\"command-desc\">{{ cmd.desc }}</span>\n }\n </div>\n </div>\n\n @if (cmd.shortcut) {\n <span class=\"command-shortcut\">{{ cmd.shortcut }}</span>\n }\n </div>\n }\n </div>\n }\n </div>\n\n <!-- Console Footer help actions -->\n <div class=\"ngx-palette-footer\">\n <div class=\"help-item\"><span>↑↓</span> Navigate</div>\n <div class=\"help-item\"><span>↵</span> Select</div>\n <div class=\"help-item\"><span>Ctrl + K</span> Toggle Console</div>\n </div>\n </div>\n </div>\n }\n `,\n styles: [`\n .ngx-palette-overlay {\n position: fixed;\n inset: 0;\n background: rgba(12, 19, 36, 0.45);\n backdrop-filter: blur(8px);\n z-index: 9999;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n padding-top: 15vh;\n animation: fade-in 0.18s cubic-bezier(0.4, 0, 0.2, 1);\n }\n\n @keyframes fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n\n /* Palette Modal container box */\n .ngx-palette-modal {\n width: 100%;\n max-width: 600px;\n background: var(--bg-secondary, #ffffff);\n border: 1px solid var(--border-color, #e2e8f0);\n border-radius: 12px;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);\n display: flex;\n flex-direction: column;\n overflow: hidden;\n font-family: inherit;\n animation: scale-up 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);\n }\n\n @keyframes scale-up {\n from { transform: scale(0.95) translateY(-10px); }\n to { transform: scale(1) translateY(0); }\n }\n\n /* Search Header console input */\n .ngx-palette-header {\n display: flex;\n align-items: center;\n padding: 14px 18px;\n border-bottom: 1px solid var(--border-color, #e2e8f0);\n gap: 12px;\n }\n .search-icon {\n font-size: 16px;\n color: var(--text-secondary, #64748b);\n }\n .palette-input {\n flex: 1;\n border: none;\n background: transparent;\n outline: none;\n font-size: 14px;\n color: var(--text-primary, #0f172a);\n font-family: inherit;\n }\n .palette-input::placeholder {\n color: var(--text-secondary, #64748b);\n opacity: 0.8;\n }\n .esc-badge {\n font-size: 10px;\n font-weight: 700;\n color: var(--text-secondary, #64748b);\n background: var(--border-light, #f1f5f9);\n padding: 3px 6px;\n border-radius: 4px;\n border: 1px solid var(--border-color, #e2e8f0);\n box-shadow: var(--shadow-sm);\n }\n\n /* Command Results List block */\n .ngx-palette-results {\n max-height: 320px;\n overflow-y: auto;\n padding: 8px 0;\n }\n\n .empty-state {\n padding: 24px;\n text-align: center;\n color: var(--text-secondary, #64748b);\n font-size: 13px;\n font-style: italic;\n }\n\n /* Category Group titles */\n .category-group {\n display: flex;\n flex-direction: column;\n }\n .category-header {\n padding: 8px 18px;\n font-size: 10px;\n font-weight: 800;\n text-transform: uppercase;\n letter-spacing: 0.8px;\n color: var(--text-secondary, #64748b);\n opacity: 0.85;\n }\n\n /* Single Command row items */\n .command-row {\n padding: 10px 18px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n transition: background-color 0.12s ease;\n gap: 16px;\n }\n .command-row.active {\n background: var(--primary-glow, rgba(79, 70, 229, 0.08));\n }\n \n .command-start {\n display: flex;\n align-items: center;\n gap: 12px;\n min-width: 0;\n }\n .command-icon {\n font-size: 16px;\n line-height: 1;\n }\n .command-details {\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n .command-label {\n font-size: 13px;\n font-weight: 600;\n color: var(--text-primary, #0f172a);\n }\n .command-row.active .command-label {\n color: var(--primary-color, #4f46e5);\n }\n .command-desc {\n font-size: 11px;\n color: var(--text-secondary, #64748b);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n \n /* Shortcut keycaps style */\n .command-shortcut {\n font-size: 10px;\n font-weight: 600;\n color: var(--text-secondary, #64748b);\n background: var(--border-light, #f1f5f9);\n border: 1px solid var(--border-color, #e2e8f0);\n padding: 2px 6px;\n border-radius: 4px;\n font-family: monospace;\n }\n\n /* Footer help commands guides */\n .ngx-palette-footer {\n display: flex;\n padding: 12px 18px;\n background: var(--border-light, #f1f5f9);\n border-top: 1px solid var(--border-color, #e2e8f0);\n gap: 18px;\n }\n .help-item {\n font-size: 11px;\n font-weight: 500;\n color: var(--text-secondary, #64748b);\n display: flex;\n align-items: center;\n gap: 6px;\n }\n .help-item span {\n background: var(--bg-secondary, #ffffff);\n border: 1px solid var(--border-color, #e2e8f0);\n padding: 1px 4px;\n border-radius: 3px;\n font-weight: 700;\n font-size: 9px;\n }\n `]\n})\nexport class CommandPaletteComponent {\n // Inputs configs\n commands = input.required<CommandItem[]>();\n placeholder = input<string>('Type a command or search...');\n\n // Output emissions\n commandSelected = output<CommandItem>();\n\n @ViewChild('searchInput') searchInput!: ElementRef<HTMLInputElement>;\n\n // Open status logic\n isOpen = signal<boolean>(false);\n filterQuery = signal<string>('');\n\n // Currently focused item in keyboard selection\n activeItem = signal<CommandItem | null>(null);\n\n // Reactive effect to focus the search input field upon dialog opens\n constructor() {\n effect(() => {\n if (this.isOpen()) {\n setTimeout(() => {\n this.searchInput?.nativeElement?.focus();\n }, 50);\n }\n });\n }\n\n // Filter commands by search query\n filteredCommands = computed(() => {\n const query = this.filterQuery().toLowerCase().trim();\n if (!query) return this.commands();\n\n return this.commands().filter(c =>\n c.label.toLowerCase().includes(query) ||\n (c.desc && c.desc.toLowerCase().includes(query)) ||\n (c.category && c.category.toLowerCase().includes(query))\n );\n });\n\n // Group commands by category computed signals\n groupedResults = computed(() => {\n const list = this.filteredCommands();\n const groups: { category: string; items: CommandItem[] }[] = [];\n\n list.forEach(item => {\n const cat = item.category || 'General';\n let grp = groups.find(g => g.category === cat);\n if (!grp) {\n grp = { category: cat, items: [] };\n groups.push(grp);\n }\n grp.items.push(item);\n });\n\n return groups;\n });\n\n // Flat list of current results for keyboard navigation indices mappings\n flatResultsList = computed(() => {\n const groups = this.groupedResults();\n const flat: CommandItem[] = [];\n groups.forEach(g => flat.push(...g.items));\n return flat;\n });\n\n // Watch key inputs reactive alignment\n onSearchInput(event: Event): void {\n const query = (event.target as HTMLInputElement).value;\n this.filterQuery.set(query);\n // Reset active item to first result in filtered list\n const results = this.flatResultsList();\n this.activeItem.set(results.length > 0 ? results[0] : null);\n }\n\n openPalette(): void {\n this.filterQuery.set('');\n const results = this.commands();\n this.activeItem.set(results.length > 0 ? results[0] : null);\n this.isOpen.set(true);\n }\n\n closePalette(): void {\n this.isOpen.set(false);\n }\n\n toggleOpen(): void {\n if (this.isOpen()) {\n this.closePalette();\n } else {\n this.openPalette();\n }\n }\n\n executeCommand(cmd: CommandItem): void {\n this.commandSelected.emit(cmd);\n this.closePalette();\n }\n\n // Global keypress watchers\n @HostListener('document:keydown', ['$event'])\n handleKeyDown(event: KeyboardEvent): void {\n // Ctrl + K or Cmd + K triggers console toggle\n if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'k') {\n event.preventDefault();\n this.toggleOpen();\n return;\n }\n\n if (!this.isOpen()) return;\n\n const flatList = this.flatResultsList();\n if (flatList.length === 0) {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.closePalette();\n }\n return;\n }\n\n const currentActive = this.activeItem();\n let idx = currentActive ? flatList.findIndex(c => c.id === currentActive.id) : -1;\n\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n idx = (idx + 1) % flatList.length;\n const nextItem = flatList[idx];\n this.activeItem.set(nextItem);\n this.scrollToActiveItem();\n } else if (event.key === 'ArrowUp') {\n event.preventDefault();\n idx = (idx - 1 + flatList.length) % flatList.length;\n const prevItem = flatList[idx];\n this.activeItem.set(prevItem);\n this.scrollToActiveItem();\n } else if (event.key === 'Enter') {\n event.preventDefault();\n if (currentActive) {\n this.executeCommand(currentActive);\n }\n } else if (event.key === 'Escape') {\n event.preventDefault();\n this.closePalette();\n }\n }\n\n private scrollToActiveItem(): void {\n setTimeout(() => {\n const activeEl = document.querySelector('.ngx-palette-modal .command-row.active');\n if (activeEl) {\n activeEl.scrollIntoView({ block: 'nearest', inline: 'nearest' });\n }\n }, 0);\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { Component, input, output, signal, effect, HostListener } from '@angular/core';\n\nexport interface ContextMenuItem {\n id: string;\n label: string;\n icon?: string;\n disabled?: boolean;\n danger?: boolean;\n separator?: boolean;\n shortcut?: string;\n children?: ContextMenuItem[];\n}\n\n@Component({\n selector: 'ngx-context-menu',\n standalone: true,\n imports: [CommonModule],\n template: `\n @if (open()) {\n <div\n class=\"ngx-context-menu-backdrop\"\n (click)=\"close()\"\n (contextmenu)=\"$event.preventDefault(); close()\"\n ></div>\n <div\n class=\"ngx-context-menu\"\n role=\"menu\"\n [style.left.px]=\"x()\"\n [style.top.px]=\"y()\"\n [style.min-width.px]=\"width()\"\n (click)=\"$event.stopPropagation()\"\n >\n <ng-container *ngTemplateOutlet=\"menuList; context: { items: items() }\"></ng-container>\n </div>\n }\n\n <ng-template #menuList let-items=\"items\">\n @for (item of items; track item.id; let i = $index) {\n @if (item.separator) {\n <div class=\"menu-separator\" role=\"separator\"></div>\n } @else {\n <div class=\"menu-entry\">\n <button\n class=\"menu-item\"\n type=\"button\"\n role=\"menuitem\"\n [class.danger]=\"item.danger\"\n [class.has-children]=\"item.children?.length\"\n [class.focused]=\"focusedIndex() === flatIndexOf(item)\"\n [disabled]=\"item.disabled\"\n (click)=\"selectItem(item, $event)\"\n >\n @if (item.icon) { <span class=\"menu-icon\">{{ item.icon }}</span> }\n <span class=\"menu-label\">{{ item.label }}</span>\n @if (item.shortcut) { <span class=\"menu-shortcut\">{{ item.shortcut }}</span> }\n @if (item.children?.length) { <span class=\"menu-arrow\">&gt;</span> }\n </button>\n @if (item.children?.length) {\n <div class=\"submenu\" role=\"menu\">\n <ng-container *ngTemplateOutlet=\"menuList; context: { items: item.children }\"></ng-container>\n </div>\n }\n </div>\n }\n }\n </ng-template>\n `,\n styles: [`\n @keyframes contextMenuFadeIn {\n from { opacity: 0; transform: scale(0.95); }\n to { opacity: 1; transform: scale(1); }\n }\n\n .ngx-context-menu-backdrop { position: fixed; inset: 0; z-index: 9998; background: transparent; }\n .ngx-context-menu {\n position: fixed; z-index: 9999; padding: 6px;\n border: 1px solid var(--border-color, rgba(217, 222, 232, 0.6));\n border-radius: 10px;\n background: var(--bg-secondary, rgba(255, 255, 255, 0.82));\n backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);\n box-shadow:\n 0 4px 6px -1px rgba(15, 23, 42, 0.06),\n 0 10px 15px -3px rgba(15, 23, 42, 0.08),\n 0 20px 40px -4px rgba(15, 23, 42, 0.12);\n color: var(--text-primary, #111827);\n font-family: var(--ngx-font-family, inherit);\n animation: contextMenuFadeIn 0.18s cubic-bezier(0.4, 0, 0.2, 1);\n }\n .menu-entry { position: relative; }\n .menu-item {\n position: relative; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 9px;\n width: 100%; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer;\n font: inherit; font-size: 13px; line-height: 1.2; padding: 8px 10px; text-align: left; white-space: nowrap;\n transition: background-color 0.15s ease, color 0.15s ease;\n }\n .menu-item:hover:not(:disabled), .menu-item.focused:not(:disabled) { background: var(--border-light, #f3f6fb); outline: none; }\n .menu-item:focus-visible { background: var(--border-light, #f3f6fb); outline: 2px solid var(--primary-color, #4f46e5); outline-offset: -2px; border-radius: 6px; }\n .menu-item:disabled { color: var(--text-secondary, #94a3b8); cursor: not-allowed; }\n .menu-item.danger { color: var(--ngx-danger, #dc2626); }\n .menu-item.danger:hover:not(:disabled), .menu-item.danger.focused:not(:disabled) { background: rgba(220, 38, 38, 0.08); }\n .menu-icon { width: 16px; text-align: center; color: var(--text-secondary, #64748b); }\n .menu-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }\n .menu-shortcut { font-size: 10px; font-weight: 600; color: var(--text-secondary, #64748b); background: var(--border-light, #f1f5f9); border: 1px solid var(--border-color, #e2e8f0); padding: 2px 6px; border-radius: 4px; font-family: monospace; margin-left: auto; }\n .menu-arrow { color: var(--text-secondary, #64748b); }\n .menu-separator { height: 1px; margin: 5px 4px; background: var(--border-color, #e5e7eb); }\n .submenu {\n display: none; position: absolute; left: calc(100% - 4px); top: -6px; min-width: 190px; padding: 6px;\n border: 1px solid var(--border-color, rgba(217, 222, 232, 0.6));\n border-radius: 10px;\n background: var(--bg-secondary, rgba(255, 255, 255, 0.82));\n backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);\n box-shadow:\n 0 4px 6px -1px rgba(15, 23, 42, 0.06),\n 0 10px 15px -3px rgba(15, 23, 42, 0.08),\n 0 20px 40px -4px rgba(15, 23, 42, 0.12);\n animation: contextMenuFadeIn 0.18s cubic-bezier(0.4, 0, 0.2, 1);\n }\n .menu-entry:hover > .submenu, .menu-entry:focus-within > .submenu { display: block; }\n `]\n})\nexport class ContextMenuComponent {\n items = input<ContextMenuItem[]>([]);\n open = input(false);\n x = input(0);\n y = input(0);\n width = input(200);\n\n itemSelected = output<ContextMenuItem>();\n openChange = output<boolean>();\n\n /** Tracks the focused item index for keyboard navigation (-1 = none). */\n focusedIndex = signal<number>(-1);\n\n constructor() {\n // Reset focused index whenever the menu opens or closes\n effect(() => {\n this.open(); // subscribe to changes\n this.focusedIndex.set(-1);\n });\n }\n\n /** Returns the flat index of an item across all top-level items (excluding separators). */\n flatIndexOf(item: ContextMenuItem): number {\n return this.navigableItems().indexOf(item);\n }\n\n /** Flat list of navigable (non-separator) top-level items. */\n private navigableItems(): ContextMenuItem[] {\n return this.items().filter(i => !i.separator);\n }\n\n /** Navigable and non-disabled items indices used for arrow-key movement. */\n private navigableIndices(): number[] {\n return this.navigableItems()\n .map((item, idx) => (!item.disabled ? idx : -1))\n .filter(idx => idx !== -1);\n }\n\n @HostListener('document:keydown', ['$event'])\n handleKeyDown(event: KeyboardEvent): void {\n if (!this.open()) return;\n\n const indices = this.navigableIndices();\n if (indices.length === 0) {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.close();\n }\n return;\n }\n\n const current = this.focusedIndex();\n\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n const nextIdx = indices.find(i => i > current) ?? indices[0];\n this.focusedIndex.set(nextIdx);\n } else if (event.key === 'ArrowUp') {\n event.preventDefault();\n const reversed = [...indices].reverse();\n const prevIdx = reversed.find(i => i < current) ?? reversed[0];\n this.focusedIndex.set(prevIdx);\n } else if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n const items = this.navigableItems();\n if (current >= 0 && current < items.length) {\n const item = items[current];\n if (!item.disabled && !item.children?.length) {\n this.itemSelected.emit(item);\n this.close();\n }\n }\n } else if (event.key === 'Escape') {\n event.preventDefault();\n this.close();\n }\n }\n\n selectItem(item: ContextMenuItem, event: MouseEvent): void {\n event.stopPropagation();\n if (item.disabled || item.children?.length) return;\n this.itemSelected.emit(item);\n this.close();\n }\n\n close(): void {\n this.openChange.emit(false);\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n signal,\n computed,\n effect,\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'ngx-back-to-top',\n standalone: true,\n imports: [CommonModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <button\n class=\"ngx-back-to-top\"\n [class.visible]=\"isVisible()\"\n [class.dark]=\"theme() === 'dark'\"\n (click)=\"scrollToTop()\"\n aria-label=\"Back to top\"\n >\n @if (showProgress()) {\n <svg class=\"ngx-back-to-top__svg\" viewBox=\"0 0 40 40\">\n <circle\n class=\"ngx-back-to-top__circle-bg\"\n cx=\"20\"\n cy=\"20\"\n r=\"18\"\n stroke-width=\"2.5\"\n />\n <circle\n class=\"ngx-back-to-top__circle-progress\"\n cx=\"20\"\n cy=\"20\"\n r=\"18\"\n stroke-width=\"2.5\"\n [style.strokeDashoffset]=\"strokeDashoffset()\"\n stroke-linecap=\"round\"\n transform=\"rotate(-90 20 20)\"\n />\n </svg>\n }\n\n <svg class=\"arrow-up-icon\" viewBox=\"0 0 24 24\" width=\"18\" height=\"18\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"3\">\n <polyline points=\"18 15 12 9 6 15\"></polyline>\n </svg>\n </button>\n `,\n styles: [`\n .ngx-back-to-top {\n position: fixed;\n bottom: 24px;\n right: 24px;\n width: 44px;\n height: 44px;\n border-radius: 50%;\n border: none;\n background: rgba(255, 255, 255, 0.8);\n backdrop-filter: blur(8px);\n -webkit-backdrop-filter: blur(8px);\n color: #0f172a;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: \n 0 10px 15px -3px rgba(0, 0, 0, 0.1),\n 0 4px 6px -4px rgba(0, 0, 0, 0.05);\n z-index: 99;\n opacity: 0;\n transform: translateY(12px) scale(0.9);\n pointer-events: none;\n transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);\n outline: none;\n padding: 0;\n }\n\n .ngx-back-to-top.visible {\n opacity: 1;\n transform: translateY(0) scale(1);\n pointer-events: auto;\n }\n\n .ngx-back-to-top:hover {\n background: #ffffff;\n transform: scale(1.06) translateY(-1px);\n box-shadow: \n 0 20px 25px -5px rgba(0, 0, 0, 0.15),\n 0 10px 10px -5px rgba(0, 0, 0, 0.06);\n }\n\n .ngx-back-to-top:active {\n transform: scale(0.98) translateY(0);\n }\n\n .ngx-back-to-top.dark {\n background: rgba(15, 23, 42, 0.85);\n border: 1px solid rgba(255, 255, 255, 0.08);\n color: #cbd5e1;\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);\n }\n\n .ngx-back-to-top.dark:hover {\n background: #1e293b;\n color: #ffffff;\n }\n\n .ngx-back-to-top:focus-visible {\n outline: 2px solid var(--primary-color, #3b82f6);\n outline-offset: 3px;\n }\n\n /* ── SVG Progress Ring ── */\n .ngx-back-to-top__svg {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n }\n\n .ngx-back-to-top__circle-bg {\n fill: none;\n stroke: rgba(0, 0, 0, 0.05);\n }\n\n .ngx-back-to-top.dark .ngx-back-to-top__circle-bg {\n stroke: rgba(255, 255, 255, 0.06);\n }\n\n .ngx-back-to-top__circle-progress {\n fill: none;\n stroke: var(--primary-color, #3b82f6);\n stroke-dasharray: 113.1; /* 2 * PI * 18 */\n transition: stroke-dashoffset 0.1s ease;\n }\n\n .arrow-up-icon {\n z-index: 2;\n transition: transform 0.2s ease;\n }\n\n .ngx-back-to-top:hover .arrow-up-icon {\n transform: translateY(-2px);\n }\n `]\n})\nexport class BackToTopComponent {\n // Inputs\n threshold = input<number>(300);\n target = input<string | HTMLElement | null>(null);\n theme = input<'light' | 'dark'>('light');\n showProgress = input<boolean>(true);\n\n // Internal state signals\n isVisible = signal<boolean>(false);\n scrollPercent = signal<number>(0);\n\n // Computed circular ring offset (113.1 is circumference of circle r=18)\n strokeDashoffset = computed(() => {\n const circ = 113.1;\n const ratio = this.scrollPercent() / 100;\n return circ * (1 - ratio);\n });\n\n constructor() {\n effect((onCleanup) => {\n if (typeof window === 'undefined') return;\n const targetSel = this.target();\n this.threshold(); // Track threshold changes too\n\n let scrollEl: HTMLElement | Window | null = null;\n if (typeof document !== 'undefined') {\n if (typeof targetSel === 'string') {\n scrollEl = document.querySelector(targetSel) as HTMLElement | null;\n } else if (targetSel instanceof HTMLElement) {\n scrollEl = targetSel;\n }\n }\n\n if (!scrollEl) {\n scrollEl = window;\n }\n\n const listener = () => {\n this.checkScroll(scrollEl);\n };\n\n scrollEl.addEventListener('scroll', listener, { passive: true });\n this.checkScroll(scrollEl);\n\n onCleanup(() => {\n if (scrollEl) {\n scrollEl.removeEventListener('scroll', listener);\n }\n });\n }, { allowSignalWrites: true });\n }\n\n private checkScroll(scrollEl: HTMLElement | Window | null) {\n let scrollTop = 0;\n let scrollHeight = 0;\n let clientHeight = 0;\n\n if (typeof window !== 'undefined' && scrollEl === window) {\n scrollTop = window.scrollY || document.documentElement.scrollTop;\n scrollHeight = document.documentElement.scrollHeight;\n clientHeight = document.documentElement.clientHeight;\n } else if (scrollEl instanceof HTMLElement) {\n scrollTop = scrollEl.scrollTop;\n scrollHeight = scrollEl.scrollHeight;\n clientHeight = scrollEl.clientHeight;\n }\n\n this.isVisible.set(scrollTop >= this.threshold());\n\n const maxScroll = scrollHeight - clientHeight;\n if (maxScroll > 0) {\n const percent = Math.round((scrollTop / maxScroll) * 100);\n this.scrollPercent.set(percent);\n } else {\n this.scrollPercent.set(0);\n }\n }\n\n scrollToTop() {\n const targetSel = this.target();\n let scrollEl: HTMLElement | Window | null = null;\n if (typeof document !== 'undefined') {\n if (typeof targetSel === 'string') {\n scrollEl = document.querySelector(targetSel) as HTMLElement | null;\n } else if (targetSel instanceof HTMLElement) {\n scrollEl = targetSel;\n }\n }\n if (!scrollEl && typeof window !== 'undefined') {\n scrollEl = window;\n }\n\n if (typeof window !== 'undefined' && scrollEl === window) {\n window.scrollTo({ top: 0, behavior: 'smooth' });\n } else if (scrollEl instanceof HTMLElement) {\n scrollEl.scrollTo({ top: 0, behavior: 'smooth' });\n }\n }\n}\n","/*\n * Public API Surface — secondary entry point: ngx-core-components/navigation\n */\n\nexport { BreadcrumbComponent } from './breadcrumb/breadcrumb.component';\nexport type { BreadcrumbItem } from './breadcrumb/breadcrumb.component';\n\nexport { MenuComponent } from './menu/menu.component';\nexport type { MenuItem } from './menu/menu.component';\n\nexport { CommandPaletteComponent } from './command-palette/command-palette.component';\nexport type { CommandItem } from './command-palette/command-palette.component';\n\nexport { ContextMenuComponent } from './context-menu/context-menu.component';\nexport type { ContextMenuItem } from './context-menu/context-menu.component';\n\n// Back to Top Indicator\nexport { BackToTopComponent } from './back-to-top/back-to-top.component';\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAkHa,mBAAmB,CAAA;AAC9B,IAAA,KAAK,GAAG,KAAK,CAAmB,EAAE,CAAC;AACnC,IAAA,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC;AACtB,IAAA,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC;IACrB,SAAS,GAAG,MAAM,EAAkB;AAEpC,IAAA,WAAW,GAAG,MAAM,CAAU,IAAI,CAAC;;AAGnC,IAAA,cAAc,GAAG,QAAQ,CAAC,MAAK;AAC7B,QAAA,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UAAA,EAAA,CAAA;kBA5I9B,SAAS;+BACE,iBAAiB,EAAA,UAAA,EACf,IAAI,EAAA,OAAA,EACP,CAAC,YAAY,CAAC,EAAA,eAAA,EACN,uBAAuB,CAAC,MAAM,EAAA,QAAA,EACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,qgDAAA,CAAA,EAAA;;;ACjDH;;AAEG;;ACFH;;AAEG;;;;"}
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { input, inject, ElementRef, Renderer2, HostListener, Directive, signal, ChangeDetectionStrategy, Component } from '@angular/core';
3
- export { AutocompleteComponent, CheckboxComponent, ColorPickerComponent, DatePickerComponent, DateRangePickerComponent, DropdownComponent, FilePreviewComponent, FileUploadComponent, FormBuilderComponent, MultiSelectComponent, NumericTextBoxComponent, RadioGroupComponent, RatingComponent, SegmentedControlComponent, SignaturePadComponent, SliderComponent, SwitchComponent, TagInputComponent, TextBoxComponent, TextareaComponent, TimePickerComponent } from 'ngx-core-components/inputs';
3
+ export { AutocompleteComponent, CheckboxComponent, ColorPickerComponent, DatePickerComponent, DateRangePickerComponent, DropdownComponent, FilePreviewComponent, FileUploadComponent, FormBuilderComponent, FormDesignerComponent, MultiSelectComponent, NumericTextBoxComponent, RadioGroupComponent, RatingComponent, SegmentedControlComponent, SignaturePadComponent, SliderComponent, SwitchComponent, TagInputComponent, TextBoxComponent, TextareaComponent, TimePickerComponent } from 'ngx-core-components/inputs';
4
4
  export { AdjacencyMatrixComponent, AreaChartComponent, BarChartComponent, BiplotComponent, BoxPlotChartComponent, BubbleChartComponent, BulletChartComponent, CHART_COLORS, CandlestickChartComponent, ChordDiagramComponent, ComboChartComponent, DependencyType, DependencyWheelComponent, DumbbellChartComponent, FunnelChartComponent, GanttChartComponent, GanttScaleService, GaugeChartComponent, HeatmapChartComponent, KagiChartComponent, LineChartComponent, LollipopChartComponent, MarimekkoChartComponent, ParetoChartComponent, PieChartComponent, PointFigureChartComponent, PolarAreaChartComponent, RadarChartComponent, RadialBarChartComponent, RenkoChartComponent, RidgelineChartComponent, SankeyChartComponent, ScatterPlotComponent, SlopeChartComponent, SparklineComponent, SunburstChartComponent, TreemapChartComponent, ViolinPlotComponent, WaterfallChartComponent, WindRoseChartComponent, ZoomLevel } from 'ngx-core-components/charts';
5
5
  export { DataGridComponent, NgxGridCellTemplateDirective, NgxGridEditCellTemplateDirective, NgxGridFooterTemplateDirective, NgxGridHeaderTemplateDirective, PivotGridComponent } from 'ngx-core-components/grid';
6
6
  export { CalendarComponent, ImageCompareComponent, JsonViewerComponent, KanbanComponent, KeyValueListComponent, ListViewComponent, NgxTimelineCardTemplateDirective, NgxTimelineMarkerTemplateDirective, OrgChartComponent, SchedulerComponent, TimelineComponent, TreeViewComponent, VirtualListComponent } from 'ngx-core-components/views';
@@ -10,7 +10,7 @@ export { AccordionComponent, CardComponent, CarouselComponent, DashboardLayoutCo
10
10
  export { AvatarComponent, AvatarGroupComponent, BadgeComponent, CountdownComponent, EmptyStateComponent, NotificationContainerComponent, NotificationService, ProgressBarComponent, SkeletonComponent, StatCardComponent } from 'ngx-core-components/feedback';
11
11
  export { BackToTopComponent, BreadcrumbComponent, CommandPaletteComponent, ContextMenuComponent, MenuComponent } from 'ngx-core-components/navigation';
12
12
  export { BarcodeComponent, QrCodeComponent } from 'ngx-core-components/barcodes';
13
- export { AIChatComponent, AIChatWidgetComponent, AIPromptEditorComponent } from 'ngx-core-components/ai';
13
+ export { AIChatComponent, AIChatWidgetComponent, AIPromptEditorComponent, NgxWebLlmService } from 'ngx-core-components/ai';
14
14
  export { DEFAULT_EN_I18N, NGX_CORE_I18N, provideNgxI18n } from 'ngx-core-components/i18n';
15
15
 
16
16
  class TooltipDirective {
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-core-components.mjs","sources":["../../../projects/ngx-core-components/src/lib/tooltip/tooltip.directive.ts","../../../projects/ngx-core-components/src/lib/tooltip/popover.component.ts","../../../projects/ngx-core-components/src/public-api.ts","../../../projects/ngx-core-components/src/ngx-core-components.ts"],"sourcesContent":["import {\n Directive, input, signal, ElementRef, HostListener, inject,\n computed, effect, Renderer2\n} from '@angular/core';\n\nexport type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';\n\n@Directive({\n selector: '[ngxTooltip]',\n standalone: true,\n})\nexport class TooltipDirective {\n ngxTooltip = input<string>('');\n tooltipPosition = input<TooltipPosition>('top');\n\n private el = inject(ElementRef);\n private renderer = inject(Renderer2);\n private tooltipEl: HTMLElement | null = null;\n\n @HostListener('mouseenter')\n onMouseEnter(): void {\n const text = this.ngxTooltip();\n if (!text) return;\n this.showTooltip(text);\n }\n\n @HostListener('mouseleave')\n onMouseLeave(): void {\n this.hideTooltip();\n }\n\n private showTooltip(text: string): void {\n this.hideTooltip();\n const tip = this.renderer.createElement('div') as HTMLElement;\n tip.className = 'ngx-tooltip';\n tip.setAttribute('role', 'tooltip');\n tip.textContent = text;\n document.body.appendChild(tip);\n this.tooltipEl = tip;\n\n const rect = this.el.nativeElement.getBoundingClientRect();\n const tipRect = tip.getBoundingClientRect();\n const pos = this.tooltipPosition();\n const scrollX = window.scrollX;\n const scrollY = window.scrollY;\n const OFFSET = 8;\n let top = 0, left = 0;\n\n switch (pos) {\n case 'top':\n top = rect.top + scrollY - tipRect.height - OFFSET;\n left = rect.left + scrollX + rect.width / 2 - tipRect.width / 2;\n break;\n case 'bottom':\n top = rect.bottom + scrollY + OFFSET;\n left = rect.left + scrollX + rect.width / 2 - tipRect.width / 2;\n break;\n case 'left':\n top = rect.top + scrollY + rect.height / 2 - tipRect.height / 2;\n left = rect.left + scrollX - tipRect.width - OFFSET;\n break;\n case 'right':\n top = rect.top + scrollY + rect.height / 2 - tipRect.height / 2;\n left = rect.right + scrollX + OFFSET;\n break;\n }\n\n // Auto-flip if outside viewport\n if (top < 0) top = rect.bottom + scrollY + OFFSET;\n if (left < 0) left = 4;\n if (left + tipRect.width > window.innerWidth) left = window.innerWidth - tipRect.width - 4;\n\n tip.style.top = top + 'px';\n tip.style.left = left + 'px';\n tip.style.setProperty('--pos', pos);\n requestAnimationFrame(() => { if (tip) tip.classList.add('visible'); });\n }\n\n private hideTooltip(): void {\n if (this.tooltipEl) {\n this.tooltipEl.remove();\n this.tooltipEl = null;\n }\n }\n}\n","import {\n Component, ChangeDetectionStrategy, input, output, signal,\n HostListener, ElementRef, inject\n} from '@angular/core';\n\n@Component({\n selector: 'ngx-popover',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"ngx-popover-wrapper\">\n <!-- Trigger slot -->\n <div class=\"popover-trigger\" (click)=\"toggle()\">\n <ng-content select=\"[popoverTrigger]\"/>\n </div>\n\n <!-- Popup -->\n @if (isOpen()) {\n <div class=\"popover-panel\" [class]=\"'popover-' + position()\">\n @if (title()) {\n <div class=\"popover-header\">\n <span class=\"popover-title\">{{ title() }}</span>\n <button class=\"popover-close\" (click)=\"close()\">&#10005;</button>\n </div>\n }\n <div class=\"popover-body\">\n <ng-content select=\"[popoverBody]\"/>\n </div>\n </div>\n }\n </div>\n `,\n styles: [`\n :host {\n display: inline-block;\n }\n .ngx-popover-wrapper { position: relative; display: inline-block; }\n .popover-trigger { cursor: pointer; }\n .popover-panel {\n position: absolute; z-index: 1000; min-width: 200px; max-width: 320px;\n background: var(--ngx-popover-bg, #fff); border: 1px solid var(--ngx-popover-border, #dee2e6);\n border-radius: var(--ngx-popover-radius, 6px); box-shadow: var(--ngx-popover-shadow, 0 4px 16px rgba(0,0,0,0.12));\n animation: fadeIn 0.12s ease;\n }\n @keyframes fadeIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }\n .popover-bottom { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); }\n .popover-top { bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); }\n .popover-right { left: calc(100% + 8px); top: 50%; transform: translateY(-50%); }\n .popover-left { right: calc(100% + 8px); top: 50%; transform: translateY(-50%); }\n .popover-header {\n display: flex; align-items: center; justify-content: space-between;\n padding: 10px 14px 8px; border-bottom: 1px solid var(--ngx-popover-border, #dee2e6);\n }\n .popover-title { font-size: 14px; font-weight: 600; color: #212529; }\n .popover-close {\n background: none; border: none; cursor: pointer; font-size: 12px;\n color: #6c757d; padding: 2px 4px; border-radius: 3px;\n }\n .popover-close:hover { background: #f1f3f5; }\n .popover-body { padding: 12px 14px; font-size: 13px; color: #495057; }\n `]\n})\nexport class PopoverComponent {\n title = input<string>('');\n position = input<'top' | 'bottom' | 'left' | 'right'>('bottom');\n\n isOpen = signal(false);\n toggle(): void { this.isOpen.update(v => !v); }\n close(): void { this.isOpen.set(false); }\n\n private el = inject(ElementRef);\n\n @HostListener('document:click', ['$event'])\n onDocClick(e: MouseEvent): void {\n if (!this.el.nativeElement.contains(e.target)) this.isOpen.set(false);\n }\n}\n","/*\n * Public API Surface of ngx-core-components\n *\n * Components are organized into secondary entry points.\n * All exports are re-exported here for convenience/backward compatibility.\n */\n\n// ===== Tooltip & Popover (primary entry only) =====\nexport { TooltipDirective } from './lib/tooltip/tooltip.directive';\nexport type { TooltipPosition } from './lib/tooltip/tooltip.directive';\nexport { PopoverComponent } from './lib/tooltip/popover.component';\n\n// ===== Input Components (also available via ngx-core-components/inputs) =====\nexport { TextBoxComponent } from 'ngx-core-components/inputs';\nexport { CheckboxComponent } from 'ngx-core-components/inputs';\nexport { RadioGroupComponent } from 'ngx-core-components/inputs';\nexport type { RadioOption } from 'ngx-core-components/inputs';\nexport { DropdownComponent } from 'ngx-core-components/inputs';\nexport type { DropdownOption } from 'ngx-core-components/inputs';\nexport { MultiSelectComponent } from 'ngx-core-components/inputs';\nexport { AutocompleteComponent } from 'ngx-core-components/inputs';\nexport { DatePickerComponent } from 'ngx-core-components/inputs';\n\n// ===== Charts & Gantt (also available via ngx-core-components/charts) =====\nexport { BarChartComponent } from 'ngx-core-components/charts';\nexport { LineChartComponent } from 'ngx-core-components/charts';\nexport { PieChartComponent } from 'ngx-core-components/charts';\nexport { SparklineComponent } from 'ngx-core-components/charts';\nexport { GaugeChartComponent } from 'ngx-core-components/charts';\nexport type { GaugeThreshold } from 'ngx-core-components/charts';\nexport { RadarChartComponent } from 'ngx-core-components/charts';\nexport type { RadarSeries } from 'ngx-core-components/charts';\nexport { HeatmapChartComponent } from 'ngx-core-components/charts';\nexport { TreemapChartComponent } from 'ngx-core-components/charts';\nexport type { TreemapItem } from 'ngx-core-components/charts';\nexport { AreaChartComponent } from 'ngx-core-components/charts';\nexport { FunnelChartComponent } from 'ngx-core-components/charts';\nexport type { FunnelItem } from 'ngx-core-components/charts';\nexport type { ChartSeries, ChartDataPoint } from 'ngx-core-components/charts';\nexport { CHART_COLORS } from 'ngx-core-components/charts';\nexport { ComboChartComponent } from 'ngx-core-components/charts';\nexport { ScatterPlotComponent } from 'ngx-core-components/charts';\nexport type { ScatterPoint } from 'ngx-core-components/charts';\nexport { BubbleChartComponent } from 'ngx-core-components/charts';\nexport type { BubblePoint } from 'ngx-core-components/charts';\nexport { SunburstChartComponent } from 'ngx-core-components/charts';\nexport type { SunburstNode } from 'ngx-core-components/charts';\nexport { WaterfallChartComponent } from 'ngx-core-components/charts';\nexport type { WaterfallItem } from 'ngx-core-components/charts';\nexport { BoxPlotChartComponent } from 'ngx-core-components/charts';\nexport type { BoxPlotItem } from 'ngx-core-components/charts';\nexport { RadialBarChartComponent } from 'ngx-core-components/charts';\nexport type { RadialBarItem } from 'ngx-core-components/charts';\nexport { CandlestickChartComponent } from 'ngx-core-components/charts';\nexport type { CandlestickItem } from 'ngx-core-components/charts';\nexport { PolarAreaChartComponent } from 'ngx-core-components/charts';\nexport { BulletChartComponent } from 'ngx-core-components/charts';\nexport { DumbbellChartComponent } from 'ngx-core-components/charts';\nexport type { DumbbellItem } from 'ngx-core-components/charts';\nexport { LollipopChartComponent } from 'ngx-core-components/charts';\nexport { SlopeChartComponent } from 'ngx-core-components/charts';\nexport type { SlopeDataPoint } from 'ngx-core-components/charts';\nexport { SankeyChartComponent } from 'ngx-core-components/charts';\nexport type { SankeyNode, SankeyLink } from 'ngx-core-components/charts';\nexport { ViolinPlotComponent } from 'ngx-core-components/charts';\nexport type { ViolinItem } from 'ngx-core-components/charts';\nexport { RidgelineChartComponent } from 'ngx-core-components/charts';\nexport type { RidgelineItem } from 'ngx-core-components/charts';\nexport { ParetoChartComponent } from 'ngx-core-components/charts';\nexport type { ParetoItem } from 'ngx-core-components/charts';\nexport { MarimekkoChartComponent } from 'ngx-core-components/charts';\nexport type { MarimekkoItem, MarimekkoSegment } from 'ngx-core-components/charts';\nexport { ChordDiagramComponent } from 'ngx-core-components/charts';\nexport type { ChordItem } from 'ngx-core-components/charts';\nexport { DependencyWheelComponent } from 'ngx-core-components/charts';\nexport type { DependencyItem } from 'ngx-core-components/charts';\nexport { AdjacencyMatrixComponent } from 'ngx-core-components/charts';\nexport type { MatrixItem } from 'ngx-core-components/charts';\nexport { BiplotComponent } from 'ngx-core-components/charts';\nexport type { BiplotPoint, BiplotVector } from 'ngx-core-components/charts';\nexport { RenkoChartComponent } from 'ngx-core-components/charts';\nexport type { RenkoBrick } from 'ngx-core-components/charts';\nexport { KagiChartComponent } from 'ngx-core-components/charts';\nexport type { KagiSegment } from 'ngx-core-components/charts';\nexport { PointFigureChartComponent } from 'ngx-core-components/charts';\nexport type { PFCell } from 'ngx-core-components/charts';\nexport { WindRoseChartComponent } from 'ngx-core-components/charts';\nexport type { WindRoseItem, WindRoseSpeedBin } from 'ngx-core-components/charts';\nexport { GanttChartComponent } from 'ngx-core-components/charts';\nexport type { FlatRow } from 'ngx-core-components/charts';\nexport { GanttScaleService } from 'ngx-core-components/charts';\n// Gantt model types\nexport type {\n GanttTask,\n GanttDependency,\n GanttConfig,\n GanttColumnDef,\n GanttTaskChangeEvent,\n GanttTaskClickEvent,\n GanttDependencyClickEvent,\n GanttScrollEvent,\n GanttGroup,\n GanttBaselineItem,\n GanttDragEvent,\n GanttLinkDragEvent,\n GanttLineClickEvent,\n GanttBarClickEvent,\n GanttSelectedEvent,\n GanttTableDragStartedEvent,\n GanttTableDragEndedEvent,\n GanttTableDragDroppedEvent,\n GanttLoadOnScrollEvent,\n GanttVirtualScrolledIndexChangeEvent,\n GanttViewChangeEvent,\n GanttExpandChangeEvent,\n GanttTooltipContext,\n} from 'ngx-core-components/charts';\nexport { ZoomLevel, DependencyType } from 'ngx-core-components/charts';\n\n// ===== Data Grid (also available via ngx-core-components/grid) =====\nexport {\n DataGridComponent,\n PivotGridComponent,\n NgxGridCellTemplateDirective,\n NgxGridEditCellTemplateDirective,\n NgxGridHeaderTemplateDirective,\n NgxGridFooterTemplateDirective,\n} from 'ngx-core-components/grid';\nexport type {\n GridColumnDef,\n GridFilterState,\n GridGroupState,\n GridGroupResult,\n GridSortState,\n GridPageChangeEvent,\n GridSortChangeEvent,\n GridFilterChangeEvent,\n GridGroupChangeEvent,\n GridDataStateChangeEvent,\n GridRowClickEvent,\n GridRowUpdateEvent,\n GridHeaderTemplateContext,\n GridCellTemplateContext,\n GridRowTemplateContext,\n GridDetailTemplateContext,\n GridFooterTemplateContext,\n PivotValueDef,\n} from 'ngx-core-components/grid';\n\n// ===== Hierarchical Views (also available via ngx-core-components/views) =====\nexport { TreeViewComponent } from 'ngx-core-components/views';\nexport type { TreeNode, TreeNodeEvent } from 'ngx-core-components/views';\nexport { ListViewComponent } from 'ngx-core-components/views';\nexport type {\n ListViewItemClickEvent,\n ListViewSelectionEvent,\n ListViewPageChangeEvent,\n} from 'ngx-core-components/views';\nexport { KanbanComponent } from 'ngx-core-components/views';\nexport type {\n KanbanCard,\n KanbanColumn,\n KanbanSwimlane,\n KanbanCardMoveEvent,\n KanbanMoveRejectedEvent,\n} from 'ngx-core-components/views';\nexport { TimelineComponent, NgxTimelineMarkerTemplateDirective, NgxTimelineCardTemplateDirective } from 'ngx-core-components/views';\nexport type { TimelineItem } from 'ngx-core-components/views';\nexport { SchedulerComponent } from 'ngx-core-components/views';\nexport type { SchedulerEvent, SchedulerRecurrence, SchedulerSlotClickEvent, SchedulerEventChangeEvent } from 'ngx-core-components/views';\nexport { VirtualListComponent } from 'ngx-core-components/views';\nexport type { VirtualListItem, VirtualListItemClickEvent } from 'ngx-core-components/views';\nexport { ImageCompareComponent } from 'ngx-core-components/views';\nexport { KeyValueListComponent } from 'ngx-core-components/views';\nexport type { KeyValueItem } from 'ngx-core-components/views';\nexport { OrgChartComponent, JsonViewerComponent, CalendarComponent } from 'ngx-core-components/views';\nexport type { OrgChartNode, CalendarEvent, CalendarCell } from 'ngx-core-components/views';\n\n\n\n\n// ===== Dialog (also available via ngx-core-components/dialog) =====\nexport { DialogService } from 'ngx-core-components/dialog';\nexport type { DialogRef, DialogConfig } from 'ngx-core-components/dialog';\nexport { DialogContainerComponent } from 'ngx-core-components/dialog';\n\nexport {\n ButtonComponent,\n ButtonGroupComponent,\n ChipComponent,\n ChipListComponent,\n SplitButtonComponent,\n DropDownButtonComponent,\n SpeedDialComponent,\n} from 'ngx-core-components/buttons';\nexport type {\n ButtonVariant,\n ButtonSize,\n ButtonShape,\n ChipVariant,\n SplitButtonItem,\n DropDownButtonItem,\n SpeedDialItem,\n} from 'ngx-core-components/buttons';\n\n// ===== Layout (also available via ngx-core-components/layout) =====\nexport {\n CardComponent,\n TabStripComponent,\n TabComponent,\n AccordionComponent,\n StepperComponent,\n SplitterComponent,\n DashboardLayoutComponent,\n CarouselComponent,\n DrawerComponent,\n} from 'ngx-core-components/layout';\nexport type {\n CardVariant,\n AccordionItem,\n StepperStep,\n DashboardItem,\n DashboardLayoutChangeEvent,\n DashboardPanelActionEvent,\n} from 'ngx-core-components/layout';\n\n// ===== Feedback (also available via ngx-core-components/feedback) =====\nexport {\n BadgeComponent,\n ProgressBarComponent,\n SkeletonComponent,\n NotificationService,\n NotificationContainerComponent,\n AvatarComponent,\n AvatarGroupComponent,\n StatCardComponent,\n CountdownComponent,\n EmptyStateComponent,\n} from 'ngx-core-components/feedback';\nexport type {\n BadgeVariant,\n BadgePosition,\n ProgressVariant,\n SkeletonShape,\n NotificationOptions,\n NotificationType,\n NotificationPosition,\n AvatarSize,\n AvatarShape,\n AvatarStatus,\n AvatarItem,\n StatCardVariant,\n CountdownVariant,\n} from 'ngx-core-components/feedback';\n\n// ===== Navigation (also available via ngx-core-components/navigation) =====\nexport {\n BreadcrumbComponent,\n MenuComponent,\n CommandPaletteComponent,\n ContextMenuComponent,\n BackToTopComponent,\n} from 'ngx-core-components/navigation';\nexport type {\n BreadcrumbItem,\n MenuItem,\n CommandItem,\n ContextMenuItem,\n} from 'ngx-core-components/navigation';\n\n// ===== Additional Inputs (also available via ngx-core-components/inputs) =====\nexport {\n SliderComponent,\n SwitchComponent,\n RatingComponent,\n NumericTextBoxComponent,\n TextareaComponent,\n ColorPickerComponent,\n TimePickerComponent,\n DateRangePickerComponent,\n FileUploadComponent,\n TagInputComponent,\n FilePreviewComponent,\n SegmentedControlComponent,\n FormBuilderComponent,\n SignaturePadComponent,\n} from 'ngx-core-components/inputs';\nexport type {\n UploadFileItem,\n PreviewFileItem,\n SegmentedOption,\n FormBuilderField,\n FormBuilderOption,\n} from 'ngx-core-components/inputs';\n\n// ===== Barcodes (also available via ngx-core-components/barcodes) =====\nexport { QrCodeComponent, BarcodeComponent } from 'ngx-core-components/barcodes';\n\n// ===== AI & Agentic Components (also available via ngx-core-components/ai) =====\nexport { AIChatComponent } from 'ngx-core-components/ai';\nexport type {\n AIMessage,\n AgentStep,\n AICard,\n AICardAction,\n QuickReply,\n} from 'ngx-core-components/ai';\nexport { AIChatWidgetComponent } from 'ngx-core-components/ai';\nexport { AIPromptEditorComponent } from 'ngx-core-components/ai';\n\n// ===== i18n =====\nexport { NGX_CORE_I18N, DEFAULT_EN_I18N, provideNgxI18n } from 'ngx-core-components/i18n';\nexport type { NgxCoreI18n } from 'ngx-core-components/i18n';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MA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,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,gBAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EArDjB;;;;;;;;;;;;;;;;;;;;;;AAsBT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,2tCAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FA+BU,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAzD5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,cACX,IAAI,EAAA,eAAA,EACC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EACrC;;;;;;;;;;;;;;;;;;;;;;AAsBT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,2tCAAA,CAAA,EAAA;8BA0CD,UAAU,EAAA,CAAA;sBADT,YAAY;uBAAC,gBAAgB,EAAE,CAAC,QAAQ,CAAC;;;ACxE5C;;;;;AAKG;AAEH;;ACPA;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-core-components.mjs","sources":["../../../projects/ngx-core-components/src/lib/tooltip/tooltip.directive.ts","../../../projects/ngx-core-components/src/lib/tooltip/popover.component.ts","../../../projects/ngx-core-components/src/public-api.ts","../../../projects/ngx-core-components/src/ngx-core-components.ts"],"sourcesContent":["import {\n Directive, input, signal, ElementRef, HostListener, inject,\n computed, effect, Renderer2\n} from '@angular/core';\n\nexport type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';\n\n@Directive({\n selector: '[ngxTooltip]',\n standalone: true,\n})\nexport class TooltipDirective {\n ngxTooltip = input<string>('');\n tooltipPosition = input<TooltipPosition>('top');\n\n private el = inject(ElementRef);\n private renderer = inject(Renderer2);\n private tooltipEl: HTMLElement | null = null;\n\n @HostListener('mouseenter')\n onMouseEnter(): void {\n const text = this.ngxTooltip();\n if (!text) return;\n this.showTooltip(text);\n }\n\n @HostListener('mouseleave')\n onMouseLeave(): void {\n this.hideTooltip();\n }\n\n private showTooltip(text: string): void {\n this.hideTooltip();\n const tip = this.renderer.createElement('div') as HTMLElement;\n tip.className = 'ngx-tooltip';\n tip.setAttribute('role', 'tooltip');\n tip.textContent = text;\n document.body.appendChild(tip);\n this.tooltipEl = tip;\n\n const rect = this.el.nativeElement.getBoundingClientRect();\n const tipRect = tip.getBoundingClientRect();\n const pos = this.tooltipPosition();\n const scrollX = window.scrollX;\n const scrollY = window.scrollY;\n const OFFSET = 8;\n let top = 0, left = 0;\n\n switch (pos) {\n case 'top':\n top = rect.top + scrollY - tipRect.height - OFFSET;\n left = rect.left + scrollX + rect.width / 2 - tipRect.width / 2;\n break;\n case 'bottom':\n top = rect.bottom + scrollY + OFFSET;\n left = rect.left + scrollX + rect.width / 2 - tipRect.width / 2;\n break;\n case 'left':\n top = rect.top + scrollY + rect.height / 2 - tipRect.height / 2;\n left = rect.left + scrollX - tipRect.width - OFFSET;\n break;\n case 'right':\n top = rect.top + scrollY + rect.height / 2 - tipRect.height / 2;\n left = rect.right + scrollX + OFFSET;\n break;\n }\n\n // Auto-flip if outside viewport\n if (top < 0) top = rect.bottom + scrollY + OFFSET;\n if (left < 0) left = 4;\n if (left + tipRect.width > window.innerWidth) left = window.innerWidth - tipRect.width - 4;\n\n tip.style.top = top + 'px';\n tip.style.left = left + 'px';\n tip.style.setProperty('--pos', pos);\n requestAnimationFrame(() => { if (tip) tip.classList.add('visible'); });\n }\n\n private hideTooltip(): void {\n if (this.tooltipEl) {\n this.tooltipEl.remove();\n this.tooltipEl = null;\n }\n }\n}\n","import {\n Component, ChangeDetectionStrategy, input, output, signal,\n HostListener, ElementRef, inject\n} from '@angular/core';\n\n@Component({\n selector: 'ngx-popover',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"ngx-popover-wrapper\">\n <!-- Trigger slot -->\n <div class=\"popover-trigger\" (click)=\"toggle()\">\n <ng-content select=\"[popoverTrigger]\"/>\n </div>\n\n <!-- Popup -->\n @if (isOpen()) {\n <div class=\"popover-panel\" [class]=\"'popover-' + position()\">\n @if (title()) {\n <div class=\"popover-header\">\n <span class=\"popover-title\">{{ title() }}</span>\n <button class=\"popover-close\" (click)=\"close()\">&#10005;</button>\n </div>\n }\n <div class=\"popover-body\">\n <ng-content select=\"[popoverBody]\"/>\n </div>\n </div>\n }\n </div>\n `,\n styles: [`\n :host {\n display: inline-block;\n }\n .ngx-popover-wrapper { position: relative; display: inline-block; }\n .popover-trigger { cursor: pointer; }\n .popover-panel {\n position: absolute; z-index: 1000; min-width: 200px; max-width: 320px;\n background: var(--ngx-popover-bg, #fff); border: 1px solid var(--ngx-popover-border, #dee2e6);\n border-radius: var(--ngx-popover-radius, 6px); box-shadow: var(--ngx-popover-shadow, 0 4px 16px rgba(0,0,0,0.12));\n animation: fadeIn 0.12s ease;\n }\n @keyframes fadeIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }\n .popover-bottom { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); }\n .popover-top { bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); }\n .popover-right { left: calc(100% + 8px); top: 50%; transform: translateY(-50%); }\n .popover-left { right: calc(100% + 8px); top: 50%; transform: translateY(-50%); }\n .popover-header {\n display: flex; align-items: center; justify-content: space-between;\n padding: 10px 14px 8px; border-bottom: 1px solid var(--ngx-popover-border, #dee2e6);\n }\n .popover-title { font-size: 14px; font-weight: 600; color: #212529; }\n .popover-close {\n background: none; border: none; cursor: pointer; font-size: 12px;\n color: #6c757d; padding: 2px 4px; border-radius: 3px;\n }\n .popover-close:hover { background: #f1f3f5; }\n .popover-body { padding: 12px 14px; font-size: 13px; color: #495057; }\n `]\n})\nexport class PopoverComponent {\n title = input<string>('');\n position = input<'top' | 'bottom' | 'left' | 'right'>('bottom');\n\n isOpen = signal(false);\n toggle(): void { this.isOpen.update(v => !v); }\n close(): void { this.isOpen.set(false); }\n\n private el = inject(ElementRef);\n\n @HostListener('document:click', ['$event'])\n onDocClick(e: MouseEvent): void {\n if (!this.el.nativeElement.contains(e.target)) this.isOpen.set(false);\n }\n}\n","/*\n * Public API Surface of ngx-core-components\n *\n * Components are organized into secondary entry points.\n * All exports are re-exported here for convenience/backward compatibility.\n */\n\n// ===== Tooltip & Popover (primary entry only) =====\nexport { TooltipDirective } from './lib/tooltip/tooltip.directive';\nexport type { TooltipPosition } from './lib/tooltip/tooltip.directive';\nexport { PopoverComponent } from './lib/tooltip/popover.component';\n\n// ===== Input Components (also available via ngx-core-components/inputs) =====\nexport { TextBoxComponent } from 'ngx-core-components/inputs';\nexport { CheckboxComponent } from 'ngx-core-components/inputs';\nexport { RadioGroupComponent } from 'ngx-core-components/inputs';\nexport type { RadioOption } from 'ngx-core-components/inputs';\nexport { DropdownComponent } from 'ngx-core-components/inputs';\nexport type { DropdownOption } from 'ngx-core-components/inputs';\nexport { MultiSelectComponent } from 'ngx-core-components/inputs';\nexport { AutocompleteComponent } from 'ngx-core-components/inputs';\nexport { DatePickerComponent } from 'ngx-core-components/inputs';\n\n// ===== Charts & Gantt (also available via ngx-core-components/charts) =====\nexport { BarChartComponent } from 'ngx-core-components/charts';\nexport { LineChartComponent } from 'ngx-core-components/charts';\nexport { PieChartComponent } from 'ngx-core-components/charts';\nexport { SparklineComponent } from 'ngx-core-components/charts';\nexport { GaugeChartComponent } from 'ngx-core-components/charts';\nexport type { GaugeThreshold } from 'ngx-core-components/charts';\nexport { RadarChartComponent } from 'ngx-core-components/charts';\nexport type { RadarSeries } from 'ngx-core-components/charts';\nexport { HeatmapChartComponent } from 'ngx-core-components/charts';\nexport { TreemapChartComponent } from 'ngx-core-components/charts';\nexport type { TreemapItem } from 'ngx-core-components/charts';\nexport { AreaChartComponent } from 'ngx-core-components/charts';\nexport { FunnelChartComponent } from 'ngx-core-components/charts';\nexport type { FunnelItem } from 'ngx-core-components/charts';\nexport type { ChartSeries, ChartDataPoint } from 'ngx-core-components/charts';\nexport { CHART_COLORS } from 'ngx-core-components/charts';\nexport { ComboChartComponent } from 'ngx-core-components/charts';\nexport { ScatterPlotComponent } from 'ngx-core-components/charts';\nexport type { ScatterPoint } from 'ngx-core-components/charts';\nexport { BubbleChartComponent } from 'ngx-core-components/charts';\nexport type { BubblePoint } from 'ngx-core-components/charts';\nexport { SunburstChartComponent } from 'ngx-core-components/charts';\nexport type { SunburstNode } from 'ngx-core-components/charts';\nexport { WaterfallChartComponent } from 'ngx-core-components/charts';\nexport type { WaterfallItem } from 'ngx-core-components/charts';\nexport { BoxPlotChartComponent } from 'ngx-core-components/charts';\nexport type { BoxPlotItem } from 'ngx-core-components/charts';\nexport { RadialBarChartComponent } from 'ngx-core-components/charts';\nexport type { RadialBarItem } from 'ngx-core-components/charts';\nexport { CandlestickChartComponent } from 'ngx-core-components/charts';\nexport type { CandlestickItem } from 'ngx-core-components/charts';\nexport { PolarAreaChartComponent } from 'ngx-core-components/charts';\nexport { BulletChartComponent } from 'ngx-core-components/charts';\nexport { DumbbellChartComponent } from 'ngx-core-components/charts';\nexport type { DumbbellItem } from 'ngx-core-components/charts';\nexport { LollipopChartComponent } from 'ngx-core-components/charts';\nexport { SlopeChartComponent } from 'ngx-core-components/charts';\nexport type { SlopeDataPoint } from 'ngx-core-components/charts';\nexport { SankeyChartComponent } from 'ngx-core-components/charts';\nexport type { SankeyNode, SankeyLink } from 'ngx-core-components/charts';\nexport { ViolinPlotComponent } from 'ngx-core-components/charts';\nexport type { ViolinItem } from 'ngx-core-components/charts';\nexport { RidgelineChartComponent } from 'ngx-core-components/charts';\nexport type { RidgelineItem } from 'ngx-core-components/charts';\nexport { ParetoChartComponent } from 'ngx-core-components/charts';\nexport type { ParetoItem } from 'ngx-core-components/charts';\nexport { MarimekkoChartComponent } from 'ngx-core-components/charts';\nexport type { MarimekkoItem, MarimekkoSegment } from 'ngx-core-components/charts';\nexport { ChordDiagramComponent } from 'ngx-core-components/charts';\nexport type { ChordItem } from 'ngx-core-components/charts';\nexport { DependencyWheelComponent } from 'ngx-core-components/charts';\nexport type { DependencyItem } from 'ngx-core-components/charts';\nexport { AdjacencyMatrixComponent } from 'ngx-core-components/charts';\nexport type { MatrixItem } from 'ngx-core-components/charts';\nexport { BiplotComponent } from 'ngx-core-components/charts';\nexport type { BiplotPoint, BiplotVector } from 'ngx-core-components/charts';\nexport { RenkoChartComponent } from 'ngx-core-components/charts';\nexport type { RenkoBrick } from 'ngx-core-components/charts';\nexport { KagiChartComponent } from 'ngx-core-components/charts';\nexport type { KagiSegment } from 'ngx-core-components/charts';\nexport { PointFigureChartComponent } from 'ngx-core-components/charts';\nexport type { PFCell } from 'ngx-core-components/charts';\nexport { WindRoseChartComponent } from 'ngx-core-components/charts';\nexport type { WindRoseItem, WindRoseSpeedBin } from 'ngx-core-components/charts';\nexport { GanttChartComponent } from 'ngx-core-components/charts';\nexport type { FlatRow } from 'ngx-core-components/charts';\nexport { GanttScaleService } from 'ngx-core-components/charts';\n// Gantt model types\nexport type {\n GanttTask,\n GanttDependency,\n GanttConfig,\n GanttColumnDef,\n GanttTaskChangeEvent,\n GanttTaskClickEvent,\n GanttDependencyClickEvent,\n GanttScrollEvent,\n GanttGroup,\n GanttBaselineItem,\n GanttDragEvent,\n GanttLinkDragEvent,\n GanttLineClickEvent,\n GanttBarClickEvent,\n GanttSelectedEvent,\n GanttTableDragStartedEvent,\n GanttTableDragEndedEvent,\n GanttTableDragDroppedEvent,\n GanttLoadOnScrollEvent,\n GanttVirtualScrolledIndexChangeEvent,\n GanttViewChangeEvent,\n GanttExpandChangeEvent,\n GanttTooltipContext,\n} from 'ngx-core-components/charts';\nexport { ZoomLevel, DependencyType } from 'ngx-core-components/charts';\n\n// ===== Data Grid (also available via ngx-core-components/grid) =====\nexport {\n DataGridComponent,\n PivotGridComponent,\n NgxGridCellTemplateDirective,\n NgxGridEditCellTemplateDirective,\n NgxGridHeaderTemplateDirective,\n NgxGridFooterTemplateDirective,\n} from 'ngx-core-components/grid';\nexport type {\n GridColumnDef,\n GridFilterState,\n GridGroupState,\n GridGroupResult,\n GridSortState,\n GridPageChangeEvent,\n GridSortChangeEvent,\n GridFilterChangeEvent,\n GridGroupChangeEvent,\n GridDataStateChangeEvent,\n GridRowClickEvent,\n GridRowUpdateEvent,\n GridHeaderTemplateContext,\n GridCellTemplateContext,\n GridRowTemplateContext,\n GridDetailTemplateContext,\n GridFooterTemplateContext,\n PivotValueDef,\n} from 'ngx-core-components/grid';\n\n// ===== Hierarchical Views (also available via ngx-core-components/views) =====\nexport { TreeViewComponent } from 'ngx-core-components/views';\nexport type { TreeNode, TreeNodeEvent } from 'ngx-core-components/views';\nexport { ListViewComponent } from 'ngx-core-components/views';\nexport type {\n ListViewItemClickEvent,\n ListViewSelectionEvent,\n ListViewPageChangeEvent,\n} from 'ngx-core-components/views';\nexport { KanbanComponent } from 'ngx-core-components/views';\nexport type {\n KanbanCard,\n KanbanColumn,\n KanbanSwimlane,\n KanbanCardMoveEvent,\n KanbanMoveRejectedEvent,\n} from 'ngx-core-components/views';\nexport { TimelineComponent, NgxTimelineMarkerTemplateDirective, NgxTimelineCardTemplateDirective } from 'ngx-core-components/views';\nexport type { TimelineItem } from 'ngx-core-components/views';\nexport { SchedulerComponent } from 'ngx-core-components/views';\nexport type { SchedulerEvent, SchedulerRecurrence, SchedulerSlotClickEvent, SchedulerEventChangeEvent } from 'ngx-core-components/views';\nexport { VirtualListComponent } from 'ngx-core-components/views';\nexport type { VirtualListItem, VirtualListItemClickEvent } from 'ngx-core-components/views';\nexport { ImageCompareComponent } from 'ngx-core-components/views';\nexport { KeyValueListComponent } from 'ngx-core-components/views';\nexport type { KeyValueItem } from 'ngx-core-components/views';\nexport { OrgChartComponent, JsonViewerComponent, CalendarComponent } from 'ngx-core-components/views';\nexport type { OrgChartNode, CalendarEvent, CalendarCell } from 'ngx-core-components/views';\n\n\n\n\n// ===== Dialog (also available via ngx-core-components/dialog) =====\nexport { DialogService } from 'ngx-core-components/dialog';\nexport type { DialogRef, DialogConfig } from 'ngx-core-components/dialog';\nexport { DialogContainerComponent } from 'ngx-core-components/dialog';\n\nexport {\n ButtonComponent,\n ButtonGroupComponent,\n ChipComponent,\n ChipListComponent,\n SplitButtonComponent,\n DropDownButtonComponent,\n SpeedDialComponent,\n} from 'ngx-core-components/buttons';\nexport type {\n ButtonVariant,\n ButtonSize,\n ButtonShape,\n ChipVariant,\n SplitButtonItem,\n DropDownButtonItem,\n SpeedDialItem,\n} from 'ngx-core-components/buttons';\n\n// ===== Layout (also available via ngx-core-components/layout) =====\nexport {\n CardComponent,\n TabStripComponent,\n TabComponent,\n AccordionComponent,\n StepperComponent,\n SplitterComponent,\n DashboardLayoutComponent,\n CarouselComponent,\n DrawerComponent,\n} from 'ngx-core-components/layout';\nexport type {\n CardVariant,\n AccordionItem,\n StepperStep,\n DashboardItem,\n DashboardLayoutChangeEvent,\n DashboardPanelActionEvent,\n} from 'ngx-core-components/layout';\n\n// ===== Feedback (also available via ngx-core-components/feedback) =====\nexport {\n BadgeComponent,\n ProgressBarComponent,\n SkeletonComponent,\n NotificationService,\n NotificationContainerComponent,\n AvatarComponent,\n AvatarGroupComponent,\n StatCardComponent,\n CountdownComponent,\n EmptyStateComponent,\n} from 'ngx-core-components/feedback';\nexport type {\n BadgeVariant,\n BadgePosition,\n ProgressVariant,\n SkeletonShape,\n NotificationOptions,\n NotificationType,\n NotificationPosition,\n AvatarSize,\n AvatarShape,\n AvatarStatus,\n AvatarItem,\n StatCardVariant,\n CountdownVariant,\n} from 'ngx-core-components/feedback';\n\n// ===== Navigation (also available via ngx-core-components/navigation) =====\nexport {\n BreadcrumbComponent,\n MenuComponent,\n CommandPaletteComponent,\n ContextMenuComponent,\n BackToTopComponent,\n} from 'ngx-core-components/navigation';\nexport type {\n BreadcrumbItem,\n MenuItem,\n CommandItem,\n ContextMenuItem,\n} from 'ngx-core-components/navigation';\n\n// ===== Additional Inputs (also available via ngx-core-components/inputs) =====\nexport {\n SliderComponent,\n SwitchComponent,\n RatingComponent,\n NumericTextBoxComponent,\n TextareaComponent,\n ColorPickerComponent,\n TimePickerComponent,\n DateRangePickerComponent,\n FileUploadComponent,\n TagInputComponent,\n FilePreviewComponent,\n SegmentedControlComponent,\n FormBuilderComponent,\n FormDesignerComponent,\n SignaturePadComponent,\n} from 'ngx-core-components/inputs';\nexport type {\n UploadFileItem,\n PreviewFileItem,\n SegmentedOption,\n FormBuilderField,\n FormBuilderOption,\n} from 'ngx-core-components/inputs';\n\n// ===== Barcodes (also available via ngx-core-components/barcodes) =====\nexport { QrCodeComponent, BarcodeComponent } from 'ngx-core-components/barcodes';\n\n// ===== AI & Agentic Components (also available via ngx-core-components/ai) =====\nexport { AIChatComponent } from 'ngx-core-components/ai';\nexport type {\n AIMessage,\n AgentStep,\n AICard,\n AICardAction,\n QuickReply,\n} from 'ngx-core-components/ai';\nexport { AIChatWidgetComponent } from 'ngx-core-components/ai';\nexport { AIPromptEditorComponent } from 'ngx-core-components/ai';\nexport { NgxWebLlmService } from 'ngx-core-components/ai';\nexport type { WebLlmMessage } from 'ngx-core-components/ai';\n\n// ===== i18n =====\nexport { NGX_CORE_I18N, DEFAULT_EN_I18N, provideNgxI18n } from 'ngx-core-components/i18n';\nexport type { NgxCoreI18n } from 'ngx-core-components/i18n';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MAWa,gBAAgB,CAAA;AAC3B,IAAA,UAAU,GAAG,KAAK,CAAS,EAAE,CAAC;AAC9B,IAAA,eAAe,GAAG,KAAK,CAAkB,KAAK,CAAC;AAEvC,IAAA,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC;AACvB,IAAA,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC;IAC5B,SAAS,GA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