Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into feature/GH-3075
Browse files Browse the repository at this point in the history
  • Loading branch information
dydome committed Jun 16, 2021
2 parents 6222a53 + 8af89f6 commit 4d05687
Show file tree
Hide file tree
Showing 37 changed files with 301 additions and 316 deletions.
4 changes: 4 additions & 0 deletions docs/migration/4_0.md
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,10 @@ The following properties where removed in 4.0:

`AuthRedirectService` is a new, required constructor dependency.

### RoutingService
`RoutingService.go` - Removed 2nd argument `query`. Use `extras.queryParams` instead.
`RoutingService.navigate` - Removed 2nd argument `query`. Use `extras.queryParams` instead.

### AuthRedirectService

- `#reportNotAuthGuard` - method not needed anymore. Every visited URL is now remembered automatically as redirect URL on `NavigationEnd` event.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const navParamsOverview: any = {
params: { ownerType: 'cartEntry', entityKey: CART_ENTRY_KEY },
};

const attributes = {};
const mockOwner = mockProductConfiguration.owner;

const mockRouterData: ConfiguratorRouter.Data = {
Expand Down Expand Up @@ -249,10 +248,7 @@ describe('ConfigAddToCartButtonComponent', () => {
it('should navigate to OV in case configuration is cart bound and we are on product config page', () => {
mockRouterData.pageType = ConfiguratorRouter.PageType.CONFIGURATION;
performUpdateCart();
expect(routingService.go).toHaveBeenCalledWith(
navParamsOverview,
attributes
);
expect(routingService.go).toHaveBeenCalledWith(navParamsOverview);

expect(
configuratorGroupsService.setGroupStatusVisited
Expand Down Expand Up @@ -298,10 +294,7 @@ describe('ConfigAddToCartButtonComponent', () => {
it('should navigate to overview in case configuration has not been added yet and we are on configuration page', () => {
ensureProductBound();
component.onAddToCart(mockProductConfiguration, mockRouterData);
expect(routingService.go).toHaveBeenCalledWith(
navParamsOverview,
attributes
);
expect(routingService.go).toHaveBeenCalledWith(navParamsOverview);
});

it('should remove one configuration (cart bound) in case configuration has not yet been added and we are on configuration page', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,10 @@ export class ConfiguratorAddToCartButtonComponent {
configuratorType: string,
owner: CommonConfigurator.Owner
): void {
this.routingService.go(
{
cxRoute: 'configureOverview' + configuratorType,
params: { ownerType: 'cartEntry', entityKey: owner.id },
},
{}
);
this.routingService.go({
cxRoute: 'configureOverview' + configuratorType,
params: { ownerType: 'cartEntry', entityKey: owner.id },
});
}

protected displayConfirmationMessage(key: string): void {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
%cx-configurator-attribute-checkbox-list {
@include cx-configurator-attribute-type();

@include forVersion(3.3) {
.cx-quantity {
padding-block-end: 1rem;
}
.cx-quantity {
padding-block-end: 1rem;
}

.form-check input:disabled + .form-check-label {
color: var(--cx-color-text);
}
.form-check input:disabled + .form-check-label {
color: var(--cx-color-text);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
@include cx-configurator-attribute-type();
@include cx-configurator-form-group();

@include forVersion(3.3) {
cx-configurator-attribute-quantity {
padding-block-start: 1rem;
}
cx-configurator-attribute-quantity {
padding-block-start: 1rem;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
margin-inline-start: 17px;
margin-inline-end: 17px;

@include forVersion(3.3) {
margin-block-end: 17px;
}
margin-block-end: 17px;

label {
@include type('5');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
}
}

@include forVersion(3.3) {
.cx-quantity {
padding-block-end: 1rem;
}
.cx-quantity {
padding-block-end: 1rem;
}
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
%cx-configurator-form {
@include forVersion(3.3) {
width: 100%;
}
width: 100%;

.cx-group-attribute {
padding-inline-start: 20px;
padding-inline-end: 20px;

@include forVersion(3.3) {
padding-inline-start: 16px;
padding-inline-end: 16px;
}
padding-inline-start: 16px;
padding-inline-end: 16px;

padding-block-start: 12px;
padding-block-end: 12px;
Expand All @@ -27,14 +20,12 @@
}
}

@include forVersion(3.3) {
cx-item-counter {
&.readonly {
input {
border: solid 1px var(--cx-color-light);
min-height: 48px;
width: 10rem;
}
cx-item-counter {
&.readonly {
input {
border: solid 1px var(--cx-color-light);
min-height: 48px;
width: 10rem;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@
overflow: hidden;
line-break: anywhere;

@include forVersion(3.3) {
@include cx-configurator-truncate-content();
}
@include cx-configurator-truncate-content();
}

.groupIndicators {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
font-weight: 600;

@include media-breakpoint-up(md) {
width: 41.6666666667%;

@include forVersion(3.3) {
width: 40%;
}
width: 40%;
}
}

Expand All @@ -22,11 +18,7 @@
width: 100%;

@include media-breakpoint-up(md) {
width: 58.3333333333%;

@include forVersion(3.3) {
width: 60%;
}
width: 60%;
}
}
}
Loading

0 comments on commit 4d05687

Please sign in to comment.