Files
.Data
.vscode
Archive
.vscode
ApiControllers
Controllers
Models
Repositories
Services
Views
wwwroot
igniteui
css
js
extensions
i18n
modules
encoding
i18n
infragistics.barcode_core.js
infragistics.barcode_qrcodebarcode.js
infragistics.bulletgraph.js
infragistics.categorychart.js
infragistics.datachart_annotation.js
infragistics.datachart_category.js
infragistics.datachart_categorycore.js
infragistics.datachart_core.js
infragistics.datachart_domainChart.js
infragistics.datachart_extendedaxes.js
infragistics.datachart_extendedfinancial.js
infragistics.datachart_financial.js
infragistics.datachart_interactivity.js
infragistics.datachart_polar.js
infragistics.datachart_radial.js
infragistics.datachart_rangecategory.js
infragistics.datachart_scatter.js
infragistics.datachart_shape.js
infragistics.datachart_stacked.js
infragistics.datachart_verticalcategory.js
infragistics.datachart_visualdata.js
infragistics.datasource.js
infragistics.documents.core_core.js
infragistics.documents.core_openxml.js
infragistics.doughnutchart.js
infragistics.dv_core.js
infragistics.dv_dataseriesadapter.js
infragistics.dv_datasource.js
infragistics.dv_description.js
infragistics.dv_geo.js
infragistics.dv_geometry.js
infragistics.dv_interactivity.js
infragistics.dv_jquerydom.js
infragistics.dv_opd.js
infragistics.dv_visualdata.js
infragistics.dvcommonwidget.js
infragistics.excel_core.js
infragistics.excel_functions.js
infragistics.excel_serialization_biff8.js
infragistics.excel_serialization_openxml.js
infragistics.ext_collections.js
infragistics.ext_collectionsextended.js
infragistics.ext_core.js
infragistics.ext_io.js
infragistics.ext_text.js
infragistics.ext_threading.js
infragistics.ext_ui.js
infragistics.ext_web.js
infragistics.ext_xml.js
infragistics.financialchart.js
infragistics.funnelchart.js
infragistics.geographicmap_core.js
infragistics.gridexcelexporter.js
infragistics.legend.js
infragistics.lineargauge.js
infragistics.olap.js
infragistics.olapdatasource.doc.js
infragistics.olapflatdatasource.js
infragistics.olapxmladatasource.js
infragistics.piechart.js
infragistics.radialgauge.js
infragistics.radialmenu.js
infragistics.scheduler.core.js
infragistics.shapechart.js
infragistics.sparkline.js
infragistics.spreadsheet.js
infragistics.templating.js
infragistics.ui.barcode.js
infragistics.ui.basechart.js
infragistics.ui.bulletgraph.js
infragistics.ui.categorychart.js
infragistics.ui.chart.js
infragistics.ui.chart.template.js
infragistics.ui.chartlegend.js
infragistics.ui.colorpicker.js
infragistics.ui.colorpickersplitbutton.js
infragistics.ui.combo.js
infragistics.ui.dialog.js
infragistics.ui.doughnutchart.js
infragistics.ui.editors.js
infragistics.ui.financialchart.js
infragistics.ui.funnelchart.js
infragistics.ui.grid.appendrowsondemand.js
infragistics.ui.grid.cellmerging.js
infragistics.ui.grid.columnfixing.js
infragistics.ui.grid.columnmoving.js
infragistics.ui.grid.featurechooser.js
infragistics.ui.grid.filtering.js
infragistics.ui.grid.framework.js
infragistics.ui.grid.groupby.js
infragistics.ui.grid.hiding.js
infragistics.ui.grid.hierarchical.js
infragistics.ui.grid.multicolumnheaders.js
infragistics.ui.grid.paging.js
infragistics.ui.grid.resizing.js
infragistics.ui.grid.responsive.js
infragistics.ui.grid.rowselectors.js
infragistics.ui.grid.selection.js
infragistics.ui.grid.shared.js
infragistics.ui.grid.sorting.js
infragistics.ui.grid.summaries.js
infragistics.ui.grid.tooltips.js
infragistics.ui.grid.updating.js
infragistics.ui.htmleditor.js
infragistics.ui.layoutmanager.js
infragistics.ui.lineargauge.js
infragistics.ui.map.js
infragistics.ui.map.template.js
infragistics.ui.notifier.js
infragistics.ui.pivot.shared.js
infragistics.ui.pivotdataselector.js
infragistics.ui.pivotgrid.js
infragistics.ui.pivotview.js
infragistics.ui.popover.js
infragistics.ui.qrcodebarcode.js
infragistics.ui.radialgauge.js
infragistics.ui.radialmenu.js
infragistics.ui.rating.js
infragistics.ui.scheduler.core.js
infragistics.ui.scheduler.js
infragistics.ui.scroll.js
infragistics.ui.shapechart.js
infragistics.ui.shared.js
infragistics.ui.sparkline.js
infragistics.ui.splitbutton.js
infragistics.ui.splitter.js
infragistics.ui.spreadsheet.js
infragistics.ui.tilemanager.js
infragistics.ui.toolbar.js
infragistics.ui.toolbarbutton.js
infragistics.ui.tree.js
infragistics.ui.treegrid.columnfixing.js
infragistics.ui.treegrid.columnmoving.js
infragistics.ui.treegrid.filtering.js
infragistics.ui.treegrid.hiding.js
infragistics.ui.treegrid.js
infragistics.ui.treegrid.multicolumnheaders.js
infragistics.ui.treegrid.paging.js
infragistics.ui.treegrid.resizing.js
infragistics.ui.treegrid.rowselectors.js
infragistics.ui.treegrid.selection.js
infragistics.ui.treegrid.sorting.js
infragistics.ui.treegrid.tooltips.js
infragistics.ui.treegrid.updating.js
infragistics.ui.upload.js
infragistics.ui.validator.js
infragistics.ui.videoplayer.js
infragistics.ui.widget.js
infragistics.ui.zoombar.js
infragistics.ui.zoomslider.js
infragistics.undo.js
infragistics.util.jquery.js
infragistics.util.js
infragistics.xml.js
infragistics.zoomslider_core.js
infragistics.core.js
infragistics.dv.js
infragistics.excel-bundled.js
infragistics.loader.js
infragistics.lob.js
infragistics.scheduler-bundled.js
infragistics.spreadsheet-bundled.js
images
js
styles
.editorconfig
ApiLoggingMiddleware.cs
OI.Metrology.Archive.csproj
Program.cs
appsettings.Development.json
appsettings.json
compilerconfig.json
compilerconfig.json.defaults
Client
ClientHub
Server
Shared
Tests
.editorconfig
.gitignore
OI-Metrology.sln
README.md
azure-pipelines-client-development.yml
azure-pipelines-server-development.yml
package.json
oi-metrology/Archive/wwwroot/igniteui/js/modules/infragistics.ui.toolbarbutton.js
2022-07-26 09:34:09 -07:00

