@virusis/angular-ui 0.2.4 → 0.2.5
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.
|
@@ -3264,6 +3264,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
3264
3264
|
args: ['document:pointerdown', ['$event']]
|
|
3265
3265
|
}] } });
|
|
3266
3266
|
|
|
3267
|
+
/**
|
|
3268
|
+
* Düz `<a href>` uygulama içi bağlantıyı Router'a devreder — vp-sidebar'daki `navigate` kuralının ortak hâli.
|
|
3269
|
+
*
|
|
3270
|
+
* 🔴 2026-11-05 canlı: kırıntı ve ayar bölümü bağlantıları `href` ile gidiyordu; her tıklama uygulamayı baştan
|
|
3271
|
+
* yüklüyordu. `href` ERİŞİLEBİLİRLİK için kalıyor (orta tık, yeni sekme, ekran okuyucu "bağlantı" der).
|
|
3272
|
+
*
|
|
3273
|
+
* Tarayıcıya bırakılanlar: Router yok, yol yok, harici adres, sol tık dışı ya da değiştirici tuşlu tıklama.
|
|
3274
|
+
*/
|
|
3275
|
+
function vpRouterClick(router, event, path) {
|
|
3276
|
+
if (!router || !path || /^(?:[a-z][a-z0-9+.-]*:)?\/\//i.test(path.trim()))
|
|
3277
|
+
return;
|
|
3278
|
+
if (event.button !== 0 || event.ctrlKey || event.metaKey || event.shiftKey || event.altKey)
|
|
3279
|
+
return;
|
|
3280
|
+
event.preventDefault();
|
|
3281
|
+
void router.navigateByUrl(path);
|
|
3282
|
+
}
|
|
3283
|
+
|
|
3267
3284
|
/**
|
|
3268
3285
|
* Kirinti izi — paket 05 · G5.
|
|
3269
3286
|
*
|
|
@@ -3275,6 +3292,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
3275
3292
|
*/
|
|
3276
3293
|
class VpBreadcrumbComponent {
|
|
3277
3294
|
constructor() {
|
|
3295
|
+
this.router = inject(Router, { optional: true });
|
|
3278
3296
|
this.trail = [];
|
|
3279
3297
|
this.navLabel = 'Kırıntı izi';
|
|
3280
3298
|
}
|
|
@@ -3306,6 +3324,10 @@ class VpBreadcrumbComponent {
|
|
|
3306
3324
|
return text.length > VpBreadcrumbComponent.MAX_LABEL ? text : null;
|
|
3307
3325
|
}
|
|
3308
3326
|
static { this.MAX_LABEL = 24; }
|
|
3327
|
+
/** Uygulama içi kırıntı Router'la — tam sayfa yükleme yok (2026-11-05). */
|
|
3328
|
+
follow(event, path) {
|
|
3329
|
+
vpRouterClick(this.router, event, path);
|
|
3330
|
+
}
|
|
3309
3331
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpBreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3310
3332
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpBreadcrumbComponent, isStandalone: true, selector: "vp-breadcrumb", inputs: { trail: "trail", navLabel: "navLabel" }, ngImport: i0, template: `
|
|
3311
3333
|
@if (trail.length > 0) {
|
|
@@ -3333,7 +3355,8 @@ class VpBreadcrumbComponent {
|
|
|
3333
3355
|
class="vp-breadcrumb__link"
|
|
3334
3356
|
data-vp-crumb
|
|
3335
3357
|
[attr.href]="crumb.path"
|
|
3336
|
-
[attr.title]="fullLabel(crumb.label)"
|
|
3358
|
+
[attr.title]="fullLabel(crumb.label)"
|
|
3359
|
+
(click)="follow($event, crumb.path)">{{ shortLabel(crumb.label) }}</a>
|
|
3337
3360
|
}
|
|
3338
3361
|
</li>
|
|
3339
3362
|
}
|
|
@@ -3370,7 +3393,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
3370
3393
|
class="vp-breadcrumb__link"
|
|
3371
3394
|
data-vp-crumb
|
|
3372
3395
|
[attr.href]="crumb.path"
|
|
3373
|
-
[attr.title]="fullLabel(crumb.label)"
|
|
3396
|
+
[attr.title]="fullLabel(crumb.label)"
|
|
3397
|
+
(click)="follow($event, crumb.path)">{{ shortLabel(crumb.label) }}</a>
|
|
3374
3398
|
}
|
|
3375
3399
|
</li>
|
|
3376
3400
|
}
|
|
@@ -8437,11 +8461,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
8437
8461
|
*/
|
|
8438
8462
|
class VpSettingsShellComponent {
|
|
8439
8463
|
constructor() {
|
|
8464
|
+
this.router = inject(Router, { optional: true });
|
|
8440
8465
|
this.sections = [];
|
|
8441
8466
|
/** Aktif bolumun "code" degeri — rotadan gelir. */
|
|
8442
8467
|
this.activeCode = null;
|
|
8443
8468
|
this.navLabel = 'Ayar bölümleri';
|
|
8444
8469
|
}
|
|
8470
|
+
/** Bölüm değişimi Router'la — her sekmede uygulamayı baştan yüklemiyor (2026-11-05). */
|
|
8471
|
+
follow(event, path) {
|
|
8472
|
+
vpRouterClick(this.router, event, path);
|
|
8473
|
+
}
|
|
8445
8474
|
get visibleSections() {
|
|
8446
8475
|
return (this.sections ?? []).filter(s => !s.hidden);
|
|
8447
8476
|
}
|
|
@@ -8474,7 +8503,8 @@ class VpSettingsShellComponent {
|
|
|
8474
8503
|
[attr.data-vp-section]="section.code"
|
|
8475
8504
|
[attr.href]="section.path"
|
|
8476
8505
|
[attr.aria-current]="section.code === activeCode ? 'page' : null"
|
|
8477
|
-
[class.vp-settings__link--active]="section.code === activeCode"
|
|
8506
|
+
[class.vp-settings__link--active]="section.code === activeCode"
|
|
8507
|
+
(click)="follow($event, section.path)">
|
|
8478
8508
|
<i [attr.class]="iconClass(section)" aria-hidden="true"></i>
|
|
8479
8509
|
{{ section.label }}
|
|
8480
8510
|
</a>
|
|
@@ -8516,7 +8546,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
8516
8546
|
[attr.data-vp-section]="section.code"
|
|
8517
8547
|
[attr.href]="section.path"
|
|
8518
8548
|
[attr.aria-current]="section.code === activeCode ? 'page' : null"
|
|
8519
|
-
[class.vp-settings__link--active]="section.code === activeCode"
|
|
8549
|
+
[class.vp-settings__link--active]="section.code === activeCode"
|
|
8550
|
+
(click)="follow($event, section.path)">
|
|
8520
8551
|
<i [attr.class]="iconClass(section)" aria-hidden="true"></i>
|
|
8521
8552
|
{{ section.label }}
|
|
8522
8553
|
</a>
|
|
@@ -11887,6 +11918,8 @@ class VpUserbackLoader {
|
|
|
11887
11918
|
widget_settings: { trigger_type: 'api' },
|
|
11888
11919
|
custom_data: customData,
|
|
11889
11920
|
user_data: { info: customData },
|
|
11921
|
+
// Mobil `Userback.language = localeCode`: form konsolun dilinde açılsın (yoksa İngilizce).
|
|
11922
|
+
...(this.document.documentElement.lang ? { language: this.document.documentElement.lang } : {}),
|
|
11890
11923
|
on_load: () => {
|
|
11891
11924
|
win.Userback?.open?.();
|
|
11892
11925
|
settle(true);
|