@arsedizioni/ars-utils 19.2.19 → 19.2.20

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.
Files changed (74) hide show
  1. package/clipper.common/common/definitions.d.ts +1 -1
  2. package/clipper.common/common/services/clipper.service.d.ts +8 -8
  3. package/clipper.ui/documents.d.ts +1 -1
  4. package/clipper.ui/ui/browser/browser-dialog/browser-dialog.component.d.ts +6 -6
  5. package/clipper.ui/ui/browser/browser.component.d.ts +2 -2
  6. package/clipper.ui/ui/document/document.component.d.ts +9 -9
  7. package/clipper.ui/ui/document-manager/document-manager.d.ts +3 -3
  8. package/clipper.ui/ui/document-menu/document-menu.component.d.ts +2 -2
  9. package/clipper.ui/ui/references/references.component.d.ts +6 -6
  10. package/clipper.ui/ui/search-calendar/search-calendar.component.d.ts +2 -2
  11. package/clipper.ui/ui/search-facets/search-facets.component.d.ts +1 -1
  12. package/clipper.ui/ui/search-result-manager/search-result-manager.d.ts +9 -9
  13. package/core/definitions.d.ts +39 -39
  14. package/core/pipes/format.pipe.d.ts +1 -1
  15. package/core/pipes/replace.pipe.d.ts +1 -1
  16. package/core/pipes/safe-html.pipe.d.ts +1 -1
  17. package/core/pipes/safe-url.pipe.d.ts +1 -1
  18. package/core/pipes/search-callback.pipe.d.ts +1 -1
  19. package/core/pipes/search-filter.pipe.d.ts +1 -1
  20. package/core/selectable.d.ts +4 -4
  21. package/core/services/broadcast.service.d.ts +1 -1
  22. package/core/services/broadcastChannelManager.d.ts +1 -1
  23. package/core/system.d.ts +8 -8
  24. package/evolution.common/common/definitions.d.ts +218 -218
  25. package/evolution.common/common/services/evolution.service.d.ts +5 -5
  26. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +10 -11
  27. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
  28. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +31 -31
  29. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
  30. package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
  31. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +7 -7
  32. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
  33. package/fesm2022/arsedizioni-ars-utils-help.mjs +1 -1
  34. package/fesm2022/arsedizioni-ars-utils-help.mjs.map +1 -1
  35. package/fesm2022/arsedizioni-ars-utils-support.common.mjs +4 -4
  36. package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
  37. package/fesm2022/arsedizioni-ars-utils-support.ui.mjs +1 -1
  38. package/fesm2022/arsedizioni-ars-utils-support.ui.mjs.map +1 -1
  39. package/fesm2022/arsedizioni-ars-utils-tinymce.mjs +1 -1
  40. package/fesm2022/arsedizioni-ars-utils-tinymce.mjs.map +1 -1
  41. package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +35 -39
  42. package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
  43. package/fesm2022/arsedizioni-ars-utils-ui.mjs +11 -11
  44. package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
  45. package/help/components/help-viewer/help-viewer.component.d.ts +4 -4
  46. package/help/definitions.d.ts +1 -1
  47. package/package.json +5 -5
  48. package/support.common/common/definitions.d.ts +23 -23
  49. package/support.common/common/services/support.service.d.ts +1 -1
  50. package/support.ui/ui/notifications-browser/notification/notification.component.d.ts +2 -2
  51. package/tinymce/full-screen-editor/full-screen-editor.component.d.ts +2 -2
  52. package/ui/ui/definitions.d.ts +4 -4
  53. package/ui/ui/dialogs/confirm/confirm-dialog.component.d.ts +7 -7
  54. package/ui/ui/dialogs/credentials/credentials-dialog.component.d.ts +9 -9
  55. package/ui/ui/dialogs/info/info-dialog.component.d.ts +5 -5
  56. package/ui/ui/dialogs/recover-password/recover-password-dialog.component.d.ts +1 -1
  57. package/ui/ui/dialogs/reset-password/reset-password-dialog.component.d.ts +3 -3
  58. package/ui/ui/dialogs/toast/toast.component.d.ts +2 -2
  59. package/ui/ui/services/dialog.service.d.ts +9 -9
  60. package/ui.application/ui/components/button-selector/button-selector.component.d.ts +2 -2
  61. package/ui.application/ui/components/chips-selector/chips-selector.component.d.ts +1 -1
  62. package/ui.application/ui/components/file-input/file-input.component.d.ts +1 -1
  63. package/ui.application/ui/components/file-preview/file-preview.component.d.ts +3 -3
  64. package/ui.application/ui/components/filter-bar/filter-bar.component.d.ts +3 -3
  65. package/ui.application/ui/definitions.d.ts +49 -49
  66. package/ui.application/ui/dialogs/prompt/prompt-dialog.component.d.ts +1 -1
  67. package/ui.application/ui/dialogs/prompt-date/prompt-date-dialog.component.d.ts +1 -1
  68. package/ui.application/ui/dialogs/prompt-time/prompt-time-dialog.component.d.ts +1 -1
  69. package/ui.application/ui/dialogs/select/select-dialog.component.d.ts +1 -1
  70. package/ui.application/ui/dialogs/select-file/select-file-dialog.component.d.ts +1 -1
  71. package/ui.application/ui/dialogs/select-picture/select-picture-dialog.component.d.ts +1 -1
  72. package/ui.application/ui/dialogs/send-to/send-to-dialog.component.d.ts +5 -5
  73. package/ui.application/ui/filters.d.ts +28 -28
  74. package/ui.application/ui/services/applicationDialog.service.d.ts +14 -14
