dealpostools 2.5.9 → 2.6.0
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/287.7fdaa5733560eed5.js +1 -0
- package/tools/572.101a54bef6e1f498.js +1 -0
- package/tools/792.b0502d19fc7b3923.js +1 -0
- package/tools/805.08a569c3acbec885.js +1 -0
- package/tools/index.html +2 -2
- package/tools/main.844c6435e3d44d42.js +1 -0
- package/tools/runtime.73bddedc73814251.js +1 -0
- package/tools/287.98d506db68c6323f.js +0 -1
- package/tools/572.fb3de77dc7ebc07e.js +0 -1
- package/tools/805.b62aa060fe3bcd55.js +0 -1
- package/tools/main.ef77010fb29e9dc6.js +0 -1
- package/tools/runtime.65233073498d2e49.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[572],{4572:(Q,u,a)=>{a.r(u),a.d(u,{ProductComponent:()=>L});var g=a(6814),t=a(5879),h=a(4387),P=a(2596),l=a(7081),Z=a(7398),y=a(2181),S=a(6328),f=a(9887),C=a(5986),p=a(6223),T=a(2425),A=a(7700),I=a(3988),$=a(6493),M=a(8745),N=a(4664),F=a(8017),m=a(8813),v=a(2787);let x=(()=>{var r;class s{constructor(){this.domain=`https://${localStorage.getItem("Domain")}`,this.http=(0,t.f3M)(F.O),this.migrateConfigService=(0,t.f3M)(v.o)}getImageUrls$(n={PageNumber:1,RowCount:100}){return this.migrateConfigService.getPageConfig$().pipe((0,N.w)(e=>(n.RowCount=e.RowCount,this.http.post(`${this.domain}${m.l.getProductImageMigrate}`,n))))}migrateSelectedImage(n){const e=`${localStorage.getItem("Domain")}`,o=n.map(i=>i.URL);return this.http.post(m.l.migrateProductImages,{Selected:o,Host:e})}migrateAsync(n){const o={...n,Host:`${localStorage.getItem("Domain")}`};return this.http.post(m.l.migrateProductImagePagination,o)}}return(r=s).\u0275fac=function(n){return new(n||r)},r.\u0275prov=t.Yz7({token:r,factory:r.\u0275fac}),s})();function U(r,s){if(1&r){const c=t.EpF();t.ynx(0),t.TgZ(1,"button",15),t.NdJ("click",function(){const o=t.CHM(c).ngIf,i=t.oxw();return t.KtG(i.onMigrateAsync(o))}),t._uU(2," Migrate "),t.qZA(),t.BQk()}}function b(r,s){if(1&r){const c=t.EpF();t.ynx(0),t.TgZ(1,"mat-checkbox",16),t.NdJ("change",function(e){const i=t.CHM(c).ngIf,d=t.oxw();return t.KtG(d.onSelectAll(e,i))}),t.qZA(),t.BQk()}}function J(r,s){if(1&r){const c=t.EpF();t.ynx(0),t.TgZ(1,"tr")(2,"td")(3,"mat-checkbox",17),t.NdJ("ngModelChange",function(e){const i=t.CHM(c).$implicit;return t.KtG(i.selected=e)})("ngModelChange",function(){const o=t.CHM(c).ngForOf,i=t.oxw();return t.KtG(i.onSelect(o))}),t.qZA()(),t.TgZ(4,"td")(5,"a",18),t._uU(6),t.qZA()(),t.TgZ(7,"td"),t._uU(8),t.ALo(9,"date"),t.qZA()(),t.BQk()}if(2&r){const c=s.$implicit;t.xp6(3),t.Q6J("ngModel",c.selected),t.xp6(2),t.Q6J("href",c.URL,t.LSH),t.xp6(1),t.hij(" ",c.URL," "),t.xp6(2),t.hij(" ",t.xi3(9,4,c.Date,"dd MMM yyyy")," ")}}let L=(()=>{var r;class s{constructor(){this.productMigrate=(0,t.f3M)(x),this.productMigrate$=this.productMigrate.getImageUrls$().pipe((0,l.d)(1)),this.migrateConfig=(0,t.f3M)(v.o),this.toastr=(0,t.f3M)(T._W),this.dialog=(0,t.f3M)(A.uw),this.dateFilter={},this.totalSelected=(0,t.tdS)(0),this.rowCount$=this.migrateConfig.pageConfig$.pipe((0,Z.U)(n=>n.RowCount),(0,l.d)(1)),this.pageNumber=(0,t.tdS)(1)}onSelectAll(n,e){e=e.map(o=>(o.selected=n.checked,o)),this.totalSelected.set(e.filter(o=>o.selected)?.length)}onSelect(n){this.totalSelected.set(n.filter(e=>e.selected)?.length)}onMigrateAsync(n){let e=n.Data.filter(o=>o.selected);this.dialog.open(I.j,{data:{showDateFilter:!1,selectedImage:this.totalSelected()}}).afterClosed().pipe((0,y.h)(o=>$.g.IsNotEmpty(o)),(0,S.b)(o=>o.usePaginationFilter?this.productMigrate.migrateAsync({PageNumber:o.pageNumber,RowCount:o.rowCount}):this.productMigrate.migrateSelectedImage(e))).subscribe(o=>{this.totalSelected.set(0),this.toastr.warning(o.message,"Migrate In Progress",{toastClass:"ngx-toastr toast-waiting"}),this.productMigrate$=this.productMigrate.getImageUrls$().pipe((0,l.d)(1))})}onFilter(){const n={PageNumber:this.pageNumber(),From:this.dateFilter.from,To:this.dateFilter.to};this.productMigrate$=this.productMigrate.getImageUrls$(n).pipe((0,l.d)(1))}onPagination(n){this.pageNumber.update(()=>n.pageIndex+1);const e={PageNumber:this.pageNumber()};this.productMigrate$=this.productMigrate.getImageUrls$(e).pipe((0,l.d)(1))}}return(r=s).\u0275fac=function(n){return new(n||r)},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-product-image"]],standalone:!0,features:[t._Bn([x]),t.jDz],decls:30,vars:18,consts:[["Title","Migrate Product Image",3,"hideSearchBox","onSubmit"],[1,"d-flex"],["container",""],[1,"mb-2"],[3,"date","dateChange"],[4,"ngIf"],[1,"container-fluid"],[1,"row"],[1,"col-12"],[1,"table","mt-8"],[1,"thead-light"],[2,"width","5px"],[2,"width","120px"],[4,"ngFor","ngForOf"],[3,"length","pageSize","pageIndex","page"],["type","button",1,"btn","btn-success","shadow","rounded","me-3",3,"click"],["color","primary",3,"change"],["color","primary",3,"ngModel","ngModelChange"],["target","_blank",1,"text-break",3,"href"]],template:function(n,e){if(1&n&&(t.TgZ(0,"mainpanel",0),t.NdJ("onSubmit",function(){return e.onFilter()}),t.TgZ(1,"filters")(2,"div",1)(3,"div",2)(4,"h6",3),t._uU(5,"From - To"),t.qZA(),t.TgZ(6,"app-datepicker-range",4),t.NdJ("dateChange",function(i){return e.dateFilter=i}),t.qZA()()()(),t.TgZ(7,"actions"),t.YNc(8,U,3,0,"ng-container",5),t.ALo(9,"async"),t.qZA(),t.TgZ(10,"content")(11,"div",6)(12,"div",7)(13,"div",8)(14,"table",9)(15,"thead",10)(16,"tr")(17,"th",11),t.YNc(18,b,2,0,"ng-container",5),t.ALo(19,"async"),t.qZA(),t.TgZ(20,"th"),t._uU(21,"Old URL"),t.qZA(),t.TgZ(22,"th",12),t._uU(23,"Created"),t.qZA()()(),t.TgZ(24,"tbody"),t.YNc(25,J,10,7,"ng-container",13),t.ALo(26,"async"),t.qZA()(),t.TgZ(27,"mat-paginator",14),t.NdJ("page",function(i){return e.onPagination(i)}),t.ALo(28,"async"),t.ALo(29,"async"),t.qZA()()()()()()),2&n){let o,i,d;t.Q6J("hideSearchBox",!0),t.xp6(6),t.Q6J("date",e.dateFilter),t.xp6(2),t.Q6J("ngIf",t.lcZ(9,8,e.productMigrate$)),t.xp6(10),t.Q6J("ngIf",null==(o=t.lcZ(19,10,e.productMigrate$))?null:o.Data),t.xp6(7),t.Q6J("ngForOf",null==(i=t.lcZ(26,12,e.productMigrate$))?null:i.Data),t.xp6(2),t.Q6J("length",null==(d=t.lcZ(28,14,e.productMigrate$))?null:d.Count)("pageSize",t.lcZ(29,16,e.rowCount$))("pageIndex",0==e.pageNumber()?0:e.pageNumber()-1)}},dependencies:[g.ez,g.sg,g.O5,g.Ov,g.uU,h.R,h.p,P.AV,f.TU,f.NW,C.p9,C.oG,p.u5,p.JJ,p.On,M.C8,M.Pg]}),s})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[805],{3805:(c,r,t)=>{t.r(r),t.d(r,{MigrateComponent:()=>s});var m=t(6814),u=t(8525),l=t(8184),e=t(5879);let s=(()=>{var a;class o{constructor(){this.productTabs=[{Title:"Product",Url:"/menu/migrate/product"},{Title:"Receipt Logo",Url:"/menu/migrate/receipt-logo"},{Title:"Invoice Payment",Url:"/menu/migrate/invoice-payment"},{Title:"Bill Payment",Url:"/menu/migrate/bill-payment"},{Title:"Customer",Url:"/menu/migrate/customer-image"},{Title:"Supplier",Url:"/menu/migrate/supplier-image"},{Title:"Prepaid Package",Url:"/menu/migrate/prepaid-package"},{Title:"Customer Display",Url:"/menu/migrate/customer-display"},{Title:"Customer Feedback",Url:"/menu/migrate/customer-feedback"}]}}return(a=o).\u0275fac=function(n){return new(n||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-migrate"]],standalone:!0,features:[e.jDz],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(n,p){1&n&&(e.TgZ(0,"nav",0)(1,"div",1)(2,"div"),e._UZ(3,"nav-tab",2),e.qZA()()(),e._UZ(4,"router-outlet")),2&n&&(e.xp6(3),e.Q6J("Tabs",p.productTabs))},dependencies:[m.ez,u.e,l.Bz,l.lC]}),o})()}}]);
|