@arsedizioni/ars-utils 21.2.236 → 21.2.238
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/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +15 -0
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +2 -2
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +6 -4
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +4 -1
|
@@ -2287,6 +2287,7 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
|
|
|
2287
2287
|
this.interval = new DateInterval();
|
|
2288
2288
|
this.sourceInterval = new DateInterval();
|
|
2289
2289
|
this.user = this.clipperService.loginInfo?.context;
|
|
2290
|
+
this._viewReady = false;
|
|
2290
2291
|
// Initialize filter params with defaults
|
|
2291
2292
|
this.filterParams.version = 7;
|
|
2292
2293
|
this.filterParams.modules = [{ name: "Normativa vigente", shortName: "Normativa vigente", value: ClipperModule.NormativaVigente }];
|
|
@@ -2304,6 +2305,8 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
|
|
|
2304
2305
|
])
|
|
2305
2306
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
2306
2307
|
.subscribe(result => {
|
|
2308
|
+
if (!this._viewReady)
|
|
2309
|
+
return; // DOM not ready yet
|
|
2307
2310
|
for (const query of Object.keys(result.breakpoints)) {
|
|
2308
2311
|
if (result.breakpoints[query]) {
|
|
2309
2312
|
this.handleFilterPaneVisibility();
|
|
@@ -2334,6 +2337,7 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
|
|
|
2334
2337
|
this.loadFilters();
|
|
2335
2338
|
// Set up view-dependent behaviour after the first render
|
|
2336
2339
|
afterNextRender(() => {
|
|
2340
|
+
this._viewReady = true;
|
|
2337
2341
|
this.handleFilterPaneVisibility();
|
|
2338
2342
|
this.filterPane().openedChange
|
|
2339
2343
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
@@ -3538,6 +3542,7 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
3538
3542
|
this.relevantsBusy = signal(false, ...(ngDevMode ? [{ debugName: "relevantsBusy" }] : /* istanbul ignore next */ []));
|
|
3539
3543
|
this.hasRelevants = signal(false, ...(ngDevMode ? [{ debugName: "hasRelevants" }] : /* istanbul ignore next */ []));
|
|
3540
3544
|
this.user = this.clipperService.loginInfo?.context;
|
|
3545
|
+
this._viewReady = false;
|
|
3541
3546
|
if (this.dialogData?.id) {
|
|
3542
3547
|
// Build the document render URL from the dialog data
|
|
3543
3548
|
let id = this.dialogData.id.toString();
|
|
@@ -3603,12 +3608,18 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
3603
3608
|
])
|
|
3604
3609
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
3605
3610
|
.subscribe(result => {
|
|
3611
|
+
if (!this._viewReady)
|
|
3612
|
+
return; // DOM not ready yet
|
|
3606
3613
|
for (const query of Object.keys(result.breakpoints)) {
|
|
3607
3614
|
if (result.breakpoints[query]) {
|
|
3608
3615
|
this.handleRelevantsPaneVisibility();
|
|
3609
3616
|
}
|
|
3610
3617
|
}
|
|
3611
3618
|
});
|
|
3619
|
+
// Run view-dependent initialization after the first render.
|
|
3620
|
+
afterNextRender(() => {
|
|
3621
|
+
this._viewReady = true;
|
|
3622
|
+
});
|
|
3612
3623
|
}
|
|
3613
3624
|
/**
|
|
3614
3625
|
* Toggles the relevants side-pane open/closed state.
|
|
@@ -4398,6 +4409,7 @@ class ClipperReferencesComponent extends ClipperSearchResultManager {
|
|
|
4398
4409
|
this.dialogRef = inject((MatDialogRef));
|
|
4399
4410
|
this.dialogData = inject(MAT_DIALOG_DATA) ?? { mode: ClipperQueryReferencesMode.ReferencesIn };
|
|
4400
4411
|
this.user = this.clipperService.loginInfo?.context;
|
|
4412
|
+
this._viewReady = false;
|
|
4401
4413
|
if (this.dialogData) {
|
|
4402
4414
|
switch (this.dialogData.mode) {
|
|
4403
4415
|
case ClipperQueryReferencesMode.ReferencesIn:
|
|
@@ -4447,6 +4459,8 @@ class ClipperReferencesComponent extends ClipperSearchResultManager {
|
|
|
4447
4459
|
])
|
|
4448
4460
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
4449
4461
|
.subscribe((result) => {
|
|
4462
|
+
if (!this._viewReady)
|
|
4463
|
+
return; // DOM not ready yet
|
|
4450
4464
|
for (const query of Object.keys(result.breakpoints)) {
|
|
4451
4465
|
if (result.breakpoints[query]) {
|
|
4452
4466
|
this.handleFilterPaneVisibility();
|
|
@@ -4455,6 +4469,7 @@ class ClipperReferencesComponent extends ClipperSearchResultManager {
|
|
|
4455
4469
|
});
|
|
4456
4470
|
// Run view-dependent initialization after the first render.
|
|
4457
4471
|
afterNextRender(() => {
|
|
4472
|
+
this._viewReady = true;
|
|
4458
4473
|
this.handleFilterPaneVisibility();
|
|
4459
4474
|
const filterPane = this.filterPane();
|
|
4460
4475
|
if (filterPane) {
|