<commit_before>


Ergo.declare('Ergo.widgets.IconButton', 'Ergo.widgets.Button', {
	
	defaults: {
		cls: 'e-icon-button',
		
		content: {
			etype: 'icon'
		}
		
	}
	
}, 'icon-button');





Ergo.declare('Ergo.widgets.ToolboxHeader', 'Ergo.widgets.Box', {
	
	defaults: {
		cls: 'e-toolbox-header',
		
		components: {
			title: {
				cls: 'title',
			},
			toolbox: {
				cls: 'toolbox',
				layout: 'hbox',
				defaultItem: {
					etype: 'button-item'
				}
			}			
		}
		
	},
	
	
	$init: function(o) {
		this.$super(o);
		
		if(o.tools) {
			Ergo.smart_override(o.components.toolbox, {items: o.tools});
		}
	}
	
	
	
}, 'toolbox-header');





Ergo.declare('Ergo.widgets.GridPaginator', 'Ergo.widgets.Box', {
	
	defaults: {
		cls: 'e-grid-paginator',
		
		defaultItem: {
			etype: 'icon-button'
		},
		
		items: [{
			
		}, {
			
		}]
		
	}
	
	
	
}, 'grid-paginator');




Ergo.declare('Ergo.plugins.AjaxGridPaginator', 'Ergo.widgets.GridPaginator', {
	
	defaults: {
		
	}
	
	
	
}, 'ajax-grid-paginator');






Ergo.declare('Ergo.plugns.AjaxGridPanel', 'Ergo.widgets.Panel', {
	
	defaults: {
		
		components: {
			
			header: {
				etype: 'toolbox-header',
				autoBind: false
			},
			
			content: {
				etype: 'table-grid',
				
				content: {
					autoHeight: true						
				}
			},
			
			footer: {
				etype: 'ajax-grid-paginator',
				autoBind: false
			}
			
		}
		
	}
	
	
}, 'ajax-grid-panel');
<commit_msg>~ ajax-grid<commit_after>


Ergo.declare('Ergo.widgets.IconButton', 'Ergo.widgets.Button', {
	
	defaults: {
		cls: 'e-icon-button',
		
		components: {
			icon: {
				etype: 'icon'
			}
		},
		
		
		set: {
			'text': function(v) {
				this.icon.opt('text', v);
			},
			'icon': function(v) {
				this.icon.states.only(v);
			}
		}
		
	}
	
}, 'icon-button');





Ergo.declare('Ergo.widgets.ToolboxHeader', 'Ergo.widgets.Box', {
	
	defaults: {
		cls: 'e-toolbox-header',
		
		components: {
			title: {
				cls: 'title',
			},
			toolbox: {
				cls: 'toolbox',
				layout: 'hbox',
				defaultItem: {
					etype: 'button-item'
				}
			}			
		}
		
	},
	
	
	$init: function(o) {
		this.$super(o);
		
		if(o.tools) {
			Ergo.smart_override(o.components.toolbox, {items: o.tools});
		}
	}
	
	
	
}, 'toolbox-header');





Ergo.declare('Ergo.widgets.GridPaginator', 'Ergo.widgets.Box', {
	
	defaults: {
		cls: 'e-grid-paginator',
		
		defaultItem: {
			etype: 'icon-button'
		},
		
		items: ['<<', '<', {etype: 'text', text: 'Страница'}, {etype: 'text-input'}, '>', '>>']
		
	}
	
	
	
}, 'grid-paginator');




Ergo.declare('Ergo.plugins.AjaxGridPaginator', 'Ergo.widgets.GridPaginator', {
	
	defaults: {
		
	}
	
	
	
}, 'ajax-grid-paginator');






Ergo.declare('Ergo.plugns.AjaxGridPanel', 'Ergo.widgets.Panel', {
	
	defaults: {
		
		components: {
			
			header: {
				etype: 'toolbox-header',
				autoBind: false
			},
			
			content: {
				etype: 'table-grid',
				
				content: {
					autoHeight: true						
				}
			},
			
			footer: {
				etype: 'ajax-grid-paginator',
				autoBind: false,
				hidden: false
			}
			
		}
		
	}
	
	
}, 'ajax-grid-panel');

{'fraction_non_alphanumeric': 0.18741851368970014, 'fraction_numerical': 0.0, 'mean_word_length': 2.227129337539432, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1982399', 'n_tokens_mistral': 1608, 'n_tokens_neox': 1184, 'n_words': 158}