materialize-css
Advanced tools
Comparing version 0.100.1 to 0.100.2
@@ -5,3 +5,12 @@ Changelog | ||
## v0.100.1 (July 21st) | ||
## v0.100.2 (August 26, 2017) | ||
- Modal no longer errors on IE 11 | ||
- Fixes for Webpack and CommonJS loading of Materialize | ||
- Select displays properly inside Datepicker | ||
- Fix year display bug in date picker where year would change even when no new date had been selecteed | ||
- Fix for badge alignment in collapsible | ||
- Fix bug with multiple select where it would show an incorrect selection initially | ||
## v0.100.1 (July 21, 2017) | ||
- Fixed bug where modal triggers could not contain child elements | ||
@@ -12,3 +21,4 @@ - Fixed bug with right alignment option for dropdown | ||
## v0.100.0 (July 19th) | ||
## v0.100.0 (July 19, 2017) | ||
- :sparkles: **Rewrote Modal Plugin** :sparkles: | ||
@@ -38,3 +48,4 @@ - Modal open no longer initializes plugin | ||
## v0.99.0 (June 22th) | ||
## v0.99.0 (June 22, 2017) | ||
- Added support for jQuery 3 | ||
@@ -48,3 +59,4 @@ - Fixed dynamic textarea resize bug | ||
## v0.98.2 (April 14th) | ||
## v0.98.2 (April 14, 2017) | ||
- :no_good: **Autocomplete: renamed and moved options to `autocompleteOptions`** :no_good: | ||
@@ -59,3 +71,3 @@ - Fixed collapsible preselect bug | ||
## v0.98.1 (March 21st) | ||
## v0.98.1 (March 21, 2017) | ||
- Fixed various select bugs on mobile devices | ||
@@ -71,3 +83,3 @@ - Fixed small sideNav overlay bugs | ||
## v0.98.0 (January 25th) | ||
## v0.98.0 (January 25, 2017) | ||
- :no_good: **Standardized plugin option naming to camelcase (please check your plugin calls to make sure all the options are camelcase)** :no_good: | ||
@@ -74,0 +86,0 @@ - Added FABs in image cards |
module.exports = function(grunt) { | ||
var concatFile = 'temp/js/materialize_concat.js.map'; | ||
// configure the tasks | ||
grunt.initConfig({ | ||
var config = { | ||
// Copy | ||
@@ -112,6 +114,9 @@ copy: { | ||
'transform-es2015-classes', | ||
'transform-es2015-template-literals', | ||
'transform-es2015-template-literals' | ||
] | ||
}, | ||
bin: { | ||
options: { | ||
sourceMap: true | ||
}, | ||
files: { | ||
@@ -130,3 +135,3 @@ 'bin/materialize.js': 'temp/js/materialize_concat.js' | ||
browserSync: { | ||
bsFiles: ["bin/*.js", "bin/*.css", "!**/node_modules/**/*"], | ||
bsFiles: ["bin/*", "css/ghpages-materialize.css", "!**/node_modules/**/*"], | ||
options: { | ||
@@ -193,2 +198,6 @@ server: { | ||
// the files to concatenate | ||
options: { | ||
sourceMap: true, | ||
sourceMapStyle: 'link' | ||
}, | ||
src: [ | ||
@@ -588,4 +597,6 @@ "js/initial.js", | ||
}, | ||
}); | ||
}; | ||
grunt.initConfig(config); | ||
// load the tasks | ||
@@ -639,4 +650,8 @@ // grunt.loadNpmTasks('grunt-gitinfo'); | ||
grunt.task.registerTask("configureBabel", "configures babel options", function() { | ||
config.babel.bin.options.inputSourceMap = grunt.file.readJSON(concatFile); | ||
}); | ||
grunt.registerTask('jade_compile', ['jade', 'notify:jade_compile']); | ||
grunt.registerTask('js_compile', ['concat:temp', 'babel:bin', 'notify:js_compile', 'clean:temp']); | ||
grunt.registerTask('js_compile', ['concat:temp', 'configureBabel', 'babel:bin', 'notify:js_compile', 'clean:temp']); | ||
grunt.registerTask('sass_compile', ['sass:gh', 'sass:bin', 'postcss:gh', 'postcss:bin', 'notify:sass_compile']); | ||
@@ -643,0 +658,0 @@ grunt.registerTask('server', ['browserSync', 'notify:server']); |
@@ -0,0 +0,0 @@ // Custom Easing |
@@ -0,0 +0,0 @@ (function ($) { |
@@ -0,0 +0,0 @@ (function ($) { |
@@ -0,0 +0,0 @@ (function ($) { |
@@ -0,0 +0,0 @@ (function ($) { |
@@ -0,0 +0,0 @@ (function ($) { |
@@ -0,0 +0,0 @@ (function ($) { |
@@ -1100,2 +1100,3 @@ /*! | ||
// If there are years to select, add a dropdown menu. | ||
@@ -1154,6 +1155,10 @@ if ( numberYears ) { | ||
// Materialize modified | ||
if (override == "raw") | ||
return _.node( 'div', focusedYear ) | ||
// Materialize modified | ||
if (override === 'raw' && selectedObject != null) { | ||
return _.node( 'div', selectedObject.year ) | ||
} | ||
// Otherwise just return the year focused | ||
@@ -1160,0 +1165,0 @@ return _.node( 'div', focusedYear, settings.klass.year ) |
@@ -697,4 +697,4 @@ /*! | ||
// (http://stackoverflow.com/a/2684561). | ||
activeElement = getActiveElement() | ||
activeElement = activeElement && ( activeElement.type || activeElement.href ) | ||
activeElement = getActiveElement(); | ||
activeElement = activeElement && ( activeElement.type || activeElement.href ) && activeElement; | ||
@@ -701,0 +701,0 @@ // If it’s disabled or nothing inside is actively focused, re-focus the element. |
@@ -10,5 +10,4 @@ /*! | ||
(function(){ | ||
var $ = window.jQuery, | ||
$win = $(window), | ||
(function($){ | ||
var $win = $(window), | ||
$doc = $(document); | ||
@@ -65,3 +64,3 @@ | ||
// innerRadius = 80 on 12 hour clock | ||
innerRadius = 80, | ||
innerRadius = 70, | ||
tickRadius = 20, | ||
@@ -414,4 +413,11 @@ diameter = dialRadius * 2, | ||
if (!this.isAppended) { | ||
// Append popover to body | ||
this.popover.insertAfter(this.input); | ||
// Append popover to input by default | ||
var containerEl = document.querySelector(this.options.container); | ||
if (this.options.container && containerEl) { | ||
containerEl.appendChild(this.popover[0]); | ||
} else { | ||
this.popover.insertAfter(this.input); | ||
} | ||
if (this.options.twelvehour) { | ||
@@ -692,2 +698,2 @@ if (this.amOrPm === 'PM'){ | ||
}; | ||
}()); | ||
})(jQuery); |
@@ -0,0 +0,0 @@ (function ($) { |
@@ -672,6 +672,6 @@ (function ($) { | ||
$select.find("option:selected:not(:disabled)").each(function () { | ||
var index = $(this).index(); | ||
var index = this.index; | ||
toggleEntryFromArray(valuesSelected, index, $select); | ||
options.find("li").eq(index).find(":checkbox").prop("checked", true); | ||
options.find("li:not(.optgroup)").eq(index).find(":checkbox").prop("checked", true); | ||
}); | ||
@@ -678,0 +678,0 @@ } |
@@ -10,2 +10,8 @@ // Required for Meteor package, the use of window prevents export by Meteor | ||
if (typeof exports !== 'undefined' && !exports.nodeType) { | ||
if (typeof module !== 'undefined' && !module.nodeType && module.exports) { | ||
exports = module.exports = Materialize; | ||
} | ||
exports.default = Materialize; | ||
} | ||
@@ -54,3 +60,2 @@ /* | ||
/** | ||
@@ -169,1 +174,7 @@ * Generate approximated selector string for a jQuery object | ||
} | ||
if (Vel) { | ||
Materialize.Vel = Vel; | ||
} else { | ||
Materialize.Vel = Velocity; | ||
} |
// Check for jQuery. | ||
if (typeof(jQuery) === 'undefined') { | ||
var jQuery; | ||
// Check if require is a defined function. | ||
@@ -5,0 +4,0 @@ if (typeof(require) === 'function') { |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ (function(factory) { |
@@ -0,0 +0,0 @@ (function ($) { |
@@ -1,2 +0,2 @@ | ||
(function($) { | ||
(function($, Vel) { | ||
'use strict'; | ||
@@ -112,3 +112,3 @@ | ||
if (Modal._count === 1) { | ||
document.addEventListener('click', this.handleTriggerClick); | ||
document.body.addEventListener('click', this.handleTriggerClick); | ||
} | ||
@@ -124,3 +124,3 @@ this.$overlay[0].addEventListener('click', this.handleOverlayClickBound); | ||
if (Modal._count === 0) { | ||
document.removeEventListener('click', this.handleTriggerClick); | ||
document.body.removeEventListener('click', this.handleTriggerClick); | ||
} | ||
@@ -260,3 +260,3 @@ this.$overlay[0].removeEventListener('click', this.handleOverlayClickBound); | ||
} | ||
this.$overlay[0].remove(); | ||
this.$overlay[0].parentNode.removeChild(this.$overlay[0]); | ||
} | ||
@@ -323,3 +323,3 @@ }; | ||
this.$el[0].classList.remove('open'); | ||
document.body.style.overflow = null; | ||
document.body.style.overflow = ''; | ||
@@ -348,3 +348,3 @@ if (this.options.dismissible) { | ||
window.Materialize.Modal = Modal; | ||
Materialize.Modal = Modal; | ||
@@ -376,2 +376,2 @@ $.fn.modal = function(methodOrOptions) { | ||
})(jQuery); | ||
})(jQuery, Materialize.Vel); |
@@ -0,0 +0,0 @@ (function ($) { |
@@ -0,0 +0,0 @@ (function ($) { |
@@ -0,0 +0,0 @@ (function($) { |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ (function ($) { |
@@ -0,0 +0,0 @@ (function ($) { |
@@ -28,3 +28,4 @@ (function ($) { | ||
$indicator, | ||
index = prev_index = 0, | ||
index = 0, | ||
prev_index = 0, | ||
clicked = false, | ||
@@ -31,0 +32,0 @@ clickedTimeout, |
@@ -0,0 +0,0 @@ (function ($) { |
@@ -1,2 +0,2 @@ | ||
(function($) { | ||
(function($, Vel) { | ||
'use strict'; | ||
@@ -104,3 +104,3 @@ | ||
toast.el.classList.add('panning'); | ||
toast.el.style.transition = null; | ||
toast.el.style.transition = ''; | ||
toast.startingXPos = Toast._xPos(e); | ||
@@ -157,4 +157,4 @@ toast.time = Date.now(); | ||
toast.el.style.transition = 'transform .2s, opacity .2s'; | ||
toast.el.style.transform = null; | ||
toast.el.style.opacity = null; | ||
toast.el.style.transform = ''; | ||
toast.el.style.opacity = ''; | ||
} | ||
@@ -318,6 +318,6 @@ Toast._draggedToast = null; | ||
window.Materialize.Toast = Toast; | ||
window.Materialize.toast = function(message, displayLength, className, completeCallback) { | ||
Materialize.Toast = Toast; | ||
Materialize.toast = function(message, displayLength, className, completeCallback) { | ||
return new Toast(message, displayLength, className, completeCallback); | ||
} | ||
})(jQuery); | ||
}; | ||
})(jQuery, Materialize.Vel); |
@@ -0,0 +0,0 @@ (function ($) { |
@@ -0,0 +0,0 @@ (function ($) { |
@@ -0,0 +0,0 @@ /*! VelocityJS.org (1.2.3). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */ |
@@ -0,0 +0,0 @@ /*! |
@@ -6,3 +6,3 @@ { | ||
"homepage": "http://materializecss.com/", | ||
"version": "0.100.1", | ||
"version": "0.100.2", | ||
"main": "dist/js/materialize.js", | ||
@@ -9,0 +9,0 @@ "style": "dist/css/materialize.css", |
@@ -0,0 +0,0 @@ <p align="center"> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2287180
27888
95