@arsedizioni/ars-utils 19.2.20 → 19.3.1

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 +402 -402
  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 +3 -3
  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 +136 -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 +39 -35
  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 +11 -11
  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 +2 -2
  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
@@ -1445,9 +1445,63 @@ class ClipperChannelSettings {
1445
1445
  class ClipperSearchParams {
1446
1446
  constructor() {
1447
1447
  this.version = 6;
1448
+ this.searchId = null;
1449
+ this.searchName = null;
1450
+ this.text = null;
1451
+ this.augmentedText = null;
1452
+ this.title = null;
1453
+ this.titleOnly = false;
1454
+ this.showUnreadDocumentsOnly = false;
1455
+ this.showCommentedDocumentsOnly = false;
1456
+ this.showNotAbrogatedDocumentsOnly = false;
1457
+ this.expandTextQueryUsingAI = false;
1458
+ this.number = null;
1459
+ this.fromDate = null;
1460
+ this.toDate = null;
1461
+ this.year = null;
1462
+ this.sourceNumber = null;
1463
+ this.source = null;
1464
+ this.sourceFromDate = null;
1465
+ this.sourceToDate = null;
1466
+ this.sourceYear = null;
1467
+ this.sector = null;
1468
+ this.sectors = null;
1469
+ this.topic = null;
1470
+ this.topics = null;
1471
+ this.taxonomy = null;
1472
+ this.taxonomies = null;
1473
+ this.taxonomyPath = null;
1474
+ this.taxonomyNode = null;
1475
+ this.type = null;
1476
+ this.types = null;
1477
+ this.tag = null;
1478
+ this.tags = null;
1479
+ this.author = null;
1480
+ this.authors = null;
1481
+ this.changeReason = null;
1482
+ this.changedNumber = null;
1483
+ this.changedYear = null;
1484
+ this.changedTitle = null;
1485
+ this.changedId = null;
1486
+ this.modifierId = null;
1487
+ this.modifierNumber = null;
1488
+ this.modifierYear = null;
1489
+ this.modifierTitle = null;
1490
+ this.model = null;
1491
+ this.models = null;
1492
+ this.module = null;
1493
+ this.modules = null;
1494
+ this.mode = null;
1448
1495
  this.channels = [...ClipperChannels];
1449
1496
  this.count = 15;
1497
+ this.id = null;
1498
+ this.anchor = null;
1499
+ this.excludeTextReferences = false;
1500
+ this.excludeNotesReferences = false;
1501
+ this.useModifierInfo = false;
1502
+ this.returnModifierInfo = false;
1450
1503
  this.first = 0;
1504
+ this.sortMode = null;
1451
1505
  }
1452
1506
  }
1453
1507
  var ClipperDocumentContainer;
@@ -1471,8 +1525,15 @@ const ClipperDocumentChangeReasons = [
1471
1525
  ];
1472
1526
  class ClipperSearchResult {
1473
1527
  constructor() {
1528
+ this.days = null;
1529
+ this.interval = null;
1530
+ this.items = null;
1474
1531
  this.facets = new ClipperSearchFacetsSnapshot();
1532
+ this.total = null;
1533
+ this.terms = null;
1534
+ this.searchInfo = null;
1475
1535
  this.searchParams = new ClipperSearchParams();
1536
+ this.snapshotMode = null;
1476
1537
  }
1477
1538
  }
1478
1539
  class ClipperSearchFacetsSnapshot {
@@ -1482,6 +1543,14 @@ class ClipperSearchFacetsSnapshot {
1482
1543
  this.hasFacets = false;
1483
1544
  this.hasMoreFacets = false;
1484
1545
  this.hasTooManyResults = false;
1546
+ this.sector = null;
1547
+ this.author = null;
1548
+ this.anchor = null;
1549
+ this.type = null;
1550
+ this.reason = null;
1551
+ this.fromDate = null;
1552
+ this.toDate = null;
1553
+ this.interval = null;
1485
1554
  this.changedInterval = false;
1486
1555
  this.changedSector = false;
1487
1556
  this.changedAuthor = false;
@@ -1491,6 +1560,9 @@ class ClipperSearchFacetsSnapshot {
1491
1560
  }
1492
1561
  }
1493
1562
  class ClipperSearchCalendarSnapshotResult {
1563
+ constructor() {
1564
+ this.months = null;
1565
+ }
1494
1566
  }
1495
1567
  var ClipperSort;
1496
1568
  (function (ClipperSort) {
@@ -1528,6 +1600,10 @@ var ClipperExportDocumentsFormat;
1528
1600
  class ClipperDashboard {
1529
1601
  constructor() {
1530
1602
  this.items = signal([]);
1603
+ this.isTrial = false;
1604
+ this.expiredDeadlines = null;
1605
+ this.expiringDeadlines = null;
1606
+ this.documentUpdates = null;
1531
1607
  this.unreadItems = computed(() => {
1532
1608
  const states = [];
1533
1609
  states.push([ClipperModule.News, this.items().find((x) => x.id == ClipperModule.News)?.unreadItems ?? 0]);
@@ -1602,7 +1678,7 @@ class ClipperDashboard {
1602
1678
  * @param model : the optional model
1603
1679
  * @returns the module unread items
1604
1680
  */
1605
- getUnreadItems(module, model = undefined) {
1681
+ getUnreadItems(module, model) {
1606
1682
  if (model) {
1607
1683
  return this.unreadItemsByModel()?.find((x) => x[0] === model)?.[1];
1608
1684
  }
@@ -1621,6 +1697,15 @@ class ClipperDashboard {
1621
1697
  }
1622
1698
  }
1623
1699
  class ClipperTeamMemberInfo {
1700
+ constructor() {
1701
+ this.name = null;
1702
+ this.email = null;
1703
+ this.isAdmin = null;
1704
+ this.isDisabled = null;
1705
+ this.hasPermission55 = null;
1706
+ this.hasPermission56 = null;
1707
+ this.hasPermission57 = null;
1708
+ }
1624
1709
  }
1625
1710
  var ClipperTeamProduct;
1626
1711
  (function (ClipperTeamProduct) {
@@ -1633,6 +1718,14 @@ var ClipperTeamProductPermission;
1633
1718
  ClipperTeamProductPermission[ClipperTeamProductPermission["SharedCalendar"] = 57] = "SharedCalendar";
1634
1719
  })(ClipperTeamProductPermission || (ClipperTeamProductPermission = {}));
1635
1720
  class ClipperTeamInfo {
1721
+ constructor() {
1722
+ this.id = null;
1723
+ this.customerId = null;
1724
+ this.title = null;
1725
+ this.isDisabled = null;
1726
+ this.created = null;
1727
+ this.lastModified = null;
1728
+ }
1636
1729
  }
1637
1730
  var ClipperCalendarState;
1638
1731
  (function (ClipperCalendarState) {
@@ -1649,6 +1742,16 @@ const ClipperCalendarStates = [
1649
1742
  ];
1650
1743
  class ClipperCalendarSearchParams {
1651
1744
  constructor() {
1745
+ this.id = null;
1746
+ this.fromDate = null;
1747
+ this.toDate = null;
1748
+ this.teamId = null;
1749
+ this.text = null;
1750
+ this.month = null;
1751
+ this.year = null;
1752
+ this.sortDescending = null;
1753
+ this.state = null;
1754
+ this.recurrentOnly = null;
1652
1755
  this.first = 0;
1653
1756
  this.count = 15;
1654
1757
  }
@@ -1692,8 +1795,29 @@ const ClipperArchiveFileStorageTypes = [
1692
1795
  { name: 'Altro cloud', value: ClipperArchiveFileStorageType.OtherCloud }
1693
1796
  ];
1694
1797
  class ClipperArchiveFoldersSearchParams {
1798
+ constructor() {
1799
+ this.teamId = null;
1800
+ this.privateOnly = null;
1801
+ }
1695
1802
  }
1696
1803
  class ClipperArchiveFilesSearchParams {
1804
+ constructor() {
1805
+ this.teamId = null;
1806
+ this.folderId = null;
1807
+ this.folderName = null;
1808
+ this.fileType = null;
1809
+ this.fromDate = null;
1810
+ this.toDate = null;
1811
+ this.topicPath = null;
1812
+ this.topicId = null;
1813
+ this.topicName = null;
1814
+ this.titlesOnly = null;
1815
+ this.text = null;
1816
+ this.documentNumber = null;
1817
+ this.documentYear = null;
1818
+ this.first = null;
1819
+ this.count = null;
1820
+ }
1697
1821
  }
1698
1822
  var ClipperArchiveCopyMode;
1699
1823
  (function (ClipperArchiveCopyMode) {
@@ -1731,7 +1855,7 @@ class ClipperUtils {
1731
1855
  case ClipperModel.Scadenze: return ClipperModule.ScadenzeESegnalazioni;
1732
1856
  case ClipperModel.AggiornamentoNormativo: return ClipperModule.GazzetteBollettiniEFontiDiverse;
1733
1857
  }
1734
- return undefined;
1858
+ return null;
1735
1859
  }
1736
1860
  /**
1737
1861
  * Return the Clipper group name
@@ -1981,11 +2105,12 @@ class ClipperService {
1981
2105
  this.keepAlive = 0;
1982
2106
  this._serviceUri = '';
1983
2107
  this._flags = ClipperServiceFlags.None;
2108
+ this._loginInfo = null;
1984
2109
  this.loggedIn = signal(sessionStorage.getItem("clipper_oauth_token") !== null);
1985
2110
  this.loggingIn = signal(false);
1986
- this.snapshot = signal(undefined);
2111
+ this.snapshot = signal(null);
1987
2112
  this.supportsRS = signal(false);
1988
- this.referencesSnapshot = signal(undefined);
2113
+ this.referencesSnapshot = signal(null);
1989
2114
  this.dashboard = new ClipperDashboard();
1990
2115
  this.bag = signal([]);
1991
2116
  this.bagTotal = computed(() => {
@@ -2187,7 +2312,7 @@ class ClipperService {
2187
2312
  * @param oauthAccessToken: the optional OAuth2 access token
2188
2313
  * @param onSucces: function to execute on seccess
2189
2314
  */
2190
- autoLogin(email = undefined, password = undefined, remember = false, oauth = undefined, oauthAccessToken = sessionStorage.getItem("clipper_oauth_token"), onSucces = undefined) {
2315
+ autoLogin(email = null, password = null, remember = false, oauth = null, oauthAccessToken = sessionStorage.getItem("clipper_oauth_token"), onSucces = null) {
2191
2316
  this.login(email, password, remember, oauth, oauthAccessToken)
2192
2317
  .subscribe({
2193
2318
  next: r => {
@@ -2209,7 +2334,7 @@ class ClipperService {
2209
2334
  * Perform auto logout
2210
2335
  * @param onSucces: function to execute on seccess
2211
2336
  */
2212
- autoLogout(onSucces = undefined) {
2337
+ autoLogout(onSucces = null) {
2213
2338
  if (!this.loggedIn())
2214
2339
  return;
2215
2340
  this.logout().subscribe({
@@ -2238,7 +2363,7 @@ class ClipperService {
2238
2363
  * @param oauthAccessToken: the optional OAuth2 access token
2239
2364
  * @returns: the login result
2240
2365
  */
2241
- login(email = undefined, password = undefined, remember = false, oauth = undefined, oauthAccessToken = sessionStorage.getItem("clipper_oauth_token")) {
2366
+ login(email = null, password = null, remember = false, oauth = null, oauthAccessToken = sessionStorage.getItem("clipper_oauth_token")) {
2242
2367
  this.loggingIn.set(true);
2243
2368
  return this.httpClient
2244
2369
  .post(this._serviceUri + '/login2', {
@@ -2506,7 +2631,7 @@ class ClipperService {
2506
2631
  /**
2507
2632
  * Retrieve the taxonomy
2508
2633
  */
2509
- getTaxonomy(params = undefined) {
2634
+ getTaxonomy(params = null) {
2510
2635
  return this.httpClient.post(this._serviceUri + '/taxonomy', params ?? { model: 0, countItems: false });
2511
2636
  }
2512
2637
  /**
@@ -2927,7 +3052,7 @@ class ClipperService {
2927
3052
  * @param id: the folder id or null to export all folders
2928
3053
  * @param teamId: the optional team id. Default null (personal)
2929
3054
  */
2930
- exportArchiveFolders(id = undefined, teamId = undefined) {
3055
+ exportArchiveFolders(id = null, teamId = null) {
2931
3056
  let url = this._serviceUri + '/archive/export/?';
2932
3057
  if (id) {
2933
3058
  url += 'id=' + id;
@@ -3045,7 +3170,7 @@ class ClipperService {
3045
3170
  * @param id : the binary id to download
3046
3171
  * @param otp : the optional one time password
3047
3172
  */
3048
- downloadArchiveFile(id, otp = undefined) {
3173
+ downloadArchiveFile(id, otp = null) {
3049
3174
  return this.httpClient.get(this._serviceUri + '/archive/files/download/?id=' + id + '&otp=' + (otp ?? ''), { responseType: 'blob' });
3050
3175
  }
3051
3176
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: ClipperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
@@ -3127,7 +3252,7 @@ class ClipperAuthInterceptor {
3127
3252
  * @param request : the request
3128
3253
  * @param token: the token or null to use curre3nt
3129
3254
  */
3130
- addTokenToRequest(request, token = undefined) {
3255
+ addTokenToRequest(request, token = null) {
3131
3256
  if (request.url.startsWith(this.clipperService.serviceUri)) {
3132
3257
  if (this.clipperService.loggedIn()) {
3133
3258
  if (!token)