@arsedizioni/ars-utils 21.2.357 → 21.2.359
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
|
@@ -810,6 +810,10 @@ interface ClipperDocumentDialogData {
|
|
|
810
810
|
}
|
|
811
811
|
declare class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
812
812
|
readonly relevantsPane: _angular_core.Signal<MatDrawer>;
|
|
813
|
+
/** Reference to the document iframe element, used to drive navigation imperatively. */
|
|
814
|
+
private readonly iframeRef;
|
|
815
|
+
/** URL queued to be applied to the iframe as soon as the element becomes available. */
|
|
816
|
+
private pendingUrl;
|
|
813
817
|
readonly closing: _angular_core.OutputEmitterRef<void>;
|
|
814
818
|
readonly opening: _angular_core.OutputEmitterRef<string>;
|
|
815
819
|
private readonly destroyRef;
|
|
@@ -857,6 +861,25 @@ declare class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
857
861
|
* @param url - The full render URL to load.
|
|
858
862
|
*/
|
|
859
863
|
navigateByUrl(url: string): void;
|
|
864
|
+
/**
|
|
865
|
+
* Applies the given URL to the iframe element if available, otherwise queues it
|
|
866
|
+
* to be applied as soon as the iframe view child resolves.
|
|
867
|
+
* @param url - The URL to load into the iframe.
|
|
868
|
+
*/
|
|
869
|
+
private applyIframeUrl;
|
|
870
|
+
/**
|
|
871
|
+
* Sets the iframe `src` ensuring a reload happens even when the URL is identical
|
|
872
|
+
* to the current one (some browsers skip the navigation otherwise).
|
|
873
|
+
*
|
|
874
|
+
* When the URL is unchanged we use `location.replace`, which forces a reload without
|
|
875
|
+
* adding a new entry to the iframe's history — this preserves the Back/Forward
|
|
876
|
+
* behaviour driven by the iframe itself. If the iframe is cross-origin and the
|
|
877
|
+
* replace throws, we fall back to a plain `src` assignment.
|
|
878
|
+
*
|
|
879
|
+
* @param el - The iframe element to update.
|
|
880
|
+
* @param url - The URL to navigate to.
|
|
881
|
+
*/
|
|
882
|
+
private setIframeSrc;
|
|
860
883
|
/**
|
|
861
884
|
* Called by the iframe when a document has finished rendering.
|
|
862
885
|
* Parses and stores all document metadata, then triggers auxiliary data loading.
|
|
@@ -1025,7 +1048,7 @@ declare class ClipperDocumentMenuComponent {
|
|
|
1025
1048
|
/** Internal counter incremented on each external selection-model change to drive signal re-evaluation. */
|
|
1026
1049
|
private readonly selectionChangeTick;
|
|
1027
1050
|
readonly useSelections: _angular_core.InputSignal<boolean>;
|
|
1028
|
-
readonly selectionSource: _angular_core.InputSignal<"
|
|
1051
|
+
readonly selectionSource: _angular_core.InputSignal<"bag" | "selection" | "none">;
|
|
1029
1052
|
/**
|
|
1030
1053
|
* Computed signal that returns the current effective document selection.
|
|
1031
1054
|
* Re-evaluates when any input signal or the underlying selection model changes.
|