core

Source:

common JavaScript methods

Methods

(inner) addButton(element, addType, click, label, tooltip)

Source:

Add extensions button

Parameters:
Name Type Description
element Object

html elemen to add to

addType String

type of add (append, prepend, ...)

click String

function to call on cliclk event. Need to be added to the scope inside the extensions

label String

label item to link to. Need to be added to translation insinde the extension (addTranslations)

tooltip String

tooltip item to link to. Need to be added to translation insinde the extension (addTranslations)

(inner) addTranslations(name, text)

Source:

Add item to translations

Parameters:
Name Type Description
name String

name of property to add

text Array

text to add for each language

(inner) clickSubTab(index, subTabId)

Source:

Get and display a sub-tab

Parameters:
Name Type Description
index Number

tab index

subTabId Number

sub-tab id

(inner) clickTab(index)

Source:

Get and display a tab

Parameters:
Name Type Description
index Number

tab index

(inner) compile(element, link) → {Object}

Source:

Manually compiles the element, fixing the recursion loop.

Parameters:
Name Type Description
element Object

element for recursion

link Object

A post-link function, or an object with function(s) registered via pre and post properties.

Returns:

An object containing the linking functions.

Type
Object

(inner) getLang() → {String}

Source:

Get the current language.

Returns:

the current language string

Type
String

(inner) getLangs() → {Array}

Source:

Get the current array of languags.

Returns:

Array of all available languages

Type
Array

(inner) getNested(obj, path) → {Object}

Source:

Get object by array of keys representing a reference path eg: ['a', 'b', 'c'] => obj.a.b.c Source: http://blog.nicohaemhouts.com/2015/08/03/accessing-nested-javascript-objects-with-string-key/

Parameters:
Name Type Description
obj Object

object

path String

properties path

Returns:

particular sub-object of an object or undefined

Type
Object

(inner) getUUID(short) → {String}

Source:

Get a unique UUID

Parameters:
Name Type Description
short Boolean

true: only first section will be returned; false: 4 sections will be returned

Returns:

generated UUID http://slavik.meltser.info/?p=142

Type
String

(inner) isArray(item) → {Boolean}

Source:

Get if an object is an array.

Parameters:
Name Type Description
item Object

Object to check

Returns:

true: is an array; false otherwise

Type
Boolean

(inner) isObject(item) → {Boolean}

Source:

Get if an element is an object.

Parameters:
Name Type Description
item Object

Object to check

Returns:

true: is an object; false otherwise

Type
Boolean

(inner) parseJSON(jsonObject) → {Object}

Source:

remove angular $$ field inserted inside JSN object by angularschemaform.

Parameters:
Name Type Description
jsonObject Object

The JSON to parse

Returns:

The parsed JSON object

Type
Object

(inner) post(scope, element)

Source:

Compiles and re-adds the contents

Parameters:
Name Type Description
scope Object

Angular scope

element Object

element for recursion

(private, inner) registerDebounce(fn, delay, before, skipApply) → {function}

Source:

Registers a function for debouncing. If the returned function is executed more than once at intervals less that the detection period, only the first call will go through.

Parameters:
Name Type Description
fn function

a function to debounced

delay Number

optional; detection period for debouncing

before Boolean

optional; true if the function is trigger before bouncing

skipApply Boolean

optional; skips triggering a digest cycle

Returns:

a debounced function; execute at will; it will return one promise for each execution of the original function (resolving with its returned data); if the debounced function is called ten times in quick succession making it bounce, it will return the same promise ten times, resolving after the last call;

Type
function

(inner) scrollToElement(id)

Source:

Scroll to a DOM element

Parameters:
Name Type Description
id Number

element id

(inner) setExtensionDialog(template)

Source:

Set dialog box for extension

Parameters:
Name Type Description
template String

template to use

(inner) setLang(value)

Source:

Sets the current language to the supplied value and broadcasts schema initialization event.

Parameters:
Name Type Description
value String

language value to be set

(inner) setLangs(langs)

Source:

Sets the current available languages.

Parameters:
Name Type Description
langs Array

Array of available languages

(inner) setUniq(arr) → {Array}

Source:

Remove all duplicate element from an array.

Parameters:
Name Type Description
arr Array

Array to remove duplicate from

Returns:

the unique element arrray

Type
Array

(private, inner) whatsThat(obj) → {String}

Source:

Determine what kind of object we are dealing with. This function complements typeof operator

Parameters:
Name Type Description
obj Object

some kind of object

Returns:

return object type

