17.1.0 • Published 4 months ago

wacom v17.1.0

Weekly downloads
206
License
MIT
Repository
github
Last release
4 months ago

Angular (ngx) common

Module which has common services and components which can be used on all projects.

Getting Started

License

MIT

Instalation

$ npm i --save wacom

Services

NameDescription
CoreCommon supportive function which can be used in any service
HttpHttp layer for HttpClient
StoreService will is responsible for keeping information on the device
HashHash management for easily use, storage which stay in url
RenderMake not automated render management well structured
MetaWebsite meta tags management within router
AlertAlerts management
ModalModals management
UISupportive UI/UX service

Alert Service

Alert Service is an suportive service for alerts manamanagement. Example of importing alert service:

import { AlertService } from 'wacom';
constructor(private alert: AlertService){};

show function

Opens the alert and return htmlElement of this alert. Example 1:

let my_alert = alert.show({
	text: 'Are you sure?',
	type: 'question',
	timeout: 5000,
	class: 'myClass',
	position: 'bottomRight',
	buttons: [{
		text: 'YES',
		callback: ()=>{
			console.log("YES!");
		}
	},{
		text: 'NO',
		callback: ()=>{
			console.log("NO!");
		}
	}]
});

Example 2:

let my_alert = alert.show({
	component: MyCustomComponent,
	timeout: 5000,
	class: 'myClass',
	position: 'center',
	closable: true
});

options

NameTypeDescription
textstringText of alert.
typestringType of alert(etc info, success, warning, error, question).
classstringCustom class for your alert.
uniquestringIdentificator for your alerts.
progressbooleanEnable timeout progress bar.
positionstringPosition of the alert(topLeft, topCenter, topRight, right, bottomRight, bottomCenter, bottomLeft, left, center).
timeoutnumberAmount in milliseconds to close the alert, 0 to disable.
closablebooleanShow "x" close button.
buttonsnumberArray of buttons for your alerts.
componentstring or @ComponentComponent which will be appended into the alert.
closefunctioncustom function for close alert.
onClosefunctionCapture when the alert is closing.

destroy function

Close all alerts. Example:

alert.destroy();

Modal Service

Modal Service is an suportive service for modals manamanagement. Example of importing modal service:

import { ModalService } from 'wacom';
constructor(private modal: ModalService){};

show function

Opens the modal and return htmlElement of this modal. Example:

let my_modal = modal.show({
	component: MyCustomComponent,
	size: 'mid',
	timeout: 5000,
	class: 'myClass',
	position: 'center',
	closable: true
});

options

NameTypeDescription
idstring
componentstring or @ComponentComponent which will be appended into the modal.
sizestringSize of the modal.
timeoutnumberAmount in milliseconds to close the modal, 0 to disable.
classstringCustom class for your modal.
closablebooleanShow "x" close button.
uniquestringIdentificator for your modals.
closefunctioncustom function for close modal.
onOpenfunctionCapture when the modal is opening.
onClosefunctionCapture when the modal is closing.

destroy function

Close all modals. Example:

modal.destroy();

Loader Service

Loader Service is an suportive service for loaders manamanagement.Example of importing loader service:

import { LoaderService } from 'wacom';
constructor(private load: LoaderService){};

show function

Opens the loader and return htmlElement of this loader. Example:

let my_loader = load.show({
	timeout: 5000,
	class: 'myClass',
	closable: true
});

options

NameTypeDescription
append@ComponentComponent where the loader will be appended.
componentstring or @ComponentComponent which will be appended into the loader.
timeoutnumberAmount in milliseconds to close the loader, 0 to disable.
progressbooleanEnable timeout progress bar.
classstringCustom class for your loader.
closablebooleanShow "x" close button.
closefunctioncustom function for close loader.
onClosefunctionCapture when the loader is closing.

destroy function

Close all loaders. Example:

loader.destroy();

UI/UX Service

UI/UX Service is supportive service for front-end features. This service provides saving css varibles and containes helpful tools for the front developer.

var

Object which can be used to contain all needed fields for front-end.

get function

Returns Object with all saved css viriables. Example:

ui.get();

Result example:

{
  test: '15px solid'
}

remove function

Removes css varible by the key. Example:

ui.remove('css');

set function

Method interface sets a new value for a property on a CSS style declaration object and saves all css variables which you have passed. Example:

ui.set(variables, options);

variables - All css varibles you want to pass. If you want to set array of variables you'll need to have specific structure of the array. Example: [{key: 'name', value: example}]. Object will be saved with the same structure.

options - If you want to save css variables to the localStorage you should pass local: true. Also if you want to save variables only for specific host you should pass host: 'hostname'

arr function

Helps developer to generate array with custom length and with elements of specific type. Example:

<div *ngFor="let obj of ui.arr(length, type)"></div>

length - Length of generated array. type - 'number'||'text'||'date' Will set elements with random content at choosed type. 'number' is default type of elements.

text function

Helps developer to generate random string with specific length. Example:

<span>{{ui.text(length)}}</span>
17.1.0

4 months ago

17.0.3

5 months ago

17.0.2

5 months ago

17.0.5

5 months ago

17.0.4

5 months ago

17.0.1

5 months ago

17.0.0

5 months ago

17.0.7

5 months ago

17.0.6

5 months ago

17.0.9

5 months ago

17.0.8

5 months ago

16.2.0

6 months ago

16.2.2

6 months ago

16.2.1

6 months ago

16.1.1

9 months ago

16.1.0

9 months ago

16.1.4

9 months ago

16.1.3

9 months ago

16.1.2

9 months ago

16.0.9

10 months ago

16.0.8

10 months ago

16.0.7

10 months ago

16.0.2

11 months ago

16.0.6

