@arsedizioni/ars-utils 21.2.354 → 21.2.356

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arsedizioni/ars-utils",
3
- "version": "21.2.354",
3
+ "version": "21.2.356",
4
4
  "author": {
5
5
  "email": "software@arsedizioni.it",
6
6
  "name": "Fabio Buscaroli, Alberto Doria"
@@ -1025,7 +1025,7 @@ declare class ClipperDocumentMenuComponent {
1025
1025
  /** Internal counter incremented on each external selection-model change to drive signal re-evaluation. */
1026
1026
  private readonly selectionChangeTick;
1027
1027
  readonly useSelections: _angular_core.InputSignal<boolean>;
1028
- readonly selectionSource: _angular_core.InputSignal<"bag" | "selection" | "none">;
1028
+ readonly selectionSource: _angular_core.InputSignal<"none" | "selection" | "bag">;
1029
1029
  /**
1030
1030
  * Computed signal that returns the current effective document selection.
1031
1031
  * Re-evaluates when any input signal or the underlying selection model changes.
@@ -1010,7 +1010,7 @@ interface BroadcastChannelMessageBag<T> {
1010
1010
  /** Unique identifier for the message type. */
1011
1011
  messageId: string;
1012
1012
  /** Identifier of the sender. */
1013
- sender: string;
1013
+ sender?: string;
1014
1014
  /** Optional typed data attached to the message. */
1015
1015
  data?: T;
1016
1016
  }
@@ -1115,7 +1115,7 @@ declare class BroadcastService implements OnDestroy {
1115
1115
  * Useful when a caller needs direct channel access outside the service.
1116
1116
  * @returns A new `BroadcastChannelManager` connected to `'ARS-CHANNEL'`.
1117
1117
  */
1118
- static GetChannel(): BroadcastChannelManager;
1118
+ static createChannel(): BroadcastChannelManager;
1119
1119
  ngOnDestroy(): void;
1120
1120
  /**
1121
1121
  * Publishes a message to the in-process subject, optionally after a delay.
@@ -1137,6 +1137,11 @@ declare class BroadcastService implements OnDestroy {
1137
1137
  * @param action - Callback invoked with the full `BroadcastChannelMessageBag` when a matching message arrives.
1138
1138
  */
1139
1139
  subscribeChannelMessage<T>(id: string, action: (bag: BroadcastChannelMessageBag<T>) => void): void;
1140
+ /**
1141
+ * Removes the channel subscription previously registered for the given `id`, if any.
1142
+ * @param id - The message type identifier whose subscription should be removed.
1143
+ */
1144
+ unsubscribeChannelMessage(id: string): void;
1140
1145
  /**
1141
1146
  * Returns an `Observable` that emits every in-process message published via `sendMessage`.
1142
1147
  * @returns An observable stream of `BroadcastMessageInfo` objects.
@@ -1,5 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { OnDestroy, DoCheck, ElementRef } from '@angular/core';
2
+ import { OnDestroy, AfterViewInit, DoCheck, ElementRef } from '@angular/core';
3
3
  import { INode, Searchable, SearchBag, NameValueItem, DateInterval, SearchFilterMetadata, FileInfo } from '@arsedizioni/ars-utils/core';
4
4
  import { MatFormFieldAppearance, MatFormFieldControl } from '@angular/material/form-field';
5
5
  import { MatDialogRef } from '@angular/material/dialog';
@@ -642,9 +642,10 @@ declare class PromptTimeDialogComponent {
642
642
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<PromptTimeDialogComponent, "ng-component", never, {}, { "done": "done"; }, never, never, true, never>;
643
643
  }
644
644
 
645
- declare class SelectDialogComponent {
645
+ declare class SelectDialogComponent implements AfterViewInit {
646
646
  readonly paginator: _angular_core.Signal<MatPaginator>;
647
647
  readonly selection: _angular_core.Signal<MatSelectionList>;
648
+ private isViewReady;
648
649
  private readonly dialogRef;
649
650
  private readonly cdr;
650
651
  protected readonly dialogData: _angular_core.WritableSignal<SelectDialogData>;
@@ -673,6 +674,7 @@ declare class SelectDialogComponent {
673
674
  protected selectionMasterChecked: _angular_core.WritableSignal<boolean>;
674
675
  protected total: _angular_core.WritableSignal<number>;
675
676
  constructor();
677
+ ngAfterViewInit(): void;
676
678
  /**
677
679
  * Updates the total item count signal, triggering UI refresh.
678
680
  * @param newTotal - The new total count; defaults to 0 if omitted.
@@ -1017,7 +1019,7 @@ declare class ChipsSelectorComponent implements OnDestroy, ControlValueAccessor
1017
1019
  /** Minimum width in pixels when collapsed. Use `-1` for automatic. */
1018
1020
  readonly collapsedWidth: _angular_core.InputSignal<number>;
1019
1021
  /** Display mode used when the selector is in collapsed state. */
1020
- readonly collapsedDisplayMode: _angular_core.InputSignal<"button" | "dropdown">;
1022
+ readonly collapsedDisplayMode: _angular_core.InputSignal<"dropdown" | "button">;
1021
1023
  /** Pixel threshold below which the selector collapses. Use `-1` to disable. */
1022
1024
  readonly collapseAt: _angular_core.InputSignal<number>;
1023
1025
  /** When `true`, `collapseAt` is compared against the container width rather than the window width. */