@stemy/ngx-dynamic-form 19.9.7 → 19.9.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/fesm2022/stemy-ngx-dynamic-form.mjs +69 -31
- package/fesm2022/stemy-ngx-dynamic-form.mjs.map +1 -1
- package/ngx-dynamic-form/common-types.d.ts +3 -1
- package/ngx-dynamic-form/components/dynamic-form-password/dynamic-form-password.component.d.ts +11 -0
- package/ngx-dynamic-form/ngx-dynamic-form.module.d.ts +18 -17
- package/ngx-dynamic-form/services/dynamic-form-builder.service.d.ts +2 -1
- package/ngx-dynamic-form/utils/validation.d.ts +4 -4
- package/package.json +1 -1
- package/public_api.d.ts +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Injector, OutputRef, Signal, Type } from "@angular/core";
|
|
1
|
+
import { InjectionToken, Injector, OutputRef, Signal, Type } from "@angular/core";
|
|
2
2
|
import { AbstractControl, FormControl, FormGroup } from "@angular/forms";
|
|
3
3
|
import { Observable } from "rxjs";
|
|
4
4
|
import { ConfigOption, FormlyFieldConfig, FormlyFieldProps } from "@ngx-formly/core";
|
|
@@ -412,7 +412,9 @@ export interface ConfigForSchemaOptionsBase extends FormBuilderOptionsBase {
|
|
|
412
412
|
}
|
|
413
413
|
export type ConfigForSchemaOptions = RequireAtLeastOne<ConfigForSchemaOptionsBase>;
|
|
414
414
|
export type CustomizerOrSchemaOptions = FormFieldCustomizer | ConfigForSchemaOptions;
|
|
415
|
+
export declare const DEFAULT_NUMERIC_STEP: InjectionToken<string>;
|
|
415
416
|
export interface IDynamicFormModuleConfig {
|
|
416
417
|
options?: ConfigOption[];
|
|
418
|
+
defaultNumericStep?: number;
|
|
417
419
|
}
|
|
418
420
|
export {};
|
package/ngx-dynamic-form/components/dynamic-form-password/dynamic-form-password.component.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ElementRef } from "@angular/core";
|
|
2
|
+
import { DynamicFieldType } from "../base/dynamic-field-type";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DynamicFormPasswordComponent extends DynamicFieldType {
|
|
5
|
+
readonly type: import("@angular/core").WritableSignal<string>;
|
|
6
|
+
readonly icon: import("@angular/core").Signal<"eye" | "eye-slash">;
|
|
7
|
+
readonly input: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
|
|
8
|
+
switchType(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormPasswordComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormPasswordComponent, "dynamic-form-password", never, {}, {}, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -5,27 +5,28 @@ import * as i1 from "./components/base/dynamic-field-type";
|
|
|
5
5
|
import * as i2 from "./components/dynamic-form/dynamic-form.component";
|
|
6
6
|
import * as i3 from "./components/dynamic-form-array/dynamic-form-array.component";
|
|
7
7
|
import * as i4 from "./components/dynamic-form-chips/dynamic-form-chips.component";
|
|
8
|
-
import * as i5 from "./components/dynamic-form-
|
|
9
|
-
import * as i6 from "./components/dynamic-form-
|
|
10
|
-
import * as i7 from "./components/dynamic-form-
|
|
11
|
-
import * as i8 from "./components/dynamic-form-
|
|
12
|
-
import * as i9 from "./components/dynamic-form-
|
|
13
|
-
import * as i10 from "./components/dynamic-form-
|
|
14
|
-
import * as i11 from "./components/dynamic-form-
|
|
15
|
-
import * as i12 from "./components/dynamic-form-
|
|
16
|
-
import * as i13 from "./
|
|
17
|
-
import * as i14 from "./directives/
|
|
18
|
-
import * as i15 from "./
|
|
19
|
-
import * as i16 from "
|
|
20
|
-
import * as i17 from "@angular/
|
|
21
|
-
import * as i18 from "@
|
|
22
|
-
import * as i19 from "@ngx-
|
|
23
|
-
import * as i20 from "@ngx-formly/core
|
|
8
|
+
import * as i5 from "./components/dynamic-form-password/dynamic-form-password.component";
|
|
9
|
+
import * as i6 from "./components/dynamic-form-static/dynamic-form-static.component";
|
|
10
|
+
import * as i7 from "./components/dynamic-form-translation/dynamic-form-translation.component";
|
|
11
|
+
import * as i8 from "./components/dynamic-form-upload/dynamic-form-upload.component";
|
|
12
|
+
import * as i9 from "./components/dynamic-form-wysiwyg/dynamic-form-wysiwyg.component";
|
|
13
|
+
import * as i10 from "./components/dynamic-form-alert/dynamic-form-alert.component";
|
|
14
|
+
import * as i11 from "./components/dynamic-form-field/dynamic-form-field.component";
|
|
15
|
+
import * as i12 from "./components/dynamic-form-fieldset/dynamic-form-fieldset.component";
|
|
16
|
+
import * as i13 from "./components/dynamic-form-group/dynamic-form-group.component";
|
|
17
|
+
import * as i14 from "./directives/async-submit.directive";
|
|
18
|
+
import * as i15 from "./directives/dynamic-form-template.directive";
|
|
19
|
+
import * as i16 from "./pipes/dynamic-form-template.pipe";
|
|
20
|
+
import * as i17 from "@angular/common";
|
|
21
|
+
import * as i18 from "@angular/forms";
|
|
22
|
+
import * as i19 from "@stemy/ngx-utils";
|
|
23
|
+
import * as i20 from "@ngx-formly/core";
|
|
24
|
+
import * as i21 from "@ngx-formly/core/select";
|
|
24
25
|
export declare class NgxDynamicFormModule {
|
|
25
26
|
private static getProviders;
|
|
26
27
|
static forRoot(config?: IDynamicFormModuleConfig): ModuleWithProviders<NgxDynamicFormModule>;
|
|
27
28
|
static provideForms(config?: IDynamicFormModuleConfig): EnvironmentProviders;
|
|
28
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxDynamicFormModule, never>;
|
|
29
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxDynamicFormModule, [typeof i1.DynamicFieldType, typeof i2.DynamicFormComponent, typeof i3.DynamicFormArrayComponent, typeof i4.DynamicFormChipsComponent, typeof i5.
|
|
30
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxDynamicFormModule, [typeof i1.DynamicFieldType, typeof i2.DynamicFormComponent, typeof i3.DynamicFormArrayComponent, typeof i4.DynamicFormChipsComponent, typeof i5.DynamicFormPasswordComponent, typeof i6.DynamicFormStaticComponent, typeof i7.DynamicFormTranslationComponent, typeof i8.DynamicFormUploadComponent, typeof i9.DynamicFormWysiwygComponent, typeof i10.DynamicFormAlertComponent, typeof i11.DynamicFormFieldComponent, typeof i12.DynamicFormFieldsetComponent, typeof i13.DynamicFormGroupComponent, typeof i14.AsyncSubmitDirective, typeof i15.DynamicFormTemplateDirective, typeof i16.DynamicFormTemplatePipe], [typeof i17.CommonModule, typeof i18.FormsModule, typeof i18.ReactiveFormsModule, typeof i19.NgxUtilsModule, typeof i20.FormlyModule, typeof i21.FormlySelectModule], [typeof i1.DynamicFieldType, typeof i2.DynamicFormComponent, typeof i3.DynamicFormArrayComponent, typeof i4.DynamicFormChipsComponent, typeof i5.DynamicFormPasswordComponent, typeof i6.DynamicFormStaticComponent, typeof i7.DynamicFormTranslationComponent, typeof i8.DynamicFormUploadComponent, typeof i9.DynamicFormWysiwygComponent, typeof i10.DynamicFormAlertComponent, typeof i11.DynamicFormFieldComponent, typeof i12.DynamicFormFieldsetComponent, typeof i13.DynamicFormGroupComponent, typeof i14.AsyncSubmitDirective, typeof i15.DynamicFormTemplateDirective, typeof i16.DynamicFormTemplatePipe, typeof i18.FormsModule, typeof i18.ReactiveFormsModule, typeof i19.NgxUtilsModule, typeof i20.FormlyModule, typeof i21.FormlySelectModule]>;
|
|
30
31
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxDynamicFormModule>;
|
|
31
32
|
}
|
|
@@ -9,8 +9,9 @@ export declare class DynamicFormBuilderService {
|
|
|
9
9
|
readonly events: EventsService;
|
|
10
10
|
readonly api: IApiService;
|
|
11
11
|
protected readonly languages: ILanguageService;
|
|
12
|
+
protected readonly defaultNumericStep: number;
|
|
12
13
|
readonly language: Observable<string>;
|
|
13
|
-
constructor(injector: Injector, events: EventsService, api: IApiService, languages: ILanguageService);
|
|
14
|
+
constructor(injector: Injector, events: EventsService, api: IApiService, languages: ILanguageService, defaultNumericStep: number);
|
|
14
15
|
resolveFormFields(type: Type<any>, parent: FormFieldConfig, options?: FormBuilderOptions): FormFieldConfig[];
|
|
15
16
|
resolveFormGroup(key: string, target: Type<any>, data: FormGroupData, parent?: FormFieldConfig, options?: FormBuilderOptions): FormFieldConfig;
|
|
16
17
|
resolveFormArray(key: string, itemType: string | FormInputData | Type<any>, data: FormArrayData, parent?: FormFieldConfig, options?: FormBuilderOptions): FormFieldConfig;
|
|
@@ -7,8 +7,8 @@ export declare function translationValidation(langs?: string[]): ValidatorFn;
|
|
|
7
7
|
export declare function phoneValidation(): ValidatorFn;
|
|
8
8
|
export declare function emailValidation(): ValidatorFn;
|
|
9
9
|
export declare function arrayLengthValidation(min?: number, max?: number): ValidatorFn;
|
|
10
|
-
export declare function minLengthValidation(minLength: number
|
|
11
|
-
export declare function maxLengthValidation(maxLength: number
|
|
12
|
-
export declare function minValueValidation(
|
|
13
|
-
export declare function maxValueValidation(
|
|
10
|
+
export declare function minLengthValidation(minLength: number): ValidatorFn;
|
|
11
|
+
export declare function maxLengthValidation(maxLength: number): ValidatorFn;
|
|
12
|
+
export declare function minValueValidation(): ValidatorFn;
|
|
13
|
+
export declare function maxValueValidation(): ValidatorFn;
|
|
14
14
|
export declare function setFieldMinDate(field: FormFieldConfig, min: Date): void;
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { FORM_ROOT_ID, FormFieldKey, FormFieldLabelCustomizer, FormBuilderOptions, FormFieldArrayItemsAction, FormFieldProps, FormFieldSerializer, FormHookFn, FormHookConfig, FormFieldExpression, FormFieldExpressions, FormFieldConfig, FormFieldLookup, FormFieldType, FormFieldChangeEvent, FormSerializeResult, FormSelectOption, FormSelectOptions, FormSelectOptionsFactory, FormFieldConditionFn, FormFieldCondition, IDynamicForm, ValidationMessageFn, ValidatorFn, ValidatorFactory, ValidatorExpression, Validators, AsyncValidatorFn, AsyncValidatorExpression, AsyncValidators, AllValidationErrors, FormFieldCustom, FormFieldData, FormInputData, FormSelectData, FormStaticData, FormUploadData, FormGroupData, FormArrayData, FormSerializerData, FormFieldSetData, AsyncSubmitMode, AsyncSubmitMethod, FormTemplateType, FormFieldCustomizer, ConfigForSchemaOptions, DynamicFormStatus, DynamicFormUpdateOn, IDynamicFormModuleConfig, } from "./ngx-dynamic-form/common-types";
|
|
1
|
+
export { FORM_ROOT_ID, FormFieldKey, FormFieldLabelCustomizer, FormBuilderOptions, FormFieldArrayItemsAction, FormFieldProps, FormFieldSerializer, FormHookFn, FormHookConfig, FormFieldExpression, FormFieldExpressions, FormFieldConfig, FormFieldLookup, FormFieldType, FormFieldChangeEvent, FormSerializeResult, FormSelectOption, FormSelectOptions, FormSelectOptionsFactory, FormFieldConditionFn, FormFieldCondition, IDynamicForm, ValidationMessageFn, ValidatorFn, ValidatorFactory, ValidatorExpression, Validators, AsyncValidatorFn, AsyncValidatorExpression, AsyncValidators, AllValidationErrors, FormFieldCustom, FormFieldData, FormInputData, FormSelectData, FormStaticData, FormUploadData, FormGroupData, FormArrayData, FormSerializerData, FormFieldSetData, AsyncSubmitMode, AsyncSubmitMethod, FormTemplateType, FormFieldCustomizer, ConfigForSchemaOptions, DynamicFormStatus, DynamicFormUpdateOn, DEFAULT_NUMERIC_STEP, IDynamicFormModuleConfig, } from "./ngx-dynamic-form/common-types";
|
|
2
2
|
export { IFormFieldCustomizer, customizeFormField } from "./ngx-dynamic-form/utils/customizer";
|
|
3
3
|
export { FormInput, FormSelect, FormStatic, FormUpload, FormGroup, FormArray, FormSerializable, FormFieldSet } from "./ngx-dynamic-form/utils/decorators";
|
|
4
4
|
export { addFieldValidators, removeFieldValidators, jsonValidation, requiredValidation, translationValidation, phoneValidation, emailValidation, arrayLengthValidation, minLengthValidation, maxLengthValidation, minValueValidation, maxValueValidation, setFieldMinDate } from "./ngx-dynamic-form/utils/validation";
|
|
@@ -16,6 +16,7 @@ export { DynamicFieldType } from "./ngx-dynamic-form/components/base/dynamic-fie
|
|
|
16
16
|
export { DynamicFormComponent } from "./ngx-dynamic-form/components/dynamic-form/dynamic-form.component";
|
|
17
17
|
export { DynamicFormArrayComponent } from "./ngx-dynamic-form/components/dynamic-form-array/dynamic-form-array.component";
|
|
18
18
|
export { DynamicFormChipsComponent } from "./ngx-dynamic-form/components/dynamic-form-chips/dynamic-form-chips.component";
|
|
19
|
+
export { DynamicFormPasswordComponent } from "./ngx-dynamic-form/components/dynamic-form-password/dynamic-form-password.component";
|
|
19
20
|
export { DynamicFormStaticComponent } from "./ngx-dynamic-form/components/dynamic-form-static/dynamic-form-static.component";
|
|
20
21
|
export { DynamicFormTranslationComponent } from "./ngx-dynamic-form/components/dynamic-form-translation/dynamic-form-translation.component";
|
|
21
22
|
export { DynamicFormUploadComponent } from "./ngx-dynamic-form/components/dynamic-form-upload/dynamic-form-upload.component";
|