UNPKG

@chief-editor/brick-control

Version:

Control Brick for chief editor

1 lines 840 B
var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var a,e=1,o=arguments.length;e<o;e++)for(var l in a=arguments[e])Object.prototype.hasOwnProperty.call(a,l)&&(t[l]=a[l]);return t}).apply(this,arguments)};import{FloatType,NodeType}from"@chief-editor/base";import{getNormalLayout,getNullableDatasource,getNullableDisplay,getNullableState,getNullableValue}from"../../util/editor";import schema from"./schema.json";export var IfConfig=__assign(__assign(__assign(__assign(__assign({type:"If",category:"Unit",schema:schema,getPartBoardInfoFromBrickData:function(){return{type:NodeType.STREAM,floatType:FloatType.NONE,accept:["FormItem","FormContainer","Container","Unit","Layout","FloatLayout"]}}},getNormalLayout()),getNullableState()),getNullableValue()),getNullableDatasource()),getNullableDisplay());