@virusis/angular-ui 0.2.5 → 0.3.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 +1778 -174
- package/fesm2022/virusis-angular-ui.mjs.map +1 -1
- package/index.d.ts +443 -9
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
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, ChangeDetectorRef, ElementRef, NgModule, Inject, computed } from '@angular/core';
|
|
2
|
+
import { inject, Injectable, EventEmitter, isDevMode, Output, Input, ChangeDetectionStrategy, Component, PLATFORM_ID, signal, DestroyRef, afterNextRender, ViewChild, HostListener, InjectionToken, ChangeDetectorRef, ElementRef, Directive, ViewEncapsulation, NgModule, Inject, computed } from '@angular/core';
|
|
3
3
|
import { DOCUMENT, isPlatformBrowser, NgTemplateOutlet } from '@angular/common';
|
|
4
4
|
import { buildSprite } from '@virusis/icon-set';
|
|
5
5
|
import { Router, NavigationEnd, RouterLink } from '@angular/router';
|
|
@@ -954,9 +954,10 @@ class VpShellComponent {
|
|
|
954
954
|
const q = this.quota;
|
|
955
955
|
if (!q)
|
|
956
956
|
return '';
|
|
957
|
+
const n = (value) => (this.quotaFormat === 'grouped' ? value.toLocaleString(this.quotaLocale ?? undefined) : String(value));
|
|
957
958
|
if (!q.limit || q.limit <= 0)
|
|
958
|
-
return `${q.used} ${q.label}`;
|
|
959
|
-
return `${q.used} / ${q.limit}`;
|
|
959
|
+
return `${n(q.used)} ${q.label}`;
|
|
960
|
+
return `${n(q.used)} / ${n(q.limit)}`;
|
|
960
961
|
}
|
|
961
962
|
/**
|
|
962
963
|
* Cekmeceyi acar/kapatir.
|
|
@@ -1043,6 +1044,12 @@ class VpShellComponent {
|
|
|
1043
1044
|
this.collapsedChange = new EventEmitter();
|
|
1044
1045
|
/** Kota kartindaki eylem (`quota.action`, ornegin "Yukselt") tiklandi; hedefe konsol gider - kabuk Router bilmiyor. */
|
|
1045
1046
|
this.quotaAction = new EventEmitter();
|
|
1047
|
+
/** design-system/006: kota sayıları `grouped` ise yerel binlik ayraçlı (`41.208 / 50.000`). Varsayılan `plain` (eski). */
|
|
1048
|
+
this.quotaFormat = 'plain';
|
|
1049
|
+
/** `grouped` için yerel ayar (ör. `tr-TR`); verilmezse tarayıcı dili. */
|
|
1050
|
+
this.quotaLocale = null;
|
|
1051
|
+
/** Uyarı (`warn`) çubuk rengi: `high` (turuncu, eski) ya da `medium` (sarı, prototip). */
|
|
1052
|
+
this.quotaWarnTone = 'high';
|
|
1046
1053
|
/** Dil secenekleri - bos birakilirsa denetim cizilmiyor. */
|
|
1047
1054
|
this.languages = [];
|
|
1048
1055
|
this.languageLabel = 'Dil';
|
|
@@ -1138,7 +1145,7 @@ class VpShellComponent {
|
|
|
1138
1145
|
});
|
|
1139
1146
|
}
|
|
1140
1147
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1141
|
-
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", quotaAction: "quotaAction", 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: `
|
|
1148
|
+
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", quotaFormat: "quotaFormat", quotaLocale: "quotaLocale", quotaWarnTone: "quotaWarnTone", languages: "languages", language: "language", languageLabel: "languageLabel", menuOpenLabel: "menuOpenLabel", menuCloseLabel: "menuCloseLabel", collapsed: "collapsed", skipLabel: "skipLabel" }, outputs: { collapsedChange: "collapsedChange", quotaAction: "quotaAction", 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: `
|
|
1142
1149
|
<!-- Atlama baglantisi DOM'da ILK odaklanabilir oge olmali.
|
|
1143
1150
|
Klavye kullanicisi her sayfada menuyu bastan gecmek zorunda kalmasin. -->
|
|
1144
1151
|
<a class="vp-skip" data-vp-skip href="#vp-main">{{ skipLabel }}</a>
|
|
@@ -1238,6 +1245,7 @@ class VpShellComponent {
|
|
|
1238
1245
|
class="vp-shell__quota"
|
|
1239
1246
|
data-vp-quota
|
|
1240
1247
|
[attr.data-vp-quota-level]="quotaLevel"
|
|
1248
|
+
[attr.data-vp-quota-warn]="quotaWarnTone === 'medium' ? 'medium' : null"
|
|
1241
1249
|
[attr.data-vp-quota-compact]="collapsed ? 'true' : null"
|
|
1242
1250
|
[attr.title]="collapsed ? quotaText : null">
|
|
1243
1251
|
<div class="vp-shell__quota-head">
|
|
@@ -1348,7 +1356,7 @@ class VpShellComponent {
|
|
|
1348
1356
|
contentinfo yer isareti degildir - isaret sessizce kaybolurdu.
|
|
1349
1357
|
-->
|
|
1350
1358
|
<ng-content select="[footer]" />
|
|
1351
|
-
`, 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{flex:1;color:var(--vp-text-secondary)}.vp-shell__quota-icon{flex:none;font-size:14px;opacity:.8;color:var(--vp-text-secondary);align-self:center}.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-foot{display:flex;align-items:center;gap:var(--vp-space-2)}.vp-shell__quota-action{margin-inline-start:auto;padding:0;border:0;background:none;color:var(--vp-brand-line);font:inherit;font-size:var(--vp-text-xs);text-decoration:underline;text-underline-offset:2px;cursor:pointer}.vp-shell__quota-action:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.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{justify-content:center}.vp-shell__quota[data-vp-quota-compact] :is(.vp-shell__quota-label,.vp-shell__quota-value){display:none}.vp-shell__scan-badge{display:flex;align-items:center;gap:8px;margin:0 0 var(--vp-space-2);padding:6px 9px;border-radius:var(--vp-radius-md, 8px);background:var(--vp-brand-subtle);color:var(--vp-text-primary);font-size:var(--vp-text-xs)}.vp-shell__scan-dot{flex:none;inline-size:7px;block-size:7px;border-radius:50%;background:var(--vp-brand-line)}.vp-shell__scan-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vp-shell__scan-badge[data-vp-quota-compact]{justify-content:center;padding:6px 0}.vp-shell__scan-badge[data-vp-quota-compact] .vp-shell__scan-text{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 }); }
|
|
1359
|
+
`, 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;scrollbar-width:none;-ms-overflow-style:none}.vp-shell__sidebar-scroll::-webkit-scrollbar{width:0;height:0}.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{flex:1;color:var(--vp-text-secondary)}.vp-shell__quota-icon{flex:none;font-size:14px;opacity:.8;color:var(--vp-text-secondary);align-self:center}.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-warn=medium][data-vp-quota-level=warn] .vp-shell__quota-fill{background:var(--vp-sev-medium)}.vp-shell__quota[data-vp-quota-level=critical] .vp-shell__quota-value{color:var(--vp-sev-critical)}.vp-shell__quota-foot{display:flex;align-items:center;gap:var(--vp-space-2)}.vp-shell__quota-action{margin-inline-start:auto;padding:0;border:0;background:none;color:var(--vp-brand-line);font:inherit;font-size:var(--vp-text-xs);text-decoration:underline;text-underline-offset:2px;cursor:pointer}.vp-shell__quota-action:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.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{justify-content:center}.vp-shell__quota[data-vp-quota-compact] :is(.vp-shell__quota-label,.vp-shell__quota-value){display:none}.vp-shell__scan-badge{display:flex;align-items:center;gap:8px;margin:0 0 var(--vp-space-2);padding:6px 9px;border-radius:var(--vp-radius-md, 8px);background:var(--vp-brand-subtle);color:var(--vp-text-primary);font-size:var(--vp-text-xs)}.vp-shell__scan-dot{flex:none;inline-size:7px;block-size:7px;border-radius:50%;background:var(--vp-brand-line)}.vp-shell__scan-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vp-shell__scan-badge[data-vp-quota-compact]{justify-content:center;padding:6px 0}.vp-shell__scan-badge[data-vp-quota-compact] .vp-shell__scan-text{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 }); }
|
|
1352
1360
|
}
|
|
1353
1361
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpShellComponent, decorators: [{
|
|
1354
1362
|
type: Component,
|
|
@@ -1452,6 +1460,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
1452
1460
|
class="vp-shell__quota"
|
|
1453
1461
|
data-vp-quota
|
|
1454
1462
|
[attr.data-vp-quota-level]="quotaLevel"
|
|
1463
|
+
[attr.data-vp-quota-warn]="quotaWarnTone === 'medium' ? 'medium' : null"
|
|
1455
1464
|
[attr.data-vp-quota-compact]="collapsed ? 'true' : null"
|
|
1456
1465
|
[attr.title]="collapsed ? quotaText : null">
|
|
1457
1466
|
<div class="vp-shell__quota-head">
|
|
@@ -1562,7 +1571,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
1562
1571
|
contentinfo yer isareti degildir - isaret sessizce kaybolurdu.
|
|
1563
1572
|
-->
|
|
1564
1573
|
<ng-content select="[footer]" />
|
|
1565
|
-
`, 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{flex:1;color:var(--vp-text-secondary)}.vp-shell__quota-icon{flex:none;font-size:14px;opacity:.8;color:var(--vp-text-secondary);align-self:center}.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-foot{display:flex;align-items:center;gap:var(--vp-space-2)}.vp-shell__quota-action{margin-inline-start:auto;padding:0;border:0;background:none;color:var(--vp-brand-line);font:inherit;font-size:var(--vp-text-xs);text-decoration:underline;text-underline-offset:2px;cursor:pointer}.vp-shell__quota-action:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.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{justify-content:center}.vp-shell__quota[data-vp-quota-compact] :is(.vp-shell__quota-label,.vp-shell__quota-value){display:none}.vp-shell__scan-badge{display:flex;align-items:center;gap:8px;margin:0 0 var(--vp-space-2);padding:6px 9px;border-radius:var(--vp-radius-md, 8px);background:var(--vp-brand-subtle);color:var(--vp-text-primary);font-size:var(--vp-text-xs)}.vp-shell__scan-dot{flex:none;inline-size:7px;block-size:7px;border-radius:50%;background:var(--vp-brand-line)}.vp-shell__scan-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vp-shell__scan-badge[data-vp-quota-compact]{justify-content:center;padding:6px 0}.vp-shell__scan-badge[data-vp-quota-compact] .vp-shell__scan-text{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"] }]
|
|
1574
|
+
`, 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;scrollbar-width:none;-ms-overflow-style:none}.vp-shell__sidebar-scroll::-webkit-scrollbar{width:0;height:0}.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{flex:1;color:var(--vp-text-secondary)}.vp-shell__quota-icon{flex:none;font-size:14px;opacity:.8;color:var(--vp-text-secondary);align-self:center}.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-warn=medium][data-vp-quota-level=warn] .vp-shell__quota-fill{background:var(--vp-sev-medium)}.vp-shell__quota[data-vp-quota-level=critical] .vp-shell__quota-value{color:var(--vp-sev-critical)}.vp-shell__quota-foot{display:flex;align-items:center;gap:var(--vp-space-2)}.vp-shell__quota-action{margin-inline-start:auto;padding:0;border:0;background:none;color:var(--vp-brand-line);font:inherit;font-size:var(--vp-text-xs);text-decoration:underline;text-underline-offset:2px;cursor:pointer}.vp-shell__quota-action:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.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{justify-content:center}.vp-shell__quota[data-vp-quota-compact] :is(.vp-shell__quota-label,.vp-shell__quota-value){display:none}.vp-shell__scan-badge{display:flex;align-items:center;gap:8px;margin:0 0 var(--vp-space-2);padding:6px 9px;border-radius:var(--vp-radius-md, 8px);background:var(--vp-brand-subtle);color:var(--vp-text-primary);font-size:var(--vp-text-xs)}.vp-shell__scan-dot{flex:none;inline-size:7px;block-size:7px;border-radius:50%;background:var(--vp-brand-line)}.vp-shell__scan-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vp-shell__scan-badge[data-vp-quota-compact]{justify-content:center;padding:6px 0}.vp-shell__scan-badge[data-vp-quota-compact] .vp-shell__scan-text{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"] }]
|
|
1566
1575
|
}], ctorParameters: () => [], propDecorators: { sidebarId: [{
|
|
1567
1576
|
type: Input
|
|
1568
1577
|
}], layout: [{
|
|
@@ -1575,6 +1584,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
1575
1584
|
type: Output
|
|
1576
1585
|
}], quota: [{
|
|
1577
1586
|
type: Input
|
|
1587
|
+
}], quotaFormat: [{
|
|
1588
|
+
type: Input
|
|
1589
|
+
}], quotaLocale: [{
|
|
1590
|
+
type: Input
|
|
1591
|
+
}], quotaWarnTone: [{
|
|
1592
|
+
type: Input
|
|
1578
1593
|
}], languages: [{
|
|
1579
1594
|
type: Input
|
|
1580
1595
|
}], language: [{
|
|
@@ -1682,9 +1697,11 @@ class VpPageHeaderComponent {
|
|
|
1682
1697
|
this.description = null;
|
|
1683
1698
|
/** Kayit sayisi. 0 da gosterilir — "bos" ile "sifir" farkli bilgidir. */
|
|
1684
1699
|
this.count = null;
|
|
1700
|
+
/** design-system/006: serbest sayaç metni ("4 anahtar · 3 etkin"); tüketiciden. */
|
|
1701
|
+
this.countLabel = null;
|
|
1685
1702
|
}
|
|
1686
1703
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpPageHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1687
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpPageHeaderComponent, isStandalone: true, selector: "vp-page-header", inputs: { heading: "heading", description: "description", count: "count" }, ngImport: i0, template: `
|
|
1704
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpPageHeaderComponent, isStandalone: true, selector: "vp-page-header", inputs: { heading: "heading", description: "description", count: "count", countLabel: "countLabel" }, ngImport: i0, template: `
|
|
1688
1705
|
<div class="vp-page-header">
|
|
1689
1706
|
<div class="vp-page-header__bar">
|
|
1690
1707
|
<div class="vp-page-header__text">
|
|
@@ -1693,6 +1710,9 @@ class VpPageHeaderComponent {
|
|
|
1693
1710
|
@if (count !== null && count !== undefined) {
|
|
1694
1711
|
<span class="vp-page-header__count" data-vp-count>{{ count }}</span>
|
|
1695
1712
|
}
|
|
1713
|
+
@if (countLabel) {
|
|
1714
|
+
<span class="vp-page-header__count" data-vp-count-label>{{ countLabel }}</span>
|
|
1715
|
+
}
|
|
1696
1716
|
<!-- Durum basligin YANINDA: rozet baslikla ayni cumlenin parcasi. -->
|
|
1697
1717
|
<span class="vp-page-header__status" data-vp-status>
|
|
1698
1718
|
<ng-content select="[status]" />
|
|
@@ -1732,6 +1752,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
1732
1752
|
@if (count !== null && count !== undefined) {
|
|
1733
1753
|
<span class="vp-page-header__count" data-vp-count>{{ count }}</span>
|
|
1734
1754
|
}
|
|
1755
|
+
@if (countLabel) {
|
|
1756
|
+
<span class="vp-page-header__count" data-vp-count-label>{{ countLabel }}</span>
|
|
1757
|
+
}
|
|
1735
1758
|
<!-- Durum basligin YANINDA: rozet baslikla ayni cumlenin parcasi. -->
|
|
1736
1759
|
<span class="vp-page-header__status" data-vp-status>
|
|
1737
1760
|
<ng-content select="[status]" />
|
|
@@ -1766,6 +1789,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
1766
1789
|
type: Input
|
|
1767
1790
|
}], count: [{
|
|
1768
1791
|
type: Input
|
|
1792
|
+
}], countLabel: [{
|
|
1793
|
+
type: Input
|
|
1769
1794
|
}] } });
|
|
1770
1795
|
|
|
1771
1796
|
/**
|
|
@@ -3729,7 +3754,9 @@ class VpUserMenuComponent {
|
|
|
3729
3754
|
</button>
|
|
3730
3755
|
}
|
|
3731
3756
|
|
|
3732
|
-
<p-menu #menu [model]="items" [popup]="true" [id]="menuId"
|
|
3757
|
+
<p-menu #menu [model]="items" [popup]="true" [id]="menuId">
|
|
3758
|
+
<ng-template #end><ng-content select="[menuBlocks]" /></ng-template>
|
|
3759
|
+
</p-menu>
|
|
3733
3760
|
</div>
|
|
3734
3761
|
`, 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 }); }
|
|
3735
3762
|
}
|
|
@@ -3785,7 +3812,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
3785
3812
|
</button>
|
|
3786
3813
|
}
|
|
3787
3814
|
|
|
3788
|
-
<p-menu #menu [model]="items" [popup]="true" [id]="menuId"
|
|
3815
|
+
<p-menu #menu [model]="items" [popup]="true" [id]="menuId">
|
|
3816
|
+
<ng-template #end><ng-content select="[menuBlocks]" /></ng-template>
|
|
3817
|
+
</p-menu>
|
|
3789
3818
|
</div>
|
|
3790
3819
|
`, 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"] }]
|
|
3791
3820
|
}], propDecorators: { displayName: [{
|
|
@@ -5673,6 +5702,18 @@ class VpDataTableComponent {
|
|
|
5673
5702
|
this.hasActiveFilter = false;
|
|
5674
5703
|
this.caption = '';
|
|
5675
5704
|
this.totalLabel = 'kayıt';
|
|
5705
|
+
/** design-system/006: başlık biçimi ('caps' = büyük harf mono). Verilmezse 0.2.6 görünümü. */
|
|
5706
|
+
this.headerStyle = 'normal';
|
|
5707
|
+
/** Meta şeridi (kayıt sayısı, arama, sütun düğmesi) çizilsin mi. */
|
|
5708
|
+
this.showMeta = true;
|
|
5709
|
+
/** Eşleşen satıra `aria-selected="true"` (rowKey ile). */
|
|
5710
|
+
this.selectedKey = null;
|
|
5711
|
+
/** Meta şeridinde yazılan aralık metni ("1–4 arası"); tüketiciden. */
|
|
5712
|
+
this.rangeLabel = '';
|
|
5713
|
+
/** Çerçevesiz kip (panel içinde). */
|
|
5714
|
+
this.bare = false;
|
|
5715
|
+
/** Dar ekranda satırı etiketli yığına çevirir (`td[data-label]`). */
|
|
5716
|
+
this.stack = false;
|
|
5676
5717
|
this.loadingLabel = 'Yükleniyor';
|
|
5677
5718
|
this.emptyLabel = 'Henüz kayıt yok';
|
|
5678
5719
|
this.emptyFilteredLabel = 'Bu filtreye uyan kayıt yok';
|
|
@@ -6130,16 +6171,23 @@ class VpDataTableComponent {
|
|
|
6130
6171
|
* için verilen şablon sessizce kullanılmaz. Bu bilinçli: şablon sözlüğü
|
|
6131
6172
|
* sütunları değil, sütunlar şablonları belirliyor.
|
|
6132
6173
|
*/
|
|
6174
|
+
isSelectedKey(row) {
|
|
6175
|
+
return this.selectedKey !== null && String(this.keyOf(row)) === this.selectedKey;
|
|
6176
|
+
}
|
|
6133
6177
|
templateFor(field) {
|
|
6134
6178
|
return this.cellTemplates[field] ?? null;
|
|
6135
6179
|
}
|
|
6136
6180
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDataTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6137
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpDataTableComponent, isStandalone: true, selector: "vp-data-table", inputs: { columns: "columns", rows: "rows", total: "total", serverSide: "serverSide", pageSize: "pageSize", loading: "loading", error: "error", hasActiveFilter: "hasActiveFilter", caption: "caption", totalLabel: "totalLabel", loadingLabel: "loadingLabel", emptyLabel: "emptyLabel", emptyFilteredLabel: "emptyFilteredLabel", clearFiltersLabel: "clearFiltersLabel", retryLabel: "retryLabel", searchable: "searchable", searchLabel: "searchLabel", searchPlaceholder: "searchPlaceholder", searchTerm: "searchTerm", pageSizeOptions: "pageSizeOptions", pageSizeLabel: "pageSizeLabel", pagerLabel: "pagerLabel", prevLabel: "prevLabel", nextLabel: "nextLabel", storageKey: "storageKey", selectable: "selectable", rowKey: "rowKey", bulkActions: "bulkActions", bulkResult: "bulkResult", bulkLabel: "bulkLabel", selectedLabel: "selectedLabel", clearSelectionLabel: "clearSelectionLabel", selectPageLabel: "selectPageLabel", selectRowLabel: "selectRowLabel", confirmPrefix: "confirmPrefix", confirmLabel: "confirmLabel", cancelLabel: "cancelLabel", succeededLabel: "succeededLabel", failedLabel: "failedLabel", expandable: "expandable", rowDetail: "rowDetail", expandLabel: "expandLabel", collapseLabel: "collapseLabel", expandColumnLabel: "expandColumnLabel", noDetailLabel: "noDetailLabel", rowActions: "rowActions", rowActionsHeader: "rowActionsHeader", cellTemplates: "cellTemplates", exportScopes: "exportScopes", exportPageLabel: "exportPageLabel", exportAllLabel: "exportAllLabel", savedViewsKey: "savedViewsKey", viewsLabel: "viewsLabel", viewsPlaceholder: "viewsPlaceholder", saveViewLabel: "saveViewLabel", deleteViewLabel: "deleteViewLabel", askViewName: "askViewName", columnPicker: "columnPicker", columnsLabel: "columnsLabel", moveUpLabel: "moveUpLabel", moveDownLabel: "moveDownLabel" }, outputs: { bulkAction: "bulkAction", exportRequest: "exportRequest", viewApplied: "viewApplied", load: "load", clearFilters: "clearFilters", search: "search" }, usesOnChanges: true, ngImport: i0, template: `
|
|
6138
|
-
<div class="vp-table">
|
|
6181
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpDataTableComponent, isStandalone: true, selector: "vp-data-table", inputs: { columns: "columns", rows: "rows", total: "total", serverSide: "serverSide", pageSize: "pageSize", loading: "loading", error: "error", hasActiveFilter: "hasActiveFilter", caption: "caption", totalLabel: "totalLabel", headerStyle: "headerStyle", showMeta: "showMeta", selectedKey: "selectedKey", rangeLabel: "rangeLabel", bare: "bare", stack: "stack", loadingLabel: "loadingLabel", emptyLabel: "emptyLabel", emptyFilteredLabel: "emptyFilteredLabel", clearFiltersLabel: "clearFiltersLabel", retryLabel: "retryLabel", searchable: "searchable", searchLabel: "searchLabel", searchPlaceholder: "searchPlaceholder", searchTerm: "searchTerm", pageSizeOptions: "pageSizeOptions", pageSizeLabel: "pageSizeLabel", pagerLabel: "pagerLabel", prevLabel: "prevLabel", nextLabel: "nextLabel", storageKey: "storageKey", selectable: "selectable", rowKey: "rowKey", bulkActions: "bulkActions", bulkResult: "bulkResult", bulkLabel: "bulkLabel", selectedLabel: "selectedLabel", clearSelectionLabel: "clearSelectionLabel", selectPageLabel: "selectPageLabel", selectRowLabel: "selectRowLabel", confirmPrefix: "confirmPrefix", confirmLabel: "confirmLabel", cancelLabel: "cancelLabel", succeededLabel: "succeededLabel", failedLabel: "failedLabel", expandable: "expandable", rowDetail: "rowDetail", expandLabel: "expandLabel", collapseLabel: "collapseLabel", expandColumnLabel: "expandColumnLabel", noDetailLabel: "noDetailLabel", rowActions: "rowActions", rowActionsHeader: "rowActionsHeader", cellTemplates: "cellTemplates", exportScopes: "exportScopes", exportPageLabel: "exportPageLabel", exportAllLabel: "exportAllLabel", savedViewsKey: "savedViewsKey", viewsLabel: "viewsLabel", viewsPlaceholder: "viewsPlaceholder", saveViewLabel: "saveViewLabel", deleteViewLabel: "deleteViewLabel", askViewName: "askViewName", columnPicker: "columnPicker", columnsLabel: "columnsLabel", moveUpLabel: "moveUpLabel", moveDownLabel: "moveDownLabel" }, outputs: { bulkAction: "bulkAction", exportRequest: "exportRequest", viewApplied: "viewApplied", load: "load", clearFilters: "clearFilters", search: "search" }, usesOnChanges: true, ngImport: i0, template: `
|
|
6182
|
+
<div class="vp-table" [attr.data-header-style]="headerStyle === 'caps' ? 'caps' : null" [attr.data-bare]="bare ? 'true' : null" [attr.data-stack]="stack ? 'true' : null">
|
|
6183
|
+
@if (showMeta) {
|
|
6139
6184
|
<div class="vp-table__meta">
|
|
6140
6185
|
<span class="vp-table__total" data-vp-total>
|
|
6141
6186
|
{{ total }} {{ totalLabel }}
|
|
6142
6187
|
</span>
|
|
6188
|
+
@if (rangeLabel) {
|
|
6189
|
+
<span class="vp-table__range" data-vp-range>{{ rangeLabel }}</span>
|
|
6190
|
+
}
|
|
6143
6191
|
@if (pageCount > 1) {
|
|
6144
6192
|
<span class="vp-table__pageinfo">{{ page }} / {{ pageCount }}</span>
|
|
6145
6193
|
}
|
|
@@ -6210,7 +6258,9 @@ class VpDataTableComponent {
|
|
|
6210
6258
|
<svg class="vp-table__icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false"><use href="#vp-icon-columns"></use></svg>
|
|
6211
6259
|
</button>
|
|
6212
6260
|
}
|
|
6261
|
+
<ng-content select="[toolbar]" />
|
|
6213
6262
|
</div>
|
|
6263
|
+
}
|
|
6214
6264
|
|
|
6215
6265
|
@if (selectable && selectedKeys.size > 0) {
|
|
6216
6266
|
<div class="vp-table__bulk" data-vp-bulk role="group" [attr.aria-label]="bulkLabel">
|
|
@@ -6354,6 +6404,9 @@ class VpDataTableComponent {
|
|
|
6354
6404
|
scope="col"
|
|
6355
6405
|
[attr.data-vp-col]="col.field"
|
|
6356
6406
|
[attr.aria-sort]="ariaSort(col)"
|
|
6407
|
+
[attr.data-align]="col.align || null"
|
|
6408
|
+
[attr.data-mono]="col.mono ? 'true' : null"
|
|
6409
|
+
[attr.data-nowrap]="col.nowrap ? 'true' : null"
|
|
6357
6410
|
[style.width]="col.width || null">
|
|
6358
6411
|
@if (col.sortable) {
|
|
6359
6412
|
<button type="button" class="vp-table__sort" (click)="toggleSort(col.field)">
|
|
@@ -6372,7 +6425,7 @@ class VpDataTableComponent {
|
|
|
6372
6425
|
</thead>
|
|
6373
6426
|
<tbody>
|
|
6374
6427
|
@for (row of rows; track $index) {
|
|
6375
|
-
<tr data-vp-row>
|
|
6428
|
+
<tr data-vp-row [attr.aria-selected]="isSelectedKey(row) ? 'true' : null">
|
|
6376
6429
|
@if (canExpand) {
|
|
6377
6430
|
<td class="vp-table__select-cell">
|
|
6378
6431
|
<button
|
|
@@ -6395,7 +6448,12 @@ class VpDataTableComponent {
|
|
|
6395
6448
|
</td>
|
|
6396
6449
|
}
|
|
6397
6450
|
@for (col of visibleCols; track col.field) {
|
|
6398
|
-
<td
|
|
6451
|
+
<td
|
|
6452
|
+
[attr.data-align]="col.align || null"
|
|
6453
|
+
[attr.data-mono]="col.mono ? 'true' : null"
|
|
6454
|
+
[attr.data-nowrap]="col.nowrap ? 'true' : null"
|
|
6455
|
+
[attr.data-emphasis]="col.emphasis ? 'true' : null"
|
|
6456
|
+
[attr.data-label]="stack ? col.header : null">
|
|
6399
6457
|
@if (templateFor(col.field); as tpl) {
|
|
6400
6458
|
<ng-container
|
|
6401
6459
|
*ngTemplateOutlet="tpl; context: { $implicit: cell(row, col.field), row: row }" />
|
|
@@ -6455,16 +6513,20 @@ class VpDataTableComponent {
|
|
|
6455
6513
|
}
|
|
6456
6514
|
}
|
|
6457
6515
|
</div>
|
|
6458
|
-
`, isInline: true, styles: [":host{display:block}.vp-table{border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);overflow:hidden}.vp-table__meta{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);padding:var(--vp-space-3) var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-muted);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-table__scroll{overflow-x:auto}.vp-table__table{width:100%;border-collapse:collapse;font-size:var(--vp-text-base)}.vp-table__table th{position:sticky;top:0;z-index:1;height:var(--vp-header-height);padding:0 var(--vp-space-3);text-align:left;white-space:nowrap;background:var(--vp-surface-raised);border-bottom:1px solid var(--vp-border-default);color:var(--vp-text-secondary);font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold)}.vp-table__table td{height:var(--vp-row-height);padding:0 var(--vp-space-3);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-primary);font-variant-numeric:tabular-nums}.vp-table__table tbody tr:hover td{background:var(--vp-surface-sunken)}.vp-table__table tbody tr:last-child td{border-bottom:0}.vp-table__sort{display:inline-flex;align-items:center;gap:var(--vp-space-1);min-height:var(--vp-min-target);padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}.vp-table__sort:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__sort-icon{color:var(--vp-text-muted)}.vp-table__empty,.vp-table__error{display:flex;flex-direction:column;align-items:center;gap:var(--vp-space-3);padding:var(--vp-space-12) var(--vp-space-6);text-align:center;color:var(--vp-text-secondary)}.vp-table__state-icon{width:40px;height:40px;color:var(--vp-text-muted)}.vp-table__error .vp-table__state-icon{color:var(--vp-sev-critical)}.vp-table__state-text{margin:0}.vp-table__retry{min-height:var(--vp-control-height);padding:0 var(--vp-space-4);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__retry:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__skeleton{display:flex;flex-direction:column;gap:1px;padding:var(--vp-space-2)}.vp-table__skeleton-row{display:block;height:var(--vp-row-height);border-radius:var(--vp-radius-sm);background:var(--vp-surface-sunken);animation:vp-table-pulse 1.4s var(--vp-ease-standard) infinite}@keyframes vp-table-pulse{0%,to{opacity:1}50%{opacity:.55}}.vp-table__search{flex:1 1 12rem;min-width:8rem;max-width:18rem;min-height:var(--vp-control-height);box-sizing:border-box;padding:.25rem .5rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}@media(max-width:640px){.vp-table__meta{flex-wrap:wrap}.vp-table__search{flex:1 1 100%;max-width:none}}.vp-table__page-size{min-height:var(--vp-control-height);box-sizing:border-box;padding:.2rem .4rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}.vp-table__pager{display:flex;justify-content:flex-end;gap:var(--vp-space-2);padding:var(--vp-space-3) var(--vp-space-4);border-top:1px solid var(--vp-border-subtle)}.vp-table__page-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);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:inherit;cursor:pointer}.vp-table__page-btn:disabled{opacity:.5;cursor:not-allowed}.vp-table__page-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}@media(prefers-reduced-motion:reduce){.vp-table__skeleton-row{animation:none}}.vp-table__cols-btn{margin-left:auto;min-height:var(--vp-control-height);min-width:var(--vp-min-target);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:inherit;cursor:pointer}.vp-table__cols-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__icon-btn{display:inline-grid;place-items:center;min-width:var(--vp-control-height);padding:0;color:var(--vp-text-secondary)}.vp-table__icon-btn:hover{color:var(--vp-text-primary)}.vp-table__icon{width:18px;height:18px}.vp-table__cols{display:flex;flex-direction:column;gap:var(--vp-space-1);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised)}.vp-table__cols-row{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3)}.vp-table__cols-label{display:flex;align-items:center;gap:var(--vp-space-2);cursor:pointer}.vp-table__cols-move button{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);cursor:pointer}.vp-table__cols-move button:disabled{opacity:.4;cursor:not-allowed}.vp-table__cols-move button:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__select-cell{width:var(--vp-min-target);text-align:center}.vp-table__bulk,.vp-table__bulk-confirm,.vp-table__bulk-report{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);font-size:var(--vp-text-sm)}.vp-table__bulk-report{display:block}.vp-table__bulk-confirm{border-color:var(--vp-danger)}.vp-table__bulk-actions{display:flex;gap:var(--vp-space-2)}.vp-table__bulk-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__bulk-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__bulk-btn--danger{border-color:var(--vp-danger);color:var(--vp-danger)}.vp-table__bulk-failures{margin:var(--vp-space-2) 0 0;padding-left:var(--vp-space-5)}.vp-table__expand{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid transparent;border-radius:var(--vp-radius-md);background:transparent;color:var(--vp-text-primary);cursor:pointer}.vp-table__expand:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__detail-row>td{background:var(--vp-surface-raised);padding:var(--vp-space-4)}.vp-table__detail-empty{color:var(--vp-text-muted)}.vp-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6516
|
+
`, isInline: true, styles: [":host{display:block}.vp-table{border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);overflow:hidden}.vp-table__meta{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);padding:var(--vp-space-3) var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-muted);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-table__scroll{overflow-x:auto}.vp-table__table{width:100%;border-collapse:collapse;font-size:var(--vp-text-base)}.vp-table__table th{position:sticky;top:0;z-index:1;height:var(--vp-header-height);padding:0 var(--vp-space-3);text-align:left;white-space:nowrap;background:var(--vp-surface-raised);border-bottom:1px solid var(--vp-border-default);color:var(--vp-text-secondary);font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold)}.vp-table__table td{height:var(--vp-row-height);padding:0 var(--vp-space-3);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-primary);font-variant-numeric:tabular-nums}.vp-table__table tbody tr:hover td{background:var(--vp-surface-sunken)}.vp-table__table tbody tr:last-child td{border-bottom:0}.vp-table__sort{display:inline-flex;align-items:center;gap:var(--vp-space-1);min-height:var(--vp-min-target);padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}.vp-table__sort:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__sort-icon{color:var(--vp-text-muted)}.vp-table__empty,.vp-table__error{display:flex;flex-direction:column;align-items:center;gap:var(--vp-space-3);padding:var(--vp-space-12) var(--vp-space-6);text-align:center;color:var(--vp-text-secondary)}.vp-table__state-icon{width:40px;height:40px;color:var(--vp-text-muted)}.vp-table__error .vp-table__state-icon{color:var(--vp-sev-critical)}.vp-table__state-text{margin:0}.vp-table__retry{min-height:var(--vp-control-height);padding:0 var(--vp-space-4);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__retry:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__skeleton{display:flex;flex-direction:column;gap:1px;padding:var(--vp-space-2)}.vp-table__skeleton-row{display:block;height:var(--vp-row-height);border-radius:var(--vp-radius-sm);background:var(--vp-surface-sunken);animation:vp-table-pulse 1.4s var(--vp-ease-standard) infinite}@keyframes vp-table-pulse{0%,to{opacity:1}50%{opacity:.55}}.vp-table__search{flex:1 1 12rem;min-width:8rem;max-width:18rem;min-height:var(--vp-control-height);box-sizing:border-box;padding:.25rem .5rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}@media(max-width:640px){.vp-table__meta{flex-wrap:wrap}.vp-table__search{flex:1 1 100%;max-width:none}}.vp-table__page-size{min-height:var(--vp-control-height);box-sizing:border-box;padding:.2rem .4rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}.vp-table__pager{display:flex;justify-content:flex-end;gap:var(--vp-space-2);padding:var(--vp-space-3) var(--vp-space-4);border-top:1px solid var(--vp-border-subtle)}.vp-table__page-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);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:inherit;cursor:pointer}.vp-table__page-btn:disabled{opacity:.5;cursor:not-allowed}.vp-table__page-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}@media(prefers-reduced-motion:reduce){.vp-table__skeleton-row{animation:none}}.vp-table__cols-btn{margin-left:auto;min-height:var(--vp-control-height);min-width:var(--vp-min-target);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:inherit;cursor:pointer}.vp-table__cols-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__icon-btn{display:inline-grid;place-items:center;min-width:var(--vp-control-height);padding:0;color:var(--vp-text-secondary)}.vp-table__icon-btn:hover{color:var(--vp-text-primary)}.vp-table__icon{width:18px;height:18px}.vp-table__cols{display:flex;flex-direction:column;gap:var(--vp-space-1);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised)}.vp-table__cols-row{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3)}.vp-table__cols-label{display:flex;align-items:center;gap:var(--vp-space-2);cursor:pointer}.vp-table__cols-move button{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);cursor:pointer}.vp-table__cols-move button:disabled{opacity:.4;cursor:not-allowed}.vp-table__cols-move button:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__select-cell{width:var(--vp-min-target);text-align:center}.vp-table__bulk,.vp-table__bulk-confirm,.vp-table__bulk-report{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);font-size:var(--vp-text-sm)}.vp-table__bulk-report{display:block}.vp-table__bulk-confirm{border-color:var(--vp-danger)}.vp-table__bulk-actions{display:flex;gap:var(--vp-space-2)}.vp-table__bulk-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__bulk-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__bulk-btn--danger{border-color:var(--vp-danger);color:var(--vp-danger)}.vp-table__bulk-failures{margin:var(--vp-space-2) 0 0;padding-left:var(--vp-space-5)}.vp-table__expand{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid transparent;border-radius:var(--vp-radius-md);background:transparent;color:var(--vp-text-primary);cursor:pointer}.vp-table__expand:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__detail-row>td{background:var(--vp-surface-raised);padding:var(--vp-space-4)}.vp-table__detail-empty{color:var(--vp-text-muted)}.vp-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.vp-table__range{color:var(--vp-text-muted);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums}.vp-table__table [data-align=end]{text-align:end}.vp-table__table [data-align=center]{text-align:center}.vp-table__table [data-mono=true]{font-family:var(--vp-font-mono);font-variant-numeric:tabular-nums}.vp-table__table [data-nowrap=true]{white-space:nowrap}.vp-table__table td[data-emphasis=true]{font-weight:var(--vp-weight-semibold)}.vp-table[data-header-style=caps] .vp-table__table th{font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);letter-spacing:.06em;text-transform:uppercase}.vp-table[data-bare=true]{border:0;border-radius:0;background:transparent}@media(max-width:640px){.vp-table[data-stack=true] .vp-table__table thead{display:none}.vp-table[data-stack=true] .vp-table__table tr[data-vp-row]{display:block;padding:var(--vp-space-2) 0;border-bottom:1px solid var(--vp-border-subtle)}.vp-table[data-stack=true] .vp-table__table td{display:flex;justify-content:space-between;gap:var(--vp-space-3);border:0}.vp-table[data-stack=true] .vp-table__table td[data-label]:before{content:attr(data-label);color:var(--vp-text-muted);font-size:var(--vp-text-xs)}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6459
6517
|
}
|
|
6460
6518
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDataTableComponent, decorators: [{
|
|
6461
6519
|
type: Component,
|
|
6462
6520
|
args: [{ selector: 'vp-data-table', standalone: true, imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
6463
|
-
<div class="vp-table">
|
|
6521
|
+
<div class="vp-table" [attr.data-header-style]="headerStyle === 'caps' ? 'caps' : null" [attr.data-bare]="bare ? 'true' : null" [attr.data-stack]="stack ? 'true' : null">
|
|
6522
|
+
@if (showMeta) {
|
|
6464
6523
|
<div class="vp-table__meta">
|
|
6465
6524
|
<span class="vp-table__total" data-vp-total>
|
|
6466
6525
|
{{ total }} {{ totalLabel }}
|
|
6467
6526
|
</span>
|
|
6527
|
+
@if (rangeLabel) {
|
|
6528
|
+
<span class="vp-table__range" data-vp-range>{{ rangeLabel }}</span>
|
|
6529
|
+
}
|
|
6468
6530
|
@if (pageCount > 1) {
|
|
6469
6531
|
<span class="vp-table__pageinfo">{{ page }} / {{ pageCount }}</span>
|
|
6470
6532
|
}
|
|
@@ -6535,7 +6597,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
6535
6597
|
<svg class="vp-table__icon" aria-hidden="true" viewBox="0 0 24 24" focusable="false"><use href="#vp-icon-columns"></use></svg>
|
|
6536
6598
|
</button>
|
|
6537
6599
|
}
|
|
6600
|
+
<ng-content select="[toolbar]" />
|
|
6538
6601
|
</div>
|
|
6602
|
+
}
|
|
6539
6603
|
|
|
6540
6604
|
@if (selectable && selectedKeys.size > 0) {
|
|
6541
6605
|
<div class="vp-table__bulk" data-vp-bulk role="group" [attr.aria-label]="bulkLabel">
|
|
@@ -6679,6 +6743,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
6679
6743
|
scope="col"
|
|
6680
6744
|
[attr.data-vp-col]="col.field"
|
|
6681
6745
|
[attr.aria-sort]="ariaSort(col)"
|
|
6746
|
+
[attr.data-align]="col.align || null"
|
|
6747
|
+
[attr.data-mono]="col.mono ? 'true' : null"
|
|
6748
|
+
[attr.data-nowrap]="col.nowrap ? 'true' : null"
|
|
6682
6749
|
[style.width]="col.width || null">
|
|
6683
6750
|
@if (col.sortable) {
|
|
6684
6751
|
<button type="button" class="vp-table__sort" (click)="toggleSort(col.field)">
|
|
@@ -6697,7 +6764,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
6697
6764
|
</thead>
|
|
6698
6765
|
<tbody>
|
|
6699
6766
|
@for (row of rows; track $index) {
|
|
6700
|
-
<tr data-vp-row>
|
|
6767
|
+
<tr data-vp-row [attr.aria-selected]="isSelectedKey(row) ? 'true' : null">
|
|
6701
6768
|
@if (canExpand) {
|
|
6702
6769
|
<td class="vp-table__select-cell">
|
|
6703
6770
|
<button
|
|
@@ -6720,7 +6787,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
6720
6787
|
</td>
|
|
6721
6788
|
}
|
|
6722
6789
|
@for (col of visibleCols; track col.field) {
|
|
6723
|
-
<td
|
|
6790
|
+
<td
|
|
6791
|
+
[attr.data-align]="col.align || null"
|
|
6792
|
+
[attr.data-mono]="col.mono ? 'true' : null"
|
|
6793
|
+
[attr.data-nowrap]="col.nowrap ? 'true' : null"
|
|
6794
|
+
[attr.data-emphasis]="col.emphasis ? 'true' : null"
|
|
6795
|
+
[attr.data-label]="stack ? col.header : null">
|
|
6724
6796
|
@if (templateFor(col.field); as tpl) {
|
|
6725
6797
|
<ng-container
|
|
6726
6798
|
*ngTemplateOutlet="tpl; context: { $implicit: cell(row, col.field), row: row }" />
|
|
@@ -6780,7 +6852,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
6780
6852
|
}
|
|
6781
6853
|
}
|
|
6782
6854
|
</div>
|
|
6783
|
-
`, styles: [":host{display:block}.vp-table{border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);overflow:hidden}.vp-table__meta{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);padding:var(--vp-space-3) var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-muted);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-table__scroll{overflow-x:auto}.vp-table__table{width:100%;border-collapse:collapse;font-size:var(--vp-text-base)}.vp-table__table th{position:sticky;top:0;z-index:1;height:var(--vp-header-height);padding:0 var(--vp-space-3);text-align:left;white-space:nowrap;background:var(--vp-surface-raised);border-bottom:1px solid var(--vp-border-default);color:var(--vp-text-secondary);font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold)}.vp-table__table td{height:var(--vp-row-height);padding:0 var(--vp-space-3);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-primary);font-variant-numeric:tabular-nums}.vp-table__table tbody tr:hover td{background:var(--vp-surface-sunken)}.vp-table__table tbody tr:last-child td{border-bottom:0}.vp-table__sort{display:inline-flex;align-items:center;gap:var(--vp-space-1);min-height:var(--vp-min-target);padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}.vp-table__sort:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__sort-icon{color:var(--vp-text-muted)}.vp-table__empty,.vp-table__error{display:flex;flex-direction:column;align-items:center;gap:var(--vp-space-3);padding:var(--vp-space-12) var(--vp-space-6);text-align:center;color:var(--vp-text-secondary)}.vp-table__state-icon{width:40px;height:40px;color:var(--vp-text-muted)}.vp-table__error .vp-table__state-icon{color:var(--vp-sev-critical)}.vp-table__state-text{margin:0}.vp-table__retry{min-height:var(--vp-control-height);padding:0 var(--vp-space-4);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__retry:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__skeleton{display:flex;flex-direction:column;gap:1px;padding:var(--vp-space-2)}.vp-table__skeleton-row{display:block;height:var(--vp-row-height);border-radius:var(--vp-radius-sm);background:var(--vp-surface-sunken);animation:vp-table-pulse 1.4s var(--vp-ease-standard) infinite}@keyframes vp-table-pulse{0%,to{opacity:1}50%{opacity:.55}}.vp-table__search{flex:1 1 12rem;min-width:8rem;max-width:18rem;min-height:var(--vp-control-height);box-sizing:border-box;padding:.25rem .5rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}@media(max-width:640px){.vp-table__meta{flex-wrap:wrap}.vp-table__search{flex:1 1 100%;max-width:none}}.vp-table__page-size{min-height:var(--vp-control-height);box-sizing:border-box;padding:.2rem .4rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}.vp-table__pager{display:flex;justify-content:flex-end;gap:var(--vp-space-2);padding:var(--vp-space-3) var(--vp-space-4);border-top:1px solid var(--vp-border-subtle)}.vp-table__page-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);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:inherit;cursor:pointer}.vp-table__page-btn:disabled{opacity:.5;cursor:not-allowed}.vp-table__page-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}@media(prefers-reduced-motion:reduce){.vp-table__skeleton-row{animation:none}}.vp-table__cols-btn{margin-left:auto;min-height:var(--vp-control-height);min-width:var(--vp-min-target);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:inherit;cursor:pointer}.vp-table__cols-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__icon-btn{display:inline-grid;place-items:center;min-width:var(--vp-control-height);padding:0;color:var(--vp-text-secondary)}.vp-table__icon-btn:hover{color:var(--vp-text-primary)}.vp-table__icon{width:18px;height:18px}.vp-table__cols{display:flex;flex-direction:column;gap:var(--vp-space-1);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised)}.vp-table__cols-row{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3)}.vp-table__cols-label{display:flex;align-items:center;gap:var(--vp-space-2);cursor:pointer}.vp-table__cols-move button{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);cursor:pointer}.vp-table__cols-move button:disabled{opacity:.4;cursor:not-allowed}.vp-table__cols-move button:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__select-cell{width:var(--vp-min-target);text-align:center}.vp-table__bulk,.vp-table__bulk-confirm,.vp-table__bulk-report{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);font-size:var(--vp-text-sm)}.vp-table__bulk-report{display:block}.vp-table__bulk-confirm{border-color:var(--vp-danger)}.vp-table__bulk-actions{display:flex;gap:var(--vp-space-2)}.vp-table__bulk-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__bulk-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__bulk-btn--danger{border-color:var(--vp-danger);color:var(--vp-danger)}.vp-table__bulk-failures{margin:var(--vp-space-2) 0 0;padding-left:var(--vp-space-5)}.vp-table__expand{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid transparent;border-radius:var(--vp-radius-md);background:transparent;color:var(--vp-text-primary);cursor:pointer}.vp-table__expand:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__detail-row>td{background:var(--vp-surface-raised);padding:var(--vp-space-4)}.vp-table__detail-empty{color:var(--vp-text-muted)}.vp-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n"] }]
|
|
6855
|
+
`, styles: [":host{display:block}.vp-table{border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);overflow:hidden}.vp-table__meta{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);padding:var(--vp-space-3) var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-muted);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums}.vp-table__scroll{overflow-x:auto}.vp-table__table{width:100%;border-collapse:collapse;font-size:var(--vp-text-base)}.vp-table__table th{position:sticky;top:0;z-index:1;height:var(--vp-header-height);padding:0 var(--vp-space-3);text-align:left;white-space:nowrap;background:var(--vp-surface-raised);border-bottom:1px solid var(--vp-border-default);color:var(--vp-text-secondary);font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold)}.vp-table__table td{height:var(--vp-row-height);padding:0 var(--vp-space-3);border-bottom:1px solid var(--vp-border-subtle);color:var(--vp-text-primary);font-variant-numeric:tabular-nums}.vp-table__table tbody tr:hover td{background:var(--vp-surface-sunken)}.vp-table__table tbody tr:last-child td{border-bottom:0}.vp-table__sort{display:inline-flex;align-items:center;gap:var(--vp-space-1);min-height:var(--vp-min-target);padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}.vp-table__sort:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__sort-icon{color:var(--vp-text-muted)}.vp-table__empty,.vp-table__error{display:flex;flex-direction:column;align-items:center;gap:var(--vp-space-3);padding:var(--vp-space-12) var(--vp-space-6);text-align:center;color:var(--vp-text-secondary)}.vp-table__state-icon{width:40px;height:40px;color:var(--vp-text-muted)}.vp-table__error .vp-table__state-icon{color:var(--vp-sev-critical)}.vp-table__state-text{margin:0}.vp-table__retry{min-height:var(--vp-control-height);padding:0 var(--vp-space-4);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-raised);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__retry:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__skeleton{display:flex;flex-direction:column;gap:1px;padding:var(--vp-space-2)}.vp-table__skeleton-row{display:block;height:var(--vp-row-height);border-radius:var(--vp-radius-sm);background:var(--vp-surface-sunken);animation:vp-table-pulse 1.4s var(--vp-ease-standard) infinite}@keyframes vp-table-pulse{0%,to{opacity:1}50%{opacity:.55}}.vp-table__search{flex:1 1 12rem;min-width:8rem;max-width:18rem;min-height:var(--vp-control-height);box-sizing:border-box;padding:.25rem .5rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}@media(max-width:640px){.vp-table__meta{flex-wrap:wrap}.vp-table__search{flex:1 1 100%;max-width:none}}.vp-table__page-size{min-height:var(--vp-control-height);box-sizing:border-box;padding:.2rem .4rem;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit}.vp-table__pager{display:flex;justify-content:flex-end;gap:var(--vp-space-2);padding:var(--vp-space-3) var(--vp-space-4);border-top:1px solid var(--vp-border-subtle)}.vp-table__page-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);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:inherit;cursor:pointer}.vp-table__page-btn:disabled{opacity:.5;cursor:not-allowed}.vp-table__page-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}@media(prefers-reduced-motion:reduce){.vp-table__skeleton-row{animation:none}}.vp-table__cols-btn{margin-left:auto;min-height:var(--vp-control-height);min-width:var(--vp-min-target);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:inherit;cursor:pointer}.vp-table__cols-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__icon-btn{display:inline-grid;place-items:center;min-width:var(--vp-control-height);padding:0;color:var(--vp-text-secondary)}.vp-table__icon-btn:hover{color:var(--vp-text-primary)}.vp-table__icon{width:18px;height:18px}.vp-table__cols{display:flex;flex-direction:column;gap:var(--vp-space-1);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised)}.vp-table__cols-row{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3)}.vp-table__cols-label{display:flex;align-items:center;gap:var(--vp-space-2);cursor:pointer}.vp-table__cols-move button{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);cursor:pointer}.vp-table__cols-move button:disabled{opacity:.4;cursor:not-allowed}.vp-table__cols-move button:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__select-cell{width:var(--vp-min-target);text-align:center}.vp-table__bulk,.vp-table__bulk-confirm,.vp-table__bulk-report{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-3);margin-bottom:var(--vp-space-3);padding:var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);font-size:var(--vp-text-sm)}.vp-table__bulk-report{display:block}.vp-table__bulk-confirm{border-color:var(--vp-danger)}.vp-table__bulk-actions{display:flex;gap:var(--vp-space-2)}.vp-table__bulk-btn{min-height:var(--vp-control-height);min-width:var(--vp-min-target);padding:0 var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-default);color:var(--vp-text-primary);font:inherit;cursor:pointer}.vp-table__bulk-btn:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__bulk-btn--danger{border-color:var(--vp-danger);color:var(--vp-danger)}.vp-table__bulk-failures{margin:var(--vp-space-2) 0 0;padding-left:var(--vp-space-5)}.vp-table__expand{min-width:var(--vp-min-target);min-height:var(--vp-min-target);border:1px solid transparent;border-radius:var(--vp-radius-md);background:transparent;color:var(--vp-text-primary);cursor:pointer}.vp-table__expand:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-table__detail-row>td{background:var(--vp-surface-raised);padding:var(--vp-space-4)}.vp-table__detail-empty{color:var(--vp-text-muted)}.vp-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.vp-table__range{color:var(--vp-text-muted);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums}.vp-table__table [data-align=end]{text-align:end}.vp-table__table [data-align=center]{text-align:center}.vp-table__table [data-mono=true]{font-family:var(--vp-font-mono);font-variant-numeric:tabular-nums}.vp-table__table [data-nowrap=true]{white-space:nowrap}.vp-table__table td[data-emphasis=true]{font-weight:var(--vp-weight-semibold)}.vp-table[data-header-style=caps] .vp-table__table th{font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);letter-spacing:.06em;text-transform:uppercase}.vp-table[data-bare=true]{border:0;border-radius:0;background:transparent}@media(max-width:640px){.vp-table[data-stack=true] .vp-table__table thead{display:none}.vp-table[data-stack=true] .vp-table__table tr[data-vp-row]{display:block;padding:var(--vp-space-2) 0;border-bottom:1px solid var(--vp-border-subtle)}.vp-table[data-stack=true] .vp-table__table td{display:flex;justify-content:space-between;gap:var(--vp-space-3);border:0}.vp-table[data-stack=true] .vp-table__table td[data-label]:before{content:attr(data-label);color:var(--vp-text-muted);font-size:var(--vp-text-xs)}}\n"] }]
|
|
6784
6856
|
}], propDecorators: { columns: [{
|
|
6785
6857
|
type: Input,
|
|
6786
6858
|
args: [{ required: true }]
|
|
@@ -6802,6 +6874,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
6802
6874
|
type: Input
|
|
6803
6875
|
}], totalLabel: [{
|
|
6804
6876
|
type: Input
|
|
6877
|
+
}], headerStyle: [{
|
|
6878
|
+
type: Input
|
|
6879
|
+
}], showMeta: [{
|
|
6880
|
+
type: Input
|
|
6881
|
+
}], selectedKey: [{
|
|
6882
|
+
type: Input
|
|
6883
|
+
}], rangeLabel: [{
|
|
6884
|
+
type: Input
|
|
6885
|
+
}], bare: [{
|
|
6886
|
+
type: Input
|
|
6887
|
+
}], stack: [{
|
|
6888
|
+
type: Input
|
|
6805
6889
|
}], loadingLabel: [{
|
|
6806
6890
|
type: Input
|
|
6807
6891
|
}], emptyLabel: [{
|
|
@@ -8112,7 +8196,27 @@ class VpKpiCardComponent {
|
|
|
8112
8196
|
/** Onceki doneme gore degisim. `null` ise trend gosterilmez. */
|
|
8113
8197
|
this.change = null;
|
|
8114
8198
|
this.hint = null;
|
|
8199
|
+
/**
|
|
8200
|
+
* İsteğe bağlı ilerleme çubuğu (0..100; dışı kırpılır). Verilmezse kart eskisiyle bire bir aynı.
|
|
8201
|
+
* Ton (`progressTone`) tüketiciden; değer metni `value`/`hint` ile zaten yazılıdır.
|
|
8202
|
+
*/
|
|
8203
|
+
this.progress = null;
|
|
8204
|
+
this.progressTone = 'ok';
|
|
8115
8205
|
this.emptyLabel = 'Veri yok';
|
|
8206
|
+
/** design-system/006: değerin yanında birim (`ms`, `/ 50.000`). Değer yokken çizilmez. */
|
|
8207
|
+
this.unit = null;
|
|
8208
|
+
/** Karşılaştırma satırı (mono): metin tüketiciden; yön yalnız ek bilgi. */
|
|
8209
|
+
this.delta = null;
|
|
8210
|
+
/** `'upper'` → etiket BÜYÜK HARF (prototip). Varsayılan: normal. */
|
|
8211
|
+
this.labelCase = null;
|
|
8212
|
+
/** Değer tonu (uyarı/kritik). Varsayılan: nötr. */
|
|
8213
|
+
this.tone = null;
|
|
8214
|
+
}
|
|
8215
|
+
get progressPercent() {
|
|
8216
|
+
const p = this.progress;
|
|
8217
|
+
if (p === null || p === undefined || Number.isNaN(p))
|
|
8218
|
+
return null;
|
|
8219
|
+
return Math.min(100, Math.max(0, p));
|
|
8116
8220
|
}
|
|
8117
8221
|
get direction() {
|
|
8118
8222
|
const c = this.change ?? 0;
|
|
@@ -8135,14 +8239,21 @@ class VpKpiCardComponent {
|
|
|
8135
8239
|
}
|
|
8136
8240
|
}
|
|
8137
8241
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpKpiCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8138
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpKpiCardComponent, isStandalone: true, selector: "vp-kpi-card", inputs: { label: "label", value: "value", change: "change", hint: "hint", emptyLabel: "emptyLabel" }, ngImport: i0, template: `
|
|
8242
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpKpiCardComponent, isStandalone: true, selector: "vp-kpi-card", inputs: { label: "label", value: "value", change: "change", hint: "hint", progress: "progress", progressTone: "progressTone", emptyLabel: "emptyLabel", unit: "unit", delta: "delta", labelCase: "labelCase", tone: "tone" }, ngImport: i0, template: `
|
|
8139
8243
|
<div class="vp-kpi">
|
|
8140
|
-
<span class="vp-kpi__label">{{ label }}</span>
|
|
8244
|
+
<span class="vp-kpi__label" [attr.data-case]="labelCase || null">{{ label }}</span>
|
|
8141
8245
|
|
|
8142
8246
|
@if (value === null || value === undefined) {
|
|
8143
8247
|
<span class="vp-kpi__empty" data-vp-kpi-empty>{{ emptyLabel }}</span>
|
|
8144
8248
|
} @else {
|
|
8145
|
-
|
|
8249
|
+
@if (unit) {
|
|
8250
|
+
<span class="vp-kpi__row" data-vp-kpi-row>
|
|
8251
|
+
<span class="vp-kpi__value" data-vp-kpi-value [attr.data-tone]="tone || null">{{ value }}</span>
|
|
8252
|
+
<span class="vp-kpi__unit" data-vp-kpi-unit>{{ unit }}</span>
|
|
8253
|
+
</span>
|
|
8254
|
+
} @else {
|
|
8255
|
+
<span class="vp-kpi__value" data-vp-kpi-value [attr.data-tone]="tone || null">{{ value }}</span>
|
|
8256
|
+
}
|
|
8146
8257
|
|
|
8147
8258
|
@if (change !== null && change !== undefined) {
|
|
8148
8259
|
<span
|
|
@@ -8155,24 +8266,48 @@ class VpKpiCardComponent {
|
|
|
8155
8266
|
{{ changeText }}
|
|
8156
8267
|
</span>
|
|
8157
8268
|
}
|
|
8269
|
+
|
|
8270
|
+
@if (delta) {
|
|
8271
|
+
<span class="vp-kpi__delta" data-vp-kpi-delta [attr.data-direction]="delta.direction || 'flat'" [attr.data-tone]="delta.tone || null">{{ delta.text }}</span>
|
|
8272
|
+
}
|
|
8273
|
+
|
|
8274
|
+
@if (progressPercent !== null) {
|
|
8275
|
+
<span
|
|
8276
|
+
class="vp-kpi__progress"
|
|
8277
|
+
data-vp-kpi-progress
|
|
8278
|
+
role="progressbar"
|
|
8279
|
+
aria-valuemin="0"
|
|
8280
|
+
aria-valuemax="100"
|
|
8281
|
+
[attr.aria-valuenow]="progressPercent"
|
|
8282
|
+
[attr.aria-label]="label">
|
|
8283
|
+
<span class="vp-kpi__progress-fill" data-vp-kpi-progress-fill [attr.data-tone]="progressTone" [style.width.%]="progressPercent"></span>
|
|
8284
|
+
</span>
|
|
8285
|
+
}
|
|
8158
8286
|
}
|
|
8159
8287
|
|
|
8160
8288
|
@if (hint) {
|
|
8161
8289
|
<span class="vp-kpi__hint">{{ hint }}</span>
|
|
8162
8290
|
}
|
|
8163
8291
|
</div>
|
|
8164
|
-
`, isInline: true, styles: [":host{display:block}.vp-kpi{display:flex;flex-direction:column;gap:var(--vp-space-1);padding:var(--vp-space-4);border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);font-family:var(--vp-font-sans)}.vp-kpi__label{color:var(--vp-text-muted);font-size:var(--vp-text-sm)}.vp-kpi__value{color:var(--vp-text-primary);font-size:var(--vp-text-3xl);font-weight:var(--vp-weight-semibold);line-height:var(--vp-leading-tight);font-variant-numeric:tabular-nums}.vp-kpi__empty{color:var(--vp-text-muted);font-size:var(--vp-text-base)}.vp-kpi__trend{display:inline-flex;align-items:center;gap:var(--vp-space-1);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums}.vp-kpi__trend[data-direction=up]{color:var(--vp-sev-clean)}.vp-kpi__trend[data-direction=down]{color:var(--vp-sev-critical)}.vp-kpi__trend[data-direction=flat]{color:var(--vp-text-muted)}.vp-kpi__trend-icon{width:14px;height:14px}.vp-kpi__hint{color:var(--vp-text-muted);font-size:var(--vp-text-xs)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8292
|
+
`, isInline: true, styles: [":host{display:block;height:100%}.vp-kpi{display:flex;flex-direction:column;gap:var(--vp-space-1);padding:var(--vp-space-4);border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);font-family:var(--vp-font-sans)}.vp-kpi__label{color:var(--vp-text-muted);font-size:var(--vp-text-sm)}.vp-kpi__value{color:var(--vp-text-primary);font-size:var(--vp-text-3xl);font-weight:var(--vp-weight-semibold);line-height:var(--vp-leading-tight);font-variant-numeric:tabular-nums}.vp-kpi__empty{color:var(--vp-text-muted);font-size:var(--vp-text-base)}.vp-kpi__trend{display:inline-flex;align-items:center;gap:var(--vp-space-1);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums}.vp-kpi__trend[data-direction=up]{color:var(--vp-sev-clean)}.vp-kpi__trend[data-direction=down]{color:var(--vp-sev-critical)}.vp-kpi__trend[data-direction=flat]{color:var(--vp-text-muted)}.vp-kpi__trend-icon{width:14px;height:14px}.vp-kpi__progress{display:block;height:6px;overflow:hidden;border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken)}.vp-kpi__progress-fill{display:block;height:100%;border-radius:inherit;background:var(--vp-sev-clean)}.vp-kpi__progress-fill[data-tone=warn]{background:var(--vp-sev-high)}.vp-kpi__progress-fill[data-tone=critical]{background:var(--vp-sev-critical)}.vp-kpi__row{display:flex;align-items:baseline;gap:var(--vp-space-2);min-width:0}.vp-kpi__unit{color:var(--vp-text-muted);font-size:var(--vp-text-sm);white-space:nowrap}.vp-kpi__label[data-case=upper]{font-size:var(--vp-text-xs);letter-spacing:.04em;text-transform:uppercase}.vp-kpi__value[data-tone=warn]{color:var(--vp-sev-high)}.vp-kpi__value[data-tone=critical]{color:var(--vp-sev-critical)}.vp-kpi__delta{font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums;color:var(--vp-text-muted)}.vp-kpi__delta[data-direction=up]{color:var(--vp-sev-clean)}.vp-kpi__delta[data-direction=down]{color:var(--vp-sev-critical)}.vp-kpi__delta[data-tone=warn]{color:var(--vp-sev-high)}.vp-kpi__delta[data-tone=critical]{color:var(--vp-sev-critical)}.vp-kpi__hint{color:var(--vp-text-muted);font-size:var(--vp-text-xs)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8165
8293
|
}
|
|
8166
8294
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpKpiCardComponent, decorators: [{
|
|
8167
8295
|
type: Component,
|
|
8168
8296
|
args: [{ selector: 'vp-kpi-card', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
8169
8297
|
<div class="vp-kpi">
|
|
8170
|
-
<span class="vp-kpi__label">{{ label }}</span>
|
|
8298
|
+
<span class="vp-kpi__label" [attr.data-case]="labelCase || null">{{ label }}</span>
|
|
8171
8299
|
|
|
8172
8300
|
@if (value === null || value === undefined) {
|
|
8173
8301
|
<span class="vp-kpi__empty" data-vp-kpi-empty>{{ emptyLabel }}</span>
|
|
8174
8302
|
} @else {
|
|
8175
|
-
|
|
8303
|
+
@if (unit) {
|
|
8304
|
+
<span class="vp-kpi__row" data-vp-kpi-row>
|
|
8305
|
+
<span class="vp-kpi__value" data-vp-kpi-value [attr.data-tone]="tone || null">{{ value }}</span>
|
|
8306
|
+
<span class="vp-kpi__unit" data-vp-kpi-unit>{{ unit }}</span>
|
|
8307
|
+
</span>
|
|
8308
|
+
} @else {
|
|
8309
|
+
<span class="vp-kpi__value" data-vp-kpi-value [attr.data-tone]="tone || null">{{ value }}</span>
|
|
8310
|
+
}
|
|
8176
8311
|
|
|
8177
8312
|
@if (change !== null && change !== undefined) {
|
|
8178
8313
|
<span
|
|
@@ -8185,13 +8320,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
8185
8320
|
{{ changeText }}
|
|
8186
8321
|
</span>
|
|
8187
8322
|
}
|
|
8323
|
+
|
|
8324
|
+
@if (delta) {
|
|
8325
|
+
<span class="vp-kpi__delta" data-vp-kpi-delta [attr.data-direction]="delta.direction || 'flat'" [attr.data-tone]="delta.tone || null">{{ delta.text }}</span>
|
|
8326
|
+
}
|
|
8327
|
+
|
|
8328
|
+
@if (progressPercent !== null) {
|
|
8329
|
+
<span
|
|
8330
|
+
class="vp-kpi__progress"
|
|
8331
|
+
data-vp-kpi-progress
|
|
8332
|
+
role="progressbar"
|
|
8333
|
+
aria-valuemin="0"
|
|
8334
|
+
aria-valuemax="100"
|
|
8335
|
+
[attr.aria-valuenow]="progressPercent"
|
|
8336
|
+
[attr.aria-label]="label">
|
|
8337
|
+
<span class="vp-kpi__progress-fill" data-vp-kpi-progress-fill [attr.data-tone]="progressTone" [style.width.%]="progressPercent"></span>
|
|
8338
|
+
</span>
|
|
8339
|
+
}
|
|
8188
8340
|
}
|
|
8189
8341
|
|
|
8190
8342
|
@if (hint) {
|
|
8191
8343
|
<span class="vp-kpi__hint">{{ hint }}</span>
|
|
8192
8344
|
}
|
|
8193
8345
|
</div>
|
|
8194
|
-
`, styles: [":host{display:block}.vp-kpi{display:flex;flex-direction:column;gap:var(--vp-space-1);padding:var(--vp-space-4);border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);font-family:var(--vp-font-sans)}.vp-kpi__label{color:var(--vp-text-muted);font-size:var(--vp-text-sm)}.vp-kpi__value{color:var(--vp-text-primary);font-size:var(--vp-text-3xl);font-weight:var(--vp-weight-semibold);line-height:var(--vp-leading-tight);font-variant-numeric:tabular-nums}.vp-kpi__empty{color:var(--vp-text-muted);font-size:var(--vp-text-base)}.vp-kpi__trend{display:inline-flex;align-items:center;gap:var(--vp-space-1);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums}.vp-kpi__trend[data-direction=up]{color:var(--vp-sev-clean)}.vp-kpi__trend[data-direction=down]{color:var(--vp-sev-critical)}.vp-kpi__trend[data-direction=flat]{color:var(--vp-text-muted)}.vp-kpi__trend-icon{width:14px;height:14px}.vp-kpi__hint{color:var(--vp-text-muted);font-size:var(--vp-text-xs)}\n"] }]
|
|
8346
|
+
`, styles: [":host{display:block;height:100%}.vp-kpi{display:flex;flex-direction:column;gap:var(--vp-space-1);padding:var(--vp-space-4);border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);font-family:var(--vp-font-sans)}.vp-kpi__label{color:var(--vp-text-muted);font-size:var(--vp-text-sm)}.vp-kpi__value{color:var(--vp-text-primary);font-size:var(--vp-text-3xl);font-weight:var(--vp-weight-semibold);line-height:var(--vp-leading-tight);font-variant-numeric:tabular-nums}.vp-kpi__empty{color:var(--vp-text-muted);font-size:var(--vp-text-base)}.vp-kpi__trend{display:inline-flex;align-items:center;gap:var(--vp-space-1);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums}.vp-kpi__trend[data-direction=up]{color:var(--vp-sev-clean)}.vp-kpi__trend[data-direction=down]{color:var(--vp-sev-critical)}.vp-kpi__trend[data-direction=flat]{color:var(--vp-text-muted)}.vp-kpi__trend-icon{width:14px;height:14px}.vp-kpi__progress{display:block;height:6px;overflow:hidden;border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken)}.vp-kpi__progress-fill{display:block;height:100%;border-radius:inherit;background:var(--vp-sev-clean)}.vp-kpi__progress-fill[data-tone=warn]{background:var(--vp-sev-high)}.vp-kpi__progress-fill[data-tone=critical]{background:var(--vp-sev-critical)}.vp-kpi__row{display:flex;align-items:baseline;gap:var(--vp-space-2);min-width:0}.vp-kpi__unit{color:var(--vp-text-muted);font-size:var(--vp-text-sm);white-space:nowrap}.vp-kpi__label[data-case=upper]{font-size:var(--vp-text-xs);letter-spacing:.04em;text-transform:uppercase}.vp-kpi__value[data-tone=warn]{color:var(--vp-sev-high)}.vp-kpi__value[data-tone=critical]{color:var(--vp-sev-critical)}.vp-kpi__delta{font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums;color:var(--vp-text-muted)}.vp-kpi__delta[data-direction=up]{color:var(--vp-sev-clean)}.vp-kpi__delta[data-direction=down]{color:var(--vp-sev-critical)}.vp-kpi__delta[data-tone=warn]{color:var(--vp-sev-high)}.vp-kpi__delta[data-tone=critical]{color:var(--vp-sev-critical)}.vp-kpi__hint{color:var(--vp-text-muted);font-size:var(--vp-text-xs)}\n"] }]
|
|
8195
8347
|
}], propDecorators: { label: [{
|
|
8196
8348
|
type: Input,
|
|
8197
8349
|
args: [{ required: true }]
|
|
@@ -8201,8 +8353,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
8201
8353
|
type: Input
|
|
8202
8354
|
}], hint: [{
|
|
8203
8355
|
type: Input
|
|
8356
|
+
}], progress: [{
|
|
8357
|
+
type: Input
|
|
8358
|
+
}], progressTone: [{
|
|
8359
|
+
type: Input
|
|
8204
8360
|
}], emptyLabel: [{
|
|
8205
8361
|
type: Input
|
|
8362
|
+
}], unit: [{
|
|
8363
|
+
type: Input
|
|
8364
|
+
}], delta: [{
|
|
8365
|
+
type: Input
|
|
8366
|
+
}], labelCase: [{
|
|
8367
|
+
type: Input
|
|
8368
|
+
}], tone: [{
|
|
8369
|
+
type: Input
|
|
8206
8370
|
}] } });
|
|
8207
8371
|
|
|
8208
8372
|
/**
|
|
@@ -8449,169 +8613,1540 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
8449
8613
|
}] } });
|
|
8450
8614
|
|
|
8451
8615
|
/**
|
|
8452
|
-
*
|
|
8453
|
-
*
|
|
8454
|
-
* Ikincil navigasyon + icerik alani. Her bolum kendi rotasi oldugu icin
|
|
8455
|
-
* **deep link paylasilabilir**; kabuk yalnizca hangisinin aktif oldugunu bilir.
|
|
8616
|
+
* Ortak grafik hesapları — design-system/005 T-01.
|
|
8456
8617
|
*
|
|
8457
|
-
*
|
|
8458
|
-
*
|
|
8618
|
+
* Saf fonksiyonlar (DOM ölçümü yok). Savunma kuralları hepsinde aynı:
|
|
8619
|
+
* NaN, negatif ve sonsuz değer "ölçülemedi" sayılır → 0. Bölme-sıfır yok.
|
|
8620
|
+
*/
|
|
8621
|
+
const isUsable = (n) => Number.isFinite(n) && n > 0;
|
|
8622
|
+
/** Değeri `max`a oranlar: 0..1. Geçersiz değer/max → 0; max üstü → 1. */
|
|
8623
|
+
function scale(value, max) {
|
|
8624
|
+
if (!isUsable(max) || !isUsable(value))
|
|
8625
|
+
return 0;
|
|
8626
|
+
return Math.min(1, value / max);
|
|
8627
|
+
}
|
|
8628
|
+
/**
|
|
8629
|
+
* Ölçek üst sınırı. Tüketici geçerli bir `userMax` verdiyse o kullanılır
|
|
8630
|
+
* (en büyük değer %100 olmak zorunda değil); yoksa veriden en büyük geçerli değer.
|
|
8631
|
+
*/
|
|
8632
|
+
function niceMax(values, userMax) {
|
|
8633
|
+
if (userMax !== undefined && userMax !== null && isUsable(userMax))
|
|
8634
|
+
return userMax;
|
|
8635
|
+
return values.reduce((acc, v) => (isUsable(v) && v > acc ? v : acc), 0);
|
|
8636
|
+
}
|
|
8637
|
+
/** Dilimleri toplamı 100 olacak şekilde orantılar. Toplam 0 → hepsi 0. */
|
|
8638
|
+
function normalizeShares(parts) {
|
|
8639
|
+
const safe = parts.map((p) => (isUsable(p) ? p : 0));
|
|
8640
|
+
const total = safe.reduce((a, b) => a + b, 0);
|
|
8641
|
+
if (total === 0)
|
|
8642
|
+
return safe;
|
|
8643
|
+
return safe.map((p) => (p * 100) / total);
|
|
8644
|
+
}
|
|
8645
|
+
/**
|
|
8646
|
+
* Eşik tonu: `VpQuotaLevel` adlarını yeniden kullanır (Q-4).
|
|
8647
|
+
* Eşik verilmezse ya da değer geçersizse `ok` — ton uydurulmaz.
|
|
8648
|
+
*/
|
|
8649
|
+
function toneFor(value, warnAt, criticalAt) {
|
|
8650
|
+
if (!Number.isFinite(value))
|
|
8651
|
+
return 'ok';
|
|
8652
|
+
if (criticalAt !== undefined && criticalAt !== null && value >= criticalAt)
|
|
8653
|
+
return 'critical';
|
|
8654
|
+
if (warnAt !== undefined && warnAt !== null && value >= warnAt)
|
|
8655
|
+
return 'warn';
|
|
8656
|
+
return 'ok';
|
|
8657
|
+
}
|
|
8658
|
+
/**
|
|
8659
|
+
* Noktaları `size`'lı gruplara birleştirir (dar ekranda 2→1 sütun): başarılı/hata toplanır, etiket grubun ilki.
|
|
8660
|
+
* `size` < 2 ya da geçersizse girdi aynen döner. NaN/negatif değer 0 sayılır.
|
|
8661
|
+
*/
|
|
8662
|
+
function mergePoints(points, size) {
|
|
8663
|
+
const n = Number.isFinite(size) ? Math.floor(size) : 1;
|
|
8664
|
+
if (n < 2)
|
|
8665
|
+
return [...points];
|
|
8666
|
+
const safe = (v) => (Number.isFinite(v) && v > 0 ? v : 0);
|
|
8667
|
+
const out = [];
|
|
8668
|
+
for (let i = 0; i < points.length; i += n) {
|
|
8669
|
+
const group = points.slice(i, i + n);
|
|
8670
|
+
out.push({ ...group[0], ok: group.reduce((a, p) => a + safe(p.ok), 0), error: group.reduce((a, p) => a + safe(p.error), 0) });
|
|
8671
|
+
}
|
|
8672
|
+
return out;
|
|
8673
|
+
}
|
|
8674
|
+
|
|
8675
|
+
const VIEW$1 = { w: 320, h: 120, padL: 3, padR: 3, padT: 8, padB: 6 };
|
|
8676
|
+
const INNER_W = VIEW$1.w - VIEW$1.padL - VIEW$1.padR;
|
|
8677
|
+
const INNER_H = VIEW$1.h - VIEW$1.padT - VIEW$1.padB;
|
|
8678
|
+
const BASE_Y = VIEW$1.h - VIEW$1.padB;
|
|
8679
|
+
const BAR_FILL = 0.7;
|
|
8680
|
+
/**
|
|
8681
|
+
* Yığılmış sütun grafiği (saatlik başarılı + hata ayrı) — design-system/005 T-06.
|
|
8459
8682
|
*
|
|
8460
|
-
*
|
|
8683
|
+
* Kurallar:
|
|
8684
|
+
* - İki seri ayrı token renkte (`--vp-brand` başarılı, `--vp-sev-critical` hata); renk tek
|
|
8685
|
+
* anlam taşıyıcı değil — özet metin `ariaLabel` ile tüketiciden gelir.
|
|
8686
|
+
* - Ölçek ortak: sütun toplamlarının ve limitin en büyüğü. Limit çizimin içinde kalır.
|
|
8687
|
+
* - DOM ölçümü YOK: viewBox tabanlı SVG. Sıfır/NaN/negatif değer → yükseklik 0.
|
|
8688
|
+
* - Nokta yok → boş-durum metni (hata değil). Eksen etiketleri HTML katmanda (`labelEvery`).
|
|
8461
8689
|
*/
|
|
8462
|
-
class
|
|
8690
|
+
class VpStackedBarsComponent {
|
|
8463
8691
|
constructor() {
|
|
8464
|
-
this.
|
|
8465
|
-
this.
|
|
8466
|
-
|
|
8467
|
-
this.
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
-
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8475
|
-
|
|
8476
|
-
}
|
|
8477
|
-
|
|
8478
|
-
|
|
8479
|
-
|
|
8692
|
+
this.points = [];
|
|
8693
|
+
this.limit = null;
|
|
8694
|
+
this.ariaLabel = '';
|
|
8695
|
+
this.emptyLabel = '';
|
|
8696
|
+
/** Her N. noktaya eksen etiketi yazılır (kalabalığı tüketici ayarlar). */
|
|
8697
|
+
this.labelEvery = 1;
|
|
8698
|
+
/** design-system/006: yatay ızgara çizgileri (0, ½, üst). */
|
|
8699
|
+
this.grid = false;
|
|
8700
|
+
/** Sol eksen etiketleri (üst · orta · 0). */
|
|
8701
|
+
this.yAxis = false;
|
|
8702
|
+
/** Dar ekranda N noktayı tek sütuna birleştirir (tüketici karar verir; ölçüm yok). */
|
|
8703
|
+
this.merge = 1;
|
|
8704
|
+
}
|
|
8705
|
+
get shown() {
|
|
8706
|
+
return mergePoints(this.points, this.merge);
|
|
8707
|
+
}
|
|
8708
|
+
get gridYs() {
|
|
8709
|
+
return [BASE_Y, BASE_Y - INNER_H / 2, BASE_Y - INNER_H];
|
|
8710
|
+
}
|
|
8711
|
+
get yLabels() {
|
|
8712
|
+
const top = this.top;
|
|
8713
|
+
return [top, top / 2, 0].map((v) => Math.round(v).toLocaleString());
|
|
8714
|
+
}
|
|
8715
|
+
get step() {
|
|
8716
|
+
return Number.isFinite(this.labelEvery) && this.labelEvery >= 1 ? Math.floor(this.labelEvery) : 1;
|
|
8717
|
+
}
|
|
8718
|
+
get top() {
|
|
8719
|
+
const totals = this.shown.map((p) => this.safe(p.ok) + this.safe(p.error));
|
|
8720
|
+
return niceMax(this.limit === null ? totals : [...totals, this.limit]);
|
|
8721
|
+
}
|
|
8722
|
+
get bars() {
|
|
8723
|
+
const top = this.top;
|
|
8724
|
+
const slot = INNER_W / this.shown.length;
|
|
8725
|
+
const width = slot * BAR_FILL;
|
|
8726
|
+
return this.shown.map((p, i) => {
|
|
8727
|
+
const okHeight = scale(p.ok, top) * INNER_H;
|
|
8728
|
+
const errorHeight = scale(p.error, top) * INNER_H;
|
|
8729
|
+
return {
|
|
8730
|
+
x: VIEW$1.padL + slot * i + (slot - width) / 2,
|
|
8731
|
+
width,
|
|
8732
|
+
okY: BASE_Y - okHeight,
|
|
8733
|
+
okHeight,
|
|
8734
|
+
errorY: BASE_Y - okHeight - errorHeight,
|
|
8735
|
+
errorHeight,
|
|
8736
|
+
};
|
|
8737
|
+
});
|
|
8480
8738
|
}
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8500
|
-
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
[class.vp-settings__link--active]="section.code === activeCode"
|
|
8507
|
-
(click)="follow($event, section.path)">
|
|
8508
|
-
<i [attr.class]="iconClass(section)" aria-hidden="true"></i>
|
|
8509
|
-
{{ section.label }}
|
|
8510
|
-
</a>
|
|
8511
|
-
}
|
|
8512
|
-
</li>
|
|
8739
|
+
/** Limit yoksa/geçersizse null; varsa her zaman çizim sınırları içinde. */
|
|
8740
|
+
get limitY() {
|
|
8741
|
+
if (this.limit === null || !Number.isFinite(this.limit) || this.limit < 0)
|
|
8742
|
+
return null;
|
|
8743
|
+
return BASE_Y - scale(this.limit, this.top) * INNER_H;
|
|
8744
|
+
}
|
|
8745
|
+
safe(n) {
|
|
8746
|
+
return Number.isFinite(n) && n > 0 ? n : 0;
|
|
8747
|
+
}
|
|
8748
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpStackedBarsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8749
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpStackedBarsComponent, isStandalone: true, selector: "vp-stacked-bars", inputs: { points: "points", limit: "limit", ariaLabel: "ariaLabel", emptyLabel: "emptyLabel", labelEvery: "labelEvery", grid: "grid", yAxis: "yAxis", merge: "merge" }, ngImport: i0, template: `
|
|
8750
|
+
@if (shown.length) {
|
|
8751
|
+
<div class="vp-stacked" data-vp-stacked role="img" [attr.aria-label]="ariaLabel">
|
|
8752
|
+
@if (yAxis) {
|
|
8753
|
+
<div class="vp-stacked__yaxis" aria-hidden="true">
|
|
8754
|
+
@for (label of yLabels; track $index) {
|
|
8755
|
+
<span data-vp-stacked-ylabel>{{ label }}</span>
|
|
8756
|
+
}
|
|
8757
|
+
</div>
|
|
8758
|
+
}
|
|
8759
|
+
<svg class="vp-stacked__svg" aria-hidden="true" focusable="false" preserveAspectRatio="none" viewBox="0 0 320 120">
|
|
8760
|
+
@if (grid) {
|
|
8761
|
+
@for (y of gridYs; track $index) {
|
|
8762
|
+
<line class="vp-stacked__grid" data-vp-stacked-grid [attr.x1]="3" [attr.x2]="317" [attr.y1]="y" [attr.y2]="y" />
|
|
8763
|
+
}
|
|
8513
8764
|
}
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8765
|
+
<line class="vp-stacked__axis" [attr.x1]="3" [attr.x2]="317" [attr.y1]="114" [attr.y2]="114" />
|
|
8766
|
+
@for (bar of bars; track $index) {
|
|
8767
|
+
<rect class="vp-stacked__ok" data-vp-bar-ok [attr.x]="bar.x" [attr.width]="bar.width" [attr.y]="bar.okY" [attr.height]="bar.okHeight" />
|
|
8768
|
+
<rect class="vp-stacked__error" data-vp-bar-error [attr.x]="bar.x" [attr.width]="bar.width" [attr.y]="bar.errorY" [attr.height]="bar.errorHeight" />
|
|
8769
|
+
}
|
|
8770
|
+
@if (limitY !== null) {
|
|
8771
|
+
<line class="vp-stacked__limit" data-vp-stacked-limit stroke-dasharray="4 4" [attr.x1]="3" [attr.x2]="317" [attr.y1]="limitY" [attr.y2]="limitY" />
|
|
8772
|
+
}
|
|
8773
|
+
</svg>
|
|
8774
|
+
<div class="vp-stacked__labels" aria-hidden="true" [style.grid-template-columns]="'repeat(' + shown.length + ', 1fr)'">
|
|
8775
|
+
@for (p of shown; track $index; let i = $index) {
|
|
8776
|
+
@if (i % step === 0) {
|
|
8777
|
+
<span class="vp-stacked__label" data-vp-stacked-label>{{ p.label }}</span>
|
|
8778
|
+
} @else {
|
|
8779
|
+
<span></span>
|
|
8780
|
+
}
|
|
8781
|
+
}
|
|
8782
|
+
</div>
|
|
8519
8783
|
</div>
|
|
8520
|
-
|
|
8521
|
-
|
|
8784
|
+
} @else {
|
|
8785
|
+
<span class="vp-stacked__empty" data-vp-stacked-empty>{{ emptyLabel }}</span>
|
|
8786
|
+
}
|
|
8787
|
+
`, isInline: true, styles: [":host{display:block}.vp-stacked{width:100%;font-family:var(--vp-font-sans)}.vp-stacked__svg{display:block;width:100%;height:160px}.vp-stacked__axis,.vp-stacked__grid{stroke:var(--vp-border-subtle);stroke-width:1;vector-effect:non-scaling-stroke}.vp-stacked{position:relative}.vp-stacked__yaxis{position:absolute;top:0;left:0;display:flex;flex-direction:column;justify-content:space-between;height:160px;color:var(--vp-text-muted);font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums;pointer-events:none}.vp-stacked__ok{fill:var(--vp-brand)}.vp-stacked__error{fill:var(--vp-sev-critical)}.vp-stacked__limit{stroke:var(--vp-sev-medium);stroke-width:1;vector-effect:non-scaling-stroke}.vp-stacked__labels{display:grid;margin-top:var(--vp-space-1)}.vp-stacked__label{overflow:visible;color:var(--vp-text-muted);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums;white-space:nowrap}.vp-stacked__empty{display:grid;place-items:center;min-height:120px;color:var(--vp-text-muted);font-family:var(--vp-font-sans);font-size:var(--vp-text-sm)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8522
8788
|
}
|
|
8523
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type:
|
|
8789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpStackedBarsComponent, decorators: [{
|
|
8524
8790
|
type: Component,
|
|
8525
|
-
args: [{ selector: 'vp-
|
|
8526
|
-
|
|
8527
|
-
<
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
<span
|
|
8541
|
-
class="vp-settings__reason"
|
|
8542
|
-
[attr.data-vp-section-reason]="section.code">{{ section.disabledReason }}</span>
|
|
8543
|
-
} @else {
|
|
8544
|
-
<a
|
|
8545
|
-
class="vp-settings__link"
|
|
8546
|
-
[attr.data-vp-section]="section.code"
|
|
8547
|
-
[attr.href]="section.path"
|
|
8548
|
-
[attr.aria-current]="section.code === activeCode ? 'page' : null"
|
|
8549
|
-
[class.vp-settings__link--active]="section.code === activeCode"
|
|
8550
|
-
(click)="follow($event, section.path)">
|
|
8551
|
-
<i [attr.class]="iconClass(section)" aria-hidden="true"></i>
|
|
8552
|
-
{{ section.label }}
|
|
8553
|
-
</a>
|
|
8554
|
-
}
|
|
8555
|
-
</li>
|
|
8791
|
+
args: [{ selector: 'vp-stacked-bars', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
8792
|
+
@if (shown.length) {
|
|
8793
|
+
<div class="vp-stacked" data-vp-stacked role="img" [attr.aria-label]="ariaLabel">
|
|
8794
|
+
@if (yAxis) {
|
|
8795
|
+
<div class="vp-stacked__yaxis" aria-hidden="true">
|
|
8796
|
+
@for (label of yLabels; track $index) {
|
|
8797
|
+
<span data-vp-stacked-ylabel>{{ label }}</span>
|
|
8798
|
+
}
|
|
8799
|
+
</div>
|
|
8800
|
+
}
|
|
8801
|
+
<svg class="vp-stacked__svg" aria-hidden="true" focusable="false" preserveAspectRatio="none" viewBox="0 0 320 120">
|
|
8802
|
+
@if (grid) {
|
|
8803
|
+
@for (y of gridYs; track $index) {
|
|
8804
|
+
<line class="vp-stacked__grid" data-vp-stacked-grid [attr.x1]="3" [attr.x2]="317" [attr.y1]="y" [attr.y2]="y" />
|
|
8805
|
+
}
|
|
8556
8806
|
}
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8807
|
+
<line class="vp-stacked__axis" [attr.x1]="3" [attr.x2]="317" [attr.y1]="114" [attr.y2]="114" />
|
|
8808
|
+
@for (bar of bars; track $index) {
|
|
8809
|
+
<rect class="vp-stacked__ok" data-vp-bar-ok [attr.x]="bar.x" [attr.width]="bar.width" [attr.y]="bar.okY" [attr.height]="bar.okHeight" />
|
|
8810
|
+
<rect class="vp-stacked__error" data-vp-bar-error [attr.x]="bar.x" [attr.width]="bar.width" [attr.y]="bar.errorY" [attr.height]="bar.errorHeight" />
|
|
8811
|
+
}
|
|
8812
|
+
@if (limitY !== null) {
|
|
8813
|
+
<line class="vp-stacked__limit" data-vp-stacked-limit stroke-dasharray="4 4" [attr.x1]="3" [attr.x2]="317" [attr.y1]="limitY" [attr.y2]="limitY" />
|
|
8814
|
+
}
|
|
8815
|
+
</svg>
|
|
8816
|
+
<div class="vp-stacked__labels" aria-hidden="true" [style.grid-template-columns]="'repeat(' + shown.length + ', 1fr)'">
|
|
8817
|
+
@for (p of shown; track $index; let i = $index) {
|
|
8818
|
+
@if (i % step === 0) {
|
|
8819
|
+
<span class="vp-stacked__label" data-vp-stacked-label>{{ p.label }}</span>
|
|
8820
|
+
} @else {
|
|
8821
|
+
<span></span>
|
|
8822
|
+
}
|
|
8823
|
+
}
|
|
8824
|
+
</div>
|
|
8562
8825
|
</div>
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
}], activeCode: [{
|
|
8826
|
+
} @else {
|
|
8827
|
+
<span class="vp-stacked__empty" data-vp-stacked-empty>{{ emptyLabel }}</span>
|
|
8828
|
+
}
|
|
8829
|
+
`, styles: [":host{display:block}.vp-stacked{width:100%;font-family:var(--vp-font-sans)}.vp-stacked__svg{display:block;width:100%;height:160px}.vp-stacked__axis,.vp-stacked__grid{stroke:var(--vp-border-subtle);stroke-width:1;vector-effect:non-scaling-stroke}.vp-stacked{position:relative}.vp-stacked__yaxis{position:absolute;top:0;left:0;display:flex;flex-direction:column;justify-content:space-between;height:160px;color:var(--vp-text-muted);font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums;pointer-events:none}.vp-stacked__ok{fill:var(--vp-brand)}.vp-stacked__error{fill:var(--vp-sev-critical)}.vp-stacked__limit{stroke:var(--vp-sev-medium);stroke-width:1;vector-effect:non-scaling-stroke}.vp-stacked__labels{display:grid;margin-top:var(--vp-space-1)}.vp-stacked__label{overflow:visible;color:var(--vp-text-muted);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums;white-space:nowrap}.vp-stacked__empty{display:grid;place-items:center;min-height:120px;color:var(--vp-text-muted);font-family:var(--vp-font-sans);font-size:var(--vp-text-sm)}\n"] }]
|
|
8830
|
+
}], propDecorators: { points: [{
|
|
8569
8831
|
type: Input
|
|
8570
|
-
}],
|
|
8832
|
+
}], limit: [{
|
|
8833
|
+
type: Input
|
|
8834
|
+
}], ariaLabel: [{
|
|
8835
|
+
type: Input
|
|
8836
|
+
}], emptyLabel: [{
|
|
8837
|
+
type: Input
|
|
8838
|
+
}], labelEvery: [{
|
|
8839
|
+
type: Input
|
|
8840
|
+
}], grid: [{
|
|
8841
|
+
type: Input
|
|
8842
|
+
}], yAxis: [{
|
|
8843
|
+
type: Input
|
|
8844
|
+
}], merge: [{
|
|
8571
8845
|
type: Input
|
|
8572
8846
|
}] } });
|
|
8573
8847
|
|
|
8574
8848
|
/**
|
|
8575
|
-
*
|
|
8576
|
-
*
|
|
8577
|
-
* ## 🔴 Autosave YOK
|
|
8578
|
-
*
|
|
8579
|
-
* Guvenlik ayarlarinda istenmeyen kaydetme riski var: kullanici bir alani
|
|
8580
|
-
* yanlislikla degistirip sekmeyi kapatinca ayar kalici olmamali. Acik
|
|
8581
|
-
* `Kaydet` tercih edildi.
|
|
8849
|
+
* Sıralı çubuk listesi (gecikme dağılımı p50…p99) — design-system/005 T-05.
|
|
8582
8850
|
*
|
|
8583
|
-
*
|
|
8584
|
-
*
|
|
8851
|
+
* Kurallar:
|
|
8852
|
+
* - Değer metni her satırda görünür; ton yalnız ek bilgi (renk tek ayırt edici değil).
|
|
8853
|
+
* - Ölçek `max` girdisinden, yoksa veriden (`niceMax`); sıfır/negatif/NaN → 0 genişlik.
|
|
8854
|
+
* - Satır yok → boş-durum metni (tüketiciden).
|
|
8585
8855
|
*/
|
|
8586
|
-
class
|
|
8856
|
+
class VpRankedBarsComponent {
|
|
8587
8857
|
constructor() {
|
|
8588
|
-
|
|
8589
|
-
this.
|
|
8590
|
-
|
|
8591
|
-
this.
|
|
8592
|
-
this.
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
this.
|
|
8596
|
-
this.
|
|
8597
|
-
|
|
8858
|
+
this.rows = [];
|
|
8859
|
+
this.max = null;
|
|
8860
|
+
this.warnAt = null;
|
|
8861
|
+
this.criticalAt = null;
|
|
8862
|
+
this.emptyLabel = '';
|
|
8863
|
+
}
|
|
8864
|
+
get views() {
|
|
8865
|
+
const top = niceMax(this.rows.map((r) => r.value), this.max);
|
|
8866
|
+
return this.rows.map((row) => ({
|
|
8867
|
+
row,
|
|
8868
|
+
width: scale(row.value, top) * 100,
|
|
8869
|
+
tone: toneFor(row.value, this.warnAt, this.criticalAt),
|
|
8870
|
+
text: row.display ?? String(row.value),
|
|
8871
|
+
}));
|
|
8598
8872
|
}
|
|
8599
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type:
|
|
8600
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type:
|
|
8601
|
-
@if (
|
|
8602
|
-
<
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
data-vp-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8873
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpRankedBarsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8874
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpRankedBarsComponent, isStandalone: true, selector: "vp-ranked-bars", inputs: { rows: "rows", max: "max", warnAt: "warnAt", criticalAt: "criticalAt", emptyLabel: "emptyLabel" }, ngImport: i0, template: `
|
|
8875
|
+
@if (views.length) {
|
|
8876
|
+
<ul class="vp-ranked">
|
|
8877
|
+
@for (v of views; track $index) {
|
|
8878
|
+
<li class="vp-ranked__row">
|
|
8879
|
+
<span class="vp-ranked__label" data-vp-ranked-label>{{ v.row.label }}</span>
|
|
8880
|
+
<span class="vp-ranked__track" aria-hidden="true">
|
|
8881
|
+
<span class="vp-ranked__fill" data-vp-ranked-fill [attr.data-tone]="v.tone" [style.width.%]="v.width"></span>
|
|
8882
|
+
</span>
|
|
8883
|
+
<span class="vp-ranked__value" data-vp-ranked-value>{{ v.text }}</span>
|
|
8884
|
+
</li>
|
|
8885
|
+
}
|
|
8886
|
+
</ul>
|
|
8887
|
+
} @else {
|
|
8888
|
+
<span class="vp-ranked__empty" data-vp-ranked-empty>{{ emptyLabel }}</span>
|
|
8889
|
+
}
|
|
8890
|
+
`, isInline: true, styles: [":host{display:block}.vp-ranked{display:flex;flex-direction:column;gap:var(--vp-space-2);margin:0;padding:0;list-style:none;font-family:var(--vp-font-sans)}.vp-ranked__row{display:grid;grid-template-columns:3.5rem 1fr auto;align-items:center;gap:var(--vp-space-3)}.vp-ranked__label{color:var(--vp-text-muted);font-size:var(--vp-text-sm)}.vp-ranked__track{height:8px;overflow:hidden;border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken)}.vp-ranked__fill{display:block;height:100%;border-radius:inherit;background:var(--vp-brand)}.vp-ranked__fill[data-tone=warn]{background:var(--vp-sev-high)}.vp-ranked__fill[data-tone=critical]{background:var(--vp-sev-critical)}.vp-ranked__value{color:var(--vp-text-primary);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums;text-align:right}.vp-ranked__empty{color:var(--vp-text-muted);font-size:var(--vp-text-sm)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8891
|
+
}
|
|
8892
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpRankedBarsComponent, decorators: [{
|
|
8893
|
+
type: Component,
|
|
8894
|
+
args: [{ selector: 'vp-ranked-bars', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
8895
|
+
@if (views.length) {
|
|
8896
|
+
<ul class="vp-ranked">
|
|
8897
|
+
@for (v of views; track $index) {
|
|
8898
|
+
<li class="vp-ranked__row">
|
|
8899
|
+
<span class="vp-ranked__label" data-vp-ranked-label>{{ v.row.label }}</span>
|
|
8900
|
+
<span class="vp-ranked__track" aria-hidden="true">
|
|
8901
|
+
<span class="vp-ranked__fill" data-vp-ranked-fill [attr.data-tone]="v.tone" [style.width.%]="v.width"></span>
|
|
8902
|
+
</span>
|
|
8903
|
+
<span class="vp-ranked__value" data-vp-ranked-value>{{ v.text }}</span>
|
|
8904
|
+
</li>
|
|
8905
|
+
}
|
|
8906
|
+
</ul>
|
|
8907
|
+
} @else {
|
|
8908
|
+
<span class="vp-ranked__empty" data-vp-ranked-empty>{{ emptyLabel }}</span>
|
|
8909
|
+
}
|
|
8910
|
+
`, styles: [":host{display:block}.vp-ranked{display:flex;flex-direction:column;gap:var(--vp-space-2);margin:0;padding:0;list-style:none;font-family:var(--vp-font-sans)}.vp-ranked__row{display:grid;grid-template-columns:3.5rem 1fr auto;align-items:center;gap:var(--vp-space-3)}.vp-ranked__label{color:var(--vp-text-muted);font-size:var(--vp-text-sm)}.vp-ranked__track{height:8px;overflow:hidden;border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken)}.vp-ranked__fill{display:block;height:100%;border-radius:inherit;background:var(--vp-brand)}.vp-ranked__fill[data-tone=warn]{background:var(--vp-sev-high)}.vp-ranked__fill[data-tone=critical]{background:var(--vp-sev-critical)}.vp-ranked__value{color:var(--vp-text-primary);font-size:var(--vp-text-sm);font-variant-numeric:tabular-nums;text-align:right}.vp-ranked__empty{color:var(--vp-text-muted);font-size:var(--vp-text-sm)}\n"] }]
|
|
8911
|
+
}], propDecorators: { rows: [{
|
|
8912
|
+
type: Input
|
|
8913
|
+
}], max: [{
|
|
8914
|
+
type: Input
|
|
8915
|
+
}], warnAt: [{
|
|
8916
|
+
type: Input
|
|
8917
|
+
}], criticalAt: [{
|
|
8918
|
+
type: Input
|
|
8919
|
+
}], emptyLabel: [{
|
|
8920
|
+
type: Input
|
|
8921
|
+
}] } });
|
|
8922
|
+
|
|
8923
|
+
/**
|
|
8924
|
+
* Pay çubuğu (tablo hücresinde yüzde) — design-system/005 T-04.
|
|
8925
|
+
*
|
|
8926
|
+
* Kurallar:
|
|
8927
|
+
* - `value` 0..100'e kırpılır; null/NaN/negatif → 0.
|
|
8928
|
+
* - Değer metni (`label`) tüketiciden ve görünür — çubuk tek bilgi taşıyıcı değil.
|
|
8929
|
+
* - Çubuk `aria-hidden`; metin yoksa etiket çizilmez (uydurma metin yok).
|
|
8930
|
+
*/
|
|
8931
|
+
class VpShareBarComponent {
|
|
8932
|
+
constructor() {
|
|
8933
|
+
this.value = 0;
|
|
8934
|
+
this.label = '';
|
|
8935
|
+
this.tone = 'ok';
|
|
8936
|
+
}
|
|
8937
|
+
get percent() {
|
|
8938
|
+
const v = this.value;
|
|
8939
|
+
if (v === null || v === undefined || !Number.isFinite(v) || v < 0)
|
|
8940
|
+
return 0;
|
|
8941
|
+
return Math.min(100, v);
|
|
8942
|
+
}
|
|
8943
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpShareBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8944
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpShareBarComponent, isStandalone: true, selector: "vp-share-bar", inputs: { value: "value", label: "label", tone: "tone" }, ngImport: i0, template: `
|
|
8945
|
+
<span class="vp-share">
|
|
8946
|
+
<span class="vp-share__track" aria-hidden="true">
|
|
8947
|
+
<span class="vp-share__fill" data-vp-share-fill [attr.data-tone]="tone" [style.width.%]="percent"></span>
|
|
8948
|
+
</span>
|
|
8949
|
+
@if (label) {
|
|
8950
|
+
<span class="vp-share__label" data-vp-share-label>{{ label }}</span>
|
|
8951
|
+
}
|
|
8952
|
+
</span>
|
|
8953
|
+
`, isInline: true, styles: [":host{display:block}.vp-share{display:flex;align-items:center;gap:var(--vp-space-2);font-family:var(--vp-font-sans)}.vp-share__track{flex:1 1 auto;min-width:48px;height:6px;overflow:hidden;border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken)}.vp-share__fill{display:block;height:100%;border-radius:inherit;background:var(--vp-brand)}.vp-share__fill[data-tone=warn]{background:var(--vp-sev-high)}.vp-share__fill[data-tone=critical]{background:var(--vp-sev-critical)}.vp-share__label{flex:0 0 auto;color:var(--vp-text-secondary);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8954
|
+
}
|
|
8955
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpShareBarComponent, decorators: [{
|
|
8956
|
+
type: Component,
|
|
8957
|
+
args: [{ selector: 'vp-share-bar', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
8958
|
+
<span class="vp-share">
|
|
8959
|
+
<span class="vp-share__track" aria-hidden="true">
|
|
8960
|
+
<span class="vp-share__fill" data-vp-share-fill [attr.data-tone]="tone" [style.width.%]="percent"></span>
|
|
8961
|
+
</span>
|
|
8962
|
+
@if (label) {
|
|
8963
|
+
<span class="vp-share__label" data-vp-share-label>{{ label }}</span>
|
|
8964
|
+
}
|
|
8965
|
+
</span>
|
|
8966
|
+
`, styles: [":host{display:block}.vp-share{display:flex;align-items:center;gap:var(--vp-space-2);font-family:var(--vp-font-sans)}.vp-share__track{flex:1 1 auto;min-width:48px;height:6px;overflow:hidden;border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken)}.vp-share__fill{display:block;height:100%;border-radius:inherit;background:var(--vp-brand)}.vp-share__fill[data-tone=warn]{background:var(--vp-sev-high)}.vp-share__fill[data-tone=critical]{background:var(--vp-sev-critical)}.vp-share__label{flex:0 0 auto;color:var(--vp-text-secondary);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums}\n"] }]
|
|
8967
|
+
}], propDecorators: { value: [{
|
|
8968
|
+
type: Input
|
|
8969
|
+
}], label: [{
|
|
8970
|
+
type: Input
|
|
8971
|
+
}], tone: [{
|
|
8972
|
+
type: Input
|
|
8973
|
+
}] } });
|
|
8974
|
+
|
|
8975
|
+
/**
|
|
8976
|
+
* Yanıt karışımı ölçeri (2xx/4xx/5xx yığılmış şerit) — design-system/005 T-04.
|
|
8977
|
+
*
|
|
8978
|
+
* Kurallar:
|
|
8979
|
+
* - Dilimler `normalizeShares` ile toplam 100'e getirilir; toplam 0 → boş-durum.
|
|
8980
|
+
* - Her dilim şeritte VE açıklamada metinle yazılır (renk tek ayırt edici değil).
|
|
8981
|
+
* - Şerit `role="img"`, `aria-label` tüm dilimleri özetler.
|
|
8982
|
+
*/
|
|
8983
|
+
class VpMixMeterComponent {
|
|
8984
|
+
constructor() {
|
|
8985
|
+
this.parts = [];
|
|
8986
|
+
this.emptyLabel = '';
|
|
8987
|
+
}
|
|
8988
|
+
get segments() {
|
|
8989
|
+
const shares = normalizeShares(this.parts.map((p) => p.value));
|
|
8990
|
+
return this.parts.map((part, i) => ({ part, share: shares[i], text: part.display ?? `${Math.round(shares[i])}%` }));
|
|
8991
|
+
}
|
|
8992
|
+
get hasData() {
|
|
8993
|
+
return this.segments.some((s) => s.share > 0);
|
|
8994
|
+
}
|
|
8995
|
+
get summary() {
|
|
8996
|
+
return this.segments.map((s) => `${s.part.label} ${s.text}`).join(', ');
|
|
8997
|
+
}
|
|
8998
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpMixMeterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8999
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpMixMeterComponent, isStandalone: true, selector: "vp-mix-meter", inputs: { parts: "parts", emptyLabel: "emptyLabel" }, ngImport: i0, template: `
|
|
9000
|
+
@if (hasData) {
|
|
9001
|
+
<div class="vp-mix" role="img" [attr.aria-label]="summary">
|
|
9002
|
+
<div class="vp-mix__bar" aria-hidden="true">
|
|
9003
|
+
@for (seg of segments; track seg.part.key) {
|
|
9004
|
+
<span class="vp-mix__seg" data-vp-mix-seg [attr.data-tone]="seg.part.tone" [style.width.%]="seg.share"></span>
|
|
9005
|
+
}
|
|
9006
|
+
</div>
|
|
9007
|
+
<ul class="vp-mix__legend" aria-hidden="true">
|
|
9008
|
+
@for (seg of segments; track seg.part.key) {
|
|
9009
|
+
<li class="vp-mix__item" data-vp-mix-legend>
|
|
9010
|
+
<span class="vp-mix__dot" [attr.data-tone]="seg.part.tone"></span>
|
|
9011
|
+
<span class="vp-mix__name">{{ seg.part.label }}</span>
|
|
9012
|
+
<span class="vp-mix__value">{{ seg.text }}</span>
|
|
9013
|
+
</li>
|
|
9014
|
+
}
|
|
9015
|
+
</ul>
|
|
9016
|
+
</div>
|
|
9017
|
+
} @else {
|
|
9018
|
+
<span class="vp-mix__empty" data-vp-mix-empty>{{ emptyLabel }}</span>
|
|
9019
|
+
}
|
|
9020
|
+
`, isInline: true, styles: [":host{display:block}.vp-mix{display:flex;flex-direction:column;gap:var(--vp-space-2);font-family:var(--vp-font-sans)}.vp-mix__bar{display:flex;height:10px;overflow:hidden;border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken)}.vp-mix__seg{display:block;height:100%}.vp-mix__seg[data-tone=ok],.vp-mix__dot[data-tone=ok]{background:var(--vp-sev-clean)}.vp-mix__seg[data-tone=warn],.vp-mix__dot[data-tone=warn]{background:var(--vp-sev-medium)}.vp-mix__seg[data-tone=critical],.vp-mix__dot[data-tone=critical]{background:var(--vp-sev-critical)}.vp-mix__legend{display:flex;flex-wrap:wrap;gap:var(--vp-space-1) var(--vp-space-4);margin:0;padding:0;list-style:none}.vp-mix__item{display:inline-flex;align-items:center;gap:var(--vp-space-1);font-size:var(--vp-text-xs)}.vp-mix__dot{width:8px;height:8px;border-radius:var(--vp-radius-sm)}.vp-mix__name{color:var(--vp-text-muted)}.vp-mix__value{color:var(--vp-text-primary);font-variant-numeric:tabular-nums}.vp-mix__empty{color:var(--vp-text-muted);font-family:var(--vp-font-sans);font-size:var(--vp-text-sm)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9021
|
+
}
|
|
9022
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpMixMeterComponent, decorators: [{
|
|
9023
|
+
type: Component,
|
|
9024
|
+
args: [{ selector: 'vp-mix-meter', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
9025
|
+
@if (hasData) {
|
|
9026
|
+
<div class="vp-mix" role="img" [attr.aria-label]="summary">
|
|
9027
|
+
<div class="vp-mix__bar" aria-hidden="true">
|
|
9028
|
+
@for (seg of segments; track seg.part.key) {
|
|
9029
|
+
<span class="vp-mix__seg" data-vp-mix-seg [attr.data-tone]="seg.part.tone" [style.width.%]="seg.share"></span>
|
|
9030
|
+
}
|
|
9031
|
+
</div>
|
|
9032
|
+
<ul class="vp-mix__legend" aria-hidden="true">
|
|
9033
|
+
@for (seg of segments; track seg.part.key) {
|
|
9034
|
+
<li class="vp-mix__item" data-vp-mix-legend>
|
|
9035
|
+
<span class="vp-mix__dot" [attr.data-tone]="seg.part.tone"></span>
|
|
9036
|
+
<span class="vp-mix__name">{{ seg.part.label }}</span>
|
|
9037
|
+
<span class="vp-mix__value">{{ seg.text }}</span>
|
|
9038
|
+
</li>
|
|
9039
|
+
}
|
|
9040
|
+
</ul>
|
|
9041
|
+
</div>
|
|
9042
|
+
} @else {
|
|
9043
|
+
<span class="vp-mix__empty" data-vp-mix-empty>{{ emptyLabel }}</span>
|
|
9044
|
+
}
|
|
9045
|
+
`, styles: [":host{display:block}.vp-mix{display:flex;flex-direction:column;gap:var(--vp-space-2);font-family:var(--vp-font-sans)}.vp-mix__bar{display:flex;height:10px;overflow:hidden;border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken)}.vp-mix__seg{display:block;height:100%}.vp-mix__seg[data-tone=ok],.vp-mix__dot[data-tone=ok]{background:var(--vp-sev-clean)}.vp-mix__seg[data-tone=warn],.vp-mix__dot[data-tone=warn]{background:var(--vp-sev-medium)}.vp-mix__seg[data-tone=critical],.vp-mix__dot[data-tone=critical]{background:var(--vp-sev-critical)}.vp-mix__legend{display:flex;flex-wrap:wrap;gap:var(--vp-space-1) var(--vp-space-4);margin:0;padding:0;list-style:none}.vp-mix__item{display:inline-flex;align-items:center;gap:var(--vp-space-1);font-size:var(--vp-text-xs)}.vp-mix__dot{width:8px;height:8px;border-radius:var(--vp-radius-sm)}.vp-mix__name{color:var(--vp-text-muted)}.vp-mix__value{color:var(--vp-text-primary);font-variant-numeric:tabular-nums}.vp-mix__empty{color:var(--vp-text-muted);font-family:var(--vp-font-sans);font-size:var(--vp-text-sm)}\n"] }]
|
|
9046
|
+
}], propDecorators: { parts: [{
|
|
9047
|
+
type: Input
|
|
9048
|
+
}], emptyLabel: [{
|
|
9049
|
+
type: Input
|
|
9050
|
+
}] } });
|
|
9051
|
+
|
|
9052
|
+
/**
|
|
9053
|
+
* Segment denetimi — design-system/005 T-03 (aralık 24s/7g/30g, kırılım Uca/Anahtara göre).
|
|
9054
|
+
*
|
|
9055
|
+
* Kurallar:
|
|
9056
|
+
* - `role="group"` + düğmeler `aria-pressed`; ok/Home/End ile gezinilir (roving tabindex).
|
|
9057
|
+
* - Gezinme seçimi de değiştirir (segment = anlık seçim), olay `valueChange`.
|
|
9058
|
+
* - Dokunma hedefi `--vp-touch-target`; odak halkası `:focus-visible`.
|
|
9059
|
+
* - Sabit metin yok — etiketler tüketiciden.
|
|
9060
|
+
*/
|
|
9061
|
+
class VpSegmentedComponent {
|
|
9062
|
+
constructor() {
|
|
9063
|
+
this.host = inject(ElementRef);
|
|
9064
|
+
this.options = [];
|
|
9065
|
+
this.value = null;
|
|
9066
|
+
this.ariaLabel = '';
|
|
9067
|
+
this.valueChange = new EventEmitter();
|
|
9068
|
+
}
|
|
9069
|
+
/** Seçili düğme sekme durağı; seçim yoksa ilk düğme. */
|
|
9070
|
+
tabStop(index) {
|
|
9071
|
+
const selected = this.options.findIndex((o) => o.value === this.value);
|
|
9072
|
+
return index === (selected < 0 ? 0 : selected) ? 0 : -1;
|
|
9073
|
+
}
|
|
9074
|
+
select(value) {
|
|
9075
|
+
this.valueChange.emit(value);
|
|
9076
|
+
}
|
|
9077
|
+
onKey(event, index) {
|
|
9078
|
+
const target = this.targetIndex(event.key, index);
|
|
9079
|
+
if (target === null)
|
|
9080
|
+
return;
|
|
9081
|
+
event.preventDefault();
|
|
9082
|
+
this.select(this.options[target].value);
|
|
9083
|
+
this.host.nativeElement.querySelectorAll('button')[target]?.focus();
|
|
9084
|
+
}
|
|
9085
|
+
targetIndex(key, index) {
|
|
9086
|
+
const last = this.options.length - 1;
|
|
9087
|
+
switch (key) {
|
|
9088
|
+
case 'ArrowRight':
|
|
9089
|
+
case 'ArrowDown':
|
|
9090
|
+
return index >= last ? 0 : index + 1;
|
|
9091
|
+
case 'ArrowLeft':
|
|
9092
|
+
case 'ArrowUp':
|
|
9093
|
+
return index <= 0 ? last : index - 1;
|
|
9094
|
+
case 'Home':
|
|
9095
|
+
return 0;
|
|
9096
|
+
case 'End':
|
|
9097
|
+
return last;
|
|
9098
|
+
default:
|
|
9099
|
+
return null;
|
|
9100
|
+
}
|
|
9101
|
+
}
|
|
9102
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSegmentedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9103
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpSegmentedComponent, isStandalone: true, selector: "vp-segmented", inputs: { options: "options", value: "value", ariaLabel: "ariaLabel" }, outputs: { valueChange: "valueChange" }, ngImport: i0, template: `
|
|
9104
|
+
<div class="vp-segmented" role="group" [attr.aria-label]="ariaLabel">
|
|
9105
|
+
@for (option of options; track option.value; let i = $index) {
|
|
9106
|
+
<button
|
|
9107
|
+
type="button"
|
|
9108
|
+
class="vp-segmented__item"
|
|
9109
|
+
[attr.aria-pressed]="option.value === value"
|
|
9110
|
+
[attr.tabindex]="tabStop(i)"
|
|
9111
|
+
(click)="select(option.value)"
|
|
9112
|
+
(keydown)="onKey($event, i)">
|
|
9113
|
+
{{ option.label }}
|
|
9114
|
+
</button>
|
|
9115
|
+
}
|
|
9116
|
+
</div>
|
|
9117
|
+
`, isInline: true, styles: [":host{display:inline-block;max-width:100%}.vp-segmented{display:inline-flex;max-width:100%;overflow-x:auto;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-md);background:var(--vp-surface-sunken)}.vp-segmented__item{min-height:32px;padding:0 var(--vp-space-3);border:0;background:transparent;color:var(--vp-text-secondary);font-family:var(--vp-font-sans);font-size:var(--vp-text-sm);white-space:nowrap;cursor:pointer}.vp-segmented__item[aria-pressed=true]{background:var(--vp-surface-raised);color:var(--vp-text-primary);font-weight:var(--vp-weight-semibold)}.vp-segmented__item:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:calc(var(--vp-focus-offset) * -1)}@media(pointer:coarse),(max-width:640px){.vp-segmented__item{min-height:var(--vp-touch-target)}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9118
|
+
}
|
|
9119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSegmentedComponent, decorators: [{
|
|
9120
|
+
type: Component,
|
|
9121
|
+
args: [{ selector: 'vp-segmented', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
9122
|
+
<div class="vp-segmented" role="group" [attr.aria-label]="ariaLabel">
|
|
9123
|
+
@for (option of options; track option.value; let i = $index) {
|
|
9124
|
+
<button
|
|
9125
|
+
type="button"
|
|
9126
|
+
class="vp-segmented__item"
|
|
9127
|
+
[attr.aria-pressed]="option.value === value"
|
|
9128
|
+
[attr.tabindex]="tabStop(i)"
|
|
9129
|
+
(click)="select(option.value)"
|
|
9130
|
+
(keydown)="onKey($event, i)">
|
|
9131
|
+
{{ option.label }}
|
|
9132
|
+
</button>
|
|
9133
|
+
}
|
|
9134
|
+
</div>
|
|
9135
|
+
`, styles: [":host{display:inline-block;max-width:100%}.vp-segmented{display:inline-flex;max-width:100%;overflow-x:auto;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-md);background:var(--vp-surface-sunken)}.vp-segmented__item{min-height:32px;padding:0 var(--vp-space-3);border:0;background:transparent;color:var(--vp-text-secondary);font-family:var(--vp-font-sans);font-size:var(--vp-text-sm);white-space:nowrap;cursor:pointer}.vp-segmented__item[aria-pressed=true]{background:var(--vp-surface-raised);color:var(--vp-text-primary);font-weight:var(--vp-weight-semibold)}.vp-segmented__item:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:calc(var(--vp-focus-offset) * -1)}@media(pointer:coarse),(max-width:640px){.vp-segmented__item{min-height:var(--vp-touch-target)}}\n"] }]
|
|
9136
|
+
}], propDecorators: { options: [{
|
|
9137
|
+
type: Input
|
|
9138
|
+
}], value: [{
|
|
9139
|
+
type: Input
|
|
9140
|
+
}], ariaLabel: [{
|
|
9141
|
+
type: Input
|
|
9142
|
+
}], valueChange: [{
|
|
9143
|
+
type: Output
|
|
9144
|
+
}] } });
|
|
9145
|
+
|
|
9146
|
+
/**
|
|
9147
|
+
* Fiil rozeti (GET/POST…) — design-system/005 T-02.
|
|
9148
|
+
*
|
|
9149
|
+
* Kurallar:
|
|
9150
|
+
* - Fiil her zaman METİN olarak yazılır; ton yalnız ek bilgi (renk tek ayırt edici değil).
|
|
9151
|
+
* - Boş/null fiil hiçbir şey çizmez — uydurma metin yok.
|
|
9152
|
+
* - Yalnız `--vp-*` token; ham renk yok.
|
|
9153
|
+
*/
|
|
9154
|
+
class VpVerbBadgeComponent {
|
|
9155
|
+
constructor() {
|
|
9156
|
+
this.verb = '';
|
|
9157
|
+
this.tone = 'neutral';
|
|
9158
|
+
}
|
|
9159
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpVerbBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9160
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpVerbBadgeComponent, isStandalone: true, selector: "vp-verb-badge", inputs: { verb: "verb", tone: "tone" }, ngImport: i0, template: `
|
|
9161
|
+
@if (verb) {
|
|
9162
|
+
<span class="vp-verb" data-vp-verb [attr.data-tone]="tone">{{ verb }}</span>
|
|
9163
|
+
}
|
|
9164
|
+
`, isInline: true, styles: [":host{display:inline-flex}.vp-verb{display:inline-block;padding:0 var(--vp-space-2);border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);color:var(--vp-text-secondary);font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);font-weight:var(--vp-weight-semibold);line-height:var(--vp-leading-tight);letter-spacing:.02em;font-variant-numeric:tabular-nums}.vp-verb[data-tone=ok]{color:var(--vp-sev-clean);border-color:var(--vp-sev-clean)}.vp-verb[data-tone=warn]{color:var(--vp-sev-high);border-color:var(--vp-sev-high)}.vp-verb[data-tone=critical]{color:var(--vp-sev-critical);border-color:var(--vp-sev-critical)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9165
|
+
}
|
|
9166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpVerbBadgeComponent, decorators: [{
|
|
9167
|
+
type: Component,
|
|
9168
|
+
args: [{ selector: 'vp-verb-badge', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
9169
|
+
@if (verb) {
|
|
9170
|
+
<span class="vp-verb" data-vp-verb [attr.data-tone]="tone">{{ verb }}</span>
|
|
9171
|
+
}
|
|
9172
|
+
`, styles: [":host{display:inline-flex}.vp-verb{display:inline-block;padding:0 var(--vp-space-2);border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-sm);color:var(--vp-text-secondary);font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);font-weight:var(--vp-weight-semibold);line-height:var(--vp-leading-tight);letter-spacing:.02em;font-variant-numeric:tabular-nums}.vp-verb[data-tone=ok]{color:var(--vp-sev-clean);border-color:var(--vp-sev-clean)}.vp-verb[data-tone=warn]{color:var(--vp-sev-high);border-color:var(--vp-sev-high)}.vp-verb[data-tone=critical]{color:var(--vp-sev-critical);border-color:var(--vp-sev-critical)}\n"] }]
|
|
9173
|
+
}], propDecorators: { verb: [{
|
|
9174
|
+
type: Input
|
|
9175
|
+
}], tone: [{
|
|
9176
|
+
type: Input
|
|
9177
|
+
}] } });
|
|
9178
|
+
|
|
9179
|
+
/**
|
|
9180
|
+
* Çip seçici (kaydırılabilir tek seçimli çubuk) — design-system/005 T-07.
|
|
9181
|
+
*
|
|
9182
|
+
* Kurallar:
|
|
9183
|
+
* - Tek seçim; düğmeler `aria-pressed`. Çipler sekmeyle gezilir (her biri bağımsız düğme).
|
|
9184
|
+
* - Yatay kayma KENDİ İÇİNDE (`overflow-x: auto` + `min-width: 0`) — sayfa kaymaz (320px).
|
|
9185
|
+
* - Dokunma hedefi `--vp-touch-target` (dar ekran); odak halkası `:focus-visible`.
|
|
9186
|
+
* - Sabit metin yok.
|
|
9187
|
+
*/
|
|
9188
|
+
class VpChipPickerComponent {
|
|
9189
|
+
constructor() {
|
|
9190
|
+
this.chips = [];
|
|
9191
|
+
this.value = null;
|
|
9192
|
+
this.ariaLabel = '';
|
|
9193
|
+
this.valueChange = new EventEmitter();
|
|
9194
|
+
}
|
|
9195
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpChipPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9196
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpChipPickerComponent, isStandalone: true, selector: "vp-chip-picker", inputs: { chips: "chips", value: "value", ariaLabel: "ariaLabel" }, outputs: { valueChange: "valueChange" }, ngImport: i0, template: `
|
|
9197
|
+
<div class="vp-chips" role="group" [attr.aria-label]="ariaLabel">
|
|
9198
|
+
@for (chip of chips; track chip.value) {
|
|
9199
|
+
<button type="button" class="vp-chip" [attr.aria-pressed]="chip.value === value" (click)="valueChange.emit(chip.value)">
|
|
9200
|
+
@if (chip.verb) {
|
|
9201
|
+
<vp-verb-badge [verb]="chip.verb" />
|
|
9202
|
+
}
|
|
9203
|
+
<span class="vp-chip__label" data-vp-chip-label>{{ chip.label }}</span>
|
|
9204
|
+
@if (chip.count) {
|
|
9205
|
+
<span class="vp-chip__count" data-vp-chip-count>{{ chip.count }}</span>
|
|
9206
|
+
}
|
|
9207
|
+
</button>
|
|
9208
|
+
}
|
|
9209
|
+
</div>
|
|
9210
|
+
`, isInline: true, styles: [":host{display:block;min-width:0;max-width:100%}.vp-chips{display:flex;gap:var(--vp-space-2);min-width:0;max-width:100%;overflow-x:auto;padding-bottom:var(--vp-space-1);font-family:var(--vp-font-sans)}.vp-chip{display:inline-flex;flex:0 0 auto;align-items:center;gap:var(--vp-space-2);min-height:32px;padding:0 var(--vp-space-3);border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-full);background:transparent;color:var(--vp-text-secondary);font-size:var(--vp-text-sm);white-space:nowrap;cursor:pointer}.vp-chip[aria-pressed=true]{border-color:var(--vp-border-strong);background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-chip:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-chip__count{color:var(--vp-text-muted);font-variant-numeric:tabular-nums}@media(pointer:coarse),(max-width:640px){.vp-chip{min-height:var(--vp-touch-target)}}\n"], dependencies: [{ kind: "component", type: VpVerbBadgeComponent, selector: "vp-verb-badge", inputs: ["verb", "tone"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9211
|
+
}
|
|
9212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpChipPickerComponent, decorators: [{
|
|
9213
|
+
type: Component,
|
|
9214
|
+
args: [{ selector: 'vp-chip-picker', standalone: true, imports: [VpVerbBadgeComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
9215
|
+
<div class="vp-chips" role="group" [attr.aria-label]="ariaLabel">
|
|
9216
|
+
@for (chip of chips; track chip.value) {
|
|
9217
|
+
<button type="button" class="vp-chip" [attr.aria-pressed]="chip.value === value" (click)="valueChange.emit(chip.value)">
|
|
9218
|
+
@if (chip.verb) {
|
|
9219
|
+
<vp-verb-badge [verb]="chip.verb" />
|
|
9220
|
+
}
|
|
9221
|
+
<span class="vp-chip__label" data-vp-chip-label>{{ chip.label }}</span>
|
|
9222
|
+
@if (chip.count) {
|
|
9223
|
+
<span class="vp-chip__count" data-vp-chip-count>{{ chip.count }}</span>
|
|
9224
|
+
}
|
|
9225
|
+
</button>
|
|
9226
|
+
}
|
|
9227
|
+
</div>
|
|
9228
|
+
`, styles: [":host{display:block;min-width:0;max-width:100%}.vp-chips{display:flex;gap:var(--vp-space-2);min-width:0;max-width:100%;overflow-x:auto;padding-bottom:var(--vp-space-1);font-family:var(--vp-font-sans)}.vp-chip{display:inline-flex;flex:0 0 auto;align-items:center;gap:var(--vp-space-2);min-height:32px;padding:0 var(--vp-space-3);border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-full);background:transparent;color:var(--vp-text-secondary);font-size:var(--vp-text-sm);white-space:nowrap;cursor:pointer}.vp-chip[aria-pressed=true]{border-color:var(--vp-border-strong);background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-chip:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-chip__count{color:var(--vp-text-muted);font-variant-numeric:tabular-nums}@media(pointer:coarse),(max-width:640px){.vp-chip{min-height:var(--vp-touch-target)}}\n"] }]
|
|
9229
|
+
}], propDecorators: { chips: [{
|
|
9230
|
+
type: Input
|
|
9231
|
+
}], value: [{
|
|
9232
|
+
type: Input
|
|
9233
|
+
}], ariaLabel: [{
|
|
9234
|
+
type: Input
|
|
9235
|
+
}], valueChange: [{
|
|
9236
|
+
type: Output
|
|
9237
|
+
}] } });
|
|
9238
|
+
|
|
9239
|
+
/**
|
|
9240
|
+
* Panel — design-system/006 T-02.
|
|
9241
|
+
*
|
|
9242
|
+
* Prototipin her bloğunun çerçevesi: hairline kenarlık, yüzey, büyük harf başlık, isteğe bağlı sayaç/eylem/alt açıklama.
|
|
9243
|
+
* Genel "kart" değildir: yalnız prototipte panel olan yerde kullanılır. Sabit metin yok; yalnız `--vp-*` token.
|
|
9244
|
+
*/
|
|
9245
|
+
class VpPanelComponent {
|
|
9246
|
+
constructor() {
|
|
9247
|
+
this.heading = '';
|
|
9248
|
+
this.count = null;
|
|
9249
|
+
this.headingLevel = 2;
|
|
9250
|
+
}
|
|
9251
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9252
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpPanelComponent, isStandalone: true, selector: "vp-panel", inputs: { heading: "heading", count: "count", headingLevel: "headingLevel" }, ngImport: i0, template: `
|
|
9253
|
+
<section class="vp-panel">
|
|
9254
|
+
<header class="vp-panel__head">
|
|
9255
|
+
<div class="vp-panel__title" data-vp-panel-heading role="heading" [attr.aria-level]="headingLevel">{{ heading }}</div>
|
|
9256
|
+
@if (count) {
|
|
9257
|
+
<span class="vp-panel__count" data-vp-panel-count>{{ count }}</span>
|
|
9258
|
+
}
|
|
9259
|
+
<div class="vp-panel__actions" data-vp-panel-actions><ng-content select="[actions]" /></div>
|
|
9260
|
+
</header>
|
|
9261
|
+
<ng-content />
|
|
9262
|
+
<div class="vp-panel__footer" data-vp-panel-footer><ng-content select="[footer]" /></div>
|
|
9263
|
+
</section>
|
|
9264
|
+
`, isInline: true, styles: [":host{display:block;min-width:0}.vp-panel{min-width:0;padding:var(--vp-space-3) var(--vp-space-4);border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);color:var(--vp-text-primary);font-family:var(--vp-font-sans)}.vp-panel__head{display:flex;align-items:center;gap:var(--vp-space-3);margin-bottom:var(--vp-space-3)}.vp-panel__title{flex:1;min-width:0;margin:0;color:var(--vp-text-muted);font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);font-weight:var(--vp-weight-semibold);letter-spacing:.06em;text-transform:uppercase}.vp-panel__count{color:var(--vp-text-muted);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums}.vp-panel__actions:empty,.vp-panel__footer:empty{display:none}.vp-panel__footer{margin-top:var(--vp-space-3);color:var(--vp-text-secondary);font-size:var(--vp-text-sm)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9265
|
+
}
|
|
9266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpPanelComponent, decorators: [{
|
|
9267
|
+
type: Component,
|
|
9268
|
+
args: [{ selector: 'vp-panel', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
9269
|
+
<section class="vp-panel">
|
|
9270
|
+
<header class="vp-panel__head">
|
|
9271
|
+
<div class="vp-panel__title" data-vp-panel-heading role="heading" [attr.aria-level]="headingLevel">{{ heading }}</div>
|
|
9272
|
+
@if (count) {
|
|
9273
|
+
<span class="vp-panel__count" data-vp-panel-count>{{ count }}</span>
|
|
9274
|
+
}
|
|
9275
|
+
<div class="vp-panel__actions" data-vp-panel-actions><ng-content select="[actions]" /></div>
|
|
9276
|
+
</header>
|
|
9277
|
+
<ng-content />
|
|
9278
|
+
<div class="vp-panel__footer" data-vp-panel-footer><ng-content select="[footer]" /></div>
|
|
9279
|
+
</section>
|
|
9280
|
+
`, styles: [":host{display:block;min-width:0}.vp-panel{min-width:0;padding:var(--vp-space-3) var(--vp-space-4);border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);color:var(--vp-text-primary);font-family:var(--vp-font-sans)}.vp-panel__head{display:flex;align-items:center;gap:var(--vp-space-3);margin-bottom:var(--vp-space-3)}.vp-panel__title{flex:1;min-width:0;margin:0;color:var(--vp-text-muted);font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);font-weight:var(--vp-weight-semibold);letter-spacing:.06em;text-transform:uppercase}.vp-panel__count{color:var(--vp-text-muted);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums}.vp-panel__actions:empty,.vp-panel__footer:empty{display:none}.vp-panel__footer{margin-top:var(--vp-space-3);color:var(--vp-text-secondary);font-size:var(--vp-text-sm)}\n"] }]
|
|
9281
|
+
}], propDecorators: { heading: [{
|
|
9282
|
+
type: Input
|
|
9283
|
+
}], count: [{
|
|
9284
|
+
type: Input
|
|
9285
|
+
}], headingLevel: [{
|
|
9286
|
+
type: Input
|
|
9287
|
+
}] } });
|
|
9288
|
+
|
|
9289
|
+
/** Not (eyebrow + paragraf) — design-system/006 T-02. Üstte çizgi; sabit metin yok. */
|
|
9290
|
+
class VpNoteComponent {
|
|
9291
|
+
constructor() {
|
|
9292
|
+
this.eyebrow = '';
|
|
9293
|
+
}
|
|
9294
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpNoteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9295
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpNoteComponent, isStandalone: true, selector: "vp-note", inputs: { eyebrow: "eyebrow" }, ngImport: i0, template: `
|
|
9296
|
+
<aside class="vp-note">
|
|
9297
|
+
@if (eyebrow) {
|
|
9298
|
+
<span class="vp-note__eyebrow" data-vp-note-eyebrow>{{ eyebrow }}</span>
|
|
9299
|
+
}
|
|
9300
|
+
<p class="vp-note__body"><ng-content /></p>
|
|
9301
|
+
</aside>
|
|
9302
|
+
`, isInline: true, styles: [":host{display:block}.vp-note{display:flex;flex-direction:column;gap:var(--vp-space-2);margin-top:var(--vp-space-5);padding-top:var(--vp-space-3);border-top:1px solid var(--vp-border-subtle);font-family:var(--vp-font-sans)}.vp-note__eyebrow{color:var(--vp-text-muted);font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);letter-spacing:.09em;text-transform:uppercase}.vp-note__body{max-width:86ch;margin:0;color:var(--vp-text-secondary);font-size:var(--vp-text-sm);line-height:var(--vp-leading-normal)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9303
|
+
}
|
|
9304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpNoteComponent, decorators: [{
|
|
9305
|
+
type: Component,
|
|
9306
|
+
args: [{ selector: 'vp-note', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
9307
|
+
<aside class="vp-note">
|
|
9308
|
+
@if (eyebrow) {
|
|
9309
|
+
<span class="vp-note__eyebrow" data-vp-note-eyebrow>{{ eyebrow }}</span>
|
|
9310
|
+
}
|
|
9311
|
+
<p class="vp-note__body"><ng-content /></p>
|
|
9312
|
+
</aside>
|
|
9313
|
+
`, styles: [":host{display:block}.vp-note{display:flex;flex-direction:column;gap:var(--vp-space-2);margin-top:var(--vp-space-5);padding-top:var(--vp-space-3);border-top:1px solid var(--vp-border-subtle);font-family:var(--vp-font-sans)}.vp-note__eyebrow{color:var(--vp-text-muted);font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);letter-spacing:.09em;text-transform:uppercase}.vp-note__body{max-width:86ch;margin:0;color:var(--vp-text-secondary);font-size:var(--vp-text-sm);line-height:var(--vp-leading-normal)}\n"] }]
|
|
9314
|
+
}], propDecorators: { eyebrow: [{
|
|
9315
|
+
type: Input
|
|
9316
|
+
}] } });
|
|
9317
|
+
|
|
9318
|
+
/** Etiket-değer satırı — design-system/006 T-03. Etiket solda, değer sağda; mono/kalın; ipucu satırı isteğe bağlı. */
|
|
9319
|
+
class VpKvRowComponent {
|
|
9320
|
+
constructor() {
|
|
9321
|
+
this.label = '';
|
|
9322
|
+
this.mono = false;
|
|
9323
|
+
this.strong = false;
|
|
9324
|
+
this.hint = '';
|
|
9325
|
+
}
|
|
9326
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpKvRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9327
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpKvRowComponent, isStandalone: true, selector: "vp-kv-row", inputs: { label: "label", mono: "mono", strong: "strong", hint: "hint" }, ngImport: i0, template: `
|
|
9328
|
+
<div class="vp-kv">
|
|
9329
|
+
<span class="vp-kv__label" data-vp-kv-label>{{ label }}</span>
|
|
9330
|
+
<span class="vp-kv__value" data-vp-kv-value [attr.data-mono]="mono" [attr.data-strong]="strong"><ng-content /></span>
|
|
9331
|
+
</div>
|
|
9332
|
+
@if (hint) {
|
|
9333
|
+
<small class="vp-kv__hint" data-vp-kv-hint>{{ hint }}</small>
|
|
9334
|
+
}
|
|
9335
|
+
`, isInline: true, styles: [":host{display:block;border-bottom:1px solid var(--vp-border-subtle);font-family:var(--vp-font-sans)}.vp-kv{display:flex;align-items:baseline;justify-content:space-between;gap:var(--vp-space-4);padding:var(--vp-space-3) 0;font-size:var(--vp-text-sm)}.vp-kv__label{color:var(--vp-text-secondary)}.vp-kv__value{color:var(--vp-text-primary);text-align:end;font-variant-numeric:tabular-nums}.vp-kv__value[data-mono=true]{font-family:var(--vp-font-mono)}.vp-kv__value[data-strong=true]{font-weight:var(--vp-weight-semibold)}.vp-kv__hint{display:block;padding-bottom:var(--vp-space-3);color:var(--vp-text-muted);font-size:var(--vp-text-xs)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9336
|
+
}
|
|
9337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpKvRowComponent, decorators: [{
|
|
9338
|
+
type: Component,
|
|
9339
|
+
args: [{ selector: 'vp-kv-row', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
9340
|
+
<div class="vp-kv">
|
|
9341
|
+
<span class="vp-kv__label" data-vp-kv-label>{{ label }}</span>
|
|
9342
|
+
<span class="vp-kv__value" data-vp-kv-value [attr.data-mono]="mono" [attr.data-strong]="strong"><ng-content /></span>
|
|
9343
|
+
</div>
|
|
9344
|
+
@if (hint) {
|
|
9345
|
+
<small class="vp-kv__hint" data-vp-kv-hint>{{ hint }}</small>
|
|
9346
|
+
}
|
|
9347
|
+
`, styles: [":host{display:block;border-bottom:1px solid var(--vp-border-subtle);font-family:var(--vp-font-sans)}.vp-kv{display:flex;align-items:baseline;justify-content:space-between;gap:var(--vp-space-4);padding:var(--vp-space-3) 0;font-size:var(--vp-text-sm)}.vp-kv__label{color:var(--vp-text-secondary)}.vp-kv__value{color:var(--vp-text-primary);text-align:end;font-variant-numeric:tabular-nums}.vp-kv__value[data-mono=true]{font-family:var(--vp-font-mono)}.vp-kv__value[data-strong=true]{font-weight:var(--vp-weight-semibold)}.vp-kv__hint{display:block;padding-bottom:var(--vp-space-3);color:var(--vp-text-muted);font-size:var(--vp-text-xs)}\n"] }]
|
|
9348
|
+
}], propDecorators: { label: [{
|
|
9349
|
+
type: Input
|
|
9350
|
+
}], mono: [{
|
|
9351
|
+
type: Input
|
|
9352
|
+
}], strong: [{
|
|
9353
|
+
type: Input
|
|
9354
|
+
}], hint: [{
|
|
9355
|
+
type: Input
|
|
9356
|
+
}] } });
|
|
9357
|
+
|
|
9358
|
+
const TONES = ['ok', 'warn', 'bad', 'idle'];
|
|
9359
|
+
/**
|
|
9360
|
+
* Durum işareti (kare + metin) — design-system/006 T-03.
|
|
9361
|
+
* Metin HER ZAMAN yazılır; renk yalnız ek bilgi (WCAG 1.4.1). Etiket boşsa hiçbir şey çizmez.
|
|
9362
|
+
*/
|
|
9363
|
+
class VpStatusMarkComponent {
|
|
9364
|
+
constructor() {
|
|
9365
|
+
this.tone = 'idle';
|
|
9366
|
+
this.label = '';
|
|
9367
|
+
}
|
|
9368
|
+
get safeTone() {
|
|
9369
|
+
return TONES.includes(this.tone) ? this.tone : 'idle';
|
|
9370
|
+
}
|
|
9371
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpStatusMarkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9372
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpStatusMarkComponent, isStandalone: true, selector: "vp-status-mark", inputs: { tone: "tone", label: "label" }, ngImport: i0, template: `
|
|
9373
|
+
@if (label) {
|
|
9374
|
+
<span class="vp-status">
|
|
9375
|
+
<span class="vp-status__mark" data-vp-status-mark aria-hidden="true" [attr.data-tone]="safeTone"></span>
|
|
9376
|
+
<span data-vp-status-label>{{ label }}</span>
|
|
9377
|
+
</span>
|
|
9378
|
+
}
|
|
9379
|
+
`, isInline: true, styles: [":host{display:inline-flex}.vp-status{display:inline-flex;align-items:center;gap:var(--vp-space-2);color:var(--vp-text-primary);font-size:var(--vp-text-sm)}.vp-status__mark{width:9px;height:9px;border-radius:var(--vp-radius-sm);background:var(--vp-text-muted)}.vp-status__mark[data-tone=ok]{background:var(--vp-sev-clean)}.vp-status__mark[data-tone=warn]{background:var(--vp-sev-high)}.vp-status__mark[data-tone=bad]{background:var(--vp-sev-critical)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9380
|
+
}
|
|
9381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpStatusMarkComponent, decorators: [{
|
|
9382
|
+
type: Component,
|
|
9383
|
+
args: [{ selector: 'vp-status-mark', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
9384
|
+
@if (label) {
|
|
9385
|
+
<span class="vp-status">
|
|
9386
|
+
<span class="vp-status__mark" data-vp-status-mark aria-hidden="true" [attr.data-tone]="safeTone"></span>
|
|
9387
|
+
<span data-vp-status-label>{{ label }}</span>
|
|
9388
|
+
</span>
|
|
9389
|
+
}
|
|
9390
|
+
`, styles: [":host{display:inline-flex}.vp-status{display:inline-flex;align-items:center;gap:var(--vp-space-2);color:var(--vp-text-primary);font-size:var(--vp-text-sm)}.vp-status__mark{width:9px;height:9px;border-radius:var(--vp-radius-sm);background:var(--vp-text-muted)}.vp-status__mark[data-tone=ok]{background:var(--vp-sev-clean)}.vp-status__mark[data-tone=warn]{background:var(--vp-sev-high)}.vp-status__mark[data-tone=bad]{background:var(--vp-sev-critical)}\n"] }]
|
|
9391
|
+
}], propDecorators: { tone: [{
|
|
9392
|
+
type: Input
|
|
9393
|
+
}], label: [{
|
|
9394
|
+
type: Input
|
|
9395
|
+
}] } });
|
|
9396
|
+
|
|
9397
|
+
let nextId = 0;
|
|
9398
|
+
/** Anahtar satırı — design-system/006 T-04. `role="switch"`, etiket+açıklama bağlı, ≥ dokunma hedefi; sabit metin yok. */
|
|
9399
|
+
class VpSwitchRowComponent {
|
|
9400
|
+
constructor() {
|
|
9401
|
+
this.id = ++nextId;
|
|
9402
|
+
this.labelId = `vp-switch-label-${this.id}`;
|
|
9403
|
+
this.descId = `vp-switch-desc-${this.id}`;
|
|
9404
|
+
this.label = '';
|
|
9405
|
+
this.description = '';
|
|
9406
|
+
this.checked = false;
|
|
9407
|
+
this.disabled = false;
|
|
9408
|
+
this.checkedChange = new EventEmitter();
|
|
9409
|
+
}
|
|
9410
|
+
toggle() {
|
|
9411
|
+
if (this.disabled)
|
|
9412
|
+
return;
|
|
9413
|
+
this.checkedChange.emit(!this.checked);
|
|
9414
|
+
}
|
|
9415
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSwitchRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9416
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpSwitchRowComponent, isStandalone: true, selector: "vp-switch-row", inputs: { label: "label", description: "description", checked: "checked", disabled: "disabled" }, outputs: { checkedChange: "checkedChange" }, ngImport: i0, template: `
|
|
9417
|
+
<div class="vp-switch-row">
|
|
9418
|
+
<span class="vp-switch-row__text">
|
|
9419
|
+
<span class="vp-switch-row__label" [id]="labelId">{{ label }}</span>
|
|
9420
|
+
@if (description) {
|
|
9421
|
+
<span class="vp-switch-row__desc" [id]="descId">{{ description }}</span>
|
|
9422
|
+
}
|
|
9423
|
+
</span>
|
|
9424
|
+
<button
|
|
9425
|
+
type="button"
|
|
9426
|
+
role="switch"
|
|
9427
|
+
class="vp-switch"
|
|
9428
|
+
[attr.aria-checked]="checked"
|
|
9429
|
+
[attr.aria-labelledby]="labelId"
|
|
9430
|
+
[attr.aria-describedby]="description ? descId : null"
|
|
9431
|
+
[disabled]="disabled"
|
|
9432
|
+
(click)="toggle()"
|
|
9433
|
+
>
|
|
9434
|
+
<span class="vp-switch__thumb" aria-hidden="true"></span>
|
|
9435
|
+
</button>
|
|
9436
|
+
</div>
|
|
9437
|
+
`, isInline: true, styles: [":host{display:block;border-bottom:1px solid var(--vp-border-subtle);font-family:var(--vp-font-sans)}.vp-switch-row{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-4);min-height:var(--vp-touch-target);padding:var(--vp-space-2) 0}.vp-switch-row__text{display:flex;flex-direction:column;min-width:0}.vp-switch-row__label{color:var(--vp-text-primary);font-size:var(--vp-text-sm)}.vp-switch-row__desc{color:var(--vp-text-muted);font-size:var(--vp-text-xs)}.vp-switch{position:relative;flex:none;width:40px;min-height:var(--vp-touch-target);padding:0;border:0;background:transparent;cursor:pointer}.vp-switch:before{content:\"\";position:absolute;inset:50% 0 auto;height:22px;transform:translateY(-50%);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken)}.vp-switch[aria-checked=true]:before{border-color:var(--vp-brand);background:var(--vp-brand)}.vp-switch__thumb{position:absolute;top:50%;left:3px;width:16px;height:16px;transform:translateY(-50%);border-radius:var(--vp-radius-full);background:var(--vp-surface-base);transition:left var(--vp-duration-fast)}.vp-switch[aria-checked=true] .vp-switch__thumb{left:21px}.vp-switch:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-switch:disabled{cursor:not-allowed;opacity:.5}@media(prefers-reduced-motion:reduce){.vp-switch__thumb{transition:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9438
|
+
}
|
|
9439
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSwitchRowComponent, decorators: [{
|
|
9440
|
+
type: Component,
|
|
9441
|
+
args: [{ selector: 'vp-switch-row', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
9442
|
+
<div class="vp-switch-row">
|
|
9443
|
+
<span class="vp-switch-row__text">
|
|
9444
|
+
<span class="vp-switch-row__label" [id]="labelId">{{ label }}</span>
|
|
9445
|
+
@if (description) {
|
|
9446
|
+
<span class="vp-switch-row__desc" [id]="descId">{{ description }}</span>
|
|
9447
|
+
}
|
|
9448
|
+
</span>
|
|
9449
|
+
<button
|
|
9450
|
+
type="button"
|
|
9451
|
+
role="switch"
|
|
9452
|
+
class="vp-switch"
|
|
9453
|
+
[attr.aria-checked]="checked"
|
|
9454
|
+
[attr.aria-labelledby]="labelId"
|
|
9455
|
+
[attr.aria-describedby]="description ? descId : null"
|
|
9456
|
+
[disabled]="disabled"
|
|
9457
|
+
(click)="toggle()"
|
|
9458
|
+
>
|
|
9459
|
+
<span class="vp-switch__thumb" aria-hidden="true"></span>
|
|
9460
|
+
</button>
|
|
9461
|
+
</div>
|
|
9462
|
+
`, styles: [":host{display:block;border-bottom:1px solid var(--vp-border-subtle);font-family:var(--vp-font-sans)}.vp-switch-row{display:flex;align-items:center;justify-content:space-between;gap:var(--vp-space-4);min-height:var(--vp-touch-target);padding:var(--vp-space-2) 0}.vp-switch-row__text{display:flex;flex-direction:column;min-width:0}.vp-switch-row__label{color:var(--vp-text-primary);font-size:var(--vp-text-sm)}.vp-switch-row__desc{color:var(--vp-text-muted);font-size:var(--vp-text-xs)}.vp-switch{position:relative;flex:none;width:40px;min-height:var(--vp-touch-target);padding:0;border:0;background:transparent;cursor:pointer}.vp-switch:before{content:\"\";position:absolute;inset:50% 0 auto;height:22px;transform:translateY(-50%);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-full);background:var(--vp-surface-sunken)}.vp-switch[aria-checked=true]:before{border-color:var(--vp-brand);background:var(--vp-brand)}.vp-switch__thumb{position:absolute;top:50%;left:3px;width:16px;height:16px;transform:translateY(-50%);border-radius:var(--vp-radius-full);background:var(--vp-surface-base);transition:left var(--vp-duration-fast)}.vp-switch[aria-checked=true] .vp-switch__thumb{left:21px}.vp-switch:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-switch:disabled{cursor:not-allowed;opacity:.5}@media(prefers-reduced-motion:reduce){.vp-switch__thumb{transition:none}}\n"] }]
|
|
9463
|
+
}], propDecorators: { label: [{
|
|
9464
|
+
type: Input
|
|
9465
|
+
}], description: [{
|
|
9466
|
+
type: Input
|
|
9467
|
+
}], checked: [{
|
|
9468
|
+
type: Input
|
|
9469
|
+
}], disabled: [{
|
|
9470
|
+
type: Input
|
|
9471
|
+
}], checkedChange: [{
|
|
9472
|
+
type: Output
|
|
9473
|
+
}] } });
|
|
9474
|
+
|
|
9475
|
+
const RESET_MS = 2000;
|
|
9476
|
+
/**
|
|
9477
|
+
* Kopyala düğmesi — design-system/006 T-06.
|
|
9478
|
+
* Pano reddedilirse hata fırlatmaz; görünür geri bildirim (`failedLabel`). Etiketler tüketiciden; sabit metin yok.
|
|
9479
|
+
*/
|
|
9480
|
+
class VpCopyButtonComponent {
|
|
9481
|
+
constructor() {
|
|
9482
|
+
this.value = '';
|
|
9483
|
+
this.label = '';
|
|
9484
|
+
this.copiedLabel = '';
|
|
9485
|
+
this.failedLabel = '';
|
|
9486
|
+
this.state = signal('idle', ...(ngDevMode ? [{ debugName: "state" }] : []));
|
|
9487
|
+
this.timer = null;
|
|
9488
|
+
}
|
|
9489
|
+
shown() {
|
|
9490
|
+
const state = this.state();
|
|
9491
|
+
if (state === 'copied')
|
|
9492
|
+
return this.copiedLabel || this.label;
|
|
9493
|
+
if (state === 'failed')
|
|
9494
|
+
return this.failedLabel || this.label;
|
|
9495
|
+
return this.label;
|
|
9496
|
+
}
|
|
9497
|
+
async copy() {
|
|
9498
|
+
try {
|
|
9499
|
+
await navigator.clipboard.writeText(this.value);
|
|
9500
|
+
this.state.set('copied');
|
|
9501
|
+
}
|
|
9502
|
+
catch {
|
|
9503
|
+
this.state.set('failed');
|
|
9504
|
+
}
|
|
9505
|
+
if (this.timer)
|
|
9506
|
+
clearTimeout(this.timer);
|
|
9507
|
+
this.timer = setTimeout(() => this.state.set('idle'), RESET_MS);
|
|
9508
|
+
}
|
|
9509
|
+
ngOnDestroy() {
|
|
9510
|
+
if (this.timer)
|
|
9511
|
+
clearTimeout(this.timer);
|
|
9512
|
+
}
|
|
9513
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpCopyButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9514
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: VpCopyButtonComponent, isStandalone: true, selector: "vp-copy-button", inputs: { value: "value", label: "label", copiedLabel: "copiedLabel", failedLabel: "failedLabel" }, ngImport: i0, template: `
|
|
9515
|
+
<button type="button" class="vp-copy" [attr.aria-label]="label" (click)="copy()">
|
|
9516
|
+
<span data-vp-copy-label>{{ shown() }}</span>
|
|
9517
|
+
</button>
|
|
9518
|
+
`, isInline: true, styles: [":host{display:inline-flex}.vp-copy{min-height:var(--vp-touch-target);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:var(--vp-font-sans);font-size:var(--vp-text-sm);cursor:pointer}.vp-copy:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9519
|
+
}
|
|
9520
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpCopyButtonComponent, decorators: [{
|
|
9521
|
+
type: Component,
|
|
9522
|
+
args: [{ selector: 'vp-copy-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
9523
|
+
<button type="button" class="vp-copy" [attr.aria-label]="label" (click)="copy()">
|
|
9524
|
+
<span data-vp-copy-label>{{ shown() }}</span>
|
|
9525
|
+
</button>
|
|
9526
|
+
`, styles: [":host{display:inline-flex}.vp-copy{min-height:var(--vp-touch-target);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:var(--vp-font-sans);font-size:var(--vp-text-sm);cursor:pointer}.vp-copy:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}\n"] }]
|
|
9527
|
+
}], propDecorators: { value: [{
|
|
9528
|
+
type: Input
|
|
9529
|
+
}], label: [{
|
|
9530
|
+
type: Input
|
|
9531
|
+
}], copiedLabel: [{
|
|
9532
|
+
type: Input
|
|
9533
|
+
}], failedLabel: [{
|
|
9534
|
+
type: Input
|
|
9535
|
+
}] } });
|
|
9536
|
+
|
|
9537
|
+
/** Girdi üst sınırı (ReDoS/aşırı yük): daha uzunu düz metin tek token olur. */
|
|
9538
|
+
const MAX_INPUT = 200_000;
|
|
9539
|
+
const NUMBER = /^-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/;
|
|
9540
|
+
const LITERALS = new Set(['true', 'false', 'null']);
|
|
9541
|
+
const PUNCT = new Set(['{', '}', '[', ']', ',', ':']);
|
|
9542
|
+
/**
|
|
9543
|
+
* Kod renklendirme (saf fonksiyon) — design-system/006 T-06.
|
|
9544
|
+
* Çıktı token dizisidir; tüketici düz metin düğümü olarak çizer. İşaretleme ÜRETMEZ (XSS yüzeyi yok).
|
|
9545
|
+
* Tokenlerin metinleri birleşince girdiyi BİRE BİR verir.
|
|
9546
|
+
*/
|
|
9547
|
+
function highlightCode(source, language) {
|
|
9548
|
+
if (!source)
|
|
9549
|
+
return [];
|
|
9550
|
+
if (source.length > MAX_INPUT)
|
|
9551
|
+
return [{ text: source, kind: 'plain' }];
|
|
9552
|
+
return language === 'json' ? tokenizeJson(source) : tokenizeShell(source);
|
|
9553
|
+
}
|
|
9554
|
+
function stringEnd(src, start) {
|
|
9555
|
+
const quote = src[start];
|
|
9556
|
+
let i = start + 1;
|
|
9557
|
+
while (i < src.length) {
|
|
9558
|
+
if (src[i] === '\\')
|
|
9559
|
+
i += 2;
|
|
9560
|
+
else if (src[i] === quote)
|
|
9561
|
+
return i + 1;
|
|
9562
|
+
else
|
|
9563
|
+
i += 1;
|
|
9564
|
+
}
|
|
9565
|
+
return src.length;
|
|
9566
|
+
}
|
|
9567
|
+
function isKey(src, end) {
|
|
9568
|
+
let i = end;
|
|
9569
|
+
while (i < src.length && (src[i] === ' ' || src[i] === '\t' || src[i] === '\n' || src[i] === '\r'))
|
|
9570
|
+
i += 1;
|
|
9571
|
+
return src[i] === ':';
|
|
9572
|
+
}
|
|
9573
|
+
function tokenizeJson(src) {
|
|
9574
|
+
const out = [];
|
|
9575
|
+
let i = 0;
|
|
9576
|
+
while (i < src.length) {
|
|
9577
|
+
const ch = src[i];
|
|
9578
|
+
if (ch === '"') {
|
|
9579
|
+
const end = stringEnd(src, i);
|
|
9580
|
+
out.push({ text: src.slice(i, end), kind: isKey(src, end) ? 'key' : 'string' });
|
|
9581
|
+
i = end;
|
|
9582
|
+
}
|
|
9583
|
+
else if (ch === '-' || (ch >= '0' && ch <= '9')) {
|
|
9584
|
+
const m = NUMBER.exec(src.slice(i, i + 64));
|
|
9585
|
+
const text = m ? m[0] : ch;
|
|
9586
|
+
out.push({ text, kind: m ? 'number' : 'plain' });
|
|
9587
|
+
i += text.length;
|
|
9588
|
+
}
|
|
9589
|
+
else if (ch >= 'a' && ch <= 'z') {
|
|
9590
|
+
let j = i;
|
|
9591
|
+
while (j < src.length && src[j] >= 'a' && src[j] <= 'z')
|
|
9592
|
+
j += 1;
|
|
9593
|
+
const word = src.slice(i, j);
|
|
9594
|
+
out.push({ text: word, kind: LITERALS.has(word) ? 'literal' : 'plain' });
|
|
9595
|
+
i = j;
|
|
9596
|
+
}
|
|
9597
|
+
else if (PUNCT.has(ch)) {
|
|
9598
|
+
out.push({ text: ch, kind: 'punct' });
|
|
9599
|
+
i += 1;
|
|
9600
|
+
}
|
|
9601
|
+
else {
|
|
9602
|
+
let j = i + 1;
|
|
9603
|
+
while (j < src.length && !PUNCT.has(src[j]) && !'"-0123456789abcdefghijklmnopqrstuvwxyz'.includes(src[j]))
|
|
9604
|
+
j += 1;
|
|
9605
|
+
out.push({ text: src.slice(i, j), kind: 'plain' });
|
|
9606
|
+
i = j;
|
|
9607
|
+
}
|
|
9608
|
+
}
|
|
9609
|
+
return out;
|
|
9610
|
+
}
|
|
9611
|
+
function tokenizeShell(src) {
|
|
9612
|
+
const out = [];
|
|
9613
|
+
let i = 0;
|
|
9614
|
+
let sawCommand = false;
|
|
9615
|
+
while (i < src.length) {
|
|
9616
|
+
const ch = src[i];
|
|
9617
|
+
if (ch === ' ' || ch === '\t' || ch === '\n' || ch === '\r' || ch === '\\') {
|
|
9618
|
+
let j = i + 1;
|
|
9619
|
+
while (j < src.length && (src[j] === ' ' || src[j] === '\t' || src[j] === '\n' || src[j] === '\r' || src[j] === '\\'))
|
|
9620
|
+
j += 1;
|
|
9621
|
+
out.push({ text: src.slice(i, j), kind: 'plain' });
|
|
9622
|
+
i = j;
|
|
9623
|
+
}
|
|
9624
|
+
else if (ch === "'" || ch === '"') {
|
|
9625
|
+
const end = stringEnd(src, i);
|
|
9626
|
+
out.push({ text: src.slice(i, end), kind: 'string' });
|
|
9627
|
+
i = end;
|
|
9628
|
+
}
|
|
9629
|
+
else {
|
|
9630
|
+
let j = i + 1;
|
|
9631
|
+
while (j < src.length && !' \t\n\r\\\'"'.includes(src[j]))
|
|
9632
|
+
j += 1;
|
|
9633
|
+
const word = src.slice(i, j);
|
|
9634
|
+
if (!sawCommand) {
|
|
9635
|
+
out.push({ text: word, kind: 'command' });
|
|
9636
|
+
sawCommand = true;
|
|
9637
|
+
}
|
|
9638
|
+
else {
|
|
9639
|
+
out.push({ text: word, kind: word.startsWith('-') ? 'flag' : 'plain' });
|
|
9640
|
+
}
|
|
9641
|
+
i = j;
|
|
9642
|
+
}
|
|
9643
|
+
}
|
|
9644
|
+
return out;
|
|
9645
|
+
}
|
|
9646
|
+
|
|
9647
|
+
/**
|
|
9648
|
+
* Kod bloğu — design-system/006 T-06.
|
|
9649
|
+
* Renklendirme saf fonksiyondan gelen token'larla; kullanıcı metni düz metin düğümüdür (innerHTML YOK).
|
|
9650
|
+
* Kopyala düğmesi yalnız `copyLabel` verilince çizilir. Etiketler tüketiciden.
|
|
9651
|
+
*/
|
|
9652
|
+
class VpCodeBlockComponent {
|
|
9653
|
+
constructor() {
|
|
9654
|
+
this.code = '';
|
|
9655
|
+
this.language = 'json';
|
|
9656
|
+
this.ariaLabel = '';
|
|
9657
|
+
this.copyLabel = '';
|
|
9658
|
+
this.copiedLabel = '';
|
|
9659
|
+
this.failedLabel = '';
|
|
9660
|
+
}
|
|
9661
|
+
get tokens() {
|
|
9662
|
+
return highlightCode(this.code, this.language);
|
|
9663
|
+
}
|
|
9664
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpCodeBlockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9665
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpCodeBlockComponent, isStandalone: true, selector: "vp-code-block", inputs: { code: "code", language: "language", ariaLabel: "ariaLabel", copyLabel: "copyLabel", copiedLabel: "copiedLabel", failedLabel: "failedLabel" }, ngImport: i0, template: `
|
|
9666
|
+
<div class="vp-code" data-vp-code-block role="group" [attr.aria-label]="ariaLabel || null">
|
|
9667
|
+
@if (copyLabel) {
|
|
9668
|
+
<vp-copy-button class="vp-code__copy" [value]="code" [label]="copyLabel" [copiedLabel]="copiedLabel" [failedLabel]="failedLabel" />
|
|
9669
|
+
}
|
|
9670
|
+
<pre class="vp-code__pre"><code data-vp-code>@for (token of tokens; track $index) {<span class="vp-tok" [attr.data-kind]="token.kind">{{ token.text }}</span>}</code></pre>
|
|
9671
|
+
</div>
|
|
9672
|
+
`, isInline: true, styles: [":host{display:block;min-width:0}.vp-code{position:relative;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-base)}.vp-code__pre{margin:0;padding:var(--vp-space-3) var(--vp-space-4);overflow-x:auto;color:var(--vp-text-primary);font-family:var(--vp-font-mono);font-size:var(--vp-text-sm);line-height:var(--vp-leading-normal);tab-size:2}.vp-code__copy{position:absolute;top:var(--vp-space-2);right:var(--vp-space-2)}.vp-tok[data-kind=key]{color:var(--vp-sev-low)}.vp-tok[data-kind=string]{color:var(--vp-sev-clean)}.vp-tok[data-kind=number],.vp-tok[data-kind=literal]{color:var(--vp-sev-high)}.vp-tok[data-kind=command]{color:var(--vp-brand);font-weight:var(--vp-weight-semibold)}.vp-tok[data-kind=flag]{color:var(--vp-sev-low)}.vp-tok[data-kind=punct]{color:var(--vp-text-muted)}\n"], dependencies: [{ kind: "component", type: VpCopyButtonComponent, selector: "vp-copy-button", inputs: ["value", "label", "copiedLabel", "failedLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9673
|
+
}
|
|
9674
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpCodeBlockComponent, decorators: [{
|
|
9675
|
+
type: Component,
|
|
9676
|
+
args: [{ selector: 'vp-code-block', standalone: true, imports: [VpCopyButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
9677
|
+
<div class="vp-code" data-vp-code-block role="group" [attr.aria-label]="ariaLabel || null">
|
|
9678
|
+
@if (copyLabel) {
|
|
9679
|
+
<vp-copy-button class="vp-code__copy" [value]="code" [label]="copyLabel" [copiedLabel]="copiedLabel" [failedLabel]="failedLabel" />
|
|
9680
|
+
}
|
|
9681
|
+
<pre class="vp-code__pre"><code data-vp-code>@for (token of tokens; track $index) {<span class="vp-tok" [attr.data-kind]="token.kind">{{ token.text }}</span>}</code></pre>
|
|
9682
|
+
</div>
|
|
9683
|
+
`, styles: [":host{display:block;min-width:0}.vp-code{position:relative;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-base)}.vp-code__pre{margin:0;padding:var(--vp-space-3) var(--vp-space-4);overflow-x:auto;color:var(--vp-text-primary);font-family:var(--vp-font-mono);font-size:var(--vp-text-sm);line-height:var(--vp-leading-normal);tab-size:2}.vp-code__copy{position:absolute;top:var(--vp-space-2);right:var(--vp-space-2)}.vp-tok[data-kind=key]{color:var(--vp-sev-low)}.vp-tok[data-kind=string]{color:var(--vp-sev-clean)}.vp-tok[data-kind=number],.vp-tok[data-kind=literal]{color:var(--vp-sev-high)}.vp-tok[data-kind=command]{color:var(--vp-brand);font-weight:var(--vp-weight-semibold)}.vp-tok[data-kind=flag]{color:var(--vp-sev-low)}.vp-tok[data-kind=punct]{color:var(--vp-text-muted)}\n"] }]
|
|
9684
|
+
}], propDecorators: { code: [{
|
|
9685
|
+
type: Input
|
|
9686
|
+
}], language: [{
|
|
9687
|
+
type: Input
|
|
9688
|
+
}], ariaLabel: [{
|
|
9689
|
+
type: Input
|
|
9690
|
+
}], copyLabel: [{
|
|
9691
|
+
type: Input
|
|
9692
|
+
}], copiedLabel: [{
|
|
9693
|
+
type: Input
|
|
9694
|
+
}], failedLabel: [{
|
|
9695
|
+
type: Input
|
|
9696
|
+
}] } });
|
|
9697
|
+
|
|
9698
|
+
/**
|
|
9699
|
+
* Bildirim satırı — design-system/006 T-05.
|
|
9700
|
+
* Okunmamış durum görsel (sol çizgi) VE ekran okuyucu metniyle (`unreadLabel`) bildirilir. Sabit metin yok.
|
|
9701
|
+
*/
|
|
9702
|
+
class VpFeedRowComponent {
|
|
9703
|
+
constructor() {
|
|
9704
|
+
this.title = '';
|
|
9705
|
+
this.body = '';
|
|
9706
|
+
this.time = '';
|
|
9707
|
+
this.unread = false;
|
|
9708
|
+
this.unreadLabel = '';
|
|
9709
|
+
this.tone = 'neutral';
|
|
9710
|
+
}
|
|
9711
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpFeedRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9712
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpFeedRowComponent, isStandalone: true, selector: "vp-feed-row", inputs: { title: "title", body: "body", time: "time", unread: "unread", unreadLabel: "unreadLabel", tone: "tone" }, ngImport: i0, template: `
|
|
9713
|
+
<article class="vp-feed" data-vp-feed-row [attr.data-unread]="unread" [attr.data-tone]="tone">
|
|
9714
|
+
<div class="vp-feed__main">
|
|
9715
|
+
<div class="vp-feed__head">
|
|
9716
|
+
@if (unread && unreadLabel) {
|
|
9717
|
+
<span class="vp-feed__sr" data-vp-feed-unread-label>{{ unreadLabel }}</span>
|
|
9718
|
+
}
|
|
9719
|
+
<span class="vp-feed__title" data-vp-feed-title>{{ title }}</span>
|
|
9720
|
+
<span class="vp-feed__time" data-vp-feed-time>{{ time }}</span>
|
|
9721
|
+
</div>
|
|
9722
|
+
@if (body) {
|
|
9723
|
+
<p class="vp-feed__body" data-vp-feed-body>{{ body }}</p>
|
|
9724
|
+
}
|
|
9725
|
+
</div>
|
|
9726
|
+
<div class="vp-feed__actions"><ng-content select="[actions]" /></div>
|
|
9727
|
+
</article>
|
|
9728
|
+
`, isInline: true, styles: [":host{display:block;font-family:var(--vp-font-sans)}.vp-feed{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--vp-space-4);padding:var(--vp-space-3) var(--vp-space-3) var(--vp-space-3) var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);border-left:2px solid transparent}.vp-feed[data-unread=true]{border-left-color:var(--vp-brand)}.vp-feed[data-tone=warn][data-unread=true]{border-left-color:var(--vp-sev-high)}.vp-feed[data-tone=bad][data-unread=true]{border-left-color:var(--vp-sev-critical)}.vp-feed[data-tone=ok][data-unread=true]{border-left-color:var(--vp-sev-clean)}.vp-feed__main{min-width:0;flex:1}.vp-feed__head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--vp-space-3)}.vp-feed__title{color:var(--vp-text-primary);font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold)}.vp-feed[data-unread=false] .vp-feed__title{font-weight:var(--vp-weight-normal)}.vp-feed__time{color:var(--vp-text-muted);font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums}.vp-feed__body{margin:var(--vp-space-1) 0 0;color:var(--vp-text-secondary);font-size:var(--vp-text-sm)}.vp-feed__actions:empty{display:none}.vp-feed__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9729
|
+
}
|
|
9730
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpFeedRowComponent, decorators: [{
|
|
9731
|
+
type: Component,
|
|
9732
|
+
args: [{ selector: 'vp-feed-row', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
9733
|
+
<article class="vp-feed" data-vp-feed-row [attr.data-unread]="unread" [attr.data-tone]="tone">
|
|
9734
|
+
<div class="vp-feed__main">
|
|
9735
|
+
<div class="vp-feed__head">
|
|
9736
|
+
@if (unread && unreadLabel) {
|
|
9737
|
+
<span class="vp-feed__sr" data-vp-feed-unread-label>{{ unreadLabel }}</span>
|
|
9738
|
+
}
|
|
9739
|
+
<span class="vp-feed__title" data-vp-feed-title>{{ title }}</span>
|
|
9740
|
+
<span class="vp-feed__time" data-vp-feed-time>{{ time }}</span>
|
|
9741
|
+
</div>
|
|
9742
|
+
@if (body) {
|
|
9743
|
+
<p class="vp-feed__body" data-vp-feed-body>{{ body }}</p>
|
|
9744
|
+
}
|
|
9745
|
+
</div>
|
|
9746
|
+
<div class="vp-feed__actions"><ng-content select="[actions]" /></div>
|
|
9747
|
+
</article>
|
|
9748
|
+
`, styles: [":host{display:block;font-family:var(--vp-font-sans)}.vp-feed{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--vp-space-4);padding:var(--vp-space-3) var(--vp-space-3) var(--vp-space-3) var(--vp-space-4);border-bottom:1px solid var(--vp-border-subtle);border-left:2px solid transparent}.vp-feed[data-unread=true]{border-left-color:var(--vp-brand)}.vp-feed[data-tone=warn][data-unread=true]{border-left-color:var(--vp-sev-high)}.vp-feed[data-tone=bad][data-unread=true]{border-left-color:var(--vp-sev-critical)}.vp-feed[data-tone=ok][data-unread=true]{border-left-color:var(--vp-sev-clean)}.vp-feed__main{min-width:0;flex:1}.vp-feed__head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--vp-space-3)}.vp-feed__title{color:var(--vp-text-primary);font-size:var(--vp-text-sm);font-weight:var(--vp-weight-semibold)}.vp-feed[data-unread=false] .vp-feed__title{font-weight:var(--vp-weight-normal)}.vp-feed__time{color:var(--vp-text-muted);font-family:var(--vp-font-mono);font-size:var(--vp-text-xs);font-variant-numeric:tabular-nums}.vp-feed__body{margin:var(--vp-space-1) 0 0;color:var(--vp-text-secondary);font-size:var(--vp-text-sm)}.vp-feed__actions:empty{display:none}.vp-feed__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n"] }]
|
|
9749
|
+
}], propDecorators: { title: [{
|
|
9750
|
+
type: Input
|
|
9751
|
+
}], body: [{
|
|
9752
|
+
type: Input
|
|
9753
|
+
}], time: [{
|
|
9754
|
+
type: Input
|
|
9755
|
+
}], unread: [{
|
|
9756
|
+
type: Input
|
|
9757
|
+
}], unreadLabel: [{
|
|
9758
|
+
type: Input
|
|
9759
|
+
}], tone: [{
|
|
9760
|
+
type: Input
|
|
9761
|
+
}] } });
|
|
9762
|
+
|
|
9763
|
+
/** "Canlı" rozeti — design-system/006 T-07. Yalnız veri gerçekten otomatik yenileniyorsa tüketici çizer; etiket boşsa hiçbir şey çizmez. */
|
|
9764
|
+
class VpLiveChipComponent {
|
|
9765
|
+
constructor() {
|
|
9766
|
+
this.label = '';
|
|
9767
|
+
}
|
|
9768
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpLiveChipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9769
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpLiveChipComponent, isStandalone: true, selector: "vp-live-chip", inputs: { label: "label" }, ngImport: i0, template: `
|
|
9770
|
+
@if (label) {
|
|
9771
|
+
<span class="vp-live">
|
|
9772
|
+
<span class="vp-live__dot" aria-hidden="true"></span>
|
|
9773
|
+
<span data-vp-live-label>{{ label }}</span>
|
|
9774
|
+
</span>
|
|
9775
|
+
}
|
|
9776
|
+
`, isInline: true, styles: [":host{display:inline-flex}.vp-live{display:inline-flex;align-items:center;gap:var(--vp-space-2);padding:0 var(--vp-space-3);min-height:24px;border:1px solid var(--vp-sev-clean-border);border-radius:var(--vp-radius-full);color:var(--vp-text-secondary);font-family:var(--vp-font-sans);font-size:var(--vp-text-xs)}.vp-live__dot{width:7px;height:7px;border-radius:var(--vp-radius-full);background:var(--vp-sev-clean);box-shadow:0 0 0 3px var(--vp-sev-clean-bg)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9777
|
+
}
|
|
9778
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpLiveChipComponent, decorators: [{
|
|
9779
|
+
type: Component,
|
|
9780
|
+
args: [{ selector: 'vp-live-chip', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
9781
|
+
@if (label) {
|
|
9782
|
+
<span class="vp-live">
|
|
9783
|
+
<span class="vp-live__dot" aria-hidden="true"></span>
|
|
9784
|
+
<span data-vp-live-label>{{ label }}</span>
|
|
9785
|
+
</span>
|
|
9786
|
+
}
|
|
9787
|
+
`, styles: [":host{display:inline-flex}.vp-live{display:inline-flex;align-items:center;gap:var(--vp-space-2);padding:0 var(--vp-space-3);min-height:24px;border:1px solid var(--vp-sev-clean-border);border-radius:var(--vp-radius-full);color:var(--vp-text-secondary);font-family:var(--vp-font-sans);font-size:var(--vp-text-xs)}.vp-live__dot{width:7px;height:7px;border-radius:var(--vp-radius-full);background:var(--vp-sev-clean);box-shadow:0 0 0 3px var(--vp-sev-clean-bg)}\n"] }]
|
|
9788
|
+
}], propDecorators: { label: [{
|
|
9789
|
+
type: Input
|
|
9790
|
+
}] } });
|
|
9791
|
+
|
|
9792
|
+
const BLOCKED_SCHEME = /^\s*(?:javascript|data|vbscript):/i;
|
|
9793
|
+
const ABSOLUTE = /^https?:\/\//i;
|
|
9794
|
+
/**
|
|
9795
|
+
* Belge düğmesi (sağ üst) — design-system/006 T-07.
|
|
9796
|
+
* Tehlikeli şemalar (`javascript:`, `data:`, `vbscript:`) bağlantıyı çizdirmez. Harici bağlantı yeni sekmede ve `noopener`;
|
|
9797
|
+
* yeni sekme uyarısı erişilebilir ada eklenir. Sabit metin yok.
|
|
9798
|
+
*/
|
|
9799
|
+
class VpDocLinkComponent {
|
|
9800
|
+
constructor() {
|
|
9801
|
+
this.href = '';
|
|
9802
|
+
this.label = '';
|
|
9803
|
+
this.newTabLabel = '';
|
|
9804
|
+
}
|
|
9805
|
+
get safe() {
|
|
9806
|
+
return !!this.href && !BLOCKED_SCHEME.test(this.href);
|
|
9807
|
+
}
|
|
9808
|
+
get external() {
|
|
9809
|
+
return ABSOLUTE.test(this.href);
|
|
9810
|
+
}
|
|
9811
|
+
get accessibleName() {
|
|
9812
|
+
return this.external && this.newTabLabel ? `${this.label}, ${this.newTabLabel}` : this.label;
|
|
9813
|
+
}
|
|
9814
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDocLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9815
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpDocLinkComponent, isStandalone: true, selector: "vp-doc-link", inputs: { href: "href", label: "label", newTabLabel: "newTabLabel" }, ngImport: i0, template: `
|
|
9816
|
+
@if (safe) {
|
|
9817
|
+
<a
|
|
9818
|
+
class="vp-doc"
|
|
9819
|
+
data-vp-doc-link
|
|
9820
|
+
[href]="href"
|
|
9821
|
+
[attr.target]="external ? '_blank' : null"
|
|
9822
|
+
[attr.rel]="external ? 'noopener noreferrer' : null"
|
|
9823
|
+
[attr.aria-label]="accessibleName"
|
|
9824
|
+
>
|
|
9825
|
+
<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round" aria-hidden="true" focusable="false">
|
|
9826
|
+
<path d="M2.4 3.2h3.4c.9 0 1.7.5 2.2 1.2.5-.7 1.3-1.2 2.2-1.2h3.4v9.1h-3.4c-.9 0-1.7.5-2.2 1.2-.5-.7-1.3-1.2-2.2-1.2H2.4z" />
|
|
9827
|
+
<path d="M8 4.4v8.1" />
|
|
9828
|
+
</svg>
|
|
9829
|
+
</a>
|
|
9830
|
+
}
|
|
9831
|
+
`, isInline: true, styles: [":host{display:inline-flex}.vp-doc{display:inline-grid;place-items:center;width:32px;height:32px;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);color:var(--vp-text-secondary)}.vp-doc svg{width:16px;height:16px}.vp-doc:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}@media(pointer:coarse),(max-width:640px){.vp-doc{width:var(--vp-touch-target);height:var(--vp-touch-target)}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9832
|
+
}
|
|
9833
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpDocLinkComponent, decorators: [{
|
|
9834
|
+
type: Component,
|
|
9835
|
+
args: [{ selector: 'vp-doc-link', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
9836
|
+
@if (safe) {
|
|
9837
|
+
<a
|
|
9838
|
+
class="vp-doc"
|
|
9839
|
+
data-vp-doc-link
|
|
9840
|
+
[href]="href"
|
|
9841
|
+
[attr.target]="external ? '_blank' : null"
|
|
9842
|
+
[attr.rel]="external ? 'noopener noreferrer' : null"
|
|
9843
|
+
[attr.aria-label]="accessibleName"
|
|
9844
|
+
>
|
|
9845
|
+
<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round" aria-hidden="true" focusable="false">
|
|
9846
|
+
<path d="M2.4 3.2h3.4c.9 0 1.7.5 2.2 1.2.5-.7 1.3-1.2 2.2-1.2h3.4v9.1h-3.4c-.9 0-1.7.5-2.2 1.2-.5-.7-1.3-1.2-2.2-1.2H2.4z" />
|
|
9847
|
+
<path d="M8 4.4v8.1" />
|
|
9848
|
+
</svg>
|
|
9849
|
+
</a>
|
|
9850
|
+
}
|
|
9851
|
+
`, styles: [":host{display:inline-flex}.vp-doc{display:inline-grid;place-items:center;width:32px;height:32px;border:1px solid var(--vp-border-subtle);border-radius:var(--vp-radius-lg);background:var(--vp-surface-raised);color:var(--vp-text-secondary)}.vp-doc svg{width:16px;height:16px}.vp-doc:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}@media(pointer:coarse),(max-width:640px){.vp-doc{width:var(--vp-touch-target);height:var(--vp-touch-target)}}\n"] }]
|
|
9852
|
+
}], propDecorators: { href: [{
|
|
9853
|
+
type: Input
|
|
9854
|
+
}], label: [{
|
|
9855
|
+
type: Input
|
|
9856
|
+
}], newTabLabel: [{
|
|
9857
|
+
type: Input
|
|
9858
|
+
}] } });
|
|
9859
|
+
|
|
9860
|
+
const LAYER_ATTR = 'data-vp-tip-layer';
|
|
9861
|
+
const GAP = 8;
|
|
9862
|
+
/**
|
|
9863
|
+
* İpucu yönergesi — design-system/006 T-08. TEK katman (belgede tek düğüm), hover + odak ile açılır, blur/Escape/ayrılınca kapanır.
|
|
9864
|
+
* Metin düz metindir (`textContent`); `aria-describedby` yalnız açıkken bağlanır. Ray için `vpTipSide="right"`.
|
|
9865
|
+
* Katman yalnız olay anında oluşur (SSR güvenli).
|
|
9866
|
+
*/
|
|
9867
|
+
class VpTipDirective {
|
|
9868
|
+
constructor() {
|
|
9869
|
+
this.host = inject(ElementRef);
|
|
9870
|
+
this.doc = inject(DOCUMENT);
|
|
9871
|
+
this.text = '';
|
|
9872
|
+
this.vpTipSide = 'bottom';
|
|
9873
|
+
}
|
|
9874
|
+
onEnter() { this.show(); }
|
|
9875
|
+
onFocus() { this.show(); }
|
|
9876
|
+
onLeave() { this.hide(); }
|
|
9877
|
+
onBlur() { this.hide(); }
|
|
9878
|
+
onKey(event) {
|
|
9879
|
+
if (event.key === 'Escape')
|
|
9880
|
+
this.hide();
|
|
9881
|
+
}
|
|
9882
|
+
layer() {
|
|
9883
|
+
let el = this.doc.querySelector(`[${LAYER_ATTR}]`);
|
|
9884
|
+
if (!el) {
|
|
9885
|
+
el = this.doc.createElement('div');
|
|
9886
|
+
el.setAttribute(LAYER_ATTR, '');
|
|
9887
|
+
el.setAttribute('role', 'tooltip');
|
|
9888
|
+
el.id = 'vp-tip-layer';
|
|
9889
|
+
el.hidden = true;
|
|
9890
|
+
Object.assign(el.style, {
|
|
9891
|
+
position: 'fixed',
|
|
9892
|
+
zIndex: '2000',
|
|
9893
|
+
maxWidth: '260px',
|
|
9894
|
+
padding: 'var(--vp-space-1) var(--vp-space-3)',
|
|
9895
|
+
border: '1px solid var(--vp-border-default)',
|
|
9896
|
+
borderRadius: 'var(--vp-radius-md)',
|
|
9897
|
+
background: 'var(--vp-surface-raised)',
|
|
9898
|
+
color: 'var(--vp-text-primary)',
|
|
9899
|
+
fontFamily: 'var(--vp-font-sans)',
|
|
9900
|
+
fontSize: 'var(--vp-text-xs)',
|
|
9901
|
+
pointerEvents: 'none',
|
|
9902
|
+
});
|
|
9903
|
+
this.doc.body.appendChild(el);
|
|
9904
|
+
}
|
|
9905
|
+
return el;
|
|
9906
|
+
}
|
|
9907
|
+
show() {
|
|
9908
|
+
if (!this.text)
|
|
9909
|
+
return;
|
|
9910
|
+
const el = this.layer();
|
|
9911
|
+
el.textContent = this.text;
|
|
9912
|
+
el.setAttribute('data-side', this.vpTipSide);
|
|
9913
|
+
el.hidden = false;
|
|
9914
|
+
this.place(el);
|
|
9915
|
+
this.host.nativeElement.setAttribute('aria-describedby', el.id);
|
|
9916
|
+
}
|
|
9917
|
+
place(el) {
|
|
9918
|
+
const rect = this.host.nativeElement.getBoundingClientRect();
|
|
9919
|
+
if (this.vpTipSide === 'right') {
|
|
9920
|
+
el.style.left = `${rect.right + GAP}px`;
|
|
9921
|
+
el.style.top = `${rect.top + rect.height / 2}px`;
|
|
9922
|
+
el.style.transform = 'translateY(-50%)';
|
|
9923
|
+
}
|
|
9924
|
+
else if (this.vpTipSide === 'top') {
|
|
9925
|
+
el.style.left = `${rect.left + rect.width / 2}px`;
|
|
9926
|
+
el.style.top = `${rect.top - GAP}px`;
|
|
9927
|
+
el.style.transform = 'translate(-50%, -100%)';
|
|
9928
|
+
}
|
|
9929
|
+
else {
|
|
9930
|
+
el.style.left = `${rect.left + rect.width / 2}px`;
|
|
9931
|
+
el.style.top = `${rect.bottom + GAP}px`;
|
|
9932
|
+
el.style.transform = 'translateX(-50%)';
|
|
9933
|
+
}
|
|
9934
|
+
}
|
|
9935
|
+
hide() {
|
|
9936
|
+
const el = this.doc.querySelector(`[${LAYER_ATTR}]`);
|
|
9937
|
+
if (el)
|
|
9938
|
+
el.hidden = true;
|
|
9939
|
+
this.host.nativeElement.removeAttribute('aria-describedby');
|
|
9940
|
+
}
|
|
9941
|
+
ngOnDestroy() {
|
|
9942
|
+
this.hide();
|
|
9943
|
+
}
|
|
9944
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpTipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
9945
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.31", type: VpTipDirective, isStandalone: true, selector: "[vpTip]", inputs: { text: ["vpTip", "text"], vpTipSide: "vpTipSide" }, host: { listeners: { "mouseenter": "onEnter()", "focus": "onFocus()", "mouseleave": "onLeave()", "blur": "onBlur()", "keydown": "onKey($event)" } }, ngImport: i0 }); }
|
|
9946
|
+
}
|
|
9947
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpTipDirective, decorators: [{
|
|
9948
|
+
type: Directive,
|
|
9949
|
+
args: [{ selector: '[vpTip]', standalone: true }]
|
|
9950
|
+
}], propDecorators: { text: [{
|
|
9951
|
+
type: Input,
|
|
9952
|
+
args: ['vpTip']
|
|
9953
|
+
}], vpTipSide: [{
|
|
9954
|
+
type: Input
|
|
9955
|
+
}], onEnter: [{
|
|
9956
|
+
type: HostListener,
|
|
9957
|
+
args: ['mouseenter']
|
|
9958
|
+
}], onFocus: [{
|
|
9959
|
+
type: HostListener,
|
|
9960
|
+
args: ['focus']
|
|
9961
|
+
}], onLeave: [{
|
|
9962
|
+
type: HostListener,
|
|
9963
|
+
args: ['mouseleave']
|
|
9964
|
+
}], onBlur: [{
|
|
9965
|
+
type: HostListener,
|
|
9966
|
+
args: ['blur']
|
|
9967
|
+
}], onKey: [{
|
|
9968
|
+
type: HostListener,
|
|
9969
|
+
args: ['keydown', ['$event']]
|
|
9970
|
+
}] } });
|
|
9971
|
+
|
|
9972
|
+
/**
|
|
9973
|
+
* Form kontrol stili — design-system/006 T-09.
|
|
9974
|
+
* Yerel `select` / `textarea` / `input` öğesine prototip alan stilini verir (`<select vpControl>`); değer ve olay modeli yerel kalır
|
|
9975
|
+
* (herhangi bir form kütüphanesiyle çalışır). Hata durumu `aria-invalid="true"` ile. Yalnız `--vp-*` token.
|
|
9976
|
+
*/
|
|
9977
|
+
class VpControlComponent {
|
|
9978
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9979
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: VpControlComponent, isStandalone: true, selector: "select[vpControl], textarea[vpControl], input[vpControl]", host: { classAttribute: "vp-control" }, ngImport: i0, template: '<ng-content />', isInline: true, styles: [".vp-control{box-sizing:border-box;width:100%;min-height:var(--vp-control-height);padding:var(--vp-space-2) var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-base);color:var(--vp-text-primary);font-family:var(--vp-font-sans);font-size:var(--vp-text-sm)}textarea.vp-control{min-height:0;resize:vertical;font-family:var(--vp-font-mono)}.vp-control::placeholder{color:var(--vp-text-muted)}.vp-control:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-control[aria-invalid=true]{border-color:var(--vp-sev-critical)}.vp-control:disabled{opacity:.6;cursor:not-allowed}@media(pointer:coarse),(max-width:640px){.vp-control{min-height:var(--vp-touch-target)}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
9980
|
+
}
|
|
9981
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpControlComponent, decorators: [{
|
|
9982
|
+
type: Component,
|
|
9983
|
+
args: [{ selector: 'select[vpControl], textarea[vpControl], input[vpControl]', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'vp-control' }, template: '<ng-content />', styles: [".vp-control{box-sizing:border-box;width:100%;min-height:var(--vp-control-height);padding:var(--vp-space-2) var(--vp-space-3);border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-base);color:var(--vp-text-primary);font-family:var(--vp-font-sans);font-size:var(--vp-text-sm)}textarea.vp-control{min-height:0;resize:vertical;font-family:var(--vp-font-mono)}.vp-control::placeholder{color:var(--vp-text-muted)}.vp-control:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-control[aria-invalid=true]{border-color:var(--vp-sev-critical)}.vp-control:disabled{opacity:.6;cursor:not-allowed}@media(pointer:coarse),(max-width:640px){.vp-control{min-height:var(--vp-touch-target)}}\n"] }]
|
|
9984
|
+
}] });
|
|
9985
|
+
|
|
9986
|
+
/**
|
|
9987
|
+
* Ayarlar kabugu — paket 07 · G1.
|
|
9988
|
+
*
|
|
9989
|
+
* Ikincil navigasyon + icerik alani. Her bolum kendi rotasi oldugu icin
|
|
9990
|
+
* **deep link paylasilabilir**; kabuk yalnizca hangisinin aktif oldugunu bilir.
|
|
9991
|
+
*
|
|
9992
|
+
* Paket 16'nin yetki/kosul ayrimi burada da gecerli:
|
|
9993
|
+
* `hidden` -> gorunmez · `disabledReason` -> devre disi + sebep
|
|
9994
|
+
*
|
|
9995
|
+
* Yerlesim: genis ekranda sol dikey, dar ekranda uste yigilir.
|
|
9996
|
+
*/
|
|
9997
|
+
class VpSettingsShellComponent {
|
|
9998
|
+
constructor() {
|
|
9999
|
+
this.router = inject(Router, { optional: true });
|
|
10000
|
+
this.sections = [];
|
|
10001
|
+
/** Aktif bolumun "code" degeri — rotadan gelir. */
|
|
10002
|
+
this.activeCode = null;
|
|
10003
|
+
this.navLabel = 'Ayar bölümleri';
|
|
10004
|
+
}
|
|
10005
|
+
/** Bölüm değişimi Router'la — her sekmede uygulamayı baştan yüklemiyor (2026-11-05). */
|
|
10006
|
+
follow(event, path) {
|
|
10007
|
+
vpRouterClick(this.router, event, path);
|
|
10008
|
+
}
|
|
10009
|
+
get visibleSections() {
|
|
10010
|
+
return (this.sections ?? []).filter(s => !s.hidden);
|
|
10011
|
+
}
|
|
10012
|
+
/** Ayarlar gezinme ikonu da PrimeIcons sozlugunden — bkz. "primeIconClass". */
|
|
10013
|
+
iconClass(section) {
|
|
10014
|
+
return 'vp-settings__icon ' + primeIconClass(section.icon, 'pi-cog');
|
|
10015
|
+
}
|
|
10016
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSettingsShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10017
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpSettingsShellComponent, isStandalone: true, selector: "vp-settings-shell", inputs: { sections: "sections", activeCode: "activeCode", navLabel: "navLabel" }, ngImport: i0, template: `
|
|
10018
|
+
<div class="vp-settings">
|
|
10019
|
+
<nav class="vp-settings__nav" [attr.aria-label]="navLabel">
|
|
10020
|
+
<ul class="vp-settings__list">
|
|
10021
|
+
@for (section of visibleSections; track section.code) {
|
|
10022
|
+
<li class="vp-settings__item">
|
|
10023
|
+
@if (section.disabledReason) {
|
|
10024
|
+
<span
|
|
10025
|
+
class="vp-settings__link vp-settings__link--disabled"
|
|
10026
|
+
[attr.data-vp-section]="section.code"
|
|
10027
|
+
aria-disabled="true"
|
|
10028
|
+
[attr.title]="section.label + ' — ' + section.disabledReason">
|
|
10029
|
+
<i [attr.class]="iconClass(section)" aria-hidden="true"></i>
|
|
10030
|
+
{{ section.label }}
|
|
10031
|
+
</span>
|
|
10032
|
+
<span
|
|
10033
|
+
class="vp-settings__reason"
|
|
10034
|
+
[attr.data-vp-section-reason]="section.code">{{ section.disabledReason }}</span>
|
|
10035
|
+
} @else {
|
|
10036
|
+
<a
|
|
10037
|
+
class="vp-settings__link"
|
|
10038
|
+
[attr.data-vp-section]="section.code"
|
|
10039
|
+
[attr.href]="section.path"
|
|
10040
|
+
[attr.aria-current]="section.code === activeCode ? 'page' : null"
|
|
10041
|
+
[class.vp-settings__link--active]="section.code === activeCode"
|
|
10042
|
+
(click)="follow($event, section.path)">
|
|
10043
|
+
<i [attr.class]="iconClass(section)" aria-hidden="true"></i>
|
|
10044
|
+
{{ section.label }}
|
|
10045
|
+
</a>
|
|
10046
|
+
}
|
|
10047
|
+
</li>
|
|
10048
|
+
}
|
|
10049
|
+
</ul>
|
|
10050
|
+
</nav>
|
|
10051
|
+
|
|
10052
|
+
<div class="vp-settings__content">
|
|
10053
|
+
<ng-content />
|
|
10054
|
+
</div>
|
|
10055
|
+
</div>
|
|
10056
|
+
`, isInline: true, styles: [":host{display:block}.vp-settings{display:grid;grid-template-columns:15rem 1fr;gap:var(--vp-space-8);align-items:start}.vp-settings__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--vp-space-1)}.vp-settings__item{margin:0}.vp-settings__link{display:flex;align-items:center;gap:var(--vp-space-2);min-height:var(--vp-control-height);padding:var(--vp-space-2) var(--vp-space-3);border-radius:var(--vp-radius-md);color:var(--vp-text-secondary);text-decoration:none;font-size:var(--vp-text-base)}.vp-settings__link:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-settings__link:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-settings__link--active{background:var(--vp-brand-subtle);color:var(--vp-text-primary);font-weight:var(--vp-weight-semibold);box-shadow:inset 3px 0 0 var(--vp-brand)}.vp-settings__link--disabled{color:var(--vp-text-muted);cursor:not-allowed}.vp-settings__link--disabled:hover{background:transparent;color:var(--vp-text-muted)}.vp-settings__reason{display:block;padding:0 var(--vp-space-3) var(--vp-space-2) calc(var(--vp-space-3) + 18px + var(--vp-space-2));color:var(--vp-text-muted);font-size:var(--vp-text-xs);line-height:var(--vp-leading-tight)}.vp-settings__icon{width:18px;font-size:18px;line-height:1;flex:0 0 auto}.vp-settings__content{min-width:0;max-width:880px}@media(max-width:900px){.vp-settings{grid-template-columns:1fr;gap:var(--vp-space-4)}.vp-settings__list{flex-direction:row;flex-wrap:wrap}.vp-settings__reason{display:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10057
|
+
}
|
|
10058
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSettingsShellComponent, decorators: [{
|
|
10059
|
+
type: Component,
|
|
10060
|
+
args: [{ selector: 'vp-settings-shell', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
10061
|
+
<div class="vp-settings">
|
|
10062
|
+
<nav class="vp-settings__nav" [attr.aria-label]="navLabel">
|
|
10063
|
+
<ul class="vp-settings__list">
|
|
10064
|
+
@for (section of visibleSections; track section.code) {
|
|
10065
|
+
<li class="vp-settings__item">
|
|
10066
|
+
@if (section.disabledReason) {
|
|
10067
|
+
<span
|
|
10068
|
+
class="vp-settings__link vp-settings__link--disabled"
|
|
10069
|
+
[attr.data-vp-section]="section.code"
|
|
10070
|
+
aria-disabled="true"
|
|
10071
|
+
[attr.title]="section.label + ' — ' + section.disabledReason">
|
|
10072
|
+
<i [attr.class]="iconClass(section)" aria-hidden="true"></i>
|
|
10073
|
+
{{ section.label }}
|
|
10074
|
+
</span>
|
|
10075
|
+
<span
|
|
10076
|
+
class="vp-settings__reason"
|
|
10077
|
+
[attr.data-vp-section-reason]="section.code">{{ section.disabledReason }}</span>
|
|
10078
|
+
} @else {
|
|
10079
|
+
<a
|
|
10080
|
+
class="vp-settings__link"
|
|
10081
|
+
[attr.data-vp-section]="section.code"
|
|
10082
|
+
[attr.href]="section.path"
|
|
10083
|
+
[attr.aria-current]="section.code === activeCode ? 'page' : null"
|
|
10084
|
+
[class.vp-settings__link--active]="section.code === activeCode"
|
|
10085
|
+
(click)="follow($event, section.path)">
|
|
10086
|
+
<i [attr.class]="iconClass(section)" aria-hidden="true"></i>
|
|
10087
|
+
{{ section.label }}
|
|
10088
|
+
</a>
|
|
10089
|
+
}
|
|
10090
|
+
</li>
|
|
10091
|
+
}
|
|
10092
|
+
</ul>
|
|
10093
|
+
</nav>
|
|
10094
|
+
|
|
10095
|
+
<div class="vp-settings__content">
|
|
10096
|
+
<ng-content />
|
|
10097
|
+
</div>
|
|
10098
|
+
</div>
|
|
10099
|
+
`, styles: [":host{display:block}.vp-settings{display:grid;grid-template-columns:15rem 1fr;gap:var(--vp-space-8);align-items:start}.vp-settings__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--vp-space-1)}.vp-settings__item{margin:0}.vp-settings__link{display:flex;align-items:center;gap:var(--vp-space-2);min-height:var(--vp-control-height);padding:var(--vp-space-2) var(--vp-space-3);border-radius:var(--vp-radius-md);color:var(--vp-text-secondary);text-decoration:none;font-size:var(--vp-text-base)}.vp-settings__link:hover{background:var(--vp-surface-sunken);color:var(--vp-text-primary)}.vp-settings__link:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-settings__link--active{background:var(--vp-brand-subtle);color:var(--vp-text-primary);font-weight:var(--vp-weight-semibold);box-shadow:inset 3px 0 0 var(--vp-brand)}.vp-settings__link--disabled{color:var(--vp-text-muted);cursor:not-allowed}.vp-settings__link--disabled:hover{background:transparent;color:var(--vp-text-muted)}.vp-settings__reason{display:block;padding:0 var(--vp-space-3) var(--vp-space-2) calc(var(--vp-space-3) + 18px + var(--vp-space-2));color:var(--vp-text-muted);font-size:var(--vp-text-xs);line-height:var(--vp-leading-tight)}.vp-settings__icon{width:18px;font-size:18px;line-height:1;flex:0 0 auto}.vp-settings__content{min-width:0;max-width:880px}@media(max-width:900px){.vp-settings{grid-template-columns:1fr;gap:var(--vp-space-4)}.vp-settings__list{flex-direction:row;flex-wrap:wrap}.vp-settings__reason{display:none}}\n"] }]
|
|
10100
|
+
}], propDecorators: { sections: [{
|
|
10101
|
+
type: Input,
|
|
10102
|
+
args: [{ required: true }]
|
|
10103
|
+
}], activeCode: [{
|
|
10104
|
+
type: Input
|
|
10105
|
+
}], navLabel: [{
|
|
10106
|
+
type: Input
|
|
10107
|
+
}] } });
|
|
10108
|
+
|
|
10109
|
+
/**
|
|
10110
|
+
* Yapiskan kaydet cubugu — paket 07 · G3.
|
|
10111
|
+
*
|
|
10112
|
+
* ## 🔴 Autosave YOK
|
|
10113
|
+
*
|
|
10114
|
+
* Guvenlik ayarlarinda istenmeyen kaydetme riski var: kullanici bir alani
|
|
10115
|
+
* yanlislikla degistirip sekmeyi kapatinca ayar kalici olmamali. Acik
|
|
10116
|
+
* `Kaydet` tercih edildi.
|
|
10117
|
+
*
|
|
10118
|
+
* Cubuk **yalnizca kirli durumda** gorunur. Her zaman duran bir cubuk
|
|
10119
|
+
* "kaydedilmemis bir sey var mi" sorusunu cevaplamaz.
|
|
10120
|
+
*/
|
|
10121
|
+
class VpSaveBarComponent {
|
|
10122
|
+
constructor() {
|
|
10123
|
+
/** Kaydedilmemis degisiklik var mi. `false` ise cubuk render EDILMEZ. */
|
|
10124
|
+
this.dirty = false;
|
|
10125
|
+
/** Kaydetme suruyor — iki dugme de pasiflesir, yarim durum olusmasin. */
|
|
10126
|
+
this.saving = false;
|
|
10127
|
+
this.message = 'Kaydedilmemiş değişiklikleriniz var';
|
|
10128
|
+
this.saveLabel = 'Kaydet';
|
|
10129
|
+
this.savingLabel = 'Kaydediliyor…';
|
|
10130
|
+
this.discardLabel = 'Vazgeç';
|
|
10131
|
+
this.save = new EventEmitter();
|
|
10132
|
+
this.discard = new EventEmitter();
|
|
10133
|
+
}
|
|
10134
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpSaveBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10135
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpSaveBarComponent, isStandalone: true, selector: "vp-save-bar", inputs: { dirty: "dirty", saving: "saving", message: "message", saveLabel: "saveLabel", savingLabel: "savingLabel", discardLabel: "discardLabel" }, outputs: { save: "save", discard: "discard" }, ngImport: i0, template: `
|
|
10136
|
+
@if (dirty) {
|
|
10137
|
+
<div class="vp-savebar" data-vp-savebar role="status" aria-live="polite">
|
|
10138
|
+
<span class="vp-savebar__message">{{ message }}</span>
|
|
10139
|
+
|
|
10140
|
+
<div class="vp-savebar__actions">
|
|
10141
|
+
<button
|
|
10142
|
+
type="button"
|
|
10143
|
+
class="vp-savebar__btn"
|
|
10144
|
+
data-vp-discard
|
|
10145
|
+
[disabled]="saving"
|
|
10146
|
+
(click)="discard.emit()">{{ discardLabel }}</button>
|
|
10147
|
+
|
|
10148
|
+
<button
|
|
10149
|
+
type="button"
|
|
8615
10150
|
class="vp-savebar__btn vp-savebar__btn--primary"
|
|
8616
10151
|
data-vp-save
|
|
8617
10152
|
[disabled]="saving"
|
|
@@ -8795,6 +10330,25 @@ const COMPONENTS = [
|
|
|
8795
10330
|
VpSettingsShellComponent,
|
|
8796
10331
|
VpSaveBarComponent,
|
|
8797
10332
|
VpDangerZoneComponent,
|
|
10333
|
+
VpStackedBarsComponent,
|
|
10334
|
+
VpRankedBarsComponent,
|
|
10335
|
+
VpShareBarComponent,
|
|
10336
|
+
VpMixMeterComponent,
|
|
10337
|
+
VpSegmentedComponent,
|
|
10338
|
+
VpChipPickerComponent,
|
|
10339
|
+
VpVerbBadgeComponent,
|
|
10340
|
+
VpPanelComponent,
|
|
10341
|
+
VpNoteComponent,
|
|
10342
|
+
VpKvRowComponent,
|
|
10343
|
+
VpStatusMarkComponent,
|
|
10344
|
+
VpSwitchRowComponent,
|
|
10345
|
+
VpCopyButtonComponent,
|
|
10346
|
+
VpCodeBlockComponent,
|
|
10347
|
+
VpFeedRowComponent,
|
|
10348
|
+
VpLiveChipComponent,
|
|
10349
|
+
VpDocLinkComponent,
|
|
10350
|
+
VpTipDirective,
|
|
10351
|
+
VpControlComponent,
|
|
8798
10352
|
];
|
|
8799
10353
|
class VirusisUiModule {
|
|
8800
10354
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VirusisUiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
@@ -8818,7 +10372,26 @@ class VirusisUiModule {
|
|
|
8818
10372
|
VpScoreBreakdownComponent,
|
|
8819
10373
|
VpSettingsShellComponent,
|
|
8820
10374
|
VpSaveBarComponent,
|
|
8821
|
-
VpDangerZoneComponent
|
|
10375
|
+
VpDangerZoneComponent,
|
|
10376
|
+
VpStackedBarsComponent,
|
|
10377
|
+
VpRankedBarsComponent,
|
|
10378
|
+
VpShareBarComponent,
|
|
10379
|
+
VpMixMeterComponent,
|
|
10380
|
+
VpSegmentedComponent,
|
|
10381
|
+
VpChipPickerComponent,
|
|
10382
|
+
VpVerbBadgeComponent,
|
|
10383
|
+
VpPanelComponent,
|
|
10384
|
+
VpNoteComponent,
|
|
10385
|
+
VpKvRowComponent,
|
|
10386
|
+
VpStatusMarkComponent,
|
|
10387
|
+
VpSwitchRowComponent,
|
|
10388
|
+
VpCopyButtonComponent,
|
|
10389
|
+
VpCodeBlockComponent,
|
|
10390
|
+
VpFeedRowComponent,
|
|
10391
|
+
VpLiveChipComponent,
|
|
10392
|
+
VpDocLinkComponent,
|
|
10393
|
+
VpTipDirective,
|
|
10394
|
+
VpControlComponent], exports: [VpStateComponent,
|
|
8822
10395
|
VpShellComponent,
|
|
8823
10396
|
VpPageHeaderComponent,
|
|
8824
10397
|
VpBannerComponent,
|
|
@@ -8838,7 +10411,26 @@ class VirusisUiModule {
|
|
|
8838
10411
|
VpScoreBreakdownComponent,
|
|
8839
10412
|
VpSettingsShellComponent,
|
|
8840
10413
|
VpSaveBarComponent,
|
|
8841
|
-
VpDangerZoneComponent
|
|
10414
|
+
VpDangerZoneComponent,
|
|
10415
|
+
VpStackedBarsComponent,
|
|
10416
|
+
VpRankedBarsComponent,
|
|
10417
|
+
VpShareBarComponent,
|
|
10418
|
+
VpMixMeterComponent,
|
|
10419
|
+
VpSegmentedComponent,
|
|
10420
|
+
VpChipPickerComponent,
|
|
10421
|
+
VpVerbBadgeComponent,
|
|
10422
|
+
VpPanelComponent,
|
|
10423
|
+
VpNoteComponent,
|
|
10424
|
+
VpKvRowComponent,
|
|
10425
|
+
VpStatusMarkComponent,
|
|
10426
|
+
VpSwitchRowComponent,
|
|
10427
|
+
VpCopyButtonComponent,
|
|
10428
|
+
VpCodeBlockComponent,
|
|
10429
|
+
VpFeedRowComponent,
|
|
10430
|
+
VpLiveChipComponent,
|
|
10431
|
+
VpDocLinkComponent,
|
|
10432
|
+
VpTipDirective,
|
|
10433
|
+
VpControlComponent] }); }
|
|
8842
10434
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VirusisUiModule }); }
|
|
8843
10435
|
}
|
|
8844
10436
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VirusisUiModule, decorators: [{
|
|
@@ -9594,6 +11186,10 @@ class VpUsageChartComponent {
|
|
|
9594
11186
|
/** Limit biriminin kısa adı (aria cümlesinde). */
|
|
9595
11187
|
this.unit = '';
|
|
9596
11188
|
this.emptyLabel = 'Veri yok';
|
|
11189
|
+
/** design-system/006: grafik yüksekliği (px). Verilmezse 160. */
|
|
11190
|
+
this.height = null;
|
|
11191
|
+
/** Limit çizgisi tonu (`high` = daha belirgin uyarı rengi). Varsayılan: orta. */
|
|
11192
|
+
this.limitTone = null;
|
|
9597
11193
|
this.view = VIEW;
|
|
9598
11194
|
}
|
|
9599
11195
|
get geo() { return VIEW; }
|
|
@@ -9658,7 +11254,7 @@ class VpUsageChartComponent {
|
|
|
9658
11254
|
return `${this.label}: ${current}${limit}${note}`;
|
|
9659
11255
|
}
|
|
9660
11256
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpUsageChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9661
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpUsageChartComponent, isStandalone: true, selector: "vp-usage-chart", inputs: { points: "points", limit: "limit", note: "note", label: "label", unit: "unit", emptyLabel: "emptyLabel" }, ngImport: i0, template: `
|
|
11257
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpUsageChartComponent, isStandalone: true, selector: "vp-usage-chart", inputs: { points: "points", limit: "limit", note: "note", label: "label", unit: "unit", emptyLabel: "emptyLabel", height: "height", limitTone: "limitTone" }, ngImport: i0, template: `
|
|
9662
11258
|
<div
|
|
9663
11259
|
class="vp-usage-chart"
|
|
9664
11260
|
data-vp-usage-chart
|
|
@@ -9670,6 +11266,7 @@ class VpUsageChartComponent {
|
|
|
9670
11266
|
aria-hidden="true"
|
|
9671
11267
|
focusable="false"
|
|
9672
11268
|
preserveAspectRatio="none"
|
|
11269
|
+
[style.height.px]="height"
|
|
9673
11270
|
[attr.viewBox]="viewBox">
|
|
9674
11271
|
<path class="vp-usage-chart__area" data-vp-usage-area [attr.d]="areaPath" />
|
|
9675
11272
|
<path class="vp-usage-chart__line" data-vp-usage-line fill="none" [attr.d]="linePath" />
|
|
@@ -9677,6 +11274,7 @@ class VpUsageChartComponent {
|
|
|
9677
11274
|
<line
|
|
9678
11275
|
class="vp-usage-chart__limit"
|
|
9679
11276
|
data-vp-usage-limit
|
|
11277
|
+
[attr.data-tone]="limitTone || null"
|
|
9680
11278
|
stroke-dasharray="4 4"
|
|
9681
11279
|
[attr.x1]="geo.padL"
|
|
9682
11280
|
[attr.x2]="view.w - geo.padR"
|
|
@@ -9691,7 +11289,7 @@ class VpUsageChartComponent {
|
|
|
9691
11289
|
<span class="vp-usage-chart__empty" data-vp-usage-empty>{{ emptyLabel }}</span>
|
|
9692
11290
|
}
|
|
9693
11291
|
</div>
|
|
9694
|
-
`, isInline: true, styles: [":host{display:block}.vp-usage-chart{position:relative;width:100%;min-height:120px}.vp-usage-chart__svg{display:block;width:100%;height:160px}.vp-usage-chart__area{fill:var(--vp-brand-subtle);stroke:none}.vp-usage-chart__line{stroke:var(--vp-brand);stroke-width:2;vector-effect:non-scaling-stroke}.vp-usage-chart__limit{stroke:var(--vp-sev-medium);stroke-width:1;vector-effect:non-scaling-stroke}.vp-usage-chart__note{position:absolute;right:0;bottom:0;font-family:var(--vp-font-sans);font-size:var(--vp-text-xs);color:var(--vp-text-muted)}.vp-usage-chart__empty{display:grid;place-items:center;min-height:120px;font-family:var(--vp-font-sans);font-size:var(--vp-text-sm);color:var(--vp-text-muted)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
11292
|
+
`, isInline: true, styles: [":host{display:block}.vp-usage-chart{position:relative;width:100%;min-height:120px}.vp-usage-chart__svg{display:block;width:100%;height:160px}.vp-usage-chart__area{fill:var(--vp-brand-subtle);stroke:none}.vp-usage-chart__line{stroke:var(--vp-brand);stroke-width:2;vector-effect:non-scaling-stroke}.vp-usage-chart__limit{stroke:var(--vp-sev-medium);stroke-width:1;vector-effect:non-scaling-stroke}.vp-usage-chart__limit[data-tone=high]{stroke:var(--vp-sev-high)}.vp-usage-chart__note{position:absolute;right:0;bottom:0;font-family:var(--vp-font-sans);font-size:var(--vp-text-xs);color:var(--vp-text-muted)}.vp-usage-chart__empty{display:grid;place-items:center;min-height:120px;font-family:var(--vp-font-sans);font-size:var(--vp-text-sm);color:var(--vp-text-muted)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9695
11293
|
}
|
|
9696
11294
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpUsageChartComponent, decorators: [{
|
|
9697
11295
|
type: Component,
|
|
@@ -9707,6 +11305,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
9707
11305
|
aria-hidden="true"
|
|
9708
11306
|
focusable="false"
|
|
9709
11307
|
preserveAspectRatio="none"
|
|
11308
|
+
[style.height.px]="height"
|
|
9710
11309
|
[attr.viewBox]="viewBox">
|
|
9711
11310
|
<path class="vp-usage-chart__area" data-vp-usage-area [attr.d]="areaPath" />
|
|
9712
11311
|
<path class="vp-usage-chart__line" data-vp-usage-line fill="none" [attr.d]="linePath" />
|
|
@@ -9714,6 +11313,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
9714
11313
|
<line
|
|
9715
11314
|
class="vp-usage-chart__limit"
|
|
9716
11315
|
data-vp-usage-limit
|
|
11316
|
+
[attr.data-tone]="limitTone || null"
|
|
9717
11317
|
stroke-dasharray="4 4"
|
|
9718
11318
|
[attr.x1]="geo.padL"
|
|
9719
11319
|
[attr.x2]="view.w - geo.padR"
|
|
@@ -9728,7 +11328,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
9728
11328
|
<span class="vp-usage-chart__empty" data-vp-usage-empty>{{ emptyLabel }}</span>
|
|
9729
11329
|
}
|
|
9730
11330
|
</div>
|
|
9731
|
-
`, styles: [":host{display:block}.vp-usage-chart{position:relative;width:100%;min-height:120px}.vp-usage-chart__svg{display:block;width:100%;height:160px}.vp-usage-chart__area{fill:var(--vp-brand-subtle);stroke:none}.vp-usage-chart__line{stroke:var(--vp-brand);stroke-width:2;vector-effect:non-scaling-stroke}.vp-usage-chart__limit{stroke:var(--vp-sev-medium);stroke-width:1;vector-effect:non-scaling-stroke}.vp-usage-chart__note{position:absolute;right:0;bottom:0;font-family:var(--vp-font-sans);font-size:var(--vp-text-xs);color:var(--vp-text-muted)}.vp-usage-chart__empty{display:grid;place-items:center;min-height:120px;font-family:var(--vp-font-sans);font-size:var(--vp-text-sm);color:var(--vp-text-muted)}\n"] }]
|
|
11331
|
+
`, styles: [":host{display:block}.vp-usage-chart{position:relative;width:100%;min-height:120px}.vp-usage-chart__svg{display:block;width:100%;height:160px}.vp-usage-chart__area{fill:var(--vp-brand-subtle);stroke:none}.vp-usage-chart__line{stroke:var(--vp-brand);stroke-width:2;vector-effect:non-scaling-stroke}.vp-usage-chart__limit{stroke:var(--vp-sev-medium);stroke-width:1;vector-effect:non-scaling-stroke}.vp-usage-chart__limit[data-tone=high]{stroke:var(--vp-sev-high)}.vp-usage-chart__note{position:absolute;right:0;bottom:0;font-family:var(--vp-font-sans);font-size:var(--vp-text-xs);color:var(--vp-text-muted)}.vp-usage-chart__empty{display:grid;place-items:center;min-height:120px;font-family:var(--vp-font-sans);font-size:var(--vp-text-sm);color:var(--vp-text-muted)}\n"] }]
|
|
9732
11332
|
}], propDecorators: { points: [{
|
|
9733
11333
|
type: Input
|
|
9734
11334
|
}], limit: [{
|
|
@@ -9741,6 +11341,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
9741
11341
|
type: Input
|
|
9742
11342
|
}], emptyLabel: [{
|
|
9743
11343
|
type: Input
|
|
11344
|
+
}], height: [{
|
|
11345
|
+
type: Input
|
|
11346
|
+
}], limitTone: [{
|
|
11347
|
+
type: Input
|
|
9744
11348
|
}] } });
|
|
9745
11349
|
|
|
9746
11350
|
/**
|
|
@@ -12163,5 +13767,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
12163
13767
|
* Generated bundle index. Do not edit.
|
|
12164
13768
|
*/
|
|
12165
13769
|
|
|
12166
|
-
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_FEEDBACK, VP_FEEDBACK_LABELS_TR, 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, VP_USERBACK_LOAD_TIMEOUT_MS, VP_USERBACK_SCRIPT_URL, VirusisUiModule, VpAnonTokenInterceptor, VpAppKeyInterceptor, VpAppPromoComponent, VpAppStoreEntryComponent, VpAppealFormComponent, VpAuthTokenInterceptor, VpBannerComponent, VpBreadcrumbComponent, VpButtonComponent, VpCaptchaInterceptor, VpCommandPaletteComponent, VpConfirmComponent, VpConnectivityService, VpContextToolbarComponent, VpCsrfInterceptor, VpDangerZoneComponent, VpDataTableComponent, VpDeepHealthService, VpDetectionRowComponent, VpDialogComponent, VpDrawerComponent, VpEngineResultComponent, VpFeedbackEntryComponent, VpFieldComponent, VpGlobalLayersComponent, VpHashValueComponent, VpHttpIdsInterceptor, VpIconSpriteService, VpIocListComponent, VpKpiCardComponent, VpMaintenanceInterceptor, VpMenuButtonComponent, VpNotificationIslandComponent, VpNotificationTriggerComponent, VpPageHeaderComponent, VpProductSwitcherComponent, VpRateLimitInterceptor, VpRateLimitService, VpRiskScoreComponent, VpSaveBarComponent, VpScanTimelineComponent, VpScoreBreakdownComponent, VpScoreRingComponent, VpSearchTriggerComponent, VpSettingsShellComponent, VpSeverityBadgeComponent, VpShareTokenInterceptor, VpShellComponent, VpSidebarComponent, VpSidebarToggleComponent, VpSkipLinkComponent, VpStateComponent, VpThemeControlComponent, VpThemeService, VpToastComponent, VpToastService, VpTopbarComponent, VpUsageChartComponent, VpUserMenuComponent, VpUserbackLoader, VpVerdictComponent, VpWithCredentialsInterceptor, checkBoth, collectRxBindings, conversionOfferFor, createFocusTrap, createLocalStoragePrefsStore, createLocalStorageViewStore, createScanAnnouncer, createTabSync, currentOrigin, defaultConditionDescriber, defineStaticMenu, feedbackDestination, 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, userbackCustomData, validateStaticMenu, validateVpRedirectUri, validateVpScanDateRange, verdictFor, visibleColumns, vpAnonIdFrom, vpAuthChainSlotOf, vpAuthGuard, vpAuthHealthGuard, vpAutoDismissMs, vpDeviceFingerprint, vpDeviceRawData, vpEnsureGuid, vpIsIosSafari, vpIslandIsCritical, vpKey, vpOwnershipGuard, vpParseRetryAfter, vpQuotaGuard, vpResolveTrackingId, vpStoreUrlFor, vpUnsavedChangesGuard };
|
|
13770
|
+
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_FEEDBACK, VP_FEEDBACK_LABELS_TR, 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, VP_USERBACK_LOAD_TIMEOUT_MS, VP_USERBACK_SCRIPT_URL, VirusisUiModule, VpAnonTokenInterceptor, VpAppKeyInterceptor, VpAppPromoComponent, VpAppStoreEntryComponent, VpAppealFormComponent, VpAuthTokenInterceptor, VpBannerComponent, VpBreadcrumbComponent, VpButtonComponent, VpCaptchaInterceptor, VpChipPickerComponent, VpCodeBlockComponent, VpCommandPaletteComponent, VpConfirmComponent, VpConnectivityService, VpContextToolbarComponent, VpControlComponent, VpCopyButtonComponent, VpCsrfInterceptor, VpDangerZoneComponent, VpDataTableComponent, VpDeepHealthService, VpDetectionRowComponent, VpDialogComponent, VpDocLinkComponent, VpDrawerComponent, VpEngineResultComponent, VpFeedRowComponent, VpFeedbackEntryComponent, VpFieldComponent, VpGlobalLayersComponent, VpHashValueComponent, VpHttpIdsInterceptor, VpIconSpriteService, VpIocListComponent, VpKpiCardComponent, VpKvRowComponent, VpLiveChipComponent, VpMaintenanceInterceptor, VpMenuButtonComponent, VpMixMeterComponent, VpNoteComponent, VpNotificationIslandComponent, VpNotificationTriggerComponent, VpPageHeaderComponent, VpPanelComponent, VpProductSwitcherComponent, VpRankedBarsComponent, VpRateLimitInterceptor, VpRateLimitService, VpRiskScoreComponent, VpSaveBarComponent, VpScanTimelineComponent, VpScoreBreakdownComponent, VpScoreRingComponent, VpSearchTriggerComponent, VpSegmentedComponent, VpSettingsShellComponent, VpSeverityBadgeComponent, VpShareBarComponent, VpShareTokenInterceptor, VpShellComponent, VpSidebarComponent, VpSidebarToggleComponent, VpSkipLinkComponent, VpStackedBarsComponent, VpStateComponent, VpStatusMarkComponent, VpSwitchRowComponent, VpThemeControlComponent, VpThemeService, VpTipDirective, VpToastComponent, VpToastService, VpTopbarComponent, VpUsageChartComponent, VpUserMenuComponent, VpUserbackLoader, VpVerbBadgeComponent, VpVerdictComponent, VpWithCredentialsInterceptor, checkBoth, collectRxBindings, conversionOfferFor, createFocusTrap, createLocalStoragePrefsStore, createLocalStorageViewStore, createScanAnnouncer, createTabSync, currentOrigin, defaultConditionDescriber, defineStaticMenu, feedbackDestination, findEmptyValues, findMissingKeys, findView, flattenKeys, focusableElements, formatCountdown, formatParityReport, highlightCode, isConditionMet, isPartialFailure, isSameOrigin, isUpStatus, mergeStageUpdate, messageFor, nextPrompt, provideVirusisApiClient, provideVpAuthAnon, provideVpAuthCore, provideVpConsoleGuards, reconcileColumnOrder, registerUnsavedChangesPrompt, removeView, resolveMenuConditions, resolveTrialRedirect, rxServiceKeyOf, shouldSurface, toCsv, toDeepState, toMenuItems, unmatchedRxClasses, upsertView, userbackCustomData, validateStaticMenu, validateVpRedirectUri, validateVpScanDateRange, verdictFor, visibleColumns, vpAnonIdFrom, vpAuthChainSlotOf, vpAuthGuard, vpAuthHealthGuard, vpAutoDismissMs, vpDeviceFingerprint, vpDeviceRawData, vpEnsureGuid, vpIsIosSafari, vpIslandIsCritical, vpKey, vpOwnershipGuard, vpParseRetryAfter, vpQuotaGuard, vpResolveTrackingId, vpStoreUrlFor, vpUnsavedChangesGuard };
|
|
12167
13771
|
//# sourceMappingURL=virusis-angular-ui.mjs.map
|