@virusis/angular-ui 0.1.17 → 0.2.1

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.
@@ -1,7 +1,8 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, Injectable, EventEmitter, isDevMode, Output, Input, ChangeDetectionStrategy, Component, PLATFORM_ID, signal, DestroyRef, afterNextRender, ViewChild, HostListener, InjectionToken, ElementRef, ChangeDetectorRef, NgModule, Inject, computed } from '@angular/core';
2
+ import { inject, Injectable, EventEmitter, isDevMode, Output, Input, ChangeDetectionStrategy, Component, PLATFORM_ID, signal, DestroyRef, afterNextRender, ViewChild, HostListener, InjectionToken, ChangeDetectorRef, ElementRef, NgModule, Inject, computed } from '@angular/core';
3
3
  import { DOCUMENT, isPlatformBrowser, NgTemplateOutlet } from '@angular/common';
4
4
  import { buildSprite } from '@virusis/icon-set';
5
+ import { Router, NavigationEnd, RouterLink } from '@angular/router';
5
6
  import * as i1 from 'primeng/button';
6
7
  import { ButtonModule } from 'primeng/button';
7
8
  import * as i2 from 'primeng/tooltip';
@@ -34,7 +35,6 @@ import { DrawerModule } from 'primeng/drawer';
34
35
  import { isObservable, of, tap, catchError, throwError, map, timeout, Observable } from 'rxjs';
35
36
  import * as i1$4 from '@angular/common/http';
36
37
  import { HttpResponse, HTTP_INTERCEPTORS, HttpClient } from '@angular/common/http';
37
- import { Router, RouterLink } from '@angular/router';
38
38
 
39
39
  /** Gomulen sprite dugumunun id'si — ikinci kopyayi engelleyen tek isaret. */
40
40
  const VP_ICON_SPRITE_ID = 'vp-icon-sprite';
