dealpostools 2.6.0 → 2.6.1
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/package.json +1 -1
- package/tools/696.248cbc0225ea9cd3.js +1 -0
- package/tools/818.1fcb1e8d81b767fa.js +1 -0
- package/tools/index.html +3 -3
- package/tools/{main.844c6435e3d44d42.js → main.1b0b9ea2a30de05a.js} +1 -1
- package/tools/{runtime.73bddedc73814251.js → runtime.18627d895e98fe5b.js} +1 -1
- package/tools/287.7fdaa5733560eed5.js +0 -1
- package/tools/696.26c92d81bc55a552.js +0 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"dealpostools","version":"2.6.
|
|
1
|
+
{"name":"dealpostools","version":"2.6.1"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[696],{5696:(F,C,i)=>{i.r(C),i.d(C,{CssEditorComponent:()=>b});var d=i(6814),e=i(5879),h=i(4387),u=i(4807),a=i(6223),m=i(8017);let p=(()=>{var n;class r{constructor(){this.domain=localStorage.getItem("Domain"),this.httpService=(0,e.f3M)(m.O)}saveCssFile(t,s){return this.httpService.post("/API/UploadStyles/Submit",{Domain:this.domain,FileName:t,RequestBody:s})}getCssFile(t,s){return this.httpService.post(`https://${this.domain}/API/tools/Advanced/FileTextEditor`,{Filter:{Label:t,Url:s}})}}return(n=r).\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),r})();var f=i(9397),S=i(7081),g=i(2425);function v(n,r){1&n&&e.GkF(0)}let b=(()=>{var n;class r{constructor(){this.cssEditorService=(0,e.f3M)(p),this.toastr=(0,e.f3M)(g._W),this.editedCssContent=(0,e.tdS)(""),this.cssContentSource=(0,e.tdS)(""),this.cssOptions=(0,e.Flj)(()=>[{label:"PaperSizeA4_custom.css",url:"Styles\\Print\\PaperSizeA4_custom.css",backupUrl:"StylesB\\Print\\PaperSizeA4_custom.css"},{label:"PaperSize8cm_custom.css",url:"Styles\\Print\\PaperSize8cm_custom.css",backupUrl:"StylesB\\Print\\PaperSize8cm_custom.css"}]),this.filterSelectedCss=(0,e.tdS)({label:this.cssOptions()[0].label,url:`${this.cssOptions()[0].url}&${this.cssOptions()[0].backupUrl}`})}ngOnInit(){this.initGetCssFile()}initGetCssFile(){this.cssFileContent$=this.cssEditorService.getCssFile(this.filterSelectedCss().label,this.filterSelectedCss().url).pipe((0,f.b)(t=>{this.editedCssContent.set(t.Text),this.cssContentSource.set(t.Text)}),(0,S.d)(1))}onCssChange(t){this.filterSelectedCss.update(()=>({label:t.label,url:`${t.url}&${t.backupUrl}`})),this.initGetCssFile()}onSaveCssFile(){if(this.cssContentSource()===this.editedCssContent())return void this.toastr.info("No changes detected","Info");const t=this.filterSelectedCss().label,s=this.editedCssContent();this.cssEditorService.saveCssFile(t,s).subscribe(()=>{this.toastr.success("File saved successfully","Success"),this.initGetCssFile()})}}return(n=r).\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-css-editor"]],standalone:!0,features:[e._Bn([p]),e.jDz],decls:23,vars:15,consts:[["Title","Css Editor",3,"hideSearchBox","hideSearchDropdown"],["type","button",1,"btn","btn-success","shadow","rounded",3,"click"],[1,"container-fluid"],[1,"d-none","d-sm-block"],[1,"mt-5","d-flex","align-items-center","w-100"],[1,"d-flex","align-items-center","me-4"],["bindLabel","label","bindValue","label","placeholder","Choose css file",1,"ms-5",2,"width","200px",3,"clearable","items","ngModel","change"],[2,"margin-top","6px"],[4,"ngIf"],[2,"width","100%","height","440px","font-size","15px","font-family","Cambria",3,"ngModel","ngModelChange"],[1,"me-3"],["target","_blank",1,"fw-normal",3,"href"]],template:function(t,s){if(1&t&&(e.TgZ(0,"mainpanel",0)(1,"actions")(2,"button",1),e.NdJ("click",function(){return s.onSaveCssFile()}),e._uU(3,"Save"),e.qZA()(),e.TgZ(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"label"),e._uU(10,"File Name"),e.qZA(),e.TgZ(11,"ng-select",6),e.NdJ("change",function(o){return s.onCssChange(o)}),e.qZA()()(),e.TgZ(12,"div",7),e.YNc(13,v,1,0,"ng-container",8),e.ALo(14,"async"),e.TgZ(15,"textarea",9),e.NdJ("ngModelChange",function(o){return s.editedCssContent.set(o)}),e.qZA(),e.TgZ(16,"h6")(17,"span",10),e._uU(18,"Css Url:"),e.qZA(),e.TgZ(19,"a",11),e.ALo(20,"async"),e._uU(21),e.ALo(22,"async"),e.qZA()()()()()()()),2&t){let l,o;e.Q6J("hideSearchBox",!0)("hideSearchDropdown",!0),e.xp6(11),e.Q6J("clearable",!1)("items",s.cssOptions())("ngModel",s.filterSelectedCss().label),e.xp6(2),e.Q6J("ngIf",e.lcZ(14,9,s.cssFileContent$)),e.xp6(2),e.Q6J("ngModel",s.editedCssContent()),e.xp6(4),e.Q6J("href",null==(l=e.lcZ(20,11,s.cssFileContent$))?null:l.Url,e.LSH),e.xp6(2),e.Oqu(null==(o=e.lcZ(22,13,s.cssFileContent$))?null:o.Url)}},dependencies:[d.ez,d.O5,d.Ov,h.R,h.p,u.A0,u.w9,a.u5,a.Fj,a.JJ,a.On]}),r})()}}]);
|