@ieeesa-npm/presentation 0.1.8 → 0.2.0

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.
@@ -44,6 +44,8 @@ export declare class DynamicFormComponent implements OnInit, AfterContentInit {
44
44
  isSubmitButtonDisabled: boolean;
45
45
  isLeftButtonDisabled: boolean;
46
46
  isLeftButtonNeeded: boolean;
47
+ actionButtonAlignment: AlignmentType;
48
+ alignmentType: typeof AlignmentType;
47
49
  formSubmit: EventEmitter<any>;
48
50
  formChange: EventEmitter<any>;
49
51
  formInput: EventEmitter<any>;
@@ -68,8 +70,6 @@ export declare class DynamicFormComponent implements OnInit, AfterContentInit {
68
70
  formGroupArray: FormGroup[];
69
71
  formControlArray: any[];
70
72
  legendsArray: string[];
71
- actionButtonAlignment: AlignmentType;
72
- alignmentType: typeof AlignmentType;
73
73
  constructor(fb: FormBuilder);
74
74
  /**
75
75
  * Implementation of ngOnInit lifecycle hook method to create form group
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/presentation",
3
- "version": "0.1.8",
3
+ "version": "0.2.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0",
package/public-api.d.ts CHANGED
@@ -17,7 +17,7 @@ export * from './lib/components/select/select.component';
17
17
  export * from './lib/components/text-area/text-area.component';
18
18
  export * from './lib/components/toggle-button/toggle-button.component';
19
19
  export * from './lib/directives/dynamic-form-field/dynamic-form-field.directive';
20
- export * from './lib/directives/dynamic-form-field/focus-invalid-form-field.directive';
20
+ export * from './lib/directives/focus-invalid-form-field/focus-invalid-form-field.directive';
21
21
  export * from './lib/models/alignment-types.model';
22
22
  export * from './lib/models/autocomplete-option.model';
23
23
  export * from './lib/models/calendar.model';
@@ -1,34 +0,0 @@
1
- import { Directive, HostListener } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Directive used to set the focus of first invalid field of the form when the form is submitted
5
- * @export
6
- * @class FocusInvalidFormFieldDirective
7
- */
8
- export class FocusInvalidFormFieldDirective {
9
- // eslint-disable-next-line no-empty-function, no-unused-vars
10
- constructor(el) {
11
- this.el = el;
12
- }
13
- /**
14
- * Listens to the ngSubmit event and apply focus to first invalid form field
15
- * @memberof FocusInvalidFormFieldDirective
16
- */
17
- submitForm() {
18
- const invalidElement = this.el.nativeElement.querySelector('.ieeesa-dynamic-form__form-field input.ng-invalid,.ieeesa-dynamic-form__form-field mat-select.ng-invalid, .ieeesa-dynamic-form__form-field text-area.ng-invalid, .ieeesa-dynamic-form__form-field mat-checkbox.ng-invalid, .ieeesa-dynamic-form__form-field mat-radio-button.ng-invalid');
19
- invalidElement?.focus();
20
- }
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: FocusInvalidFormFieldDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
22
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.3", type: FocusInvalidFormFieldDirective, isStandalone: true, selector: "[ieeesaFocusInvalidFormField]", host: { listeners: { "ngSubmit": "submitForm()" } }, ngImport: i0 }); }
23
- }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: FocusInvalidFormFieldDirective, decorators: [{
25
- type: Directive,
26
- args: [{
27
- selector: '[ieeesaFocusInvalidFormField]',
28
- standalone: true,
29
- }]
30
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { submitForm: [{
31
- type: HostListener,
32
- args: ['ngSubmit']
33
- }] } });
34
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9jdXMtaW52YWxpZC1mb3JtLWZpZWxkLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL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