@virusis/angular-ui 0.2.1 → 0.2.2
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 +2018 -1843
- package/fesm2022/virusis-angular-ui.mjs.map +1 -1
- package/index.d.ts +59 -1
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -639,120 +639,120 @@ class VpAppealFormComponent {
|
|
|
639
639
|
});
|
|
640
640
|
}
|
|
641
641
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpAppealFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
642
|
-
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: `
|
|
643
|
-
@if (submitted) {
|
|
644
|
-
<div class="vp-appeal vp-appeal--done" data-vp-appeal-done role="status" aria-live="polite">
|
|
645
|
-
<p class="vp-appeal__title">{{ successTitle }}</p>
|
|
646
|
-
<p class="vp-appeal__note">{{ successNote }}</p>
|
|
647
|
-
<p class="vp-appeal__ref">
|
|
648
|
-
{{ referenceLabel }}: <code data-vp-appeal-done-ref>{{ referenceCode }}</code>
|
|
649
|
-
</p>
|
|
650
|
-
</div>
|
|
651
|
-
} @else {
|
|
652
|
-
<form class="vp-appeal" data-vp-appeal (submit)="onSubmit($event)">
|
|
653
|
-
<p class="vp-appeal__ref">
|
|
654
|
-
{{ referenceLabel }}: <code data-vp-appeal-ref>{{ referenceCode }}</code>
|
|
655
|
-
</p>
|
|
656
|
-
|
|
657
|
-
<label class="vp-appeal__field">
|
|
658
|
-
<span class="vp-appeal__label">{{ reasonLabel }}</span>
|
|
659
|
-
<textarea
|
|
660
|
-
data-vp-appeal-reason
|
|
661
|
-
rows="4"
|
|
662
|
-
[attr.aria-describedby]="reasonHint ? hintId : null"
|
|
663
|
-
[attr.aria-invalid]="showEmptyError ? 'true' : null"
|
|
664
|
-
[value]="reason"
|
|
665
|
-
[disabled]="submitting"
|
|
666
|
-
(input)="reason = asValue($event)"></textarea>
|
|
667
|
-
@if (reasonHint) {
|
|
668
|
-
<span class="vp-appeal__hint" [id]="hintId">{{ reasonHint }}</span>
|
|
669
|
-
}
|
|
670
|
-
</label>
|
|
671
|
-
|
|
672
|
-
<label class="vp-appeal__field">
|
|
673
|
-
<span class="vp-appeal__label">{{ contactLabel }}</span>
|
|
674
|
-
<input
|
|
675
|
-
type="email"
|
|
676
|
-
data-vp-appeal-contact
|
|
677
|
-
[value]="contact"
|
|
678
|
-
[disabled]="submitting"
|
|
679
|
-
(input)="contact = asValue($event)" />
|
|
680
|
-
</label>
|
|
681
|
-
|
|
682
|
-
@if (showEmptyError) {
|
|
683
|
-
<p class="vp-appeal__error" data-vp-appeal-error role="alert">{{ emptyReasonError }}</p>
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
@if (error) {
|
|
687
|
-
<p class="vp-appeal__error" data-vp-appeal-submit-error role="alert">{{ error }}</p>
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
<button
|
|
691
|
-
type="submit"
|
|
692
|
-
class="vp-appeal__submit"
|
|
693
|
-
data-vp-appeal-submit
|
|
694
|
-
[disabled]="submitting">{{ submitting ? submittingLabel : submitLabel }}</button>
|
|
695
|
-
</form>
|
|
696
|
-
}
|
|
642
|
+
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: `
|
|
643
|
+
@if (submitted) {
|
|
644
|
+
<div class="vp-appeal vp-appeal--done" data-vp-appeal-done role="status" aria-live="polite">
|
|
645
|
+
<p class="vp-appeal__title">{{ successTitle }}</p>
|
|
646
|
+
<p class="vp-appeal__note">{{ successNote }}</p>
|
|
647
|
+
<p class="vp-appeal__ref">
|
|
648
|
+
{{ referenceLabel }}: <code data-vp-appeal-done-ref>{{ referenceCode }}</code>
|
|
649
|
+
</p>
|
|
650
|
+
</div>
|
|
651
|
+
} @else {
|
|
652
|
+
<form class="vp-appeal" data-vp-appeal (submit)="onSubmit($event)">
|
|
653
|
+
<p class="vp-appeal__ref">
|
|
654
|
+
{{ referenceLabel }}: <code data-vp-appeal-ref>{{ referenceCode }}</code>
|
|
655
|
+
</p>
|
|
656
|
+
|
|
657
|
+
<label class="vp-appeal__field">
|
|
658
|
+
<span class="vp-appeal__label">{{ reasonLabel }}</span>
|
|
659
|
+
<textarea
|
|
660
|
+
data-vp-appeal-reason
|
|
661
|
+
rows="4"
|
|
662
|
+
[attr.aria-describedby]="reasonHint ? hintId : null"
|
|
663
|
+
[attr.aria-invalid]="showEmptyError ? 'true' : null"
|
|
664
|
+
[value]="reason"
|
|
665
|
+
[disabled]="submitting"
|
|
666
|
+
(input)="reason = asValue($event)"></textarea>
|
|
667
|
+
@if (reasonHint) {
|
|
668
|
+
<span class="vp-appeal__hint" [id]="hintId">{{ reasonHint }}</span>
|
|
669
|
+
}
|
|
670
|
+
</label>
|
|
671
|
+
|
|
672
|
+
<label class="vp-appeal__field">
|
|
673
|
+
<span class="vp-appeal__label">{{ contactLabel }}</span>
|
|
674
|
+
<input
|
|
675
|
+
type="email"
|
|
676
|
+
data-vp-appeal-contact
|
|
677
|
+
[value]="contact"
|
|
678
|
+
[disabled]="submitting"
|
|
679
|
+
(input)="contact = asValue($event)" />
|
|
680
|
+
</label>
|
|
681
|
+
|
|
682
|
+
@if (showEmptyError) {
|
|
683
|
+
<p class="vp-appeal__error" data-vp-appeal-error role="alert">{{ emptyReasonError }}</p>
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
@if (error) {
|
|
687
|
+
<p class="vp-appeal__error" data-vp-appeal-submit-error role="alert">{{ error }}</p>
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
<button
|
|
691
|
+
type="submit"
|
|
692
|
+
class="vp-appeal__submit"
|
|
693
|
+
data-vp-appeal-submit
|
|
694
|
+
[disabled]="submitting">{{ submitting ? submittingLabel : submitLabel }}</button>
|
|
695
|
+
</form>
|
|
696
|
+
}
|
|
697
697
|
`, 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 }); }
|
|
698
698
|
}
|
|
699
699
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpAppealFormComponent, decorators: [{
|
|
700
700
|
type: Component,
|
|
701
|
-
args: [{ selector: 'vp-appeal-form', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
702
|
-
@if (submitted) {
|
|
703
|
-
<div class="vp-appeal vp-appeal--done" data-vp-appeal-done role="status" aria-live="polite">
|
|
704
|
-
<p class="vp-appeal__title">{{ successTitle }}</p>
|
|
705
|
-
<p class="vp-appeal__note">{{ successNote }}</p>
|
|
706
|
-
<p class="vp-appeal__ref">
|
|
707
|
-
{{ referenceLabel }}: <code data-vp-appeal-done-ref>{{ referenceCode }}</code>
|
|
708
|
-
</p>
|
|
709
|
-
</div>
|
|
710
|
-
} @else {
|
|
711
|
-
<form class="vp-appeal" data-vp-appeal (submit)="onSubmit($event)">
|
|
712
|
-
<p class="vp-appeal__ref">
|
|
713
|
-
{{ referenceLabel }}: <code data-vp-appeal-ref>{{ referenceCode }}</code>
|
|
714
|
-
</p>
|
|
715
|
-
|
|
716
|
-
<label class="vp-appeal__field">
|
|
717
|
-
<span class="vp-appeal__label">{{ reasonLabel }}</span>
|
|
718
|
-
<textarea
|
|
719
|
-
data-vp-appeal-reason
|
|
720
|
-
rows="4"
|
|
721
|
-
[attr.aria-describedby]="reasonHint ? hintId : null"
|
|
722
|
-
[attr.aria-invalid]="showEmptyError ? 'true' : null"
|
|
723
|
-
[value]="reason"
|
|
724
|
-
[disabled]="submitting"
|
|
725
|
-
(input)="reason = asValue($event)"></textarea>
|
|
726
|
-
@if (reasonHint) {
|
|
727
|
-
<span class="vp-appeal__hint" [id]="hintId">{{ reasonHint }}</span>
|
|
728
|
-
}
|
|
729
|
-
</label>
|
|
730
|
-
|
|
731
|
-
<label class="vp-appeal__field">
|
|
732
|
-
<span class="vp-appeal__label">{{ contactLabel }}</span>
|
|
733
|
-
<input
|
|
734
|
-
type="email"
|
|
735
|
-
data-vp-appeal-contact
|
|
736
|
-
[value]="contact"
|
|
737
|
-
[disabled]="submitting"
|
|
738
|
-
(input)="contact = asValue($event)" />
|
|
739
|
-
</label>
|
|
740
|
-
|
|
741
|
-
@if (showEmptyError) {
|
|
742
|
-
<p class="vp-appeal__error" data-vp-appeal-error role="alert">{{ emptyReasonError }}</p>
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
@if (error) {
|
|
746
|
-
<p class="vp-appeal__error" data-vp-appeal-submit-error role="alert">{{ error }}</p>
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
<button
|
|
750
|
-
type="submit"
|
|
751
|
-
class="vp-appeal__submit"
|
|
752
|
-
data-vp-appeal-submit
|
|
753
|
-
[disabled]="submitting">{{ submitting ? submittingLabel : submitLabel }}</button>
|
|
754
|
-
</form>
|
|
755
|
-
}
|
|
701
|
+
args: [{ selector: 'vp-appeal-form', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
702
|
+
@if (submitted) {
|
|
703
|
+
<div class="vp-appeal vp-appeal--done" data-vp-appeal-done role="status" aria-live="polite">
|
|
704
|
+
<p class="vp-appeal__title">{{ successTitle }}</p>
|
|
705
|
+
<p class="vp-appeal__note">{{ successNote }}</p>
|
|
706
|
+
<p class="vp-appeal__ref">
|
|
707
|
+
{{ referenceLabel }}: <code data-vp-appeal-done-ref>{{ referenceCode }}</code>
|
|
708
|
+
</p>
|
|
709
|
+
</div>
|
|
710
|
+
} @else {
|
|
711
|
+
<form class="vp-appeal" data-vp-appeal (submit)="onSubmit($event)">
|
|
712
|
+
<p class="vp-appeal__ref">
|
|
713
|
+
{{ referenceLabel }}: <code data-vp-appeal-ref>{{ referenceCode }}</code>
|
|
714
|
+
</p>
|
|
715
|
+
|
|
716
|
+
<label class="vp-appeal__field">
|
|
717
|
+
<span class="vp-appeal__label">{{ reasonLabel }}</span>
|
|
718
|
+
<textarea
|
|
719
|
+
data-vp-appeal-reason
|
|
720
|
+
rows="4"
|
|
721
|
+
[attr.aria-describedby]="reasonHint ? hintId : null"
|
|
722
|
+
[attr.aria-invalid]="showEmptyError ? 'true' : null"
|
|
723
|
+
[value]="reason"
|
|
724
|
+
[disabled]="submitting"
|
|
725
|
+
(input)="reason = asValue($event)"></textarea>
|
|
726
|
+
@if (reasonHint) {
|
|
727
|
+
<span class="vp-appeal__hint" [id]="hintId">{{ reasonHint }}</span>
|
|
728
|
+
}
|
|
729
|
+
</label>
|
|
730
|
+
|
|
731
|
+
<label class="vp-appeal__field">
|
|
732
|
+
<span class="vp-appeal__label">{{ contactLabel }}</span>
|
|
733
|
+
<input
|
|
734
|
+
type="email"
|
|
735
|
+
data-vp-appeal-contact
|
|
736
|
+
[value]="contact"
|
|
737
|
+
[disabled]="submitting"
|
|
738
|
+
(input)="contact = asValue($event)" />
|
|
739
|
+
</label>
|
|
740
|
+
|
|
741
|
+
@if (showEmptyError) {
|
|
742
|
+
<p class="vp-appeal__error" data-vp-appeal-error role="alert">{{ emptyReasonError }}</p>
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
@if (error) {
|
|
746
|
+
<p class="vp-appeal__error" data-vp-appeal-submit-error role="alert">{{ error }}</p>
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
<button
|
|
750
|
+
type="submit"
|
|
751
|
+
class="vp-appeal__submit"
|
|
752
|
+
data-vp-appeal-submit
|
|
753
|
+
[disabled]="submitting">{{ submitting ? submittingLabel : submitLabel }}</button>
|
|
754
|
+
</form>
|
|
755
|
+
}
|
|
756
756
|
`, 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"] }]
|
|
757
757
|
}], propDecorators: { referenceCode: [{
|
|
758
758
|
type: Input,
|
|
@@ -1136,382 +1136,382 @@ class VpShellComponent {
|
|
|
1136
1136
|
});
|
|
1137
1137
|
}
|
|
1138
1138
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1139
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpShellComponent, isStandalone: true, selector: "vp-shell", inputs: { sidebarId: "sidebarId", layout: "layout", 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()" }, properties: { "attr.data-vp-layout": "layout" } }, viewQueries: [{ propertyName: "sidebarRef", first: true, predicate: ["sidebar"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
1140
|
-
<!-- Atlama baglantisi DOM'da ILK odaklanabilir oge olmali.
|
|
1141
|
-
Klavye kullanicisi her sayfada menuyu bastan gecmek zorunda kalmasin. -->
|
|
1142
|
-
<a class="vp-skip" data-vp-skip href="#vp-main">{{ skipLabel }}</a>
|
|
1143
|
-
|
|
1144
|
-
<!--
|
|
1145
|
-
Paket 28 · layout="sidebar" (prototip kabugu): genis ekranda UST CUBUK YOK — marka, araclar ve arama kenar
|
|
1146
|
-
cubugunun basinda, kirinti icerigin basinda. Ust cubuk yalniz cekmece kipinde geliyor (cekmece dugmesi + marka).
|
|
1147
|
-
-->
|
|
1148
|
-
@if (layout === 'topbar' || overlay()) {
|
|
1149
|
-
<header class="vp-shell__topbar">
|
|
1150
|
-
<!--
|
|
1151
|
-
🔴 Cekmece tetikleyicisi KABUGUN kendi ogesi, uygulamanin degil.
|
|
1152
|
-
Olculdu (2026-09-08): dar ekranda kenar cubugu ekran disinda
|
|
1153
|
-
bekliyordu ve onu geri getirecek gorunur bir denetim yoktu —
|
|
1154
|
-
vp-sidebar-toggle uygulamanin ust cubuguna KOYULURSA vardi, ve
|
|
1155
|
-
iki konsol onu koymamisti. Menuye ulasmanin tek yolu, kabugun
|
|
1156
|
-
garanti ettigi bir dugme olmali.
|
|
1157
|
-
|
|
1158
|
-
Yalniz overlay kipinde ciziliyor: genis ekranda menu zaten akista
|
|
1159
|
-
ve ikinci bir daraltma denetimi iki ayri kip demek olurdu.
|
|
1160
|
-
-->
|
|
1161
|
-
@if (overlay()) {
|
|
1162
|
-
<button
|
|
1163
|
-
type="button"
|
|
1164
|
-
class="vp-shell__drawer-toggle"
|
|
1165
|
-
data-vp-drawer-toggle
|
|
1166
|
-
[attr.aria-controls]="sidebarId"
|
|
1167
|
-
[attr.aria-expanded]="!collapsed"
|
|
1168
|
-
[attr.aria-label]="collapsed ? menuOpenLabel : menuCloseLabel"
|
|
1169
|
-
(click)="toggleDrawer()">
|
|
1170
|
-
<span class="vp-shell__burger" aria-hidden="true"></span>
|
|
1171
|
-
</button>
|
|
1172
|
-
}
|
|
1173
|
-
<ng-content select="[topbar]" />
|
|
1174
|
-
</header>
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
<div class="vp-shell__body">
|
|
1178
|
-
<!--
|
|
1179
|
-
id ZORUNLU: vp-sidebar-toggle bunu aria-controls ile isaret
|
|
1180
|
-
ediyor. Olculdu (2026-08-27): dugme eklendiginde bu id yoktu ve
|
|
1181
|
-
aria-controls olmayan bir bolgeyi gosteriyordu — ekran okuyucu
|
|
1182
|
-
icin varmis gibi gorunen, gercekte olmayan bir baglanti.
|
|
1183
|
-
-->
|
|
1184
|
-
<aside
|
|
1185
|
-
#sidebar
|
|
1186
|
-
[id]="sidebarId"
|
|
1187
|
-
class="vp-shell__sidebar"
|
|
1188
|
-
[attr.data-collapsed]="collapsed || null"
|
|
1189
|
-
[attr.data-overlay]="overlay() || null"
|
|
1190
|
-
[attr.data-vp-drawer]="overlay() ? (collapsed ? 'closed' : 'open') : null"
|
|
1191
|
-
[attr.inert]="overlay() && collapsed ? '' : null">
|
|
1192
|
-
<!--
|
|
1193
|
-
Menu kendi kaydirma kutusunda: kota ve dil kenar cubugunun ALTINA
|
|
1194
|
-
sabitleniyor. Ayni kutuda olsalardi uzun menude ekrandan cikarlardi
|
|
1195
|
-
ve kullanici kotayi gormek icin menuyu sonuna kadar kaydirirdi.
|
|
1196
|
-
-->
|
|
1197
|
-
<!--
|
|
1198
|
-
Kenar cubugu basi (paket 28): marka · ray dugmesi · zil · tema; altinda konsol secici ve arama. Menunun
|
|
1199
|
-
kaydirma kutusunun DISINDA: uzun menude marka ve arama ekrandan cikmamali. Bossa gizli (:empty).
|
|
1200
|
-
-->
|
|
1201
|
-
<div class="vp-shell__sidebar-head"><ng-content select="[sidebarHead]" /></div>
|
|
1202
|
-
|
|
1203
|
-
<div class="vp-shell__sidebar-scroll">
|
|
1204
|
-
<ng-content select="[sidebar]" />
|
|
1205
|
-
</div>
|
|
1206
|
-
|
|
1207
|
-
<!--
|
|
1208
|
-
Ayak HER ZAMAN var, bossa CSS ile gizli (:empty). Tuketici yuvasi [sidebarFoot]
|
|
1209
|
-
(2026-09-13): mobil uygulama girisi gibi maddeler once, kota ve dil sonra.
|
|
1210
|
-
Olculdu: yuva yokken giris [sidebar] kutusuna girip uzun menude ekrandan cikiyordu.
|
|
1211
|
-
-->
|
|
1212
|
-
<div class="vp-shell__sidebar-foot">
|
|
1213
|
-
<ng-content select="[sidebarFoot]" />
|
|
1214
|
-
@if (quota) {
|
|
1215
|
-
<!--
|
|
1216
|
-
B1-K2: kota gostergesi KABUGUN parcasi, ayri bir bilesen degil.
|
|
1217
|
-
Kenar cubugunun alti kabugun kendi alani ve ray kipinde de
|
|
1218
|
-
kabugun kuralina uyuyor.
|
|
1219
|
-
|
|
1220
|
-
Esik tek yerde (VP_QUOTA_WARN / VP_QUOTA_CRITICAL): ekran
|
|
1221
|
-
basina esik tanimlamak, iki ekranda iki farkli "dolmak uzere"
|
|
1222
|
-
demektir.
|
|
1223
|
-
-->
|
|
1224
|
-
<div
|
|
1225
|
-
class="vp-shell__quota"
|
|
1226
|
-
data-vp-quota
|
|
1227
|
-
[attr.data-vp-quota-level]="quotaLevel"
|
|
1228
|
-
[attr.data-vp-quota-compact]="collapsed ? 'true' : null"
|
|
1229
|
-
[attr.title]="collapsed ? quotaText : null">
|
|
1230
|
-
<div class="vp-shell__quota-head">
|
|
1231
|
-
<span class="vp-shell__quota-label">{{ quota.label }}</span>
|
|
1232
|
-
<span class="vp-shell__quota-value">{{ quotaText }}</span>
|
|
1233
|
-
</div>
|
|
1234
|
-
<!--
|
|
1235
|
-
Deger yalniz RENKLE anlatilmiyor: role=progressbar ve
|
|
1236
|
-
aria-valuenow ile de duyuruluyor. Renk korfarki olan bir
|
|
1237
|
-
kullanici icin dolu cubuk ile bos cubuk ayni gorunur.
|
|
1238
|
-
-->
|
|
1239
|
-
<div
|
|
1240
|
-
class="vp-shell__quota-bar"
|
|
1241
|
-
role="progressbar"
|
|
1242
|
-
aria-valuemin="0"
|
|
1243
|
-
aria-valuemax="100"
|
|
1244
|
-
[attr.aria-valuenow]="quotaPercent"
|
|
1245
|
-
[attr.aria-valuetext]="quotaText"
|
|
1246
|
-
[attr.aria-label]="quota.label">
|
|
1247
|
-
@if (quotaSegments.length) {
|
|
1248
|
-
@for (segment of quotaSegments; track segment.label) {
|
|
1249
|
-
<span
|
|
1250
|
-
class="vp-shell__quota-fill vp-shell__quota-fill--segment"
|
|
1251
|
-
data-vp-quota-segment
|
|
1252
|
-
[attr.data-vp-quota-segment-label]="segment.label"
|
|
1253
|
-
[attr.title]="segment.title"
|
|
1254
|
-
[style.inline-size.%]="segment.percent"
|
|
1255
|
-
[style.background]="segment.color"></span>
|
|
1256
|
-
}
|
|
1257
|
-
} @else {
|
|
1258
|
-
<span class="vp-shell__quota-fill" [style.inline-size.%]="quotaPercent"></span>
|
|
1259
|
-
}
|
|
1260
|
-
</div>
|
|
1261
|
-
@if (quota.hint && !collapsed) {
|
|
1262
|
-
<p class="vp-shell__quota-hint">{{ quota.hint }}</p>
|
|
1263
|
-
}
|
|
1264
|
-
</div>
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
|
-
@if (languages.length) {
|
|
1268
|
-
<!--
|
|
1269
|
-
B1-K3: dil DENETIMI kabukta, MANTIK @virusis/i18n'de.
|
|
1270
|
-
Kabuk secimi gosterip olayi yayiyor; cozumleme, kalicilik ve
|
|
1271
|
-
?lang= -> kayit -> tarayici sirasi kabugun isi DEGIL. Kabuk
|
|
1272
|
-
document.lang yazarsa dil mantigi iki yere bolunur.
|
|
1273
|
-
-->
|
|
1274
|
-
<div class="vp-shell__lang" data-vp-lang [attr.role]="'group'" [attr.aria-label]="languageLabel">
|
|
1275
|
-
@for (option of languages; track option.code) {
|
|
1276
|
-
<button
|
|
1277
|
-
type="button"
|
|
1278
|
-
class="vp-shell__lang-option"
|
|
1279
|
-
data-vp-lang-option
|
|
1280
|
-
[attr.data-vp-lang-code]="option.code"
|
|
1281
|
-
[attr.aria-pressed]="option.code === language"
|
|
1282
|
-
[attr.title]="option.label"
|
|
1283
|
-
(click)="languageChange.emit(option.code)">
|
|
1284
|
-
{{ collapsed ? option.code.toUpperCase() : option.label }}
|
|
1285
|
-
</button>
|
|
1286
|
-
}
|
|
1287
|
-
</div>
|
|
1288
|
-
}
|
|
1289
|
-
<!-- Ayak sonu (paket 28): prototipte hesap kutusu ve anonim "saklı taramalar" kartı kotanın ALTINDA. -->
|
|
1290
|
-
<ng-content select="[sidebarFootEnd]" />
|
|
1291
|
-
</div>
|
|
1292
|
-
</aside>
|
|
1293
|
-
|
|
1294
|
-
@if (overlay() && !collapsed) {
|
|
1295
|
-
<!--
|
|
1296
|
-
🔴 Maske YALNIZ dar ekranda ve menu ACIKKEN var.
|
|
1297
|
-
Genis ekranda hic cizilmiyor: gorunmez bir katman, uzerindeki
|
|
1298
|
-
tiklamalari sessizce yutardi.
|
|
1299
|
-
|
|
1300
|
-
⚠️ button degil div: ekran okuyucu icin ikinci bir "kapat"
|
|
1301
|
-
duragi olusturmuyor — kapatmanin erisilebilir yolu ust cubuktaki
|
|
1302
|
-
vp-sidebar-toggle dugmesi. Maske yalniz isaretleme kolayligi.
|
|
1303
|
-
-->
|
|
1304
|
-
<div
|
|
1305
|
-
class="vp-shell__mask"
|
|
1306
|
-
data-vp-shell-mask
|
|
1307
|
-
data-vp-scrim
|
|
1308
|
-
aria-hidden="true"
|
|
1309
|
-
(click)="collapsedChange.emit(true)"></div>
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
<main id="vp-main" class="vp-shell__main" tabindex="-1">
|
|
1313
|
-
<!-- Kirinti satiri (paket 28 · prototip crumbs-row): ray dugmesi + iz, icerigin basinda. Bossa gizli. -->
|
|
1314
|
-
<div class="vp-shell__crumbs"><ng-content select="[crumbs]" /></div>
|
|
1315
|
-
<ng-content />
|
|
1316
|
-
</main>
|
|
1317
|
-
</div>
|
|
1318
|
-
|
|
1319
|
-
<!--
|
|
1320
|
-
Alt bilgi ana icerigin DISINDA. Varsayilan yuvaya konsaydi footer
|
|
1321
|
-
main ICINDE kalirdi ve HTML kurallarina gore main icindeki footer bir
|
|
1322
|
-
contentinfo yer isareti degildir - isaret sessizce kaybolurdu.
|
|
1323
|
-
-->
|
|
1324
|
-
<ng-content select="[footer]" />
|
|
1139
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpShellComponent, isStandalone: true, selector: "vp-shell", inputs: { sidebarId: "sidebarId", layout: "layout", 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()" }, properties: { "attr.data-vp-layout": "layout" } }, viewQueries: [{ propertyName: "sidebarRef", first: true, predicate: ["sidebar"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
1140
|
+
<!-- Atlama baglantisi DOM'da ILK odaklanabilir oge olmali.
|
|
1141
|
+
Klavye kullanicisi her sayfada menuyu bastan gecmek zorunda kalmasin. -->
|
|
1142
|
+
<a class="vp-skip" data-vp-skip href="#vp-main">{{ skipLabel }}</a>
|
|
1143
|
+
|
|
1144
|
+
<!--
|
|
1145
|
+
Paket 28 · layout="sidebar" (prototip kabugu): genis ekranda UST CUBUK YOK — marka, araclar ve arama kenar
|
|
1146
|
+
cubugunun basinda, kirinti icerigin basinda. Ust cubuk yalniz cekmece kipinde geliyor (cekmece dugmesi + marka).
|
|
1147
|
+
-->
|
|
1148
|
+
@if (layout === 'topbar' || overlay()) {
|
|
1149
|
+
<header class="vp-shell__topbar">
|
|
1150
|
+
<!--
|
|
1151
|
+
🔴 Cekmece tetikleyicisi KABUGUN kendi ogesi, uygulamanin degil.
|
|
1152
|
+
Olculdu (2026-09-08): dar ekranda kenar cubugu ekran disinda
|
|
1153
|
+
bekliyordu ve onu geri getirecek gorunur bir denetim yoktu —
|
|
1154
|
+
vp-sidebar-toggle uygulamanin ust cubuguna KOYULURSA vardi, ve
|
|
1155
|
+
iki konsol onu koymamisti. Menuye ulasmanin tek yolu, kabugun
|
|
1156
|
+
garanti ettigi bir dugme olmali.
|
|
1157
|
+
|
|
1158
|
+
Yalniz overlay kipinde ciziliyor: genis ekranda menu zaten akista
|
|
1159
|
+
ve ikinci bir daraltma denetimi iki ayri kip demek olurdu.
|
|
1160
|
+
-->
|
|
1161
|
+
@if (overlay()) {
|
|
1162
|
+
<button
|
|
1163
|
+
type="button"
|
|
1164
|
+
class="vp-shell__drawer-toggle"
|
|
1165
|
+
data-vp-drawer-toggle
|
|
1166
|
+
[attr.aria-controls]="sidebarId"
|
|
1167
|
+
[attr.aria-expanded]="!collapsed"
|
|
1168
|
+
[attr.aria-label]="collapsed ? menuOpenLabel : menuCloseLabel"
|
|
1169
|
+
(click)="toggleDrawer()">
|
|
1170
|
+
<span class="vp-shell__burger" aria-hidden="true"></span>
|
|
1171
|
+
</button>
|
|
1172
|
+
}
|
|
1173
|
+
<ng-content select="[topbar]" />
|
|
1174
|
+
</header>
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
<div class="vp-shell__body">
|
|
1178
|
+
<!--
|
|
1179
|
+
id ZORUNLU: vp-sidebar-toggle bunu aria-controls ile isaret
|
|
1180
|
+
ediyor. Olculdu (2026-08-27): dugme eklendiginde bu id yoktu ve
|
|
1181
|
+
aria-controls olmayan bir bolgeyi gosteriyordu — ekran okuyucu
|
|
1182
|
+
icin varmis gibi gorunen, gercekte olmayan bir baglanti.
|
|
1183
|
+
-->
|
|
1184
|
+
<aside
|
|
1185
|
+
#sidebar
|
|
1186
|
+
[id]="sidebarId"
|
|
1187
|
+
class="vp-shell__sidebar"
|
|
1188
|
+
[attr.data-collapsed]="collapsed || null"
|
|
1189
|
+
[attr.data-overlay]="overlay() || null"
|
|
1190
|
+
[attr.data-vp-drawer]="overlay() ? (collapsed ? 'closed' : 'open') : null"
|
|
1191
|
+
[attr.inert]="overlay() && collapsed ? '' : null">
|
|
1192
|
+
<!--
|
|
1193
|
+
Menu kendi kaydirma kutusunda: kota ve dil kenar cubugunun ALTINA
|
|
1194
|
+
sabitleniyor. Ayni kutuda olsalardi uzun menude ekrandan cikarlardi
|
|
1195
|
+
ve kullanici kotayi gormek icin menuyu sonuna kadar kaydirirdi.
|
|
1196
|
+
-->
|
|
1197
|
+
<!--
|
|
1198
|
+
Kenar cubugu basi (paket 28): marka · ray dugmesi · zil · tema; altinda konsol secici ve arama. Menunun
|
|
1199
|
+
kaydirma kutusunun DISINDA: uzun menude marka ve arama ekrandan cikmamali. Bossa gizli (:empty).
|
|
1200
|
+
-->
|
|
1201
|
+
<div class="vp-shell__sidebar-head"><ng-content select="[sidebarHead]" /></div>
|
|
1202
|
+
|
|
1203
|
+
<div class="vp-shell__sidebar-scroll">
|
|
1204
|
+
<ng-content select="[sidebar]" />
|
|
1205
|
+
</div>
|
|
1206
|
+
|
|
1207
|
+
<!--
|
|
1208
|
+
Ayak HER ZAMAN var, bossa CSS ile gizli (:empty). Tuketici yuvasi [sidebarFoot]
|
|
1209
|
+
(2026-09-13): mobil uygulama girisi gibi maddeler once, kota ve dil sonra.
|
|
1210
|
+
Olculdu: yuva yokken giris [sidebar] kutusuna girip uzun menude ekrandan cikiyordu.
|
|
1211
|
+
-->
|
|
1212
|
+
<div class="vp-shell__sidebar-foot">
|
|
1213
|
+
<ng-content select="[sidebarFoot]" />
|
|
1214
|
+
@if (quota) {
|
|
1215
|
+
<!--
|
|
1216
|
+
B1-K2: kota gostergesi KABUGUN parcasi, ayri bir bilesen degil.
|
|
1217
|
+
Kenar cubugunun alti kabugun kendi alani ve ray kipinde de
|
|
1218
|
+
kabugun kuralina uyuyor.
|
|
1219
|
+
|
|
1220
|
+
Esik tek yerde (VP_QUOTA_WARN / VP_QUOTA_CRITICAL): ekran
|
|
1221
|
+
basina esik tanimlamak, iki ekranda iki farkli "dolmak uzere"
|
|
1222
|
+
demektir.
|
|
1223
|
+
-->
|
|
1224
|
+
<div
|
|
1225
|
+
class="vp-shell__quota"
|
|
1226
|
+
data-vp-quota
|
|
1227
|
+
[attr.data-vp-quota-level]="quotaLevel"
|
|
1228
|
+
[attr.data-vp-quota-compact]="collapsed ? 'true' : null"
|
|
1229
|
+
[attr.title]="collapsed ? quotaText : null">
|
|
1230
|
+
<div class="vp-shell__quota-head">
|
|
1231
|
+
<span class="vp-shell__quota-label">{{ quota.label }}</span>
|
|
1232
|
+
<span class="vp-shell__quota-value">{{ quotaText }}</span>
|
|
1233
|
+
</div>
|
|
1234
|
+
<!--
|
|
1235
|
+
Deger yalniz RENKLE anlatilmiyor: role=progressbar ve
|
|
1236
|
+
aria-valuenow ile de duyuruluyor. Renk korfarki olan bir
|
|
1237
|
+
kullanici icin dolu cubuk ile bos cubuk ayni gorunur.
|
|
1238
|
+
-->
|
|
1239
|
+
<div
|
|
1240
|
+
class="vp-shell__quota-bar"
|
|
1241
|
+
role="progressbar"
|
|
1242
|
+
aria-valuemin="0"
|
|
1243
|
+
aria-valuemax="100"
|
|
1244
|
+
[attr.aria-valuenow]="quotaPercent"
|
|
1245
|
+
[attr.aria-valuetext]="quotaText"
|
|
1246
|
+
[attr.aria-label]="quota.label">
|
|
1247
|
+
@if (quotaSegments.length) {
|
|
1248
|
+
@for (segment of quotaSegments; track segment.label) {
|
|
1249
|
+
<span
|
|
1250
|
+
class="vp-shell__quota-fill vp-shell__quota-fill--segment"
|
|
1251
|
+
data-vp-quota-segment
|
|
1252
|
+
[attr.data-vp-quota-segment-label]="segment.label"
|
|
1253
|
+
[attr.title]="segment.title"
|
|
1254
|
+
[style.inline-size.%]="segment.percent"
|
|
1255
|
+
[style.background]="segment.color"></span>
|
|
1256
|
+
}
|
|
1257
|
+
} @else {
|
|
1258
|
+
<span class="vp-shell__quota-fill" [style.inline-size.%]="quotaPercent"></span>
|
|
1259
|
+
}
|
|
1260
|
+
</div>
|
|
1261
|
+
@if (quota.hint && !collapsed) {
|
|
1262
|
+
<p class="vp-shell__quota-hint">{{ quota.hint }}</p>
|
|
1263
|
+
}
|
|
1264
|
+
</div>
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
@if (languages.length) {
|
|
1268
|
+
<!--
|
|
1269
|
+
B1-K3: dil DENETIMI kabukta, MANTIK @virusis/i18n'de.
|
|
1270
|
+
Kabuk secimi gosterip olayi yayiyor; cozumleme, kalicilik ve
|
|
1271
|
+
?lang= -> kayit -> tarayici sirasi kabugun isi DEGIL. Kabuk
|
|
1272
|
+
document.lang yazarsa dil mantigi iki yere bolunur.
|
|
1273
|
+
-->
|
|
1274
|
+
<div class="vp-shell__lang" data-vp-lang [attr.role]="'group'" [attr.aria-label]="languageLabel">
|
|
1275
|
+
@for (option of languages; track option.code) {
|
|
1276
|
+
<button
|
|
1277
|
+
type="button"
|
|
1278
|
+
class="vp-shell__lang-option"
|
|
1279
|
+
data-vp-lang-option
|
|
1280
|
+
[attr.data-vp-lang-code]="option.code"
|
|
1281
|
+
[attr.aria-pressed]="option.code === language"
|
|
1282
|
+
[attr.title]="option.label"
|
|
1283
|
+
(click)="languageChange.emit(option.code)">
|
|
1284
|
+
{{ collapsed ? option.code.toUpperCase() : option.label }}
|
|
1285
|
+
</button>
|
|
1286
|
+
}
|
|
1287
|
+
</div>
|
|
1288
|
+
}
|
|
1289
|
+
<!-- Ayak sonu (paket 28): prototipte hesap kutusu ve anonim "saklı taramalar" kartı kotanın ALTINDA. -->
|
|
1290
|
+
<ng-content select="[sidebarFootEnd]" />
|
|
1291
|
+
</div>
|
|
1292
|
+
</aside>
|
|
1293
|
+
|
|
1294
|
+
@if (overlay() && !collapsed) {
|
|
1295
|
+
<!--
|
|
1296
|
+
🔴 Maske YALNIZ dar ekranda ve menu ACIKKEN var.
|
|
1297
|
+
Genis ekranda hic cizilmiyor: gorunmez bir katman, uzerindeki
|
|
1298
|
+
tiklamalari sessizce yutardi.
|
|
1299
|
+
|
|
1300
|
+
⚠️ button degil div: ekran okuyucu icin ikinci bir "kapat"
|
|
1301
|
+
duragi olusturmuyor — kapatmanin erisilebilir yolu ust cubuktaki
|
|
1302
|
+
vp-sidebar-toggle dugmesi. Maske yalniz isaretleme kolayligi.
|
|
1303
|
+
-->
|
|
1304
|
+
<div
|
|
1305
|
+
class="vp-shell__mask"
|
|
1306
|
+
data-vp-shell-mask
|
|
1307
|
+
data-vp-scrim
|
|
1308
|
+
aria-hidden="true"
|
|
1309
|
+
(click)="collapsedChange.emit(true)"></div>
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
<main id="vp-main" class="vp-shell__main" tabindex="-1">
|
|
1313
|
+
<!-- Kirinti satiri (paket 28 · prototip crumbs-row): ray dugmesi + iz, icerigin basinda. Bossa gizli. -->
|
|
1314
|
+
<div class="vp-shell__crumbs"><ng-content select="[crumbs]" /></div>
|
|
1315
|
+
<ng-content />
|
|
1316
|
+
</main>
|
|
1317
|
+
</div>
|
|
1318
|
+
|
|
1319
|
+
<!--
|
|
1320
|
+
Alt bilgi ana icerigin DISINDA. Varsayilan yuvaya konsaydi footer
|
|
1321
|
+
main ICINDE kalirdi ve HTML kurallarina gore main icindeki footer bir
|
|
1322
|
+
contentinfo yer isareti degildir - isaret sessizce kaybolurdu.
|
|
1323
|
+
-->
|
|
1324
|
+
<ng-content select="[footer]" />
|
|
1325
1325
|
`, 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__sidebar-foot:empty{display:none}.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}}.vp-shell__sidebar-head:empty,.vp-shell__crumbs:empty{display:none}.vp-shell__sidebar-head{display:flex;flex-direction:column;gap:12px;padding:14px 12px 0}.vp-shell__crumbs{display:flex;align-items:center;gap:8px;margin-bottom:6px}:host([data-vp-layout=\"sidebar\"]) .vp-shell__sidebar:not([data-overlay]){position:sticky;top:0;align-self:flex-start;height:100dvh}:host([data-vp-layout=\"sidebar\"]) .vp-shell__sidebar-scroll{padding-top:12px}:host([data-vp-layout=\"sidebar\"]) .vp-shell__sidebar[data-overlay]{width:min(272px,82vw)}:host([data-vp-layout=\"sidebar\"]) .vp-shell__sidebar[data-overlay][data-collapsed]{width:min(272px,82vw)}:host([data-vp-layout=\"sidebar\"]) .vp-shell__main{padding:18px 24px 44px}:host([data-vp-layout=\"sidebar\"]) .vp-shell__topbar{height:52px;gap:10px;padding-inline:10px}:host([data-vp-layout=\"sidebar\"]) .vp-shell__sidebar-foot{gap:2px;padding:8px 12px 12px}:host([data-vp-layout=\"sidebar\"]) .vp-shell__quota{display:grid;gap:7px;margin-block:4px;padding:9px 10px;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised)}:host([data-vp-layout=\"sidebar\"]) .vp-shell__quota-head{margin-bottom:0;font-size:var(--vp-text-sm)}:host([data-vp-layout=\"sidebar\"]) .vp-shell__quota-value{font-family:var(--vp-font-mono)}:host([data-vp-layout=\"sidebar\"]) .vp-shell__quota-bar{background:var(--vp-surface-sunken)}:host([data-vp-layout=\"sidebar\"]) .vp-shell__quota-fill{background:var(--vp-brand-line)}:host([data-vp-layout=\"sidebar\"]) .vp-shell__quota-hint{margin:0}:host([data-vp-layout=\"sidebar\"]) .vp-shell__sidebar[data-collapsed]:not([data-overlay]) .vp-shell__sidebar-head{padding:14px 9px;align-items:center}:host([data-vp-layout=\"sidebar\"]) .vp-shell__sidebar[data-collapsed]:not([data-overlay]) .vp-shell__sidebar-scroll{border-top:1px solid var(--vp-border-subtle);padding-top:9px}:host([data-vp-layout=\"sidebar\"]) .vp-shell__sidebar[data-collapsed]:not([data-overlay]) .vp-shell__quota{padding:7px 5px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1326
1326
|
}
|
|
1327
1327
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpShellComponent, decorators: [{
|
|
1328
1328
|
type: Component,
|
|
1329
|
-
args: [{ selector: 'vp-shell', standalone: true, host: { '[attr.data-vp-layout]': 'layout' }, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1330
|
-
<!-- Atlama baglantisi DOM'da ILK odaklanabilir oge olmali.
|
|
1331
|
-
Klavye kullanicisi her sayfada menuyu bastan gecmek zorunda kalmasin. -->
|
|
1332
|
-
<a class="vp-skip" data-vp-skip href="#vp-main">{{ skipLabel }}</a>
|
|
1333
|
-
|
|
1334
|
-
<!--
|
|
1335
|
-
Paket 28 · layout="sidebar" (prototip kabugu): genis ekranda UST CUBUK YOK — marka, araclar ve arama kenar
|
|
1336
|
-
cubugunun basinda, kirinti icerigin basinda. Ust cubuk yalniz cekmece kipinde geliyor (cekmece dugmesi + marka).
|
|
1337
|
-
-->
|
|
1338
|
-
@if (layout === 'topbar' || overlay()) {
|
|
1339
|
-
<header class="vp-shell__topbar">
|
|
1340
|
-
<!--
|
|
1341
|
-
🔴 Cekmece tetikleyicisi KABUGUN kendi ogesi, uygulamanin degil.
|
|
1342
|
-
Olculdu (2026-09-08): dar ekranda kenar cubugu ekran disinda
|
|
1343
|
-
bekliyordu ve onu geri getirecek gorunur bir denetim yoktu —
|
|
1344
|
-
vp-sidebar-toggle uygulamanin ust cubuguna KOYULURSA vardi, ve
|
|
1345
|
-
iki konsol onu koymamisti. Menuye ulasmanin tek yolu, kabugun
|
|
1346
|
-
garanti ettigi bir dugme olmali.
|
|
1347
|
-
|
|
1348
|
-
Yalniz overlay kipinde ciziliyor: genis ekranda menu zaten akista
|
|
1349
|
-
ve ikinci bir daraltma denetimi iki ayri kip demek olurdu.
|
|
1350
|
-
-->
|
|
1351
|
-
@if (overlay()) {
|
|
1352
|
-
<button
|
|
1353
|
-
type="button"
|
|
1354
|
-
class="vp-shell__drawer-toggle"
|
|
1355
|
-
data-vp-drawer-toggle
|
|
1356
|
-
[attr.aria-controls]="sidebarId"
|
|
1357
|
-
[attr.aria-expanded]="!collapsed"
|
|
1358
|
-
[attr.aria-label]="collapsed ? menuOpenLabel : menuCloseLabel"
|
|
1359
|
-
(click)="toggleDrawer()">
|
|
1360
|
-
<span class="vp-shell__burger" aria-hidden="true"></span>
|
|
1361
|
-
</button>
|
|
1362
|
-
}
|
|
1363
|
-
<ng-content select="[topbar]" />
|
|
1364
|
-
</header>
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
<div class="vp-shell__body">
|
|
1368
|
-
<!--
|
|
1369
|
-
id ZORUNLU: vp-sidebar-toggle bunu aria-controls ile isaret
|
|
1370
|
-
ediyor. Olculdu (2026-08-27): dugme eklendiginde bu id yoktu ve
|
|
1371
|
-
aria-controls olmayan bir bolgeyi gosteriyordu — ekran okuyucu
|
|
1372
|
-
icin varmis gibi gorunen, gercekte olmayan bir baglanti.
|
|
1373
|
-
-->
|
|
1374
|
-
<aside
|
|
1375
|
-
#sidebar
|
|
1376
|
-
[id]="sidebarId"
|
|
1377
|
-
class="vp-shell__sidebar"
|
|
1378
|
-
[attr.data-collapsed]="collapsed || null"
|
|
1379
|
-
[attr.data-overlay]="overlay() || null"
|
|
1380
|
-
[attr.data-vp-drawer]="overlay() ? (collapsed ? 'closed' : 'open') : null"
|
|
1381
|
-
[attr.inert]="overlay() && collapsed ? '' : null">
|
|
1382
|
-
<!--
|
|
1383
|
-
Menu kendi kaydirma kutusunda: kota ve dil kenar cubugunun ALTINA
|
|
1384
|
-
sabitleniyor. Ayni kutuda olsalardi uzun menude ekrandan cikarlardi
|
|
1385
|
-
ve kullanici kotayi gormek icin menuyu sonuna kadar kaydirirdi.
|
|
1386
|
-
-->
|
|
1387
|
-
<!--
|
|
1388
|
-
Kenar cubugu basi (paket 28): marka · ray dugmesi · zil · tema; altinda konsol secici ve arama. Menunun
|
|
1389
|
-
kaydirma kutusunun DISINDA: uzun menude marka ve arama ekrandan cikmamali. Bossa gizli (:empty).
|
|
1390
|
-
-->
|
|
1391
|
-
<div class="vp-shell__sidebar-head"><ng-content select="[sidebarHead]" /></div>
|
|
1392
|
-
|
|
1393
|
-
<div class="vp-shell__sidebar-scroll">
|
|
1394
|
-
<ng-content select="[sidebar]" />
|
|
1395
|
-
</div>
|
|
1396
|
-
|
|
1397
|
-
<!--
|
|
1398
|
-
Ayak HER ZAMAN var, bossa CSS ile gizli (:empty). Tuketici yuvasi [sidebarFoot]
|
|
1399
|
-
(2026-09-13): mobil uygulama girisi gibi maddeler once, kota ve dil sonra.
|
|
1400
|
-
Olculdu: yuva yokken giris [sidebar] kutusuna girip uzun menude ekrandan cikiyordu.
|
|
1401
|
-
-->
|
|
1402
|
-
<div class="vp-shell__sidebar-foot">
|
|
1403
|
-
<ng-content select="[sidebarFoot]" />
|
|
1404
|
-
@if (quota) {
|
|
1405
|
-
<!--
|
|
1406
|
-
B1-K2: kota gostergesi KABUGUN parcasi, ayri bir bilesen degil.
|
|
1407
|
-
Kenar cubugunun alti kabugun kendi alani ve ray kipinde de
|
|
1408
|
-
kabugun kuralina uyuyor.
|
|
1409
|
-
|
|
1410
|
-
Esik tek yerde (VP_QUOTA_WARN / VP_QUOTA_CRITICAL): ekran
|
|
1411
|
-
basina esik tanimlamak, iki ekranda iki farkli "dolmak uzere"
|
|
1412
|
-
demektir.
|
|
1413
|
-
-->
|
|
1414
|
-
<div
|
|
1415
|
-
class="vp-shell__quota"
|
|
1416
|
-
data-vp-quota
|
|
1417
|
-
[attr.data-vp-quota-level]="quotaLevel"
|
|
1418
|
-
[attr.data-vp-quota-compact]="collapsed ? 'true' : null"
|
|
1419
|
-
[attr.title]="collapsed ? quotaText : null">
|
|
1420
|
-
<div class="vp-shell__quota-head">
|
|
1421
|
-
<span class="vp-shell__quota-label">{{ quota.label }}</span>
|
|
1422
|
-
<span class="vp-shell__quota-value">{{ quotaText }}</span>
|
|
1423
|
-
</div>
|
|
1424
|
-
<!--
|
|
1425
|
-
Deger yalniz RENKLE anlatilmiyor: role=progressbar ve
|
|
1426
|
-
aria-valuenow ile de duyuruluyor. Renk korfarki olan bir
|
|
1427
|
-
kullanici icin dolu cubuk ile bos cubuk ayni gorunur.
|
|
1428
|
-
-->
|
|
1429
|
-
<div
|
|
1430
|
-
class="vp-shell__quota-bar"
|
|
1431
|
-
role="progressbar"
|
|
1432
|
-
aria-valuemin="0"
|
|
1433
|
-
aria-valuemax="100"
|
|
1434
|
-
[attr.aria-valuenow]="quotaPercent"
|
|
1435
|
-
[attr.aria-valuetext]="quotaText"
|
|
1436
|
-
[attr.aria-label]="quota.label">
|
|
1437
|
-
@if (quotaSegments.length) {
|
|
1438
|
-
@for (segment of quotaSegments; track segment.label) {
|
|
1439
|
-
<span
|
|
1440
|
-
class="vp-shell__quota-fill vp-shell__quota-fill--segment"
|
|
1441
|
-
data-vp-quota-segment
|
|
1442
|
-
[attr.data-vp-quota-segment-label]="segment.label"
|
|
1443
|
-
[attr.title]="segment.title"
|
|
1444
|
-
[style.inline-size.%]="segment.percent"
|
|
1445
|
-
[style.background]="segment.color"></span>
|
|
1446
|
-
}
|
|
1447
|
-
} @else {
|
|
1448
|
-
<span class="vp-shell__quota-fill" [style.inline-size.%]="quotaPercent"></span>
|
|
1449
|
-
}
|
|
1450
|
-
</div>
|
|
1451
|
-
@if (quota.hint && !collapsed) {
|
|
1452
|
-
<p class="vp-shell__quota-hint">{{ quota.hint }}</p>
|
|
1453
|
-
}
|
|
1454
|
-
</div>
|
|
1455
|
-
}
|
|
1456
|
-
|
|
1457
|
-
@if (languages.length) {
|
|
1458
|
-
<!--
|
|
1459
|
-
B1-K3: dil DENETIMI kabukta, MANTIK @virusis/i18n'de.
|
|
1460
|
-
Kabuk secimi gosterip olayi yayiyor; cozumleme, kalicilik ve
|
|
1461
|
-
?lang= -> kayit -> tarayici sirasi kabugun isi DEGIL. Kabuk
|
|
1462
|
-
document.lang yazarsa dil mantigi iki yere bolunur.
|
|
1463
|
-
-->
|
|
1464
|
-
<div class="vp-shell__lang" data-vp-lang [attr.role]="'group'" [attr.aria-label]="languageLabel">
|
|
1465
|
-
@for (option of languages; track option.code) {
|
|
1466
|
-
<button
|
|
1467
|
-
type="button"
|
|
1468
|
-
class="vp-shell__lang-option"
|
|
1469
|
-
data-vp-lang-option
|
|
1470
|
-
[attr.data-vp-lang-code]="option.code"
|
|
1471
|
-
[attr.aria-pressed]="option.code === language"
|
|
1472
|
-
[attr.title]="option.label"
|
|
1473
|
-
(click)="languageChange.emit(option.code)">
|
|
1474
|
-
{{ collapsed ? option.code.toUpperCase() : option.label }}
|
|
1475
|
-
</button>
|
|
1476
|
-
}
|
|
1477
|
-
</div>
|
|
1478
|
-
}
|
|
1479
|
-
<!-- Ayak sonu (paket 28): prototipte hesap kutusu ve anonim "saklı taramalar" kartı kotanın ALTINDA. -->
|
|
1480
|
-
<ng-content select="[sidebarFootEnd]" />
|
|
1481
|
-
</div>
|
|
1482
|
-
</aside>
|
|
1483
|
-
|
|
1484
|
-
@if (overlay() && !collapsed) {
|
|
1485
|
-
<!--
|
|
1486
|
-
🔴 Maske YALNIZ dar ekranda ve menu ACIKKEN var.
|
|
1487
|
-
Genis ekranda hic cizilmiyor: gorunmez bir katman, uzerindeki
|
|
1488
|
-
tiklamalari sessizce yutardi.
|
|
1489
|
-
|
|
1490
|
-
⚠️ button degil div: ekran okuyucu icin ikinci bir "kapat"
|
|
1491
|
-
duragi olusturmuyor — kapatmanin erisilebilir yolu ust cubuktaki
|
|
1492
|
-
vp-sidebar-toggle dugmesi. Maske yalniz isaretleme kolayligi.
|
|
1493
|
-
-->
|
|
1494
|
-
<div
|
|
1495
|
-
class="vp-shell__mask"
|
|
1496
|
-
data-vp-shell-mask
|
|
1497
|
-
data-vp-scrim
|
|
1498
|
-
aria-hidden="true"
|
|
1499
|
-
(click)="collapsedChange.emit(true)"></div>
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
<main id="vp-main" class="vp-shell__main" tabindex="-1">
|
|
1503
|
-
<!-- Kirinti satiri (paket 28 · prototip crumbs-row): ray dugmesi + iz, icerigin basinda. Bossa gizli. -->
|
|
1504
|
-
<div class="vp-shell__crumbs"><ng-content select="[crumbs]" /></div>
|
|
1505
|
-
<ng-content />
|
|
1506
|
-
</main>
|
|
1507
|
-
</div>
|
|
1508
|
-
|
|
1509
|
-
<!--
|
|
1510
|
-
Alt bilgi ana icerigin DISINDA. Varsayilan yuvaya konsaydi footer
|
|
1511
|
-
main ICINDE kalirdi ve HTML kurallarina gore main icindeki footer bir
|
|
1512
|
-
contentinfo yer isareti degildir - isaret sessizce kaybolurdu.
|
|
1513
|
-
-->
|
|
1514
|
-
<ng-content select="[footer]" />
|
|
1329
|
+
args: [{ selector: 'vp-shell', standalone: true, host: { '[attr.data-vp-layout]': 'layout' }, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1330
|
+
<!-- Atlama baglantisi DOM'da ILK odaklanabilir oge olmali.
|
|
1331
|
+
Klavye kullanicisi her sayfada menuyu bastan gecmek zorunda kalmasin. -->
|
|
1332
|
+
<a class="vp-skip" data-vp-skip href="#vp-main">{{ skipLabel }}</a>
|
|
1333
|
+
|
|
1334
|
+
<!--
|
|
1335
|
+
Paket 28 · layout="sidebar" (prototip kabugu): genis ekranda UST CUBUK YOK — marka, araclar ve arama kenar
|
|
1336
|
+
cubugunun basinda, kirinti icerigin basinda. Ust cubuk yalniz cekmece kipinde geliyor (cekmece dugmesi + marka).
|
|
1337
|
+
-->
|
|
1338
|
+
@if (layout === 'topbar' || overlay()) {
|
|
1339
|
+
<header class="vp-shell__topbar">
|
|
1340
|
+
<!--
|
|
1341
|
+
🔴 Cekmece tetikleyicisi KABUGUN kendi ogesi, uygulamanin degil.
|
|
1342
|
+
Olculdu (2026-09-08): dar ekranda kenar cubugu ekran disinda
|
|
1343
|
+
bekliyordu ve onu geri getirecek gorunur bir denetim yoktu —
|
|
1344
|
+
vp-sidebar-toggle uygulamanin ust cubuguna KOYULURSA vardi, ve
|
|
1345
|
+
iki konsol onu koymamisti. Menuye ulasmanin tek yolu, kabugun
|
|
1346
|
+
garanti ettigi bir dugme olmali.
|
|
1347
|
+
|
|
1348
|
+
Yalniz overlay kipinde ciziliyor: genis ekranda menu zaten akista
|
|
1349
|
+
ve ikinci bir daraltma denetimi iki ayri kip demek olurdu.
|
|
1350
|
+
-->
|
|
1351
|
+
@if (overlay()) {
|
|
1352
|
+
<button
|
|
1353
|
+
type="button"
|
|
1354
|
+
class="vp-shell__drawer-toggle"
|
|
1355
|
+
data-vp-drawer-toggle
|
|
1356
|
+
[attr.aria-controls]="sidebarId"
|
|
1357
|
+
[attr.aria-expanded]="!collapsed"
|
|
1358
|
+
[attr.aria-label]="collapsed ? menuOpenLabel : menuCloseLabel"
|
|
1359
|
+
(click)="toggleDrawer()">
|
|
1360
|
+
<span class="vp-shell__burger" aria-hidden="true"></span>
|
|
1361
|
+
</button>
|
|
1362
|
+
}
|
|
1363
|
+
<ng-content select="[topbar]" />
|
|
1364
|
+
</header>
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
<div class="vp-shell__body">
|
|
1368
|
+
<!--
|
|
1369
|
+
id ZORUNLU: vp-sidebar-toggle bunu aria-controls ile isaret
|
|
1370
|
+
ediyor. Olculdu (2026-08-27): dugme eklendiginde bu id yoktu ve
|
|
1371
|
+
aria-controls olmayan bir bolgeyi gosteriyordu — ekran okuyucu
|
|
1372
|
+
icin varmis gibi gorunen, gercekte olmayan bir baglanti.
|
|
1373
|
+
-->
|
|
1374
|
+
<aside
|
|
1375
|
+
#sidebar
|
|
1376
|
+
[id]="sidebarId"
|
|
1377
|
+
class="vp-shell__sidebar"
|
|
1378
|
+
[attr.data-collapsed]="collapsed || null"
|
|
1379
|
+
[attr.data-overlay]="overlay() || null"
|
|
1380
|
+
[attr.data-vp-drawer]="overlay() ? (collapsed ? 'closed' : 'open') : null"
|
|
1381
|
+
[attr.inert]="overlay() && collapsed ? '' : null">
|
|
1382
|
+
<!--
|
|
1383
|
+
Menu kendi kaydirma kutusunda: kota ve dil kenar cubugunun ALTINA
|
|
1384
|
+
sabitleniyor. Ayni kutuda olsalardi uzun menude ekrandan cikarlardi
|
|
1385
|
+
ve kullanici kotayi gormek icin menuyu sonuna kadar kaydirirdi.
|
|
1386
|
+
-->
|
|
1387
|
+
<!--
|
|
1388
|
+
Kenar cubugu basi (paket 28): marka · ray dugmesi · zil · tema; altinda konsol secici ve arama. Menunun
|
|
1389
|
+
kaydirma kutusunun DISINDA: uzun menude marka ve arama ekrandan cikmamali. Bossa gizli (:empty).
|
|
1390
|
+
-->
|
|
1391
|
+
<div class="vp-shell__sidebar-head"><ng-content select="[sidebarHead]" /></div>
|
|
1392
|
+
|
|
1393
|
+
<div class="vp-shell__sidebar-scroll">
|
|
1394
|
+
<ng-content select="[sidebar]" />
|
|
1395
|
+
</div>
|
|
1396
|
+
|
|
1397
|
+
<!--
|
|
1398
|
+
Ayak HER ZAMAN var, bossa CSS ile gizli (:empty). Tuketici yuvasi [sidebarFoot]
|
|
1399
|
+
(2026-09-13): mobil uygulama girisi gibi maddeler once, kota ve dil sonra.
|
|
1400
|
+
Olculdu: yuva yokken giris [sidebar] kutusuna girip uzun menude ekrandan cikiyordu.
|
|
1401
|
+
-->
|
|
1402
|
+
<div class="vp-shell__sidebar-foot">
|
|
1403
|
+
<ng-content select="[sidebarFoot]" />
|
|
1404
|
+
@if (quota) {
|
|
1405
|
+
<!--
|
|
1406
|
+
B1-K2: kota gostergesi KABUGUN parcasi, ayri bir bilesen degil.
|
|
1407
|
+
Kenar cubugunun alti kabugun kendi alani ve ray kipinde de
|
|
1408
|
+
kabugun kuralina uyuyor.
|
|
1409
|
+
|
|
1410
|
+
Esik tek yerde (VP_QUOTA_WARN / VP_QUOTA_CRITICAL): ekran
|
|
1411
|
+
basina esik tanimlamak, iki ekranda iki farkli "dolmak uzere"
|
|
1412
|
+
demektir.
|
|
1413
|
+
-->
|
|
1414
|
+
<div
|
|
1415
|
+
class="vp-shell__quota"
|
|
1416
|
+
data-vp-quota
|
|
1417
|
+
[attr.data-vp-quota-level]="quotaLevel"
|
|
1418
|
+
[attr.data-vp-quota-compact]="collapsed ? 'true' : null"
|
|
1419
|
+
[attr.title]="collapsed ? quotaText : null">
|
|
1420
|
+
<div class="vp-shell__quota-head">
|
|
1421
|
+
<span class="vp-shell__quota-label">{{ quota.label }}</span>
|
|
1422
|
+
<span class="vp-shell__quota-value">{{ quotaText }}</span>
|
|
1423
|
+
</div>
|
|
1424
|
+
<!--
|
|
1425
|
+
Deger yalniz RENKLE anlatilmiyor: role=progressbar ve
|
|
1426
|
+
aria-valuenow ile de duyuruluyor. Renk korfarki olan bir
|
|
1427
|
+
kullanici icin dolu cubuk ile bos cubuk ayni gorunur.
|
|
1428
|
+
-->
|
|
1429
|
+
<div
|
|
1430
|
+
class="vp-shell__quota-bar"
|
|
1431
|
+
role="progressbar"
|
|
1432
|
+
aria-valuemin="0"
|
|
1433
|
+
aria-valuemax="100"
|
|
1434
|
+
[attr.aria-valuenow]="quotaPercent"
|
|
1435
|
+
[attr.aria-valuetext]="quotaText"
|
|
1436
|
+
[attr.aria-label]="quota.label">
|
|
1437
|
+
@if (quotaSegments.length) {
|
|
1438
|
+
@for (segment of quotaSegments; track segment.label) {
|
|
1439
|
+
<span
|
|
1440
|
+
class="vp-shell__quota-fill vp-shell__quota-fill--segment"
|
|
1441
|
+
data-vp-quota-segment
|
|
1442
|
+
[attr.data-vp-quota-segment-label]="segment.label"
|
|
1443
|
+
[attr.title]="segment.title"
|
|
1444
|
+
[style.inline-size.%]="segment.percent"
|
|
1445
|
+
[style.background]="segment.color"></span>
|
|
1446
|
+
}
|
|
1447
|
+
} @else {
|
|
1448
|
+
<span class="vp-shell__quota-fill" [style.inline-size.%]="quotaPercent"></span>
|
|
1449
|
+
}
|
|
1450
|
+
</div>
|
|
1451
|
+
@if (quota.hint && !collapsed) {
|
|
1452
|
+
<p class="vp-shell__quota-hint">{{ quota.hint }}</p>
|
|
1453
|
+
}
|
|
1454
|
+
</div>
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
@if (languages.length) {
|
|
1458
|
+
<!--
|
|
1459
|
+
B1-K3: dil DENETIMI kabukta, MANTIK @virusis/i18n'de.
|
|
1460
|
+
Kabuk secimi gosterip olayi yayiyor; cozumleme, kalicilik ve
|
|
1461
|
+
?lang= -> kayit -> tarayici sirasi kabugun isi DEGIL. Kabuk
|
|
1462
|
+
document.lang yazarsa dil mantigi iki yere bolunur.
|
|
1463
|
+
-->
|
|
1464
|
+
<div class="vp-shell__lang" data-vp-lang [attr.role]="'group'" [attr.aria-label]="languageLabel">
|
|
1465
|
+
@for (option of languages; track option.code) {
|
|
1466
|
+
<button
|
|
1467
|
+
type="button"
|
|
1468
|
+
class="vp-shell__lang-option"
|
|
1469
|
+
data-vp-lang-option
|
|
1470
|
+
[attr.data-vp-lang-code]="option.code"
|
|
1471
|
+
[attr.aria-pressed]="option.code === language"
|
|
1472
|
+
[attr.title]="option.label"
|
|
1473
|
+
(click)="languageChange.emit(option.code)">
|
|
1474
|
+
{{ collapsed ? option.code.toUpperCase() : option.label }}
|
|
1475
|
+
</button>
|
|
1476
|
+
}
|
|
1477
|
+
</div>
|
|
1478
|
+
}
|
|
1479
|
+
<!-- Ayak sonu (paket 28): prototipte hesap kutusu ve anonim "saklı taramalar" kartı kotanın ALTINDA. -->
|
|
1480
|
+
<ng-content select="[sidebarFootEnd]" />
|
|
1481
|
+
</div>
|
|
1482
|
+
</aside>
|
|
1483
|
+
|
|
1484
|
+
@if (overlay() && !collapsed) {
|
|
1485
|
+
<!--
|
|
1486
|
+
🔴 Maske YALNIZ dar ekranda ve menu ACIKKEN var.
|
|
1487
|
+
Genis ekranda hic cizilmiyor: gorunmez bir katman, uzerindeki
|
|
1488
|
+
tiklamalari sessizce yutardi.
|
|
1489
|
+
|
|
1490
|
+
⚠️ button degil div: ekran okuyucu icin ikinci bir "kapat"
|
|
1491
|
+
duragi olusturmuyor — kapatmanin erisilebilir yolu ust cubuktaki
|
|
1492
|
+
vp-sidebar-toggle dugmesi. Maske yalniz isaretleme kolayligi.
|
|
1493
|
+
-->
|
|
1494
|
+
<div
|
|
1495
|
+
class="vp-shell__mask"
|
|
1496
|
+
data-vp-shell-mask
|
|
1497
|
+
data-vp-scrim
|
|
1498
|
+
aria-hidden="true"
|
|
1499
|
+
(click)="collapsedChange.emit(true)"></div>
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
<main id="vp-main" class="vp-shell__main" tabindex="-1">
|
|
1503
|
+
<!-- Kirinti satiri (paket 28 · prototip crumbs-row): ray dugmesi + iz, icerigin basinda. Bossa gizli. -->
|
|
1504
|
+
<div class="vp-shell__crumbs"><ng-content select="[crumbs]" /></div>
|
|
1505
|
+
<ng-content />
|
|
1506
|
+
</main>
|
|
1507
|
+
</div>
|
|
1508
|
+
|
|
1509
|
+
<!--
|
|
1510
|
+
Alt bilgi ana icerigin DISINDA. Varsayilan yuvaya konsaydi footer
|
|
1511
|
+
main ICINDE kalirdi ve HTML kurallarina gore main icindeki footer bir
|
|
1512
|
+
contentinfo yer isareti degildir - isaret sessizce kaybolurdu.
|
|
1513
|
+
-->
|
|
1514
|
+
<ng-content select="[footer]" />
|
|
1515
1515
|
`, 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__sidebar-foot:empty{display:none}.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}}.vp-shell__sidebar-head:empty,.vp-shell__crumbs:empty{display:none}.vp-shell__sidebar-head{display:flex;flex-direction:column;gap:12px;padding:14px 12px 0}.vp-shell__crumbs{display:flex;align-items:center;gap:8px;margin-bottom:6px}:host([data-vp-layout=\"sidebar\"]) .vp-shell__sidebar:not([data-overlay]){position:sticky;top:0;align-self:flex-start;height:100dvh}:host([data-vp-layout=\"sidebar\"]) .vp-shell__sidebar-scroll{padding-top:12px}:host([data-vp-layout=\"sidebar\"]) .vp-shell__sidebar[data-overlay]{width:min(272px,82vw)}:host([data-vp-layout=\"sidebar\"]) .vp-shell__sidebar[data-overlay][data-collapsed]{width:min(272px,82vw)}:host([data-vp-layout=\"sidebar\"]) .vp-shell__main{padding:18px 24px 44px}:host([data-vp-layout=\"sidebar\"]) .vp-shell__topbar{height:52px;gap:10px;padding-inline:10px}:host([data-vp-layout=\"sidebar\"]) .vp-shell__sidebar-foot{gap:2px;padding:8px 12px 12px}:host([data-vp-layout=\"sidebar\"]) .vp-shell__quota{display:grid;gap:7px;margin-block:4px;padding:9px 10px;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised)}:host([data-vp-layout=\"sidebar\"]) .vp-shell__quota-head{margin-bottom:0;font-size:var(--vp-text-sm)}:host([data-vp-layout=\"sidebar\"]) .vp-shell__quota-value{font-family:var(--vp-font-mono)}:host([data-vp-layout=\"sidebar\"]) .vp-shell__quota-bar{background:var(--vp-surface-sunken)}:host([data-vp-layout=\"sidebar\"]) .vp-shell__quota-fill{background:var(--vp-brand-line)}:host([data-vp-layout=\"sidebar\"]) .vp-shell__quota-hint{margin:0}:host([data-vp-layout=\"sidebar\"]) .vp-shell__sidebar[data-collapsed]:not([data-overlay]) .vp-shell__sidebar-head{padding:14px 9px;align-items:center}:host([data-vp-layout=\"sidebar\"]) .vp-shell__sidebar[data-collapsed]:not([data-overlay]) .vp-shell__sidebar-scroll{border-top:1px solid var(--vp-border-subtle);padding-top:9px}:host([data-vp-layout=\"sidebar\"]) .vp-shell__sidebar[data-collapsed]:not([data-overlay]) .vp-shell__quota{padding:7px 5px}\n"] }]
|
|
1516
1516
|
}], ctorParameters: () => [], propDecorators: { sidebarId: [{
|
|
1517
1517
|
type: Input
|
|
@@ -1632,80 +1632,80 @@ class VpPageHeaderComponent {
|
|
|
1632
1632
|
this.count = null;
|
|
1633
1633
|
}
|
|
1634
1634
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpPageHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1635
|
-
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: `
|
|
1636
|
-
<div class="vp-page-header">
|
|
1637
|
-
<div class="vp-page-header__bar">
|
|
1638
|
-
<div class="vp-page-header__text">
|
|
1639
|
-
<div class="vp-page-header__heading-row">
|
|
1640
|
-
<h1 class="vp-page-header__heading">{{ heading }}</h1>
|
|
1641
|
-
@if (count !== null && count !== undefined) {
|
|
1642
|
-
<span class="vp-page-header__count" data-vp-count>{{ count }}</span>
|
|
1643
|
-
}
|
|
1644
|
-
<!-- Durum basligin YANINDA: rozet baslikla ayni cumlenin parcasi. -->
|
|
1645
|
-
<span class="vp-page-header__status" data-vp-status>
|
|
1646
|
-
<ng-content select="[status]" />
|
|
1647
|
-
</span>
|
|
1648
|
-
</div>
|
|
1649
|
-
@if (description) {
|
|
1650
|
-
<p class="vp-page-header__description" data-vp-subheading>{{ description }}</p>
|
|
1651
|
-
}
|
|
1652
|
-
<!--
|
|
1653
|
-
Metadata satiri aciklamanin ALTINDA: aciklama ekranin ne oldugunu,
|
|
1654
|
-
metadata bu kaydin ne oldugunu soyluyor. Ters sirada, kayda ozel
|
|
1655
|
-
veri sayfa aciklamasi gibi okunurdu.
|
|
1656
|
-
-->
|
|
1657
|
-
<div class="vp-page-header__meta" data-vp-meta>
|
|
1658
|
-
<ng-content select="[meta]" />
|
|
1659
|
-
</div>
|
|
1660
|
-
</div>
|
|
1661
|
-
<div class="vp-page-header__actions">
|
|
1662
|
-
<ng-content select="[actions]" />
|
|
1663
|
-
</div>
|
|
1664
|
-
</div>
|
|
1665
|
-
<!-- Sekmeler basligin ALTINDA ve tam genislikte: sayfa icinde gezinme. -->
|
|
1666
|
-
<div class="vp-page-header__tabs" data-vp-tabs>
|
|
1667
|
-
<ng-content select="[tabs]" />
|
|
1668
|
-
</div>
|
|
1669
|
-
</div>
|
|
1635
|
+
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: `
|
|
1636
|
+
<div class="vp-page-header">
|
|
1637
|
+
<div class="vp-page-header__bar">
|
|
1638
|
+
<div class="vp-page-header__text">
|
|
1639
|
+
<div class="vp-page-header__heading-row">
|
|
1640
|
+
<h1 class="vp-page-header__heading">{{ heading }}</h1>
|
|
1641
|
+
@if (count !== null && count !== undefined) {
|
|
1642
|
+
<span class="vp-page-header__count" data-vp-count>{{ count }}</span>
|
|
1643
|
+
}
|
|
1644
|
+
<!-- Durum basligin YANINDA: rozet baslikla ayni cumlenin parcasi. -->
|
|
1645
|
+
<span class="vp-page-header__status" data-vp-status>
|
|
1646
|
+
<ng-content select="[status]" />
|
|
1647
|
+
</span>
|
|
1648
|
+
</div>
|
|
1649
|
+
@if (description) {
|
|
1650
|
+
<p class="vp-page-header__description" data-vp-subheading>{{ description }}</p>
|
|
1651
|
+
}
|
|
1652
|
+
<!--
|
|
1653
|
+
Metadata satiri aciklamanin ALTINDA: aciklama ekranin ne oldugunu,
|
|
1654
|
+
metadata bu kaydin ne oldugunu soyluyor. Ters sirada, kayda ozel
|
|
1655
|
+
veri sayfa aciklamasi gibi okunurdu.
|
|
1656
|
+
-->
|
|
1657
|
+
<div class="vp-page-header__meta" data-vp-meta>
|
|
1658
|
+
<ng-content select="[meta]" />
|
|
1659
|
+
</div>
|
|
1660
|
+
</div>
|
|
1661
|
+
<div class="vp-page-header__actions">
|
|
1662
|
+
<ng-content select="[actions]" />
|
|
1663
|
+
</div>
|
|
1664
|
+
</div>
|
|
1665
|
+
<!-- Sekmeler basligin ALTINDA ve tam genislikte: sayfa icinde gezinme. -->
|
|
1666
|
+
<div class="vp-page-header__tabs" data-vp-tabs>
|
|
1667
|
+
<ng-content select="[tabs]" />
|
|
1668
|
+
</div>
|
|
1669
|
+
</div>
|
|
1670
1670
|
`, 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-title);font-weight:var(--vp-weight-semibold);letter-spacing:-.01em;line-height:var(--vp-leading-tight);color:var(--vp-text-primary);text-wrap:balance}.vp-page-header__count{color:var(--vp-text-muted);font-family:var(--vp-font-mono);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-page-header__description{margin:2px 0 0;color:var(--vp-text-secondary);font-size:var(--vp-text-sm)}.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 }); }
|
|
1671
1671
|
}
|
|
1672
1672
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpPageHeaderComponent, decorators: [{
|
|
1673
1673
|
type: Component,
|
|
1674
|
-
args: [{ selector: 'vp-page-header', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1675
|
-
<div class="vp-page-header">
|
|
1676
|
-
<div class="vp-page-header__bar">
|
|
1677
|
-
<div class="vp-page-header__text">
|
|
1678
|
-
<div class="vp-page-header__heading-row">
|
|
1679
|
-
<h1 class="vp-page-header__heading">{{ heading }}</h1>
|
|
1680
|
-
@if (count !== null && count !== undefined) {
|
|
1681
|
-
<span class="vp-page-header__count" data-vp-count>{{ count }}</span>
|
|
1682
|
-
}
|
|
1683
|
-
<!-- Durum basligin YANINDA: rozet baslikla ayni cumlenin parcasi. -->
|
|
1684
|
-
<span class="vp-page-header__status" data-vp-status>
|
|
1685
|
-
<ng-content select="[status]" />
|
|
1686
|
-
</span>
|
|
1687
|
-
</div>
|
|
1688
|
-
@if (description) {
|
|
1689
|
-
<p class="vp-page-header__description" data-vp-subheading>{{ description }}</p>
|
|
1690
|
-
}
|
|
1691
|
-
<!--
|
|
1692
|
-
Metadata satiri aciklamanin ALTINDA: aciklama ekranin ne oldugunu,
|
|
1693
|
-
metadata bu kaydin ne oldugunu soyluyor. Ters sirada, kayda ozel
|
|
1694
|
-
veri sayfa aciklamasi gibi okunurdu.
|
|
1695
|
-
-->
|
|
1696
|
-
<div class="vp-page-header__meta" data-vp-meta>
|
|
1697
|
-
<ng-content select="[meta]" />
|
|
1698
|
-
</div>
|
|
1699
|
-
</div>
|
|
1700
|
-
<div class="vp-page-header__actions">
|
|
1701
|
-
<ng-content select="[actions]" />
|
|
1702
|
-
</div>
|
|
1703
|
-
</div>
|
|
1704
|
-
<!-- Sekmeler basligin ALTINDA ve tam genislikte: sayfa icinde gezinme. -->
|
|
1705
|
-
<div class="vp-page-header__tabs" data-vp-tabs>
|
|
1706
|
-
<ng-content select="[tabs]" />
|
|
1707
|
-
</div>
|
|
1708
|
-
</div>
|
|
1674
|
+
args: [{ selector: 'vp-page-header', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1675
|
+
<div class="vp-page-header">
|
|
1676
|
+
<div class="vp-page-header__bar">
|
|
1677
|
+
<div class="vp-page-header__text">
|
|
1678
|
+
<div class="vp-page-header__heading-row">
|
|
1679
|
+
<h1 class="vp-page-header__heading">{{ heading }}</h1>
|
|
1680
|
+
@if (count !== null && count !== undefined) {
|
|
1681
|
+
<span class="vp-page-header__count" data-vp-count>{{ count }}</span>
|
|
1682
|
+
}
|
|
1683
|
+
<!-- Durum basligin YANINDA: rozet baslikla ayni cumlenin parcasi. -->
|
|
1684
|
+
<span class="vp-page-header__status" data-vp-status>
|
|
1685
|
+
<ng-content select="[status]" />
|
|
1686
|
+
</span>
|
|
1687
|
+
</div>
|
|
1688
|
+
@if (description) {
|
|
1689
|
+
<p class="vp-page-header__description" data-vp-subheading>{{ description }}</p>
|
|
1690
|
+
}
|
|
1691
|
+
<!--
|
|
1692
|
+
Metadata satiri aciklamanin ALTINDA: aciklama ekranin ne oldugunu,
|
|
1693
|
+
metadata bu kaydin ne oldugunu soyluyor. Ters sirada, kayda ozel
|
|
1694
|
+
veri sayfa aciklamasi gibi okunurdu.
|
|
1695
|
+
-->
|
|
1696
|
+
<div class="vp-page-header__meta" data-vp-meta>
|
|
1697
|
+
<ng-content select="[meta]" />
|
|
1698
|
+
</div>
|
|
1699
|
+
</div>
|
|
1700
|
+
<div class="vp-page-header__actions">
|
|
1701
|
+
<ng-content select="[actions]" />
|
|
1702
|
+
</div>
|
|
1703
|
+
</div>
|
|
1704
|
+
<!-- Sekmeler basligin ALTINDA ve tam genislikte: sayfa icinde gezinme. -->
|
|
1705
|
+
<div class="vp-page-header__tabs" data-vp-tabs>
|
|
1706
|
+
<ng-content select="[tabs]" />
|
|
1707
|
+
</div>
|
|
1708
|
+
</div>
|
|
1709
1709
|
`, 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-title);font-weight:var(--vp-weight-semibold);letter-spacing:-.01em;line-height:var(--vp-leading-tight);color:var(--vp-text-primary);text-wrap:balance}.vp-page-header__count{color:var(--vp-text-muted);font-family:var(--vp-font-mono);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-page-header__description{margin:2px 0 0;color:var(--vp-text-secondary);font-size:var(--vp-text-sm)}.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"] }]
|
|
1710
1710
|
}], propDecorators: { heading: [{
|
|
1711
1711
|
type: Input,
|
|
@@ -1755,92 +1755,92 @@ class VpBannerComponent {
|
|
|
1755
1755
|
}
|
|
1756
1756
|
}
|
|
1757
1757
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpBannerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1758
|
-
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", lead: "lead", dismissible: "dismissible", dismissLabel: "dismissLabel" }, outputs: { dismissed: "dismissed" }, ngImport: i0, template: `
|
|
1759
|
-
<div
|
|
1760
|
-
class="vp-banner"
|
|
1761
|
-
[attr.data-tone]="tone"
|
|
1762
|
-
[attr.role]="isUrgent ? 'alert' : 'status'"
|
|
1763
|
-
[attr.aria-live]="isUrgent ? 'assertive' : 'polite'">
|
|
1764
|
-
|
|
1765
|
-
<!--
|
|
1766
|
-
Not tonu (paket 28 · prototip .banner): ikon YOK — sol vurgu cizgisi ve kalin bas isaretliyor. Anonim oturum ve
|
|
1767
|
-
dogrulama aciklamasi bir uyari degil, bilgi; ikon onu uyari gibi okuturdu.
|
|
1768
|
-
-->
|
|
1769
|
-
@if (tone !== 'note') {
|
|
1770
|
-
<svg class="vp-banner__icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
1771
|
-
<use [attr.href]="'#vp-icon-' + icon"></use>
|
|
1772
|
-
</svg>
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
|
-
<span class="vp-banner__message">
|
|
1776
|
-
@if (lead) {
|
|
1777
|
-
<strong class="vp-banner__lead">{{ lead }}</strong>
|
|
1778
|
-
}
|
|
1779
|
-
{{ message }}
|
|
1780
|
-
</span>
|
|
1781
|
-
|
|
1782
|
-
<span class="vp-banner__actions">
|
|
1783
|
-
<ng-content select="[actions]" />
|
|
1784
|
-
</span>
|
|
1785
|
-
|
|
1786
|
-
@if (dismissible) {
|
|
1787
|
-
<button
|
|
1788
|
-
type="button"
|
|
1789
|
-
class="vp-banner__dismiss"
|
|
1790
|
-
data-vp-dismiss
|
|
1791
|
-
[attr.aria-label]="dismissLabel"
|
|
1792
|
-
(click)="dismissed.emit()">
|
|
1793
|
-
<svg class="vp-banner__dismiss-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
1794
|
-
<use href="#vp-icon-close"></use>
|
|
1795
|
-
</svg>
|
|
1796
|
-
</button>
|
|
1797
|
-
}
|
|
1798
|
-
</div>
|
|
1758
|
+
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", lead: "lead", dismissible: "dismissible", dismissLabel: "dismissLabel" }, outputs: { dismissed: "dismissed" }, ngImport: i0, template: `
|
|
1759
|
+
<div
|
|
1760
|
+
class="vp-banner"
|
|
1761
|
+
[attr.data-tone]="tone"
|
|
1762
|
+
[attr.role]="isUrgent ? 'alert' : 'status'"
|
|
1763
|
+
[attr.aria-live]="isUrgent ? 'assertive' : 'polite'">
|
|
1764
|
+
|
|
1765
|
+
<!--
|
|
1766
|
+
Not tonu (paket 28 · prototip .banner): ikon YOK — sol vurgu cizgisi ve kalin bas isaretliyor. Anonim oturum ve
|
|
1767
|
+
dogrulama aciklamasi bir uyari degil, bilgi; ikon onu uyari gibi okuturdu.
|
|
1768
|
+
-->
|
|
1769
|
+
@if (tone !== 'note') {
|
|
1770
|
+
<svg class="vp-banner__icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
1771
|
+
<use [attr.href]="'#vp-icon-' + icon"></use>
|
|
1772
|
+
</svg>
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
<span class="vp-banner__message">
|
|
1776
|
+
@if (lead) {
|
|
1777
|
+
<strong class="vp-banner__lead">{{ lead }}</strong>
|
|
1778
|
+
}
|
|
1779
|
+
{{ message }}
|
|
1780
|
+
</span>
|
|
1781
|
+
|
|
1782
|
+
<span class="vp-banner__actions">
|
|
1783
|
+
<ng-content select="[actions]" />
|
|
1784
|
+
</span>
|
|
1785
|
+
|
|
1786
|
+
@if (dismissible) {
|
|
1787
|
+
<button
|
|
1788
|
+
type="button"
|
|
1789
|
+
class="vp-banner__dismiss"
|
|
1790
|
+
data-vp-dismiss
|
|
1791
|
+
[attr.aria-label]="dismissLabel"
|
|
1792
|
+
(click)="dismissed.emit()">
|
|
1793
|
+
<svg class="vp-banner__dismiss-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
1794
|
+
<use href="#vp-icon-close"></use>
|
|
1795
|
+
</svg>
|
|
1796
|
+
</button>
|
|
1797
|
+
}
|
|
1798
|
+
</div>
|
|
1799
1799
|
`, 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[data-tone=note]{flex-wrap:wrap;justify-content:space-between;gap:10px;padding:11px 14px;border:1px solid var(--vp-border-default);border-left:2px solid var(--vp-brand-line);border-radius:0 var(--vp-radius-md) var(--vp-radius-md) 0;background:var(--vp-surface-raised);color:var(--vp-text-secondary);font-size:var(--vp-text-sm)}.vp-banner__lead{color:var(--vp-text-primary);font-weight:var(--vp-weight-semibold)}.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 }); }
|
|
1800
1800
|
}
|
|
1801
1801
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpBannerComponent, decorators: [{
|
|
1802
1802
|
type: Component,
|
|
1803
|
-
args: [{ selector: 'vp-banner', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1804
|
-
<div
|
|
1805
|
-
class="vp-banner"
|
|
1806
|
-
[attr.data-tone]="tone"
|
|
1807
|
-
[attr.role]="isUrgent ? 'alert' : 'status'"
|
|
1808
|
-
[attr.aria-live]="isUrgent ? 'assertive' : 'polite'">
|
|
1809
|
-
|
|
1810
|
-
<!--
|
|
1811
|
-
Not tonu (paket 28 · prototip .banner): ikon YOK — sol vurgu cizgisi ve kalin bas isaretliyor. Anonim oturum ve
|
|
1812
|
-
dogrulama aciklamasi bir uyari degil, bilgi; ikon onu uyari gibi okuturdu.
|
|
1813
|
-
-->
|
|
1814
|
-
@if (tone !== 'note') {
|
|
1815
|
-
<svg class="vp-banner__icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
1816
|
-
<use [attr.href]="'#vp-icon-' + icon"></use>
|
|
1817
|
-
</svg>
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
|
-
<span class="vp-banner__message">
|
|
1821
|
-
@if (lead) {
|
|
1822
|
-
<strong class="vp-banner__lead">{{ lead }}</strong>
|
|
1823
|
-
}
|
|
1824
|
-
{{ message }}
|
|
1825
|
-
</span>
|
|
1826
|
-
|
|
1827
|
-
<span class="vp-banner__actions">
|
|
1828
|
-
<ng-content select="[actions]" />
|
|
1829
|
-
</span>
|
|
1830
|
-
|
|
1831
|
-
@if (dismissible) {
|
|
1832
|
-
<button
|
|
1833
|
-
type="button"
|
|
1834
|
-
class="vp-banner__dismiss"
|
|
1835
|
-
data-vp-dismiss
|
|
1836
|
-
[attr.aria-label]="dismissLabel"
|
|
1837
|
-
(click)="dismissed.emit()">
|
|
1838
|
-
<svg class="vp-banner__dismiss-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
1839
|
-
<use href="#vp-icon-close"></use>
|
|
1840
|
-
</svg>
|
|
1841
|
-
</button>
|
|
1842
|
-
}
|
|
1843
|
-
</div>
|
|
1803
|
+
args: [{ selector: 'vp-banner', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1804
|
+
<div
|
|
1805
|
+
class="vp-banner"
|
|
1806
|
+
[attr.data-tone]="tone"
|
|
1807
|
+
[attr.role]="isUrgent ? 'alert' : 'status'"
|
|
1808
|
+
[attr.aria-live]="isUrgent ? 'assertive' : 'polite'">
|
|
1809
|
+
|
|
1810
|
+
<!--
|
|
1811
|
+
Not tonu (paket 28 · prototip .banner): ikon YOK — sol vurgu cizgisi ve kalin bas isaretliyor. Anonim oturum ve
|
|
1812
|
+
dogrulama aciklamasi bir uyari degil, bilgi; ikon onu uyari gibi okuturdu.
|
|
1813
|
+
-->
|
|
1814
|
+
@if (tone !== 'note') {
|
|
1815
|
+
<svg class="vp-banner__icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
1816
|
+
<use [attr.href]="'#vp-icon-' + icon"></use>
|
|
1817
|
+
</svg>
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
<span class="vp-banner__message">
|
|
1821
|
+
@if (lead) {
|
|
1822
|
+
<strong class="vp-banner__lead">{{ lead }}</strong>
|
|
1823
|
+
}
|
|
1824
|
+
{{ message }}
|
|
1825
|
+
</span>
|
|
1826
|
+
|
|
1827
|
+
<span class="vp-banner__actions">
|
|
1828
|
+
<ng-content select="[actions]" />
|
|
1829
|
+
</span>
|
|
1830
|
+
|
|
1831
|
+
@if (dismissible) {
|
|
1832
|
+
<button
|
|
1833
|
+
type="button"
|
|
1834
|
+
class="vp-banner__dismiss"
|
|
1835
|
+
data-vp-dismiss
|
|
1836
|
+
[attr.aria-label]="dismissLabel"
|
|
1837
|
+
(click)="dismissed.emit()">
|
|
1838
|
+
<svg class="vp-banner__dismiss-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
1839
|
+
<use href="#vp-icon-close"></use>
|
|
1840
|
+
</svg>
|
|
1841
|
+
</button>
|
|
1842
|
+
}
|
|
1843
|
+
</div>
|
|
1844
1844
|
`, 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[data-tone=note]{flex-wrap:wrap;justify-content:space-between;gap:10px;padding:11px 14px;border:1px solid var(--vp-border-default);border-left:2px solid var(--vp-brand-line);border-radius:0 var(--vp-radius-md) var(--vp-radius-md) 0;background:var(--vp-surface-raised);color:var(--vp-text-secondary);font-size:var(--vp-text-sm)}.vp-banner__lead{color:var(--vp-text-primary);font-weight:var(--vp-weight-semibold)}.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"] }]
|
|
1845
1845
|
}], propDecorators: { message: [{
|
|
1846
1846
|
type: Input,
|
|
@@ -2686,510 +2686,510 @@ class VpSidebarComponent {
|
|
|
2686
2686
|
this.closeFlyout();
|
|
2687
2687
|
}
|
|
2688
2688
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2689
|
-
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", activePath: "activePath" }, host: { listeners: { "document:keydown.escape": "onEscape()", "document:pointerdown": "onPointerDown($event)" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
2690
|
-
<nav class="vp-sidebar" [attr.aria-label]="navLabel" [attr.data-collapsed]="collapsed || null">
|
|
2691
|
-
@for (group of groups; track group.name; let firstGroup = $first) {
|
|
2692
|
-
<!--
|
|
2693
|
-
Ray ayraci. Daraltilmis kipte grup BASLIGI okunmaz, ama kumenin
|
|
2694
|
-
nerede bittigi hala gorulebilir olmali: on ikon tek sutun olunca
|
|
2695
|
-
hangisinin ne oldugu yalnizca ikondan okunuyor.
|
|
2696
|
-
|
|
2697
|
-
Ilk kumenin ustunde ayrac YOK: bolecek bir sey yok.
|
|
2698
|
-
-->
|
|
2699
|
-
@if (collapsed && !firstGroup) {
|
|
2700
|
-
<hr class="vp-sidebar__rail-sep" data-vp-rail-separator aria-hidden="true" />
|
|
2701
|
-
}
|
|
2702
|
-
@if (group.name) {
|
|
2703
|
-
<!--
|
|
2704
|
-
Grup basligi. Daraltilmis kipte GIZLENIYOR ama ayirici kaliyor:
|
|
2705
|
-
ikon-rayinda metin okunmaz, ancak gruplarin nerede bittigi hala
|
|
2706
|
-
gorulebilir olmali.
|
|
2707
|
-
-->
|
|
2708
|
-
<button
|
|
2709
|
-
type="button"
|
|
2710
|
-
class="vp-sidebar__group"
|
|
2711
|
-
[attr.data-vp-menu-group]="group.name"
|
|
2712
|
-
[attr.aria-expanded]="isGroupOpen(group.name)"
|
|
2713
|
-
(click)="toggleGroup(group.name)">
|
|
2714
|
-
<span class="vp-sidebar__group-label">{{ group.name }}</span>
|
|
2715
|
-
<i class="vp-sidebar__chevron" aria-hidden="true"></i>
|
|
2716
|
-
</button>
|
|
2717
|
-
}
|
|
2718
|
-
@if (isGroupOpen(group.name)) {
|
|
2719
|
-
<ul class="vp-sidebar__list" [attr.aria-label]="group.name || null">
|
|
2720
|
-
@for (item of group.items; track item.code) {
|
|
2721
|
-
<li class="vp-sidebar__item">
|
|
2722
|
-
@if (childrenOf(item).length) {
|
|
2723
|
-
<!--
|
|
2724
|
-
Ucuncu seviye (paket 16 - G6). Yol tasimayan ust madde BAGLANTI
|
|
2725
|
-
DEGIL: tiklayinca hicbir yere gitmeyen bir baglanti bozuk bir
|
|
2726
|
-
kontroldur. Yol varsa baglanti olarak ciziliyor.
|
|
2727
|
-
-->
|
|
2728
|
-
@if (collapsed) {
|
|
2729
|
-
<!--
|
|
2730
|
-
Rayda ust madde bir DUGME: tiklayinca ucan menu aciliyor.
|
|
2731
|
-
Genis kipte ayni oge bir BASLIK, cunku cocuklar zaten
|
|
2732
|
-
akista goruluyor ve tiklanacak bir sey yok. Iki kipte iki
|
|
2733
|
-
farkli oge tipi bilerek: kontrolun sekli yaptigi isi
|
|
2734
|
-
soylemeli.
|
|
2735
|
-
-->
|
|
2736
|
-
<button
|
|
2737
|
-
type="button"
|
|
2738
|
-
class="vp-sidebar__link vp-sidebar__link--parent vp-sidebar__link--rail"
|
|
2739
|
-
[attr.data-vp-menu-parent]="item.code"
|
|
2740
|
-
[attr.title]="item.titleKey"
|
|
2741
|
-
aria-haspopup="menu"
|
|
2742
|
-
[attr.aria-expanded]="flyoutItem?.code === item.code"
|
|
2743
|
-
(click)="toggleFlyout(item, $event)">
|
|
2744
|
-
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
2745
|
-
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
2746
|
-
</button>
|
|
2747
|
-
} @else if (item.path) {
|
|
2748
|
-
<!--
|
|
2749
|
-
Yol tasiyan ust madde BAGLANTI kaliyor; acmak icin yanindaki
|
|
2750
|
-
dugme. Tek tiklama hem gidemez hem acamaz.
|
|
2751
|
-
-->
|
|
2752
|
-
<span class="vp-sidebar__parent-row">
|
|
2753
|
-
<a
|
|
2754
|
-
class="vp-sidebar__link vp-sidebar__link--parent"
|
|
2755
|
-
[attr.data-vp-menu-parent]="item.code"
|
|
2756
|
-
[attr.href]="item.path"
|
|
2757
|
-
[attr.title]="item.titleKey"
|
|
2758
|
-
[attr.aria-current]="isActive(item) ? 'page' : null"
|
|
2759
|
-
(click)="navigate($event, item.path)">
|
|
2760
|
-
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
2761
|
-
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
2762
|
-
</a>
|
|
2763
|
-
<button
|
|
2764
|
-
type="button"
|
|
2765
|
-
class="vp-sidebar__disclosure"
|
|
2766
|
-
[attr.data-vp-menu-toggle]="item.code"
|
|
2767
|
-
[attr.aria-label]="item.titleKey + ' ' + subMenuLabel"
|
|
2768
|
-
[attr.aria-expanded]="isParentOpen(item)"
|
|
2769
|
-
(click)="toggleParent(item)">
|
|
2770
|
-
<i class="vp-sidebar__chevron" aria-hidden="true"></i>
|
|
2771
|
-
</button>
|
|
2772
|
-
</span>
|
|
2773
|
-
} @else {
|
|
2774
|
-
<!--
|
|
2775
|
-
Genis kipte ust madde bir ACILIR dugme.
|
|
2776
|
-
Cocugu olan her sey acilir kapanir; yonetim panelinde
|
|
2777
|
-
Tanımlar 88 tablo tasiyor ve hepsi acik gelince menu
|
|
2778
|
-
taranabilir olmaktan cikip listeye donuyordu.
|
|
2779
|
-
|
|
2780
|
-
⚠️ Ust maddenin path alani geniz kipte KULLANILMIYOR: ayni
|
|
2781
|
-
tiklama hem gidemez hem acamaz. Sozlesmede zaten yolsuz
|
|
2782
|
-
(buildVpMenu ust maddeye yol vermiyor) ve dosyanin kendi
|
|
2783
|
-
yorumu bunu soyluyor: alt grup bir baslik, gidilecek bir yer
|
|
2784
|
-
degil.
|
|
2785
|
-
-->
|
|
2786
|
-
<button
|
|
2787
|
-
type="button"
|
|
2788
|
-
class="vp-sidebar__link vp-sidebar__link--parent"
|
|
2789
|
-
[attr.data-vp-menu-parent]="item.code"
|
|
2790
|
-
[attr.title]="item.titleKey"
|
|
2791
|
-
[attr.aria-expanded]="isParentOpen(item)"
|
|
2792
|
-
(click)="toggleParent(item)">
|
|
2793
|
-
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
2794
|
-
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
2795
|
-
<i class="vp-sidebar__chevron" aria-hidden="true"></i>
|
|
2796
|
-
</button>
|
|
2797
|
-
}
|
|
2798
|
-
|
|
2799
|
-
<!--
|
|
2800
|
-
Rayda cocuk listesi CIZILMIYOR. Onceki halde DOM'da
|
|
2801
|
-
duruyordu ve her cocuk 44px'lik bos bir satir oluyordu:
|
|
2802
|
-
etiket gizli, cocuklarin cogunda ikon yok. Kullanici icin
|
|
2803
|
-
anlamsiz bosluk, ekran okuyucu icin adsiz baglanti. Yerini
|
|
2804
|
-
ucan menu aliyor.
|
|
2805
|
-
-->
|
|
2806
|
-
@if (!collapsed && isParentOpen(item)) {
|
|
2807
|
-
<ul class="vp-sidebar__list vp-sidebar__list--child" [attr.aria-label]="item.titleKey">
|
|
2808
|
-
@for (child of childrenOf(item); track child.code) {
|
|
2809
|
-
<li class="vp-sidebar__item">
|
|
2810
|
-
@if (child.disabledReason) {
|
|
2811
|
-
<span
|
|
2812
|
-
class="vp-sidebar__link vp-sidebar__link--disabled"
|
|
2813
|
-
[attr.data-vp-menu-item]="child.code"
|
|
2814
|
-
aria-disabled="true"
|
|
2815
|
-
[attr.title]="child.titleKey + ' — ' + child.disabledReason">
|
|
2816
|
-
<i [attr.class]="iconClass(child)" aria-hidden="true"></i>
|
|
2817
|
-
<span class="vp-sidebar__label">{{ child.titleKey }}</span>
|
|
2818
|
-
</span>
|
|
2819
|
-
<span
|
|
2820
|
-
class="vp-sidebar__reason"
|
|
2821
|
-
[attr.data-vp-menu-reason]="child.code">{{ child.disabledReason }}</span>
|
|
2822
|
-
} @else {
|
|
2823
|
-
<a
|
|
2824
|
-
class="vp-sidebar__link vp-sidebar__link--child"
|
|
2825
|
-
[attr.data-vp-menu-item]="child.code"
|
|
2826
|
-
[attr.href]="child.path"
|
|
2827
|
-
[attr.title]="child.lock ? child.titleKey + ' — ' + child.lock : child.titleKey"
|
|
2828
|
-
[attr.aria-current]="isActive(child) ? 'page' : null"
|
|
2829
|
-
(click)="navigate($event, child.path)">
|
|
2830
|
-
@if (child.icon) {
|
|
2831
|
-
<i [attr.class]="iconClass(child)" aria-hidden="true"></i>
|
|
2832
|
-
}
|
|
2833
|
-
<span class="vp-sidebar__label">{{ child.titleKey }}</span>
|
|
2834
|
-
@if (hasBadge(child)) {
|
|
2835
|
-
<span
|
|
2836
|
-
class="vp-sidebar__badge"
|
|
2837
|
-
[attr.data-vp-menu-badge]="child.code"
|
|
2838
|
-
[attr.aria-label]="badgeAria(child)">{{ child.badge }}</span>
|
|
2839
|
-
}
|
|
2840
|
-
@if (child.lock) {
|
|
2841
|
-
<span class="vp-sidebar__lock" [attr.data-vp-menu-lock]="child.code">{{ child.lock }}</span>
|
|
2842
|
-
}
|
|
2843
|
-
</a>
|
|
2844
|
-
}
|
|
2845
|
-
</li>
|
|
2846
|
-
}
|
|
2847
|
-
</ul>
|
|
2848
|
-
}
|
|
2849
|
-
} @else if (item.disabledReason) {
|
|
2850
|
-
<span
|
|
2851
|
-
class="vp-sidebar__link vp-sidebar__link--disabled"
|
|
2852
|
-
[attr.data-vp-menu-item]="item.code"
|
|
2853
|
-
aria-disabled="true"
|
|
2854
|
-
[attr.title]="item.titleKey + ' — ' + item.disabledReason">
|
|
2855
|
-
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
2856
|
-
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
2857
|
-
</span>
|
|
2858
|
-
<span
|
|
2859
|
-
class="vp-sidebar__reason"
|
|
2860
|
-
[attr.data-vp-menu-reason]="item.code">{{ item.disabledReason }}</span>
|
|
2861
|
-
} @else {
|
|
2862
|
-
<a
|
|
2863
|
-
class="vp-sidebar__link"
|
|
2864
|
-
[attr.data-vp-menu-item]="item.code"
|
|
2865
|
-
[attr.href]="item.path"
|
|
2866
|
-
[attr.title]="item.lock ? item.titleKey + ' — ' + item.lock : item.titleKey"
|
|
2867
|
-
[attr.aria-current]="isActive(item) ? 'page' : null"
|
|
2868
|
-
(click)="navigate($event, item.path)">
|
|
2869
|
-
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
2870
|
-
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
2871
|
-
@if (hasBadge(item)) {
|
|
2872
|
-
<span
|
|
2873
|
-
class="vp-sidebar__badge"
|
|
2874
|
-
[attr.data-vp-menu-badge]="item.code"
|
|
2875
|
-
[attr.aria-label]="badgeAria(item)">{{ item.badge }}</span>
|
|
2876
|
-
}
|
|
2877
|
-
<!--
|
|
2878
|
-
Kilit cipi (paket 28 · prototip nav-lock): madde GIDILEBILIR kaliyor. Kilit bir kosul; hedef ekran kilidi
|
|
2879
|
-
ve acma yolunu anlatiyor ("Hesap gerekiyor" · "Ozel mod gerekiyor"). Devre disi (disabledReason) ayri
|
|
2880
|
-
eksen: orada gidilecek bir sey yok.
|
|
2881
|
-
-->
|
|
2882
|
-
@if (item.lock) {
|
|
2883
|
-
<span class="vp-sidebar__lock" [attr.data-vp-menu-lock]="item.code">{{ item.lock }}</span>
|
|
2884
|
-
}
|
|
2885
|
-
</a>
|
|
2886
|
-
}
|
|
2887
|
-
</li>
|
|
2888
|
-
}
|
|
2889
|
-
</ul>
|
|
2890
|
-
}
|
|
2891
|
-
}
|
|
2892
|
-
|
|
2893
|
-
@if (flyoutItem) {
|
|
2894
|
-
<!--
|
|
2895
|
-
Ucan menu sabit konumlu (position: fixed): kenar cubugu kendi
|
|
2896
|
-
kaydirma kutusu ve mutlak konumlu bir katman kirpilirdi. Konum tiklanan dugmenin
|
|
2897
|
-
dikdortgeninden hesaplaniyor ve gorunum alanina sikistiriliyor -
|
|
2898
|
-
en alttaki kalem tiklandiginda menu ekranin altindan tasiyordu.
|
|
2899
|
-
-->
|
|
2900
|
-
<div
|
|
2901
|
-
class="vp-sidebar__flyout"
|
|
2902
|
-
data-vp-flyout
|
|
2903
|
-
role="menu"
|
|
2904
|
-
[attr.aria-label]="flyoutItem.titleKey"
|
|
2905
|
-
[style.top.px]="flyoutTop"
|
|
2906
|
-
[style.left.px]="flyoutLeft">
|
|
2907
|
-
<p class="vp-sidebar__flyout-title">{{ flyoutItem.titleKey }}</p>
|
|
2908
|
-
@for (child of childrenOf(flyoutItem); track child.code) {
|
|
2909
|
-
@if (child.disabledReason) {
|
|
2910
|
-
<span
|
|
2911
|
-
class="vp-sidebar__flyout-link vp-sidebar__link--disabled"
|
|
2912
|
-
[attr.data-vp-flyout-item]="child.code"
|
|
2913
|
-
role="menuitem"
|
|
2914
|
-
aria-disabled="true">
|
|
2915
|
-
{{ child.titleKey }}
|
|
2916
|
-
<small class="vp-sidebar__flyout-reason">{{ child.disabledReason }}</small>
|
|
2917
|
-
</span>
|
|
2918
|
-
} @else {
|
|
2919
|
-
<a
|
|
2920
|
-
class="vp-sidebar__flyout-link"
|
|
2921
|
-
[attr.data-vp-flyout-item]="child.code"
|
|
2922
|
-
role="menuitem"
|
|
2923
|
-
[attr.href]="child.path"
|
|
2924
|
-
[attr.aria-current]="isActive(child) ? 'page' : null"
|
|
2925
|
-
(click)="navigate($event, child.path); closeFlyout()">
|
|
2926
|
-
{{ child.titleKey }}
|
|
2927
|
-
@if (hasBadge(child)) {
|
|
2928
|
-
<span class="vp-sidebar__badge" [attr.aria-label]="badgeAria(child)">{{ child.badge }}</span>
|
|
2929
|
-
}
|
|
2930
|
-
@if (child.lock) {
|
|
2931
|
-
<span class="vp-sidebar__lock">{{ child.lock }}</span>
|
|
2932
|
-
}
|
|
2933
|
-
</a>
|
|
2934
|
-
}
|
|
2935
|
-
}
|
|
2936
|
-
</div>
|
|
2937
|
-
}
|
|
2938
|
-
</nav>
|
|
2689
|
+
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", activePath: "activePath" }, host: { listeners: { "document:keydown.escape": "onEscape()", "document:pointerdown": "onPointerDown($event)" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
2690
|
+
<nav class="vp-sidebar" [attr.aria-label]="navLabel" [attr.data-collapsed]="collapsed || null">
|
|
2691
|
+
@for (group of groups; track group.name; let firstGroup = $first) {
|
|
2692
|
+
<!--
|
|
2693
|
+
Ray ayraci. Daraltilmis kipte grup BASLIGI okunmaz, ama kumenin
|
|
2694
|
+
nerede bittigi hala gorulebilir olmali: on ikon tek sutun olunca
|
|
2695
|
+
hangisinin ne oldugu yalnizca ikondan okunuyor.
|
|
2696
|
+
|
|
2697
|
+
Ilk kumenin ustunde ayrac YOK: bolecek bir sey yok.
|
|
2698
|
+
-->
|
|
2699
|
+
@if (collapsed && !firstGroup) {
|
|
2700
|
+
<hr class="vp-sidebar__rail-sep" data-vp-rail-separator aria-hidden="true" />
|
|
2701
|
+
}
|
|
2702
|
+
@if (group.name) {
|
|
2703
|
+
<!--
|
|
2704
|
+
Grup basligi. Daraltilmis kipte GIZLENIYOR ama ayirici kaliyor:
|
|
2705
|
+
ikon-rayinda metin okunmaz, ancak gruplarin nerede bittigi hala
|
|
2706
|
+
gorulebilir olmali.
|
|
2707
|
+
-->
|
|
2708
|
+
<button
|
|
2709
|
+
type="button"
|
|
2710
|
+
class="vp-sidebar__group"
|
|
2711
|
+
[attr.data-vp-menu-group]="group.name"
|
|
2712
|
+
[attr.aria-expanded]="isGroupOpen(group.name)"
|
|
2713
|
+
(click)="toggleGroup(group.name)">
|
|
2714
|
+
<span class="vp-sidebar__group-label">{{ group.name }}</span>
|
|
2715
|
+
<i class="vp-sidebar__chevron" aria-hidden="true"></i>
|
|
2716
|
+
</button>
|
|
2717
|
+
}
|
|
2718
|
+
@if (isGroupOpen(group.name)) {
|
|
2719
|
+
<ul class="vp-sidebar__list" [attr.aria-label]="group.name || null">
|
|
2720
|
+
@for (item of group.items; track item.code) {
|
|
2721
|
+
<li class="vp-sidebar__item">
|
|
2722
|
+
@if (childrenOf(item).length) {
|
|
2723
|
+
<!--
|
|
2724
|
+
Ucuncu seviye (paket 16 - G6). Yol tasimayan ust madde BAGLANTI
|
|
2725
|
+
DEGIL: tiklayinca hicbir yere gitmeyen bir baglanti bozuk bir
|
|
2726
|
+
kontroldur. Yol varsa baglanti olarak ciziliyor.
|
|
2727
|
+
-->
|
|
2728
|
+
@if (collapsed) {
|
|
2729
|
+
<!--
|
|
2730
|
+
Rayda ust madde bir DUGME: tiklayinca ucan menu aciliyor.
|
|
2731
|
+
Genis kipte ayni oge bir BASLIK, cunku cocuklar zaten
|
|
2732
|
+
akista goruluyor ve tiklanacak bir sey yok. Iki kipte iki
|
|
2733
|
+
farkli oge tipi bilerek: kontrolun sekli yaptigi isi
|
|
2734
|
+
soylemeli.
|
|
2735
|
+
-->
|
|
2736
|
+
<button
|
|
2737
|
+
type="button"
|
|
2738
|
+
class="vp-sidebar__link vp-sidebar__link--parent vp-sidebar__link--rail"
|
|
2739
|
+
[attr.data-vp-menu-parent]="item.code"
|
|
2740
|
+
[attr.title]="item.titleKey"
|
|
2741
|
+
aria-haspopup="menu"
|
|
2742
|
+
[attr.aria-expanded]="flyoutItem?.code === item.code"
|
|
2743
|
+
(click)="toggleFlyout(item, $event)">
|
|
2744
|
+
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
2745
|
+
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
2746
|
+
</button>
|
|
2747
|
+
} @else if (item.path) {
|
|
2748
|
+
<!--
|
|
2749
|
+
Yol tasiyan ust madde BAGLANTI kaliyor; acmak icin yanindaki
|
|
2750
|
+
dugme. Tek tiklama hem gidemez hem acamaz.
|
|
2751
|
+
-->
|
|
2752
|
+
<span class="vp-sidebar__parent-row">
|
|
2753
|
+
<a
|
|
2754
|
+
class="vp-sidebar__link vp-sidebar__link--parent"
|
|
2755
|
+
[attr.data-vp-menu-parent]="item.code"
|
|
2756
|
+
[attr.href]="item.path"
|
|
2757
|
+
[attr.title]="item.titleKey"
|
|
2758
|
+
[attr.aria-current]="isActive(item) ? 'page' : null"
|
|
2759
|
+
(click)="navigate($event, item.path)">
|
|
2760
|
+
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
2761
|
+
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
2762
|
+
</a>
|
|
2763
|
+
<button
|
|
2764
|
+
type="button"
|
|
2765
|
+
class="vp-sidebar__disclosure"
|
|
2766
|
+
[attr.data-vp-menu-toggle]="item.code"
|
|
2767
|
+
[attr.aria-label]="item.titleKey + ' ' + subMenuLabel"
|
|
2768
|
+
[attr.aria-expanded]="isParentOpen(item)"
|
|
2769
|
+
(click)="toggleParent(item)">
|
|
2770
|
+
<i class="vp-sidebar__chevron" aria-hidden="true"></i>
|
|
2771
|
+
</button>
|
|
2772
|
+
</span>
|
|
2773
|
+
} @else {
|
|
2774
|
+
<!--
|
|
2775
|
+
Genis kipte ust madde bir ACILIR dugme.
|
|
2776
|
+
Cocugu olan her sey acilir kapanir; yonetim panelinde
|
|
2777
|
+
Tanımlar 88 tablo tasiyor ve hepsi acik gelince menu
|
|
2778
|
+
taranabilir olmaktan cikip listeye donuyordu.
|
|
2779
|
+
|
|
2780
|
+
⚠️ Ust maddenin path alani geniz kipte KULLANILMIYOR: ayni
|
|
2781
|
+
tiklama hem gidemez hem acamaz. Sozlesmede zaten yolsuz
|
|
2782
|
+
(buildVpMenu ust maddeye yol vermiyor) ve dosyanin kendi
|
|
2783
|
+
yorumu bunu soyluyor: alt grup bir baslik, gidilecek bir yer
|
|
2784
|
+
degil.
|
|
2785
|
+
-->
|
|
2786
|
+
<button
|
|
2787
|
+
type="button"
|
|
2788
|
+
class="vp-sidebar__link vp-sidebar__link--parent"
|
|
2789
|
+
[attr.data-vp-menu-parent]="item.code"
|
|
2790
|
+
[attr.title]="item.titleKey"
|
|
2791
|
+
[attr.aria-expanded]="isParentOpen(item)"
|
|
2792
|
+
(click)="toggleParent(item)">
|
|
2793
|
+
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
2794
|
+
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
2795
|
+
<i class="vp-sidebar__chevron" aria-hidden="true"></i>
|
|
2796
|
+
</button>
|
|
2797
|
+
}
|
|
2798
|
+
|
|
2799
|
+
<!--
|
|
2800
|
+
Rayda cocuk listesi CIZILMIYOR. Onceki halde DOM'da
|
|
2801
|
+
duruyordu ve her cocuk 44px'lik bos bir satir oluyordu:
|
|
2802
|
+
etiket gizli, cocuklarin cogunda ikon yok. Kullanici icin
|
|
2803
|
+
anlamsiz bosluk, ekran okuyucu icin adsiz baglanti. Yerini
|
|
2804
|
+
ucan menu aliyor.
|
|
2805
|
+
-->
|
|
2806
|
+
@if (!collapsed && isParentOpen(item)) {
|
|
2807
|
+
<ul class="vp-sidebar__list vp-sidebar__list--child" [attr.aria-label]="item.titleKey">
|
|
2808
|
+
@for (child of childrenOf(item); track child.code) {
|
|
2809
|
+
<li class="vp-sidebar__item">
|
|
2810
|
+
@if (child.disabledReason) {
|
|
2811
|
+
<span
|
|
2812
|
+
class="vp-sidebar__link vp-sidebar__link--disabled"
|
|
2813
|
+
[attr.data-vp-menu-item]="child.code"
|
|
2814
|
+
aria-disabled="true"
|
|
2815
|
+
[attr.title]="child.titleKey + ' — ' + child.disabledReason">
|
|
2816
|
+
<i [attr.class]="iconClass(child)" aria-hidden="true"></i>
|
|
2817
|
+
<span class="vp-sidebar__label">{{ child.titleKey }}</span>
|
|
2818
|
+
</span>
|
|
2819
|
+
<span
|
|
2820
|
+
class="vp-sidebar__reason"
|
|
2821
|
+
[attr.data-vp-menu-reason]="child.code">{{ child.disabledReason }}</span>
|
|
2822
|
+
} @else {
|
|
2823
|
+
<a
|
|
2824
|
+
class="vp-sidebar__link vp-sidebar__link--child"
|
|
2825
|
+
[attr.data-vp-menu-item]="child.code"
|
|
2826
|
+
[attr.href]="child.path"
|
|
2827
|
+
[attr.title]="child.lock ? child.titleKey + ' — ' + child.lock : child.titleKey"
|
|
2828
|
+
[attr.aria-current]="isActive(child) ? 'page' : null"
|
|
2829
|
+
(click)="navigate($event, child.path)">
|
|
2830
|
+
@if (child.icon) {
|
|
2831
|
+
<i [attr.class]="iconClass(child)" aria-hidden="true"></i>
|
|
2832
|
+
}
|
|
2833
|
+
<span class="vp-sidebar__label">{{ child.titleKey }}</span>
|
|
2834
|
+
@if (hasBadge(child)) {
|
|
2835
|
+
<span
|
|
2836
|
+
class="vp-sidebar__badge"
|
|
2837
|
+
[attr.data-vp-menu-badge]="child.code"
|
|
2838
|
+
[attr.aria-label]="badgeAria(child)">{{ child.badge }}</span>
|
|
2839
|
+
}
|
|
2840
|
+
@if (child.lock) {
|
|
2841
|
+
<span class="vp-sidebar__lock" [attr.data-vp-menu-lock]="child.code">{{ child.lock }}</span>
|
|
2842
|
+
}
|
|
2843
|
+
</a>
|
|
2844
|
+
}
|
|
2845
|
+
</li>
|
|
2846
|
+
}
|
|
2847
|
+
</ul>
|
|
2848
|
+
}
|
|
2849
|
+
} @else if (item.disabledReason) {
|
|
2850
|
+
<span
|
|
2851
|
+
class="vp-sidebar__link vp-sidebar__link--disabled"
|
|
2852
|
+
[attr.data-vp-menu-item]="item.code"
|
|
2853
|
+
aria-disabled="true"
|
|
2854
|
+
[attr.title]="item.titleKey + ' — ' + item.disabledReason">
|
|
2855
|
+
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
2856
|
+
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
2857
|
+
</span>
|
|
2858
|
+
<span
|
|
2859
|
+
class="vp-sidebar__reason"
|
|
2860
|
+
[attr.data-vp-menu-reason]="item.code">{{ item.disabledReason }}</span>
|
|
2861
|
+
} @else {
|
|
2862
|
+
<a
|
|
2863
|
+
class="vp-sidebar__link"
|
|
2864
|
+
[attr.data-vp-menu-item]="item.code"
|
|
2865
|
+
[attr.href]="item.path"
|
|
2866
|
+
[attr.title]="item.lock ? item.titleKey + ' — ' + item.lock : item.titleKey"
|
|
2867
|
+
[attr.aria-current]="isActive(item) ? 'page' : null"
|
|
2868
|
+
(click)="navigate($event, item.path)">
|
|
2869
|
+
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
2870
|
+
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
2871
|
+
@if (hasBadge(item)) {
|
|
2872
|
+
<span
|
|
2873
|
+
class="vp-sidebar__badge"
|
|
2874
|
+
[attr.data-vp-menu-badge]="item.code"
|
|
2875
|
+
[attr.aria-label]="badgeAria(item)">{{ item.badge }}</span>
|
|
2876
|
+
}
|
|
2877
|
+
<!--
|
|
2878
|
+
Kilit cipi (paket 28 · prototip nav-lock): madde GIDILEBILIR kaliyor. Kilit bir kosul; hedef ekran kilidi
|
|
2879
|
+
ve acma yolunu anlatiyor ("Hesap gerekiyor" · "Ozel mod gerekiyor"). Devre disi (disabledReason) ayri
|
|
2880
|
+
eksen: orada gidilecek bir sey yok.
|
|
2881
|
+
-->
|
|
2882
|
+
@if (item.lock) {
|
|
2883
|
+
<span class="vp-sidebar__lock" [attr.data-vp-menu-lock]="item.code">{{ item.lock }}</span>
|
|
2884
|
+
}
|
|
2885
|
+
</a>
|
|
2886
|
+
}
|
|
2887
|
+
</li>
|
|
2888
|
+
}
|
|
2889
|
+
</ul>
|
|
2890
|
+
}
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
@if (flyoutItem) {
|
|
2894
|
+
<!--
|
|
2895
|
+
Ucan menu sabit konumlu (position: fixed): kenar cubugu kendi
|
|
2896
|
+
kaydirma kutusu ve mutlak konumlu bir katman kirpilirdi. Konum tiklanan dugmenin
|
|
2897
|
+
dikdortgeninden hesaplaniyor ve gorunum alanina sikistiriliyor -
|
|
2898
|
+
en alttaki kalem tiklandiginda menu ekranin altindan tasiyordu.
|
|
2899
|
+
-->
|
|
2900
|
+
<div
|
|
2901
|
+
class="vp-sidebar__flyout"
|
|
2902
|
+
data-vp-flyout
|
|
2903
|
+
role="menu"
|
|
2904
|
+
[attr.aria-label]="flyoutItem.titleKey"
|
|
2905
|
+
[style.top.px]="flyoutTop"
|
|
2906
|
+
[style.left.px]="flyoutLeft">
|
|
2907
|
+
<p class="vp-sidebar__flyout-title">{{ flyoutItem.titleKey }}</p>
|
|
2908
|
+
@for (child of childrenOf(flyoutItem); track child.code) {
|
|
2909
|
+
@if (child.disabledReason) {
|
|
2910
|
+
<span
|
|
2911
|
+
class="vp-sidebar__flyout-link vp-sidebar__link--disabled"
|
|
2912
|
+
[attr.data-vp-flyout-item]="child.code"
|
|
2913
|
+
role="menuitem"
|
|
2914
|
+
aria-disabled="true">
|
|
2915
|
+
{{ child.titleKey }}
|
|
2916
|
+
<small class="vp-sidebar__flyout-reason">{{ child.disabledReason }}</small>
|
|
2917
|
+
</span>
|
|
2918
|
+
} @else {
|
|
2919
|
+
<a
|
|
2920
|
+
class="vp-sidebar__flyout-link"
|
|
2921
|
+
[attr.data-vp-flyout-item]="child.code"
|
|
2922
|
+
role="menuitem"
|
|
2923
|
+
[attr.href]="child.path"
|
|
2924
|
+
[attr.aria-current]="isActive(child) ? 'page' : null"
|
|
2925
|
+
(click)="navigate($event, child.path); closeFlyout()">
|
|
2926
|
+
{{ child.titleKey }}
|
|
2927
|
+
@if (hasBadge(child)) {
|
|
2928
|
+
<span class="vp-sidebar__badge" [attr.aria-label]="badgeAria(child)">{{ child.badge }}</span>
|
|
2929
|
+
}
|
|
2930
|
+
@if (child.lock) {
|
|
2931
|
+
<span class="vp-sidebar__lock">{{ child.lock }}</span>
|
|
2932
|
+
}
|
|
2933
|
+
</a>
|
|
2934
|
+
}
|
|
2935
|
+
}
|
|
2936
|
+
</div>
|
|
2937
|
+
}
|
|
2938
|
+
</nav>
|
|
2939
2939
|
`, 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;margin-left:auto;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(-135deg);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:2px 0 0;padding-left:0;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:2px}.vp-sidebar__item{margin:0}.vp-sidebar__link{display:flex;align-items:center;gap:10px;min-height:31px;padding:7px 10px;border-radius:var(--vp-radius-md);color:var(--vp-text-secondary);text-decoration:none;font-size:var(--vp-text-base);white-space:nowrap;overflow:hidden}.vp-sidebar__link:hover,.vp-sidebar__link[aria-current=page]{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-sidebar__link--child{min-height:29px;padding-left:36px}@media(max-width:900px){.vp-sidebar__link,.vp-sidebar__link--child{min-height:var(--vp-touch-target, 44px)}}.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:16px;font-size:16px;line-height:1;opacity:.75}.vp-sidebar__label{flex:1;min-width:0}.vp-sidebar__badge{flex:0 0 auto;margin-left:auto;padding:1px 7px;border-radius:var(--vp-radius-md);background:var(--vp-brand-subtle);color:var(--vp-brand-line);font-size:var(--vp-text-xs);line-height:var(--vp-leading-normal);text-align:center;font-variant-numeric:tabular-nums}.vp-sidebar__lock{flex:0 0 auto;margin-left:auto;padding:1px 7px;border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);color:var(--vp-text-muted);font-size:var(--vp-text-xs);line-height:var(--vp-leading-normal)}.vp-sidebar__badge+.vp-sidebar__lock{margin-left:0}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__link .vp-sidebar__lock,.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 }); }
|
|
2940
2940
|
}
|
|
2941
2941
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSidebarComponent, decorators: [{
|
|
2942
2942
|
type: Component,
|
|
2943
|
-
args: [{ selector: 'vp-sidebar', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
2944
|
-
<nav class="vp-sidebar" [attr.aria-label]="navLabel" [attr.data-collapsed]="collapsed || null">
|
|
2945
|
-
@for (group of groups; track group.name; let firstGroup = $first) {
|
|
2946
|
-
<!--
|
|
2947
|
-
Ray ayraci. Daraltilmis kipte grup BASLIGI okunmaz, ama kumenin
|
|
2948
|
-
nerede bittigi hala gorulebilir olmali: on ikon tek sutun olunca
|
|
2949
|
-
hangisinin ne oldugu yalnizca ikondan okunuyor.
|
|
2950
|
-
|
|
2951
|
-
Ilk kumenin ustunde ayrac YOK: bolecek bir sey yok.
|
|
2952
|
-
-->
|
|
2953
|
-
@if (collapsed && !firstGroup) {
|
|
2954
|
-
<hr class="vp-sidebar__rail-sep" data-vp-rail-separator aria-hidden="true" />
|
|
2955
|
-
}
|
|
2956
|
-
@if (group.name) {
|
|
2957
|
-
<!--
|
|
2958
|
-
Grup basligi. Daraltilmis kipte GIZLENIYOR ama ayirici kaliyor:
|
|
2959
|
-
ikon-rayinda metin okunmaz, ancak gruplarin nerede bittigi hala
|
|
2960
|
-
gorulebilir olmali.
|
|
2961
|
-
-->
|
|
2962
|
-
<button
|
|
2963
|
-
type="button"
|
|
2964
|
-
class="vp-sidebar__group"
|
|
2965
|
-
[attr.data-vp-menu-group]="group.name"
|
|
2966
|
-
[attr.aria-expanded]="isGroupOpen(group.name)"
|
|
2967
|
-
(click)="toggleGroup(group.name)">
|
|
2968
|
-
<span class="vp-sidebar__group-label">{{ group.name }}</span>
|
|
2969
|
-
<i class="vp-sidebar__chevron" aria-hidden="true"></i>
|
|
2970
|
-
</button>
|
|
2971
|
-
}
|
|
2972
|
-
@if (isGroupOpen(group.name)) {
|
|
2973
|
-
<ul class="vp-sidebar__list" [attr.aria-label]="group.name || null">
|
|
2974
|
-
@for (item of group.items; track item.code) {
|
|
2975
|
-
<li class="vp-sidebar__item">
|
|
2976
|
-
@if (childrenOf(item).length) {
|
|
2977
|
-
<!--
|
|
2978
|
-
Ucuncu seviye (paket 16 - G6). Yol tasimayan ust madde BAGLANTI
|
|
2979
|
-
DEGIL: tiklayinca hicbir yere gitmeyen bir baglanti bozuk bir
|
|
2980
|
-
kontroldur. Yol varsa baglanti olarak ciziliyor.
|
|
2981
|
-
-->
|
|
2982
|
-
@if (collapsed) {
|
|
2983
|
-
<!--
|
|
2984
|
-
Rayda ust madde bir DUGME: tiklayinca ucan menu aciliyor.
|
|
2985
|
-
Genis kipte ayni oge bir BASLIK, cunku cocuklar zaten
|
|
2986
|
-
akista goruluyor ve tiklanacak bir sey yok. Iki kipte iki
|
|
2987
|
-
farkli oge tipi bilerek: kontrolun sekli yaptigi isi
|
|
2988
|
-
soylemeli.
|
|
2989
|
-
-->
|
|
2990
|
-
<button
|
|
2991
|
-
type="button"
|
|
2992
|
-
class="vp-sidebar__link vp-sidebar__link--parent vp-sidebar__link--rail"
|
|
2993
|
-
[attr.data-vp-menu-parent]="item.code"
|
|
2994
|
-
[attr.title]="item.titleKey"
|
|
2995
|
-
aria-haspopup="menu"
|
|
2996
|
-
[attr.aria-expanded]="flyoutItem?.code === item.code"
|
|
2997
|
-
(click)="toggleFlyout(item, $event)">
|
|
2998
|
-
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
2999
|
-
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
3000
|
-
</button>
|
|
3001
|
-
} @else if (item.path) {
|
|
3002
|
-
<!--
|
|
3003
|
-
Yol tasiyan ust madde BAGLANTI kaliyor; acmak icin yanindaki
|
|
3004
|
-
dugme. Tek tiklama hem gidemez hem acamaz.
|
|
3005
|
-
-->
|
|
3006
|
-
<span class="vp-sidebar__parent-row">
|
|
3007
|
-
<a
|
|
3008
|
-
class="vp-sidebar__link vp-sidebar__link--parent"
|
|
3009
|
-
[attr.data-vp-menu-parent]="item.code"
|
|
3010
|
-
[attr.href]="item.path"
|
|
3011
|
-
[attr.title]="item.titleKey"
|
|
3012
|
-
[attr.aria-current]="isActive(item) ? 'page' : null"
|
|
3013
|
-
(click)="navigate($event, item.path)">
|
|
3014
|
-
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
3015
|
-
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
3016
|
-
</a>
|
|
3017
|
-
<button
|
|
3018
|
-
type="button"
|
|
3019
|
-
class="vp-sidebar__disclosure"
|
|
3020
|
-
[attr.data-vp-menu-toggle]="item.code"
|
|
3021
|
-
[attr.aria-label]="item.titleKey + ' ' + subMenuLabel"
|
|
3022
|
-
[attr.aria-expanded]="isParentOpen(item)"
|
|
3023
|
-
(click)="toggleParent(item)">
|
|
3024
|
-
<i class="vp-sidebar__chevron" aria-hidden="true"></i>
|
|
3025
|
-
</button>
|
|
3026
|
-
</span>
|
|
3027
|
-
} @else {
|
|
3028
|
-
<!--
|
|
3029
|
-
Genis kipte ust madde bir ACILIR dugme.
|
|
3030
|
-
Cocugu olan her sey acilir kapanir; yonetim panelinde
|
|
3031
|
-
Tanımlar 88 tablo tasiyor ve hepsi acik gelince menu
|
|
3032
|
-
taranabilir olmaktan cikip listeye donuyordu.
|
|
3033
|
-
|
|
3034
|
-
⚠️ Ust maddenin path alani geniz kipte KULLANILMIYOR: ayni
|
|
3035
|
-
tiklama hem gidemez hem acamaz. Sozlesmede zaten yolsuz
|
|
3036
|
-
(buildVpMenu ust maddeye yol vermiyor) ve dosyanin kendi
|
|
3037
|
-
yorumu bunu soyluyor: alt grup bir baslik, gidilecek bir yer
|
|
3038
|
-
degil.
|
|
3039
|
-
-->
|
|
3040
|
-
<button
|
|
3041
|
-
type="button"
|
|
3042
|
-
class="vp-sidebar__link vp-sidebar__link--parent"
|
|
3043
|
-
[attr.data-vp-menu-parent]="item.code"
|
|
3044
|
-
[attr.title]="item.titleKey"
|
|
3045
|
-
[attr.aria-expanded]="isParentOpen(item)"
|
|
3046
|
-
(click)="toggleParent(item)">
|
|
3047
|
-
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
3048
|
-
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
3049
|
-
<i class="vp-sidebar__chevron" aria-hidden="true"></i>
|
|
3050
|
-
</button>
|
|
3051
|
-
}
|
|
3052
|
-
|
|
3053
|
-
<!--
|
|
3054
|
-
Rayda cocuk listesi CIZILMIYOR. Onceki halde DOM'da
|
|
3055
|
-
duruyordu ve her cocuk 44px'lik bos bir satir oluyordu:
|
|
3056
|
-
etiket gizli, cocuklarin cogunda ikon yok. Kullanici icin
|
|
3057
|
-
anlamsiz bosluk, ekran okuyucu icin adsiz baglanti. Yerini
|
|
3058
|
-
ucan menu aliyor.
|
|
3059
|
-
-->
|
|
3060
|
-
@if (!collapsed && isParentOpen(item)) {
|
|
3061
|
-
<ul class="vp-sidebar__list vp-sidebar__list--child" [attr.aria-label]="item.titleKey">
|
|
3062
|
-
@for (child of childrenOf(item); track child.code) {
|
|
3063
|
-
<li class="vp-sidebar__item">
|
|
3064
|
-
@if (child.disabledReason) {
|
|
3065
|
-
<span
|
|
3066
|
-
class="vp-sidebar__link vp-sidebar__link--disabled"
|
|
3067
|
-
[attr.data-vp-menu-item]="child.code"
|
|
3068
|
-
aria-disabled="true"
|
|
3069
|
-
[attr.title]="child.titleKey + ' — ' + child.disabledReason">
|
|
3070
|
-
<i [attr.class]="iconClass(child)" aria-hidden="true"></i>
|
|
3071
|
-
<span class="vp-sidebar__label">{{ child.titleKey }}</span>
|
|
3072
|
-
</span>
|
|
3073
|
-
<span
|
|
3074
|
-
class="vp-sidebar__reason"
|
|
3075
|
-
[attr.data-vp-menu-reason]="child.code">{{ child.disabledReason }}</span>
|
|
3076
|
-
} @else {
|
|
3077
|
-
<a
|
|
3078
|
-
class="vp-sidebar__link vp-sidebar__link--child"
|
|
3079
|
-
[attr.data-vp-menu-item]="child.code"
|
|
3080
|
-
[attr.href]="child.path"
|
|
3081
|
-
[attr.title]="child.lock ? child.titleKey + ' — ' + child.lock : child.titleKey"
|
|
3082
|
-
[attr.aria-current]="isActive(child) ? 'page' : null"
|
|
3083
|
-
(click)="navigate($event, child.path)">
|
|
3084
|
-
@if (child.icon) {
|
|
3085
|
-
<i [attr.class]="iconClass(child)" aria-hidden="true"></i>
|
|
3086
|
-
}
|
|
3087
|
-
<span class="vp-sidebar__label">{{ child.titleKey }}</span>
|
|
3088
|
-
@if (hasBadge(child)) {
|
|
3089
|
-
<span
|
|
3090
|
-
class="vp-sidebar__badge"
|
|
3091
|
-
[attr.data-vp-menu-badge]="child.code"
|
|
3092
|
-
[attr.aria-label]="badgeAria(child)">{{ child.badge }}</span>
|
|
3093
|
-
}
|
|
3094
|
-
@if (child.lock) {
|
|
3095
|
-
<span class="vp-sidebar__lock" [attr.data-vp-menu-lock]="child.code">{{ child.lock }}</span>
|
|
3096
|
-
}
|
|
3097
|
-
</a>
|
|
3098
|
-
}
|
|
3099
|
-
</li>
|
|
3100
|
-
}
|
|
3101
|
-
</ul>
|
|
3102
|
-
}
|
|
3103
|
-
} @else if (item.disabledReason) {
|
|
3104
|
-
<span
|
|
3105
|
-
class="vp-sidebar__link vp-sidebar__link--disabled"
|
|
3106
|
-
[attr.data-vp-menu-item]="item.code"
|
|
3107
|
-
aria-disabled="true"
|
|
3108
|
-
[attr.title]="item.titleKey + ' — ' + item.disabledReason">
|
|
3109
|
-
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
3110
|
-
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
3111
|
-
</span>
|
|
3112
|
-
<span
|
|
3113
|
-
class="vp-sidebar__reason"
|
|
3114
|
-
[attr.data-vp-menu-reason]="item.code">{{ item.disabledReason }}</span>
|
|
3115
|
-
} @else {
|
|
3116
|
-
<a
|
|
3117
|
-
class="vp-sidebar__link"
|
|
3118
|
-
[attr.data-vp-menu-item]="item.code"
|
|
3119
|
-
[attr.href]="item.path"
|
|
3120
|
-
[attr.title]="item.lock ? item.titleKey + ' — ' + item.lock : item.titleKey"
|
|
3121
|
-
[attr.aria-current]="isActive(item) ? 'page' : null"
|
|
3122
|
-
(click)="navigate($event, item.path)">
|
|
3123
|
-
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
3124
|
-
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
3125
|
-
@if (hasBadge(item)) {
|
|
3126
|
-
<span
|
|
3127
|
-
class="vp-sidebar__badge"
|
|
3128
|
-
[attr.data-vp-menu-badge]="item.code"
|
|
3129
|
-
[attr.aria-label]="badgeAria(item)">{{ item.badge }}</span>
|
|
3130
|
-
}
|
|
3131
|
-
<!--
|
|
3132
|
-
Kilit cipi (paket 28 · prototip nav-lock): madde GIDILEBILIR kaliyor. Kilit bir kosul; hedef ekran kilidi
|
|
3133
|
-
ve acma yolunu anlatiyor ("Hesap gerekiyor" · "Ozel mod gerekiyor"). Devre disi (disabledReason) ayri
|
|
3134
|
-
eksen: orada gidilecek bir sey yok.
|
|
3135
|
-
-->
|
|
3136
|
-
@if (item.lock) {
|
|
3137
|
-
<span class="vp-sidebar__lock" [attr.data-vp-menu-lock]="item.code">{{ item.lock }}</span>
|
|
3138
|
-
}
|
|
3139
|
-
</a>
|
|
3140
|
-
}
|
|
3141
|
-
</li>
|
|
3142
|
-
}
|
|
3143
|
-
</ul>
|
|
3144
|
-
}
|
|
3145
|
-
}
|
|
3146
|
-
|
|
3147
|
-
@if (flyoutItem) {
|
|
3148
|
-
<!--
|
|
3149
|
-
Ucan menu sabit konumlu (position: fixed): kenar cubugu kendi
|
|
3150
|
-
kaydirma kutusu ve mutlak konumlu bir katman kirpilirdi. Konum tiklanan dugmenin
|
|
3151
|
-
dikdortgeninden hesaplaniyor ve gorunum alanina sikistiriliyor -
|
|
3152
|
-
en alttaki kalem tiklandiginda menu ekranin altindan tasiyordu.
|
|
3153
|
-
-->
|
|
3154
|
-
<div
|
|
3155
|
-
class="vp-sidebar__flyout"
|
|
3156
|
-
data-vp-flyout
|
|
3157
|
-
role="menu"
|
|
3158
|
-
[attr.aria-label]="flyoutItem.titleKey"
|
|
3159
|
-
[style.top.px]="flyoutTop"
|
|
3160
|
-
[style.left.px]="flyoutLeft">
|
|
3161
|
-
<p class="vp-sidebar__flyout-title">{{ flyoutItem.titleKey }}</p>
|
|
3162
|
-
@for (child of childrenOf(flyoutItem); track child.code) {
|
|
3163
|
-
@if (child.disabledReason) {
|
|
3164
|
-
<span
|
|
3165
|
-
class="vp-sidebar__flyout-link vp-sidebar__link--disabled"
|
|
3166
|
-
[attr.data-vp-flyout-item]="child.code"
|
|
3167
|
-
role="menuitem"
|
|
3168
|
-
aria-disabled="true">
|
|
3169
|
-
{{ child.titleKey }}
|
|
3170
|
-
<small class="vp-sidebar__flyout-reason">{{ child.disabledReason }}</small>
|
|
3171
|
-
</span>
|
|
3172
|
-
} @else {
|
|
3173
|
-
<a
|
|
3174
|
-
class="vp-sidebar__flyout-link"
|
|
3175
|
-
[attr.data-vp-flyout-item]="child.code"
|
|
3176
|
-
role="menuitem"
|
|
3177
|
-
[attr.href]="child.path"
|
|
3178
|
-
[attr.aria-current]="isActive(child) ? 'page' : null"
|
|
3179
|
-
(click)="navigate($event, child.path); closeFlyout()">
|
|
3180
|
-
{{ child.titleKey }}
|
|
3181
|
-
@if (hasBadge(child)) {
|
|
3182
|
-
<span class="vp-sidebar__badge" [attr.aria-label]="badgeAria(child)">{{ child.badge }}</span>
|
|
3183
|
-
}
|
|
3184
|
-
@if (child.lock) {
|
|
3185
|
-
<span class="vp-sidebar__lock">{{ child.lock }}</span>
|
|
3186
|
-
}
|
|
3187
|
-
</a>
|
|
3188
|
-
}
|
|
3189
|
-
}
|
|
3190
|
-
</div>
|
|
3191
|
-
}
|
|
3192
|
-
</nav>
|
|
2943
|
+
args: [{ selector: 'vp-sidebar', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
2944
|
+
<nav class="vp-sidebar" [attr.aria-label]="navLabel" [attr.data-collapsed]="collapsed || null">
|
|
2945
|
+
@for (group of groups; track group.name; let firstGroup = $first) {
|
|
2946
|
+
<!--
|
|
2947
|
+
Ray ayraci. Daraltilmis kipte grup BASLIGI okunmaz, ama kumenin
|
|
2948
|
+
nerede bittigi hala gorulebilir olmali: on ikon tek sutun olunca
|
|
2949
|
+
hangisinin ne oldugu yalnizca ikondan okunuyor.
|
|
2950
|
+
|
|
2951
|
+
Ilk kumenin ustunde ayrac YOK: bolecek bir sey yok.
|
|
2952
|
+
-->
|
|
2953
|
+
@if (collapsed && !firstGroup) {
|
|
2954
|
+
<hr class="vp-sidebar__rail-sep" data-vp-rail-separator aria-hidden="true" />
|
|
2955
|
+
}
|
|
2956
|
+
@if (group.name) {
|
|
2957
|
+
<!--
|
|
2958
|
+
Grup basligi. Daraltilmis kipte GIZLENIYOR ama ayirici kaliyor:
|
|
2959
|
+
ikon-rayinda metin okunmaz, ancak gruplarin nerede bittigi hala
|
|
2960
|
+
gorulebilir olmali.
|
|
2961
|
+
-->
|
|
2962
|
+
<button
|
|
2963
|
+
type="button"
|
|
2964
|
+
class="vp-sidebar__group"
|
|
2965
|
+
[attr.data-vp-menu-group]="group.name"
|
|
2966
|
+
[attr.aria-expanded]="isGroupOpen(group.name)"
|
|
2967
|
+
(click)="toggleGroup(group.name)">
|
|
2968
|
+
<span class="vp-sidebar__group-label">{{ group.name }}</span>
|
|
2969
|
+
<i class="vp-sidebar__chevron" aria-hidden="true"></i>
|
|
2970
|
+
</button>
|
|
2971
|
+
}
|
|
2972
|
+
@if (isGroupOpen(group.name)) {
|
|
2973
|
+
<ul class="vp-sidebar__list" [attr.aria-label]="group.name || null">
|
|
2974
|
+
@for (item of group.items; track item.code) {
|
|
2975
|
+
<li class="vp-sidebar__item">
|
|
2976
|
+
@if (childrenOf(item).length) {
|
|
2977
|
+
<!--
|
|
2978
|
+
Ucuncu seviye (paket 16 - G6). Yol tasimayan ust madde BAGLANTI
|
|
2979
|
+
DEGIL: tiklayinca hicbir yere gitmeyen bir baglanti bozuk bir
|
|
2980
|
+
kontroldur. Yol varsa baglanti olarak ciziliyor.
|
|
2981
|
+
-->
|
|
2982
|
+
@if (collapsed) {
|
|
2983
|
+
<!--
|
|
2984
|
+
Rayda ust madde bir DUGME: tiklayinca ucan menu aciliyor.
|
|
2985
|
+
Genis kipte ayni oge bir BASLIK, cunku cocuklar zaten
|
|
2986
|
+
akista goruluyor ve tiklanacak bir sey yok. Iki kipte iki
|
|
2987
|
+
farkli oge tipi bilerek: kontrolun sekli yaptigi isi
|
|
2988
|
+
soylemeli.
|
|
2989
|
+
-->
|
|
2990
|
+
<button
|
|
2991
|
+
type="button"
|
|
2992
|
+
class="vp-sidebar__link vp-sidebar__link--parent vp-sidebar__link--rail"
|
|
2993
|
+
[attr.data-vp-menu-parent]="item.code"
|
|
2994
|
+
[attr.title]="item.titleKey"
|
|
2995
|
+
aria-haspopup="menu"
|
|
2996
|
+
[attr.aria-expanded]="flyoutItem?.code === item.code"
|
|
2997
|
+
(click)="toggleFlyout(item, $event)">
|
|
2998
|
+
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
2999
|
+
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
3000
|
+
</button>
|
|
3001
|
+
} @else if (item.path) {
|
|
3002
|
+
<!--
|
|
3003
|
+
Yol tasiyan ust madde BAGLANTI kaliyor; acmak icin yanindaki
|
|
3004
|
+
dugme. Tek tiklama hem gidemez hem acamaz.
|
|
3005
|
+
-->
|
|
3006
|
+
<span class="vp-sidebar__parent-row">
|
|
3007
|
+
<a
|
|
3008
|
+
class="vp-sidebar__link vp-sidebar__link--parent"
|
|
3009
|
+
[attr.data-vp-menu-parent]="item.code"
|
|
3010
|
+
[attr.href]="item.path"
|
|
3011
|
+
[attr.title]="item.titleKey"
|
|
3012
|
+
[attr.aria-current]="isActive(item) ? 'page' : null"
|
|
3013
|
+
(click)="navigate($event, item.path)">
|
|
3014
|
+
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
3015
|
+
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
3016
|
+
</a>
|
|
3017
|
+
<button
|
|
3018
|
+
type="button"
|
|
3019
|
+
class="vp-sidebar__disclosure"
|
|
3020
|
+
[attr.data-vp-menu-toggle]="item.code"
|
|
3021
|
+
[attr.aria-label]="item.titleKey + ' ' + subMenuLabel"
|
|
3022
|
+
[attr.aria-expanded]="isParentOpen(item)"
|
|
3023
|
+
(click)="toggleParent(item)">
|
|
3024
|
+
<i class="vp-sidebar__chevron" aria-hidden="true"></i>
|
|
3025
|
+
</button>
|
|
3026
|
+
</span>
|
|
3027
|
+
} @else {
|
|
3028
|
+
<!--
|
|
3029
|
+
Genis kipte ust madde bir ACILIR dugme.
|
|
3030
|
+
Cocugu olan her sey acilir kapanir; yonetim panelinde
|
|
3031
|
+
Tanımlar 88 tablo tasiyor ve hepsi acik gelince menu
|
|
3032
|
+
taranabilir olmaktan cikip listeye donuyordu.
|
|
3033
|
+
|
|
3034
|
+
⚠️ Ust maddenin path alani geniz kipte KULLANILMIYOR: ayni
|
|
3035
|
+
tiklama hem gidemez hem acamaz. Sozlesmede zaten yolsuz
|
|
3036
|
+
(buildVpMenu ust maddeye yol vermiyor) ve dosyanin kendi
|
|
3037
|
+
yorumu bunu soyluyor: alt grup bir baslik, gidilecek bir yer
|
|
3038
|
+
degil.
|
|
3039
|
+
-->
|
|
3040
|
+
<button
|
|
3041
|
+
type="button"
|
|
3042
|
+
class="vp-sidebar__link vp-sidebar__link--parent"
|
|
3043
|
+
[attr.data-vp-menu-parent]="item.code"
|
|
3044
|
+
[attr.title]="item.titleKey"
|
|
3045
|
+
[attr.aria-expanded]="isParentOpen(item)"
|
|
3046
|
+
(click)="toggleParent(item)">
|
|
3047
|
+
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
3048
|
+
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
3049
|
+
<i class="vp-sidebar__chevron" aria-hidden="true"></i>
|
|
3050
|
+
</button>
|
|
3051
|
+
}
|
|
3052
|
+
|
|
3053
|
+
<!--
|
|
3054
|
+
Rayda cocuk listesi CIZILMIYOR. Onceki halde DOM'da
|
|
3055
|
+
duruyordu ve her cocuk 44px'lik bos bir satir oluyordu:
|
|
3056
|
+
etiket gizli, cocuklarin cogunda ikon yok. Kullanici icin
|
|
3057
|
+
anlamsiz bosluk, ekran okuyucu icin adsiz baglanti. Yerini
|
|
3058
|
+
ucan menu aliyor.
|
|
3059
|
+
-->
|
|
3060
|
+
@if (!collapsed && isParentOpen(item)) {
|
|
3061
|
+
<ul class="vp-sidebar__list vp-sidebar__list--child" [attr.aria-label]="item.titleKey">
|
|
3062
|
+
@for (child of childrenOf(item); track child.code) {
|
|
3063
|
+
<li class="vp-sidebar__item">
|
|
3064
|
+
@if (child.disabledReason) {
|
|
3065
|
+
<span
|
|
3066
|
+
class="vp-sidebar__link vp-sidebar__link--disabled"
|
|
3067
|
+
[attr.data-vp-menu-item]="child.code"
|
|
3068
|
+
aria-disabled="true"
|
|
3069
|
+
[attr.title]="child.titleKey + ' — ' + child.disabledReason">
|
|
3070
|
+
<i [attr.class]="iconClass(child)" aria-hidden="true"></i>
|
|
3071
|
+
<span class="vp-sidebar__label">{{ child.titleKey }}</span>
|
|
3072
|
+
</span>
|
|
3073
|
+
<span
|
|
3074
|
+
class="vp-sidebar__reason"
|
|
3075
|
+
[attr.data-vp-menu-reason]="child.code">{{ child.disabledReason }}</span>
|
|
3076
|
+
} @else {
|
|
3077
|
+
<a
|
|
3078
|
+
class="vp-sidebar__link vp-sidebar__link--child"
|
|
3079
|
+
[attr.data-vp-menu-item]="child.code"
|
|
3080
|
+
[attr.href]="child.path"
|
|
3081
|
+
[attr.title]="child.lock ? child.titleKey + ' — ' + child.lock : child.titleKey"
|
|
3082
|
+
[attr.aria-current]="isActive(child) ? 'page' : null"
|
|
3083
|
+
(click)="navigate($event, child.path)">
|
|
3084
|
+
@if (child.icon) {
|
|
3085
|
+
<i [attr.class]="iconClass(child)" aria-hidden="true"></i>
|
|
3086
|
+
}
|
|
3087
|
+
<span class="vp-sidebar__label">{{ child.titleKey }}</span>
|
|
3088
|
+
@if (hasBadge(child)) {
|
|
3089
|
+
<span
|
|
3090
|
+
class="vp-sidebar__badge"
|
|
3091
|
+
[attr.data-vp-menu-badge]="child.code"
|
|
3092
|
+
[attr.aria-label]="badgeAria(child)">{{ child.badge }}</span>
|
|
3093
|
+
}
|
|
3094
|
+
@if (child.lock) {
|
|
3095
|
+
<span class="vp-sidebar__lock" [attr.data-vp-menu-lock]="child.code">{{ child.lock }}</span>
|
|
3096
|
+
}
|
|
3097
|
+
</a>
|
|
3098
|
+
}
|
|
3099
|
+
</li>
|
|
3100
|
+
}
|
|
3101
|
+
</ul>
|
|
3102
|
+
}
|
|
3103
|
+
} @else if (item.disabledReason) {
|
|
3104
|
+
<span
|
|
3105
|
+
class="vp-sidebar__link vp-sidebar__link--disabled"
|
|
3106
|
+
[attr.data-vp-menu-item]="item.code"
|
|
3107
|
+
aria-disabled="true"
|
|
3108
|
+
[attr.title]="item.titleKey + ' — ' + item.disabledReason">
|
|
3109
|
+
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
3110
|
+
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
3111
|
+
</span>
|
|
3112
|
+
<span
|
|
3113
|
+
class="vp-sidebar__reason"
|
|
3114
|
+
[attr.data-vp-menu-reason]="item.code">{{ item.disabledReason }}</span>
|
|
3115
|
+
} @else {
|
|
3116
|
+
<a
|
|
3117
|
+
class="vp-sidebar__link"
|
|
3118
|
+
[attr.data-vp-menu-item]="item.code"
|
|
3119
|
+
[attr.href]="item.path"
|
|
3120
|
+
[attr.title]="item.lock ? item.titleKey + ' — ' + item.lock : item.titleKey"
|
|
3121
|
+
[attr.aria-current]="isActive(item) ? 'page' : null"
|
|
3122
|
+
(click)="navigate($event, item.path)">
|
|
3123
|
+
<i [attr.class]="iconClass(item)" aria-hidden="true"></i>
|
|
3124
|
+
<span class="vp-sidebar__label">{{ item.titleKey }}</span>
|
|
3125
|
+
@if (hasBadge(item)) {
|
|
3126
|
+
<span
|
|
3127
|
+
class="vp-sidebar__badge"
|
|
3128
|
+
[attr.data-vp-menu-badge]="item.code"
|
|
3129
|
+
[attr.aria-label]="badgeAria(item)">{{ item.badge }}</span>
|
|
3130
|
+
}
|
|
3131
|
+
<!--
|
|
3132
|
+
Kilit cipi (paket 28 · prototip nav-lock): madde GIDILEBILIR kaliyor. Kilit bir kosul; hedef ekran kilidi
|
|
3133
|
+
ve acma yolunu anlatiyor ("Hesap gerekiyor" · "Ozel mod gerekiyor"). Devre disi (disabledReason) ayri
|
|
3134
|
+
eksen: orada gidilecek bir sey yok.
|
|
3135
|
+
-->
|
|
3136
|
+
@if (item.lock) {
|
|
3137
|
+
<span class="vp-sidebar__lock" [attr.data-vp-menu-lock]="item.code">{{ item.lock }}</span>
|
|
3138
|
+
}
|
|
3139
|
+
</a>
|
|
3140
|
+
}
|
|
3141
|
+
</li>
|
|
3142
|
+
}
|
|
3143
|
+
</ul>
|
|
3144
|
+
}
|
|
3145
|
+
}
|
|
3146
|
+
|
|
3147
|
+
@if (flyoutItem) {
|
|
3148
|
+
<!--
|
|
3149
|
+
Ucan menu sabit konumlu (position: fixed): kenar cubugu kendi
|
|
3150
|
+
kaydirma kutusu ve mutlak konumlu bir katman kirpilirdi. Konum tiklanan dugmenin
|
|
3151
|
+
dikdortgeninden hesaplaniyor ve gorunum alanina sikistiriliyor -
|
|
3152
|
+
en alttaki kalem tiklandiginda menu ekranin altindan tasiyordu.
|
|
3153
|
+
-->
|
|
3154
|
+
<div
|
|
3155
|
+
class="vp-sidebar__flyout"
|
|
3156
|
+
data-vp-flyout
|
|
3157
|
+
role="menu"
|
|
3158
|
+
[attr.aria-label]="flyoutItem.titleKey"
|
|
3159
|
+
[style.top.px]="flyoutTop"
|
|
3160
|
+
[style.left.px]="flyoutLeft">
|
|
3161
|
+
<p class="vp-sidebar__flyout-title">{{ flyoutItem.titleKey }}</p>
|
|
3162
|
+
@for (child of childrenOf(flyoutItem); track child.code) {
|
|
3163
|
+
@if (child.disabledReason) {
|
|
3164
|
+
<span
|
|
3165
|
+
class="vp-sidebar__flyout-link vp-sidebar__link--disabled"
|
|
3166
|
+
[attr.data-vp-flyout-item]="child.code"
|
|
3167
|
+
role="menuitem"
|
|
3168
|
+
aria-disabled="true">
|
|
3169
|
+
{{ child.titleKey }}
|
|
3170
|
+
<small class="vp-sidebar__flyout-reason">{{ child.disabledReason }}</small>
|
|
3171
|
+
</span>
|
|
3172
|
+
} @else {
|
|
3173
|
+
<a
|
|
3174
|
+
class="vp-sidebar__flyout-link"
|
|
3175
|
+
[attr.data-vp-flyout-item]="child.code"
|
|
3176
|
+
role="menuitem"
|
|
3177
|
+
[attr.href]="child.path"
|
|
3178
|
+
[attr.aria-current]="isActive(child) ? 'page' : null"
|
|
3179
|
+
(click)="navigate($event, child.path); closeFlyout()">
|
|
3180
|
+
{{ child.titleKey }}
|
|
3181
|
+
@if (hasBadge(child)) {
|
|
3182
|
+
<span class="vp-sidebar__badge" [attr.aria-label]="badgeAria(child)">{{ child.badge }}</span>
|
|
3183
|
+
}
|
|
3184
|
+
@if (child.lock) {
|
|
3185
|
+
<span class="vp-sidebar__lock">{{ child.lock }}</span>
|
|
3186
|
+
}
|
|
3187
|
+
</a>
|
|
3188
|
+
}
|
|
3189
|
+
}
|
|
3190
|
+
</div>
|
|
3191
|
+
}
|
|
3192
|
+
</nav>
|
|
3193
3193
|
`, 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;margin-left:auto;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(-135deg);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:2px 0 0;padding-left:0;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:2px}.vp-sidebar__item{margin:0}.vp-sidebar__link{display:flex;align-items:center;gap:10px;min-height:31px;padding:7px 10px;border-radius:var(--vp-radius-md);color:var(--vp-text-secondary);text-decoration:none;font-size:var(--vp-text-base);white-space:nowrap;overflow:hidden}.vp-sidebar__link:hover,.vp-sidebar__link[aria-current=page]{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-sidebar__link--child{min-height:29px;padding-left:36px}@media(max-width:900px){.vp-sidebar__link,.vp-sidebar__link--child{min-height:var(--vp-touch-target, 44px)}}.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:16px;font-size:16px;line-height:1;opacity:.75}.vp-sidebar__label{flex:1;min-width:0}.vp-sidebar__badge{flex:0 0 auto;margin-left:auto;padding:1px 7px;border-radius:var(--vp-radius-md);background:var(--vp-brand-subtle);color:var(--vp-brand-line);font-size:var(--vp-text-xs);line-height:var(--vp-leading-normal);text-align:center;font-variant-numeric:tabular-nums}.vp-sidebar__lock{flex:0 0 auto;margin-left:auto;padding:1px 7px;border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);color:var(--vp-text-muted);font-size:var(--vp-text-xs);line-height:var(--vp-leading-normal)}.vp-sidebar__badge+.vp-sidebar__lock{margin-left:0}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__link .vp-sidebar__lock,.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"] }]
|
|
3194
3194
|
}], ctorParameters: () => [], propDecorators: { items: [{
|
|
3195
3195
|
type: Input,
|
|
@@ -3255,76 +3255,76 @@ class VpBreadcrumbComponent {
|
|
|
3255
3255
|
}
|
|
3256
3256
|
static { this.MAX_LABEL = 24; }
|
|
3257
3257
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpBreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3258
|
-
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: `
|
|
3259
|
-
@if (trail.length > 0) {
|
|
3260
|
-
<nav class="vp-breadcrumb" [attr.aria-label]="navLabel">
|
|
3261
|
-
<ol class="vp-breadcrumb__list">
|
|
3262
|
-
<!-- Indeksle izleniyor: yolsuz kirintinin ("Anonim oturum") anahtari yok. -->
|
|
3263
|
-
@for (crumb of trail; track $index; let last = $last; let first = $first) {
|
|
3264
|
-
<li class="vp-breadcrumb__item">
|
|
3265
|
-
@if (!first) {
|
|
3266
|
-
<span class="vp-breadcrumb__sep" data-vp-crumb-sep aria-hidden="true">/</span>
|
|
3267
|
-
}
|
|
3268
|
-
@if (last) {
|
|
3269
|
-
<span
|
|
3270
|
-
class="vp-breadcrumb__current"
|
|
3271
|
-
data-vp-crumb
|
|
3272
|
-
aria-current="page"
|
|
3273
|
-
[attr.title]="fullLabel(crumb.label)">{{ shortLabel(crumb.label) }}</span>
|
|
3274
|
-
} @else if (!crumb.path) {
|
|
3275
|
-
<span
|
|
3276
|
-
class="vp-breadcrumb__text"
|
|
3277
|
-
data-vp-crumb
|
|
3278
|
-
[attr.title]="fullLabel(crumb.label)">{{ shortLabel(crumb.label) }}</span>
|
|
3279
|
-
} @else {
|
|
3280
|
-
<a
|
|
3281
|
-
class="vp-breadcrumb__link"
|
|
3282
|
-
data-vp-crumb
|
|
3283
|
-
[attr.href]="crumb.path"
|
|
3284
|
-
[attr.title]="fullLabel(crumb.label)">{{ shortLabel(crumb.label) }}</a>
|
|
3285
|
-
}
|
|
3286
|
-
</li>
|
|
3287
|
-
}
|
|
3288
|
-
</ol>
|
|
3289
|
-
</nav>
|
|
3290
|
-
}
|
|
3258
|
+
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: `
|
|
3259
|
+
@if (trail.length > 0) {
|
|
3260
|
+
<nav class="vp-breadcrumb" [attr.aria-label]="navLabel">
|
|
3261
|
+
<ol class="vp-breadcrumb__list">
|
|
3262
|
+
<!-- Indeksle izleniyor: yolsuz kirintinin ("Anonim oturum") anahtari yok. -->
|
|
3263
|
+
@for (crumb of trail; track $index; let last = $last; let first = $first) {
|
|
3264
|
+
<li class="vp-breadcrumb__item">
|
|
3265
|
+
@if (!first) {
|
|
3266
|
+
<span class="vp-breadcrumb__sep" data-vp-crumb-sep aria-hidden="true">/</span>
|
|
3267
|
+
}
|
|
3268
|
+
@if (last) {
|
|
3269
|
+
<span
|
|
3270
|
+
class="vp-breadcrumb__current"
|
|
3271
|
+
data-vp-crumb
|
|
3272
|
+
aria-current="page"
|
|
3273
|
+
[attr.title]="fullLabel(crumb.label)">{{ shortLabel(crumb.label) }}</span>
|
|
3274
|
+
} @else if (!crumb.path) {
|
|
3275
|
+
<span
|
|
3276
|
+
class="vp-breadcrumb__text"
|
|
3277
|
+
data-vp-crumb
|
|
3278
|
+
[attr.title]="fullLabel(crumb.label)">{{ shortLabel(crumb.label) }}</span>
|
|
3279
|
+
} @else {
|
|
3280
|
+
<a
|
|
3281
|
+
class="vp-breadcrumb__link"
|
|
3282
|
+
data-vp-crumb
|
|
3283
|
+
[attr.href]="crumb.path"
|
|
3284
|
+
[attr.title]="fullLabel(crumb.label)">{{ shortLabel(crumb.label) }}</a>
|
|
3285
|
+
}
|
|
3286
|
+
</li>
|
|
3287
|
+
}
|
|
3288
|
+
</ol>
|
|
3289
|
+
</nav>
|
|
3290
|
+
}
|
|
3291
3291
|
`, isInline: true, styles: [":host{display:block}.vp-breadcrumb__list{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0;padding:0;font-size:var(--vp-text-sm)}.vp-breadcrumb__item{display:flex;align-items:center;gap:7px;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__text{color:var(--vp-text-muted)}.vp-breadcrumb__current{color:var(--vp-text-secondary)}.vp-breadcrumb__sep{color:var(--vp-text-muted);opacity:.55}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3292
3292
|
}
|
|
3293
3293
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpBreadcrumbComponent, decorators: [{
|
|
3294
3294
|
type: Component,
|
|
3295
|
-
args: [{ selector: 'vp-breadcrumb', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
3296
|
-
@if (trail.length > 0) {
|
|
3297
|
-
<nav class="vp-breadcrumb" [attr.aria-label]="navLabel">
|
|
3298
|
-
<ol class="vp-breadcrumb__list">
|
|
3299
|
-
<!-- Indeksle izleniyor: yolsuz kirintinin ("Anonim oturum") anahtari yok. -->
|
|
3300
|
-
@for (crumb of trail; track $index; let last = $last; let first = $first) {
|
|
3301
|
-
<li class="vp-breadcrumb__item">
|
|
3302
|
-
@if (!first) {
|
|
3303
|
-
<span class="vp-breadcrumb__sep" data-vp-crumb-sep aria-hidden="true">/</span>
|
|
3304
|
-
}
|
|
3305
|
-
@if (last) {
|
|
3306
|
-
<span
|
|
3307
|
-
class="vp-breadcrumb__current"
|
|
3308
|
-
data-vp-crumb
|
|
3309
|
-
aria-current="page"
|
|
3310
|
-
[attr.title]="fullLabel(crumb.label)">{{ shortLabel(crumb.label) }}</span>
|
|
3311
|
-
} @else if (!crumb.path) {
|
|
3312
|
-
<span
|
|
3313
|
-
class="vp-breadcrumb__text"
|
|
3314
|
-
data-vp-crumb
|
|
3315
|
-
[attr.title]="fullLabel(crumb.label)">{{ shortLabel(crumb.label) }}</span>
|
|
3316
|
-
} @else {
|
|
3317
|
-
<a
|
|
3318
|
-
class="vp-breadcrumb__link"
|
|
3319
|
-
data-vp-crumb
|
|
3320
|
-
[attr.href]="crumb.path"
|
|
3321
|
-
[attr.title]="fullLabel(crumb.label)">{{ shortLabel(crumb.label) }}</a>
|
|
3322
|
-
}
|
|
3323
|
-
</li>
|
|
3324
|
-
}
|
|
3325
|
-
</ol>
|
|
3326
|
-
</nav>
|
|
3327
|
-
}
|
|
3295
|
+
args: [{ selector: 'vp-breadcrumb', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
3296
|
+
@if (trail.length > 0) {
|
|
3297
|
+
<nav class="vp-breadcrumb" [attr.aria-label]="navLabel">
|
|
3298
|
+
<ol class="vp-breadcrumb__list">
|
|
3299
|
+
<!-- Indeksle izleniyor: yolsuz kirintinin ("Anonim oturum") anahtari yok. -->
|
|
3300
|
+
@for (crumb of trail; track $index; let last = $last; let first = $first) {
|
|
3301
|
+
<li class="vp-breadcrumb__item">
|
|
3302
|
+
@if (!first) {
|
|
3303
|
+
<span class="vp-breadcrumb__sep" data-vp-crumb-sep aria-hidden="true">/</span>
|
|
3304
|
+
}
|
|
3305
|
+
@if (last) {
|
|
3306
|
+
<span
|
|
3307
|
+
class="vp-breadcrumb__current"
|
|
3308
|
+
data-vp-crumb
|
|
3309
|
+
aria-current="page"
|
|
3310
|
+
[attr.title]="fullLabel(crumb.label)">{{ shortLabel(crumb.label) }}</span>
|
|
3311
|
+
} @else if (!crumb.path) {
|
|
3312
|
+
<span
|
|
3313
|
+
class="vp-breadcrumb__text"
|
|
3314
|
+
data-vp-crumb
|
|
3315
|
+
[attr.title]="fullLabel(crumb.label)">{{ shortLabel(crumb.label) }}</span>
|
|
3316
|
+
} @else {
|
|
3317
|
+
<a
|
|
3318
|
+
class="vp-breadcrumb__link"
|
|
3319
|
+
data-vp-crumb
|
|
3320
|
+
[attr.href]="crumb.path"
|
|
3321
|
+
[attr.title]="fullLabel(crumb.label)">{{ shortLabel(crumb.label) }}</a>
|
|
3322
|
+
}
|
|
3323
|
+
</li>
|
|
3324
|
+
}
|
|
3325
|
+
</ol>
|
|
3326
|
+
</nav>
|
|
3327
|
+
}
|
|
3328
3328
|
`, styles: [":host{display:block}.vp-breadcrumb__list{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0;padding:0;font-size:var(--vp-text-sm)}.vp-breadcrumb__item{display:flex;align-items:center;gap:7px;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__text{color:var(--vp-text-muted)}.vp-breadcrumb__current{color:var(--vp-text-secondary)}.vp-breadcrumb__sep{color:var(--vp-text-muted);opacity:.55}\n"] }]
|
|
3329
3329
|
}], propDecorators: { trail: [{
|
|
3330
3330
|
type: Input,
|
|
@@ -3381,28 +3381,28 @@ class VpThemeControlComponent {
|
|
|
3381
3381
|
return `${this.label} — ${this.labelFor(this.nextMode)} moduna geç`;
|
|
3382
3382
|
}
|
|
3383
3383
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpThemeControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3384
|
-
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: `
|
|
3385
|
-
<!--
|
|
3386
|
-
⚠️ Tek dugme, uc durumlu dongu. Uc ayri dugme daha "acik" gorunurdu ama
|
|
3387
|
-
ust cubukta uc slot yer kaplar ve tema, kullanicinin gunde bir kez
|
|
3388
|
-
dokundugu bir ayar.
|
|
3389
|
-
|
|
3390
|
-
aria-label mevcut durumu VE sonraki adimi soyluyor: yalniz ikon degisen
|
|
3391
|
-
bir dugme, ekran okuyucu kullanicisi icin sessizdir.
|
|
3392
|
-
-->
|
|
3393
|
-
<button
|
|
3394
|
-
pButton
|
|
3395
|
-
type="button"
|
|
3396
|
-
text
|
|
3397
|
-
rounded
|
|
3398
|
-
severity="secondary"
|
|
3399
|
-
data-vp-theme-control
|
|
3400
|
-
[attr.data-vp-theme-mode]="mode"
|
|
3401
|
-
[icon]="icon"
|
|
3402
|
-
[pTooltip]="label"
|
|
3403
|
-
tooltipPosition="bottom"
|
|
3404
|
-
[attr.aria-label]="ariaLabel"
|
|
3405
|
-
(click)="cycle.emit()"></button>
|
|
3384
|
+
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: `
|
|
3385
|
+
<!--
|
|
3386
|
+
⚠️ Tek dugme, uc durumlu dongu. Uc ayri dugme daha "acik" gorunurdu ama
|
|
3387
|
+
ust cubukta uc slot yer kaplar ve tema, kullanicinin gunde bir kez
|
|
3388
|
+
dokundugu bir ayar.
|
|
3389
|
+
|
|
3390
|
+
aria-label mevcut durumu VE sonraki adimi soyluyor: yalniz ikon degisen
|
|
3391
|
+
bir dugme, ekran okuyucu kullanicisi icin sessizdir.
|
|
3392
|
+
-->
|
|
3393
|
+
<button
|
|
3394
|
+
pButton
|
|
3395
|
+
type="button"
|
|
3396
|
+
text
|
|
3397
|
+
rounded
|
|
3398
|
+
severity="secondary"
|
|
3399
|
+
data-vp-theme-control
|
|
3400
|
+
[attr.data-vp-theme-mode]="mode"
|
|
3401
|
+
[icon]="icon"
|
|
3402
|
+
[pTooltip]="label"
|
|
3403
|
+
tooltipPosition="bottom"
|
|
3404
|
+
[attr.aria-label]="ariaLabel"
|
|
3405
|
+
(click)="cycle.emit()"></button>
|
|
3406
3406
|
`, 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 }); }
|
|
3407
3407
|
}
|
|
3408
3408
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpThemeControlComponent, decorators: [{
|
|
@@ -3412,28 +3412,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
3412
3412
|
standalone: true,
|
|
3413
3413
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3414
3414
|
imports: [ButtonModule, TooltipModule],
|
|
3415
|
-
template: `
|
|
3416
|
-
<!--
|
|
3417
|
-
⚠️ Tek dugme, uc durumlu dongu. Uc ayri dugme daha "acik" gorunurdu ama
|
|
3418
|
-
ust cubukta uc slot yer kaplar ve tema, kullanicinin gunde bir kez
|
|
3419
|
-
dokundugu bir ayar.
|
|
3420
|
-
|
|
3421
|
-
aria-label mevcut durumu VE sonraki adimi soyluyor: yalniz ikon degisen
|
|
3422
|
-
bir dugme, ekran okuyucu kullanicisi icin sessizdir.
|
|
3423
|
-
-->
|
|
3424
|
-
<button
|
|
3425
|
-
pButton
|
|
3426
|
-
type="button"
|
|
3427
|
-
text
|
|
3428
|
-
rounded
|
|
3429
|
-
severity="secondary"
|
|
3430
|
-
data-vp-theme-control
|
|
3431
|
-
[attr.data-vp-theme-mode]="mode"
|
|
3432
|
-
[icon]="icon"
|
|
3433
|
-
[pTooltip]="label"
|
|
3434
|
-
tooltipPosition="bottom"
|
|
3435
|
-
[attr.aria-label]="ariaLabel"
|
|
3436
|
-
(click)="cycle.emit()"></button>
|
|
3415
|
+
template: `
|
|
3416
|
+
<!--
|
|
3417
|
+
⚠️ Tek dugme, uc durumlu dongu. Uc ayri dugme daha "acik" gorunurdu ama
|
|
3418
|
+
ust cubukta uc slot yer kaplar ve tema, kullanicinin gunde bir kez
|
|
3419
|
+
dokundugu bir ayar.
|
|
3420
|
+
|
|
3421
|
+
aria-label mevcut durumu VE sonraki adimi soyluyor: yalniz ikon degisen
|
|
3422
|
+
bir dugme, ekran okuyucu kullanicisi icin sessizdir.
|
|
3423
|
+
-->
|
|
3424
|
+
<button
|
|
3425
|
+
pButton
|
|
3426
|
+
type="button"
|
|
3427
|
+
text
|
|
3428
|
+
rounded
|
|
3429
|
+
severity="secondary"
|
|
3430
|
+
data-vp-theme-control
|
|
3431
|
+
[attr.data-vp-theme-mode]="mode"
|
|
3432
|
+
[icon]="icon"
|
|
3433
|
+
[pTooltip]="label"
|
|
3434
|
+
tooltipPosition="bottom"
|
|
3435
|
+
[attr.aria-label]="ariaLabel"
|
|
3436
|
+
(click)="cycle.emit()"></button>
|
|
3437
3437
|
`,
|
|
3438
3438
|
}]
|
|
3439
3439
|
}], propDecorators: { mode: [{
|
|
@@ -3466,84 +3466,84 @@ class VpSidebarToggleComponent {
|
|
|
3466
3466
|
this.toggle = new EventEmitter();
|
|
3467
3467
|
}
|
|
3468
3468
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSidebarToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3469
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpSidebarToggleComponent, isStandalone: true, selector: "vp-sidebar-toggle", inputs: { collapsed: "collapsed", icon: "icon", controls: "controls", collapseLabel: "collapseLabel", expandLabel: "expandLabel" }, outputs: { toggle: "toggle" }, ngImport: i0, template: `
|
|
3470
|
-
@if (icon === 'panel') {
|
|
3471
|
-
<!--
|
|
3472
|
-
Paket 28 · prototip: kenar cubugu ikonu (cerceve + dikey cizgi), menu (hamburger) degil. Ray dugmesi bir
|
|
3473
|
-
YERLESIM denetimi — menuyu acmiyor, kenar cubugunu daraltiyor.
|
|
3474
|
-
-->
|
|
3475
|
-
<button
|
|
3476
|
-
type="button"
|
|
3477
|
-
class="vp-sidebar-toggle vp-sidebar-toggle--panel"
|
|
3478
|
-
data-vp-sidebar-toggle
|
|
3479
|
-
[pTooltip]="collapsed ? expandLabel : collapseLabel"
|
|
3480
|
-
tooltipPosition="bottom"
|
|
3481
|
-
[attr.aria-expanded]="!collapsed"
|
|
3482
|
-
[attr.aria-controls]="controls"
|
|
3483
|
-
[attr.aria-label]="collapsed ? expandLabel : collapseLabel"
|
|
3484
|
-
(click)="toggle.emit()">
|
|
3485
|
-
<svg data-vp-toggle-icon="panel" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true">
|
|
3486
|
-
<rect x="2.2" y="3.2" width="11.6" height="9.6" rx="2" />
|
|
3487
|
-
<path d="M6.4 3.2v9.6" />
|
|
3488
|
-
</svg>
|
|
3489
|
-
</button>
|
|
3490
|
-
} @else {
|
|
3491
|
-
<button
|
|
3492
|
-
pButton
|
|
3493
|
-
type="button"
|
|
3494
|
-
text
|
|
3495
|
-
rounded
|
|
3496
|
-
severity="secondary"
|
|
3497
|
-
data-vp-sidebar-toggle
|
|
3498
|
-
icon="pi pi-bars"
|
|
3499
|
-
[pTooltip]="collapsed ? expandLabel : collapseLabel"
|
|
3500
|
-
tooltipPosition="bottom"
|
|
3501
|
-
[attr.aria-expanded]="!collapsed"
|
|
3502
|
-
[attr.aria-controls]="controls"
|
|
3503
|
-
[attr.aria-label]="collapsed ? expandLabel : collapseLabel"
|
|
3504
|
-
(click)="toggle.emit()"></button>
|
|
3505
|
-
}
|
|
3469
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpSidebarToggleComponent, isStandalone: true, selector: "vp-sidebar-toggle", inputs: { collapsed: "collapsed", icon: "icon", controls: "controls", collapseLabel: "collapseLabel", expandLabel: "expandLabel" }, outputs: { toggle: "toggle" }, ngImport: i0, template: `
|
|
3470
|
+
@if (icon === 'panel') {
|
|
3471
|
+
<!--
|
|
3472
|
+
Paket 28 · prototip: kenar cubugu ikonu (cerceve + dikey cizgi), menu (hamburger) degil. Ray dugmesi bir
|
|
3473
|
+
YERLESIM denetimi — menuyu acmiyor, kenar cubugunu daraltiyor.
|
|
3474
|
+
-->
|
|
3475
|
+
<button
|
|
3476
|
+
type="button"
|
|
3477
|
+
class="vp-sidebar-toggle vp-sidebar-toggle--panel"
|
|
3478
|
+
data-vp-sidebar-toggle
|
|
3479
|
+
[pTooltip]="collapsed ? expandLabel : collapseLabel"
|
|
3480
|
+
tooltipPosition="bottom"
|
|
3481
|
+
[attr.aria-expanded]="!collapsed"
|
|
3482
|
+
[attr.aria-controls]="controls"
|
|
3483
|
+
[attr.aria-label]="collapsed ? expandLabel : collapseLabel"
|
|
3484
|
+
(click)="toggle.emit()">
|
|
3485
|
+
<svg data-vp-toggle-icon="panel" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true">
|
|
3486
|
+
<rect x="2.2" y="3.2" width="11.6" height="9.6" rx="2" />
|
|
3487
|
+
<path d="M6.4 3.2v9.6" />
|
|
3488
|
+
</svg>
|
|
3489
|
+
</button>
|
|
3490
|
+
} @else {
|
|
3491
|
+
<button
|
|
3492
|
+
pButton
|
|
3493
|
+
type="button"
|
|
3494
|
+
text
|
|
3495
|
+
rounded
|
|
3496
|
+
severity="secondary"
|
|
3497
|
+
data-vp-sidebar-toggle
|
|
3498
|
+
icon="pi pi-bars"
|
|
3499
|
+
[pTooltip]="collapsed ? expandLabel : collapseLabel"
|
|
3500
|
+
tooltipPosition="bottom"
|
|
3501
|
+
[attr.aria-expanded]="!collapsed"
|
|
3502
|
+
[attr.aria-controls]="controls"
|
|
3503
|
+
[attr.aria-label]="collapsed ? expandLabel : collapseLabel"
|
|
3504
|
+
(click)="toggle.emit()"></button>
|
|
3505
|
+
}
|
|
3506
3506
|
`, isInline: true, styles: [".vp-sidebar-toggle--panel{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:var(--vp-radius-md);background:none;color:var(--vp-text-secondary);cursor:pointer}.vp-sidebar-toggle--panel:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-sidebar-toggle--panel:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-sidebar-toggle--panel svg{width:16px;height:16px}@media(max-width:900px){.vp-sidebar-toggle--panel{width:var(--vp-touch-target, 44px);height:var(--vp-touch-target, 44px)}}\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: 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 }); }
|
|
3507
3507
|
}
|
|
3508
3508
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSidebarToggleComponent, decorators: [{
|
|
3509
3509
|
type: Component,
|
|
3510
|
-
args: [{ selector: 'vp-sidebar-toggle', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonModule, TooltipModule], template: `
|
|
3511
|
-
@if (icon === 'panel') {
|
|
3512
|
-
<!--
|
|
3513
|
-
Paket 28 · prototip: kenar cubugu ikonu (cerceve + dikey cizgi), menu (hamburger) degil. Ray dugmesi bir
|
|
3514
|
-
YERLESIM denetimi — menuyu acmiyor, kenar cubugunu daraltiyor.
|
|
3515
|
-
-->
|
|
3516
|
-
<button
|
|
3517
|
-
type="button"
|
|
3518
|
-
class="vp-sidebar-toggle vp-sidebar-toggle--panel"
|
|
3519
|
-
data-vp-sidebar-toggle
|
|
3520
|
-
[pTooltip]="collapsed ? expandLabel : collapseLabel"
|
|
3521
|
-
tooltipPosition="bottom"
|
|
3522
|
-
[attr.aria-expanded]="!collapsed"
|
|
3523
|
-
[attr.aria-controls]="controls"
|
|
3524
|
-
[attr.aria-label]="collapsed ? expandLabel : collapseLabel"
|
|
3525
|
-
(click)="toggle.emit()">
|
|
3526
|
-
<svg data-vp-toggle-icon="panel" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true">
|
|
3527
|
-
<rect x="2.2" y="3.2" width="11.6" height="9.6" rx="2" />
|
|
3528
|
-
<path d="M6.4 3.2v9.6" />
|
|
3529
|
-
</svg>
|
|
3530
|
-
</button>
|
|
3531
|
-
} @else {
|
|
3532
|
-
<button
|
|
3533
|
-
pButton
|
|
3534
|
-
type="button"
|
|
3535
|
-
text
|
|
3536
|
-
rounded
|
|
3537
|
-
severity="secondary"
|
|
3538
|
-
data-vp-sidebar-toggle
|
|
3539
|
-
icon="pi pi-bars"
|
|
3540
|
-
[pTooltip]="collapsed ? expandLabel : collapseLabel"
|
|
3541
|
-
tooltipPosition="bottom"
|
|
3542
|
-
[attr.aria-expanded]="!collapsed"
|
|
3543
|
-
[attr.aria-controls]="controls"
|
|
3544
|
-
[attr.aria-label]="collapsed ? expandLabel : collapseLabel"
|
|
3545
|
-
(click)="toggle.emit()"></button>
|
|
3546
|
-
}
|
|
3510
|
+
args: [{ selector: 'vp-sidebar-toggle', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonModule, TooltipModule], template: `
|
|
3511
|
+
@if (icon === 'panel') {
|
|
3512
|
+
<!--
|
|
3513
|
+
Paket 28 · prototip: kenar cubugu ikonu (cerceve + dikey cizgi), menu (hamburger) degil. Ray dugmesi bir
|
|
3514
|
+
YERLESIM denetimi — menuyu acmiyor, kenar cubugunu daraltiyor.
|
|
3515
|
+
-->
|
|
3516
|
+
<button
|
|
3517
|
+
type="button"
|
|
3518
|
+
class="vp-sidebar-toggle vp-sidebar-toggle--panel"
|
|
3519
|
+
data-vp-sidebar-toggle
|
|
3520
|
+
[pTooltip]="collapsed ? expandLabel : collapseLabel"
|
|
3521
|
+
tooltipPosition="bottom"
|
|
3522
|
+
[attr.aria-expanded]="!collapsed"
|
|
3523
|
+
[attr.aria-controls]="controls"
|
|
3524
|
+
[attr.aria-label]="collapsed ? expandLabel : collapseLabel"
|
|
3525
|
+
(click)="toggle.emit()">
|
|
3526
|
+
<svg data-vp-toggle-icon="panel" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true">
|
|
3527
|
+
<rect x="2.2" y="3.2" width="11.6" height="9.6" rx="2" />
|
|
3528
|
+
<path d="M6.4 3.2v9.6" />
|
|
3529
|
+
</svg>
|
|
3530
|
+
</button>
|
|
3531
|
+
} @else {
|
|
3532
|
+
<button
|
|
3533
|
+
pButton
|
|
3534
|
+
type="button"
|
|
3535
|
+
text
|
|
3536
|
+
rounded
|
|
3537
|
+
severity="secondary"
|
|
3538
|
+
data-vp-sidebar-toggle
|
|
3539
|
+
icon="pi pi-bars"
|
|
3540
|
+
[pTooltip]="collapsed ? expandLabel : collapseLabel"
|
|
3541
|
+
tooltipPosition="bottom"
|
|
3542
|
+
[attr.aria-expanded]="!collapsed"
|
|
3543
|
+
[attr.aria-controls]="controls"
|
|
3544
|
+
[attr.aria-label]="collapsed ? expandLabel : collapseLabel"
|
|
3545
|
+
(click)="toggle.emit()"></button>
|
|
3546
|
+
}
|
|
3547
3547
|
`, styles: [".vp-sidebar-toggle--panel{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:var(--vp-radius-md);background:none;color:var(--vp-text-secondary);cursor:pointer}.vp-sidebar-toggle--panel:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-sidebar-toggle--panel:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-sidebar-toggle--panel svg{width:16px;height:16px}@media(max-width:900px){.vp-sidebar-toggle--panel{width:var(--vp-touch-target, 44px);height:var(--vp-touch-target, 44px)}}\n"] }]
|
|
3548
3548
|
}], propDecorators: { collapsed: [{
|
|
3549
3549
|
type: Input
|
|
@@ -3603,114 +3603,114 @@ class VpUserMenuComponent {
|
|
|
3603
3603
|
return this.subtitle ? `${this.displayName} (${this.subtitle}) — hesap menüsü` : `${this.displayName} — hesap menüsü`;
|
|
3604
3604
|
}
|
|
3605
3605
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpUserMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3606
|
-
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", variant: "variant", compact: "compact" }, outputs: { opened: "opened" }, ngImport: i0, template: `
|
|
3607
|
-
<div class="vp-user-menu" [attr.data-variant]="variant" [attr.data-compact]="compact || null">
|
|
3608
|
-
@if (variant === 'sidebar') {
|
|
3609
|
-
<!--
|
|
3610
|
-
Paket 28 · prototip .who: kenar cubugu ayaginda tam genislik satir — kare avatar · ad · rol · ok. Rayda yalniz
|
|
3611
|
-
avatar (ad ve rol 64px'e sigmaz; tam hali title ve aria-label'da).
|
|
3612
|
-
-->
|
|
3613
|
-
<button
|
|
3614
|
-
type="button"
|
|
3615
|
-
class="vp-user-menu__who"
|
|
3616
|
-
data-vp-user-menu
|
|
3617
|
-
[attr.aria-haspopup]="true"
|
|
3618
|
-
[attr.aria-controls]="menuId"
|
|
3619
|
-
[attr.aria-label]="ariaLabel"
|
|
3620
|
-
[title]="displayName"
|
|
3621
|
-
(click)="menu.toggle($event)">
|
|
3622
|
-
<span class="vp-user-menu__avatar vp-user-menu__avatar--square" aria-hidden="true">{{ initial }}</span>
|
|
3623
|
-
@if (!compact) {
|
|
3624
|
-
<span class="vp-user-menu__text">
|
|
3625
|
-
<span class="vp-user-menu__name">{{ displayName }}</span>
|
|
3626
|
-
@if (subtitle) {
|
|
3627
|
-
<span class="vp-user-menu__subtitle">{{ subtitle }}</span>
|
|
3628
|
-
}
|
|
3629
|
-
</span>
|
|
3630
|
-
<svg class="vp-user-menu__chevron" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true">
|
|
3631
|
-
<path d="M4 6.5 8 10.5 12 6.5" />
|
|
3632
|
-
</svg>
|
|
3633
|
-
}
|
|
3634
|
-
</button>
|
|
3635
|
-
} @else {
|
|
3636
|
-
<button
|
|
3637
|
-
pButton
|
|
3638
|
-
type="button"
|
|
3639
|
-
text
|
|
3640
|
-
data-vp-user-menu
|
|
3641
|
-
[attr.aria-haspopup]="true"
|
|
3642
|
-
[attr.aria-controls]="menuId"
|
|
3643
|
-
[attr.aria-label]="ariaLabel"
|
|
3644
|
-
[title]="displayName"
|
|
3645
|
-
(click)="menu.toggle($event)">
|
|
3646
|
-
<span class="vp-user-menu__avatar" aria-hidden="true">{{ initial }}</span>
|
|
3647
|
-
<span class="vp-user-menu__text">
|
|
3648
|
-
<span class="vp-user-menu__name">{{ displayName }}</span>
|
|
3649
|
-
@if (subtitle) {
|
|
3650
|
-
<span class="vp-user-menu__subtitle">{{ subtitle }}</span>
|
|
3651
|
-
}
|
|
3652
|
-
</span>
|
|
3653
|
-
</button>
|
|
3654
|
-
}
|
|
3655
|
-
|
|
3656
|
-
<p-menu #menu [model]="items" [popup]="true" [id]="menuId" />
|
|
3657
|
-
</div>
|
|
3606
|
+
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", variant: "variant", compact: "compact" }, outputs: { opened: "opened" }, ngImport: i0, template: `
|
|
3607
|
+
<div class="vp-user-menu" [attr.data-variant]="variant" [attr.data-compact]="compact || null">
|
|
3608
|
+
@if (variant === 'sidebar') {
|
|
3609
|
+
<!--
|
|
3610
|
+
Paket 28 · prototip .who: kenar cubugu ayaginda tam genislik satir — kare avatar · ad · rol · ok. Rayda yalniz
|
|
3611
|
+
avatar (ad ve rol 64px'e sigmaz; tam hali title ve aria-label'da).
|
|
3612
|
+
-->
|
|
3613
|
+
<button
|
|
3614
|
+
type="button"
|
|
3615
|
+
class="vp-user-menu__who"
|
|
3616
|
+
data-vp-user-menu
|
|
3617
|
+
[attr.aria-haspopup]="true"
|
|
3618
|
+
[attr.aria-controls]="menuId"
|
|
3619
|
+
[attr.aria-label]="ariaLabel"
|
|
3620
|
+
[title]="displayName"
|
|
3621
|
+
(click)="menu.toggle($event)">
|
|
3622
|
+
<span class="vp-user-menu__avatar vp-user-menu__avatar--square" aria-hidden="true">{{ initial }}</span>
|
|
3623
|
+
@if (!compact) {
|
|
3624
|
+
<span class="vp-user-menu__text">
|
|
3625
|
+
<span class="vp-user-menu__name">{{ displayName }}</span>
|
|
3626
|
+
@if (subtitle) {
|
|
3627
|
+
<span class="vp-user-menu__subtitle">{{ subtitle }}</span>
|
|
3628
|
+
}
|
|
3629
|
+
</span>
|
|
3630
|
+
<svg class="vp-user-menu__chevron" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true">
|
|
3631
|
+
<path d="M4 6.5 8 10.5 12 6.5" />
|
|
3632
|
+
</svg>
|
|
3633
|
+
}
|
|
3634
|
+
</button>
|
|
3635
|
+
} @else {
|
|
3636
|
+
<button
|
|
3637
|
+
pButton
|
|
3638
|
+
type="button"
|
|
3639
|
+
text
|
|
3640
|
+
data-vp-user-menu
|
|
3641
|
+
[attr.aria-haspopup]="true"
|
|
3642
|
+
[attr.aria-controls]="menuId"
|
|
3643
|
+
[attr.aria-label]="ariaLabel"
|
|
3644
|
+
[title]="displayName"
|
|
3645
|
+
(click)="menu.toggle($event)">
|
|
3646
|
+
<span class="vp-user-menu__avatar" aria-hidden="true">{{ initial }}</span>
|
|
3647
|
+
<span class="vp-user-menu__text">
|
|
3648
|
+
<span class="vp-user-menu__name">{{ displayName }}</span>
|
|
3649
|
+
@if (subtitle) {
|
|
3650
|
+
<span class="vp-user-menu__subtitle">{{ subtitle }}</span>
|
|
3651
|
+
}
|
|
3652
|
+
</span>
|
|
3653
|
+
</button>
|
|
3654
|
+
}
|
|
3655
|
+
|
|
3656
|
+
<p-menu #menu [model]="items" [popup]="true" [id]="menuId" />
|
|
3657
|
+
</div>
|
|
3658
3658
|
`, 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[data-variant=sidebar]{display:block}.vp-user-menu__who{display:flex;align-items:center;gap:9px;width:100%;padding:7px 8px;border:1px solid transparent;border-radius:var(--vp-radius-md);background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}.vp-user-menu__who:hover{border-color:var(--vp-border-default);background:var(--vp-surface-sunken)}.vp-user-menu__who:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-user-menu[data-compact] .vp-user-menu__who{justify-content:center;padding:5px 0}.vp-user-menu__avatar--square{flex:none;width:28px;height:28px;margin-right:0;border-radius:var(--vp-radius-md);background:var(--vp-brand);color:var(--vp-text-on-accent);font-size:var(--vp-text-sm)}.vp-user-menu[data-compact] .vp-user-menu__avatar--square{width:26px;height:26px;font-size:11px}.vp-user-menu__who .vp-user-menu__text{flex:1;min-width:0}.vp-user-menu__who .vp-user-menu__name{display:block;overflow:hidden;font-size:var(--vp-text-sm);text-overflow:ellipsis;white-space:nowrap}.vp-user-menu__who .vp-user-menu__subtitle{display:block}.vp-user-menu__who .vp-user-menu__subtitle{color:var(--vp-text-muted)}.vp-user-menu__chevron{flex:none;width:12px;height:12px;color:var(--vp-text-muted)}.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 }); }
|
|
3659
3659
|
}
|
|
3660
3660
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpUserMenuComponent, decorators: [{
|
|
3661
3661
|
type: Component,
|
|
3662
|
-
args: [{ selector: 'vp-user-menu', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonModule, MenuModule], template: `
|
|
3663
|
-
<div class="vp-user-menu" [attr.data-variant]="variant" [attr.data-compact]="compact || null">
|
|
3664
|
-
@if (variant === 'sidebar') {
|
|
3665
|
-
<!--
|
|
3666
|
-
Paket 28 · prototip .who: kenar cubugu ayaginda tam genislik satir — kare avatar · ad · rol · ok. Rayda yalniz
|
|
3667
|
-
avatar (ad ve rol 64px'e sigmaz; tam hali title ve aria-label'da).
|
|
3668
|
-
-->
|
|
3669
|
-
<button
|
|
3670
|
-
type="button"
|
|
3671
|
-
class="vp-user-menu__who"
|
|
3672
|
-
data-vp-user-menu
|
|
3673
|
-
[attr.aria-haspopup]="true"
|
|
3674
|
-
[attr.aria-controls]="menuId"
|
|
3675
|
-
[attr.aria-label]="ariaLabel"
|
|
3676
|
-
[title]="displayName"
|
|
3677
|
-
(click)="menu.toggle($event)">
|
|
3678
|
-
<span class="vp-user-menu__avatar vp-user-menu__avatar--square" aria-hidden="true">{{ initial }}</span>
|
|
3679
|
-
@if (!compact) {
|
|
3680
|
-
<span class="vp-user-menu__text">
|
|
3681
|
-
<span class="vp-user-menu__name">{{ displayName }}</span>
|
|
3682
|
-
@if (subtitle) {
|
|
3683
|
-
<span class="vp-user-menu__subtitle">{{ subtitle }}</span>
|
|
3684
|
-
}
|
|
3685
|
-
</span>
|
|
3686
|
-
<svg class="vp-user-menu__chevron" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true">
|
|
3687
|
-
<path d="M4 6.5 8 10.5 12 6.5" />
|
|
3688
|
-
</svg>
|
|
3689
|
-
}
|
|
3690
|
-
</button>
|
|
3691
|
-
} @else {
|
|
3692
|
-
<button
|
|
3693
|
-
pButton
|
|
3694
|
-
type="button"
|
|
3695
|
-
text
|
|
3696
|
-
data-vp-user-menu
|
|
3697
|
-
[attr.aria-haspopup]="true"
|
|
3698
|
-
[attr.aria-controls]="menuId"
|
|
3699
|
-
[attr.aria-label]="ariaLabel"
|
|
3700
|
-
[title]="displayName"
|
|
3701
|
-
(click)="menu.toggle($event)">
|
|
3702
|
-
<span class="vp-user-menu__avatar" aria-hidden="true">{{ initial }}</span>
|
|
3703
|
-
<span class="vp-user-menu__text">
|
|
3704
|
-
<span class="vp-user-menu__name">{{ displayName }}</span>
|
|
3705
|
-
@if (subtitle) {
|
|
3706
|
-
<span class="vp-user-menu__subtitle">{{ subtitle }}</span>
|
|
3707
|
-
}
|
|
3708
|
-
</span>
|
|
3709
|
-
</button>
|
|
3710
|
-
}
|
|
3711
|
-
|
|
3712
|
-
<p-menu #menu [model]="items" [popup]="true" [id]="menuId" />
|
|
3713
|
-
</div>
|
|
3662
|
+
args: [{ selector: 'vp-user-menu', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonModule, MenuModule], template: `
|
|
3663
|
+
<div class="vp-user-menu" [attr.data-variant]="variant" [attr.data-compact]="compact || null">
|
|
3664
|
+
@if (variant === 'sidebar') {
|
|
3665
|
+
<!--
|
|
3666
|
+
Paket 28 · prototip .who: kenar cubugu ayaginda tam genislik satir — kare avatar · ad · rol · ok. Rayda yalniz
|
|
3667
|
+
avatar (ad ve rol 64px'e sigmaz; tam hali title ve aria-label'da).
|
|
3668
|
+
-->
|
|
3669
|
+
<button
|
|
3670
|
+
type="button"
|
|
3671
|
+
class="vp-user-menu__who"
|
|
3672
|
+
data-vp-user-menu
|
|
3673
|
+
[attr.aria-haspopup]="true"
|
|
3674
|
+
[attr.aria-controls]="menuId"
|
|
3675
|
+
[attr.aria-label]="ariaLabel"
|
|
3676
|
+
[title]="displayName"
|
|
3677
|
+
(click)="menu.toggle($event)">
|
|
3678
|
+
<span class="vp-user-menu__avatar vp-user-menu__avatar--square" aria-hidden="true">{{ initial }}</span>
|
|
3679
|
+
@if (!compact) {
|
|
3680
|
+
<span class="vp-user-menu__text">
|
|
3681
|
+
<span class="vp-user-menu__name">{{ displayName }}</span>
|
|
3682
|
+
@if (subtitle) {
|
|
3683
|
+
<span class="vp-user-menu__subtitle">{{ subtitle }}</span>
|
|
3684
|
+
}
|
|
3685
|
+
</span>
|
|
3686
|
+
<svg class="vp-user-menu__chevron" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true">
|
|
3687
|
+
<path d="M4 6.5 8 10.5 12 6.5" />
|
|
3688
|
+
</svg>
|
|
3689
|
+
}
|
|
3690
|
+
</button>
|
|
3691
|
+
} @else {
|
|
3692
|
+
<button
|
|
3693
|
+
pButton
|
|
3694
|
+
type="button"
|
|
3695
|
+
text
|
|
3696
|
+
data-vp-user-menu
|
|
3697
|
+
[attr.aria-haspopup]="true"
|
|
3698
|
+
[attr.aria-controls]="menuId"
|
|
3699
|
+
[attr.aria-label]="ariaLabel"
|
|
3700
|
+
[title]="displayName"
|
|
3701
|
+
(click)="menu.toggle($event)">
|
|
3702
|
+
<span class="vp-user-menu__avatar" aria-hidden="true">{{ initial }}</span>
|
|
3703
|
+
<span class="vp-user-menu__text">
|
|
3704
|
+
<span class="vp-user-menu__name">{{ displayName }}</span>
|
|
3705
|
+
@if (subtitle) {
|
|
3706
|
+
<span class="vp-user-menu__subtitle">{{ subtitle }}</span>
|
|
3707
|
+
}
|
|
3708
|
+
</span>
|
|
3709
|
+
</button>
|
|
3710
|
+
}
|
|
3711
|
+
|
|
3712
|
+
<p-menu #menu [model]="items" [popup]="true" [id]="menuId" />
|
|
3713
|
+
</div>
|
|
3714
3714
|
`, 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[data-variant=sidebar]{display:block}.vp-user-menu__who{display:flex;align-items:center;gap:9px;width:100%;padding:7px 8px;border:1px solid transparent;border-radius:var(--vp-radius-md);background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}.vp-user-menu__who:hover{border-color:var(--vp-border-default);background:var(--vp-surface-sunken)}.vp-user-menu__who:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-user-menu[data-compact] .vp-user-menu__who{justify-content:center;padding:5px 0}.vp-user-menu__avatar--square{flex:none;width:28px;height:28px;margin-right:0;border-radius:var(--vp-radius-md);background:var(--vp-brand);color:var(--vp-text-on-accent);font-size:var(--vp-text-sm)}.vp-user-menu[data-compact] .vp-user-menu__avatar--square{width:26px;height:26px;font-size:11px}.vp-user-menu__who .vp-user-menu__text{flex:1;min-width:0}.vp-user-menu__who .vp-user-menu__name{display:block;overflow:hidden;font-size:var(--vp-text-sm);text-overflow:ellipsis;white-space:nowrap}.vp-user-menu__who .vp-user-menu__subtitle{display:block}.vp-user-menu__who .vp-user-menu__subtitle{color:var(--vp-text-muted)}.vp-user-menu__chevron{flex:none;width:12px;height:12px;color:var(--vp-text-muted)}.vp-user-menu__subtitle{font-size:var(--vp-font-size-xs, .75rem);color:var(--vp-text-muted, #8b949e)}\n"] }]
|
|
3715
3715
|
}], propDecorators: { displayName: [{
|
|
3716
3716
|
type: Input,
|
|
@@ -4514,72 +4514,72 @@ class VpGlobalLayersComponent {
|
|
|
4514
4514
|
this.action.emit(id);
|
|
4515
4515
|
}
|
|
4516
4516
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpGlobalLayersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4517
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpGlobalLayersComponent, isStandalone: true, selector: "vp-global-layers", inputs: { loading: "loading", loadingLabel: "loadingLabel", islandNotice: "islandNotice", islandPending: "islandPending", islandLabels: "islandLabels" }, outputs: { islandOpened: "islandOpened", islandDismissed: "islandDismissed", action: "action" }, ngImport: i0, template: `
|
|
4518
|
-
<vp-toast
|
|
4519
|
-
[toasts]="toastService.toasts()"
|
|
4520
|
-
(dismissed)="toastService.dismiss($event)"
|
|
4521
|
-
(actioned)="actioned($event)" />
|
|
4522
|
-
|
|
4523
|
-
<!--
|
|
4524
|
-
Bildirim adası (paket 28 · B2): tostun yanında AYRI bölge. Tost işlemin sonucunu söyler, ada dışarıdan gelen
|
|
4525
|
-
olayı. Hangi bildirimin gösterileceği uygulamada; katman yalnız çiziyor ve olayları iletiyor.
|
|
4526
|
-
-->
|
|
4527
|
-
<vp-notification-island
|
|
4528
|
-
[notice]="islandNotice"
|
|
4529
|
-
[pending]="islandPending"
|
|
4530
|
-
[closeLabel]="islandLabels.closeLabel ?? islandDefaults.closeLabel"
|
|
4531
|
-
[goLabel]="islandLabels.goLabel ?? islandDefaults.goLabel"
|
|
4532
|
-
[pendingLabel]="islandLabels.pendingLabel ?? islandDefaults.pendingLabel"
|
|
4533
|
-
[remainingLabel]="islandLabels.remainingLabel ?? islandDefaults.remainingLabel"
|
|
4534
|
-
[stickyLabel]="islandLabels.stickyLabel ?? islandDefaults.stickyLabel"
|
|
4535
|
-
(opened)="islandOpened.emit($event)"
|
|
4536
|
-
(dismissed)="islandDismissed.emit($event)" />
|
|
4537
|
-
|
|
4538
|
-
@if (loading) {
|
|
4539
|
-
<div
|
|
4540
|
-
class="vp-global-layers__overlay"
|
|
4541
|
-
data-vp-loading-overlay
|
|
4542
|
-
role="status"
|
|
4543
|
-
aria-busy="true"
|
|
4544
|
-
[attr.aria-label]="loadingLabel">
|
|
4545
|
-
<span class="vp-global-layers__spinner" aria-hidden="true"></span>
|
|
4546
|
-
</div>
|
|
4547
|
-
}
|
|
4517
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpGlobalLayersComponent, isStandalone: true, selector: "vp-global-layers", inputs: { loading: "loading", loadingLabel: "loadingLabel", islandNotice: "islandNotice", islandPending: "islandPending", islandLabels: "islandLabels" }, outputs: { islandOpened: "islandOpened", islandDismissed: "islandDismissed", action: "action" }, ngImport: i0, template: `
|
|
4518
|
+
<vp-toast
|
|
4519
|
+
[toasts]="toastService.toasts()"
|
|
4520
|
+
(dismissed)="toastService.dismiss($event)"
|
|
4521
|
+
(actioned)="actioned($event)" />
|
|
4522
|
+
|
|
4523
|
+
<!--
|
|
4524
|
+
Bildirim adası (paket 28 · B2): tostun yanında AYRI bölge. Tost işlemin sonucunu söyler, ada dışarıdan gelen
|
|
4525
|
+
olayı. Hangi bildirimin gösterileceği uygulamada; katman yalnız çiziyor ve olayları iletiyor.
|
|
4526
|
+
-->
|
|
4527
|
+
<vp-notification-island
|
|
4528
|
+
[notice]="islandNotice"
|
|
4529
|
+
[pending]="islandPending"
|
|
4530
|
+
[closeLabel]="islandLabels.closeLabel ?? islandDefaults.closeLabel"
|
|
4531
|
+
[goLabel]="islandLabels.goLabel ?? islandDefaults.goLabel"
|
|
4532
|
+
[pendingLabel]="islandLabels.pendingLabel ?? islandDefaults.pendingLabel"
|
|
4533
|
+
[remainingLabel]="islandLabels.remainingLabel ?? islandDefaults.remainingLabel"
|
|
4534
|
+
[stickyLabel]="islandLabels.stickyLabel ?? islandDefaults.stickyLabel"
|
|
4535
|
+
(opened)="islandOpened.emit($event)"
|
|
4536
|
+
(dismissed)="islandDismissed.emit($event)" />
|
|
4537
|
+
|
|
4538
|
+
@if (loading) {
|
|
4539
|
+
<div
|
|
4540
|
+
class="vp-global-layers__overlay"
|
|
4541
|
+
data-vp-loading-overlay
|
|
4542
|
+
role="status"
|
|
4543
|
+
aria-busy="true"
|
|
4544
|
+
[attr.aria-label]="loadingLabel">
|
|
4545
|
+
<span class="vp-global-layers__spinner" aria-hidden="true"></span>
|
|
4546
|
+
</div>
|
|
4547
|
+
}
|
|
4548
4548
|
`, isInline: true, styles: [".vp-global-layers__overlay{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--vp-surface-base, #0d1117) 70%,transparent)}.vp-global-layers__spinner{width:2rem;height:2rem;border:2px solid var(--vp-border-subtle, #30363d);border-top-color:var(--vp-brand, #2f81f7);border-radius:50%;animation:vp-global-layers-spin .7s linear infinite}@keyframes vp-global-layers-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.vp-global-layers__spinner{animation:vp-global-layers-pulse 1.6s ease-in-out infinite}@keyframes vp-global-layers-pulse{50%{opacity:.35}}}\n"], dependencies: [{ kind: "component", type: VpToastComponent, selector: "vp-toast", inputs: ["toasts", "dismissLabel", "defaultDismissMs"], outputs: ["dismissed", "actioned"] }, { kind: "component", type: VpNotificationIslandComponent, selector: "vp-notification-island", inputs: ["notice", "pending", "duration", "closeLabel", "goLabel", "pendingLabel", "remainingLabel", "stickyLabel"], outputs: ["opened", "dismissed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4549
4549
|
}
|
|
4550
4550
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpGlobalLayersComponent, decorators: [{
|
|
4551
4551
|
type: Component,
|
|
4552
|
-
args: [{ selector: 'vp-global-layers', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [VpToastComponent, VpNotificationIslandComponent], template: `
|
|
4553
|
-
<vp-toast
|
|
4554
|
-
[toasts]="toastService.toasts()"
|
|
4555
|
-
(dismissed)="toastService.dismiss($event)"
|
|
4556
|
-
(actioned)="actioned($event)" />
|
|
4557
|
-
|
|
4558
|
-
<!--
|
|
4559
|
-
Bildirim adası (paket 28 · B2): tostun yanında AYRI bölge. Tost işlemin sonucunu söyler, ada dışarıdan gelen
|
|
4560
|
-
olayı. Hangi bildirimin gösterileceği uygulamada; katman yalnız çiziyor ve olayları iletiyor.
|
|
4561
|
-
-->
|
|
4562
|
-
<vp-notification-island
|
|
4563
|
-
[notice]="islandNotice"
|
|
4564
|
-
[pending]="islandPending"
|
|
4565
|
-
[closeLabel]="islandLabels.closeLabel ?? islandDefaults.closeLabel"
|
|
4566
|
-
[goLabel]="islandLabels.goLabel ?? islandDefaults.goLabel"
|
|
4567
|
-
[pendingLabel]="islandLabels.pendingLabel ?? islandDefaults.pendingLabel"
|
|
4568
|
-
[remainingLabel]="islandLabels.remainingLabel ?? islandDefaults.remainingLabel"
|
|
4569
|
-
[stickyLabel]="islandLabels.stickyLabel ?? islandDefaults.stickyLabel"
|
|
4570
|
-
(opened)="islandOpened.emit($event)"
|
|
4571
|
-
(dismissed)="islandDismissed.emit($event)" />
|
|
4572
|
-
|
|
4573
|
-
@if (loading) {
|
|
4574
|
-
<div
|
|
4575
|
-
class="vp-global-layers__overlay"
|
|
4576
|
-
data-vp-loading-overlay
|
|
4577
|
-
role="status"
|
|
4578
|
-
aria-busy="true"
|
|
4579
|
-
[attr.aria-label]="loadingLabel">
|
|
4580
|
-
<span class="vp-global-layers__spinner" aria-hidden="true"></span>
|
|
4581
|
-
</div>
|
|
4582
|
-
}
|
|
4552
|
+
args: [{ selector: 'vp-global-layers', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [VpToastComponent, VpNotificationIslandComponent], template: `
|
|
4553
|
+
<vp-toast
|
|
4554
|
+
[toasts]="toastService.toasts()"
|
|
4555
|
+
(dismissed)="toastService.dismiss($event)"
|
|
4556
|
+
(actioned)="actioned($event)" />
|
|
4557
|
+
|
|
4558
|
+
<!--
|
|
4559
|
+
Bildirim adası (paket 28 · B2): tostun yanında AYRI bölge. Tost işlemin sonucunu söyler, ada dışarıdan gelen
|
|
4560
|
+
olayı. Hangi bildirimin gösterileceği uygulamada; katman yalnız çiziyor ve olayları iletiyor.
|
|
4561
|
+
-->
|
|
4562
|
+
<vp-notification-island
|
|
4563
|
+
[notice]="islandNotice"
|
|
4564
|
+
[pending]="islandPending"
|
|
4565
|
+
[closeLabel]="islandLabels.closeLabel ?? islandDefaults.closeLabel"
|
|
4566
|
+
[goLabel]="islandLabels.goLabel ?? islandDefaults.goLabel"
|
|
4567
|
+
[pendingLabel]="islandLabels.pendingLabel ?? islandDefaults.pendingLabel"
|
|
4568
|
+
[remainingLabel]="islandLabels.remainingLabel ?? islandDefaults.remainingLabel"
|
|
4569
|
+
[stickyLabel]="islandLabels.stickyLabel ?? islandDefaults.stickyLabel"
|
|
4570
|
+
(opened)="islandOpened.emit($event)"
|
|
4571
|
+
(dismissed)="islandDismissed.emit($event)" />
|
|
4572
|
+
|
|
4573
|
+
@if (loading) {
|
|
4574
|
+
<div
|
|
4575
|
+
class="vp-global-layers__overlay"
|
|
4576
|
+
data-vp-loading-overlay
|
|
4577
|
+
role="status"
|
|
4578
|
+
aria-busy="true"
|
|
4579
|
+
[attr.aria-label]="loadingLabel">
|
|
4580
|
+
<span class="vp-global-layers__spinner" aria-hidden="true"></span>
|
|
4581
|
+
</div>
|
|
4582
|
+
}
|
|
4583
4583
|
`, 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"] }]
|
|
4584
4584
|
}], propDecorators: { loading: [{
|
|
4585
4585
|
type: Input
|
|
@@ -4645,96 +4645,96 @@ class VpNotificationTriggerComponent {
|
|
|
4645
4645
|
return this.unread > 0 ? `${this.title} — ${this.unread} okunmamış` : `${this.title} — okunmamış yok`;
|
|
4646
4646
|
}
|
|
4647
4647
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpNotificationTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4648
|
-
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: `
|
|
4649
|
-
<p-overlaybadge [value]="badgeValue" [severity]="'danger'" [style]="{ display: unread > 0 ? null : 'none' }">
|
|
4650
|
-
<button
|
|
4651
|
-
pButton
|
|
4652
|
-
type="button"
|
|
4653
|
-
text
|
|
4654
|
-
rounded
|
|
4655
|
-
severity="secondary"
|
|
4656
|
-
data-vp-notification-trigger
|
|
4657
|
-
icon="pi pi-bell"
|
|
4658
|
-
[attr.aria-label]="ariaLabel"
|
|
4659
|
-
[attr.aria-haspopup]="true"
|
|
4660
|
-
[attr.aria-controls]="panelId"
|
|
4661
|
-
(click)="panel.toggle($event); opened.emit()"></button>
|
|
4662
|
-
</p-overlaybadge>
|
|
4663
|
-
|
|
4664
|
-
<p-popover #panel [id]="panelId">
|
|
4665
|
-
<div class="vp-notification-trigger__panel">
|
|
4666
|
-
<p class="vp-notification-trigger__title">{{ title }}</p>
|
|
4667
|
-
|
|
4668
|
-
@if (items.length === 0) {
|
|
4669
|
-
<!--
|
|
4670
|
-
Bos durum bir cumle kurar. "Bildirim yok" tek basina, ekranin
|
|
4671
|
-
yuklenip yuklenmedigini soylemiyor.
|
|
4672
|
-
-->
|
|
4673
|
-
<p class="vp-notification-trigger__empty">{{ emptyLabel }}</p>
|
|
4674
|
-
} @else {
|
|
4675
|
-
<ul class="vp-notification-trigger__list">
|
|
4676
|
-
@for (item of items; track item.id) {
|
|
4677
|
-
<li
|
|
4678
|
-
class="vp-notification-trigger__item"
|
|
4679
|
-
[attr.data-vp-notification]="item.id"
|
|
4680
|
-
[attr.data-unread]="item.unread ? 'true' : null">
|
|
4681
|
-
<span class="vp-notification-trigger__message">{{ item.message }}</span>
|
|
4682
|
-
@if (item.timeLabel) {
|
|
4683
|
-
<span class="vp-notification-trigger__time">{{ item.timeLabel }}</span>
|
|
4684
|
-
}
|
|
4685
|
-
</li>
|
|
4686
|
-
}
|
|
4687
|
-
</ul>
|
|
4688
|
-
}
|
|
4689
|
-
</div>
|
|
4690
|
-
</p-popover>
|
|
4648
|
+
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: `
|
|
4649
|
+
<p-overlaybadge [value]="badgeValue" [severity]="'danger'" [style]="{ display: unread > 0 ? null : 'none' }">
|
|
4650
|
+
<button
|
|
4651
|
+
pButton
|
|
4652
|
+
type="button"
|
|
4653
|
+
text
|
|
4654
|
+
rounded
|
|
4655
|
+
severity="secondary"
|
|
4656
|
+
data-vp-notification-trigger
|
|
4657
|
+
icon="pi pi-bell"
|
|
4658
|
+
[attr.aria-label]="ariaLabel"
|
|
4659
|
+
[attr.aria-haspopup]="true"
|
|
4660
|
+
[attr.aria-controls]="panelId"
|
|
4661
|
+
(click)="panel.toggle($event); opened.emit()"></button>
|
|
4662
|
+
</p-overlaybadge>
|
|
4663
|
+
|
|
4664
|
+
<p-popover #panel [id]="panelId">
|
|
4665
|
+
<div class="vp-notification-trigger__panel">
|
|
4666
|
+
<p class="vp-notification-trigger__title">{{ title }}</p>
|
|
4667
|
+
|
|
4668
|
+
@if (items.length === 0) {
|
|
4669
|
+
<!--
|
|
4670
|
+
Bos durum bir cumle kurar. "Bildirim yok" tek basina, ekranin
|
|
4671
|
+
yuklenip yuklenmedigini soylemiyor.
|
|
4672
|
+
-->
|
|
4673
|
+
<p class="vp-notification-trigger__empty">{{ emptyLabel }}</p>
|
|
4674
|
+
} @else {
|
|
4675
|
+
<ul class="vp-notification-trigger__list">
|
|
4676
|
+
@for (item of items; track item.id) {
|
|
4677
|
+
<li
|
|
4678
|
+
class="vp-notification-trigger__item"
|
|
4679
|
+
[attr.data-vp-notification]="item.id"
|
|
4680
|
+
[attr.data-unread]="item.unread ? 'true' : null">
|
|
4681
|
+
<span class="vp-notification-trigger__message">{{ item.message }}</span>
|
|
4682
|
+
@if (item.timeLabel) {
|
|
4683
|
+
<span class="vp-notification-trigger__time">{{ item.timeLabel }}</span>
|
|
4684
|
+
}
|
|
4685
|
+
</li>
|
|
4686
|
+
}
|
|
4687
|
+
</ul>
|
|
4688
|
+
}
|
|
4689
|
+
</div>
|
|
4690
|
+
</p-popover>
|
|
4691
4691
|
`, 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 }); }
|
|
4692
4692
|
}
|
|
4693
4693
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpNotificationTriggerComponent, decorators: [{
|
|
4694
4694
|
type: Component,
|
|
4695
|
-
args: [{ selector: 'vp-notification-trigger', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonModule, OverlayBadgeModule, PopoverModule], template: `
|
|
4696
|
-
<p-overlaybadge [value]="badgeValue" [severity]="'danger'" [style]="{ display: unread > 0 ? null : 'none' }">
|
|
4697
|
-
<button
|
|
4698
|
-
pButton
|
|
4699
|
-
type="button"
|
|
4700
|
-
text
|
|
4701
|
-
rounded
|
|
4702
|
-
severity="secondary"
|
|
4703
|
-
data-vp-notification-trigger
|
|
4704
|
-
icon="pi pi-bell"
|
|
4705
|
-
[attr.aria-label]="ariaLabel"
|
|
4706
|
-
[attr.aria-haspopup]="true"
|
|
4707
|
-
[attr.aria-controls]="panelId"
|
|
4708
|
-
(click)="panel.toggle($event); opened.emit()"></button>
|
|
4709
|
-
</p-overlaybadge>
|
|
4710
|
-
|
|
4711
|
-
<p-popover #panel [id]="panelId">
|
|
4712
|
-
<div class="vp-notification-trigger__panel">
|
|
4713
|
-
<p class="vp-notification-trigger__title">{{ title }}</p>
|
|
4714
|
-
|
|
4715
|
-
@if (items.length === 0) {
|
|
4716
|
-
<!--
|
|
4717
|
-
Bos durum bir cumle kurar. "Bildirim yok" tek basina, ekranin
|
|
4718
|
-
yuklenip yuklenmedigini soylemiyor.
|
|
4719
|
-
-->
|
|
4720
|
-
<p class="vp-notification-trigger__empty">{{ emptyLabel }}</p>
|
|
4721
|
-
} @else {
|
|
4722
|
-
<ul class="vp-notification-trigger__list">
|
|
4723
|
-
@for (item of items; track item.id) {
|
|
4724
|
-
<li
|
|
4725
|
-
class="vp-notification-trigger__item"
|
|
4726
|
-
[attr.data-vp-notification]="item.id"
|
|
4727
|
-
[attr.data-unread]="item.unread ? 'true' : null">
|
|
4728
|
-
<span class="vp-notification-trigger__message">{{ item.message }}</span>
|
|
4729
|
-
@if (item.timeLabel) {
|
|
4730
|
-
<span class="vp-notification-trigger__time">{{ item.timeLabel }}</span>
|
|
4731
|
-
}
|
|
4732
|
-
</li>
|
|
4733
|
-
}
|
|
4734
|
-
</ul>
|
|
4735
|
-
}
|
|
4736
|
-
</div>
|
|
4737
|
-
</p-popover>
|
|
4695
|
+
args: [{ selector: 'vp-notification-trigger', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonModule, OverlayBadgeModule, PopoverModule], template: `
|
|
4696
|
+
<p-overlaybadge [value]="badgeValue" [severity]="'danger'" [style]="{ display: unread > 0 ? null : 'none' }">
|
|
4697
|
+
<button
|
|
4698
|
+
pButton
|
|
4699
|
+
type="button"
|
|
4700
|
+
text
|
|
4701
|
+
rounded
|
|
4702
|
+
severity="secondary"
|
|
4703
|
+
data-vp-notification-trigger
|
|
4704
|
+
icon="pi pi-bell"
|
|
4705
|
+
[attr.aria-label]="ariaLabel"
|
|
4706
|
+
[attr.aria-haspopup]="true"
|
|
4707
|
+
[attr.aria-controls]="panelId"
|
|
4708
|
+
(click)="panel.toggle($event); opened.emit()"></button>
|
|
4709
|
+
</p-overlaybadge>
|
|
4710
|
+
|
|
4711
|
+
<p-popover #panel [id]="panelId">
|
|
4712
|
+
<div class="vp-notification-trigger__panel">
|
|
4713
|
+
<p class="vp-notification-trigger__title">{{ title }}</p>
|
|
4714
|
+
|
|
4715
|
+
@if (items.length === 0) {
|
|
4716
|
+
<!--
|
|
4717
|
+
Bos durum bir cumle kurar. "Bildirim yok" tek basina, ekranin
|
|
4718
|
+
yuklenip yuklenmedigini soylemiyor.
|
|
4719
|
+
-->
|
|
4720
|
+
<p class="vp-notification-trigger__empty">{{ emptyLabel }}</p>
|
|
4721
|
+
} @else {
|
|
4722
|
+
<ul class="vp-notification-trigger__list">
|
|
4723
|
+
@for (item of items; track item.id) {
|
|
4724
|
+
<li
|
|
4725
|
+
class="vp-notification-trigger__item"
|
|
4726
|
+
[attr.data-vp-notification]="item.id"
|
|
4727
|
+
[attr.data-unread]="item.unread ? 'true' : null">
|
|
4728
|
+
<span class="vp-notification-trigger__message">{{ item.message }}</span>
|
|
4729
|
+
@if (item.timeLabel) {
|
|
4730
|
+
<span class="vp-notification-trigger__time">{{ item.timeLabel }}</span>
|
|
4731
|
+
}
|
|
4732
|
+
</li>
|
|
4733
|
+
}
|
|
4734
|
+
</ul>
|
|
4735
|
+
}
|
|
4736
|
+
</div>
|
|
4737
|
+
</p-popover>
|
|
4738
4738
|
`, 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"] }]
|
|
4739
4739
|
}], propDecorators: { items: [{
|
|
4740
4740
|
type: Input
|
|
@@ -4959,58 +4959,58 @@ class VpSearchTriggerComponent {
|
|
|
4959
4959
|
this.opened = new EventEmitter();
|
|
4960
4960
|
}
|
|
4961
4961
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSearchTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4962
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpSearchTriggerComponent, isStandalone: true, selector: "vp-search-trigger", inputs: { label: "label", variant: "variant", railLabel: "railLabel", hint: "hint", keyShortcut: "keyShortcut" }, outputs: { opened: "opened" }, host: { properties: { "attr.data-variant": "variant" } }, ngImport: i0, template: `
|
|
4963
|
-
<!--
|
|
4964
|
-
Bicim (paket 28 · prototip): bar = ust cubuk alani · field = kenar cubugunda tam genislik alan ("Konsolda ara" +
|
|
4965
|
-
Ctrl K) · rail = daraltilmis rayda 40x40 ikon dugmesi. Uc bicim AYNI denetim: paleti aciyor, yazma yuzeyi degil.
|
|
4966
|
-
-->
|
|
4967
|
-
<button
|
|
4968
|
-
pButton
|
|
4969
|
-
type="button"
|
|
4970
|
-
text
|
|
4971
|
-
severity="secondary"
|
|
4972
|
-
data-vp-search-trigger
|
|
4973
|
-
class="vp-search-trigger"
|
|
4974
|
-
[attr.data-vp-search-variant]="variant"
|
|
4975
|
-
[attr.aria-label]="variant === 'rail' ? railLabel : label"
|
|
4976
|
-
[attr.aria-keyshortcuts]="keyShortcut"
|
|
4977
|
-
(click)="opened.emit()">
|
|
4978
|
-
<span class="pi pi-search vp-search-trigger__icon" aria-hidden="true"></span>
|
|
4979
|
-
@if (variant !== 'rail') {
|
|
4980
|
-
<span class="vp-search-trigger__label">{{ label }}</span>
|
|
4981
|
-
@if (hint) {
|
|
4982
|
-
<kbd class="vp-search-trigger__hint" aria-hidden="true">{{ hint }}</kbd>
|
|
4983
|
-
}
|
|
4984
|
-
}
|
|
4985
|
-
</button>
|
|
4962
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpSearchTriggerComponent, isStandalone: true, selector: "vp-search-trigger", inputs: { label: "label", variant: "variant", railLabel: "railLabel", hint: "hint", keyShortcut: "keyShortcut" }, outputs: { opened: "opened" }, host: { properties: { "attr.data-variant": "variant" } }, ngImport: i0, template: `
|
|
4963
|
+
<!--
|
|
4964
|
+
Bicim (paket 28 · prototip): bar = ust cubuk alani · field = kenar cubugunda tam genislik alan ("Konsolda ara" +
|
|
4965
|
+
Ctrl K) · rail = daraltilmis rayda 40x40 ikon dugmesi. Uc bicim AYNI denetim: paleti aciyor, yazma yuzeyi degil.
|
|
4966
|
+
-->
|
|
4967
|
+
<button
|
|
4968
|
+
pButton
|
|
4969
|
+
type="button"
|
|
4970
|
+
text
|
|
4971
|
+
severity="secondary"
|
|
4972
|
+
data-vp-search-trigger
|
|
4973
|
+
class="vp-search-trigger"
|
|
4974
|
+
[attr.data-vp-search-variant]="variant"
|
|
4975
|
+
[attr.aria-label]="variant === 'rail' ? railLabel : label"
|
|
4976
|
+
[attr.aria-keyshortcuts]="keyShortcut"
|
|
4977
|
+
(click)="opened.emit()">
|
|
4978
|
+
<span class="pi pi-search vp-search-trigger__icon" aria-hidden="true"></span>
|
|
4979
|
+
@if (variant !== 'rail') {
|
|
4980
|
+
<span class="vp-search-trigger__label">{{ label }}</span>
|
|
4981
|
+
@if (hint) {
|
|
4982
|
+
<kbd class="vp-search-trigger__hint" aria-hidden="true">{{ hint }}</kbd>
|
|
4983
|
+
}
|
|
4984
|
+
}
|
|
4985
|
+
</button>
|
|
4986
4986
|
`, 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[data-vp-search-variant=bar]{min-width:0}[data-vp-search-variant=bar] .vp-search-trigger__label,[data-vp-search-variant=bar] .vp-search-trigger__hint{display:none}}:host([data-variant=\"field\"]){display:block}:host ::ng-deep .vp-search-trigger[data-vp-search-variant=field]{width:100%;min-width:0;min-height:32px;padding:6px 10px;gap:8px;border-color:var(--vp-border-subtle);border-radius:var(--vp-radius-md);background:var(--vp-surface-base);font-size:var(--vp-text-sm)}:host([data-variant=\"rail\"]){display:block}:host ::ng-deep .vp-search-trigger[data-vp-search-variant=rail]{display:grid;place-items:center;width:40px;min-width:0;height:40px;margin:0 auto;padding:0;border:0;border-radius:var(--vp-radius-xl);color:var(--vp-text-secondary)}\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 }); }
|
|
4987
4987
|
}
|
|
4988
4988
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSearchTriggerComponent, decorators: [{
|
|
4989
4989
|
type: Component,
|
|
4990
|
-
args: [{ selector: 'vp-search-trigger', standalone: true, host: { '[attr.data-variant]': 'variant' }, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonModule], template: `
|
|
4991
|
-
<!--
|
|
4992
|
-
Bicim (paket 28 · prototip): bar = ust cubuk alani · field = kenar cubugunda tam genislik alan ("Konsolda ara" +
|
|
4993
|
-
Ctrl K) · rail = daraltilmis rayda 40x40 ikon dugmesi. Uc bicim AYNI denetim: paleti aciyor, yazma yuzeyi degil.
|
|
4994
|
-
-->
|
|
4995
|
-
<button
|
|
4996
|
-
pButton
|
|
4997
|
-
type="button"
|
|
4998
|
-
text
|
|
4999
|
-
severity="secondary"
|
|
5000
|
-
data-vp-search-trigger
|
|
5001
|
-
class="vp-search-trigger"
|
|
5002
|
-
[attr.data-vp-search-variant]="variant"
|
|
5003
|
-
[attr.aria-label]="variant === 'rail' ? railLabel : label"
|
|
5004
|
-
[attr.aria-keyshortcuts]="keyShortcut"
|
|
5005
|
-
(click)="opened.emit()">
|
|
5006
|
-
<span class="pi pi-search vp-search-trigger__icon" aria-hidden="true"></span>
|
|
5007
|
-
@if (variant !== 'rail') {
|
|
5008
|
-
<span class="vp-search-trigger__label">{{ label }}</span>
|
|
5009
|
-
@if (hint) {
|
|
5010
|
-
<kbd class="vp-search-trigger__hint" aria-hidden="true">{{ hint }}</kbd>
|
|
5011
|
-
}
|
|
5012
|
-
}
|
|
5013
|
-
</button>
|
|
4990
|
+
args: [{ selector: 'vp-search-trigger', standalone: true, host: { '[attr.data-variant]': 'variant' }, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonModule], template: `
|
|
4991
|
+
<!--
|
|
4992
|
+
Bicim (paket 28 · prototip): bar = ust cubuk alani · field = kenar cubugunda tam genislik alan ("Konsolda ara" +
|
|
4993
|
+
Ctrl K) · rail = daraltilmis rayda 40x40 ikon dugmesi. Uc bicim AYNI denetim: paleti aciyor, yazma yuzeyi degil.
|
|
4994
|
+
-->
|
|
4995
|
+
<button
|
|
4996
|
+
pButton
|
|
4997
|
+
type="button"
|
|
4998
|
+
text
|
|
4999
|
+
severity="secondary"
|
|
5000
|
+
data-vp-search-trigger
|
|
5001
|
+
class="vp-search-trigger"
|
|
5002
|
+
[attr.data-vp-search-variant]="variant"
|
|
5003
|
+
[attr.aria-label]="variant === 'rail' ? railLabel : label"
|
|
5004
|
+
[attr.aria-keyshortcuts]="keyShortcut"
|
|
5005
|
+
(click)="opened.emit()">
|
|
5006
|
+
<span class="pi pi-search vp-search-trigger__icon" aria-hidden="true"></span>
|
|
5007
|
+
@if (variant !== 'rail') {
|
|
5008
|
+
<span class="vp-search-trigger__label">{{ label }}</span>
|
|
5009
|
+
@if (hint) {
|
|
5010
|
+
<kbd class="vp-search-trigger__hint" aria-hidden="true">{{ hint }}</kbd>
|
|
5011
|
+
}
|
|
5012
|
+
}
|
|
5013
|
+
</button>
|
|
5014
5014
|
`, 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[data-vp-search-variant=bar]{min-width:0}[data-vp-search-variant=bar] .vp-search-trigger__label,[data-vp-search-variant=bar] .vp-search-trigger__hint{display:none}}:host([data-variant=\"field\"]){display:block}:host ::ng-deep .vp-search-trigger[data-vp-search-variant=field]{width:100%;min-width:0;min-height:32px;padding:6px 10px;gap:8px;border-color:var(--vp-border-subtle);border-radius:var(--vp-radius-md);background:var(--vp-surface-base);font-size:var(--vp-text-sm)}:host([data-variant=\"rail\"]){display:block}:host ::ng-deep .vp-search-trigger[data-vp-search-variant=rail]{display:grid;place-items:center;width:40px;min-width:0;height:40px;margin:0 auto;padding:0;border:0;border-radius:var(--vp-radius-xl);color:var(--vp-text-secondary)}\n"] }]
|
|
5015
5015
|
}], propDecorators: { label: [{
|
|
5016
5016
|
type: Input
|
|
@@ -5163,78 +5163,78 @@ class VpProductSwitcherComponent {
|
|
|
5163
5163
|
this.selected.emit(product);
|
|
5164
5164
|
}
|
|
5165
5165
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpProductSwitcherComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5166
|
-
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: `
|
|
5167
|
-
<button
|
|
5168
|
-
pButton
|
|
5169
|
-
type="button"
|
|
5170
|
-
text
|
|
5171
|
-
severity="secondary"
|
|
5172
|
-
data-vp-product-switcher
|
|
5173
|
-
icon="pi pi-th-large"
|
|
5174
|
-
iconPos="left"
|
|
5175
|
-
[label]="currentLabel"
|
|
5176
|
-
[attr.aria-label]="ariaLabel"
|
|
5177
|
-
[attr.aria-haspopup]="true"
|
|
5178
|
-
[attr.aria-controls]="panelId"
|
|
5179
|
-
(click)="panel.toggle($event)"></button>
|
|
5180
|
-
|
|
5181
|
-
<p-popover #panel [id]="panelId">
|
|
5182
|
-
<ul class="vp-product-switcher__list" [attr.aria-label]="title">
|
|
5183
|
-
@for (product of products; track product.id) {
|
|
5184
|
-
<li>
|
|
5185
|
-
<button
|
|
5186
|
-
type="button"
|
|
5187
|
-
class="vp-product-switcher__item"
|
|
5188
|
-
[attr.data-vp-product]="product.id"
|
|
5189
|
-
[attr.aria-current]="product.id === currentId ? 'page' : null"
|
|
5190
|
-
(click)="pick(product)">
|
|
5191
|
-
<span class="vp-product-switcher__name">{{ product.label }}</span>
|
|
5192
|
-
@if (product.description) {
|
|
5193
|
-
<span class="vp-product-switcher__desc">{{ product.description }}</span>
|
|
5194
|
-
}
|
|
5195
|
-
</button>
|
|
5196
|
-
</li>
|
|
5197
|
-
}
|
|
5198
|
-
</ul>
|
|
5199
|
-
</p-popover>
|
|
5166
|
+
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: `
|
|
5167
|
+
<button
|
|
5168
|
+
pButton
|
|
5169
|
+
type="button"
|
|
5170
|
+
text
|
|
5171
|
+
severity="secondary"
|
|
5172
|
+
data-vp-product-switcher
|
|
5173
|
+
icon="pi pi-th-large"
|
|
5174
|
+
iconPos="left"
|
|
5175
|
+
[label]="currentLabel"
|
|
5176
|
+
[attr.aria-label]="ariaLabel"
|
|
5177
|
+
[attr.aria-haspopup]="true"
|
|
5178
|
+
[attr.aria-controls]="panelId"
|
|
5179
|
+
(click)="panel.toggle($event)"></button>
|
|
5180
|
+
|
|
5181
|
+
<p-popover #panel [id]="panelId">
|
|
5182
|
+
<ul class="vp-product-switcher__list" [attr.aria-label]="title">
|
|
5183
|
+
@for (product of products; track product.id) {
|
|
5184
|
+
<li>
|
|
5185
|
+
<button
|
|
5186
|
+
type="button"
|
|
5187
|
+
class="vp-product-switcher__item"
|
|
5188
|
+
[attr.data-vp-product]="product.id"
|
|
5189
|
+
[attr.aria-current]="product.id === currentId ? 'page' : null"
|
|
5190
|
+
(click)="pick(product)">
|
|
5191
|
+
<span class="vp-product-switcher__name">{{ product.label }}</span>
|
|
5192
|
+
@if (product.description) {
|
|
5193
|
+
<span class="vp-product-switcher__desc">{{ product.description }}</span>
|
|
5194
|
+
}
|
|
5195
|
+
</button>
|
|
5196
|
+
</li>
|
|
5197
|
+
}
|
|
5198
|
+
</ul>
|
|
5199
|
+
</p-popover>
|
|
5200
5200
|
`, 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 }); }
|
|
5201
5201
|
}
|
|
5202
5202
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpProductSwitcherComponent, decorators: [{
|
|
5203
5203
|
type: Component,
|
|
5204
|
-
args: [{ selector: 'vp-product-switcher', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonModule, PopoverModule], template: `
|
|
5205
|
-
<button
|
|
5206
|
-
pButton
|
|
5207
|
-
type="button"
|
|
5208
|
-
text
|
|
5209
|
-
severity="secondary"
|
|
5210
|
-
data-vp-product-switcher
|
|
5211
|
-
icon="pi pi-th-large"
|
|
5212
|
-
iconPos="left"
|
|
5213
|
-
[label]="currentLabel"
|
|
5214
|
-
[attr.aria-label]="ariaLabel"
|
|
5215
|
-
[attr.aria-haspopup]="true"
|
|
5216
|
-
[attr.aria-controls]="panelId"
|
|
5217
|
-
(click)="panel.toggle($event)"></button>
|
|
5218
|
-
|
|
5219
|
-
<p-popover #panel [id]="panelId">
|
|
5220
|
-
<ul class="vp-product-switcher__list" [attr.aria-label]="title">
|
|
5221
|
-
@for (product of products; track product.id) {
|
|
5222
|
-
<li>
|
|
5223
|
-
<button
|
|
5224
|
-
type="button"
|
|
5225
|
-
class="vp-product-switcher__item"
|
|
5226
|
-
[attr.data-vp-product]="product.id"
|
|
5227
|
-
[attr.aria-current]="product.id === currentId ? 'page' : null"
|
|
5228
|
-
(click)="pick(product)">
|
|
5229
|
-
<span class="vp-product-switcher__name">{{ product.label }}</span>
|
|
5230
|
-
@if (product.description) {
|
|
5231
|
-
<span class="vp-product-switcher__desc">{{ product.description }}</span>
|
|
5232
|
-
}
|
|
5233
|
-
</button>
|
|
5234
|
-
</li>
|
|
5235
|
-
}
|
|
5236
|
-
</ul>
|
|
5237
|
-
</p-popover>
|
|
5204
|
+
args: [{ selector: 'vp-product-switcher', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonModule, PopoverModule], template: `
|
|
5205
|
+
<button
|
|
5206
|
+
pButton
|
|
5207
|
+
type="button"
|
|
5208
|
+
text
|
|
5209
|
+
severity="secondary"
|
|
5210
|
+
data-vp-product-switcher
|
|
5211
|
+
icon="pi pi-th-large"
|
|
5212
|
+
iconPos="left"
|
|
5213
|
+
[label]="currentLabel"
|
|
5214
|
+
[attr.aria-label]="ariaLabel"
|
|
5215
|
+
[attr.aria-haspopup]="true"
|
|
5216
|
+
[attr.aria-controls]="panelId"
|
|
5217
|
+
(click)="panel.toggle($event)"></button>
|
|
5218
|
+
|
|
5219
|
+
<p-popover #panel [id]="panelId">
|
|
5220
|
+
<ul class="vp-product-switcher__list" [attr.aria-label]="title">
|
|
5221
|
+
@for (product of products; track product.id) {
|
|
5222
|
+
<li>
|
|
5223
|
+
<button
|
|
5224
|
+
type="button"
|
|
5225
|
+
class="vp-product-switcher__item"
|
|
5226
|
+
[attr.data-vp-product]="product.id"
|
|
5227
|
+
[attr.aria-current]="product.id === currentId ? 'page' : null"
|
|
5228
|
+
(click)="pick(product)">
|
|
5229
|
+
<span class="vp-product-switcher__name">{{ product.label }}</span>
|
|
5230
|
+
@if (product.description) {
|
|
5231
|
+
<span class="vp-product-switcher__desc">{{ product.description }}</span>
|
|
5232
|
+
}
|
|
5233
|
+
</button>
|
|
5234
|
+
</li>
|
|
5235
|
+
}
|
|
5236
|
+
</ul>
|
|
5237
|
+
</p-popover>
|
|
5238
5238
|
`, 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"] }]
|
|
5239
5239
|
}], propDecorators: { products: [{
|
|
5240
5240
|
type: Input
|
|
@@ -7022,36 +7022,36 @@ class VpDrawerComponent {
|
|
|
7022
7022
|
target.focus();
|
|
7023
7023
|
}
|
|
7024
7024
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDrawerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7025
|
-
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: `
|
|
7026
|
-
<p-drawer
|
|
7027
|
-
[visible]="open"
|
|
7028
|
-
(visibleChange)="onVisibleChange($event)"
|
|
7029
|
-
[position]="position"
|
|
7030
|
-
[header]="title"
|
|
7031
|
-
[modal]="modal"
|
|
7032
|
-
[style]="{ width: width }"
|
|
7033
|
-
[ariaCloseLabel]="closeLabel"
|
|
7034
|
-
[styleClass]="panelClass"
|
|
7035
|
-
(onHide)="closed.emit()">
|
|
7036
|
-
<ng-content />
|
|
7037
|
-
</p-drawer>
|
|
7025
|
+
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: `
|
|
7026
|
+
<p-drawer
|
|
7027
|
+
[visible]="open"
|
|
7028
|
+
(visibleChange)="onVisibleChange($event)"
|
|
7029
|
+
[position]="position"
|
|
7030
|
+
[header]="title"
|
|
7031
|
+
[modal]="modal"
|
|
7032
|
+
[style]="{ width: width }"
|
|
7033
|
+
[ariaCloseLabel]="closeLabel"
|
|
7034
|
+
[styleClass]="panelClass"
|
|
7035
|
+
(onHide)="closed.emit()">
|
|
7036
|
+
<ng-content />
|
|
7037
|
+
</p-drawer>
|
|
7038
7038
|
`, 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 }); }
|
|
7039
7039
|
}
|
|
7040
7040
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDrawerComponent, decorators: [{
|
|
7041
7041
|
type: Component,
|
|
7042
|
-
args: [{ selector: 'vp-drawer', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [DrawerModule], template: `
|
|
7043
|
-
<p-drawer
|
|
7044
|
-
[visible]="open"
|
|
7045
|
-
(visibleChange)="onVisibleChange($event)"
|
|
7046
|
-
[position]="position"
|
|
7047
|
-
[header]="title"
|
|
7048
|
-
[modal]="modal"
|
|
7049
|
-
[style]="{ width: width }"
|
|
7050
|
-
[ariaCloseLabel]="closeLabel"
|
|
7051
|
-
[styleClass]="panelClass"
|
|
7052
|
-
(onHide)="closed.emit()">
|
|
7053
|
-
<ng-content />
|
|
7054
|
-
</p-drawer>
|
|
7042
|
+
args: [{ selector: 'vp-drawer', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [DrawerModule], template: `
|
|
7043
|
+
<p-drawer
|
|
7044
|
+
[visible]="open"
|
|
7045
|
+
(visibleChange)="onVisibleChange($event)"
|
|
7046
|
+
[position]="position"
|
|
7047
|
+
[header]="title"
|
|
7048
|
+
[modal]="modal"
|
|
7049
|
+
[style]="{ width: width }"
|
|
7050
|
+
[ariaCloseLabel]="closeLabel"
|
|
7051
|
+
[styleClass]="panelClass"
|
|
7052
|
+
(onHide)="closed.emit()">
|
|
7053
|
+
<ng-content />
|
|
7054
|
+
</p-drawer>
|
|
7055
7055
|
`, 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"] }]
|
|
7056
7056
|
}], propDecorators: { open: [{
|
|
7057
7057
|
type: Input
|
|
@@ -7303,52 +7303,52 @@ class VpFieldComponent {
|
|
|
7303
7303
|
this.cdr.markForCheck();
|
|
7304
7304
|
}
|
|
7305
7305
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7306
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpFieldComponent, isStandalone: true, selector: "vp-field", inputs: { label: "label", labelStyle: "labelStyle", hint: "hint", error: "error", required: "required" }, usesOnChanges: true, ngImport: i0, template: `
|
|
7307
|
-
<div class="vp-field">
|
|
7308
|
-
<label class="vp-field__label" [attr.for]="controlId" [attr.data-vp-label-style]="labelStyle">
|
|
7309
|
-
{{ label }}
|
|
7310
|
-
@if (required) {
|
|
7311
|
-
<span class="vp-field__required" data-vp-required aria-label="zorunlu alan">*</span>
|
|
7312
|
-
}
|
|
7313
|
-
</label>
|
|
7314
|
-
|
|
7315
|
-
<div class="vp-field__control">
|
|
7316
|
-
<ng-content />
|
|
7317
|
-
</div>
|
|
7318
|
-
|
|
7319
|
-
@if (hint) {
|
|
7320
|
-
<p class="vp-field__hint" data-vp-hint [id]="hintId">{{ hint }}</p>
|
|
7321
|
-
}
|
|
7322
|
-
|
|
7323
|
-
@if (error) {
|
|
7324
|
-
<p class="vp-field__error" data-vp-error role="alert" [id]="errorId">{{ error }}</p>
|
|
7325
|
-
}
|
|
7326
|
-
</div>
|
|
7306
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpFieldComponent, isStandalone: true, selector: "vp-field", inputs: { label: "label", labelStyle: "labelStyle", hint: "hint", error: "error", required: "required" }, usesOnChanges: true, ngImport: i0, template: `
|
|
7307
|
+
<div class="vp-field">
|
|
7308
|
+
<label class="vp-field__label" [attr.for]="controlId" [attr.data-vp-label-style]="labelStyle">
|
|
7309
|
+
{{ label }}
|
|
7310
|
+
@if (required) {
|
|
7311
|
+
<span class="vp-field__required" data-vp-required aria-label="zorunlu alan">*</span>
|
|
7312
|
+
}
|
|
7313
|
+
</label>
|
|
7314
|
+
|
|
7315
|
+
<div class="vp-field__control">
|
|
7316
|
+
<ng-content />
|
|
7317
|
+
</div>
|
|
7318
|
+
|
|
7319
|
+
@if (hint) {
|
|
7320
|
+
<p class="vp-field__hint" data-vp-hint [id]="hintId">{{ hint }}</p>
|
|
7321
|
+
}
|
|
7322
|
+
|
|
7323
|
+
@if (error) {
|
|
7324
|
+
<p class="vp-field__error" data-vp-error role="alert" [id]="errorId">{{ error }}</p>
|
|
7325
|
+
}
|
|
7326
|
+
</div>
|
|
7327
7327
|
`, 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__label[data-vp-label-style=caps]{color:var(--vp-text-muted);font-size:var(--vp-text-xs);font-weight:var(--vp-weight-normal);letter-spacing:.05em;text-transform:uppercase}.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 }); }
|
|
7328
7328
|
}
|
|
7329
7329
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpFieldComponent, decorators: [{
|
|
7330
7330
|
type: Component,
|
|
7331
|
-
args: [{ selector: 'vp-field', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
7332
|
-
<div class="vp-field">
|
|
7333
|
-
<label class="vp-field__label" [attr.for]="controlId" [attr.data-vp-label-style]="labelStyle">
|
|
7334
|
-
{{ label }}
|
|
7335
|
-
@if (required) {
|
|
7336
|
-
<span class="vp-field__required" data-vp-required aria-label="zorunlu alan">*</span>
|
|
7337
|
-
}
|
|
7338
|
-
</label>
|
|
7339
|
-
|
|
7340
|
-
<div class="vp-field__control">
|
|
7341
|
-
<ng-content />
|
|
7342
|
-
</div>
|
|
7343
|
-
|
|
7344
|
-
@if (hint) {
|
|
7345
|
-
<p class="vp-field__hint" data-vp-hint [id]="hintId">{{ hint }}</p>
|
|
7346
|
-
}
|
|
7347
|
-
|
|
7348
|
-
@if (error) {
|
|
7349
|
-
<p class="vp-field__error" data-vp-error role="alert" [id]="errorId">{{ error }}</p>
|
|
7350
|
-
}
|
|
7351
|
-
</div>
|
|
7331
|
+
args: [{ selector: 'vp-field', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
7332
|
+
<div class="vp-field">
|
|
7333
|
+
<label class="vp-field__label" [attr.for]="controlId" [attr.data-vp-label-style]="labelStyle">
|
|
7334
|
+
{{ label }}
|
|
7335
|
+
@if (required) {
|
|
7336
|
+
<span class="vp-field__required" data-vp-required aria-label="zorunlu alan">*</span>
|
|
7337
|
+
}
|
|
7338
|
+
</label>
|
|
7339
|
+
|
|
7340
|
+
<div class="vp-field__control">
|
|
7341
|
+
<ng-content />
|
|
7342
|
+
</div>
|
|
7343
|
+
|
|
7344
|
+
@if (hint) {
|
|
7345
|
+
<p class="vp-field__hint" data-vp-hint [id]="hintId">{{ hint }}</p>
|
|
7346
|
+
}
|
|
7347
|
+
|
|
7348
|
+
@if (error) {
|
|
7349
|
+
<p class="vp-field__error" data-vp-error role="alert" [id]="errorId">{{ error }}</p>
|
|
7350
|
+
}
|
|
7351
|
+
</div>
|
|
7352
7352
|
`, 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__label[data-vp-label-style=caps]{color:var(--vp-text-muted);font-size:var(--vp-text-xs);font-weight:var(--vp-weight-normal);letter-spacing:.05em;text-transform:uppercase}.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"] }]
|
|
7353
7353
|
}], propDecorators: { label: [{
|
|
7354
7354
|
type: Input,
|
|
@@ -9485,6 +9485,181 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
9485
9485
|
type: Input
|
|
9486
9486
|
}] } });
|
|
9487
9487
|
|
|
9488
|
+
const VIEW = { w: 320, h: 120, padL: 3, padR: 3, padT: 8, padB: 6 };
|
|
9489
|
+
/**
|
|
9490
|
+
* Kullanım alan grafiği — PRG-38 / design-system 003 (Claude Design `konsol-prototip.html`
|
|
9491
|
+
* "KULLANIM VE LİMİT" bloğu). Zaman serisi alanı + kesikli günlük-limit çizgisi + uç etiketi.
|
|
9492
|
+
*
|
|
9493
|
+
* Kurallar:
|
|
9494
|
+
* - Token renk (`--vp-brand` çizgi · `--vp-brand-subtle` alan · `--vp-sev-medium` kesikli limit);
|
|
9495
|
+
* ham renk yok. Renk tek başına anlam taşımaz — limit metni tüketiciden (`note`).
|
|
9496
|
+
* - DOM ölçümü YOK: viewBox tabanlı SVG (jsdom yerleşim ölçmez, tüketiciler zoneless).
|
|
9497
|
+
* - < 2 nokta → alan çizilmez, boş-durum placeholder; ölçemediğimiz seri "sıfır" değil.
|
|
9498
|
+
* - Limit çizgisi her zaman çizim sınırları içinde (clamp); veri üstünde/altında kalsa da taşmaz.
|
|
9499
|
+
* - Uç etiketi (`note`) HTML katmanda — SVG viewBox metni kırpmasın diye.
|
|
9500
|
+
*/
|
|
9501
|
+
class VpUsageChartComponent {
|
|
9502
|
+
constructor() {
|
|
9503
|
+
/** Zaman serisi değerleri (eşit aralıklı). < 2 ise boş durum. */
|
|
9504
|
+
this.points = [];
|
|
9505
|
+
/** Günlük/dönemsel limit; `null` → limit çizgisi yok. */
|
|
9506
|
+
this.limit = null;
|
|
9507
|
+
/** Uç etiketi ("6 gün sonra tavana vurur"); boşsa çizilmez. */
|
|
9508
|
+
this.note = '';
|
|
9509
|
+
/** Ekran okuyucu cümlesinin öznesi. */
|
|
9510
|
+
this.label = 'Kullanım';
|
|
9511
|
+
/** Limit biriminin kısa adı (aria cümlesinde). */
|
|
9512
|
+
this.unit = '';
|
|
9513
|
+
this.emptyLabel = 'Veri yok';
|
|
9514
|
+
this.view = VIEW;
|
|
9515
|
+
}
|
|
9516
|
+
get geo() { return VIEW; }
|
|
9517
|
+
get hasSeries() {
|
|
9518
|
+
return Array.isArray(this.points) && this.points.length >= 2;
|
|
9519
|
+
}
|
|
9520
|
+
get hasLimit() {
|
|
9521
|
+
return this.limit !== null && this.limit !== undefined && !Number.isNaN(this.limit);
|
|
9522
|
+
}
|
|
9523
|
+
get viewBox() {
|
|
9524
|
+
return `0 0 ${VIEW.w} ${VIEW.h}`;
|
|
9525
|
+
}
|
|
9526
|
+
get innerW() {
|
|
9527
|
+
return VIEW.w - VIEW.padL - VIEW.padR;
|
|
9528
|
+
}
|
|
9529
|
+
get innerH() {
|
|
9530
|
+
return VIEW.h - VIEW.padT - VIEW.padB;
|
|
9531
|
+
}
|
|
9532
|
+
get baseline() {
|
|
9533
|
+
return VIEW.padT + this.innerH;
|
|
9534
|
+
}
|
|
9535
|
+
/** Ölçek tavanı: seri + limit en büyüğü, %10 pay. */
|
|
9536
|
+
get yMax() {
|
|
9537
|
+
const top = Math.max(...this.points, this.hasLimit ? this.limit : 0);
|
|
9538
|
+
return top > 0 ? top * 1.1 : 1;
|
|
9539
|
+
}
|
|
9540
|
+
x(i) {
|
|
9541
|
+
const n = this.points.length;
|
|
9542
|
+
return VIEW.padL + (n <= 1 ? 0 : (i / (n - 1)) * this.innerW);
|
|
9543
|
+
}
|
|
9544
|
+
y(value) {
|
|
9545
|
+
const ratio = Math.min(1, Math.max(0, value / this.yMax));
|
|
9546
|
+
return Number((VIEW.padT + this.innerH - ratio * this.innerH).toFixed(2));
|
|
9547
|
+
}
|
|
9548
|
+
get linePath() {
|
|
9549
|
+
return this.points
|
|
9550
|
+
.map((v, i) => `${i === 0 ? 'M' : 'L'} ${this.x(i).toFixed(2)} ${this.y(v)}`)
|
|
9551
|
+
.join(' ');
|
|
9552
|
+
}
|
|
9553
|
+
get areaPath() {
|
|
9554
|
+
if (!this.hasSeries)
|
|
9555
|
+
return '';
|
|
9556
|
+
const first = this.x(0).toFixed(2);
|
|
9557
|
+
const last = this.x(this.points.length - 1).toFixed(2);
|
|
9558
|
+
const base = this.baseline.toFixed(2);
|
|
9559
|
+
return `M ${first} ${base} ${this.points
|
|
9560
|
+
.map((v, i) => `L ${this.x(i).toFixed(2)} ${this.y(v)}`)
|
|
9561
|
+
.join(' ')} L ${last} ${base} Z`;
|
|
9562
|
+
}
|
|
9563
|
+
get limitY() {
|
|
9564
|
+
// clamp: limit veri üstünde/altında da çizim sınırları içinde kalsın
|
|
9565
|
+
const raw = this.y(this.hasLimit ? this.limit : 0);
|
|
9566
|
+
return Number(Math.min(this.baseline, Math.max(VIEW.padT, raw)).toFixed(2));
|
|
9567
|
+
}
|
|
9568
|
+
get ariaLabel() {
|
|
9569
|
+
if (!this.hasSeries)
|
|
9570
|
+
return `${this.label}: ${this.emptyLabel}`;
|
|
9571
|
+
const current = Math.round(this.points[this.points.length - 1]);
|
|
9572
|
+
const unit = this.unit ? ` ${this.unit}` : '';
|
|
9573
|
+
const limit = this.hasLimit ? ` / ${Math.round(this.limit)}${unit}` : '';
|
|
9574
|
+
const note = this.note ? ` — ${this.note}` : '';
|
|
9575
|
+
return `${this.label}: ${current}${limit}${note}`;
|
|
9576
|
+
}
|
|
9577
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpUsageChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9578
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpUsageChartComponent, isStandalone: true, selector: "vp-usage-chart", inputs: { points: "points", limit: "limit", note: "note", label: "label", unit: "unit", emptyLabel: "emptyLabel" }, ngImport: i0, template: `
|
|
9579
|
+
<div
|
|
9580
|
+
class="vp-usage-chart"
|
|
9581
|
+
data-vp-usage-chart
|
|
9582
|
+
role="img"
|
|
9583
|
+
[attr.aria-label]="ariaLabel">
|
|
9584
|
+
@if (hasSeries) {
|
|
9585
|
+
<svg
|
|
9586
|
+
class="vp-usage-chart__svg"
|
|
9587
|
+
aria-hidden="true"
|
|
9588
|
+
focusable="false"
|
|
9589
|
+
preserveAspectRatio="none"
|
|
9590
|
+
[attr.viewBox]="viewBox">
|
|
9591
|
+
<path class="vp-usage-chart__area" data-vp-usage-area [attr.d]="areaPath" />
|
|
9592
|
+
<path class="vp-usage-chart__line" data-vp-usage-line fill="none" [attr.d]="linePath" />
|
|
9593
|
+
@if (hasLimit) {
|
|
9594
|
+
<line
|
|
9595
|
+
class="vp-usage-chart__limit"
|
|
9596
|
+
data-vp-usage-limit
|
|
9597
|
+
stroke-dasharray="4 4"
|
|
9598
|
+
[attr.x1]="geo.padL"
|
|
9599
|
+
[attr.x2]="view.w - geo.padR"
|
|
9600
|
+
[attr.y1]="limitY"
|
|
9601
|
+
[attr.y2]="limitY" />
|
|
9602
|
+
}
|
|
9603
|
+
</svg>
|
|
9604
|
+
@if (note) {
|
|
9605
|
+
<span class="vp-usage-chart__note" data-vp-usage-note>{{ note }}</span>
|
|
9606
|
+
}
|
|
9607
|
+
} @else {
|
|
9608
|
+
<span class="vp-usage-chart__empty" data-vp-usage-empty>{{ emptyLabel }}</span>
|
|
9609
|
+
}
|
|
9610
|
+
</div>
|
|
9611
|
+
`, isInline: true, styles: [":host{display:block}.vp-usage-chart{position:relative;width:100%;min-height:120px}.vp-usage-chart__svg{display:block;width:100%;height:160px}.vp-usage-chart__area{fill:var(--vp-brand-subtle);stroke:none}.vp-usage-chart__line{stroke:var(--vp-brand);stroke-width:2;vector-effect:non-scaling-stroke}.vp-usage-chart__limit{stroke:var(--vp-sev-medium);stroke-width:1;vector-effect:non-scaling-stroke}.vp-usage-chart__note{position:absolute;right:0;bottom:0;font-family:var(--vp-font-sans);font-size:var(--vp-text-xs);color:var(--vp-text-muted)}.vp-usage-chart__empty{display:grid;place-items:center;min-height:120px;font-family:var(--vp-font-sans);font-size:var(--vp-text-sm);color:var(--vp-text-muted)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9612
|
+
}
|
|
9613
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpUsageChartComponent, decorators: [{
|
|
9614
|
+
type: Component,
|
|
9615
|
+
args: [{ selector: 'vp-usage-chart', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
9616
|
+
<div
|
|
9617
|
+
class="vp-usage-chart"
|
|
9618
|
+
data-vp-usage-chart
|
|
9619
|
+
role="img"
|
|
9620
|
+
[attr.aria-label]="ariaLabel">
|
|
9621
|
+
@if (hasSeries) {
|
|
9622
|
+
<svg
|
|
9623
|
+
class="vp-usage-chart__svg"
|
|
9624
|
+
aria-hidden="true"
|
|
9625
|
+
focusable="false"
|
|
9626
|
+
preserveAspectRatio="none"
|
|
9627
|
+
[attr.viewBox]="viewBox">
|
|
9628
|
+
<path class="vp-usage-chart__area" data-vp-usage-area [attr.d]="areaPath" />
|
|
9629
|
+
<path class="vp-usage-chart__line" data-vp-usage-line fill="none" [attr.d]="linePath" />
|
|
9630
|
+
@if (hasLimit) {
|
|
9631
|
+
<line
|
|
9632
|
+
class="vp-usage-chart__limit"
|
|
9633
|
+
data-vp-usage-limit
|
|
9634
|
+
stroke-dasharray="4 4"
|
|
9635
|
+
[attr.x1]="geo.padL"
|
|
9636
|
+
[attr.x2]="view.w - geo.padR"
|
|
9637
|
+
[attr.y1]="limitY"
|
|
9638
|
+
[attr.y2]="limitY" />
|
|
9639
|
+
}
|
|
9640
|
+
</svg>
|
|
9641
|
+
@if (note) {
|
|
9642
|
+
<span class="vp-usage-chart__note" data-vp-usage-note>{{ note }}</span>
|
|
9643
|
+
}
|
|
9644
|
+
} @else {
|
|
9645
|
+
<span class="vp-usage-chart__empty" data-vp-usage-empty>{{ emptyLabel }}</span>
|
|
9646
|
+
}
|
|
9647
|
+
</div>
|
|
9648
|
+
`, styles: [":host{display:block}.vp-usage-chart{position:relative;width:100%;min-height:120px}.vp-usage-chart__svg{display:block;width:100%;height:160px}.vp-usage-chart__area{fill:var(--vp-brand-subtle);stroke:none}.vp-usage-chart__line{stroke:var(--vp-brand);stroke-width:2;vector-effect:non-scaling-stroke}.vp-usage-chart__limit{stroke:var(--vp-sev-medium);stroke-width:1;vector-effect:non-scaling-stroke}.vp-usage-chart__note{position:absolute;right:0;bottom:0;font-family:var(--vp-font-sans);font-size:var(--vp-text-xs);color:var(--vp-text-muted)}.vp-usage-chart__empty{display:grid;place-items:center;min-height:120px;font-family:var(--vp-font-sans);font-size:var(--vp-text-sm);color:var(--vp-text-muted)}\n"] }]
|
|
9649
|
+
}], propDecorators: { points: [{
|
|
9650
|
+
type: Input
|
|
9651
|
+
}], limit: [{
|
|
9652
|
+
type: Input
|
|
9653
|
+
}], note: [{
|
|
9654
|
+
type: Input
|
|
9655
|
+
}], label: [{
|
|
9656
|
+
type: Input
|
|
9657
|
+
}], unit: [{
|
|
9658
|
+
type: Input
|
|
9659
|
+
}], emptyLabel: [{
|
|
9660
|
+
type: Input
|
|
9661
|
+
}] } });
|
|
9662
|
+
|
|
9488
9663
|
/**
|
|
9489
9664
|
* Onay diyalogunu **uygulama** saglar.
|
|
9490
9665
|
*
|
|
@@ -11461,98 +11636,98 @@ class VpButtonComponent {
|
|
|
11461
11636
|
this.pressed = new EventEmitter();
|
|
11462
11637
|
}
|
|
11463
11638
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11464
|
-
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: `
|
|
11465
|
-
@if (routerLink !== null) {
|
|
11466
|
-
<a
|
|
11467
|
-
class="vp-button"
|
|
11468
|
-
[attr.data-variant]="variant"
|
|
11469
|
-
[attr.data-size]="size"
|
|
11470
|
-
[routerLink]="routerLink"
|
|
11471
|
-
[attr.aria-disabled]="disabled ? 'true' : null"
|
|
11472
|
-
[attr.title]="disabled ? disabledReason : null">
|
|
11473
|
-
<ng-container *ngTemplateOutlet="body" />
|
|
11474
|
-
</a>
|
|
11475
|
-
} @else if (href !== null) {
|
|
11476
|
-
<a
|
|
11477
|
-
class="vp-button"
|
|
11478
|
-
[attr.data-variant]="variant"
|
|
11479
|
-
[attr.data-size]="size"
|
|
11480
|
-
[href]="href"
|
|
11481
|
-
[attr.rel]="external ? 'noopener noreferrer' : null"
|
|
11482
|
-
[attr.target]="external ? '_blank' : null">
|
|
11483
|
-
<ng-container *ngTemplateOutlet="body" />
|
|
11484
|
-
</a>
|
|
11485
|
-
} @else {
|
|
11486
|
-
<button
|
|
11487
|
-
class="vp-button"
|
|
11488
|
-
[attr.data-variant]="variant"
|
|
11489
|
-
[attr.data-size]="size"
|
|
11490
|
-
[type]="type"
|
|
11491
|
-
[disabled]="disabled || loading"
|
|
11492
|
-
[attr.aria-busy]="loading ? 'true' : null"
|
|
11493
|
-
[attr.title]="disabled && disabledReason ? disabledReason : null"
|
|
11494
|
-
(click)="pressed.emit($event)">
|
|
11495
|
-
<ng-container *ngTemplateOutlet="body" />
|
|
11496
|
-
</button>
|
|
11497
|
-
}
|
|
11498
|
-
|
|
11499
|
-
<ng-template #body>
|
|
11500
|
-
@if (icon) {
|
|
11501
|
-
<svg class="vp-button__icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
11502
|
-
<use [attr.href]="'#vp-icon-' + icon"></use>
|
|
11503
|
-
</svg>
|
|
11504
|
-
}
|
|
11505
|
-
<span class="vp-button__label">{{ label }}</span>
|
|
11506
|
-
<ng-content />
|
|
11507
|
-
</ng-template>
|
|
11639
|
+
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: `
|
|
11640
|
+
@if (routerLink !== null) {
|
|
11641
|
+
<a
|
|
11642
|
+
class="vp-button"
|
|
11643
|
+
[attr.data-variant]="variant"
|
|
11644
|
+
[attr.data-size]="size"
|
|
11645
|
+
[routerLink]="routerLink"
|
|
11646
|
+
[attr.aria-disabled]="disabled ? 'true' : null"
|
|
11647
|
+
[attr.title]="disabled ? disabledReason : null">
|
|
11648
|
+
<ng-container *ngTemplateOutlet="body" />
|
|
11649
|
+
</a>
|
|
11650
|
+
} @else if (href !== null) {
|
|
11651
|
+
<a
|
|
11652
|
+
class="vp-button"
|
|
11653
|
+
[attr.data-variant]="variant"
|
|
11654
|
+
[attr.data-size]="size"
|
|
11655
|
+
[href]="href"
|
|
11656
|
+
[attr.rel]="external ? 'noopener noreferrer' : null"
|
|
11657
|
+
[attr.target]="external ? '_blank' : null">
|
|
11658
|
+
<ng-container *ngTemplateOutlet="body" />
|
|
11659
|
+
</a>
|
|
11660
|
+
} @else {
|
|
11661
|
+
<button
|
|
11662
|
+
class="vp-button"
|
|
11663
|
+
[attr.data-variant]="variant"
|
|
11664
|
+
[attr.data-size]="size"
|
|
11665
|
+
[type]="type"
|
|
11666
|
+
[disabled]="disabled || loading"
|
|
11667
|
+
[attr.aria-busy]="loading ? 'true' : null"
|
|
11668
|
+
[attr.title]="disabled && disabledReason ? disabledReason : null"
|
|
11669
|
+
(click)="pressed.emit($event)">
|
|
11670
|
+
<ng-container *ngTemplateOutlet="body" />
|
|
11671
|
+
</button>
|
|
11672
|
+
}
|
|
11673
|
+
|
|
11674
|
+
<ng-template #body>
|
|
11675
|
+
@if (icon) {
|
|
11676
|
+
<svg class="vp-button__icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
11677
|
+
<use [attr.href]="'#vp-icon-' + icon"></use>
|
|
11678
|
+
</svg>
|
|
11679
|
+
}
|
|
11680
|
+
<span class="vp-button__label">{{ label }}</span>
|
|
11681
|
+
<ng-content />
|
|
11682
|
+
</ng-template>
|
|
11508
11683
|
`, 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 }); }
|
|
11509
11684
|
}
|
|
11510
11685
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpButtonComponent, decorators: [{
|
|
11511
11686
|
type: Component,
|
|
11512
|
-
args: [{ selector: 'vp-button', standalone: true, imports: [NgTemplateOutlet, RouterLink], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
11513
|
-
@if (routerLink !== null) {
|
|
11514
|
-
<a
|
|
11515
|
-
class="vp-button"
|
|
11516
|
-
[attr.data-variant]="variant"
|
|
11517
|
-
[attr.data-size]="size"
|
|
11518
|
-
[routerLink]="routerLink"
|
|
11519
|
-
[attr.aria-disabled]="disabled ? 'true' : null"
|
|
11520
|
-
[attr.title]="disabled ? disabledReason : null">
|
|
11521
|
-
<ng-container *ngTemplateOutlet="body" />
|
|
11522
|
-
</a>
|
|
11523
|
-
} @else if (href !== null) {
|
|
11524
|
-
<a
|
|
11525
|
-
class="vp-button"
|
|
11526
|
-
[attr.data-variant]="variant"
|
|
11527
|
-
[attr.data-size]="size"
|
|
11528
|
-
[href]="href"
|
|
11529
|
-
[attr.rel]="external ? 'noopener noreferrer' : null"
|
|
11530
|
-
[attr.target]="external ? '_blank' : null">
|
|
11531
|
-
<ng-container *ngTemplateOutlet="body" />
|
|
11532
|
-
</a>
|
|
11533
|
-
} @else {
|
|
11534
|
-
<button
|
|
11535
|
-
class="vp-button"
|
|
11536
|
-
[attr.data-variant]="variant"
|
|
11537
|
-
[attr.data-size]="size"
|
|
11538
|
-
[type]="type"
|
|
11539
|
-
[disabled]="disabled || loading"
|
|
11540
|
-
[attr.aria-busy]="loading ? 'true' : null"
|
|
11541
|
-
[attr.title]="disabled && disabledReason ? disabledReason : null"
|
|
11542
|
-
(click)="pressed.emit($event)">
|
|
11543
|
-
<ng-container *ngTemplateOutlet="body" />
|
|
11544
|
-
</button>
|
|
11545
|
-
}
|
|
11546
|
-
|
|
11547
|
-
<ng-template #body>
|
|
11548
|
-
@if (icon) {
|
|
11549
|
-
<svg class="vp-button__icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
11550
|
-
<use [attr.href]="'#vp-icon-' + icon"></use>
|
|
11551
|
-
</svg>
|
|
11552
|
-
}
|
|
11553
|
-
<span class="vp-button__label">{{ label }}</span>
|
|
11554
|
-
<ng-content />
|
|
11555
|
-
</ng-template>
|
|
11687
|
+
args: [{ selector: 'vp-button', standalone: true, imports: [NgTemplateOutlet, RouterLink], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
11688
|
+
@if (routerLink !== null) {
|
|
11689
|
+
<a
|
|
11690
|
+
class="vp-button"
|
|
11691
|
+
[attr.data-variant]="variant"
|
|
11692
|
+
[attr.data-size]="size"
|
|
11693
|
+
[routerLink]="routerLink"
|
|
11694
|
+
[attr.aria-disabled]="disabled ? 'true' : null"
|
|
11695
|
+
[attr.title]="disabled ? disabledReason : null">
|
|
11696
|
+
<ng-container *ngTemplateOutlet="body" />
|
|
11697
|
+
</a>
|
|
11698
|
+
} @else if (href !== null) {
|
|
11699
|
+
<a
|
|
11700
|
+
class="vp-button"
|
|
11701
|
+
[attr.data-variant]="variant"
|
|
11702
|
+
[attr.data-size]="size"
|
|
11703
|
+
[href]="href"
|
|
11704
|
+
[attr.rel]="external ? 'noopener noreferrer' : null"
|
|
11705
|
+
[attr.target]="external ? '_blank' : null">
|
|
11706
|
+
<ng-container *ngTemplateOutlet="body" />
|
|
11707
|
+
</a>
|
|
11708
|
+
} @else {
|
|
11709
|
+
<button
|
|
11710
|
+
class="vp-button"
|
|
11711
|
+
[attr.data-variant]="variant"
|
|
11712
|
+
[attr.data-size]="size"
|
|
11713
|
+
[type]="type"
|
|
11714
|
+
[disabled]="disabled || loading"
|
|
11715
|
+
[attr.aria-busy]="loading ? 'true' : null"
|
|
11716
|
+
[attr.title]="disabled && disabledReason ? disabledReason : null"
|
|
11717
|
+
(click)="pressed.emit($event)">
|
|
11718
|
+
<ng-container *ngTemplateOutlet="body" />
|
|
11719
|
+
</button>
|
|
11720
|
+
}
|
|
11721
|
+
|
|
11722
|
+
<ng-template #body>
|
|
11723
|
+
@if (icon) {
|
|
11724
|
+
<svg class="vp-button__icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
|
|
11725
|
+
<use [attr.href]="'#vp-icon-' + icon"></use>
|
|
11726
|
+
</svg>
|
|
11727
|
+
}
|
|
11728
|
+
<span class="vp-button__label">{{ label }}</span>
|
|
11729
|
+
<ng-content />
|
|
11730
|
+
</ng-template>
|
|
11556
11731
|
`, 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"] }]
|
|
11557
11732
|
}], propDecorators: { label: [{
|
|
11558
11733
|
type: Input,
|
|
@@ -11587,5 +11762,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
11587
11762
|
* Generated bundle index. Do not edit.
|
|
11588
11763
|
*/
|
|
11589
11764
|
|
|
11590
|
-
export { CONVERSION_MOMENTS, MAX_CONVERSION_PROMPTS_PER_SESSION, TRIAL_ROUTE_MAP, UTF8_BOM, VP_ANON_ID_HEX_LENGTH, VP_ANON_TOKEN_PORT, VP_API_BASE_URLS, VP_APP_KEY, VP_APP_PROMO_DAYS, VP_APP_PROMO_ENV, VP_APP_PROMO_KEY, VP_AUTH_ANON_CHAIN_ORDER, VP_AUTH_CHAIN_ORDER, VP_AUTH_HEALTH_CONFIG, VP_AUTH_SESSION_PORT, VP_AUTH_TOKEN_PORT, VP_CAPTCHA_PORT, VP_CONSOLE_GUARD_ROUTES, VP_CSRF_PORT, VP_DARK_CLASS, VP_DEEP_HEALTH_CONFIG, VP_DEFAULT_RETRY_AFTER_SECONDS, VP_I18N_NAMESPACE, VP_ICON_SPRITE_ID, VP_ISLAND_LABELS, VP_LIGHT_CLASS, VP_MAINTENANCE_PORT, VP_NAVIGATOR_ONLINE, VP_OWNERSHIP_PORT, VP_QUOTA_CRITICAL, VP_QUOTA_PORT, VP_QUOTA_WARN, VP_REDIRECT_MAX_LENGTH, VP_REQUEST_CONTEXT_PORT, VP_SAVED_VIEW_STORE, VP_SCAN_RANGE_MAX_MONTHS, VP_SHARE_TOKEN_PORT, VP_STATE_VARIANTS, VP_TABLE_PREFS_STORE, VP_THEME_STORAGE_KEY, VP_TRACKING_CACHE_TTL_MS, VP_UNSAVED_CHANGES_CONFIRM, VirusisUiModule, VpAnonTokenInterceptor, VpAppKeyInterceptor, VpAppPromoComponent, VpAppStoreEntryComponent, VpAppealFormComponent, VpAuthTokenInterceptor, VpBannerComponent, VpBreadcrumbComponent, VpButtonComponent, VpCaptchaInterceptor, VpCommandPaletteComponent, VpConfirmComponent, VpConnectivityService, VpContextToolbarComponent, VpCsrfInterceptor, VpDangerZoneComponent, VpDataTableComponent, VpDeepHealthService, VpDetectionRowComponent, VpDialogComponent, VpDrawerComponent, VpEngineResultComponent, VpFieldComponent, VpGlobalLayersComponent, VpHashValueComponent, VpHttpIdsInterceptor, VpIconSpriteService, VpIocListComponent, VpKpiCardComponent, VpMaintenanceInterceptor, VpMenuButtonComponent, VpNotificationIslandComponent, VpNotificationTriggerComponent, VpPageHeaderComponent, VpProductSwitcherComponent, VpRateLimitInterceptor, VpRateLimitService, VpRiskScoreComponent, VpSaveBarComponent, VpScanTimelineComponent, VpScoreBreakdownComponent, VpScoreRingComponent, VpSearchTriggerComponent, VpSettingsShellComponent, VpSeverityBadgeComponent, VpShareTokenInterceptor, VpShellComponent, VpSidebarComponent, VpSidebarToggleComponent, VpSkipLinkComponent, VpStateComponent, VpThemeControlComponent, VpThemeService, VpToastComponent, VpToastService, VpTopbarComponent, VpUserMenuComponent, VpVerdictComponent, VpWithCredentialsInterceptor, checkBoth, collectRxBindings, conversionOfferFor, createFocusTrap, createLocalStoragePrefsStore, createLocalStorageViewStore, createScanAnnouncer, createTabSync, currentOrigin, defaultConditionDescriber, defineStaticMenu, findEmptyValues, findMissingKeys, findView, flattenKeys, focusableElements, formatCountdown, formatParityReport, isConditionMet, isPartialFailure, isSameOrigin, isUpStatus, mergeStageUpdate, messageFor, nextPrompt, provideVirusisApiClient, provideVpAuthAnon, provideVpAuthCore, provideVpConsoleGuards, reconcileColumnOrder, registerUnsavedChangesPrompt, removeView, resolveMenuConditions, resolveTrialRedirect, rxServiceKeyOf, shouldSurface, toCsv, toDeepState, toMenuItems, unmatchedRxClasses, upsertView, validateStaticMenu, validateVpRedirectUri, validateVpScanDateRange, verdictFor, visibleColumns, vpAnonIdFrom, vpAuthChainSlotOf, vpAuthGuard, vpAuthHealthGuard, vpAutoDismissMs, vpDeviceFingerprint, vpDeviceRawData, vpEnsureGuid, vpIsIosSafari, vpIslandIsCritical, vpKey, vpOwnershipGuard, vpParseRetryAfter, vpQuotaGuard, vpResolveTrackingId, vpStoreUrlFor, vpUnsavedChangesGuard };
|
|
11765
|
+
export { CONVERSION_MOMENTS, MAX_CONVERSION_PROMPTS_PER_SESSION, TRIAL_ROUTE_MAP, UTF8_BOM, VP_ANON_ID_HEX_LENGTH, VP_ANON_TOKEN_PORT, VP_API_BASE_URLS, VP_APP_KEY, VP_APP_PROMO_DAYS, VP_APP_PROMO_ENV, VP_APP_PROMO_KEY, VP_AUTH_ANON_CHAIN_ORDER, VP_AUTH_CHAIN_ORDER, VP_AUTH_HEALTH_CONFIG, VP_AUTH_SESSION_PORT, VP_AUTH_TOKEN_PORT, VP_CAPTCHA_PORT, VP_CONSOLE_GUARD_ROUTES, VP_CSRF_PORT, VP_DARK_CLASS, VP_DEEP_HEALTH_CONFIG, VP_DEFAULT_RETRY_AFTER_SECONDS, VP_I18N_NAMESPACE, VP_ICON_SPRITE_ID, VP_ISLAND_LABELS, VP_LIGHT_CLASS, VP_MAINTENANCE_PORT, VP_NAVIGATOR_ONLINE, VP_OWNERSHIP_PORT, VP_QUOTA_CRITICAL, VP_QUOTA_PORT, VP_QUOTA_WARN, VP_REDIRECT_MAX_LENGTH, VP_REQUEST_CONTEXT_PORT, VP_SAVED_VIEW_STORE, VP_SCAN_RANGE_MAX_MONTHS, VP_SHARE_TOKEN_PORT, VP_STATE_VARIANTS, VP_TABLE_PREFS_STORE, VP_THEME_STORAGE_KEY, VP_TRACKING_CACHE_TTL_MS, VP_UNSAVED_CHANGES_CONFIRM, VirusisUiModule, VpAnonTokenInterceptor, VpAppKeyInterceptor, VpAppPromoComponent, VpAppStoreEntryComponent, VpAppealFormComponent, VpAuthTokenInterceptor, VpBannerComponent, VpBreadcrumbComponent, VpButtonComponent, VpCaptchaInterceptor, VpCommandPaletteComponent, VpConfirmComponent, VpConnectivityService, VpContextToolbarComponent, VpCsrfInterceptor, VpDangerZoneComponent, VpDataTableComponent, VpDeepHealthService, VpDetectionRowComponent, VpDialogComponent, VpDrawerComponent, VpEngineResultComponent, VpFieldComponent, VpGlobalLayersComponent, VpHashValueComponent, VpHttpIdsInterceptor, VpIconSpriteService, VpIocListComponent, VpKpiCardComponent, VpMaintenanceInterceptor, VpMenuButtonComponent, VpNotificationIslandComponent, VpNotificationTriggerComponent, VpPageHeaderComponent, VpProductSwitcherComponent, VpRateLimitInterceptor, VpRateLimitService, VpRiskScoreComponent, VpSaveBarComponent, VpScanTimelineComponent, VpScoreBreakdownComponent, VpScoreRingComponent, VpSearchTriggerComponent, VpSettingsShellComponent, VpSeverityBadgeComponent, VpShareTokenInterceptor, VpShellComponent, VpSidebarComponent, VpSidebarToggleComponent, VpSkipLinkComponent, VpStateComponent, VpThemeControlComponent, VpThemeService, VpToastComponent, VpToastService, VpTopbarComponent, VpUsageChartComponent, VpUserMenuComponent, VpVerdictComponent, VpWithCredentialsInterceptor, checkBoth, collectRxBindings, conversionOfferFor, createFocusTrap, createLocalStoragePrefsStore, createLocalStorageViewStore, createScanAnnouncer, createTabSync, currentOrigin, defaultConditionDescriber, defineStaticMenu, findEmptyValues, findMissingKeys, findView, flattenKeys, focusableElements, formatCountdown, formatParityReport, isConditionMet, isPartialFailure, isSameOrigin, isUpStatus, mergeStageUpdate, messageFor, nextPrompt, provideVirusisApiClient, provideVpAuthAnon, provideVpAuthCore, provideVpConsoleGuards, reconcileColumnOrder, registerUnsavedChangesPrompt, removeView, resolveMenuConditions, resolveTrialRedirect, rxServiceKeyOf, shouldSurface, toCsv, toDeepState, toMenuItems, unmatchedRxClasses, upsertView, validateStaticMenu, validateVpRedirectUri, validateVpScanDateRange, verdictFor, visibleColumns, vpAnonIdFrom, vpAuthChainSlotOf, vpAuthGuard, vpAuthHealthGuard, vpAutoDismissMs, vpDeviceFingerprint, vpDeviceRawData, vpEnsureGuid, vpIsIosSafari, vpIslandIsCritical, vpKey, vpOwnershipGuard, vpParseRetryAfter, vpQuotaGuard, vpResolveTrackingId, vpStoreUrlFor, vpUnsavedChangesGuard };
|
|
11591
11766
|
//# sourceMappingURL=virusis-angular-ui.mjs.map
|