@@ -1009,6 +1009,17 @@ class VpShellComponent {
1009
1009
  * AYNI olmali. Ikisinin varsayilani da `'vp-sidebar'`.
1010
1010
  */
1011
1011
  this.sidebarId = 'vp-sidebar';
1012
+ /**
1013
+ * Yerlesim — paket 28 (2026-09-16).
1014
+ *
1015
+ * `topbar` (varsayilan, geriye uyum): ust cubuk + kenar cubugu.
1016
+ * `sidebar`: Claude Design prototip kabugu — dort konsol prototipi ayni. Genis ekranda ust cubuk yok; marka ve
1017
+ * araclar `[sidebarHead]`, kirinti `[crumbs]`, hesap kutusu `[sidebarFootEnd]` yuvasinda. Dar ekranda ust cubuk
1018
+ * yalniz cekmece dugmesi + `[topbar]` (marka).
1019
+ *
1020
+ * ⚠️ Varsayilan degismedi: bes konsol ayni anda kirilmasin diye tuketici gecisi tek tek.
1021
+ */
1022
+ this.layout = 'topbar';
1012
1023
  /**
1013
1024
  * Dar ekranda kenar cubugu overlay olarak aciliyor; kapatma isteği disari
1014
1025
  * bildiriliyor.
@@ -1125,353 +1136,387 @@ class VpShellComponent {
1125
1136
  });
1126
1137
  }
1127
1138
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1128
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpShellComponent, isStandalone: true, selector: "vp-shell", inputs: { sidebarId: "sidebarId", menuMode: "menuMode", quota: "quota", languages: "languages", language: "language", languageLabel: "languageLabel", menuOpenLabel: "menuOpenLabel", menuCloseLabel: "menuCloseLabel", collapsed: "collapsed", skipLabel: "skipLabel" }, outputs: { collapsedChange: "collapsedChange", languageChange: "languageChange" }, host: { listeners: { "document:keydown.escape": "onEscape()" } }, viewQueries: [{ propertyName: "sidebarRef", first: true, predicate: ["sidebar"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
1129
- <!-- Atlama baglantisi DOM'da ILK odaklanabilir oge olmali.
1130
- Klavye kullanicisi her sayfada menuyu bastan gecmek zorunda kalmasin. -->
1131
- <a class="vp-skip" data-vp-skip href="#vp-main">{{ skipLabel }}</a>
1132
-
1133
- <header class="vp-shell__topbar">
1134
- <!--
1135
- 🔴 Cekmece tetikleyicisi KABUGUN kendi ogesi, uygulamanin degil.
1136
- Olculdu (2026-09-08): dar ekranda kenar cubugu ekran disinda
1137
- bekliyordu ve onu geri getirecek gorunur bir denetim yoktu —
1138
- vp-sidebar-toggle uygulamanin ust cubuguna KOYULURSA vardi, ve
1139
- iki konsol onu koymamisti. Menuye ulasmanin tek yolu, kabugun
1140
- garanti ettigi bir dugme olmali.
1141
-
1142
- Yalniz overlay kipinde ciziliyor: genis ekranda menu zaten akista
1143
- ve ikinci bir daraltma denetimi iki ayri kip demek olurdu.
1144
- -->
1145
- @if (overlay()) {
1146
- <button
1147
- type="button"
1148
- class="vp-shell__drawer-toggle"
1149
- data-vp-drawer-toggle
1150
- [attr.aria-controls]="sidebarId"
1151
- [attr.aria-expanded]="!collapsed"
1152
- [attr.aria-label]="collapsed ? menuOpenLabel : menuCloseLabel"
1153
- (click)="toggleDrawer()">
1154
- <span class="vp-shell__burger" aria-hidden="true"></span>
1155
- </button>
1156
- }
1157
- <ng-content select="[topbar]" />
1158
- </header>
1159
-
1160
- <div class="vp-shell__body">
1161
- <!--
1162
- id ZORUNLU: vp-sidebar-toggle bunu aria-controls ile isaret
1163
- ediyor. Olculdu (2026-08-27): dugme eklendiginde bu id yoktu ve
1164
- aria-controls olmayan bir bolgeyi gosteriyordu — ekran okuyucu
1165
- icin varmis gibi gorunen, gercekte olmayan bir baglanti.
1166
- -->
1167
- <aside
1168
- #sidebar
1169
- [id]="sidebarId"
1170
- class="vp-shell__sidebar"
1171
- [attr.data-collapsed]="collapsed || null"
1172
- [attr.data-overlay]="overlay() || null"
1173
- [attr.data-vp-drawer]="overlay() ? (collapsed ? 'closed' : 'open') : null"
1174
- [attr.inert]="overlay() && collapsed ? '' : null">
1175
- <!--
1176
- Menu kendi kaydirma kutusunda: kota ve dil kenar cubugunun ALTINA
1177
- sabitleniyor. Ayni kutuda olsalardi uzun menude ekrandan cikarlardi
1178
- ve kullanici kotayi gormek icin menuyu sonuna kadar kaydirirdi.
1179
- -->
1180
- <div class="vp-shell__sidebar-scroll">
1181
- <ng-content select="[sidebar]" />
1182
- </div>
1183
-
1184
- <!--
1185
- Ayak HER ZAMAN var, bossa CSS ile gizli (:empty). Tuketici yuvasi [sidebarFoot]
1186
- (2026-09-13): mobil uygulama girisi gibi maddeler once, kota ve dil sonra.
1187
- Olculdu: yuva yokken giris [sidebar] kutusuna girip uzun menude ekrandan cikiyordu.
1188
- -->
1189
- <div class="vp-shell__sidebar-foot">
1190
- <ng-content select="[sidebarFoot]" />
1191
- @if (quota) {
1192
- <!--
1193
- B1-K2: kota gostergesi KABUGUN parcasi, ayri bir bilesen degil.
1194
- Kenar cubugunun alti kabugun kendi alani ve ray kipinde de
1195
- kabugun kuralina uyuyor.
1196
-
1197
- Esik tek yerde (VP_QUOTA_WARN / VP_QUOTA_CRITICAL): ekran
1198
- basina esik tanimlamak, iki ekranda iki farkli "dolmak uzere"
1199
- demektir.
1200
- -->
1201
- <div
1202
- class="vp-shell__quota"
1203
- data-vp-quota
1204
- [attr.data-vp-quota-level]="quotaLevel"
1205
- [attr.data-vp-quota-compact]="collapsed ? 'true' : null"
1206
- [attr.title]="collapsed ? quotaText : null">
1207
- <div class="vp-shell__quota-head">
1208
- <span class="vp-shell__quota-label">{{ quota.label }}</span>
1209
- <span class="vp-shell__quota-value">{{ quotaText }}</span>
1210
- </div>
1211
- <!--
1212
- Deger yalniz RENKLE anlatilmiyor: role=progressbar ve
1213
- aria-valuenow ile de duyuruluyor. Renk korfarki olan bir
1214
- kullanici icin dolu cubuk ile bos cubuk ayni gorunur.
1215
- -->
1216
- <div
1217
- class="vp-shell__quota-bar"
1218
- role="progressbar"
1219
- aria-valuemin="0"
1220
- aria-valuemax="100"
1221
- [attr.aria-valuenow]="quotaPercent"
1222
- [attr.aria-valuetext]="quotaText"
1223
- [attr.aria-label]="quota.label">
1224
- @if (quotaSegments.length) {
1225
- @for (segment of quotaSegments; track segment.label) {
1226
- <span
1227
- class="vp-shell__quota-fill vp-shell__quota-fill--segment"
1228
- data-vp-quota-segment
1229
- [attr.data-vp-quota-segment-label]="segment.label"
1230
- [attr.title]="segment.title"
1231
- [style.inline-size.%]="segment.percent"
1232
- [style.background]="segment.color"></span>
1233
- }
1234
- } @else {
1235
- <span class="vp-shell__quota-fill" [style.inline-size.%]="quotaPercent"></span>
1236
- }
1237
- </div>
1238
- @if (quota.hint && !collapsed) {
1239
- <p class="vp-shell__quota-hint">{{ quota.hint }}</p>
1240
- }
1241
- </div>
1242
- }
1243
-
1244
- @if (languages.length) {
1245
- <!--
1246
- B1-K3: dil DENETIMI kabukta, MANTIK @virusis/i18n'de.
1247
- Kabuk secimi gosterip olayi yayiyor; cozumleme, kalicilik ve
1248
- ?lang= -> kayit -> tarayici sirasi kabugun isi DEGIL. Kabuk
1249
- document.lang yazarsa dil mantigi iki yere bolunur.
1250
- -->
1251
- <div class="vp-shell__lang" data-vp-lang [attr.role]="'group'" [attr.aria-label]="languageLabel">
1252
- @for (option of languages; track option.code) {
1253
- <button
1254
- type="button"
1255
- class="vp-shell__lang-option"
1256
- data-vp-lang-option
1257
- [attr.data-vp-lang-code]="option.code"
1258
- [attr.aria-pressed]="option.code === language"
1259
- [attr.title]="option.label"
1260
- (click)="languageChange.emit(option.code)">
1261
- {{ collapsed ? option.code.toUpperCase() : option.label }}
1262
- </button>
1263
- }
1264
- </div>
1265
- }
1266
- </div>
1267
- </aside>
1268
-
1269
- @if (overlay() && !collapsed) {
1270
- <!--
1271
- 🔴 Maske YALNIZ dar ekranda ve menu ACIKKEN var.
1272
- Genis ekranda hic cizilmiyor: gorunmez bir katman, uzerindeki
1273
- tiklamalari sessizce yutardi.
1274
-
1275
- ⚠️ button degil div: ekran okuyucu icin ikinci bir "kapat"
1276
- duragi olusturmuyor — kapatmanin erisilebilir yolu ust cubuktaki
1277
- vp-sidebar-toggle dugmesi. Maske yalniz isaretleme kolayligi.
1278
- -->
1279
- <div
1280
- class="vp-shell__mask"
1281
- data-vp-shell-mask
1282
- data-vp-scrim
1283
- aria-hidden="true"
1284
- (click)="collapsedChange.emit(true)"></div>
1285
- }
1286
-
1287
- <main id="vp-main" class="vp-shell__main" tabindex="-1">
1288
- <ng-content />
1289
- </main>
1290
- </div>
1291
-
1292
- <!--
1293
- Alt bilgi ana icerigin DISINDA. Varsayilan yuvaya konsaydi footer
1294
- main ICINDE kalirdi ve HTML kurallarina gore main icindeki footer bir
1295
- contentinfo yer isareti degildir - isaret sessizce kaybolurdu.
1296
- -->
1297
- <ng-content select="[footer]" />
1298
- `, 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}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
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
+ `, 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 }); }
1299
1326
  }
1300
1327
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpShellComponent, decorators: [{
1301
1328
  type: Component,
1302
- args: [{ selector: 'vp-shell', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
1303
- <!-- Atlama baglantisi DOM'da ILK odaklanabilir oge olmali.
1304
- Klavye kullanicisi her sayfada menuyu bastan gecmek zorunda kalmasin. -->
1305
- <a class="vp-skip" data-vp-skip href="#vp-main">{{ skipLabel }}</a>
1306
-
1307
- <header class="vp-shell__topbar">
1308
- <!--
1309
- 🔴 Cekmece tetikleyicisi KABUGUN kendi ogesi, uygulamanin degil.
1310
- Olculdu (2026-09-08): dar ekranda kenar cubugu ekran disinda
1311
- bekliyordu ve onu geri getirecek gorunur bir denetim yoktu —
1312
- vp-sidebar-toggle uygulamanin ust cubuguna KOYULURSA vardi, ve
1313
- iki konsol onu koymamisti. Menuye ulasmanin tek yolu, kabugun
1314
- garanti ettigi bir dugme olmali.
1315
-
1316
- Yalniz overlay kipinde ciziliyor: genis ekranda menu zaten akista
1317
- ve ikinci bir daraltma denetimi iki ayri kip demek olurdu.
1318
- -->
1319
- @if (overlay()) {
1320
- <button
1321
- type="button"
1322
- class="vp-shell__drawer-toggle"
1323
- data-vp-drawer-toggle
1324
- [attr.aria-controls]="sidebarId"
1325
- [attr.aria-expanded]="!collapsed"
1326
- [attr.aria-label]="collapsed ? menuOpenLabel : menuCloseLabel"
1327
- (click)="toggleDrawer()">
1328
- <span class="vp-shell__burger" aria-hidden="true"></span>
1329
- </button>
1330
- }
1331
- <ng-content select="[topbar]" />
1332
- </header>
1333
-
1334
- <div class="vp-shell__body">
1335
- <!--
1336
- id ZORUNLU: vp-sidebar-toggle bunu aria-controls ile isaret
1337
- ediyor. Olculdu (2026-08-27): dugme eklendiginde bu id yoktu ve
1338
- aria-controls olmayan bir bolgeyi gosteriyordu — ekran okuyucu
1339
- icin varmis gibi gorunen, gercekte olmayan bir baglanti.
1340
- -->
1341
- <aside
1342
- #sidebar
1343
- [id]="sidebarId"
1344
- class="vp-shell__sidebar"
1345
- [attr.data-collapsed]="collapsed || null"
1346
- [attr.data-overlay]="overlay() || null"
1347
- [attr.data-vp-drawer]="overlay() ? (collapsed ? 'closed' : 'open') : null"
1348
- [attr.inert]="overlay() && collapsed ? '' : null">
1349
- <!--
1350
- Menu kendi kaydirma kutusunda: kota ve dil kenar cubugunun ALTINA
1351
- sabitleniyor. Ayni kutuda olsalardi uzun menude ekrandan cikarlardi
1352
- ve kullanici kotayi gormek icin menuyu sonuna kadar kaydirirdi.
1353
- -->
1354
- <div class="vp-shell__sidebar-scroll">
1355
- <ng-content select="[sidebar]" />
1356
- </div>
1357
-
1358
- <!--
1359
- Ayak HER ZAMAN var, bossa CSS ile gizli (:empty). Tuketici yuvasi [sidebarFoot]
1360
- (2026-09-13): mobil uygulama girisi gibi maddeler once, kota ve dil sonra.
1361
- Olculdu: yuva yokken giris [sidebar] kutusuna girip uzun menude ekrandan cikiyordu.
1362
- -->
1363
- <div class="vp-shell__sidebar-foot">
1364
- <ng-content select="[sidebarFoot]" />
1365
- @if (quota) {
1366
- <!--
1367
- B1-K2: kota gostergesi KABUGUN parcasi, ayri bir bilesen degil.
1368
- Kenar cubugunun alti kabugun kendi alani ve ray kipinde de
1369
- kabugun kuralina uyuyor.
1370
-
1371
- Esik tek yerde (VP_QUOTA_WARN / VP_QUOTA_CRITICAL): ekran
1372
- basina esik tanimlamak, iki ekranda iki farkli "dolmak uzere"
1373
- demektir.
1374
- -->
1375
- <div
1376
- class="vp-shell__quota"
1377
- data-vp-quota
1378
- [attr.data-vp-quota-level]="quotaLevel"
1379
- [attr.data-vp-quota-compact]="collapsed ? 'true' : null"
1380
- [attr.title]="collapsed ? quotaText : null">
1381
- <div class="vp-shell__quota-head">
1382
- <span class="vp-shell__quota-label">{{ quota.label }}</span>
1383
- <span class="vp-shell__quota-value">{{ quotaText }}</span>
1384
- </div>
1385
- <!--
1386
- Deger yalniz RENKLE anlatilmiyor: role=progressbar ve
1387
- aria-valuenow ile de duyuruluyor. Renk korfarki olan bir
1388
- kullanici icin dolu cubuk ile bos cubuk ayni gorunur.
1389
- -->
1390
- <div
1391
- class="vp-shell__quota-bar"
1392
- role="progressbar"
1393
- aria-valuemin="0"
1394
- aria-valuemax="100"
1395
- [attr.aria-valuenow]="quotaPercent"
1396
- [attr.aria-valuetext]="quotaText"
1397
- [attr.aria-label]="quota.label">
1398
- @if (quotaSegments.length) {
1399
- @for (segment of quotaSegments; track segment.label) {
1400
- <span
1401
- class="vp-shell__quota-fill vp-shell__quota-fill--segment"
1402
- data-vp-quota-segment
1403
- [attr.data-vp-quota-segment-label]="segment.label"
1404
- [attr.title]="segment.title"
1405
- [style.inline-size.%]="segment.percent"
1406
- [style.background]="segment.color"></span>
1407
- }
1408
- } @else {
1409
- <span class="vp-shell__quota-fill" [style.inline-size.%]="quotaPercent"></span>
1410
- }
1411
- </div>
1412
- @if (quota.hint && !collapsed) {
1413
- <p class="vp-shell__quota-hint">{{ quota.hint }}</p>
1414
- }
1415
- </div>
1416
- }
1417
-
1418
- @if (languages.length) {
1419
- <!--
1420
- B1-K3: dil DENETIMI kabukta, MANTIK @virusis/i18n'de.
1421
- Kabuk secimi gosterip olayi yayiyor; cozumleme, kalicilik ve
1422
- ?lang= -> kayit -> tarayici sirasi kabugun isi DEGIL. Kabuk
1423
- document.lang yazarsa dil mantigi iki yere bolunur.
1424
- -->
1425
- <div class="vp-shell__lang" data-vp-lang [attr.role]="'group'" [attr.aria-label]="languageLabel">
1426
- @for (option of languages; track option.code) {
1427
- <button
1428
- type="button"
1429
- class="vp-shell__lang-option"
1430
- data-vp-lang-option
1431
- [attr.data-vp-lang-code]="option.code"
1432
- [attr.aria-pressed]="option.code === language"
1433
- [attr.title]="option.label"
1434
- (click)="languageChange.emit(option.code)">
1435
- {{ collapsed ? option.code.toUpperCase() : option.label }}
1436
- </button>
1437
- }
1438
- </div>
1439
- }
1440
- </div>
1441
- </aside>
1442
-
1443
- @if (overlay() && !collapsed) {
1444
- <!--
1445
- 🔴 Maske YALNIZ dar ekranda ve menu ACIKKEN var.
1446
- Genis ekranda hic cizilmiyor: gorunmez bir katman, uzerindeki
1447
- tiklamalari sessizce yutardi.
1448
-
1449
- ⚠️ button degil div: ekran okuyucu icin ikinci bir "kapat"
1450
- duragi olusturmuyor — kapatmanin erisilebilir yolu ust cubuktaki
1451
- vp-sidebar-toggle dugmesi. Maske yalniz isaretleme kolayligi.
1452
- -->
1453
- <div
1454
- class="vp-shell__mask"
1455
- data-vp-shell-mask
1456
- data-vp-scrim
1457
- aria-hidden="true"
1458
- (click)="collapsedChange.emit(true)"></div>
1459
- }
1460
-
1461
- <main id="vp-main" class="vp-shell__main" tabindex="-1">
1462
- <ng-content />
1463
- </main>
1464
- </div>
1465
-
1466
- <!--
1467
- Alt bilgi ana icerigin DISINDA. Varsayilan yuvaya konsaydi footer
1468
- main ICINDE kalirdi ve HTML kurallarina gore main icindeki footer bir
1469
- contentinfo yer isareti degildir - isaret sessizce kaybolurdu.
1470
- -->
1471
- <ng-content select="[footer]" />
1472
- `, 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}}\n"] }]
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
+ `, 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"] }]
1473
1516
  }], ctorParameters: () => [], propDecorators: { sidebarId: [{
1474
1517
  type: Input
1518
+ }], layout: [{
1519
+ type: Input
1475
1520
  }], menuMode: [{
1476
1521
  type: Input
1477
1522
  }], collapsedChange: [{
@@ -1622,7 +1667,7 @@ class VpPageHeaderComponent {
1622
1667
  <ng-content select="[tabs]" />
1623
1668
  </div>
1624
1669
  </div>
1625
- `, isInline: true, styles: [":host{display:block}.vp-page-header{margin-bottom:var(--vp-space-6)}.vp-page-header__bar{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--vp-space-4)}.vp-page-header__meta:empty,.vp-page-header__tabs:empty,.vp-page-header__status:empty{display:none}.vp-page-header__meta{display:flex;flex-wrap:wrap;gap:var(--vp-space-3);margin-top:var(--vp-space-2);color:var(--vp-text-muted);font-size:var(--vp-text-sm)}.vp-page-header__status{display:inline-flex;align-items:center;gap:var(--vp-space-2)}.vp-page-header__tabs{margin-top:var(--vp-space-4)}.vp-page-header__heading-row{display:flex;align-items:baseline;gap:var(--vp-space-3)}.vp-page-header__heading{margin:0;font-size:var(--vp-text-2xl);font-weight:var(--vp-weight-semibold);line-height:var(--vp-leading-tight);color:var(--vp-text-primary)}.vp-page-header__count{padding:var(--vp-space-1) var(--vp-space-2);border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken);color:var(--vp-text-muted);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-page-header__description{margin:var(--vp-space-1) 0 0;color:var(--vp-text-secondary);font-size:var(--vp-text-base)}.vp-page-header__actions{display:flex;flex-shrink:0;gap:var(--vp-space-2)}@media(max-width:900px){.vp-page-header__bar{flex-direction:column}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
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 }); }
1626
1671
  }
1627
1672
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpPageHeaderComponent, decorators: [{
1628
1673
  type: Component,
@@ -1661,7 +1706,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
1661
1706
  <ng-content select="[tabs]" />
1662
1707
  </div>
1663
1708
  </div>
1664
- `, styles: [":host{display:block}.vp-page-header{margin-bottom:var(--vp-space-6)}.vp-page-header__bar{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--vp-space-4)}.vp-page-header__meta:empty,.vp-page-header__tabs:empty,.vp-page-header__status:empty{display:none}.vp-page-header__meta{display:flex;flex-wrap:wrap;gap:var(--vp-space-3);margin-top:var(--vp-space-2);color:var(--vp-text-muted);font-size:var(--vp-text-sm)}.vp-page-header__status{display:inline-flex;align-items:center;gap:var(--vp-space-2)}.vp-page-header__tabs{margin-top:var(--vp-space-4)}.vp-page-header__heading-row{display:flex;align-items:baseline;gap:var(--vp-space-3)}.vp-page-header__heading{margin:0;font-size:var(--vp-text-2xl);font-weight:var(--vp-weight-semibold);line-height:var(--vp-leading-tight);color:var(--vp-text-primary)}.vp-page-header__count{padding:var(--vp-space-1) var(--vp-space-2);border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken);color:var(--vp-text-muted);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-page-header__description{margin:var(--vp-space-1) 0 0;color:var(--vp-text-secondary);font-size:var(--vp-text-base)}.vp-page-header__actions{display:flex;flex-shrink:0;gap:var(--vp-space-2)}@media(max-width:900px){.vp-page-header__bar{flex-direction:column}}\n"] }]
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"] }]
1665
1710
  }], propDecorators: { heading: [{
1666
1711
  type: Input,
1667
1712
  args: [{ required: true }]
@@ -1691,6 +1736,8 @@ class VpBannerComponent {
1691
1736
  */
1692
1737
  this.iconSprite = inject(VpIconSpriteService);
1693
1738
  this.tone = 'info';
1739
+ /** Kalin bas — "Anonim oturumdasın." gibi, mesajin once okunan kismi. */
1740
+ this.lead = null;
1694
1741
  /** Kalici bannerlar kapatilamaz — bkz. sinif yorumu. */
1695
1742
  this.dismissible = false;
1696
1743
  this.dismissLabel = 'Bildirimi kapat';
@@ -1708,76 +1755,100 @@ class VpBannerComponent {
1708
1755
  }
1709
1756
  }
