1.3.29 • Published 5 days ago

@squidit/ngx-css v1.3.29

Weekly downloads
-
License
-
Repository
github
Last release
5 days ago

NGX CSS - Library

About

NGX CSS Framework An angular abstraction for Squid CSS

Table of contents

Exemple

See an exemple of all components here

Usage

Install

  1. Install
npm install @squidit/css @squidit/ngx-css --save
  1. Add css and toast js files to your angular.json
{
  // ...,
  "assets": [
    // This object inside assets Array
    {
      "glob": "**/*",
      "input": "./node_modules/@squidit/css/dist/fonts",
      "output": "./assets/fonts" // Output fonts
    },
    "src/assets" // Default assets
  ],
  "styles": [
    "src/styles.scss"
  ],
  "scripts": [
    "node_modules/@squidit/css/src/js/components/toast.js" // JS includes
  ]
  // ...
}
  1. Add to your style.scss main file
$fontsFolderPath: '/assets/fonts'; // Overwrite default font path
@import '@squidit/css/src/scss/squid.scss'; // Import all Framework Styles
  1. Import SquidCSSModule in your *.module.ts
import { SquidCSSModule } from '@squidit/ngx-css'

@NgModule({
  // ...
  imports: [
    // ...
    NgxSquidModule
  ]
  // ...
})

Use form erros variables

To use the errors handled in form components, you need to follow the steps below

  1. Install ngx-translate and follow the initial Setup

  2. On you .json files from each language follow the same structure (need one for each supported language of your application):

{
  // ...
  "forms": {
    "search": "Search",
    "searchSelectEmpty": "There are no options to select",
    "fileSize": "File too large",
    "required": "Required field",
    "minimumRequired": "The minimum number of selected tags must be greater than or equal to {{ minTags }}",
    "email": "Invalid email",
    "url": "Invalid URL. Attention: URL must start with https://",
    "date": "Invalid Date",
    "phone": "Invalid phone number",
    "minValueAllowed": "Min value allowed is: {{ min }}",
    "maxValueAllowed": "Max value allowed is: {{ max }}",
    "rangeDate:": "Date outside valid range"
  }
  // ...
}

Development

  1. Install npm dependences npm install

  2. Run npm start to watch angular library (src directory)

  3. In another window run start:application

This launches an angular pattern that is contained in the application folder. Just use the components inside it, and every change in the files in the src folder will be automatically reflected in the application.

Write Documentation

We use compodoc to write docs with jsDocs

Run start:docs and the compodoc will serve the docs. For each change it is necessary to run the command again

Deploy to NPM

Just draft a new release here on Github and an actions will starts

**Important to use the same tag as package.json

Documentation

See Docs here

1.3.29

5 days ago

1.3.28

6 days ago

1.3.27

21 days ago

1.3.26

1 month ago

1.3.25

2 months ago

1.3.24

2 months ago

1.3.23

2 months ago

1.3.22

2 months ago

1.3.21

3 months ago

1.3.2

3 months ago

1.3.1

3 months ago

1.3.0

3 months ago

1.2.29

3 months ago

1.2.28

3 months ago

1.2.27

4 months ago

1.2.26

4 months ago

1.2.24

5 months ago

1.2.25

5 months ago

1.2.23

5 months ago

1.2.21

5 months ago

1.2.22

5 months ago

1.2.2

5 months ago

1.2.11

5 months ago

1.2.10

5 months ago

1.2.1

5 months ago

1.2.0

5 months ago

1.1.59

6 months ago

1.1.58

6 months ago

1.1.57

7 months ago

1.1.56

7 months ago

1.1.55

7 months ago

1.1.54

7 months ago

1.1.52

7 months ago

1.1.51

7 months ago

1.1.5

7 months ago

1.1.4

7 months ago

1.1.3

7 months ago

1.1.25

7 months ago

1.1.24

7 months ago

1.1.23

7 months ago

1.1.22

7 months ago

1.1.21

7 months ago

1.1.2

7 months ago

1.1.104

8 months ago

1.1.103

8 months ago

1.1.102

8 months ago

1.1.101

8 months ago

1.1.0

8 months ago

1.0.118

8 months ago

1.0.117

8 months ago

1.0.116

8 months ago

1.0.115

8 months ago

1.0.114

8 months ago

1.0.113

8 months ago

1.0.112

8 months ago

1.0.111

8 months ago

1.0.110

8 months ago

1.0.109

8 months ago

1.0.108

8 months ago

1.0.107

8 months ago

1.0.106

8 months ago

1.0.104

8 months ago

1.0.103

8 months ago

1.0.101

8 months ago

1.0.100

8 months ago

1.0.99

8 months ago

1.0.98

8 months ago

1.0.97

8 months ago

1.0.96

8 months ago

1.0.95

8 months ago

1.0.94

8 months ago

1.0.93

8 months ago

1.0.92

8 months ago

1.0.911

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago

0.0.61

8 months ago

0.0.6

8 months ago

0.0.49

8 months ago

0.0.48

8 months ago

0.0.47

8 months ago

0.0.45

8 months ago

0.0.44

8 months ago

0.0.43

8 months ago

0.0.42

8 months ago

0.0.4

8 months ago

0.0.33

8 months ago

0.0.32

8 months ago

0.0.31

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago