9.0.76 • Published 2 years ago

ngx-schema-form-widgets-material v9.0.76

Weekly downloads
211
License
-
Repository
-
Last release
2 years ago

Ngx Schema Form UI Material Library

Easy build forms based on JSON Schema.

This lib provides widgets based on Angular Material.

This widget are used within a form generated by the ngx-schema-form-view project.

Preview

Preview

A tiny impression of a preview. See some preview images

DEMO

See a demo application click here

Usage

Install dependencies:

  $ npm install ngx-schema-form ngx-schema-form-view ngx-schema-form-widgets-material --save

Register the module UIWidgetsMaterialModule into your module declaration and register the registry as provider

@NgModule({
  // ..
  imports: [
    //... 
    , SchemaFormModule.forRoot()// ngx-schema-form
    , UIFormViewModule.forRoot()// ngx-schema-form-view
    , UIWidgetsMaterialModule // ngx-schema-form-ui-material
  ],
  providers: [
    {provide: WidgetRegistry, useClass: WidgetRegistryMaterial}, // the ui widget registry
    {provide: SchemaValidatorFactory, useClass: FixOptionalEmptyFieldsZSchemaValidatorFactory} // enhanced validator
  ],
  // ..
})

Install some style customizations in your angular.json

    "styles": [
              "src/styles.css",
              "node_modules/ngx-schema-form-widgets-material/ngx-schema-form-widgets-material.css"
            ]

Install grid style from primeng in your angular.json

    "styles": [
              "src/styles.css",
              "node_modules/ngx-schema-form-widgets-material/primeng-ui-g.css"
            ]

Import your default material css

  /* You can add global styles to this file, and also import other style files */
  @import "~@angular/material/prebuilt-themes/indigo-pink.css";

Widget Library Documentation

Head over to the library documentation README.MD (Not Yet :-( )

Unfortunately this projects lacks of a documentation.

To see how to use any of this widget head over to the source code of the widgets html templates

Development

To generate all *.js, *.d.ts and *.metadata.json files:

Live preview

Try it out in the demo app

$ ng build --prod ngx-schema-form-widgets-material
$ npm start

Build library

$ ng build --prod ngx-schema-form-widgets-material

or use the shortcut npm run build:lib

Deploy library

$ ng build --prod ngx-schema-form-widgets-material && \
  cd dist/ngx-schema-form-widgets-material && \
  npm pack \
  && cd -

or use the shortcut $ npm run deploy:lib

9.0.75

2 years ago

9.0.74

2 years ago

9.0.76

2 years ago

9.0.71

2 years ago

9.0.73

2 years ago

9.0.72

2 years ago

9.0.70

3 years ago

9.0.69

3 years ago

9.0.68

3 years ago

9.0.66

3 years ago

9.0.65

3 years ago

9.0.64

3 years ago

9.0.63

3 years ago

9.0.62

3 years ago

9.0.61

3 years ago

9.0.57

3 years ago

9.0.56

3 years ago

9.0.59

3 years ago

9.0.58

3 years ago

9.0.60

3 years ago

9.0.49

3 years ago

9.0.48

3 years ago

9.0.47

3 years ago

9.0.53

3 years ago

9.0.55

3 years ago

9.0.54

3 years ago

9.0.51

3 years ago

9.0.50

3 years ago

9.0.46

3 years ago

9.0.45

3 years ago

9.0.44

3 years ago

9.0.43

3 years ago

9.0.42

3 years ago

9.0.41

3 years ago

9.0.40

3 years ago

9.0.39

3 years ago

9.0.36

3 years ago

9.0.35

3 years ago

9.0.34

3 years ago

9.0.33

3 years ago

9.0.31

3 years ago

9.0.32

3 years ago

9.0.30

3 years ago

9.0.28

3 years ago

9.0.27

3 years ago

9.0.26

3 years ago

9.0.25

3 years ago

9.0.24

3 years ago

9.0.22

3 years ago

9.0.21

3 years ago

9.0.20

4 years ago

9.0.19

4 years ago

9.0.17

4 years ago

9.0.16

4 years ago

9.0.15

4 years ago

9.0.12

4 years ago

9.0.14

4 years ago

9.0.11

4 years ago

9.0.10

4 years ago

9.0.8

4 years ago

9.0.6

4 years ago

9.0.5

4 years ago

9.0.4

4 years ago

9.0.3

4 years ago

9.0.2

4 years ago

9.0.0-beta

4 years ago

9.0.0

4 years ago

1.0.0-beta

4 years ago