@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/esm/index.js CHANGED
@@ -3220,11 +3220,11 @@ function testOR(columnMap, filter) {
3220
3220
  // src/array-data-source/array-data-source.ts
3221
3221
  import {
3222
3222
  buildColumnMap,
3223
- configChanged,
3223
+ isConfigChanged,
3224
3224
  EventEmitter,
3225
3225
  getAddedItems,
3226
3226
  getMissingItems,
3227
- groupByChanged,
3227
+ isGroupByChanged,
3228
3228
  hasFilter,
3229
3229
  hasGroupBy,
3230
3230
  hasSort,
@@ -3986,7 +3986,8 @@ var ArrayDataSource = class extends 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 EventEmitter {
4014
4015
  __privateGet(this, _columnMap)
4015
4016
  );
4016
4017
  }
4017
- if (this.openTreeNodes.length > 0 && groupByChanged(originalConfig, config)) {
4018
+ if (this.openTreeNodes.length > 0 && 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 EventEmitter {
4051
4052
  });
4052
4053
  }
4053
4054
  this.setRange(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 (configChanged(__privateGet(this, _config), config)) {
4060
+ const { noChanges, ...otherChanges } = 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 EventEmitter {
4066
4071
  }
4067
4072
  } : config;
4068
4073
  __privateSet(this, _config, withConfigDefaults(newConfig));
4069
- return true;
4074
+ return otherChanges;
4070
4075
  }
4071
4076
  }
4072
4077
  }
@@ -4266,6 +4271,7 @@ import {
4266
4271
  jsonToDataSourceRows,
4267
4272
  KeySet as KeySet3,
4268
4273
  metadataKeys as metadataKeys4,
4274
+ NO_CONFIG_CHANGES,
4269
4275
  uuid as uuid2,
4270
4276
  vanillaConfig as vanillaConfig2
4271
4277
  } from "@vuu-ui/vuu-utils";
@@ -4470,7 +4476,7 @@ var JsonDataSource = class extends EventEmitter2 {
4470
4476
  return __privateGet(this, _config2);
4471
4477
  }
4472
4478
  applyConfig() {
4473
- return true;
4479
+ return NO_CONFIG_CHANGES;
4474
4480
  }
4475
4481
  get selectedRowsCount() {
4476
4482
  return __privateGet(this, _selectedRowsCount2);