From 18ceb374dc160b86da836c3771691e2ee45d03c6 Mon Sep 17 00:00:00 2001 From: Ronny Weiss <30749177+RonnyWeiss@users.noreply.github.com> Date: Tue, 17 Aug 2021 23:25:24 +0200 Subject: [PATCH] update version in js after chart lib update --- apexplugin.json | 2 +- build/bida.pkgd.min.js | 2 +- demoApp/Demo_App.sql | 6 +++--- js/script.js | 2 +- region_type_plugin_apex_bi_dashboard_d3.sql | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apexplugin.json b/apexplugin.json index a459ed9..2c1106b 100644 --- a/apexplugin.json +++ b/apexplugin.json @@ -1,6 +1,6 @@ { "name": "APEX Material BI Dashboard", - "version": "1.0.0.19", + "version": "1.0.0.20", "description": "This plug-in allows to integrate a freely configurable dashboard into Oracle APEX.
It offers many display options, e.g. charts, lists, KPI cards, world map, tables, HTML, analog clock, calendar and much more. Each dashboard item can be customized, even at runtime without page submit!
The main advantage of the dashboard is that end-users of your APEX app can configure one or more dashboards at runtime without having to touch the region or page by a developer! This was not possible in APEX so far! Of course, the dashboard can also be used as a fixed region.
The plug-in requires an APEX 5.1.3 or newer and an Oracle 12c or newer. The Sample App requires an APEX 20.2 or newer. However, you can quickly install it in a free workspace on apex.oracle.com and then get started right away with the help of the Sample App!
The item dialog in the Sample App is just a very simplified example, of course in your application the respective data source (table, view, function...) and many setting options for the respective dashboard item can be offered there.
You can find a tutorial at
https:\/\/www.youtube.com/playlist?list=PL9daxiSwWyTbIm8fTa0ypeC6dFfMgXALq
", "keywords": ["oracle", "apex", "plugin", "charts", "region", "responsive", "d3"], "homepage": "https://github.com/RonnyWeiss/APEX-Material-BI-Dashboard", diff --git a/build/bida.pkgd.min.js b/build/bida.pkgd.min.js index 0b7c687..5c54aec 100644 --- a/build/bida.pkgd.min.js +++ b/build/bida.pkgd.min.js @@ -1 +1 @@ -!function(e,i){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)}(window,function(t,e){"use strict";var i=Array.prototype.slice,n=t.console,u=void 0===n?function(){}:function(t){n.error(t)};function a(l,d,c){(c=c||e||t.jQuery)&&(d.prototype.option||(d.prototype.option=function(t){c.isPlainObject(t)&&(this.options=c.extend(!0,this.options,t))}),c.fn[l]=function(t){if("string"!=typeof t)return s=t,this.each(function(t,e){var i=c.data(e,l);i?(i.option(s),i._init()):(i=new d(e,s),c.data(e,l,i))}),this;var n,a,o,r,s,e=i.call(arguments,1);return a=e,r="$()."+l+'("'+(n=t)+'")',(t=this).each(function(t,e){var i=c.data(e,l);i?(e=i[n])&&"_"!=n.charAt(0)?(i=e.apply(i,a),o=void 0===o?i:o):u(r+" is not a valid method"):u(l+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==o?o:t},o(c))}function o(t){!t||t&&t.bridget||(t.bridget=a)}return o(e||t.jQuery),a}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},t=i[t]=i[t]||[];return-1==t.indexOf(e)&&t.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length){e=t.indexOf(e);return-1!=e&&t.splice(e,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],a=0;a")}},quote:{icon:"“ ”",title:"Quote",result:function(){return d(f,"
")}},olist:{icon:"#",title:"Ordered List",result:function(){return d("insertOrderedList")}},ulist:{icon:"•",title:"Unordered List",result:function(){return d("insertUnorderedList")}},code:{icon:"</>",title:"Code",result:function(){return d(f,"")}},line:{icon:"―",title:"Horizontal Line",result:function(){return d("insertHorizontalRule")}},link:{icon:"🔗",title:"Link",result:function(){var t=window.prompt("Enter the link URL");t&&d("createLink",t)}},image:{icon:"📷",title:"Image",result:function(){var t=window.prompt("Enter the image URL");t&&d("insertImage",t)}}},h={actionbar:"pell-actionbar",button:"pell-button",content:"pell-content",selected:"pell-button-selected"},n={exec:d,init:i};t.exec=d,t.init=i,t.default=n,Object.defineProperty(t,"__esModule",{value:!0})}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).DOMPurify=e()}(this,function(){"use strict";var n,a=Object.hasOwnProperty,o=Object.setPrototypeOf,r=Object.isFrozen,s=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,Nt=Object.freeze,t=Object.seal,d=Object.create,e="undefined"!=typeof Reflect&&Reflect,c=(c=e.apply)||function(t,e,i){return t.apply(e,i)},Nt=Nt||function(t){return t},t=t||function(t){return t},u=(u=e.construct)||function(t,e){return new(Function.prototype.bind.apply(t,[null].concat(function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e/gm),ee=t(/^data-[\-\w.\u00B7-\uFFFF]/),ie=t(/^aria-[\-\w]+$/),ne=t(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ae=t(/^(?:\w+script|data):/i),oe=t(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function se(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e "+t:i=(n=zt(t,/^[\r\n\t ]+/))&&n[0];var n=D?D.createHTML(t):t;if(ct===dt)try{e=(new m).parseFromString(n,"text/html")}catch(t){}if(!e||!e.documentElement){e=w.createDocument(ct,"template",null);try{e.documentElement.innerHTML=ut?"":n}catch(t){}}return n=e.body||e.documentElement,t&&i&&n.insertBefore(a.createTextNode(i),n.childNodes[0]||null),Y?e.documentElement:n}function xt(t){return C.call(t.ownerDocument||t,t,n.SHOW_ELEMENT|n.SHOW_COMMENT|n.SHOW_TEXT,null,!1)}function wt(t){return"object"===(void 0===u?"undefined":re(u))?t instanceof u:t&&"object"===(void 0===t?"undefined":re(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName}function Ct(t,e,i){T[t]&&St(T[t],function(t){t.call(c,e,i,ft)})}function kt(t){var e;if(Ct("beforeSanitizeElements",t,null),!((i=t)instanceof p||i instanceof h||"string"==typeof i.nodeName&&"string"==typeof i.textContent&&"function"==typeof i.removeChild&&i.attributes instanceof f&&"function"==typeof i.removeAttribute&&"function"==typeof i.setAttribute&&"string"==typeof i.namespaceURI&&"function"==typeof i.insertBefore))return vt(t),1;if(zt(t.nodeName,/[\u0080-\uFFFF]/))return vt(t),1;var i=Et(t.nodeName);if(Ct("uponSanitizeElement",t,{tagName:i,allowedTags:R}),!wt(t.firstElementChild)&&(!wt(t.content)||!wt(t.content.firstElementChild))&&Ht(/<[/\w]/g,t.innerHTML)&&Ht(/<[/\w]/g,t.textContent))return vt(t),1;if(R[i]&&!B[i])return t instanceof r&&!function(t){var e=y(t);e&&e.tagName||(e={namespaceURI:dt,tagName:"template"});var i=Et(t.tagName),n=Et(e.tagName);return t.namespaceURI===lt?e.namespaceURI===dt?"svg"===i:e.namespaceURI===st?"svg"===i&&("annotation-xml"===n||ht[n]):Boolean(gt[i]):t.namespaceURI===st?e.namespaceURI===dt?"math"===i:e.namespaceURI===lt?"math"===i&&mt[n]:Boolean(bt[i]):t.namespaceURI===dt&&((e.namespaceURI!==lt||mt[n])&&((e.namespaceURI!==st||ht[n])&&(n=jt({},["title","style","font","a","script"]),!bt[i]&&(n[i]||!gt[i]))))}(t)||("noscript"===i||"noembed"===i)&&Ht(/<\/no(script|embed)/i,t.innerHTML)?(vt(t),1):(q&&3===t.nodeType&&(e=t.textContent,e=Lt(e,S," "),e=Lt(e,M," "),t.textContent!==e&&(Ot(c.removed,{element:t.cloneNode()}),t.textContent=e)),Ct("afterSanitizeElements",t,null),0);if(tt&&!it[i]){var n=y(t)||t.parentNode,a=v(t)||t.childNodes;if(a&&n)for(var o=a.length-1;0<=o;--o)n.insertBefore(g(a[o],!0),b(t))}return vt(t),1}function It(t,e,i){if(K&&("id"===e||"name"===e)&&(i in a||i in pt))return!1;if(!(U&&Ht(O,e)||P&&Ht(E,e))){if(!W[e]||F[e])return!1;if(!ot[e]&&!Ht(_,Lt(i,L,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==_t(i,"data:")||!nt[t])&&(!G||Ht(z,Lt(i,L,"")))&&i)return!1}return!0}function Tt(t){var e=void 0,i=void 0,n=void 0;Ct("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){for(var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W},n=a.length;n--;){var r=(e=a[n]).name,s=e.namespaceURI,i=Rt(e.value),l=Et(r);if(o.attrName=l,o.attrValue=i,o.keepAttr=!0,o.forceKeepAttr=void 0,Ct("uponSanitizeAttribute",t,o),i=o.attrValue,!o.forceKeepAttr&&(yt(r,t),o.keepAttr))if(Ht(/\/>/i,i))yt(r,t);else{q&&(i=Lt(i,S," "),i=Lt(i,M," "));var d=t.nodeName.toLowerCase();if(It(d,l,i))try{s?t.setAttributeNS(s,r,i):t.setAttribute(r,i),Mt(c.removed)}catch(t){}}}Ct("afterSanitizeAttributes",t,null)}}function At(t){var e,i=xt(t);for(Ct("beforeSanitizeShadowDOM",t,null);e=i.nextNode();)Ct("uponSanitizeShadowNode",e,null),kt(e)||(e.content instanceof d&&At(e.content),Tt(e));Ct("afterSanitizeShadowDOM",t,null)}return c.sanitize=function(t,e){var i,n=void 0,a=void 0,o=void 0;if("string"!=typeof(t=(ut=!t)?"\x3c!--\x3e":t)&&!wt(t)){if("function"!=typeof t.toString)throw Wt("toString is not a function");if("string"!=typeof(t=t.toString()))throw Wt("dirty is not a string, aborting")}if(!c.isSupported){if("object"===re(s.toStaticHTML)||"function"==typeof s.toStaticHTML){if("string"==typeof t)return s.toStaticHTML(t);if(wt(t))return s.toStaticHTML(t.outerHTML)}return t}if(J||A(e),c.removed=[],"string"==typeof t&&(et=!1),!et)if(t instanceof u)1===(e=(n=Dt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===e.nodeName||"HTML"===e.nodeName?n=e:n.appendChild(e);else{if(!Q&&!q&&!Y&&-1===t.indexOf("<"))return D&&Z?D.createHTML(t):t;if(!(n=Dt(t)))return Q?null:x}n&&V&&vt(n.firstChild);for(var r=xt(et?t:n);i=r.nextNode();)3===i.nodeType&&i===a||kt(i)||(i.content instanceof d&&At(i.content),Tt(i),a=i);if(a=null,et)return t;if(Q){if($)for(o=k.call(n.ownerDocument);n.firstChild;)o.appendChild(n.firstChild);else o=n;return o=X?I.call(l,o,!0):o}return t=Y?n.outerHTML:n.innerHTML,q&&(t=Lt(t,S," "),t=Lt(t,M," ")),D&&Z?D.createHTML(t):t},c.setConfig=function(t){A(t),J=!0},c.clearConfig=function(){ft=null,J=!1},c.isValidAttribute=function(t,e,i){return ft||A({}),t=Et(t),e=Et(e),It(t,e,i)},c.addHook=function(t,e){"function"==typeof e&&(T[t]=T[t]||[],Ot(T[t],e))},c.removeHook=function(t){T[t]&&Mt(T[t])},c.removeHooks=function(t){T[t]&&(T[t]=[])},c.removeAllHooks=function(){T={}},c}()});var apexBIDashBoard=function(Ft,Pt){"use strict";var Ut={featureDetails:{name:"Material-BI-Dashboard",scriptVersion:"1.0.0.19",utilVersion:"1.4",url:"https://github.com/RonnyWeiss",url2:"https://linktr.ee/ronny.weiss",license:"CC BY-ND 4.0 License"},isDefinedAndNotNull:function(t){return null!=t&&""!=t},groupObjectArray:function(t,n){return t&&Array.isArray(t)?t.reduce(function(t,e){var i=e[n];return i&&(t[i=""+i]=t[i]||[]).push(e),t},{}):[]},link:function(t,e){if(!e)return window.parent.location.href=t;window.open(t,"_blank")},tooltip:{show:function(t,e,i){try{var n;0==Pt("#dynToolTip").length?(n=Pt("").attr("id","dynToolTip").css("max-width","400px").css("position","absolute").css("top","0px").css("left","0px").css("z-index","2000").css("background-color","rgba(240, 240, 240, 1)").css("padding","10px").css("display","block").css("top","0").css("overflow-wrap","break-word").css("word-wrap","break-word").css("-ms-hyphens","auto").css("-moz-hyphens","auto").css("-webkit-hyphens","auto").css("hyphens","auto"),e&&n.css("background-color",e),i&&n.css("max-width",i),Pt("body").append(n)):Pt("#dynToolTip").css("visibility","visible"),Pt("#dynToolTip").html(t),Pt("#dynToolTip").find("*").css("max-width","100%").css("overflow-wrap","break-word").css("word-wrap","break-word").css("-ms-hyphens","auto").css("-moz-hyphens","auto").css("-webkit-hyphens","auto").css("hyphens","auto").css("white-space","normal"),Pt("#dynToolTip").find("img").css("object-fit","contain").css("object-position","50% 0%")}catch(t){Ft.debug.error({fct:"utils.js",msg:"Error while try to show tooltip",err:t})}},setPosition:function(t){Pt("#dynToolTip").position({my:"left+6 top+6",of:t,collision:"flipfit"})},hide:function(){Pt("#dynToolTip").css("visibility","hidden")},remove:function(){Pt("#dynToolTip").remove()}},escapeHTML:function(t){if(null===t)return null;if(void 0!==t){if("object"==typeof t)try{t=JSON.stringify(t)}catch(t){}return Ft.util.escapeHTML(String(t))}},loader:{start:function(t,e){e&&Pt(t).css("min-height","100px"),Ft.util.showSpinner(Pt(t))},stop:function(t,e){e&&Pt(t).css("min-height",""),Pt(t+" > .u-Processing").remove(),Pt(t+" > .ct-loader").remove()}},splitString2Array:function(t){if(null!=t&&""!=t&&0 ").css("margin","12px").css("text-align","center").css("padding","10px 0").addClass("dominfomessagediv"),a=Pt(""),r=Pt("").addClass("fa").addClass(i||"fa-info-circle-o").addClass("fa-2x").css("height","32px").css("width","32px").css("margin-bottom","16px").css("color",n||"#D0D0D0"),a.append(r),s=Pt("").text(e).css("display","block").css("color","#707070").css("text-overflow","ellipsis").css("overflow","hidden").css("white-space","nowrap").css("font-size","12px"),o.append(a).append(s)):(o=Pt("").css("margin","10px").css("text-align","center").addClass("dominfomessagediv"),r=Pt("").addClass("fa").addClass(i||"fa-info-circle-o").css("font-size","22px").css("line-height","26px").css("margin-right","5px").css("color",n||"#D0D0D0"),s=Pt("").text(e).css("color","#707070").css("text-overflow","ellipsis").css("overflow","hidden").css("white-space","nowrap").css("font-size","12px").css("line-height","20px"),o.append(r).append(s)),Pt(t).append(o)},hide:function(t){Pt(t).children(".dominfomessagediv").remove()}},noDataMessage:{show:function(t,e){Ut.printDOMMessage.show(t,e,"fa-search")},hide:function(t){Ut.printDOMMessage.hide(t)}},errorMessage:{show:function(t,e){Ut.printDOMMessage.show(t,e,"fa-exclamation-triangle","#FFCB3D")},hide:function(t){Ut.printDOMMessage.hide(t)}},cutString:function(e,t){try{return!(t<0)&&e.length>t?e.substring(0,t-3)+"...":e}catch(t){return e}},isBetween:function(t,e,i){i=i||0;return e-i<=t&&t<=e+i}};function Gt(t,e,i){return i?void 0!==t&&null!=t?1==t||"true"===t:e:Ut.isDefinedAndNotNull(t)?t:e}function nt(t,e,i,n,a){e=t.append("defs").append("filter").attr("id",e);e.append("feGaussianBlur").attr("in","SourceAlpha").attr("stdDeviation",a).attr("result","blur"),e.append("feOffset").attr("in","blur").attr("dx",n).attr("dy",i).attr("result","offsetBlur"),e.append("feFlood").attr("in","offsetBlur").attr("flood-color","#000").attr("flood-opacity","0.26").attr("result","offsetColor"),e.append("feComposite").attr("in","offsetColor").attr("in2","offsetBlur").attr("operator","in").attr("result","offsetBlur");e=e.append("feMerge");e.append("feMergeNode").attr("in","offsetBlur"),e.append("feMergeNode").attr("in","SourceGraphic")}function qt(t,e,i,n){return!1!==n?Ut.escapeHTML(t):!0!==i&&-1 ");{var s;r.addClass("bida-container-sizer"),r.addClass(f+"-sizer"),y.append(r),t.items&&0 ");d.attr("id",r),d.attr("item-id",n.itemID),d.addClass("bida-container-item"),d.addClass(f+"-item"),d.addClass("bida-container-item--width"+e),d.css("min-height",l),d.css("background",n.backColor||a.backColor),d.css("color",n.color||a.color),Ut.isDefinedAndNotNull(n.itemID)&&(d.attr("item-id",n.itemID),d.addClass(u+"--"+n.itemID));i.append(d),_(t,l,s,o,a);o=Gt(n.isAsync,!1,!0);{var c;"A"===p&&o&&(Pt(d).on("itemrefresh",function(){n.itemData=null,_(t,l,s,n,a,!0)}),0 ");e.css("position","absolute"),e.css("margin","-5px"),e.css("bottom","0px"),e.css("right","10px"),e.css("font-size","9px"),e.css("color","rgb(0,0,0,0.3)"),e.css("line-height","9px");var i=Pt("");i.addClass("fa"),i.addClass("fa-heart"),i.css("font-size","9px"),i.css("color","inherit"),i.css("opacity","0.3"),i.css("line-height","10px");var n=Pt("");n.attr("href","https://linktr.ee/ronny.weiss"),n.attr("target","_blank"),n.css("color","inherit"),n.append(i);var a=Pt("");a.addClass("fa"),a.addClass("fa-apex"),a.css("font-size","9px"),a.css("color","inherit"),a.css("opacity","0.3"),a.css("line-height","10px"),(i=Pt("")).attr("href","https://apex.oracle.com"),i.attr("target","_blank"),i.css("color","inherit"),i.append(a),e.append("Build with "),e.append(n),e.append(" for "),e.append(i),Pt(t).append(e)}(y),i(),s={delay:50,zIndex:10,items:".bida-container-item",grid:[10,10],tolerance:"pointer",start:function(t,e){a||(a=Pt(e.item).clone(),Pt("body").append(a)),Pt(e.item).hide(),a.fadeIn(),a.css("opacity","0.5"),a.css("filter","grayscale(100%)")},sort:function(t,e){a.css("left",e.offset.left),a.css("top",e.offset.top)},change:function(t,e){y.find(".ui-sortable-placeholder").each(function(t,e){Pt(e).css("visibility","visible")}),Pt(e.item).css("left",e.position.left),Pt(e.item).css("top",e.position.top),i()},stop:function(t,e){a.remove(),a="",Pt(e.item).show(),i()},update:function(t,e){var i=[];y.find(".bida-container-item").each(function(t,e){e=Pt(e).attr("item-id");i.push(e)}),Ft.debug.info({fct:Ut.featureDetails.name+" - drawGridItems",sortInfo:i,featureDetails:Ut.featureDetails}),y.trigger("sortorder",i.join(":"))}},n.isSortable&&(o=y.sortable(s)),Pt(D).on("sortableOn",function(){Ft.debug.info({fct:Ut.featureDetails.name+" - drawGridItems",msg:"sortable on by trigger",featureDetails:Ut.featureDetails}),o||y.sortable(s),y.sortable("enable")}),Pt(D).on("sortableOff",function(){Ft.debug.info({fct:Ut.featureDetails.name+" - drawGridItems",msg:"sortable off by trigger",featureDetails:Ut.featureDetails}),y.sortable("disable")})):(y.addClass("bida-container-nodat"),Ut.noDataMessage.show(y,n.noDataMessage))}Ut.loader.stop(D),y.trigger("rendered"),Ft.debug.info({fct:Ut.featureDetails.name+" - drawGridItems",msg:"Material BI Dashboard rendering finished",featureDetails:Ut.featureDetails})}(t,e),i&&y.trigger("refreshed")},error:function(t){t=t,Pt(v).empty(),Pt(v).addClass("bida-container-nodat"),Ut.errorMessage.show(v,e.errorMessage),Ut.loader.stop(D),t.responseText&&Ft.debug.error({fct:Ut.featureDetails.name+" - getData",msg:t.responseText,featureDetails:Ut.featureDetails}),i&&y.trigger("refreshed")},dataType:"json"})}function _(n,t,a,o,r,e){var s=Pt(a),l=t,i=100;function d(){m&&(m.layout(),Pt(document).scrollTop(x))}function c(){function t(){b=setInterval(function(){var t,e;0===Pt(y).length?clearInterval(b):Pt(y).is(":visible")&&(t=document.getElementById(f).scrollHeight,e=Pt(y).height(),Ut.isBetween(e,t,w)||(Ft.debug.info({moudule:"checkMasonrySize",msg:"Masonry has resize problem",featureDetails:Ut.featureDetails,scrollHeight:t,innerHeight:e}),d()))},jt.defTime)}function e(){b&&clearInterval(b)}b||(e(),t(),document.addEventListener("visibilitychange",function(){(document.hidden?e:t)()}))}function u(){Ut.loader.stop(a),setTimeout(function(){Ut.loader.stop(a)},i)}t=Gt(o.isAsync,!1,!0);e||"A"===p&&t?Ut.isDefinedAndNotNull(o.itemID)?(t=r.items2Submit,setTimeout(function(){Ut.loader.start(a)},i),Ft.server.plugin(g,{pageItems:t,x01:"itemData",x02:o.itemID,x04:k},{success:function(t,e,i){Ft.debug.info({fct:Ut.featureDetails.name+" - prepareItemContent",asyncAjaxReference:k,pData:t,featureDetails:Ut.featureDetails}),i.getResponseHeader("ajax-reference")==k?(i=t,i=Ut.jsonSaveExtend(o,i),s.empty(),Ut.isDefinedAndNotNull(i.itemID)&&(s.attr("item-id",i.itemID),s.addClass(i.itemID)),l=(i.height||r.height)-C,s.css("min-height",l),H(n,a,l,i,r),u(),d(),c()):Ft.debug.info({fct:Ut.featureDetails.name+" - prepareItemContent",msg:"Expired Async AJAX Call returned.",pData:t,featureDetails:Ut.featureDetails})},error:function(t){t=t,s.empty(),t.status&&404==t.status?Ut.noDataMessage.show(a,r.noDataMessage):(Ut.errorMessage.show(a,r.errorMessage),Ft.debug.error({msg:"Error occured in PL/SQL Block for async Loading of Data",data:t,featureDetails:Ut.featureDetails})),u(),d(),c()},dataType:"json"})):(s.empty(),Ut.errorMessage.show(a,r.errorMessage),Ft.debug.error({fct:Ut.featureDetails.name+" - prepareItemContent",msg:"itemID missing in JSON for async load!",featureDetails:Ut.featureDetails})):(H(n,a,l,o,r),d(),c())}function R(t,e,i,n,a){Ft.debug.info({fct:Ut.featureDetails.name+" - drawSubText",pPosition:t,pParent:e,pText:i,pDefaultConfig:n,pIsSafeItem:a,featureDetails:Ut.featureDetails});var o="bida-item-subtext-"+t,r=Pt(""),s=Pt(e).find("."+o);(r=s[0]?s:r).addClass(o);o=Pt("");o.addClass("bida-item-subtext-text"),o.addClass("bida-item-subtext-text-"+t),o.addClass("truncate-text");a=qt(i,n,a,Wt);o.html(a),r.html(o),r.attr("title",o.text()),Pt(e).append(r)}function H(t,e,i,n,a){var o,r,s,l,d=Pt(e),c=n.itemConfig||{};Ut.isDefinedAndNotNull(n.optionsLink)&&((s=Pt("")).addClass("bida-item-options-link"),s.attr("href",n.optionsLink),s.css("background-color",n.optionsLinkBackColor||a.optionsLink.backColor),r="fa-",o=Pt(""),l=n.optionsLinkIcon||a.optionsLink.icon,Ut.isDefinedAndNotNull(l)&&l.substr(0,r.length)===r?(o.addClass("fa"),o.addClass(l),o.css("color",n.optionsLinkColor||a.optionsLink.color)):o.css("background-image","url("+l+")"),o.addClass("bida-item-options-link-icon"),s.append(o),d.append(s)),Ut.isDefinedAndNotNull(n.optionsLinkTop)&&((f=Pt("")).addClass("bida-item-options-link-top"),f.attr("href",n.optionsLinkTop),f.css("background-color",n.optionsLinkTopBackColor||a.optionsLinkTop.backColor),r="fa-",s=Pt(""),l=n.optionsLinkTopIcon||a.optionsLinkTop.icon,Ut.isDefinedAndNotNull(l)&&l.substr(0,r.length)===r?(s.addClass("fa"),s.addClass(l),s.css("color",n.optionsLinkTopColor||a.optionsLinkTop.color)):s.css("background-image","url("+l+")"),s.addClass("bida-item-options-link-icon"),f.append(s),d.append(f));var u,f=Gt(n.isMarked,!1,!0);if(d.removeClass("bida-container-item-marked"),f&&d.addClass("bida-container-item-marked"),Ut.isDefinedAndNotNull(n.itemType)){var p=!1;Ut.isDefinedAndNotNull(n.oversize)&&(p=Gt(n.oversize,!1,!0));var h=!1;Ut.isDefinedAndNotNull(n.noSanitize)&&(h=Gt(n.noSanitize,!1,!0));var m=i;if(Ut.isDefinedAndNotNull(n.title)&&function(t,e,i,n,a,o,r,s){Ft.debug.info({fct:Ut.featureDetails.name+" - drawItemTitle",pText:e,pBackColor:i,pColor:n,pParent:t,pIcon:a,pIconColor:o,pDefaultConfig:r,pIsSafeItem:s,featureDetails:Ut.featureDetails});var l="bida-item-title",d=Pt(""),c=Pt(t).find("."+l);(d=c[0]?c:d).addClass(l),d.css("background",i||r.title.backColor),d.css("color",n||r.title.color),(n=Pt("")).addClass("bida-item-title-text"),n.addClass("truncate-text"),s=qt(e,r,s,Wt),n.html(s),n.attr("title",n.text()),d.html(n),a=a||r.title.icon,o=o||r.title.iconColor,Ut.isDefinedAndNotNull(a)&&(r=Pt(""),"fa-"===a.substr(0,"fa-".length)?(r.addClass("fa"),r.addClass(a),r.css("color",o)):r.css("background-image","url("+a+")"),r.addClass("bida-item-title-icon"),n.prepend(r)),Pt(t).prepend(d)}(e,n.title,n.titleBackColor,n.titleColor,n.titleIcon,n.titleIconColor,a,h),Ut.isDefinedAndNotNull(n.subText1)&&R(1,e,n.subText1,a,h),Ut.isDefinedAndNotNull(n.subText2)&&R(2,e,n.subText2,a,h),u=i,Pt(i=e).children(".bida-item-title").each(function(){u=Math.floor(u-Pt(this).height())-1}),Pt(i).children(".bida-item-subtext-1").each(function(){u=Math.floor(u-Pt(this).height())-1}),Pt(i).children(".bida-item-subtext-2").each(function(){u=Math.floor(u-Pt(this).height())-1}),m=u,Ut.isDefinedAndNotNull(n.itemData)||"calendar"===n.itemType||"note"===n.itemType||"clock"===n.itemType)switch(Ft.debug.info({fct:Ut.featureDetails.name+" - drawItemRegionContent",msg:"Render Item "+n.itemType+"("+n.title+")",featureDetails:Ut.featureDetails}),n.itemType){case"chart":-1 ");return n.addClass("bb-tooltip"),n.addClass("bida-chart-tooltip-custome"),Pt.each(t,function(t,e){var i=""+unescape(e.id),e=e.index;At[i]&&(1===At[i].length&&(e=0),At[i][e]&&Ut.isDefinedAndNotNull(At[i][e].tooltip)&&(e=qt(At[i][e].tooltip,s,a,Wt),n.append(e),n.append("
")))}),n[0].outerHTML});try{var Mt=r+"bbc",Ot=Mt.replace("#",""),Et=Pt("");Et.attr("id",Ot),Pt(r).append(Et);var zt={bindto:Mt,background:g,title:{text:h},size:{height:t},data:{x:U,xFormat:P,columns:vt,types:wt,groups:Dt,colors:xt,labels:Nt,axes:Ct,names:kt,onclick:function(t){var e;e=t,t=""+unescape(e.id),e=e.index,At[t]&&(1===At[t].length&&(e=0),At[t][e]&&At[t][e].link&&Ut.link(At[t][e].link))}},pie:{label:{format:n,threshold:.05}},donut:{label:{format:n,threshold:.05}},line:{step:{type:b}},gauge:{label:{format:n,threshold:"single"===D?.05:null},fullCircle:C,min:v,max:y,type:D,width:x,title:k,arc:{minWidth:w}},radar:{direction:{clockwise:!0}},subchart:{show:ht},zoom:{type:pt,enabled:ft,rescale:bt},transition:{duration:W},legend:{show:N,position:S},tooltip:{show:R,grouped:H,contents:o},grid:{x:{show:I},y:{show:T}},point:{show:St},axis:{rotated:E,x:{show:j,label:{text:B,position:L},type:F,tick:{culling:{max:q},autorotate:Q,rotate:Y,multiline:J,format:$,fit:V},height:A},y:{label:{text:X,position:_},type:K,max:et,min:tt,tick:{culling:{max:it},format:function(t){return t+nt}}},y2:{show:at,label:{text:ot,position:_},type:st,max:dt,min:lt,tick:{culling:{max:ct},format:function(t){return t+ut}}}},padding:M};Ft.debug.info({fct:Ut.featureDetails.name+" - drawChart",finalChartData:zt,featureDetails:Ut.featureDetails});var Lt=bb.generate(zt);function _t(){!document.hidden&&Et.is(":visible")&&Lt.resize({height:t})}function Rt(){jt.innerItemsIntervals&&jt.innerItemsIntervals[r]&&clearInterval(jt.innerItemsIntervals[r])}function Ht(){jt.innerItemsIntervals[r]=setInterval(function(){0===Pt(r).length?clearInterval(jt.innerItemsIntervals[r]):Et.is(":visible")&&(Ut.isBetween(Et.width(),Et.find("svg").width(),Bt)||(Ft.debug.info({fct:Ut.featureDetails.name+" - drawChart",msg:"Chart has resize problem",featureDetails:Ut.featureDetails}),_t()))},jt.defTime)}ft&&Pt(Mt).contextmenu(function(t){t.preventDefault(),Lt.unzoom()}),Pt(window).resize(function(){_t()}),Rt(),Ht(),document.addEventListener("visibilitychange",function(){(document.hidden?Rt:Ht)()})}catch(t){Pt(r).empty(),Ut.errorMessage.show(r,s.errorMessage),Ft.debug.error({fct:Ut.featureDetails.name+" - drawChart",msg:"Error while try to render chart",err:t,featureDetails:Ut.featureDetails})}}else Ut.noDataMessage.show(r,s.noDataMessage)}catch(t){Pt(r).empty(),Ut.errorMessage.show(r,s.errorMessage),Ft.debug.error({fct:Ut.featureDetails.name+" - drawChart",msg:"Error while prepare data for chart",err:t,featureDetails:Ut.featureDetails})}}(e,m,c,n.itemData,a,h):(Ut.errorMessage.show(e,a.errorMessage),Ft.debug.error({fct:Ut.featureDetails.name+" - drawItemRegionContent",msg:"itemData is missing in JSON",featureDetails:Ut.featureDetails})):(Ut.errorMessage.show(e,a.errorMessage),Ft.debug.info({fct:Ut.featureDetails.name+" - drawItemRegionContent",msg:"Feature - Charts is not activated.",featureDetails:Ut.featureDetails}));break;case"html":!function(i,t,n,a,o,e,r){Ft.debug.info({fct:Ut.featureDetails.name+" - drawHTML",pItemSel:i,pItemHeight:t,pItemData:n,pDefaultConfig:o,pOversize:e,pIsSafeItem:r,featureDetails:Ut.featureDetails});var s,l=Pt("");function d(t){var e=qt(t,o,r,Wt);Ft.debug.info({fct:Ut.featureDetails.name+" - drawHTML",submodule:"renderHTML",pContent:t,contentAfterEscapeOrSanitize:e,featureDetails:Ut.featureDetails}),l.html(e),-1n.length-1?u=0:u<0&&(u=n.length-1),n[u]&&(d(n[u].html),(e=n[u].duration)&&0 ")).addClass("bida-item-html-slide-lc"),p.on("click",function(){u--,clearTimeout(s),Pt(l).fadeOut("fast",function(){c(),Pt(l).fadeIn("fast")})}),(f=Pt("")).addClass("fa fa-chevron-left fa-lg"),f.addClass("bida-item-html-slide-lc-s"),p.append(f),Pt(i).append(p),(f=Pt("")).addClass("bida-item-html-slide-rc"),f.on("click",function(){u++,clearTimeout(s),Pt(l).fadeOut("fast",function(){c(),Pt(l).fadeIn("fast")})}),(p=Pt("")).addClass("fa fa-chevron-right fa-lg"),p.addClass("bida-item-html-slide-rc-s"),f.append(p),Pt(i).append(f),c()):n&&"object"==typeof n&&1===n.length?Ut.isDefinedAndNotNull(n[0].html)&&""!==n[0].html?d(n[0].html):Ut.noDataMessage.show(l,o.noDataMessage):Ut.isDefinedAndNotNull(n)&&""!==n?d(n):Ut.noDataMessage.show(l,o.noDataMessage)}Pt(i).append(l),!0!==e&&(l.css("height",t),W(l))}(e,m,n.itemData,n.itemID,a,p,h);break;case"card":!function(t,e,i,n,a,o,r){Ft.debug.info({fct:Ut.featureDetails.name+" - drawCard",pIndex:t,pItemHeight:e,pItemSel:i,pItemData:n,pDefaultConfig:a,pOversize:o,pIsSafeItem:r,featureDetails:Ut.featureDetails});var s=Pt("");s.addClass("bida-item-card");var l=Pt("");{var d,c;l.addClass("card-content"),(Ut.isDefinedAndNotNull(n.icon)||Ut.isDefinedAndNotNull(n.iconText))&&((u=Pt("")).addClass("card-content-icon-div"),d=Pt(""),Ut.isDefinedAndNotNull(n.icon)&&"fa-"===n.icon.substr(0,"fa-".length)?(d.addClass("fa "+n.icon),c="linear-gradient(60deg, hsl("+23*t%350+", 79%, 45%), hsl("+23*t%350+", 60%, 45%))",d.css("background",n.iconBackColor||c)):(Ut.isDefinedAndNotNull(n.iconText)&&(t=qt(n.iconText,a,r,Wt),(c=Pt("")).addClass("card-content-icon-text"),c.html(t),d.append(c)),Ut.isDefinedAndNotNull(n.icon)&&d.css("background-image","url("+n.icon+")"),d.css("background-color",n.iconBackColor)),d.addClass("card-content-icon"),d.css("color",n.iconColor||"white"),u.append(d),l.append(u))}var u=Pt("");u.addClass("card-title-div"),Ut.isDefinedAndNotNull(n.icon)&&u.css("width","calc(100% - 55px)");Ut.isDefinedAndNotNull(n.value)&&((p=Pt("")).addClass("card-title"),p.addClass("truncate-text"),f=qt(n.value,a,r,Wt),p.html(f),u.append(p));{var f,p;Ut.isDefinedAndNotNull(n.valueSmall)&&(Ut.isDefinedAndNotNull(n.value)&&p.css("line-height","30px"),(f=Pt("")).addClass("card-sub-title"),p=qt(n.valueSmall,a,r,Wt),f.html(p),u.append(f))}l.append(u),s.append(l),Ut.isDefinedAndNotNull(n.footer)&&((h=Pt("")).addClass("bida-card-footer"),l=Pt(""),(l=Pt("")).addClass("stats"),r=qt(n.footer,a,r,Wt),l.html(r),h.append(l),s.append(h));{var h;Ut.isDefinedAndNotNull(n.link)?((h=Pt("")).addClass("bida-a"),h.attr("href",n.link),h.append(s),Pt(i).append(h),!0!==o&&(h.css("height",e),W(h))):(Pt(i).append(s),!0!==o&&(s.css("height",e),W(s)))}}(t,m,e,n.itemData,a,p,h);break;case"badge":!function(t,i,e,n,a,o){Ft.debug.info({fct:Ut.featureDetails.name+" - drawBadges",pIndex:t,pItemHeight:i,pItemSel:e,pItemData:n,pDefaultConfig:a,pIsSafeItem:o,featureDetails:Ut.featureDetails});var r=!1,s=.98,l=.15,d=.28,c=.28,u=c-l,f=0,t="linear-gradient(60deg, hsl("+23*t%350+", 79%, 45%), hsl("+23*t%350+", 60%, 45%))",p=Pt("");p.addClass("bida-item-badge"),Ut.isDefinedAndNotNull(n.title)&&f++;Ut.isDefinedAndNotNull(n.icon)&&f++;Ut.isDefinedAndNotNull(n.value)&&f++;0 ")).addClass("bida-item-badge-text"),(h=Pt("")).css("color",n.titleColor||t),f=qt(n.title,a,o,Wt),h.html(f),g.append(h),p.append(g)):(d+=l/2,c+=l/3)}{var m,g;Ut.isDefinedAndNotNull(n.icon)?((b=Pt("")).addClass("bida-item-badge-icon"),m=Pt(""),Ut.isDefinedAndNotNull(n.icon)&&"fa-"===n.icon.substr(0,"fa-".length)?(m.addClass("fa "+n.icon),m.css("color",n.iconColor||t)):(Ut.isDefinedAndNotNull(n.iconText)&&(g=qt(n.iconText,a,o,Wt),m.html(g)),Ut.isDefinedAndNotNull(n.icon)&&(r=!0,m.css("background-image","url("+n.icon+")"),m.addClass("bida-item-badge-icon-image"))),b.append(m),p.append(b)):(l+=d/3,c+=d/3)}{var b,v;Ut.isDefinedAndNotNull(n.value)?((b=Pt("")).addClass("bida-item-badge-text-value"),(v=Pt("")).css("color",n.valueColor||t),o=qt(n.value,a,o,Wt),v.html(o),b.append(v),p.append(b)):(l+=c/3,d+=c/2)}Ut.isDefinedAndNotNull(n.link)&&(p.css("cursor","pointer"),p.on("click",function(){Ut.link(n.link)}));function y(){var t=i,e=Math.min(t,p.width());h&&(h.css("font-size",e*l+"px"),h.css("line-height",t*(s-u)+"px")),m&&(m.css("font-size",e*d+"px"),m.css("line-height",t*s+"px"),r&&(m.css("height",t*s+"px"),m.css("width",t*s+"px"))),v&&(v.css("font-size",e*c+"px"),v.css("line-height",t*s+"px"))}Pt(e).append(p),y(),Pt(window).resize(function(){y()});var D=p.width();function x(){jt.innerItemsIntervals&&jt.innerItemsIntervals[e]&&clearInterval(jt.innerItemsIntervals[e])}function w(){jt.innerItemsIntervals[e]=setInterval(function(){0===Pt(e).length?clearInterval(jt.innerItemsIntervals[e]):p.is(":visible")&&(Ut.isBetween(p.width(),D,Bt)||(D=p.width(),y()))},100)}x(),w(),document.addEventListener("visibilitychange",function(){(document.hidden?x:w)()})}(t,m,e,n.itemData,a,h);break;case"list":!function(t,e,i,u,n,f){Ft.debug.info({fct:Ut.featureDetails.name+" - drawList",pItemSel:t,pItemHeight:e,pItemData:i,pDefaultConfig:u,pOversize:n,pIsSafeItem:f,featureDetails:Ut.featureDetails});var a=Pt("");a.addClass("bida-item-list-div");var s=Pt(" ");function l(d,c){Pt.each(c,function(t,e){var i=Pt("");i.addClass("bida-item-list-item");var n,a,o=Pt("");o.addClass("list-item-content"),t
")).addClass("listItem-content-icon-div"),n=Pt(""),e.icon&&"fa-"===e.icon.substr(0,"fa-".length)?(n.addClass("fa "+e.icon),n.css("background",e.iconBackColor||"linear-gradient(60deg, hsl("+23*t%350+", 79%, 45%), hsl("+23*t%350+", 60%, 45%))")):(Ut.isDefinedAndNotNull(e.iconText)&&(a=qt(e.iconText,u,f,Wt),(t=Pt("")).addClass("list-item-content-icon-text"),t.html(a),n.append(t)),Ut.isDefinedAndNotNull(e.icon)&&n.css("background-image","url("+e.icon+")"),n.css("background-color",e.iconBackColor)),n.addClass("list-item-content-icon"),n.css("color",e.iconColor||"white"),l.append(n),o.append(l));var r,s,l=Pt("");l.addClass("list-item-content-text"),Ut.isDefinedAndNotNull(e.icon)&&l.css("width","calc(100% - 55px)"),Ut.isDefinedAndNotNull(e.title)&&((s=Pt("")).addClass("list-item-title"),s.addClass("truncate-text"),r=qt(e.title,u,f,Wt),s.html(r),l.append(s)),Ut.isDefinedAndNotNull(e.text)&&((r=Pt("")).addClass("list-item-text"),s=qt(e.text,u,f,Wt),r.html(s),l.append(r)),o.append(l),i.append(o),Ut.isDefinedAndNotNull(e.link)?((o=Pt("")).addClass("bida-a"),o.attr("href",e.link),o.append(i),d.append(o)):d.append(i)})}s.addClass("bida-item-list");var o=[];Pt.each(i,function(t,e){Ut.isDefinedAndNotNull(e.group)||o.push(e)});i=Ut.groupObjectArray(i,"group");Ft.debug.info({fct:Ut.featureDetails.name+" - drawList",noGroupsArr:o,groupsArr:i,featureDetails:Ut.featureDetails}),l(s,o),Pt.each(i,function(t,e){var i=Pt("");i.addClass("bida-item-list-item-group");var n="#f1f1f1";e[0].groupBackColor&&(n=e[0].groupBackColor);var a="inherit";e[0].groupColor&&(a=e[0].groupColor);var o=Pt("");o.addClass("list-group-content"),o.css("border-left","3px solid "+n);var r=Pt("");r.addClass("list-group-content-title");t=qt(t,u,f,Wt);r.css("background",n),r.css("color",a),r.html(t),o.append(r),i.append(o);r=Pt(" ");r.addClass("bida-item-list-grouped"),l(r,e),o.append(r),s.append(i)}),a.append(s),Pt(t).append(a),!0!==n&&(a.css("height",e),W(a))}(e,m,n.itemData,a,p,h);break;case"table":-1
");r.addClass("bida-item-table-div");var s=Pt(" ");s.addClass("bida-item-table"),Ut.isDefinedAndNotNull(i.header)&&0
")).addClass("bida-item-table-header"),i.css("background-color",e.background||a.table.header.background),i.css("text-align",e.textAlign||a.table.header.textAlign),i.css("color",e.color||a.table.header.color),i.css("border",e.border||a.table.header.border),e=qt(e.text,a,o,Wt),i.html(e),s.append(i))});Ut.isDefinedAndNotNull(i.data)&&0 ");n.addClass("bida-item-table-row"),t%2==0?(n.addClass("bida-item-table-row-even"),n.css("background",a.table.evenRow.background),n.css("text-align",a.table.evenRow.textAlign),n.css("color",a.table.evenRow.color),n.css("border-bottom",a.table.evenRow.borderBottom)):(n.addClass("bida-item-table-row-odd"),n.css("background",a.table.oddRow.background),n.css("text-align",a.table.oddRow.textAlign),n.css("color",a.table.oddRow.color),n.css("border-bottom",a.table.oddRow.borderBottom)),Pt.each(e,function(t,e){var i;Ut.isDefinedAndNotNull(e.text)&&((i=Pt(" ")).addClass("bida-item-table-cell"),i.css("background",e.background||a.table.cells.background),i.css("text-align",e.textAlign||a.table.cells.textAlign),i.css("color",e.color||a.table.cells.color),i.css("border",e.border||a.table.cells.border),e=qt(e.text,a,o,Wt),i.html(e),n.append(i))}),s.append(n)});r.append(s),Pt(t).append(r),!0!==n&&(r.css("height",e),W(r))}(e,m,n.itemData,a,p,h):(Ut.errorMessage.show(e,a.errorMessage),Ft.debug.error({fct:Ut.featureDetails.name+" - drawItemRegionContent",msg:"Feature - Tables is not activaed.",featureDetails:Ut.featureDetails}));break;case"map":-1 ");c.addClass("bida-calendar"),c.attr("id",l),s.append(c);var u=Gt(n.eventLimitPerDay,a.calendarOptions.eventLimitPerDay),f=Gt(n.displayTime,a.calendarOptions.displayTime,!0),t=Gt(n.viewType,a.calendarOptions.viewType),s=Gt(n.hours12,a.calendarOptions.hours12,!0),n=Gt(n.timeGridStartTime,a.calendarOptions.timeGridStartTime);s||"en"!=d||(d="en-bz");var p={month:"2-digit",year:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:s,locale:d};["dayGridMonth","dayGridWeek","timeGridWeek","listWeek","listMonth","listDay"].indexOf(t)<0&&(t="dayGridMonth");l=document.getElementById(l),n=new FullCalendar.Calendar(l,{height:e,events:i,displayEventTime:f,initialView:t,eventDisplay:"block",eventMouseEnter:function(t){var e=Pt("");e.addClass("bida-calendar-event-tt");var i=Pt("");i.addClass("bida-calendar-event-tt-title");var n=qt(t.event.title,a,r,Wt);Ut.isDefinedAndNotNull(n)&&(i.append(n),e.append(i),e.append("
"));n=Pt("");n.addClass("bida-calendar-event-tt-subtitle");i=Pt("");i.addClass("fa fa-clock-o"),i.addClass("bida-calendar-event-tt-icon"),n.append(i);i=Pt("");i.addClass("bida-calendar-event-tt-date"),i.append(" "),i.append(FullCalendar.formatDate(t.event.start,p)),Ut.isDefinedAndNotNull(t.event.end)&&(i.append(" - "),i.append(FullCalendar.formatDate(t.event.end,p))),n.append(i),e.append(n),Ut.isDefinedAndNotNull(t.event.extendedProps.details)&&(i=qt(t.event.extendedProps.details,a,r,Wt),Ut.isDefinedAndNotNull(i)&&((n=Pt("")).addClass("bida-calendar-event-tt-content"),n.append(i),e.append(n))),Ut.tooltip.show(e),Ut.tooltip.setPosition(t.jsEvent)},eventMouseLeave:function(){Ut.tooltip.hide()},eventClick:function(){Ut.tooltip.hide()},dayMaxEventRows:u,eventDidMount:function(t){var e=qt(t.event.title,a,r,Wt);Pt(t.el).find(".fc-event-title").html(e),Pt(t.el).find(".fc-list-event-title").find("a").html(e)},allDaySlot:!1,nowIndicator:!0,views:{dayGrid:{}},eventTimeFormat:{hour:p.hour,minute:p.minute,hour12:p.hour12},scrollTime:n,slotLabelFormat:{hour:p.hour,minute:p.minute,hour12:p.hour12}});n.setOption("locale",d),n.changeView(t),n.render(),!0!==o&&(c.css("height",e),c.addClass("bida-item-div-overflow"),W(c))}(e,m,n.itemData,c,a,p,h):(Ut.errorMessage.show(e,a.errorMessage),Ft.debug.error({fct:Ut.featureDetails.name+" - drawItemRegionContent",msg:"Feature - Calendar is not activaed.",featureDetails:Ut.featureDetails}));break;case"note":-1");l.addClass("bida-note"),l.attr("id",r),l.css("height",t),i.append(l);var d=r+"-save";function c(){Pt("#"+d).parent().addClass("pell-button-disabled")}pell.init({element:document.getElementById(r),onChange:function(t){Pt("#"+d).parent().removeClass("pell-button-disabled")},defaultParagraphSeparator:"p",styleWithCSS:!1,classes:{actionbar:"pell-actionbar",button:"pell-button",content:"pell-content",selected:"pell-button-selected"},actions:[{name:"Save",icon:'',title:"Save",result:function(){var t=l.find(".pell-content");Ut.loader.start(a),c();var e=t.html(),i=Ut.splitString2Array(e),t=o.items2Submit;Ft.server.plugin(g,{pageItems:t,x01:"noteUpload",x02:n,f01:i},{dataType:"text",success:function(t){Ut.loader.stop(a),y.trigger("shortnotesaved",{itemID:n,itemSel:a,clob:e}),Ft.debug.info({fct:Ut.featureDetails.name+" - drawNoteEditor",msg:"Upload successful.",featureDetails:Ut.featureDetails})},error:function(t,e,i){Ut.loader.stop(a),Ft.message.clearErrors(),Ft.message.showErrors([{type:"error",location:["page"],message:o.errorMessage,unsafe:!1}]),Ft.debug.info({fct:Ut.featureDetails.name+" - drawNoteEditor",msg:"Error while try to upload NoteEditor Content",jqXHR:t,textStatus:e,errorThrown:i,featureDetails:Ut.featureDetails})}})}},{name:"bold",icon:'',title:"Bold"},{name:"italic",icon:'',title:"Italic"},{name:"underline",icon:'',title:"Underline"},{name:"strikethrough",icon:'',title:"Strikethrough"},{name:"heading1",icon:'1',title:"Heading 1"},{name:"heading2",icon:'2',title:"Heading 2"},{name:"paragraph",icon:''},{name:"olist",icon:'',title:"Ordered List"},{name:"ulist",icon:'',title:"Unordered List"}]}),r=e&&"object"==typeof e?e.text:e;r=qt(r,o,s,Wt);e=l.find(".pell-content"),s=l.find(".pell-actionbar").height();e.html(r),e.css("height",l.height()-s),c(),l.find(".pell-button").removeAttr("title")}(n.itemID,e,m,n.itemData,c,a,p,h):(Ut.errorMessage.show(e,a.errorMessage),Ft.debug.error({fct:Ut.featureDetails.name+" - drawItemRegionContent",msg:"Feature - Editor is not activaed.",featureDetails:Ut.featureDetails}));break;default:Ut.errorMessage.show(e,a.errorMessage),Ft.debug.error({fct:Ut.featureDetails.name+" - drawItemRegionContent",msg:"itemType not found (html, card, list, map, table, clock, calendar)",featureDetails:Ut.featureDetails})}else Ut.noDataMessage.show(e,a.noDataMessage);Ut.isDefinedAndNotNull(n.subText2)&&((i=Pt(e).find(".bida-item-subtext-2")).appendTo(e),i.addClass("bida-item-subtext-2-fin"))}else Ut.errorMessage.show(e,a.errorMessage),Ft.debug.error({fct:Ut.featureDetails.name+" - drawItemRegionContent",msg:"itemType is missing in JSON",featureDetails:Ut.featureDetails})}function W(t){var e=Pt(t);e.addClass("bida-item-div-overflow"),e.on("scroll",function(){e.scrollTop()+e.innerHeight()>=e[0].scrollHeight?e.addClass("bida-item-div-overflow-hidden"):e.removeClass("bida-item-div-overflow-hidden")});var i=e.innerHeight(),t=e[0].scrollHeight;Ft.debug.info({fct:Ut.featureDetails.name+" - overFlowStyling",innerHeight:i,scrollHeight:t,featureDetails:Ut.featureDetails}),t<=i&&0!==t&&e.addClass("bida-item-div-overflow-hidden")}}}}; \ No newline at end of file +!function(e,i){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)}(window,function(t,e){"use strict";var i=Array.prototype.slice,n=t.console,u=void 0===n?function(){}:function(t){n.error(t)};function a(l,d,c){(c=c||e||t.jQuery)&&(d.prototype.option||(d.prototype.option=function(t){c.isPlainObject(t)&&(this.options=c.extend(!0,this.options,t))}),c.fn[l]=function(t){if("string"!=typeof t)return s=t,this.each(function(t,e){var i=c.data(e,l);i?(i.option(s),i._init()):(i=new d(e,s),c.data(e,l,i))}),this;var n,a,o,r,s,e=i.call(arguments,1);return a=e,r="$()."+l+'("'+(n=t)+'")',(t=this).each(function(t,e){var i=c.data(e,l);i?(e=i[n])&&"_"!=n.charAt(0)?(i=e.apply(i,a),o=void 0===o?i:o):u(r+" is not a valid method"):u(l+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==o?o:t},o(c))}function o(t){!t||t&&t.bridget||(t.bridget=a)}return o(e||t.jQuery),a}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},t=i[t]=i[t]||[];return-1==t.indexOf(e)&&t.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length){e=t.indexOf(e);return-1!=e&&t.splice(e,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],a=0;a this.cols?0:i,e=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=e?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},t._manageStamp=function(t){var e=s(t),i=this._getElementOffset(t),n=this._getOption("originLeft")?i.left:i.right,t=n+e.outerWidth,n=Math.floor(n/this.columnWidth),n=Math.max(0,n),a=Math.floor(t/this.columnWidth);a-=t%this.columnWidth?0:1;for(var a=Math.min(this.cols-1,a),o=(this._getOption("originTop")?i.top:i.bottom)+e.outerHeight,r=n;r<=a;r++)this.colYs[r]=Math.max(o,this.colYs[r])},t._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},t._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},t.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},e}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.pell={})}(this,function(t){"use strict";function r(t,e,i){return t.addEventListener(e,i)}function s(t,e){return t.appendChild(e)}function l(t){return document.createElement(t)}function e(t){return document.queryCommandState(t)}function d(t){return document.execCommand(t,!1,1 "):"
"===o.innerHTML&&(o.innerHTML=""),e.onChange(o.innerHTML)},o.onkeydown=function(t){"Enter"===t.key&&"blockquote"===(t=f,document.queryCommandValue(t))&&setTimeout(function(){return d(f,"<"+i+">")},0)},s(e.element,o),t.forEach(function(t){var e,i=l("button");i.className=n.button,i.innerHTML=t.icon,i.title=t.title,i.setAttribute("type","button"),i.onclick=function(){return t.result()&&o.focus()},t.state&&(r(o,"keyup",e=function(){return i.classList[t.state()?"add":"remove"](n.selected)}),r(o,"mouseup",e),r(i,"click",e)),s(a,i)}),e.styleWithCSS&&d("styleWithCSS"),d(u,i),e.element}var c=Object.assign||function(t){for(var e=1;eB",title:"Bold",state:function(){return e("bold")},result:function(){return d("bold")}},italic:{icon:"I",title:"Italic",state:function(){return e("italic")},result:function(){return d("italic")}},underline:{icon:"U",title:"Underline",state:function(){return e("underline")},result:function(){return d("underline")}},strikethrough:{icon:" S",title:"Strike-through",state:function(){return e("strikeThrough")},result:function(){return d("strikeThrough")}},heading1:{icon:"H1",title:"Heading 1",result:function(){return d(f,"")}},heading2:{icon:"H2",title:"Heading 2",result:function(){return d(f,"
")}},paragraph:{icon:"¶",title:"Paragraph",result:function(){return d(f,"
")}},quote:{icon:"“ ”",title:"Quote",result:function(){return d(f,"
")}},olist:{icon:"#",title:"Ordered List",result:function(){return d("insertOrderedList")}},ulist:{icon:"•",title:"Unordered List",result:function(){return d("insertUnorderedList")}},code:{icon:"</>",title:"Code",result:function(){return d(f,"")}},line:{icon:"―",title:"Horizontal Line",result:function(){return d("insertHorizontalRule")}},link:{icon:"🔗",title:"Link",result:function(){var t=window.prompt("Enter the link URL");t&&d("createLink",t)}},image:{icon:"📷",title:"Image",result:function(){var t=window.prompt("Enter the image URL");t&&d("insertImage",t)}}},h={actionbar:"pell-actionbar",button:"pell-button",content:"pell-content",selected:"pell-button-selected"},n={exec:d,init:i};t.exec=d,t.init=i,t.default=n,Object.defineProperty(t,"__esModule",{value:!0})}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).DOMPurify=e()}(this,function(){"use strict";var n,a=Object.hasOwnProperty,o=Object.setPrototypeOf,r=Object.isFrozen,s=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,Nt=Object.freeze,t=Object.seal,d=Object.create,e="undefined"!=typeof Reflect&&Reflect,c=(c=e.apply)||function(t,e,i){return t.apply(e,i)},Nt=Nt||function(t){return t},t=t||function(t){return t},u=(u=e.construct)||function(t,e){return new(Function.prototype.bind.apply(t,[null].concat(function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e/gm),ee=t(/^data-[\-\w.\u00B7-\uFFFF]/),ie=t(/^aria-[\-\w]+$/),ne=t(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ae=t(/^(?:\w+script|data):/i),oe=t(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function se(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e "+t:i=(n=zt(t,/^[\r\n\t ]+/))&&n[0];var n=D?D.createHTML(t):t;if(ct===dt)try{e=(new m).parseFromString(n,"text/html")}catch(t){}if(!e||!e.documentElement){e=w.createDocument(ct,"template",null);try{e.documentElement.innerHTML=ut?"":n}catch(t){}}return n=e.body||e.documentElement,t&&i&&n.insertBefore(a.createTextNode(i),n.childNodes[0]||null),Y?e.documentElement:n}function xt(t){return C.call(t.ownerDocument||t,t,n.SHOW_ELEMENT|n.SHOW_COMMENT|n.SHOW_TEXT,null,!1)}function wt(t){return"object"===(void 0===u?"undefined":re(u))?t instanceof u:t&&"object"===(void 0===t?"undefined":re(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName}function Ct(t,e,i){T[t]&&St(T[t],function(t){t.call(c,e,i,ft)})}function kt(t){var e;if(Ct("beforeSanitizeElements",t,null),!((i=t)instanceof p||i instanceof h||"string"==typeof i.nodeName&&"string"==typeof i.textContent&&"function"==typeof i.removeChild&&i.attributes instanceof f&&"function"==typeof i.removeAttribute&&"function"==typeof i.setAttribute&&"string"==typeof i.namespaceURI&&"function"==typeof i.insertBefore))return vt(t),1;if(zt(t.nodeName,/[\u0080-\uFFFF]/))return vt(t),1;var i=Et(t.nodeName);if(Ct("uponSanitizeElement",t,{tagName:i,allowedTags:R}),!wt(t.firstElementChild)&&(!wt(t.content)||!wt(t.content.firstElementChild))&&Ht(/<[/\w]/g,t.innerHTML)&&Ht(/<[/\w]/g,t.textContent))return vt(t),1;if(R[i]&&!B[i])return t instanceof r&&!function(t){var e=y(t);e&&e.tagName||(e={namespaceURI:dt,tagName:"template"});var i=Et(t.tagName),n=Et(e.tagName);return t.namespaceURI===lt?e.namespaceURI===dt?"svg"===i:e.namespaceURI===st?"svg"===i&&("annotation-xml"===n||ht[n]):Boolean(gt[i]):t.namespaceURI===st?e.namespaceURI===dt?"math"===i:e.namespaceURI===lt?"math"===i&&mt[n]:Boolean(bt[i]):t.namespaceURI===dt&&((e.namespaceURI!==lt||mt[n])&&((e.namespaceURI!==st||ht[n])&&(n=jt({},["title","style","font","a","script"]),!bt[i]&&(n[i]||!gt[i]))))}(t)||("noscript"===i||"noembed"===i)&&Ht(/<\/no(script|embed)/i,t.innerHTML)?(vt(t),1):(q&&3===t.nodeType&&(e=t.textContent,e=Lt(e,S," "),e=Lt(e,M," "),t.textContent!==e&&(Ot(c.removed,{element:t.cloneNode()}),t.textContent=e)),Ct("afterSanitizeElements",t,null),0);if(tt&&!it[i]){var n=y(t)||t.parentNode,a=v(t)||t.childNodes;if(a&&n)for(var o=a.length-1;0<=o;--o)n.insertBefore(g(a[o],!0),b(t))}return vt(t),1}function It(t,e,i){if(K&&("id"===e||"name"===e)&&(i in a||i in pt))return!1;if(!(U&&Ht(O,e)||P&&Ht(E,e))){if(!W[e]||F[e])return!1;if(!ot[e]&&!Ht(_,Lt(i,L,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==_t(i,"data:")||!nt[t])&&(!G||Ht(z,Lt(i,L,"")))&&i)return!1}return!0}function Tt(t){var e=void 0,i=void 0,n=void 0;Ct("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){for(var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W},n=a.length;n--;){var r=(e=a[n]).name,s=e.namespaceURI,i=Rt(e.value),l=Et(r);if(o.attrName=l,o.attrValue=i,o.keepAttr=!0,o.forceKeepAttr=void 0,Ct("uponSanitizeAttribute",t,o),i=o.attrValue,!o.forceKeepAttr&&(yt(r,t),o.keepAttr))if(Ht(/\/>/i,i))yt(r,t);else{q&&(i=Lt(i,S," "),i=Lt(i,M," "));var d=t.nodeName.toLowerCase();if(It(d,l,i))try{s?t.setAttributeNS(s,r,i):t.setAttribute(r,i),Mt(c.removed)}catch(t){}}}Ct("afterSanitizeAttributes",t,null)}}function At(t){var e,i=xt(t);for(Ct("beforeSanitizeShadowDOM",t,null);e=i.nextNode();)Ct("uponSanitizeShadowNode",e,null),kt(e)||(e.content instanceof d&&At(e.content),Tt(e));Ct("afterSanitizeShadowDOM",t,null)}return c.sanitize=function(t,e){var i,n=void 0,a=void 0,o=void 0;if("string"!=typeof(t=(ut=!t)?"\x3c!--\x3e":t)&&!wt(t)){if("function"!=typeof t.toString)throw Wt("toString is not a function");if("string"!=typeof(t=t.toString()))throw Wt("dirty is not a string, aborting")}if(!c.isSupported){if("object"===re(s.toStaticHTML)||"function"==typeof s.toStaticHTML){if("string"==typeof t)return s.toStaticHTML(t);if(wt(t))return s.toStaticHTML(t.outerHTML)}return t}if(J||A(e),c.removed=[],"string"==typeof t&&(et=!1),!et)if(t instanceof u)1===(e=(n=Dt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===e.nodeName||"HTML"===e.nodeName?n=e:n.appendChild(e);else{if(!Q&&!q&&!Y&&-1===t.indexOf("<"))return D&&Z?D.createHTML(t):t;if(!(n=Dt(t)))return Q?null:x}n&&V&&vt(n.firstChild);for(var r=xt(et?t:n);i=r.nextNode();)3===i.nodeType&&i===a||kt(i)||(i.content instanceof d&&At(i.content),Tt(i),a=i);if(a=null,et)return t;if(Q){if($)for(o=k.call(n.ownerDocument);n.firstChild;)o.appendChild(n.firstChild);else o=n;return o=X?I.call(l,o,!0):o}return t=Y?n.outerHTML:n.innerHTML,q&&(t=Lt(t,S," "),t=Lt(t,M," ")),D&&Z?D.createHTML(t):t},c.setConfig=function(t){A(t),J=!0},c.clearConfig=function(){ft=null,J=!1},c.isValidAttribute=function(t,e,i){return ft||A({}),t=Et(t),e=Et(e),It(t,e,i)},c.addHook=function(t,e){"function"==typeof e&&(T[t]=T[t]||[],Ot(T[t],e))},c.removeHook=function(t){T[t]&&Mt(T[t])},c.removeHooks=function(t){T[t]&&(T[t]=[])},c.removeAllHooks=function(){T={}},c}()});var apexBIDashBoard=function(Ft,Pt){"use strict";var Ut={featureDetails:{name:"Material-BI-Dashboard",scriptVersion:"1.0.0.20",utilVersion:"1.4",url:"https://github.com/RonnyWeiss",url2:"https://linktr.ee/ronny.weiss",license:"CC BY-ND 4.0 License"},isDefinedAndNotNull:function(t){return null!=t&&""!=t},groupObjectArray:function(t,n){return t&&Array.isArray(t)?t.reduce(function(t,e){var i=e[n];return i&&(t[i=""+i]=t[i]||[]).push(e),t},{}):[]},link:function(t,e){if(!e)return window.parent.location.href=t;window.open(t,"_blank")},tooltip:{show:function(t,e,i){try{var n;0==Pt("#dynToolTip").length?(n=Pt("").attr("id","dynToolTip").css("max-width","400px").css("position","absolute").css("top","0px").css("left","0px").css("z-index","2000").css("background-color","rgba(240, 240, 240, 1)").css("padding","10px").css("display","block").css("top","0").css("overflow-wrap","break-word").css("word-wrap","break-word").css("-ms-hyphens","auto").css("-moz-hyphens","auto").css("-webkit-hyphens","auto").css("hyphens","auto"),e&&n.css("background-color",e),i&&n.css("max-width",i),Pt("body").append(n)):Pt("#dynToolTip").css("visibility","visible"),Pt("#dynToolTip").html(t),Pt("#dynToolTip").find("*").css("max-width","100%").css("overflow-wrap","break-word").css("word-wrap","break-word").css("-ms-hyphens","auto").css("-moz-hyphens","auto").css("-webkit-hyphens","auto").css("hyphens","auto").css("white-space","normal"),Pt("#dynToolTip").find("img").css("object-fit","contain").css("object-position","50% 0%")}catch(t){Ft.debug.error({fct:"utils.js",msg:"Error while try to show tooltip",err:t})}},setPosition:function(t){Pt("#dynToolTip").position({my:"left+6 top+6",of:t,collision:"flipfit"})},hide:function(){Pt("#dynToolTip").css("visibility","hidden")},remove:function(){Pt("#dynToolTip").remove()}},escapeHTML:function(t){if(null===t)return null;if(void 0!==t){if("object"==typeof t)try{t=JSON.stringify(t)}catch(t){}return Ft.util.escapeHTML(String(t))}},loader:{start:function(t,e){e&&Pt(t).css("min-height","100px"),Ft.util.showSpinner(Pt(t))},stop:function(t,e){e&&Pt(t).css("min-height",""),Pt(t+" > .u-Processing").remove(),Pt(t+" > .ct-loader").remove()}},splitString2Array:function(t){if(null!=t&&""!=t&&0 ").css("margin","12px").css("text-align","center").css("padding","10px 0").addClass("dominfomessagediv"),a=Pt(""),r=Pt("").addClass("fa").addClass(i||"fa-info-circle-o").addClass("fa-2x").css("height","32px").css("width","32px").css("margin-bottom","16px").css("color",n||"#D0D0D0"),a.append(r),s=Pt("").text(e).css("display","block").css("color","#707070").css("text-overflow","ellipsis").css("overflow","hidden").css("white-space","nowrap").css("font-size","12px"),o.append(a).append(s)):(o=Pt("").css("margin","10px").css("text-align","center").addClass("dominfomessagediv"),r=Pt("").addClass("fa").addClass(i||"fa-info-circle-o").css("font-size","22px").css("line-height","26px").css("margin-right","5px").css("color",n||"#D0D0D0"),s=Pt("").text(e).css("color","#707070").css("text-overflow","ellipsis").css("overflow","hidden").css("white-space","nowrap").css("font-size","12px").css("line-height","20px"),o.append(r).append(s)),Pt(t).append(o)},hide:function(t){Pt(t).children(".dominfomessagediv").remove()}},noDataMessage:{show:function(t,e){Ut.printDOMMessage.show(t,e,"fa-search")},hide:function(t){Ut.printDOMMessage.hide(t)}},errorMessage:{show:function(t,e){Ut.printDOMMessage.show(t,e,"fa-exclamation-triangle","#FFCB3D")},hide:function(t){Ut.printDOMMessage.hide(t)}},cutString:function(e,t){try{return!(t<0)&&e.length>t?e.substring(0,t-3)+"...":e}catch(t){return e}},isBetween:function(t,e,i){i=i||0;return e-i<=t&&t<=e+i}};function Gt(t,e,i){return i?void 0!==t&&null!=t?1==t||"true"===t:e:Ut.isDefinedAndNotNull(t)?t:e}function nt(t,e,i,n,a){e=t.append("defs").append("filter").attr("id",e);e.append("feGaussianBlur").attr("in","SourceAlpha").attr("stdDeviation",a).attr("result","blur"),e.append("feOffset").attr("in","blur").attr("dx",n).attr("dy",i).attr("result","offsetBlur"),e.append("feFlood").attr("in","offsetBlur").attr("flood-color","#000").attr("flood-opacity","0.26").attr("result","offsetColor"),e.append("feComposite").attr("in","offsetColor").attr("in2","offsetBlur").attr("operator","in").attr("result","offsetBlur");e=e.append("feMerge");e.append("feMergeNode").attr("in","offsetBlur"),e.append("feMergeNode").attr("in","SourceGraphic")}function qt(t,e,i,n){return!1!==n?Ut.escapeHTML(t):!0!==i&&-1 ");{var s;r.addClass("bida-container-sizer"),r.addClass(f+"-sizer"),y.append(r),t.items&&0 ");d.attr("id",r),d.attr("item-id",n.itemID),d.addClass("bida-container-item"),d.addClass(f+"-item"),d.addClass("bida-container-item--width"+e),d.css("min-height",l),d.css("background",n.backColor||a.backColor),d.css("color",n.color||a.color),Ut.isDefinedAndNotNull(n.itemID)&&(d.attr("item-id",n.itemID),d.addClass(u+"--"+n.itemID));i.append(d),_(t,l,s,o,a);o=Gt(n.isAsync,!1,!0);{var c;"A"===p&&o&&(Pt(d).on("itemrefresh",function(){n.itemData=null,_(t,l,s,n,a,!0)}),0 ");e.css("position","absolute"),e.css("margin","-5px"),e.css("bottom","0px"),e.css("right","10px"),e.css("font-size","9px"),e.css("color","rgb(0,0,0,0.3)"),e.css("line-height","9px");var i=Pt("");i.addClass("fa"),i.addClass("fa-heart"),i.css("font-size","9px"),i.css("color","inherit"),i.css("opacity","0.3"),i.css("line-height","10px");var n=Pt("");n.attr("href","https://linktr.ee/ronny.weiss"),n.attr("target","_blank"),n.css("color","inherit"),n.append(i);var a=Pt("");a.addClass("fa"),a.addClass("fa-apex"),a.css("font-size","9px"),a.css("color","inherit"),a.css("opacity","0.3"),a.css("line-height","10px"),(i=Pt("")).attr("href","https://apex.oracle.com"),i.attr("target","_blank"),i.css("color","inherit"),i.append(a),e.append("Build with "),e.append(n),e.append(" for "),e.append(i),Pt(t).append(e)}(y),i(),s={delay:50,zIndex:10,items:".bida-container-item",grid:[10,10],tolerance:"pointer",start:function(t,e){a||(a=Pt(e.item).clone(),Pt("body").append(a)),Pt(e.item).hide(),a.fadeIn(),a.css("opacity","0.5"),a.css("filter","grayscale(100%)")},sort:function(t,e){a.css("left",e.offset.left),a.css("top",e.offset.top)},change:function(t,e){y.find(".ui-sortable-placeholder").each(function(t,e){Pt(e).css("visibility","visible")}),Pt(e.item).css("left",e.position.left),Pt(e.item).css("top",e.position.top),i()},stop:function(t,e){a.remove(),a="",Pt(e.item).show(),i()},update:function(t,e){var i=[];y.find(".bida-container-item").each(function(t,e){e=Pt(e).attr("item-id");i.push(e)}),Ft.debug.info({fct:Ut.featureDetails.name+" - drawGridItems",sortInfo:i,featureDetails:Ut.featureDetails}),y.trigger("sortorder",i.join(":"))}},n.isSortable&&(o=y.sortable(s)),Pt(D).on("sortableOn",function(){Ft.debug.info({fct:Ut.featureDetails.name+" - drawGridItems",msg:"sortable on by trigger",featureDetails:Ut.featureDetails}),o||y.sortable(s),y.sortable("enable")}),Pt(D).on("sortableOff",function(){Ft.debug.info({fct:Ut.featureDetails.name+" - drawGridItems",msg:"sortable off by trigger",featureDetails:Ut.featureDetails}),y.sortable("disable")})):(y.addClass("bida-container-nodat"),Ut.noDataMessage.show(y,n.noDataMessage))}Ut.loader.stop(D),y.trigger("rendered"),Ft.debug.info({fct:Ut.featureDetails.name+" - drawGridItems",msg:"Material BI Dashboard rendering finished",featureDetails:Ut.featureDetails})}(t,e),i&&y.trigger("refreshed")},error:function(t){t=t,Pt(v).empty(),Pt(v).addClass("bida-container-nodat"),Ut.errorMessage.show(v,e.errorMessage),Ut.loader.stop(D),t.responseText&&Ft.debug.error({fct:Ut.featureDetails.name+" - getData",msg:t.responseText,featureDetails:Ut.featureDetails}),i&&y.trigger("refreshed")},dataType:"json"})}function _(n,t,a,o,r,e){var s=Pt(a),l=t,i=100;function d(){m&&(m.layout(),Pt(document).scrollTop(x))}function c(){function t(){b=setInterval(function(){var t,e;0===Pt(y).length?clearInterval(b):Pt(y).is(":visible")&&(t=document.getElementById(f).scrollHeight,e=Pt(y).height(),Ut.isBetween(e,t,w)||(Ft.debug.info({moudule:"checkMasonrySize",msg:"Masonry has resize problem",featureDetails:Ut.featureDetails,scrollHeight:t,innerHeight:e}),d()))},jt.defTime)}function e(){b&&clearInterval(b)}b||(e(),t(),document.addEventListener("visibilitychange",function(){(document.hidden?e:t)()}))}function u(){Ut.loader.stop(a),setTimeout(function(){Ut.loader.stop(a)},i)}t=Gt(o.isAsync,!1,!0);e||"A"===p&&t?Ut.isDefinedAndNotNull(o.itemID)?(t=r.items2Submit,setTimeout(function(){Ut.loader.start(a)},i),Ft.server.plugin(g,{pageItems:t,x01:"itemData",x02:o.itemID,x04:k},{success:function(t,e,i){Ft.debug.info({fct:Ut.featureDetails.name+" - prepareItemContent",asyncAjaxReference:k,pData:t,featureDetails:Ut.featureDetails}),i.getResponseHeader("ajax-reference")==k?(i=t,i=Ut.jsonSaveExtend(o,i),s.empty(),Ut.isDefinedAndNotNull(i.itemID)&&(s.attr("item-id",i.itemID),s.addClass(i.itemID)),l=(i.height||r.height)-C,s.css("min-height",l),H(n,a,l,i,r),u(),d(),c()):Ft.debug.info({fct:Ut.featureDetails.name+" - prepareItemContent",msg:"Expired Async AJAX Call returned.",pData:t,featureDetails:Ut.featureDetails})},error:function(t){t=t,s.empty(),t.status&&404==t.status?Ut.noDataMessage.show(a,r.noDataMessage):(Ut.errorMessage.show(a,r.errorMessage),Ft.debug.error({msg:"Error occured in PL/SQL Block for async Loading of Data",data:t,featureDetails:Ut.featureDetails})),u(),d(),c()},dataType:"json"})):(s.empty(),Ut.errorMessage.show(a,r.errorMessage),Ft.debug.error({fct:Ut.featureDetails.name+" - prepareItemContent",msg:"itemID missing in JSON for async load!",featureDetails:Ut.featureDetails})):(H(n,a,l,o,r),d(),c())}function R(t,e,i,n,a){Ft.debug.info({fct:Ut.featureDetails.name+" - drawSubText",pPosition:t,pParent:e,pText:i,pDefaultConfig:n,pIsSafeItem:a,featureDetails:Ut.featureDetails});var o="bida-item-subtext-"+t,r=Pt(""),s=Pt(e).find("."+o);(r=s[0]?s:r).addClass(o);o=Pt("");o.addClass("bida-item-subtext-text"),o.addClass("bida-item-subtext-text-"+t),o.addClass("truncate-text");a=qt(i,n,a,Wt);o.html(a),r.html(o),r.attr("title",o.text()),Pt(e).append(r)}function H(t,e,i,n,a){var o,r,s,l,d=Pt(e),c=n.itemConfig||{};Ut.isDefinedAndNotNull(n.optionsLink)&&((s=Pt("")).addClass("bida-item-options-link"),s.attr("href",n.optionsLink),s.css("background-color",n.optionsLinkBackColor||a.optionsLink.backColor),r="fa-",o=Pt(""),l=n.optionsLinkIcon||a.optionsLink.icon,Ut.isDefinedAndNotNull(l)&&l.substr(0,r.length)===r?(o.addClass("fa"),o.addClass(l),o.css("color",n.optionsLinkColor||a.optionsLink.color)):o.css("background-image","url("+l+")"),o.addClass("bida-item-options-link-icon"),s.append(o),d.append(s)),Ut.isDefinedAndNotNull(n.optionsLinkTop)&&((f=Pt("")).addClass("bida-item-options-link-top"),f.attr("href",n.optionsLinkTop),f.css("background-color",n.optionsLinkTopBackColor||a.optionsLinkTop.backColor),r="fa-",s=Pt(""),l=n.optionsLinkTopIcon||a.optionsLinkTop.icon,Ut.isDefinedAndNotNull(l)&&l.substr(0,r.length)===r?(s.addClass("fa"),s.addClass(l),s.css("color",n.optionsLinkTopColor||a.optionsLinkTop.color)):s.css("background-image","url("+l+")"),s.addClass("bida-item-options-link-icon"),f.append(s),d.append(f));var u,f=Gt(n.isMarked,!1,!0);if(d.removeClass("bida-container-item-marked"),f&&d.addClass("bida-container-item-marked"),Ut.isDefinedAndNotNull(n.itemType)){var p=!1;Ut.isDefinedAndNotNull(n.oversize)&&(p=Gt(n.oversize,!1,!0));var h=!1;Ut.isDefinedAndNotNull(n.noSanitize)&&(h=Gt(n.noSanitize,!1,!0));var m=i;if(Ut.isDefinedAndNotNull(n.title)&&function(t,e,i,n,a,o,r,s){Ft.debug.info({fct:Ut.featureDetails.name+" - drawItemTitle",pText:e,pBackColor:i,pColor:n,pParent:t,pIcon:a,pIconColor:o,pDefaultConfig:r,pIsSafeItem:s,featureDetails:Ut.featureDetails});var l="bida-item-title",d=Pt(""),c=Pt(t).find("."+l);(d=c[0]?c:d).addClass(l),d.css("background",i||r.title.backColor),d.css("color",n||r.title.color),(n=Pt("")).addClass("bida-item-title-text"),n.addClass("truncate-text"),s=qt(e,r,s,Wt),n.html(s),n.attr("title",n.text()),d.html(n),a=a||r.title.icon,o=o||r.title.iconColor,Ut.isDefinedAndNotNull(a)&&(r=Pt(""),"fa-"===a.substr(0,"fa-".length)?(r.addClass("fa"),r.addClass(a),r.css("color",o)):r.css("background-image","url("+a+")"),r.addClass("bida-item-title-icon"),n.prepend(r)),Pt(t).prepend(d)}(e,n.title,n.titleBackColor,n.titleColor,n.titleIcon,n.titleIconColor,a,h),Ut.isDefinedAndNotNull(n.subText1)&&R(1,e,n.subText1,a,h),Ut.isDefinedAndNotNull(n.subText2)&&R(2,e,n.subText2,a,h),u=i,Pt(i=e).children(".bida-item-title").each(function(){u=Math.floor(u-Pt(this).height())-1}),Pt(i).children(".bida-item-subtext-1").each(function(){u=Math.floor(u-Pt(this).height())-1}),Pt(i).children(".bida-item-subtext-2").each(function(){u=Math.floor(u-Pt(this).height())-1}),m=u,Ut.isDefinedAndNotNull(n.itemData)||"calendar"===n.itemType||"note"===n.itemType||"clock"===n.itemType)switch(Ft.debug.info({fct:Ut.featureDetails.name+" - drawItemRegionContent",msg:"Render Item "+n.itemType+"("+n.title+")",featureDetails:Ut.featureDetails}),n.itemType){case"chart":-1 ");return n.addClass("bb-tooltip"),n.addClass("bida-chart-tooltip-custome"),Pt.each(t,function(t,e){var i=""+unescape(e.id),e=e.index;At[i]&&(1===At[i].length&&(e=0),At[i][e]&&Ut.isDefinedAndNotNull(At[i][e].tooltip)&&(e=qt(At[i][e].tooltip,s,a,Wt),n.append(e),n.append("
")))}),n[0].outerHTML});try{var Mt=r+"bbc",Ot=Mt.replace("#",""),Et=Pt("");Et.attr("id",Ot),Pt(r).append(Et);var zt={bindto:Mt,background:g,title:{text:h},size:{height:t},data:{x:U,xFormat:P,columns:vt,types:wt,groups:Dt,colors:xt,labels:Nt,axes:Ct,names:kt,onclick:function(t){var e;e=t,t=""+unescape(e.id),e=e.index,At[t]&&(1===At[t].length&&(e=0),At[t][e]&&At[t][e].link&&Ut.link(At[t][e].link))}},pie:{label:{format:n,threshold:.05}},donut:{label:{format:n,threshold:.05}},line:{step:{type:b}},gauge:{label:{format:n,threshold:"single"===D?.05:null},fullCircle:C,min:v,max:y,type:D,width:x,title:k,arc:{minWidth:w}},radar:{direction:{clockwise:!0}},subchart:{show:ht},zoom:{type:pt,enabled:ft,rescale:bt},transition:{duration:W},legend:{show:N,position:S},tooltip:{show:R,grouped:H,contents:o},grid:{x:{show:I},y:{show:T}},point:{show:St},axis:{rotated:E,x:{show:j,label:{text:B,position:L},type:F,tick:{culling:{max:q},autorotate:Q,rotate:Y,multiline:J,format:$,fit:V},height:A},y:{label:{text:X,position:_},type:K,max:et,min:tt,tick:{culling:{max:it},format:function(t){return t+nt}}},y2:{show:at,label:{text:ot,position:_},type:st,max:dt,min:lt,tick:{culling:{max:ct},format:function(t){return t+ut}}}},padding:M};Ft.debug.info({fct:Ut.featureDetails.name+" - drawChart",finalChartData:zt,featureDetails:Ut.featureDetails});var Lt=bb.generate(zt);function _t(){!document.hidden&&Et.is(":visible")&&Lt.resize({height:t})}function Rt(){jt.innerItemsIntervals&&jt.innerItemsIntervals[r]&&clearInterval(jt.innerItemsIntervals[r])}function Ht(){jt.innerItemsIntervals[r]=setInterval(function(){0===Pt(r).length?clearInterval(jt.innerItemsIntervals[r]):Et.is(":visible")&&(Ut.isBetween(Et.width(),Et.find("svg").width(),Bt)||(Ft.debug.info({fct:Ut.featureDetails.name+" - drawChart",msg:"Chart has resize problem",featureDetails:Ut.featureDetails}),_t()))},jt.defTime)}ft&&Pt(Mt).contextmenu(function(t){t.preventDefault(),Lt.unzoom()}),Pt(window).resize(function(){_t()}),Rt(),Ht(),document.addEventListener("visibilitychange",function(){(document.hidden?Rt:Ht)()})}catch(t){Pt(r).empty(),Ut.errorMessage.show(r,s.errorMessage),Ft.debug.error({fct:Ut.featureDetails.name+" - drawChart",msg:"Error while try to render chart",err:t,featureDetails:Ut.featureDetails})}}else Ut.noDataMessage.show(r,s.noDataMessage)}catch(t){Pt(r).empty(),Ut.errorMessage.show(r,s.errorMessage),Ft.debug.error({fct:Ut.featureDetails.name+" - drawChart",msg:"Error while prepare data for chart",err:t,featureDetails:Ut.featureDetails})}}(e,m,c,n.itemData,a,h):(Ut.errorMessage.show(e,a.errorMessage),Ft.debug.error({fct:Ut.featureDetails.name+" - drawItemRegionContent",msg:"itemData is missing in JSON",featureDetails:Ut.featureDetails})):(Ut.errorMessage.show(e,a.errorMessage),Ft.debug.info({fct:Ut.featureDetails.name+" - drawItemRegionContent",msg:"Feature - Charts is not activated.",featureDetails:Ut.featureDetails}));break;case"html":!function(i,t,n,a,o,e,r){Ft.debug.info({fct:Ut.featureDetails.name+" - drawHTML",pItemSel:i,pItemHeight:t,pItemData:n,pDefaultConfig:o,pOversize:e,pIsSafeItem:r,featureDetails:Ut.featureDetails});var s,l=Pt("");function d(t){var e=qt(t,o,r,Wt);Ft.debug.info({fct:Ut.featureDetails.name+" - drawHTML",submodule:"renderHTML",pContent:t,contentAfterEscapeOrSanitize:e,featureDetails:Ut.featureDetails}),l.html(e),-1n.length-1?u=0:u<0&&(u=n.length-1),n[u]&&(d(n[u].html),(e=n[u].duration)&&0 ")).addClass("bida-item-html-slide-lc"),p.on("click",function(){u--,clearTimeout(s),Pt(l).fadeOut("fast",function(){c(),Pt(l).fadeIn("fast")})}),(f=Pt("")).addClass("fa fa-chevron-left fa-lg"),f.addClass("bida-item-html-slide-lc-s"),p.append(f),Pt(i).append(p),(f=Pt("")).addClass("bida-item-html-slide-rc"),f.on("click",function(){u++,clearTimeout(s),Pt(l).fadeOut("fast",function(){c(),Pt(l).fadeIn("fast")})}),(p=Pt("")).addClass("fa fa-chevron-right fa-lg"),p.addClass("bida-item-html-slide-rc-s"),f.append(p),Pt(i).append(f),c()):n&&"object"==typeof n&&1===n.length?Ut.isDefinedAndNotNull(n[0].html)&&""!==n[0].html?d(n[0].html):Ut.noDataMessage.show(l,o.noDataMessage):Ut.isDefinedAndNotNull(n)&&""!==n?d(n):Ut.noDataMessage.show(l,o.noDataMessage)}Pt(i).append(l),!0!==e&&(l.css("height",t),W(l))}(e,m,n.itemData,n.itemID,a,p,h);break;case"card":!function(t,e,i,n,a,o,r){Ft.debug.info({fct:Ut.featureDetails.name+" - drawCard",pIndex:t,pItemHeight:e,pItemSel:i,pItemData:n,pDefaultConfig:a,pOversize:o,pIsSafeItem:r,featureDetails:Ut.featureDetails});var s=Pt("");s.addClass("bida-item-card");var l=Pt("");{var d,c;l.addClass("card-content"),(Ut.isDefinedAndNotNull(n.icon)||Ut.isDefinedAndNotNull(n.iconText))&&((u=Pt("")).addClass("card-content-icon-div"),d=Pt(""),Ut.isDefinedAndNotNull(n.icon)&&"fa-"===n.icon.substr(0,"fa-".length)?(d.addClass("fa "+n.icon),c="linear-gradient(60deg, hsl("+23*t%350+", 79%, 45%), hsl("+23*t%350+", 60%, 45%))",d.css("background",n.iconBackColor||c)):(Ut.isDefinedAndNotNull(n.iconText)&&(t=qt(n.iconText,a,r,Wt),(c=Pt("")).addClass("card-content-icon-text"),c.html(t),d.append(c)),Ut.isDefinedAndNotNull(n.icon)&&d.css("background-image","url("+n.icon+")"),d.css("background-color",n.iconBackColor)),d.addClass("card-content-icon"),d.css("color",n.iconColor||"white"),u.append(d),l.append(u))}var u=Pt("");u.addClass("card-title-div"),Ut.isDefinedAndNotNull(n.icon)&&u.css("width","calc(100% - 55px)");Ut.isDefinedAndNotNull(n.value)&&((p=Pt("")).addClass("card-title"),p.addClass("truncate-text"),f=qt(n.value,a,r,Wt),p.html(f),u.append(p));{var f,p;Ut.isDefinedAndNotNull(n.valueSmall)&&(Ut.isDefinedAndNotNull(n.value)&&p.css("line-height","30px"),(f=Pt("")).addClass("card-sub-title"),p=qt(n.valueSmall,a,r,Wt),f.html(p),u.append(f))}l.append(u),s.append(l),Ut.isDefinedAndNotNull(n.footer)&&((h=Pt("")).addClass("bida-card-footer"),l=Pt(""),(l=Pt("")).addClass("stats"),r=qt(n.footer,a,r,Wt),l.html(r),h.append(l),s.append(h));{var h;Ut.isDefinedAndNotNull(n.link)?((h=Pt("")).addClass("bida-a"),h.attr("href",n.link),h.append(s),Pt(i).append(h),!0!==o&&(h.css("height",e),W(h))):(Pt(i).append(s),!0!==o&&(s.css("height",e),W(s)))}}(t,m,e,n.itemData,a,p,h);break;case"badge":!function(t,i,e,n,a,o){Ft.debug.info({fct:Ut.featureDetails.name+" - drawBadges",pIndex:t,pItemHeight:i,pItemSel:e,pItemData:n,pDefaultConfig:a,pIsSafeItem:o,featureDetails:Ut.featureDetails});var r=!1,s=.98,l=.15,d=.28,c=.28,u=c-l,f=0,t="linear-gradient(60deg, hsl("+23*t%350+", 79%, 45%), hsl("+23*t%350+", 60%, 45%))",p=Pt("");p.addClass("bida-item-badge"),Ut.isDefinedAndNotNull(n.title)&&f++;Ut.isDefinedAndNotNull(n.icon)&&f++;Ut.isDefinedAndNotNull(n.value)&&f++;0 ")).addClass("bida-item-badge-text"),(h=Pt("")).css("color",n.titleColor||t),f=qt(n.title,a,o,Wt),h.html(f),g.append(h),p.append(g)):(d+=l/2,c+=l/3)}{var m,g;Ut.isDefinedAndNotNull(n.icon)?((b=Pt("")).addClass("bida-item-badge-icon"),m=Pt(""),Ut.isDefinedAndNotNull(n.icon)&&"fa-"===n.icon.substr(0,"fa-".length)?(m.addClass("fa "+n.icon),m.css("color",n.iconColor||t)):(Ut.isDefinedAndNotNull(n.iconText)&&(g=qt(n.iconText,a,o,Wt),m.html(g)),Ut.isDefinedAndNotNull(n.icon)&&(r=!0,m.css("background-image","url("+n.icon+")"),m.addClass("bida-item-badge-icon-image"))),b.append(m),p.append(b)):(l+=d/3,c+=d/3)}{var b,v;Ut.isDefinedAndNotNull(n.value)?((b=Pt("")).addClass("bida-item-badge-text-value"),(v=Pt("")).css("color",n.valueColor||t),o=qt(n.value,a,o,Wt),v.html(o),b.append(v),p.append(b)):(l+=c/3,d+=c/2)}Ut.isDefinedAndNotNull(n.link)&&(p.css("cursor","pointer"),p.on("click",function(){Ut.link(n.link)}));function y(){var t=i,e=Math.min(t,p.width());h&&(h.css("font-size",e*l+"px"),h.css("line-height",t*(s-u)+"px")),m&&(m.css("font-size",e*d+"px"),m.css("line-height",t*s+"px"),r&&(m.css("height",t*s+"px"),m.css("width",t*s+"px"))),v&&(v.css("font-size",e*c+"px"),v.css("line-height",t*s+"px"))}Pt(e).append(p),y(),Pt(window).resize(function(){y()});var D=p.width();function x(){jt.innerItemsIntervals&&jt.innerItemsIntervals[e]&&clearInterval(jt.innerItemsIntervals[e])}function w(){jt.innerItemsIntervals[e]=setInterval(function(){0===Pt(e).length?clearInterval(jt.innerItemsIntervals[e]):p.is(":visible")&&(Ut.isBetween(p.width(),D,Bt)||(D=p.width(),y()))},100)}x(),w(),document.addEventListener("visibilitychange",function(){(document.hidden?x:w)()})}(t,m,e,n.itemData,a,h);break;case"list":!function(t,e,i,u,n,f){Ft.debug.info({fct:Ut.featureDetails.name+" - drawList",pItemSel:t,pItemHeight:e,pItemData:i,pDefaultConfig:u,pOversize:n,pIsSafeItem:f,featureDetails:Ut.featureDetails});var a=Pt("");a.addClass("bida-item-list-div");var s=Pt(" ");function l(d,c){Pt.each(c,function(t,e){var i=Pt("");i.addClass("bida-item-list-item");var n,a,o=Pt("");o.addClass("list-item-content"),t
")).addClass("listItem-content-icon-div"),n=Pt(""),e.icon&&"fa-"===e.icon.substr(0,"fa-".length)?(n.addClass("fa "+e.icon),n.css("background",e.iconBackColor||"linear-gradient(60deg, hsl("+23*t%350+", 79%, 45%), hsl("+23*t%350+", 60%, 45%))")):(Ut.isDefinedAndNotNull(e.iconText)&&(a=qt(e.iconText,u,f,Wt),(t=Pt("")).addClass("list-item-content-icon-text"),t.html(a),n.append(t)),Ut.isDefinedAndNotNull(e.icon)&&n.css("background-image","url("+e.icon+")"),n.css("background-color",e.iconBackColor)),n.addClass("list-item-content-icon"),n.css("color",e.iconColor||"white"),l.append(n),o.append(l));var r,s,l=Pt("");l.addClass("list-item-content-text"),Ut.isDefinedAndNotNull(e.icon)&&l.css("width","calc(100% - 55px)"),Ut.isDefinedAndNotNull(e.title)&&((s=Pt("")).addClass("list-item-title"),s.addClass("truncate-text"),r=qt(e.title,u,f,Wt),s.html(r),l.append(s)),Ut.isDefinedAndNotNull(e.text)&&((r=Pt("")).addClass("list-item-text"),s=qt(e.text,u,f,Wt),r.html(s),l.append(r)),o.append(l),i.append(o),Ut.isDefinedAndNotNull(e.link)?((o=Pt("")).addClass("bida-a"),o.attr("href",e.link),o.append(i),d.append(o)):d.append(i)})}s.addClass("bida-item-list");var o=[];Pt.each(i,function(t,e){Ut.isDefinedAndNotNull(e.group)||o.push(e)});i=Ut.groupObjectArray(i,"group");Ft.debug.info({fct:Ut.featureDetails.name+" - drawList",noGroupsArr:o,groupsArr:i,featureDetails:Ut.featureDetails}),l(s,o),Pt.each(i,function(t,e){var i=Pt("");i.addClass("bida-item-list-item-group");var n="#f1f1f1";e[0].groupBackColor&&(n=e[0].groupBackColor);var a="inherit";e[0].groupColor&&(a=e[0].groupColor);var o=Pt("");o.addClass("list-group-content"),o.css("border-left","3px solid "+n);var r=Pt("");r.addClass("list-group-content-title");t=qt(t,u,f,Wt);r.css("background",n),r.css("color",a),r.html(t),o.append(r),i.append(o);r=Pt(" ");r.addClass("bida-item-list-grouped"),l(r,e),o.append(r),s.append(i)}),a.append(s),Pt(t).append(a),!0!==n&&(a.css("height",e),W(a))}(e,m,n.itemData,a,p,h);break;case"table":-1
");r.addClass("bida-item-table-div");var s=Pt(" ");s.addClass("bida-item-table"),Ut.isDefinedAndNotNull(i.header)&&0
")).addClass("bida-item-table-header"),i.css("background-color",e.background||a.table.header.background),i.css("text-align",e.textAlign||a.table.header.textAlign),i.css("color",e.color||a.table.header.color),i.css("border",e.border||a.table.header.border),e=qt(e.text,a,o,Wt),i.html(e),s.append(i))});Ut.isDefinedAndNotNull(i.data)&&0 ");n.addClass("bida-item-table-row"),t%2==0?(n.addClass("bida-item-table-row-even"),n.css("background",a.table.evenRow.background),n.css("text-align",a.table.evenRow.textAlign),n.css("color",a.table.evenRow.color),n.css("border-bottom",a.table.evenRow.borderBottom)):(n.addClass("bida-item-table-row-odd"),n.css("background",a.table.oddRow.background),n.css("text-align",a.table.oddRow.textAlign),n.css("color",a.table.oddRow.color),n.css("border-bottom",a.table.oddRow.borderBottom)),Pt.each(e,function(t,e){var i;Ut.isDefinedAndNotNull(e.text)&&((i=Pt(" ")).addClass("bida-item-table-cell"),i.css("background",e.background||a.table.cells.background),i.css("text-align",e.textAlign||a.table.cells.textAlign),i.css("color",e.color||a.table.cells.color),i.css("border",e.border||a.table.cells.border),e=qt(e.text,a,o,Wt),i.html(e),n.append(i))}),s.append(n)});r.append(s),Pt(t).append(r),!0!==n&&(r.css("height",e),W(r))}(e,m,n.itemData,a,p,h):(Ut.errorMessage.show(e,a.errorMessage),Ft.debug.error({fct:Ut.featureDetails.name+" - drawItemRegionContent",msg:"Feature - Tables is not activaed.",featureDetails:Ut.featureDetails}));break;case"map":-1 ");c.addClass("bida-calendar"),c.attr("id",l),s.append(c);var u=Gt(n.eventLimitPerDay,a.calendarOptions.eventLimitPerDay),f=Gt(n.displayTime,a.calendarOptions.displayTime,!0),t=Gt(n.viewType,a.calendarOptions.viewType),s=Gt(n.hours12,a.calendarOptions.hours12,!0),n=Gt(n.timeGridStartTime,a.calendarOptions.timeGridStartTime);s||"en"!=d||(d="en-bz");var p={month:"2-digit",year:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:s,locale:d};["dayGridMonth","dayGridWeek","timeGridWeek","listWeek","listMonth","listDay"].indexOf(t)<0&&(t="dayGridMonth");l=document.getElementById(l),n=new FullCalendar.Calendar(l,{height:e,events:i,displayEventTime:f,initialView:t,eventDisplay:"block",eventMouseEnter:function(t){var e=Pt("");e.addClass("bida-calendar-event-tt");var i=Pt("");i.addClass("bida-calendar-event-tt-title");var n=qt(t.event.title,a,r,Wt);Ut.isDefinedAndNotNull(n)&&(i.append(n),e.append(i),e.append("
"));n=Pt("");n.addClass("bida-calendar-event-tt-subtitle");i=Pt("");i.addClass("fa fa-clock-o"),i.addClass("bida-calendar-event-tt-icon"),n.append(i);i=Pt("");i.addClass("bida-calendar-event-tt-date"),i.append(" "),i.append(FullCalendar.formatDate(t.event.start,p)),Ut.isDefinedAndNotNull(t.event.end)&&(i.append(" - "),i.append(FullCalendar.formatDate(t.event.end,p))),n.append(i),e.append(n),Ut.isDefinedAndNotNull(t.event.extendedProps.details)&&(i=qt(t.event.extendedProps.details,a,r,Wt),Ut.isDefinedAndNotNull(i)&&((n=Pt("")).addClass("bida-calendar-event-tt-content"),n.append(i),e.append(n))),Ut.tooltip.show(e),Ut.tooltip.setPosition(t.jsEvent)},eventMouseLeave:function(){Ut.tooltip.hide()},eventClick:function(){Ut.tooltip.hide()},dayMaxEventRows:u,eventDidMount:function(t){var e=qt(t.event.title,a,r,Wt);Pt(t.el).find(".fc-event-title").html(e),Pt(t.el).find(".fc-list-event-title").find("a").html(e)},allDaySlot:!1,nowIndicator:!0,views:{dayGrid:{}},eventTimeFormat:{hour:p.hour,minute:p.minute,hour12:p.hour12},scrollTime:n,slotLabelFormat:{hour:p.hour,minute:p.minute,hour12:p.hour12}});n.setOption("locale",d),n.changeView(t),n.render(),!0!==o&&(c.css("height",e),c.addClass("bida-item-div-overflow"),W(c))}(e,m,n.itemData,c,a,p,h):(Ut.errorMessage.show(e,a.errorMessage),Ft.debug.error({fct:Ut.featureDetails.name+" - drawItemRegionContent",msg:"Feature - Calendar is not activaed.",featureDetails:Ut.featureDetails}));break;case"note":-1");l.addClass("bida-note"),l.attr("id",r),l.css("height",t),i.append(l);var d=r+"-save";function c(){Pt("#"+d).parent().addClass("pell-button-disabled")}pell.init({element:document.getElementById(r),onChange:function(t){Pt("#"+d).parent().removeClass("pell-button-disabled")},defaultParagraphSeparator:"p",styleWithCSS:!1,classes:{actionbar:"pell-actionbar",button:"pell-button",content:"pell-content",selected:"pell-button-selected"},actions:[{name:"Save",icon:'',title:"Save",result:function(){var t=l.find(".pell-content");Ut.loader.start(a),c();var e=t.html(),i=Ut.splitString2Array(e),t=o.items2Submit;Ft.server.plugin(g,{pageItems:t,x01:"noteUpload",x02:n,f01:i},{dataType:"text",success:function(t){Ut.loader.stop(a),y.trigger("shortnotesaved",{itemID:n,itemSel:a,clob:e}),Ft.debug.info({fct:Ut.featureDetails.name+" - drawNoteEditor",msg:"Upload successful.",featureDetails:Ut.featureDetails})},error:function(t,e,i){Ut.loader.stop(a),Ft.message.clearErrors(),Ft.message.showErrors([{type:"error",location:["page"],message:o.errorMessage,unsafe:!1}]),Ft.debug.info({fct:Ut.featureDetails.name+" - drawNoteEditor",msg:"Error while try to upload NoteEditor Content",jqXHR:t,textStatus:e,errorThrown:i,featureDetails:Ut.featureDetails})}})}},{name:"bold",icon:'',title:"Bold"},{name:"italic",icon:'',title:"Italic"},{name:"underline",icon:'',title:"Underline"},{name:"strikethrough",icon:'',title:"Strikethrough"},{name:"heading1",icon:'1',title:"Heading 1"},{name:"heading2",icon:'2',title:"Heading 2"},{name:"paragraph",icon:''},{name:"olist",icon:'',title:"Ordered List"},{name:"ulist",icon:'',title:"Unordered List"}]}),r=e&&"object"==typeof e?e.text:e;r=qt(r,o,s,Wt);e=l.find(".pell-content"),s=l.find(".pell-actionbar").height();e.html(r),e.css("height",l.height()-s),c(),l.find(".pell-button").removeAttr("title")}(n.itemID,e,m,n.itemData,c,a,p,h):(Ut.errorMessage.show(e,a.errorMessage),Ft.debug.error({fct:Ut.featureDetails.name+" - drawItemRegionContent",msg:"Feature - Editor is not activaed.",featureDetails:Ut.featureDetails}));break;default:Ut.errorMessage.show(e,a.errorMessage),Ft.debug.error({fct:Ut.featureDetails.name+" - drawItemRegionContent",msg:"itemType not found (html, card, list, map, table, clock, calendar)",featureDetails:Ut.featureDetails})}else Ut.noDataMessage.show(e,a.noDataMessage);Ut.isDefinedAndNotNull(n.subText2)&&((i=Pt(e).find(".bida-item-subtext-2")).appendTo(e),i.addClass("bida-item-subtext-2-fin"))}else Ut.errorMessage.show(e,a.errorMessage),Ft.debug.error({fct:Ut.featureDetails.name+" - drawItemRegionContent",msg:"itemType is missing in JSON",featureDetails:Ut.featureDetails})}function W(t){var e=Pt(t);e.addClass("bida-item-div-overflow"),e.on("scroll",function(){e.scrollTop()+e.innerHeight()>=e[0].scrollHeight?e.addClass("bida-item-div-overflow-hidden"):e.removeClass("bida-item-div-overflow-hidden")});var i=e.innerHeight(),t=e[0].scrollHeight;Ft.debug.info({fct:Ut.featureDetails.name+" - overFlowStyling",innerHeight:i,scrollHeight:t,featureDetails:Ut.featureDetails}),t<=i&&0!==t&&e.addClass("bida-item-div-overflow-hidden")}}}}; \ No newline at end of file diff --git a/demoApp/Demo_App.sql b/demoApp/Demo_App.sql index 3a4e320..285fca9 100644 --- a/demoApp/Demo_App.sql +++ b/demoApp/Demo_App.sql @@ -71,7 +71,7 @@ wwv_flow_api.create_flow( ,p_substitution_string_01=>'APP_NAME' ,p_substitution_value_01=>'Material BI Dashboard Demo' ,p_last_updated_by=>'RONNYWEISS@OUTLOOK.COM' -,p_last_upd_yyyymmddhh24miss=>'20210817212017' +,p_last_upd_yyyymmddhh24miss=>'20210817212410' ,p_file_prefix => nvl(wwv_flow_application_install.get_static_app_file_prefix,'') ,p_files_version=>35 ,p_ui_type_name => null @@ -93539,7 +93539,7 @@ wwv_flow_api.create_plugin( ||' the modified plug-in!' ,p_version_identifier=>'1.0.0.20' ,p_about_url=>'https://github.com/RonnyWeiss/APEX-BI-Dashboard' -,p_files_version=>5048 +,p_files_version=>5049 ); wwv_flow_api.create_plugin_attribute( p_id=>wwv_flow_api.id(161556939867686644690) @@ -95753,7 +95753,7 @@ wwv_flow_api.g_varchar2_table(440) := '436F6E6669673D66756E6374696F6E28297B66743 wwv_flow_api.g_varchar2_table(441) := '497428742C652C69297D2C632E616464486F6F6B3D66756E6374696F6E28742C65297B2266756E6374696F6E223D3D747970656F662065262628545B745D3D545B745D7C7C5B5D2C4F7428545B745D2C6529297D2C632E72656D6F7665486F6F6B3D6675'; wwv_flow_api.g_varchar2_table(442) := '6E6374696F6E2874297B545B745D26264D7428545B745D297D2C632E72656D6F7665486F6F6B733D66756E6374696F6E2874297B545B745D262628545B745D3D5B5D297D2C632E72656D6F7665416C6C486F6F6B733D66756E6374696F6E28297B543D7B'; wwv_flow_api.g_varchar2_table(443) := '7D7D2C637D28297D293B7661722061706578424944617368426F6172643D66756E6374696F6E2846742C5074297B2275736520737472696374223B7661722055743D7B6665617475726544657461696C733A7B6E616D653A224D6174657269616C2D4249'; -wwv_flow_api.g_varchar2_table(444) := '2D44617368626F617264222C73637269707456657273696F6E3A22312E302E302E3139222C7574696C56657273696F6E3A22312E34222C75726C3A2268747470733A2F2F6769746875622E636F6D2F526F6E6E795765697373222C75726C323A22687474'; +wwv_flow_api.g_varchar2_table(444) := '2D44617368626F617264222C73637269707456657273696F6E3A22312E302E302E3230222C7574696C56657273696F6E3A22312E34222C75726C3A2268747470733A2F2F6769746875622E636F6D2F526F6E6E795765697373222C75726C323A22687474'; wwv_flow_api.g_varchar2_table(445) := '70733A2F2F6C696E6B74722E65652F726F6E6E792E7765697373222C6C6963656E73653A2243432042592D4E4420342E30204C6963656E7365227D2C6973446566696E6564416E644E6F744E756C6C3A66756E6374696F6E2874297B72657475726E206E'; wwv_flow_api.g_varchar2_table(446) := '756C6C213D7426262222213D747D2C67726F75704F626A65637441727261793A66756E6374696F6E28742C6E297B72657475726E2074262641727261792E697341727261792874293F742E7265647563652866756E6374696F6E28742C65297B76617220'; wwv_flow_api.g_varchar2_table(447) := '693D655B6E5D3B72657475726E2069262628745B693D22E2808B222B695D3D745B695D7C7C5B5D292E707573682865292C747D2C7B7D293A5B5D7D2C6C696E6B3A66756E6374696F6E28742C65297B69662821652972657475726E2077696E646F772E70'; diff --git a/js/script.js b/js/script.js index 133a1bc..212c4ae 100644 --- a/js/script.js +++ b/js/script.js @@ -3,7 +3,7 @@ var apexBIDashBoard = function (apex, $) { var util = { "featureDetails": { name: "Material-BI-Dashboard", - scriptVersion: "1.0.0.19", + scriptVersion: "1.0.0.20", utilVersion: "1.4", url: "https://github.com/RonnyWeiss", url2: "https://linktr.ee/ronny.weiss", diff --git a/region_type_plugin_apex_bi_dashboard_d3.sql b/region_type_plugin_apex_bi_dashboard_d3.sql index fca3a0e..a4760f0 100644 --- a/region_type_plugin_apex_bi_dashboard_d3.sql +++ b/region_type_plugin_apex_bi_dashboard_d3.sql @@ -417,7 +417,7 @@ wwv_flow_api.create_plugin( ||' the modified plug-in!' ,p_version_identifier=>'1.0.0.20' ,p_about_url=>'https://github.com/RonnyWeiss/APEX-BI-Dashboard' -,p_files_version=>5048 +,p_files_version=>5049 ); wwv_flow_api.create_plugin_attribute( p_id=>wwv_flow_api.id(161556939867686644690) @@ -2631,7 +2631,7 @@ wwv_flow_api.g_varchar2_table(440) := '436F6E6669673D66756E6374696F6E28297B66743 wwv_flow_api.g_varchar2_table(441) := '497428742C652C69297D2C632E616464486F6F6B3D66756E6374696F6E28742C65297B2266756E6374696F6E223D3D747970656F662065262628545B745D3D545B745D7C7C5B5D2C4F7428545B745D2C6529297D2C632E72656D6F7665486F6F6B3D6675'; wwv_flow_api.g_varchar2_table(442) := '6E6374696F6E2874297B545B745D26264D7428545B745D297D2C632E72656D6F7665486F6F6B733D66756E6374696F6E2874297B545B745D262628545B745D3D5B5D297D2C632E72656D6F7665416C6C486F6F6B733D66756E6374696F6E28297B543D7B'; wwv_flow_api.g_varchar2_table(443) := '7D7D2C637D28297D293B7661722061706578424944617368426F6172643D66756E6374696F6E2846742C5074297B2275736520737472696374223B7661722055743D7B6665617475726544657461696C733A7B6E616D653A224D6174657269616C2D4249'; -wwv_flow_api.g_varchar2_table(444) := '2D44617368626F617264222C73637269707456657273696F6E3A22312E302E302E3139222C7574696C56657273696F6E3A22312E34222C75726C3A2268747470733A2F2F6769746875622E636F6D2F526F6E6E795765697373222C75726C323A22687474'; +wwv_flow_api.g_varchar2_table(444) := '2D44617368626F617264222C73637269707456657273696F6E3A22312E302E302E3230222C7574696C56657273696F6E3A22312E34222C75726C3A2268747470733A2F2F6769746875622E636F6D2F526F6E6E795765697373222C75726C323A22687474'; wwv_flow_api.g_varchar2_table(445) := '70733A2F2F6C696E6B74722E65652F726F6E6E792E7765697373222C6C6963656E73653A2243432042592D4E4420342E30204C6963656E7365227D2C6973446566696E6564416E644E6F744E756C6C3A66756E6374696F6E2874297B72657475726E206E'; wwv_flow_api.g_varchar2_table(446) := '756C6C213D7426262222213D747D2C67726F75704F626A65637441727261793A66756E6374696F6E28742C6E297B72657475726E2074262641727261792E697341727261792874293F742E7265647563652866756E6374696F6E28742C65297B76617220'; wwv_flow_api.g_varchar2_table(447) := '693D655B6E5D3B72657475726E2069262628745B693D22E2808B222B695D3D745B695D7C7C5B5D292E707573682865292C747D2C7B7D293A5B5D7D2C6C696E6B3A66756E6374696F6E28742C65297B69662821652972657475726E2077696E646F772E70';