1710
1757
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpBannerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1711
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpBannerComponent, isStandalone: true, selector: "vp-banner", inputs: { message: "message", tone: "tone", dismissible: "dismissible", dismissLabel: "dismissLabel" }, outputs: { dismissed: "dismissed" }, ngImport: i0, template: `
1712
- <div
1713
- class="vp-banner"
1714
- [attr.data-tone]="tone"
1715
- [attr.role]="isUrgent ? 'alert' : 'status'"
1716
- [attr.aria-live]="isUrgent ? 'assertive' : 'polite'">
1717
-
1718
- <svg class="vp-banner__icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
1719
- <use [attr.href]="'#vp-icon-' + icon"></use>
1720
- </svg>
1721
-
1722
- <span class="vp-banner__message">{{ message }}</span>
1723
-
1724
- <span class="vp-banner__actions">
1725
- <ng-content select="[actions]" />
1726
- </span>
1727
-
1728
- @if (dismissible) {
1729
- <button
1730
- type="button"
1731
- class="vp-banner__dismiss"
1732
- data-vp-dismiss
1733
- [attr.aria-label]="dismissLabel"
1734
- (click)="dismissed.emit()">
1735
- <svg class="vp-banner__dismiss-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
1736
- <use href="#vp-icon-close"></use>
1737
- </svg>
1738
- </button>
1739
- }
1740
- </div>
1741
- `, isInline: true, styles: [":host{display:block}.vp-banner{display:flex;align-items:center;gap:var(--vp-space-3);padding:var(--vp-space-3) var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);background:var(--vp-surface-sunken);color:var(--vp-text-primary);font-size:var(--vp-text-sm)}.vp-banner[data-tone=info]{background:var(--vp-sev-low-bg);color:var(--vp-sev-low)}.vp-banner[data-tone=warning]{background:var(--vp-sev-high-bg);color:var(--vp-sev-high)}.vp-banner[data-tone=danger]{background:var(--vp-sev-critical-bg);color:var(--vp-sev-critical)}.vp-banner[data-tone=success]{background:var(--vp-sev-clean-bg);color:var(--vp-sev-clean)}.vp-banner__icon{flex:0 0 auto;width:18px;height:18px}.vp-banner__message{flex:1;min-width:0}.vp-banner__actions{display:flex;gap:var(--vp-space-2);flex-shrink:0}.vp-banner__dismiss{display:inline-flex;align-items:center;justify-content:center;width:var(--vp-min-target);height:var(--vp-min-target);flex-shrink:0;border:0;border-radius:var(--vp-radius-sm);background:transparent;color:inherit;cursor:pointer;opacity:.7}.vp-banner__dismiss:hover{opacity:1}.vp-banner__dismiss:focus-visible{opacity:1;outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-banner__dismiss-icon{width:16px;height:16px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
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
+ `, 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 }); }
1742
1800
  }
1743
1801
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpBannerComponent, decorators: [{
1744
1802
  type: Component,
1745
- args: [{ selector: 'vp-banner', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
1746
- <div
1747
- class="vp-banner"
1748
- [attr.data-tone]="tone"
1749
- [attr.role]="isUrgent ? 'alert' : 'status'"
1750
- [attr.aria-live]="isUrgent ? 'assertive' : 'polite'">
1751
-
1752
- <svg class="vp-banner__icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
1753
- <use [attr.href]="'#vp-icon-' + icon"></use>
1754
- </svg>
1755
-
1756
- <span class="vp-banner__message">{{ message }}</span>
1757
-
1758
- <span class="vp-banner__actions">
1759
- <ng-content select="[actions]" />
1760
- </span>
1761
-
1762
- @if (dismissible) {
1763
- <button
1764
- type="button"
1765
- class="vp-banner__dismiss"
1766
- data-vp-dismiss
1767
- [attr.aria-label]="dismissLabel"
1768
- (click)="dismissed.emit()">
1769
- <svg class="vp-banner__dismiss-icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false">
1770
- <use href="#vp-icon-close"></use>
1771
- </svg>
1772
- </button>
1773
- }
1774
- </div>
1775
- `, styles: [":host{display:block}.vp-banner{display:flex;align-items:center;gap:var(--vp-space-3);padding:var(--vp-space-3) var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);background:var(--vp-surface-sunken);color:var(--vp-text-primary);font-size:var(--vp-text-sm)}.vp-banner[data-tone=info]{background:var(--vp-sev-low-bg);color:var(--vp-sev-low)}.vp-banner[data-tone=warning]{background:var(--vp-sev-high-bg);color:var(--vp-sev-high)}.vp-banner[data-tone=danger]{background:var(--vp-sev-critical-bg);color:var(--vp-sev-critical)}.vp-banner[data-tone=success]{background:var(--vp-sev-clean-bg);color:var(--vp-sev-clean)}.vp-banner__icon{flex:0 0 auto;width:18px;height:18px}.vp-banner__message{flex:1;min-width:0}.vp-banner__actions{display:flex;gap:var(--vp-space-2);flex-shrink:0}.vp-banner__dismiss{display:inline-flex;align-items:center;justify-content:center;width:var(--vp-min-target);height:var(--vp-min-target);flex-shrink:0;border:0;border-radius:var(--vp-radius-sm);background:transparent;color:inherit;cursor:pointer;opacity:.7}.vp-banner__dismiss:hover{opacity:1}.vp-banner__dismiss:focus-visible{opacity:1;outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-banner__dismiss-icon{width:16px;height:16px}\n"] }]
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
+ `, 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"] }]
1776
1845
  }], propDecorators: { message: [{
1777
1846
  type: Input,
1778
1847
  args: [{ required: true }]
1779
1848
  }], tone: [{
1780
1849
  type: Input
1850
+ }], lead: [{
1851
+ type: Input
1781
1852
  }], dismissible: [{
1782
1853
  type: Input
1783
1854
  }], dismissLabel: [{
@@ -2328,6 +2399,15 @@ function primeIconClass(name, fallback = VP_PRIME_ICON_FALLBACK) {
2328
2399
  return /(^|\s)pi(\s|$)/.test(usable) ? usable : `pi ${usable}`;
2329
2400
  }
2330
2401
 
2402
+ /** Baska bir kokene giden adres (https://…, //…) — yonlendiriciye verilmez. */
2403
+ function isExternal(path) {
2404
+ return /^(?:[a-z][a-z0-9+.-]*:)?\/\//i.test(path.trim());
2405
+ }
2406
+ function normalizePath(path) {
2407
+ if (!path || isExternal(path))
2408
+ return null;
2409
+ return path.replace(/\/+$/, '') || '/';
2410
+ }
2331
2411
  /**
2332
2412
  * Kenar cubugu menusu — paket 05 · G3.
2333
2413
  *
@@ -2340,52 +2420,6 @@ function primeIconClass(name, fallback = VP_PRIME_ICON_FALLBACK) {
2340
2420
  * yerine sebebiyle gosteriyoruz.
2341
2421
  */
2342
2422
  class VpSidebarComponent {
2343
- constructor() {
2344
- this.items = [];
2345
- this.collapsed = false;
2346
- this.navLabel = 'Ana menü';
2347
- this.badgeLabel = 'öğe';
2348
- /**
2349
- * Maddeleri gruplarina bolerek, ILK GORULDUKLERI SIRAYLA dondurur.
2350
- *
2351
- * ⚠️ Alfabetik siralanMIYOR: menu sirasi bir urun karari (paket 17 §6.2
2352
- * bilgi mimarisi) ve alfabe onu bozardi. Grup adi olmayan maddeler tek bir
2353
- * adsiz grupta, listenin basinda kalir.
2354
- *
2355
- * 📌 Sozlesme geriye uyumlu: hicbir madde `group` tasimazsa tek adsiz grup
2356
- * olusur ve cikti eskisiyle ayni kalir.
2357
- */
2358
- /**
2359
- * Cizilecek cocuklar — gizliler dusuyor.
2360
- *
2361
- * ⚠️ Cocugun cocugu DONMUYOR: derinlik bir seviye. Daha derin bir menu kenar
2362
- * cubugunda okunamaz hale gelir; sozlesme de bunu soyluyor.
2363
- */
2364
- /**
2365
- * Kapali kumeler — acik olanlar DEGIL.
2366
- *
2367
- * 🔴 Varsayilan ACIK: menu ilk acilista ne tasidigini gostermeli. Kapali
2368
- * baslasaydi kullaniciya her oturumda once "nerede ne var" sorusu sorulurdu.
2369
- * Istisna sozlesmeden geliyor (`VpMenuItem.collapsed`), bilesenin kendi
2370
- * kararindan degil: hangi kumenin uzun oldugunu menuyu KURAN taraf bilir.
2371
- */
2372
- /**
2373
- * Acilir denetimin adinda kullanilan sozcuk — cevrilebilir olsun diye girdi.
2374
- * "Keycloak alt maddeleri" gibi bir ad uretiyor; yalniz ikon tasiyan bir
2375
- * dugme ekran okuyucu icin adsizdir.
2376
- */
2377
- this.subMenuLabel = 'alt maddeleri';
2378
- this.closedGroups = new Set();
2379
- this.closedParents = new Set();
2380
- /** Sozlesmedeki `collapsed` ipucu bir kez uygulanir; sonrasi kullanicinin. */
2381
- this.seededParents = false;
2382
- /* -- Ray kipi: ucan alt menu ------------------------------------- */
2383
- this.host = inject(ElementRef);
2384
- /** Acik ucan menunun ust maddesi - kapaliyken `null`. */
2385
- this.flyoutItem = null;
2386
- this.flyoutTop = 0;
2387
- this.flyoutLeft = 0;
2388
- }
2389
2423
  /** Yetkisiz maddeler hic render edilmez. */
2390
2424
  get visibleItems() {
2391
2425
  return (this.items ?? []).filter((item) => {
@@ -2423,6 +2457,9 @@ class VpSidebarComponent {
2423
2457
  }
2424
2458
  isParentOpen(item) {
2425
2459
  this.seedCollapsed();
2460
+ // Prototip: kume kapali baslasa da etkin cocugu varsa ACIK — kullanici bulundugu yeri menude gormeli.
2461
+ if (this.hasActiveChild(item))
2462
+ return true;
2426
2463
  return !this.closedParents.has(item.code);
2427
2464
  }
2428
2465
  toggleParent(item) {
@@ -2462,7 +2499,128 @@ class VpSidebarComponent {
2462
2499
  return 'vp-sidebar__icon ' + primeIconClass(item.icon);
2463
2500
  }
2464
2501
  hasBadge(item) {
2465
- return item.badge !== undefined && item.badge !== null;
2502
+ return item.badge !== undefined && item.badge !== null && item.badge !== '';
2503
+ }
2504
+ /** Sayi rozeti "3 öğe" diye okunuyor; metin rozeti ("Yeni") kendi metniyle — "Yeni öğe" olmayan bir sayi ima ederdi. */
2505
+ badgeAria(item) {
2506
+ return typeof item.badge === 'number' ? `${item.badge} ${this.badgeLabel}` : String(item.badge);
2507
+ }
2508
+ constructor() {
2509
+ this.items = [];
2510
+ this.collapsed = false;
2511
+ this.navLabel = 'Ana menü';
2512
+ this.badgeLabel = 'öğe';
2513
+ /**
2514
+ * Maddeleri gruplarina bolerek, ILK GORULDUKLERI SIRAYLA dondurur.
2515
+ *
2516
+ * ⚠️ Alfabetik siralanMIYOR: menu sirasi bir urun karari (paket 17 §6.2
2517
+ * bilgi mimarisi) ve alfabe onu bozardi. Grup adi olmayan maddeler tek bir
2518
+ * adsiz grupta, listenin basinda kalir.
2519
+ *
2520
+ * 📌 Sozlesme geriye uyumlu: hicbir madde `group` tasimazsa tek adsiz grup
2521
+ * olusur ve cikti eskisiyle ayni kalir.
2522
+ */
2523
+ /**
2524
+ * Cizilecek cocuklar — gizliler dusuyor.
2525
+ *
2526
+ * ⚠️ Cocugun cocugu DONMUYOR: derinlik bir seviye. Daha derin bir menu kenar
2527
+ * cubugunda okunamaz hale gelir; sozlesme de bunu soyluyor.
2528
+ */
2529
+ /**
2530
+ * Kapali kumeler — acik olanlar DEGIL.
2531
+ *
2532
+ * 🔴 Varsayilan ACIK: menu ilk acilista ne tasidigini gostermeli. Kapali
2533
+ * baslasaydi kullaniciya her oturumda once "nerede ne var" sorusu sorulurdu.
2534
+ * Istisna sozlesmeden geliyor (`VpMenuItem.collapsed`), bilesenin kendi
2535
+ * kararindan degil: hangi kumenin uzun oldugunu menuyu KURAN taraf bilir.
2536
+ */
2537
+ /**
2538
+ * Acilir denetimin adinda kullanilan sozcuk — cevrilebilir olsun diye girdi.
2539
+ * "Keycloak alt maddeleri" gibi bir ad uretiyor; yalniz ikon tasiyan bir
2540
+ * dugme ekran okuyucu icin adsizdir.
2541
+ */
2542
+ this.subMenuLabel = 'alt maddeleri';
2543
+ this.closedGroups = new Set();
2544
+ this.closedParents = new Set();
2545
+ /** Sozlesmedeki `collapsed` ipucu bir kez uygulanir; sonrasi kullanicinin. */
2546
+ this.seededParents = false;
2547
+ /* -- Etkin madde ve uygulama ici gezinme (paket 28 · prototip) ---- */
2548
+ /**
2549
+ * Etkin yol. Verilmezse yonlendiricinin adresi okunuyor — tuketici baglamayi unutsa da menu yerini gosteriyor.
2550
+ *
2551
+ * 🔴 Olculdu (2026-09-16): menude etkin madde HIC isaretlenmiyordu; prototipte etkin kalem notr dolguyla duruyor.
2552
+ */
2553
+ this.activePath = null;
2554
+ this.router = inject(Router, { optional: true });
2555
+ this.cdr = inject(ChangeDetectorRef);
2556
+ this.routerUrl = this.router?.url ?? null;
2557
+ /* -- Ray kipi: ucan alt menu ------------------------------------- */
2558
+ this.host = inject(ElementRef);
2559
+ /** Acik ucan menunun ust maddesi - kapaliyken `null`. */
2560
+ this.flyoutItem = null;
2561
+ this.flyoutTop = 0;
2562
+ this.flyoutLeft = 0;
2563
+ const router = this.router;
2564
+ if (!router)
2565
+ return;
2566
+ const sub = router.events.subscribe((event) => {
2567
+ if (!(event instanceof NavigationEnd))
2568
+ return;
2569
+ this.routerUrl = event.urlAfterRedirects;
2570
+ this.cdr.markForCheck();
2571
+ });
2572
+ inject(DestroyRef).onDestroy(() => sub.unsubscribe());
2573
+ }
2574
+ currentPath() {
2575
+ const raw = this.activePath ?? this.routerUrl;
2576
+ if (!raw)
2577
+ return null;
2578
+ return raw.split('?')[0].split('#')[0].replace(/\/+$/, '') || '/';
2579
+ }
2580
+ /**
2581
+ * En UZUN eslesen yol kazaniyor: "/scans/abc" Taramalar'i, "/settings/activity" Ayarlar'i isaretliyor; "/scan"
2582
+ * "/scans"i yakalamiyor (segment siniri). Kok "/" yalniz birebir eslesmede.
2583
+ */
2584
+ isActive(item) {
2585
+ const path = normalizePath(item.path);
2586
+ return path !== null && path === this.activeItemPath();
2587
+ }
2588
+ activeItemPath() {
2589
+ const current = this.currentPath();
2590
+ if (!current)
2591
+ return null;
2592
+ let best = null;
2593
+ const visit = (items) => {
2594
+ for (const item of items) {
2595
+ const path = normalizePath(item.path);
2596
+ if (path !== null && !item.hidden) {
2597
+ const matches = path === current || (path !== '/' && current.startsWith(path + '/'));
2598
+ if (matches && (best === null || path.length > best.length))
2599
+ best = path;
2600
+ }
2601
+ if (item.children)
2602
+ visit(item.children);
2603
+ }
2604
+ };
2605
+ visit(this.items ?? []);
2606
+ return best;
2607
+ }
2608
+ hasActiveChild(item) {
2609
+ return this.childrenOf(item).some((child) => this.isActive(child));
2610
+ }
2611
+ /**
2612
+ * 🔴 Olculdu (2026-09-16): menu baglantisi yalin href idi ve TAM SAYFA yeniliyordu — suren tarama, bellekteki durum
2613
+ * ve acik bildirim adasi kayboluyordu. Yonlendirici varsa uygulama ici yol onunla aciliyor.
2614
+ *
2615
+ * ⚠️ Yeni sekme istekleri (Ctrl/Cmd/Shift/Alt, orta tus) ve dis adresler tarayiciya birakiliyor.
2616
+ */
2617
+ navigate(event, path) {
2618
+ if (!this.router || !path || isExternal(path))
2619
+ return;
2620
+ if (event.button !== 0 || event.ctrlKey || event.metaKey || event.shiftKey || event.altKey)
2621
+ return;
2622
+ event.preventDefault();
2623
+ void this.router.navigateByUrl(path);
2466
2624
  }
2467
2625
  /**
2468
2626
  * Rayda grup tiklaninca ucan menu acilir/kapanir.
@@ -2518,476 +2676,522 @@ class VpSidebarComponent {
2518
2676
  */
2519
2677
  onPointerDown(event) {
2520
2678
  const target = event.target;
2521
- if (target && this.host.nativeElement.contains(target))
2522
- return;
2523
- this.closeFlyout();
2524
- }
2525
- /** Ray kipinden cikinca acik menu kapaniyor: genis kipte cocuklar akista. */
2526
- ngOnChanges(changes) {
2527
- if (changes['collapsed'] && !this.collapsed)
2528
- this.closeFlyout();
2529
- }
2530
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2531
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpSidebarComponent, isStandalone: true, selector: "vp-sidebar", inputs: { items: "items", collapsed: "collapsed", navLabel: "navLabel", badgeLabel: "badgeLabel", subMenuLabel: "subMenuLabel" }, host: { listeners: { "document:keydown.escape": "onEscape()", "document:pointerdown": "onPointerDown($event)" } }, usesOnChanges: true, ngImport: i0, template: `
2532
- <nav class="vp-sidebar" [attr.aria-label]="navLabel" [attr.data-collapsed]="collapsed || null">
2533
- @for (group of groups; track group.name; let firstGroup = $first) {
2534
- <!--
2535
- Ray ayraci. Daraltilmis kipte grup BASLIGI okunmaz, ama kumenin
2536
- nerede bittigi hala gorulebilir olmali: on ikon tek sutun olunca
2537
- hangisinin ne oldugu yalnizca ikondan okunuyor.
2538
-
2539
- Ilk kumenin ustunde ayrac YOK: bolecek bir sey yok.
2540
- -->
2541
- @if (collapsed && !firstGroup) {
2542
- <hr class="vp-sidebar__rail-sep" data-vp-rail-separator aria-hidden="true" />
2543
- }
2544
- @if (group.name) {
2545
- <!--
2546
- Grup basligi. Daraltilmis kipte GIZLENIYOR ama ayirici kaliyor:
2547
- ikon-rayinda metin okunmaz, ancak gruplarin nerede bittigi hala
2548
- gorulebilir olmali.
2549
- -->
2550
- <button
2551
- type="button"
2552
- class="vp-sidebar__group"
2553
- [attr.data-vp-menu-group]="group.name"
2554
- [attr.aria-expanded]="isGroupOpen(group.name)"
2555
- (click)="toggleGroup(group.name)">
2556
- <span class="vp-sidebar__group-label">{{ group.name }}</span>
2557
- <i class="vp-sidebar__chevron" aria-hidden="true"></i>
2558
- </button>
2559
- }
2560
- @if (isGroupOpen(group.name)) {
2561
- <ul class="vp-sidebar__list" [attr.aria-label]="group.name || null">
2562
- @for (item of group.items; track item.code) {
2563
- <li class="vp-sidebar__item">
2564
- @if (childrenOf(item).length) {
2565
- <!--
2566
- Ucuncu seviye (paket 16 - G6). Yol tasimayan ust madde BAGLANTI
2567
- DEGIL: tiklayinca hicbir yere gitmeyen bir baglanti bozuk bir
2568
- kontroldur. Yol varsa baglanti olarak ciziliyor.
2569
- -->
2570
- @if (collapsed) {
2571
- <!--
2572
- Rayda ust madde bir DUGME: tiklayinca ucan menu aciliyor.
2573
- Genis kipte ayni oge bir BASLIK, cunku cocuklar zaten
2574
- akista goruluyor ve tiklanacak bir sey yok. Iki kipte iki
2575
- farkli oge tipi bilerek: kontrolun sekli yaptigi isi
2576
- soylemeli.
2577
- -->
2578
- <button
2579
- type="button"
2580
- class="vp-sidebar__link vp-sidebar__link--parent vp-sidebar__link--rail"
2581
- [attr.data-vp-menu-parent]="item.code"
2582
- [attr.title]="item.titleKey"
2583
- aria-haspopup="menu"
2584
- [attr.aria-expanded]="flyoutItem?.code === item.code"
2585
- (click)="toggleFlyout(item, $event)">
2586
- <i [attr.class]="iconClass(item)" aria-hidden="true"></i>
2587
- <span class="vp-sidebar__label">{{ item.titleKey }}</span>
2588
- </button>
2589
- } @else if (item.path) {
2590
- <!--
2591
- Yol tasiyan ust madde BAGLANTI kaliyor; acmak icin yanindaki
2592
- dugme. Tek tiklama hem gidemez hem acamaz.
2593
- -->
2594
- <span class="vp-sidebar__parent-row">
2595
- <a
2596
- class="vp-sidebar__link vp-sidebar__link--parent"
2597
- [attr.data-vp-menu-parent]="item.code"
2598
- [attr.href]="item.path"
2599
- [attr.title]="item.titleKey">
2600
- <i [attr.class]="iconClass(item)" aria-hidden="true"></i>
2601
- <span class="vp-sidebar__label">{{ item.titleKey }}</span>
2602
- </a>
2603
- <button
2604
- type="button"
2605
- class="vp-sidebar__disclosure"
2606
- [attr.data-vp-menu-toggle]="item.code"
2607
- [attr.aria-label]="item.titleKey + ' ' + subMenuLabel"
2608
- [attr.aria-expanded]="isParentOpen(item)"
2609
- (click)="toggleParent(item)">
2610
- <i class="vp-sidebar__chevron" aria-hidden="true"></i>
2611
- </button>
2612
- </span>
2613
- } @else {
2614
- <!--
2615
- Genis kipte ust madde bir ACILIR dugme.
2616
- Cocugu olan her sey acilir kapanir; yonetim panelinde
2617
- Tanımlar 88 tablo tasiyor ve hepsi acik gelince menu
2618
- taranabilir olmaktan cikip listeye donuyordu.
2619
-
2620
- ⚠️ Ust maddenin path alani geniz kipte KULLANILMIYOR: ayni
2621
- tiklama hem gidemez hem acamaz. Sozlesmede zaten yolsuz
2622
- (buildVpMenu ust maddeye yol vermiyor) ve dosyanin kendi
2623
- yorumu bunu soyluyor: alt grup bir baslik, gidilecek bir yer
2624
- degil.
2625
- -->
2626
- <button
2627
- type="button"
2628
- class="vp-sidebar__link vp-sidebar__link--parent"
2629
- [attr.data-vp-menu-parent]="item.code"
2630
- [attr.title]="item.titleKey"
2631
- [attr.aria-expanded]="isParentOpen(item)"
2632
- (click)="toggleParent(item)">
2633
- <i [attr.class]="iconClass(item)" aria-hidden="true"></i>
2634
- <span class="vp-sidebar__label">{{ item.titleKey }}</span>
2635
- <i class="vp-sidebar__chevron" aria-hidden="true"></i>
2636
- </button>
2637
- }
2638
-
2639
- <!--
2640
- Rayda cocuk listesi CIZILMIYOR. Onceki halde DOM'da
2641
- duruyordu ve her cocuk 44px'lik bos bir satir oluyordu:
2642
- etiket gizli, cocuklarin cogunda ikon yok. Kullanici icin
2643
- anlamsiz bosluk, ekran okuyucu icin adsiz baglanti. Yerini
2644
- ucan menu aliyor.
2645
- -->
2646
- @if (!collapsed && isParentOpen(item)) {
2647
- <ul class="vp-sidebar__list vp-sidebar__list--child" [attr.aria-label]="item.titleKey">
2648
- @for (child of childrenOf(item); track child.code) {
2649
- <li class="vp-sidebar__item">
2650
- @if (child.disabledReason) {
2651
- <span
2652
- class="vp-sidebar__link vp-sidebar__link--disabled"
2653
- [attr.data-vp-menu-item]="child.code"
2654
- aria-disabled="true"
2655
- [attr.title]="child.titleKey + ' — ' + child.disabledReason">
2656
- <i [attr.class]="iconClass(child)" aria-hidden="true"></i>
2657
- <span class="vp-sidebar__label">{{ child.titleKey }}</span>
2658
- </span>
2659
- <span
2660
- class="vp-sidebar__reason"
2661
- [attr.data-vp-menu-reason]="child.code">{{ child.disabledReason }}</span>
2662
- } @else {
2663
- <a
2664
- class="vp-sidebar__link"
2665
- [attr.data-vp-menu-item]="child.code"
2666
- [attr.href]="child.path"
2667
- [attr.title]="child.titleKey">
2668
- <i [attr.class]="iconClass(child)" aria-hidden="true"></i>
2669
- <span class="vp-sidebar__label">{{ child.titleKey }}</span>
2670
- @if (hasBadge(child)) {
2671
- <span
2672
- class="vp-sidebar__badge"
2673
- [attr.data-vp-menu-badge]="child.code"
2674
- [attr.aria-label]="child.badge + ' ' + badgeLabel">{{ child.badge }}</span>
2675
- }
2676
- </a>
2677
- }
2678
- </li>
2679
- }
2680
- </ul>
2681
- }
2682
- } @else if (item.disabledReason) {
2683
- <span
2684
- class="vp-sidebar__link vp-sidebar__link--disabled"
2685
- [attr.data-vp-menu-item]="item.code"
2686
- aria-disabled="true"
2687
- [attr.title]="item.titleKey + ' — ' + item.disabledReason">
2688
- <i [attr.class]="iconClass(item)" aria-hidden="true"></i>
2689
- <span class="vp-sidebar__label">{{ item.titleKey }}</span>
2690
- </span>
2691
- <span
2692
- class="vp-sidebar__reason"
2693
- [attr.data-vp-menu-reason]="item.code">{{ item.disabledReason }}</span>
2694
- } @else {
2695
- <a
2696
- class="vp-sidebar__link"
2697
- [attr.data-vp-menu-item]="item.code"
2698
- [attr.href]="item.path"
2699
- [attr.title]="item.titleKey">
2700
- <i [attr.class]="iconClass(item)" aria-hidden="true"></i>
2701
- <span class="vp-sidebar__label">{{ item.titleKey }}</span>
2702
- @if (hasBadge(item)) {
2703
- <span
2704
- class="vp-sidebar__badge"
2705
- [attr.data-vp-menu-badge]="item.code"
2706
- [attr.aria-label]="item.badge + ' ' + badgeLabel">{{ item.badge }}</span>
2707
- }
2708
- </a>
2709
- }
2710
- </li>
2711
- }
2712
- </ul>
2713
- }
2714
- }
2715
-
2716
- @if (flyoutItem) {
2717
- <!--
2718
- Ucan menu sabit konumlu (position: fixed): kenar cubugu kendi
2719
- kaydirma kutusu ve mutlak konumlu bir katman kirpilirdi. Konum tiklanan dugmenin
2720
- dikdortgeninden hesaplaniyor ve gorunum alanina sikistiriliyor -
2721
- en alttaki kalem tiklandiginda menu ekranin altindan tasiyordu.
2722
- -->
2723
- <div
2724
- class="vp-sidebar__flyout"
2725
- data-vp-flyout
2726
- role="menu"
2727
- [attr.aria-label]="flyoutItem.titleKey"
2728
- [style.top.px]="flyoutTop"
2729
- [style.left.px]="flyoutLeft">
2730
- <p class="vp-sidebar__flyout-title">{{ flyoutItem.titleKey }}</p>
2731
- @for (child of childrenOf(flyoutItem); track child.code) {
2732
- @if (child.disabledReason) {
2733
- <span
2734
- class="vp-sidebar__flyout-link vp-sidebar__link--disabled"
2735
- [attr.data-vp-flyout-item]="child.code"
2736
- role="menuitem"
2737
- aria-disabled="true">
2738
- {{ child.titleKey }}
2739
- <small class="vp-sidebar__flyout-reason">{{ child.disabledReason }}</small>
2740
- </span>
2741
- } @else {
2742
- <a
2743
- class="vp-sidebar__flyout-link"
2744
- [attr.data-vp-flyout-item]="child.code"
2745
- role="menuitem"
2746
- [attr.href]="child.path"
2747
- (click)="closeFlyout()">
2748
- {{ child.titleKey }}
2749
- @if (hasBadge(child)) {
2750
- <span class="vp-sidebar__badge">{{ child.badge }}</span>
2751
- }
2752
- </a>
2753
- }
2754
- }
2755
- </div>
2756
- }
2757
- </nav>
2758
- `, isInline: true, styles: [".vp-sidebar__group{display:flex;align-items:center;gap:var(--vp-space-2, .5rem);width:100%;min-height:var(--vp-space-6, 1.5rem);margin:var(--vp-space-4, 1rem) 0 var(--vp-space-1, .25rem);padding:var(--vp-space-1, .25rem) var(--vp-space-3, .75rem);border:0;border-radius:var(--vp-radius-sm, .25rem);background:none;font:inherit;font-size:var(--vp-font-size-xs, .75rem);font-weight:600;letter-spacing:.06em;text-transform:uppercase;text-align:left;color:var(--vp-text-muted, #8b949e);cursor:pointer}.vp-sidebar__group:hover{color:var(--vp-text-secondary, #c9d1d9)}.vp-sidebar__group-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vp-sidebar__chevron{flex:none;width:.5rem;height:.5rem;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);opacity:.55}[aria-expanded=false]>.vp-sidebar__chevron{transform:rotate(-45deg)}.vp-sidebar__parent-row{display:flex;align-items:center;gap:var(--vp-space-1, .25rem)}.vp-sidebar__parent-row>.vp-sidebar__link{flex:1 1 auto;min-width:0}.vp-sidebar__disclosure{display:grid;place-items:center;flex:none;width:var(--vp-space-6, 1.5rem);height:var(--vp-space-6, 1.5rem);padding:0;border:0;border-radius:var(--vp-radius-sm, .25rem);background:none;color:inherit;cursor:pointer}button.vp-sidebar__link--parent{width:100%;border:0;background:none;font:inherit;text-align:left;cursor:pointer}.vp-sidebar__link--parent{color:var(--vp-text-secondary);cursor:default}a.vp-sidebar__link--parent{cursor:pointer}.vp-sidebar__list--child{margin:0;padding-left:var(--vp-space-4, 1rem);list-style:none}.vp-sidebar[data-collapsed] .vp-sidebar__list--child{padding-left:0}.vp-sidebar__group:first-child{margin-top:0}.vp-sidebar[data-collapsed] .vp-sidebar__group{display:none}.vp-sidebar__rail-sep{height:1px;margin:var(--vp-space-3, .75rem) var(--vp-space-2, .5rem);border:0;background:var(--vp-border, #30363d)}:host{display:block}.vp-sidebar{padding:var(--vp-space-3)}.vp-sidebar__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--vp-space-1)}.vp-sidebar__item{margin:0}.vp-sidebar__link{display:flex;align-items:center;gap:var(--vp-space-3);min-height:var(--vp-control-height);padding:var(--vp-space-2) var(--vp-space-3);border-radius:var(--vp-radius-md);color:var(--vp-text-secondary);text-decoration:none;font-size:var(--vp-text-base)}.vp-sidebar__link:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-sidebar__link:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-sidebar__link--disabled{color:var(--vp-text-muted);cursor:not-allowed}.vp-sidebar__link--disabled:hover{background:transparent;color:var(--vp-text-muted)}.vp-sidebar__reason{display:block;padding:0 var(--vp-space-3) var(--vp-space-2) calc(var(--vp-space-3) + 18px + var(--vp-space-3));color:var(--vp-text-muted);font-size:var(--vp-text-xs);line-height:var(--vp-leading-tight)}.vp-sidebar__icon{flex:0 0 auto;width:18px;font-size:18px;line-height:1}.vp-sidebar__label{flex:1;min-width:0}.vp-sidebar__badge{flex:0 0 auto;min-width:1.5rem;padding:0 var(--vp-space-1);border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken);color:var(--vp-text-secondary);font-size:var(--vp-text-xs);text-align:center;font-variant-numeric:tabular-nums}button.vp-sidebar__link{width:100%;border:0;background:transparent;font:inherit;text-align:start;cursor:pointer}.vp-sidebar__flyout{position:fixed;z-index:40;min-width:13rem;max-width:17rem;padding:var(--vp-space-2);border:1px solid var(--vp-border);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised, var(--vp-surface));box-shadow:var(--vp-shadow-lg)}.vp-sidebar__flyout-title{margin:0 0 var(--vp-space-1);padding:0 var(--vp-space-2);font-size:var(--vp-text-xs);font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--vp-text-muted)}.vp-sidebar__flyout-link{display:flex;flex-direction:column;justify-content:center;min-height:var(--vp-control-height);padding:var(--vp-space-2);border-radius:var(--vp-radius-sm);color:var(--vp-text-secondary);text-decoration:none;font-size:var(--vp-text-base)}.vp-sidebar__flyout-link:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-sidebar__flyout-link:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-sidebar__flyout-reason{color:var(--vp-text-muted);font-size:var(--vp-text-xs);line-height:var(--vp-leading-tight)}.vp-sidebar[data-collapsed] .vp-sidebar__link .vp-sidebar__label,.vp-sidebar[data-collapsed] .vp-sidebar__link .vp-sidebar__badge,.vp-sidebar[data-collapsed] .vp-sidebar__reason{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2679
+ if (target && this.host.nativeElement.contains(target))
2680
+ return;
2681
+ this.closeFlyout();
2682
+ }
2683
+ /** Ray kipinden cikinca acik menu kapaniyor: genis kipte cocuklar akista. */
2684
+ ngOnChanges(changes) {
2685
+ if (changes['collapsed'] && !this.collapsed)
2686
+ this.closeFlyout();
2687
+ }
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>
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 }); }
2759
2940
  }
2760
2941
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSidebarComponent, decorators: [{
2761
2942
  type: Component,
2762
- args: [{ selector: 'vp-sidebar', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
2763
- <nav class="vp-sidebar" [attr.aria-label]="navLabel" [attr.data-collapsed]="collapsed || null">
2764
- @for (group of groups; track group.name; let firstGroup = $first) {
2765
- <!--
2766
- Ray ayraci. Daraltilmis kipte grup BASLIGI okunmaz, ama kumenin
2767
- nerede bittigi hala gorulebilir olmali: on ikon tek sutun olunca
2768
- hangisinin ne oldugu yalnizca ikondan okunuyor.
2769
-
2770
- Ilk kumenin ustunde ayrac YOK: bolecek bir sey yok.
2771
- -->
2772
- @if (collapsed && !firstGroup) {
2773
- <hr class="vp-sidebar__rail-sep" data-vp-rail-separator aria-hidden="true" />
2774
- }
2775
- @if (group.name) {
2776
- <!--
2777
- Grup basligi. Daraltilmis kipte GIZLENIYOR ama ayirici kaliyor:
2778
- ikon-rayinda metin okunmaz, ancak gruplarin nerede bittigi hala
2779
- gorulebilir olmali.
2780
- -->
2781
- <button
2782
- type="button"
2783
- class="vp-sidebar__group"
2784
- [attr.data-vp-menu-group]="group.name"
2785
- [attr.aria-expanded]="isGroupOpen(group.name)"
2786
- (click)="toggleGroup(group.name)">
2787
- <span class="vp-sidebar__group-label">{{ group.name }}</span>
2788
- <i class="vp-sidebar__chevron" aria-hidden="true"></i>
2789
- </button>
2790
- }
2791
- @if (isGroupOpen(group.name)) {
2792
- <ul class="vp-sidebar__list" [attr.aria-label]="group.name || null">
2793
- @for (item of group.items; track item.code) {
2794
- <li class="vp-sidebar__item">
2795
- @if (childrenOf(item).length) {
2796
- <!--
2797
- Ucuncu seviye (paket 16 - G6). Yol tasimayan ust madde BAGLANTI
2798
- DEGIL: tiklayinca hicbir yere gitmeyen bir baglanti bozuk bir
2799
- kontroldur. Yol varsa baglanti olarak ciziliyor.
2800
- -->
2801
- @if (collapsed) {
2802
- <!--
2803
- Rayda ust madde bir DUGME: tiklayinca ucan menu aciliyor.
2804
- Genis kipte ayni oge bir BASLIK, cunku cocuklar zaten
2805
- akista goruluyor ve tiklanacak bir sey yok. Iki kipte iki
2806
- farkli oge tipi bilerek: kontrolun sekli yaptigi isi
2807
- soylemeli.
2808
- -->
2809
- <button
2810
- type="button"
2811
- class="vp-sidebar__link vp-sidebar__link--parent vp-sidebar__link--rail"
2812
- [attr.data-vp-menu-parent]="item.code"
2813
- [attr.title]="item.titleKey"
2814
- aria-haspopup="menu"
2815
- [attr.aria-expanded]="flyoutItem?.code === item.code"
2816
- (click)="toggleFlyout(item, $event)">
2817
- <i [attr.class]="iconClass(item)" aria-hidden="true"></i>
2818
- <span class="vp-sidebar__label">{{ item.titleKey }}</span>
2819
- </button>
2820
- } @else if (item.path) {
2821
- <!--
2822
- Yol tasiyan ust madde BAGLANTI kaliyor; acmak icin yanindaki
2823
- dugme. Tek tiklama hem gidemez hem acamaz.
2824
- -->
2825
- <span class="vp-sidebar__parent-row">
2826
- <a
2827
- class="vp-sidebar__link vp-sidebar__link--parent"
2828
- [attr.data-vp-menu-parent]="item.code"
2829
- [attr.href]="item.path"
2830
- [attr.title]="item.titleKey">
2831
- <i [attr.class]="iconClass(item)" aria-hidden="true"></i>
2832
- <span class="vp-sidebar__label">{{ item.titleKey }}</span>
2833
- </a>
2834
- <button
2835
- type="button"
2836
- class="vp-sidebar__disclosure"
2837
- [attr.data-vp-menu-toggle]="item.code"
2838
- [attr.aria-label]="item.titleKey + ' ' + subMenuLabel"
2839
- [attr.aria-expanded]="isParentOpen(item)"
2840
- (click)="toggleParent(item)">
2841
- <i class="vp-sidebar__chevron" aria-hidden="true"></i>
2842
- </button>
2843
- </span>
2844
- } @else {
2845
- <!--
2846
- Genis kipte ust madde bir ACILIR dugme.
2847
- Cocugu olan her sey acilir kapanir; yonetim panelinde
2848
- Tanımlar 88 tablo tasiyor ve hepsi acik gelince menu
2849
- taranabilir olmaktan cikip listeye donuyordu.
2850
-
2851
- ⚠️ Ust maddenin path alani geniz kipte KULLANILMIYOR: ayni
2852
- tiklama hem gidemez hem acamaz. Sozlesmede zaten yolsuz
2853
- (buildVpMenu ust maddeye yol vermiyor) ve dosyanin kendi
2854
- yorumu bunu soyluyor: alt grup bir baslik, gidilecek bir yer
2855
- degil.
2856
- -->
2857
- <button
2858
- type="button"
2859
- class="vp-sidebar__link vp-sidebar__link--parent"
2860
- [attr.data-vp-menu-parent]="item.code"
2861
- [attr.title]="item.titleKey"
2862
- [attr.aria-expanded]="isParentOpen(item)"
2863
- (click)="toggleParent(item)">
2864
- <i [attr.class]="iconClass(item)" aria-hidden="true"></i>
2865
- <span class="vp-sidebar__label">{{ item.titleKey }}</span>
2866
- <i class="vp-sidebar__chevron" aria-hidden="true"></i>
2867
- </button>
2868
- }
2869
-
2870
- <!--
2871
- Rayda cocuk listesi CIZILMIYOR. Onceki halde DOM'da
2872
- duruyordu ve her cocuk 44px'lik bos bir satir oluyordu:
2873
- etiket gizli, cocuklarin cogunda ikon yok. Kullanici icin
2874
- anlamsiz bosluk, ekran okuyucu icin adsiz baglanti. Yerini
2875
- ucan menu aliyor.
2876
- -->
2877
- @if (!collapsed && isParentOpen(item)) {
2878
- <ul class="vp-sidebar__list vp-sidebar__list--child" [attr.aria-label]="item.titleKey">
2879
- @for (child of childrenOf(item); track child.code) {
2880
- <li class="vp-sidebar__item">
2881
- @if (child.disabledReason) {
2882
- <span
2883
- class="vp-sidebar__link vp-sidebar__link--disabled"
2884
- [attr.data-vp-menu-item]="child.code"
2885
- aria-disabled="true"
2886
- [attr.title]="child.titleKey + ' — ' + child.disabledReason">
2887
- <i [attr.class]="iconClass(child)" aria-hidden="true"></i>
2888
- <span class="vp-sidebar__label">{{ child.titleKey }}</span>
2889
- </span>
2890
- <span
2891
- class="vp-sidebar__reason"
2892
- [attr.data-vp-menu-reason]="child.code">{{ child.disabledReason }}</span>
2893
- } @else {
2894
- <a
2895
- class="vp-sidebar__link"
2896
- [attr.data-vp-menu-item]="child.code"
2897
- [attr.href]="child.path"
2898
- [attr.title]="child.titleKey">
2899
- <i [attr.class]="iconClass(child)" aria-hidden="true"></i>
2900
- <span class="vp-sidebar__label">{{ child.titleKey }}</span>
2901
- @if (hasBadge(child)) {
2902
- <span
2903
- class="vp-sidebar__badge"
2904
- [attr.data-vp-menu-badge]="child.code"
2905
- [attr.aria-label]="child.badge + ' ' + badgeLabel">{{ child.badge }}</span>
2906
- }
2907
- </a>
2908
- }
2909
- </li>
2910
- }
2911
- </ul>
2912
- }
2913
- } @else if (item.disabledReason) {
2914
- <span
2915
- class="vp-sidebar__link vp-sidebar__link--disabled"
2916
- [attr.data-vp-menu-item]="item.code"
2917
- aria-disabled="true"
2918
- [attr.title]="item.titleKey + ' — ' + item.disabledReason">
2919
- <i [attr.class]="iconClass(item)" aria-hidden="true"></i>
2920
- <span class="vp-sidebar__label">{{ item.titleKey }}</span>
2921
- </span>
2922
- <span
2923
- class="vp-sidebar__reason"
2924
- [attr.data-vp-menu-reason]="item.code">{{ item.disabledReason }}</span>
2925
- } @else {
2926
- <a
2927
- class="vp-sidebar__link"
2928
- [attr.data-vp-menu-item]="item.code"
2929
- [attr.href]="item.path"
2930
- [attr.title]="item.titleKey">
2931
- <i [attr.class]="iconClass(item)" aria-hidden="true"></i>
2932
- <span class="vp-sidebar__label">{{ item.titleKey }}</span>
2933
- @if (hasBadge(item)) {
2934
- <span
2935
- class="vp-sidebar__badge"
2936
- [attr.data-vp-menu-badge]="item.code"
2937
- [attr.aria-label]="item.badge + ' ' + badgeLabel">{{ item.badge }}</span>
2938
- }
2939
- </a>
2940
- }
2941
- </li>
2942
- }
2943
- </ul>
2944
- }
2945
- }
2946
-
2947
- @if (flyoutItem) {
2948
- <!--
2949
- Ucan menu sabit konumlu (position: fixed): kenar cubugu kendi
2950
- kaydirma kutusu ve mutlak konumlu bir katman kirpilirdi. Konum tiklanan dugmenin
2951
- dikdortgeninden hesaplaniyor ve gorunum alanina sikistiriliyor -
2952
- en alttaki kalem tiklandiginda menu ekranin altindan tasiyordu.
2953
- -->
2954
- <div
2955
- class="vp-sidebar__flyout"
2956
- data-vp-flyout
2957
- role="menu"
2958
- [attr.aria-label]="flyoutItem.titleKey"
2959
- [style.top.px]="flyoutTop"
2960
- [style.left.px]="flyoutLeft">
2961
- <p class="vp-sidebar__flyout-title">{{ flyoutItem.titleKey }}</p>
2962
- @for (child of childrenOf(flyoutItem); track child.code) {
2963
- @if (child.disabledReason) {
2964
- <span
2965
- class="vp-sidebar__flyout-link vp-sidebar__link--disabled"
2966
- [attr.data-vp-flyout-item]="child.code"
2967
- role="menuitem"
2968
- aria-disabled="true">
2969
- {{ child.titleKey }}
2970
- <small class="vp-sidebar__flyout-reason">{{ child.disabledReason }}</small>
2971
- </span>
2972
- } @else {
2973
- <a
2974
- class="vp-sidebar__flyout-link"
2975
- [attr.data-vp-flyout-item]="child.code"
2976
- role="menuitem"
2977
- [attr.href]="child.path"
2978
- (click)="closeFlyout()">
2979
- {{ child.titleKey }}
2980
- @if (hasBadge(child)) {
2981
- <span class="vp-sidebar__badge">{{ child.badge }}</span>
2982
- }
2983
- </a>
2984
- }
2985
- }
2986
- </div>
2987
- }
2988
- </nav>
2989
- `, styles: [".vp-sidebar__group{display:flex;align-items:center;gap:var(--vp-space-2, .5rem);width:100%;min-height:var(--vp-space-6, 1.5rem);margin:var(--vp-space-4, 1rem) 0 var(--vp-space-1, .25rem);padding:var(--vp-space-1, .25rem) var(--vp-space-3, .75rem);border:0;border-radius:var(--vp-radius-sm, .25rem);background:none;font:inherit;font-size:var(--vp-font-size-xs, .75rem);font-weight:600;letter-spacing:.06em;text-transform:uppercase;text-align:left;color:var(--vp-text-muted, #8b949e);cursor:pointer}.vp-sidebar__group:hover{color:var(--vp-text-secondary, #c9d1d9)}.vp-sidebar__group-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vp-sidebar__chevron{flex:none;width:.5rem;height:.5rem;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);opacity:.55}[aria-expanded=false]>.vp-sidebar__chevron{transform:rotate(-45deg)}.vp-sidebar__parent-row{display:flex;align-items:center;gap:var(--vp-space-1, .25rem)}.vp-sidebar__parent-row>.vp-sidebar__link{flex:1 1 auto;min-width:0}.vp-sidebar__disclosure{display:grid;place-items:center;flex:none;width:var(--vp-space-6, 1.5rem);height:var(--vp-space-6, 1.5rem);padding:0;border:0;border-radius:var(--vp-radius-sm, .25rem);background:none;color:inherit;cursor:pointer}button.vp-sidebar__link--parent{width:100%;border:0;background:none;font:inherit;text-align:left;cursor:pointer}.vp-sidebar__link--parent{color:var(--vp-text-secondary);cursor:default}a.vp-sidebar__link--parent{cursor:pointer}.vp-sidebar__list--child{margin:0;padding-left:var(--vp-space-4, 1rem);list-style:none}.vp-sidebar[data-collapsed] .vp-sidebar__list--child{padding-left:0}.vp-sidebar__group:first-child{margin-top:0}.vp-sidebar[data-collapsed] .vp-sidebar__group{display:none}.vp-sidebar__rail-sep{height:1px;margin:var(--vp-space-3, .75rem) var(--vp-space-2, .5rem);border:0;background:var(--vp-border, #30363d)}:host{display:block}.vp-sidebar{padding:var(--vp-space-3)}.vp-sidebar__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--vp-space-1)}.vp-sidebar__item{margin:0}.vp-sidebar__link{display:flex;align-items:center;gap:var(--vp-space-3);min-height:var(--vp-control-height);padding:var(--vp-space-2) var(--vp-space-3);border-radius:var(--vp-radius-md);color:var(--vp-text-secondary);text-decoration:none;font-size:var(--vp-text-base)}.vp-sidebar__link:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-sidebar__link:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-sidebar__link--disabled{color:var(--vp-text-muted);cursor:not-allowed}.vp-sidebar__link--disabled:hover{background:transparent;color:var(--vp-text-muted)}.vp-sidebar__reason{display:block;padding:0 var(--vp-space-3) var(--vp-space-2) calc(var(--vp-space-3) + 18px + var(--vp-space-3));color:var(--vp-text-muted);font-size:var(--vp-text-xs);line-height:var(--vp-leading-tight)}.vp-sidebar__icon{flex:0 0 auto;width:18px;font-size:18px;line-height:1}.vp-sidebar__label{flex:1;min-width:0}.vp-sidebar__badge{flex:0 0 auto;min-width:1.5rem;padding:0 var(--vp-space-1);border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken);color:var(--vp-text-secondary);font-size:var(--vp-text-xs);text-align:center;font-variant-numeric:tabular-nums}button.vp-sidebar__link{width:100%;border:0;background:transparent;font:inherit;text-align:start;cursor:pointer}.vp-sidebar__flyout{position:fixed;z-index:40;min-width:13rem;max-width:17rem;padding:var(--vp-space-2);border:1px solid var(--vp-border);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised, var(--vp-surface));box-shadow:var(--vp-shadow-lg)}.vp-sidebar__flyout-title{margin:0 0 var(--vp-space-1);padding:0 var(--vp-space-2);font-size:var(--vp-text-xs);font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--vp-text-muted)}.vp-sidebar__flyout-link{display:flex;flex-direction:column;justify-content:center;min-height:var(--vp-control-height);padding:var(--vp-space-2);border-radius:var(--vp-radius-sm);color:var(--vp-text-secondary);text-decoration:none;font-size:var(--vp-text-base)}.vp-sidebar__flyout-link:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-sidebar__flyout-link:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-sidebar__flyout-reason{color:var(--vp-text-muted);font-size:var(--vp-text-xs);line-height:var(--vp-leading-tight)}.vp-sidebar[data-collapsed] .vp-sidebar__link .vp-sidebar__label,.vp-sidebar[data-collapsed] .vp-sidebar__link .vp-sidebar__badge,.vp-sidebar[data-collapsed] .vp-sidebar__reason{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n"] }]
2990
- }], propDecorators: { items: [{
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
+ `, 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
+ }], ctorParameters: () => [], propDecorators: { items: [{
2991
3195
  type: Input,
2992
3196
  args: [{ required: true }]
2993
3197
  }], collapsed: [{
@@ -2998,6 +3202,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
2998
3202
  type: Input
2999
3203
  }], subMenuLabel: [{
3000
3204
  type: Input
3205
+ }], activePath: [{
3206
+ type: Input
3001
3207
  }], onEscape: [{
3002
3208
  type: HostListener,
3003
3209
  args: ['document:keydown.escape']
@@ -3053,7 +3259,8 @@ class VpBreadcrumbComponent {
3053
3259
  @if (trail.length > 0) {
3054
3260
  <nav class="vp-breadcrumb" [attr.aria-label]="navLabel">
3055
3261
  <ol class="vp-breadcrumb__list">
3056
- @for (crumb of trail; track crumb.path; let last = $last; let first = $first) {
3262
+ <!-- Indeksle izleniyor: yolsuz kirintinin ("Anonim oturum") anahtari yok. -->
3263
+ @for (crumb of trail; track $index; let last = $last; let first = $first) {
3057
3264
  <li class="vp-breadcrumb__item">
3058
3265
  @if (!first) {
3059
3266
  <span class="vp-breadcrumb__sep" data-vp-crumb-sep aria-hidden="true">/</span>
@@ -3064,6 +3271,11 @@ class VpBreadcrumbComponent {
3064
3271
  data-vp-crumb
3065
3272
  aria-current="page"
3066
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>
3067
3279
  } @else {
3068
3280
  <a
3069
3281
  class="vp-breadcrumb__link"
@@ -3076,7 +3288,7 @@ class VpBreadcrumbComponent {
3076
3288
  </ol>
3077
3289
  </nav>
3078
3290
  }
3079
- `, isInline: true, styles: [":host{display:block}.vp-breadcrumb__list{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:var(--vp-space-1);margin:0 0 var(--vp-space-3);padding:0;font-size:var(--vp-text-sm)}.vp-breadcrumb__item{display:flex;align-items:center;gap:var(--vp-space-1);margin:0}.vp-breadcrumb__link{color:var(--vp-text-muted);text-decoration:none}.vp-breadcrumb__link:hover{color:var(--vp-text-primary);text-decoration:underline}.vp-breadcrumb__link:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset);border-radius:var(--vp-radius-sm)}.vp-breadcrumb__current{color:var(--vp-text-primary);font-weight:var(--vp-weight-medium)}.vp-breadcrumb__sep{color:var(--vp-text-muted)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
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 }); }
3080
3292
  }
