@arsedizioni/ars-utils 18.2.163 → 18.2.164
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/esm2022/clipper.common/common/services/clipper.service.mjs +2 -2
- package/esm2022/clipper.ui/documents.mjs +2 -2
- package/esm2022/clipper.ui/ui/browser-dialog/browser-dialog.component.mjs +17 -13
- package/esm2022/clipper.ui/ui/search-facets/search-facets.component.mjs +7 -8
- package/esm2022/help/components/help-viewer/help-viewer.component.mjs +10 -10
- package/esm2022/support.ui/ui/notifications-browser/notifications-browser.component.mjs +5 -5
- package/esm2022/ui/ui/services/dialog.service.mjs +2 -2
- package/esm2022/ui.application/ui/components/filter-bar/filter-bar.component.mjs +8 -8
- package/esm2022/ui.application/ui/dialogs/select-tree/select-tree-dialog.component.mjs +7 -7
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +24 -20
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-help.mjs +9 -9
- package/fesm2022/arsedizioni-ars-utils-help.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.ui.mjs +4 -4
- package/fesm2022/arsedizioni-ars-utils-support.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +12 -12
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.mjs +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ import { MatTabsModule } from '@angular/material/tabs';
|
|
|
33
33
|
import * as i3 from '@angular/material/tooltip';
|
|
34
34
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
35
35
|
import { ClipperSearchFacetsSnapshot, ClipperFacet, ClipperService, ClipperMessages, ClipperModel, ClipperQueryReferencesMode, ClipperModule, ClipperSearchResult, ClipperSearchParams, ClipperSort, ClipperSectors, ClipperRegions, ClipperChannels, ClipperSources, ClipperAuthors, ClipperSectorTypes, ClipperSearchUtils, ClipperModels, ClipperDocumentChangeReason } from '@arsedizioni/ars-utils/clipper.common';
|
|
36
|
-
import {
|
|
36
|
+
import { BroadcastService, SystemUtils, DateInterval, ScreenService, DateFormat, FormatPipe, SelectableModel, SafeUrlPipe, DateIntervalChangeDirective, SafeHtmlPipe } from '@arsedizioni/ars-utils/core';
|
|
37
37
|
import { Subject, takeUntil, fromEvent } from 'rxjs';
|
|
38
38
|
import { takeUntil as takeUntil$1, debounceTime } from 'rxjs/operators';
|
|
39
39
|
import { Router } from '@angular/router';
|
|
@@ -130,10 +130,10 @@ class ClipperSearchFacetsComponent {
|
|
|
130
130
|
if (values) {
|
|
131
131
|
this.snapshot.groups = [];
|
|
132
132
|
values.forEach(n => {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
const name = n[0].typeName;
|
|
134
|
+
const index = n[0].type;
|
|
135
|
+
const i = this.snapshot.usedGroups.findIndex(n => n.index === index);
|
|
136
|
+
const j = this.snapshot.groups.findIndex(n => n.index === index);
|
|
137
137
|
if (i === -1 && j === -1) {
|
|
138
138
|
this.snapshot.groups.push({
|
|
139
139
|
name: name,
|
|
@@ -157,7 +157,7 @@ class ClipperSearchFacetsComponent {
|
|
|
157
157
|
use(group, item) {
|
|
158
158
|
group.selectedValue = item.value;
|
|
159
159
|
group.selectedValueDescription = item.title;
|
|
160
|
-
|
|
160
|
+
const j = this.snapshot.groups.findIndex(n => n.index === group.index);
|
|
161
161
|
if (j !== -1) {
|
|
162
162
|
this.snapshot.groups.splice(j, 1);
|
|
163
163
|
let updated = false;
|
|
@@ -181,7 +181,7 @@ class ClipperSearchFacetsComponent {
|
|
|
181
181
|
dismiss(group, apply = true) {
|
|
182
182
|
group.selectedValue = null;
|
|
183
183
|
group.selectedValueDescription = null;
|
|
184
|
-
|
|
184
|
+
const i = this.snapshot.usedGroups.findIndex(n => n.index === group.index);
|
|
185
185
|
if (i !== -1) {
|
|
186
186
|
this.snapshot.usedGroups.splice(i, 1);
|
|
187
187
|
let updated = false;
|
|
@@ -2547,7 +2547,7 @@ class ClipperDocumentsUtils {
|
|
|
2547
2547
|
* @param title : the full document title
|
|
2548
2548
|
*/
|
|
2549
2549
|
static parseDocumentTitle(title) {
|
|
2550
|
-
|
|
2550
|
+
const p = title?.indexOf('[');
|
|
2551
2551
|
if (p !== -1) {
|
|
2552
2552
|
return title.substring(0, p);
|
|
2553
2553
|
}
|
|
@@ -3155,9 +3155,10 @@ class ClipperBrowserDialogComponent extends ClipperSearchResultManager {
|
|
|
3155
3155
|
let si = [];
|
|
3156
3156
|
if (this.filterParams.sector ||
|
|
3157
3157
|
(this.facets && this.snapshot.facets?.sector)) {
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3158
|
+
const s = ClipperSectors.find(n => n.value ===
|
|
3159
|
+
(this.snapshot.facets && this.snapshot.facets?.sector
|
|
3160
|
+
? this.snapshot.facets?.sector
|
|
3161
|
+
: this.filterParams.sector));
|
|
3161
3162
|
if (s) {
|
|
3162
3163
|
si.push({
|
|
3163
3164
|
field: 'settore',
|
|
@@ -3166,9 +3167,10 @@ class ClipperBrowserDialogComponent extends ClipperSearchResultManager {
|
|
|
3166
3167
|
});
|
|
3167
3168
|
}
|
|
3168
3169
|
else {
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3170
|
+
const s = ClipperModels.find(n => n.value ===
|
|
3171
|
+
(this.snapshot.facets && this.snapshot.facets?.sector
|
|
3172
|
+
? parseInt(this.snapshot.facets?.sector)
|
|
3173
|
+
: parseInt(this.filterParams.sector)));
|
|
3172
3174
|
if (s) {
|
|
3173
3175
|
si.push({
|
|
3174
3176
|
field: 'sezione',
|
|
@@ -3180,9 +3182,10 @@ class ClipperBrowserDialogComponent extends ClipperSearchResultManager {
|
|
|
3180
3182
|
}
|
|
3181
3183
|
if (this.filterParams.author ||
|
|
3182
3184
|
(this.snapshot.facets && this.snapshot.facets?.author)) {
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3185
|
+
const a = ClipperAuthors.find(n => n.value ===
|
|
3186
|
+
(this.snapshot.facets && this.snapshot.facets?.author
|
|
3187
|
+
? this.snapshot.facets?.author
|
|
3188
|
+
: this.filterParams.author));
|
|
3186
3189
|
if (a) {
|
|
3187
3190
|
si.push({
|
|
3188
3191
|
field: 'autore',
|
|
@@ -3299,9 +3302,10 @@ class ClipperBrowserDialogComponent extends ClipperSearchResultManager {
|
|
|
3299
3302
|
});
|
|
3300
3303
|
if (this.filterParams.type ||
|
|
3301
3304
|
(this.snapshot.facets && this.snapshot.facets?.type)) {
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
+
const t = ClipperSectorTypes.find(n => n.value ===
|
|
3306
|
+
(this.snapshot.facets && this.snapshot.facets?.type
|
|
3307
|
+
? this.snapshot.facets?.type
|
|
3308
|
+
: this.filterParams.type));
|
|
3305
3309
|
if (t) {
|
|
3306
3310
|
si.push({
|
|
3307
3311
|
field: 'tipo',
|