change
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
let calmonths=[];var Unibase;(function(n){let t;(function(t){let i;(function(i){let r;(function(r){class u extends t.Core.BaseComponent{constructor(){super();this.appInstalledappid=0;this.reportManager=i.Managers.ReportManager.Instance();this.viewerManager=i.Managers.ViewerManager.Instance();this._reportViewer=i.Components.ReportViewer.Instance()}loadView(t,i,r,u,f,e,o){var s=this;let y=s._reportViewer.getReportViewerInstance(e);var a="",v="",h="",c="",l=r,p=["January","February","March","April","May","June","July","August","September","October","November","December"];s.viewerManager.getCalendarView(l).then(function(f){var w=f.result;s._reportViewer.CalendarMonth==undefined&&(s._reportViewer.CalendarMonth=p[(new Date).getMonth()]);a=w.FromDateColumn;v=w.ToDateColumn;h=w.ValueColumn;c=w.TextColumn;var b="",k="",d=n.Platform.Helpers.NavigationHelper.commonFilter_FromDate,g=n.Platform.Helpers.NavigationHelper.commonFilter_ToDate;d!=null&&g!=null?(b=d.toString(),k=g.toString()):(b=n.Platform.Helpers.DateTimeHelper.Instance().formatLocalDateformat(new Date(n.Platform.Helpers.DateTimeHelper.Instance().currentDate()),"YYYY/MM/DD"),k=n.Platform.Helpers.DateTimeHelper.Instance().formatLocalDateformat(new Date(n.Platform.Helpers.DateTimeHelper.Instance().currentDate()),"YYYY/MM/DD"));let nt={ReportId:i,ViewerTypeId:n.Platform.Analytics.Reports.Enums.ViewerType.Calendar,page:u,pageSize:s._reportViewer.PageSize+1,CalendarMonth:s._reportViewer.CalendarMonth,ViewerId:r,InputParameters:y.inputParameters,IsJson:!0,FromDate:b,ToDate:k};n.Platform.Analytics.Managers.ReportManager.Instance().getReportViewerData(nt).then(function(r){var y,f,p,w;n.Platform.Helpers.NavigationHelper.Instance().hideLoading();y=JSON.parse(r.result);f=y.Data;f!=""&&(f=JSON.parse(f));p=["libs/fullcalendar/fullcalendar.min.css"];w=["libs/moment/moment.min.js","libs/fullcalendar/fullcalendar.min.js"];s.fileCacheHelper.loadCssFiles(p,function(){s.fileCacheHelper.loadJsFiles(w,function(){var w=[],p=f.length,r;for(p>=s._reportViewer.PageSize+1&&(p=f.length-1),r=0;r<p;r++){s.appInstalledappid==0&&(s.appInstalledappid=f[r].installedappid);let n="";f[r][c]!=undefined&&f[r][h]!=undefined?n=f[r][c].toString()+" "+f[r][h].toString():f[r][c]!=undefined?n=f[r][c].toString():f[r][h]!=undefined&&(n=f[r][h].toString());w.push({id:f[r][h],title:n,start:f[r][a],end:f[r][v]})}let y="";if(y=$("#Viewer_"+e),y.removeClass("tabulator"),s._reportViewer.CalendarMonthChanged==!1){y.html("");y.fullCalendar("destroy");$("#Table_View_"+e).removeClass("hidden");const r=s.setCalendarHeight(e);y.fullCalendar({themeSystem:"bootstrap4",header:{left:"calendarSidebar ,today",center:"prev,title,next",right:"month,agendaWeek,listMonth"},timeZone:"UTC",droppable:!0,editable:!0,height:r,eventLimit:!0,displayEventTime:!1,drop:function(){$("#remove_event").is(":checked")&&$(this).remove()},eventClick:function(t){t.id&&n.Platform.Helpers.NavigationHelper.Instance().loadDetail(t.id,s.appInstalledappid,null,null)},windowResize:function(){let n=s.setCalendarHeight(e);n-=40;y.fullCalendar("option","height",n)}});s._reportViewer.CalendarMonthChanged=!0;$(".fc-prev-button").parent().addClass("row");$(".fc-prev-button").addClass("mt-1 mr-10");$(".fc-next-button").addClass("mt-1 ml-10");$(".fc-header-toolbar").addClass("pa-10");$(".fc-view-container").addClass("pa-10");$(".fc-next-button").click(function(){s._reportViewer.CalendarMonth=$(".fc-prev-button").siblings()[0].innerHTML.substring(0,$(".fc-prev-button").siblings()[0].innerHTML.indexOf(" "));s._reportViewer.CalendarMonthChanged=!0;calmonths.filter(function(n){return n.title===s._reportViewer.CalendarMonth}).length<=0&&(calmonths.push({title:s._reportViewer.CalendarMonth}),u=1,s.loadView(t,i,l,u,20,e,o,null,null))});$(".fc-prev-button").click(function(){s._reportViewer.CalendarMonth=$(".fc-prev-button").siblings()[0].innerHTML.substring(0,$(".fc-prev-button").siblings()[0].innerHTML.indexOf(" "));s._reportViewer.CalendarMonthChanged=!0;calmonths.filter(function(n){return n.title===s._reportViewer.CalendarMonth}).length<=0&&(calmonths.push({title:s._reportViewer.CalendarMonth}),u=1,s.loadView(t,i,l,u,20,e,o,null,null))});$("#Calendar_more").click(function(){var n=$(this)[0].className.split(/\s+/)[$(this)[0].className.split(/\s+/).length-1].match(/\d+/g).map(Number)[0];$(this).removeClass("lenght_"+n+"");$(this).addClass("lenght_"+(n+1)+"");s.loadView(t,i,l,n,20,e,o,null,null)})}f.length>=s._reportViewer.PageSize+1?$("#Calendar_more").removeClass("hidden"):$("#Calendar_more").addClass("hidden");u==1;y.fullCalendar("addEventSource",w)})})})})}setCalendarHeight(n){let t=0;return $("#Viewer_"+n).length&&(t=window.innerHeight-$("#Viewer_"+n).offset().top,$(`#ViewerFooter_${n}`).is(":visible")&&(t+=$(`#ViewerFooter_${n}`).outerHeight(!0)-100)),t}}r.CalendarViewer=u})(r=i.Viewers||(i.Viewers={}))})(i=t.Analytics||(t.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"calendarviewer.settings.js","sourceRoot":"","sources":["calendarviewer.settings.ts"],"names":[],"mappings":"AAGA,IAAU,OAAO,CAyMhB;AAzMD,WAAU,OAAO;IACb,IAAiB,QAAQ,CAuMxB;IAvMD,WAAiB,QAAQ;QACrB,IAAiB,SAAS,CAqMzB;QArMD,WAAiB,SAAS;YACtB,IAAiB,UAAU,CAmM1B;YAnMD,WAAiB,UAAU;gBAEvB,MAAa,sBAAuB,SAAQ,QAAQ,CAAC,IAAI,CAAC,aAAa;oBAKnE;wBACI,KAAK,EAAE,CAAC;wBACR,IAAI,CAAC,aAAa,GAAG,UAAA,QAAQ,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC;wBACvD,IAAI,CAAC,aAAa,GAAG,UAAA,QAAQ,CAAC,aAAa,CAAC,QAAQ,EA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AgMlC,CAAA;YACL,CAAC,EAnMgB,UAAU,GAAV,oBAAU,KAAV,oBAAU,QAmM1B;QACL,CAAC,EArMgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QAqMzB;IACL,CAAC,EAvMgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAuMxB;AACL,CAAC,EAzMS,OAAO,KAAP,OAAO,QAyMhB"}
|
||||
-73
@@ -1,73 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(t){let i;(function(i){let r;(function(r){class u extends t.Core.BaseComponent{constructor(){super();this.reportManager=i.Managers.ReportManager.Instance();this.viewerManager=i.Managers.ViewerManager.Instance();this.ReportId=0}jsFiles(){return["platform/analytics/components/calendarviewer/calendarviewer.settings.js"]}cssFiles(){return[]}html(){return`<div class="b-b bg-white modal-header">
|
||||
<strong class="text-dark">Calendar</strong>
|
||||
</div>
|
||||
<div class="modal-body" id="CalendarViewer_modal">
|
||||
<div id="divCalendar_ErrorMessage"></div>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6 mb-20">
|
||||
<div id="div_CalendarName" class="floating-label-form-group" style="">
|
||||
<label for="calendarname">CalendarName</label><input type="text" id="CalendarName"
|
||||
class="form-control value-control floating-label-control" data-placeholder="CalendarName"
|
||||
placeholder="Calendar Name" data-label="Calendar Name">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div id="div_DisplayName" class="floating-label-form-group floating-label-form-group-with-value">
|
||||
<label for="displayname" id="lbl_DisplayName">Display Name</label>
|
||||
<input type="text" id="Txt_Display_Name" class="form-control value-control floating-label-control" placeholder="Display Name" data-placeholder="Display Name" data-label="Display Name">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 mb-20">
|
||||
<div id="div_ValueColumn">
|
||||
<label for="valuecolumn">Value Column</label><select id="ValueColumn_AutoComplete"
|
||||
class="form-control text-control required">
|
||||
<option value="0" selected="">Select Value Column</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 mb-20">
|
||||
<div id="div_TextColumn">
|
||||
<label for="textcolumn">Text Column</label><select id="TextColumn_AutoComplete"
|
||||
class="form-control text-control required">
|
||||
<option value="0" selected="">Select Text Column</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 mb-20">
|
||||
<div id="div_FromDate">
|
||||
<label for="fromdate">FromDate</label>
|
||||
<div class="input-group"><select type="text" id="date_FromDate"
|
||||
class="form-control value-control datepicker-input hasDatepicker floating-label-control"
|
||||
placeholder="From Date " data-label="From Date ">
|
||||
<option value="0" selected="">Select From Date Column</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div id="div_ToDate">
|
||||
<label for="fromdate">ToDate</label>
|
||||
<div class="input-group"><select type="text" id="date_ToDate"
|
||||
class="form-control value-control datepicker-input hasDatepicker floating-label-control"
|
||||
placeholder="To Date " data-label="To Date ">
|
||||
<option value="0" selected="">Select To Date Column</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 align-self-end">
|
||||
<label for="showCalTime"><strong>Show Time</strong></label><label id="lblshowCalTime"
|
||||
class="switch form-inline pull-right" style=""><input id="showCalTime"
|
||||
data-group="showCalTime" type="checkbox" data-isdynamic="false"><span></span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-white modal-footer">
|
||||
<a class="btn btn-light btn-sm btn-center mr-auto" id="btnClose">Close</a>
|
||||
<a class="btn btn-primary btn-center btn-sm text-white" id="btnSave">Save</a>
|
||||
</div>`}load(n,t){var r=this,u=Number(r.ReportId),i;$("#CalendarViewer_modal").css("height",$(window).outerHeight()-(Number($(".modal-header").outerHeight())+Number($(".modal-footer").outerHeight()))+"px");i=[];this.reportManager.getColumns(u).then(function(t){var u=t.result;for(let n=0;n<u.length;n++)i.push({id:u[n].AliasName,text:u[n].AliasName});$("#date_FromDate").select2({placeholder:"Select From Date Column",data:i});$("#date_ToDate").select2({placeholder:"Select To Date Column",data:i});$("#TextColumn_AutoComplete").select2({placeholder:"Select Text Column",data:i,allowClear:!0});$("#ValueColumn_AutoComplete").select2({placeholder:"Select Value Column",data:i,allowClear:!0});n!=0&&r.getCalendarById(n)});$("#btnClose").click(function(){$("#"+t).modal("hide");$("#"+t).remove()});jQuery("#btnSave").unbind().click(function(){r.saveCalendar(n,u,t,null)})}getCalendarById(n){var t=this;t.viewerManager.getCalendarView(n).then(function(n){t.response=n.result;$("#Txt_Display_Name").val(t.response.DisplayName?t.response.DisplayName.trim():t.response.CalendarName.trim());$("#CalendarName").val(t.response.CalendarName.trim()).attr("readonly","true").css("cursor","not-allowed");$("#ValueColumn_AutoComplete").val(t.response.ValueColumn).trigger("change");$("#TextColumn_AutoComplete").val(t.response.TextColumn).trigger("change");$("#date_FromDate").val(t.response.FromDateColumn).trigger("change");$("#date_ToDate").val(t.response.ToDateColumn).trigger("change")})}saveCalendar(t,i,r,u){var f=this,e=u;u==null&&(e={CalendarViewId:Number(t),CalendarName:$("#CalendarName").val(),ValueColumn:$("#ValueColumn_AutoComplete option:selected").text(),TextColumn:$("#TextColumn_AutoComplete option:selected").text(),ToDateColumn:$("#date_ToDate option:selected").text(),FromDateColumn:$("#date_FromDate option:selected").text(),ReportId:Number(this.ReportId),DisplayModeTypeId:1,ViewAll:f.response&&f.response.ViewAll||!0,DisplayName:$("#Txt_Display_Name").val().toString().trim(),IsFromUI:Number(t)==0?!0:!1});this.fileCacheHelper.loadJsFile("platform/analytics/managers/reportmanager.js",function(){f.viewerManager.saveCalendarView(e).then(function(t){t.status==n.Data.Status.Error?MessageHelper.Instance().showError(t.message,"divCalendar_ErrorMessage"):(MessageHelper.Instance().showSuccess(t.message,""),$("#"+r).modal("hide"),$("#"+r).remove())})})}static Instance(){return this._instance===undefined&&(this._instance=new n.Platform.Analytics.Components.CalendarViewerSettings),this._instance}}r.CalendarViewerSettings=u})(r=i.Components||(i.Components={}))})(i=t.Analytics||(t.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
File diff suppressed because one or more lines are too long
@@ -1,82 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(t){let i;(function(i){let r;(function(r){class u extends t.Core.BaseComponent{constructor(){super();this.reportManager=i.Managers.ReportManager.Instance();this.viewerManager=i.Managers.ViewerManager.Instance();this._reportBuilder=i.Reports.ReportBuilder.Instance();this._reportViewer=i.Components.ReportViewer.Instance();this.ViewerSettings=new i.Providers.ViewerSettings}loadmore(t,i,r,u,f,e,o,s){var c=this,l,a;let h=n.Platform.Analytics.Components.ReportViewer.Instance().getReportViewerInstance(c.containerId),{fromDate:v,toDate:y}=h.checkForReportDatePicker(r,this.containerId);if(l=$("[data-id='"+t+"']").find("footer").find("button"),l.length){a=l[0].className.split(/\s+/);i=a[a.length-1].match(/\d+/g).map(Number)[0];let p={ReportId:r,page:i,ViewerTypeId:5,pageSize:5,ViewerId:u,BoardName:t.toString(),IsJson:!0,DisplayModeTypeId:this._reportViewer.getDisplayModeTypeId(),DateFilter:h.dateFilters,Filter:h.dynamicFilters,InputParameters:h.inputParameters,FromDate:v,ToDate:y};c.reportManager.getReportViewerData(p).then(function(r){var u,v,y,w,a,p;if(r.status==n.Data.Status.Success){n.Platform.Helpers.NavigationHelper.Instance().hideLoading();let w=JSON.parse(r.result);if(w.Data&&w.Data.length){let n=JSON.parse(w.Data);if(n&&n.length){let t=h.reportData,i=JSON.parse(w.Data);h.reportData=$.merge(t,i);h.reportDatalength=h.reportData.length;h&&h.reportResponse&&h.reportResponse.result&&h.reportResponse.result.ReportJsonData&&h.reportResponse.result.ReportJsonData.Result&&h.reportResponse.result.ReportJsonData.Result.Data&&(u=JSON.parse(h.reportResponse.result.ReportJsonData.Result.Data),u=u.concat(n),h.reportResponse.result.ReportJsonData.Result.Data=JSON.stringify(u),h.isEnableCount&&$("#Viewer_pagintion"+c.containerId).html(u.length+" of "+h.totalRecords).removeClass("hidden"))}v=i+1;l.addClass("lenght_"+v).removeClass("lenght_"+i);for(let i=0;i<n.length;i++)s&&(s=s.trim(),y=Handlebars.compile(s),w=y(n[i]),c._reportBuilder.kanban_board.addElement(t,{title:n[i][o]}));a=f.filter(function(n){return n[e]===t});a.length>0&&(p=t.replace(" ",""),$("#spn_"+p+"").text(c._reportBuilder.kanban_board.getBoardElements(t).length),a[0].groupbycount==c._reportBuilder.kanban_board.getBoardElements(t).length&&$($("div").find("[data-id='"+t+"']")).find("button").addClass("hidden"))}}else return MessageHelper.Instance().showError(r.message,"div_ErrorMessage")})}}loadView(t,i,r,u,f,e){var o=this;o.containerId=e;let s=n.Platform.Analytics.Components.ReportViewer.Instance().getReportViewerInstance(e);o.fileCacheHelper.loadCssFiles(["libs/kanban/jkanban.min.css"],()=>{o.fileCacheHelper.loadJsFiles(["libs/kanban/jkanban.min.js","platform/analytics/components/reportbuilder/reportbuilderhiddenfields.js"],()=>{$("#Table_View_"+e).removeClass("hidden"),o.viewerManager.getCardView(r).then(function(i){var f,p,w,a,b,k,v,y,c;if(n.Platform.Helpers.NavigationHelper.Instance().hideLoading(),i!=null){o.res=i;let n=[],k=t.result.ReportJsonData.Result;if(k.Data){n=JSON.parse(k.Data).sort((n,t)=>n.stageindex>t.stageindex?1:n.stageindex<t.stageindex?-1:0);var h=[],r=[],l=[],u=[];let i=[...new Set(n.map(n=>n[o.res.AppliedColumn.trim()]))];for(let t=0;t<i.length;t++){f=n.filter(function(n){return n[o.res.AppliedColumn.trim()]===i[t]});f.length>0&&(f[0].groupbycount<=f.length?r.push(i[t]):u.push(i[t]));for(let n=0;n<f.length;n++)o.res.TemplateText&&(p=Handlebars.compile(o.res.TemplateText),w=p(f[n]),l.push({title:w}));h.push({id:i[t],title:i[t],item:l});l=[]}a=h;b=h.map(function(n){return`${n.id}`});a.forEach(function(n,t){a[t].dragTo=b});k=h;o._reportBuilder.cardviewerpage=2;let t=$(`#Viewer_${e}`);t.empty().css("overflow-x","scroll");t.find(".Templateheader").addClass("hidden");let d=!1,s=!1,g=null;$(`#filters-list${e}`).find(".filter-item").each(function(n,i){$(i).mouseover(function(){d&&(s=!0,$(i).addClass("kanban-item-hover"))});$(i).mouseout(function(){if(s){s=!1;let n=$(i).attr("data-filtername");t.find(`[data-id="${n}"]`).find(".kanban-drag").append(g);$(i).removeClass("kanban-item-hover")}})});eval(`Unibase.Platform.Analytics.Reports.ReportBuilder.Instance().kanban_board = new jKanban({
|
||||
element: '#Viewer_${e}',
|
||||
layout: { horizontal: true },
|
||||
responsive: '700',
|
||||
responsivePercentage: false,
|
||||
widthBoard: '370px',
|
||||
dragItems: true,
|
||||
dropEl: function (el, target, source, sibling) { },
|
||||
boards: data1,
|
||||
dragBoards: false,
|
||||
addItemButton: true,
|
||||
dragEl: function (el, source) {
|
||||
$(el).css({ opacity: '0.6', 'pointer-events': 'none' });
|
||||
isDragging = true;
|
||||
currentDraggingEle = el;
|
||||
$('body').mousemove(function (e) {
|
||||
if (isDragging) {
|
||||
let closestCardBoard = $(el).closest('.kanban-drag')[0];
|
||||
let closestCardBoardContainer =
|
||||
viewerEl.find('.kanban-container').closest('.card-body')[0];
|
||||
let dragRect = closestCardBoard.getBoundingClientRect();
|
||||
let dragRectContainer =
|
||||
closestCardBoardContainer.getBoundingClientRect();
|
||||
let dragRectContainerLeft = dragRectContainer.x;
|
||||
let top = dragRect.y;
|
||||
let y = e.clientY;
|
||||
let x = e.clientX;
|
||||
if (y < top + 20) {
|
||||
closestCardBoard.scrollBy(0, -20);
|
||||
} else if (y < top + 60) {
|
||||
closestCardBoard.scrollBy(0, -10);
|
||||
} else if (y > top + dragRect.height - 20) {
|
||||
closestCardBoard.scrollBy(0, 20);
|
||||
} else if (y > top + dragRect.height - 60) {
|
||||
closestCardBoard.scrollBy(0, 10);
|
||||
}
|
||||
if (x < dragRectContainerLeft + 20) {
|
||||
closestCardBoardContainer.scrollBy(-20, 0);
|
||||
} else if (x < dragRectContainerLeft + 60) {
|
||||
closestCardBoardContainer.scrollBy(-10, 0);
|
||||
} else if (x > dragRectContainerLeft + dragRectContainer.width - 20) {
|
||||
closestCardBoardContainer.scrollBy(20, 0);
|
||||
} else if (x > dragRectContainerLeft + dragRectContainer.width - 60) {
|
||||
closestCardBoardContainer.scrollBy(10, 0);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
dragendEl: function (el) {
|
||||
$('body').off('mousemove');
|
||||
$(el).css({ opacity: '1', 'pointer-events': 'auto' });
|
||||
isDragging = false;
|
||||
if(!isDragging){
|
||||
if($(el).find('[data-kanban2view="stagechange"][data-stagechange="true"]').length>0){
|
||||
let id, stageId,recordId, installedAppId;
|
||||
$('[data-kanban2view="stagechange"][data-stagechange="true"]').attr('data-click2event','false');
|
||||
$(el).find('[data-kanban2view="stagechange"][data-stagechange="true"]').attr('data-click2event','active');
|
||||
recordId = Number($(el).find('[data-kanban2view="stagechange"][data-stagechange="true"]').attr('data-record2id'));
|
||||
installedAppId = Number($(el).find('[data-kanban2view="stagechange"][data-stagechange="true"]').attr('data-installed2appid'));
|
||||
stageId = Number($(el).find('[data-kanban2view="stagechange"][data-stagechange="true"]').attr('data-oldstageid'));
|
||||
id = $(el).find('[data-kanban2view="stagechange"][data-stagechange="true"]').attr('id');
|
||||
Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFiles(["platform/apps/managers/stagemanager.js","platform/apps/components/stages/stagereason.js"], function () {
|
||||
Unibase.Themes.Compact.Components.Details.Instance().change(stageId, installedAppId, id);
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
buttonClick: function (el, boardId) {
|
||||
var page = Unibase.Platform.Analytics.Reports.ReportBuilder.Instance().cardviewerpage;
|
||||
Unibase.Platform.Analytics.Reports.ReportBuilder.Instance().cardviewerpage = Unibase.Platform.Analytics.Reports.ReportBuilder.Instance().cardviewerpage + 1;
|
||||
instance.loadmore(boardId,page,reportid,CardViewId,tablevalues,instance.res.AppliedColumn.trim(),instance.res.AssignColumn.trim(),instance.res.TemplateText);
|
||||
var formItem = document.createElement('form');
|
||||
formItem.setAttribute('class', 'itemform');
|
||||
//KanbanTest.addForm(boardId, formItem);
|
||||
//document.getElementById('CancelBtn').onclick = function () {
|
||||
// formItem.parentNode.removeChild(formItem);
|
||||
//};
|
||||
},
|
||||
}); if($('[data-isconclusive="true"]').length !=0){
|
||||
let stageNameConclusive = $('[data-isconclusive="true"]').parents('.kanban-board').attr('data-id');
|
||||
$('[data-id="'+stageNameConclusive+'"]').addClass('position-absolute').css('margin-top', '440px');
|
||||
}`);t.find(".kanban-title-board").addClass("text-truncate");t.find(".kanban-container").addClass("d-flex align-items-start");for(let i=0;i<r.length;i++)v=n.filter(function(n){return n[o.res.AppliedColumn.trim()]===r[i]}),t.find(`[data-id='${r[i]}'] .kanban-title-button`).addClass("d-none"),c=r[i],t.find(`[data-id='${r[i]}'] .kanban-board-header`).append('<span class="kanban-header-badge badge badge-primary badge-outline font-14 font-weight-600 flex-shrink-0"><span id=spn_'+c+">"+v.length+"<\/span> of "+v[0].groupbycount+"<\/span>");if(u.length>0)for(let i=0;i<u.length;i++)y=n.filter(function(n){return n[o.res.AppliedColumn.trim()]===u[i]}),c=u[i].replace(" ",""),t.find(`[data-id='${u[i]}'] .kanban-board-header`).append('<span class="kanban-header-badge badge badge-primary badge-outline font-14 font-weight-600 flex-shrink-0"><span id=spn_'+c+">"+y.length+"<\/span> of "+y[0].groupbycount+"<\/span>");t.find(".kanban-drag").css({"min-height":"max-content","max-height":"500px","min-width":"250px"}).addClass("biz-custom-scrollbar");t.find("main.kanban-drag").css("height","fit-content");r=[];t.find(".btnfritem").parent().addClass("w-100 d-flex justify-content-center mt-1 align-items-center mb-2").attr("style","");t.find(".btnfritem").addClass("lenght_2");t.find(".btnfritem").html("More");$(".btnfritem").css({"background-color":"white",padding:"4px 12px","font-weight":"bold"})}else $(`#${e} .kanban-container`).html(`<div class="alert alert-primary text-center mb-0 border-0 rounded-0 w-100 font-14 font-weight-500">No data available</div>`).css("width","100%");s.isEnableCount&&$("#Viewer_pagintion"+o.containerId).html(n.length+" of "+s.totalRecords)}else return MessageHelper.Instance().showError("Something went wrong","div_ErrorMessage")})})})}static Instance(){return new n.Platform.Analytics.Viewers.CardViewer}}r.CardViewer=u})(r=i.Viewers||(i.Viewers={}))})(i=t.Analytics||(t.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"cardviewer.settings.js","sourceRoot":"","sources":["cardviewer.settings.ts"],"names":[],"mappings":"AAGA,IAAU,OAAO,CAqJhB;AArJD,WAAU,OAAO;IACb,IAAiB,QAAQ,CAmJxB;IAnJD,WAAiB,QAAQ;QACrB,IAAiB,SAAS,CAiJzB;QAjJD,WAAiB,SAAS;YACtB,IAAiB,UAAU,CA+I1B;YA/ID,WAAiB,UAAU;gBACvB,MAAa,kBAAmB,SAAQ,QAAQ,CAAC,IAAI,CAAC,aAAa;oBAK/D;wBACI,KAAK,EAAE,CAAC;wBACR,IAAI,CAAC,aAAa,GAAG,UAAA,QAAQ,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC;wBACvD,IAAI,CAAC,aAAa,GAAG,UAAA,QAAQ,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC;wBACvD,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;oBACtB,CAAC;oBACD,OAAO;wBACH,OAAO,CAAC,wDAAwD,EAAE,iDAAiD,CAAC,CAAC;oBACzH,CAAC;oBAED,QAAQ;wBACJ,OAAO,EAAE,CAAC;oBACd,CAAC;oBAED,IAAI,CAAC,EAAE,EAAE,WAAW;wBAChB,IAAI,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAiCR,CAAC;wBACJ,OAAO,IAAI,CAAC;oBAChB,CAAC;oBAED,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,QAAQ;wBA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oBACP,CAAC;oBAED,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;4BAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,kBAAkB,EAAE,CAAC;wBAC9C,OAAO,IAAI,CAAC,SAAS,CAAC;oBAC1B,CAAC;iBAEJ;gBA7IY,6BAAkB,qBA6I9B,CAAA;YACL,CAAC,EA/IgB,UAAU,GAAV,oBAAU,KAAV,oBAAU,QA+I1B;QACL,CAAC,EAjJgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QAiJzB;IACL,CAAC,EAnJgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAmJxB;AACL,CAAC,EArJS,OAAO,KAAP,OAAO,QAqJhB"}
|
||||
@@ -1,41 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(t){let i;(function(i){let r;(function(r){class u extends t.Core.BaseComponent{constructor(){super();this.reportManager=i.Managers.ReportManager.Instance();this.viewerManager=i.Managers.ViewerManager.Instance();this.ReportId=0}jsFiles(){return["platform/analytics/components/cardviewer/cardviewer.js","platform/analytics/providers/iviewersettings.js"]}cssFiles(){return[]}html(){return`<div class="b-b bg-white modal-header"><strong class="text-dark">Card</strong>
|
||||
</div>
|
||||
<div class="modal-body" id="CardViewer_modal">
|
||||
<div id="divCard_ErrorMessage"></div>
|
||||
<div class="card"> <div class="card-body" style="">
|
||||
<div class="row" id="div_Kanban">
|
||||
<div class="col-sm-6"> <div id="div_CardName" class="floating-label-form-group">
|
||||
<label for="cardname" id="lbl_CardName">Card Name</label>
|
||||
<input type="text" class="form-control value-control floating-label-control" placeholder="Card Name" data-placeholder="Card Name" data-label="Card Name" id="txt_CardName">
|
||||
</div></div>
|
||||
<div class="col-sm-4">
|
||||
<div id="div_DisplayName" class="floating-label-form-group floating-label-form-group-with-value">
|
||||
<label for="displayname" id="lbl_DisplayName">Display Name</label>
|
||||
<input type="text" id="Txt_Display_Name" class="form-control value-control floating-label-control" placeholder="Display Name" data-placeholder="Display Name" data-label="Display Name">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6"> <div id="div_KanbanColumn" class="floating-label-form-group floating-label-form-group-with-value">
|
||||
<label for="kanbancolumn">Applied Column</label>
|
||||
<select id="cardapplied_AutoComplete" class="form-control text-control required"><option value="0" selected="">Select Kanban Column</option></select>
|
||||
</div></div>
|
||||
|
||||
<div class="col-sm-6"> <div id="div_AssignColumn" class="floating-label-form-group floating-label-form-group-with-value">
|
||||
<label for="AssignColumn">Assign Column</label>
|
||||
<select id="AssignColumn_AutoComplete" class="form-control text-control required"><option value="0" selected="">Select Assign Column</option></select>
|
||||
</div></div>
|
||||
<div class="col-sm-6"> <div id="div_dividebygroup" class="mt-40 hidden">
|
||||
<input type="checkbox" id="dividebygroup" name="dividebygroup" value=" ">
|
||||
<label for="dividebygroup" class="ml-5">Divide By Group</label>
|
||||
</div></div>
|
||||
</div>
|
||||
</div></div><div class="TemplateText_Section card">
|
||||
<div class="card-header"> Template Text </div>
|
||||
<div class="card-body">
|
||||
<div id="div_TemplateText" class="">
|
||||
<textarea class="" placeholder="Template Text" rows="3" cols="112" id="txt_TemplateText"></textarea>
|
||||
</div>
|
||||
</div></div></div>
|
||||
<div class="bg-white modal-footer">
|
||||
<a class="btn btn-light btn-sm btn-center mr-auto" id="btnClose">Close</a>
|
||||
<a class="btn btn-primary btn-center btn-sm text-white" id="btnSave">Save</a>
|
||||
</div>`}load(n,t){var r=this,u=r.ReportId,i;$("#CardViewer_modal").css("height",$(window).outerHeight()-(Number($(".modal-header").outerHeight())+Number($(".modal-footer").outerHeight()))+"px");$("#btnClose").click(function(){$("#"+t).modal("hide");$("#"+t).remove()});i=[];this.reportManager.getColumns(u).then(function(t){var u=t.result;for(let n=0;n<u.length;n++)i.push({id:u[n].ReportColumnName,text:u[n].ReportColumnName});$("#cardapplied_AutoComplete").select2({placeholder:"Select From Date Column",data:i});$("#AssignColumn_AutoComplete").select2({placeholder:"Select From Date Column",data:i});n!=0&&r.getCardById(n)});jQuery("#btnSave").click(function(){r.save(n,u,t)})}save(t,i,r){var u=this,f={CardViewId:Number(t),CardName:$("#txt_CardName").val(),AppliedColumn:$("#cardapplied_AutoComplete").val(),AssignColumn:$("#AssignColumn_AutoComplete").val(),IsDivideGroup:$("#dividebygroup").is(":checked"),TemplateText:$("#txt_TemplateText").val(),ReportId:u.ReportId,DisplayModeTypeId:1,ViewAll:u.response&&u.response.ViewAll||!0,DisplayName:$("#Txt_Display_Name").val().toString().trim(),IsFromUI:Number(t)==0?!0:!1};u.fileCacheHelper.loadJsFile("platform/analytics/managers/reportmanager.js",function(){u.viewerManager.saveCardView(f).then(function(t){t.status==n.Data.Status.Error?MessageHelper.Instance().showError(t.message,"divCard_ErrorMessage"):(MessageHelper.Instance().showSuccess(t.message,""),$("#"+r).modal("hide"),$("#"+r).remove())})})}getCardById(n){var t=this;t.viewerManager.getCardView(n).then(function(n){t.response=n;$("#Txt_Display_Name").val(n.DisplayName?n.DisplayName.trim():t.response.CardName.trim());$("#txt_CardName").val(t.response.CardName.trim()).attr("readonly","true").css("cursor","not-allowed");$("#cardapplied_AutoComplete").val(t.response.AppliedColumn.trim()).trigger("change");$("#AssignColumn_AutoComplete").val(t.response.AssignColumn.trim()).trigger("change");$("#txt_TemplateText").val(t.response.TemplateText.trim())})}static Instance(){return this._instance===undefined&&(this._instance=new u),this._instance}}r.CardViewerSettings=u})(r=i.Components||(i.Components={}))})(i=t.Analytics||(t.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"chartbuilderhiddenfields.js","sourceRoot":"","sources":["chartbuilderhiddenfields.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CAyChB;AAzCD,WAAU,OAAO;IACb,IAAiB,QAAQ,CAuCxB;IAvCD,WAAiB,QAAQ;QACrB,IAAiB,SAAS,CAqCzB;QArCD,WAAiB,SAAS;YACtB,IAAiB,MAAM,CAmCtB;YAnCD,WAAiB,MAAM;gBACnB,MAAa,qBAAqB;oBA0B9B,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;4BAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,qBAAqB,EAAE,CAAC;yBAC/C;wBACD,OAAO,IAAI,CAAC,QAAQ,CAAC;oBACzB,CAAC;iBAEJ;gBAjCY,4BAAqB,wBAiCjC,CAAA;YACL,CAAC,EAnCgB,MAAM,GAAN,gBAAM,KAAN,gBAAM,QAmCtB;QACL,CAAC,EArCgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QAqCzB;IACL,CAAC,EAvCgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAuCxB;AACL,CAAC,EAzCS,OAAO,KAAP,OAAO,QAyChB"}
|
||||
-1
@@ -1 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t{static Instance(){return this.instance===undefined&&(this.instance=new t),this.instance}}n.ChartBuilderVariables=t})(t=n.Charts||(n.Charts={}))})(t=n.Analytics||(n.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
@@ -1294,9 +1294,7 @@ var Unibase;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (filters.length) {
|
||||
this.linkReport(subReport.ChildReportId, filters, this.chartContainerId + "_viewall");
|
||||
}
|
||||
this.linkReport(subReport.ChildReportId, filters, this.chartContainerId + "_viewall");
|
||||
}
|
||||
else {
|
||||
if (rv_instance.reportResponse.result.ReportJsonData && rv_instance.reportResponse.result.ReportJsonData.Result.Data) {
|
||||
@@ -1939,6 +1937,7 @@ var Unibase;
|
||||
if (reportId != 0) {
|
||||
var rv_obj = Unibase.Platform.Analytics.Components.ReportViewer.Instance();
|
||||
rv_obj.dynamicFilters = dynamicFilters;
|
||||
rv_obj.isTable = true;
|
||||
let reportViewerInstance = Unibase.Platform.Helpers.NavigationHelper.reportViewerInstance;
|
||||
reportViewerInstance.push({
|
||||
instance: rv_obj,
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -46,7 +46,7 @@ var Unibase;
|
||||
<div class="dropdown-menu dropdown-menu-left ViewerTypes_dropdown" id="dp_${containerid}_viewertypes"><a class="dropdown-item ddbtn_Edit" href = "javascript:;" title = "Edit" id = "edit_" onclick = "Unibase.Platform.Analytics.Components.ReportViewer.Instance().EditReport(${reportid},0,0,0,'${containerid}');">Edit</a>
|
||||
<a href="javascript:;" class="dropdown-item" id="DuplicateTable_${containerid}" onclick = "Unibase.Platform.Analytics.Components.ReportViewer.Instance().EditReport(${reportid},1,0,0,'${containerid}')";>Duplicate</a>
|
||||
</div>` : ''}<span class="dropdown pull-right mr-30 sp_widget_create_${containerid}" style = "position:static"></span></div>
|
||||
<div class="card-header-right d-flex align-items-center"><a class="btn btn-icon btn-flush-biz-theme btn-rounded flush-soft-hover w-30p h-30p mr-1 chart-maximize-btn" href="javascript:;" id="chartMaximizeBtn_${containerid}" onclick="Unibase.Platform.Analytics.Components.ReportViewer.Instance().report_ViewAll(${reportid}, 0, 'fullscreen_${containerid}','${containerid}');" data-tooltip="true" title="Maximize Chart"><span class="btn-icon-wrap"><i class="las la-expand font-18"></i></span></a><a class="btn btn-icon btn-flush-biz-theme btn-rounded flush-soft-hover w-30p h-30p mr-1 chart-minimize-btn d-none" href="javascript:;" id="chartMinimizeBtn_${containerid}" onclick="Unibase.Platform.Analytics.Components.ReportViewer.Instance().closeReportPopup('${containerid}');" data-tooltip="true" title="Minimize Chart"><span class="btn-icon-wrap"><i class="las la-compress font-18"></i></span></a><a class="btn btn-icon btn-flush-biz-theme btn-rounded flush-soft-hover w-30p h-30p mr-1 d-none link-report-icon" id="linkreport${containerid}" href="javascript:;"><span class="btn-icon-wrap"><i class="las la-table font-18"></i></span></a><div class="filter-dp-wrapper biz-dropdown ${isRestrictHidden} d-none" id="filterDpWrap_${containerid}">
|
||||
<div class="card-header-right d-flex align-items-center"><a class="btn btn-icon btn-flush-biz-theme btn-rounded flush-soft-hover w-30p h-30p mr-1 chart-maximize-btn" href="javascript:;" id="chartMaximizeBtn_${containerid}" onclick="Unibase.Platform.Analytics.Components.ReportViewer.Instance().report_ViewAll(${reportid}, 0, 'fullscreen_${containerid}','${containerid}');" data-tooltip="true" title="Maximize Chart"><span class="btn-icon-wrap"><i class="las la-expand font-18"></i></span></a><a class="btn btn-icon btn-flush-biz-theme btn-rounded flush-soft-hover w-30p h-30p mr-1 chart-minimize-btn d-none" href="javascript:;" id="chartMinimizeBtn_${containerid}" onclick="Unibase.Platform.Analytics.Components.ReportViewer.Instance().closeReportPopup('${containerid}');" data-tooltip="true" title="Minimize Chart"><span class="btn-icon-wrap"><i class="las la-compress font-18"></i></span></a><a class="btn btn-icon btn-flush-biz-theme btn-rounded flush-soft-hover w-30p h-30p mr-1 link-report-icon" id="linkreport${containerid}" href="javascript:;"><span class="btn-icon-wrap"><i class="las la-table font-18"></i></span></a><div class="filter-dp-wrapper biz-dropdown ${isRestrictHidden} d-none" id="filterDpWrap_${containerid}">
|
||||
<a href="javascript:;" class="filter-icon btn btn-icon btn-flush-biz-theme btn-rounded flush-soft-hover w-30p h-30p" id="filter-icon${containerid}"
|
||||
onclick="Unibase.Platform.Analytics.Components.ReportViewer.Instance().loadDynamicFilters(${reportid},'${containerid}','.BindData_${containerid}')" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" data-tooltip="true" title="Dynamic Filters"><span class="btn-icon-wrap"><i class="las la-filter font-18"></i></span></a>
|
||||
<div class="dropdown-menu biz-custom-dropdown biz-filter-dropdown"
|
||||
@@ -209,8 +209,6 @@ var Unibase;
|
||||
}
|
||||
}
|
||||
instance.chart_dataSet();
|
||||
if (reportInfo.LinkReportId != 0)
|
||||
$(`#linkreport${containerid}`).removeClass("d-none");
|
||||
$(`#linkreport${containerid}`).click(function () {
|
||||
let widgetId = Number($(this).closest(".dashboardwidget-addeditem").find("#hf_widgetId").val());
|
||||
var commonFilters = Unibase.Platform.Analytics.Components._CommonFilter.Instance().appliedFilters;
|
||||
@@ -226,8 +224,7 @@ var Unibase;
|
||||
if (dynamicfilters && dynamicfilters.length) {
|
||||
filters = dynamicfilters;
|
||||
}
|
||||
(reportInfo.LinkReportId == reportInfo.ReportId) && (reportInfo.LinkReportId = 0);
|
||||
instance.linkReport(reportInfo.LinkReportId, filters, "div_linkreport" + containerid.substr(containerid.lastIndexOf("_")) + "_viewall");
|
||||
instance.linkReport(reportInfo.ReportId, filters, "div_linkreport" + containerid.substr(containerid.lastIndexOf("_")) + "_viewall");
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -754,7 +754,15 @@ var Unibase;
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
var portletwidgetid = result.PortletWidgetId;
|
||||
let containerid = "div_dashboardportletwidget_" + portletwidgetid;
|
||||
var winfo = [];
|
||||
winfo.push({ "PortletWidgetId": result.PortletWidgetId, "WidgetId": result.WidgetId, "reportid": result.ReportId, "Widgetname": result.WidgetName, "staticjspath": result.StaticJsPath });
|
||||
let inputParameters = [];
|
||||
if (result.WidgetLayoutName == "KPI") {
|
||||
Unibase.Themes.Compact.KpiWidgets.Manager.KpiManager.Instance()._load(winfo, containerid, null, dynamicFilters);
|
||||
}
|
||||
else {
|
||||
Unibase.Themes.Compact.Components.ReportWidgets.Default.Instance().getReportWidget(portletwidgetid, widgetid, containerid, inputParameters, dynamicFilters, false, 0, true);
|
||||
}
|
||||
Unibase.Themes.Compact.Components.ReportWidgets.Default.Instance().getReportWidget(portletwidgetid, widgetid, containerid, inputParameters, dynamicFilters, false, 0, true);
|
||||
});
|
||||
});
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-5
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"version":3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-1 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t{loadSettingHtml(){return``}bindControlData(){return""}SaveControlData(){return""}loadControlPropertiesHtml(){return""}bindPropertySettings(n){var t=n.PropertySettings;return""}savePropertySettings(n){var t=n.PropertySettings;return""}static Instance(){return this.instance===undefined&&(this.instance=new t),this.instance}}n.CommonFilter_Setting=t})(t=n.Components||(n.Components={}))})(t=n.Analytics||(n.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"settingspanel.js","sourceRoot":"","sources":["settingspanel.ts"],"names":[],"mappings":""}
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"ganttviewer.js","sourceRoot":"","sources":["ganttviewer.ts"],"names":[],"mappings":""}
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"ganttviewer.settings.js","sourceRoot":"","sources":["ganttviewer.settings.ts"],"names":[],"mappings":""}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,5 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(t){let i;(function(i){let r;(function(r){class u extends t.Core.BaseComponent{constructor(){super();this.reportManager=i.Managers.ReportManager.Instance();this.viewerManager=i.Managers.ViewerManager.Instance();this.ViewerSettings=new i.Providers.ViewerSettings}loadView(t,i,r,u,f,e){var h=this,c="",l="",o="",a="",s="",v="";h.viewerManager.getMapView(r).then(function(t){var r=t.result;c=r.LatColumn;l=r.LngColumn;o=r.TemplateText;a=r.HeaderTemplateText;s=r.DetailTemplateText;v=r.FooterTemplateText;let f={ReportId:i,page:u,pageSize:50,IsJson:!0};$("#Table_View_"+e).removeClass("hidden");h.reportManager.getReportViewerData(f).then(function(t){var g,ft,w,h;n.Platform.Helpers.NavigationHelper.Instance().hideLoading();var tt=[],it=[],u=[],f=[],b=[],rt=JSON.parse(t.result),i="";if(rt.Data&&(i=JSON.parse(rt.Data)),$("#ViewerFooter_"+e).removeClass("hidden"),!i)return $("#Viewer_"+e+"").removeClass("hidden"),$("#Viewer_"+e+"").empty().append(`<div class='alert alert-primary text-center mb-0 border-0 w-100 font-14 rounded-0'>No data available</div>`),"";i=n.Platform.Analytics.Viewers.MapViewer.Instance().toCamel(i);let d="",ut="";g=Handlebars.compile(o);for(let n=0;n<i.length;n++){let t=i[n][c.toLowerCase()],r=i[n][l.toLowerCase()],f=i[n].contactid;if(jQuery.inArray(t,tt)==-1&&jQuery.inArray(r,it)==-1){u.push({LatValue:t,LngValue:r,ContactId:f});tt.push(t);it.push(r);d=o!=""&&o!=null?g(i[n]):"<strong> LatId: "+t+", LngId: "+r+"<\/strong>";b.push(d);let e=`<div class="tab-content" id="pills-tabContent">
|
||||
<div class="tab-pane fade show active" id="pills-home" role="tabpanel" aria-labelledby="pills-home-tab">`+s+`</div> <div class="tab-pane fade" id="pills-profile" role="tabpanel" aria-labelledby="pills-profile-tab">Close Trip </div></div></div></div></div>`;ft=Handlebars.compile(s);ut+=ft(i[n])}else{let f=0;for(w=0;w<u.length;w++)u[w].LatValue==t&&u[w].LngValue==r&&(f=w);b[f]=b[f]+g(i[n])}}for(h=0;h<u.length;h++)u[h].LatValue!=0&&u[h].LngValue!=0&&f.push({LatId:u[h].LatValue,LngId:u[h].LngValue,ContactId:u[h].ContactId});let ot=`<div class="row"><div class="col-md-12">
|
||||
<div id="map_canvas_`+e+`" class="gmap"></div></div>
|
||||
<div class="col-md-5 d-none pr-10 pb-10"><div id="map-sidebar"><div class="card mb-0"><div class="card-header" style="height:10vh;" id="map_header">`+a+`</div><div class="card-body" id="mapside_body" style="overflow-y:scroll; height:71vh"> <div class="tab-content" id="pills-tabContent">
|
||||
<div class="tab-pane fade show active" id="pills-home" role="tabpanel" aria-labelledby="pills-home-tab">`+ut+` </div> <div class="tab-pane fade" id="pills-profile" role="tabpanel" aria-labelledby="pills-profile-tab">Close Trip </div></div></div><div class="card-footer" style="height:10vh;" id="footer_section">`+v+`</div></div></div></div>`;$("#Viewer_"+e+"").html(ot).addClass("pa-10");$(".list-content-section"+e+"").removeClass("hidden");$(".Templateheader").addClass("hidden");$(".card-footer").addClass("hidden");$(".btn-list-load-more").addClass("hidden");$(".list-content-section"+e).find("#map_canvas").css("height",$(window).outerHeight()-$(".list-content-section"+e).find(".card-header").outerHeight()-55);for(var st=f[0].LatId,ht=f[0].LngId,ct=new google.maps.LatLng(st,ht),lt={path:google.maps.SymbolPath.CIRCLE,fillOpacity:1,fillColor:"green",strokeOpacity:1,strokeWeight:1,strokeColor:"#333",scale:12,scaledSize:new google.maps.Size(54,44)},at={zoom:5,center:ct},vt=document.getElementById("map_canvas_"+e),k=new google.maps.Map(vt,at),y,p,nt=[],r=0;r<f.length;r++)y=new google.maps.Marker({position:new google.maps.LatLng(f[r].LatId,f[r].LngId),map:k,icon:lt}),nt[f[r].LatId+"_"+f[r].LngId]=b[r],p=new google.maps.InfoWindow({content:b[r]}),p.close(),google.maps.event.addListener(y,"click",function(n,t){var i=t;return function(){p.open(k,n);p.setContent(nt[n.getPosition().lat()+"_"+n.getPosition().lng()])}}(y,r)),google.maps.event.addListener(y,"mouseover",function(n,t){var i=t;return function(){p.open(k,n);p.setContent(nt[n.getPosition().lat()+"_"+n.getPosition().lng()])}}(y,r)),google.maps.event.addListener(y,"mouseout",function(){p.close(k,y)});let et;et=$("#mapside_body");et.slimscroll({color:"#d6d9da",disableFadeOut:!0,borderRadius:0,size:"6px",enableKeyNavigation:!0,opacity:.8,height:"71vh"})})})}toCamel(t){var u,r,f,i;if(t instanceof Array)return t.map(function(t){return typeof t=="object"&&(t=n.Platform.Analytics.Viewers.MapViewer.Instance().toCamel(t)),t});u={};for(r in t)t.hasOwnProperty(r)&&(f=(r.charAt(0).toLowerCase()+r.slice(1)||r).toString(),i=t[r],(i instanceof Array||i!==null&&i.constructor===Object)&&(i=n.Platform.Analytics.Viewers.MapViewer.Instance().toCamel(i)),u[f]=i);return u}static Instance(){return new n.Platform.Analytics.Viewers.MapViewer}}r.MapViewer=u})(r=i.Viewers||(i.Viewers={}))})(i=t.Analytics||(t.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"mapviewer.settings.js","sourceRoot":"","sources":["mapviewer.settings.ts"],"names":[],"mappings":"AAEA,IAAU,OAAO,CAoLhB;AApLD,WAAU,OAAO;IACb,IAAiB,QAAQ,CAkLxB;IAlLD,WAAiB,QAAQ;QACrB,IAAiB,SAAS,CAgLzB;QAhLD,WAAiB,SAAS;YACtB,IAAiB,UAAU,CA8K1B;YA9KD,WAAiB,UAAU;gBACvB,MAAa,iBAAkB,SAAQ,SAAA,IAAI,CAAC,aAAa;oBAKrD;wBACI,KAAK,EAAE,CAAC;wBACR,IAAI,CAAC,aAAa,GAAG,UAAA,QAAQ,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC;wBACvD,IAAI,CAAC,aAAa,GAAG,UAAA,QAAQ,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC;wBACvD,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;oBACtB,CAAC;oBACD,OAAO;wBACH,OAAO,CAAC,+DAA+D,CAAC,CAAC;oBAC7E,CAAC;oBAED,QAAQ;wBACJ,OAAO,EAAE,CAAC;oBACd,CAAC;oBAED,IAAI,CAAC,EAAE,EAAE,WAAW;wBAChB,IAAI,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA2DR,CAAC;wBACJ,OAAO,IAAI,CAAC;oBAChB,CAAC;oBAED,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,QAAQ;wBAC1B,IAAI,QAAQ,GAAG,IAAI,CAAC;wBACpB,IAAI,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;wBACzC,CAAC,CAAC,kBAAkB,CAAC,CAA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;oCACtC,aAAa,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAC,CAAC;iCAC/E;qCACI;oCACD,aAAa,CAAC,QAAQ,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;oCAC3D,CAAC,CAAC,GAAG,GAAG,WAAW,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;oCACnC,CAAC,CAAC,GAAG,GAAG,WAAW,CAAC,CAAC,MAAM,EAAE,CAAC;iCACjC;4BACL,CAAC,CAAC,CAAC;wBAEP,CAAC,CAAC,CAAC;oBACP,CAAC;oBAGD,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;4BAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAC;wBACnF,OAAO,IAAI,CAAC,SAAS,CAAC;oBAC1B,CAAC;iBAEJ;gBA5KY,4BAAiB,oBA4K7B,CAAA;YACL,CAAC,EA9KgB,UAAU,GAAV,oBAAU,KAAV,oBAAU,QA8K1B;QACL,CAAC,EAhLgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QAgLzB;IACL,CAAC,EAlLgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAkLxB;AACL,CAAC,EApLS,OAAO,KAAP,OAAO,QAoLhB"}
|
||||
@@ -1,66 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(t){let i;(function(i){let r;(function(r){class u extends t.Core.BaseComponent{constructor(){super();this.reportManager=i.Managers.ReportManager.Instance();this.viewerManager=i.Managers.ViewerManager.Instance();this.ReportId=0}jsFiles(){return["platform/analytics/components/mapviewer/mapviewer.settings.js"]}cssFiles(){return[]}html(){return`<div class="b-b bg-white modal-header">
|
||||
<strong class="text-dark">Map</strong>
|
||||
</div>
|
||||
<div class="modal-body" id="MapViewer_modal">
|
||||
<div id = "divMap_ErrorMessage"></div>
|
||||
<div class="card"> <div class="card-body"><div class="row"><div class="col-sm-6">
|
||||
<div id="div_MapName" class="floating-label-form-group">
|
||||
<label for="mapname" id="lbl_MapName">Map Name</label>
|
||||
<input type="text" class="form-control value-control floating-label-control" placeholder="Map Name" data-placeholder="Map Name" data-label="Map Name" id="txt_MapName">
|
||||
</div></div>
|
||||
<div class="col-sm-4">
|
||||
<div id="div_DisplayName" class="floating-label-form-group floating-label-form-group-with-value">
|
||||
<label for="displayname" id="lbl_DisplayName">Display Name</label>
|
||||
<input type="text" id="Txt_Display_Name" class="form-control value-control floating-label-control" placeholder="Display Name" data-placeholder="Display Name" data-label="Display Name">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div id="div_Latitude" class="">
|
||||
<label for="latitude">Latitude</label>
|
||||
<select type="text" class="form-control value-control floating-label-control" placeholder="Latitude" data-placeholder="Latitude" data-label="Latitude" id="txt_Latitude"><option value="0" selected="">Select Latitude Column</option></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div id="div_Longitude" class="">
|
||||
<label for="longitude" id="lbl_Longitude">Longitude</label>
|
||||
<select type="text" class="form-control value-control floating-label-control" placeholder="Longitude" data-placeholder="Longitude" data-label="Longitude" id="txt_Longitude"> <option value="0" selected="">Select Longitude Column</option></select>
|
||||
</div></div>
|
||||
</div></div></div>
|
||||
<div class="TemplateText_Section card">
|
||||
<div class="card-header"> Template Text </div>
|
||||
<div class="card-body">
|
||||
<div id="div_TemplateText" class="">
|
||||
<textarea class="" id="input_TemplateText" placeholder="Template Text" rows="3" cols="112"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="HeaderTemplateText_Section card">
|
||||
<div class="card-header">Header Template Text </div>
|
||||
<div class="card-body">
|
||||
<div id="div_HeaderTemplateText" class="">
|
||||
<textarea class="" id="input_HeaderTemplateText" placeholder="Header Template Text" rows="3" cols="112"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="DetailTemplateText_Section card">
|
||||
<div class="card-header">Detail Template Text </div>
|
||||
<div class="card-body">
|
||||
<div id="div_DetailTemplateText" class="">
|
||||
<textarea class="" id="input_DetailTemplateText" placeholder="Detail Template Text" rows="3" cols="112"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="FooterTemplateText_Section card">
|
||||
<div class="card-header">Footer Template Text </div>
|
||||
<div class="card-body">
|
||||
<div id="div_FooterTemplateText" class="">
|
||||
<textarea class="" id="input_FooterTemplateText" placeholder="Footer Template Text" rows="3" cols="112"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-white modal-footer">
|
||||
<a class="btn btn-light btn-sm btn-center mr-auto" id="btnClose">Close</a>
|
||||
<a class="btn btn-primary btn-center btn-sm text-white" id="btnSave">Save</a>
|
||||
</div>`}load(n,t){var i=this,u=Number(i.ReportId),r;$("#MapViewer_modal").css("height",$(window).outerHeight()-(Number($(".modal-header").outerHeight())+Number($(".modal-footer").outerHeight()))+"px");r=[];i.reportManager.getColumns(u).then(function(t){var u=t.result;for(let n=0;n<u.length;n++)r.push({id:u[n].ReportColumnName,text:u[n].ReportColumnName});$("#txt_Latitude").select2({placeholder:"Select Latitude Column",data:r});$("#txt_Longitude").select2({placeholder:"Select Longitude Column",data:r});n!=0&&i.getMapById(n)});$("#btnClose").click(function(){$("#"+t).modal("hide");$("#"+t).remove()});jQuery("#btnSave").click(function(){i.saveMap(n,u,t,null)})}getMapById(n){var t=this;t.viewerManager.getMapView(n).then(function(n){t.response=n.result;$("#Txt_Display_Name").val(t.response.DisplayName?t.response.DisplayName.trim():t.response.MapName.trim());$("#txt_MapName").val(t.response.MapName.trim()).attr("readonly","true").css("cursor","not-allowed");$("#txt_Latitude").val(t.response.LatColumn).trigger("change");$("#txt_Longitude").val(t.response.LngColumn).trigger("change");$("#input_TemplateText").val(t.response.TemplateText);$("#input_HeaderTemplateText").val(t.response.HeaderTemplateText);$("#input_DetailTemplateText").val(t.response.DetailTemplateText);$("#input_FooterTemplateText").val(t.response.FooterTemplateText)})}saveMap(t,i,r,u){var f=this,e=u;u==null&&(e={LatColumn:$("#txt_Latitude option:selected").text(),LngColumn:$("#txt_Longitude option:selected").text(),MapName:$("#txt_MapName").val(),ValueColumn:$("#txt_ColumnName").val(),ReportId:Number(i),MapViewId:Number(t),TemplateText:$("#input_TemplateText").val(),HeaderTemplateText:$("#input_HeaderTemplateText").val(),DetailTemplateText:$("#input_DetailTemplateText").val(),FooterTemplateText:$("#input_FooterTemplateText").val(),DisplayModeTypeId:1,ViewAll:f.response&&f.response.ViewAll||!0,DisplayName:$("#Txt_Display_Name").val().toString().trim(),IsFromUI:Number(t)==0?!0:!1});f.fileCacheHelper.loadJsFile("platform/analytics/managers/reportmanager.js",function(){f.viewerManager.saveMapView(e).then(function(t){t.status==n.Data.Status.Error?MessageHelper.Instance().showError(t.message,"divMap_ErrorMessage"):(MessageHelper.Instance().showSuccess(t.message,""),$("#"+r).modal("hide"),$("#"+r).remove())})})}static Instance(){return this._instance===undefined&&(this._instance=new n.Platform.Analytics.Components.MapViewerSettings),this._instance}}r.MapViewerSettings=u})(r=i.Components||(i.Components={}))})(i=t.Analytics||(t.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"columnformat.js","sourceRoot":"","sources":["columnformat.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CA4BhB;AA5BD,WAAU,OAAO;IACb,IAAiB,QAAQ,CA0BxB;IA1BD,WAAiB,QAAQ;QACrB,IAAiB,SAAS,CAwBzB;QAxBD,WAAiB,SAAS;YACtB,IAAiB,OAAO,CAsBvB;YAtBD,WAAiB,OAAO;gBACpB,MAAa,YAAY;oBAErB,WAAW,CAAC,QAAe;wBACvB,IAAI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EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;yBAC1J;wBAED,OAAO,OAAO,CAAC;oBACnB,CAAC;oBAGD,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;4BAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,EAAE,CAAC;yBACtC;wBACD,OAAO,IAAI,CAAC,QAAQ,CAAC;oBACzB,CAAC;iBACJ;gBApBY,oBAAY,eAoBxB,CAAA;YACL,CAAC,EAtBgB,OAAO,GAAP,iBAAO,KAAP,iBAAO,QAsBvB;QACL,CAAC,EAxBgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QAwBzB;IACL,CAAC,EA1BgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QA0BxB;AACL,CAAC,EA5BS,OAAO,KAAP,OAAO,QA4BhB"}
|
||||
@@ -1 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){class i{loadFormats(t){var i=[];return t==n.Platform.Analytics.Reports.Enums.DataType.dateTime?i=[{id:0,format:"Default"},{id:1,format:"dd/mm/yyyy"},{id:2,format:"mm/dd/yyyy"},{id:3,format:"yyyy/mm/dd"},{id:4,format:"Mon dd, yyyy"},{id:5,format:"Mon/yyyy"},{id:6,format:"hh"},{id:7,format:"mm"},{id:8,format:"ss"},{id:9,format:"hh:mm:ss"},{id:10,format:"hh:mm:ss AM"},{id:11,format:"dd/mm/yyyy hh:mm:ss"},{id:12,format:"dd/mm/yyyy hh:mm"},{id:13,format:"dd/mm/yyyy hh:mm:ss AM"},{id:14,format:"Mon dd, yyyy hh:mm:ss AM"}]:t==n.Platform.Analytics.Reports.Enums.DataType.decimal&&(i=[{id:0,format:"Default"},{id:1,format:"0.0"},{id:2,format:"0.00"},{id:3,format:"0.000"},{id:3,format:"0.0000"}]),i}static Instance(){return this.instance===undefined&&(this.instance=new i),this.instance}}t.ColumnFormat=i})(i=t.Reports||(t.Reports={}))})(i=t.Analytics||(t.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"import.js","sourceRoot":"","sources":["import.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CAmGhB;AAnGD,WAAU,OAAO;IACb,IAAiB,QAAQ,CAiGxB;IAjGD,WAAiB,QAAQ;QACrB,IAAiB,SAAS,CA+FzB;QA/FD,WAAiB,SAAS;YACtB,IAAiB,UAAU,CA6F1B;YA7FD,WAAiB,UAAU;gBACvB,IAAiB,aAAa,CA2F7B;gBA3FD,WAAiB,aAAa;oBAC1B,MAAa,MAAO,SAAQ,SAAA,IAAI,CAAC,aAAa;wBAI1C;4BACI,KAAK,EAAE,CAAC;4BACR,IAAI,CAAC,aAAa,GAAG,UAAA,QAAQ,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC;4BACvD,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC;wBACjF,CAAC;wBAED,QAAQ;4BACJ,IAAI,QAAQ,GAAG,CAAC,iCAAiC,CAAC,CAAC;4BACnD,OAAO,QAAQ,CAAC;wBACpB,CAAC;wBAED,OAAO;4BACH,OAAO,CAAC,8CAA8C;gCAClD,uDAAuD;gCACvD,oDAAoD;gCACpD,6BAA6B;gCAC7B,+BAA+B,EAAE,2CAA2C,CAAC,CAAC;wBACtF,CAAC;wBACD,IAAI,CAAC,EA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C,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;4BACrF,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,UAAU,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;wBAChH,CAAC;wBAGD,MAAM,CAAC,QAAQ;4BACX,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;gCAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,MAAM,EAAE,CAAC;6BAChC;4BACD,OAAO,IAAI,CAAC,QAAQ,CAAC;wBACzB,CAAC;;oBAvFM,eAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;oBADxB,oBAAM,SAyFlB,CAAA;gBACL,CAAC,EA3FgB,aAAa,GAAb,wBAAa,KAAb,wBAAa,QA2F7B;YACL,CAAC,EA7FgB,UAAU,GAAV,oBAAU,KAAV,oBAAU,QA6F1B;QACL,CAAC,EA/FgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QA+FzB;IACL,CAAC,EAjGgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAiGxB;AACL,CAAC,EAnGS,OAAO,KAAP,OAAO,QAmGhB"}
|
||||
@@ -1 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(t){let i;(function(i){let r;(function(r){let u;(function(r){class u extends t.Core.BaseComponent{constructor(){super();this.reportmanager=i.Managers.ReportManager.Instance();this.navigationhelper=n.Platform.Helpers.NavigationHelper.Instance()}cssFiles(){return["libs/nestable/JqueryminMenu.css"]}jsFiles(){return["platform/analytics/managers/reportmanager.js","platform/analytics/components/reportbuilder/import.js","platform/forms/components/formviewer/formviewer.js","libs/parsley/parsley.min.js","platform/core/infos/status.js","/platform/core/helpers/file/filehelper.js"]}html(n,t){var i=this;return'<form id="form_Import" data-validate="parsley" data-isdynamic="false"><div id="div_importmessage" class="clear"><\/div><div class="import-export-body modal-body" style="overflow-y: auto;"><div class="card"><div class="card-header"><span class="h6 text-dark ">Import<\/span><\/div><div id="industry_validation" class="clear"><\/div><div class="card-body scrollable"><div id="div_importexport" class=""><div class="card" id = "importexportsection"><div class="card-body"><div class="" id="div_Import"><input type="file" id="import_File" class="bg-light d-none d-sm-block required" style="width:150px"><hr /> <a href="javascript:;" id="fileUpload" class="btn btn-warning text-white" onclick="Unibase.Platform.Analytics.Components.ReportBuilder.Import.Instance().FileUpload('+t+');">Upload<\/a><\/div><\/div><\/div><div class="hidden" id="div_Export"><span id="sp_formName"><\/span><a href="javascript:;" id="fileExport" class="btn btn-primary text-white">Download<\/a><\/div><\/div><\/div><\/div><\/div><div class="bg-white card-footer footer" ><button id="btn_CloseImport" class="btn btn-secondary btn-sm mr-auto">Close<\/button><\/div><\/form>'}showImport(){this.navigationHelper.popup(0,"",n.Platform.Analytics.Components.ReportBuilder.Import.Instance(),null,t.Helpers.Size.Large)}FileUpload(i){var r=this,u;r.navigationHelper.showLoading();u=_appsettings.server_url()+"/apis/v4/unibase/platform/analytics/exportreports/np";t.Helpers.FileHelper.Instance().upload(u,n.Platform.Analytics.Components.ReportBuilder.Import.fileData).then(function(){MessageHelper.Instance().showSuccess("success","div_importmessage");r.navigationHelper.hideLoading();$("#"+i).modal("hide");$("#"+i).remove()})}load(t,i){var r=this;$("#btn_CloseImport").click(function(){$("#"+i).modal("hide");$("#"+i).remove()});$("#btn_Import").click(function(){$("#importexportsection").removeClass("hidden");$("#div_Import").removeClass("hidden")});$("#import_File").change(function(t){n.Platform.Analytics.Components.ReportBuilder.Import.Instance().fileEvent(t)});$("#txt_Icon").focus(function(){$(".div_Icons").fadeIn();$("#icons").toggleClass("hidden");$(".div_Icons").removeClass("hidden")});$("#txt_Icon").focusout(function(){$(".div_Icons").fadeOut()})}fileEvent(t){const i=t.target.files[0];n.Platform.Analytics.Components.ReportBuilder.Import.fileData=new FormData;n.Platform.Analytics.Components.ReportBuilder.Import.fileData.append(i.name,i)}static Instance(){return this.instance===undefined&&(this.instance=new u),this.instance}}u.fileData=new FormData;r.Import=u})(u=r.ReportBuilder||(r.ReportBuilder={}))})(r=i.Components||(i.Components={}))})(i=t.Analytics||(t.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
File diff suppressed because one or more lines are too long
@@ -1,43 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(t){let i;(function(i){let r;(function(r){let u;(function(r){class u extends t.Core.BaseComponent{constructor(){super();this.reportmanager=i.Managers.ReportManager.Instance();this.navigationhelper=n.Platform.Helpers.NavigationHelper.Instance()}cssFiles(){return["libs/nestable/JqueryminMenu.css"]}jsFiles(){return["platform/analytics/managers/reportmanager.js","platform/analytics/components/reportbuilder/import.js","platform/forms/components/formviewer/formviewer.js","libs/parsley/parsley.min.js","platform/core/infos/status.js","/platform/core/helpers/file/filehelper.js"]}html(n,t){var i=this;return`<form id="form_Import" data-validate="parsley" data-isdynamic="false">
|
||||
<div class="bg-white modal-header pa-10"><strong class="biz-highlight-bg-color Title">Import/Export</strong>
|
||||
<div class="dropdown report-options-dp my-auto">
|
||||
<a class="nav-link no-caret btn btn-icon btn-flush-biz-theme btn-rounded flush-soft-hover w-30p h-30p reportview-remove-none ml-1 " href="javascript:;" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="" data-tooltip="true" title="" aria-describedby="ui-id-16">
|
||||
<span class="btn-icon-wrap"><i class="fa fa-ellipsis-v ellipsis-hover-1" aria-hidden="true"></i></span>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right ViewerTypes_dropdown">
|
||||
<a href="javascript:;" id="fileExport" class="dropdown-item" onclick="Unibase.Platform.Analytics.Components.ReportBuilder.ImportAndExport.Instance().exportsReports();">Reports</a>
|
||||
<a href="javascript:;" id="viewersExport" class="dropdown-item" onclick="Unibase.Platform.Analytics.Components.ReportBuilder.ImportAndExport.Instance().exportViewers(0,0,0,'');">Viewers</a>
|
||||
<a href="javascript:;" id="dyfilExport" class="dropdown-item" onclick="Unibase.Platform.Analytics.Components.ReportBuilder.ImportAndExport.Instance().exportDynamicFilters(0);">Dynamic Filters</a>
|
||||
<a href="javascript:;" id="dyfilExport" class="dropdown-item" onclick="Unibase.Platform.Analytics.Components._CommonFilter.Instance().export(0, 0);">Common Filters</a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="div_importmessage" class="form-error-message"></div>
|
||||
</div>
|
||||
<div data-simplebar class="import-export-body modal-body simple-scroll-bar">
|
||||
<div id="industry_validation" class="clear"></div>
|
||||
<div id="div_importexport" class="">
|
||||
<div class="card" id="importexportsection">
|
||||
<div class="card-body">
|
||||
<div class="" id="div_Import"><input type="file" id="import_File" class="bg-light d-none d-sm-block required">
|
||||
<br>
|
||||
<input type="radio" id="report_radio_btn" class="importreport" onclick="" name="report_viewer_dyfil_import_radio_btn" value="report">
|
||||
<label for="report_radio_btn">Report</label>
|
||||
<br>
|
||||
<input type="radio" id="viewer_radio_btn" class="importviewer" onclick="" name="report_viewer_dyfil_import_radio_btn" value="viewer">
|
||||
<label for="viewer_radio_btn">Viewers</label>
|
||||
<br>
|
||||
<input type="radio" id="dyfil_radio_btn" class="importdynamicfilters" onclick="" name="report_viewer_dyfil_import_radio_btn" value="dynamic filters">
|
||||
<label for="dyfil_radio_btn">Dynamic Filters</label>
|
||||
<br>
|
||||
<input type="radio" id="cmfil_radio_btn" class="importcommonfilters" onclick="" name="report_viewer_dyfil_import_radio_btn" value="common filters">
|
||||
<label for="cmfil_radio_btn">Common Filters</label>
|
||||
<br>
|
||||
<hr/> <a href="javascript:;" id="fileUpload" class="btn btn-warning text-white" onclick="Unibase.Platform.Analytics.Components.ReportBuilder.ImportAndExport.Instance().FileUpload('${t}');">Upload</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hidden" id="div_Export"><span id="sp_formName"></span><a href="javascript:;" id="fileExport" class="btn btn-primary text-white">Download</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-white card-footer"><button id="btn_CloseImport" class="btn btn-secondary btn-sm mr-auto">Close</button></div>
|
||||
</form>`}showImportExport(){this.navigationHelper.popup(0,"",n.Platform.Analytics.Components.ReportBuilder.ImportAndExport.Instance(),null,t.Helpers.Size.Large)}exportsReports(){var n=this;n.navigationHelper.showLoading();n.reportmanager.exportReports().then(function(t){t.result!=""&&MessageHelper.Instance().showSuccess(t.message,"");n.downloadResponseAndHideLoading(t,"Reports.xml")})}FileUpload(i){var r=this,u;r.navigationhelper.showLoading();let f=$("#report_radio_btn").prop("checked"),e=$("#dyfil_radio_btn").prop("checked"),o=$("#cmfil_radio_btn").prop("checked");u=f?_appsettings.server_url()+"/apis/v4/unibase/platform/analytics/importreports/np":e?_appsettings.server_url()+"/apis/v4/unibase/platform/analytics/importdynamicfilters/np":o?_appsettings.server_url()+"/apis/v4/unibase/platform/analytics/importcommonfilters/np":_appsettings.server_url()+"/apis/v4/unibase/platform/analytics/importreportviews/np";t.Helpers.FileHelper.Instance().upload(u,n.Platform.Analytics.Components.ReportBuilder.ImportAndExport.fileData).then(function(t){t.status==n.Data.Status.Error?MessageHelper.Instance().showError(t.message,"div_importmessage"):(MessageHelper.Instance().showSuccess("success","div_importmessage"),$("#"+i).modal("hide"),$("#"+i).remove());r.navigationhelper.hideLoading()})}load(t,i){var r=this;$("#btn_CloseImport").click(function(){$("#"+i).modal("hide");$("#"+i).remove()});$("#btn_Import").click(function(){$("#importexportsection").removeClass("hidden");$("#div_Import").removeClass("hidden")});$("#import_File").change(function(t){n.Platform.Analytics.Components.ReportBuilder.ImportAndExport.Instance().fileEvent(t)});$("#txt_Icon").focus(function(){$(".div_Icons").fadeIn();$("#icons").toggleClass("hidden");$(".div_Icons").removeClass("hidden")});$("#txt_Icon").focusout(function(){$(".div_Icons").fadeOut()})}fileEvent(t){const i=t.target.files[0];n.Platform.Analytics.Components.ReportBuilder.ImportAndExport.fileData=new FormData;n.Platform.Analytics.Components.ReportBuilder.ImportAndExport.fileData.append(i.name,i)}exportViewers(t,i,r,u){this.navigationHelper.showLoading();let f;u&&(f=n.Platform.Analytics.Components.ReportViewer.Instance().getReportViewerInstance(u));let e=r||f&&f.ReportId||0;n.Platform.Analytics.Managers.ViewerManager.Instance().exportViewers(t||0,e).then(t=>{if(t.status==n.Data.Status.Success&&t.result!=null){var r;if(i&&u)r=f.reportname+"_"+i+".xml";else if(u)r=f.reportname+"_viewers.xml";else{let t=n.Themes.Providers.Detail_Settings.Instance().InputParameters;if(t&&t.length){let n=t.find(n=>n.Key.endsWith("_reportname"));n.Value&&(r=n.Value+"_viewers.xml")}r||(r="AllReportViewers.xml")}this.downloadResponseAndHideLoading(t,r)}else t.status==n.Data.Status.Warning&&(MessageHelper.Instance().showError(t.message,"div_message"),this.navigationHelper.hideLoading())})}exportReportViewers(t){t||(t=Number(n.Themes.Providers.Detail_Settings.Instance().InputParameters.find(n=>n.Key.endsWith("_reportid")).Value));this.exportViewers(0,"",t,"")}exportDynamicFilters(t){this.navigationHelper.showLoading();let i=n.Themes.Providers.Detail_Settings.Instance().InputParameters,r="";if(!t&&i.length){let n=i.find(n=>n.Key.endsWith("_reportid"));n&&n.Value&&(t=Number(n.Value))}t&&(r=i.find(n=>n.Key.endsWith("_reportname")).Value);this.reportmanager.exportDynamicFilters(t).then(t=>{t.status==n.Data.Status.Success?this.downloadResponseAndHideLoading(t,(r||"AllReports")+"_DynamicFilters.xml"):this.navigationHelper.hideLoading()})}downloadResponseAndHideLoading(n,t){var r=n.result,i=document.createElement("a"),u=new Blob([r],{type:"text/plain"});i.setAttribute("href",window.URL.createObjectURL(u));i.setAttribute("download",t);i.dataset.downloadurl=["text/plain",i.download,i.href].join(":");i.draggable=!0;i.classList.add("dragout");i.click();this.navigationHelper.hideLoading()}static Instance(){return this.instance===undefined&&(this.instance=new u),this.instance}}u.fileData=new FormData;r.ImportAndExport=u})(u=r.ReportBuilder||(r.ReportBuilder={}))})(r=i.Components||(i.Components={}))})(i=t.Analytics||(t.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -88,6 +88,7 @@ var Unibase;
|
||||
this.pinDynamicFilters = false;
|
||||
this.showDynamicFilters = false;
|
||||
this.legendTypeId = 0;
|
||||
this.isCharttoTable = false;
|
||||
}
|
||||
cssFiles() {
|
||||
var cssfiles = ['platform/analytics/components/reportbuilder/style.reportbuilder.css'];
|
||||
@@ -1326,7 +1327,7 @@ var Unibase;
|
||||
instance.tabulatorColumns.push({ title: "LastColumn", field: "LastColumn", visible: false, headerSort: instance.HeaderSort });
|
||||
instance.table.options.dataTree = false;
|
||||
instance.table.setColumns(instance.tabulatorColumns);
|
||||
if (instance.reportid != 0) {
|
||||
if (instance.reportid != 0 && !instance.isCharttoTable) {
|
||||
instance.getSubReports(instance.reportid);
|
||||
}
|
||||
if (instance.dataTreeRowExpandedColumn.length == 0) {
|
||||
@@ -2622,6 +2623,7 @@ var Unibase;
|
||||
$("#dataset_base_value").val(instance._chartBuilder.chartBaseValue);
|
||||
}
|
||||
else {
|
||||
instance.isCharttoTable = true;
|
||||
if ($("#DataListsDiv").hasClass("hidden")) {
|
||||
$("#Categories").removeClass("hidden");
|
||||
}
|
||||
@@ -3074,106 +3076,118 @@ var Unibase;
|
||||
toDate = Unibase.Platform.Helpers.DateTimeHelper.Instance().formatLocalDateformat(new Date(Unibase.Platform.Helpers.DateTimeHelper.Instance().currentDate()), "YYYY/MM/DD");
|
||||
}
|
||||
let uniqueId = instance.res && instance.res.UniqueId ? instance.res.UniqueId : "Bizgaze_Platform_Analytics_Reports_" + ReportName.replace(/\s/g, '');
|
||||
let model = new Unibase.Platform.Analytics.Requests.Report();
|
||||
model.SearchColumns = SearchCols;
|
||||
model.SubReports = instance.subreportdata;
|
||||
model.DependencyApps = dependencyapps.join('|');
|
||||
model.DynamicFilters = instance.dynamicFilters;
|
||||
model.ReportId = Number($("#txt_reportid").val());
|
||||
model.ReportName = String($("#txt_reportname").val());
|
||||
model.DisplayName = String($("#txt_displayname").val());
|
||||
model.ReportTypeId = instance.reportType;
|
||||
model.DataListId = instance.DataListId;
|
||||
model.Description = '';
|
||||
model.ReportGroupId = Number($("#RptGroup_AutoComplete").val());
|
||||
model.ReportColumns = instance.ReportColumns;
|
||||
model.ChartColumns = instance.ChartColumns;
|
||||
model.RoleSettings = instance.roleSettings;
|
||||
model.EditFilters = null;
|
||||
model.StaticFilter = instance.queryBuilderJson;
|
||||
model.SortColumns = JSON.stringify(SortArry);
|
||||
model.TopRecords = Number($("#txt_totalrecords").val());
|
||||
model.Parameters = String($("#txt_dynamicparameters").val()).trim();
|
||||
model.ChartTypeId = instance._chartBuilder.ChartTypeId;
|
||||
model.DateColumn = String($("#DateColumnDropDown").val());
|
||||
model.UniqueId = uniqueId;
|
||||
model.ViewerId = instance.ViewerId;
|
||||
model.ViewerTypeId = instance.ViewerTypeId;
|
||||
model.OnClick = String($("#txt_onclick").val());
|
||||
model.InstalledAppId = isNaN(Number($("#InstalledApp_AutoComplete option:selected").val())) == true ? 0 : Number($("#InstalledApp_AutoComplete option:selected").val());
|
||||
model.IsNotification = instance.IsNotification;
|
||||
model.TableTypeId = Number($("#tableTypeSelect").val());
|
||||
model.DisplayName = String($("#txt_displayname").val());
|
||||
model.IsLegend = instance._chartBuilder.displayLegend;
|
||||
model.LegendTypeId = isNaN(Number($("#legend-select").val())) == true ? 0 : Number($("#legend-select").val());
|
||||
model.IsInternalReport = instance.IsInternalReport;
|
||||
model.IsPivotTree = instance.IsPivotTree;
|
||||
model.PivotValue = (instance.pivot.PivotValue_Selected) ? Number(instance.pivot.PivotValue_Selected) : 0;
|
||||
model.IsEnableCount = instance.enableCount;
|
||||
model.IsEnableGlobalDatepicker = instance.enableGlobalDatepicker;
|
||||
model.PaletteId = instance.paletteId;
|
||||
model.ColorAppliedTypeId = instance._chartBuilder.colorAppliedOn;
|
||||
model.PivotTypeId = instance._pivot.pivotTypeId;
|
||||
model.TimeInterval = instance.Interval;
|
||||
model.ConnectedApps = connectedApps;
|
||||
model.LinkReportId = instance.linkReportId;
|
||||
model.IsTreeExpand = instance._pivot.isDataTreeExpand;
|
||||
model.ReportIndex = 0;
|
||||
model.ViewAll = instance.viewAll;
|
||||
model.ConnectedReports = connectedReports;
|
||||
model.LegendTitleTypeId = instance._chartBuilder.legendTitleTypeId;
|
||||
model.ChartBaseValue = baseValue === undefined ? 0 : Number(baseValue);
|
||||
model.FromDate = fromDate;
|
||||
model.ToDate = toDate;
|
||||
model.EnablePivotTableConfig = instance.enablePivotTableConfig;
|
||||
model.Js = String($("#txt_js").val());
|
||||
model.PinDynamicFilters = $('#pindynamicfilters_checkbox').is(":checked");
|
||||
model.IsDataLabel = $("#isdatalabel").prop("checked");
|
||||
model.IsTooltipHeader = $("#showtooltipheader_checkbox").prop("checked");
|
||||
model.ShowDataListColsOnDynFil = instance.showDynamicFilters;
|
||||
model.TickLabelLength = instance._chartBuilder.tickLabelLength;
|
||||
instance.reportManager.saveReport(model).then(function (response) {
|
||||
if (instance.reportType == Unibase.Platform.Analytics.Reports.Enums.ReportType.Table && instance.isCharttoTable) {
|
||||
instance.navigationHelper.hideLoading();
|
||||
if (response.status == Unibase.Data.Status.Error) {
|
||||
MessageHelper.Instance().showError(response.message, 'divReport_ErrorMessage');
|
||||
$('#save_as_modal #divReport_ErrorMessage #Bizgaze-messageInfo').addClass('btn mx-4 my-3');
|
||||
$('#save_as_modal #divReport_ErrorMessage #Bizgaze-messageInfo').css('border-radius', '.25rem');
|
||||
}
|
||||
else {
|
||||
MessageHelper.Instance().showSuccess(response.message, '');
|
||||
$('#' + containerid).modal('hide');
|
||||
$('#' + containerid).remove();
|
||||
instance._chartBuilder.clearSelectedChartFields();
|
||||
instance.clearSelectedTableFields();
|
||||
instance.querybuilderCheckboxes = [];
|
||||
var res = JSON.parse(response.result);
|
||||
if (reportid != 0 && !instance.isReportWidget) {
|
||||
const lastContainerId = instance.lastContainerId;
|
||||
$(`#${lastContainerId}`).modal("hide");
|
||||
$(`#${lastContainerId}`).remove();
|
||||
if (lastContainerId.includes('_viewall') || lastContainerId.includes('_ViewAllByUniqueId_') || lastContainerId.includes('fullscreen') || lastContainerId.includes('_linkedreport_')) {
|
||||
Unibase.Platform.Helpers.NavigationHelper.reportViewerInstance = Unibase.Platform.Helpers.NavigationHelper.reportViewerInstance.filter(instance => instance.childcontainerid !== lastContainerId);
|
||||
instance._reportViewer.report_ViewAll(reportid, 0, lastContainerId, null);
|
||||
if (lastContainerId.includes('fullscreen') && lastContainerId.includes('div_dashboardportletwidget')) {
|
||||
const widgetContainerId = lastContainerId.replace('fullscreen_', '');
|
||||
instance.reloadDashboardPortletWidget(widgetContainerId);
|
||||
bootbox.confirm("Do you want to switch Chart to Table ?", function (result) {
|
||||
if (result) {
|
||||
instance.navigationHelper.showLoading();
|
||||
instance.isCharttoTable = false;
|
||||
instance.saveReport(containerid, reportid);
|
||||
}
|
||||
});
|
||||
}
|
||||
else {
|
||||
let model = new Unibase.Platform.Analytics.Requests.Report();
|
||||
model.SearchColumns = SearchCols;
|
||||
model.SubReports = instance.subreportdata;
|
||||
model.DependencyApps = dependencyapps.join('|');
|
||||
model.DynamicFilters = instance.dynamicFilters;
|
||||
model.ReportId = Number($("#txt_reportid").val());
|
||||
model.ReportName = String($("#txt_reportname").val());
|
||||
model.DisplayName = String($("#txt_displayname").val());
|
||||
model.ReportTypeId = instance.reportType;
|
||||
model.DataListId = instance.DataListId;
|
||||
model.Description = '';
|
||||
model.ReportGroupId = Number($("#RptGroup_AutoComplete").val());
|
||||
model.ReportColumns = instance.ReportColumns;
|
||||
model.ChartColumns = instance.ChartColumns;
|
||||
model.RoleSettings = instance.roleSettings;
|
||||
model.EditFilters = null;
|
||||
model.StaticFilter = instance.queryBuilderJson;
|
||||
model.SortColumns = JSON.stringify(SortArry);
|
||||
model.TopRecords = Number($("#txt_totalrecords").val());
|
||||
model.Parameters = String($("#txt_dynamicparameters").val()).trim();
|
||||
model.ChartTypeId = instance._chartBuilder.ChartTypeId;
|
||||
model.DateColumn = String($("#DateColumnDropDown").val());
|
||||
model.UniqueId = uniqueId;
|
||||
model.ViewerId = instance.ViewerId;
|
||||
model.ViewerTypeId = instance.ViewerTypeId;
|
||||
model.OnClick = String($("#txt_onclick").val());
|
||||
model.InstalledAppId = isNaN(Number($("#InstalledApp_AutoComplete option:selected").val())) == true ? 0 : Number($("#InstalledApp_AutoComplete option:selected").val());
|
||||
model.IsNotification = instance.IsNotification;
|
||||
model.TableTypeId = Number($("#tableTypeSelect").val());
|
||||
model.DisplayName = String($("#txt_displayname").val());
|
||||
model.IsLegend = instance._chartBuilder.displayLegend;
|
||||
model.LegendTypeId = isNaN(Number($("#legend-select").val())) == true ? 0 : Number($("#legend-select").val());
|
||||
model.IsInternalReport = instance.IsInternalReport;
|
||||
model.IsPivotTree = instance.IsPivotTree;
|
||||
model.PivotValue = (instance.pivot.PivotValue_Selected) ? Number(instance.pivot.PivotValue_Selected) : 0;
|
||||
model.IsEnableCount = instance.enableCount;
|
||||
model.IsEnableGlobalDatepicker = instance.enableGlobalDatepicker;
|
||||
model.PaletteId = instance.paletteId;
|
||||
model.ColorAppliedTypeId = instance._chartBuilder.colorAppliedOn;
|
||||
model.PivotTypeId = instance._pivot.pivotTypeId;
|
||||
model.TimeInterval = instance.Interval;
|
||||
model.ConnectedApps = connectedApps;
|
||||
model.LinkReportId = instance.linkReportId;
|
||||
model.IsTreeExpand = instance._pivot.isDataTreeExpand;
|
||||
model.ReportIndex = 0;
|
||||
model.ViewAll = instance.viewAll;
|
||||
model.ConnectedReports = connectedReports;
|
||||
model.LegendTitleTypeId = instance._chartBuilder.legendTitleTypeId;
|
||||
model.ChartBaseValue = baseValue === undefined ? 0 : Number(baseValue);
|
||||
model.FromDate = fromDate;
|
||||
model.ToDate = toDate;
|
||||
model.EnablePivotTableConfig = instance.enablePivotTableConfig;
|
||||
model.Js = String($("#txt_js").val());
|
||||
model.PinDynamicFilters = $('#pindynamicfilters_checkbox').is(":checked");
|
||||
model.IsDataLabel = $("#isdatalabel").prop("checked");
|
||||
model.IsTooltipHeader = $("#showtooltipheader_checkbox").prop("checked");
|
||||
model.ShowDataListColsOnDynFil = instance.showDynamicFilters;
|
||||
model.TickLabelLength = instance._chartBuilder.tickLabelLength;
|
||||
instance.reportManager.saveReport(model).then(function (response) {
|
||||
instance.navigationHelper.hideLoading();
|
||||
if (response.status == Unibase.Data.Status.Error) {
|
||||
MessageHelper.Instance().showError(response.message, 'divReport_ErrorMessage');
|
||||
$('#save_as_modal #divReport_ErrorMessage #Bizgaze-messageInfo').addClass('btn mx-4 my-3');
|
||||
$('#save_as_modal #divReport_ErrorMessage #Bizgaze-messageInfo').css('border-radius', '.25rem');
|
||||
}
|
||||
else {
|
||||
MessageHelper.Instance().showSuccess(response.message, '');
|
||||
$('#' + containerid).modal('hide');
|
||||
$('#' + containerid).remove();
|
||||
instance._chartBuilder.clearSelectedChartFields();
|
||||
instance.clearSelectedTableFields();
|
||||
instance.querybuilderCheckboxes = [];
|
||||
var res = JSON.parse(response.result);
|
||||
if (reportid != 0 && !instance.isReportWidget) {
|
||||
const lastContainerId = instance.lastContainerId;
|
||||
$(`#${lastContainerId}`).modal("hide");
|
||||
$(`#${lastContainerId}`).remove();
|
||||
if (lastContainerId.includes('_viewall') || lastContainerId.includes('_ViewAllByUniqueId_') || lastContainerId.includes('fullscreen') || lastContainerId.includes('_linkedreport_')) {
|
||||
Unibase.Platform.Helpers.NavigationHelper.reportViewerInstance = Unibase.Platform.Helpers.NavigationHelper.reportViewerInstance.filter(instance => instance.childcontainerid !== lastContainerId);
|
||||
instance._reportViewer.report_ViewAll(reportid, 0, lastContainerId, null);
|
||||
if (lastContainerId.includes('fullscreen') && lastContainerId.includes('div_dashboardportletwidget')) {
|
||||
const widgetContainerId = lastContainerId.replace('fullscreen_', '');
|
||||
instance.reloadDashboardPortletWidget(widgetContainerId);
|
||||
}
|
||||
}
|
||||
else {
|
||||
instance._reportViewer.InstalledAppId = res.InstalledAppId;
|
||||
instance.navigationHelper.popin(res.ReportId, "", instance._reportViewer, null);
|
||||
}
|
||||
}
|
||||
else {
|
||||
instance._reportViewer.InstalledAppId = res.InstalledAppId;
|
||||
instance.navigationHelper.popin(res.ReportId, "", instance._reportViewer, null);
|
||||
else if (instance.isReportWidget) {
|
||||
instance.reloadReportWidget(instance.reportWidgetType);
|
||||
if (instance.reportWidgetType == 'portlet' && instance.lastContainerId) {
|
||||
$("#" + instance.lastContainerId).modal("hide");
|
||||
$("#" + instance.lastContainerId).remove();
|
||||
instance._reportViewer.report_ViewAll(0, 0, 0, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (instance.isReportWidget) {
|
||||
instance.reloadReportWidget(instance.reportWidgetType);
|
||||
if (instance.reportWidgetType == 'portlet' && instance.lastContainerId) {
|
||||
$("#" + instance.lastContainerId).modal("hide");
|
||||
$("#" + instance.lastContainerId).remove();
|
||||
instance._reportViewer.report_ViewAll(0, 0, 0, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
reloadDashboardPortletWidget(widgetContainerId) {
|
||||
@@ -3213,6 +3227,7 @@ var Unibase;
|
||||
instance.isEdit = false;
|
||||
instance._pivot.pivotTypeId = 0;
|
||||
instance.IsInternalReport = true;
|
||||
instance.isCharttoTable = false;
|
||||
}
|
||||
defaultReportGroup() {
|
||||
var instance = this;
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-1210
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"reportbuilderhiddenfields.js","sourceRoot":"","sources":["reportbuilderhiddenfields.ts"],"names":[],"mappings":"AACA,IAAU,OAAO,CAsFhB;AAtFD,WAAU,OAAO;IACb,IAAiB,QAAQ,CAoFxB;IApFD,WAAiB,QAAQ;QACrB,IAAiB,SAAS,CAkFzB;QAlFD,WAAiB,SAAS;YACtB,IAAiB,OAAO,CAgFvB;YAhFD,WAAiB,OAAO;gBACpB,MAAa,sBAAsB;oBAyE/B,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;4BAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,sBAAsB,EAAE,CAAC;wBAClD,OAAO,IAAI,CAAC,SAAS,CAAC;oBAC1B,CAAC;iBACJ;gBA9EY,8BAAsB,yBA8ElC,CAAA;YACL,CAAC,EAhFgB,OAAO,GAAP,iBAAO,KAAP,iBAAO,QAgFvB;QACL,CAAC,EAlFgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QAkFzB;IACL,CAAC,EApFgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAoFxB;AACL,CAAC,EAtFS,OAAO,KAAP,OAAO,QAsFhB"}
|
||||
-1
@@ -1 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t{static Instance(){return this._instance===undefined&&(this._instance=new t),this._instance}}n.ReportBuilderVariables=t})(t=n.Reports||(n.Reports={}))})(t=n.Analytics||(n.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-72
@@ -1,72 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(t){let i;(function(i){let r;(function(r){class u extends t.Core.BaseComponent{constructor(){super();this.isSingleAppSelected=!1;this.reportManager=i.Managers.ReportManager.Instance()}cssFiles(){return[]}jsFiles(){return["platform/analytics/managers/reportmanager.js"]}html(){return`<section id="link-report-section" class="modal-content">
|
||||
<div class="modal-header pa-10" id="reportrolesetting_header">
|
||||
<strong class="modal-title biz-highlight-bg-color">Role Settings</strong>
|
||||
</div>
|
||||
<div data-simplebar class="simple-scroll-bar">
|
||||
<div id="divRoleSetting_ErrorMessage"></div>
|
||||
<div class="modal-body bg-charcoal-light-5 sub-report-block" id="reportrolesetting_modal">
|
||||
<div class="report-rolesettings-block card" data-select2-id="24">
|
||||
<div data-select2-id="23">
|
||||
<header class="report-rolesettings-head">
|
||||
<h6 class="required">
|
||||
Role Settings
|
||||
</h6>
|
||||
<span>
|
||||
<i class="las la-braille dragger"></i>
|
||||
</span>
|
||||
</button>
|
||||
</header>
|
||||
<div id="subrpts_div" data-select2-id="subrpts_div" class="">
|
||||
<div class="report-body">
|
||||
<div class="form-group">
|
||||
<div id="divsubrpt_0" data-select2-id="divsubrpt_">
|
||||
<div class="form-row">
|
||||
<div class="col">
|
||||
<div id="div_installedapps">
|
||||
<input type="hidden" id="hfrolesettings_installedapps">
|
||||
<select id="rolesettings_installedapps" class="form-control text-control required">
|
||||
<option value="0" selected="">Apps</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div id="div_rolesettings">
|
||||
<select id="rolesettings_ddl" class="form-control custom-select mb-10 required">
|
||||
<option value="0" selected="">Role Settings</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<a class="btn btn-icon btn-theme" id="btnConfigAddRoleSetting" onclick="" ;="">
|
||||
<span class="btn-icon-wrap"><span class="line-icon text-white"><i class="las la-plus"></i></span></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="m-t-sm">
|
||||
<div class="form-row">
|
||||
<div class="col px-4 py-2">
|
||||
<strong> App Name </strong>
|
||||
</div>
|
||||
<div class="col py-2">
|
||||
<strong> RoleSetting </strong>
|
||||
</div>
|
||||
<div class="col-auto py-2 px-4">
|
||||
<a class="invisible"><i class="fa fa-close text-danger"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="RoleSettingExp"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
<div class="modal-footer pa-10" id="linkreport_footer">
|
||||
<button type="button" class="btn btn-sm btn-light mr-auto" id="btnRoleSettingsClose">Cancel</button>
|
||||
<button type="button" class="btn btn-sm btn-primary" id="btnRoleSettingsSave">Save</button>
|
||||
</div>
|
||||
</section>`}load(n,t){var i=this;let u=!1;if(i._reportbuilder=r.ReportBuilder.Instance(),$("#btnRoleSettingsClose").click(function(){$("#"+t).modal("hide");$("#"+t).remove();i.isSingleAppSelected&&(i._reportbuilder.roleSettings=[],i.isSingleAppSelected=!1)}),$("#rolesettings_installedapps").empty(),i._reportbuilder.roleSettings&&i._reportbuilder.roleSettings.length&&(u=!0),i._reportbuilder.roleSettings!=null)for(let n=0;n<i._reportbuilder.roleSettings.length;n++){let t=i._reportbuilder.roleSettings[n];i.appendRoleSetting(t.AppTitle,t.SettingName)}$("#btnConfigAddRoleSetting").click(function(){var u,r;let f=i._reportbuilder.selectedColumns.findIndex(n=>n.AliasName=="installedappid");if(f==-1)return MessageHelper.Instance().showError("Please add installedappid column in order to select app","divRoleSetting_ErrorMessage"),!1;var n=$("#rolesettings_installedapps option:selected").text(),e=$("#rolesettings_installedapps option:selected").val(),t=$("#rolesettings_ddl option:selected").text();if(n!=""&&t!=""){if(u=Number($("#InstalledApp_AutoComplete option:selected").val()),e==u)return i._reportbuilder.roleSettings&&i._reportbuilder.roleSettings.length==1&&(i.isSingleAppSelected=!0),MessageHelper.Instance().showError(`Cannot use same app ${n} in both role settings and installed app field of left navigation in report builder.`,"divRoleSetting_ErrorMessage");r=!1;i._reportbuilder.roleSettings!=null&&(r=i._reportbuilder.roleSettings.find(i=>i.AppName==n&&i.RoleSetting==t)?!0:!1);r||(i.appendRoleSetting(n,t),i._reportbuilder.roleSettings.push({InstalledAppId:Number($("#rolesettings_installedapps option:selected").val()),AppPermissionId:Number($("#rolesettings_ddl option:selected").val()),AppTitle:n,SettingName:t}),$("#rolesettings_installedapps").html('<option value="0" selected="">Apps<\/option>').val("0"),$("#rolesettings_ddl").html('<option value="0" selected="">Role Settings<\/option>').val("0"))}});$("#btnRoleSettingsSave").click(function(){if(i._reportbuilder.roleSettings!=null){if(i._reportbuilder.roleSettings.length!=0||u){if(i._reportbuilder.roleSettings.length<2)return i._reportbuilder.roleSettings.length==1&&(i.isSingleAppSelected=!0),MessageHelper.Instance().showError("Use installed app field in left navigation of report builder, if report have only one role setting","divRoleSetting_ErrorMessage");if(i._reportbuilder.roleSettings.length==2){let n=$("#InstalledApp_AutoComplete option:selected").val();if(n)return MessageHelper.Instance().showError("Remove installedapp from left navigation of report builder to use multiple report role settings","divRoleSetting_ErrorMessage")}}else return MessageHelper.Instance().showError("Please Select Role Setting","divRoleSetting_ErrorMessage");i._reportbuilder.roleSettings.length>1&&(i.isSingleAppSelected=!1)}else return MessageHelper.Instance().showError("Please Select Role Setting","divRoleSetting_ErrorMessage");$("#"+t).modal("hide");$("#"+t).remove()});i.loadInstalledApps()}loadInstalledApps(){var t=_appsettings.server_url()+"/apis/v4/unibase/platform/apps/InstalledAppAutocomplete";AutoCompleteHelper.getHelper().Create("#rolesettings_installedapps","#hfrolesettings_installedapps",t,function(){var t=$("#hfrolesettings_installedapps").val();n.Platform.Apps.Managers.AppManager.Instance().getAppPermissions(t).then(function(n){var i;$("#rolesettings_ddl").html("");i=n.result;let t=i.find(function(n){return n.SettingName.toLowerCase()=="view"});t&&$("#rolesettings_ddl").append('<option value="'+t.AppPermissionId+'" columnvalue="" selected>'+t.SettingName+"<\/option>").val(t.AppPermissionId).trigger("change")})})}appendRoleSetting(n,t){let i="ulAppName_"+n.replace(/ /g,"_")+"-"+t.replace(/ /g,"_");var r='<div class="border border-1 mt-2 ulDatalistFilters_'+n.replace(" ","_")+t.replace(" ","_")+'" id = "'+i+'"><div class="form-row" id="li_AppName_'+n+t+'"> <div class="col py-2 px-4 lblappname"> '+n+' <\/div> <div class="col py-2 px-4 lblrolesetting"> '+t+' <\/div><div class="col-auto py-2 px-4"><a id = "btnRemove" onclick="Unibase.Platform.Analytics.Reports.ReportRoleSettings.Instance().RemoveRoleSettingExp(\''+n+"','"+t+"','"+i+'\')" class="pull-right" ><i class="fa fa-close text-danger"><\/i><\/a><\/div><\/div><\/div>';$("#RoleSettingExp").append(r)}RemoveRoleSettingExp(n,t,i){var u=this,r;$("#"+i+"").remove();r=u._reportbuilder.roleSettings.findIndex(function(i){return i.AppTitle===n&&i.SettingName===t});r!==-1&&u._reportbuilder.roleSettings.splice(r,1)}static Instance(){return this.instance===undefined&&(this.instance=new u),this.instance}}r.ReportRoleSettings=u})(r=i.Reports||(i.Reports={}))})(i=t.Analytics||(t.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
@@ -369,19 +369,16 @@ var Unibase;
|
||||
MessageHelper.Instance().showError("Please select sub report columns ", "sub_report_error_message");
|
||||
return true;
|
||||
}
|
||||
if (isChart && subreportdata.Filters == '[]') {
|
||||
this._reportBuilder.linkReportId = subreportdata.ChildReportId;
|
||||
}
|
||||
if (subReportArray.length != 0 && typeof (subReportArray) == 'object') {
|
||||
var Index;
|
||||
if (instance.linkreport_aliasname)
|
||||
Index = subReportArray.findIndex(s => s.AliasName == instance.linkreport_aliasname);
|
||||
else
|
||||
Index = subReportArray.findIndex(s => s.RowClick == true);
|
||||
if (Index > -1 && subreportdata.Filters != "[]" && subreportdata.ChildReportId) {
|
||||
if (Index > -1 && subreportdata.ChildReportId) {
|
||||
subReportArray[Index] = subreportdata;
|
||||
}
|
||||
else if (subreportdata.Filters != "[]" && subreportdata.ChildReportId) {
|
||||
else if (subreportdata.ChildReportId) {
|
||||
subReportArray.push(subreportdata);
|
||||
}
|
||||
}
|
||||
@@ -389,7 +386,7 @@ var Unibase;
|
||||
if (subreportdata.ChildReportId)
|
||||
subReportArray.push(subreportdata);
|
||||
}
|
||||
instance._reportBuilder.subreporttabledata = subReportArray;
|
||||
instance._reportBuilder.subreportdata = subReportArray;
|
||||
return false;
|
||||
}
|
||||
saveSubReport_DetailFields() {
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"editreportgroup.js","sourceRoot":"","sources":["editreportgroup.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CAwBhB;AAxBD,WAAU,OAAO;IACb,IAAiB,QAAQ,CAsBxB;IAtBD,WAAiB,QAAQ;QACrB,IAAiB,SAAS,CAoBzB;QApBD,WAAiB,SAAS;YACtB,IAAiB,UAAU,CAkB1B;YAlBD,WAAiB,UAAU;gBACvB,MAAa,eAAgB,SAAQ,SAAA,IAAI,CAAC,aAAa;oBACnD,QAAQ;wBACJ,OAAO,EAAE,CAAC;oBACd,CAAC;oBAED,OAAO;wBACH,OAAO,EAAE,CAAC;oBACd,CAAC;oBAED,IAAI,CAAC,EAAO,EAAE,WAAmB;wBAC7B,IAAI,IAAI,GAAG,ytCAAytC,CAAC;wBACruC,OAAO,IAAI,CAAC;oBAChB,CAAC;oBACD,IAAI,CAAC,EAAO,EAAE,WAAmB,EAAE,QAAkB;oBACrD,CAAC;iBAEJ;gBAhBY,0BAAe,kBAgB3B,CAAA;YACL,CAAC,EAlBgB,UAAU,GAAV,oBAAU,KAAV,oBAAU,QAkB1B;QACL,CAAC,EApBgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QAoBzB;IACL,CAAC,EAtBgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAsBxB;AACL,CAAC,EAxBS,OAAO,KAAP,OAAO,QAwBhB"}
|
||||
@@ -1 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(n){let t;(function(t){let i;(function(t){class i extends n.Core.BaseComponent{cssFiles(){return[]}jsFiles(){return[]}html(){return`<form id="" method="post" class="" data-formuniquekey="" data-validate="parsley"><header class="b-b bg-white modal-header"><strong class="text-dark Title" id="div_FormName">Create Report Group</strong></header><div class="bg-light control-sorting modal-body bg-white" style="overflow-y:auto; height:475px;"><div id="" class="clear bizgaze_FormErrorMessages"></div><div class="section_ReportGroup card"><div class="card-body"><div class="row"><div class="col-sm-6"><div id="" class="floating-label-form-group "><label for="lbl" id="lbl_GroupName">Report Group Name<span class="text-danger" id=""> </span></label><input type="text" id="txt_GroupName" class="form-control value-control required floating-label-control" data-required="true" data-regularexp="" data-validatemsg="" placeholder="Report Group Name " data-placeholder="Enter Report Group Name" data-label="Report Group Name *"></div> <label for="Validation" id="lblValidation_GroupName"></label></div></div></div></div></div><footer class="bg-white modal-footer" id="formFooter"><a href="javascript:;" id="btn_CloseForm" class="btn btn-light btn-sm mr-auto" onclick="">Close</a><a href="javascript:;" id="btn_SaveReportGrp" class="btn btn-primary btn-sm" > Save</a></footer></form>`}load(){}}t.EditReportGroup=i})(i=t.Components||(t.Components={}))})(t=n.Analytics||(n.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
@@ -67,6 +67,7 @@ var Unibase;
|
||||
this.isSubReport = false;
|
||||
this.isCategoriesReport = false;
|
||||
this.isCategoryViewer = false;
|
||||
this.isTable = false;
|
||||
this.desktopMode = Unibase.Themes.Compact.Components.Index.Instance().desktopMode;
|
||||
this.tabMode = Unibase.Themes.Compact.Components.Index.Instance().tabMode;
|
||||
this.layoutIndex = Unibase.Themes.Compact.Components.Index.Instance().layoutIndex;
|
||||
@@ -732,7 +733,7 @@ ${instance.getViewAllHtml(containerid, 'desktop', reportid)}
|
||||
parentcontainerid: "_" + instance.parentContainerId
|
||||
});
|
||||
}
|
||||
if (reportInfo.ReportTypeId == Unibase.Platform.Analytics.Reports.Enums.ReportType.Table) {
|
||||
if (reportInfo.ReportTypeId == Unibase.Platform.Analytics.Reports.Enums.ReportType.Table || rv_instance.isTable) {
|
||||
instance.ReportId = reportid;
|
||||
let name = reportInfo.DisplayName || reportInfo.ReportName;
|
||||
if (reportwidgetdata != null && reportwidgetdata != 0 && containerid.indexOf("_previewreport_") == -1) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long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,MAAM,EAAE,CAAC;wBAElC,CAAC,CAAC,CAAA;oBAEN,CAAC;oBAED,UAAU;wBACN,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,SAAA,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;oBACxE,CAAC;oBAAA,CAAC;oBAGF,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;4BAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,UAAU,EAAE,CAAC;wBACtC,OAAO,IAAI,CAAC,SAAS,CAAC;oBAC1B,CAAC;iBACJ;gBAnNY,qBAAU,aAmNtB,CAAA;YACL,CAAC,EArNgB,UAAU,GAAV,oBAAU,KAAV,oBAAU,QAqN1B;QACL,CAAC,EAvNgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QAuNzB;IACL,CAAC,EAzNgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAyNxB;AACL,CAAC,EA3NS,OAAO,KAAP,OAAO,QA2NhB"}
|
||||
@@ -1,110 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(t){let i;(function(i){let r;(function(r){class u extends r._ReportViewer{constructor(){super();this.linkreportid=0;this.LinkTableData=[];this.LinkReportColumns=[];this.isLinkReport=!1;this.PortletWidgetId=0;this._reportManager=i.Managers.ReportManager.Instance()}cssFiles(){return[]}jsFiles(){return["platform/analytics/components/reportviewer/_reportviewer.js"]}html(t,i){var r=t,u=`<div class="card mb-0 border-0 BindData_`+i+` findcontainer" style="background:none">
|
||||
<div class="card-header py-0 px-5 search-bar-main-wrapper line-loader-container bg-white p-relative" id="ViewerHeader_`+i+`">
|
||||
<div class="card-header-top d-flex align-items-center justify-content-between line-loader-container p-relative">
|
||||
<div class="line-loader"></div>
|
||||
<div id="div_ErrorMessage" class="form-error-message" style="margin-left:-5px; z-index:100;"></div>
|
||||
<div class="card-header-left">
|
||||
<ul class="w-100 d-flex list-inline align-items-center">
|
||||
<li><span class="nav-link biz-highlight-bg-color widget-font" id="WidgetTitleLink_`+i+`" data-toggle="" data-target="" aria-expanded="true">
|
||||
<span id="ReportTitle_`+i+`" class="">Loading...</span>
|
||||
<span id="Reportid_`+i+`" class="Reportid__dynamicfilter hidden"></span>
|
||||
<span id="Reportid_`+i+`" class="Reportid__commonfilter hidden">Loading...</span>
|
||||
</span></li>
|
||||
<li>
|
||||
<a class="nav-link d-none biz-removepadding biz-highlight-bg-color" href="javascript:;" id="Viewer_pagintion_Badge_count`+i+`"> (<span id="Viewer_pagintion_Badge_count_badge`+i+`">0 Records</span>) </a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="card-header-right">
|
||||
${n.Platform.Analytics.Components.ReportViewer.Instance().getViewAllHtml(i,"desktop",r)}
|
||||
<div class="card-search-bar">
|
||||
<div class="search-wrapper">
|
||||
<input class="form-control txt_global_search" id="ListSearch" type="text" placeholder = "Search" autocomplete="off"/>
|
||||
<i class="fa fa-search search-left-icon"></i>
|
||||
<a href="javascript:;" class="filter-icon" id="filter-icon`+i+`" onclick="Unibase.Platform.Analytics.Components.ReportViewer.Instance().loadDynamicFilters(${r},'${i}','.BindData_${i}',event)"><i class="las la-filter"></i></a></div>
|
||||
<span class="search-icon-wrapper">
|
||||
<a class="biz-highlight-bg-color search_icon" id="search_icon`+i+`" onclick="Unibase.Platform.Analytics.Components.ReportViewer.Instance().searchIconClick('${i}')"><i class="fa fa-search" aria-hidden="true"></i></a>
|
||||
<a href="javascript:;" class="search_close_icon biz-text-dark d-none" id="search_close_icon`+i+`" onclick="Unibase.Platform.Analytics.Components.ReportViewer.Instance().closeIconClick('${i}')"><i class="fa fa-close"></i></a></span>
|
||||
</div>
|
||||
<span class="sp_widget_create_`+i+`"></span>
|
||||
<div class="my-auto">
|
||||
<a class="nav-link no-caret biz-highlight-bg-color" href="javascript:;" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="ViewerTypes_`+i+`" class="ViewerTypes_`+i+`" style="display:inline-block;">
|
||||
<i class="fa fa-ellipsis-v" aria-hidden="true"></i>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right ViewerTypes_dropdown" id="dp_`+i+`_viewertypes">
|
||||
<div class="sub-dropdown-menu show-on-hover subdrop_Tempalate_`+i+`"> </div>
|
||||
<div id="Table_View_`+i+`" class="report-view-item">
|
||||
<a href="javascript:;" class="dropdown-item d-flex align-items-center" id="DefaultTable_`+i+`"><input type="radio" name="SetAsDefault">
|
||||
<span class="ml-5">Table View</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="sub-dropdown-menu show-on-hover Viewer_Type">
|
||||
<a href="javascript:;" class="dropdown-toggle dropdown-item no-caret pl-30">New<i class="fa fa-angle-right pull-right mt-5" aria-hidden="true"></i></a>
|
||||
<div class="dropdown-menu open-left-side">
|
||||
<a class="dropdown-item" onclick="Unibase.Platform.Analytics.Components.ReportViewer.Instance().loadViewerSettings(`+r+`,0,null, 'Unibase.Platform.Analytics.Components.TemplateViewerSettings.Instance()' , null, 'Helpers.Size.Auto');;" href="javascript:;">
|
||||
<span>New Template</span>
|
||||
</a>
|
||||
<a class="dropdown-item" onclick="Unibase.Platform.Analytics.Components.ReportViewer.Instance().loadViewerSettings(`+r+`,0,null, 'Unibase.Platform.Analytics.Components.CardViewerSettings.Instance()' , null, Unibase.Platform.Helpers.Size.Auto);" href="javascript:;">
|
||||
<span>New Card</span>
|
||||
</a>
|
||||
<a class="dropdown-item" onclick="Unibase.Platform.Analytics.Components.ReportViewer.Instance().loadViewerSettings(`+r+`,0,null, 'Unibase.Platform.Analytics.Components.CalendarViewerSettings.Instance()' , null, Unibase.Platform.Helpers.Size.Auto);" href="javascript:;">
|
||||
<span>New Calendar</span>
|
||||
</a>
|
||||
<a class="dropdown-item" onclick="Unibase.Platform.Analytics.Components.ReportViewer.Instance().loadViewerSettings(`+r+`,0,null, 'Unibase.Platform.Analytics.Components.MapViewerSettings.Instance()' , null, Unibase.Platform.Helpers.Size.Auto);" href="javascript:;">
|
||||
<span>New Map</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a href="javascript:;" class="dropdown-item pl-30" id="EditTable_`+i+`" onclick="Unibase.Platform.Analytics.Components.ReportViewer.Instance().EditReport(`+r+`,0, {{appinstalledappid}},0,'${i}')" ;>Edit Table</a>
|
||||
<a href="javascript:;" class="dropdown-item pl-30" id="DuplicateTable_`+i+`" onclick="Unibase.Platform.Analytics.Components.ReportViewer.Instance().EditReport(`+r+`,1, {{appinstalledappid}},0,'${i}')" ;>Duplicate</a>
|
||||
<a href="javascript:;" class="dropdown-item pl-30"></a>
|
||||
<a href="javascript:;" class="dropdown-item pl-30" id="DownloadReport_`+i+`" >Download</a>
|
||||
<a href = "javascript:;" class="dropdown-item pl-30" id="reportPermissions_`+i+`" onclick ="Unibase.Platform.Analytics.Components.ReportViewer.Instance().reportPermissions(`+r+`)"> Permissions </a>
|
||||
<a href="javascript:;" class="dropdown-item pl-30 saveViewAs" id="saveViewAs" onclick="Unibase.Platform.Analytics.Components.ReportViewer.Instance().saveViewAs(`+r+`)">Save View As</a>
|
||||
<a href="javascript:;" class="dropdown-item pl-30" id="editFilterOption`+i+`" onclick="Unibase.Platform.Analytics.Components.ReportViewer.Instance().addEditIcons_Filters('`+i+`',`+r+`)">Edit Filter</a>
|
||||
${n.Platform.Analytics.Components.ReportViewer.Instance().getViewAllHtml(i,"mobile",r)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="biz-filter-dropdown dropdown-menu" id="biz-filter-dropdown`+i+`"><div data-simplebar class="filter-dropdown-body" id="filter-dropdown-body`+i+`"><div id="dynamic-filters`+i+`" class="dynamic-filters-list row mx-0"></div></div><div class="filter-dropdown-footer d-none" id="filter-dropdown-footer`+i+`"><a href="javascript:;" class="btn btn-outline-danger Filterbuttons" id="btn_ClearFilter`+i+`"><span class="btn-text mr-5">Clear</span><span class="icon-label"><i class="las la-filter"></i></span></a>
|
||||
<div class="apply-btn-group" id="apply-btn-group`+i+`"><a href="javascript:;" class="btn btn-outline-primary Filterbuttons" id="ApplyGlobalFilter`+i+`">Apply</a><a href="javascript:;" class="btn btn-outline-primary ml-15 save-filter-btn" id="saveViewAs`+i+`" onclick="Unibase.Platform.Analytics.Components.ReportViewer.Instance().saveViewAs(`+r+`)">Save</a></div></div><div class="filter-dropdown-errmessage d-none" id="filter-dropdown-errmessage`+i+`"><div class="alert alert-danger mb-0 text-center" role="alert">No Filters!</div></div></div></div>
|
||||
<div class="card-header-filters d-none" id="card-header-filters`+i+`"><div id="nav-filters" class="nav-filters`+i+`"></div><a href="javascript:;" class="filter-left-icon filter-nav-icon hidden" onclick="Unibase.Platform.Analytics.Components.ReportViewer.Instance().changeFilterScroll(this,'${i}')" data-operation="-"><i class="fa fa-chevron-left"></i></a><a href="javascript:;" class="filter-right-icon filter-nav-icon hidden" onclick="Unibase.Platform.Analytics.Components.ReportViewer.Instance().changeFilterScroll(this,'${i}')" data-operation="+"><i class="fa fa-chevron-right"></i></a></div>
|
||||
</div>
|
||||
<div class="card-body pa-0 border-removed border-white-removed show templateviewer-tableview" id="Viewer_`+i+`"> </div>
|
||||
<div class="footer bg-white" id="ViewerFooter_`+i+`"><button id="btn-link-report-close" class="btn-linkReport-close btn btn-secondary btn-sm mr-auto">Close</button><span id="Viewer_pagintion`+i+`">0 of 0</span></div>
|
||||
</div>`;return`<section id="link-report-section" class="modal-content">
|
||||
<div class="modal-header pa-10" id="linkreport_header">
|
||||
<strong class="modal-title biz-highlight-bg-color">Link other report</strong>
|
||||
</div>
|
||||
<div data-simplebar class="simple-scroll-bar">
|
||||
<div id="divlinkreport_ErrorMessage"></div>
|
||||
<div class="modal-body bg-charcoal-light-5" id="linkreport_modal1">
|
||||
<div class="sub-report-block card" data-select2-id="24">
|
||||
<div data-select2-id="23">
|
||||
<header class="sub-report-head">
|
||||
<h6 class="required">
|
||||
Link Report
|
||||
</h6>
|
||||
</header>
|
||||
<div id="subrpts_div" data-select2-id="subrpts_div" class="">
|
||||
<div class="report-body">
|
||||
<div class="form-group">
|
||||
<div id="divsubrpt_0" data-select2-id="divsubrpt_">
|
||||
<div id="div_Kanban" class="mb-10">
|
||||
<input type="hidden" id="hfReportAutoComplete" value="" />
|
||||
<select class="select_reports form-control custom-select" id="linkreport">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer pa-10" id="linkreport_footer">
|
||||
<button type="button" class="btn btn-sm btn-light mr-auto" id="btnLinkReportClose">Cancel</button>
|
||||
<button type="button" class="btn btn-sm btn-theme" id="btnLinkReportSave">Save</button>
|
||||
</div>
|
||||
</section>`}load(t,i){var r=this,u=_appsettings.server_url()+"/apis/v4/unibase/platform/analytics/reports";AutoCompleteHelper.getHelper().Create("#linkreport","hfReportAutoComplete",u,null);r.linkreportid!=0&&this._reportManager.getReportById(r.linkreportid).then(t=>{t.status==n.Data.Status.Success&&($("#linkreport").empty().append('<option value = "'+t.result.ReportId+'" > '+t.result.ReportName+" <\/option>"),$("#linkreport").val(t.result.ReportId))});$("#btn-link-report-close").click(function(){$("#"+i).modal("hide");$("#"+i).remove();n.Platform.Analytics.Viewers.TableViewer.Instance().IsSelectable=!1;r.isLinkReport=!1;r.InputParameters=[]});$("#biz-filter-dropdown"+i).off().click(function(n){n.stopPropagation()});$("#LinkReportTitle_"+i).text(r.LinkReportName);$("#btnLinkReportClose").click(()=>{$("#"+i).modal("hide"),$("#"+i).remove()});$("#btnLinkReportSave").click(function(){n.Platform.Analytics.Reports.ReportBuilder.Instance().linkReportId=Number($("#linkreport").val());r.linkreportid=Number($("#linkreport").val());$("#"+i).modal("hide");$("#"+i).remove()})}linkreport(){this.navigationHelper.popup(0,"",this,null,t.Helpers.Size.Medium)}static Instance(){return this._instance===undefined&&(this._instance=new u),this._instance}}r.LinkReport=u})(r=i.Components||(i.Components={}))})(i=t.Analytics||(t.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"reportstore.js","sourceRoot":"","sources":["reportstore.ts"],"names":[],"mappings":"AAIA,IAAU,OAAO,CAsFhB;AAtFD,WAAU,OAAO;IACb,IAAiB,QAAQ,CAoFxB;IApFD,WAAiB,QAAQ;QACrB,IAAiB,SAAS,CAkFzB;QAlFD,WAAiB,SAAS;YACtB,IAAiB,UAAU,CAgF1B;YAhFD,WAAiB,UAAU;gBACvB,MAAa,WAAY,SAAQ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa;oBAIhE;wBACI,KAAK,EAAE,CAAC;oBACZ,CAAC;oBALD,QAAQ;wBACJ,OAAO,EAAE,CAAC;oBACd,CAAC;oBAID,OAAO;wBACH,OAAO,CAAC,sCAAsC,EAAE,oDAAoD,EAAE,2DAA2D,EAAE,sDAAsD,EAAE,sDAAsD,CAAC,CAAC;oBACvR,CAAC;oBACD,IAAI,CAAC,EAAO,EAAE,WAAmB,EAAE,QAAkB;wBACjD,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC;4BACjB,CAAC,CAAC,GAAG,GAAG,WAAW,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;4BACnC,CAAC,CAAC,GAAG,GAAG,WAAW,CAAC,CAAC,MAAM,EAAE,CAAC;wBAClC,CAAC,CAAC,CAAC;oBACP,CAAC;oBACD,IAAI,CAAC,EAAE,EAAE,WAAW;wBAChB,IAAI,IAAI,GAAG,g+BAAg+B,CAAC;wBAC5+B,OAAO,IAAI,CAAC;oBAChB,CAAC;oBACD,IAAI,CAAC,WAAW;wBACZ,IAAI,QAAQ,GAAG,IAAI,CAAC;wBACpB,QAAQ,CAAC,eAAe,CAAC,UAAU,CAAC,2DAA2D,EAAE;4BAC7F,QAAQ,CAAC,gBA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CD,WAAU,OAAO;IACb,IAAiB,QAAQ,CAuCxB;IAvCD,WAAiB,QAAQ;QACrB,IAAiB,SAAS,CAqCzB;QArCD,WAAiB,SAAS;YACtB,IAAiB,UAAU,CAmC1B;YAnCD,WAAiB,UAAU;gBACvB,MAAa,YAAa,SAAQ,WAAA,aAAa;oBAC3C;wBACI,KAAK,EAAE,CAAC;oBACZ,CAAC;oBACD,OAAO;wBACH,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;oBAC3B,CAAC;oBAED,QAAQ;wBACJ,OAAO,IAAI,CAAC,SAAS,EAAE,CAAC;oBAC5B,CAAC;oBAED,IAAI,CAAC,EAAE,EAAE,WAAW;wBAEhB,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC;oBACvC,CAAC;oBAED,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,QAAQ;wBAE1B,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAA;oBAEjD,CAAC;oBAOD,MAAM,CAAC,QAAQ;wBAEX,OAAO,IAAI,YAAY,EAAE,CAAC;oBAE9B,CAAC;iBACJ;gBAjCY,uBAAY,eAiCxB,CAAA;YACL,CAAC,EAnCgB,UAAU,GAAV,oBAAU,KAAV,oBAAU,QAmC1B;QACL,CAAC,EArCgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QAqCzB;IACL,CAAC,EAvCgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAuCxB;AACL,CAAC,EAzCS,OAAO,KAAP,OAAO,QAyChB"}
|
||||
@@ -1 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t extends n._ReportViewer{constructor(){super()}jsFiles(){return this._jsFiles()}cssFiles(){return this._cssFiles()}html(n,t){return this._html(n,t)}load(n,t,i){this.loadReport(n,0,t,i)}static Instance(){return new t}}n.ReportViewer=t})(t=n.Components||(n.Components={}))})(t=n.Analytics||(n.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"reportviewerhiddenfields.js","sourceRoot":"","sources":["reportviewerhiddenfields.ts"],"names":[],"mappings":"AACA,IAAU,OAAO,CAgChB;AAhCD,WAAU,OAAO;IACb,IAAiB,QAAQ,CA8BxB;IA9BD,WAAiB,QAAQ;QACrB,IAAiB,SAAS,CA4BzB;QA5BD,WAAiB,SAAS;YACtB,IAAiB,OAAO,CA0BvB;YA1BD,WAAiB,OAAO;gBACpB,MAAa,qBAAqB;oBAkB9B,MAAM,CAAC,QAAQ;wBAEX,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;4BAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,qBAAqB,EAAE,CAAC;wBACjD,OAAO,IAAI,CAAC,SAAS,CAAC;oBAC1B,CAAC;iBACJ;gBAxBY,6BAAqB,wBAwBjC,CAAA;YACL,CAAC,EA1BgB,OAAO,GAAP,iBAAO,KAAP,iBAAO,QA0BvB;QACL,CAAC,EA5BgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QA4BzB;IACL,CAAC,EA9BgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QA8BxB;AACL,CAAC,EAhCS,OAAO,KAAP,OAAO,QAgChB"}
|
||||
-1
@@ -1 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t{static Instance(){return this._instance===undefined&&(this._instance=new t),this._instance}}n.ReportViewerVariables=t})(t=n.Reports||(n.Reports={}))})(t=n.Analytics||(n.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"widgetreportviewer.js","sourceRoot":"","sources":["widgetreportviewer.ts"],"names":[],"mappings":"AAAA,IAAU,OAA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,UAAU,IAAI,IAAI,EAAE;oCAC3C,gBAAgB,CAAC,IAAI,CAAC,uBAAuB,GAAG,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC;iCACrF;gCACD,IAAI,eAAe,CAAC,MAAM,CAAC,gBAAgB,IAAI,IAAI,IAAI,eAAe,CAAC,MAAM,CAAC,gBAAgB,IAAI,EAAE,EAAE;oCAClG,gBAAgB,CAAC,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC,MAAM,CAAC,gBAAgB,CAAC;iCACpF;4BAEL,CAAC,CAAC,CAAC;yBACN;wBACD,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE,gBAAgB,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;oBAC7F,CAAC;oBAGD,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;4BAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,kBAAkB,EAAE,CAAC;wBAC9C,OAAO,IAAI,CAAC,SAAS,CAAC;oBAC1B,CAAC;iBACJ;gBAlEY,6BAAkB,qBAkE9B,CAAA;YACL,CAAC,EApEgB,UAAU,GAAV,oBAAU,KAAV,oBAAU,QAoE1B;QACL,CAAC,EAtEgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QAsEzB;IACL,CAAC,EAxEgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAwExB;AACL,CAAC,EA1ES,OAAO,KAAP,OAAO,QA0EhB"}
|
||||
@@ -1 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(t){let i;(function(i){let r;(function(i){class r extends i._ReportViewer{constructor(){super();this.PortletWidgetId=0;this.widgetmanager=t.Widgets.Managers.WidgetManager.Instance()}jsFiles(){return this._jsFiles()}cssFiles(){return this._cssFiles()}html(n,t){return this._html(n.Data.ReportId,t)}load(t,i,r){var u=t,e,o;i.includes("div_dashboardportletwidget_")?$(".BindData_"+i).parents().closest("div._bizgaze_detail_container").removeClass("hidden"):(e=n.Platform.Helpers.NavigationHelper.ModalContainerIds,o=e[e.length-1],$("#"+o).removeClass("hidden"));$(".Border").find(".cardbody").addClass("bg-white");$(".Border").find(".Templateheader").addClass(" mx-10 my-0");n.Platform.Analytics.Components.ReportViewer.Instance().PortletWidgetId=this.PortletWidgetId;let f;n.Themes.Providers.DetailHelper.installedAppId==0&&(f=$("#"+i).siblings("#hf_PortletWidgetId").val());n.Themes.Providers.DetailHelper.installedAppId!=0&&(f=$("#"+i).parent().siblings("#hf_PortletWidgetId").val());u.Data.PortletWidgetId=f;f!=undefined&&n.Platform.Widgets.Managers.WidgetManager.Instance().getPortletWidget(f).then(function(n){n.result.PortletWidgetHeight!=null&&(u.Data.PortletWidgetHeight=n.result.PortletWidgetHeight);n.result.IsCollapse!=null&&(u.Data.portletWidgetIsCollapse=n.result.IsCollapse);(n.result.PortletWidgetCss!=null||n.result.PortletWidgetCss!="")&&(u.Data.PortletWidgetCss=n.result.PortletWidgetCss)});this.loadReport(u.Data.ReportId,u,i,r)}static Instance(){return this._instance===undefined&&(this._instance=new r),this._instance}}i.WidgetReportviewer=r})(r=i.Components||(i.Components={}))})(i=t.Analytics||(t.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
@@ -507,14 +507,16 @@ var Unibase;
|
||||
instance.subreportResponse = subreportdata;
|
||||
data = subreportdata;
|
||||
if (subreportdata.length > 0) {
|
||||
var subdata = subreportdata.find(s => s.RowClick == true);
|
||||
if (subdata) {
|
||||
if (subdata.RowClick) {
|
||||
var hideIcon = function (cell, formatterParams, onRendered) {
|
||||
$(cell.getElement()).addClass('clickable-cell');
|
||||
return "<i class='fa fa-plus'></i>";
|
||||
};
|
||||
instance._reportViewer.table.addColumn({ formatter: hideIcon, width: 5, title: "", headerSort: false }, true);
|
||||
if (!rv_instance.isTable) {
|
||||
var subdata = subreportdata.find(s => s.RowClick == true);
|
||||
if (subdata) {
|
||||
if (subdata.RowClick) {
|
||||
var hideIcon = function (cell, formatterParams, onRendered) {
|
||||
$(cell.getElement()).addClass('clickable-cell');
|
||||
return "<i class='fa fa-plus'></i>";
|
||||
};
|
||||
instance._reportViewer.table.addColumn({ formatter: hideIcon, width: 5, title: "", headerSort: false }, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
subreportdata.forEach(function (subreport) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"tableviewer.settings.js","sourceRoot":"","sources":["tableviewer.settings.ts"],"names":[],"mappings":""}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-132
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"aggregationtype.js","sourceRoot":"","sources":["aggregationtype.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CAchB;AAdD,WAAU,OAAO;IACb,IAAiB,QAAQ,CAYxB;IAZD,WAAiB,QAAQ;QACrB,IAAiB,SAAS,CAUzB;QAVD,WAAiB,SAAS;YACtB,IAAiB,OAAO,CAQvB;YARD,WAAiB,OAAO;gBACpB,IAAiB,KAAK,CAMrB;gBAND,WAAiB,KAAK;oBAClB,IAAY,eAIX;oBAJD,WAAY,eAAe;wBAEtB,uDAAS,CAAA;wBAAE,mDAAO,CAAA;wBAAE,mDAAO,CAAA;wBAAE,mDAAO,CAAA;wBAAE,mDAAO,CAAA;wBAAE,qDAAQ,CAAA;wBAAE,uDAAO,CAAA;wBAAE,qDAAM,CAAA;wBAAE,mDAAG,CAAA;oBAElF,CAAC,EAJW,eAAe,GAAf,qBAAe,KAAf,qBAAe,QAI1B;gBACL,CAAC,EANgB,KAAK,GAAL,aAAK,KAAL,aAAK,QAMrB;YACL,CAAC,EARgB,OAAO,GAAP,iBAAO,KAAP,iBAAO,QAQvB;QACL,CAAC,EAVgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QAUzB;IACL,CAAC,EAZgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAYxB;AACL,CAAC,EAdS,OAAO,KAAP,OAAO,QAchB"}
|
||||
@@ -1 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){n[n.count=0]="count";n[n.sum=1]="sum";n[n.avg=2]="avg";n[n.max=3]="max";n[n.min=4]="min";n[n.year=5]="year";n[n.month=6]="month";n[n.none=7]="none";n[n.day=8]="day"})(t=n.AggregationType||(n.AggregationType={}))})(t=n.Enums||(n.Enums={}))})(t=n.Reports||(n.Reports={}))})(t=n.Analytics||(n.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"charttype.js","sourceRoot":"","sources":["charttype.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CAchB;AAdD,WAAU,OAAO;IACb,IAAiB,QAAQ,CAYxB;IAZD,WAAiB,QAAQ;QACrB,IAAiB,SAAS,CAUzB;QAVD,WAAiB,SAAS;YACtB,IAAiB,MAAM,CAQtB;YARD,WAAiB,MAAM;gBACnB,IAAiB,KAAK,CAMrB;gBAND,WAAiB,KAAK;oBAClB,IAAY,SAIX;oBAJD,WAAY,SAAS;wBAEjB,uCAAO,CAAA;wBAAE,2DAAiB,CAAA;wBAAE,yCAAQ,CAAA;wBAAE,iDAAY,CAAA;wBAAE,yCAAQ,CAAA;wBAAE,uCAAO,CAAA;wBAAE,qDAAc,CAAA;wBAAE,yEAAwB,CAAA;wBAAE,6CAAU,CAAA;wBAAE,oEAAsB,CAAA;wBAAE,wFAAgC,CAAA;wBAAE,wDAAW,CAAA;oBAEtM,CAAC,EAJW,SAAS,GAAT,eAAS,KAAT,eAAS,QAIpB;gBACL,CAAC,EANgB,KAAK,GAAL,YAAK,KAAL,YAAK,QAMrB;YACL,CAAC,EARgB,MAAM,GAAN,gBAAM,KAAN,gBAAM,QAQtB;QACL,CAAC,EAVgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QAUzB;IACL,CAAC,EAZgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAYxB;AACL,CAAC,EAdS,OAAO,KAAP,OAAO,QAchB"}
|
||||
@@ -1 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){n[n.bar=1]="bar";n[n.horizontalBar=2]="horizontalBar";n[n.area=3]="area";n[n.doughnut=4]="doughnut";n[n.line=5]="line";n[n.pie=6]="pie";n[n.stackedBar=7]="stackedBar";n[n.stackedHorizontalBar=8]="stackedHorizontalBar";n[n.bubble=9]="bubble";n[n.groupedStackedBar=10]="groupedStackedBar";n[n.groupedstackedHorizontalBar=11]="groupedstackedHorizontalBar";n[n.barWithLine=12]="barWithLine"})(t=n.ChartType||(n.ChartType={}))})(t=n.Enums||(n.Enums={}))})(t=n.Charts||(n.Charts={}))})(t=n.Analytics||(n.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"colortype.js","sourceRoot":"","sources":["colortype.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CAYhB;AAZD,WAAU,OAAO;IACb,IAAiB,QAAQ,CAUxB;IAVD,WAAiB,QAAQ;QACrB,IAAiB,SAAS,CAQzB;QARD,WAAiB,SAAS;YAClB,IAAiB,KAAK,CAMrB;YAND,WAAiB,KAAK;gBAClB,IAAY,SAIX;gBAJD,WAAY,SAAS;oBAEjB,6CAAU,CAAA;oBAAC,uCAAO,CAAA;gBAEtB,CAAC,EAJW,SAAS,GAAT,eAAS,KAAT,eAAS,QAIpB;YACL,CAAC,EANgB,KAAK,GAAL,eAAK,KAAL,eAAK,QAMrB;QACT,CAAC,EARgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QAQzB;IACL,CAAC,EAVgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAUxB;AACL,CAAC,EAZS,OAAO,KAAP,OAAO,QAYhB"}
|
||||
@@ -1 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){n[n.column=1]="column";n[n.row=2]="row"})(t=n.ColorType||(n.ColorType={}))})(t=n.Enums||(n.Enums={}))})(t=n.Analytics||(n.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"conjectiveop.js","sourceRoot":"","sources":["conjectiveop.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CAYhB;AAZD,WAAU,OAAO;IACb,IAAiB,QAAQ,CAUxB;IAVD,WAAiB,QAAQ;QACrB,IAAiB,SAAS,CAQzB;QARD,WAAiB,SAAS;YACtB,IAAiB,KAAK,CAMrB;YAND,WAAiB,KAAK;gBAClB,IAAY,YAIX;gBAJD,WAAY,YAAY;oBACpB,+CAAQ,CAAA;oBACR,6CAAG,CAAA;oBACH,2CAAE,CAAA;gBACN,CAAC,EAJW,YAAY,GAAZ,kBAAY,KAAZ,kBAAY,QAIvB;YACL,CAAC,EANgB,KAAK,GAAL,eAAK,KAAL,eAAK,QAMrB;QACL,CAAC,EARgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QAQzB;IACL,CAAC,EAVgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAUxB;AACL,CAAC,EAZS,OAAO,KAAP,OAAO,QAYhB"}
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"controltype.js","sourceRoot":"","sources":["controltype.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CAYhB;AAZD,WAAU,OAAO;IACb,IAAiB,QAAQ,CAUxB;IAVD,WAAiB,QAAQ;QACrB,IAAiB,SAAS,CAQzB;QARD,WAAiB,SAAS;YAClB,IAAiB,KAAK,CAMrB;YAND,WAAiB,KAAK;gBAClB,IAAY,WAIX;gBAJD,WAAY,WAAW;oBAEnB,6DAAgB,CAAA;oBAAE,mDAAW,CAAA;oBAAE,mDAAW,CAAA;oBAAE,+EAAyB,CAAA;oBAAE,2DAAe,CAAA;oBAAE,6CAAQ,CAAA;oBAAC,mDAAW,CAAA;gBAEhH,CAAC,EAJW,WAAW,GAAX,iBAAW,KAAX,iBAAW,QAItB;YACL,CAAC,EANgB,KAAK,GAAL,eAAK,KAAL,eAAK,QAMrB;QACT,CAAC,EARgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QAQzB;IACL,CAAC,EAVgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAUxB;AACL,CAAC,EAZS,OAAO,KAAP,OAAO,QAYhB"}
|
||||
@@ -1 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){n[n.autocomplete=1]="autocomplete";n[n.textbox=2]="textbox";n[n.select2=3]="select2";n[n.cascadingautocomplete=4]="cascadingautocomplete";n[n.select2tree=5]="select2tree";n[n.tree=6]="tree";n[n.formula=7]="formula"})(t=n.ControlType||(n.ControlType={}))})(t=n.Enums||(n.Enums={}))})(t=n.Analytics||(n.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"datatype.js","sourceRoot":"","sources":["datatype.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CAwBhB;AAxBD,WAAU,OAAO;IACb,IAAiB,QAAQ,CAsBxB;IAtBD,WAAiB,QAAQ;QACrB,IAAiB,SAAS,CAoBzB;QApBD,WAAiB,SAAS;YACtB,IAAiB,OAAO,CAkBvB;YAlBD,WAAiB,OAAO;gBACpB,IAAiB,KAAK,CAgBrB;gBAhBD,WAAiB,KAAK;oBAClB,IAAY,QAcX;oBAdD,WAAY,QAAQ;wBAEhB,uCAAM,CAAA;wBACN,2CAAU,CAAA;wBACV,uCAAM,CAAA;wBACN,yCAAO,CAAA;wBACP,yCAAO,CAAA;wBACP,6CAAS,CAAA;wBACT,uCAAM,CAAA;wBACN,+CAAU,CAAA;wBACV,uCAAQ,CAAA;wBACR,6CAAU,CAAA;wBACV,4CAAM,CAAA;oBAEV,CAAC,EAdW,QAAQ,GAAR,cAAQ,KAAR,cAAQ,QAcnB;gBACL,CAAC,EAhBgB,KAAK,GAAL,aAAK,KAAL,aAAK,QAgBrB;YACL,CAAC,EAlBgB,OAAO,GAAP,iBAAO,KAAP,iBAAO,QAkBvB;QACL,CAAC,EApBgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QAoBzB;IACL,CAAC,EAtBgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAsBxB;AACL,CAAC,EAxBS,OAAO,KAAP,OAAO,QAwBhB"}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user