Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mdbootstrap

Package Overview
Dependencies
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdbootstrap - npm Package Compare versions

Comparing version 4.5.11 to 4.5.12

.npmignore

0

CODE_OF_CONDUCT.md

@@ -0,0 +0,0 @@ # Contributor Covenant Code of Conduct

@@ -0,0 +0,0 @@ # Contributing Guide

@@ -0,0 +0,0 @@ ### Expected behavior

@@ -0,0 +0,0 @@ /*!

110

js/modules/forms-free.js

@@ -1,15 +0,17 @@

var _this = this;
'use strict';
($ => {
(function ($) {
const inputSelector = `${['text', 'password', 'email', 'url', 'tel', 'number', 'search', 'search-md'].map(selector => `input[type=${selector}]`).join(', ')}, textarea`;
var inputSelector = ['text', 'password', 'email', 'url', 'tel', 'number', 'search', 'search-md'].map(function (selector) {
return 'input[type=' + selector + ']';
}).join(', ') + ', textarea';
const textAreaSelector = '.materialize-textarea';
var textAreaSelector = '.materialize-textarea';
const updateTextFields = $input => {
var updateTextFields = function updateTextFields($input) {
const $labelAndIcon = $input.siblings('label, i');
const hasValue = $input.val().length;
const hasPlaceholder = $input.attr('placeholder');
const addOrRemove = `${hasValue || hasPlaceholder ? 'add' : 'remove'}Class`;
var $labelAndIcon = $input.siblings('label, i');
var hasValue = $input.val().length;
var hasPlaceholder = $input.attr('placeholder');
var addOrRemove = (hasValue || hasPlaceholder ? 'add' : 'remove') + 'Class';

@@ -19,9 +21,9 @@ $labelAndIcon[addOrRemove]('active');

const validateField = $input => {
var validateField = function validateField($input) {
if ($input.hasClass('validate')) {
const value = $input.val();
const noValue = !value.length;
const isValid = !$input[0].validity.badInput;
var value = $input.val();
var noValue = !value.length;
var isValid = !$input[0].validity.badInput;

@@ -33,4 +35,4 @@ if (noValue && isValid) {

const valid = $input.is(':valid');
const length = Number($input.attr('length')) || 0;
var valid = $input.is(':valid');
var length = Number($input.attr('length')) || 0;

@@ -48,10 +50,10 @@ if (valid && (!length || length > value.length)) {

const textAreaAutoResize = () => {
var textAreaAutoResize = function textAreaAutoResize() {
const $textarea = $(_this);
var $textarea = $(undefined);
if ($textarea.val().length) {
const $hiddenDiv = $('.hiddendiv');
const fontFamily = $textarea.css('font-family');
const fontSize = $textarea.css('font-size');
var $hiddenDiv = $('.hiddendiv');
var fontFamily = $textarea.css('font-family');
var fontSize = $textarea.css('font-size');

@@ -73,4 +75,4 @@ if (fontSize) {

$hiddenDiv.text(`${$textarea.val()}\n`);
const content = $hiddenDiv.html().replace(/\n/g, '<br>');
$hiddenDiv.text($textarea.val() + '\n');
var content = $hiddenDiv.html().replace(/\n/g, '<br>');
$hiddenDiv.html(content);

@@ -85,8 +87,8 @@

$(inputSelector).each((index, input) => {
$(inputSelector).each(function (index, input) {
const $this = $(input);
const $labelAndIcon = $this.siblings('label, i');
var $this = $(input);
var $labelAndIcon = $this.siblings('label, i');
updateTextFields($this);
const isValid = input.validity.badInput;
var isValid = input.validity.badInput;
if (isValid) {

@@ -98,3 +100,3 @@

$(document).on('focus', inputSelector, e => {
$(document).on('focus', inputSelector, function (e) {

@@ -104,8 +106,8 @@ $(e.target).siblings('label, i').addClass('active');

$(document).on('blur', inputSelector, e => {
$(document).on('blur', inputSelector, function (e) {
const $this = $(e.target);
const noValue = !$this.val();
const invalid = !e.target.validity.badInput;
const noPlaceholder = $this.attr('placeholder') === undefined;
var $this = $(e.target);
var noValue = !$this.val();
var invalid = !e.target.validity.badInput;
var noPlaceholder = $this.attr('placeholder') === undefined;

@@ -120,5 +122,5 @@ if (noValue && invalid && noPlaceholder) {

$(document).on('change', inputSelector, e => {
$(document).on('change', inputSelector, function (e) {
const $this = $(e.target);
var $this = $(e.target);
updateTextFields($this);

@@ -130,13 +132,13 @@ validateField($this);

$(document).on('reset', e => {
$(document).on('reset', function (e) {
const $formReset = $(e.target);
var $formReset = $(e.target);
if ($formReset.is('form')) {
const $formInputs = $formReset.find(inputSelector);
$formInputs.removeClass('valid').removeClass('invalid').each((index, input) => {
var $formInputs = $formReset.find(inputSelector);
$formInputs.removeClass('valid').removeClass('invalid').each(function (index, input) {
const $this = $(input);
const noDefaultValue = !$this.val();
const noPlaceholder = !$this.attr('placeholder');
var $this = $(input);
var noDefaultValue = !$this.val();
var noPlaceholder = !$this.attr('placeholder');
if (noDefaultValue && noPlaceholder) {

@@ -147,7 +149,7 @@ $this.siblings('label, i').removeClass('active');

$formReset.find('select.initialized').each((index, select) => {
$formReset.find('select.initialized').each(function (index, select) {
const $select = $(select);
const $visibleInput = $select.siblings('input.select-dropdown');
const defaultValue = $select.children('[selected]').val();
var $select = $(select);
var $visibleInput = $select.siblings('input.select-dropdown');
var defaultValue = $select.children('[selected]').val();

@@ -162,15 +164,15 @@ $select.val(defaultValue);

const $text = $('.md-textarea-auto');
var $text = $('.md-textarea-auto');
if ($text.length) {
let observe;
var observe = void 0;
if (window.attachEvent) {
observe = function (element, event, handler) {
observe = function observe(element, event, handler) {
element.attachEvent(`on${event}`, handler);
element.attachEvent('on' + event, handler);
};
} else {
observe = function (element, event, handler) {
observe = function observe(element, event, handler) {

@@ -183,3 +185,3 @@ element.addEventListener(event, handler, false);

const self = this;
var self = this;

@@ -189,3 +191,3 @@ function resize() {

self.style.height = 'auto';
self.style.height = `${self.scrollHeight}px`;
self.style.height = self.scrollHeight + 'px';
}

@@ -210,6 +212,6 @@

const $body = $('body');
var $body = $('body');
if (!$('.hiddendiv').first().length) {
const $hiddenDiv = $('<div class="hiddendiv common"></div>');
var $hiddenDiv = $('<div class="hiddendiv common"></div>');
$body.append($hiddenDiv);

@@ -216,0 +218,0 @@ }

@@ -0,0 +0,0 @@ /*

@@ -1,8 +0,10 @@

($ => {
'use strict';
const SCROLLING_NAVBAR_OFFSET_TOP = 50;
(function ($) {
$(window).on('scroll', () => {
var SCROLLING_NAVBAR_OFFSET_TOP = 50;
const $navbar = $('.navbar');
$(window).on('scroll', function () {
var $navbar = $('.navbar');
if ($navbar.length) {

@@ -9,0 +11,0 @@

@@ -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 @@ /*! VelocityJS.org (1.2.3). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */

@@ -0,0 +0,0 @@ /*!

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ /*

{
"name": "mdbootstrap",
"version": "4.5.11",
"version": "4.5.12",
"description": "Material Design for Bootstrap (MDB) is a powerful Material Design UI KIT for most popular HTML, CSS, and JS framework - Bootstrap.",

@@ -5,0 +5,0 @@ "main": "js/mdb.min.js",

@@ -0,0 +0,0 @@ [![Material Design for Bootstrap](https://mdbootstrap.com/img/Marketing/free/social/jquery/mdb-jquery-free.jpg)](https://mdbootstrap.com/material-design-for-bootstrap/)

Material Design for Bootstrap
version: MDB Free 4.5.11
version: MDB Free 4.5.12

@@ -5,0 +5,0 @@ Documentation:

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 too big to display

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 too big to display

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 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc