diff --git a/build/css/metro-all.css b/build/css/metro-all.css index b5f75506a..b692c7258 100644 --- a/build/css/metro-all.css +++ b/build/css/metro-all.css @@ -1,5 +1,5 @@ /* - * Metro 4 Components Library v4.2.22 build @@build (https://metroui.org.ua) + * Metro 4 Components Library v4.2.22 build 699 (https://metroui.org.ua) * Copyright 2018 Sergey Pimenov * Licensed under MIT */ diff --git a/build/css/metro-colors.css b/build/css/metro-colors.css index 661f2bad5..bee6d61e5 100644 --- a/build/css/metro-colors.css +++ b/build/css/metro-colors.css @@ -1,5 +1,5 @@ /* - * Metro 4 Components Library v4.2.22 build @@build (https://metroui.org.ua) + * Metro 4 Components Library v4.2.22 build 699 (https://metroui.org.ua) * Copyright 2018 Sergey Pimenov * Licensed under MIT */ diff --git a/build/css/metro-icons.css b/build/css/metro-icons.css index 4e089d79d..bf39e84fe 100644 --- a/build/css/metro-icons.css +++ b/build/css/metro-icons.css @@ -1,5 +1,5 @@ /* - * Metro 4 Components Library v4.2.22 build @@build (https://metroui.org.ua) + * Metro 4 Components Library v4.2.22 build 699 (https://metroui.org.ua) * Copyright 2018 Sergey Pimenov * Licensed under MIT */ diff --git a/build/css/metro-rtl.css b/build/css/metro-rtl.css index a3cc2f7f8..de6d682dc 100644 --- a/build/css/metro-rtl.css +++ b/build/css/metro-rtl.css @@ -1,5 +1,5 @@ /* - * Metro 4 Components Library v4.2.22 build @@build (https://metroui.org.ua) + * Metro 4 Components Library v4.2.22 build 699 (https://metroui.org.ua) * Copyright 2018 Sergey Pimenov * Licensed under MIT */ diff --git a/build/css/metro.css b/build/css/metro.css index 823352910..9c74d9967 100644 --- a/build/css/metro.css +++ b/build/css/metro.css @@ -1,5 +1,5 @@ /* - * Metro 4 Components Library v4.2.22 build @@build (https://metroui.org.ua) + * Metro 4 Components Library v4.2.22 build 699 (https://metroui.org.ua) * Copyright 2018 Sergey Pimenov * Licensed under MIT */ diff --git a/build/js/metro.js b/build/js/metro.js index 69ee9ab29..832a2ae16 100644 --- a/build/js/metro.js +++ b/build/js/metro.js @@ -1,5 +1,5 @@ /* - * Metro 4 Components Library v4.2.22 build @@build (https://metroui.org.ua) + * Metro 4 Components Library v4.2.22 build 699 (https://metroui.org.ua) * Copyright 2018 Sergey Pimenov * Licensed under MIT */ @@ -88,8 +88,8 @@ var isTouch = (('ontouchstart' in window) || (navigator.MaxTouchPoints > 0) || ( var Metro = { - version: "@@version", - versionFull: "@@version.@@build @@status", + version: "4.2.22", + versionFull: "4.2.22.699 ", isTouchable: isTouch, fullScreenEnabled: document.fullscreenEnabled, sheet: null, diff --git a/build/js/metro.min.js b/build/js/metro.min.js index 6fff24617..6774dedfc 100644 --- a/build/js/metro.min.js +++ b/build/js/metro.min.js @@ -1,8 +1,8 @@ /* - * Metro 4 Components Library v4.2.22 build @@build (https://metroui.org.ua) + * Metro 4 Components Library v4.2.22 build 699 (https://metroui.org.ua) * Copyright 2018 Sergey Pimenov * Licensed under MIT */ -!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(t){"use strict";var T=t;if(void 0===t)throw new Error("Metro 4 requires jQuery!");if("MutationObserver"in window==!1)throw new Error("Metro 4 requires MutationObserver!");var e=T("meta[name='metro4:init']").attr("content"),n=T("meta[name='metro4:locale']").attr("content"),s=T("meta[name='metro4:week_start']").attr("content"),i=T("meta[name='metro4:date_format']").attr("content"),a=T("meta[name='metro4:date_format_input']").attr("content"),o=T("meta[name='metro4:animation_duration']").attr("content"),r=T("meta[name='metro4:callback_timeout']").attr("content"),l=T("meta[name='metro4:timeout']").attr("content");void 0===window.METRO_INIT&&(window.METRO_INIT=void 0===e||JSON.parse(e)),void 0===window.METRO_DEBUG&&(window.METRO_DEBUG=!0),void 0===window.METRO_WEEK_START&&(window.METRO_WEEK_START=void 0!==s?parseInt(s):0),void 0===window.METRO_DATE_FORMAT&&(window.METRO_DATE_FORMAT=void 0!==i?i:"%Y-%m-%d"),void 0===window.METRO_DATE_FORMAT_INPUT&&(window.METRO_DATE_FORMAT_INPUT=void 0!==a?a:"%Y-%m-%d"),void 0===window.METRO_LOCALE&&(window.METRO_LOCALE=void 0!==n?n:"en-US"),void 0===window.METRO_ANIMATION_DURATION&&(window.METRO_ANIMATION_DURATION=void 0!==o?parseInt(o):300),void 0===window.METRO_CALLBACK_TIMEOUT&&(window.METRO_CALLBACK_TIMEOUT=void 0!==r?parseInt(r):500),void 0===window.METRO_TIMEOUT&&(window.METRO_TIMEOUT=void 0!==l?parseInt(l):2e3),void 0===window.METRO_HOTKEYS_FILTER_CONTENT_EDITABLE&&(window.METRO_HOTKEYS_FILTER_CONTENT_EDITABLE=!0),void 0===window.METRO_HOTKEYS_FILTER_INPUT_ACCEPTING_ELEMENTS&&(window.METRO_HOTKEYS_FILTER_INPUT_ACCEPTING_ELEMENTS=!0),void 0===window.METRO_HOTKEYS_FILTER_TEXT_INPUTS&&(window.METRO_HOTKEYS_FILTER_TEXT_INPUTS=!0),void 0===window.METRO_HOTKEYS_BUBBLE_UP&&(window.METRO_HOTKEYS_BUBBLE_UP=!1),void 0===window.METRO_THROWS&&(window.METRO_THROWS=!0),window.METRO_MEDIA=[],"function"!=typeof Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),"function"!=typeof Object.values&&(Object.values=function(t){return Object.keys(t).map(function(e){return t[e]})});var g="ontouchstart"in window||0>16)+t;255>8&255)+t;255","/":"?","\\":"|"},textAcceptingInputTypes:["text","password","number","email","url","range","date","month","week","time","datetime","datetime-local","search","color","tel"],textInputTypes:/textarea|input|select/i,options:{filterInputAcceptingElements:METRO_HOTKEYS_FILTER_INPUT_ACCEPTING_ELEMENTS,filterTextInputs:METRO_HOTKEYS_FILTER_TEXT_INPUTS,filterContentEditable:METRO_HOTKEYS_FILTER_CONTENT_EDITABLE},keyHandler:function(e){if("string"==typeof e.data&&(e.data={keys:e.data}),e.data&&e.data.keys&&"string"==typeof e.data.keys){var r=e.handler,l=e.data.keys.toLowerCase().split(" ");e.handler=function(n){if(this===n.target||!(p.options.filterInputAcceptingElements&&p.textInputTypes.test(n.target.nodeName)||p.options.filterContentEditable&&T(n.target).attr("contenteditable")||p.options.filterTextInputs&&-1>>4&15)+n.charAt(15&t);return s}function y(e){for(var t,n,s="",i=-1;++i>>6&31,128|63&t):t<=65535?s+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(s+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return s}function w(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 k(e,t){e[t>>5]|=128<>>9<<4)]=t;for(var n=1732584193,s=-271733879,i=-1732584194,a=271733878,o=0;o>>32-r,n);var o,r}function O(e,t,n,s,i,a,o){return S(t&n|~t&s,e,t,i,a,o)}function I(e,t,n,s,i,a,o){return S(t&s|n&~s,e,t,i,a,o)}function M(e,t,n,s,i,a,o){return S(t^n^s,e,t,i,a,o)}function D(e,t,n,s,i,a,o){return S(n^(t|~s),e,t,i,a,o)}function A(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}var E,P,N=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],F="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],R=Array.prototype.slice;if(T.event.fixHooks)for(var B=N.length;B;)T.event.fixHooks[N[--B]]=T.event.mouseHooks;function H(e){var t,n=e||window.event,s=R.call(arguments,1),i=0,a=0,o=0,r=0,l=0;if((e=T.event.fix(n)).type="mousewheel","detail"in n&&(o=-1*n.detail),"wheelDelta"in n&&(o=n.wheelDelta),"wheelDeltaY"in n&&(o=n.wheelDeltaY),"wheelDeltaX"in n&&(a=-1*n.wheelDeltaX),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(a=-1*o,o=0),i=0===o?a:o,"deltaY"in n&&(i=o=-1*n.deltaY),"deltaX"in n&&(a=n.deltaX,0===o&&(i=-1*a)),0!==o||0!==a){if(1===n.deltaMode){var c=T.data(this,"mousewheel-line-height");i*=c,o*=c,a*=c}else if(2===n.deltaMode){var d=T.data(this,"mousewheel-page-height");i*=d,o*=d,a*=d}if(t=Math.max(Math.abs(o),Math.abs(a)),(!P||t"),i=0;i"),i=0;i/g,a=/(^( )?(var|if|for|else|switch|case|break|{|}|;))(.*)?/g,o="with(obj) { var r=[];\n",r=0,l=function(e,t){return o+=t?e.match(a)?e+"\n":"r.push("+e+");\n":""!==e?'r.push("'+e.replace(/"/g,'\\"')+'");\n':"",l};s=i.exec(e);)l(e.slice(r,s.index))(s[1],!0),r=s.index+s[0].length;l(e.substr(r,e.length-r)),o=(o+'return r.join(""); }').replace(/[\r\t\n]/g," ");try{n=new Function("obj",o).apply(t,[t])}catch(e){console.error("'"+e.message+"'"," in \n\nCode:\n",o,"\n")}return n};var G={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 T.each(["iframe","object","embed","video"],function(){-1!==e.indexOf(this)&&(t=!0)}),t},isVideoUrl:function(e){return/youtu\.be|youtube|vimeo/gi.test(e)},isDate:function(e,t){return!("object"!=typeof e||!G.isFunc(e.getMonth))||"Invalid Date"!==(G.isValue(t)?String(e).toDate(t):String(new Date(e)))},isInt:function(e){return Number(e)===e&&e%1==0},isFloat:function(e){return Number(e)===e&&e%1!=0},isTouchDevice:function(){return"ontouchstart"in window||0"+e+""},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()+G.random(1,1e3)},secondsToFormattedString:function(e){var t=parseInt(e,10),n=Math.floor(t/3600),s=Math.floor((t-3600*n)/60),i=t-3600*n-60*s;return n<10&&(n="0"+n),s<10&&(s="0"+s),i<10&&(i="0"+i),[n,s,i].join(":")},callback:function(e,t,n){return G.exec(e,t,n)},func:function(e){return new Function("a",e)},exec:function(e,t,n){var s;if(null==e)return!1;var i=G.isFunc(e);!1===i&&(i=G.func(e));try{s=i.apply(n,t)}catch(e){if(!(s=null)===METRO_THROWS)throw e}return s},isOutsider:function(e){var t,n=(e=G.isJQueryObject(e)?e:T(e)).clone();return n.removeAttr("data-role").css({visibility:"hidden",position:"absolute",display:"block"}),e.parent().append(n),t=n[0].getBoundingClientRect(),n.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=G.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"function"==typeof t&&e instanceof t&&(e=e[0]),e.getBoundingClientRect()},objectLength:function(e){return Object.keys(e).length},percent:function(e,t,n){if(0===e)return 0;var s=100*t/e;return!0===n?Math.round(s):Math.round(100*s)/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 T.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={};G.isJQueryObject(e)&&(e=e[0]);for(var n=0,s=e.style.length;n").addClass("circle").appendTo(n)}();break;case"square":!function(){for(e=0;e<4;e++)T("
").addClass("square").appendTo(n)}();break;case"cycle":T("
").addClass("cycle").appendTo(n);break;case"simple":T('').appendTo(n);break;default:!function(){for(e=0;e<5;e++)t=T("
").addClass("wrap").appendTo(n),T("
").addClass("circle").appendTo(t)}()}},changeAttribute:function(e){},destroy:function(){var e=this.element,t=this.options;e.html("").removeClass(t.style+"-style").removeClass("activity-"+t.type)}};_.plugin("activity",q);var X={init:function(e,t){return this.options=T.extend({},this.options,e),this.elem=t,this.element=T(t),this._setOptionsFromDOM(),this._create(),this},options:{expand:!(_.activity={open:function(e){var t='
',n=e.text?'
'+e.text+"
":"";return _.dialog.create({content:t+n,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:e.autoHide?e.autoHide:0,overlayClickClose:!0===e.overlayClickClose,overlayColor:e.overlayColor?e.overlayColor:"#000000",overlayAlpha:e.overlayAlpha?e.overlayAlpha:.5,clsOverlay:"global-overlay"})},close:function(e){_.dialog.close(e)}}),expandPoint:null,duration:100,onAppBarCreate:_.noop},_setOptionsFromDOM:function(){var e=this.element,s=this.options;T.each(e.data(),function(t,n){if(t in s)try{s[t]=JSON.parse(n)}catch(e){s[t]=n}})},_create:function(){var e=this.element,t=this.options;this._createStructure(),this._createEvents(),G.exec(t.onAppBarCreate,[e])},_createStructure:function(){var e,t,n=this.element,s=this.options,i=G.elementId("app-bar");if(n.addClass("app-bar"),0===(e=n.find(".hamburger")).length){e=T("").appendTo(n),a[s.view[e]["index-view"]]=n}),t=0;t").addClass("table-inspector"),T("
"+a.inspectorTitle+"
").appendTo(e),t=T("
").addClass("table-wrap").appendTo(e),n=T("").addClass("table subcompact"),s=T("").appendTo(n),n.appendTo(t),this._createInspectorItems(s),i=T("
").appendTo(e),T("
").addClass(a.clsHeadRow).appendTo(o),T.each(this.service,function(){var e=[];s=T("").addClass(s.clsFooter);n.find("tfoot").remove(),0!==this.foots.length&&(e=T("").addClass(s.clsHeadRow).appendTo(i),T.each(this.foots,function(){t=T("").appendTo(f),g=[];for(t=G.isValue(t)?t.toLowerCase():"all-filtered",n=G.isValue(n)?n:G.elementId("table")+"-export.csv",l=T(""),o=this.heads,a=0;a"),G.isValue(this.title)&&c.html(this.title),g[u.view[e]["index-view"]]=c)}),a=0;a"),o=r[i],a=0;a").html(this),g[u.view[e]["index-view"]]=c)}),a=0;a").addClass("tabs tabs-wrapper");if(G.isValue(s.expand)&&o.addClass("tabs-expand-"+s.expand),o.addClass(s.tabsPosition.replace(["-","_","+"]," ")),s.tabsPosition.contains("vertical")&&o.addClass("tabs-expand-fs"),n.addClass("tabs-list"),a||(o.insertBefore(n),n.appendTo(o)),n.data("expanded",!1),e=T("
").addClass("expand-title"),o.prepend(e),0===(t=o.find(".hamburger")).length){t=T("
"},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()+G.random(1,1e3)},secondsToFormattedString:function(e){var t=parseInt(e,10),n=Math.floor(t/3600),s=Math.floor((t-3600*n)/60),i=t-3600*n-60*s;return n<10&&(n="0"+n),s<10&&(s="0"+s),i<10&&(i="0"+i),[n,s,i].join(":")},callback:function(e,t,n){return G.exec(e,t,n)},func:function(e){return new Function("a",e)},exec:function(e,t,n){var s;if(null==e)return!1;var i=G.isFunc(e);!1===i&&(i=G.func(e));try{s=i.apply(n,t)}catch(e){if(!(s=null)===METRO_THROWS)throw e}return s},isOutsider:function(e){var t,n=(e=G.isJQueryObject(e)?e:T(e)).clone();return n.removeAttr("data-role").css({visibility:"hidden",position:"absolute",display:"block"}),e.parent().append(n),t=n[0].getBoundingClientRect(),n.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=G.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"function"==typeof t&&e instanceof t&&(e=e[0]),e.getBoundingClientRect()},objectLength:function(e){return Object.keys(e).length},percent:function(e,t,n){if(0===e)return 0;var s=100*t/e;return!0===n?Math.round(s):Math.round(100*s)/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 T.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={};G.isJQueryObject(e)&&(e=e[0]);for(var n=0,s=e.style.length;n").addClass("circle").appendTo(n)}();break;case"square":!function(){for(e=0;e<4;e++)T("
").addClass("square").appendTo(n)}();break;case"cycle":T("
").addClass("cycle").appendTo(n);break;case"simple":T('').appendTo(n);break;default:!function(){for(e=0;e<5;e++)t=T("
").addClass("wrap").appendTo(n),T("
").addClass("circle").appendTo(t)}()}},changeAttribute:function(e){},destroy:function(){var e=this.element,t=this.options;e.html("").removeClass(t.style+"-style").removeClass("activity-"+t.type)}};_.plugin("activity",q);var X={init:function(e,t){return this.options=T.extend({},this.options,e),this.elem=t,this.element=T(t),this._setOptionsFromDOM(),this._create(),this},options:{expand:!(_.activity={open:function(e){var t='
',n=e.text?'
'+e.text+"
":"";return _.dialog.create({content:t+n,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:e.autoHide?e.autoHide:0,overlayClickClose:!0===e.overlayClickClose,overlayColor:e.overlayColor?e.overlayColor:"#000000",overlayAlpha:e.overlayAlpha?e.overlayAlpha:.5,clsOverlay:"global-overlay"})},close:function(e){_.dialog.close(e)}}),expandPoint:null,duration:100,onAppBarCreate:_.noop},_setOptionsFromDOM:function(){var e=this.element,s=this.options;T.each(e.data(),function(t,n){if(t in s)try{s[t]=JSON.parse(n)}catch(e){s[t]=n}})},_create:function(){var e=this.element,t=this.options;this._createStructure(),this._createEvents(),G.exec(t.onAppBarCreate,[e])},_createStructure:function(){var e,t,n=this.element,s=this.options,i=G.elementId("app-bar");if(n.addClass("app-bar"),0===(e=n.find(".hamburger")).length){e=T("
").appendTo(t),G.isValue(this.title)&&s.html(this.title),G.isValue(this.size)&&s.css({width:this.size}),G.isValue(this.cls)&&e.push(this.cls),"rowcheck"===this.type&&e.push("check-cell"),"rownum"===this.type&&e.push("rownum-cell"),e.push(a.clsHeadCell),s.addClass(e.join(" "))}),n=this.heads,e=0;e")).data("index",e),G.isValue(t.title)&&s.html(t.title),G.isValue(t.format)&&s.attr("data-format",t.format),G.isValue(t.name)&&s.attr("data-name",t.name),G.isValue(t.colspan)&&s.attr("colspan",t.colspan),G.isValue(l[e].size)&&s.css({width:l[e].size}),!0===t.sortable&&(n.push("sortable-column"),G.isValue(t.sortDir)&&n.push("sort-"+t.sortDir)),G.isValue(t.cls)&&n.push(t.cls),!1===G.bool(l[e].show)&&n.push("hidden"),"rowcheck"===t.type&&n.push("check-cell"),"rownum"===t.type&&n.push("rownum-cell"),n.push(a.clsHeadCell),G.bool(l[e].show)&&G.arrayDelete(n,"hidden"),s.addClass(n.join(" ")),r[l[e]["index-view"]]=s}),e=0;e").addClass(this.options.clsBody).insertAfter(e)},_createTableFooter:function(){var e,t,n=this.element,s=this.options,i=T("
").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),G.isValue(this.colspan)&&t.attr("colspan",this.colspan),t.appendTo(e)})),n.append(i)},_createTopBlock:function(){var e,t,n,s=this,i=this.element,a=this.options,o=T("
").addClass("table-top").addClass(a.clsTableTop).insertBefore(i);return e=G.isValue(this.wrapperSearch)?this.wrapperSearch:T("
").addClass("table-search-block").addClass(a.clsSearch).appendTo(o),T("").attr("type","text").appendTo(e).input({prepend:a.tableSearchTitle}),!0!==a.showSearch&&e.hide(),t=G.isValue(this.wrapperRows)?this.wrapperRows:T("
").addClass("table-rows-block").addClass(a.clsRowsCount).appendTo(o),n=T("
").html(t+1),void 0!==s.service[0].clsColumn&&p.addClass(s.service[0].clsColumn),p.appendTo(u),p=T(""),f="checkbox"===a.checkType?T(""):T(""),G.isValue(c)&&Array.isArray(c)&&-1"),T("
").addClass("cell-wrapper").addClass(a.clsCellWrapper).html(this).appendTo(p)):p=T("
").html(this),p.addClass(a.clsBodyCell),G.isValue(s.heads[e].clsColumn)&&p.addClass(s.heads[e].clsColumn),!1===G.bool(d[e].show)&&p.addClass("hidden"),G.bool(d[e].show)&&p.removeClass("hidden"),v[d[e]["index-view"]]=p,G.exec(a.onDrawCell,[p,this,e,s.heads[e]],p[0])}),h=0;hthis.pagesCount?this.currentPage=this.pagesCount:this._draw())},prev:function(){0!==this.items.length&&(this.currentPage--,0!==this.currentPage?this._draw():this.currentPage=1)},first:function(){0!==this.items.length&&(this.currentPage=1,this._draw())},last:function(){0!==this.items.length&&(this.currentPage=this.pagesCount,this._draw())},page:function(e){e<=0&&(e=1),e>this.pagesCount&&(e=this.pagesCount),this.currentPage=e,this._draw()},addFilter:function(e,t){var n=G.isFunc(e);if(!1!==n)return this.filters.push(n),!0===t&&(this.currentPage=1,this.draw()),this.filters.length-1},removeFilter:function(e,t){return!(this.filters[e]=null)===t&&(this.currentPage=1,this.draw()),this},removeFilters:function(e){this.filters=[],!0===e&&(this.currentPage=1,this.draw())},getItems:function(){return this.items},getHeads:function(){return this.heads},getView:function(){return this.view},getFilteredItems:function(){return 0").appendTo(f),v=T("
").html("").appendTo(n),T("").html(this.title).appendTo(n),T("").html("").appendTo(n),T("").html("").appendTo(n),a[s.view[e]["index-view"]]=n}),t=0;t").addClass("table-inspector"),T("
"+a.inspectorTitle+"
").appendTo(e),t=T("
").addClass("table-wrap").appendTo(e),n=T("").addClass("table subcompact"),s=T("").appendTo(n),n.appendTo(t),this._createInspectorItems(s),i=T("
").appendTo(e),T("
").addClass(a.clsHeadRow).appendTo(o),T.each(this.service,function(){var e=[];s=T("").addClass(s.clsFooter);n.find("tfoot").remove(),0!==this.foots.length&&(e=T("").addClass(s.clsHeadRow).appendTo(i),T.each(this.foots,function(){t=T("").appendTo(f),g=[];for(t=G.isValue(t)?t.toLowerCase():"all-filtered",n=G.isValue(n)?n:G.elementId("table")+"-export.csv",l=T(""),o=this.heads,a=0;a"),G.isValue(this.title)&&c.html(this.title),g[u.view[e]["index-view"]]=c)}),a=0;a"),o=r[i],a=0;a").html(this),g[u.view[e]["index-view"]]=c)}),a=0;a").addClass("tabs tabs-wrapper");if(G.isValue(s.expand)&&o.addClass("tabs-expand-"+s.expand),o.addClass(s.tabsPosition.replace(["-","_","+"]," ")),s.tabsPosition.contains("vertical")&&o.addClass("tabs-expand-fs"),n.addClass("tabs-list"),a||(o.insertBefore(n),n.appendTo(o)),n.data("expanded",!1),e=T("
").addClass("expand-title"),o.prepend(e),0===(t=o.find(".hamburger")).length){t=T("
"},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()+G.random(1,1e3)},secondsToFormattedString:function(e){var t=parseInt(e,10),n=Math.floor(t/3600),s=Math.floor((t-3600*n)/60),i=t-3600*n-60*s;return n<10&&(n="0"+n),s<10&&(s="0"+s),i<10&&(i="0"+i),[n,s,i].join(":")},callback:function(e,t,n){return G.exec(e,t,n)},func:function(e){return new Function("a",e)},exec:function(e,t,n){var s;if(null==e)return!1;var i=G.isFunc(e);!1===i&&(i=G.func(e));try{s=i.apply(n,t)}catch(e){if(!(s=null)===METRO_THROWS)throw e}return s},isOutsider:function(e){var t,n=(e=G.isJQueryObject(e)?e:T(e)).clone();return n.removeAttr("data-role").css({visibility:"hidden",position:"absolute",display:"block"}),e.parent().append(n),t=n[0].getBoundingClientRect(),n.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=G.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"function"==typeof t&&e instanceof t&&(e=e[0]),e.getBoundingClientRect()},objectLength:function(e){return Object.keys(e).length},percent:function(e,t,n){if(0===e)return 0;var s=100*t/e;return!0===n?Math.round(s):Math.round(100*s)/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 T.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={};G.isJQueryObject(e)&&(e=e[0]);for(var n=0,s=e.style.length;n").addClass("circle").appendTo(n)}();break;case"square":!function(){for(e=0;e<4;e++)T("
").addClass("square").appendTo(n)}();break;case"cycle":T("
").addClass("cycle").appendTo(n);break;case"simple":T('').appendTo(n);break;default:!function(){for(e=0;e<5;e++)t=T("
").addClass("wrap").appendTo(n),T("
").addClass("circle").appendTo(t)}()}},changeAttribute:function(e){},destroy:function(){var e=this.element,t=this.options;e.html("").removeClass(t.style+"-style").removeClass("activity-"+t.type)}};_.plugin("activity",q);var X={init:function(e,t){return this.options=T.extend({},this.options,e),this.elem=t,this.element=T(t),this._setOptionsFromDOM(),this._create(),this},options:{expand:!(_.activity={open:function(e){var t='
',n=e.text?'
'+e.text+"
":"";return _.dialog.create({content:t+n,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:e.autoHide?e.autoHide:0,overlayClickClose:!0===e.overlayClickClose,overlayColor:e.overlayColor?e.overlayColor:"#000000",overlayAlpha:e.overlayAlpha?e.overlayAlpha:.5,clsOverlay:"global-overlay"})},close:function(e){_.dialog.close(e)}}),expandPoint:null,duration:100,onAppBarCreate:_.noop},_setOptionsFromDOM:function(){var e=this.element,s=this.options;T.each(e.data(),function(t,n){if(t in s)try{s[t]=JSON.parse(n)}catch(e){s[t]=n}})},_create:function(){var e=this.element,t=this.options;this._createStructure(),this._createEvents(),G.exec(t.onAppBarCreate,[e])},_createStructure:function(){var e,t,n=this.element,s=this.options,i=G.elementId("app-bar");if(n.addClass("app-bar"),0===(e=n.find(".hamburger")).length){e=T("
").appendTo(t),G.isValue(this.title)&&s.html(this.title),G.isValue(this.size)&&s.css({width:this.size}),G.isValue(this.cls)&&e.push(this.cls),"rowcheck"===this.type&&e.push("check-cell"),"rownum"===this.type&&e.push("rownum-cell"),e.push(a.clsHeadCell),s.addClass(e.join(" "))}),n=this.heads,e=0;e")).data("index",e),G.isValue(t.title)&&s.html(t.title),G.isValue(t.format)&&s.attr("data-format",t.format),G.isValue(t.name)&&s.attr("data-name",t.name),G.isValue(t.colspan)&&s.attr("colspan",t.colspan),G.isValue(l[e].size)&&s.css({width:l[e].size}),!0===t.sortable&&(n.push("sortable-column"),G.isValue(t.sortDir)&&n.push("sort-"+t.sortDir)),G.isValue(t.cls)&&n.push(t.cls),!1===G.bool(l[e].show)&&n.push("hidden"),"rowcheck"===t.type&&n.push("check-cell"),"rownum"===t.type&&n.push("rownum-cell"),n.push(a.clsHeadCell),G.bool(l[e].show)&&G.arrayDelete(n,"hidden"),s.addClass(n.join(" ")),r[l[e]["index-view"]]=s}),e=0;e").addClass(this.options.clsBody).insertAfter(e)},_createTableFooter:function(){var e,t,n=this.element,s=this.options,i=T("
").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),G.isValue(this.colspan)&&t.attr("colspan",this.colspan),t.appendTo(e)})),n.append(i)},_createTopBlock:function(){var e,t,n,s=this,i=this.element,a=this.options,o=T("
").addClass("table-top").addClass(a.clsTableTop).insertBefore(i);return e=G.isValue(this.wrapperSearch)?this.wrapperSearch:T("
").addClass("table-search-block").addClass(a.clsSearch).appendTo(o),T("").attr("type","text").appendTo(e).input({prepend:a.tableSearchTitle}),!0!==a.showSearch&&e.hide(),t=G.isValue(this.wrapperRows)?this.wrapperRows:T("
").addClass("table-rows-block").addClass(a.clsRowsCount).appendTo(o),n=T("
").html(t+1),void 0!==s.service[0].clsColumn&&p.addClass(s.service[0].clsColumn),p.appendTo(u),p=T(""),f="checkbox"===a.checkType?T(""):T(""),G.isValue(c)&&Array.isArray(c)&&-1"),T("
").addClass("cell-wrapper").addClass(a.clsCellWrapper).html(this).appendTo(p)):p=T("
").html(this),p.addClass(a.clsBodyCell),G.isValue(s.heads[e].clsColumn)&&p.addClass(s.heads[e].clsColumn),!1===G.bool(d[e].show)&&p.addClass("hidden"),G.bool(d[e].show)&&p.removeClass("hidden"),v[d[e]["index-view"]]=p,G.exec(a.onDrawCell,[p,this,e,s.heads[e]],p[0])}),h=0;hthis.pagesCount?this.currentPage=this.pagesCount:this._draw())},prev:function(){0!==this.items.length&&(this.currentPage--,0!==this.currentPage?this._draw():this.currentPage=1)},first:function(){0!==this.items.length&&(this.currentPage=1,this._draw())},last:function(){0!==this.items.length&&(this.currentPage=this.pagesCount,this._draw())},page:function(e){e<=0&&(e=1),e>this.pagesCount&&(e=this.pagesCount),this.currentPage=e,this._draw()},addFilter:function(e,t){var n=G.isFunc(e);if(!1!==n)return this.filters.push(n),!0===t&&(this.currentPage=1,this.draw()),this.filters.length-1},removeFilter:function(e,t){return!(this.filters[e]=null)===t&&(this.currentPage=1,this.draw()),this},removeFilters:function(e){this.filters=[],!0===e&&(this.currentPage=1,this.draw())},getItems:function(){return this.items},getHeads:function(){return this.heads},getView:function(){return this.view},getFilteredItems:function(){return 0").appendTo(f),v=T("
").html("").appendTo(n),T("").html(this.title).appendTo(n),T("").html("").appendTo(n),T("").html("").appendTo(n),a[s.view[e]["index-view"]]=n}),t=0;t").addClass("table-inspector"),T("
"+a.inspectorTitle+"
").appendTo(e),t=T("
").addClass("table-wrap").appendTo(e),n=T("").addClass("table subcompact"),s=T("").appendTo(n),n.appendTo(t),this._createInspectorItems(s),i=T("
").appendTo(e),T("
").addClass(a.clsHeadRow).appendTo(o),T.each(this.service,function(){var e=[];s=T("").addClass(s.clsFooter);n.find("tfoot").remove(),0!==this.foots.length&&(e=T("").addClass(s.clsHeadRow).appendTo(i),T.each(this.foots,function(){t=T("").appendTo(f),g=[];for(t=G.isValue(t)?t.toLowerCase():"all-filtered",n=G.isValue(n)?n:G.elementId("table")+"-export.csv",l=T(""),o=this.heads,a=0;a"),G.isValue(this.title)&&c.html(this.title),g[u.view[e]["index-view"]]=c)}),a=0;a"),o=r[i],a=0;a").html(this),g[u.view[e]["index-view"]]=c)}),a=0;a").addClass("tabs tabs-wrapper");if(G.isValue(s.expand)&&o.addClass("tabs-expand-"+s.expand),o.addClass(s.tabsPosition.replace(["-","_","+"]," ")),s.tabsPosition.contains("vertical")&&o.addClass("tabs-expand-fs"),n.addClass("tabs-list"),a||(o.insertBefore(n),n.appendTo(o)),n.data("expanded",!1),e=T("
").addClass("expand-title"),o.prepend(e),0===(t=o.find(".hamburger")).length){t=T("
"},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()+G.random(1,1e3)},secondsToFormattedString:function(e){var t=parseInt(e,10),n=Math.floor(t/3600),s=Math.floor((t-3600*n)/60),i=t-3600*n-60*s;return n<10&&(n="0"+n),s<10&&(s="0"+s),i<10&&(i="0"+i),[n,s,i].join(":")},callback:function(e,t,n){return G.exec(e,t,n)},func:function(e){return new Function("a",e)},exec:function(e,t,n){var s;if(null==e)return!1;var i=G.isFunc(e);!1===i&&(i=G.func(e));try{s=i.apply(n,t)}catch(e){if(!(s=null)===METRO_THROWS)throw e}return s},isOutsider:function(e){var t,n=(e=G.isJQueryObject(e)?e:T(e)).clone();return n.removeAttr("data-role").css({visibility:"hidden",position:"absolute",display:"block"}),e.parent().append(n),t=n[0].getBoundingClientRect(),n.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=G.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"function"==typeof t&&e instanceof t&&(e=e[0]),e.getBoundingClientRect()},objectLength:function(e){return Object.keys(e).length},percent:function(e,t,n){if(0===e)return 0;var s=100*t/e;return!0===n?Math.round(s):Math.round(100*s)/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 T.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={};G.isJQueryObject(e)&&(e=e[0]);for(var n=0,s=e.style.length;n").addClass("circle").appendTo(n)}();break;case"square":!function(){for(e=0;e<4;e++)T("
").addClass("square").appendTo(n)}();break;case"cycle":T("
").addClass("cycle").appendTo(n);break;case"simple":T('').appendTo(n);break;default:!function(){for(e=0;e<5;e++)t=T("
").addClass("wrap").appendTo(n),T("
").addClass("circle").appendTo(t)}()}},changeAttribute:function(e){},destroy:function(){var e=this.element,t=this.options;e.html("").removeClass(t.style+"-style").removeClass("activity-"+t.type)}};_.plugin("activity",q);var X={init:function(e,t){return this.options=T.extend({},this.options,e),this.elem=t,this.element=T(t),this._setOptionsFromDOM(),this._create(),this},options:{expand:!(_.activity={open:function(e){var t='
',n=e.text?'
'+e.text+"
":"";return _.dialog.create({content:t+n,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:e.autoHide?e.autoHide:0,overlayClickClose:!0===e.overlayClickClose,overlayColor:e.overlayColor?e.overlayColor:"#000000",overlayAlpha:e.overlayAlpha?e.overlayAlpha:.5,clsOverlay:"global-overlay"})},close:function(e){_.dialog.close(e)}}),expandPoint:null,duration:100,onAppBarCreate:_.noop},_setOptionsFromDOM:function(){var e=this.element,s=this.options;T.each(e.data(),function(t,n){if(t in s)try{s[t]=JSON.parse(n)}catch(e){s[t]=n}})},_create:function(){var e=this.element,t=this.options;this._createStructure(),this._createEvents(),G.exec(t.onAppBarCreate,[e])},_createStructure:function(){var e,t,n=this.element,s=this.options,i=G.elementId("app-bar");if(n.addClass("app-bar"),0===(e=n.find(".hamburger")).length){e=T("
").appendTo(t),G.isValue(this.title)&&s.html(this.title),G.isValue(this.size)&&s.css({width:this.size}),G.isValue(this.cls)&&e.push(this.cls),"rowcheck"===this.type&&e.push("check-cell"),"rownum"===this.type&&e.push("rownum-cell"),e.push(a.clsHeadCell),s.addClass(e.join(" "))}),n=this.heads,e=0;e")).data("index",e),G.isValue(t.title)&&s.html(t.title),G.isValue(t.format)&&s.attr("data-format",t.format),G.isValue(t.name)&&s.attr("data-name",t.name),G.isValue(t.colspan)&&s.attr("colspan",t.colspan),G.isValue(l[e].size)&&s.css({width:l[e].size}),!0===t.sortable&&(n.push("sortable-column"),G.isValue(t.sortDir)&&n.push("sort-"+t.sortDir)),G.isValue(t.cls)&&n.push(t.cls),!1===G.bool(l[e].show)&&n.push("hidden"),"rowcheck"===t.type&&n.push("check-cell"),"rownum"===t.type&&n.push("rownum-cell"),n.push(a.clsHeadCell),G.bool(l[e].show)&&G.arrayDelete(n,"hidden"),s.addClass(n.join(" ")),r[l[e]["index-view"]]=s}),e=0;e").addClass(this.options.clsBody).insertAfter(e)},_createTableFooter:function(){var e,t,n=this.element,s=this.options,i=T("
").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),G.isValue(this.colspan)&&t.attr("colspan",this.colspan),t.appendTo(e)})),n.append(i)},_createTopBlock:function(){var e,t,n,s=this,i=this.element,a=this.options,o=T("
").addClass("table-top").addClass(a.clsTableTop).insertBefore(i);return e=G.isValue(this.wrapperSearch)?this.wrapperSearch:T("
").addClass("table-search-block").addClass(a.clsSearch).appendTo(o),T("").attr("type","text").appendTo(e).input({prepend:a.tableSearchTitle}),!0!==a.showSearch&&e.hide(),t=G.isValue(this.wrapperRows)?this.wrapperRows:T("
").addClass("table-rows-block").addClass(a.clsRowsCount).appendTo(o),n=T("
").html(t+1),void 0!==s.service[0].clsColumn&&p.addClass(s.service[0].clsColumn),p.appendTo(u),p=T(""),f="checkbox"===a.checkType?T(""):T(""),G.isValue(c)&&Array.isArray(c)&&-1"),T("
").addClass("cell-wrapper").addClass(a.clsCellWrapper).html(this).appendTo(p)):p=T("
").html(this),p.addClass(a.clsBodyCell),G.isValue(s.heads[e].clsColumn)&&p.addClass(s.heads[e].clsColumn),!1===G.bool(d[e].show)&&p.addClass("hidden"),G.bool(d[e].show)&&p.removeClass("hidden"),v[d[e]["index-view"]]=p,G.exec(a.onDrawCell,[p,this,e,s.heads[e]],p[0])}),h=0;hthis.pagesCount?this.currentPage=this.pagesCount:this._draw())},prev:function(){0!==this.items.length&&(this.currentPage--,0!==this.currentPage?this._draw():this.currentPage=1)},first:function(){0!==this.items.length&&(this.currentPage=1,this._draw())},last:function(){0!==this.items.length&&(this.currentPage=this.pagesCount,this._draw())},page:function(e){e<=0&&(e=1),e>this.pagesCount&&(e=this.pagesCount),this.currentPage=e,this._draw()},addFilter:function(e,t){var n=G.isFunc(e);if(!1!==n)return this.filters.push(n),!0===t&&(this.currentPage=1,this.draw()),this.filters.length-1},removeFilter:function(e,t){return!(this.filters[e]=null)===t&&(this.currentPage=1,this.draw()),this},removeFilters:function(e){this.filters=[],!0===e&&(this.currentPage=1,this.draw())},getItems:function(){return this.items},getHeads:function(){return this.heads},getView:function(){return this.view},getFilteredItems:function(){return 0").appendTo(f),v=T("
").html("").appendTo(n),T("").html(this.title).appendTo(n),T("").html("").appendTo(n),T("").html("").appendTo(n),a[s.view[e]["index-view"]]=n}),t=0;t").addClass("table-inspector"),T("
"+a.inspectorTitle+"
").appendTo(e),t=T("
").addClass("table-wrap").appendTo(e),n=T("").addClass("table subcompact"),s=T("").appendTo(n),n.appendTo(t),this._createInspectorItems(s),i=T("
").appendTo(e),T("
").addClass(a.clsHeadRow).appendTo(o),T.each(this.service,function(){var e=[];s=T("").addClass(s.clsFooter);n.find("tfoot").remove(),0!==this.foots.length&&(e=T("").addClass(s.clsHeadRow).appendTo(i),T.each(this.foots,function(){t=T("").appendTo(f),g=[];for(t=G.isValue(t)?t.toLowerCase():"all-filtered",n=G.isValue(n)?n:G.elementId("table")+"-export.csv",l=T(""),o=this.heads,a=0;a"),G.isValue(this.title)&&c.html(this.title),g[u.view[e]["index-view"]]=c)}),a=0;a"),o=r[i],a=0;a").html(this),g[u.view[e]["index-view"]]=c)}),a=0;a").addClass("tabs tabs-wrapper");if(G.isValue(s.expand)&&o.addClass("tabs-expand-"+s.expand),o.addClass(s.tabsPosition.replace(["-","_","+"]," ")),s.tabsPosition.contains("vertical")&&o.addClass("tabs-expand-fs"),n.addClass("tabs-list"),a||(o.insertBefore(n),n.appendTo(o)),n.data("expanded",!1),e=T("
").addClass("expand-title"),o.prepend(e),0===(t=o.find(".hamburger")).length){t=T("
").appendTo(t),G.isValue(this.title)&&s.html(this.title),G.isValue(this.size)&&s.css({width:this.size}),G.isValue(this.cls)&&e.push(this.cls),"rowcheck"===this.type&&e.push("check-cell"),"rownum"===this.type&&e.push("rownum-cell"),e.push(a.clsHeadCell),s.addClass(e.join(" "))}),n=this.heads,e=0;e")).data("index",e),G.isValue(t.title)&&s.html(t.title),G.isValue(t.format)&&s.attr("data-format",t.format),G.isValue(t.name)&&s.attr("data-name",t.name),G.isValue(t.colspan)&&s.attr("colspan",t.colspan),G.isValue(l[e].size)&&s.css({width:l[e].size}),!0===t.sortable&&(n.push("sortable-column"),G.isValue(t.sortDir)&&n.push("sort-"+t.sortDir)),G.isValue(t.cls)&&n.push(t.cls),!1===G.bool(l[e].show)&&n.push("hidden"),"rowcheck"===t.type&&n.push("check-cell"),"rownum"===t.type&&n.push("rownum-cell"),n.push(a.clsHeadCell),G.bool(l[e].show)&&G.arrayDelete(n,"hidden"),s.addClass(n.join(" ")),r[l[e]["index-view"]]=s}),e=0;e").addClass(this.options.clsBody).insertAfter(e)},_createTableFooter:function(){var e,t,n=this.element,s=this.options,i=T("
").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),G.isValue(this.colspan)&&t.attr("colspan",this.colspan),t.appendTo(e)})),n.append(i)},_createTopBlock:function(){var e,t,n,s=this,i=this.element,a=this.options,o=T("
").addClass("table-top").addClass(a.clsTableTop).insertBefore(i);return e=G.isValue(this.wrapperSearch)?this.wrapperSearch:T("
").addClass("table-search-block").addClass(a.clsSearch).appendTo(o),T("").attr("type","text").appendTo(e).input({prepend:a.tableSearchTitle}),!0!==a.showSearch&&e.hide(),t=G.isValue(this.wrapperRows)?this.wrapperRows:T("
").addClass("table-rows-block").addClass(a.clsRowsCount).appendTo(o),n=T("
").html(t+1),void 0!==s.service[0].clsColumn&&p.addClass(s.service[0].clsColumn),p.appendTo(u),p=T(""),f="checkbox"===a.checkType?T(""):T(""),G.isValue(c)&&Array.isArray(c)&&-1"),T("
").addClass("cell-wrapper").addClass(a.clsCellWrapper).html(this).appendTo(p)):p=T("
").html(this),p.addClass(a.clsBodyCell),G.isValue(s.heads[e].clsColumn)&&p.addClass(s.heads[e].clsColumn),!1===G.bool(d[e].show)&&p.addClass("hidden"),G.bool(d[e].show)&&p.removeClass("hidden"),v[d[e]["index-view"]]=p,G.exec(a.onDrawCell,[p,this,e,s.heads[e]],p[0])}),h=0;hthis.pagesCount?this.currentPage=this.pagesCount:this._draw())},prev:function(){0!==this.items.length&&(this.currentPage--,0!==this.currentPage?this._draw():this.currentPage=1)},first:function(){0!==this.items.length&&(this.currentPage=1,this._draw())},last:function(){0!==this.items.length&&(this.currentPage=this.pagesCount,this._draw())},page:function(e){e<=0&&(e=1),e>this.pagesCount&&(e=this.pagesCount),this.currentPage=e,this._draw()},addFilter:function(e,t){var n=G.isFunc(e);if(!1!==n)return this.filters.push(n),!0===t&&(this.currentPage=1,this.draw()),this.filters.length-1},removeFilter:function(e,t){return!(this.filters[e]=null)===t&&(this.currentPage=1,this.draw()),this},removeFilters:function(e){this.filters=[],!0===e&&(this.currentPage=1,this.draw())},getItems:function(){return this.items},getHeads:function(){return this.heads},getView:function(){return this.view},getFilteredItems:function(){return 0").appendTo(f),v=T("