@arsedizioni/ars-utils 22.0.5 → 22.0.7
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.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +11 -11
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +1275 -1220
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
- package/package.json +1 -5
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +1 -2
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +2 -2
- 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.application.d.ts +9 -9
|
@@ -834,7 +834,7 @@ class ClipperDocumentManager {
|
|
|
834
834
|
/**
|
|
835
835
|
* Opens a dialog to manage the documents in the working bag (view, select, delete).
|
|
836
836
|
*/
|
|
837
|
-
openBag() {
|
|
837
|
+
async openBag() {
|
|
838
838
|
const items = [];
|
|
839
839
|
this.clipperService.bag().forEach(n => {
|
|
840
840
|
const title = n.title1 ?? n.title2 ?? '';
|
|
@@ -844,7 +844,7 @@ class ClipperDocumentManager {
|
|
|
844
844
|
searchBag: { name: title },
|
|
845
845
|
});
|
|
846
846
|
});
|
|
847
|
-
const d = this.dialogService.select({
|
|
847
|
+
const d = await this.dialogService.select({
|
|
848
848
|
title: 'Gestisci documenti di lavoro',
|
|
849
849
|
multipleSelection: false,
|
|
850
850
|
mustSelect: false,
|
|
@@ -853,12 +853,12 @@ class ClipperDocumentManager {
|
|
|
853
853
|
canDelete: true,
|
|
854
854
|
canView: true,
|
|
855
855
|
});
|
|
856
|
-
d
|
|
856
|
+
d?.componentInstance.view
|
|
857
857
|
.subscribe((r) => {
|
|
858
858
|
let item = r.bag;
|
|
859
859
|
this.open(item.documentId);
|
|
860
860
|
});
|
|
861
|
-
d
|
|
861
|
+
d?.componentInstance.delete
|
|
862
862
|
.subscribe((r) => {
|
|
863
863
|
const item = r.selectedItems[0].bag;
|
|
864
864
|
this.clipperService.removeFromBag(item.documentId).add(() => {
|
|
@@ -1695,12 +1695,12 @@ class ClipperContactsSelector {
|
|
|
1695
1695
|
* @param onSelect - Optional callback invoked with the selection result when the user confirms.
|
|
1696
1696
|
*/
|
|
1697
1697
|
static Show(injector, canAppend, canEdit, onSelect) {
|
|
1698
|
-
runInInjectionContext(injector, () => {
|
|
1698
|
+
runInInjectionContext(injector, async () => {
|
|
1699
1699
|
const dialogService = inject(ApplicationDialogService);
|
|
1700
1700
|
const clipperService = inject(ClipperService);
|
|
1701
1701
|
let lookupSubscription;
|
|
1702
1702
|
const canSelect = onSelect !== undefined;
|
|
1703
|
-
const d = dialogService.select({
|
|
1703
|
+
const d = await dialogService.select({
|
|
1704
1704
|
title: canSelect ? 'Seleziona un contatto' : 'Gestisci contatti',
|
|
1705
1705
|
multipleSelection: true,
|
|
1706
1706
|
mustSelect: canSelect,
|
|
@@ -2740,11 +2740,11 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
|
|
|
2740
2740
|
* Saves the current filter parameters as a named search.
|
|
2741
2741
|
* @param newFilter - When true, always prompts for a new filter name; otherwise updates the existing one. Defaults to false.
|
|
2742
2742
|
*/
|
|
2743
|
-
saveFilter(newFilter = false) {
|
|
2743
|
+
async saveFilter(newFilter = false) {
|
|
2744
2744
|
this.loadFilter();
|
|
2745
2745
|
if (newFilter || !this.filterParams.searchId) {
|
|
2746
|
-
const d = this.dialogService.prompt("Crea un nuovo filtro", 0, "Nome filtro");
|
|
2747
|
-
d
|
|
2746
|
+
const d = await this.dialogService.prompt("Crea un nuovo filtro", 0, "Nome filtro");
|
|
2747
|
+
d?.componentInstance.done.subscribe((data) => {
|
|
2748
2748
|
if (data?.value) {
|
|
2749
2749
|
this.clipperService.saveSearch({
|
|
2750
2750
|
module: ClipperModule.Ricerca,
|
|
@@ -3463,7 +3463,7 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
|
|
|
3463
3463
|
.selectTree(this.topics, 'Seleziona un argomento', undefined, (this.filterParams.topics && this.filterParams.topics.length > 0)
|
|
3464
3464
|
? this.filterParams.topics[this.filterParams.topics.length - 1].name
|
|
3465
3465
|
: undefined)
|
|
3466
|
-
.componentInstance.done.subscribe(r => {
|
|
3466
|
+
.then(d => d?.componentInstance.done.subscribe(r => {
|
|
3467
3467
|
if (!this.filterParams.topics) {
|
|
3468
3468
|
this.filterParams.topics = [];
|
|
3469
3469
|
}
|
|
@@ -3472,7 +3472,7 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
|
|
|
3472
3472
|
this.filterParams.topics?.push({ name: bag.name, value: bag.id });
|
|
3473
3473
|
this.changeDetector.markForCheck();
|
|
3474
3474
|
});
|
|
3475
|
-
});
|
|
3475
|
+
}));
|
|
3476
3476
|
}
|
|
3477
3477
|
/**
|
|
3478
3478
|
* Remove a topic from the current filter.
|