import * as XrmMock from "../xrm-mock/index" ; import Form from "./form" ; export default class Ui { public static createUi ( ) { const ui = new XrmMock . UiMock ( { controls : new XrmMock . ItemCollectionMock ( [ ] ) , formSelector : new XrmMock . FormSelectorMock ( new XrmMock . ItemCollectionMock ( [ Form . createBlankForm ( ) ] ) ) , tabs : new XrmMock . ItemCollectionMock ( [ ] ) , } ) ; return ui ; } public static createLabelElement ( label ) { return new XrmMock . UiLabelElementMock ( label ) ; } public static createCanGetVisibleElement ( isVisible ) { return new XrmMock . UiCanGetVisibleElementMock ( isVisible ) ; } public static createStandardElement ( labelElement , visibleElement ) { return new XrmMock . UiStandardElementMock ( labelElement , visibleElement ) ; } }