import { TcHmiControl } from 'Beckhoff.TwinCAT.HMI.Framework/index.esm.js'; import { PermissionCheckbox } from './PermissionCheckbox.js'; export declare enum Resource { SYMBOL = 0, FILE = 1 } declare class TcHmiPermissionManagement extends TcHmiControl.Control { #private; constructor(element: JQuery, pcElement: JQuery, attrs: TcHmi.Controls.ControlAttributeList); /** Reference to the root dom element of the current control template as jquery object. */ protected __elementTemplateRoot: HTMLElement; private __table; private __tableHead; private __tableBody; private __filter; private __regExForFilter; private __resourceSearch; private __resourceCount; private __shownResourceList; private __messageNoResourcesFound; private __checkboxElements; private __resource; private __externalResource; private __groupAsMuchAsPossible; protected __subscriptionsToUnsubscribeOnDetach: (number | null)[]; setResources(resourceList: SymbolList | null): void; /** * If raised, the control object exists in control cache and constructor of each inheritation level was called. * This function is only to be used by the System. Other function calls are not intended. */ __previnit(): void; protected __elemScrollHandling(): void; private __initialized; protected __updateSymbolSearch(): void; /** * If raised, all attributes have been set to it's default or dom values. * This function is only to be used by the System. Other function calls are not intended. */ __init(): void; protected __fetchRecursiveFiles(path: string, storage: Map, finalCallback: () => void, // Step 2: Add a Final Callback pendingOperations?: { count: number; }): void; protected __recordToMap(record: Record): Map; private __cached_results; protected __subscriptionCallback(data: TcHmi.Server.IResultObject): void; private __removePreviousGenericElements; private __createGroupHeader; private __createGroupDefaultAccessElements; protected __allSymbolsChangeCallback(groupName: string, checkboxRead: PermissionCheckbox, checkboxWrite: PermissionCheckbox, targetCheckbox: PermissionCheckbox): void; protected __createGroupAllResourcesElements(groupName: string, groupElements: any, rowGroupAllSymbols: HTMLTableRowElement): void; protected __onInheritCheckboxChange(groupName: string, resourceList: string[], notCheckedFn: (...args: any[]) => any, inheritCheckbox: PermissionCheckbox): void; protected __removeAccessFromResources(groupName: string, resourceList: string[]): void; private __createResourceRows; __updateTableFiles(files: any, userGroups: any): void; __updateTableSymbols(symbolList: SymbolList, userGroups: Record): void; static getAccessValue(read_access: boolean, write_access: boolean): import("Beckhoff.TwinCAT.HMI.Framework/dist/API/Server.js").ACCESS; static hasReadAccess(accessValue: TcHmi.Server.ACCESS): boolean; static hasWriteAccess(accessValue: TcHmi.Server.ACCESS): boolean; /** * Is called by the system after the control instance gets part of the current DOM. * This function is only to be used by the System. Other function calls are not intended. */ __attach(): void; /** * Is called by the system after the control instance is no longer part of the current DOM. * This function is only to be used by the System. Other function calls are not intended. */ __detach(): void; /** * Destroy the current control instance. * Will be called automatically if system destroys control! */ destroy(): void; /** * Sets the value of the member variable "device" if the new value is not equal to the current value * @param valueNew The new value for device. */ setFilter(valueNew: string | null): void; getFilter(): string; /** * Sets the value of the member variable "device" if the new value is not equal to the current value * @param valueNew The new value for device. */ setRegExForFilter(valueNew: boolean | null): void; getRegExForFilter(): boolean | undefined; static Resource: typeof Resource; } export type GroupName = string; export type SymbolName = string; export type ResourceList = SymbolList; export type ResourceListEntry = { ACCESS: number | undefined; SCHEMA?: { readOnly?: boolean; }; CONTENT?: T; }; export type SymbolList = Map; export type SymbolListEntry = TcHmi.Symbol.IListSymbols & { CONTENT?: SymbolList; }; export interface ServerFile { fileFlags: ('Directory' | 'ReadOnly' | 'UserAccessReadOnly' | 'VirtualDirectory')[]; fileSize?: number; link?: string; access?: TcHmi.Server.ACCESS; /** The md5 hash of the file */ hash?: string; modificationTime?: string; } export { TcHmiPermissionManagement as Control }; declare const _TcHmiPermissionManagement: typeof TcHmiPermissionManagement; type tTcHmiPermissionManagement = TcHmiPermissionManagement; type tResource = Resource; type tSymbolName = SymbolName; type tGroupName = GroupName; type tResourceList = ResourceList; type tResourceListEntry = ResourceListEntry; type tSymbolList = SymbolList; type tSymbolListEntry = SymbolListEntry; type tServerFile = ServerFile; declare global { namespace TcHmi.Controls.Beckhoff { const TcHmiPermissionManagement: typeof _TcHmiPermissionManagement; type TcHmiPermissionManagement = tTcHmiPermissionManagement; namespace TcHmiPermissionManagement { type Resource = tResource; type GroupName = tGroupName; type SymbolName = tSymbolName; type ResourceList = tResourceList; type ResourceListEntry = tResourceListEntry; type SymbolList = tSymbolList; type SymbolListEntry = tSymbolListEntry; type ServerFile = tServerFile; } } } //# sourceMappingURL=TcHmiPermissionManagement.esm.d.ts.map