5.1.0 • Published 4 days ago

gl-w-frontend v5.1.0

Weekly downloads
7
License
ISC
Repository
github
Last release
4 days ago

gl-w-frontend

version downloads downloads

What is this repository for?

This package (glaucioleonardo-web-frontend) is a common code for using among web front-end development such as ES6+ and TypeScript.

This package contains the types for using with Typescript.

How do I get set up?

The easiest way to install this library is via npm using the following commands:

  • Latest version npm install gl-w-frontend --save;
  • Available versions npm install gl-w-frontend@version --save;

If you are using only browser version:

  • For ES5 version importing via
<!DOCTYPE html>
 <html lang="en">
 <head>
    <meta charset="UTF-8">
    <title>gl-w-frontend</title>
    ...
 </head>
 <body>
    ...
    <!-- Dependencies must be placed in order -->    
    <script src="https://code.jquery.com/jquery-3.5.1.js"></script>
    <script
        src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"
        integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU="
        crossorigin="anonymous">
    </script>
    <script src="https://github.com/sindresorhus/screenfull.js/blob/master/dist/screenfull.min.js"></script>
    <script src="https://github.com/moment/moment/blob/develop/dist/moment.js"></script>
    <script src="https://github.com/rotaready/moment-range/blob/master/lib/moment-range.js"></script>

    <!-- Excel dependencies -->
    <script lang="javascript" src="https://github.com/SheetJS/sheetjs/tree/master/dist/xlsx.full.min.js"></script> 
    <script lang="javascript" src="https://github.com/dtjohnson/xlsx-populate/blob/master/browser/xlsx-populate.js"></script> 

    <!-- Include here -->
    <script src="https://github.com/glaucioleonardo/gl-w-frontend/tree/master/lib/index.js"></script>
    <!-- or just download this repo and refer to the index.js like this -->
    <script src="js/index.js"></script>
 </body>
 </html>

Important:

  • The library "moment-range" makes use of Symbol.iterator to provide the iteration protocols. If you need to support older browsers (specifically IE11+) you will need to include a polyfill. Any of the following should work, depending on your project configuration:

  • core-js: Tested with this polyfill (working on IE10+).

  • babel runtime transform plugin
  • babel polyfill
  • es6-iterator

  • In case you are using ES+, just use the bundle.js inside lib/es6

Importing assets of this library

  • If you are using nodejs, you can just copy/refer the folder insinde node_module/gl-w-frontend/lib/assets;
  • Angular: open the angular.json and paste this code in :
{
  ...
  "projects": {
    "my-project-angular": {
      ...
      "architect": {
        "build": {
          ...
          "options": {
            ...
            "assets": [
              ...
              {
                "glob": "**/*",
                "input": "node_modules/gl-w-frontend/lib/assets",
                "output": "/assets"
              }
            ],
          },
          ...
        },
        ...
      }
    }},
  ...
}
  • Browser version: copy the folder assets and add to your public folder or save anywhere and in the following method inform the folderUrl (optional parameter). AttachmentIcon.get(..., folderUrl: string /*inform the folser url*/)
<!DOCTYPE html>
 <html lang="en">
 <head>
    <meta charset="UTF-8">
    <title>gl-w-frontend</title>
    ...
 </head>
 <body>
    ...
 </body>
 </html>

Macro features

  • Array
  • Attachment
  • Browser (Check version, fullscreen)
  • ComboBox / Autocomplete
  • Date / Time
  • Image
  • Input
  • Dom Elements
  • String

  • Export: Data to excel.

Other features is going to be included frequently.

Other packages used

I'm really thankful for those packages creators!

5.1.0

4 days ago

5.0.0

3 years ago

4.1.8

3 years ago

4.1.7

3 years ago

4.1.6

3 years ago

4.1.5

3 years ago

4.1.4

3 years ago

4.1.3

3 years ago

4.1.2

3 years ago

4.1.1

3 years ago

4.1.0

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

4.0.2

3 years ago

3.2.0

3 years ago

3.1.0

3 years ago

3.4.0

3 years ago

3.0.1

3 years ago

3.3.0

3 years ago

3.0.0

3 years ago

2.6.0

3 years ago

2.5.0

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.3.0

3 years ago

2.2.1

3 years ago

2.1.9

3 years ago

2.1.8

3 years ago

2.1.7

3 years ago

2.2.0

3 years ago

2.1.6

3 years ago

2.1.5

3 years ago

2.1.4

3 years ago

2.1.3

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.4.26

4 years ago

1.4.25

4 years ago

1.4.22

4 years ago

1.4.21

4 years ago

1.4.24

4 years ago

1.4.23

4 years ago

1.4.20

4 years ago

1.4.19

4 years ago

1.4.18

4 years ago

1.4.17-alpha-2

4 years ago

1.4.17

4 years ago

1.4.17-alpha

4 years ago

1.4.16

4 years ago

1.4.16-alpha

4 years ago

1.4.15-alpha3

4 years ago

1.4.15

4 years ago

1.4.15-alpha2

4 years ago

1.4.13-alpha

4 years ago

1.4.13-alpha-2

4 years ago

1.4.15-alpha

4 years ago

1.4.13-alpha-4

4 years ago

1.4.13-alpha-3

4 years ago

1.4.13

4 years ago

1.4.14

4 years ago

1.4.12

4 years ago

1.4.11

4 years ago

1.4.10

4 years ago

1.4.9

4 years ago

1.4.8

4 years ago

1.4.6

4 years ago

1.4.7

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1-alpha

4 years ago

1.4.1-alpha2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.4.0-alpha

4 years ago

1.4.0-alpha-2

4 years ago

1.3.10

4 years ago

1.3.8

4 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.3-alpha

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.17-alpha

4 years ago

1.1.16-alpha

4 years ago

1.1.15-alpha

4 years ago

1.1.14-alpha

4 years ago

1.1.13-alpha

4 years ago

1.1.12-alpha

4 years ago

1.1.11-alpha

4 years ago

1.1.9-alpha

4 years ago

1.1.10-alpha

4 years ago

1.1.8-alpha

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago