-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ngx-components)!: completely switch to standalone (#2184)
* refactor(ngx-components)!: completely switch to standalone BREAKING CHANGE: All Angular components are `standalone` now. SCAM (Single Component Angular Modules) have been removed. please import the standalone components directly in your `imports` section. ```ts app.component.ts //app.component.ts import { DBButton } from '@db-ui/ngx-components'; @component({ // ... imports: [ // ..., DBButton ], // ... }) ``` closes #237 * fix: use withHashLocation * fix: add missing NavigationContentDirective import * fix: add missing NavigationContentDirective import * fix: remove --ui flag from test * fix: add standalone for angular mitosis specific config as well
- Loading branch information
1 parent
729810a
commit 0efa2a2
Showing
107 changed files
with
696 additions
and
697 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/components/_templates/mitosis/new/component/angular-overrides.ejs.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
to: overrides/angular/src/components/<%= name %>/index.ts | ||
--- | ||
export { DB<%= h.changeCase.pascal(name) %>, DB<%= h.changeCase.pascal(name) %>Module } from "./<%= name %>"; | ||
export { DB<%= h.changeCase.pascal(name) %> } from "./<%= name %>"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
...ges/components/_templates/mitosis/new/showcases/angular-showcase-module-declaration.ejs.t
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...omponents/_templates/mitosis/new/showcases/angular-showcase-module-import-component.ejs.t
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...s/components/_templates/mitosis/new/showcases/angular-showcase-module-import-module.ejs.t
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
packages/components/_templates/mitosis/new/showcases/angular-showcase-module-import.ejs.t
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/accordion-item/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBAccordionItem, DBAccordionItemModule } from './accordion-item'; | ||
export { DBAccordionItem } from './accordion-item'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/accordion/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBAccordion, DBAccordionModule } from './accordion'; | ||
export { DBAccordion } from './accordion'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/alert/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBAlert, DBAlertModule } from './alert'; | ||
export { DBAlert } from './alert'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/badge/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBBadge, DBBadgeModule } from './badge'; | ||
export { DBBadge } from './badge'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/brand/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBBrand, DBBrandModule } from './brand'; | ||
export { DBBrand } from './brand'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/button/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBButton, DBButtonModule } from './button'; | ||
export { DBButton } from './button'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/card/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBCard, DBCardModule } from './card'; | ||
export { DBCard } from './card'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/checkbox/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBCheckbox, DBCheckboxModule } from './checkbox'; | ||
export { DBCheckbox } from './checkbox'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/code-docs/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBCodeDocs, DBCodeDocsModule } from './code-docs'; | ||
export { DBCodeDocs } from './code-docs'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/divider/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBDivider, DBDividerModule } from './divider'; | ||
export { DBDivider } from './divider'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/drawer/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBDrawer, DBDrawerModule } from './drawer'; | ||
export { DBDrawer } from './drawer'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/header/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBHeader, DBHeaderModule } from './header'; | ||
export { DBHeader } from './header'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/icon/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBIcon, DBIconModule } from './icon'; | ||
export { DBIcon } from './icon'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/infotext/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBInfotext, DBInfotextModule } from './infotext'; | ||
export { DBInfotext } from './infotext'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/input/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBInput, DBInputModule } from './input'; | ||
export { DBInput } from './input'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/link/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBLink, DBLinkModule } from './link'; | ||
export { DBLink } from './link'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/main-navigation/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBMainNavigation, DBMainNavigationModule } from './main-navigation'; | ||
export { DBMainNavigation } from './main-navigation'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/navigation-item/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBNavigationItem, DBNavigationItemModule } from './navigation-item'; | ||
export { DBNavigationItem } from './navigation-item'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/page/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBPage, DBPageModule } from './page'; | ||
export { DBPage } from './page'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/popover/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBPopover, DBPopoverModule } from './popover'; | ||
export { DBPopover } from './popover'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/radio/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBRadio, DBRadioModule } from './radio'; | ||
export { DBRadio } from './radio'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/section/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBSection, DBSectionModule } from './section'; | ||
export { DBSection } from './section'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/select/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBSelect, DBSelectModule } from './select'; | ||
export { DBSelect } from './select'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/sub-navigation/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBSubNavigation, DBSubNavigationModule } from './sub-navigation'; | ||
export { DBSubNavigation } from './sub-navigation'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/tab-bar/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBTabBar, DBTabBarModule } from './tab-bar'; | ||
export { DBTabBar } from './tab-bar'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/tab/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBTab, DBTabModule } from './tab'; | ||
export { DBTab } from './tab'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/tag/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBTag, DBTagModule } from './tag'; | ||
export { DBTag } from './tag'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/textarea/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBTextarea, DBTextareaModule } from './textarea'; | ||
export { DBTextarea } from './textarea'; |
2 changes: 1 addition & 1 deletion
2
packages/components/overrides/angular/src/components/tooltip/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DBTooltip, DBTooltipModule } from './tooltip'; | ||
export { DBTooltip } from './tooltip'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.