@virusis/angular-ui 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5269,19 +5269,19 @@ class VpProductSwitcherComponent {
|
|
|
5269
5269
|
}
|
|
5270
5270
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpProductSwitcherComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5271
5271
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: VpProductSwitcherComponent, isStandalone: true, selector: "vp-product-switcher", inputs: { products: "products", currentId: "currentId", title: "title", panelId: "panelId" }, outputs: { selected: "selected" }, ngImport: i0, template: `
|
|
5272
|
+
<!-- customer-console/010 R-4b: prototip .context — nokta, ad, aşağı ok; tam genişlik kutu. -->
|
|
5272
5273
|
<button
|
|
5273
|
-
pButton
|
|
5274
5274
|
type="button"
|
|
5275
|
-
|
|
5276
|
-
severity="secondary"
|
|
5275
|
+
class="vp-product-switcher__trigger"
|
|
5277
5276
|
data-vp-product-switcher
|
|
5278
|
-
icon="pi pi-th-large"
|
|
5279
|
-
iconPos="left"
|
|
5280
|
-
[label]="currentLabel"
|
|
5281
5277
|
[attr.aria-label]="ariaLabel"
|
|
5282
5278
|
[attr.aria-haspopup]="true"
|
|
5283
5279
|
[attr.aria-controls]="panelId"
|
|
5284
|
-
(click)="panel.toggle($event)"
|
|
5280
|
+
(click)="panel.toggle($event)">
|
|
5281
|
+
<span class="vp-product-switcher__dot" data-vp-product-switcher-dot aria-hidden="true"></span>
|
|
5282
|
+
<span class="vp-product-switcher__label" data-vp-product-switcher-label>{{ currentLabel }}</span>
|
|
5283
|
+
<i class="pi pi-chevron-down vp-product-switcher__chevron" data-vp-product-switcher-chevron aria-hidden="true"></i>
|
|
5284
|
+
</button>
|
|
5285
5285
|
|
|
5286
5286
|
<p-popover #panel [id]="panelId">
|
|
5287
5287
|
<ul class="vp-product-switcher__list" [attr.aria-label]="title">
|
|
@@ -5302,24 +5302,24 @@ class VpProductSwitcherComponent {
|
|
|
5302
5302
|
}
|
|
5303
5303
|
</ul>
|
|
5304
5304
|
</p-popover>
|
|
5305
|
-
`, isInline: true, styles: [".vp-product-switcher__list{margin:0;padding:0;list-style:none;min-width:16rem}.vp-product-switcher__item{display:flex;flex-direction:column;gap:.125rem;width:100%;padding:var(--vp-space-2, .5rem) var(--vp-space-3, .75rem);border:0;border-radius:var(--vp-radius-sm, 4px);background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}.vp-product-switcher__item:hover{background:var(--vp-surface-sunken, #161b22)}.vp-product-switcher__item:focus-visible{outline:var(--vp-focus-width, 2px) solid var(--vp-focus-ring, #2f81f7);outline-offset:var(--vp-focus-offset, 2px)}.vp-product-switcher__item[aria-current] .vp-product-switcher__name{font-weight:var(--vp-weight-semibold, 600)}.vp-product-switcher__item[aria-current]{background:var(--vp-surface-sunken, #161b22)}.vp-product-switcher__desc{font-size:var(--vp-font-size-xs, .75rem);color:var(--vp-text-muted, #8b949e)}\n"], dependencies: [{ kind: "ngmodule", type:
|
|
5305
|
+
`, isInline: true, styles: [":host{display:block}.vp-product-switcher__trigger{display:flex;align-items:center;gap:var(--vp-space-2);width:100%;padding:7px 10px;border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit;font-size:var(--vp-text-sm);text-align:left;cursor:pointer}.vp-product-switcher__trigger:hover{border-color:var(--vp-text-muted)}.vp-product-switcher__trigger:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-product-switcher__dot{flex:none;width:7px;height:7px;border-radius:2px;background:var(--vp-brand-line)}.vp-product-switcher__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vp-product-switcher__chevron{flex:none;font-size:12px;color:var(--vp-text-muted)}.vp-product-switcher__list{margin:0;padding:0;list-style:none;min-width:16rem}.vp-product-switcher__item{display:flex;flex-direction:column;gap:.125rem;width:100%;padding:var(--vp-space-2, .5rem) var(--vp-space-3, .75rem);border:0;border-radius:var(--vp-radius-sm, 4px);background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}.vp-product-switcher__item:hover{background:var(--vp-surface-sunken, #161b22)}.vp-product-switcher__item:focus-visible{outline:var(--vp-focus-width, 2px) solid var(--vp-focus-ring, #2f81f7);outline-offset:var(--vp-focus-offset, 2px)}.vp-product-switcher__item[aria-current] .vp-product-switcher__name{font-weight:var(--vp-weight-semibold, 600)}.vp-product-switcher__item[aria-current]{background:var(--vp-surface-sunken, #161b22)}.vp-product-switcher__desc{font-size:var(--vp-font-size-xs, .75rem);color:var(--vp-text-muted, #8b949e)}\n"], dependencies: [{ kind: "ngmodule", type: PopoverModule }, { kind: "component", type: i3.Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5306
5306
|
}
|
|
5307
5307
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: VpProductSwitcherComponent, decorators: [{
|
|
5308
5308
|
type: Component,
|
|
5309
|
-
args: [{ selector: 'vp-product-switcher', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
5309
|
+
args: [{ selector: 'vp-product-switcher', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [PopoverModule], template: `
|
|
5310
|
+
<!-- customer-console/010 R-4b: prototip .context — nokta, ad, aşağı ok; tam genişlik kutu. -->
|
|
5310
5311
|
<button
|
|
5311
|
-
pButton
|
|
5312
5312
|
type="button"
|
|
5313
|
-
|
|
5314
|
-
severity="secondary"
|
|
5313
|
+
class="vp-product-switcher__trigger"
|
|
5315
5314
|
data-vp-product-switcher
|
|
5316
|
-
icon="pi pi-th-large"
|
|
5317
|
-
iconPos="left"
|
|
5318
|
-
[label]="currentLabel"
|
|
5319
5315
|
[attr.aria-label]="ariaLabel"
|
|
5320
5316
|
[attr.aria-haspopup]="true"
|
|
5321
5317
|
[attr.aria-controls]="panelId"
|
|
5322
|
-
(click)="panel.toggle($event)"
|
|
5318
|
+
(click)="panel.toggle($event)">
|
|
5319
|
+
<span class="vp-product-switcher__dot" data-vp-product-switcher-dot aria-hidden="true"></span>
|
|
5320
|
+
<span class="vp-product-switcher__label" data-vp-product-switcher-label>{{ currentLabel }}</span>
|
|
5321
|
+
<i class="pi pi-chevron-down vp-product-switcher__chevron" data-vp-product-switcher-chevron aria-hidden="true"></i>
|
|
5322
|
+
</button>
|
|
5323
5323
|
|
|
5324
5324
|
<p-popover #panel [id]="panelId">
|
|
5325
5325
|
<ul class="vp-product-switcher__list" [attr.aria-label]="title">
|
|
@@ -5340,7 +5340,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
5340
5340
|
}
|
|
5341
5341
|
</ul>
|
|
5342
5342
|
</p-popover>
|
|
5343
|
-
`, styles: [".vp-product-switcher__list{margin:0;padding:0;list-style:none;min-width:16rem}.vp-product-switcher__item{display:flex;flex-direction:column;gap:.125rem;width:100%;padding:var(--vp-space-2, .5rem) var(--vp-space-3, .75rem);border:0;border-radius:var(--vp-radius-sm, 4px);background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}.vp-product-switcher__item:hover{background:var(--vp-surface-sunken, #161b22)}.vp-product-switcher__item:focus-visible{outline:var(--vp-focus-width, 2px) solid var(--vp-focus-ring, #2f81f7);outline-offset:var(--vp-focus-offset, 2px)}.vp-product-switcher__item[aria-current] .vp-product-switcher__name{font-weight:var(--vp-weight-semibold, 600)}.vp-product-switcher__item[aria-current]{background:var(--vp-surface-sunken, #161b22)}.vp-product-switcher__desc{font-size:var(--vp-font-size-xs, .75rem);color:var(--vp-text-muted, #8b949e)}\n"] }]
|
|
5343
|
+
`, styles: [":host{display:block}.vp-product-switcher__trigger{display:flex;align-items:center;gap:var(--vp-space-2);width:100%;padding:7px 10px;border:1px solid var(--vp-border-default);border-radius:var(--vp-radius-md);background:var(--vp-surface-base);color:var(--vp-text-primary);font:inherit;font-size:var(--vp-text-sm);text-align:left;cursor:pointer}.vp-product-switcher__trigger:hover{border-color:var(--vp-text-muted)}.vp-product-switcher__trigger:focus-visible{outline:var(--vp-focus-width) solid var(--vp-focus-ring);outline-offset:var(--vp-focus-offset)}.vp-product-switcher__dot{flex:none;width:7px;height:7px;border-radius:2px;background:var(--vp-brand-line)}.vp-product-switcher__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vp-product-switcher__chevron{flex:none;font-size:12px;color:var(--vp-text-muted)}.vp-product-switcher__list{margin:0;padding:0;list-style:none;min-width:16rem}.vp-product-switcher__item{display:flex;flex-direction:column;gap:.125rem;width:100%;padding:var(--vp-space-2, .5rem) var(--vp-space-3, .75rem);border:0;border-radius:var(--vp-radius-sm, 4px);background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}.vp-product-switcher__item:hover{background:var(--vp-surface-sunken, #161b22)}.vp-product-switcher__item:focus-visible{outline:var(--vp-focus-width, 2px) solid var(--vp-focus-ring, #2f81f7);outline-offset:var(--vp-focus-offset, 2px)}.vp-product-switcher__item[aria-current] .vp-product-switcher__name{font-weight:var(--vp-weight-semibold, 600)}.vp-product-switcher__item[aria-current]{background:var(--vp-surface-sunken, #161b22)}.vp-product-switcher__desc{font-size:var(--vp-font-size-xs, .75rem);color:var(--vp-text-muted, #8b949e)}\n"] }]
|
|
5344
5344
|
}], propDecorators: { products: [{
|
|
5345
5345
|
type: Input
|
|
5346
5346
|
}], currentId: [{
|