25 lines
580 B
TypeScript
25 lines
580 B
TypeScript
|
|
import Widget from "./widget";
|
||
|
|
import IconSVG from "./icon.svg";
|
||
|
|
import { CONFIG as BaseConfig } from "widgets/BaseInputWidget";
|
||
|
|
|
||
|
|
export const CONFIG = {
|
||
|
|
type: Widget.getWidgetType(),
|
||
|
|
name: "Input",
|
||
|
|
iconSVG: IconSVG,
|
||
|
|
needsMeta: true,
|
||
|
|
defaults: {
|
||
|
|
...BaseConfig.defaults,
|
||
|
|
inputType: "TEXT",
|
||
|
|
widgetName: "Input",
|
||
|
|
version: 2,
|
||
|
|
},
|
||
|
|
properties: {
|
||
|
|
derived: Widget.getDerivedPropertiesMap(),
|
||
|
|
default: Widget.getDefaultPropertiesMap(),
|
||
|
|
meta: Widget.getMetaPropertiesMap(),
|
||
|
|
config: Widget.getPropertyPaneConfig(),
|
||
|
|
},
|
||
|
|
};
|
||
|
|
|
||
|
|
export default Widget;
|