@dsivd/prestations-ng 19.0.5-beta.3 → 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
  {
@@ -793,16 +793,6 @@ class FoehnInputComponent {
793
793
  this.modelEffect = effect(() => {
794
794
  this.onModelChange(this.model());
795
795
  }, ...(ngDevMode ? [{ debugName: "modelEffect" }] : /* istanbul ignore next */ []));
796
- this.patchModel = (patch) => {
797
- this.model.update((current) => {
798
- if (current &&
799
- typeof current === 'object' &&
800
- !Array.isArray(current)) {
801
- return { ...current, ...patch };
802
- }
803
- throw new Error('patchModel can only be used with object models.');
804
- });
805
- };
806
796
  }
807
797
  get errors() {
808
798
  return this._errors?.sort((a, b) => ObjectHelper.stripHtml(a.message).localeCompare(ObjectHelper.stripHtml(b.message)));