@@ -196,7 +196,7 @@ class ClipperDocumentManager {
196
196
  * @param searchParams: the search params
197
197
  * @param format: the export format: 1) list 2) deadlines
198
198
  */
199
- exportItems(documentIds, searchParams = null, format = 1) {
199
+ exportItems(documentIds, searchParams = undefined, format = 1) {
200
200
  if (!this.clipperService.loggedIn())
201
201
  return;
202
202
  let model = { ids: documentIds ?? [], query: null, format: format };
@@ -368,7 +368,7 @@ class ClipperDocumentManager {
368
368
  * @param documentId : the document id
369
369
  * @param title: the document short title
370
370
  */
371
- openReport(documentId, title = null) {
371
+ openReport(documentId, title = undefined) {
372
372
  if (!this.clipperService.loggedIn())
373
373
  return;
374
374
  if (!documentId)
@@ -386,7 +386,7 @@ class ClipperDocumentManager {
386
386
  * @param query : the query document
387
387
  * @param newWindow: true if the document must be open into a new window
388
388
  */
389
- open(_documentId, _query = null, _newWindow = false) {
389
+ open(_documentId, _query = undefined, _newWindow = false) {
390
390
  }
391
391
  /**
392
392
  * Display a document report
@@ -651,7 +651,7 @@ class ClipperDocumentMenuComponent {
651
651
  this.item = input();
652
652
  this.isReference = input(false);
653
653
  this.isReadable = input(true);
654
- this.isReadableModel = input(null);
654
+ this.isReadableModel = input(undefined);
655
655
  this.isLawInForce = input(false);
656
656
  this.canPrint = input(false);
657
657
  this.canFind = input(false);
@@ -758,7 +758,7 @@ class ClipperDocumentMenuComponent {
758
758
  * Show and hide sub menus
759
759
  * @param trigger: the trigger to use or null to deselect
760
760
  */
761
- showSubMenu(trigger = null) {
761
+ showSubMenu(trigger = undefined) {
762
762
  this.allMenuTriggers.forEach(menuTrigger => {
763
763
  const menu = menuTrigger();
764
764
  if (menu) {
@@ -843,8 +843,7 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
843
843
  this.url = signal(null);
844
844
  this.title = signal(null);
845
845
  this.busy = signal(false);
846
- this.lastQuery = null;
847
- this.lastAugmentedQuery = [];
846
+ this.lastQuery = undefined;
848
847
  this.lastDocument = {};
849
848
  this.relevants = {
850
849
  items: [],
@@ -856,7 +855,7 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
856
855
  this.relevantsPaneClosed = false;
857
856
  this.relevantsBusy = signal(false);
858
857
  this.hasRelevants = signal(false);
859
- this.user = this.clipperService.loginInfo?.context ?? null;
858
+ this.user = this.clipperService.loginInfo?.context ?? undefined;
860
859
  }
861
860
  ngOnInit() {
862
861
  if (this.dialogData) {
@@ -1377,7 +1376,7 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
1377
1376
  * @param query: the current query or null
1378
1377
  * @param newWindow: true if the document must be open into a new window
1379
1378
  */
1380
- open(documentId, query = null, newWindow = false) {
1379
+ open(documentId, query = undefined, newWindow = false) {
1381
1380
  if (!newWindow) {
1382
1381
  if (this.opening)
1383
1382
  this.opening.emit(documentId);
@@ -1392,7 +1391,7 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
1392
1391
  * @param documentId : the document id
1393
1392
  * @param query: the current query or null
1394
1393
  */
1395
- openDocument(documentId, query = null) {
1394
+ openDocument(documentId, query = undefined) {
1396
1395
  if (!documentId)
1397
1396
  return;
1398
1397
  ClipperDocumentsUtils.openDocument(this.dialogService.baseService, this.clipperService, documentId, query, this.dialogData.selectionMode, this.dialogData.selectableModules, this.dialogData.theme);
@@ -1496,7 +1495,7 @@ class ClipperDocumentsUtils {
1496
1495
  * @param selectableModules : the clipper selectable modules
1497
1496
  * @param theme: the theme to use. Default is system
1498
1497
  */
1499
- static openDocument(dialogService, clipperService, documentId, query = null, selectionMode = null, selectableModules = null, theme = null) {
1498
+ static openDocument(dialogService, clipperService, documentId, query = undefined, selectionMode = undefined, selectableModules = undefined, theme = undefined) {
1500
1499
  if (!clipperService.loggedIn()) {
1501
1500
  dialogService.error("Clipper non è disponibile in questo momento. Verifica la connessione.");
1502
1501
  return null;
@@ -1543,7 +1542,7 @@ class ClipperSearchCalendarComponent {
1543
1542
  this.changeDetector = inject(ChangeDetectorRef);
1544
1543
  this.busy = signal(false);
1545
1544
  this.months = signal(null);
1546
- this.calendarSpecialDays = null;
1545
+ this.calendarSpecialDays = undefined;
1547
1546
  this.calendarEmptyHeader = CalendarEmptyHeader;
1548
1547
  this.calendarDate = startOfToday();
1549
1548
  this.calendarDateClass = (cellDate) => {
@@ -1570,7 +1569,7 @@ class ClipperSearchCalendarComponent {
1570
1569
  * @param months : the months snapshot
1571
1570
  * @param date : the new current date
1572
1571
  */
1573
- update(month = null, months = null, date) {
1572
+ update(month = undefined, months = undefined, date) {
1574
1573
  if (months?.months) {
1575
1574
  this.months.set(months.months);
1576
1575
  }
@@ -1646,7 +1645,7 @@ class ClipperSearchFacetsComponent {
1646
1645
  * @param values : the facets values
1647
1646
  * @param interval : the date interval for YEAR facets
1648
1647
  */
1649
- update(values = null, interval = null) {
1648
+ update(values = undefined, interval = undefined) {
1650
1649
  this.snapshot.interval = interval;
1651
1650
  if (values) {
1652
1651
  this.snapshot.groups = [];
@@ -1878,7 +1877,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
1878
1877
  this.breakpointObserver = inject(BreakpointObserver);
1879
1878
  this.themeService = inject(ThemeService);
1880
1879
  this.screenService = inject(ScreenService);
1881
- this.selection = null;
1880
+ this.selection = undefined;
1882
1881
  this.selectionMode = signal(ClipperSelectionMode.None);
1883
1882
  this.snapshot = new ClipperSearchResult();
1884
1883
  this.filterBusy = signal(false);
@@ -1888,10 +1887,10 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
1888
1887
  this.filterPane2HasBackdrop = false;
1889
1888
  this.filterPane2Closed = false;
1890
1889
  this.sortOptions = [];
1891
- this.sortMode = null;
1890
+ this.sortMode = undefined;
1892
1891
  this.scrollPos = 0;
1893
1892
  this.scrollerId = 'scroller_' + SystemUtils.generateUUID();
1894
- this.restorableId = null;
1893
+ this.restorableId = undefined;
1895
1894
  this.hasFacets = signal(false);
1896
1895
  this.hasRegions = () => {
1897
1896
  return (this.filterParams.sectors?.filter(n => n.value === 'LR').length ?? 0) > 0;
@@ -2075,7 +2074,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
2075
2074
  n.isNew = n.date > d;
2076
2075
  }
2077
2076
  if (n.anchors) {
2078
- let anchorType = null;
2077
+ let anchorType = undefined;
2079
2078
  let anchors = [];
2080
2079
  n.anchors.forEach(a => {
2081
2080
  if (a.type === 20)
@@ -2223,7 +2222,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
2223
2222
  * @param item : the item to update
2224
2223
  * @paran e: the optional click event
2225
2224
  */
2226
- toggleRead(item, e = null) {
2225
+ toggleRead(item, e = undefined) {
2227
2226
  e?.preventDefault();
2228
2227
  e?.stopPropagation();
2229
2228
  this.setRead(!item?.isRead, item);
@@ -2233,7 +2232,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
2233
2232
  * @param item : the item to update
2234
2233
  * @paran e: the optional click event
2235
2234
  */
2236
- toggleSelection(item, e = null) {
2235
+ toggleSelection(item, e = undefined) {
2237
2236
  e?.preventDefault();
2238
2237
  e?.stopPropagation();
2239
2238
  this.selection?.toggle(item, item.documentId);
@@ -2243,7 +2242,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
2243
2242
  * @param value: the flag value
2244
2243
  * @param item: the item to set or null to use current selection
2245
2244
  */
2246
- setRead(value, item = null) {
2245
+ setRead(value, item = undefined) {
2247
2246
  let documentIds = [];
2248
2247
  if (item) {
2249
2248
  documentIds = [item.documentId];
@@ -2281,7 +2280,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
2281
2280
  * @param query: the current query or null
2282
2281
  * @param newWindow: true if the document must be open into a new window
2283
2282
  */
2284
- open(documentId, query = null, newWindow = false) {
2283
+ open(documentId, query = undefined, newWindow = false) {
2285
2284
  if (!newWindow)
2286
2285
  this.openDocument(documentId, query);
2287
2286
  else
@@ -2292,7 +2291,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
2292
2291
  * @param documentId : the document id
2293
2292
  * @param query: the current query or null
2294
2293
  */
2295
- openDocument(documentId, query = null) {
2294
+ openDocument(documentId, query = undefined) {
2296
2295
  if (!documentId)
2297
2296
  return;
2298
2297
  console.log(this.selectionMode());
@@ -2404,7 +2403,7 @@ class ClipperSearchResultItemComponent {
2404
2403
  this.tilePictureUrl = input();
2405
2404
  this.isSelectable = input(true);
2406
2405
  this.isReadable = input(true);
2407
- this.isReadableModel = input(null);
2406
+ this.isReadableModel = input(undefined);
2408
2407
  this.displayModifiedTitle = input(false);
2409
2408
  this.displayModelName = input(false);
2410
2409
  this.displayDate = input(true);
@@ -2491,9 +2490,9 @@ class ClipperReferencesComponent extends ClipperSearchResultManager {
2491
2490
  this.filterPane = viewChild.required('filterPane');
2492
2491
  this.dialogRef = inject((MatDialogRef));
2493
2492
  this.dialogData = inject(MAT_DIALOG_DATA) ?? { mode: ClipperQueryReferencesMode.ReferencesIn };
2494
- this.title = null;
2495
- this.item = null;
2496
- this.user = this.clipperService.loginInfo?.context ?? null;
2493
+ this.title = undefined;
2494
+ this.item = undefined;
2495
+ this.user = this.clipperService.loginInfo?.context ?? undefined;
2497
2496
  }
2498
2497
  ngOnInit() {
2499
2498
  if (this.dialogData) {
@@ -2518,7 +2517,8 @@ class ClipperReferencesComponent extends ClipperSearchResultManager {
2518
2517
  this.title += " - " + this.dialogData.anchorTitle;
2519
2518
  }
2520
2519
  // Use service snapshot
2521
- this.snapshot = this.clipperService.referencesSnapshot() ?? { searchParams: new ClipperSearchParams(), interval: "-1" };
2520
+ this.snapshot =
2521
+ this.clipperService.referencesSnapshot() ?? { searchParams: new ClipperSearchParams(), interval: "-1" };
2522
2522
  if (this.filterParams.mode !== this.dialogData.mode ||
2523
2523
  this.filterParams.id !== this.dialogData.documentId ||
2524
2524
  this.filterParams.anchor !== this.dialogData.anchor) {
@@ -2911,7 +2911,7 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
2911
2911
  this.modules = signal(this.getAllModules());
2912
2912
  this.interval = new DateInterval();
2913
2913
  this.sourceInterval = new DateInterval();
2914
- this.user = this.clipperService.loginInfo?.context ?? null;
2914
+ this.user = this.clipperService.loginInfo?.context ?? undefined;
2915
2915
  }
2916
2916
  ngOnInit() {
2917
2917
  // Initialize filter
@@ -3509,10 +3509,10 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
3509
3509
  totalUnread = this.clipperService.dashboard.getUnreadItems(module.value, ClipperModel.Juris);
3510
3510
  }
3511
3511
  else if (module.value === ClipperModule.GiurisprudenzaRecente) {
3512
- totalUnread = this.clipperService.dashboard.getUnreadItems(ClipperModule.Giurisprudenza, null);
3512
+ totalUnread = this.clipperService.dashboard.getUnreadItems(ClipperModule.Giurisprudenza);
3513
3513
  }
3514
3514
  else {
3515
- totalUnread = this.clipperService.dashboard.getUnreadItems(module.value, null);
3515
+ totalUnread = this.clipperService.dashboard.getUnreadItems(module.value);
3516
3516
  }
3517
3517
  if (totalUnread > 0) {
3518
3518
  module.bag = totalUnread.toString();