11 months ago

16.0.5

11 months ago

16.0.4

11 months ago

16.0.3

11 months ago

15.0.2

1 year ago

15.0.3

1 year ago

15.0.0

1 year ago

15.0.1

1 year ago

15.0.6

1 year ago

15.0.7

1 year ago

15.0.4

1 year ago

15.0.5

1 year ago

15.0.8

1 year ago

15.0.9

1 year ago

14.2.2

1 year ago

14.2.3

1 year ago

14.2.6

1 year ago

15.2.0

1 year ago

15.2.1

12 months ago

15.2.4

12 months ago

15.2.2

12 months ago

15.2.3

12 months ago

16.0.1

11 months ago

16.0.0

11 months ago

14.1.8

1 year ago

14.1.9

1 year ago

14.1.6

1 year ago

14.1.7

1 year ago

14.2.0

1 year ago

14.2.1

1 year ago

14.1.5

2 years ago

14.1.0

2 years ago

14.1.1

2 years ago

14.1.2

2 years ago

14.1.3

2 years ago

13.1.9

2 years ago

13.1.8

2 years ago

14.0.0

2 years ago

14.0.1

2 years ago

14.0.2

2 years ago

14.0.3

2 years ago

14.0.4

2 years ago

14.0.5

2 years ago

14.0.6

2 years ago

13.1.7

2 years ago

13.1.5

2 years ago

13.1.3

2 years ago

13.1.4

2 years ago

13.1.2

2 years ago

13.1.0

2 years ago

13.0.8

2 years ago

13.0.9

2 years ago

13.0.6

2 years ago

13.0.7

2 years ago

13.0.4

2 years ago

13.0.5

2 years ago

13.0.2

2 years ago

13.0.3

2 years ago

13.0.0

2 years ago

13.0.1

2 years ago

1.14.6

2 years ago

1.14.5

3 years ago

1.14.4

3 years ago

1.14.3

3 years ago

1.14.2

3 years ago

1.14.1

3 years ago

1.14.0

3 years ago

1.13.9

3 years ago

1.13.8

3 years ago

1.13.7

3 years ago

1.13.6

3 years ago

1.13.5

3 years ago

1.13.2

3 years ago

1.13.1

3 years ago

1.13.4

3 years ago

1.13.3

3 years ago

1.13.0

3 years ago

1.12.9

3 years ago

1.12.7

3 years ago

1.12.6

3 years ago

1.12.5

3 years ago

1.12.4

3 years ago

1.12.8

3 years ago

1.12.3

3 years ago

1.12.2

3 years ago

1.12.1

3 years ago

1.12.0

3 years ago

1.11.5

3 years ago

1.11.4

3 years ago

1.11.3

3 years ago

1.11.2

3 years ago

1.11.1

3 years ago

1.11.0

3 years ago

1.10.26

3 years ago

1.10.25

3 years ago

1.10.24

3 years ago

1.10.23

3 years ago

1.10.22

3 years ago

1.10.20

3 years ago

1.10.21

3 years ago

1.10.19

3 years ago

1.10.18

3 years ago

1.10.17

3 years ago

1.10.16

3 years ago

1.10.15

3 years ago

1.10.14

3 years ago

1.10.13

3 years ago

1.10.12

3 years ago

1.10.11

3 years ago

1.10.10

3 years ago

1.10.9

3 years ago

1.10.8

3 years ago

1.10.7

3 years ago

1.10.6

3 years ago

1.10.5

3 years ago

1.10.4

3 years ago

1.10.3

3 years ago

1.10.2

3 years ago

1.10.1

3 years ago

1.10.0

3 years ago

1.9.9

3 years ago

1.9.5

3 years ago

1.9.4

3 years ago

1.9.3

3 years ago

1.9.2

3 years ago

1.9.1

3 years ago

1.9.0

3 years ago

1.8.9

3 years ago

1.8.8

3 years ago

1.8.7

3 years ago

1.8.6

3 years ago

1.8.5

3 years ago

1.8.4

3 years ago

1.8.2

3 years ago

1.8.3

3 years ago

1.8.1

4 years ago

1.7.9

4 years ago

1.8.0

4 years ago

1.7.8

4 years ago

1.7.7

4 years ago

1.7.6

4 years ago

1.7.5

4 years ago

1.7.4

4 years ago

1.7.3

4 years ago

1.7.2

4 years ago

1.7.1

4 years ago

1.7.0

4 years ago

1.6.9

4 years ago

1.6.8

4 years ago

1.6.7

4 years ago

1.6.6

4 years ago

1.6.4

4 years ago

1.6.5

4 years ago

1.6.3

4 years ago

1.6.2

4 years ago

1.6.0

4 years ago

1.5.9

4 years ago

1.5.8

4 years ago

1.5.5

4 years ago

1.5.4

4 years ago

1.5.7

4 years ago

1.5.6

4 years ago

1.5.3

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.7

4 years ago

1.4.6

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

4 years ago

1.4.0

4 years ago

1.3.9

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.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.9

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.9

4 years ago

1.1.8

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.1

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.2.16

4 years ago

0.2.15

4 years ago

0.2.14

4 years ago

0.2.13

4 years ago

0.2.12

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.35

5 years ago

0.1.34

5 years ago

0.1.33

5 years ago

0.1.32

5 years ago

0.1.31

5 years ago

0.1.30

5 years ago

0.1.29

5 years ago

0.1.28

5 years ago

0.1.27

5 years ago

0.1.26

5 years ago

0.1.25

5 years ago

0.1.24

5 years ago

0.1.23

5 years ago

0.1.22

5 years ago

0.1.21

5 years ago

0.1.20

5 years ago

0.1.19

5 years ago

0.1.18

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago