form-aurora-stefanini 0.1.10 → 0.1.13

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 (53) hide show
  1. package/README.md +133 -133
  2. package/bundles/form-aurora-stefanini.umd.js +1078 -954
  3. package/bundles/form-aurora-stefanini.umd.js.map +1 -1
  4. package/bundles/form-aurora-stefanini.umd.min.js +2 -2
  5. package/bundles/form-aurora-stefanini.umd.min.js.map +1 -1
  6. package/esm2015/form-aurora-stefanini.js +4 -4
  7. package/esm2015/lib/Components/from-aurora/form-aurora.component.js +685 -685
  8. package/esm2015/lib/Models/company-parameters.js +7 -7
  9. package/esm2015/lib/Models/company.js +1 -1
  10. package/esm2015/lib/Models/fill.js +3 -3
  11. package/esm2015/lib/Models/state.js +1 -1
  12. package/esm2015/lib/Models/step.js +1 -1
  13. package/esm2015/lib/Models/stepMethod.js +3 -3
  14. package/esm2015/lib/form-aurora.module.js +22 -22
  15. package/esm2015/lib/services/TemplateService.js +85 -85
  16. package/esm2015/lib/services/data.service.js +90 -82
  17. package/esm2015/lib/utils/Offusqued.js +120 -0
  18. package/esm2015/lib/utils/regex.js +52 -52
  19. package/esm2015/public-api.js +10 -10
  20. package/esm5/form-aurora-stefanini.js +4 -4
  21. package/esm5/lib/Components/from-aurora/form-aurora.component.js +732 -732
  22. package/esm5/lib/Models/company-parameters.js +19 -19
  23. package/esm5/lib/Models/company.js +1 -1
  24. package/esm5/lib/Models/fill.js +7 -7
  25. package/esm5/lib/Models/state.js +1 -1
  26. package/esm5/lib/Models/step.js +1 -1
  27. package/esm5/lib/Models/stepMethod.js +7 -7
  28. package/esm5/lib/form-aurora.module.js +25 -25
  29. package/esm5/lib/services/TemplateService.js +97 -97
  30. package/esm5/lib/services/data.service.js +93 -85
  31. package/esm5/lib/utils/Offusqued.js +121 -0
  32. package/esm5/lib/utils/regex.js +52 -52
  33. package/esm5/public-api.js +10 -10
  34. package/fesm2015/form-aurora-stefanini.js +1013 -890
  35. package/fesm2015/form-aurora-stefanini.js.map +1 -1
  36. package/fesm5/form-aurora-stefanini.js +1082 -958
  37. package/fesm5/form-aurora-stefanini.js.map +1 -1
  38. package/form-aurora-stefanini.d.ts +4 -4
  39. package/form-aurora-stefanini.metadata.json +1 -1
  40. package/lib/Components/from-aurora/form-aurora.component.d.ts +108 -108
  41. package/lib/Models/company-parameters.d.ts +14 -14
  42. package/lib/Models/company.d.ts +22 -22
  43. package/lib/Models/fill.d.ts +6 -6
  44. package/lib/Models/state.d.ts +5 -5
  45. package/lib/Models/step.d.ts +14 -14
  46. package/lib/Models/stepMethod.d.ts +8 -8
  47. package/lib/form-aurora.module.d.ts +2 -2
  48. package/lib/services/TemplateService.d.ts +8 -8
  49. package/lib/services/data.service.d.ts +35 -35
  50. package/lib/utils/Offusqued.d.ts +7 -0
  51. package/lib/utils/regex.d.ts +51 -51
  52. package/package.json +1 -1
  53. package/public-api.d.ts +6 -6
