-
{{ attr.label }}
-
-
-1" translate="value.true">
+ {{ attr.label }}
+
+ -1" translate="value.true">
true
- -1)" translate="value.false">
+ -1)" translate="value.false">
false
@@ -40,12 +47,14 @@
-
{{ property.name }}
-
—
-
+
{{ property.name }}
+
+ —
+
+
\ No newline at end of file
diff --git a/ui/src/app/metadata/configuration/component/configuration-property.component.ts b/ui/src/app/metadata/configuration/component/configuration-property.component.ts
index bcdd45711..001a8235b 100644
--- a/ui/src/app/metadata/configuration/component/configuration-property.component.ts
+++ b/ui/src/app/metadata/configuration/component/configuration-property.component.ts
@@ -3,12 +3,12 @@ import { Property } from '../../domain/model/property';
@Component({
selector: 'configuration-property',
- template: `{{ property | json }}`,
- styleUrls: []
+ template: `{{ property | json }}`
})
export class ConfigurationPropertyComponent {
@Input() property: Property;
+ @Input() columns = 1;
constructor() { }
@@ -19,5 +19,9 @@ export class ConfigurationPropertyComponent {
getItemType(items: Property): string {
return items.widget ? items.widget.id : 'default';
}
+
+ get width(): string {
+ return `${ Math.floor(100 / (this.columns + 1)) }%`;
+ }
}
diff --git a/ui/src/app/metadata/configuration/component/metadata-configuration.component.html b/ui/src/app/metadata/configuration/component/metadata-configuration.component.html
index 4f58d07f1..73979ce40 100644
--- a/ui/src/app/metadata/configuration/component/metadata-configuration.component.html
+++ b/ui/src/app/metadata/configuration/component/metadata-configuration.component.html
@@ -3,10 +3,12 @@
-
+
\ No newline at end of file
diff --git a/ui/src/app/metadata/configuration/component/metadata-configuration.component.ts b/ui/src/app/metadata/configuration/component/metadata-configuration.component.ts
index 9e94bcdbd..ed568ff32 100644
--- a/ui/src/app/metadata/configuration/component/metadata-configuration.component.ts
+++ b/ui/src/app/metadata/configuration/component/metadata-configuration.component.ts
@@ -1,6 +1,8 @@
import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { MetadataConfiguration } from '../model/metadata-configuration';
+import { Property } from '../../domain/model/property';
+import { Observable, of } from 'rxjs';
@Component({
selector: 'metadata-configuration',
@@ -19,4 +21,28 @@ export class MetadataConfigurationComponent {
edit(id: string): void {
this.router.navigate(['../', 'edit', id], { relativeTo: this.activatedRoute.parent });
}
+
+ getItemType(items: Property): string {
+ return items.widget ? items.widget.id : 'default';
+ }
+
+ getKeys(schema): string[] {
+ return Object.keys(schema.properties);
+ }
+
+ get attributeList$(): Observable<{ key: string, label: string }[]> {
+ /*
+ if (this.property.widget && this.property.widget.hasOwnProperty('data')) {
+ return of(this.property.widget.data);
+ }
+ if (this.property.widget && this.property.widget.hasOwnProperty('dataUrl')) {
+ return this.attrService.query(this.property.widget.dataUrl);
+ }
+ */
+ return of([]);
+ }
+
+ get width(): string {
+ return `${ Math.floor(100 / this.configuration.dates.length) }%`;
+ }
}
diff --git a/ui/src/app/metadata/configuration/component/object-property.component.html b/ui/src/app/metadata/configuration/component/object-property.component.html
index b0aa7b967..0c19ac9d0 100644
--- a/ui/src/app/metadata/configuration/component/object-property.component.html
+++ b/ui/src/app/metadata/configuration/component/object-property.component.html
@@ -1,7 +1,7 @@