@virusis/angular-ui 0.1.16 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/virusis-angular-ui.mjs +1793 -1090
- package/fesm2022/virusis-angular-ui.mjs.map +1 -1
- package/index.d.ts +205 -15
- package/index.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -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,
|
|
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
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
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
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
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
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
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.
|
|
@@ -2528,466 +2686,512 @@ class VpSidebarComponent {
|
|
|
2528
2686
|
this.closeFlyout();
|
|
2529
2687
|
}
|
|
2530
2688
|
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
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
[attr.
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
[attr.
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
<i class="
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
[attr.
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
[attr.
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
}
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
[attr.
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
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
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
[attr.
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
[attr.
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
<i class="
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
[attr.
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
[attr.
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
}
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
[attr.
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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: "
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
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
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
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
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
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
|
-
</
|
|
3374
|
-
|
|
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
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
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
|
-
</
|
|
3401
|
-
|
|
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
|
}] } });
|
|
@@ -3839,6 +4152,319 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
3839
4152
|
type: Output
|
|
3840
4153
|
}] } });
|
|
3841
4154
|
|
|
4155
|
+
/** Varsayılan (Türkçe) metinler. `{n}` bekleyen sayısı, `{s}` saniye. */
|
|
4156
|
+
const VP_ISLAND_LABELS = {
|
|
4157
|
+
closeLabel: 'Bildirimi kapat',
|
|
4158
|
+
goLabel: 'Bildirimlere git',
|
|
4159
|
+
pendingLabel: '{n} bildirim daha',
|
|
4160
|
+
remainingLabel: '{s} saniye sonra kapanır',
|
|
4161
|
+
stickyLabel: 'Kapatılana kadar açık kalır',
|
|
4162
|
+
};
|
|
4163
|
+
/**
|
|
4164
|
+
* Kritik bildirim: `sticky` ya da `danger`. Tostun "hata kendiliğinden kapanmaz" kuralıyla aynı — iki yüzeyde aynı
|
|
4165
|
+
* tonun farklı davranması kullanıcıya iki ayrı kural öğretirdi.
|
|
4166
|
+
*/
|
|
4167
|
+
function vpIslandIsCritical(notice) {
|
|
4168
|
+
return !!notice && (notice.sticky === true || notice.tone === 'danger');
|
|
4169
|
+
}
|
|
4170
|
+
class VpNotificationIslandComponent {
|
|
4171
|
+
constructor() {
|
|
4172
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
4173
|
+
this.notice = null;
|
|
4174
|
+
/** Sırada bekleyen bildirim sayısı — "+N". Sırayı uygulama tutuyor. */
|
|
4175
|
+
this.pending = 0;
|
|
4176
|
+
/** Kritik olmayan bildirimin ekranda kalma süresi (ms). */
|
|
4177
|
+
this.duration = 6000;
|
|
4178
|
+
this.closeLabel = VP_ISLAND_LABELS.closeLabel;
|
|
4179
|
+
this.goLabel = VP_ISLAND_LABELS.goLabel;
|
|
4180
|
+
this.pendingLabel = VP_ISLAND_LABELS.pendingLabel;
|
|
4181
|
+
this.remainingLabel = VP_ISLAND_LABELS.remainingLabel;
|
|
4182
|
+
this.stickyLabel = VP_ISLAND_LABELS.stickyLabel;
|
|
4183
|
+
/** Hedefli bildirim tıklandı. Ada kapanıyor; gezinme uygulamanın işi. */
|
|
4184
|
+
this.opened = new EventEmitter();
|
|
4185
|
+
/** Süre doldu, kapat düğmesi ya da Escape. */
|
|
4186
|
+
this.dismissed = new EventEmitter();
|
|
4187
|
+
/** Halkayı baştan başlatmak için yeniden çizim anahtarı. */
|
|
4188
|
+
this.cycle = 0;
|
|
4189
|
+
this.closedId = null;
|
|
4190
|
+
this.timer = null;
|
|
4191
|
+
this.paused = false;
|
|
4192
|
+
}
|
|
4193
|
+
get visible() {
|
|
4194
|
+
return !!this.notice && this.notice.id !== this.closedId;
|
|
4195
|
+
}
|
|
4196
|
+
get critical() {
|
|
4197
|
+
return vpIslandIsCritical(this.notice);
|
|
4198
|
+
}
|
|
4199
|
+
get hasTarget() {
|
|
4200
|
+
return this.notice?.target !== undefined && this.notice?.target !== null;
|
|
4201
|
+
}
|
|
4202
|
+
get pendingText() {
|
|
4203
|
+
return this.pendingLabel.replace('{n}', String(this.pending));
|
|
4204
|
+
}
|
|
4205
|
+
get remainingText() {
|
|
4206
|
+
return this.critical
|
|
4207
|
+
? this.stickyLabel
|
|
4208
|
+
: this.remainingLabel.replace('{s}', String(Math.round(this.duration / 1000)));
|
|
4209
|
+
}
|
|
4210
|
+
ngOnChanges(changes) {
|
|
4211
|
+
if (!changes['notice'] && !changes['duration'])
|
|
4212
|
+
return;
|
|
4213
|
+
if (!this.notice) {
|
|
4214
|
+
this.clearTimer();
|
|
4215
|
+
this.closedId = null;
|
|
4216
|
+
return;
|
|
4217
|
+
}
|
|
4218
|
+
// Yeni kimlik "kapatıldı" bilgisini sıfırlıyor; aynı kimlik kapalı kalıyor.
|
|
4219
|
+
if (this.notice.id !== this.closedId)
|
|
4220
|
+
this.closedId = null;
|
|
4221
|
+
if (this.visible)
|
|
4222
|
+
this.restart();
|
|
4223
|
+
}
|
|
4224
|
+
ngOnDestroy() {
|
|
4225
|
+
this.clearTimer();
|
|
4226
|
+
}
|
|
4227
|
+
onKeydown(event) {
|
|
4228
|
+
if (event.key !== 'Escape' || event.defaultPrevented || !this.visible)
|
|
4229
|
+
return;
|
|
4230
|
+
this.close();
|
|
4231
|
+
}
|
|
4232
|
+
open() {
|
|
4233
|
+
const notice = this.hide();
|
|
4234
|
+
if (notice)
|
|
4235
|
+
this.opened.emit(notice);
|
|
4236
|
+
}
|
|
4237
|
+
close() {
|
|
4238
|
+
const notice = this.hide();
|
|
4239
|
+
if (notice)
|
|
4240
|
+
this.dismissed.emit(notice);
|
|
4241
|
+
}
|
|
4242
|
+
pause() {
|
|
4243
|
+
if (!this.visible)
|
|
4244
|
+
return;
|
|
4245
|
+
this.clearTimer();
|
|
4246
|
+
this.paused = true;
|
|
4247
|
+
}
|
|
4248
|
+
resume() {
|
|
4249
|
+
if (!this.paused)
|
|
4250
|
+
return;
|
|
4251
|
+
this.paused = false;
|
|
4252
|
+
this.restart();
|
|
4253
|
+
this.cdr.markForCheck();
|
|
4254
|
+
}
|
|
4255
|
+
onFocusOut(event) {
|
|
4256
|
+
const next = event.relatedTarget;
|
|
4257
|
+
if (next && event.currentTarget.contains(next))
|
|
4258
|
+
return;
|
|
4259
|
+
this.resume();
|
|
4260
|
+
}
|
|
4261
|
+
restart() {
|
|
4262
|
+
this.clearTimer();
|
|
4263
|
+
this.paused = false;
|
|
4264
|
+
this.cycle += 1;
|
|
4265
|
+
if (!this.visible || this.critical)
|
|
4266
|
+
return;
|
|
4267
|
+
this.timer = setTimeout(() => this.close(), this.duration);
|
|
4268
|
+
}
|
|
4269
|
+
hide() {
|
|
4270
|
+
const notice = this.notice;
|
|
4271
|
+
if (!notice || !this.visible)
|
|
4272
|
+
return null;
|
|
4273
|
+
this.clearTimer();
|
|
4274
|
+
this.paused = false;
|
|
4275
|
+
this.closedId = notice.id;
|
|
4276
|
+
this.cdr.markForCheck();
|
|
4277
|
+
return notice;
|
|
4278
|
+
}
|
|
4279
|
+
clearTimer() {
|
|
4280
|
+
if (this.timer === null)
|
|
4281
|
+
return;
|
|
4282
|
+
clearTimeout(this.timer);
|
|
4283
|
+
this.timer = null;
|
|
4284
|
+
}
|
|
4285
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpNotificationIslandComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4286
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpNotificationIslandComponent, isStandalone: true, selector: "vp-notification-island", inputs: { notice: "notice", pending: "pending", duration: "duration", closeLabel: "closeLabel", goLabel: "goLabel", pendingLabel: "pendingLabel", remainingLabel: "remainingLabel", stickyLabel: "stickyLabel" }, outputs: { opened: "opened", dismissed: "dismissed" }, host: { listeners: { "document:keydown": "onKeydown($event)" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
4287
|
+
<div
|
|
4288
|
+
class="vp-island"
|
|
4289
|
+
data-vp-island-region
|
|
4290
|
+
[attr.role]="critical ? 'alert' : 'status'"
|
|
4291
|
+
[attr.aria-live]="critical ? 'assertive' : 'polite'"
|
|
4292
|
+
aria-atomic="true">
|
|
4293
|
+
@if (visible ? notice : null; as n) {
|
|
4294
|
+
<div
|
|
4295
|
+
class="vp-island__frame"
|
|
4296
|
+
data-vp-island
|
|
4297
|
+
[attr.data-tone]="n.tone"
|
|
4298
|
+
[attr.data-critical]="critical ? 'true' : null"
|
|
4299
|
+
(pointerenter)="pause()"
|
|
4300
|
+
(pointerleave)="resume()"
|
|
4301
|
+
(focusin)="pause()"
|
|
4302
|
+
(focusout)="onFocusOut($event)">
|
|
4303
|
+
@if (hasTarget) {
|
|
4304
|
+
<button type="button" class="vp-island__card" data-vp-island-open (click)="open()">
|
|
4305
|
+
<ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: n }" />
|
|
4306
|
+
</button>
|
|
4307
|
+
} @else {
|
|
4308
|
+
<div class="vp-island__card" data-vp-island-static>
|
|
4309
|
+
<ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: n }" />
|
|
4310
|
+
</div>
|
|
4311
|
+
}
|
|
4312
|
+
<button
|
|
4313
|
+
type="button"
|
|
4314
|
+
class="vp-island__close"
|
|
4315
|
+
data-vp-island-close
|
|
4316
|
+
[attr.aria-label]="closeLabel"
|
|
4317
|
+
[attr.title]="closeLabel"
|
|
4318
|
+
(click)="close()">
|
|
4319
|
+
<span aria-hidden="true">✕</span>
|
|
4320
|
+
</button>
|
|
4321
|
+
</div>
|
|
4322
|
+
}
|
|
4323
|
+
</div>
|
|
4324
|
+
|
|
4325
|
+
<ng-template #content let-n>
|
|
4326
|
+
<span class="vp-island__row">
|
|
4327
|
+
@for (c of [cycle]; track c) {
|
|
4328
|
+
<span class="vp-island__timer" aria-hidden="true">
|
|
4329
|
+
<svg viewBox="0 0 20 20" focusable="false">
|
|
4330
|
+
<circle
|
|
4331
|
+
class="vp-island__ring"
|
|
4332
|
+
data-vp-island-ring
|
|
4333
|
+
cx="10"
|
|
4334
|
+
cy="10"
|
|
4335
|
+
r="7"
|
|
4336
|
+
[style.animation-duration.ms]="duration"></circle>
|
|
4337
|
+
<circle class="vp-island__core" cx="10" cy="10" r="2.7"></circle>
|
|
4338
|
+
</svg>
|
|
4339
|
+
</span>
|
|
4340
|
+
}
|
|
4341
|
+
<span class="vp-island__title">{{ n.title }}</span>
|
|
4342
|
+
@if (pending > 0) {
|
|
4343
|
+
<span class="vp-island__more" data-vp-island-pending aria-hidden="true">+{{ pending }}</span>
|
|
4344
|
+
<span class="vp-visually-hidden">{{ pendingText }}</span>
|
|
4345
|
+
}
|
|
4346
|
+
@if (n.timeLabel) {
|
|
4347
|
+
<span class="vp-island__at">{{ n.timeLabel }}</span>
|
|
4348
|
+
}
|
|
4349
|
+
</span>
|
|
4350
|
+
@if (n.detail || hasTarget) {
|
|
4351
|
+
<span class="vp-island__body">
|
|
4352
|
+
@if (n.detail) {
|
|
4353
|
+
<span>{{ n.detail }}</span>
|
|
4354
|
+
}
|
|
4355
|
+
@if (hasTarget) {
|
|
4356
|
+
<span class="vp-island__go">{{ goLabel }}<span aria-hidden="true"> →</span></span>
|
|
4357
|
+
}
|
|
4358
|
+
</span>
|
|
4359
|
+
}
|
|
4360
|
+
<span class="vp-visually-hidden" data-vp-island-remaining>{{ remainingText }}</span>
|
|
4361
|
+
</ng-template>
|
|
4362
|
+
`, isInline: true, styles: [":host{display:contents}.vp-island{position:fixed;top:var(--vp-space-2, .5rem);left:50%;z-index:70;width:0;height:0;pointer-events:none}.vp-island__frame{--vp-island-tone: var(--vp-brand);position:absolute;top:0;left:0;translate:-50% 0;width:max-content;max-width:min(32.5rem,calc(100vw - 1.25rem));border:1px solid var(--vp-border-strong);border-radius:var(--vp-radius-full);background:var(--vp-surface-raised);box-shadow:var(--vp-shadow-lg);overflow:hidden;pointer-events:auto;transition:border-radius var(--vp-duration-fast, .15s) var(--vp-ease-standard, ease);animation:vp-island-in .24s cubic-bezier(.2,.9,.3,1.25)}.vp-island__frame[data-tone=success]{--vp-island-tone: var(--vp-sev-clean)}.vp-island__frame[data-tone=warning]{--vp-island-tone: var(--vp-sev-medium)}.vp-island__frame[data-tone=danger],.vp-island__frame[data-critical=true]{--vp-island-tone: var(--vp-sev-critical)}.vp-island__card{display:block;width:100%;margin:0;padding:0;border:0;border-radius:inherit;background:transparent;font:inherit;color:inherit;text-align:left}button.vp-island__card{cursor:pointer}.vp-island__frame:hover,.vp-island__frame:focus-within{border-radius:var(--vp-radius-lg)}.vp-island__row{display:flex;align-items:center;gap:var(--vp-space-2, .5rem);min-height:2.125rem;padding:0 var(--vp-space-3, .75rem) 0 var(--vp-space-2, .5rem)}.vp-island__title{min-width:0;overflow:hidden;font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold, 600);color:var(--vp-text-primary);white-space:nowrap;text-overflow:ellipsis}.vp-island__more{flex:none;padding:1px var(--vp-space-2, .5rem);border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken);font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);color:var(--vp-text-muted)}.vp-island__at{flex:none;font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);color:var(--vp-text-muted);font-variant-numeric:tabular-nums}.vp-island__timer{flex:none;display:block;width:1.25rem;height:1.25rem}.vp-island__timer svg{display:block;width:100%;height:100%;transform:rotate(-90deg)}.vp-island__ring{fill:none;stroke:var(--vp-island-tone);stroke-width:1.6;stroke-dasharray:44;stroke-linecap:round;animation:vp-island-drain 6s linear forwards}.vp-island__core{fill:var(--vp-island-tone)}.vp-island__frame:hover .vp-island__ring,.vp-island__frame:focus-within .vp-island__ring{animation-play-state:paused}.vp-island__frame[data-critical=true] .vp-island__ring{animation:none}.vp-island__body{display:block;max-height:0;opacity:0;overflow:hidden;padding:0 var(--vp-space-3, .75rem) 0 2.25rem;font-size:var(--vp-text-sm);line-height:1.5;color:var(--vp-text-secondary);transition:max-height .2s ease,opacity .2s ease,padding-bottom .2s ease}.vp-island__frame:hover .vp-island__body,.vp-island__frame:focus-within .vp-island__body{max-height:6rem;opacity:1;padding-bottom:var(--vp-space-3, .75rem)}.vp-island__go{margin-left:var(--vp-space-1, .25rem);color:var(--vp-island-tone);white-space:nowrap}.vp-island__close{position:absolute;top:1.0625rem;right:var(--vp-space-1, .25rem);transform:translateY(-50%);display:grid;place-items:center;min-width:var(--vp-min-target);min-height:var(--vp-min-target);padding:0;border:0;border-radius:var(--vp-radius-full);background:transparent;font:inherit;font-size:var(--vp-text-xs);line-height:1;color:var(--vp-text-muted);cursor:pointer;opacity:0;transition:opacity var(--vp-duration-fast, .15s) ease}.vp-island__frame:hover .vp-island__close,.vp-island__frame:focus-within .vp-island__close,.vp-island__frame[data-critical=true] .vp-island__close{opacity:1}.vp-island__frame:hover .vp-island__row,.vp-island__frame:focus-within .vp-island__row,.vp-island__frame[data-critical=true] .vp-island__row{padding-right:2rem}.vp-island__close:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-island__card:focus-visible,.vp-island__close:focus-visible{outline:2px solid var(--vp-brand);outline-offset:2px}.vp-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@keyframes vp-island-in{0%{transform:translateY(-.875rem) scale(.92);opacity:0}to{transform:none;opacity:1}}@keyframes vp-island-in-up{0%{transform:translateY(.875rem) scale(.94);opacity:0}to{transform:none;opacity:1}}@keyframes vp-island-drain{to{stroke-dashoffset:44}}@media(hover:none){.vp-island__close{opacity:1}.vp-island__row{padding-right:2rem}}@media(max-width:900px){.vp-island{top:auto;bottom:max(.75rem,env(safe-area-inset-bottom))}.vp-island__frame{top:auto;bottom:0;max-width:calc(100vw - 1rem);animation-name:vp-island-in-up}}@media(prefers-reduced-motion:reduce){.vp-island__frame,.vp-island__body,.vp-island__close{animation:none;transition:none}.vp-island__ring{display:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4363
|
+
}
|
|
4364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpNotificationIslandComponent, decorators: [{
|
|
4365
|
+
type: Component,
|
|
4366
|
+
args: [{ selector: 'vp-notification-island', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet], template: `
|
|
4367
|
+
<div
|
|
4368
|
+
class="vp-island"
|
|
4369
|
+
data-vp-island-region
|
|
4370
|
+
[attr.role]="critical ? 'alert' : 'status'"
|
|
4371
|
+
[attr.aria-live]="critical ? 'assertive' : 'polite'"
|
|
4372
|
+
aria-atomic="true">
|
|
4373
|
+
@if (visible ? notice : null; as n) {
|
|
4374
|
+
<div
|
|
4375
|
+
class="vp-island__frame"
|
|
4376
|
+
data-vp-island
|
|
4377
|
+
[attr.data-tone]="n.tone"
|
|
4378
|
+
[attr.data-critical]="critical ? 'true' : null"
|
|
4379
|
+
(pointerenter)="pause()"
|
|
4380
|
+
(pointerleave)="resume()"
|
|
4381
|
+
(focusin)="pause()"
|
|
4382
|
+
(focusout)="onFocusOut($event)">
|
|
4383
|
+
@if (hasTarget) {
|
|
4384
|
+
<button type="button" class="vp-island__card" data-vp-island-open (click)="open()">
|
|
4385
|
+
<ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: n }" />
|
|
4386
|
+
</button>
|
|
4387
|
+
} @else {
|
|
4388
|
+
<div class="vp-island__card" data-vp-island-static>
|
|
4389
|
+
<ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ $implicit: n }" />
|
|
4390
|
+
</div>
|
|
4391
|
+
}
|
|
4392
|
+
<button
|
|
4393
|
+
type="button"
|
|
4394
|
+
class="vp-island__close"
|
|
4395
|
+
data-vp-island-close
|
|
4396
|
+
[attr.aria-label]="closeLabel"
|
|
4397
|
+
[attr.title]="closeLabel"
|
|
4398
|
+
(click)="close()">
|
|
4399
|
+
<span aria-hidden="true">✕</span>
|
|
4400
|
+
</button>
|
|
4401
|
+
</div>
|
|
4402
|
+
}
|
|
4403
|
+
</div>
|
|
4404
|
+
|
|
4405
|
+
<ng-template #content let-n>
|
|
4406
|
+
<span class="vp-island__row">
|
|
4407
|
+
@for (c of [cycle]; track c) {
|
|
4408
|
+
<span class="vp-island__timer" aria-hidden="true">
|
|
4409
|
+
<svg viewBox="0 0 20 20" focusable="false">
|
|
4410
|
+
<circle
|
|
4411
|
+
class="vp-island__ring"
|
|
4412
|
+
data-vp-island-ring
|
|
4413
|
+
cx="10"
|
|
4414
|
+
cy="10"
|
|
4415
|
+
r="7"
|
|
4416
|
+
[style.animation-duration.ms]="duration"></circle>
|
|
4417
|
+
<circle class="vp-island__core" cx="10" cy="10" r="2.7"></circle>
|
|
4418
|
+
</svg>
|
|
4419
|
+
</span>
|
|
4420
|
+
}
|
|
4421
|
+
<span class="vp-island__title">{{ n.title }}</span>
|
|
4422
|
+
@if (pending > 0) {
|
|
4423
|
+
<span class="vp-island__more" data-vp-island-pending aria-hidden="true">+{{ pending }}</span>
|
|
4424
|
+
<span class="vp-visually-hidden">{{ pendingText }}</span>
|
|
4425
|
+
}
|
|
4426
|
+
@if (n.timeLabel) {
|
|
4427
|
+
<span class="vp-island__at">{{ n.timeLabel }}</span>
|
|
4428
|
+
}
|
|
4429
|
+
</span>
|
|
4430
|
+
@if (n.detail || hasTarget) {
|
|
4431
|
+
<span class="vp-island__body">
|
|
4432
|
+
@if (n.detail) {
|
|
4433
|
+
<span>{{ n.detail }}</span>
|
|
4434
|
+
}
|
|
4435
|
+
@if (hasTarget) {
|
|
4436
|
+
<span class="vp-island__go">{{ goLabel }}<span aria-hidden="true"> →</span></span>
|
|
4437
|
+
}
|
|
4438
|
+
</span>
|
|
4439
|
+
}
|
|
4440
|
+
<span class="vp-visually-hidden" data-vp-island-remaining>{{ remainingText }}</span>
|
|
4441
|
+
</ng-template>
|
|
4442
|
+
`, styles: [":host{display:contents}.vp-island{position:fixed;top:var(--vp-space-2, .5rem);left:50%;z-index:70;width:0;height:0;pointer-events:none}.vp-island__frame{--vp-island-tone: var(--vp-brand);position:absolute;top:0;left:0;translate:-50% 0;width:max-content;max-width:min(32.5rem,calc(100vw - 1.25rem));border:1px solid var(--vp-border-strong);border-radius:var(--vp-radius-full);background:var(--vp-surface-raised);box-shadow:var(--vp-shadow-lg);overflow:hidden;pointer-events:auto;transition:border-radius var(--vp-duration-fast, .15s) var(--vp-ease-standard, ease);animation:vp-island-in .24s cubic-bezier(.2,.9,.3,1.25)}.vp-island__frame[data-tone=success]{--vp-island-tone: var(--vp-sev-clean)}.vp-island__frame[data-tone=warning]{--vp-island-tone: var(--vp-sev-medium)}.vp-island__frame[data-tone=danger],.vp-island__frame[data-critical=true]{--vp-island-tone: var(--vp-sev-critical)}.vp-island__card{display:block;width:100%;margin:0;padding:0;border:0;border-radius:inherit;background:transparent;font:inherit;color:inherit;text-align:left}button.vp-island__card{cursor:pointer}.vp-island__frame:hover,.vp-island__frame:focus-within{border-radius:var(--vp-radius-lg)}.vp-island__row{display:flex;align-items:center;gap:var(--vp-space-2, .5rem);min-height:2.125rem;padding:0 var(--vp-space-3, .75rem) 0 var(--vp-space-2, .5rem)}.vp-island__title{min-width:0;overflow:hidden;font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold, 600);color:var(--vp-text-primary);white-space:nowrap;text-overflow:ellipsis}.vp-island__more{flex:none;padding:1px var(--vp-space-2, .5rem);border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken);font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);color:var(--vp-text-muted)}.vp-island__at{flex:none;font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);color:var(--vp-text-muted);font-variant-numeric:tabular-nums}.vp-island__timer{flex:none;display:block;width:1.25rem;height:1.25rem}.vp-island__timer svg{display:block;width:100%;height:100%;transform:rotate(-90deg)}.vp-island__ring{fill:none;stroke:var(--vp-island-tone);stroke-width:1.6;stroke-dasharray:44;stroke-linecap:round;animation:vp-island-drain 6s linear forwards}.vp-island__core{fill:var(--vp-island-tone)}.vp-island__frame:hover .vp-island__ring,.vp-island__frame:focus-within .vp-island__ring{animation-play-state:paused}.vp-island__frame[data-critical=true] .vp-island__ring{animation:none}.vp-island__body{display:block;max-height:0;opacity:0;overflow:hidden;padding:0 var(--vp-space-3, .75rem) 0 2.25rem;font-size:var(--vp-text-sm);line-height:1.5;color:var(--vp-text-secondary);transition:max-height .2s ease,opacity .2s ease,padding-bottom .2s ease}.vp-island__frame:hover .vp-island__body,.vp-island__frame:focus-within .vp-island__body{max-height:6rem;opacity:1;padding-bottom:var(--vp-space-3, .75rem)}.vp-island__go{margin-left:var(--vp-space-1, .25rem);color:var(--vp-island-tone);white-space:nowrap}.vp-island__close{position:absolute;top:1.0625rem;right:var(--vp-space-1, .25rem);transform:translateY(-50%);display:grid;place-items:center;min-width:var(--vp-min-target);min-height:var(--vp-min-target);padding:0;border:0;border-radius:var(--vp-radius-full);background:transparent;font:inherit;font-size:var(--vp-text-xs);line-height:1;color:var(--vp-text-muted);cursor:pointer;opacity:0;transition:opacity var(--vp-duration-fast, .15s) ease}.vp-island__frame:hover .vp-island__close,.vp-island__frame:focus-within .vp-island__close,.vp-island__frame[data-critical=true] .vp-island__close{opacity:1}.vp-island__frame:hover .vp-island__row,.vp-island__frame:focus-within .vp-island__row,.vp-island__frame[data-critical=true] .vp-island__row{padding-right:2rem}.vp-island__close:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-island__card:focus-visible,.vp-island__close:focus-visible{outline:2px solid var(--vp-brand);outline-offset:2px}.vp-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@keyframes vp-island-in{0%{transform:translateY(-.875rem) scale(.92);opacity:0}to{transform:none;opacity:1}}@keyframes vp-island-in-up{0%{transform:translateY(.875rem) scale(.94);opacity:0}to{transform:none;opacity:1}}@keyframes vp-island-drain{to{stroke-dashoffset:44}}@media(hover:none){.vp-island__close{opacity:1}.vp-island__row{padding-right:2rem}}@media(max-width:900px){.vp-island{top:auto;bottom:max(.75rem,env(safe-area-inset-bottom))}.vp-island__frame{top:auto;bottom:0;max-width:calc(100vw - 1rem);animation-name:vp-island-in-up}}@media(prefers-reduced-motion:reduce){.vp-island__frame,.vp-island__body,.vp-island__close{animation:none;transition:none}.vp-island__ring{display:none}}\n"] }]
|
|
4443
|
+
}], propDecorators: { notice: [{
|
|
4444
|
+
type: Input
|
|
4445
|
+
}], pending: [{
|
|
4446
|
+
type: Input
|
|
4447
|
+
}], duration: [{
|
|
4448
|
+
type: Input
|
|
4449
|
+
}], closeLabel: [{
|
|
4450
|
+
type: Input
|
|
4451
|
+
}], goLabel: [{
|
|
4452
|
+
type: Input
|
|
4453
|
+
}], pendingLabel: [{
|
|
4454
|
+
type: Input
|
|
4455
|
+
}], remainingLabel: [{
|
|
4456
|
+
type: Input
|
|
4457
|
+
}], stickyLabel: [{
|
|
4458
|
+
type: Input
|
|
4459
|
+
}], opened: [{
|
|
4460
|
+
type: Output
|
|
4461
|
+
}], dismissed: [{
|
|
4462
|
+
type: Output
|
|
4463
|
+
}], onKeydown: [{
|
|
4464
|
+
type: HostListener,
|
|
4465
|
+
args: ['document:keydown', ['$event']]
|
|
4466
|
+
}] } });
|
|
4467
|
+
|
|
3842
4468
|
/**
|
|
3843
4469
|
* GlobalLayers — paket 17 §6.1, **P0**.
|
|
3844
4470
|
*
|
|
@@ -3864,6 +4490,17 @@ class VpGlobalLayersComponent {
|
|
|
3864
4490
|
/** Tam ekran yukleme ortusu. Uygulama acar/kapatir. */
|
|
3865
4491
|
this.loading = false;
|
|
3866
4492
|
this.loadingLabel = 'Yükleniyor';
|
|
4493
|
+
/** Bildirim adasında gösterilecek bildirim — uygulama karar veriyor (paket 28 · B2). */
|
|
4494
|
+
this.islandNotice = null;
|
|
4495
|
+
/** Sırada bekleyen bildirim sayısı ("+N"). */
|
|
4496
|
+
this.islandPending = 0;
|
|
4497
|
+
/** Ada metinleri; verilmeyen anahtar varsayılan (Türkçe) metinde kalır. */
|
|
4498
|
+
this.islandLabels = {};
|
|
4499
|
+
/** Hedefli bildirim tıklandı — gezinme uygulamada. */
|
|
4500
|
+
this.islandOpened = new EventEmitter();
|
|
4501
|
+
/** Süre doldu, kapatıldı ya da Escape. */
|
|
4502
|
+
this.islandDismissed = new EventEmitter();
|
|
4503
|
+
this.islandDefaults = VP_ISLAND_LABELS;
|
|
3867
4504
|
/**
|
|
3868
4505
|
* Aksiyonlu bildirimde dugmeye basildi.
|
|
3869
4506
|
*
|
|
@@ -3877,12 +4514,27 @@ class VpGlobalLayersComponent {
|
|
|
3877
4514
|
this.action.emit(id);
|
|
3878
4515
|
}
|
|
3879
4516
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpGlobalLayersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3880
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpGlobalLayersComponent, isStandalone: true, selector: "vp-global-layers", inputs: { loading: "loading", loadingLabel: "loadingLabel" }, outputs: { action: "action" }, ngImport: i0, template: `
|
|
4517
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpGlobalLayersComponent, isStandalone: true, selector: "vp-global-layers", inputs: { loading: "loading", loadingLabel: "loadingLabel", islandNotice: "islandNotice", islandPending: "islandPending", islandLabels: "islandLabels" }, outputs: { islandOpened: "islandOpened", islandDismissed: "islandDismissed", action: "action" }, ngImport: i0, template: `
|
|
3881
4518
|
<vp-toast
|
|
3882
4519
|
[toasts]="toastService.toasts()"
|
|
3883
4520
|
(dismissed)="toastService.dismiss($event)"
|
|
3884
4521
|
(actioned)="actioned($event)" />
|
|
3885
4522
|
|
|
4523
|
+
<!--
|
|
4524
|
+
Bildirim adası (paket 28 · B2): tostun yanında AYRI bölge. Tost işlemin sonucunu söyler, ada dışarıdan gelen
|
|
4525
|
+
olayı. Hangi bildirimin gösterileceği uygulamada; katman yalnız çiziyor ve olayları iletiyor.
|
|
4526
|
+
-->
|
|
4527
|
+
<vp-notification-island
|
|
4528
|
+
[notice]="islandNotice"
|
|
4529
|
+
[pending]="islandPending"
|
|
4530
|
+
[closeLabel]="islandLabels.closeLabel ?? islandDefaults.closeLabel"
|
|
4531
|
+
[goLabel]="islandLabels.goLabel ?? islandDefaults.goLabel"
|
|
4532
|
+
[pendingLabel]="islandLabels.pendingLabel ?? islandDefaults.pendingLabel"
|
|
4533
|
+
[remainingLabel]="islandLabels.remainingLabel ?? islandDefaults.remainingLabel"
|
|
4534
|
+
[stickyLabel]="islandLabels.stickyLabel ?? islandDefaults.stickyLabel"
|
|
4535
|
+
(opened)="islandOpened.emit($event)"
|
|
4536
|
+
(dismissed)="islandDismissed.emit($event)" />
|
|
4537
|
+
|
|
3886
4538
|
@if (loading) {
|
|
3887
4539
|
<div
|
|
3888
4540
|
class="vp-global-layers__overlay"
|
|
@@ -3893,16 +4545,31 @@ class VpGlobalLayersComponent {
|
|
|
3893
4545
|
<span class="vp-global-layers__spinner" aria-hidden="true"></span>
|
|
3894
4546
|
</div>
|
|
3895
4547
|
}
|
|
3896
|
-
`, isInline: true, styles: [".vp-global-layers__overlay{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--vp-surface-base, #0d1117) 70%,transparent)}.vp-global-layers__spinner{width:2rem;height:2rem;border:2px solid var(--vp-border-subtle, #30363d);border-top-color:var(--vp-brand, #2f81f7);border-radius:50%;animation:vp-global-layers-spin .7s linear infinite}@keyframes vp-global-layers-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.vp-global-layers__spinner{animation:vp-global-layers-pulse 1.6s ease-in-out infinite}@keyframes vp-global-layers-pulse{50%{opacity:.35}}}\n"], dependencies: [{ kind: "component", type: VpToastComponent, selector: "vp-toast", inputs: ["toasts", "dismissLabel", "defaultDismissMs"], outputs: ["dismissed", "actioned"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4548
|
+
`, isInline: true, styles: [".vp-global-layers__overlay{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--vp-surface-base, #0d1117) 70%,transparent)}.vp-global-layers__spinner{width:2rem;height:2rem;border:2px solid var(--vp-border-subtle, #30363d);border-top-color:var(--vp-brand, #2f81f7);border-radius:50%;animation:vp-global-layers-spin .7s linear infinite}@keyframes vp-global-layers-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.vp-global-layers__spinner{animation:vp-global-layers-pulse 1.6s ease-in-out infinite}@keyframes vp-global-layers-pulse{50%{opacity:.35}}}\n"], dependencies: [{ kind: "component", type: VpToastComponent, selector: "vp-toast", inputs: ["toasts", "dismissLabel", "defaultDismissMs"], outputs: ["dismissed", "actioned"] }, { kind: "component", type: VpNotificationIslandComponent, selector: "vp-notification-island", inputs: ["notice", "pending", "duration", "closeLabel", "goLabel", "pendingLabel", "remainingLabel", "stickyLabel"], outputs: ["opened", "dismissed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3897
4549
|
}
|
|
3898
4550
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpGlobalLayersComponent, decorators: [{
|
|
3899
4551
|
type: Component,
|
|
3900
|
-
args: [{ selector: 'vp-global-layers', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [VpToastComponent], template: `
|
|
4552
|
+
args: [{ selector: 'vp-global-layers', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [VpToastComponent, VpNotificationIslandComponent], template: `
|
|
3901
4553
|
<vp-toast
|
|
3902
4554
|
[toasts]="toastService.toasts()"
|
|
3903
4555
|
(dismissed)="toastService.dismiss($event)"
|
|
3904
4556
|
(actioned)="actioned($event)" />
|
|
3905
4557
|
|
|
4558
|
+
<!--
|
|
4559
|
+
Bildirim adası (paket 28 · B2): tostun yanında AYRI bölge. Tost işlemin sonucunu söyler, ada dışarıdan gelen
|
|
4560
|
+
olayı. Hangi bildirimin gösterileceği uygulamada; katman yalnız çiziyor ve olayları iletiyor.
|
|
4561
|
+
-->
|
|
4562
|
+
<vp-notification-island
|
|
4563
|
+
[notice]="islandNotice"
|
|
4564
|
+
[pending]="islandPending"
|
|
4565
|
+
[closeLabel]="islandLabels.closeLabel ?? islandDefaults.closeLabel"
|
|
4566
|
+
[goLabel]="islandLabels.goLabel ?? islandDefaults.goLabel"
|
|
4567
|
+
[pendingLabel]="islandLabels.pendingLabel ?? islandDefaults.pendingLabel"
|
|
4568
|
+
[remainingLabel]="islandLabels.remainingLabel ?? islandDefaults.remainingLabel"
|
|
4569
|
+
[stickyLabel]="islandLabels.stickyLabel ?? islandDefaults.stickyLabel"
|
|
4570
|
+
(opened)="islandOpened.emit($event)"
|
|
4571
|
+
(dismissed)="islandDismissed.emit($event)" />
|
|
4572
|
+
|
|
3906
4573
|
@if (loading) {
|
|
3907
4574
|
<div
|
|
3908
4575
|
class="vp-global-layers__overlay"
|
|
@@ -3918,6 +4585,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
3918
4585
|
type: Input
|
|
3919
4586
|
}], loadingLabel: [{
|
|
3920
4587
|
type: Input
|
|
4588
|
+
}], islandNotice: [{
|
|
4589
|
+
type: Input
|
|
4590
|
+
}], islandPending: [{
|
|
4591
|
+
type: Input
|
|
4592
|
+
}], islandLabels: [{
|
|
4593
|
+
type: Input
|
|
4594
|
+
}], islandOpened: [{
|
|
4595
|
+
type: Output
|
|
4596
|
+
}], islandDismissed: [{
|
|
4597
|
+
type: Output
|
|
3921
4598
|
}], action: [{
|
|
3922
4599
|
type: Output
|
|
3923
4600
|
}] } });
|
|
@@ -4267,6 +4944,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
4267
4944
|
class VpSearchTriggerComponent {
|
|
4268
4945
|
constructor() {
|
|
4269
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';
|
|
4270
4951
|
/** Gorsel kisayol ipucu. Bos birakilirsa hic cizilmez. */
|
|
4271
4952
|
this.hint = 'Ctrl K';
|
|
4272
4953
|
/**
|
|
@@ -4278,47 +4959,65 @@ class VpSearchTriggerComponent {
|
|
|
4278
4959
|
this.opened = new EventEmitter();
|
|
4279
4960
|
}
|
|
4280
4961
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSearchTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4281
|
-
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: `
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
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 }); }
|
|
4299
4987
|
}
|
|
4300
4988
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSearchTriggerComponent, decorators: [{
|
|
4301
4989
|
type: Component,
|
|
4302
|
-
args: [{ selector: 'vp-search-trigger', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonModule], template: `
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
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"] }]
|
|
4320
5015
|
}], propDecorators: { label: [{
|
|
4321
5016
|
type: Input
|
|
5017
|
+
}], variant: [{
|
|
5018
|
+
type: Input
|
|
5019
|
+
}], railLabel: [{
|
|
5020
|
+
type: Input
|
|
4322
5021
|
}], hint: [{
|
|
4323
5022
|
type: Input
|
|
4324
5023
|
}], keyShortcut: [{
|
|
@@ -6542,6 +7241,8 @@ let fieldSeq = 0;
|
|
|
6542
7241
|
*/
|
|
6543
7242
|
class VpFieldComponent {
|
|
6544
7243
|
constructor() {
|
|
7244
|
+
/** Etiket bicimi — default · caps (musteri konsolu prototipi `.field label`, paket 28). */
|
|
7245
|
+
this.labelStyle = 'default';
|
|
6545
7246
|
this.hint = null;
|
|
6546
7247
|
this.error = null;
|
|
6547
7248
|
this.required = false;
|
|
@@ -6602,56 +7303,58 @@ class VpFieldComponent {
|
|
|
6602
7303
|
this.cdr.markForCheck();
|
|
6603
7304
|
}
|
|
6604
7305
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6605
|
-
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: `
|
|
6606
|
-
<div class="vp-field">
|
|
6607
|
-
<label class="vp-field__label" [attr.for]="controlId">
|
|
6608
|
-
{{ label }}
|
|
6609
|
-
@if (required) {
|
|
6610
|
-
<span class="vp-field__required" data-vp-required aria-label="zorunlu alan">*</span>
|
|
6611
|
-
}
|
|
6612
|
-
</label>
|
|
6613
|
-
|
|
6614
|
-
<div class="vp-field__control">
|
|
6615
|
-
<ng-content />
|
|
6616
|
-
</div>
|
|
6617
|
-
|
|
6618
|
-
@if (hint) {
|
|
6619
|
-
<p class="vp-field__hint" data-vp-hint [id]="hintId">{{ hint }}</p>
|
|
6620
|
-
}
|
|
6621
|
-
|
|
6622
|
-
@if (error) {
|
|
6623
|
-
<p class="vp-field__error" data-vp-error role="alert" [id]="errorId">{{ error }}</p>
|
|
6624
|
-
}
|
|
6625
|
-
</div>
|
|
6626
|
-
`, 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 }); }
|
|
6627
7328
|
}
|
|
6628
7329
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpFieldComponent, decorators: [{
|
|
6629
7330
|
type: Component,
|
|
6630
|
-
args: [{ selector: 'vp-field', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
6631
|
-
<div class="vp-field">
|
|
6632
|
-
<label class="vp-field__label" [attr.for]="controlId">
|
|
6633
|
-
{{ label }}
|
|
6634
|
-
@if (required) {
|
|
6635
|
-
<span class="vp-field__required" data-vp-required aria-label="zorunlu alan">*</span>
|
|
6636
|
-
}
|
|
6637
|
-
</label>
|
|
6638
|
-
|
|
6639
|
-
<div class="vp-field__control">
|
|
6640
|
-
<ng-content />
|
|
6641
|
-
</div>
|
|
6642
|
-
|
|
6643
|
-
@if (hint) {
|
|
6644
|
-
<p class="vp-field__hint" data-vp-hint [id]="hintId">{{ hint }}</p>
|
|
6645
|
-
}
|
|
6646
|
-
|
|
6647
|
-
@if (error) {
|
|
6648
|
-
<p class="vp-field__error" data-vp-error role="alert" [id]="errorId">{{ error }}</p>
|
|
6649
|
-
}
|
|
6650
|
-
</div>
|
|
6651
|
-
`, 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"] }]
|
|
6652
7353
|
}], propDecorators: { label: [{
|
|
6653
7354
|
type: Input,
|
|
6654
7355
|
args: [{ required: true }]
|
|
7356
|
+
}], labelStyle: [{
|
|
7357
|
+
type: Input
|
|
6655
7358
|
}], hint: [{
|
|
6656
7359
|
type: Input
|
|
6657
7360
|
}], error: [{
|
|
@@ -10884,5 +11587,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
10884
11587
|
* Generated bundle index. Do not edit.
|
|
10885
11588
|
*/
|
|
10886
11589
|
|
|
10887
|
-
export { CONVERSION_MOMENTS, MAX_CONVERSION_PROMPTS_PER_SESSION, TRIAL_ROUTE_MAP, UTF8_BOM, VP_ANON_ID_HEX_LENGTH, VP_ANON_TOKEN_PORT, VP_API_BASE_URLS, VP_APP_KEY, VP_APP_PROMO_DAYS, VP_APP_PROMO_ENV, VP_APP_PROMO_KEY, VP_AUTH_ANON_CHAIN_ORDER, VP_AUTH_CHAIN_ORDER, VP_AUTH_HEALTH_CONFIG, VP_AUTH_SESSION_PORT, VP_AUTH_TOKEN_PORT, VP_CAPTCHA_PORT, VP_CONSOLE_GUARD_ROUTES, VP_CSRF_PORT, VP_DARK_CLASS, VP_DEEP_HEALTH_CONFIG, VP_DEFAULT_RETRY_AFTER_SECONDS, VP_I18N_NAMESPACE, VP_ICON_SPRITE_ID, VP_LIGHT_CLASS, VP_MAINTENANCE_PORT, VP_NAVIGATOR_ONLINE, VP_OWNERSHIP_PORT, VP_QUOTA_CRITICAL, VP_QUOTA_PORT, VP_QUOTA_WARN, VP_REDIRECT_MAX_LENGTH, VP_REQUEST_CONTEXT_PORT, VP_SAVED_VIEW_STORE, VP_SCAN_RANGE_MAX_MONTHS, VP_SHARE_TOKEN_PORT, VP_STATE_VARIANTS, VP_TABLE_PREFS_STORE, VP_THEME_STORAGE_KEY, VP_TRACKING_CACHE_TTL_MS, VP_UNSAVED_CHANGES_CONFIRM, VirusisUiModule, VpAnonTokenInterceptor, VpAppKeyInterceptor, VpAppPromoComponent, VpAppStoreEntryComponent, VpAppealFormComponent, VpAuthTokenInterceptor, VpBannerComponent, VpBreadcrumbComponent, VpButtonComponent, VpCaptchaInterceptor, VpCommandPaletteComponent, VpConfirmComponent, VpConnectivityService, VpContextToolbarComponent, VpCsrfInterceptor, VpDangerZoneComponent, VpDataTableComponent, VpDeepHealthService, VpDetectionRowComponent, VpDialogComponent, VpDrawerComponent, VpEngineResultComponent, VpFieldComponent, VpGlobalLayersComponent, VpHashValueComponent, VpHttpIdsInterceptor, VpIconSpriteService, VpIocListComponent, VpKpiCardComponent, VpMaintenanceInterceptor, VpMenuButtonComponent, VpNotificationTriggerComponent, VpPageHeaderComponent, VpProductSwitcherComponent, VpRateLimitInterceptor, VpRateLimitService, VpRiskScoreComponent, VpSaveBarComponent, VpScanTimelineComponent, VpScoreBreakdownComponent, VpScoreRingComponent, VpSearchTriggerComponent, VpSettingsShellComponent, VpSeverityBadgeComponent, VpShareTokenInterceptor, VpShellComponent, VpSidebarComponent, VpSidebarToggleComponent, VpSkipLinkComponent, VpStateComponent, VpThemeControlComponent, VpThemeService, VpToastComponent, VpToastService, VpTopbarComponent, VpUserMenuComponent, VpVerdictComponent, VpWithCredentialsInterceptor, checkBoth, collectRxBindings, conversionOfferFor, createFocusTrap, createLocalStoragePrefsStore, createLocalStorageViewStore, createScanAnnouncer, createTabSync, currentOrigin, defaultConditionDescriber, defineStaticMenu, findEmptyValues, findMissingKeys, findView, flattenKeys, focusableElements, formatCountdown, formatParityReport, isConditionMet, isPartialFailure, isSameOrigin, isUpStatus, mergeStageUpdate, messageFor, nextPrompt, provideVirusisApiClient, provideVpAuthAnon, provideVpAuthCore, provideVpConsoleGuards, reconcileColumnOrder, registerUnsavedChangesPrompt, removeView, resolveMenuConditions, resolveTrialRedirect, rxServiceKeyOf, shouldSurface, toCsv, toDeepState, toMenuItems, unmatchedRxClasses, upsertView, validateStaticMenu, validateVpRedirectUri, validateVpScanDateRange, verdictFor, visibleColumns, vpAnonIdFrom, vpAuthChainSlotOf, vpAuthGuard, vpAuthHealthGuard, vpAutoDismissMs, vpDeviceFingerprint, vpDeviceRawData, vpEnsureGuid, vpIsIosSafari, vpKey, vpOwnershipGuard, vpParseRetryAfter, vpQuotaGuard, vpResolveTrackingId, vpStoreUrlFor, vpUnsavedChangesGuard };
|
|
11590
|
+
export { CONVERSION_MOMENTS, MAX_CONVERSION_PROMPTS_PER_SESSION, TRIAL_ROUTE_MAP, UTF8_BOM, VP_ANON_ID_HEX_LENGTH, VP_ANON_TOKEN_PORT, VP_API_BASE_URLS, VP_APP_KEY, VP_APP_PROMO_DAYS, VP_APP_PROMO_ENV, VP_APP_PROMO_KEY, VP_AUTH_ANON_CHAIN_ORDER, VP_AUTH_CHAIN_ORDER, VP_AUTH_HEALTH_CONFIG, VP_AUTH_SESSION_PORT, VP_AUTH_TOKEN_PORT, VP_CAPTCHA_PORT, VP_CONSOLE_GUARD_ROUTES, VP_CSRF_PORT, VP_DARK_CLASS, VP_DEEP_HEALTH_CONFIG, VP_DEFAULT_RETRY_AFTER_SECONDS, VP_I18N_NAMESPACE, VP_ICON_SPRITE_ID, VP_ISLAND_LABELS, VP_LIGHT_CLASS, VP_MAINTENANCE_PORT, VP_NAVIGATOR_ONLINE, VP_OWNERSHIP_PORT, VP_QUOTA_CRITICAL, VP_QUOTA_PORT, VP_QUOTA_WARN, VP_REDIRECT_MAX_LENGTH, VP_REQUEST_CONTEXT_PORT, VP_SAVED_VIEW_STORE, VP_SCAN_RANGE_MAX_MONTHS, VP_SHARE_TOKEN_PORT, VP_STATE_VARIANTS, VP_TABLE_PREFS_STORE, VP_THEME_STORAGE_KEY, VP_TRACKING_CACHE_TTL_MS, VP_UNSAVED_CHANGES_CONFIRM, VirusisUiModule, VpAnonTokenInterceptor, VpAppKeyInterceptor, VpAppPromoComponent, VpAppStoreEntryComponent, VpAppealFormComponent, VpAuthTokenInterceptor, VpBannerComponent, VpBreadcrumbComponent, VpButtonComponent, VpCaptchaInterceptor, VpCommandPaletteComponent, VpConfirmComponent, VpConnectivityService, VpContextToolbarComponent, VpCsrfInterceptor, VpDangerZoneComponent, VpDataTableComponent, VpDeepHealthService, VpDetectionRowComponent, VpDialogComponent, VpDrawerComponent, VpEngineResultComponent, VpFieldComponent, VpGlobalLayersComponent, VpHashValueComponent, VpHttpIdsInterceptor, VpIconSpriteService, VpIocListComponent, VpKpiCardComponent, VpMaintenanceInterceptor, VpMenuButtonComponent, VpNotificationIslandComponent, VpNotificationTriggerComponent, VpPageHeaderComponent, VpProductSwitcherComponent, VpRateLimitInterceptor, VpRateLimitService, VpRiskScoreComponent, VpSaveBarComponent, VpScanTimelineComponent, VpScoreBreakdownComponent, VpScoreRingComponent, VpSearchTriggerComponent, VpSettingsShellComponent, VpSeverityBadgeComponent, VpShareTokenInterceptor, VpShellComponent, VpSidebarComponent, VpSidebarToggleComponent, VpSkipLinkComponent, VpStateComponent, VpThemeControlComponent, VpThemeService, VpToastComponent, VpToastService, VpTopbarComponent, VpUserMenuComponent, VpVerdictComponent, VpWithCredentialsInterceptor, checkBoth, collectRxBindings, conversionOfferFor, createFocusTrap, createLocalStoragePrefsStore, createLocalStorageViewStore, createScanAnnouncer, createTabSync, currentOrigin, defaultConditionDescriber, defineStaticMenu, findEmptyValues, findMissingKeys, findView, flattenKeys, focusableElements, formatCountdown, formatParityReport, isConditionMet, isPartialFailure, isSameOrigin, isUpStatus, mergeStageUpdate, messageFor, nextPrompt, provideVirusisApiClient, provideVpAuthAnon, provideVpAuthCore, provideVpConsoleGuards, reconcileColumnOrder, registerUnsavedChangesPrompt, removeView, resolveMenuConditions, resolveTrialRedirect, rxServiceKeyOf, shouldSurface, toCsv, toDeepState, toMenuItems, unmatchedRxClasses, upsertView, validateStaticMenu, validateVpRedirectUri, validateVpScanDateRange, verdictFor, visibleColumns, vpAnonIdFrom, vpAuthChainSlotOf, vpAuthGuard, vpAuthHealthGuard, vpAutoDismissMs, vpDeviceFingerprint, vpDeviceRawData, vpEnsureGuid, vpIsIosSafari, vpIslandIsCritical, vpKey, vpOwnershipGuard, vpParseRetryAfter, vpQuotaGuard, vpResolveTrackingId, vpStoreUrlFor, vpUnsavedChangesGuard };
|
|
10888
11591
|
//# sourceMappingURL=virusis-angular-ui.mjs.map
|