Lorem ipsum salana-eyong-aysis dolor sit amet
@@ -36,7 +37,7 @@ const template: string = `
@Component({ selector: 'adf-test-component', template })
class TestComponent {
- @ViewChildren(HighlightDirective) public hightlightDirectives;
+ @ViewChildren(HighlightDirective) public highlightDirectives;
}
describe('HighlightDirective', () => {
@@ -59,8 +60,8 @@ describe('HighlightDirective', () => {
fixture.detectChanges();
});
- it('should replace the searched text with the default hightlight class in the proper element (adf-highlight-selector)', () => {
- component.hightlightDirectives.last.highlight('salana-eyong-aysis');
+ it('should replace the searched text with the default highlight class in the proper element (adf-highlight-selector)', () => {
+ component.highlightDirectives.last.highlight('salana-eyong-aysis');
fixture.detectChanges();
const containerElement = fixture.debugElement.query(By.css('#innerDiv21'));
@@ -68,8 +69,8 @@ describe('HighlightDirective', () => {
expect(containerElement.nativeElement.innerHTML).toBe('Lorem ipsum
salana-eyong-aysis dolor sit amet');
});
- it('should replace the searched text with the default hightlight class in every proper element (highlight-for-free-willy)', () => {
- component.hightlightDirectives.first.highlight('salana-eyong-aysis');
+ it('should replace the searched text with the default highlight class in every proper element (highlight-for-free-willy)', () => {
+ component.highlightDirectives.first.highlight('salana-eyong-aysis');
fixture.detectChanges();
const containerElement1 = fixture.debugElement.query(By.css('#innerDiv11'));
@@ -81,7 +82,7 @@ describe('HighlightDirective', () => {
});
it('should NOT replace the searched text in an element without the proper selector class', () => {
- component.hightlightDirectives.first.highlight('salana-eyong-aysis');
+ component.highlightDirectives.first.highlight('salana-eyong-aysis');
fixture.detectChanges();
const containerElement1 = fixture.debugElement.query(By.css('#innerDiv12'));
@@ -92,7 +93,7 @@ describe('HighlightDirective', () => {
it('should NOT reinsert the same text to the innerText if there was no change at all (search string is not found)', () => {
const highlighter = TestBed.get(HighlightTransformService);
spyOn(highlighter, 'highlight').and.returnValue({ changed: false, text: 'Modified text' });
- component.hightlightDirectives.first.highlight('salana-eyong-aysis');
+ component.highlightDirectives.first.highlight('salana-eyong-aysis');
fixture.detectChanges();
const containerElement = fixture.debugElement.query(By.css('#innerDiv11'));
@@ -103,7 +104,7 @@ describe('HighlightDirective', () => {
it('should do the search only if there is a search string presented', () => {
const highlighter = TestBed.get(HighlightTransformService);
spyOn(highlighter, 'highlight').and.callThrough();
- component.hightlightDirectives.first.highlight('');
+ component.highlightDirectives.first.highlight('');
fixture.detectChanges();
expect(highlighter.highlight).not.toHaveBeenCalled();
@@ -114,7 +115,7 @@ describe('HighlightDirective', () => {
spyOn(highlighter, 'highlight').and.callThrough();
const callback = function() {
- component.hightlightDirectives.first.highlight('raddish', '');
+ component.highlightDirectives.first.highlight('raddish', '');
fixture.detectChanges();
};
diff --git a/lib/core/directives/highlight.directive.ts b/lib/core/directives/highlight.directive.ts
index 5b1596df5d..30463b7efa 100644
--- a/lib/core/directives/highlight.directive.ts
+++ b/lib/core/directives/highlight.directive.ts
@@ -18,7 +18,7 @@
/* tslint:disable:no-input-rename */
import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';
-import { HighlightTransformService, HightlightTransformResult } from '../services/highlight-transform.service';
+import { HighlightTransformService, HighlightTransformResult } from '../services/highlight-transform.service';
@Directive({
selector: '[adf-highlight]'
@@ -47,7 +47,7 @@ export class HighlightDirective {
const elements = this.el.nativeElement.querySelectorAll(selector);
elements.forEach((element) => {
- const result: HightlightTransformResult = this.highlightTransformService.highlight(element.innerHTML, search, classToApply);
+ const result: HighlightTransformResult = this.highlightTransformService.highlight(element.innerHTML, search, classToApply);
if (result.changed) {
this.renderer.setProperty(element, 'innerHTML', result.text);
}
diff --git a/lib/core/directives/logout.directive.spec.ts b/lib/core/directives/logout.directive.spec.ts
index 29e9fad954..d82b387f80 100644
--- a/lib/core/directives/logout.directive.spec.ts
+++ b/lib/core/directives/logout.directive.spec.ts
@@ -128,11 +128,11 @@ describe('LogoutDirective', () => {
});
- describe('enabelRedirect', () => {
+ describe('enableRedirect', () => {
@Component({
selector: 'adf-test-component',
- template: '
'
+ template: '
'
})
class TestComponent {
@ContentChildren(LogoutDirective)
@@ -160,7 +160,7 @@ describe('LogoutDirective', () => {
fixture.detectChanges();
});
- it('should not redirect if enabelRedirect is false', () => {
+ it('should not redirect if enableRedirect is false', () => {
spyOn(router, 'navigate');
spyOn(authService, 'logout').and.returnValue(of(true));
const button = fixture.nativeElement.querySelector('button');
diff --git a/lib/core/directives/logout.directive.ts b/lib/core/directives/logout.directive.ts
index b85f21bb17..50875acb94 100644
--- a/lib/core/directives/logout.directive.ts
+++ b/lib/core/directives/logout.directive.ts
@@ -30,7 +30,7 @@ export class LogoutDirective implements OnInit {
/** Enable redirect after logout */
@Input()
- enabelRedirect: boolean = true;
+ enableRedirect: boolean = true;
constructor(private elementRef: ElementRef,
private renderer: Renderer2,
@@ -55,7 +55,7 @@ export class LogoutDirective implements OnInit {
}
redirectToUri() {
- if (this.enabelRedirect) {
+ if (this.enableRedirect) {
this.router.navigate([this.redirectUri]);
}
}
diff --git a/lib/core/directives/node-permission.directive.ts b/lib/core/directives/node-permission.directive.ts
index 2b35b1f05d..a6e943cf0c 100644
--- a/lib/core/directives/node-permission.directive.ts
+++ b/lib/core/directives/node-permission.directive.ts
@@ -58,7 +58,7 @@ export class NodePermissionDirective implements OnChanges {
}
/**
- * Updates disabled state for the decorated elememtn
+ * Updates disabled state for the decorated element
*
* @memberof NodePermissionDirective
*/
diff --git a/lib/core/directives/node-restore.directive.ts b/lib/core/directives/node-restore.directive.ts
index 8947524341..ba6ab8da99 100644
--- a/lib/core/directives/node-restore.directive.ts
+++ b/lib/core/directives/node-restore.directive.ts
@@ -80,10 +80,10 @@ export class NodeRestoreDirective {
mergeMap(() => this.getDeletedNodes())
)
.subscribe(deletedNodesList => {
- const { entries: nodelist } = deletedNodesList.list;
+ const { entries: nodeList } = deletedNodesList.list;
const { fail: restoreErrorNodes } = this.restoreProcessStatus;
const selectedNodes = this.diff(restoreErrorNodes, selection, false);
- const remainingNodes = this.diff(selectedNodes, nodelist);
+ const remainingNodes = this.diff(selectedNodes, nodeList);
if (!remainingNodes.length) {
this.notification();
diff --git a/lib/core/directives/upload.directive.ts b/lib/core/directives/upload.directive.ts
index 38a178856f..d6c37722ab 100644
--- a/lib/core/directives/upload.directive.ts
+++ b/lib/core/directives/upload.directive.ts
@@ -140,9 +140,9 @@ export class UploadDirective implements OnInit, OnDestroy {
this.element.classList.remove(this.cssClassName);
this.isDragging = false;
- const dataTranfer = this.getDataTransfer(event);
- if (dataTranfer) {
- this.getFilesDropped(dataTranfer).then(files => {
+ const dataTransfer = this.getDataTransfer(event);
+ if (dataTransfer) {
+ this.getFilesDropped(dataTransfer).then(files => {
this.onUploadFiles(files);
});
@@ -211,7 +211,7 @@ export class UploadDirective implements OnInit, OnDestroy {
}));
} else if (item.isDirectory) {
iterations.push(new Promise(resolveFolder => {
- FileUtils.flattern(item).then(files => resolveFolder(files));
+ FileUtils.flatten(item).then(files => resolveFolder(files));
}));
}
}
diff --git a/lib/core/form/components/form.component.spec.ts b/lib/core/form/components/form.component.spec.ts
index 52dc0fa664..b29925e386 100644
--- a/lib/core/form/components/form.component.spec.ts
+++ b/lib/core/form/components/form.component.spec.ts
@@ -762,7 +762,7 @@ describe('FormComponent', () => {
expect(formComponent.isOutcomeButtonEnabled(outcome)).toBeTruthy();
});
- it('should disable oucome buttons for invalid form', () => {
+ it('should disable outcome buttons for invalid form', () => {
let formModel = new FormModel();
let field = new FormFieldModel(formModel, {
type: 'text',
diff --git a/lib/core/form/components/start-form.component.spec.ts b/lib/core/form/components/start-form.component.spec.ts
index 87fa2523af..cec7f0a242 100644
--- a/lib/core/form/components/start-form.component.spec.ts
+++ b/lib/core/form/components/start-form.component.spec.ts
@@ -126,7 +126,7 @@ describe('StartFormComponent', () => {
expect(component.outcomesContainer).toBeTruthy();
});
- it('should fetch start form detasils by processDefinitionId ', () => {
+ it('should fetch start form details by processDefinitionId ', () => {
getStartFormSpy.and.returnValue(of(startMockForm));
component.processDefinitionId = exampleId1;
component.showOutcomeButtons = true;
@@ -136,7 +136,7 @@ describe('StartFormComponent', () => {
expect(getStartFormSpy).toHaveBeenCalled();
});
- describe('Disply widgets', () => {
+ describe('Display widgets', () => {
it('should be able to display a textWidget from a process definition', () => {
getStartFormSpy.and.returnValue(of(startFormTextDefinitionMock));
@@ -280,7 +280,7 @@ describe('StartFormComponent', () => {
});
});
- it('should disply start form with fields ', async(() => {
+ it('should display start form with fields ', async(() => {
getStartFormSpy.and.returnValue(of(startMockForm));
component.processDefinitionId = exampleId1;
component.showOutcomeButtons = true;
@@ -315,6 +315,7 @@ describe('StartFormComponent', () => {
const refreshElement = fixture.debugElement.nativeElement.querySelector('.mat-card-actions>button');
refreshElement.click();
fixture.detectChanges();
+ /* cspell:disable-next-line */
const selectElement = fixture.debugElement.nativeElement.querySelector('#claimtype');
const selectLabelElement = fixture.debugElement.nativeElement.querySelector('.adf-dropdown-widget > .adf-label');
expect(refreshElement).toBeDefined();
@@ -323,7 +324,7 @@ describe('StartFormComponent', () => {
});
}));
- it('should difine custom-tabs ', async(() => {
+ it('should define custom-tabs ', async(() => {
getStartFormSpy.and.returnValue(of(startMockFormWithTab));
component.processDefinitionId = exampleId1;
component.showOutcomeButtons = true;
@@ -341,7 +342,7 @@ describe('StartFormComponent', () => {
});
}));
- it('should difine title and [custom-action-buttons]', async(() => {
+ it('should define title and [custom-action-buttons]', async(() => {
getStartFormSpy.and.returnValue(of(startMockFormWithTab));
component.processDefinitionId = exampleId1;
component.showOutcomeButtons = true;
diff --git a/lib/core/form/components/start-form.component.ts b/lib/core/form/components/start-form.component.ts
index 2c190330a9..e04621570f 100644
--- a/lib/core/form/components/start-form.component.ts
+++ b/lib/core/form/components/start-form.component.ts
@@ -115,7 +115,7 @@ export class StartFormComponent extends FormComponent implements OnChanges, OnIn
}
loadStartForm(processId: string) {
- this.formService.getProcessIntance(processId)
+ this.formService.getProcessInstance(processId)
.subscribe((instance: any) => {
this.formService
.getStartFormInstance(processId)
diff --git a/lib/core/form/components/widgets/content/content.widget.spec.ts b/lib/core/form/components/widgets/content/content.widget.spec.ts
index 3794815b63..ca83ce99b9 100644
--- a/lib/core/form/components/widgets/content/content.widget.spec.ts
+++ b/lib/core/form/components/widgets/content/content.widget.spec.ts
@@ -133,7 +133,7 @@ describe('ContentWidgetComponent', () => {
created: 1490354907883,
createdBy: {
id: 2,
- firstName: 'dasdas', 'lastName': 'dasads', 'email': 'administrator@admin.com'
+ firstName: 'admin', 'lastName': 'admin', 'email': 'administrator@admin.com'
},
relatedContent: false,
contentAvailable: true,
@@ -176,7 +176,7 @@ describe('ContentWidgetComponent', () => {
created: 1490354907883,
createdBy: {
id: 2,
- firstName: 'dasdas', 'lastName': 'dasads', 'email': 'administrator@admin.com'
+ firstName: 'admin', 'lastName': 'admin', 'email': 'administrator@admin.com'
},
relatedContent: false,
contentAvailable: true,
@@ -215,7 +215,7 @@ describe('ContentWidgetComponent', () => {
created: 1490354907883,
createdBy: {
id: 2,
- firstName: 'dasdas', 'lastName': 'dasads', 'email': 'administrator@admin.com'
+ firstName: 'admin', 'lastName': 'admin', 'email': 'administrator@admin.com'
},
relatedContent: false,
contentAvailable: false,
@@ -239,7 +239,7 @@ describe('ContentWidgetComponent', () => {
created: 1490354907883,
createdBy: {
id: 2,
- firstName: 'dasdas', 'lastName': 'dasads', 'email': 'administrator@admin.com'
+ firstName: 'admin', 'lastName': 'admin', 'email': 'administrator@admin.com'
},
relatedContent: false,
contentAvailable: true,
@@ -273,7 +273,7 @@ describe('ContentWidgetComponent', () => {
created: 1490354907883,
createdBy: {
id: 2,
- firstName: 'dasdas', 'lastName': 'dasads', 'email': 'administrator@admin.com'
+ firstName: 'admin', 'lastName': 'admin', 'email': 'administrator@admin.com'
},
relatedContent: false,
contentAvailable: true,
diff --git a/lib/core/form/components/widgets/core/form-field.model.ts b/lib/core/form/components/widgets/core/form-field.model.ts
index 3c33d30ca3..2d71bfc2b3 100644
--- a/lib/core/form/components/widgets/core/form-field.model.ts
+++ b/lib/core/form/components/widgets/core/form-field.model.ts
@@ -36,7 +36,7 @@ export class FormFieldModel extends FormWidgetModel {
private _required: boolean = false;
readonly defaultDateFormat: string = 'D-M-YYYY';
- readonly deafultDateTimeFormat: string = 'D-M-YYYY hh:mm A';
+ readonly defaultDateTimeFormat: string = 'D-M-YYYY hh:mm A';
// model members
fieldType: string;
@@ -209,10 +209,10 @@ export class FormFieldModel extends FormWidgetModel {
jsonField.params.field) {
originalType = jsonField.params.field.type;
}
- return originalType === FormFieldTypes.DATETIME ? this.deafultDateTimeFormat : this.defaultDateFormat;
+ return originalType === FormFieldTypes.DATETIME ? this.defaultDateTimeFormat : this.defaultDateFormat;
}
- private isTypeaHeadFieldType(type: string): boolean {
+ private isTypeaheadFieldType(type: string): boolean {
return type === 'typeahead' ? true : false;
}
@@ -222,7 +222,7 @@ export class FormFieldModel extends FormWidgetModel {
private getProcessVariableValue(field: any, form: FormModel) {
let fieldName = field.name;
- if (this.isTypeaHeadFieldType(field.type)) {
+ if (this.isTypeaheadFieldType(field.type)) {
fieldName = this.getFieldNameWithLabel(field.id);
}
return this.findProcessVariableValue(fieldName, form);
@@ -400,6 +400,7 @@ export class FormFieldModel extends FormWidgetModel {
case FormFieldTypes.DATETIME:
const dateTimeValue = moment(this.value, this.dateDisplayFormat, true);
if (dateTimeValue && dateTimeValue.isValid()) {
+ /* cspell:disable-next-line */
this.form.values[this.id] = dateTimeValue.format('YYYY-MM-DDTHH:mm:ssZ');
} else {
this.form.values[this.id] = null;
diff --git a/lib/core/form/components/widgets/date-time/date-time.widget.ts b/lib/core/form/components/widgets/date-time/date-time.widget.ts
index 9d2dc70896..9fc5d2f6c3 100644
--- a/lib/core/form/components/widgets/date-time/date-time.widget.ts
+++ b/lib/core/form/components/widgets/date-time/date-time.widget.ts
@@ -58,7 +58,7 @@ export class DateTimeWidgetComponent extends WidgetComponent implements OnInit {
this.dateAdapter.setLocale(locale);
});
let momentDateAdapter =
this.dateAdapter;
- momentDateAdapter.overrideDisplyaFormat = this.field.dateDisplayFormat;
+ momentDateAdapter.overrideDisplayFormat = this.field.dateDisplayFormat;
if (this.field) {
if (this.field.minValue) {
diff --git a/lib/core/form/components/widgets/date/date.widget.ts b/lib/core/form/components/widgets/date/date.widget.ts
index 0a59a02f51..f1cb4a2f3b 100644
--- a/lib/core/form/components/widgets/date/date.widget.ts
+++ b/lib/core/form/components/widgets/date/date.widget.ts
@@ -55,7 +55,7 @@ export class DateWidgetComponent extends WidgetComponent implements OnInit {
this.dateAdapter.setLocale(locale);
});
let momentDateAdapter = this.dateAdapter;
- momentDateAdapter.overrideDisplyaFormat = this.field.dateDisplayFormat;
+ momentDateAdapter.overrideDisplayFormat = this.field.dateDisplayFormat;
if (this.field) {
if (this.field.minValue) {
diff --git a/lib/core/form/components/widgets/dynamic-table/dynamic-table.widget.spec.ts b/lib/core/form/components/widgets/dynamic-table/dynamic-table.widget.spec.ts
index 6bfeb116b4..37ba73a3a1 100644
--- a/lib/core/form/components/widgets/dynamic-table/dynamic-table.widget.spec.ts
+++ b/lib/core/form/components/widgets/dynamic-table/dynamic-table.widget.spec.ts
@@ -114,7 +114,7 @@ describe('DynamicTableWidgetComponent', () => {
expect(widget.content.selectedRow).toBe(row);
});
- it('should requre table to select clicked row', () => {
+ it('should require table to select clicked row', () => {
let row = {selected: false};
widget.content = null;
widget.onRowClicked(row);
diff --git a/lib/core/form/components/widgets/dynamic-table/dynamic-table.widget.ts b/lib/core/form/components/widgets/dynamic-table/dynamic-table.widget.ts
index 9185b78178..81d6af8221 100644
--- a/lib/core/form/components/widgets/dynamic-table/dynamic-table.widget.ts
+++ b/lib/core/form/components/widgets/dynamic-table/dynamic-table.widget.ts
@@ -95,8 +95,8 @@ export class DynamicTableWidgetComponent extends WidgetComponent implements OnIn
}
}
- private isEnterOrSpacePressed(keycode) {
- return this.selectArrayCode.indexOf(keycode) !== -1;
+ private isEnterOrSpacePressed(keyCode) {
+ return this.selectArrayCode.indexOf(keyCode) !== -1;
}
hasSelection(): boolean {
diff --git a/lib/core/form/components/widgets/dynamic-table/editors/date/date.editor.ts b/lib/core/form/components/widgets/dynamic-table/editors/date/date.editor.ts
index 97c3443e36..71614c8570 100644
--- a/lib/core/form/components/widgets/dynamic-table/editors/date/date.editor.ts
+++ b/lib/core/form/components/widgets/dynamic-table/editors/date/date.editor.ts
@@ -63,7 +63,7 @@ export class DateEditorComponent implements OnInit {
this.dateAdapter.setLocale(locale);
});
let momentDateAdapter = this.dateAdapter;
- momentDateAdapter.overrideDisplyaFormat = this.DATE_FORMAT;
+ momentDateAdapter.overrideDisplayFormat = this.DATE_FORMAT;
this.value = moment(this.table.getCellValue(this.row, this.column), 'YYYY-MM-DD');
}
diff --git a/lib/core/form/components/widgets/dynamic-table/editors/datetime/datetime.editor.ts b/lib/core/form/components/widgets/dynamic-table/editors/datetime/datetime.editor.ts
index 32f1f32b26..a5851fe3a8 100644
--- a/lib/core/form/components/widgets/dynamic-table/editors/datetime/datetime.editor.ts
+++ b/lib/core/form/components/widgets/dynamic-table/editors/datetime/datetime.editor.ts
@@ -68,7 +68,7 @@ export class DateTimeEditorComponent implements OnInit {
this.dateAdapter.setLocale(locale);
});
let momentDateAdapter = this.dateAdapter;
- momentDateAdapter.overrideDisplyaFormat = this.DATE_FORMAT;
+ momentDateAdapter.overrideDisplayFormat = this.DATE_FORMAT;
this.value = moment(this.table.getCellValue(this.row, this.column), this.DATE_FORMAT);
}
diff --git a/lib/core/form/components/widgets/dynamic-table/editors/dropdown/dropdown.editor.spec.ts b/lib/core/form/components/widgets/dynamic-table/editors/dropdown/dropdown.editor.spec.ts
index 107d297586..e2c45208ce 100644
--- a/lib/core/form/components/widgets/dynamic-table/editors/dropdown/dropdown.editor.spec.ts
+++ b/lib/core/form/components/widgets/dynamic-table/editors/dropdown/dropdown.editor.spec.ts
@@ -140,7 +140,7 @@ describe('DropdownEditorComponent', () => {
expect(component.value).toBe(row.value[column.id]);
});
- it('should handle REST error gettig options with task id', () => {
+ it('should handle REST error getting options with task id', () => {
column.optionType = 'rest';
const error = 'error';
diff --git a/lib/core/form/components/widgets/text/text.widget.spec.ts b/lib/core/form/components/widgets/text/text.widget.spec.ts
index 9ac1852cde..f62d3f0de0 100644
--- a/lib/core/form/components/widgets/text/text.widget.spec.ts
+++ b/lib/core/form/components/widgets/text/text.widget.spec.ts
@@ -117,7 +117,7 @@ describe('TextWidgetComponent', () => {
params: {inputMask: '##-##0,00%'},
type: FormFieldTypes.TEXT,
readOnly: false,
- placeholder: 'simple palceholder'
+ placeholder: 'simple placeholder'
});
fixture.detectChanges();
@@ -132,7 +132,7 @@ describe('TextWidgetComponent', () => {
it('should show the field placeholder', () => {
expect(inputElement).toBeDefined();
expect(inputElement).not.toBeNull();
- expect(inputElement.placeholder).toBe('simple palceholder');
+ expect(inputElement.placeholder).toBe('simple placeholder');
});
it('should show the field placeholder when clicked', async(() => {
@@ -142,7 +142,7 @@ describe('TextWidgetComponent', () => {
fixture.detectChanges();
expect(inputElement).toBeDefined();
expect(inputElement).not.toBeNull();
- expect(inputElement.placeholder).toBe('simple palceholder');
+ expect(inputElement.placeholder).toBe('simple placeholder');
});
}));
@@ -194,7 +194,7 @@ describe('TextWidgetComponent', () => {
});
}));
- it('should autofill masked configured value on keyUp event', async(() => {
+ it('should auto-fill masked configured value on keyUp event', async(() => {
expect(element.querySelector('#text-id')).not.toBeNull();
inputElement.value = '12345678';
@@ -263,7 +263,7 @@ describe('TextWidgetComponent', () => {
params: {inputMask: '##-##0,00%', inputMaskPlaceholder: 'Phone : (__) ___-___'},
type: FormFieldTypes.TEXT,
readOnly: false,
- placeholder: 'simple palceholder'
+ placeholder: 'simple placeholder'
});
fixture.detectChanges();
diff --git a/lib/core/form/components/widgets/typeahead/typeahead.widget.spec.ts b/lib/core/form/components/widgets/typeahead/typeahead.widget.spec.ts
index 2c3dac084a..cbc4f5d51d 100644
--- a/lib/core/form/components/widgets/typeahead/typeahead.widget.spec.ts
+++ b/lib/core/form/components/widgets/typeahead/typeahead.widget.spec.ts
@@ -294,13 +294,13 @@ describe('TypeaheadWidgetComponent', () => {
}));
it('should show typeahead options', async(() => {
- let typeahedElement = fixture.debugElement.query(By.css('#typeahead-id'));
- let typeahedHTMLElement: HTMLInputElement = typeahedElement.nativeElement;
- typeahedHTMLElement.focus();
+ let typeaheadElement = fixture.debugElement.query(By.css('#typeahead-id'));
+ let typeaheadHTMLElement: HTMLInputElement = typeaheadElement.nativeElement;
+ typeaheadHTMLElement.focus();
typeaheadWidgetComponent.value = 'F';
- typeahedHTMLElement.value = 'F';
- typeahedHTMLElement.dispatchEvent(new Event('keyup'));
- typeahedHTMLElement.dispatchEvent(new Event('input'));
+ typeaheadHTMLElement.value = 'F';
+ typeaheadHTMLElement.dispatchEvent(new Event('keyup'));
+ typeaheadHTMLElement.dispatchEvent(new Event('input'));
fixture.detectChanges();
fixture.whenStable().then(() => {
fixture.detectChanges();
@@ -311,21 +311,21 @@ describe('TypeaheadWidgetComponent', () => {
}));
it('should hide the option when the value is empty', async(() => {
- let typeahedElement = fixture.debugElement.query(By.css('#typeahead-id'));
- let typeahedHTMLElement: HTMLInputElement = typeahedElement.nativeElement;
- typeahedHTMLElement.focus();
+ let typeaheadElement = fixture.debugElement.query(By.css('#typeahead-id'));
+ let typeaheadHTMLElement: HTMLInputElement = typeaheadElement.nativeElement;
+ typeaheadHTMLElement.focus();
typeaheadWidgetComponent.value = 'F';
- typeahedHTMLElement.value = 'F';
- typeahedHTMLElement.dispatchEvent(new Event('keyup'));
- typeahedHTMLElement.dispatchEvent(new Event('input'));
+ typeaheadHTMLElement.value = 'F';
+ typeaheadHTMLElement.dispatchEvent(new Event('keyup'));
+ typeaheadHTMLElement.dispatchEvent(new Event('input'));
fixture.detectChanges();
fixture.whenStable().then(() => {
fixture.detectChanges();
expect(fixture.debugElement.query(By.css('[id="typeahead-name_option_1"]'))).not.toBeNull();
- typeahedHTMLElement.focus();
+ typeaheadHTMLElement.focus();
typeaheadWidgetComponent.value = '';
- typeahedHTMLElement.dispatchEvent(new Event('keyup'));
- typeahedHTMLElement.dispatchEvent(new Event('input'));
+ typeaheadHTMLElement.dispatchEvent(new Event('keyup'));
+ typeaheadHTMLElement.dispatchEvent(new Event('input'));
fixture.detectChanges();
fixture.whenStable().then(() => {
fixture.detectChanges();
diff --git a/lib/core/form/components/widgets/upload/upload.widget.spec.ts b/lib/core/form/components/widgets/upload/upload.widget.spec.ts
index 8e254bb237..81c5fe32c9 100644
--- a/lib/core/form/components/widgets/upload/upload.widget.spec.ts
+++ b/lib/core/form/components/widgets/upload/upload.widget.spec.ts
@@ -301,6 +301,7 @@ describe('UploadWidgetComponent', () => {
}));
it('should show correctly the file name when is formed with French characters', async(() => {
+ // cspell: disable-next
uploadWidgetComponent.field.value.push(fakeCreationFile('Àâæçéèêëïîôœùûüÿ.jpg', 12));
fixture.detectChanges();
@@ -309,11 +310,13 @@ describe('UploadWidgetComponent', () => {
fixture.detectChanges();
let jpegElement = element.querySelector('#file-12');
expect(jpegElement).not.toBeNull();
+ // cspell: disable-next
expect(jpegElement.textContent).toBe('Àâæçéèêëïîôœùûüÿ.jpg');
});
}));
it('should show correctly the file name when is formed with Greek characters', async(() => {
+ // cspell: disable-next
uploadWidgetComponent.field.value.push(fakeCreationFile('άέήίϊϊΐόύϋΰώθωερτψυιοπασδφγηςκλζχξωβνμ.jpg', 13));
fixture.detectChanges();
@@ -322,6 +325,7 @@ describe('UploadWidgetComponent', () => {
fixture.detectChanges();
let jpegElement = element.querySelector('#file-13');
expect(jpegElement).not.toBeNull();
+ // cspell: disable-next
expect(jpegElement.textContent).toBe('άέήίϊϊΐόύϋΰώθωερτψυιοπασδφγηςκλζχξωβνμ.jpg');
});
}));
@@ -351,6 +355,7 @@ describe('UploadWidgetComponent', () => {
}));
it('should show correctly the file name when is formed with Swedish characters', async(() => {
+ // cspell: disable-next
uploadWidgetComponent.field.value.push(fakeCreationFile('Äåéö.jpg', 16));
fixture.detectChanges();
@@ -358,6 +363,7 @@ describe('UploadWidgetComponent', () => {
fixture.detectChanges();
let jpegElement = element.querySelector('#file-16');
expect(jpegElement).not.toBeNull();
+ // cspell: disable-next
expect(jpegElement.textContent).toBe('Äåéö.jpg');
});
}));
diff --git a/lib/core/form/components/widgets/widget.component.ts b/lib/core/form/components/widgets/widget.component.ts
index 5ca948976d..f8ea0311a1 100644
--- a/lib/core/form/components/widgets/widget.component.ts
+++ b/lib/core/form/components/widgets/widget.component.ts
@@ -70,7 +70,7 @@ export class WidgetComponent implements AfterViewInit {
}
// Note for developers:
- // returns object to be able binding it to the attribute
+ // returns object to be able binding it to the attribute
isRequired(): any {
if (this.field && this.field.required) {
return true;
diff --git a/lib/core/form/services/ecm-model.service.ts b/lib/core/form/services/ecm-model.service.ts
index 62b7a9300b..9e79d160e8 100644
--- a/lib/core/form/services/ecm-model.service.ts
+++ b/lib/core/form/services/ecm-model.service.ts
@@ -110,8 +110,8 @@ export class EcmModelService {
typeCreated => {
this.logService.info('type Created', typeCreated);
this.addPropertyToAType(EcmModelService.MODEL_NAME, formName, form).subscribe(
- properyAdded => {
- this.logService.info('property Added', properyAdded);
+ propertyAdded => {
+ this.logService.info('property Added', propertyAdded);
observer.next(typeCreated);
observer.complete();
},
diff --git a/lib/core/form/services/form-rendering.service.spec.ts b/lib/core/form/services/form-rendering.service.spec.ts
index cf9b385c55..9881e21aa0 100644
--- a/lib/core/form/services/form-rendering.service.spec.ts
+++ b/lib/core/form/services/form-rendering.service.spec.ts
@@ -49,7 +49,7 @@ describe('FormRenderingService', () => {
expect(type).toBe(UploadWidgetComponent);
});
- it('should resolve Uknown widget for unknown field type', () => {
+ it('should resolve Unknown widget for unknown field type', () => {
let resolver = service.getComponentTypeResolver('missing-type');
let type = resolver(null);
expect(type).toBe(UnknownWidgetComponent);
diff --git a/lib/core/form/services/form.service.spec.ts b/lib/core/form/services/form.service.spec.ts
index a4e763a5fb..29ed4ee11c 100644
--- a/lib/core/form/services/form.service.spec.ts
+++ b/lib/core/form/services/form.service.spec.ts
@@ -328,11 +328,11 @@ describe('Form service', () => {
});
it('should search for Form with modelType=2', (done) => {
- let response = { data: [{ id: 1, name: 'findme' }, { id: 2, name: 'testform' }] };
+ let response = { data: [{ id: 1, name: 'findMe' }, { id: 2, name: 'testForm' }] };
- service.searchFrom('findme').subscribe(result => {
+ service.searchFrom('findMe').subscribe(result => {
expect(jasmine.Ajax.requests.mostRecent().url.endsWith('models?modelType=2')).toBeTruthy();
- expect(result.name).toEqual('findme');
+ expect(result.name).toEqual('findMe');
expect(result.id).toEqual(1);
done();
});
diff --git a/lib/core/form/services/form.service.ts b/lib/core/form/services/form.service.ts
index c4cfd26149..e074e92c92 100644
--- a/lib/core/form/services/form.service.ts
+++ b/lib/core/form/services/form.service.ts
@@ -193,7 +193,7 @@ export class FormService {
)
.pipe(
map(function (forms: any) {
- return forms.data.find(formdata => formdata.name === name);
+ return forms.data.find(formData => formData.name === name);
}),
catchError(err => this.handleError(err))
);
@@ -232,7 +232,7 @@ export class FormService {
* @param processInstanceId ID of the target process
* @returns List of instance variable information
*/
- getProcessVarablesById(processInstanceId: string): Observable {
+ getProcessVariablesById(processInstanceId: string): Observable {
return from(this.processInstanceVariablesApi.getProcessInstanceVariables(processInstanceId))
.pipe(
map(this.toJson),
@@ -363,7 +363,7 @@ export class FormService {
* @param processId ID of the process to get
* @returns Process instance
*/
- getProcessIntance(processId: string): Observable {
+ getProcessInstance(processId: string): Observable {
return from(this.processApi.getProcessInstance(processId))
.pipe(
map(this.toJson),
diff --git a/lib/core/form/services/process-content.service.ts b/lib/core/form/services/process-content.service.ts
index faccff8221..60fcb84c21 100644
--- a/lib/core/form/services/process-content.service.ts
+++ b/lib/core/form/services/process-content.service.ts
@@ -149,7 +149,7 @@ export class ProcessContentService {
* Associates an uploaded file with a process instance.
* @param processInstanceId ID of the target process instance
* @param content File to associate
- * @param opts Options supported by JSAPI
+ * @param opts Options supported by JS-API
* @returns Details of created content
*/
createProcessRelatedContent(processInstanceId: string, content: any, opts?: any): Observable {
@@ -161,7 +161,7 @@ export class ProcessContentService {
* Associates an uploaded file with a task instance.
* @param taskId ID of the target task
* @param file File to associate
- * @param opts Options supported by JSAPI
+ * @param opts Options supported by JS-API
* @returns Details of created content
*/
createTaskRelatedContent(taskId: string, file: any, opts?: any) {
diff --git a/lib/core/form/services/widget-visibility.service.spec.ts b/lib/core/form/services/widget-visibility.service.spec.ts
index e98fce8a51..d0a75fb64c 100644
--- a/lib/core/form/services/widget-visibility.service.spec.ts
+++ b/lib/core/form/services/widget-visibility.service.spec.ts
@@ -185,7 +185,7 @@ describe('WidgetVisibilityService', () => {
});
});
- describe('should retrive the process variables', () => {
+ describe('should retrieve the process variables', () => {
let fakeFormWithField = new FormModel(fakeFormJson);
let visibilityObjTest: WidgetVisibilityModel;
let chainedVisibilityObj = new WidgetVisibilityModel();
@@ -528,7 +528,7 @@ describe('WidgetVisibilityService', () => {
});
it('should return undefined for not existing form variable', () => {
- let varValue = service.getVariableValue(fakeForm, 'MISTERY_FORM_VARIABLE', null);
+ let varValue = service.getVariableValue(fakeForm, 'MYSTERY_FORM_VARIABLE', null);
expect(varValue).toBeUndefined();
});
diff --git a/lib/core/language-menu/language-menu.component.ts b/lib/core/language-menu/language-menu.component.ts
index e5dcf1ce58..ddec40b5cb 100644
--- a/lib/core/language-menu/language-menu.component.ts
+++ b/lib/core/language-menu/language-menu.component.ts
@@ -35,9 +35,9 @@ export class LanguageMenuComponent implements OnInit {
}
ngOnInit() {
- const languagesCongifApp = this.appConfig.get>(AppConfigValues.APP_CONFIG_LANGUAGES_KEY);
- if (languagesCongifApp) {
- this.languages = languagesCongifApp;
+ const languagesConfigApp = this.appConfig.get>(AppConfigValues.APP_CONFIG_LANGUAGES_KEY);
+ if (languagesConfigApp) {
+ this.languages = languagesConfigApp;
}
}
diff --git a/lib/core/layout/components/header/header.component.spec.ts b/lib/core/layout/components/header/header.component.spec.ts
index 3854d9c998..da7f430883 100644
--- a/lib/core/layout/components/header/header.component.spec.ts
+++ b/lib/core/layout/components/header/header.component.spec.ts
@@ -143,7 +143,7 @@ describe('HeaderLayoutComponent', () => {
});
});
- describe('Template tranclusion', () => {
+ describe('Template transclusion', () => {
@Component({
selector: 'adf-test-layout-header',
@@ -159,7 +159,7 @@ describe('HeaderLayoutComponent', () => {
.compileComponents();
}));
- it('should transclude the provided nodes into the component', () => {
+ it('should project the provided nodes into the component', () => {
const hostFixture = TestBed.createComponent(HeaderLayoutTesterComponent);
hostFixture.detectChanges();
const innerText = hostFixture.nativeElement.querySelector('mat-toolbar>p').innerText;
diff --git a/lib/core/layout/components/sidenav-layout/sidenav-layout.component.spec.ts b/lib/core/layout/components/sidenav-layout/sidenav-layout.component.spec.ts
index 3888b5724b..077f1c6b5a 100644
--- a/lib/core/layout/components/sidenav-layout/sidenav-layout.component.spec.ts
+++ b/lib/core/layout/components/sidenav-layout/sidenav-layout.component.spec.ts
@@ -214,7 +214,7 @@ describe('SidenavLayoutComponent', () => {
fixture.detectChanges();
});
- it('should pass through input paramters', () => {
+ it('should pass through input parameters', () => {
component.sidenavMin = 1;
component.sidenavMax = 2;
component.hideSidenav = true;
@@ -304,7 +304,7 @@ describe('SidenavLayoutComponent', () => {
});
});
- it('should be the same as the expandedSidenav\'s value by default', (done) => {
+ it('should be the same as the expanded Sidenav value by default', (done) => {
component.expandedSidenav = false;
fixture.detectChanges();
diff --git a/lib/core/login/components/login.component.spec.ts b/lib/core/login/components/login.component.spec.ts
index 2dd93bf357..52516f6afe 100644
--- a/lib/core/login/components/login.component.spec.ts
+++ b/lib/core/login/components/login.component.spec.ts
@@ -102,7 +102,7 @@ describe('LoginComponent', () => {
fixture.detectChanges();
}
- it('should be autocompelete off', () => {
+ it('should be autocomplete off', () => {
expect(element.querySelector('#adf-login-form').getAttribute('autocomplete')).toBe('off');
});
@@ -493,7 +493,7 @@ describe('LoginComponent', () => {
loginWithCredentials('fake-username-CSRF-error', 'fake-password');
}));
- it('should return ECOM read-oly error when error occurs', async(() => {
+ it('should return ECM read-only error when error occurs', async(() => {
spyOn(authService, 'login')
.and.returnValue(
throwError(
diff --git a/lib/core/login/components/login.component.ts b/lib/core/login/components/login.component.ts
index 048e6fe307..ef7f536835 100644
--- a/lib/core/login/components/login.component.ts
+++ b/lib/core/login/components/login.component.ts
@@ -229,10 +229,6 @@ export class LoginComponent implements OnInit {
}
}
- /**
- * Performe the login service
- * @param values
- */
private performLogin(values: any) {
this.actualLoginStep = LoginSteps.Checking;
this.authService
diff --git a/lib/core/mock/form/formDefinitionVisibiity.mock.ts b/lib/core/mock/form/formDefinitionVisibility.mock.ts
similarity index 100%
rename from lib/core/mock/form/formDefinitionVisibiity.mock.ts
rename to lib/core/mock/form/formDefinitionVisibility.mock.ts
diff --git a/lib/core/mock/form/start-form.component.mock.ts b/lib/core/mock/form/start-form.component.mock.ts
index 89830346bb..e8bc9f8e5e 100644
--- a/lib/core/mock/form/start-form.component.mock.ts
+++ b/lib/core/mock/form/start-form.component.mock.ts
@@ -346,7 +346,7 @@ export let startMockForm = {
1: [
{
fieldType: 'FormFieldRepresentation',
- id: 'billamount',
+ id: 'billAmount',
name: 'BillAmount',
type: 'integer',
value: null,
@@ -526,7 +526,7 @@ export let startMockForm = {
2: [
{
fieldType: 'FormFieldRepresentation',
- id: 'hospitalname',
+ id: 'hospitalName',
name: 'HospitalName',
type: 'text',
value: null,
@@ -769,7 +769,7 @@ export let startMockFormWithTab = {
1: [
{
fieldType: 'FormFieldRepresentation',
- id: 'billamount',
+ id: 'billAmount',
name: 'BillAmount',
type: 'integer',
value: null,
@@ -949,7 +949,7 @@ export let startMockFormWithTab = {
2: [
{
fieldType: 'FormFieldRepresentation',
- id: 'hospitalname',
+ id: 'hospitalName',
name: 'HospitalName',
type: 'text',
value: null,
diff --git a/lib/core/mock/public-api.ts b/lib/core/mock/public-api.ts
index 7d02c6832c..3f9e626ad4 100644
--- a/lib/core/mock/public-api.ts
+++ b/lib/core/mock/public-api.ts
@@ -32,7 +32,7 @@ export * from './alfresco-api.service.mock';
export * from './form/form.component.mock';
export * from './form/formDefinition.mock';
export * from './form/formDefinitionReadonly.mock';
-export * from './form/formDefinitionVisibiity.mock';
+export * from './form/formDefinitionVisibility.mock';
export * from './form/start-form.component.mock';
export * from './form/form.service.mock';
export * from './form/widget-visibility.service.mock';
diff --git a/lib/core/mock/renditionsService.mock.ts b/lib/core/mock/renditionsService.mock.ts
index a340020192..a5c73eebe5 100644
--- a/lib/core/mock/renditionsService.mock.ts
+++ b/lib/core/mock/renditionsService.mock.ts
@@ -15,67 +15,98 @@
* limitations under the License.
*/
-export let fakeRedition = {
- 'entry': {
- 'id': 'pdf',
- 'content': {'mimeType': 'application/pdf', 'mimeTypeName': 'Adobe PDF Document'},
- 'status': 'NOT_CREATED'
- }
-};
-
-export let fakeReditionCreated = {
- 'entry': {
- 'id': 'pdf',
- 'content': {'mimeType': 'application/pdf', 'mimeTypeName': 'Adobe PDF Document'},
- 'status': 'CREATED'
- }
-};
-
-export let fakeReditionsList = {
- 'list': {
- 'pagination': {
- 'count': 6,
- 'hasMoreItems': false,
- 'totalItems': 6,
- 'skipCount': 0,
- 'maxItems': 100
+export let fakeRendition = {
+ entry: {
+ id: 'pdf',
+ content: {
+ mimeType: 'application/pdf',
+ mimeTypeName: 'Adobe PDF Document'
},
- 'entries': [{
- 'entry': {
- 'id': 'avatar',
- 'content': {'mimeType': 'image/png', 'mimeTypeName': 'PNG Image'},
- 'status': 'NOT_CREATED'
- }
- }, {
- 'entry': {
- 'id': 'avatar32',
- 'content': {'mimeType': 'image/png', 'mimeTypeName': 'PNG Image'},
- 'status': 'NOT_CREATED'
- }
- }, {
- 'entry': {
- 'id': 'doclib',
- 'content': {'mimeType': 'image/png', 'mimeTypeName': 'PNG Image'},
- 'status': 'NOT_CREATED'
- }
- }, {
- 'entry': {
- 'id': 'imgpreview',
- 'content': {'mimeType': 'image/jpeg', 'mimeTypeName': 'JPEG Image'},
- 'status': 'NOT_CREATED'
- }
- }, {
- 'entry': {
- 'id': 'medium',
- 'content': {'mimeType': 'image/jpeg', 'mimeTypeName': 'JPEG Image'},
- 'status': 'NOT_CREATED'
- }
- }, {
- 'entry': {
- 'id': 'pdf',
- 'content': {'mimeType': 'application/pdf', 'mimeTypeName': 'Adobe PDF Document'},
- 'status': 'NOT_CREATED'
- }
- }]
+ status: 'NOT_CREATED'
+ }
+};
+
+export let fakeRenditionCreated = {
+ entry: {
+ id: 'pdf',
+ content: {
+ mimeType: 'application/pdf',
+ mimeTypeName: 'Adobe PDF Document'
+ },
+ status: 'CREATED'
+ }
+};
+
+export let fakeRenditionsList = {
+ list: {
+ pagination: {
+ count: 6,
+ hasMoreItems: false,
+ totalItems: 6,
+ skipCount: 0,
+ maxItems: 100
+ },
+ entries: [
+ {
+ entry: {
+ id: 'avatar',
+ content: {
+ mimeType: 'image/png',
+ mimeTypeName: 'PNG Image'
+ },
+ status: 'NOT_CREATED'
+ }
+ },
+ {
+ entry: {
+ id: 'avatar32',
+ content: {
+ mimeType: 'image/png',
+ mimeTypeName: 'PNG Image'
+ },
+ status: 'NOT_CREATED'
+ }
+ },
+ {
+ entry: {
+ id: 'doclib',
+ content: {
+ mimeType: 'image/png',
+ mimeTypeName: 'PNG Image'
+ },
+ status: 'NOT_CREATED'
+ }
+ },
+ {
+ entry: {
+ id: 'imgpreview',
+ content: {
+ mimeType: 'image/jpeg',
+ mimeTypeName: 'JPEG Image'
+ },
+ status: 'NOT_CREATED'
+ }
+ },
+ {
+ entry: {
+ id: 'medium',
+ content: {
+ mimeType: 'image/jpeg',
+ mimeTypeName: 'JPEG Image'
+ },
+ status: 'NOT_CREATED'
+ }
+ },
+ {
+ entry: {
+ id: 'pdf',
+ content: {
+ mimeType: 'application/pdf',
+ mimeTypeName: 'Adobe PDF Document'
+ },
+ status: 'NOT_CREATED'
+ }
+ }
+ ]
}
};
diff --git a/lib/core/models/permissions.enum.ts b/lib/core/models/permissions.enum.ts
index 68a7095940..1a901806ec 100644
--- a/lib/core/models/permissions.enum.ts
+++ b/lib/core/models/permissions.enum.ts
@@ -15,6 +15,7 @@
* limitations under the License.
*/
+ /* spellchecker: disable */
export class PermissionsEnum extends String {
static DELETE: string = 'delete';
static UPDATE: string = 'update';
diff --git a/lib/core/pipes/text-highlight.pipe.ts b/lib/core/pipes/text-highlight.pipe.ts
index 466ebaac0e..22080ab266 100644
--- a/lib/core/pipes/text-highlight.pipe.ts
+++ b/lib/core/pipes/text-highlight.pipe.ts
@@ -16,7 +16,7 @@
*/
import { Pipe, PipeTransform } from '@angular/core';
-import { HighlightTransformService, HightlightTransformResult } from '../services/highlight-transform.service';
+import { HighlightTransformService, HighlightTransformResult } from '../services/highlight-transform.service';
@Pipe({
name: 'highlight'
@@ -26,7 +26,7 @@ export class HighlightPipe implements PipeTransform {
constructor(private highlightTransformService: HighlightTransformService) { }
transform(text: string, search: string): string {
- const result: HightlightTransformResult = this.highlightTransformService.highlight(text, search);
+ const result: HighlightTransformResult = this.highlightTransformService.highlight(text, search);
return result.text;
}
}
diff --git a/lib/core/pipes/time-ago.pipe.spec.ts b/lib/core/pipes/time-ago.pipe.spec.ts
index 9676488a24..1934da97af 100644
--- a/lib/core/pipes/time-ago.pipe.spec.ts
+++ b/lib/core/pipes/time-ago.pipe.spec.ts
@@ -46,6 +46,7 @@ describe('TimeAgoPipe', () => {
it('should return a localised message', async(() => {
let date = new Date();
const transformedDate = pipe.transform(date, 'de');
+ /* cspell:disable-next-line */
expect(transformedDate).toBe('vor ein paar Sekunden');
}));
});
diff --git a/lib/core/pipes/user-initial.pipe.spec.ts b/lib/core/pipes/user-initial.pipe.spec.ts
index adc5f437b9..63c42741f6 100644
--- a/lib/core/pipes/user-initial.pipe.spec.ts
+++ b/lib/core/pipes/user-initial.pipe.spec.ts
@@ -19,7 +19,7 @@ import { DomSanitizer } from '@angular/platform-browser';
import { UserProcessModel } from '../models/user-process.model';
import { InitialUsernamePipe } from './user-initial.pipe';
-class FakeSanitazer extends DomSanitizer {
+class FakeSanitizer extends DomSanitizer {
constructor() {
super();
@@ -56,7 +56,7 @@ describe('UserInitialPipe', () => {
let fakeUser: UserProcessModel;
beforeEach(() => {
- pipe = new InitialUsernamePipe(new FakeSanitazer());
+ pipe = new InitialUsernamePipe(new FakeSanitizer());
fakeUser = new UserProcessModel();
});
@@ -74,7 +74,7 @@ describe('UserInitialPipe', () => {
expect(result).toBe('FF
');
});
- it('should return a single letter into div when lastname is undefined', () => {
+ it('should return a single letter into div when lastName is undefined', () => {
fakeUser.firstName = 'FAKE-NAME';
fakeUser.lastName = undefined;
let result = pipe.transform(fakeUser);
diff --git a/lib/core/services/authentication.service.spec.ts b/lib/core/services/authentication.service.spec.ts
index a598328dc0..016934ac2a 100644
--- a/lib/core/services/authentication.service.spec.ts
+++ b/lib/core/services/authentication.service.spec.ts
@@ -273,6 +273,7 @@ describe('AuthenticationService', () => {
it('[BPM] should return an BPM ticket after the login done', (done) => {
let disposableLogin = authService.login('fake-username', 'fake-password').subscribe((response) => {
expect(authService.isLoggedIn()).toBe(true);
+ // cspell: disable-next
expect(authService.getTicketBpm()).toEqual('Basic ZmFrZS11c2VybmFtZTpmYWtlLXBhc3N3b3Jk');
expect(authService.isBpmLoggedIn()).toBe(true);
disposableLogin.unsubscribe();
@@ -376,6 +377,7 @@ describe('AuthenticationService', () => {
let disposableLogin = authService.login('fake-username', 'fake-password').subscribe(() => {
expect(authService.isLoggedIn()).toBe(true);
expect(authService.getTicketEcm()).toEqual('fake-post-ticket');
+ // cspell: disable-next
expect(authService.getTicketBpm()).toEqual('Basic ZmFrZS11c2VybmFtZTpmYWtlLXBhc3N3b3Jk');
expect(authService.isBpmLoggedIn()).toBe(true);
expect(authService.isEcmLoggedIn()).toBe(true);
@@ -401,6 +403,7 @@ describe('AuthenticationService', () => {
(err: any) => {
expect(authService.isLoggedIn()).toBe(false, 'isLoggedIn');
expect(authService.getTicketEcm()).toBe(undefined, 'getTicketEcm');
+ // cspell: disable-next
expect(authService.getTicketBpm()).toBe('Basic ZmFrZS11c2VybmFtZTpmYWtlLXBhc3N3b3Jk', 'getTicketBpm');
expect(authService.isEcmLoggedIn()).toBe(false, 'isEcmLoggedIn');
disposableLogin.unsubscribe();
diff --git a/lib/core/services/content.service.ts b/lib/core/services/content.service.ts
index 07b03f4020..24bdf7437b 100644
--- a/lib/core/services/content.service.ts
+++ b/lib/core/services/content.service.ts
@@ -186,7 +186,7 @@ export class ContentService {
/**
* Gets a Node via its node ID.
* @param nodeId ID of the target node
- * @param opts Options supported by JSAPI
+ * @param opts Options supported by JS-API
* @returns Details of the folder
*/
getNode(nodeId: string, opts?: any): Observable {
diff --git a/lib/core/services/deleted-nodes-api.service.ts b/lib/core/services/deleted-nodes-api.service.ts
index dc407a5c1c..59b5d867b8 100644
--- a/lib/core/services/deleted-nodes-api.service.ts
+++ b/lib/core/services/deleted-nodes-api.service.ts
@@ -38,7 +38,7 @@ export class DeletedNodesApiService {
/**
* Gets a list of nodes in the trash.
- * @param options Options for JSAPI call
+ * @param options Options for JS-API call
* @returns List of nodes in the trash
*/
getDeletedNodes(options?: Object): Observable {
diff --git a/lib/core/services/favorites-api.service.ts b/lib/core/services/favorites-api.service.ts
index 290f6d8e74..3c54da5bb6 100644
--- a/lib/core/services/favorites-api.service.ts
+++ b/lib/core/services/favorites-api.service.ts
@@ -68,7 +68,7 @@ export class FavoritesApiService {
/**
* Gets the favorites for a user.
* @param personId ID of the user
- * @param options Options supported by JSAPI
+ * @param options Options supported by JS-API
* @returns List of favorites
*/
getFavorites(personId: string, options?: any): Observable {
diff --git a/lib/core/services/highlight-transform.service.ts b/lib/core/services/highlight-transform.service.ts
index a39ee7cae8..d4a6860ca6 100644
--- a/lib/core/services/highlight-transform.service.ts
+++ b/lib/core/services/highlight-transform.service.ts
@@ -17,7 +17,7 @@
import { Injectable } from '@angular/core';
-export interface HightlightTransformResult {
+export interface HighlightTransformResult {
text: string;
changed: boolean;
}
@@ -34,7 +34,7 @@ export class HighlightTransformService {
* @param wrapperClass CSS class used to provide highlighting style
* @returns New text along with boolean value to indicate whether anything was highlighted
*/
- public highlight(text: string, search: string, wrapperClass: string = 'highlight'): HightlightTransformResult {
+ public highlight(text: string, search: string, wrapperClass: string = 'highlight'): HighlightTransformResult {
let isMatching = false,
result = text;
diff --git a/lib/core/services/nodes-api.service.ts b/lib/core/services/nodes-api.service.ts
index aeead801a4..54e1d73788 100644
--- a/lib/core/services/nodes-api.service.ts
+++ b/lib/core/services/nodes-api.service.ts
@@ -42,7 +42,7 @@ export class NodesApiService {
/**
* Gets the stored information about a node.
* @param nodeId ID of the target node
- * @param options Optional parameters supported by JSAPI
+ * @param options Optional parameters supported by JS-API
* @returns Node information
*/
getNode(nodeId: string, options: any = {}): Observable {
@@ -62,7 +62,7 @@ export class NodesApiService {
/**
* Gets the items contained in a folder node.
* @param nodeId ID of the target node
- * @param options Optional parameters supported by JSAPI
+ * @param options Optional parameters supported by JS-API
* @returns List of child items from the folder
*/
getNodeChildren(nodeId: string, options: any = {}): Observable {
@@ -84,7 +84,7 @@ export class NodesApiService {
* Creates a new document node inside a folder.
* @param parentNodeId ID of the parent folder node
* @param nodeBody Data for the new node
- * @param options Optional parameters supported by JSAPI
+ * @param options Optional parameters supported by JS-API
* @returns Details of the new node
*/
createNode(parentNodeId: string, nodeBody: any, options: any = {}): Observable {
@@ -101,7 +101,7 @@ export class NodesApiService {
* Creates a new folder node inside a parent folder.
* @param parentNodeId ID of the parent folder node
* @param nodeBody Data for the new folder
- * @param options Optional parameters supported by JSAPI
+ * @param options Optional parameters supported by JS-API
* @returns Details of the new folder
*/
createFolder(parentNodeId: string, nodeBody: any, options: any = {}): Observable {
@@ -113,7 +113,7 @@ export class NodesApiService {
* Updates the information about a node.
* @param nodeId ID of the target node
* @param nodeBody New data for the node
- * @param options Optional parameters supported by JSAPI
+ * @param options Optional parameters supported by JS-API
* @returns Updated node information
*/
updateNode(nodeId: string, nodeBody: any, options: any = {}): Observable {
@@ -134,7 +134,7 @@ export class NodesApiService {
/**
* Moves a node to the trashcan.
* @param nodeId ID of the target node
- * @param options Optional parameters supported by JSAPI
+ * @param options Optional parameters supported by JS-API
* @returns Empty result that notifies when the deletion is complete
*/
deleteNode(nodeId: string, options: any = {}): Observable {
diff --git a/lib/core/services/page-title.service.spec.ts b/lib/core/services/page-title.service.spec.ts
index c9e1e22084..f9f75dd09c 100644
--- a/lib/core/services/page-title.service.spec.ts
+++ b/lib/core/services/page-title.service.spec.ts
@@ -65,6 +65,7 @@ describe('AppTitle service', () => {
});
it('should update title on language change', () => {
+ // cspell: disable-next
spyOn(translationService, 'instant').and.returnValues('hello', 'привет');
pageTitleService.setTitle('key');
@@ -73,10 +74,12 @@ describe('AppTitle service', () => {
( titleService).setTitle.calls.reset();
translationService.translate.onLangChange.next( {});
+ // cspell: disable-next
expect(titleServiceSpy).toHaveBeenCalledWith('привет - My application');
});
it('should update title on new content download', () => {
+ // cspell: disable-next
spyOn(translationService, 'instant').and.returnValues('hello', 'привет');
pageTitleService.setTitle('key');
@@ -85,6 +88,7 @@ describe('AppTitle service', () => {
( titleService).setTitle.calls.reset();
translationService.translate.onTranslationChange.next( {});
+ // cspell: disable-next
expect(titleServiceSpy).toHaveBeenCalledWith('привет - My application');
});
});
diff --git a/lib/core/services/renditions.service.spec.ts b/lib/core/services/renditions.service.spec.ts
index 1f3b8cd07c..b0dd21f61a 100644
--- a/lib/core/services/renditions.service.spec.ts
+++ b/lib/core/services/renditions.service.spec.ts
@@ -16,7 +16,7 @@
*/
import { TestBed } from '@angular/core/testing';
-import { fakeRedition, fakeReditionCreated, fakeReditionsList } from '../mock/renditionsService.mock';
+import { fakeRendition, fakeRenditionCreated, fakeRenditionsList } from '../mock/renditionsService.mock';
import { RenditionsService } from './renditions.service';
import { setupTestBed } from '../testing/setupTestBed';
import { CoreModule } from '../core.module';
@@ -55,7 +55,7 @@ describe('RenditionsService', () => {
jasmine.Ajax.requests.mostRecent().respondWith({
'status': 200,
contentType: 'application/json',
- responseText: JSON.stringify(fakeReditionsList)
+ responseText: JSON.stringify(fakeRenditionsList)
});
});
@@ -107,7 +107,7 @@ describe('RenditionsService', () => {
jasmine.Ajax.requests.mostRecent().respondWith({
'status': 200,
contentType: 'application/json',
- responseText: JSON.stringify(fakeRedition)
+ responseText: JSON.stringify(fakeRendition)
});
});
@@ -132,7 +132,7 @@ describe('RenditionsService', () => {
jasmine.Ajax.requests.mostRecent().respondWith({
'status': 200,
contentType: 'application/json',
- responseText: JSON.stringify(fakeReditionCreated)
+ responseText: JSON.stringify(fakeRenditionCreated)
});
});
@@ -145,7 +145,7 @@ describe('RenditionsService', () => {
jasmine.Ajax.requests.mostRecent().respondWith({
'status': 200,
contentType: 'application/json',
- responseText: JSON.stringify(fakeRedition)
+ responseText: JSON.stringify(fakeRendition)
});
});
diff --git a/lib/core/services/shared-links-api.service.ts b/lib/core/services/shared-links-api.service.ts
index c5596fa4b3..656431ec4e 100644
--- a/lib/core/services/shared-links-api.service.ts
+++ b/lib/core/services/shared-links-api.service.ts
@@ -37,7 +37,7 @@ export class SharedLinksApiService {
/**
* Gets shared links available to the current user.
- * @param options Options supported by JSAPI
+ * @param options Options supported by JS-API
* @returns List of shared links
*/
getSharedLinks(options: any = {}): Observable {
@@ -57,7 +57,7 @@ export class SharedLinksApiService {
/**
* Creates a shared link available to the current user.
* @param nodeId ID of the node to link to
- * @param options Options supported by JSAPI
+ * @param options Options supported by JS-API
* @returns The shared link just created
*/
createSharedLinks(nodeId: string, options: any = {}): Observable {
diff --git a/lib/core/services/sites.service.ts b/lib/core/services/sites.service.ts
index fcd31ccecf..4419350a4a 100644
--- a/lib/core/services/sites.service.ts
+++ b/lib/core/services/sites.service.ts
@@ -32,7 +32,7 @@ export class SitesService {
/**
* Gets a list of all sites in the repository.
- * @param opts Options supported by JSAPI
+ * @param opts Options supported by JS-API
* @returns List of sites
*/
getSites(opts: any = {}): Observable {
@@ -50,7 +50,7 @@ export class SitesService {
/**
* Gets the details for a site.
* @param siteId ID of the target site
- * @param opts Options supported by JSAPI
+ * @param opts Options supported by JS-API
* @returns Information about the site
*/
getSite(siteId: string, opts?: any): Observable {
diff --git a/lib/core/services/thumbnail.service.ts b/lib/core/services/thumbnail.service.ts
index 8acd129012..5f59037e9d 100644
--- a/lib/core/services/thumbnail.service.ts
+++ b/lib/core/services/thumbnail.service.ts
@@ -15,6 +15,7 @@
* limitations under the License.
*/
+/* spellchecker: disable */
import { Injectable } from '@angular/core';
import { MatIconRegistry } from '@angular/material';
import { DomSanitizer } from '@angular/platform-browser';
diff --git a/lib/core/services/upload.service.spec.ts b/lib/core/services/upload.service.spec.ts
index 7d51c2cef1..8c6689f783 100644
--- a/lib/core/services/upload.service.spec.ts
+++ b/lib/core/services/upload.service.spec.ts
@@ -43,6 +43,7 @@ describe('UploadService', () => {
files: {
excluded: ['.DS_Store', 'desktop.ini', '.git', '*.git', '*.SWF'],
'match-options': {
+ /* cspell:disable-next-line */
nocase: true
}
}
@@ -269,15 +270,15 @@ describe('UploadService', () => {
let fileFake1 = new FileModel( { name: 'fake-name1', size: 10 });
let fileFake2 = new FileModel( { name: 'fake-name2', size: 10 });
- let filelist = [fileFake1, fileFake2];
- service.addToQueue(...filelist);
+ let fileList = [fileFake1, fileFake2];
+ service.addToQueue(...fileList);
service.uploadFilesInTheQueue(emitter);
let file = service.getQueue();
service.cancelUpload(...file);
});
- it('should remove from the queue all the files in the exluded list', () => {
+ it('should remove from the queue all the files in the excluded list', () => {
const file1 = new FileModel(new File([''], '.git'));
const file2 = new FileModel(new File([''], '.DS_Store'));
const file3 = new FileModel(new File([''], 'desktop.ini'));
diff --git a/lib/core/services/user-preferences.service.spec.ts b/lib/core/services/user-preferences.service.spec.ts
index f4f9c49a7b..ec7a90d160 100644
--- a/lib/core/services/user-preferences.service.spec.ts
+++ b/lib/core/services/user-preferences.service.spec.ts
@@ -126,7 +126,7 @@ describe('UserPreferencesService', () => {
expect(preferences.getDefaultLocale()).toBe('fake-locate-browser');
});
- it('should return as default locale the component propery as third ', () => {
+ it('should return as default locale the component property as third ', () => {
spyOn(translate, 'getBrowserLang').and.stub();
expect(preferences.getDefaultLocale()).toBe('en');
});
diff --git a/lib/core/templates/error-content/error-content.component.spec.ts b/lib/core/templates/error-content/error-content.component.spec.ts
index 830e6b7686..c3b0a4fe96 100644
--- a/lib/core/templates/error-content/error-content.component.spec.ts
+++ b/lib/core/templates/error-content/error-content.component.spec.ts
@@ -111,7 +111,7 @@ describe('ErrorContentComponent', () => {
});
}));
- it('shoul the default value of return burron be /', async(() => {
+ it('should the default value of return button be /', async(() => {
fixture.detectChanges();
fixture.whenStable().then(() => {
expect(errorContentComponent.returnButtonUrl).toBe('/');
diff --git a/lib/core/userinfo/components/user-info.component.spec.ts b/lib/core/userinfo/components/user-info.component.spec.ts
index 17f01f150b..c168466d4b 100644
--- a/lib/core/userinfo/components/user-info.component.spec.ts
+++ b/lib/core/userinfo/components/user-info.component.spec.ts
@@ -29,7 +29,7 @@ import { of } from 'rxjs';
import { setupTestBed } from '../../testing/setupTestBed';
import { CoreTestingModule } from '../../testing/core.testing.module';
-class FakeSanitazer extends DomSanitizer {
+class FakeSanitizer extends DomSanitizer {
constructor() {
super();
@@ -265,7 +265,7 @@ describe('User info component', () => {
it('should display the current user Initials if the user dose not have avatarId', async(() => {
fixture.whenStable().then(() => {
fixture.detectChanges();
- let pipe = new InitialUsernamePipe(new FakeSanitazer());
+ let pipe = new InitialUsernamePipe(new FakeSanitizer());
expect(component.ecmUser.avatarId).toBeNull();
expect(pipe.transform({
id: 13,
diff --git a/lib/core/utils/file-utils.ts b/lib/core/utils/file-utils.ts
index 4aebfb06ad..7b4176f272 100644
--- a/lib/core/utils/file-utils.ts
+++ b/lib/core/utils/file-utils.ts
@@ -23,7 +23,7 @@ export interface FileInfo {
export class FileUtils {
- static flattern(folder: any): Promise {
+ static flatten(folder: any): Promise {
let reader = folder.createReader();
let files: FileInfo[] = [];
return new Promise(resolve => {
@@ -46,7 +46,7 @@ export class FileUtils {
});
});
} else {
- return FileUtils.flattern(entry).then(result => {
+ return FileUtils.flatten(entry).then(result => {
files.push(...result);
});
}
diff --git a/lib/core/utils/momentDateAdapter.ts b/lib/core/utils/momentDateAdapter.ts
index c0208186d8..82fe862b63 100644
--- a/lib/core/utils/momentDateAdapter.ts
+++ b/lib/core/utils/momentDateAdapter.ts
@@ -23,7 +23,7 @@ export class MomentDateAdapter extends DateAdapter {
private localeData: any = moment.localeData();
- overrideDisplyaFormat: string;
+ overrideDisplayFormat: string;
getYear(date: Moment): number {
return date.year();
@@ -109,7 +109,7 @@ export class MomentDateAdapter extends DateAdapter {
let m = moment(value, parseFormat, locale, true);
if (!m.isValid()) {
// use strict parsing because Moment's parser is very forgiving, and this can lead to undesired behavior.
- m = moment(value, this.overrideDisplyaFormat, locale, true);
+ m = moment(value, this.overrideDisplayFormat, locale, true);
}
if (m.isValid()) {
// if user omits year, it defaults to 2001, so check for that issue.
@@ -131,7 +131,7 @@ export class MomentDateAdapter extends DateAdapter {
format(date: Moment, displayFormat: any): string {
date = this.clone(date);
- displayFormat = this.overrideDisplyaFormat ? this.overrideDisplyaFormat : displayFormat;
+ displayFormat = this.overrideDisplayFormat ? this.overrideDisplayFormat : displayFormat;
if (date && date.format) {
return date.format(displayFormat);
diff --git a/lib/core/utils/object-utils.spec.ts b/lib/core/utils/object-utils.spec.ts
index f65eab54b5..4d114e7ccc 100644
--- a/lib/core/utils/object-utils.spec.ts
+++ b/lib/core/utils/object-utils.spec.ts
@@ -106,7 +106,7 @@ describe('ObjectUtils', () => {
});
});
- it('shoud overwrite only single property in the object', () => {
+ it('should overwrite only single property in the object', () => {
const obj1 = {
child: {
prop1: 1,
diff --git a/lib/core/viewer/components/pdfViewer-thumbnails.component.spec.ts b/lib/core/viewer/components/pdfViewer-thumbnails.component.spec.ts
index 504d5abc31..5e5f73041b 100644
--- a/lib/core/viewer/components/pdfViewer-thumbnails.component.spec.ts
+++ b/lib/core/viewer/components/pdfViewer-thumbnails.component.spec.ts
@@ -40,6 +40,7 @@ describe('PdfThumbListComponent', () => {
_currentPageNumber: null,
set currentPageNumber(pageNum) {
this._currentPageNumber = pageNum;
+ /* cspell:disable-next-line */
this.eventBus.dispatch('pagechange', { pageNumber: pageNum });
},
get currentPageNumber() {
@@ -123,6 +124,7 @@ describe('PdfThumbListComponent', () => {
expect(renderedIds).toContain(12);
+ /* cspell:disable-next-line */
viewerMock.eventBus.dispatch('pagechange', { pageNumber: 12 });
const newRenderedIds = component.renderItems.map(item => item.id);
diff --git a/lib/core/viewer/components/pdfViewer-thumbnails.component.ts b/lib/core/viewer/components/pdfViewer-thumbnails.component.ts
index 543802bbb9..bac88ccde1 100644
--- a/lib/core/viewer/components/pdfViewer-thumbnails.component.ts
+++ b/lib/core/viewer/components/pdfViewer-thumbnails.component.ts
@@ -54,6 +54,7 @@ export class PdfThumbListComponent implements OnInit, AfterViewInit, OnDestroy {
}
ngOnInit() {
+ /* cspell:disable-next-line */
this.pdfViewer.eventBus.on('pagechange', this.onPageChange);
this.element.nativeElement.addEventListener('scroll', this.calculateItems, true);
@@ -69,6 +70,7 @@ export class PdfThumbListComponent implements OnInit, AfterViewInit, OnDestroy {
ngOnDestroy() {
this.element.nativeElement.removeEventListener('scroll', this.calculateItems, true);
+ /* cspell:disable-next-line */
this.pdfViewer.eventBus.off('pagechange', this.onPageChange);
}
diff --git a/lib/core/viewer/components/pdfViewer.component.spec.ts b/lib/core/viewer/components/pdfViewer.component.spec.ts
index 366f22e23b..75e2c14a4d 100644
--- a/lib/core/viewer/components/pdfViewer.component.spec.ts
+++ b/lib/core/viewer/components/pdfViewer.component.spec.ts
@@ -163,7 +163,7 @@ describe('Test PdfViewer component', () => {
});
describe('Required values', () => {
- it('should thrown an error If urlfile is not present', () => {
+ it('should thrown an error If urlFile is not present', () => {
change = new SimpleChange(null, null, true);
expect(() => {
@@ -223,6 +223,7 @@ describe('Test PdfViewer component', () => {
fixtureUrlTestComponent.detectChanges();
fixtureUrlTestComponent.whenStable().then(() => {
+ /* cspell:disable-next-line */
expect(elementUrlTestComponent.querySelector('.viewer-pagenumber-input')).toBeDefined();
expect(elementUrlTestComponent.querySelector('.viewer-total-pages')).toBeDefined();
@@ -292,6 +293,7 @@ describe('Test PdfViewer component', () => {
fixtureBlobTestComponent.detectChanges();
fixtureBlobTestComponent.whenStable().then(() => {
+ /* cspell:disable-next-line */
expect(elementBlobTestComponent.querySelector('.viewer-pagenumber-input')).toBeDefined();
expect(elementBlobTestComponent.querySelector('.viewer-total-pages')).toBeDefined();
@@ -486,7 +488,7 @@ describe('Test PdfViewer component', () => {
describe('Viewer events', () => {
- it('should react on the emit of pagechange event', (done) => {
+ it('should react on the emit of pageChange event', (done) => {
fixtureUrlTestComponent.detectChanges();
fixtureUrlTestComponent.whenStable().then(() => {
const args = {
@@ -496,6 +498,7 @@ describe('Test PdfViewer component', () => {
}
};
+ /* cspell:disable-next-line */
componentUrlTestComponent.pdfViewerComponent.pdfViewer.eventBus.dispatch('pagechange', args);
fixtureUrlTestComponent.detectChanges();
@@ -507,7 +510,7 @@ describe('Test PdfViewer component', () => {
});
}, 5000);
- it('should react on the emit of pagesloaded event', (done) => {
+ it('should react on the emit of pagesLoaded event', (done) => {
fixtureUrlTestComponent.detectChanges();
fixtureUrlTestComponent.whenStable().then(() => {
expect(componentUrlTestComponent.pdfViewerComponent.isPanelDisabled).toBeFalsy();
@@ -519,6 +522,7 @@ describe('Test PdfViewer component', () => {
}
};
+ /* cspell:disable-next-line */
componentUrlTestComponent.pdfViewerComponent.pdfViewer.eventBus.dispatch('pagesloaded', args);
fixtureUrlTestComponent.detectChanges();
diff --git a/lib/core/viewer/components/pdfViewer.component.ts b/lib/core/viewer/components/pdfViewer.component.ts
index a4ad90feaf..a2230ea260 100644
--- a/lib/core/viewer/components/pdfViewer.component.ts
+++ b/lib/core/viewer/components/pdfViewer.component.ts
@@ -102,7 +102,7 @@ export class PdfViewerComponent implements OnChanges, OnDestroy {
// needed to preserve "this" context
this.onPageChange = this.onPageChange.bind(this);
this.onPagesLoaded = this.onPagesLoaded.bind(this);
- this.onPagerendered = this.onPagerendered.bind(this);
+ this.onPageRendered = this.onPageRendered.bind(this);
}
ngOnChanges(changes) {
@@ -165,9 +165,12 @@ export class PdfViewerComponent implements OnChanges, OnDestroy {
if (viewer && container) {
this.documentContainer = container;
+ // cspell: disable-next
this.documentContainer.addEventListener('pagechange', this.onPageChange, true);
+ // cspell: disable-next
this.documentContainer.addEventListener('pagesloaded', this.onPagesLoaded, true);
- this.documentContainer.addEventListener('textlayerrendered', this.onPagerendered, true);
+ // cspell: disable-next
+ this.documentContainer.addEventListener('textlayerrendered', this.onPageRendered, true);
this.pdfViewer = new pdfjsViewer.PDFViewer({
container: this.documentContainer,
@@ -183,9 +186,12 @@ export class PdfViewerComponent implements OnChanges, OnDestroy {
ngOnDestroy() {
if (this.documentContainer) {
+ // cspell: disable-next
this.documentContainer.removeEventListener('pagechange', this.onPageChange, true);
+ // cspell: disable-next
this.documentContainer.removeEventListener('pagesloaded', this.onPagesLoaded, true);
- this.documentContainer.removeEventListener('textlayerrendered', this.onPagerendered, true);
+ // cspell: disable-next
+ this.documentContainer.removeEventListener('textlayerrendered', this.onPageRendered, true);
}
if (this.loadingTask) {
@@ -421,7 +427,7 @@ export class PdfViewerComponent implements OnChanges, OnDestroy {
/**
* Page Rendered Event
*/
- onPagerendered() {
+ onPageRendered() {
this.rendered.emit();
}
@@ -435,7 +441,7 @@ export class PdfViewerComponent implements OnChanges, OnDestroy {
}
/**
- * Litener Keyboard Event
+ * Keyboard Event Listener
* @param KeyboardEvent event
*/
@HostListener('document:keydown', ['$event'])
diff --git a/lib/core/viewer/components/txtViewer.component.spec.ts b/lib/core/viewer/components/txtViewer.component.spec.ts
index ab47563885..dcee11203d 100644
--- a/lib/core/viewer/components/txtViewer.component.spec.ts
+++ b/lib/core/viewer/components/txtViewer.component.spec.ts
@@ -42,7 +42,7 @@ describe('Text View component', () => {
describe('View', () => {
- it('Should text container be present with urlfile', (done) => {
+ it('Should text container be present with urlFile', (done) => {
fixture.detectChanges();
let urlFile = './fake-test-file.txt';
let change = new SimpleChange(null, urlFile, true);
diff --git a/lib/core/viewer/components/viewer.component.spec.ts b/lib/core/viewer/components/viewer.component.spec.ts
index 368405820f..c09d1b0442 100644
--- a/lib/core/viewer/components/viewer.component.spec.ts
+++ b/lib/core/viewer/components/viewer.component.spec.ts
@@ -142,7 +142,7 @@ describe('ViewerComponent', () => {
{
provide: RenditionsService, useValue: {
getRendition: () => {
- return throwError('throwed');
+ return throwError('thrown');
}
}
},
diff --git a/lib/insights/analytics-process/analytics-process.module.ts b/lib/insights/analytics-process/analytics-process.module.ts
index fd3cd9bff2..df00e25516 100644
--- a/lib/insights/analytics-process/analytics-process.module.ts
+++ b/lib/insights/analytics-process/analytics-process.module.ts
@@ -30,11 +30,11 @@ import { AnalyticsReportListComponent } from './components/analytics-report-list
import { AnalyticsReportParametersComponent } from './components/analytics-report-parameters.component';
import { AnalyticsComponent } from './components/analytics.component';
-import { CheckboxWidgetAanalyticsComponent } from './components/widgets/checkbox/checkbox.widget';
+import { CheckboxWidgetAnalyticsComponent } from './components/widgets/checkbox/checkbox.widget';
import { DateRangeWidgetComponent } from './components/widgets/date-range/date-range.widget';
-import { DropdownWidgetAanalyticsComponent } from './components/widgets/dropdown/dropdown.widget';
+import { DropdownWidgetAnalyticsComponent } from './components/widgets/dropdown/dropdown.widget';
import { DurationWidgetComponent } from './components/widgets/duration/duration.widget';
-import { NumberWidgetAanlyticsComponent } from './components/widgets/number/number.widget';
+import { NumberWidgetAnalyticsComponent } from './components/widgets/number/number.widget';
import { FlexLayoutModule } from '@angular/flex-layout';
@@ -55,10 +55,10 @@ import { FlexLayoutModule } from '@angular/flex-layout';
AnalyticsReportParametersComponent,
AnalyticsGeneratorComponent,
AnalyticsReportHeatMapComponent,
- DropdownWidgetAanalyticsComponent,
- NumberWidgetAanlyticsComponent,
+ DropdownWidgetAnalyticsComponent,
+ NumberWidgetAnalyticsComponent,
DurationWidgetComponent,
- CheckboxWidgetAanalyticsComponent,
+ CheckboxWidgetAnalyticsComponent,
DateRangeWidgetComponent
],
exports: [
@@ -67,10 +67,10 @@ import { FlexLayoutModule } from '@angular/flex-layout';
AnalyticsReportParametersComponent,
AnalyticsGeneratorComponent,
AnalyticsReportHeatMapComponent,
- DropdownWidgetAanalyticsComponent,
- NumberWidgetAanlyticsComponent,
+ DropdownWidgetAnalyticsComponent,
+ NumberWidgetAnalyticsComponent,
DurationWidgetComponent,
- CheckboxWidgetAanalyticsComponent,
+ CheckboxWidgetAnalyticsComponent,
DateRangeWidgetComponent
]
})
diff --git a/lib/insights/analytics-process/components/analytics-generator.component.spec.ts b/lib/insights/analytics-process/components/analytics-generator.component.spec.ts
index e2f4e889aa..77493e743b 100644
--- a/lib/insights/analytics-process/components/analytics-generator.component.spec.ts
+++ b/lib/insights/analytics-process/components/analytics-generator.component.spec.ts
@@ -90,7 +90,7 @@ describe('AnalyticsGeneratorComponent', () => {
});
});
- it('Should render the Process definition overview report when onchanges is called ', (done) => {
+ it('Should render the Process definition overview report when [onChanges] is called ', (done) => {
component.success.subscribe((res) => {
expect(res).toBeDefined();
expect(res.length).toEqual(3);
diff --git a/lib/insights/analytics-process/components/analytics-report-heat-map.component.spec.ts b/lib/insights/analytics-process/components/analytics-report-heat-map.component.spec.ts
index 675124a695..6fc9c0a2c9 100644
--- a/lib/insights/analytics-process/components/analytics-report-heat-map.component.spec.ts
+++ b/lib/insights/analytics-process/components/analytics-report-heat-map.component.spec.ts
@@ -28,8 +28,8 @@ describe('AnalyticsReportHeatMapComponent', () => {
let fixture: ComponentFixture;
let element: HTMLElement;
- let totalCountPerc: any = { 'sid-fake-id': 0, 'fake-start-event': 100 };
- let totalTimePerc: any = { 'sid-fake-id': 10, 'fake-start-event': 30 };
+ let totalCountPercent: any = { 'sid-fake-id': 0, 'fake-start-event': 100 };
+ let totalTimePercent: any = { 'sid-fake-id': 10, 'fake-start-event': 30 };
let avgTimePercentages: any = { 'sid-fake-id': 5, 'fake-start-event': 50 };
let totalCountValues: any = { 'sid-fake-id': 2, 'fake-start-event': 3 };
@@ -46,9 +46,9 @@ describe('AnalyticsReportHeatMapComponent', () => {
element = fixture.nativeElement;
component.report = {
- totalCountsPercentages: totalCountPerc,
+ totalCountsPercentages: totalCountPercent,
totalCountValues: totalCountValues,
- totalTimePercentages: totalTimePerc,
+ totalTimePercentages: totalTimePercent,
totalTimeValues: totalTimeValues,
avgTimeValues: avgTimeValues,
avgTimePercentages: avgTimePercentages
@@ -90,21 +90,21 @@ describe('AnalyticsReportHeatMapComponent', () => {
expect(component.hasMetric()).toBeTruthy();
}));
- it('should change the currentmetric width totalCount', async(() => {
+ it('should change the currentMetric width totalCount', async(() => {
let field = { value: 'totalCount' };
component.onMetricChanges(field);
expect(component.currentMetric).toEqual(totalCountValues);
- expect(component.currentMetricColors).toEqual(totalCountPerc);
+ expect(component.currentMetricColors).toEqual(totalCountPercent);
}));
- it('should change the currentmetric width totalTime', async(() => {
+ it('should change the currentMetric width totalTime', async(() => {
let field = { value: 'totalTime' };
component.onMetricChanges(field);
expect(component.currentMetric).toEqual(totalTimeValues);
- expect(component.currentMetricColors).toEqual(totalTimePerc);
+ expect(component.currentMetricColors).toEqual(totalTimePercent);
}));
- it('should change the currentmetric width avgTime', async(() => {
+ it('should change the currentMetric width avgTime', async(() => {
let field = { value: 'avgTime' };
component.onMetricChanges(field);
expect(component.currentMetric).toEqual(avgTimeValues);
diff --git a/lib/insights/analytics-process/components/analytics.component.html b/lib/insights/analytics-process/components/analytics.component.html
index bcc03e7881..45bccabf65 100644
--- a/lib/insights/analytics-process/components/analytics.component.html
+++ b/lib/insights/analytics-process/components/analytics.component.html
@@ -10,6 +10,6 @@
+ #analyticsGenerator>
diff --git a/lib/insights/analytics-process/components/analytics.component.ts b/lib/insights/analytics-process/components/analytics.component.ts
index c05aaeae28..a18373d287 100644
--- a/lib/insights/analytics-process/components/analytics.component.ts
+++ b/lib/insights/analytics-process/components/analytics.component.ts
@@ -45,21 +45,21 @@ export class AnalyticsComponent implements OnChanges {
@Output()
reportDeleted = new EventEmitter();
- @ViewChild('analyticsgenerator')
- analyticsgenerator: AnalyticsGeneratorComponent;
+ @ViewChild('analyticsGenerator')
+ analyticsGenerator: AnalyticsGeneratorComponent;
reportParamQuery: ReportQuery;
ngOnChanges(changes: SimpleChanges) {
- this.analyticsgenerator.reset();
+ this.analyticsGenerator.reset();
}
public showReport($event) {
- this.analyticsgenerator.generateReport(this.reportId, $event);
+ this.analyticsGenerator.generateReport(this.reportId, $event);
}
public reset() {
- this.analyticsgenerator.reset();
+ this.analyticsGenerator.reset();
}
public onEditReport(name: string) {
diff --git a/lib/insights/analytics-process/components/widgets/checkbox/checkbox.widget.ts b/lib/insights/analytics-process/components/widgets/checkbox/checkbox.widget.ts
index d41b2a5b62..1931374945 100644
--- a/lib/insights/analytics-process/components/widgets/checkbox/checkbox.widget.ts
+++ b/lib/insights/analytics-process/components/widgets/checkbox/checkbox.widget.ts
@@ -26,7 +26,7 @@
templateUrl: './checkbox.widget.html',
encapsulation: ViewEncapsulation.None
})
-export class CheckboxWidgetAanalyticsComponent extends WidgetComponent {
+export class CheckboxWidgetAnalyticsComponent extends WidgetComponent {
@Input()
field: any;
diff --git a/lib/insights/analytics-process/components/widgets/date-range/date-range.widget.ts b/lib/insights/analytics-process/components/widgets/date-range/date-range.widget.ts
index 83b17f1fff..acd713cdb4 100644
--- a/lib/insights/analytics-process/components/widgets/date-range/date-range.widget.ts
+++ b/lib/insights/analytics-process/components/widgets/date-range/date-range.widget.ts
@@ -62,7 +62,7 @@ export class DateRangeWidgetComponent implements OnInit {
this.dateAdapter.setLocale(locale);
});
let momentDateAdapter =