@coreui/angular-pro 5.1.1 → 5.1.2
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/esm2022/lib/avatar/avatar.component.mjs +17 -10
- package/esm2022/lib/footer/footer.component.mjs +5 -5
- package/esm2022/lib/header/header/header.component.mjs +3 -3
- package/esm2022/lib/sidebar/sidebar-nav/sidebar-nav.component.mjs +9 -11
- package/esm2022/lib/tabs/tab-content-ref.directive.mjs +15 -4
- package/esm2022/lib/tabs/tab-pane/tab-pane.component.mjs +10 -4
- package/fesm2022/coreui-angular-pro.mjs +52 -30
- package/fesm2022/coreui-angular-pro.mjs.map +1 -1
- package/lib/avatar/avatar.component.d.ts +6 -2
- package/lib/footer/footer.component.d.ts +1 -1
- package/lib/header/header/header.component.d.ts +1 -1
- package/lib/sidebar/sidebar-nav/sidebar-nav.component.d.ts +1 -1
- package/lib/tabs/tab-content-ref.directive.d.ts +3 -1
- package/lib/tabs/tab-pane/tab-pane.component.d.ts +2 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { inject, ElementRef, Directive, Input, TemplateRef, Renderer2, booleanAttribute, NgModule, HostBinding, Injectable, Component, EventEmitter, Output, ContentChildren, HostListener, DestroyRef, signal, effect, RendererFactory2, Pipe, computed, numberAttribute, ViewChildren, PLATFORM_ID, Inject, afterNextRender, AfterRenderPhase, ViewChild, forwardRef, ContentChild, Optional, ChangeDetectionStrategy, NgZone, ViewContainerRef, input, model, output, contentChildren, viewChildren, untracked } from '@angular/core';
|
|
3
|
-
import { NgTemplateOutlet, DOCUMENT, NgClass, AsyncPipe, NgStyle, isPlatformServer, isPlatformBrowser, formatDate, I18nPluralPipe, JsonPipe } from '@angular/common';
|
|
3
|
+
import { NgTemplateOutlet, DOCUMENT, NgClass, NgOptimizedImage, AsyncPipe, NgStyle, isPlatformServer, isPlatformBrowser, formatDate, I18nPluralPipe, JsonPipe } from '@angular/common';
|
|
4
4
|
import * as i1 from '@angular/animations';
|
|
5
5
|
import { animation, animate, style, useAnimation, trigger, state, transition, group, query } from '@angular/animations';
|
|
6
6
|
import { takeUntilDestroyed, toObservable, toSignal } from '@angular/core/rxjs-interop';
|
|
@@ -1296,6 +1296,11 @@ class AvatarComponent {
|
|
|
1296
1296
|
* @default 'md'
|
|
1297
1297
|
*/
|
|
1298
1298
|
this.size = 'md';
|
|
1299
|
+
/**
|
|
1300
|
+
* The alt attribute for the img element alternate text.
|
|
1301
|
+
* @type string
|
|
1302
|
+
*/
|
|
1303
|
+
this.alt = '';
|
|
1299
1304
|
}
|
|
1300
1305
|
get statusClass() {
|
|
1301
1306
|
return {
|
|
@@ -1312,22 +1317,24 @@ class AvatarComponent {
|
|
|
1312
1317
|
};
|
|
1313
1318
|
}
|
|
1314
1319
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: AvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1315
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.10", type: AvatarComponent, isStandalone: true, selector: "c-avatar", inputs: { color: "color", shape: "shape", size: "size", src: "src", status: "status", textColor: "textColor" }, host: { properties: { "class": "this.hostClasses" } }, hostDirectives: [{ directive: TextColorDirective, inputs: ["cTextColor", "textColor"] }], ngImport: i0, template: "<ng-container>\n <ng-container *ngTemplateOutlet=\"defaultImageTemplate\" />\n @if (!!status) {\n <span [ngClass]=\"statusClass\"></span>\n }\n</ng-container>\n\n<ng-template #defaultImageTemplate>\n @if (!!src) {\n <img [
|
|
1320
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.10", type: AvatarComponent, isStandalone: true, selector: "c-avatar", inputs: { color: "color", shape: "shape", size: "size", alt: "alt", src: "src", status: "status", textColor: "textColor" }, host: { properties: { "class": "this.hostClasses" } }, hostDirectives: [{ directive: TextColorDirective, inputs: ["cTextColor", "textColor"] }], ngImport: i0, template: "<ng-container>\n <ng-container *ngTemplateOutlet=\"defaultImageTemplate\" />\n @if (!!status) {\n <span [ngClass]=\"statusClass\"></span>\n }\n</ng-container>\n\n<ng-template #defaultImageTemplate>\n @if (!!src) {\n <img [ngSrc]=\"src\" fill class=\"avatar-img\" alt=\"{{alt}}\" />\n } @else {\n <ng-content />\n }\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }] }); }
|
|
1316
1321
|
}
|
|
1317
1322
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: AvatarComponent, decorators: [{
|
|
1318
1323
|
type: Component,
|
|
1319
|
-
args: [{ selector: 'c-avatar', standalone: true, imports: [
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
}],
|
|
1324
|
+
args: [{ selector: 'c-avatar', standalone: true, imports: [NgTemplateOutlet, NgClass, NgOptimizedImage], hostDirectives: [
|
|
1325
|
+
{
|
|
1326
|
+
directive: TextColorDirective,
|
|
1327
|
+
inputs: ['cTextColor: textColor']
|
|
1328
|
+
}
|
|
1329
|
+
], template: "<ng-container>\n <ng-container *ngTemplateOutlet=\"defaultImageTemplate\" />\n @if (!!status) {\n <span [ngClass]=\"statusClass\"></span>\n }\n</ng-container>\n\n<ng-template #defaultImageTemplate>\n @if (!!src) {\n <img [ngSrc]=\"src\" fill class=\"avatar-img\" alt=\"{{alt}}\" />\n } @else {\n <ng-content />\n }\n</ng-template>\n" }]
|
|
1330
|
+
}], propDecorators: { color: [{
|
|
1326
1331
|
type: Input
|
|
1327
1332
|
}], shape: [{
|
|
1328
1333
|
type: Input
|
|
1329
1334
|
}], size: [{
|
|
1330
1335
|
type: Input
|
|
1336
|
+
}], alt: [{
|
|
1337
|
+
type: Input
|
|
1331
1338
|
}], src: [{
|
|
1332
1339
|
type: Input
|
|
1333
1340
|
}], status: [{
|
|
@@ -8549,9 +8556,9 @@ class FooterComponent {
|
|
|
8549
8556
|
/**
|
|
8550
8557
|
* Default role for footer. [docs]
|
|
8551
8558
|
* @type string
|
|
8552
|
-
* @default '
|
|
8559
|
+
* @default 'contentinfo'
|
|
8553
8560
|
*/
|
|
8554
|
-
this.role = '
|
|
8561
|
+
this.role = 'contentinfo';
|
|
8555
8562
|
}
|
|
8556
8563
|
get getClasses() {
|
|
8557
8564
|
return {
|
|
@@ -8572,10 +8579,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
|
8572
8579
|
}], propDecorators: { position: [{
|
|
8573
8580
|
type: Input
|
|
8574
8581
|
}], role: [{
|
|
8575
|
-
type: Input
|
|
8576
|
-
}, {
|
|
8577
8582
|
type: HostBinding,
|
|
8578
8583
|
args: ['attr.role']
|
|
8584
|
+
}, {
|
|
8585
|
+
type: Input
|
|
8579
8586
|
}], getClasses: [{
|
|
8580
8587
|
type: HostBinding,
|
|
8581
8588
|
args: ['class']
|
|
@@ -8943,9 +8950,9 @@ class HeaderComponent {
|
|
|
8943
8950
|
/**
|
|
8944
8951
|
* Default role for header. [docs]
|
|
8945
8952
|
* @type string
|
|
8946
|
-
* @default '
|
|
8953
|
+
* @default 'banner'
|
|
8947
8954
|
*/
|
|
8948
|
-
this.role = '
|
|
8955
|
+
this.role = 'banner';
|
|
8949
8956
|
}
|
|
8950
8957
|
get getClasses() {
|
|
8951
8958
|
return !!this.container ? this.containerClasses : this.headerClasses;
|
|
@@ -15026,7 +15033,7 @@ class SidebarNavGroupComponent {
|
|
|
15026
15033
|
if (this.samePath(this.router.routerState.snapshot.url)) {
|
|
15027
15034
|
this.openGroup(true);
|
|
15028
15035
|
}
|
|
15029
|
-
this.navGroupSubscription = this.sidebarNavGroupService.sidebarNavGroupState$.subscribe(next => {
|
|
15036
|
+
this.navGroupSubscription = this.sidebarNavGroupService.sidebarNavGroupState$.subscribe((next) => {
|
|
15030
15037
|
if (this.dropdownMode === 'close' && next.sidebarNavGroup && next.sidebarNavGroup !== this) {
|
|
15031
15038
|
if (next.sidebarNavGroup.item.url.startsWith(this.item.url)) {
|
|
15032
15039
|
return;
|
|
@@ -15080,7 +15087,7 @@ class SidebarNavGroupComponent {
|
|
|
15080
15087
|
}
|
|
15081
15088
|
}
|
|
15082
15089
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: SidebarNavGroupComponent, deps: [{ token: i1$1.Router }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: SidebarNavHelper }, { token: SidebarNavGroupService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15083
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.10", type: SidebarNavGroupComponent, isStandalone: true, selector: "c-sidebar-nav-group", inputs: { item: "item", dropdownMode: "dropdownMode", show: "show", compact: ["compact", "compact", booleanAttribute] }, host: { properties: { "class": "this.hostClasses" } }, providers: [SidebarNavHelper, SidebarNavGroupService], viewQueries: [{ propertyName: "sidebarNav", first: true, predicate: i0.forwardRef(() => SidebarNavComponent), descendants: true, read: ElementRef }], ngImport: i0, template: "<a (click)=\"toggleGroup($event)\"\n [cHtmlAttr]=\"item.attributes\"\n class=\"nav-link nav-group-toggle\"\n href>\n <ng-container *ngTemplateOutlet=\"iconTemplate ; context: {$implicit: item}\" />\n <ng-container>{{ item.name }}</ng-container>\n @if (helper.hasBadge(item)) {\n <span [ngClass]=\"item | cSidebarNavBadge\">{{ item.badge.text }}</span>\n }\n</a>\n<c-sidebar-nav\n (@openClose.done)=\"onAnimationDone($event)\"\n (@openClose.start)=\"onAnimationStart($event)\"\n [@openClose]=\"open ? 'open' : 'closed'\"\n [compact]=\"compact\"\n [dropdownMode]=\"dropdownMode\"\n [groupItems]=\"true\"\n [navItems]=\"navItems\"\n [ngStyle]=\"display\"\n/>\n\n<ng-template #iconTemplate let-item>\n <!-- <i *ngIf=\"item?.icon\" [ngClass]=\"item | cSidebarNavIcon\"></i>-->\n @if (item?.icon) {\n <span class=\"nav-icon\">\n <span [ngClass]=\"item.icon ?? ''\"></span>\n </span>\n }\n @if (item?.iconComponent) {\n <svg\n [cIcon]=\"item.iconComponent?.content\"\n [customClasses]=\"item | cSidebarNavIcon\"\n [name]=\"item.iconComponent?.name\"\n />\n }\n @if (!item?.icon && !item?.iconComponent) {\n <span [ngClass]=\"item | cSidebarNavIcon\"></span>\n }\n</ng-template>\n", styles: [".nav-group-toggle{cursor:pointer}.nav-group-items{display:block}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(() => HtmlAttributesDirective), selector: "[cHtmlAttr]", inputs: ["cHtmlAttr"], exportAs: ["cHtmlAttr"] }, { kind: "directive", type: i0.forwardRef(() => IconDirective), selector: "svg[cIcon]", inputs: ["cIcon", "customClasses", "size", "title", "height", "width", "name", "viewBox", "xmlns", "pointer-events", "role"], exportAs: ["cIcon"] }, { kind: "directive", type: i0.forwardRef(() => NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i0.forwardRef(() => SidebarNavIconPipe), name: "cSidebarNavIcon" }, { kind: "pipe", type: i0.forwardRef(() => SidebarNavBadgePipe), name: "cSidebarNavBadge" }, { kind: "component", type: i0.forwardRef(() => SidebarNavComponent), selector: "c-sidebar-nav", inputs: ["navItems", "dropdownMode", "groupItems", "compact"] }, { kind: "directive", type: i0.forwardRef(() => NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }], animations: [
|
|
15090
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.10", type: SidebarNavGroupComponent, isStandalone: true, selector: "c-sidebar-nav-group", inputs: { item: "item", dropdownMode: "dropdownMode", show: "show", compact: ["compact", "compact", booleanAttribute] }, host: { properties: { "class": "this.hostClasses" } }, providers: [SidebarNavHelper, SidebarNavGroupService], viewQueries: [{ propertyName: "sidebarNav", first: true, predicate: i0.forwardRef(() => SidebarNavComponent), descendants: true, read: ElementRef }], ngImport: i0, template: "<a (click)=\"toggleGroup($event)\"\n [cHtmlAttr]=\"item.attributes\"\n class=\"nav-link nav-group-toggle\"\n href>\n <ng-container *ngTemplateOutlet=\"iconTemplate ; context: {$implicit: item}\" />\n <ng-container>{{ item.name }}</ng-container>\n @if (helper.hasBadge(item)) {\n <span [ngClass]=\"item | cSidebarNavBadge\">{{ item.badge.text }}</span>\n }\n</a>\n<c-sidebar-nav\n (@openClose.done)=\"onAnimationDone($event)\"\n (@openClose.start)=\"onAnimationStart($event)\"\n [@openClose]=\"open ? 'open' : 'closed'\"\n [compact]=\"compact\"\n [dropdownMode]=\"dropdownMode\"\n [groupItems]=\"true\"\n [navItems]=\"navItems\"\n [ngStyle]=\"display\"\n/>\n\n<ng-template #iconTemplate let-item>\n <!-- <i *ngIf=\"item?.icon\" [ngClass]=\"item | cSidebarNavIcon\"></i>-->\n @if (item?.icon) {\n <span class=\"nav-icon\">\n <span [ngClass]=\"item.icon ?? ''\"></span>\n </span>\n }\n @if (item?.iconComponent) {\n <svg\n [cIcon]=\"item.iconComponent?.content\"\n [customClasses]=\"item | cSidebarNavIcon\"\n [name]=\"item.iconComponent?.name\"\n />\n }\n @if (!item?.icon && !item?.iconComponent) {\n <span [ngClass]=\"item | cSidebarNavIcon\"></span>\n }\n</ng-template>\n", styles: [".nav-group-toggle{cursor:pointer}.nav-group-items{display:block}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(() => HtmlAttributesDirective), selector: "[cHtmlAttr]", inputs: ["cHtmlAttr"], exportAs: ["cHtmlAttr"] }, { kind: "directive", type: i0.forwardRef(() => IconDirective), selector: "svg[cIcon]", inputs: ["cIcon", "customClasses", "size", "title", "height", "width", "name", "viewBox", "xmlns", "pointer-events", "role"], exportAs: ["cIcon"] }, { kind: "directive", type: i0.forwardRef(() => NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i0.forwardRef(() => SidebarNavIconPipe), name: "cSidebarNavIcon" }, { kind: "pipe", type: i0.forwardRef(() => SidebarNavBadgePipe), name: "cSidebarNavBadge" }, { kind: "component", type: i0.forwardRef(() => SidebarNavComponent), selector: "c-sidebar-nav", inputs: ["navItems", "dropdownMode", "groupItems", "compact", "role"] }, { kind: "directive", type: i0.forwardRef(() => NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }], animations: [
|
|
15084
15091
|
trigger('openClose', [
|
|
15085
15092
|
state('open', style({
|
|
15086
15093
|
height: '*'
|
|
@@ -15088,9 +15095,7 @@ class SidebarNavGroupComponent {
|
|
|
15088
15095
|
state('closed', style({
|
|
15089
15096
|
height: '0px'
|
|
15090
15097
|
})),
|
|
15091
|
-
transition('open <=> closed', [
|
|
15092
|
-
animate('.15s ease')
|
|
15093
|
-
])
|
|
15098
|
+
transition('open <=> closed', [animate('.15s ease')])
|
|
15094
15099
|
])
|
|
15095
15100
|
] }); }
|
|
15096
15101
|
}
|
|
@@ -15113,9 +15118,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
|
15113
15118
|
state('closed', style({
|
|
15114
15119
|
height: '0px'
|
|
15115
15120
|
})),
|
|
15116
|
-
transition('open <=> closed', [
|
|
15117
|
-
animate('.15s ease')
|
|
15118
|
-
])
|
|
15121
|
+
transition('open <=> closed', [animate('.15s ease')])
|
|
15119
15122
|
])
|
|
15120
15123
|
], template: "<a (click)=\"toggleGroup($event)\"\n [cHtmlAttr]=\"item.attributes\"\n class=\"nav-link nav-group-toggle\"\n href>\n <ng-container *ngTemplateOutlet=\"iconTemplate ; context: {$implicit: item}\" />\n <ng-container>{{ item.name }}</ng-container>\n @if (helper.hasBadge(item)) {\n <span [ngClass]=\"item | cSidebarNavBadge\">{{ item.badge.text }}</span>\n }\n</a>\n<c-sidebar-nav\n (@openClose.done)=\"onAnimationDone($event)\"\n (@openClose.start)=\"onAnimationStart($event)\"\n [@openClose]=\"open ? 'open' : 'closed'\"\n [compact]=\"compact\"\n [dropdownMode]=\"dropdownMode\"\n [groupItems]=\"true\"\n [navItems]=\"navItems\"\n [ngStyle]=\"display\"\n/>\n\n<ng-template #iconTemplate let-item>\n <!-- <i *ngIf=\"item?.icon\" [ngClass]=\"item | cSidebarNavIcon\"></i>-->\n @if (item?.icon) {\n <span class=\"nav-icon\">\n <span [ngClass]=\"item.icon ?? ''\"></span>\n </span>\n }\n @if (item?.iconComponent) {\n <svg\n [cIcon]=\"item.iconComponent?.content\"\n [customClasses]=\"item | cSidebarNavIcon\"\n [name]=\"item.iconComponent?.name\"\n />\n }\n @if (!item?.icon && !item?.iconComponent) {\n <span [ngClass]=\"item | cSidebarNavIcon\"></span>\n }\n</ng-template>\n", styles: [".nav-group-toggle{cursor:pointer}.nav-group-items{display:block}\n"] }]
|
|
15121
15124
|
}], ctorParameters: () => [{ type: i1$1.Router }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: SidebarNavHelper }, { type: SidebarNavGroupService }], propDecorators: { item: [{
|
|
@@ -15148,7 +15151,7 @@ class SidebarNavComponent {
|
|
|
15148
15151
|
// get sidebarNavGroupItemsClass(): boolean {
|
|
15149
15152
|
// return !!this.groupItems;
|
|
15150
15153
|
// }
|
|
15151
|
-
this.role = '
|
|
15154
|
+
this.role = 'navigation';
|
|
15152
15155
|
this.navItemsArray = [];
|
|
15153
15156
|
}
|
|
15154
15157
|
get hostClasses() {
|
|
@@ -15168,7 +15171,7 @@ class SidebarNavComponent {
|
|
|
15168
15171
|
}
|
|
15169
15172
|
}
|
|
15170
15173
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: SidebarNavComponent, deps: [{ token: SidebarComponent, optional: true }, { token: SidebarNavHelper }, { token: i1$1.Router }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: SidebarService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15171
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.10", type: SidebarNavComponent, isStandalone: true, selector: "c-sidebar-nav", inputs: { navItems: "navItems", dropdownMode: "dropdownMode", groupItems: ["groupItems", "groupItems", booleanAttribute], compact: ["compact", "compact", booleanAttribute] }, host: { properties: { "class": "this.hostClasses", "attr.role": "this.role" } }, usesOnChanges: true, ngImport: i0, template: "@for (item of navItemsArray; track item) {\n @switch (helper.itemType(item)) {\n @case ('group') {\n <c-sidebar-nav-group\n #rla=\"routerLinkActive\"\n [dropdownMode]=\"dropdownMode\"\n [item]=\"item\"\n [ngClass]=\"item | cSidebarNavItemClass\"\n [routerLinkActiveOptions]=\"{exact: true}\"\n routerLinkActive=\"show\"\n [compact]=\"compact\"\n />\n }\n @case ('divider') {\n <c-sidebar-nav-divider\n [cHtmlAttr]=\"item.attributes ?? {}\"\n [item]=\"item\"\n [ngClass]=\"item | cSidebarNavItemClass\"\n />\n }\n @case ('title') {\n <c-sidebar-nav-title\n [cHtmlAttr]=\"item.attributes ?? {}\"\n [item]=\"item\"\n [ngClass]=\"item | cSidebarNavItemClass\"\n />\n }\n @case ('label') {\n <c-sidebar-nav-label\n [item]=\"item\"\n [ngClass]=\"item | cSidebarNavItemClass\"\n />\n }\n @case ('empty') {\n <ng-container />\n }\n @default {\n <c-sidebar-nav-link\n (linkClick)=\"hideMobile()\"\n [item]=\"item\"\n [ngClass]=\"item | cSidebarNavItemClass\"\n />\n }\n }\n}\n<ng-content />\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: HtmlAttributesDirective, selector: "[cHtmlAttr]", inputs: ["cHtmlAttr"], exportAs: ["cHtmlAttr"] }, { kind: "component", type: SidebarNavLinkComponent, selector: "c-sidebar-nav-link", inputs: ["item"], outputs: ["linkClick"] }, { kind: "component", type: SidebarNavLabelComponent, selector: "c-sidebar-nav-label", inputs: ["item"] }, { kind: "component", type: SidebarNavTitleComponent, selector: "c-sidebar-nav-title", inputs: ["item"] }, { kind: "component", type: SidebarNavDividerComponent, selector: "c-sidebar-nav-divider", inputs: ["item"] }, { kind: "component", type: SidebarNavGroupComponent, selector: "c-sidebar-nav-group", inputs: ["item", "dropdownMode", "show", "compact"] }, { kind: "pipe", type: SidebarNavItemClassPipe, name: "cSidebarNavItemClass" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }] }); }
|
|
15174
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.10", type: SidebarNavComponent, isStandalone: true, selector: "c-sidebar-nav", inputs: { navItems: "navItems", dropdownMode: "dropdownMode", groupItems: ["groupItems", "groupItems", booleanAttribute], compact: ["compact", "compact", booleanAttribute], role: "role" }, host: { properties: { "class": "this.hostClasses", "attr.role": "this.role" } }, usesOnChanges: true, ngImport: i0, template: "@for (item of navItemsArray; track item) {\n @switch (helper.itemType(item)) {\n @case ('group') {\n <c-sidebar-nav-group\n #rla=\"routerLinkActive\"\n [dropdownMode]=\"dropdownMode\"\n [item]=\"item\"\n [ngClass]=\"item | cSidebarNavItemClass\"\n [routerLinkActiveOptions]=\"{exact: true}\"\n routerLinkActive=\"show\"\n [compact]=\"compact\"\n />\n }\n @case ('divider') {\n <c-sidebar-nav-divider\n [cHtmlAttr]=\"item.attributes ?? {}\"\n [item]=\"item\"\n [ngClass]=\"item | cSidebarNavItemClass\"\n />\n }\n @case ('title') {\n <c-sidebar-nav-title\n [cHtmlAttr]=\"item.attributes ?? {}\"\n [item]=\"item\"\n [ngClass]=\"item | cSidebarNavItemClass\"\n />\n }\n @case ('label') {\n <c-sidebar-nav-label\n [item]=\"item\"\n [ngClass]=\"item | cSidebarNavItemClass\"\n />\n }\n @case ('empty') {\n <ng-container />\n }\n @default {\n <c-sidebar-nav-link\n (linkClick)=\"hideMobile()\"\n [item]=\"item\"\n [ngClass]=\"item | cSidebarNavItemClass\"\n />\n }\n }\n}\n<ng-content />\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: HtmlAttributesDirective, selector: "[cHtmlAttr]", inputs: ["cHtmlAttr"], exportAs: ["cHtmlAttr"] }, { kind: "component", type: SidebarNavLinkComponent, selector: "c-sidebar-nav-link", inputs: ["item"], outputs: ["linkClick"] }, { kind: "component", type: SidebarNavLabelComponent, selector: "c-sidebar-nav-label", inputs: ["item"] }, { kind: "component", type: SidebarNavTitleComponent, selector: "c-sidebar-nav-title", inputs: ["item"] }, { kind: "component", type: SidebarNavDividerComponent, selector: "c-sidebar-nav-divider", inputs: ["item"] }, { kind: "component", type: SidebarNavGroupComponent, selector: "c-sidebar-nav-group", inputs: ["item", "dropdownMode", "show", "compact"] }, { kind: "pipe", type: SidebarNavItemClassPipe, name: "cSidebarNavItemClass" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }] }); }
|
|
15172
15175
|
}
|
|
15173
15176
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: SidebarNavComponent, decorators: [{
|
|
15174
15177
|
type: Component,
|
|
@@ -15201,6 +15204,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
|
15201
15204
|
}], role: [{
|
|
15202
15205
|
type: HostBinding,
|
|
15203
15206
|
args: ['attr.role']
|
|
15207
|
+
}, {
|
|
15208
|
+
type: Input
|
|
15204
15209
|
}] } });
|
|
15205
15210
|
|
|
15206
15211
|
class SidebarModule {
|
|
@@ -16802,6 +16807,7 @@ class TabPaneComponent {
|
|
|
16802
16807
|
this.changeDetectorRef = changeDetectorRef;
|
|
16803
16808
|
this.tabService = tabService;
|
|
16804
16809
|
this._active = false;
|
|
16810
|
+
this.role = 'tabpanel';
|
|
16805
16811
|
this.subscribeTabService();
|
|
16806
16812
|
}
|
|
16807
16813
|
set active(value) {
|
|
@@ -16829,7 +16835,7 @@ class TabPaneComponent {
|
|
|
16829
16835
|
if (subscribe) {
|
|
16830
16836
|
this.tabServiceSubscription = this.tabService.activeTabPaneIdx$.subscribe((tabContentState) => {
|
|
16831
16837
|
if (tabContentState.tabContent === this.tabContent) {
|
|
16832
|
-
this.active =
|
|
16838
|
+
this.active = tabContentState.activeIdx === this.tabPaneIdx;
|
|
16833
16839
|
}
|
|
16834
16840
|
});
|
|
16835
16841
|
}
|
|
@@ -16838,7 +16844,7 @@ class TabPaneComponent {
|
|
|
16838
16844
|
}
|
|
16839
16845
|
}
|
|
16840
16846
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: TabPaneComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: TabService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16841
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.10", type: TabPaneComponent, isStandalone: true, selector: "c-tab-pane", host: { properties: { "class": "this.hostClasses" } }, exportAs: ["cTabPane"], ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{display:block}\n"] }); }
|
|
16847
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.10", type: TabPaneComponent, isStandalone: true, selector: "c-tab-pane", inputs: { role: "role" }, host: { properties: { "class": "this.hostClasses", "attr.role": "this.role" } }, exportAs: ["cTabPane"], ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{display:block}\n"] }); }
|
|
16842
16848
|
}
|
|
16843
16849
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: TabPaneComponent, decorators: [{
|
|
16844
16850
|
type: Component,
|
|
@@ -16846,6 +16852,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
|
16846
16852
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: TabService }], propDecorators: { hostClasses: [{
|
|
16847
16853
|
type: HostBinding,
|
|
16848
16854
|
args: ['class']
|
|
16855
|
+
}], role: [{
|
|
16856
|
+
type: Input
|
|
16857
|
+
}, {
|
|
16858
|
+
type: HostBinding,
|
|
16859
|
+
args: ['attr.role']
|
|
16849
16860
|
}] } });
|
|
16850
16861
|
|
|
16851
16862
|
class TabContentComponent {
|
|
@@ -16947,6 +16958,7 @@ class TabContentRefDirective {
|
|
|
16947
16958
|
* @type number
|
|
16948
16959
|
*/
|
|
16949
16960
|
this.tabPaneIdx = -1;
|
|
16961
|
+
this.role = 'tab';
|
|
16950
16962
|
this.subscribeTabService();
|
|
16951
16963
|
}
|
|
16952
16964
|
/**
|
|
@@ -16986,7 +16998,9 @@ class TabContentRefDirective {
|
|
|
16986
16998
|
get attrDisabled() {
|
|
16987
16999
|
return this.disabled ? '' : null;
|
|
16988
17000
|
}
|
|
16989
|
-
|
|
17001
|
+
get ariaSelected() {
|
|
17002
|
+
return this.active;
|
|
17003
|
+
}
|
|
16990
17004
|
get getTabindex() {
|
|
16991
17005
|
return this.disabled ? '-1' : null;
|
|
16992
17006
|
}
|
|
@@ -17017,7 +17031,7 @@ class TabContentRefDirective {
|
|
|
17017
17031
|
if (subscribe) {
|
|
17018
17032
|
this.tabServiceSubscription = this.tabService.activeTabPaneIdx$.subscribe((tabContentState) => {
|
|
17019
17033
|
if (tabContentState.tabContent === this.tabContentRef) {
|
|
17020
|
-
this.active =
|
|
17034
|
+
this.active = tabContentState.activeIdx === this.tabPaneIdx;
|
|
17021
17035
|
}
|
|
17022
17036
|
});
|
|
17023
17037
|
}
|
|
@@ -17026,7 +17040,7 @@ class TabContentRefDirective {
|
|
|
17026
17040
|
}
|
|
17027
17041
|
}
|
|
17028
17042
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: TabContentRefDirective, deps: [{ token: i0.ChangeDetectorRef }, { token: TabService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
17029
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.10", type: TabContentRefDirective, isStandalone: true, selector: "[cTabContent]", inputs: { tabContentRef: ["cTabContent", "tabContentRef"], active: ["active", "active", booleanAttribute], disabled: ["disabled", "disabled", booleanAttribute], tabPaneIdx: ["tabPaneIdx", "tabPaneIdx", numberAttribute] }, host: { listeners: { "click": "toggleOpen($event)" }, properties: { "class": "this.hostClasses", "attr.aria-disabled": "this.isDisabled", "attr.disabled": "this.attrDisabled", "attr.tabindex": "this.getTabindex" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
17043
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.10", type: TabContentRefDirective, isStandalone: true, selector: "[cTabContent]", inputs: { tabContentRef: ["cTabContent", "tabContentRef"], active: ["active", "active", booleanAttribute], disabled: ["disabled", "disabled", booleanAttribute], tabPaneIdx: ["tabPaneIdx", "tabPaneIdx", numberAttribute], role: "role" }, host: { listeners: { "click": "toggleOpen($event)" }, properties: { "class": "this.hostClasses", "attr.aria-disabled": "this.isDisabled", "attr.disabled": "this.attrDisabled", "attr.aria-selected": "this.ariaSelected", "attr.role": "this.role", "attr.tabindex": "this.getTabindex" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
17030
17044
|
}
|
|
17031
17045
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: TabContentRefDirective, decorators: [{
|
|
17032
17046
|
type: Directive,
|
|
@@ -17055,6 +17069,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
|
17055
17069
|
}], attrDisabled: [{
|
|
17056
17070
|
type: HostBinding,
|
|
17057
17071
|
args: ['attr.disabled']
|
|
17072
|
+
}], ariaSelected: [{
|
|
17073
|
+
type: HostBinding,
|
|
17074
|
+
args: ['attr.aria-selected']
|
|
17075
|
+
}], role: [{
|
|
17076
|
+
type: Input
|
|
17077
|
+
}, {
|
|
17078
|
+
type: HostBinding,
|
|
17079
|
+
args: ['attr.role']
|
|
17058
17080
|
}], getTabindex: [{
|
|
17059
17081
|
type: HostBinding,
|
|
17060
17082
|
args: ['attr.tabindex']
|