ngx-core-components 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/ai-audio-wave/ai-audio-wave.component.d.ts +28 -0
- package/ai/ai-chat-widget/ai-chat-widget.component.d.ts +26 -0
- package/ai/ai-code-editor/ai-code-editor.component.d.ts +30 -0
- package/ai/ai-model-compare/ai-model-compare.component.d.ts +31 -0
- package/ai/ai-prompt-editor/ai-prompt-editor.component.d.ts +22 -0
- package/ai/public-api.d.ts +7 -0
- package/buttons/public-api.d.ts +2 -0
- package/buttons/speed-dial/speed-dial.component.d.ts +24 -0
- package/charts/area-chart/area-chart.component.d.ts +43 -0
- package/charts/funnel-chart/funnel-chart.component.d.ts +26 -0
- package/charts/gauge-chart/gauge-chart.component.d.ts +25 -0
- package/charts/heatmap-chart/heatmap-chart.component.d.ts +34 -0
- package/charts/public-api.d.ts +10 -0
- package/charts/radar-chart/radar-chart.component.d.ts +51 -0
- package/charts/treemap-chart/treemap-chart.component.d.ts +33 -0
- package/feedback/alert/alert.component.d.ts +19 -0
- package/feedback/avatar/avatar.component.d.ts +37 -0
- package/feedback/countdown/countdown.component.d.ts +46 -0
- package/feedback/empty-state/empty-state.component.d.ts +14 -0
- package/feedback/public-api.d.ts +9 -0
- package/feedback/stat-card/stat-card.component.d.ts +18 -0
- package/fesm2022/ngx-core-components-ai.mjs +1418 -2
- package/fesm2022/ngx-core-components-ai.mjs.map +1 -1
- package/fesm2022/ngx-core-components-buttons.mjs +133 -1
- package/fesm2022/ngx-core-components-buttons.mjs.map +1 -1
- package/fesm2022/ngx-core-components-charts.mjs +1474 -2
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-feedback.mjs +973 -5
- package/fesm2022/ngx-core-components-feedback.mjs.map +1 -1
- package/fesm2022/ngx-core-components-inputs.mjs +1050 -12
- package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
- package/fesm2022/ngx-core-components-layout.mjs +930 -2
- package/fesm2022/ngx-core-components-layout.mjs.map +1 -1
- package/fesm2022/ngx-core-components-navigation.mjs +442 -2
- package/fesm2022/ngx-core-components-navigation.mjs.map +1 -1
- package/fesm2022/ngx-core-components-views.mjs +1626 -3
- package/fesm2022/ngx-core-components-views.mjs.map +1 -1
- package/fesm2022/ngx-core-components.mjs +8 -8
- package/fesm2022/ngx-core-components.mjs.map +1 -1
- package/inputs/file-preview/file-preview.component.d.ts +61 -0
- package/inputs/file-upload/file-upload.component.d.ts +51 -0
- package/inputs/public-api.d.ts +7 -0
- package/inputs/segmented-control/segmented-control.component.d.ts +20 -0
- package/inputs/tag-input/tag-input.component.d.ts +25 -0
- package/layout/carousel/carousel.component.d.ts +39 -0
- package/layout/dashboard-layout/dashboard-layout.component.d.ts +43 -0
- package/layout/dashboard-layout/models.d.ts +26 -0
- package/layout/drawer/drawer.component.d.ts +21 -0
- package/layout/public-api.d.ts +4 -0
- package/navigation/back-to-top/back-to-top.component.d.ts +15 -0
- package/navigation/command-palette/command-palette.component.d.ts +34 -0
- package/navigation/public-api.d.ts +3 -0
- package/package.json +1 -1
- package/public-api.d.ts +33 -9
- package/views/image-compare/image-compare.component.d.ts +26 -0
- package/views/kanban/kanban.component.d.ts +41 -0
- package/views/kanban/models.d.ts +19 -0
- package/views/key-value-list/key-value-list.component.d.ts +36 -0
- package/views/public-api.d.ts +11 -0
- package/views/scheduler/models.d.ts +18 -0
- package/views/scheduler/scheduler.component.d.ts +36 -0
- package/views/timeline/timeline.component.d.ts +19 -0
- package/views/virtual-list/virtual-list.component.d.ts +42 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, output, Component, signal, HostListener } from '@angular/core';
|
|
2
|
+
import { input, output, Component, signal, HostListener, effect, computed, ViewChild, ChangeDetectionStrategy } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
3
4
|
|
|
4
5
|
class BreadcrumbComponent {
|
|
5
6
|
items = input([]);
|
|
@@ -182,6 +183,445 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
182
183
|
args: ['document:click']
|
|
183
184
|
}] } });
|
|
184
185
|
|
|
186
|
+
class CommandPaletteComponent {
|
|
187
|
+
// Inputs configs
|
|
188
|
+
commands = input.required();
|
|
189
|
+
placeholder = input('Type a command or search...');
|
|
190
|
+
// Output emissions
|
|
191
|
+
commandSelected = output();
|
|
192
|
+
searchInput;
|
|
193
|
+
// Open status logic
|
|
194
|
+
isOpen = signal(false);
|
|
195
|
+
filterQuery = signal('');
|
|
196
|
+
// Currently focused item in keyboard selection
|
|
197
|
+
activeItem = signal(null);
|
|
198
|
+
// Reactive effect to focus the search input field upon dialog opens
|
|
199
|
+
constructor() {
|
|
200
|
+
effect(() => {
|
|
201
|
+
if (this.isOpen()) {
|
|
202
|
+
setTimeout(() => {
|
|
203
|
+
this.searchInput?.nativeElement?.focus();
|
|
204
|
+
}, 50);
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
// Filter commands by search query
|
|
209
|
+
filteredCommands = computed(() => {
|
|
210
|
+
const query = this.filterQuery().toLowerCase().trim();
|
|
211
|
+
if (!query)
|
|
212
|
+
return this.commands();
|
|
213
|
+
return this.commands().filter(c => c.label.toLowerCase().includes(query) ||
|
|
214
|
+
(c.desc && c.desc.toLowerCase().includes(query)) ||
|
|
215
|
+
(c.category && c.category.toLowerCase().includes(query)));
|
|
216
|
+
});
|
|
217
|
+
// Group commands by category computed signals
|
|
218
|
+
groupedResults = computed(() => {
|
|
219
|
+
const list = this.filteredCommands();
|
|
220
|
+
const groups = [];
|
|
221
|
+
list.forEach(item => {
|
|
222
|
+
const cat = item.category || 'General';
|
|
223
|
+
let grp = groups.find(g => g.category === cat);
|
|
224
|
+
if (!grp) {
|
|
225
|
+
grp = { category: cat, items: [] };
|
|
226
|
+
groups.push(grp);
|
|
227
|
+
}
|
|
228
|
+
grp.items.push(item);
|
|
229
|
+
});
|
|
230
|
+
return groups;
|
|
231
|
+
});
|
|
232
|
+
// Flat list of current results for keyboard navigation indices mappings
|
|
233
|
+
flatResultsList = computed(() => {
|
|
234
|
+
const groups = this.groupedResults();
|
|
235
|
+
const flat = [];
|
|
236
|
+
groups.forEach(g => flat.push(...g.items));
|
|
237
|
+
return flat;
|
|
238
|
+
});
|
|
239
|
+
// Watch key inputs reactive alignment
|
|
240
|
+
onSearchInput(event) {
|
|
241
|
+
const query = event.target.value;
|
|
242
|
+
this.filterQuery.set(query);
|
|
243
|
+
// Reset active item to first result in filtered list
|
|
244
|
+
const results = this.flatResultsList();
|
|
245
|
+
this.activeItem.set(results.length > 0 ? results[0] : null);
|
|
246
|
+
}
|
|
247
|
+
openPalette() {
|
|
248
|
+
this.filterQuery.set('');
|
|
249
|
+
const results = this.commands();
|
|
250
|
+
this.activeItem.set(results.length > 0 ? results[0] : null);
|
|
251
|
+
this.isOpen.set(true);
|
|
252
|
+
}
|
|
253
|
+
closePalette() {
|
|
254
|
+
this.isOpen.set(false);
|
|
255
|
+
}
|
|
256
|
+
toggleOpen() {
|
|
257
|
+
if (this.isOpen()) {
|
|
258
|
+
this.closePalette();
|
|
259
|
+
}
|
|
260
|
+
else {
|
|
261
|
+
this.openPalette();
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
executeCommand(cmd) {
|
|
265
|
+
this.commandSelected.emit(cmd);
|
|
266
|
+
this.closePalette();
|
|
267
|
+
}
|
|
268
|
+
// Global keypress watchers
|
|
269
|
+
handleKeyDown(event) {
|
|
270
|
+
// Ctrl + K or Cmd + K triggers console toggle
|
|
271
|
+
if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'k') {
|
|
272
|
+
event.preventDefault();
|
|
273
|
+
this.toggleOpen();
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
if (!this.isOpen())
|
|
277
|
+
return;
|
|
278
|
+
const flatList = this.flatResultsList();
|
|
279
|
+
if (flatList.length === 0) {
|
|
280
|
+
if (event.key === 'Escape') {
|
|
281
|
+
event.preventDefault();
|
|
282
|
+
this.closePalette();
|
|
283
|
+
}
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
const currentActive = this.activeItem();
|
|
287
|
+
let idx = currentActive ? flatList.findIndex(c => c.id === currentActive.id) : -1;
|
|
288
|
+
if (event.key === 'ArrowDown') {
|
|
289
|
+
event.preventDefault();
|
|
290
|
+
idx = (idx + 1) % flatList.length;
|
|
291
|
+
this.activeItem.set(flatList[idx]);
|
|
292
|
+
}
|
|
293
|
+
else if (event.key === 'ArrowUp') {
|
|
294
|
+
event.preventDefault();
|
|
295
|
+
idx = (idx - 1 + flatList.length) % flatList.length;
|
|
296
|
+
this.activeItem.set(flatList[idx]);
|
|
297
|
+
}
|
|
298
|
+
else if (event.key === 'Enter') {
|
|
299
|
+
event.preventDefault();
|
|
300
|
+
if (currentActive) {
|
|
301
|
+
this.executeCommand(currentActive);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
else if (event.key === 'Escape') {
|
|
305
|
+
event.preventDefault();
|
|
306
|
+
this.closePalette();
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: CommandPaletteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
310
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: CommandPaletteComponent, isStandalone: true, selector: "ngx-command-palette", inputs: { commands: { classPropertyName: "commands", publicName: "commands", isSignal: true, isRequired: true, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { commandSelected: "commandSelected" }, host: { listeners: { "document:keydown": "handleKeyDown($event)" } }, viewQueries: [{ propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true }], ngImport: i0, template: `
|
|
311
|
+
<!-- Global Overlay Backdrop -->
|
|
312
|
+
@if (isOpen()) {
|
|
313
|
+
<div class="ngx-palette-overlay" (click)="closePalette()">
|
|
314
|
+
<div
|
|
315
|
+
class="ngx-palette-modal"
|
|
316
|
+
(click)="$event.stopPropagation()"
|
|
317
|
+
>
|
|
318
|
+
<!-- Search Header input console -->
|
|
319
|
+
<div class="ngx-palette-header">
|
|
320
|
+
<span class="search-icon">🔍</span>
|
|
321
|
+
<input
|
|
322
|
+
#searchInput
|
|
323
|
+
type="text"
|
|
324
|
+
class="palette-input"
|
|
325
|
+
[placeholder]="placeholder()"
|
|
326
|
+
[value]="filterQuery()"
|
|
327
|
+
(input)="onSearchInput($event)"
|
|
328
|
+
/>
|
|
329
|
+
<span class="esc-badge">ESC</span>
|
|
330
|
+
</div>
|
|
331
|
+
|
|
332
|
+
<!-- Command results feed -->
|
|
333
|
+
<div class="ngx-palette-results">
|
|
334
|
+
@if (groupedResults().length === 0) {
|
|
335
|
+
<div class="empty-state">No matching commands found.</div>
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
@for (group of groupedResults(); track group.category) {
|
|
339
|
+
<div class="category-group">
|
|
340
|
+
@if (group.category) {
|
|
341
|
+
<div class="category-header">{{ group.category }}</div>
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
@for (cmd of group.items; track cmd.id) {
|
|
345
|
+
<div
|
|
346
|
+
class="command-row"
|
|
347
|
+
[class.active]="activeItem()?.id === cmd.id"
|
|
348
|
+
(mouseenter)="activeItem.set(cmd)"
|
|
349
|
+
(click)="executeCommand(cmd)"
|
|
350
|
+
>
|
|
351
|
+
<div class="command-start">
|
|
352
|
+
@if (cmd.icon) {
|
|
353
|
+
<span class="command-icon">{{ cmd.icon }}</span>
|
|
354
|
+
}
|
|
355
|
+
<div class="command-details">
|
|
356
|
+
<span class="command-label">{{ cmd.label }}</span>
|
|
357
|
+
@if (cmd.desc) {
|
|
358
|
+
<span class="command-desc">{{ cmd.desc }}</span>
|
|
359
|
+
}
|
|
360
|
+
</div>
|
|
361
|
+
</div>
|
|
362
|
+
|
|
363
|
+
@if (cmd.shortcut) {
|
|
364
|
+
<span class="command-shortcut">{{ cmd.shortcut }}</span>
|
|
365
|
+
}
|
|
366
|
+
</div>
|
|
367
|
+
}
|
|
368
|
+
</div>
|
|
369
|
+
}
|
|
370
|
+
</div>
|
|
371
|
+
|
|
372
|
+
<!-- Console Footer help actions -->
|
|
373
|
+
<div class="ngx-palette-footer">
|
|
374
|
+
<div class="help-item"><span>↑↓</span> Navigate</div>
|
|
375
|
+
<div class="help-item"><span>↵</span> Select</div>
|
|
376
|
+
<div class="help-item"><span>Ctrl + K</span> Toggle Console</div>
|
|
377
|
+
</div>
|
|
378
|
+
</div>
|
|
379
|
+
</div>
|
|
380
|
+
}
|
|
381
|
+
`, isInline: true, styles: [".ngx-palette-overlay{position:fixed;inset:0;background:#0c132473;backdrop-filter:blur(8px);z-index:9999;display:flex;align-items:flex-start;justify-content:center;padding-top:15vh;animation:fade-in .18s cubic-bezier(.4,0,.2,1)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.ngx-palette-modal{width:100%;max-width:600px;background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #e2e8f0);border-radius:12px;box-shadow:0 20px 25px -5px #0003,0 10px 10px -5px #0000001a;display:flex;flex-direction:column;overflow:hidden;font-family:inherit;animation:scale-up .18s cubic-bezier(.34,1.56,.64,1)}@keyframes scale-up{0%{transform:scale(.95) translateY(-10px)}to{transform:scale(1) translateY(0)}}.ngx-palette-header{display:flex;align-items:center;padding:14px 18px;border-bottom:1px solid var(--border-color, #e2e8f0);gap:12px}.search-icon{font-size:16px;color:var(--text-secondary, #64748b)}.palette-input{flex:1;border:none;background:transparent;outline:none;font-size:14px;color:var(--text-primary, #0f172a);font-family:inherit}.palette-input::placeholder{color:var(--text-secondary, #64748b);opacity:.8}.esc-badge{font-size:10px;font-weight:700;color:var(--text-secondary, #64748b);background:var(--border-light, #f1f5f9);padding:3px 6px;border-radius:4px;border:1px solid var(--border-color, #e2e8f0);box-shadow:var(--shadow-sm)}.ngx-palette-results{max-height:320px;overflow-y:auto;padding:8px 0}.empty-state{padding:24px;text-align:center;color:var(--text-secondary, #64748b);font-size:13px;font-style:italic}.category-group{display:flex;flex-direction:column}.category-header{padding:8px 18px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.8px;color:var(--text-secondary, #64748b);opacity:.85}.command-row{padding:10px 18px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;transition:background-color .12s ease;gap:16px}.command-row.active{background:var(--primary-glow, rgba(79, 70, 229, .08))}.command-start{display:flex;align-items:center;gap:12px;min-width:0}.command-icon{font-size:16px;line-height:1}.command-details{display:flex;flex-direction:column;min-width:0}.command-label{font-size:13px;font-weight:600;color:var(--text-primary, #0f172a)}.command-row.active .command-label{color:var(--primary-color, #4f46e5)}.command-desc{font-size:11px;color:var(--text-secondary, #64748b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.command-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}.ngx-palette-footer{display:flex;padding:12px 18px;background:var(--border-light, #f1f5f9);border-top:1px solid var(--border-color, #e2e8f0);gap:18px}.help-item{font-size:11px;font-weight:500;color:var(--text-secondary, #64748b);display:flex;align-items:center;gap:6px}.help-item span{background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #e2e8f0);padding:1px 4px;border-radius:3px;font-weight:700;font-size:9px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] });
|
|
382
|
+
}
|
|
383
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: CommandPaletteComponent, decorators: [{
|
|
384
|
+
type: Component,
|
|
385
|
+
args: [{ selector: 'ngx-command-palette', standalone: true, imports: [CommonModule], template: `
|
|
386
|
+
<!-- Global Overlay Backdrop -->
|
|
387
|
+
@if (isOpen()) {
|
|
388
|
+
<div class="ngx-palette-overlay" (click)="closePalette()">
|
|
389
|
+
<div
|
|
390
|
+
class="ngx-palette-modal"
|
|
391
|
+
(click)="$event.stopPropagation()"
|
|
392
|
+
>
|
|
393
|
+
<!-- Search Header input console -->
|
|
394
|
+
<div class="ngx-palette-header">
|
|
395
|
+
<span class="search-icon">🔍</span>
|
|
396
|
+
<input
|
|
397
|
+
#searchInput
|
|
398
|
+
type="text"
|
|
399
|
+
class="palette-input"
|
|
400
|
+
[placeholder]="placeholder()"
|
|
401
|
+
[value]="filterQuery()"
|
|
402
|
+
(input)="onSearchInput($event)"
|
|
403
|
+
/>
|
|
404
|
+
<span class="esc-badge">ESC</span>
|
|
405
|
+
</div>
|
|
406
|
+
|
|
407
|
+
<!-- Command results feed -->
|
|
408
|
+
<div class="ngx-palette-results">
|
|
409
|
+
@if (groupedResults().length === 0) {
|
|
410
|
+
<div class="empty-state">No matching commands found.</div>
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
@for (group of groupedResults(); track group.category) {
|
|
414
|
+
<div class="category-group">
|
|
415
|
+
@if (group.category) {
|
|
416
|
+
<div class="category-header">{{ group.category }}</div>
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
@for (cmd of group.items; track cmd.id) {
|
|
420
|
+
<div
|
|
421
|
+
class="command-row"
|
|
422
|
+
[class.active]="activeItem()?.id === cmd.id"
|
|
423
|
+
(mouseenter)="activeItem.set(cmd)"
|
|
424
|
+
(click)="executeCommand(cmd)"
|
|
425
|
+
>
|
|
426
|
+
<div class="command-start">
|
|
427
|
+
@if (cmd.icon) {
|
|
428
|
+
<span class="command-icon">{{ cmd.icon }}</span>
|
|
429
|
+
}
|
|
430
|
+
<div class="command-details">
|
|
431
|
+
<span class="command-label">{{ cmd.label }}</span>
|
|
432
|
+
@if (cmd.desc) {
|
|
433
|
+
<span class="command-desc">{{ cmd.desc }}</span>
|
|
434
|
+
}
|
|
435
|
+
</div>
|
|
436
|
+
</div>
|
|
437
|
+
|
|
438
|
+
@if (cmd.shortcut) {
|
|
439
|
+
<span class="command-shortcut">{{ cmd.shortcut }}</span>
|
|
440
|
+
}
|
|
441
|
+
</div>
|
|
442
|
+
}
|
|
443
|
+
</div>
|
|
444
|
+
}
|
|
445
|
+
</div>
|
|
446
|
+
|
|
447
|
+
<!-- Console Footer help actions -->
|
|
448
|
+
<div class="ngx-palette-footer">
|
|
449
|
+
<div class="help-item"><span>↑↓</span> Navigate</div>
|
|
450
|
+
<div class="help-item"><span>↵</span> Select</div>
|
|
451
|
+
<div class="help-item"><span>Ctrl + K</span> Toggle Console</div>
|
|
452
|
+
</div>
|
|
453
|
+
</div>
|
|
454
|
+
</div>
|
|
455
|
+
}
|
|
456
|
+
`, styles: [".ngx-palette-overlay{position:fixed;inset:0;background:#0c132473;backdrop-filter:blur(8px);z-index:9999;display:flex;align-items:flex-start;justify-content:center;padding-top:15vh;animation:fade-in .18s cubic-bezier(.4,0,.2,1)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.ngx-palette-modal{width:100%;max-width:600px;background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #e2e8f0);border-radius:12px;box-shadow:0 20px 25px -5px #0003,0 10px 10px -5px #0000001a;display:flex;flex-direction:column;overflow:hidden;font-family:inherit;animation:scale-up .18s cubic-bezier(.34,1.56,.64,1)}@keyframes scale-up{0%{transform:scale(.95) translateY(-10px)}to{transform:scale(1) translateY(0)}}.ngx-palette-header{display:flex;align-items:center;padding:14px 18px;border-bottom:1px solid var(--border-color, #e2e8f0);gap:12px}.search-icon{font-size:16px;color:var(--text-secondary, #64748b)}.palette-input{flex:1;border:none;background:transparent;outline:none;font-size:14px;color:var(--text-primary, #0f172a);font-family:inherit}.palette-input::placeholder{color:var(--text-secondary, #64748b);opacity:.8}.esc-badge{font-size:10px;font-weight:700;color:var(--text-secondary, #64748b);background:var(--border-light, #f1f5f9);padding:3px 6px;border-radius:4px;border:1px solid var(--border-color, #e2e8f0);box-shadow:var(--shadow-sm)}.ngx-palette-results{max-height:320px;overflow-y:auto;padding:8px 0}.empty-state{padding:24px;text-align:center;color:var(--text-secondary, #64748b);font-size:13px;font-style:italic}.category-group{display:flex;flex-direction:column}.category-header{padding:8px 18px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.8px;color:var(--text-secondary, #64748b);opacity:.85}.command-row{padding:10px 18px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;transition:background-color .12s ease;gap:16px}.command-row.active{background:var(--primary-glow, rgba(79, 70, 229, .08))}.command-start{display:flex;align-items:center;gap:12px;min-width:0}.command-icon{font-size:16px;line-height:1}.command-details{display:flex;flex-direction:column;min-width:0}.command-label{font-size:13px;font-weight:600;color:var(--text-primary, #0f172a)}.command-row.active .command-label{color:var(--primary-color, #4f46e5)}.command-desc{font-size:11px;color:var(--text-secondary, #64748b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.command-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}.ngx-palette-footer{display:flex;padding:12px 18px;background:var(--border-light, #f1f5f9);border-top:1px solid var(--border-color, #e2e8f0);gap:18px}.help-item{font-size:11px;font-weight:500;color:var(--text-secondary, #64748b);display:flex;align-items:center;gap:6px}.help-item span{background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #e2e8f0);padding:1px 4px;border-radius:3px;font-weight:700;font-size:9px}\n"] }]
|
|
457
|
+
}], ctorParameters: () => [], propDecorators: { searchInput: [{
|
|
458
|
+
type: ViewChild,
|
|
459
|
+
args: ['searchInput']
|
|
460
|
+
}], handleKeyDown: [{
|
|
461
|
+
type: HostListener,
|
|
462
|
+
args: ['document:keydown', ['$event']]
|
|
463
|
+
}] } });
|
|
464
|
+
|
|
465
|
+
class BackToTopComponent {
|
|
466
|
+
// Inputs
|
|
467
|
+
threshold = input(300);
|
|
468
|
+
target = input(null);
|
|
469
|
+
theme = input('light');
|
|
470
|
+
showProgress = input(true);
|
|
471
|
+
// Internal state signals
|
|
472
|
+
isVisible = signal(false);
|
|
473
|
+
scrollPercent = signal(0);
|
|
474
|
+
// Computed circular ring offset (113.1 is circumference of circle r=18)
|
|
475
|
+
strokeDashoffset = computed(() => {
|
|
476
|
+
const circ = 113.1;
|
|
477
|
+
const ratio = this.scrollPercent() / 100;
|
|
478
|
+
return circ * (1 - ratio);
|
|
479
|
+
});
|
|
480
|
+
constructor() {
|
|
481
|
+
effect((onCleanup) => {
|
|
482
|
+
const targetSel = this.target();
|
|
483
|
+
this.threshold(); // Track threshold changes too
|
|
484
|
+
let scrollEl = null;
|
|
485
|
+
if (typeof targetSel === 'string') {
|
|
486
|
+
scrollEl = document.querySelector(targetSel);
|
|
487
|
+
}
|
|
488
|
+
else if (targetSel instanceof HTMLElement) {
|
|
489
|
+
scrollEl = targetSel;
|
|
490
|
+
}
|
|
491
|
+
if (!scrollEl) {
|
|
492
|
+
scrollEl = window;
|
|
493
|
+
}
|
|
494
|
+
const listener = () => {
|
|
495
|
+
this.checkScroll(scrollEl);
|
|
496
|
+
};
|
|
497
|
+
scrollEl.addEventListener('scroll', listener, { passive: true });
|
|
498
|
+
this.checkScroll(scrollEl);
|
|
499
|
+
onCleanup(() => {
|
|
500
|
+
if (scrollEl) {
|
|
501
|
+
scrollEl.removeEventListener('scroll', listener);
|
|
502
|
+
}
|
|
503
|
+
});
|
|
504
|
+
}, { allowSignalWrites: true });
|
|
505
|
+
}
|
|
506
|
+
checkScroll(scrollEl) {
|
|
507
|
+
let scrollTop = 0;
|
|
508
|
+
let scrollHeight = 0;
|
|
509
|
+
let clientHeight = 0;
|
|
510
|
+
if (scrollEl === window) {
|
|
511
|
+
scrollTop = window.scrollY || document.documentElement.scrollTop;
|
|
512
|
+
scrollHeight = document.documentElement.scrollHeight;
|
|
513
|
+
clientHeight = document.documentElement.clientHeight;
|
|
514
|
+
}
|
|
515
|
+
else if (scrollEl instanceof HTMLElement) {
|
|
516
|
+
scrollTop = scrollEl.scrollTop;
|
|
517
|
+
scrollHeight = scrollEl.scrollHeight;
|
|
518
|
+
clientHeight = scrollEl.clientHeight;
|
|
519
|
+
}
|
|
520
|
+
this.isVisible.set(scrollTop >= this.threshold());
|
|
521
|
+
const maxScroll = scrollHeight - clientHeight;
|
|
522
|
+
if (maxScroll > 0) {
|
|
523
|
+
const percent = Math.round((scrollTop / maxScroll) * 100);
|
|
524
|
+
this.scrollPercent.set(percent);
|
|
525
|
+
}
|
|
526
|
+
else {
|
|
527
|
+
this.scrollPercent.set(0);
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
scrollToTop() {
|
|
531
|
+
const targetSel = this.target();
|
|
532
|
+
let scrollEl = null;
|
|
533
|
+
if (typeof targetSel === 'string') {
|
|
534
|
+
scrollEl = document.querySelector(targetSel);
|
|
535
|
+
}
|
|
536
|
+
else if (targetSel instanceof HTMLElement) {
|
|
537
|
+
scrollEl = targetSel;
|
|
538
|
+
}
|
|
539
|
+
if (!scrollEl) {
|
|
540
|
+
scrollEl = window;
|
|
541
|
+
}
|
|
542
|
+
if (scrollEl === window) {
|
|
543
|
+
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
544
|
+
}
|
|
545
|
+
else if (scrollEl instanceof HTMLElement) {
|
|
546
|
+
scrollEl.scrollTo({ top: 0, behavior: 'smooth' });
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BackToTopComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
550
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: BackToTopComponent, isStandalone: true, selector: "ngx-back-to-top", inputs: { threshold: { classPropertyName: "threshold", publicName: "threshold", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, showProgress: { classPropertyName: "showProgress", publicName: "showProgress", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
551
|
+
<button
|
|
552
|
+
class="ngx-back-to-top"
|
|
553
|
+
[class.visible]="isVisible()"
|
|
554
|
+
[class.dark]="theme() === 'dark'"
|
|
555
|
+
(click)="scrollToTop()"
|
|
556
|
+
aria-label="Back to top"
|
|
557
|
+
>
|
|
558
|
+
@if (showProgress()) {
|
|
559
|
+
<svg class="ngx-back-to-top__svg" viewBox="0 0 40 40">
|
|
560
|
+
<circle
|
|
561
|
+
class="ngx-back-to-top__circle-bg"
|
|
562
|
+
cx="20"
|
|
563
|
+
cy="20"
|
|
564
|
+
r="18"
|
|
565
|
+
stroke-width="2.5"
|
|
566
|
+
/>
|
|
567
|
+
<circle
|
|
568
|
+
class="ngx-back-to-top__circle-progress"
|
|
569
|
+
cx="20"
|
|
570
|
+
cy="20"
|
|
571
|
+
r="18"
|
|
572
|
+
stroke-width="2.5"
|
|
573
|
+
[style.strokeDashoffset]="strokeDashoffset()"
|
|
574
|
+
stroke-linecap="round"
|
|
575
|
+
transform="rotate(-90 20 20)"
|
|
576
|
+
/>
|
|
577
|
+
</svg>
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
<svg class="arrow-up-icon" viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="3">
|
|
581
|
+
<polyline points="18 15 12 9 6 15"></polyline>
|
|
582
|
+
</svg>
|
|
583
|
+
</button>
|
|
584
|
+
`, isInline: true, styles: [".ngx-back-to-top{position:fixed;bottom:24px;right:24px;width:44px;height:44px;border-radius:50%;border:none;background:#fffc;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#0f172a;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000000d;z-index:99;opacity:0;transform:translateY(12px) scale(.9);pointer-events:none;transition:all .3s cubic-bezier(.16,1,.3,1);outline:none;padding:0}.ngx-back-to-top.visible{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}.ngx-back-to-top:hover{background:#fff;transform:scale(1.06) translateY(-1px);box-shadow:0 20px 25px -5px #00000026,0 10px 10px -5px #0000000f}.ngx-back-to-top:active{transform:scale(.98) translateY(0)}.dark .ngx-back-to-top{background:#0f172acc;border-color:#ffffff14;color:#cbd5e1;box-shadow:0 10px 15px -3px #0000004d}.dark .ngx-back-to-top:hover{background:#1e293b;color:#fff}.ngx-back-to-top__svg{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.ngx-back-to-top__circle-bg{fill:none;stroke:#0000000d}.dark .ngx-back-to-top__circle-bg{stroke:#ffffff0f}.ngx-back-to-top__circle-progress{fill:none;stroke:var(--primary-color, #3b82f6);stroke-dasharray:113.1;transition:stroke-dashoffset .1s ease}.arrow-up-icon{z-index:2;transition:transform .2s ease}.ngx-back-to-top:hover .arrow-up-icon{transform:translateY(-2px)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
585
|
+
}
|
|
586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BackToTopComponent, decorators: [{
|
|
587
|
+
type: Component,
|
|
588
|
+
args: [{ selector: 'ngx-back-to-top', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
589
|
+
<button
|
|
590
|
+
class="ngx-back-to-top"
|
|
591
|
+
[class.visible]="isVisible()"
|
|
592
|
+
[class.dark]="theme() === 'dark'"
|
|
593
|
+
(click)="scrollToTop()"
|
|
594
|
+
aria-label="Back to top"
|
|
595
|
+
>
|
|
596
|
+
@if (showProgress()) {
|
|
597
|
+
<svg class="ngx-back-to-top__svg" viewBox="0 0 40 40">
|
|
598
|
+
<circle
|
|
599
|
+
class="ngx-back-to-top__circle-bg"
|
|
600
|
+
cx="20"
|
|
601
|
+
cy="20"
|
|
602
|
+
r="18"
|
|
603
|
+
stroke-width="2.5"
|
|
604
|
+
/>
|
|
605
|
+
<circle
|
|
606
|
+
class="ngx-back-to-top__circle-progress"
|
|
607
|
+
cx="20"
|
|
608
|
+
cy="20"
|
|
609
|
+
r="18"
|
|
610
|
+
stroke-width="2.5"
|
|
611
|
+
[style.strokeDashoffset]="strokeDashoffset()"
|
|
612
|
+
stroke-linecap="round"
|
|
613
|
+
transform="rotate(-90 20 20)"
|
|
614
|
+
/>
|
|
615
|
+
</svg>
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
<svg class="arrow-up-icon" viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="3">
|
|
619
|
+
<polyline points="18 15 12 9 6 15"></polyline>
|
|
620
|
+
</svg>
|
|
621
|
+
</button>
|
|
622
|
+
`, styles: [".ngx-back-to-top{position:fixed;bottom:24px;right:24px;width:44px;height:44px;border-radius:50%;border:none;background:#fffc;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#0f172a;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000000d;z-index:99;opacity:0;transform:translateY(12px) scale(.9);pointer-events:none;transition:all .3s cubic-bezier(.16,1,.3,1);outline:none;padding:0}.ngx-back-to-top.visible{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}.ngx-back-to-top:hover{background:#fff;transform:scale(1.06) translateY(-1px);box-shadow:0 20px 25px -5px #00000026,0 10px 10px -5px #0000000f}.ngx-back-to-top:active{transform:scale(.98) translateY(0)}.dark .ngx-back-to-top{background:#0f172acc;border-color:#ffffff14;color:#cbd5e1;box-shadow:0 10px 15px -3px #0000004d}.dark .ngx-back-to-top:hover{background:#1e293b;color:#fff}.ngx-back-to-top__svg{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.ngx-back-to-top__circle-bg{fill:none;stroke:#0000000d}.dark .ngx-back-to-top__circle-bg{stroke:#ffffff0f}.ngx-back-to-top__circle-progress{fill:none;stroke:var(--primary-color, #3b82f6);stroke-dasharray:113.1;transition:stroke-dashoffset .1s ease}.arrow-up-icon{z-index:2;transition:transform .2s ease}.ngx-back-to-top:hover .arrow-up-icon{transform:translateY(-2px)}\n"] }]
|
|
623
|
+
}], ctorParameters: () => [] });
|
|
624
|
+
|
|
185
625
|
/*
|
|
186
626
|
* Public API Surface — secondary entry point: ngx-core-components/navigation
|
|
187
627
|
*/
|
|
@@ -190,5 +630,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
190
630
|
* Generated bundle index. Do not edit.
|
|
191
631
|
*/
|
|
192
632
|
|
|
193
|
-
export { BreadcrumbComponent, MenuComponent };
|
|
633
|
+
export { BackToTopComponent, BreadcrumbComponent, CommandPaletteComponent, MenuComponent };
|
|
194
634
|
//# sourceMappingURL=ngx-core-components-navigation.mjs.map
|
|
@@ -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/public-api.ts","../../../projects/ngx-core-components/navigation/ngx-core-components-navigation.ts"],"sourcesContent":["import { Component, input, output } 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 items(); 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 </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 { color: var(--ngx-breadcrumb-separator, #adb5bd); padding: 0 2px; }\n .breadcrumb-item { display: inline-flex; align-items: center; gap: 4px; color: var(--ngx-breadcrumb-link, #1a73e8); text-decoration: none; transition: color 0.15s; }\n .breadcrumb-item:hover:not(.active) { text-decoration: underline; color: var(--ngx-breadcrumb-link-hover, #1557b0); }\n .breadcrumb-item.active { color: var(--ngx-breadcrumb-active, #495057); cursor: default; font-weight: 500; }\n .breadcrumb-btn { background: none; border: none; cursor: pointer; font-family: inherit; font-size: inherit; padding: 0; }\n .breadcrumb-icon { font-size: 14px; }\n `]\n})\nexport class BreadcrumbComponent {\n items = input<BreadcrumbItem[]>([]);\n separator = input('/');\n itemClick = output<BreadcrumbItem>();\n\n onNav(event: MouseEvent, item: BreadcrumbItem): void { event.preventDefault(); this.itemClick.emit(item); }\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(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{{ item.label }}\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' ? '›' : '▾' }}</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{{ child.label }}\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: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, 6px); overflow: visible; }\n\t\t.menu-vertical { flex-direction: column; }\n\t\t.menu-item { position: relative; display: flex; align-items: center; gap: 7px; padding: 8px 16px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ngx-menu-color, #212529); transition: background 0.12s; white-space: nowrap; user-select: none; }\n\t\t.menu-item:hover:not(.disabled), .menu-item.open { background: var(--ngx-menu-hover-bg, #f1f3f5); color: var(--ngx-menu-active-color, #1a73e8); }\n\t\t.menu-item.disabled { opacity: 0.5; cursor: not-allowed; }\n\t\t.menu-icon { font-size: 15px; flex-shrink: 0; }\n\t\t.menu-arrow { margin-left: auto; padding-left: 8px; font-size: 11px; }\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: 200px; background: var(--ngx-menu-bg, #fff); border: 1px solid var(--ngx-menu-border, #dee2e6); border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,0.12); z-index: 1000; }\n\t\t.menu-vertical .menu-submenu { top: 0; left: 100%; }\n\t\t.menu-subitem { display: flex; align-items: center; gap: 7px; padding: 8px 16px; font-size: 13px; cursor: pointer; color: var(--ngx-menu-color, #212529); transition: background 0.12s; white-space: nowrap; }\n\t\t.menu-subitem:hover:not(.disabled) { background: var(--ngx-menu-hover-bg, #f1f3f5); color: var(--ngx-menu-active-color, #1a73e8); }\n\t\t.menu-item.active, .menu-subitem.active { background: var(--ngx-menu-active-bg, #e8f0fe); 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","/*\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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MA6Ca,mBAAmB,CAAA;AAC9B,IAAA,KAAK,GAAG,KAAK,CAAmB,EAAE,CAAC;AACnC,IAAA,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC;IACtB,SAAS,GAAG,MAAM,EAAkB;IAEpC,KAAK,CAAC,KAAiB,EAAE,IAAoB,IAAU,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;wGAL/F,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,C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AA,EAAA,UAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,YAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,SAAA,EAAA,WAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,gBAAA,EAAA,YAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EA1Df;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCT,CAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,gkDAAA,CAAA,EAAA,CAAA;;4FAkBW,aAAa,EAAA,UAAA,EAAA,CAAA;kBA7DzB,SAAS;+BACC,UAAU,EAAA,UAAA,EACR,IAAI,EAAA,QAAA,EACN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCT,CAAA,CAAA,EAAA,MAAA,EAAA,CAAA,gkDAAA,CAAA,EAAA;8BA+CD,QAAQ,EAAA,CAAA;sBADP,YAAY;uBAAC,gBAAgB;;;ACpG/B;;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/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, input, output } 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 items(); 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 </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 { color: var(--ngx-breadcrumb-separator, #adb5bd); padding: 0 2px; }\n .breadcrumb-item { display: inline-flex; align-items: center; gap: 4px; color: var(--ngx-breadcrumb-link, #1a73e8); text-decoration: none; transition: color 0.15s; }\n .breadcrumb-item:hover:not(.active) { text-decoration: underline; color: var(--ngx-breadcrumb-link-hover, #1557b0); }\n .breadcrumb-item.active { color: var(--ngx-breadcrumb-active, #495057); cursor: default; font-weight: 500; }\n .breadcrumb-btn { background: none; border: none; cursor: pointer; font-family: inherit; font-size: inherit; padding: 0; }\n .breadcrumb-icon { font-size: 14px; }\n `]\n})\nexport class BreadcrumbComponent {\n items = input<BreadcrumbItem[]>([]);\n separator = input('/');\n itemClick = output<BreadcrumbItem>();\n\n onNav(event: MouseEvent, item: BreadcrumbItem): void { event.preventDefault(); this.itemClick.emit(item); }\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(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{{ item.label }}\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' ? '›' : '▾' }}</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{{ child.label }}\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: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, 6px); overflow: visible; }\n\t\t.menu-vertical { flex-direction: column; }\n\t\t.menu-item { position: relative; display: flex; align-items: center; gap: 7px; padding: 8px 16px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ngx-menu-color, #212529); transition: background 0.12s; white-space: nowrap; user-select: none; }\n\t\t.menu-item:hover:not(.disabled), .menu-item.open { background: var(--ngx-menu-hover-bg, #f1f3f5); color: var(--ngx-menu-active-color, #1a73e8); }\n\t\t.menu-item.disabled { opacity: 0.5; cursor: not-allowed; }\n\t\t.menu-icon { font-size: 15px; flex-shrink: 0; }\n\t\t.menu-arrow { margin-left: auto; padding-left: 8px; font-size: 11px; }\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: 200px; background: var(--ngx-menu-bg, #fff); border: 1px solid var(--ngx-menu-border, #dee2e6); border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,0.12); z-index: 1000; }\n\t\t.menu-vertical .menu-submenu { top: 0; left: 100%; }\n\t\t.menu-subitem { display: flex; align-items: center; gap: 7px; padding: 8px 16px; font-size: 13px; cursor: pointer; color: var(--ngx-menu-color, #212529); transition: background 0.12s; white-space: nowrap; }\n\t\t.menu-subitem:hover:not(.disabled) { background: var(--ngx-menu-hover-bg, #f1f3f5); color: var(--ngx-menu-active-color, #1a73e8); }\n\t\t.menu-item.active, .menu-subitem.active { background: var(--ngx-menu-active-bg, #e8f0fe); 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 this.activeItem.set(flatList[idx]);\n } else if (event.key === 'ArrowUp') {\n event.preventDefault();\n idx = (idx - 1 + flatList.length) % flatList.length;\n this.activeItem.set(flatList[idx]);\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","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 .dark .ngx-back-to-top {\n background: rgba(15, 23, 42, 0.8);\n border-color: 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 .dark .ngx-back-to-top:hover {\n background: #1e293b;\n color: #ffffff;\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 .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\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":";;;;MA6Ca,mBAAmB,CAAA;AAC9B,IAAA,KAAK,GAAG,KAAK,CAAmB,EAAE,CAAC;AACnC,IAAA,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC;IACtB,SAAS,GAAG,MAAM,EAAkB;IAEpC,KAAK,CAAC,KAAiB,EAAE,IAAoB,IAAU,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;wGAL/F,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAnB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