Skip to content

Commit 5fcb50b

Browse files
committed
Merge branch 'Hagith-cui-selector-prefix'
2 parents baa9bda + 048a153 commit 5fcb50b

14 files changed

+17
-13
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
### [@coreui/angular](https://coreui.io/) changelog
22

3+
##### `v2.6.x`
4+
- chore: add "cui" prefixed selector alias to all components - thanks @Hagith #80
5+
36
##### `v2.6.0`
47
- fix(SidebarNavLink): nav link target doesn't work through appHtmlAttr - thanks @Hagith #79
58
- fix(SidebarNavLink): allow link parameters array
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export { AppBreadcrumbComponent } from './app-breadcrumb.component';
2+
export { CuiBreadcrumbComponent } from './cui-breadcrumb.component';
23
export { AppBreadcrumbModule } from './app-breadcrumb.module';

projects/coreui/angular/src/lib/sidebar/app-sidebar-footer.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {Component, ElementRef, OnInit, Renderer2} from '@angular/core';
22

33
@Component({
4-
selector: 'app-sidebar-footer',
4+
selector: 'app-sidebar-footer, cui-sidebar-footer',
55
template: `<ng-content></ng-content>`
66
})
77
export class AppSidebarFooterComponent implements OnInit {

projects/coreui/angular/src/lib/sidebar/app-sidebar-form.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {Component, ElementRef, OnInit, Renderer2} from '@angular/core';
22

33
@Component({
4-
selector: 'app-sidebar-form',
4+
selector: 'app-sidebar-form, cui-sidebar-form',
55
template: `<ng-content></ng-content>`
66
})
77
export class AppSidebarFormComponent implements OnInit {

projects/coreui/angular/src/lib/sidebar/app-sidebar-header.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {Component, ElementRef, OnInit, Renderer2} from '@angular/core';
22

33
@Component({
4-
selector: 'app-sidebar-header',
4+
selector: 'app-sidebar-header, cui-sidebar-header',
55
template: `<ng-content></ng-content>`
66
})
77
export class AppSidebarHeaderComponent implements OnInit {

projects/coreui/angular/src/lib/sidebar/app-sidebar-minimizer.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {Component, ElementRef, HostBinding, HostListener, Inject, OnInit, Render
22
import {DOCUMENT} from '@angular/common';
33

44
@Component({
5-
selector: 'app-sidebar-minimizer',
5+
selector: 'app-sidebar-minimizer, cui-sidebar-minimizer',
66
template: ``,
77
})
88
export class AppSidebarMinimizerComponent implements OnInit {

projects/coreui/angular/src/lib/sidebar/app-sidebar-nav.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Router } from '@angular/router';
44
import { INavData } from './app-sidebar-nav';
55

66
@Component({
7-
selector: 'app-sidebar-nav',
7+
selector: 'app-sidebar-nav, cui-sidebar-nav',
88
templateUrl: './app-sidebar-nav.component.html'
99
})
1010
export class AppSidebarNavComponent implements OnChanges {

projects/coreui/angular/src/lib/sidebar/app-sidebar-nav/app-sidebar-nav-divider.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {Component, Input, OnInit} from '@angular/core';
22

33
@Component({
4-
selector: 'app-sidebar-nav-divider',
4+
selector: 'app-sidebar-nav-divider, cui-sidebar-nav-divider',
55
template: ``
66
})
77
export class AppSidebarNavDividerComponent implements OnInit {

projects/coreui/angular/src/lib/sidebar/app-sidebar-nav/app-sidebar-nav-dropdown.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Component, Input} from '@angular/core';
33
import {SidebarNavHelper} from '../app-sidebar-nav.service';
44

55
@Component({
6-
selector: 'app-sidebar-nav-dropdown',
6+
selector: 'app-sidebar-nav-dropdown, cui-sidebar-nav-dropdown',
77
template: `
88
<a class="nav-link nav-dropdown-toggle"
99
appNavDropdownToggle

projects/coreui/angular/src/lib/sidebar/app-sidebar-nav/app-sidebar-nav-items.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {DOCUMENT} from '@angular/common';
55
import {SidebarNavHelper} from '../app-sidebar-nav.service';
66

77
@Component({
8-
selector: 'app-sidebar-nav-items',
8+
selector: 'app-sidebar-nav-items, cui-sidebar-nav-items',
99
template: `
1010
<ng-container *ngFor="let item of items">
1111
<ng-container [ngSwitch]="helper.itemType(item)">

projects/coreui/angular/src/lib/sidebar/app-sidebar-nav/app-sidebar-nav-label.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {Component, Input, OnInit} from '@angular/core';
22
import {SidebarNavHelper} from '../app-sidebar-nav.service';
33

44
@Component({
5-
selector: 'app-sidebar-nav-label',
5+
selector: 'app-sidebar-nav-label, cui-sidebar-nav-label',
66
templateUrl: './app-sidebar-nav-label.component.html'
77
})
88
export class AppSidebarNavLabelComponent implements OnInit {

projects/coreui/angular/src/lib/sidebar/app-sidebar-nav/app-sidebar-nav-link.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {Observable, Subscription} from 'rxjs';
55
import {filter} from 'rxjs/operators';
66

77
@Component({
8-
selector: 'app-sidebar-nav-link-content',
8+
selector: 'app-sidebar-nav-link-content, cui-sidebar-nav-link-content',
99
template: `
1010
<ng-container *ngIf="true">
1111
<i *ngIf="helper.hasIcon(item)" [ngClass]="item | appSidebarNavIcon"></i>
@@ -24,7 +24,7 @@ export class AppSidebarNavLinkContentComponent {
2424
}
2525

2626
@Component({
27-
selector: 'app-sidebar-nav-link',
27+
selector: 'app-sidebar-nav-link, cui-sidebar-nav-link',
2828
templateUrl: './app-sidebar-nav-link.component.html',
2929
providers: [ SidebarNavHelper ]
3030
})

projects/coreui/angular/src/lib/sidebar/app-sidebar-nav/app-sidebar-nav-title.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {Component, ElementRef, Input, OnInit, Renderer2} from '@angular/core';
22

33
@Component({
4-
selector: 'app-sidebar-nav-title',
4+
selector: 'app-sidebar-nav-title, cui-sidebar-nav-title',
55
template: '',
66
})
77
export class AppSidebarNavTitleComponent implements OnInit {

projects/coreui/angular/src/lib/sidebar/app-sidebar.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { DOCUMENT } from '@angular/common';
44
import { sidebarCssClasses } from '../shared';
55

66
@Component({
7-
selector: 'app-sidebar',
7+
selector: 'app-sidebar, cui-sidebar',
88
template: `<ng-content></ng-content>`
99
})
1010
export class AppSidebarComponent implements OnInit, OnDestroy {

0 commit comments

Comments
 (0)