Client Hub Project

This commit is contained in:
2023-01-15 18:40:32 -07:00
parent f69a937b1f
commit 924c903b3b
865 changed files with 51668 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,13 @@
/*!@license
* Infragistics.Web.ClientUI igCombo KnockoutJS extension 19.1.20
*
* Copyright (c) 2012-2019 Infragistics Inc.
*
* http://www.infragistics.com/
*
* Depends on:
* jquery-1.9.1.js
* ig.util.js
* ig.dataSource.js
*/
(function(factory){if(typeof define==="function"&&define.amd){define(["../modules/infragistics.ui.combo","knockout"],factory)}else{factory(jQuery,ko)}})(function($,ko){function selectItems(combo,selectedItems){var valueKey=combo.igCombo("option","valueKey"),allowCustomValue=combo.igCombo("option","allowCustomValue"),selectedValues=[],index,item,value;selectedItems=ko.utils.unwrapObservable(selectedItems);if(selectedItems){if(allowCustomValue&&!selectedItems.length){return}for(index=0;index<selectedItems.length;index++){item=selectedItems[index];if(typeof item==="function"){item=item()}if(typeof item==="object"){value=item[valueKey]}else{value=item}selectedValues.push(value)}combo.igCombo("value",selectedValues)}}function applyListItemsBindings(valueAccessor){var combo=valueAccessor().combo,$comboList=combo.igCombo("listItems"),options=valueAccessor().options,dataSource=ko.utils.unwrapObservable(valueAccessor().dataSource),i;if(dataSource){for(i=0;i<dataSource.length;i++){if(ko.isObservable(dataSource[i])){ko.applyBindingsToNode($comboList[i],{igComboItem:{combo:combo,value:dataSource[i],index:i,options:options}},dataSource[i])}}}}ko.bindingHandlers.igCombo={init:function(element,valueAccessor){var combo=$(element),options=valueAccessor(),dataSource=options.dataSource,selectedItems=options.selectedItems,dataSourceSubscription;combo.igCombo(options);ko.applyBindingsToNode(element,{igComboSelection:{selectedItems:selectedItems}},selectedItems);if(ko.isObservable(dataSource)){dataSourceSubscription=dataSource.subscribe(function(){combo.data("dataSourceUpdating",true)});ko.utils.domNodeDisposal.addDisposeCallback(element,function(){dataSourceSubscription.dispose()})}ko.applyBindingsToNode(combo.data("igCombo")._options.$dropDownCont[0],{igComboList:{combo:combo,options:options,dataSource:dataSource,selectedItems:selectedItems}},dataSource);ko.utils.registerEventHandler(element,"igcomboselectionchanged",function(evt,ui){var valueKey=ui.owner.options.valueKey,items=ui.items,selectedItems=valueAccessor().selectedItems,selectionType=valueAccessor().selectedItemType,selectedValues=[],item,itemData,firstItem,itemForSelection,index;if(items&&selectedItems&&ko.isObservable(selectedItems)){selectedItems=ko.utils.unwrapObservable(selectedItems);if(!selectionType){if(selectedItems.length>0){firstItem=selectedItems[0];if(typeof firstItem==="function"){firstItem=firstItem()}if(typeof firstItem==="object"){selectionType="object"}else{selectionType="primitive"}}else{selectionType="primitive"}}items=typeof items==="function"?items():items;for(index=0;index<items.length;index++){item=items[index];itemData=item.data;if(typeof itemData==="function"){itemData=itemData()}if(selectionType==="object"){itemForSelection=itemData}else if(selectionType==="primitive"){itemForSelection=itemData[valueKey]}if(typeof itemForSelection==="function"){itemForSelection=itemForSelection()}selectedValues.push(itemForSelection)}}if(ko.isObservable(valueAccessor().selectedItems)){valueAccessor().selectedItems(selectedValues)}})}};ko.bindingHandlers.igComboSelection={update:function(element,valueAccessor){selectItems($(element),valueAccessor().selectedItems)}};ko.bindingHandlers.igComboList={init:function(element,valueAccessor){applyListItemsBindings(valueAccessor)},update:function(element,valueAccessor){var combo=$(valueAccessor().combo),options=valueAccessor().options,dataSource=ko.utils.unwrapObservable(valueAccessor().dataSource),dropDownScroller=combo.data("igCombo")._options.$dropDownScrollCont,lastScrollTop=dropDownScroller?dropDownScroller.scrollTop():0;if(!!combo.data("dataSourceUpdating")){combo.removeData("dataSourceUpdating");combo.one("igcomboitemsrendered",function(){applyListItemsBindings(valueAccessor);selectItems(combo,valueAccessor().selectedItems)});combo.igCombo("option","dataSource",dataSource);if(options.virtualization){dropDownScroller.scrollTop(lastScrollTop-1)}}}};ko.bindingHandlers.igComboItem={update:function(element,valueAccessor){var combo=valueAccessor().combo,textKey=valueAccessor().options.textKey,valueKey=valueAccessor().options.valueKey,item,index,dsItem;if(valueKey===undefined&&textKey===undefined){return}index=valueAccessor().index;dsItem=valueAccessor().value;item=$(combo.igCombo("dropDown").find("li").eq(index));combo.data("igCombo")._updateItem(item,dsItem);combo.data("igCombo")._updateInputValues()}};ko.bindingHandlers.igComboVisible={update:function(element,valueAccessor){var visible=valueAccessor(),combo=$(element);if(!ko.isObservable(visible)){return}combo.igCombo("comboWrapper").css("display",visible()?"inline-block":"none")}};ko.bindingHandlers.igComboDisable={update:function(element,valueAccessor){var disabled=valueAccessor(),combo=$(element);if(!ko.isObservable(disabled)){return}combo.igCombo("option","disabled",disabled())}}});

