ontimize-web-ngx 15.3.0 → 15.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/input/radio/o-radio.component.mjs +34 -5
- package/esm2020/lib/components/table/o-table.component.mjs +2 -2
- package/esm2020/lib/layouts/form-layout/tabgroup/o-form-layout-tabgroup.component.mjs +17 -34
- package/esm2020/lib/services/state/o-table-component-state.service.mjs +13 -5
- package/fesm2015/ontimize-web-ngx.mjs +59 -40
- package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
- package/fesm2020/ontimize-web-ngx.mjs +58 -40
- package/fesm2020/ontimize-web-ngx.mjs.map +1 -1
- package/lib/components/input/radio/o-radio.component.d.ts +10 -3
- package/lib/layouts/form-layout/tabgroup/o-form-layout-tabgroup.component.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, EventEmitter, Directive, Host, Self, Optional, Input, HostListener, forwardRef, Output, Injectable, Injector, Component, ContentChildren, ChangeDetectorRef, Pipe, NgModule, ViewChild, ElementRef, ViewEncapsulation, ViewContainerRef, Inject, NgZone, HostBinding, ViewChildren, ChangeDetectionStrategy, inject, CUSTOM_ELEMENTS_SCHEMA, TemplateRef, SkipSelf, isDevMode, ContentChild, Renderer2, APP_INITIALIZER } from '@angular/core';
|
|
3
3
|
import moment from 'moment';
|
|
4
|
-
import { isObservable, from, of, Subscription, Subject, Observable, timer, combineLatest, BehaviorSubject, ReplaySubject, merge, fromEvent, map as map$1 } from 'rxjs';
|
|
4
|
+
import { isObservable, from, of, Subscription, Subject, Observable, timer, combineLatest, BehaviorSubject, ReplaySubject, concatMap, delay, merge, fromEvent, map as map$1 } from 'rxjs';
|
|
5
5
|
export { Observable, Subject } from 'rxjs';
|
|
6
6
|
import * as i1$7 from '@angular/common/http';
|
|
7
7
|
import { HttpClient, HttpHeaders, HttpRequest, HttpEventType, HttpErrorResponse, HttpClientModule } from '@angular/common/http';
|
|
@@ -74,7 +74,7 @@ import { MatPaginatorModule, MatPaginator, MatPaginatorIntl } from '@angular/mat
|
|
|
74
74
|
import * as i5$3 from '@angular/material/progress-spinner';
|
|
75
75
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
76
76
|
import * as i7$4 from '@angular/material/radio';
|
|
77
|
-
import { MatRadioModule } from '@angular/material/radio';
|
|
77
|
+
import { MatRadioModule, MatRadioGroup } from '@angular/material/radio';
|
|
78
78
|
import * as i9$1 from '@angular/material/select';
|
|
79
79
|
import { MatSelectModule, MatSelect } from '@angular/material/select';
|
|
80
80
|
import * as i6$4 from '@angular/material/sidenav';
|
|
@@ -13091,9 +13091,17 @@ class OTableComponentStateService extends AbstractComponentStateService {
|
|
|
13091
13091
|
return result;
|
|
13092
13092
|
}
|
|
13093
13093
|
getPageState() {
|
|
13094
|
-
const result = {
|
|
13095
|
-
|
|
13096
|
-
|
|
13094
|
+
const result = {};
|
|
13095
|
+
if (this.component.matpaginator) {
|
|
13096
|
+
result['query-rows'] = this.component.matpaginator.pageSize;
|
|
13097
|
+
}
|
|
13098
|
+
else if (this.component.state.queryRows) {
|
|
13099
|
+
result['query-rows'] = this.component.state.queryRows;
|
|
13100
|
+
}
|
|
13101
|
+
else {
|
|
13102
|
+
result['query-rows'] = this.component.originalQueryRows;
|
|
13103
|
+
}
|
|
13104
|
+
;
|
|
13097
13105
|
if (this.component.currentPage > 0 && this.component.storePaginationState) {
|
|
13098
13106
|
result.currentPage = this.component.currentPage;
|
|
13099
13107
|
}
|
|
@@ -13141,8 +13149,9 @@ class OTableComponentStateService extends AbstractComponentStateService {
|
|
|
13141
13149
|
};
|
|
13142
13150
|
}
|
|
13143
13151
|
getSortState() {
|
|
13152
|
+
var _a;
|
|
13144
13153
|
const sortColumns = [];
|
|
13145
|
-
this.component.sort.getSortColumns().forEach(sortData => {
|
|
13154
|
+
(_a = this.component.sort) === null || _a === void 0 ? void 0 : _a.getSortColumns().forEach(sortData => {
|
|
13146
13155
|
sortColumns.push(sortData.id + Codes.COLUMNS_ALIAS_SEPARATOR + sortData.direction);
|
|
13147
13156
|
});
|
|
13148
13157
|
return {
|
|
@@ -15228,6 +15237,7 @@ class OFormLayoutTabGroupComponent {
|
|
|
15228
15237
|
this.tabsModificationsCache = [];
|
|
15229
15238
|
this.dialogService = injector.get(DialogService);
|
|
15230
15239
|
this.router = this.injector.get(Router);
|
|
15240
|
+
this.actRoute = this.injector.get(ActivatedRoute);
|
|
15231
15241
|
}
|
|
15232
15242
|
get state() {
|
|
15233
15243
|
return this.formLayoutManager.state;
|
|
@@ -15464,38 +15474,20 @@ class OFormLayoutTabGroupComponent {
|
|
|
15464
15474
|
this.state.tabsData = this.state.tabsData.filter(tabData => !tabData.insertionMode);
|
|
15465
15475
|
if (this.state.tabsData.length >= 1 && (this.state.tabsData[0].url || '').length > 0) {
|
|
15466
15476
|
this.showLoading.next(true);
|
|
15467
|
-
const
|
|
15468
|
-
|
|
15469
|
-
|
|
15470
|
-
|
|
15471
|
-
|
|
15472
|
-
|
|
15473
|
-
|
|
15474
|
-
|
|
15475
|
-
|
|
15476
|
-
|
|
15477
|
-
|
|
15478
|
-
|
|
15479
|
-
else {
|
|
15480
|
-
this.showLoading.next(false);
|
|
15481
|
-
}
|
|
15482
|
-
});
|
|
15483
|
-
}
|
|
15484
|
-
}
|
|
15485
|
-
createTabsFromState() {
|
|
15486
|
-
const tabComponent = this.data[0].component;
|
|
15487
|
-
const stateTabsData = this.state.tabsData.slice(1);
|
|
15488
|
-
if (stateTabsData.length > 0) {
|
|
15489
|
-
stateTabsData.forEach((tabData) => {
|
|
15490
|
-
setTimeout(() => {
|
|
15491
|
-
const newDetailData = this.createDetailComponent(tabComponent, tabData);
|
|
15492
|
-
this.data.push(newDetailData);
|
|
15493
|
-
}, 0);
|
|
15477
|
+
const zone = this.injector.get(NgZone);
|
|
15478
|
+
from(this.state.tabsData).pipe(concatMap(tab => of(tab).pipe(delay(100)))).subscribe((tab) => {
|
|
15479
|
+
const extras = {};
|
|
15480
|
+
extras['relativeTo'] = this.actRoute;
|
|
15481
|
+
extras[Codes.QUERY_PARAMS] = tab.queryParams;
|
|
15482
|
+
extras[Codes.QUERY_PARAMS][Codes.INSERTION_MODE] = tab.insertionMode;
|
|
15483
|
+
if (this.formLayoutManager) {
|
|
15484
|
+
this.formLayoutManager.setAsActiveFormLayoutManager();
|
|
15485
|
+
}
|
|
15486
|
+
zone.run(() => this.router.navigate([tab.url], extras)
|
|
15487
|
+
.then(() => this.showLoading.next(false))
|
|
15488
|
+
.catch(() => this.showLoading.next(true)));
|
|
15494
15489
|
});
|
|
15495
15490
|
}
|
|
15496
|
-
else {
|
|
15497
|
-
this.showLoading.next(false);
|
|
15498
|
-
}
|
|
15499
15491
|
}
|
|
15500
15492
|
createDetailComponent(component, paramsObj) {
|
|
15501
15493
|
const newDetailComp = {
|
|
@@ -26030,12 +26022,30 @@ class ORadioComponent extends OFormServiceComponent {
|
|
|
26030
26022
|
this.layout = 'column';
|
|
26031
26023
|
this.labelPosition = 'after';
|
|
26032
26024
|
this.labelGap = '8px';
|
|
26025
|
+
try {
|
|
26026
|
+
this.formLayoutManager = this.injector.get(OFormLayoutManagerComponent);
|
|
26027
|
+
}
|
|
26028
|
+
catch (e) {
|
|
26029
|
+
}
|
|
26033
26030
|
}
|
|
26034
26031
|
ngAfterViewInit() {
|
|
26035
26032
|
super.ngAfterViewInit();
|
|
26036
26033
|
if (this.queryOnInit) {
|
|
26037
26034
|
this.queryData();
|
|
26038
26035
|
}
|
|
26036
|
+
this.updateFormLayoutManagerState();
|
|
26037
|
+
}
|
|
26038
|
+
updateFormLayoutManagerState() {
|
|
26039
|
+
if (this.formLayoutManager && this.formLayoutManager.storeState && this.formLayoutManager.isTabMode() && this.formLayoutManager.oTabGroup) {
|
|
26040
|
+
if (!Util.isDefined(this.formLayoutManagerTabIndex)) {
|
|
26041
|
+
this.formLayoutManagerTabIndex = this.formLayoutManager.oTabGroup.data.length;
|
|
26042
|
+
}
|
|
26043
|
+
this.tabsSubscriptions = this.formLayoutManager.onSelectedTabChange.subscribe((arg) => {
|
|
26044
|
+
if (arg.index === this.formLayoutManagerTabIndex) {
|
|
26045
|
+
this.mrg.value = this.getValue();
|
|
26046
|
+
}
|
|
26047
|
+
});
|
|
26048
|
+
}
|
|
26039
26049
|
}
|
|
26040
26050
|
onMatRadioGroupChange(e) {
|
|
26041
26051
|
const newValue = e.value;
|
|
@@ -26064,18 +26074,24 @@ class ORadioComponent extends OFormServiceComponent {
|
|
|
26064
26074
|
}
|
|
26065
26075
|
return '';
|
|
26066
26076
|
}
|
|
26077
|
+
ngOnDestroy() {
|
|
26078
|
+
super.destroy();
|
|
26079
|
+
if (this.tabsSubscriptions) {
|
|
26080
|
+
this.tabsSubscriptions.unsubscribe();
|
|
26081
|
+
}
|
|
26082
|
+
}
|
|
26067
26083
|
}
|
|
26068
26084
|
ORadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ORadioComponent, deps: [{ token: forwardRef(() => OFormComponent), optional: true }, { token: i0.ElementRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
26069
26085
|
ORadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ORadioComponent, selector: "o-radio", inputs: { layout: "layout", labelPosition: ["label-position", "labelPosition"], labelGap: ["label-gap", "labelGap"] }, host: { properties: { "class.o-radio": "true" } }, providers: [
|
|
26070
26086
|
OntimizeServiceProvider
|
|
26071
|
-
], usesInheritance: true, ngImport: i0, template: "<div [formGroup]=\"getFormGroup()\" [matTooltip]=\"tooltip\" [matTooltipClass]=\"tooltipClass\"\n [matTooltipPosition]=\"tooltipPosition\" [matTooltipShowDelay]=\"tooltipShowDelay\"\n [matTooltipHideDelay]=\"tooltipHideDelay\" class=\"relative\" [oContextMenu]=\"oContextMenu\">\n <!-- mat-form-field and hidden input are used only for displaying component label and errors as mat-radio is not supported inside form-field -->\n <!-- https://github.com/angular/material2/issues/7891 -->\n <mat-form-field [appearance]=\"appearance\" [hideRequiredMarker]=\"hideRequiredMarker\"\n [class.read-only]=\"isReadOnly\" [class.custom-width]=\"hasCustomWidth\" [class.o-radio-from-field-row]=\"layout==='row'\"\n floatLabel=\"always\" class=\"mat-form-field--no-underline\" fxFill [subscriptSizing]=\"subscriptSizing\">\n <mat-label *ngIf=\"labelVisible\">{{ olabel | oTranslate }}</mat-label>\n <input matInput [id]=\"getAttribute()\" [formControlName]=\"getAttribute()\" [placeholder]=\"placeHolder\"\n [required]=\"isRequired\" style=\"display: none\" />\n <mat-radio-group [id]=\"getAttribute()\" [formControlName]=\"getAttribute()\" [name]=\"getAttribute()\"\n [value]=\"getValue()\" [required]=\"isRequired\" [labelPosition]=\"labelPosition\"\n (change)=\"onMatRadioGroupChange($event)\" [fxLayout]=\"layout\" [fxLayoutGap]=\"labelGap\">\n <mat-radio-button *ngFor=\"let item of dataArray\" [value]=\"getValueColumn(item)\"
|
|
26087
|
+
], viewQueries: [{ propertyName: "mrg", first: true, predicate: MatRadioGroup, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div [formGroup]=\"getFormGroup()\" [matTooltip]=\"tooltip\" [matTooltipClass]=\"tooltipClass\"\n [matTooltipPosition]=\"tooltipPosition\" [matTooltipShowDelay]=\"tooltipShowDelay\"\n [matTooltipHideDelay]=\"tooltipHideDelay\" class=\"relative\" [oContextMenu]=\"oContextMenu\">\n <!-- mat-form-field and hidden input are used only for displaying component label and errors as mat-radio is not supported inside form-field -->\n <!-- https://github.com/angular/material2/issues/7891 -->\n <mat-form-field [appearance]=\"appearance\" [hideRequiredMarker]=\"hideRequiredMarker\"\n [class.read-only]=\"isReadOnly\" [class.custom-width]=\"hasCustomWidth\" [class.o-radio-from-field-row]=\"layout==='row'\"\n floatLabel=\"always\" class=\"mat-form-field--no-underline\" fxFill [subscriptSizing]=\"subscriptSizing\">\n <mat-label *ngIf=\"labelVisible\">{{ olabel | oTranslate }}</mat-label>\n <input matInput [id]=\"getAttribute()\" [formControlName]=\"getAttribute()\" [placeholder]=\"placeHolder\"\n [required]=\"isRequired\" style=\"display: none\" />\n <mat-radio-group [id]=\"getAttribute()\" [formControlName]=\"getAttribute()\" [name]=\"getAttribute()\"\n [value]=\"getValue()\" [required]=\"isRequired\" [labelPosition]=\"labelPosition\"\n (change)=\"onMatRadioGroupChange($event)\" [fxLayout]=\"layout\" [fxLayoutGap]=\"labelGap\">\n <mat-radio-button [id]=\"'o-radio-button-'+i\" *ngFor=\"let item of dataArray;let i = index\" [value]=\"getValueColumn(item)\"\n [disabled]=\"!enabled\">\n {{ getOptionDescriptionValue(item) }}\n </mat-radio-button>\n </mat-radio-group>\n <mat-error *oMatError=\"hasError('required')\">\n {{ 'FORM_VALIDATION.REQUIRED' | oTranslate }}\n </mat-error>\n <mat-error *ngFor=\"let oError of getActiveOErrors()\">\n {{ oError.text | oTranslate }}\n </mat-error>\n </mat-form-field>\n <div *ngIf=\"isReadOnly\" (click)=\"$event.stopPropagation()\" class=\"read-only-blocker\" fxFill></div>\n\n <o-context-menu *ngIf=\"!this.isReadOnly && this.enabled\">\n <o-context-menu-item attr=\"refresh\" label=\"FORM_SERVICE_COMPONENT.REFRESH\" svg-icon=\"ontimize:autorenew\" (execute)=\"refresh()\">\n </o-context-menu-item>\n </o-context-menu>\n</div>\n", styles: [".o-radio .mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple:before{border:none}.o-radio .mat-mdc-form-field:not(.custom-width).o-radio-from-field-row .mat-mdc-form-field-infix{width:auto}.o-radio .read-only-blocker{z-index:2;position:absolute;top:0;left:0;right:0}\n"], dependencies: [{ kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i2.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "directive", type: i3$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: OMatErrorDirective, selector: "[oMatError]", inputs: ["oMatError"] }, { kind: "directive", type: i7$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i8.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i8.MatLabel, selector: "mat-label" }, { kind: "directive", type: i8.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i7$4.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { kind: "component", type: i7$4.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { kind: "directive", type: i9.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: OContextMenuDirective, selector: "[oContextMenu]", inputs: ["oContextMenu", "oContextMenuData"] }, { kind: "component", type: OContextMenuComponent, selector: "o-context-menu", outputs: ["onShow", "onClose"] }, { kind: "component", type: OContextMenuItemComponent, selector: "o-context-menu-item", outputs: ["execute"] }, { kind: "pipe", type: OTranslatePipe, name: "oTranslate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
26072
26088
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ORadioComponent, decorators: [{
|
|
26073
26089
|
type: Component,
|
|
26074
26090
|
args: [{ selector: 'o-radio', inputs: DEFAULT_INPUTS_O_RADIO, providers: [
|
|
26075
26091
|
OntimizeServiceProvider
|
|
26076
26092
|
], encapsulation: ViewEncapsulation.None, host: {
|
|
26077
26093
|
'[class.o-radio]': 'true'
|
|
26078
|
-
}, template: "<div [formGroup]=\"getFormGroup()\" [matTooltip]=\"tooltip\" [matTooltipClass]=\"tooltipClass\"\n [matTooltipPosition]=\"tooltipPosition\" [matTooltipShowDelay]=\"tooltipShowDelay\"\n [matTooltipHideDelay]=\"tooltipHideDelay\" class=\"relative\" [oContextMenu]=\"oContextMenu\">\n <!-- mat-form-field and hidden input are used only for displaying component label and errors as mat-radio is not supported inside form-field -->\n <!-- https://github.com/angular/material2/issues/7891 -->\n <mat-form-field [appearance]=\"appearance\" [hideRequiredMarker]=\"hideRequiredMarker\"\n [class.read-only]=\"isReadOnly\" [class.custom-width]=\"hasCustomWidth\" [class.o-radio-from-field-row]=\"layout==='row'\"\n floatLabel=\"always\" class=\"mat-form-field--no-underline\" fxFill [subscriptSizing]=\"subscriptSizing\">\n <mat-label *ngIf=\"labelVisible\">{{ olabel | oTranslate }}</mat-label>\n <input matInput [id]=\"getAttribute()\" [formControlName]=\"getAttribute()\" [placeholder]=\"placeHolder\"\n [required]=\"isRequired\" style=\"display: none\" />\n <mat-radio-group [id]=\"getAttribute()\" [formControlName]=\"getAttribute()\" [name]=\"getAttribute()\"\n [value]=\"getValue()\" [required]=\"isRequired\" [labelPosition]=\"labelPosition\"\n (change)=\"onMatRadioGroupChange($event)\" [fxLayout]=\"layout\" [fxLayoutGap]=\"labelGap\">\n <mat-radio-button *ngFor=\"let item of dataArray\" [value]=\"getValueColumn(item)\"
|
|
26094
|
+
}, template: "<div [formGroup]=\"getFormGroup()\" [matTooltip]=\"tooltip\" [matTooltipClass]=\"tooltipClass\"\n [matTooltipPosition]=\"tooltipPosition\" [matTooltipShowDelay]=\"tooltipShowDelay\"\n [matTooltipHideDelay]=\"tooltipHideDelay\" class=\"relative\" [oContextMenu]=\"oContextMenu\">\n <!-- mat-form-field and hidden input are used only for displaying component label and errors as mat-radio is not supported inside form-field -->\n <!-- https://github.com/angular/material2/issues/7891 -->\n <mat-form-field [appearance]=\"appearance\" [hideRequiredMarker]=\"hideRequiredMarker\"\n [class.read-only]=\"isReadOnly\" [class.custom-width]=\"hasCustomWidth\" [class.o-radio-from-field-row]=\"layout==='row'\"\n floatLabel=\"always\" class=\"mat-form-field--no-underline\" fxFill [subscriptSizing]=\"subscriptSizing\">\n <mat-label *ngIf=\"labelVisible\">{{ olabel | oTranslate }}</mat-label>\n <input matInput [id]=\"getAttribute()\" [formControlName]=\"getAttribute()\" [placeholder]=\"placeHolder\"\n [required]=\"isRequired\" style=\"display: none\" />\n <mat-radio-group [id]=\"getAttribute()\" [formControlName]=\"getAttribute()\" [name]=\"getAttribute()\"\n [value]=\"getValue()\" [required]=\"isRequired\" [labelPosition]=\"labelPosition\"\n (change)=\"onMatRadioGroupChange($event)\" [fxLayout]=\"layout\" [fxLayoutGap]=\"labelGap\">\n <mat-radio-button [id]=\"'o-radio-button-'+i\" *ngFor=\"let item of dataArray;let i = index\" [value]=\"getValueColumn(item)\"\n [disabled]=\"!enabled\">\n {{ getOptionDescriptionValue(item) }}\n </mat-radio-button>\n </mat-radio-group>\n <mat-error *oMatError=\"hasError('required')\">\n {{ 'FORM_VALIDATION.REQUIRED' | oTranslate }}\n </mat-error>\n <mat-error *ngFor=\"let oError of getActiveOErrors()\">\n {{ oError.text | oTranslate }}\n </mat-error>\n </mat-form-field>\n <div *ngIf=\"isReadOnly\" (click)=\"$event.stopPropagation()\" class=\"read-only-blocker\" fxFill></div>\n\n <o-context-menu *ngIf=\"!this.isReadOnly && this.enabled\">\n <o-context-menu-item attr=\"refresh\" label=\"FORM_SERVICE_COMPONENT.REFRESH\" svg-icon=\"ontimize:autorenew\" (execute)=\"refresh()\">\n </o-context-menu-item>\n </o-context-menu>\n</div>\n", styles: [".o-radio .mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple:before{border:none}.o-radio .mat-mdc-form-field:not(.custom-width).o-radio-from-field-row .mat-mdc-form-field-infix{width:auto}.o-radio .read-only-blocker{z-index:2;position:absolute;top:0;left:0;right:0}\n"] }]
|
|
26079
26095
|
}], ctorParameters: function () {
|
|
26080
26096
|
return [{ type: OFormComponent, decorators: [{
|
|
26081
26097
|
type: Optional
|
|
@@ -26083,7 +26099,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
26083
26099
|
type: Inject,
|
|
26084
26100
|
args: [forwardRef(() => OFormComponent)]
|
|
26085
26101
|
}] }, { type: i0.ElementRef }, { type: i0.Injector }];
|
|
26086
|
-
}
|
|
26102
|
+
}, propDecorators: { mrg: [{
|
|
26103
|
+
type: ViewChild,
|
|
26104
|
+
args: [MatRadioGroup]
|
|
26105
|
+
}] } });
|
|
26087
26106
|
|
|
26088
26107
|
class ORadioModule {
|
|
26089
26108
|
}
|
|
@@ -32496,7 +32515,7 @@ class OTableComponent extends AbstractOServiceComponent {
|
|
|
32496
32515
|
}
|
|
32497
32516
|
;
|
|
32498
32517
|
if (Util.isDefined(oTableGlobalConfig.showChartsOnDemandOption)) {
|
|
32499
|
-
this.
|
|
32518
|
+
this.showChartsOnDemandOption = oTableGlobalConfig.showChartsOnDemandOption;
|
|
32500
32519
|
}
|
|
32501
32520
|
;
|
|
32502
32521
|
if (Util.isDefined(oTableGlobalConfig.showReportOnDemandOption)) {
|