import { OnDestroy, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { WidgetItemModel, WidgetLayoutTypeModel, WidgetModel } from '../../models/widget.model'; import { BaseFormComponent, BaseQuery, BaseStore } from '../../../../shared'; import { WidgetAdminService } from '../../state/widget-admin.service'; import { WidgetAdminQuery } from '../../state/widget-admin.query'; import { WidgetAdminStore } from '../../state/widget-admin.store'; import { ValidatorService } from '../../../../shared/services/validator.service'; import * as i0 from "@angular/core"; /** * WidgetAdminFormComponent */ export declare class WidgetAdminFormComponent extends BaseFormComponent implements OnInit, OnDestroy { service: WidgetAdminService; validatorService: ValidatorService; widgetStore: WidgetAdminStore; private query; router: Router; activatedRoute: ActivatedRoute; baseStore: BaseStore; baseQuery: BaseQuery; widgetItem: WidgetItemModel; dictionaries: any[]; headerDictionaryItems: any[]; subHeaderDictionaryItems: any[]; dictionaryItemArray: any[][]; badgeDictionaryItemArray: any[][]; widgetLayoutTypeList: WidgetLayoutTypeModel[]; constructor(service: WidgetAdminService, validatorService: ValidatorService, widgetStore: WidgetAdminStore, query: WidgetAdminQuery, router: Router, activatedRoute: ActivatedRoute, baseStore: BaseStore, baseQuery: BaseQuery); ngOnInit(): void; handleApiConfigChange(apiConfigId: any): void; handleWidgetItemAddBtnClick(): void; handleHeaderDictionarySelect(dictionaryId: string): void; handleSubHeaderDictionarySelect(dictionaryId: any): void; handleWidgetItemDictionarySelect(dictionaryId: any, index: number): void; handleBadgeAddBtnClick(): void; handleBadgeDictionarySelect(dictionaryId: any, index: number): void; handleDeleteBadge(index: number): void; handleWidgetItemDelete(index: number): void; handleUpdateRecord(): void; handleAddRecord(): void; /** * Widget Items / Badges dropdowns bind to dictionaryID + dictionaryItemID (template). * API may send dataDictionaryId + dictionaryItemID (or any mix). Keep both in sync. */ private syncRowDictionaryKeys; private normalizeIncomingDictionaryAliases; private refreshDictionaryItemListsForRecord; private applyDictionaryItemListsFromLists; private getDictionaryItemRecordsFromLists; private setDictionaryItemsForDictionaryId; private hydrateMissingDictionaryIdsFromItemSelection; private getDictionaryItemsByDictionaryId; /** * Text-box controls expect stringified JSON; API returns nested objects → "[object Object]" without this. */ private normalizeLoadedRecordStyles; /** * Parsed styles + API dictionary fields for PUT/POST only. */ private buildWidgetRecordForApi; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }