@dsivd/prestations-ng 19.0.5-beta.2 → 19.0.5-beta.4

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.
@@ -847,7 +847,4 @@ this.address.update((current) => ({
847
847
  ...current,
848
848
  locality: { ...current.locality, name: 'newName' },
849
849
  }));
850
-
851
- // 🟢 Or, if you're in a component extending `FoehnInputComponent` :
852
- this.patchModel({ locality: { name: 'newName' } });
853
850
  ```
package/UPGRADING_V19.md CHANGED
@@ -1092,6 +1092,7 @@ import rxjs from '@smarttools/eslint-plugin-rxjs';
1092
1092
  import simpleImportSort from 'eslint-plugin-simple-import-sort';
1093
1093
  import prettier from 'eslint-config-prettier';
1094
1094
  import importX from 'eslint-plugin-import-x';
1095
+ TODO LHE: publish beta + test + UPDATE EXAMPLE !!!
1095
1096
 
1096
1097
  export default tseslint.config(
1097
1098
  {
@@ -831,16 +831,6 @@ class FoehnInputComponent {
831
831
  this.model.set(value);
832
832
  }
833
833
  }
834
- patchModel(patch) {
835
- this.model.update((current) => {
836
- if (current &&
837
- typeof current === 'object' &&
838
- !Array.isArray(current)) {
839
- return { ...current, ...patch };
840
- }
841
- throw new Error('patchModel can only be used with object models.');
842
- });
843
- }
844
834
  hasErrorsToDisplay() {
845
835
  return (this.hasErrors() &&
846
836
  (!this.disabled() || this.showErrorWhenDisabled()));