UNPKG

react-application-core

Version:

A react-based application core for the business applications.

76 lines (75 loc) 6.79 kB
/// <reference types="react" /> import { IEffectsAction } from 'redux-effects-promise'; import { IActiveValueWrapper, IChangesWrapper, IChannelWrapper, IDataWrapper, IDictionariesWrapper, IDirectionsWrapper, IDirtyWrapper, IElementWrapper, IEntity, IEntityIdTWrapper, IEntityWrapper, IErrorWrapper, IFilterWrapper, IFormWrapper, ILayoutWrapper, IListWrapper, INotificationWrapper, IPrimaryFilterWrapper, IProgressWrapper, IQueryFilterWrapper, IQueryWrapper, IQueueWrapper, IRawDataWrapper, ISecondaryFilterWrapper, ISectionNameWrapper, ISelectedWrapper, IStackWrapper, ITabPanelWrapper, ITokenWrapper, ITransportWrapper, IUserWrapper } from '../definitions.interface'; import { IReduxChannelEntity, IReduxChannelHolderEntity, IReduxChannelMessageEntity, IReduxChannelsEntity, IReduxFormHolderEntity, IReduxLayoutHolderEntity, IReduxListHolderEntity, IReduxQueryFilterHolderEntity, IReduxStackHolderEntity, IReduxStackItemEntity, LayoutModesEnum, ToolbarToolsEnum } from '../definition'; /** * @stable [29.02.2020] * @param {ITokenWrapper<TValue>} wrapper * @returns {TValue} */ export declare const selectToken: <TValue = string>(wrapper: ITokenWrapper<TValue>) => TValue; /** * @stable [05.03.2020] * @param {IChangesWrapper<TResult>} entity * @returns {TResult} */ export declare const selectChanges: <TResult = IEntity>(entity: IChangesWrapper<TResult>) => TResult; /** * @stable [05.03.2020] * @param {IEntityWrapper<TResult>} entity * @returns {TResult} */ export declare const selectEntity: <TResult = IEntity>(entity: IEntityWrapper<TResult>) => TResult; /** * @stable [06.05.2020] */ export declare class Selectors { static readonly activeToolbarToolsFromDirtyWrapper: (wrapper: IDirtyWrapper) => ToolbarToolsEnum[]; static readonly activeValue: <TValue>(wrapper: IActiveValueWrapper<TValue>) => TValue; static readonly changes: <TResult = IEntity>(entity: IChangesWrapper<TResult>) => TResult; static readonly channel: <TEntity>(wrapper: IChannelWrapper<TEntity>) => TEntity; static readonly channelEntity: <TEntity = IReduxChannelsEntity>(wrapper: IReduxChannelHolderEntity<TEntity>, ip: string) => IReduxChannelEntity; static readonly channelMessagesByIp: <TMessage = any, TEntity = IReduxChannelsEntity>(wrapper: IReduxChannelHolderEntity<TEntity>, ip: string) => IReduxChannelMessageEntity<TMessage>[]; static readonly data: <TData>(wrapper: IDataWrapper<TData>) => TData; static readonly dictionaries: <TValue>(wrapper: IDictionariesWrapper<TValue>) => TValue; static readonly directions: <TValue>(wrapper: IDirectionsWrapper<TValue>) => TValue; static readonly element: <TValue = unknown>(wrapper: IElementWrapper<TValue>) => TValue; static readonly entity: <TResult = IEntity>(entity: IEntityWrapper<TResult>) => TResult; static readonly entityId: (wrapper: IEntityIdTWrapper) => import("react").ReactText; static readonly error: <TValue = unknown>(wrapper: IErrorWrapper<TValue>) => TValue; static readonly filter: <TValue = string>(wrapper: IFilterWrapper<TValue>) => TValue; static readonly firstStackItemEntity: (entity: IReduxStackHolderEntity<import("../definition").IReduxStackEntity>) => IReduxStackItemEntity; static readonly form: <TValue>(wrapper: IFormWrapper<TValue>) => TValue; static readonly formHolderEntityChanges: <TEntity = IEntity>(entity: IReduxFormHolderEntity<TEntity>) => TEntity; static readonly layout: <TEntity>(wrapper: ILayoutWrapper<TEntity>) => TEntity; static readonly layoutMode: (entity: IReduxLayoutHolderEntity<import("../definition").IReduxLayoutEntity>) => LayoutModesEnum; static readonly list: <TValue>(wrapper: IListWrapper<TValue>) => TValue; static readonly listProgress: (entity: IReduxListHolderEntity<IEntity, any, import("../definition").IReduxListEntity<IEntity, any>>) => boolean; static readonly listRawData: <TRawData = any>(entity: IReduxListHolderEntity<IEntity, any, import("../definition").IReduxListEntity<IEntity, any>>) => TRawData; static readonly listSelectedEntity: <TEntity extends IEntity>(entity: IReduxListHolderEntity<TEntity, any, import("../definition").IReduxListEntity<TEntity, any>>) => TEntity; static readonly mergedLayoutMode: (merged: IReduxLayoutHolderEntity<import("../definition").IReduxLayoutEntity>, original: IReduxLayoutHolderEntity<import("../definition").IReduxLayoutEntity>) => LayoutModesEnum; static readonly notification: <TEntity>(wrapper: INotificationWrapper<TEntity>) => TEntity; static readonly payloadFromAction: <TPayload>(action: IEffectsAction<unknown>) => TPayload; static readonly preventEffectsFromAction: (wrapper: IEffectsAction<unknown>) => boolean; static readonly previousActionFromAction: (wrapper: IEffectsAction<unknown>) => IEffectsAction<unknown>; static readonly previousActionTypeFromAction: (action: IEffectsAction<unknown>) => string; static readonly primaryFilter: <TValue>(wrapper: IPrimaryFilterWrapper<TValue>) => TValue; static readonly progress: (wrapper: IProgressWrapper<boolean>) => boolean; static readonly query: (wrapper: IQueryWrapper<string>) => string; static readonly queryFilter: <TValue = string>(wrapper: IQueryFilterWrapper<TValue>) => TValue; static readonly queryFilterEntityQuery: (entity: IReduxQueryFilterHolderEntity) => string; static readonly queue: <TValue>(wrapper: IQueueWrapper<TValue>) => TValue; static readonly rawData: <TValue = unknown>(wrapper: IRawDataWrapper<TValue>) => TValue; static readonly secondaryFilter: <TValue>(wrapper: ISecondaryFilterWrapper<TValue>) => TValue; static readonly sectionFromAction: (action: IEffectsAction<unknown>) => string; static readonly sectionName: (wrapper: ISectionNameWrapper) => string; static readonly selected: <TValue = IEntity>(wrapper: ISelectedWrapper<TValue>) => TValue; static readonly selectedEntityFromAction: <TEntity extends IEntity = IEntity>(action: IEffectsAction<unknown>) => TEntity; static readonly selectedEntityIdFromAction: <TEntity extends IEntity = IEntity>(action: IEffectsAction<unknown>) => import("react").ReactText; static readonly stack: <TEntity>(wrapper: IStackWrapper<TEntity>) => TEntity; static readonly stackItemEntities: (entity: IReduxStackHolderEntity<import("../definition").IReduxStackEntity>) => IReduxStackItemEntity[]; static readonly tabPanel: <TTabPanel>(entity: ITabPanelWrapper<TTabPanel>) => TTabPanel; static readonly transport: <TTransport>(wrapper: ITransportWrapper<TTransport>) => TTransport; static readonly user: <TUser>(wrapper: IUserWrapper<TUser>) => TUser; static readonly validFromAction: (action: IEffectsAction<unknown>) => boolean; }