cronapp-framework-js 1.0.5 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/crn-figma-component.components.json +10 -0
- package/components/crn-wizard.components.json +0 -1
- package/dist/js/app.js +1 -1
- package/dist/js/controllers.js +1 -1
- package/dist/js/directives.js +1 -1
- package/dist/js/upload.service.js +1 -1
- package/img/cron-icon/crn-figma-component.svg +5 -0
- package/js/app.js +381 -271
- package/js/controllers.js +208 -189
- package/js/directives.js +4932 -4927
- package/js/upload.service.js +2 -2
- package/package.json +2 -2
- package/components/crn-calendar.components.json +0 -69
- package/components/crn-chart.components.json +0 -33
- package/components/crn-cron-scheduler.components.json +0 -53
- package/components/crn-dynamic-file.components.json +0 -188
|
@@ -1 +1 @@
|
|
|
1
|
-
app,angular.module("upload.services",[]).service("UploadService",["$http","$compile","$modal","Upload",function(e,o,t,a){var n=$("body");angular.element(n.get(0)).scope(),this.ensureProps=e=>(!e.filter||(e.filter=e.filter.replace(/\s/g,"")),e),this.upload=function(e){let o=this.ensureProps(e);t.open({templateUrl:"node_modules/cronapp-framework-js/components/upload/upload.html",controller:"UploadController",resolve:{data:function(){return o}}})}.bind(this)}]),angular.module("custom.controllers").controller("UploadController",["$scope","$http","$translate","$stateParams","$location","$
|
|
1
|
+
app,angular.module("upload.services",[]).service("UploadService",["$http","$compile","$modal","Upload",function(e,o,t,a){var n=$("body");angular.element(n.get(0)).scope(),this.ensureProps=e=>(!e.filter||(e.filter=e.filter.replace(/\s/g,"")),e),this.upload=function(e){let o=this.ensureProps(e);t.open({templateUrl:"node_modules/cronapp-framework-js/components/upload/upload.html",controller:"UploadController",resolve:{data:function(){return o}}})}.bind(this)}]),angular.module("custom.controllers").controller("UploadController",["$scope","$http","$translate","$stateParams","$location","$modalInstance","data",function(e,o,t,a,n,l,r){app.registerEventsCronapi(e,t),e.params=a,e.$http=o;var i=n.search();for(var s in i)i.hasOwnProperty(s)&&(e.params[s]=i[s]);e.files=[],e.uploading=!1,e.uploaded=!0,e.progress=0,e.data=r,e.message=t.instant("Upload.oneFile"),"true"==r.multiple&&(e.message=t.instant("Upload.multipleFile")),r.description&&(e.message=r.description),e.safeApply=safeApply,e.uploadFile=function(a){var n=e.data.scope,l="api/cronapi/upload/"+r.id,i=new FormData;if(0==a.length)this.Notification.error(function(e){var o=[].slice.call(arguments,1),t=0;return e.replace(/%s/g,(function(){return o[t++]}))}(t.instant("Upload.errorValidation"),r.maxSize,r.filter));else{for(var s=0;s<a.length;s++)i.append("file",a[s]),console.log(a[s].$valid);var p=JSON.parse(localStorage.getItem("_u"));let t=window.isUsingCookie()?{"Content-Type":void 0}:{"Content-Type":void 0,"X-AUTH-TOKEN":p?p.token:""};this.$promise=o({method:"POST",url:(window.hostApp||"")+l,data:i,headers:t,onProgress:function(o){this.safeApply((function(){if(o.lengthComputable){var t=o.loaded/o.total*100|0;e.progress=t}e.uploading=!0,console.log(t)}))}.bind(this)}).then(function(o,t,a,l){n.cronapi.evalInContext(JSON.stringify(o)).then((o=>{e.uploaded=!0,e.uploading=!1,e.close()}))}.bind(this)).catch(function(o,t,a){let n=o.error;o&&o.data&&(n=o.data.error),this.Notification.error(n),e.uploading=!1,e.close()}.bind(this))}}.bind(e),e.close=function(){l.dismiss("cancel")}}]);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg viewBox="0 0 417 600" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
3
|
+
d="M50.969 206.036C20.285 186.042 0 151.426 0 112.071C0 50.176 50.176 0 112.071 0H304.085C365.98 0 416.156 50.176 416.156 112.071C416.156 151.426 395.872 186.042 365.187 206.036C395.872 226.03 416.156 260.647 416.156 300.001C416.156 361.896 365.98 412.072 304.085 412.072H302.042C272.784 412.072 246.144 400.86 226.185 382.498V486.907C226.185 549.494 174.911 600 112.579 600C50.811 600 0 549.951 0 487.929C0 448.575 20.284 413.959 50.967 393.965C20.284 373.971 0 339.355 0 300.001C0 260.647 20.285 226.03 50.969 206.036ZM226.185 300.001C226.185 341.896 260.148 375.858 302.042 375.858H304.085C345.98 375.858 379.942 341.896 379.942 300.001C379.942 258.106 345.98 224.144 304.085 224.144H302.042C260.148 224.144 226.185 258.106 226.185 300.001ZM189.971 224.144H112.071C70.176 224.144 36.214 258.106 36.214 300.001C36.214 341.811 70.039 375.72 111.816 375.858H111.935H189.971V224.144ZM112.071 412.072C111.986 412.072 111.901 412.072 111.816 412.072C70.039 412.209 36.214 446.119 36.214 487.929C36.214 529.697 70.557 563.786 112.579 563.786C155.165 563.786 189.971 529.24 189.971 486.907V412.072H112.071ZM189.971 187.928H112.071C70.176 187.928 36.214 153.966 36.214 112.071C36.214 70.176 70.176 36.214 112.071 36.214H189.971V187.928ZM304.085 187.928H226.185V36.214H304.085C345.98 36.214 379.942 70.176 379.942 112.071C379.942 153.966 345.98 187.928 304.085 187.928Z"
|
|
4
|
+
fill="white"/>
|
|
5
|
+
</svg>
|