dealposbooks 5.44.6 → 5.45.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/3rdpartylicenses.txt +26 -26
- package/chunk-27TIOMYM.js +1 -0
- package/{chunk-JUCJGYST.js → chunk-2AAVNIG7.js} +1 -1
- package/{chunk-UKBDY33R.js → chunk-2D2YD753.js} +1 -1
- package/{chunk-ZDTMCWOO.js → chunk-2MKKFLNJ.js} +1 -1
- package/{chunk-5JV52UYK.js → chunk-2XUSZCQL.js} +1 -1
- package/{chunk-TARMA6TN.js → chunk-35MXFTDN.js} +1 -1
- package/{chunk-2LQVI4EI.js → chunk-36OX4S7M.js} +1 -1
- package/{chunk-NHZLS6JU.js → chunk-3A4BFUGD.js} +1 -1
- package/{chunk-LV6YHYS7.js → chunk-3FDVZDYS.js} +1 -1
- package/{chunk-SPKOXGSS.js → chunk-3GGXPPQT.js} +1 -1
- package/chunk-3OMEVXSG.js +1 -0
- package/{chunk-BJV3MSHK.js → chunk-4ETCCLMI.js} +1 -1
- package/chunk-4MZNOMUN.js +1 -0
- package/{chunk-RJTHFDGC.js → chunk-4PUT2IIE.js} +1 -1
- package/{chunk-AF357XP4.js → chunk-5CZNOXPC.js} +1 -1
- package/{chunk-HK76OJ3U.js → chunk-5EJXAYSX.js} +1 -1
- package/{chunk-N4BTKSCQ.js → chunk-66D4GMNG.js} +1 -1
- package/{chunk-I7ILLTFH.js → chunk-6A2KUPOG.js} +1 -1
- package/{chunk-IGVRGJ3L.js → chunk-6D4IGQVY.js} +1 -1
- package/{chunk-ATJ55H5D.js → chunk-6GN3MGBY.js} +1 -1
- package/{chunk-MZGGLVOX.js → chunk-6HX55BLY.js} +1 -1
- package/{chunk-MZAFOBGT.js → chunk-6NX36ZC2.js} +1 -1
- package/{chunk-MAID3JDN.js → chunk-6PNHT5U7.js} +1 -1
- package/{chunk-CNXEJBY5.js → chunk-7DYACF4D.js} +1 -1
- package/{chunk-W3PCANAM.js → chunk-7FFVGWUP.js} +1 -1
- package/{chunk-WK4BTEU4.js → chunk-7XL26PM3.js} +1 -1
- package/{chunk-EFDD6Q3K.js → chunk-AOOG6YOT.js} +1 -1
- package/{chunk-ARXP327B.js → chunk-ARH3WEEF.js} +1 -1
- package/chunk-AUYM5P42.js +202 -0
- package/{chunk-IYO6P6XI.js → chunk-B54PFCWI.js} +1 -1
- package/{chunk-JDWPD3PQ.js → chunk-BJWQQABR.js} +2 -2
- package/{chunk-BUYRVZ5Z.js → chunk-BLR3HBYP.js} +1 -1
- package/{chunk-UDIFKJ7M.js → chunk-BXEGWIR3.js} +1 -1
- package/{chunk-AL647DUL.js → chunk-CNXYBR45.js} +1 -1
- package/{chunk-EJBBENFA.js → chunk-CSDQYXOM.js} +1 -1
- package/{chunk-SVHOGUGR.js → chunk-CVL3S2HY.js} +1 -1
- package/chunk-DLIPUA4K.js +1 -0
- package/{chunk-NBBH4QTN.js → chunk-DX2A6LIU.js} +1 -1
- package/{chunk-M5PA3FZY.js → chunk-EB6NEJHF.js} +1 -1
- package/chunk-EERQ53V7.js +1 -0
- package/{chunk-3LESCZJU.js → chunk-EG4A3G2F.js} +1 -1
- package/{chunk-VPQDUC77.js → chunk-EL5BUFMO.js} +1 -1
- package/{chunk-76LPTGLX.js → chunk-EQ4PLHI4.js} +1 -1
- package/{chunk-EHM2KHSR.js → chunk-FPI32FQH.js} +1 -1
- package/{chunk-UIO722AZ.js → chunk-G2DQX336.js} +1 -1
- package/{chunk-2BZH24YX.js → chunk-GIQOPGQF.js} +1 -1
- package/{chunk-RLUIUJY3.js → chunk-GX5CQNX3.js} +1 -1
- package/{chunk-O4APZZ3M.js → chunk-H3BFDSSJ.js} +3 -3
- package/{chunk-7FFMPB6T.js → chunk-H6HNANYB.js} +1 -1
- package/{chunk-CWHL7PNC.js → chunk-H7Q35Y7G.js} +1 -1
- package/{chunk-6XT4TD5A.js → chunk-HAQ36ZI6.js} +1 -1
- package/{chunk-MPHY6FVN.js → chunk-HG5MKVNR.js} +1 -1
- package/{chunk-NPVJGHTO.js → chunk-HPITHIZA.js} +1 -1
- package/{chunk-3GMNUULJ.js → chunk-IFQIZ5KJ.js} +1 -1
- package/{chunk-7COI2POD.js → chunk-IGWIRCAS.js} +1 -1
- package/{chunk-ODRV6XWO.js → chunk-IHZ55QSI.js} +1 -1
- package/chunk-ITBP232X.js +129 -0
- package/{chunk-7ZYLIEUZ.js → chunk-IYBQ7NLP.js} +1 -1
- package/{chunk-K4P3JOA6.js → chunk-JRVYSBUZ.js} +1 -1
- package/{chunk-Z6ETOFZG.js → chunk-K5U6AQ75.js} +1 -1
- package/{chunk-ZEWON3MW.js → chunk-KGQGMXW6.js} +1 -1
- package/{chunk-MS6WBVQX.js → chunk-KIBBRAL5.js} +1 -1
- package/{chunk-WXT6EZ2V.js → chunk-KJ2WX3FC.js} +1 -1
- package/{chunk-LHA7OCPB.js → chunk-KW4A377H.js} +1 -1
- package/{chunk-6O5EWYT7.js → chunk-LFZCMZAP.js} +1 -1
- package/{chunk-65IKFGTF.js → chunk-LSK6C72D.js} +1 -1
- package/{chunk-3KWAJ7F2.js → chunk-M6LSMNSQ.js} +1 -1
- package/{chunk-IJTQE2H4.js → chunk-MFK5RQPJ.js} +1 -1
- package/{chunk-PPKCZMH4.js → chunk-N4JIPI53.js} +1 -1
- package/{chunk-VKADRKJU.js → chunk-N75VYDTF.js} +1 -1
- package/{chunk-E3ZGQRZ3.js → chunk-NCDT6JPP.js} +1 -1
- package/{chunk-6K5LNQ4J.js → chunk-NMCKMUY4.js} +3 -3
- package/{chunk-NMSYINDE.js → chunk-NZN6QJR3.js} +1 -1
- package/chunk-O2QIO42B.js +7 -0
- package/chunk-OBZRC7DX.js +1 -0
- package/{chunk-72LNXEXV.js → chunk-OIBDX2CA.js} +1 -1
- package/{chunk-3HZX655H.js → chunk-OTMBGB3T.js} +1 -1
- package/{chunk-REF7WUSQ.js → chunk-OTO7ELZ2.js} +1 -1
- package/{chunk-XLPFLHKU.js → chunk-OVAQBQEJ.js} +1 -1
- package/{chunk-RHH3CU5D.js → chunk-PJDNYCLD.js} +1 -1
- package/{chunk-AGB5OXUF.js → chunk-PPJQN2WS.js} +1 -1
- package/{chunk-AJZ7YLT4.js → chunk-Q24GCSGD.js} +1 -1
- package/{chunk-3KYU6FI2.js → chunk-Q5CVMJZC.js} +1 -1
- package/chunk-QF4D5YPK.js +1 -0
- package/chunk-QVIFRW2H.js +160 -0
- package/{chunk-GX55DZY5.js → chunk-R6TARUG2.js} +1 -1
- package/{chunk-VRKBMD72.js → chunk-R7N6BWL5.js} +1 -1
- package/{chunk-MJ6ZJF3H.js → chunk-RZFXAB7W.js} +1 -1
- package/{chunk-JXEIGOVF.js → chunk-S5O44AS7.js} +1 -1
- package/{chunk-WT4Z2QBS.js → chunk-T6B4BOOB.js} +1 -1
- package/chunk-T7VJORKB.js +1 -0
- package/{chunk-MWFWXJG3.js → chunk-U5XXKH2H.js} +1 -1
- package/{chunk-A4X33OU3.js → chunk-U7BSQJHQ.js} +1 -1
- package/{chunk-6V36DOK2.js → chunk-UP67MADL.js} +1 -1
- package/{chunk-L3PZS6EL.js → chunk-VGNJD35F.js} +1 -1
- package/{chunk-E3QNEH3B.js → chunk-VJ3IBUVO.js} +1 -1
- package/{chunk-JYNY6F6D.js → chunk-VXTZNZMH.js} +1 -1
- package/{chunk-SB5MSLCX.js → chunk-VZ5CMS5O.js} +1 -1
- package/{chunk-T2JZ7FIJ.js → chunk-W5ER7276.js} +1 -1
- package/{chunk-OB46Z7ZH.js → chunk-XD7VHCRC.js} +1 -1
- package/{chunk-B6HWQE7D.js → chunk-Y6YUTTA4.js} +1 -1
- package/{chunk-FLYLFPA3.js → chunk-YOMVOFLB.js} +1 -1
- package/{chunk-ACTRMWEI.js → chunk-YV2QJ63P.js} +1 -1
- package/{chunk-2CF6W3MQ.js → chunk-ZRCCGUC4.js} +1 -1
- package/{chunk-OH3DUGUZ.js → chunk-ZZCT6WNV.js} +1 -1
- package/index.html +2 -2
- package/{main-SIOXXMKG.js → main-SLMY35VH.js} +1 -1
- package/package.json +1 -1
- package/chunk-56NDKVXE.js +0 -1
- package/chunk-BZBA3AI5.js +0 -160
- package/chunk-EKSLKPSH.js +0 -1
- package/chunk-GYLR4MM5.js +0 -7
- package/chunk-IKAVDQZY.js +0 -202
- package/chunk-KXE3J4PK.js +0 -1
- package/chunk-QBRO5YKE.js +0 -129
- package/chunk-XURZEJ5V.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as we}from"./chunk-UIO722AZ.js";import"./chunk-WT4Z2QBS.js";import{a as Ce,b as ve,c as Ee,d as he,e as Ie,f as be}from"./chunk-ODRV6XWO.js";import{a as ye,b as Ve,c as Se}from"./chunk-6XT4TD5A.js";import"./chunk-7COI2POD.js";import{d as _e,f as ue,g as fe,h as xe,k as ge}from"./chunk-VPQDUC77.js";import"./chunk-76LPTGLX.js";import"./chunk-CWHL7PNC.js";import"./chunk-VRKBMD72.js";import{a as R}from"./chunk-KXE3J4PK.js";import{a as ie}from"./chunk-E3QNEH3B.js";import"./chunk-JUCJGYST.js";import"./chunk-6O5EWYT7.js";import"./chunk-I7ILLTFH.js";import"./chunk-2LQVI4EI.js";import"./chunk-SPKOXGSS.js";import"./chunk-3KYU6FI2.js";import"./chunk-IJTQE2H4.js";import{a as ce,b as de}from"./chunk-WXT6EZ2V.js";import"./chunk-AJZ7YLT4.js";import"./chunk-ATJ55H5D.js";import{e as pe,f as me,h as se}from"./chunk-O4APZZ3M.js";import"./chunk-L3PZS6EL.js";import{a as ae,b as le}from"./chunk-5JV52UYK.js";import"./chunk-ACTRMWEI.js";import"./chunk-ARXP327B.js";import{w as oe,x as re}from"./chunk-7FFMPB6T.js";import"./chunk-UKBDY33R.js";import"./chunk-72LNXEXV.js";import{d as ne}from"./chunk-EFDD6Q3K.js";import"./chunk-3KWAJ7F2.js";import"./chunk-ZDTMCWOO.js";import"./chunk-F2X3VGZZ.js";import{h as X,k as Y,p as Z,q as ee,s as te}from"./chunk-SB5MSLCX.js";import{$b as v,Db as d,Dc as J,Ec as T,Gc as q,Ha as S,I as N,Lb as m,Nc as E,Ob as A,Oc as I,Pc as G,Qb as h,Rb as F,Rc as c,Tb as P,Ub as D,Vb as n,Wb as i,Xb as _,Y as U,_ as w,ec as y,fb as j,fc as s,hb as l,ia as k,lc as H,m as M,mc as L,nc as O,qa as f,qc as $,ra as x,rc as r,s as B,sc as g,tc as C,wc as Q,xb as K,xc as W,yc as z}from"./chunk-6K5LNQ4J.js";import{e as Re}from"./chunk-YQFG5XE2.js";var Je=Re(Ve());var ke=["stepper"],Ae=()=>({width:"30vw"}),Fe=()=>({"1199px":"75vw","575px":"100vw"}),Pe=()=>({height:"calc(100vh - 70px)"}),De=t=>({"col-12":t}),Me=(t,p,e)=>({"bg-gradient-danger":t,"bg-gradient-success":p,"bg-gradient-warning":e}),Te=t=>({"state-danger":t});function Be(t,p){if(t&1){let e=v();n(0,"p-button",14),y("click",function(){f(e);let o=s(2);return x(o.onPrevStep())}),i()}if(t&2){let e=s(2);m("disabled",e.stepActiveIndex()===1)}}function Ne(t,p){if(t&1){let e=v();n(0,"p-button",15),y("click",function(){f(e);let o=s(2);return x(o.onNextStep())}),i()}if(t&2){let e=s(2);m("disabled",e.stepActiveIndex()===3||!e.JournalEntryImport())}}function Ue(t,p){if(t&1){let e=v();n(0,"p-button",16),y("click",function(){f(e);let o=s(2);return x(o.onReset())}),i()}}function je(t,p){if(t&1&&d(0,Be,1,1,"p-button",11)(1,Ne,1,1,"p-button",12)(2,Ue,1,0,"p-button",13),t&2){let e=s();m("ngIf",e.stepActiveIndex()>1),l(),m("ngIf",e.stepActiveIndex()<3),l(),m("ngIf",e.stepActiveIndex()===3)}}function Ke(t,p){if(t&1){let e=v();n(0,"POS-uppy",25),y("fileUploaded",function(o){f(e);let u=s(2);return x(u.onFileUploaded(o))})("fileRemoved",function(o){f(e);let u=s(2);return x(u.onFileRemoved(o))}),i(),n(1,"p",26),r(2," Please refer this "),n(3,"a",27),r(4,"article"),i(),r(5," for more information "),i()}if(t&2){let e=s(2);m("uppyCoreConfiguration",e.uppyCore)("dashboardPropsConfiguration",e.dashboardProps)("sampleUrl",e.SAMPLE_URL)("subtitle",e.subtitle)}}function He(t,p){t&1&&(n(0,"tr"),_(1,"th",29),n(2,"th",30),r(3," Number "),_(4,"p-sortIcon",31),i(),n(5,"th",32),r(6," Outlet "),_(7,"p-sortIcon",33),i(),n(8,"th",34),r(9," Date "),_(10,"p-sortIcon",35),i(),n(11,"th",36),r(12," Status "),_(13,"p-sortIcon",37),i(),n(14,"th"),r(15,"Message"),i()())}function Le(t,p){if(t&1&&(n(0,"div",41)(1,"span"),r(2),i(),n(3,"span"),r(4),i()()),t&2){let e=p.$implicit;l(2),g(e.issue),l(2),g(e.solution)}}function Oe(t,p){if(t&1&&(n(0,"div",40),P(1,Le,5,2,"div",41,F),i()),t&2){let e=s(2).$implicit;l(),D(e.issues)}}function $e(t,p){}function Qe(t,p){if(t&1&&d(0,Oe,3,0,"div",40)(1,$e,0,0),t&2){let e=s().$implicit;h(e.issues&&e.issues.length>0?0:1)}}function We(t,p){if(t&1&&(n(0,"tr")(1,"td"),_(2,"p-button",38),i(),n(3,"td"),r(4),i(),n(5,"td"),r(6),i(),n(7,"td"),r(8),E(9,"date"),i(),n(10,"td",39),r(11),i(),n(12,"td",39),d(13,Qe,2,1),i()()),t&2){let e=p.$implicit,a=p.expanded,o=s(4);l(2),m("pRowToggler",e)("text",!0)("rounded",!0)("plain",!0)("icon",a?"fa-solid fa-chevron-down":"fa-solid fa-chevron-right"),l(2),g(e.number),l(2),C(" ",e.outlet," "),l(2),g(G(9,12,e.date,"d MMM y")),l(2),m("ngClass",q(15,Me,e.actionName==="Error",e.actionName==="New",e.actionName==="Update")),l(),C(" ",e.actionName," "),l(),m("ngClass",T(19,Te,o.hasIssue)),l(),h(o.hasIssue?13:-1)}}function ze(t,p){t&1&&(n(0,"tr")(1,"th",45),r(2," Code "),_(3,"p-sortIcon",46),i(),n(4,"th",47),r(5," Name "),_(6,"p-sortIcon",48),i(),n(7,"th",49),r(8," Note "),_(9,"p-sortIcon",50),i(),n(10,"th",51),r(11," Debit "),_(12,"p-sortIcon",52),i(),n(13,"th",53),r(14," Credit "),_(15,"p-sortIcon",54),i(),n(16,"th"),r(17,"Message"),i()())}function qe(t,p){if(t&1&&(n(0,"div",41)(1,"span"),r(2),i(),n(3,"span"),r(4),i()()),t&2){let e=p.$implicit;l(2),g(e.issue),l(2),g(e.solution)}}function Ge(t,p){if(t&1&&(n(0,"div",40),P(1,qe,5,2,"div",41,F),i()),t&2){let e=s().$implicit;l(),D(e.issues)}}function Xe(t,p){if(t&1&&(n(0,"tr")(1,"td"),r(2),i(),n(3,"td"),r(4),i(),n(5,"td"),r(6),i(),n(7,"td"),r(8),E(9,"number"),i(),n(10,"td"),r(11),E(12,"number"),i(),n(13,"td",39),d(14,Ge,3,0,"div",40),i()()),t&2){let e=p.$implicit,a=s(5);l(2),g(e.accountCode),l(2),g(e.accountName),l(2),g(e.note),l(2),C(" ",I(9,7,e.debitAmount)," "),l(3),C(" ",I(12,9,e.creditAmount)," "),l(2),m("ngClass",T(11,Te,e.issues&&e.issues.length>0)),l(),h(a.hasIssue?14:-1)}}function Ye(t,p){t&1&&(n(0,"tr")(1,"td",55),r(2," There are no order for this product yet. "),i()())}function Ze(t,p){if(t&1&&(n(0,"tr")(1,"td",42)(2,"div",43)(3,"p-table",44),d(4,ze,18,0,"ng-template",null,3,c)(6,Xe,15,13,"ng-template",null,6,c)(8,Ye,3,0,"ng-template",null,8,c),i()()()()),t&2){let e=p.$implicit;l(3),m("value",e.items)}}function et(t,p){if(t&1&&(n(0,"p-table",28),d(1,He,16,0,"ng-template",null,3,c)(3,We,14,21,"ng-template",null,6,c)(5,Ze,10,1,"ng-template",null,7,c),i()),t&2){let e=s(3);m("scrollable",!0)("scrollHeight","calc(100vh - 160px)")("value",e.JournalEntryImport().dataRow)}}function tt(t,p){if(t&1&&d(0,et,7,3,"p-table",28),t&2){let e=s(2);h(e.JournalEntryImport()?0:-1)}}function nt(t,p){t&1&&(n(0,"h5"),r(1,"Successfully Imported"),i())}function it(t,p){if(t&1&&(n(0,"p-panel")(1,"p-scroll-panel")(2,"div",17)(3,"div",18)(4,"p-stepper",19,5)(6,"p-step-list")(7,"p-step",20)(8,"div",21),_(9,"i",22),n(10,"span"),r(11,"Upload"),i()()(),n(12,"p-step",20)(13,"div",21),_(14,"i",23),n(15,"span"),r(16,"Preview"),i()()(),n(17,"p-step",20)(18,"div",21),_(19,"i",24),n(20,"span"),r(21,"Finish"),i()()()(),n(22,"p-step-panels")(23,"p-step-panel",20),d(24,Ke,6,4,"ng-template",null,1,c),i(),n(26,"p-step-panel",20),d(27,tt,1,1,"ng-template",null,1,c),i(),n(29,"p-step-panel",20),d(30,nt,2,0,"ng-template",null,1,c),i()()()()()()()),t&2){let e=s();l(),A(J(11,Pe)),l(2),m("ngClass",T(12,De,e.stepActiveIndex()===2)),l(),m("linear",!0)("value",e.stepActiveIndex()),l(3),m("value",1),l(5),m("value",2),l(5),m("value",3),l(6),m("value",1),l(3),m("value",2),l(3),m("value",3)}}function ot(t,p){if(t&1){let e=v();n(0,"p-button",56),y("onClick",function(){f(e);let o=s();return x(o.summaryDialogVisible.set(!1))}),i()}t&2&&m("rounded",!0)("text",!0)}function rt(t,p){if(t&1&&(n(0,"div",57)(1,"h4",58),r(2,"Import Summary"),i(),n(3,"p",59),r(4),i()()),t&2){let e=s();l(4),C("(",e.CSVRowCount()," rows ready for import)")}}function at(t,p){t&1&&(n(0,"div",63)(1,"h4",64),r(2,"Journal"),i()())}function lt(t,p){t&1&&(n(0,"div",65)(1,"h4",64),r(2,"Debit"),i()())}function pt(t,p){t&1&&(n(0,"div",65)(1,"h4",64),r(2,"Credit"),i()())}function mt(t,p){if(t&1&&(n(0,"div",60)(1,"div",61)(2,"p-card"),d(3,at,3,0,"ng-template",null,3,c),n(5,"div",60)(6,"div",61)(7,"h5",62),r(8),E(9,"number"),i()()()()(),n(10,"div",61)(11,"p-card"),d(12,lt,3,0,"ng-template",null,3,c),n(14,"div",60)(15,"div",61)(16,"h5",62),r(17),E(18,"number"),i()()()()(),n(19,"div",61)(20,"p-card"),d(21,pt,3,0,"ng-template",null,3,c),n(23,"div",60)(24,"div",61)(25,"h5",62),r(26),E(27,"number"),i()()()()()()),t&2){let e=s(2);l(8),C(" ",I(9,3,e.JournalEntryImport().summary.journal)," "),l(9),C(" ",I(18,5,e.JournalEntryImport().summary.debit)," "),l(9),C(" ",I(27,7,e.JournalEntryImport().summary.credit)," ")}}function st(t,p){if(t&1&&d(0,mt,28,9,"div",60),t&2){let e=s();h(e.JournalEntryImport()?0:-1)}}function ct(t,p){if(t&1){let e=v();n(0,"p-button",66),y("click",function(){f(e);let o=s();return x(o.summaryDialogVisible.set(!1))}),i(),n(1,"p-button",67),y("click",function(){f(e);let o=s();return x(o.onConfirmImport())}),i()}}var jt=(()=>{class t{constructor(){this.service=k(we),this.router=k(ne),this.subtitle="Accepted file format: .csv & max file size: 1MB",this.stepActiveIndex=S(1),this.JournalEntryImport=S(null),this.summaryDialogVisible=S(!1),this.CSVRowCount=S(0),this.dashboardProps={inline:!0,width:580,height:350},this.uppyCore={restrictions:{allowedFileTypes:["text/csv","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]}},this.SAMPLE_URL="https://res.cloudinary.com/pos/raw/upload/POS/CSV/Journal_DealPOS.csv"}ngAfterViewInit(){console.log("Stepper instance:",this.stepperRef)}onFileUpload(e){console.log("File upload event:",e);let a=new FormData;Array.isArray(e.currentFiles)&&e.currentFiles.forEach(o=>{o instanceof File&&a.append("File",o,o.name)}),console.log("Form data prepared for upload:",a.get("File")),this.service.importPreviewJournal(a).pipe(R("Import Preview"),B(o=>({cacheKey:o.cacheKey})),U(o=>this.service.importConfirmJournal(o)),w(()=>{this.router.navigate(["/pages/journal/journal-entry"])})).subscribe()}onFileRemoved(e){console.log("File removed event:",e),this.JournalEntryImport.set(null),this.CSVRowCount.set(0)}onNextStep(){if(this.stepActiveIndex()<3&&(this.stepActiveIndex.update(e=>e+1),this.stepActiveIndex()===3)){this.stepActiveIndex.update(()=>this.stepActiveIndex()-1),this.summaryDialogVisible.set(!0);return}}onPrevStep(){this.stepActiveIndex()>1&&this.stepActiveIndex.update(e=>e-1)}onFileUploaded(e){let a=new FormData;if("name"in e&&typeof e.name=="string")a.append("File",e,e.name),this.service.importPreviewJournal(a).pipe(R("Import Preview"),w(o=>{this.JournalEntryImport.set(o)})).subscribe(),Je.default.parse(e,{header:!0,skipEmptyLines:!0,complete:o=>{console.log("CSV Parsing Results:",o),this.CSVRowCount.set(o.data.length)},error:o=>{console.error("Error parsing CSV:",o)}});else return}onConfirmImport(){if(this.JournalEntryImport()&&this.JournalEntryImport().canProceed){let e={cacheKey:this.JournalEntryImport().cacheKey};this.service.importConfirmJournal(e).pipe(R("Import Confirm"),w(()=>{this.router.navigate(["/pages/journal/journal-entry"]),this.stepActiveIndex.update(a=>a+1),this.summaryDialogVisible.update(a=>!a)}),N(a=>(console.error("Error occurred during import confirmation:",a),this.stepActiveIndex.update(o=>o+1),this.summaryDialogVisible.update(o=>!o),M(null)))).subscribe()}else{console.error("Cannot proceed with import, JournalEntryImport is not set or canProceed is false.");return}}onReset(){this.stepActiveIndex.set(1),this.JournalEntryImport.set(null)}handleKeyboardEvent(e){e.key==="F2"&&this.onConfirmImport()}get hasIssue(){let e=this.JournalEntryImport();return e&&Array.isArray(e.dataRow)?e.dataRow.some(a=>{let o=a.issues&&a.issues.length>0,u=Array.isArray(a.items)&&a.items.some(b=>b.issues&&b.issues.length>0);return o||u}):!1}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=K({type:t,selectors:[["app-journal-entry-import"]],viewQuery:function(a,o){if(a&1&&H(ke,5),a&2){let u;L(u=O())&&(o.stepperRef=u.first)}},hostBindings:function(a,o){a&1&&y("keydown",function(b){return o.handleKeyboardEvent(b)},!1,j)},decls:14,vars:10,consts:[["actionButton",""],["content",""],["closeIconTemplate",""],["header",""],["footer",""],["stepper",""],["body",""],["expandedrow",""],["emptymessage",""],["pageTitle","Manual Journal Import"],["position","center","appendTo","body",3,"visibleChange","modal","visible","breakpoints","draggable","closeIconTemplate","dismissableMask"],["label","Back","severity","secondary","variant","outlined",3,"disabled","click",4,"ngIf"],["label","Next","severity","primary",3,"disabled","click",4,"ngIf"],["label","Finish","severity","primary",3,"click",4,"ngIf"],["label","Back","severity","secondary","variant","outlined",3,"click","disabled"],["label","Next","severity","primary",3,"click","disabled"],["label","Finish","severity","primary",3,"click"],[1,"row","justify-content-center"],[1,"col-6",3,"ngClass"],[3,"linear","value"],[3,"value"],[1,"d-flex","gap-2","align-items-center"],[1,"fa-solid","fa-upload"],[1,"fa-solid","fa-file"],[1,"fa-solid","fa-check"],[3,"fileUploaded","fileRemoved","uppyCoreConfiguration","dashboardPropsConfiguration","sampleUrl","subtitle"],[1,"fst-italic"],["href","#","target","_blank",1,"link","link-primary"],["dataKey","number",3,"scrollable","scrollHeight","value"],[2,"width","5rem"],["pSortableColumn","number"],["field","number"],["pSortableColumn","outlet"],["field","outlet"],["pSortableColumn","date"],["field","date"],["pSortableColumn","inventoryStatus"],["field","inventoryStatus"],["type","button","pRipple","",3,"pRowToggler","text","rounded","plain","icon"],[3,"ngClass"],[1,"d-flex","flex-column","gap-2"],[1,"d-flex","flex-column"],["colspan","8"],[1,"p-4"],["dataKey","accountID",3,"value"],["pSortableColumn","accountCode"],["field","accountCode"],["pSortableColumn","accountName"],["field","accountName"],["pSortableColumn","note"],["field","note"],["pSortableColumn","debitAmount"],["field","debitAmount"],["pSortableColumn","creditAmount"],["field","creditAmount"],["colspan","6"],["severity","secondary","variant","outlined","icon","fa-solid fa-xmark",3,"onClick","rounded","text"],[1,"d-flex","gap-2","align-items-baseline"],[1,"fs-4","text-white","m-0"],[1,"m-0","fs-3"],[1,"row"],[1,"col"],[1,"fs-2"],[1,"state-new"],[1,"fs-3","m-0"],[1,"state-unchanged"],["label","Cancel","severity","secondary","variant","outlined",3,"click"],["label","OK (F2)",3,"click"]],template:function(a,o){if(a&1){let u=v();n(0,"app-main-panel",9),d(1,je,3,3,"ng-template",null,0,c)(3,it,32,14,"ng-template",null,1,c),i(),n(5,"p-dialog",10),z("visibleChange",function(V){return f(u),W(o.summaryDialogVisible,V)||(o.summaryDialogVisible=V),x(V)}),d(6,ot,1,2,"ng-template",null,2,c)(8,rt,5,1,"ng-template",null,3,c)(10,st,1,1,"ng-template",null,1,c)(12,ct,2,0,"ng-template",null,4,c),i()}if(a&2){let u=$(7);l(5),A(J(8,Ae)),m("modal",!0),Q("visible",o.summaryDialogVisible),m("breakpoints",J(9,Fe))("draggable",!1)("closeIconTemplate",u)("dismissableMask",!0)}},dependencies:[se,te,X,Y,ee,Z,le,ae,ye,de,ce,be,Ie,Ce,he,Ee,ve,Se,re,oe,ge,_e,ue,xe,fe,me,pe,ie],styles:[".p-datatable-thead>tr>th{background-color:transparent!important;color:#000!important} .p-stepper{display:flex;flex-direction:column;align-items:center} .p-stepper .p-steplist{width:40vw} .p-stepper .p-steppanels{width:100%} .p-card{border-radius:4px} .p-card .p-card-body{padding:.75rem!important} .p-card .p-card-header{display:flex;align-items:center;width:100%} .p-card .p-card-header .state-new{width:inherit;padding:.75rem;vertical-align:middle;background:repeating-linear-gradient(-60deg,#beeebb,#beeebb 15px,#afeba8 15px 30px)!important} .p-card .p-card-header .state-updated{width:inherit;padding:.75rem;background:repeating-linear-gradient(-60deg,#fcf3cf,#fcf3cf 15px,#f9e79f 15px 30px)!important} .p-card .p-card-header .state-unchanged{width:inherit;padding:.75rem;border-bottom:1px solid #dee2e6} .p-card .p-card-header .state-error{width:inherit;padding:.75rem;background:repeating-linear-gradient(-60deg,#f8d7da,#f8d7da 15px,#f5c6cb 15px 30px)!important} pos-uppy div div h4{font-size:16px} pos-uppy div div p{font-size:14px!important} pos-uppy div div hr{margin:0}"],changeDetection:0})}}return t})();export{jt as JournalEntryImportComponent};
|
|
1
|
+
import{a as we}from"./chunk-G2DQX336.js";import"./chunk-T6B4BOOB.js";import{a as Ce,b as ve,c as Ee,d as he,e as Ie,f as be}from"./chunk-IHZ55QSI.js";import{a as ye,b as Ve,c as Se}from"./chunk-HAQ36ZI6.js";import"./chunk-IGWIRCAS.js";import{d as _e,f as ue,g as fe,h as xe,k as ge}from"./chunk-EL5BUFMO.js";import"./chunk-EQ4PLHI4.js";import"./chunk-H7Q35Y7G.js";import"./chunk-R7N6BWL5.js";import{a as R}from"./chunk-QF4D5YPK.js";import{a as ie}from"./chunk-VJ3IBUVO.js";import"./chunk-2AAVNIG7.js";import"./chunk-LFZCMZAP.js";import"./chunk-6A2KUPOG.js";import"./chunk-36OX4S7M.js";import"./chunk-Q5CVMJZC.js";import"./chunk-3GGXPPQT.js";import"./chunk-MFK5RQPJ.js";import{a as ce,b as de}from"./chunk-KJ2WX3FC.js";import"./chunk-6GN3MGBY.js";import"./chunk-Q24GCSGD.js";import{e as pe,f as me,h as se}from"./chunk-H3BFDSSJ.js";import"./chunk-VGNJD35F.js";import{a as ae,b as le}from"./chunk-2XUSZCQL.js";import"./chunk-YV2QJ63P.js";import"./chunk-ARH3WEEF.js";import{w as oe,x as re}from"./chunk-H6HNANYB.js";import"./chunk-2D2YD753.js";import"./chunk-OIBDX2CA.js";import{d as ne}from"./chunk-AOOG6YOT.js";import"./chunk-M6LSMNSQ.js";import"./chunk-2MKKFLNJ.js";import{h as X,k as Y,p as Z,q as ee,s as te}from"./chunk-VZ5CMS5O.js";import"./chunk-F2X3VGZZ.js";import{$b as v,Db as d,Dc as J,Ec as T,Gc as q,Ha as S,I as N,Lb as m,Nc as E,Ob as A,Oc as I,Pc as G,Qb as h,Rb as F,Rc as c,Tb as P,Ub as D,Vb as n,Wb as i,Xb as _,Y as U,_ as w,ec as y,fb as j,fc as s,hb as l,ia as k,lc as H,m as M,mc as L,nc as O,qa as f,qc as $,ra as x,rc as r,s as B,sc as g,tc as C,wc as Q,xb as K,xc as W,yc as z}from"./chunk-NMCKMUY4.js";import{e as Re}from"./chunk-YQFG5XE2.js";var Je=Re(Ve());var ke=["stepper"],Ae=()=>({width:"30vw"}),Fe=()=>({"1199px":"75vw","575px":"100vw"}),Pe=()=>({height:"calc(100vh - 70px)"}),De=t=>({"col-12":t}),Me=(t,p,e)=>({"bg-gradient-danger":t,"bg-gradient-success":p,"bg-gradient-warning":e}),Te=t=>({"state-danger":t});function Be(t,p){if(t&1){let e=v();n(0,"p-button",14),y("click",function(){f(e);let o=s(2);return x(o.onPrevStep())}),i()}if(t&2){let e=s(2);m("disabled",e.stepActiveIndex()===1)}}function Ne(t,p){if(t&1){let e=v();n(0,"p-button",15),y("click",function(){f(e);let o=s(2);return x(o.onNextStep())}),i()}if(t&2){let e=s(2);m("disabled",e.stepActiveIndex()===3||!e.JournalEntryImport())}}function Ue(t,p){if(t&1){let e=v();n(0,"p-button",16),y("click",function(){f(e);let o=s(2);return x(o.onReset())}),i()}}function je(t,p){if(t&1&&d(0,Be,1,1,"p-button",11)(1,Ne,1,1,"p-button",12)(2,Ue,1,0,"p-button",13),t&2){let e=s();m("ngIf",e.stepActiveIndex()>1),l(),m("ngIf",e.stepActiveIndex()<3),l(),m("ngIf",e.stepActiveIndex()===3)}}function Ke(t,p){if(t&1){let e=v();n(0,"POS-uppy",25),y("fileUploaded",function(o){f(e);let u=s(2);return x(u.onFileUploaded(o))})("fileRemoved",function(o){f(e);let u=s(2);return x(u.onFileRemoved(o))}),i(),n(1,"p",26),r(2," Please refer this "),n(3,"a",27),r(4,"article"),i(),r(5," for more information "),i()}if(t&2){let e=s(2);m("uppyCoreConfiguration",e.uppyCore)("dashboardPropsConfiguration",e.dashboardProps)("sampleUrl",e.SAMPLE_URL)("subtitle",e.subtitle)}}function He(t,p){t&1&&(n(0,"tr"),_(1,"th",29),n(2,"th",30),r(3," Number "),_(4,"p-sortIcon",31),i(),n(5,"th",32),r(6," Outlet "),_(7,"p-sortIcon",33),i(),n(8,"th",34),r(9," Date "),_(10,"p-sortIcon",35),i(),n(11,"th",36),r(12," Status "),_(13,"p-sortIcon",37),i(),n(14,"th"),r(15,"Message"),i()())}function Le(t,p){if(t&1&&(n(0,"div",41)(1,"span"),r(2),i(),n(3,"span"),r(4),i()()),t&2){let e=p.$implicit;l(2),g(e.issue),l(2),g(e.solution)}}function Oe(t,p){if(t&1&&(n(0,"div",40),P(1,Le,5,2,"div",41,F),i()),t&2){let e=s(2).$implicit;l(),D(e.issues)}}function $e(t,p){}function Qe(t,p){if(t&1&&d(0,Oe,3,0,"div",40)(1,$e,0,0),t&2){let e=s().$implicit;h(e.issues&&e.issues.length>0?0:1)}}function We(t,p){if(t&1&&(n(0,"tr")(1,"td"),_(2,"p-button",38),i(),n(3,"td"),r(4),i(),n(5,"td"),r(6),i(),n(7,"td"),r(8),E(9,"date"),i(),n(10,"td",39),r(11),i(),n(12,"td",39),d(13,Qe,2,1),i()()),t&2){let e=p.$implicit,a=p.expanded,o=s(4);l(2),m("pRowToggler",e)("text",!0)("rounded",!0)("plain",!0)("icon",a?"fa-solid fa-chevron-down":"fa-solid fa-chevron-right"),l(2),g(e.number),l(2),C(" ",e.outlet," "),l(2),g(G(9,12,e.date,"d MMM y")),l(2),m("ngClass",q(15,Me,e.actionName==="Error",e.actionName==="New",e.actionName==="Update")),l(),C(" ",e.actionName," "),l(),m("ngClass",T(19,Te,o.hasIssue)),l(),h(o.hasIssue?13:-1)}}function ze(t,p){t&1&&(n(0,"tr")(1,"th",45),r(2," Code "),_(3,"p-sortIcon",46),i(),n(4,"th",47),r(5," Name "),_(6,"p-sortIcon",48),i(),n(7,"th",49),r(8," Note "),_(9,"p-sortIcon",50),i(),n(10,"th",51),r(11," Debit "),_(12,"p-sortIcon",52),i(),n(13,"th",53),r(14," Credit "),_(15,"p-sortIcon",54),i(),n(16,"th"),r(17,"Message"),i()())}function qe(t,p){if(t&1&&(n(0,"div",41)(1,"span"),r(2),i(),n(3,"span"),r(4),i()()),t&2){let e=p.$implicit;l(2),g(e.issue),l(2),g(e.solution)}}function Ge(t,p){if(t&1&&(n(0,"div",40),P(1,qe,5,2,"div",41,F),i()),t&2){let e=s().$implicit;l(),D(e.issues)}}function Xe(t,p){if(t&1&&(n(0,"tr")(1,"td"),r(2),i(),n(3,"td"),r(4),i(),n(5,"td"),r(6),i(),n(7,"td"),r(8),E(9,"number"),i(),n(10,"td"),r(11),E(12,"number"),i(),n(13,"td",39),d(14,Ge,3,0,"div",40),i()()),t&2){let e=p.$implicit,a=s(5);l(2),g(e.accountCode),l(2),g(e.accountName),l(2),g(e.note),l(2),C(" ",I(9,7,e.debitAmount)," "),l(3),C(" ",I(12,9,e.creditAmount)," "),l(2),m("ngClass",T(11,Te,e.issues&&e.issues.length>0)),l(),h(a.hasIssue?14:-1)}}function Ye(t,p){t&1&&(n(0,"tr")(1,"td",55),r(2," There are no order for this product yet. "),i()())}function Ze(t,p){if(t&1&&(n(0,"tr")(1,"td",42)(2,"div",43)(3,"p-table",44),d(4,ze,18,0,"ng-template",null,3,c)(6,Xe,15,13,"ng-template",null,6,c)(8,Ye,3,0,"ng-template",null,8,c),i()()()()),t&2){let e=p.$implicit;l(3),m("value",e.items)}}function et(t,p){if(t&1&&(n(0,"p-table",28),d(1,He,16,0,"ng-template",null,3,c)(3,We,14,21,"ng-template",null,6,c)(5,Ze,10,1,"ng-template",null,7,c),i()),t&2){let e=s(3);m("scrollable",!0)("scrollHeight","calc(100vh - 160px)")("value",e.JournalEntryImport().dataRow)}}function tt(t,p){if(t&1&&d(0,et,7,3,"p-table",28),t&2){let e=s(2);h(e.JournalEntryImport()?0:-1)}}function nt(t,p){t&1&&(n(0,"h5"),r(1,"Successfully Imported"),i())}function it(t,p){if(t&1&&(n(0,"p-panel")(1,"p-scroll-panel")(2,"div",17)(3,"div",18)(4,"p-stepper",19,5)(6,"p-step-list")(7,"p-step",20)(8,"div",21),_(9,"i",22),n(10,"span"),r(11,"Upload"),i()()(),n(12,"p-step",20)(13,"div",21),_(14,"i",23),n(15,"span"),r(16,"Preview"),i()()(),n(17,"p-step",20)(18,"div",21),_(19,"i",24),n(20,"span"),r(21,"Finish"),i()()()(),n(22,"p-step-panels")(23,"p-step-panel",20),d(24,Ke,6,4,"ng-template",null,1,c),i(),n(26,"p-step-panel",20),d(27,tt,1,1,"ng-template",null,1,c),i(),n(29,"p-step-panel",20),d(30,nt,2,0,"ng-template",null,1,c),i()()()()()()()),t&2){let e=s();l(),A(J(11,Pe)),l(2),m("ngClass",T(12,De,e.stepActiveIndex()===2)),l(),m("linear",!0)("value",e.stepActiveIndex()),l(3),m("value",1),l(5),m("value",2),l(5),m("value",3),l(6),m("value",1),l(3),m("value",2),l(3),m("value",3)}}function ot(t,p){if(t&1){let e=v();n(0,"p-button",56),y("onClick",function(){f(e);let o=s();return x(o.summaryDialogVisible.set(!1))}),i()}t&2&&m("rounded",!0)("text",!0)}function rt(t,p){if(t&1&&(n(0,"div",57)(1,"h4",58),r(2,"Import Summary"),i(),n(3,"p",59),r(4),i()()),t&2){let e=s();l(4),C("(",e.CSVRowCount()," rows ready for import)")}}function at(t,p){t&1&&(n(0,"div",63)(1,"h4",64),r(2,"Journal"),i()())}function lt(t,p){t&1&&(n(0,"div",65)(1,"h4",64),r(2,"Debit"),i()())}function pt(t,p){t&1&&(n(0,"div",65)(1,"h4",64),r(2,"Credit"),i()())}function mt(t,p){if(t&1&&(n(0,"div",60)(1,"div",61)(2,"p-card"),d(3,at,3,0,"ng-template",null,3,c),n(5,"div",60)(6,"div",61)(7,"h5",62),r(8),E(9,"number"),i()()()()(),n(10,"div",61)(11,"p-card"),d(12,lt,3,0,"ng-template",null,3,c),n(14,"div",60)(15,"div",61)(16,"h5",62),r(17),E(18,"number"),i()()()()(),n(19,"div",61)(20,"p-card"),d(21,pt,3,0,"ng-template",null,3,c),n(23,"div",60)(24,"div",61)(25,"h5",62),r(26),E(27,"number"),i()()()()()()),t&2){let e=s(2);l(8),C(" ",I(9,3,e.JournalEntryImport().summary.journal)," "),l(9),C(" ",I(18,5,e.JournalEntryImport().summary.debit)," "),l(9),C(" ",I(27,7,e.JournalEntryImport().summary.credit)," ")}}function st(t,p){if(t&1&&d(0,mt,28,9,"div",60),t&2){let e=s();h(e.JournalEntryImport()?0:-1)}}function ct(t,p){if(t&1){let e=v();n(0,"p-button",66),y("click",function(){f(e);let o=s();return x(o.summaryDialogVisible.set(!1))}),i(),n(1,"p-button",67),y("click",function(){f(e);let o=s();return x(o.onConfirmImport())}),i()}}var jt=(()=>{class t{constructor(){this.service=k(we),this.router=k(ne),this.subtitle="Accepted file format: .csv & max file size: 1MB",this.stepActiveIndex=S(1),this.JournalEntryImport=S(null),this.summaryDialogVisible=S(!1),this.CSVRowCount=S(0),this.dashboardProps={inline:!0,width:580,height:350},this.uppyCore={restrictions:{allowedFileTypes:["text/csv","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]}},this.SAMPLE_URL="https://res.cloudinary.com/pos/raw/upload/POS/CSV/Journal_DealPOS.csv"}ngAfterViewInit(){console.log("Stepper instance:",this.stepperRef)}onFileUpload(e){console.log("File upload event:",e);let a=new FormData;Array.isArray(e.currentFiles)&&e.currentFiles.forEach(o=>{o instanceof File&&a.append("File",o,o.name)}),console.log("Form data prepared for upload:",a.get("File")),this.service.importPreviewJournal(a).pipe(R("Import Preview"),B(o=>({cacheKey:o.cacheKey})),U(o=>this.service.importConfirmJournal(o)),w(()=>{this.router.navigate(["/pages/journal/journal-entry"])})).subscribe()}onFileRemoved(e){console.log("File removed event:",e),this.JournalEntryImport.set(null),this.CSVRowCount.set(0)}onNextStep(){if(this.stepActiveIndex()<3&&(this.stepActiveIndex.update(e=>e+1),this.stepActiveIndex()===3)){this.stepActiveIndex.update(()=>this.stepActiveIndex()-1),this.summaryDialogVisible.set(!0);return}}onPrevStep(){this.stepActiveIndex()>1&&this.stepActiveIndex.update(e=>e-1)}onFileUploaded(e){let a=new FormData;if("name"in e&&typeof e.name=="string")a.append("File",e,e.name),this.service.importPreviewJournal(a).pipe(R("Import Preview"),w(o=>{this.JournalEntryImport.set(o)})).subscribe(),Je.default.parse(e,{header:!0,skipEmptyLines:!0,complete:o=>{console.log("CSV Parsing Results:",o),this.CSVRowCount.set(o.data.length)},error:o=>{console.error("Error parsing CSV:",o)}});else return}onConfirmImport(){if(this.JournalEntryImport()&&this.JournalEntryImport().canProceed){let e={cacheKey:this.JournalEntryImport().cacheKey};this.service.importConfirmJournal(e).pipe(R("Import Confirm"),w(()=>{this.router.navigate(["/pages/journal/journal-entry"]),this.stepActiveIndex.update(a=>a+1),this.summaryDialogVisible.update(a=>!a)}),N(a=>(console.error("Error occurred during import confirmation:",a),this.stepActiveIndex.update(o=>o+1),this.summaryDialogVisible.update(o=>!o),M(null)))).subscribe()}else{console.error("Cannot proceed with import, JournalEntryImport is not set or canProceed is false.");return}}onReset(){this.stepActiveIndex.set(1),this.JournalEntryImport.set(null)}handleKeyboardEvent(e){e.key==="F2"&&this.onConfirmImport()}get hasIssue(){let e=this.JournalEntryImport();return e&&Array.isArray(e.dataRow)?e.dataRow.some(a=>{let o=a.issues&&a.issues.length>0,u=Array.isArray(a.items)&&a.items.some(b=>b.issues&&b.issues.length>0);return o||u}):!1}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=K({type:t,selectors:[["app-journal-entry-import"]],viewQuery:function(a,o){if(a&1&&H(ke,5),a&2){let u;L(u=O())&&(o.stepperRef=u.first)}},hostBindings:function(a,o){a&1&&y("keydown",function(b){return o.handleKeyboardEvent(b)},!1,j)},decls:14,vars:10,consts:[["actionButton",""],["content",""],["closeIconTemplate",""],["header",""],["footer",""],["stepper",""],["body",""],["expandedrow",""],["emptymessage",""],["pageTitle","Manual Journal Import"],["position","center","appendTo","body",3,"visibleChange","modal","visible","breakpoints","draggable","closeIconTemplate","dismissableMask"],["label","Back","severity","secondary","variant","outlined",3,"disabled","click",4,"ngIf"],["label","Next","severity","primary",3,"disabled","click",4,"ngIf"],["label","Finish","severity","primary",3,"click",4,"ngIf"],["label","Back","severity","secondary","variant","outlined",3,"click","disabled"],["label","Next","severity","primary",3,"click","disabled"],["label","Finish","severity","primary",3,"click"],[1,"row","justify-content-center"],[1,"col-6",3,"ngClass"],[3,"linear","value"],[3,"value"],[1,"d-flex","gap-2","align-items-center"],[1,"fa-solid","fa-upload"],[1,"fa-solid","fa-file"],[1,"fa-solid","fa-check"],[3,"fileUploaded","fileRemoved","uppyCoreConfiguration","dashboardPropsConfiguration","sampleUrl","subtitle"],[1,"fst-italic"],["href","#","target","_blank",1,"link","link-primary"],["dataKey","number",3,"scrollable","scrollHeight","value"],[2,"width","5rem"],["pSortableColumn","number"],["field","number"],["pSortableColumn","outlet"],["field","outlet"],["pSortableColumn","date"],["field","date"],["pSortableColumn","inventoryStatus"],["field","inventoryStatus"],["type","button","pRipple","",3,"pRowToggler","text","rounded","plain","icon"],[3,"ngClass"],[1,"d-flex","flex-column","gap-2"],[1,"d-flex","flex-column"],["colspan","8"],[1,"p-4"],["dataKey","accountID",3,"value"],["pSortableColumn","accountCode"],["field","accountCode"],["pSortableColumn","accountName"],["field","accountName"],["pSortableColumn","note"],["field","note"],["pSortableColumn","debitAmount"],["field","debitAmount"],["pSortableColumn","creditAmount"],["field","creditAmount"],["colspan","6"],["severity","secondary","variant","outlined","icon","fa-solid fa-xmark",3,"onClick","rounded","text"],[1,"d-flex","gap-2","align-items-baseline"],[1,"fs-4","text-white","m-0"],[1,"m-0","fs-3"],[1,"row"],[1,"col"],[1,"fs-2"],[1,"state-new"],[1,"fs-3","m-0"],[1,"state-unchanged"],["label","Cancel","severity","secondary","variant","outlined",3,"click"],["label","OK (F2)",3,"click"]],template:function(a,o){if(a&1){let u=v();n(0,"app-main-panel",9),d(1,je,3,3,"ng-template",null,0,c)(3,it,32,14,"ng-template",null,1,c),i(),n(5,"p-dialog",10),z("visibleChange",function(V){return f(u),W(o.summaryDialogVisible,V)||(o.summaryDialogVisible=V),x(V)}),d(6,ot,1,2,"ng-template",null,2,c)(8,rt,5,1,"ng-template",null,3,c)(10,st,1,1,"ng-template",null,1,c)(12,ct,2,0,"ng-template",null,4,c),i()}if(a&2){let u=$(7);l(5),A(J(8,Ae)),m("modal",!0),Q("visible",o.summaryDialogVisible),m("breakpoints",J(9,Fe))("draggable",!1)("closeIconTemplate",u)("dismissableMask",!0)}},dependencies:[se,te,X,Y,ee,Z,le,ae,ye,de,ce,be,Ie,Ce,he,Ee,ve,Se,re,oe,ge,_e,ue,xe,fe,me,pe,ie],styles:[".p-datatable-thead>tr>th{background-color:transparent!important;color:#000!important} .p-stepper{display:flex;flex-direction:column;align-items:center} .p-stepper .p-steplist{width:40vw} .p-stepper .p-steppanels{width:100%} .p-card{border-radius:4px} .p-card .p-card-body{padding:.75rem!important} .p-card .p-card-header{display:flex;align-items:center;width:100%} .p-card .p-card-header .state-new{width:inherit;padding:.75rem;vertical-align:middle;background:repeating-linear-gradient(-60deg,#beeebb,#beeebb 15px,#afeba8 15px 30px)!important} .p-card .p-card-header .state-updated{width:inherit;padding:.75rem;background:repeating-linear-gradient(-60deg,#fcf3cf,#fcf3cf 15px,#f9e79f 15px 30px)!important} .p-card .p-card-header .state-unchanged{width:inherit;padding:.75rem;border-bottom:1px solid #dee2e6} .p-card .p-card-header .state-error{width:inherit;padding:.75rem;background:repeating-linear-gradient(-60deg,#f8d7da,#f8d7da 15px,#f5c6cb 15px 30px)!important} pos-uppy div div h4{font-size:16px} pos-uppy div div p{font-size:14px!important} pos-uppy div div hr{margin:0}"],changeDetection:0})}}return t})();export{jt as JournalEntryImportComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ce,c as pe,f as g}from"./chunk-
|
|
1
|
+
import{a as ce,c as pe,f as g}from"./chunk-H6HNANYB.js";import{G as ee,Ia as re,K as te,La as se,Ma as y,Q as ie,Ra as ae,Ua as le,_ as I,ga as oe,ia as ne,z as J}from"./chunk-OIBDX2CA.js";import{h as W,k as q,l as K,m as U,s as X,t as m}from"./chunk-VZ5CMS5O.js";import{c as G,d as L,f as v,g as b,h as O}from"./chunk-F2X3VGZZ.js";import{$b as B,$c as Y,Aa as _,Ba as V,Bb as A,Cc as N,Db as d,Ec as Q,Fc as x,Kb as F,Lb as h,Pb as R,Vb as w,Wb as Z,_c as f,ca as P,da as D,ec as u,fc as r,gb as $,gc as M,hb as H,hc as j,ia as p,kc as k,mc as T,nc as S,qa as l,ra as c,ua as C,xb as z,yb as E}from"./chunk-NMCKMUY4.js";var he=["content"],ue=["*"],fe=(t,s)=>({showTransitionParams:t,hideTransitionParams:s}),me=(t,s)=>({value:t,params:s}),ve=t=>({closeCallback:t});function be(t,s){}function ye(t,s){t&1&&d(0,be,0,0,"ng-template")}function ge(t,s){if(t&1){let e=B();w(0,"div",1),u("click",function(o){l(e);let n=r();return c(n.onOverlayClick(o))})("@animation.start",function(o){l(e);let n=r();return c(n.onAnimationStart(o))})("@animation.done",function(o){l(e);let n=r();return c(n.onAnimationEnd(o))}),w(1,"div",2),u("click",function(o){l(e);let n=r();return c(n.onContentClick(o))})("mousedown",function(o){l(e);let n=r();return c(n.onContentClick(o))}),j(2),d(3,ye,1,0,null,3),Z()()}if(t&2){let e=r();R(e.styleClass),h("ngClass","p-popover p-component")("ngStyle",e.style)("@animation",x(13,me,e.overlayVisible?"open":"close",x(10,fe,e.showTransitionOptions,e.hideTransitionOptions))),F("aria-modal",e.overlayVisible)("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy),H(3),h("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Q(16,ve,e.onCloseClick.bind(e)))}}var Ce=({dt:t})=>`
|
|
2
2
|
.p-popover {
|
|
3
3
|
margin-top: ${t("popover.gutter")};
|
|
4
4
|
background: ${t("popover.background")};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Me,b as Fe}from"./chunk-
|
|
1
|
+
import{a as Me,b as Fe}from"./chunk-NCDT6JPP.js";import{b as Ce}from"./chunk-7FFVGWUP.js";import{a as Te}from"./chunk-XKI7WLHE.js";import{a as ye,b as Ie}from"./chunk-N4JIPI53.js";import"./chunk-7DYACF4D.js";import"./chunk-NZN6QJR3.js";import{a as j,b as V}from"./chunk-3A4BFUGD.js";import{d as Pe,i as we,j as De,k as ke}from"./chunk-EL5BUFMO.js";import{a as Se,b as ve}from"./chunk-EQ4PLHI4.js";import"./chunk-H7Q35Y7G.js";import"./chunk-R7N6BWL5.js";import{a as C}from"./chunk-QF4D5YPK.js";import"./chunk-2AAVNIG7.js";import"./chunk-LFZCMZAP.js";import"./chunk-6A2KUPOG.js";import"./chunk-36OX4S7M.js";import"./chunk-Q5CVMJZC.js";import"./chunk-3GGXPPQT.js";import"./chunk-MFK5RQPJ.js";import"./chunk-6GN3MGBY.js";import"./chunk-Q24GCSGD.js";import{h as be}from"./chunk-H3BFDSSJ.js";import"./chunk-VGNJD35F.js";import{a as ue,b as fe}from"./chunk-2XUSZCQL.js";import{a as x,b as ge,c as xe,d as he,e as _e,f as Ee,g as Re}from"./chunk-YV2QJ63P.js";import"./chunk-ARH3WEEF.js";import{w as me,x as de}from"./chunk-H6HNANYB.js";import"./chunk-2D2YD753.js";import{c as F,e as oe,f as ae,l as se,o as le,u as pe,x as ce}from"./chunk-OIBDX2CA.js";import{e as ie,l as ne}from"./chunk-AOOG6YOT.js";import{a as re}from"./chunk-M6LSMNSQ.js";import"./chunk-2MKKFLNJ.js";import{h as W,j as X,k as Y,p as Z,q as ee,s as te}from"./chunk-VZ5CMS5O.js";import"./chunk-F2X3VGZZ.js";import{$b as k,Bb as G,Cc as K,D as N,Db as h,Dc as z,Ec as I,L as H,Lb as u,Nc as T,Ob as q,Oc as J,P as A,Pc as Q,Rc as R,Vb as a,Wb as o,Xb as _,Y as D,_ as U,bd as M,c as w,ca as O,ec as y,fc as g,hb as d,ia as f,qa as S,ra as v,rc as m,s as b,sc as E,tc as $,xb as B}from"./chunk-NMCKMUY4.js";import{a as s,b as p}from"./chunk-YQFG5XE2.js";var P=(()=>{class t{constructor(){this.httpService=f(re)}getPostRecurringExpenseLoader(){return this.httpService.get(void 0,"api/RecurringExpenseLoader/RecurringExpensesGenerate")}previewPostRecurringExpense(e){return this.httpService.post(void 0,"api/RecurringExpense/RecurringExpensesGeneratePreview",e)}submitPostRecurringExpense(e){return this.httpService.post(void 0,"api/RecurringExpense/RecurringExpensesGenerate",e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ve={data:{data:[]},meta:{options:{expenses:[]},form:{date:"",number:"",listIDs:[]}},filter:{date:"",number:"",listIDs:[]}},L=ge(Ee(Ve),Re("PostRecurringExpenseStore"),xe(t=>({hasCheckedRows:M(()=>t.data().data.some(l=>l.checked)),checkedPRE:M(()=>t.data().data.filter(l=>l.checked))})),_e(t=>{let l=f(P);return{updateFilter:i=>{x(t,n=>p(s({},n),{filter:s(s({},n.filter),i)}))},emptyData(){x(t,i=>p(s({},i),{data:{data:[],totalCount:0}}))},onRowSelect(i){x(t,n=>{let r=n.data.data.map(c=>c.lastExpenseDate===i.lastExpenseDate?p(s({},c),{checked:!0}):c);return p(s({},n),{data:p(s({},n.data),{data:r})})})},onRowUnselect(i){x(t,n=>{let r=n.data.data.map(c=>c.lastExpenseDate===i.lastExpenseDate?p(s({},c),{checked:!1}):c);return p(s({},n),{data:p(s({},n.data),{data:r})})})},onHeaderCheckboxToggle(i){x(t,n=>{let r=n.data.data.map(c=>p(s({},c),{checked:i}));return p(s({},n),{data:p(s({},n.data),{data:r})})})},getPRELoader:j(w(D(()=>l.getPostRecurringExpenseLoader().pipe(V({next:i=>{x(t,n=>p(s({},n),{meta:i}))},error:i=>{console.error("Error fetching PRE Loader:",i)}}))))),getPREPreview:j(w(N(i=>i.date&&i.listIDs.length>0),b(i=>({Date:i.date,Number:i.number,ListIDs:i.listIDs})),D(i=>l.previewPostRecurringExpense(i).pipe(b(n=>p(s({},n),{data:n.data.map(r=>p(s({},r),{checked:!1}))})),V({next:n=>{x(t,r=>p(s({},r),{data:n}))},error:n=>{console.error("Error fetching PRE Preview:",n)}})))))}}),he(t=>({onInit:()=>{t.getPRELoader(),t.getPREPreview(t.filter)}})));var Le=()=>({height:"calc(100vh - 70px)"}),Ne=t=>({"ng-invalid ng-dirty":t}),He=t=>["/pages/recurring/recurring-expense/details/",t];function Ae(t,l){if(t&1){let e=k();a(0,"p-button",7),y("onClick",function(){S(e);let n=g(2);return v(n.onSubmitPRE())}),o()}}function Ue(t,l){if(t&1&&h(0,Ae,1,0,"p-button",6),t&2){let e=g();u("ngIf",e.store.hasCheckedRows())}}function Oe(t,l){if(t&1&&(a(0,"div")(1,"span",19),m(2),o()()),t&2){let e=l.$implicit;d(2),E(e)}}function Be(t,l){if(t&1&&(a(0,"div"),h(1,Oe,3,1,"div",18),o()),t&2){let e=g(2);d(),u("ngForOf",e.getErrors("listIDs"))}}function Ge(t,l){t&1&&(a(0,"tr")(1,"th",20),_(2,"p-tableHeaderCheckbox"),o(),a(3,"th"),m(4,"Name"),o(),a(5,"th"),m(6,"Date"),o(),a(7,"th"),m(8,"Asset Account"),o(),a(9,"th"),m(10,"Expense Account"),o(),a(11,"th",21),m(12,"Amount"),o()())}function qe(t,l){if(t&1&&(a(0,"tr")(1,"td"),_(2,"p-tableCheckbox",22),o(),a(3,"td")(4,"a",23),m(5),o()(),a(6,"td"),m(7),T(8,"date"),o(),a(9,"td"),m(10),o(),a(11,"td"),m(12),o(),a(13,"td",21),m(14),T(15,"number"),o()()),t&2){let e=l.$implicit;d(2),u("value",e),d(2),u("routerLink",I(12,He,e.id)),d(),$(" ",e.name," "),d(2),E(Q(8,7,e.nextExpenseDate,"d MMM y")),d(3),E(e.paymentName),d(2),E(e.expenseName),d(2),E(J(15,10,e.amount))}}function $e(t,l){t&1&&(a(0,"tr")(1,"td",24)(2,"span"),m(3,"No records found."),o()()())}function Ke(t,l){if(t&1){let e=k();a(0,"p-panel")(1,"div",8)(2,"div",9)(3,"div",10)(4,"div",11)(5,"div",12)(6,"label",13),m(7,"Date"),o(),_(8,"p-datepicker",14),o()(),a(9,"div",11)(10,"div",12)(11,"label",13),m(12,"Recurring Expense"),o(),_(13,"p-multiselect",15),h(14,Be,2,1,"div",16),o()()()()(),_(15,"p-divider"),a(16,"p-table",17),y("onRowSelect",function(n){S(e);let r=g();return v(r.onRowSelect(n))})("onRowUnselect",function(n){S(e);let r=g();return v(r.onRowUnselect(n))})("onHeaderCheckboxToggle",function(n){S(e);let r=g();return v(r.onHeaderCheckboxToggle(n))}),h(17,Ge,13,0,"ng-template",null,2,R)(19,qe,16,14,"ng-template",null,3,R)(21,$e,4,0,"ng-template",null,4,R),o()()}if(t&2){let e=g();q(z(7,Le)),d(),u("formGroup",e.form),d(12),u("ngClass",I(8,Ne,e.isInvalid("listIDs")))("options",e.store.meta().options.expenses),d(),u("ngIf",e.isInvalid("listIDs")),d(2),u("value",e.store.data().data)}}var jt=(()=>{class t extends Te{constructor(){super(),this.store=f(L),this.fb=f(pe),this.dayjsService=f(Ce),this.PREService=f(P)}ngOnInit(){this.initForm(),this.form.valueChanges.pipe(H(300),A(),C("Form Value Changes"),b(e=>Object.entries(e).reduce((i,[n,r])=>{switch(n){case"date":typeof r=="object"&&r!==null&&!Array.isArray(r)?i[n]=this.dayjsService.from(r)?this.dayjsService.format(r):null:(typeof r=="string"||typeof r=="number"||r instanceof Date)&&!Array.isArray(r)?i[n]=r!=null?String(r):null:i[n]=null;break;default:i[n]=r===null?"":r;break}return i},{})),C("Mapped Form Value"),U(e=>{(!e.listIDs||e.listIDs.length===0)&&this.store.emptyData(),this.store.updateFilter(e)})).subscribe()}initForm(){let{date:e,listIDs:i,number:n}=this.store.filter();this.form=this.fb.group({date:this.fb.control(this.dayjsService.from(e)?this.dayjsService.from(e).toDate():this.dayjsService.now.toDate(),[F.required]),number:this.fb.control(n||""),listIDs:this.fb.control(i,[F.required])})}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(i=>{this.store.onRowUnselect(i)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}onSubmitPRE(){console.log(this.store.checkedPRE());let i=this.store.checkedPRE().reduce((r,c)=>(r[c.id]||(r[c.id]={ID:c.id,ListDate:[]}),r[c.id].ListDate.push(c.lastExpenseDate),r),{}),n=Object.values(i);console.log("Submitting PRE with body:",n),this.PREService.submitPostRecurringExpense(n).pipe(C("Submit Post Recurring Expense")).subscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=B({type:t,selectors:[["app-post-recurring-expense"]],features:[K([L]),G],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["emptymessage",""],["pageTitle","Post Recurring Expense",3,"scrollable"],["label","Submit",3,"onClick",4,"ngIf"],["label","Submit",3,"onClick"],[1,"row",3,"formGroup"],[1,"col-6"],[1,"row"],[1,"col"],[1,"d-flex","flex-column"],["for",""],["fluid","","formControlName","date"],["display","chip","formControlName","listIDs","optionLabel","name","optionValue","id","placeholder","Select Recurring Expenses","fluid","",3,"ngClass","options"],[4,"ngIf"],["dataKey","lastExpenseDate",3,"onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value"],[4,"ngFor","ngForOf"],[1,"text-danger"],[2,"width","1rem"],[1,"text-end"],[3,"value"],["target","_blank",1,"link","link-primary",3,"routerLink"],["colspan","6"]],template:function(i,n){i&1&&(a(0,"app-main-panel",5),h(1,Ue,1,1,"ng-template",null,0,R)(3,Ke,23,10,"ng-template",null,1,R),o()),i&2&&u("scrollable",!0)},dependencies:[be,te,W,X,Y,ee,Z,fe,ue,Fe,Me,ve,Se,Ie,ye,ce,oe,ae,se,le,ke,Pe,we,De,de,me,ne,ie],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();export{jt as PostRecurringExpenseComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as V,b as oe}from"./chunk-
|
|
1
|
+
import{a as V,b as oe}from"./chunk-IFQIZ5KJ.js";import"./chunk-7FFVGWUP.js";import{a as te,b as ie}from"./chunk-EQ4PLHI4.js";import"./chunk-H7Q35Y7G.js";import"./chunk-R7N6BWL5.js";import{a as K,b as Q}from"./chunk-VJ3IBUVO.js";import{a as ne,b as re}from"./chunk-36OX4S7M.js";import{b as ee}from"./chunk-KJ2WX3FC.js";import"./chunk-6GN3MGBY.js";import"./chunk-Q24GCSGD.js";import{h as $}from"./chunk-H3BFDSSJ.js";import"./chunk-VGNJD35F.js";import{a as Y,b as Z}from"./chunk-2XUSZCQL.js";import"./chunk-YV2QJ63P.js";import"./chunk-ARH3WEEF.js";import{w as U,x as X}from"./chunk-H6HNANYB.js";import"./chunk-2D2YD753.js";import{e as G,j as H,w as q}from"./chunk-OIBDX2CA.js";import"./chunk-M6LSMNSQ.js";import{a as A}from"./chunk-2MKKFLNJ.js";import{n as z,s as R}from"./chunk-VZ5CMS5O.js";import"./chunk-F2X3VGZZ.js";import{$b as h,Cc as j,Db as L,Dc as F,Ha as b,Lb as u,Nc as T,Ob as S,Oc as P,Rc as M,Vb as r,W as E,Wb as o,Xb as C,Y as B,_ as W,ec as f,fc as m,h as J,hb as s,ia as x,qa as l,ra as p,rc as _,s as y,sa as I,ta as N,wc as c,xb as O,xc as g,yc as d}from"./chunk-NMCKMUY4.js";import{a as D}from"./chunk-YQFG5XE2.js";var ae=()=>({height:"calc(100vh - 100px)"});function le(a,v){if(a&1){let t=h();r(0,"div",4)(1,"p-button",5),f("onClick",function(){l(t);let e=m();return p(e.onFormat())}),o(),r(2,"p-button",6),f("onClick",function(){l(t);let e=m();return p(e.openMigrateDialog())}),o()()}}function pe(a,v){if(a&1){let t=h();r(0,"div",7)(1,"div",8)(2,"label",9),_(3,"From"),o(),r(4,"p-datepicker",10),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().From,e)||(n.filter().From=e),p(e)}),o()(),r(5,"div",8)(6,"label",9),_(7,"To"),o(),r(8,"p-datepicker",10),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().To,e)||(n.filter().To=e),p(e)}),o()(),r(9,"div",8)(10,"label",9),_(11,"Page Number"),o(),r(12,"p-inputnumber",11),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().PageNumber,e)||(n.filter().PageNumber=e),p(e)}),o()(),r(13,"div",8)(14,"label",9),_(15,"Page Size"),o(),r(16,"p-inputnumber",11),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().PageSize,e)||(n.filter().PageSize=e),p(e)}),o()()()}if(a&2){let t=m();s(4),u("showIcon",!0),c("ngModel",t.filter().From),s(4),u("showIcon",!0),c("ngModel",t.filter().To),s(4),c("ngModel",t.filter().PageNumber),s(4),c("ngModel",t.filter().PageSize)}}function me(a,v){if(a&1&&(r(0,"p-scroll-panel")(1,"p-panel")(2,"div",12),C(3,"app-migration-cards",13),T(4,"async"),I(),r(5,"svg",14),C(6,"path",15),o(),N(),C(7,"app-migration-cards",16),T(8,"async"),o()()()),a&2){let t=m();S(F(12,ae)),s(),S(F(13,ae)),s(2),u("migrationCount",P(4,8,t.countInPOS$))("migrationTitle",t.pageTitle),s(4),u("migrationCount",P(8,10,t.countInBooks$))("migrationTitle",t.pageTitle)}}var We=(()=>{class a{constructor(){this.migrateService=x(V),this.refresh$=new J(void 0),this.toastr=x(A),this.pageTitle="Manual Journal",this.filter=b({From:new Date,To:new Date,PageSize:45e3,PageNumber:1}),this.isFilterDialogOpen=b(!1),this.previousFilter=null}ngOnInit(){let t=this.refresh$.pipe(B(()=>this.migrateService.getManualJournalCount()),E(1));this.countInPOS$=t.pipe(y(i=>Number(i.pos))),this.countInBooks$=t.pipe(y(i=>Number(i.books)))}openMigrateDialog(){this.previousFilter=D({},this.filter()),this.isFilterDialogOpen.set(!0)}onMigrate(){this.migrateService.migrateManualJournal(this.filter()).pipe(W(()=>{this.isFilterDialogOpen.update(t=>!t),this.refresh$.next(),this.previousFilter=null})).subscribe()}onFilterCanceled(){this.previousFilter&&(this.filter.set(this.previousFilter),this.previousFilter=null)}onFormat(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatManualJournal().subscribe(i=>{this.refresh$.next(),this.toastr.success(i.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||a)}}static{this.\u0275cmp=O({type:a,selectors:[["app-manual-journal"]],features:[j([V])],decls:7,vars:2,consts:[["actionButton",""],["filters",""],["content",""],[3,"filterConfirmed","isDialogFilterVisibleChange","filterCanceled","pageTitle","isDialogFilterVisible"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate",3,"onClick"],[1,"d-flex","flex-column","row-gap-3"],[1,"d-flex","flex-column"],["for","outlet"],["styleClass","w-100","appendTo","body","iconDisplay","input","inputId","icondisplay",3,"ngModelChange","showIcon","ngModel"],["inputId","integeronly",3,"ngModelChange","ngModel"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(i,e){if(i&1){let n=h();r(0,"app-main-panel",3),f("filterConfirmed",function(){return l(n),p(e.onMigrate())}),d("isDialogFilterVisibleChange",function(w){return l(n),g(e.isFilterDialogOpen,w)||(e.isFilterDialogOpen=w),p(w)}),f("filterCanceled",function(){return l(n),p(e.onFilterCanceled())}),L(1,le,3,0,"ng-template",null,0,M)(3,pe,17,6,"ng-template",null,1,M)(5,me,9,14,"ng-template",null,2,M),o()}i&2&&(u("pageTitle",e.pageTitle),c("isDialogFilterVisible",e.isFilterDialogOpen))},dependencies:[$,R,z,ee,X,U,Q,K,Z,Y,oe,ie,te,q,G,H,re,ne],encapsulation:2})}}return a})();export{We as ManualJournalComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as p}from"./chunk-
|
|
1
|
+
import{h as p}from"./chunk-H6HNANYB.js";import{Bb as s,Kb as l,Pb as C,Vb as c,Wb as m,Xb as d,sa as o,ua as a,xb as r}from"./chunk-NMCKMUY4.js";var g=(()=>{class t extends p{static \u0275fac=(()=>{let i;return function(e){return(i||(i=a(t)))(e||t)}})();static \u0275cmp=r({type:t,selectors:[["ChevronRightIcon"]],features:[s],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(n,e){n&1&&(o(),c(0,"svg",0),d(1,"path",1),m()),n&2&&(C(e.getClassNames()),l("aria-label",e.ariaLabel)("aria-hidden",e.ariaHidden)("role",e.role))},encapsulation:2})}return t})();export{g as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Ft,h as U,i as Pt}from"./chunk-
|
|
1
|
+
import{a as Ft,h as U,i as Pt}from"./chunk-H6HNANYB.js";import{Da as Vt,La as Lt,Ma as K,Q as Et,Ua as Ot,V as R,ca as D,ea as et,ia as xt}from"./chunk-OIBDX2CA.js";import{h as St,j as It,k as vt,l as Tt,m as zt,s as bt,t as tt}from"./chunk-VZ5CMS5O.js";import{$b as ut,Aa as J,Ba as ht,Bb as B,Cc as yt,Db as w,Dc as wt,Ec as A,Fc as N,Gc as Ct,Kb as T,Lb as m,Mb as mt,Ob as pt,Pb as Q,Rc as j,Vb as z,Wb as b,Xb as E,Yb as x,Zb as V,_b as W,ca as nt,da as st,ec as _t,fc as y,gc as gt,hb as _,hc as ft,ia as ot,kc as k,lc as Y,mc as L,nb as ct,nc as O,pa as lt,qa as rt,qc as $,ra as at,sa as G,ua as M,xb as H,yb as dt}from"./chunk-NMCKMUY4.js";import{a as Z,b as X}from"./chunk-YQFG5XE2.js";var ge=(()=>{class i extends U{static \u0275fac=(()=>{let t;return function(n){return(t||(t=M(i)))(n||i)}})();static \u0275cmp=H({type:i,selectors:[["BlankIcon"]],features:[B],decls:2,vars:0,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(e,n){e&1&&(G(),z(0,"svg",0),E(1,"rect",1),b())},encapsulation:2})}return i})();var Ce=(()=>{class i extends U{pathId;ngOnInit(){this.pathId="url(#"+Vt()+")"}static \u0275fac=(()=>{let t;return function(n){return(t||(t=M(i)))(n||i)}})();static \u0275cmp=H({type:i,selectors:[["SearchIcon"]],features:[B],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(e,n){e&1&&(G(),z(0,"svg",0)(1,"g"),E(2,"path",1),b(),z(3,"defs")(4,"clipPath",2),E(5,"rect",3),b()()()),e&2&&(Q(n.getClassNames()),T("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),_(),T("clip-path",n.pathId),_(3),m("id",n.pathId))},encapsulation:2})}return i})();var Dt=["content"],Bt=["item"],Wt=["loader"],kt=["loadericon"],At=["element"],Qt=["*"],$t=(i,h,t)=>({"p-virtualscroller":!0,"p-virtualscroller-inline":i,"p-virtualscroller-both p-both-scroll":h,"p-virtualscroller-horizontal p-horizontal-scroll":t}),it=(i,h)=>({$implicit:i,options:h}),Nt=i=>({"p-virtualscroller-content":!0,"p-virtualscroller-loading ":i}),jt=i=>({"p-virtualscroller-loader-mask":i}),qt=i=>({numCols:i}),Ht=i=>({options:i}),Zt=()=>({styleClass:"p-virtualscroller-loading-icon"}),Gt=(i,h)=>({rows:i,columns:h});function Jt(i,h){i&1&&W(0)}function Kt(i,h){if(i&1&&(x(0),w(1,Jt,1,0,"ng-container",10),V()),i&2){let t=y(2);_(),m("ngTemplateOutlet",t.contentTemplate||t._contentTemplate)("ngTemplateOutletContext",N(2,it,t.loadedItems,t.getContentOptions()))}}function Ut(i,h){i&1&&W(0)}function Xt(i,h){if(i&1&&(x(0),w(1,Ut,1,0,"ng-container",10),V()),i&2){let t=h.$implicit,e=h.index,n=y(3);_(),m("ngTemplateOutlet",n.itemTemplate||n._itemTemplate)("ngTemplateOutletContext",N(2,it,t,n.getOptions(e)))}}function Yt(i,h){if(i&1&&(z(0,"div",11,3),w(2,Xt,2,5,"ng-container",12),b()),i&2){let t=y(2);pt(t.contentStyle),Q(t.contentStyleClass),m("ngClass",A(8,Nt,t.d_loading)),T("data-pc-section","content"),_(2),m("ngForOf",t.loadedItems)("ngForTrackBy",t._trackBy)}}function te(i,h){if(i&1&&E(0,"div",13),i&2){let t=y(2);m("ngStyle",t.spacerStyle),T("data-pc-section","spacer")}}function ee(i,h){i&1&&W(0)}function ie(i,h){if(i&1&&(x(0),w(1,ee,1,0,"ng-container",10),V()),i&2){let t=h.index,e=y(4);_(),m("ngTemplateOutlet",e.loaderTemplate||e._loaderTemplate)("ngTemplateOutletContext",A(4,Ht,e.getLoaderOptions(t,e.both&&A(2,qt,e.numItemsInViewport.cols))))}}function ne(i,h){if(i&1&&(x(0),w(1,ie,2,6,"ng-container",15),V()),i&2){let t=y(3);_(),m("ngForOf",t.loaderArr)}}function se(i,h){i&1&&W(0)}function oe(i,h){if(i&1&&(x(0),w(1,se,1,0,"ng-container",10),V()),i&2){let t=y(4);_(),m("ngTemplateOutlet",t.loaderIconTemplate||t._loaderIconTemplate)("ngTemplateOutletContext",A(3,Ht,wt(2,Zt)))}}function le(i,h){i&1&&E(0,"SpinnerIcon",16),i&2&&(m("styleClass","p-virtualscroller-loading-icon pi-spin"),T("data-pc-section","loadingIcon"))}function re(i,h){if(i&1&&w(0,oe,2,5,"ng-container",6)(1,le,1,2,"ng-template",null,5,j),i&2){let t=$(2),e=y(3);m("ngIf",e.loaderIconTemplate||e._loaderIconTemplate)("ngIfElse",t)}}function ae(i,h){if(i&1&&(z(0,"div",14),w(1,ne,2,1,"ng-container",6)(2,re,3,2,"ng-template",null,4,j),b()),i&2){let t=$(3),e=y(2);m("ngClass",A(4,jt,!e.loaderTemplate)),T("data-pc-section","loader"),_(),m("ngIf",e.loaderTemplate||e._loaderTemplate)("ngIfElse",t)}}function he(i,h){if(i&1){let t=ut();x(0),z(1,"div",7,1),_t("scroll",function(n){rt(t);let s=y();return at(s.onContainerScroll(n))}),w(3,Kt,2,5,"ng-container",6)(4,Yt,3,10,"ng-template",null,2,j)(6,te,1,2,"div",8)(7,ae,4,6,"div",9),b(),V()}if(i&2){let t=$(5),e=y();_(),Q(e._styleClass),m("ngStyle",e._style)("ngClass",Ct(12,$t,e.inline,e.both,e.horizontal)),T("id",e._id)("tabindex",e.tabindex)("data-pc-name","scroller")("data-pc-section","root"),_(2),m("ngIf",e.contentTemplate||e._contentTemplate)("ngIfElse",t),_(3),m("ngIf",e._showSpacer),_(),m("ngIf",!e.loaderDisabled&&e._showLoader&&e.d_loading)}}function ce(i,h){i&1&&W(0)}function de(i,h){if(i&1&&(x(0),w(1,ce,1,0,"ng-container",10),V()),i&2){let t=y(2);_(),m("ngTemplateOutlet",t.contentTemplate||t._contentTemplate)("ngTemplateOutletContext",N(5,it,t.items,N(2,Gt,t._items,t.loadedColumns)))}}function me(i,h){if(i&1&&(ft(0),w(1,de,2,8,"ng-container",17)),i&2){let t=y();_(),m("ngIf",t.contentTemplate||t._contentTemplate)}}var pe=({dt:i})=>`
|
|
2
2
|
.p-virtualscroller {
|
|
3
3
|
position: relative;
|
|
4
4
|
overflow: auto;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as o}from"./chunk-NMCKMUY4.js";function i(e="emit"){return r=>r.pipe(o(t=>console.log(`${e}`,t)))}export{i as a};
|