• Register
  • Log In
  • Home
  • Quick Start
    • Configurator
    • Download YUI 3
  • Documentation
    • User Guides
    • Examples
    • API Docs
    • Environments
    • Tutorials
  • Community
    • Gallery
    • Blog
    • Forums
    • YUI Theater
    • Calendar
  • Contribute
    • YUI on GitHub »
    • File a Ticket
    • View Tickets
    • Dashboard
  • Other Projects
    • Shifter »
    • Yogi »
    • YUI 2
    • YUI Doc »
    • YUI Test
    • YUI Website
    • YUI Compressor »
    • YUI Builder »
    • YUI PHP Loader
    • Grid Builder »
    • Skin Builder »
  • YUI
  • >
  • Community
  • >
  • Gallery

Gallery

Modules

  • Home
  • Featured
  • Popular
  • New
  • All

Documentation

  • Yogi Documentation
  • Shifter Documentation
  • Developer Guide
  • Module Setup

Tag Cloud

Context Navigation

    Build Tag: gallery-2012.10.31-20-00

    Return to Query Builder

    YUI({
        //Last Gallery Build of this module
        gallery: 'gallery-2013.01.16-21-05'
    }).use('gallery-querybuilder', function(Y)
    {
    	var var_list =
    	[
    		{
    			name: 'url',
    			type: 'string',
    			text: 'URL',
    			validation: 'yiv-length:[,3000]'
    		},
    		{
    			name: 'impressions',
    			type: 'number',
    			text: 'Impressions (1000s)',
    			validation: 'yiv-integer'
    		},
    		{
    			name: 'ctr',
    			type: 'number',
    			text: 'Click-through rate (%)',
    			validation: 'yiv-decimal:[0,]'
    		},
    		{
    			name: 'flag',
    			type: 'select',
    			text: 'Flagged',
    			value_list:
    			[
    				{ value: "true",  text: 'True' },
    				{ value: "false", text: 'False' }
    			]
    		},
    		{
    			name: 'submission_status',
    			type: 'select',
    			text: 'Status',
    			value_list:
    			[
    				{ value: "I", text: 'Action Required' },
    				{ value: "S", text: 'Submitted' },
    				{ value: "A", text: 'Submission Accepted' },
    				{ value: "B", text: 'Submission Auto-Accepted' }
    			]
    		}
    	];
     
    	var ops =
    	{
    		string:
    		[
    			{ value: 'equal',       text: 'Is' },
    			{ value: 'contains',    text: 'Contains' },
    			{ value: 'starts-with', text: 'Starts with' },
    			{ value: 'ends-with',   text: 'Ends with' }
    		],
     
    		number:
    		[
    			{ value: 'equal',         text: '= Equals' },
    			{ value: 'less',          text: '< Less than' },
    			{ value: 'less-equal',    text: '<= Less than or equal to' },
    			{ value: 'greater',       text: '> Greater than' },
    			{ value: 'greater-equal', text: '>= Greater than or equal to' }
    		],
     
    		select:
    		[
    			'EQUALS'
    		]
    	};
     
    	var query = new Y.QueryBuilder(var_list, ops);
    	query.render('#query');
     
    });

    Build Output

    /home/y/libexec/ant/bin/ant all
    Buildfile: build.xml
         [echo] Starting Build For gallery-querybuilder
    
    clean:
    
    init:
        [mkdir] Created dir: /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-querybuilder/build_tmp
         [echo] Starting Build For gallery-querybuilder
    
    -lint-server:
         [echo] Starting Build For gallery-querybuilder
    
    -node:
         [echo] For faster builds, install Node.js.
    
    -concatdebug:
         [copy] Copying 4 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-querybuilder/build_tmp/ant
       [delete] Deleting directory /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-querybuilder/build_tmp/ant
    
    -registerdebug:
         [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-querybuilder/build_tmp
    
    -prependdebug:
    
    -appenddebug:
    
    builddebug:
    
    -createcore:
         [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-querybuilder/build_tmp
    
    -loggerregex:
    
    buildcore:
    
    -rollupjs:
    
    -concatskins:
         [copy] Copying 2 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-querybuilder/build_tmp/ant
       [delete] Deleting directory /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-querybuilder/build_tmp/ant
    [yuicompressor] Compressing /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-querybuilder/build_tmp/assets/skins/sam/gallery-querybuilder.css
    [yuicompressor] Compressed to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-querybuilder/build_tmp/assets/skins/sam/gallery-querybuilder.css
    
    -buildskins:
    
    -rollupcss:
    
    buildskins:
    
    -buildlangs:
    
    -rolluplangs:
    
    buildlangs:
    
    build:
    
    build-coverage:
         [echo] Creating coverage file for: /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-querybuilder/build_tmp/gallery-querybuilder.js
         [move] Moving 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-querybuilder/build_tmp
         [move] Moving 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-querybuilder/build_tmp
    
    minify:
    [yuicompressor] Compressing /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-querybuilder/build_tmp/gallery-querybuilder.js
    [yuicompressor] 
    [yuicompressor] [WARNING] Invalid hint syntax: use strict
    [yuicompressor] add("gallery-querybuilder",function(Y){ ---> "use strict" <--- ;var has_bubble_problem=(0 var  <--- i=0;i var  <--- i=0;i var  <--- new_index=this.row_list.length;var query_body
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] var new_index=this.row_list.length; ---> var  <--- query_body=Y.Node.create("")
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] "className",Y.FormManager.row_marker_class); ---> var  <--- error_row=Y.Node.create("")
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] );query_body.appendChild(error_row); ---> var  <--- error_cell=this._createContainer();error_cell.
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] appendChild(this._createContainer()); ---> var  <--- query_row=Y.Node.create("")
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] );query_body.appendChild(query_row); ---> var  <--- var_cell=this._createContainer();var_cell.
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] this.variableName(new_index))); ---> var  <--- var_menu=var_cell.one("select");var_menu
    [yuicompressor] 
    [yuicompressor] [WARNING] The variable var_menu has already been declared in the same scope...
    [yuicompressor] .variableName(new_index)));var  ---> var_menu <--- =var_cell.one("select");var_menu.
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] "change",changeVar,this,query_row); ---> var  <--- options=Y.Node.getDOMNode(var_menu)
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] getDOMNode(var_menu).options;for( ---> var  <--- i=0;i i <--- =0;i var  <--- control_cell=this._createContainer();control_cell.
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] );query_row.appendChild(control_cell); ---> var  <--- insert_control=control_cell.one("."+this.
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] ,insertRow,this,query_row);} ---> var  <--- remove_control=control_cell.one("."+this.
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] this.table.appendChild(query_body); ---> var  <--- obj={body:query_body,row:query_row
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] this.row_list[row_index].row; ---> var  <--- control_cell=this.row_list[row_index].control
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] ).size()>2){ ---> var  <--- child=query_row.get("children").item
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] ;child.remove(true);} ---> var  <--- var_menu=this.row_list[row_index].var_menu
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] this.row_list[row_index].var_menu; ---> var  <--- selected_var=this.var_list[var_menu.get(
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] [var_menu.get("selectedIndex")]; ---> var  <--- cells=[];if(selected_var.type
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] ._createContainer());}for( ---> var  <--- i=0;ithis.plugin_column_count){ ---> var  <--- col_span=1+cells.length;for(
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] =1+cells.length;for( ---> var  <--- i=0;i i <--- =0;i var  <--- row=this.row_list[i].row
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] );if(row!=query_row){ ---> var  <--- control=this.row_list[i].control
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] row_list[i].control;for( ---> var  <--- j=this.plugin_column_count;j var  <--- plugin=this.row_list[row_index].plugin
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] :true});returntrue;} ---> var  <--- query_body=this.row_list[row_index].body
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] ,this.variableName(i)); ---> var  <--- selected_var=this.var_list[var_menu.get(
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] {var result=[];for( ---> var  <--- i=0;i var  <--- row=this.row_list[i];var 
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] row=this.row_list[i]; ---> var  <--- plugin=row.plugin;if(plugin)
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] row.plugin;if(plugin){ ---> var  <--- list=plugin.toDatabaseQuery();for(
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] =plugin.toDatabaseQuery();for( ---> var  <--- j=0;j var  <--- options=Y.Node.getDOMNode(this.
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] this.op_menu).options;for( ---> var  <--- i=0;i var  <--- value_cell=this.qb._createContainer();
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] value_menu=value_cell.one("select"); ---> var  <--- options=Y.Node.getDOMNode(this.
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] getDOMNode(this.value_menu).options; ---> var  <--- value_list=var_config.value_list;for(var i
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] var value_list=var_config.value_list;for( ---> var  <--- i=0;i

    © 2006-2013 Yahoo! Inc. All rights reserved.
    All code on this site is licensed under the BSD License unless stated otherwise.
    About This Site · Security Contact Info