ngx-core-components 0.1.6 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/buttons/button/button.component.d.ts +3 -1
  2. package/buttons/chip/chip.component.d.ts +5 -3
  3. package/buttons/split-button/split-button.component.d.ts +3 -0
  4. package/charts/gantt-chart/gantt-chart.component.d.ts +1 -0
  5. package/charts/gantt-chart/models/gantt-config.model.d.ts +4 -0
  6. package/feedback/badge/badge.component.d.ts +1 -0
  7. package/feedback/progress-bar/progress-bar.component.d.ts +1 -1
  8. package/fesm2022/ngx-core-components-buttons.mjs +92 -27
  9. package/fesm2022/ngx-core-components-buttons.mjs.map +1 -1
  10. package/fesm2022/ngx-core-components-charts.mjs +29 -12
  11. package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
  12. package/fesm2022/ngx-core-components-dialog.mjs +16 -9
  13. package/fesm2022/ngx-core-components-dialog.mjs.map +1 -1
  14. package/fesm2022/ngx-core-components-feedback.mjs +18 -16
  15. package/fesm2022/ngx-core-components-feedback.mjs.map +1 -1
  16. package/fesm2022/ngx-core-components-inputs.mjs +104 -17
  17. package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
  18. package/fesm2022/ngx-core-components-layout.mjs +42 -27
  19. package/fesm2022/ngx-core-components-layout.mjs.map +1 -1
  20. package/fesm2022/ngx-core-components-navigation.mjs +15 -5
  21. package/fesm2022/ngx-core-components-navigation.mjs.map +1 -1
  22. package/fesm2022/ngx-core-components-views.mjs +27 -4
  23. package/fesm2022/ngx-core-components-views.mjs.map +1 -1
  24. package/fesm2022/ngx-core-components.mjs.map +1 -1
  25. package/inputs/dropdown/dropdown.component.d.ts +4 -1
  26. package/inputs/slider/slider.component.d.ts +13 -5
  27. package/inputs/textbox/textbox.component.d.ts +7 -1
  28. package/layout/card/card.component.d.ts +3 -2
  29. package/layout/tab-strip/tab-strip.component.d.ts +2 -0
  30. package/navigation/menu/menu.component.d.ts +4 -1
  31. package/package.json +1 -1
  32. package/public-api.d.ts +6 -6
  33. package/views/tree-view/tree-view.component.d.ts +5 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-core-components-views.mjs","sources":["../../../projects/ngx-core-components/views/tree-view/tree-view.component.ts","../../../projects/ngx-core-components/views/list-view/list-view.component.ts","../../../projects/ngx-core-components/views/public-api.ts","../../../projects/ngx-core-components/views/ngx-core-components-views.ts"],"sourcesContent":["import {\n Component, ChangeDetectionStrategy, input, output, signal, computed\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\nexport interface TreeNode {\n id: string;\n label: string;\n icon?: string;\n children?: TreeNode[];\n hasChildren?: boolean;\n data?: unknown;\n}\n\nexport interface TreeNodeEvent { node: TreeNode; }\n\n@Component({\n selector: 'ngx-tree-view',\n standalone: true,\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"ngx-tree-view\" role=\"tree\" (keydown)=\"onKeyDown($event)\" tabindex=\"0\">\n @for (node of nodes(); track node.id) {\n <ng-container *ngTemplateOutlet=\"nodeTemplate; context: { node: node, depth: 0 }\"/>\n }\n\n <ng-template #nodeTemplate let-node=\"node\" let-depth=\"depth\">\n <div\n class=\"tree-node\"\n [style.padding-left.px]=\"depth * 20 + 8\"\n [class.selected]=\"selectedId() === node.id\"\n [class.focused]=\"focusedId() === node.id\"\n role=\"treeitem\"\n [attr.aria-expanded]=\"isExpanded(node.id)\"\n [attr.aria-selected]=\"selectedId() === node.id\"\n (click)=\"onNodeClick(node, $event)\"\n >\n <!-- Expand/collapse -->\n @if (hasNodeChildren(node)) {\n <button\n class=\"tree-expand-btn\"\n (click)=\"toggleExpand(node, $event)\"\n [attr.aria-label]=\"isExpanded(node.id) ? 'Collapse' : 'Expand'\"\n >\n <span class=\"expand-icon\" [class.expanded]=\"isExpanded(node.id)\">&#9658;</span>\n </button>\n } @else {\n <span class=\"tree-leaf-spacer\"></span>\n }\n\n <!-- Checkbox -->\n @if (checkable()) {\n <input\n type=\"checkbox\"\n class=\"tree-checkbox\"\n [checked]=\"isChecked(node.id)\"\n (change)=\"onCheck(node)\"\n (click)=\"$event.stopPropagation()\"\n />\n }\n\n <!-- Icon -->\n @if (node.icon) {\n <span class=\"tree-icon\">{{ node.icon }}</span>\n }\n\n <!-- Label -->\n <span class=\"tree-label\">{{ node.label }}</span>\n </div>\n\n <!-- Children -->\n @if (isExpanded(node.id) && node.children) {\n @for (child of node.children; track child.id) {\n <ng-container *ngTemplateOutlet=\"nodeTemplate; context: { node: child, depth: depth + 1 }\"/>\n }\n }\n </ng-template>\n </div>\n `,\n styles: [`\n :host {\n display: block;\n }\n .ngx-tree-view {\n background: var(--ngx-tree-bg, #fff); border: 1px solid var(--ngx-tree-border, #dee2e6);\n border-radius: var(--ngx-tree-radius, 4px); overflow-y: auto; font-family: inherit;\n outline: none;\n }\n .tree-node {\n display: flex; align-items: center; gap: 4px;\n height: 32px; cursor: pointer; user-select: none;\n border-radius: 3px; margin: 1px 4px;\n transition: background 0.1s;\n }\n .tree-node:hover { background: var(--ngx-tree-hover-bg, #f1f3f5); }\n .tree-node.selected { background: var(--ngx-tree-selected-bg, #e8f0fe); color: var(--ngx-tree-selected-color, #1a73e8); }\n .tree-node.focused { outline: 2px solid rgba(74,144,217,0.4); outline-offset: -1px; }\n .tree-expand-btn {\n width: 20px; height: 20px; background: none; border: none; cursor: pointer;\n padding: 0; display: flex; align-items: center; justify-content: center;\n flex-shrink: 0; border-radius: 3px; color: var(--ngx-tree-text-secondary, #6c757d);\n }\n .tree-expand-btn:hover { background: var(--ngx-tree-border, #dee2e6); }\n .expand-icon { font-size: 9px; transition: transform 0.15s; display: inline-block; }\n .expand-icon.expanded { transform: rotate(90deg); }\n .tree-leaf-spacer { width: 20px; flex-shrink: 0; }\n .tree-checkbox { width: 14px; height: 14px; cursor: pointer; flex-shrink: 0; accent-color: #4a90d9; }\n .tree-icon { font-size: 14px; flex-shrink: 0; }\n .tree-label { font-size: 13px; color: var(--ngx-tree-text, #212529); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n .selected .tree-label { color: var(--ngx-tree-selected-color, #1a73e8); font-weight: 500; }\n `]\n})\nexport class TreeViewComponent {\n nodes = input<TreeNode[]>([]);\n selectable = input<boolean>(true);\n checkable = input<boolean>(false);\n selectedId = input<string | null>(null);\n expandedIds = input<string[]>([]);\n\n nodeSelect = output<TreeNodeEvent>();\n nodeExpand = output<TreeNodeEvent>();\n nodeCollapse = output<TreeNodeEvent>();\n checkChange = output<{ node: TreeNode; checked: boolean }>();\n\n private expandedSet = signal<Set<string>>(new Set());\n private checkedSet = signal<Set<string>>(new Set());\n focusedId = signal<string | null>(null);\n\n isExpanded(id: string): boolean { return this.expandedSet().has(id) || this.expandedIds().includes(id); }\n isChecked(id: string): boolean { return this.checkedSet().has(id); }\n hasNodeChildren(node: TreeNode): boolean { return !!(node.children?.length || node.hasChildren); }\n\n onNodeClick(node: TreeNode, e: MouseEvent): void {\n e.stopPropagation();\n this.focusedId.set(node.id);\n if (this.selectable()) this.nodeSelect.emit({ node });\n if (this.hasNodeChildren(node)) this.toggleExpand(node, e);\n }\n\n toggleExpand(node: TreeNode, e: MouseEvent): void {\n e.stopPropagation();\n const s = new Set(this.expandedSet());\n if (s.has(node.id)) {\n s.delete(node.id);\n this.nodeCollapse.emit({ node });\n } else {\n s.add(node.id);\n this.nodeExpand.emit({ node });\n }\n this.expandedSet.set(s);\n }\n\n onCheck(node: TreeNode): void {\n const s = new Set(this.checkedSet());\n const checked = !s.has(node.id);\n checked ? s.add(node.id) : s.delete(node.id);\n this.checkedSet.set(s);\n this.checkChange.emit({ node, checked });\n }\n\n onKeyDown(e: KeyboardEvent): void {\n const flat = this.flatVisibleIds();\n const cur = this.focusedId();\n const idx = flat.indexOf(cur ?? '');\n if (e.key === 'ArrowDown') { e.preventDefault(); if (idx < flat.length - 1) this.focusedId.set(flat[idx + 1]); }\n if (e.key === 'ArrowUp') { e.preventDefault(); if (idx > 0) this.focusedId.set(flat[idx - 1]); }\n if (e.key === 'Enter' || e.key === ' ') {\n if (cur) {\n const node = this.findNode(cur, this.nodes());\n if (node) this.nodeSelect.emit({ node });\n }\n }\n }\n\n private flatVisibleIds(): string[] {\n const ids: string[] = [];\n const collect = (nodes: TreeNode[]) => {\n for (const n of nodes) {\n ids.push(n.id);\n if (this.isExpanded(n.id) && n.children) collect(n.children);\n }\n };\n collect(this.nodes());\n return ids;\n }\n\n private findNode(id: string, nodes: TreeNode[]): TreeNode | null {\n for (const n of nodes) {\n if (n.id === id) return n;\n if (n.children) { const found = this.findNode(id, n.children); if (found) return found; }\n }\n return null;\n }\n}\n","import {\n Component, ChangeDetectionStrategy, input, output, signal, computed, effect,\n ContentChild, TemplateRef\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\nexport interface ListViewItemClickEvent<T = unknown> { item: T; index: number; }\nexport interface ListViewSelectionEvent<T = unknown> { selectedItems: T[]; }\nexport interface ListViewPageChangeEvent {\n page: number;\n pageSize: number;\n totalItems: number;\n totalPages: number;\n}\n\n@Component({\n selector: 'ngx-list-view',\n standalone: true,\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"ngx-list-view\">\n <!-- Header slot -->\n <ng-content select=\"[listHeader]\"/>\n\n <!-- Loading -->\n @if (loading()) {\n <div class=\"lv-loading\">\n <div class=\"lv-spinner\"></div>\n <span>Loading...</span>\n </div>\n } @else if (totalItems() === 0) {\n <div class=\"lv-empty\">No items to display.</div>\n } @else {\n <div class=\"lv-list\" role=\"listbox\" [attr.aria-multiselectable]=\"multiselect()\">\n @for (item of visibleItems(); track trackFn(item, pageStartIndex() + $index); let i = $index) {\n <div\n class=\"lv-item\"\n [class.lv-alt]=\"(pageStartIndex() + i) % 2 === 1\"\n [class.lv-selected]=\"isSelected(item)\"\n role=\"option\"\n [attr.aria-selected]=\"isSelected(item)\"\n (click)=\"onItemClick(item, pageStartIndex() + i)\"\n >\n @if (itemTemplate) {\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item, index: pageStartIndex() + i }\"/>\n } @else {\n <span class=\"lv-default-text\">{{ getLabel(item) }}</span>\n }\n </div>\n }\n </div>\n\n @if (pageSize() > 0 && totalPages() > 1) {\n <div class=\"lv-pager\">\n <button class=\"lv-pager-btn\" type=\"button\" [disabled]=\"currentPage() === 1\" (click)=\"goToPreviousPage()\">Previous</button>\n <div class=\"lv-pager-meta\">Page {{ currentPage() }} of {{ totalPages() }} <span class=\"lv-pager-count\">{{ totalItems() }} items</span></div>\n <button class=\"lv-pager-btn\" type=\"button\" [disabled]=\"currentPage() === totalPages()\" (click)=\"goToNextPage()\">Next</button>\n </div>\n }\n }\n\n <!-- Footer slot -->\n <ng-content select=\"[listFooter]\"/>\n </div>\n `,\n styles: [`\n :host {\n display: block;\n }\n .ngx-list-view {\n border: 1px solid var(--ngx-list-border, #dee2e6); border-radius: var(--ngx-list-radius, 4px);\n background: var(--ngx-list-bg, #fff); overflow: hidden; font-family: inherit;\n }\n .lv-list { overflow-y: auto; }\n .lv-item {\n padding: 10px 16px; cursor: pointer; border-bottom: 1px solid var(--ngx-list-border, #dee2e6);\n transition: background 0.1s; color: var(--ngx-list-text, #212529); font-size: 13px;\n }\n .lv-item:last-child { border-bottom: none; }\n .lv-item:hover { background: var(--ngx-list-hover-bg, #f1f3f5); }\n .lv-item.lv-alt { background: var(--ngx-list-alt-bg, #f8f9fa); }\n .lv-item.lv-alt:hover { background: var(--ngx-list-hover-bg, #f1f3f5); }\n .lv-item.lv-selected { background: var(--ngx-list-selected-bg, #e8f0fe); color: var(--ngx-list-selected-color, #1a73e8); font-weight: 500; }\n .lv-item.lv-selected:hover { background: var(--ngx-list-selected-bg, #e8f0fe); }\n .lv-default-text { display: block; }\n .lv-loading, .lv-empty {\n display: flex; align-items: center; justify-content: center; gap: 8px;\n padding: 32px; color: #adb5bd; font-size: 13px;\n }\n .lv-spinner {\n width: 20px; height: 20px; border: 2px solid #dee2e6; border-top-color: #4a90d9;\n border-radius: 50%; animation: spin 0.7s linear infinite;\n }\n .lv-pager {\n display: flex; align-items: center; justify-content: space-between; gap: 12px;\n padding: 10px 14px; border-top: 1px solid var(--ngx-list-border, #dee2e6); background: #fafbfc;\n }\n .lv-pager-btn {\n border: 1px solid #ced4da; background: #fff; color: #495057; border-radius: 4px;\n padding: 6px 10px; font-size: 12px; cursor: pointer; font-family: inherit;\n }\n .lv-pager-btn:hover:not(:disabled) { background: #f1f3f5; }\n .lv-pager-btn:disabled { opacity: 0.5; cursor: not-allowed; }\n .lv-pager-meta { font-size: 12px; color: #495057; }\n .lv-pager-count { color: #6c757d; }\n @keyframes spin { to { transform: rotate(360deg); } }\n `]\n})\nexport class ListViewComponent<T = unknown> {\n items = input<T[]>([]);\n selectable = input<boolean>(true);\n multiselect = input<boolean>(false);\n loading = input<boolean>(false);\n labelField = input<string>('label');\n pageSize = input<number>(0);\n\n itemClick = output<ListViewItemClickEvent<T>>();\n selectionChange = output<ListViewSelectionEvent<T>>();\n pageChange = output<ListViewPageChangeEvent>();\n\n @ContentChild('itemTemplate') itemTemplate?: TemplateRef<{ $implicit: T; index: number }>;\n\n selectedItems = signal<Set<T>>(new Set());\n currentPage = signal(1);\n totalItems = computed(() => this.items().length);\n totalPages = computed(() => {\n const size = this.pageSize();\n if (size <= 0) {\n return this.totalItems() > 0 ? 1 : 0;\n }\n return Math.max(1, Math.ceil(this.totalItems() / size));\n });\n pageStartIndex = computed(() => this.pageSize() > 0 ? (this.currentPage() - 1) * this.pageSize() : 0);\n visibleItems = computed(() => {\n const size = this.pageSize();\n if (size <= 0) {\n return this.items();\n }\n\n return this.items().slice(this.pageStartIndex(), this.pageStartIndex() + size);\n });\n\n constructor() {\n effect(() => {\n if (this.pageSize() <= 0) {\n if (this.currentPage() !== 1) {\n this.currentPage.set(1);\n }\n return;\n }\n\n const maxPage = this.totalPages();\n if (maxPage > 0 && this.currentPage() > maxPage) {\n this.currentPage.set(maxPage);\n this.emitPageChange();\n }\n });\n }\n\n isSelected(item: T): boolean { return this.selectedItems().has(item); }\n\n onItemClick(item: T, index: number): void {\n this.itemClick.emit({ item, index });\n if (!this.selectable()) return;\n const s = new Set(this.selectedItems());\n if (this.multiselect()) {\n s.has(item) ? s.delete(item) : s.add(item);\n } else {\n if (s.has(item) && s.size === 1) s.clear();\n else { s.clear(); s.add(item); }\n }\n this.selectedItems.set(s);\n this.selectionChange.emit({ selectedItems: [...s] });\n }\n\n goToPreviousPage(): void {\n this.setPage(this.currentPage() - 1);\n }\n\n goToNextPage(): void {\n this.setPage(this.currentPage() + 1);\n }\n\n private setPage(page: number): void {\n const nextPage = Math.max(1, Math.min(this.totalPages(), page));\n if (nextPage === this.currentPage()) {\n return;\n }\n\n this.currentPage.set(nextPage);\n this.emitPageChange();\n }\n\n private emitPageChange(): void {\n this.pageChange.emit({\n page: this.currentPage(),\n pageSize: this.pageSize(),\n totalItems: this.totalItems(),\n totalPages: this.totalPages(),\n });\n }\n\n getLabel(item: T): string {\n if (typeof item === 'string' || typeof item === 'number') return String(item);\n const r = item as Record<string, unknown>;\n return String(r[this.labelField()] ?? r['label'] ?? r['name'] ?? r['title'] ?? JSON.stringify(item));\n }\n\n trackFn(item: T, index: number): string {\n if (typeof item === 'object' && item !== null) {\n const r = item as Record<string, unknown>;\n return String(r['id'] ?? r['key'] ?? index);\n }\n return String(index);\n }\n}\n","/*\n * Public API Surface — secondary entry point: ngx-core-components/views\n */\n\n// Tree View — hierarchical/nested data with expand/collapse\nexport { TreeViewComponent } from './tree-view/tree-view.component';\nexport type { TreeNode, TreeNodeEvent } from './tree-view/tree-view.component';\n\n// List View — flat data arrays with selection and custom templates\nexport { ListViewComponent } from './list-view/list-view.component';\nexport type {\n ListViewItemClickEvent,\n ListViewSelectionEvent,\n ListViewPageChangeEvent,\n} from './list-view/list-view.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;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yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FA2Ff,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBA9F7B,SAAS;+BACE,eAAe,EAAA,UAAA,EACb,IAAI,EAAA,OAAA,EACP,CAAC,gBAAgB,CAAC,EAAA,eAAA,EACV,uBAAuB,CAAC,MAAM,EAAA,QAAA,EACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,gpDAAA,CAAA,EAAA;wDAwD6B,YAAY,EAAA,CAAA;sBAAzC,YAAY;uBAAC,cAAc;;;ACzH9B;;AAEG;AAEH;;ACJA;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-core-components-views.mjs","sources":["../../../projects/ngx-core-components/views/tree-view/tree-view.component.ts","../../../projects/ngx-core-components/views/list-view/list-view.component.ts","../../../projects/ngx-core-components/views/public-api.ts","../../../projects/ngx-core-components/views/ngx-core-components-views.ts"],"sourcesContent":["import {\n Component, ChangeDetectionStrategy, input, output, signal, computed\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\nexport interface TreeNode {\n id: string;\n label: string;\n icon?: string;\n children?: TreeNode[];\n hasChildren?: boolean;\n disabled?: boolean;\n data?: unknown;\n}\n\nexport interface TreeNodeEvent { node: TreeNode; }\n\n@Component({\n selector: 'ngx-tree-view',\n standalone: true,\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"ngx-tree-view\" role=\"tree\" (keydown)=\"onKeyDown($event)\" tabindex=\"0\">\n @for (node of nodes(); track node.id) {\n <ng-container *ngTemplateOutlet=\"nodeTemplate; context: { node: node, depth: 0 }\"/>\n }\n\n <ng-template #nodeTemplate let-node=\"node\" let-depth=\"depth\">\n <div\n class=\"tree-node\"\n [style.padding-left.px]=\"depth * 20 + 8\"\n [class.selected]=\"selectedId() === node.id\"\n [class.focused]=\"focusedId() === node.id\"\n [class.disabled]=\"node.disabled\"\n role=\"treeitem\"\n [attr.aria-expanded]=\"isExpanded(node.id)\"\n [attr.aria-selected]=\"selectedId() === node.id\"\n [attr.aria-disabled]=\"node.disabled || null\"\n (click)=\"!node.disabled && onNodeClick(node, $event)\"\n >\n <!-- Expand/collapse -->\n @if (hasNodeChildren(node)) {\n <button\n class=\"tree-expand-btn\"\n (click)=\"toggleExpand(node, $event)\"\n [attr.aria-label]=\"isExpanded(node.id) ? 'Collapse' : 'Expand'\"\n >\n <span class=\"expand-icon\" [class.expanded]=\"isExpanded(node.id)\">&#9658;</span>\n </button>\n } @else {\n <span class=\"tree-leaf-spacer\"></span>\n }\n\n <!-- Checkbox -->\n @if (checkable()) {\n <input\n type=\"checkbox\"\n class=\"tree-checkbox\"\n [checked]=\"isChecked(node.id)\"\n (change)=\"onCheck(node)\"\n (click)=\"$event.stopPropagation()\"\n />\n }\n\n <!-- Icon -->\n @if (node.icon) {\n <span class=\"tree-icon\">{{ node.icon }}</span>\n }\n\n <!-- Label -->\n <span class=\"tree-label\">{{ node.label }}</span>\n </div>\n\n <!-- Children -->\n @if (isExpanded(node.id) && node.children) {\n @for (child of node.children; track child.id) {\n <ng-container *ngTemplateOutlet=\"nodeTemplate; context: { node: child, depth: depth + 1 }\"/>\n }\n }\n </ng-template>\n </div>\n `,\n styles: [`\n :host {\n display: block;\n }\n .ngx-tree-view {\n background: var(--ngx-tree-bg, #fff); border: 1px solid var(--ngx-tree-border, #dee2e6);\n border-radius: var(--ngx-tree-radius, 4px); overflow-y: auto; font-family: inherit;\n outline: none;\n }\n .tree-node {\n display: flex; align-items: center; gap: 4px;\n height: 32px; cursor: pointer; user-select: none;\n border-radius: 3px; margin: 1px 4px;\n transition: background 0.1s;\n }\n .tree-node:hover { background: var(--ngx-tree-hover-bg, #f1f3f5); }\n .tree-node.selected { background: var(--ngx-tree-selected-bg, #e8f0fe); color: var(--ngx-tree-selected-color, #1a73e8); }\n .tree-node.focused { outline: 2px solid rgba(74,144,217,0.4); outline-offset: -1px; }\n .tree-node.disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }\n .tree-expand-btn {\n width: 20px; height: 20px; background: none; border: none; cursor: pointer;\n padding: 0; display: flex; align-items: center; justify-content: center;\n flex-shrink: 0; border-radius: 3px; color: var(--ngx-tree-text-secondary, #6c757d);\n }\n .tree-expand-btn:hover { background: var(--ngx-tree-border, #dee2e6); }\n .expand-icon { font-size: 9px; transition: transform 0.15s; display: inline-block; }\n .expand-icon.expanded { transform: rotate(90deg); }\n .tree-leaf-spacer { width: 20px; flex-shrink: 0; }\n .tree-checkbox { width: 14px; height: 14px; cursor: pointer; flex-shrink: 0; accent-color: #4a90d9; }\n .tree-icon { font-size: 14px; flex-shrink: 0; }\n .tree-label { font-size: 13px; color: var(--ngx-tree-text, #212529); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n .selected .tree-label { color: var(--ngx-tree-selected-color, #1a73e8); font-weight: 500; }\n `]\n})\nexport class TreeViewComponent {\n nodes = input<TreeNode[]>([]);\n selectable = input<boolean>(true);\n checkable = input<boolean>(false);\n selectedId = input<string | null>(null);\n expandedIds = input<string[]>([]);\n\n nodeSelect = output<TreeNodeEvent>();\n nodeExpand = output<TreeNodeEvent>();\n nodeCollapse = output<TreeNodeEvent>();\n checkChange = output<{ node: TreeNode; checked: boolean }>();\n\n private expandedSet = signal<Set<string>>(new Set());\n private checkedSet = signal<Set<string>>(new Set());\n focusedId = signal<string | null>(null);\n\n isExpanded(id: string): boolean { return this.expandedSet().has(id) || this.expandedIds().includes(id); }\n isChecked(id: string): boolean { return this.checkedSet().has(id); }\n hasNodeChildren(node: TreeNode): boolean { return !!(node.children?.length || node.hasChildren); }\n\n onNodeClick(node: TreeNode, e: MouseEvent): void {\n e.stopPropagation();\n this.focusedId.set(node.id);\n if (this.selectable()) this.nodeSelect.emit({ node });\n if (this.hasNodeChildren(node)) this.toggleExpand(node, e);\n }\n\n toggleExpand(node: TreeNode, e: MouseEvent): void {\n e.stopPropagation();\n const s = new Set(this.expandedSet());\n if (s.has(node.id)) {\n s.delete(node.id);\n this.nodeCollapse.emit({ node });\n } else {\n s.add(node.id);\n this.nodeExpand.emit({ node });\n }\n this.expandedSet.set(s);\n }\n\n onCheck(node: TreeNode): void {\n const s = new Set(this.checkedSet());\n const checked = !s.has(node.id);\n checked ? s.add(node.id) : s.delete(node.id);\n this.checkedSet.set(s);\n this.checkChange.emit({ node, checked });\n }\n\n onKeyDown(e: KeyboardEvent): void {\n const flat = this.flatVisibleIds();\n const cur = this.focusedId();\n const idx = flat.indexOf(cur ?? '');\n if (e.key === 'ArrowDown') { e.preventDefault(); if (idx < flat.length - 1) this.focusedId.set(flat[idx + 1]); }\n if (e.key === 'ArrowUp') { e.preventDefault(); if (idx > 0) this.focusedId.set(flat[idx - 1]); }\n if (e.key === 'Enter' || e.key === ' ') {\n if (cur) {\n const node = this.findNode(cur, this.nodes());\n if (node) this.nodeSelect.emit({ node });\n }\n }\n }\n\n private flatVisibleIds(): string[] {\n const ids: string[] = [];\n const collect = (nodes: TreeNode[]) => {\n for (const n of nodes) {\n ids.push(n.id);\n if (this.isExpanded(n.id) && n.children) collect(n.children);\n }\n };\n collect(this.nodes());\n return ids;\n }\n\n private findNode(id: string, nodes: TreeNode[]): TreeNode | null {\n for (const n of nodes) {\n if (n.id === id) return n;\n if (n.children) { const found = this.findNode(id, n.children); if (found) return found; }\n }\n return null;\n }\n\n /** Expand all nodes that have children. */\n expandAll(): void {\n const ids = new Set<string>();\n const collect = (nodes: TreeNode[]) => {\n for (const n of nodes) {\n if (this.hasNodeChildren(n)) {\n ids.add(n.id);\n if (n.children) collect(n.children);\n }\n }\n };\n collect(this.nodes());\n this.expandedSet.set(ids);\n }\n\n /** Collapse all nodes. */\n collapseAll(): void {\n this.expandedSet.set(new Set());\n }\n}\n","import {\n Component, ChangeDetectionStrategy, input, output, signal, computed, effect,\n ContentChild, TemplateRef\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\nexport interface ListViewItemClickEvent<T = unknown> { item: T; index: number; }\nexport interface ListViewSelectionEvent<T = unknown> { selectedItems: T[]; }\nexport interface ListViewPageChangeEvent {\n page: number;\n pageSize: number;\n totalItems: number;\n totalPages: number;\n}\n\n@Component({\n selector: 'ngx-list-view',\n standalone: true,\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"ngx-list-view\">\n <!-- Header slot -->\n <ng-content select=\"[listHeader]\"/>\n\n <!-- Loading -->\n @if (loading()) {\n <div class=\"lv-loading\">\n <div class=\"lv-spinner\"></div>\n <span>Loading...</span>\n </div>\n } @else if (totalItems() === 0) {\n <div class=\"lv-empty\">No items to display.</div>\n } @else {\n <div class=\"lv-list\" role=\"listbox\" [attr.aria-multiselectable]=\"multiselect()\">\n @for (item of visibleItems(); track trackFn(item, pageStartIndex() + $index); let i = $index) {\n <div\n class=\"lv-item\"\n [class.lv-alt]=\"(pageStartIndex() + i) % 2 === 1\"\n [class.lv-selected]=\"isSelected(item)\"\n role=\"option\"\n [attr.aria-selected]=\"isSelected(item)\"\n (click)=\"onItemClick(item, pageStartIndex() + i)\"\n >\n @if (itemTemplate) {\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item, index: pageStartIndex() + i }\"/>\n } @else {\n <span class=\"lv-default-text\">{{ getLabel(item) }}</span>\n }\n </div>\n }\n </div>\n\n @if (pageSize() > 0 && totalPages() > 1) {\n <div class=\"lv-pager\">\n <button class=\"lv-pager-btn\" type=\"button\" [disabled]=\"currentPage() === 1\" (click)=\"goToPreviousPage()\">Previous</button>\n <div class=\"lv-pager-meta\">Page {{ currentPage() }} of {{ totalPages() }} <span class=\"lv-pager-count\">{{ totalItems() }} items</span></div>\n <button class=\"lv-pager-btn\" type=\"button\" [disabled]=\"currentPage() === totalPages()\" (click)=\"goToNextPage()\">Next</button>\n </div>\n }\n }\n\n <!-- Footer slot -->\n <ng-content select=\"[listFooter]\"/>\n </div>\n `,\n styles: [`\n :host {\n display: block;\n }\n .ngx-list-view {\n border: 1px solid var(--ngx-list-border, #dee2e6); border-radius: var(--ngx-list-radius, 4px);\n background: var(--ngx-list-bg, #fff); overflow: hidden; font-family: inherit;\n }\n .lv-list { overflow-y: auto; }\n .lv-item {\n padding: 10px 16px; cursor: pointer; border-bottom: 1px solid var(--ngx-list-border, #dee2e6);\n transition: background 0.1s; color: var(--ngx-list-text, #212529); font-size: 13px;\n }\n .lv-item:last-child { border-bottom: none; }\n .lv-item:hover { background: var(--ngx-list-hover-bg, #f1f3f5); }\n .lv-item.lv-alt { background: var(--ngx-list-alt-bg, #f8f9fa); }\n .lv-item.lv-alt:hover { background: var(--ngx-list-hover-bg, #f1f3f5); }\n .lv-item.lv-selected { background: var(--ngx-list-selected-bg, #e8f0fe); color: var(--ngx-list-selected-color, #1a73e8); font-weight: 500; }\n .lv-item.lv-selected:hover { background: var(--ngx-list-selected-bg, #e8f0fe); }\n .lv-default-text { display: block; }\n .lv-loading, .lv-empty {\n display: flex; align-items: center; justify-content: center; gap: 8px;\n padding: 32px; color: #adb5bd; font-size: 13px;\n }\n .lv-spinner {\n width: 20px; height: 20px; border: 2px solid #dee2e6; border-top-color: #4a90d9;\n border-radius: 50%; animation: spin 0.7s linear infinite;\n }\n .lv-pager {\n display: flex; align-items: center; justify-content: space-between; gap: 12px;\n padding: 10px 14px; border-top: 1px solid var(--ngx-list-border, #dee2e6); background: #fafbfc;\n }\n .lv-pager-btn {\n border: 1px solid #ced4da; background: #fff; color: #495057; border-radius: 4px;\n padding: 6px 10px; font-size: 12px; cursor: pointer; font-family: inherit;\n }\n .lv-pager-btn:hover:not(:disabled) { background: #f1f3f5; }\n .lv-pager-btn:disabled { opacity: 0.5; cursor: not-allowed; }\n .lv-pager-meta { font-size: 12px; color: #495057; }\n .lv-pager-count { color: #6c757d; }\n @keyframes spin { to { transform: rotate(360deg); } }\n `]\n})\nexport class ListViewComponent<T = unknown> {\n items = input<T[]>([]);\n selectable = input<boolean>(true);\n multiselect = input<boolean>(false);\n loading = input<boolean>(false);\n labelField = input<string>('label');\n pageSize = input<number>(0);\n\n itemClick = output<ListViewItemClickEvent<T>>();\n selectionChange = output<ListViewSelectionEvent<T>>();\n pageChange = output<ListViewPageChangeEvent>();\n\n @ContentChild('itemTemplate') itemTemplate?: TemplateRef<{ $implicit: T; index: number }>;\n\n selectedItems = signal<Set<T>>(new Set());\n currentPage = signal(1);\n totalItems = computed(() => this.items().length);\n totalPages = computed(() => {\n const size = this.pageSize();\n if (size <= 0) {\n return this.totalItems() > 0 ? 1 : 0;\n }\n return Math.max(1, Math.ceil(this.totalItems() / size));\n });\n pageStartIndex = computed(() => this.pageSize() > 0 ? (this.currentPage() - 1) * this.pageSize() : 0);\n visibleItems = computed(() => {\n const size = this.pageSize();\n if (size <= 0) {\n return this.items();\n }\n\n return this.items().slice(this.pageStartIndex(), this.pageStartIndex() + size);\n });\n\n constructor() {\n effect(() => {\n if (this.pageSize() <= 0) {\n if (this.currentPage() !== 1) {\n this.currentPage.set(1);\n }\n return;\n }\n\n const maxPage = this.totalPages();\n if (maxPage > 0 && this.currentPage() > maxPage) {\n this.currentPage.set(maxPage);\n this.emitPageChange();\n }\n });\n }\n\n isSelected(item: T): boolean { return this.selectedItems().has(item); }\n\n onItemClick(item: T, index: number): void {\n this.itemClick.emit({ item, index });\n if (!this.selectable()) return;\n const s = new Set(this.selectedItems());\n if (this.multiselect()) {\n s.has(item) ? s.delete(item) : s.add(item);\n } else {\n if (s.has(item) && s.size === 1) s.clear();\n else { s.clear(); s.add(item); }\n }\n this.selectedItems.set(s);\n this.selectionChange.emit({ selectedItems: [...s] });\n }\n\n goToPreviousPage(): void {\n this.setPage(this.currentPage() - 1);\n }\n\n goToNextPage(): void {\n this.setPage(this.currentPage() + 1);\n }\n\n private setPage(page: number): void {\n const nextPage = Math.max(1, Math.min(this.totalPages(), page));\n if (nextPage === this.currentPage()) {\n return;\n }\n\n this.currentPage.set(nextPage);\n this.emitPageChange();\n }\n\n private emitPageChange(): void {\n this.pageChange.emit({\n page: this.currentPage(),\n pageSize: this.pageSize(),\n totalItems: this.totalItems(),\n totalPages: this.totalPages(),\n });\n }\n\n getLabel(item: T): string {\n if (typeof item === 'string' || typeof item === 'number') return String(item);\n const r = item as Record<string, unknown>;\n return String(r[this.labelField()] ?? r['label'] ?? r['name'] ?? r['title'] ?? JSON.stringify(item));\n }\n\n trackFn(item: T, index: number): string {\n if (typeof item === 'object' && item !== null) {\n const r = item as Record<string, unknown>;\n return String(r['id'] ?? r['key'] ?? index);\n }\n return String(index);\n }\n}\n","/*\n * Public API Surface — secondary entry point: ngx-core-components/views\n */\n\n// Tree View — hierarchical/nested data with expand/collapse\nexport { TreeViewComponent } from './tree-view/tree-view.component';\nexport type { TreeNode, TreeNodeEvent } from './tree-view/tree-view.component';\n\n// List View — flat data arrays with selection and custom templates\nexport { ListViewComponent } from './list-view/list-view.component';\nexport type {\n ListViewItemClickEvent,\n ListViewSelectionEvent,\n ListViewPageChangeEvent,\n} from './list-view/list-view.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAqHa,iBAAiB,CAAA;AAC5B,IAAA,KAAK,GAAG,KAAK,CAAa,EAAE,CAAC;AAC7B,IAAA,UAAU,GAAG,KAAK,CAAU,IAAI,CAAC;AACjC,IAAA,SAAS,GAAG,KAAK,CAAU,KAAK,CAAC;AACjC,IAAA,UAAU,GAAG,KAAK,CAAgB,IAAI,CAAC;AACvC,IAAA,WAAW,GAAG,KAAK,CAAW,EAAE,CAAC;IAEjC,UAAU,GAAG,MAAM,EAAiB;IACpC,UAAU,GAAG,MAAM,EAAiB;IACpC,YAAY,GAAG,MAAM,EAAiB;IACtC,WAAW,GAAG,MAAM,EAAwC;AAEpD,IAAA,WAAW,GAAG,MAAM,CAAc,IAAI,GAAG,EA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AAA,EAAA,MAAA,EAAA,CAAA,gpDAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EA/CS,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FA2Ff,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBA9F7B,SAAS;+BACE,eAAe,EAAA,UAAA,EACb,IAAI,EAAA,OAAA,EACP,CAAC,gBAAgB,CAAC,EAAA,eAAA,EACV,uBAAuB,CAAC,MAAM,EAAA,QAAA,EACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,gpDAAA,CAAA,EAAA;wDAwD6B,YAAY,EAAA,CAAA;sBAAzC,YAAY;uBAAC,cAAc;;;ACzH9B;;AAEG;AAEH;;ACJA;;AAEG;;;;"}
@@ -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 type { ChartSeries, ChartDataPoint } from 'ngx-core-components/charts';\nexport { CHART_COLORS } 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} 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 { DataGridComponent } 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} 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';\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\n// ===== Buttons (also available via ngx-core-components/buttons) =====\nexport { ButtonComponent, ButtonGroupComponent, ChipComponent, ChipListComponent, SplitButtonComponent, DropDownButtonComponent } from 'ngx-core-components/buttons';\nexport type { ButtonVariant, ButtonSize, ButtonShape, ChipVariant, SplitButtonItem, DropDownButtonItem } from 'ngx-core-components/buttons';\n\n// ===== Layout (also available via ngx-core-components/layout) =====\nexport { CardComponent, TabStripComponent, TabComponent, AccordionComponent, StepperComponent, SplitterComponent } from 'ngx-core-components/layout';\nexport type { CardVariant, AccordionItem, StepperStep } from 'ngx-core-components/layout';\n\n// ===== Feedback (also available via ngx-core-components/feedback) =====\nexport { BadgeComponent, ProgressBarComponent, SkeletonComponent, NotificationService, NotificationContainerComponent } from 'ngx-core-components/feedback';\nexport type { BadgeVariant, BadgePosition, ProgressVariant, SkeletonShape, NotificationOptions, NotificationType, NotificationPosition } from 'ngx-core-components/feedback';\n\n// ===== Navigation (also available via ngx-core-components/navigation) =====\nexport { BreadcrumbComponent, MenuComponent } from 'ngx-core-components/navigation';\nexport type { BreadcrumbItem, MenuItem } from 'ngx-core-components/navigation';\n\n// ===== Additional Inputs (also available via ngx-core-components/inputs) =====\nexport { SliderComponent, SwitchComponent, RatingComponent, NumericTextBoxComponent, TextareaComponent, ColorPickerComponent, TimePickerComponent, DateRangePickerComponent } 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","/**\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,GAAuB,IAAI;IAG5C,YAAY,GAAA;AACV,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE;AAC9B,QAAA,IAAI,CAAC,IAAI;YAAE;AACX,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACxB;IAGA,YAAY,GAAA;QACV,IAAI,CAAC,WAAW,EAAE;IACpB;AAEQ,IAAA,WAAW,CAAC,IAAY,EAAA;QAC9B,IAAI,C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AAA,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 type { ChartSeries, ChartDataPoint } from 'ngx-core-components/charts';\nexport { CHART_COLORS } 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} 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 { DataGridComponent } 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} 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';\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\n// ===== Buttons (also available via ngx-core-components/buttons) =====\nexport {\n ButtonComponent,\n ButtonGroupComponent,\n ChipComponent,\n ChipListComponent,\n SplitButtonComponent,\n DropDownButtonComponent,\n} from 'ngx-core-components/buttons';\nexport type {\n ButtonVariant,\n ButtonSize,\n ButtonShape,\n ChipVariant,\n SplitButtonItem,\n DropDownButtonItem,\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} from 'ngx-core-components/layout';\nexport type { CardVariant, AccordionItem, StepperStep } 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} from 'ngx-core-components/feedback';\nexport type {\n BadgeVariant,\n BadgePosition,\n ProgressVariant,\n SkeletonShape,\n NotificationOptions,\n NotificationType,\n NotificationPosition,\n} from 'ngx-core-components/feedback';\n\n// ===== Navigation (also available via ngx-core-components/navigation) =====\nexport { BreadcrumbComponent, MenuComponent } from 'ngx-core-components/navigation';\nexport type { BreadcrumbItem, MenuItem } 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} 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","/**\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,GAAuB,IAAI;IAG5C,YAAY,GAAA;AACV,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE;AAC9B,QAAA,IAAI,CAAC,IAAI;YAAE;AACX,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACxB;IAGA,YAAY,GAAA;QACV,IAAI,CAAC,WAAW,EAAE;IACpB;AAEQ,IAAA,WAAW,CAAC,IAAY,EAAA;QAC9B,IAAI,CAAC,WAAW,EAAE;QAClB,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAgB;AAC7D,QAAA,GAAG,CAAC,SAAS,GAAG,aAAa;AAC7B,QAAA,GAAG,CAAC,YAAY,CAAC,MAAM,EAAE,SAAS,CAAC;AACnC,QAAA,GAAG,CAAC,WAAW,GAAG,IAAI;AACtB,QAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAA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;;AAEG;;;;"}
@@ -12,6 +12,9 @@ export declare class DropdownComponent implements ControlValueAccessor {
12
12
  placeholder: import("@angular/core").InputSignal<string>;
13
13
  disabled: import("@angular/core").InputSignal<boolean>;
14
14
  filterable: import("@angular/core").InputSignal<boolean>;
15
+ required: import("@angular/core").InputSignal<boolean>;
16
+ error: import("@angular/core").InputSignal<string>;
17
+ hint: import("@angular/core").InputSignal<string>;
15
18
  valueChange: import("@angular/core").OutputEmitterRef<unknown>;
16
19
  isOpen: import("@angular/core").WritableSignal<boolean>;
17
20
  filterText: import("@angular/core").WritableSignal<string>;
@@ -36,5 +39,5 @@ export declare class DropdownComponent implements ControlValueAccessor {
36
39
  registerOnTouched(fn: () => void): void;
37
40
  setDisabledState(_isDisabled: boolean): void;
38
41
  static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "ngx-dropdown", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "filterable": { "alias": "filterable"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "ngx-dropdown", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "filterable": { "alias": "filterable"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
40
43
  }
@@ -1,18 +1,26 @@
1
+ import { OnInit } from '@angular/core';
1
2
  import * as i0 from "@angular/core";
2
- export declare class SliderComponent {
3
+ export declare class SliderComponent implements OnInit {
3
4
  label: import("@angular/core").InputSignal<string>;
4
5
  min: import("@angular/core").InputSignal<number>;
5
6
  max: import("@angular/core").InputSignal<number>;
6
7
  step: import("@angular/core").InputSignal<number>;
7
- value: import("@angular/core").WritableSignal<number>;
8
- low: import("@angular/core").WritableSignal<number>;
9
- high: import("@angular/core").WritableSignal<number>;
10
8
  range: import("@angular/core").InputSignal<boolean>;
11
9
  disabled: import("@angular/core").InputSignal<boolean>;
12
10
  showValue: import("@angular/core").InputSignal<boolean>;
13
11
  showTicks: import("@angular/core").InputSignal<boolean>;
12
+ /** Initial value for single-handle mode. */
13
+ initialValue: import("@angular/core").InputSignal<number>;
14
+ /** Initial low value for range mode. */
15
+ initialLow: import("@angular/core").InputSignal<number>;
16
+ /** Initial high value for range mode. */
17
+ initialHigh: import("@angular/core").InputSignal<number>;
18
+ value: import("@angular/core").WritableSignal<number>;
19
+ low: import("@angular/core").WritableSignal<number>;
20
+ high: import("@angular/core").WritableSignal<number>;
14
21
  valueChange: import("@angular/core").OutputEmitterRef<number>;
15
22
  rangeChange: import("@angular/core").OutputEmitterRef<[number, number]>;
23
+ ngOnInit(): void;
16
24
  pct: import("@angular/core").Signal<number>;
17
25
  lowPct: import("@angular/core").Signal<number>;
18
26
  highPct: import("@angular/core").Signal<number>;
@@ -22,5 +30,5 @@ export declare class SliderComponent {
22
30
  onLow(e: Event): void;
23
31
  onHigh(e: Event): void;
24
32
  static ɵfac: i0.ɵɵFactoryDeclaration<SliderComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<SliderComponent, "ngx-slider", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "range": { "alias": "range"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "showTicks": { "alias": "showTicks"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "rangeChange": "rangeChange"; }, never, never, true, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<SliderComponent, "ngx-slider", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "range": { "alias": "range"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "showTicks": { "alias": "showTicks"; "required": false; "isSignal": true; }; "initialValue": { "alias": "initialValue"; "required": false; "isSignal": true; }; "initialLow": { "alias": "initialLow"; "required": false; "isSignal": true; }; "initialHigh": { "alias": "initialHigh"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "rangeChange": "rangeChange"; }, never, never, true, never>;
26
34
  }
@@ -9,6 +9,11 @@ export declare class TextBoxComponent implements ControlValueAccessor {
9
9
  readonly: import("@angular/core").InputSignal<boolean>;
10
10
  error: import("@angular/core").InputSignal<string>;
11
11
  hint: import("@angular/core").InputSignal<string>;
12
+ maxlength: import("@angular/core").InputSignal<number>;
13
+ clearable: import("@angular/core").InputSignal<boolean>;
14
+ showCharCount: import("@angular/core").InputSignal<boolean>;
15
+ prefixIcon: import("@angular/core").InputSignal<string>;
16
+ suffixIcon: import("@angular/core").InputSignal<string>;
12
17
  valueChange: import("@angular/core").OutputEmitterRef<string>;
13
18
  focusChange: import("@angular/core").OutputEmitterRef<boolean>;
14
19
  isFocused: import("@angular/core").WritableSignal<boolean>;
@@ -21,10 +26,11 @@ export declare class TextBoxComponent implements ControlValueAccessor {
21
26
  onInput(e: Event): void;
22
27
  onFocus(): void;
23
28
  onBlur(): void;
29
+ clearValue(): void;
24
30
  writeValue(val: string): void;
25
31
  registerOnChange(fn: (v: string) => void): void;
26
32
  registerOnTouched(fn: () => void): void;
27
33
  setDisabledState(_isDisabled: boolean): void;
28
34
  static ɵfac: i0.ɵɵFactoryDeclaration<TextBoxComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<TextBoxComponent, "ngx-textbox", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "focusChange": "focusChange"; }, never, never, true, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextBoxComponent, "ngx-textbox", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "maxlength": { "alias": "maxlength"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "showCharCount": { "alias": "showCharCount"; "required": false; "isSignal": true; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; "isSignal": true; }; "suffixIcon": { "alias": "suffixIcon"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "focusChange": "focusChange"; }, never, never, true, never>;
30
36
  }
@@ -10,7 +10,8 @@ export declare class CardComponent {
10
10
  hoverable: import("@angular/core").InputSignal<boolean>;
11
11
  selectable: import("@angular/core").InputSignal<boolean>;
12
12
  selected: import("@angular/core").InputSignal<boolean>;
13
- get hasHeader(): () => string;
13
+ cardClick: import("@angular/core").OutputEmitterRef<MouseEvent>;
14
+ hasHeader: import("@angular/core").Signal<boolean>;
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "ngx-card", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "headerIcon": { "alias": "headerIcon"; "required": false; "isSignal": true; }; "imageUrl": { "alias": "imageUrl"; "required": false; "isSignal": true; }; "imageAlt": { "alias": "imageAlt"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "hoverable": { "alias": "hoverable"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; }, {}, never, ["[cardActions]", "*", "[cardFooter]"], true, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "ngx-card", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "headerIcon": { "alias": "headerIcon"; "required": false; "isSignal": true; }; "imageUrl": { "alias": "imageUrl"; "required": false; "isSignal": true; }; "imageAlt": { "alias": "imageAlt"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "hoverable": { "alias": "hoverable"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; }, { "cardClick": "cardClick"; }, never, ["[cardActions]", "*", "[cardFooter]"], true, never>;
16
17
  }
@@ -5,6 +5,7 @@ export declare class TabComponent {
5
5
  icon: import("@angular/core").InputSignal<string>;
6
6
  disabled: import("@angular/core").InputSignal<boolean>;
7
7
  badge: import("@angular/core").InputSignal<string | number>;
8
+ isActive: import("@angular/core").WritableSignal<boolean>;
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<TabComponent, never>;
9
10
  static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "ngx-tab", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
10
11
  }
@@ -17,6 +18,7 @@ export declare class TabStripComponent implements AfterContentInit {
17
18
  tabChange: import("@angular/core").OutputEmitterRef<number>;
18
19
  ngAfterContentInit(): void;
19
20
  selectTab(index: number): void;
21
+ private _syncActiveTabs;
20
22
  static ɵfac: i0.ɵɵFactoryDeclaration<TabStripComponent, never>;
21
23
  static ɵcmp: i0.ɵɵComponentDeclaration<TabStripComponent, "ngx-tab-strip", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; }, { "tabChange": "tabChange"; }, ["tabs"], ["*"], true, never>;
22
24
  }
@@ -10,11 +10,14 @@ export interface MenuItem {
10
10
  export declare class MenuComponent {
11
11
  items: import("@angular/core").InputSignal<MenuItem[]>;
12
12
  orientation: import("@angular/core").InputSignal<"horizontal" | "vertical">;
13
+ /** Label or URL of the currently active item — used to highlight the active menu entry. */
14
+ activeItem: import("@angular/core").InputSignal<string>;
13
15
  openIndex: import("@angular/core").WritableSignal<number | null>;
14
16
  itemClick: import("@angular/core").OutputEmitterRef<MenuItem>;
17
+ isActiveItem(item: MenuItem): boolean;
15
18
  handleClick(event: Event, item: MenuItem, i: number): void;
16
19
  handleSubClick(event: Event, child: MenuItem): void;
17
20
  closeAll(): void;
18
21
  static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "ngx-menu", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; }, never, never, true, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "ngx-menu", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "activeItem": { "alias": "activeItem"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; }, never, never, true, never>;
20
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-core-components",
3
- "version": "0.1.6",
3
+ "version": "0.3.0",
4
4
  "description": "Angular component library featuring a full-featured SVG Gantt Chart with drag/resize, dependencies, zoom, tree hierarchy, and theming.",
5
5
  "keywords": [
6
6
  "angular",
package/public-api.d.ts CHANGED
@@ -30,13 +30,13 @@ export type { ListViewItemClickEvent, ListViewSelectionEvent, ListViewPageChange
30
30
  export { DialogService } from 'ngx-core-components/dialog';
31
31
  export type { DialogRef, DialogConfig } from 'ngx-core-components/dialog';
32
32
  export { DialogContainerComponent } from 'ngx-core-components/dialog';
33
- export { ButtonComponent, ButtonGroupComponent, ChipComponent, ChipListComponent, SplitButtonComponent, DropDownButtonComponent } from 'ngx-core-components/buttons';
34
- export type { ButtonVariant, ButtonSize, ButtonShape, ChipVariant, SplitButtonItem, DropDownButtonItem } from 'ngx-core-components/buttons';
35
- export { CardComponent, TabStripComponent, TabComponent, AccordionComponent, StepperComponent, SplitterComponent } from 'ngx-core-components/layout';
33
+ export { ButtonComponent, ButtonGroupComponent, ChipComponent, ChipListComponent, SplitButtonComponent, DropDownButtonComponent, } from 'ngx-core-components/buttons';
34
+ export type { ButtonVariant, ButtonSize, ButtonShape, ChipVariant, SplitButtonItem, DropDownButtonItem, } from 'ngx-core-components/buttons';
35
+ export { CardComponent, TabStripComponent, TabComponent, AccordionComponent, StepperComponent, SplitterComponent, } from 'ngx-core-components/layout';
36
36
  export type { CardVariant, AccordionItem, StepperStep } from 'ngx-core-components/layout';
37
- export { BadgeComponent, ProgressBarComponent, SkeletonComponent, NotificationService, NotificationContainerComponent } from 'ngx-core-components/feedback';
38
- export type { BadgeVariant, BadgePosition, ProgressVariant, SkeletonShape, NotificationOptions, NotificationType, NotificationPosition } from 'ngx-core-components/feedback';
37
+ export { BadgeComponent, ProgressBarComponent, SkeletonComponent, NotificationService, NotificationContainerComponent, } from 'ngx-core-components/feedback';
38
+ export type { BadgeVariant, BadgePosition, ProgressVariant, SkeletonShape, NotificationOptions, NotificationType, NotificationPosition, } from 'ngx-core-components/feedback';
39
39
  export { BreadcrumbComponent, MenuComponent } from 'ngx-core-components/navigation';
40
40
  export type { BreadcrumbItem, MenuItem } from 'ngx-core-components/navigation';
41
- export { SliderComponent, SwitchComponent, RatingComponent, NumericTextBoxComponent, TextareaComponent, ColorPickerComponent, TimePickerComponent, DateRangePickerComponent } from 'ngx-core-components/inputs';
41
+ export { SliderComponent, SwitchComponent, RatingComponent, NumericTextBoxComponent, TextareaComponent, ColorPickerComponent, TimePickerComponent, DateRangePickerComponent, } from 'ngx-core-components/inputs';
42
42
  export { QrCodeComponent, BarcodeComponent } from 'ngx-core-components/barcodes';
@@ -5,6 +5,7 @@ export interface TreeNode {
5
5
  icon?: string;
6
6
  children?: TreeNode[];
7
7
  hasChildren?: boolean;
8
+ disabled?: boolean;
8
9
  data?: unknown;
9
10
  }
10
11
  export interface TreeNodeEvent {
@@ -35,6 +36,10 @@ export declare class TreeViewComponent {
35
36
  onKeyDown(e: KeyboardEvent): void;
36
37
  private flatVisibleIds;
37
38
  private findNode;
39
+ /** Expand all nodes that have children. */
40
+ expandAll(): void;
41
+ /** Collapse all nodes. */
42
+ collapseAll(): void;
38
43
  static ɵfac: i0.ɵɵFactoryDeclaration<TreeViewComponent, never>;
39
44
  static ɵcmp: i0.ɵɵComponentDeclaration<TreeViewComponent, "ngx-tree-view", never, { "nodes": { "alias": "nodes"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "checkable": { "alias": "checkable"; "required": false; "isSignal": true; }; "selectedId": { "alias": "selectedId"; "required": false; "isSignal": true; }; "expandedIds": { "alias": "expandedIds"; "required": false; "isSignal": true; }; }, { "nodeSelect": "nodeSelect"; "nodeExpand": "nodeExpand"; "nodeCollapse": "nodeCollapse"; "checkChange": "checkChange"; }, never, never, true, never>;
40
45
  }