@axinom/mosaic-messages 0.51.0-rc.1 → 0.51.0-rc.11
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/generated/schemas/payloads/localization/commands/declare-entity-definition-command.json +146 -3
- package/dist/generated/schemas/payloads/localization/commands/index.d.ts +105 -0
- package/dist/generated/schemas/payloads/localization/commands/index.d.ts.map +1 -1
- package/dist/generated/schemas/payloads/localization/events/entity-definition-declare-failed-event.json +146 -3
- package/dist/generated/schemas/payloads/localization/events/index.d.ts +105 -0
- package/dist/generated/schemas/payloads/localization/events/index.d.ts.map +1 -1
- package/dist/generated/types/payloads/localization/types/entity-field-definition.d.ts +9 -4
- package/dist/generated/types/payloads/localization/types/entity-field-definition.d.ts.map +1 -1
- package/dist/generated/types/payloads/localization/types/field-type.d.ts +5 -0
- package/dist/generated/types/payloads/localization/types/field-type.d.ts.map +1 -0
- package/dist/generated/types/payloads/localization/types/{field-definition-field-type.js → field-type.js} +1 -1
- package/dist/generated/types/payloads/localization/types/field-type.js.map +1 -0
- package/dist/generated/types/payloads/localization/types/index.d.ts +8 -2
- package/dist/generated/types/payloads/localization/types/index.d.ts.map +1 -1
- package/dist/generated/types/payloads/localization/types/index.js +8 -2
- package/dist/generated/types/payloads/localization/types/index.js.map +1 -1
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-edit-property-map.d.ts +18 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-edit-property-map.d.ts.map +1 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-edit-property-map.js +3 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-edit-property-map.js.map +1 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-edit.d.ts +20 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-edit.d.ts.map +1 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-edit.js +3 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-edit.js.map +1 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-fallback-type.d.ts +5 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-fallback-type.d.ts.map +1 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-fallback-type.js +3 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-fallback-type.js.map +1 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-view-property-map.d.ts +10 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-view-property-map.d.ts.map +1 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-view-property-map.js +3 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-view-property-map.js.map +1 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-view.d.ts +20 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-view.d.ts.map +1 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-view.js +3 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-view.js.map +1 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition.d.ts +21 -0
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition.d.ts.map +1 -0
- package/dist/generated/types/payloads/localization/types/{field-definition-ui-field-type.js → ui-field-custom-definition.js} +1 -1
- package/dist/generated/types/payloads/localization/types/ui-field-custom-definition.js.map +1 -0
- package/dist/generated/types/payloads/localization/types/ui-field-type.d.ts +5 -0
- package/dist/generated/types/payloads/localization/types/ui-field-type.d.ts.map +1 -0
- package/dist/generated/types/payloads/localization/types/ui-field-type.js +3 -0
- package/dist/generated/types/payloads/localization/types/ui-field-type.js.map +1 -0
- package/package.json +4 -4
- package/src/generated/schemas/payloads/localization/commands/declare-entity-definition-command.json +146 -3
- package/src/generated/schemas/payloads/localization/events/entity-definition-declare-failed-event.json +146 -3
- package/src/generated/types/payloads/localization/types/entity-field-definition.ts +9 -4
- package/src/generated/types/payloads/localization/types/{field-definition-field-type.ts → field-type.ts} +1 -1
- package/src/generated/types/payloads/localization/types/index.ts +9 -3
- package/src/generated/types/payloads/localization/types/ui-field-custom-definition-edit-property-map.ts +17 -0
- package/src/generated/types/payloads/localization/types/ui-field-custom-definition-edit.ts +15 -0
- package/src/generated/types/payloads/localization/types/ui-field-custom-definition-fallback-type.ts +4 -0
- package/src/generated/types/payloads/localization/types/ui-field-custom-definition-view-property-map.ts +9 -0
- package/src/generated/types/payloads/localization/types/ui-field-custom-definition-view.ts +15 -0
- package/src/generated/types/payloads/localization/types/ui-field-custom-definition.ts +20 -0
- package/src/generated/types/payloads/localization/types/{field-definition-ui-field-type.ts → ui-field-type.ts} +1 -1
- package/dist/generated/types/payloads/localization/types/field-definition-field-type.d.ts +0 -5
- package/dist/generated/types/payloads/localization/types/field-definition-field-type.d.ts.map +0 -1
- package/dist/generated/types/payloads/localization/types/field-definition-field-type.js.map +0 -1
- package/dist/generated/types/payloads/localization/types/field-definition-ui-field-type.d.ts +0 -5
- package/dist/generated/types/payloads/localization/types/field-definition-ui-field-type.d.ts.map +0 -1
- package/dist/generated/types/payloads/localization/types/field-definition-ui-field-type.js.map +0 -1
package/dist/generated/schemas/payloads/localization/commands/declare-entity-definition-command.json
CHANGED
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
"field_type": {
|
|
63
63
|
"type": "string",
|
|
64
|
-
"title": "
|
|
64
|
+
"title": "field_type",
|
|
65
65
|
"enum": [
|
|
66
66
|
"STRING"
|
|
67
67
|
],
|
|
@@ -69,10 +69,11 @@
|
|
|
69
69
|
},
|
|
70
70
|
"ui_field_type": {
|
|
71
71
|
"type": "string",
|
|
72
|
-
"title": "
|
|
72
|
+
"title": "ui_field_type",
|
|
73
73
|
"enum": [
|
|
74
74
|
"TEXTBOX",
|
|
75
|
-
"TEXTAREA"
|
|
75
|
+
"TEXTAREA",
|
|
76
|
+
"CUSTOM"
|
|
76
77
|
],
|
|
77
78
|
"description": "The type of user interface element that should be used to display this field"
|
|
78
79
|
},
|
|
@@ -92,6 +93,148 @@
|
|
|
92
93
|
"type": "boolean",
|
|
93
94
|
"description": "Set to false if field definition should be deactivated, and send a separate declare command without the field after the field definition is deactivated to completely delete it."
|
|
94
95
|
},
|
|
96
|
+
"ui_field_custom_definition": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"title": "ui_field_custom_definition",
|
|
99
|
+
"description": "Definition of custom Piral extension that should be used to display localization source value and translation editor field",
|
|
100
|
+
"required": [
|
|
101
|
+
"fallback_type"
|
|
102
|
+
],
|
|
103
|
+
"properties": {
|
|
104
|
+
"fallback_type": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"title": "ui_field_custom_definition_fallback_type",
|
|
107
|
+
"enum": [
|
|
108
|
+
"TEXTBOX",
|
|
109
|
+
"TEXTAREA"
|
|
110
|
+
],
|
|
111
|
+
"description": "The fallback type to use if the custom UI field type is not available"
|
|
112
|
+
},
|
|
113
|
+
"view": {
|
|
114
|
+
"type": "object",
|
|
115
|
+
"title": "ui_field_custom_definition_view",
|
|
116
|
+
"description": "Configuration of the Piral extension used for viewing the source value",
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"properties": {
|
|
119
|
+
"component": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"description": "Piral extension name that will be used for viewing source value"
|
|
122
|
+
},
|
|
123
|
+
"props": {
|
|
124
|
+
"type": "object",
|
|
125
|
+
"title": "ui_field_custom_definition_view_props",
|
|
126
|
+
"description": "Additional properties and their values defined as key-value pairs that will be passed to the view component",
|
|
127
|
+
"additionalProperties": {
|
|
128
|
+
"oneOf": [
|
|
129
|
+
{
|
|
130
|
+
"type": "string",
|
|
131
|
+
"description": "A string property for the view component"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"type": "number",
|
|
135
|
+
"description": "A number property for the view component"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"type": "boolean",
|
|
139
|
+
"description": "A boolean property for the view component"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"type": "array",
|
|
143
|
+
"description": "A null property for the view component"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"type": "object",
|
|
147
|
+
"description": "An object property for the view component",
|
|
148
|
+
"additionalProperties": true
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"property_map": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"title": "ui_field_custom_definition_view_property_map",
|
|
156
|
+
"description": "Mapping of property names that will be passed from the localization form to the custom Piral extension for viewing the source value",
|
|
157
|
+
"properties": {
|
|
158
|
+
"value": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"description": "The name of the property that contains localization source value (defaults to 'value' if not provided)"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"additionalProperties": false
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"required": [
|
|
167
|
+
"component"
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
"edit": {
|
|
171
|
+
"type": "object",
|
|
172
|
+
"title": "ui_field_custom_definition_edit",
|
|
173
|
+
"description": "Configuration of the Piral extension used for editing the translated value",
|
|
174
|
+
"additionalProperties": false,
|
|
175
|
+
"properties": {
|
|
176
|
+
"component": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"description": "Custom Piral extension name that will be used for editing localization"
|
|
179
|
+
},
|
|
180
|
+
"props": {
|
|
181
|
+
"type": "object",
|
|
182
|
+
"title": "ui_field_custom_definition_edit_props",
|
|
183
|
+
"description": "Additional properties and their values defined as key-value pairs that will be passed to the edit component",
|
|
184
|
+
"additionalProperties": {
|
|
185
|
+
"oneOf": [
|
|
186
|
+
{
|
|
187
|
+
"type": "string",
|
|
188
|
+
"description": "A string property for the view component"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"type": "number",
|
|
192
|
+
"description": "A number property for the view component"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"type": "boolean",
|
|
196
|
+
"description": "A boolean property for the view component"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"type": "array",
|
|
200
|
+
"description": "A null property for the view component"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"type": "object",
|
|
204
|
+
"description": "An object property for the view component",
|
|
205
|
+
"additionalProperties": true
|
|
206
|
+
}
|
|
207
|
+
]
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"property_map": {
|
|
211
|
+
"type": "object",
|
|
212
|
+
"title": "ui_field_custom_definition_edit_property_map",
|
|
213
|
+
"description": "Mapping of property names that will be passed from the localization form to the custom Piral extension used for editing the localized value",
|
|
214
|
+
"properties": {
|
|
215
|
+
"locale": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"description": "The name of the property that contains the locale (defaults to 'locale' if not provided)"
|
|
218
|
+
},
|
|
219
|
+
"value": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"description": "The name of the property that contains the localized value (defaults to 'value' if not provided)"
|
|
222
|
+
},
|
|
223
|
+
"on_change": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"description": "The name of the property that contains the callback function that should be called when the value is changed (defaults to 'onChange' if not provided)"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"additionalProperties": false
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"required": [
|
|
232
|
+
"component"
|
|
233
|
+
]
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"additionalProperties": false
|
|
237
|
+
},
|
|
95
238
|
"field_validation_rules": {
|
|
96
239
|
"type": "array",
|
|
97
240
|
"description": "An array of field validation rules.",
|
|
@@ -77,6 +77,111 @@ export declare const DeclareEntityDefinitionCommandSchema: {
|
|
|
77
77
|
type: string;
|
|
78
78
|
description: string;
|
|
79
79
|
};
|
|
80
|
+
ui_field_custom_definition: {
|
|
81
|
+
type: string;
|
|
82
|
+
title: string;
|
|
83
|
+
description: string;
|
|
84
|
+
required: string[];
|
|
85
|
+
properties: {
|
|
86
|
+
fallback_type: {
|
|
87
|
+
type: string;
|
|
88
|
+
title: string;
|
|
89
|
+
enum: string[];
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
view: {
|
|
93
|
+
type: string;
|
|
94
|
+
title: string;
|
|
95
|
+
description: string;
|
|
96
|
+
additionalProperties: boolean;
|
|
97
|
+
properties: {
|
|
98
|
+
component: {
|
|
99
|
+
type: string;
|
|
100
|
+
description: string;
|
|
101
|
+
};
|
|
102
|
+
props: {
|
|
103
|
+
type: string;
|
|
104
|
+
title: string;
|
|
105
|
+
description: string;
|
|
106
|
+
additionalProperties: {
|
|
107
|
+
oneOf: ({
|
|
108
|
+
type: string;
|
|
109
|
+
description: string;
|
|
110
|
+
additionalProperties?: undefined;
|
|
111
|
+
} | {
|
|
112
|
+
type: string;
|
|
113
|
+
description: string;
|
|
114
|
+
additionalProperties: boolean;
|
|
115
|
+
})[];
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
property_map: {
|
|
119
|
+
type: string;
|
|
120
|
+
title: string;
|
|
121
|
+
description: string;
|
|
122
|
+
properties: {
|
|
123
|
+
value: {
|
|
124
|
+
type: string;
|
|
125
|
+
description: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
additionalProperties: boolean;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
required: string[];
|
|
132
|
+
};
|
|
133
|
+
edit: {
|
|
134
|
+
type: string;
|
|
135
|
+
title: string;
|
|
136
|
+
description: string;
|
|
137
|
+
additionalProperties: boolean;
|
|
138
|
+
properties: {
|
|
139
|
+
component: {
|
|
140
|
+
type: string;
|
|
141
|
+
description: string;
|
|
142
|
+
};
|
|
143
|
+
props: {
|
|
144
|
+
type: string;
|
|
145
|
+
title: string;
|
|
146
|
+
description: string;
|
|
147
|
+
additionalProperties: {
|
|
148
|
+
oneOf: ({
|
|
149
|
+
type: string;
|
|
150
|
+
description: string;
|
|
151
|
+
additionalProperties?: undefined;
|
|
152
|
+
} | {
|
|
153
|
+
type: string;
|
|
154
|
+
description: string;
|
|
155
|
+
additionalProperties: boolean;
|
|
156
|
+
})[];
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
property_map: {
|
|
160
|
+
type: string;
|
|
161
|
+
title: string;
|
|
162
|
+
description: string;
|
|
163
|
+
properties: {
|
|
164
|
+
locale: {
|
|
165
|
+
type: string;
|
|
166
|
+
description: string;
|
|
167
|
+
};
|
|
168
|
+
value: {
|
|
169
|
+
type: string;
|
|
170
|
+
description: string;
|
|
171
|
+
};
|
|
172
|
+
on_change: {
|
|
173
|
+
type: string;
|
|
174
|
+
description: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
additionalProperties: boolean;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
required: string[];
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
additionalProperties: boolean;
|
|
184
|
+
};
|
|
80
185
|
field_validation_rules: {
|
|
81
186
|
type: string;
|
|
82
187
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/schemas/payloads/localization/commands/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,oCAAoC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/schemas/payloads/localization/commands/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiC,CAAC;AACnF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;CAAgC,CAAC;AACjF,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACjG,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;CAAoC,CAAC;AACzF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC;AACvF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwB,CAAC;AACjE,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC"}
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"field_type": {
|
|
60
60
|
"type": "string",
|
|
61
|
-
"title": "
|
|
61
|
+
"title": "field_type",
|
|
62
62
|
"enum": [
|
|
63
63
|
"STRING"
|
|
64
64
|
],
|
|
@@ -66,10 +66,11 @@
|
|
|
66
66
|
},
|
|
67
67
|
"ui_field_type": {
|
|
68
68
|
"type": "string",
|
|
69
|
-
"title": "
|
|
69
|
+
"title": "ui_field_type",
|
|
70
70
|
"enum": [
|
|
71
71
|
"TEXTBOX",
|
|
72
|
-
"TEXTAREA"
|
|
72
|
+
"TEXTAREA",
|
|
73
|
+
"CUSTOM"
|
|
73
74
|
],
|
|
74
75
|
"description": "The type of user interface element that should be used to display this field"
|
|
75
76
|
},
|
|
@@ -89,6 +90,148 @@
|
|
|
89
90
|
"type": "boolean",
|
|
90
91
|
"description": "Set to false if field definition should be deactivated, and send a separate declare command without the field after the field definition is deactivated to completely delete it."
|
|
91
92
|
},
|
|
93
|
+
"ui_field_custom_definition": {
|
|
94
|
+
"type": "object",
|
|
95
|
+
"title": "ui_field_custom_definition",
|
|
96
|
+
"description": "Definition of custom Piral extension that should be used to display localization source value and translation editor field",
|
|
97
|
+
"required": [
|
|
98
|
+
"fallback_type"
|
|
99
|
+
],
|
|
100
|
+
"properties": {
|
|
101
|
+
"fallback_type": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"title": "ui_field_custom_definition_fallback_type",
|
|
104
|
+
"enum": [
|
|
105
|
+
"TEXTBOX",
|
|
106
|
+
"TEXTAREA"
|
|
107
|
+
],
|
|
108
|
+
"description": "The fallback type to use if the custom UI field type is not available"
|
|
109
|
+
},
|
|
110
|
+
"view": {
|
|
111
|
+
"type": "object",
|
|
112
|
+
"title": "ui_field_custom_definition_view",
|
|
113
|
+
"description": "Configuration of the Piral extension used for viewing the source value",
|
|
114
|
+
"additionalProperties": false,
|
|
115
|
+
"properties": {
|
|
116
|
+
"component": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"description": "Piral extension name that will be used for viewing source value"
|
|
119
|
+
},
|
|
120
|
+
"props": {
|
|
121
|
+
"type": "object",
|
|
122
|
+
"title": "ui_field_custom_definition_view_props",
|
|
123
|
+
"description": "Additional properties and their values defined as key-value pairs that will be passed to the view component",
|
|
124
|
+
"additionalProperties": {
|
|
125
|
+
"oneOf": [
|
|
126
|
+
{
|
|
127
|
+
"type": "string",
|
|
128
|
+
"description": "A string property for the view component"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"type": "number",
|
|
132
|
+
"description": "A number property for the view component"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"type": "boolean",
|
|
136
|
+
"description": "A boolean property for the view component"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"type": "array",
|
|
140
|
+
"description": "A null property for the view component"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"type": "object",
|
|
144
|
+
"description": "An object property for the view component",
|
|
145
|
+
"additionalProperties": true
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"property_map": {
|
|
151
|
+
"type": "object",
|
|
152
|
+
"title": "ui_field_custom_definition_view_property_map",
|
|
153
|
+
"description": "Mapping of property names that will be passed from the localization form to the custom Piral extension for viewing the source value",
|
|
154
|
+
"properties": {
|
|
155
|
+
"value": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"description": "The name of the property that contains localization source value (defaults to 'value' if not provided)"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"additionalProperties": false
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"required": [
|
|
164
|
+
"component"
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
"edit": {
|
|
168
|
+
"type": "object",
|
|
169
|
+
"title": "ui_field_custom_definition_edit",
|
|
170
|
+
"description": "Configuration of the Piral extension used for editing the translated value",
|
|
171
|
+
"additionalProperties": false,
|
|
172
|
+
"properties": {
|
|
173
|
+
"component": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"description": "Custom Piral extension name that will be used for editing localization"
|
|
176
|
+
},
|
|
177
|
+
"props": {
|
|
178
|
+
"type": "object",
|
|
179
|
+
"title": "ui_field_custom_definition_edit_props",
|
|
180
|
+
"description": "Additional properties and their values defined as key-value pairs that will be passed to the edit component",
|
|
181
|
+
"additionalProperties": {
|
|
182
|
+
"oneOf": [
|
|
183
|
+
{
|
|
184
|
+
"type": "string",
|
|
185
|
+
"description": "A string property for the view component"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"type": "number",
|
|
189
|
+
"description": "A number property for the view component"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"type": "boolean",
|
|
193
|
+
"description": "A boolean property for the view component"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"type": "array",
|
|
197
|
+
"description": "A null property for the view component"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"type": "object",
|
|
201
|
+
"description": "An object property for the view component",
|
|
202
|
+
"additionalProperties": true
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"property_map": {
|
|
208
|
+
"type": "object",
|
|
209
|
+
"title": "ui_field_custom_definition_edit_property_map",
|
|
210
|
+
"description": "Mapping of property names that will be passed from the localization form to the custom Piral extension used for editing the localized value",
|
|
211
|
+
"properties": {
|
|
212
|
+
"locale": {
|
|
213
|
+
"type": "string",
|
|
214
|
+
"description": "The name of the property that contains the locale (defaults to 'locale' if not provided)"
|
|
215
|
+
},
|
|
216
|
+
"value": {
|
|
217
|
+
"type": "string",
|
|
218
|
+
"description": "The name of the property that contains the localized value (defaults to 'value' if not provided)"
|
|
219
|
+
},
|
|
220
|
+
"on_change": {
|
|
221
|
+
"type": "string",
|
|
222
|
+
"description": "The name of the property that contains the callback function that should be called when the value is changed (defaults to 'onChange' if not provided)"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"additionalProperties": false
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"required": [
|
|
229
|
+
"component"
|
|
230
|
+
]
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"additionalProperties": false
|
|
234
|
+
},
|
|
92
235
|
"field_validation_rules": {
|
|
93
236
|
"type": "array",
|
|
94
237
|
"description": "An array of field validation rules.",
|
|
@@ -133,6 +133,111 @@ export declare const EntityDefinitionDeclareFailedEventSchema: {
|
|
|
133
133
|
type: string;
|
|
134
134
|
description: string;
|
|
135
135
|
};
|
|
136
|
+
ui_field_custom_definition: {
|
|
137
|
+
type: string;
|
|
138
|
+
title: string;
|
|
139
|
+
description: string;
|
|
140
|
+
required: string[];
|
|
141
|
+
properties: {
|
|
142
|
+
fallback_type: {
|
|
143
|
+
type: string;
|
|
144
|
+
title: string;
|
|
145
|
+
enum: string[];
|
|
146
|
+
description: string;
|
|
147
|
+
};
|
|
148
|
+
view: {
|
|
149
|
+
type: string;
|
|
150
|
+
title: string;
|
|
151
|
+
description: string;
|
|
152
|
+
additionalProperties: boolean;
|
|
153
|
+
properties: {
|
|
154
|
+
component: {
|
|
155
|
+
type: string;
|
|
156
|
+
description: string;
|
|
157
|
+
};
|
|
158
|
+
props: {
|
|
159
|
+
type: string;
|
|
160
|
+
title: string;
|
|
161
|
+
description: string;
|
|
162
|
+
additionalProperties: {
|
|
163
|
+
oneOf: ({
|
|
164
|
+
type: string;
|
|
165
|
+
description: string;
|
|
166
|
+
additionalProperties?: undefined;
|
|
167
|
+
} | {
|
|
168
|
+
type: string;
|
|
169
|
+
description: string;
|
|
170
|
+
additionalProperties: boolean;
|
|
171
|
+
})[];
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
property_map: {
|
|
175
|
+
type: string;
|
|
176
|
+
title: string;
|
|
177
|
+
description: string;
|
|
178
|
+
properties: {
|
|
179
|
+
value: {
|
|
180
|
+
type: string;
|
|
181
|
+
description: string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
additionalProperties: boolean;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
required: string[];
|
|
188
|
+
};
|
|
189
|
+
edit: {
|
|
190
|
+
type: string;
|
|
191
|
+
title: string;
|
|
192
|
+
description: string;
|
|
193
|
+
additionalProperties: boolean;
|
|
194
|
+
properties: {
|
|
195
|
+
component: {
|
|
196
|
+
type: string;
|
|
197
|
+
description: string;
|
|
198
|
+
};
|
|
199
|
+
props: {
|
|
200
|
+
type: string;
|
|
201
|
+
title: string;
|
|
202
|
+
description: string;
|
|
203
|
+
additionalProperties: {
|
|
204
|
+
oneOf: ({
|
|
205
|
+
type: string;
|
|
206
|
+
description: string;
|
|
207
|
+
additionalProperties?: undefined;
|
|
208
|
+
} | {
|
|
209
|
+
type: string;
|
|
210
|
+
description: string;
|
|
211
|
+
additionalProperties: boolean;
|
|
212
|
+
})[];
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
property_map: {
|
|
216
|
+
type: string;
|
|
217
|
+
title: string;
|
|
218
|
+
description: string;
|
|
219
|
+
properties: {
|
|
220
|
+
locale: {
|
|
221
|
+
type: string;
|
|
222
|
+
description: string;
|
|
223
|
+
};
|
|
224
|
+
value: {
|
|
225
|
+
type: string;
|
|
226
|
+
description: string;
|
|
227
|
+
};
|
|
228
|
+
on_change: {
|
|
229
|
+
type: string;
|
|
230
|
+
description: string;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
additionalProperties: boolean;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
required: string[];
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
additionalProperties: boolean;
|
|
240
|
+
};
|
|
136
241
|
field_validation_rules: {
|
|
137
242
|
type: string;
|
|
138
243
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/schemas/payloads/localization/events/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAC;AACzG,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA8C,CAAC;AAC7G,eAAO,MAAM,wCAAwC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/schemas/payloads/localization/events/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAC;AACzG,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA8C,CAAC;AAC7G,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAqC,CAAC;AAC3F,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAC;AAC/F,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoC,CAAC;AACzF,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;CAAsC,CAAC;AAC7F,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACjG,eAAO,MAAM,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;CAA0C,CAAC;AACrG,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAC;AAC/F,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;CAAyC,CAAC;AACnG,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4B,CAAC;AACzE,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA8B,CAAC;AAC7E,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAC;AACzG,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA8C,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { FieldDefinitionFieldType } from './field-definition-field-type';
|
|
2
|
-
import { FieldDefinitionUiFieldType } from './field-definition-ui-field-type';
|
|
3
1
|
import { FieldDefinitionValidationRule } from './field-definition-validation-rule';
|
|
2
|
+
import { FieldType } from './field-type';
|
|
3
|
+
import { UiFieldCustomDefinition } from './ui-field-custom-definition';
|
|
4
|
+
import { UiFieldType } from './ui-field-type';
|
|
4
5
|
/**
|
|
5
6
|
* Definition of an entity field.
|
|
6
7
|
*/
|
|
@@ -12,11 +13,11 @@ export interface EntityFieldDefinition {
|
|
|
12
13
|
/**
|
|
13
14
|
* The data type of the field defined by this definition
|
|
14
15
|
*/
|
|
15
|
-
field_type:
|
|
16
|
+
field_type: FieldType;
|
|
16
17
|
/**
|
|
17
18
|
* The type of user interface element that should be used to display this field
|
|
18
19
|
*/
|
|
19
|
-
ui_field_type:
|
|
20
|
+
ui_field_type: UiFieldType;
|
|
20
21
|
/**
|
|
21
22
|
* The title of the field definition
|
|
22
23
|
*/
|
|
@@ -33,6 +34,10 @@ export interface EntityFieldDefinition {
|
|
|
33
34
|
* Set to false if field definition should be deactivated, and send a separate declare command without the field after the field definition is deactivated to completely delete it.
|
|
34
35
|
*/
|
|
35
36
|
is_active?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Definition of custom Piral extension that should be used to display localization source value and translation editor field
|
|
39
|
+
*/
|
|
40
|
+
ui_field_custom_definition?: UiFieldCustomDefinition;
|
|
36
41
|
/**
|
|
37
42
|
* An array of field validation rules.
|
|
38
43
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-field-definition.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/types/entity-field-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"entity-field-definition.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/types/entity-field-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,EAAE,SAAS,CAAC;IACtB;;OAEG;IACH,aAAa,EAAE,WAAW,CAAC;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,0BAA0B,CAAC,EAAE,uBAAuB,CAAC;IACrD;;OAEG;IACH,sBAAsB,CAAC,EAAE,6BAA6B,EAAE,CAAC;CAC1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-type.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/types/field-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC"}
|