Type
String
Source:

recursion service to update html tree

Methods

(inner) addButton(element, addType, click, label, tooltip)

Source:

Add extensions button

Parameters:
Name Type Description
element Object

html elemen to add to

addType String

type of add (append, prepend, ...)

click String

function to call on cliclk event. Need to be added to the scope inside the extensions

label String

label item to link to. Need to be added to translation insinde the extension (addTranslations)

tooltip String

tooltip item to link to. Need to be added to translation insinde the extension (addTranslations)

(inner) addTranslations(name, text)

Source:

Add item to translations

Parameters:
Name Type Description
name String

name of property to add

text Array

text to add for each language

(inner) clickSubTab(index, subTabId)

Source:

Get and display a sub-tab

Parameters:
Name Type Description
index Number

tab index

subTabId Number

sub-tab id

(inner) clickTab(index)

Source:

Get and display a tab

Parameters:
Name Type Description
index Number

tab index

(inner) compile(element, link) → {Object}

Source:

Manually compiles the element, fixing the recursion loop.

Parameters:
Name Type Description
element Object

element for recursion

link Object

A post-link function, or an object with function(s) registered via pre and post properties.

Returns:

An object containing the linking functions.

Type
Object

(inner) getLang() → {String}

Source:

Get the current language.

Returns:

the current language string

Type
String

(inner) getLangs() → {Array}

Source:

Get the current array of languags.

Returns:

Array of all available languages

Type
Array

(inner) getNested(obj, path) → {Object}

Source:

Get object by array of keys representing a reference path eg: ['a', 'b', 'c'] => obj.a.b.c Source: http://blog.nicohaemhouts.com/2015/08/03/accessing-nested-javascript-objects-with-string-key/

Parameters:
Name Type Description
obj Object

object

path String

properties path

Returns:

particular sub-object of an object or undefined

Type
Object

(inner) getUUID(short) → {String}

Source:

Get a unique UUID

Parameters:
Name Type Description
short Boolean

true: only first section will be returned; false: 4 sections will be returned

Returns:

generated UUID http://slavik.meltser.info/?p=142

Type
String

(inner) isArray(item) → {Boolean}

Source:

Get if an object is an array.

Parameters:
Name Type Description
item Object

Object to check

Returns:

true: is an array; false otherwise

Type
Boolean

(inner) isObject(item) → {Boolean}

Source:

Get if an element is an object.

Parameters:
Name Type Description
item Object

Object to check

Returns:

true: is an object; false otherwise

Type
Boolean

(inner) parseJSON(jsonObject) → {Object}

Source:

remove angular $$ field inserted inside JSN object by angularschemaform.

Parameters:
Name Type Description
jsonObject Object

The JSON to parse

Returns:

The parsed JSON object

Type
Object

(inner) post(scope, element)

Source:

Compiles and re-adds the contents

Parameters:
Name Type Description
scope Object

Angular scope

element Object

element for recursion

(private, inner) registerDebounce(fn, delay, before, skipApply) → {function}

Source:

Registers a function for debouncing. If the returned function is executed more than once at intervals less that the detection period, only the first call will go through.

Parameters:
Name Type Description
fn function

a function to debounced

delay Number

optional; detection period for debouncing

before Boolean

optional; true if the function is trigger before bouncing

skipApply Boolean

optional; skips triggering a digest cycle

Returns:

a debounced function; execute at will; it will return one promise for each execution of the original function (resolving with its returned data); if the debounced function is called ten times in quick succession making it bounce, it will return the same promise ten times, resolving after the last call;

Type
function

(inner) scrollToElement(id)

Source:

Scroll to a DOM element

Parameters:
Name Type Description
id Number

element id

(inner) setExtensionDialog(template)

Source:

Set dialog box for extension

Parameters:
Name Type Description
template String

template to use

(inner) setLang(value)

Source:

Sets the current language to the supplied value and broadcasts schema initialization event.

Parameters:
Name Type Description
value String

language value to be set

(inner) setLangs(langs)

Source:

Sets the current available languages.

Parameters:
Name Type Description
langs Array

Array of available languages

(inner) setUniq(arr) → {Array}

Source:

Remove all duplicate element from an array.

Parameters:
Name Type Description
arr Array

Array to remove duplicate from

Returns:

the unique element arrray

Type
Array

(private, inner) whatsThat(obj) → {String}

Source:

Determine what kind of object we are dealing with. This function complements typeof operator

Parameters:
Name Type Description
obj Object

some kind of object

Returns:

return object type

Type
String
Source:

