diff --git a/src/app/components/shared/_dialogs/cloud-configuration/cloud-configuration.component.html b/src/app/components/shared/_dialogs/cloud-configuration/cloud-configuration.component.html index 81cd8140008bcbcdbf584bad7b97bf40d0e2b32e..313bb5d3bf8dd42ee93d3a21d2000fa6f15758a9 100644 --- a/src/app/components/shared/_dialogs/cloud-configuration/cloud-configuration.component.html +++ b/src/app/components/shared/_dialogs/cloud-configuration/cloud-configuration.component.html @@ -128,5 +128,39 @@ <div class="weight-class-button button-row"> <button (click)="toggleCleanupView()" mat-button class="primary">{{'tag-cloud-config.back-btn' | translate}}</button> </div> + <h2>{{'tag-cloud-config.cleanUpView' | translate}}</h2> + <div class="input-row special-settings automatic-spelling" fxLayout="row" fxLayoutGap="5px" fxLayout.xs="column"> + <div class="input-row" fxLayout="row" fxLayoutGap="5px" fxLayout.xs="column"> + <mat-slide-toggle matTooltip="{{'tag-cloud-config.automatic-spelling-tooltip' | translate}}" [checked]="automaticSpelling">{{'tag-cloud-config.automatic-spelling' | translate}}</mat-slide-toggle> + </div> + </div> + <div class="input-row special-settings automatic-spelling" fxLayout="row" fxLayoutGap="5px" fxLayout.xs="column"> + <mat-radio-group matTooltip="{{'tag-cloud-config.notation-tooltip' | translate}}" aria-label="Notation:"> {{'tag-cloud-config.notation' | translate}} + <div><mat-radio-button value="1" [checked]="lowerCase">{{'tag-cloud-config.lowerCase' | translate}}</mat-radio-button> </div> + <div><mat-radio-button value="2" [checked]="capitalization">{{'tag-cloud-config.capitalization' | translate}}</mat-radio-button> </div> + <div><mat-radio-button value="3" [checked]="standard">{{'tag-cloud-config.standard' | translate}}</mat-radio-button> </div> + </mat-radio-group> + </div> + <div class="input-row special-settings alphabetical-sorting" fxLayout="row" fxLayoutGap="5px" fxLayout.xs="column"> + <div class="input-row" fxLayout="row" fxLayoutGap="5px" fxLayout.xs="column"> + <mat-slide-toggle matTooltip="{{'tag-cloud-config.alphabetical-sorting-tooltip' | translate}}" [checked]="alphabeticalSorting">{{'tag-cloud-config.alphabetical-sorting' | translate}}</mat-slide-toggle> + </div> + </div> + <div class="input-row" fxLayout="column" fxLayoutGap="5px"> + <mat-label class="label-text" id=rotation>{{'tag-cloud-config.rotation' | translate}}</mat-label> + <mat-slider + matTooltip="{{'tag-cloud-config.rotation-tooltip' | translate}}" + [value]="rotation" min="0" max="360" step="10" + [(ngModel)]="rotation" [ngModelOptions]="{standalone: true}" (change)="valueChanged()" + [thumbLabel]="true"></mat-slider> + </div> + <div class="input-row" fxLayout="column" fxLayoutGap="5px"> + <mat-form-field fxFlex fxLayout.xs="column"> + <mat-label>{{'tag-cloud-config.highestWeight' | translate}}</mat-label> + <input #highestWeight matTooltip="{{'tag-cloud-config.highestWeight-tooltip' | translate}}" [value]="cloudParameters.highestWeight" matInput type="number" + [(ngModel)]="cloudParameters.highestWeight" [ngModelOptions]="{standalone: true}" (change)="valueChanged()" + min="0" max="150" step="1"/> + </mat-form-field> + </div> </div> </div> diff --git a/src/app/components/shared/_dialogs/cloud-configuration/cloud-configuration.component.scss b/src/app/components/shared/_dialogs/cloud-configuration/cloud-configuration.component.scss index 17086c6ce507c07725309c467c8b9eeae534e757..23310d6e43a648a4b3b8b9dc2fde0580de70d1cd 100644 --- a/src/app/components/shared/_dialogs/cloud-configuration/cloud-configuration.component.scss +++ b/src/app/components/shared/_dialogs/cloud-configuration/cloud-configuration.component.scss @@ -193,3 +193,7 @@ mat-divider { border-bottom: 2px solid var(--primary); padding: 10px 0; } + +#rotation{ + margin-top: 10px; +} \ No newline at end of file diff --git a/src/app/components/shared/_dialogs/cloud-configuration/cloud-configuration.component.ts b/src/app/components/shared/_dialogs/cloud-configuration/cloud-configuration.component.ts index 61c06aef5b5ea6cf7ec1e00c98d0653aa9e1648f..87542cdd275ba330f202875ac56f92632f94d1dc 100644 --- a/src/app/components/shared/_dialogs/cloud-configuration/cloud-configuration.component.ts +++ b/src/app/components/shared/_dialogs/cloud-configuration/cloud-configuration.component.ts @@ -16,6 +16,13 @@ export class CloudConfigurationComponent implements OnInit{ oldCloudParameters: CloudParameters; extendedView: boolean; cleanUpView: boolean; + automaticSpelling: boolean; + lowerCase: boolean; + capitalization: boolean; + standard: boolean; + alphabeticalSorting: boolean; + rotation: number; + highestWeight: number; weightClasses: WeightClass[]=[ {maxTagNumber: 20, tagColor: '#8800ff'}, @@ -51,6 +58,13 @@ export class CloudConfigurationComponent implements OnInit{ this.parseArrayToJsonWeightClasses(); this.extendedView = false; this.cleanUpView = false; + this.automaticSpelling = true; + this.lowerCase = true; + this.capitalization = false; + this.standard = false; + this.alphabeticalSorting = true; + this.rotation = 360; + this.highestWeight = 100; } fontColorChanged(value: string){ diff --git a/src/assets/i18n/creator/de.json b/src/assets/i18n/creator/de.json index 348dfe6fbb8ae6317c92664965dabca116f76229..b218f72dd525bf8c91c806deecc913b5d7c715e0 100644 --- a/src/assets/i18n/creator/de.json +++ b/src/assets/i18n/creator/de.json @@ -369,6 +369,20 @@ "weight-color": "Schriftfarbe", "weight-number": "max. Anzahl Schlüsselwörter", "weight-color-tooltip": "Auswahl der Schriftfarbe", - "weight-number-tooltip": "maximale Anzahl der Schlüsselwörter festlegen" + "weight-number-tooltip": "maximale Anzahl der Schlüsselwörter festlegen", + "automatic-spelling": "Automatische Rechtschreibung", + "notation": "Notation:", + "lowerCase": "Kleinschreibung", + "capitalization": "Großschreibung", + "standard": "Standard", + "alphabetical-sorting": "Alphabetische Sortierung", + "cleanUpView": "Tag-Cleanup Einstellungen", + "rotation": "Drehgrad zufälliger Einträge", + "highestWeight": "Anzahl Tags mit max. Gewichtung", + "automatic-spelling-tooltip": "automatische Überprüfung der Rechtschreibung", + "notation-tooltip": "Einstellung der Schreibweise: klein, groß, standard", + "alphabetical-sorting-tooltip": "Alphabetische Sortierung", + "rotation-tooltip": "Einige Einträge zufällig um x Grad drehen", + "highestWeight-tooltip": "x Tags mit der höchsten Gewichtung anzeigen" } } diff --git a/src/assets/i18n/creator/en.json b/src/assets/i18n/creator/en.json index 5eaee11f33629fea3ad5f4790b6fda2275ea6c20..96ec945e433ccedc2162982b2ee5c5d10a160492 100644 --- a/src/assets/i18n/creator/en.json +++ b/src/assets/i18n/creator/en.json @@ -370,6 +370,20 @@ "weight-color": "Font color", "weight-number": "max. number of keywords", "weight-color-tooltip": "select font-color", - "weight-number-tooltip": "select maximal number of keywords" + "weight-number-tooltip": "select maximal number of keywords", + "automatic-spelling": "Automatic spelling", + "notation": "Notation:", + "lowerCase": "Lower case", + "capitalization": "Capitalization", + "standard": "Standard", + "alphabetical-sorting": "Alphabetical sorting", + "cleanUpView": "Tag-Cleanup Settings", + "rotation": "rotation of random entries", + "highestWeight": "Number of tags with highest weight", + "automatic-spelling-tooltip": "automatic spelling check", + "notation-tooltip": "Notation-Settings: small, large, standard", + "alphabetical-sorting-tooltip": "Alphabetical sorting", + "rotation-tooltip": "rotate some entries randomly by x degrees", + "highestWeight-tooltip": "show x tags with the highest weight" } } diff --git a/src/assets/i18n/participant/de.json b/src/assets/i18n/participant/de.json index f82fa30c7e299e1c96e95d9223eef07e1871b3ae..92d73ae2875b4d4652d4993310c9ddc6c6af93ee 100644 --- a/src/assets/i18n/participant/de.json +++ b/src/assets/i18n/participant/de.json @@ -298,6 +298,20 @@ "weight-color": "Schriftfarbe", "weight-number": "max. Anzahl Schlüsselwörter", "weight-color-tooltip": "Auswahl der Schriftfarbe", - "weight-number-tooltip": "maximale Anzahl der Schlüsselwörter festlegen" + "weight-number-tooltip": "maximale Anzahl der Schlüsselwörter festlegen", + "automatic-spelling": "Automatische Rechtschreibung", + "notation": "Notation:", + "lowerCase": "Kleinschreibung", + "capitalization": "Großschreibung", + "standard": "Standard", + "alphabetical-sorting": "Alphabetische Sortierung", + "cleanUpView": "Tag-Cleanup Einstellungen", + "rotation": "Drehgrad zufälliger Einträge", + "highestWeight": "Anzahl Tags mit max. Gewichtung", + "automatic-spelling-tooltip": "automatische Überprüfung der Rechtschreibung", + "notation-tooltip": "Einstellung der Schreibweise: klein, groß, standard", + "alphabetical-sorting-tooltip": "Alphabetische Sortierung", + "rotation-tooltip": "Einige Einträge zufällig um x Grad drehen", + "highestWeight-tooltip": "x Tags mit der höchsten Gewichtung anzeigen" } } diff --git a/src/assets/i18n/participant/en.json b/src/assets/i18n/participant/en.json index 3383cfd16c303da8b9ce9eea5a9a59d194f82e89..9e72fc406016daeac553397767107b53cca42e65 100644 --- a/src/assets/i18n/participant/en.json +++ b/src/assets/i18n/participant/en.json @@ -303,6 +303,20 @@ "weight-color": "Font color", "weight-number": "max. number of keywords", "weight-color-tooltip": "select font-color", - "wieght-number-tooltip": "select maximal number of keywords" + "wieght-number-tooltip": "select maximal number of keywords", + "automatic-spelling": "Automatic spelling", + "notation": "Notation:", + "lowerCase": "Lower case", + "capitalization": "Capitalization", + "standard": "Standard", + "alphabetical-sorting": "Alphabetical sorting", + "cleanUpView": "Tag-Cleanup Settings", + "rotation": "rotation of random entries", + "highestWeight": "Number of tags with highest weight", + "automatic-spelling-tooltip": "automatic spelling check", + "notation-tooltip": "Notation-Settings: small, large, standard", + "alphabetical-sorting-tooltip": "Alphabetical sorting", + "rotation-tooltip": "rotate some entries randomly by x degrees", + "highestWeight-tooltip": "show x tags with the highest weight" } }