|
@@ -1,4 +1,4 @@
|
|
|
-<div [hidden]="!isVisible()" class="card mainpanel">
|
|
|
|
|
|
|
+<div [hidden]="!isVisible()" class="card hs-main-panel">
|
|
|
<hs-panel-header name="adjuster" [title]="'CALCULATOR.panelHeader' | translate">
|
|
<hs-panel-header name="adjuster" [title]="'CALCULATOR.panelHeader' | translate">
|
|
|
<extra-buttons>
|
|
<extra-buttons>
|
|
|
<!-- LOADER -->
|
|
<!-- LOADER -->
|
|
@@ -9,7 +9,7 @@
|
|
|
</extra-buttons>
|
|
</extra-buttons>
|
|
|
</hs-panel-header>
|
|
</hs-panel-header>
|
|
|
<div class="card-body">
|
|
<div class="card-body">
|
|
|
- <div class="p-2 center-block">
|
|
|
|
|
|
|
+ <div class="p-4 m-auto">
|
|
|
<!-- FIELD & INDEX SELECTION PART -->
|
|
<!-- FIELD & INDEX SELECTION PART -->
|
|
|
<div *ngIf="!noFieldSelected(); else noField">
|
|
<div *ngIf="!noFieldSelected(); else noField">
|
|
|
<p *ngIf="data.selectedFieldsProperties.length === 1; else moreFields">
|
|
<p *ngIf="data.selectedFieldsProperties.length === 1; else moreFields">
|
|
@@ -27,38 +27,38 @@
|
|
|
<ng-template #noField>
|
|
<ng-template #noField>
|
|
|
<div>
|
|
<div>
|
|
|
<p class="p-1 text-info">{{ 'CALCULATOR.selectField' | translate}}</p>
|
|
<p class="p-1 text-info">{{ 'CALCULATOR.selectField' | translate}}</p>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div>
|
|
|
</ng-template>
|
|
</ng-template>
|
|
|
<p class="p-1 text-warning" *ngIf="!lpisWfsVisible"><i class="icon-warning-sign"></i> {{ 'CALCULATOR.zoomIn' | translate}}</p>
|
|
<p class="p-1 text-warning" *ngIf="!lpisWfsVisible"><i class="icon-warning-sign"></i> {{ 'CALCULATOR.zoomIn' | translate}}</p>
|
|
|
- <div>
|
|
|
|
|
|
|
+ <!--<div *ngIf="noFieldSelected()">
|
|
|
<p class="p-1 text-info">{{ 'CALCULATOR.selectMore' | translate}}</p>
|
|
<p class="p-1 text-info">{{ 'CALCULATOR.selectMore' | translate}}</p>
|
|
|
- </div>
|
|
|
|
|
- <div>
|
|
|
|
|
- {{hsLanguageService.getTranslationIgnoreNonExisting('CALCULATOR', 'selectQuantiles', {quantileCount:
|
|
|
|
|
- calcService.quantileCount})}}: 
|
|
|
|
|
- <input type="range" min="2" max="10" step="1" [(ngModel)]="calcService.quantileCount">
|
|
|
|
|
- </div>
|
|
|
|
|
- <div>
|
|
|
|
|
- {{ 'CALCULATOR.selectBlur' | translate}}: {{calcService.blurValue}} px <span
|
|
|
|
|
- *ngIf="calcService.blurValue === 0">({{ 'CALCULATOR.blurNone' | translate}})</span>
|
|
|
|
|
- <input type="range" min="{{calcService.BLUR_MIN_VALUE}}" max="{{calcService.BLUR_MAX_VALUE}}" step="1"
|
|
|
|
|
- [(ngModel)]="calcService.blurValue">
|
|
|
|
|
- </div>
|
|
|
|
|
- <div>
|
|
|
|
|
|
|
+ </div>-->
|
|
|
|
|
+ <div class="form-group">
|
|
|
{{ 'CALCULATOR.selectIndex' | translate}}: 
|
|
{{ 'CALCULATOR.selectIndex' | translate}}: 
|
|
|
<select class="form-select" [(ngModel)]="data.selectedProduct" (ngModelChange)="resetDate()">
|
|
<select class="form-select" [(ngModel)]="data.selectedProduct" (ngModelChange)="resetDate()">
|
|
|
|
|
+ <option selected disabled [ngValue]="null">{{ 'CALCULATOR.selectIndexHint' | translate}}</option>
|
|
|
<option *ngFor="let product of calcService.AVAILABLE_PRODUCTS" [ngValue]="product">{{product}}</option>
|
|
<option *ngFor="let product of calcService.AVAILABLE_PRODUCTS" [ngValue]="product">{{product}}</option>
|
|
|
</select>
|
|
</select>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="d-flex">
|
|
|
|
|
- <div>
|
|
|
|
|
- <button type="button" class="btn btn-primary btn-lg" (click)="getDates()"
|
|
|
|
|
- [disabled]="noFieldSelected() || noProductSelected()">{{ 'CALCULATOR.getDates' | translate}}</button>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="form-group">
|
|
|
|
|
+ <label>{{ 'CALCULATOR.selectQuantiles' | translate }}: {{calcService.quantileCount}}</label>
|
|
|
|
|
+ <input type="range" min="2" max="10" step="1" [(ngModel)]="calcService.quantileCount" class="form-range">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="form-group">
|
|
|
|
|
+ <label>
|
|
|
|
|
+ {{ 'CALCULATOR.selectBlur' | translate}}: {{calcService.blurValue}} px <span *ngIf="calcService.blurValue === 0">({{ 'CALCULATOR.blurNone' | translate}})</span>
|
|
|
|
|
+ </label>
|
|
|
|
|
+ <input type="range" min="{{calcService.BLUR_MIN_VALUE}}" max="{{calcService.BLUR_MAX_VALUE}}" step="1"
|
|
|
|
|
+ [(ngModel)]="calcService.blurValue" class="form-range">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="form-group d-flex m-auto">
|
|
|
|
|
+ <button type="button" class="btn btn-secondary form-control" (click)="getDates()" [disabled]="noFieldSelected() || noProductSelected()">
|
|
|
|
|
+ {{ 'CALCULATOR.getDates' | translate}}
|
|
|
|
|
+ <div class="spinner-border spinner-sm mx-2" role="status" *ngIf="calcService.datesLoading" aria-hidden="true">
|
|
|
|
|
+ <span class="visually-hidden">{{ 'CALCULATOR.loading' | translate }}...</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </button>
|
|
|
<!-- LOADER -->
|
|
<!-- LOADER -->
|
|
|
- <div class="spinner-border spinner mx-2" role="status" *ngIf="calcService.datesLoading" aria-hidden="true">
|
|
|
|
|
- <span class="visually-hidden">{{ 'CALCULATOR.loading' | translate }}...</span>
|
|
|
|
|
- </div>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
<!-- DATE SELECTION PART -->
|
|
<!-- DATE SELECTION PART -->
|
|
|
<div [hidden]="noDates()">
|
|
<div [hidden]="noDates()">
|
|
@@ -67,11 +67,18 @@
|
|
|
<option *ngFor="let date of calcService.availableDates" [ngValue]="date">{{date}}</option>
|
|
<option *ngFor="let date of calcService.availableDates" [ngValue]="date">{{date}}</option>
|
|
|
</select>
|
|
</select>
|
|
|
<!-- TODO: date-picker instead of select -->
|
|
<!-- TODO: date-picker instead of select -->
|
|
|
|
|
+
|
|
|
|
|
+ <ngb-datepicker #dp [(ngModel)]="calcService.selectedDateCalendar"></ngb-datepicker>
|
|
|
|
|
+ <button class="btn btn-sm btn-outline-primary me-2" (click)="calcService.selectToday()">Select Today</button>
|
|
|
|
|
+
|
|
|
<fc-date-range-slider [values]="calcService.availableDates"></fc-date-range-slider>
|
|
<fc-date-range-slider [values]="calcService.availableDates"></fc-date-range-slider>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="d-flex" *ngIf="!noDates()">
|
|
<div class="d-flex" *ngIf="!noDates()">
|
|
|
- <button type="button" class="btn btn-primary btn-lg" (click)="getZones()" [disabled]="noDateSelected()">{{
|
|
|
|
|
- 'CALCULATOR.getZones' | translate }}</button>
|
|
|
|
|
|
|
+ <button type="button" class="btn btn-primary btn-lg" (click)="getZones()" [disabled]="noDateSelected()">
|
|
|
|
|
+ {{
|
|
|
|
|
+ 'CALCULATOR.getZones' | translate
|
|
|
|
|
+ }}
|
|
|
|
|
+ </button>
|
|
|
<!-- LOADER -->
|
|
<!-- LOADER -->
|
|
|
<div class="spinner-border spinner mx-2" role="status" *ngIf="calcService.zonesLoading" aria-hidden="true">
|
|
<div class="spinner-border spinner mx-2" role="status" *ngIf="calcService.zonesLoading" aria-hidden="true">
|
|
|
<span class="visually-hidden">{{ 'CALCULATOR.loading' | translate }}...</span>
|
|
<span class="visually-hidden">{{ 'CALCULATOR.loading' | translate }}...</span>
|