* feat: Progress bar widget enhancements -- Scaffold the widget for the first time * feat: Progress bar widget enhancements -- Change widget icon * feat: Progress bar widget enhancements -- Build property pane * feat: Progress bar widget enhancements -- Add a missing property, counterClockwise -- Rename some properties * feat: Progress bar widget enhancements -- Build the first MVP of the widget * feat: Progress bar widget enhancements -- Reset rows to 4 * feat: Progress bar widget enhancements -- Add Cypress test cases * feat: Progress bar widget enhancements -- Limit value by ranging from 0 to 100 * feat: Progress bar widget enhancements -- Make isIndeterminate property not to be JS convertible -- Hide progress bar and circular progress widget icon from entity explorer * feat: Progress bar widget enhancements -- Place indeterminate circular progress to be 100% fit into the container * feat: Progress bar widget enhancements -- Show result without rounding for the circular type * feat: Progress bar widget enhancements -- Comment out ProgressBar_spec.js * feat: Progress bar widget enhancements -- Remove circular progress and progressbar widgets from allowed list for list widget * feat: Progress bar widget enhancements -- Move ProgressBar_spec into CommentedScriptFiles directory
34 lines
759 B
TypeScript
34 lines
759 B
TypeScript
import { Colors } from "constants/Colors";
|
|
import IconSVG from "./icon.svg";
|
|
import Widget from "./widget";
|
|
|
|
export const CONFIG = {
|
|
type: Widget.getWidgetType(),
|
|
name: "Circular Progress",
|
|
hideCard: true,
|
|
iconSVG: IconSVG,
|
|
defaults: {
|
|
counterClockWise: false,
|
|
fillColor: Colors.GREEN,
|
|
isVisible: true,
|
|
progress: 65,
|
|
showResult: true,
|
|
|
|
rows: 17,
|
|
columns: 16,
|
|
widgetName: "CircularProgress",
|
|
shouldScroll: false,
|
|
shouldTruncate: false,
|
|
version: 1,
|
|
animateLoading: true,
|
|
},
|
|
properties: {
|
|
derived: Widget.getDerivedPropertiesMap(),
|
|
default: Widget.getDefaultPropertiesMap(),
|
|
meta: Widget.getMetaPropertiesMap(),
|
|
config: Widget.getPropertyPaneConfig(),
|
|
},
|
|
};
|
|
|
|
export default Widget;
|