@breadstone/mosaik-elements-angular 0.0.200 → 0.0.202

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,3 +1,13 @@
1
+ ## 0.0.202 (2025-12-06)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **error, hint:** add textOverflow property to Error and Hint components ([131d8bec1e](https://github.com/RueDeRennes/mosaik/commit/131d8bec1e))
6
+
7
+ ### 🩹 Fixes
8
+
9
+ - **forms:** update SignalFormValidator to handle nested structures correctly ([49d0fdab8f](https://github.com/RueDeRennes/mosaik/commit/49d0fdab8f))
10
+
1
11
  ## 0.0.201 (2025-12-05)
2
12
 
3
13
  This was a version bump only for mosaik-elements-angular to align it with other projects, there were no code changes.
@@ -24997,6 +24997,16 @@ let ErrorComponent = class ErrorComponent {
24997
24997
  this._element.text = value;
24998
24998
  });
24999
24999
  }
25000
+ get textOverflow() {
25001
+ // @ts-ignore - temporary fix for the type error
25002
+ return this._element.textOverflow;
25003
+ }
25004
+ set textOverflow(value) {
25005
+ this._zone.runOutsideAngular(() => {
25006
+ // @ts-ignore - temporary fix for the type error
25007
+ this._element.textOverflow = value;
25008
+ });
25009
+ }
25000
25010
  get themeName() {
25001
25011
  // @ts-ignore - temporary fix for the type error
25002
25012
  return this._element.themeName;
@@ -25068,12 +25078,12 @@ let ErrorComponent = class ErrorComponent {
25068
25078
  }
25069
25079
  }
25070
25080
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: ErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
25071
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.2", type: ErrorComponent, isStandalone: true, selector: "mosaik-error", inputs: { text: "text", themeName: "themeName", enter: "enter", exit: "exit", dir: "dir", lang: "lang" }, outputs: { connected: "connected", disconnected: "disconnected", changed: "changed" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
25081
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.2", type: ErrorComponent, isStandalone: true, selector: "mosaik-error", inputs: { text: "text", textOverflow: "textOverflow", themeName: "themeName", enter: "enter", exit: "exit", dir: "dir", lang: "lang" }, outputs: { connected: "connected", disconnected: "disconnected", changed: "changed" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
25072
25082
  };
25073
25083
  ErrorComponent = __decorate$25([
25074
25084
  ProxyCmp({
25075
25085
  defineCustomElementFn: () => customElements.define('mosaik-error', ErrorElement),
25076
- inputs: ['text', 'themeName', 'enter', 'exit', 'dir', 'lang'],
25086
+ inputs: ['text', 'textOverflow', 'themeName', 'enter', 'exit', 'dir', 'lang'],
25077
25087
  methods: ['onEnterAnimation', 'onExitAnimation', 'play', 'adoptStyle', 'on', 'off', 'emit', 'requestUpdate']
25078
25088
  }),
25079
25089
  __metadata$25("design:paramtypes", [])
@@ -25085,11 +25095,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImpor
25085
25095
  standalone: true,
25086
25096
  changeDetection: ChangeDetectionStrategy.OnPush,
25087
25097
  template: '<ng-content></ng-content>',
25088
- inputs: ['text', 'themeName', 'enter', 'exit', 'dir', 'lang'],
25098
+ inputs: ['text', 'textOverflow', 'themeName', 'enter', 'exit', 'dir', 'lang'],
25089
25099
  outputs: ['connected', 'disconnected', 'changed']
25090
25100
  }]
