This commit is contained in:
2023-03-20 16:20:33 +00:00
parent 514c3ac3f6
commit 8c7d6421f5
2288 changed files with 712 additions and 73769 deletions
@@ -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,OAAO,GAAG,EAAE,CAAC;wBACjB,IAAI,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,EAAE;4BACxE,OAAO,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,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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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seComponent{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
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 +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
@@ -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