diff --git a/src/app/modeler/i18n-mode/translations/translation-group/model-translation/model-translation.component.scss b/src/app/modeler/i18n-mode/translations/translation-group/model-translation/model-translation.component.scss
index e69de29..c8c3576 100644
--- a/src/app/modeler/i18n-mode/translations/translation-group/model-translation/model-translation.component.scss
+++ b/src/app/modeler/i18n-mode/translations/translation-group/model-translation/model-translation.component.scss
@@ -0,0 +1,3 @@
+.padding-top {
+ padding-top: 8px;
+}
diff --git a/src/app/modeler/i18n-mode/translations/translation-group/role-translation/role-translation.component.html b/src/app/modeler/i18n-mode/translations/translation-group/role-translation/role-translation.component.html
index a5f393d..be15d3b 100644
--- a/src/app/modeler/i18n-mode/translations/translation-group/role-translation/role-translation.component.html
+++ b/src/app/modeler/i18n-mode/translations/translation-group/role-translation/role-translation.component.html
@@ -1,12 +1,21 @@
-
{{role.title.value}} [{{role.id}}]
-
-
0">
-
Events:
-
-
-
+ @defer (on viewport) {
+
+
{{role.title.value}} [{{role.id}}]
+
+
-
-
+
+
+ } @placeholder {
+
+
{{role.title.value}} [{{role.id}}]
+
+
+ }
diff --git a/src/app/modeler/i18n-mode/translations/translation-group/task-translation/task-translation.component.html b/src/app/modeler/i18n-mode/translations/translation-group/task-translation/task-translation.component.html
index 391e80f..6506a5f 100644
--- a/src/app/modeler/i18n-mode/translations/translation-group/task-translation/task-translation.component.html
+++ b/src/app/modeler/i18n-mode/translations/translation-group/task-translation/task-translation.component.html
@@ -1,12 +1,22 @@
-
{{task.label.value}} [{{task.id}}]
-
-
0">
-
Events:
-
-
-
+
+ @defer (on viewport) {
+
+
{{task.label.value}} [{{task.id}}]
+
+
+
-
-
+ } @placeholder {
+
+
{{task.label.value}} [{{task.id}}]
+
+
+ }
diff --git a/src/app/modeler/i18n-mode/translations/translation-group/translation-group.component.html b/src/app/modeler/i18n-mode/translations/translation-group/translation-group.component.html
deleted file mode 100644
index 83ab01e..0000000
--- a/src/app/modeler/i18n-mode/translations/translation-group/translation-group.component.html
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
- {{config.icon}}
- {{config.title}}
-
-
- {{config.disabled() ? config.disabledDescription : config.description}}
-
-
-
-
-
-
-
-
diff --git a/src/app/modeler/i18n-mode/translations/translation-group/translation-group.component.scss b/src/app/modeler/i18n-mode/translations/translation-group/translation-group.component.scss
deleted file mode 100644
index 9cacd21..0000000
--- a/src/app/modeler/i18n-mode/translations/translation-group/translation-group.component.scss
+++ /dev/null
@@ -1,13 +0,0 @@
-.mat-expansion-panel-header-title,
-.mat-expansion-panel-header-description {
- flex-basis: 0;
-}
-
-.mat-expansion-panel-header-description {
- justify-content: space-between;
- align-items: center;
-}
-
-mat-icon {
- margin-right: 16px;
-}
diff --git a/src/app/modeler/i18n-mode/translations/translation-group/translation-group.component.ts b/src/app/modeler/i18n-mode/translations/translation-group/translation-group.component.ts
deleted file mode 100644
index 0609a0a..0000000
--- a/src/app/modeler/i18n-mode/translations/translation-group/translation-group.component.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-import {Component, Input, OnInit} from '@angular/core';
-import {TranslationGroupConfiguration, Type} from './translation-group-configuration';
-import {Locale} from '../../classes/locale';
-import {I18nTranslations} from '@netgrif/petriflow';
-
-@Component({
- selector: 'nab-translation-group',
- templateUrl: './translation-group.component.html',
- styleUrls: ['./translation-group.component.scss']
-})
-export class TranslationGroupComponent {
-
- @Input()
- config: TranslationGroupConfiguration;
- private _translation: I18nTranslations;
-
- constructor() {
- }
-
- get translation(): I18nTranslations {
- return this._translation;
- }
-
- @Input()
- set translation(value: I18nTranslations) {
- this._translation = value;
- }
-
- isModel(): boolean {
- return this.config.type === Type.MODEL;
- }
-
- isTask(): boolean {
- return this.config.type === Type.TASK;
- }
-
- isData(): boolean {
- return this.config.type === Type.DATA;
- }
-
- isRole(): boolean {
- return this.config.type === Type.ROLE;
- }
-}
diff --git a/src/app/modeler/i18n-mode/translations/translations.component.html b/src/app/modeler/i18n-mode/translations/translations.component.html
index 7085fac..7c51aae 100644
--- a/src/app/modeler/i18n-mode/translations/translations.component.html
+++ b/src/app/modeler/i18n-mode/translations/translations.component.html
@@ -7,10 +7,42 @@
-
-
-
-
-
-
+
+
+
+ {{modelMetadataConfig.icon}}
+ {{modelMetadataConfig.title}}
+
+
+
+
+
+
+
+ {{taskMetadataConfig.icon}}
+ {{taskMetadataConfig.title}}
+
+
+
+
+
+
+
+ {{dataMetadataConfig.icon}}
+ {{dataMetadataConfig.title}}
+
+
+
+
+
+
+
+ {{roleMetadataConfig.icon}}
+ {{roleMetadataConfig.title}}
+
+
+
+
+
+
diff --git a/src/app/modeler/i18n-mode/translations/translations.component.scss b/src/app/modeler/i18n-mode/translations/translations.component.scss
index 865b5df..5f24b37 100644
--- a/src/app/modeler/i18n-mode/translations/translations.component.scss
+++ b/src/app/modeler/i18n-mode/translations/translations.component.scss
@@ -1,3 +1,9 @@
.localeSelect {
margin-bottom: 16px;
}
+
+.example-tab-icon {
+ margin-right: 8px;
+}
+
+
diff --git a/src/app/modeler/modeler.module.ts b/src/app/modeler/modeler.module.ts
index b052184..92b186f 100644
--- a/src/app/modeler/modeler.module.ts
+++ b/src/app/modeler/modeler.module.ts
@@ -29,7 +29,6 @@ import {TranslationsComponent} from './i18n-mode/translations/translations.compo
import {ProgressComponent} from './i18n-mode/languages/progress/progress.component';
import {FlagComponent} from './i18n-mode/languages/flag/flag.component';
import {FlagFallbackDirective} from './i18n-mode/languages/flag/flag-fallback.directive';
-import {TranslationGroupComponent} from './i18n-mode/translations/translation-group/translation-group.component';
import {
ModelTranslationComponent
} from './i18n-mode/translations/translation-group/model-translation/model-translation.component';
@@ -67,6 +66,7 @@ import {
FunctionMasterItemComponent
} from './actions-mode/action-master/function-master-item/function-master-item.component';
import {ActionDetailComponent} from './actions-mode/action-detail/action-detail.component';
+import {ScrollingModule} from '@angular/cdk/scrolling';
@NgModule({
declarations: [
@@ -91,7 +91,6 @@ import {ActionDetailComponent} from './actions-mode/action-detail/action-detail.
ProgressComponent,
FlagComponent,
FlagFallbackDirective,
- TranslationGroupComponent,
ModelTranslationComponent,
I18nFieldComponent,
DataTranslationComponent,
@@ -134,6 +133,7 @@ import {ActionDetailComponent} from './actions-mode/action-detail/action-detail.
ResizableModule,
RouterModule,
TaskContentComponentModule,
+ ScrollingModule
]
})
export class ModelerModule {