3081
3293
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpBreadcrumbComponent, decorators: [{
3082
3294
  type: Component,
@@ -3084,7 +3296,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
3084
3296
  @if (trail.length > 0) {
3085
3297
  <nav class="vp-breadcrumb" [attr.aria-label]="navLabel">
3086
3298
  <ol class="vp-breadcrumb__list">
3087
- @for (crumb of trail; track crumb.path; let last = $last; let first = $first) {
3299
+ <!-- Indeksle izleniyor: yolsuz kirintinin ("Anonim oturum") anahtari yok. -->
3300
+ @for (crumb of trail; track $index; let last = $last; let first = $first) {
3088
3301
  <li class="vp-breadcrumb__item">
3089
3302
  @if (!first) {
3090
3303
  <span class="vp-breadcrumb__sep" data-vp-crumb-sep aria-hidden="true">/</span>
@@ -3095,6 +3308,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
3095
3308
  data-vp-crumb
3096
3309
  aria-current="page"
3097
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>
3098
3316
  } @else {
3099
3317
  <a
3100
3318
  class="vp-breadcrumb__link"
@@ -3107,7 +3325,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
3107
3325
  </ol>
3108
3326
  </nav>
3109
3327
  }
3110
- `, styles: [":host{display:block}.vp-breadcrumb__list{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:var(--vp-space-1);margin:0 0 var(--vp-space-3);padding:0;font-size:var(--vp-text-sm)}.vp-breadcrumb__item{display:flex;align-items:center;gap:var(--vp-space-1);margin:0}.vp-breadcrumb__link{color:var(--vp-text-muted);text-decoration:none}.vp-breadcrumb__link:hover{color:var(--vp-text-primary);text-decoration:underline}.vp-breadcrumb__link:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset);border-radius:var(--vp-radius-sm)}.vp-breadcrumb__current{color:var(--vp-text-primary);font-weight:var(--vp-weight-medium)}.vp-breadcrumb__sep{color:var(--vp-text-muted)}\n"] }]
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"] }]
3111
3329
  }], propDecorators: { trail: [{
3112
3330
  type: Input,
3113
3331
  args: [{ required: true }]
@@ -3231,22 +3449,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
3231
3449
  type: Output
3232
3450
  }] } });
3233
3451
 
3234
- /**
3235
- * Kenar cubugu ac/kapa — paket 17 §6.1, **P0**.
3236
- *
3237
- * 📌 `vp-sidebar` daraltilmis kipi (`collapsed`) zaten destekliyordu ama onu
3238
- * **cevirecek bir kontrol yoktu**: her konsol kendi dugmesini yaziyordu ya da
3239
- * hic yazmiyordu. Yetenek vardi, bagli degildi — bu depoda tekrarlayan desen.
3240
- *
3241
- * 🔴 `aria-expanded` ZORUNLU ve `aria-controls` ile birlikte anlamli: ekran
3242
- * okuyucu kullanicisi menunun acik mi kapali mi oldugunu yalniz buradan
3243
- * ogreniyor. Ikon tek basina hicbir sey soylemiyor.
3244
- *
3245
- * PrimeNG `p-button` sarmalaniyor, kopyalanmiyor (paket 10 §6.2).
3246
- */
3247
3452
  class VpSidebarToggleComponent {
3248
3453
  constructor() {
3249
3454
  this.collapsed = false;
3455
+ /** Ikon — bars (ust cubuk, geriye uyum) · panel (prototip kenar cubugu/kirinti satiri). */
3456
+ this.icon = 'bars';
3250
3457
  /**
3251
3458
  * Kontrol edilen bolgenin `id`'si.
3252
3459
  *
@@ -3259,49 +3466,89 @@ class VpSidebarToggleComponent {
3259
3466
  this.toggle = new EventEmitter();
3260
3467
  }
3261
3468
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSidebarToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3262
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: VpSidebarToggleComponent, isStandalone: true, selector: "vp-sidebar-toggle", inputs: { collapsed: "collapsed", controls: "controls", collapseLabel: "collapseLabel", expandLabel: "expandLabel" }, outputs: { toggle: "toggle" }, ngImport: i0, template: `
3263
- <button
3264
- pButton
3265
- type="button"
3266
- text
3267
- rounded
3268
- severity="secondary"
3269
- data-vp-sidebar-toggle
3270
- icon="pi pi-bars"
3271
- [pTooltip]="collapsed ? expandLabel : collapseLabel"
3272
- tooltipPosition="bottom"
3273
- [attr.aria-expanded]="!collapsed"
3274
- [attr.aria-controls]="controls"
3275
- [attr.aria-label]="collapsed ? expandLabel : collapseLabel"
3276
- (click)="toggle.emit()"></button>
3277
- `, 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 }); }
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
+ `, 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 }); }
3278
3507
  }
3279
3508
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSidebarToggleComponent, decorators: [{
3280
3509
  type: Component,
3281
- args: [{
3282
- selector: 'vp-sidebar-toggle',
3283
- standalone: true,
3284
- changeDetection: ChangeDetectionStrategy.OnPush,
3285
- imports: [ButtonModule, TooltipModule],
3286
- template: `
3287
- <button
3288
- pButton
3289
- type="button"
3290
- text
3291
- rounded
3292
- severity="secondary"
3293
- data-vp-sidebar-toggle
3294
- icon="pi pi-bars"
3295
- [pTooltip]="collapsed ? expandLabel : collapseLabel"
3296
- tooltipPosition="bottom"
3297
- [attr.aria-expanded]="!collapsed"
3298
- [attr.aria-controls]="controls"
3299
- [attr.aria-label]="collapsed ? expandLabel : collapseLabel"
3300
- (click)="toggle.emit()"></button>
3301
- `,
3302
- }]
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
+ `, 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"] }]
3303
3548
  }], propDecorators: { collapsed: [{
3304
3549
  type: Input
3550
+ }], icon: [{
3551
+ type: Input
3305
3552
  }], controls: [{
3306
3553
  type: Input
3307
3554
  }], collapseLabel: [{
@@ -3342,6 +3589,10 @@ class VpUserMenuComponent {
3342
3589
  this.subtitle = null;
3343
3590
  this.items = [];
3344
3591
  this.menuId = 'vp-user-menu-popup';
3592
+ /** Bicim — topbar (ust cubuk, geriye uyum) · sidebar (prototip kenar cubugu ayagi). */
3593
+ this.variant = 'topbar';
3594
+ /** Rayda (daraltilmis kenar cubugu) yalniz avatar. */
3595
+ this.compact = false;
3345
3596
  this.opened = new EventEmitter();
3346
3597
  }
3347
3598
  get initial() {
@@ -3352,57 +3603,115 @@ class VpUserMenuComponent {
3352
3603
  return this.subtitle ? `${this.displayName} (${this.subtitle}) — hesap menüsü` : `${this.displayName} — hesap menüsü`;
3353
3604
  }
3354
3605
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpUserMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3355
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpUserMenuComponent, isStandalone: true, selector: "vp-user-menu", inputs: { displayName: "displayName", subtitle: "subtitle", items: "items", menuId: "menuId" }, outputs: { opened: "opened" }, ngImport: i0, template: `
3356
- <div class="vp-user-menu">
3357
- <button
3358
- pButton
3359
- type="button"
3360
- text
3361
- data-vp-user-menu
3362
- [attr.aria-haspopup]="true"
3363
- [attr.aria-controls]="menuId"
3364
- [attr.aria-label]="ariaLabel"
3365
- [title]="displayName"
3366
- (click)="menu.toggle($event)">
3367
- <span class="vp-user-menu__avatar" aria-hidden="true">{{ initial }}</span>
3368
- <span class="vp-user-menu__text">
3369
- <span class="vp-user-menu__name">{{ displayName }}</span>
3370
- @if (subtitle) {
3371
- <span class="vp-user-menu__subtitle">{{ subtitle }}</span>
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>
3372
3633
  }
3373
- </span>
3374
- </button>
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
+ }
3375
3655
 
3376
3656
  <p-menu #menu [model]="items" [popup]="true" [id]="menuId" />
3377
3657
  </div>
3378
- `, isInline: true, styles: [".vp-user-menu__avatar{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;margin-right:var(--vp-space-2, .5rem);border-radius:50%;background:var(--vp-brand);color:var(--vp-text-on-accent);font-size:var(--vp-font-size-xs, .75rem);font-weight:600}.vp-user-menu__text{display:inline-flex;flex-direction:column;align-items:flex-start;line-height:1.2}.vp-user-menu__name{color:var(--vp-text-primary)}.vp-user-menu__subtitle{font-size:var(--vp-font-size-xs, .75rem);color:var(--vp-text-muted, #8b949e)}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["ptButtonDirective", "hostName", "text", "plain", "raised", "size", "outlined", "rounded", "iconPos", "loadingIcon", "fluid", "label", "icon", "loading", "buttonProps", "severity"] }, { kind: "ngmodule", type: MenuModule }, { kind: "component", type: i2$1.Menu, selector: "p-menu", inputs: ["model", "popup", "style", "styleClass", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaLabel", "ariaLabelledBy", "id", "tabindex", "appendTo"], outputs: ["onShow", "onHide", "onBlur", "onFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
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 }); }
3379
3659
  }
3380
3660
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpUserMenuComponent, decorators: [{
3381
3661
  type: Component,
3382
3662
  args: [{ selector: 'vp-user-menu', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonModule, MenuModule], template: `
3383
- <div class="vp-user-menu">
3384
- <button
3385
- pButton
3386
- type="button"
3387
- text
3388
- data-vp-user-menu
3389
- [attr.aria-haspopup]="true"
3390
- [attr.aria-controls]="menuId"
3391
- [attr.aria-label]="ariaLabel"
3392
- [title]="displayName"
3393
- (click)="menu.toggle($event)">
3394
- <span class="vp-user-menu__avatar" aria-hidden="true">{{ initial }}</span>
3395
- <span class="vp-user-menu__text">
3396
- <span class="vp-user-menu__name">{{ displayName }}</span>
3397
- @if (subtitle) {
3398
- <span class="vp-user-menu__subtitle">{{ subtitle }}</span>
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>
3399
3689
  }
3400
- </span>
3401
- </button>
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
+ }
3402
3711
 
3403
3712
  <p-menu #menu [model]="items" [popup]="true" [id]="menuId" />
3404
3713
  </div>
3405
- `, styles: [".vp-user-menu__avatar{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;margin-right:var(--vp-space-2, .5rem);border-radius:50%;background:var(--vp-brand);color:var(--vp-text-on-accent);font-size:var(--vp-font-size-xs, .75rem);font-weight:600}.vp-user-menu__text{display:inline-flex;flex-direction:column;align-items:flex-start;line-height:1.2}.vp-user-menu__name{color:var(--vp-text-primary)}.vp-user-menu__subtitle{font-size:var(--vp-font-size-xs, .75rem);color:var(--vp-text-muted, #8b949e)}\n"] }]
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"] }]
3406
3715
  }], propDecorators: { displayName: [{
3407
3716
  type: Input,
3408
3717
  args: [{ required: true }]
@@ -3412,6 +3721,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
3412
3721
  type: Input
3413
3722
  }], menuId: [{
3414
3723
  type: Input
3724
+ }], variant: [{
3725
+ type: Input
3726
+ }], compact: [{
3727
+ type: Input
3415
3728
  }], opened: [{
3416
3729
  type: Output
3417
3730
  }] } });
@@ -4631,6 +4944,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
4631
4944
  class VpSearchTriggerComponent {
4632
4945
  constructor() {
4633
4946
  this.label = 'Ara';
4947
+ /** Bicim — bkz. sablon yorumu. Varsayilan ust cubuk alani (geriye uyum). */
4948
+ this.variant = 'bar';
4949
+ /** Ray biciminin erisilebilir adi — dar bir ikon dugmesi, uzun alan etiketi gereksiz. */
4950
+ this.railLabel = 'Ara';
4634
4951
  /** Gorsel kisayol ipucu. Bos birakilirsa hic cizilmez. */
4635
4952
  this.hint = 'Ctrl K';
4636
4953
  /**
@@ -4642,47 +4959,65 @@ class VpSearchTriggerComponent {
4642
4959
  this.opened = new EventEmitter();
4643
4960
  }
4644
4961
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSearchTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
4645
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpSearchTriggerComponent, isStandalone: true, selector: "vp-search-trigger", inputs: { label: "label", hint: "hint", keyShortcut: "keyShortcut" }, outputs: { opened: "opened" }, ngImport: i0, template: `
4646
- <button
4647
- pButton
4648
- type="button"
4649
- text
4650
- severity="secondary"
4651
- data-vp-search-trigger
4652
- class="vp-search-trigger"
4653
- [attr.aria-label]="label"
4654
- [attr.aria-keyshortcuts]="keyShortcut"
4655
- (click)="opened.emit()">
4656
- <span class="pi pi-search vp-search-trigger__icon" aria-hidden="true"></span>
4657
- <span class="vp-search-trigger__label">{{ label }}</span>
4658
- @if (hint) {
4659
- <kbd class="vp-search-trigger__hint" aria-hidden="true">{{ hint }}</kbd>
4660
- }
4661
- </button>
4662
- `, isInline: true, styles: [":host ::ng-deep .vp-search-trigger{display:inline-flex;align-items:center;gap:var(--vp-space-2, .5rem);min-width:14rem;justify-content:flex-start;border:1px solid var(--vp-border-subtle, #30363d);border-radius:var(--vp-radius-md, 6px);color:var(--vp-text-muted, #8b949e)}.vp-search-trigger__label{flex:1;text-align:left;font-weight:400}.vp-search-trigger__hint{padding:.05rem .35rem;border:1px solid var(--vp-border-subtle, #30363d);border-radius:var(--vp-radius-sm, 4px);font-family:var(--vp-font-mono, ui-monospace, monospace);font-size:var(--vp-font-size-xs, .75rem);line-height:1.4}@media(max-width:900px){:host ::ng-deep .vp-search-trigger{min-width:0}.vp-search-trigger__label,.vp-search-trigger__hint{display:none}}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["ptButtonDirective", "hostName", "text", "plain", "raised", "size", "outlined", "rounded", "iconPos", "loadingIcon", "fluid", "label", "icon", "loading", "buttonProps", "severity"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
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
+ `, 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 }); }
4663
4987
  }
