@masterteam/form-builder 0.0.38 → 0.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masterteam/form-builder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.39",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/form-builder",
|
|
6
6
|
"linkDirectory": true,
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"rxjs": "^7.8.2",
|
|
20
20
|
"tailwindcss": "^4.2.2",
|
|
21
21
|
"tailwindcss-primeui": "^0.6.1",
|
|
22
|
+
"@masterteam/forms": "^0.0.87",
|
|
22
23
|
"@masterteam/properties": "^0.0.57",
|
|
23
|
-
"@masterteam/icons": "^0.0.15",
|
|
24
24
|
"@masterteam/components": "^0.0.184",
|
|
25
|
-
"@masterteam/
|
|
25
|
+
"@masterteam/icons": "^0.0.15"
|
|
26
26
|
},
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"exports": {
|
|
@@ -27,6 +27,10 @@ declare enum FormBuilderActionKey {
|
|
|
27
27
|
}
|
|
28
28
|
type FieldWidth = '25' | '50' | '100';
|
|
29
29
|
type FormRenderMode = 'sections' | 'steps' | 'tabs' | 'wizard' | undefined;
|
|
30
|
+
interface LocalizedText {
|
|
31
|
+
en: string;
|
|
32
|
+
ar: string;
|
|
33
|
+
}
|
|
30
34
|
interface FormField {
|
|
31
35
|
id: string;
|
|
32
36
|
sectionId: string;
|
|
@@ -35,6 +39,8 @@ interface FormField {
|
|
|
35
39
|
propertyMetadata?: PropertyItem;
|
|
36
40
|
width: FieldWidth;
|
|
37
41
|
order: number;
|
|
42
|
+
/** Optional custom label override (per-locale) stored on the field. */
|
|
43
|
+
label?: LocalizedText;
|
|
38
44
|
hiddenInCreation?: boolean;
|
|
39
45
|
hiddenInEditForm?: boolean;
|
|
40
46
|
isRequired?: boolean;
|
|
@@ -102,6 +108,14 @@ interface AddFieldPayload {
|
|
|
102
108
|
interface UpdateFieldPayload {
|
|
103
109
|
width?: FieldWidth;
|
|
104
110
|
order?: number;
|
|
111
|
+
/**
|
|
112
|
+
* Custom label override (per-locale). Omit the key entirely to keep the
|
|
113
|
+
* existing override unchanged. To reset back to the inherited label, send
|
|
114
|
+
* `useInheritedLabel: true` instead of clearing this with empty strings.
|
|
115
|
+
*/
|
|
116
|
+
label?: LocalizedText;
|
|
117
|
+
/** Reset the field back to its inherited (property) label, dropping any override. */
|
|
118
|
+
useInheritedLabel?: boolean;
|
|
105
119
|
hiddenInCreation?: boolean;
|
|
106
120
|
hiddenInEditForm?: boolean;
|
|
107
121
|
isRequired?: boolean;
|
|
@@ -564,4 +578,4 @@ declare class FormBuilderState extends CrudStateBase<FormSection, FormBuilderSta
|
|
|
564
578
|
}
|
|
565
579
|
|
|
566
580
|
export { AddField, AddSection, AddValidation, DeleteField, DeleteSection, DeleteValidation, FormBuilder, FormBuilderActionKey, FormBuilderFacade, FormBuilderState, GetFormConfiguration, MoveField, ReorderFields, ReorderSections, ResetFormBuilderState, ResetFormConfiguration, ResetFormFromAppForm, SetModuleInfo, SetPreviewInfo, SetProperties, ToggleValidationActive, UpdateField, UpdateFormSettings, UpdateSection, UpdateValidation };
|
|
567
|
-
export type { AddFieldPayload, AddSectionPayload, AddValidationPayload, EnrichedFormField, EnrichedFormSection, FieldWidth, FormBuilderMode, FormBuilderStateModel, FormConfiguration, FormField, FormRenderMode, FormSection, MoveFieldPayload, PreviewInfo, PropertyItem, ReorderFieldPayload, ReorderSectionPayload, Response, ToggleValidationPayload, UpdateFieldPayload, UpdateFormSettingsPayload, UpdateSectionPayload, UpdateValidationPayload, ValidationRule, ValidationSeverity };
|
|
581
|
+
export type { AddFieldPayload, AddSectionPayload, AddValidationPayload, EnrichedFormField, EnrichedFormSection, FieldWidth, FormBuilderMode, FormBuilderStateModel, FormConfiguration, FormField, FormRenderMode, FormSection, LocalizedText, MoveFieldPayload, PreviewInfo, PropertyItem, ReorderFieldPayload, ReorderSectionPayload, Response, ToggleValidationPayload, UpdateFieldPayload, UpdateFormSettingsPayload, UpdateSectionPayload, UpdateValidationPayload, ValidationRule, ValidationSeverity };
|