PromucFlow_constructor/app/client/src/widgets/ProgressBarWidget/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

34 lines
987 B
TypeScript

import Widget from "./widget";
import IconSVG from "./icon.svg";
import { BarType } from "./constants";
export const CONFIG = {
type: Widget.getWidgetType(),
name: "Progress Bar", // The display name which will be made in uppercase and show in the widgets panel ( can have spaces )
hideCard: true,
isDeprecated: true,
replacement: "PROGRESS_WIDGET",
iconSVG: IconSVG,
needsMeta: false, // Defines if this widget adds any meta properties
isCanvas: false, // Defines if this widget has a canvas within in which we can drop other widgets
defaults: {
widgetName: "ProgressBar",
rows: 4,
columns: 28,
isVisible: true,
showResult: false,
barType: BarType.INDETERMINATE,
progress: 50,
steps: 1,
version: 1,
},
properties: {
derived: Widget.getDerivedPropertiesMap(),
default: Widget.getDefaultPropertiesMap(),
meta: Widget.getMetaPropertiesMap(),
config: Widget.getPropertyPaneConfig(),
},
};
export default Widget;