@masterteam/form-builder 0.0.8 → 0.0.9
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.9",
|
|
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.1.17",
|
|
21
21
|
"tailwindcss-primeui": "^0.6.1",
|
|
22
|
-
"@masterteam/properties": "^0.0.
|
|
23
|
-
"@masterteam/
|
|
24
|
-
"@masterteam/components": "^0.0.
|
|
25
|
-
"@masterteam/
|
|
22
|
+
"@masterteam/properties": "^0.0.31",
|
|
23
|
+
"@masterteam/icons": "^0.0.13",
|
|
24
|
+
"@masterteam/components": "^0.0.90",
|
|
25
|
+
"@masterteam/forms": "^0.0.36"
|
|
26
26
|
},
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"exports": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _masterteam_form_builder from '@masterteam/form-builder';
|
|
1
2
|
import * as _angular_core from '@angular/core';
|
|
2
3
|
import { OnInit } from '@angular/core';
|
|
3
|
-
import * as _masterteam_form_builder from '@masterteam/form-builder';
|
|
4
4
|
import { LoadingStateShape, CrudStateBase, Response as Response$1 } from '@masterteam/components';
|
|
5
5
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
6
6
|
import * as rxjs from 'rxjs';
|
|
@@ -33,11 +33,14 @@ interface FormField {
|
|
|
33
33
|
hiddenInCreation?: boolean;
|
|
34
34
|
hiddenInEditForm?: boolean;
|
|
35
35
|
isRequired?: boolean;
|
|
36
|
+
isRead?: boolean;
|
|
37
|
+
isWrite?: boolean;
|
|
36
38
|
showConditionalDisplayFormula?: boolean;
|
|
37
39
|
conditionalDisplayFormula?: string;
|
|
38
40
|
_pending?: boolean;
|
|
39
41
|
_deleting?: boolean;
|
|
40
42
|
}
|
|
43
|
+
type FormBuilderMode = 'builder' | 'manageProperties';
|
|
41
44
|
interface FormSection {
|
|
42
45
|
id: string;
|
|
43
46
|
name: {
|
|
@@ -85,6 +88,8 @@ interface AddFieldPayload {
|
|
|
85
88
|
hiddenInCreation?: boolean;
|
|
86
89
|
hiddenInEditForm?: boolean;
|
|
87
90
|
isRequired?: boolean;
|
|
91
|
+
isRead?: boolean;
|
|
92
|
+
isWrite?: boolean;
|
|
88
93
|
showConditionalDisplayFormula?: boolean;
|
|
89
94
|
conditionalDisplayFormula?: string;
|
|
90
95
|
}
|
|
@@ -94,6 +99,8 @@ interface UpdateFieldPayload {
|
|
|
94
99
|
hiddenInCreation?: boolean;
|
|
95
100
|
hiddenInEditForm?: boolean;
|
|
96
101
|
isRequired?: boolean;
|
|
102
|
+
isRead?: boolean;
|
|
103
|
+
isWrite?: boolean;
|
|
97
104
|
showConditionalDisplayFormula?: boolean;
|
|
98
105
|
conditionalDisplayFormula?: string | null;
|
|
99
106
|
}
|
|
@@ -219,6 +226,10 @@ declare class FormBuilder implements OnInit {
|
|
|
219
226
|
protected readonly facade: FormBuilderFacade;
|
|
220
227
|
private readonly contextService;
|
|
221
228
|
private readonly popovers;
|
|
229
|
+
/** Extra CSS class(es) applied to the main canvas wrapper div. */
|
|
230
|
+
readonly canvasStyleClass: _angular_core.InputSignal<string>;
|
|
231
|
+
/** Operating mode: 'builder' (full editor) or 'manageProperties' (read/write permissions only). */
|
|
232
|
+
readonly mode: _angular_core.InputSignal<FormBuilderMode>;
|
|
222
233
|
private dialogRef;
|
|
223
234
|
readonly sections: _angular_core.Signal<_masterteam_form_builder.FormSection[]>;
|
|
224
235
|
readonly properties: _angular_core.Signal<PropertyItem[]>;
|
|
@@ -305,7 +316,7 @@ declare class FormBuilder implements OnInit {
|
|
|
305
316
|
resetFormConfiguration(): void;
|
|
306
317
|
noReturnPredicate: () => boolean;
|
|
307
318
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormBuilder, never>;
|
|
308
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormBuilder, "mt-form-builder", never, {}, {}, never, never, true, never>;
|
|
319
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormBuilder, "mt-form-builder", never, { "canvasStyleClass": { "alias": "canvasStyleClass"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
309
320
|
}
|
|
310
321
|
|
|
311
322
|
/**
|
|
@@ -461,4 +472,4 @@ declare class FormBuilderState extends CrudStateBase<FormSection, FormBuilderSta
|
|
|
461
472
|
}
|
|
462
473
|
|
|
463
474
|
export { AddField, AddSection, AddValidation, DeleteField, DeleteSection, DeleteValidation, FormBuilder, FormBuilderActionKey, FormBuilderFacade, FormBuilderState, GetFormConfiguration, MoveField, ReorderFields, ResetFormBuilderState, ResetFormConfiguration, SetModuleInfo, SetProperties, ToggleValidationActive, UpdateField, UpdateSection, UpdateValidation };
|
|
464
|
-
export type { AddFieldPayload, AddSectionPayload, AddValidationPayload, EnrichedFormField, EnrichedFormSection, FieldWidth, FormBuilderStateModel, FormConfiguration, FormField, FormSection, MoveFieldPayload, PropertyItem, ReorderFieldPayload, Response, ToggleValidationPayload, UpdateFieldPayload, UpdateSectionPayload, UpdateValidationPayload, ValidationRule, ValidationSeverity };
|
|
475
|
+
export type { AddFieldPayload, AddSectionPayload, AddValidationPayload, EnrichedFormField, EnrichedFormSection, FieldWidth, FormBuilderMode, FormBuilderStateModel, FormConfiguration, FormField, FormSection, MoveFieldPayload, PropertyItem, ReorderFieldPayload, Response, ToggleValidationPayload, UpdateFieldPayload, UpdateSectionPayload, UpdateValidationPayload, ValidationRule, ValidationSeverity };
|