debounce JavaScript methods

Methods

(inner) addButton(element, addType, click, label, tooltip)

Source:

Add extensions button

Parameters:
Name Type Description
element Object

html elemen to add to

addType String

type of add (append, prepend, ...)

click String

function to call on cliclk event. Need to be added to the scope inside the extensions

label String

label item to link to. Need to be added to translation insinde the extension (addTranslations)

tooltip String

tooltip item to link to. Need to be added to translation insinde the extension (addTranslations)

(inner) addTranslations(name, text)

Source:

Add item to translations

Parameters:
Name Type Description
name String

name of property to add

text Array

text to add for each language

(inner) clickSubTab(index, subTabId)

Source:

Get and display a sub-tab

Parameters:
Name Type Description
index Number

tab index

subTabId Number

sub-tab id

(inner) clickTab(index)

Source:

Get and display a tab

Parameters:
Name Type Description
index Number

tab index

(inner) compile(element, link) → {Object}

Source:

Manually compiles the element, fixing the recursion loop.

Parameters:
Name Type Description
element Object

element for recursion

link Object

A post-link function, or an object with function(s) registered via pre and post properties.

Returns:

An object containing the linking functions.

Type
Object

(inner) getLang() → {String}

Source:

Get the current language.

Returns:

the current language string

Type
String

(inner) getLangs() → {Array}

Source:

Get the current array of languags.

Returns:

Array of all available languages

Type
Array

(inner) getNested(obj, path) → {Object}

Source:

Get object by array of keys representing a reference path eg: ['a', 'b', 'c'] => obj.a.b.c Source: http://blog.nicohaemhouts.com/2015/08/03/accessing-nested-javascript-objects-with-string-key/

Parameters:
Name Type Description
obj Object

object

path String

properties path

Returns:

particular sub-object of an object or undefined

Type
Object

(inner) getUUID(short) → {String}

Source:

Get a unique UUID

Parameters:
Name Type Description
short Boolean

true: only first section will be returned; false: 4 sections will be returned

Returns:

generated UUID http://slavik.meltser.info/?p=142

Type
String

(inner) isArray(item) → {Boolean}

Source:

Get if an object is an array.

Parameters:
Name Type Description
item Object

Object to check

Returns:

true: is an array; false otherwise

Type
Boolean

(inner) isObject(item) → {Boolean}

Source:

Get if an element is an object.

Parameters:
Name Type Description
item Object

Object to check

Returns:

true: is an object; false otherwise

Type
Boolean

(inner) parseJSON(jsonObject) → {Object}

Source:

remove angular $$ field inserted inside JSN object by angularschemaform.

Parameters:
Name Type Description
jsonObject Object

The JSON to parse

Returns:

The parsed JSON object

Type
Object

(inner) post(scope, element)

Source:

Compiles and re-adds the contents

Parameters:
Name Type Description
scope Object

Angular scope

element Object

element for recursion

(private, inner) registerDebounce(fn, delay, before, skipApply) → {function}

Source:

Registers a function for debouncing. If the returned function is executed more than once at intervals less that the detection period, only the first call will go through.

Parameters:
Name Type Description
fn function

a function to debounced

delay Number

optional; detection period for debouncing

before Boolean

optional; true if the function is trigger before bouncing

skipApply Boolean

optional; skips triggering a digest cycle

Returns:

a debounced function; execute at will; it will return one promise for each execution of the original function (resolving with its returned data); if the debounced function is called ten times in quick succession making it bounce, it will return the same promise ten times, resolving after the last call;

Type
function

(inner) scrollToElement(id)

Source:

Scroll to a DOM element

Parameters:
Name Type Description
id Number

element id

(inner) setExtensionDialog(template)

Source:

Set dialog box for extension

Parameters:
Name Type Description
template String

template to use

(inner) setLang(value)

Source:

Sets the current language to the supplied value and broadcasts schema initialization event.

Parameters:
Name Type Description
value String

language value to be set

(inner) setLangs(langs)

Source:

Sets the current available languages.

Parameters:
Name Type Description
langs Array

Array of available languages

(inner) setUniq(arr) → {Array}

Source:

Remove all duplicate element from an array.

Parameters:
Name Type Description
arr Array

Array to remove duplicate from

Returns:

the unique element arrray

Type
Array

(private, inner) whatsThat(obj) → {String}

Source:

Determine what kind of object we are dealing with. This function complements typeof operator

Parameters:
Name Type Description
obj Object

some kind of object

Returns:

return object type

