@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.
- package/clipper.common/common/definitions.d.ts +1 -1
- package/clipper.common/common/services/clipper.service.d.ts +8 -8
- package/clipper.ui/documents.d.ts +1 -1
- package/clipper.ui/ui/browser/browser-dialog/browser-dialog.component.d.ts +6 -6
- package/clipper.ui/ui/browser/browser.component.d.ts +2 -2
- package/clipper.ui/ui/document/document.component.d.ts +9 -9
- package/clipper.ui/ui/document-manager/document-manager.d.ts +3 -3
- package/clipper.ui/ui/document-menu/document-menu.component.d.ts +2 -2
- package/clipper.ui/ui/references/references.component.d.ts +6 -6
- package/clipper.ui/ui/search-calendar/search-calendar.component.d.ts +2 -2
- package/clipper.ui/ui/search-facets/search-facets.component.d.ts +1 -1
- package/clipper.ui/ui/search-result-manager/search-result-manager.d.ts +9 -9
- package/core/definitions.d.ts +39 -39
- package/core/pipes/format.pipe.d.ts +1 -1
- package/core/pipes/replace.pipe.d.ts +1 -1
- package/core/pipes/safe-html.pipe.d.ts +1 -1
- package/core/pipes/safe-url.pipe.d.ts +1 -1
- package/core/pipes/search-callback.pipe.d.ts +1 -1
- package/core/pipes/search-filter.pipe.d.ts +1 -1
- package/core/selectable.d.ts +4 -4
- package/core/services/broadcast.service.d.ts +1 -1
- package/core/services/broadcastChannelManager.d.ts +1 -1
- package/core/system.d.ts +8 -8
- package/evolution.common/common/definitions.d.ts +218 -218
- package/evolution.common/common/services/evolution.service.d.ts +5 -5
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +10 -11
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +31 -31
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +7 -7
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-help.mjs +1 -1
- package/fesm2022/arsedizioni-ars-utils-help.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs +4 -4
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.ui.mjs +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-tinymce.mjs +1 -1
- package/fesm2022/arsedizioni-ars-utils-tinymce.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +35 -39
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.mjs +11 -11
- package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
- package/help/components/help-viewer/help-viewer.component.d.ts +4 -4
- package/help/definitions.d.ts +1 -1
- package/package.json +5 -5
- package/support.common/common/definitions.d.ts +23 -23
- package/support.common/common/services/support.service.d.ts +1 -1
- package/support.ui/ui/notifications-browser/notification/notification.component.d.ts +2 -2
- package/tinymce/full-screen-editor/full-screen-editor.component.d.ts +2 -2
- package/ui/ui/definitions.d.ts +4 -4
- package/ui/ui/dialogs/confirm/confirm-dialog.component.d.ts +7 -7
- package/ui/ui/dialogs/credentials/credentials-dialog.component.d.ts +9 -9
- package/ui/ui/dialogs/info/info-dialog.component.d.ts +5 -5
- package/ui/ui/dialogs/recover-password/recover-password-dialog.component.d.ts +1 -1
- package/ui/ui/dialogs/reset-password/reset-password-dialog.component.d.ts +3 -3
- package/ui/ui/dialogs/toast/toast.component.d.ts +2 -2
- package/ui/ui/services/dialog.service.d.ts +9 -9
- package/ui.application/ui/components/button-selector/button-selector.component.d.ts +2 -2
- package/ui.application/ui/components/chips-selector/chips-selector.component.d.ts +1 -1
- package/ui.application/ui/components/file-input/file-input.component.d.ts +1 -1
- package/ui.application/ui/components/file-preview/file-preview.component.d.ts +3 -3
- package/ui.application/ui/components/filter-bar/filter-bar.component.d.ts +3 -3
- package/ui.application/ui/definitions.d.ts +49 -49
- package/ui.application/ui/dialogs/prompt/prompt-dialog.component.d.ts +1 -1
- package/ui.application/ui/dialogs/prompt-date/prompt-date-dialog.component.d.ts +1 -1
- package/ui.application/ui/dialogs/prompt-time/prompt-time-dialog.component.d.ts +1 -1
- package/ui.application/ui/dialogs/select/select-dialog.component.d.ts +1 -1
- package/ui.application/ui/dialogs/select-file/select-file-dialog.component.d.ts +1 -1
- package/ui.application/ui/dialogs/select-picture/select-picture-dialog.component.d.ts +1 -1
- package/ui.application/ui/dialogs/send-to/send-to-dialog.component.d.ts +5 -5
- package/ui.application/ui/filters.d.ts +28 -28
- 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 =
|
|
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 =
|
|
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 =
|
|
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(
|
|
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 =
|
|
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 =
|
|
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 ??
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
1890
|
+
this.sortMode = undefined;
|
|
1892
1891
|
this.scrollPos = 0;
|
|
1893
1892
|
this.scrollerId = 'scroller_' + SystemUtils.generateUUID();
|
|
1894
|
-
this.restorableId =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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(
|
|
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 =
|
|
2495
|
-
this.item =
|
|
2496
|
-
this.user = this.clipperService.loginInfo?.context ??
|
|
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 =
|
|
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 ??
|
|
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
|
|
3512
|
+
totalUnread = this.clipperService.dashboard.getUnreadItems(ClipperModule.Giurisprudenza);
|
|
3513
3513
|
}
|
|
3514
3514
|
else {
|
|
3515
|
-
totalUnread = this.clipperService.dashboard.getUnreadItems(module.value
|
|
3515
|
+
totalUnread = this.clipperService.dashboard.getUnreadItems(module.value);
|
|
3516
3516
|
}
|
|
3517
3517
|
if (totalUnread > 0) {
|
|
3518
3518
|
module.bag = totalUnread.toString();
|