ngx-core-components 0.3.13 → 0.3.15
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/charts/area-chart/area-chart.component.d.ts +2 -0
- package/charts/bar-chart/bar-chart.component.d.ts +23 -6
- package/charts/box-plot-chart/box-plot-chart.component.d.ts +68 -0
- package/charts/candlestick-chart/candlestick-chart.component.d.ts +58 -0
- package/charts/funnel-chart/funnel-chart.component.d.ts +3 -1
- package/charts/line-chart/line-chart.component.d.ts +15 -1
- package/charts/pie-chart/pie-chart.component.d.ts +14 -1
- package/charts/public-api.d.ts +8 -0
- package/charts/radial-bar-chart/radial-bar-chart.component.d.ts +35 -0
- package/charts/waterfall-chart/waterfall-chart.component.d.ts +62 -0
- package/fesm2022/ngx-core-components-charts.mjs +2024 -142
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-grid.mjs +182 -38
- package/fesm2022/ngx-core-components-grid.mjs.map +1 -1
- package/fesm2022/ngx-core-components-layout.mjs +353 -70
- package/fesm2022/ngx-core-components-layout.mjs.map +1 -1
- package/fesm2022/ngx-core-components-navigation.mjs +186 -22
- package/fesm2022/ngx-core-components-navigation.mjs.map +1 -1
- package/fesm2022/ngx-core-components-views.mjs +521 -123
- package/fesm2022/ngx-core-components-views.mjs.map +1 -1
- package/fesm2022/ngx-core-components.mjs +2 -2
- package/fesm2022/ngx-core-components.mjs.map +1 -1
- package/grid/data-grid/data-grid.component.d.ts +4 -0
- package/layout/accordion/accordion.component.d.ts +17 -1
- package/layout/card/card.component.d.ts +1 -1
- package/layout/public-api.d.ts +2 -2
- package/layout/stepper/stepper.component.d.ts +12 -1
- package/layout/tab-strip/tab-strip.component.d.ts +12 -3
- package/navigation/breadcrumb/breadcrumb.component.d.ts +9 -1
- package/navigation/command-palette/command-palette.component.d.ts +1 -0
- package/navigation/context-menu/context-menu.component.d.ts +11 -0
- package/package.json +1 -1
- package/public-api.d.ts +9 -1
- package/views/public-api.d.ts +2 -2
- package/views/scheduler/scheduler.component.d.ts +13 -3
- package/views/timeline/timeline.component.d.ts +22 -1
|
@@ -1,17 +1,38 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, output,
|
|
2
|
+
import { input, output, signal, computed, Component, HostListener, effect, ViewChild, ChangeDetectionStrategy } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
|
|
6
6
|
class BreadcrumbComponent {
|
|
7
7
|
items = input([]);
|
|
8
8
|
separator = input('/');
|
|
9
|
+
maxVisible = input(0);
|
|
9
10
|
itemClick = output();
|
|
11
|
+
isCollapsed = signal(true);
|
|
12
|
+
/** True when collapse mode is active: maxVisible > 0, items exceed threshold, and user hasn't expanded */
|
|
13
|
+
shouldCollapse = computed(() => {
|
|
14
|
+
const max = this.maxVisible();
|
|
15
|
+
return max > 0 && this.items().length > max + 1 && this.isCollapsed();
|
|
16
|
+
});
|
|
17
|
+
/** Items to render in the main @for loop: all items when not collapsing, or only the first item when collapsing */
|
|
18
|
+
visibleItems = computed(() => {
|
|
19
|
+
if (this.shouldCollapse()) {
|
|
20
|
+
return this.items().slice(0, 1);
|
|
21
|
+
}
|
|
22
|
+
return this.items();
|
|
23
|
+
});
|
|
24
|
+
/** The trailing items shown after the ellipsis when collapsed */
|
|
25
|
+
tailItems = computed(() => {
|
|
26
|
+
if (this.shouldCollapse()) {
|
|
27
|
+
return this.items().slice(-this.maxVisible());
|
|
28
|
+
}
|
|
29
|
+
return [];
|
|
30
|
+
});
|
|
10
31
|
onNav(event, item) { event.preventDefault(); this.itemClick.emit(item); }
|
|
11
32
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: BreadcrumbComponent, isStandalone: true, selector: "ngx-breadcrumb", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, ngImport: i0, template: `
|
|
33
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: BreadcrumbComponent, isStandalone: true, selector: "ngx-breadcrumb", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, maxVisible: { classPropertyName: "maxVisible", publicName: "maxVisible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, ngImport: i0, template: `
|
|
13
34
|
<nav class="ngx-breadcrumb" aria-label="breadcrumb">
|
|
14
|
-
@for (item of
|
|
35
|
+
@for (item of visibleItems(); track item.label; let i = $index; let last = $last) {
|
|
15
36
|
@if (i > 0) { <span class="breadcrumb-separator" aria-hidden="true">{{ separator() }}</span> }
|
|
16
37
|
@if (last) {
|
|
17
38
|
<span class="breadcrumb-item active" aria-current="page">
|
|
@@ -30,14 +51,43 @@ class BreadcrumbComponent {
|
|
|
30
51
|
</button>
|
|
31
52
|
}
|
|
32
53
|
}
|
|
54
|
+
@if (shouldCollapse()) {
|
|
55
|
+
<span class="breadcrumb-separator" aria-hidden="true">{{ separator() }}</span>
|
|
56
|
+
<button
|
|
57
|
+
class="breadcrumb-item breadcrumb-btn breadcrumb-ellipsis"
|
|
58
|
+
(click)="isCollapsed.set(false)"
|
|
59
|
+
aria-label="Show all breadcrumbs"
|
|
60
|
+
title="Show all breadcrumbs"
|
|
61
|
+
>…</button>
|
|
62
|
+
<span class="breadcrumb-separator" aria-hidden="true">{{ separator() }}</span>
|
|
63
|
+
@for (item of tailItems(); track item.label; let i = $index; let last = $last) {
|
|
64
|
+
@if (last) {
|
|
65
|
+
<span class="breadcrumb-item active" aria-current="page">
|
|
66
|
+
@if (item.icon) { <span class="breadcrumb-icon">{{ item.icon }}</span> }
|
|
67
|
+
{{ item.label }}
|
|
68
|
+
</span>
|
|
69
|
+
} @else if (item.url) {
|
|
70
|
+
<a class="breadcrumb-item" [href]="item.url" (click)="onNav($event, item)">
|
|
71
|
+
@if (item.icon) { <span class="breadcrumb-icon">{{ item.icon }}</span> }
|
|
72
|
+
{{ item.label }}
|
|
73
|
+
</a>
|
|
74
|
+
} @else {
|
|
75
|
+
<button class="breadcrumb-item breadcrumb-btn" (click)="itemClick.emit(item)">
|
|
76
|
+
@if (item.icon) { <span class="breadcrumb-icon">{{ item.icon }}</span> }
|
|
77
|
+
{{ item.label }}
|
|
78
|
+
</button>
|
|
79
|
+
}
|
|
80
|
+
@if (!last) { <span class="breadcrumb-separator" aria-hidden="true">{{ separator() }}</span> }
|
|
81
|
+
}
|
|
82
|
+
}
|
|
33
83
|
</nav>
|
|
34
|
-
`, isInline: true, styles: [":host{display:block}.ngx-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:13px}.breadcrumb-separator{color:var(--ngx-breadcrumb-separator, #adb5bd);padding:0 2px}.breadcrumb-item{display:inline-flex;align-items:center;gap:4px;color:var(--ngx-breadcrumb-link, #1a73e8);text-decoration:none;transition:color .
|
|
84
|
+
`, isInline: true, styles: [":host{display:block}.ngx-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:13px}.breadcrumb-separator{color:var(--ngx-breadcrumb-separator, #adb5bd);padding:0 2px;opacity:.7;transition:opacity .2s ease}.ngx-breadcrumb:hover .breadcrumb-separator{opacity:1}.breadcrumb-item{display:inline-flex;align-items:center;gap:4px;color:var(--ngx-breadcrumb-link, #1a73e8);text-decoration:none;padding:2px 8px;border-radius:12px;transition:background-color .2s ease,color .2s ease}.breadcrumb-item:hover:not(.active){background-color:var(--ngx-breadcrumb-hover-bg, rgba(26, 115, 232, .08));color:var(--ngx-breadcrumb-link-hover, #1557b0)}.breadcrumb-item:focus-visible{outline:2px solid var(--ngx-breadcrumb-focus, #1a73e8);outline-offset:2px}.breadcrumb-item.active{color:var(--ngx-breadcrumb-active, #495057);background-color:var(--ngx-breadcrumb-active-bg, rgba(73, 80, 87, .08));cursor:default;font-weight:600}.breadcrumb-btn{background:none;border:none;cursor:pointer;font-family:inherit;font-size:inherit;padding:2px 8px}.breadcrumb-ellipsis{font-weight:700;letter-spacing:1px;min-width:28px;justify-content:center}.breadcrumb-icon{font-size:14px}\n"] });
|
|
35
85
|
}
|
|
36
86
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BreadcrumbComponent, decorators: [{
|
|
37
87
|
type: Component,
|
|
38
88
|
args: [{ selector: 'ngx-breadcrumb', standalone: true, template: `
|
|
39
89
|
<nav class="ngx-breadcrumb" aria-label="breadcrumb">
|
|
40
|
-
@for (item of
|
|
90
|
+
@for (item of visibleItems(); track item.label; let i = $index; let last = $last) {
|
|
41
91
|
@if (i > 0) { <span class="breadcrumb-separator" aria-hidden="true">{{ separator() }}</span> }
|
|
42
92
|
@if (last) {
|
|
43
93
|
<span class="breadcrumb-item active" aria-current="page">
|
|
@@ -56,8 +106,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
56
106
|
</button>
|
|
57
107
|
}
|
|
58
108
|
}
|
|
109
|
+
@if (shouldCollapse()) {
|
|
110
|
+
<span class="breadcrumb-separator" aria-hidden="true">{{ separator() }}</span>
|
|
111
|
+
<button
|
|
112
|
+
class="breadcrumb-item breadcrumb-btn breadcrumb-ellipsis"
|
|
113
|
+
(click)="isCollapsed.set(false)"
|
|
114
|
+
aria-label="Show all breadcrumbs"
|
|
115
|
+
title="Show all breadcrumbs"
|
|
116
|
+
>…</button>
|
|
117
|
+
<span class="breadcrumb-separator" aria-hidden="true">{{ separator() }}</span>
|
|
118
|
+
@for (item of tailItems(); track item.label; let i = $index; let last = $last) {
|
|
119
|
+
@if (last) {
|
|
120
|
+
<span class="breadcrumb-item active" aria-current="page">
|
|
121
|
+
@if (item.icon) { <span class="breadcrumb-icon">{{ item.icon }}</span> }
|
|
122
|
+
{{ item.label }}
|
|
123
|
+
</span>
|
|
124
|
+
} @else if (item.url) {
|
|
125
|
+
<a class="breadcrumb-item" [href]="item.url" (click)="onNav($event, item)">
|
|
126
|
+
@if (item.icon) { <span class="breadcrumb-icon">{{ item.icon }}</span> }
|
|
127
|
+
{{ item.label }}
|
|
128
|
+
</a>
|
|
129
|
+
} @else {
|
|
130
|
+
<button class="breadcrumb-item breadcrumb-btn" (click)="itemClick.emit(item)">
|
|
131
|
+
@if (item.icon) { <span class="breadcrumb-icon">{{ item.icon }}</span> }
|
|
132
|
+
{{ item.label }}
|
|
133
|
+
</button>
|
|
134
|
+
}
|
|
135
|
+
@if (!last) { <span class="breadcrumb-separator" aria-hidden="true">{{ separator() }}</span> }
|
|
136
|
+
}
|
|
137
|
+
}
|
|
59
138
|
</nav>
|
|
60
|
-
`, styles: [":host{display:block}.ngx-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:13px}.breadcrumb-separator{color:var(--ngx-breadcrumb-separator, #adb5bd);padding:0 2px}.breadcrumb-item{display:inline-flex;align-items:center;gap:4px;color:var(--ngx-breadcrumb-link, #1a73e8);text-decoration:none;transition:color .
|
|
139
|
+
`, styles: [":host{display:block}.ngx-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:13px}.breadcrumb-separator{color:var(--ngx-breadcrumb-separator, #adb5bd);padding:0 2px;opacity:.7;transition:opacity .2s ease}.ngx-breadcrumb:hover .breadcrumb-separator{opacity:1}.breadcrumb-item{display:inline-flex;align-items:center;gap:4px;color:var(--ngx-breadcrumb-link, #1a73e8);text-decoration:none;padding:2px 8px;border-radius:12px;transition:background-color .2s ease,color .2s ease}.breadcrumb-item:hover:not(.active){background-color:var(--ngx-breadcrumb-hover-bg, rgba(26, 115, 232, .08));color:var(--ngx-breadcrumb-link-hover, #1557b0)}.breadcrumb-item:focus-visible{outline:2px solid var(--ngx-breadcrumb-focus, #1a73e8);outline-offset:2px}.breadcrumb-item.active{color:var(--ngx-breadcrumb-active, #495057);background-color:var(--ngx-breadcrumb-active-bg, rgba(73, 80, 87, .08));cursor:default;font-weight:600}.breadcrumb-btn{background:none;border:none;cursor:pointer;font-family:inherit;font-size:inherit;padding:2px 8px}.breadcrumb-ellipsis{font-weight:700;letter-spacing:1px;min-width:28px;justify-content:center}.breadcrumb-icon{font-size:14px}\n"] }]
|
|
61
140
|
}] });
|
|
62
141
|
|
|
63
142
|
class MenuComponent {
|
|
@@ -108,11 +187,13 @@ class MenuComponent {
|
|
|
108
187
|
[class.active]="isActiveItem(item)"
|
|
109
188
|
role="menuitem"
|
|
110
189
|
[attr.tabindex]="item.disabled ? -1 : 0"
|
|
190
|
+
[attr.aria-haspopup]="item.children && item.children.length ? 'true' : null"
|
|
191
|
+
[attr.aria-expanded]="item.children && item.children.length ? (openIndex() === i) : null"
|
|
111
192
|
(click)="handleClick($event, item, i)"
|
|
112
193
|
(keydown.enter)="handleClick($event, item, i)"
|
|
113
194
|
>
|
|
114
195
|
@if (item.icon) { <span class="menu-icon">{{ item.icon }}</span> }
|
|
115
|
-
{{ item.label }}
|
|
196
|
+
<span class="menu-label">{{ item.label }}</span>
|
|
116
197
|
@if (item.children && item.children.length) {
|
|
117
198
|
<span class="menu-arrow">{{ orientation() === 'vertical' ? '›' : '▾' }}</span>
|
|
118
199
|
}
|
|
@@ -124,7 +205,7 @@ class MenuComponent {
|
|
|
124
205
|
} @else {
|
|
125
206
|
<div class="menu-subitem" [class.disabled]="child.disabled" [class.active]="isActiveItem(child)" role="menuitem" [attr.tabindex]="child.disabled ? -1 : 0" (click)="handleSubClick($event, child)">
|
|
126
207
|
@if (child.icon) { <span class="menu-icon">{{ child.icon }}</span> }
|
|
127
|
-
{{ child.label }}
|
|
208
|
+
<span class="menu-label">{{ child.label }}</span>
|
|
128
209
|
</div>
|
|
129
210
|
}
|
|
130
211
|
}
|
|
@@ -134,7 +215,7 @@ class MenuComponent {
|
|
|
134
215
|
}
|
|
135
216
|
}
|
|
136
217
|
</nav>
|
|
137
|
-
`, isInline: true, styles: [":host{display:block}.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,
|
|
218
|
+
`, isInline: true, styles: ["@keyframes submenuSlideIn{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}:host{display:block}.ngx-menu{display:flex;align-items:stretch;background:var(--ngx-menu-bg, #fff);border:1px solid var(--ngx-menu-border, #dee2e6);border-radius:var(--ngx-menu-radius, 10px);overflow:visible}.menu-vertical{flex-direction:column}.menu-item{position:relative;display:flex;align-items:center;gap:10px;padding:9px 18px;font-size:13px;font-weight:500;cursor:pointer;color:var(--ngx-menu-color, #212529);transition:background .2s ease,color .2s ease;white-space:nowrap;-webkit-user-select:none;user-select:none}.menu-item:after{content:\"\";position:absolute;bottom:0;left:18px;right:18px;height:2.5px;background:linear-gradient(90deg,var(--ngx-menu-active-color, #1a73e8),#4fc3f7);border-radius:2px;transform:scaleX(0);transform-origin:left;transition:transform .25s ease;pointer-events:none}:host:not(.menu-vertical) .menu-item:hover:not(.disabled):after,:host:not(.menu-vertical) .menu-item.active:after{transform:scaleX(1)}.menu-vertical .menu-item:after{display:none}.menu-item:hover:not(.disabled),.menu-item.open{background:var(--ngx-menu-hover-bg, rgba(26,115,232,.06));color:var(--ngx-menu-active-color, #1a73e8)}.menu-item.disabled{opacity:.5;cursor:not-allowed}.menu-item:focus-visible,.menu-subitem:focus-visible{outline:2px solid var(--ngx-menu-active-color, #1a73e8);outline-offset:-2px;border-radius:4px}.menu-icon{font-size:16px;flex-shrink:0;display:inline-flex;align-items:center}.menu-label{flex:1}.menu-arrow{margin-left:auto;padding-left:10px;font-size:11px;transition:transform .2s ease}.menu-item.open>.menu-arrow{transform:rotate(180deg)}.menu-vertical .menu-item.open>.menu-arrow{transform:rotate(0)}.menu-separator{border:none;border-top:1px solid var(--ngx-menu-separator, #dee2e6);margin:4px 0}.menu-submenu{position:absolute;top:100%;left:0;min-width:210px;background:var(--ngx-menu-submenu-bg, rgba(255,255,255,.82));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--ngx-menu-border, rgba(222,226,230,.7));border-radius:10px;box-shadow:0 4px 12px #0000000f,0 12px 36px #0000001a;z-index:1000;padding:4px 0;animation:submenuSlideIn .18s ease-out}.menu-vertical .menu-submenu{top:0;left:100%}.menu-subitem{display:flex;align-items:center;gap:10px;padding:8px 18px;font-size:13px;cursor:pointer;color:var(--ngx-menu-color, #212529);transition:background .2s ease,color .2s ease;white-space:nowrap;border-radius:6px;margin:0 4px}.menu-subitem:hover:not(.disabled){background:var(--ngx-menu-hover-bg, rgba(26,115,232,.06));color:var(--ngx-menu-active-color, #1a73e8)}.menu-item.active,.menu-subitem.active{background:linear-gradient(135deg,var(--ngx-menu-active-bg, rgba(232,240,254,.85)),rgba(79,195,247,.15));color:var(--ngx-menu-active-color, #1a73e8);font-weight:600}\n"] });
|
|
138
219
|
}
|
|
139
220
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: MenuComponent, decorators: [{
|
|
140
221
|
type: Component,
|
|
@@ -152,11 +233,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
152
233
|
[class.active]="isActiveItem(item)"
|
|
153
234
|
role="menuitem"
|
|
154
235
|
[attr.tabindex]="item.disabled ? -1 : 0"
|
|
236
|
+
[attr.aria-haspopup]="item.children && item.children.length ? 'true' : null"
|
|
237
|
+
[attr.aria-expanded]="item.children && item.children.length ? (openIndex() === i) : null"
|
|
155
238
|
(click)="handleClick($event, item, i)"
|
|
156
239
|
(keydown.enter)="handleClick($event, item, i)"
|
|
157
240
|
>
|
|
158
241
|
@if (item.icon) { <span class="menu-icon">{{ item.icon }}</span> }
|
|
159
|
-
{{ item.label }}
|
|
242
|
+
<span class="menu-label">{{ item.label }}</span>
|
|
160
243
|
@if (item.children && item.children.length) {
|
|
161
244
|
<span class="menu-arrow">{{ orientation() === 'vertical' ? '›' : '▾' }}</span>
|
|
162
245
|
}
|
|
@@ -168,7 +251,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
168
251
|
} @else {
|
|
169
252
|
<div class="menu-subitem" [class.disabled]="child.disabled" [class.active]="isActiveItem(child)" role="menuitem" [attr.tabindex]="child.disabled ? -1 : 0" (click)="handleSubClick($event, child)">
|
|
170
253
|
@if (child.icon) { <span class="menu-icon">{{ child.icon }}</span> }
|
|
171
|
-
{{ child.label }}
|
|
254
|
+
<span class="menu-label">{{ child.label }}</span>
|
|
172
255
|
</div>
|
|
173
256
|
}
|
|
174
257
|
}
|
|
@@ -178,7 +261,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
178
261
|
}
|
|
179
262
|
}
|
|
180
263
|
</nav>
|
|
181
|
-
`, styles: [":host{display:block}.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,
|
|
264
|
+
`, styles: ["@keyframes submenuSlideIn{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}:host{display:block}.ngx-menu{display:flex;align-items:stretch;background:var(--ngx-menu-bg, #fff);border:1px solid var(--ngx-menu-border, #dee2e6);border-radius:var(--ngx-menu-radius, 10px);overflow:visible}.menu-vertical{flex-direction:column}.menu-item{position:relative;display:flex;align-items:center;gap:10px;padding:9px 18px;font-size:13px;font-weight:500;cursor:pointer;color:var(--ngx-menu-color, #212529);transition:background .2s ease,color .2s ease;white-space:nowrap;-webkit-user-select:none;user-select:none}.menu-item:after{content:\"\";position:absolute;bottom:0;left:18px;right:18px;height:2.5px;background:linear-gradient(90deg,var(--ngx-menu-active-color, #1a73e8),#4fc3f7);border-radius:2px;transform:scaleX(0);transform-origin:left;transition:transform .25s ease;pointer-events:none}:host:not(.menu-vertical) .menu-item:hover:not(.disabled):after,:host:not(.menu-vertical) .menu-item.active:after{transform:scaleX(1)}.menu-vertical .menu-item:after{display:none}.menu-item:hover:not(.disabled),.menu-item.open{background:var(--ngx-menu-hover-bg, rgba(26,115,232,.06));color:var(--ngx-menu-active-color, #1a73e8)}.menu-item.disabled{opacity:.5;cursor:not-allowed}.menu-item:focus-visible,.menu-subitem:focus-visible{outline:2px solid var(--ngx-menu-active-color, #1a73e8);outline-offset:-2px;border-radius:4px}.menu-icon{font-size:16px;flex-shrink:0;display:inline-flex;align-items:center}.menu-label{flex:1}.menu-arrow{margin-left:auto;padding-left:10px;font-size:11px;transition:transform .2s ease}.menu-item.open>.menu-arrow{transform:rotate(180deg)}.menu-vertical .menu-item.open>.menu-arrow{transform:rotate(0)}.menu-separator{border:none;border-top:1px solid var(--ngx-menu-separator, #dee2e6);margin:4px 0}.menu-submenu{position:absolute;top:100%;left:0;min-width:210px;background:var(--ngx-menu-submenu-bg, rgba(255,255,255,.82));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--ngx-menu-border, rgba(222,226,230,.7));border-radius:10px;box-shadow:0 4px 12px #0000000f,0 12px 36px #0000001a;z-index:1000;padding:4px 0;animation:submenuSlideIn .18s ease-out}.menu-vertical .menu-submenu{top:0;left:100%}.menu-subitem{display:flex;align-items:center;gap:10px;padding:8px 18px;font-size:13px;cursor:pointer;color:var(--ngx-menu-color, #212529);transition:background .2s ease,color .2s ease;white-space:nowrap;border-radius:6px;margin:0 4px}.menu-subitem:hover:not(.disabled){background:var(--ngx-menu-hover-bg, rgba(26,115,232,.06));color:var(--ngx-menu-active-color, #1a73e8)}.menu-item.active,.menu-subitem.active{background:linear-gradient(135deg,var(--ngx-menu-active-bg, rgba(232,240,254,.85)),rgba(79,195,247,.15));color:var(--ngx-menu-active-color, #1a73e8);font-weight:600}\n"] }]
|
|
182
265
|
}], propDecorators: { closeAll: [{
|
|
183
266
|
type: HostListener,
|
|
184
267
|
args: ['document:click']
|
|
@@ -289,12 +372,16 @@ class CommandPaletteComponent {
|
|
|
289
372
|
if (event.key === 'ArrowDown') {
|
|
290
373
|
event.preventDefault();
|
|
291
374
|
idx = (idx + 1) % flatList.length;
|
|
292
|
-
|
|
375
|
+
const nextItem = flatList[idx];
|
|
376
|
+
this.activeItem.set(nextItem);
|
|
377
|
+
this.scrollToActiveItem();
|
|
293
378
|
}
|
|
294
379
|
else if (event.key === 'ArrowUp') {
|
|
295
380
|
event.preventDefault();
|
|
296
381
|
idx = (idx - 1 + flatList.length) % flatList.length;
|
|
297
|
-
|
|
382
|
+
const prevItem = flatList[idx];
|
|
383
|
+
this.activeItem.set(prevItem);
|
|
384
|
+
this.scrollToActiveItem();
|
|
298
385
|
}
|
|
299
386
|
else if (event.key === 'Enter') {
|
|
300
387
|
event.preventDefault();
|
|
@@ -307,6 +394,14 @@ class CommandPaletteComponent {
|
|
|
307
394
|
this.closePalette();
|
|
308
395
|
}
|
|
309
396
|
}
|
|
397
|
+
scrollToActiveItem() {
|
|
398
|
+
setTimeout(() => {
|
|
399
|
+
const activeEl = document.querySelector('.ngx-palette-modal .command-row.active');
|
|
400
|
+
if (activeEl) {
|
|
401
|
+
activeEl.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
|
402
|
+
}
|
|
403
|
+
}, 0);
|
|
404
|
+
}
|
|
310
405
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: CommandPaletteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
311
406
|
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: `
|
|
312
407
|
<!-- Global Overlay Backdrop -->
|
|
@@ -471,6 +566,68 @@ class ContextMenuComponent {
|
|
|
471
566
|
width = input(200);
|
|
472
567
|
itemSelected = output();
|
|
473
568
|
openChange = output();
|
|
569
|
+
/** Tracks the focused item index for keyboard navigation (-1 = none). */
|
|
570
|
+
focusedIndex = signal(-1);
|
|
571
|
+
constructor() {
|
|
572
|
+
// Reset focused index whenever the menu opens or closes
|
|
573
|
+
effect(() => {
|
|
574
|
+
this.open(); // subscribe to changes
|
|
575
|
+
this.focusedIndex.set(-1);
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
/** Returns the flat index of an item across all top-level items (excluding separators). */
|
|
579
|
+
flatIndexOf(item) {
|
|
580
|
+
return this.navigableItems().indexOf(item);
|
|
581
|
+
}
|
|
582
|
+
/** Flat list of navigable (non-separator) top-level items. */
|
|
583
|
+
navigableItems() {
|
|
584
|
+
return this.items().filter(i => !i.separator);
|
|
585
|
+
}
|
|
586
|
+
/** Navigable and non-disabled items indices used for arrow-key movement. */
|
|
587
|
+
navigableIndices() {
|
|
588
|
+
return this.navigableItems()
|
|
589
|
+
.map((item, idx) => (!item.disabled ? idx : -1))
|
|
590
|
+
.filter(idx => idx !== -1);
|
|
591
|
+
}
|
|
592
|
+
handleKeyDown(event) {
|
|
593
|
+
if (!this.open())
|
|
594
|
+
return;
|
|
595
|
+
const indices = this.navigableIndices();
|
|
596
|
+
if (indices.length === 0) {
|
|
597
|
+
if (event.key === 'Escape') {
|
|
598
|
+
event.preventDefault();
|
|
599
|
+
this.close();
|
|
600
|
+
}
|
|
601
|
+
return;
|
|
602
|
+
}
|
|
603
|
+
const current = this.focusedIndex();
|
|
604
|
+
if (event.key === 'ArrowDown') {
|
|
605
|
+
event.preventDefault();
|
|
606
|
+
const nextIdx = indices.find(i => i > current) ?? indices[0];
|
|
607
|
+
this.focusedIndex.set(nextIdx);
|
|
608
|
+
}
|
|
609
|
+
else if (event.key === 'ArrowUp') {
|
|
610
|
+
event.preventDefault();
|
|
611
|
+
const reversed = [...indices].reverse();
|
|
612
|
+
const prevIdx = reversed.find(i => i < current) ?? reversed[0];
|
|
613
|
+
this.focusedIndex.set(prevIdx);
|
|
614
|
+
}
|
|
615
|
+
else if (event.key === 'Enter' || event.key === ' ') {
|
|
616
|
+
event.preventDefault();
|
|
617
|
+
const items = this.navigableItems();
|
|
618
|
+
if (current >= 0 && current < items.length) {
|
|
619
|
+
const item = items[current];
|
|
620
|
+
if (!item.disabled && !item.children?.length) {
|
|
621
|
+
this.itemSelected.emit(item);
|
|
622
|
+
this.close();
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
else if (event.key === 'Escape') {
|
|
627
|
+
event.preventDefault();
|
|
628
|
+
this.close();
|
|
629
|
+
}
|
|
630
|
+
}
|
|
474
631
|
selectItem(item, event) {
|
|
475
632
|
event.stopPropagation();
|
|
476
633
|
if (item.disabled || item.children?.length)
|
|
@@ -482,7 +639,7 @@ class ContextMenuComponent {
|
|
|
482
639
|
this.openChange.emit(false);
|
|
483
640
|
}
|
|
484
641
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ContextMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
485
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: ContextMenuComponent, isStandalone: true, selector: "ngx-context-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, x: { classPropertyName: "x", publicName: "x", isSignal: true, isRequired: false, transformFunction: null }, y: { classPropertyName: "y", publicName: "y", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemSelected: "itemSelected", openChange: "openChange" }, ngImport: i0, template: `
|
|
642
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: ContextMenuComponent, isStandalone: true, selector: "ngx-context-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, x: { classPropertyName: "x", publicName: "x", isSignal: true, isRequired: false, transformFunction: null }, y: { classPropertyName: "y", publicName: "y", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemSelected: "itemSelected", openChange: "openChange" }, host: { listeners: { "document:keydown": "handleKeyDown($event)" } }, ngImport: i0, template: `
|
|
486
643
|
@if (open()) {
|
|
487
644
|
<div
|
|
488
645
|
class="ngx-context-menu-backdrop"
|
|
@@ -502,7 +659,7 @@ class ContextMenuComponent {
|
|
|
502
659
|
}
|
|
503
660
|
|
|
504
661
|
<ng-template #menuList let-items="items">
|
|
505
|
-
@for (item of items; track item.id) {
|
|
662
|
+
@for (item of items; track item.id; let i = $index) {
|
|
506
663
|
@if (item.separator) {
|
|
507
664
|
<div class="menu-separator" role="separator"></div>
|
|
508
665
|
} @else {
|
|
@@ -513,11 +670,13 @@ class ContextMenuComponent {
|
|
|
513
670
|
role="menuitem"
|
|
514
671
|
[class.danger]="item.danger"
|
|
515
672
|
[class.has-children]="item.children?.length"
|
|
673
|
+
[class.focused]="focusedIndex() === flatIndexOf(item)"
|
|
516
674
|
[disabled]="item.disabled"
|
|
517
675
|
(click)="selectItem(item, $event)"
|
|
518
676
|
>
|
|
519
677
|
@if (item.icon) { <span class="menu-icon">{{ item.icon }}</span> }
|
|
520
678
|
<span class="menu-label">{{ item.label }}</span>
|
|
679
|
+
@if (item.shortcut) { <span class="menu-shortcut">{{ item.shortcut }}</span> }
|
|
521
680
|
@if (item.children?.length) { <span class="menu-arrow">></span> }
|
|
522
681
|
</button>
|
|
523
682
|
@if (item.children?.length) {
|
|
@@ -529,7 +688,7 @@ class ContextMenuComponent {
|
|
|
529
688
|
}
|
|
530
689
|
}
|
|
531
690
|
</ng-template>
|
|
532
|
-
`, isInline: true, styles: [".ngx-context-menu-backdrop{position:fixed;inset:0;z-index:9998;background:transparent}.ngx-context-menu{position:fixed;z-index:9999;padding:6px;border:1px solid var(--border-color,
|
|
691
|
+
`, isInline: true, styles: ["@keyframes contextMenuFadeIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.ngx-context-menu-backdrop{position:fixed;inset:0;z-index:9998;background:transparent}.ngx-context-menu{position:fixed;z-index:9999;padding:6px;border:1px solid var(--border-color, rgba(217, 222, 232, .6));border-radius:10px;background:var(--bg-secondary, rgba(255, 255, 255, .82));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 4px 6px -1px #0f172a0f,0 10px 15px -3px #0f172a14,0 20px 40px -4px #0f172a1f;color:var(--text-primary, #111827);font-family:var(--ngx-font-family, inherit);animation:contextMenuFadeIn .18s cubic-bezier(.4,0,.2,1)}.menu-entry{position:relative}.menu-item{position:relative;display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:9px;width:100%;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer;font:inherit;font-size:13px;line-height:1.2;padding:8px 10px;text-align:left;white-space:nowrap;transition:background-color .15s ease,color .15s ease}.menu-item:hover:not(:disabled),.menu-item.focused:not(:disabled){background:var(--border-light, #f3f6fb);outline:none}.menu-item:focus-visible{background:var(--border-light, #f3f6fb);outline:2px solid var(--primary-color, #4f46e5);outline-offset:-2px;border-radius:6px}.menu-item:disabled{color:var(--text-secondary, #94a3b8);cursor:not-allowed}.menu-item.danger{color:var(--ngx-danger, #dc2626)}.menu-item.danger:hover:not(:disabled),.menu-item.danger.focused:not(:disabled){background:#dc262614}.menu-icon{width:16px;text-align:center;color:var(--text-secondary, #64748b)}.menu-label{min-width:0;overflow:hidden;text-overflow:ellipsis}.menu-shortcut{font-size:10px;font-weight:600;color:var(--text-secondary, #64748b);background:var(--border-light, #f1f5f9);border:1px solid var(--border-color, #e2e8f0);padding:2px 6px;border-radius:4px;font-family:monospace;margin-left:auto}.menu-arrow{color:var(--text-secondary, #64748b)}.menu-separator{height:1px;margin:5px 4px;background:var(--border-color, #e5e7eb)}.submenu{display:none;position:absolute;left:calc(100% - 4px);top:-6px;min-width:190px;padding:6px;border:1px solid var(--border-color, rgba(217, 222, 232, .6));border-radius:10px;background:var(--bg-secondary, rgba(255, 255, 255, .82));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 4px 6px -1px #0f172a0f,0 10px 15px -3px #0f172a14,0 20px 40px -4px #0f172a1f;animation:contextMenuFadeIn .18s cubic-bezier(.4,0,.2,1)}.menu-entry:hover>.submenu,.menu-entry:focus-within>.submenu{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
533
692
|
}
|
|
534
693
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ContextMenuComponent, decorators: [{
|
|
535
694
|
type: Component,
|
|
@@ -553,7 +712,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
553
712
|
}
|
|
554
713
|
|
|
555
714
|
<ng-template #menuList let-items="items">
|
|
556
|
-
@for (item of items; track item.id) {
|
|
715
|
+
@for (item of items; track item.id; let i = $index) {
|
|
557
716
|
@if (item.separator) {
|
|
558
717
|
<div class="menu-separator" role="separator"></div>
|
|
559
718
|
} @else {
|
|
@@ -564,11 +723,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
564
723
|
role="menuitem"
|
|
565
724
|
[class.danger]="item.danger"
|
|
566
725
|
[class.has-children]="item.children?.length"
|
|
726
|
+
[class.focused]="focusedIndex() === flatIndexOf(item)"
|
|
567
727
|
[disabled]="item.disabled"
|
|
568
728
|
(click)="selectItem(item, $event)"
|
|
569
729
|
>
|
|
570
730
|
@if (item.icon) { <span class="menu-icon">{{ item.icon }}</span> }
|
|
571
731
|
<span class="menu-label">{{ item.label }}</span>
|
|
732
|
+
@if (item.shortcut) { <span class="menu-shortcut">{{ item.shortcut }}</span> }
|
|
572
733
|
@if (item.children?.length) { <span class="menu-arrow">></span> }
|
|
573
734
|
</button>
|
|
574
735
|
@if (item.children?.length) {
|
|
@@ -580,8 +741,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
580
741
|
}
|
|
581
742
|
}
|
|
582
743
|
</ng-template>
|
|
583
|
-
`, styles: [".ngx-context-menu-backdrop{position:fixed;inset:0;z-index:9998;background:transparent}.ngx-context-menu{position:fixed;z-index:9999;padding:6px;border:1px solid var(--border-color,
|
|
584
|
-
}]
|
|
744
|
+
`, styles: ["@keyframes contextMenuFadeIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.ngx-context-menu-backdrop{position:fixed;inset:0;z-index:9998;background:transparent}.ngx-context-menu{position:fixed;z-index:9999;padding:6px;border:1px solid var(--border-color, rgba(217, 222, 232, .6));border-radius:10px;background:var(--bg-secondary, rgba(255, 255, 255, .82));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 4px 6px -1px #0f172a0f,0 10px 15px -3px #0f172a14,0 20px 40px -4px #0f172a1f;color:var(--text-primary, #111827);font-family:var(--ngx-font-family, inherit);animation:contextMenuFadeIn .18s cubic-bezier(.4,0,.2,1)}.menu-entry{position:relative}.menu-item{position:relative;display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:9px;width:100%;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer;font:inherit;font-size:13px;line-height:1.2;padding:8px 10px;text-align:left;white-space:nowrap;transition:background-color .15s ease,color .15s ease}.menu-item:hover:not(:disabled),.menu-item.focused:not(:disabled){background:var(--border-light, #f3f6fb);outline:none}.menu-item:focus-visible{background:var(--border-light, #f3f6fb);outline:2px solid var(--primary-color, #4f46e5);outline-offset:-2px;border-radius:6px}.menu-item:disabled{color:var(--text-secondary, #94a3b8);cursor:not-allowed}.menu-item.danger{color:var(--ngx-danger, #dc2626)}.menu-item.danger:hover:not(:disabled),.menu-item.danger.focused:not(:disabled){background:#dc262614}.menu-icon{width:16px;text-align:center;color:var(--text-secondary, #64748b)}.menu-label{min-width:0;overflow:hidden;text-overflow:ellipsis}.menu-shortcut{font-size:10px;font-weight:600;color:var(--text-secondary, #64748b);background:var(--border-light, #f1f5f9);border:1px solid var(--border-color, #e2e8f0);padding:2px 6px;border-radius:4px;font-family:monospace;margin-left:auto}.menu-arrow{color:var(--text-secondary, #64748b)}.menu-separator{height:1px;margin:5px 4px;background:var(--border-color, #e5e7eb)}.submenu{display:none;position:absolute;left:calc(100% - 4px);top:-6px;min-width:190px;padding:6px;border:1px solid var(--border-color, rgba(217, 222, 232, .6));border-radius:10px;background:var(--bg-secondary, rgba(255, 255, 255, .82));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 4px 6px -1px #0f172a0f,0 10px 15px -3px #0f172a14,0 20px 40px -4px #0f172a1f;animation:contextMenuFadeIn .18s cubic-bezier(.4,0,.2,1)}.menu-entry:hover>.submenu,.menu-entry:focus-within>.submenu{display:block}\n"] }]
|
|
745
|
+
}], ctorParameters: () => [], propDecorators: { handleKeyDown: [{
|
|
746
|
+
type: HostListener,
|
|
747
|
+
args: ['document:keydown', ['$event']]
|
|
748
|
+
}] } });
|
|
585
749
|
|
|
586
750
|
class BackToTopComponent {
|
|
587
751
|
// Inputs
|
|
@@ -702,7 +866,7 @@ class BackToTopComponent {
|
|
|
702
866
|
<polyline points="18 15 12 9 6 15"></polyline>
|
|
703
867
|
</svg>
|
|
704
868
|
</button>
|
|
705
|
-
`, 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)}.
|
|
869
|
+
`, 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)}.ngx-back-to-top.dark{background:#0f172ad9;border:1px solid rgba(255,255,255,.08);color:#cbd5e1;box-shadow:0 10px 15px -3px #0000004d}.ngx-back-to-top.dark:hover{background:#1e293b;color:#fff}.ngx-back-to-top:focus-visible{outline:2px solid var(--primary-color, #3b82f6);outline-offset:3px}.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}.ngx-back-to-top.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 });
|
|
706
870
|
}
|
|
707
871
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BackToTopComponent, decorators: [{
|
|
708
872
|
type: Component,
|
|
@@ -740,7 +904,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
740
904
|
<polyline points="18 15 12 9 6 15"></polyline>
|
|
741
905
|
</svg>
|
|
742
906
|
</button>
|
|
743
|
-
`, 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)}.
|
|
907
|
+
`, 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)}.ngx-back-to-top.dark{background:#0f172ad9;border:1px solid rgba(255,255,255,.08);color:#cbd5e1;box-shadow:0 10px 15px -3px #0000004d}.ngx-back-to-top.dark:hover{background:#1e293b;color:#fff}.ngx-back-to-top:focus-visible{outline:2px solid var(--primary-color, #3b82f6);outline-offset:3px}.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}.ngx-back-to-top.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"] }]
|
|
744
908
|
}], ctorParameters: () => [] });
|
|
745
909
|
|
|
746
910
|
/*
|