@virusis/angular-ui 0.2.6 → 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 +1026 -47
- package/fesm2022/virusis-angular-ui.mjs.map +1 -1
- package/index.d.ts +246 -10
- 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;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-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;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-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: [{
|
|
@@ -8119,6 +8203,14 @@ class VpKpiCardComponent {
|
|
|
8119
8203
|
this.progress = null;
|
|
8120
8204
|
this.progressTone = 'ok';
|
|
8121
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;
|
|
8122
8214
|
}
|
|
8123
8215
|
get progressPercent() {
|
|
8124
8216
|
const p = this.progress;
|
|
@@ -8147,14 +8239,21 @@ class VpKpiCardComponent {
|
|
|
8147
8239
|
}
|
|
8148
8240
|
}
|
|
8149
8241
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpKpiCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8150
|
-
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" }, 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: `
|
|
8151
8243
|
<div class="vp-kpi">
|
|
8152
|
-
<span class="vp-kpi__label">{{ label }}</span>
|
|
8244
|
+
<span class="vp-kpi__label" [attr.data-case]="labelCase || null">{{ label }}</span>
|
|
8153
8245
|
|
|
8154
8246
|
@if (value === null || value === undefined) {
|
|
8155
8247
|
<span class="vp-kpi__empty" data-vp-kpi-empty>{{ emptyLabel }}</span>
|
|
8156
8248
|
} @else {
|
|
8157
|
-
|
|
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
|
+
}
|
|
8158
8257
|
|
|
8159
8258
|
@if (change !== null && change !== undefined) {
|
|
8160
8259
|
<span
|
|
@@ -8168,6 +8267,10 @@ class VpKpiCardComponent {
|
|
|
8168
8267
|
</span>
|
|
8169
8268
|
}
|
|
8170
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
|
+
|
|
8171
8274
|
@if (progressPercent !== null) {
|
|
8172
8275
|
<span
|
|
8173
8276
|
class="vp-kpi__progress"
|
|
@@ -8186,18 +8289,25 @@ class VpKpiCardComponent {
|
|
|
8186
8289
|
<span class="vp-kpi__hint">{{ hint }}</span>
|
|
8187
8290
|
}
|
|
8188
8291
|
</div>
|
|
8189
|
-
`, 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__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__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 }); }
|
|
8190
8293
|
}
|
|
8191
8294
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpKpiCardComponent, decorators: [{
|
|
8192
8295
|
type: Component,
|
|
8193
8296
|
args: [{ selector: 'vp-kpi-card', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
8194
8297
|
<div class="vp-kpi">
|
|
8195
|
-
<span class="vp-kpi__label">{{ label }}</span>
|
|
8298
|
+
<span class="vp-kpi__label" [attr.data-case]="labelCase || null">{{ label }}</span>
|
|
8196
8299
|
|
|
8197
8300
|
@if (value === null || value === undefined) {
|
|
8198
8301
|
<span class="vp-kpi__empty" data-vp-kpi-empty>{{ emptyLabel }}</span>
|
|
8199
8302
|
} @else {
|
|
8200
|
-
|
|
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
|
+
}
|
|
8201
8311
|
|
|
8202
8312
|
@if (change !== null && change !== undefined) {
|
|
8203
8313
|
<span
|
|
@@ -8211,6 +8321,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
8211
8321
|
</span>
|
|
8212
8322
|
}
|
|
8213
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
|
+
|
|
8214
8328
|
@if (progressPercent !== null) {
|
|
8215
8329
|
<span
|
|
8216
8330
|
class="vp-kpi__progress"
|
|
@@ -8229,7 +8343,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
8229
8343
|
<span class="vp-kpi__hint">{{ hint }}</span>
|
|
8230
8344
|
}
|
|
8231
8345
|
</div>
|
|
8232
|
-
`, 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__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__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"] }]
|
|
8233
8347
|
}], propDecorators: { label: [{
|
|
8234
8348
|
type: Input,
|
|
8235
8349
|
args: [{ required: true }]
|
|
@@ -8245,6 +8359,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
8245
8359
|
type: Input
|
|
8246
8360
|
}], emptyLabel: [{
|
|
8247
8361
|
type: Input
|
|
8362
|
+
}], unit: [{
|
|
8363
|
+
type: Input
|
|
8364
|
+
}], delta: [{
|
|
8365
|
+
type: Input
|
|
8366
|
+
}], labelCase: [{
|
|
8367
|
+
type: Input
|
|
8368
|
+
}], tone: [{
|
|
8369
|
+
type: Input
|
|
8248
8370
|
}] } });
|
|
8249
8371
|
|
|
8250
8372
|
/**
|
|
@@ -8533,6 +8655,22 @@ function toneFor(value, warnAt, criticalAt) {
|
|
|
8533
8655
|
return 'warn';
|
|
8534
8656
|
return 'ok';
|
|
8535
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
|
+
}
|
|
8536
8674
|
|
|
8537
8675
|
const VIEW$1 = { w: 320, h: 120, padL: 3, padR: 3, padT: 8, padB: 6 };
|
|
8538
8676
|
const INNER_W = VIEW$1.w - VIEW$1.padL - VIEW$1.padR;
|
|
@@ -8557,19 +8695,35 @@ class VpStackedBarsComponent {
|
|
|
8557
8695
|
this.emptyLabel = '';
|
|
8558
8696
|
/** Her N. noktaya eksen etiketi yazılır (kalabalığı tüketici ayarlar). */
|
|
8559
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());
|
|
8560
8714
|
}
|
|
8561
8715
|
get step() {
|
|
8562
8716
|
return Number.isFinite(this.labelEvery) && this.labelEvery >= 1 ? Math.floor(this.labelEvery) : 1;
|
|
8563
8717
|
}
|
|
8564
8718
|
get top() {
|
|
8565
|
-
const totals = this.
|
|
8719
|
+
const totals = this.shown.map((p) => this.safe(p.ok) + this.safe(p.error));
|
|
8566
8720
|
return niceMax(this.limit === null ? totals : [...totals, this.limit]);
|
|
8567
8721
|
}
|
|
8568
8722
|
get bars() {
|
|
8569
8723
|
const top = this.top;
|
|
8570
|
-
const slot = INNER_W / this.
|
|
8724
|
+
const slot = INNER_W / this.shown.length;
|
|
8571
8725
|
const width = slot * BAR_FILL;
|
|
8572
|
-
return this.
|
|
8726
|
+
return this.shown.map((p, i) => {
|
|
8573
8727
|
const okHeight = scale(p.ok, top) * INNER_H;
|
|
8574
8728
|
const errorHeight = scale(p.error, top) * INNER_H;
|
|
8575
8729
|
return {
|
|
@@ -8592,10 +8746,22 @@ class VpStackedBarsComponent {
|
|
|
8592
8746
|
return Number.isFinite(n) && n > 0 ? n : 0;
|
|
8593
8747
|
}
|
|
8594
8748
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpStackedBarsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8595
|
-
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" }, ngImport: i0, template: `
|
|
8596
|
-
@if (
|
|
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) {
|
|
8597
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
|
+
}
|
|
8598
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
|
+
}
|
|
8764
|
+
}
|
|
8599
8765
|
<line class="vp-stacked__axis" [attr.x1]="3" [attr.x2]="317" [attr.y1]="114" [attr.y2]="114" />
|
|
8600
8766
|
@for (bar of bars; track $index) {
|
|
8601
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" />
|
|
@@ -8605,8 +8771,8 @@ class VpStackedBarsComponent {
|
|
|
8605
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" />
|
|
8606
8772
|
}
|
|
8607
8773
|
</svg>
|
|
8608
|
-
<div class="vp-stacked__labels" aria-hidden="true" [style.grid-template-columns]="'repeat(' +
|
|
8609
|
-
@for (p of
|
|
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) {
|
|
8610
8776
|
@if (i % step === 0) {
|
|
8611
8777
|
<span class="vp-stacked__label" data-vp-stacked-label>{{ p.label }}</span>
|
|
8612
8778
|
} @else {
|
|
@@ -8618,14 +8784,26 @@ class VpStackedBarsComponent {
|
|
|
8618
8784
|
} @else {
|
|
8619
8785
|
<span class="vp-stacked__empty" data-vp-stacked-empty>{{ emptyLabel }}</span>
|
|
8620
8786
|
}
|
|
8621
|
-
`, 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{stroke:var(--vp-border-subtle);stroke-width:1;vector-effect:non-scaling-stroke}.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 }); }
|
|
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 }); }
|
|
8622
8788
|
}
|
|
8623
8789
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpStackedBarsComponent, decorators: [{
|
|
8624
8790
|
type: Component,
|
|
8625
8791
|
args: [{ selector: 'vp-stacked-bars', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
8626
|
-
@if (
|
|
8792
|
+
@if (shown.length) {
|
|
8627
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
|
+
}
|
|
8628
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
|
+
}
|
|
8806
|
+
}
|
|
8629
8807
|
<line class="vp-stacked__axis" [attr.x1]="3" [attr.x2]="317" [attr.y1]="114" [attr.y2]="114" />
|
|
8630
8808
|
@for (bar of bars; track $index) {
|
|
8631
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" />
|
|
@@ -8635,8 +8813,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
8635
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" />
|
|
8636
8814
|
}
|
|
8637
8815
|
</svg>
|
|
8638
|
-
<div class="vp-stacked__labels" aria-hidden="true" [style.grid-template-columns]="'repeat(' +
|
|
8639
|
-
@for (p of
|
|
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) {
|
|
8640
8818
|
@if (i % step === 0) {
|
|
8641
8819
|
<span class="vp-stacked__label" data-vp-stacked-label>{{ p.label }}</span>
|
|
8642
8820
|
} @else {
|
|
@@ -8648,7 +8826,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
8648
8826
|
} @else {
|
|
8649
8827
|
<span class="vp-stacked__empty" data-vp-stacked-empty>{{ emptyLabel }}</span>
|
|
8650
8828
|
}
|
|
8651
|
-
`, 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{stroke:var(--vp-border-subtle);stroke-width:1;vector-effect:non-scaling-stroke}.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"] }]
|
|
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"] }]
|
|
8652
8830
|
}], propDecorators: { points: [{
|
|
8653
8831
|
type: Input
|
|
8654
8832
|
}], limit: [{
|
|
@@ -8659,6 +8837,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
8659
8837
|
type: Input
|
|
8660
8838
|
}], labelEvery: [{
|
|
8661
8839
|
type: Input
|
|
8840
|
+
}], grid: [{
|
|
8841
|
+
type: Input
|
|
8842
|
+
}], yAxis: [{
|
|
8843
|
+
type: Input
|
|
8844
|
+
}], merge: [{
|
|
8845
|
+
type: Input
|
|
8662
8846
|
}] } });
|
|
8663
8847
|
|
|
8664
8848
|
/**
|
|
@@ -8833,7 +9017,7 @@ class VpMixMeterComponent {
|
|
|
8833
9017
|
} @else {
|
|
8834
9018
|
<span class="vp-mix__empty" data-vp-mix-empty>{{ emptyLabel }}</span>
|
|
8835
9019
|
}
|
|
8836
|
-
`, 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:
|
|
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 }); }
|
|
8837
9021
|
}
|
|
8838
9022
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpMixMeterComponent, decorators: [{
|
|
8839
9023
|
type: Component,
|
|
@@ -8858,7 +9042,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
8858
9042
|
} @else {
|
|
8859
9043
|
<span class="vp-mix__empty" data-vp-mix-empty>{{ emptyLabel }}</span>
|
|
8860
9044
|
}
|
|
8861
|
-
`, 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:
|
|
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"] }]
|
|
8862
9046
|
}], propDecorators: { parts: [{
|
|
8863
9047
|
type: Input
|
|
8864
9048
|
}], emptyLabel: [{
|
|
@@ -9023,7 +9207,7 @@ class VpChipPickerComponent {
|
|
|
9023
9207
|
</button>
|
|
9024
9208
|
}
|
|
9025
9209
|
</div>
|
|
9026
|
-
`, 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-
|
|
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 }); }
|
|
9027
9211
|
}
|
|
9028
9212
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpChipPickerComponent, decorators: [{
|
|
9029
9213
|
type: Component,
|
|
@@ -9041,7 +9225,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
9041
9225
|
</button>
|
|
9042
9226
|
}
|
|
9043
9227
|
</div>
|
|
9044
|
-
`, 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-
|
|
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"] }]
|
|
9045
9229
|
}], propDecorators: { chips: [{
|
|
9046
9230
|
type: Input
|
|
9047
9231
|
}], value: [{
|
|
@@ -9052,6 +9236,753 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
9052
9236
|
type: Output
|
|
9053
9237
|
}] } });
|
|
9054
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
|
+
|
|
9055
9986
|
/**
|
|
9056
9987
|
* Ayarlar kabugu — paket 07 · G1.
|
|
9057
9988
|
*
|
|
@@ -9406,6 +10337,18 @@ const COMPONENTS = [
|
|
|
9406
10337
|
VpSegmentedComponent,
|
|
9407
10338
|
VpChipPickerComponent,
|
|
9408
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,
|
|
9409
10352
|
];
|
|
9410
10353
|
class VirusisUiModule {
|
|
9411
10354
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VirusisUiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
@@ -9436,7 +10379,19 @@ class VirusisUiModule {
|
|
|
9436
10379
|
VpMixMeterComponent,
|
|
9437
10380
|
VpSegmentedComponent,
|
|
9438
10381
|
VpChipPickerComponent,
|
|
9439
|
-
VpVerbBadgeComponent
|
|
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,
|
|
9440
10395
|
VpShellComponent,
|
|
9441
10396
|
VpPageHeaderComponent,
|
|
9442
10397
|
VpBannerComponent,
|
|
@@ -9463,7 +10418,19 @@ class VirusisUiModule {
|
|
|
9463
10418
|
VpMixMeterComponent,
|
|
9464
10419
|
VpSegmentedComponent,
|
|
9465
10420
|
VpChipPickerComponent,
|
|
9466
|
-
VpVerbBadgeComponent
|
|
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] }); }
|
|
9467
10434
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VirusisUiModule }); }
|
|
9468
10435
|
}
|
|
9469
10436
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VirusisUiModule, decorators: [{
|
|
@@ -10219,6 +11186,10 @@ class VpUsageChartComponent {
|
|
|
10219
11186
|
/** Limit biriminin kısa adı (aria cümlesinde). */
|
|
10220
11187
|
this.unit = '';
|
|
10221
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;
|
|
10222
11193
|
this.view = VIEW;
|
|
10223
11194
|
}
|
|
10224
11195
|
get geo() { return VIEW; }
|
|
@@ -10283,7 +11254,7 @@ class VpUsageChartComponent {
|
|
|
10283
11254
|
return `${this.label}: ${current}${limit}${note}`;
|
|
10284
11255
|
}
|
|
10285
11256
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpUsageChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10286
|
-
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: `
|
|
10287
11258
|
<div
|
|
10288
11259
|
class="vp-usage-chart"
|
|
10289
11260
|
data-vp-usage-chart
|
|
@@ -10295,6 +11266,7 @@ class VpUsageChartComponent {
|
|
|
10295
11266
|
aria-hidden="true"
|
|
10296
11267
|
focusable="false"
|
|
10297
11268
|
preserveAspectRatio="none"
|
|
11269
|
+
[style.height.px]="height"
|
|
10298
11270
|
[attr.viewBox]="viewBox">
|
|
10299
11271
|
<path class="vp-usage-chart__area" data-vp-usage-area [attr.d]="areaPath" />
|
|
10300
11272
|
<path class="vp-usage-chart__line" data-vp-usage-line fill="none" [attr.d]="linePath" />
|
|
@@ -10302,6 +11274,7 @@ class VpUsageChartComponent {
|
|
|
10302
11274
|
<line
|
|
10303
11275
|
class="vp-usage-chart__limit"
|
|
10304
11276
|
data-vp-usage-limit
|
|
11277
|
+
[attr.data-tone]="limitTone || null"
|
|
10305
11278
|
stroke-dasharray="4 4"
|
|
10306
11279
|
[attr.x1]="geo.padL"
|
|
10307
11280
|
[attr.x2]="view.w - geo.padR"
|
|
@@ -10316,7 +11289,7 @@ class VpUsageChartComponent {
|
|
|
10316
11289
|
<span class="vp-usage-chart__empty" data-vp-usage-empty>{{ emptyLabel }}</span>
|
|
10317
11290
|
}
|
|
10318
11291
|
</div>
|
|
10319
|
-
`, 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 }); }
|
|
10320
11293
|
}
|
|
10321
11294
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpUsageChartComponent, decorators: [{
|
|
10322
11295
|
type: Component,
|
|
@@ -10332,6 +11305,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
10332
11305
|
aria-hidden="true"
|
|
10333
11306
|
focusable="false"
|
|
10334
11307
|
preserveAspectRatio="none"
|
|
11308
|
+
[style.height.px]="height"
|
|
10335
11309
|
[attr.viewBox]="viewBox">
|
|
10336
11310
|
<path class="vp-usage-chart__area" data-vp-usage-area [attr.d]="areaPath" />
|
|
10337
11311
|
<path class="vp-usage-chart__line" data-vp-usage-line fill="none" [attr.d]="linePath" />
|
|
@@ -10339,6 +11313,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
10339
11313
|
<line
|
|
10340
11314
|
class="vp-usage-chart__limit"
|
|
10341
11315
|
data-vp-usage-limit
|
|
11316
|
+
[attr.data-tone]="limitTone || null"
|
|
10342
11317
|
stroke-dasharray="4 4"
|
|
10343
11318
|
[attr.x1]="geo.padL"
|
|
10344
11319
|
[attr.x2]="view.w - geo.padR"
|
|
@@ -10353,7 +11328,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
10353
11328
|
<span class="vp-usage-chart__empty" data-vp-usage-empty>{{ emptyLabel }}</span>
|
|
10354
11329
|
}
|
|
10355
11330
|
</div>
|
|
10356
|
-
`, 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"] }]
|
|
10357
11332
|
}], propDecorators: { points: [{
|
|
10358
11333
|
type: Input
|
|
10359
11334
|
}], limit: [{
|
|
@@ -10366,6 +11341,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
10366
11341
|
type: Input
|
|
10367
11342
|
}], emptyLabel: [{
|
|
10368
11343
|
type: Input
|
|
11344
|
+
}], height: [{
|
|
11345
|
+
type: Input
|
|
11346
|
+
}], limitTone: [{
|
|
11347
|
+
type: Input
|
|
10369
11348
|
}] } });
|
|
10370
11349
|
|
|
10371
11350
|
/**
|
|
@@ -12788,5 +13767,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
12788
13767
|
* Generated bundle index. Do not edit.
|
|
12789
13768
|
*/
|
|
12790
13769
|
|
|
12791
|
-
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, VpCommandPaletteComponent, VpConfirmComponent, VpConnectivityService, VpContextToolbarComponent, VpCsrfInterceptor, VpDangerZoneComponent, VpDataTableComponent, VpDeepHealthService, VpDetectionRowComponent, VpDialogComponent, VpDrawerComponent, VpEngineResultComponent, VpFeedbackEntryComponent, VpFieldComponent, VpGlobalLayersComponent, VpHashValueComponent, VpHttpIdsInterceptor, VpIconSpriteService, VpIocListComponent, VpKpiCardComponent, VpMaintenanceInterceptor, VpMenuButtonComponent, VpMixMeterComponent, VpNotificationIslandComponent, VpNotificationTriggerComponent, VpPageHeaderComponent, VpProductSwitcherComponent, VpRankedBarsComponent, VpRateLimitInterceptor, VpRateLimitService, VpRiskScoreComponent, VpSaveBarComponent, VpScanTimelineComponent, VpScoreBreakdownComponent, VpScoreRingComponent, VpSearchTriggerComponent, VpSegmentedComponent, VpSettingsShellComponent, VpSeverityBadgeComponent, VpShareBarComponent, VpShareTokenInterceptor, VpShellComponent, VpSidebarComponent, VpSidebarToggleComponent, VpSkipLinkComponent, VpStackedBarsComponent, VpStateComponent, VpThemeControlComponent, VpThemeService, 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, 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 };
|
|
12792
13771
|
//# sourceMappingURL=virusis-angular-ui.mjs.map
|