Type
String
Source:

debounce JavaScript methods

Methods

(inner) addButton(element, addType, click, label, tooltip)

Source:

Add extensions button

Parameters:
Name Type Description
element Object

html elemen to add to

addType String

type of add (append, prepend, ...)

click String

function to call on cliclk event. Need to be added to the scope inside the extensions

label String

label item to link to. Need to be added to translation insinde the extension (addTranslations)

tooltip String

tooltip item to link to. Need to be added to translation insinde the extension (addTranslations)

(inner) addTranslations(name, text)

Source:

Add item to translations

Parameters:
Name Type Description
name String

name of property to add

text Array

text to add for each language

(inner) clickSubTab(index, subTabId)

Source:

Get and display a sub-tab

Parameters:
Name Type Description
index Number

tab index

subTabId Number

sub-tab id

(inner) clickTab(index)

Source:

Get and display a tab

Parameters:
Name Type Description
index Number

tab index

(inner) compile(element, link) → {Object}

Source:

Manually compiles the element, fixing the recursion loop.

Parameters:
Name Type Description
element Object

element for recursion

link Object

A post-link function, or an object with function(s) registered via pre and post properties.

Returns:

An object containing the linking functions.

Type
Object

(inner) getLang() → {String}

Source:

Get the current language.

Returns:

the current language string

Type
String

(inner) getLangs() → {Array}

Source:

Get the current array of languags.

Returns:

Array of all available languages

Type
Array

(inner) getNested(obj, path) → {Object}

Source:

Get object by array of keys representing a reference path eg: ['a', 'b', 'c'] => obj.a.b.c Source: http://blog.nicohaemhouts.com/2015/08/03/accessing-nested-javascript-objects-with-string-key/

Parameters:
Name Type Description
obj Object

object

path String

properties path

Returns:

particular sub-object of an object or undefined

Type
Object

(inner) getUUID(short) → {String}

Source:

Get a unique UUID

Parameters:
Name Type Description
short Boolean

true: only first section will be returned; false: 4 sections will be returned

Returns:

generated UUID http://slavik.meltser.info/?p=142

Type
String

(inner) isArray(item) → {Boolean}

Source:

Get if an object is an array.

Parameters:
Name Type Description
item Object

Object to check

Returns:

true: is an array; false otherwise

Type
Boolean

(inner) isObject(item) → {Boolean}

Source:

Get if an element is an object.

Parameters:
Name Type Description
item Object

Object to check

Returns:

true: is an object; false otherwise

Type
Boolean

(inner) parseJSON(jsonObject) → {Object}

Source:

remove angular $$ field inserted inside JSN object by angularschemaform.

Parameters:
Name Type Description
jsonObject Object

The JSON to parse

Returns:

The parsed JSON object

Type
Object

(inner) post(scope, element)

Source:

Compiles and re-adds the contents

Parameters:
Name Type Description
scope Object

Angular scope

element Object

element for recursion

(private, inner) registerDebounce(fn, delay, before, skipApply) → {function}

Source:

Registers a function for debouncing. If the returned function is executed more than once at intervals less that the detection period, only the first call will go through.

Parameters:
Name Type Description
fn function

a function to debounced

delay Number

optional; detection period for debouncing

before Boolean

optional; true if the function is trigger before bouncing

skipApply Boolean

optional; skips triggering a digest cycle

Returns:

a debounced function; execute at will; it will return one promise for each execution of the original function (resolving with its returned data); if the debounced function is called ten times in quick succession making it bounce, it will return the same promise ten times, resolving after the last call;

Type
function

(inner) scrollToElement(id)

Source:

Scroll to a DOM element

Parameters:
Name Type Description
id Number

element id

(inner) setExtensionDialog(template)

Source:

Set dialog box for extension

Parameters:
Name Type Description
template String

template to use

(inner) setLang(value)

Source:

Sets the current language to the supplied value and broadcasts schema initialization event.

Parameters:
Name Type Description
value String

language value to be set

(inner) setLangs(langs)

Source:

Sets the current available languages.

Parameters:
Name Type Description
langs Array

Array of available languages

(inner) setUniq(arr) → {Array}

Source:

Remove all duplicate element from an array.

Parameters:
Name Type Description
arr Array

Array to remove duplicate from

Returns:

the unique element arrray

Type
Array

(private, inner) whatsThat(obj) → {String}

Source:

Determine what kind of object we are dealing with. This function complements typeof operator

Parameters:
Name Type Description
obj Object

some kind of object

Returns:

return object type

Type
String