* reference replacement widget in the deprecation warning message * updated import path for messages * adding test case for validating deprecated widget COnfig
43 lines
1017 B
TypeScript
43 lines
1017 B
TypeScript
import { Alignment } from "@blueprintjs/core";
|
|
import { LabelPosition } from "components/constants";
|
|
import IconSVG from "./icon.svg";
|
|
import Widget from "./widget";
|
|
|
|
export const CONFIG = {
|
|
type: Widget.getWidgetType(),
|
|
name: "Input",
|
|
iconSVG: IconSVG,
|
|
needsMeta: true,
|
|
hideCard: true,
|
|
isDeprecated: true,
|
|
replacement: "INPUT_WIDGET_V2",
|
|
defaults: {
|
|
inputType: "TEXT",
|
|
rows: 4,
|
|
label: "",
|
|
labelPosition: LabelPosition.Left,
|
|
labelAlignment: Alignment.LEFT,
|
|
labelWidth: 5,
|
|
columns: 20,
|
|
widgetName: "Input",
|
|
version: 1,
|
|
defaultText: "",
|
|
iconAlign: "left",
|
|
autoFocus: false,
|
|
labelStyle: "",
|
|
resetOnSubmit: true,
|
|
isRequired: false,
|
|
isDisabled: false,
|
|
allowCurrencyChange: false,
|
|
animateLoading: true,
|
|
},
|
|
properties: {
|
|
derived: Widget.getDerivedPropertiesMap(),
|
|
default: Widget.getDefaultPropertiesMap(),
|
|
meta: Widget.getMetaPropertiesMap(),
|
|
config: Widget.getPropertyPaneConfig(),
|
|
},
|
|
};
|
|
|
|
export default Widget;
|