1/*! jQuery UI integration for DataTables' Buttons
2 * © SpryMedia Ltd - datatables.net/license
3 */
4
5(function( factory ){
6	if ( typeof define === 'function' && define.amd ) {
7		// AMD
8		define( ['jquery', 'datatables.net-jqui', 'datatables.net-buttons'], function ( $ ) {
9			return factory( $, window, document );
10		} );
11	}
12	else if ( typeof exports === 'object' ) {
13		// CommonJS
14		var jq = require('jquery');
15		var cjsRequires = function (root, $) {
16			if ( ! $.fn.dataTable ) {
17				require('datatables.net-jqui')(root, $);
18			}
19
20			if ( ! $.fn.dataTable.Buttons ) {
21				require('datatables.net-buttons')(root, $);
22			}
23		};
24
25		if (typeof window === 'undefined') {
26			module.exports = function (root, $) {
27				if ( ! root ) {
28					// CommonJS environments without a window global must pass a
29					// root. This will give an error otherwise
30					root = window;
31				}
32
33				if ( ! $ ) {
34					$ = jq( root );
35				}
36
37				cjsRequires( root, $ );
38				return factory( $, root, root.document );
39			};
40		}
41		else {
42			cjsRequires( window, jq );
43			module.exports = factory( jq, window, window.document );
44		}
45	}
46	else {
47		// Browser
48		factory( jQuery, window, document );
49	}
50}(function( $, window, document, undefined ) {
51'use strict';
52var DataTable = $.fn.dataTable;
53
54
55
56$.extend(true, DataTable.Buttons.defaults, {
57	dom: {
58		collection: {
59			action: {
60				dropHtml: '<span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-s"/>'
61			},
62			button: {
63				active: 'dt-button-active'
64			}
65		},
66		container: {
67			className: 'dt-buttons ui-buttonset'
68		},
69		button: {
70			className: 'dt-button ui-button ui-corner-all',
71			disabled: 'ui-state-disabled',
72			active: 'ui-state-active',
73			liner: {
74				tag: '',
75				className: ''
76			}
77		},
78		split: {
79			action: {
80				tag: 'button',
81				className: 'dt-button-split-drop-button ui-button ui-corner-left'
82			},
83			dropdown: {
84				tag: 'button',
85				dropHtml: '<span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-s"/>',
86				className: 'dt-button-split-drop ui-button ui-corner-right'
87			},
88			wrapper: {
89				tag: 'div',
90				className: 'dt-button-split'
91			}
92		}
93	}
94});
95
96
97return DataTable;
98}));
99