2021-09-09 15:10:22 +00:00
|
|
|
import { Colors } from "constants/Colors";
|
2022-01-21 10:19:10 +00:00
|
|
|
import IconSVG from "./icon.svg";
|
|
|
|
|
import Widget from "./widget";
|
2021-09-09 15:10:22 +00:00
|
|
|
|
|
|
|
|
export const CONFIG = {
|
|
|
|
|
type: Widget.getWidgetType(),
|
|
|
|
|
name: "Rating",
|
|
|
|
|
iconSVG: IconSVG,
|
|
|
|
|
needsMeta: true,
|
2022-06-17 03:12:47 +00:00
|
|
|
searchTags: ["stars"],
|
2021-09-09 15:10:22 +00:00
|
|
|
defaults: {
|
2022-01-21 10:19:10 +00:00
|
|
|
rows: 4,
|
2022-06-21 16:31:05 +00:00
|
|
|
columns: 20,
|
2021-12-14 07:55:58 +00:00
|
|
|
animateLoading: true,
|
2021-09-09 15:10:22 +00:00
|
|
|
maxCount: 5,
|
2021-09-20 10:43:44 +00:00
|
|
|
defaultRate: 3,
|
2021-09-09 15:10:22 +00:00
|
|
|
activeColor: Colors.RATE_ACTIVE,
|
2021-11-16 10:24:38 +00:00
|
|
|
inactiveColor: Colors.ALTO_3,
|
2021-09-20 10:43:44 +00:00
|
|
|
size: "LARGE",
|
2021-09-09 15:10:22 +00:00
|
|
|
isRequired: false,
|
|
|
|
|
isAllowHalf: false,
|
|
|
|
|
isDisabled: false,
|
2021-09-20 10:43:44 +00:00
|
|
|
tooltips: ["Terrible", "Bad", "Neutral", "Good", "Great"],
|
2021-09-09 15:10:22 +00:00
|
|
|
widgetName: "Rating",
|
|
|
|
|
},
|
|
|
|
|
properties: {
|
|
|
|
|
derived: Widget.getDerivedPropertiesMap(),
|
|
|
|
|
default: Widget.getDefaultPropertiesMap(),
|
|
|
|
|
meta: Widget.getMetaPropertiesMap(),
|
|
|
|
|
config: Widget.getPropertyPaneConfig(),
|
2022-08-09 13:05:15 +00:00
|
|
|
contentConfig: Widget.getPropertyPaneContentConfig(),
|
|
|
|
|
styleConfig: Widget.getPropertyPaneStyleConfig(),
|
2021-09-09 15:10:22 +00:00
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default Widget;
|