@alfresco/aca-content 7.3.0-21353307325 → 7.3.0-21353631740
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 +56 -31
- package/fesm2022/alfresco-aca-content.mjs.map +1 -1
- package/lib/components/search/search-save/dialog/save-search-directive-dialog-data.d.ts +26 -0
- package/lib/components/search/search-save/directive/save-search.directive.d.ts +3 -0
- 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"
|
|
@@ -4,7 +4,7 @@ import { inject, Injectable, DestroyRef, ViewEncapsulation, Component, SecurityC
|
|
|
4
4
|
import * as i2$1 from '@alfresco/adf-core';
|
|
5
5
|
import { DIALOG_COMPONENT_DATA, TimeAgoPipe, LocalizedDatePipe, IconComponent, NotificationService, TranslationService, ConfirmDialogComponent, DialogComponent, DialogSize, FileUtils, LogoutDirective, UserPreferencesService, AppConfigValues, UnsavedChangesDialogComponent, AvatarComponent, ShowHeaderMode, PaginationComponent, DataColumnListComponent, DataColumnComponent, CustomEmptyContentTemplateDirective, EmptyContentComponent, DateColumnHeaderComponent, ViewerToolbarComponent, InfoDrawerButtonsDirective, AuthenticationService, ViewerModule, DataTableSchema, DATATABLE_DIRECTIVES, TEMPLATE_DIRECTIVES, DataTableComponent, AuthGuard, UnsavedChangesGuard, UserPreferenceValues, provideTranslations, NotificationHistoryComponent, LanguagePickerComponent, AuthGuardEcm } from '@alfresco/adf-core';
|
|
6
6
|
import * as i1$1 from '@alfresco/adf-content-services';
|
|
7
|
-
import { DocumentListService, ContentVersionService, DownloadZipDialogComponent, NodeAction, ContentNodeDialogService, ContentNodeSelectorComponent, ContentService, NodesApiService, NodeAspectService, NewVersionUploaderService, NewVersionUploaderDataAction, ShareDialogComponent, FolderDialogComponent, LibraryDialogComponent, RenditionService, SearchQueryBuilderService, UploadService, FileModel, AlfrescoApiService, SearchAiService, NameColumnComponent, NodeCommentsComponent, ContentMetadataComponent, VersionManagerComponent, LibraryFavoriteDirective, NodeFavoriteDirective, LibraryMembershipDirective, BreadcrumbComponent, UploadDragAreaComponent, DocumentListComponent, forbidOnlySpaces,
|
|
7
|
+
import { DocumentListService, ContentVersionService, DownloadZipDialogComponent, NodeAction, ContentNodeDialogService, ContentNodeSelectorComponent, ContentService, NodesApiService, NodeAspectService, NewVersionUploaderService, NewVersionUploaderDataAction, ShareDialogComponent, FolderDialogComponent, LibraryDialogComponent, RenditionService, SearchQueryBuilderService, UploadService, FileModel, AlfrescoApiService, SearchAiService, NameColumnComponent, NodeCommentsComponent, ContentMetadataComponent, VersionManagerComponent, LibraryFavoriteDirective, NodeFavoriteDirective, LibraryMembershipDirective, BreadcrumbComponent, UploadDragAreaComponent, DocumentListComponent, forbidOnlySpaces, AlfrescoViewerComponent, SearchFormComponent, ResetSearchDirective, SearchFilterChipsComponent, PermissionListComponent, AlfrescoViewerModule, AutoFocusDirective, UploadModule, TagNodeListComponent, ContentModule, TrashcanNameColumnComponent, LibraryStatusColumnComponent, LibraryRoleColumnComponent, LibraryNameColumnComponent } from '@alfresco/adf-content-services';
|
|
8
8
|
import * as i2 from '@alfresco/aca-shared';
|
|
9
9
|
import { ContentApiService, NodePermissionService, AppHookService, AppSettingsService, AppExtensionService, isLocked, LockedByComponent, UserProfileService, PageComponent, GenericErrorComponent, ContextActionsDirective, InfoDrawerComponent, PaginationDirective, PageLayoutComponent, ToolbarComponent, noWhitespaceValidator, noLeadingTrailingOperatorsValidator, AppSharedRuleGuard, PluginEnabledGuard, ExtensionsDataLoaderGuard, ToolbarMenuItemComponent, DocumentBasePageService, provideContentAppExtensions } from '@alfresco/aca-shared';
|
|
10
10
|
import * as rules from '@alfresco/aca-shared/rules';
|
|
@@ -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 }]
|
|
@@ -7842,7 +7859,7 @@ class SaveSearchDialogComponent {
|
|
|
7842
7859
|
});
|
|
7843
7860
|
}
|
|
7844
7861
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SaveSearchDialogComponent, deps: [{ token: i1$2.MatDialogRef }, { token: i2$1.NotificationService }, { token: SavedSearchesContextService }, { token: UniqueSearchNameValidator }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
7845
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SaveSearchDialogComponent, isStandalone: true, selector: "aca-save-search-dialog", host: { classAttribute: "aca-save-search-dialog" }, ngImport: i0, template: "<div class=\"aca-save-search-dialog__header\">\n <h2
|
|
7862
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SaveSearchDialogComponent, isStandalone: true, selector: "aca-save-search-dialog", host: { classAttribute: "aca-save-search-dialog" }, ngImport: i0, template: "<div class=\"aca-save-search-dialog__header\">\n <h2\n id=\"aca-save-search-dialog-title\"\n class=\"aca-save-search-dialog__title\">\n {{\"APP.BROWSE.SEARCH.SAVE_SEARCH.MODAL_HEADER\" | translate}}\n </h2>\n <button\n mat-icon-button\n mat-dialog-close\n [attr.aria-label]=\"'CLOSE' | translate | titlecase\"\n [attr.title]=\"'CLOSE' | translate | titlecase\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n\n\n<mat-dialog-content>\n <form [formGroup]=\"form\" (submit)=\"submit()\">\n <mat-form-field class=\"aca-save-search-dialog__form-field\">\n <mat-label>{{ 'APP.BROWSE.SEARCH.SAVE_SEARCH.NAME_LABEL' | translate }}</mat-label>\n <input\n id=\"aca-save-search-dialog-name-input\"\n [attr.aria-label]=\"'APP.BROWSE.SEARCH.SAVE_SEARCH.NAME_LABEL' | translate\"\n matInput\n required\n [formControlName]=\"'name'\"\n />\n\n <mat-error *ngIf=\"form.controls['name'].touched\">\n <span *ngIf=\"form.controls['name'].errors?.required\">\n {{ 'APP.BROWSE.SEARCH.SAVE_SEARCH.NAME_REQUIRED_ERROR' | translate }}\n </span>\n <span *ngIf=\"!form.controls['name'].errors?.required && form.controls['name'].errors?.message\">\n {{ form.controls['name'].errors?.message | translate : { name: form.controls.name.value } }}\n </span>\n </mat-error>\n </mat-form-field>\n\n <mat-form-field class=\"aca-save-search-dialog__form-field\">\n <mat-label>{{ 'APP.BROWSE.SEARCH.SAVE_SEARCH.DESCRIPTION_LABEL' | translate }}</mat-label>\n <textarea\n id=\"aca-save-search-dialog-description-input\"\n matInput\n [attr.aria-label]=\"'APP.BROWSE.SEARCH.SAVE_SEARCH.DESCRIPTION_LABEL' | translate\"\n rows=\"4\"\n [formControlName]=\"'description'\"></textarea>\n </mat-form-field>\n </form>\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\">\n <button\n mat-button\n id=\"aca-save-search-dialog-cancel-button\"\n mat-dialog-close>\n {{ 'CANCEL' | titlecase | translate }}\n </button>\n\n <button id=\"aca-save-search-dialog-save-button\"\n mat-flat-button\n color=\"primary\"\n (click)=\"submit()\"\n [disabled]=\"!form.valid || disableSubmitButton\">\n {{ 'SAVE' | titlecase | translate}}\n </button>\n</mat-dialog-actions>\n", styles: [".aca-save-search-dialog .aca-save-search-dialog__form-field{width:100%}.aca-save-search-dialog .aca-save-search-dialog__header{display:flex;align-items:center;padding-left:20px;justify-content:space-between}.aca-save-search-dialog .aca-save-search-dialog__title{font-size:large;font-weight:200;margin:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$4.TitleCasePipe, name: "titlecase" }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6$2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { 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.MatLabel, selector: "mat-label" }, { kind: "directive", type: i8.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { 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: "ngmodule", type: MatCheckboxModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i6$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i6$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i6$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i6$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i6$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i6$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$2.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1$2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }], encapsulation: i0.ViewEncapsulation.None });
|
|
7846
7863
|
}
|
|
7847
7864
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SaveSearchDialogComponent, decorators: [{
|
|
7848
7865
|
type: Component,
|
|
@@ -7857,10 +7874,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
7857
7874
|
A11yModule,
|
|
7858
7875
|
MatCheckboxModule,
|
|
7859
7876
|
FormsModule,
|
|
7860
|
-
AutoFocusDirective,
|
|
7861
7877
|
ReactiveFormsModule,
|
|
7862
7878
|
MatDialogModule
|
|
7863
|
-
], selector: 'aca-save-search-dialog', encapsulation: ViewEncapsulation.None, host: { class: 'aca-save-search-dialog' }, template: "<div class=\"aca-save-search-dialog__header\">\n <h2
|
|
7879
|
+
], selector: 'aca-save-search-dialog', encapsulation: ViewEncapsulation.None, host: { class: 'aca-save-search-dialog' }, template: "<div class=\"aca-save-search-dialog__header\">\n <h2\n id=\"aca-save-search-dialog-title\"\n class=\"aca-save-search-dialog__title\">\n {{\"APP.BROWSE.SEARCH.SAVE_SEARCH.MODAL_HEADER\" | translate}}\n </h2>\n <button\n mat-icon-button\n mat-dialog-close\n [attr.aria-label]=\"'CLOSE' | translate | titlecase\"\n [attr.title]=\"'CLOSE' | translate | titlecase\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n\n\n<mat-dialog-content>\n <form [formGroup]=\"form\" (submit)=\"submit()\">\n <mat-form-field class=\"aca-save-search-dialog__form-field\">\n <mat-label>{{ 'APP.BROWSE.SEARCH.SAVE_SEARCH.NAME_LABEL' | translate }}</mat-label>\n <input\n id=\"aca-save-search-dialog-name-input\"\n [attr.aria-label]=\"'APP.BROWSE.SEARCH.SAVE_SEARCH.NAME_LABEL' | translate\"\n matInput\n required\n [formControlName]=\"'name'\"\n />\n\n <mat-error *ngIf=\"form.controls['name'].touched\">\n <span *ngIf=\"form.controls['name'].errors?.required\">\n {{ 'APP.BROWSE.SEARCH.SAVE_SEARCH.NAME_REQUIRED_ERROR' | translate }}\n </span>\n <span *ngIf=\"!form.controls['name'].errors?.required && form.controls['name'].errors?.message\">\n {{ form.controls['name'].errors?.message | translate : { name: form.controls.name.value } }}\n </span>\n </mat-error>\n </mat-form-field>\n\n <mat-form-field class=\"aca-save-search-dialog__form-field\">\n <mat-label>{{ 'APP.BROWSE.SEARCH.SAVE_SEARCH.DESCRIPTION_LABEL' | translate }}</mat-label>\n <textarea\n id=\"aca-save-search-dialog-description-input\"\n matInput\n [attr.aria-label]=\"'APP.BROWSE.SEARCH.SAVE_SEARCH.DESCRIPTION_LABEL' | translate\"\n rows=\"4\"\n [formControlName]=\"'description'\"></textarea>\n </mat-form-field>\n </form>\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\">\n <button\n mat-button\n id=\"aca-save-search-dialog-cancel-button\"\n mat-dialog-close>\n {{ 'CANCEL' | titlecase | translate }}\n </button>\n\n <button id=\"aca-save-search-dialog-save-button\"\n mat-flat-button\n color=\"primary\"\n (click)=\"submit()\"\n [disabled]=\"!form.valid || disableSubmitButton\">\n {{ 'SAVE' | titlecase | translate}}\n </button>\n</mat-dialog-actions>\n", styles: [".aca-save-search-dialog .aca-save-search-dialog__form-field{width:100%}.aca-save-search-dialog .aca-save-search-dialog__header{display:flex;align-items:center;padding-left:20px;justify-content:space-between}.aca-save-search-dialog .aca-save-search-dialog__title{font-size:large;font-weight:200;margin:0}\n"] }]
|
|
7864
7880
|
}], ctorParameters: () => [{ type: i1$2.MatDialogRef }, { type: i2$1.NotificationService }, { type: SavedSearchesContextService }, { type: UniqueSearchNameValidator }, { type: undefined, decorators: [{
|
|
7865
7881
|
type: Inject,
|
|
7866
7882
|
args: [MAT_DIALOG_DATA]
|
|
@@ -7890,6 +7906,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
7890
7906
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
7891
7907
|
*/
|
|
7892
7908
|
class SaveSearchDirective {
|
|
7909
|
+
overlayContainer;
|
|
7893
7910
|
/** Encoded search query */
|
|
7894
7911
|
acaSaveSearchQuery;
|
|
7895
7912
|
/** Outputs a true value when search was successfully saved */
|
|
@@ -7897,13 +7914,21 @@ class SaveSearchDirective {
|
|
|
7897
7914
|
destroyRef = inject(DestroyRef);
|
|
7898
7915
|
dialogRef = inject(MatDialog);
|
|
7899
7916
|
elementRef = inject((ElementRef));
|
|
7917
|
+
constructor(overlayContainer) {
|
|
7918
|
+
this.overlayContainer = overlayContainer;
|
|
7919
|
+
}
|
|
7900
7920
|
onClick(event) {
|
|
7901
7921
|
event.preventDefault();
|
|
7902
7922
|
this.elementRef.nativeElement.focus();
|
|
7903
7923
|
this.openDialog();
|
|
7904
7924
|
}
|
|
7905
7925
|
openDialog() {
|
|
7906
|
-
|
|
7926
|
+
this.overlayContainer.getContainerElement().setAttribute('role', 'dialog');
|
|
7927
|
+
const dialog = this.dialogRef.open(SaveSearchDialogComponent, {
|
|
7928
|
+
...this.getDialogConfig(),
|
|
7929
|
+
restoreFocus: true,
|
|
7930
|
+
ariaLabelledBy: 'aca-save-search-dialog-title'
|
|
7931
|
+
});
|
|
7907
7932
|
dialog
|
|
7908
7933
|
.afterClosed()
|
|
7909
7934
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
@@ -7918,7 +7943,7 @@ class SaveSearchDirective {
|
|
|
7918
7943
|
data: { searchUrl: this.acaSaveSearchQuery }
|
|
7919
7944
|
};
|
|
7920
7945
|
}
|
|
7921
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SaveSearchDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7946
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SaveSearchDirective, deps: [{ token: i1$5.OverlayContainer }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7922
7947
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: SaveSearchDirective, isStandalone: true, selector: "[acaSaveSearch]", inputs: { acaSaveSearchQuery: "acaSaveSearchQuery" }, outputs: { searchSaved: "searchSaved" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
|
|
7923
7948
|
}
|
|
7924
7949
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SaveSearchDirective, decorators: [{
|
|
@@ -7927,7 +7952,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
7927
7952
|
selector: '[acaSaveSearch]',
|
|
7928
7953
|
standalone: true
|
|
7929
7954
|
}]
|
|
7930
|
-
}], propDecorators: { acaSaveSearchQuery: [{
|
|
7955
|
+
}], ctorParameters: () => [{ type: i1$5.OverlayContainer }], propDecorators: { acaSaveSearchQuery: [{
|
|
7931
7956
|
type: Input
|
|
7932
7957
|
}], searchSaved: [{
|
|
7933
7958
|
type: Output
|