mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 17:58:41 +00:00
Fixing docblocks and minor test adjustments
This commit is contained in:
parent
d6034ce0c5
commit
9b40364e5e
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Form manager class.
|
* Form manager class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Account Manager.
|
* Account Manager.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Account type.
|
* Account type.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Particle class.
|
* Particle class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Particle class.
|
* Particle class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Particle animation class.
|
* Particle animation class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Asset manager.
|
* Asset manager.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -38,6 +37,8 @@
|
||||||
const scripts = document.getElementsByTagName('script'),
|
const scripts = document.getElementsByTagName('script'),
|
||||||
length = !scripts ? 0 : scripts.length;
|
length = !scripts ? 0 : scripts.length;
|
||||||
|
|
||||||
|
this.assets = {};
|
||||||
|
|
||||||
for (let i = 0; i < length; i++) {
|
for (let i = 0; i < length; i++) {
|
||||||
this.assets[jsOMS.hash(scripts[i].src)] = scripts[i].src;
|
this.assets[jsOMS.hash(scripts[i].src)] = scripts[i].src;
|
||||||
}
|
}
|
||||||
|
|
@ -121,7 +122,7 @@
|
||||||
/**
|
/**
|
||||||
* Get asset.
|
* Get asset.
|
||||||
*
|
*
|
||||||
* @param {string} id Id of the asset (hash)
|
* @param {string} key Key of the asset
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*
|
*
|
||||||
|
|
@ -129,19 +130,21 @@
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
jsOMS.Asset.AssetManager.prototype.get = function (id)
|
jsOMS.Asset.AssetManager.prototype.get = function (key)
|
||||||
{
|
{
|
||||||
if (this.assets[id]) {
|
key = jsOMS.hash(key);
|
||||||
return this.assets[id];
|
|
||||||
|
if (this.assets[key]) {
|
||||||
|
return this.assets[key];
|
||||||
}
|
}
|
||||||
|
|
||||||
return undefined;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove asset.
|
* Remove asset.
|
||||||
*
|
*
|
||||||
* @param {string} key Key of the asset (hash)
|
* @param {string} key Key of the asset
|
||||||
*
|
*
|
||||||
* @return {boolean}
|
* @return {boolean}
|
||||||
*
|
*
|
||||||
|
|
@ -149,8 +152,10 @@
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
jsOMS.Asset.AssetManager.prototype.remove = function (key)
|
jsOMS.Asset.AssetManager.prototype.remove = function (key, isHashed)
|
||||||
{
|
{
|
||||||
|
key = jsOMS.hash(key);
|
||||||
|
|
||||||
if (typeof this.assets[key] !== 'undefined') {
|
if (typeof this.assets[key] !== 'undefined') {
|
||||||
delete this.assets[key];
|
delete this.assets[key];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Auth class.
|
* Auth class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,12 @@
|
||||||
/**
|
/**
|
||||||
* Autoloader.
|
* Autoloader.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* The autoloader is responsible for defining namespaces and dynamically loading javascript
|
||||||
* @copyright 2013 Dennis Eichhorn
|
* files that are not yet included. The intention is to provide a similar functionality as
|
||||||
|
* include, import etc. Contrary to it's name the autoloader is not able to truely autoload
|
||||||
|
* referenced classes.
|
||||||
|
*
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
/**
|
/**
|
||||||
* Options class.
|
* Options class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* This is a generic options class for storing options. This is usefull for handling options in other modules
|
||||||
* @copyright 2013 Dennis Eichhorn
|
* without redefining the same behaviour multiple times.
|
||||||
|
*
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -39,7 +41,7 @@
|
||||||
*/
|
*/
|
||||||
jsOMS.Config.Options.prototype.set = function (key, value, overwrite)
|
jsOMS.Config.Options.prototype.set = function (key, value, overwrite)
|
||||||
{
|
{
|
||||||
overwrite = typeof overwrite === bool ? overwrite : true;
|
overwrite = typeof overwrite === 'bool' ? overwrite : false;
|
||||||
|
|
||||||
if (overwrite || typeof this.options[key] === 'undefined') {
|
if (overwrite || typeof this.options[key] === 'undefined') {
|
||||||
this.options[key] = value;
|
this.options[key] = value;
|
||||||
|
|
@ -67,7 +69,7 @@
|
||||||
return this.options[key];
|
return this.options[key];
|
||||||
}
|
}
|
||||||
|
|
||||||
return undefined;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* CookieJar class.
|
* CookieJar class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* LocalStorage class.
|
* LocalStorage class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
*
|
*
|
||||||
* Used for pooling requests.
|
* Used for pooling requests.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Log Level enum.
|
* Log Level enum.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Logger class.
|
* Logger class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Average class.
|
* Average class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Linear regression class.
|
* Linear regression class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Browser notification.
|
* Browser notification.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Request data enum.
|
* Request data enum.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Request data enum.
|
* Request data enum.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Request class.
|
* Request class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Request data enum.
|
* Request data enum.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Http request method.
|
* Http request method.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Request type enum.
|
* Request type enum.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
*
|
*
|
||||||
* Used for auto handling different responses.
|
* Used for auto handling different responses.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
*
|
*
|
||||||
* Used for auto handling different responses.
|
* Used for auto handling different responses.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Response result type enum.
|
* Response result type enum.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Response type enum.
|
* Response type enum.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Module factory.
|
* Module factory.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Module factory.
|
* Module factory.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Cell.
|
* Cell.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Spreadsheet view.
|
* Spreadsheet view.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Form manager class.
|
* Form manager class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -30,9 +29,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bind button.
|
* Bind element.
|
||||||
*
|
*
|
||||||
* @param {string} [id] Button id (optional)
|
* @param {string} [id] Element id (optional)
|
||||||
|
*
|
||||||
|
* @return {void}
|
||||||
*
|
*
|
||||||
* @method
|
* @method
|
||||||
*
|
*
|
||||||
|
|
@ -51,9 +52,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bind button.
|
* Bind element.
|
||||||
*
|
*
|
||||||
* @param {Element} e Button element
|
* @param {Element} e Element to bind
|
||||||
|
*
|
||||||
|
* @return {void}
|
||||||
*
|
*
|
||||||
* @method
|
* @method
|
||||||
*
|
*
|
||||||
|
|
@ -95,6 +98,18 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Bind listener for object
|
||||||
|
*
|
||||||
|
* @param {Element} e Element to bind
|
||||||
|
* @param {object} listener Listener object
|
||||||
|
*
|
||||||
|
* @return {void}
|
||||||
|
*
|
||||||
|
* @method
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
jsOMS.UI.ActionManager.prototype.bindListener = function(e, listener)
|
jsOMS.UI.ActionManager.prototype.bindListener = function(e, listener)
|
||||||
{
|
{
|
||||||
const self = this,
|
const self = this,
|
||||||
|
|
@ -122,6 +137,8 @@
|
||||||
* @param {Element} e Button
|
* @param {Element} e Button
|
||||||
* @param {Object} action Action
|
* @param {Object} action Action
|
||||||
*
|
*
|
||||||
|
* @return {void}
|
||||||
|
*
|
||||||
* @method
|
* @method
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -151,6 +168,8 @@
|
||||||
* @param {string} name Action identifier
|
* @param {string} name Action identifier
|
||||||
* @param {function} callback Action callback
|
* @param {function} callback Action callback
|
||||||
*
|
*
|
||||||
|
* @return {void}
|
||||||
|
*
|
||||||
* @method
|
* @method
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Form manager class.
|
* Form manager class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Form manager class.
|
* Form manager class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Form manager class.
|
* Form manager class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Tab manager class.
|
* Tab manager class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Table manager class.
|
* Table manager class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Form manager class.
|
* Form manager class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Form manager class.
|
* Form manager class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Drag and drop class.
|
* Drag and drop class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* UI manager for handling basic ui elements.
|
* UI manager for handling basic ui elements.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* UI manager class.
|
* UI manager class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Keyboard manager class.
|
* Keyboard manager class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Click type.
|
* Click type.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Event type.
|
* Event type.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Mouse manager class.
|
* Mouse manager class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Touch manager class.
|
* Touch manager class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* UI manager for handling basic ui elements.
|
* UI manager for handling basic ui elements.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
/**
|
/**
|
||||||
* Form manager class.
|
* Unhandled Exception class.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* This class handles all unhandled exceptions depending on the configuration.
|
||||||
* @copyright 2013 Dennis Eichhorn
|
*
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
117
Uri/Http.js
117
Uri/Http.js
|
|
@ -1,8 +1,9 @@
|
||||||
/**
|
/**
|
||||||
* Uri factory.
|
* Http Uri.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* This class is for creating, modifying and analysing http uris.
|
||||||
* @copyright 2013 Dennis Eichhorn
|
*
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -180,62 +181,172 @@
|
||||||
this.base = this.scheme + '://' + this.host + this.root;
|
this.base = this.scheme + '://' + this.host + this.root;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set root path.
|
||||||
|
*
|
||||||
|
* @param {string} rootPath Uri root path
|
||||||
|
*
|
||||||
|
* @return {void}
|
||||||
|
*
|
||||||
|
* @method
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
jsOMS.Uri.Http.prototype.setRootPath = function(rootPath)
|
jsOMS.Uri.Http.prototype.setRootPath = function(rootPath)
|
||||||
{
|
{
|
||||||
this.root = rootPath;
|
this.root = rootPath;
|
||||||
this.set(this.uri);
|
this.set(this.uri);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Uri base
|
||||||
|
*
|
||||||
|
* @return {string}
|
||||||
|
*
|
||||||
|
* @method
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
jsOMS.Uri.Http.prototype.getBase = function()
|
jsOMS.Uri.Http.prototype.getBase = function()
|
||||||
{
|
{
|
||||||
return this.base;
|
return this.base;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Uri scheme
|
||||||
|
*
|
||||||
|
* @return {string}
|
||||||
|
*
|
||||||
|
* @method
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
jsOMS.Uri.Http.prototype.getScheme = function()
|
jsOMS.Uri.Http.prototype.getScheme = function()
|
||||||
{
|
{
|
||||||
return this.scheme;
|
return this.scheme;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Uri host
|
||||||
|
*
|
||||||
|
* @return {string}
|
||||||
|
*
|
||||||
|
* @method
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
jsOMS.Uri.Http.prototype.getHost = function()
|
jsOMS.Uri.Http.prototype.getHost = function()
|
||||||
{
|
{
|
||||||
return this.host;
|
return this.host;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Uri port
|
||||||
|
*
|
||||||
|
* @return {string}
|
||||||
|
*
|
||||||
|
* @method
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
jsOMS.Uri.Http.prototype.getPort = function()
|
jsOMS.Uri.Http.prototype.getPort = function()
|
||||||
{
|
{
|
||||||
return this.port;
|
return this.port;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Uri user
|
||||||
|
*
|
||||||
|
* @return {string}
|
||||||
|
*
|
||||||
|
* @method
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
jsOMS.Uri.Http.prototype.getUser = function()
|
jsOMS.Uri.Http.prototype.getUser = function()
|
||||||
{
|
{
|
||||||
return this.user;
|
return this.user;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Uri pass
|
||||||
|
*
|
||||||
|
* @return {string}
|
||||||
|
*
|
||||||
|
* @method
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
jsOMS.Uri.Http.prototype.getPass = function()
|
jsOMS.Uri.Http.prototype.getPass = function()
|
||||||
{
|
{
|
||||||
return this.pass;
|
return this.pass;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Uri query
|
||||||
|
*
|
||||||
|
* @return {string}
|
||||||
|
*
|
||||||
|
* @method
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
jsOMS.Uri.Http.prototype.getQuery = function()
|
jsOMS.Uri.Http.prototype.getQuery = function()
|
||||||
{
|
{
|
||||||
return this.queryString;
|
return this.queryString;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Uri
|
||||||
|
*
|
||||||
|
* @return {string}
|
||||||
|
*
|
||||||
|
* @method
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
jsOMS.Uri.Http.prototype.getUri = function()
|
jsOMS.Uri.Http.prototype.getUri = function()
|
||||||
{
|
{
|
||||||
return this.uri;
|
return this.uri;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Uri fragment
|
||||||
|
*
|
||||||
|
* @return {string}
|
||||||
|
*
|
||||||
|
* @method
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
jsOMS.Uri.Http.prototype.getFragment = function()
|
jsOMS.Uri.Http.prototype.getFragment = function()
|
||||||
{
|
{
|
||||||
return this.fragment;
|
return this.fragment;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Uri path
|
||||||
|
*
|
||||||
|
* @return {string}
|
||||||
|
*
|
||||||
|
* @method
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
jsOMS.Uri.Http.prototype.getPath = function()
|
jsOMS.Uri.Http.prototype.getPath = function()
|
||||||
{
|
{
|
||||||
return this.path;
|
return this.path;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Uri path offset
|
||||||
|
*
|
||||||
|
* @return {string}
|
||||||
|
*
|
||||||
|
* @method
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
jsOMS.Uri.Http.prototype.getPathOffset = function()
|
jsOMS.Uri.Http.prototype.getPathOffset = function()
|
||||||
{
|
{
|
||||||
return jsOMS.substr_count(this.root, '/') - 1;
|
return jsOMS.substr_count(this.root, '/') - 1;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Uri factory.
|
* Uri factory.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* @copyright Dennis Eichhorn
|
||||||
* @copyright 2013 Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -48,6 +47,26 @@
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get query
|
||||||
|
*
|
||||||
|
* @param {string} key
|
||||||
|
*
|
||||||
|
* @return {string}|null
|
||||||
|
*
|
||||||
|
* @method
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
jsOMS.Uri.UriFactory.getQuery = function (key)
|
||||||
|
{
|
||||||
|
if (!jsOMS.Uri.UriFactory.uri.hasOwnProperty(key)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return jsOMS.Uri.UriFactory.uri[key];
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clear all uri components
|
* Clear all uri components
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,11 @@
|
||||||
/**
|
/**
|
||||||
* Core JS functionality
|
* Standard library
|
||||||
*
|
*
|
||||||
* This logic is supposed to minimize coding and support core javascript functionality.
|
* This library provides useful functionalities for the DOM and other manipulations.
|
||||||
*
|
*
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
(function (jsOMS)
|
(function (jsOMS)
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,11 @@
|
||||||
/**
|
/**
|
||||||
* Form view.
|
* Form view.
|
||||||
*
|
*
|
||||||
* @author OMS Development Team <dev@oms.com>
|
* The form view contains a single form and it's data elements. Form actions are no longer handled by
|
||||||
* @copyright 2013 Dennis Eichhorn
|
* the browser but through this view. The view also provides additional functionality for non-default
|
||||||
|
* form elements such as canvas etc.
|
||||||
|
*
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -139,6 +142,7 @@
|
||||||
const selects = form.getElementsByTagName('select'),
|
const selects = form.getElementsByTagName('select'),
|
||||||
textareas = form.getElementsByTagName('textarea'),
|
textareas = form.getElementsByTagName('textarea'),
|
||||||
inputs = form.getElementsByTagName('input'),
|
inputs = form.getElementsByTagName('input'),
|
||||||
|
canvas = form.getElementsByTagName('canvas'),
|
||||||
external = document.querySelectorAll('[form=' + this.id + ']');
|
external = document.querySelectorAll('[form=' + this.id + ']');
|
||||||
|
|
||||||
return Array.prototype.slice.call(inputs).concat(Array.prototype.slice.call(selects), Array.prototype.slice.call(textareas), Array.prototype.slice.call(external));
|
return Array.prototype.slice.call(inputs).concat(Array.prototype.slice.call(selects), Array.prototype.slice.call(textareas), Array.prototype.slice.call(external));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user