@sumaris-net/ngx-components 2.4.73 → 2.4.74

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.
@@ -13828,7 +13828,7 @@ class LocalSettingsService extends StartableService {
13828
13828
  this.onChange.next(data);
13829
13829
  return data;
13830
13830
  }
13831
- setProperty(keyOrDef, value) {
13831
+ setProperty(keyOrDef, value, opts) {
13832
13832
  if (!this._data || !keyOrDef)
13833
13833
  return;
13834
13834
  if (typeof keyOrDef === 'object') {
@@ -13837,6 +13837,10 @@ class LocalSettingsService extends StartableService {
13837
13837
  }
13838
13838
  this._data.properties = this._data.properties || {};
13839
13839
  this._data.properties[keyOrDef] = isNil(value) ? undefined : value.toString();
13840
+ // Update local settings
13841
+ if (!opts || opts.emitEvent !== false) {
13842
+ this.persistLocally(opts?.immediate);
13843
+ }
13840
13844
  }
13841
13845
  getProperty(keyOrDef, defaultValue) {
13842
13846
  if (typeof keyOrDef === 'object') {