View File

@ -0,0 +1,26 @@
/*!@license
* Infragistics.Web.ClientUI igDataChart KnockoutJS extension 19.1.20191.172
*
* Copyright (c) 2011-2019 Infragistics Inc.
*
* http://www.infragistics.com/
*
* Depends on:
* jquery-1.9.1.js
* jquery.ui.core.js
* jquery.ui.widget.js
* infragistics.util.js
* infragistics.ui.chart.js
* infragistics.dv.core.js
* infragistics.chart_piechart.js
* infragistics.chart_categorychart.js
* infragistics.chart_financialchart.js
* infragistics.chart_polarchart.js
* infragistics.chart_radialchart.js
* infragistics.chart_rangecategorychart.js
* infragistics.chart_scatterchart.js
* infragistics.dvcommonwidget.js
* infragistics.dataSource.js
* infragistics.util.js
*/
(function(factory){if(typeof define==="function"&&define.amd){define(["jquery","knockout","../modules/infragistics.ui.chart"],factory)}else{factory(jQuery,ko)}})(function($,ko){ko.bindingHandlers.igDataChart={init:function(element,valueAccessor){var options=$.extend(true,{},ko.utils.unwrapObservable(valueAccessor())),ds,i,addHandler,deleteHandler,rootItem,current;addHandler=function(data,index){var ds=options.dataSource,rootElem,current;rootElem=$(element).find("#rootElem");current=$("<li><ul></ul></li>");if(index===0){rootElem.prepend(current)}else if(index===ds.length-1){rootElem.append(current)}else{$($(rootElem).children()[index]).before(current)}$(element).igDataChart("notifyInsertItem",options.dataSource,index,data);ko.applyBindingsToNode(current[0],{igDataChartRecord:{value:ds[index],chartInstance:$(element),dataSourceInstance:ds}},ds[i])};deleteHandler=function(data,index){var ds=options.dataSource,rootElem;rootElem=$(element).find("#rootElem");if(index===0){$(rootElem).children().first().remove()}else if(index===ds.length){$(rootElem).children().last().remove()}else{$($(rootElem).children()[index]).remove()}$(element).igDataChart("notifyRemoveItem",options.dataSource,index,data)};if(ko.isObservable(options.dataSource)){ds=options.dataSource();options.dataSource.subscribeArrayChanged(addHandler,deleteHandler);options.dataSource=ko.utils.unwrapObservable(options.dataSource)}else{ds=options.dataSource}if(options.expectFunctions!==true){options.expectFunctions=true}$(element).igDataChart(options);rootItem=$("<ul id='rootElem'></ul>");$("<div style='display: none !important'></div>").appendTo(element).append(rootItem);for(i=0;i<ds.length;i++){current=$("<li><ul></ul></li>");rootItem.append(current);ko.applyBindingsToNode(current[0],{igDataChartRecord:{value:ds[i],chartInstance:$(element),dataSourceInstance:ds}},ds[i])}ko.utils.domNodeDisposal.addDisposeCallback(element,function(){$(element).igDataChart("destroy")})}};ko.bindingHandlers.igDataChartRecord={init:function(element,valueAccessor){var options=valueAccessor(),key,currItem,record=options.value;for(key in record){if(record.hasOwnProperty(key)&&ko.isObservable(record[key])){currItem=$("<li class='property'></li>");$(element).find("ul").append(currItem);ko.applyBindingsToNode(currItem[0],{igDataChartItem:{value:record[key],chartInstance:valueAccessor().chartInstance,dataSourceInstance:valueAccessor().dataSourceInstance}},record[key])}}}};ko.bindingHandlers.igDataChartItem={update:function(element,valueAccessor){var chart,ds,item,index;index=$(element).parent().parent().index();ds=valueAccessor().dataSourceInstance;chart=valueAccessor().chartInstance;item=ds[index];$(chart).igDataChart("notifySetItem",ds,index,item,item)}};ko.observableArray.fn.subscribeArrayChanged=function(addCallback,deleteCallback){var previousValue=null;this.subscribe(function(_previousValue){if(previousValue===null){previousValue=_previousValue.slice(0)}},undefined,"beforeChange");this.subscribe(function(latestValue){var delta=ko.utils.compareArrays(previousValue,latestValue,true),i;for(i=0;i<delta.length;i++){switch(delta[i].status){case"retained":break;case"deleted":if(deleteCallback){deleteCallback(delta[i].value,delta[i].index);previousValue.splice(delta[i].index,1)}break;case"added":if(addCallback){addCallback(latestValue[i],delta[i].index);previousValue.splice(delta[i].index,0,latestValue[i])}break}}})}});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,21 @@
/*!@license
* Infragistics.Web.ClientUI igTree KnockoutJS extension 19.1.20
*
* Copyright (c) 2011-2019 Infragistics Inc.
*
* http://www.infragistics.com/
*
* Depends on:
* jquery-1.9.1.js
* jquery.ui.core.js
* jquery.ui.widget.js
* jquery.ui.draggable.js
* jquery.ui.droppable.js
* infragistics.templating.js
* infragistics.dataSource.js
* infragistics.ui.shared.js
* infragistics.util.js
* infragistics.ui.tree-en.js
* infragistics.ui.tree.js
*/
(function(factory){if(typeof define==="function"&&define.amd){define(["../modules/infragistics.ui.tree","knockout"],factory)}else{factory(jQuery,ko)}})(function($,ko){ko.bindingHandlers.igTree={init:function(element,valueAccessor){var options=$.extend(true,{},ko.utils.unwrapObservable(valueAccessor())),ds=options.dataSource,addHandler,deleteHandler;addHandler=function(event,ui){if(ui.element.attr("data-path").split(ui.owner.options.pathSeparator).length<=1){ds.valueHasMutated();$(element).find(".ui-igtree-noderoot").each(function(index,node){ko.applyBindingsToNode(node,{igTreeNode:{value:ds()[index],bindings:options.bindings}},ds()[index])})}};deleteHandler=function(){ds.valueHasMutated()};options.dataSource=ko.utils.unwrapObservable(options.dataSource);options.nodeAdded=addHandler;options.nodeDeleted=deleteHandler;$(element).igTree(options);$(element).find(".ui-igtree-noderoot").each(function(index,node){ko.applyBindingsToNode(node,{igTreeNode:{value:ds()[index],bindings:options.bindings}},ds()[index])});ko.utils.domNodeDisposal.addDisposeCallback(element,function(){$(element).igTree("destroy")});return{controlsDescendantBindings:true}},update:function(element,valueAccessor){var options=ko.utils.unwrapObservable(valueAccessor()),ds=options.dataSource,tree=$(element);options.dataSource=ko.utils.unwrapObservable(options.dataSource);if(tree.find(".ui-igtree-noderoot").length!==ds().length){tree.igTree("option","dataSource",options.dataSource);tree.find(".ui-igtree-noderoot").each(function(index,node){ko.applyBindingsToNode(node,{igTreeNode:{value:ds()[index],bindings:options.bindings}},ds()[index])})}}};ko.bindingHandlers.igTreeNodeCollection={init:function(element,valueAccessor){var options=valueAccessor(),bindings=options.bindings,ds=options.value,children=$(element).children("li"),addHandler,deleteHandler;addHandler=function(event,ui){if(ui.element.attr("data-path").split(ui.owner.options.pathSeparator).length>1){$(element).children("li").each(function(index,node){ko.applyBindingsToNode(node,{igTreeNode:{value:ds()[index],bindings:bindings.bindings||bindings}},ds()[index])})}};deleteHandler=function(){if($(element).children("li").length!==ds().length){ds.valueHasMutated()}};$(element).closest(".ui-igtree").on("igtreenodeadded",addHandler);$(element).closest(".ui-igtree").on("igtreenodedeleted",deleteHandler);children.each(function(index,node){ko.applyBindingsToNode(node,{igTreeNode:{value:ds()[index],bindings:bindings.bindings||bindings}},ds()[index])})},update:function(element,valueAccessor){var options=valueAccessor(),children=$(element).children("li"),ds=options.value;if(children.length!==ds().length){$(element).empty();$(element).closest(".ui-igtree").igTree("addNode",ds(),$(element).parent("li"))}}};ko.bindingHandlers.igTreeNode={init:function(element,valueAccessor){var options=valueAccessor(),bindings=options.bindings,ds=options.value,children=$(element).children("ul");if(children.length>0){ko.applyBindingsToNode(children[0],{igTreeNodeCollection:{value:ds[bindings.childDataProperty],bindings:bindings}},ds[bindings.childDataProperty])}},update:function(element,valueAccessor){$(element).closest(".ui-igtree").igTree("applyChangesToNode",$(element),valueAccessor().value)}}});