Skip to content

Commit

Permalink
Update UI types
Browse files Browse the repository at this point in the history
  • Loading branch information
vvlladd28 committed Dec 30, 2024
1 parent b1ec937 commit 4f0a2cb
Show file tree
Hide file tree
Showing 213 changed files with 682 additions and 517 deletions.
2 changes: 2 additions & 0 deletions src/app/core/services/dashboard-utils.service.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export declare class DashboardUtilsService {
getWidgetsArray(dashboard: Dashboard): Array<Widget>;
isEmptyDashboard(dashboard: Dashboard): boolean;
addWidgetToLayout(dashboard: Dashboard, targetState: string, targetLayout: DashboardLayoutId, widget: Widget, originalColumns?: number, originalSize?: WidgetSize, row?: number, column?: number, breakpoint?: string): void;
private widgetPossiblePosition;
private hasWidgetCollision;
removeWidgetFromLayout(dashboard: Dashboard, targetState: string, targetLayout: DashboardLayoutId, widgetId: string, breakpoint: BreakpointId): void;
isSingleLayoutDashboard(dashboard: Dashboard): {
state: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ElementRef, InjectionToken, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
import { DestroyRef, ElementRef, InjectionToken, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
import { ControlValueAccessor, UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
import { AlarmFilterConfig } from '@shared/models/query/query.models';
import { Overlay, OverlayRef } from '@angular/cdk/overlay';
Expand All @@ -23,6 +23,7 @@ export declare class AlarmFilterConfigComponent implements OnInit, OnDestroy, Co
private nativeElement;
private viewContainerRef;
private utils;
private destroyRef;
alarmFilterPanel: TemplateRef<any>;
disabled: boolean;
buttonMode: boolean;
Expand All @@ -43,7 +44,7 @@ export declare class AlarmFilterConfigComponent implements OnInit, OnDestroy, Co
private alarmFilterConfig;
private resizeWindows;
private propagateChange;
constructor(data: AlarmFilterConfigData | undefined, overlayRef: OverlayRef, fb: UntypedFormBuilder, translate: TranslateService, overlay: Overlay, nativeElement: ElementRef, viewContainerRef: ViewContainerRef, utils: UtilsService);
constructor(data: AlarmFilterConfigData | undefined, overlayRef: OverlayRef, fb: UntypedFormBuilder, translate: TranslateService, overlay: Overlay, nativeElement: ElementRef, viewContainerRef: ViewContainerRef, utils: UtilsService, destroyRef: DestroyRef);
ngOnInit(): void;
ngOnDestroy(): void;
registerOnChange(fn: any): void;
Expand All @@ -59,6 +60,6 @@ export declare class AlarmFilterConfigComponent implements OnInit, OnDestroy, Co
private alarmFilterConfigFromFormValue;
private updateButtonDisplayValue;
private customTranslate;
static ɵfac: i0.ɵɵFactoryDeclaration<AlarmFilterConfigComponent, [{ optional: true; }, { optional: true; }, null, null, null, null, null, null]>;
static ɵfac: i0.ɵɵFactoryDeclaration<AlarmFilterConfigComponent, [{ optional: true; }, { optional: true; }, null, null, null, null, null, null, null]>;
static ɵcmp: i0.ɵɵComponentDeclaration<AlarmFilterConfigComponent, "tb-alarm-filter-config", never, { "disabled": { "alias": "disabled"; "required": false; }; "buttonMode": { "alias": "buttonMode"; "required": false; }; "userMode": { "alias": "userMode"; "required": false; }; "propagatedFilter": { "alias": "propagatedFilter"; "required": false; }; "initialAlarmFilterConfig": { "alias": "initialAlarmFilterConfig"; "required": false; }; }, {}, never, never, false, never>;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OnInit } from '@angular/core';
import { DestroyRef, OnInit } from '@angular/core';
import { ErrorStateMatcher } from '@angular/material/core';
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
import { Store } from '@ngrx/store';
Expand Down Expand Up @@ -34,6 +34,7 @@ export declare class EntityAliasesDialogComponent extends DialogComponent<Entity
private translate;
private dialogs;
private dialog;
private destroyRef;
title: string;
disableAdd: boolean;
allowedEntityTypes: Array<EntityType | AliasEntityType>;
Expand All @@ -42,7 +43,7 @@ export declare class EntityAliasesDialogComponent extends DialogComponent<Entity
};
entityAliasesFormGroup: UntypedFormGroup;
submitted: boolean;
constructor(store: Store<AppState>, router: Router, data: EntityAliasesDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef<EntityAliasesDialogComponent, EntityAliases>, fb: UntypedFormBuilder, dashboardUtils: DashboardUtilsService, translate: TranslateService, dialogs: DialogService, dialog: MatDialog);
constructor(store: Store<AppState>, router: Router, data: EntityAliasesDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef<EntityAliasesDialogComponent, EntityAliases>, fb: UntypedFormBuilder, dashboardUtils: DashboardUtilsService, translate: TranslateService, dialogs: DialogService, dialog: MatDialog, destroyRef: DestroyRef);
private addWidgetTitleToWidgetsMap;
private createEntityAliasFormControl;
entityAliasesFormArray(): UntypedFormArray;
Expand All @@ -54,6 +55,6 @@ export declare class EntityAliasesDialogComponent extends DialogComponent<Entity
private openAliasDialog;
cancel(): void;
save(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<EntityAliasesDialogComponent, [null, null, null, { skipSelf: true; }, null, null, null, null, null, null]>;
static ɵfac: i0.ɵɵFactoryDeclaration<EntityAliasesDialogComponent, [null, null, null, { skipSelf: true; }, null, null, null, null, null, null, null]>;
static ɵcmp: i0.ɵɵComponentDeclaration<EntityAliasesDialogComponent, "tb-entity-aliases-dialog", never, {}, {}, never, never, false, never>;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AfterViewInit, ElementRef, QueryList } from '@angular/core';
import { AfterViewInit, DestroyRef, ElementRef, QueryList } from '@angular/core';
import { ErrorStateMatcher } from '@angular/material/core';
import { MatDialogRef } from '@angular/material/dialog';
import { Store } from '@ngrx/store';
Expand Down Expand Up @@ -28,6 +28,7 @@ export declare class ConverterTestDialogComponent extends DialogComponent<Conver
fb: UntypedFormBuilder;
wl: WhiteLabelingService;
private converterService;
private destroyRef;
width: string;
height: string;
topPanelElmRef: QueryList<ElementRef<HTMLElement>>;
Expand All @@ -45,7 +46,7 @@ export declare class ConverterTestDialogComponent extends DialogComponent<Conver
contentTypesInfoMap: Map<ContentType, import("@shared/models/constants").ContentTypeData>;
scriptLanguage: typeof ScriptLanguage;
scriptLang: ScriptLanguage;
constructor(store: Store<AppState>, router: Router, data: ConverterTestDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef<ConverterTestDialogComponent, string>, fb: UntypedFormBuilder, wl: WhiteLabelingService, converterService: ConverterService);
constructor(store: Store<AppState>, router: Router, data: ConverterTestDialogData, errorStateMatcher: ErrorStateMatcher, dialogRef: MatDialogRef<ConverterTestDialogComponent, string>, fb: UntypedFormBuilder, wl: WhiteLabelingService, converterService: ConverterService, destroyRef: DestroyRef);
init(): void;
private prepareStringContent;
private convertContent;
Expand All @@ -58,6 +59,6 @@ export declare class ConverterTestDialogComponent extends DialogComponent<Conver
private testConverter;
private checkInputParamErrors;
save(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ConverterTestDialogComponent, [null, null, null, { skipSelf: true; }, null, null, null, null]>;
static ɵfac: i0.ɵɵFactoryDeclaration<ConverterTestDialogComponent, [null, null, null, { skipSelf: true; }, null, null, null, null, null]>;
static ɵcmp: i0.ɵɵComponentDeclaration<ConverterTestDialogComponent, "tb-converter-test-dialog", never, {}, {}, never, never, false, never>;
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChangeDetectorRef, ElementRef, InjectionToken, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
import { ChangeDetectorRef, DestroyRef, ElementRef, InjectionToken, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
import { ControlValueAccessor, UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
import { Overlay, OverlayRef } from '@angular/cdk/overlay';
import { TranslateService } from '@ngx-translate/core';
Expand All @@ -21,6 +21,7 @@ export declare class DeviceInfoFilterComponent implements OnInit, OnDestroy, Con
private viewContainerRef;
private deviceProfileService;
private cd;
private destroyRef;
deviceFilterPanel: TemplateRef<any>;
disabled: boolean;
buttonMode: boolean;
Expand All @@ -32,7 +33,7 @@ export declare class DeviceInfoFilterComponent implements OnInit, OnDestroy, Con
private deviceProfileInfo;
private deviceInfoFilter;
private propagateChange;
constructor(data: DeviceFilterConfigData | undefined, overlayRef: OverlayRef, fb: UntypedFormBuilder, translate: TranslateService, overlay: Overlay, nativeElement: ElementRef, viewContainerRef: ViewContainerRef, deviceProfileService: DeviceProfileService, cd: ChangeDetectorRef);
constructor(data: DeviceFilterConfigData | undefined, overlayRef: OverlayRef, fb: UntypedFormBuilder, translate: TranslateService, overlay: Overlay, nativeElement: ElementRef, viewContainerRef: ViewContainerRef, deviceProfileService: DeviceProfileService, cd: ChangeDetectorRef, destroyRef: DestroyRef);
ngOnInit(): void;
ngOnDestroy(): void;
registerOnChange(fn: any): void;
Expand All @@ -47,6 +48,6 @@ export declare class DeviceInfoFilterComponent implements OnInit, OnDestroy, Con
private updateDeviceInfoFilterForm;
private deviceFilterUpdated;
private updateButtonDisplayValue;
static ɵfac: i0.ɵɵFactoryDeclaration<DeviceInfoFilterComponent, [{ optional: true; }, { optional: true; }, null, null, null, null, null, null, null]>;
static ɵfac: i0.ɵɵFactoryDeclaration<DeviceInfoFilterComponent, [{ optional: true; }, { optional: true; }, null, null, null, null, null, null, null, null]>;
static ɵcmp: i0.ɵɵComponentDeclaration<DeviceInfoFilterComponent, "tb-device-info-filter", never, { "disabled": { "alias": "disabled"; "required": false; }; "buttonMode": { "alias": "buttonMode"; "required": false; }; }, {}, never, never, false, never>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Store } from '@ngrx/store';
import { AppState } from '@core/core.state';
import { UntypedFormBuilder, UntypedFormGroup, ValidatorFn } from '@angular/forms';
import { ContactBased } from '@shared/models/contact-based.model';
import { AfterViewInit, ChangeDetectorRef } from '@angular/core';
import { AfterViewInit, ChangeDetectorRef, DestroyRef } from '@angular/core';
import { HasId } from '@shared/models/base-data';
import { EntityComponent } from './entity.component';
import { EntityTableConfig } from '@home/models/entity/entities-table-config.models';
Expand All @@ -15,6 +15,7 @@ export declare abstract class ContactBasedComponent<T extends ContactBased<HasId
protected entitiesTableConfigValue: EntityTableConfig<T>;
protected cd: ChangeDetectorRef;
protected countryData: CountryData;
protected destroyRef: DestroyRef;
protected constructor(store: Store<AppState>, fb: UntypedFormBuilder, entityValue: T, entitiesTableConfigValue: EntityTableConfig<T>, cd: ChangeDetectorRef, countryData: CountryData);
buildForm(entity: T): UntypedFormGroup;
updateForm(entity: T): void;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,36 +1,39 @@
import { Renderer2, ViewContainerRef } from '@angular/core';
import { ChangeDetectorRef, Renderer2, ViewContainerRef } from '@angular/core';
import { TbPopoverService } from '@shared/components/popover.service';
import { MatButton } from '@angular/material/button';
import { DebugSettings } from '@shared/models/entity.models';
import { EntityDebugSettings } from '@shared/models/entity.models';
import { AppState } from '@core/core.state';
import { Store } from '@ngrx/store';
import { ControlValueAccessor, FormBuilder } from '@angular/forms';
import * as i0 from "@angular/core";
export declare class DebugSettingsButtonComponent implements ControlValueAccessor {
export declare class EntityDebugSettingsButtonComponent implements ControlValueAccessor {
private popoverService;
private renderer;
private store;
private viewContainerRef;
private fb;
private cd;
debugLimitsConfiguration: string;
entityLabel: string;
debugSettingsFormGroup: import("@angular/forms").FormGroup<{
failuresEnabled: import("@angular/forms").FormControl<boolean>;
allEnabled: import("@angular/forms").FormControl<boolean>;
allEnabledUntil: import("@angular/forms").FormControl<any>;
}>;
disabled: boolean;
private allEnabledSubject;
allEnabled$: import("rxjs").Observable<boolean>;
isDebugAllActive$: import("rxjs").Observable<boolean>;
readonly maxDebugModeDurationMinutes: number;
readonly maxDebugModeDuration: number;
private propagateChange;
constructor(popoverService: TbPopoverService, renderer: Renderer2, store: Store<AppState>, viewContainerRef: ViewContainerRef, fb: FormBuilder);
constructor(popoverService: TbPopoverService, renderer: Renderer2, store: Store<AppState>, viewContainerRef: ViewContainerRef, fb: FormBuilder, cd: ChangeDetectorRef);
get failuresEnabled(): boolean;
get allEnabled(): boolean;
get allEnabledUntil(): number;
openDebugStrategyPanel($event: Event, matButton: MatButton): void;
registerOnChange(fn: (settings: DebugSettings) => void): void;
registerOnChange(fn: (settings: EntityDebugSettings) => void): void;
registerOnTouched(_: () => void): void;
writeValue(settings: DebugSettings): void;
writeValue(settings: EntityDebugSettings): void;
setDisabledState(isDisabled: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<DebugSettingsButtonComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<DebugSettingsButtonComponent, "tb-debug-settings-button", never, { "debugLimitsConfiguration": { "alias": "debugLimitsConfiguration"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<EntityDebugSettingsButtonComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<EntityDebugSettingsButtonComponent, "tb-entity-debug-settings-button", never, { "debugLimitsConfiguration": { "alias": "debugLimitsConfiguration"; "required": false; }; "entityLabel": { "alias": "entityLabel"; "required": false; }; }, {}, never, never, true, never>;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
import { PageComponent } from '@shared/components/page.component';
import { TbPopoverComponent } from '@shared/components/popover.component';
import { FormBuilder } from '@angular/forms';
import { EntityDebugSettings } from '@shared/models/entity.models';
import * as i0 from "@angular/core";
export declare class EntityDebugSettingsPanelComponent extends PageComponent implements OnInit {
private fb;
private cd;
popover: TbPopoverComponent<EntityDebugSettingsPanelComponent>;
failuresEnabled: boolean;
allEnabled: boolean;
entityLabel: string;
allEnabledUntil: number;
maxDebugModeDuration: number;
debugLimitsConfiguration: string;
onFailuresControl: import("@angular/forms").FormControl<boolean>;
debugAllControl: import("@angular/forms").FormControl<boolean>;
maxMessagesCount: string;
maxTimeFrameDuration: number;
initialAllEnabled: boolean;
isDebugAllActive$: import("rxjs").Observable<boolean>;
onSettingsApplied: EventEmitter<EntityDebugSettings>;
constructor(fb: FormBuilder, cd: ChangeDetectorRef);
ngOnInit(): void;
onCancel(): void;
onApply(): void;
onReset(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<EntityDebugSettingsPanelComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<EntityDebugSettingsPanelComponent, "tb-entity-debug-settings-panel", never, { "popover": { "alias": "popover"; "required": false; }; "failuresEnabled": { "alias": "failuresEnabled"; "required": false; }; "allEnabled": { "alias": "allEnabled"; "required": false; }; "entityLabel": { "alias": "entityLabel"; "required": false; }; "allEnabledUntil": { "alias": "allEnabledUntil"; "required": false; }; "maxDebugModeDuration": { "alias": "maxDebugModeDuration"; "required": false; }; "debugLimitsConfiguration": { "alias": "debugLimitsConfiguration"; "required": false; }; }, {}, never, never, true, never>;
static ngAcceptInputType_failuresEnabled: unknown;
static ngAcceptInputType_allEnabled: unknown;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { OnInit } from '@angular/core';
import { DestroyRef, OnInit } from '@angular/core';
import { ControlValueAccessor, UntypedFormBuilder, UntypedFormGroup, ValidationErrors, Validator } from '@angular/forms';
import { BooleanFilterPredicate, BooleanOperation, EntityKeyValueType } from '@shared/models/query/query.models';
import * as i0 from "@angular/core";
export declare class BooleanFilterPredicateComponent implements ControlValueAccessor, Validator, OnInit {
private fb;
private destroyRef;
disabled: boolean;
allowUserDynamicSource: boolean;
onlyUserDynamicSource: boolean;
Expand All @@ -13,7 +14,7 @@ export declare class BooleanFilterPredicateComponent implements ControlValueAcce
booleanOperationEnum: typeof BooleanOperation;
booleanOperationTranslations: Map<BooleanOperation, string>;
private propagateChange;
constructor(fb: UntypedFormBuilder);
constructor(fb: UntypedFormBuilder, destroyRef: DestroyRef);
ngOnInit(): void;
registerOnChange(fn: any): void;
registerOnTouched(fn: any): void;
Expand Down
Loading

0 comments on commit 4f0a2cb

Please sign in to comment.