Skip to content

Commit

Permalink
Merge branch 'develop' into feature/CXSPA-8633__util
Browse files Browse the repository at this point in the history
  • Loading branch information
kpawelczak authored Oct 23, 2024
2 parents 5cd3660 + dec2c82 commit 7a1be00
Show file tree
Hide file tree
Showing 146 changed files with 3,771 additions and 1,464 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
node_modules
Expand Down Expand Up @@ -277,7 +277,7 @@ jobs:
- name: Notify the slack channel of when build conclusion failed
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_TOKEN }}
uses: slackapi/slack-github-action@v1.26.0
uses: slackapi/slack-github-action@v1.27.0
with:
channel-id: ${{ secrets.SLACK_NOTIFICATION_CHANNEL }}
payload: |
Expand Down
10 changes: 5 additions & 5 deletions core-libs/setup/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spartacus/setup",
"version": "2211.29.1",
"version": "2211.30.0",
"description": "Includes features that makes Spartacus and it's setup easier and streamlined.",
"keywords": [
"spartacus",
Expand All @@ -21,10 +21,10 @@
"peerDependencies": {
"@angular/core": "^17.0.5",
"@angular/ssr": "^17.0.5",
"@spartacus/cart": "2211.29.1",
"@spartacus/core": "2211.29.1",
"@spartacus/order": "2211.29.1",
"@spartacus/user": "2211.29.1"
"@spartacus/cart": "2211.30.0",
"@spartacus/core": "2211.30.0",
"@spartacus/order": "2211.30.0",
"@spartacus/user": "2211.30.0"
},
"optionalDependencies": {
"@angular/platform-server": "^17.0.5",
Expand Down
18 changes: 9 additions & 9 deletions feature-libs/asm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spartacus/asm",
"version": "2211.29.1",
"version": "2211.30.0",
"description": "ASM feature library for Spartacus",
"keywords": [
"spartacus",
Expand Down Expand Up @@ -32,14 +32,14 @@
"@ng-select/ng-select": "^12.0.4",
"@ngrx/effects": "^17.0.1",
"@ngrx/store": "^17.0.1",
"@spartacus/cart": "2211.29.1",
"@spartacus/core": "2211.29.1",
"@spartacus/order": "2211.29.1",
"@spartacus/schematics": "2211.29.1",
"@spartacus/storefinder": "2211.29.1",
"@spartacus/storefront": "2211.29.1",
"@spartacus/styles": "2211.29.1",
"@spartacus/user": "2211.29.1",
"@spartacus/cart": "2211.30.0",
"@spartacus/core": "2211.30.0",
"@spartacus/order": "2211.30.0",
"@spartacus/schematics": "2211.30.0",
"@spartacus/storefinder": "2211.30.0",
"@spartacus/storefront": "2211.30.0",
"@spartacus/styles": "2211.30.0",
"@spartacus/user": "2211.30.0",
"rxjs": "^7.8.0"
},
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@

// Top Bar
.asm-bar {
color: #fff;
background-color: #354a5f;
height: 48px;
display: flex;
padding: 0 2rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@

@media (min-width: 575px) {
margin-inline-end: 15px;
min-width: 20rem;
margin-bottom: 0;
min-width: 25rem;
}
Expand Down
1 change: 1 addition & 0 deletions feature-libs/cart/base/assets/translations/en/cart.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"coupon": "Have a coupon?",
"coupon_other": "Coupon codes",
"couponLabel": "Enter a promo code here",
"addCoupon": "Add a coupon",
"apply": "Apply",
"placeholder": "Promo code",
"applyVoucherSuccess": "{{voucherCode}} has been applied.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
*ngIf="hasStock"
[max]="maxQuantity"
[control]="addToCartForm.get('quantity')"
[ariaDescribedById]="'add-to-card-stock-info'"
></cx-item-counter>

<span class="info">
<span class="info" id="add-to-card-stock-info">
<span *ngIf="showInventory$ | async">{{ getInventory() }}</span>
{{
hasStock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<button
type="button"
class="close"
title="{{ 'common.close' | cxTranslate }}"
attr.aria-label="{{ 'addToCart.closeModal' | cxTranslate }}"
(click)="dismissModal('Cross click')"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
</ng-container>

<form (ngSubmit)="applyVoucher()" [formGroup]="couponForm">
<label class="cx-cart-coupon-title">
{{ 'voucher.coupon' | cxTranslate }}
<label id="card-coupon-input-label" class="cx-cart-coupon-title">
{{ 'voucher.addCoupon' | cxTranslate }}
<!-- TODO: (CXSPA-7479) Remove feature flags next major -->
<ng-container
*cxFeature="
Expand All @@ -22,6 +22,7 @@
>
<abbr
*cxFeature="'a11yRequiredAsterisks'"
aria-hidden="true"
class="text-decoration-none"
title="{{ 'common.required' | cxTranslate }}"
>*</abbr
Expand All @@ -37,7 +38,7 @@
"
>
<input
[attr.aria-label]="'voucher.couponLabel' | cxTranslate"
[attr.aria-labelledby]="'card-coupon-input-label'"
type="text"
class="form-control input-coupon-code"
formControlName="couponCode"
Expand All @@ -62,7 +63,7 @@
>
<!-- TODO: (CXSPA-7479) Remove feature flags next major -->
<input
[attr.aria-label]="'voucher.couponLabel' | cxTranslate"
[attr.aria-labelledby]="'card-coupon-input-label'"
required="true"
type="text"
class="form-control input-coupon-code"
Expand Down
12 changes: 6 additions & 6 deletions feature-libs/cart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spartacus/cart",
"version": "2211.29.1",
"version": "2211.30.0",
"description": "",
"keywords": [
"spartacus",
Expand Down Expand Up @@ -37,11 +37,11 @@
"@ng-select/ng-select": "^12.0.4",
"@ngrx/effects": "^17.0.1",
"@ngrx/store": "^17.0.1",
"@spartacus/core": "2211.29.1",
"@spartacus/schematics": "2211.29.1",
"@spartacus/storefront": "2211.29.1",
"@spartacus/styles": "2211.29.1",
"@spartacus/user": "2211.29.1",
"@spartacus/core": "2211.30.0",
"@spartacus/schematics": "2211.30.0",
"@spartacus/storefront": "2211.30.0",
"@spartacus/styles": "2211.30.0",
"@spartacus/user": "2211.30.0",
"bootstrap": "^4.6.2",
"rxjs": "^7.8.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<!-- TODO: (CXSPA-5953) Remove feature flags next major -->
<abbr
*cxFeature="'a11yRequiredAsterisks'"
aria-hidden="true"
class="text-decoration-none"
title="{{ 'common.required' | cxTranslate }}"
>*</abbr
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@
>{{ 'savedCartDialog.savedCartName' | cxTranslate }}
<abbr
*cxFeature="'a11yRequiredAsterisks'"
aria-hidden="true"
class="text-decoration-none"
title="{{ 'common.required' | cxTranslate }}"
>*</abbr
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import { Component } from '@angular/core';
import { Cart, OrderEntry } from '@spartacus/cart/base/root';
import { WishListFacade } from '@spartacus/cart/wish-list/root';
import { useFeatureStyles } from '@spartacus/core';
import { Observable } from 'rxjs';

@Component({
Expand All @@ -17,7 +18,9 @@ export class WishListComponent {
wishList$: Observable<Cart> = this.wishListFacade.getWishList();
loading$: Observable<boolean> = this.wishListFacade.getWishListLoading();

constructor(protected wishListFacade: WishListFacade) {}
constructor(protected wishListFacade: WishListFacade) {
useFeatureStyles('a11yVisibleFocusOverflows');
}

removeEntry(item: OrderEntry) {
this.wishListFacade.removeEntry(item);
Expand Down
6 changes: 6 additions & 0 deletions feature-libs/cart/wish-list/styles/_wish-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
}
}
}

@include forFeature('a11yVisibleFocusOverflows') {
.cx-remove-btn {
margin-top: 0.5rem;
}
}
}

.cx-empty-wish-list {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,12 @@
<ng-container *ngIf="countries$ | async as countries">
<div *ngIf="countries.length !== 0">
<label>
<span class="label-content required">{{
'addressForm.country' | cxTranslate
}}</span>
<span class="label-content required">
{{ 'addressForm.country' | cxTranslate }}
<ng-template
[ngTemplateOutlet]="requiredAsterisk"
></ng-template>
</span>
<ng-select
[inputAttrs]="{ required: 'true' }"
[searchable]="true"
Expand Down Expand Up @@ -346,9 +349,12 @@
</div>
<div class="form-group">
<label>
<span class="label-content required">{{
'addressForm.firstName.label' | cxTranslate
}}</span>
<span class="label-content required">
{{ 'addressForm.firstName.label' | cxTranslate }}
<ng-template
[ngTemplateOutlet]="requiredAsterisk"
></ng-template>
</span>
<input
required="true"
class="form-control"
Expand Down Expand Up @@ -376,9 +382,12 @@
</div>
<div class="form-group">
<label>
<span class="label-content required">{{
'addressForm.lastName.label' | cxTranslate
}}</span>
<span class="label-content required">
{{ 'addressForm.lastName.label' | cxTranslate }}
<ng-template
[ngTemplateOutlet]="requiredAsterisk"
></ng-template>
</span>
<input
required="true"
type="text"
Expand Down Expand Up @@ -406,9 +415,12 @@
</div>
<div class="form-group">
<label>
<span class="label-content required">{{
'addressForm.address1' | cxTranslate
}}</span>
<span class="label-content required">
{{ 'addressForm.address1' | cxTranslate }}
<ng-template
[ngTemplateOutlet]="requiredAsterisk"
></ng-template>
</span>
<input
required="true"
type="text"
Expand Down Expand Up @@ -450,9 +462,12 @@
<div class="row">
<div class="form-group col-md-6">
<label>
<span class="label-content required">{{
'addressForm.city.label' | cxTranslate
}}</span>
<span class="label-content required">
{{ 'addressForm.city.label' | cxTranslate }}
<ng-template
[ngTemplateOutlet]="requiredAsterisk"
></ng-template>
</span>
<input
required="true"
type="text"
Expand Down Expand Up @@ -480,9 +495,12 @@
</div>
<div class="form-group col-md-6">
<label>
<span class="label-content required">{{
'addressForm.zipCode.label' | cxTranslate
}}</span>
<span class="label-content required">
{{ 'addressForm.zipCode.label' | cxTranslate }}
<ng-template
[ngTemplateOutlet]="requiredAsterisk"
></ng-template>
</span>
<input
required="true"
type="text"
Expand Down Expand Up @@ -599,7 +617,9 @@
<ng-template #requiredAsterisk>
<abbr
*cxFeature="'a11yRequiredAsterisks'"
aria-hidden="true"
class="text-decoration-none"
aria-hidden="true"
title="{{ 'common.required' | cxTranslate }}"
>*</abbr
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
</a>
<abbr
*cxFeature="'a11yRequiredAsterisks'"
aria-hidden="true"
class="text-decoration-none"
title="{{ 'common.required' | cxTranslate }}"
>*</abbr
Expand Down
16 changes: 8 additions & 8 deletions feature-libs/checkout/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spartacus/checkout",
"version": "2211.29.1",
"version": "2211.30.0",
"description": "Checkout feature library for Spartacus",
"keywords": [
"spartacus",
Expand Down Expand Up @@ -32,13 +32,13 @@
"@angular/router": "^17.0.5",
"@ng-select/ng-select": "^12.0.4",
"@ngrx/store": "^17.0.1",
"@spartacus/cart": "2211.29.1",
"@spartacus/core": "2211.29.1",
"@spartacus/order": "2211.29.1",
"@spartacus/schematics": "2211.29.1",
"@spartacus/storefront": "2211.29.1",
"@spartacus/styles": "2211.29.1",
"@spartacus/user": "2211.29.1",
"@spartacus/cart": "2211.30.0",
"@spartacus/core": "2211.30.0",
"@spartacus/order": "2211.30.0",
"@spartacus/schematics": "2211.30.0",
"@spartacus/storefront": "2211.30.0",
"@spartacus/styles": "2211.30.0",
"@spartacus/user": "2211.30.0",
"bootstrap": "^4.6.2",
"rxjs": "^7.8.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ import { defaultCmsContentProviders, layoutConfig, mediaConfig } from "@spartacu
},
}), provideConfig(<FeaturesConfig>{
features: {
level: '2211.29'
level: '2211.30'
}
}), provideConfig(defaultB2bOccConfig)]
})
Expand Down Expand Up @@ -514,7 +514,7 @@ import { defaultCmsContentProviders, layoutConfig, mediaConfig } from "@spartacu
},
}), provideConfig(<FeaturesConfig>{
features: {
level: '2211.29'
level: '2211.30'
}
}), provideConfig(defaultB2bOccConfig)]
})
Expand Down
Loading

0 comments on commit 7a1be00

Please sign in to comment.