feat: add support for appending custom inputs (#6990)

* feat: add appendInput method

* feat: enable constructing inputs from the registry

* chore: reorganize into suites

* chore: add new input test + fixup existing

* chore: reorganize appending from registry

* chore: fix input types enum

* chore: fix tests
This commit is contained in:
Beka Westberg
2023-04-21 15:58:42 -07:00
committed by GitHub
parent 35276e9468
commit d726080eaa
5 changed files with 191 additions and 132 deletions

View File

@@ -13,6 +13,7 @@ import type {IBlockDragger} from './interfaces/i_block_dragger.js';
import type {IConnectionChecker} from './interfaces/i_connection_checker.js';
import type {IFlyout} from './interfaces/i_flyout.js';
import type {IMetricsManager} from './interfaces/i_metrics_manager.js';
import type {Input} from './input.js';
import type {ISerializer} from './interfaces/i_serializer.js';
import type {IToolbox} from './interfaces/i_toolbox.js';
import type {Cursor} from './keyboard_nav/cursor.js';
@@ -69,6 +70,8 @@ export class Type<_T> {
static FIELD = new Type<Field>('field');
static INPUT = new Type<Input>('input');
static RENDERER = new Type<Renderer>('renderer');
static TOOLBOX = new Type<IToolbox>('toolbox');