Skip to content

Commit

Permalink
feat(design)!: shard container component (#2655)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `DaffContainerModule` has moved to its own package. Update imports to `@daffodil/design/container`
  • Loading branch information
xelaint committed Dec 13, 2023
1 parent eba3142 commit ce5a331
Show file tree
Hide file tree
Showing 53 changed files with 84 additions and 121 deletions.
2 changes: 1 addition & 1 deletion apps/daffio/src/app/api/api.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

import { DaffContainerModule } from '@daffodil/design';
import { DaffArticleModule } from '@daffodil/design/article';
import { DaffContainerModule } from '@daffodil/design/container';

import { DaffioDocsApiRoutingModule } from './api-routing.module';
import { DaffioApiListModule } from './components/api-list/api-list.module';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { By } from '@angular/platform-browser';
import { RouterTestingModule } from '@angular/router/testing';

import { DaffContainerModule } from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';

import { DaffioApiListComponent } from './api-list.component';
import { DaffioApiReference } from '../../models/api-reference';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';

import { DaffContainerModule } from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';

import { DaffioApiListComponent } from './api-list.component';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';

import {
DaffContainerModule,
DaffCalloutModule,
DaffImageModule,
} from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';

import { DaffioHomeCalloutPlatformsComponent } from './home-callout-platforms.component';


@NgModule({
imports: [
CommonModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';

import {
DaffContainerModule,
DaffCalloutModule,
DaffImageModule,
DaffCardModule,
} from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';
import { DaffContainerModule } from '@daffodil/design/container';

import { DaffioHomeCalloutPwaComponent } from './home-callout-pwa.component';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';

import {
DaffContainerModule,
DaffHeroModule,
DaffImageModule,
} from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';
import { DaffContainerModule } from '@daffodil/design/container';

import { DaffioHomeHeroComponent } from './home-hero.component';

Expand Down
6 changes: 2 additions & 4 deletions apps/daffio/src/app/content/not-found/not-found.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';

import {
DaffHeroModule,
DaffContainerModule,
} from '@daffodil/design';
import { DaffHeroModule } from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';
import { DaffContainerModule } from '@daffodil/design/container';

import { DaffioNotFoundComponent } from './component/not-found.component';
import { DaffioNotFoundRoutingModule } from './not-found-routing.module';
Expand Down
6 changes: 2 additions & 4 deletions apps/daffio/src/app/content/support/support.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';

import {
DaffHeroModule,
DaffContainerModule,
} from '@daffodil/design';
import { DaffHeroModule } from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';
import { DaffContainerModule } from '@daffodil/design/container';

import { DaffioSupportComponent } from './component/support.component';
import { DaffioSupportRoutingModule } from './support-routing.module';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';

import {
DaffContainerModule,
DaffCalloutModule,
DaffCardModule,
} from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';

import { DaffioWhyPwaExamplesComponent } from './why-pwa-examples.component';


@NgModule({
imports: [
CommonModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';

import {
DaffContainerModule,
DaffHeroModule,
} from '@daffodil/design';
import { DaffHeroModule } from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';
import { DaffContainerModule } from '@daffodil/design/container';

import { DaffioWhyPwaHeroComponent } from './why-pwa-hero.component';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ import { RouterModule } from '@angular/router';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

import {
DaffContainerModule,
DaffCalloutModule,
DaffCardModule,
} from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';

import { DaffioWhyPwaOverviewComponent } from './why-pwa-overview.component';


@NgModule({
imports: [
CommonModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';

import {
DaffContainerModule,
DaffCalloutModule,
DaffListModule,
} from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';

import { DaffioWhyPwaSolutionComponent } from './why-pwa-solution.component';
import { DaffioFeatureComparisonModule } from '../feature-comparison/feature-comparison.module';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ import { RouterModule } from '@angular/router';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

import {
DaffContainerModule,
DaffCalloutModule,
DaffCardModule,
} from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';

import { DaffioWhyPwaStatsComponent } from './why-pwa-stats.component';


@NgModule({
imports: [
CommonModule,
Expand Down
2 changes: 1 addition & 1 deletion apps/daffio/src/app/core/footer/footer.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import {
DaffCalloutModule,
DaffListModule,
DaffButtonSetModule,
DaffContainerModule,
DaffInputModule,
} from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';
import { DaffContainerModule } from '@daffodil/design/container';

import { DaffioSimpleFooterComponent } from './simple-footer/simple-footer.component';
import { DaffioSubFooterComponent } from './sub-footer/sub-footer.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
DaffLogoModule,
DaffCopyrightModule,
} from '@daffodil/branding';
import { DaffContainerModule } from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';

import { DaffioSimpleFooterComponent } from './simple-footer.component';

Expand Down
6 changes: 2 additions & 4 deletions apps/daffio/src/app/core/header/components/header.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';

import {
DaffNavbarModule,
DaffContainerModule,
} from '@daffodil/design';
import { DaffNavbarModule } from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';

import { DaffioHeaderComponent } from './header/header.component';
import { DaffioHeaderItemDirective } from './header-item/header-item.directive';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ import {
} from '@angular/core/testing';
import { By } from '@angular/platform-browser';

import {
DaffContainerModule,
DaffNavbarModule,
} from '@daffodil/design';
import { DaffNavbarModule } from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';

import { DaffioHeaderComponent } from './header.component';

Expand Down
6 changes: 2 additions & 4 deletions apps/daffio/src/app/newsletter/newsletter.module.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

import {
DaffInputModule,
DaffContainerModule,
} from '@daffodil/design';
import { DaffInputModule } from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';
import { DaffContainerModule } from '@daffodil/design/container';

import { DaffioNewsletterComponent } from './newsletter.component';

Expand Down
2 changes: 1 addition & 1 deletion apps/demo/src/app/cart/cart.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

import { DaffLoadingIconModule } from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';

import { DemoCartRoutingModule } from './cart-routing.module';
import { CartModule } from './components/cart/cart.module';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ import {
MockDaffCartFacade,
} from '@daffodil/cart/state/testing';
import { DaffCartFactory } from '@daffodil/cart/testing';
import {
DaffContainerModule,
DaffLoadingIconModule,
} from '@daffodil/design';
import { DaffLoadingIconModule } from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';

import { DemoCartViewComponent } from './cart-view.component';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ import {
MockDaffCategoryFacade,
} from '@daffodil/category/state/testing';
import { DaffCategoryFactory } from '@daffodil/category/testing';
import {
DaffContainerModule,
DaffLoadingIconModule,
} from '@daffodil/design';
import { DaffLoadingIconModule } from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';
import { DaffProduct } from '@daffodil/product';
import {
DaffProductFactory,
Expand All @@ -25,7 +23,6 @@ import { CategoryViewComponent } from './category-view.component';
import { ProductGridComponent } from '../../../product/components/product-grid/product-grid.component';
import { ProductGridModule } from '../../../product/components/product-grid/product-grid.module';


describe('CategoryViewComponent', () => {
let categoryFactory: DaffCategoryFactory;
let productFactory: DaffProductFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

import { DaffCategoryStateModule } from '@daffodil/category/state';
import {
DaffContainerModule,
DaffLoadingIconModule,
} from '@daffodil/design';
import { DaffLoadingIconModule } from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';
import { DaffProductStateModule } from '@daffodil/product/state';

import { CategoryViewComponent } from './category-view.component';
Expand Down
2 changes: 1 addition & 1 deletion apps/demo/src/app/checkout/checkout.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { StateCheckoutModule } from '@daffodil/checkout';
import {
DaffAccordionModule,
DaffLoadingIconModule,
DaffContainerModule,
} from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';

import { CheckoutRoutingModule } from './checkout-routing.module';
import { DemoCheckoutStateModule } from './checkout-state.module';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ import { DaffAddressFactory } from '@daffodil/core/testing';
import {
DaffAccordionModule,
DaffAccordionItemComponent,
DaffContainerModule,
DaffLoadingIconModule,
} from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';

import { CheckoutViewComponent } from './checkout-view.component';
import { ShowPaymentView } from '../../actions/payment.actions';
Expand Down
2 changes: 1 addition & 1 deletion apps/demo/src/app/core/footer/footer.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import { RouterTestingModule } from '@angular/router/testing';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

import {
DaffContainerModule,
DaffListModule,
DaffButtonSetModule,
} from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';

import { FooterComponent } from './footer.component';

Expand Down
6 changes: 2 additions & 4 deletions apps/demo/src/app/core/footer/footer.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

import {
DaffListModule,
DaffContainerModule,
} from '@daffodil/design';
import { DaffListModule } from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';
import { DaffContainerModule } from '@daffodil/design/container';

import { FooterComponent } from './footer.component';

Expand Down
3 changes: 1 addition & 2 deletions apps/demo/src/app/newsletter/newsletter.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ import {
import { ReactiveFormsModule } from '@angular/forms';
import { By } from '@angular/platform-browser';

import { DaffContainerModule } from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';
import {
DaffNewsletterStateTestingModule,
MockDaffNewsletterFacade,
} from '@daffodil/newsletter/state/testing';


import { NewsletterComponent } from './newsletter.component';

describe('NewsletterComponent', () => {
Expand Down
6 changes: 2 additions & 4 deletions apps/demo/src/app/newsletter/newsletter.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';

import {
DaffInputModule,
DaffContainerModule,
} from '@daffodil/design';
import { DaffInputModule } from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';
import { DaffContainerModule } from '@daffodil/design/container';
import { DaffNewsletterStateModule } from '@daffodil/newsletter/state';

import { NewsletterComponent } from './newsletter.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ import { RouterTestingModule } from '@angular/router/testing';
import {
DaffAccordionModule,
DaffQtyDropdownModule,
DaffContainerModule,
DaffQtyDropdownComponent,
} from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';
import { DaffProduct } from '@daffodil/product';
import { DaffProductFactory } from '@daffodil/product/testing';

import { ProductComponent } from './product.component';


@Component({ template: '<demo-product [product]="productValue" [qty]="qtyValue" (updateQty)="updateQtyFunction($event)"></demo-product>' })
class WrapperComponent {
productValue: DaffProduct;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ import { NgModule } from '@angular/core';
import {
DaffQtyDropdownModule,
DaffAccordionModule,
DaffContainerModule,
DaffLoadingIconModule,
} from '@daffodil/design';
import { DaffContainerModule } from '@daffodil/design/container';

import { ProductComponent } from './product.component';
import { ImageGalleryModule } from '../../../core/image-gallery/image-gallery.module';


@NgModule({
imports: [
CommonModule,
Expand Down
Loading

0 comments on commit ce5a331

Please sign in to comment.