Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
release 3.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinparkerson committed Nov 10, 2015
1 parent ae151d3 commit 921e302
Show file tree
Hide file tree
Showing 8 changed files with 91 additions and 74 deletions.
4 changes: 2 additions & 2 deletions DETAILS.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Additional details to supplement the brief nature of the README file.

Cloning the repository ensures you can apply future updates to Fuel UX easily, but requires to you manage its [dependencies](#dependencies) on your own.

* Download a .zip archive of the [latest release](http://www.fuelcdn.com/fuelux/3.11.4/fuelux.zip).
* Download a .zip archive of the [latest release](http://www.fuelcdn.com/fuelux/3.11.5/fuelux.zip).

## AMD support

Expand All @@ -39,7 +39,7 @@ If using AMD (such as [RequireJS](http://requirejs.org)), reference the FuelUX d
```javascript
require.config({
paths: {
'fuelux': 'http://www.fuelcdn.com/fuelux/3.11.4/'
'fuelux': 'http://www.fuelcdn.com/fuelux/3.11.5/'
//...
}
});
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ Add `fuelux` class to the portion of the page using Fuel UX as seen [here](https
Ensure all the dependencies are included on the page (eg, such as using the CDN as shown below).
```
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<link href="//www.fuelcdn.com/fuelux/3.11.4/css/fuelux.min.css" rel="stylesheet">
<link href="//www.fuelcdn.com/fuelux/3.11.5/css/fuelux.min.css" rel="stylesheet">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.1/js/bootstrap.min.js"></script>
<script src="//www.fuelcdn.com/fuelux/3.11.4/js/fuelux.min.js"></script>
<script src="//www.fuelcdn.com/fuelux/3.11.5/js/fuelux.min.js"></script>
```

#### The code you want is in `dist`
A few ways available to install.

- Request files from [the Fuel UX CDN](http://www.fuelcdn.com/fuelux/3.11.4/)
- Request files from [the Fuel UX CDN](http://www.fuelcdn.com/fuelux/3.11.5/)
- Install with [NPM](https://www.npmjs.com/package/fuelux): `npm install fuelux`.
- [Download the latest release](https://github.com/exacttarget/fuelux/archive/3.4.0.zip).
- Clone the repo: `git clone https://github.com/exacttarget/fuelux.git`.
Expand Down
3 changes: 1 addition & 2 deletions dist/css/fuelux.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions dist/css/fuelux.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/fuelux.zip
Binary file not shown.
136 changes: 78 additions & 58 deletions dist/js/fuelux.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*!
* Fuel UX EDGE - Built 2015/10/27, 2:54:40 PM
* Previous release: v3.11.5
* Fuel UX v3.12.0
* Copyright 2012-2015 ExactTarget
* Licensed under the BSD-3-Clause license (https://github.com/ExactTarget/fuelux/blob/master/LICENSE)
*/
Expand Down Expand Up @@ -1355,22 +1354,28 @@
}

function _getContainer( element ) {
var containerElement, isWindow;
if ( element.attr( 'data-target' ) ) {
containerElement = element.attr( 'data-target' );
var targetSelector = element.attr( 'data-target' );
var isWindow = true;
var containerElement;

if ( !targetSelector ) {
// no selection so find the relevant ancestor
$.each( element.parents(), function( index, parentElement ) {
if ( $( parentElement ).css( 'overflow' ) !== 'visible' ) {
containerElement = parentElement;
isWindow = false;
return false;
}
} );
} else if ( targetSelector !== 'window' ) {
containerElement = $( targetSelector );
isWindow = false;
} else {
containerElement = window;
isWindow = true;
}

$.each( element.parents(), function( index, value ) {
if ( $( value ).css( 'overflow' ) !== 'visible' ) {
containerElement = value;
isWindow = false;
return false;
}
} );
// fallback to window
if ( isWindow ) {
containerElement = window;
}

return {
overflowElement: $( containerElement ),
Expand Down Expand Up @@ -2114,13 +2119,16 @@
this.$element = $( element );
this.options = $.extend( {}, $.fn.search.defaults, options );

if ( this.$element.attr( 'data-searchOnKeyPress' ) === 'true' ) {
this.options.searchOnKeyPress = true;
}

this.$button = this.$element.find( 'button' );
this.$input = this.$element.find( 'input' );
this.$icon = this.$element.find( '.glyphicon' );

this.$button.on( 'click.fu.search', $.proxy( this.buttonclicked, this ) );
this.$input.on( 'keydown.fu.search', $.proxy( this.keypress, this ) );
this.$input.on( 'keyup.fu.search', $.proxy( this.keypressed, this ) );
this.$input.on( 'keyup.fu.search', $.proxy( this.keypress, this ) );

this.activeSearch = '';
};
Expand Down Expand Up @@ -2166,52 +2174,40 @@

action: function() {
var val = this.$input.val();
var inputEmptyOrUnchanged = ( val === '' || val === this.activeSearch );

if ( this.activeSearch && inputEmptyOrUnchanged ) {
this.clear();
} else if ( val ) {
if ( val && val.length > 0 ) {
this.search( val );
} else {
this.clear();
}
},

buttonclicked: function( e ) {
e.preventDefault();
if ( $( e.currentTarget ).is( '.disabled, :disabled' ) ) return;
this.action();
},

keypress: function( e ) {
if ( e.which === 13 ) {
e.preventDefault();
if ( this.$element.hasClass( 'searched' ) ) {
this.clear();
} else {
this.action();
}
},

keypressed: function( e ) {
var remove = 'glyphicon-remove';
var search = 'glyphicon-search';
var val;
keypress: function( e ) {
var ENTER_KEY_CODE = 13;
var TAB_KEY_CODE = 9;
var ESC_KEY_CODE = 27;

if ( e.which === 13 ) {
if ( e.which === ENTER_KEY_CODE ) {
e.preventDefault();
this.action();
} else if ( e.which === 9 ) {
} else if ( e.which === TAB_KEY_CODE ) {
e.preventDefault();
} else {
val = this.$input.val();

if ( val !== this.activeSearch || !val ) {
this.$icon.removeClass( remove ).addClass( search );
if ( val ) {
this.$element.removeClass( 'searched' );
} else if ( this.options.clearOnEmpty ) {
this.clear();
}

} else {
this.$icon.removeClass( search ).addClass( remove );
}

} else if ( e.which === ESC_KEY_CODE ) {
e.preventDefault();
this.clear();
} else if ( this.options.searchOnKeyPress ) {
// search on other keypress
this.action();
}
},

Expand Down Expand Up @@ -2253,7 +2249,8 @@
};

$.fn.search.defaults = {
clearOnEmpty: false
clearOnEmpty: false,
searchOnKeyPress: false
};

$.fn.search.Constructor = Search;
Expand Down Expand Up @@ -3100,13 +3097,16 @@
this.populate( this.$element );
},

populate: function populate( $el ) {
populate: function populate( $el, isBackgroundProcess ) {
var self = this;
var $parent = ( $el.hasClass( 'tree' ) ) ? $el : $el.parent();
var loader = $parent.find( '.tree-loader:eq(0)' );
var treeData = $parent.data();
isBackgroundProcess = isBackgroundProcess || false; // no user affordance needed (ex.- "loading")

loader.removeClass( 'hide hidden' ); // hide is deprecated
if ( isBackgroundProcess === false ) {
loader.removeClass( 'hide hidden' ); // hide is deprecated
}
this.options.dataSource( treeData ? treeData : {}, function( items ) {
loader.addClass( 'hidden' );

Expand Down Expand Up @@ -3434,9 +3434,26 @@
}

}
},

// This refreshes the children of a folder. Please destroy and re-initilize for "root level" refresh.
// The data of the refreshed folder is not updated. This control's architecture only allows updating of children.
// Folder renames should probably be handled directly on the node.
refreshFolder: function refreshFolder( $el ) {
var $treeFolder = $el.closest( '.tree-branch' );
var $treeFolderChildren = $treeFolder.find( '.tree-branch-children' );
$treeFolderChildren.eq( 0 ).empty();

if ( $treeFolder.hasClass( 'tree-open' ) ) {
this.populate( $treeFolderChildren, false );
} else {
this.populate( $treeFolderChildren, true );
}

this.$element.trigger( 'refreshedFolder.fu.tree', $treeFolder.data() );
}
};

};

// ALIASES

Expand Down Expand Up @@ -5014,7 +5031,9 @@
this.$filters.selectlist();
this.$pageSize.selectlist();
this.$primaryPaging.find( '.combobox' ).combobox();
this.$search.search();
this.$search.search( {
searchOnKeyPress: this.options.searchOnKeyPress
} );

this.$filters.on( 'changed.fu.selectlist', function( e, value ) {
self.$element.trigger( 'filtered.fu.repeater', value );
Expand Down Expand Up @@ -5741,7 +5760,8 @@
defaultView: -1, //should be a string value. -1 means it will grab the active view from the view controls
dropPagingCap: 10,
staticHeight: -1, //normally true or false. -1 means it will look for data-staticheight on the element
views: null //can be set to an object to configure multiple views of the same type
views: null, //can be set to an object to configure multiple views of the same type,
searchOnKeyPress: false
};

$.fn.repeater.viewTypes = {};
Expand Down Expand Up @@ -6016,16 +6036,16 @@
} else {
var labelText = this.viewOptions.list_actions.label || '';

var $labelOverlay = $( '<div class="repeater-list-heading empty">' + labelText + '</div>' );
var $labelOverlay = $( '<div class="repeater-list-heading">' + labelText + '</div>' );

// repeater-list.less:302 has `margin-left: -9px;` which shifts this over and makes it not actually cover what it is supposed to cover. Make it wider to compensate.
var negative_maring_accomodation = 9;
$labelOverlay.data( 'forced-width', this.list_actions_width + negative_maring_accomodation );
var negative_margin_accomodation = 9;
$labelOverlay.data( 'forced-width', this.list_actions_width + negative_margin_accomodation );

var $th = $( '<th>' + labelText + '</th>' );
$th.append( $labelOverlay );

$actionsColumn.find( 'thead tr' ).addClass( 'empty-heading' ).append( $th );
$actionsColumn.find( 'thead tr' ).addClass( 'empty-heading' ).html( $th );
}

// Create Actions dropdown for each cell in actions table
Expand Down
11 changes: 5 additions & 6 deletions dist/js/fuelux.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"postinstall": "node postinstall.js"
},
"title": "Fuel UX",
"version": "3.11.5",
"version": "3.12.0",
"volo": {
"baseDir": "lib",
"dependencies": {
Expand Down

0 comments on commit 921e302

Please sign in to comment.