jmapcloud-ng-core-types 1.0.37 → 1.0.39
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/index.ts +2 -2
- package/package.json +1 -1
- package/public/core.d.ts +2 -2
- package/public/jmap/formJMC.d.ts +37 -35
package/index.ts
CHANGED
|
@@ -585,8 +585,8 @@ export interface JServerState extends JServerInfo {
|
|
|
585
585
|
export type JHistoryListener = (oldValue: string | undefined, newValue: string | undefined) => void
|
|
586
586
|
|
|
587
587
|
export interface JFormJMCService {
|
|
588
|
-
getJsonForm(layerId: string):
|
|
589
|
-
getForm(layerId: string):
|
|
588
|
+
getJsonForm(layerId: string): JJsonFormSchemas
|
|
589
|
+
getForm(layerId: string): Promise<JFormJMC>
|
|
590
590
|
}
|
|
591
591
|
|
|
592
592
|
export interface JFormService {
|
package/package.json
CHANGED
package/public/core.d.ts
CHANGED
|
@@ -10262,7 +10262,7 @@ declare namespace JMap {
|
|
|
10262
10262
|
* .catch(error => console.error("An error occurred when getting jsonForm schema", error))
|
|
10263
10263
|
* ```
|
|
10264
10264
|
*/
|
|
10265
|
-
function getJsonForm(layerId: JId):
|
|
10265
|
+
function getJsonForm(layerId: JId): JJsonFormSchemas
|
|
10266
10266
|
|
|
10267
10267
|
/**
|
|
10268
10268
|
* ***JMap.FormJMC.getForm***
|
|
@@ -10281,7 +10281,7 @@ declare namespace JMap {
|
|
|
10281
10281
|
* .catch(error => console.error("An error occurred when getting the form for layer f47ac10b-58cc-4372-a567-0e02b2c3d479", error))
|
|
10282
10282
|
* ```
|
|
10283
10283
|
*/
|
|
10284
|
-
function getForm(layerId: JId):
|
|
10284
|
+
function getForm(layerId: JId): Promise<JFormJMC>
|
|
10285
10285
|
}
|
|
10286
10286
|
/**
|
|
10287
10287
|
* **JMap.Form**
|
package/public/jmap/formJMC.d.ts
CHANGED
|
@@ -1,25 +1,32 @@
|
|
|
1
1
|
declare interface JJsonFormSchemas {
|
|
2
|
-
schema:
|
|
3
|
-
uiSchema:
|
|
2
|
+
schema: JFormSchemaJMC | null
|
|
3
|
+
uiSchema: FormNodeVertical | null
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
declare interface
|
|
6
|
+
declare interface JFormSchemaJMC {
|
|
7
7
|
type: "object"
|
|
8
8
|
properties: {
|
|
9
|
-
[key: string]:
|
|
10
|
-
type: string
|
|
11
|
-
format?: string
|
|
12
|
-
}
|
|
9
|
+
[key: string]: JFormSchemaPropertyJMC
|
|
13
10
|
}
|
|
14
11
|
required: string[]
|
|
15
12
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
|
|
14
|
+
declare interface JFormSchemaPropertyJMC {
|
|
15
|
+
type: FORMSCHEMA_TYPES
|
|
16
|
+
format?: string
|
|
17
|
+
title?: string
|
|
18
|
+
default?: any
|
|
19
|
+
minimum?: number
|
|
20
|
+
maximum?: number
|
|
21
|
+
enum?: any[]
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare const enum FORMSCHEMA_TYPES {
|
|
25
|
+
STRING = "string",
|
|
26
|
+
INTEGER = "integer",
|
|
27
|
+
NUMBER = "number",
|
|
28
|
+
BOOLEAN = "boolean",
|
|
29
|
+
ARRAY = "array"
|
|
23
30
|
}
|
|
24
31
|
|
|
25
32
|
declare interface JFormJMC {
|
|
@@ -36,11 +43,6 @@ declare interface JFormJMC {
|
|
|
36
43
|
dataSourceId: string
|
|
37
44
|
}
|
|
38
45
|
|
|
39
|
-
declare interface JJsonFormUISchema {
|
|
40
|
-
type: "VerticalLayout"
|
|
41
|
-
elements: JJsonFormControlElement[]
|
|
42
|
-
}
|
|
43
|
-
|
|
44
46
|
interface FormNodeBase {
|
|
45
47
|
type: string
|
|
46
48
|
designComponent: string
|
|
@@ -48,7 +50,7 @@ interface FormNodeBase {
|
|
|
48
50
|
icon: any
|
|
49
51
|
}
|
|
50
52
|
|
|
51
|
-
|
|
53
|
+
declare interface FormNodeControl extends FormNodeBase {
|
|
52
54
|
type: "Control"
|
|
53
55
|
title?: string
|
|
54
56
|
scope: string
|
|
@@ -56,25 +58,25 @@ export interface FormNodeControl extends FormNodeBase {
|
|
|
56
58
|
readonly: boolean
|
|
57
59
|
}
|
|
58
60
|
}
|
|
59
|
-
|
|
61
|
+
declare interface FormNodeLabel extends FormNodeBase {
|
|
60
62
|
designComponent: "Label"
|
|
61
63
|
type: "Label"
|
|
62
64
|
text?: string
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
|
|
67
|
+
declare interface FormNodeText extends FormNodeControl {
|
|
66
68
|
designComponent: "Text"
|
|
67
69
|
options: FormNodeControl["options"] & {
|
|
68
70
|
multi: boolean
|
|
69
71
|
}
|
|
70
72
|
}
|
|
71
|
-
|
|
73
|
+
declare interface FormNodeNumber extends FormNodeControl {
|
|
72
74
|
designComponent: "Number"
|
|
73
75
|
options: FormNodeControl["options"] & {
|
|
74
76
|
slider: boolean
|
|
75
77
|
}
|
|
76
78
|
}
|
|
77
|
-
|
|
79
|
+
declare interface FormNodeBoolean extends FormNodeControl {
|
|
78
80
|
designComponent: "Boolean"
|
|
79
81
|
options: FormNodeControl["options"] & {
|
|
80
82
|
toggle: boolean
|
|
@@ -83,49 +85,49 @@ export interface FormNodeBoolean extends FormNodeControl {
|
|
|
83
85
|
uncheckedValue: string | number
|
|
84
86
|
}
|
|
85
87
|
}
|
|
86
|
-
|
|
88
|
+
declare interface FormNodeDate extends FormNodeControl {
|
|
87
89
|
designComponent: "Date"
|
|
88
90
|
}
|
|
89
|
-
|
|
91
|
+
declare interface FormNodeList extends FormNodeControl {
|
|
90
92
|
designComponent: "List"
|
|
91
93
|
options: FormNodeControl["options"] & {
|
|
92
94
|
format?: string
|
|
93
95
|
}
|
|
94
96
|
}
|
|
95
97
|
|
|
96
|
-
|
|
98
|
+
declare interface FormNodeLayout extends FormNodeBase {
|
|
97
99
|
type: string
|
|
98
100
|
elements: FormNode[]
|
|
99
101
|
}
|
|
100
102
|
|
|
101
|
-
|
|
103
|
+
declare interface FormNodeVertical extends FormNodeLayout {
|
|
102
104
|
type: "VerticalLayout"
|
|
103
105
|
designComponent: "VerticalLayout"
|
|
104
106
|
isRoot?: boolean
|
|
105
107
|
}
|
|
106
108
|
|
|
107
|
-
|
|
109
|
+
declare interface FormNodeHorizontal extends FormNodeLayout {
|
|
108
110
|
type: "HorizontalLayout"
|
|
109
111
|
designComponent: "HorizontalLayout"
|
|
110
112
|
}
|
|
111
|
-
|
|
113
|
+
declare interface FormNodeGroup extends FormNodeLayout {
|
|
112
114
|
type: "Group"
|
|
113
115
|
designComponent: "Group"
|
|
114
116
|
label?: string
|
|
115
117
|
}
|
|
116
118
|
|
|
117
|
-
|
|
119
|
+
declare interface FormNodeTabs extends FormNodeLayout {
|
|
118
120
|
type: "Categorization"
|
|
119
121
|
designComponent: "Tabs"
|
|
120
122
|
}
|
|
121
123
|
|
|
122
|
-
|
|
124
|
+
declare interface FormNodeTab extends FormNodeLayout {
|
|
123
125
|
type: "Category"
|
|
124
126
|
designComponent: "Category"
|
|
125
127
|
label?: string
|
|
126
128
|
}
|
|
127
129
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
+
declare type FormNodesControl = FormNodeText | FormNodeNumber | FormNodeBoolean | FormNodeDate | FormNodeList
|
|
131
|
+
declare type FormNodesLayout = FormNodeVertical | FormNodeHorizontal | FormNodeGroup | FormNodeTabs | FormNodeTab
|
|
130
132
|
|
|
131
|
-
|
|
133
|
+
declare type FormNode = FormNodesControl | FormNodesLayout | FormNodeLabel
|