react-application-core
Version:
A react-based application core for the business applications.
139 lines (138 loc) • 6.34 kB
TypeScript
import { IActionsFactoryWrapper, IActionsRenderedWrapper, IAlwaysDirtyWrapper, IAlwaysResettableWrapper, IChangeableWrapper, IChangesWrapper, ICompactWrapper, IDefaultChangesWrapper, IDirtyWrapper, IDisabledWrapper, IEntity, IFormConfigurationWrapper, IFormIdWrapper, IFormWrapper, IFullWrapper, IKeyValue, IOnBeforeSubmitWrapper, IOnChangeWrapper, IOnDictionaryLoadWrapper, IOnResetWrapper, IOnSubmitWrapper, IOnValidWrapper, IPrimaryFilterWrapper, IReadOnlyWrapper, IResetActionRenderedWrapper, IResetConfigurationWrapper, IResetIconWrapper, IResetTextWrapper, ISecondaryFilterWrapper, ISubmitConfigurationWrapper, ISubmitIconWrapper, ISubmitTextWrapper, IValidateAfterResetWrapper, IValidateOnMountWrapper, IValidWrapper } from '../definitions.interface';
import { IExtendedEntity, IReduxActiveValueHolderEntity, IReduxLifeCycleEntity } from './entity-definition.interface';
import { IApiEntity } from './api-definition.interface';
import { IButtonProps, IConfigurationButtonEntity, IGenericButtonEntity } from './button-definition.interface';
import { IGenericComponentProps } from './generic-component-definition.interface';
import { IGenericContainerProps } from './generic-container-definition.interface';
/**
* @redux-entity
* @stable [08.05.2020]
*/
export interface IReduxFormEntity<TChanges = IKeyValue> extends IReduxActiveValueHolderEntity, IReduxLifeCycleEntity, IChangesWrapper<TChanges>, IDefaultChangesWrapper<TChanges>, IDirtyWrapper, IValidateAfterResetWrapper, IValidWrapper {
}
/**
* @redux-holder-entity
* @stable [30.07.2020]
*/
export interface IReduxFormHolderEntity<TEntity = IEntity> extends IFormWrapper<IReduxFormEntity<TEntity>> {
}
/**
* @entity
* @stable [08.05.2020]
*/
export interface IExtendedFormEntity<TEntity = IEntity> extends IReduxFormHolderEntity<TEntity>, IExtendedEntity<TEntity> {
}
/**
* @flux-entity
* @stable [08.05.2020]
*/
export interface IFluxValidEntity extends IValidWrapper {
}
/**
* @redux-entity
* @stable [02.08.2020]
*/
export interface IReduxPrimaryFilterFormEntity<TEntity = IEntity> extends IPrimaryFilterWrapper<IReduxFormEntity<TEntity>> {
}
/**
* @entity
* @stable [01.08.2020]
*/
export interface IPrimaryFilterExtendedFormEntity<TEntity = IEntity> extends IPrimaryFilterWrapper<IExtendedFormEntity<TEntity>> {
}
/**
* @redux-holder-entity
* @stable [01.08.2020]
*/
export interface IReduxPrimaryFilterFormHolderEntity<TEntity = IEntity> extends IPrimaryFilterWrapper<IReduxFormHolderEntity<TEntity>> {
}
/**
* @redux-entity
* @stable [02.08.2020]
*/
export interface IReduxSecondaryFilterFormEntity<TEntity = IEntity> extends ISecondaryFilterWrapper<IReduxFormEntity<TEntity>> {
}
/**
* @entity
* @stable [01.08.2020]
*/
export interface ISecondaryFilterExtendedFormEntity<TEntity = IEntity> extends ISecondaryFilterWrapper<IExtendedFormEntity<TEntity>> {
}
/**
* @redux-holder-entity
* @stable [01.08.2020]
*/
export interface IReduxSecondaryFilterFormHolderEntity<TEntity = IEntity> extends ISecondaryFilterWrapper<IReduxFormHolderEntity<TEntity>> {
}
/**
* @presets-entity
* @stable [08.05.2020]
*/
export interface IPresetsFormEntity<TEntity = IEntity> extends IActionsFactoryWrapper<(defaultActions: IGenericButtonEntity[]) => IGenericButtonEntity[]>, IActionsRenderedWrapper, IAlwaysDirtyWrapper, IAlwaysResettableWrapper, IConfigurationButtonEntity, IChangeableWrapper, ICompactWrapper, IDisabledWrapper, IFormIdWrapper, IFullWrapper, IOnBeforeSubmitWrapper<IApiEntity<TEntity>, boolean>, IOnChangeWrapper, IOnDictionaryLoadWrapper<(items: unknown, dictionary?: string) => void>, IOnResetWrapper, IOnSubmitWrapper<IApiEntity<TEntity>>, IOnValidWrapper, IReadOnlyWrapper, IResetActionRenderedWrapper, IResetConfigurationWrapper<IButtonProps>, IResetIconWrapper, IResetTextWrapper, ISubmitConfigurationWrapper<IButtonProps>, ISubmitIconWrapper, ISubmitTextWrapper, IValidateOnMountWrapper, IValidWrapper {
}
/**
* @generic-entity
* @stable [09.05.2020]
*/
export interface IGenericFormEntity<TEntity = IEntity> extends IExtendedFormEntity<TEntity>, IPresetsFormEntity {
}
/**
* @generic-container-entity
* @stable [09.05.2020]
*/
export interface IGenericFormContainerEntity<TEntity = IEntity> extends IExtendedFormEntity<TEntity>, IFormConfigurationEntity {
}
/**
* @props
* @stable [09.05.2020]
*/
export interface IFormProps<TEntity = IEntity> extends IGenericComponentProps, IGenericFormEntity<TEntity> {
}
/**
* @props
* @stable [09.05.2020]
*/
export interface IFormContainerProps<TEntity = IEntity, TDictionaries = {}> extends IGenericContainerProps<TDictionaries>, IGenericFormContainerEntity<TEntity> {
}
/**
* @configuration-entity
* @stable [09.05.2020]
*/
export interface IFormConfigurationEntity<TProps extends IFormProps = IFormProps> extends IFormConfigurationWrapper<TProps> {
}
/**
* @default-entity
* @stable [09.06.2020]
*/
export declare const DEFAULT_COMPACT_FORM_ENTITY: Readonly<IPresetsFormEntity<IEntity>>;
/**
* @initial-redux-entity
* @stable [08.05.2020]
*/
export declare const INITIAL_REDUX_FORM_ENTITY: Readonly<IReduxFormEntity<IKeyValue>>;
/**
* @classes
* @stable [23.03.2020]
*/
export declare enum FormClassesEnum {
FORM = "rac-form",
FORM_ACTIONS = "rac-form__actions",
FORM_BODY = "rac-form__body",
FULL_FORM = "rac-full-form"
}
/**
* @stable [01.04.2020]
*/
export declare const FORM_ACTIVE_VALUE_ACTION_TYPE = "form.active.value";
export declare const FORM_CHANGE_ACTION_TYPE = "form.change";
export declare const FORM_CLEAR_ACTION_TYPE = "form.clear";
export declare const FORM_DEFAULT_CHANGE_ACTION_TYPE = "form.default.change";
export declare const FORM_DESTROY_ACTION_TYPE = "form.destroy";
export declare const FORM_INACTIVE_VALUE_ACTION_TYPE = "form.inactive.value";
export declare const FORM_PROGRESS_ACTION_TYPE = "form.progress";
export declare const FORM_RESET_ACTION_TYPE = "form.reset";
export declare const FORM_SUBMIT_ACTION_TYPE = "form.submit";
export declare const FORM_SUBMIT_DONE_ACTION_TYPE: string;
export declare const FORM_SUBMIT_ERROR_ACTION_TYPE: string;
export declare const FORM_SUBMIT_FINISH_ACTION_TYPE = "form.submit.finish";
export declare const FORM_VALID_ACTION_TYPE = "form.valid";