@masterteam/form-builder 0.0.9 → 0.0.10
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.10",
|
|
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/
|
|
22
|
+
"@masterteam/components": "^0.0.92",
|
|
23
|
+
"@masterteam/forms": "^0.0.38",
|
|
23
24
|
"@masterteam/icons": "^0.0.13",
|
|
24
|
-
"@masterteam/
|
|
25
|
-
"@masterteam/forms": "^0.0.36"
|
|
25
|
+
"@masterteam/properties": "^0.0.31"
|
|
26
26
|
},
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"exports": {
|
|
@@ -148,6 +148,15 @@ interface EnrichedFormField extends FormField {
|
|
|
148
148
|
interface EnrichedFormSection extends Omit<FormSection, 'fields'> {
|
|
149
149
|
fields: EnrichedFormField[];
|
|
150
150
|
}
|
|
151
|
+
interface PreviewInfo {
|
|
152
|
+
moduleKey: string;
|
|
153
|
+
operationKey: string;
|
|
154
|
+
moduleId?: number;
|
|
155
|
+
levelId?: number;
|
|
156
|
+
levelDataId?: number;
|
|
157
|
+
moduleDataId?: number;
|
|
158
|
+
requestSchemaId?: number;
|
|
159
|
+
}
|
|
151
160
|
interface FormBuilderStateModel extends LoadingStateShape<FormBuilderActionKey> {
|
|
152
161
|
moduleType: string | null;
|
|
153
162
|
moduleId: string | number | null;
|
|
@@ -156,6 +165,7 @@ interface FormBuilderStateModel extends LoadingStateShape<FormBuilderActionKey>
|
|
|
156
165
|
parentPath: string;
|
|
157
166
|
formConfiguration: FormConfiguration | null;
|
|
158
167
|
properties: PropertyItem[];
|
|
168
|
+
previewInfo: PreviewInfo | null;
|
|
159
169
|
}
|
|
160
170
|
|
|
161
171
|
declare class FormBuilderFacade {
|
|
@@ -170,6 +180,7 @@ declare class FormBuilderFacade {
|
|
|
170
180
|
readonly parentModuleType: _angular_core.Signal<string | null>;
|
|
171
181
|
readonly parentModuleId: _angular_core.Signal<string | number | null>;
|
|
172
182
|
readonly parentPath: _angular_core.Signal<string>;
|
|
183
|
+
readonly previewInfo: _angular_core.Signal<PreviewInfo | null>;
|
|
173
184
|
readonly isLoadingFormConfiguration: _angular_core.Signal<boolean>;
|
|
174
185
|
readonly isResettingFormConfiguration: _angular_core.Signal<boolean>;
|
|
175
186
|
readonly isAddingSection: _angular_core.Signal<boolean>;
|
|
@@ -190,6 +201,7 @@ declare class FormBuilderFacade {
|
|
|
190
201
|
setModuleInfo(moduleType: string, moduleId: string | number, parentModuleType?: string, parentModuleId?: string | number, parentPath?: string): rxjs.Observable<void>;
|
|
191
202
|
resetState(): rxjs.Observable<void>;
|
|
192
203
|
setProperties(properties: PropertyItem[]): rxjs.Observable<void>;
|
|
204
|
+
setPreviewInfo(payload: PreviewInfo): rxjs.Observable<void>;
|
|
193
205
|
getFormConfiguration(): rxjs.Observable<void>;
|
|
194
206
|
resetFormConfiguration(): rxjs.Observable<void>;
|
|
195
207
|
addSection(payload: AddSectionPayload): rxjs.Observable<void>;
|
|
@@ -350,6 +362,11 @@ declare class SetProperties {
|
|
|
350
362
|
static readonly type = "[FormBuilder] Set Properties";
|
|
351
363
|
constructor(properties: PropertyItem[]);
|
|
352
364
|
}
|
|
365
|
+
declare class SetPreviewInfo {
|
|
366
|
+
payload: PreviewInfo;
|
|
367
|
+
static readonly type = "[FormBuilder] Set Preview Info";
|
|
368
|
+
constructor(payload: PreviewInfo);
|
|
369
|
+
}
|
|
353
370
|
declare class GetFormConfiguration {
|
|
354
371
|
static readonly type = "[FormBuilder] Get Form Configuration";
|
|
355
372
|
}
|
|
@@ -441,9 +458,11 @@ declare class FormBuilderState extends CrudStateBase<FormSection, FormBuilderSta
|
|
|
441
458
|
static getParentPath(state: FormBuilderStateModel): string;
|
|
442
459
|
static getProperties(state: FormBuilderStateModel): _masterteam_form_builder.PropertyItem[];
|
|
443
460
|
static getValidations(state: FormBuilderStateModel): ValidationRule[];
|
|
461
|
+
static getPreviewInfo(state: FormBuilderStateModel): _masterteam_form_builder.PreviewInfo | null;
|
|
444
462
|
setModuleInfo(ctx: StateContext<FormBuilderStateModel>, action: SetModuleInfo): void;
|
|
445
463
|
resetState(ctx: StateContext<FormBuilderStateModel>): void;
|
|
446
464
|
setProperties(ctx: StateContext<FormBuilderStateModel>, action: SetProperties): void;
|
|
465
|
+
setPreviewInfo(ctx: StateContext<FormBuilderStateModel>, action: SetPreviewInfo): void;
|
|
447
466
|
getFormConfiguration(ctx: StateContext<FormBuilderStateModel>): rxjs.Observable<Response$1<FormConfiguration>>;
|
|
448
467
|
resetFormConfiguration(ctx: StateContext<FormBuilderStateModel>): rxjs.Observable<Response$1<FormConfiguration>>;
|
|
449
468
|
addSection(ctx: StateContext<FormBuilderStateModel>, action: AddSection): rxjs.Observable<Response$1<FormSection>>;
|
|
@@ -471,5 +490,5 @@ declare class FormBuilderState extends CrudStateBase<FormSection, FormBuilderSta
|
|
|
471
490
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<FormBuilderState>;
|
|
472
491
|
}
|
|
473
492
|
|
|
474
|
-
export { AddField, AddSection, AddValidation, DeleteField, DeleteSection, DeleteValidation, FormBuilder, FormBuilderActionKey, FormBuilderFacade, FormBuilderState, GetFormConfiguration, MoveField, ReorderFields, ResetFormBuilderState, ResetFormConfiguration, SetModuleInfo, SetProperties, ToggleValidationActive, UpdateField, UpdateSection, UpdateValidation };
|
|
475
|
-
export type { AddFieldPayload, AddSectionPayload, AddValidationPayload, EnrichedFormField, EnrichedFormSection, FieldWidth, FormBuilderMode, FormBuilderStateModel, FormConfiguration, FormField, FormSection, MoveFieldPayload, PropertyItem, ReorderFieldPayload, Response, ToggleValidationPayload, UpdateFieldPayload, UpdateSectionPayload, UpdateValidationPayload, ValidationRule, ValidationSeverity };
|
|
493
|
+
export { AddField, AddSection, AddValidation, DeleteField, DeleteSection, DeleteValidation, FormBuilder, FormBuilderActionKey, FormBuilderFacade, FormBuilderState, GetFormConfiguration, MoveField, ReorderFields, ResetFormBuilderState, ResetFormConfiguration, SetModuleInfo, SetPreviewInfo, SetProperties, ToggleValidationActive, UpdateField, UpdateSection, UpdateValidation };
|
|
494
|
+
export type { AddFieldPayload, AddSectionPayload, AddValidationPayload, EnrichedFormField, EnrichedFormSection, FieldWidth, FormBuilderMode, FormBuilderStateModel, FormConfiguration, FormField, FormSection, MoveFieldPayload, PreviewInfo, PropertyItem, ReorderFieldPayload, Response, ToggleValidationPayload, UpdateFieldPayload, UpdateSectionPayload, UpdateValidationPayload, ValidationRule, ValidationSeverity };
|