@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.
@@ -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.documentId !== this.dialogData.id ||
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
- documentId: this.dialogData.id,
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 = null;
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) - 72;
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
- documentId: this.lastDocument.documentId,
2177
+ id: this.lastDocument.documentId,
2179
2178
  text: this.lastQuery,
2180
2179
  count: 1,
2181
2180
  })