@alfresco/aca-content 7.3.0-21353307325 → 7.3.0-21353511383
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/assets/app.extensions.json +10 -2
- package/fesm2022/alfresco-aca-content.mjs +41 -24
- package/fesm2022/alfresco-aca-content.mjs.map +1 -1
- package/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.d.ts +4 -1
- package/lib/services/content-management.service.d.ts +5 -5
- package/package.json +1 -1
|
@@ -566,7 +566,9 @@
|
|
|
566
566
|
"comment": "workaround for Recent Files and Search API issue",
|
|
567
567
|
"type": "custom",
|
|
568
568
|
"order": 400,
|
|
569
|
-
"data":
|
|
569
|
+
"data": {
|
|
570
|
+
"routes": ["/favorites", "/favorite/libraries"]
|
|
571
|
+
},
|
|
570
572
|
"component": "app.toolbar.toggleFavorite",
|
|
571
573
|
"rules": {
|
|
572
574
|
"visible": [
|
|
@@ -939,7 +941,10 @@
|
|
|
939
941
|
"comment": "workaround for Recent Files and Search API issue",
|
|
940
942
|
"type": "custom",
|
|
941
943
|
"order": 802,
|
|
942
|
-
"data":
|
|
944
|
+
"data": {
|
|
945
|
+
"routes": ["/favorites", "/favorite/libraries"],
|
|
946
|
+
"focusAfterClosed": ".adf-context-menu-source"
|
|
947
|
+
},
|
|
943
948
|
"component": "app.toolbar.toggleFavorite",
|
|
944
949
|
"rules": {
|
|
945
950
|
"visible": [
|
|
@@ -953,6 +958,9 @@
|
|
|
953
958
|
"type": "custom",
|
|
954
959
|
"order": 803,
|
|
955
960
|
"component": "app.toolbar.toggleFavoriteLibrary",
|
|
961
|
+
"data": {
|
|
962
|
+
"focusAfterClosed": ".adf-context-menu-source"
|
|
963
|
+
},
|
|
956
964
|
"rules": {
|
|
957
965
|
"visible": [
|
|
958
966
|
"app.selection.library"
|
|
@@ -1236,7 +1236,8 @@ class ContentManagementService {
|
|
|
1236
1236
|
appSettingsService = inject(AppSettingsService);
|
|
1237
1237
|
documentListService = inject(DocumentListService);
|
|
1238
1238
|
createMenuButtonSelector = 'app-toolbar-menu button[id="app.toolbar.create"]';
|
|
1239
|
-
addFavorite(nodes) {
|
|
1239
|
+
addFavorite(nodes, focusedElementOnCloseSelector) {
|
|
1240
|
+
this.focusAfterClose(focusedElementOnCloseSelector);
|
|
1240
1241
|
if (nodes && nodes.length > 0) {
|
|
1241
1242
|
this.contentApi.addFavorite(nodes).subscribe(() => {
|
|
1242
1243
|
const favoriteNodes = nodes.map((node) => {
|
|
@@ -1254,7 +1255,8 @@ class ContentManagementService {
|
|
|
1254
1255
|
});
|
|
1255
1256
|
}
|
|
1256
1257
|
}
|
|
1257
|
-
removeFavorite(nodes) {
|
|
1258
|
+
removeFavorite(nodes, focusedElementOnCloseSelector) {
|
|
1259
|
+
this.focusAfterClose(focusedElementOnCloseSelector);
|
|
1258
1260
|
if (nodes && nodes.length > 0) {
|
|
1259
1261
|
this.contentApi.removeFavorite(nodes).subscribe({
|
|
1260
1262
|
next: () => {
|
|
@@ -1475,7 +1477,7 @@ class ContentManagementService {
|
|
|
1475
1477
|
canUploadContent(folderNode) {
|
|
1476
1478
|
return this.permission.check(folderNode, ['create']);
|
|
1477
1479
|
}
|
|
1478
|
-
purgeDeletedNodes(nodes) {
|
|
1480
|
+
purgeDeletedNodes(nodes, focusedElementOnCloseSelector) {
|
|
1479
1481
|
if (!nodes || nodes.length === 0) {
|
|
1480
1482
|
return;
|
|
1481
1483
|
}
|
|
@@ -1489,6 +1491,7 @@ class ContentManagementService {
|
|
|
1489
1491
|
minWidth: '250px'
|
|
1490
1492
|
});
|
|
1491
1493
|
dialogRef.afterClosed().subscribe((result) => {
|
|
1494
|
+
this.focusAfterClose(focusedElementOnCloseSelector);
|
|
1492
1495
|
if (result === true) {
|
|
1493
1496
|
const nodesToDelete = nodes.map((node) => {
|
|
1494
1497
|
const { name } = node.entry;
|
|
@@ -1502,7 +1505,7 @@ class ContentManagementService {
|
|
|
1502
1505
|
}
|
|
1503
1506
|
});
|
|
1504
1507
|
}
|
|
1505
|
-
restoreDeletedNodes(selection = []) {
|
|
1508
|
+
restoreDeletedNodes(selection = [], focusedElementOnCloseSelector) {
|
|
1506
1509
|
if (!selection.length) {
|
|
1507
1510
|
return;
|
|
1508
1511
|
}
|
|
@@ -1523,8 +1526,11 @@ class ContentManagementService {
|
|
|
1523
1526
|
const selectedNodes = this.diff(status.fail, selection, false);
|
|
1524
1527
|
const remainingNodes = this.diff(selectedNodes, nodes.list.entries);
|
|
1525
1528
|
if (!remainingNodes.length) {
|
|
1529
|
+
this.focusAfterClose(focusedElementOnCloseSelector);
|
|
1526
1530
|
this.showRestoreNotification(status);
|
|
1527
|
-
|
|
1531
|
+
setTimeout(() => {
|
|
1532
|
+
this.documentListService.reload();
|
|
1533
|
+
}, 50);
|
|
1528
1534
|
}
|
|
1529
1535
|
else {
|
|
1530
1536
|
this.restoreDeletedNodes(remainingNodes);
|
|
@@ -1735,7 +1741,8 @@ class ContentManagementService {
|
|
|
1735
1741
|
this.notificationService.showError(message);
|
|
1736
1742
|
});
|
|
1737
1743
|
}
|
|
1738
|
-
deleteNodes(items, allowUndo = true) {
|
|
1744
|
+
deleteNodes(items, allowUndo = true, focusedElementOnCloseSelector) {
|
|
1745
|
+
this.focusAfterClose(focusedElementOnCloseSelector);
|
|
1739
1746
|
const batch = [];
|
|
1740
1747
|
items.forEach((node) => {
|
|
1741
1748
|
batch.push(this.deleteNode(node));
|
|
@@ -2168,7 +2175,7 @@ class FavoriteEffects {
|
|
|
2168
2175
|
content = inject(ContentManagementService);
|
|
2169
2176
|
addFavorite$ = createEffect(() => this.actions$.pipe(ofType(NodeActionTypes.AddFavorite), map((action) => {
|
|
2170
2177
|
if (action.payload && action.payload.length > 0) {
|
|
2171
|
-
this.content.addFavorite(action.payload);
|
|
2178
|
+
this.content.addFavorite(action.payload, action.configuration.focusedElementOnCloseSelector);
|
|
2172
2179
|
}
|
|
2173
2180
|
else {
|
|
2174
2181
|
this.store
|
|
@@ -2176,14 +2183,14 @@ class FavoriteEffects {
|
|
|
2176
2183
|
.pipe(take(1))
|
|
2177
2184
|
.subscribe((selection) => {
|
|
2178
2185
|
if (selection && !selection.isEmpty) {
|
|
2179
|
-
this.content.addFavorite(selection.nodes);
|
|
2186
|
+
this.content.addFavorite(selection.nodes, action.configuration.focusedElementOnCloseSelector);
|
|
2180
2187
|
}
|
|
2181
2188
|
});
|
|
2182
2189
|
}
|
|
2183
2190
|
})), { dispatch: false });
|
|
2184
2191
|
removeFavorite$ = createEffect(() => this.actions$.pipe(ofType(NodeActionTypes.RemoveFavorite), map((action) => {
|
|
2185
2192
|
if (action.payload && action.payload.length > 0) {
|
|
2186
|
-
this.content.removeFavorite(action.payload);
|
|
2193
|
+
this.content.removeFavorite(action.payload, action.configuration.focusedElementOnCloseSelector);
|
|
2187
2194
|
}
|
|
2188
2195
|
else {
|
|
2189
2196
|
this.store
|
|
@@ -2191,7 +2198,7 @@ class FavoriteEffects {
|
|
|
2191
2198
|
.pipe(take(1))
|
|
2192
2199
|
.subscribe((selection) => {
|
|
2193
2200
|
if (selection && !selection.isEmpty) {
|
|
2194
|
-
this.content.removeFavorite(selection.nodes);
|
|
2201
|
+
this.content.removeFavorite(selection.nodes, action.configuration.focusedElementOnCloseSelector);
|
|
2195
2202
|
}
|
|
2196
2203
|
});
|
|
2197
2204
|
}
|
|
@@ -2266,7 +2273,7 @@ class NodeEffects {
|
|
|
2266
2273
|
})), { dispatch: false });
|
|
2267
2274
|
purgeDeletedNodes$ = createEffect(() => this.actions$.pipe(ofType(NodeActionTypes.PurgeDeleted), map((action) => {
|
|
2268
2275
|
if (action?.payload?.length > 0) {
|
|
2269
|
-
this.contentService.purgeDeletedNodes(action.payload);
|
|
2276
|
+
this.contentService.purgeDeletedNodes(action.payload, action.configuration?.focusedElementOnCloseSelector);
|
|
2270
2277
|
}
|
|
2271
2278
|
else {
|
|
2272
2279
|
this.store
|
|
@@ -2274,14 +2281,14 @@ class NodeEffects {
|
|
|
2274
2281
|
.pipe(take(1))
|
|
2275
2282
|
.subscribe((selection) => {
|
|
2276
2283
|
if (selection && selection.count > 0) {
|
|
2277
|
-
this.contentService.purgeDeletedNodes(selection.nodes);
|
|
2284
|
+
this.contentService.purgeDeletedNodes(selection.nodes, action.configuration?.focusedElementOnCloseSelector);
|
|
2278
2285
|
}
|
|
2279
2286
|
});
|
|
2280
2287
|
}
|
|
2281
2288
|
})), { dispatch: false });
|
|
2282
2289
|
restoreDeletedNodes$ = createEffect(() => this.actions$.pipe(ofType(NodeActionTypes.RestoreDeleted), map((action) => {
|
|
2283
2290
|
if (action?.payload?.length > 0) {
|
|
2284
|
-
this.contentService.restoreDeletedNodes(action.payload);
|
|
2291
|
+
this.contentService.restoreDeletedNodes(action.payload, action.configuration?.focusedElementOnCloseSelector);
|
|
2285
2292
|
}
|
|
2286
2293
|
else {
|
|
2287
2294
|
this.store
|
|
@@ -2289,7 +2296,7 @@ class NodeEffects {
|
|
|
2289
2296
|
.pipe(take(1))
|
|
2290
2297
|
.subscribe((selection) => {
|
|
2291
2298
|
if (selection && selection.count > 0) {
|
|
2292
|
-
this.contentService.restoreDeletedNodes(selection.nodes);
|
|
2299
|
+
this.contentService.restoreDeletedNodes(selection.nodes, action.configuration?.focusedElementOnCloseSelector);
|
|
2293
2300
|
}
|
|
2294
2301
|
});
|
|
2295
2302
|
}
|
|
@@ -2297,7 +2304,7 @@ class NodeEffects {
|
|
|
2297
2304
|
deleteNodes$ = createEffect(() => this.actions$.pipe(ofType(NodeActionTypes.Delete), map((action) => {
|
|
2298
2305
|
this.store.dispatch(new ShowLoaderAction(true));
|
|
2299
2306
|
if (action?.payload?.length > 0) {
|
|
2300
|
-
this.contentService.deleteNodes(action.payload, action.allowUndo);
|
|
2307
|
+
this.contentService.deleteNodes(action.payload, action.allowUndo, action.configuration?.focusedElementOnCloseSelector);
|
|
2301
2308
|
}
|
|
2302
2309
|
else {
|
|
2303
2310
|
this.store
|
|
@@ -2305,7 +2312,7 @@ class NodeEffects {
|
|
|
2305
2312
|
.pipe(take(1))
|
|
2306
2313
|
.subscribe((selection) => {
|
|
2307
2314
|
if (selection && selection.count > 0) {
|
|
2308
|
-
this.contentService.deleteNodes(selection.nodes, action.allowUndo);
|
|
2315
|
+
this.contentService.deleteNodes(selection.nodes, action.allowUndo, action.configuration?.focusedElementOnCloseSelector);
|
|
2309
2316
|
}
|
|
2310
2317
|
});
|
|
2311
2318
|
}
|
|
@@ -5466,6 +5473,7 @@ class ToggleFavoriteLibraryComponent {
|
|
|
5466
5473
|
appHookService;
|
|
5467
5474
|
router;
|
|
5468
5475
|
library;
|
|
5476
|
+
data;
|
|
5469
5477
|
menuItem;
|
|
5470
5478
|
destroyRef = inject(DestroyRef);
|
|
5471
5479
|
constructor(store, appHookService, router) {
|
|
@@ -5487,10 +5495,15 @@ class ToggleFavoriteLibraryComponent {
|
|
|
5487
5495
|
});
|
|
5488
5496
|
}
|
|
5489
5497
|
onToggleEvent() {
|
|
5490
|
-
this.
|
|
5498
|
+
if (this.data?.focusAfterClosed) {
|
|
5499
|
+
document.querySelector('.adf-context-menu-source')?.focus();
|
|
5500
|
+
}
|
|
5501
|
+
setTimeout(() => {
|
|
5502
|
+
this.appHookService.favoriteLibraryToggle.next();
|
|
5503
|
+
}, 100);
|
|
5491
5504
|
}
|
|
5492
5505
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ToggleFavoriteLibraryComponent, deps: [{ token: i1.Store }, { token: i2.AppHookService }, { token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
5493
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: ToggleFavoriteLibraryComponent, isStandalone: true, selector: "app-toggle-favorite-library", host: { classAttribute: "app-toggle-favorite-library" }, viewQueries: [{ propertyName: "menuItem", first: true, predicate: MatMenuItem, descendants: true }], ngImport: i0, template: `
|
|
5506
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: ToggleFavoriteLibraryComponent, isStandalone: true, selector: "app-toggle-favorite-library", inputs: { data: "data" }, host: { classAttribute: "app-toggle-favorite-library" }, viewQueries: [{ propertyName: "menuItem", first: true, predicate: MatMenuItem, descendants: true }], ngImport: i0, template: `
|
|
5494
5507
|
<button
|
|
5495
5508
|
mat-menu-item
|
|
5496
5509
|
(toggle)="onToggleEvent()"
|
|
@@ -5521,7 +5534,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
5521
5534
|
encapsulation: ViewEncapsulation.None,
|
|
5522
5535
|
host: { class: 'app-toggle-favorite-library' }
|
|
5523
5536
|
}]
|
|
5524
|
-
}], ctorParameters: () => [{ type: i1.Store }, { type: i2.AppHookService }, { type: i1$3.Router }], propDecorators: {
|
|
5537
|
+
}], ctorParameters: () => [{ type: i1.Store }, { type: i2.AppHookService }, { type: i1$3.Router }], propDecorators: { data: [{
|
|
5538
|
+
type: Input
|
|
5539
|
+
}], menuItem: [{
|
|
5525
5540
|
type: ViewChild,
|
|
5526
5541
|
args: [MatMenuItem]
|
|
5527
5542
|
}] } });
|
|
@@ -5563,11 +5578,13 @@ class ToggleFavoriteComponent {
|
|
|
5563
5578
|
this.selection$ = this.store.select(getAppSelection);
|
|
5564
5579
|
}
|
|
5565
5580
|
ngOnInit() {
|
|
5566
|
-
|
|
5567
|
-
this.reloadOnRoutes = JSON.parse(this.data.replace(/'/g, '"'));
|
|
5568
|
-
}
|
|
5581
|
+
this.reloadOnRoutes = this.data?.routes ?? [];
|
|
5569
5582
|
}
|
|
5570
5583
|
onToggleEvent() {
|
|
5584
|
+
const focusAfterClosed = this.data?.focusAfterClosed;
|
|
5585
|
+
if (focusAfterClosed) {
|
|
5586
|
+
document.querySelector(focusAfterClosed)?.focus();
|
|
5587
|
+
}
|
|
5571
5588
|
if (this.reloadOnRoutes.includes(this.router.url)) {
|
|
5572
5589
|
this.documentListService.reload();
|
|
5573
5590
|
}
|
|
@@ -7408,7 +7425,7 @@ class SearchInputComponent {
|
|
|
7408
7425
|
return this.searchedWord === urlSearchTerm;
|
|
7409
7426
|
}
|
|
7410
7427
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SearchInputComponent, deps: [{ token: i1$1.SearchQueryBuilderService }, { token: SearchLibrariesQueryBuilderService }, { token: i2$1.AppConfigService }, { token: i1$3.Router }, { token: i1$3.ActivatedRoute }, { token: i1.Store }, { token: i2.AppHookService }, { token: i2.AppService }, { token: SearchNavigationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
7411
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SearchInputComponent, isStandalone: true, selector: "aca-search-input", host: { classAttribute: "aca-search-input" }, viewQueries: [{ propertyName: "searchInputControl", first: true, predicate: ["searchInputControl"], descendants: true, static: true }, { propertyName: "trigger", first: true, predicate: MatMenuTrigger, descendants: true, static: true }], ngImport: i0, template: "<div class=\"app-search-container\"\n role=\"search\"\n [matMenuTriggerFor]=\"searchOptionsMenu\"\n (menuOpened)=\"onMenuOpened()\"\n (menuClosed)=\"syncInputValues()\"\n>\n <mat-form-field class=\"app-input-form-field\" appearance=\"outline\">\n <button class=\"aca-search-input--search-button\" mat-icon-button matPrefix (click)=\"searchByOption()\" [title]=\"'SEARCH.BUTTON.TOOLTIP' | translate\">\n <mat-icon [attr.aria-label]=\"'SEARCH.BUTTON.ARIA-LABEL' | translate\">search</mat-icon>\n </button>\n\n <input\n class=\"app-search-input\"\n matInput\n [attr.aria-label]=\"'SEARCH.INPUT.ARIA-LABEL' | translate\"\n [type]=\"'text'\"\n [readonly]=\"true\"\n [value]=\"searchedWord\"\n [placeholder]=\"'SEARCH.INPUT.PLACEHOLDER' | translate\"\n />\n\n <div matSuffix>\n <mat-icon class=\"app-suffix-icon\">arrow_drop_down</mat-icon>\n\n <button\n class=\"aca-search-input--close-button\"\n mat-icon-button\n [attr.aria-label]=\"'SEARCH.CLOSE_BUTTON.ARIA_LABEL' | translate\"\n [attr.title]=\"'SEARCH.CLOSE_BUTTON.ARIA_LABEL' | translate\"\n (click)=\"exitSearch()\">\n <mat-icon class=\"app-suffix-icon\">close</mat-icon>\n </button>\n </div>\n </mat-form-field>\n</div>\n\n<mat-menu #searchOptionsMenu=\"matMenu\" [overlapTrigger]=\"true\" class=\"app-search-options-menu\">\n <div (keydown.tab)=\"$event.stopPropagation()\" (keydown.shift.tab)=\"$event.stopPropagation()\" tabindex=0>\n <div cdkTrapFocus>\n <app-search-input-control\n #searchInputControl\n (click)=\"$event.stopPropagation()\"\n (submit)=\"onSearchSubmit($event)\"\n (searchChange)=\"onSearchChange($event)\"\n (validationError)=\"error = $event\"\n [hasLibrariesConstraint]=\"hasLibrariesConstraint\"\n />\n <mat-error *ngIf=\"error\" class=\"app-search-error\">\n {{ error | translate }}\n </mat-error>\n <div id=\"search-options\" class=\"app-search-options\">\n <mat-checkbox *ngFor=\"let option of searchOptions\"\n id=\"{{ option.id }}\"\n [(ngModel)]=\"option.value\"\n [disabled]=\"option.shouldDisable()\"\n (change)=\"searchByOption()\"\n (keyup.enter)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation()\"\n >\n {{ option.key | translate }}\n </mat-checkbox>\n </div>\n </div>\n </div>\n</mat-menu>\n", styles: [".app-search-container{color:var(--theme-foreground-text-color);width:100%;max-width:594px;height:64px;border:none;background:none;padding:0}.app-search-container:focus-visible{outline:2px solid var(--theme-blue-button-color);border-radius:4px}.app-search-container:focus-within label{display:none}.app-search-container .app-search-input:focus-within{outline:2px solid var(--theme-blue-button-color);border-radius:4px}.app-search-options-menu{background-color:var(--theme-dialog-background-color);width:594px;min-width:594px!important;border-radius:4px}.aca-search-input{width:100%;max-width:594px;background-color:var(--theme-search-background-color);border-radius:4px;height:64px}.aca-search-input .app-suffix-icon{width:18px;height:18px;font-size:18px}.app-search-options{color:var(--theme-text-color);border-top:1px solid var(--theme-divider-color);padding:25px;display:flex;flex-direction:row;column-gap:24px}.app-search-error{position:absolute;gap:4px;padding-left:17px;margin-top:4px;font-size:12px}@media screen and (max-width: 959px){.aca-search-input,.app-search-container{max-width:400px}.app-search-options-menu{width:400px}.app-search-options{padding-left:20px}.app-search-options label{max-width:105px}.app-search-options .app-search-options-checkbox{padding:3px 20px 3px 0}.app-search-options .app-search-options-checkbox label{padding:0}}@media screen and (max-width: 599px){.aca-search-input,.app-search-container{max-width:220px}.app-search-options-menu{width:220px}.app-search-options label{max-width:180px}}@media screen and (max-width: 380px){.aca-search-input{max-width:148px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i3.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: i3.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6$2.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i8.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i8.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i8.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i8.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i8$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i14.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i15.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i6$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: SearchInputControlComponent, selector: "app-search-input-control", inputs: ["inputType", "hasLibrariesConstraint"], outputs: ["submit", "searchChange", "validationError"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
7428
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SearchInputComponent, isStandalone: true, selector: "aca-search-input", host: { classAttribute: "aca-search-input" }, viewQueries: [{ propertyName: "searchInputControl", first: true, predicate: ["searchInputControl"], descendants: true, static: true }, { propertyName: "trigger", first: true, predicate: MatMenuTrigger, descendants: true, static: true }], ngImport: i0, template: "<div class=\"app-search-container\"\n role=\"search\"\n [matMenuTriggerFor]=\"searchOptionsMenu\"\n (menuOpened)=\"onMenuOpened()\"\n (menuClosed)=\"syncInputValues()\"\n>\n <mat-form-field class=\"app-input-form-field\" appearance=\"outline\">\n <button class=\"aca-search-input--search-button\" mat-icon-button matPrefix (click)=\"searchByOption()\" [title]=\"'SEARCH.BUTTON.TOOLTIP' | translate\">\n <mat-icon [attr.aria-label]=\"'SEARCH.BUTTON.ARIA-LABEL' | translate\">search</mat-icon>\n </button>\n\n <input\n class=\"app-search-input\"\n matInput\n [attr.aria-label]=\"'SEARCH.INPUT.ARIA-LABEL' | translate\"\n [type]=\"'text'\"\n [readonly]=\"true\"\n [value]=\"searchedWord\"\n [placeholder]=\"'SEARCH.INPUT.PLACEHOLDER' | translate\"\n />\n\n <div matSuffix>\n <mat-icon class=\"app-suffix-icon\">arrow_drop_down</mat-icon>\n\n <button\n class=\"aca-search-input--close-button\"\n mat-icon-button\n [attr.aria-label]=\"'SEARCH.CLOSE_BUTTON.ARIA_LABEL' | translate\"\n [attr.title]=\"'SEARCH.CLOSE_BUTTON.ARIA_LABEL' | translate\"\n (click)=\"exitSearch()\">\n <mat-icon class=\"app-suffix-icon\">close</mat-icon>\n </button>\n </div>\n </mat-form-field>\n</div>\n\n<mat-menu #searchOptionsMenu=\"matMenu\" [overlapTrigger]=\"true\" class=\"app-search-options-menu\">\n <div (keydown.tab)=\"$event.stopPropagation()\" (keydown.shift.tab)=\"$event.stopPropagation()\" tabindex=0>\n <div cdkTrapFocus>\n <app-search-input-control\n #searchInputControl\n (click)=\"$event.stopPropagation()\"\n (submit)=\"onSearchSubmit($event)\"\n (searchChange)=\"onSearchChange($event)\"\n (validationError)=\"error = $event\"\n [hasLibrariesConstraint]=\"hasLibrariesConstraint\"\n />\n <mat-error *ngIf=\"error\" class=\"app-search-error\" role=\"alert\" aria-live=\"assertive\">\n {{ error | translate }}\n </mat-error>\n <div id=\"search-options\" class=\"app-search-options\">\n <mat-checkbox *ngFor=\"let option of searchOptions\"\n id=\"{{ option.id }}\"\n [(ngModel)]=\"option.value\"\n [disabled]=\"option.shouldDisable()\"\n (change)=\"searchByOption()\"\n (keyup.enter)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation()\"\n >\n {{ option.key | translate }}\n </mat-checkbox>\n </div>\n </div>\n </div>\n</mat-menu>\n", styles: [".app-search-container{color:var(--theme-foreground-text-color);width:100%;max-width:594px;height:64px;border:none;background:none;padding:0}.app-search-container:focus-visible{outline:2px solid var(--theme-blue-button-color);border-radius:4px}.app-search-container:focus-within label{display:none}.app-search-container .app-search-input:focus-within{outline:2px solid var(--theme-blue-button-color);border-radius:4px}.app-search-options-menu{background-color:var(--theme-dialog-background-color);width:594px;min-width:594px!important;border-radius:4px}.aca-search-input{width:100%;max-width:594px;background-color:var(--theme-search-background-color);border-radius:4px;height:64px}.aca-search-input .app-suffix-icon{width:18px;height:18px;font-size:18px}.app-search-options{color:var(--theme-text-color);border-top:1px solid var(--theme-divider-color);padding:25px;display:flex;flex-direction:row;column-gap:24px}.app-search-error{position:absolute;gap:4px;padding-left:17px;margin-top:4px;font-size:12px}@media screen and (max-width: 959px){.aca-search-input,.app-search-container{max-width:400px}.app-search-options-menu{width:400px}.app-search-options{padding-left:20px}.app-search-options label{max-width:105px}.app-search-options .app-search-options-checkbox{padding:3px 20px 3px 0}.app-search-options .app-search-options-checkbox label{padding:0}}@media screen and (max-width: 599px){.aca-search-input,.app-search-container{max-width:220px}.app-search-options-menu{width:220px}.app-search-options label{max-width:180px}}@media screen and (max-width: 380px){.aca-search-input{max-width:148px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i3.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: i3.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6$2.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i8.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i8.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i8.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i8.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i8$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i14.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i15.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i6$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: SearchInputControlComponent, selector: "app-search-input-control", inputs: ["inputType", "hasLibrariesConstraint"], outputs: ["submit", "searchChange", "validationError"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
7412
7429
|
}
|
|
7413
7430
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SearchInputComponent, decorators: [{
|
|
7414
7431
|
type: Component,
|
|
@@ -7424,7 +7441,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
7424
7441
|
MatCheckboxModule,
|
|
7425
7442
|
FormsModule,
|
|
7426
7443
|
SearchInputControlComponent
|
|
7427
|
-
], selector: 'aca-search-input', encapsulation: ViewEncapsulation.None, host: { class: 'aca-search-input' }, template: "<div class=\"app-search-container\"\n role=\"search\"\n [matMenuTriggerFor]=\"searchOptionsMenu\"\n (menuOpened)=\"onMenuOpened()\"\n (menuClosed)=\"syncInputValues()\"\n>\n <mat-form-field class=\"app-input-form-field\" appearance=\"outline\">\n <button class=\"aca-search-input--search-button\" mat-icon-button matPrefix (click)=\"searchByOption()\" [title]=\"'SEARCH.BUTTON.TOOLTIP' | translate\">\n <mat-icon [attr.aria-label]=\"'SEARCH.BUTTON.ARIA-LABEL' | translate\">search</mat-icon>\n </button>\n\n <input\n class=\"app-search-input\"\n matInput\n [attr.aria-label]=\"'SEARCH.INPUT.ARIA-LABEL' | translate\"\n [type]=\"'text'\"\n [readonly]=\"true\"\n [value]=\"searchedWord\"\n [placeholder]=\"'SEARCH.INPUT.PLACEHOLDER' | translate\"\n />\n\n <div matSuffix>\n <mat-icon class=\"app-suffix-icon\">arrow_drop_down</mat-icon>\n\n <button\n class=\"aca-search-input--close-button\"\n mat-icon-button\n [attr.aria-label]=\"'SEARCH.CLOSE_BUTTON.ARIA_LABEL' | translate\"\n [attr.title]=\"'SEARCH.CLOSE_BUTTON.ARIA_LABEL' | translate\"\n (click)=\"exitSearch()\">\n <mat-icon class=\"app-suffix-icon\">close</mat-icon>\n </button>\n </div>\n </mat-form-field>\n</div>\n\n<mat-menu #searchOptionsMenu=\"matMenu\" [overlapTrigger]=\"true\" class=\"app-search-options-menu\">\n <div (keydown.tab)=\"$event.stopPropagation()\" (keydown.shift.tab)=\"$event.stopPropagation()\" tabindex=0>\n <div cdkTrapFocus>\n <app-search-input-control\n #searchInputControl\n (click)=\"$event.stopPropagation()\"\n (submit)=\"onSearchSubmit($event)\"\n (searchChange)=\"onSearchChange($event)\"\n (validationError)=\"error = $event\"\n [hasLibrariesConstraint]=\"hasLibrariesConstraint\"\n />\n <mat-error *ngIf=\"error\" class=\"app-search-error\">\n {{ error | translate }}\n </mat-error>\n <div id=\"search-options\" class=\"app-search-options\">\n <mat-checkbox *ngFor=\"let option of searchOptions\"\n id=\"{{ option.id }}\"\n [(ngModel)]=\"option.value\"\n [disabled]=\"option.shouldDisable()\"\n (change)=\"searchByOption()\"\n (keyup.enter)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation()\"\n >\n {{ option.key | translate }}\n </mat-checkbox>\n </div>\n </div>\n </div>\n</mat-menu>\n", styles: [".app-search-container{color:var(--theme-foreground-text-color);width:100%;max-width:594px;height:64px;border:none;background:none;padding:0}.app-search-container:focus-visible{outline:2px solid var(--theme-blue-button-color);border-radius:4px}.app-search-container:focus-within label{display:none}.app-search-container .app-search-input:focus-within{outline:2px solid var(--theme-blue-button-color);border-radius:4px}.app-search-options-menu{background-color:var(--theme-dialog-background-color);width:594px;min-width:594px!important;border-radius:4px}.aca-search-input{width:100%;max-width:594px;background-color:var(--theme-search-background-color);border-radius:4px;height:64px}.aca-search-input .app-suffix-icon{width:18px;height:18px;font-size:18px}.app-search-options{color:var(--theme-text-color);border-top:1px solid var(--theme-divider-color);padding:25px;display:flex;flex-direction:row;column-gap:24px}.app-search-error{position:absolute;gap:4px;padding-left:17px;margin-top:4px;font-size:12px}@media screen and (max-width: 959px){.aca-search-input,.app-search-container{max-width:400px}.app-search-options-menu{width:400px}.app-search-options{padding-left:20px}.app-search-options label{max-width:105px}.app-search-options .app-search-options-checkbox{padding:3px 20px 3px 0}.app-search-options .app-search-options-checkbox label{padding:0}}@media screen and (max-width: 599px){.aca-search-input,.app-search-container{max-width:220px}.app-search-options-menu{width:220px}.app-search-options label{max-width:180px}}@media screen and (max-width: 380px){.aca-search-input{max-width:148px}}\n"] }]
|
|
7444
|
+
], selector: 'aca-search-input', encapsulation: ViewEncapsulation.None, host: { class: 'aca-search-input' }, template: "<div class=\"app-search-container\"\n role=\"search\"\n [matMenuTriggerFor]=\"searchOptionsMenu\"\n (menuOpened)=\"onMenuOpened()\"\n (menuClosed)=\"syncInputValues()\"\n>\n <mat-form-field class=\"app-input-form-field\" appearance=\"outline\">\n <button class=\"aca-search-input--search-button\" mat-icon-button matPrefix (click)=\"searchByOption()\" [title]=\"'SEARCH.BUTTON.TOOLTIP' | translate\">\n <mat-icon [attr.aria-label]=\"'SEARCH.BUTTON.ARIA-LABEL' | translate\">search</mat-icon>\n </button>\n\n <input\n class=\"app-search-input\"\n matInput\n [attr.aria-label]=\"'SEARCH.INPUT.ARIA-LABEL' | translate\"\n [type]=\"'text'\"\n [readonly]=\"true\"\n [value]=\"searchedWord\"\n [placeholder]=\"'SEARCH.INPUT.PLACEHOLDER' | translate\"\n />\n\n <div matSuffix>\n <mat-icon class=\"app-suffix-icon\">arrow_drop_down</mat-icon>\n\n <button\n class=\"aca-search-input--close-button\"\n mat-icon-button\n [attr.aria-label]=\"'SEARCH.CLOSE_BUTTON.ARIA_LABEL' | translate\"\n [attr.title]=\"'SEARCH.CLOSE_BUTTON.ARIA_LABEL' | translate\"\n (click)=\"exitSearch()\">\n <mat-icon class=\"app-suffix-icon\">close</mat-icon>\n </button>\n </div>\n </mat-form-field>\n</div>\n\n<mat-menu #searchOptionsMenu=\"matMenu\" [overlapTrigger]=\"true\" class=\"app-search-options-menu\">\n <div (keydown.tab)=\"$event.stopPropagation()\" (keydown.shift.tab)=\"$event.stopPropagation()\" tabindex=0>\n <div cdkTrapFocus>\n <app-search-input-control\n #searchInputControl\n (click)=\"$event.stopPropagation()\"\n (submit)=\"onSearchSubmit($event)\"\n (searchChange)=\"onSearchChange($event)\"\n (validationError)=\"error = $event\"\n [hasLibrariesConstraint]=\"hasLibrariesConstraint\"\n />\n <mat-error *ngIf=\"error\" class=\"app-search-error\" role=\"alert\" aria-live=\"assertive\">\n {{ error | translate }}\n </mat-error>\n <div id=\"search-options\" class=\"app-search-options\">\n <mat-checkbox *ngFor=\"let option of searchOptions\"\n id=\"{{ option.id }}\"\n [(ngModel)]=\"option.value\"\n [disabled]=\"option.shouldDisable()\"\n (change)=\"searchByOption()\"\n (keyup.enter)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation()\"\n >\n {{ option.key | translate }}\n </mat-checkbox>\n </div>\n </div>\n </div>\n</mat-menu>\n", styles: [".app-search-container{color:var(--theme-foreground-text-color);width:100%;max-width:594px;height:64px;border:none;background:none;padding:0}.app-search-container:focus-visible{outline:2px solid var(--theme-blue-button-color);border-radius:4px}.app-search-container:focus-within label{display:none}.app-search-container .app-search-input:focus-within{outline:2px solid var(--theme-blue-button-color);border-radius:4px}.app-search-options-menu{background-color:var(--theme-dialog-background-color);width:594px;min-width:594px!important;border-radius:4px}.aca-search-input{width:100%;max-width:594px;background-color:var(--theme-search-background-color);border-radius:4px;height:64px}.aca-search-input .app-suffix-icon{width:18px;height:18px;font-size:18px}.app-search-options{color:var(--theme-text-color);border-top:1px solid var(--theme-divider-color);padding:25px;display:flex;flex-direction:row;column-gap:24px}.app-search-error{position:absolute;gap:4px;padding-left:17px;margin-top:4px;font-size:12px}@media screen and (max-width: 959px){.aca-search-input,.app-search-container{max-width:400px}.app-search-options-menu{width:400px}.app-search-options{padding-left:20px}.app-search-options label{max-width:105px}.app-search-options .app-search-options-checkbox{padding:3px 20px 3px 0}.app-search-options .app-search-options-checkbox label{padding:0}}@media screen and (max-width: 599px){.aca-search-input,.app-search-container{max-width:220px}.app-search-options-menu{width:220px}.app-search-options label{max-width:180px}}@media screen and (max-width: 380px){.aca-search-input{max-width:148px}}\n"] }]
|
|
7428
7445
|
}], ctorParameters: () => [{ type: i1$1.SearchQueryBuilderService }, { type: SearchLibrariesQueryBuilderService }, { type: i2$1.AppConfigService }, { type: i1$3.Router }, { type: i1$3.ActivatedRoute }, { type: i1.Store }, { type: i2.AppHookService }, { type: i2.AppService }, { type: SearchNavigationService }], propDecorators: { searchInputControl: [{
|
|
7429
7446
|
type: ViewChild,
|
|
7430
7447
|
args: ['searchInputControl', { static: true }]
|