linting fixes

This commit is contained in:
Yasa-Nataliya
2023-10-09 20:21:31 +05:30
parent f3d41056d6
commit 2722a55f0d
5 changed files with 15 additions and 29 deletions
@@ -1,6 +1,6 @@
.adf-categories-management { .adf-categories-management {
padding-top: 12px; padding-top: 12px;
.adf-category-name-field { .adf-category-name-field {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@@ -26,7 +26,7 @@
.mat-form-field-wrapper { .mat-form-field-wrapper {
width: 100%; width: 100%;
} }
.mat-form-field-appearance-fill .mat-form-field-flex { .mat-form-field-appearance-fill .mat-form-field-flex {
background: none; background: none;
} }
@@ -53,7 +53,6 @@
} }
.adf-categories-list { .adf-categories-list {
.mat-list-base .mat-list-item, .mat-list-base .mat-list-item,
.mat-list-base .mat-list-option { .mat-list-base .mat-list-option {
display: flex; display: flex;
@@ -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 { .acs-details-container {
.mat-tab-body-content { .mat-tab-body-content {
.adf-metadata-properties { .adf-metadata-properties {
@@ -130,9 +136,3 @@
box-shadow: none; 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;
}
@@ -462,9 +462,9 @@ describe('ContentMetadataComponent', () => {
expect(component.categoriesPanelState).toBe(true); expect(component.categoriesPanelState).toBe(true);
expect(component.editable).toBe(false); expect(component.editable).toBe(false);
expect(component.editableTags).toBe(false); expect(component.editableTags).toBe(false);
}); });
it('should toggle group editable', () => { it('should toggle group editable', () => {
const eventMock = new MouseEvent('click'); const eventMock = new MouseEvent('click');
const group: CardViewGroup = { const group: CardViewGroup = {
editable: false, expanded: false, editable: false, expanded: false,
@@ -479,7 +479,7 @@ describe('ContentMetadataComponent', () => {
expect(component.editable).toBe(false); expect(component.editable).toBe(false);
expect(component.editableTags).toBe(false); expect(component.editableTags).toBe(false);
expect(component.editableCategories).toBe(false); expect(component.editableCategories).toBe(false);
}); });
}); });
describe('toggleEditMode', () => { describe('toggleEditMode', () => {
@@ -970,13 +970,9 @@ describe('ContentMetadataComponent', () => {
component.displayAspect = 'EXIF'; component.displayAspect = 'EXIF';
component.expanded = true; component.expanded = true;
component.displayEmpty = true; component.displayEmpty = true;
fixture.detectChanges(); fixture.detectChanges();
await fixture.whenStable(); await fixture.whenStable();
let defaultProp = queryDom(fixture); let defaultProp = queryDom(fixture);
let exifProp = queryDom(fixture, 'EXIF');
let customProp = queryDom(fixture, 'CUSTOM');
expect(defaultProp.componentInstance.expanded).toBeFalsy(); expect(defaultProp.componentInstance.expanded).toBeFalsy();
component.displayAspect = 'CUSTOM'; component.displayAspect = 'CUSTOM';
@@ -985,23 +981,14 @@ describe('ContentMetadataComponent', () => {
await fixture.whenStable(); await fixture.whenStable();
defaultProp = queryDom(fixture); defaultProp = queryDom(fixture);
exifProp = queryDom(fixture, 'EXIF');
customProp = queryDom(fixture, 'CUSTOM');
expect(defaultProp.componentInstance.expanded).toBeFalsy(); expect(defaultProp.componentInstance.expanded).toBeFalsy();
expect(exifProp.componentInstance.expanded).toBeFalsy();
expect(customProp.componentInstance.expanded).toBeTruthy();
component.displayAspect = 'Properties'; component.displayAspect = 'Properties';
fixture.detectChanges(); fixture.detectChanges();
await fixture.whenStable(); await fixture.whenStable();
defaultProp = queryDom(fixture); defaultProp = queryDom(fixture);
exifProp = queryDom(fixture, 'EXIF');
customProp = queryDom(fixture, 'CUSTOM');
expect(defaultProp.componentInstance.expanded).toBeTruthy(); 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 () => { it('should not expand anything if input is wrong', async () => {
@@ -39,11 +39,11 @@ adf-tags-creator {
padding-right: 3px; padding-right: 3px;
font-size: 14px; font-size: 14px;
} }
.mat-form-field-appearance-fill .mat-form-field-flex { .mat-form-field-appearance-fill .mat-form-field-flex {
background: none; background: none;
} }
.mat-form-field-appearance-fill .mat-form-field-infix { .mat-form-field-appearance-fill .mat-form-field-infix {
padding: 0; padding: 0;
} }
@@ -56,7 +56,7 @@ adf-tags-creator {
align-items: center; align-items: center;
display: flex; display: flex;
padding: 0 12px; padding: 0 12px;
.mat-form-field-underline { .mat-form-field-underline {
display: none; display: none;
} }
+1 -1
View File
@@ -91,7 +91,7 @@
"max-line-length": 240, "max-line-length": 240,
"linebreaks": "unix", "linebreaks": "unix",
"selector-class-pattern": [ "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 "resolveNestedSelectors": true
} }