Merged PR 173: Implements API methods through right click + more (read desc)
- Implements API methods through right click - Refactor events - Refactor usage of setHistory and setHistoryCurrentStep into a single function - Update ContainerOperations documentations - Added AddContainers in order to add multiple containers + refactor AddContainer to use it - Fix regression - Fix AddContainer at index
This commit is contained in:
parent
79c6874240
commit
57e6c9a156
20 changed files with 652 additions and 291 deletions
12
src/Interfaces/IAction.ts
Normal file
12
src/Interfaces/IAction.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import { AddMethod } from '../Enums/AddMethod';
|
||||
import { IImage } from './IImage';
|
||||
|
||||
export interface IAction {
|
||||
Id: string
|
||||
CustomLogo: IImage
|
||||
Label: string
|
||||
Description: string
|
||||
Action: string
|
||||
AddingBehavior: AddMethod
|
||||
}
|
|
@ -2,6 +2,7 @@
|
|||
import React from 'react';
|
||||
import { AddMethod } from '../Enums/AddMethod';
|
||||
import { XPositionReference } from '../Enums/XPositionReference';
|
||||
import { IAction } from './IAction';
|
||||
import { IMargin } from './IMargin';
|
||||
|
||||
/** Model of available container used in application configuration */
|
||||
|
@ -20,5 +21,6 @@ export interface IAvailableContainer {
|
|||
CustomSVG?: string
|
||||
DefaultChildType?: string
|
||||
Style?: React.CSSProperties
|
||||
Actions?: IAction[]
|
||||
UserData?: object
|
||||
}
|
||||
|
|
14
src/Interfaces/ISetContainerListRequest.ts
Normal file
14
src/Interfaces/ISetContainerListRequest.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { IContainerModel } from './IContainerModel';
|
||||
import { IHistoryState } from './IHistoryState';
|
||||
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
export interface ISetContainerListRequest {
|
||||
/** Name of the action declared in the API */
|
||||
Action: string
|
||||
|
||||
/** Selected container */
|
||||
Container: IContainerModel
|
||||
|
||||
/** Current application state */
|
||||
ApplicationState: IHistoryState
|
||||
}
|
6
src/Interfaces/ISetContainerListResponse.ts
Normal file
6
src/Interfaces/ISetContainerListResponse.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import { IContainerModel } from './IContainerModel';
|
||||
|
||||
export interface ISetContainerListResponse {
|
||||
Containers: IContainerModel[]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue