@arsedizioni/ars-utils 18.1.173 → 18.1.175
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/clipper.common/common/definitions.d.ts +1 -1
- package/esm2022/clipper.common/common/definitions.mjs +2 -2
- package/esm2022/clipper.ui/ui/document/document.component.mjs +6 -6
- package/esm2022/clipper.ui/ui/references/references.component.mjs +3 -3
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +7 -7
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/package.json +7 -7
|
@@ -1378,13 +1378,13 @@ class ClipperReferencesComponent extends ClipperSearchResultManager {
|
|
|
1378
1378
|
// Use service snapshot
|
|
1379
1379
|
this.snapshot = this.clipperService.referencesSnapshot ?? { searchParams: {}, interval: "-1" };
|
|
1380
1380
|
if (this.filterParams.mode !== this.dialogData.mode ||
|
|
1381
|
-
this.filterParams.
|
|
1381
|
+
this.filterParams.id !== this.dialogData.id ||
|
|
1382
1382
|
this.filterParams.anchor !== this.dialogData.anchor) {
|
|
1383
1383
|
this.filterParams = {
|
|
1384
1384
|
mode: this.dialogData.mode,
|
|
1385
1385
|
model: this.dialogData.model,
|
|
1386
1386
|
anchor: this.dialogData.anchor,
|
|
1387
|
-
|
|
1387
|
+
id: this.dialogData.id,
|
|
1388
1388
|
useModifierInfo: this.dialogData.mode === ClipperQueryReferencesMode.ChangesOut,
|
|
1389
1389
|
returnModifierInfo: this.dialogData.mode !== ClipperQueryReferencesMode.ChangesOut,
|
|
1390
1390
|
first: 0,
|
|
@@ -1770,7 +1770,7 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
1770
1770
|
this.title = signal(null);
|
|
1771
1771
|
this.busy = signal(false);
|
|
1772
1772
|
this.lastQuery = null;
|
|
1773
|
-
this.lastDocument =
|
|
1773
|
+
this.lastDocument = {};
|
|
1774
1774
|
this.relevants = {
|
|
1775
1775
|
items: [],
|
|
1776
1776
|
hits: 0,
|
|
@@ -1816,9 +1816,7 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
1816
1816
|
this.openReferences(data.id, data.mode, data.model, data.anchor, data.anchorTitle, data.update);
|
|
1817
1817
|
break;
|
|
1818
1818
|
case 'hits':
|
|
1819
|
-
console.log(JSON.stringify(data));
|
|
1820
1819
|
this.relevants.hits = data.total;
|
|
1821
|
-
this.updateRelevants();
|
|
1822
1820
|
break;
|
|
1823
1821
|
}
|
|
1824
1822
|
this.changeDetector.markForCheck();
|
|
@@ -1867,7 +1865,7 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
1867
1865
|
setTimeout(() => {
|
|
1868
1866
|
let elem = document.getElementById('clipper-document-scrollable');
|
|
1869
1867
|
if (elem) {
|
|
1870
|
-
const height = this.dialogService.getCurrentDialogScrollableHeight(['clipper-document-fixed'], window.innerHeight)
|
|
1868
|
+
const height = this.dialogService.getCurrentDialogScrollableHeight(['clipper-document-fixed'], window.innerHeight);
|
|
1871
1869
|
if (height != this.height) {
|
|
1872
1870
|
elem.setAttribute('style', 'padding:0;height:' + height + 'px !important;max-height:' + height + 'px !important');
|
|
1873
1871
|
let elem2 = document.getElementById('clipper-document-iframe');
|
|
@@ -2083,6 +2081,8 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
2083
2081
|
if (parts.length > 1)
|
|
2084
2082
|
this.lastDocument.expiringDescription = parts[1];
|
|
2085
2083
|
}
|
|
2084
|
+
// Update relevants
|
|
2085
|
+
this.updateRelevants();
|
|
2086
2086
|
// Set title
|
|
2087
2087
|
this.title.set(this.lastDocument.title1
|
|
2088
2088
|
? this.lastDocument.title1
|
|
@@ -2175,7 +2175,7 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
2175
2175
|
else {
|
|
2176
2176
|
this.clipperService
|
|
2177
2177
|
.query({
|
|
2178
|
-
|
|
2178
|
+
id: this.lastDocument.documentId,
|
|
2179
2179
|
text: this.lastQuery,
|
|
2180
2180
|
count: 1,
|
|
2181
2181
|
})
|