@@ -1,108 +1,108 @@
1
- import { OnInit, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
2
- import { FormGroup, NgForm } from '@angular/forms';
3
- import { HttpClient } from '@angular/common/http';
4
- import { NgbDateAdapter, NgbDateParserFormatter, NgbDateStruct, NgbDatepickerI18n } from '@ng-bootstrap/ng-bootstrap';
5
- import * as moment_ from 'moment';
6
- import { Fill } from '../../Models/fill';
7
- import { Step } from '../../Models/step';
8
- import { CommonDataService } from '../../services/data.service';
9
- /**
10
- * This Service handles how the date is represented in scripts i.e. ngModel.
11
- */
12
- export declare class CustomAdapter extends NgbDateAdapter<string> {
13
- readonly DELIMITER = "/";
14
- fromModel(value: string | null): NgbDateStruct | null;
15
- toModel(date: NgbDateStruct | null): string | null;
16
- }
17
- /**
18
- * This Service handles how the date is rendered and parsed from keyboard i.e. in the bound input field.
19
- */
20
- export declare class CustomDateParserFormatter extends NgbDateParserFormatter {
21
- readonly DELIMITER = "/";
22
- parse(value: string): NgbDateStruct | null;
23
- format(date: NgbDateStruct | null): string;
24
- }
25
- export declare class I18n {
26
- language: string;
27
- }
28
- export declare class CustomDatepickerI18n extends NgbDatepickerI18n {
29
- private _i18n;
30
- constructor(_i18n: I18n);
31
- getWeekdayLabel(weekday: number): string;
32
- getWeekLabel(): string;
33
- getMonthShortName(month: number): string;
34
- getMonthFullName(month: number): string;
35
- getDayAriaLabel(date: NgbDateStruct): string;
36
- getWeekdayShortName(weekday: number): string;
37
- }
38
- export declare class FormAuroraComponent implements OnInit, OnChanges {
39
- private data;
40
- private http;
41
- dataClassCss: any;
42
- dataForm: any;
43
- clickSubmit: any;
44
- dataReloadForm: any;
45
- welcomeTitle: any;
46
- welcomeDescription: any;
47
- urlPdf: string;
48
- nameCompany: string;
49
- schedule: string;
50
- isSimpleFlow: boolean;
51
- steps: Step[];
52
- formDynamic: NgForm;
53
- response: EventEmitter<any>;
54
- summit: EventEmitter<any>;
55
- viewAuthData: EventEmitter<any>;
56
- tipodocNumDoc: boolean;
57
- countSubmit: number;
58
- watchValid: boolean;
59
- watchRequired: boolean;
60
- captchaValid: boolean;
61
- today: moment_.Moment;
62
- maxYear: number;
63
- minYear: number;
64
- minDate: string;
65
- maxDate: string;
66
- recharge: boolean;
67
- indicativo: string;
68
- filldata: Fill;
69
- defaultDocType: string;
70
- patternNotValidDcto: boolean;
71
- patternNotValidCel: boolean;
72
- constructor(data: CommonDataService, http: HttpClient);
73
- ngOnInit(): void;
74
- startComponent(): void;
75
- range: FormGroup;
76
- resolvedCaptcha(captchaResponse: string): void;
77
- trackByIndex(index: number, obj: any): any;
78
- onChangeValidPatter(event: any, question: any): boolean;
79
- validOnlyText(event: any): boolean;
80
- validDate(event: any): boolean;
81
- onChangeValidDate(event: any): boolean;
82
- rediretoutside(event: any, question: any): void;
83
- /**
84
- * Dispatch submit event for validations exists
85
- * @param change
86
- */
87
- ngOnChanges(change: SimpleChanges): void;
88
- onSubmit(): boolean;
89
- private findParamBoolean;
90
- validRulesFields(numeroDoc: String, numeroCel: String, email: String): boolean;
91
- orderString(value: String): string;
92
- validMinlenghtAllQuestions(form: any): boolean;
93
- validMaxLengthAllQuestions(form: any): boolean;
94
- validRequired(form: NgForm, question: any): Boolean;
95
- validMinLength(form: NgForm, question: any): Boolean;
96
- validMaxLength(form: NgForm, question: any): Boolean;
97
- tycSelection(event: any): void;
98
- openLabelUrl(event: any, question: any): void;
99
- cancellKeypress(): boolean;
100
- emailRulesValidate(formQuestion: any): boolean;
101
- calendarRulesValidate(formQuestion: any): void;
102
- validateNotSpace(event: any): boolean;
103
- validateNumeroDocumento(numeroDoc: String): boolean;
104
- validateCelular(numeroCel: String): boolean;
105
- onkeypress(event: any): boolean;
106
- onChangeStep(step: Step, nextStep: Step, value: any): void;
107
- resetField(stepIn: Step): void;
108
- }
1
+ import { OnInit, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
2
+ import { FormGroup, NgForm } from '@angular/forms';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import { NgbDateAdapter, NgbDateParserFormatter, NgbDateStruct, NgbDatepickerI18n } from '@ng-bootstrap/ng-bootstrap';
5
+ import * as moment_ from 'moment';
6
+ import { Fill } from '../../Models/fill';
7
+ import { Step } from '../../Models/step';
8
+ import { CommonDataService } from '../../services/data.service';
9
+ /**
10
+ * This Service handles how the date is represented in scripts i.e. ngModel.
11
+ */
12
+ export declare class CustomAdapter extends NgbDateAdapter<string> {
13
+ readonly DELIMITER = "/";
14
+ fromModel(value: string | null): NgbDateStruct | null;
15
+ toModel(date: NgbDateStruct | null): string | null;
16
+ }
17
+ /**
18
+ * This Service handles how the date is rendered and parsed from keyboard i.e. in the bound input field.
19
+ */
20
+ export declare class CustomDateParserFormatter extends NgbDateParserFormatter {
21
+ readonly DELIMITER = "/";
22
+ parse(value: string): NgbDateStruct | null;
23
+ format(date: NgbDateStruct | null): string;
24
+ }
25
+ export declare class I18n {
26
+ language: string;
27
+ }
28
+ export declare class CustomDatepickerI18n extends NgbDatepickerI18n {
29
+ private _i18n;
30
+ constructor(_i18n: I18n);
31
+ getWeekdayLabel(weekday: number): string;
32
+ getWeekLabel(): string;
33
+ getMonthShortName(month: number): string;
34
+ getMonthFullName(month: number): string;
35
+ getDayAriaLabel(date: NgbDateStruct): string;
36
+ getWeekdayShortName(weekday: number): string;
37
+ }
38
+ export declare class FormAuroraComponent implements OnInit, OnChanges {
39
+ private data;
40
+ private http;
41
+ dataClassCss: any;
42
+ dataForm: any;
43
+ clickSubmit: any;
44
+ dataReloadForm: any;
45
+ welcomeTitle: any;
46
+ welcomeDescription: any;
47
+ urlPdf: string;
48
+ nameCompany: string;
49
+ schedule: string;
50
+ isSimpleFlow: boolean;
51
+ steps: Step[];
52
+ formDynamic: NgForm;
53
+ response: EventEmitter<any>;
54
+ summit: EventEmitter<any>;
55
+ viewAuthData: EventEmitter<any>;
56
+ tipodocNumDoc: boolean;
57
+ countSubmit: number;
58
+ watchValid: boolean;
59
+ watchRequired: boolean;
60
+ captchaValid: boolean;
61
+ today: moment_.Moment;
62
+ maxYear: number;
63
+ minYear: number;
64
+ minDate: string;
65
+ maxDate: string;
66
+ recharge: boolean;
67
+ indicativo: string;
68
+ filldata: Fill;
69
+ defaultDocType: string;
70
+ patternNotValidDcto: boolean;
71
+ patternNotValidCel: boolean;
72
+ constructor(data: CommonDataService, http: HttpClient);
73
+ ngOnInit(): void;
74
+ startComponent(): void;
75
+ range: FormGroup;
76
+ resolvedCaptcha(captchaResponse: string): void;
77
+ trackByIndex(index: number, obj: any): any;
78
+ onChangeValidPatter(event: any, question: any): boolean;
79
+ validOnlyText(event: any): boolean;
80
+ validDate(event: any): boolean;
81
+ onChangeValidDate(event: any): boolean;
82
+ rediretoutside(event: any, question: any): void;
83
+ /**
84
+ * Dispatch submit event for validations exists
85
+ * @param change
86
+ */
87
+ ngOnChanges(change: SimpleChanges): void;
88
+ onSubmit(): boolean;
89
+ private findParamBoolean;
90
+ validRulesFields(numeroDoc: String, numeroCel: String, email: String): boolean;
91
+ orderString(value: String): string;
92
+ validMinlenghtAllQuestions(form: any): boolean;
93
+ validMaxLengthAllQuestions(form: any): boolean;
94
+ validRequired(form: NgForm, question: any): Boolean;
95
+ validMinLength(form: NgForm, question: any): Boolean;
96
+ validMaxLength(form: NgForm, question: any): Boolean;
97
+ tycSelection(event: any): void;
98
+ openLabelUrl(event: any, question: any): void;
99
+ cancellKeypress(): boolean;
100
+ emailRulesValidate(formQuestion: any): boolean;
101
+ calendarRulesValidate(formQuestion: any): void;
102
+ validateNotSpace(event: any): boolean;
103
+ validateNumeroDocumento(numeroDoc: String): boolean;
104
+ validateCelular(numeroCel: String): boolean;
105
+ onkeypress(event: any): boolean;
106
+ onChangeStep(step: Step, nextStep: Step, value: any): void;
107
+ resetField(stepIn: Step): void;
108
+ }
@@ -1,14 +1,14 @@
1
- export declare class companyParameter {
2
- companyId: number;
3
- parameterId: number;
4
- }
5
- export declare class Parameter {
6
- dataType: string;
7
- id: number;
8
- parameter: string;
9
- type: string;
10
- }
11
- export declare class CompanyParameters {
12
- id: number;
13
- value: string;
14
- }
1
+ export declare class companyParameter {
2
+ companyId: number;
3
+ parameterId: number;
4
+ }
5
+ export declare class Parameter {
6
+ dataType: string;
7
+ id: number;
8
+ parameter: string;
9
+ type: string;
10
+ }
11
+ export declare class CompanyParameters {
12
+ id: number;
13
+ value: string;
14
+ }
@@ -1,22 +1,22 @@
1
- import { State } from './state';
2
- import { CompanyParameters } from './company-parameters';
3
- import { Step } from './step';
4
- export interface Company {
5
- id?: number;
6
- name: string;
7
- nameUrl: string;
8
- company: string;
9
- document: number;
10
- state: State;
11
- state_id: State;
12
- activity_id?: string;
13
- address?: string;
14
- phone?: number;
15
- logo?: any;
16
- contact_name?: string;
17
- contact_email?: string;
18
- contact_phone?: number;
19
- companyParameters?: CompanyParameters[];
20
- companyStepsRequestTurn: Array<Step>;
21
- looknFeelVersion?: number;
22
- }
1
+ import { State } from './state';
2
+ import { CompanyParameters } from './company-parameters';
3
+ import { Step } from './step';
4
+ export interface Company {
5
+ id?: number;
6
+ name: string;
7
+ nameUrl: string;
8
+ company: string;
9
+ document: number;
10
+ state: State;
11
+ state_id: State;
12
+ activity_id?: string;
13
+ address?: string;
14
+ phone?: number;
15
+ logo?: any;
16
+ contact_name?: string;
17
+ contact_email?: string;
18
+ contact_phone?: number;
19
+ companyParameters?: CompanyParameters[];
20
+ companyStepsRequestTurn: Array<Step>;
21
+ looknFeelVersion?: number;
22
+ }
@@ -1,6 +1,6 @@
1
- export declare class Fill {
2
- id: number;
3
- value: string;
4
- type: number;
5
- data: string;
6
- }
1
+ export declare class Fill {
2
+ id: number;
3
+ value: string;
4
+ type: number;
5
+ data: string;
6
+ }
@@ -1,5 +1,5 @@
1
- export interface State {
2
- id: number;
3
- state?: string;
4
- name?: string;
5
- }
1
+ export interface State {
2
+ id: number;
3
+ state?: string;
4
+ name?: string;
5
+ }
@@ -1,14 +1,14 @@
1
- import { StepMethod } from "./stepMethod";
2
- export interface Step {
3
- id: number;
4
- step: string;
5
- description: string;
6
- stepOrder?: number;
7
- visibility?: boolean;
8
- stepMethod?: StepMethod;
9
- stepData?: any;
10
- value?: number;
11
- code?: string;
12
- simpleFlowSelectType?: number;
13
- viewData?: any;
14
- }
1
+ import { StepMethod } from "./stepMethod";
2
+ export interface Step {
3
+ id: number;
4
+ step: string;
5
+ description: string;
6
+ stepOrder?: number;
7
+ visibility?: boolean;
8
+ stepMethod?: StepMethod;
9
+ stepData?: any;
10
+ value?: number;
11
+ code?: string;
12
+ simpleFlowSelectType?: number;
13
+ viewData?: any;
14
+ }
@@ -1,8 +1,8 @@
1
- export declare class StepMethod {
2
- id?: number;
3
- mainStep?: number;
4
- nextStep?: number;
5
- mainEndpoint?: string;
6
- nextEndpoint?: string;
7
- level?: number;
8
- }
1
+ export declare class StepMethod {
2
+ id?: number;
3
+ mainStep?: number;
4
+ nextStep?: number;
5
+ mainEndpoint?: string;
6
+ nextEndpoint?: string;
7
+ level?: number;
8
+ }
@@ -1,2 +1,2 @@
1
- export declare class FormAuroraModule {
2
- }
1
+ export declare class FormAuroraModule {
2
+ }
@@ -1,8 +1,8 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Observable } from "rxjs";
3
- export declare class CommonTemplateService {
4
- private http;
5
- constructor(http: HttpClient);
6
- getTemplate(idCompany: any, url: any): Observable<any>;
7
- reloadStylePage(currentDocument: Document, templateCompany: any): void;
8
- }
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from "rxjs";
3
+ export declare class CommonTemplateService {
4
+ private http;
5
+ constructor(http: HttpClient);
6
+ getTemplate(idCompany: any, url: any): Observable<any>;
7
+ reloadStylePage(currentDocument: Document, templateCompany: any): void;
8
+ }
@@ -1,35 +1,35 @@
1
- export declare class CommonDataService {
2
- static COMPANY_KEY: string;
3
- static DOC_NUMBER_KEY: string;
4
- static DOC_TYPE_KEY: string;
5
- static PHONE_KEY: string;
6
- static TYPE_ATTENTION_KEY: string;
7
- static OFFICE_KEY: string;
8
- static TYPE_TURN_KEY: string;
9
- static SERVICE_KEY: string;
10
- static TURN_KEY: string;
11
- static PROGRAMED_TURN_KEY: string;
12
- static REQUEST_CALL: string;
13
- static FORM_DATA: string;
14
- static TEMPLATE: string;
15
- static TURN_RESCHEDULE: string;
16
- static USER_GENDER: string;
17
- static AUTO_REDIRECT: string;
18
- static SCHEDULE_GENERAL: string;
19
- static AGENDAMIENTO_TTP: string;
20
- static SINGLE_PAGE_ONE: string;
21
- static AVAILABLE_SCHEDULE_GRAL: string;
22
- static PROFILE: string;
23
- static PAGE_NEXT: string;
24
- static STEPS: string;
25
- static TYPE_TURN_ID: string;
26
- constructor();
27
- private getData;
28
- private setData;
29
- initData(): void;
30
- putValue(key: string, value: any): void;
31
- addValue(keyPrimary: string, keySecond: string, value: any): void;
32
- getValue(key: string): any;
33
- hasValue(key: string): any;
34
- clearMap(): void;
35
- }
1
+ export declare class CommonDataService {
2
+ static COMPANY_KEY: string;
3
+ static DOC_NUMBER_KEY: string;
4
+ static DOC_TYPE_KEY: string;
5
+ static PHONE_KEY: string;
6
+ static TYPE_ATTENTION_KEY: string;
7
+ static OFFICE_KEY: string;
8
+ static TYPE_TURN_KEY: string;
9
+ static SERVICE_KEY: string;
10
+ static TURN_KEY: string;
11
+ static PROGRAMED_TURN_KEY: string;
12
+ static REQUEST_CALL: string;
13
+ static FORM_DATA: string;
14
+ static TEMPLATE: string;
15
+ static TURN_RESCHEDULE: string;
16
+ static USER_GENDER: string;
17
+ static AUTO_REDIRECT: string;
18
+ static SCHEDULE_GENERAL: string;
19
+ static AGENDAMIENTO_TTP: string;
20
+ static SINGLE_PAGE_ONE: string;
21
+ static AVAILABLE_SCHEDULE_GRAL: string;
22
+ static PROFILE: string;
23
+ static PAGE_NEXT: string;
24
+ static STEPS: string;
25
+ static TYPE_TURN_ID: string;
26
+ constructor();
27
+ private getData;
28
+ private setData;
29
+ initData(): void;
30
+ putValue(key: string, value: any): void;
31
+ addValue(keyPrimary: string, keySecond: string, value: any): void;
32
+ getValue(key: string): any;
33
+ hasValue(key: string): any;
34
+ clearMap(): void;
35
+ }
@@ -0,0 +1,7 @@
1
+ export declare class Offusqued {
2
+ private dataMap;
3
+ constructor();
4
+ ofusquedData(data: string): string;
5
+ decodeOfusquedData(data: string): string;
6
+ private readValueInMap;
7
+ }
@@ -1,51 +1,51 @@
1
- export declare const regexType: {
2
- default: {
3
- exp: string;
4
- message: string;
5
- };
6
- word: {
7
- exp: string;
8
- message: string;
9
- };
10
- name: {
11
- exp: string;
12
- message: string;
13
- };
14
- alphanumberWord: {
15
- exp: string;
16
- message: string;
17
- };
18
- charWord: {
19
- exp: string;
20
- message: string;
21
- };
22
- anyWord: {
23
- exp: string;
24
- message: string;
25
- };
26
- percent: {
27
- exp: string;
28
- message: string;
29
- };
30
- email: {
31
- exp: RegExp;
32
- message: string;
33
- };
34
- number: {
35
- exp: string;
36
- message: string;
37
- };
38
- time24: {
39
- exp: string;
40
- message: string;
41
- };
42
- date: {
43
- exp: string;
44
- message: string;
45
- internal: string;
46
- };
47
- password: {
48
- exp: string;
49
- message: string;
50
- };
51
- };
1
+ export declare const regexType: {
2
+ default: {
3
+ exp: string;
4
+ message: string;
5
+ };
6
+ word: {
7
+ exp: string;
8
+ message: string;
9
+ };
10
+ name: {
11
+ exp: string;
12
+ message: string;
13
+ };
14
+ alphanumberWord: {
15
+ exp: string;
16
+ message: string;
17
+ };
18
+ charWord: {
19
+ exp: string;
20
+ message: string;
21
+ };
22
+ anyWord: {
23
+ exp: string;
24
+ message: string;
25
+ };
26
+ percent: {
27
+ exp: string;
28
+ message: string;
29
+ };
30
+ email: {
31
+ exp: RegExp;
32
+ message: string;
33
+ };
34
+ number: {
35
+ exp: string;
36
+ message: string;
37
+ };
38
+ time24: {
39
+ exp: string;
40
+ message: string;
41
+ };
42
+ date: {
43
+ exp: string;
44
+ message: string;
45
+ internal: string;
46
+ };
47
+ password: {
48
+ exp: string;
49
+ message: string;
50
+ };
51
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "form-aurora-stefanini",
3
- "version": "0.1.10",
3
+ "version": "0.1.13",
4
4
  "license": "Stefanini Colombia",
5
5
  "author": {
6
6
  "name": "Stefanini Colombia",
package/public-api.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export * from './lib/Components/from-aurora/form-aurora.component';
2
- export * from './lib/services/TemplateService';
3
- export * from './lib/services/data.service';
4
- export * from './lib/utils/regex';
5
- export * from './lib/Models/fill';
6
- export * from './lib/form-aurora.module';
1
+ export * from './lib/Components/from-aurora/form-aurora.component';
2
+ export * from './lib/services/TemplateService';
3
+ export * from './lib/services/data.service';
4
+ export * from './lib/utils/regex';
5
+ export * from './lib/Models/fill';
6
+ export * from './lib/form-aurora.module';