0.1.35 • Published 2 years ago

form-aurora-stefanini v0.1.35

Weekly downloads
-
License
Stefanini Colombi...
Repository
-
Last release
2 years ago

FormAurora

This library was generated with Angular CLI version 8.2.14.

License 📄

Stefanini colombia Stefanini

Getting Started

Install the form-aurora package:

npm i form-aurora

Import just what you need for your application:

@NgModule({
  declarations: [
    AppComponent, FormAuroraComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    CommonModule, FormsModule, ReactiveFormsModule
    , HttpClientModule],
  providers: [],
  bootstrap: [AppComponent]
})
<lib-FormAurora [nameCompany]="nameCompany" [dataClassCss]="dataClassCss" [dataForm]="dataForm" [imgPrincipal]="imgPrincipal" ></lib-FormAurora>
  ngOnInit() {
   this.loadData();
  }
    loadData() {
    this.dataClassCss = {
      formcontrol: "",
      container: "",
      titles: "",
      formgroup: "",
      spandrequired: "",    
      button: "",
      rowTitle: "",
      rowcontent: "",
      rowimage: "",
      rowform: "",
    }
    this.nameSave = "SAVE"
    this.nameCompany = "NAME COMPANY";
    this.imgPrincipal = "./assets/img/imgIdentificacion.png"
    this.dataForm = {
      id: 1,
      title: "Formulario1",
      urlSend: "http://localhost:8060/save",
      formQuestions: [
        {        
          order: "2",
          question: {
            id: 6,
            name: "address",
            value: "Direccion",
            required: false,
            questionType: {
              id: 1         
            },           
          }
        },
        {
          order: "1",
          question: {
            id: 5,
            name: "phone",
            value: "Telefono",
            required: true,
            questionType: {
              id: 1,             
            },           
          }
        },
        {
          order: "3",
          question: {
            id: 7,
            name: "company",
            value: "Empresa",
            required: true,
            questionType: {
              id: 3            
            },           
            questionAnswers: [
              {
                answer: {
                  id: 47,
                  value: "Stefanini",                  
                }
              },
              {
                answer: {
                  id: 48,
                  value: "IBM",                 
                }
              },
              {
                answer: {
                  id: 49,
                  value: "SENA",
                }
              }
            ]
          }
        },
      ]
    }
  }

Code scaffolding

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.

Note: Don't forget to add --project FormAurora or else it will be added to the default project in your angular.json file.

Build

Run ng build FormAurora to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build FormAurora, go to the dist folder cd dist/form-aurora and run npm publish.

0.1.31

2 years ago

0.1.32

2 years ago

0.1.33

2 years ago

0.1.11

2 years ago

0.1.34

2 years ago

0.1.12

2 years ago

0.1.35

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.15

2 years ago

0.1.27

2 years ago

0.1.28

2 years ago

0.1.29

2 years ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.26

2 years ago

0.1.16

2 years ago

0.1.17

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago