Skip to content

fix: add standalone property on components #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const accordionTitleDefaultValueProvider = makeEnvironmentProviders([
* @see https://flowbite.com/docs/components/accordion/
*/
@Component({
standalone: true,
imports: [IconComponent, NgTemplateOutlet],
selector: 'flowbite-accordion-title',
template: `
Expand Down
1 change: 1 addition & 0 deletions libs/flowbite-angular/alert/alert.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export const alertDefaultValueProvider = makeEnvironmentProviders([
* @see https://flowbite.com/docs/components/alerts/
*/
@Component({
standalone: true,
imports: [NgTemplateOutlet, IconComponent],
selector: 'flowbite-alert',
template: `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const breadcrumbItemDefaultValueProvider = makeEnvironmentProviders([
* @see https://flowbite.com/docs/components/breadcrumb/
*/
@Component({
standalone: true,
imports: [IconComponent],
selector: 'flowbite-breadcrumb-item',
template: `
Expand Down
1 change: 1 addition & 0 deletions libs/flowbite-angular/button/button.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export const buttonDefaultValueProvider = makeEnvironmentProviders([
* @see https://flowbite.com/docs/components/buttons/
*/
@Component({
standalone: true,
imports: [NgTemplateOutlet],
selector: 'flowbite-button',
template: `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const darkThemeToggleDefaultValueProvider = makeEnvironmentProviders([
* Use to toggle light/dark mode accross the site
*/
@Component({
standalone: true,
imports: [IconComponent],
selector: 'flowbite-dark-theme-toggle',
template: `
Expand Down
1 change: 1 addition & 0 deletions libs/flowbite-angular/dropdown/dropdown.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const dropdownDefaultValueProvider = makeEnvironmentProviders([
* @see https://flowbite.com/docs/components/dropdowns/
*/
@Component({
standalone: true,
imports: [IconComponent],
selector: 'flowbite-dropdown',
template: `
Expand Down
2 changes: 1 addition & 1 deletion libs/flowbite-angular/icon/icon.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import {
import { take } from 'rxjs';

@Component({
selector: 'flowbite-icon',
standalone: true,
selector: 'flowbite-icon',
template: `<ng-content />`,
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
1 change: 1 addition & 0 deletions libs/flowbite-angular/modal/modal-header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const modalHeaderDefaultValueProvider = makeEnvironmentProviders([
* @see https://flowbite.com/docs/components/modal/
*/
@Component({
standalone: true,
imports: [IconComponent],
selector: 'flowbite-modal-header',
template: `
Expand Down
2 changes: 1 addition & 1 deletion libs/flowbite-angular/navbar/navbar-brand.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export const navbarBrandDefaultThemeProvider = makeEnvironmentProviders([
* @see https://flowbite.com/docs/components/navbar/
*/
@Component({
selector: 'flowbite-navbar-brand',
standalone: true,
selector: 'flowbite-navbar-brand',
template: `<ng-content />`,
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
2 changes: 1 addition & 1 deletion libs/flowbite-angular/navbar/navbar-content.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export const navbarContentDefaultValueProvider = makeEnvironmentProviders([
* @see https://flowbite.com/docs/components/navbar/
*/
@Component({
selector: 'flowbite-navbar-content',
standalone: true,
selector: 'flowbite-navbar-content',
template: `
<div [class]="contentClasses().navbarContentListClass">
<ng-content />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export const navbarIconButtonDefaultValueProvider = makeEnvironmentProviders([
* @see https://flowbite.com/docs/components/navbar/
*/
@Component({
selector: 'flowbite-navbar-icon-button',
standalone: true,
selector: 'flowbite-navbar-icon-button',
template: `<ng-content />`,
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
2 changes: 1 addition & 1 deletion libs/flowbite-angular/navbar/navbar-item.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export const navbarItemDefaultValueProvider = makeEnvironmentProviders([
* @see https://flowbite.com/docs/components/navbar/
*/
@Component({
selector: 'flowbite-navbar-item',
standalone: true,
selector: 'flowbite-navbar-item',
template: `<ng-content />`,
host: {
'(click)': 'onClick()',
Expand Down
1 change: 1 addition & 0 deletions libs/flowbite-angular/navbar/navbar-toggle.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const navbarToggleDefaultValueProvider = makeEnvironmentProviders([
* @see https://flowbite.com/docs/components/navbar/
*/
@Component({
standalone: true,
selector: 'flowbite-navbar-toggle',
imports: [IconComponent],
template: `
Expand Down
1 change: 1 addition & 0 deletions libs/flowbite-angular/scroll-top/scroll-top.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export const scrollTopDefaultValueProvider = makeEnvironmentProviders([
* Provide a way to go at the top of the page via a button
*/
@Component({
standalone: true,
selector: 'flowbite-scroll-top',
imports: [IconComponent, NgTemplateOutlet],
template: `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const sidebarItemGroupDefaultValueProvider = makeEnvironmentProviders([
* @see https://flowbite.com/docs/components/sidebar/
*/
@Component({
standalone: true,
imports: [IconComponent],
selector: 'flowbite-sidebar-item-group',
template: `
Expand Down
1 change: 1 addition & 0 deletions libs/flowbite-angular/sidebar/sidebar-item.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const sidebarItemDefaultValueProvider = makeEnvironmentProviders([
* @see https://flowbite.com/docs/components/sidebar/
*/
@Component({
standalone: true,
imports: [SanitizeHtmlPipe, BadgeComponent],
selector: 'flowbite-sidebar-item',
template: `
Expand Down
1 change: 1 addition & 0 deletions libs/flowbite-angular/sidebar/sidebar-toggle.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const sidebarToggleDefaultValueProvider = makeEnvironmentProviders([
* @see https://flowbite.com/docs/components/sidebar/
*/
@Component({
standalone: true,
imports: [IconComponent],
selector: 'flowbite-sidebar-toggle',
template: `<flowbite-icon svgIcon="flowbite-angular:bars" />`,
Expand Down
Loading