taxtank-core 2.0.18 → 2.0.19

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.
@@ -9156,12 +9156,13 @@ class VehicleClaimCollection extends Collection {
9156
9156
  }
9157
9157
 
9158
9158
  class DocumentFolderCollection extends Collection {
9159
- toTreeNode(documents) {
9159
+ toTreeNode(documents, expandedIds) {
9160
9160
  const folderNodes = this.mapBy('treeNode');
9161
9161
  const nodes = [...folderNodes, ...documents.mapBy('treeNode')];
9162
9162
  const nodesByParent = groupBy(nodes, (node) => node.data.parent?.id);
9163
9163
  folderNodes.forEach(node => {
9164
9164
  node.children = nodesByParent[node.data.id] ?? [];
9165
+ node.expanded = expandedIds.has(node.data.id);
9165
9166
  node.data.size = node.children.length;
9166
9167
  if (node.children.length) {
9167
9168
  node.data.updatedAt = node.children[node.children.length - 1].data.updatedAt;
@@ -14551,7 +14552,7 @@ class PropertyCategoryMovementService extends RestService$1 {
14551
14552
  listenEvents() {
14552
14553
  // property created together with categories, we need to update the list
14553
14554
  this.listenCSE(Property, this.refreshCache, ['post']);
14554
- this.listenCSE(PropertyCategoryMovement, this.refreshCache);
14555
+ this.listenCSE(PropertyValuation, this.refreshCache);
14555
14556
  }
14556
14557
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: PropertyCategoryMovementService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
14557
14558
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' }); }