Browse Source

Merge branch 'develop/3.4' into fix_bug_lwl2m_tests

pull/6919/head
nickAS21 4 years ago
parent
commit
e0c6d977d8
  1. 18
      ui-ngx/src/app/modules/home/components/widget/legend-config.component.html
  2. 4
      ui-ngx/src/app/modules/home/components/widget/lib/maps/common-maps-utils.ts

18
ui-ngx/src/app/modules/home/components/widget/legend-config.component.html

@ -37,23 +37,27 @@
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
</div> </div>
<div fxLayout.xs="column" fxLayoutAlign.xs="center" fxLayout="row wrap" fxLayoutAlign="space-between center" fxLayoutGap="8px"> <div fxFlex fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="8px">
<mat-checkbox formControlName="showMin" fxFlex="48"> <mat-checkbox formControlName="showMin" fxFlex>
{{ 'legend.show-min' | translate }} {{ 'legend.show-min' | translate }}
</mat-checkbox> </mat-checkbox>
<mat-checkbox formControlName="showMax" fxFlex="48"> <mat-checkbox formControlName="showMax" fxFlex>
{{ 'legend.show-max' | translate }} {{ 'legend.show-max' | translate }}
</mat-checkbox> </mat-checkbox>
<mat-checkbox formControlName="showAvg" fxFlex="48"> </div>
<div fxFlex fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="8px">
<mat-checkbox formControlName="showAvg" fxFlex>
{{ 'legend.show-avg' | translate }} {{ 'legend.show-avg' | translate }}
</mat-checkbox> </mat-checkbox>
<mat-checkbox formControlName="showTotal" fxFlex="48"> <mat-checkbox formControlName="showTotal" fxFlex>
{{ 'legend.show-total' | translate }} {{ 'legend.show-total' | translate }}
</mat-checkbox> </mat-checkbox>
<mat-checkbox formControlName="showLatest" fxFlex="48"> </div>
<div fxFlex fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="8px">
<mat-checkbox formControlName="showLatest" fxFlex>
{{ 'legend.show-latest' | translate }} {{ 'legend.show-latest' | translate }}
</mat-checkbox> </mat-checkbox>
<mat-checkbox formControlName="sortDataKeys" fxFlex="48"> <mat-checkbox formControlName="sortDataKeys" fxFlex>
{{ 'legend.sort-legend' | translate }} {{ 'legend.sort-legend' | translate }}
</mat-checkbox> </mat-checkbox>
</div> </div>

4
ui-ngx/src/app/modules/home/components/widget/lib/maps/common-maps-utils.ts

@ -116,11 +116,11 @@ const linkActionRegex = /<link-act name=['"]([^['"]*)['"]>([^<]*)<\/link-act>/g;
const buttonActionRegex = /<button-act name=['"]([^['"]*)['"]>([^<]*)<\/button-act>/g; const buttonActionRegex = /<button-act name=['"]([^['"]*)['"]>([^<]*)<\/button-act>/g;
function createLinkElement(actionName: string, actionText: string): string { function createLinkElement(actionName: string, actionText: string): string {
return `<a href="javascript:void(0);" class="tb-custom-action" data-action-name=${actionName}>${actionText}</a>`; return `<a href="javascript:void(0);" class="tb-custom-action" data-action-name="${actionName}">${actionText}</a>`;
} }
function createButtonElement(actionName: string, actionText: string) { function createButtonElement(actionName: string, actionText: string) {
return `<button mat-button class="tb-custom-action" data-action-name=${actionName}>${actionText}</button>`; return `<button mat-button class="tb-custom-action" data-action-name="${actionName}">${actionText}</button>`;
} }
function parseTemplate(template: string, data: FormattedData, function parseTemplate(template: string, data: FormattedData,

Loading…
Cancel
Save