2022-01-21 10:19:10 +00:00
|
|
|
import Widget from "./widget";
|
2022-05-04 09:45:57 +00:00
|
|
|
import IconSVG from "./icon.svg";
|
|
|
|
|
import { BarType } from "./constants";
|
2021-12-29 12:01:19 +00:00
|
|
|
|
|
|
|
|
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 )
|
2022-04-01 16:02:19 +00:00
|
|
|
hideCard: true,
|
2022-05-25 09:38:32 +00:00
|
|
|
isDeprecated: true,
|
2022-06-23 15:09:00 +00:00
|
|
|
replacement: "PROGRESS_WIDGET",
|
2021-12-29 12:01:19 +00:00
|
|
|
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",
|
2022-01-21 10:19:10 +00:00
|
|
|
rows: 4,
|
|
|
|
|
columns: 28,
|
2021-12-29 12:01:19 +00:00
|
|
|
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(),
|
2022-11-28 04:44:31 +00:00
|
|
|
stylesheetConfig: Widget.getStylesheetConfig(),
|
2021-12-29 12:01:19 +00:00
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default Widget;
|