@virusis/angular-ui 0.1.16 → 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.
@@ -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
  }] } });
@@ -10884,5 +11248,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
10884
11248
  * Generated bundle index. Do not edit.
10885
11249
  */
10886
11250
 
10887
- 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, 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, 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 };
10888
11252
  //# sourceMappingURL=virusis-angular-ui.mjs.map