16 lines
3.7 KiB
JavaScript

/*!@license
* Infragistics.Web.ClientUI ToolbarButton 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
* infragistics.util.js
* infragistics.util.jquery.js
* infragistics.ui.shared.js
*/
(function(factory){if(typeof define==="function"&&define.amd){define(["jquery","jquery-ui","./infragistics.util","./infragistics.util.jquery","./infragistics.ui.shared"],factory)}else{return factory(jQuery)}})(function($){$.widget("ui.igToolbarButton",$.ui.igButton,{options:{allowToggling:true,isSelected:false},css:{toolbarButtonWidget:"ui-igtoolbarbutton"},events:{activating:"activating",activated:"activated",deactivating:"deactivating",deactivated:"deactivated"},_setOption:function(option,value){if(this.options[option]===value){return}$.ui.igButton.prototype._setOption.apply(this,arguments)},_create:function(){$.ui.igButton.prototype._create.apply(this);this._setupElement();this._attachToolbarBtnEvents()},_setupElement:function(){this.element.addClass(this.css.toolbarButtonWidget).attr("tabindex","1");if(this.options.isSelected){this.element.addClass(this.options.css.buttonActiveClasses)}},_onBlur:function(event){var noCancel,o=this.options;if(!o.disabled){noCancel=this._trigger("blur",event);if(noCancel){this.element.removeClass(o.css.buttonFocusClasses);if(!o.allowToggling){this.element.removeClass(o.css.buttonActiveClasses)}}}},_onMouseDown:function(event){var noCancel,e=this.element,o=this.options;if(!o.disabled){noCancel=this._trigger("mousedown",event);if(noCancel){e.removeClass(o.css.buttonHoverClasses);if(!o.allowToggling){e.addClass(o.css.buttonActiveClasses)}}}},_onMouseUp:function(event){var noCancel,o=this.options;if(!o.disabled){noCancel=this._trigger("mouseup",event);if(noCancel){this.element.removeClass(o.css.buttonHoverClasses);if(!o.allowToggling){this.element.removeClass(o.css.buttonActiveClasses)}}}},_onEnterKey:function(e){if(e.keyCode!==$.ui.keyCode.ENTER){return}this.element.mousedown()},_triggerActivating:function(event){var args={owner:this};return this._trigger(this.events.activating,event,args)},_triggerActivated:function(event){var args={owner:this};return this._trigger(this.events.activated,event,args)},_triggerDeactivating:function(event){var args={owner:this};return this._trigger(this.events.deactivating,event,args)},_triggerDeactivated:function(event){var args={owner:this};return this._trigger(this.events.deactivated,event,args)},_attachToolbarBtnEvents:function(){var noCancel,o=this.options,self=this;this.element.click(function(e){if(o.allowToggling){if(o.isSelected){noCancel=self._triggerDeactivating(e);if(noCancel){self.deactivate(e);self.element.addClass(o.css.buttonHoverClasses)}}else{noCancel=self._triggerActivating(e);if(noCancel){self.activate(e)}}}});this.element.on("keypress",$.proxy(this._onEnterKey,this))},toggle:function(){var o=this.options;if(o.disabled===true||o.allowToggling===false){return}o.isSelected=!o.isSelected;this.element.toggleClass(o.css.buttonActiveClasses)},activate:function(event){var o=this.options;if(o.disabled===true||o.allowToggling===false){return}o.isSelected=true;this.element.addClass(o.css.buttonActiveClasses);if(event){this._triggerActivated(event)}},deactivate:function(event){var o=this.options;if(o.disabled===true||o.allowToggling===false){return}o.isSelected=false;this.element.removeClass(o.css.buttonActiveClasses).removeClass(o.css.buttonFocusClasses);if(event){this._triggerDeactivated(event)}},widget:function(){return this.element},destroy:function(){$.ui.igButton.prototype.destroy.call(this);this.element.off().removeClass("")}});$.extend($.ui.igToolbarButton,{version:"19.1.20"});return $});