@virusis/angular-ui 0.1.7 → 0.1.9
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 +1781 -876
- package/fesm2022/virusis-angular-ui.mjs.map +1 -1
- package/index.d.ts +260 -10
- package/index.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Injectable, EventEmitter, Output, Input, ChangeDetectionStrategy, Component, PLATFORM_ID, signal, DestroyRef,
|
|
2
|
+
import { inject, Injectable, EventEmitter, Output, Input, ChangeDetectionStrategy, Component, PLATFORM_ID, signal, DestroyRef, afterNextRender, ViewChild, HostListener, ElementRef, InjectionToken, ChangeDetectorRef, NgModule, Inject } from '@angular/core';
|
|
3
3
|
import { DOCUMENT, isPlatformBrowser, NgTemplateOutlet } from '@angular/common';
|
|
4
4
|
import { buildSprite } from '@virusis/icon-set';
|
|
5
5
|
import * as i1 from 'primeng/button';
|
|
@@ -101,10 +101,10 @@ class VpIconSpriteService {
|
|
|
101
101
|
// basa koymak yine de hidrasyon sirasindaki ilk boyamayi garanti eder.
|
|
102
102
|
doc.body.prepend(node);
|
|
103
103
|
}
|
|
104
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
105
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
104
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpIconSpriteService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
105
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpIconSpriteService, providedIn: 'root' }); }
|
|
106
106
|
}
|
|
107
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpIconSpriteService, decorators: [{
|
|
108
108
|
type: Injectable,
|
|
109
109
|
args: [{ providedIn: 'root' }]
|
|
110
110
|
}], ctorParameters: () => [] });
|
|
@@ -351,8 +351,8 @@ class VpStateComponent {
|
|
|
351
351
|
clip?.writeText(value).catch(() => undefined);
|
|
352
352
|
this.referenceCopied.emit(value);
|
|
353
353
|
}
|
|
354
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
355
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
354
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpStateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
355
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpStateComponent, isStandalone: true, selector: "vp-state", inputs: { type: "type", title: "title", description: "description", primaryLabel: "primaryLabel", secondaryLabel: "secondaryLabel", reference: "reference", remainingSeconds: "remainingSeconds", loadingLabel: "loadingLabel", countdownLabel: "countdownLabel", referenceLabel: "referenceLabel", copyLabel: "copyLabel", headingLevel: "headingLevel" }, outputs: { primaryAction: "primaryAction", secondaryAction: "secondaryAction", referenceCopied: "referenceCopied" }, host: { classAttribute: "vp-state-host" }, ngImport: i0, template: `
|
|
356
356
|
<div
|
|
357
357
|
class="vp-state"
|
|
358
358
|
[attr.data-tone]="variant.tone"
|
|
@@ -425,7 +425,7 @@ class VpStateComponent {
|
|
|
425
425
|
</div>
|
|
426
426
|
`, isInline: true, styles: [":host{display:block}.vp-state{display:flex;flex-direction:column;align-items:center;gap:var(--vp-space-4);max-width:32rem;margin-inline:auto;padding:var(--vp-space-12) var(--vp-space-6);text-align:center;color:var(--vp-text-secondary);font-family:var(--vp-font-sans)}.vp-state__icon{width:48px;height:48px;color:var(--vp-text-muted)}.vp-state[data-tone=danger] .vp-state__icon{color:var(--vp-sev-critical)}.vp-state[data-tone=warning] .vp-state__icon{color:var(--vp-sev-high)}.vp-state[data-tone=info] .vp-state__icon{color:var(--vp-sev-low)}.vp-state[data-tone=inviting] .vp-state__icon{color:var(--vp-brand)}.vp-state__title{margin:0;color:var(--vp-text-primary);font-size:var(--vp-text-xl);font-weight:var(--vp-weight-semibold);line-height:var(--vp-leading-tight)}.vp-state__description{margin:0;max-width:46ch;font-size:var(--vp-text-base);line-height:var(--vp-leading-normal)}.vp-state__countdown{display:flex;align-items:baseline;gap:var(--vp-space-2);margin:0;font-size:var(--vp-text-sm)}.vp-state__countdown-label{color:var(--vp-text-muted)}.vp-state__countdown-value{font-family:var(--vp-font-mono);font-size:var(--vp-text-lg);font-weight:var(--vp-weight-semibold);color:var(--vp-text-primary);font-variant-numeric:tabular-nums}.vp-state__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--vp-space-3);margin-top:var(--vp-space-2)}.vp-state__action{min-height:var(--vp-control-height);min-width:var(--vp-min-target);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-family:inherit;font-size:var(--vp-text-base);font-weight:var(--vp-weight-medium);cursor:pointer;transition:background var(--vp-duration-fast) var(--vp-ease-standard),border-color var(--vp-duration-fast) var(--vp-ease-standard)}.vp-state__action[data-kind=primary]{background:var(--vp-brand);border-color:var(--vp-brand);color:var(--vp-text-on-accent)}.vp-state__action[data-kind=primary]:hover{background:var(--vp-brand-hover);border-color:var(--vp-brand-hover)}.vp-state__action[data-kind=secondary]:hover{background:var(--vp-surface-sunken);border-color:var(--vp-border-strong)}.vp-state__action:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-state__reference{display:flex;align-items:center;gap:var(--vp-space-2);margin:var(--vp-space-2) 0 0;font-size:var(--vp-text-xs);color:var(--vp-text-muted)}.vp-state__reference-code{font-family:var(--vp-font-mono);color:var(--vp-text-secondary);white-space:nowrap}.vp-state__copy{display:inline-flex;align-items:center;justify-content:center;width:var(--vp-min-target);height:var(--vp-min-target);border:0;border-radius:var(--vp-radius-sm);background:transparent;color:var(--vp-text-muted);cursor:pointer}.vp-state__copy:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-state__copy:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-state__copy-icon{width:16px;height:16px}.vp-state__skeleton{display:flex;flex-direction:column;align-items:center;gap:var(--vp-space-4);width:100%}.vp-state__skeleton-line{display:block;border-radius:var(--vp-radius-md);background:var(--vp-surface-sunken);animation:vp-state-pulse 1.4s var(--vp-ease-standard) infinite}.vp-state__skeleton-line--icon{width:48px;height:48px;border-radius:var(--vp-radius-full)}.vp-state__skeleton-line--title{width:12rem;height:20px}.vp-state__skeleton-line--text{width:20rem;max-width:100%;height:14px}@keyframes vp-state-pulse{0%,to{opacity:1}50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.vp-state__skeleton-line{animation:none}.vp-state__action{transition:none}}.vp-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
427
427
|
}
|
|
428
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpStateComponent, decorators: [{
|
|
429
429
|
type: Component,
|
|
430
430
|
args: [{ selector: 'vp-state', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'vp-state-host' }, template: `
|
|
431
431
|
<div
|
|
@@ -604,8 +604,8 @@ class VpAppealFormComponent {
|
|
|
604
604
|
...(contact ? { contact } : {}),
|
|
605
605
|
});
|
|
606
606
|
}
|
|
607
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
608
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
607
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpAppealFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
608
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpAppealFormComponent, isStandalone: true, selector: "vp-appeal-form", inputs: { referenceCode: "referenceCode", submitting: "submitting", submitted: "submitted", error: "error", referenceLabel: "referenceLabel", reasonLabel: "reasonLabel", reasonHint: "reasonHint", contactLabel: "contactLabel", submitLabel: "submitLabel", submittingLabel: "submittingLabel", emptyReasonError: "emptyReasonError", successTitle: "successTitle", successNote: "successNote" }, outputs: { appealSubmit: "appealSubmit" }, ngImport: i0, template: `
|
|
609
609
|
@if (submitted) {
|
|
610
610
|
<div class="vp-appeal vp-appeal--done" data-vp-appeal-done role="status" aria-live="polite">
|
|
611
611
|
<p class="vp-appeal__title">{{ successTitle }}</p>
|
|
@@ -662,7 +662,7 @@ class VpAppealFormComponent {
|
|
|
662
662
|
}
|
|
663
663
|
`, isInline: true, styles: [":host{display:block}.vp-appeal{display:grid;gap:var(--vp-space-3);padding:var(--vp-space-4);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);font-family:var(--vp-font-sans);color:var(--vp-text-primary)}.vp-appeal__title{margin:0;font-weight:600}.vp-appeal__note,.vp-appeal__ref{margin:0;color:var(--vp-text-muted)}.vp-appeal__ref code{font-family:var(--vp-font-mono)}.vp-appeal__field{display:grid;gap:var(--vp-space-1)}.vp-appeal__label{font-size:var(--vp-text-sm)}.vp-appeal__hint{font-size:var(--vp-text-sm);color:var(--vp-text-muted)}textarea,input{width:100%;min-height:var(--vp-control-height);padding:var(--vp-space-2);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}textarea:focus-visible,input:focus-visible,.vp-appeal__submit:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-appeal__error{margin:0;color:var(--vp-danger)}.vp-appeal__submit{justify-self:start;min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-4);border:1px solid var(--vp-brand);border-radius:var(--vp-radius-md);background:var(--vp-brand);color:var(--vp-text-on-accent);font:inherit;cursor:pointer}.vp-appeal__submit:disabled{opacity:.5;cursor:not-allowed}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
664
664
|
}
|
|
665
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpAppealFormComponent, decorators: [{
|
|
666
666
|
type: Component,
|
|
667
667
|
args: [{ selector: 'vp-appeal-form', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
668
668
|
@if (submitted) {
|
|
@@ -839,6 +839,22 @@ function conversionOfferFor(scanCount) {
|
|
|
839
839
|
return match;
|
|
840
840
|
}
|
|
841
841
|
|
|
842
|
+
/**
|
|
843
|
+
* Kabuk sozlesmesi - B1 · T5/T6.
|
|
844
|
+
*
|
|
845
|
+
* Kota ve dil kabugun kendi alani (B1-K2, B1-K3). Tipler burada duruyor ki
|
|
846
|
+
* konsollar bilesen dosyasini degil sozlesmeyi ice aktarsin.
|
|
847
|
+
*/
|
|
848
|
+
/**
|
|
849
|
+
* Kota esikleri - TEK kaynak.
|
|
850
|
+
*
|
|
851
|
+
* Olculdu (2026-09-08): prototiplerde %80 ve %85 birlikte kullaniliyordu;
|
|
852
|
+
* ayni doluluk bir ekranda sari, digerinde notrdu. Esik bir urun karari ve
|
|
853
|
+
* ekran basina tekrarlanamaz.
|
|
854
|
+
*/
|
|
855
|
+
const VP_QUOTA_WARN = 80;
|
|
856
|
+
const VP_QUOTA_CRITICAL = 90;
|
|
857
|
+
|
|
842
858
|
/**
|
|
843
859
|
* Uygulama kabugu — paket 05 · G2.
|
|
844
860
|
*
|
|
@@ -851,10 +867,108 @@ function conversionOfferFor(scanCount) {
|
|
|
851
867
|
* yerine gecer. Icerik ng-content ile yansitilir, kabuk yerlesimi bilir.
|
|
852
868
|
*/
|
|
853
869
|
class VpShellComponent {
|
|
870
|
+
/** Doluluk yuzdesi - 0..100 arasina sikistiriliyor. */
|
|
871
|
+
get quotaPercent() {
|
|
872
|
+
const q = this.quota;
|
|
873
|
+
if (!q || !q.limit || q.limit <= 0)
|
|
874
|
+
return 0;
|
|
875
|
+
return Math.max(0, Math.min(100, Math.round((q.used / q.limit) * 100)));
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* Esik TEK yerde. Ekran basina esik tanimlamak, iki ekranda iki farkli
|
|
879
|
+
* "dolmak uzere" demektir - olculdu: prototiplerde %80 ve %85 birlikte
|
|
880
|
+
* kullaniliyordu.
|
|
881
|
+
*/
|
|
882
|
+
get quotaLevel() {
|
|
883
|
+
const pct = this.quotaPercent;
|
|
884
|
+
if (pct >= VP_QUOTA_CRITICAL)
|
|
885
|
+
return 'critical';
|
|
886
|
+
if (pct >= VP_QUOTA_WARN)
|
|
887
|
+
return 'warn';
|
|
888
|
+
return 'ok';
|
|
889
|
+
}
|
|
890
|
+
/**
|
|
891
|
+
* Dagilim dilimleri - yuzde ve title burada hesaplaniyor.
|
|
892
|
+
*
|
|
893
|
+
* Yuzde LIMITE gore, dilimlerin toplamina gore degil: dilimlerin toplami
|
|
894
|
+
* kullanimin altinda kalabilir (siniflandirilmamis kullanim) ve o zaman
|
|
895
|
+
* cubukta bos pay kalmasi DOGRU - toplama gore normalize etmek, dolu
|
|
896
|
+
* olmayan bir kotayi dolu gosterirdi.
|
|
897
|
+
*/
|
|
898
|
+
get quotaSegments() {
|
|
899
|
+
const q = this.quota;
|
|
900
|
+
if (!q?.segments?.length || !q.limit || q.limit <= 0)
|
|
901
|
+
return [];
|
|
902
|
+
const palette = [
|
|
903
|
+
'var(--vp-brand-500, var(--vp-focus-ring))',
|
|
904
|
+
'var(--vp-sev-low)',
|
|
905
|
+
'var(--vp-sev-high)',
|
|
906
|
+
'var(--vp-sev-clean)',
|
|
907
|
+
];
|
|
908
|
+
return q.segments.map((segment, index) => {
|
|
909
|
+
const percent = Math.max(0, Math.min(100, (segment.value / q.limit) * 100));
|
|
910
|
+
return {
|
|
911
|
+
label: segment.label,
|
|
912
|
+
percent,
|
|
913
|
+
color: segment.color ?? palette[index % palette.length],
|
|
914
|
+
title: `${segment.label}: ${segment.value} (%${Math.round(percent)})`,
|
|
915
|
+
};
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
/** Rayda title, genis kipte deger olarak ayni metin - tek kaynak. */
|
|
919
|
+
get quotaText() {
|
|
920
|
+
const q = this.quota;
|
|
921
|
+
if (!q)
|
|
922
|
+
return '';
|
|
923
|
+
if (!q.limit || q.limit <= 0)
|
|
924
|
+
return `${q.used} ${q.label}`;
|
|
925
|
+
return `${q.used} / ${q.limit}`;
|
|
926
|
+
}
|
|
927
|
+
/**
|
|
928
|
+
* Cekmeceyi acar/kapatir.
|
|
929
|
+
*
|
|
930
|
+
* 🔴 Durum burada TUTULMUYOR: acik/kapali `collapsed` girdisinden
|
|
931
|
+
* tureiyor ve degisiklik `collapsedChange` ile uygulamaya gidiyor.
|
|
932
|
+
* Kabukta ikinci bir kopya tutmak, bu depoda tekrar eden "iki kaynak
|
|
933
|
+
* ayrisir" hatasini davet ederdi.
|
|
934
|
+
*/
|
|
935
|
+
toggleDrawer() {
|
|
936
|
+
this.collapsedChange.emit(!this.collapsed);
|
|
937
|
+
}
|
|
938
|
+
/**
|
|
939
|
+
* 🔴 Dar ekranda menuyu KAPATMANIN klavye yolu.
|
|
940
|
+
*
|
|
941
|
+
* Olculdu (2026-09-07): menu acikken kenar cubugu ust cubugu da ortuyor,
|
|
942
|
+
* yani "daralt" dugmesi ekranda kaliyor ama TIKLANAMIYOR (Playwright
|
|
943
|
+
* `aside ... intercepts pointer events` diyerek dustu). Geriye maske
|
|
944
|
+
* kaliyordu ve o `aria-hidden` bir `div`: fareyle dokunulur, klavyeyle
|
|
945
|
+
* ulasilamaz. Yani klavye kullanicisi menuyu acabiliyor ama kapatamiyordu.
|
|
946
|
+
*
|
|
947
|
+
* ⚠️ Yalniz overlay kipinde: genis ekranda menu icerigi ortmuyor ve Esc'in
|
|
948
|
+
* kenar cubugunu kapatmasi, kullanicinin beklemedigi bir yerlesim degisikligi
|
|
949
|
+
* olurdu.
|
|
950
|
+
*/
|
|
951
|
+
onEscape() {
|
|
952
|
+
if (this.overlay() && !this.collapsed)
|
|
953
|
+
this.collapsedChange.emit(true);
|
|
954
|
+
}
|
|
854
955
|
/** Kenar cubugu icerigin USTUNDE mi duruyor. */
|
|
855
956
|
overlay() {
|
|
856
957
|
return this.narrow() || this.menuMode === 'overlay';
|
|
857
958
|
}
|
|
959
|
+
/**
|
|
960
|
+
* 🔴 ILK OLCUM `ngOnInit`'te, kurucuda DEGIL.
|
|
961
|
+
*
|
|
962
|
+
* Kurucuda yayin yapmak sessizce kayboluyor: cikti aboneligi bilesen
|
|
963
|
+
* kuruldiktan SONRA baglaniyor, yani ilk `collapsedChange` kimseye
|
|
964
|
+
* ulasmiyordu. Yalniz sonraki *degisiklikler* (pencereyi daraltmak, cihazi
|
|
965
|
+
* dondurmek) calisiyordu — bu yuzden elle denemede sorun gorunmuyordu.
|
|
966
|
+
*
|
|
967
|
+
* Belirtisi olculdu (2026-09-07): Customer Console'un on iki mobil gorsel
|
|
968
|
+
* temelinin hepsi ACIK menuyu gosteriyordu; ekranin kendisi maskenin altinda
|
|
969
|
+
* kaliyordu. Yani mobilde uygulama, kullanici menuyu kapatana kadar
|
|
970
|
+
* kullanilamiyordu ve gorsel kapi ekranlari degil menuyu olcuyordu.
|
|
971
|
+
*/
|
|
858
972
|
constructor() {
|
|
859
973
|
/**
|
|
860
974
|
* Kenar cubugunun `id`'si — `vp-sidebar-toggle`'in `controls` girdisiyle
|
|
@@ -882,6 +996,19 @@ class VpShellComponent {
|
|
|
882
996
|
*/
|
|
883
997
|
this.menuMode = 'static';
|
|
884
998
|
this.collapsedChange = new EventEmitter();
|
|
999
|
+
/** Dil secenekleri - bos birakilirsa denetim cizilmiyor. */
|
|
1000
|
+
this.languages = [];
|
|
1001
|
+
this.languageLabel = 'Dil';
|
|
1002
|
+
/**
|
|
1003
|
+
* B1-K3: kabuk secimi YAYIYOR, uygulamiyor.
|
|
1004
|
+
*
|
|
1005
|
+
* document.documentElement.lang yazmak, localStorage'a kaydetmek ve
|
|
1006
|
+
* ?lang= -> kayit -> tarayici sirasini uygulamak @virusis/i18n'in isi.
|
|
1007
|
+
*/
|
|
1008
|
+
this.languageChange = new EventEmitter();
|
|
1009
|
+
this.menuOpenLabel = 'Menüyü aç';
|
|
1010
|
+
/** Cekmece tetikleyicisinin erisilebilir adi — acikken. */
|
|
1011
|
+
this.menuCloseLabel = 'Menüyü kapat';
|
|
885
1012
|
this.isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
|
|
886
1013
|
/** Dar ekran mi — overlay'i zorunlu kilar. */
|
|
887
1014
|
this.narrow = signal(false, ...(ngDevMode ? [{ debugName: "narrow" }] : []));
|
|
@@ -890,7 +1017,10 @@ class VpShellComponent {
|
|
|
890
1017
|
this.skipLabel = 'İçeriğe atla';
|
|
891
1018
|
if (!this.isBrowser || typeof window.matchMedia !== 'function')
|
|
892
1019
|
return;
|
|
893
|
-
|
|
1020
|
+
// Olcek: VP_BREAKPOINTS.md — kabugun cekmece kipine gectigi sinir.
|
|
1021
|
+
// 768 idi; bilesenler 900'de dar yerlesime geciyordu ve arada kalan
|
|
1022
|
+
// 769-900px'te kabuk genis, icindekiler dar davraniyordu.
|
|
1023
|
+
const media = window.matchMedia('(max-width: 900px)');
|
|
894
1024
|
const apply = (matches) => {
|
|
895
1025
|
this.narrow.set(matches);
|
|
896
1026
|
/*
|
|
@@ -907,112 +1037,425 @@ class VpShellComponent {
|
|
|
907
1037
|
const listener = (event) => apply(event.matches);
|
|
908
1038
|
media.addEventListener('change', listener);
|
|
909
1039
|
inject(DestroyRef).onDestroy(() => media.removeEventListener('change', listener));
|
|
910
|
-
|
|
1040
|
+
/*
|
|
1041
|
+
* 🔴 ILK OLCUM CIZIMDEN SONRA.
|
|
1042
|
+
*
|
|
1043
|
+
* Kurucuda dogrudan yayin yapmak sessizce kayboluyordu: cikti aboneligi
|
|
1044
|
+
* bilesen kuruldiktan SONRA baglaniyor, yani ilk `collapsedChange` kimseye
|
|
1045
|
+
* ulasmiyordu. Yalniz sonraki *degisiklikler* (pencereyi daraltmak, cihazi
|
|
1046
|
+
* dondurmek) calisiyordu — bu yuzden elle denemede sorun gorunmuyordu.
|
|
1047
|
+
*
|
|
1048
|
+
* Belirtisi olculdu (2026-09-07): Customer Console'un on iki mobil gorsel
|
|
1049
|
+
* temelinin hepsi ACIK menuyu gosteriyordu; ekranin kendisi maskenin
|
|
1050
|
+
* altinda kaliyordu. Mobilde uygulama, kullanici menuyu kapatana kadar
|
|
1051
|
+
* kullanilamiyordu.
|
|
1052
|
+
*
|
|
1053
|
+
* ⚠️ `ngOnInit` de olmaz: ayni denetim turunde girdiyi degistirdigi icin
|
|
1054
|
+
* NG0100 uretiyor (olculdu). `afterNextRender` cizimden sonra calisiyor ve
|
|
1055
|
+
* sunucuda hic calismiyor.
|
|
1056
|
+
*/
|
|
1057
|
+
afterNextRender(() => apply(media.matches));
|
|
911
1058
|
}
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
1059
|
+
/**
|
|
1060
|
+
* 🔴 Cekmece acilinca odak ICERI giriyor.
|
|
1061
|
+
*
|
|
1062
|
+
* Olculdu (2026-09-08): menu acildiginda odak tetikleyicide kaliyordu;
|
|
1063
|
+
* klavye kullanicisi menuyu aciyor ama iceri giremiyordu — Tab tusu once
|
|
1064
|
+
* ust cubugun kalan ogelerini geziyor, cunku cekmece DOM'da onlardan
|
|
1065
|
+
* SONRA duruyor.
|
|
1066
|
+
*
|
|
1067
|
+
* ⚠️ Kapaliyken kenar cubugu `inert`: ekran disindaki baglantilar sekme
|
|
1068
|
+
* sirasinda durak olmasin. `inert` olmadan menu kapaliyken de Tab ile
|
|
1069
|
+
* gorunmeyen yedi baglantiya girilebiliyordu.
|
|
1070
|
+
*/
|
|
1071
|
+
ngOnChanges(changes) {
|
|
1072
|
+
const change = changes['collapsed'];
|
|
1073
|
+
if (!change || change.firstChange)
|
|
1074
|
+
return;
|
|
1075
|
+
if (!this.overlay() || change.currentValue !== false)
|
|
1076
|
+
return;
|
|
1077
|
+
/*
|
|
1078
|
+
* ⚠️ Odak MIKRO GOREVDE veriliyor, `ngOnChanges` icinde degil.
|
|
1079
|
+
*
|
|
1080
|
+
* `ngOnChanges` sablon baglamalarindan ONCE calisiyor: o an kenar cubugu
|
|
1081
|
+
* hala `inert` ve inert bir alt agactaki ogeye verilen odak SESSIZCE
|
|
1082
|
+
* yok sayiliyor. Olculdu: odak tetikleyicide kaliyordu ve test "odak
|
|
1083
|
+
* disarida kaldi" diyordu. Mikro gorev, cizim bittikten sonra calisiyor.
|
|
1084
|
+
*/
|
|
1085
|
+
queueMicrotask(() => {
|
|
1086
|
+
const host = this.sidebarRef?.nativeElement;
|
|
1087
|
+
if (!host || this.collapsed)
|
|
1088
|
+
return;
|
|
1089
|
+
const first = host.querySelector('a[href], button:not([disabled]), input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
1090
|
+
(first ?? host).focus();
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1093
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1094
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpShellComponent, isStandalone: true, selector: "vp-shell", inputs: { sidebarId: "sidebarId", menuMode: "menuMode", quota: "quota", languages: "languages", language: "language", languageLabel: "languageLabel", menuOpenLabel: "menuOpenLabel", menuCloseLabel: "menuCloseLabel", collapsed: "collapsed", skipLabel: "skipLabel" }, outputs: { collapsedChange: "collapsedChange", languageChange: "languageChange" }, host: { listeners: { "document:keydown.escape": "onEscape()" } }, viewQueries: [{ propertyName: "sidebarRef", first: true, predicate: ["sidebar"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
1095
|
+
<!-- Atlama baglantisi DOM'da ILK odaklanabilir oge olmali.
|
|
1096
|
+
Klavye kullanicisi her sayfada menuyu bastan gecmek zorunda kalmasin. -->
|
|
1097
|
+
<a class="vp-skip" data-vp-skip href="#vp-main">{{ skipLabel }}</a>
|
|
1098
|
+
|
|
1099
|
+
<header class="vp-shell__topbar">
|
|
1100
|
+
<!--
|
|
1101
|
+
🔴 Cekmece tetikleyicisi KABUGUN kendi ogesi, uygulamanin degil.
|
|
1102
|
+
Olculdu (2026-09-08): dar ekranda kenar cubugu ekran disinda
|
|
1103
|
+
bekliyordu ve onu geri getirecek gorunur bir denetim yoktu —
|
|
1104
|
+
vp-sidebar-toggle uygulamanin ust cubuguna KOYULURSA vardi, ve
|
|
1105
|
+
iki konsol onu koymamisti. Menuye ulasmanin tek yolu, kabugun
|
|
1106
|
+
garanti ettigi bir dugme olmali.
|
|
1107
|
+
|
|
1108
|
+
Yalniz overlay kipinde ciziliyor: genis ekranda menu zaten akista
|
|
1109
|
+
ve ikinci bir daraltma denetimi iki ayri kip demek olurdu.
|
|
1110
|
+
-->
|
|
1111
|
+
@if (overlay()) {
|
|
1112
|
+
<button
|
|
1113
|
+
type="button"
|
|
1114
|
+
class="vp-shell__drawer-toggle"
|
|
1115
|
+
data-vp-drawer-toggle
|
|
1116
|
+
[attr.aria-controls]="sidebarId"
|
|
1117
|
+
[attr.aria-expanded]="!collapsed"
|
|
1118
|
+
[attr.aria-label]="collapsed ? menuOpenLabel : menuCloseLabel"
|
|
1119
|
+
(click)="toggleDrawer()">
|
|
1120
|
+
<span class="vp-shell__burger" aria-hidden="true"></span>
|
|
1121
|
+
</button>
|
|
1122
|
+
}
|
|
1123
|
+
<ng-content select="[topbar]" />
|
|
1124
|
+
</header>
|
|
1125
|
+
|
|
1126
|
+
<div class="vp-shell__body">
|
|
1127
|
+
<!--
|
|
1128
|
+
id ZORUNLU: vp-sidebar-toggle bunu aria-controls ile isaret
|
|
1129
|
+
ediyor. Olculdu (2026-08-27): dugme eklendiginde bu id yoktu ve
|
|
1130
|
+
aria-controls olmayan bir bolgeyi gosteriyordu — ekran okuyucu
|
|
1131
|
+
icin varmis gibi gorunen, gercekte olmayan bir baglanti.
|
|
1132
|
+
-->
|
|
1133
|
+
<aside
|
|
1134
|
+
#sidebar
|
|
1135
|
+
[id]="sidebarId"
|
|
1136
|
+
class="vp-shell__sidebar"
|
|
1137
|
+
[attr.data-collapsed]="collapsed || null"
|
|
1138
|
+
[attr.data-overlay]="overlay() || null"
|
|
1139
|
+
[attr.data-vp-drawer]="overlay() ? (collapsed ? 'closed' : 'open') : null"
|
|
1140
|
+
[attr.inert]="overlay() && collapsed ? '' : null">
|
|
1141
|
+
<!--
|
|
1142
|
+
Menu kendi kaydirma kutusunda: kota ve dil kenar cubugunun ALTINA
|
|
1143
|
+
sabitleniyor. Ayni kutuda olsalardi uzun menude ekrandan cikarlardi
|
|
1144
|
+
ve kullanici kotayi gormek icin menuyu sonuna kadar kaydirirdi.
|
|
1145
|
+
-->
|
|
1146
|
+
<div class="vp-shell__sidebar-scroll">
|
|
1147
|
+
<ng-content select="[sidebar]" />
|
|
1148
|
+
</div>
|
|
1149
|
+
|
|
1150
|
+
@if (quota || languages.length) {
|
|
1151
|
+
<div class="vp-shell__sidebar-foot">
|
|
1152
|
+
@if (quota) {
|
|
1153
|
+
<!--
|
|
1154
|
+
B1-K2: kota gostergesi KABUGUN parcasi, ayri bir bilesen degil.
|
|
1155
|
+
Kenar cubugunun alti kabugun kendi alani ve ray kipinde de
|
|
1156
|
+
kabugun kuralina uyuyor.
|
|
1157
|
+
|
|
1158
|
+
Esik tek yerde (VP_QUOTA_WARN / VP_QUOTA_CRITICAL): ekran
|
|
1159
|
+
basina esik tanimlamak, iki ekranda iki farkli "dolmak uzere"
|
|
1160
|
+
demektir.
|
|
1161
|
+
-->
|
|
1162
|
+
<div
|
|
1163
|
+
class="vp-shell__quota"
|
|
1164
|
+
data-vp-quota
|
|
1165
|
+
[attr.data-vp-quota-level]="quotaLevel"
|
|
1166
|
+
[attr.data-vp-quota-compact]="collapsed ? 'true' : null"
|
|
1167
|
+
[attr.title]="collapsed ? quotaText : null">
|
|
1168
|
+
<div class="vp-shell__quota-head">
|
|
1169
|
+
<span class="vp-shell__quota-label">{{ quota.label }}</span>
|
|
1170
|
+
<span class="vp-shell__quota-value">{{ quotaText }}</span>
|
|
1171
|
+
</div>
|
|
1172
|
+
<!--
|
|
1173
|
+
Deger yalniz RENKLE anlatilmiyor: role=progressbar ve
|
|
1174
|
+
aria-valuenow ile de duyuruluyor. Renk korfarki olan bir
|
|
1175
|
+
kullanici icin dolu cubuk ile bos cubuk ayni gorunur.
|
|
1176
|
+
-->
|
|
1177
|
+
<div
|
|
1178
|
+
class="vp-shell__quota-bar"
|
|
1179
|
+
role="progressbar"
|
|
1180
|
+
aria-valuemin="0"
|
|
1181
|
+
aria-valuemax="100"
|
|
1182
|
+
[attr.aria-valuenow]="quotaPercent"
|
|
1183
|
+
[attr.aria-valuetext]="quotaText"
|
|
1184
|
+
[attr.aria-label]="quota.label">
|
|
1185
|
+
@if (quotaSegments.length) {
|
|
1186
|
+
@for (segment of quotaSegments; track segment.label) {
|
|
1187
|
+
<span
|
|
1188
|
+
class="vp-shell__quota-fill vp-shell__quota-fill--segment"
|
|
1189
|
+
data-vp-quota-segment
|
|
1190
|
+
[attr.data-vp-quota-segment-label]="segment.label"
|
|
1191
|
+
[attr.title]="segment.title"
|
|
1192
|
+
[style.inline-size.%]="segment.percent"
|
|
1193
|
+
[style.background]="segment.color"></span>
|
|
1194
|
+
}
|
|
1195
|
+
} @else {
|
|
1196
|
+
<span class="vp-shell__quota-fill" [style.inline-size.%]="quotaPercent"></span>
|
|
1197
|
+
}
|
|
1198
|
+
</div>
|
|
1199
|
+
@if (quota.hint && !collapsed) {
|
|
1200
|
+
<p class="vp-shell__quota-hint">{{ quota.hint }}</p>
|
|
1201
|
+
}
|
|
1202
|
+
</div>
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
@if (languages.length) {
|
|
1206
|
+
<!--
|
|
1207
|
+
B1-K3: dil DENETIMI kabukta, MANTIK @virusis/i18n'de.
|
|
1208
|
+
Kabuk secimi gosterip olayi yayiyor; cozumleme, kalicilik ve
|
|
1209
|
+
?lang= -> kayit -> tarayici sirasi kabugun isi DEGIL. Kabuk
|
|
1210
|
+
document.lang yazarsa dil mantigi iki yere bolunur.
|
|
1211
|
+
-->
|
|
1212
|
+
<div class="vp-shell__lang" data-vp-lang [attr.role]="'group'" [attr.aria-label]="languageLabel">
|
|
1213
|
+
@for (option of languages; track option.code) {
|
|
1214
|
+
<button
|
|
1215
|
+
type="button"
|
|
1216
|
+
class="vp-shell__lang-option"
|
|
1217
|
+
data-vp-lang-option
|
|
1218
|
+
[attr.data-vp-lang-code]="option.code"
|
|
1219
|
+
[attr.aria-pressed]="option.code === language"
|
|
1220
|
+
[attr.title]="option.label"
|
|
1221
|
+
(click)="languageChange.emit(option.code)">
|
|
1222
|
+
{{ collapsed ? option.code.toUpperCase() : option.label }}
|
|
1223
|
+
</button>
|
|
1224
|
+
}
|
|
1225
|
+
</div>
|
|
1226
|
+
}
|
|
1227
|
+
</div>
|
|
1228
|
+
}
|
|
1229
|
+
</aside>
|
|
1230
|
+
|
|
1231
|
+
@if (overlay() && !collapsed) {
|
|
1232
|
+
<!--
|
|
1233
|
+
🔴 Maske YALNIZ dar ekranda ve menu ACIKKEN var.
|
|
1234
|
+
Genis ekranda hic cizilmiyor: gorunmez bir katman, uzerindeki
|
|
1235
|
+
tiklamalari sessizce yutardi.
|
|
1236
|
+
|
|
1237
|
+
⚠️ button degil div: ekran okuyucu icin ikinci bir "kapat"
|
|
1238
|
+
duragi olusturmuyor — kapatmanin erisilebilir yolu ust cubuktaki
|
|
1239
|
+
vp-sidebar-toggle dugmesi. Maske yalniz isaretleme kolayligi.
|
|
1240
|
+
-->
|
|
1241
|
+
<div
|
|
1242
|
+
class="vp-shell__mask"
|
|
1243
|
+
data-vp-shell-mask
|
|
1244
|
+
data-vp-scrim
|
|
1245
|
+
aria-hidden="true"
|
|
1246
|
+
(click)="collapsedChange.emit(true)"></div>
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
<main id="vp-main" class="vp-shell__main" tabindex="-1">
|
|
1250
|
+
<ng-content />
|
|
1251
|
+
</main>
|
|
1252
|
+
</div>
|
|
1253
|
+
|
|
1254
|
+
<!--
|
|
1255
|
+
Alt bilgi ana icerigin DISINDA. Varsayilan yuvaya konsaydi footer
|
|
1256
|
+
main ICINDE kalirdi ve HTML kurallarina gore main icindeki footer bir
|
|
1257
|
+
contentinfo yer isareti degildir - isaret sessizce kaybolurdu.
|
|
1258
|
+
-->
|
|
1259
|
+
<ng-content select="[footer]" />
|
|
1260
|
+
`, isInline: true, styles: [":host{display:flex;flex-direction:column;min-height:100dvh;background:var(--vp-surface-base);color:var(--vp-text-primary);font-family:var(--vp-font-sans);font-size:var(--vp-text-base)}.vp-skip{position:absolute;top:0;left:var(--vp-space-4);z-index:100;transform:translateY(-120%);padding:var(--vp-space-2) var(--vp-space-4);border-radius:0 0 var(--vp-radius-md) var(--vp-radius-md);background:var(--vp-brand);color:var(--vp-text-on-accent);text-decoration:none;transition:transform var(--vp-duration-fast) var(--vp-ease-standard)}.vp-skip:focus-visible{transform:translateY(0);outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-shell__topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;height:var(--vp-header-height);padding-inline:var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);background:var(--vp-surface-raised)}.vp-shell__body{display:flex;flex:1;min-height:0}.vp-shell__sidebar{flex:0 0 var(--vp-sidebar-width);width:var(--vp-sidebar-width);border-right:1px solid var(--vp-border-subtle);background:var(--vp-surface-raised);overflow-y:auto;transition:flex-basis var(--vp-duration-base) var(--vp-ease-standard),width var(--vp-duration-base) var(--vp-ease-standard)}.vp-shell__sidebar[data-collapsed]{flex-basis:var(--vp-sidebar-collapsed);width:var(--vp-sidebar-collapsed)}.vp-shell__sidebar{display:flex;flex-direction:column}.vp-shell__sidebar-scroll{flex:1;min-height:0;overflow-y:auto}.vp-shell__sidebar-foot{flex:0 0 auto;display:flex;flex-direction:column;gap:var(--vp-space-3);padding:var(--vp-space-3);border-top:1px solid var(--vp-border-subtle)}.vp-shell__quota-head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--vp-space-2);margin-bottom:var(--vp-space-2);font-size:var(--vp-text-xs)}.vp-shell__quota-label{color:var(--vp-text-secondary)}.vp-shell__quota-value{color:var(--vp-text-primary);font-variant-numeric:tabular-nums}.vp-shell__quota-bar{display:flex;block-size:6px;border-radius:var(--vp-radius-full, 999px);background:var(--vp-surface-sunken);overflow:hidden}.vp-shell__quota-fill{display:block;block-size:100%;border-radius:inherit;background:var(--vp-brand-500, var(--vp-focus-ring));transition:inline-size var(--vp-duration-base) var(--vp-ease-standard)}.vp-shell__quota[data-vp-quota-level=warn] .vp-shell__quota-fill{background:var(--vp-sev-high)}.vp-shell__quota[data-vp-quota-level=critical] .vp-shell__quota-fill{background:var(--vp-sev-critical)}.vp-shell__quota[data-vp-quota-level=critical] .vp-shell__quota-value{color:var(--vp-sev-critical)}.vp-shell__quota-hint{margin:var(--vp-space-2) 0 0;color:var(--vp-text-muted);font-size:var(--vp-text-xs);line-height:var(--vp-leading-tight)}.vp-shell__quota-fill--segment{border-radius:0}.vp-shell__quota-fill--segment+.vp-shell__quota-fill--segment{border-inline-start:1px solid var(--vp-surface-raised)}.vp-shell__quota[data-vp-quota-compact] .vp-shell__quota-head{display:none}.vp-shell__lang{display:flex;flex-wrap:wrap;gap:var(--vp-space-1)}.vp-shell__lang-option{flex:1 1 auto;min-height:var(--vp-control-height);padding:0 var(--vp-space-2);border:1px solid transparent;border-radius:var(--vp-radius-md);background:transparent;color:var(--vp-text-secondary);font:inherit;font-size:var(--vp-text-xs);cursor:pointer}.vp-shell__lang-option:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-shell__lang-option[aria-pressed=true]{border-color:var(--vp-border-default);background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-shell__lang-option:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-shell__main{flex:1;min-width:0;padding:var(--vp-space-6);outline:none}.vp-shell__sidebar[data-overlay]{position:fixed;inset-block:0;left:0;z-index:30;width:min(var(--vp-sidebar-width),82vw);flex-basis:auto;transform:translate(0);transition:transform var(--vp-duration-base) var(--vp-ease-standard);box-shadow:var(--vp-shadow-lg)}.vp-shell__sidebar[data-overlay][data-collapsed]{transform:translate(-100%);width:min(var(--vp-sidebar-width),82vw);box-shadow:none}@media(max-width:900px){.vp-shell__main{padding:var(--vp-space-4)}}.vp-shell__drawer-toggle{display:inline-grid;place-items:center;width:44px;height:44px;margin-inline-end:var(--vp-space-2);border:0;border-radius:var(--vp-radius-md);background:transparent;color:var(--vp-text-primary);cursor:pointer}.vp-shell__drawer-toggle:hover{background:var(--vp-surface-sunken, rgb(255 255 255 / 6%))}.vp-shell__drawer-toggle:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-shell__burger,.vp-shell__burger:before,.vp-shell__burger:after{display:block;width:18px;height:2px;border-radius:1px;background:currentColor}.vp-shell__burger{position:relative}.vp-shell__burger:before,.vp-shell__burger:after{content:\"\";position:absolute;left:0}.vp-shell__burger:before{top:-6px}.vp-shell__burger:after{top:6px}.vp-shell__mask{position:fixed;inset:0;z-index:29;background:var(--vp-scrim, rgb(0 0 0 / 45%))}@media(prefers-reduced-motion:reduce){.vp-skip,.vp-shell__sidebar{transition:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
959
1261
|
}
|
|
960
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1262
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpShellComponent, decorators: [{
|
|
961
1263
|
type: Component,
|
|
962
|
-
args: [{ selector: 'vp-shell', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
963
|
-
<!-- Atlama baglantisi DOM'da ILK odaklanabilir oge olmali.
|
|
964
|
-
Klavye kullanicisi her sayfada menuyu bastan gecmek zorunda kalmasin. -->
|
|
965
|
-
<a class="vp-skip" data-vp-skip href="#vp-main">{{ skipLabel }}</a>
|
|
966
|
-
|
|
967
|
-
<header class="vp-shell__topbar">
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1264
|
+
args: [{ selector: 'vp-shell', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1265
|
+
<!-- Atlama baglantisi DOM'da ILK odaklanabilir oge olmali.
|
|
1266
|
+
Klavye kullanicisi her sayfada menuyu bastan gecmek zorunda kalmasin. -->
|
|
1267
|
+
<a class="vp-skip" data-vp-skip href="#vp-main">{{ skipLabel }}</a>
|
|
1268
|
+
|
|
1269
|
+
<header class="vp-shell__topbar">
|
|
1270
|
+
<!--
|
|
1271
|
+
🔴 Cekmece tetikleyicisi KABUGUN kendi ogesi, uygulamanin degil.
|
|
1272
|
+
Olculdu (2026-09-08): dar ekranda kenar cubugu ekran disinda
|
|
1273
|
+
bekliyordu ve onu geri getirecek gorunur bir denetim yoktu —
|
|
1274
|
+
vp-sidebar-toggle uygulamanin ust cubuguna KOYULURSA vardi, ve
|
|
1275
|
+
iki konsol onu koymamisti. Menuye ulasmanin tek yolu, kabugun
|
|
1276
|
+
garanti ettigi bir dugme olmali.
|
|
1277
|
+
|
|
1278
|
+
Yalniz overlay kipinde ciziliyor: genis ekranda menu zaten akista
|
|
1279
|
+
ve ikinci bir daraltma denetimi iki ayri kip demek olurdu.
|
|
1280
|
+
-->
|
|
1281
|
+
@if (overlay()) {
|
|
1282
|
+
<button
|
|
1283
|
+
type="button"
|
|
1284
|
+
class="vp-shell__drawer-toggle"
|
|
1285
|
+
data-vp-drawer-toggle
|
|
1286
|
+
[attr.aria-controls]="sidebarId"
|
|
1287
|
+
[attr.aria-expanded]="!collapsed"
|
|
1288
|
+
[attr.aria-label]="collapsed ? menuOpenLabel : menuCloseLabel"
|
|
1289
|
+
(click)="toggleDrawer()">
|
|
1290
|
+
<span class="vp-shell__burger" aria-hidden="true"></span>
|
|
1291
|
+
</button>
|
|
1292
|
+
}
|
|
1293
|
+
<ng-content select="[topbar]" />
|
|
1294
|
+
</header>
|
|
1295
|
+
|
|
1296
|
+
<div class="vp-shell__body">
|
|
1297
|
+
<!--
|
|
1298
|
+
id ZORUNLU: vp-sidebar-toggle bunu aria-controls ile isaret
|
|
1299
|
+
ediyor. Olculdu (2026-08-27): dugme eklendiginde bu id yoktu ve
|
|
1300
|
+
aria-controls olmayan bir bolgeyi gosteriyordu — ekran okuyucu
|
|
1301
|
+
icin varmis gibi gorunen, gercekte olmayan bir baglanti.
|
|
1302
|
+
-->
|
|
1303
|
+
<aside
|
|
1304
|
+
#sidebar
|
|
1305
|
+
[id]="sidebarId"
|
|
1306
|
+
class="vp-shell__sidebar"
|
|
1307
|
+
[attr.data-collapsed]="collapsed || null"
|
|
1308
|
+
[attr.data-overlay]="overlay() || null"
|
|
1309
|
+
[attr.data-vp-drawer]="overlay() ? (collapsed ? 'closed' : 'open') : null"
|
|
1310
|
+
[attr.inert]="overlay() && collapsed ? '' : null">
|
|
1311
|
+
<!--
|
|
1312
|
+
Menu kendi kaydirma kutusunda: kota ve dil kenar cubugunun ALTINA
|
|
1313
|
+
sabitleniyor. Ayni kutuda olsalardi uzun menude ekrandan cikarlardi
|
|
1314
|
+
ve kullanici kotayi gormek icin menuyu sonuna kadar kaydirirdi.
|
|
1315
|
+
-->
|
|
1316
|
+
<div class="vp-shell__sidebar-scroll">
|
|
1317
|
+
<ng-content select="[sidebar]" />
|
|
1318
|
+
</div>
|
|
1319
|
+
|
|
1320
|
+
@if (quota || languages.length) {
|
|
1321
|
+
<div class="vp-shell__sidebar-foot">
|
|
1322
|
+
@if (quota) {
|
|
1323
|
+
<!--
|
|
1324
|
+
B1-K2: kota gostergesi KABUGUN parcasi, ayri bir bilesen degil.
|
|
1325
|
+
Kenar cubugunun alti kabugun kendi alani ve ray kipinde de
|
|
1326
|
+
kabugun kuralina uyuyor.
|
|
1327
|
+
|
|
1328
|
+
Esik tek yerde (VP_QUOTA_WARN / VP_QUOTA_CRITICAL): ekran
|
|
1329
|
+
basina esik tanimlamak, iki ekranda iki farkli "dolmak uzere"
|
|
1330
|
+
demektir.
|
|
1331
|
+
-->
|
|
1332
|
+
<div
|
|
1333
|
+
class="vp-shell__quota"
|
|
1334
|
+
data-vp-quota
|
|
1335
|
+
[attr.data-vp-quota-level]="quotaLevel"
|
|
1336
|
+
[attr.data-vp-quota-compact]="collapsed ? 'true' : null"
|
|
1337
|
+
[attr.title]="collapsed ? quotaText : null">
|
|
1338
|
+
<div class="vp-shell__quota-head">
|
|
1339
|
+
<span class="vp-shell__quota-label">{{ quota.label }}</span>
|
|
1340
|
+
<span class="vp-shell__quota-value">{{ quotaText }}</span>
|
|
1341
|
+
</div>
|
|
1342
|
+
<!--
|
|
1343
|
+
Deger yalniz RENKLE anlatilmiyor: role=progressbar ve
|
|
1344
|
+
aria-valuenow ile de duyuruluyor. Renk korfarki olan bir
|
|
1345
|
+
kullanici icin dolu cubuk ile bos cubuk ayni gorunur.
|
|
1346
|
+
-->
|
|
1347
|
+
<div
|
|
1348
|
+
class="vp-shell__quota-bar"
|
|
1349
|
+
role="progressbar"
|
|
1350
|
+
aria-valuemin="0"
|
|
1351
|
+
aria-valuemax="100"
|
|
1352
|
+
[attr.aria-valuenow]="quotaPercent"
|
|
1353
|
+
[attr.aria-valuetext]="quotaText"
|
|
1354
|
+
[attr.aria-label]="quota.label">
|
|
1355
|
+
@if (quotaSegments.length) {
|
|
1356
|
+
@for (segment of quotaSegments; track segment.label) {
|
|
1357
|
+
<span
|
|
1358
|
+
class="vp-shell__quota-fill vp-shell__quota-fill--segment"
|
|
1359
|
+
data-vp-quota-segment
|
|
1360
|
+
[attr.data-vp-quota-segment-label]="segment.label"
|
|
1361
|
+
[attr.title]="segment.title"
|
|
1362
|
+
[style.inline-size.%]="segment.percent"
|
|
1363
|
+
[style.background]="segment.color"></span>
|
|
1364
|
+
}
|
|
1365
|
+
} @else {
|
|
1366
|
+
<span class="vp-shell__quota-fill" [style.inline-size.%]="quotaPercent"></span>
|
|
1367
|
+
}
|
|
1368
|
+
</div>
|
|
1369
|
+
@if (quota.hint && !collapsed) {
|
|
1370
|
+
<p class="vp-shell__quota-hint">{{ quota.hint }}</p>
|
|
1371
|
+
}
|
|
1372
|
+
</div>
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
@if (languages.length) {
|
|
1376
|
+
<!--
|
|
1377
|
+
B1-K3: dil DENETIMI kabukta, MANTIK @virusis/i18n'de.
|
|
1378
|
+
Kabuk secimi gosterip olayi yayiyor; cozumleme, kalicilik ve
|
|
1379
|
+
?lang= -> kayit -> tarayici sirasi kabugun isi DEGIL. Kabuk
|
|
1380
|
+
document.lang yazarsa dil mantigi iki yere bolunur.
|
|
1381
|
+
-->
|
|
1382
|
+
<div class="vp-shell__lang" data-vp-lang [attr.role]="'group'" [attr.aria-label]="languageLabel">
|
|
1383
|
+
@for (option of languages; track option.code) {
|
|
1384
|
+
<button
|
|
1385
|
+
type="button"
|
|
1386
|
+
class="vp-shell__lang-option"
|
|
1387
|
+
data-vp-lang-option
|
|
1388
|
+
[attr.data-vp-lang-code]="option.code"
|
|
1389
|
+
[attr.aria-pressed]="option.code === language"
|
|
1390
|
+
[attr.title]="option.label"
|
|
1391
|
+
(click)="languageChange.emit(option.code)">
|
|
1392
|
+
{{ collapsed ? option.code.toUpperCase() : option.label }}
|
|
1393
|
+
</button>
|
|
1394
|
+
}
|
|
1395
|
+
</div>
|
|
1396
|
+
}
|
|
1397
|
+
</div>
|
|
1398
|
+
}
|
|
1399
|
+
</aside>
|
|
1400
|
+
|
|
1401
|
+
@if (overlay() && !collapsed) {
|
|
1402
|
+
<!--
|
|
1403
|
+
🔴 Maske YALNIZ dar ekranda ve menu ACIKKEN var.
|
|
1404
|
+
Genis ekranda hic cizilmiyor: gorunmez bir katman, uzerindeki
|
|
1405
|
+
tiklamalari sessizce yutardi.
|
|
1406
|
+
|
|
1407
|
+
⚠️ button degil div: ekran okuyucu icin ikinci bir "kapat"
|
|
1408
|
+
duragi olusturmuyor — kapatmanin erisilebilir yolu ust cubuktaki
|
|
1409
|
+
vp-sidebar-toggle dugmesi. Maske yalniz isaretleme kolayligi.
|
|
1410
|
+
-->
|
|
1411
|
+
<div
|
|
1412
|
+
class="vp-shell__mask"
|
|
1413
|
+
data-vp-shell-mask
|
|
1414
|
+
data-vp-scrim
|
|
1415
|
+
aria-hidden="true"
|
|
1416
|
+
(click)="collapsedChange.emit(true)"></div>
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
<main id="vp-main" class="vp-shell__main" tabindex="-1">
|
|
1420
|
+
<ng-content />
|
|
1421
|
+
</main>
|
|
1422
|
+
</div>
|
|
1423
|
+
|
|
1424
|
+
<!--
|
|
1425
|
+
Alt bilgi ana icerigin DISINDA. Varsayilan yuvaya konsaydi footer
|
|
1426
|
+
main ICINDE kalirdi ve HTML kurallarina gore main icindeki footer bir
|
|
1427
|
+
contentinfo yer isareti degildir - isaret sessizce kaybolurdu.
|
|
1428
|
+
-->
|
|
1429
|
+
<ng-content select="[footer]" />
|
|
1430
|
+
`, styles: [":host{display:flex;flex-direction:column;min-height:100dvh;background:var(--vp-surface-base);color:var(--vp-text-primary);font-family:var(--vp-font-sans);font-size:var(--vp-text-base)}.vp-skip{position:absolute;top:0;left:var(--vp-space-4);z-index:100;transform:translateY(-120%);padding:var(--vp-space-2) var(--vp-space-4);border-radius:0 0 var(--vp-radius-md) var(--vp-radius-md);background:var(--vp-brand);color:var(--vp-text-on-accent);text-decoration:none;transition:transform var(--vp-duration-fast) var(--vp-ease-standard)}.vp-skip:focus-visible{transform:translateY(0);outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-shell__topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;height:var(--vp-header-height);padding-inline:var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);background:var(--vp-surface-raised)}.vp-shell__body{display:flex;flex:1;min-height:0}.vp-shell__sidebar{flex:0 0 var(--vp-sidebar-width);width:var(--vp-sidebar-width);border-right:1px solid var(--vp-border-subtle);background:var(--vp-surface-raised);overflow-y:auto;transition:flex-basis var(--vp-duration-base) var(--vp-ease-standard),width var(--vp-duration-base) var(--vp-ease-standard)}.vp-shell__sidebar[data-collapsed]{flex-basis:var(--vp-sidebar-collapsed);width:var(--vp-sidebar-collapsed)}.vp-shell__sidebar{display:flex;flex-direction:column}.vp-shell__sidebar-scroll{flex:1;min-height:0;overflow-y:auto}.vp-shell__sidebar-foot{flex:0 0 auto;display:flex;flex-direction:column;gap:var(--vp-space-3);padding:var(--vp-space-3);border-top:1px solid var(--vp-border-subtle)}.vp-shell__quota-head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--vp-space-2);margin-bottom:var(--vp-space-2);font-size:var(--vp-text-xs)}.vp-shell__quota-label{color:var(--vp-text-secondary)}.vp-shell__quota-value{color:var(--vp-text-primary);font-variant-numeric:tabular-nums}.vp-shell__quota-bar{display:flex;block-size:6px;border-radius:var(--vp-radius-full, 999px);background:var(--vp-surface-sunken);overflow:hidden}.vp-shell__quota-fill{display:block;block-size:100%;border-radius:inherit;background:var(--vp-brand-500, var(--vp-focus-ring));transition:inline-size var(--vp-duration-base) var(--vp-ease-standard)}.vp-shell__quota[data-vp-quota-level=warn] .vp-shell__quota-fill{background:var(--vp-sev-high)}.vp-shell__quota[data-vp-quota-level=critical] .vp-shell__quota-fill{background:var(--vp-sev-critical)}.vp-shell__quota[data-vp-quota-level=critical] .vp-shell__quota-value{color:var(--vp-sev-critical)}.vp-shell__quota-hint{margin:var(--vp-space-2) 0 0;color:var(--vp-text-muted);font-size:var(--vp-text-xs);line-height:var(--vp-leading-tight)}.vp-shell__quota-fill--segment{border-radius:0}.vp-shell__quota-fill--segment+.vp-shell__quota-fill--segment{border-inline-start:1px solid var(--vp-surface-raised)}.vp-shell__quota[data-vp-quota-compact] .vp-shell__quota-head{display:none}.vp-shell__lang{display:flex;flex-wrap:wrap;gap:var(--vp-space-1)}.vp-shell__lang-option{flex:1 1 auto;min-height:var(--vp-control-height);padding:0 var(--vp-space-2);border:1px solid transparent;border-radius:var(--vp-radius-md);background:transparent;color:var(--vp-text-secondary);font:inherit;font-size:var(--vp-text-xs);cursor:pointer}.vp-shell__lang-option:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-shell__lang-option[aria-pressed=true]{border-color:var(--vp-border-default);background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-shell__lang-option:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-shell__main{flex:1;min-width:0;padding:var(--vp-space-6);outline:none}.vp-shell__sidebar[data-overlay]{position:fixed;inset-block:0;left:0;z-index:30;width:min(var(--vp-sidebar-width),82vw);flex-basis:auto;transform:translate(0);transition:transform var(--vp-duration-base) var(--vp-ease-standard);box-shadow:var(--vp-shadow-lg)}.vp-shell__sidebar[data-overlay][data-collapsed]{transform:translate(-100%);width:min(var(--vp-sidebar-width),82vw);box-shadow:none}@media(max-width:900px){.vp-shell__main{padding:var(--vp-space-4)}}.vp-shell__drawer-toggle{display:inline-grid;place-items:center;width:44px;height:44px;margin-inline-end:var(--vp-space-2);border:0;border-radius:var(--vp-radius-md);background:transparent;color:var(--vp-text-primary);cursor:pointer}.vp-shell__drawer-toggle:hover{background:var(--vp-surface-sunken, rgb(255 255 255 / 6%))}.vp-shell__drawer-toggle:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-shell__burger,.vp-shell__burger:before,.vp-shell__burger:after{display:block;width:18px;height:2px;border-radius:1px;background:currentColor}.vp-shell__burger{position:relative}.vp-shell__burger:before,.vp-shell__burger:after{content:\"\";position:absolute;left:0}.vp-shell__burger:before{top:-6px}.vp-shell__burger:after{top:6px}.vp-shell__mask{position:fixed;inset:0;z-index:29;background:var(--vp-scrim, rgb(0 0 0 / 45%))}@media(prefers-reduced-motion:reduce){.vp-skip,.vp-shell__sidebar{transition:none}}\n"] }]
|
|
1008
1431
|
}], ctorParameters: () => [], propDecorators: { sidebarId: [{
|
|
1009
1432
|
type: Input
|
|
1010
1433
|
}], menuMode: [{
|
|
1011
1434
|
type: Input
|
|
1012
1435
|
}], collapsedChange: [{
|
|
1013
1436
|
type: Output
|
|
1437
|
+
}], quota: [{
|
|
1438
|
+
type: Input
|
|
1439
|
+
}], languages: [{
|
|
1440
|
+
type: Input
|
|
1441
|
+
}], language: [{
|
|
1442
|
+
type: Input
|
|
1443
|
+
}], languageLabel: [{
|
|
1444
|
+
type: Input
|
|
1445
|
+
}], languageChange: [{
|
|
1446
|
+
type: Output
|
|
1447
|
+
}], menuOpenLabel: [{
|
|
1448
|
+
type: Input
|
|
1449
|
+
}], menuCloseLabel: [{
|
|
1450
|
+
type: Input
|
|
1451
|
+
}], onEscape: [{
|
|
1452
|
+
type: HostListener,
|
|
1453
|
+
args: ['document:keydown.escape']
|
|
1014
1454
|
}], collapsed: [{
|
|
1015
1455
|
type: Input
|
|
1456
|
+
}], sidebarRef: [{
|
|
1457
|
+
type: ViewChild,
|
|
1458
|
+
args: ['sidebar']
|
|
1016
1459
|
}], skipLabel: [{
|
|
1017
1460
|
type: Input
|
|
1018
1461
|
}] } });
|
|
@@ -1046,13 +1489,13 @@ class VpSkipLinkComponent {
|
|
|
1046
1489
|
/** Paket kuralina uygun: Turkce varsayilan, `@Input` ile ezilir. */
|
|
1047
1490
|
this.label = 'Ana içeriğe geç';
|
|
1048
1491
|
}
|
|
1049
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1050
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
1492
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSkipLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1493
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: VpSkipLinkComponent, isStandalone: true, selector: "vp-skip-link", inputs: { targetId: "targetId", label: "label" }, ngImport: i0, template: `
|
|
1051
1494
|
<!-- DOM'da ILK odaklanabilir oge olmali: sayfanin en basinda dursun. -->
|
|
1052
1495
|
<a class="vp-skip" data-vp-skip [href]="'#' + targetId">{{ label }}</a>
|
|
1053
1496
|
`, isInline: true, styles: [".vp-skip{position:absolute;top:0;left:var(--vp-space-4);z-index:100;transform:translateY(-120%);padding:var(--vp-space-2) var(--vp-space-4);border-radius:0 0 var(--vp-radius-md) var(--vp-radius-md);background:var(--vp-brand);color:var(--vp-text-on-accent);text-decoration:none;transition:transform var(--vp-duration-fast) var(--vp-ease-standard)}.vp-skip:focus-visible{transform:translateY(0);outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}@media(prefers-reduced-motion:reduce){.vp-skip{transition:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1054
1497
|
}
|
|
1055
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSkipLinkComponent, decorators: [{
|
|
1056
1499
|
type: Component,
|
|
1057
1500
|
args: [{ selector: 'vp-skip-link', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1058
1501
|
<!-- DOM'da ILK odaklanabilir oge olmali: sayfanin en basinda dursun. -->
|
|
@@ -1101,8 +1544,8 @@ class VpPageHeaderComponent {
|
|
|
1101
1544
|
/** Kayit sayisi. 0 da gosterilir — "bos" ile "sifir" farkli bilgidir. */
|
|
1102
1545
|
this.count = null;
|
|
1103
1546
|
}
|
|
1104
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1105
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
1547
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpPageHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1548
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpPageHeaderComponent, isStandalone: true, selector: "vp-page-header", inputs: { heading: "heading", description: "description", count: "count" }, ngImport: i0, template: `
|
|
1106
1549
|
<div class="vp-page-header">
|
|
1107
1550
|
<div class="vp-page-header__bar">
|
|
1108
1551
|
<div class="vp-page-header__text">
|
|
@@ -1137,9 +1580,9 @@ class VpPageHeaderComponent {
|
|
|
1137
1580
|
<ng-content select="[tabs]" />
|
|
1138
1581
|
</div>
|
|
1139
1582
|
</div>
|
|
1140
|
-
`, isInline: true, styles: [":host{display:block}.vp-page-header{margin-bottom:var(--vp-space-6)}.vp-page-header__bar{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--vp-space-4)}.vp-page-header__meta:empty,.vp-page-header__tabs:empty,.vp-page-header__status:empty{display:none}.vp-page-header__meta{display:flex;flex-wrap:wrap;gap:var(--vp-space-3);margin-top:var(--vp-space-2);color:var(--vp-text-muted);font-size:var(--vp-text-sm)}.vp-page-header__status{display:inline-flex;align-items:center;gap:var(--vp-space-2)}.vp-page-header__tabs{margin-top:var(--vp-space-4)}.vp-page-header__heading-row{display:flex;align-items:baseline;gap:var(--vp-space-3)}.vp-page-header__heading{margin:0;font-size:var(--vp-text-2xl);font-weight:var(--vp-weight-semibold);line-height:var(--vp-leading-tight);color:var(--vp-text-primary)}.vp-page-header__count{padding:var(--vp-space-1) var(--vp-space-2);border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken);color:var(--vp-text-muted);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-page-header__description{margin:var(--vp-space-1) 0 0;color:var(--vp-text-secondary);font-size:var(--vp-text-base)}.vp-page-header__actions{display:flex;flex-shrink:0;gap:var(--vp-space-2)}@media(max-width:
|
|
1583
|
+
`, isInline: true, styles: [":host{display:block}.vp-page-header{margin-bottom:var(--vp-space-6)}.vp-page-header__bar{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--vp-space-4)}.vp-page-header__meta:empty,.vp-page-header__tabs:empty,.vp-page-header__status:empty{display:none}.vp-page-header__meta{display:flex;flex-wrap:wrap;gap:var(--vp-space-3);margin-top:var(--vp-space-2);color:var(--vp-text-muted);font-size:var(--vp-text-sm)}.vp-page-header__status{display:inline-flex;align-items:center;gap:var(--vp-space-2)}.vp-page-header__tabs{margin-top:var(--vp-space-4)}.vp-page-header__heading-row{display:flex;align-items:baseline;gap:var(--vp-space-3)}.vp-page-header__heading{margin:0;font-size:var(--vp-text-2xl);font-weight:var(--vp-weight-semibold);line-height:var(--vp-leading-tight);color:var(--vp-text-primary)}.vp-page-header__count{padding:var(--vp-space-1) var(--vp-space-2);border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken);color:var(--vp-text-muted);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-page-header__description{margin:var(--vp-space-1) 0 0;color:var(--vp-text-secondary);font-size:var(--vp-text-base)}.vp-page-header__actions{display:flex;flex-shrink:0;gap:var(--vp-space-2)}@media(max-width:900px){.vp-page-header__bar{flex-direction:column}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1141
1584
|
}
|
|
1142
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1585
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpPageHeaderComponent, decorators: [{
|
|
1143
1586
|
type: Component,
|
|
1144
1587
|
args: [{ selector: 'vp-page-header', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1145
1588
|
<div class="vp-page-header">
|
|
@@ -1176,7 +1619,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImpo
|
|
|
1176
1619
|
<ng-content select="[tabs]" />
|
|
1177
1620
|
</div>
|
|
1178
1621
|
</div>
|
|
1179
|
-
`, styles: [":host{display:block}.vp-page-header{margin-bottom:var(--vp-space-6)}.vp-page-header__bar{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--vp-space-4)}.vp-page-header__meta:empty,.vp-page-header__tabs:empty,.vp-page-header__status:empty{display:none}.vp-page-header__meta{display:flex;flex-wrap:wrap;gap:var(--vp-space-3);margin-top:var(--vp-space-2);color:var(--vp-text-muted);font-size:var(--vp-text-sm)}.vp-page-header__status{display:inline-flex;align-items:center;gap:var(--vp-space-2)}.vp-page-header__tabs{margin-top:var(--vp-space-4)}.vp-page-header__heading-row{display:flex;align-items:baseline;gap:var(--vp-space-3)}.vp-page-header__heading{margin:0;font-size:var(--vp-text-2xl);font-weight:var(--vp-weight-semibold);line-height:var(--vp-leading-tight);color:var(--vp-text-primary)}.vp-page-header__count{padding:var(--vp-space-1) var(--vp-space-2);border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken);color:var(--vp-text-muted);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-page-header__description{margin:var(--vp-space-1) 0 0;color:var(--vp-text-secondary);font-size:var(--vp-text-base)}.vp-page-header__actions{display:flex;flex-shrink:0;gap:var(--vp-space-2)}@media(max-width:
|
|
1622
|
+
`, styles: [":host{display:block}.vp-page-header{margin-bottom:var(--vp-space-6)}.vp-page-header__bar{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--vp-space-4)}.vp-page-header__meta:empty,.vp-page-header__tabs:empty,.vp-page-header__status:empty{display:none}.vp-page-header__meta{display:flex;flex-wrap:wrap;gap:var(--vp-space-3);margin-top:var(--vp-space-2);color:var(--vp-text-muted);font-size:var(--vp-text-sm)}.vp-page-header__status{display:inline-flex;align-items:center;gap:var(--vp-space-2)}.vp-page-header__tabs{margin-top:var(--vp-space-4)}.vp-page-header__heading-row{display:flex;align-items:baseline;gap:var(--vp-space-3)}.vp-page-header__heading{margin:0;font-size:var(--vp-text-2xl);font-weight:var(--vp-weight-semibold);line-height:var(--vp-leading-tight);color:var(--vp-text-primary)}.vp-page-header__count{padding:var(--vp-space-1) var(--vp-space-2);border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken);color:var(--vp-text-muted);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-page-header__description{margin:var(--vp-space-1) 0 0;color:var(--vp-text-secondary);font-size:var(--vp-text-base)}.vp-page-header__actions{display:flex;flex-shrink:0;gap:var(--vp-space-2)}@media(max-width:900px){.vp-page-header__bar{flex-direction:column}}\n"] }]
|
|
1180
1623
|
}], propDecorators: { heading: [{
|
|
1181
1624
|
type: Input,
|
|
1182
1625
|
args: [{ required: true }]
|
|
@@ -1222,8 +1665,8 @@ class VpBannerComponent {
|
|
|
1222
1665
|
default: return 'maintenance';
|
|
1223
1666
|
}
|
|
1224
1667
|
}
|
|
1225
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1226
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
1668
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpBannerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1669
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpBannerComponent, isStandalone: true, selector: "vp-banner", inputs: { message: "message", tone: "tone", dismissible: "dismissible", dismissLabel: "dismissLabel" }, outputs: { dismissed: "dismissed" }, ngImport: i0, template: `
|
|
1227
1670
|
<div
|
|
1228
1671
|
class="vp-banner"
|
|
1229
1672
|
[attr.data-tone]="tone"
|
|
@@ -1255,7 +1698,7 @@ class VpBannerComponent {
|
|
|
1255
1698
|
</div>
|
|
1256
1699
|
`, isInline: true, styles: [":host{display:block}.vp-banner{display:flex;align-items:center;gap:var(--vp-space-3);padding:var(--vp-space-3) var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);background:var(--vp-surface-sunken);color:var(--vp-text-primary);font-size:var(--vp-text-sm)}.vp-banner[data-tone=info]{background:var(--vp-sev-low-bg);color:var(--vp-sev-low)}.vp-banner[data-tone=warning]{background:var(--vp-sev-high-bg);color:var(--vp-sev-high)}.vp-banner[data-tone=danger]{background:var(--vp-sev-critical-bg);color:var(--vp-sev-critical)}.vp-banner[data-tone=success]{background:var(--vp-sev-clean-bg);color:var(--vp-sev-clean)}.vp-banner__icon{flex:0 0 auto;width:18px;height:18px}.vp-banner__message{flex:1;min-width:0}.vp-banner__actions{display:flex;gap:var(--vp-space-2);flex-shrink:0}.vp-banner__dismiss{display:inline-flex;align-items:center;justify-content:center;width:var(--vp-min-target);height:var(--vp-min-target);flex-shrink:0;border:0;border-radius:var(--vp-radius-sm);background:transparent;color:inherit;cursor:pointer;opacity:.7}.vp-banner__dismiss:hover{opacity:1}.vp-banner__dismiss:focus-visible{opacity:1;outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-banner__dismiss-icon{width:16px;height:16px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1257
1700
|
}
|
|
1258
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpBannerComponent, decorators: [{
|
|
1259
1702
|
type: Component,
|
|
1260
1703
|
args: [{ selector: 'vp-banner', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1261
1704
|
<div
|
|
@@ -1329,8 +1772,8 @@ class VpTopbarComponent {
|
|
|
1329
1772
|
this.scrolled = false;
|
|
1330
1773
|
this.landmarkLabel = 'Üst çubuk';
|
|
1331
1774
|
}
|
|
1332
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1333
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
1775
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpTopbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1776
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: VpTopbarComponent, isStandalone: true, selector: "vp-topbar", inputs: { scrolled: "scrolled", landmarkLabel: "landmarkLabel" }, ngImport: i0, template: `
|
|
1334
1777
|
<header
|
|
1335
1778
|
class="vp-topbar"
|
|
1336
1779
|
[attr.aria-label]="landmarkLabel"
|
|
@@ -1356,7 +1799,7 @@ class VpTopbarComponent {
|
|
|
1356
1799
|
</header>
|
|
1357
1800
|
`, isInline: true, styles: [":host{display:block;flex:1;min-width:0}.vp-topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:var(--vp-space-3);height:var(--vp-header-height);padding-inline:var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);background:var(--vp-surface-raised);color:var(--vp-text-primary);font-family:var(--vp-font-sans);transition:box-shadow var(--vp-duration-base) var(--vp-ease-standard),background var(--vp-duration-base) var(--vp-ease-standard)}.vp-topbar[data-scrolled]{border-bottom-color:var(--vp-border-strong)}.vp-topbar__brand{display:flex;align-items:center;gap:var(--vp-space-2);flex-shrink:0;font-weight:var(--vp-weight-semibold)}.vp-topbar__start,.vp-topbar__actions,.vp-topbar__user{display:flex;align-items:center;gap:var(--vp-space-2);flex-shrink:0}.vp-topbar__spacer{flex:1;min-width:0}@media(max-width:640px){.vp-topbar{padding-inline:var(--vp-space-3);gap:var(--vp-space-2)}.vp-topbar__brand{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}@media(prefers-reduced-motion:reduce){.vp-topbar{transition:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1358
1801
|
}
|
|
1359
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1802
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpTopbarComponent, decorators: [{
|
|
1360
1803
|
type: Component,
|
|
1361
1804
|
args: [{ selector: 'vp-topbar', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1362
1805
|
<header
|
|
@@ -1446,6 +1889,46 @@ class VpSidebarComponent {
|
|
|
1446
1889
|
this.collapsed = false;
|
|
1447
1890
|
this.navLabel = 'Ana menü';
|
|
1448
1891
|
this.badgeLabel = 'öğe';
|
|
1892
|
+
/**
|
|
1893
|
+
* Maddeleri gruplarina bolerek, ILK GORULDUKLERI SIRAYLA dondurur.
|
|
1894
|
+
*
|
|
1895
|
+
* ⚠️ Alfabetik siralanMIYOR: menu sirasi bir urun karari (paket 17 §6.2
|
|
1896
|
+
* bilgi mimarisi) ve alfabe onu bozardi. Grup adi olmayan maddeler tek bir
|
|
1897
|
+
* adsiz grupta, listenin basinda kalir.
|
|
1898
|
+
*
|
|
1899
|
+
* 📌 Sozlesme geriye uyumlu: hicbir madde `group` tasimazsa tek adsiz grup
|
|
1900
|
+
* olusur ve cikti eskisiyle ayni kalir.
|
|
1901
|
+
*/
|
|
1902
|
+
/**
|
|
1903
|
+
* Cizilecek cocuklar — gizliler dusuyor.
|
|
1904
|
+
*
|
|
1905
|
+
* ⚠️ Cocugun cocugu DONMUYOR: derinlik bir seviye. Daha derin bir menu kenar
|
|
1906
|
+
* cubugunda okunamaz hale gelir; sozlesme de bunu soyluyor.
|
|
1907
|
+
*/
|
|
1908
|
+
/**
|
|
1909
|
+
* Kapali kumeler — acik olanlar DEGIL.
|
|
1910
|
+
*
|
|
1911
|
+
* 🔴 Varsayilan ACIK: menu ilk acilista ne tasidigini gostermeli. Kapali
|
|
1912
|
+
* baslasaydi kullaniciya her oturumda once "nerede ne var" sorusu sorulurdu.
|
|
1913
|
+
* Istisna sozlesmeden geliyor (`VpMenuItem.collapsed`), bilesenin kendi
|
|
1914
|
+
* kararindan degil: hangi kumenin uzun oldugunu menuyu KURAN taraf bilir.
|
|
1915
|
+
*/
|
|
1916
|
+
/**
|
|
1917
|
+
* Acilir denetimin adinda kullanilan sozcuk — cevrilebilir olsun diye girdi.
|
|
1918
|
+
* "Keycloak alt maddeleri" gibi bir ad uretiyor; yalniz ikon tasiyan bir
|
|
1919
|
+
* dugme ekran okuyucu icin adsizdir.
|
|
1920
|
+
*/
|
|
1921
|
+
this.subMenuLabel = 'alt maddeleri';
|
|
1922
|
+
this.closedGroups = new Set();
|
|
1923
|
+
this.closedParents = new Set();
|
|
1924
|
+
/** Sozlesmedeki `collapsed` ipucu bir kez uygulanir; sonrasi kullanicinin. */
|
|
1925
|
+
this.seededParents = false;
|
|
1926
|
+
/* -- Ray kipi: ucan alt menu ------------------------------------- */
|
|
1927
|
+
this.host = inject(ElementRef);
|
|
1928
|
+
/** Acik ucan menunun ust maddesi - kapaliyken `null`. */
|
|
1929
|
+
this.flyoutItem = null;
|
|
1930
|
+
this.flyoutTop = 0;
|
|
1931
|
+
this.flyoutLeft = 0;
|
|
1449
1932
|
}
|
|
1450
1933
|
/** Yetkisiz maddeler hic render edilmez. */
|
|
1451
1934
|
get visibleItems() {
|
|
@@ -1464,22 +1947,34 @@ class VpSidebarComponent {
|
|
|
1464
1947
|
return true;
|
|
1465
1948
|
});
|
|
1466
1949
|
}
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1950
|
+
seedCollapsed() {
|
|
1951
|
+
if (this.seededParents)
|
|
1952
|
+
return;
|
|
1953
|
+
this.seededParents = true;
|
|
1954
|
+
for (const item of this.items ?? []) {
|
|
1955
|
+
if (item.collapsed && item.children?.length)
|
|
1956
|
+
this.closedParents.add(item.code);
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1959
|
+
isGroupOpen(name) {
|
|
1960
|
+
return !this.closedGroups.has(name);
|
|
1961
|
+
}
|
|
1962
|
+
toggleGroup(name) {
|
|
1963
|
+
if (this.closedGroups.has(name))
|
|
1964
|
+
this.closedGroups.delete(name);
|
|
1965
|
+
else
|
|
1966
|
+
this.closedGroups.add(name);
|
|
1967
|
+
}
|
|
1968
|
+
isParentOpen(item) {
|
|
1969
|
+
this.seedCollapsed();
|
|
1970
|
+
return !this.closedParents.has(item.code);
|
|
1971
|
+
}
|
|
1972
|
+
toggleParent(item) {
|
|
1973
|
+
if (this.closedParents.has(item.code))
|
|
1974
|
+
this.closedParents.delete(item.code);
|
|
1975
|
+
else
|
|
1976
|
+
this.closedParents.add(item.code);
|
|
1977
|
+
}
|
|
1483
1978
|
childrenOf(item) {
|
|
1484
1979
|
return (item.children ?? []).filter((child) => !child.hidden);
|
|
1485
1980
|
}
|
|
@@ -1513,18 +2008,100 @@ class VpSidebarComponent {
|
|
|
1513
2008
|
hasBadge(item) {
|
|
1514
2009
|
return item.badge !== undefined && item.badge !== null;
|
|
1515
2010
|
}
|
|
1516
|
-
|
|
1517
|
-
|
|
2011
|
+
/**
|
|
2012
|
+
* Rayda grup tiklaninca ucan menu acilir/kapanir.
|
|
2013
|
+
*
|
|
2014
|
+
* Olculdu: onceki halde alt kalemler zaten gizli oldugu icin tiklama
|
|
2015
|
+
* EKRANDA hicbir sey yapmiyordu. 64px'e alt kalem sigmaz; rayi gecici
|
|
2016
|
+
* genisletmek ise tiklanan yeri kaydirir.
|
|
2017
|
+
*/
|
|
2018
|
+
toggleFlyout(item, event) {
|
|
2019
|
+
if (this.flyoutItem?.code === item.code) {
|
|
2020
|
+
this.closeFlyout();
|
|
2021
|
+
return;
|
|
2022
|
+
}
|
|
2023
|
+
this.flyoutItem = item;
|
|
2024
|
+
this.position(event.currentTarget, this.childrenOf(item).length);
|
|
2025
|
+
/*
|
|
2026
|
+
* Odak menunun ICINE giriyor: menuyu acip icine giremeyen bir klavye
|
|
2027
|
+
* kullanicisi icin menu acilmamis sayilir. Bir sonraki mikro-gorevde,
|
|
2028
|
+
* cunku katman bu satirda henuz cizilmedi.
|
|
2029
|
+
*/
|
|
2030
|
+
queueMicrotask(() => {
|
|
2031
|
+
this.host.nativeElement
|
|
2032
|
+
.querySelector('[data-vp-flyout] a, [data-vp-flyout] [role="menuitem"]')
|
|
2033
|
+
?.focus();
|
|
2034
|
+
});
|
|
2035
|
+
}
|
|
2036
|
+
closeFlyout() {
|
|
2037
|
+
this.flyoutItem = null;
|
|
2038
|
+
}
|
|
2039
|
+
/**
|
|
2040
|
+
* Konum tiklanan dugmenin dikdortgeninden; gorunum alanina sikistiriliyor.
|
|
2041
|
+
* Alttaki bir kalem tiklandiginda menu ekranin altindan tasiyordu.
|
|
2042
|
+
*/
|
|
2043
|
+
position(anchor, childCount) {
|
|
2044
|
+
if (!anchor?.getBoundingClientRect)
|
|
2045
|
+
return;
|
|
2046
|
+
const rect = anchor.getBoundingClientRect();
|
|
2047
|
+
const width = 224;
|
|
2048
|
+
const height = 44 * (childCount + 1) + 16;
|
|
2049
|
+
const vw = window.innerWidth || 1024;
|
|
2050
|
+
const vh = window.innerHeight || 768;
|
|
2051
|
+
this.flyoutLeft = Math.max(8, Math.min(rect.right + 8, vw - width - 8));
|
|
2052
|
+
this.flyoutTop = Math.max(8, Math.min(rect.top, vh - height - 8));
|
|
2053
|
+
}
|
|
2054
|
+
/** Esc kapatiyor - acilan her katmanin geri cikisi olmali. */
|
|
2055
|
+
onEscape() {
|
|
2056
|
+
this.closeFlyout();
|
|
2057
|
+
}
|
|
2058
|
+
/**
|
|
2059
|
+
* Disariya tiklamak kapatiyor. `pointerdown` bilerek: `click` kullanilsa
|
|
2060
|
+
* menuyu acan tiklamanin kendisi belgeye kadar kabarip menuyu ayni anda
|
|
2061
|
+
* kapatirdi.
|
|
2062
|
+
*/
|
|
2063
|
+
onPointerDown(event) {
|
|
2064
|
+
const target = event.target;
|
|
2065
|
+
if (target && this.host.nativeElement.contains(target))
|
|
2066
|
+
return;
|
|
2067
|
+
this.closeFlyout();
|
|
2068
|
+
}
|
|
2069
|
+
/** Ray kipinden cikinca acik menu kapaniyor: genis kipte cocuklar akista. */
|
|
2070
|
+
ngOnChanges(changes) {
|
|
2071
|
+
if (changes['collapsed'] && !this.collapsed)
|
|
2072
|
+
this.closeFlyout();
|
|
2073
|
+
}
|
|
2074
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2075
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpSidebarComponent, isStandalone: true, selector: "vp-sidebar", inputs: { items: "items", collapsed: "collapsed", navLabel: "navLabel", badgeLabel: "badgeLabel", subMenuLabel: "subMenuLabel" }, host: { listeners: { "document:keydown.escape": "onEscape()", "document:pointerdown": "onPointerDown($event)" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
1518
2076
|
<nav class="vp-sidebar" [attr.aria-label]="navLabel" [attr.data-collapsed]="collapsed || null">
|
|
1519
|
-
@for (group of groups; track group.name) {
|
|
2077
|
+
@for (group of groups; track group.name; let firstGroup = $first) {
|
|
2078
|
+
<!--
|
|
2079
|
+
Ray ayraci. Daraltilmis kipte grup BASLIGI okunmaz, ama kumenin
|
|
2080
|
+
nerede bittigi hala gorulebilir olmali: on ikon tek sutun olunca
|
|
2081
|
+
hangisinin ne oldugu yalnizca ikondan okunuyor.
|
|
2082
|
+
|
|
2083
|
+
Ilk kumenin ustunde ayrac YOK: bolecek bir sey yok.
|
|
2084
|
+
-->
|
|
2085
|
+
@if (collapsed && !firstGroup) {
|
|
2086
|
+
<hr class="vp-sidebar__rail-sep" data-vp-rail-separator aria-hidden="true" />
|
|
2087
|
+
}
|
|
1520
2088
|
@if (group.name) {
|
|
1521
2089
|
<!--
|
|
1522
2090
|
Grup basligi. Daraltilmis kipte GIZLENIYOR ama ayirici kaliyor:
|
|
1523
2091
|
ikon-rayinda metin okunmaz, ancak gruplarin nerede bittigi hala
|
|
1524
2092
|
gorulebilir olmali.
|
|
1525
2093
|
-->
|
|
1526
|
-
<
|
|
2094
|
+
<button
|
|
2095
|
+
type="button"
|
|
2096
|
+
class="vp-sidebar__group"
|
|
2097
|
+
[attr.data-vp-menu-group]="group.name"
|
|
2098
|
+
[attr.aria-expanded]="isGroupOpen(group.name)"
|
|
2099
|
+
(click)="toggleGroup(group.name)">
|
|
2100
|
+
<span class="vp-sidebar__group-label">{{ group.name }}</span>
|
|
2101
|
+
<i class="vp-sidebar__chevron" aria-hidden="true"></i>
|
|
2102
|
+
</button>
|
|
1527
2103
|
}
|
|
2104
|
+
@if (isGroupOpen(group.name)) {
|
|
1528
2105
|
<ul class="vp-sidebar__list" [attr.aria-label]="group.name || null">
|
|
1529
2106
|
@for (item of group.items; track item.code) {
|
|
1530
2107
|
<li class="vp-sidebar__item">
|
|
@@ -1534,25 +2111,83 @@ class VpSidebarComponent {
|
|
|
1534
2111
|
DEGIL: tiklayinca hicbir yere gitmeyen bir baglanti bozuk bir
|
|
1535
2112
|
kontroldur. Yol varsa baglanti olarak ciziliyor.
|
|
1536
2113
|
-->
|
|
1537
|
-
@if (
|
|
1538
|
-
|
|
1539
|
-
|
|
2114
|
+
@if (collapsed) {
|
|
2115
|
+
<!--
|
|
2116
|
+
Rayda ust madde bir DUGME: tiklayinca ucan menu aciliyor.
|
|
2117
|
+
Genis kipte ayni oge bir BASLIK, cunku cocuklar zaten
|
|
2118
|
+
akista goruluyor ve tiklanacak bir sey yok. Iki kipte iki
|
|
2119
|
+
farkli oge tipi bilerek: kontrolun sekli yaptigi isi
|
|
2120
|
+
soylemeli.
|
|
2121
|
+
-->
|
|
2122
|
+
<button
|
|
2123
|
+
type="button"
|
|
2124
|
+
class="vp-sidebar__link vp-sidebar__link--parent vp-sidebar__link--rail"
|
|
1540
2125
|
[attr.data-vp-menu-parent]="item.code"
|
|
1541
|
-
[attr.
|
|
1542
|
-
|
|
2126
|
+
[attr.title]="item.titleKey"
|
|
2127
|
+
aria-haspopup="menu"
|
|
2128
|
+
[attr.aria-expanded]="flyoutItem?.code === item.code"
|
|
2129
|
+
(click)="toggleFlyout(item, $event)">
|
|
1543
2130
|
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
1544
2131
|
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
1545
|
-
</
|
|
2132
|
+
</button>
|
|
2133
|
+
} @else if (item.path) {
|
|
2134
|
+
<!--
|
|
2135
|
+
Yol tasiyan ust madde BAGLANTI kaliyor; acmak icin yanindaki
|
|
2136
|
+
dugme. Tek tiklama hem gidemez hem acamaz.
|
|
2137
|
+
-->
|
|
2138
|
+
<span class="vp-sidebar__parent-row">
|
|
2139
|
+
<a
|
|
2140
|
+
class="vp-sidebar__link vp-sidebar__link--parent"
|
|
2141
|
+
[attr.data-vp-menu-parent]="item.code"
|
|
2142
|
+
[attr.href]="item.path"
|
|
2143
|
+
[attr.title]="item.titleKey">
|
|
2144
|
+
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
2145
|
+
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
2146
|
+
</a>
|
|
2147
|
+
<button
|
|
2148
|
+
type="button"
|
|
2149
|
+
class="vp-sidebar__disclosure"
|
|
2150
|
+
[attr.data-vp-menu-toggle]="item.code"
|
|
2151
|
+
[attr.aria-label]="item.titleKey + ' ' + subMenuLabel"
|
|
2152
|
+
[attr.aria-expanded]="isParentOpen(item)"
|
|
2153
|
+
(click)="toggleParent(item)">
|
|
2154
|
+
<i class="vp-sidebar__chevron" aria-hidden="true"></i>
|
|
2155
|
+
</button>
|
|
2156
|
+
</span>
|
|
1546
2157
|
} @else {
|
|
1547
|
-
|
|
2158
|
+
<!--
|
|
2159
|
+
Genis kipte ust madde bir ACILIR dugme.
|
|
2160
|
+
Cocugu olan her sey acilir kapanir; yonetim panelinde
|
|
2161
|
+
Tanımlar 88 tablo tasiyor ve hepsi acik gelince menu
|
|
2162
|
+
taranabilir olmaktan cikip listeye donuyordu.
|
|
2163
|
+
|
|
2164
|
+
⚠️ Ust maddenin path alani geniz kipte KULLANILMIYOR: ayni
|
|
2165
|
+
tiklama hem gidemez hem acamaz. Sozlesmede zaten yolsuz
|
|
2166
|
+
(buildVpMenu ust maddeye yol vermiyor) ve dosyanin kendi
|
|
2167
|
+
yorumu bunu soyluyor: alt grup bir baslik, gidilecek bir yer
|
|
2168
|
+
degil.
|
|
2169
|
+
-->
|
|
2170
|
+
<button
|
|
2171
|
+
type="button"
|
|
1548
2172
|
class="vp-sidebar__link vp-sidebar__link--parent"
|
|
1549
2173
|
[attr.data-vp-menu-parent]="item.code"
|
|
1550
|
-
[attr.title]="item.titleKey"
|
|
2174
|
+
[attr.title]="item.titleKey"
|
|
2175
|
+
[attr.aria-expanded]="isParentOpen(item)"
|
|
2176
|
+
(click)="toggleParent(item)">
|
|
1551
2177
|
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
1552
2178
|
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
1553
|
-
|
|
2179
|
+
<i class="vp-sidebar__chevron" aria-hidden="true"></i>
|
|
2180
|
+
</button>
|
|
1554
2181
|
}
|
|
1555
2182
|
|
|
2183
|
+
<!--
|
|
2184
|
+
Rayda cocuk listesi CIZILMIYOR. Onceki halde DOM'da
|
|
2185
|
+
duruyordu ve her cocuk 44px'lik bos bir satir oluyordu:
|
|
2186
|
+
etiket gizli, cocuklarin cogunda ikon yok. Kullanici icin
|
|
2187
|
+
anlamsiz bosluk, ekran okuyucu icin adsiz baglanti. Yerini
|
|
2188
|
+
ucan menu aliyor.
|
|
2189
|
+
-->
|
|
2190
|
+
@if (!collapsed && isParentOpen(item)) {
|
|
1556
2191
|
<ul class="vp-sidebar__list vp-sidebar__list--child" [attr.aria-label]="item.titleKey">
|
|
1557
2192
|
@for (child of childrenOf(item); track child.code) {
|
|
1558
2193
|
<li class="vp-sidebar__item">
|
|
@@ -1587,6 +2222,7 @@ class VpSidebarComponent {
|
|
|
1587
2222
|
</li>
|
|
1588
2223
|
}
|
|
1589
2224
|
</ul>
|
|
2225
|
+
}
|
|
1590
2226
|
} @else if (item.disabledReason) {
|
|
1591
2227
|
<span
|
|
1592
2228
|
class="vp-sidebar__link vp-sidebar__link--disabled"
|
|
@@ -1619,22 +2255,84 @@ class VpSidebarComponent {
|
|
|
1619
2255
|
}
|
|
1620
2256
|
</ul>
|
|
1621
2257
|
}
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
@if (flyoutItem) {
|
|
2261
|
+
<!--
|
|
2262
|
+
Ucan menu sabit konumlu (position: fixed): kenar cubugu kendi
|
|
2263
|
+
kaydirma kutusu ve mutlak konumlu bir katman kirpilirdi. Konum tiklanan dugmenin
|
|
2264
|
+
dikdortgeninden hesaplaniyor ve gorunum alanina sikistiriliyor -
|
|
2265
|
+
en alttaki kalem tiklandiginda menu ekranin altindan tasiyordu.
|
|
2266
|
+
-->
|
|
2267
|
+
<div
|
|
2268
|
+
class="vp-sidebar__flyout"
|
|
2269
|
+
data-vp-flyout
|
|
2270
|
+
role="menu"
|
|
2271
|
+
[attr.aria-label]="flyoutItem.titleKey"
|
|
2272
|
+
[style.top.px]="flyoutTop"
|
|
2273
|
+
[style.left.px]="flyoutLeft">
|
|
2274
|
+
<p class="vp-sidebar__flyout-title">{{ flyoutItem.titleKey }}</p>
|
|
2275
|
+
@for (child of childrenOf(flyoutItem); track child.code) {
|
|
2276
|
+
@if (child.disabledReason) {
|
|
2277
|
+
<span
|
|
2278
|
+
class="vp-sidebar__flyout-link vp-sidebar__link--disabled"
|
|
2279
|
+
[attr.data-vp-flyout-item]="child.code"
|
|
2280
|
+
role="menuitem"
|
|
2281
|
+
aria-disabled="true">
|
|
2282
|
+
{{ child.titleKey }}
|
|
2283
|
+
<small class="vp-sidebar__flyout-reason">{{ child.disabledReason }}</small>
|
|
2284
|
+
</span>
|
|
2285
|
+
} @else {
|
|
2286
|
+
<a
|
|
2287
|
+
class="vp-sidebar__flyout-link"
|
|
2288
|
+
[attr.data-vp-flyout-item]="child.code"
|
|
2289
|
+
role="menuitem"
|
|
2290
|
+
[attr.href]="child.path"
|
|
2291
|
+
(click)="closeFlyout()">
|
|
2292
|
+
{{ child.titleKey }}
|
|
2293
|
+
@if (hasBadge(child)) {
|
|
2294
|
+
<span class="vp-sidebar__badge">{{ child.badge }}</span>
|
|
2295
|
+
}
|
|
2296
|
+
</a>
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
</div>
|
|
2300
|
+
}
|
|
1622
2301
|
</nav>
|
|
1623
|
-
`, isInline: true, styles: [".vp-sidebar__group{margin:var(--vp-space-4, 1rem) 0 var(--vp-space-1, .25rem);padding:
|
|
2302
|
+
`, isInline: true, styles: [".vp-sidebar__group{display:flex;align-items:center;gap:var(--vp-space-2, .5rem);width:100%;min-height:var(--vp-space-6, 1.5rem);margin:var(--vp-space-4, 1rem) 0 var(--vp-space-1, .25rem);padding:var(--vp-space-1, .25rem) var(--vp-space-3, .75rem);border:0;border-radius:var(--vp-radius-sm, .25rem);background:none;font:inherit;font-size:var(--vp-font-size-xs, .75rem);font-weight:600;letter-spacing:.06em;text-transform:uppercase;text-align:left;color:var(--vp-text-muted, #8b949e);cursor:pointer}.vp-sidebar__group:hover{color:var(--vp-text-secondary, #c9d1d9)}.vp-sidebar__group-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vp-sidebar__chevron{flex:none;width:.5rem;height:.5rem;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);opacity:.55}[aria-expanded=false]>.vp-sidebar__chevron{transform:rotate(-45deg)}.vp-sidebar__parent-row{display:flex;align-items:center;gap:var(--vp-space-1, .25rem)}.vp-sidebar__parent-row>.vp-sidebar__link{flex:1 1 auto;min-width:0}.vp-sidebar__disclosure{display:grid;place-items:center;flex:none;width:var(--vp-space-6, 1.5rem);height:var(--vp-space-6, 1.5rem);padding:0;border:0;border-radius:var(--vp-radius-sm, .25rem);background:none;color:inherit;cursor:pointer}button.vp-sidebar__link--parent{width:100%;border:0;background:none;font:inherit;text-align:left;cursor:pointer}.vp-sidebar__link--parent{color:var(--vp-text-secondary);cursor:default}a.vp-sidebar__link--parent{cursor:pointer}.vp-sidebar__list--child{margin:0;padding-left:var(--vp-space-4, 1rem);list-style:none}.vp-sidebar[data-collapsed] .vp-sidebar__list--child{padding-left:0}.vp-sidebar__group:first-child{margin-top:0}.vp-sidebar[data-collapsed] .vp-sidebar__group{display:none}.vp-sidebar__rail-sep{height:1px;margin:var(--vp-space-3, .75rem) var(--vp-space-2, .5rem);border:0;background:var(--vp-border, #30363d)}:host{display:block}.vp-sidebar{padding:var(--vp-space-3)}.vp-sidebar__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--vp-space-1)}.vp-sidebar__item{margin:0}.vp-sidebar__link{display:flex;align-items:center;gap:var(--vp-space-3);min-height:var(--vp-control-height);padding:var(--vp-space-2) var(--vp-space-3);border-radius:var(--vp-radius-md);color:var(--vp-text-secondary);text-decoration:none;font-size:var(--vp-text-base)}.vp-sidebar__link:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-sidebar__link:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-sidebar__link--disabled{color:var(--vp-text-muted);cursor:not-allowed}.vp-sidebar__link--disabled:hover{background:transparent;color:var(--vp-text-muted)}.vp-sidebar__reason{display:block;padding:0 var(--vp-space-3) var(--vp-space-2) calc(var(--vp-space-3) + 18px + var(--vp-space-3));color:var(--vp-text-muted);font-size:var(--vp-text-xs);line-height:var(--vp-leading-tight)}.vp-sidebar__icon{flex:0 0 auto;width:18px;font-size:18px;line-height:1}.vp-sidebar__label{flex:1;min-width:0}.vp-sidebar__badge{flex:0 0 auto;min-width:1.5rem;padding:0 var(--vp-space-1);border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken);color:var(--vp-text-secondary);font-size:var(--vp-text-xs);text-align:center;font-variant-numeric:tabular-nums}button.vp-sidebar__link{width:100%;border:0;background:transparent;font:inherit;text-align:start;cursor:pointer}.vp-sidebar__flyout{position:fixed;z-index:40;min-width:13rem;max-width:17rem;padding:var(--vp-space-2);border:1px solid var(--vp-border);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised, var(--vp-surface));box-shadow:var(--vp-shadow-lg)}.vp-sidebar__flyout-title{margin:0 0 var(--vp-space-1);padding:0 var(--vp-space-2);font-size:var(--vp-text-xs);font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--vp-text-muted)}.vp-sidebar__flyout-link{display:flex;flex-direction:column;justify-content:center;min-height:var(--vp-control-height);padding:var(--vp-space-2);border-radius:var(--vp-radius-sm);color:var(--vp-text-secondary);text-decoration:none;font-size:var(--vp-text-base)}.vp-sidebar__flyout-link:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-sidebar__flyout-link:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-sidebar__flyout-reason{color:var(--vp-text-muted);font-size:var(--vp-text-xs);line-height:var(--vp-leading-tight)}.vp-sidebar[data-collapsed] .vp-sidebar__link .vp-sidebar__label,.vp-sidebar[data-collapsed] .vp-sidebar__link .vp-sidebar__badge,.vp-sidebar[data-collapsed] .vp-sidebar__reason{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1624
2303
|
}
|
|
1625
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSidebarComponent, decorators: [{
|
|
1626
2305
|
type: Component,
|
|
1627
2306
|
args: [{ selector: 'vp-sidebar', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1628
2307
|
<nav class="vp-sidebar" [attr.aria-label]="navLabel" [attr.data-collapsed]="collapsed || null">
|
|
1629
|
-
@for (group of groups; track group.name) {
|
|
2308
|
+
@for (group of groups; track group.name; let firstGroup = $first) {
|
|
2309
|
+
<!--
|
|
2310
|
+
Ray ayraci. Daraltilmis kipte grup BASLIGI okunmaz, ama kumenin
|
|
2311
|
+
nerede bittigi hala gorulebilir olmali: on ikon tek sutun olunca
|
|
2312
|
+
hangisinin ne oldugu yalnizca ikondan okunuyor.
|
|
2313
|
+
|
|
2314
|
+
Ilk kumenin ustunde ayrac YOK: bolecek bir sey yok.
|
|
2315
|
+
-->
|
|
2316
|
+
@if (collapsed && !firstGroup) {
|
|
2317
|
+
<hr class="vp-sidebar__rail-sep" data-vp-rail-separator aria-hidden="true" />
|
|
2318
|
+
}
|
|
1630
2319
|
@if (group.name) {
|
|
1631
2320
|
<!--
|
|
1632
2321
|
Grup basligi. Daraltilmis kipte GIZLENIYOR ama ayirici kaliyor:
|
|
1633
2322
|
ikon-rayinda metin okunmaz, ancak gruplarin nerede bittigi hala
|
|
1634
2323
|
gorulebilir olmali.
|
|
1635
2324
|
-->
|
|
1636
|
-
<
|
|
2325
|
+
<button
|
|
2326
|
+
type="button"
|
|
2327
|
+
class="vp-sidebar__group"
|
|
2328
|
+
[attr.data-vp-menu-group]="group.name"
|
|
2329
|
+
[attr.aria-expanded]="isGroupOpen(group.name)"
|
|
2330
|
+
(click)="toggleGroup(group.name)">
|
|
2331
|
+
<span class="vp-sidebar__group-label">{{ group.name }}</span>
|
|
2332
|
+
<i class="vp-sidebar__chevron" aria-hidden="true"></i>
|
|
2333
|
+
</button>
|
|
1637
2334
|
}
|
|
2335
|
+
@if (isGroupOpen(group.name)) {
|
|
1638
2336
|
<ul class="vp-sidebar__list" [attr.aria-label]="group.name || null">
|
|
1639
2337
|
@for (item of group.items; track item.code) {
|
|
1640
2338
|
<li class="vp-sidebar__item">
|
|
@@ -1644,25 +2342,83 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImpo
|
|
|
1644
2342
|
DEGIL: tiklayinca hicbir yere gitmeyen bir baglanti bozuk bir
|
|
1645
2343
|
kontroldur. Yol varsa baglanti olarak ciziliyor.
|
|
1646
2344
|
-->
|
|
1647
|
-
@if (
|
|
1648
|
-
|
|
1649
|
-
|
|
2345
|
+
@if (collapsed) {
|
|
2346
|
+
<!--
|
|
2347
|
+
Rayda ust madde bir DUGME: tiklayinca ucan menu aciliyor.
|
|
2348
|
+
Genis kipte ayni oge bir BASLIK, cunku cocuklar zaten
|
|
2349
|
+
akista goruluyor ve tiklanacak bir sey yok. Iki kipte iki
|
|
2350
|
+
farkli oge tipi bilerek: kontrolun sekli yaptigi isi
|
|
2351
|
+
soylemeli.
|
|
2352
|
+
-->
|
|
2353
|
+
<button
|
|
2354
|
+
type="button"
|
|
2355
|
+
class="vp-sidebar__link vp-sidebar__link--parent vp-sidebar__link--rail"
|
|
1650
2356
|
[attr.data-vp-menu-parent]="item.code"
|
|
1651
|
-
[attr.
|
|
1652
|
-
|
|
2357
|
+
[attr.title]="item.titleKey"
|
|
2358
|
+
aria-haspopup="menu"
|
|
2359
|
+
[attr.aria-expanded]="flyoutItem?.code === item.code"
|
|
2360
|
+
(click)="toggleFlyout(item, $event)">
|
|
1653
2361
|
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
1654
2362
|
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
1655
|
-
</
|
|
2363
|
+
</button>
|
|
2364
|
+
} @else if (item.path) {
|
|
2365
|
+
<!--
|
|
2366
|
+
Yol tasiyan ust madde BAGLANTI kaliyor; acmak icin yanindaki
|
|
2367
|
+
dugme. Tek tiklama hem gidemez hem acamaz.
|
|
2368
|
+
-->
|
|
2369
|
+
<span class="vp-sidebar__parent-row">
|
|
2370
|
+
<a
|
|
2371
|
+
class="vp-sidebar__link vp-sidebar__link--parent"
|
|
2372
|
+
[attr.data-vp-menu-parent]="item.code"
|
|
2373
|
+
[attr.href]="item.path"
|
|
2374
|
+
[attr.title]="item.titleKey">
|
|
2375
|
+
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
2376
|
+
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
2377
|
+
</a>
|
|
2378
|
+
<button
|
|
2379
|
+
type="button"
|
|
2380
|
+
class="vp-sidebar__disclosure"
|
|
2381
|
+
[attr.data-vp-menu-toggle]="item.code"
|
|
2382
|
+
[attr.aria-label]="item.titleKey + ' ' + subMenuLabel"
|
|
2383
|
+
[attr.aria-expanded]="isParentOpen(item)"
|
|
2384
|
+
(click)="toggleParent(item)">
|
|
2385
|
+
<i class="vp-sidebar__chevron" aria-hidden="true"></i>
|
|
2386
|
+
</button>
|
|
2387
|
+
</span>
|
|
1656
2388
|
} @else {
|
|
1657
|
-
|
|
2389
|
+
<!--
|
|
2390
|
+
Genis kipte ust madde bir ACILIR dugme.
|
|
2391
|
+
Cocugu olan her sey acilir kapanir; yonetim panelinde
|
|
2392
|
+
Tanımlar 88 tablo tasiyor ve hepsi acik gelince menu
|
|
2393
|
+
taranabilir olmaktan cikip listeye donuyordu.
|
|
2394
|
+
|
|
2395
|
+
⚠️ Ust maddenin path alani geniz kipte KULLANILMIYOR: ayni
|
|
2396
|
+
tiklama hem gidemez hem acamaz. Sozlesmede zaten yolsuz
|
|
2397
|
+
(buildVpMenu ust maddeye yol vermiyor) ve dosyanin kendi
|
|
2398
|
+
yorumu bunu soyluyor: alt grup bir baslik, gidilecek bir yer
|
|
2399
|
+
degil.
|
|
2400
|
+
-->
|
|
2401
|
+
<button
|
|
2402
|
+
type="button"
|
|
1658
2403
|
class="vp-sidebar__link vp-sidebar__link--parent"
|
|
1659
2404
|
[attr.data-vp-menu-parent]="item.code"
|
|
1660
|
-
[attr.title]="item.titleKey"
|
|
2405
|
+
[attr.title]="item.titleKey"
|
|
2406
|
+
[attr.aria-expanded]="isParentOpen(item)"
|
|
2407
|
+
(click)="toggleParent(item)">
|
|
1661
2408
|
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
1662
2409
|
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
1663
|
-
|
|
2410
|
+
<i class="vp-sidebar__chevron" aria-hidden="true"></i>
|
|
2411
|
+
</button>
|
|
1664
2412
|
}
|
|
1665
2413
|
|
|
2414
|
+
<!--
|
|
2415
|
+
Rayda cocuk listesi CIZILMIYOR. Onceki halde DOM'da
|
|
2416
|
+
duruyordu ve her cocuk 44px'lik bos bir satir oluyordu:
|
|
2417
|
+
etiket gizli, cocuklarin cogunda ikon yok. Kullanici icin
|
|
2418
|
+
anlamsiz bosluk, ekran okuyucu icin adsiz baglanti. Yerini
|
|
2419
|
+
ucan menu aliyor.
|
|
2420
|
+
-->
|
|
2421
|
+
@if (!collapsed && isParentOpen(item)) {
|
|
1666
2422
|
<ul class="vp-sidebar__list vp-sidebar__list--child" [attr.aria-label]="item.titleKey">
|
|
1667
2423
|
@for (child of childrenOf(item); track child.code) {
|
|
1668
2424
|
<li class="vp-sidebar__item">
|
|
@@ -1697,6 +2453,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImpo
|
|
|
1697
2453
|
</li>
|
|
1698
2454
|
}
|
|
1699
2455
|
</ul>
|
|
2456
|
+
}
|
|
1700
2457
|
} @else if (item.disabledReason) {
|
|
1701
2458
|
<span
|
|
1702
2459
|
class="vp-sidebar__link vp-sidebar__link--disabled"
|
|
@@ -1729,8 +2486,51 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImpo
|
|
|
1729
2486
|
}
|
|
1730
2487
|
</ul>
|
|
1731
2488
|
}
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
@if (flyoutItem) {
|
|
2492
|
+
<!--
|
|
2493
|
+
Ucan menu sabit konumlu (position: fixed): kenar cubugu kendi
|
|
2494
|
+
kaydirma kutusu ve mutlak konumlu bir katman kirpilirdi. Konum tiklanan dugmenin
|
|
2495
|
+
dikdortgeninden hesaplaniyor ve gorunum alanina sikistiriliyor -
|
|
2496
|
+
en alttaki kalem tiklandiginda menu ekranin altindan tasiyordu.
|
|
2497
|
+
-->
|
|
2498
|
+
<div
|
|
2499
|
+
class="vp-sidebar__flyout"
|
|
2500
|
+
data-vp-flyout
|
|
2501
|
+
role="menu"
|
|
2502
|
+
[attr.aria-label]="flyoutItem.titleKey"
|
|
2503
|
+
[style.top.px]="flyoutTop"
|
|
2504
|
+
[style.left.px]="flyoutLeft">
|
|
2505
|
+
<p class="vp-sidebar__flyout-title">{{ flyoutItem.titleKey }}</p>
|
|
2506
|
+
@for (child of childrenOf(flyoutItem); track child.code) {
|
|
2507
|
+
@if (child.disabledReason) {
|
|
2508
|
+
<span
|
|
2509
|
+
class="vp-sidebar__flyout-link vp-sidebar__link--disabled"
|
|
2510
|
+
[attr.data-vp-flyout-item]="child.code"
|
|
2511
|
+
role="menuitem"
|
|
2512
|
+
aria-disabled="true">
|
|
2513
|
+
{{ child.titleKey }}
|
|
2514
|
+
<small class="vp-sidebar__flyout-reason">{{ child.disabledReason }}</small>
|
|
2515
|
+
</span>
|
|
2516
|
+
} @else {
|
|
2517
|
+
<a
|
|
2518
|
+
class="vp-sidebar__flyout-link"
|
|
2519
|
+
[attr.data-vp-flyout-item]="child.code"
|
|
2520
|
+
role="menuitem"
|
|
2521
|
+
[attr.href]="child.path"
|
|
2522
|
+
(click)="closeFlyout()">
|
|
2523
|
+
{{ child.titleKey }}
|
|
2524
|
+
@if (hasBadge(child)) {
|
|
2525
|
+
<span class="vp-sidebar__badge">{{ child.badge }}</span>
|
|
2526
|
+
}
|
|
2527
|
+
</a>
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
</div>
|
|
2531
|
+
}
|
|
1732
2532
|
</nav>
|
|
1733
|
-
`, styles: [".vp-sidebar__group{margin:var(--vp-space-4, 1rem) 0 var(--vp-space-1, .25rem);padding:
|
|
2533
|
+
`, styles: [".vp-sidebar__group{display:flex;align-items:center;gap:var(--vp-space-2, .5rem);width:100%;min-height:var(--vp-space-6, 1.5rem);margin:var(--vp-space-4, 1rem) 0 var(--vp-space-1, .25rem);padding:var(--vp-space-1, .25rem) var(--vp-space-3, .75rem);border:0;border-radius:var(--vp-radius-sm, .25rem);background:none;font:inherit;font-size:var(--vp-font-size-xs, .75rem);font-weight:600;letter-spacing:.06em;text-transform:uppercase;text-align:left;color:var(--vp-text-muted, #8b949e);cursor:pointer}.vp-sidebar__group:hover{color:var(--vp-text-secondary, #c9d1d9)}.vp-sidebar__group-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vp-sidebar__chevron{flex:none;width:.5rem;height:.5rem;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);opacity:.55}[aria-expanded=false]>.vp-sidebar__chevron{transform:rotate(-45deg)}.vp-sidebar__parent-row{display:flex;align-items:center;gap:var(--vp-space-1, .25rem)}.vp-sidebar__parent-row>.vp-sidebar__link{flex:1 1 auto;min-width:0}.vp-sidebar__disclosure{display:grid;place-items:center;flex:none;width:var(--vp-space-6, 1.5rem);height:var(--vp-space-6, 1.5rem);padding:0;border:0;border-radius:var(--vp-radius-sm, .25rem);background:none;color:inherit;cursor:pointer}button.vp-sidebar__link--parent{width:100%;border:0;background:none;font:inherit;text-align:left;cursor:pointer}.vp-sidebar__link--parent{color:var(--vp-text-secondary);cursor:default}a.vp-sidebar__link--parent{cursor:pointer}.vp-sidebar__list--child{margin:0;padding-left:var(--vp-space-4, 1rem);list-style:none}.vp-sidebar[data-collapsed] .vp-sidebar__list--child{padding-left:0}.vp-sidebar__group:first-child{margin-top:0}.vp-sidebar[data-collapsed] .vp-sidebar__group{display:none}.vp-sidebar__rail-sep{height:1px;margin:var(--vp-space-3, .75rem) var(--vp-space-2, .5rem);border:0;background:var(--vp-border, #30363d)}:host{display:block}.vp-sidebar{padding:var(--vp-space-3)}.vp-sidebar__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--vp-space-1)}.vp-sidebar__item{margin:0}.vp-sidebar__link{display:flex;align-items:center;gap:var(--vp-space-3);min-height:var(--vp-control-height);padding:var(--vp-space-2) var(--vp-space-3);border-radius:var(--vp-radius-md);color:var(--vp-text-secondary);text-decoration:none;font-size:var(--vp-text-base)}.vp-sidebar__link:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-sidebar__link:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-sidebar__link--disabled{color:var(--vp-text-muted);cursor:not-allowed}.vp-sidebar__link--disabled:hover{background:transparent;color:var(--vp-text-muted)}.vp-sidebar__reason{display:block;padding:0 var(--vp-space-3) var(--vp-space-2) calc(var(--vp-space-3) + 18px + var(--vp-space-3));color:var(--vp-text-muted);font-size:var(--vp-text-xs);line-height:var(--vp-leading-tight)}.vp-sidebar__icon{flex:0 0 auto;width:18px;font-size:18px;line-height:1}.vp-sidebar__label{flex:1;min-width:0}.vp-sidebar__badge{flex:0 0 auto;min-width:1.5rem;padding:0 var(--vp-space-1);border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken);color:var(--vp-text-secondary);font-size:var(--vp-text-xs);text-align:center;font-variant-numeric:tabular-nums}button.vp-sidebar__link{width:100%;border:0;background:transparent;font:inherit;text-align:start;cursor:pointer}.vp-sidebar__flyout{position:fixed;z-index:40;min-width:13rem;max-width:17rem;padding:var(--vp-space-2);border:1px solid var(--vp-border);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised, var(--vp-surface));box-shadow:var(--vp-shadow-lg)}.vp-sidebar__flyout-title{margin:0 0 var(--vp-space-1);padding:0 var(--vp-space-2);font-size:var(--vp-text-xs);font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--vp-text-muted)}.vp-sidebar__flyout-link{display:flex;flex-direction:column;justify-content:center;min-height:var(--vp-control-height);padding:var(--vp-space-2);border-radius:var(--vp-radius-sm);color:var(--vp-text-secondary);text-decoration:none;font-size:var(--vp-text-base)}.vp-sidebar__flyout-link:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-sidebar__flyout-link:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-sidebar__flyout-reason{color:var(--vp-text-muted);font-size:var(--vp-text-xs);line-height:var(--vp-leading-tight)}.vp-sidebar[data-collapsed] .vp-sidebar__link .vp-sidebar__label,.vp-sidebar[data-collapsed] .vp-sidebar__link .vp-sidebar__badge,.vp-sidebar[data-collapsed] .vp-sidebar__reason{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n"] }]
|
|
1734
2534
|
}], propDecorators: { items: [{
|
|
1735
2535
|
type: Input,
|
|
1736
2536
|
args: [{ required: true }]
|
|
@@ -1740,6 +2540,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImpo
|
|
|
1740
2540
|
type: Input
|
|
1741
2541
|
}], badgeLabel: [{
|
|
1742
2542
|
type: Input
|
|
2543
|
+
}], subMenuLabel: [{
|
|
2544
|
+
type: Input
|
|
2545
|
+
}], onEscape: [{
|
|
2546
|
+
type: HostListener,
|
|
2547
|
+
args: ['document:keydown.escape']
|
|
2548
|
+
}], onPointerDown: [{
|
|
2549
|
+
type: HostListener,
|
|
2550
|
+
args: ['document:pointerdown', ['$event']]
|
|
1743
2551
|
}] } });
|
|
1744
2552
|
|
|
1745
2553
|
/**
|
|
@@ -1784,8 +2592,8 @@ class VpBreadcrumbComponent {
|
|
|
1784
2592
|
return text.length > VpBreadcrumbComponent.MAX_LABEL ? text : null;
|
|
1785
2593
|
}
|
|
1786
2594
|
static { this.MAX_LABEL = 24; }
|
|
1787
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1788
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
2595
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpBreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2596
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpBreadcrumbComponent, isStandalone: true, selector: "vp-breadcrumb", inputs: { trail: "trail", navLabel: "navLabel" }, ngImport: i0, template: `
|
|
1789
2597
|
@if (trail.length > 0) {
|
|
1790
2598
|
<nav class="vp-breadcrumb" [attr.aria-label]="navLabel">
|
|
1791
2599
|
<ol class="vp-breadcrumb__list">
|
|
@@ -1814,7 +2622,7 @@ class VpBreadcrumbComponent {
|
|
|
1814
2622
|
}
|
|
1815
2623
|
`, isInline: true, styles: [":host{display:block}.vp-breadcrumb__list{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:var(--vp-space-1);margin:0 0 var(--vp-space-3);padding:0;font-size:var(--vp-text-sm)}.vp-breadcrumb__item{display:flex;align-items:center;gap:var(--vp-space-1);margin:0}.vp-breadcrumb__link{color:var(--vp-text-muted);text-decoration:none}.vp-breadcrumb__link:hover{color:var(--vp-text-primary);text-decoration:underline}.vp-breadcrumb__link:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset);border-radius:var(--vp-radius-sm)}.vp-breadcrumb__current{color:var(--vp-text-primary);font-weight:var(--vp-weight-medium)}.vp-breadcrumb__sep{color:var(--vp-text-muted)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1816
2624
|
}
|
|
1817
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2625
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpBreadcrumbComponent, decorators: [{
|
|
1818
2626
|
type: Component,
|
|
1819
2627
|
args: [{ selector: 'vp-breadcrumb', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1820
2628
|
@if (trail.length > 0) {
|
|
@@ -1898,8 +2706,8 @@ class VpThemeControlComponent {
|
|
|
1898
2706
|
get ariaLabel() {
|
|
1899
2707
|
return `${this.label} — ${this.labelFor(this.nextMode)} moduna geç`;
|
|
1900
2708
|
}
|
|
1901
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1902
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
2709
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpThemeControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2710
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: VpThemeControlComponent, isStandalone: true, selector: "vp-theme-control", inputs: { mode: "mode", autoLabel: "autoLabel", lightLabel: "lightLabel", darkLabel: "darkLabel" }, outputs: { cycle: "cycle" }, ngImport: i0, template: `
|
|
1903
2711
|
<!--
|
|
1904
2712
|
⚠️ Tek dugme, uc durumlu dongu. Uc ayri dugme daha "acik" gorunurdu ama
|
|
1905
2713
|
ust cubukta uc slot yer kaplar ve tema, kullanicinin gunde bir kez
|
|
@@ -1921,9 +2729,9 @@ class VpThemeControlComponent {
|
|
|
1921
2729
|
tooltipPosition="bottom"
|
|
1922
2730
|
[attr.aria-label]="ariaLabel"
|
|
1923
2731
|
(click)="cycle.emit()"></button>
|
|
1924
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["
|
|
2732
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["ptButtonDirective", "hostName", "text", "plain", "raised", "size", "outlined", "rounded", "iconPos", "loadingIcon", "fluid", "label", "icon", "loading", "buttonProps", "severity"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1925
2733
|
}
|
|
1926
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2734
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpThemeControlComponent, decorators: [{
|
|
1927
2735
|
type: Component,
|
|
1928
2736
|
args: [{
|
|
1929
2737
|
selector: 'vp-theme-control',
|
|
@@ -1994,8 +2802,8 @@ class VpSidebarToggleComponent {
|
|
|
1994
2802
|
this.expandLabel = 'Menüyü genişlet';
|
|
1995
2803
|
this.toggle = new EventEmitter();
|
|
1996
2804
|
}
|
|
1997
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1998
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
2805
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSidebarToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2806
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: VpSidebarToggleComponent, isStandalone: true, selector: "vp-sidebar-toggle", inputs: { collapsed: "collapsed", controls: "controls", collapseLabel: "collapseLabel", expandLabel: "expandLabel" }, outputs: { toggle: "toggle" }, ngImport: i0, template: `
|
|
1999
2807
|
<button
|
|
2000
2808
|
pButton
|
|
2001
2809
|
type="button"
|
|
@@ -2010,9 +2818,9 @@ class VpSidebarToggleComponent {
|
|
|
2010
2818
|
[attr.aria-controls]="controls"
|
|
2011
2819
|
[attr.aria-label]="collapsed ? expandLabel : collapseLabel"
|
|
2012
2820
|
(click)="toggle.emit()"></button>
|
|
2013
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["
|
|
2821
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["ptButtonDirective", "hostName", "text", "plain", "raised", "size", "outlined", "rounded", "iconPos", "loadingIcon", "fluid", "label", "icon", "loading", "buttonProps", "severity"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2014
2822
|
}
|
|
2015
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2823
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSidebarToggleComponent, decorators: [{
|
|
2016
2824
|
type: Component,
|
|
2017
2825
|
args: [{
|
|
2018
2826
|
selector: 'vp-sidebar-toggle',
|
|
@@ -2087,8 +2895,8 @@ class VpUserMenuComponent {
|
|
|
2087
2895
|
get ariaLabel() {
|
|
2088
2896
|
return this.subtitle ? `${this.displayName} (${this.subtitle}) — hesap menüsü` : `${this.displayName} — hesap menüsü`;
|
|
2089
2897
|
}
|
|
2090
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2091
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
2898
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpUserMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2899
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpUserMenuComponent, isStandalone: true, selector: "vp-user-menu", inputs: { displayName: "displayName", subtitle: "subtitle", items: "items", menuId: "menuId" }, outputs: { opened: "opened" }, ngImport: i0, template: `
|
|
2092
2900
|
<div class="vp-user-menu">
|
|
2093
2901
|
<button
|
|
2094
2902
|
pButton
|
|
@@ -2111,9 +2919,9 @@ class VpUserMenuComponent {
|
|
|
2111
2919
|
|
|
2112
2920
|
<p-menu #menu [model]="items" [popup]="true" [id]="menuId" />
|
|
2113
2921
|
</div>
|
|
2114
|
-
`, isInline: true, styles: [".vp-user-menu__avatar{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;margin-right:var(--vp-space-2, .5rem);border-radius:50%;background:var(--vp-brand);color:var(--vp-text-on-accent);font-size:var(--vp-font-size-xs, .75rem);font-weight:600}.vp-user-menu__text{display:inline-flex;flex-direction:column;align-items:flex-start;line-height:1.2}.vp-user-menu__name{color:var(--vp-text-primary)}.vp-user-menu__subtitle{font-size:var(--vp-font-size-xs, .75rem);color:var(--vp-text-muted, #8b949e)}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["
|
|
2922
|
+
`, isInline: true, styles: [".vp-user-menu__avatar{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;margin-right:var(--vp-space-2, .5rem);border-radius:50%;background:var(--vp-brand);color:var(--vp-text-on-accent);font-size:var(--vp-font-size-xs, .75rem);font-weight:600}.vp-user-menu__text{display:inline-flex;flex-direction:column;align-items:flex-start;line-height:1.2}.vp-user-menu__name{color:var(--vp-text-primary)}.vp-user-menu__subtitle{font-size:var(--vp-font-size-xs, .75rem);color:var(--vp-text-muted, #8b949e)}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["ptButtonDirective", "hostName", "text", "plain", "raised", "size", "outlined", "rounded", "iconPos", "loadingIcon", "fluid", "label", "icon", "loading", "buttonProps", "severity"] }, { kind: "ngmodule", type: MenuModule }, { kind: "component", type: i2$1.Menu, selector: "p-menu", inputs: ["model", "popup", "style", "styleClass", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaLabel", "ariaLabelledBy", "id", "tabindex", "appendTo"], outputs: ["onShow", "onHide", "onBlur", "onFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2115
2923
|
}
|
|
2116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2924
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpUserMenuComponent, decorators: [{
|
|
2117
2925
|
type: Component,
|
|
2118
2926
|
args: [{ selector: 'vp-user-menu', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonModule, MenuModule], template: `
|
|
2119
2927
|
<div class="vp-user-menu">
|
|
@@ -2278,10 +3086,10 @@ class VpThemeService {
|
|
|
2278
3086
|
root.classList.toggle(VP_DARK_CLASS, dark);
|
|
2279
3087
|
root.classList.toggle(VP_LIGHT_CLASS, !dark);
|
|
2280
3088
|
}
|
|
2281
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2282
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3089
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3090
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpThemeService, providedIn: 'root' }); }
|
|
2283
3091
|
}
|
|
2284
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3092
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpThemeService, decorators: [{
|
|
2285
3093
|
type: Injectable,
|
|
2286
3094
|
args: [{ providedIn: 'root' }]
|
|
2287
3095
|
}], ctorParameters: () => [] });
|
|
@@ -2416,10 +3224,10 @@ class VpToastService {
|
|
|
2416
3224
|
clearTimeout(timer);
|
|
2417
3225
|
this.timers.delete(id);
|
|
2418
3226
|
}
|
|
2419
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2420
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3227
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3228
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpToastService, providedIn: 'root' }); }
|
|
2421
3229
|
}
|
|
2422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpToastService, decorators: [{
|
|
2423
3231
|
type: Injectable,
|
|
2424
3232
|
args: [{ providedIn: 'root' }]
|
|
2425
3233
|
}], ctorParameters: () => [] });
|
|
@@ -2477,8 +3285,8 @@ class VpToastComponent {
|
|
|
2477
3285
|
default: return '#vp-icon-maintenance';
|
|
2478
3286
|
}
|
|
2479
3287
|
}
|
|
2480
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2481
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
3288
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpToastComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3289
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpToastComponent, isStandalone: true, selector: "vp-toast", inputs: { toasts: "toasts", dismissLabel: "dismissLabel", defaultDismissMs: "defaultDismissMs" }, outputs: { dismissed: "dismissed", actioned: "actioned" }, ngImport: i0, template: `
|
|
2482
3290
|
<div
|
|
2483
3291
|
class="vp-toast__region"
|
|
2484
3292
|
data-vp-toast-region
|
|
@@ -2520,7 +3328,7 @@ class VpToastComponent {
|
|
|
2520
3328
|
</div>
|
|
2521
3329
|
`, isInline: true, styles: [":host{display:contents}.vp-toast__region{position:fixed;right:var(--vp-space-4);bottom:var(--vp-space-4);z-index:60;display:flex;flex-direction:column;gap:var(--vp-space-2);width:min(24rem,calc(100vw - var(--vp-space-8)));pointer-events:none}.vp-toast{pointer-events:auto;display:flex;align-items:center;gap:var(--vp-space-3);padding:var(--vp-space-3) var(--vp-space-4);border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-overlay);color:var(--vp-text-primary);box-shadow:var(--vp-shadow-md);font-family:var(--vp-font-sans);font-size:var(--vp-text-sm)}.vp-toast[data-tone=info] .vp-toast__icon{color:var(--vp-sev-low)}.vp-toast[data-tone=success] .vp-toast__icon{color:var(--vp-sev-clean)}.vp-toast[data-tone=warning] .vp-toast__icon{color:var(--vp-sev-high)}.vp-toast[data-tone=danger] .vp-toast__icon{color:var(--vp-sev-critical)}.vp-toast__icon{flex:0 0 auto;width:18px;height:18px}.vp-toast__message{flex:1;min-width:0}.vp-toast__action{flex-shrink:0;min-height:var(--vp-min-target);padding:0 var(--vp-space-2);border:0;border-radius:var(--vp-radius-sm);background:transparent;color:var(--vp-brand);font:inherit;font-weight:var(--vp-weight-medium);cursor:pointer}.vp-toast__action:hover{background:var(--vp-surface-sunken)}.vp-toast__action:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-toast__dismiss{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--vp-min-target);height:var(--vp-min-target);border:0;border-radius:var(--vp-radius-sm);background:transparent;color:var(--vp-text-muted);cursor:pointer}.vp-toast__dismiss:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-toast__dismiss:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-toast__dismiss-icon{width:16px;height:16px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2522
3330
|
}
|
|
2523
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpToastComponent, decorators: [{
|
|
2524
3332
|
type: Component,
|
|
2525
3333
|
args: [{ selector: 'vp-toast', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
2526
3334
|
<div
|
|
@@ -2612,8 +3420,8 @@ class VpGlobalLayersComponent {
|
|
|
2612
3420
|
actioned(id) {
|
|
2613
3421
|
this.action.emit(id);
|
|
2614
3422
|
}
|
|
2615
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2616
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
3423
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpGlobalLayersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3424
|
+
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: `
|
|
2617
3425
|
<vp-toast
|
|
2618
3426
|
[toasts]="toastService.toasts()"
|
|
2619
3427
|
(dismissed)="toastService.dismiss($event)"
|
|
@@ -2631,7 +3439,7 @@ class VpGlobalLayersComponent {
|
|
|
2631
3439
|
}
|
|
2632
3440
|
`, 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 }); }
|
|
2633
3441
|
}
|
|
2634
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3442
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpGlobalLayersComponent, decorators: [{
|
|
2635
3443
|
type: Component,
|
|
2636
3444
|
args: [{ selector: 'vp-global-layers', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [VpToastComponent], template: `
|
|
2637
3445
|
<vp-toast
|
|
@@ -2703,8 +3511,8 @@ class VpNotificationTriggerComponent {
|
|
|
2703
3511
|
get ariaLabel() {
|
|
2704
3512
|
return this.unread > 0 ? `${this.title} — ${this.unread} okunmamış` : `${this.title} — okunmamış yok`;
|
|
2705
3513
|
}
|
|
2706
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2707
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
3514
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpNotificationTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3515
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpNotificationTriggerComponent, isStandalone: true, selector: "vp-notification-trigger", inputs: { items: "items", unread: "unread", maxBadge: "maxBadge", title: "title", emptyLabel: "emptyLabel", panelId: "panelId" }, outputs: { opened: "opened" }, ngImport: i0, template: `
|
|
2708
3516
|
<p-overlaybadge [value]="badgeValue" [severity]="'danger'" [style]="{ display: unread > 0 ? null : 'none' }">
|
|
2709
3517
|
<button
|
|
2710
3518
|
pButton
|
|
@@ -2747,9 +3555,9 @@ class VpNotificationTriggerComponent {
|
|
|
2747
3555
|
}
|
|
2748
3556
|
</div>
|
|
2749
3557
|
</p-popover>
|
|
2750
|
-
`, isInline: true, styles: [".vp-notification-trigger__panel{min-width:18rem;max-width:24rem}.vp-notification-trigger__title{margin:0 0 var(--vp-space-2, .5rem);font-weight:var(--vp-weight-semibold, 600)}.vp-notification-trigger__empty{margin:0;color:var(--vp-text-muted, #8b949e)}.vp-notification-trigger__list{margin:0;padding:0;list-style:none}.vp-notification-trigger__item{display:flex;flex-direction:column;gap:.125rem;padding-block:var(--vp-space-2, .5rem)}.vp-notification-trigger__item+.vp-notification-trigger__item{border-top:1px solid var(--vp-border-subtle, #30363d)}.vp-notification-trigger__item[data-unread] .vp-notification-trigger__message{font-weight:var(--vp-weight-semibold, 600);color:var(--vp-text-primary, #e6edf3)}.vp-notification-trigger__time{font-size:var(--vp-font-size-xs, .75rem);color:var(--vp-text-muted, #8b949e)}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["
|
|
3558
|
+
`, isInline: true, styles: [".vp-notification-trigger__panel{min-width:18rem;max-width:24rem}.vp-notification-trigger__title{margin:0 0 var(--vp-space-2, .5rem);font-weight:var(--vp-weight-semibold, 600)}.vp-notification-trigger__empty{margin:0;color:var(--vp-text-muted, #8b949e)}.vp-notification-trigger__list{margin:0;padding:0;list-style:none}.vp-notification-trigger__item{display:flex;flex-direction:column;gap:.125rem;padding-block:var(--vp-space-2, .5rem)}.vp-notification-trigger__item+.vp-notification-trigger__item{border-top:1px solid var(--vp-border-subtle, #30363d)}.vp-notification-trigger__item[data-unread] .vp-notification-trigger__message{font-weight:var(--vp-weight-semibold, 600);color:var(--vp-text-primary, #e6edf3)}.vp-notification-trigger__time{font-size:var(--vp-font-size-xs, .75rem);color:var(--vp-text-muted, #8b949e)}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["ptButtonDirective", "hostName", "text", "plain", "raised", "size", "outlined", "rounded", "iconPos", "loadingIcon", "fluid", "label", "icon", "loading", "buttonProps", "severity"] }, { kind: "ngmodule", type: OverlayBadgeModule }, { kind: "component", type: i2$2.OverlayBadge, selector: "p-overlayBadge, p-overlay-badge, p-overlaybadge", inputs: ["styleClass", "style", "badgeSize", "severity", "value", "badgeDisabled", "size"] }, { kind: "ngmodule", type: PopoverModule }, { kind: "component", type: i3.Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2751
3559
|
}
|
|
2752
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3560
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpNotificationTriggerComponent, decorators: [{
|
|
2753
3561
|
type: Component,
|
|
2754
3562
|
args: [{ selector: 'vp-notification-trigger', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonModule, OverlayBadgeModule, PopoverModule], template: `
|
|
2755
3563
|
<p-overlaybadge [value]="badgeValue" [severity]="'danger'" [style]="{ display: unread > 0 ? null : 'none' }">
|
|
@@ -2864,8 +3672,8 @@ class VpCommandPaletteComponent {
|
|
|
2864
3672
|
if (item)
|
|
2865
3673
|
this.picked.emit(item);
|
|
2866
3674
|
}
|
|
2867
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2868
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
3675
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpCommandPaletteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3676
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpCommandPaletteComponent, isStandalone: true, selector: "vp-command-palette", inputs: { open: "open", query: "query", items: "items", title: "title", placeholder: "placeholder", emptyLabel: "emptyLabel", listId: "listId" }, outputs: { queryChange: "queryChange", picked: "picked", closed: "closed" }, ngImport: i0, template: `
|
|
2869
3677
|
<p-dialog
|
|
2870
3678
|
[visible]="open"
|
|
2871
3679
|
(visibleChange)="onVisibleChange($event)"
|
|
@@ -2908,9 +3716,9 @@ class VpCommandPaletteComponent {
|
|
|
2908
3716
|
}
|
|
2909
3717
|
</div>
|
|
2910
3718
|
</p-dialog>
|
|
2911
|
-
`, isInline: true, styles: [".vp-command-palette{display:flex;flex-direction:column;gap:var(--vp-space-2, .5rem);padding:var(--vp-space-3, .75rem)}.vp-command-palette__empty{margin:0;padding:var(--vp-space-3, .75rem);color:var(--vp-text-muted, #8b949e)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: DialogModule }, { kind: "component", type: i2$3.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "ngmodule", type: IconFieldModule }, { kind: "component", type: i3$1.IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["iconPosition", "styleClass"] }, { kind: "ngmodule", type: InputIconModule }, { kind: "component", type: i4.InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["styleClass"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i5.InputText, selector: "[pInputText]", inputs: ["pSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: ListboxModule }, { kind: "component", type: i6.Listbox, selector: "p-listbox, p-listBox, p-list-box", inputs: ["id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "ariaLabel", "selectOnFocus", "searchLocale", "focusOnHover", "filterMessage", "filterFields", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "scrollHeight", "tabindex", "multiple", "styleClass", "listStyle", "listStyleClass", "readonly", "checkbox", "filter", "filterBy", "filterMatchMode", "filterLocale", "metaKeySelection", "dataKey", "showToggleAll", "optionLabel", "optionValue", "optionGroupChildren", "optionGroupLabel", "optionDisabled", "ariaFilterLabel", "filterPlaceHolder", "emptyFilterMessage", "emptyMessage", "group", "options", "filterValue", "selectAll", "striped", "highlightOnSelect", "checkmark", "dragdrop", "fluid"], outputs: ["onChange", "onClick", "onDblClick", "onFilter", "onFocus", "onBlur", "onSelectAllChange", "onLazyLoad", "onDrop"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3719
|
+
`, isInline: true, styles: [".vp-command-palette{display:flex;flex-direction:column;gap:var(--vp-space-2, .5rem);padding:var(--vp-space-3, .75rem)}.vp-command-palette__empty{margin:0;padding:var(--vp-space-3, .75rem);color:var(--vp-text-muted, #8b949e)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: DialogModule }, { kind: "component", type: i2$3.Dialog, selector: "p-dialog", inputs: ["hostName", "header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "ngmodule", type: IconFieldModule }, { kind: "component", type: i3$1.IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["hostName", "iconPosition", "styleClass"] }, { kind: "ngmodule", type: InputIconModule }, { kind: "component", type: i4.InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName", "styleClass"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i5.InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: ListboxModule }, { kind: "component", type: i6.Listbox, selector: "p-listbox, p-listBox, p-list-box", inputs: ["hostName", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "ariaLabel", "selectOnFocus", "searchLocale", "focusOnHover", "filterMessage", "filterFields", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "scrollHeight", "tabindex", "multiple", "styleClass", "listStyle", "listStyleClass", "readonly", "checkbox", "filter", "filterBy", "filterMatchMode", "filterLocale", "metaKeySelection", "dataKey", "showToggleAll", "optionLabel", "optionValue", "optionGroupChildren", "optionGroupLabel", "optionDisabled", "ariaFilterLabel", "filterPlaceHolder", "emptyFilterMessage", "emptyMessage", "group", "options", "filterValue", "selectAll", "striped", "highlightOnSelect", "checkmark", "dragdrop", "dropListData", "fluid"], outputs: ["onChange", "onClick", "onDblClick", "onFilter", "onFocus", "onBlur", "onSelectAllChange", "onLazyLoad", "onDrop"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2912
3720
|
}
|
|
2913
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpCommandPaletteComponent, decorators: [{
|
|
2914
3722
|
type: Component,
|
|
2915
3723
|
args: [{ selector: 'vp-command-palette', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [FormsModule, DialogModule, IconFieldModule, InputIconModule, InputTextModule, ListboxModule], template: `
|
|
2916
3724
|
<p-dialog
|
|
@@ -3013,8 +3821,8 @@ class VpSearchTriggerComponent {
|
|
|
3013
3821
|
this.keyShortcut = 'Control+K';
|
|
3014
3822
|
this.opened = new EventEmitter();
|
|
3015
3823
|
}
|
|
3016
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3017
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
3824
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSearchTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3825
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpSearchTriggerComponent, isStandalone: true, selector: "vp-search-trigger", inputs: { label: "label", hint: "hint", keyShortcut: "keyShortcut" }, outputs: { opened: "opened" }, ngImport: i0, template: `
|
|
3018
3826
|
<button
|
|
3019
3827
|
pButton
|
|
3020
3828
|
type="button"
|
|
@@ -3031,9 +3839,9 @@ class VpSearchTriggerComponent {
|
|
|
3031
3839
|
<kbd class="vp-search-trigger__hint" aria-hidden="true">{{ hint }}</kbd>
|
|
3032
3840
|
}
|
|
3033
3841
|
</button>
|
|
3034
|
-
`, isInline: true, styles: [":host ::ng-deep .vp-search-trigger{display:inline-flex;align-items:center;gap:var(--vp-space-2, .5rem);min-width:14rem;justify-content:flex-start;border:1px solid var(--vp-border-subtle, #30363d);border-radius:var(--vp-radius-md, 6px);color:var(--vp-text-muted, #8b949e)}.vp-search-trigger__label{flex:1;text-align:left;font-weight:400}.vp-search-trigger__hint{padding:.05rem .35rem;border:1px solid var(--vp-border-subtle, #30363d);border-radius:var(--vp-radius-sm, 4px);font-family:var(--vp-font-mono, ui-monospace, monospace);font-size:var(--vp-font-size-xs, .75rem);line-height:1.4}@media(max-width:900px){:host ::ng-deep .vp-search-trigger{min-width:0}.vp-search-trigger__label,.vp-search-trigger__hint{display:none}}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["
|
|
3842
|
+
`, isInline: true, styles: [":host ::ng-deep .vp-search-trigger{display:inline-flex;align-items:center;gap:var(--vp-space-2, .5rem);min-width:14rem;justify-content:flex-start;border:1px solid var(--vp-border-subtle, #30363d);border-radius:var(--vp-radius-md, 6px);color:var(--vp-text-muted, #8b949e)}.vp-search-trigger__label{flex:1;text-align:left;font-weight:400}.vp-search-trigger__hint{padding:.05rem .35rem;border:1px solid var(--vp-border-subtle, #30363d);border-radius:var(--vp-radius-sm, 4px);font-family:var(--vp-font-mono, ui-monospace, monospace);font-size:var(--vp-font-size-xs, .75rem);line-height:1.4}@media(max-width:900px){:host ::ng-deep .vp-search-trigger{min-width:0}.vp-search-trigger__label,.vp-search-trigger__hint{display:none}}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["ptButtonDirective", "hostName", "text", "plain", "raised", "size", "outlined", "rounded", "iconPos", "loadingIcon", "fluid", "label", "icon", "loading", "buttonProps", "severity"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3035
3843
|
}
|
|
3036
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3844
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSearchTriggerComponent, decorators: [{
|
|
3037
3845
|
type: Component,
|
|
3038
3846
|
args: [{ selector: 'vp-search-trigger', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonModule], template: `
|
|
3039
3847
|
<button
|
|
@@ -3096,8 +3904,8 @@ class VpMenuButtonComponent {
|
|
|
3096
3904
|
this.menuId = 'vp-menu-button-popup';
|
|
3097
3905
|
this.opened = new EventEmitter();
|
|
3098
3906
|
}
|
|
3099
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3100
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
3907
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpMenuButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3908
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: VpMenuButtonComponent, isStandalone: true, selector: "vp-menu-button", inputs: { icon: "icon", ariaLabel: "ariaLabel", items: "items", menuId: "menuId" }, outputs: { opened: "opened" }, ngImport: i0, template: `
|
|
3101
3909
|
<button
|
|
3102
3910
|
pButton
|
|
3103
3911
|
type="button"
|
|
@@ -3112,9 +3920,9 @@ class VpMenuButtonComponent {
|
|
|
3112
3920
|
(click)="menu.toggle($event); opened.emit()"></button>
|
|
3113
3921
|
|
|
3114
3922
|
<p-menu #menu [model]="items" [popup]="true" [id]="menuId" />
|
|
3115
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["
|
|
3923
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["ptButtonDirective", "hostName", "text", "plain", "raised", "size", "outlined", "rounded", "iconPos", "loadingIcon", "fluid", "label", "icon", "loading", "buttonProps", "severity"] }, { kind: "ngmodule", type: MenuModule }, { kind: "component", type: i2$1.Menu, selector: "p-menu", inputs: ["model", "popup", "style", "styleClass", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaLabel", "ariaLabelledBy", "id", "tabindex", "appendTo"], outputs: ["onShow", "onHide", "onBlur", "onFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3116
3924
|
}
|
|
3117
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3925
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpMenuButtonComponent, decorators: [{
|
|
3118
3926
|
type: Component,
|
|
3119
3927
|
args: [{
|
|
3120
3928
|
selector: 'vp-menu-button',
|
|
@@ -3199,8 +4007,8 @@ class VpProductSwitcherComponent {
|
|
|
3199
4007
|
return;
|
|
3200
4008
|
this.selected.emit(product);
|
|
3201
4009
|
}
|
|
3202
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3203
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
4010
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpProductSwitcherComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4011
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpProductSwitcherComponent, isStandalone: true, selector: "vp-product-switcher", inputs: { products: "products", currentId: "currentId", title: "title", panelId: "panelId" }, outputs: { selected: "selected" }, ngImport: i0, template: `
|
|
3204
4012
|
<button
|
|
3205
4013
|
pButton
|
|
3206
4014
|
type="button"
|
|
@@ -3234,9 +4042,9 @@ class VpProductSwitcherComponent {
|
|
|
3234
4042
|
}
|
|
3235
4043
|
</ul>
|
|
3236
4044
|
</p-popover>
|
|
3237
|
-
`, isInline: true, styles: [".vp-product-switcher__list{margin:0;padding:0;list-style:none;min-width:16rem}.vp-product-switcher__item{display:flex;flex-direction:column;gap:.125rem;width:100%;padding:var(--vp-space-2, .5rem) var(--vp-space-3, .75rem);border:0;border-radius:var(--vp-radius-sm, 4px);background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}.vp-product-switcher__item:hover{background:var(--vp-surface-sunken, #161b22)}.vp-product-switcher__item:focus-visible{outline:var(--vp-focus-width, 2px) solid var(--vp-focus-ring, #2f81f7);outline-offset:var(--vp-focus-offset, 2px)}.vp-product-switcher__item[aria-current] .vp-product-switcher__name{font-weight:var(--vp-weight-semibold, 600)}.vp-product-switcher__item[aria-current]{background:var(--vp-surface-sunken, #161b22)}.vp-product-switcher__desc{font-size:var(--vp-font-size-xs, .75rem);color:var(--vp-text-muted, #8b949e)}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["
|
|
4045
|
+
`, isInline: true, styles: [".vp-product-switcher__list{margin:0;padding:0;list-style:none;min-width:16rem}.vp-product-switcher__item{display:flex;flex-direction:column;gap:.125rem;width:100%;padding:var(--vp-space-2, .5rem) var(--vp-space-3, .75rem);border:0;border-radius:var(--vp-radius-sm, 4px);background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}.vp-product-switcher__item:hover{background:var(--vp-surface-sunken, #161b22)}.vp-product-switcher__item:focus-visible{outline:var(--vp-focus-width, 2px) solid var(--vp-focus-ring, #2f81f7);outline-offset:var(--vp-focus-offset, 2px)}.vp-product-switcher__item[aria-current] .vp-product-switcher__name{font-weight:var(--vp-weight-semibold, 600)}.vp-product-switcher__item[aria-current]{background:var(--vp-surface-sunken, #161b22)}.vp-product-switcher__desc{font-size:var(--vp-font-size-xs, .75rem);color:var(--vp-text-muted, #8b949e)}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["ptButtonDirective", "hostName", "text", "plain", "raised", "size", "outlined", "rounded", "iconPos", "loadingIcon", "fluid", "label", "icon", "loading", "buttonProps", "severity"] }, { kind: "ngmodule", type: PopoverModule }, { kind: "component", type: i3.Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3238
4046
|
}
|
|
3239
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4047
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpProductSwitcherComponent, decorators: [{
|
|
3240
4048
|
type: Component,
|
|
3241
4049
|
args: [{ selector: 'vp-product-switcher', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonModule, PopoverModule], template: `
|
|
3242
4050
|
<button
|
|
@@ -3317,8 +4125,8 @@ class VpContextToolbarComponent {
|
|
|
3317
4125
|
/** 🔴 Ekran okuyucu icin ZORUNLU: sayfada birden fazla arac cubugu olabilir. */
|
|
3318
4126
|
this.label = 'Sayfa araçları';
|
|
3319
4127
|
}
|
|
3320
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3321
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
4128
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpContextToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4129
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpContextToolbarComponent, isStandalone: true, selector: "vp-context-toolbar", inputs: { visible: "visible", label: "label" }, ngImport: i0, template: `
|
|
3322
4130
|
@if (visible) {
|
|
3323
4131
|
<p-toolbar
|
|
3324
4132
|
data-vp-context-toolbar
|
|
@@ -3339,7 +4147,7 @@ class VpContextToolbarComponent {
|
|
|
3339
4147
|
}
|
|
3340
4148
|
`, isInline: true, styles: [":host ::ng-deep .vp-context-toolbar{border:0;border-bottom:1px solid var(--vp-border-subtle, #30363d);border-radius:0;background:transparent;padding-inline:0;padding-block:var(--vp-space-2, .5rem);color:var(--vp-text-primary, #e6edf3);font-family:var(--vp-font-sans)}\n"], dependencies: [{ kind: "ngmodule", type: ToolbarModule }, { kind: "component", type: i1$2.Toolbar, selector: "p-toolbar", inputs: ["styleClass", "ariaLabelledBy"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3341
4149
|
}
|
|
3342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpContextToolbarComponent, decorators: [{
|
|
3343
4151
|
type: Component,
|
|
3344
4152
|
args: [{ selector: 'vp-context-toolbar', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ToolbarModule], template: `
|
|
3345
4153
|
@if (visible) {
|
|
@@ -3639,6 +4447,22 @@ class VpDataTableComponent {
|
|
|
3639
4447
|
this.emptyFilteredLabel = 'Bu filtreye uyan kayıt yok';
|
|
3640
4448
|
this.clearFiltersLabel = 'Filtreleri temizle';
|
|
3641
4449
|
this.retryLabel = 'Tekrar dene';
|
|
4450
|
+
/**
|
|
4451
|
+
* Arama kutusu — paket 28 · G10.
|
|
4452
|
+
*
|
|
4453
|
+
* ⚠️ Suzmeyi bilesen YAPMIYOR: yazilan metni olay olarak veriyor, veriyi
|
|
4454
|
+
* cagiran suzuyor. Iki yerde suzmek, iki farkli kural demek olurdu.
|
|
4455
|
+
*/
|
|
4456
|
+
this.searchable = false;
|
|
4457
|
+
this.searchLabel = 'Ara';
|
|
4458
|
+
this.searchPlaceholder = 'Ara';
|
|
4459
|
+
this.searchTerm = '';
|
|
4460
|
+
/**
|
|
4461
|
+
* Sayfa boyutu secenekleri. Bos birakilirsa secici cizilmiyor — tek boyutlu
|
|
4462
|
+
* bir listede secim sunmak, olmayan bir tercihi ima eder.
|
|
4463
|
+
*/
|
|
4464
|
+
this.pageSizeOptions = [];
|
|
4465
|
+
this.pageSizeLabel = 'Sayfa boyutu';
|
|
3642
4466
|
this.pagerLabel = 'Sayfalama';
|
|
3643
4467
|
this.prevLabel = 'Önceki';
|
|
3644
4468
|
this.nextLabel = 'Sonraki';
|
|
@@ -3752,6 +4576,8 @@ class VpDataTableComponent {
|
|
|
3752
4576
|
/** Veri istegi. Ust bilesen `rows` + `total` ile yanit verir. */
|
|
3753
4577
|
this.load = new EventEmitter();
|
|
3754
4578
|
this.clearFilters = new EventEmitter();
|
|
4579
|
+
/** Arama kutusuna yazilan metin. Bos metin de cikar: kutuyu temizlemek de bir istek. */
|
|
4580
|
+
this.search = new EventEmitter();
|
|
3755
4581
|
this.page = 1;
|
|
3756
4582
|
this.sortField = null;
|
|
3757
4583
|
this.sortOrder = 'asc';
|
|
@@ -4024,6 +4850,25 @@ class VpDataTableComponent {
|
|
|
4024
4850
|
this.page = 1;
|
|
4025
4851
|
this.emitLoad();
|
|
4026
4852
|
}
|
|
4853
|
+
/**
|
|
4854
|
+
* 🔴 Arama 7. sayfadayken yapilirsa liste bos gorunur ve kullanici "kayit
|
|
4855
|
+
* yok" sanir. Siralamada ayni kural zaten uygulaniyordu.
|
|
4856
|
+
*/
|
|
4857
|
+
onSearch(event) {
|
|
4858
|
+
this.searchTerm = event.target.value;
|
|
4859
|
+
this.page = 1;
|
|
4860
|
+
this.search.emit(this.searchTerm);
|
|
4861
|
+
this.emitLoad();
|
|
4862
|
+
}
|
|
4863
|
+
/** Boyut degisince 1. sayfaya donuluyor: 4. sayfa buyuk boyutta olmayabilir. */
|
|
4864
|
+
onPageSizeChange(event) {
|
|
4865
|
+
const size = Number(event.target.value);
|
|
4866
|
+
if (!Number.isFinite(size) || size <= 0)
|
|
4867
|
+
return;
|
|
4868
|
+
this.pageSize = size;
|
|
4869
|
+
this.page = 1;
|
|
4870
|
+
this.emitLoad();
|
|
4871
|
+
}
|
|
4027
4872
|
emitLoad() {
|
|
4028
4873
|
const event = { page: this.page, size: this.pageSize };
|
|
4029
4874
|
if (this.sortField) {
|
|
@@ -4057,582 +4902,628 @@ class VpDataTableComponent {
|
|
|
4057
4902
|
templateFor(field) {
|
|
4058
4903
|
return this.cellTemplates[field] ?? null;
|
|
4059
4904
|
}
|
|
4060
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4061
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
4062
|
-
<div class="vp-table">
|
|
4063
|
-
<div class="vp-table__meta">
|
|
4064
|
-
<span class="vp-table__total" data-vp-total>
|
|
4065
|
-
{{ total }} {{ totalLabel }}
|
|
4066
|
-
</span>
|
|
4067
|
-
@if (pageCount > 1) {
|
|
4068
|
-
<span class="vp-table__pageinfo">{{ page }} / {{ pageCount }}</span>
|
|
4069
|
-
}
|
|
4070
|
-
|
|
4071
|
-
@if (
|
|
4072
|
-
<
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
<
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
[
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
<
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
<
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
</th>
|
|
4251
|
-
}
|
|
4252
|
-
@
|
|
4253
|
-
<th
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
@if (
|
|
4288
|
-
<td class="vp-table__select-cell">
|
|
4289
|
-
<
|
|
4290
|
-
type="
|
|
4291
|
-
|
|
4292
|
-
[attr.
|
|
4293
|
-
[
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4905
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDataTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4906
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpDataTableComponent, isStandalone: true, selector: "vp-data-table", inputs: { columns: "columns", rows: "rows", total: "total", serverSide: "serverSide", pageSize: "pageSize", loading: "loading", error: "error", hasActiveFilter: "hasActiveFilter", caption: "caption", totalLabel: "totalLabel", loadingLabel: "loadingLabel", emptyLabel: "emptyLabel", emptyFilteredLabel: "emptyFilteredLabel", clearFiltersLabel: "clearFiltersLabel", retryLabel: "retryLabel", searchable: "searchable", searchLabel: "searchLabel", searchPlaceholder: "searchPlaceholder", searchTerm: "searchTerm", pageSizeOptions: "pageSizeOptions", pageSizeLabel: "pageSizeLabel", pagerLabel: "pagerLabel", prevLabel: "prevLabel", nextLabel: "nextLabel", storageKey: "storageKey", selectable: "selectable", rowKey: "rowKey", bulkActions: "bulkActions", bulkResult: "bulkResult", bulkLabel: "bulkLabel", selectedLabel: "selectedLabel", clearSelectionLabel: "clearSelectionLabel", selectPageLabel: "selectPageLabel", selectRowLabel: "selectRowLabel", confirmPrefix: "confirmPrefix", confirmLabel: "confirmLabel", cancelLabel: "cancelLabel", succeededLabel: "succeededLabel", failedLabel: "failedLabel", expandable: "expandable", rowDetail: "rowDetail", expandLabel: "expandLabel", collapseLabel: "collapseLabel", expandColumnLabel: "expandColumnLabel", noDetailLabel: "noDetailLabel", rowActions: "rowActions", rowActionsHeader: "rowActionsHeader", cellTemplates: "cellTemplates", exportScopes: "exportScopes", exportPageLabel: "exportPageLabel", exportAllLabel: "exportAllLabel", savedViewsKey: "savedViewsKey", viewsLabel: "viewsLabel", viewsPlaceholder: "viewsPlaceholder", saveViewLabel: "saveViewLabel", deleteViewLabel: "deleteViewLabel", askViewName: "askViewName", columnPicker: "columnPicker", columnsLabel: "columnsLabel", moveUpLabel: "moveUpLabel", moveDownLabel: "moveDownLabel" }, outputs: { bulkAction: "bulkAction", exportRequest: "exportRequest", viewApplied: "viewApplied", load: "load", clearFilters: "clearFilters", search: "search" }, usesOnChanges: true, ngImport: i0, template: `
|
|
4907
|
+
<div class="vp-table">
|
|
4908
|
+
<div class="vp-table__meta">
|
|
4909
|
+
<span class="vp-table__total" data-vp-total>
|
|
4910
|
+
{{ total }} {{ totalLabel }}
|
|
4911
|
+
</span>
|
|
4912
|
+
@if (pageCount > 1) {
|
|
4913
|
+
<span class="vp-table__pageinfo">{{ page }} / {{ pageCount }}</span>
|
|
4914
|
+
}
|
|
4915
|
+
|
|
4916
|
+
@if (searchable) {
|
|
4917
|
+
<input
|
|
4918
|
+
type="search"
|
|
4919
|
+
class="vp-table__search"
|
|
4920
|
+
data-vp-table-search
|
|
4921
|
+
[attr.aria-label]="searchLabel"
|
|
4922
|
+
[attr.placeholder]="searchPlaceholder"
|
|
4923
|
+
[value]="searchTerm"
|
|
4924
|
+
(input)="onSearch($event)" />
|
|
4925
|
+
}
|
|
4926
|
+
|
|
4927
|
+
@if (savedViewsKey) {
|
|
4928
|
+
<span class="vp-table__views" data-vp-views>
|
|
4929
|
+
<select
|
|
4930
|
+
class="vp-table__cols-btn"
|
|
4931
|
+
data-vp-view-select
|
|
4932
|
+
[attr.aria-label]="viewsLabel"
|
|
4933
|
+
[value]="activeView"
|
|
4934
|
+
(change)="applyView(asSelectValue($event))">
|
|
4935
|
+
<option value="">{{ viewsPlaceholder }}</option>
|
|
4936
|
+
@for (view of savedViews; track view.name) {
|
|
4937
|
+
<option [value]="view.name">{{ view.name }}</option>
|
|
4938
|
+
}
|
|
4939
|
+
</select>
|
|
4940
|
+
|
|
4941
|
+
<button type="button" class="vp-table__cols-btn" data-vp-view-save
|
|
4942
|
+
(click)="saveViewPrompt()">{{ saveViewLabel }}</button>
|
|
4943
|
+
|
|
4944
|
+
@if (activeView) {
|
|
4945
|
+
<button type="button" class="vp-table__cols-btn" data-vp-view-delete
|
|
4946
|
+
(click)="deleteActiveView()">{{ deleteViewLabel }}</button>
|
|
4947
|
+
}
|
|
4948
|
+
</span>
|
|
4949
|
+
}
|
|
4950
|
+
|
|
4951
|
+
@if (exportScopes.length > 0) {
|
|
4952
|
+
@for (scope of exportScopes; track scope) {
|
|
4953
|
+
<button
|
|
4954
|
+
type="button"
|
|
4955
|
+
class="vp-table__cols-btn"
|
|
4956
|
+
[attr.data-vp-export]="scope"
|
|
4957
|
+
(click)="requestExport(scope)">{{ exportLabel(scope) }}</button>
|
|
4958
|
+
}
|
|
4959
|
+
}
|
|
4960
|
+
|
|
4961
|
+
@if (columnPicker) {
|
|
4962
|
+
<button
|
|
4963
|
+
type="button"
|
|
4964
|
+
class="vp-table__cols-btn"
|
|
4965
|
+
data-vp-cols-toggle
|
|
4966
|
+
[attr.aria-expanded]="pickerOpen"
|
|
4967
|
+
(click)="pickerOpen = !pickerOpen">{{ columnsLabel }}</button>
|
|
4968
|
+
}
|
|
4969
|
+
</div>
|
|
4970
|
+
|
|
4971
|
+
@if (selectable && selectedKeys.size > 0) {
|
|
4972
|
+
<div class="vp-table__bulk" data-vp-bulk role="group" [attr.aria-label]="bulkLabel">
|
|
4973
|
+
<span data-vp-bulk-count>{{ selectedKeys.size }} {{ selectedLabel }}</span>
|
|
4974
|
+
|
|
4975
|
+
<div class="vp-table__bulk-actions">
|
|
4976
|
+
@for (action of bulkActions; track action.code) {
|
|
4977
|
+
<button
|
|
4978
|
+
type="button"
|
|
4979
|
+
[attr.data-vp-bulk-action]="action.code"
|
|
4980
|
+
[class.vp-table__bulk-btn--danger]="action.danger"
|
|
4981
|
+
class="vp-table__bulk-btn"
|
|
4982
|
+
(click)="requestBulkAction(action)">{{ action.label }}</button>
|
|
4983
|
+
}
|
|
4984
|
+
<button type="button" class="vp-table__bulk-btn" data-vp-bulk-clear
|
|
4985
|
+
(click)="clearSelection()">{{ clearSelectionLabel }}</button>
|
|
4986
|
+
</div>
|
|
4987
|
+
</div>
|
|
4988
|
+
|
|
4989
|
+
@if (pendingAction) {
|
|
4990
|
+
<div class="vp-table__bulk-confirm" data-vp-bulk-confirm role="alertdialog"
|
|
4991
|
+
[attr.aria-label]="pendingAction.label">
|
|
4992
|
+
<span>{{ confirmPrefix }} {{ selectedKeys.size }} {{ selectedLabel }} — {{ pendingAction.label }}?</span>
|
|
4993
|
+
<span class="vp-table__bulk-actions">
|
|
4994
|
+
<button type="button" class="vp-table__bulk-btn" data-vp-bulk-cancel
|
|
4995
|
+
(click)="pendingAction = null">{{ cancelLabel }}</button>
|
|
4996
|
+
<button type="button" class="vp-table__bulk-btn vp-table__bulk-btn--danger"
|
|
4997
|
+
data-vp-bulk-confirm-ok (click)="confirmBulkAction()">{{ confirmLabel }}</button>
|
|
4998
|
+
</span>
|
|
4999
|
+
</div>
|
|
5000
|
+
}
|
|
5001
|
+
}
|
|
5002
|
+
|
|
5003
|
+
@if (bulkResult) {
|
|
5004
|
+
<div class="vp-table__bulk-report" data-vp-bulk-report role="status" aria-live="polite">
|
|
5005
|
+
@if (bulkResult.succeeded.length > 0) {
|
|
5006
|
+
<p data-vp-bulk-ok>{{ bulkResult.succeeded.length }} {{ succeededLabel }}</p>
|
|
5007
|
+
}
|
|
5008
|
+
@if (bulkResult.failed.length > 0) {
|
|
5009
|
+
<p data-vp-bulk-failed>{{ bulkResult.failed.length }} {{ failedLabel }}</p>
|
|
5010
|
+
<ul class="vp-table__bulk-failures">
|
|
5011
|
+
@for (failure of bulkResult.failed; track failure.key) {
|
|
5012
|
+
<li [attr.data-vp-bulk-failure]="failure.key">
|
|
5013
|
+
<code>{{ failure.key }}</code> — {{ failure.reason }}
|
|
5014
|
+
</li>
|
|
5015
|
+
}
|
|
5016
|
+
</ul>
|
|
5017
|
+
}
|
|
5018
|
+
</div>
|
|
5019
|
+
}
|
|
5020
|
+
|
|
5021
|
+
@if (columnPicker && pickerOpen) {
|
|
5022
|
+
<div class="vp-table__cols" data-vp-cols role="group" [attr.aria-label]="columnsLabel">
|
|
5023
|
+
@for (col of orderedColumns; track col.field; let i = $index) {
|
|
5024
|
+
<div class="vp-table__cols-row" [attr.data-vp-cols-row]="col.field">
|
|
5025
|
+
<label class="vp-table__cols-label">
|
|
5026
|
+
<input
|
|
5027
|
+
type="checkbox"
|
|
5028
|
+
[attr.data-vp-col-toggle]="col.field"
|
|
5029
|
+
[checked]="isVisible(col.field)"
|
|
5030
|
+
[disabled]="isVisible(col.field) && visibleCount === 1"
|
|
5031
|
+
(change)="setColumnVisible(col.field, !isVisible(col.field))" />
|
|
5032
|
+
{{ col.header }}
|
|
5033
|
+
</label>
|
|
5034
|
+
<span class="vp-table__cols-move">
|
|
5035
|
+
<button
|
|
5036
|
+
type="button"
|
|
5037
|
+
[attr.data-vp-col-up]="col.field"
|
|
5038
|
+
[attr.aria-label]="moveUpLabel + ': ' + col.header"
|
|
5039
|
+
[disabled]="i === 0"
|
|
5040
|
+
(click)="moveColumn(col.field, -1)">↑</button>
|
|
5041
|
+
<button
|
|
5042
|
+
type="button"
|
|
5043
|
+
[attr.data-vp-col-down]="col.field"
|
|
5044
|
+
[attr.aria-label]="moveDownLabel + ': ' + col.header"
|
|
5045
|
+
[disabled]="i === orderedColumns.length - 1"
|
|
5046
|
+
(click)="moveColumn(col.field, 1)">↓</button>
|
|
5047
|
+
</span>
|
|
5048
|
+
</div>
|
|
5049
|
+
}
|
|
5050
|
+
</div>
|
|
5051
|
+
}
|
|
5052
|
+
|
|
5053
|
+
@if (error) {
|
|
5054
|
+
<div class="vp-table__error" data-vp-table-error role="alert">
|
|
5055
|
+
<svg class="vp-table__state-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
5056
|
+
<use href="#vp-icon-error"></use>
|
|
5057
|
+
</svg>
|
|
5058
|
+
<p class="vp-table__state-text">{{ error }}</p>
|
|
5059
|
+
<button type="button" class="vp-table__retry" (click)="emitLoad()">{{ retryLabel }}</button>
|
|
5060
|
+
</div>
|
|
5061
|
+
} @else if (loading) {
|
|
5062
|
+
<div class="vp-table__skeleton" data-vp-table-skeleton aria-hidden="true">
|
|
5063
|
+
@for (i of skeletonRows; track i) {
|
|
5064
|
+
<span class="vp-table__skeleton-row"></span>
|
|
5065
|
+
}
|
|
5066
|
+
</div>
|
|
5067
|
+
<span class="vp-visually-hidden" role="status">{{ loadingLabel }}</span>
|
|
5068
|
+
} @else if (rows.length === 0) {
|
|
5069
|
+
@if (hasActiveFilter) {
|
|
5070
|
+
<div class="vp-table__empty" data-vp-table-empty-filtered role="status">
|
|
5071
|
+
<svg class="vp-table__state-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
5072
|
+
<use href="#vp-icon-filter"></use>
|
|
5073
|
+
</svg>
|
|
5074
|
+
<p class="vp-table__state-text">{{ emptyFilteredLabel }}</p>
|
|
5075
|
+
<button type="button" class="vp-table__retry" (click)="clearFilters.emit()">
|
|
5076
|
+
{{ clearFiltersLabel }}
|
|
5077
|
+
</button>
|
|
5078
|
+
</div>
|
|
5079
|
+
} @else {
|
|
5080
|
+
<div class="vp-table__empty" data-vp-table-empty role="status">
|
|
5081
|
+
<svg class="vp-table__state-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
5082
|
+
<use href="#vp-icon-empty"></use>
|
|
5083
|
+
</svg>
|
|
5084
|
+
<p class="vp-table__state-text">{{ emptyLabel }}</p>
|
|
5085
|
+
</div>
|
|
5086
|
+
}
|
|
5087
|
+
} @else {
|
|
5088
|
+
<div class="vp-table__scroll">
|
|
5089
|
+
<table class="vp-table__table" [attr.aria-label]="caption">
|
|
5090
|
+
<thead>
|
|
5091
|
+
<tr>
|
|
5092
|
+
@if (canExpand) {
|
|
5093
|
+
<th scope="col" class="vp-table__select-cell">
|
|
5094
|
+
<span class="vp-visually-hidden">{{ expandColumnLabel }}</span>
|
|
5095
|
+
</th>
|
|
5096
|
+
}
|
|
5097
|
+
@if (selectable) {
|
|
5098
|
+
<th scope="col" class="vp-table__select-cell">
|
|
5099
|
+
<input
|
|
5100
|
+
type="checkbox"
|
|
5101
|
+
data-vp-select-page
|
|
5102
|
+
[attr.aria-label]="selectPageLabel"
|
|
5103
|
+
[checked]="allOnPageSelected"
|
|
5104
|
+
[indeterminate]="someOnPageSelected"
|
|
5105
|
+
(change)="togglePageSelection()" />
|
|
5106
|
+
</th>
|
|
5107
|
+
}
|
|
5108
|
+
@for (col of visibleCols; track col.field) {
|
|
5109
|
+
<th
|
|
5110
|
+
scope="col"
|
|
5111
|
+
[attr.data-vp-col]="col.field"
|
|
5112
|
+
[attr.aria-sort]="ariaSort(col)"
|
|
5113
|
+
[style.width]="col.width || null">
|
|
5114
|
+
@if (col.sortable) {
|
|
5115
|
+
<button type="button" class="vp-table__sort" (click)="toggleSort(col.field)">
|
|
5116
|
+
{{ col.header }}
|
|
5117
|
+
<span class="vp-table__sort-icon" aria-hidden="true">{{ sortGlyph(col.field) }}</span>
|
|
5118
|
+
</button>
|
|
5119
|
+
} @else {
|
|
5120
|
+
{{ col.header }}
|
|
5121
|
+
}
|
|
5122
|
+
</th>
|
|
5123
|
+
}
|
|
5124
|
+
@if (rowActions) {
|
|
5125
|
+
<th scope="col" class="vp-table__actions-header">{{ rowActionsHeader }}</th>
|
|
5126
|
+
}
|
|
5127
|
+
</tr>
|
|
5128
|
+
</thead>
|
|
5129
|
+
<tbody>
|
|
5130
|
+
@for (row of rows; track $index) {
|
|
5131
|
+
<tr data-vp-row>
|
|
5132
|
+
@if (canExpand) {
|
|
5133
|
+
<td class="vp-table__select-cell">
|
|
5134
|
+
<button
|
|
5135
|
+
type="button"
|
|
5136
|
+
class="vp-table__expand"
|
|
5137
|
+
[attr.data-vp-expand]="keyOf(row)"
|
|
5138
|
+
[attr.aria-expanded]="isExpanded(row)"
|
|
5139
|
+
[attr.aria-label]="isExpanded(row) ? collapseLabel : expandLabel"
|
|
5140
|
+
(click)="toggleExpanded(row)">{{ isExpanded(row) ? '▾' : '▸' }}</button>
|
|
5141
|
+
</td>
|
|
5142
|
+
}
|
|
5143
|
+
@if (selectable) {
|
|
5144
|
+
<td class="vp-table__select-cell">
|
|
5145
|
+
<input
|
|
5146
|
+
type="checkbox"
|
|
5147
|
+
[attr.data-vp-select-row]="keyOf(row)"
|
|
5148
|
+
[attr.aria-label]="selectRowLabel"
|
|
5149
|
+
[checked]="isSelected(row)"
|
|
5150
|
+
(change)="toggleRow(row)" />
|
|
5151
|
+
</td>
|
|
5152
|
+
}
|
|
5153
|
+
@for (col of visibleCols; track col.field) {
|
|
5154
|
+
<td>
|
|
5155
|
+
@if (templateFor(col.field); as tpl) {
|
|
5156
|
+
<ng-container
|
|
5157
|
+
*ngTemplateOutlet="tpl; context: { $implicit: cell(row, col.field), row: row }" />
|
|
5158
|
+
} @else {
|
|
5159
|
+
{{ cell(row, col.field) }}
|
|
5160
|
+
}
|
|
5161
|
+
</td>
|
|
5162
|
+
}
|
|
5163
|
+
@if (rowActions) {
|
|
5164
|
+
<td data-vp-row-actions>
|
|
5165
|
+
<ng-container *ngTemplateOutlet="rowActions; context: { $implicit: row }" />
|
|
5166
|
+
</td>
|
|
5167
|
+
}
|
|
5168
|
+
</tr>
|
|
5169
|
+
|
|
5170
|
+
@if (canExpand && isExpanded(row)) {
|
|
5171
|
+
<tr class="vp-table__detail-row" [attr.data-vp-detail]="keyOf(row)">
|
|
5172
|
+
<td [attr.colspan]="columnSpan">
|
|
5173
|
+
@if (rowDetail) {
|
|
5174
|
+
<ng-container *ngTemplateOutlet="rowDetail; context: { $implicit: row }" />
|
|
5175
|
+
} @else {
|
|
5176
|
+
<span class="vp-table__detail-empty">{{ noDetailLabel }}</span>
|
|
5177
|
+
}
|
|
5178
|
+
</td>
|
|
5179
|
+
</tr>
|
|
5180
|
+
}
|
|
5181
|
+
}
|
|
5182
|
+
</tbody>
|
|
5183
|
+
</table>
|
|
5184
|
+
</div>
|
|
5185
|
+
|
|
5186
|
+
@if (pageCount > 1) {
|
|
5187
|
+
<nav class="vp-table__pager" [attr.aria-label]="pagerLabel">
|
|
5188
|
+
@if (pageSizeOptions.length > 0) {
|
|
5189
|
+
<select
|
|
5190
|
+
class="vp-table__page-size"
|
|
5191
|
+
data-vp-table-page-size
|
|
5192
|
+
[attr.aria-label]="pageSizeLabel"
|
|
5193
|
+
[value]="pageSize"
|
|
5194
|
+
(change)="onPageSizeChange($event)">
|
|
5195
|
+
@for (size of pageSizeOptions; track size) {
|
|
5196
|
+
<option [value]="size" [selected]="size === pageSize">{{ size }}</option>
|
|
5197
|
+
}
|
|
5198
|
+
</select>
|
|
5199
|
+
}
|
|
5200
|
+
<button
|
|
5201
|
+
type="button"
|
|
5202
|
+
class="vp-table__page-btn"
|
|
5203
|
+
[disabled]="page <= 1"
|
|
5204
|
+
(click)="goToPage(page - 1)">{{ prevLabel }}</button>
|
|
5205
|
+
<button
|
|
5206
|
+
type="button"
|
|
5207
|
+
class="vp-table__page-btn"
|
|
5208
|
+
[disabled]="page >= pageCount"
|
|
5209
|
+
(click)="goToPage(page + 1)">{{ nextLabel }}</button>
|
|
5210
|
+
</nav>
|
|
5211
|
+
}
|
|
5212
|
+
}
|
|
5213
|
+
</div>
|
|
5214
|
+
`, 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__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 }); }
|
|
4347
5215
|
}
|
|
4348
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5216
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDataTableComponent, decorators: [{
|
|
4349
5217
|
type: Component,
|
|
4350
|
-
args: [{ selector: 'vp-data-table', standalone: true, imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
4351
|
-
<div class="vp-table">
|
|
4352
|
-
<div class="vp-table__meta">
|
|
4353
|
-
<span class="vp-table__total" data-vp-total>
|
|
4354
|
-
{{ total }} {{ totalLabel }}
|
|
4355
|
-
</span>
|
|
4356
|
-
@if (pageCount > 1) {
|
|
4357
|
-
<span class="vp-table__pageinfo">{{ page }} / {{ pageCount }}</span>
|
|
4358
|
-
}
|
|
4359
|
-
|
|
4360
|
-
@if (
|
|
4361
|
-
<
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
<
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
[
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
<
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
<
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
</th>
|
|
4540
|
-
}
|
|
4541
|
-
@
|
|
4542
|
-
<th
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
@if (
|
|
4577
|
-
<td class="vp-table__select-cell">
|
|
4578
|
-
<
|
|
4579
|
-
type="
|
|
4580
|
-
|
|
4581
|
-
[attr.
|
|
4582
|
-
[
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
5218
|
+
args: [{ selector: 'vp-data-table', standalone: true, imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
5219
|
+
<div class="vp-table">
|
|
5220
|
+
<div class="vp-table__meta">
|
|
5221
|
+
<span class="vp-table__total" data-vp-total>
|
|
5222
|
+
{{ total }} {{ totalLabel }}
|
|
5223
|
+
</span>
|
|
5224
|
+
@if (pageCount > 1) {
|
|
5225
|
+
<span class="vp-table__pageinfo">{{ page }} / {{ pageCount }}</span>
|
|
5226
|
+
}
|
|
5227
|
+
|
|
5228
|
+
@if (searchable) {
|
|
5229
|
+
<input
|
|
5230
|
+
type="search"
|
|
5231
|
+
class="vp-table__search"
|
|
5232
|
+
data-vp-table-search
|
|
5233
|
+
[attr.aria-label]="searchLabel"
|
|
5234
|
+
[attr.placeholder]="searchPlaceholder"
|
|
5235
|
+
[value]="searchTerm"
|
|
5236
|
+
(input)="onSearch($event)" />
|
|
5237
|
+
}
|
|
5238
|
+
|
|
5239
|
+
@if (savedViewsKey) {
|
|
5240
|
+
<span class="vp-table__views" data-vp-views>
|
|
5241
|
+
<select
|
|
5242
|
+
class="vp-table__cols-btn"
|
|
5243
|
+
data-vp-view-select
|
|
5244
|
+
[attr.aria-label]="viewsLabel"
|
|
5245
|
+
[value]="activeView"
|
|
5246
|
+
(change)="applyView(asSelectValue($event))">
|
|
5247
|
+
<option value="">{{ viewsPlaceholder }}</option>
|
|
5248
|
+
@for (view of savedViews; track view.name) {
|
|
5249
|
+
<option [value]="view.name">{{ view.name }}</option>
|
|
5250
|
+
}
|
|
5251
|
+
</select>
|
|
5252
|
+
|
|
5253
|
+
<button type="button" class="vp-table__cols-btn" data-vp-view-save
|
|
5254
|
+
(click)="saveViewPrompt()">{{ saveViewLabel }}</button>
|
|
5255
|
+
|
|
5256
|
+
@if (activeView) {
|
|
5257
|
+
<button type="button" class="vp-table__cols-btn" data-vp-view-delete
|
|
5258
|
+
(click)="deleteActiveView()">{{ deleteViewLabel }}</button>
|
|
5259
|
+
}
|
|
5260
|
+
</span>
|
|
5261
|
+
}
|
|
5262
|
+
|
|
5263
|
+
@if (exportScopes.length > 0) {
|
|
5264
|
+
@for (scope of exportScopes; track scope) {
|
|
5265
|
+
<button
|
|
5266
|
+
type="button"
|
|
5267
|
+
class="vp-table__cols-btn"
|
|
5268
|
+
[attr.data-vp-export]="scope"
|
|
5269
|
+
(click)="requestExport(scope)">{{ exportLabel(scope) }}</button>
|
|
5270
|
+
}
|
|
5271
|
+
}
|
|
5272
|
+
|
|
5273
|
+
@if (columnPicker) {
|
|
5274
|
+
<button
|
|
5275
|
+
type="button"
|
|
5276
|
+
class="vp-table__cols-btn"
|
|
5277
|
+
data-vp-cols-toggle
|
|
5278
|
+
[attr.aria-expanded]="pickerOpen"
|
|
5279
|
+
(click)="pickerOpen = !pickerOpen">{{ columnsLabel }}</button>
|
|
5280
|
+
}
|
|
5281
|
+
</div>
|
|
5282
|
+
|
|
5283
|
+
@if (selectable && selectedKeys.size > 0) {
|
|
5284
|
+
<div class="vp-table__bulk" data-vp-bulk role="group" [attr.aria-label]="bulkLabel">
|
|
5285
|
+
<span data-vp-bulk-count>{{ selectedKeys.size }} {{ selectedLabel }}</span>
|
|
5286
|
+
|
|
5287
|
+
<div class="vp-table__bulk-actions">
|
|
5288
|
+
@for (action of bulkActions; track action.code) {
|
|
5289
|
+
<button
|
|
5290
|
+
type="button"
|
|
5291
|
+
[attr.data-vp-bulk-action]="action.code"
|
|
5292
|
+
[class.vp-table__bulk-btn--danger]="action.danger"
|
|
5293
|
+
class="vp-table__bulk-btn"
|
|
5294
|
+
(click)="requestBulkAction(action)">{{ action.label }}</button>
|
|
5295
|
+
}
|
|
5296
|
+
<button type="button" class="vp-table__bulk-btn" data-vp-bulk-clear
|
|
5297
|
+
(click)="clearSelection()">{{ clearSelectionLabel }}</button>
|
|
5298
|
+
</div>
|
|
5299
|
+
</div>
|
|
5300
|
+
|
|
5301
|
+
@if (pendingAction) {
|
|
5302
|
+
<div class="vp-table__bulk-confirm" data-vp-bulk-confirm role="alertdialog"
|
|
5303
|
+
[attr.aria-label]="pendingAction.label">
|
|
5304
|
+
<span>{{ confirmPrefix }} {{ selectedKeys.size }} {{ selectedLabel }} — {{ pendingAction.label }}?</span>
|
|
5305
|
+
<span class="vp-table__bulk-actions">
|
|
5306
|
+
<button type="button" class="vp-table__bulk-btn" data-vp-bulk-cancel
|
|
5307
|
+
(click)="pendingAction = null">{{ cancelLabel }}</button>
|
|
5308
|
+
<button type="button" class="vp-table__bulk-btn vp-table__bulk-btn--danger"
|
|
5309
|
+
data-vp-bulk-confirm-ok (click)="confirmBulkAction()">{{ confirmLabel }}</button>
|
|
5310
|
+
</span>
|
|
5311
|
+
</div>
|
|
5312
|
+
}
|
|
5313
|
+
}
|
|
5314
|
+
|
|
5315
|
+
@if (bulkResult) {
|
|
5316
|
+
<div class="vp-table__bulk-report" data-vp-bulk-report role="status" aria-live="polite">
|
|
5317
|
+
@if (bulkResult.succeeded.length > 0) {
|
|
5318
|
+
<p data-vp-bulk-ok>{{ bulkResult.succeeded.length }} {{ succeededLabel }}</p>
|
|
5319
|
+
}
|
|
5320
|
+
@if (bulkResult.failed.length > 0) {
|
|
5321
|
+
<p data-vp-bulk-failed>{{ bulkResult.failed.length }} {{ failedLabel }}</p>
|
|
5322
|
+
<ul class="vp-table__bulk-failures">
|
|
5323
|
+
@for (failure of bulkResult.failed; track failure.key) {
|
|
5324
|
+
<li [attr.data-vp-bulk-failure]="failure.key">
|
|
5325
|
+
<code>{{ failure.key }}</code> — {{ failure.reason }}
|
|
5326
|
+
</li>
|
|
5327
|
+
}
|
|
5328
|
+
</ul>
|
|
5329
|
+
}
|
|
5330
|
+
</div>
|
|
5331
|
+
}
|
|
5332
|
+
|
|
5333
|
+
@if (columnPicker && pickerOpen) {
|
|
5334
|
+
<div class="vp-table__cols" data-vp-cols role="group" [attr.aria-label]="columnsLabel">
|
|
5335
|
+
@for (col of orderedColumns; track col.field; let i = $index) {
|
|
5336
|
+
<div class="vp-table__cols-row" [attr.data-vp-cols-row]="col.field">
|
|
5337
|
+
<label class="vp-table__cols-label">
|
|
5338
|
+
<input
|
|
5339
|
+
type="checkbox"
|
|
5340
|
+
[attr.data-vp-col-toggle]="col.field"
|
|
5341
|
+
[checked]="isVisible(col.field)"
|
|
5342
|
+
[disabled]="isVisible(col.field) && visibleCount === 1"
|
|
5343
|
+
(change)="setColumnVisible(col.field, !isVisible(col.field))" />
|
|
5344
|
+
{{ col.header }}
|
|
5345
|
+
</label>
|
|
5346
|
+
<span class="vp-table__cols-move">
|
|
5347
|
+
<button
|
|
5348
|
+
type="button"
|
|
5349
|
+
[attr.data-vp-col-up]="col.field"
|
|
5350
|
+
[attr.aria-label]="moveUpLabel + ': ' + col.header"
|
|
5351
|
+
[disabled]="i === 0"
|
|
5352
|
+
(click)="moveColumn(col.field, -1)">↑</button>
|
|
5353
|
+
<button
|
|
5354
|
+
type="button"
|
|
5355
|
+
[attr.data-vp-col-down]="col.field"
|
|
5356
|
+
[attr.aria-label]="moveDownLabel + ': ' + col.header"
|
|
5357
|
+
[disabled]="i === orderedColumns.length - 1"
|
|
5358
|
+
(click)="moveColumn(col.field, 1)">↓</button>
|
|
5359
|
+
</span>
|
|
5360
|
+
</div>
|
|
5361
|
+
}
|
|
5362
|
+
</div>
|
|
5363
|
+
}
|
|
5364
|
+
|
|
5365
|
+
@if (error) {
|
|
5366
|
+
<div class="vp-table__error" data-vp-table-error role="alert">
|
|
5367
|
+
<svg class="vp-table__state-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
5368
|
+
<use href="#vp-icon-error"></use>
|
|
5369
|
+
</svg>
|
|
5370
|
+
<p class="vp-table__state-text">{{ error }}</p>
|
|
5371
|
+
<button type="button" class="vp-table__retry" (click)="emitLoad()">{{ retryLabel }}</button>
|
|
5372
|
+
</div>
|
|
5373
|
+
} @else if (loading) {
|
|
5374
|
+
<div class="vp-table__skeleton" data-vp-table-skeleton aria-hidden="true">
|
|
5375
|
+
@for (i of skeletonRows; track i) {
|
|
5376
|
+
<span class="vp-table__skeleton-row"></span>
|
|
5377
|
+
}
|
|
5378
|
+
</div>
|
|
5379
|
+
<span class="vp-visually-hidden" role="status">{{ loadingLabel }}</span>
|
|
5380
|
+
} @else if (rows.length === 0) {
|
|
5381
|
+
@if (hasActiveFilter) {
|
|
5382
|
+
<div class="vp-table__empty" data-vp-table-empty-filtered role="status">
|
|
5383
|
+
<svg class="vp-table__state-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
5384
|
+
<use href="#vp-icon-filter"></use>
|
|
5385
|
+
</svg>
|
|
5386
|
+
<p class="vp-table__state-text">{{ emptyFilteredLabel }}</p>
|
|
5387
|
+
<button type="button" class="vp-table__retry" (click)="clearFilters.emit()">
|
|
5388
|
+
{{ clearFiltersLabel }}
|
|
5389
|
+
</button>
|
|
5390
|
+
</div>
|
|
5391
|
+
} @else {
|
|
5392
|
+
<div class="vp-table__empty" data-vp-table-empty role="status">
|
|
5393
|
+
<svg class="vp-table__state-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
5394
|
+
<use href="#vp-icon-empty"></use>
|
|
5395
|
+
</svg>
|
|
5396
|
+
<p class="vp-table__state-text">{{ emptyLabel }}</p>
|
|
5397
|
+
</div>
|
|
5398
|
+
}
|
|
5399
|
+
} @else {
|
|
5400
|
+
<div class="vp-table__scroll">
|
|
5401
|
+
<table class="vp-table__table" [attr.aria-label]="caption">
|
|
5402
|
+
<thead>
|
|
5403
|
+
<tr>
|
|
5404
|
+
@if (canExpand) {
|
|
5405
|
+
<th scope="col" class="vp-table__select-cell">
|
|
5406
|
+
<span class="vp-visually-hidden">{{ expandColumnLabel }}</span>
|
|
5407
|
+
</th>
|
|
5408
|
+
}
|
|
5409
|
+
@if (selectable) {
|
|
5410
|
+
<th scope="col" class="vp-table__select-cell">
|
|
5411
|
+
<input
|
|
5412
|
+
type="checkbox"
|
|
5413
|
+
data-vp-select-page
|
|
5414
|
+
[attr.aria-label]="selectPageLabel"
|
|
5415
|
+
[checked]="allOnPageSelected"
|
|
5416
|
+
[indeterminate]="someOnPageSelected"
|
|
5417
|
+
(change)="togglePageSelection()" />
|
|
5418
|
+
</th>
|
|
5419
|
+
}
|
|
5420
|
+
@for (col of visibleCols; track col.field) {
|
|
5421
|
+
<th
|
|
5422
|
+
scope="col"
|
|
5423
|
+
[attr.data-vp-col]="col.field"
|
|
5424
|
+
[attr.aria-sort]="ariaSort(col)"
|
|
5425
|
+
[style.width]="col.width || null">
|
|
5426
|
+
@if (col.sortable) {
|
|
5427
|
+
<button type="button" class="vp-table__sort" (click)="toggleSort(col.field)">
|
|
5428
|
+
{{ col.header }}
|
|
5429
|
+
<span class="vp-table__sort-icon" aria-hidden="true">{{ sortGlyph(col.field) }}</span>
|
|
5430
|
+
</button>
|
|
5431
|
+
} @else {
|
|
5432
|
+
{{ col.header }}
|
|
5433
|
+
}
|
|
5434
|
+
</th>
|
|
5435
|
+
}
|
|
5436
|
+
@if (rowActions) {
|
|
5437
|
+
<th scope="col" class="vp-table__actions-header">{{ rowActionsHeader }}</th>
|
|
5438
|
+
}
|
|
5439
|
+
</tr>
|
|
5440
|
+
</thead>
|
|
5441
|
+
<tbody>
|
|
5442
|
+
@for (row of rows; track $index) {
|
|
5443
|
+
<tr data-vp-row>
|
|
5444
|
+
@if (canExpand) {
|
|
5445
|
+
<td class="vp-table__select-cell">
|
|
5446
|
+
<button
|
|
5447
|
+
type="button"
|
|
5448
|
+
class="vp-table__expand"
|
|
5449
|
+
[attr.data-vp-expand]="keyOf(row)"
|
|
5450
|
+
[attr.aria-expanded]="isExpanded(row)"
|
|
5451
|
+
[attr.aria-label]="isExpanded(row) ? collapseLabel : expandLabel"
|
|
5452
|
+
(click)="toggleExpanded(row)">{{ isExpanded(row) ? '▾' : '▸' }}</button>
|
|
5453
|
+
</td>
|
|
5454
|
+
}
|
|
5455
|
+
@if (selectable) {
|
|
5456
|
+
<td class="vp-table__select-cell">
|
|
5457
|
+
<input
|
|
5458
|
+
type="checkbox"
|
|
5459
|
+
[attr.data-vp-select-row]="keyOf(row)"
|
|
5460
|
+
[attr.aria-label]="selectRowLabel"
|
|
5461
|
+
[checked]="isSelected(row)"
|
|
5462
|
+
(change)="toggleRow(row)" />
|
|
5463
|
+
</td>
|
|
5464
|
+
}
|
|
5465
|
+
@for (col of visibleCols; track col.field) {
|
|
5466
|
+
<td>
|
|
5467
|
+
@if (templateFor(col.field); as tpl) {
|
|
5468
|
+
<ng-container
|
|
5469
|
+
*ngTemplateOutlet="tpl; context: { $implicit: cell(row, col.field), row: row }" />
|
|
5470
|
+
} @else {
|
|
5471
|
+
{{ cell(row, col.field) }}
|
|
5472
|
+
}
|
|
5473
|
+
</td>
|
|
5474
|
+
}
|
|
5475
|
+
@if (rowActions) {
|
|
5476
|
+
<td data-vp-row-actions>
|
|
5477
|
+
<ng-container *ngTemplateOutlet="rowActions; context: { $implicit: row }" />
|
|
5478
|
+
</td>
|
|
5479
|
+
}
|
|
5480
|
+
</tr>
|
|
5481
|
+
|
|
5482
|
+
@if (canExpand && isExpanded(row)) {
|
|
5483
|
+
<tr class="vp-table__detail-row" [attr.data-vp-detail]="keyOf(row)">
|
|
5484
|
+
<td [attr.colspan]="columnSpan">
|
|
5485
|
+
@if (rowDetail) {
|
|
5486
|
+
<ng-container *ngTemplateOutlet="rowDetail; context: { $implicit: row }" />
|
|
5487
|
+
} @else {
|
|
5488
|
+
<span class="vp-table__detail-empty">{{ noDetailLabel }}</span>
|
|
5489
|
+
}
|
|
5490
|
+
</td>
|
|
5491
|
+
</tr>
|
|
5492
|
+
}
|
|
5493
|
+
}
|
|
5494
|
+
</tbody>
|
|
5495
|
+
</table>
|
|
5496
|
+
</div>
|
|
5497
|
+
|
|
5498
|
+
@if (pageCount > 1) {
|
|
5499
|
+
<nav class="vp-table__pager" [attr.aria-label]="pagerLabel">
|
|
5500
|
+
@if (pageSizeOptions.length > 0) {
|
|
5501
|
+
<select
|
|
5502
|
+
class="vp-table__page-size"
|
|
5503
|
+
data-vp-table-page-size
|
|
5504
|
+
[attr.aria-label]="pageSizeLabel"
|
|
5505
|
+
[value]="pageSize"
|
|
5506
|
+
(change)="onPageSizeChange($event)">
|
|
5507
|
+
@for (size of pageSizeOptions; track size) {
|
|
5508
|
+
<option [value]="size" [selected]="size === pageSize">{{ size }}</option>
|
|
5509
|
+
}
|
|
5510
|
+
</select>
|
|
5511
|
+
}
|
|
5512
|
+
<button
|
|
5513
|
+
type="button"
|
|
5514
|
+
class="vp-table__page-btn"
|
|
5515
|
+
[disabled]="page <= 1"
|
|
5516
|
+
(click)="goToPage(page - 1)">{{ prevLabel }}</button>
|
|
5517
|
+
<button
|
|
5518
|
+
type="button"
|
|
5519
|
+
class="vp-table__page-btn"
|
|
5520
|
+
[disabled]="page >= pageCount"
|
|
5521
|
+
(click)="goToPage(page + 1)">{{ nextLabel }}</button>
|
|
5522
|
+
</nav>
|
|
5523
|
+
}
|
|
5524
|
+
}
|
|
5525
|
+
</div>
|
|
5526
|
+
`, 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__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"] }]
|
|
4636
5527
|
}], propDecorators: { columns: [{
|
|
4637
5528
|
type: Input,
|
|
4638
5529
|
args: [{ required: true }]
|
|
@@ -4664,6 +5555,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImpo
|
|
|
4664
5555
|
type: Input
|
|
4665
5556
|
}], retryLabel: [{
|
|
4666
5557
|
type: Input
|
|
5558
|
+
}], searchable: [{
|
|
5559
|
+
type: Input
|
|
5560
|
+
}], searchLabel: [{
|
|
5561
|
+
type: Input
|
|
5562
|
+
}], searchPlaceholder: [{
|
|
5563
|
+
type: Input
|
|
5564
|
+
}], searchTerm: [{
|
|
5565
|
+
type: Input
|
|
5566
|
+
}], pageSizeOptions: [{
|
|
5567
|
+
type: Input
|
|
5568
|
+
}], pageSizeLabel: [{
|
|
5569
|
+
type: Input
|
|
4667
5570
|
}], pagerLabel: [{
|
|
4668
5571
|
type: Input
|
|
4669
5572
|
}], prevLabel: [{
|
|
@@ -4754,6 +5657,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImpo
|
|
|
4754
5657
|
type: Output
|
|
4755
5658
|
}], clearFilters: [{
|
|
4756
5659
|
type: Output
|
|
5660
|
+
}], search: [{
|
|
5661
|
+
type: Output
|
|
4757
5662
|
}] } });
|
|
4758
5663
|
|
|
4759
5664
|
/**
|
|
@@ -4935,8 +5840,8 @@ class VpDrawerComponent {
|
|
|
4935
5840
|
return;
|
|
4936
5841
|
target.focus();
|
|
4937
5842
|
}
|
|
4938
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4939
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
5843
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDrawerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5844
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: VpDrawerComponent, isStandalone: true, selector: "vp-drawer", inputs: { open: "open", title: "title", closeLabel: "closeLabel", position: "position", width: "width", modal: "modal" }, outputs: { closed: "closed" }, ngImport: i0, template: `
|
|
4940
5845
|
<p-drawer
|
|
4941
5846
|
[visible]="open"
|
|
4942
5847
|
(visibleChange)="onVisibleChange($event)"
|
|
@@ -4951,7 +5856,7 @@ class VpDrawerComponent {
|
|
|
4951
5856
|
</p-drawer>
|
|
4952
5857
|
`, isInline: true, styles: [":host{display:contents}:host ::ng-deep .vp-drawer{border-left:1px solid var(--vp-border-default);background:var(--vp-surface-overlay);color:var(--vp-text-primary);font-family:var(--vp-font-sans)}\n"], dependencies: [{ kind: "ngmodule", type: DrawerModule }, { kind: "component", type: i1$3.Drawer, selector: "p-drawer", inputs: ["appendTo", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "closeButtonProps", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen", "header", "maskStyle", "closable"], outputs: ["onShow", "onHide", "visibleChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4953
5858
|
}
|
|
4954
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5859
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDrawerComponent, decorators: [{
|
|
4955
5860
|
type: Component,
|
|
4956
5861
|
args: [{ selector: 'vp-drawer', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [DrawerModule], template: `
|
|
4957
5862
|
<p-drawer
|
|
@@ -5214,8 +6119,8 @@ class VpFieldComponent {
|
|
|
5214
6119
|
}
|
|
5215
6120
|
this.cdr.markForCheck();
|
|
5216
6121
|
}
|
|
5217
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5218
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
6122
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6123
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpFieldComponent, isStandalone: true, selector: "vp-field", inputs: { label: "label", hint: "hint", error: "error", required: "required" }, usesOnChanges: true, ngImport: i0, template: `
|
|
5219
6124
|
<div class="vp-field">
|
|
5220
6125
|
<label class="vp-field__label" [attr.for]="controlId">
|
|
5221
6126
|
{{ label }}
|
|
@@ -5238,7 +6143,7 @@ class VpFieldComponent {
|
|
|
5238
6143
|
</div>
|
|
5239
6144
|
`, isInline: true, styles: [":host{display:block}.vp-field{display:flex;flex-direction:column;gap:var(--vp-space-1);max-width:880px;margin-bottom:var(--vp-space-4)}.vp-field__label{color:var(--vp-text-primary);font-size:var(--vp-text-sm);font-weight:var(--vp-weight-medium)}.vp-field__required{margin-left:2px;color:var(--vp-sev-critical)}.vp-field__control ::ng-deep input,.vp-field__control ::ng-deep select,.vp-field__control ::ng-deep textarea{width:100%;min-height:var(--vp-control-height);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-family:inherit;font-size:var(--vp-text-base)}.vp-field__control ::ng-deep input:focus-visible,.vp-field__control ::ng-deep select:focus-visible,.vp-field__control ::ng-deep textarea:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-field__control ::ng-deep [aria-invalid=true]{border-color:var(--vp-sev-critical);border-width:2px}.vp-field__control ::ng-deep :disabled{background:var(--vp-surface-sunken);color:var(--vp-text-muted);cursor:not-allowed}.vp-field__control ::ng-deep [readonly]{background:var(--vp-surface-sunken);border-style:dashed;color:var(--vp-text-primary)}.vp-field__hint{margin:0;color:var(--vp-text-muted);font-size:var(--vp-text-xs)}.vp-field__error{margin:0;color:var(--vp-sev-critical);font-size:var(--vp-text-xs)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5240
6145
|
}
|
|
5241
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6146
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpFieldComponent, decorators: [{
|
|
5242
6147
|
type: Component,
|
|
5243
6148
|
args: [{ selector: 'vp-field', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
5244
6149
|
<div class="vp-field">
|
|
@@ -5354,8 +6259,8 @@ class VpConfirmComponent {
|
|
|
5354
6259
|
onPhraseInput(value) {
|
|
5355
6260
|
this.typedPhrase = value ?? '';
|
|
5356
6261
|
}
|
|
5357
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5358
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
6262
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpConfirmComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6263
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpConfirmComponent, isStandalone: true, selector: "vp-confirm", inputs: { open: "open", title: "title", message: "message", confirmPhrase: "confirmPhrase", tone: "tone", confirmLabel: "confirmLabel", cancelLabel: "cancelLabel", phraseHintPrefix: "phraseHintPrefix", phraseInputLabel: "phraseInputLabel" }, outputs: { confirmed: "confirmed", cancelled: "cancelled" }, ngImport: i0, template: `
|
|
5359
6264
|
@if (open) {
|
|
5360
6265
|
<div class="vp-confirm__backdrop" aria-hidden="true" (click)="cancelled.emit()"></div>
|
|
5361
6266
|
|
|
@@ -5406,7 +6311,7 @@ class VpConfirmComponent {
|
|
|
5406
6311
|
}
|
|
5407
6312
|
`, isInline: true, styles: [":host{display:contents}.vp-confirm__backdrop{position:fixed;inset:0;z-index:50;background:#00000080}.vp-confirm{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:51;width:min(28rem,calc(100vw - var(--vp-space-8)));padding:var(--vp-space-6);border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-xl);background:var(--vp-surface-overlay);color:var(--vp-text-primary);box-shadow:var(--vp-shadow-lg);font-family:var(--vp-font-sans)}.vp-confirm__title{margin:0 0 var(--vp-space-2);font-size:var(--vp-text-xl);font-weight:var(--vp-weight-semibold)}.vp-confirm__message{margin:0 0 var(--vp-space-4);color:var(--vp-text-secondary);font-size:var(--vp-text-base);line-height:var(--vp-leading-normal)}.vp-confirm__phrase{margin-bottom:var(--vp-space-4)}.vp-confirm__phrase-hint{margin:0 0 var(--vp-space-2);color:var(--vp-text-secondary);font-size:var(--vp-text-sm)}.vp-confirm__phrase-code{padding:0 var(--vp-space-1);border-radius:var(--vp-radius-sm);background:var(--vp-surface-sunken);color:var(--vp-text-primary);font-family:var(--vp-font-mono);white-space:nowrap}.vp-confirm__phrase-input{width:100%;min-height:var(--vp-control-height);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-family:var(--vp-font-mono);font-size:var(--vp-text-base)}.vp-confirm__phrase-input:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-confirm__actions{display:flex;justify-content:flex-end;gap:var(--vp-space-2)}.vp-confirm__btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);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-family:inherit;font-size:var(--vp-text-base);cursor:pointer}.vp-confirm__btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-confirm__btn:disabled{opacity:.5;cursor:not-allowed}.vp-confirm__btn--primary[data-tone=neutral]{background:var(--vp-brand);border-color:var(--vp-brand);color:var(--vp-text-on-accent)}.vp-confirm__btn--primary[data-tone=danger]{background:var(--vp-sev-critical);border-color:var(--vp-sev-critical);color:var(--vp-surface-base)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5408
6313
|
}
|
|
5409
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpConfirmComponent, decorators: [{
|
|
5410
6315
|
type: Component,
|
|
5411
6316
|
args: [{ selector: 'vp-confirm', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
5412
6317
|
@if (open) {
|
|
@@ -5543,8 +6448,8 @@ class VpDialogComponent {
|
|
|
5543
6448
|
dialogEl() {
|
|
5544
6449
|
return this.hostRef.nativeElement.querySelector('[role="dialog"]');
|
|
5545
6450
|
}
|
|
5546
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5547
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
6451
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6452
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpDialogComponent, isStandalone: true, selector: "vp-dialog", inputs: { open: "open", title: "title", closeLabel: "closeLabel" }, outputs: { closed: "closed" }, ngImport: i0, template: `
|
|
5548
6453
|
@if (open) {
|
|
5549
6454
|
<div class="vp-dialog__backdrop" aria-hidden="true" (click)="closed.emit()"></div>
|
|
5550
6455
|
|
|
@@ -5581,7 +6486,7 @@ class VpDialogComponent {
|
|
|
5581
6486
|
}
|
|
5582
6487
|
`, isInline: true, styles: [":host{display:contents}.vp-dialog__backdrop{position:fixed;inset:0;z-index:50;background:#00000080}.vp-dialog{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:51;display:flex;flex-direction:column;width:min(36rem,calc(100vw - var(--vp-space-8)));max-height:calc(100dvh - var(--vp-space-12));border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-xl);background:var(--vp-surface-overlay);color:var(--vp-text-primary);box-shadow:var(--vp-shadow-lg);font-family:var(--vp-font-sans)}.vp-dialog__header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--vp-space-3);padding:var(--vp-space-5) var(--vp-space-6) var(--vp-space-3)}.vp-dialog__title{margin:0;font-size:var(--vp-text-xl);font-weight:var(--vp-weight-semibold)}.vp-dialog__close{display:inline-flex;align-items:center;justify-content:center;width:var(--vp-min-target);height:var(--vp-min-target);flex-shrink:0;border:0;border-radius:var(--vp-radius-sm);background:transparent;color:var(--vp-text-muted);cursor:pointer}.vp-dialog__close:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-dialog__close:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-dialog__close-icon{width:16px;height:16px}.vp-dialog__body{flex:1;min-height:0;overflow-y:auto;padding:0 var(--vp-space-6);color:var(--vp-text-secondary);line-height:var(--vp-leading-normal)}.vp-dialog__footer{display:flex;justify-content:flex-end;gap:var(--vp-space-2);padding:var(--vp-space-4) var(--vp-space-6) var(--vp-space-5)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5583
6488
|
}
|
|
5584
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDialogComponent, decorators: [{
|
|
5585
6490
|
type: Component,
|
|
5586
6491
|
args: [{ selector: 'vp-dialog', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
5587
6492
|
@if (open) {
|
|
@@ -5674,8 +6579,8 @@ class VpSeverityBadgeComponent {
|
|
|
5674
6579
|
get iconRef() {
|
|
5675
6580
|
return '#vp-icon-' + severityMeta(this.resolved).icon;
|
|
5676
6581
|
}
|
|
5677
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5678
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
6582
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSeverityBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6583
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: VpSeverityBadgeComponent, isStandalone: true, selector: "vp-severity-badge", inputs: { level: "level", value: "value", scale: "scale", label: "label" }, ngImport: i0, template: `
|
|
5679
6584
|
<span class="vp-sev-badge" data-vp-sev [attr.data-level]="resolved">
|
|
5680
6585
|
<svg
|
|
5681
6586
|
class="vp-sev-badge__icon"
|
|
@@ -5689,7 +6594,7 @@ class VpSeverityBadgeComponent {
|
|
|
5689
6594
|
</span>
|
|
5690
6595
|
`, isInline: true, styles: [":host{display:inline-flex}.vp-sev-badge{display:inline-flex;align-items:center;gap:var(--vp-space-1);min-height:var(--vp-min-target);padding:var(--vp-space-1) var(--vp-space-2);border:1px solid transparent;border-radius:var(--vp-radius-full);font-family:var(--vp-font-sans);font-size:var(--vp-text-xs);font-weight:var(--vp-weight-semibold);line-height:var(--vp-leading-tight);white-space:nowrap}.vp-sev-badge__icon{width:1em;height:1em;flex:0 0 auto}.vp-sev-badge[data-level=critical]{color:var(--vp-sev-critical);background:var(--vp-sev-critical-bg);border-color:var(--vp-sev-critical-border)}.vp-sev-badge[data-level=high]{color:var(--vp-sev-high);background:var(--vp-sev-high-bg);border-color:var(--vp-sev-high-border)}.vp-sev-badge[data-level=medium]{color:var(--vp-sev-medium);background:var(--vp-sev-medium-bg);border-color:var(--vp-sev-medium-border)}.vp-sev-badge[data-level=low]{color:var(--vp-sev-low);background:var(--vp-sev-low-bg);border-color:var(--vp-sev-low-border)}.vp-sev-badge[data-level=clean]{color:var(--vp-sev-clean);background:var(--vp-sev-clean-bg);border-color:var(--vp-sev-clean-border)}.vp-sev-badge[data-level=unknown]{color:var(--vp-sev-unknown);background:var(--vp-sev-unknown-bg);border-color:var(--vp-sev-unknown-border)}.vp-sev-badge[data-level=na]{color:var(--vp-sev-na);background:var(--vp-sev-na-bg);border-color:var(--vp-sev-na-border);border-style:dashed}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5691
6596
|
}
|
|
5692
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6597
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSeverityBadgeComponent, decorators: [{
|
|
5693
6598
|
type: Component,
|
|
5694
6599
|
args: [{ selector: 'vp-severity-badge', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
5695
6600
|
<span class="vp-sev-badge" data-vp-sev [attr.data-level]="resolved">
|
|
@@ -5756,8 +6661,8 @@ class VpHashValueComponent {
|
|
|
5756
6661
|
clip?.writeText(this.value).catch(() => undefined);
|
|
5757
6662
|
this.copied.emit(this.value);
|
|
5758
6663
|
}
|
|
5759
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5760
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
6664
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpHashValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6665
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: VpHashValueComponent, isStandalone: true, selector: "vp-hash-value", inputs: { value: "value", edge: "edge", copyLabel: "copyLabel" }, outputs: { copied: "copied" }, ngImport: i0, template: `
|
|
5761
6666
|
<span class="vp-hash">
|
|
5762
6667
|
<code class="vp-hash__value" data-vp-hash [attr.title]="value">{{ display }}</code>
|
|
5763
6668
|
<button
|
|
@@ -5773,7 +6678,7 @@ class VpHashValueComponent {
|
|
|
5773
6678
|
</span>
|
|
5774
6679
|
`, isInline: true, styles: [":host{display:inline-flex}.vp-hash{display:inline-flex;align-items:center;gap:var(--vp-space-1);max-width:100%}.vp-hash__value{font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);color:var(--vp-text-secondary);white-space:nowrap}.vp-hash__copy{display:inline-flex;align-items:center;justify-content:center;width:var(--vp-min-target);height:var(--vp-min-target);flex-shrink:0;border:0;border-radius:var(--vp-radius-sm);background:transparent;color:var(--vp-text-muted);cursor:pointer}.vp-hash__copy:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-hash__copy:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-hash__copy-icon{width:14px;height:14px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5775
6680
|
}
|
|
5776
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpHashValueComponent, decorators: [{
|
|
5777
6682
|
type: Component,
|
|
5778
6683
|
args: [{ selector: 'vp-hash-value', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
5779
6684
|
<span class="vp-hash">
|
|
@@ -5849,8 +6754,8 @@ class VpIocListComponent {
|
|
|
5849
6754
|
default: return '#vp-icon-external';
|
|
5850
6755
|
}
|
|
5851
6756
|
}
|
|
5852
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5853
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
6757
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpIocListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6758
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpIocListComponent, isStandalone: true, selector: "vp-ioc-list", inputs: { items: "items", defanged: "defanged", warningLabel: "warningLabel" }, ngImport: i0, template: `
|
|
5854
6759
|
@if (items.length > 0) {
|
|
5855
6760
|
<div class="vp-ioc">
|
|
5856
6761
|
<p class="vp-ioc__warning" data-vp-ioc-warning role="note">
|
|
@@ -5881,7 +6786,7 @@ class VpIocListComponent {
|
|
|
5881
6786
|
}
|
|
5882
6787
|
`, isInline: true, styles: [":host{display:block}.vp-ioc__warning{display:flex;align-items:center;gap:var(--vp-space-2);margin:0 0 var(--vp-space-3);padding:var(--vp-space-2) var(--vp-space-3);border:1px solid var(--vp-sev-high-border);border-radius:var(--vp-radius-md);background:var(--vp-sev-high-bg);color:var(--vp-sev-high);font-size:var(--vp-text-xs)}.vp-ioc__warning-icon{width:16px;height:16px;flex:0 0 auto}.vp-ioc__list{list-style:none;margin:0;padding:0}.vp-ioc__item{display:flex;align-items:center;gap:var(--vp-space-2);padding:var(--vp-space-2) 0;border-bottom:1px solid var(--vp-border-subtle)}.vp-ioc__item:last-child{border-bottom:0}.vp-ioc__icon{width:16px;height:16px;flex:0 0 auto;color:var(--vp-text-muted)}.vp-ioc__type{flex:0 0 auto;min-width:3.5rem;color:var(--vp-text-muted);font-size:var(--vp-text-xs);text-transform:uppercase}.vp-ioc__value{flex:1;min-width:0;font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);color:var(--vp-text-primary);overflow-wrap:anywhere}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5883
6788
|
}
|
|
5884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpIocListComponent, decorators: [{
|
|
5885
6790
|
type: Component,
|
|
5886
6791
|
args: [{ selector: 'vp-ioc-list', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
5887
6792
|
@if (items.length > 0) {
|
|
@@ -5968,8 +6873,8 @@ class VpKpiCardComponent {
|
|
|
5968
6873
|
default: return '#vp-icon-check';
|
|
5969
6874
|
}
|
|
5970
6875
|
}
|
|
5971
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5972
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
6876
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpKpiCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6877
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpKpiCardComponent, isStandalone: true, selector: "vp-kpi-card", inputs: { label: "label", value: "value", change: "change", hint: "hint", emptyLabel: "emptyLabel" }, ngImport: i0, template: `
|
|
5973
6878
|
<div class="vp-kpi">
|
|
5974
6879
|
<span class="vp-kpi__label">{{ label }}</span>
|
|
5975
6880
|
|
|
@@ -5997,7 +6902,7 @@ class VpKpiCardComponent {
|
|
|
5997
6902
|
</div>
|
|
5998
6903
|
`, isInline: true, styles: [":host{display:block}.vp-kpi{display:flex;flex-direction:column;gap:var(--vp-space-1);padding:var(--vp-space-4);border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);font-family:var(--vp-font-sans)}.vp-kpi__label{color:var(--vp-text-muted);font-size:var(--vp-text-sm)}.vp-kpi__value{color:var(--vp-text-primary);font-size:var(--vp-text-3xl);font-weight:var(--vp-weight-semibold);line-height:var(--vp-leading-tight);font-variant-numeric:tabular-nums}.vp-kpi__empty{color:var(--vp-text-muted);font-size:var(--vp-text-base)}.vp-kpi__trend{display:inline-flex;align-items:center;gap:var(--vp-space-1);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums}.vp-kpi__trend[data-direction=up]{color:var(--vp-sev-clean)}.vp-kpi__trend[data-direction=down]{color:var(--vp-sev-critical)}.vp-kpi__trend[data-direction=flat]{color:var(--vp-text-muted)}.vp-kpi__trend-icon{width:14px;height:14px}.vp-kpi__hint{color:var(--vp-text-muted);font-size:var(--vp-text-xs)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5999
6904
|
}
|
|
6000
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6905
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpKpiCardComponent, decorators: [{
|
|
6001
6906
|
type: Component,
|
|
6002
6907
|
args: [{ selector: 'vp-kpi-card', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
6003
6908
|
<div class="vp-kpi">
|
|
@@ -6086,8 +6991,8 @@ class VpRiskScoreComponent {
|
|
|
6086
6991
|
}
|
|
6087
6992
|
return `${this.ariaPrefix}: ${this.value} / ${this.max} — ${this.levelLabel}`;
|
|
6088
6993
|
}
|
|
6089
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6090
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
6994
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpRiskScoreComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6995
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpRiskScoreComponent, isStandalone: true, selector: "vp-risk-score", inputs: { value: "value", scale: "scale", label: "label", unknownLabel: "unknownLabel", ariaPrefix: "ariaPrefix" }, ngImport: i0, template: `
|
|
6091
6996
|
<div
|
|
6092
6997
|
class="vp-score"
|
|
6093
6998
|
data-vp-score
|
|
@@ -6112,7 +7017,7 @@ class VpRiskScoreComponent {
|
|
|
6112
7017
|
</div>
|
|
6113
7018
|
`, isInline: true, styles: [":host{display:block}.vp-score{display:flex;flex-direction:column;gap:var(--vp-space-1);font-family:var(--vp-font-sans)}.vp-score__number{display:flex;align-items:baseline;gap:var(--vp-space-1)}.vp-score__value{font-size:var(--vp-text-4xl);font-weight:var(--vp-weight-bold);line-height:1;font-variant-numeric:tabular-nums}.vp-score__scale{color:var(--vp-text-muted);font-size:var(--vp-text-lg)}.vp-score__unknown{color:var(--vp-text-muted);font-size:var(--vp-text-xl);font-weight:var(--vp-weight-medium)}.vp-score__level{display:inline-flex;align-items:center;gap:var(--vp-space-1);font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold)}.vp-score__icon{width:1em;height:1em}.vp-score[data-level=critical] .vp-score__value,.vp-score[data-level=critical] .vp-score__level{color:var(--vp-sev-critical)}.vp-score[data-level=high] .vp-score__value,.vp-score[data-level=high] .vp-score__level{color:var(--vp-sev-high)}.vp-score[data-level=medium] .vp-score__value,.vp-score[data-level=medium] .vp-score__level{color:var(--vp-sev-medium)}.vp-score[data-level=low] .vp-score__value,.vp-score[data-level=low] .vp-score__level{color:var(--vp-sev-low)}.vp-score[data-level=clean] .vp-score__value,.vp-score[data-level=clean] .vp-score__level{color:var(--vp-sev-clean)}.vp-score[data-level=unknown] .vp-score__level,.vp-score[data-level=na] .vp-score__level{color:var(--vp-sev-unknown)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6114
7019
|
}
|
|
6115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7020
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpRiskScoreComponent, decorators: [{
|
|
6116
7021
|
type: Component,
|
|
6117
7022
|
args: [{ selector: 'vp-risk-score', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
6118
7023
|
<div
|
|
@@ -6203,8 +7108,8 @@ class VpScoreBreakdownComponent {
|
|
|
6203
7108
|
default: return '#vp-icon-scan';
|
|
6204
7109
|
}
|
|
6205
7110
|
}
|
|
6206
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6207
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
7111
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpScoreBreakdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7112
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpScoreBreakdownComponent, isStandalone: true, selector: "vp-score-breakdown", inputs: { evidence: "evidence", title: "title", emptyLabel: "emptyLabel", note: "note" }, ngImport: i0, template: `
|
|
6208
7113
|
<div class="vp-breakdown">
|
|
6209
7114
|
<h3 class="vp-breakdown__title">{{ title }}</h3>
|
|
6210
7115
|
|
|
@@ -6235,7 +7140,7 @@ class VpScoreBreakdownComponent {
|
|
|
6235
7140
|
</div>
|
|
6236
7141
|
`, isInline: true, styles: [":host{display:block}.vp-breakdown{padding:var(--vp-space-4);border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);font-family:var(--vp-font-sans)}.vp-breakdown__title{margin:0 0 var(--vp-space-3);color:var(--vp-text-primary);font-size:var(--vp-text-base);font-weight:var(--vp-weight-semibold)}.vp-breakdown__list{list-style:none;margin:0;padding:0}.vp-breakdown__item{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:var(--vp-space-2);padding:var(--vp-space-2) 0;border-bottom:1px solid var(--vp-border-subtle)}.vp-breakdown__item:last-child{border-bottom:0}.vp-breakdown__icon{width:16px;height:16px;color:var(--vp-text-muted)}.vp-breakdown__label{color:var(--vp-text-primary);font-size:var(--vp-text-sm)}.vp-breakdown__count{color:var(--vp-text-secondary);font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold);font-variant-numeric:tabular-nums}.vp-breakdown__detail{grid-column:2 / -1;color:var(--vp-text-muted);font-size:var(--vp-text-xs)}.vp-breakdown__empty{margin:0;color:var(--vp-text-muted);font-size:var(--vp-text-sm)}.vp-breakdown__note{margin:var(--vp-space-3) 0 0;padding-top:var(--vp-space-2);border-top:1px solid var(--vp-border-subtle);color:var(--vp-text-muted);font-size:var(--vp-text-xs);line-height:var(--vp-leading-normal)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6237
7142
|
}
|
|
6238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpScoreBreakdownComponent, decorators: [{
|
|
6239
7144
|
type: Component,
|
|
6240
7145
|
args: [{ selector: 'vp-score-breakdown', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
6241
7146
|
<div class="vp-breakdown">
|
|
@@ -6302,8 +7207,8 @@ class VpSettingsShellComponent {
|
|
|
6302
7207
|
iconClass(section) {
|
|
6303
7208
|
return 'vp-settings__icon ' + primeIconClass(section.icon, 'pi-cog');
|
|
6304
7209
|
}
|
|
6305
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6306
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
7210
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSettingsShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7211
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpSettingsShellComponent, isStandalone: true, selector: "vp-settings-shell", inputs: { sections: "sections", activeCode: "activeCode", navLabel: "navLabel" }, ngImport: i0, template: `
|
|
6307
7212
|
<div class="vp-settings">
|
|
6308
7213
|
<nav class="vp-settings__nav" [attr.aria-label]="navLabel">
|
|
6309
7214
|
<ul class="vp-settings__list">
|
|
@@ -6343,7 +7248,7 @@ class VpSettingsShellComponent {
|
|
|
6343
7248
|
</div>
|
|
6344
7249
|
`, isInline: true, styles: [":host{display:block}.vp-settings{display:grid;grid-template-columns:15rem 1fr;gap:var(--vp-space-8);align-items:start}.vp-settings__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--vp-space-1)}.vp-settings__item{margin:0}.vp-settings__link{display:flex;align-items:center;gap:var(--vp-space-2);min-height:var(--vp-control-height);padding:var(--vp-space-2) var(--vp-space-3);border-radius:var(--vp-radius-md);color:var(--vp-text-secondary);text-decoration:none;font-size:var(--vp-text-base)}.vp-settings__link:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-settings__link:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-settings__link--active{background:var(--vp-brand-subtle);color:var(--vp-text-primary);font-weight:var(--vp-weight-semibold);box-shadow:inset 3px 0 0 var(--vp-brand)}.vp-settings__link--disabled{color:var(--vp-text-muted);cursor:not-allowed}.vp-settings__link--disabled:hover{background:transparent;color:var(--vp-text-muted)}.vp-settings__reason{display:block;padding:0 var(--vp-space-3) var(--vp-space-2) calc(var(--vp-space-3) + 18px + var(--vp-space-2));color:var(--vp-text-muted);font-size:var(--vp-text-xs);line-height:var(--vp-leading-tight)}.vp-settings__icon{width:18px;font-size:18px;line-height:1;flex:0 0 auto}.vp-settings__content{min-width:0;max-width:880px}@media(max-width:900px){.vp-settings{grid-template-columns:1fr;gap:var(--vp-space-4)}.vp-settings__list{flex-direction:row;flex-wrap:wrap}.vp-settings__reason{display:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6345
7250
|
}
|
|
6346
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7251
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSettingsShellComponent, decorators: [{
|
|
6347
7252
|
type: Component,
|
|
6348
7253
|
args: [{ selector: 'vp-settings-shell', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
6349
7254
|
<div class="vp-settings">
|
|
@@ -6418,8 +7323,8 @@ class VpSaveBarComponent {
|
|
|
6418
7323
|
this.save = new EventEmitter();
|
|
6419
7324
|
this.discard = new EventEmitter();
|
|
6420
7325
|
}
|
|
6421
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6422
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
7326
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSaveBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7327
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpSaveBarComponent, isStandalone: true, selector: "vp-save-bar", inputs: { dirty: "dirty", saving: "saving", message: "message", saveLabel: "saveLabel", savingLabel: "savingLabel", discardLabel: "discardLabel" }, outputs: { save: "save", discard: "discard" }, ngImport: i0, template: `
|
|
6423
7328
|
@if (dirty) {
|
|
6424
7329
|
<div class="vp-savebar" data-vp-savebar role="status" aria-live="polite">
|
|
6425
7330
|
<span class="vp-savebar__message">{{ message }}</span>
|
|
@@ -6443,7 +7348,7 @@ class VpSaveBarComponent {
|
|
|
6443
7348
|
}
|
|
6444
7349
|
`, isInline: true, styles: [":host{display:contents}.vp-savebar{position:sticky;bottom:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-4);margin-top:var(--vp-space-6);padding:var(--vp-space-3) var(--vp-space-4);border:1px solid var(--vp-border-strong);border-radius:var(--vp-radius-md);background:var(--vp-surface-overlay);font-family:var(--vp-font-sans);font-size:var(--vp-text-sm);color:var(--vp-text-primary)}.vp-savebar__actions{display:flex;gap:var(--vp-space-2);flex-shrink:0}.vp-savebar__btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);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-savebar__btn:disabled{opacity:.5;cursor:not-allowed}.vp-savebar__btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-savebar__btn--primary{background:var(--vp-brand);border-color:var(--vp-brand);color:var(--vp-text-on-accent)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6445
7350
|
}
|
|
6446
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSaveBarComponent, decorators: [{
|
|
6447
7352
|
type: Component,
|
|
6448
7353
|
args: [{ selector: 'vp-save-bar', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
6449
7354
|
@if (dirty) {
|
|
@@ -6518,8 +7423,8 @@ class VpDangerZoneComponent {
|
|
|
6518
7423
|
// Sayac deseni — `performance.now()` belirsiz ve cakisabilir.
|
|
6519
7424
|
this.titleId = `vp-danger-${++dangerSeq}-title`;
|
|
6520
7425
|
}
|
|
6521
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6522
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
7426
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDangerZoneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7427
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpDangerZoneComponent, isStandalone: true, selector: "vp-danger-zone", inputs: { title: "title", description: "description", actionLabel: "actionLabel", waitNotice: "waitNotice", disabled: "disabled" }, outputs: { requested: "requested" }, ngImport: i0, template: `
|
|
6523
7428
|
<section class="vp-danger" data-vp-danger-zone [attr.aria-labelledby]="titleId">
|
|
6524
7429
|
<h3 class="vp-danger__title" [id]="titleId">{{ title }}</h3>
|
|
6525
7430
|
|
|
@@ -6544,7 +7449,7 @@ class VpDangerZoneComponent {
|
|
|
6544
7449
|
</section>
|
|
6545
7450
|
`, isInline: true, styles: [":host{display:block}.vp-danger{margin-top:var(--vp-space-8);padding:var(--vp-space-4);border:2px solid var(--vp-sev-critical-border);border-radius:var(--vp-radius-lg);background:var(--vp-sev-critical-bg);font-family:var(--vp-font-sans)}.vp-danger__title{margin:0 0 var(--vp-space-2);color:var(--vp-sev-critical);font-size:var(--vp-text-lg);font-weight:var(--vp-weight-semibold)}.vp-danger__description{margin:0 0 var(--vp-space-3);color:var(--vp-text-secondary);font-size:var(--vp-text-sm);line-height:var(--vp-leading-normal)}.vp-danger__notice{display:flex;align-items:center;gap:var(--vp-space-2);margin:0 0 var(--vp-space-3);color:var(--vp-text-secondary);font-size:var(--vp-text-xs)}.vp-danger__notice-icon{width:14px;height:14px;flex:0 0 auto}.vp-danger__action{min-height:var(--vp-control-height);padding:0 var(--vp-space-4);border:1px solid var(--vp-sev-critical);border-radius:var(--vp-radius-md);background:var(--vp-sev-critical);color:var(--vp-surface-base);font:inherit;font-weight:var(--vp-weight-medium);cursor:pointer}.vp-danger__action:disabled{opacity:.5;cursor:not-allowed}.vp-danger__action:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6546
7451
|
}
|
|
6547
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7452
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDangerZoneComponent, decorators: [{
|
|
6548
7453
|
type: Component,
|
|
6549
7454
|
args: [{ selector: 'vp-danger-zone', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
6550
7455
|
<section class="vp-danger" data-vp-danger-zone [attr.aria-labelledby]="titleId">
|
|
@@ -6619,8 +7524,8 @@ const COMPONENTS = [
|
|
|
6619
7524
|
VpDangerZoneComponent,
|
|
6620
7525
|
];
|
|
6621
7526
|
class VirusisUiModule {
|
|
6622
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6623
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
7527
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VirusisUiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7528
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.31", ngImport: i0, type: VirusisUiModule, imports: [VpStateComponent,
|
|
6624
7529
|
VpShellComponent,
|
|
6625
7530
|
VpPageHeaderComponent,
|
|
6626
7531
|
VpBannerComponent,
|
|
@@ -6661,9 +7566,9 @@ class VirusisUiModule {
|
|
|
6661
7566
|
VpSettingsShellComponent,
|
|
6662
7567
|
VpSaveBarComponent,
|
|
6663
7568
|
VpDangerZoneComponent] }); }
|
|
6664
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
7569
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VirusisUiModule }); }
|
|
6665
7570
|
}
|
|
6666
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7571
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VirusisUiModule, decorators: [{
|
|
6667
7572
|
type: NgModule,
|
|
6668
7573
|
args: [{
|
|
6669
7574
|
imports: [...COMPONENTS],
|
|
@@ -6735,8 +7640,8 @@ class VpVerdictComponent {
|
|
|
6735
7640
|
default: return 'unknown';
|
|
6736
7641
|
}
|
|
6737
7642
|
}
|
|
6738
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6739
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
7643
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpVerdictComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7644
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpVerdictComponent, isStandalone: true, selector: "vp-verdict", inputs: { kind: "kind", headline: "headline", advice: "advice", coverageNote: "coverageNote", actionLabel: "actionLabel" }, outputs: { action: "action" }, ngImport: i0, template: `
|
|
6740
7645
|
<section
|
|
6741
7646
|
class="vp-verdict"
|
|
6742
7647
|
data-vp-verdict
|
|
@@ -6769,7 +7674,7 @@ class VpVerdictComponent {
|
|
|
6769
7674
|
</section>
|
|
6770
7675
|
`, isInline: true, styles: [":host{display:block}.vp-verdict{display:flex;align-items:flex-start;gap:var(--vp-space-3);padding:var(--vp-space-4);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);font-family:var(--vp-font-sans);color:var(--vp-text-primary)}.vp-verdict__icon{width:1.5rem;height:1.5rem;flex-shrink:0}.vp-verdict__body{flex:1;display:grid;gap:var(--vp-space-1)}.vp-verdict__headline{margin:0;font-size:var(--vp-text-lg);font-weight:600}.vp-verdict__advice{margin:0}.vp-verdict__coverage{margin:0;color:var(--vp-text-muted);font-size:var(--vp-text-sm)}.vp-verdict__action{min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-4);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;flex-shrink:0}.vp-verdict__action:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-verdict[data-kind=malicious]{border-color:var(--vp-danger)}.vp-verdict[data-kind=suspicious]{border-color:var(--vp-warning, var(--vp-border-default))}.vp-verdict[data-kind=clean]{border-color:var(--vp-success, var(--vp-border-default))}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6771
7676
|
}
|
|
6772
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7677
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpVerdictComponent, decorators: [{
|
|
6773
7678
|
type: Component,
|
|
6774
7679
|
args: [{ selector: 'vp-verdict', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
6775
7680
|
<section
|
|
@@ -6857,8 +7762,8 @@ class VpEngineResultComponent {
|
|
|
6857
7762
|
return 'error';
|
|
6858
7763
|
return this.detection ? 'detected' : 'clean';
|
|
6859
7764
|
}
|
|
6860
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6861
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
7765
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpEngineResultComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7766
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpEngineResultComponent, isStandalone: true, selector: "vp-engine-result", inputs: { engine: "engine", error: "error", errorDetail: "errorDetail", detection: "detection", severity: "severity", cleanLabel: "cleanLabel", errorLabel: "errorLabel" }, ngImport: i0, template: `
|
|
6862
7767
|
<div class="vp-engine" data-vp-engine [attr.data-state]="state">
|
|
6863
7768
|
<span class="vp-engine__name" data-vp-engine-name>{{ engine }}</span>
|
|
6864
7769
|
|
|
@@ -6881,7 +7786,7 @@ class VpEngineResultComponent {
|
|
|
6881
7786
|
</div>
|
|
6882
7787
|
`, isInline: true, styles: [":host{display:block}.vp-engine{display:flex;align-items:center;gap:var(--vp-space-3);padding:var(--vp-space-2) var(--vp-space-3);border-bottom:1px solid var(--vp-border-subtle);font-family:var(--vp-font-sans);font-size:var(--vp-text-sm);color:var(--vp-text-primary)}.vp-engine__name{flex:0 0 12rem;font-weight:600}.vp-engine__detection{flex:1;font-family:var(--vp-font-mono)}.vp-engine__clean{flex:1;color:var(--vp-text-muted)}.vp-engine__error{flex:1;display:flex;align-items:center;gap:var(--vp-space-2);color:var(--vp-warning-text, var(--vp-text-primary))}.vp-engine__error-detail{color:var(--vp-text-muted)}.vp-engine__icon{width:1rem;height:1rem}.vp-engine[data-state=error]{background:var(--vp-surface-raised)}\n"], dependencies: [{ kind: "component", type: VpSeverityBadgeComponent, selector: "vp-severity-badge", inputs: ["level", "value", "scale", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6883
7788
|
}
|
|
6884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpEngineResultComponent, decorators: [{
|
|
6885
7790
|
type: Component,
|
|
6886
7791
|
args: [{ selector: 'vp-engine-result', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [VpSeverityBadgeComponent], template: `
|
|
6887
7792
|
<div class="vp-engine" data-vp-engine [attr.data-state]="state">
|
|
@@ -6960,8 +7865,8 @@ class VpDetectionRowComponent {
|
|
|
6960
7865
|
get hasConfidence() {
|
|
6961
7866
|
return this.confidence !== null && this.confidence !== undefined;
|
|
6962
7867
|
}
|
|
6963
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6964
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
7868
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDetectionRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7869
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpDetectionRowComponent, isStandalone: true, selector: "vp-detection-row", inputs: { name: "name", source: "source", severity: "severity", confidence: "confidence", description: "description", confidenceLabel: "confidenceLabel", confidenceUnknownLabel: "confidenceUnknownLabel" }, ngImport: i0, template: `
|
|
6965
7870
|
<div class="vp-detection" data-vp-detection>
|
|
6966
7871
|
<div class="vp-detection__main">
|
|
6967
7872
|
<span class="vp-detection__name" data-vp-detection-name>{{ name }}</span>
|
|
@@ -6994,7 +7899,7 @@ class VpDetectionRowComponent {
|
|
|
6994
7899
|
</div>
|
|
6995
7900
|
`, isInline: true, styles: [":host{display:block}.vp-detection{display:grid;gap:var(--vp-space-2);padding:var(--vp-space-3);border-bottom:1px solid var(--vp-border-subtle);font-family:var(--vp-font-sans);font-size:var(--vp-text-sm);color:var(--vp-text-primary)}.vp-detection__main{display:flex;align-items:baseline;gap:var(--vp-space-2)}.vp-detection__name{font-family:var(--vp-font-mono);font-weight:600}.vp-detection__source{color:var(--vp-text-muted)}.vp-detection__signals{display:flex;align-items:center;gap:var(--vp-space-3)}.vp-detection__confidence{font-variant-numeric:tabular-nums;color:var(--vp-text-muted)}.vp-detection__confidence--unknown{font-style:italic}.vp-detection__desc{margin:0;color:var(--vp-text-muted)}\n"], dependencies: [{ kind: "component", type: VpSeverityBadgeComponent, selector: "vp-severity-badge", inputs: ["level", "value", "scale", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6996
7901
|
}
|
|
6997
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7902
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDetectionRowComponent, decorators: [{
|
|
6998
7903
|
type: Component,
|
|
6999
7904
|
args: [{ selector: 'vp-detection-row', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [VpSeverityBadgeComponent], template: `
|
|
7000
7905
|
<div class="vp-detection" data-vp-detection>
|
|
@@ -7098,8 +8003,8 @@ class VpScanTimelineComponent {
|
|
|
7098
8003
|
const seconds = ms / 1000;
|
|
7099
8004
|
return seconds < 60 ? `${seconds.toFixed(1)} sn` : `${Math.floor(seconds / 60)} dk ${Math.round(seconds % 60)} sn`;
|
|
7100
8005
|
}
|
|
7101
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7102
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
8006
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpScanTimelineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8007
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpScanTimelineComponent, isStandalone: true, selector: "vp-scan-timeline", inputs: { stages: "stages", label: "label", stateLabels: "stateLabels" }, ngImport: i0, template: `
|
|
7103
8008
|
<ol class="vp-timeline" data-vp-timeline [attr.aria-label]="label">
|
|
7104
8009
|
@for (stage of stages; track stage.code) {
|
|
7105
8010
|
<li
|
|
@@ -7126,7 +8031,7 @@ class VpScanTimelineComponent {
|
|
|
7126
8031
|
</ol>
|
|
7127
8032
|
`, isInline: true, styles: [":host{display:block}.vp-timeline{list-style:none;margin:0;padding:0;display:grid;gap:var(--vp-space-2);font-family:var(--vp-font-sans);font-size:var(--vp-text-sm);color:var(--vp-text-primary)}.vp-timeline__item{display:flex;align-items:baseline;gap:var(--vp-space-3)}.vp-timeline__marker{flex:0 0 1.25rem;text-align:center}.vp-timeline__body{flex:1;display:grid;gap:var(--vp-space-1)}.vp-timeline__detail{color:var(--vp-text-muted)}.vp-timeline__duration{font-variant-numeric:tabular-nums;color:var(--vp-text-muted)}.vp-timeline__item[data-state=pending]{color:var(--vp-text-muted)}.vp-timeline__item[data-state=skipped]{color:var(--vp-text-muted);font-style:italic}.vp-timeline__item[data-state=failed]{color:var(--vp-danger)}.vp-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7128
8033
|
}
|
|
7129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8034
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpScanTimelineComponent, decorators: [{
|
|
7130
8035
|
type: Component,
|
|
7131
8036
|
args: [{ selector: 'vp-scan-timeline', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
7132
8037
|
<ol class="vp-timeline" data-vp-timeline [attr.aria-label]="label">
|
|
@@ -7764,10 +8669,10 @@ class VpAppKeyInterceptor {
|
|
|
7764
8669
|
}
|
|
7765
8670
|
return next.handle(req.clone({ setHeaders: { [APP_KEY_HEADER]: this.appKey } }));
|
|
7766
8671
|
}
|
|
7767
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7768
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
8672
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpAppKeyInterceptor, deps: [{ token: VP_APP_KEY }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8673
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpAppKeyInterceptor }); }
|
|
7769
8674
|
}
|
|
7770
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpAppKeyInterceptor, decorators: [{
|
|
7771
8676
|
type: Injectable
|
|
7772
8677
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
7773
8678
|
type: Inject,
|
|
@@ -7794,10 +8699,10 @@ class VpCsrfInterceptor {
|
|
|
7794
8699
|
}
|
|
7795
8700
|
return next.handle(req.clone({ setHeaders: { 'X-CSRF-TOKEN': token } }));
|
|
7796
8701
|
}
|
|
7797
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7798
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
8702
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpCsrfInterceptor, deps: [{ token: VP_CSRF_PORT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8703
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpCsrfInterceptor }); }
|
|
7799
8704
|
}
|
|
7800
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpCsrfInterceptor, decorators: [{
|
|
7801
8706
|
type: Injectable
|
|
7802
8707
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
7803
8708
|
type: Inject,
|
|
@@ -7821,10 +8726,10 @@ class VpAuthTokenInterceptor {
|
|
|
7821
8726
|
}
|
|
7822
8727
|
return next.handle(req.clone({ setHeaders: { Authorization: `Bearer ${token}` } }));
|
|
7823
8728
|
}
|
|
7824
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7825
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
8729
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpAuthTokenInterceptor, deps: [{ token: VP_AUTH_TOKEN_PORT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8730
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpAuthTokenInterceptor }); }
|
|
7826
8731
|
}
|
|
7827
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8732
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpAuthTokenInterceptor, decorators: [{
|
|
7828
8733
|
type: Injectable
|
|
7829
8734
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
7830
8735
|
type: Inject,
|
|
@@ -7849,10 +8754,10 @@ class VpHttpIdsInterceptor {
|
|
|
7849
8754
|
}
|
|
7850
8755
|
}));
|
|
7851
8756
|
}
|
|
7852
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7853
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
8757
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpHttpIdsInterceptor, deps: [{ token: VP_REQUEST_CONTEXT_PORT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8758
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpHttpIdsInterceptor }); }
|
|
7854
8759
|
}
|
|
7855
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8760
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpHttpIdsInterceptor, decorators: [{
|
|
7856
8761
|
type: Injectable
|
|
7857
8762
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
7858
8763
|
type: Inject,
|
|
@@ -7881,10 +8786,10 @@ class VpMaintenanceInterceptor {
|
|
|
7881
8786
|
return throwError(() => error);
|
|
7882
8787
|
}));
|
|
7883
8788
|
}
|
|
7884
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7885
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
8789
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpMaintenanceInterceptor, deps: [{ token: VP_MAINTENANCE_PORT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8790
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpMaintenanceInterceptor }); }
|
|
7886
8791
|
}
|
|
7887
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8792
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpMaintenanceInterceptor, decorators: [{
|
|
7888
8793
|
type: Injectable
|
|
7889
8794
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
7890
8795
|
type: Inject,
|
|
@@ -7915,10 +8820,10 @@ class VpWithCredentialsInterceptor {
|
|
|
7915
8820
|
}
|
|
7916
8821
|
return next.handle(req.clone({ withCredentials: true }));
|
|
7917
8822
|
}
|
|
7918
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7919
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
8823
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpWithCredentialsInterceptor, deps: [{ token: VP_API_BASE_URLS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8824
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpWithCredentialsInterceptor }); }
|
|
7920
8825
|
}
|
|
7921
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpWithCredentialsInterceptor, decorators: [{
|
|
7922
8827
|
type: Injectable
|
|
7923
8828
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
7924
8829
|
type: Inject,
|
|
@@ -8150,10 +9055,10 @@ class VpCaptchaInterceptor {
|
|
|
8150
9055
|
return next.handle(req);
|
|
8151
9056
|
return next.handle(req.clone({ setHeaders: { [CAPTCHA_HEADER]: token } }));
|
|
8152
9057
|
}
|
|
8153
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8154
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
9058
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpCaptchaInterceptor, deps: [{ token: VP_CAPTCHA_PORT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
9059
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpCaptchaInterceptor }); }
|
|
8155
9060
|
}
|
|
8156
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
9061
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpCaptchaInterceptor, decorators: [{
|
|
8157
9062
|
type: Injectable
|
|
8158
9063
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
8159
9064
|
type: Inject,
|
|
@@ -8178,10 +9083,10 @@ class VpAnonTokenInterceptor {
|
|
|
8178
9083
|
return next.handle(req);
|
|
8179
9084
|
return next.handle(req.clone({ setHeaders: { Authorization: `Bearer ${token}` } }));
|
|
8180
9085
|
}
|
|
8181
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8182
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
9086
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpAnonTokenInterceptor, deps: [{ token: VP_ANON_TOKEN_PORT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
9087
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpAnonTokenInterceptor }); }
|
|
8183
9088
|
}
|
|
8184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
9089
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpAnonTokenInterceptor, decorators: [{
|
|
8185
9090
|
type: Injectable
|
|
8186
9091
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
8187
9092
|
type: Inject,
|
|
@@ -8205,10 +9110,10 @@ class VpShareTokenInterceptor {
|
|
|
8205
9110
|
return next.handle(req);
|
|
8206
9111
|
return next.handle(req.clone({ headers: req.headers.set('Authorization', `Bearer ${token}`) }));
|
|
8207
9112
|
}
|
|
8208
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8209
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
9113
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpShareTokenInterceptor, deps: [{ token: VP_SHARE_TOKEN_PORT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
9114
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpShareTokenInterceptor }); }
|
|
8210
9115
|
}
|
|
8211
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
9116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpShareTokenInterceptor, decorators: [{
|
|
8212
9117
|
type: Injectable
|
|
8213
9118
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
8214
9119
|
type: Inject,
|
|
@@ -8917,10 +9822,10 @@ class VpDeepHealthService {
|
|
|
8917
9822
|
return of({ state, components: [] });
|
|
8918
9823
|
}));
|
|
8919
9824
|
}
|
|
8920
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8921
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
9825
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDeepHealthService, deps: [{ token: i1$4.HttpClient }, { token: VP_DEEP_HEALTH_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
9826
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDeepHealthService, providedIn: 'root' }); }
|
|
8922
9827
|
}
|
|
8923
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
9828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDeepHealthService, decorators: [{
|
|
8924
9829
|
type: Injectable,
|
|
8925
9830
|
args: [{ providedIn: 'root' }]
|
|
8926
9831
|
}], ctorParameters: () => [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
|
|
@@ -8993,8 +9898,8 @@ class VpButtonComponent {
|
|
|
8993
9898
|
this.external = false;
|
|
8994
9899
|
this.pressed = new EventEmitter();
|
|
8995
9900
|
}
|
|
8996
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8997
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
9901
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9902
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpButtonComponent, isStandalone: true, selector: "vp-button", inputs: { label: "label", variant: "variant", size: "size", icon: "icon", type: "type", disabled: "disabled", loading: "loading", disabledReason: "disabledReason", routerLink: "routerLink", href: "href", external: "external" }, outputs: { pressed: "pressed" }, ngImport: i0, template: `
|
|
8998
9903
|
@if (routerLink !== null) {
|
|
8999
9904
|
<a
|
|
9000
9905
|
class="vp-button"
|
|
@@ -9040,7 +9945,7 @@ class VpButtonComponent {
|
|
|
9040
9945
|
</ng-template>
|
|
9041
9946
|
`, isInline: true, styles: [":host{display:inline-flex}.vp-button{display:inline-flex;align-items:center;justify-content:center;gap:var(--vp-space-2);padding:var(--vp-space-2) var(--vp-space-4);border:1px solid var(--vp-border-strong);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;font-weight:500;text-decoration:none;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.vp-button[data-size=sm]{padding:var(--vp-space-1) var(--vp-space-3);font-size:var(--vp-text-sm)}.vp-button:hover:not(:disabled):not([aria-disabled=true]){background:var(--vp-surface-sunken)}.vp-button:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-button:disabled,.vp-button[aria-disabled=true]{opacity:.55;cursor:not-allowed}.vp-button[data-variant=primary]{border-color:transparent;background:var(--vp-brand);color:var(--vp-text-on-accent)}.vp-button[data-variant=primary]:hover:not(:disabled):not([aria-disabled=true]){background:var(--vp-brand-hover)}.vp-button[data-variant=danger]{border-color:transparent;background:var(--vp-danger-600);color:var(--vp-text-on-accent)}.vp-button[data-variant=danger]:hover:not(:disabled):not([aria-disabled=true]){background:var(--vp-danger-700)}.vp-button[data-variant=ghost]{border-color:transparent;background:transparent}.vp-button__icon{width:1em;height:1em;flex:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9042
9947
|
}
|
|
9043
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
9948
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpButtonComponent, decorators: [{
|
|
9044
9949
|
type: Component,
|
|
9045
9950
|
args: [{ selector: 'vp-button', standalone: true, imports: [NgTemplateOutlet, RouterLink], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
9046
9951
|
@if (routerLink !== null) {
|
|
@@ -9120,5 +10025,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImpo
|
|
|
9120
10025
|
* Generated bundle index. Do not edit.
|
|
9121
10026
|
*/
|
|
9122
10027
|
|
|
9123
|
-
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_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_I18N_NAMESPACE, VP_ICON_SPRITE_ID, VP_LIGHT_CLASS, VP_MAINTENANCE_PORT, VP_OWNERSHIP_PORT, VP_QUOTA_PORT, 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, VpAppealFormComponent, VpAuthTokenInterceptor, VpBannerComponent, VpBreadcrumbComponent, VpButtonComponent, VpCaptchaInterceptor, VpCommandPaletteComponent, VpConfirmComponent, VpContextToolbarComponent, VpCsrfInterceptor, VpDangerZoneComponent, VpDataTableComponent, VpDeepHealthService, VpDetectionRowComponent, VpDialogComponent, VpDrawerComponent, VpEngineResultComponent, VpFieldComponent, VpGlobalLayersComponent, VpHashValueComponent, VpHttpIdsInterceptor, VpIconSpriteService, VpIocListComponent, VpKpiCardComponent, VpMaintenanceInterceptor, VpMenuButtonComponent, VpNotificationTriggerComponent, VpPageHeaderComponent, VpProductSwitcherComponent, 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, vpKey, vpOwnershipGuard, vpQuotaGuard, vpResolveTrackingId, vpUnsavedChangesGuard };
|
|
10028
|
+
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_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_I18N_NAMESPACE, VP_ICON_SPRITE_ID, VP_LIGHT_CLASS, VP_MAINTENANCE_PORT, 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, VpAppealFormComponent, VpAuthTokenInterceptor, VpBannerComponent, VpBreadcrumbComponent, VpButtonComponent, VpCaptchaInterceptor, VpCommandPaletteComponent, VpConfirmComponent, VpContextToolbarComponent, VpCsrfInterceptor, VpDangerZoneComponent, VpDataTableComponent, VpDeepHealthService, VpDetectionRowComponent, VpDialogComponent, VpDrawerComponent, VpEngineResultComponent, VpFieldComponent, VpGlobalLayersComponent, VpHashValueComponent, VpHttpIdsInterceptor, VpIconSpriteService, VpIocListComponent, VpKpiCardComponent, VpMaintenanceInterceptor, VpMenuButtonComponent, VpNotificationTriggerComponent, VpPageHeaderComponent, VpProductSwitcherComponent, 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, vpKey, vpOwnershipGuard, vpQuotaGuard, vpResolveTrackingId, vpUnsavedChangesGuard };
|
|
9124
10029
|
//# sourceMappingURL=virusis-angular-ui.mjs.map
|