Skip to content

Commit

Permalink
Merge branch 'main' into fix/chip-inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
danielleroux authored Feb 11, 2025
2 parents 135c896 + 5e5aa28 commit 9981289
Show file tree
Hide file tree
Showing 48 changed files with 494 additions and 159 deletions.
5 changes: 0 additions & 5 deletions .changeset/big-lemons-fetch.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/cold-shirts-vanish.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/curly-ears-talk.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dirty-garlics-unite.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/five-carrots-heal.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/hot-ligers-shout.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/itchy-sloths-destroy.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/khaki-moles-cry.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lemon-monkeys-leave.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/long-colts-double.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/long-meals-count.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/orange-geckos-hide.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/proud-cups-juggle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/slow-pugs-admire.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/small-pants-think.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/strong-bags-run.md

This file was deleted.

11 changes: 11 additions & 0 deletions packages/aggrid/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @siemens/ix-aggrid

## 2.2.3

### Patch Changes

- [#1660](https://github.com/siemens/ix/pull/1660) [`906172a739`](https://github.com/siemens/ix/commit/906172a7391f5c81eaa21f86deffd38e807920c6) Thanks [@matthiashader](https://github.com/matthiashader)! - align checkmark in `ag-grid` with ix-checkbox

- [#1624](https://github.com/siemens/ix/pull/1624) [`b016f93a16`](https://github.com/siemens/ix/commit/b016f93a16d2b4d04511225b75f043b167508682) Thanks [@jul-lam](https://github.com/jul-lam)! - Set typography globally for **ag-grid** theme.

- Updated dependencies [[`9b91179825`](https://github.com/siemens/ix/commit/9b911798254f74ea16ecb5144bc2a1dc3f4f80ce), [`d28d62160e`](https://github.com/siemens/ix/commit/d28d62160e69388089dec58040c915ca69749462), [`1625ddc001`](https://github.com/siemens/ix/commit/1625ddc001b451069a200da171fd1df92846c3a6), [`07c9f3d66e`](https://github.com/siemens/ix/commit/07c9f3d66e33ee2770dceaf0046fbdb52f882543), [`3f5d0a4f39`](https://github.com/siemens/ix/commit/3f5d0a4f39c589408f8f352a3c9ec039f42190b9), [`89801b1149`](https://github.com/siemens/ix/commit/89801b1149b18c580a4fee6563638a8883fad2d1), [`e2316d8b6d`](https://github.com/siemens/ix/commit/e2316d8b6d514217b97790f9a86bd1bbf30e7f44), [`4558698209`](https://github.com/siemens/ix/commit/455869820982501461b3d75c3f87fbdcf81fab01), [`0234ccf941`](https://github.com/siemens/ix/commit/0234ccf9419cd6fee18690106405da26d4e50bb6), [`6ce292968e`](https://github.com/siemens/ix/commit/6ce292968ed808e06cde79d459ee8b45a4edc6e4), [`72dd729926`](https://github.com/siemens/ix/commit/72dd729926578f6f9b78f2268a315b6e7d0d12cc), [`f3c8ab8b01`](https://github.com/siemens/ix/commit/f3c8ab8b01d6bbdf075f19e998f2aa33bde1d68a), [`9a5fff63e6`](https://github.com/siemens/ix/commit/9a5fff63e6230a95ce6f6abfe39c1256fb26b515), [`e263955649`](https://github.com/siemens/ix/commit/e263955649d8377ec592e81dfca1387e04936d94)]:
- @siemens/ix@2.7.0

## 2.2.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/aggrid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"directory": "packages/aggrid"
},
"description": "AG Grid theme based on ix theme variables",
"version": "2.2.2",
"version": "2.2.3",
"files": [
"LICENSE",
"README.md",
Expand Down Expand Up @@ -38,7 +38,7 @@
"ts-node": "^10.9.1"
},
"dependencies": {
"@siemens/ix": "~2.6.1"
"@siemens/ix": "~2.7.0"
},
"peerDependencies": {
"ag-grid-community": ">=28"
Expand Down
17 changes: 17 additions & 0 deletions packages/angular-test-app/src/preview-examples/input-types.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* SPDX-FileCopyrightText: 2025 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* Styles get overwritten by html-test-app css files each build or dev task.
* If you want to modify the example styles do this only inside the html-test-app
*/

ix-input {
margin-bottom: 1rem;
width: 11rem;
}
5 changes: 3 additions & 2 deletions packages/angular-test-app/src/preview-examples/input-types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
* SPDX-FileCopyrightText: 2025 Siemens AG
*
* SPDX-License-Identifier: MIT
*
Expand All @@ -11,6 +11,7 @@ import { Component } from '@angular/core';

@Component({
selector: 'app-example',
templateUrl: './input-types.html'
templateUrl: './input-types.html',
styleUrls: ['./input-types.css'],
})
export default class InputTypes {}
17 changes: 17 additions & 0 deletions packages/angular/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# @siemens/ix-angular

## 2.7.0

### Minor Changes

- [#1654](https://github.com/siemens/ix/pull/1654) [`07c9f3d66e`](https://github.com/siemens/ix/commit/07c9f3d66e33ee2770dceaf0046fbdb52f882543) Thanks [@nuke-ellington](https://github.com/nuke-ellington)! - Add openAppSwitch event to **ix-application-header** and **ix-menu**.

- [#1669](https://github.com/siemens/ix/pull/1669) [`6ce292968e`](https://github.com/siemens/ix/commit/6ce292968ed808e06cde79d459ee8b45a4edc6e4) Thanks [@AndreasBerliner](https://github.com/AndreasBerliner)! - Prevent `ix-select` list items to expand beyond screen width and add properties: dropdown-width + dropdown-max-width

- [#1635](https://github.com/siemens/ix/pull/1635) [`9a5fff63e6`](https://github.com/siemens/ix/commit/9a5fff63e6230a95ce6f6abfe39c1256fb26b515) Thanks [@matthiashader](https://github.com/matthiashader)! - Add additional button properties to **ix-date-dropdown** and **ix-expanding-search**.

### Patch Changes

- [#1665](https://github.com/siemens/ix/pull/1665) [`72dd729926`](https://github.com/siemens/ix/commit/72dd729926578f6f9b78f2268a315b6e7d0d12cc) Thanks [@danielleroux](https://github.com/danielleroux)! - Prevent `value-accessor` from removing validation classes if component is not controlled by NgControl

- Updated dependencies [[`9b91179825`](https://github.com/siemens/ix/commit/9b911798254f74ea16ecb5144bc2a1dc3f4f80ce), [`d28d62160e`](https://github.com/siemens/ix/commit/d28d62160e69388089dec58040c915ca69749462), [`1625ddc001`](https://github.com/siemens/ix/commit/1625ddc001b451069a200da171fd1df92846c3a6), [`07c9f3d66e`](https://github.com/siemens/ix/commit/07c9f3d66e33ee2770dceaf0046fbdb52f882543), [`3f5d0a4f39`](https://github.com/siemens/ix/commit/3f5d0a4f39c589408f8f352a3c9ec039f42190b9), [`89801b1149`](https://github.com/siemens/ix/commit/89801b1149b18c580a4fee6563638a8883fad2d1), [`e2316d8b6d`](https://github.com/siemens/ix/commit/e2316d8b6d514217b97790f9a86bd1bbf30e7f44), [`4558698209`](https://github.com/siemens/ix/commit/455869820982501461b3d75c3f87fbdcf81fab01), [`0234ccf941`](https://github.com/siemens/ix/commit/0234ccf9419cd6fee18690106405da26d4e50bb6), [`6ce292968e`](https://github.com/siemens/ix/commit/6ce292968ed808e06cde79d459ee8b45a4edc6e4), [`72dd729926`](https://github.com/siemens/ix/commit/72dd729926578f6f9b78f2268a315b6e7d0d12cc), [`f3c8ab8b01`](https://github.com/siemens/ix/commit/f3c8ab8b01d6bbdf075f19e998f2aa33bde1d68a), [`9a5fff63e6`](https://github.com/siemens/ix/commit/9a5fff63e6230a95ce6f6abfe39c1256fb26b515), [`e263955649`](https://github.com/siemens/ix/commit/e263955649d8377ec592e81dfca1387e04936d94)]:
- @siemens/ix@2.7.0

## 2.6.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/siemens/ix",
"directory": "packages/angular"
},
"version": "2.6.1",
"version": "2.7.0",
"description": "Siemens iX for Angular",
"scripts": {
"build": "ng-packagr -c tsconfig.json",
Expand All @@ -16,7 +16,7 @@
},
"license": "MIT",
"dependencies": {
"@siemens/ix": "~2.6.1"
"@siemens/ix": "~2.7.0"
},
"peerDependencies": {
"@angular/core": ">=13.4.0",
Expand Down
40 changes: 40 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# @siemens/ix

## 2.7.0

### Minor Changes

- [#1654](https://github.com/siemens/ix/pull/1654) [`07c9f3d66e`](https://github.com/siemens/ix/commit/07c9f3d66e33ee2770dceaf0046fbdb52f882543) Thanks [@nuke-ellington](https://github.com/nuke-ellington)! - Add openAppSwitch event to **ix-application-header** and **ix-menu**.

- [#1609](https://github.com/siemens/ix/pull/1609) [`89801b1149`](https://github.com/siemens/ix/commit/89801b1149b18c580a4fee6563638a8883fad2d1) Thanks [@danielleroux](https://github.com/danielleroux)! - Add `meta`-tag feature to disable default load of `@siemens/ix-icons`

```html
<meta name="ix:legacy-icons" content="false" />
```

In addition the warning is removed if no icon component is provided.

- [#1669](https://github.com/siemens/ix/pull/1669) [`6ce292968e`](https://github.com/siemens/ix/commit/6ce292968ed808e06cde79d459ee8b45a4edc6e4) Thanks [@AndreasBerliner](https://github.com/AndreasBerliner)! - Prevent `ix-select` list items to expand beyond screen width and add properties: dropdown-width + dropdown-max-width

- [#1635](https://github.com/siemens/ix/pull/1635) [`9a5fff63e6`](https://github.com/siemens/ix/commit/9a5fff63e6230a95ce6f6abfe39c1256fb26b515) Thanks [@matthiashader](https://github.com/matthiashader)! - Add additional button properties to **ix-date-dropdown** and **ix-expanding-search**.

### Patch Changes

- [#1658](https://github.com/siemens/ix/pull/1658) [`9b91179825`](https://github.com/siemens/ix/commit/9b911798254f74ea16ecb5144bc2a1dc3f4f80ce) Thanks [@AndreasBerliner](https://github.com/AndreasBerliner)! - Adjust `ix-pill` spacing between text + icon and icon only

- [#1659](https://github.com/siemens/ix/pull/1659) [`d28d62160e`](https://github.com/siemens/ix/commit/d28d62160e69388089dec58040c915ca69749462) Thanks [@matthiashader](https://github.com/matthiashader)! - Fix `ix-select` in editable mode to correctly select a known item when confirmed with Enter.

- [#1648](https://github.com/siemens/ix/pull/1648) [`1625ddc001`](https://github.com/siemens/ix/commit/1625ddc001b451069a200da171fd1df92846c3a6) Thanks [@AndreasBerliner](https://github.com/AndreasBerliner)! - Fix **ix-select** keyboard navigation and wrap behavior when new items are created

- [#1652](https://github.com/siemens/ix/pull/1652) [`3f5d0a4f39`](https://github.com/siemens/ix/commit/3f5d0a4f39c589408f8f352a3c9ec039f42190b9) Thanks [@danielleroux](https://github.com/danielleroux)! - Fix the disable state of `ix-checkbox` if `disabled=undefined` is provided.

- [#1617](https://github.com/siemens/ix/pull/1617) [`e2316d8b6d`](https://github.com/siemens/ix/commit/e2316d8b6d514217b97790f9a86bd1bbf30e7f44) Thanks [@nuke-ellington](https://github.com/nuke-ellington)! - Automatically expand **ix-menu-category** if nested menu item becomes active.

- [#1672](https://github.com/siemens/ix/pull/1672) [`4558698209`](https://github.com/siemens/ix/commit/455869820982501461b3d75c3f87fbdcf81fab01) Thanks [@matthiashader](https://github.com/matthiashader)! - Fix initial overlapping between value and end slots on `ix-input`, `ix-number-input` and `ix-date-input`

- [#1666](https://github.com/siemens/ix/pull/1666) [`0234ccf941`](https://github.com/siemens/ix/commit/0234ccf9419cd6fee18690106405da26d4e50bb6) Thanks [@nuke-ellington](https://github.com/nuke-ellington)! - Fix padding for **ix-textarea**.

- [#1665](https://github.com/siemens/ix/pull/1665) [`72dd729926`](https://github.com/siemens/ix/commit/72dd729926578f6f9b78f2268a315b6e7d0d12cc) Thanks [@danielleroux](https://github.com/danielleroux)! - Fix behavior where internal validation logic removes validation classes from `ix-input`, `ix-input-number` etc.

- [#1651](https://github.com/siemens/ix/pull/1651) [`f3c8ab8b01`](https://github.com/siemens/ix/commit/f3c8ab8b01d6bbdf075f19e998f2aa33bde1d68a) Thanks [@ridvandmrc](https://github.com/ridvandmrc)! - Fix the disable state of `ix-radio` if `disabled=undefined` is provided.

- [#1621](https://github.com/siemens/ix/pull/1621) [`e263955649`](https://github.com/siemens/ix/commit/e263955649d8377ec592e81dfca1387e04936d94) Thanks [@AndreasBerliner](https://github.com/AndreasBerliner)! - Set correct cursors and handle overflow for **ix-card** and **ix-push-card**.

## 2.6.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/siemens/ix",
"directory": "packages/core"
},
"version": "2.6.1",
"version": "2.7.0",
"license": "MIT",
"description": "Siemens iX Web Components",
"main": "dist/index.cjs.js",
Expand Down
23 changes: 15 additions & 8 deletions packages/core/src/components/date-input/date-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ import {
import { DateTime } from 'luxon';
import { dropdownController } from '../dropdown/dropdown-controller';
import { SlotEnd, SlotStart } from '../input/input.fc';
import { adjustPaddingForStartAndEnd } from '../input/input.util';
import {
DisposableChangesAndVisibilityObservers,
addDisposableChangesAndVisibilityObservers,
adjustPaddingForStartAndEnd,
} from '../input/input.util';
import {
ClassMutationObserver,
HookValidationLifecycle,
Expand Down Expand Up @@ -174,6 +178,8 @@ export class DateInput implements IxInputFieldComponent<string> {
private classObserver?: ClassMutationObserver;
private invalidReason?: string;

private disposableChangesAndVisibilityObservers?: DisposableChangesAndVisibilityObservers;

updateFormInternalValue(value: string): void {
this.formInternals.setFormValue(value);
this.value = value;
Expand All @@ -183,6 +189,12 @@ export class DateInput implements IxInputFieldComponent<string> {
this.classObserver = createClassMutationObserver(this.hostElement, () =>
this.checkClassList()
);

this.disposableChangesAndVisibilityObservers =
addDisposableChangesAndVisibilityObservers(
this.hostElement,
this.updatePaddings.bind(this)
);
}

componentWillLoad(): void {
Expand All @@ -197,10 +209,6 @@ export class DateInput implements IxInputFieldComponent<string> {
this.updateFormInternalValue(this.value);
}

componentDidRender(): void {
this.updatePaddings();
}

private updatePaddings() {
adjustPaddingForStartAndEnd(
this.slotStartRef.current,
Expand All @@ -210,9 +218,8 @@ export class DateInput implements IxInputFieldComponent<string> {
}

disconnectedCallback(): void {
if (this.classObserver) {
this.classObserver.destroy();
}
this.classObserver?.destroy();
this.disposableChangesAndVisibilityObservers?.();
}

@Watch('value')
Expand Down
16 changes: 14 additions & 2 deletions packages/core/src/components/input/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ import {
import { makeRef } from '../utils/make-ref';
import { InputElement, SlotEnd, SlotStart } from './input.fc';
import {
addDisposableChangesAndVisibilityObservers,
adjustPaddingForStartAndEnd,
checkAllowedKeys,
DisposableChangesAndVisibilityObservers,
getAriaAttributesForInput,
mapValidationResult,
onInputBlur,
Expand Down Expand Up @@ -174,6 +176,8 @@ export class Input implements IxInputFieldComponent<string> {

private readonly inputId = `input-${inputIds++}`;

private disposableChangesAndVisibilityObservers?: DisposableChangesAndVisibilityObservers;

@HookValidationLifecycle()
updateClassMappings(result: ValidationResults) {
mapValidationResult(this, result);
Expand All @@ -189,8 +193,12 @@ export class Input implements IxInputFieldComponent<string> {
this.inputType = this.type;
}

componentDidRender() {
this.updatePaddings();
connectedCallback(): void {
this.disposableChangesAndVisibilityObservers =
addDisposableChangesAndVisibilityObservers(
this.hostElement,
this.updatePaddings.bind(this)
);
}

private updatePaddings() {
Expand All @@ -201,6 +209,10 @@ export class Input implements IxInputFieldComponent<string> {
);
}

disconnectedCallback(): void {
this.disposableChangesAndVisibilityObservers?.();
}

updateFormInternalValue(value: string) {
this.formInternals.setFormValue(value);
this.value = value;
Expand Down
Loading

0 comments on commit 9981289

Please sign in to comment.