@coreui/angular 5.7.27 → 5.7.28
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.
|
@@ -4057,7 +4057,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
4057
4057
|
class FormFloatingDirective {
|
|
4058
4058
|
/**
|
|
4059
4059
|
* Enable floating labels
|
|
4060
|
-
* @
|
|
4060
|
+
* @returns boolean
|
|
4061
|
+
* @default true
|
|
4061
4062
|
*/
|
|
4062
4063
|
floating = input(true, { ...(ngDevMode ? { debugName: "floating" } : /* istanbul ignore next */ {}), transform: booleanAttribute, alias: 'cFormFloating' });
|
|
4063
4064
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: FormFloatingDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -5004,6 +5005,11 @@ class NavGroupService {
|
|
|
5004
5005
|
*/
|
|
5005
5006
|
activeId = signal(undefined, /* @ts-ignore */
|
|
5006
5007
|
...(ngDevMode ? [{ debugName: "activeId" }] : /* istanbul ignore next */ []));
|
|
5008
|
+
/**
|
|
5009
|
+
* Whether an active nav link opens the branch it sits in. Inherited by nested levels.
|
|
5010
|
+
*/
|
|
5011
|
+
openOnActive = signal(true, /* @ts-ignore */
|
|
5012
|
+
...(ngDevMode ? [{ debugName: "openOnActive" }] : /* istanbul ignore next */ []));
|
|
5007
5013
|
/**
|
|
5008
5014
|
* Opens the level owner within its own parent and cascades up to the root.
|
|
5009
5015
|
* Replaced by the owning `c-nav-group`; stays a no-op for the root level.
|
|
@@ -5078,7 +5084,7 @@ class NavLinkDirective {
|
|
|
5078
5084
|
#activeEffect = effect(() => {
|
|
5079
5085
|
if (this.active()) {
|
|
5080
5086
|
untracked(() => {
|
|
5081
|
-
this.#
|
|
5087
|
+
this.#openBranch();
|
|
5082
5088
|
});
|
|
5083
5089
|
}
|
|
5084
5090
|
}, /* @ts-ignore */
|
|
@@ -5097,6 +5103,11 @@ class NavLinkDirective {
|
|
|
5097
5103
|
ngOnDestroy() {
|
|
5098
5104
|
this.#classObserver?.disconnect();
|
|
5099
5105
|
}
|
|
5106
|
+
#openBranch() {
|
|
5107
|
+
if (this.#navGroupService?.openOnActive()) {
|
|
5108
|
+
this.#navGroupService.openBranch();
|
|
5109
|
+
}
|
|
5110
|
+
}
|
|
5100
5111
|
#observeActiveClass() {
|
|
5101
5112
|
const host = this.#hostElement.nativeElement;
|
|
5102
5113
|
if (!this.#navGroupService) {
|
|
@@ -5104,12 +5115,12 @@ class NavLinkDirective {
|
|
|
5104
5115
|
}
|
|
5105
5116
|
let wasActive = host.classList.contains('active');
|
|
5106
5117
|
if (wasActive) {
|
|
5107
|
-
this.#
|
|
5118
|
+
this.#openBranch();
|
|
5108
5119
|
}
|
|
5109
5120
|
this.#classObserver = new MutationObserver(() => {
|
|
5110
5121
|
const active = host.classList.contains('active');
|
|
5111
5122
|
if (active && !wasActive) {
|
|
5112
|
-
this.#
|
|
5123
|
+
this.#openBranch();
|
|
5113
5124
|
}
|
|
5114
5125
|
wasActive = active;
|
|
5115
5126
|
});
|
|
@@ -5197,13 +5208,14 @@ class NavGroupComponent {
|
|
|
5197
5208
|
visibleChange = output();
|
|
5198
5209
|
#uncontrolledVisible = signal(false, /* @ts-ignore */
|
|
5199
5210
|
...(ngDevMode ? [{ debugName: "#uncontrolledVisible" }] : /* istanbul ignore next */ []));
|
|
5200
|
-
display = signal(null, /* @ts-ignore */
|
|
5201
|
-
...(ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []));
|
|
5202
5211
|
visibleState = computed(() => {
|
|
5203
5212
|
const parent = this.#parentNavGroupService;
|
|
5204
5213
|
return parent ? parent.activeId() === this.#id : this.#uncontrolledVisible();
|
|
5205
5214
|
}, /* @ts-ignore */
|
|
5206
5215
|
...(ngDevMode ? [{ debugName: "visibleState" }] : /* istanbul ignore next */ []));
|
|
5216
|
+
// the group drops `show` in the same pass, hiding the items before cCollapse can measure them
|
|
5217
|
+
display = linkedSignal({ ...(ngDevMode ? { debugName: "display" } : /* istanbul ignore next */ {}), source: this.visibleState,
|
|
5218
|
+
computation: (visible, previous) => (previous?.source && !visible ? 'block' : null) });
|
|
5207
5219
|
hostClasses = computed(() => {
|
|
5208
5220
|
return {
|
|
5209
5221
|
'nav-group': true,
|
|
@@ -5221,6 +5233,13 @@ class NavGroupComponent {
|
|
|
5221
5233
|
});
|
|
5222
5234
|
}, /* @ts-ignore */
|
|
5223
5235
|
...(ngDevMode ? [{ debugName: "#visibleEffect" }] : /* istanbul ignore next */ []));
|
|
5236
|
+
#openOnActiveEffect = effect(() => {
|
|
5237
|
+
const openOnActive = this.#parentNavGroupService?.openOnActive() ?? true;
|
|
5238
|
+
untracked(() => {
|
|
5239
|
+
this.#navGroupService.openOnActive.set(openOnActive);
|
|
5240
|
+
});
|
|
5241
|
+
}, /* @ts-ignore */
|
|
5242
|
+
...(ngDevMode ? [{ debugName: "#openOnActiveEffect" }] : /* istanbul ignore next */ []));
|
|
5224
5243
|
toggleGroup(event) {
|
|
5225
5244
|
event.preventDefault();
|
|
5226
5245
|
const next = !this.visibleState();
|
|
@@ -8473,7 +8492,8 @@ class SidebarNavGroupComponent {
|
|
|
8473
8492
|
* Determines when an inactive `c-sidebar-nav-group` closes.
|
|
8474
8493
|
* - `path`: on an active route change only
|
|
8475
8494
|
* - `close`: when another group is clicked
|
|
8476
|
-
* - `none`: never, the group stays open
|
|
8495
|
+
* - `none`: never, the group stays open — it stops reacting to the route altogether,
|
|
8496
|
+
* so a matching route neither opens it on init nor on a later navigation
|
|
8477
8497
|
*/
|
|
8478
8498
|
dropdownMode = input('path', /* @ts-ignore */
|
|
8479
8499
|
...(ngDevMode ? [{ debugName: "dropdownMode" }] : /* istanbul ignore next */ []));
|
|
@@ -8512,7 +8532,7 @@ class SidebarNavGroupComponent {
|
|
|
8512
8532
|
this.openGroup(samePath);
|
|
8513
8533
|
}
|
|
8514
8534
|
});
|
|
8515
|
-
if (this.samePath(this.#router.routerState.snapshot.url)) {
|
|
8535
|
+
if (this.dropdownMode() !== 'none' && this.samePath(this.#router.routerState.snapshot.url)) {
|
|
8516
8536
|
this.openGroup(true);
|
|
8517
8537
|
}
|
|
8518
8538
|
this.navGroupSubscription = this.#sidebarNavGroupService.sidebarNavGroupState$.subscribe((next) => {
|
|
@@ -8557,7 +8577,7 @@ class SidebarNavGroupComponent {
|
|
|
8557
8577
|
this.display.set(state === 'collapsed' || state === 'open' ? null : 'block');
|
|
8558
8578
|
}
|
|
8559
8579
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SidebarNavGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8560
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SidebarNavGroupComponent, isStandalone: true, selector: "c-sidebar-nav-group", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null }, dropdownMode: { classPropertyName: "dropdownMode", publicName: "dropdownMode", isSignal: true, isRequired: false, transformFunction: null }, show: { classPropertyName: "show", publicName: "show", isSignal: true, isRequired: false, transformFunction: null }, compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, providers: [SidebarNavHelper], ngImport: i0, template: "@let grpItem = item();\n<a\n (click)=\"toggleGroup($event)\"\n [cHtmlAttr]=\"$safeNavigationMigration(grpItem?.attributes)\"\n class=\"nav-link nav-group-toggle\"\n href\n>\n <ng-container *ngTemplateOutlet=\"iconTemplate; context: { $implicit: grpItem }\" />\n <ng-container>{{ grpItem?.name }}</ng-container>\n @if (grpItem?.badge) {\n <span [class]=\"grpItem | cSidebarNavBadge\">{{ grpItem?.badge?.text }}</span>\n }\n</a>\n<c-sidebar-nav\n (collapseChange)=\"onCollapseChange($event)\"\n [compact]=\"compact()\"\n [dropdownMode]=\"dropdownMode()\"\n [groupItems]=\"true\"\n [navItems]=\"navItems()\"\n [style.display]=\"display()\"\n [visible]=\"!!open()\"\n cCollapse\n/>\n\n<ng-template #iconTemplate let-item>\n <!-- <i *ngIf=\"item?.icon\" [class]=\"item | cSidebarNavIcon\"></i>-->\n @if (item?.icon) {\n <span class=\"nav-icon\">\n <span [class]=\"item.icon ?? ''\"></span>\n </span>\n }\n @if (item?.iconComponent) {\n <svg\n [cIcon]=\"$safeNavigationMigration(item.iconComponent?.content)\"\n [customClasses]=\"item | cSidebarNavIcon\"\n [name]=\"$safeNavigationMigration(item.iconComponent?.name)\"\n />\n }\n @if (!item?.icon && !item?.iconComponent) {\n <span [class]=\"item | cSidebarNavIcon\"></span>\n }\n</ng-template>\n", styles: [".nav-group-items{display:block}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(() => CollapseDirective), selector: "[cCollapse]", inputs: ["animate", "horizontal", "visible", "navbar"], outputs: ["visibleChange", "collapseChange"], exportAs: ["cCollapse"] }, { 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: "component", type: i0.forwardRef(() => SidebarNavComponent), selector: "c-sidebar-nav", inputs: ["navItems", "dropdownMode", "groupItems", "compact", "role"] }, { kind: "pipe", type: i0.forwardRef(() => SidebarNavIconPipe), name: "cSidebarNavIcon" }, { kind: "pipe", type: i0.forwardRef(() => SidebarNavBadgePipe), name: "cSidebarNavBadge" }] });
|
|
8580
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SidebarNavGroupComponent, isStandalone: true, selector: "c-sidebar-nav-group", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null }, dropdownMode: { classPropertyName: "dropdownMode", publicName: "dropdownMode", isSignal: true, isRequired: false, transformFunction: null }, show: { classPropertyName: "show", publicName: "show", isSignal: true, isRequired: false, transformFunction: null }, compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, providers: [SidebarNavHelper], ngImport: i0, template: "@let grpItem = item();\n<a\n (click)=\"toggleGroup($event)\"\n [cHtmlAttr]=\"$safeNavigationMigration(grpItem?.attributes)\"\n class=\"nav-link nav-group-toggle\"\n href\n>\n <ng-container *ngTemplateOutlet=\"iconTemplate; context: { $implicit: grpItem }\" />\n <ng-container>{{ grpItem?.name }}</ng-container>\n @if (grpItem?.badge) {\n <span [class]=\"grpItem | cSidebarNavBadge\">{{ grpItem?.badge?.text }}</span>\n }\n</a>\n<c-sidebar-nav\n (collapseChange)=\"onCollapseChange($event)\"\n [compact]=\"compact()\"\n [dropdownMode]=\"dropdownMode()\"\n [groupItems]=\"true\"\n [navItems]=\"navItems()\"\n [style.display]=\"display()\"\n [visible]=\"!!open()\"\n cCollapse\n/>\n\n<ng-template #iconTemplate let-item>\n <!-- <i *ngIf=\"item?.icon\" [class]=\"item | cSidebarNavIcon\"></i>-->\n @if (item?.icon) {\n <span class=\"nav-icon\">\n <span [class]=\"item.icon ?? ''\"></span>\n </span>\n }\n @if (item?.iconComponent) {\n <svg\n [cIcon]=\"$safeNavigationMigration(item.iconComponent?.content)\"\n [customClasses]=\"item | cSidebarNavIcon\"\n [name]=\"$safeNavigationMigration(item.iconComponent?.name)\"\n />\n }\n @if (!item?.icon && !item?.iconComponent) {\n <span [class]=\"item | cSidebarNavIcon\"></span>\n }\n</ng-template>\n", styles: [".nav-group-items{display:block}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(() => CollapseDirective), selector: "[cCollapse]", inputs: ["animate", "horizontal", "visible", "navbar"], outputs: ["visibleChange", "collapseChange"], exportAs: ["cCollapse"] }, { 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: "component", type: i0.forwardRef(() => SidebarNavComponent), selector: "c-sidebar-nav", inputs: ["navItems", "dropdownMode", "groupItems", "compact", "role", "variant"] }, { kind: "pipe", type: i0.forwardRef(() => SidebarNavIconPipe), name: "cSidebarNavIcon" }, { kind: "pipe", type: i0.forwardRef(() => SidebarNavBadgePipe), name: "cSidebarNavBadge" }] });
|
|
8561
8581
|
}
|
|
8562
8582
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SidebarNavGroupComponent, decorators: [{
|
|
8563
8583
|
type: Component,
|
|
@@ -8580,6 +8600,7 @@ class SidebarNavComponent {
|
|
|
8580
8600
|
#renderer = inject(Renderer2);
|
|
8581
8601
|
#hostElement = inject(ElementRef);
|
|
8582
8602
|
#sidebarService = inject(SidebarService);
|
|
8603
|
+
#navGroupService = inject(NavGroupService);
|
|
8583
8604
|
/**
|
|
8584
8605
|
* Configuration object for sidebar-nav.
|
|
8585
8606
|
* @returns INavData[] | undefined
|
|
@@ -8591,7 +8612,8 @@ class SidebarNavComponent {
|
|
|
8591
8612
|
* Determines when an inactive `c-sidebar-nav-group` closes.
|
|
8592
8613
|
* - `path`: on an active route change only
|
|
8593
8614
|
* - `close`: when another group is clicked
|
|
8594
|
-
* - `none`: never, the group stays open
|
|
8615
|
+
* - `none`: never, the group stays open — it stops reacting to the route altogether,
|
|
8616
|
+
* so a matching route neither opens it on init nor on a later navigation
|
|
8595
8617
|
*/
|
|
8596
8618
|
dropdownMode = input('path', /* @ts-ignore */
|
|
8597
8619
|
...(ngDevMode ? [{ debugName: "dropdownMode" }] : /* istanbul ignore next */ []));
|
|
@@ -8612,15 +8634,31 @@ class SidebarNavComponent {
|
|
|
8612
8634
|
*/
|
|
8613
8635
|
role = input('navigation', /* @ts-ignore */
|
|
8614
8636
|
...(ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []));
|
|
8637
|
+
/**
|
|
8638
|
+
* Set the sidebar nav variant to tree.
|
|
8639
|
+
* @default undefined
|
|
8640
|
+
* @since 5.7.28
|
|
8641
|
+
*/
|
|
8642
|
+
variant = input(/* @ts-ignore */
|
|
8643
|
+
...(ngDevMode ? [undefined, { debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
8615
8644
|
hostClasses = computed(() => {
|
|
8616
8645
|
const groupItems = this.groupItems();
|
|
8646
|
+
const variant = this.variant();
|
|
8617
8647
|
return {
|
|
8618
8648
|
'sidebar-nav': !groupItems,
|
|
8619
8649
|
'nav-group-items': groupItems,
|
|
8620
|
-
|
|
8650
|
+
[`sidebar-nav-${variant}`]: !groupItems && !!variant,
|
|
8651
|
+
compact: this.compact()
|
|
8621
8652
|
};
|
|
8622
8653
|
}, /* @ts-ignore */
|
|
8623
8654
|
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
8655
|
+
#dropdownModeEffect = effect(() => {
|
|
8656
|
+
const openOnActive = this.dropdownMode() !== 'none';
|
|
8657
|
+
untracked(() => {
|
|
8658
|
+
this.#navGroupService.openOnActive.set(openOnActive);
|
|
8659
|
+
});
|
|
8660
|
+
}, /* @ts-ignore */
|
|
8661
|
+
...(ngDevMode ? [{ debugName: "#dropdownModeEffect" }] : /* istanbul ignore next */ []));
|
|
8624
8662
|
// @HostBinding('class.nav-group-items')
|
|
8625
8663
|
// get sidebarNavGroupItemsClass(): boolean {
|
|
8626
8664
|
// return !!this.groupItems;
|
|
@@ -8638,7 +8676,7 @@ class SidebarNavComponent {
|
|
|
8638
8676
|
}
|
|
8639
8677
|
}
|
|
8640
8678
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SidebarNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8641
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SidebarNavComponent, isStandalone: true, selector: "c-sidebar-nav", inputs: { navItems: { classPropertyName: "navItems", publicName: "navItems", isSignal: true, isRequired: false, transformFunction: null }, dropdownMode: { classPropertyName: "dropdownMode", publicName: "dropdownMode", isSignal: true, isRequired: false, transformFunction: null }, groupItems: { classPropertyName: "groupItems", publicName: "groupItems", isSignal: true, isRequired: false, transformFunction: null }, compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()", "attr.role": "role()" } }, providers: [NavGroupService, SidebarNavGroupService], usesOnChanges: true, ngImport: i0, template: "@for (nItem of navItemsArray(); track nItem) {\n @switch (helper.itemType(nItem)) {\n @case ('group') {\n <c-sidebar-nav-group\n [dropdownMode]=\"dropdownMode()\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n [compact]=\"compact()\"\n />\n }\n @case ('divider') {\n <c-sidebar-nav-divider\n [cHtmlAttr]=\"nItem.attributes ?? {}\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n @case ('title') {\n <c-sidebar-nav-title\n [cHtmlAttr]=\"nItem.attributes ?? {}\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n @case ('label') {\n <c-sidebar-nav-label\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n @case ('empty') {\n <ng-container />\n }\n @default {\n <c-sidebar-nav-link\n (linkClick)=\"hideMobile()\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n }\n}\n<ng-content />\n", styles: [":host .nav-item{display:block}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(() => HtmlAttributesDirective), selector: "[cHtmlAttr]", inputs: ["cHtmlAttr"], exportAs: ["cHtmlAttr"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavLinkComponent), selector: "c-sidebar-nav-link", inputs: ["item"], outputs: ["linkClick"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavLabelComponent), selector: "c-sidebar-nav-label", inputs: ["item"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavTitleComponent), selector: "c-sidebar-nav-title", inputs: ["item"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavDividerComponent), selector: "c-sidebar-nav-divider", inputs: ["item"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavGroupComponent), selector: "c-sidebar-nav-group", inputs: ["item", "dropdownMode", "show", "compact"] }, { kind: "ngmodule", type: i0.forwardRef(() => RouterModule) }, { kind: "pipe", type: i0.forwardRef(() => SidebarNavItemClassPipe), name: "cSidebarNavItemClass" }] });
|
|
8679
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SidebarNavComponent, isStandalone: true, selector: "c-sidebar-nav", inputs: { navItems: { classPropertyName: "navItems", publicName: "navItems", isSignal: true, isRequired: false, transformFunction: null }, dropdownMode: { classPropertyName: "dropdownMode", publicName: "dropdownMode", isSignal: true, isRequired: false, transformFunction: null }, groupItems: { classPropertyName: "groupItems", publicName: "groupItems", isSignal: true, isRequired: false, transformFunction: null }, compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()", "attr.role": "role()" } }, providers: [NavGroupService, SidebarNavGroupService], usesOnChanges: true, ngImport: i0, template: "@for (nItem of navItemsArray(); track nItem) {\n @switch (helper.itemType(nItem)) {\n @case ('group') {\n <c-sidebar-nav-group\n [dropdownMode]=\"dropdownMode()\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n [compact]=\"compact()\"\n />\n }\n @case ('divider') {\n <c-sidebar-nav-divider\n [cHtmlAttr]=\"nItem.attributes ?? {}\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n @case ('title') {\n <c-sidebar-nav-title\n [cHtmlAttr]=\"nItem.attributes ?? {}\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n @case ('label') {\n <c-sidebar-nav-label\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n @case ('empty') {\n <ng-container />\n }\n @default {\n <c-sidebar-nav-link\n (linkClick)=\"hideMobile()\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n }\n}\n<ng-content />\n", styles: [":host .nav-item{display:block}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(() => HtmlAttributesDirective), selector: "[cHtmlAttr]", inputs: ["cHtmlAttr"], exportAs: ["cHtmlAttr"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavLinkComponent), selector: "c-sidebar-nav-link", inputs: ["item"], outputs: ["linkClick"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavLabelComponent), selector: "c-sidebar-nav-label", inputs: ["item"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavTitleComponent), selector: "c-sidebar-nav-title", inputs: ["item"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavDividerComponent), selector: "c-sidebar-nav-divider", inputs: ["item"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavGroupComponent), selector: "c-sidebar-nav-group", inputs: ["item", "dropdownMode", "show", "compact"] }, { kind: "ngmodule", type: i0.forwardRef(() => RouterModule) }, { kind: "pipe", type: i0.forwardRef(() => SidebarNavItemClassPipe), name: "cSidebarNavItemClass" }] });
|
|
8642
8680
|
}
|
|
8643
8681
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SidebarNavComponent, decorators: [{
|
|
8644
8682
|
type: Component,
|
|
@@ -8655,7 +8693,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
8655
8693
|
'[class]': 'hostClasses()',
|
|
8656
8694
|
'[attr.role]': 'role()'
|
|
8657
8695
|
}, providers: [NavGroupService, SidebarNavGroupService], template: "@for (nItem of navItemsArray(); track nItem) {\n @switch (helper.itemType(nItem)) {\n @case ('group') {\n <c-sidebar-nav-group\n [dropdownMode]=\"dropdownMode()\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n [compact]=\"compact()\"\n />\n }\n @case ('divider') {\n <c-sidebar-nav-divider\n [cHtmlAttr]=\"nItem.attributes ?? {}\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n @case ('title') {\n <c-sidebar-nav-title\n [cHtmlAttr]=\"nItem.attributes ?? {}\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n @case ('label') {\n <c-sidebar-nav-label\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n @case ('empty') {\n <ng-container />\n }\n @default {\n <c-sidebar-nav-link\n (linkClick)=\"hideMobile()\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n }\n}\n<ng-content />\n", styles: [":host .nav-item{display:block}\n"] }]
|
|
8658
|
-
}], propDecorators: { navItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "navItems", required: false }] }], dropdownMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownMode", required: false }] }], groupItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupItems", required: false }] }], compact: [{ type: i0.Input, args: [{ isSignal: true, alias: "compact", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }] } });
|
|
8696
|
+
}], propDecorators: { navItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "navItems", required: false }] }], dropdownMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownMode", required: false }] }], groupItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupItems", required: false }] }], compact: [{ type: i0.Input, args: [{ isSignal: true, alias: "compact", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }] } });
|
|
8659
8697
|
|
|
8660
8698
|
class SidebarModule {
|
|
8661
8699
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SidebarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|