PromucFlow_constructor/app/client/src/widgets/InputWidget/index.ts
rahulramesha 07ded0dacc
feat: Deprecation warning message update to reference the widget that is replacing it (#14532)
* reference replacement widget in the deprecation warning message

* updated import path for messages

* adding test case for validating deprecated widget COnfig
2022-06-23 20:39:00 +05:30

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;