diff --git a/src/Squidex/app/features/administration/pages/event-consumers/event-consumers-page.component.html b/src/Squidex/app/features/administration/pages/event-consumers/event-consumers-page.component.html
index ba71728e3..2d5008929 100644
--- a/src/Squidex/app/features/administration/pages/event-consumers/event-consumers-page.component.html
+++ b/src/Squidex/app/features/administration/pages/event-consumers/event-consumers-page.component.html
@@ -59,7 +59,7 @@
-
+
Error
@@ -69,4 +69,4 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/Squidex/app/features/apps/pages/apps-page.component.html b/src/Squidex/app/features/apps/pages/apps-page.component.html
index 5c6484bfd..104f08827 100644
--- a/src/Squidex/app/features/apps/pages/apps-page.component.html
+++ b/src/Squidex/app/features/apps/pages/apps-page.component.html
@@ -102,20 +102,20 @@
{{info}}
-
+
-
+
-
+
-
+
-
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/Squidex/app/features/content/pages/content/content-page.component.html b/src/Squidex/app/features/content/pages/content/content-page.component.html
index ff204bf58..cc47f0d29 100644
--- a/src/Squidex/app/features/content/pages/content/content-page.component.html
+++ b/src/Squidex/app/features/content/pages/content/content-page.component.html
@@ -44,35 +44,37 @@
-
-
-
-
-
\ No newline at end of file
+
+
+
+
\ No newline at end of file
diff --git a/src/Squidex/app/features/schemas/pages/schema/schema-page.component.ts b/src/Squidex/app/features/schemas/pages/schema/schema-page.component.ts
index d9957a1f0..acd0faf18 100644
--- a/src/Squidex/app/features/schemas/pages/schema/schema-page.component.ts
+++ b/src/Squidex/app/features/schemas/pages/schema/schema-page.component.ts
@@ -21,8 +21,7 @@ import {
PatternsState,
ResourceOwner,
SchemaDetailsDto,
- SchemasState,
- Types
+ SchemasState
} from '@app/shared';
import {
@@ -40,18 +39,14 @@ import {
export class SchemaPageComponent extends ResourceOwner implements OnInit {
public fieldTypes = fieldTypes;
- public schemaExport: any;
public schema: SchemaDetailsDto;
- public exportSchemaDialog = new DialogModel();
-
- public configureScriptsDialog = new DialogModel();
+ public addFieldDialog = new DialogModel();
public configurePreviewUrlsDialog = new DialogModel();
-
+ public configureScriptsDialog = new DialogModel();
public editOptionsDropdown = new ModalModel();
public editSchemaDialog = new DialogModel();
-
- public addFieldDialog = new DialogModel();
+ public exportDialog = new DialogModel();
constructor(
public readonly appsState: AppsState,
@@ -72,8 +67,6 @@ export class SchemaPageComponent extends ResourceOwner implements OnInit {
.subscribe(schema => {
if (schema) {
this.schema = schema;
-
- this.export();
}
}));
}
@@ -102,52 +95,7 @@ export class SchemaPageComponent extends ResourceOwner implements OnInit {
}
public cloneSchema() {
- this.messageBus.emit(new SchemaCloning(this.schemaExport));
- }
-
- private export() {
- const cleanup = (source: any, ...exclude: string[]): any => {
- const clone = {};
-
- for (const key in source) {
- if (source.hasOwnProperty(key) && exclude.indexOf(key) < 0) {
- const value = source[key];
-
- if (value) {
- clone[key] = value;
- }
- }
- }
-
- return clone;
- };
-
- const result: any = {
- fields: this.schema.fields.map(field => {
- const copy = cleanup(field, 'fieldId');
-
- copy.properties = cleanup(field.properties);
-
- if (Types.isArray(copy.nested)) {
- if (copy.nested.length === 0) {
- delete copy['nested'];
- } else {
- copy.nested = field.nested.map(nestedField => {
- const nestedCopy = cleanup(nestedField, 'fieldId', 'parentId');
-
- nestedCopy.properties = cleanup(nestedField.properties);
-
- return nestedCopy;
- });
- }
- }
-
- return copy;
- }),
- properties: cleanup(this.schema.properties)
- };
-
- this.schemaExport = result;
+ this.messageBus.emit(new SchemaCloning(this.schema.export()));
}
private back() {
diff --git a/src/Squidex/app/features/schemas/pages/schema/types/string-validation.component.html b/src/Squidex/app/features/schemas/pages/schema/types/string-validation.component.html
index 42ad9da3c..3a9f2e30e 100644
--- a/src/Squidex/app/features/schemas/pages/schema/types/string-validation.component.html
+++ b/src/Squidex/app/features/schemas/pages/schema/types/string-validation.component.html
@@ -45,8 +45,8 @@
(focus)="patternsModal.show()" (blur)="patternsModal.hide()" />
0 && (showPatternSuggestions | async)">
-
-
+
+
Suggestions
@@ -54,7 +54,7 @@
{{pattern.pattern}}
-
+
diff --git a/src/Squidex/app/features/schemas/pages/schemas/schemas-page.component.html b/src/Squidex/app/features/schemas/pages/schemas/schemas-page.component.html
index 9e81f0c2c..7ffc491fd 100644
--- a/src/Squidex/app/features/schemas/pages/schemas/schemas-page.component.html
+++ b/src/Squidex/app/features/schemas/pages/schemas/schemas-page.component.html
@@ -38,10 +38,10 @@
-
+
-
+
\ No newline at end of file
diff --git a/src/Squidex/app/features/settings/pages/clients/client.component.html b/src/Squidex/app/features/settings/pages/clients/client.component.html
index 34e338fc6..66a1ee7c0 100644
--- a/src/Squidex/app/features/settings/pages/clients/client.component.html
+++ b/src/Squidex/app/features/settings/pages/clients/client.component.html
@@ -70,7 +70,7 @@
-
+
Connect
@@ -138,4 +138,4 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/Squidex/app/framework/angular/forms/autocomplete.component.html b/src/Squidex/app/framework/angular/forms/autocomplete.component.html
index af0359ff0..f83b6014c 100644
--- a/src/Squidex/app/framework/angular/forms/autocomplete.component.html
+++ b/src/Squidex/app/framework/angular/forms/autocomplete.component.html
@@ -5,8 +5,8 @@
autocorrect="off"
autocapitalize="off">
- 0" [target]="input" position="bottom-left">
-
+ 0" position="bottom-left">
+
-
+
\ No newline at end of file
diff --git a/src/Squidex/app/framework/angular/forms/color-picker.component.html b/src/Squidex/app/framework/angular/forms/color-picker.component.html
index b2bde8331..abf2e76d2 100644
--- a/src/Squidex/app/framework/angular/forms/color-picker.component.html
+++ b/src/Squidex/app/framework/angular/forms/color-picker.component.html
@@ -14,8 +14,8 @@
-
-
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/Squidex/app/framework/angular/forms/dropdown.component.html b/src/Squidex/app/framework/angular/forms/dropdown.component.html
index ba59796c3..72ba5a1d4 100644
--- a/src/Squidex/app/framework/angular/forms/dropdown.component.html
+++ b/src/Squidex/app/framework/angular/forms/dropdown.component.html
@@ -15,14 +15,14 @@
-
-
+
+
{{item}}
-
+
\ No newline at end of file
diff --git a/src/Squidex/app/framework/angular/forms/tag-editor.component.html b/src/Squidex/app/framework/angular/forms/tag-editor.component.html
index 5d0350a5a..41566bc53 100644
--- a/src/Squidex/app/framework/angular/forms/tag-editor.component.html
+++ b/src/Squidex/app/framework/angular/forms/tag-editor.component.html
@@ -22,8 +22,8 @@
spellcheck="false">
- 0" [target]="form">
-
+ 0">
+
{{item}}
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/Squidex/app/framework/angular/modals/dialog-renderer.component.html b/src/Squidex/app/framework/angular/modals/dialog-renderer.component.html
index 31d6888b4..c25ea063f 100644
--- a/src/Squidex/app/framework/angular/modals/dialog-renderer.component.html
+++ b/src/Squidex/app/framework/angular/modals/dialog-renderer.component.html
@@ -1,7 +1,7 @@
-
+
{{snapshot.dialogRequest?.title}}
@@ -16,7 +16,7 @@
Yes
-
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/Squidex/app/framework/declarations.ts b/src/Squidex/app/framework/declarations.ts
index 01d533a13..689aeaf68 100644
--- a/src/Squidex/app/framework/declarations.ts
+++ b/src/Squidex/app/framework/declarations.ts
@@ -36,8 +36,9 @@ export * from './angular/http/loading.interceptor';
export * from './angular/http/http-extensions';
export * from './angular/modals/dialog-renderer.component';
-export * from './angular/modals/modal.component';
export * from './angular/modals/modal-dialog.component';
+export * from './angular/modals/modal-placement.directive';
+export * from './angular/modals/modal.directive';
export * from './angular/modals/onboarding-tooltip.component';
export * from './angular/modals/root-view.component';
export * from './angular/modals/tooltip.directive';
diff --git a/src/Squidex/app/framework/module.ts b/src/Squidex/app/framework/module.ts
index b2264893a..eb5937a90 100644
--- a/src/Squidex/app/framework/module.ts
+++ b/src/Squidex/app/framework/module.ts
@@ -58,8 +58,9 @@ import {
LoadingService,
LocalStoreService,
MessageBus,
- ModalComponent,
ModalDialogComponent,
+ ModalDirective,
+ ModalPlacementDirective,
MoneyPipe,
MonthPipe,
OnboardingService,
@@ -135,8 +136,9 @@ import {
KeysPipe,
KNumberPipe,
LightenPipe,
- ModalComponent,
ModalDialogComponent,
+ ModalDirective,
+ ModalPlacementDirective,
MoneyPipe,
MonthPipe,
OnboardingTooltipComponent,
@@ -202,8 +204,9 @@ import {
KeysPipe,
KNumberPipe,
LightenPipe,
- ModalComponent,
+ ModalDirective,
ModalDialogComponent,
+ ModalPlacementDirective,
MoneyPipe,
MonthPipe,
OnboardingTooltipComponent,
diff --git a/src/Squidex/app/shared/components/asset.component.html b/src/Squidex/app/shared/components/asset.component.html
index c70b74092..bd125c193 100644
--- a/src/Squidex/app/shared/components/asset.component.html
+++ b/src/Squidex/app/shared/components/asset.component.html
@@ -137,12 +137,12 @@
-
+
-
+
\ No newline at end of file
diff --git a/src/Squidex/app/shared/components/language-selector.component.html b/src/Squidex/app/shared/components/language-selector.component.html
index 5c9fd366c..06a619277 100644
--- a/src/Squidex/app/shared/components/language-selector.component.html
+++ b/src/Squidex/app/shared/components/language-selector.component.html
@@ -9,11 +9,11 @@
{{selectedLanguage.iso2Code}}
-
-
+
+
{{language.iso2Code}} ({{language.englishName}})
-
+
\ No newline at end of file
diff --git a/src/Squidex/app/shared/components/markdown-editor.component.html b/src/Squidex/app/shared/components/markdown-editor.component.html
index d78a78f94..f0947d526 100644
--- a/src/Squidex/app/shared/components/markdown-editor.component.html
+++ b/src/Squidex/app/shared/components/markdown-editor.component.html
@@ -4,8 +4,8 @@
-
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/Squidex/app/shared/components/rich-editor.component.html b/src/Squidex/app/shared/components/rich-editor.component.html
index 4be2031bf..9a6ea240a 100644
--- a/src/Squidex/app/shared/components/rich-editor.component.html
+++ b/src/Squidex/app/shared/components/rich-editor.component.html
@@ -2,8 +2,8 @@
Loading editor...
-
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/Squidex/app/shared/components/search-form.component.html b/src/Squidex/app/shared/components/search-form.component.html
index 20430ead9..3033c4bfa 100644
--- a/src/Squidex/app/shared/components/search-form.component.html
+++ b/src/Squidex/app/shared/components/search-form.component.html
@@ -37,8 +37,8 @@
Search for content using full text search over all fields and languages!
-
-
-
+
@@ -55,8 +55,8 @@
-
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/Squidex/app/shell/pages/internal/profile-menu.component.html b/src/Squidex/app/shell/pages/internal/profile-menu.component.html
index a1b5bed47..8cf8f507f 100644
--- a/src/Squidex/app/shell/pages/internal/profile-menu.component.html
+++ b/src/Squidex/app/shell/pages/internal/profile-menu.component.html
@@ -8,7 +8,7 @@
-
+