bruce-models 2.7.5 → 2.7.6

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.
@@ -97,5 +97,5 @@ __exportStar(require("./internal/uploader"), exports);
97
97
  __exportStar(require("./plugin/plugin"), exports);
98
98
  __exportStar(require("./environment"), exports);
99
99
  __exportStar(require("./data-source/data-source"), exports);
100
- exports.VERSION = "2.7.5";
100
+ exports.VERSION = "2.7.6";
101
101
  //# sourceMappingURL=bruce-models.js.map
@@ -9,14 +9,26 @@ var CustomFormContent;
9
9
  (function (CustomFormContent) {
10
10
  let ECellType;
11
11
  (function (ECellType) {
12
+ // Description-like text box that the user types in.
12
13
  ECellType[ECellType["StaticText"] = 0] = "StaticText";
14
+ // Label + Value pair of an entity attribute.
13
15
  ECellType[ECellType["DataValue"] = 1] = "DataValue";
16
+ // Static picture.
14
17
  ECellType[ECellType["StaticPicture"] = 2] = "StaticPicture";
18
+ // Sub-section of the form. Contains other sections.
15
19
  ECellType[ECellType["SubSection"] = 3] = "SubSection";
20
+ // Button that opens another form (or info view).
16
21
  ECellType[ECellType["ButtonMore"] = 4] = "ButtonMore";
22
+ // Entity gallery.
17
23
  ECellType[ECellType["EntityPhoto"] = 5] = "EntityPhoto";
24
+ // Embedded media frame. Eg: youtube video.
18
25
  ECellType[ECellType["EmbeddedMedia"] = 6] = "EmbeddedMedia";
26
+ // Deprecated
19
27
  ECellType[ECellType["Chart"] = 7] = "Chart";
28
+ // Similar to DataValue, except it populates a description-like text-box.
29
+ ECellType[ECellType["EntityText"] = 8] = "EntityText";
30
+ // Icon and optional action associated with it.
31
+ ECellType[ECellType["Icon"] = 9] = "Icon";
20
32
  })(ECellType = CustomFormContent.ECellType || (CustomFormContent.ECellType = {}));
21
33
  let EFlowDirection;
22
34
  (function (EFlowDirection) {
@@ -1 +1 @@
1
- {"version":3,"file":"custom-form-content.js","sourceRoot":"","sources":["../../../src/custom-form/custom-form-content.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAiB,iBAAiB,CAiEjC;AAjED,WAAiB,iBAAiB;IAC9B,IAAY,SASX;IATD,WAAY,SAAS;QACjB,qDAAc,CAAA;QACd,mDAAS,CAAA;QACT,2DAAa,CAAA;QACb,qDAAU,CAAA;QACV,qDAAU,CAAA;QACV,uDAAW,CAAA;QACX,2DAAa,CAAA;QACb,2CAAK,CAAA;IACT,CAAC,EATW,SAAS,GAAT,2BAAS,KAAT,2BAAS,QASpB;IAED,IAAY,cAGX;IAHD,WAAY,cAAc;QACtB,kCAAgB,CAAA;QAChB,oCAAkB,CAAA;IACtB,CAAC,EAHW,cAAc,GAAd,gCAAc,KAAd,gCAAc,QAGzB;AAkDL,CAAC,EAjEgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAiEjC"}
1
+ {"version":3,"file":"custom-form-content.js","sourceRoot":"","sources":["../../../src/custom-form/custom-form-content.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAiB,iBAAiB,CA8FjC;AA9FD,WAAiB,iBAAiB;IAC9B,IAAY,SAqBX;IArBD,WAAY,SAAS;QACjB,oDAAoD;QACpD,qDAAc,CAAA;QACd,6CAA6C;QAC7C,mDAAa,CAAA;QACb,kBAAkB;QAClB,2DAAiB,CAAA;QACjB,oDAAoD;QACpD,qDAAc,CAAA;QACd,iDAAiD;QACjD,qDAAc,CAAA;QACd,kBAAkB;QAClB,uDAAe,CAAA;QACf,2CAA2C;QAC3C,2DAAiB,CAAA;QACjB,aAAa;QACb,2CAAS,CAAA;QACT,yEAAyE;QACzE,qDAAc,CAAA;QACd,+CAA+C;QAC/C,yCAAQ,CAAA;IACZ,CAAC,EArBW,SAAS,GAAT,2BAAS,KAAT,2BAAS,QAqBpB;IAED,IAAY,cAGX;IAHD,WAAY,cAAc;QACtB,kCAAgB,CAAA;QAChB,oCAAkB,CAAA;IACtB,CAAC,EAHW,cAAc,GAAd,gCAAc,KAAd,gCAAc,QAGzB;AAmEL,CAAC,EA9FgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QA8FjC"}
@@ -80,4 +80,4 @@ export * from "./internal/uploader";
80
80
  export * from "./plugin/plugin";
81
81
  export * from "./environment";
82
82
  export * from "./data-source/data-source";
83
- export declare const VERSION = "2.7.5";
83
+ export declare const VERSION = "2.7.6";
@@ -11,7 +11,9 @@ export declare namespace CustomFormContent {
11
11
  ButtonMore = 4,
12
12
  EntityPhoto = 5,
13
13
  EmbeddedMedia = 6,
14
- Chart = 7
14
+ Chart = 7,
15
+ EntityText = 8,
16
+ Icon = 9
15
17
  }
16
18
  enum EFlowDirection {
17
19
  Vertically = "v",
@@ -24,6 +26,8 @@ export declare namespace CustomFormContent {
24
26
  };
25
27
  Direction?: EFlowDirection;
26
28
  Entries?: CellContent.Content[];
29
+ Width?: number;
30
+ WidthUnits?: "px" | "%";
27
31
  }
28
32
  interface ICell {
29
33
  Type?: ECellType;
@@ -33,7 +37,7 @@ export declare namespace CustomFormContent {
33
37
  };
34
38
  }
35
39
  namespace CellContent {
36
- type Content = IStatic | IDataValue | IStaticImage | IMoreButton | IEntityPhoto | IEmbeddedMedia | IChart;
40
+ type Content = IStatic | IDataValue | IStaticImage | IMoreButton | IEntityPhoto | IEmbeddedMedia;
37
41
  interface IStatic extends ICell {
38
42
  Text?: string;
39
43
  }
@@ -53,8 +57,18 @@ export declare namespace CustomFormContent {
53
57
  interface IEmbeddedMedia {
54
58
  HTML?: string;
55
59
  }
56
- interface IChart extends ICell {
57
- chartData?: any;
60
+ interface IEntryEntityText extends ICell {
61
+ ValuePath?: string;
62
+ }
63
+ interface IEntryIcon extends ICell {
64
+ icon?: string;
65
+ color?: string;
66
+ action?: {
67
+ type: "NONE" | "LINK" | "RELATIONSHIPS";
68
+ params?: {
69
+ URL?: string;
70
+ };
71
+ };
58
72
  }
59
73
  }
60
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bruce-models",
3
- "version": "2.7.5",
3
+ "version": "2.7.6",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/bruce-models.umd.js",