@synergy-design-system/mcp 2.8.1 β†’ 2.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.8.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1214](https://github.com/synergy-design-system/synergy-design-system/pull/1214) [`01c5e9c`](https://github.com/synergy-design-system/synergy-design-system/commit/01c5e9cc231c6bcc260cedc2f5d5713cf71ea254) Thanks [@schilchSICKAG](https://github.com/schilchSICKAG)! - Released on: 2026-03-06
8
+
9
+ fix: πŸ› Angular: `<syn-validate>` does not work when dynamically added to the DOM (#851)
10
+
11
+ This release fixes an issue that made `<syn-validate>` ignore its set `customValidationMessage` when the component gets dynamically added to the DOM in Angular. It does so by preferring the provided `customValidationMessage` over of the internally available `validationMessage`, which could be empty under certain conditions.
12
+
3
13
  ## 2.8.1
4
14
 
5
15
  ### Patch Changes
@@ -1 +1 @@
1
- fd0fb372f326cb0b33ccba89f91bce9a
1
+ 5682e415ee9342f4cf05aadd3e23b010
@@ -283,6 +283,16 @@ export default class SynValidate extends SynergyElement {
283
283
  });
284
284
  }
285
285
 
286
+ /**
287
+ * #851: Get the validation message that should be displayed to the user.
288
+ * Prioritizes customValidationMessage over the internal validationMessage state.
289
+ * This is needed because frameworks may clear the internal validation message on
290
+ * dynamically rendered elements, but the customValidationMessage is still valid.
291
+ */
292
+ private getDisplayValidationMessage(): string {
293
+ return this.customValidationMessage || this.validationMessage;
294
+ }
295
+
286
296
  private setValidationMessage(input: HTMLInputElement) {
287
297
  const { customValidationMessage } = this;
288
298
  const validationMessage = customValidationMessage || input.validationMessage;
@@ -514,10 +524,11 @@ export default class SynValidate extends SynergyElement {
514
524
  // we need to update the content and show or hide it based on the validation state and focus state.
515
525
  // We have to do this manually, as there is a problem when updating open and content at the same time.
516
526
  // The order is critical: fill before showing, donΒ΄t update the content during hide.
517
- const shouldShowTooltip = !this.isValid && this.validationMessage && this.hasFocus;
527
+ const displayMessage = this.getDisplayValidationMessage();
528
+ const shouldShowTooltip = !this.isValid && displayMessage && this.hasFocus;
518
529
 
519
530
  if (shouldShowTooltip) {
520
- tooltip.content = this.validationMessage;
531
+ tooltip.content = displayMessage;
521
532
  // eslint-disable-next-line @typescript-eslint/no-floating-promises
522
533
  tooltip.show();
523
534
  } else {
@@ -527,7 +538,9 @@ export default class SynValidate extends SynergyElement {
527
538
  }
528
539
 
529
540
  private renderInlineValidation() {
530
- if (this.variant !== 'inline' || !this.validationMessage) {
541
+ const messageToShow = this.getDisplayValidationMessage();
542
+
543
+ if (this.variant !== 'inline' || !messageToShow) {
531
544
  return '';
532
545
  }
533
546
 
@@ -543,7 +556,7 @@ export default class SynValidate extends SynergyElement {
543
556
  ? html`<syn-icon slot="icon" name="status-error" library="system"></syn-icon>`
544
557
  : ''
545
558
  }
546
- ${this.validationMessage}
559
+ ${messageToShow}
547
560
  </syn-alert>
548
561
  `;
549
562
  }
@@ -555,7 +568,7 @@ export default class SynValidate extends SynergyElement {
555
568
  <syn-tooltip
556
569
  .anchor=${getActualInputElement(this.getInput()) as Element ?? undefined}
557
570
  exportparts="base:tooltip__base,base__popup:tooltip__popup,base__arrow:tooltip__arrow,body:tooltip__body"
558
- .open=${this.eager ? !this.isValid && this.validationMessage.length > 0 : false}
571
+ .open=${this.eager ? !this.isValid && this.getDisplayValidationMessage().length > 0 : false}
559
572
  part="tooltip"
560
573
  placement="bottom"
561
574
  trigger="manual"
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1214](https://github.com/synergy-design-system/synergy-design-system/pull/1214) [`01c5e9c`](https://github.com/synergy-design-system/synergy-design-system/commit/01c5e9cc231c6bcc260cedc2f5d5713cf71ea254) Thanks [@schilchSICKAG](https://github.com/schilchSICKAG)! - Released on: 2026-03-06
8
+
9
+ fix: πŸ› Angular: `<syn-validate>` does not work when dynamically added to the DOM (#851)
10
+
11
+ This release fixes an issue that made `<syn-validate>` ignore its set `customValidationMessage` when the component gets dynamically added to the DOM in Angular. It does so by preferring the provided `customValidationMessage` over of the internally available `validationMessage`, which could be empty under certain conditions.
12
+
13
+ - Updated dependencies []:
14
+ - @synergy-design-system/tokens@3.6.2
15
+
3
16
  ## 3.6.1
4
17
 
5
18
  ### Patch Changes
@@ -1,5 +1,7 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.6.2
4
+
3
5
  ## 3.6.1
4
6
 
5
7
  ## 3.6.0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 3.6.0
2
+ * @synergy-design-system/tokens version 3.6.1
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly, this file was auto-generated.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 3.6.0
2
+ * @synergy-design-system/tokens version 3.6.1
3
3
  * SICK Global UX Foundation
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 3.6.0
2
+ * @synergy-design-system/tokens version 3.6.1
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly, this file was auto-generated.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 3.6.0
2
+ * @synergy-design-system/tokens version 3.6.1
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly, this file was auto-generated.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 3.6.0
2
+ * @synergy-design-system/tokens version 3.6.1
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly, this file was auto-generated.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 3.6.0
2
+ * @synergy-design-system/tokens version 3.6.1
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly, this file was auto-generated.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 3.6.0
2
+ * @synergy-design-system/tokens version 3.6.1
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly, this file was auto-generated.
5
5
  */
package/package.json CHANGED
@@ -28,12 +28,12 @@
28
28
  "serve-handler": "^6.1.6",
29
29
  "ts-jest": "^29.4.6",
30
30
  "typescript": "^5.9.3",
31
+ "@synergy-design-system/components": "3.6.2",
31
32
  "@synergy-design-system/docs": "0.1.0",
32
- "@synergy-design-system/eslint-config-syn": "^0.1.0",
33
- "@synergy-design-system/components": "3.6.1",
34
33
  "@synergy-design-system/fonts": "1.0.3",
34
+ "@synergy-design-system/eslint-config-syn": "^0.1.0",
35
35
  "@synergy-design-system/styles": "2.0.1",
36
- "@synergy-design-system/tokens": "^3.6.1"
36
+ "@synergy-design-system/tokens": "^3.6.2"
37
37
  },
38
38
  "exports": {
39
39
  ".": {
@@ -67,7 +67,7 @@
67
67
  "directory": "packages/mcp"
68
68
  },
69
69
  "type": "module",
70
- "version": "2.8.1",
70
+ "version": "2.8.2",
71
71
  "scripts": {
72
72
  "build": "pnpm run build:ts && pnpm run build:metadata && pnpm build:hash",
73
73
  "build:all": "pnpm run build && pnpm run build:storybook",