form-aurora-stefanini 0.1.10 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +133 -133
- package/bundles/form-aurora-stefanini.umd.js +1078 -954
- package/bundles/form-aurora-stefanini.umd.js.map +1 -1
- package/bundles/form-aurora-stefanini.umd.min.js +2 -2
- package/bundles/form-aurora-stefanini.umd.min.js.map +1 -1
- package/esm2015/form-aurora-stefanini.js +4 -4
- package/esm2015/lib/Components/from-aurora/form-aurora.component.js +685 -685
- package/esm2015/lib/Models/company-parameters.js +7 -7
- package/esm2015/lib/Models/company.js +1 -1
- package/esm2015/lib/Models/fill.js +3 -3
- package/esm2015/lib/Models/state.js +1 -1
- package/esm2015/lib/Models/step.js +1 -1
- package/esm2015/lib/Models/stepMethod.js +3 -3
- package/esm2015/lib/form-aurora.module.js +22 -22
- package/esm2015/lib/services/TemplateService.js +85 -85
- package/esm2015/lib/services/data.service.js +90 -82
- package/esm2015/lib/utils/Offusqued.js +120 -0
- package/esm2015/lib/utils/regex.js +52 -52
- package/esm2015/public-api.js +10 -10
- package/esm5/form-aurora-stefanini.js +4 -4
- package/esm5/lib/Components/from-aurora/form-aurora.component.js +732 -732
- package/esm5/lib/Models/company-parameters.js +19 -19
- package/esm5/lib/Models/company.js +1 -1
- package/esm5/lib/Models/fill.js +7 -7
- package/esm5/lib/Models/state.js +1 -1
- package/esm5/lib/Models/step.js +1 -1
- package/esm5/lib/Models/stepMethod.js +7 -7
- package/esm5/lib/form-aurora.module.js +25 -25
- package/esm5/lib/services/TemplateService.js +97 -97
- package/esm5/lib/services/data.service.js +93 -85
- package/esm5/lib/utils/Offusqued.js +121 -0
- package/esm5/lib/utils/regex.js +52 -52
- package/esm5/public-api.js +10 -10
- package/fesm2015/form-aurora-stefanini.js +1013 -890
- package/fesm2015/form-aurora-stefanini.js.map +1 -1
- package/fesm5/form-aurora-stefanini.js +1082 -958
- package/fesm5/form-aurora-stefanini.js.map +1 -1
- package/form-aurora-stefanini.d.ts +4 -4
- package/form-aurora-stefanini.metadata.json +1 -1
- package/lib/Components/from-aurora/form-aurora.component.d.ts +108 -108
- package/lib/Models/company-parameters.d.ts +14 -14
- package/lib/Models/company.d.ts +22 -22
- package/lib/Models/fill.d.ts +6 -6
- package/lib/Models/state.d.ts +5 -5
- package/lib/Models/step.d.ts +14 -14
- package/lib/Models/stepMethod.d.ts +8 -8
- package/lib/form-aurora.module.d.ts +2 -2
- package/lib/services/TemplateService.d.ts +8 -8
- package/lib/services/data.service.d.ts +35 -35
- package/lib/utils/Offusqued.d.ts +7 -0
- package/lib/utils/regex.d.ts +51 -51
- package/package.json +1 -1
- package/public-api.d.ts +6 -6
package/README.md
CHANGED
@@ -1,133 +1,133 @@
|
|
1
|
-
# FormAurora
|
2
|
-
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.14.
|
4
|
-
|
5
|
-
## License 📄
|
6
|
-
Stefanini colombia [Stefanini](https://stefanini.com/es)
|
7
|
-
|
8
|
-
## Getting Started
|
9
|
-
|
10
|
-
Install the [`form-aurora` package](https://www.npmjs.com/package/form-aurora):
|
11
|
-
|
12
|
-
```
|
13
|
-
npm i form-aurora
|
14
|
-
```
|
15
|
-
|
16
|
-
Import just what you need for your application:
|
17
|
-
|
18
|
-
```js
|
19
|
-
@NgModule({
|
20
|
-
declarations: [
|
21
|
-
AppComponent, FormAuroraComponent
|
22
|
-
],
|
23
|
-
imports: [
|
24
|
-
BrowserModule,
|
25
|
-
AppRoutingModule,
|
26
|
-
CommonModule, FormsModule, ReactiveFormsModule
|
27
|
-
, HttpClientModule],
|
28
|
-
providers: [],
|
29
|
-
bootstrap: [AppComponent]
|
30
|
-
})
|
31
|
-
```
|
32
|
-
```html
|
33
|
-
<lib-FormAurora [nameCompany]="nameCompany" [dataClassCss]="dataClassCss" [dataForm]="dataForm" [imgPrincipal]="imgPrincipal" ></lib-FormAurora>
|
34
|
-
```
|
35
|
-
```js
|
36
|
-
ngOnInit() {
|
37
|
-
this.loadData();
|
38
|
-
}
|
39
|
-
loadData() {
|
40
|
-
this.dataClassCss = {
|
41
|
-
formcontrol: "",
|
42
|
-
container: "",
|
43
|
-
titles: "",
|
44
|
-
formgroup: "",
|
45
|
-
spandrequired: "",
|
46
|
-
button: "",
|
47
|
-
rowTitle: "",
|
48
|
-
rowcontent: "",
|
49
|
-
rowimage: "",
|
50
|
-
rowform: "",
|
51
|
-
}
|
52
|
-
this.nameSave = "SAVE"
|
53
|
-
this.nameCompany = "NAME COMPANY";
|
54
|
-
this.imgPrincipal = "./assets/img/imgIdentificacion.png"
|
55
|
-
this.dataForm = {
|
56
|
-
id: 1,
|
57
|
-
title: "Formulario1",
|
58
|
-
urlSend: "http://localhost:8060/save",
|
59
|
-
formQuestions: [
|
60
|
-
{
|
61
|
-
order: "2",
|
62
|
-
question: {
|
63
|
-
id: 6,
|
64
|
-
name: "address",
|
65
|
-
value: "Direccion",
|
66
|
-
required: false,
|
67
|
-
questionType: {
|
68
|
-
id: 1
|
69
|
-
},
|
70
|
-
}
|
71
|
-
},
|
72
|
-
{
|
73
|
-
order: "1",
|
74
|
-
question: {
|
75
|
-
id: 5,
|
76
|
-
name: "phone",
|
77
|
-
value: "Telefono",
|
78
|
-
required: true,
|
79
|
-
questionType: {
|
80
|
-
id: 1,
|
81
|
-
},
|
82
|
-
}
|
83
|
-
},
|
84
|
-
{
|
85
|
-
order: "3",
|
86
|
-
question: {
|
87
|
-
id: 7,
|
88
|
-
name: "company",
|
89
|
-
value: "Empresa",
|
90
|
-
required: true,
|
91
|
-
questionType: {
|
92
|
-
id: 3
|
93
|
-
},
|
94
|
-
questionAnswers: [
|
95
|
-
{
|
96
|
-
answer: {
|
97
|
-
id: 47,
|
98
|
-
value: "Stefanini",
|
99
|
-
}
|
100
|
-
},
|
101
|
-
{
|
102
|
-
answer: {
|
103
|
-
id: 48,
|
104
|
-
value: "IBM",
|
105
|
-
}
|
106
|
-
},
|
107
|
-
{
|
108
|
-
answer: {
|
109
|
-
id: 49,
|
110
|
-
value: "SENA",
|
111
|
-
}
|
112
|
-
}
|
113
|
-
]
|
114
|
-
}
|
115
|
-
},
|
116
|
-
]
|
117
|
-
}
|
118
|
-
}
|
119
|
-
```
|
120
|
-
## Code scaffolding
|
121
|
-
|
122
|
-
Run `ng generate component component-name --project FormAurora` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project FormAurora`.
|
123
|
-
> Note: Don't forget to add `--project FormAurora` or else it will be added to the default project in your `angular.json` file.
|
124
|
-
|
125
|
-
## Build
|
126
|
-
|
127
|
-
Run `ng build FormAurora` to build the project. The build artifacts will be stored in the `dist/` directory.
|
128
|
-
|
129
|
-
## Publishing
|
130
|
-
|
131
|
-
After building your library with `ng build FormAurora`, go to the dist folder `cd dist/form-aurora` and run `npm publish`.
|
132
|
-
|
133
|
-
|
1
|
+
# FormAurora
|
2
|
+
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.14.
|
4
|
+
|
5
|
+
## License 📄
|
6
|
+
Stefanini colombia [Stefanini](https://stefanini.com/es)
|
7
|
+
|
8
|
+
## Getting Started
|
9
|
+
|
10
|
+
Install the [`form-aurora` package](https://www.npmjs.com/package/form-aurora):
|
11
|
+
|
12
|
+
```
|
13
|
+
npm i form-aurora
|
14
|
+
```
|
15
|
+
|
16
|
+
Import just what you need for your application:
|
17
|
+
|
18
|
+
```js
|
19
|
+
@NgModule({
|
20
|
+
declarations: [
|
21
|
+
AppComponent, FormAuroraComponent
|
22
|
+
],
|
23
|
+
imports: [
|
24
|
+
BrowserModule,
|
25
|
+
AppRoutingModule,
|
26
|
+
CommonModule, FormsModule, ReactiveFormsModule
|
27
|
+
, HttpClientModule],
|
28
|
+
providers: [],
|
29
|
+
bootstrap: [AppComponent]
|
30
|
+
})
|
31
|
+
```
|
32
|
+
```html
|
33
|
+
<lib-FormAurora [nameCompany]="nameCompany" [dataClassCss]="dataClassCss" [dataForm]="dataForm" [imgPrincipal]="imgPrincipal" ></lib-FormAurora>
|
34
|
+
```
|
35
|
+
```js
|
36
|
+
ngOnInit() {
|
37
|
+
this.loadData();
|
38
|
+
}
|
39
|
+
loadData() {
|
40
|
+
this.dataClassCss = {
|
41
|
+
formcontrol: "",
|
42
|
+
container: "",
|
43
|
+
titles: "",
|
44
|
+
formgroup: "",
|
45
|
+
spandrequired: "",
|
46
|
+
button: "",
|
47
|
+
rowTitle: "",
|
48
|
+
rowcontent: "",
|
49
|
+
rowimage: "",
|
50
|
+
rowform: "",
|
51
|
+
}
|
52
|
+
this.nameSave = "SAVE"
|
53
|
+
this.nameCompany = "NAME COMPANY";
|
54
|
+
this.imgPrincipal = "./assets/img/imgIdentificacion.png"
|
55
|
+
this.dataForm = {
|
56
|
+
id: 1,
|
57
|
+
title: "Formulario1",
|
58
|
+
urlSend: "http://localhost:8060/save",
|
59
|
+
formQuestions: [
|
60
|
+
{
|
61
|
+
order: "2",
|
62
|
+
question: {
|
63
|
+
id: 6,
|
64
|
+
name: "address",
|
65
|
+
value: "Direccion",
|
66
|
+
required: false,
|
67
|
+
questionType: {
|
68
|
+
id: 1
|
69
|
+
},
|
70
|
+
}
|
71
|
+
},
|
72
|
+
{
|
73
|
+
order: "1",
|
74
|
+
question: {
|
75
|
+
id: 5,
|
76
|
+
name: "phone",
|
77
|
+
value: "Telefono",
|
78
|
+
required: true,
|
79
|
+
questionType: {
|
80
|
+
id: 1,
|
81
|
+
},
|
82
|
+
}
|
83
|
+
},
|
84
|
+
{
|
85
|
+
order: "3",
|
86
|
+
question: {
|
87
|
+
id: 7,
|
88
|
+
name: "company",
|
89
|
+
value: "Empresa",
|
90
|
+
required: true,
|
91
|
+
questionType: {
|
92
|
+
id: 3
|
93
|
+
},
|
94
|
+
questionAnswers: [
|
95
|
+
{
|
96
|
+
answer: {
|
97
|
+
id: 47,
|
98
|
+
value: "Stefanini",
|
99
|
+
}
|
100
|
+
},
|
101
|
+
{
|
102
|
+
answer: {
|
103
|
+
id: 48,
|
104
|
+
value: "IBM",
|
105
|
+
}
|
106
|
+
},
|
107
|
+
{
|
108
|
+
answer: {
|
109
|
+
id: 49,
|
110
|
+
value: "SENA",
|
111
|
+
}
|
112
|
+
}
|
113
|
+
]
|
114
|
+
}
|
115
|
+
},
|
116
|
+
]
|
117
|
+
}
|
118
|
+
}
|
119
|
+
```
|
120
|
+
## Code scaffolding
|
121
|
+
|
122
|
+
Run `ng generate component component-name --project FormAurora` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project FormAurora`.
|
123
|
+
> Note: Don't forget to add `--project FormAurora` or else it will be added to the default project in your `angular.json` file.
|
124
|
+
|
125
|
+
## Build
|
126
|
+
|
127
|
+
Run `ng build FormAurora` to build the project. The build artifacts will be stored in the `dist/` directory.
|
128
|
+
|
129
|
+
## Publishing
|
130
|
+
|
131
|
+
After building your library with `ng build FormAurora`, go to the dist folder `cd dist/form-aurora` and run `npm publish`.
|
132
|
+
|
133
|
+
|