diff --git a/build/css/metro-all.css b/build/css/metro-all.css index 7893a0da9..bd2ca2187 100644 --- a/build/css/metro-all.css +++ b/build/css/metro-all.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.4 (https://metroui.org.ua) * Copyright 2012-2019 Sergey Pimenov - * Built at 24/11/2019 13:31:35 + * Built at 24/11/2019 13:38:26 * Licensed under MIT */ html, diff --git a/build/css/metro-animations.css b/build/css/metro-animations.css index d943e0a91..d556c7bc2 100644 --- a/build/css/metro-animations.css +++ b/build/css/metro-animations.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.4 (https://metroui.org.ua) * Copyright 2012-2019 Sergey Pimenov - * Built at 24/11/2019 13:31:28 + * Built at 24/11/2019 13:38:19 * Licensed under MIT */ .ani-spin, diff --git a/build/css/metro-colors.css b/build/css/metro-colors.css index c6ebee561..77963054a 100644 --- a/build/css/metro-colors.css +++ b/build/css/metro-colors.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.4 (https://metroui.org.ua) * Copyright 2012-2019 Sergey Pimenov - * Built at 24/11/2019 13:31:28 + * Built at 24/11/2019 13:38:19 * Licensed under MIT */ .op-default { diff --git a/build/css/metro-icons.css b/build/css/metro-icons.css index 08a9e947c..ee87e75d2 100644 --- a/build/css/metro-icons.css +++ b/build/css/metro-icons.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.4 (https://metroui.org.ua) * Copyright 2012-2019 Sergey Pimenov - * Built at 24/11/2019 13:31:28 + * Built at 24/11/2019 13:38:19 * Licensed under MIT */ @font-face { diff --git a/build/css/metro-rtl.css b/build/css/metro-rtl.css index c02eb331b..e9db8f2b0 100644 --- a/build/css/metro-rtl.css +++ b/build/css/metro-rtl.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.4 (https://metroui.org.ua) * Copyright 2012-2019 Sergey Pimenov - * Built at 24/11/2019 13:31:28 + * Built at 24/11/2019 13:38:19 * Licensed under MIT */ .accordion.rtl.material > .frame > .heading, diff --git a/build/css/metro-third.css b/build/css/metro-third.css index 347721d38..e888293fd 100644 --- a/build/css/metro-third.css +++ b/build/css/metro-third.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.4 (https://metroui.org.ua) * Copyright 2012-2019 Sergey Pimenov - * Built at 24/11/2019 13:31:28 + * Built at 24/11/2019 13:38:19 * Licensed under MIT */ .sorting, diff --git a/build/css/metro.css b/build/css/metro.css index b2f461d6d..520243dff 100644 --- a/build/css/metro.css +++ b/build/css/metro.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.4 (https://metroui.org.ua) * Copyright 2012-2019 Sergey Pimenov - * Built at 24/11/2019 13:31:28 + * Built at 24/11/2019 13:38:19 * Licensed under MIT */ html, diff --git a/build/css/schemes/darcula.css b/build/css/schemes/darcula.css index c20bce84f..02c2983f3 100644 --- a/build/css/schemes/darcula.css +++ b/build/css/schemes/darcula.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.4 (https://metroui.org.ua) * Copyright 2012-2019 Sergey Pimenov - * Built at 24/11/2019 13:31:28 + * Built at 24/11/2019 13:38:19 * Licensed under MIT */ .bg-scheme { diff --git a/build/css/schemes/red-alert.css b/build/css/schemes/red-alert.css index 5b27325cb..8af00ce93 100644 --- a/build/css/schemes/red-alert.css +++ b/build/css/schemes/red-alert.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.4 (https://metroui.org.ua) * Copyright 2012-2019 Sergey Pimenov - * Built at 24/11/2019 13:31:28 + * Built at 24/11/2019 13:38:19 * Licensed under MIT */ .bg-scheme { diff --git a/build/css/schemes/red-dark.css b/build/css/schemes/red-dark.css index 57f284ccb..ebe000971 100644 --- a/build/css/schemes/red-dark.css +++ b/build/css/schemes/red-dark.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.4 (https://metroui.org.ua) * Copyright 2012-2019 Sergey Pimenov - * Built at 24/11/2019 13:31:28 + * Built at 24/11/2019 13:38:19 * Licensed under MIT */ .bg-scheme { diff --git a/build/css/schemes/red-mirohost.css b/build/css/schemes/red-mirohost.css index 9cc131934..f3b80e9e1 100644 --- a/build/css/schemes/red-mirohost.css +++ b/build/css/schemes/red-mirohost.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.4 (https://metroui.org.ua) * Copyright 2012-2019 Sergey Pimenov - * Built at 24/11/2019 13:31:28 + * Built at 24/11/2019 13:38:19 * Licensed under MIT */ .bg-scheme { diff --git a/build/css/schemes/sky-net.css b/build/css/schemes/sky-net.css index 592bb647f..90a17ef46 100644 --- a/build/css/schemes/sky-net.css +++ b/build/css/schemes/sky-net.css @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.4 (https://metroui.org.ua) * Copyright 2012-2019 Sergey Pimenov - * Built at 24/11/2019 13:31:28 + * Built at 24/11/2019 13:38:19 * Licensed under MIT */ .bg-scheme { diff --git a/build/js/metro.js b/build/js/metro.js index 33a7bba16..65a7552d6 100644 --- a/build/js/metro.js +++ b/build/js/metro.js @@ -1,7 +1,7 @@ /* * Metro 4 Components Library v4.3.4 (https://metroui.org.ua) * Copyright 2012-2019 Sergey Pimenov - * Built at 24/11/2019 13:31:35 + * Built at 24/11/2019 13:38:26 * Licensed under MIT */ @@ -3793,7 +3793,7 @@ var normalizeComponentName = function(name){ var Metro = { version: "4.3.4", - compileTime: "24/11/2019 13:31:43", + compileTime: "24/11/2019 13:38:36", buildNumber: "742", isTouchable: isTouch, fullScreenEnabled: document.fullscreenEnabled, diff --git a/build/js/metro.min.js b/build/js/metro.min.js index fdabf6fb1..795e59f66 100644 --- a/build/js/metro.min.js +++ b/build/js/metro.min.js @@ -1,9 +1,9 @@ /* * Metro 4 Components Library v4.3.4 (https://metroui.org.ua) * Copyright 2012-2019 Sergey Pimenov - * Built at 24/11/2019 13:31:38 + * Built at 24/11/2019 13:38:30 * Licensed under MIT */ -!function(e){"function"==typeof define&&define.amd?define("metro4",e):e()}(function(){"use strict";window.hideM4QVersion=!0,function(e,h){var s=["opacity","zIndex"];function o(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function v(e){return e===h||null===e}function g(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}function C(e){var t;return!(!e||"[object Object]"!==Object.prototype.toString.call(e))&&(!(t=e.prototype!==h)||t.constructor&&"function"==typeof t.constructor)}function b(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function a(e){return e instanceof Object&&"length"in e}function i(e,t){return t=t||" ",e.split(t).map(function(e){return(""+e).trim()}).filter(function(e){return""!==e})}function f(e,t){return t||(t=[0,""]),e=String(e),t[0]=parseFloat(e),t[1]=e.match(/[\d.\-+]*\s*(.*)/)[1]||"",t}function r(e,t,n){t=g(t),-1<["scrollLeft","scrollTop"].indexOf(t)?e[t]=parseInt(n):e.style[t]=isNaN(n)||-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,p=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector,w=function(e,t){return new w.init(e,t)};w.version=t,w.fn=w.prototype={version:t,constructor:w,length:0,uid:"",push:[].push,sort:[].sort,splice:[].splice,indexOf:[].indexOf},w.extend=w.fn.extend=function(){var e,t,n=arguments[0]||{},i=1,s=arguments.length;for("object"!=typeof n&&"function"!=typeof n&&(n={}),i===s&&(n=this,i--);i=e.interval)&&(e.fn(),e.lastTime=m())})};this.intervalTicking=!0,i()}return this.intervalId},clearInterval:function(e){for(var t=0;t>16)+t;255>8&255)+t;255>>4&15)+n.charAt(15&t);return i}function D(e){for(var t,n,i="",s=-1;++s>>6&31,128|63&t):t<=65535?i+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(i+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return i}function A(e){var t,n=new Array(e.length>>2);for(t=0;t>5]|=(255&e.charCodeAt(t/8))<>5]>>>n%32&255);return t}function P(e,t){e[t>>5]|=128<>>9<<4)]=t;for(var n=1732584193,i=-271733879,s=-1732584194,a=271733878,o=0;o>>32-t}(B(B(t,e),B(i,a)),s),n)}function R(e,t,n,i,s,a,o){return N(t&n|~t&i,e,t,s,a,o)}function F(e,t,n,i,s,a,o){return N(t&i|n&~i,e,t,s,a,o)}function L(e,t,n,i,s,a,o){return N(t^n^i,e,t,s,a,o)}function V(e,t,n,i,s,a,o){return N(n^(t|~i),e,t,s,a,o)}function B(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}Number.prototype.format=function(e,t,n,i){var s="\\d(?=(\\d{"+(t||3)+"})+"+(0",n.endToken))),a=(i=new RegExp(o,"g")).exec(e);a;)d(e.slice(c,a.index))(a[1],!0),c=a.index+a[0].length,a=i.exec(e);d(e.substr(c,e.length-c)),l=(l+'return r.join(""); }').replace(/[\r\t\n]/g," ");try{s=new Function("obj",l).apply(t,[t])}catch(e){console.error("'"+e.message+"'"," in \n\nCode:\n",l,"\n")}return s};var H={isUrl:function(e){return/^(\.\/|\.\.\/|ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@\-\/]))?/.test(e)},isTag:function(e){return/^<\/?[\w\s="/.':;#-\/\?]+>/gi.test(e)},isColor:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isEmbedObject:function(e){var t=!1;return k.each(["iframe","object","embed","video"],function(){"string"==typeof e&&e.toLowerCase()===this?t=!0:void 0!==e.nodeType&&e.tagName.toLowerCase()===this&&(t=!0)}),t},isVideoUrl:function(e){return/youtu\.be|youtube|vimeo/gi.test(e)},isDate:function(e,t){return!("object"!=typeof e||!H.isFunc(e.getMonth))||"Invalid Date"!==(H.isValue(t)?String(e).toDate(t):String(new Date(e)))},isDateObject:function(e){return"object"==typeof e&&void 0!==e.getMonth},isInt:function(e){return!isNaN(e)&&+e%1==0},isFloat:function(e){return!isNaN(e)&&+e%1!=0},isTouchDevice:function(){return"ontouchstart"in window||0"+k(e)[0].outerHTML+""},embedUrl:function(e){return-1!==e.indexOf("youtu.be")&&(e="https://www.youtube.com/embed/"+e.split("/").pop()),"
"},secondsToTime:function(e){var t=e%3600,n=t%60;return{h:Math.floor(e/3600),m:Math.floor(t/60),s:Math.ceil(n)}},hex2rgba:function(e,t){var n;if(t=isNaN(t)?1:t,/^#([A-Fa-f0-9]{3}){1,2}$/.test(e))return 3===(n=e.substring(1).split("")).length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),"rgba("+[(n="0x"+n.join(""))>>16&255,n>>8&255,255&n].join(",")+","+t+")";throw new Error("Hex2rgba error. Bad Hex value")},random:function(e,t){return Math.floor(Math.random()*(t-e+1)+e)},uniqueId:function(){var n=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"===e?t:3&t|8).toString(16)})},elementId:function(e){return e+"-"+(new Date).getTime()+H.random(1,1e3)},secondsToFormattedString:function(e){var t=parseInt(e,10),n=Math.floor(t/3600),i=Math.floor((t-3600*n)/60),s=t-3600*n-60*i;return n<10&&(n="0"+n),i<10&&(i="0"+i),s<10&&(s="0"+s),[n,i,s].join(":")},callback:function(e,t,n){return H.exec(e,t,n)},func:function(e){return new Function("a",e)},exec:function(e,t,n){var i;if(null==e)return!1;var s=H.isFunc(e);!1===s&&(s=H.func(e));try{i=s.apply(n,t)}catch(e){if(!(i=null)===METRO_THROWS)throw e}return i},isOutsider:function(e){var t,n=k(e),i=n.clone();return i.removeAttr("data-role").css({visibility:"hidden",position:"absolute",display:"block"}),n.parent().append(i),t=i[0].getBoundingClientRect(),i.remove(),0<=t.top&&0<=t.left&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},inViewport:function(e){var t=H.rect(e);return 0<=t.top&&0<=t.left&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},rect:function(e){return e.getBoundingClientRect()},getCursorPosition:function(e,t){var n=H.rect(e);return{x:H.pageXY(t).x-n.left-window.pageXOffset,y:H.pageXY(t).y-n.top-window.pageYOffset}},getCursorPositionX:function(e,t){return H.getCursorPosition(e,t).x},getCursorPositionY:function(e,t){return H.getCursorPosition(e,t).y},objectLength:function(e){return Object.keys(e).length},percent:function(e,t,n){if(0===e)return 0;var i=100*t/e;return!0===n?Math.round(i):Math.round(100*i)/100},camelCase:function(e){return e.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})},dashedName:function(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})},objectShift:function(e){var t=0;return k.each(e,function(e){0===t?t=e:e>16&255,t>>8&255,255&t]):[0,0,0]},hexColorToRgbA:function(e,t){var n;return/^#([A-Fa-f0-9]{3}){1,2}$/.test(e)?(3===(n=e.substring(1).split("")).length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),"rgba("+[(n="0x"+n.join(""))>>16&255,n>>8&255,255&n,t||1].join(",")+")"):"rgba(0,0,0,1)"},getInlineStyles:function(e){var t,n,i={},s=k(e)[0];for(t=0,n=s.style.length;t").addClass("circle").appendTo(n)}();break;case"square":!function(){for(e=0;e<4;e++)k("
").addClass("square").appendTo(n)}();break;case"cycle":k("
").addClass("cycle").appendTo(n);break;case"simple":k('').appendTo(n);break;default:!function(){for(e=0;e<5;e++)t=k("
").addClass("wrap").appendTo(n),k("
").addClass("circle").appendTo(t)}()}H.exec(this.options.onActivityCreate,[this.element]),n.fire("activitycreate")},changeAttribute:function(e){},destroy:function(){return this.element}};C.plugin("activity",W);var Y={expand:!(C.activity={open:function(e){var t=e||{},n='
',i=t.text?'
'+t.text+"
":"";return C.dialog.create({content:n+i,defaultAction:!1,clsContent:"d-flex flex-column flex-justify-center flex-align-center bg-transparent no-shadow w-auto",clsDialog:"no-border no-shadow bg-transparent global-dialog",autoHide:t.autoHide?t.autoHide:0,overlayClickClose:!0===t.overlayClickClose,overlayColor:t.overlayColor?t.overlayColor:"#000000",overlayAlpha:t.overlayAlpha?t.overlayAlpha:.5,clsOverlay:"global-overlay"})},close:function(e){C.dialog.close(e)}}),expandPoint:null,duration:100,onMenuOpen:C.noop,onMenuClose:C.noop,onMenuCollapse:C.noop,onMenuExpand:C.noop,onAppBarCreate:C.noop};C.appBarSetup=function(e){Y=k.extend({},Y,e)},window.metroAppBarSetup,C.appBarSetup(window.metroAppBarSetup);var J={init:function(e,t){return this.options=k.extend({},Y,e),this.elem=t,this.element=k(t),this._setOptionsFromDOM(),this._create(),this},_setOptionsFromDOM:function(){var e=this.element,i=this.options;k.each(e.data(),function(t,n){if(t in i)try{i[t]=JSON.parse(n)}catch(e){i[t]=n}})},_create:function(){var e=this.element,t=this.options;C.checkRuntime(e,"appbar"),this._createStructure(),this._createEvents(),H.exec(t.onAppBarCreate,[e]),e.fire("appbarcreate")},_createStructure:function(){var e,t,n=this.element,i=this.options,s=H.elementId("app-bar");if(n.addClass("app-bar"),0===(e=n.find(".hamburger")).length){e=k("").appendTo(n),a[i.view[e]["index-view"]]=n}),t=0;t").addClass("table-inspector")).attr("for",this.element.attr("id")),k("
"+a.inspectorTitle+"
").appendTo(e),t=k("
").addClass("table-wrap").appendTo(e),n=k("").addClass("table subcompact"),i=k("").appendTo(n),n.appendTo(t),this._createInspectorItems(i),s=k("
").appendTo(e),k("
").addClass(a.clsHeadRow).appendTo(o),k.each(this.service,function(){var e=[];i=k("").addClass(i.clsFooter);n.find("tfoot").remove(),0!==this.foots.length&&(e=k("").addClass(i.clsHeadRow).appendTo(s),k.each(this.foots,function(){t=k("").addClass(u.clsBodyRow)).data("original",o),l=t%2==0,s=k("").appendTo(f),g=[];if("function"==typeof T.tableToCSV){for(t=H.isValue(t)?t.toLowerCase():"all-filtered",n=H.isValue(n)?n:H.elementId("table")+"-export.csv",l=k(""),o=this.heads,a=0;a"),H.isValue(this.title)&&c.html(this.title),g[u.view[e]["index-view"]]=c)}),a=0;a"),o=r[s],a=0;a").html(this),g[u.view[e]["index-view"]]=c)}),a=0;a").addClass("tab-marker").addClass(t.clsMarker).appendTo(e)),this.openTab(0===i.length?n[0]:i[0])},_createEvents:function(){var a=this,o=this.element,r=this.options;o.on(C.events.click,"li",function(e){var t=k(this),n=o.find("li.active"),i=t.index()>n.index(),s=t.children("a").attr("href");if(H.isValue(s)&&"#"===s[0]){if(t.hasClass("active"))return;if(t.hasClass("disabled"))return;if(!1===H.exec(r.onBeforeTabOpen,[t,s,i],this))return;a.openTab(t,i),e.preventDefault()}}),o.on(C.events.scroll,function(){var e=this.scroll;this.scrollDir=this.scrolln.index(i);this.openTab(s,a)},changeAttribute:function(e){},destroy:function(){var e=this.element;return e.off(C.events.click,"li"),e.off(C.events.scroll),e}};C.plugin("materialtabs",tn);var nn={expand:!1,expandPoint:null,tabsPosition:"top",tabsType:"default",clsTabs:"",clsTabsList:"",clsTabsListItem:"",clsTabsListItemActive:"",onTab:C.noop,onBeforeTab:C.noop_true,onTabsCreate:C.noop};C.tabsSetup=function(e){nn=k.extend({},nn,e)},window.metroTabsSetup,C.tabsSetup(window.metroTabsSetup);var sn={init:function(e,t){return this.options=k.extend({},nn,e),this.elem=t,this.element=k(t),this._targets=[],this._setOptionsFromDOM(),this._create(),this},_setOptionsFromDOM:function(){var e=this.element,i=this.options;k.each(e.data(),function(t,n){if(t in i)try{i[t]=JSON.parse(n)}catch(e){i[t]=n}})},_create:function(){var e=this.element,t=this.options,n=0").addClass("tabs tabs-wrapper");if(H.isValue(n.attr("id"))||n.attr("id",H.elementId("tabs")),o.addClass(i.tabsPosition.replace(["-","_","+"]," ")),n.addClass("tabs-list"),"default"!==i.tabsType&&n.addClass("tabs-"+i.tabsType),a||(o.insertBefore(n),n.appendTo(o)),n.data("expanded",!1),e=k("
").addClass("expand-title"),o.prepend(e),0===(t=o.find(".hamburger")).length){t=k("
").appendTo(t),H.isValue(this.title)&&i.html(this.title),H.isValue(this.size)&&i.css({width:this.size}),H.isValue(this.cls)&&e.push(this.cls),e.push(a.clsHeadCell),i.addClass(e.join(" "))}),n=this.heads,e=0;e")).data("index",e),H.isValue(t.title)&&i.html(t.title),H.isValue(t.format)&&i.attr("data-format",t.format),H.isValue(t.name)&&i.attr("data-name",t.name),H.isValue(t.colspan)&&i.attr("colspan",t.colspan),H.isValue(l[e].size)&&i.css({width:l[e].size}),!0===t.sortable&&(n.push("sortable-column"),H.isValue(t.sortDir)&&n.push("sort-"+t.sortDir)),H.isValue(t.cls)&&k.each(t.cls.toArray(),function(){n.push(this)}),!1===H.bool(l[e].show)&&-1===n.indexOf("hidden")&&n.push("hidden"),n.push(a.clsHeadCell),H.bool(l[e].show)&&H.arrayDelete(n,"hidden"),i.addClass(n.join(" ")),r[l[e]["index-view"]]=i}),e=0;e").addClass(this.options.clsBody).insertAfter(e)},_createTableFooter:function(){var e,t,n=this.element,i=this.options,s=k("
").appendTo(e),void 0!==this.title&&t.html(this.title),void 0!==this.name&&t.addClass("foot-column-name-"+this.name),void 0!==this.cls&&t.addClass(this.cls),H.isValue(this.colspan)&&t.attr("colspan",this.colspan),t.appendTo(e)})),n.append(s)},_createTopBlock:function(){var e,t,n,i,s=this,a=this.element,o=this.options,r=k("
").addClass("table-top").addClass(o.clsTableTop).insertBefore(a.parent());return(e=H.isValue(this.wrapperSearch)?this.wrapperSearch:k("
").addClass("table-search-block").addClass(o.clsSearch).appendTo(r)).addClass(o.clsSearch),t=k("").attr("type","text").appendTo(e),C.makePlugin(t,"input",{prepend:o.tableSearchTitle}),!0!==o.showSearch&&e.hide(),(n=H.isValue(this.wrapperRows)?this.wrapperRows:k("
").addClass("table-rows-block").appendTo(r)).addClass(o.clsRowsCount),i=k("
").html(t+1),void 0!==d.service[0].clsColumn&&s.addClass(d.service[0].clsColumn),s.appendTo(i),s=k(""),a="checkbox"===u.checkType?k(""):k(""),H.isValue(v)&&Array.isArray(v)&&-1");H.isValue(d.heads[e].template)&&(t=d.heads[e].template.replace("%VAL%",t)),n.html(t),n.addClass(u.clsBodyCell),H.isValue(d.heads[e].clsColumn)&&n.addClass(d.heads[e].clsColumn),!1===H.bool(g[e].show)&&n.addClass("hidden"),H.bool(g[e].show)&&n.removeClass("hidden"),n.data("original",this),r[g[e]["index-view"]]=n,H.exec(u.onDrawCell,[n,t,e,d.heads[e],o],n[0]),h.fire("drawcell",{td:n,val:t,cellIndex:e,head:d.heads[e],items:o}),!0===u.cellWrapper&&(t=k("
").addClass("data-wrapper").addClass(u.clsCellWrapper).html(n.html()),n.html("").append(t))}),n=0;n").addClass(u.clsBodyRow).appendTo(p),(s=k("
").attr("colspan",n).addClass("text-center").html(k("").addClass(u.clsEmptyTableTitle).html(u.emptyTableTitle))).appendTo(i);this._info(1+f,1+m,c.length),this._paging(c.length),this.activity&&this.activity.hide(),H.exec(u.onDraw,[h],h[0]),h.fire("draw",h[0]),void 0!==e&&H.exec(e,[h],h[0])}else console.warn("Heads is not defined for table ID "+h.attr("id"))},_getItemContent:function(e){var t,n=this.options,i=e[this.sort.colIndex],s=this.heads[this.sort.colIndex].format,a=H.isNull(this.heads)||H.isNull(this.heads[this.sort.colIndex])||!H.isValue(this.heads[this.sort.colIndex].formatMask)?"%Y-%m-%d":this.heads[this.sort.colIndex].formatMask,o=this.heads&&this.heads[this.sort.colIndex]&&this.heads[this.sort.colIndex].thousandSeparator?this.heads[this.sort.colIndex].thousandSeparator:n.thousandSeparator,r=this.heads&&this.heads[this.sort.colIndex]&&this.heads[this.sort.colIndex].decimalSeparator?this.heads[this.sort.colIndex].decimalSeparator:n.decimalSeparator;if(t=(""+i).toLowerCase().replace(/[\n\r]+|[\s]{2,}/g," ").trim(),H.isValue(t)&&H.isValue(s))switch(-1!==["number","int","float","money"].indexOf(s)&&(t=H.parseNumber(t,o,r)),s){case"date":t=H.isValue(a)?t.toDate(a):new Date(t);break;case"number":t=Number(t);break;case"int":t=parseInt(t);break;case"float":t=parseFloat(t);break;case"money":t=H.parseMoney(t);break;case"card":t=H.parseCard(t);break;case"phone":t=H.parsePhone(t)}return t},addItem:function(e,t){if(!Array.isArray(e))return console.warn("Item is not an array and can't be added"),this;this.items.push(e),!1!==t&&this.draw()},addItems:function(e,t){if(!Array.isArray(e))return console.warn("Items is not an array and can't be added"),this;e.forEach(function(e){Array.isArray(e)&&this.items.push(e,!1)}),this.draw(),!1!==t&&this.draw()},updateItem:function(e,n,t){var i=this.items[this.index[e]],s=null;return H.isNull(i)?(console.warn("Item is undefined for update"),this):(isNaN(n)&&this.heads.forEach(function(e,t){e.name===n&&(s=t)}),H.isNull(s)?console.warn("Item is undefined for update. Field "+n+" not found in data structure"):(i[s]=t,this.items[this.index[e]]=i),this)},getItem:function(e){return this.items[this.index[e]]},deleteItem:function(e,t){var n,i=[],s=H.isFunc(t);for(n=0;nthis.pagesCount))return this._draw(),this;this.currentPage=this.pagesCount}},prev:function(){if(0!==this.items.length){if(this.currentPage--,0!==this.currentPage)return this._draw(),this;this.currentPage=1}},first:function(){if(0!==this.items.length)return this.currentPage=1,this._draw(),this},last:function(){if(0!==this.items.length)return this.currentPage=this.pagesCount,this._draw(),this},page:function(e){return e<=0&&(e=1),e>this.pagesCount&&(e=this.pagesCount),this.currentPage=e,this._draw(),this},addFilter:function(e,t){var n,i=null,s=H.isFunc(e);if(!1!==s){for(n=0;n").appendTo(f),v=k("