dealpos 25.32.2 → 25.32.3
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/browser/{chunk-5KFKRR6I.js → chunk-2ZNA5ARG.js} +1 -1
- package/browser/{chunk-5XRERMVQ.js → chunk-3KYY5FYO.js} +1 -1
- package/browser/{chunk-GX3N6CKR.js → chunk-5NVDHYMR.js} +1 -1
- package/browser/{chunk-3M2BUDUB.js → chunk-6RPIVSSG.js} +1 -1
- package/browser/{chunk-QZC2AATI.js → chunk-73ZD5TBM.js} +1 -1
- package/browser/{chunk-RACFHMSM.js → chunk-A4JWIZML.js} +1 -1
- package/browser/{chunk-6ZKXKIPB.js → chunk-AI3PATKL.js} +1 -1
- package/browser/{chunk-KR3JCXDQ.js → chunk-APTTWDU5.js} +1 -1
- package/browser/{chunk-MLEZTHWZ.js → chunk-C4JDSJD7.js} +1 -1
- package/browser/{chunk-6DCFTPUD.js → chunk-CUEYUN4L.js} +1 -1
- package/browser/{chunk-LTIAN3DJ.js → chunk-CVQ7YKL7.js} +1 -1
- package/browser/{chunk-47TF4O2L.js → chunk-DFB3MXOW.js} +4 -4
- package/browser/{chunk-OI47XFJO.js → chunk-DIGCR6KY.js} +1 -1
- package/browser/{chunk-L7235LXI.js → chunk-DIQDOQZW.js} +1 -1
- package/browser/{chunk-XVW4JKBX.js → chunk-DOCZM3AP.js} +1 -1
- package/browser/{chunk-3SRUJJ6G.js → chunk-E4QLEW25.js} +1 -1
- package/browser/{chunk-UILC7AVT.js → chunk-FBGTYVS7.js} +1 -1
- package/browser/{chunk-WGKL5OIB.js → chunk-FYGK2DVG.js} +1 -1
- package/browser/{chunk-K6KQDJU7.js → chunk-FYHJMC4C.js} +2 -2
- package/browser/{chunk-AVIHEFZ3.js → chunk-GMRS7ESM.js} +1 -1
- package/browser/{chunk-PYX4Z6HP.js → chunk-GVG275WR.js} +1 -1
- package/browser/{chunk-QSFZXQNP.js → chunk-H2VYIA6G.js} +1 -1
- package/browser/{chunk-25QFQDV7.js → chunk-IIAXTP7E.js} +1 -1
- package/browser/{chunk-5GH2UM6Y.js → chunk-ILIIIY6E.js} +1 -1
- package/browser/{chunk-7UEXOSTA.js → chunk-JBKTANON.js} +1 -1
- package/browser/chunk-JYVBIUNP.js +1 -0
- package/browser/{chunk-AIJM455Q.js → chunk-JZHIPJL6.js} +1 -1
- package/browser/{chunk-6DO5AW57.js → chunk-K4Y6P32J.js} +1 -1
- package/browser/{chunk-ZZ33EHCQ.js → chunk-L3DETDJV.js} +1 -1
- package/browser/{chunk-NT3GFLD4.js → chunk-MDULIW7A.js} +1 -1
- package/browser/{chunk-2PTTCVFQ.js → chunk-MHSCMW2F.js} +1 -1
- package/browser/{chunk-WPFM3ZGY.js → chunk-MN37QCGF.js} +1 -1
- package/browser/{chunk-KMVCVCCD.js → chunk-MNMBSV3F.js} +1 -1
- package/browser/{chunk-QLTG2D75.js → chunk-MWRMFGG5.js} +1 -1
- package/browser/{chunk-7P2INFVM.js → chunk-NBIGYDJQ.js} +1 -1
- package/browser/{chunk-F4Y6BS2M.js → chunk-NGCZ73VH.js} +1 -1
- package/browser/{chunk-DGM743IJ.js → chunk-NQSDZTWC.js} +1 -1
- package/browser/{chunk-MMCM7B5Z.js → chunk-OGEHS67Y.js} +2 -2
- package/browser/{chunk-XBEEV2NG.js → chunk-PPBUAJHH.js} +1 -1
- package/browser/{chunk-3H43P5YA.js → chunk-Q447NXK2.js} +1 -1
- package/browser/{chunk-HIFPWLFR.js → chunk-QIMFVBG4.js} +1 -1
- package/browser/{chunk-O36QNAMF.js → chunk-QW6ZCNCY.js} +1 -1
- package/browser/{chunk-MZDT5S4Y.js → chunk-RNDQ5522.js} +1 -1
- package/browser/{chunk-C7SBDH6E.js → chunk-S2WNUWNT.js} +1 -1
- package/browser/{chunk-UIL2X6EZ.js → chunk-SHLDMXUL.js} +1 -1
- package/browser/{chunk-HCGM3SVB.js → chunk-SNEZD2DF.js} +1 -1
- package/browser/{chunk-H42QJQ56.js → chunk-SP7K6W24.js} +1 -1
- package/browser/{chunk-R3SYCIJT.js → chunk-SWIIZL3R.js} +1 -1
- package/browser/{chunk-ADUMDXZG.js → chunk-SZCKDUDZ.js} +1 -1
- package/browser/{chunk-TKRCAX4C.js → chunk-TI3VWF6U.js} +1 -1
- package/browser/{chunk-U6GZZKLZ.js → chunk-TTISIM4S.js} +1 -1
- package/browser/{chunk-6THPJHMQ.js → chunk-TTYJ26EL.js} +1 -1
- package/browser/{chunk-XV2R2LYT.js → chunk-U46WCD6I.js} +1 -1
- package/browser/{chunk-QB74573V.js → chunk-UDBPWTX6.js} +2 -2
- package/browser/{chunk-CU7IWKXB.js → chunk-UHWSIA44.js} +1 -1
- package/browser/{chunk-GDXXQ6LD.js → chunk-UNKHYM7H.js} +1 -1
- package/browser/{chunk-TNKIGPBP.js → chunk-VSLBL3CM.js} +1 -1
- package/browser/{chunk-S2GLPFVJ.js → chunk-VVUAWT7M.js} +1 -1
- package/browser/{chunk-KWLJQH42.js → chunk-WGYWUMZW.js} +1 -1
- package/browser/{chunk-6KABYQ7Y.js → chunk-WKVHOZNC.js} +2 -2
- package/browser/{chunk-R5GVVUMP.js → chunk-WVFXYMJZ.js} +1 -1
- package/browser/chunk-X45TI4LP.js +1 -0
- package/browser/{chunk-SVPBMCHF.js → chunk-XA3SWV75.js} +1 -1
- package/browser/{chunk-W5XUYOZS.js → chunk-XASK4JLV.js} +2 -2
- package/browser/{chunk-Q6DGG2JP.js → chunk-XDGHFSQ4.js} +1 -1
- package/browser/{chunk-TYEOX5VV.js → chunk-Y4QNQF2U.js} +1 -1
- package/browser/{chunk-OAJ5KECL.js → chunk-YVW7EXNB.js} +1 -1
- package/browser/{chunk-HDG7HN7O.js → chunk-YYGZUYNF.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-KYIE53MH.js → main-MVYE7NYX.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-F2V3ZAGL.js +0 -1
- package/browser/chunk-SPYVACLB.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as de}from"./chunk-
|
|
1
|
+
import{a as de}from"./chunk-RNDQ5522.js";import{h as me,i as se}from"./chunk-MN37QCGF.js";import"./chunk-UHWSIA44.js";import{b as le}from"./chunk-U46WCD6I.js";import"./chunk-GDLTEIKV.js";import"./chunk-PNVRIGOW.js";import{C as ae,D as ne,E as re,u as te,v as ie,w as oe}from"./chunk-KMVWE6IR.js";import"./chunk-4IJDCXOA.js";import"./chunk-QMH4FATM.js";import"./chunk-SRELAFRM.js";import"./chunk-O4T67QQ3.js";import{a as ee}from"./chunk-2FWFPV5I.js";import"./chunk-WUSKRV4R.js";import{C as X,D as Z,c as G,h as z,o as J,y as Q}from"./chunk-J577JGRK.js";import"./chunk-NBIGYDJQ.js";import"./chunk-A4JWIZML.js";import{a as W}from"./chunk-EQ6536VC.js";import"./chunk-L3DETDJV.js";import{$a as m,Db as F,E as A,Ib as o,Jb as a,Kb as w,Lb as T,Ma as Y,Mb as g,Md as H,Ob as y,Qb as _,Rb as u,Td as q,Uc as U,Wc as j,Wd as $,Xc as v,db as f,dc as O,ec as r,ed as K,fc as R,gc as x,hd as h,jc as E,kb as b,kc as M,lc as P,ob as L,pc as D,qb as S,va as d,vb as c,wa as p,xc as k,yc as B}from"./chunk-ONCTFURX.js";import"./chunk-7DCB7DB2.js";var I=(s=>(s.TRANSACTIONS="TRANSACTIONS",s.PRODUCTS="PRODUCTS",s.CONTACTS="CONTACTS",s.LOYALTY_POINTS="LOYALTY_POINTS",s.RECYCLE_BIN="RECYCLE_BIN",s.INVENTORY="INVENTORY",s))(I||{});function _e(n,l){if(n&1&&(T(0),o(1,"div",4)(2,"div",5)(3,"div",16),w(4,"i",17),o(5,"span"),r(6),a()()()(),g()),n&2){let i=u();m(6),x(" ",i.selectedClearData.message," ")}}function Se(n,l){n&1&&(T(0),o(1,"small",18),r(2," *Subdomain is required "),a(),g())}function Te(n,l){n&1&&(T(0),o(1,"small",18),r(2," *Password is required "),a(),g())}function ge(n,l){n&1&&w(0,"i",14)}function be(n,l){n&1&&w(0,"i",15)}var N=class n{constructor(l,i,t){this.data=l;this.dialogRef=i;this.fb=t;this.modalConfig.title=this.modalTitle[this.data.type],this.subdomain="",this.subdomainPlaceholder=l.subDomain}clearData=[{type:"TRANSACTIONS",api:"Setup/Data/ClearTransaction",message:"Your Invoice, Bill, Adjustment, TransferOrder will be deleted"},{type:"PRODUCTS",api:"Setup/Data/ClearProduct",message:"Your Category, Product and Variant will be deleted"},{type:"LOYALTY_POINTS",api:"Setup/Data/ClearLoyaltyPoint"},{type:"RECYCLE_BIN",api:"Setup/Data/ClearRecycleBin"},{type:"INVENTORY",api:"Setup/Data/ClearInventory",message:"Your Product Inventory will be set to 0"},{type:"CONTACTS",api:"Setup/Data/ClearContact",message:"Your Customer, Supplier and Sales Person will be deleted"}];selectedClearData;modalConfig=new ae;modalTitle={TRANSACTIONS:"Clear Transactions",PRODUCTS:"Clear Products",LOYALTY_POINTS:"Clear Loyalty Points",RECYCLE_BIN:"Clear Recycle Bin",CONTACTS:"Clear Contacts",INVENTORY:"Clear Inventory"};subdomain;subdomainPlaceholder;password;form;passwordVisibility=Y(!1);ngOnInit(){this.initSelectedClearData(),this.form=this.fb.group({subdomain:[""],password:[""]})}initSelectedClearData(){this.selectedClearData=this.clearData.find(l=>l.type===this.data.type)}onSubmit(){let l={password:this.password,subdomain:this.subdomain,apiUrl:this.selectedClearData.api};this.dialogRef.close(l)}static \u0275fac=function(i){return new(i||n)(f(ie),f(te),f(X))};static \u0275cmp=b({type:n,selectors:[["app-confirmation-modal"]],decls:24,vars:10,consts:[["subdomainCtrl","ngModel"],["passwordCtrl","ngModel"],[3,"onOk","onClose","onCancel","config","dynamicValidated"],[4,"ngIf"],[1,"row"],[1,"col-12"],[1,"form-floating-outline","mt-5"],["type","text","id","subdomain","placeholder","Subdomain","name","subdomain","autofocus","","required","",1,"form-control",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"form-floating-outline"],["id","pass","placeholder","Password","name","password","required","",1,"form-control",3,"ngModelChange","type","ngModel"],["for","pass"],[1,"password-visibility"],["type","button",1,"btn","btn-link",3,"click"],[1,"fa-solid","fa-eye"],[1,"fa-solid","fa-eye-slash"],[1,"alert","alert-warning","cursor","w-100"],[1,"fa-solid","fa-circle-exclamation","me-2"],[1,"control-label","text-danger"]],template:function(i,t){if(i&1){let e=y();o(0,"modal-material",2),_("onOk",function(){return d(e),p(t.onSubmit())})("onClose",function(){return d(e),p(t.dialogRef.close())})("onCancel",function(){return d(e),p(t.dialogRef.close())}),o(1,"content"),S(2,_e,7,1,"ng-container",3),o(3,"div",4)(4,"div",5)(5,"strong"),r(6),a(),o(7,"div",6)(8,"input",7,0),P("ngModelChange",function(s){return d(e),M(t.subdomain,s)||(t.subdomain=s),p(s)}),a(),o(10,"label",8),r(11,"Subdomain"),a(),S(12,Se,3,0,"ng-container",3),a()(),o(13,"div",5)(14,"div",9)(15,"input",10,1),P("ngModelChange",function(s){return d(e),M(t.password,s)||(t.password=s),p(s)}),a(),o(17,"label",11),r(18,"Password"),a(),S(19,Te,3,0,"ng-container",3),o(20,"div",12)(21,"button",13),_("click",function(){return d(e),p(t.passwordVisibility.set(!t.passwordVisibility()))}),S(22,ge,1,0,"i",14)(23,be,1,0,"i",15),a()()()()()()()}if(i&2){let e=O(9),C=O(16);c("config",t.modalConfig)("dynamicValidated",t.password&&t.subdomain),m(2),c("ngIf",t.selectedClearData.message),m(4),x("Enter the following subdomain to confirm: ",t.subdomainPlaceholder,""),m(2),E("ngModel",t.subdomain),m(4),c("ngIf",e.invalid&&(e.dirty||e.touched)),m(3),c("type",t.passwordVisibility()?"text":"password"),E("ngModel",t.password),m(4),c("ngIf",C.invalid&&(C.dirty||C.touched)),m(3),F(t.passwordVisibility()?22:23)}},dependencies:[h,v,re,ne,Z,G,z,Q,J],styles:[".password-visibility[_ngcontent-%COMP%]{position:absolute;right:0;top:50%;transform:translateY(-50%);cursor:pointer;font-size:1.5rem}"]})};var V=n=>({"border border-0":n});function we(n,l){if(n&1&&(T(0),o(1,"tr",23)(2,"td",23),r(3),a(),o(4,"td",24),r(5),k(6,"number"),a()(),g()),n&2){let i=l.$implicit,t=l.index,e=u(2);m(),c("ngClass",D(7,V,t==e.data.Data.length-1)),m(),c("ngClass",D(9,V,t==e.data.Data.length-1)),m(),R(i.Key),m(),c("ngClass",D(11,V,t==e.data.Data.length-1)),m(),R(B(6,5,i.Value))}}function ye(n,l){if(n&1){let i=y();o(0,"mainpanel-cmp",1)(1,"actions")(2,"div",2)(3,"div",3)(4,"button",4),r(5," Format Data "),a(),o(6,"ul",5)(7,"li")(8,"a",6),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.TRANSACTIONS))}),r(9," 1. Clear Transactions "),a()(),o(10,"li")(11,"a",7),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.INVENTORY))}),r(12," 2. Clear Inventory "),a()(),o(13,"li")(14,"a",8),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.PRODUCTS))}),r(15," 3. Clear Products "),a()(),o(16,"li")(17,"a",9),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.CONTACTS))}),r(18," 4. Clear Contacts "),a()(),o(19,"li")(20,"a",10),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.LOYALTY_POINTS))}),r(21," 5. Clear Loyalty Point "),a()(),o(22,"li")(23,"a",11),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.RECYCLE_BIN))}),r(24," 6. Clear Recycle Bin "),a()()()()()(),o(25,"content")(26,"div",12)(27,"div",13)(28,"div",14)(29,"h5"),r(30,"Database Records"),a(),o(31,"i"),r(32,"Current data count"),a()(),o(33,"div",15)(34,"div",16)(35,"div",17)(36,"table",18)(37,"thead",19)(38,"tr",20)(39,"th"),r(40,"Table"),a(),o(41,"th",21),r(42,"Rows"),a()()(),o(43,"tbody"),S(44,we,7,13,"ng-container",22),a()()()()()()()()()}if(n&2){let i=u();c("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),m(44),c("ngForOf",i.data.Data)}}var pe=class n extends de{constructor(i,t,e,C,s){super(i,t,"Setup/DataLoader/clearformatdata",e);this.httpService=t;this.activatedRoute=e;this.toaster=C;this.dialog=s}clearDataType=I;onClearRecord(i){this.dialog.open(N,{data:{type:i,subDomain:this.data.SubDomain}}).afterClosed().pipe(A(t=>W.IsNotEmpty(t))).subscribe(t=>{this.formData={Subdomain:t.subdomain,Password:t.password},this.onSubmit(t.apiUrl),i=="PRODUCTS"?this.data.Data.find(e=>e.Key=="Product").Value=0:i=="CONTACTS"?this.data.Data.find(e=>e.Key=="Customer").Value=0:i=="INVENTORY"?this.data.Data.find(e=>e.Key=="ItemTransfer").Value=0:i=="LOYALTY_POINTS"?this.data.Data.find(e=>e.Key=="JournalHeader").Value=0:i=="RECYCLE_BIN"?this.data.Data.find(e=>e.Key=="Recycle Bin").Value=0:i=="TRANSACTIONS"&&(this.data.Data.find(e=>e.Key=="SalesOrder").Value=0)})}onSubmitSuccess(i){this.toaster.success(i.Message,ee.Success)}static \u0275fac=function(t){return new(t||n)(f(le),f($),f(H),f(q),f(oe))};static \u0275cmp=b({type:n,selectors:[["POS-format-data"]],features:[L],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex"],[1,"dropdown"],["type","button","data-bs-toggle","dropdown","aria-expanded","false","confirm-message","Are you sure you want to clear the record?",1,"btn","btn-outline-secondary","dropdown-toggle"],[1,"dropdown-menu","dropdown-menu-end"],["role","button","matTooltipPosition","above","matTooltip","Clear Transaction",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Inventory",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Products",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Contacts",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Loyalty Point",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Recycle Bin",1,"dropdown-item",3,"click"],[1,"container","pt-3"],[1,"row","border-bottom","mt-10","ms-2"],[1,"col-sm-2"],[1,"col-sm-10"],[1,"row"],[1,"col-md-12"],["id","tableGrid",1,"table",2,"width","250px"],[1,"thead-light","sticky-top-thead"],[1,"header"],[1,"text-end"],[4,"ngFor","ngForOf"],[3,"ngClass"],[1,"text-end",3,"ngClass"]],template:function(t,e){t&1&&S(0,ye,45,4,"mainpanel-cmp",0),t&2&&c("ngIf",e.formData)},dependencies:[h,U,j,v,K,se,me],encapsulation:2})};export{pe as FormatDataComponent};
|