dealpos 12.69.6 → 12.69.8
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/POS/{chunk-RKXDSMAO.js → chunk-5OSE6ZXZ.js} +1 -1
- package/POS/{chunk-HJ6K4DVK.js → chunk-5UWJNTGL.js} +1 -1
- package/POS/{chunk-ZADD3SRK.js → chunk-7JVEXOSQ.js} +1 -1
- package/POS/{chunk-ZINVRXTV.js → chunk-AZ5I5TWN.js} +1 -1
- package/POS/{chunk-EKGRQSPG.js → chunk-B4AHBHTQ.js} +1 -1
- package/POS/{chunk-JXKPPWEO.js → chunk-BSXSQU3P.js} +2 -2
- package/POS/{chunk-YEOZMOWH.js → chunk-BX3YCRXW.js} +1 -1
- package/POS/chunk-CAVMEOQL.js +1 -0
- package/POS/{chunk-IIATYF65.js → chunk-CLDDJROC.js} +1 -1
- package/POS/{chunk-7YMNTYQ4.js → chunk-CNL2BZBK.js} +1 -1
- package/POS/{chunk-UGAPT45S.js → chunk-DGKYRG6Q.js} +2 -2
- package/POS/{chunk-25KQNY7K.js → chunk-EXPCYTTZ.js} +1 -1
- package/POS/{chunk-FHUY5YDG.js → chunk-EXYJX5RL.js} +1 -1
- package/POS/{chunk-U4CNZ2E2.js → chunk-FAB33N6W.js} +1 -1
- package/POS/{chunk-2OO47AA4.js → chunk-FHZNGDPF.js} +1 -1
- package/POS/{chunk-G72ONC4L.js → chunk-FKCXTYZW.js} +1 -1
- package/POS/{chunk-UDRDGZFN.js → chunk-FOWVJTOQ.js} +1 -1
- package/POS/{chunk-55V66WMD.js → chunk-FXAPMZRI.js} +2 -2
- package/POS/chunk-G6MVSM6K.js +1 -0
- package/POS/{chunk-K5BYVFGZ.js → chunk-GCOJOBIJ.js} +1 -1
- package/POS/{chunk-LPWIYWMH.js → chunk-GDCFUD5R.js} +1 -1
- package/POS/{chunk-SGMOPO2R.js → chunk-GLHB72A5.js} +1 -1
- package/POS/{chunk-WJQZTN5N.js → chunk-GOTUFRD2.js} +1 -1
- package/POS/{chunk-ISP6CFQY.js → chunk-GZOKCFWY.js} +1 -1
- package/POS/{chunk-YZDJQK5N.js → chunk-H5MWM6GA.js} +1 -1
- package/POS/{chunk-RBKYW22U.js → chunk-HXVUSEAB.js} +1 -1
- package/POS/{chunk-ZSQ2JTDS.js → chunk-I7QKMYJJ.js} +1 -1
- package/POS/{chunk-E6MRBW35.js → chunk-IBPSRY4R.js} +1 -1
- package/POS/{chunk-XTVXCMUI.js → chunk-JDJOX465.js} +1 -1
- package/POS/{chunk-TTBCYHO6.js → chunk-JKM4IXKO.js} +1 -1
- package/POS/{chunk-INOSFRO2.js → chunk-KW7DXITW.js} +1 -1
- package/POS/{chunk-OCPWF3FU.js → chunk-KWF7R5IM.js} +1 -1
- package/POS/{chunk-P3Y4WKQD.js → chunk-N5A3E7QP.js} +2 -2
- package/POS/{chunk-5K3EOSPU.js → chunk-NCCQYBIL.js} +1 -1
- package/POS/{chunk-TKPQT4Y4.js → chunk-NDJHSUF6.js} +1 -1
- package/POS/{chunk-QXEUV5D4.js → chunk-P5JKT2TK.js} +1 -1
- package/POS/{chunk-25MAJUXO.js → chunk-PSESV4UV.js} +1 -1
- package/POS/{chunk-BXGNVV56.js → chunk-QHIUCLYV.js} +1 -1
- package/POS/{chunk-TMILDIPT.js → chunk-QOIP2AJG.js} +1 -1
- package/POS/{chunk-GFBLAU72.js → chunk-QXTKC7OL.js} +1 -1
- package/POS/{chunk-WSRQFJIA.js → chunk-RLMDJO6Z.js} +1 -1
- package/POS/{chunk-G3O7VE2Q.js → chunk-RWKPZXN2.js} +1 -1
- package/POS/{chunk-O6LHGIGM.js → chunk-SES3AGP2.js} +1 -1
- package/POS/{chunk-GS2HWTHA.js → chunk-SF5U6XC5.js} +1 -1
- package/POS/{chunk-GG2AMTN6.js → chunk-SILU4BZD.js} +1 -1
- package/POS/{chunk-5VKK7M66.js → chunk-SQESOTFY.js} +1 -1
- package/POS/{chunk-KROAFCYP.js → chunk-STBLQW4F.js} +1 -1
- package/POS/{chunk-NXWK6ZDN.js → chunk-STFKXHAK.js} +1 -1
- package/POS/{chunk-AQ7K7IIR.js → chunk-UPMEO7L3.js} +1 -1
- package/POS/{chunk-T5CFM4GM.js → chunk-VBNX2I2I.js} +1 -1
- package/POS/{chunk-P3NV5743.js → chunk-VPD3MFFL.js} +1 -1
- package/POS/{chunk-ISJ6TOHO.js → chunk-VYH6RNTS.js} +1 -1
- package/POS/{chunk-MBWUVJWT.js → chunk-WOZVMAYN.js} +1 -1
- package/POS/{chunk-AZG4N46Y.js → chunk-WTQEXMG5.js} +1 -1
- package/POS/{chunk-ORTIMBRJ.js → chunk-XCKUUY3B.js} +1 -1
- package/POS/{chunk-OTSGYTIK.js → chunk-XOZOV3MP.js} +1 -1
- package/POS/{chunk-WNMBMQKZ.js → chunk-YGGHNHDN.js} +1 -1
- package/POS/{chunk-BSHQ6TCI.js → chunk-YL2K6ZVY.js} +1 -1
- package/POS/{chunk-O7LV7ZB5.js → chunk-YL2PKJYO.js} +1 -1
- package/POS/{chunk-CVIB3K5B.js → chunk-YOPDHYGK.js} +1 -1
- package/POS/{chunk-G6UU7UDR.js → chunk-YQADIIKH.js} +1 -1
- package/POS/{chunk-L6MZGFEN.js → chunk-Z5RXTWID.js} +1 -1
- package/POS/{chunk-B6VQL7SP.js → chunk-ZH5AJL5F.js} +1 -1
- package/POS/{chunk-3A6NR5UR.js → chunk-ZPHNQE7V.js} +1 -1
- package/POS/{chunk-O7YSAXSS.js → chunk-ZQK2LVA7.js} +1 -1
- package/POS/index.html +2 -2
- package/POS/{main-6KCDWHR2.js → main-RPT4IJLF.js} +2 -2
- package/package.json +1 -1
- package/POS/chunk-BOEPWGFB.js +0 -1
- package/POS/chunk-G6JGVHFM.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as pe}from"./chunk-
|
|
1
|
+
import{a as pe}from"./chunk-KW7DXITW.js";import{g as se,h as de}from"./chunk-WOZVMAYN.js";import"./chunk-FOWVJTOQ.js";import{b as me}from"./chunk-VYH6RNTS.js";import"./chunk-JCZHJBLW.js";import"./chunk-BY33YGOA.js";import{k as ie,l as oe,m as ae,s as ne,t as re,u as le}from"./chunk-W3VUAHIT.js";import"./chunk-5ZAINTZN.js";import"./chunk-XHSYNMNJ.js";import"./chunk-T6WFRH7W.js";import"./chunk-PKD6G5MB.js";import{a as te}from"./chunk-2FWFPV5I.js";import{B as Z,C as $,c as z,h as J,n as Q,x as X}from"./chunk-YTCT6ZQ7.js";import"./chunk-B4AHBHTQ.js";import"./chunk-RLMDJO6Z.js";import{a as q}from"./chunk-57PSYBBZ.js";import"./chunk-YOPDHYGK.js";import{a as ee}from"./chunk-G2Y6BRHO.js";import{Ab as w,Bb as T,Cb as g,E as Y,Eb as y,Hb as _,Jb as u,Kd as W,Oc as j,Qc as K,Rc as h,Rd as G,Ua as m,Va as f,Xb as R,Yb as r,Zb as x,_b as E,_c as H,bb as F,bc as M,bd as I,cc as P,dc as V,eb as L,fc as D,hb as S,hc as v,lb as c,pa as b,pc as B,qc as U,tb as k,wa as d,xa as p,yb as o,zb as a}from"./chunk-QTGI6HSJ.js";import"./chunk-KW4B7WMB.js";var N=(s=>(s.TRANSACTIONS="TRANSACTIONS",s.PRODUCTS="PRODUCTS",s.CONTACTS="CONTACTS",s.LOYALTY_POINTS="LOYALTY_POINTS",s.RECYCLE_BIN="RECYCLE_BIN",s.INVENTORY="INVENTORY",s))(N||{});function Se(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),E(" ",i.selectedClearData.message," ")}}function Te(n,l){n&1&&(T(0),o(1,"small",18),r(2," *Subdomain is required "),a(),g())}function ge(n,l){n&1&&(T(0),o(1,"small",18),r(2," *Password is required "),a(),g())}function be(n,l){n&1&&w(0,"i",14)}function we(n,l){n&1&&w(0,"i",15)}var O=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 ne;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=F(!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(oe),f(ie),f(Z))};static \u0275cmp=b({type:n,selectors:[["app-confirmation-modal"]],standalone:!0,features:[D],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,Se,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),V("ngModelChange",function(s){return d(e),P(t.subdomain,s)||(t.subdomain=s),p(s)}),a(),o(10,"label",8),r(11,"Subdomain"),a(),S(12,Te,3,0,"ng-container",3),a()(),o(13,"div",5)(14,"div",9)(15,"input",10,1),V("ngModelChange",function(s){return d(e),P(t.password,s)||(t.password=s),p(s)}),a(),o(17,"label",11),r(18,"Password"),a(),S(19,ge,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,be,1,0,"i",14)(23,we,1,0,"i",15),a()()()()()()()}if(i&2){let e=R(9),C=R(16);c("config",t.modalConfig)("dynamicValidated",t.password&&t.subdomain),m(2),c("ngIf",t.selectedClearData.message),m(4),E("Enter the following subdomain to confirm: ",t.subdomainPlaceholder,""),m(2),M("ngModel",t.subdomain),m(4),c("ngIf",e.invalid&&(e.dirty||e.touched)),m(3),c("type",t.passwordVisibility()?"text":"password"),M("ngModel",t.password),m(4),c("ngIf",C.invalid&&(C.dirty||C.touched)),m(3),k(t.passwordVisibility()?22:23)}},dependencies:[I,h,le,re,$,z,J,X,Q],styles:[".password-visibility[_ngcontent-%COMP%]{position:absolute;right:0;top:50%;transform:translateY(-50%);cursor:pointer;font-size:1.5rem}"]})};var A=n=>({"border border-0":n});function ye(n,l){if(n&1&&(T(0),o(1,"tr",23)(2,"td",23),r(3),a(),o(4,"td",24),r(5),B(6,"number"),a()(),g()),n&2){let i=l.$implicit,t=l.index,e=u(2);m(),c("ngClass",v(7,A,t==e.data.Data.length-1)),m(),c("ngClass",v(9,A,t==e.data.Data.length-1)),m(),x(i.Key),m(),c("ngClass",v(11,A,t==e.data.Data.length-1)),m(),x(U(6,5,i.Value))}}function De(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,ye,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 ce=class n extends pe{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=N;onClearRecord(i){this.dialog.open(O,{data:{type:i,subDomain:this.data.SubDomain}}).afterClosed().pipe(Y(t=>q.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,te.Success)}static \u0275fac=function(t){return new(t||n)(f(me),f(ee),f(W),f(G),f(ae))};static \u0275cmp=b({type:n,selectors:[["POS-format-data"]],standalone:!0,features:[L,D],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,De,45,4,"mainpanel-cmp",0),t&2&&c("ngIf",e.formData)},dependencies:[I,j,K,h,H,de,se]})};export{ce as FormatDataComponent};
|