dino-forms 1.0.2 → 1.0.3

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.
Files changed (55) hide show
  1. package/bundles/dino-forms.umd.js +2174 -2174
  2. package/bundles/dino-forms.umd.js.map +1 -1
  3. package/dino-forms.d.ts +5 -5
  4. package/esm2015/dino-forms.js +4 -4
  5. package/esm2015/lib/common/constants/comparison.operators.js +10 -10
  6. package/esm2015/lib/common/constants/constants.js +19 -19
  7. package/esm2015/lib/common/constants/generic-input-type.js +14 -14
  8. package/esm2015/lib/common/constants/logical.operators.js +5 -5
  9. package/esm2015/lib/common/constants/validation.js +10 -10
  10. package/esm2015/lib/common/custom-validators/custom.validator.js +15 -15
  11. package/esm2015/lib/common/error/app-error-handler.js +7 -7
  12. package/esm2015/lib/common/error/app-error.js +6 -6
  13. package/esm2015/lib/common/error/bad-request-error.js +4 -4
  14. package/esm2015/lib/common/error/invalid-user-error.js +4 -4
  15. package/esm2015/lib/common/error/not-found-error.js +4 -4
  16. package/esm2015/lib/common/utilities/expressions.utility.js +255 -255
  17. package/esm2015/lib/common/utilities/form.utility.js +143 -143
  18. package/esm2015/lib/common/utilities/object.utility.js +23 -23
  19. package/esm2015/lib/common/validators.js +51 -51
  20. package/esm2015/lib/components/accordion-form/accordion-form.component.js +150 -150
  21. package/esm2015/lib/components/alert/alert.component.js +27 -27
  22. package/esm2015/lib/components/expressions-form/expressions-form.component.js +246 -246
  23. package/esm2015/lib/components/form/form.component.js +175 -175
  24. package/esm2015/lib/components/modal-form/modal-form.component.js +121 -121
  25. package/esm2015/lib/components/tab-form/tab-form.component.js +200 -200
  26. package/esm2015/lib/dino-forms.module.js +70 -70
  27. package/esm2015/lib/services/data.service.js +72 -72
  28. package/esm2015/public-api.js +14 -14
  29. package/fesm2015/dino-forms.js +1502 -1502
  30. package/fesm2015/dino-forms.js.map +1 -1
  31. package/lib/common/constants/comparison.operators.d.ts +9 -9
  32. package/lib/common/constants/constants.d.ts +18 -18
  33. package/lib/common/constants/generic-input-type.d.ts +13 -13
  34. package/lib/common/constants/logical.operators.d.ts +4 -4
  35. package/lib/common/constants/validation.d.ts +9 -9
  36. package/lib/common/custom-validators/custom.validator.d.ts +6 -6
  37. package/lib/common/error/app-error-handler.d.ts +4 -4
  38. package/lib/common/error/app-error.d.ts +4 -4
  39. package/lib/common/error/bad-request-error.d.ts +3 -3
  40. package/lib/common/error/invalid-user-error.d.ts +3 -3
  41. package/lib/common/error/not-found-error.d.ts +3 -3
  42. package/lib/common/utilities/expressions.utility.d.ts +19 -19
  43. package/lib/common/utilities/form.utility.d.ts +14 -14
  44. package/lib/common/utilities/object.utility.d.ts +5 -5
  45. package/lib/common/validators.d.ts +4 -4
  46. package/lib/components/accordion-form/accordion-form.component.d.ts +39 -39
  47. package/lib/components/alert/alert.component.d.ts +12 -12
  48. package/lib/components/expressions-form/expressions-form.component.d.ts +58 -58
  49. package/lib/components/form/form.component.d.ts +51 -51
  50. package/lib/components/modal-form/modal-form.component.d.ts +38 -38
  51. package/lib/components/tab-form/tab-form.component.d.ts +45 -45
  52. package/lib/dino-forms.module.d.ts +15 -15
  53. package/lib/services/data.service.d.ts +17 -17
  54. package/package.json +1 -1
  55. package/public-api.d.ts +8 -8
