You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
39 KiB

{"version":3,"sources":["checkbox.js"],"names":["$","window","document","undefined","Math","self","Function","fn","checkbox","parameters","returnedValue","$allModules","this","moduleSelector","selector","time","Date","getTime","performance","query","arguments","methodInvoked","queryArguments","slice","call","each","observer","module","settings","extend","className","namespace","error","eventNamespace","moduleNamespace","$module","$label","children","label","$input","input","initialLoad","shortcutPressed","instance","data","element","initialize","verbose","create","bind","events","set","tabbable","hide","observeChanges","instantiate","setup","destroy","unbind","show","removeData","fix","reference","is","debug","closest","refresh","indeterminate","checked","check","uncheck","remove","addClass","hidden","removeClass","MutationObserver","mutations","observe","childList","subtree","attachEvents","event","$element","isFunction","toggle","length","on","notFound","click","$target","target","link","focus","preventDefault","keydown","key","which","keyCode","enter","space","escape","blur","ctrlKey","keyup","should","allowCheck","ignoreCallbacks","onChecked","onChange","allowUncheck","unchecked","onUnchecked","allowIndeterminate","onIndeterminate","determinate","allowDeterminate","onDeterminate","enable","enabled","onEnable","onEnabled","disable","disabled","onDisable","onDisabled","get","radios","name","otherRadios","not","attr","radio","hasClass","prop","forceCallbacks","beforeChecked","apply","beforeUnchecked","beforeIndeterminate","beforeDeterminate","fireOnInit","can","change","readOnly","uncheckable","uncheckOthers","trigger","createEvent","inputElement","initEvent","dispatchEvent","prevAll","prev","detach","insertAfter","has","off","$radios","setting","value","isPlainObject","internal","silent","log","prototype","console","info","message","currentTime","executionTime","previousTime","push","Name","Arguments","Element","Execution Time","clearTimeout","timer","setTimeout","display","title","totalTime","index","group","table","groupCollapsed","groupEnd","invoke","passedArguments","context","maxDepth","found","response","object","split","depth","camelCaseValue","charAt","toUpperCase","method","isArray","jQuery"],"mappings":";;;;;;;;;CAUC,SAAWA,EAAGC,EAAQC,EAAUC,GAEjC,YAEAF,GAA2B,mBAAVA,IAAyBA,EAAOG,MAAQA,KACrDH,EACgB,mBAARI,OAAuBA,KAAKD,MAAQA,KAC1CC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EAAQE,EAAOlC,IACR,IAGPpI,EAAOK,MAAMA,EAAMuK,OAAQpL,IACpB,EARP8K,GAASA,EAAOlC,OAYjB/J,EAAEmF,WAAY4G,GACjBC,EAAWD,EAAMvD,MAAMqD,EAASD,GAE1BG,IAAU5L,IAChB6L,EAAWD,GAEV/L,EAAEwM,QAAQ9L,GACXA,EAAciK,KAAKqB,GAEbtL,IAAkBP,EACxBO,GAAiBA,EAAesL,GAE1BA,IAAa7L,IACnBO,EAAgBsL,GAEXD,IAIR1K,GACEsB,IAAaxC,GACdwB,EAAOmB,aAETnB,EAAOgK,OAAOxK,KAGXwB,IAAaxC,GACdwC,EAASgJ,OAAO,WAElBhK,EAAOmB,gBAKLpC,IAAkBP,EACtBO,EACAE,MAINZ,EAAEO,GAAGC,SAASoB,UAEZmG,KAAsB,WACtBhG,UAAsB,WAEtBmI,QAAsB,EACtBlG,OAAsB,EACtBjB,SAAsB,EACtB7B,aAAsB,EAGtB8H,YAAsB,OACtBJ,YAAsB,EAEtBhC,SAAsB,aAEtB2B,cAAsB,aACtBE,gBAAsB,aACtBE,kBAAsB,aACtBD,oBAAsB,aAEtB/B,UAAsB,aACtBI,YAAsB,aAEtBK,cAAsB,aACtBH,gBAAsB,aAEtBM,SAAsB,aACtBI,UAAsB,aAGtBH,UAAsB,aACtBI,WAAsB,aAEtB9F,WACEsC,QAAgB,UAChBD,cAAgB,gBAChBuD,SAAgB,WAChBjD,OAAgB,SAChB0D,MAAgB,QAChBY,SAAgB,aAGlB/G,OACEuK,OAAe,wCAGjBzL,UACEN,SAAW,eACX8B,MAAW,cACXE,MAAW,8CACXmD,KAAW,aAKX8G,OAAQxM,OAAQC","file":"checkbox.min.js","sourcesContent":["/*!\n * # Semantic UI 2.2.6 - Checkbox\n * http://github.com/semantic-org/semantic-ui/\n *\n *\n * Released under the MIT license\n * http://opensource.org/licenses/MIT\n *\n */\n\n;(function ($, window, document, undefined) {\n\n\"use strict\";\n\nwindow = (typeof window != 'undefined' && window.Math == Math)\n ? window\n : (typeof self != 'undefined' && self.Math == Math)\n ? self\n : Function('return this')()\n;\n\n$.fn.checkbox = function(parameters) {\n var\n $allModules = $(this),\n moduleSelector = $allModules.selector || '',\n\n time = new Date().getTime(),\n performance = [],\n\n query = arguments[0],\n methodInvoked = (typeof query == 'string'),\n queryArguments = [].slice.call(arguments, 1),\n returnedValue\n ;\n\n $allModules\n .each(function() {\n var\n settings = $.extend(true, {}, $.fn.checkbox.settings, parameters),\n\n className = settings.className,\n namespace = settings.namespace,\n selector = settings.selector,\n error = settings.error,\n\n eventNamespace = '.' + namespace,\n moduleNamespace = 'module-' + namespace,\n\n $module = $(this),\n $label = $(this).children(selector.label),\n $input = $(this).children(selector.input),\n input = $input[0],\n\n initialLoad = false,\n shortcutPressed = false,\n instance = $module.data(moduleNamespace),\n\n observer,\n element = this,\n module\n ;\n\n module = {\n\n initialize: function() {\n module.verbose('Initializing checkbox', settings);\n\n module.create.label();\n module.bind.events();\n\n module.set.tabbable();\n module.hide.input();\n\n module.observeChanges();\n module.instantiate();\n module.setup();\n },\n\n instantiate: function() {\n module.verbose('Storing instance of module', module);\n instance = module;\n $module\n .data(moduleNamespace, module)\n ;\n },\n\n destroy: function() {\n module.verbose('Destroying module');\n module.unbind.events();\n module.show.input();\n $module.removeData(moduleNamespace);\n },\n\n fix: {\n reference: function() {\n if( $module.is(selector.input) ) {\n module.debug('Behavior called on <input> adjusting invoked element');\n $module = $module.closest(selector.checkbox);\n module.refresh();\n }\n }\n },\n\n setup: function() {\n module.set.initialLoad();\n if( module.is.indeterminate() ) {\n module.debug('Initial value is indeterminate');\n module.indeterminate();\n }\n else if( module.is.checked() ) {\n module.debug('Initial value is checked');\n module.check();\n }\n else {\n module.debug('Initial value is unchecked');\n module.uncheck();\n }\n module.remove.initialLoad();\n },\n\n refresh: function() {\n $label = $module.children(selector.label);\n $input = $module.children(selector.input);\n input = $input[0];\n },\n\n hide: {\n input: function() {\n module.verbose('Modifying <input> z-index to be unselectable');\n $input.addClass(className.hidden);\n }\n },\n show: {\n input: function() {\n module.verbose('Modifying <input> z-index to be selectable');\n $input.removeClass(className.hidden);\n }\n },\n\n observeChanges: function() {\n if('MutationObserver' in window) {\n observer = new MutationObserver(function(mutations) {\n module.debug('DOM tree modified, updating selector cache');\n module.refresh();\n });\n observer.observe(element, {\n childList : true,\n subtree : true\n });\n module.debug('Setting up mutation observer', observer);\n }\n },\n\n attachEvents: function(selector, event) {\n var\n $element = $(selector)\n ;\n event = $.isFunction(module[event])\n ? module[event]\n : module.toggle\n ;\n if($element.length > 0) {\n module.debug('Attaching checkbox events to element', selector, event);\n $element\n .on('click' + eventNamespace, event)\n ;\n }\n else {\n module.error(error.notFound);\n }\n },\n\n event: {\n click: function(event) {\n var\n $target = $(event.target)\n ;\n if( $target.is(selector.input) ) {\n module.verbose('Using default check action on initialized checkbox');\n return;\n }\n if( $target.is(selector.link) ) {\n module.debug('Clicking link inside checkbox, skipping toggle');\n return;\n }\n module.toggle();\n $input.focus();\n event.preventDefault();\n },\n keydown: function(event) {\n var\n key = event.which,\n keyCode = {\n enter : 13,\n space : 32,\n escape : 27\n }\n ;\n if(key == keyCode.escape) {\n module.verbose('Escape key pressed blurring field');\n $input.blur();\n shortcutPressed = true;\n }\n else if(!event.ctrlKey && ( key == keyCode.space || key == keyCode.enter) ) {\n module.verbose('Enter/space key pressed, toggling checkbox');\n module.toggle();\n shortcutPressed = true;\n }\n else {\n shortcutPressed = false;\n }\n },\n keyup: function(event) {\n if(shortcutPressed) {\n event.preventDefault();\n }\n }\n },\n\n check: function() {\n if( !module.should.allowCheck() ) {\n return;\n }\n module.debug('Checking checkbox', $input);\n module.set.checked();\n if( !module.should.ignoreCallbacks() ) {\n settings.onChecked.call(input);\n settings.onChange.call(input);\n }\n },\n\n uncheck: function() {\n if( !module.should.allowUncheck() ) {\n return;\n }\n module.debug('Unchecking checkbox');\n module.set.unchecked();\n if( !module.should.ignoreCallbacks() ) {\n settings.onUnchecked.call(input);\n settings.onChange.call(input);\n }\n },\n\n indeterminate: function() {\n if( module.should.allowIndeterminate() ) {\n module.debug('Checkbox is already indeterminate');\n return;\n }\n module.debug('Making checkbox indeterminate');\n module.set.indeterminate();\n if( !module.should.ignoreCallbacks() ) {\n settings.onIndeterminate.call(input);\n settings.onChange.call(input);\n }\n },\n\n determinate: function() {\n if( module.should.allowDeterminate() ) {\n module.debug('Checkbox is already determinate');\n return;\n }\n module.debug('Making checkbox determinate');\n module.set.determinate();\n if( !module.should.ignoreCallbacks() ) {\n settings.onDeterminate.call(input);\n settings.onChange.call(input);\n }\n },\n\n enable: function() {\n if( module.is.enabled() ) {\n module.debug('Checkbox is already enabled');\n return;\n }\n module.debug('Enabling checkbox');\n module.set.enabled();\n settings.onEnable.call(input);\n // preserve legacy callbacks\n settings.onEnabled.call(input);\n },\n\n disable: function() {\n if( module.is.disabled() ) {\n module.debug('Checkbox is already disabled');\n return;\n }\n module.debug('Disabling checkbox');\n module.set.disabled();\n settings.onDisable.call(input);\n // preserve legacy callbacks\n settings.onDisabled.call(input);\n },\n\n get: {\n radios: function() {\n var\n name = module.get.name()\n ;\n return $('input[name=\"' + name + '\"]').closest(selector.checkbox);\n },\n otherRadios: function() {\n return module.get.radios().not($module);\n },\n name: function() {\n return $input.attr('name');\n }\n },\n\n is: {\n initialLoad: function() {\n return initialLoad;\n },\n radio: function() {\n return ($input.hasClass(className.radio) || $input.attr('type') == 'radio');\n },\n indeterminate: function() {\n return $input.prop('indeterminate') !== undefined && $input.prop('indeterminate');\n },\n checked: function() {\n return $input.prop('checked') !== undefined && $input.prop('checked');\n },\n disabled: function() {\n return $input.prop('disabled') !== undefined && $input.prop('disabled');\n },\n enabled: function() {\n return !module.is.disabled();\n },\n determinate: function() {\n return !module.is.indeterminate();\n },\n unchecked: function() {\n return !module.is.checked();\n }\n },\n\n should: {\n allowCheck: function() {\n if(module.is.determinate() && module.is.checked() && !module.should.forceCallbacks() ) {\n module.debug('Should not allow check, checkbox is already checked');\n return false;\n }\n if(settings.beforeChecked.apply(input) === false) {\n module.debug('Should not allow check, beforeChecked cancelled');\n return false;\n }\n return true;\n },\n allowUncheck: function() {\n if(module.is.determinate() && module.is.unchecked() && !module.should.forceCallbacks() ) {\n module.debug('Should not allow uncheck, checkbox is already unchecked');\n return false;\n }\n if(settings.beforeUnchecked.apply(input) === false) {\n module.debug('Should not allow uncheck, beforeUnchecked cancelled');\n return false;\n }\n return true;\n },\n allowIndeterminate: function() {\n if(module.is.indeterminate() && !module.should.forceCallbacks() ) {\n module.debug('Should not allow indeterminate, checkbox is already indeterminate');\n return false;\n }\n if(settings.beforeIndeterminate.apply(input) === false) {\n module.debug('Should not allow indeterminate, beforeIndeterminate cancelled');\n return false;\n }\n return true;\n },\n allowDeterminate: function() {\n if(module.is.determinate() && !module.should.forceCallbacks() ) {\n module.debug('Should not allow determinate, checkbox is already determinate');\n return false;\n }\n if(settings.beforeDeterminate.apply(input) === false) {\n module.debug('Should not allow determinate, beforeDeterminate cancelled');\n return false;\n }\n return true;\n },\n forceCallbacks: function() {\n return (module.is.initialLoad() && settings.fireOnInit);\n },\n ignoreCallbacks: function() {\n return (initialLoad && !settings.fireOnInit);\n }\n },\n\n can: {\n change: function() {\n return !( $module.hasClass(className.disabled) || $module.hasClass(className.readOnly) || $input.prop('disabled') || $input.prop('readonly') );\n },\n uncheck: function() {\n return (typeof settings.uncheckable === 'boolean')\n ? settings.uncheckable\n : !module.is.radio()\n ;\n }\n },\n\n set: {\n initialLoad: function() {\n initialLoad = true;\n },\n checked: function() {\n module.verbose('Setting class to checked');\n $module\n .removeClass(className.indeterminate)\n .addClass(className.checked)\n ;\n if( module.is.radio() ) {\n module.uncheckOthers();\n }\n if(!module.is.indeterminate() && module.is.checked()) {\n module.debug('Input is already checked, skipping input property change');\n return;\n }\n module.verbose('Setting state to checked', input);\n $input\n .prop('indeterminate', false)\n .prop('checked', true)\n ;\n module.trigger.change();\n },\n unchecked: function() {\n module.verbose('Removing checked class');\n $module\n .removeClass(className.indeterminate)\n .removeClass(className.checked)\n ;\n if(!module.is.indeterminate() && module.is.unchecked() ) {\n module.debug('Input is already unchecked');\n return;\n }\n module.debug('Setting state to unchecked');\n $input\n .prop('indeterminate', false)\n .prop('checked', false)\n ;\n module.trigger.change();\n },\n indeterminate: function() {\n module.verbose('Setting class to indeterminate');\n $module\n .addClass(className.indeterminate)\n ;\n if( module.is.indeterminate() ) {\n module.debug('Input is already indeterminate, skipping input property change');\n return;\n }\n module.debug('Setting state to indeterminate');\n $input\n .prop('indeterminate', true)\n ;\n module.trigger.change();\n },\n determinate: function() {\n module.verbose('Removing indeterminate class');\n $module\n .removeClass(className.indeterminate)\n ;\n if( module.is.determinate() ) {\n module.debug('Input is already determinate, skipping input property change');\n return;\n }\n module.debug('Setting state to determinate');\n $input\n .prop('indeterminate', false)\n ;\n },\n disabled: function() {\n module.verbose('Setting class to disabled');\n $module\n .addClass(className.disabled)\n ;\n if( module.is.disabled() ) {\n module.debug('Input is already disabled, skipping input property change');\n return;\n }\n module.debug('Setting state to disabled');\n $input\n .prop('disabled', 'disabled')\n ;\n module.trigger.change();\n },\n enabled: function() {\n module.verbose('Removing disabled class');\n $module.removeClass(className.disabled);\n if( module.is.enabled() ) {\n module.debug('Input is already enabled, skipping input property change');\n return;\n }\n module.debug('Setting state to enabled');\n $input\n .prop('disabled', false)\n ;\n module.trigger.change();\n },\n tabbable: function() {\n module.verbose('Adding tabindex to checkbox');\n if( $input.attr('tabindex') === undefined) {\n $input.attr('tabindex', 0);\n }\n }\n },\n\n remove: {\n initialLoad: function() {\n initialLoad = false;\n }\n },\n\n trigger: {\n change: function() {\n var\n events = document.createEvent('HTMLEvents'),\n inputElement = $input[0]\n ;\n if(inputElement) {\n module.verbose('Triggering native change event');\n events.initEvent('change', true, false);\n inputElement.dispatchEvent(events);\n }\n }\n },\n\n\n create: {\n label: function() {\n if($input.prevAll(selector.label).length > 0) {\n $input.prev(selector.label).detach().insertAfter($input);\n module.debug('Moving existing label', $label);\n }\n else if( !module.has.label() ) {\n $label = $('<label>').insertAfter($input);\n module.debug('Creating label', $label);\n }\n }\n },\n\n has: {\n label: function() {\n return ($label.length > 0);\n }\n },\n\n bind: {\n events: function() {\n module.verbose('Attaching checkbox events');\n $module\n .on('click' + eventNamespace, module.event.click)\n .on('keydown' + eventNamespace, selector.input, module.event.keydown)\n .on('keyup' + eventNamespace, selector.input, module.event.keyup)\n ;\n }\n },\n\n unbind: {\n events: function() {\n module.debug('Removing events');\n $module\n .off(eventNamespace)\n ;\n }\n },\n\n uncheckOthers: function() {\n var\n $radios = module.get.otherRadios()\n ;\n module.debug('Unchecking other radios', $radios);\n $radios.removeClass(className.checked);\n },\n\n toggle: function() {\n if( !module.can.change() ) {\n if(!module.is.radio()) {\n module.debug('Checkbox is read-only or disabled, ignoring toggle');\n }\n return;\n }\n if( module.is.indeterminate() || module.is.unchecked() ) {\n module.debug('Currently unchecked');\n module.check();\n }\n else if( module.is.checked() && module.can.uncheck() ) {\n module.debug('Currently checked');\n module.uncheck();\n }\n },\n setting: function(name, value) {\n module.debug('Changing setting', name, value);\n if( $.isPlainObject(name) ) {\n $.extend(true, settings, name);\n }\n else if(value !== undefined) {\n if($.isPlainObject(settings[name])) {\n $.extend(true, settings[name], value);\n }\n else {\n settings[name] = value;\n }\n }\n else {\n return settings[name];\n }\n },\n internal: function(name, value) {\n if( $.isPlainObject(name) ) {\n $.extend(true, module, name);\n }\n else if(value !== undefined) {\n module[name] = value;\n }\n else {\n return module[name];\n }\n },\n debug: function() {\n if(!settings.silent && settings.debug) {\n if(settings.performance) {\n module.performance.log(arguments);\n }\n else {\n module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\n module.debug.apply(console, arguments);\n }\n }\n },\n verbose: function() {\n if(!settings.silent && settings.verbose && settings.debug) {\n if(settings.performance) {\n module.performance.log(arguments);\n }\n else {\n module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\n module.verbose.apply(console, arguments);\n }\n }\n },\n error: function() {\n if(!settings.silent) {\n module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\n module.error.apply(console, arguments);\n }\n },\n performance: {\n log: function(message) {\n var\n currentTime,\n executionTime,\n previousTime\n ;\n if(settings.performance) {\n currentTime = new Date().getTime();\n previousTime = time || currentTime;\n executionTime = currentTime - previousTime;\n time = currentTime;\n performance.push({\n 'Name' : message[0],\n 'Arguments' : [].slice.call(message, 1) || '',\n 'Element' : element,\n 'Execution Time' : executionTime\n });\n }\n clearTimeout(module.performance.timer);\n module.performance.timer = setTimeout(module.performance.display, 500);\n },\n display: function() {\n var\n title = settings.name + ':',\n totalTime = 0\n ;\n time = false;\n clearTimeout(module.performance.timer);\n $.each(performance, function(index, data) {\n totalTime += data['Execution Time'];\n });\n title += ' ' + totalTime + 'ms';\n if(moduleSelector) {\n title += ' \\'' + moduleSelector + '\\'';\n }\n if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\n console.groupCollapsed(title);\n if(console.table) {\n console.table(performance);\n }\n else {\n $.each(performance, function(index, data) {\n console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\n });\n }\n console.groupEnd();\n }\n performance = [];\n }\n },\n invoke: function(query, passedArguments, context) {\n var\n object = instance,\n maxDepth,\n found,\n response\n ;\n passedArguments = passedArguments || queryArguments;\n context = element || context;\n if(typeof query == 'string' && object !== undefined) {\n query = query.split(/[\\. ]/);\n maxDepth = query.length - 1;\n $.each(query, function(depth, value) {\n var camelCaseValue = (depth != maxDepth)\n ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\n : query\n ;\n if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\n object = object[camelCaseValue];\n }\n else if( object[camelCaseValue] !== undefined ) {\n found = object[camelCaseValue];\n return false;\n }\n else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\n object = object[value];\n }\n else if( object[value] !== undefined ) {\n found = object[value];\n return false;\n }\n else {\n module.error(error.method, query);\n return false;\n }\n });\n }\n if ( $.isFunction( found ) ) {\n response = found.apply(context, passedArguments);\n }\n else if(found !== undefined) {\n response = found;\n }\n if($.isArray(returnedValue)) {\n returnedValue.push(response);\n }\n else if(returnedValue !== undefined) {\n returnedValue = [returnedValue, response];\n }\n else if(response !== undefined) {\n returnedValue = response;\n }\n return found;\n }\n };\n\n if(methodInvoked) {\n if(instance === undefined) {\n module.initialize();\n }\n module.invoke(query);\n }\n else {\n if(instance !== undefined) {\n instance.invoke('destroy');\n }\n module.initialize();\n }\n })\n ;\n\n return (returnedValue !== undefined)\n ? returnedValue\n : this\n ;\n};\n\n$.fn.checkbox.settings = {\n\n name : 'Checkbox',\n namespace : 'checkbox',\n\n silent : false,\n debug : false,\n verbose : true,\n performance : true,\n\n // delegated event context\n uncheckable : 'auto',\n fireOnInit : false,\n\n onChange : function(){},\n\n beforeChecked : function(){},\n beforeUnchecked : function(){},\n beforeDeterminate : function(){},\n beforeIndeterminate : function(){},\n\n onChecked : function(){},\n onUnchecked : function(){},\n\n onDeterminate : function() {},\n onIndeterminate : function() {},\n\n onEnable : function(){},\n onDisable : function(){},\n\n // preserve misspelled callbacks (will be removed in 3.0)\n onEnabled : function(){},\n onDisabled : function(){},\n\n className : {\n checked : 'checked',\n indeterminate : 'indeterminate',\n disabled : 'disabled',\n hidden : 'hidden',\n radio : 'radio',\n readOnly : 'read-only'\n },\n\n error : {\n method : 'The method you called is not defined'\n },\n\n selector : {\n checkbox : '.ui.checkbox',\n label : 'label, .box',\n input : 'input[type=\"checkbox\"], input[type=\"radio\"]',\n link : 'a[href]'\n }\n\n};\n\n})( jQuery, window, document );\n"]}