dealpos 26.37.1 → 26.37.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-UG7OZ7JO.js → chunk-253NZMAL.js} +1 -1
- package/browser/{chunk-2CFRPHIE.js → chunk-2IBDLXAS.js} +1 -1
- package/browser/{chunk-QE6AOIJB.js → chunk-2TYOCEOU.js} +1 -1
- package/browser/{chunk-SNUN42SX.js → chunk-3CQ5RBFT.js} +1 -1
- package/browser/{chunk-BISPKSDR.js → chunk-4MRIYYWZ.js} +1 -1
- package/browser/{chunk-LTRWL5Y4.js → chunk-4TSUM3I3.js} +1 -1
- package/browser/{chunk-P5S47SMU.js → chunk-557BYFLO.js} +1 -1
- package/browser/{chunk-HDMH5XBP.js → chunk-5BVDRWO4.js} +1 -1
- package/browser/{chunk-FZ3K3B6G.js → chunk-5LOBTPWK.js} +1 -1
- package/browser/{chunk-QBUFC64W.js → chunk-64LEIDNB.js} +1 -1
- package/browser/{chunk-3VNTTTWC.js → chunk-6AYBO77N.js} +1 -1
- package/browser/{chunk-C2WQDQKW.js → chunk-6EFJRCQZ.js} +2 -2
- package/browser/{chunk-ITWZ6QOA.js → chunk-6RA5EHM2.js} +1 -1
- package/browser/{chunk-OGCUBREE.js → chunk-6WJBIMY7.js} +1 -1
- package/browser/{chunk-ZV2CGGM5.js → chunk-6ZTQOAHY.js} +1 -1
- package/browser/{chunk-BMJPO44O.js → chunk-7UQFGPLZ.js} +1 -1
- package/browser/{chunk-K56VHT3O.js → chunk-7ZRGR2X5.js} +1 -1
- package/browser/{chunk-RSTAXF46.js → chunk-A2S6ZKKN.js} +1 -1
- package/browser/{chunk-NU4LSG6N.js → chunk-AF2C6LDJ.js} +1 -1
- package/browser/{chunk-CZB626DE.js → chunk-AFSVVDZ4.js} +2 -2
- package/browser/{chunk-MQT3NCBU.js → chunk-AGDXBH3H.js} +1 -1
- package/browser/{chunk-4NPOUK62.js → chunk-AGOI7CDZ.js} +1 -1
- package/browser/{chunk-Z5TLMOYE.js → chunk-AHAMENH2.js} +1 -1
- package/browser/{chunk-HDJZAFYR.js → chunk-BFM55JKW.js} +1 -1
- package/browser/{chunk-FCXMKK5W.js → chunk-BFPIWA6U.js} +1 -1
- package/browser/chunk-BHTKPWCP.js +1 -0
- package/browser/{chunk-O4L7Z2PW.js → chunk-BOGMTPRW.js} +1 -1
- package/browser/chunk-C3KAKXHV.js +1 -0
- package/browser/{chunk-N3V4JQKT.js → chunk-CCKWYMDO.js} +1 -1
- package/browser/{chunk-L5JCPZPL.js → chunk-CEFKPRNF.js} +1 -1
- package/browser/{chunk-7LCXFJSX.js → chunk-CR3JARI7.js} +1 -1
- package/browser/{chunk-XVZYOR2J.js → chunk-D4Z6LTUZ.js} +1 -1
- package/browser/{chunk-TEQBXV3T.js → chunk-D5U2ZYS4.js} +1 -1
- package/browser/{chunk-VC5JSGG6.js → chunk-DKREBBYA.js} +1 -1
- package/browser/{chunk-UEZYKLGM.js → chunk-E25T6DRR.js} +1 -1
- package/browser/{chunk-4VRZI4JU.js → chunk-EPZHPOT6.js} +1 -1
- package/browser/{chunk-H3HHJL4S.js → chunk-ETKH7O4X.js} +1 -1
- package/browser/{chunk-CQKP2LE4.js → chunk-F4672KRZ.js} +1 -1
- package/browser/{chunk-IZFGH64T.js → chunk-FU2ICITY.js} +1 -1
- package/browser/{chunk-PMFVN6IA.js → chunk-FVV72ORU.js} +1 -1
- package/browser/{chunk-EGNCZCGZ.js → chunk-GH52GYO5.js} +1 -1
- package/browser/{chunk-PGSLOAB7.js → chunk-GP4XRTH2.js} +1 -1
- package/browser/{chunk-D3FMDMVZ.js → chunk-GTJCDIU6.js} +1 -1
- package/browser/{chunk-WJO6KIQN.js → chunk-HHLNY3CH.js} +1 -1
- package/browser/{chunk-ISAHS44N.js → chunk-HKCFZMG6.js} +1 -1
- package/browser/{chunk-EMFHXQ5H.js → chunk-HM2IFV4R.js} +1 -1
- package/browser/{chunk-HAVH5GBI.js → chunk-HSKG6JZF.js} +1 -1
- package/browser/{chunk-7RC3W2KZ.js → chunk-HYB3CHA4.js} +1 -1
- package/browser/{chunk-DWJJZAXN.js → chunk-IR4AOTEL.js} +1 -1
- package/browser/{chunk-QNFF5IAF.js → chunk-IS5RLA3E.js} +1 -1
- package/browser/{chunk-DZ3FSKU3.js → chunk-IYZMNR4W.js} +1 -1
- package/browser/{chunk-GZIM4RZJ.js → chunk-J5MKWVNH.js} +1 -1
- package/browser/{chunk-5BQ2GJEY.js → chunk-JMHRQB3D.js} +1 -1
- package/browser/{chunk-FUMJHHNT.js → chunk-KIOMJTHS.js} +1 -1
- package/browser/{chunk-BF6XCQAT.js → chunk-KJCCBHMT.js} +2 -2
- package/browser/{chunk-6FPVANI4.js → chunk-KM2G7YL4.js} +1 -1
- package/browser/{chunk-EEU6L3NC.js → chunk-KR5TGI2F.js} +1 -1
- package/browser/{chunk-6LI3SPMC.js → chunk-LJ2WMRMZ.js} +1 -1
- package/browser/{chunk-QIWKIWYY.js → chunk-LJ5X7QS6.js} +1 -1
- package/browser/{chunk-VJHCSZEG.js → chunk-M35LTKFU.js} +1 -1
- package/browser/{chunk-73QHFHMM.js → chunk-MAZ3OYV7.js} +1 -1
- package/browser/{chunk-N6SU2SFG.js → chunk-MD6MDICU.js} +1 -1
- package/browser/{chunk-Z4PD22YY.js → chunk-MFHIKO3L.js} +1 -1
- package/browser/{chunk-DW7LJMHE.js → chunk-MG4EXSSC.js} +1 -1
- package/browser/{chunk-QC22FQZQ.js → chunk-MQA5BNHG.js} +2 -2
- package/browser/{chunk-EMCGI7A7.js → chunk-MVEKU7RW.js} +1 -1
- package/browser/{chunk-PRWBUSBM.js → chunk-MVQFXZPW.js} +1 -1
- package/browser/{chunk-5HLOWKYV.js → chunk-MZXSHS37.js} +1 -1
- package/browser/{chunk-B7EJWYP6.js → chunk-NRKDHPDZ.js} +1 -1
- package/browser/{chunk-X7LI4SFA.js → chunk-OEY3QVMY.js} +2 -2
- package/browser/{chunk-7Y2Q6KLV.js → chunk-ORY36BDN.js} +1 -1
- package/browser/{chunk-FRHBCZTO.js → chunk-OZPEA65J.js} +1 -1
- package/browser/{chunk-I3323QTM.js → chunk-OZR7MOXH.js} +1 -1
- package/browser/{chunk-3RXGQB7D.js → chunk-P23GB362.js} +1 -1
- package/browser/{chunk-ZE6I6QLI.js → chunk-PBA6BVUN.js} +1 -1
- package/browser/{chunk-UPGHE3SQ.js → chunk-PDZNLHEG.js} +1 -1
- package/browser/{chunk-RISMNWS3.js → chunk-PKDXAMAH.js} +1 -1
- package/browser/{chunk-ECYM24PG.js → chunk-PKQC53F4.js} +1 -1
- package/browser/{chunk-DBG5DKW5.js → chunk-PN3T4WKV.js} +1 -1
- package/browser/{chunk-6BE6WDYI.js → chunk-PVQGAWSF.js} +1 -1
- package/browser/{chunk-BFFZDXXB.js → chunk-PWEQUP3B.js} +1 -1
- package/browser/{chunk-PZWQWXO4.js → chunk-Q3FPCZFK.js} +2 -2
- package/browser/{chunk-KCT4IFXG.js → chunk-Q4UHECOW.js} +1 -1
- package/browser/{chunk-RAQ47ZHK.js → chunk-RCBHAHBM.js} +1 -1
- package/browser/{chunk-OB3IJQHV.js → chunk-RCD42DOR.js} +1 -1
- package/browser/{chunk-ZPLRNHEK.js → chunk-RJA4RRKY.js} +1 -1
- package/browser/{chunk-CWRGVCJA.js → chunk-SCC6TV3E.js} +1 -1
- package/browser/{chunk-HEA2BK6W.js → chunk-SSUT5QZG.js} +1 -1
- package/browser/{chunk-XJATKXIL.js → chunk-T37YFIDW.js} +1 -1
- package/browser/{chunk-QBOANWCW.js → chunk-TFMRXFKF.js} +1 -1
- package/browser/{chunk-ELTOKXKD.js → chunk-TIPANPRQ.js} +1 -1
- package/browser/{chunk-XXGVQTUG.js → chunk-TIVQH4WN.js} +1 -1
- package/browser/{chunk-5UVIUGJU.js → chunk-TU2DPJTH.js} +1 -1
- package/browser/{chunk-2FCQN52D.js → chunk-TWUAAKGI.js} +1 -1
- package/browser/{chunk-CGFTXHX5.js → chunk-TYKZHDXB.js} +1 -1
- package/browser/{chunk-SEMVMVLW.js → chunk-U2MVSQKA.js} +1 -1
- package/browser/{chunk-KMGKZORM.js → chunk-UAY6EC6J.js} +2 -2
- package/browser/{chunk-URT7L4NT.js → chunk-UGC7CY7Q.js} +1 -1
- package/browser/{chunk-FZZ6PEKS.js → chunk-UMGROITR.js} +1 -1
- package/browser/{chunk-F2HTAQDB.js → chunk-V5YBRC7B.js} +1 -1
- package/browser/{chunk-CSH3SVJ7.js → chunk-VVBNSLTG.js} +1 -1
- package/browser/{chunk-CNLWMYE2.js → chunk-W7MVH5UR.js} +1 -1
- package/browser/{chunk-3FRNHPUR.js → chunk-WDXHB3T4.js} +1 -1
- package/browser/{chunk-AS5IR43H.js → chunk-WM2XL22W.js} +1 -1
- package/browser/{chunk-PRLEREC5.js → chunk-WQ3BHJ32.js} +1 -1
- package/browser/{chunk-3LVTOHZE.js → chunk-WVJ4A7C3.js} +1 -1
- package/browser/chunk-WVMDONWY.js +1 -0
- package/browser/{chunk-XCTSSF45.js → chunk-WX2IAVSC.js} +1 -1
- package/browser/{chunk-CLIDCFJJ.js → chunk-XY2PIDXJ.js} +1 -1
- package/browser/{chunk-RXTNVZ3H.js → chunk-ZFV4N3E2.js} +1 -1
- package/browser/{chunk-6UYWKSJY.js → chunk-ZR7UJFAU.js} +1 -1
- package/browser/{chunk-5LX7SF5P.js → chunk-ZSN5EMUK.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-QGFK3CSP.js → main-BQNCPUZQ.js} +1 -1
- package/package.json +1 -1
- package/browser/chunk-B6QPAQI6.js +0 -1
- package/browser/chunk-FNJWPYY2.js +0 -1
- package/browser/chunk-JI4JLK37.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Z,b as $}from"./chunk-B24DKIBB.js";import"./chunk-6BEG6JYE.js";import"./chunk-37OXQCY5.js";import"./chunk-EW2QDGF2.js";import"./chunk-KAOZTSSW.js";import{a as Y}from"./chunk-MEXVXDKC.js";import{p as X}from"./chunk-232L4QDQ.js";import"./chunk-C7AHZE5N.js";import"./chunk-AES2MVIS.js";import"./chunk-AKZW6L24.js";import"./chunk-T2Y6L3PM.js";import"./chunk-SBLNMOXY.js";import"./chunk-EBFSFFKT.js";import"./chunk-46AS32Y6.js";import"./chunk-TEUPLXZW.js";import"./chunk-OAR3S27F.js";import{a as Q}from"./chunk-
|
|
1
|
+
import{a as Z,b as $}from"./chunk-B24DKIBB.js";import"./chunk-6BEG6JYE.js";import"./chunk-37OXQCY5.js";import"./chunk-EW2QDGF2.js";import"./chunk-KAOZTSSW.js";import{a as Y}from"./chunk-MEXVXDKC.js";import{p as X}from"./chunk-232L4QDQ.js";import"./chunk-C7AHZE5N.js";import"./chunk-AES2MVIS.js";import"./chunk-AKZW6L24.js";import"./chunk-T2Y6L3PM.js";import"./chunk-SBLNMOXY.js";import"./chunk-EBFSFFKT.js";import"./chunk-46AS32Y6.js";import"./chunk-TEUPLXZW.js";import"./chunk-OAR3S27F.js";import{a as Q}from"./chunk-A2S6ZKKN.js";import"./chunk-JZCIJXV2.js";import{a as U}from"./chunk-WX2IAVSC.js";import"./chunk-XY2PIDXJ.js";import"./chunk-64E2KYWA.js";import"./chunk-CE4YPYNH.js";import"./chunk-E6DX7K73.js";import{a as G,g as J,h as K}from"./chunk-RCD42DOR.js";import"./chunk-ZBUXJSWD.js";import"./chunk-UBFC273L.js";import"./chunk-B2PAUOAE.js";import"./chunk-TXPPVLN7.js";import"./chunk-7O57X7B6.js";import"./chunk-BS7OOL5F.js";import"./chunk-TVSZWXKF.js";import"./chunk-DFCFXDXX.js";import"./chunk-4PPHUFDR.js";import"./chunk-CXNSSMWD.js";import"./chunk-NRKDHPDZ.js";import{a as z}from"./chunk-WDXHB3T4.js";import"./chunk-YBMKTLKP.js";import"./chunk-QAK7KBYZ.js";import"./chunk-JMHRQB3D.js";import"./chunk-ZK5X3QHG.js";import"./chunk-2QGJVMDP.js";import"./chunk-ZMJGUKRR.js";import"./chunk-IWAI7MVS.js";import"./chunk-PPMQE2JW.js";import"./chunk-XAGPF2DG.js";import"./chunk-NQUAJAD5.js";import{d as q}from"./chunk-YLJMYMN6.js";import"./chunk-GTJCDIU6.js";import"./chunk-OKQYRKDJ.js";import"./chunk-MZXSHS37.js";import"./chunk-BODLDM6S.js";import"./chunk-2TYOCEOU.js";import"./chunk-77MBEZAF.js";import"./chunk-AXL4BYTM.js";import"./chunk-7YB46QHZ.js";import"./chunk-NNCNCSRM.js";import"./chunk-APJZ7FTS.js";import"./chunk-HDB7WDVX.js";import{a as F}from"./chunk-ICRIBA3P.js";import"./chunk-URT4455F.js";import"./chunk-OAD4FS2F.js";import"./chunk-YQ4XRLUA.js";import{a as H}from"./chunk-IZ6OEFHZ.js";import"./chunk-ZLF22NO2.js";import"./chunk-Y6W7XUTQ.js";import"./chunk-LKCUXC3X.js";import"./chunk-CNL7LBPM.js";import{F as R,h as N,p as j}from"./chunk-7OJUWRPB.js";import"./chunk-W7MVH5UR.js";import"./chunk-5LOBTPWK.js";import"./chunk-QOCZG4DD.js";import"./chunk-DA5OOQPS.js";import"./chunk-PPTZHIIZ.js";import"./chunk-MAZ3OYV7.js";import{n as W,q as V}from"./chunk-UBUWTJXF.js";import{Ab as A,Ca as y,Cb as M,Db as E,Eb as l,Fb as a,Gb as r,Hb as T,Mc as O,Qb as w,Tb as v,Va as c,Vb as p,ab as D,e as k,eb as I,ic as g,jb as B,kb as P,nc as h,oa as x,oc as _,pc as f,sa as m,ta as s,wd as L,xb as S,zb as b}from"./chunk-45TUMJS2.js";import"./chunk-NF7PG5F2.js";function te(o,d){if(o&1){let t=w();a(0,"button",6),v("click",function(){m(t);let e=p();return s(e.onPrint())}),T(1,"i",7),a(2,"span"),g(3,"Print"),r()()}}function ie(o,d){if(o&1){let t=w();a(0,"div",8)(1,"h6"),g(2,"Outlet"),r(),a(3,"outlet-selector",9),v("ngModelChange",function(e){m(t);let n=p();return s(n.onEntityIDChange(e))}),r(),a(4,"h6"),g(5,"Sales Order Tag"),r(),a(6,"ng-select",10),f("ngModelChange",function(e){m(t);let n=p();return _(n.pageData().Filter.SalesOrderTagID,e)||(n.pageData().Filter.SalesOrderTagID=e),s(e)}),r(),a(7,"h6"),g(8,"From"),r(),a(9,"div",11)(10,"div",12)(11,"datepicker",13),f("dateChange",function(e){m(t);let n=p();return _(n.pageData().Filter.From,e)||(n.pageData().Filter.From=e),s(e)}),r()(),a(12,"div",12)(13,"app-timepicker",14),f("timeChange",function(e){m(t);let n=p();return _(n.pageData().Filter.StartTime,e)||(n.pageData().Filter.StartTime=e),s(e)}),r()()(),a(14,"h6"),g(15,"To"),r(),a(16,"div",11)(17,"div",12)(18,"datepicker",15),f("dateChange",function(e){m(t);let n=p();return _(n.pageData().Filter.To,e)||(n.pageData().Filter.To=e),s(e)}),r()(),a(19,"div",12)(20,"app-timepicker",14),f("timeChange",function(e){m(t);let n=p();return _(n.pageData().Filter.EndTime,e)||(n.pageData().Filter.EndTime=e),s(e)}),r()()()()}if(o&2){let t,i=p();c(3),l("accessType",2)("ngModel",i.pageData().Filter.EntityID),c(3),l("items",(t=i.pageData())==null||t.Options==null?null:t.Options.SalesOrderTags),h("ngModel",i.pageData().Filter.SalesOrderTagID),c(5),l("isFloatingLabel",!1),h("date",i.pageData().Filter.From),l("hidelClearBtn",!0),c(2),h("time",i.pageData().Filter.StartTime),l("fullWidth",!0),c(5),l("isFloatingLabel",!1)("hidelClearBtn",!0),h("date",i.pageData().Filter.To),c(2),h("time",i.pageData().Filter.EndTime),l("fullWidth",!0)}}function ne(o,d){o&1&&(a(0,"div",19),g(1,"\xA0"),r())}function ae(o,d){if(o&1&&(T(0,"pos-receipt-a4",16),a(1,"div",17),T(2,"div",18),r(),S(3,ne,2,0,"div",19)),o&2){let t,i=d.$implicit,e=d.$index,n=p(),u=p();l("data",i)("printTemplate",(t=u.printTemplates())==null?null:t.get(i.PrintTemplateID))("config",n.AppConfig)("workOrderMode",!1)("fullMode",!0)("stylesheet",n.StylesSheet),c(3),b(e!==(n.Data==null?null:n.Data.length)-1?3:-1)}}function re(o,d){o&1&&M(0,ae,4,7,null,null,A),o&2&&E(d.Data)}var ee=class o extends U{constructor(t,i,e){super(t,i,"Tool/GetBulkPrintLoader","Tool/GetBulkPrintLoader",e,null,!0);this.httpService=i;this.initPrintListener()}httpService;dialogFilter=x(G);receipts=y(null);printTemplates=y(null);invoiceIds=y([]);validatedSubject=new k(!1);preInitList(){this.pageData().Filter.From=new Date,this.pageData().Filter.To=new Date,this.pageData().Filter.StartTime="00:00",this.pageData().Filter.EndTime="23:59"}onFilter(){this.httpService.post(F.GetBulkPrintA4,this.pageData().Filter).subscribe(t=>{t?.Data?.length==0?this.toastrService.info("There are no transaction",H.Info):this.generatePrintTemplate(t.PrintTemplates),this.receipts.set(t),this.invoiceIds.set(t.Data.map(i=>i?.Invoice?.ID))})}generatePrintTemplate(t=[]){this.printTemplates.set(new Map(t.map(i=>[i.ID,i])))}getOpenDialogOptions(){return{validated$:this.validatedSubject.asObservable()}}onEntityIDChange(t){this.pageData().Filter.EntityID=t,this.validatedSubject.next(!!t)}onNewPrint(){this.dialogFilter.openDialog({validated$:this.validatedSubject.asObservable()})}onPrint(){window.setTimeout(function(){window.print()},500)}initPrintListener(){window.addEventListener("afterprint",this.handleAfterPrint)}handleAfterPrint=()=>{this.invoiceIds()?.length>0&&this.httpService.post(F.UpdateLastPrintByListID,{ListID:this.invoiceIds()}).subscribe()};ngOnDestroy(){window.removeEventListener("afterprint",this.handleAfterPrint)}static \u0275fac=function(i){return new(i||o)(D(z),D(V),D(W))};static \u0275cmp=I({type:o,selectors:[["bulk-invoice-A4"]],features:[B],decls:11,vars:7,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","filterChange","pageData","hideSearchBox","text","filter","isFilterOnDropdown"],[1,"btn","btn-outline-secondary","me-3"],[1,"btn","btn-success",3,"click"],["filters",""],[1,"container-fluid","mt-5"],[1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa","fa-print","me-3"],[1,"dialog-filter"],["placeholder","Choose an Outlet",3,"ngModelChange","accessType","ngModel"],["bindLabel","Name","bindValue","ID","placeholder","Choose Sales Order Tag",3,"ngModelChange","items","ngModel"],[1,"d-flex","align-items-center","gap-5"],[1,"w-100"],["placeholder","From","appearance","outline","name","From",1,"me-4",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],[3,"timeChange","time","fullWidth"],["placeholder","To","appearance","outline","name","To",1,"me-4",3,"dateChange","isFloatingLabel","hidelClearBtn","date"],["customContainerClass","pos-bulk-invoice",3,"data","printTemplate","config","workOrderMode","fullMode","stylesheet"],[1,"d-print-none","mt-8"],[2,"border-top-style","dotted","margin-bottom","5px"],[1,"page-break"]],template:function(i,e){if(i&1){let n=w();a(0,"mainpanel-cmp",1),f("textChange",function(C){return m(n),_(e.pageData().Filter.Number,C)||(e.pageData().Filter.Number=C),s(C)}),v("onSubmit",function(){return e.onFilter()}),f("filterChange",function(C){return m(n),_(e.pageData().Filter,C)||(e.pageData().Filter=C),s(C)}),a(1,"actions"),S(2,te,4,0,"button",2),a(3,"button",3),v("click",function(){return e.onNewPrint()}),g(4,"New"),r()(),a(5,"div",4),P(6,ie,21,14,"ng-template",null,0,O),r(),a(8,"content")(9,"div",5),S(10,re,2,0),r()()()}if(i&2){let n,u;l("pageData",e.menuData())("hideSearchBox",!0),h("text",e.pageData().Filter.Number)("filter",e.pageData().Filter),l("isFilterOnDropdown",!1),c(2),b(((n=e.receipts())==null||n.Data==null?null:n.Data.length)>0?2:-1),c(8),b((u=e.printTemplates()&&e.receipts())?10:-1,u)}},dependencies:[L,$,Z,K,J,Q,q,X,R,N,j,Y],styles:["input.p-inputtext{height:46.63px;border-color:#0000001f!important} input.p-inputtext :hover{border-color:#0000001f!important}@media print{.page-break[_ngcontent-%COMP%]{page-break-after:always}}"],changeDetection:0})};export{ee as BulkInvoiceA4Component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as te}from"./chunk-QD7VJ23Y.js";import{b as X,c as Y}from"./chunk-YUHIF5OG.js";import{a as Z,b as ee}from"./chunk-CE4YPYNH.js";import{a as Q,b as W}from"./chunk-IWAI7MVS.js";import{a as B}from"./chunk-
|
|
1
|
+
import{f as te}from"./chunk-QD7VJ23Y.js";import{b as X,c as Y}from"./chunk-YUHIF5OG.js";import{a as Z,b as ee}from"./chunk-CE4YPYNH.js";import{a as Q,b as W}from"./chunk-IWAI7MVS.js";import{a as B}from"./chunk-GTJCDIU6.js";import{ra as K}from"./chunk-CNL7LBPM.js";import{F as J,h as q,p as G}from"./chunk-7OJUWRPB.js";import{a as d}from"./chunk-PPTZHIIZ.js";import{q as m}from"./chunk-UBUWTJXF.js";import{Eb as p,Fb as g,Gb as C,Gc as N,Hc as R,Mc as z,Nb as x,Qb as A,Tb as E,Tc as v,Va as _,Vb as i,Y as h,ab as b,ba as f,d as w,dc as I,ea as O,eb as M,ga as S,ic as T,ka as L,kb as s,kc as H,l as u,na as P,oa as D,od as F,pd as k,sa as l,ta as c,wd as U,xb as V,za as $,zb as j}from"./chunk-45TUMJS2.js";var y=class o{signalRClient=D(B);continuedCategories$;allCategories$;_onOpenTreeSelector=new w;onOpenTreeSelector$=this._onOpenTreeSelector.asObservable();constructor(t){this.continuedCategories$=this.onOpenTreeSelector$.pipe(S(this.signalRClient.recacheCategory$),f((e,[r,n])=>n||!e.length?(this.signalRClient.resetCategoryCache(),t.get("/API/catalog/category/ActiveOptions")):u(e),[]),h(1)),this.allCategories$=this.onOpenTreeSelector$.pipe(S(this.signalRClient.recacheCategory$),f((e,[r,n])=>n||!e.length?t.get("/API/catalog/category/SelectOptions"):u(e),[]),h(1))}onOpenTreeSelector(){this._onOpenTreeSelector.next(!0)}forceLoadCategories(){this._onOpenTreeSelector.next(!0)}static \u0275fac=function(e){return new(e||o)(P(m))};static \u0275prov=L({token:o,factory:o.\u0275fac,providedIn:"root"})};function ae(o,t){o&1&&x(0)}function le(o,t){if(o&1&&(g(0,"p-floatLabel",1),s(1,ae,1,0,"ng-container",2),g(2,"label",3),T(3,"Category"),C()()),o&2){i();let e=I(3);_(),p("ngTemplateOutlet",e)}}function ce(o,t){o&1&&x(0)}function se(o,t){if(o&1&&s(0,ce,1,0,"ng-container",2),o&2){i();let e=I(3);p("ngTemplateOutlet",e)}}function pe(o,t){if(o&1&&(g(0,"div",6),T(1),C()),o&2){let e=i(2);p("matTooltip",e.selectedCategoryLabel),_(),H(" ",e.selectedCategoryLabel," ")}}function ge(o,t){if(o&1){let e=A();g(0,"p-treeSelect",4),N(1,"async"),E("onShow",function(){l(e);let n=i();return c(n.loadCategories())})("ngModelChange",function(n){l(e);let a=i();return c(a.onSelectCategory(n))})("onClear",function(){l(e);let n=i();return c(n.onClear())})("onNodeUnselect",function(n){l(e);let a=i();return c(a.onUnselectCategory(n))}),s(2,pe,2,2,"ng-template",5),C()}if(o&2){let e=i();p("options",R(1,4,e.categories$))("ngModel",e.selectedCategory)("showClear",e.showClear)("placeholder",e.showLabel?"":e.placeholder)}}var oe=class o{constructor(t,e){this.http=t;this.treeSelector=e}http;treeSelector;continuedCategoriesOnly=!0;categories=[];showClear=!1;showLabel=!1;placeholder="Select Category";isInitializedCategoryLabel=!1;selectedCategory;selectedCategoryID;selectedCategoryIDChange=new $;onSelectedCategory=v();_onClearCategory=v({alias:"onClearCategory"});selectedCategoryLabel;top=0;isLoadCategories=!1;categories$;ngAfterViewInit(){let t=document.querySelector("body");this.top=t.getBoundingClientRect().top*-1}ngOnInit(){this.isInitializedCategoryLabel&&(d.IsEmpty(this.selectedCategoryID)&&d.IsNotEmpty(this.categories)&&(this.selectedCategoryID=this.categories[0]?.key),this.selectedCategory=this.findSelectedCategory(this.categories,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)),this.categories$=this.continuedCategoriesOnly?this.treeSelector.continuedCategories$:this.treeSelector.allCategories$,this.categories$=this.categories$.pipe(O(t=>{this.selectedCategory=this.findSelectedCategory(t,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)}))}onSelectCategory(t){t&&(this.selectedCategory=t,this.generateLabelSelectedCategory(this.selectedCategory),this.selectedCategoryID=t?.key,this.selectedCategoryIDChange.emit(this.selectedCategoryID),this.onSelectedCategory.emit(this.selectedCategory))}onUnselectCategory(t){this.onSelectCategory(t.node)}generateLabelSelectedCategory(t){if(t){let e=[];this.selectedCategoryLabel="";do e=[...e,t.label],t=t.parent;while(t!==void 0);this.selectedCategoryLabel=e.reverse().join("/")}else this.selectedCategoryLabel=this.placeholder}findSelectedCategory(t,e){if(d.IsNotEmpty(e))for(let r of t){if(r.key===e)return r;{r.children=r.children?r.children:[],r.children=r.children.map(a=>(a.parent=r,a));let n=this.findSelectedCategory(r.children,e);if(n)return n}}else return null}loadCategories(){try{setTimeout(()=>{let t=document.querySelector(".p-overlay.p-component"),e=this.top+t.getBoundingClientRect().top,r=t.getAttribute("style")||"";t.setAttribute("style",`${r} top: ${e+this.top}px;`)},0)}catch(t){console.error("Error adjusting top position:",t)}finally{this.treeSelector.onOpenTreeSelector()}}onClear(){this.selectedCategory=null,this.generateLabelSelectedCategory(null),this.selectedCategoryID=null,this.selectedCategoryIDChange.emit(null),this._onClearCategory.emit()}static \u0275fac=function(e){return new(e||o)(b(m),b(y))};static \u0275cmp=M({type:o,selectors:[["POS-product-category-select"]],inputs:{continuedCategoriesOnly:"continuedCategoriesOnly",categories:"categories",showClear:"showClear",showLabel:"showLabel",placeholder:"placeholder",isInitializedCategoryLabel:"isInitializedCategoryLabel",selectedCategoryID:"selectedCategoryID"},outputs:{selectedCategoryIDChange:"selectedCategoryIDChange",onSelectedCategory:"onSelectedCategory",_onClearCategory:"onClearCategory"},decls:4,vars:1,consts:[["categorySelectTemplate",""],["variant","on",1,"w-100"],[4,"ngTemplateOutlet"],["for","selectCategory",1,"tree-category-label",2,"z-index","99 !important"],["appendTo","body","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectCategory",3,"onShow","ngModelChange","onClear","onNodeUnselect","options","ngModel","showClear","placeholder"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,r){e&1&&(V(0,le,4,1,"p-floatLabel",1)(1,se,1,1,"ng-container"),s(2,ge,3,6,"ng-template",null,0,z)),e&2&&j(r.showLabel?0:1)},dependencies:[U,F,W,Q,Y,X,K,J,q,G,ee,Z,te,k],styles:[".p-overlay.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important} .p-float-label .p-inputwrapper-filled~label.tree-category-label{left:.5rem!important}"]})};export{y as a,oe as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as L}from"./chunk-ICRIBA3P.js";import{a as ce}from"./chunk-PPTZHIIZ.js";import{a as le}from"./chunk-
|
|
1
|
+
import{a as L}from"./chunk-ICRIBA3P.js";import{a as ce}from"./chunk-PPTZHIIZ.js";import{a as le}from"./chunk-MAZ3OYV7.js";import{n as ue,q as de}from"./chunk-UBUWTJXF.js";import{D as H,H as p,I as Z,J as $,Ka as ie,M as q,R as ee,_c as ae,aa as D,c as f,e as F,ea as E,fb as oe,i as W,j as b,k as T,ka as A,l as x,la as te,m as h,ma as N,na as B,oa as M,r as C,ra as re,s as U,t as X,xa as ne,xd as se}from"./chunk-45TUMJS2.js";import{a as z,b as Q,j as I}from"./chunk-NF7PG5F2.js";var R=class{static emptyDate="Please fill invoice date";static emptyNumber="Please fill invoice number";static emptyOrderNumber="Number is Required";static failGetMenu="Fail to get pos menu";static failToGetRetur="Fail to get retur";static failGetLocalPosStorage="Fail to get setting and option from local storage, Please re-cache your data while online!";static failGetVariant='"Error getting variant with {0} {1}" - {2}';static failGetLocalVariant="Fail to get variant from local storage, Please re-cache your data while online!";static emptyBarcodeFormat='No product with barcode "{0}"';static emptyCustomerFormat='No customer with code "{0}"';static failGetSalesOrder="Fail to get sales order";static failBin="Fail to bin transaction";static failGetCustomer="Fail to get customer's data";static failCreateCustomer="Fail to create customer";static noRoleContact="You have no right to create new customer";static submitLocally="Connection unavailable ~ offline! Order stored locally";static offlineMode="There is no internet connection, it is now in offline mode";static OfflineOrderNotSupport="Offline order is not Supported!";static failOrderConnectionTimeOut="Connection timeout! Please try uploading your order again!";static failDeletePark="Fail to delete park";static emptyAccessRegister="You do not have access to any Register";static failGenerateNewNumber="Fail to generate new number";static emptyPayment="There is no active payment method.";static failOpenRegister="Fail to open register";static failGetLocalOutletInfo="Fail to get outlet information from local storage, Please re-cache your data while online!";static failTrySubmit=`[Error submitting order]
|
|
2
2
|
{0}`;static failTryCreateCustomer=`"[Error creating customer]
|
|
3
3
|
"{0}`;static createCustomerOffline="Create customer is not supported when the connection offline";static emptyCustomer="Please select customer!";static emptySalesPerson="Please select sales person!";static emptySalesType="Please select sales type!";static failCreateNewVariant="Fail to create new variant";static requiredDefaultCategory="[WARNING] - POS / Quick Create Product requires Default Category";static emptyVariant="Item is undefined, please re-type";static emptyPOItem="You must have at least one item";static emptyEntity="Please select entity before proceeding..";static failGetRetrieve="Fail to get retrieve";static failTryPark=`[Error submitting park]
|
|
4
4
|
{0}`;static failTryGetPark=`[Error during get park]
|