@vuu-ui/vuu-data-local 0.8.23-debug → 0.8.24-debug

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/cjs/index.js CHANGED
@@ -3986,7 +3986,8 @@ var ArrayDataSource = class extends import_vuu_utils4.EventEmitter {
3986
3986
  }
3987
3987
  set config(config) {
3988
3988
  var _a;
3989
- if (this.applyConfig(config)) {
3989
+ const configChanges = this.applyConfig(config);
3990
+ if (configChanges) {
3990
3991
  if (config) {
3991
3992
  const originalConfig = __privateGet(this, _config);
3992
3993
  const newConfig = ((_a = config == null ? void 0 : config.filter) == null ? void 0 : _a.filter) && (config == null ? void 0 : config.filter.filterStruct) === void 0 ? {
@@ -4014,7 +4015,7 @@ var ArrayDataSource = class extends import_vuu_utils4.EventEmitter {
4014
4015
  __privateGet(this, _columnMap)
4015
4016
  );
4016
4017
  }
4017
- if (this.openTreeNodes.length > 0 && (0, import_vuu_utils4.groupByChanged)(originalConfig, config)) {
4018
+ if (this.openTreeNodes.length > 0 && (0, import_vuu_utils4.isGroupByChanged)(originalConfig, config)) {
4018
4019
  if (__privateGet(this, _config).groupBy.length === 0) {
4019
4020
  this.openTreeNodes.length = 0;
4020
4021
  } else {
@@ -4051,12 +4052,16 @@ var ArrayDataSource = class extends import_vuu_utils4.EventEmitter {
4051
4052
  });
4052
4053
  }
4053
4054
  this.setRange((0, import_vuu_utils4.resetRange)(__privateGet(this, _range)), true);
4054
- this.emit("config", __privateGet(this, _config));
4055
+ this.emit("config", __privateGet(this, _config), void 0, configChanges);
4055
4056
  }
4056
4057
  }
4057
4058
  applyConfig(config) {
4058
4059
  var _a;
4059
- if ((0, import_vuu_utils4.configChanged)(__privateGet(this, _config), config)) {
4060
+ const { noChanges, ...otherChanges } = (0, import_vuu_utils4.isConfigChanged)(
4061
+ __privateGet(this, _config),
4062
+ config
4063
+ );
4064
+ if (noChanges !== true) {
4060
4065
  if (config) {
4061
4066
  const newConfig = ((_a = config == null ? void 0 : config.filter) == null ? void 0 : _a.filter) && (config == null ? void 0 : config.filter.filterStruct) === void 0 ? {
4062
4067
  ...config,
@@ -4066,7 +4071,7 @@ var ArrayDataSource = class extends import_vuu_utils4.EventEmitter {
4066
4071
  }
4067
4072
  } : config;
4068
4073
  __privateSet(this, _config, (0, import_vuu_utils4.withConfigDefaults)(newConfig));
4069
- return true;
4074
+ return otherChanges;
4070
4075
  }
4071
4076
  }
4072
4077
  }
@@ -4462,7 +4467,7 @@ var JsonDataSource = class extends import_vuu_utils5.EventEmitter {
4462
4467
  return __privateGet(this, _config2);
4463
4468
  }
4464
4469
  applyConfig() {
4465
- return true;
4470
+ return import_vuu_utils5.NO_CONFIG_CHANGES;
4466
4471
  }
4467
4472
  get selectedRowsCount() {
4468
4473
  return __privateGet(this, _selectedRowsCount2);