www-thermferm/jqwidgets/jqxknockout.js

changeset 617
b216f9d4b917
parent 511
2d1d43c3a2c2
--- a/www-thermferm/jqwidgets/jqxknockout.js	Sun Jul 10 16:58:40 2022 +0200
+++ b/www-thermferm/jqwidgets/jqxknockout.js	Mon Aug 08 10:54:27 2022 +0200
@@ -1,7 +1,9 @@
 /*
-jQWidgets v4.5.2 (2017-May)
-Copyright (c) 2011-2017 jQWidgets.
-License: http://jqwidgets.com/license/
-*/
-try{!function(a,b){b.jqwidgets=b.jqwidgets||{},b.jqwidgets.knockout=function(c){var d={},e=c.name;d.init=function(d,f,g,h){var i=b.utils.unwrapObservable(f()),j=b.toJS(i);if(c.reset&&c.reset(),void 0==a.data(d)[e]){var k=[];a(d)[e](),widget=a.data(d)[e].instance,a.each(c,function(a,d){if(widget.hasOwnProperty(a)&&j.hasOwnProperty(a)&&!widget.koupdating){widget.koupdatingFromObservable=!0;try{var e=!1;c.serialize&&c.serialize(widget,a)&&(b.toJSON(j[a])!=b.toJSON(c.serialize(widget,a))&&c.setProperty(widget,a,widget[a],j[a]),e=!0),e||b.toJSON(j[a])!=b.toJSON(widget[a])&&c.setProperty(widget,a,widget[a],j[a])}catch(b){c.setProperty(widget,a,widget[a],j[a])}k[a]=a,widget.koupdatingFromObservable=!1}});var l={};a.each(j,function(a,b){void 0==k[a]&&(l[a]=j[a])}),widget.host[e](l)}widget=a.data(d)[e].instance,widget.koupdatingFromObservable=!1,widget.koupdating=!1,c.events&&a.each(c.events,function(){var g=this;a(d).on(g+"."+d.id,function(h){if(widget=a.data(d)[e].instance,!widget.koupdatingFromObservable){var j=widget;j.koupdating=!0;var k=f(),l=c.getProperty(widget,h,g,i);void 0!=l&&(k.hasOwnProperty(l.name)&&a.isFunction(k[l.name])?b.isObservable(k[l.name])&&k[l.name].push?f(l.value):k[l.name](l.value):k[l.name]&&f(l.value)),j.koupdating=!1}})})},d.update=function(d,f,g,h,i){var j=b.utils.unwrapObservable(f()),k=b.toJS(j);widget=a.data(d)[e].instance,widget.koupdating||a.each(c,function(a,d){if(widget.hasOwnProperty(a)&&k.hasOwnProperty(a)&&!widget.koupdating){widget.koupdatingFromObservable=!0;var e=!1;c.serialize&&c.serialize(widget,a)&&(b.toJSON(k[a])!=b.toJSON(c.serialize(widget,a))&&c.setProperty(widget,a,widget[a],k[a]),e=!0),e||b.toJSON(k[a])!=b.toJSON(widget[a])&&c.setProperty(widget,a,widget[a],k[a]),widget.koupdatingFromObservable=!1}})},b.bindingHandlers[c.name]=d};new b.jqwidgets.knockout({name:"jqxGauge",disabled:!1,min:0,max:220,value:0,reset:function(){this.value=0,this.max=220,this.min=0,this.disabled=!1},getProperty:function(a,b,c){},setProperty:function(a,b,c,d){"disabled"==b&&a.host.jqxGauge({disabled:d}),"min"==b&&a.host.jqxGauge({min:d}),"max"==b&&a.host.jqxGauge({max:d}),"value"==b&&a.host.jqxGauge({value:d})}}),new b.jqwidgets.knockout({name:"jqxLinearGauge",disabled:!1,min:0,max:220,value:0,reset:function(){this.value=0,this.max=220,this.min=0,this.disabled=!1},getProperty:function(a,b,c){},setProperty:function(a,b,c,d){"disabled"==b&&a.host.jqxLinearGauge({disabled:d}),"min"==b&&a.host.jqxLinearGauge({min:d}),"max"==b&&a.host.jqxLinearGauge({max:d}),"value"==b&&a.host.jqxLinearGauge({value:d})}}),new b.jqwidgets.knockout({name:"jqxSlider",disabled:!1,min:0,max:10,value:0,reset:function(){this.value=0,this.max=10,this.min=0,this.disabled=!1},events:["change"],getProperty:function(a,b,c){if("change"==c)return{name:"value",value:b.args.value}},setProperty:function(a,b,c,d){"disabled"==b&&a.host.jqxSlider({disabled:d}),"min"==b&&a.host.jqxSlider({min:parseFloat(d)}),"max"==b&&a.host.jqxSlider({max:parseFloat(d)}),"value"==b&&a.host.jqxSlider({value:parseFloat(d)})}}),new b.jqwidgets.knockout({name:"jqxScrollBar",disabled:!1,min:0,max:10,value:0,reset:function(){this.value=0,this.max=10,this.min=0,this.disabled=!1},events:["valueChanged"],getProperty:function(a,b,c){if("valueChanged"==c)return{name:"value",value:parseInt(b.currentValue)}},setProperty:function(a,b,c,d){"disabled"==b&&a.host.jqxScrollBar({disabled:d}),"min"==b&&a.host.jqxScrollBar({min:parseFloat(d)}),"max"==b&&a.host.jqxScrollBar({max:parseFloat(d)}),"value"==b&&a.host.jqxScrollBar({value:parseFloat(d)})}}),new b.jqwidgets.knockout({name:"jqxProgressBar",disabled:!1,value:0,reset:function(){this.value=0,this.disabled=!1},events:["valueChanged"],getProperty:function(a,b,c){if("valueChanged"==c)return{name:"value",value:parseInt(b.currentValue)}},setProperty:function(a,b,c,d){"disabled"==b&&a.host.jqxProgressBar({disabled:d}),"value"==b&&a.host.jqxProgressBar({value:parseFloat(d)})}}),new b.jqwidgets.knockout({name:"jqxButton",disabled:!1,reset:function(){this.disabled=!1},getProperty:function(a,b,c){},setProperty:function(a,b,c,d){"disabled"==b&&a.host.jqxButton({disabled:d})}}),new b.jqwidgets.knockout({name:"jqxCheckBox",checked:!1,disabled:!1,reset:function(){this.checked=!1,this.disabled=!1},events:["change"],getProperty:function(a,b,c){if("change"==c)return{name:"checked",value:b.args.checked}},setProperty:function(a,b,c,d){"disabled"==b&&a.host.jqxCheckBox({disabled:d}),"checked"==b&&c!=d&&a.host.jqxCheckBox({checked:d})}}),new b.jqwidgets.knockout({name:"jqxRadioButton",checked:!1,disabled:!1,reset:function(){this.checked=!1,this.disabled=!1},events:["change"],getProperty:function(a,b,c){if("change"==c)return{name:"checked",value:b.args.checked}},setProperty:function(a,b,c,d){"disabled"==b&&a.host.jqxRadioButton({disabled:d}),"checked"==b&&c!=d&&a.host.jqxRadioButton({checked:d})}}),new b.jqwidgets.knockout({name:"jqxDateTimeInput",value:null,disabled:!1,reset:function(){this.value=null,this.disabled=!1},events:["valueChanged"],getProperty:function(a,b,c){if("valueChanged"==c)return{name:"value",value:b.args.date}},setProperty:function(a,b,c,d){"value"==b&&a.setDate(d),"disabled"==b&&a.host.jqxDateTimeInput({disabled:d})}}),new b.jqwidgets.knockout({name:"jqxCalendar",value:null,disabled:!1,reset:function(){this.value=null,this.disabled=!1},events:["valueChanged"],getProperty:function(a,b,c){if("valueChanged"==c)return{name:"value",value:b.args.date}},setProperty:function(a,b,c,d){"value"==b&&a.setDate(d),"disabled"==b&&a.host.jqxCalendar({disabled:d})}}),new b.jqwidgets.knockout({name:"jqxNumberInput",value:null,events:["valueChanged"],disabled:!1,reset:function(){this.value=null,this.disabled=!1},getProperty:function(a,b,c){if("valueChanged"==c)return{name:"value",value:a.val()}},setProperty:function(a,b,c,d){"value"==b&&a.host.jqxNumberInput("val",d),"disabled"==b&&a.host.jqxNumberInput({disabled:d})}}),new b.jqwidgets.knockout({name:"jqxMaskedInput",value:null,events:["valueChanged"],disabled:!1,reset:function(){this.value=null,this.disabled=!1},getProperty:function(a,b,c){if("valueChanged"==c)return{name:"value",value:a.val()}},setProperty:function(a,b,c,d){"value"==b&&a.host.jqxMaskedInput("val",d),"disabled"==b&&a.host.jqxMaskedInput({disabled:d})}}),new b.jqwidgets.knockout({name:"jqxListBox",source:null,disabled:!1,selectedIndex:-1,reset:function(){this.disabled=!1,this.selectedIndex=-1,this.source=null},events:["change"],getProperty:function(a,b,c){if("change"==c)return this.selectedIndex=a.selectedIndex,{name:"selectedIndex",value:a.selectedIndex}},setProperty:function(a,b,c,d){if("source"==b&&(a.source=d,a.refresh()),"disabled"==b&&(a.disabled=d,a._renderItems()),"selectedIndex"==b){var e=a.disabled;a.disabled=!1,a.selectIndex(d),a.disabled=e,e&&a._renderItems()}}}),new b.jqwidgets.knockout({name:"jqxDropDownList",source:null,disabled:!1,selectedIndex:-1,reset:function(){this.disabled=!1,this.selectedIndex=-1,this.source=null},events:["change"],getProperty:function(a,b,c){if("change"==c)return{name:"selectedIndex",value:a.selectedIndex}},setProperty:function(a,b,c,d){"source"==b&&a.host.jqxDropDownList({source:d}),"disabled"==b&&a.host.jqxDropDownList({disabled:d}),"selectedIndex"==b&&a.host.jqxDropDownList({selectedIndex:d})}}),new b.jqwidgets.knockout({name:"jqxComboBox",source:null,disabled:!1,selectedIndex:-1,reset:function(){this.disabled=!1,this.selectedIndex=-1,this.source=null},events:["change"],getProperty:function(a,b,c){if("change"==c)return{name:"selectedIndex",value:a.selectedIndex}},setProperty:function(a,b,c,d){"source"==b&&a.host.jqxComboBox({source:d}),"disabled"==b&&a.host.jqxComboBox({disabled:d}),"selectedIndex"==b&&a.host.jqxComboBox({selectedIndex:d})}}),new b.jqwidgets.knockout({name:"jqxInput",source:null,disabled:!1,value:"",reset:function(){this.disabled=!1,this.source=null},events:["change"],getProperty:function(a,b,c){if("change"==c)return{name:"value",value:a.host.val()}},setProperty:function(a,b,c,d){"source"==b&&a.host.jqxInput({source:d}),"disabled"==b&&a.host.jqxInput({disabled:d}),"value"==b&&a.host.jqxInput({value:d})}}),new b.jqwidgets.knockout({name:"jqxComplexInput",source:null,disabled:!1,value:"",reset:function(){this.disabled=!1,this.source=null},events:["change"],getProperty:function(a,b,c){if("change"==c)return{name:"value",value:a.host.val()}},setProperty:function(a,b,c,d){"source"==b&&a.host.jqxComplexInput({source:d}),"disabled"==b&&a.host.jqxComplexInput({disabled:d}),"value"==b&&a.host.jqxComplexInput({value:d})}}),new b.jqwidgets.knockout({name:"jqxFormattedInput",source:null,disabled:!1,value:"",reset:function(){this.disabled=!1,this.source=null},events:["change"],getProperty:function(a,b,c){if("change"==c)return{name:"value",value:a.host.val()}},setProperty:function(a,b,c,d){"source"==b&&a.host.jqxFormattedInput({source:d}),"disabled"==b&&a.host.jqxFormattedInput({disabled:d}),"value"==b&&a.host.jqxFormattedInput({value:d})}}),new b.jqwidgets.knockout({name:"jqxPasswordInput",source:null,disabled:!1,value:"",reset:function(){this.disabled=!1,this.source=null},events:["change"],getProperty:function(a,b,c){if("change"==c)return{name:"value",value:a.host.val()}},setProperty:function(a,b,c,d){"source"==b&&a.host.jqxPasswordInput({source:d}),"disabled"==b&&a.host.jqxPasswordInput({disabled:d}),"value"==b&&a.host.jqxPasswordInput({value:d})}}),new b.jqwidgets.knockout({name:"jqxTree",source:null,disabled:!1,reset:function(){this.disabled=!1,this.source=null},getProperty:function(a,b,c){},setProperty:function(a,b,c,d){"source"==b&&a.host.jqxTree({source:d}),"disabled"==b&&a.host.jqxTree({disabled:d})}}),new b.jqwidgets.knockout({name:"jqxTabs",disabled:!1,reset:function(){this.disabled=!1},getProperty:function(a,b,c){},setProperty:function(a,b,c,d){"disabled"==b&&a.host.jqxTabs({disabled:d})}}),new b.jqwidgets.knockout({name:"jqxWindow",disabled:!1,content:"",title:"",reset:function(){this.disabled=!1,this.title="",this.content=""},getProperty:function(a,b,c){},setProperty:function(a,b,c,d){"disabled"==b?a.host.jqxWindow({disabled:d}):"content"==b?a.host.jqxWindow("setContent",d):"title"==b&&a.host.jqxWindow({title:d})}}),new b.jqwidgets.knockout({name:"jqxNavigationBar",disabled:!1,reset:function(){this.disabled=!1},getProperty:function(a,b,c){},setProperty:function(a,b,c,d){"disabled"==b&&d!=this.disabled&&(this.disabled=d,a.host.jqxNavigationBar({disabled:d}))}}),new b.jqwidgets.knockout({name:"jqxMenu",source:null,disabled:!1,reset:function(){this.disabled=!1,this.source=null},getProperty:function(a,b,c){},setProperty:function(a,b,c,d){"source"==b&&a.host.jqxMenu({source:d}),"disabled"==b&&a.host.jqxMenu({disabled:d})}}),new b.jqwidgets.knockout({name:"jqxChart",source:null,disabled:!1,reset:function(){this.disabled=!1,this.source=null},getProperty:function(a,b,c){},setProperty:function(a,b,c,d){"source"==b&&(this.source=d,a.host.jqxChart({source:d})),"disabled"==b&&(this.disabled=d,a.host.jqxChart({disabled:d}))}}),new b.jqwidgets.knockout({name:"jqxDataTable",source:null,disabled:!1,reset:function(){this.disabled=!1,this.source=null},getProperty:function(a,b,c){},setProperty:function(a,b,c,d){"source"==b&&(this.source=d,a.host.jqxDataTable({source:d})),"disabled"==b&&(this.disabled=d,a.host.jqxDataTable({disabled:d}))}}),new b.jqwidgets.knockout({name:"jqxTreeGrid",source:null,disabled:!1,reset:function(){this.disabled=!1,this.source=null},getProperty:function(a,b,c){},setProperty:function(a,b,c,d){"source"==b&&(this.source=d,a.host.jqxTreeGrid({source:d})),"disabled"==b&&(this.disabled=d,a.host.jqxTreeGrid({disabled:d}))}}),new b.jqwidgets.knockout({name:"jqxKnob",value:0,disabled:!1,reset:function(){this.disabled=!1,this.source=null},getProperty:function(a,b,c){},setProperty:function(a,b,c,d){"value"==b&&(this.value=d,a.host.jqxKnob({value:d})),"disabled"==b&&(this.disabled=d,a.host.jqxKnob({disabled:d}))}}),new b.jqwidgets.knockout({name:"jqxScheduler",source:null,disabled:!1,reset:function(){this.disabled=!1,this.source=null},getProperty:function(a,b,c){},setProperty:function(a,b,c,d){"source"==b&&(this.source=d,a.host.jqxScheduler({source:d})),"disabled"==b&&(this.disabled=d,a.host.jqxScheduler({disabled:d}))}}),new b.jqwidgets.knockout({name:"jqxKanban",source:null,disabled:!1,reset:function(){this.disabled=!1,this.source=null},getProperty:function(a,b,c){},setProperty:function(a,b,c,d){"source"==b&&(this.source=d,a.host.jqxKanban({source:d})),"disabled"==b&&(this.disabled=d,a.host.jqxKanban({disabled:d}))}}),new b.jqwidgets.knockout({name:"jqxGrid",source:null,disabled:!1,selectedRowIndex:-1,reset:function(){this.disabled=!1,this.source=null,this.selectedRowIndex=-1},serialize:function(a,b){return!("source"!=b||!a.source||!a.source._source)&&a.source.records},events:["cellvaluechanged","cellselect","rowselect"],getProperty:function(c,d,e,f){if("cellvaluechanged"==e){var g=c.host.jqxGrid("getrowid",d.args.rowindex),h=c.host.jqxGrid("getrowdata",g),i=f.source;if(void 0!=i){var j={},k={},l=!1,m=!1;return i()[g]&&a.each(i()[g],function(a,c){j[a]=c,k[a]="",b.isObservable(c)&&!b.isComputed(c)&&(l=!0,c(h[a])),b.isObservable(c)&&b.isComputed(c)&&(m=!0)}),l?(j=h,i.replace&&i.replace(i()[g],j)):(j=h,i.replace&&(i.replace(i()[g],k),i.replace(i()[g],j))),m&&c.host.jqxGrid("updaterow",g,b.toJS(i)[g]),{name:"source",value:i}}}},setProperty:function(c,d,e,f){if("selectedRowIndex"==d&&c.host.jqxGrid("selectrow",f),"source"==d)if(null==this.source||null==f){if(this.source!=f){this.source=f;var g={localdata:f,datatype:"local"},h=new a.jqx.dataAdapter(g);c.host.jqxGrid({source:h})}}else{var g={localdata:f,datatype:"local"},h=new a.jqx.dataAdapter(g);if(h.dataBind(),!e.records||!h.records)return;var i=Math.max(e.records.length,h.records.length),j=Math.abs(e.records.length-h.records.length);if(0==j&&i>10)return void c.host.jqxGrid({source:h});j>1&&c.host.jqxGrid("beginupdate");for(var k=new Array,l=0;l<i;l++){var m=h.records[l];if(void 0==m){var n=c.host.jqxGrid("getrowid",l);k.push(n)}else{var o=void 0!=e.records[l];if(o){if(b.toJSON(m)!=b.toJSON(e.records[l])){if(void 0!=e.records[l].uid&&(m.uid=e.records[l].uid,b.toJSON(m)==b.toJSON(e.records[l])))continue;var n=c.host.jqxGrid("getrowid",l);c.host.jqxGrid("updaterow",n,m)}}else c.host.jqxGrid("addrow",null,m)}}k.length>0&&c.host.jqxGrid("deleterow",k),j>1&&c.host.jqxGrid("endupdate")}"disabled"==d&&c.host.jqxGrid({disabled:f})}}),new b.jqwidgets.knockout({name:"jqxBulletChart",pointer:{value:0},target:{value:0},disabled:!1,reset:function(){this.pointer.value=0,this.target.value=0,this.disabled=!1},getProperty:function(a,b,c){},setProperty:function(a,b,c,d){"pointer"==b&&a.host.jqxBulletChart({pointer:d}),"target"==b&&a.host.jqxBulletChart({target:d}),"disabled"==b&&a.host.jqxBulletChart({disabled:d})}})}(jqxBaseFramework,ko)}catch(a){var er=a}
-
+jQWidgets v12.0.1 (2021-Mar)
+Copyright (c) 2011-2021 jQWidgets.
+License: https://jqwidgets.com/license/
+*/
+/* eslint-disable */
+
+try{(function(k,c){c.jqwidgets=c.jqwidgets||{};c.jqwidgets.knockout=function(J){var K=this;var L={},I=J.name;L.init=function(Q,R,N,P){var M=c.utils.unwrapObservable(R());var T=c.toJS(M);if(J.reset){J.reset()}if(k.data(Q)[I]==undefined){var O=[];k(Q)[I]();widget=k.data(Q)[I].instance;k.each(J,function(V,W){if(widget.hasOwnProperty(V)&&T.hasOwnProperty(V)){if(!widget.koupdating){widget.koupdatingFromObservable=true;try{var X=false;if(J.serialize){if(J.serialize(widget,V)){if(c.toJSON(T[V])!=c.toJSON(J.serialize(widget,V))){J.setProperty(widget,V,widget[V],T[V])}X=true}}if(!X){if(c.toJSON(T[V])!=c.toJSON(widget[V])){J.setProperty(widget,V,widget[V],T[V])}}}catch(U){J.setProperty(widget,V,widget[V],T[V])}O[V]=V;widget.koupdatingFromObservable=false}}});var S={};k.each(T,function(U,V){if(O[U]==undefined){S[U]=T[U]}});widget.host[I](S)}widget=k.data(Q)[I].instance;widget.koupdatingFromObservable=false;widget.koupdating=false;if(J.events){k.each(J.events,function(){var U=this;k(Q).on(U+"."+Q.id,function(W){widget=k.data(Q)[I].instance;if(!widget.koupdatingFromObservable){var V=widget;V.koupdating=true;var Y=R();var X=J.getProperty(widget,W,U,M);if(X!=undefined){if(Y.hasOwnProperty(X.name)&&k.isFunction(Y[X.name])){if(c.isObservable(Y[X.name])&&Y[X.name].push){R(X.value)}else{Y[X.name](X.value)}}else{if(Y[X.name]){R(X.value)}}}V.koupdating=false}})})}};L.update=function(Q,R,O,P,N){var M=c.utils.unwrapObservable(R());var S=c.toJS(M);widget=k.data(Q)[I].instance;if(widget.koupdating){return}k.each(J,function(T,U){if(widget.hasOwnProperty(T)&&S.hasOwnProperty(T)){if(!widget.koupdating){widget.koupdatingFromObservable=true;var V=false;if(J.serialize){if(J.serialize(widget,T)){if(c.toJSON(S[T])!=c.toJSON(J.serialize(widget,T))){J.setProperty(widget,T,widget[T],S[T])}V=true}}if(!V){if(c.toJSON(S[T])!=c.toJSON(widget[T])){J.setProperty(widget,T,widget[T],S[T])}}widget.koupdatingFromObservable=false}}})};c.bindingHandlers[J.name]=L};var D=new c.jqwidgets.knockout({name:"jqxGauge",disabled:false,min:0,max:220,value:0,reset:function(){this.value=0;this.max=220;this.min=0;this.disabled=false},getProperty:function(J,K,I){},setProperty:function(I,J,K,L){if(J=="disabled"){I.host.jqxGauge({disabled:L})}if(J=="min"){I.host.jqxGauge({min:L})}if(J=="max"){I.host.jqxGauge({max:L})}if(J=="value"){I.host.jqxGauge({value:L})}}});var f=new c.jqwidgets.knockout({name:"jqxLinearGauge",disabled:false,min:0,max:220,value:0,reset:function(){this.value=0;this.max=220;this.min=0;this.disabled=false},getProperty:function(J,K,I){},setProperty:function(I,J,K,L){if(J=="disabled"){I.host.jqxLinearGauge({disabled:L})}if(J=="min"){I.host.jqxLinearGauge({min:L})}if(J=="max"){I.host.jqxLinearGauge({max:L})}if(J=="value"){I.host.jqxLinearGauge({value:L})}}});var A=new c.jqwidgets.knockout({name:"jqxSlider",disabled:false,min:0,max:10,value:0,reset:function(){this.value=0;this.max=10;this.min=0;this.disabled=false},events:["change"],getProperty:function(J,K,I){if(I=="change"){return{name:"value",value:K.args.value}}},setProperty:function(I,J,K,L){if(J=="disabled"){I.host.jqxSlider({disabled:L})}if(J=="min"){I.host.jqxSlider({min:parseFloat(L)})}if(J=="max"){I.host.jqxSlider({max:parseFloat(L)})}if(J=="value"){I.host.jqxSlider({value:parseFloat(L)})}}});var s=new c.jqwidgets.knockout({name:"jqxScrollBar",disabled:false,min:0,max:10,value:0,reset:function(){this.value=0;this.max=10;this.min=0;this.disabled=false},events:["valueChanged"],getProperty:function(J,K,I){if(I=="valueChanged"){return{name:"value",value:parseInt(K.currentValue)}}},setProperty:function(I,J,K,L){if(J=="disabled"){I.host.jqxScrollBar({disabled:L})}if(J=="min"){I.host.jqxScrollBar({min:parseFloat(L)})}if(J=="max"){I.host.jqxScrollBar({max:parseFloat(L)})}if(J=="value"){I.host.jqxScrollBar({value:parseFloat(L)})}}});var a=new c.jqwidgets.knockout({name:"jqxProgressBar",disabled:false,value:0,reset:function(){this.value=0;this.disabled=false},events:["valueChanged"],getProperty:function(J,K,I){if(I=="valueChanged"){return{name:"value",value:parseInt(K.currentValue)}}},setProperty:function(I,J,K,L){if(J=="disabled"){I.host.jqxProgressBar({disabled:L})}if(J=="value"){I.host.jqxProgressBar({value:parseFloat(L)})}}});var g=new c.jqwidgets.knockout({name:"jqxButton",disabled:false,reset:function(){this.disabled=false},getProperty:function(J,K,I){},setProperty:function(I,J,K,L){if(J=="disabled"){I.host.jqxButton({disabled:L})}}});var j=new c.jqwidgets.knockout({name:"jqxCheckBox",checked:false,disabled:false,reset:function(){this.checked=false;this.disabled=false},events:["change"],getProperty:function(J,K,I){if(I=="change"){return{name:"checked",value:K.args.checked}}},setProperty:function(I,J,K,L){if(J=="disabled"){I.host.jqxCheckBox({disabled:L})}if(J=="checked"){if(K!=L){I.host.jqxCheckBox({checked:L})}}}});var E=new c.jqwidgets.knockout({name:"jqxRadioButton",checked:false,disabled:false,reset:function(){this.checked=false;this.disabled=false},events:["change"],getProperty:function(J,K,I){if(I=="change"){return{name:"checked",value:K.args.checked}}},setProperty:function(I,J,K,L){if(J=="disabled"){I.host.jqxRadioButton({disabled:L})}if(J=="checked"){if(K!=L){I.host.jqxRadioButton({checked:L})}}}});var r=new c.jqwidgets.knockout({name:"jqxDateTimeInput",value:null,disabled:false,reset:function(){this.value=null;this.disabled=false},events:["valueChanged"],getProperty:function(J,K,I){if(I=="valueChanged"){return{name:"value",value:K.args.date}}},setProperty:function(I,J,K,L){if(J=="value"){I.setDate(L)}if(J=="disabled"){I.host.jqxDateTimeInput({disabled:L})}}});var G=new c.jqwidgets.knockout({name:"jqxCalendar",value:null,disabled:false,reset:function(){this.value=null;this.disabled=false},events:["valueChanged"],getProperty:function(J,K,I){if(I=="valueChanged"){return{name:"value",value:K.args.date}}},setProperty:function(I,J,K,L){if(J=="value"){I.setDate(L)}if(J=="disabled"){I.host.jqxCalendar({disabled:L})}}});var u=new c.jqwidgets.knockout({name:"jqxNumberInput",value:null,events:["valueChanged"],disabled:false,reset:function(){this.value=null;this.disabled=false},getProperty:function(J,K,I){if(I=="valueChanged"){return{name:"value",value:J.val()}}},setProperty:function(I,J,K,L){if(J=="value"){I.host.jqxNumberInput("val",L)}if(J=="disabled"){I.host.jqxNumberInput({disabled:L})}}});var m=new c.jqwidgets.knockout({name:"jqxMaskedInput",value:null,events:["valueChanged"],disabled:false,reset:function(){this.value=null;this.disabled=false},getProperty:function(J,K,I){if(I=="valueChanged"){return{name:"value",value:J.val()}}},setProperty:function(I,J,K,L){if(J=="value"){I.host.jqxMaskedInput("val",L)}if(J=="disabled"){I.host.jqxMaskedInput({disabled:L})}}});var d=new c.jqwidgets.knockout({name:"jqxListBox",source:null,disabled:false,selectedIndex:-1,reset:function(){this.disabled=false;this.selectedIndex=-1;this.source=null},events:["change"],getProperty:function(J,K,I){if(I=="change"){this.selectedIndex=J.selectedIndex;return{name:"selectedIndex",value:J.selectedIndex}}},setProperty:function(I,J,L,M){if(J=="source"){I.source=M;I.refresh()}if(J=="disabled"){I.disabled=M;I._renderItems()}if(J=="selectedIndex"){var K=I.disabled;I.disabled=false;I.selectIndex(M);I.disabled=K;if(K){I._renderItems()}}}});var w=new c.jqwidgets.knockout({name:"jqxDropDownList",source:null,disabled:false,selectedIndex:-1,reset:function(){this.disabled=false;this.selectedIndex=-1;this.source=null},events:["change"],getProperty:function(J,K,I){if(I=="change"){return{name:"selectedIndex",value:J.selectedIndex}}},setProperty:function(I,J,K,L){if(J=="source"){I.host.jqxDropDownList({source:L})}if(J=="disabled"){I.host.jqxDropDownList({disabled:L})}if(J=="selectedIndex"){I.host.jqxDropDownList({selectedIndex:L})}}});var l=new c.jqwidgets.knockout({name:"jqxComboBox",source:null,disabled:false,selectedIndex:-1,reset:function(){this.disabled=false;this.selectedIndex=-1;this.source=null},events:["change"],getProperty:function(J,K,I){if(I=="change"){return{name:"selectedIndex",value:J.selectedIndex}}},setProperty:function(I,J,K,L){if(J=="source"){I.host.jqxComboBox({source:L})}if(J=="disabled"){I.host.jqxComboBox({disabled:L})}if(J=="selectedIndex"){I.host.jqxComboBox({selectedIndex:L})}}});var y=new c.jqwidgets.knockout({name:"jqxInput",source:null,disabled:false,value:"",reset:function(){this.disabled=false;this.source=null},events:["change"],getProperty:function(J,K,I){if(I=="change"){return{name:"value",value:J.host.val()}}},setProperty:function(I,J,K,L){if(J=="source"){I.host.jqxInput({source:L})}if(J=="disabled"){I.host.jqxInput({disabled:L})}if(J=="value"){I.host.jqxInput({value:L})}}});var v=new c.jqwidgets.knockout({name:"jqxComplexInput",source:null,disabled:false,value:"",reset:function(){this.disabled=false;this.source=null},events:["change"],getProperty:function(J,K,I){if(I=="change"){return{name:"value",value:J.host.val()}}},setProperty:function(I,J,K,L){if(J=="source"){I.host.jqxComplexInput({source:L})}if(J=="disabled"){I.host.jqxComplexInput({disabled:L})}if(J=="value"){I.host.jqxComplexInput({value:L})}}});var e=new c.jqwidgets.knockout({name:"jqxFormattedInput",source:null,disabled:false,value:"",reset:function(){this.disabled=false;this.source=null},events:["change"],getProperty:function(J,K,I){if(I=="change"){return{name:"value",value:J.host.val()}}},setProperty:function(I,J,K,L){if(J=="source"){I.host.jqxFormattedInput({source:L})}if(J=="disabled"){I.host.jqxFormattedInput({disabled:L})}if(J=="value"){I.host.jqxFormattedInput({value:L})}}});var H=new c.jqwidgets.knockout({name:"jqxPasswordInput",source:null,disabled:false,value:"",reset:function(){this.disabled=false;this.source=null},events:["change"],getProperty:function(J,K,I){if(I=="change"){return{name:"value",value:J.host.val()}}},setProperty:function(I,J,K,L){if(J=="source"){I.host.jqxPasswordInput({source:L})}if(J=="disabled"){I.host.jqxPasswordInput({disabled:L})}if(J=="value"){I.host.jqxPasswordInput({value:L})}}});var F=new c.jqwidgets.knockout({name:"jqxTree",source:null,disabled:false,reset:function(){this.disabled=false;this.source=null},getProperty:function(J,K,I){},setProperty:function(I,J,K,L){if(J=="source"){I.host.jqxTree({source:L})}if(J=="disabled"){I.host.jqxTree({disabled:L})}}});var h=new c.jqwidgets.knockout({name:"jqxTabs",disabled:false,reset:function(){this.disabled=false},getProperty:function(J,K,I){},setProperty:function(I,J,K,L){if(J=="disabled"){I.host.jqxTabs({disabled:L})}}});var t=new c.jqwidgets.knockout({name:"jqxWindow",disabled:false,content:"",title:"",reset:function(){this.disabled=false;this.title="";this.content=""},getProperty:function(J,K,I){},setProperty:function(I,J,K,L){if(J=="disabled"){I.host.jqxWindow({disabled:L})}else{if(J=="content"){I.host.jqxWindow("setContent",L)}else{if(J=="title"){I.host.jqxWindow({title:L})}}}}});var x=new c.jqwidgets.knockout({name:"jqxNavigationBar",disabled:false,reset:function(){this.disabled=false},getProperty:function(J,K,I){},setProperty:function(I,J,K,L){if(J=="disabled"){if(L!=this.disabled){this.disabled=L;I.host.jqxNavigationBar({disabled:L})}}}});var q=new c.jqwidgets.knockout({name:"jqxMenu",source:null,disabled:false,reset:function(){this.disabled=false;this.source=null},getProperty:function(J,K,I){},setProperty:function(I,J,K,L){if(J=="source"){I.host.jqxMenu({source:L})}if(J=="disabled"){I.host.jqxMenu({disabled:L})}}});var z=new c.jqwidgets.knockout({name:"jqxChart",source:null,disabled:false,reset:function(){this.disabled=false;this.source=null},getProperty:function(J,K,I){},setProperty:function(I,J,K,L){if(J=="source"){this.source=L;I.host.jqxChart({source:L})}if(J=="disabled"){this.disabled=L;I.host.jqxChart({disabled:L})}}});var b=new c.jqwidgets.knockout({name:"jqxDataTable",source:null,disabled:false,reset:function(){this.disabled=false;this.source=null},getProperty:function(J,K,I){},setProperty:function(I,J,K,L){if(J=="source"){this.source=L;I.host.jqxDataTable({source:L})}if(J=="disabled"){this.disabled=L;I.host.jqxDataTable({disabled:L})}}});var p=new c.jqwidgets.knockout({name:"jqxTreeGrid",source:null,disabled:false,reset:function(){this.disabled=false;this.source=null},getProperty:function(J,K,I){},setProperty:function(I,J,K,L){if(J=="source"){this.source=L;I.host.jqxTreeGrid({source:L})}if(J=="disabled"){this.disabled=L;I.host.jqxTreeGrid({disabled:L})}}});var C=new c.jqwidgets.knockout({name:"jqxKnob",value:0,disabled:false,reset:function(){this.disabled=false;this.source=null},getProperty:function(J,K,I){},setProperty:function(I,J,K,L){if(J=="value"){this.value=L;I.host.jqxKnob({value:L})}if(J=="disabled"){this.disabled=L;I.host.jqxKnob({disabled:L})}}});var B=new c.jqwidgets.knockout({name:"jqxScheduler",source:null,disabled:false,reset:function(){this.disabled=false;this.source=null},getProperty:function(J,K,I){},setProperty:function(I,J,K,L){if(J=="source"){this.source=L;I.host.jqxScheduler({source:L})}if(J=="disabled"){this.disabled=L;I.host.jqxScheduler({disabled:L})}}});var o=new c.jqwidgets.knockout({name:"jqxKanban",source:null,disabled:false,reset:function(){this.disabled=false;this.source=null},getProperty:function(J,K,I){},setProperty:function(I,J,K,L){if(J=="source"){this.source=L;I.host.jqxKanban({source:L})}if(J=="disabled"){this.disabled=L;I.host.jqxKanban({disabled:L})}}});var n=new c.jqwidgets.knockout({name:"jqxGrid",source:null,disabled:false,selectedRowIndex:-1,reset:function(){this.disabled=false;this.source=null;this.selectedRowIndex=-1},serialize:function(J,I){if(I=="source"){if(J.source&&J.source._source){return J.source.records}}return false},events:["cellvaluechanged","cellselect","rowselect"],getProperty:function(M,K,O,N){if(O=="cellvaluechanged"){var L=M.host.jqxGrid("getrowid",K.args.rowindex);var S=M.host.jqxGrid("getrowdata",L);var J=N.source;if(J!=undefined){var R={};var I={};var Q=false;var P=false;if(J()[L]){k.each(J()[L],function(T,U){R[T]=U;I[T]="";if(c.isObservable(U)&&!c.isComputed(U)){Q=true;U(S[T])}if(c.isObservable(U)&&c.isComputed(U)){P=true}})}if(!Q){R=S;if(J.replace){J.replace(J()[L],I);J.replace(J()[L],R)}}else{R=S;if(J.replace){J.replace(J()[L],R)}}if(P){M.host.jqxGrid("updaterow",L,c.toJS(J)[L])}return{name:"source",value:J}}}},setProperty:function(L,S,R,J){if(S=="selectedRowIndex"){L.host.jqxGrid("selectrow",J)}if(S=="source"){if(this.source==null||J==null){if(this.source!=J){this.source=J;var I={localdata:J,datatype:"local"};var Q=new k.jqx.dataAdapter(I);L.host.jqxGrid({source:Q})}}else{var I={localdata:J,datatype:"local"};var Q=new k.jqx.dataAdapter(I);Q.dataBind();if(!R.records||!Q.records){return}var U=Math.max(R.records.length,Q.records.length);var P=Math.abs(R.records.length-Q.records.length);if(P==0){if(U>10){L.host.jqxGrid({source:Q});return}}if(P>1){L.host.jqxGrid("beginupdate")}var T=new Array();for(var N=0;N<U;N++){var O=Q.records[N];if(O==undefined){var K=L.host.jqxGrid("getrowid",N);T.push(K)}else{var M=R.records[N]!=undefined;if(M){if(c.toJSON(O)!=c.toJSON(R.records[N])){if(R.records[N].uid!=undefined){O.uid=R.records[N].uid;if(c.toJSON(O)==c.toJSON(R.records[N])){continue}}var K=L.host.jqxGrid("getrowid",N);L.host.jqxGrid("updaterow",K,O)}}else{L.host.jqxGrid("addrow",null,O)}}}if(T.length>0){L.host.jqxGrid("deleterow",T)}if(P>1){L.host.jqxGrid("endupdate")}}}if(S=="disabled"){L.host.jqxGrid({disabled:J})}}});var i=new c.jqwidgets.knockout({name:"jqxBulletChart",pointer:{value:0},target:{value:0},disabled:false,reset:function(){this.pointer.value=0;this.target.value=0;this.disabled=false},getProperty:function(J,K,I){},setProperty:function(I,J,K,L){if(J=="pointer"){I.host.jqxBulletChart({pointer:L})}if(J=="target"){I.host.jqxBulletChart({target:L})}if(J=="disabled"){I.host.jqxBulletChart({disabled:L})}}})}(jqxBaseFramework,ko))}catch(error){var er=error};
+

mercurial