@arsedizioni/ars-utils 18.1.173 → 18.1.174
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 +4 -5
- 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 +5 -6
- 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,7 +1816,6 @@ 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
1820
|
this.updateRelevants();
|
|
1822
1821
|
break;
|
|
@@ -1867,7 +1866,7 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
1867
1866
|
setTimeout(() => {
|
|
1868
1867
|
let elem = document.getElementById('clipper-document-scrollable');
|
|
1869
1868
|
if (elem) {
|
|
1870
|
-
const height = this.dialogService.getCurrentDialogScrollableHeight(['clipper-document-fixed'], window.innerHeight)
|
|
1869
|
+
const height = this.dialogService.getCurrentDialogScrollableHeight(['clipper-document-fixed'], window.innerHeight);
|
|
1871
1870
|
if (height != this.height) {
|
|
1872
1871
|
elem.setAttribute('style', 'padding:0;height:' + height + 'px !important;max-height:' + height + 'px !important');
|
|
1873
1872
|
let elem2 = document.getElementById('clipper-document-iframe');
|
|
@@ -2175,7 +2174,7 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
2175
2174
|
else {
|
|
2176
2175
|
this.clipperService
|
|
2177
2176
|
.query({
|
|
2178
|
-
|
|
2177
|
+
id: this.lastDocument.documentId,
|
|
2179
2178
|
text: this.lastQuery,
|
|
2180
2179
|
count: 1,
|
|
2181
2180
|
})
|