mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
linting fixes
This commit is contained in:
committed by
Anukriti Singh
parent
66af36351b
commit
001d0160d8
+2
-3
@@ -1,6 +1,6 @@
|
||||
.adf-categories-management {
|
||||
padding-top: 12px;
|
||||
|
||||
|
||||
.adf-category-name-field {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@@ -26,7 +26,7 @@
|
||||
.mat-form-field-wrapper {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
.mat-form-field-appearance-fill .mat-form-field-flex {
|
||||
background: none;
|
||||
}
|
||||
@@ -53,7 +53,6 @@
|
||||
}
|
||||
|
||||
.adf-categories-list {
|
||||
|
||||
.mat-list-base .mat-list-item,
|
||||
.mat-list-base .mat-list-option {
|
||||
display: flex;
|
||||
|
||||
+6
-6
@@ -112,6 +112,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.app-metadata-tab .adf-metadata-properties .mat-expansion-panel {
|
||||
border: 1px solid var(--adf-metadata-property-panel-border-color);
|
||||
border-radius: 12px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.acs-details-container {
|
||||
.mat-tab-body-content {
|
||||
.adf-metadata-properties {
|
||||
@@ -130,9 +136,3 @@
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
.app-metadata-tab .adf-metadata-properties .mat-expansion-panel {
|
||||
border: 1px solid var(--adf-metadata-property-panel-border-color);
|
||||
border-radius: 12px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
+3
-16
@@ -462,9 +462,9 @@ describe('ContentMetadataComponent', () => {
|
||||
expect(component.categoriesPanelState).toBe(true);
|
||||
expect(component.editable).toBe(false);
|
||||
expect(component.editableTags).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
it('should toggle group editable', () => {
|
||||
it('should toggle group editable', () => {
|
||||
const eventMock = new MouseEvent('click');
|
||||
const group: CardViewGroup = {
|
||||
editable: false, expanded: false,
|
||||
@@ -479,7 +479,7 @@ describe('ContentMetadataComponent', () => {
|
||||
expect(component.editable).toBe(false);
|
||||
expect(component.editableTags).toBe(false);
|
||||
expect(component.editableCategories).toBe(false);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('toggleEditMode', () => {
|
||||
@@ -970,13 +970,9 @@ describe('ContentMetadataComponent', () => {
|
||||
component.displayAspect = 'EXIF';
|
||||
component.expanded = true;
|
||||
component.displayEmpty = true;
|
||||
|
||||
fixture.detectChanges();
|
||||
await fixture.whenStable();
|
||||
|
||||
let defaultProp = queryDom(fixture);
|
||||
let exifProp = queryDom(fixture, 'EXIF');
|
||||
let customProp = queryDom(fixture, 'CUSTOM');
|
||||
expect(defaultProp.componentInstance.expanded).toBeFalsy();
|
||||
|
||||
component.displayAspect = 'CUSTOM';
|
||||
@@ -985,23 +981,14 @@ describe('ContentMetadataComponent', () => {
|
||||
await fixture.whenStable();
|
||||
|
||||
defaultProp = queryDom(fixture);
|
||||
exifProp = queryDom(fixture, 'EXIF');
|
||||
customProp = queryDom(fixture, 'CUSTOM');
|
||||
expect(defaultProp.componentInstance.expanded).toBeFalsy();
|
||||
expect(exifProp.componentInstance.expanded).toBeFalsy();
|
||||
expect(customProp.componentInstance.expanded).toBeTruthy();
|
||||
|
||||
component.displayAspect = 'Properties';
|
||||
|
||||
fixture.detectChanges();
|
||||
await fixture.whenStable();
|
||||
|
||||
defaultProp = queryDom(fixture);
|
||||
exifProp = queryDom(fixture, 'EXIF');
|
||||
customProp = queryDom(fixture, 'CUSTOM');
|
||||
expect(defaultProp.componentInstance.expanded).toBeTruthy();
|
||||
expect(exifProp.componentInstance.expanded).toBeFalsy();
|
||||
expect(customProp.componentInstance.expanded).toBeFalsy();
|
||||
});
|
||||
|
||||
it('should not expand anything if input is wrong', async () => {
|
||||
|
||||
@@ -39,11 +39,11 @@ adf-tags-creator {
|
||||
padding-right: 3px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
|
||||
.mat-form-field-appearance-fill .mat-form-field-flex {
|
||||
background: none;
|
||||
}
|
||||
|
||||
|
||||
.mat-form-field-appearance-fill .mat-form-field-infix {
|
||||
padding: 0;
|
||||
}
|
||||
@@ -56,7 +56,7 @@ adf-tags-creator {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
padding: 0 12px;
|
||||
|
||||
|
||||
.mat-form-field-underline {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
"max-line-length": 240,
|
||||
"linebreaks": "unix",
|
||||
"selector-class-pattern": [
|
||||
"^_?(adf|adf-|app|app-|cdk-|example-|demo-|mat-|material-|textLayer|canvasWrapper|page)",
|
||||
"^_?(adf|adf-|app|app-|cdk-|example-|demo-|mat-|material-|textLayer|canvasWrapper|page|acs)",
|
||||
{
|
||||
"resolveNestedSelectors": true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user