@arsedizioni/ars-utils 22.0.35 → 22.0.36
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/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +43 -43
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +2 -2
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +20 -20
|
@@ -2396,47 +2396,6 @@ class ClipperDocumentsService {
|
|
|
2396
2396
|
return this.httpClient.get(this.core.serviceUri + '/tags');
|
|
2397
2397
|
}
|
|
2398
2398
|
///
|
|
2399
|
-
// DASHBOARD
|
|
2400
|
-
///
|
|
2401
|
-
/**
|
|
2402
|
-
* Retrieves the current dashboard and applies its counters to the shared dashboard state.
|
|
2403
|
-
* @returns The subscription to the dashboard request.
|
|
2404
|
-
*/
|
|
2405
|
-
loadDashboard() {
|
|
2406
|
-
return this.httpClient
|
|
2407
|
-
.post(this.core.serviceUri + '/account/dashboard', { refreshing: true }).subscribe((r) => {
|
|
2408
|
-
if (r.success) {
|
|
2409
|
-
this.core.dashboard.documentUpdates = r.value.documentUpdates;
|
|
2410
|
-
this.core.dashboard.expiredDeadlines = r.value.expiredDeadlines;
|
|
2411
|
-
this.core.dashboard.expiringDeadlines = r.value.expiringDeadlines;
|
|
2412
|
-
this.core.dashboard.isTrial = r.value.isTrial;
|
|
2413
|
-
this.core.dashboard.items.set(r.value.items ?? []);
|
|
2414
|
-
this.broadcastService.sendMessage(ClipperMessages.COMMAND_DASHBOARD_UPDATED);
|
|
2415
|
-
}
|
|
2416
|
-
});
|
|
2417
|
-
}
|
|
2418
|
-
/**
|
|
2419
|
-
* Retrieves documents updated in the last 15 days for the given search parameters.
|
|
2420
|
-
* @param params - The search parameters to filter results.
|
|
2421
|
-
* @returns An observable emitting the API result wrapping the last-days result.
|
|
2422
|
-
*/
|
|
2423
|
-
last15Days(params) {
|
|
2424
|
-
return this.httpClient.post(this.core.serviceUri + '/account/last-15-days', params);
|
|
2425
|
-
}
|
|
2426
|
-
/**
|
|
2427
|
-
* Adjusts the unread-item counter for the given module and broadcasts a dashboard update.
|
|
2428
|
-
* @param module - The Clipper module whose counter should be adjusted.
|
|
2429
|
-
* @param model - Optional document model to further scope the counter update.
|
|
2430
|
-
* @param increment - The signed increment to apply (use negative values to decrement).
|
|
2431
|
-
*/
|
|
2432
|
-
updateUnreadItems(module, model, increment) {
|
|
2433
|
-
increment ??= 0;
|
|
2434
|
-
if (increment !== 0) {
|
|
2435
|
-
this.core.dashboard.updateUnreadItems(module, model, increment);
|
|
2436
|
-
}
|
|
2437
|
-
this.broadcastService.sendMessage(ClipperMessages.COMMAND_DASHBOARD_UPDATED);
|
|
2438
|
-
}
|
|
2439
|
-
///
|
|
2440
2399
|
// BAG
|
|
2441
2400
|
///
|
|
2442
2401
|
/**
|
|
@@ -3169,6 +3128,47 @@ class ClipperAccountService {
|
|
|
3169
3128
|
deleteLink(item) {
|
|
3170
3129
|
return this.httpClient.post(this.core.serviceUri + '/account/links/delete', item);
|
|
3171
3130
|
}
|
|
3131
|
+
///
|
|
3132
|
+
// DASHBOARD
|
|
3133
|
+
///
|
|
3134
|
+
/**
|
|
3135
|
+
* Retrieves the current dashboard and applies its counters to the shared dashboard state.
|
|
3136
|
+
* @returns The subscription to the dashboard request.
|
|
3137
|
+
*/
|
|
3138
|
+
loadDashboard() {
|
|
3139
|
+
return this.httpClient
|
|
3140
|
+
.post(this.core.serviceUri + '/account/dashboard', { refreshing: true }).subscribe((r) => {
|
|
3141
|
+
if (r.success) {
|
|
3142
|
+
this.core.dashboard.documentUpdates = r.value.documentUpdates;
|
|
3143
|
+
this.core.dashboard.expiredDeadlines = r.value.expiredDeadlines;
|
|
3144
|
+
this.core.dashboard.expiringDeadlines = r.value.expiringDeadlines;
|
|
3145
|
+
this.core.dashboard.isTrial = r.value.isTrial;
|
|
3146
|
+
this.core.dashboard.items.set(r.value.items ?? []);
|
|
3147
|
+
this.broadcastService.sendMessage(ClipperMessages.COMMAND_DASHBOARD_UPDATED);
|
|
3148
|
+
}
|
|
3149
|
+
});
|
|
3150
|
+
}
|
|
3151
|
+
/**
|
|
3152
|
+
* Retrieves documents updated in the last 15 days for the given search parameters.
|
|
3153
|
+
* @param params - The search parameters to filter results.
|
|
3154
|
+
* @returns An observable emitting the API result wrapping the last-days result.
|
|
3155
|
+
*/
|
|
3156
|
+
last15Days(params) {
|
|
3157
|
+
return this.httpClient.post(this.core.serviceUri + '/account/last-15-days', params);
|
|
3158
|
+
}
|
|
3159
|
+
/**
|
|
3160
|
+
* Adjusts the unread-item counter for the given module and broadcasts a dashboard update.
|
|
3161
|
+
* @param module - The Clipper module whose counter should be adjusted.
|
|
3162
|
+
* @param model - Optional document model to further scope the counter update.
|
|
3163
|
+
* @param increment - The signed increment to apply (use negative values to decrement).
|
|
3164
|
+
*/
|
|
3165
|
+
updateUnreadItems(module, model, increment) {
|
|
3166
|
+
increment ??= 0;
|
|
3167
|
+
if (increment !== 0) {
|
|
3168
|
+
this.core.dashboard.updateUnreadItems(module, model, increment);
|
|
3169
|
+
}
|
|
3170
|
+
this.broadcastService.sendMessage(ClipperMessages.COMMAND_DASHBOARD_UPDATED);
|
|
3171
|
+
}
|
|
3172
3172
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: ClipperAccountService, deps: [], target: i0.ɵɵFactoryTarget.Service }); }
|
|
3173
3173
|
static { this.ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.1", ngImport: i0, type: ClipperAccountService }); }
|
|
3174
3174
|
}
|
|
@@ -3586,9 +3586,9 @@ class ClipperService {
|
|
|
3586
3586
|
this.core = inject(ClipperCoreService);
|
|
3587
3587
|
/** Authentication: login/logout, MFA, OTP. */
|
|
3588
3588
|
this.session = inject(ClipperLoginService);
|
|
3589
|
-
/** Document search, references, export,
|
|
3589
|
+
/** Document search, references, export, working-documents bag and saved searches. */
|
|
3590
3590
|
this.documents = inject(ClipperDocumentsService);
|
|
3591
|
-
/** Account settings, password, channels, trial info and user links. */
|
|
3591
|
+
/** Account settings, dashboard, password, channels, trial info and user links. */
|
|
3592
3592
|
this.account = inject(ClipperAccountService);
|
|
3593
3593
|
/** Archive folders and files. */
|
|
3594
3594
|
this.archive = inject(ClipperArchiveService);
|