-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-11818 fix for quick-order feature lib
- Loading branch information
Showing
14 changed files
with
89 additions
and
56 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
feature-libs/cart/quick-order/components/list/quick-order-list.component.html
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
feature-libs/cart/quick-order/components/list/quick-order-list.component.spec.ts
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
feature-libs/cart/quick-order/components/list/quick-order-list.module.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './list/index'; | ||
export * from './wrapper/index'; | ||
export * from './quick-order-components.module'; |
3 changes: 2 additions & 1 deletion
3
feature-libs/cart/quick-order/components/quick-order-components.module.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,7 +1,8 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { RouterModule } from '@angular/router'; | ||
import { QuickOrderWrapperModule } from './wrapper/quick-order-wrapper.module'; | ||
|
||
@NgModule({ | ||
imports: [RouterModule], | ||
imports: [RouterModule, QuickOrderWrapperModule], | ||
}) | ||
export class QuickOrderComponentsModule {} |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './quick-order-wrapper.component'; | ||
export * from './quick-order-wrapper.module'; |
1 change: 1 addition & 0 deletions
1
feature-libs/cart/quick-order/components/wrapper/quick-order-wrapper.component.html
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Quick Order Wrapper Component |
22 changes: 22 additions & 0 deletions
22
feature-libs/cart/quick-order/components/wrapper/quick-order-wrapper.component.spec.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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { QuickOrderComponent } from './quick-order-wrapper.component'; | ||
|
||
describe('QuickOrderComponent', () => { | ||
let component: QuickOrderComponent; | ||
let fixture: ComponentFixture<QuickOrderComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [QuickOrderComponent], | ||
}).compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(QuickOrderComponent); | ||
component = fixture.componentInstance; | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
6 changes: 3 additions & 3 deletions
6
...onents/list/quick-order-list.component.ts → .../wrapper/quick-order-wrapper.component.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,8 +1,8 @@ | ||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'cx-quick-order-list', | ||
templateUrl: './quick-order-list.component.html', | ||
selector: 'cx-quick-order-wrapper', | ||
templateUrl: './quick-order-wrapper.component.html', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class QuickOrderListComponent {} | ||
export class QuickOrderComponent {} |
21 changes: 21 additions & 0 deletions
21
feature-libs/cart/quick-order/components/wrapper/quick-order-wrapper.module.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { CommonModule } from '@angular/common'; | ||
import { NgModule } from '@angular/core'; | ||
import { CmsConfig, provideDefaultConfig } from '@spartacus/core'; | ||
import { QuickOrderComponent } from './quick-order-wrapper.component'; | ||
|
||
@NgModule({ | ||
imports: [CommonModule], | ||
providers: [ | ||
provideDefaultConfig(<CmsConfig>{ | ||
cmsComponents: { | ||
QuickOrderComponent: { | ||
component: QuickOrderComponent, | ||
}, | ||
}, | ||
}), | ||
], | ||
declarations: [QuickOrderComponent], | ||
exports: [QuickOrderComponent], | ||
entryComponents: [QuickOrderComponent], | ||
}) | ||
export class QuickOrderWrapperModule {} |
29 changes: 29 additions & 0 deletions
29
projects/storefrontapp/src/app/spartacus/features/quick-order-feature.module.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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { | ||
quickOrderTranslationChunksConfig, | ||
quickOrderTranslations, | ||
} from '@spartacus/cart/quick-order/assets'; | ||
import { QuickOrderRootModule } from '@spartacus/cart/quick-order/root'; | ||
import { provideConfig } from '@spartacus/core'; | ||
|
||
@NgModule({ | ||
imports: [QuickOrderRootModule], | ||
providers: [ | ||
provideConfig({ | ||
featureModules: { | ||
cartQuickOrder: { | ||
module: () => | ||
import('@spartacus/cart/quick-order').then( | ||
(m) => m.QuickOrderModule | ||
), | ||
}, | ||
}, | ||
i18n: { | ||
resources: quickOrderTranslations, | ||
chunks: quickOrderTranslationChunksConfig, | ||
fallbackLang: 'en', | ||
}, | ||
}), | ||
], | ||
}) | ||
export class QuickOrderFeatureModule {} |
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