bruce-models 2.8.9 → 2.9.0
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.
- package/dist/bruce-models.es5.js +1 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +1 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/custom-form/custom-form-content.d.ts +9 -11
- package/package.json +1 -1
package/dist/lib/bruce-models.js
CHANGED
|
@@ -98,5 +98,5 @@ __exportStar(require("./internal/uploader"), exports);
|
|
|
98
98
|
__exportStar(require("./plugin/plugin"), exports);
|
|
99
99
|
__exportStar(require("./environment"), exports);
|
|
100
100
|
__exportStar(require("./data-source/data-source"), exports);
|
|
101
|
-
exports.VERSION = "2.
|
|
101
|
+
exports.VERSION = "2.9.0";
|
|
102
102
|
//# sourceMappingURL=bruce-models.js.map
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
* Describes content of a COMPONENT_STACK type custom form.
|
|
3
3
|
*/
|
|
4
4
|
export declare namespace CustomFormContent {
|
|
5
|
-
|
|
5
|
+
interface IContent {
|
|
6
6
|
size?: {
|
|
7
7
|
width: number;
|
|
8
8
|
};
|
|
9
9
|
stack: IStackItem[];
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
interface IStackItem {
|
|
12
12
|
component: Component;
|
|
13
13
|
params: StackItemParams;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
type Component = "STATIC_TEXT" | "ENTITY_TEXT" | "IFRAME" | "ENTITY_GALLERY" | "ENTITY_ATTRIBUTES" | "ENTITY_ATTRIBUTE_GROUP" | "ENTITY_COMMENTS" | "BUTTON";
|
|
16
|
+
interface IStaticTextParams {
|
|
17
17
|
text: string;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
interface IEntityTextParams {
|
|
20
20
|
attrPath: string;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
interface IIFrameParams {
|
|
23
23
|
url: string;
|
|
24
24
|
height: number;
|
|
25
25
|
}
|
|
@@ -28,7 +28,7 @@ export declare namespace CustomFormContent {
|
|
|
28
28
|
* Navigation is between other forms or the default info-view dialog.
|
|
29
29
|
* We also allow toggling visible relationship parabolas to accommodate for older versions of these custom forms as they used to have an action like that.
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
interface IButtonParams {
|
|
32
32
|
action: "OPEN_FORM" | "OPEN_INFO_VIEW" | "TOGGLE_VISIBLE_RELATIONS";
|
|
33
33
|
formId?: number;
|
|
34
34
|
buttonText?: string;
|
|
@@ -36,16 +36,14 @@ export declare namespace CustomFormContent {
|
|
|
36
36
|
buttonIconSide?: "LEFT" | "RIGHT";
|
|
37
37
|
}
|
|
38
38
|
interface IAttrRow {
|
|
39
|
-
name: string;
|
|
40
39
|
attrPath: string;
|
|
41
40
|
}
|
|
42
41
|
/**
|
|
43
42
|
* This is an alternative to the entity attributes section.
|
|
44
43
|
* The other one will use the entity type's schema to display all attributes whereas this one will display specific ones.
|
|
45
44
|
*/
|
|
46
|
-
|
|
45
|
+
interface IEntityAttrGroupParams {
|
|
47
46
|
items: IAttrRow[];
|
|
48
47
|
}
|
|
49
|
-
|
|
50
|
-
export {};
|
|
48
|
+
type StackItemParams = IStaticTextParams | IEntityTextParams | IIFrameParams | IButtonParams | IEntityAttrGroupParams | any;
|
|
51
49
|
}
|