change
This commit is contained in:
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":"filedragndrop.settings.js","sourceRoot":"","sources":["filedragndrop.settings.ts"],"names":[],"mappings":"AAIA,IAAU,OAAO,CAyFhB;AAzFD,WAAU,OAAO;IACb,IAAiB,KAAK,CAuFrB;IAvFD,WAAiB,KAAK;QAClB,IAAiB,QAAQ,CAqFxB;QArFD,WAAiB,QAAQ;YACrB,MAAa,sBAAsB;gBAE/B,eAAe;oBACX,OAAO,EAAE,CAAC;gBACd,CAAC;gBACD,eAAe,CAAC,eAAoB;oBAChC,OAAO,EAAE,CAAC;gBACd,CAAC;gBACD,eAAe,CAAC,eAAoB;oBAChC,OAAO,EAAE,CAAC;gBACd,CAAC;gBACD,yBAAyB,CAAC,SAAS;oBAC/B,IAAI,IAAI,GAAG,oBAAoB;wBAC3B,qCAAqC;wBACrC,kEAAkE;wBAClE,22BAA22B;wBAC32B,4bAA4b;wBAC5b,kBAAkB,CAAC;oBACvB,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;oBACxB,CAAC,CAAC,iBAAiB,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;gBAC/C,CAAC;gBACD,oBAAoB,CAAC,IAAgB;oBACjC,IAAI,gBAAgB,GAA6B,IAAI,CAAC,gBAAgB,CAAC;oBACvE,IAAI,gBAAgB,IAAI,IAAI,IAAI,gBAAgB,IAAI,SAAS,EAAE;wBAC3D,IAAI,CAAC,GAAG,CAAC,CAAC;wBACV,CAAC,CAAC,4BAA4B,CAAC,CAAC,IAAI,CAAC;4BACjC,IAAI,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;4BACrE,IAAI,WAAW,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAA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AAS,CAAC;gBAC1B,CAAC;aACJ;YAnFY,+BAAsB,yBAmFlC,CAAA;QACL,CAAC,EArFgB,QAAQ,GAAR,cAAQ,KAAR,cAAQ,QAqFxB;IACL,CAAC,EAvFgB,KAAK,GAAL,aAAK,KAAL,aAAK,QAuFrB;AACL,CAAC,EAzFS,OAAO,KAAP,OAAO,QAyFhB"}
|
||||
@@ -1 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(n){let t;(function(n){class t{loadSettingHtml(){return``}bindControlData(){return""}SaveControlData(){return""}loadControlPropertiesHtml(n){var t=`<section class="">`+`<div class="card PropertySettings">`+`<div class="card-header"><h6><b>Property Settings</b></h6></div>`+`<div class="card-body" id="divPropSetting"><div class="row"><div class="col-sm-6 Controlproperties-Element" data-propertysettingid="0" data-controlpropertyid="0" data-controlpropertyname="IsMultiple"><label for="IsMultiple" style="margin-top:19px"><b>IsMultiple</b></label><label id="lblIsMultiple" class="switch m-t form-inline pull-right mt-10" style="color:grey"><input id="IsMultiple" data-group="IsRequired" type="checkbox"><span></span></label></div><div class="col-sm-6 Controlproperties-Element" data-propertysettingid="0" data-controlpropertyid="0" data-controlpropertyname="IsFileControl"><label for="IsFileControl" style="margin-top:19px"><b>IsFileControl</b></label><label id="lblIsFileControl" class="switch m-t form-inline pull-right mt-10" style="color:grey"><input id="IsFileControl" data-group="IsRequired" type="checkbox"><span></span></label></div></div>`+`<div class="row" id="divValidate"><div class="col-sm-6 Controlproperties-Element" data-propertysettingid="0" data-controlpropertyid="0" data-controlpropertyname="IsValidate"><label for="IsValidate" style="margin-top:19px"><b>IsValidate</b></label><label id="lblIsValidate" class="switch m-t form-inline pull-right mt-10" style="color:grey"><input id="IsValidate" data-group="IsRequired" type="checkbox"><span></span></label></div></div></div>`+`</div></section>`;$(n).html(t);$("#divPropSetting").removeClass("hidden")}bindPropertySettings(n){var t=n.PropertySettings,i;t!=null&&t!=undefined&&(i=0,$(".Controlproperties-Element").each(function(){var r=$(this).children().find("input").attr("id"),n=t.find(n=>n.ControlPropertyName==r);$(this).attr("data-controlpropertyid",n.ControlPropertyId);$(this).attr("data-controlpropertyname",n.ControlPropertyName);$(this).attr("data-propertysettingid",n.PropertySettingId);r=="IsMultiple"&&(n.ControlPropertyValue=="true"?$("#IsMultiple").prop("checked",!0):$("#IsMultiple").prop("checked",!1));r=="IsFileControl"&&(n.ControlPropertyValue=="true"?$("#IsFileControl").prop("checked",!0):$("#IsFileControl").prop("checked",!1));r=="IsValidate"&&(n.ControlPropertyValue=="true"?$("#IsValidate").prop("checked",!0):$("#IsValidate").prop("checked",!1));i+=1}))}savePropertySettings(n){var i=n.PropertySettings,t=[];return $(".Controlproperties-Element").each(function(){var i={FormPropertyId:isNaN(Number(n.FormPropertyId))?0:Number(n.FormPropertyId),ControlPropertyId:Number($(this).attr("data-controlpropertyid")),ControlPropertyValue:$(this).children().find("input").prop("checked").toString(),ControlPropertyName:$(this).attr("data-controlpropertyname"),ControlId:isNaN(Number(n.ControlId))?0:Number(n.ControlId),PropertySettingId:Number($(this).attr("data-propertysettingid"))};t.push(i)}),t}static Instance(){return this._instance===undefined&&(this._instance=new t),this._instance}}n.FileDragNDrop_Settings=t})(t=n.Controls||(n.Controls={}))})(t=n.Forms||(n.Forms={}))})(Unibase||(Unibase={}));
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(t){let i;(function(i){let r;(function(i){class r extends t.Core.BaseComponent{previewDocument(t,i){if(i=="disabled")return!1;var r=this;r.fileCacheHelper.loadJsFiles(["platform/files/managers/filemanager.js","platform/core/helpers/mobile/mobilehelper.js","platform/core/helpers/mobile/interfaces/imobilehelper.js","platform/core/helpers/mobile/android/androidhelper.js"],function(){isMobileApp()?n.Platform.Files.Managers.FileManager.Instance().getDocumentFile(t).then(function(t){var i=t.result.DocumentFilePath;i!=null&&i!=undefined&&i!=""&&(i=i.replace("file:///",""),i=i.replace(window.location.origin+"/",""),n.Platform.Helpers.MobileHelper.Instance().getMobileFilePath(t,i,n.Platform.Forms.Components.DocumentFiles.Instance().MobileFilePathPreviewCallBack))}):n.Platform.Files.Managers.FileManager.Instance().getDocumentBase64File(t).then(function(n){for(var t=n.result,r=atob(t.FileData),u=new Array(r.length),i=0;i<r.length;i++)u[i]=r.charCodeAt(i);var f=new Uint8Array(u),e=new Blob([f],{type:t.DocumentGroup+"/"+t.FileType+";base64"}),o=URL.createObjectURL(e),s=t.DocumentFileName+"."+t.FileType;window.open(o,s,"width=600,height=600,scrollbars=yes")})})}downloadDocument(t){var i=this;i.fileCacheHelper.loadJsFiles(["platform/files/managers/filemanager.js","platform/core/helpers/mobile/mobilehelper.js","platform/core/helpers/mobile/interfaces/imobilehelper.js","platform/core/helpers/mobile/android/androidhelper.js"],function(){isMobileApp()?n.Platform.Files.Managers.FileManager.Instance().getDocumentFile(t).then(function(t){var i=t.result.DocumentFilePath;i!=null&&i!=undefined&&i!=""&&(i=i.replace("file:///",""),i=i.replace(window.location.origin+"/",""),n.Platform.Helpers.MobileHelper.Instance().getMobileFilePath(t,i,n.Platform.Forms.Components.DocumentFiles.Instance().MobileFilePathDownloadCallBack))}):n.Platform.Files.Managers.FileManager.Instance().getDocumentBase64File(t).then(function(n){var t=document.createElement("a");t.href="data:"+n.result.FileType+";base64,"+n.result.FileData;t.download=n.result.DocumentFileName+"."+n.result.FileType;t.click()})})}MobileFilePathDownloadCallBack(n,t,i){var u,e,f,r;i.replace(/^\//,"");t=t.replace(i+"/","");u=t.split("~/");e=u[u.length-1];t=e;f=_appsettings.server_url();t.includes(f)||(t=f+"/"+t);r=document.createElement("a");r.href=t;r.download=n.result.DocumentFileName+"."+n.result.FileType;r.click()}MobileFilePathPreviewCallBack(t,i,r){var u,e,f;r.replace(/^\//,"");i=i.replace(r+"/","");u=i.split("~/");e=u[u.length-1];i=e;f=_appsettings.server_url();i.includes(f)||(i=f+"/"+i);n.Platform.Helpers.MobileHelper.Instance().openNewWindow(i)}deleteDocumentFile(t){var i=this;bootbox.confirm("Do you want to Delete this File ?",function(r){r==!0&&i.fileCacheHelper.loadJsFile("platform/files/managers/filemanager.js",function(){n.Platform.Files.Managers.FileManager.Instance().deleteDocumentFile(t).then(function(){var t,u,r;MessageHelper.Instance().showSuccess("Document File Deleted Successfully.","");t=n.Platform.Helpers.NavigationHelper.Instance().getLastContainerId();t!=null&&t!=undefined&&t!=""?(u=t.toString().includes("_viewall"),u?(r=$("#"+t).find(".report-refresh-btn"),r.length>0&&r.click()):i.reloadPortlet()):i.reloadPortlet()})})})}reloadPortlet(){var i=n.Themes.Providers.DetailHelper.installedAppId,u="#"+n.Platform.Helpers.NavigationHelper.Instance().getLastContainerId(),t=0,r=n.Themes.Providers.Detail_Settings.Instance().ActivePortlets.findIndex(n=>n.InstalledAppId==i);r>-1&&(t=n.Themes.Providers.Detail_Settings.Instance().ActivePortlets[r].ActivePortletId);t==0&&(t=Number($("#hf_PortletId").val()));n.Themes.Compact.Components.Details.Instance().loadWidgets(i,t,u)}static Instance(){return this.instance===undefined&&(this.instance=new r),this.instance}}i.DocumentFiles=r})(r=i.Components||(i.Components={}))})(i=t.Forms||(t.Forms={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
Reference in New Issue
Block a user