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";
|
2021-09-16 04:21:31 +00:00
|
|
|
import { ButtonBoxShadowTypes } from "components/constants";
|
2021-09-09 15:10:22 +00:00
|
|
|
|
|
|
|
|
export const CONFIG = {
|
|
|
|
|
type: Widget.getWidgetType(),
|
|
|
|
|
name: "Container",
|
|
|
|
|
iconSVG: IconSVG,
|
|
|
|
|
isCanvas: true,
|
|
|
|
|
defaults: {
|
|
|
|
|
backgroundColor: "#FFFFFF",
|
|
|
|
|
rows: 10 * GRID_DENSITY_MIGRATION_V1,
|
|
|
|
|
columns: 8 * GRID_DENSITY_MIGRATION_V1,
|
|
|
|
|
widgetName: "Container",
|
|
|
|
|
containerStyle: "card",
|
2021-09-16 04:21:31 +00:00
|
|
|
borderColor: "transparent",
|
|
|
|
|
borderWidth: "0",
|
|
|
|
|
borderRadius: "0",
|
|
|
|
|
boxShadow: ButtonBoxShadowTypes.NONE,
|
2021-09-09 15:10:22 +00:00
|
|
|
children: [],
|
|
|
|
|
blueprint: {
|
|
|
|
|
view: [
|
|
|
|
|
{
|
|
|
|
|
type: "CANVAS_WIDGET",
|
|
|
|
|
position: { top: 0, left: 0 },
|
|
|
|
|
props: {
|
|
|
|
|
containerStyle: "none",
|
|
|
|
|
canExtend: false,
|
|
|
|
|
detachFromLayout: true,
|
|
|
|
|
children: [],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
version: 1,
|
|
|
|
|
},
|
|
|
|
|
properties: {
|
|
|
|
|
derived: Widget.getDerivedPropertiesMap(),
|
|
|
|
|
default: Widget.getDefaultPropertiesMap(),
|
|
|
|
|
meta: Widget.getMetaPropertiesMap(),
|
|
|
|
|
config: Widget.getPropertyPaneConfig(),
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default Widget;
|