Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ramajs

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ramajs - npm Package Compare versions

Comparing version 0.4.6 to 0.4.7

15

package.json
{
"name": "ramajs",
"version": "0.4.6",
"version": "0.4.7",
"author": {

@@ -30,8 +30,7 @@ "name": ""

"karma-phantomjs-launcher": "1.0.2",
"karma-steal-npm": "0.1.5",
"karma-webpack": "1.8.0",
"minimist": "1.2.0",
"phantomjs-prebuilt": "2.1.13",
"steal": "0.16.41",
"steal-tools": "^0.16.5",
"typescript": "2.0.3"
"typescript": "2.0.3",
"webpack": "1.13.3"
},

@@ -53,8 +52,2 @@ "engines": {

},
"system": {
"npmIgnore": [
"devDependencies"
],
"npmAlgorithm": "flat"
},
"scripts": {

@@ -61,0 +54,0 @@ "build": "node scripts/build.js",

@@ -1,50 +0,1 @@

/*[global-shim-start]*/
!function(e,n,r){var o=n.define,t=function(e){var r,o=e.split("."),t=n;for(r=0;r<o.length&&t;r++)t=t[o[r]];return t},i=function(e,r){var o,t,i,l=e.split("."),u=n;for(o=0;o<l.length-1;o++)t=l[o],i=u[t],i||(i=u[t]={}),u=i;t=l[l.length-1],u[t]=r},l=function(e){if(!e||!e.__esModule)return!1;var n={__esModule:!0,"default":!0};for(var r in e)if(!n[r])return!1;return!0},u=n.define&&n.define.modules||n._define&&n._define.modules||{},f=n.define=function(r,d,a){var _;"function"==typeof d&&(a=d,d=[]);var s,c=[];for(s=0;s<d.length;s++)c.push(e[d[s]]?t(e[d[s]]):u[d[s]]||t(d[s]));if(!d.length&&a.length){_={exports:{}};var p=function(n){return e[n]?t(e[n]):u[n]};c.push(p,_.exports,_)}else c[0]||"exports"!==d[0]?c[0]||"module"!==d[0]||(c[0]={id:r}):(_={exports:{}},c[0]=_.exports,"module"===d[1]&&(c[1]=_));n.define=o;var v=a?a.apply(null,c):void 0;n.define=f,v=_&&_.exports?_.exports:v,u[r]=v;var g=e[r];g&&!t(g)&&(l(v)&&(v=v["default"]),i(g,v))};n.define.orig=o,n.define.modules=u,n.define.amd=!0,f("@loader",[],function(){var e=function(){};return{get:function(){return{prepareGlobal:e,retrieveGlobal:e}},global:n,__exec:function(e){r(e.source,n)}}})}({},window,function(__$source__,__$global__){eval("(function() { "+__$source__+" \n }).call(__$global__);")});
/*ramajs/core/pollyfills*/
define("ramajs/core/pollyfills",["module","@loader"],function(e,o){o.get("@@global-helpers").prepareGlobal(e.id,[]);var t=o.global.define,n=o.global.require,l='var myWindow=window;try{new myWindow.CustomEvent("test")}catch(e){var CustomEventFuntion=function(t,n){var e;return n=n||{bubbles:!1,cancelable:!1,detail:void 0},e=document.createEvent("CustomEvent"),e.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),e};CustomEventFuntion.prototype=Event.prototype,myWindow.CustomEvent=CustomEventFuntion}';return o.global.define=void 0,o.global.module=void 0,o.global.exports=void 0,o.__exec({source:l,address:e.uri}),o.global.require=n,o.global.define=t,o.get("@@global-helpers").retrieveGlobal(e.id,void 0)});
/*ramajs/core/utils/string-utils*/
define("ramajs/core/utils/string-utils",function(e,r,t){"use strict";function n(e){return e.charAt(0).toUpperCase()+e.slice(1)}function u(e){return e.replace(s,function(e,r,t,n){return n?t.toUpperCase():t}).replace(a,"Moz$1")}function c(e){return null==e?"":(e+"").replace(i,"")}var i=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,s=/([\:\-\_]+(.))/g,a=/^moz([A-Z])/;r.titleCase=n,r.camelCase=u,r.trim=c});
/*ramajs/core/UIEventDispatcher*/
define("ramajs/core/UIEventDispatcher",function(e,t,n){"use strict";var i=function(){function e(e){this.eventListenersDictionary={},this.__setElementRef(e)}return e.prototype.__setElementRef=function(e){this._element=e,this[0]=e},e.prototype.addEventListener=function(e,t,n){this._element.addEventListener(e,t,n),(void 0===this.eventListenersDictionary[e]||null===this.eventListenersDictionary[e])&&(this.eventListenersDictionary[e]=[]),t.useCapture=n,this.eventListenersDictionary[e].push(t)},e.prototype.dispatchEvent=function(e){return this._element.dispatchEvent(e),!e.defaultPrevented},e.prototype.removeEventListener=function(e,t,n){if(this._element.removeEventListener(e,t,n),void 0!==this.eventListenersDictionary[e]&&null!==this.eventListenersDictionary[e]){var i=this.eventListenersDictionary[e].indexOf(t);i>-1&&this.eventListenersDictionary[e].splice(i,1),this.eventListenersDictionary[e].length<=0&&(this.eventListenersDictionary[e]=null)}},e.prototype.hasEventListener=function(e){return void 0!==this.eventListenersDictionary[e]&&null!==this.eventListenersDictionary[e]},e.prototype.removeAllEventListeners=function(){for(var e in this.eventListenersDictionary)if(null!==this.eventListenersDictionary[e])for(var t=this.eventListenersDictionary[e].length-1;t>=0;t-=1){var n=this.eventListenersDictionary[e][t];this.removeEventListener(e,n,n.useCapture)}},e}();t.UIEventDispatcher=i});
/*ramajs/core/UIElement*/
define("ramajs/core/UIElement",function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){function i(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)};t("ramajs/core/pollyfills");var r=t("ramajs/core/utils/string-utils"),o=t("ramajs/core/UIEventDispatcher"),s=function(t){function e(e){var i=e;"string"==typeof e&&(i=document.createElement(e)),t.call(this,i),this._initialized=!1,this._children=[],this._currentState=""}return n(e,t),e.prototype.getCurrentState=function(){return this._currentState},e.prototype.setCurrentState=function(t){this._currentState!==t&&(this._currentState=t,this.validateState())},e.prototype.initialize=function(){this._initialized||(this.__preInitialize(),this.preInitialize(),this.createChildren(),this.childrenCreated(),this._initialized=!0,this.initialized())},e.prototype.__preInitialize=function(){},e.prototype.preInitialize=function(){},e.prototype.initialized=function(){},e.prototype.preAttach=function(){},e.prototype.attached=function(){},e.prototype.preDetach=function(){},e.prototype.detached=function(){},e.prototype.getElementRef=function(){return this._element},e.prototype.setChildren=function(t){},e.prototype.getChildren=function(){return this._children},e.prototype.appendChild=function(t){this.appendChildAt(t,this._children.length)},e.prototype.appendChildAt=function(t,e){-1===e&&(e=0),this.initializeAndAppendElement(t,e)},e.prototype.initializeAndAppendElement=function(t,e){if(t.parentElement=this,t.initialize(),t.preAttach(),this._children.length<=0||e>this._children.length-1)this._element.appendChild(t.getElementRef());else{var i=this._children[e].getElementRef();this._element.insertBefore(t.getElementRef(),i)}t.attached(),this._children.splice(e,0,t)},e.prototype.removeChild=function(t){t.preDetach(),this._children.splice(this._children.indexOf(t),1),this._element.removeChild(t.getElementRef()),t.detached()},e.prototype.removeAllChildren=function(){for(;this._children.length>0;)this.removeChild(this._children[0])},e.prototype.setAttribute=function(t,e){var i="set"+r.titleCase(t);this[i]?this[i](e):this[t]=e;var n=new RegExp("^on");n.test(t)&&this.addEventListener(t.substring(2),e),this._element instanceof Element&&"string"==typeof e&&this._element.setAttribute(t,e)},e.prototype.getAttribute=function(t){return this._element instanceof Element?this._element.getAttribute(t):null},e.prototype.isInitialized=function(){return this._initialized},e.prototype.createChildren=function(){},e.prototype.childrenCreated=function(){},e.prototype.validateState=function(){},e.prototype.hasClass=function(t){return this.getAttribute?(" "+(this.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1:!1},e.prototype.removeClasses=function(t){var e=this;t&&t.forEach(function(t){e.setAttribute("class",e.trim((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+e.trim(t)+" "," ")))},this)},e.prototype.addClasses=function(t){var e=this;if(t){var i=(" "+(this.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");t.forEach(function(t){t=e.trim(t),-1===i.indexOf(" "+t+" ")&&(i+=t+" ")}),this[0].setAttribute("class",this.trim(i))}},e.prototype.toggleClasses=function(t){var e=this;t&&t.forEach(function(t){var i=!e.hasClass(t);i?e.addClasses([t]):e.removeClasses([t])})},e.prototype.trim=function(t){return null==t?"":(t+"").replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},e}(o.UIEventDispatcher);e.UIElement=s});
/*ramajs/core/support_classes/PropertySetter*/
define("ramajs/core/support_classes/PropertySetter",function(t,e,r){"use strict";var i=function(){function t(t,e,r){this._target=null,this._name=null,this._value=null,this.oldValue=null,this._target=t,this._name=e,this._value=r}return Object.defineProperty(t.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t.prototype.apply=function(){this._target&&(this.oldValue=this._target.getAttribute(this._name),this.oldValue||(this.oldValue=""),this._target.setAttribute(this._name,this._value))},t.prototype.remove=function(){this._target&&this._target.setAttribute(this._name,this.oldValue)},t}();e.PropertySetter=i});
/*ramajs/core/GroupBase*/
define("ramajs/core/GroupBase",function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=e("ramajs/core/UIElement"),h=function(e){function t(){e.apply(this,arguments)}return i(t,e),t.prototype.setChildren=function(e){return this._initialized?(this.removeAllChildren(),this._children=e,void this.createChildren()):void(this._children=e)},t.prototype.createChildren=function(){if(this._children&&this._children.length>0){for(var e=document.createDocumentFragment(),t=0;t<this._children.length;t++){var n=this._children[t];n.parentElement=this,n.initialize(),n.preAttach(),e.appendChild(n.getElementRef()),n.attached()}this._element.appendChild(e)}},t}(r.UIElement);t.GroupBase=h});
/*ramajs/core/DOMElement*/
define("ramajs/core/DOMElement",function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("ramajs/core/GroupBase"),s=function(t){function e(){t.apply(this,arguments)}return r(e,t),e}(o.GroupBase);e.DOMElement=s});
/*ramajs/core/collections/Dictionary*/
define("ramajs/core/collections/Dictionary",function(t,r,i){"use strict";var e=function(){function t(){this.dictionaryArray=[]}return t.prototype.get=function(t){var r=this.getKeyItem(t);return void 0!==r?r.value:null},t.prototype.set=function(t,r){var i=this.getKeyItem(t);void 0!==i?i.value=r:this.dictionaryArray.push({key:t,value:r})},t.prototype.remove=function(t,r){for(var i=0;i<this.dictionaryArray.length;i++){var e=this.dictionaryArray[i];if(e.key===t){this.dictionaryArray.splice(i,1);break}}},t.prototype.hasKey=function(t){var r=this.getKeyItem(t);return void 0!==r},t.prototype.getKeyItem=function(t){for(var r=0;r<this.dictionaryArray.length;r++){var i=this.dictionaryArray[r];if(i.key===t)return i}},t}();r.Dictionary=e});
/*ramajs/core/utils/dom*/
define("ramajs/core/utils/dom",function(e,t,r){"use strict";function n(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a={},o={};for(var s in t){var i=s.split("__");if(2==i.length){var p=i[1];void 0===o[p]&&(o[p]={}),o[p][i[0]]=t[s]}else a[s]=t[s]}return{type:e,children:r,props:a,stateManagedProps:o}}function a(e,t,r){var n,c;if(c="string"==typeof e?{type:"text",text:e}:e,"text"==c.type){var u=document.createTextNode(c.text);return new l.DOMElement(u)}if("string"==typeof c.type){var v=document.createElement(c.type);n=new l.DOMElement(v)}else n=new c.type;if(!(n instanceof p.UIElement))throw TypeError("Custom Component Class must extend UIElement.\n"+n.toString());if(c.props)for(var m in c.props)n.setAttribute(m,c.props[m]);var d=c.children;if(d){for(var y=[],g=0;g<d.length;g++){var h=a(d[g],t,r);if(h){var E=d[g];if("string"!=typeof d[g]&&"string"==typeof E.type){var M="set"+f.titleCase(E.type);n[M]?n[M](h.getChildren()):y.push(h)}else y.push(h)}}n.setChildren(y)}return s(t,c.props,n),i(n,r,c.stateManagedProps),o(n,c.props),n}function o(e,r){var n=t.eventMetadata.get(e.constructor);n&&n.forEach(function(t){r[t]&&e.addEventListener(t,r[t])})}function s(e,t,r){e&&t&&t.id&&(e[t.id]=r)}function i(e,t,r){if(t&&r)for(var n in r){void 0===t[n]&&(t[n]=[]);var a=r[n];for(var o in a){var s=new c.PropertySetter(e,o,a[o]);t[n].push(s)}}}var p=e("ramajs/core/UIElement"),c=e("ramajs/core/support_classes/PropertySetter"),f=e("ramajs/core/utils/string-utils"),l=e("ramajs/core/DOMElement"),u=e("ramajs/core/collections/Dictionary");t.eventMetadata=new u.Dictionary,t.createVNode=n,t.createElement=a});
/*ramajs/core/ModelEventDispatcher*/
define("ramajs/core/ModelEventDispatcher",function(t,e,n){"use strict";var r=function(){function t(t,e){this._handler=t,this._context=e}return Object.defineProperty(t.prototype,"handler",{get:function(){return this._handler},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._context},enumerable:!0,configurable:!0}),t}(),o=function(){function t(){this.handlers={}}return t.prototype.dispatchEvent=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r,o;if(o="string"==typeof t?t:t.type,r=this.getHandlers(o))for(var i=0;i<r.length;i++){var s=r[i];"string"==typeof t?(a=s.handler).call.apply(a,[s.context].concat(e)):s.handler.call(s.context,t)}var a},t.prototype.addEventListener=function(t,e,n){this.toggleSubscription(t,e,!0,n)},t.prototype.removeEventListener=function(t,e){this.toggleSubscription(t,e,!1)},t.prototype.removeAllEventListeners=function(t){this.handlers[t]=[]},t.prototype.toggleSubscription=function(t,e,n,o){for(var i=this.getHandlers(t),s=0;s<i.length;s++){var a=i[s];if(a.handler===e)return void(n===!1&&i.splice(i.indexOf(a),1))}i.push(new r(e,o))},t.prototype.getHandlers=function(t){var e;return e=this.handlers[t],(null===e||void 0===e)&&(this.handlers[t]=e=[]),e},t.prototype.hasEventListener=function(t){return void 0!==this.handlers[t]&&this.handlers[t].length>0},t}();e.ModelEventDispatcher=o});
/*ramajs/core/event*/
define("ramajs/core/event",function(t,e,n){"use strict";var i=function(){function t(t,e,n){this.bubbles=t,this.cancelable=e,this.detail=n}return t}();e.REventInit=i;var r=function(){function t(t){this._type=t}return Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!0,configurable:!0}),t}();e.REvent=r});
/*ramajs/core/collections/events/CollectionEvent*/
define("ramajs/core/collections/events/CollectionEvent",function(t,e,n){"use strict";var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("ramajs/core/event");e.CollectionEventKind={ADD:"add",MOVE:"move",REMOVE:"remove",REPLACE:"replace",EXPAND:"expand",REFRESH:"refresh",RESET:"reset",UPDATE:"update"};var r=function(t){function e(e,n,o,i,r){t.call(this,e),this.kind=n,this.location=o,this.oldLocation=i,this.items=r?r:[]}return o(e,t),e}(i.REvent);e.CollectionEvent=r});
/*ramajs/core/collections/ArrayList*/
define("ramajs/core/collections/ArrayList",function(t,e,n){"use strict";var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("ramajs/core/collections/events/CollectionEvent"),s=t("ramajs/core/collections/events/CollectionEvent"),r=t("ramajs/core/ModelEventDispatcher"),c=function(t){function e(e){t.call(this),this._dispatchEvents=0,this._source=null,this.disableEvents(),this.setSource(e),this.enableEvents()}return o(e,t),e.prototype.getSource=function(){return this._source},e.prototype.setSource=function(t){if(this._source=t?t:[],0==this._dispatchEvents){var e=new i.CollectionEvent(i.CollectionEvent.COLLECTION_CHANGE,s.CollectionEventKind.RESET);this.dispatchEvent(e)}},Object.defineProperty(e.prototype,"length",{get:function(){return this._source?this._source.length:0},enumerable:!0,configurable:!0}),e.prototype.addItem=function(t){this.addItemAt(t,this.length)},e.prototype.addItemAt=function(t,e){if(0>e||e>this.length){var n="Index out of bounds Exception: Specified index "+e+"is out of bounds forthis collection of length "+this.length;throw new RangeError(n)}this._source.splice(e,0,t),this.internalDispatchEvent(s.CollectionEventKind.ADD,t,e)},e.prototype.addAll=function(t){this.addAllAt(t,this.length)},e.prototype.addAllAt=function(t,e){for(var n=t.length,o=0;n>o;o++)this.addItemAt(t[o],o+e)},e.prototype.getItemIndex=function(t){return this._source.indexOf(t)},e.prototype.removeItem=function(t){var e=this.getItemIndex(t),n=e>=0;return n&&this.removeItemAt(e),n},e.prototype.removeItemAt=function(t){if(0>t||t>=this.length){var e="Index out of bounds Exception: Specified index "+t+"is out of bounds forthis collection of length "+this.length;throw new RangeError(e)}var n=this._source.splice(t,1)[0];return this.internalDispatchEvent(s.CollectionEventKind.REMOVE,n,t),n},e.prototype.removeAll=function(){this.length>0&&(this._source.splice(0,this.length),this.internalDispatchEvent(s.CollectionEventKind.RESET))},e.prototype.toArray=function(){return this._source.concat()},e.prototype.toString=function(){return this._source.toString()},e.prototype.getItemAt=function(t){if(0>t||t>=this.length){var e="Index out of bounds Exception: Specified index "+t+"is out of bounds forthis collection of length "+this.length;throw new RangeError(e)}return this._source[t]},e.prototype.setItemAt=function(t,e){if(0>e||e>=this.length){var n="Index out of bounds Exception: Specified index "+e+"is out of bounds forthis collection of length "+this.length;throw new RangeError(n)}var o=this._source[e];if(this._source[e]=t,0==this._dispatchEvents){var r=this.hasEventListener(i.CollectionEvent.COLLECTION_CHANGE);if(r){var c=new i.CollectionEvent(i.CollectionEvent.COLLECTION_CHANGE);c.kind=s.CollectionEventKind.REPLACE,c.location=e;var h={};h.oldValue=o,h.newValue=t,h.property=e,c.items.push(h),this.dispatchEvent(c)}}return o},e.prototype.refresh=function(){var t=new i.CollectionEvent(i.CollectionEvent.COLLECTION_CHANGE);t.kind=s.CollectionEventKind.REFRESH,this.dispatchEvent(t)},e.prototype.forEach=function(t,e){for(var n=0;n<this.length;n++)t.call(e,this._source[n])},e.prototype.internalDispatchEvent=function(t,e,n){if(0==this._dispatchEvents&&this.hasEventListener(i.CollectionEvent.COLLECTION_CHANGE)){var o=new i.CollectionEvent(i.CollectionEvent.COLLECTION_CHANGE,t,n);o.items.push(e),this.dispatchEvent(o)}},e.prototype.enableEvents=function(){this._dispatchEvents++,this._dispatchEvents>0&&(this._dispatchEvents=0)},e.prototype.disableEvents=function(){this._dispatchEvents--},e}(r.ModelEventDispatcher);e.ArrayList=c});
/*ramajs/core/collections/ArrayCollection*/
define("ramajs/core/collections/ArrayCollection",function(t,e,i){"use strict";var n=this&&this.__extends||function(t,e){function i(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)},o=t("ramajs/core/ModelEventDispatcher"),r=t("ramajs/core/collections/ArrayList"),l=t("ramajs/core/collections/events/CollectionEvent"),s=function(t){function e(e,i,n){t.call(this),this._filterFunction=i,this._sortFunction=n,this.setSource(e)}return n(e,t),Object.defineProperty(e.prototype,"sortFunction",{get:function(){return this._sortFunction},set:function(t){this._sortFunction=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterFunction",{get:function(){return this._filterFunction},set:function(t){this._filterFunction=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._localIndex?this._localIndex.length:this._list?this._list.length:0},enumerable:!0,configurable:!0}),e.prototype.setSource=function(t){var e=this;this._list&&this._list.getSource()===t||(this._list=new r.ArrayList(t),this.internalRefresh(!1),this._list.addEventListener(l.CollectionEvent.COLLECTION_CHANGE,function(t){e.dataProvider_collectionChangeHandler(t)}))},e.prototype.getSource=function(){return this._list?this._list.getSource():null},e.prototype.addItem=function(t){this.addItemAt(t,this.length)},e.prototype.addItemAt=function(t,e){if(0>e||e>this.length){var i="Index out of bounds Exception: Specified index "+e+"is out of bounds forthis collection of length "+this.length;throw new RangeError(i)}var n=e;this._localIndex&&this._sortFunction?n=this._list.length:this._localIndex&&null!=this._filterFunction&&(n=n==this._localIndex.length?this._list.length:this._list.getItemIndex(this._localIndex[e])),this._list.addItemAt(t,n)},e.prototype.addAll=function(t){this.addAllAt(t,this.length)},e.prototype.addAllAt=function(t,e){for(var i=t.length,n=0;i>n;n++)this.addItemAt(t[n],n+e)},e.prototype.getItemIndex=function(t){var e;if(this._localIndex){var i=this._localIndex.length;for(e=0;i>e;e++)if(this._localIndex[e]==t)return e;return-1}return this._list.getItemIndex(t)},e.prototype.removeItem=function(t){var e=this.getItemIndex(t),i=e>=0;return i&&this.removeItemAt(e),i},e.prototype.removeItemAt=function(t){if(0>t||t>=this.length){var e="Index out of bounds Exception: Specified index "+t+"is out of bounds forthis collection of length "+this.length;throw new RangeError(e)}var i=t;if(this._localIndex){var n=this._localIndex[t];i=this._list.getItemIndex(n),this._localIndex.splice(t,1)}return this._list.removeItemAt(i)},e.prototype.removeAll=function(){var t=this.length;if(t>0)if(this._localIndex)for(var e=t-1;e>=0;e--)this.removeItemAt(e);else this._list.removeAll()},e.prototype.toArray=function(){var t;return t=this._localIndex?this._localIndex.concat():this._list.toArray()},e.prototype.toString=function(){return this._localIndex?this._localIndex.toString():this._list&&this._list.toString?this._list.toString():void this.toString()},e.prototype.getItemAt=function(t){if(0>t||t>=this.length){var e="Index out of bounds Exception: Specified index "+t+"is out of bounds forthis collection of length "+this.length;throw new RangeError(e)}return this._localIndex?this._localIndex[t]:this._list?this._list.getItemAt(t):null},e.prototype.setItemAt=function(t,e){if(0>e||e>=this.length){var i="Index out of bounds Exception: Specified index "+e+"is out of bounds forthis collection of length "+this.length;throw new RangeError(i)}var n=e;if(this._localIndex){var o=this._localIndex[e];n=this._list.getItemIndex(o),this._localIndex[e]=t}return this._list.setItemAt(t,n)},e.prototype.refresh=function(){this.internalRefresh(!0)},e.prototype.forEach=function(t,e){for(var i=0;i<this.length;i++)t.call(e,this.getItemAt(i))},e.prototype.dataProvider_collectionChangeHandler=function(t){var e=new l.CollectionEvent(l.CollectionEvent.COLLECTION_CHANGE);for(var i in e)t.hasOwnProperty(i)&&(e[i]=t[i]);this.dispatchEvent(e)},e.prototype.internalRefresh=function(t){if(this._sortFunction||this._filterFunction){if(this._list?this._localIndex=this._list.toArray():this._localIndex=[],null!=this._filterFunction){for(var e=[],i=this._localIndex.length,n=0;i>n;n++){var o=this._localIndex[n];this._filterFunction(o)&&e.push(o)}this._localIndex=e}this._sortFunction&&(this._localIndex.sort(this._sortFunction),t=!0)}else this._localIndex&&(this._localIndex=null);t&&this._list.refresh()},e}(o.ModelEventDispatcher);e.ArrayCollection=s});
/*ramajs/decorators*/
define("ramajs/decorators",function(t,e,n){"use strict";function a(t){return void 0===t&&(t=!1),function(e,n){e.skinParts||(e.skinParts={}),e.skinParts[n]={required:t}}}function r(t){return function(e){i.eventMetadata.get(e)||i.eventMetadata.set(e,[]);var n=i.eventMetadata.get(e);-1==n.indexOf(t)&&n.push(t)}}var i=t("ramajs/core/utils/dom");e.skinPart=a,e.event=r});
/*ramajs/core/support_classes/State*/
define("ramajs/core/support_classes/State",function(t,e,r){"use strict";var i=t("ramajs/core/utils/string-utils"),n=function(){function t(t,e){var r=this;if(this.propertySetters=[],this._stateGroups=[],this._name=t,e){var n=e.split(",");n.forEach(function(t){r._stateGroups.push(i.trim(t))})}}return Object.defineProperty(t.prototype,"stateGroups",{get:function(){return this._stateGroups},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this._initialized||(this._initialized=!0)},t.prototype.apply=function(){for(var t=0;t<this.propertySetters.length;t++){var e=this.propertySetters[t];e.target[e.name]=e.value}},t}();e.State=n});
/*ramajs/core/ViewBase*/
define("ramajs/core/ViewBase",function(t,e,r){"use strict";var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},n=t("ramajs/core/utils/dom"),o=t("ramajs/core/support_classes/State"),s=t("ramajs/core/UIElement"),a=function(t){function e(){t.call(this),this._viewStates=[],this._stateManagedProperties={},this._tempAttributes={}}return i(e,t),e.prototype.__preInitialize=function(){var t=this;this.parse(),this._viewStates.forEach(function(e){t._stateManagedProperties.hasOwnProperty(e.name)&&e.propertySetters.push.apply(e.propertySetters,t._stateManagedProperties[e.name]),e.stateGroups.forEach(function(r){t._stateManagedProperties.hasOwnProperty(r)&&e.propertySetters.push.apply(e.propertySetters,t._stateManagedProperties[r])})})},e.prototype.initialized=function(){this.setCurrentState(this._tempCurrentState)},e.prototype.setChildren=function(t){return this._initialized?(this._children=t,void this.createChildren()):void(this._children=t)},e.prototype.getChildren=function(){return this.rootElement.getChildren()},e.prototype.removeChild=function(t){this.rootElement.removeChild(t)},e.prototype.removeAllChildren=function(){this.rootElement.removeAllChildren()},e.prototype.appendChildAt=function(t,e){this.rootElement.appendChildAt(t,e)},e.prototype.appendChild=function(t){this.rootElement.appendChild(t)},e.prototype.setAttribute=function(t,e){return this.rootElement?void this.rootElement.setAttribute(t,e):void(this._tempAttributes[t]=e)},e.prototype.getAttribute=function(t){return this.rootElement.getAttribute(t)},e.prototype.createChildren=function(){this._children&&this._children.length>0&&this.rootElement.setChildren(this._children);for(var t in this._tempAttributes)this.rootElement.setAttribute(t,this._tempAttributes[t]);this.rootElement.initialize()},e.prototype.parse=function(){var t,e=this.render();if((null===e||void 0===e)&&(e={type:"div"}),e.children)for(var r=0;r<e.children.length;r++){var i=e.children[r];if("string"!=typeof i&&"states"===i.type){t=i,e.children.splice(r,1);break}}if(t&&t.children)for(var s=0;s<t.children.length;s++){var a=t.children[s];if("string"==typeof a)return;if(a.props&&null!==a.props.name&&void 0!==a.props.name){var p=new o.State(a.props.name,a.props.stateGroups);this._viewStates.push(p)}}this.rootElement=n.createElement(e,this,this._stateManagedProperties),this.__setElementRef(this.rootElement.getElementRef())},e.prototype.hasState=function(t){for(var e=0;e<this._viewStates.length;e++)if(this._viewStates[e].name==t)return!0;return!1},e.prototype.getCurrentState=function(){return this.initialized?this._currentState:this._tempCurrentState},e.prototype.setCurrentState=function(t){var e=this.getState(this._currentState);if(this._initialized)if(this.isBaseState(t))this.removeState(e),this._currentState=t;else{var r=this.getState(t);this.initializeState(t),this.removeState(e),this._currentState=t,this.applyState(r)}else this._tempCurrentState=t},e.prototype.isBaseState=function(t){return!t||""==t},e.prototype.initializeState=function(t){var e=this.getState(t);e&&e.initialize()},e.prototype.removeState=function(t){if(t)for(var e=0;e<t.propertySetters.length;e++)t.propertySetters[e].remove()},e.prototype.applyState=function(t){if(t)for(var e=0;e<t.propertySetters.length;e++)t.propertySetters[e].apply()},e.prototype.getState=function(t){if(!this._viewStates||this.isBaseState(t))return null;for(var e=0;e<this._viewStates.length;e++)if(this._viewStates[e].name==t)return this._viewStates[e];throw new ReferenceError("State not Found Exception: The state '"+t+"' being set on the component is not found in the skin")},e}(s.UIElement);e.ViewBase=a});
/*ramajs/View*/
define("ramajs/View",function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("ramajs/core/ViewBase"),o=function(t){function e(){t.apply(this,arguments)}return r(e,t),e}(i.ViewBase);e.View=o});
/*ramajs/Skin*/
define("ramajs/Skin",function(t,n,e){"use strict";var r=this&&this.__extends||function(t,n){function e(){this.constructor=t}for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r]);t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)},i=t("ramajs/core/ViewBase"),o=function(t){function n(){t.apply(this,arguments)}return r(n,t),n.prototype.getSkinPartByID=function(t){var n=this[t];return n?n:null},n}(i.ViewBase);n.Skin=o});
/*ramajs/Group*/
define("ramajs/Group",function(t,r,o){"use strict";var n=this&&this.__extends||function(t,r){function o(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)},e=t("ramajs/core/GroupBase"),i=function(t){function r(){t.call(this,"div")}return n(r,t),r}(e.GroupBase);r.Group=i});
/*ramajs/Component*/
define("ramajs/Component",function(t,i,n){"use strict";var e=this&&this.__extends||function(t,i){function n(){this.constructor=t}for(var e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)},s=t("ramajs/core/UIElement"),a=function(t){function i(i){var n;i||(n="div"),t.call(this,n)}return e(i,t),i.prototype.detached=function(){this.detachSkin()},i.prototype.setSkinClass=function(t){this._skinClass!==t&&(this._skinClass=t,this._initialized&&this.validateSkinChange())},i.prototype.partAdded=function(t,i){},i.prototype.partRemoved=function(t,i){},i.prototype.createChildren=function(){this.validateSkinChange()},i.prototype.validateSkinChange=function(){this._skinElement&&this.detachSkin(),this.attachSkin()},i.prototype.attachSkin=function(){this._skinClass&&(this._skinElement=new this._skinClass,this.initializeAndAppendElement(this._skinElement,0),this.findSkinParts(),this.validateSkinState())},i.prototype.validateState=function(){this.validateSkinState()},i.prototype.validateSkinState=function(){this._skinElement&&this._skinElement.setCurrentState(this.getCurrentState())},i.prototype.detachSkin=function(){this._skinElement&&(this.clearSkinParts(),this.removeChild(this._skinElement))},i.prototype.findSkinParts=function(){if(this._skinElement)for(var t in this.skinParts){var i=this.skinParts[t],n=!1,e=this._skinElement.getSkinPartByID(t);if(e&&(n=!0,this[t]=e,this.partAdded(t,e)),i.required===!0&&!n)throw new ReferenceError("Required Skin part not found: "+t+" in the Attached skin")}},i.prototype.clearSkinParts=function(){if(this._skinElement)for(var t in this.skinParts){this.skinParts[t];null!==this[t]&&this.partRemoved(t,this[t])}},i.prototype.appendChild=function(t){},i.prototype.appendChildAt=function(t,i){},i}(s.UIElement);i.Component=a});
/*ramajs/Container*/
define("ramajs/Container",function(t,e,n){"use strict";var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=this&&this.__decorate||function(t,e,n,o){var r,i=arguments.length,p=3>i?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(p=(3>i?r(p):i>3?r(e,n,p):r(e,n))||p);return i>3&&p&&Object.defineProperty(e,n,p),p},i=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},p=t("ramajs/Component"),c=t("ramajs/core/GroupBase"),s=t("ramajs/decorators"),h=function(t){function e(){t.apply(this,arguments)}return o(e,t),e.prototype.getChildren=function(){return this.contentGroup?this.contentGroup.getChildren():this._tempChildren},e.prototype.setChildren=function(t){this._tempChildren=t,this.contentGroup&&this.contentGroup.setChildren(this._tempChildren)},e.prototype.partAdded=function(e,n){t.prototype.partAdded.call(this,e,n),n===this.contentGroup&&this.contentGroup.setChildren(this._tempChildren)},e.prototype.removeChild=function(t){this.contentGroup&&this.contentGroup.removeChild(t)},e.prototype.removeAllChildren=function(){this.contentGroup&&this.contentGroup.removeAllChildren()},e.prototype.appendChildAt=function(t,e){this.contentGroup&&this.contentGroup.appendChildAt(t,e)},e.prototype.appendChild=function(t){this.contentGroup&&this.contentGroup.appendChild(t)},r([s.skinPart(!1),i("design:type",c.GroupBase)],e.prototype,"contentGroup",void 0),e}(p.Component);e.Container=h});
/*ramajs/index*/
define("ramajs/index",function(a,r,e){"use strict";function n(a){for(var e in a)r.hasOwnProperty(e)||(r[e]=a[e])}var o=a("ramajs/core/utils/dom"),s=a("ramajs/core/DOMElement");r.rama={createElement:o.createVNode},r.render=function(a,r){r.innerHTML="";var e=new a;e.initialize();var n=new s.DOMElement(r);n.appendChild(e)},n(a("ramajs/core/utils/dom")),n(a("ramajs/core/UIElement")),n(a("ramajs/core/UIEventDispatcher")),n(a("ramajs/core/ModelEventDispatcher")),n(a("ramajs/core/UIElement")),n(a("ramajs/core/collections/ArrayCollection")),n(a("ramajs/core/collections/ArrayList")),n(a("ramajs/core/collections/Dictionary")),n(a("ramajs/decorators")),n(a("ramajs/View")),n(a("ramajs/Skin")),n(a("ramajs/Group")),n(a("ramajs/Component")),n(a("ramajs/Container"))});
/*[global-shim-end]*/
!function(){window._define=window.define,window.define=window.define.orig}();
var ramajs=function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function i(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}var r=n(1),o=n(7);e.rama={createElement:r.createVNode},e.render=function(t,e){e.innerHTML="";var n=new t;n.initialize();var i=new o.DOMElement(e);i.appendChild(n)},i(n(1)),i(n(2)),i(n(5)),i(n(10)),i(n(2)),i(n(11)),i(n(12)),i(n(9)),i(n(15)),i(n(16)),i(n(19)),i(n(20)),i(n(21)),i(n(22))},function(t,e,n){"use strict";function i(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r={},o={};for(var s in e){var a=s.split("__");if(2==a.length){var h=a[1];void 0===o[h]&&(o[h]={}),o[h][a[0]]=e[s]}else r[s]=e[s]}return{type:t,children:n,props:r,stateManagedProps:o}}function r(t,e,n){var i,l;if(l="string"==typeof t?{type:"text",text:t}:t,"text"==l.type){var u=document.createTextNode(l.text);return new p.DOMElement(u)}if("string"==typeof l.type){var f=document.createElement(l.type);i=new p.DOMElement(f)}else i=new l.type;if(!(i instanceof h.UIElement))throw TypeError("Custom Component Class must extend UIElement.\n"+i.toString());if(l.props)for(var d in l.props)i.setAttribute(d,l.props[d]);var v=l.children;if(v){for(var y=[],_=0;_<v.length;_++){var g=r(v[_],e,n);if(g){var m=v[_];if("string"!=typeof v[_]&&"string"==typeof m.type){var E="set"+c.titleCase(m.type);i[E]?i[E](g.getChildren()):y.push(g)}else y.push(g)}}i.setChildren(y)}return s(e,l.props,i),a(i,n,l.stateManagedProps),o(i,l.props),i}function o(t,n){var i=e.eventMetadata.get(t.constructor);i&&i.forEach(function(e){n[e]&&t.addEventListener(e,n[e])})}function s(t,e,n){t&&e&&e.id&&(t[e.id]=n)}function a(t,e,n){if(e&&n)for(var i in n){void 0===e[i]&&(e[i]=[]);var r=n[i];for(var o in r){var s=new l.PropertySetter(t,o,r[o]);e[i].push(s)}}}var h=n(2),l=n(6),c=n(4),p=n(7),u=n(9);e.eventMetadata=new u.Dictionary,e.createVNode=i,e.createElement=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)};n(3);var r=n(4),o=n(5),s=function(t){function e(e){var n=e;"string"==typeof e&&(n=document.createElement(e)),t.call(this,n),this._initialized=!1,this._children=[],this._currentState=""}return i(e,t),e.prototype.getCurrentState=function(){return this._currentState},e.prototype.setCurrentState=function(t){this._currentState!==t&&(this._currentState=t,this.validateState())},e.prototype.initialize=function(){this._initialized||(this.__preInitialize(),this.preInitialize(),this.createChildren(),this.childrenCreated(),this._initialized=!0,this.initialized())},e.prototype.__preInitialize=function(){},e.prototype.preInitialize=function(){},e.prototype.initialized=function(){},e.prototype.preAttach=function(){},e.prototype.attached=function(){},e.prototype.preDetach=function(){},e.prototype.detached=function(){},e.prototype.getElementRef=function(){return this._element},e.prototype.setChildren=function(t){},e.prototype.getChildren=function(){return this._children},e.prototype.appendChild=function(t){this.appendChildAt(t,this._children.length)},e.prototype.appendChildAt=function(t,e){e===-1&&(e=0),this.initializeAndAppendElement(t,e)},e.prototype.initializeAndAppendElement=function(t,e){if(t.parentElement=this,t.initialize(),t.preAttach(),this._children.length<=0||e>this._children.length-1)this._element.appendChild(t.getElementRef());else{var n=this._children[e].getElementRef();this._element.insertBefore(t.getElementRef(),n)}t.attached(),this._children.splice(e,0,t)},e.prototype.removeChild=function(t){t.preDetach(),this._children.splice(this._children.indexOf(t),1),this._element.removeChild(t.getElementRef()),t.detached()},e.prototype.removeAllChildren=function(){for(;this._children.length>0;)this.removeChild(this._children[0])},e.prototype.setAttribute=function(t,e){var n="set"+r.titleCase(t);this[n]?this[n](e):this[t]=e;var i=new RegExp("^on");i.test(t)&&this.addEventListener(t.substring(2),e),this._element instanceof Element&&"string"==typeof e&&this._element.setAttribute(t,e)},e.prototype.getAttribute=function(t){return this._element instanceof Element?this._element.getAttribute(t):null},e.prototype.isInitialized=function(){return this._initialized},e.prototype.createChildren=function(){},e.prototype.childrenCreated=function(){},e.prototype.validateState=function(){},e.prototype.hasClass=function(t){return!!this.getAttribute&&(" "+(this.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1},e.prototype.removeClasses=function(t){var e=this;t&&t.forEach(function(t){e.setAttribute("class",e.trim((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+e.trim(t)+" "," ")))},this)},e.prototype.addClasses=function(t){var e=this;if(t){var n=(" "+(this.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");t.forEach(function(t){t=e.trim(t),n.indexOf(" "+t+" ")===-1&&(n+=t+" ")}),this[0].setAttribute("class",this.trim(n))}},e.prototype.toggleClasses=function(t){var e=this;t&&t.forEach(function(t){var n=!e.hasClass(t);n?e.addClasses([t]):e.removeClasses([t])})},e.prototype.trim=function(t){return null==t?"":(t+"").replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},e}(o.UIEventDispatcher);e.UIElement=s},function(t,e){var n=window;try{new n.CustomEvent("test")}catch(t){var i=function(t,e){var n;return e=e||{bubbles:!1,cancelable:!1,detail:void 0},n=document.createEvent("CustomEvent"),n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n};i.prototype=Event.prototype,n.CustomEvent=i}},function(t,e){"use strict";function n(t){return t.charAt(0).toUpperCase()+t.slice(1)}function i(t){return t.replace(s,function(t,e,n,i){return i?n.toUpperCase():n}).replace(a,"Moz$1")}function r(t){return null==t?"":(t+"").replace(o,"")}var o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,s=/([\:\-\_]+(.))/g,a=/^moz([A-Z])/;e.titleCase=n,e.camelCase=i,e.trim=r},function(t,e){"use strict";var n=function(){function t(t){this.eventListenersDictionary={},this.__setElementRef(t)}return t.prototype.__setElementRef=function(t){this._element=t,this[0]=t},t.prototype.addEventListener=function(t,e,n){this._element.addEventListener(t,e,n),void 0!==this.eventListenersDictionary[t]&&null!==this.eventListenersDictionary[t]||(this.eventListenersDictionary[t]=[]),e.useCapture=n,this.eventListenersDictionary[t].push(e)},t.prototype.dispatchEvent=function(t){return this._element.dispatchEvent(t),!t.defaultPrevented},t.prototype.removeEventListener=function(t,e,n){if(this._element.removeEventListener(t,e,n),void 0!==this.eventListenersDictionary[t]&&null!==this.eventListenersDictionary[t]){var i=this.eventListenersDictionary[t].indexOf(e);i>-1&&this.eventListenersDictionary[t].splice(i,1),this.eventListenersDictionary[t].length<=0&&(this.eventListenersDictionary[t]=null)}},t.prototype.hasEventListener=function(t){return void 0!==this.eventListenersDictionary[t]&&null!==this.eventListenersDictionary[t]},t.prototype.removeAllEventListeners=function(){for(var t in this.eventListenersDictionary)if(null!==this.eventListenersDictionary[t])for(var e=this.eventListenersDictionary[t].length-1;e>=0;e-=1){var n=this.eventListenersDictionary[t][e];this.removeEventListener(t,n,n.useCapture)}},t}();e.UIEventDispatcher=n},function(t,e){"use strict";var n=function(){function t(t,e,n){this._target=null,this._name=null,this._value=null,this.oldValue=null,this._target=t,this._name=e,this._value=n}return Object.defineProperty(t.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t.prototype.apply=function(){this._target&&(this.oldValue=this._target.getAttribute(this._name),this.oldValue||(this.oldValue=""),this._target.setAttribute(this._name,this._value))},t.prototype.remove=function(){this._target&&this._target.setAttribute(this._name,this.oldValue)},t}();e.PropertySetter=n},function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n(8),o=function(t){function e(){t.apply(this,arguments)}return i(e,t),e}(r.GroupBase);e.DOMElement=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n(2),o=function(t){function e(){t.apply(this,arguments)}return i(e,t),e.prototype.setChildren=function(t){return this._initialized?(this.removeAllChildren(),this._children=t,void this.createChildren()):void(this._children=t)},e.prototype.createChildren=function(){if(this._children&&this._children.length>0){for(var t=document.createDocumentFragment(),e=0;e<this._children.length;e++){var n=this._children[e];n.parentElement=this,n.initialize(),n.preAttach(),t.appendChild(n.getElementRef()),n.attached()}this._element.appendChild(t)}},e}(r.UIElement);e.GroupBase=o},function(t,e){"use strict";var n=function(){function t(){this.dictionaryArray=[]}return t.prototype.get=function(t){var e=this.getKeyItem(t);return void 0!==e?e.value:null},t.prototype.set=function(t,e){var n=this.getKeyItem(t);void 0!==n?n.value=e:this.dictionaryArray.push({key:t,value:e})},t.prototype.remove=function(t,e){for(var n=0;n<this.dictionaryArray.length;n++){var i=this.dictionaryArray[n];if(i.key===t){this.dictionaryArray.splice(n,1);break}}},t.prototype.hasKey=function(t){var e=this.getKeyItem(t);return void 0!==e},t.prototype.getKeyItem=function(t){for(var e=0;e<this.dictionaryArray.length;e++){var n=this.dictionaryArray[e];if(n.key===t)return n}},t}();e.Dictionary=n},function(t,e){"use strict";var n=function(){function t(t,e){this._handler=t,this._context=e}return Object.defineProperty(t.prototype,"handler",{get:function(){return this._handler},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._context},enumerable:!0,configurable:!0}),t}(),i=function(){function t(){this.handlers={}}return t.prototype.dispatchEvent=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i,r;if(r="string"==typeof t?t:t.type,i=this.getHandlers(r))for(var o=0;o<i.length;o++){var s=i[o];"string"==typeof t?(a=s.handler).call.apply(a,[s.context].concat(e)):s.handler.call(s.context,t)}var a},t.prototype.addEventListener=function(t,e,n){this.toggleSubscription(t,e,!0,n)},t.prototype.removeEventListener=function(t,e){this.toggleSubscription(t,e,!1)},t.prototype.removeAllEventListeners=function(t){this.handlers[t]=[]},t.prototype.toggleSubscription=function(t,e,i,r){for(var o=this.getHandlers(t),s=0;s<o.length;s++){var a=o[s];if(a.handler===e)return void(i===!1&&o.splice(o.indexOf(a),1))}o.push(new n(e,r))},t.prototype.getHandlers=function(t){var e;return e=this.handlers[t],null!==e&&void 0!==e||(this.handlers[t]=e=[]),e},t.prototype.hasEventListener=function(t){return void 0!==this.handlers[t]&&this.handlers[t].length>0},t}();e.ModelEventDispatcher=i},function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n(10),o=n(12),s=n(13),a=function(t){function e(e,n,i){t.call(this),this._filterFunction=n,this._sortFunction=i,this.setSource(e)}return i(e,t),Object.defineProperty(e.prototype,"sortFunction",{get:function(){return this._sortFunction},set:function(t){this._sortFunction=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterFunction",{get:function(){return this._filterFunction},set:function(t){this._filterFunction=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._localIndex?this._localIndex.length:this._list?this._list.length:0},enumerable:!0,configurable:!0}),e.prototype.setSource=function(t){var e=this;this._list&&this._list.getSource()===t||(this._list=new o.ArrayList(t),this.internalRefresh(!1),this._list.addEventListener(s.CollectionEvent.COLLECTION_CHANGE,function(t){e.dataProvider_collectionChangeHandler(t)}))},e.prototype.getSource=function(){return this._list?this._list.getSource():null},e.prototype.addItem=function(t){this.addItemAt(t,this.length)},e.prototype.addItemAt=function(t,e){if(e<0||e>this.length){var n="Index out of bounds Exception: Specified index "+e+"is out of bounds forthis collection of length "+this.length;throw new RangeError(n)}var i=e;this._localIndex&&this._sortFunction?i=this._list.length:this._localIndex&&null!=this._filterFunction&&(i=i==this._localIndex.length?this._list.length:this._list.getItemIndex(this._localIndex[e])),this._list.addItemAt(t,i)},e.prototype.addAll=function(t){this.addAllAt(t,this.length)},e.prototype.addAllAt=function(t,e){for(var n=t.length,i=0;i<n;i++)this.addItemAt(t[i],i+e)},e.prototype.getItemIndex=function(t){var e;if(this._localIndex){var n=this._localIndex.length;for(e=0;e<n;e++)if(this._localIndex[e]==t)return e;return-1}return this._list.getItemIndex(t)},e.prototype.removeItem=function(t){var e=this.getItemIndex(t),n=e>=0;return n&&this.removeItemAt(e),n},e.prototype.removeItemAt=function(t){if(t<0||t>=this.length){var e="Index out of bounds Exception: Specified index "+t+"is out of bounds forthis collection of length "+this.length;throw new RangeError(e)}var n=t;if(this._localIndex){var i=this._localIndex[t];n=this._list.getItemIndex(i),this._localIndex.splice(t,1)}return this._list.removeItemAt(n)},e.prototype.removeAll=function(){var t=this.length;if(t>0)if(this._localIndex)for(var e=t-1;e>=0;e--)this.removeItemAt(e);else this._list.removeAll()},e.prototype.toArray=function(){var t;return t=this._localIndex?this._localIndex.concat():this._list.toArray()},e.prototype.toString=function(){return this._localIndex?this._localIndex.toString():this._list&&this._list.toString?this._list.toString():void this.toString()},e.prototype.getItemAt=function(t){if(t<0||t>=this.length){var e="Index out of bounds Exception: Specified index "+t+"is out of bounds forthis collection of length "+this.length;throw new RangeError(e)}return this._localIndex?this._localIndex[t]:this._list?this._list.getItemAt(t):null},e.prototype.setItemAt=function(t,e){if(e<0||e>=this.length){var n="Index out of bounds Exception: Specified index "+e+"is out of bounds forthis collection of length "+this.length;throw new RangeError(n)}var i=e;if(this._localIndex){var r=this._localIndex[e];i=this._list.getItemIndex(r),this._localIndex[e]=t}return this._list.setItemAt(t,i)},e.prototype.refresh=function(){this.internalRefresh(!0)},e.prototype.forEach=function(t,e){for(var n=0;n<this.length;n++)t.call(e,this.getItemAt(n))},e.prototype.dataProvider_collectionChangeHandler=function(t){var e=new s.CollectionEvent(s.CollectionEvent.COLLECTION_CHANGE);for(var n in e)t.hasOwnProperty(n)&&(e[n]=t[n]);this.dispatchEvent(e)},e.prototype.internalRefresh=function(t){if(this._sortFunction||this._filterFunction){if(this._list?this._localIndex=this._list.toArray():this._localIndex=[],null!=this._filterFunction){for(var e=[],n=this._localIndex.length,i=0;i<n;i++){var r=this._localIndex[i];this._filterFunction(r)&&e.push(r)}this._localIndex=e}this._sortFunction&&(this._localIndex.sort(this._sortFunction),t=!0)}else this._localIndex&&(this._localIndex=null);t&&this._list.refresh()},e}(r.ModelEventDispatcher);e.ArrayCollection=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n(13),o=n(13),s=n(10),a=function(t){function e(e){t.call(this),this._dispatchEvents=0,this._source=null,this.disableEvents(),this.setSource(e),this.enableEvents()}return i(e,t),e.prototype.getSource=function(){return this._source},e.prototype.setSource=function(t){if(this._source=t?t:[],0==this._dispatchEvents){var e=new r.CollectionEvent(r.CollectionEvent.COLLECTION_CHANGE,o.CollectionEventKind.RESET);this.dispatchEvent(e)}},Object.defineProperty(e.prototype,"length",{get:function(){return this._source?this._source.length:0},enumerable:!0,configurable:!0}),e.prototype.addItem=function(t){this.addItemAt(t,this.length)},e.prototype.addItemAt=function(t,e){if(e<0||e>this.length){var n="Index out of bounds Exception: Specified index "+e+"is out of bounds forthis collection of length "+this.length;throw new RangeError(n)}this._source.splice(e,0,t),this.internalDispatchEvent(o.CollectionEventKind.ADD,t,e)},e.prototype.addAll=function(t){this.addAllAt(t,this.length)},e.prototype.addAllAt=function(t,e){for(var n=t.length,i=0;i<n;i++)this.addItemAt(t[i],i+e)},e.prototype.getItemIndex=function(t){return this._source.indexOf(t)},e.prototype.removeItem=function(t){var e=this.getItemIndex(t),n=e>=0;return n&&this.removeItemAt(e),n},e.prototype.removeItemAt=function(t){if(t<0||t>=this.length){var e="Index out of bounds Exception: Specified index "+t+"is out of bounds forthis collection of length "+this.length;throw new RangeError(e)}var n=this._source.splice(t,1)[0];return this.internalDispatchEvent(o.CollectionEventKind.REMOVE,n,t),n},e.prototype.removeAll=function(){this.length>0&&(this._source.splice(0,this.length),this.internalDispatchEvent(o.CollectionEventKind.RESET))},e.prototype.toArray=function(){return this._source.concat()},e.prototype.toString=function(){return this._source.toString()},e.prototype.getItemAt=function(t){if(t<0||t>=this.length){var e="Index out of bounds Exception: Specified index "+t+"is out of bounds forthis collection of length "+this.length;throw new RangeError(e)}return this._source[t]},e.prototype.setItemAt=function(t,e){if(e<0||e>=this.length){var n="Index out of bounds Exception: Specified index "+e+"is out of bounds forthis collection of length "+this.length;throw new RangeError(n)}var i=this._source[e];if(this._source[e]=t,0==this._dispatchEvents){var s=this.hasEventListener(r.CollectionEvent.COLLECTION_CHANGE);if(s){var a=new r.CollectionEvent(r.CollectionEvent.COLLECTION_CHANGE);a.kind=o.CollectionEventKind.REPLACE,a.location=e;var h={};h.oldValue=i,h.newValue=t,h.property=e,a.items.push(h),this.dispatchEvent(a)}}return i},e.prototype.refresh=function(){var t=new r.CollectionEvent(r.CollectionEvent.COLLECTION_CHANGE);t.kind=o.CollectionEventKind.REFRESH,this.dispatchEvent(t)},e.prototype.forEach=function(t,e){for(var n=0;n<this.length;n++)t.call(e,this._source[n])},e.prototype.internalDispatchEvent=function(t,e,n){if(0==this._dispatchEvents&&this.hasEventListener(r.CollectionEvent.COLLECTION_CHANGE)){var i=new r.CollectionEvent(r.CollectionEvent.COLLECTION_CHANGE,t,n);i.items.push(e),this.dispatchEvent(i)}},e.prototype.enableEvents=function(){this._dispatchEvents++,this._dispatchEvents>0&&(this._dispatchEvents=0)},e.prototype.disableEvents=function(){this._dispatchEvents--},e}(s.ModelEventDispatcher);e.ArrayList=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n(14);e.CollectionEventKind={ADD:"add",MOVE:"move",REMOVE:"remove",REPLACE:"replace",EXPAND:"expand",REFRESH:"refresh",RESET:"reset",UPDATE:"update"};var o=function(t){function e(e,n,i,r,o){t.call(this,e),this.kind=n,this.location=i,this.oldLocation=r,this.items=o?o:[]}return i(e,t),e}(r.REvent);e.CollectionEvent=o},function(t,e){"use strict";var n=function(){function t(t,e,n){this.bubbles=t,this.cancelable=e,this.detail=n}return t}();e.REventInit=n;var i=function(){function t(t){this._type=t}return Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!0,configurable:!0}),t}();e.REvent=i},function(t,e,n){"use strict";function i(t){return void 0===t&&(t=!1),function(e,n){e.skinParts||(e.skinParts={}),e.skinParts[n]={required:t}}}function r(t){return function(e){o.eventMetadata.get(e)||o.eventMetadata.set(e,[]);var n=o.eventMetadata.get(e);n.indexOf(t)==-1&&n.push(t)}}var o=n(1);e.skinPart=i,e.event=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n(17),o=function(t){function e(){t.apply(this,arguments)}return i(e,t),e}(r.ViewBase);e.View=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n(1),o=n(18),s=n(2),a=function(t){function e(){t.call(this),this._viewStates=[],this._stateManagedProperties={},this._tempAttributes={}}return i(e,t),e.prototype.__preInitialize=function(){var t=this;this.parse(),this._viewStates.forEach(function(e){t._stateManagedProperties.hasOwnProperty(e.name)&&e.propertySetters.push.apply(e.propertySetters,t._stateManagedProperties[e.name]),e.stateGroups.forEach(function(n){t._stateManagedProperties.hasOwnProperty(n)&&e.propertySetters.push.apply(e.propertySetters,t._stateManagedProperties[n])})})},e.prototype.initialized=function(){this.setCurrentState(this._tempCurrentState)},e.prototype.setChildren=function(t){return this._initialized?(this._children=t,void this.createChildren()):void(this._children=t)},e.prototype.getChildren=function(){return this.rootElement.getChildren()},e.prototype.removeChild=function(t){this.rootElement.removeChild(t)},e.prototype.removeAllChildren=function(){this.rootElement.removeAllChildren()},e.prototype.appendChildAt=function(t,e){this.rootElement.appendChildAt(t,e)},e.prototype.appendChild=function(t){this.rootElement.appendChild(t)},e.prototype.setAttribute=function(t,e){return this.rootElement?void this.rootElement.setAttribute(t,e):void(this._tempAttributes[t]=e)},e.prototype.getAttribute=function(t){return this.rootElement.getAttribute(t)},e.prototype.createChildren=function(){this._children&&this._children.length>0&&this.rootElement.setChildren(this._children);for(var t in this._tempAttributes)this.rootElement.setAttribute(t,this._tempAttributes[t]);this.rootElement.initialize()},e.prototype.parse=function(){var t,e=this.render();if(null!==e&&void 0!==e||(e={type:"div"}),e.children)for(var n=0;n<e.children.length;n++){var i=e.children[n];if("string"!=typeof i&&"states"===i.type){t=i,e.children.splice(n,1);break}}if(t&&t.children)for(var s=0;s<t.children.length;s++){var a=t.children[s];if("string"==typeof a)return;if(a.props&&null!==a.props.name&&void 0!==a.props.name){var h=new o.State(a.props.name,a.props.stateGroups);this._viewStates.push(h)}}this.rootElement=r.createElement(e,this,this._stateManagedProperties),this.__setElementRef(this.rootElement.getElementRef())},e.prototype.hasState=function(t){for(var e=0;e<this._viewStates.length;e++)if(this._viewStates[e].name==t)return!0;return!1},e.prototype.getCurrentState=function(){return this.initialized?this._currentState:this._tempCurrentState},e.prototype.setCurrentState=function(t){var e=this.getState(this._currentState);if(this._initialized)if(this.isBaseState(t))this.removeState(e),this._currentState=t;else{var n=this.getState(t);this.initializeState(t),this.removeState(e),this._currentState=t,this.applyState(n)}else this._tempCurrentState=t},e.prototype.isBaseState=function(t){return!t||""==t},e.prototype.initializeState=function(t){var e=this.getState(t);e&&e.initialize()},e.prototype.removeState=function(t){if(t)for(var e=0;e<t.propertySetters.length;e++)t.propertySetters[e].remove()},e.prototype.applyState=function(t){if(t)for(var e=0;e<t.propertySetters.length;e++)t.propertySetters[e].apply()},e.prototype.getState=function(t){if(!this._viewStates||this.isBaseState(t))return null;for(var e=0;e<this._viewStates.length;e++)if(this._viewStates[e].name==t)return this._viewStates[e];throw new ReferenceError("State not Found Exception: The state '"+t+"' being set on the component is not found in the skin")},e}(s.UIElement);e.ViewBase=a},function(t,e,n){"use strict";var i=n(4),r=function(){function t(t,e){var n=this;if(this.propertySetters=[],this._stateGroups=[],this._name=t,e){var r=e.split(",");r.forEach(function(t){n._stateGroups.push(i.trim(t))})}}return Object.defineProperty(t.prototype,"stateGroups",{get:function(){return this._stateGroups},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this._initialized||(this._initialized=!0)},t.prototype.apply=function(){for(var t=0;t<this.propertySetters.length;t++){var e=this.propertySetters[t];e.target[e.name]=e.value}},t}();e.State=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n(17),o=function(t){function e(){t.apply(this,arguments)}return i(e,t),e.prototype.getSkinPartByID=function(t){var e=this[t];return e?e:null},e}(r.ViewBase);e.Skin=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n(8),o=function(t){function e(){t.call(this,"div")}return i(e,t),e}(r.GroupBase);e.Group=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n(2),o=function(t){function e(e){var n;e||(n="div"),t.call(this,n)}return i(e,t),e.prototype.detached=function(){this.detachSkin()},e.prototype.setSkinClass=function(t){this._skinClass!==t&&(this._skinClass=t,this._initialized&&this.validateSkinChange())},e.prototype.partAdded=function(t,e){},e.prototype.partRemoved=function(t,e){},e.prototype.createChildren=function(){this.validateSkinChange()},e.prototype.validateSkinChange=function(){this._skinElement&&this.detachSkin(),this.attachSkin()},e.prototype.attachSkin=function(){this._skinClass&&(this._skinElement=new this._skinClass,this.initializeAndAppendElement(this._skinElement,0),this.findSkinParts(),this.validateSkinState())},e.prototype.validateState=function(){this.validateSkinState()},e.prototype.validateSkinState=function(){this._skinElement&&this._skinElement.setCurrentState(this.getCurrentState())},e.prototype.detachSkin=function(){this._skinElement&&(this.clearSkinParts(),this.removeChild(this._skinElement))},e.prototype.findSkinParts=function(){if(this._skinElement)for(var t in this.skinParts){var e=this.skinParts[t],n=!1,i=this._skinElement.getSkinPartByID(t);if(i&&(n=!0,this[t]=i,this.partAdded(t,i)),e.required===!0&&!n)throw new ReferenceError("Required Skin part not found: "+t+" in the Attached skin")}},e.prototype.clearSkinParts=function(){if(this._skinElement)for(var t in this.skinParts){this.skinParts[t];null!==this[t]&&this.partRemoved(t,this[t])}},e.prototype.appendChild=function(t){},e.prototype.appendChildAt=function(t,e){},e}(r.UIElement);e.Component=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=n(21),a=n(8),h=n(15),l=function(t){function e(){t.apply(this,arguments)}return i(e,t),e.prototype.getChildren=function(){return this.contentGroup?this.contentGroup.getChildren():this._tempChildren},e.prototype.setChildren=function(t){this._tempChildren=t,this.contentGroup&&this.contentGroup.setChildren(this._tempChildren)},e.prototype.partAdded=function(e,n){t.prototype.partAdded.call(this,e,n),n===this.contentGroup&&this.contentGroup.setChildren(this._tempChildren)},e.prototype.removeChild=function(t){this.contentGroup&&this.contentGroup.removeChild(t)},e.prototype.removeAllChildren=function(){this.contentGroup&&this.contentGroup.removeAllChildren()},e.prototype.appendChildAt=function(t,e){this.contentGroup&&this.contentGroup.appendChildAt(t,e)},e.prototype.appendChild=function(t){this.contentGroup&&this.contentGroup.appendChild(t)},r([h.skinPart(!1),o("design:type",a.GroupBase)],e.prototype,"contentGroup",void 0),e}(s.Component);e.Container=l}]);

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc