@virusis/angular-ui 0.1.15 → 0.1.17
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/fesm2022/virusis-angular-ui.mjs +563 -7
- package/fesm2022/virusis-angular-ui.mjs.map +1 -1
- package/index.d.ts +171 -4
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import * as i1 from 'primeng/button';
|
|
|
6
6
|
import { ButtonModule } from 'primeng/button';
|
|
7
7
|
import * as i2 from 'primeng/tooltip';
|
|
8
8
|
import { TooltipModule } from 'primeng/tooltip';
|
|
9
|
-
import { THEME_MODES, createThemeModeController, toSeverity, severityMeta } from '@virusis/design-tokens';
|
|
9
|
+
import { THEME_MODES, createThemeModeController, toSeverity, severityMeta, severityToken } from '@virusis/design-tokens';
|
|
10
10
|
export { THEME_MODES } from '@virusis/design-tokens';
|
|
11
11
|
import * as i2$1 from 'primeng/menu';
|
|
12
12
|
import { MenuModule } from 'primeng/menu';
|
|
@@ -3839,6 +3839,319 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
3839
3839
|
type: Output
|
|
3840
3840
|
}] } });
|
|
3841
3841
|
|
|
3842
|
+
/** Varsayılan (Türkçe) metinler. `{n}` bekleyen sayısı, `{s}` saniye. */
|
|
3843
|
+
const VP_ISLAND_LABELS = {
|
|
3844
|
+
closeLabel: 'Bildirimi kapat',
|
|
3845
|
+
goLabel: 'Bildirimlere git',
|
|
3846
|
+
pendingLabel: '{n} bildirim daha',
|
|
3847
|
+
remainingLabel: '{s} saniye sonra kapanır',
|
|
3848
|
+
stickyLabel: 'Kapatılana kadar açık kalır',
|
|
3849
|
+
};
|
|
3850
|
+
/**
|
|
3851
|
+
* Kritik bildirim: `sticky` ya da `danger`. Tostun "hata kendiliğinden kapanmaz" kuralıyla aynı — iki yüzeyde aynı
|
|
3852
|
+
* tonun farklı davranması kullanıcıya iki ayrı kural öğretirdi.
|
|
3853
|
+
*/
|
|
3854
|
+
function vpIslandIsCritical(notice) {
|
|
3855
|
+
return !!notice && (notice.sticky === true || notice.tone === 'danger');
|
|
3856
|
+
}
|
|
3857
|
+
class VpNotificationIslandComponent {
|
|
3858
|
+
constructor() {
|
|
3859
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
3860
|
+
this.notice = null;
|
|
3861
|
+
/** Sırada bekleyen bildirim sayısı — "+N". Sırayı uygulama tutuyor. */
|
|
3862
|
+
this.pending = 0;
|
|
3863
|
+
/** Kritik olmayan bildirimin ekranda kalma süresi (ms). */
|
|
3864
|
+
this.duration = 6000;
|
|
3865
|
+
this.closeLabel = VP_ISLAND_LABELS.closeLabel;
|
|
3866
|
+
this.goLabel = VP_ISLAND_LABELS.goLabel;
|
|
3867
|
+
this.pendingLabel = VP_ISLAND_LABELS.pendingLabel;
|
|
3868
|
+
this.remainingLabel = VP_ISLAND_LABELS.remainingLabel;
|
|
3869
|
+
this.stickyLabel = VP_ISLAND_LABELS.stickyLabel;
|
|
3870
|
+
/** Hedefli bildirim tıklandı. Ada kapanıyor; gezinme uygulamanın işi. */
|
|
3871
|
+
this.opened = new EventEmitter();
|
|
3872
|
+
/** Süre doldu, kapat düğmesi ya da Escape. */
|
|
3873
|
+
this.dismissed = new EventEmitter();
|
|
3874
|
+
/** Halkayı baştan başlatmak için yeniden çizim anahtarı. */
|
|
3875
|
+
this.cycle = 0;
|
|
3876
|
+
this.closedId = null;
|
|
3877
|
+
this.timer = null;
|
|
3878
|
+
this.paused = false;
|
|
3879
|
+
}
|
|
3880
|
+
get visible() {
|
|
3881
|
+
return !!this.notice && this.notice.id !== this.closedId;
|
|
3882
|
+
}
|
|
3883
|
+
get critical() {
|
|
3884
|
+
return vpIslandIsCritical(this.notice);
|
|
3885
|
+
}
|
|
3886
|
+
get hasTarget() {
|
|
3887
|
+
return this.notice?.target !== undefined && this.notice?.target !== null;
|
|
3888
|
+
}
|
|
3889
|
+
get pendingText() {
|
|
3890
|
+
return this.pendingLabel.replace('{n}', String(this.pending));
|
|
3891
|
+
}
|
|
3892
|
+
get remainingText() {
|
|
3893
|
+
return this.critical
|
|
3894
|
+
? this.stickyLabel
|
|
3895
|
+
: this.remainingLabel.replace('{s}', String(Math.round(this.duration / 1000)));
|
|
3896
|
+
}
|
|
3897
|
+
ngOnChanges(changes) {
|
|
3898
|
+
if (!changes['notice'] && !changes['duration'])
|
|
3899
|
+
return;
|
|
3900
|
+
if (!this.notice) {
|
|
3901
|
+
this.clearTimer();
|
|
3902
|
+
this.closedId = null;
|
|
3903
|
+
return;
|
|
3904
|
+
}
|
|
3905
|
+
// Yeni kimlik "kapatıldı" bilgisini sıfırlıyor; aynı kimlik kapalı kalıyor.
|
|
3906
|
+
if (this.notice.id !== this.closedId)
|
|
3907
|
+
this.closedId = null;
|
|
3908
|
+
if (this.visible)
|
|
3909
|
+
this.restart();
|
|
3910
|
+
}
|
|
3911
|
+
ngOnDestroy() {
|
|
3912
|
+
this.clearTimer();
|
|
3913
|
+
}
|
|
3914
|
+
onKeydown(event) {
|
|
3915
|
+
if (event.key !== 'Escape' || event.defaultPrevented || !this.visible)
|
|
3916
|
+
return;
|
|
3917
|
+
this.close();
|
|
3918
|
+
}
|
|
3919
|
+
open() {
|
|
3920
|
+
const notice = this.hide();
|
|
3921
|
+
if (notice)
|
|
3922
|
+
this.opened.emit(notice);
|
|
3923
|
+
}
|
|
3924
|
+
close() {
|
|
3925
|
+
const notice = this.hide();
|
|
3926
|
+
if (notice)
|
|
3927
|
+
this.dismissed.emit(notice);
|
|
3928
|
+
}
|
|
3929
|
+
pause() {
|
|
3930
|
+
if (!this.visible)
|
|
3931
|
+
return;
|
|
3932
|
+
this.clearTimer();
|
|
3933
|
+
this.paused = true;
|
|
3934
|
+
}
|
|
3935
|
+
resume() {
|
|
3936
|
+
if (!this.paused)
|
|
3937
|
+
return;
|
|
3938
|
+
this.paused = false;
|
|
3939
|
+
this.restart();
|
|
3940
|
+
this.cdr.markForCheck();
|
|
3941
|
+
}
|
|
3942
|
+
onFocusOut(event) {
|
|
3943
|
+
const next = event.relatedTarget;
|
|
3944
|
+
if (next && event.currentTarget.contains(next))
|
|
3945
|
+
return;
|
|
3946
|
+
this.resume();
|
|
3947
|
+
}
|
|
3948
|
+
restart() {
|
|
3949
|
+
this.clearTimer();
|
|
3950
|
+
this.paused = false;
|
|
3951
|
+
this.cycle += 1;
|
|
3952
|
+
if (!this.visible || this.critical)
|
|
3953
|
+
return;
|
|
3954
|
+
this.timer = setTimeout(() => this.close(), this.duration);
|
|
3955
|
+
}
|
|
3956
|
+
hide() {
|
|
3957
|
+
const notice = this.notice;
|
|
3958
|
+
if (!notice || !this.visible)
|
|
3959
|
+
return null;
|
|
3960
|
+
this.clearTimer();
|
|
3961
|
+
this.paused = false;
|
|
3962
|
+
this.closedId = notice.id;
|
|
3963
|
+
this.cdr.markForCheck();
|
|
3964
|
+
return notice;
|
|
3965
|
+
}
|
|
3966
|
+
clearTimer() {
|
|
3967
|
+
if (this.timer === null)
|
|
3968
|
+
return;
|
|
3969
|
+
clearTimeout(this.timer);
|
|
3970
|
+
this.timer = null;
|
|
3971
|
+
}
|
|
3972
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpNotificationIslandComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3973
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpNotificationIslandComponent, isStandalone: true, selector: "vp-notification-island", inputs: { notice: "notice", pending: "pending", duration: "duration", closeLabel: "closeLabel", goLabel: "goLabel", pendingLabel: "pendingLabel", remainingLabel: "remainingLabel", stickyLabel: "stickyLabel" }, outputs: { opened: "opened", dismissed: "dismissed" }, host: { listeners: { "document:keydown": "onKeydown($event)" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
3974
|
+
<div
|
|
3975
|
+
class="vp-island"
|
|
3976
|
+
data-vp-island-region
|
|
3977
|
+
[attr.role]="critical ? 'alert' : 'status'"
|
|
3978
|
+
[attr.aria-live]="critical ? 'assertive' : 'polite'"
|
|
3979
|
+
aria-atomic="true">
|
|
3980
|
+
@if (visible ? notice : null; as n) {
|
|
3981
|
+
<div
|
|
3982
|
+
class="vp-island__frame"
|
|
3983
|
+
data-vp-island
|
|
3984
|
+
[attr.data-tone]="n.tone"
|
|
3985
|
+
[attr.data-critical]="critical ? 'true' : null"
|
|
3986
|
+
(pointerenter)="pause()"
|
|
3987
|
+
(pointerleave)="resume()"
|
|
3988
|
+
(focusin)="pause()"
|
|
3989
|
+
(focusout)="onFocusOut($event)">
|
|
3990
|
+
@if (hasTarget) {
|
|
3991
|
+
<button type="button" class="vp-island__card" data-vp-island-open (click)="open()">
|
|
3992
|
+
<ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: n }" />
|
|
3993
|
+
</button>
|
|
3994
|
+
} @else {
|
|
3995
|
+
<div class="vp-island__card" data-vp-island-static>
|
|
3996
|
+
<ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: n }" />
|
|
3997
|
+
</div>
|
|
3998
|
+
}
|
|
3999
|
+
<button
|
|
4000
|
+
type="button"
|
|
4001
|
+
class="vp-island__close"
|
|
4002
|
+
data-vp-island-close
|
|
4003
|
+
[attr.aria-label]="closeLabel"
|
|
4004
|
+
[attr.title]="closeLabel"
|
|
4005
|
+
(click)="close()">
|
|
4006
|
+
<span aria-hidden="true">✕</span>
|
|
4007
|
+
</button>
|
|
4008
|
+
</div>
|
|
4009
|
+
}
|
|
4010
|
+
</div>
|
|
4011
|
+
|
|
4012
|
+
<ng-template #content let-n>
|
|
4013
|
+
<span class="vp-island__row">
|
|
4014
|
+
@for (c of [cycle]; track c) {
|
|
4015
|
+
<span class="vp-island__timer" aria-hidden="true">
|
|
4016
|
+
<svg viewBox="0 0 20 20" focusable="false">
|
|
4017
|
+
<circle
|
|
4018
|
+
class="vp-island__ring"
|
|
4019
|
+
data-vp-island-ring
|
|
4020
|
+
cx="10"
|
|
4021
|
+
cy="10"
|
|
4022
|
+
r="7"
|
|
4023
|
+
[style.animation-duration.ms]="duration"></circle>
|
|
4024
|
+
<circle class="vp-island__core" cx="10" cy="10" r="2.7"></circle>
|
|
4025
|
+
</svg>
|
|
4026
|
+
</span>
|
|
4027
|
+
}
|
|
4028
|
+
<span class="vp-island__title">{{ n.title }}</span>
|
|
4029
|
+
@if (pending > 0) {
|
|
4030
|
+
<span class="vp-island__more" data-vp-island-pending aria-hidden="true">+{{ pending }}</span>
|
|
4031
|
+
<span class="vp-visually-hidden">{{ pendingText }}</span>
|
|
4032
|
+
}
|
|
4033
|
+
@if (n.timeLabel) {
|
|
4034
|
+
<span class="vp-island__at">{{ n.timeLabel }}</span>
|
|
4035
|
+
}
|
|
4036
|
+
</span>
|
|
4037
|
+
@if (n.detail || hasTarget) {
|
|
4038
|
+
<span class="vp-island__body">
|
|
4039
|
+
@if (n.detail) {
|
|
4040
|
+
<span>{{ n.detail }}</span>
|
|
4041
|
+
}
|
|
4042
|
+
@if (hasTarget) {
|
|
4043
|
+
<span class="vp-island__go">{{ goLabel }}<span aria-hidden="true"> →</span></span>
|
|
4044
|
+
}
|
|
4045
|
+
</span>
|
|
4046
|
+
}
|
|
4047
|
+
<span class="vp-visually-hidden" data-vp-island-remaining>{{ remainingText }}</span>
|
|
4048
|
+
</ng-template>
|
|
4049
|
+
`, isInline: true, styles: [":host{display:contents}.vp-island{position:fixed;top:var(--vp-space-2, .5rem);left:50%;z-index:70;width:0;height:0;pointer-events:none}.vp-island__frame{--vp-island-tone: var(--vp-brand);position:absolute;top:0;left:0;translate:-50% 0;width:max-content;max-width:min(32.5rem,calc(100vw - 1.25rem));border:1px solid var(--vp-border-strong);border-radius:var(--vp-radius-full);background:var(--vp-surface-raised);box-shadow:var(--vp-shadow-lg);overflow:hidden;pointer-events:auto;transition:border-radius var(--vp-duration-fast, .15s) var(--vp-ease-standard, ease);animation:vp-island-in .24s cubic-bezier(.2,.9,.3,1.25)}.vp-island__frame[data-tone=success]{--vp-island-tone: var(--vp-sev-clean)}.vp-island__frame[data-tone=warning]{--vp-island-tone: var(--vp-sev-medium)}.vp-island__frame[data-tone=danger],.vp-island__frame[data-critical=true]{--vp-island-tone: var(--vp-sev-critical)}.vp-island__card{display:block;width:100%;margin:0;padding:0;border:0;border-radius:inherit;background:transparent;font:inherit;color:inherit;text-align:left}button.vp-island__card{cursor:pointer}.vp-island__frame:hover,.vp-island__frame:focus-within{border-radius:var(--vp-radius-lg)}.vp-island__row{display:flex;align-items:center;gap:var(--vp-space-2, .5rem);min-height:2.125rem;padding:0 var(--vp-space-3, .75rem) 0 var(--vp-space-2, .5rem)}.vp-island__title{min-width:0;overflow:hidden;font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold, 600);color:var(--vp-text-primary);white-space:nowrap;text-overflow:ellipsis}.vp-island__more{flex:none;padding:1px var(--vp-space-2, .5rem);border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken);font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);color:var(--vp-text-muted)}.vp-island__at{flex:none;font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);color:var(--vp-text-muted);font-variant-numeric:tabular-nums}.vp-island__timer{flex:none;display:block;width:1.25rem;height:1.25rem}.vp-island__timer svg{display:block;width:100%;height:100%;transform:rotate(-90deg)}.vp-island__ring{fill:none;stroke:var(--vp-island-tone);stroke-width:1.6;stroke-dasharray:44;stroke-linecap:round;animation:vp-island-drain 6s linear forwards}.vp-island__core{fill:var(--vp-island-tone)}.vp-island__frame:hover .vp-island__ring,.vp-island__frame:focus-within .vp-island__ring{animation-play-state:paused}.vp-island__frame[data-critical=true] .vp-island__ring{animation:none}.vp-island__body{display:block;max-height:0;opacity:0;overflow:hidden;padding:0 var(--vp-space-3, .75rem) 0 2.25rem;font-size:var(--vp-text-sm);line-height:1.5;color:var(--vp-text-secondary);transition:max-height .2s ease,opacity .2s ease,padding-bottom .2s ease}.vp-island__frame:hover .vp-island__body,.vp-island__frame:focus-within .vp-island__body{max-height:6rem;opacity:1;padding-bottom:var(--vp-space-3, .75rem)}.vp-island__go{margin-left:var(--vp-space-1, .25rem);color:var(--vp-island-tone);white-space:nowrap}.vp-island__close{position:absolute;top:1.0625rem;right:var(--vp-space-1, .25rem);transform:translateY(-50%);display:grid;place-items:center;min-width:var(--vp-min-target);min-height:var(--vp-min-target);padding:0;border:0;border-radius:var(--vp-radius-full);background:transparent;font:inherit;font-size:var(--vp-text-xs);line-height:1;color:var(--vp-text-muted);cursor:pointer;opacity:0;transition:opacity var(--vp-duration-fast, .15s) ease}.vp-island__frame:hover .vp-island__close,.vp-island__frame:focus-within .vp-island__close,.vp-island__frame[data-critical=true] .vp-island__close{opacity:1}.vp-island__frame:hover .vp-island__row,.vp-island__frame:focus-within .vp-island__row,.vp-island__frame[data-critical=true] .vp-island__row{padding-right:2rem}.vp-island__close:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-island__card:focus-visible,.vp-island__close:focus-visible{outline:2px solid var(--vp-brand);outline-offset:2px}.vp-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@keyframes vp-island-in{0%{transform:translateY(-.875rem) scale(.92);opacity:0}to{transform:none;opacity:1}}@keyframes vp-island-in-up{0%{transform:translateY(.875rem) scale(.94);opacity:0}to{transform:none;opacity:1}}@keyframes vp-island-drain{to{stroke-dashoffset:44}}@media(hover:none){.vp-island__close{opacity:1}.vp-island__row{padding-right:2rem}}@media(max-width:900px){.vp-island{top:auto;bottom:max(.75rem,env(safe-area-inset-bottom))}.vp-island__frame{top:auto;bottom:0;max-width:calc(100vw - 1rem);animation-name:vp-island-in-up}}@media(prefers-reduced-motion:reduce){.vp-island__frame,.vp-island__body,.vp-island__close{animation:none;transition:none}.vp-island__ring{display:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4050
|
+
}
|
|
4051
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpNotificationIslandComponent, decorators: [{
|
|
4052
|
+
type: Component,
|
|
4053
|
+
args: [{ selector: 'vp-notification-island', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet], template: `
|
|
4054
|
+
<div
|
|
4055
|
+
class="vp-island"
|
|
4056
|
+
data-vp-island-region
|
|
4057
|
+
[attr.role]="critical ? 'alert' : 'status'"
|
|
4058
|
+
[attr.aria-live]="critical ? 'assertive' : 'polite'"
|
|
4059
|
+
aria-atomic="true">
|
|
4060
|
+
@if (visible ? notice : null; as n) {
|
|
4061
|
+
<div
|
|
4062
|
+
class="vp-island__frame"
|
|
4063
|
+
data-vp-island
|
|
4064
|
+
[attr.data-tone]="n.tone"
|
|
4065
|
+
[attr.data-critical]="critical ? 'true' : null"
|
|
4066
|
+
(pointerenter)="pause()"
|
|
4067
|
+
(pointerleave)="resume()"
|
|
4068
|
+
(focusin)="pause()"
|
|
4069
|
+
(focusout)="onFocusOut($event)">
|
|
4070
|
+
@if (hasTarget) {
|
|
4071
|
+
<button type="button" class="vp-island__card" data-vp-island-open (click)="open()">
|
|
4072
|
+
<ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: n }" />
|
|
4073
|
+
</button>
|
|
4074
|
+
} @else {
|
|
4075
|
+
<div class="vp-island__card" data-vp-island-static>
|
|
4076
|
+
<ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: n }" />
|
|
4077
|
+
</div>
|
|
4078
|
+
}
|
|
4079
|
+
<button
|
|
4080
|
+
type="button"
|
|
4081
|
+
class="vp-island__close"
|
|
4082
|
+
data-vp-island-close
|
|
4083
|
+
[attr.aria-label]="closeLabel"
|
|
4084
|
+
[attr.title]="closeLabel"
|
|
4085
|
+
(click)="close()">
|
|
4086
|
+
<span aria-hidden="true">✕</span>
|
|
4087
|
+
</button>
|
|
4088
|
+
</div>
|
|
4089
|
+
}
|
|
4090
|
+
</div>
|
|
4091
|
+
|
|
4092
|
+
<ng-template #content let-n>
|
|
4093
|
+
<span class="vp-island__row">
|
|
4094
|
+
@for (c of [cycle]; track c) {
|
|
4095
|
+
<span class="vp-island__timer" aria-hidden="true">
|
|
4096
|
+
<svg viewBox="0 0 20 20" focusable="false">
|
|
4097
|
+
<circle
|
|
4098
|
+
class="vp-island__ring"
|
|
4099
|
+
data-vp-island-ring
|
|
4100
|
+
cx="10"
|
|
4101
|
+
cy="10"
|
|
4102
|
+
r="7"
|
|
4103
|
+
[style.animation-duration.ms]="duration"></circle>
|
|
4104
|
+
<circle class="vp-island__core" cx="10" cy="10" r="2.7"></circle>
|
|
4105
|
+
</svg>
|
|
4106
|
+
</span>
|
|
4107
|
+
}
|
|
4108
|
+
<span class="vp-island__title">{{ n.title }}</span>
|
|
4109
|
+
@if (pending > 0) {
|
|
4110
|
+
<span class="vp-island__more" data-vp-island-pending aria-hidden="true">+{{ pending }}</span>
|
|
4111
|
+
<span class="vp-visually-hidden">{{ pendingText }}</span>
|
|
4112
|
+
}
|
|
4113
|
+
@if (n.timeLabel) {
|
|
4114
|
+
<span class="vp-island__at">{{ n.timeLabel }}</span>
|
|
4115
|
+
}
|
|
4116
|
+
</span>
|
|
4117
|
+
@if (n.detail || hasTarget) {
|
|
4118
|
+
<span class="vp-island__body">
|
|
4119
|
+
@if (n.detail) {
|
|
4120
|
+
<span>{{ n.detail }}</span>
|
|
4121
|
+
}
|
|
4122
|
+
@if (hasTarget) {
|
|
4123
|
+
<span class="vp-island__go">{{ goLabel }}<span aria-hidden="true"> →</span></span>
|
|
4124
|
+
}
|
|
4125
|
+
</span>
|
|
4126
|
+
}
|
|
4127
|
+
<span class="vp-visually-hidden" data-vp-island-remaining>{{ remainingText }}</span>
|
|
4128
|
+
</ng-template>
|
|
4129
|
+
`, styles: [":host{display:contents}.vp-island{position:fixed;top:var(--vp-space-2, .5rem);left:50%;z-index:70;width:0;height:0;pointer-events:none}.vp-island__frame{--vp-island-tone: var(--vp-brand);position:absolute;top:0;left:0;translate:-50% 0;width:max-content;max-width:min(32.5rem,calc(100vw - 1.25rem));border:1px solid var(--vp-border-strong);border-radius:var(--vp-radius-full);background:var(--vp-surface-raised);box-shadow:var(--vp-shadow-lg);overflow:hidden;pointer-events:auto;transition:border-radius var(--vp-duration-fast, .15s) var(--vp-ease-standard, ease);animation:vp-island-in .24s cubic-bezier(.2,.9,.3,1.25)}.vp-island__frame[data-tone=success]{--vp-island-tone: var(--vp-sev-clean)}.vp-island__frame[data-tone=warning]{--vp-island-tone: var(--vp-sev-medium)}.vp-island__frame[data-tone=danger],.vp-island__frame[data-critical=true]{--vp-island-tone: var(--vp-sev-critical)}.vp-island__card{display:block;width:100%;margin:0;padding:0;border:0;border-radius:inherit;background:transparent;font:inherit;color:inherit;text-align:left}button.vp-island__card{cursor:pointer}.vp-island__frame:hover,.vp-island__frame:focus-within{border-radius:var(--vp-radius-lg)}.vp-island__row{display:flex;align-items:center;gap:var(--vp-space-2, .5rem);min-height:2.125rem;padding:0 var(--vp-space-3, .75rem) 0 var(--vp-space-2, .5rem)}.vp-island__title{min-width:0;overflow:hidden;font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold, 600);color:var(--vp-text-primary);white-space:nowrap;text-overflow:ellipsis}.vp-island__more{flex:none;padding:1px var(--vp-space-2, .5rem);border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken);font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);color:var(--vp-text-muted)}.vp-island__at{flex:none;font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);color:var(--vp-text-muted);font-variant-numeric:tabular-nums}.vp-island__timer{flex:none;display:block;width:1.25rem;height:1.25rem}.vp-island__timer svg{display:block;width:100%;height:100%;transform:rotate(-90deg)}.vp-island__ring{fill:none;stroke:var(--vp-island-tone);stroke-width:1.6;stroke-dasharray:44;stroke-linecap:round;animation:vp-island-drain 6s linear forwards}.vp-island__core{fill:var(--vp-island-tone)}.vp-island__frame:hover .vp-island__ring,.vp-island__frame:focus-within .vp-island__ring{animation-play-state:paused}.vp-island__frame[data-critical=true] .vp-island__ring{animation:none}.vp-island__body{display:block;max-height:0;opacity:0;overflow:hidden;padding:0 var(--vp-space-3, .75rem) 0 2.25rem;font-size:var(--vp-text-sm);line-height:1.5;color:var(--vp-text-secondary);transition:max-height .2s ease,opacity .2s ease,padding-bottom .2s ease}.vp-island__frame:hover .vp-island__body,.vp-island__frame:focus-within .vp-island__body{max-height:6rem;opacity:1;padding-bottom:var(--vp-space-3, .75rem)}.vp-island__go{margin-left:var(--vp-space-1, .25rem);color:var(--vp-island-tone);white-space:nowrap}.vp-island__close{position:absolute;top:1.0625rem;right:var(--vp-space-1, .25rem);transform:translateY(-50%);display:grid;place-items:center;min-width:var(--vp-min-target);min-height:var(--vp-min-target);padding:0;border:0;border-radius:var(--vp-radius-full);background:transparent;font:inherit;font-size:var(--vp-text-xs);line-height:1;color:var(--vp-text-muted);cursor:pointer;opacity:0;transition:opacity var(--vp-duration-fast, .15s) ease}.vp-island__frame:hover .vp-island__close,.vp-island__frame:focus-within .vp-island__close,.vp-island__frame[data-critical=true] .vp-island__close{opacity:1}.vp-island__frame:hover .vp-island__row,.vp-island__frame:focus-within .vp-island__row,.vp-island__frame[data-critical=true] .vp-island__row{padding-right:2rem}.vp-island__close:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-island__card:focus-visible,.vp-island__close:focus-visible{outline:2px solid var(--vp-brand);outline-offset:2px}.vp-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@keyframes vp-island-in{0%{transform:translateY(-.875rem) scale(.92);opacity:0}to{transform:none;opacity:1}}@keyframes vp-island-in-up{0%{transform:translateY(.875rem) scale(.94);opacity:0}to{transform:none;opacity:1}}@keyframes vp-island-drain{to{stroke-dashoffset:44}}@media(hover:none){.vp-island__close{opacity:1}.vp-island__row{padding-right:2rem}}@media(max-width:900px){.vp-island{top:auto;bottom:max(.75rem,env(safe-area-inset-bottom))}.vp-island__frame{top:auto;bottom:0;max-width:calc(100vw - 1rem);animation-name:vp-island-in-up}}@media(prefers-reduced-motion:reduce){.vp-island__frame,.vp-island__body,.vp-island__close{animation:none;transition:none}.vp-island__ring{display:none}}\n"] }]
|
|
4130
|
+
}], propDecorators: { notice: [{
|
|
4131
|
+
type: Input
|
|
4132
|
+
}], pending: [{
|
|
4133
|
+
type: Input
|
|
4134
|
+
}], duration: [{
|
|
4135
|
+
type: Input
|
|
4136
|
+
}], closeLabel: [{
|
|
4137
|
+
type: Input
|
|
4138
|
+
}], goLabel: [{
|
|
4139
|
+
type: Input
|
|
4140
|
+
}], pendingLabel: [{
|
|
4141
|
+
type: Input
|
|
4142
|
+
}], remainingLabel: [{
|
|
4143
|
+
type: Input
|
|
4144
|
+
}], stickyLabel: [{
|
|
4145
|
+
type: Input
|
|
4146
|
+
}], opened: [{
|
|
4147
|
+
type: Output
|
|
4148
|
+
}], dismissed: [{
|
|
4149
|
+
type: Output
|
|
4150
|
+
}], onKeydown: [{
|
|
4151
|
+
type: HostListener,
|
|
4152
|
+
args: ['document:keydown', ['$event']]
|
|
4153
|
+
}] } });
|
|
4154
|
+
|
|
3842
4155
|
/**
|
|
3843
4156
|
* GlobalLayers — paket 17 §6.1, **P0**.
|
|
3844
4157
|
*
|
|
@@ -3864,6 +4177,17 @@ class VpGlobalLayersComponent {
|
|
|
3864
4177
|
/** Tam ekran yukleme ortusu. Uygulama acar/kapatir. */
|
|
3865
4178
|
this.loading = false;
|
|
3866
4179
|
this.loadingLabel = 'Yükleniyor';
|
|
4180
|
+
/** Bildirim adasında gösterilecek bildirim — uygulama karar veriyor (paket 28 · B2). */
|
|
4181
|
+
this.islandNotice = null;
|
|
4182
|
+
/** Sırada bekleyen bildirim sayısı ("+N"). */
|
|
4183
|
+
this.islandPending = 0;
|
|
4184
|
+
/** Ada metinleri; verilmeyen anahtar varsayılan (Türkçe) metinde kalır. */
|
|
4185
|
+
this.islandLabels = {};
|
|
4186
|
+
/** Hedefli bildirim tıklandı — gezinme uygulamada. */
|
|
4187
|
+
this.islandOpened = new EventEmitter();
|
|
4188
|
+
/** Süre doldu, kapatıldı ya da Escape. */
|
|
4189
|
+
this.islandDismissed = new EventEmitter();
|
|
4190
|
+
this.islandDefaults = VP_ISLAND_LABELS;
|
|
3867
4191
|
/**
|
|
3868
4192
|
* Aksiyonlu bildirimde dugmeye basildi.
|
|
3869
4193
|
*
|
|
@@ -3877,12 +4201,27 @@ class VpGlobalLayersComponent {
|
|
|
3877
4201
|
this.action.emit(id);
|
|
3878
4202
|
}
|
|
3879
4203
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpGlobalLayersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3880
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpGlobalLayersComponent, isStandalone: true, selector: "vp-global-layers", inputs: { loading: "loading", loadingLabel: "loadingLabel" }, outputs: { action: "action" }, ngImport: i0, template: `
|
|
4204
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpGlobalLayersComponent, isStandalone: true, selector: "vp-global-layers", inputs: { loading: "loading", loadingLabel: "loadingLabel", islandNotice: "islandNotice", islandPending: "islandPending", islandLabels: "islandLabels" }, outputs: { islandOpened: "islandOpened", islandDismissed: "islandDismissed", action: "action" }, ngImport: i0, template: `
|
|
3881
4205
|
<vp-toast
|
|
3882
4206
|
[toasts]="toastService.toasts()"
|
|
3883
4207
|
(dismissed)="toastService.dismiss($event)"
|
|
3884
4208
|
(actioned)="actioned($event)" />
|
|
3885
4209
|
|
|
4210
|
+
<!--
|
|
4211
|
+
Bildirim adası (paket 28 · B2): tostun yanında AYRI bölge. Tost işlemin sonucunu söyler, ada dışarıdan gelen
|
|
4212
|
+
olayı. Hangi bildirimin gösterileceği uygulamada; katman yalnız çiziyor ve olayları iletiyor.
|
|
4213
|
+
-->
|
|
4214
|
+
<vp-notification-island
|
|
4215
|
+
[notice]="islandNotice"
|
|
4216
|
+
[pending]="islandPending"
|
|
4217
|
+
[closeLabel]="islandLabels.closeLabel ?? islandDefaults.closeLabel"
|
|
4218
|
+
[goLabel]="islandLabels.goLabel ?? islandDefaults.goLabel"
|
|
4219
|
+
[pendingLabel]="islandLabels.pendingLabel ?? islandDefaults.pendingLabel"
|
|
4220
|
+
[remainingLabel]="islandLabels.remainingLabel ?? islandDefaults.remainingLabel"
|
|
4221
|
+
[stickyLabel]="islandLabels.stickyLabel ?? islandDefaults.stickyLabel"
|
|
4222
|
+
(opened)="islandOpened.emit($event)"
|
|
4223
|
+
(dismissed)="islandDismissed.emit($event)" />
|
|
4224
|
+
|
|
3886
4225
|
@if (loading) {
|
|
3887
4226
|
<div
|
|
3888
4227
|
class="vp-global-layers__overlay"
|
|
@@ -3893,16 +4232,31 @@ class VpGlobalLayersComponent {
|
|
|
3893
4232
|
<span class="vp-global-layers__spinner" aria-hidden="true"></span>
|
|
3894
4233
|
</div>
|
|
3895
4234
|
}
|
|
3896
|
-
`, isInline: true, styles: [".vp-global-layers__overlay{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--vp-surface-base, #0d1117) 70%,transparent)}.vp-global-layers__spinner{width:2rem;height:2rem;border:2px solid var(--vp-border-subtle, #30363d);border-top-color:var(--vp-brand, #2f81f7);border-radius:50%;animation:vp-global-layers-spin .7s linear infinite}@keyframes vp-global-layers-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.vp-global-layers__spinner{animation:vp-global-layers-pulse 1.6s ease-in-out infinite}@keyframes vp-global-layers-pulse{50%{opacity:.35}}}\n"], dependencies: [{ kind: "component", type: VpToastComponent, selector: "vp-toast", inputs: ["toasts", "dismissLabel", "defaultDismissMs"], outputs: ["dismissed", "actioned"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4235
|
+
`, isInline: true, styles: [".vp-global-layers__overlay{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--vp-surface-base, #0d1117) 70%,transparent)}.vp-global-layers__spinner{width:2rem;height:2rem;border:2px solid var(--vp-border-subtle, #30363d);border-top-color:var(--vp-brand, #2f81f7);border-radius:50%;animation:vp-global-layers-spin .7s linear infinite}@keyframes vp-global-layers-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.vp-global-layers__spinner{animation:vp-global-layers-pulse 1.6s ease-in-out infinite}@keyframes vp-global-layers-pulse{50%{opacity:.35}}}\n"], dependencies: [{ kind: "component", type: VpToastComponent, selector: "vp-toast", inputs: ["toasts", "dismissLabel", "defaultDismissMs"], outputs: ["dismissed", "actioned"] }, { kind: "component", type: VpNotificationIslandComponent, selector: "vp-notification-island", inputs: ["notice", "pending", "duration", "closeLabel", "goLabel", "pendingLabel", "remainingLabel", "stickyLabel"], outputs: ["opened", "dismissed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3897
4236
|
}
|
|
3898
4237
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpGlobalLayersComponent, decorators: [{
|
|
3899
4238
|
type: Component,
|
|
3900
|
-
args: [{ selector: 'vp-global-layers', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [VpToastComponent], template: `
|
|
4239
|
+
args: [{ selector: 'vp-global-layers', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [VpToastComponent, VpNotificationIslandComponent], template: `
|
|
3901
4240
|
<vp-toast
|
|
3902
4241
|
[toasts]="toastService.toasts()"
|
|
3903
4242
|
(dismissed)="toastService.dismiss($event)"
|
|
3904
4243
|
(actioned)="actioned($event)" />
|
|
3905
4244
|
|
|
4245
|
+
<!--
|
|
4246
|
+
Bildirim adası (paket 28 · B2): tostun yanında AYRI bölge. Tost işlemin sonucunu söyler, ada dışarıdan gelen
|
|
4247
|
+
olayı. Hangi bildirimin gösterileceği uygulamada; katman yalnız çiziyor ve olayları iletiyor.
|
|
4248
|
+
-->
|
|
4249
|
+
<vp-notification-island
|
|
4250
|
+
[notice]="islandNotice"
|
|
4251
|
+
[pending]="islandPending"
|
|
4252
|
+
[closeLabel]="islandLabels.closeLabel ?? islandDefaults.closeLabel"
|
|
4253
|
+
[goLabel]="islandLabels.goLabel ?? islandDefaults.goLabel"
|
|
4254
|
+
[pendingLabel]="islandLabels.pendingLabel ?? islandDefaults.pendingLabel"
|
|
4255
|
+
[remainingLabel]="islandLabels.remainingLabel ?? islandDefaults.remainingLabel"
|
|
4256
|
+
[stickyLabel]="islandLabels.stickyLabel ?? islandDefaults.stickyLabel"
|
|
4257
|
+
(opened)="islandOpened.emit($event)"
|
|
4258
|
+
(dismissed)="islandDismissed.emit($event)" />
|
|
4259
|
+
|
|
3906
4260
|
@if (loading) {
|
|
3907
4261
|
<div
|
|
3908
4262
|
class="vp-global-layers__overlay"
|
|
@@ -3918,6 +4272,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
3918
4272
|
type: Input
|
|
3919
4273
|
}], loadingLabel: [{
|
|
3920
4274
|
type: Input
|
|
4275
|
+
}], islandNotice: [{
|
|
4276
|
+
type: Input
|
|
4277
|
+
}], islandPending: [{
|
|
4278
|
+
type: Input
|
|
4279
|
+
}], islandLabels: [{
|
|
4280
|
+
type: Input
|
|
4281
|
+
}], islandOpened: [{
|
|
4282
|
+
type: Output
|
|
4283
|
+
}], islandDismissed: [{
|
|
4284
|
+
type: Output
|
|
3921
4285
|
}], action: [{
|
|
3922
4286
|
type: Output
|
|
3923
4287
|
}] } });
|
|
@@ -5680,7 +6044,7 @@ class VpDataTableComponent {
|
|
|
5680
6044
|
}
|
|
5681
6045
|
}
|
|
5682
6046
|
</div>
|
|
5683
|
-
`, isInline: true, styles: [":host{display:block}.vp-table{border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);overflow:hidden}.vp-table__meta{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);padding:var(--vp-space-3) var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-muted);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-table__scroll{overflow-x:auto}.vp-table__table{width:100%;border-collapse:collapse;font-size:var(--vp-text-base)}.vp-table__table th{position:sticky;top:0;z-index:1;height:var(--vp-header-height);padding:0 var(--vp-space-3);text-align:left;white-space:nowrap;background:var(--vp-surface-raised);border-bottom:1px solid var(--vp-border-default);color:var(--vp-text-secondary);font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold)}.vp-table__table td{height:var(--vp-row-height);padding:0 var(--vp-space-3);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-primary);font-variant-numeric:tabular-nums}.vp-table__table tbody tr:hover td{background:var(--vp-surface-sunken)}.vp-table__table tbody tr:last-child td{border-bottom:0}.vp-table__sort{display:inline-flex;align-items:center;gap:var(--vp-space-1);min-height:var(--vp-min-target);padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}.vp-table__sort:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__sort-icon{color:var(--vp-text-muted)}.vp-table__empty,.vp-table__error{display:flex;flex-direction:column;align-items:center;gap:var(--vp-space-3);padding:var(--vp-space-12) var(--vp-space-6);text-align:center;color:var(--vp-text-secondary)}.vp-table__state-icon{width:40px;height:40px;color:var(--vp-text-muted)}.vp-table__error .vp-table__state-icon{color:var(--vp-sev-critical)}.vp-table__state-text{margin:0}.vp-table__retry{min-height:var(--vp-control-height);padding:0 var(--vp-space-4);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__retry:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__skeleton{display:flex;flex-direction:column;gap:1px;padding:var(--vp-space-2)}.vp-table__skeleton-row{display:block;height:var(--vp-row-height);border-radius:var(--vp-radius-sm);background:var(--vp-surface-sunken);animation:vp-table-pulse 1.4s var(--vp-ease-standard) infinite}@keyframes vp-table-pulse{0%,to{opacity:1}50%{opacity:.55}}.vp-table__search{flex:1 1 12rem;min-width:8rem;max-width:18rem;padding:.25rem .5rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}.vp-table__page-size{padding:.2rem .4rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}.vp-table__pager{display:flex;justify-content:flex-end;gap:var(--vp-space-2);padding:var(--vp-space-3) var(--vp-space-4);border-top:1px solid var(--vp-border-subtle)}.vp-table__page-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__page-btn:disabled{opacity:.5;cursor:not-allowed}.vp-table__page-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}@media(prefers-reduced-motion:reduce){.vp-table__skeleton-row{animation:none}}.vp-table__cols-btn{margin-left:auto;min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__cols-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__icon-btn{display:inline-grid;place-items:center;min-width:var(--vp-
|
|
6047
|
+
`, isInline: true, styles: [":host{display:block}.vp-table{border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);overflow:hidden}.vp-table__meta{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);padding:var(--vp-space-3) var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-muted);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-table__scroll{overflow-x:auto}.vp-table__table{width:100%;border-collapse:collapse;font-size:var(--vp-text-base)}.vp-table__table th{position:sticky;top:0;z-index:1;height:var(--vp-header-height);padding:0 var(--vp-space-3);text-align:left;white-space:nowrap;background:var(--vp-surface-raised);border-bottom:1px solid var(--vp-border-default);color:var(--vp-text-secondary);font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold)}.vp-table__table td{height:var(--vp-row-height);padding:0 var(--vp-space-3);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-primary);font-variant-numeric:tabular-nums}.vp-table__table tbody tr:hover td{background:var(--vp-surface-sunken)}.vp-table__table tbody tr:last-child td{border-bottom:0}.vp-table__sort{display:inline-flex;align-items:center;gap:var(--vp-space-1);min-height:var(--vp-min-target);padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}.vp-table__sort:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__sort-icon{color:var(--vp-text-muted)}.vp-table__empty,.vp-table__error{display:flex;flex-direction:column;align-items:center;gap:var(--vp-space-3);padding:var(--vp-space-12) var(--vp-space-6);text-align:center;color:var(--vp-text-secondary)}.vp-table__state-icon{width:40px;height:40px;color:var(--vp-text-muted)}.vp-table__error .vp-table__state-icon{color:var(--vp-sev-critical)}.vp-table__state-text{margin:0}.vp-table__retry{min-height:var(--vp-control-height);padding:0 var(--vp-space-4);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__retry:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__skeleton{display:flex;flex-direction:column;gap:1px;padding:var(--vp-space-2)}.vp-table__skeleton-row{display:block;height:var(--vp-row-height);border-radius:var(--vp-radius-sm);background:var(--vp-surface-sunken);animation:vp-table-pulse 1.4s var(--vp-ease-standard) infinite}@keyframes vp-table-pulse{0%,to{opacity:1}50%{opacity:.55}}.vp-table__search{flex:1 1 12rem;min-width:8rem;max-width:18rem;min-height:var(--vp-control-height);box-sizing:border-box;padding:.25rem .5rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}@media(max-width:640px){.vp-table__meta{flex-wrap:wrap}.vp-table__search{flex:1 1 100%;max-width:none}}.vp-table__page-size{min-height:var(--vp-control-height);box-sizing:border-box;padding:.2rem .4rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}.vp-table__pager{display:flex;justify-content:flex-end;gap:var(--vp-space-2);padding:var(--vp-space-3) var(--vp-space-4);border-top:1px solid var(--vp-border-subtle)}.vp-table__page-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__page-btn:disabled{opacity:.5;cursor:not-allowed}.vp-table__page-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}@media(prefers-reduced-motion:reduce){.vp-table__skeleton-row{animation:none}}.vp-table__cols-btn{margin-left:auto;min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__cols-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__icon-btn{display:inline-grid;place-items:center;min-width:var(--vp-control-height);padding:0;color:var(--vp-text-secondary)}.vp-table__icon-btn:hover{color:var(--vp-text-primary)}.vp-table__icon{width:18px;height:18px}.vp-table__cols{display:flex;flex-direction:column;gap:var(--vp-space-1);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised)}.vp-table__cols-row{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3)}.vp-table__cols-label{display:flex;align-items:center;gap:var(--vp-space-2);cursor:pointer}.vp-table__cols-move button{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);cursor:pointer}.vp-table__cols-move button:disabled{opacity:.4;cursor:not-allowed}.vp-table__cols-move button:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__select-cell{width:var(--vp-min-target);text-align:center}.vp-table__bulk,.vp-table__bulk-confirm,.vp-table__bulk-report{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);font-size:var(--vp-text-sm)}.vp-table__bulk-report{display:block}.vp-table__bulk-confirm{border-color:var(--vp-danger)}.vp-table__bulk-actions{display:flex;gap:var(--vp-space-2)}.vp-table__bulk-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__bulk-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__bulk-btn--danger{border-color:var(--vp-danger);color:var(--vp-danger)}.vp-table__bulk-failures{margin:var(--vp-space-2) 0 0;padding-left:var(--vp-space-5)}.vp-table__expand{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid transparent;border-radius:var(--vp-radius-md);background:transparent;color:var(--vp-text-primary);cursor:pointer}.vp-table__expand:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__detail-row>td{background:var(--vp-surface-raised);padding:var(--vp-space-4)}.vp-table__detail-empty{color:var(--vp-text-muted)}.vp-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5684
6048
|
}
|
|
5685
6049
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDataTableComponent, decorators: [{
|
|
5686
6050
|
type: Component,
|
|
@@ -6005,7 +6369,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
6005
6369
|
}
|
|
6006
6370
|
}
|
|
6007
6371
|
</div>
|
|
6008
|
-
`, styles: [":host{display:block}.vp-table{border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);overflow:hidden}.vp-table__meta{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);padding:var(--vp-space-3) var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-muted);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-table__scroll{overflow-x:auto}.vp-table__table{width:100%;border-collapse:collapse;font-size:var(--vp-text-base)}.vp-table__table th{position:sticky;top:0;z-index:1;height:var(--vp-header-height);padding:0 var(--vp-space-3);text-align:left;white-space:nowrap;background:var(--vp-surface-raised);border-bottom:1px solid var(--vp-border-default);color:var(--vp-text-secondary);font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold)}.vp-table__table td{height:var(--vp-row-height);padding:0 var(--vp-space-3);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-primary);font-variant-numeric:tabular-nums}.vp-table__table tbody tr:hover td{background:var(--vp-surface-sunken)}.vp-table__table tbody tr:last-child td{border-bottom:0}.vp-table__sort{display:inline-flex;align-items:center;gap:var(--vp-space-1);min-height:var(--vp-min-target);padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}.vp-table__sort:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__sort-icon{color:var(--vp-text-muted)}.vp-table__empty,.vp-table__error{display:flex;flex-direction:column;align-items:center;gap:var(--vp-space-3);padding:var(--vp-space-12) var(--vp-space-6);text-align:center;color:var(--vp-text-secondary)}.vp-table__state-icon{width:40px;height:40px;color:var(--vp-text-muted)}.vp-table__error .vp-table__state-icon{color:var(--vp-sev-critical)}.vp-table__state-text{margin:0}.vp-table__retry{min-height:var(--vp-control-height);padding:0 var(--vp-space-4);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__retry:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__skeleton{display:flex;flex-direction:column;gap:1px;padding:var(--vp-space-2)}.vp-table__skeleton-row{display:block;height:var(--vp-row-height);border-radius:var(--vp-radius-sm);background:var(--vp-surface-sunken);animation:vp-table-pulse 1.4s var(--vp-ease-standard) infinite}@keyframes vp-table-pulse{0%,to{opacity:1}50%{opacity:.55}}.vp-table__search{flex:1 1 12rem;min-width:8rem;max-width:18rem;padding:.25rem .5rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}.vp-table__page-size{padding:.2rem .4rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}.vp-table__pager{display:flex;justify-content:flex-end;gap:var(--vp-space-2);padding:var(--vp-space-3) var(--vp-space-4);border-top:1px solid var(--vp-border-subtle)}.vp-table__page-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__page-btn:disabled{opacity:.5;cursor:not-allowed}.vp-table__page-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}@media(prefers-reduced-motion:reduce){.vp-table__skeleton-row{animation:none}}.vp-table__cols-btn{margin-left:auto;min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__cols-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__icon-btn{display:inline-grid;place-items:center;min-width:var(--vp-
|
|
6372
|
+
`, styles: [":host{display:block}.vp-table{border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);overflow:hidden}.vp-table__meta{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);padding:var(--vp-space-3) var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-muted);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-table__scroll{overflow-x:auto}.vp-table__table{width:100%;border-collapse:collapse;font-size:var(--vp-text-base)}.vp-table__table th{position:sticky;top:0;z-index:1;height:var(--vp-header-height);padding:0 var(--vp-space-3);text-align:left;white-space:nowrap;background:var(--vp-surface-raised);border-bottom:1px solid var(--vp-border-default);color:var(--vp-text-secondary);font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold)}.vp-table__table td{height:var(--vp-row-height);padding:0 var(--vp-space-3);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-primary);font-variant-numeric:tabular-nums}.vp-table__table tbody tr:hover td{background:var(--vp-surface-sunken)}.vp-table__table tbody tr:last-child td{border-bottom:0}.vp-table__sort{display:inline-flex;align-items:center;gap:var(--vp-space-1);min-height:var(--vp-min-target);padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}.vp-table__sort:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__sort-icon{color:var(--vp-text-muted)}.vp-table__empty,.vp-table__error{display:flex;flex-direction:column;align-items:center;gap:var(--vp-space-3);padding:var(--vp-space-12) var(--vp-space-6);text-align:center;color:var(--vp-text-secondary)}.vp-table__state-icon{width:40px;height:40px;color:var(--vp-text-muted)}.vp-table__error .vp-table__state-icon{color:var(--vp-sev-critical)}.vp-table__state-text{margin:0}.vp-table__retry{min-height:var(--vp-control-height);padding:0 var(--vp-space-4);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__retry:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__skeleton{display:flex;flex-direction:column;gap:1px;padding:var(--vp-space-2)}.vp-table__skeleton-row{display:block;height:var(--vp-row-height);border-radius:var(--vp-radius-sm);background:var(--vp-surface-sunken);animation:vp-table-pulse 1.4s var(--vp-ease-standard) infinite}@keyframes vp-table-pulse{0%,to{opacity:1}50%{opacity:.55}}.vp-table__search{flex:1 1 12rem;min-width:8rem;max-width:18rem;min-height:var(--vp-control-height);box-sizing:border-box;padding:.25rem .5rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}@media(max-width:640px){.vp-table__meta{flex-wrap:wrap}.vp-table__search{flex:1 1 100%;max-width:none}}.vp-table__page-size{min-height:var(--vp-control-height);box-sizing:border-box;padding:.2rem .4rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}.vp-table__pager{display:flex;justify-content:flex-end;gap:var(--vp-space-2);padding:var(--vp-space-3) var(--vp-space-4);border-top:1px solid var(--vp-border-subtle)}.vp-table__page-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__page-btn:disabled{opacity:.5;cursor:not-allowed}.vp-table__page-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}@media(prefers-reduced-motion:reduce){.vp-table__skeleton-row{animation:none}}.vp-table__cols-btn{margin-left:auto;min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__cols-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__icon-btn{display:inline-grid;place-items:center;min-width:var(--vp-control-height);padding:0;color:var(--vp-text-secondary)}.vp-table__icon-btn:hover{color:var(--vp-text-primary)}.vp-table__icon{width:18px;height:18px}.vp-table__cols{display:flex;flex-direction:column;gap:var(--vp-space-1);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised)}.vp-table__cols-row{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3)}.vp-table__cols-label{display:flex;align-items:center;gap:var(--vp-space-2);cursor:pointer}.vp-table__cols-move button{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);cursor:pointer}.vp-table__cols-move button:disabled{opacity:.4;cursor:not-allowed}.vp-table__cols-move button:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__select-cell{width:var(--vp-min-target);text-align:center}.vp-table__bulk,.vp-table__bulk-confirm,.vp-table__bulk-report{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);font-size:var(--vp-text-sm)}.vp-table__bulk-report{display:block}.vp-table__bulk-confirm{border-color:var(--vp-danger)}.vp-table__bulk-actions{display:flex;gap:var(--vp-space-2)}.vp-table__bulk-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__bulk-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__bulk-btn--danger{border-color:var(--vp-danger);color:var(--vp-danger)}.vp-table__bulk-failures{margin:var(--vp-space-2) 0 0;padding-left:var(--vp-space-5)}.vp-table__expand{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid transparent;border-radius:var(--vp-radius-md);background:transparent;color:var(--vp-text-primary);cursor:pointer}.vp-table__expand:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__detail-row>td{background:var(--vp-surface-raised);padding:var(--vp-space-4)}.vp-table__detail-empty{color:var(--vp-text-muted)}.vp-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n"] }]
|
|
6009
6373
|
}], propDecorators: { columns: [{
|
|
6010
6374
|
type: Input,
|
|
6011
6375
|
args: [{ required: true }]
|
|
@@ -8590,6 +8954,198 @@ function mergeStageUpdate(stages, update) {
|
|
|
8590
8954
|
});
|
|
8591
8955
|
}
|
|
8592
8956
|
|
|
8957
|
+
const GEOMETRY = {
|
|
8958
|
+
lg: { size: 132, stroke: 10 },
|
|
8959
|
+
sm: { size: 74, stroke: 7 },
|
|
8960
|
+
};
|
|
8961
|
+
/**
|
|
8962
|
+
* Skor halkası — paket 28 · K5 (tasarım `analysis.md` Ek "Skorlar göstergesi ortalama", 2026-09-13).
|
|
8963
|
+
*
|
|
8964
|
+
* Müşteri konsolu sonuç ekranındaki "Skorlar" kartı: büyük halkada genel skor, küçük halkalarda alt
|
|
8965
|
+
* skorlar. `vp-risk-score` düz sayı + seviye; bu bileşen aynı bilgiyi halkayla çiziyor.
|
|
8966
|
+
*
|
|
8967
|
+
* Kurallar:
|
|
8968
|
+
* - Varsayılan ölçek GÜVENLİK (`safety`, yüksek = güvenli). 🔴 Gözden geçirme R11: tarama genel skoru
|
|
8969
|
+
* böyle üretiliyor; risk ölçeğiyle okununca 95 (A notu) "kritik" boyanıyordu.
|
|
8970
|
+
* - Sayı halkanın TAM merkezinde (grid), birim merkezin altında mutlak konumda. Prototip ölçümü: sayı +
|
|
8971
|
+
* birim tek blok olarak ortalanınca sayı merkezin 10px üstünde kalıyordu.
|
|
8972
|
+
* - Renk ciddiyet belirtecinden (`--vp-sev-*`); renk tek başına anlam taşımıyor — seviye etiketi
|
|
8973
|
+
* tüketiciden (`levelLabel`) ve ekran okuyucu cümlesinde.
|
|
8974
|
+
* - `null` → yay YOK, "bilinmiyor". Ölçemediğimiz skor temiz değil.
|
|
8975
|
+
*/
|
|
8976
|
+
class VpScoreRingComponent {
|
|
8977
|
+
constructor() {
|
|
8978
|
+
/** `null` = ölçülmedi. `0` = ölçüldü. */
|
|
8979
|
+
this.value = null;
|
|
8980
|
+
/** Varsayılan güvenlik ölçeği (R11). Risk skoru çizilecekse `centesimal`. */
|
|
8981
|
+
this.scale = 'safety';
|
|
8982
|
+
this.size = 'lg';
|
|
8983
|
+
/** Sayının altındaki kısa birim ("/ 100", "şu ana kadar"); boşsa çizilmez. */
|
|
8984
|
+
this.unit = '/ 100';
|
|
8985
|
+
/** Ekran okuyucu cümlesinin öznesi. */
|
|
8986
|
+
this.label = 'Güvenlik skoru';
|
|
8987
|
+
/** Seviye adı — tasarım sistemi çeviri yapmıyor, metin tüketiciden. */
|
|
8988
|
+
this.levelLabel = null;
|
|
8989
|
+
this.unknownLabel = 'Bilinmiyor';
|
|
8990
|
+
}
|
|
8991
|
+
get geometry() {
|
|
8992
|
+
return GEOMETRY[this.size] ?? GEOMETRY.lg;
|
|
8993
|
+
}
|
|
8994
|
+
get hasValue() {
|
|
8995
|
+
return this.value !== null && this.value !== undefined && !Number.isNaN(this.value);
|
|
8996
|
+
}
|
|
8997
|
+
get max() {
|
|
8998
|
+
return this.scale === 'decimal' ? 10 : 100;
|
|
8999
|
+
}
|
|
9000
|
+
get level() {
|
|
9001
|
+
return toSeverity(this.hasValue ? this.value : null, this.scale);
|
|
9002
|
+
}
|
|
9003
|
+
get color() {
|
|
9004
|
+
return severityToken(this.level);
|
|
9005
|
+
}
|
|
9006
|
+
get displayValue() {
|
|
9007
|
+
return Math.round(this.value);
|
|
9008
|
+
}
|
|
9009
|
+
get viewBox() {
|
|
9010
|
+
return `0 0 ${this.geometry.size} ${this.geometry.size}`;
|
|
9011
|
+
}
|
|
9012
|
+
get center() {
|
|
9013
|
+
return this.geometry.size / 2;
|
|
9014
|
+
}
|
|
9015
|
+
get radius() {
|
|
9016
|
+
return (this.geometry.size - this.geometry.stroke) / 2;
|
|
9017
|
+
}
|
|
9018
|
+
get circumference() {
|
|
9019
|
+
return Number((2 * Math.PI * this.radius).toFixed(2));
|
|
9020
|
+
}
|
|
9021
|
+
get dashOffset() {
|
|
9022
|
+
const ratio = Math.min(1, Math.max(0, this.value / this.max));
|
|
9023
|
+
return Number((this.circumference * (1 - ratio)).toFixed(2));
|
|
9024
|
+
}
|
|
9025
|
+
get ariaLabel() {
|
|
9026
|
+
if (!this.hasValue)
|
|
9027
|
+
return `${this.label}: ${this.unknownLabel}`;
|
|
9028
|
+
const level = this.levelLabel ? ` — ${this.levelLabel}` : '';
|
|
9029
|
+
return `${this.label}: ${this.displayValue} ${this.unit || `/ ${this.max}`}${level}`;
|
|
9030
|
+
}
|
|
9031
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpScoreRingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9032
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpScoreRingComponent, isStandalone: true, selector: "vp-score-ring", inputs: { value: "value", scale: "scale", size: "size", unit: "unit", label: "label", levelLabel: "levelLabel", unknownLabel: "unknownLabel" }, ngImport: i0, template: `
|
|
9033
|
+
<div
|
|
9034
|
+
class="vp-score-ring"
|
|
9035
|
+
data-vp-score-ring
|
|
9036
|
+
role="img"
|
|
9037
|
+
[attr.data-size]="size"
|
|
9038
|
+
[attr.data-level]="level"
|
|
9039
|
+
[attr.aria-label]="ariaLabel"
|
|
9040
|
+
[style.width.px]="geometry.size"
|
|
9041
|
+
[style.height.px]="geometry.size">
|
|
9042
|
+
<svg
|
|
9043
|
+
class="vp-score-ring__svg"
|
|
9044
|
+
aria-hidden="true"
|
|
9045
|
+
focusable="false"
|
|
9046
|
+
[attr.viewBox]="viewBox"
|
|
9047
|
+
[attr.width]="geometry.size"
|
|
9048
|
+
[attr.height]="geometry.size">
|
|
9049
|
+
<circle
|
|
9050
|
+
class="vp-score-ring__track"
|
|
9051
|
+
fill="none"
|
|
9052
|
+
[attr.cx]="center"
|
|
9053
|
+
[attr.cy]="center"
|
|
9054
|
+
[attr.r]="radius"
|
|
9055
|
+
[attr.stroke-width]="geometry.stroke" />
|
|
9056
|
+
@if (hasValue) {
|
|
9057
|
+
<circle
|
|
9058
|
+
class="vp-score-ring__arc"
|
|
9059
|
+
data-vp-score-ring-arc
|
|
9060
|
+
fill="none"
|
|
9061
|
+
stroke-linecap="round"
|
|
9062
|
+
[attr.cx]="center"
|
|
9063
|
+
[attr.cy]="center"
|
|
9064
|
+
[attr.r]="radius"
|
|
9065
|
+
[attr.stroke]="color"
|
|
9066
|
+
[attr.stroke-width]="geometry.stroke"
|
|
9067
|
+
[attr.stroke-dasharray]="circumference"
|
|
9068
|
+
[attr.stroke-dashoffset]="dashOffset" />
|
|
9069
|
+
}
|
|
9070
|
+
</svg>
|
|
9071
|
+
<span class="vp-score-ring__center">
|
|
9072
|
+
<span class="vp-score-ring__value" data-vp-score-ring-value [style.color]="hasValue ? color : null">{{
|
|
9073
|
+
hasValue ? displayValue : unknownLabel
|
|
9074
|
+
}}</span>
|
|
9075
|
+
@if (hasValue && unit) {
|
|
9076
|
+
<span class="vp-score-ring__unit" data-vp-score-ring-unit>{{ unit }}</span>
|
|
9077
|
+
}
|
|
9078
|
+
</span>
|
|
9079
|
+
</div>
|
|
9080
|
+
`, isInline: true, styles: [":host{display:inline-block}.vp-score-ring{position:relative;flex:none}.vp-score-ring__svg{position:absolute;inset:0;transform:rotate(-90deg)}.vp-score-ring__track{stroke:var(--vp-surface-sunken)}.vp-score-ring__center{position:absolute;inset:0;display:grid;place-items:center}.vp-score-ring__value{font-family:var(--vp-font-sans);font-size:var(--vp-text-4xl);font-weight:var(--vp-weight-semibold);line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--vp-text-muted)}.vp-score-ring__unit{position:absolute;left:0;right:0;top:calc(50% + 1.3rem);color:var(--vp-text-muted);font-size:var(--vp-text-xs);line-height:1.2;text-align:center}.vp-score-ring[data-size=sm] .vp-score-ring__value{font-size:var(--vp-text-lg)}.vp-score-ring[data-size=sm] .vp-score-ring__unit{top:calc(50% + .75rem)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9081
|
+
}
|
|
9082
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpScoreRingComponent, decorators: [{
|
|
9083
|
+
type: Component,
|
|
9084
|
+
args: [{ selector: 'vp-score-ring', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
9085
|
+
<div
|
|
9086
|
+
class="vp-score-ring"
|
|
9087
|
+
data-vp-score-ring
|
|
9088
|
+
role="img"
|
|
9089
|
+
[attr.data-size]="size"
|
|
9090
|
+
[attr.data-level]="level"
|
|
9091
|
+
[attr.aria-label]="ariaLabel"
|
|
9092
|
+
[style.width.px]="geometry.size"
|
|
9093
|
+
[style.height.px]="geometry.size">
|
|
9094
|
+
<svg
|
|
9095
|
+
class="vp-score-ring__svg"
|
|
9096
|
+
aria-hidden="true"
|
|
9097
|
+
focusable="false"
|
|
9098
|
+
[attr.viewBox]="viewBox"
|
|
9099
|
+
[attr.width]="geometry.size"
|
|
9100
|
+
[attr.height]="geometry.size">
|
|
9101
|
+
<circle
|
|
9102
|
+
class="vp-score-ring__track"
|
|
9103
|
+
fill="none"
|
|
9104
|
+
[attr.cx]="center"
|
|
9105
|
+
[attr.cy]="center"
|
|
9106
|
+
[attr.r]="radius"
|
|
9107
|
+
[attr.stroke-width]="geometry.stroke" />
|
|
9108
|
+
@if (hasValue) {
|
|
9109
|
+
<circle
|
|
9110
|
+
class="vp-score-ring__arc"
|
|
9111
|
+
data-vp-score-ring-arc
|
|
9112
|
+
fill="none"
|
|
9113
|
+
stroke-linecap="round"
|
|
9114
|
+
[attr.cx]="center"
|
|
9115
|
+
[attr.cy]="center"
|
|
9116
|
+
[attr.r]="radius"
|
|
9117
|
+
[attr.stroke]="color"
|
|
9118
|
+
[attr.stroke-width]="geometry.stroke"
|
|
9119
|
+
[attr.stroke-dasharray]="circumference"
|
|
9120
|
+
[attr.stroke-dashoffset]="dashOffset" />
|
|
9121
|
+
}
|
|
9122
|
+
</svg>
|
|
9123
|
+
<span class="vp-score-ring__center">
|
|
9124
|
+
<span class="vp-score-ring__value" data-vp-score-ring-value [style.color]="hasValue ? color : null">{{
|
|
9125
|
+
hasValue ? displayValue : unknownLabel
|
|
9126
|
+
}}</span>
|
|
9127
|
+
@if (hasValue && unit) {
|
|
9128
|
+
<span class="vp-score-ring__unit" data-vp-score-ring-unit>{{ unit }}</span>
|
|
9129
|
+
}
|
|
9130
|
+
</span>
|
|
9131
|
+
</div>
|
|
9132
|
+
`, styles: [":host{display:inline-block}.vp-score-ring{position:relative;flex:none}.vp-score-ring__svg{position:absolute;inset:0;transform:rotate(-90deg)}.vp-score-ring__track{stroke:var(--vp-surface-sunken)}.vp-score-ring__center{position:absolute;inset:0;display:grid;place-items:center}.vp-score-ring__value{font-family:var(--vp-font-sans);font-size:var(--vp-text-4xl);font-weight:var(--vp-weight-semibold);line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--vp-text-muted)}.vp-score-ring__unit{position:absolute;left:0;right:0;top:calc(50% + 1.3rem);color:var(--vp-text-muted);font-size:var(--vp-text-xs);line-height:1.2;text-align:center}.vp-score-ring[data-size=sm] .vp-score-ring__value{font-size:var(--vp-text-lg)}.vp-score-ring[data-size=sm] .vp-score-ring__unit{top:calc(50% + .75rem)}\n"] }]
|
|
9133
|
+
}], propDecorators: { value: [{
|
|
9134
|
+
type: Input
|
|
9135
|
+
}], scale: [{
|
|
9136
|
+
type: Input
|
|
9137
|
+
}], size: [{
|
|
9138
|
+
type: Input
|
|
9139
|
+
}], unit: [{
|
|
9140
|
+
type: Input
|
|
9141
|
+
}], label: [{
|
|
9142
|
+
type: Input
|
|
9143
|
+
}], levelLabel: [{
|
|
9144
|
+
type: Input
|
|
9145
|
+
}], unknownLabel: [{
|
|
9146
|
+
type: Input
|
|
9147
|
+
}] } });
|
|
9148
|
+
|
|
8593
9149
|
/**
|
|
8594
9150
|
* Onay diyalogunu **uygulama** saglar.
|
|
8595
9151
|
*
|
|
@@ -10692,5 +11248,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
10692
11248
|
* Generated bundle index. Do not edit.
|
|
10693
11249
|
*/
|
|
10694
11250
|
|
|
10695
|
-
export { CONVERSION_MOMENTS, MAX_CONVERSION_PROMPTS_PER_SESSION, TRIAL_ROUTE_MAP, UTF8_BOM, VP_ANON_ID_HEX_LENGTH, VP_ANON_TOKEN_PORT, VP_API_BASE_URLS, VP_APP_KEY, VP_APP_PROMO_DAYS, VP_APP_PROMO_ENV, VP_APP_PROMO_KEY, VP_AUTH_ANON_CHAIN_ORDER, VP_AUTH_CHAIN_ORDER, VP_AUTH_HEALTH_CONFIG, VP_AUTH_SESSION_PORT, VP_AUTH_TOKEN_PORT, VP_CAPTCHA_PORT, VP_CONSOLE_GUARD_ROUTES, VP_CSRF_PORT, VP_DARK_CLASS, VP_DEEP_HEALTH_CONFIG, VP_DEFAULT_RETRY_AFTER_SECONDS, VP_I18N_NAMESPACE, VP_ICON_SPRITE_ID, VP_LIGHT_CLASS, VP_MAINTENANCE_PORT, VP_NAVIGATOR_ONLINE, VP_OWNERSHIP_PORT, VP_QUOTA_CRITICAL, VP_QUOTA_PORT, VP_QUOTA_WARN, VP_REDIRECT_MAX_LENGTH, VP_REQUEST_CONTEXT_PORT, VP_SAVED_VIEW_STORE, VP_SCAN_RANGE_MAX_MONTHS, VP_SHARE_TOKEN_PORT, VP_STATE_VARIANTS, VP_TABLE_PREFS_STORE, VP_THEME_STORAGE_KEY, VP_TRACKING_CACHE_TTL_MS, VP_UNSAVED_CHANGES_CONFIRM, VirusisUiModule, VpAnonTokenInterceptor, VpAppKeyInterceptor, VpAppPromoComponent, VpAppStoreEntryComponent, VpAppealFormComponent, VpAuthTokenInterceptor, VpBannerComponent, VpBreadcrumbComponent, VpButtonComponent, VpCaptchaInterceptor, VpCommandPaletteComponent, VpConfirmComponent, VpConnectivityService, VpContextToolbarComponent, VpCsrfInterceptor, VpDangerZoneComponent, VpDataTableComponent, VpDeepHealthService, VpDetectionRowComponent, VpDialogComponent, VpDrawerComponent, VpEngineResultComponent, VpFieldComponent, VpGlobalLayersComponent, VpHashValueComponent, VpHttpIdsInterceptor, VpIconSpriteService, VpIocListComponent, VpKpiCardComponent, VpMaintenanceInterceptor, VpMenuButtonComponent, VpNotificationTriggerComponent, VpPageHeaderComponent, VpProductSwitcherComponent, VpRateLimitInterceptor, VpRateLimitService, VpRiskScoreComponent, VpSaveBarComponent, VpScanTimelineComponent, VpScoreBreakdownComponent, VpSearchTriggerComponent, VpSettingsShellComponent, VpSeverityBadgeComponent, VpShareTokenInterceptor, VpShellComponent, VpSidebarComponent, VpSidebarToggleComponent, VpSkipLinkComponent, VpStateComponent, VpThemeControlComponent, VpThemeService, VpToastComponent, VpToastService, VpTopbarComponent, VpUserMenuComponent, VpVerdictComponent, VpWithCredentialsInterceptor, checkBoth, collectRxBindings, conversionOfferFor, createFocusTrap, createLocalStoragePrefsStore, createLocalStorageViewStore, createScanAnnouncer, createTabSync, currentOrigin, defaultConditionDescriber, defineStaticMenu, findEmptyValues, findMissingKeys, findView, flattenKeys, focusableElements, formatCountdown, formatParityReport, isConditionMet, isPartialFailure, isSameOrigin, isUpStatus, mergeStageUpdate, messageFor, nextPrompt, provideVirusisApiClient, provideVpAuthAnon, provideVpAuthCore, provideVpConsoleGuards, reconcileColumnOrder, registerUnsavedChangesPrompt, removeView, resolveMenuConditions, resolveTrialRedirect, rxServiceKeyOf, shouldSurface, toCsv, toDeepState, toMenuItems, unmatchedRxClasses, upsertView, validateStaticMenu, validateVpRedirectUri, validateVpScanDateRange, verdictFor, visibleColumns, vpAnonIdFrom, vpAuthChainSlotOf, vpAuthGuard, vpAuthHealthGuard, vpAutoDismissMs, vpDeviceFingerprint, vpDeviceRawData, vpEnsureGuid, vpIsIosSafari, vpKey, vpOwnershipGuard, vpParseRetryAfter, vpQuotaGuard, vpResolveTrackingId, vpStoreUrlFor, vpUnsavedChangesGuard };
|
|
11251
|
+
export { CONVERSION_MOMENTS, MAX_CONVERSION_PROMPTS_PER_SESSION, TRIAL_ROUTE_MAP, UTF8_BOM, VP_ANON_ID_HEX_LENGTH, VP_ANON_TOKEN_PORT, VP_API_BASE_URLS, VP_APP_KEY, VP_APP_PROMO_DAYS, VP_APP_PROMO_ENV, VP_APP_PROMO_KEY, VP_AUTH_ANON_CHAIN_ORDER, VP_AUTH_CHAIN_ORDER, VP_AUTH_HEALTH_CONFIG, VP_AUTH_SESSION_PORT, VP_AUTH_TOKEN_PORT, VP_CAPTCHA_PORT, VP_CONSOLE_GUARD_ROUTES, VP_CSRF_PORT, VP_DARK_CLASS, VP_DEEP_HEALTH_CONFIG, VP_DEFAULT_RETRY_AFTER_SECONDS, VP_I18N_NAMESPACE, VP_ICON_SPRITE_ID, VP_ISLAND_LABELS, VP_LIGHT_CLASS, VP_MAINTENANCE_PORT, VP_NAVIGATOR_ONLINE, VP_OWNERSHIP_PORT, VP_QUOTA_CRITICAL, VP_QUOTA_PORT, VP_QUOTA_WARN, VP_REDIRECT_MAX_LENGTH, VP_REQUEST_CONTEXT_PORT, VP_SAVED_VIEW_STORE, VP_SCAN_RANGE_MAX_MONTHS, VP_SHARE_TOKEN_PORT, VP_STATE_VARIANTS, VP_TABLE_PREFS_STORE, VP_THEME_STORAGE_KEY, VP_TRACKING_CACHE_TTL_MS, VP_UNSAVED_CHANGES_CONFIRM, VirusisUiModule, VpAnonTokenInterceptor, VpAppKeyInterceptor, VpAppPromoComponent, VpAppStoreEntryComponent, VpAppealFormComponent, VpAuthTokenInterceptor, VpBannerComponent, VpBreadcrumbComponent, VpButtonComponent, VpCaptchaInterceptor, VpCommandPaletteComponent, VpConfirmComponent, VpConnectivityService, VpContextToolbarComponent, VpCsrfInterceptor, VpDangerZoneComponent, VpDataTableComponent, VpDeepHealthService, VpDetectionRowComponent, VpDialogComponent, VpDrawerComponent, VpEngineResultComponent, VpFieldComponent, VpGlobalLayersComponent, VpHashValueComponent, VpHttpIdsInterceptor, VpIconSpriteService, VpIocListComponent, VpKpiCardComponent, VpMaintenanceInterceptor, VpMenuButtonComponent, VpNotificationIslandComponent, VpNotificationTriggerComponent, VpPageHeaderComponent, VpProductSwitcherComponent, VpRateLimitInterceptor, VpRateLimitService, VpRiskScoreComponent, VpSaveBarComponent, VpScanTimelineComponent, VpScoreBreakdownComponent, VpScoreRingComponent, VpSearchTriggerComponent, VpSettingsShellComponent, VpSeverityBadgeComponent, VpShareTokenInterceptor, VpShellComponent, VpSidebarComponent, VpSidebarToggleComponent, VpSkipLinkComponent, VpStateComponent, VpThemeControlComponent, VpThemeService, VpToastComponent, VpToastService, VpTopbarComponent, VpUserMenuComponent, VpVerdictComponent, VpWithCredentialsInterceptor, checkBoth, collectRxBindings, conversionOfferFor, createFocusTrap, createLocalStoragePrefsStore, createLocalStorageViewStore, createScanAnnouncer, createTabSync, currentOrigin, defaultConditionDescriber, defineStaticMenu, findEmptyValues, findMissingKeys, findView, flattenKeys, focusableElements, formatCountdown, formatParityReport, isConditionMet, isPartialFailure, isSameOrigin, isUpStatus, mergeStageUpdate, messageFor, nextPrompt, provideVirusisApiClient, provideVpAuthAnon, provideVpAuthCore, provideVpConsoleGuards, reconcileColumnOrder, registerUnsavedChangesPrompt, removeView, resolveMenuConditions, resolveTrialRedirect, rxServiceKeyOf, shouldSurface, toCsv, toDeepState, toMenuItems, unmatchedRxClasses, upsertView, validateStaticMenu, validateVpRedirectUri, validateVpScanDateRange, verdictFor, visibleColumns, vpAnonIdFrom, vpAuthChainSlotOf, vpAuthGuard, vpAuthHealthGuard, vpAutoDismissMs, vpDeviceFingerprint, vpDeviceRawData, vpEnsureGuid, vpIsIosSafari, vpIslandIsCritical, vpKey, vpOwnershipGuard, vpParseRetryAfter, vpQuotaGuard, vpResolveTrackingId, vpStoreUrlFor, vpUnsavedChangesGuard };
|
|
10696
11252
|
//# sourceMappingURL=virusis-angular-ui.mjs.map
|