@stemy/ngx-dynamic-form 19.6.9 → 19.7.1

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.
@@ -67,6 +67,10 @@ export interface FormFieldProps extends FormlyFieldProps {
67
67
  * Specifies that multiple values can be selected at once in the select component.
68
68
  */
69
69
  multiple?: boolean;
70
+ /**
71
+ * Specifies that the input balue does not have to be in the options of chips component if false (default: true)
72
+ */
73
+ strict?: boolean;
70
74
  /**
71
75
  * Allows empty, null values in the select component
72
76
  */
@@ -166,11 +170,12 @@ export interface FormFieldConfig<T = FormFieldProps> extends FormlyFieldConfig<T
166
170
  serializer?: FormFieldSerializer;
167
171
  serialize?: boolean;
168
172
  fieldSet?: string;
169
- parent?: FormFieldConfig;
173
+ priority?: number;
170
174
  fieldGroup?: FormFieldConfig[];
171
175
  fieldArray?: FormFieldConfig;
172
176
  hooks: FormHookConfig;
173
177
  expressions: FormFieldExpressions;
178
+ readonly parent?: FormFieldConfig;
174
179
  readonly display?: boolean;
175
180
  readonly valid?: boolean;
176
181
  readonly path?: string;
@@ -257,6 +262,10 @@ export type FormFieldData = Pick<FormFieldProps, "label" | "hideRequiredMarker"
257
262
  * Puts the field in a custom field set
258
263
  */
259
264
  fieldSet?: string;
265
+ /**
266
+ * Puts the field in a custom order
267
+ */
268
+ priority?: number;
260
269
  /**
261
270
  * The used component type of the field can be overridden, (Only string can be defined from JSON schema)
262
271
  */
@@ -275,7 +284,7 @@ export type FormFieldData = Pick<FormFieldProps, "label" | "hideRequiredMarker"
275
284
  validators?: Validators | ValidatorFn[];
276
285
  };
277
286
  export type FormInputData = FormFieldData & Pick<FormFieldProps, "type" | "pattern" | "placeholder" | "step" | "min" | "max" | "minLength" | "maxLength" | "autocomplete" | "suffix" | "indeterminate" | "cols" | "rows">;
