@arsedizioni/ars-utils 19.0.128 → 19.0.131

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.
@@ -13,7 +13,7 @@ export declare class ClipperDocumentMenuComponent implements OnInit, OnDestroy {
13
13
  private changeDetector;
14
14
  private clipperService;
15
15
  readonly useSelections: import("@angular/core").InputSignal<boolean>;
16
- readonly selectionSource: import("@angular/core").InputSignal<"none" | "selection" | "bag">;
16
+ readonly selectionSource: import("@angular/core").InputSignal<"selection" | "bag" | "none">;
17
17
  protected selection: () => ClipperDocumentInfo[];
18
18
  readonly parent: import("@angular/core").InputSignal<ClipperSearchResultManager>;
19
19
  readonly item: import("@angular/core").InputSignal<ClipperDocumentInfo>;
@@ -1656,10 +1656,13 @@ class ClipperDashboard {
1656
1656
  * @param increment : the increment (can be negative)
1657
1657
  */
1658
1658
  updateUnreadItems(module, model, increment) {
1659
+ console.log(JSON.stringify(this.items()));
1660
+ console.log("module: " + module + " - model: " + (model ?? 0));
1659
1661
  if (model) {
1660
1662
  this.items().forEach(item => {
1661
1663
  let itemModel = item.models?.find(x => x.id === model);
1662
1664
  if (itemModel) {
1665
+ console.log("assigned");
1663
1666
  item.unreadItems += increment;
1664
1667
  itemModel.unreadItems += increment;
1665
1668
  return;
@@ -1672,7 +1675,7 @@ class ClipperDashboard {
1672
1675
  item.unreadItems += increment;
1673
1676
  }
1674
1677
  }
1675
- this.items.update((values) => [...values]);
1678
+ this.items.update(values => [...values]);
1676
1679
  }
1677
1680
  /***
1678
1681
  * Get the module unread items