4664
4988
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSearchTriggerComponent, decorators: [{
4665
4989
  type: Component,
4666
- args: [{ selector: 'vp-search-trigger', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonModule], template: `
4667
- <button
4668
- pButton
4669
- type="button"
4670
- text
4671
- severity="secondary"
4672
- data-vp-search-trigger
4673
- class="vp-search-trigger"
4674
- [attr.aria-label]="label"
4675
- [attr.aria-keyshortcuts]="keyShortcut"
4676
- (click)="opened.emit()">
4677
- <span class="pi pi-search vp-search-trigger__icon" aria-hidden="true"></span>
4678
- <span class="vp-search-trigger__label">{{ label }}</span>
4679
- @if (hint) {
4680
- <kbd class="vp-search-trigger__hint" aria-hidden="true">{{ hint }}</kbd>
4681
- }
4682
- </button>
4683
- `, styles: [":host ::ng-deep .vp-search-trigger{display:inline-flex;align-items:center;gap:var(--vp-space-2, .5rem);min-width:14rem;justify-content:flex-start;border:1px solid var(--vp-border-subtle, #30363d);border-radius:var(--vp-radius-md, 6px);color:var(--vp-text-muted, #8b949e)}.vp-search-trigger__label{flex:1;text-align:left;font-weight:400}.vp-search-trigger__hint{padding:.05rem .35rem;border:1px solid var(--vp-border-subtle, #30363d);border-radius:var(--vp-radius-sm, 4px);font-family:var(--vp-font-mono, ui-monospace, monospace);font-size:var(--vp-font-size-xs, .75rem);line-height:1.4}@media(max-width:900px){:host ::ng-deep .vp-search-trigger{min-width:0}.vp-search-trigger__label,.vp-search-trigger__hint{display:none}}\n"] }]
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
+ `, 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"] }]
4684
5015
  }], propDecorators: { label: [{
4685
5016
  type: Input
5017
+ }], variant: [{
5018
+ type: Input
5019
+ }], railLabel: [{
5020
+ type: Input
4686
5021
  }], hint: [{
4687
5022
  type: Input
4688
5023
  }], keyShortcut: [{
@@ -6906,6 +7241,8 @@ let fieldSeq = 0;
6906
7241
  */
6907
7242
  class VpFieldComponent {
6908
7243
  constructor() {
7244
+ /** Etiket bicimi — default · caps (musteri konsolu prototipi `.field label`, paket 28). */
7245
+ this.labelStyle = 'default';
6909
7246
  this.hint = null;
6910
7247
  this.error = null;
6911
7248
  this.required = false;
@@ -6966,56 +7303,58 @@ class VpFieldComponent {
6966
7303
  this.cdr.markForCheck();
6967
7304
  }
6968
7305
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
6969
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpFieldComponent, isStandalone: true, selector: "vp-field", inputs: { label: "label", hint: "hint", error: "error", required: "required" }, usesOnChanges: true, ngImport: i0, template: `
6970
- <div class="vp-field">
6971
- <label class="vp-field__label" [attr.for]="controlId">
6972
- {{ label }}
6973
- @if (required) {
6974
- <span class="vp-field__required" data-vp-required aria-label="zorunlu alan">*</span>
6975
- }
6976
- </label>
6977
-
6978
- <div class="vp-field__control">
6979
- <ng-content />
6980
- </div>
6981
-
6982
- @if (hint) {
6983
- <p class="vp-field__hint" data-vp-hint [id]="hintId">{{ hint }}</p>
6984
- }
6985
-
6986
- @if (error) {
6987
- <p class="vp-field__error" data-vp-error role="alert" [id]="errorId">{{ error }}</p>
6988
- }
6989
- </div>
6990
- `, isInline: true, styles: [":host{display:block}.vp-field{display:flex;flex-direction:column;gap:var(--vp-space-1);max-width:880px;margin-bottom:var(--vp-space-4)}.vp-field__label{color:var(--vp-text-primary);font-size:var(--vp-text-sm);font-weight:var(--vp-weight-medium)}.vp-field__required{margin-left:2px;color:var(--vp-sev-critical)}.vp-field__control ::ng-deep input,.vp-field__control ::ng-deep select,.vp-field__control ::ng-deep textarea{width:100%;min-height:var(--vp-control-height);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font-family:inherit;font-size:var(--vp-text-base)}.vp-field__control ::ng-deep input:focus-visible,.vp-field__control ::ng-deep select:focus-visible,.vp-field__control ::ng-deep textarea:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-field__control ::ng-deep [aria-invalid=true]{border-color:var(--vp-sev-critical);border-width:2px}.vp-field__control ::ng-deep :disabled{background:var(--vp-surface-sunken);color:var(--vp-text-muted);cursor:not-allowed}.vp-field__control ::ng-deep [readonly]{background:var(--vp-surface-sunken);border-style:dashed;color:var(--vp-text-primary)}.vp-field__hint{margin:0;color:var(--vp-text-muted);font-size:var(--vp-text-xs)}.vp-field__error{margin:0;color:var(--vp-sev-critical);font-size:var(--vp-text-xs)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
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
+ `, 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 }); }
6991
7328
  }
