diff --git a/src/Squidex/app/features/content/pages/content/content-field.component.html b/src/Squidex/app/features/content/pages/content/content-field.component.html index 146e9fa33..aeff0b87e 100644 --- a/src/Squidex/app/features/content/pages/content/content-field.component.html +++ b/src/Squidex/app/features/content/pages/content/content-field.component.html @@ -1,6 +1,6 @@
Disabled diff --git a/src/Squidex/app/features/schemas/pages/schema/forms/field-form-common.component.html b/src/Squidex/app/features/schemas/pages/schema/forms/field-form-common.component.html index f37c0897b..b374e77c5 100644 --- a/src/Squidex/app/features/schemas/pages/schema/forms/field-form-common.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/forms/field-form-common.component.html @@ -1,9 +1,9 @@
- +
- + The name of the field in the API response. @@ -12,12 +12,12 @@
- +
- + Define the display name for the field for documentation and user interfaces. @@ -26,12 +26,12 @@
- +
- + Define some hints for the user and editor for the field for documentation and user interfaces. @@ -42,8 +42,8 @@
- -
diff --git a/src/Squidex/app/features/schemas/pages/schema/forms/field-form-common.component.ts b/src/Squidex/app/features/schemas/pages/schema/forms/field-form-common.component.ts index 2eca22ae0..3598c6d83 100644 --- a/src/Squidex/app/features/schemas/pages/schema/forms/field-form-common.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/forms/field-form-common.component.ts @@ -5,7 +5,7 @@ * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. */ -import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; +import { Component, Input } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { FieldDto } from '@app/shared'; @@ -13,8 +13,7 @@ import { FieldDto } from '@app/shared'; @Component({ selector: 'sqx-field-form-common', styleUrls: ['field-form-common.component.scss'], - templateUrl: 'field-form-common.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + templateUrl: 'field-form-common.component.html' }) export class FieldFormCommonComponent { @Input() diff --git a/src/Squidex/app/features/schemas/pages/schema/forms/field-form-ui.component.html b/src/Squidex/app/features/schemas/pages/schema/forms/field-form-ui.component.html index 0dbc74d01..51058215f 100644 --- a/src/Squidex/app/features/schemas/pages/schema/forms/field-form-ui.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/forms/field-form-ui.component.html @@ -1,29 +1,29 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
\ No newline at end of file diff --git a/src/Squidex/app/features/schemas/pages/schema/forms/field-form-ui.component.ts b/src/Squidex/app/features/schemas/pages/schema/forms/field-form-ui.component.ts index c1d70fc1b..806c84119 100644 --- a/src/Squidex/app/features/schemas/pages/schema/forms/field-form-ui.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/forms/field-form-ui.component.ts @@ -5,7 +5,7 @@ * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. */ -import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; +import { Component, Input } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { FieldDto } from '@app/shared'; @@ -13,8 +13,7 @@ import { FieldDto } from '@app/shared'; @Component({ selector: 'sqx-field-form-ui', styleUrls: ['field-form-ui.component.scss'], - templateUrl: 'field-form-ui.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + templateUrl: 'field-form-ui.component.html' }) export class FieldFormUIComponent { @Input() diff --git a/src/Squidex/app/features/schemas/pages/schema/forms/field-form-validation.component.html b/src/Squidex/app/features/schemas/pages/schema/forms/field-form-validation.component.html index 1dd91c0cc..5678d98e3 100644 --- a/src/Squidex/app/features/schemas/pages/schema/forms/field-form-validation.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/forms/field-form-validation.component.html @@ -1,29 +1,29 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
\ No newline at end of file diff --git a/src/Squidex/app/features/schemas/pages/schema/forms/field-form-validation.component.ts b/src/Squidex/app/features/schemas/pages/schema/forms/field-form-validation.component.ts index 7f72ab83e..9917a677d 100644 --- a/src/Squidex/app/features/schemas/pages/schema/forms/field-form-validation.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/forms/field-form-validation.component.ts @@ -5,7 +5,7 @@ * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. */ -import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; +import { Component, Input } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { @@ -17,8 +17,7 @@ import { @Component({ selector: 'sqx-field-form-validation', styleUrls: ['field-form-validation.component.scss'], - templateUrl: 'field-form-validation.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + templateUrl: 'field-form-validation.component.html' }) export class FieldFormValidationComponent { @Input() diff --git a/src/Squidex/app/features/schemas/pages/schema/schema-page.component.html b/src/Squidex/app/features/schemas/pages/schema/schema-page.component.html index c9186f963..eda9217a0 100644 --- a/src/Squidex/app/features/schemas/pages/schema/schema-page.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/schema-page.component.html @@ -60,7 +60,7 @@
-
+
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 42fc4c753..f3f4fa1ca 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 @@ -128,10 +128,6 @@ export class SchemaPageComponent implements OnDestroy, OnInit { this.schemaExport = result; } - public trackByField(index: number, field: FieldDto) { - return field.fieldId; - } - private back() { this.router.navigate(['../'], { relativeTo: this.route }); } diff --git a/src/Squidex/app/features/schemas/pages/schema/types/assets-ui.component.ts b/src/Squidex/app/features/schemas/pages/schema/types/assets-ui.component.ts index b60830843..730651af6 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/assets-ui.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/types/assets-ui.component.ts @@ -5,21 +5,23 @@ * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. */ -import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; +import { Component, Input } from '@angular/core'; import { FormGroup } from '@angular/forms'; -import { AssetsFieldPropertiesDto } from '@app/shared'; +import { AssetsFieldPropertiesDto, FieldDto } from '@app/shared'; @Component({ selector: 'sqx-assets-ui', styleUrls: ['assets-ui.component.scss'], - templateUrl: 'assets-ui.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + templateUrl: 'assets-ui.component.html' }) export class AssetsUIComponent { @Input() public editForm: FormGroup; + @Input() + public field: FieldDto; + @Input() public properties: AssetsFieldPropertiesDto; } \ No newline at end of file diff --git a/src/Squidex/app/features/schemas/pages/schema/types/assets-validation.component.html b/src/Squidex/app/features/schemas/pages/schema/types/assets-validation.component.html index c9d4e39d5..27fbb2d58 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/assets-validation.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/types/assets-validation.component.html @@ -2,8 +2,8 @@
- -
@@ -40,10 +40,10 @@
- +
- +
diff --git a/src/Squidex/app/features/schemas/pages/schema/types/assets-validation.component.ts b/src/Squidex/app/features/schemas/pages/schema/types/assets-validation.component.ts index e7c8e1829..992ddba3b 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/assets-validation.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/types/assets-validation.component.ts @@ -5,21 +5,23 @@ * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. */ -import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core'; +import { Component, Input, OnInit } from '@angular/core'; import { FormControl, FormGroup } from '@angular/forms'; -import { AssetsFieldPropertiesDto } from '@app/shared'; +import { AssetsFieldPropertiesDto, FieldDto } from '@app/shared'; @Component({ selector: 'sqx-assets-validation', styleUrls: ['assets-validation.component.scss'], - templateUrl: 'assets-validation.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + templateUrl: 'assets-validation.component.html' }) export class AssetsValidationComponent implements OnInit { @Input() public editForm: FormGroup; + @Input() + public field: FieldDto; + @Input() public properties: AssetsFieldPropertiesDto; diff --git a/src/Squidex/app/features/schemas/pages/schema/types/boolean-ui.component.html b/src/Squidex/app/features/schemas/pages/schema/types/boolean-ui.component.html index 7d99dc6ce..51dc1f509 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/boolean-ui.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/types/boolean-ui.component.html @@ -1,9 +1,9 @@
- +
- + Define the placeholder for the input control. @@ -33,8 +33,8 @@
- -
diff --git a/src/Squidex/app/features/schemas/pages/schema/types/boolean-ui.component.ts b/src/Squidex/app/features/schemas/pages/schema/types/boolean-ui.component.ts index a989a0f91..6fa536fdf 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/boolean-ui.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/types/boolean-ui.component.ts @@ -8,7 +8,7 @@ import { Component, Input, OnInit } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; -import { BooleanFieldPropertiesDto } from '@app/shared'; +import { BooleanFieldPropertiesDto, FieldDto } from '@app/shared'; @Component({ selector: 'sqx-boolean-ui', @@ -19,6 +19,9 @@ export class BooleanUIComponent implements OnInit { @Input() public editForm: FormGroup; + @Input() + public field: FieldDto; + @Input() public properties: BooleanFieldPropertiesDto; diff --git a/src/Squidex/app/features/schemas/pages/schema/types/boolean-validation.component.html b/src/Squidex/app/features/schemas/pages/schema/types/boolean-validation.component.html index f90e71d7f..f6999f40c 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/boolean-validation.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/types/boolean-validation.component.html @@ -2,8 +2,8 @@
- -
@@ -13,8 +13,8 @@
- -
diff --git a/src/Squidex/app/features/schemas/pages/schema/types/boolean-validation.component.ts b/src/Squidex/app/features/schemas/pages/schema/types/boolean-validation.component.ts index ac238a85c..983c1a31e 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/boolean-validation.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/types/boolean-validation.component.ts @@ -9,7 +9,7 @@ import { Component, Input, OnInit } from '@angular/core'; import { FormControl, FormGroup } from '@angular/forms'; import { Observable } from 'rxjs'; -import { BooleanFieldPropertiesDto } from '@app/shared'; +import { BooleanFieldPropertiesDto, FieldDto } from '@app/shared'; @Component({ selector: 'sqx-boolean-validation', @@ -20,6 +20,9 @@ export class BooleanValidationComponent implements OnInit { @Input() public editForm: FormGroup; + @Input() + public field: FieldDto; + @Input() public properties: BooleanFieldPropertiesDto; diff --git a/src/Squidex/app/features/schemas/pages/schema/types/date-time-ui.component.html b/src/Squidex/app/features/schemas/pages/schema/types/date-time-ui.component.html index 1f2d583e6..ae3d633e8 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/date-time-ui.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/types/date-time-ui.component.html @@ -1,9 +1,9 @@
- +
- + Define the placeholder for the input control. diff --git a/src/Squidex/app/features/schemas/pages/schema/types/date-time-ui.component.ts b/src/Squidex/app/features/schemas/pages/schema/types/date-time-ui.component.ts index 66e521156..eabd30c6e 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/date-time-ui.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/types/date-time-ui.component.ts @@ -9,7 +9,7 @@ import { Component, Input, OnInit } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; import { Observable } from 'rxjs'; -import { FloatConverter, NumberFieldPropertiesDto } from '@app/shared'; +import { FieldDto, FloatConverter, NumberFieldPropertiesDto } from '@app/shared'; @Component({ selector: 'sqx-date-time-ui', @@ -20,6 +20,9 @@ export class DateTimeUIComponent implements OnInit { @Input() public editForm: FormGroup; + @Input() + public field: FieldDto; + @Input() public properties: NumberFieldPropertiesDto; diff --git a/src/Squidex/app/features/schemas/pages/schema/types/date-time-validation.component.html b/src/Squidex/app/features/schemas/pages/schema/types/date-time-validation.component.html index 84172033f..0f20e7f64 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/date-time-validation.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/types/date-time-validation.component.html @@ -2,8 +2,8 @@
- -
@@ -39,7 +39,7 @@
- +
diff --git a/src/Squidex/app/features/schemas/pages/schema/types/date-time-validation.component.ts b/src/Squidex/app/features/schemas/pages/schema/types/date-time-validation.component.ts index 2605bac91..66413a03c 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/date-time-validation.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/types/date-time-validation.component.ts @@ -9,7 +9,7 @@ import { Component, Input, OnInit } from '@angular/core'; import { FormControl, FormGroup } from '@angular/forms'; import { Observable } from 'rxjs'; -import { DateTimeFieldPropertiesDto, ValidatorsEx } from '@app/shared'; +import { DateTimeFieldPropertiesDto, FieldDto, ValidatorsEx } from '@app/shared'; @Component({ selector: 'sqx-date-time-validation', @@ -20,6 +20,9 @@ export class DateTimeValidationComponent implements OnInit { @Input() public editForm: FormGroup; + @Input() + public field: FieldDto; + @Input() public properties: DateTimeFieldPropertiesDto; diff --git a/src/Squidex/app/features/schemas/pages/schema/types/geolocation-ui.component.ts b/src/Squidex/app/features/schemas/pages/schema/types/geolocation-ui.component.ts index 9bbdb3cdb..d6cc501c0 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/geolocation-ui.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/types/geolocation-ui.component.ts @@ -8,7 +8,7 @@ import { Component, Input, OnInit } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; -import { GeolocationFieldPropertiesDto } from '@app/shared'; +import { FieldDto, GeolocationFieldPropertiesDto } from '@app/shared'; @Component({ selector: 'sqx-geolocation-ui', @@ -19,6 +19,9 @@ export class GeolocationUIComponent implements OnInit { @Input() public editForm: FormGroup; + @Input() + public field: FieldDto; + @Input() public properties: GeolocationFieldPropertiesDto; diff --git a/src/Squidex/app/features/schemas/pages/schema/types/geolocation-validation.component.html b/src/Squidex/app/features/schemas/pages/schema/types/geolocation-validation.component.html index 61ce5303c..dbb2c5130 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/geolocation-validation.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/types/geolocation-validation.component.html @@ -2,8 +2,8 @@
- -
diff --git a/src/Squidex/app/features/schemas/pages/schema/types/geolocation-validation.component.ts b/src/Squidex/app/features/schemas/pages/schema/types/geolocation-validation.component.ts index d2d68f460..4712b26a3 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/geolocation-validation.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/types/geolocation-validation.component.ts @@ -8,7 +8,7 @@ import { Component, Input } from '@angular/core'; import { FormGroup } from '@angular/forms'; -import { GeolocationFieldPropertiesDto } from '@app/shared'; +import { FieldDto, GeolocationFieldPropertiesDto } from '@app/shared'; @Component({ selector: 'sqx-geolocation-validation', @@ -19,6 +19,9 @@ export class GeolocationValidationComponent { @Input() public editForm: FormGroup; + @Input() + public field: FieldDto; + @Input() public properties: GeolocationFieldPropertiesDto; } \ No newline at end of file diff --git a/src/Squidex/app/features/schemas/pages/schema/types/json-ui.component.ts b/src/Squidex/app/features/schemas/pages/schema/types/json-ui.component.ts index 04b9e40f2..ab3619ec4 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/json-ui.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/types/json-ui.component.ts @@ -8,7 +8,7 @@ import { Component, Input } from '@angular/core'; import { FormGroup } from '@angular/forms'; -import { JsonFieldPropertiesDto } from '@app/shared'; +import { FieldDto, JsonFieldPropertiesDto } from '@app/shared'; @Component({ selector: 'sqx-json-ui', @@ -19,6 +19,9 @@ export class JsonUIComponent { @Input() public editForm: FormGroup; + @Input() + public field: FieldDto; + @Input() public properties: JsonFieldPropertiesDto; } \ No newline at end of file diff --git a/src/Squidex/app/features/schemas/pages/schema/types/json-validation.component.html b/src/Squidex/app/features/schemas/pages/schema/types/json-validation.component.html index 3d0b8ff82..7380ff2dd 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/json-validation.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/types/json-validation.component.html @@ -2,8 +2,8 @@
- -
diff --git a/src/Squidex/app/features/schemas/pages/schema/types/json-validation.component.ts b/src/Squidex/app/features/schemas/pages/schema/types/json-validation.component.ts index 4681e79ab..bbca1fd48 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/json-validation.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/types/json-validation.component.ts @@ -8,7 +8,7 @@ import { Component, Input } from '@angular/core'; import { FormGroup } from '@angular/forms'; -import { JsonFieldPropertiesDto } from '@app/shared'; +import { FieldDto, JsonFieldPropertiesDto } from '@app/shared'; @Component({ selector: 'sqx-json-validation', @@ -19,6 +19,9 @@ export class JsonValidationComponent { @Input() public editForm: FormGroup; + @Input() + public field: FieldDto; + @Input() public properties: JsonFieldPropertiesDto; } \ No newline at end of file diff --git a/src/Squidex/app/features/schemas/pages/schema/types/number-ui.component.html b/src/Squidex/app/features/schemas/pages/schema/types/number-ui.component.html index fba63c8d1..98b92f6af 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/number-ui.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/types/number-ui.component.html @@ -1,9 +1,9 @@
- +
- + Define the placeholder for the input control. @@ -54,8 +54,8 @@
- -
diff --git a/src/Squidex/app/features/schemas/pages/schema/types/number-ui.component.ts b/src/Squidex/app/features/schemas/pages/schema/types/number-ui.component.ts index e044f201e..0c34229b1 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/number-ui.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/types/number-ui.component.ts @@ -9,7 +9,7 @@ import { Component, Input, OnDestroy, OnInit } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; import { Observable, Subscription } from 'rxjs'; -import { FloatConverter, NumberFieldPropertiesDto } from '@app/shared'; +import { FieldDto, FloatConverter, NumberFieldPropertiesDto } from '@app/shared'; @Component({ selector: 'sqx-number-ui', @@ -23,6 +23,9 @@ export class NumberUIComponent implements OnDestroy, OnInit { @Input() public editForm: FormGroup; + @Input() + public field: FieldDto; + @Input() public properties: NumberFieldPropertiesDto; diff --git a/src/Squidex/app/features/schemas/pages/schema/types/number-validation.component.html b/src/Squidex/app/features/schemas/pages/schema/types/number-validation.component.html index 195961075..03413658c 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/number-validation.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/types/number-validation.component.html @@ -2,8 +2,8 @@
- -
@@ -24,10 +24,10 @@
- +
- +
\ No newline at end of file diff --git a/src/Squidex/app/features/schemas/pages/schema/types/number-validation.component.ts b/src/Squidex/app/features/schemas/pages/schema/types/number-validation.component.ts index f4bb550ab..513de5737 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/number-validation.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/types/number-validation.component.ts @@ -9,7 +9,7 @@ import { Component, Input, OnInit } from '@angular/core'; import { FormControl, FormGroup } from '@angular/forms'; import { Observable } from 'rxjs'; -import { NumberFieldPropertiesDto } from '@app/shared'; +import { FieldDto, NumberFieldPropertiesDto } from '@app/shared'; @Component({ selector: 'sqx-number-validation', @@ -20,6 +20,9 @@ export class NumberValidationComponent implements OnInit { @Input() public editForm: FormGroup; + @Input() + public field: FieldDto; + @Input() public properties: NumberFieldPropertiesDto; diff --git a/src/Squidex/app/features/schemas/pages/schema/types/references-ui.component.ts b/src/Squidex/app/features/schemas/pages/schema/types/references-ui.component.ts index c908e10f4..e85eac767 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/references-ui.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/types/references-ui.component.ts @@ -5,21 +5,23 @@ * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. */ -import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; +import { Component, Input } from '@angular/core'; import { FormGroup } from '@angular/forms'; -import { ReferencesFieldPropertiesDto } from '@app/shared'; +import { FieldDto, ReferencesFieldPropertiesDto } from '@app/shared'; @Component({ selector: 'sqx-references-ui', styleUrls: ['references-ui.component.scss'], - templateUrl: 'references-ui.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + templateUrl: 'references-ui.component.html' }) export class ReferencesUIComponent { @Input() public editForm: FormGroup; + @Input() + public field: FieldDto; + @Input() public properties: ReferencesFieldPropertiesDto; } \ No newline at end of file diff --git a/src/Squidex/app/features/schemas/pages/schema/types/references-validation.component.html b/src/Squidex/app/features/schemas/pages/schema/types/references-validation.component.html index 0302567ad..81eaf60ad 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/references-validation.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/types/references-validation.component.html @@ -1,9 +1,9 @@
- +
-
@@ -13,8 +13,8 @@
- -
diff --git a/src/Squidex/app/features/schemas/pages/schema/types/references-validation.component.ts b/src/Squidex/app/features/schemas/pages/schema/types/references-validation.component.ts index 996140219..a7fcc797f 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/references-validation.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/types/references-validation.component.ts @@ -5,21 +5,23 @@ * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. */ -import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core'; +import { Component, Input, OnInit } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; -import { ReferencesFieldPropertiesDto, SchemasState } from '@app/shared'; +import { FieldDto, ReferencesFieldPropertiesDto, SchemasState } from '@app/shared'; @Component({ selector: 'sqx-references-validation', styleUrls: ['references-validation.component.scss'], - templateUrl: 'references-validation.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + templateUrl: 'references-validation.component.html' }) export class ReferencesValidationComponent implements OnInit { @Input() public editForm: FormGroup; + @Input() + public field: FieldDto; + @Input() public properties: ReferencesFieldPropertiesDto; diff --git a/src/Squidex/app/features/schemas/pages/schema/types/string-ui.component.html b/src/Squidex/app/features/schemas/pages/schema/types/string-ui.component.html index d64264d0d..1b0dca040 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/string-ui.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/types/string-ui.component.html @@ -1,9 +1,9 @@
- +
- + Define the placeholder for the input control. @@ -75,8 +75,8 @@
- -
diff --git a/src/Squidex/app/features/schemas/pages/schema/types/string-ui.component.ts b/src/Squidex/app/features/schemas/pages/schema/types/string-ui.component.ts index 0a01db825..7907eff8c 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/string-ui.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/types/string-ui.component.ts @@ -9,7 +9,7 @@ import { Component, Input, OnDestroy, OnInit } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; import { Observable, Subscription } from 'rxjs'; -import { StringFieldPropertiesDto } from '@app/shared'; +import { FieldDto, StringFieldPropertiesDto } from '@app/shared'; @Component({ selector: 'sqx-string-ui', @@ -23,6 +23,9 @@ export class StringUIComponent implements OnDestroy, OnInit { @Input() public editForm: FormGroup; + @Input() + public field: FieldDto; + @Input() public properties: StringFieldPropertiesDto; 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 a093e3950..8a04d738d 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 @@ -2,8 +2,8 @@
- -
@@ -24,10 +24,10 @@
- +
-
- +
- +
- +
- +
\ No newline at end of file diff --git a/src/Squidex/app/features/schemas/pages/schema/types/string-validation.component.ts b/src/Squidex/app/features/schemas/pages/schema/types/string-validation.component.ts index fafe6fdbd..08e6f5cd1 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/string-validation.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/types/string-validation.component.ts @@ -11,6 +11,7 @@ import { Observable, Subscription } from 'rxjs'; import { AppPatternDto, + FieldDto, ImmutableArray, ModalView, StringFieldPropertiesDto @@ -27,6 +28,9 @@ export class StringValidationComponent implements OnDestroy, OnInit { @Input() public editForm: FormGroup; + @Input() + public field: FieldDto; + @Input() public properties: StringFieldPropertiesDto; diff --git a/src/Squidex/app/features/schemas/pages/schema/types/tags-ui.component.ts b/src/Squidex/app/features/schemas/pages/schema/types/tags-ui.component.ts index 43319dc9c..68dadab87 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/tags-ui.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/types/tags-ui.component.ts @@ -5,21 +5,23 @@ * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. */ -import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; +import { Component, Input } from '@angular/core'; import { FormGroup } from '@angular/forms'; -import { AssetsFieldPropertiesDto } from '@app/shared'; +import { AssetsFieldPropertiesDto, FieldDto } from '@app/shared'; @Component({ selector: 'sqx-tags-ui', styleUrls: ['tags-ui.component.scss'], - templateUrl: 'tags-ui.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + templateUrl: 'tags-ui.component.html' }) export class TagsUIComponent { @Input() public editForm: FormGroup; + @Input() + public field: FieldDto; + @Input() public properties: AssetsFieldPropertiesDto; } \ No newline at end of file diff --git a/src/Squidex/app/features/schemas/pages/schema/types/tags-validation.component.html b/src/Squidex/app/features/schemas/pages/schema/types/tags-validation.component.html index 9ebcd5f99..85f466695 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/tags-validation.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/types/tags-validation.component.html @@ -2,8 +2,8 @@
- -
diff --git a/src/Squidex/app/features/schemas/pages/schema/types/tags-validation.component.ts b/src/Squidex/app/features/schemas/pages/schema/types/tags-validation.component.ts index 507737fac..89bd67fb7 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/tags-validation.component.ts +++ b/src/Squidex/app/features/schemas/pages/schema/types/tags-validation.component.ts @@ -5,23 +5,25 @@ * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. */ -import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core'; +import { Component, Input, OnInit } from '@angular/core'; import { FormControl, FormGroup } from '@angular/forms'; -import { AssetsFieldPropertiesDto } from '@app/shared'; +import { FieldDto, TagsFieldPropertiesDto } from '@app/shared'; @Component({ selector: 'sqx-tags-validation', styleUrls: ['tags-validation.component.scss'], - templateUrl: 'tags-validation.component.html', - changeDetection: ChangeDetectionStrategy.OnPush + templateUrl: 'tags-validation.component.html' }) export class TagsValidationComponent implements OnInit { @Input() public editForm: FormGroup; @Input() - public properties: AssetsFieldPropertiesDto; + public field: FieldDto; + + @Input() + public properties: TagsFieldPropertiesDto; public ngOnInit() { this.editForm.setControl('maxItems', diff --git a/src/Squidex/app/features/settings/pages/languages/language.component.html b/src/Squidex/app/features/settings/pages/languages/language.component.html index 7366e47af..bcbbf3076 100644 --- a/src/Squidex/app/features/settings/pages/languages/language.component.html +++ b/src/Squidex/app/features/settings/pages/languages/language.component.html @@ -2,7 +2,7 @@
- {{language.iso2Code}} +
{{language.englishName}} @@ -71,8 +71,8 @@
- -
@@ -86,8 +86,8 @@
- -