Skip to content

Commit ce4def4

Browse files
authored
fix: add standalone property on components (#103)
## PR Checklist Please check if your PR fulfills the following requirements: <!--- [ ] Tests for the changes have been added (for bug fixes/features)--> - [ ] Docs have been added/updated (for bug fixes/features) ## PR Type What kind of change does this PR introduce? <!-- Please check the one that applies to this PR using "x". --> - [x] Bugfix - [ ] Feature - [ ] Code style update (formatting, local variables) - [ ] Refactoring (no functional changes, no API changes) - [ ] Build related changes - [ ] CI-related changes - [ ] Documentation content changes - [ ] Other... Please describe: ## Issue Number <!-- Bugs and features must be linked to an issue. --> Issue Number: N/A ## Does this PR introduce a breaking change? <!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. --> - [ ] Yes - [x] No ## Other information @coderabbitai summary
2 parents 2b0161f + cae1779 commit ce4def4

17 files changed

+17
-5
lines changed

libs/flowbite-angular/accordion/accordion-title.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export const accordionTitleDefaultValueProvider = makeEnvironmentProviders([
4444
* @see https://flowbite.com/docs/components/accordion/
4545
*/
4646
@Component({
47+
standalone: true,
4748
imports: [IconComponent, NgTemplateOutlet],
4849
selector: 'flowbite-accordion-title',
4950
template: `

libs/flowbite-angular/alert/alert.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export const alertDefaultValueProvider = makeEnvironmentProviders([
9292
* @see https://flowbite.com/docs/components/alerts/
9393
*/
9494
@Component({
95+
standalone: true,
9596
imports: [NgTemplateOutlet, IconComponent],
9697
selector: 'flowbite-alert',
9798
template: `

libs/flowbite-angular/breadcrumb/breadcrumb-item.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export const breadcrumbItemDefaultValueProvider = makeEnvironmentProviders([
3636
* @see https://flowbite.com/docs/components/breadcrumb/
3737
*/
3838
@Component({
39+
standalone: true,
3940
imports: [IconComponent],
4041
selector: 'flowbite-breadcrumb-item',
4142
template: `

libs/flowbite-angular/button/button.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export const buttonDefaultValueProvider = makeEnvironmentProviders([
9494
* @see https://flowbite.com/docs/components/buttons/
9595
*/
9696
@Component({
97+
standalone: true,
9798
imports: [NgTemplateOutlet],
9899
selector: 'flowbite-button',
99100
template: `

libs/flowbite-angular/dark-theme-toggle/dark-theme-toggle.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const darkThemeToggleDefaultValueProvider = makeEnvironmentProviders([
3333
* Use to toggle light/dark mode accross the site
3434
*/
3535
@Component({
36+
standalone: true,
3637
imports: [IconComponent],
3738
selector: 'flowbite-dark-theme-toggle',
3839
template: `

libs/flowbite-angular/dropdown/dropdown.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export const dropdownDefaultValueProvider = makeEnvironmentProviders([
6262
* @see https://flowbite.com/docs/components/dropdowns/
6363
*/
6464
@Component({
65+
standalone: true,
6566
imports: [IconComponent],
6667
selector: 'flowbite-dropdown',
6768
template: `

libs/flowbite-angular/icon/icon.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import {
2020
import { take } from 'rxjs';
2121

2222
@Component({
23-
selector: 'flowbite-icon',
2423
standalone: true,
24+
selector: 'flowbite-icon',
2525
template: `<ng-content />`,
2626
encapsulation: ViewEncapsulation.None,
2727
changeDetection: ChangeDetectionStrategy.OnPush,

libs/flowbite-angular/modal/modal-header.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const modalHeaderDefaultValueProvider = makeEnvironmentProviders([
3434
* @see https://flowbite.com/docs/components/modal/
3535
*/
3636
@Component({
37+
standalone: true,
3738
imports: [IconComponent],
3839
selector: 'flowbite-modal-header',
3940
template: `

libs/flowbite-angular/navbar/navbar-brand.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export const navbarBrandDefaultThemeProvider = makeEnvironmentProviders([
3030
* @see https://flowbite.com/docs/components/navbar/
3131
*/
3232
@Component({
33-
selector: 'flowbite-navbar-brand',
3433
standalone: true,
34+
selector: 'flowbite-navbar-brand',
3535
template: `<ng-content />`,
3636
encapsulation: ViewEncapsulation.None,
3737
changeDetection: ChangeDetectionStrategy.OnPush,

libs/flowbite-angular/navbar/navbar-content.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export const navbarContentDefaultValueProvider = makeEnvironmentProviders([
3333
* @see https://flowbite.com/docs/components/navbar/
3434
*/
3535
@Component({
36-
selector: 'flowbite-navbar-content',
3736
standalone: true,
37+
selector: 'flowbite-navbar-content',
3838
template: `
3939
<div [class]="contentClasses().navbarContentListClass">
4040
<ng-content />

libs/flowbite-angular/navbar/navbar-icon-button.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ export const navbarIconButtonDefaultValueProvider = makeEnvironmentProviders([
3232
* @see https://flowbite.com/docs/components/navbar/
3333
*/
3434
@Component({
35-
selector: 'flowbite-navbar-icon-button',
3635
standalone: true,
36+
selector: 'flowbite-navbar-icon-button',
3737
template: `<ng-content />`,
3838
encapsulation: ViewEncapsulation.None,
3939
changeDetection: ChangeDetectionStrategy.OnPush,

libs/flowbite-angular/navbar/navbar-item.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export const navbarItemDefaultValueProvider = makeEnvironmentProviders([
3333
* @see https://flowbite.com/docs/components/navbar/
3434
*/
3535
@Component({
36-
selector: 'flowbite-navbar-item',
3736
standalone: true,
37+
selector: 'flowbite-navbar-item',
3838
template: `<ng-content />`,
3939
host: {
4040
'(click)': 'onClick()',

libs/flowbite-angular/navbar/navbar-toggle.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const navbarToggleDefaultValueProvider = makeEnvironmentProviders([
3333
* @see https://flowbite.com/docs/components/navbar/
3434
*/
3535
@Component({
36+
standalone: true,
3637
selector: 'flowbite-navbar-toggle',
3738
imports: [IconComponent],
3839
template: `

libs/flowbite-angular/scroll-top/scroll-top.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export const scrollTopDefaultValueProvider = makeEnvironmentProviders([
6363
* Provide a way to go at the top of the page via a button
6464
*/
6565
@Component({
66+
standalone: true,
6667
selector: 'flowbite-scroll-top',
6768
imports: [IconComponent, NgTemplateOutlet],
6869
template: `

libs/flowbite-angular/sidebar/sidebar-item-group.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export const sidebarItemGroupDefaultValueProvider = makeEnvironmentProviders([
3737
* @see https://flowbite.com/docs/components/sidebar/
3838
*/
3939
@Component({
40+
standalone: true,
4041
imports: [IconComponent],
4142
selector: 'flowbite-sidebar-item-group',
4243
template: `

libs/flowbite-angular/sidebar/sidebar-item.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export const sidebarItemDefaultValueProvider = makeEnvironmentProviders([
5252
* @see https://flowbite.com/docs/components/sidebar/
5353
*/
5454
@Component({
55+
standalone: true,
5556
imports: [SanitizeHtmlPipe, BadgeComponent],
5657
selector: 'flowbite-sidebar-item',
5758
template: `

libs/flowbite-angular/sidebar/sidebar-toggle.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export const sidebarToggleDefaultValueProvider = makeEnvironmentProviders([
5555
* @see https://flowbite.com/docs/components/sidebar/
5656
*/
5757
@Component({
58+
standalone: true,
5859
imports: [IconComponent],
5960
selector: 'flowbite-sidebar-toggle',
6061
template: `<flowbite-icon svgIcon="flowbite-angular:bars" />`,

0 commit comments

Comments
 (0)