bruce-models 3.2.8 → 3.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -94,5 +94,5 @@ __exportStar(require("./internal/uploader"), exports);
94
94
  __exportStar(require("./plugin/plugin"), exports);
95
95
  __exportStar(require("./environment"), exports);
96
96
  __exportStar(require("./data-source/data-source"), exports);
97
- exports.VERSION = "3.2.8";
97
+ exports.VERSION = "3.2.9";
98
98
  //# sourceMappingURL=bruce-models.js.map
@@ -77,4 +77,4 @@ export * from "./internal/uploader";
77
77
  export * from "./plugin/plugin";
78
78
  export * from "./environment";
79
79
  export * from "./data-source/data-source";
80
- export declare const VERSION = "3.2.8";
80
+ export declare const VERSION = "3.2.9";
@@ -17,7 +17,7 @@ export declare namespace CustomFormContent {
17
17
  component: Component;
18
18
  params: StackItemParams;
19
19
  }
20
- type Component = "STATIC_TEXT" | "ENTITY_TEXT" | "IFRAME" | "ENTITY_GALLERY" | "ENTITY_ATTRIBUTES" | "ENTITY_ATTRIBUTE_GROUP" | "ENTITY_COMMENTS" | "BUTTON" | "NUMBER_CHART";
20
+ type Component = "STATIC_TEXT" | "ENTITY_TEXT" | "IFRAME" | "ENTITY_GALLERY" | "ENTITY_ATTRIBUTES" | "ENTITY_ATTRIBUTE_GROUP" | "ENTITY_COMMENTS" | "BUTTON" | "NUMBER_CHART" | "NUMBER_SERIES_CHART";
21
21
  interface IStaticTextParams {
22
22
  text: string;
23
23
  }
@@ -76,5 +76,18 @@ export declare namespace CustomFormContent {
76
76
  gradient?: boolean;
77
77
  title?: string;
78
78
  }
79
- type StackItemParams = IStaticTextParams | IEntityTextParams | IIFrameParams | IButtonParams | IEntityAttrGroupParams | INumberChartParams | any;
79
+ /**
80
+ * A series chart differs to a number chart in that it displays how a value changes over time.
81
+ *
82
+ * If configured (coming soon) it will sample an attribute's history.
83
+ * If not configured to show history then it will show the value changing in real time.
84
+ */
85
+ interface INumberSeriesChartParams {
86
+ type: "LINE";
87
+ valueAttrPath: string;
88
+ value?: number;
89
+ title?: string;
90
+ textSuffix?: string;
91
+ }
92
+ type StackItemParams = IStaticTextParams | IEntityTextParams | IIFrameParams | IButtonParams | IEntityAttrGroupParams | INumberChartParams | INumberSeriesChartParams | any;
80
93
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bruce-models",
3
- "version": "3.2.8",
3
+ "version": "3.2.9",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/bruce-models.umd.js",