25091
25101
  }], ctorParameters: () => [], propDecorators: { text: [{
25092
25102
  type: Input
25103
+ }], textOverflow: [{
25104
+ type: Input
25093
25105
  }], themeName: [{
25094
25106
  type: Input
25095
25107
  }], enter: [{
@@ -30037,24 +30049,14 @@ let HintComponent = class HintComponent {
30037
30049
  this._element.text = value;
30038
30050
  });
30039
30051
  }
30040
- get wrap() {
30041
- // @ts-ignore - temporary fix for the type error
30042
- return this._element.wrap;
30043
- }
30044
- set wrap(value) {
30045
- this._zone.runOutsideAngular(() => {
30046
- // @ts-ignore - temporary fix for the type error
30047
- this._element.wrap = value;
30048
- });
30049
- }
30050
- get truncate() {
30052
+ get textOverflow() {
30051
30053
  // @ts-ignore - temporary fix for the type error
30052
- return this._element.truncate;
30054
+ return this._element.textOverflow;
30053
30055
  }
30054
- set truncate(value) {
30056
+ set textOverflow(value) {
30055
30057
  this._zone.runOutsideAngular(() => {
30056
30058
  // @ts-ignore - temporary fix for the type error
30057
- this._element.truncate = value;
30059
+ this._element.textOverflow = value;
30058
30060
  });
30059
30061
  }
30060
30062
  get alignment() {
@@ -30128,12 +30130,12 @@ let HintComponent = class HintComponent {
30128
30130
  }
30129
30131
  }
30130
30132
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: HintComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
30131
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.2", type: HintComponent, isStandalone: true, selector: "mosaik-hint", inputs: { text: "text", wrap: "wrap", truncate: "truncate", alignment: "alignment", themeName: "themeName", formatter: "formatter", dir: "dir", lang: "lang" }, outputs: { connected: "connected", disconnected: "disconnected", changed: "changed" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
30133
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.2", type: HintComponent, isStandalone: true, selector: "mosaik-hint", inputs: { text: "text", textOverflow: "textOverflow", alignment: "alignment", themeName: "themeName", formatter: "formatter", dir: "dir", lang: "lang" }, outputs: { connected: "connected", disconnected: "disconnected", changed: "changed" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
30132
30134
  };
30133
30135
  HintComponent = __decorate$1K([
30134
30136
  ProxyCmp({
30135
30137
  defineCustomElementFn: () => customElements.define('mosaik-hint', HintElement),
30136
- inputs: ['text', 'wrap', 'truncate', 'alignment', 'themeName', 'formatter', 'dir', 'lang'],
30138
+ inputs: ['text', 'textOverflow', 'alignment', 'themeName', 'formatter', 'dir', 'lang'],
30137
30139
  methods: ['adoptStyle', 'on', 'off', 'emit', 'requestUpdate']
30138
30140
  }),
30139
30141
  __metadata$1K("design:paramtypes", [])
@@ -30145,14 +30147,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImpor
30145
30147
  standalone: true,
30146
30148
  changeDetection: ChangeDetectionStrategy.OnPush,
30147
30149
  template: '<ng-content></ng-content>',
30148
- inputs: ['text', 'wrap', 'truncate', 'alignment', 'themeName', 'formatter', 'dir', 'lang'],
30150
+ inputs: ['text', 'textOverflow', 'alignment', 'themeName', 'formatter', 'dir', 'lang'],
30149
30151
  outputs: ['connected', 'disconnected', 'changed']
30150
30152
  }]
30151
30153
  }], ctorParameters: () => [], propDecorators: { text: [{
30152
30154
  type: Input
30153
- }], wrap: [{
30154
- type: Input
30155
- }], truncate: [{
30155
+ }], textOverflow: [{
30156
30156
  type: Input
30157
30157
  }], alignment: [{
30158
30158
  type: Input
@@ -60618,13 +60618,14 @@ class SignalFormValidator {
60618
60618
  // what we know is this doesn't work with nested structures.
60619
60619
  // we have to check this in the future again.
60620
60620
  for (const [key, field] of Object.entries(form)) {
60621
- field.markAsTouched();
60622
- const errs = field.errors();
60621
+ const state = field();
60622
+ state.markAsTouched();
60623
+ const errs = state.errors();
60623
60624
  if (errs.length > 0) {
60624
60625
  const issue = {
60625
60626
  path: key,
60626
60627
  errors: errs,
60627
- fieldRef: field
60628
+ fieldRef: state
60628
60629
  };
60629
60630
  hooks?.onEachError?.(issue);
60630
60631
  issues.push(issue);
@@ -60665,12 +60666,13 @@ class SignalFormValidator {
60665
60666
  // we have to check this in the future again.
60666
60667
  const issues = [];
60667
60668
  for (const [key, field] of Object.entries(form)) {
60668
- const errs = field.errors();
60669
+ const state = field();
60670
+ const errs = state.errors();
60669
60671
  if (errs.length > 0) {
60670
60672
  issues.push({
60671
60673
  path: key,
60672
60674
  errors: errs,
60673
- fieldRef: field
60675
+ fieldRef: state
60674
60676
  });
60675
60677
  }
60676
60678
  }