@masterteam/form-builder 0.0.47 → 0.0.48

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.47",
3
+ "version": "0.0.48",
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/properties": "^0.0.64",
23
- "@masterteam/forms": "^0.0.103",
24
- "@masterteam/components": "^0.0.207",
25
- "@masterteam/icons": "^0.0.17"
22
+ "@masterteam/properties": "^0.0.71",
23
+ "@masterteam/icons": "^0.0.17",
24
+ "@masterteam/forms": "^0.0.122",
25
+ "@masterteam/components": "^0.0.236"
26
26
  },
27
27
  "sideEffects": false,
28
28
  "exports": {
@@ -194,6 +194,14 @@ interface FormBuilderStateModel extends LoadingStateShape<FormBuilderActionKey>
194
194
  formConfiguration: FormConfiguration | null;
195
195
  properties: PropertyItem[];
196
196
  previewInfo: PreviewInfo | null;
197
+ /**
198
+ * Consumer-supplied fields appended to every `context/resolve` request body
199
+ * this package issues. Spread last, so these win over the package's own
200
+ * resolve flags on key collision — the host app owns these values, this
201
+ * package never interprets or hardcodes them. Reset alongside moduleType /
202
+ * moduleId on `ResetFormBuilderState`.
203
+ */
204
+ contextResolveExtraParams: Record<string, unknown> | null;
197
205
  }
198
206
 
199
207
  declare class FormBuilderFacade {
@@ -209,6 +217,7 @@ declare class FormBuilderFacade {
209
217
  readonly parentModuleId: _angular_core.Signal<string | number | null>;
210
218
  readonly parentPath: _angular_core.Signal<string>;
211
219
  readonly previewInfo: _angular_core.Signal<PreviewInfo | null>;
220
+ readonly contextResolveExtraParams: _angular_core.Signal<Record<string, unknown> | null>;
212
221
  readonly isLoadingFormConfiguration: _angular_core.Signal<boolean>;
213
222
  readonly isResettingFormConfiguration: _angular_core.Signal<boolean>;
214
223
  readonly isResettingFormFromAppForm: _angular_core.Signal<boolean>;
@@ -234,6 +243,12 @@ declare class FormBuilderFacade {
234
243
  resetState(): rxjs.Observable<void>;
235
244
  setProperties(properties: PropertyItem[]): rxjs.Observable<void>;
236
245
  setPreviewInfo(payload: PreviewInfo): rxjs.Observable<void>;
246
+ /**
247
+ * Consumer-supplied fields appended to every `context/resolve` request body
248
+ * form-builder issues. These win over the package's own resolve flags on
249
+ * key collision. Reset alongside moduleType / moduleId via `resetState()`.
250
+ */
251
+ setContextResolveExtraParams(params: Record<string, unknown> | null): rxjs.Observable<void>;
237
252
  getFormConfiguration(): rxjs.Observable<void>;
238
253
  resetFormConfiguration(): rxjs.Observable<void>;
239
254
  resetFormFromAppForm(): rxjs.Observable<void>;
@@ -290,6 +305,7 @@ declare class FormBuilder implements OnInit {
290
305
  readonly moduleType: _angular_core.Signal<string | null>;
291
306
  readonly moduleId: _angular_core.Signal<string | number | null>;
292
307
  readonly parentPath: _angular_core.Signal<string>;
308
+ readonly contextResolveExtraParams: _angular_core.Signal<Record<string, unknown> | null>;
293
309
  readonly activeScope: _angular_core.WritableSignal<ScopeKey>;
294
310
  readonly searchQuery: _angular_core.WritableSignal<string>;
295
311
  readonly isContextLoading: _angular_core.WritableSignal<boolean>;
@@ -435,6 +451,11 @@ declare class SetPreviewInfo {
435
451
  static readonly type = "[FormBuilder] Set Preview Info";
436
452
  constructor(payload: PreviewInfo);
437
453
  }
454
+ declare class SetContextResolveExtraParams {
455
+ params: Record<string, unknown> | null;
456
+ static readonly type = "[FormBuilder] Set Context Resolve Extra Params";
457
+ constructor(params: Record<string, unknown> | null);
458
+ }
438
459
  declare class GetFormConfiguration {
439
460
  static readonly type = "[FormBuilder] Get Form Configuration";
440
461
  }
@@ -541,8 +562,10 @@ declare class FormBuilderState extends CrudStateBase<FormSection, FormBuilderSta
541
562
  static getProperties(state: FormBuilderStateModel): _masterteam_form_builder.PropertyItem[];
542
563
  static getValidations(state: FormBuilderStateModel): ValidationRule[];
543
564
  static getPreviewInfo(state: FormBuilderStateModel): _masterteam_form_builder.PreviewInfo | null;
565
+ static getContextResolveExtraParams(state: FormBuilderStateModel): Record<string, unknown> | null;
544
566
  setModuleInfo(ctx: StateContext<FormBuilderStateModel>, action: SetModuleInfo): void;
545
567
  resetState(ctx: StateContext<FormBuilderStateModel>): void;
568
+ setContextResolveExtraParams(ctx: StateContext<FormBuilderStateModel>, action: SetContextResolveExtraParams): void;
546
569
  setProperties(ctx: StateContext<FormBuilderStateModel>, action: SetProperties): void;
547
570
  setPreviewInfo(ctx: StateContext<FormBuilderStateModel>, action: SetPreviewInfo): void;
548
571
  getFormConfiguration(ctx: StateContext<FormBuilderStateModel>): rxjs.Observable<Response$1<FormConfiguration>>;
@@ -577,5 +600,5 @@ declare class FormBuilderState extends CrudStateBase<FormSection, FormBuilderSta
577
600
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<FormBuilderState>;
578
601
  }
579
602
 
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 };
603
+ export { AddField, AddSection, AddValidation, DeleteField, DeleteSection, DeleteValidation, FormBuilder, FormBuilderActionKey, FormBuilderFacade, FormBuilderState, GetFormConfiguration, MoveField, ReorderFields, ReorderSections, ResetFormBuilderState, ResetFormConfiguration, ResetFormFromAppForm, SetContextResolveExtraParams, SetModuleInfo, SetPreviewInfo, SetProperties, ToggleValidationActive, UpdateField, UpdateFormSettings, UpdateSection, UpdateValidation };
581
604
  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 };