* fix * move stylesheet to widget level * fix types * fix types * fix types * fix types ( thanks to ashit ) * fix type issue * add config for list widget * fix jest tests
45 lines
1.1 KiB
TypeScript
45 lines
1.1 KiB
TypeScript
import { Colors } from "constants/Colors";
|
|
import IconSVG from "./icon.svg";
|
|
import Widget from "./widget";
|
|
|
|
export const CONFIG = {
|
|
features: {
|
|
dynamicHeight: {
|
|
sectionIndex: 1,
|
|
active: true,
|
|
},
|
|
},
|
|
type: Widget.getWidgetType(),
|
|
name: "Rating",
|
|
iconSVG: IconSVG,
|
|
needsMeta: true,
|
|
searchTags: ["stars"],
|
|
defaults: {
|
|
rows: 4,
|
|
columns: 20,
|
|
animateLoading: true,
|
|
maxCount: 5,
|
|
defaultRate: 3,
|
|
activeColor: Colors.RATE_ACTIVE,
|
|
inactiveColor: Colors.ALTO2,
|
|
size: "LARGE",
|
|
isRequired: false,
|
|
isAllowHalf: false,
|
|
isDisabled: false,
|
|
isReadOnly: false,
|
|
tooltips: ["Terrible", "Bad", "Neutral", "Good", "Great"],
|
|
widgetName: "Rating",
|
|
},
|
|
properties: {
|
|
derived: Widget.getDerivedPropertiesMap(),
|
|
default: Widget.getDefaultPropertiesMap(),
|
|
meta: Widget.getMetaPropertiesMap(),
|
|
config: Widget.getPropertyPaneConfig(),
|
|
contentConfig: Widget.getPropertyPaneContentConfig(),
|
|
styleConfig: Widget.getPropertyPaneStyleConfig(),
|
|
stylesheetConfig: Widget.getStylesheetConfig(),
|
|
},
|
|
};
|
|
|
|
export default Widget;
|