Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into release-2211.32.0-1
Browse files Browse the repository at this point in the history
  • Loading branch information
rmch91 committed Nov 26, 2024
2 parents 7440c0a + 688476e commit 2c592b2
Show file tree
Hide file tree
Showing 76 changed files with 756 additions and 121 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
[routerLink]="{ cxRoute: 'cart' } | cxUrl"
(click)="dismissModal('View Cart click')"
class="btn btn-primary"
cxBtnLikeLink
autofocus
>{{ 'addToCart.viewCart' | cxTranslate }}</a
>
Expand All @@ -130,6 +131,7 @@
[routerLink]="{ cxRoute: 'checkout' } | cxUrl"
(click)="dismissModal('Proceed To Checkout click')"
class="btn btn-secondary"
cxBtnLikeLink
>{{ 'addToCart.proceedToCheckout' | cxTranslate }}</a
>
</ng-container>
Expand Down Expand Up @@ -273,6 +275,7 @@
[routerLink]="{ cxRoute: 'cart' } | cxUrl"
(click)="dismissModal('View Cart click')"
class="btn btn-primary"
cxBtnLikeLink
autofocus
>{{ 'addToCart.viewCart' | cxTranslate }}</a
>
Expand All @@ -281,6 +284,7 @@
[routerLink]="{ cxRoute: 'checkout' } | cxUrl"
(click)="dismissModal('Proceed To Checkout click')"
class="btn btn-secondary"
cxBtnLikeLink
>{{ 'addToCart.proceedToCheckout' | cxTranslate }}</a
>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
UrlModule,
} from '@spartacus/core';
import {
BtnLikeLinkModule,
IconModule,
ItemCounterModule,
KeyboardFocusModule,
Expand All @@ -40,6 +41,7 @@ import { defaultAddedToCartLayoutConfig } from './default-added-to-cart-layout.c
ItemCounterModule,
KeyboardFocusModule,
FeaturesConfigModule,
BtnLikeLinkModule,
],
providers: [provideDefaultConfig(defaultAddedToCartLayoutConfig)],
declarations: [AddedToCartDialogComponent],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
<a
class="btn btn-link button-add-link cx-action-link"
[routerLink]="{ cxRoute: 'login' } | cxUrl"
cxBtnLikeLink
>
<cx-icon aria-hidden="true" [type]="iconTypes.EMPTY_HEART"></cx-icon>
<span class="button-text">{{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ import {
provideDefaultConfig,
UrlModule,
} from '@spartacus/core';
import { AtMessageModule, IconModule } from '@spartacus/storefront';
import {
AtMessageModule,
BtnLikeLinkModule,
IconModule,
} from '@spartacus/storefront';
import { AddToWishListComponent } from './add-to-wish-list.component';

@NgModule({
Expand All @@ -26,6 +30,7 @@ import { AddToWishListComponent } from './add-to-wish-list.component';
UrlModule,
AtMessageModule,
FeaturesConfigModule,
BtnLikeLinkModule,
],
providers: [
provideDefaultConfig(<CmsConfig>{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ describe('CheckoutPaymentMethodComponent', () => {
fixture.detectChanges();
fixture.debugElement
.queryAll(By.css('cx-card'))[1]
.query(By.css('.link'))
.query(By.css('.btn'))
.nativeElement.click();

expect(mockCheckoutPaymentService.setPaymentDetails).toHaveBeenCalledWith(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<div class="col-xs-12 col-md-4 col-lg-3">
<a
role="button"
[routerLink]="
{
cxRoute: backRoute,
params: { code: orderCode },
} | cxUrl
"
cxBtnLikeLink
class="btn btn-block btn-secondary"
>
{{ 'common.back' | cxTranslate }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@ import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { I18nModule, UrlModule } from '@spartacus/core';
import { AmendOrderActionsComponent } from './amend-order-actions.component';
import { BtnLikeLinkModule } from '@spartacus/storefront';

@NgModule({
imports: [CommonModule, RouterModule, UrlModule, I18nModule],
imports: [
CommonModule,
RouterModule,
UrlModule,
I18nModule,
BtnLikeLinkModule,
],
declarations: [AmendOrderActionsComponent],
exports: [AmendOrderActionsComponent],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,28 @@

<div class="col-xs-12 col-md-4 col-lg-3">
<a
role="button"
*ngIf="order.cancellable"
[routerLink]="
{
cxRoute: 'orderCancel',
params: order,
} | cxUrl
"
cxBtnLikeLink
class="btn btn-block btn-secondary"
>
{{ 'orderDetails.cancellationAndReturn.cancelAction' | cxTranslate }}
</a>

<a
role="button"
*ngIf="order.returnable"
[routerLink]="
{
cxRoute: 'orderReturn',
params: order,
} | cxUrl
"
cxBtnLikeLink
class="btn btn-block btn-secondary"
>
{{ 'orderDetails.cancellationAndReturn.returnAction' | cxTranslate }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {
PromotionsModule,
ProvideOutletOptions,
SpinnerModule,
BtnLikeLinkModule,
} from '@spartacus/storefront';
import {
MyAccountV2ConsignmentTrackingComponent,
Expand Down Expand Up @@ -110,6 +111,7 @@ const moduleComponents = [
IconModule,
MyAccountV2DownloadInvoicesModule,
AbstractOrderContextModule,
BtnLikeLinkModule,
],
providers: [
OrderOverviewComponentService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ <h2 *ngIf="!type.replenishmentOrder">
[routerLink]="{ cxRoute: 'home' } | cxUrl"
routerLinkActive="active"
class="btn btn-primary btn-block"
cxBtnLikeLink
>{{ 'orderHistory.startShopping' | cxTranslate }}</a
>
</ng-template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
UrlModule,
} from '@spartacus/core';
import {
BtnLikeLinkModule,
ListNavigationModule,
MediaModule,
SpinnerModule,
Expand Down Expand Up @@ -56,6 +57,7 @@ const moduleComponents = [
I18nModule,
SpinnerModule,
MediaModule,
BtnLikeLinkModule,
],
declarations: [OrderHistoryComponent, ...moduleComponents],
exports: [OrderHistoryComponent, ...moduleComponents],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<div class="cx-cancel-replenishment-btns row">
<div class="col-xs-12 col-md-5 col-lg-4">
<a
role="button"
class="btn btn-block btn-secondary"
[routerLink]="
{
cxRoute: 'replenishmentOrders',
} | cxUrl
"
cxBtnLikeLink
>
{{ 'common.back' | cxTranslate }}
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
UrlModule,
} from '@spartacus/core';
import {
BtnLikeLinkModule,
CardModule,
ListNavigationModule,
PromotionsModule,
Expand Down Expand Up @@ -42,6 +43,7 @@ const moduleComponents = [ReplenishmentOrderCancellationComponent];
SpinnerModule,
ListNavigationModule,
RouterModule,
BtnLikeLinkModule,
],
providers: [
provideDefaultConfig(defaultReplenishmentOrderCancellationLayoutConfig),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ <h3>
[routerLink]="{ cxRoute: 'home' } | cxUrl"
routerLinkActive="active"
class="btn btn-primary btn-block"
cxBtnLikeLink
>{{ 'orderHistory.startShopping' | cxTranslate }}</a
>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
provideDefaultConfig,
UrlModule,
} from '@spartacus/core';
import { ListNavigationModule } from '@spartacus/storefront';
import { BtnLikeLinkModule, ListNavigationModule } from '@spartacus/storefront';
import { defaultReplenishmentOrderCancellationLayoutConfig } from '../replenishment-order-details/default-replenishment-order-cancellation-layout.config';
import { ReplenishmentOrderHistoryComponent } from './replenishment-order-history.component';

Expand All @@ -26,6 +26,7 @@ import { ReplenishmentOrderHistoryComponent } from './replenishment-order-histor
ListNavigationModule,
UrlModule,
I18nModule,
BtnLikeLinkModule,
FeaturesConfigModule,
],
providers: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@
<div class="form-group row">
<div class="col-lg-4 col-md-12">
<a
role="button"
[routerLink]="{ cxRoute: 'orderApprovals' } | cxUrl"
class="btn btn-block btn-secondary"
cxBtnLikeLink
>{{ 'orderApprovalDetails.back' | cxTranslate }}</a
>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ import {
OrderDetailsService,
OrderOverviewComponent,
} from '@spartacus/order/components';
import { FormErrorsModule, SpinnerModule } from '@spartacus/storefront';
import {
BtnLikeLinkModule,
FormErrorsModule,
SpinnerModule,
} from '@spartacus/storefront';
import { ApproverGuard } from '../../core/guards/approver.guard';
import { OrderApprovalDetailFormComponent } from './order-approval-detail-form/order-approval-detail-form.component';
import { OrderApprovalDetailService } from './order-approval-detail.service';
Expand All @@ -37,6 +41,7 @@ import { OrderDetailPermissionResultsComponent } from './order-detail-permission
FormErrorsModule,
SpinnerModule,
RouterModule,
BtnLikeLinkModule,
ConfigModule.withConfig(<CmsConfig>{
cmsComponents: {
OrderApprovalDetailTotalsComponent: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@
[routerLink]="{ cxRoute: 'home' } | cxUrl"
routerLinkActive="active"
class="btn btn-primary btn-block"
cxBtnLikeLink
>{{ 'unitLevelOrderHistory.startShopping' | cxTranslate }}</a
>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import {
provideDefaultConfig,
UrlModule,
} from '@spartacus/core';
import { BtnLikeLinkModule, ListNavigationModule } from '@spartacus/storefront';
import { UnitLevelOrdersViewerGuard } from '@spartacus/organization/unit-order/core';
import { ListNavigationModule } from '@spartacus/storefront';
import { UnitLevelOrderHistoryFilterModule } from './filter/unit-level-order-history-filter.module';
import { UnitLevelOrderHistoryComponent } from './unit-level-order-history.component';

Expand All @@ -32,6 +32,7 @@ import { UnitLevelOrderHistoryComponent } from './unit-level-order-history.compo
UrlModule,
I18nModule,
UnitLevelOrderHistoryFilterModule,
BtnLikeLinkModule,
FeaturesConfigModule,
],
declarations: [UnitLevelOrderHistoryComponent],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
"cartItems": {
"item": "Item"
},
"cardActions": {
"getDirections": "Get Directions, this link opens in a new window"
},
"deliveryPointOfServiceDetails": {
"itemsToBePickUp": "Items To Be Pick-Up",
"pickUpInStoreAddress": "Pick Up Store Address",
Expand Down
Loading

0 comments on commit 2c592b2

Please sign in to comment.