@@ -1,38 +1,38 @@
1
- import { OnInit, ElementRef, EventEmitter } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- export declare class ModalFormComponent implements OnInit {
5
- form: FormGroup;
6
- modal: any;
7
- buttons: any[];
8
- disabled: boolean;
9
- onSubmit: EventEmitter<any>;
10
- closeModalElement: ElementRef;
11
- alert_timeout: number;
12
- danger: any;
13
- warning: any;
14
- success: any;
15
- info: any;
16
- primary: any;
17
- secondary: any;
18
- constructor();
19
- ngOnInit(): void;
20
- onStart(event: any): void;
21
- getForm(): FormGroup;
22
- getFormControls(): {
23
- [key: string]: import("@angular/forms").AbstractControl;
24
- };
25
- onClick(action: any): void;
26
- isFormValid(): boolean;
27
- resetForm(): void;
28
- closeModal(): void;
29
- setDanger(label: string): void;
30
- setWarning(label: string): void;
31
- setSuccess(label: string): void;
32
- setInfo(label: string): void;
33
- setPrimary(label: string): void;
34
- setSecondary(label: string): void;
35
- setAlertTimeout(timeout: number): void;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalFormComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalFormComponent, "df-modal-form", never, { "modal": "modal"; "buttons": "buttons"; "disabled": "disabled"; }, { "onSubmit": "onSubmit"; }, never, never>;
38
- }
1
+ import { OnInit, ElementRef, EventEmitter } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ModalFormComponent implements OnInit {
5
+ form: FormGroup;
6
+ modal: any;
7
+ buttons: any[];
8
+ disabled: boolean;
9
+ onSubmit: EventEmitter<any>;
10
+ closeModalElement: ElementRef;
11
+ alert_timeout: number;
12
+ danger: any;
13
+ warning: any;
14
+ success: any;
15
+ info: any;
16
+ primary: any;
17
+ secondary: any;
18
+ constructor();
19
+ ngOnInit(): void;
20
+ onStart(event: any): void;
21
+ getForm(): FormGroup;
22
+ getFormControls(): {
23
+ [key: string]: import("@angular/forms").AbstractControl;
24
+ };
25
+ onClick(action: any): void;
26
+ isFormValid(): boolean;
27
+ resetForm(): void;
28
+ closeModal(): void;
29
+ setDanger(label: string): void;
30
+ setWarning(label: string): void;
31
+ setSuccess(label: string): void;
32
+ setInfo(label: string): void;
33
+ setPrimary(label: string): void;
34
+ setSecondary(label: string): void;
35
+ setAlertTimeout(timeout: number): void;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalFormComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalFormComponent, "df-modal-form", never, { "modal": "modal"; "buttons": "buttons"; "disabled": "disabled"; }, { "onSubmit": "onSubmit"; }, never, never>;
38
+ }
@@ -1,45 +1,45 @@
1
- import { OnInit, EventEmitter } from '@angular/core';
2
- import { ExpressionsFormComponent } from '../expressions-form/expressions-form.component';
3
- import * as i0 from "@angular/core";
4
- export declare class TabFormComponent implements OnInit {
5
- private currentSection;
6
- private initIndex;
7
- forms: any[];
8
- sections: any[];
9
- buttons: any[];
10
- type: string;
11
- tabsId: string;
12
- position: string;
13
- onSubmit: EventEmitter<any>;
14
- myForm: ExpressionsFormComponent;
15
- constructor();
16
- alert_timeout: number;
17
- danger: any;
18
- warning: any;
19
- success: any;
20
- info: any;
21
- primary: any;
22
- secondary: any;
23
- ngOnInit(): void;
24
- getNavType(): "nav nav-pills flex-column" | "nav nav-pills" | "nav nav-tabs";
25
- getMargin(): string;
26
- onClick(action: string): void;
27
- onSectionButtonClicked(event: any, index: number, sectionLabel: string): void;
28
- getForms(): any[];
29
- resetForms(): void;
30
- getCurrentSection(): number;
31
- onStart(event: any): void;
32
- setCurrentSection(sectionNumber: number): void;
33
- allFormsAreValid(): boolean;
34
- getCols(type: any, position: any, column: any): "col-3 mycol" | "col-9 mycol" | "col-12 mycol";
35
- isEmpty(value: any): boolean;
36
- setDanger(label: string): void;
37
- setWarning(label: string): void;
38
- setSuccess(label: string): void;
39
- setInfo(label: string): void;
40
- setPrimary(label: string): void;
41
- setSecondary(label: string): void;
42
- setAlertTimeout(timeout: number): void;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<TabFormComponent, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<TabFormComponent, "df-tab-form", never, { "sections": "sections"; "buttons": "buttons"; "type": "type"; "tabsId": "tabsId"; "position": "position"; }, { "onSubmit": "onSubmit"; }, never, never>;
45
- }
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
+ import { ExpressionsFormComponent } from '../expressions-form/expressions-form.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TabFormComponent implements OnInit {
5
+ private currentSection;
6
+ private initIndex;
7
+ forms: any[];
8
+ sections: any[];
9
+ buttons: any[];
10
+ type: string;
11
+ tabsId: string;
12
+ position: string;
13
+ onSubmit: EventEmitter<any>;
14
+ myForm: ExpressionsFormComponent;
15
+ constructor();
16
+ alert_timeout: number;
17
+ danger: any;
18
+ warning: any;
19
+ success: any;
20
+ info: any;
21
+ primary: any;
22
+ secondary: any;
23
+ ngOnInit(): void;
24
+ getNavType(): "nav nav-pills flex-column" | "nav nav-pills" | "nav nav-tabs";
25
+ getMargin(): string;
26
+ onClick(action: string): void;
27
+ onSectionButtonClicked(event: any, index: number, sectionLabel: string): void;
28
+ getForms(): any[];
29
+ resetForms(): void;
30
+ getCurrentSection(): number;
31
+ onStart(event: any): void;
32
+ setCurrentSection(sectionNumber: number): void;
33
+ allFormsAreValid(): boolean;
34
+ getCols(type: any, position: any, column: any): "col-3 mycol" | "col-9 mycol" | "col-12 mycol";
35
+ isEmpty(value: any): boolean;
36
+ setDanger(label: string): void;
37
+ setWarning(label: string): void;
38
+ setSuccess(label: string): void;
39
+ setInfo(label: string): void;
40
+ setPrimary(label: string): void;
41
+ setSecondary(label: string): void;
42
+ setAlertTimeout(timeout: number): void;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabFormComponent, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabFormComponent, "df-tab-form", never, { "sections": "sections"; "buttons": "buttons"; "type": "type"; "tabsId": "tabsId"; "position": "position"; }, { "onSubmit": "onSubmit"; }, never, never>;
45
+ }
@@ -1,15 +1,15 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./components/form/form.component";
3
- import * as i2 from "./components/alert/alert.component";
4
- import * as i3 from "./components/expressions-form/expressions-form.component";
5
- import * as i4 from "./components/accordion-form/accordion-form.component";
6
- import * as i5 from "./components/modal-form/modal-form.component";
7
- import * as i6 from "./components/tab-form/tab-form.component";
8
- import * as i7 from "@angular/common";
9
- import * as i8 from "@angular/forms";
10
- import * as i9 from "@angular/platform-browser";
11
- export declare class DinoFormsModule {
12
- static ɵfac: i0.ɵɵFactoryDeclaration<DinoFormsModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<DinoFormsModule, [typeof i1.FormComponent, typeof i2.AlertComponent, typeof i3.ExpressionsFormComponent, typeof i4.AccordionFormComponent, typeof i5.ModalFormComponent, typeof i6.TabFormComponent], [typeof i7.CommonModule, typeof i8.FormsModule, typeof i8.ReactiveFormsModule, typeof i9.BrowserModule], [typeof i1.FormComponent, typeof i2.AlertComponent, typeof i3.ExpressionsFormComponent, typeof i4.AccordionFormComponent, typeof i5.ModalFormComponent, typeof i6.TabFormComponent]>;
14
- static ɵinj: i0.ɵɵInjectorDeclaration<DinoFormsModule>;
15
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/form/form.component";
3
+ import * as i2 from "./components/alert/alert.component";
4
+ import * as i3 from "./components/expressions-form/expressions-form.component";
5
+ import * as i4 from "./components/accordion-form/accordion-form.component";
6
+ import * as i5 from "./components/modal-form/modal-form.component";
7
+ import * as i6 from "./components/tab-form/tab-form.component";
8
+ import * as i7 from "@angular/common";
9
+ import * as i8 from "@angular/forms";
10
+ import * as i9 from "@angular/platform-browser";
11
+ export declare class DinoFormsModule {
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<DinoFormsModule, never>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DinoFormsModule, [typeof i1.FormComponent, typeof i2.AlertComponent, typeof i3.ExpressionsFormComponent, typeof i4.AccordionFormComponent, typeof i5.ModalFormComponent, typeof i6.TabFormComponent], [typeof i7.CommonModule, typeof i8.FormsModule, typeof i8.ReactiveFormsModule, typeof i9.BrowserModule], [typeof i1.FormComponent, typeof i2.AlertComponent, typeof i3.ExpressionsFormComponent, typeof i4.AccordionFormComponent, typeof i5.ModalFormComponent, typeof i6.TabFormComponent]>;
14
+ static ɵinj: i0.ɵɵInjectorDeclaration<DinoFormsModule>;
15
+ }
@@ -1,17 +1,17 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import * as i0 from "@angular/core";
3
- export declare class DataService {
4
- private _url;
5
- private http;
6
- constructor(_url: string, http: HttpClient);
7
- getAll(): import("rxjs").Observable<Object>;
8
- getByParam(params: any[]): import("rxjs").Observable<Object>;
9
- create(resource: any): import("rxjs").Observable<Object>;
10
- update(resource: any): import("rxjs").Observable<Object>;
11
- delete(id: any): import("rxjs").Observable<Object>;
12
- getId(id: any): import("rxjs").Observable<Object>;
13
- getObject(resource: any): import("rxjs").Observable<Object>;
14
- private handleError;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<DataService, never>;
16
- static ɵprov: i0.ɵɵInjectableDeclaration<DataService>;
17
- }
1
+ import { HttpClient } from '@angular/common/http';
2
+ import * as i0 from "@angular/core";
3
+ export declare class DataService {
4
+ private _url;
5
+ private http;
6
+ constructor(_url: string, http: HttpClient);
7
+ getAll(): import("rxjs").Observable<Object>;
8
+ getByParam(params: any[]): import("rxjs").Observable<Object>;
9
+ create(resource: any): import("rxjs").Observable<Object>;
10
+ update(resource: any): import("rxjs").Observable<Object>;
11
+ delete(id: any): import("rxjs").Observable<Object>;
12
+ getId(id: any): import("rxjs").Observable<Object>;
13
+ getObject(resource: any): import("rxjs").Observable<Object>;
14
+ private handleError;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<DataService>;
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dino-forms",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.1.3",
6
6
  "@angular/core": "^12.1.3",
package/public-api.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export * from './lib/components/alert/alert.component';
2
- export * from './lib/components/form/form.component';
3
- export * from './lib/components/expressions-form/expressions-form.component';
4
- export * from './lib/components/accordion-form/accordion-form.component';
5
- export * from './lib/components/modal-form/modal-form.component';
6
- export * from './lib/components/tab-form/tab-form.component';
7
- export * from './lib/services/data.service';
8
- export * from './lib/dino-forms.module';
1
+ export * from './lib/components/alert/alert.component';
2
+ export * from './lib/components/form/form.component';
3
+ export * from './lib/components/expressions-form/expressions-form.component';
4
+ export * from './lib/components/accordion-form/accordion-form.component';
5
+ export * from './lib/components/modal-form/modal-form.component';
6
+ export * from './lib/components/tab-form/tab-form.component';
7
+ export * from './lib/services/data.service';
8
+ export * from './lib/dino-forms.module';