@arsedizioni/ars-utils 22.0.2 → 22.0.4
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 +4 -7
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +19 -16
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs +13 -25
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +4 -7
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-help.mjs +4 -7
- package/fesm2022/arsedizioni-ars-utils-help.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.mjs +3650 -37
- package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils.mjs +0 -2
- package/fesm2022/arsedizioni-ars-utils.mjs.map +1 -1
- package/package.json +1 -9
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +1 -3
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +6 -6
- package/types/arsedizioni-ars-utils-evolution.common.d.ts +1 -1
- package/types/arsedizioni-ars-utils-support.common.d.ts +1 -1
- package/types/arsedizioni-ars-utils-ui.d.ts +1576 -8
- package/types/arsedizioni-ars-utils.d.ts +0 -2
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +0 -3350
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +0 -1
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +0 -287
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs.map +0 -1
- package/types/arsedizioni-ars-utils-ui.application.d.ts +0 -1497
- package/types/arsedizioni-ars-utils-ui.oauth.d.ts +0 -74
|
@@ -44,7 +44,7 @@ import { MatTooltipModule } from '@angular/material/tooltip';
|
|
|
44
44
|
import { ClipperService, ClipperModel, ClipperUtils, ClipperSearchFacetsSnapshot, ClipperFacet, ClipperMessages, ClipperQueryReferencesMode, ClipperModule, ClipperSelectionMode, ClipperSearchResult, ClipperSearchParams, ClipperSort, ClipperSearchUtils, ClipperQueryDocumentFlags, ClipperSources, ClipperDocumentChangeReasons, ClipperChannel, ClipperSectors, ClipperRegions, ClipperAuthors, ClipperSectorTypes, ClipperTeamProduct, NotesColors } from '@arsedizioni/ars-utils/clipper.common';
|
|
45
45
|
import * as i19 from '@arsedizioni/ars-utils/core';
|
|
46
46
|
import { BroadcastService, SystemUtils, ThemeService, ScreenService, DateFormat, FormatPipe, DateInterval, SelectableModel, ArsCoreModule, SafeHtmlPipe } from '@arsedizioni/ars-utils/core';
|
|
47
|
-
import {
|
|
47
|
+
import { DialogService, SendToDialogComponent, ChipsSelectorComponent, ButtonSelectorComponent, ButtonToggleComponent, FilePreviewComponent, CalendarEmptyHeader } from '@arsedizioni/ars-utils/ui';
|
|
48
48
|
import * as i1 from '@ngbracket/ngx-layout';
|
|
49
49
|
import { FlexModule, FlexLayoutModule } from '@ngbracket/ngx-layout';
|
|
50
50
|
import { finalize, fromEvent } from 'rxjs';
|
|
@@ -52,7 +52,6 @@ import { FlexModule as FlexModule$1 } from '@ngbracket/ngx-layout/flex';
|
|
|
52
52
|
import { startOfToday, startOfDay, subDays, endOfDay, startOfMonth, endOfMonth } from 'date-fns';
|
|
53
53
|
import { Clipboard } from '@angular/cdk/clipboard';
|
|
54
54
|
import saveAs from 'file-saver';
|
|
55
|
-
import { DialogService } from '@arsedizioni/ars-utils/ui';
|
|
56
55
|
import { Overlay, OverlayModule } from '@angular/cdk/overlay';
|
|
57
56
|
import { TemplatePortal } from '@angular/cdk/portal';
|
|
58
57
|
import * as i5 from '@ngbracket/ngx-layout/extended';
|
|
@@ -535,7 +534,7 @@ class ClipperDocumentManager {
|
|
|
535
534
|
this.clipboard = inject(Clipboard);
|
|
536
535
|
this.clipperService = inject(ClipperService);
|
|
537
536
|
this.broadcastService = inject(BroadcastService);
|
|
538
|
-
this.dialogService = inject(
|
|
537
|
+
this.dialogService = inject(DialogService);
|
|
539
538
|
this.canUseArchive = signal(false, /* @ts-ignore */
|
|
540
539
|
...(ngDevMode ? [{ debugName: "canUseArchive" }] : /* istanbul ignore next */ []));
|
|
541
540
|
this.canUseNotes = signal(false, /* @ts-ignore */
|
|
@@ -834,7 +833,7 @@ class ClipperDocumentManager {
|
|
|
834
833
|
/**
|
|
835
834
|
* Opens a dialog to manage the documents in the working bag (view, select, delete).
|
|
836
835
|
*/
|
|
837
|
-
openBag() {
|
|
836
|
+
async openBag() {
|
|
838
837
|
const items = [];
|
|
839
838
|
this.clipperService.bag().forEach(n => {
|
|
840
839
|
const title = n.title1 ?? n.title2 ?? '';
|
|
@@ -844,7 +843,7 @@ class ClipperDocumentManager {
|
|
|
844
843
|
searchBag: { name: title },
|
|
845
844
|
});
|
|
846
845
|
});
|
|
847
|
-
const d = this.dialogService.select({
|
|
846
|
+
const d = await this.dialogService.select({
|
|
848
847
|
title: 'Gestisci documenti di lavoro',
|
|
849
848
|
multipleSelection: false,
|
|
850
849
|
mustSelect: false,
|
|
@@ -853,6 +852,8 @@ class ClipperDocumentManager {
|
|
|
853
852
|
canDelete: true,
|
|
854
853
|
canView: true,
|
|
855
854
|
});
|
|
855
|
+
if (!d)
|
|
856
|
+
return;
|
|
856
857
|
d.componentInstance.view
|
|
857
858
|
.subscribe((r) => {
|
|
858
859
|
let item = r.bag;
|
|
@@ -1695,12 +1696,12 @@ class ClipperContactsSelector {
|
|
|
1695
1696
|
* @param onSelect - Optional callback invoked with the selection result when the user confirms.
|
|
1696
1697
|
*/
|
|
1697
1698
|
static Show(injector, canAppend, canEdit, onSelect) {
|
|
1698
|
-
runInInjectionContext(injector, () => {
|
|
1699
|
-
const dialogService = inject(
|
|
1699
|
+
runInInjectionContext(injector, async () => {
|
|
1700
|
+
const dialogService = inject(DialogService);
|
|
1700
1701
|
const clipperService = inject(ClipperService);
|
|
1701
1702
|
let lookupSubscription;
|
|
1702
1703
|
const canSelect = onSelect !== undefined;
|
|
1703
|
-
const d = dialogService.select({
|
|
1704
|
+
const d = await dialogService.select({
|
|
1704
1705
|
title: canSelect ? 'Seleziona un contatto' : 'Gestisci contatti',
|
|
1705
1706
|
multipleSelection: true,
|
|
1706
1707
|
mustSelect: canSelect,
|
|
@@ -1831,7 +1832,7 @@ class ClipperNoteBadgeComponent {
|
|
|
1831
1832
|
this.injector = inject(Injector);
|
|
1832
1833
|
this.clipperService = inject(ClipperService);
|
|
1833
1834
|
this.broadcastService = inject(BroadcastService);
|
|
1834
|
-
this.dialogService = inject(
|
|
1835
|
+
this.dialogService = inject(DialogService);
|
|
1835
1836
|
this.destroyRef = inject(DestroyRef);
|
|
1836
1837
|
this.overlay = inject(Overlay);
|
|
1837
1838
|
this.overlayRef = null;
|
|
@@ -2740,10 +2741,12 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
|
|
|
2740
2741
|
* Saves the current filter parameters as a named search.
|
|
2741
2742
|
* @param newFilter - When true, always prompts for a new filter name; otherwise updates the existing one. Defaults to false.
|
|
2742
2743
|
*/
|
|
2743
|
-
saveFilter(newFilter = false) {
|
|
2744
|
+
async saveFilter(newFilter = false) {
|
|
2744
2745
|
this.loadFilter();
|
|
2745
2746
|
if (newFilter || !this.filterParams.searchId) {
|
|
2746
|
-
const d = this.dialogService.prompt("Crea un nuovo filtro", 0, "Nome filtro");
|
|
2747
|
+
const d = await this.dialogService.prompt("Crea un nuovo filtro", 0, "Nome filtro");
|
|
2748
|
+
if (!d)
|
|
2749
|
+
return;
|
|
2747
2750
|
d.componentInstance.done.subscribe((data) => {
|
|
2748
2751
|
if (data?.value) {
|
|
2749
2752
|
this.clipperService.saveSearch({
|
|
@@ -3458,12 +3461,12 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
|
|
|
3458
3461
|
/**
|
|
3459
3462
|
* Open the topic-selection dialog and append the chosen topics to the current filter.
|
|
3460
3463
|
*/
|
|
3461
|
-
addTopic() {
|
|
3462
|
-
this.dialogService
|
|
3464
|
+
async addTopic() {
|
|
3465
|
+
const d = await this.dialogService
|
|
3463
3466
|
.selectTree(this.topics, 'Seleziona un argomento', undefined, (this.filterParams.topics && this.filterParams.topics.length > 0)
|
|
3464
3467
|
? this.filterParams.topics[this.filterParams.topics.length - 1].name
|
|
3465
|
-
: undefined)
|
|
3466
|
-
|
|
3468
|
+
: undefined);
|
|
3469
|
+
d?.componentInstance.done.subscribe(r => {
|
|
3467
3470
|
if (!this.filterParams.topics) {
|
|
3468
3471
|
this.filterParams.topics = [];
|
|
3469
3472
|
}
|
|
@@ -4566,7 +4569,7 @@ class ClipperNoteEditComponent {
|
|
|
4566
4569
|
constructor() {
|
|
4567
4570
|
this.done = output();
|
|
4568
4571
|
this.destroyRef = inject(DestroyRef);
|
|
4569
|
-
this.dialogService = inject(
|
|
4572
|
+
this.dialogService = inject(DialogService);
|
|
4570
4573
|
this.dialogData = inject(MAT_DIALOG_DATA);
|
|
4571
4574
|
this.dialogTitle = signal((this.dialogData.currentItem?.id ?? 0) > 0 ? 'Modifica annotazione' : 'Nuova annotazione', /* @ts-ignore */
|
|
4572
4575
|
...(ngDevMode ? [{ debugName: "dialogTitle" }] : /* istanbul ignore next */ []));
|