9.0.76 • Published 3 years ago

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

Weekly downloads
211
License
-
Repository
-
Last release
3 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

3 years ago

9.0.74

3 years ago

9.0.76

3 years ago

9.0.71

4 years ago

9.0.73

3 years ago

9.0.72

3 years ago

9.0.70

4 years ago

9.0.69

4 years ago

9.0.68

4 years ago

9.0.66

4 years ago

9.0.65

4 years ago

9.0.64

4 years ago

9.0.63

4 years ago

9.0.62

4 years ago

9.0.61

4 years ago

9.0.57

4 years ago

9.0.56

4 years ago

9.0.59

4 years ago

9.0.58

4 years ago

9.0.60

4 years ago

9.0.49

4 years ago

9.0.48

4 years ago

9.0.47

4 years ago

9.0.53

4 years ago

9.0.55

4 years ago

9.0.54

4 years ago

9.0.51

4 years ago

9.0.50

4 years ago

9.0.46

4 years ago

9.0.45

4 years ago

9.0.44

4 years ago

9.0.43

4 years ago

9.0.42

4 years ago

9.0.41

4 years ago

9.0.40

4 years ago

9.0.39

4 years ago

9.0.36

4 years ago

9.0.35

4 years ago

9.0.34

4 years ago

9.0.33

4 years ago

9.0.31

4 years ago

9.0.32

4 years ago

9.0.30

4 years ago

9.0.28

4 years ago

9.0.27

5 years ago

9.0.26

5 years ago

9.0.25

5 years ago

9.0.24

5 years ago

9.0.22

5 years ago

9.0.21

5 years ago

9.0.20

5 years ago

9.0.19

5 years ago

9.0.17

5 years ago

9.0.16

5 years ago

9.0.15

5 years ago

9.0.12

5 years ago

9.0.14

5 years ago

9.0.11

5 years ago

9.0.10

5 years ago

9.0.8

5 years ago

9.0.6

5 years ago

9.0.5

5 years ago

9.0.4

5 years ago

9.0.3

5 years ago

9.0.2

5 years ago

9.0.0-beta

5 years ago

9.0.0

5 years ago

1.0.0-beta

5 years ago