mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-6849][ACA] Upgrade to Angular 17 (#4275)
This commit is contained in:
committed by
GitHub
parent
b013818649
commit
a70378bffc
@@ -114,6 +114,7 @@
|
||||
|
||||
.aca-rule-details__form__row #{$mat-form-field-flex} #{$mat-form-field-infix} {
|
||||
padding-bottom: 0.375em;
|
||||
padding-top: 24px;
|
||||
}
|
||||
|
||||
.aca-rule-details__form__row aca-rule-action #{$mat-form-field-flex} #{$mat-form-field-infix} {
|
||||
|
@@ -76,9 +76,8 @@ describe('RuleSetPickerSmartComponent', () => {
|
||||
folderRuleSetsService = TestBed.inject(FolderRuleSetsService);
|
||||
fixture = TestBed.createComponent(RuleSetPickerSmartComponent);
|
||||
component = fixture.componentInstance;
|
||||
component['folderRuleSetsService'] = folderRuleSetsService;
|
||||
|
||||
loadRuleSetsSpy = spyOn(folderRuleSetsService, 'loadRuleSets').and.callThrough();
|
||||
loadRuleSetsSpy = spyOn(component.folderRuleSetsService, 'loadRuleSets').and.callThrough();
|
||||
callApiSpy = spyOn<any>(folderRuleSetsService, 'callApi');
|
||||
callApiSpy
|
||||
.withArgs(`/nodes/${dialogOptions.nodeId}/rule-sets?include=isLinkedTo,owningFolder,linkedToBy&skipCount=0&maxItems=100`, 'GET')
|
||||
|
@@ -22,7 +22,7 @@
|
||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { Component, DestroyRef, inject, Inject, OnInit, ViewEncapsulation } from '@angular/core';
|
||||
import { Component, DestroyRef, inject, OnInit, ViewEncapsulation } from '@angular/core';
|
||||
import { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef } from '@angular/material/dialog';
|
||||
import { FolderRuleSetsService } from '../services/folder-rule-sets.service';
|
||||
import { Node } from '@alfresco/js-api';
|
||||
@@ -75,19 +75,18 @@ export class RuleSetPickerSmartComponent implements OnInit {
|
||||
private selectedNodeId = '';
|
||||
private folderLoading$ = new BehaviorSubject<boolean>(true);
|
||||
|
||||
public readonly data: RuleSetPickerOptions = inject(MAT_DIALOG_DATA);
|
||||
public readonly folderRuleSetsService = inject(FolderRuleSetsService);
|
||||
private readonly dialogRef = inject(MatDialogRef<RuleSetPickerSmartComponent>);
|
||||
private readonly notificationService = inject(NotificationService);
|
||||
private readonly destroyRef = inject(DestroyRef);
|
||||
|
||||
mainRuleSet$ = this.folderRuleSetsService.mainRuleSet$;
|
||||
rulesLoading$ = combineLatest(this.folderRuleSetsService.isLoading$, this.folderLoading$).pipe(
|
||||
map(([rulesLoading, folderLoading]) => rulesLoading || folderLoading)
|
||||
);
|
||||
|
||||
private readonly destroyRef = inject(DestroyRef);
|
||||
|
||||
constructor(
|
||||
@Inject(MAT_DIALOG_DATA) public data: RuleSetPickerOptions,
|
||||
private folderRuleSetsService: FolderRuleSetsService,
|
||||
private dialogRef: MatDialogRef<RuleSetPickerSmartComponent>,
|
||||
private notificationService: NotificationService
|
||||
) {
|
||||
constructor() {
|
||||
this.nodeId = this.data?.nodeId ?? '-root-';
|
||||
this.defaultNodeId = this.data?.defaultNodeId ?? '-root-';
|
||||
this.existingRuleSet = this.data?.existingRuleSet ?? null;
|
||||
|
@@ -0,0 +1,3 @@
|
||||
.adf-document-list-loading-margin {
|
||||
margin: auto;
|
||||
}
|
@@ -86,6 +86,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
],
|
||||
templateUrl: './files.component.html',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
styleUrl: './files.component.scss',
|
||||
selector: 'aca-files'
|
||||
})
|
||||
export class FilesComponent extends PageComponent implements OnInit, OnDestroy {
|
||||
|
@@ -9,6 +9,7 @@ app-library-metadata-form {
|
||||
|
||||
.mat-mdc-form-field-infix {
|
||||
padding-bottom: 3px;
|
||||
min-height: unset;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -40,7 +40,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
&__section {
|
||||
.aca-sidenav__section {
|
||||
overflow-y: auto;
|
||||
|
||||
.aca-expansion-panel {
|
||||
@@ -126,9 +126,10 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&__actions {
|
||||
.aca-sidenav__section__actions {
|
||||
&__item:has(span) {
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
|
||||
span {
|
||||
pointer-events: auto;
|
||||
|
@@ -44,7 +44,7 @@
|
||||
}
|
||||
|
||||
.mat-mdc-form-field-focus-overlay {
|
||||
background-color: transparent;
|
||||
--mat-form-field-state-layer-color: transparent;
|
||||
}
|
||||
|
||||
.mdc-menu-surface.mat-mdc-autocomplete-panel:is(div),
|
||||
|
@@ -8,6 +8,9 @@
|
||||
|
||||
:root {
|
||||
--mdc-filled-text-field-container-color: transparent;
|
||||
--mdc-text-button-label-text-color: inherit;
|
||||
--mat-toolbar-container-text-color: inherit;
|
||||
--mat-form-field-container-height: unset;
|
||||
}
|
||||
|
||||
mat-toolbar {
|
||||
@@ -285,10 +288,6 @@ mat-snack-bar-container {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#{$mat-form-field-infix} {
|
||||
min-height: unset;
|
||||
}
|
||||
|
||||
#{$mat-tab-labels} {
|
||||
border-bottom: 1px solid var(--adf-theme-foreground-text-color-014);
|
||||
}
|
||||
@@ -349,3 +348,7 @@ adf-dynamic-component {
|
||||
background-color: var(--theme-blue-button-color);
|
||||
}
|
||||
}
|
||||
|
||||
#{$mat-form-field-infix} {
|
||||
min-height: unset;
|
||||
}
|
||||
|
Reference in New Issue
Block a user