mdb-ui-kit/dist/js/bootstrap-material-design.min.js

1 line
34 KiB
JavaScript
Raw Normal View History

(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?t(require('bootstrap/js/src/alert'),require('bootstrap/js/src/button'),require('bootstrap/js/src/carousel'),require('bootstrap/js/src/collapse'),require('bootstrap/js/src/modal'),require('bootstrap/js/src/popover'),require('bootstrap/js/src/scrollspy'),require('bootstrap/js/src/tab'),require('bootstrap/js/src/tooltip'),require('bootstrap/js/src/util')):'function'==typeof define&&define.amd?define(['bootstrap/js/src/alert','bootstrap/js/src/button','bootstrap/js/src/carousel','bootstrap/js/src/collapse','bootstrap/js/src/modal','bootstrap/js/src/popover','bootstrap/js/src/scrollspy','bootstrap/js/src/tab','bootstrap/js/src/tooltip','bootstrap/js/src/util'],t):t(null,null,null,null,null,null,null,null,null,e.Util)})(this,function(e,t,n,o,r,a,l,s,i,d){'use strict';function c(e,t){for(var n,o=0;o<t.length;o++)n=t[o],n.enumerable=n.enumerable||!1,n.configurable=!0,'value'in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}function p(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}d=d&&d.hasOwnProperty('default')?d['default']:d;var m=function(){function e(){if(window.QUnit)return!1;var e=document.createElement('bmd');for(var t in o)if(void 0!==e.style[t])return o[t];return!1}var t=!1,n='',o={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',transition:'transitionend'};return function(){for(var r in t=e(),o)n+=' '+o[r]}(),{transitionEndSupported:function(){return t},transitionEndSelector:function(){return n},isChar:function(e){return!('undefined'!=typeof e.which)||'number'==typeof e.which&&0<e.which&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which},assert:function(e,t,n){if(t)throw void 0===!e&&e.css('border','1px solid red'),console.error(n,e),n},describe:function(e){return void 0===e?'undefined':0===e.length?'(no matching elements)':e[0].outerHTML.split('>')[0]+'>'}}}(jQuery),f=function(e){var t={BMD_FORM_GROUP:'bmd-form-group',IS_FILLED:'is-filled',IS_FOCUSED:'is-focused'},n={BMD_FORM_GROUP:'.'+t.BMD_FORM_GROUP},o={},r=function(){function r(t,n,r){for(var a in void 0===r&&(r={}),this.$element=t,this.config=e.extend(!0,{},o,n),r)this[a]=r[a]}var a=r.prototype;return a.dispose=function(e){this.$element.data(e,null),this.$element=null,this.config=null},a.addFormGroupFocus=function(){this.$element.prop('disabled')||this.$bmdFormGroup.addClass(t.IS_FOCUSED)},a.removeFormGroupFocus=function(){this.$bmdFormGroup.removeClass(t.IS_FOCUSED)},a.removeIsFilled=function(){this.$bmdFormGroup.removeClass(t.IS_FILLED)},a.addIsFilled=function(){this.$bmdFormGroup.addClass(t.IS_FILLED)},a.findMdbFormGroup=function(t){void 0===t&&(t=!0);var o=this.$element.closest(n.BMD_FORM_GROUP);return 0===o.length&&t&&e.error('Failed to find '+n.BMD_FORM_GROUP+' for '+m.describe(this.$element)),o},r}();return r}(jQuery),_=function(e){var t={FORM_GROUP:'form-group',BMD_FORM_GROUP:'bmd-form-group',BMD_LABEL:'bmd-label',BMD_LABEL_STATIC:'bmd-label-static',BMD_LABEL_PLACEHOLDER:'bmd-label-placeholder',BMD_LABEL_FLOATING:'bmd-label-floating',HAS_DANGER:'has-danger',IS_FILLED:'is-filled',IS_FOCUSED:'is-focused',INPUT_GROUP:'input-group'},n={FORM_GROUP:'.'+t.FORM_GROUP,BMD_FORM_GROUP:'.'+t.BMD_FORM_GROUP,BMD_LABEL_WILDCARD:'label[class^=\''+t.BMD_LABEL+'\'], label[class*=\' '+t.BMD_LABEL+'\']'},o={validate:!1,formGroup:{required:!1},bmdFormGroup:{template:'<span class=\''+t.BMD_FORM_GROUP+'\'></span>',create:!0,required:!0},label:{required:!1,selectors:['.form-control-label','> label'],className:t.BMD_LABEL_STATIC},requiredClasses:[],invalidComponentMatches:[],convertInputSizeVariations:!0},r={"form-control-lg":'bmd-form-group-lg',"form-control-sm":'bmd-form-group-sm'},a=function(a){function l(t,n,r){var l;return void 0===r&&(r={}),l=a.call(this,t,e.extend(!0,{},o,n),r)||this,l._rejectInvalidComponentMatches(),l.rejectWithoutRequiredStructure(),l._rejectWitho