2021-09-09 15:10:22 +00:00
|
|
|
import Widget from "./widget";
|
|
|
|
|
import IconSVG from "./icon.svg";
|
|
|
|
|
import { GRID_DENSITY_MIGRATION_V1 } from "widgets/constants";
|
|
|
|
|
import { Colors } from "constants/Colors";
|
|
|
|
|
|
|
|
|
|
export const CONFIG = {
|
|
|
|
|
type: Widget.getWidgetType(),
|
|
|
|
|
name: "Divider",
|
|
|
|
|
iconSVG: IconSVG,
|
|
|
|
|
defaults: {
|
2021-12-24 08:19:34 +00:00
|
|
|
rows: GRID_DENSITY_MIGRATION_V1,
|
2021-10-26 09:58:54 +00:00
|
|
|
columns: 5 * GRID_DENSITY_MIGRATION_V1,
|
2021-09-09 15:10:22 +00:00
|
|
|
widgetName: "Divider",
|
|
|
|
|
orientation: "horizontal",
|
|
|
|
|
capType: "nc",
|
|
|
|
|
capSide: 0,
|
|
|
|
|
strokeStyle: "solid",
|
2021-10-26 09:58:54 +00:00
|
|
|
dividerColor: Colors.GREY_3,
|
2021-09-09 15:10:22 +00:00
|
|
|
thickness: 2,
|
|
|
|
|
isVisible: true,
|
|
|
|
|
version: 1,
|
2021-12-14 07:55:58 +00:00
|
|
|
animateLoading: true,
|
2021-09-09 15:10:22 +00:00
|
|
|
},
|
|
|
|
|
properties: {
|
|
|
|
|
derived: Widget.getDerivedPropertiesMap(),
|
|
|
|
|
default: Widget.getDefaultPropertiesMap(),
|
|
|
|
|
meta: Widget.getMetaPropertiesMap(),
|
|
|
|
|
config: Widget.getPropertyPaneConfig(),
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default Widget;
|