diff --git a/frontend/app/shared/components/forms/geolocation-editor.component.ts b/frontend/app/shared/components/forms/geolocation-editor.component.ts
index bf054568b..a226f190e 100644
--- a/frontend/app/shared/components/forms/geolocation-editor.component.ts
+++ b/frontend/app/shared/components/forms/geolocation-editor.component.ts
@@ -5,7 +5,7 @@
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
-import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, forwardRef, Input, ViewChild } from '@angular/core';
+import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, forwardRef, ViewChild } from '@angular/core';
import { FormBuilder, NG_VALUE_ACCESSOR } from '@angular/forms';
import {
@@ -24,13 +24,14 @@ export const SQX_GEOLOCATION_EDITOR_CONTROL_VALUE_ACCESSOR: any = {
provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => GeolocationEditorComponent), multi: true
};
-interface Geolocation {
- latitude: number;
- longitude: number;
-}
+type Geolocation = { latitude: number; longitude: number; };
-interface Snapshot {
+interface State {
+ // True when the map should be hidden.
isMapHidden?: boolean;
+
+ // True, when width less than 600 pixels.
+ isCompact?: boolean;
}
type UpdateOptions = { reset?: boolean; pan?: true; fire?: boolean };
@@ -44,7 +45,7 @@ type UpdateOptions = { reset?: boolean; pan?: true; fire?: boolean };
],
changeDetection: ChangeDetectionStrategy.OnPush
})
-export class GeolocationEditorComponent extends StatefulControlComponent
implements AfterViewInit {
+export class GeolocationEditorComponent extends StatefulControlComponent implements AfterViewInit {
private marker: any;
private map: any;
private value: Geolocation | null = null;
@@ -71,9 +72,6 @@ export class GeolocationEditorComponent extends StatefulControlComponent;
@@ -286,7 +284,7 @@ export class GeolocationEditorComponent extends StatefulControlComponent ({ ...s, isCompact: isCompact }));
+ }
}
\ No newline at end of file
diff --git a/frontend/app/shared/components/forms/markdown-editor.component.html b/frontend/app/shared/components/forms/markdown-editor.component.html
index f0dd30c03..8677f53e4 100644
--- a/frontend/app/shared/components/forms/markdown-editor.component.html
+++ b/frontend/app/shared/components/forms/markdown-editor.component.html
@@ -1,4 +1,6 @@
-
+
diff --git a/frontend/app/shared/components/forms/markdown-editor.component.ts b/frontend/app/shared/components/forms/markdown-editor.component.ts
index 71aa1393c..074f0628d 100644
--- a/frontend/app/shared/components/forms/markdown-editor.component.ts
+++ b/frontend/app/shared/components/forms/markdown-editor.component.ts
@@ -27,6 +27,7 @@ export const SQX_MARKDOWN_EDITOR_CONTROL_VALUE_ACCESSOR: any = {
};
interface State {
+ // True, when the editor is shown as fullscreen.
isFullscreen: false;
}
diff --git a/frontend/app/shared/components/forms/references-dropdown.component.ts b/frontend/app/shared/components/forms/references-dropdown.component.ts
index 9c652714e..60d6a9122 100644
--- a/frontend/app/shared/components/forms/references-dropdown.component.ts
+++ b/frontend/app/shared/components/forms/references-dropdown.component.ts
@@ -24,9 +24,13 @@ export const SQX_REFERENCES_DROPDOWN_CONTROL_VALUE_ACCESSOR: any = {
};
interface State {
+ // The referenced content items.
contents: ReadonlyArray
;
+
+ // The names of the selected content items for search.
contentNames: ReadonlyArray;
+ // The name of the selected item.
selectedItem?: ContentName;
}
diff --git a/frontend/app/shared/components/forms/references-tags.component.ts b/frontend/app/shared/components/forms/references-tags.component.ts
index 0f4280f2f..8bab938a4 100644
--- a/frontend/app/shared/components/forms/references-tags.component.ts
+++ b/frontend/app/shared/components/forms/references-tags.component.ts
@@ -66,6 +66,7 @@ class TagsConverter implements Converter {
}
interface State {
+ // The tags converter.
converter: TagsConverter;
}
diff --git a/frontend/app/shared/components/forms/rich-editor.component.html b/frontend/app/shared/components/forms/rich-editor.component.html
index 1453140d1..14b95451e 100644
--- a/frontend/app/shared/components/forms/rich-editor.component.html
+++ b/frontend/app/shared/components/forms/rich-editor.component.html
@@ -1,4 +1,4 @@
-
+
diff --git a/frontend/app/shared/components/schema-category.component.ts b/frontend/app/shared/components/schema-category.component.ts
index c3f684b8c..95811caac 100644
--- a/frontend/app/shared/components/schema-category.component.ts
+++ b/frontend/app/shared/components/schema-category.component.ts
@@ -18,8 +18,10 @@ import {
} from '@app/shared/internal';
interface State {
+ // The filtered schemas.
filtered: ReadonlyArray
;
+ // True when the category is open.
isOpen?: boolean;
}
diff --git a/frontend/app/shell/pages/internal/profile-menu.component.ts b/frontend/app/shell/pages/internal/profile-menu.component.ts
index bc9273284..b3302385c 100644
--- a/frontend/app/shell/pages/internal/profile-menu.component.ts
+++ b/frontend/app/shell/pages/internal/profile-menu.component.ts
@@ -17,9 +17,16 @@ import {
} from '@app/shared';
interface State {
+ // The display name of the user.
profileDisplayName: string;
+
+ // The id of the user.
profileId: string;
+
+ // The email address of the user.
profileEmail: string;
+
+ // The url to the user profile.
profileUrl: string;
}
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index d6d68d1b4..ddf2ff2e3 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -11339,6 +11339,12 @@
"integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=",
"dev": true
},
+ "resize-observer-polyfill": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz",
+ "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==",
+ "dev": true
+ },
"resolve": {
"version": "1.8.1",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.8.1.tgz",
diff --git a/frontend/package.json b/frontend/package.json
index ffd69f8de..9a88d80f9 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -90,6 +90,7 @@
"postcss-loader": "^3.0.0",
"postcss-preset-env": "^6.7.0",
"raw-loader": "3.1.0",
+ "resize-observer-polyfill": "^1.5.1",
"rimraf": "3.0.0",
"rxjs-tslint": "0.1.7",
"sass-lint": "^1.13.1",