2021-09-17 09:08:35 +00:00
|
|
|
import Widget from "./widget";
|
|
|
|
|
import IconSVG from "./icon.svg";
|
|
|
|
|
import { GRID_DENSITY_MIGRATION_V1 } from "widgets/constants";
|
|
|
|
|
|
|
|
|
|
export const CONFIG = {
|
|
|
|
|
type: Widget.getWidgetType(),
|
2021-09-20 15:18:10 +00:00
|
|
|
name: "Multi TreeSelect",
|
2021-09-17 09:08:35 +00:00
|
|
|
iconSVG: IconSVG,
|
|
|
|
|
needsMeta: true,
|
|
|
|
|
defaults: {
|
|
|
|
|
rows: 1.72 * GRID_DENSITY_MIGRATION_V1,
|
|
|
|
|
columns: 4 * GRID_DENSITY_MIGRATION_V1,
|
|
|
|
|
mode: "SHOW_ALL",
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
label: "Blue",
|
|
|
|
|
value: "BLUE",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
label: "Dark Blue",
|
|
|
|
|
value: "DARK BLUE",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Light Blue",
|
|
|
|
|
value: "LIGHT BLUE",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{ label: "Green", value: "GREEN" },
|
|
|
|
|
{ label: "Red", value: "RED" },
|
|
|
|
|
],
|
|
|
|
|
widgetName: "MultiSelectTree",
|
|
|
|
|
defaultOptionValue: ["GREEN"],
|
|
|
|
|
version: 1,
|
|
|
|
|
isVisible: true,
|
|
|
|
|
isRequired: false,
|
|
|
|
|
isDisabled: false,
|
|
|
|
|
allowClear: false,
|
|
|
|
|
expandAll: false,
|
|
|
|
|
placeholderText: "select option(s)",
|
|
|
|
|
labelText: "Label",
|
|
|
|
|
},
|
|
|
|
|
properties: {
|
|
|
|
|
derived: Widget.getDerivedPropertiesMap(),
|
|
|
|
|
default: Widget.getDefaultPropertiesMap(),
|
|
|
|
|
meta: Widget.getMetaPropertiesMap(),
|
|
|
|
|
config: Widget.getPropertyPaneConfig(),
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default Widget;
|