@axinom/mosaic-messages 0.51.0-rc.3 → 0.51.0-rc.5

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.
Files changed (63) hide show
  1. package/dist/generated/schemas/payloads/localization/commands/declare-entity-definition-command.json +146 -3
  2. package/dist/generated/schemas/payloads/localization/commands/index.d.ts +105 -0
  3. package/dist/generated/schemas/payloads/localization/commands/index.d.ts.map +1 -1
  4. package/dist/generated/schemas/payloads/localization/events/entity-definition-declare-failed-event.json +146 -3
  5. package/dist/generated/schemas/payloads/localization/events/index.d.ts +105 -0
  6. package/dist/generated/schemas/payloads/localization/events/index.d.ts.map +1 -1
  7. package/dist/generated/types/payloads/localization/types/entity-field-definition.d.ts +9 -4
  8. package/dist/generated/types/payloads/localization/types/entity-field-definition.d.ts.map +1 -1
  9. package/dist/generated/types/payloads/localization/types/field-type.d.ts +5 -0
  10. package/dist/generated/types/payloads/localization/types/field-type.d.ts.map +1 -0
  11. package/dist/generated/types/payloads/localization/types/{field-definition-field-type.js → field-type.js} +1 -1
  12. package/dist/generated/types/payloads/localization/types/field-type.js.map +1 -0
  13. package/dist/generated/types/payloads/localization/types/index.d.ts +8 -2
  14. package/dist/generated/types/payloads/localization/types/index.d.ts.map +1 -1
  15. package/dist/generated/types/payloads/localization/types/index.js +8 -2
  16. package/dist/generated/types/payloads/localization/types/index.js.map +1 -1
  17. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-edit-property-map.d.ts +18 -0
  18. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-edit-property-map.d.ts.map +1 -0
  19. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-edit-property-map.js +3 -0
  20. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-edit-property-map.js.map +1 -0
  21. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-edit.d.ts +20 -0
  22. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-edit.d.ts.map +1 -0
  23. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-edit.js +3 -0
  24. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-edit.js.map +1 -0
  25. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-fallback-type.d.ts +5 -0
  26. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-fallback-type.d.ts.map +1 -0
  27. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-fallback-type.js +3 -0
  28. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-fallback-type.js.map +1 -0
  29. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-view-property-map.d.ts +10 -0
  30. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-view-property-map.d.ts.map +1 -0
  31. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-view-property-map.js +3 -0
  32. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-view-property-map.js.map +1 -0
  33. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-view.d.ts +20 -0
  34. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-view.d.ts.map +1 -0
  35. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-view.js +3 -0
  36. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition-view.js.map +1 -0
  37. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition.d.ts +21 -0
  38. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition.d.ts.map +1 -0
  39. package/dist/generated/types/payloads/localization/types/{field-definition-ui-field-type.js → ui-field-custom-definition.js} +1 -1
  40. package/dist/generated/types/payloads/localization/types/ui-field-custom-definition.js.map +1 -0
  41. package/dist/generated/types/payloads/localization/types/ui-field-type.d.ts +5 -0
  42. package/dist/generated/types/payloads/localization/types/ui-field-type.d.ts.map +1 -0
  43. package/dist/generated/types/payloads/localization/types/ui-field-type.js +3 -0
  44. package/dist/generated/types/payloads/localization/types/ui-field-type.js.map +1 -0
  45. package/package.json +4 -4
  46. package/src/generated/schemas/payloads/localization/commands/declare-entity-definition-command.json +146 -3
  47. package/src/generated/schemas/payloads/localization/events/entity-definition-declare-failed-event.json +146 -3
  48. package/src/generated/types/payloads/localization/types/entity-field-definition.ts +9 -4
  49. package/src/generated/types/payloads/localization/types/{field-definition-field-type.ts → field-type.ts} +1 -1
  50. package/src/generated/types/payloads/localization/types/index.ts +9 -3
  51. package/src/generated/types/payloads/localization/types/ui-field-custom-definition-edit-property-map.ts +17 -0
  52. package/src/generated/types/payloads/localization/types/ui-field-custom-definition-edit.ts +15 -0
  53. package/src/generated/types/payloads/localization/types/ui-field-custom-definition-fallback-type.ts +4 -0
  54. package/src/generated/types/payloads/localization/types/ui-field-custom-definition-view-property-map.ts +9 -0
  55. package/src/generated/types/payloads/localization/types/ui-field-custom-definition-view.ts +15 -0
  56. package/src/generated/types/payloads/localization/types/ui-field-custom-definition.ts +20 -0
  57. package/src/generated/types/payloads/localization/types/{field-definition-ui-field-type.ts → ui-field-type.ts} +1 -1
  58. package/dist/generated/types/payloads/localization/types/field-definition-field-type.d.ts +0 -5
  59. package/dist/generated/types/payloads/localization/types/field-definition-field-type.d.ts.map +0 -1
  60. package/dist/generated/types/payloads/localization/types/field-definition-field-type.js.map +0 -1
  61. package/dist/generated/types/payloads/localization/types/field-definition-ui-field-type.d.ts +0 -5
  62. package/dist/generated/types/payloads/localization/types/field-definition-ui-field-type.d.ts.map +0 -1
  63. package/dist/generated/types/payloads/localization/types/field-definition-ui-field-type.js.map +0 -1
@@ -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: FieldDefinitionFieldType;
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: FieldDefinitionUiFieldType;
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,4 +1,4 @@
1
1
  /**
2
2
  * The data type of the field defined by this definition
3
3
  */
4
- export type FieldDefinitionFieldType = "STRING";
4
+ export type FieldType = "STRING";
@@ -2,8 +2,14 @@ export * from './entity-field-definition';
2
2
  export * from './entity-localization';