6992
7329
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpFieldComponent, decorators: [{
6993
7330
  type: Component,
6994
- args: [{ selector: 'vp-field', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
6995
- <div class="vp-field">
6996
- <label class="vp-field__label" [attr.for]="controlId">
6997
- {{ label }}
6998
- @if (required) {
6999
- <span class="vp-field__required" data-vp-required aria-label="zorunlu alan">*</span>
7000
- }
7001
- </label>
7002
-
7003
- <div class="vp-field__control">
7004
- <ng-content />
7005
- </div>
7006
-
7007
- @if (hint) {
7008
- <p class="vp-field__hint" data-vp-hint [id]="hintId">{{ hint }}</p>
7009
- }
7010
-
7011
- @if (error) {
7012
- <p class="vp-field__error" data-vp-error role="alert" [id]="errorId">{{ error }}</p>
7013
- }
7014
- </div>
7015
- `, styles: [":host{display:block}.vp-field{display:flex;flex-direction:column;gap:var(--vp-space-1);max-width:880px;margin-bottom:var(--vp-space-4)}.vp-field__label{color:var(--vp-text-primary);font-size:var(--vp-text-sm);font-weight:var(--vp-weight-medium)}.vp-field__required{margin-left:2px;color:var(--vp-sev-critical)}.vp-field__control ::ng-deep input,.vp-field__control ::ng-deep select,.vp-field__control ::ng-deep textarea{width:100%;min-height:var(--vp-control-height);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font-family:inherit;font-size:var(--vp-text-base)}.vp-field__control ::ng-deep input:focus-visible,.vp-field__control ::ng-deep select:focus-visible,.vp-field__control ::ng-deep textarea:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-field__control ::ng-deep [aria-invalid=true]{border-color:var(--vp-sev-critical);border-width:2px}.vp-field__control ::ng-deep :disabled{background:var(--vp-surface-sunken);color:var(--vp-text-muted);cursor:not-allowed}.vp-field__control ::ng-deep [readonly]{background:var(--vp-surface-sunken);border-style:dashed;color:var(--vp-text-primary)}.vp-field__hint{margin:0;color:var(--vp-text-muted);font-size:var(--vp-text-xs)}.vp-field__error{margin:0;color:var(--vp-sev-critical);font-size:var(--vp-text-xs)}\n"] }]
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
+ `, 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"] }]
7016
7353
  }], propDecorators: { label: [{
7017
7354
  type: Input,
7018
7355
  args: [{ required: true }]
7356
+ }], labelStyle: [{
7357
+ type: Input
7019
7358
  }], hint: [{
7020
7359
  type: Input
7021
7360
  }], error: [{