278
- export type FormSelectData = FormFieldData & Pick<FormFieldProps, "multiple" | "type" | "allowEmpty" | "groupBy" | "invert"> & {
287
+ export type FormSelectData = FormFieldData & Pick<FormFieldProps, "multiple" | "strict" | "type" | "allowEmpty" | "groupBy" | "invert"> & {
279
288
  options?: ResolveFactory<FormSelectOptionsFactory> | FormSelectOptionsFactory;
280
289
  };
281
290
  export type FormUploadData = FormFieldData & Pick<FormFieldProps, "inline" | "multiple" | "accept" | "url" | "maxSize" | "uploadOptions" | "createUploadData" | "multi" | "asFile" | "uploadUrl">;
@@ -15,11 +15,12 @@ import * as i11 from "@angular/common";
15
15
  import * as i12 from "@angular/forms";
16
16
  import * as i13 from "@stemy/ngx-utils";
17
17
  import * as i14 from "@ngx-formly/core";
18
+ import * as i15 from "@ngx-formly/core/select";
18
19
  export declare class NgxDynamicFormModule {
19
20
  private static getProviders;
20
21
  static forRoot(config?: IDynamicFormModuleConfig): ModuleWithProviders<NgxDynamicFormModule>;
21
22
  static provideForms(config?: IDynamicFormModuleConfig): EnvironmentProviders;
22
23
  static ɵfac: i0.ɵɵFactoryDeclaration<NgxDynamicFormModule, never>;
23
- static ɵmod: i0.ɵɵNgModuleDeclaration<NgxDynamicFormModule, [typeof i1.DynamicFieldType, typeof i2.DynamicFormComponent, typeof i3.DynamicFormArrayComponent, typeof i4.DynamicFormChipsComponent, typeof i5.DynamicFormUploadComponent, typeof i6.DynamicFormAlertComponent, typeof i7.DynamicFormFieldComponent, typeof i8.DynamicFormFieldsetComponent, typeof i9.DynamicFormGroupComponent, typeof i10.AsyncSubmitDirective], [typeof i11.CommonModule, typeof i12.FormsModule, typeof i12.ReactiveFormsModule, typeof i13.NgxUtilsModule, typeof i14.FormlyModule], [typeof i1.DynamicFieldType, typeof i2.DynamicFormComponent, typeof i3.DynamicFormArrayComponent, typeof i4.DynamicFormChipsComponent, typeof i5.DynamicFormUploadComponent, typeof i6.DynamicFormAlertComponent, typeof i7.DynamicFormFieldComponent, typeof i8.DynamicFormFieldsetComponent, typeof i9.DynamicFormGroupComponent, typeof i10.AsyncSubmitDirective, typeof i12.FormsModule, typeof i12.ReactiveFormsModule, typeof i13.NgxUtilsModule, typeof i14.FormlyModule]>;
24
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgxDynamicFormModule, [typeof i1.DynamicFieldType, typeof i2.DynamicFormComponent, typeof i3.DynamicFormArrayComponent, typeof i4.DynamicFormChipsComponent, typeof i5.DynamicFormUploadComponent, typeof i6.DynamicFormAlertComponent, typeof i7.DynamicFormFieldComponent, typeof i8.DynamicFormFieldsetComponent, typeof i9.DynamicFormGroupComponent, typeof i10.AsyncSubmitDirective], [typeof i11.CommonModule, typeof i12.FormsModule, typeof i12.ReactiveFormsModule, typeof i13.NgxUtilsModule, typeof i14.FormlyModule, typeof i15.FormlySelectModule], [typeof i1.DynamicFieldType, typeof i2.DynamicFormComponent, typeof i3.DynamicFormArrayComponent, typeof i4.DynamicFormChipsComponent, typeof i5.DynamicFormUploadComponent, typeof i6.DynamicFormAlertComponent, typeof i7.DynamicFormFieldComponent, typeof i8.DynamicFormFieldsetComponent, typeof i9.DynamicFormGroupComponent, typeof i10.AsyncSubmitDirective, typeof i12.FormsModule, typeof i12.ReactiveFormsModule, typeof i13.NgxUtilsModule, typeof i14.FormlyModule, typeof i15.FormlySelectModule]>;
24
25
  static ɵinj: i0.ɵɵInjectorDeclaration<NgxDynamicFormModule>;
25
26
  }
@@ -25,6 +25,8 @@ export declare class DynamicFormBuilderService {
25
25
  fixSelectOptions(field: FormFieldConfig, options: FormSelectOption[]): Promise<FormSelectOption[]>;
26
26
  protected getLabel(key: string, label: string, parent: FormFieldConfig, options: FormBuilderOptions): string;
27
27
  protected createFormField(key: string, type: string, data: FormFieldData, props: FormFieldProps, parent: FormFieldConfig, options: FormBuilderOptions): FormFieldConfig;
28
+ protected shouldDisplay(field: FormFieldConfig): boolean;
29
+ protected isValid(field: FormFieldConfig): boolean;
28
30
  protected setExpressions(field: FormFieldConfig, options: FormBuilderOptions): void;
29
31
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormBuilderService, never>;
30
32
  static ɵprov: i0.ɵɵInjectableDeclaration<DynamicFormBuilderService>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-dynamic-form",
3
- "version": "19.6.9",
3
+ "version": "19.7.1",
4
4
  "license": "MIT",
5
5
  "public": true,
6
6
  "repository": "https://github.com/stemyke/ngx-dynamic-form.git",
@@ -22,7 +22,7 @@
22
22
  "ngx-device-detector": "^9.0.0",
23
23
  "@floating-ui/dom": "^1.7.1",
24
24
  "json5": "^2.2.3",
25
- "@stemy/ngx-utils": ">=19.6.12",
25
+ "@stemy/ngx-utils": ">=19.7.16",
26
26
  "@ngx-formly/core": "^7.0.0",
27
27
  "ngx-mask": "^19.0.7",
28
28
  "@angular/material": "^19.2.18"