3
3
  export * from './entity-localization-field';
4
4
  export * from './entity-localization-field-state';
5
- export * from './field-definition-field-type';
6
5
  export * from './field-definition-field-validation-rule';
7
- export * from './field-definition-ui-field-type';
8
6
  export * from './field-definition-validation-rule';
9
- export * from './field-definition-validation-severity';
7
+ export * from './field-definition-validation-severity';
8
+ export * from './field-type';
9
+ export * from './ui-field-custom-definition';
10
+ export * from './ui-field-custom-definition-edit';
11
+ export * from './ui-field-custom-definition-edit-property-map';
12
+ export * from './ui-field-custom-definition-fallback-type';
13
+ export * from './ui-field-custom-definition-view';
14
+ export * from './ui-field-custom-definition-view-property-map';
15
+ export * from './ui-field-type';
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Mapping of property names that will be passed from the localization form to the custom Piral extension used for editing the localized value
3
+ */
4
+ export interface UiFieldCustomDefinitionEditPropertyMap {
5
+ /**
6
+ * The name of the property that contains the locale (defaults to 'locale' if not provided)
7
+ */
8
+ locale?: string;
9
+ /**
10
+ * The name of the property that contains the localized value (defaults to 'value' if not provided)
11
+ */
12
+ value?: string;
13
+ /**
14
+ * 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)
15
+ */
16
+ on_change?: string;
17
+ }
@@ -0,0 +1,15 @@
1
+ import { UiFieldCustomDefinitionEditPropertyMap } from './ui-field-custom-definition-edit-property-map';
2
+ /**
3
+ * Configuration of the Piral extension used for editing the translated value
4
+ */
5
+ export interface UiFieldCustomDefinitionEdit {
6
+ /**
7
+ * Custom Piral extension name that will be used for editing localization
8
+ */
9
+ component: string;
10
+ props?: { [name: string]: string | number | boolean | (unknown)[] | { [name: string]: unknown } };
11
+ /**
12
+ * Mapping of property names that will be passed from the localization form to the custom Piral extension used for editing the localized value
13
+ */
14
+ property_map?: UiFieldCustomDefinitionEditPropertyMap;
15
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * The fallback type to use if the custom UI field type is not available
3
+ */
4
+ export type UiFieldCustomDefinitionFallbackType = "TEXTBOX" | "TEXTAREA";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Mapping of property names that will be passed from the localization form to the custom Piral extension for viewing the source value
3
+ */
4
+ export interface UiFieldCustomDefinitionViewPropertyMap {
5
+ /**
6
+ * The name of the property that contains localization source value (defaults to 'value' if not provided)
7
+ */
8
+ value?: string;
9
+ }
@@ -0,0 +1,15 @@
1
+ import { UiFieldCustomDefinitionViewPropertyMap } from './ui-field-custom-definition-view-property-map';
2
+ /**
3
+ * Configuration of the Piral extension used for viewing the source value
4
+ */
5
+ export interface UiFieldCustomDefinitionView {
6
+ /**
7
+ * Piral extension name that will be used for viewing source value
8
+ */
9
+ component: string;
10
+ props?: { [name: string]: string | number | boolean | (unknown)[] | { [name: string]: unknown } };
11
+ /**
12
+ * Mapping of property names that will be passed from the localization form to the custom Piral extension for viewing the source value
13
+ */
14
+ property_map?: UiFieldCustomDefinitionViewPropertyMap;
15
+ }
@@ -0,0 +1,20 @@
1
+ import { UiFieldCustomDefinitionEdit } from './ui-field-custom-definition-edit';
2
+ import { UiFieldCustomDefinitionFallbackType } from './ui-field-custom-definition-fallback-type';
3
+ import { UiFieldCustomDefinitionView } from './ui-field-custom-definition-view';
4
+ /**
5
+ * Definition of custom Piral extension that should be used to display localization source value and translation editor field
6
+ */
7
+ export interface UiFieldCustomDefinition {
8
+ /**
9
+ * The fallback type to use if the custom UI field type is not available
10
+ */
11
+ fallback_type: UiFieldCustomDefinitionFallbackType;
12
+ /**
13
+ * Configuration of the Piral extension used for viewing the source value
14
+ */
15
+ view?: UiFieldCustomDefinitionView;
16
+ /**
17
+ * Configuration of the Piral extension used for editing the translated value
18
+ */
19
+ edit?: UiFieldCustomDefinitionEdit;
20
+ }
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The type of user interface element that should be used to display this field
3
3
  */
4
- export type FieldDefinitionUiFieldType = "TEXTBOX" | "TEXTAREA";
4
+ export type UiFieldType = "TEXTBOX" | "TEXTAREA" | "CUSTOM";
@@ -1,5 +0,0 @@
1
- /**
2
- * The data type of the field defined by this definition
3
- */
4
- export type FieldDefinitionFieldType = "STRING";
5
- //# sourceMappingURL=field-definition-field-type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"field-definition-field-type.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/types/field-definition-field-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"field-definition-field-type.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/types/field-definition-field-type.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- /**
2
- * The type of user interface element that should be used to display this field
3
- */
4
- export type FieldDefinitionUiFieldType = "TEXTBOX" | "TEXTAREA";
5
- //# sourceMappingURL=field-definition-ui-field-type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"field-definition-ui-field-type.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/types/field-definition-ui-field-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,SAAS,GAAG,UAAU,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"field-definition-ui-field-type.js","sourceRoot":"","sources":["../../../../../../src/generated/types/payloads/localization/types/field-definition-ui-field-type.ts"],"names":[],"mappings":""}