@virusis/angular-ui 0.1.4 → 0.1.8
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 +2176 -948
- package/fesm2022/virusis-angular-ui.mjs.map +1 -1
- package/index.d.ts +401 -17
- package/index.d.ts.map +1 -1
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter,
|
|
2
|
+
import { EventEmitter, OnChanges, SimpleChanges, TemplateRef, InjectionToken, OnInit, AfterViewChecked, OnDestroy, AfterContentInit, Provider, Type } from '@angular/core';
|
|
3
3
|
import { ThemeMode, VpSeverity, SeverityScale } from '@virusis/design-tokens';
|
|
4
4
|
export { THEME_MODES, ThemeMode } from '@virusis/design-tokens';
|
|
5
5
|
import { MenuItem } from 'primeng/api';
|
|
@@ -312,6 +312,53 @@ declare function nextPrompt(context: VpPromptContext): VpPromptKind | null;
|
|
|
312
312
|
/** Tarama sayısına uyan teklif; hiç tarama yoksa `null`. */
|
|
313
313
|
declare function conversionOfferFor(scanCount: number): VpConversionMoment | null;
|
|
314
314
|
|
|
315
|
+
/**
|
|
316
|
+
* Kabuk sozlesmesi - B1 · T5/T6.
|
|
317
|
+
*
|
|
318
|
+
* Kota ve dil kabugun kendi alani (B1-K2, B1-K3). Tipler burada duruyor ki
|
|
319
|
+
* konsollar bilesen dosyasini degil sozlesmeyi ice aktarsin.
|
|
320
|
+
*/
|
|
321
|
+
/**
|
|
322
|
+
* Kota esikleri - TEK kaynak.
|
|
323
|
+
*
|
|
324
|
+
* Olculdu (2026-09-08): prototiplerde %80 ve %85 birlikte kullaniliyordu;
|
|
325
|
+
* ayni doluluk bir ekranda sari, digerinde notrdu. Esik bir urun karari ve
|
|
326
|
+
* ekran basina tekrarlanamaz.
|
|
327
|
+
*/
|
|
328
|
+
declare const VP_QUOTA_WARN = 80;
|
|
329
|
+
declare const VP_QUOTA_CRITICAL = 90;
|
|
330
|
+
type VpQuotaLevel = 'ok' | 'warn' | 'critical';
|
|
331
|
+
interface VpQuotaSegment {
|
|
332
|
+
/** "Dosya", "URL" gibi kisa ad - dilimin title'inda gorunuyor. */
|
|
333
|
+
label: string;
|
|
334
|
+
value: number;
|
|
335
|
+
/** Ozel renk. Verilmezse olcekten sirayla atanir. */
|
|
336
|
+
color?: string;
|
|
337
|
+
}
|
|
338
|
+
interface VpQuota {
|
|
339
|
+
/** "Aylik tarama" gibi kisa ad - ekranda etiket ve aria-label. */
|
|
340
|
+
label: string;
|
|
341
|
+
used: number;
|
|
342
|
+
/** 0 ya da negatif: sinirsiz. Cubuk cizilir ama hep bos kalir. */
|
|
343
|
+
limit: number;
|
|
344
|
+
/** "12 gun kaldi" gibi ikincil satir - rayda gizleniyor. */
|
|
345
|
+
hint?: string;
|
|
346
|
+
/**
|
|
347
|
+
* Dagilim olceri - ISTEGE BAGLI.
|
|
348
|
+
*
|
|
349
|
+
* Tek renk bir cubuk "ne kadar doldu"yu soyluyor ama "neyle doldu"yu
|
|
350
|
+
* soylemiyor; kotayi neyin tukettigini gormeden kullanici davranisini
|
|
351
|
+
* degistiremez. Zorunlu olsaydi, dagilimi olmayan konsol uydurma bir
|
|
352
|
+
* dilim yazmak zorunda kalirdi.
|
|
353
|
+
*/
|
|
354
|
+
segments?: VpQuotaSegment[];
|
|
355
|
+
}
|
|
356
|
+
interface VpLanguage {
|
|
357
|
+
/** BCP-47 kodu - "tr", "en". Rayda buyuk harfle gosteriliyor. */
|
|
358
|
+
code: string;
|
|
359
|
+
label: string;
|
|
360
|
+
}
|
|
361
|
+
|
|
315
362
|
/**
|
|
316
363
|
* Uygulama kabugu — paket 05 · G2.
|
|
317
364
|
*
|
|
@@ -323,7 +370,7 @@ declare function conversionOfferFor(scanCount: number): VpConversionMoment | nul
|
|
|
323
370
|
* Uc uygulamada da ayri ayri yazilmis kabuklar vardi; bu bileşen onlarin
|
|
324
371
|
* yerine gecer. Icerik ng-content ile yansitilir, kabuk yerlesimi bilir.
|
|
325
372
|
*/
|
|
326
|
-
declare class VpShellComponent {
|
|
373
|
+
declare class VpShellComponent implements OnChanges {
|
|
327
374
|
/**
|
|
328
375
|
* Kenar cubugunun `id`'si — `vp-sidebar-toggle`'in `controls` girdisiyle
|
|
329
376
|
* AYNI olmali. Ikisinin varsayilani da `'vp-sidebar'`.
|
|
@@ -350,17 +397,122 @@ declare class VpShellComponent {
|
|
|
350
397
|
*/
|
|
351
398
|
menuMode: 'static' | 'overlay';
|
|
352
399
|
readonly collapsedChange: EventEmitter<boolean>;
|
|
400
|
+
/** Cekmece tetikleyicisinin erisilebilir adi — kapaliyken. */
|
|
401
|
+
/**
|
|
402
|
+
* Kota gostergesi - B1-K2: kabugun parcasi.
|
|
403
|
+
*
|
|
404
|
+
* Verilmezse cizilmiyor: kotasi olmayan bir konsola bos bir cubuk
|
|
405
|
+
* gostermek, olmayan bir siniri ima eder.
|
|
406
|
+
*/
|
|
407
|
+
quota?: VpQuota | null;
|
|
408
|
+
/** Dil secenekleri - bos birakilirsa denetim cizilmiyor. */
|
|
409
|
+
languages: VpLanguage[];
|
|
410
|
+
/** Secili dil kodu. Kabuk bunu YAZMIYOR, yalniz isaretliyor. */
|
|
411
|
+
language?: string;
|
|
412
|
+
languageLabel: string;
|
|
413
|
+
/**
|
|
414
|
+
* B1-K3: kabuk secimi YAYIYOR, uygulamiyor.
|
|
415
|
+
*
|
|
416
|
+
* document.documentElement.lang yazmak, localStorage'a kaydetmek ve
|
|
417
|
+
* ?lang= -> kayit -> tarayici sirasini uygulamak @virusis/i18n'in isi.
|
|
418
|
+
*/
|
|
419
|
+
readonly languageChange: EventEmitter<string>;
|
|
420
|
+
/** Doluluk yuzdesi - 0..100 arasina sikistiriliyor. */
|
|
421
|
+
protected get quotaPercent(): number;
|
|
422
|
+
/**
|
|
423
|
+
* Esik TEK yerde. Ekran basina esik tanimlamak, iki ekranda iki farkli
|
|
424
|
+
* "dolmak uzere" demektir - olculdu: prototiplerde %80 ve %85 birlikte
|
|
425
|
+
* kullaniliyordu.
|
|
426
|
+
*/
|
|
427
|
+
protected get quotaLevel(): VpQuotaLevel;
|
|
428
|
+
/**
|
|
429
|
+
* Dagilim dilimleri - yuzde ve title burada hesaplaniyor.
|
|
430
|
+
*
|
|
431
|
+
* Yuzde LIMITE gore, dilimlerin toplamina gore degil: dilimlerin toplami
|
|
432
|
+
* kullanimin altinda kalabilir (siniflandirilmamis kullanim) ve o zaman
|
|
433
|
+
* cubukta bos pay kalmasi DOGRU - toplama gore normalize etmek, dolu
|
|
434
|
+
* olmayan bir kotayi dolu gosterirdi.
|
|
435
|
+
*/
|
|
436
|
+
protected get quotaSegments(): {
|
|
437
|
+
label: string;
|
|
438
|
+
percent: number;
|
|
439
|
+
color: string;
|
|
440
|
+
title: string;
|
|
441
|
+
}[];
|
|
442
|
+
/** Rayda title, genis kipte deger olarak ayni metin - tek kaynak. */
|
|
443
|
+
protected get quotaText(): string;
|
|
444
|
+
menuOpenLabel: string;
|
|
445
|
+
/** Cekmece tetikleyicisinin erisilebilir adi — acikken. */
|
|
446
|
+
menuCloseLabel: string;
|
|
447
|
+
/**
|
|
448
|
+
* Cekmeceyi acar/kapatir.
|
|
449
|
+
*
|
|
450
|
+
* 🔴 Durum burada TUTULMUYOR: acik/kapali `collapsed` girdisinden
|
|
451
|
+
* tureiyor ve degisiklik `collapsedChange` ile uygulamaya gidiyor.
|
|
452
|
+
* Kabukta ikinci bir kopya tutmak, bu depoda tekrar eden "iki kaynak
|
|
453
|
+
* ayrisir" hatasini davet ederdi.
|
|
454
|
+
*/
|
|
455
|
+
protected toggleDrawer(): void;
|
|
456
|
+
/**
|
|
457
|
+
* 🔴 Dar ekranda menuyu KAPATMANIN klavye yolu.
|
|
458
|
+
*
|
|
459
|
+
* Olculdu (2026-09-07): menu acikken kenar cubugu ust cubugu da ortuyor,
|
|
460
|
+
* yani "daralt" dugmesi ekranda kaliyor ama TIKLANAMIYOR (Playwright
|
|
461
|
+
* `aside ... intercepts pointer events` diyerek dustu). Geriye maske
|
|
462
|
+
* kaliyordu ve o `aria-hidden` bir `div`: fareyle dokunulur, klavyeyle
|
|
463
|
+
* ulasilamaz. Yani klavye kullanicisi menuyu acabiliyor ama kapatamiyordu.
|
|
464
|
+
*
|
|
465
|
+
* ⚠️ Yalniz overlay kipinde: genis ekranda menu icerigi ortmuyor ve Esc'in
|
|
466
|
+
* kenar cubugunu kapatmasi, kullanicinin beklemedigi bir yerlesim degisikligi
|
|
467
|
+
* olurdu.
|
|
468
|
+
*/
|
|
469
|
+
protected onEscape(): void;
|
|
353
470
|
private readonly isBrowser;
|
|
354
471
|
/** Dar ekran mi — overlay'i zorunlu kilar. */
|
|
355
472
|
protected readonly narrow: i0.WritableSignal<boolean>;
|
|
356
473
|
/** Kenar cubugu icerigin USTUNDE mi duruyor. */
|
|
357
474
|
protected overlay(): boolean;
|
|
475
|
+
/**
|
|
476
|
+
* 🔴 ILK OLCUM `ngOnInit`'te, kurucuda DEGIL.
|
|
477
|
+
*
|
|
478
|
+
* Kurucuda yayin yapmak sessizce kayboluyor: cikti aboneligi bilesen
|
|
479
|
+
* kuruldiktan SONRA baglaniyor, yani ilk `collapsedChange` kimseye
|
|
480
|
+
* ulasmiyordu. Yalniz sonraki *degisiklikler* (pencereyi daraltmak, cihazi
|
|
481
|
+
* dondurmek) calisiyordu — bu yuzden elle denemede sorun gorunmuyordu.
|
|
482
|
+
*
|
|
483
|
+
* Belirtisi olculdu (2026-09-07): Customer Console'un on iki mobil gorsel
|
|
484
|
+
* temelinin hepsi ACIK menuyu gosteriyordu; ekranin kendisi maskenin altinda
|
|
485
|
+
* kaliyordu. Yani mobilde uygulama, kullanici menuyu kapatana kadar
|
|
486
|
+
* kullanilamiyordu ve gorsel kapi ekranlari degil menuyu olcuyordu.
|
|
487
|
+
*/
|
|
358
488
|
constructor();
|
|
359
489
|
/** Kenar cubugu daraltilmis mi (260px -> 64px) */
|
|
360
490
|
collapsed: boolean;
|
|
491
|
+
/**
|
|
492
|
+
* ⚠️ Sinyal tabanli `viewChild` DEGIL, dekorator.
|
|
493
|
+
*
|
|
494
|
+
* Olculdu (2026-09-08): kutuphane testleri JIT derlemesiyle kosuyor ve
|
|
495
|
+
* JIT'te sinyal sorgulari cozulmuyor — `sidebarRef()` daima `undefined`
|
|
496
|
+
* donuyordu, odak sessizce hicbir yere gitmiyordu. Ayni tuzak sinyal
|
|
497
|
+
* girdilerinde de var.
|
|
498
|
+
*/
|
|
499
|
+
private sidebarRef?;
|
|
500
|
+
/**
|
|
501
|
+
* 🔴 Cekmece acilinca odak ICERI giriyor.
|
|
502
|
+
*
|
|
503
|
+
* Olculdu (2026-09-08): menu acildiginda odak tetikleyicide kaliyordu;
|
|
504
|
+
* klavye kullanicisi menuyu aciyor ama iceri giremiyordu — Tab tusu once
|
|
505
|
+
* ust cubugun kalan ogelerini geziyor, cunku cekmece DOM'da onlardan
|
|
506
|
+
* SONRA duruyor.
|
|
507
|
+
*
|
|
508
|
+
* ⚠️ Kapaliyken kenar cubugu `inert`: ekran disindaki baglantilar sekme
|
|
509
|
+
* sirasinda durak olmasin. `inert` olmadan menu kapaliyken de Tab ile
|
|
510
|
+
* gorunmeyen yedi baglantiya girilebiliyordu.
|
|
511
|
+
*/
|
|
512
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
361
513
|
skipLabel: string;
|
|
362
514
|
static ɵfac: i0.ɵɵFactoryDeclaration<VpShellComponent, never>;
|
|
363
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VpShellComponent, "vp-shell", never, { "sidebarId": { "alias": "sidebarId"; "required": false; }; "menuMode": { "alias": "menuMode"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; "skipLabel": { "alias": "skipLabel"; "required": false; }; }, { "collapsedChange": "collapsedChange"; }, never, ["[topbar]", "[sidebar]", "*"], true, never>;
|
|
515
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VpShellComponent, "vp-shell", never, { "sidebarId": { "alias": "sidebarId"; "required": false; }; "menuMode": { "alias": "menuMode"; "required": false; }; "quota": { "alias": "quota"; "required": false; }; "languages": { "alias": "languages"; "required": false; }; "language": { "alias": "language"; "required": false; }; "languageLabel": { "alias": "languageLabel"; "required": false; }; "menuOpenLabel": { "alias": "menuOpenLabel"; "required": false; }; "menuCloseLabel": { "alias": "menuCloseLabel"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; "skipLabel": { "alias": "skipLabel"; "required": false; }; }, { "collapsedChange": "collapsedChange"; "languageChange": "languageChange"; }, never, ["[topbar]", "[sidebar]", "*", "[footer]"], true, never>;
|
|
364
516
|
}
|
|
365
517
|
|
|
366
518
|
/**
|
|
@@ -395,10 +547,35 @@ declare class VpSkipLinkComponent {
|
|
|
395
547
|
}
|
|
396
548
|
|
|
397
549
|
/**
|
|
398
|
-
* Sayfa basligi — paket 05 · G6.
|
|
550
|
+
* Sayfa basligi — paket 05 · G6 · paket 28 · G5.
|
|
399
551
|
*
|
|
400
552
|
* Sayfa basina TEK h1. Kabuk main landmark'i sagliyor; bu bilesen
|
|
401
553
|
* ona baslik veriyor. Aksiyonlar sagda, baslik solda.
|
|
554
|
+
*
|
|
555
|
+
* ## 🔴 Sekiz "varyant" AYRI BILESEN DEGIL
|
|
556
|
+
*
|
|
557
|
+
* `page-anatomy` §13 sekiz baslik varyanti sayiyor (Standard · Entity ·
|
|
558
|
+
* Settings · Dashboard · List · Wizard · Trial · Public). Sekiz bilesen
|
|
559
|
+
* yazmak, aralarindaki tek farkin **hangi yuvalarin dolduruldugu** oldugunu
|
|
560
|
+
* gorunmez kilardi: hepsi ayni satiri (baslik + durum + aksiyon) ve ayni alt
|
|
561
|
+
* satiri (aciklama · metadata) kullaniyor.
|
|
562
|
+
*
|
|
563
|
+
* Varyantlar bu bilesenin **kompozisyonlari**:
|
|
564
|
+
*
|
|
565
|
+
* | Varyant | Kompozisyon |
|
|
566
|
+
* |---|---|
|
|
567
|
+
* | Standard | `heading` + `description?` + `[actions]` |
|
|
568
|
+
* | Entity | `heading` + `[status]` + `[meta]` + `[actions]` + `[tabs]` |
|
|
569
|
+
* | Settings | `heading` + `description` (aksiyon yok — kaydetme cubugu altta) |
|
|
570
|
+
* | Dashboard | `heading` + `[actions]` (zaman araligi + yenile) |
|
|
571
|
+
* | List | `heading` + `count` + `[actions]` |
|
|
572
|
+
* | Wizard | `heading` + `description` + `[status]` (adim gostergesi) |
|
|
573
|
+
* | Trial | `heading` + `[status]` (rozet + kota) + `[actions]` |
|
|
574
|
+
* | Public | `heading` + `[actions]` (CTA) |
|
|
575
|
+
*
|
|
576
|
+
* ⚠️ Kirinti (breadcrumb) BURADA DEGIL: `vp-breadcrumb` kabuk seviyesinde ve
|
|
577
|
+
* baslikla ayni kutuda degil. Basliga tasinsaydi her ekran kirintiyi kendisi
|
|
578
|
+
* beslemek zorunda kalirdi; bugun rotadan turetiliyor.
|
|
402
579
|
*/
|
|
403
580
|
declare class VpPageHeaderComponent {
|
|
404
581
|
heading: string;
|
|
@@ -406,7 +583,7 @@ declare class VpPageHeaderComponent {
|
|
|
406
583
|
/** Kayit sayisi. 0 da gosterilir — "bos" ile "sifir" farkli bilgidir. */
|
|
407
584
|
count: number | null;
|
|
408
585
|
static ɵfac: i0.ɵɵFactoryDeclaration<VpPageHeaderComponent, never>;
|
|
409
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VpPageHeaderComponent, "vp-page-header", never, { "heading": { "alias": "heading"; "required": true; }; "description": { "alias": "description"; "required": false; }; "count": { "alias": "count"; "required": false; }; }, {}, never, ["[actions]"], true, never>;
|
|
586
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VpPageHeaderComponent, "vp-page-header", never, { "heading": { "alias": "heading"; "required": true; }; "description": { "alias": "description"; "required": false; }; "count": { "alias": "count"; "required": false; }; }, {}, never, ["[status]", "[meta]", "[actions]", "[tabs]"], true, never>;
|
|
410
587
|
}
|
|
411
588
|
|
|
412
589
|
type VpBannerTone = 'info' | 'warning' | 'danger' | 'success';
|
|
@@ -480,8 +657,17 @@ declare class VpTopbarComponent {
|
|
|
480
657
|
interface VpMenuItem {
|
|
481
658
|
/** Kararli kimlik — id degil; uygulamalar arasi tasinabilir olmali */
|
|
482
659
|
code: string;
|
|
483
|
-
/**
|
|
484
|
-
|
|
660
|
+
/**
|
|
661
|
+
* Rota. Menu kaydi rotasini KENDISI tasir; frontend'de elle esleme YOK.
|
|
662
|
+
*
|
|
663
|
+
* 🔴 **Cocuk tasiyan bir ust madde icin istege bagli.** Alt grup basligi bir
|
|
664
|
+
* yer degil, bir baslik: tiklayinca hicbir yere gitmeyen bir baglanti bozuk
|
|
665
|
+
* bir kontroldur ve `vp-sidebar` yolsuz ust maddeyi zaten baslik olarak
|
|
666
|
+
* ciziyor. Alan zorunlu birakildiginda cagiran taraf uydurma bir yol yazmak
|
|
667
|
+
* zorunda kalirdi — olculdu 2026-08-31: AdminPanel'in derlemesi tam bu
|
|
668
|
+
* yuzden dustu.
|
|
669
|
+
*/
|
|
670
|
+
path?: string;
|
|
485
671
|
/** i18n anahtari veya duz metin */
|
|
486
672
|
titleKey: string;
|
|
487
673
|
icon?: string;
|
|
@@ -511,6 +697,23 @@ interface VpMenuItem {
|
|
|
511
697
|
* Kural: gorunmeyen ozellik satilamaz.
|
|
512
698
|
*/
|
|
513
699
|
disabledReason?: string;
|
|
700
|
+
/**
|
|
701
|
+
* Alt maddeler — **bir seviye**.
|
|
702
|
+
*
|
|
703
|
+
* 🔴 Paket 16 · G6 icin eklendi. Olculdu (2026-08-31): AdminPanel menusu uc
|
|
704
|
+
* seviyeli (kategori -> alt grup -> madde) ve sozlesme tek `group` alaniyla
|
|
705
|
+
* iki seviye ciziyordu. Tasima ya orta seviyeyi dusururdu ya 64 maddeyi tek
|
|
706
|
+
* listeye yigardi; G6'nin kabul olcutu "64 madde AYNI gorunur" oldugu icin
|
|
707
|
+
* ikisi de kabul edilemezdi.
|
|
708
|
+
*
|
|
709
|
+
* ⚠️ Derinlik **bir seviye**: cocugun cocugu cizilmiyor. Daha derin bir menu
|
|
710
|
+
* kenar cubugunda okunamaz hale gelir ve bugun ihtiyac duyan tek tuketicinin
|
|
711
|
+
* (AdminPanel) sekli de derinlesmiyor.
|
|
712
|
+
*
|
|
713
|
+
* 📌 Yol tasimayan bir ust madde **baglanti degil**, baslik olarak ciziliyor:
|
|
714
|
+
* tiklayinca hicbir yere gitmeyen bir baglanti bozuk bir kontroldur.
|
|
715
|
+
*/
|
|
716
|
+
children?: VpMenuItem[];
|
|
514
717
|
}
|
|
515
718
|
interface VpCrumb {
|
|
516
719
|
label: string;
|
|
@@ -528,7 +731,7 @@ interface VpCrumb {
|
|
|
528
731
|
* Gorunmeyen ozellik satilamaz; "planiniza dahil degil" maddelerini gizlemek
|
|
529
732
|
* yerine sebebiyle gosteriyoruz.
|
|
530
733
|
*/
|
|
531
|
-
declare class VpSidebarComponent {
|
|
734
|
+
declare class VpSidebarComponent implements OnChanges {
|
|
532
735
|
items: VpMenuItem[];
|
|
533
736
|
collapsed: boolean;
|
|
534
737
|
navLabel: string;
|
|
@@ -545,6 +748,13 @@ declare class VpSidebarComponent {
|
|
|
545
748
|
* 📌 Sozlesme geriye uyumlu: hicbir madde `group` tasimazsa tek adsiz grup
|
|
546
749
|
* olusur ve cikti eskisiyle ayni kalir.
|
|
547
750
|
*/
|
|
751
|
+
/**
|
|
752
|
+
* Cizilecek cocuklar — gizliler dusuyor.
|
|
753
|
+
*
|
|
754
|
+
* ⚠️ Cocugun cocugu DONMUYOR: derinlik bir seviye. Daha derin bir menu kenar
|
|
755
|
+
* cubugunda okunamaz hale gelir; sozlesme de bunu soyluyor.
|
|
756
|
+
*/
|
|
757
|
+
protected childrenOf(item: VpMenuItem): VpMenuItem[];
|
|
548
758
|
protected get groups(): {
|
|
549
759
|
name: string;
|
|
550
760
|
items: VpMenuItem[];
|
|
@@ -560,6 +770,35 @@ declare class VpSidebarComponent {
|
|
|
560
770
|
*/
|
|
561
771
|
protected iconClass(item: VpMenuItem): string;
|
|
562
772
|
protected hasBadge(item: VpMenuItem): boolean;
|
|
773
|
+
private readonly host;
|
|
774
|
+
/** Acik ucan menunun ust maddesi - kapaliyken `null`. */
|
|
775
|
+
protected flyoutItem: VpMenuItem | null;
|
|
776
|
+
protected flyoutTop: number;
|
|
777
|
+
protected flyoutLeft: number;
|
|
778
|
+
/**
|
|
779
|
+
* Rayda grup tiklaninca ucan menu acilir/kapanir.
|
|
780
|
+
*
|
|
781
|
+
* Olculdu: onceki halde alt kalemler zaten gizli oldugu icin tiklama
|
|
782
|
+
* EKRANDA hicbir sey yapmiyordu. 64px'e alt kalem sigmaz; rayi gecici
|
|
783
|
+
* genisletmek ise tiklanan yeri kaydirir.
|
|
784
|
+
*/
|
|
785
|
+
protected toggleFlyout(item: VpMenuItem, event: Event): void;
|
|
786
|
+
protected closeFlyout(): void;
|
|
787
|
+
/**
|
|
788
|
+
* Konum tiklanan dugmenin dikdortgeninden; gorunum alanina sikistiriliyor.
|
|
789
|
+
* Alttaki bir kalem tiklandiginda menu ekranin altindan tasiyordu.
|
|
790
|
+
*/
|
|
791
|
+
private position;
|
|
792
|
+
/** Esc kapatiyor - acilan her katmanin geri cikisi olmali. */
|
|
793
|
+
protected onEscape(): void;
|
|
794
|
+
/**
|
|
795
|
+
* Disariya tiklamak kapatiyor. `pointerdown` bilerek: `click` kullanilsa
|
|
796
|
+
* menuyu acan tiklamanin kendisi belgeye kadar kabarip menuyu ayni anda
|
|
797
|
+
* kapatirdi.
|
|
798
|
+
*/
|
|
799
|
+
protected onPointerDown(event: Event): void;
|
|
800
|
+
/** Ray kipinden cikinca acik menu kapaniyor: genis kipte cocuklar akista. */
|
|
801
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
563
802
|
static ɵfac: i0.ɵɵFactoryDeclaration<VpSidebarComponent, never>;
|
|
564
803
|
static ɵcmp: i0.ɵɵComponentDeclaration<VpSidebarComponent, "vp-sidebar", never, { "items": { "alias": "items"; "required": true; }; "collapsed": { "alias": "collapsed"; "required": false; }; "navLabel": { "alias": "navLabel"; "required": false; }; "badgeLabel": { "alias": "badgeLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
565
804
|
}
|
|
@@ -776,6 +1015,21 @@ declare class VpThemeService {
|
|
|
776
1015
|
*/
|
|
777
1016
|
private readStoredMode;
|
|
778
1017
|
private writeStoredMode;
|
|
1018
|
+
/**
|
|
1019
|
+
* 🔴 İKİ sınıf birden. Ölçüldü (2026-08-30, kullanıcı ekranında): yalnız
|
|
1020
|
+
* `.app-dark` kaldırmak **açık temayı getirmiyordu**.
|
|
1021
|
+
*
|
|
1022
|
+
* `@virusis/design-tokens` koyu değerleri iki yerde tanımlıyor: `.app-dark`
|
|
1023
|
+
* bloğu **ve** `@media (prefers-color-scheme: dark)` bloğu. İkincisinin
|
|
1024
|
+
* koruması `:root:not([data-theme="light"]):not(.app-light)`. İşletim sistemi
|
|
1025
|
+
* koyu iken kullanıcı "açık" seçince `.app-dark` kalkıyor ama medya bloğu
|
|
1026
|
+
* hâlâ geçiyordu: PrimeNG bileşenleri açığa dönüyor, token'lı yüzeyler koyu
|
|
1027
|
+
* kalıyordu — **karışık tema**.
|
|
1028
|
+
*
|
|
1029
|
+
* ⚠️ `auto` kipinde de işaretleniyor: denetleyici zaten işletim sistemi
|
|
1030
|
+
* tercihini uyguluyor, medya bloğunun ikinci kez karar vermesi gerekmiyor.
|
|
1031
|
+
* Medya bloğu JS çalışmadan önceki ilk boyama için duruyor.
|
|
1032
|
+
*/
|
|
779
1033
|
private applyRootDarkClass;
|
|
780
1034
|
static ɵfac: i0.ɵɵFactoryDeclaration<VpThemeService, never>;
|
|
781
1035
|
static ɵprov: i0.ɵɵInjectableDeclaration<VpThemeService>;
|
|
@@ -786,6 +1040,13 @@ declare class VpThemeService {
|
|
|
786
1040
|
* temayi sessizce olduren tek satirlik degisikliktir.
|
|
787
1041
|
*/
|
|
788
1042
|
declare const VP_DARK_CLASS = "app-dark";
|
|
1043
|
+
/**
|
|
1044
|
+
* 🔴 Açık tema **açıkça** işaretleniyor. Token CSS'indeki
|
|
1045
|
+
* `@media (prefers-color-scheme: dark)` bloğu yalnız bu sınıf (ya da
|
|
1046
|
+
* `data-theme="light"`) yokken uygulanıyor; işaretlemezsek işletim sistemi
|
|
1047
|
+
* koyu olan kullanıcı "açık" seçemiyor.
|
|
1048
|
+
*/
|
|
1049
|
+
declare const VP_LIGHT_CLASS = "app-light";
|
|
789
1050
|
/** Mevcut uc konsolun kullandigi anahtar — gocte secim korunsun. */
|
|
790
1051
|
declare const VP_THEME_STORAGE_KEY = "themeMode";
|
|
791
1052
|
|
|
@@ -1226,6 +1487,17 @@ declare function isConditionMet(condition: VpMenuCondition, capabilities: VpMenu
|
|
|
1226
1487
|
*/
|
|
1227
1488
|
declare function resolveMenuConditions(items: ReadonlyArray<VpConditionalMenuItem>, capabilities: VpMenuCapabilities, describe?: VpConditionDescriber): VpMenuItem[];
|
|
1228
1489
|
|
|
1490
|
+
/**
|
|
1491
|
+
* Hücre şablonu bağlamı — paket 28 · G10.
|
|
1492
|
+
*
|
|
1493
|
+
* `$implicit` hücrenin değeri, `row` satırın tamamı. İkisi birden veriliyor:
|
|
1494
|
+
* yalnız değerle "durumu satırdaki başka bir alana göre boya" yazılamazdı.
|
|
1495
|
+
*/
|
|
1496
|
+
interface VpCellContext {
|
|
1497
|
+
$implicit: unknown;
|
|
1498
|
+
row: Record<string, unknown>;
|
|
1499
|
+
}
|
|
1500
|
+
type VpCellTemplate = TemplateRef<VpCellContext>;
|
|
1229
1501
|
interface VpColumn {
|
|
1230
1502
|
field: string;
|
|
1231
1503
|
header: string;
|
|
@@ -1475,6 +1747,22 @@ declare class VpDataTableComponent implements OnInit, OnChanges {
|
|
|
1475
1747
|
emptyFilteredLabel: string;
|
|
1476
1748
|
clearFiltersLabel: string;
|
|
1477
1749
|
retryLabel: string;
|
|
1750
|
+
/**
|
|
1751
|
+
* Arama kutusu — paket 28 · G10.
|
|
1752
|
+
*
|
|
1753
|
+
* ⚠️ Suzmeyi bilesen YAPMIYOR: yazilan metni olay olarak veriyor, veriyi
|
|
1754
|
+
* cagiran suzuyor. Iki yerde suzmek, iki farkli kural demek olurdu.
|
|
1755
|
+
*/
|
|
1756
|
+
searchable: boolean;
|
|
1757
|
+
searchLabel: string;
|
|
1758
|
+
searchPlaceholder: string;
|
|
1759
|
+
searchTerm: string;
|
|
1760
|
+
/**
|
|
1761
|
+
* Sayfa boyutu secenekleri. Bos birakilirsa secici cizilmiyor — tek boyutlu
|
|
1762
|
+
* bir listede secim sunmak, olmayan bir tercihi ima eder.
|
|
1763
|
+
*/
|
|
1764
|
+
pageSizeOptions: number[];
|
|
1765
|
+
pageSizeLabel: string;
|
|
1478
1766
|
pagerLabel: string;
|
|
1479
1767
|
prevLabel: string;
|
|
1480
1768
|
nextLabel: string;
|
|
@@ -1558,6 +1846,22 @@ declare class VpDataTableComponent implements OnInit, OnChanges {
|
|
|
1558
1846
|
}> | null;
|
|
1559
1847
|
/** Aksiyon sütununun başlığı. Boş bırakılmıyor — adsız sütun "sütun 5" diye okunur. */
|
|
1560
1848
|
rowActionsHeader: string;
|
|
1849
|
+
/**
|
|
1850
|
+
* Alan bazlı hücre şablonları — paket 28 · G10.
|
|
1851
|
+
*
|
|
1852
|
+
* 🔴 Neden eklendi: hücre bugüne kadar **yalnız düz metin** basıyordu ve bu,
|
|
1853
|
+
* AdminPanel'in 89 entity ekranının ortak tabloya taşınmasını engelliyordu —
|
|
1854
|
+
* taşıma, "aktif/pasif" renkli etiketini düz metne indirirdi. Aynı eksik
|
|
1855
|
+
* Customer tarama listesinde ciddiyet noktasını da imkânsız kılıyordu.
|
|
1856
|
+
*
|
|
1857
|
+
* Bağlam iki şey taşıyor: `$implicit` = hücrenin değeri, `row` = satırın
|
|
1858
|
+
* tamamı. Yalnız değer verilseydi "durum rozetini satırdaki başka bir alana
|
|
1859
|
+
* göre boya" gibi gerçek durumlar yazılamazdı.
|
|
1860
|
+
*
|
|
1861
|
+
* ⚠️ Tasarım sistemi hücrenin **ne olduğunu** bilmiyor ve bilmemeli: şablon
|
|
1862
|
+
* tüketicide, çünkü "aktif" kelimesi de rengi de ürün kararı.
|
|
1863
|
+
*/
|
|
1864
|
+
cellTemplates: Record<string, VpCellTemplate>;
|
|
1561
1865
|
protected readonly expandedKeys: Set<string>;
|
|
1562
1866
|
/**
|
|
1563
1867
|
* Desteklenen kapsamlar. Boş = düğme yok.
|
|
@@ -1603,6 +1907,8 @@ declare class VpDataTableComponent implements OnInit, OnChanges {
|
|
|
1603
1907
|
/** Veri istegi. Ust bilesen `rows` + `total` ile yanit verir. */
|
|
1604
1908
|
readonly load: EventEmitter<VpTableLoadEvent>;
|
|
1605
1909
|
readonly clearFilters: EventEmitter<void>;
|
|
1910
|
+
/** Arama kutusuna yazilan metin. Bos metin de cikar: kutuyu temizlemek de bir istek. */
|
|
1911
|
+
readonly search: EventEmitter<string>;
|
|
1606
1912
|
page: number;
|
|
1607
1913
|
protected sortField: string | null;
|
|
1608
1914
|
protected sortOrder: SortOrder;
|
|
@@ -1650,12 +1956,27 @@ declare class VpDataTableComponent implements OnInit, OnChanges {
|
|
|
1650
1956
|
private emitBulk;
|
|
1651
1957
|
goToPage(target: number): void;
|
|
1652
1958
|
toggleSort(field: string): void;
|
|
1959
|
+
/**
|
|
1960
|
+
* 🔴 Arama 7. sayfadayken yapilirsa liste bos gorunur ve kullanici "kayit
|
|
1961
|
+
* yok" sanir. Siralamada ayni kural zaten uygulaniyordu.
|
|
1962
|
+
*/
|
|
1963
|
+
protected onSearch(event: Event): void;
|
|
1964
|
+
/** Boyut degisince 1. sayfaya donuluyor: 4. sayfa buyuk boyutta olmayabilir. */
|
|
1965
|
+
protected onPageSizeChange(event: Event): void;
|
|
1653
1966
|
protected emitLoad(): void;
|
|
1654
1967
|
protected ariaSort(col: VpColumn): string | null;
|
|
1655
1968
|
protected sortGlyph(field: string): string;
|
|
1656
1969
|
protected cell(row: Record<string, unknown>, field: string): unknown;
|
|
1970
|
+
/**
|
|
1971
|
+
* Alanın hücre şablonu — yoksa `null` ve hücre düz metin basılır.
|
|
1972
|
+
*
|
|
1973
|
+
* ⚠️ Şablon **alan adına** göre aranıyor; sütun listesinde olmayan bir alan
|
|
1974
|
+
* için verilen şablon sessizce kullanılmaz. Bu bilinçli: şablon sözlüğü
|
|
1975
|
+
* sütunları değil, sütunlar şablonları belirliyor.
|
|
1976
|
+
*/
|
|
1977
|
+
protected templateFor(field: string): VpCellTemplate | null;
|
|
1657
1978
|
static ɵfac: i0.ɵɵFactoryDeclaration<VpDataTableComponent, never>;
|
|
1658
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VpDataTableComponent, "vp-data-table", never, { "columns": { "alias": "columns"; "required": true; }; "rows": { "alias": "rows"; "required": false; }; "total": { "alias": "total"; "required": false; }; "serverSide": { "alias": "serverSide"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "error": { "alias": "error"; "required": false; }; "hasActiveFilter": { "alias": "hasActiveFilter"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "totalLabel": { "alias": "totalLabel"; "required": false; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; }; "emptyLabel": { "alias": "emptyLabel"; "required": false; }; "emptyFilteredLabel": { "alias": "emptyFilteredLabel"; "required": false; }; "clearFiltersLabel": { "alias": "clearFiltersLabel"; "required": false; }; "retryLabel": { "alias": "retryLabel"; "required": false; }; "pagerLabel": { "alias": "pagerLabel"; "required": false; }; "prevLabel": { "alias": "prevLabel"; "required": false; }; "nextLabel": { "alias": "nextLabel"; "required": false; }; "storageKey": { "alias": "storageKey"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "rowKey": { "alias": "rowKey"; "required": false; }; "bulkActions": { "alias": "bulkActions"; "required": false; }; "bulkResult": { "alias": "bulkResult"; "required": false; }; "bulkLabel": { "alias": "bulkLabel"; "required": false; }; "selectedLabel": { "alias": "selectedLabel"; "required": false; }; "clearSelectionLabel": { "alias": "clearSelectionLabel"; "required": false; }; "selectPageLabel": { "alias": "selectPageLabel"; "required": false; }; "selectRowLabel": { "alias": "selectRowLabel"; "required": false; }; "confirmPrefix": { "alias": "confirmPrefix"; "required": false; }; "confirmLabel": { "alias": "confirmLabel"; "required": false; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; }; "succeededLabel": { "alias": "succeededLabel"; "required": false; }; "failedLabel": { "alias": "failedLabel"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "rowDetail": { "alias": "rowDetail"; "required": false; }; "expandLabel": { "alias": "expandLabel"; "required": false; }; "collapseLabel": { "alias": "collapseLabel"; "required": false; }; "expandColumnLabel": { "alias": "expandColumnLabel"; "required": false; }; "noDetailLabel": { "alias": "noDetailLabel"; "required": false; }; "rowActions": { "alias": "rowActions"; "required": false; }; "rowActionsHeader": { "alias": "rowActionsHeader"; "required": false; }; "exportScopes": { "alias": "exportScopes"; "required": false; }; "exportPageLabel": { "alias": "exportPageLabel"; "required": false; }; "exportAllLabel": { "alias": "exportAllLabel"; "required": false; }; "savedViewsKey": { "alias": "savedViewsKey"; "required": false; }; "viewsLabel": { "alias": "viewsLabel"; "required": false; }; "viewsPlaceholder": { "alias": "viewsPlaceholder"; "required": false; }; "saveViewLabel": { "alias": "saveViewLabel"; "required": false; }; "deleteViewLabel": { "alias": "deleteViewLabel"; "required": false; }; "askViewName": { "alias": "askViewName"; "required": false; }; "columnPicker": { "alias": "columnPicker"; "required": false; }; "columnsLabel": { "alias": "columnsLabel"; "required": false; }; "moveUpLabel": { "alias": "moveUpLabel"; "required": false; }; "moveDownLabel": { "alias": "moveDownLabel"; "required": false; }; }, { "bulkAction": "bulkAction"; "exportRequest": "exportRequest"; "viewApplied": "viewApplied"; "load": "load"; "clearFilters": "clearFilters"; }, never, never, true, never>;
|
|
1979
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VpDataTableComponent, "vp-data-table", never, { "columns": { "alias": "columns"; "required": true; }; "rows": { "alias": "rows"; "required": false; }; "total": { "alias": "total"; "required": false; }; "serverSide": { "alias": "serverSide"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "error": { "alias": "error"; "required": false; }; "hasActiveFilter": { "alias": "hasActiveFilter"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "totalLabel": { "alias": "totalLabel"; "required": false; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; }; "emptyLabel": { "alias": "emptyLabel"; "required": false; }; "emptyFilteredLabel": { "alias": "emptyFilteredLabel"; "required": false; }; "clearFiltersLabel": { "alias": "clearFiltersLabel"; "required": false; }; "retryLabel": { "alias": "retryLabel"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "searchLabel": { "alias": "searchLabel"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "searchTerm": { "alias": "searchTerm"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "pageSizeLabel": { "alias": "pageSizeLabel"; "required": false; }; "pagerLabel": { "alias": "pagerLabel"; "required": false; }; "prevLabel": { "alias": "prevLabel"; "required": false; }; "nextLabel": { "alias": "nextLabel"; "required": false; }; "storageKey": { "alias": "storageKey"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "rowKey": { "alias": "rowKey"; "required": false; }; "bulkActions": { "alias": "bulkActions"; "required": false; }; "bulkResult": { "alias": "bulkResult"; "required": false; }; "bulkLabel": { "alias": "bulkLabel"; "required": false; }; "selectedLabel": { "alias": "selectedLabel"; "required": false; }; "clearSelectionLabel": { "alias": "clearSelectionLabel"; "required": false; }; "selectPageLabel": { "alias": "selectPageLabel"; "required": false; }; "selectRowLabel": { "alias": "selectRowLabel"; "required": false; }; "confirmPrefix": { "alias": "confirmPrefix"; "required": false; }; "confirmLabel": { "alias": "confirmLabel"; "required": false; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; }; "succeededLabel": { "alias": "succeededLabel"; "required": false; }; "failedLabel": { "alias": "failedLabel"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "rowDetail": { "alias": "rowDetail"; "required": false; }; "expandLabel": { "alias": "expandLabel"; "required": false; }; "collapseLabel": { "alias": "collapseLabel"; "required": false; }; "expandColumnLabel": { "alias": "expandColumnLabel"; "required": false; }; "noDetailLabel": { "alias": "noDetailLabel"; "required": false; }; "rowActions": { "alias": "rowActions"; "required": false; }; "rowActionsHeader": { "alias": "rowActionsHeader"; "required": false; }; "cellTemplates": { "alias": "cellTemplates"; "required": false; }; "exportScopes": { "alias": "exportScopes"; "required": false; }; "exportPageLabel": { "alias": "exportPageLabel"; "required": false; }; "exportAllLabel": { "alias": "exportAllLabel"; "required": false; }; "savedViewsKey": { "alias": "savedViewsKey"; "required": false; }; "viewsLabel": { "alias": "viewsLabel"; "required": false; }; "viewsPlaceholder": { "alias": "viewsPlaceholder"; "required": false; }; "saveViewLabel": { "alias": "saveViewLabel"; "required": false; }; "deleteViewLabel": { "alias": "deleteViewLabel"; "required": false; }; "askViewName": { "alias": "askViewName"; "required": false; }; "columnPicker": { "alias": "columnPicker"; "required": false; }; "columnsLabel": { "alias": "columnsLabel"; "required": false; }; "moveUpLabel": { "alias": "moveUpLabel"; "required": false; }; "moveDownLabel": { "alias": "moveDownLabel"; "required": false; }; }, { "bulkAction": "bulkAction"; "exportRequest": "exportRequest"; "viewApplied": "viewApplied"; "load": "load"; "clearFilters": "clearFilters"; "search": "search"; }, never, never, true, never>;
|
|
1659
1980
|
}
|
|
1660
1981
|
|
|
1661
1982
|
/**
|
|
@@ -2276,11 +2597,11 @@ interface VpSettingsSection {
|
|
|
2276
2597
|
*/
|
|
2277
2598
|
declare class VpSettingsShellComponent {
|
|
2278
2599
|
sections: VpSettingsSection[];
|
|
2279
|
-
/** Aktif bolumun
|
|
2600
|
+
/** Aktif bolumun "code" degeri — rotadan gelir. */
|
|
2280
2601
|
activeCode: string | null;
|
|
2281
2602
|
navLabel: string;
|
|
2282
2603
|
protected get visibleSections(): VpSettingsSection[];
|
|
2283
|
-
/** Ayarlar gezinme ikonu da PrimeIcons sozlugunden — bkz.
|
|
2604
|
+
/** Ayarlar gezinme ikonu da PrimeIcons sozlugunden — bkz. "primeIconClass". */
|
|
2284
2605
|
protected iconClass(section: VpSettingsSection): string;
|
|
2285
2606
|
static ɵfac: i0.ɵɵFactoryDeclaration<VpSettingsShellComponent, never>;
|
|
2286
2607
|
static ɵcmp: i0.ɵɵComponentDeclaration<VpSettingsShellComponent, "vp-settings-shell", never, { "sections": { "alias": "sections"; "required": true; }; "activeCode": { "alias": "activeCode"; "required": false; }; "navLabel": { "alias": "navLabel"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
@@ -2324,12 +2645,12 @@ declare class VpSaveBarComponent {
|
|
|
2324
2645
|
*/
|
|
2325
2646
|
declare class VpDangerZoneComponent {
|
|
2326
2647
|
/**
|
|
2327
|
-
* 🔴 Enjeksiyon SUS DEGIL:
|
|
2328
|
-
* deposunu belgeye gomer. Gomulmezse bu bilesenin
|
|
2648
|
+
* 🔴 Enjeksiyon SUS DEGIL: "VpIconSpriteService" kurucusunda SVG sembol
|
|
2649
|
+
* deposunu belgeye gomer. Gomulmezse bu bilesenin "<use>" etiketleri
|
|
2329
2650
|
* **hicbir sey cizmez ve hata vermez** — olculen sessiz kayip.
|
|
2330
2651
|
*
|
|
2331
2652
|
* ⚠️ Alan kullanilmiyor gibi gorunur; isi enjekte edilmis olmaktir.
|
|
2332
|
-
*
|
|
2653
|
+
* "test/icon-sprite-wiring.spec.ts" bu esleSMeyi zorunlu tutuyor.
|
|
2333
2654
|
*/
|
|
2334
2655
|
protected readonly iconSprite: VpIconSpriteService;
|
|
2335
2656
|
title: string;
|
|
@@ -2339,7 +2660,7 @@ declare class VpDangerZoneComponent {
|
|
|
2339
2660
|
waitNotice: string | null;
|
|
2340
2661
|
disabled: boolean;
|
|
2341
2662
|
/**
|
|
2342
|
-
* Onay ISTEGI. Islem burada YAPILMAZ — ust bilesen
|
|
2663
|
+
* Onay ISTEGI. Islem burada YAPILMAZ — ust bilesen "vp-confirm" acar,
|
|
2343
2664
|
* kullanici metni yazar, ancak ondan sonra islem calisir.
|
|
2344
2665
|
*/
|
|
2345
2666
|
readonly requested: EventEmitter<void>;
|
|
@@ -3540,6 +3861,69 @@ declare class VpDeepHealthService {
|
|
|
3540
3861
|
static ɵprov: i0.ɵɵInjectableDeclaration<VpDeepHealthService>;
|
|
3541
3862
|
}
|
|
3542
3863
|
|
|
3543
|
-
|
|
3544
|
-
|
|
3864
|
+
type VpButtonVariant = 'primary' | 'secondary' | 'danger' | 'ghost';
|
|
3865
|
+
type VpButtonSize = 'md' | 'sm';
|
|
3866
|
+
/**
|
|
3867
|
+
* Düğme — paket 28 · G4 borcu.
|
|
3868
|
+
*
|
|
3869
|
+
* ## 🔴 Neden var
|
|
3870
|
+
*
|
|
3871
|
+
* Ölçüldü (2026-08-29): `@virusis/angular-ui` **bir düğme bileşeni
|
|
3872
|
+
* taşımıyordu** (38 bileşen içinde yok). Sonuç: her ekran kendi düğmesini
|
|
3873
|
+
* uyduruyordu — Customer panelinde yerel bir `.vp-cta`, tarama ekranında
|
|
3874
|
+
* **hiç biçim yoktu** ve tarayıcının varsayılan gri düğmesi çiziliyordu.
|
|
3875
|
+
* Geçici çözüm konsolun genel stil dosyasına bir `.vp-btn` sınıfı koymaktı;
|
|
3876
|
+
* bu bileşen onun kalıcı yeri.
|
|
3877
|
+
*
|
|
3878
|
+
* ## ⚠️ Neden `p-button` sarmalanmıyor
|
|
3879
|
+
*
|
|
3880
|
+
* Ekosistem kuralı "PrimeNG'yi sarmala, kopyalama" — ama sarmalanan şeyin bir
|
|
3881
|
+
* **karşılığı** olmalı. `p-button` burada iki şey getirirdi: kendi tema
|
|
3882
|
+
* değişkenleri (token'ların üstüne ikinci bir kaynak) ve `(onClick)` çıktısı —
|
|
3883
|
+
* bu programda ölçülmüş bir hata kaynağı (`(click)` sessizce çalışmıyor,
|
|
3884
|
+
* `feedback_primeng_pbutton_directive_click`). Düğme bir `<button>`; sarmalama
|
|
3885
|
+
* kazancı yok, riski var.
|
|
3886
|
+
*
|
|
3887
|
+
* 📌 Bağlantı kipi (`href`/`routerLink`) **ayrı bir eleman**, sınıf değil:
|
|
3888
|
+
* gezinen bir kontrol `<a>` olmalı — sağ tık, yeni sekme, ekran okuyucu
|
|
3889
|
+
* "bağlantı" demesi buna bağlı.
|
|
3890
|
+
*/
|
|
3891
|
+
declare class VpButtonComponent {
|
|
3892
|
+
protected readonly iconSprite: VpIconSpriteService;
|
|
3893
|
+
label: string;
|
|
3894
|
+
variant: VpButtonVariant;
|
|
3895
|
+
size: VpButtonSize;
|
|
3896
|
+
/** `vp-icon-*` sprite adı; boşsa ikon çizilmiyor. */
|
|
3897
|
+
icon: string | null;
|
|
3898
|
+
type: 'button' | 'submit' | 'reset';
|
|
3899
|
+
disabled: boolean;
|
|
3900
|
+
/**
|
|
3901
|
+
* Yükleniyor.
|
|
3902
|
+
*
|
|
3903
|
+
* ⚠️ Düğme devre dışı kalıyor **ve** `aria-busy` taşıyor: ekran okuyucu
|
|
3904
|
+
* "meşgul" diyebilsin. Yalnız devre dışı bırakmak, sebebi söylemeyen bir
|
|
3905
|
+
* düğme üretirdi.
|
|
3906
|
+
*/
|
|
3907
|
+
loading: boolean;
|
|
3908
|
+
/**
|
|
3909
|
+
* Devre dışı olmanın sebebi — başlıkta gösteriliyor.
|
|
3910
|
+
*
|
|
3911
|
+
* 🔴 Sebep **zorunlu değil ama tavsiye**: bu programda ölçülen tekrar eden
|
|
3912
|
+
* hata "sebebi söylemeyen devre dışı düğme". Kullanıcı neden
|
|
3913
|
+
* gönderemediğini göremeyince ekranı arızalı sanıyor.
|
|
3914
|
+
*/
|
|
3915
|
+
disabledReason: string | null;
|
|
3916
|
+
/** Uygulama içi hedef. Verilirse eleman `<a>` olur. */
|
|
3917
|
+
routerLink: unknown[] | string | null;
|
|
3918
|
+
/** Dış bağlantı. `routerLink` varsa yok sayılıyor. */
|
|
3919
|
+
href: string | null;
|
|
3920
|
+
/** Dış bağlantı yeni sekmede açılır ve `rel` güvenliği eklenir. */
|
|
3921
|
+
external: boolean;
|
|
3922
|
+
readonly pressed: EventEmitter<MouseEvent>;
|
|
3923
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VpButtonComponent, never>;
|
|
3924
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VpButtonComponent, "vp-button", never, { "label": { "alias": "label"; "required": true; }; "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabledReason": { "alias": "disabledReason"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; "href": { "alias": "href"; "required": false; }; "external": { "alias": "external"; "required": false; }; }, { "pressed": "pressed"; }, never, ["*"], true, never>;
|
|
3925
|
+
}
|
|
3926
|
+
|
|
3927
|
+
export { CONVERSION_MOMENTS, MAX_CONVERSION_PROMPTS_PER_SESSION, TRIAL_ROUTE_MAP, UTF8_BOM, VP_ANON_ID_HEX_LENGTH, VP_ANON_TOKEN_PORT, VP_API_BASE_URLS, VP_APP_KEY, VP_AUTH_ANON_CHAIN_ORDER, VP_AUTH_CHAIN_ORDER, VP_AUTH_HEALTH_CONFIG, VP_AUTH_SESSION_PORT, VP_AUTH_TOKEN_PORT, VP_CAPTCHA_PORT, VP_CONSOLE_GUARD_ROUTES, VP_CSRF_PORT, VP_DARK_CLASS, VP_DEEP_HEALTH_CONFIG, VP_I18N_NAMESPACE, VP_ICON_SPRITE_ID, VP_LIGHT_CLASS, VP_MAINTENANCE_PORT, VP_OWNERSHIP_PORT, VP_QUOTA_CRITICAL, VP_QUOTA_PORT, VP_QUOTA_WARN, VP_REDIRECT_MAX_LENGTH, VP_REQUEST_CONTEXT_PORT, VP_SAVED_VIEW_STORE, VP_SCAN_RANGE_MAX_MONTHS, VP_SHARE_TOKEN_PORT, VP_STATE_VARIANTS, VP_TABLE_PREFS_STORE, VP_THEME_STORAGE_KEY, VP_TRACKING_CACHE_TTL_MS, VP_UNSAVED_CHANGES_CONFIRM, VirusisUiModule, VpAnonTokenInterceptor, VpAppKeyInterceptor, VpAppealFormComponent, VpAuthTokenInterceptor, VpBannerComponent, VpBreadcrumbComponent, VpButtonComponent, VpCaptchaInterceptor, VpCommandPaletteComponent, VpConfirmComponent, VpContextToolbarComponent, VpCsrfInterceptor, VpDangerZoneComponent, VpDataTableComponent, VpDeepHealthService, VpDetectionRowComponent, VpDialogComponent, VpDrawerComponent, VpEngineResultComponent, VpFieldComponent, VpGlobalLayersComponent, VpHashValueComponent, VpHttpIdsInterceptor, VpIconSpriteService, VpIocListComponent, VpKpiCardComponent, VpMaintenanceInterceptor, VpMenuButtonComponent, VpNotificationTriggerComponent, VpPageHeaderComponent, VpProductSwitcherComponent, VpRiskScoreComponent, VpSaveBarComponent, VpScanTimelineComponent, VpScoreBreakdownComponent, VpSearchTriggerComponent, VpSettingsShellComponent, VpSeverityBadgeComponent, VpShareTokenInterceptor, VpShellComponent, VpSidebarComponent, VpSidebarToggleComponent, VpSkipLinkComponent, VpStateComponent, VpThemeControlComponent, VpThemeService, VpToastComponent, VpToastService, VpTopbarComponent, VpUserMenuComponent, VpVerdictComponent, VpWithCredentialsInterceptor, checkBoth, collectRxBindings, conversionOfferFor, createFocusTrap, createLocalStoragePrefsStore, createLocalStorageViewStore, createScanAnnouncer, createTabSync, currentOrigin, defaultConditionDescriber, defineStaticMenu, findEmptyValues, findMissingKeys, findView, flattenKeys, focusableElements, formatCountdown, formatParityReport, isConditionMet, isPartialFailure, isSameOrigin, isUpStatus, mergeStageUpdate, messageFor, nextPrompt, provideVirusisApiClient, provideVpAuthAnon, provideVpAuthCore, provideVpConsoleGuards, reconcileColumnOrder, registerUnsavedChangesPrompt, removeView, resolveMenuConditions, resolveTrialRedirect, rxServiceKeyOf, shouldSurface, toCsv, toDeepState, toMenuItems, unmatchedRxClasses, upsertView, validateStaticMenu, validateVpRedirectUri, validateVpScanDateRange, verdictFor, visibleColumns, vpAnonIdFrom, vpAuthChainSlotOf, vpAuthGuard, vpAuthHealthGuard, vpAutoDismissMs, vpDeviceFingerprint, vpDeviceRawData, vpEnsureGuid, vpKey, vpOwnershipGuard, vpQuotaGuard, vpResolveTrackingId, vpUnsavedChangesGuard };
|
|
3928
|
+
export type { RedirectTarget, TrialRouteRule, VpAnnouncement, VpAnonTokenPort, VpApiClientProviderOptions, VpAppealSubmission, VpAuthAnonConfig, VpAuthChainSlot, VpAuthCoreConfig, VpAuthHealthConfig, VpAuthSessionPort, VpAuthState, VpAuthTokenPort, VpBannerTone, VpBulkAction, VpBulkFailure, VpBulkRequest, VpBulkResult, VpButtonSize, VpButtonVariant, VpCaptchaPort, VpCellContext, VpCellTemplate, VpColumn, VpCommandItem, VpComponentHealth, VpConditionDescriber, VpConditionalMenuItem, VpConfirmResult, VpConfirmTone, VpConsoleGuardConfig, VpConsoleGuardRoutes, VpConversionMoment, VpCrumb, VpCsrfPort, VpCsvOptions, VpDeepHealthConfig, VpDeepHealthResult, VpDeepHealthState, VpDeviceSignals, VpEvidenceKind, VpExportRequest, VpExportScope, VpFocusTrap, VpHealthVerdict, VpIoc, VpIocType, VpKeyParity, VpLanguage, VpMaintenancePort, VpMaintenanceSignal, VpMenuCapabilities, VpMenuCondition, VpMenuConditionKind, VpMenuItem, VpNotificationEntry, VpOwnershipPort, VpOwnershipVerdict, VpProduct, VpPromptContext, VpPromptKind, VpPromptPresentation, VpQuota, VpQuotaLevel, VpQuotaPort, VpQuotaSegment, VpQuotaSnapshot, VpQuotaState, VpRedirectPolicy, VpRedirectUriVerdict, VpRequestContextPort, VpRxBinding, VpSavedView, VpSavedViewStore, VpScanAnnouncer, VpScanPhaseKind, VpScanProgress, VpScanRangeVerdict, VpScanStage, VpScoreEvidence, VpSettingsSection, VpSha256Hex, VpShareTokenPort, VpStageState, VpStateAction, VpStateTone, VpStateType, VpStateVariant, VpStaticMenuIssue, VpTabMessage, VpTabSync, VpTabSyncOptions, VpTableColumnPrefs, VpTableLoadEvent, VpTablePrefsStore, VpThemeMode, VpToast, VpToastTone, VpTrackingCache, VpTrackingInput, VpTrackingResolution, VpTranslations, VpUnsavedChanges, VpVerdictKind };
|
|
3545
3929
|
//# sourceMappingURL=index.d.ts.map
|