superlikers-dynamic-forms 0.0.0-watch
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/README.md +24 -0
- package/esm2022/lib/components/base-control/base-control.component.mjs +86 -0
- package/esm2022/lib/components/checkbox-field/checkbox-field.component.mjs +16 -0
- package/esm2022/lib/components/checkbox-group-field/checkbox-group-field.component.mjs +33 -0
- package/esm2022/lib/components/errors/errors.component.mjs +45 -0
- package/esm2022/lib/components/group-field/group-field.component.mjs +22 -0
- package/esm2022/lib/components/help-text/help-text.component.mjs +21 -0
- package/esm2022/lib/components/input-field/input-field.component.mjs +16 -0
- package/esm2022/lib/components/radio-field/radio-field.component.mjs +16 -0
- package/esm2022/lib/components/select-field/select-field.component.mjs +26 -0
- package/esm2022/lib/directives/helpText/help-text.directive.mjs +29 -0
- package/esm2022/lib/directives/validator-array-message/validator-array-message.directive.mjs +49 -0
- package/esm2022/lib/directives/validator-message/validator-message.directive.mjs +49 -0
- package/esm2022/lib/models/forms.model.mjs +10 -0
- package/esm2022/lib/pipes/control-injector.pipe.mjs +29 -0
- package/esm2022/lib/services/control-resolver/control-resolver.service.mjs +42 -0
- package/esm2022/lib/utils/control-data.token.mjs +3 -0
- package/esm2022/lib/utils/validation-error-messages.token.mjs +23 -0
- package/esm2022/public-api.mjs +20 -0
- package/esm2022/superlikers-dynamic-forms.mjs +5 -0
- package/fesm2022/superlikers-dynamic-forms-select-field.component-DuEQPRWC.mjs +28 -0
- package/fesm2022/superlikers-dynamic-forms-select-field.component-DuEQPRWC.mjs.map +1 -0
- package/fesm2022/superlikers-dynamic-forms.mjs +459 -0
- package/fesm2022/superlikers-dynamic-forms.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/base-control/base-control.component.d.ts +26 -0
- package/lib/components/checkbox-field/checkbox-field.component.d.ts +6 -0
- package/lib/components/checkbox-group-field/checkbox-group-field.component.d.ts +9 -0
- package/lib/components/errors/errors.component.d.ts +13 -0
- package/lib/components/group-field/group-field.component.d.ts +11 -0
- package/lib/components/help-text/help-text.component.d.ts +6 -0
- package/lib/components/input-field/input-field.component.d.ts +6 -0
- package/lib/components/radio-field/radio-field.component.d.ts +6 -0
- package/lib/components/select-field/select-field.component.d.ts +9 -0
- package/lib/directives/helpText/help-text.directive.d.ts +11 -0
- package/lib/directives/validator-array-message/validator-array-message.directive.d.ts +15 -0
- package/lib/directives/validator-message/validator-message.directive.d.ts +17 -0
- package/lib/models/forms.model.d.ts +41 -0
- package/lib/pipes/control-injector.pipe.d.ts +10 -0
- package/lib/services/control-resolver/control-resolver.service.d.ts +12 -0
- package/lib/utils/control-data.token.d.ts +9 -0
- package/lib/utils/validation-error-messages.token.d.ts +10 -0
- package/package.json +25 -0
- package/public-api.d.ts +16 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"superlikers-dynamic-forms.mjs","sources":["../../../projects/dynamic-forms/src/lib/utils/control-data.token.ts","../../../projects/dynamic-forms/src/lib/pipes/control-injector.pipe.ts","../../../projects/dynamic-forms/src/lib/models/forms.model.ts","../../../projects/dynamic-forms/src/lib/services/control-resolver/control-resolver.service.ts","../../../projects/dynamic-forms/src/lib/utils/validation-error-messages.token.ts","../../../projects/dynamic-forms/src/lib/components/errors/errors.component.ts","../../../projects/dynamic-forms/src/lib/directives/validator-message/validator-message.directive.ts","../../../projects/dynamic-forms/src/lib/components/help-text/help-text.component.ts","../../../projects/dynamic-forms/src/lib/directives/helpText/help-text.directive.ts","../../../projects/dynamic-forms/src/lib/directives/validator-array-message/validator-array-message.directive.ts","../../../projects/dynamic-forms/src/lib/components/base-control/base-control.component.ts","../../../projects/dynamic-forms/src/lib/components/checkbox-field/checkbox-field.component.ts","../../../projects/dynamic-forms/src/lib/components/checkbox-field/checkbox-field.component.html","../../../projects/dynamic-forms/src/lib/components/checkbox-group-field/checkbox-group-field.component.ts","../../../projects/dynamic-forms/src/lib/components/checkbox-group-field/checkbox-group-field.component.html","../../../projects/dynamic-forms/src/lib/components/group-field/group-field.component.ts","../../../projects/dynamic-forms/src/lib/components/group-field/group-field.component.html","../../../projects/dynamic-forms/src/lib/components/input-field/input-field.component.ts","../../../projects/dynamic-forms/src/lib/components/input-field/input-field.component.html","../../../projects/dynamic-forms/src/lib/components/radio-field/radio-field.component.ts","../../../projects/dynamic-forms/src/lib/components/radio-field/radio-field.component.html","../../../projects/dynamic-forms/src/public-api.ts","../../../projects/dynamic-forms/src/superlikers-dynamic-forms.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core'\nimport { Control } from '../models/forms.model'\nimport { FormGroup } from '@angular/forms'\n\nexport interface ControlData {\n control: Control\n formGroup?: FormGroup\n index?: number\n}\n\nexport const CONTROL_DATA = new InjectionToken<ControlData>('Control Data')\n","import { Injector, Pipe, PipeTransform, inject } from '@angular/core'\nimport { Control } from '../models/forms.model'\nimport { CONTROL_DATA } from '../utils/control-data.token'\nimport { FormGroup } from '@angular/forms'\n\n@Pipe({\n name: 'controlInjector',\n standalone: true\n})\nexport class ControlInjector implements PipeTransform {\n injector = inject(Injector)\n\n transform(name: string, control: Control, formGroup?: FormGroup, index?: number): Injector {\n return Injector.create({\n parent: this.injector,\n providers: [\n {\n provide: CONTROL_DATA,\n useValue: { key: name, control, formGroup, index }\n }\n ]\n })\n }\n}\n","import { Type } from '@angular/core'\nimport { FormGroup, Validators } from '@angular/forms'\nimport { Observable } from 'rxjs'\n\nexport type ControlType = 'input' | 'group' | 'checkbox' | 'checkbox-group' | 'radio' | 'select'\n\nexport enum ControlTypeValues {\n INPUT = 'input',\n GROUP = 'group',\n CHECKBOX = 'checkbox',\n CHECKBOX_GROUP = 'checkbox-group',\n RADIO = 'radio',\n SELECT = 'select'\n}\n\nexport interface Option {\n label: string\n value: unknown\n selected?: boolean\n disabled?: boolean\n}\n\ntype CustomValidators = object\ntype ValidatorsKeys = keyof Omit<typeof Validators & CustomValidators, 'prototype' | 'compose' | 'composeAsync'>\n\nexport interface Control {\n id: number\n label: string\n name: string\n controlType: ControlType\n helpText?: string\n type?: string\n value?: unknown\n disabled?: boolean\n asyncOptions?: (form: FormGroup) => Observable<Option[]>\n options?: Option[]\n controls?: Control[]\n visible?: (form: FormGroup) => boolean\n validators?: {\n [key in ValidatorsKeys]?: unknown\n }\n}\n\nexport type ControlMap = {\n [T in Control['controlType']]: () => Promise<Type<unknown>>\n}\n","import { Injectable, Type } from '@angular/core'\nimport { from, of, tap } from 'rxjs'\n\nimport { Control, ControlMap } from '../../models/forms.model'\nimport { FormGroup } from '@angular/forms'\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ControlResolver {\n private lazyControlComponents: ControlMap = {\n input: () => import('../../components/input-field/input-field.component').then(c => c.InputFieldComponent),\n group: () => import('../../components/group-field/group-field.component').then(c => c.GroupFieldComponent),\n radio: () => import('../../components/radio-field/radio-field.component').then(c => c.RadioFieldComponent),\n checkbox: () => import('../../components/checkbox-field/checkbox-field.component').then(c => c.CheckboxFieldComponent),\n 'checkbox-group': () => import('../../components/checkbox-group-field/checkbox-group-field.component').then(c => c.CheckboxGroupFieldComponent),\n select: () => import('../../components/select-field/select-field.component').then(c => c.SelectFieldComponent)\n }\n\n private loadedControlComponents = new Map<string, Type<unknown>>()\n\n resolve(control: Control, form: FormGroup) {\n const controlType = control.controlType\n\n const isVisible = this.checkVisible(control, form)\n\n if (!isVisible) return\n\n const loadedComponent = this.loadedControlComponents.get(controlType)\n\n if (loadedComponent) return of(loadedComponent)\n\n return from(this.lazyControlComponents[controlType]()).pipe(\n tap(component => {\n this.loadedControlComponents.set(controlType, component)\n })\n )\n }\n\n checkVisible(control: Control, form: FormGroup) {\n if (!control.visible) return true\n return control.visible(form)\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { InjectionToken } from '@angular/core'\n\nexport const ERROR_MESSAGES: { [key: string]: (args?: any) => string } = {\n required: () => `This field is required`,\n requiredTrue: () => `This field is required`,\n pattern: () => `Does not match the pattern`,\n email: () => `Must be a valid email`,\n minlength: ({ requiredLength }) => `Length must be at least ${requiredLength} characters`,\n customError: error => error\n}\n\nexport const ERROR_MESSAGES_ES: { [key: string]: (args?: any) => string } = {\n required: () => `Este campo es obligatorio`,\n requiredTrue: () => `Este campo es obligatorio`,\n pattern: () => `No coincide con el patrón`,\n email: () => `Debe ser un correo electrónico válido`,\n minlength: ({ requiredLength }) => `La longitud debe ser al menos de ${requiredLength} caracteres`,\n customError: error => error\n}\n\nexport const VALIDATION_ERROR_MESSAGES = new InjectionToken(`Validation Messages`, {\n providedIn: 'root',\n factory: () => ERROR_MESSAGES\n})\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { KeyValue, KeyValuePipe } from '@angular/common'\nimport { ChangeDetectionStrategy, Component, HostBinding, Input, inject } from '@angular/core'\nimport { ValidationErrors } from '@angular/forms'\n\nimport { VALIDATION_ERROR_MESSAGES } from '../../utils/validation-error-messages.token'\n\n@Component({\n selector: 'app-errors',\n standalone: true,\n imports: [KeyValuePipe],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n @for (error of errors | keyvalue; track error.key) {\n <div class=\"error-text\">{{ getError(error) }}</div>\n }\n `\n})\nexport class ErrorsComponent {\n @Input() errors: ValidationErrors | null | undefined = null\n\n @HostBinding('class') hostClass = ''\n\n protected errorsMap = inject(VALIDATION_ERROR_MESSAGES)\n\n getError(error: KeyValue<string, any>) {\n if (!this.errorsMap[error.key]) {\n console.warn(`missing message for ${error.key}`)\n return\n }\n\n return this.errorsMap[error.key](error.value)\n }\n}\n","import { ComponentRef, Directive, ElementRef, OnDestroy, OnInit, ViewContainerRef, inject } from '@angular/core'\nimport { NgControl, NgForm, FormGroupDirective, ControlContainer } from '@angular/forms'\nimport { Subscription, merge, fromEvent, iif, EMPTY, startWith } from 'rxjs'\n\nimport { ErrorsComponent } from '../../components/errors/errors.component'\n\n@Directive({\n selector: '[appValidatorMessage]',\n standalone: true\n})\nexport class ValidatorMessageDirective implements OnInit, OnDestroy {\n ngControl = inject(NgControl, { self: true })\n elementRef = inject(ElementRef)\n\n private componentRef: ComponentRef<ErrorsComponent> | null = null\n\n get form() {\n return this.parentContainer?.formDirective as NgForm | FormGroupDirective | null\n }\n\n private parentContainer = inject(ControlContainer, { optional: true })\n private vcr = inject(ViewContainerRef)\n\n controlSubscription!: Subscription\n\n ngOnInit() {\n if (!this.ngControl.control) return\n\n this.controlSubscription = merge(\n this.ngControl.control.statusChanges,\n fromEvent(this.elementRef.nativeElement, 'blur'),\n iif(() => !!this.form, this.form!.ngSubmit, EMPTY)\n )\n .pipe(startWith(this.ngControl.control.status))\n .subscribe(() => {\n if (this.ngControl.errors && this.form?.submitted) {\n if (this.componentRef) return\n\n this.componentRef = this.vcr.createComponent(ErrorsComponent)\n this.componentRef.changeDetectorRef.markForCheck()\n this.componentRef.setInput('errors', this.ngControl.errors)\n } else {\n this.componentRef?.destroy()\n this.componentRef = null\n }\n })\n }\n\n ngOnDestroy() {\n this.controlSubscription.unsubscribe()\n }\n}\n","import { Component, Input } from '@angular/core'\n\n@Component({\n selector: 'app-help-text',\n standalone: true,\n imports: [],\n template: '<p class=\"help-text\">{{ message }}</p>'\n})\nexport class HelpTextComponent {\n @Input() message = ''\n}\n","import { ComponentRef, Directive, ElementRef, Input, OnInit, ViewContainerRef, inject } from '@angular/core'\nimport { HelpTextComponent } from '../../components/help-text/help-text.component'\n\n@Directive({\n selector: '[appHelpText]',\n standalone: true\n})\nexport class HelpTextDirective implements OnInit {\n @Input() message = ''\n\n elementRef = inject(ElementRef)\n private vcr = inject(ViewContainerRef)\n private componentRef: ComponentRef<HelpTextComponent> | null = null\n\n ngOnInit() {\n if (!this.message) return\n\n this.componentRef = this.vcr.createComponent(HelpTextComponent)\n this.componentRef.setInput('message', this.message)\n }\n}\n","import { ComponentRef, Directive, ElementRef, OnDestroy, OnInit, ViewContainerRef, inject } from '@angular/core'\nimport { ControlContainer, FormGroupDirective, NgForm } from '@angular/forms'\nimport { EMPTY, Subscription, fromEvent, iif, merge, startWith } from 'rxjs'\nimport { ErrorsComponent } from '../../components/errors/errors.component'\n\n@Directive({\n selector: '[appValidatorArrayMessage]',\n standalone: true\n})\nexport class ValidatorArrayMessageDirective implements OnInit, OnDestroy {\n private controlSubscription!: Subscription\n\n private parentContainer = inject(ControlContainer)\n private vcr = inject(ViewContainerRef)\n elementRef = inject(ElementRef)\n\n private componentRef: ComponentRef<ErrorsComponent> | null = null\n\n get form() {\n return this.parentContainer?.formDirective as NgForm | FormGroupDirective | null\n }\n\n ngOnInit() {\n const formArray = this.parentContainer.control\n\n if (!formArray) return\n\n this.controlSubscription = merge(\n formArray.statusChanges,\n fromEvent(this.elementRef.nativeElement, 'blur'),\n iif(() => !!this.form, this.form!.ngSubmit, EMPTY)\n )\n .pipe(startWith(formArray.status))\n .subscribe(() => {\n if (formArray.errors && this.form?.submitted) {\n if (this.componentRef) return\n\n this.componentRef = this.vcr.createComponent(ErrorsComponent)\n this.componentRef.changeDetectorRef.markForCheck()\n this.componentRef.setInput('errors', formArray.errors)\n } else {\n this.componentRef?.destroy()\n this.componentRef = null\n }\n })\n }\n\n ngOnDestroy() {\n this.controlSubscription?.unsubscribe()\n }\n}\n","import { Directive, HostBinding, OnDestroy, OnInit, StaticProvider, inject } from '@angular/core'\nimport { AbstractControl, ControlContainer, FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'\nimport { AsyncPipe, CommonModule } from '@angular/common'\nimport { of } from 'rxjs'\n\nimport { CONTROL_DATA } from '../../utils/control-data.token'\nimport { Control } from '../../models/forms.model'\n\nimport { ValidatorMessageDirective } from '../../directives/validator-message/validator-message.directive'\nimport { HelpTextDirective } from '../../directives/helpText/help-text.directive'\nimport { ValidatorArrayMessageDirective } from '../../directives/validator-array-message/validator-array-message.directive'\n\nexport const sharedControlDeps = [CommonModule, ReactiveFormsModule, ValidatorMessageDirective, HelpTextDirective, ValidatorArrayMessageDirective, AsyncPipe]\n\nexport const controlProvider: StaticProvider = {\n provide: ControlContainer,\n useFactory: () => inject(ControlContainer, { skipSelf: true })\n}\n\n@Directive()\nexport class BaseControlComponent implements OnInit, OnDestroy {\n @HostBinding('class') hostClass = ''\n\n control = inject(CONTROL_DATA)\n\n formControl: AbstractControl = new FormControl(this.control.control.value, this.resolveValidators(this.control.control))\n id = this.control.control.name + this.control.control.id + (this.control.index ?? '')\n\n private parentGroupDir = inject(ControlContainer)\n\n get parentFormGroup() {\n return this.parentGroupDir.control as FormGroup\n }\n\n ngOnInit() {\n this.initialize()\n }\n\n ngOnDestroy() {\n this.destroy()\n }\n\n initialize() {\n if (this.control.formGroup) {\n this.control.formGroup.addControl(this.control.control.name, this.formControl)\n } else {\n this.parentFormGroup.addControl(this.control.control.name, this.formControl)\n }\n\n this.hostClass = `field wrapper-${this.control.control.name}`\n }\n\n destroy() {\n if (this.control.formGroup) return\n else this.parentFormGroup.removeControl(this.control.control.name)\n }\n\n resolveValidators({ validators = {} }: Control) {\n const validatorsKeys = Object.keys(validators) as Array<keyof typeof validators>\n\n return validatorsKeys.map(key => {\n const value = validators[key]\n\n if (key === 'required') {\n return Validators.required\n }\n\n if (key === 'email') {\n return Validators.email\n }\n\n if (key === 'requiredTrue') {\n return Validators.requiredTrue\n }\n\n if (key === 'minLength' && typeof value === 'number') {\n return Validators.minLength(value)\n }\n\n if (key === 'pattern' && typeof value === 'string') {\n return Validators.pattern(value)\n }\n\n return Validators.nullValidator\n })\n }\n\n getOptions() {\n if (this.control.control.options) {\n return of(this.control.control.options)\n }\n\n if (!this.control.control.asyncOptions) return of([])\n\n return this.control.control.asyncOptions(this.parentFormGroup)\n }\n}\n","import { Component } from '@angular/core'\nimport { BaseControlComponent, controlProvider, sharedControlDeps } from '../base-control/base-control.component'\n\n@Component({\n selector: 'app-checkbox-field',\n standalone: true,\n imports: [...sharedControlDeps],\n viewProviders: [controlProvider],\n templateUrl: './checkbox-field.component.html'\n})\nexport class CheckboxFieldComponent extends BaseControlComponent {}\n","<div>\n <input\n type=\"checkbox\"\n [id]=\"id\"\n [formControlName]=\"control.control.name\" />\n <label\n [for]=\"id\"\n [innerHTML]=\"control.control.label\">\n </label>\n\n <div\n appHelpText\n [message]=\"control.control.helpText ?? ''\"\n appValidatorMessage\n ngDefaultControl\n [formControlName]=\"control.control.name\"></div>\n</div>\n","import { Component } from '@angular/core'\nimport { BaseControlComponent, controlProvider, sharedControlDeps } from '../base-control/base-control.component'\nimport { FormArray, FormControl } from '@angular/forms'\n\n@Component({\n selector: 'app-checkbox-group-field',\n standalone: true,\n imports: [...sharedControlDeps],\n viewProviders: [controlProvider],\n templateUrl: './checkbox-group-field.component.html'\n})\nexport class CheckboxGroupFieldComponent extends BaseControlComponent {\n override formControl = new FormArray<FormControl>([], this.resolveValidators(this.control.control))\n\n change(event: Event) {\n const element = event.target as HTMLInputElement\n const value = element.value as never\n\n const index = this.formControl.value.indexOf(value)\n if (index === -1) {\n const fc = new FormControl(value)\n this.formControl.push(fc)\n } else {\n this.formControl.removeAt(index)\n }\n }\n}\n","<label for=\"\">\n {{ control.control.label }}\n</label>\n\n<div\n [formArrayName]=\"control.control.name\"\n appHelpText\n [message]=\"control.control.helpText ?? ''\"\n appValidatorArrayMessage>\n @for (option of getOptions() | async; track option.value; let index = $index) {\n <div>\n <input\n type=\"checkbox\"\n (change)=\"change($event)\"\n [value]=\"option.value\"\n [id]=\"id + index\" />\n <label [for]=\"id + index\">\n {{ option.label }}\n </label>\n </div>\n }\n</div>\n","import { Component, OnInit, inject } from '@angular/core'\nimport { BaseControlComponent, controlProvider, sharedControlDeps } from '../base-control/base-control.component'\nimport { FormGroup } from '@angular/forms'\nimport { ControlResolver } from '../../services/control-resolver/control-resolver.service'\nimport { ControlInjector } from '../../pipes/control-injector.pipe'\n\n@Component({\n selector: 'app-group-field',\n standalone: true,\n imports: [...sharedControlDeps, ControlInjector],\n viewProviders: [controlProvider],\n templateUrl: './group-field.component.html'\n})\nexport class GroupFieldComponent extends BaseControlComponent implements OnInit {\n controlResolver = inject(ControlResolver)\n\n override formControl = new FormGroup({})\n}\n","<div [formGroupName]=\"control.control.name\">\n @for (control of control.control.controls; track control.name) {\n <ng-container\n [ngComponentOutlet]=\"controlResolver.resolve(control, parentFormGroup) | async\"\n [ngComponentOutletInjector]=\"control.name | controlInjector: control\">\n </ng-container>\n }\n</div>\n","import { Component } from '@angular/core'\nimport { BaseControlComponent, controlProvider, sharedControlDeps } from '../base-control/base-control.component'\n\n@Component({\n selector: 'app-input-field',\n standalone: true,\n imports: [...sharedControlDeps],\n viewProviders: [controlProvider],\n templateUrl: './input-field.component.html'\n})\nexport class InputFieldComponent extends BaseControlComponent {}\n","<label [for]=\"id\">\n {{ control.control.label }}\n</label>\n<input\n appHelpText\n [message]=\"control.control.helpText ?? ''\"\n appValidatorMessage\n [type]=\"control.control.type\"\n [formControlName]=\"control.control.name\"\n [checked]=\"control.control.value\"\n [id]=\"id\" />\n","import { Component } from '@angular/core'\nimport { BaseControlComponent, controlProvider, sharedControlDeps } from '../base-control/base-control.component'\n\n@Component({\n selector: 'app-radio-field',\n standalone: true,\n imports: [...sharedControlDeps],\n viewProviders: [controlProvider],\n templateUrl: './radio-field.component.html'\n})\nexport class RadioFieldComponent extends BaseControlComponent {}\n","<label for=\"\">\n {{ control.control.label }}\n</label>\n\n<div>\n @for (option of getOptions() | async; track option.value; let i = $index) {\n <div>\n <input\n type=\"radio\"\n [formControlName]=\"control.control.name\"\n [value]=\"option.value\"\n [id]=\"id + i\" />\n <label [for]=\"id + i\">\n {{ option.label }}\n </label>\n </div>\n }\n</div>\n\n<div\n appHelpText\n [message]=\"control.control.helpText ?? ''\"\n appValidatorMessage\n [formControlName]=\"control.control.name\"\n ngDefaultControl></div>\n","/*\n * Public API Surface of ngx-dynamic-forms\n */\n\nexport * from './lib/pipes/control-injector.pipe'\nexport * from './lib/models/forms.model'\nexport * from './lib/services/control-resolver/control-resolver.service'\n\nexport * from './lib/components/base-control/base-control.component'\nexport * from './lib/components/checkbox-field/checkbox-field.component'\nexport * from './lib/components/checkbox-group-field/checkbox-group-field.component'\nexport * from './lib/components/errors/errors.component'\nexport * from './lib/components/group-field/group-field.component'\nexport * from './lib/components/help-text/help-text.component'\nexport * from './lib/components/input-field/input-field.component'\nexport * from './lib/components/radio-field/radio-field.component'\n\nexport * from './lib/directives/helpText/help-text.directive'\nexport * from './lib/directives/validator-array-message/validator-array-message.directive'\nexport * from './lib/directives/validator-message/validator-message.directive'\n\nexport * from './lib/utils/control-data.token'\nexport * from './lib/utils/validation-error-messages.token'\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i3.ValidatorMessageDirective","i4.HelpTextDirective","i3.HelpTextDirective","i4.ValidatorArrayMessageDirective"],"mappings":";;;;;;;;MAUa,YAAY,GAAG,IAAI,cAAc,CAAc,cAAc;;MCD7D,eAAe,CAAA;AAJ5B,IAAA,WAAA,GAAA;AAKE,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;AAa5B,KAAA;AAXC,IAAA,SAAS,CAAC,IAAY,EAAE,OAAgB,EAAE,SAAqB,EAAE,KAAc,EAAA;QAC7E,OAAO,QAAQ,CAAC,MAAM,CAAC;YACrB,MAAM,EAAE,IAAI,CAAC,QAAQ;AACrB,YAAA,SAAS,EAAE;AACT,gBAAA;AACE,oBAAA,OAAO,EAAE,YAAY;oBACrB,QAAQ,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE;AACnD,iBAAA;AACF,aAAA;AACF,SAAA,CAAC,CAAA;KACH;8GAbU,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;4GAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,CAAA,CAAA,EAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;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AAA,EAAA,CAAA,EAAA,aAAA,EAAA,CAAC,eAAe,CAAC,EAAA,CAAA,CAAA,EAAA;;2FAGrB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAP/B,SAAS;+BACE,iBAAiB,EAAA,UAAA,EACf,IAAI,EAAA,OAAA,EACP,CAAC,GAAG,iBAAiB,CAAC,EAAA,aAAA,EAChB,CAAC,eAAe,CAAC,EAAA,QAAA,EAAA,okBAAA,EAAA,CAAA;;;;;;;;AEPlC;;AAEG;;ACFH;;AAEG;;;;"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OnDestroy, OnInit, StaticProvider } from '@angular/core';
|
|
2
|
+
import { AbstractControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { AsyncPipe, CommonModule } from '@angular/common';
|
|
4
|
+
import { Control } from '../../models/forms.model';
|
|
5
|
+
import { ValidatorMessageDirective } from '../../directives/validator-message/validator-message.directive';
|
|
6
|
+
import { HelpTextDirective } from '../../directives/helpText/help-text.directive';
|
|
7
|
+
import { ValidatorArrayMessageDirective } from '../../directives/validator-array-message/validator-array-message.directive';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare const sharedControlDeps: (typeof AsyncPipe | typeof ValidatorMessageDirective | typeof HelpTextDirective | typeof ValidatorArrayMessageDirective | typeof CommonModule)[];
|
|
10
|
+
export declare const controlProvider: StaticProvider;
|
|
11
|
+
export declare class BaseControlComponent implements OnInit, OnDestroy {
|
|
12
|
+
hostClass: string;
|
|
13
|
+
control: import("../../utils/control-data.token").ControlData;
|
|
14
|
+
formControl: AbstractControl;
|
|
15
|
+
id: string;
|
|
16
|
+
private parentGroupDir;
|
|
17
|
+
get parentFormGroup(): FormGroup<any>;
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
ngOnDestroy(): void;
|
|
20
|
+
initialize(): void;
|
|
21
|
+
destroy(): void;
|
|
22
|
+
resolveValidators({ validators }: Control): import("@angular/forms").ValidatorFn[];
|
|
23
|
+
getOptions(): import("rxjs").Observable<import("../../models/forms.model").Option[]>;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseControlComponent, never>;
|
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseControlComponent, never, never, {}, {}, never, never, false, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseControlComponent } from '../base-control/base-control.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CheckboxFieldComponent extends BaseControlComponent {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxFieldComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxFieldComponent, "app-checkbox-field", never, {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseControlComponent } from '../base-control/base-control.component';
|
|
2
|
+
import { FormArray, FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CheckboxGroupFieldComponent extends BaseControlComponent {
|
|
5
|
+
formControl: FormArray<FormControl<any>>;
|
|
6
|
+
change(event: Event): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxGroupFieldComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxGroupFieldComponent, "app-checkbox-group-field", never, {}, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { KeyValue } from '@angular/common';
|
|
2
|
+
import { ValidationErrors } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ErrorsComponent {
|
|
5
|
+
errors: ValidationErrors | null | undefined;
|
|
6
|
+
hostClass: string;
|
|
7
|
+
protected errorsMap: {
|
|
8
|
+
[key: string]: (args?: any) => string;
|
|
9
|
+
};
|
|
10
|
+
getError(error: KeyValue<string, any>): string | undefined;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorsComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorsComponent, "app-errors", never, { "errors": { "alias": "errors"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BaseControlComponent } from '../base-control/base-control.component';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { ControlResolver } from '../../services/control-resolver/control-resolver.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class GroupFieldComponent extends BaseControlComponent implements OnInit {
|
|
7
|
+
controlResolver: ControlResolver;
|
|
8
|
+
formControl: FormGroup<{}>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GroupFieldComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GroupFieldComponent, "app-group-field", never, {}, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class HelpTextComponent {
|
|
3
|
+
message: string;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HelpTextComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HelpTextComponent, "app-help-text", never, { "message": { "alias": "message"; "required": false; }; }, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseControlComponent } from '../base-control/base-control.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class InputFieldComponent extends BaseControlComponent {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputFieldComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputFieldComponent, "app-input-field", never, {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseControlComponent } from '../base-control/base-control.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class RadioFieldComponent extends BaseControlComponent {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioFieldComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioFieldComponent, "app-radio-field", never, {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BaseControlComponent } from '../base-control/base-control.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SelectFieldComponent extends BaseControlComponent implements OnInit {
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
setSelectedOption(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectFieldComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectFieldComponent, "app-radio-field", never, {}, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class HelpTextDirective implements OnInit {
|
|
4
|
+
message: string;
|
|
5
|
+
elementRef: ElementRef<any>;
|
|
6
|
+
private vcr;
|
|
7
|
+
private componentRef;
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HelpTextDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HelpTextDirective, "[appHelpText]", never, { "message": { "alias": "message"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroupDirective, NgForm } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ValidatorArrayMessageDirective implements OnInit, OnDestroy {
|
|
5
|
+
private controlSubscription;
|
|
6
|
+
private parentContainer;
|
|
7
|
+
private vcr;
|
|
8
|
+
elementRef: ElementRef<any>;
|
|
9
|
+
private componentRef;
|
|
10
|
+
get form(): FormGroupDirective | NgForm | null;
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidatorArrayMessageDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ValidatorArrayMessageDirective, "[appValidatorArrayMessage]", never, {}, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { NgControl, NgForm, FormGroupDirective } from '@angular/forms';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ValidatorMessageDirective implements OnInit, OnDestroy {
|
|
6
|
+
ngControl: NgControl;
|
|
7
|
+
elementRef: ElementRef<any>;
|
|
8
|
+
private componentRef;
|
|
9
|
+
get form(): FormGroupDirective | NgForm | null;
|
|
10
|
+
private parentContainer;
|
|
11
|
+
private vcr;
|
|
12
|
+
controlSubscription: Subscription;
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
ngOnDestroy(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidatorMessageDirective, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ValidatorMessageDirective, "[appValidatorMessage]", never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { FormGroup, Validators } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
export type ControlType = 'input' | 'group' | 'checkbox' | 'checkbox-group' | 'radio' | 'select';
|
|
5
|
+
export declare enum ControlTypeValues {
|
|
6
|
+
INPUT = "input",
|
|
7
|
+
GROUP = "group",
|
|
8
|
+
CHECKBOX = "checkbox",
|
|
9
|
+
CHECKBOX_GROUP = "checkbox-group",
|
|
10
|
+
RADIO = "radio",
|
|
11
|
+
SELECT = "select"
|
|
12
|
+
}
|
|
13
|
+
export interface Option {
|
|
14
|
+
label: string;
|
|
15
|
+
value: unknown;
|
|
16
|
+
selected?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
}
|
|
19
|
+
type CustomValidators = object;
|
|
20
|
+
type ValidatorsKeys = keyof Omit<typeof Validators & CustomValidators, 'prototype' | 'compose' | 'composeAsync'>;
|
|
21
|
+
export interface Control {
|
|
22
|
+
id: number;
|
|
23
|
+
label: string;
|
|
24
|
+
name: string;
|
|
25
|
+
controlType: ControlType;
|
|
26
|
+
helpText?: string;
|
|
27
|
+
type?: string;
|
|
28
|
+
value?: unknown;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
asyncOptions?: (form: FormGroup) => Observable<Option[]>;
|
|
31
|
+
options?: Option[];
|
|
32
|
+
controls?: Control[];
|
|
33
|
+
visible?: (form: FormGroup) => boolean;
|
|
34
|
+
validators?: {
|
|
35
|
+
[key in ValidatorsKeys]?: unknown;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export type ControlMap = {
|
|
39
|
+
[T in Control['controlType']]: () => Promise<Type<unknown>>;
|
|
40
|
+
};
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Injector, PipeTransform } from '@angular/core';
|
|
2
|
+
import { Control } from '../models/forms.model';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ControlInjector implements PipeTransform {
|
|
6
|
+
injector: Injector;
|
|
7
|
+
transform(name: string, control: Control, formGroup?: FormGroup, index?: number): Injector;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ControlInjector, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ControlInjector, "controlInjector", true>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { Control } from '../../models/forms.model';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ControlResolver {
|
|
6
|
+
private lazyControlComponents;
|
|
7
|
+
private loadedControlComponents;
|
|
8
|
+
resolve(control: Control, form: FormGroup): import("rxjs").Observable<Type<unknown>> | undefined;
|
|
9
|
+
checkVisible(control: Control, form: FormGroup): boolean;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ControlResolver, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ControlResolver>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { Control } from '../models/forms.model';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
export interface ControlData {
|
|
5
|
+
control: Control;
|
|
6
|
+
formGroup?: FormGroup;
|
|
7
|
+
index?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const CONTROL_DATA: InjectionToken<ControlData>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
export declare const ERROR_MESSAGES: {
|
|
3
|
+
[key: string]: (args?: any) => string;
|
|
4
|
+
};
|
|
5
|
+
export declare const ERROR_MESSAGES_ES: {
|
|
6
|
+
[key: string]: (args?: any) => string;
|
|
7
|
+
};
|
|
8
|
+
export declare const VALIDATION_ERROR_MESSAGES: InjectionToken<{
|
|
9
|
+
[key: string]: (args?: any) => string;
|
|
10
|
+
}>;
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "superlikers-dynamic-forms",
|
|
3
|
+
"version": "0.0.0-watch+1722974438718",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^18.0.0",
|
|
6
|
+
"@angular/core": "^18.0.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"module": "fesm2022/superlikers-dynamic-forms.mjs",
|
|
13
|
+
"typings": "index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
"./package.json": {
|
|
16
|
+
"default": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./index.d.ts",
|
|
20
|
+
"esm2022": "./esm2022/superlikers-dynamic-forms.mjs",
|
|
21
|
+
"esm": "./esm2022/superlikers-dynamic-forms.mjs",
|
|
22
|
+
"default": "./fesm2022/superlikers-dynamic-forms.mjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './lib/pipes/control-injector.pipe';
|
|
2
|
+
export * from './lib/models/forms.model';
|
|
3
|
+
export * from './lib/services/control-resolver/control-resolver.service';
|
|
4
|
+
export * from './lib/components/base-control/base-control.component';
|
|
5
|
+
export * from './lib/components/checkbox-field/checkbox-field.component';
|
|
6
|
+
export * from './lib/components/checkbox-group-field/checkbox-group-field.component';
|
|
7
|
+
export * from './lib/components/errors/errors.component';
|
|
8
|
+
export * from './lib/components/group-field/group-field.component';
|
|
9
|
+
export * from './lib/components/help-text/help-text.component';
|
|
10
|
+
export * from './lib/components/input-field/input-field.component';
|
|
11
|
+
export * from './lib/components/radio-field/radio-field.component';
|
|
12
|
+
export * from './lib/directives/helpText/help-text.directive';
|
|
13
|
+
export * from './lib/directives/validator-array-message/validator-array-message.directive';
|
|
14
|
+
export * from './lib/directives/validator-message/validator-message.directive';
|
|
15
|
+
export * from './lib/utils/control-data.token';
|
|
16
|
+
export * from './lib/utils/validation-error-messages.token';
|