dealpos 25.37.3 → 25.38.1
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-WDDMKZLZ.js → chunk-2ZLV5QOF.js} +1 -1
- package/browser/{chunk-YMIWL4WY.js → chunk-33Z3MBAK.js} +1 -1
- package/browser/chunk-3HEZ7L27.js +14 -0
- package/browser/{chunk-J4NQVL2U.js → chunk-3R7CKCQC.js} +1 -1
- package/browser/{chunk-4ASACD3Q.js → chunk-4IZK3E4I.js} +1 -1
- package/browser/{chunk-5WFN5KAC.js → chunk-4MKFW5HF.js} +2 -2
- package/browser/{chunk-KEU6GUET.js → chunk-4QPI5R4J.js} +1 -1
- package/browser/{chunk-E3GQ2VEU.js → chunk-53HKNZ5U.js} +1 -1
- package/browser/{chunk-FT4VVMUZ.js → chunk-56F5KRLJ.js} +1 -1
- package/browser/{chunk-FE7KGLWI.js → chunk-5LDMXZLC.js} +1 -1
- package/browser/{chunk-T4MVFJGL.js → chunk-5VKCMGYJ.js} +1 -1
- package/browser/chunk-5VRRYWVC.js +140 -0
- package/browser/{chunk-LD5LH2YH.js → chunk-6QKPMFLS.js} +1 -1
- package/browser/{chunk-OVNI7USJ.js → chunk-6RP2WO45.js} +1 -1
- package/browser/{chunk-EMYSF46P.js → chunk-73MSULVJ.js} +1 -1
- package/browser/chunk-75M3O563.js +1 -0
- package/browser/{chunk-M4IEBQUD.js → chunk-7LY6BGJJ.js} +4 -4
- package/browser/chunk-7OH6LVTJ.js +125 -0
- package/browser/{chunk-7TZA4PUK.js → chunk-7UBJFV53.js} +1 -1
- package/browser/{chunk-2FXL2HDF.js → chunk-7YE4HOHN.js} +1 -1
- package/browser/chunk-A5X65SOA.js +57 -0
- package/browser/{chunk-LEJBHNYP.js → chunk-AESCW6DK.js} +1 -1
- package/browser/chunk-AFU62F2M.js +1 -0
- package/browser/{chunk-Z2P2CNKC.js → chunk-ASU7GMVT.js} +1 -1
- package/browser/{chunk-IPVEZIYO.js → chunk-AZC62B34.js} +1 -1
- package/browser/{chunk-UWNXD5ZO.js → chunk-B3KOTUMH.js} +1 -1
- package/browser/{chunk-AXHXNBHV.js → chunk-BDIOBQ3F.js} +1 -1
- package/browser/{chunk-VX4WL34G.js → chunk-BGRIUOYM.js} +1 -1
- package/browser/{chunk-KMHOACN3.js → chunk-CF6DDJIR.js} +3 -3
- package/browser/{chunk-HYW3PEDN.js → chunk-CFQ7OFCQ.js} +1 -1
- package/browser/{chunk-72KIMU7G.js → chunk-CKBNUI2K.js} +1 -1
- package/browser/chunk-CMTZAHVY.js +1 -0
- package/browser/{chunk-QWLFS2FE.js → chunk-DUEJUN6K.js} +1 -1
- package/browser/{chunk-AUWH2QWX.js → chunk-DV4SS5LL.js} +1 -1
- package/browser/chunk-DXNYWBOJ.js +1 -0
- package/browser/{chunk-HUAA5QUE.js → chunk-EAENAZFY.js} +1 -1
- package/browser/{chunk-NXQT6LJS.js → chunk-EBR5GJGA.js} +1 -1
- package/browser/{chunk-YAGXTRYQ.js → chunk-EPQCS4G7.js} +1 -1
- package/browser/{chunk-YFN33F7G.js → chunk-FC2QVVNL.js} +1 -1
- package/browser/{chunk-RRGRXLUZ.js → chunk-FT7BPR32.js} +1 -1
- package/browser/{chunk-QBECNCED.js → chunk-G7YXYVOM.js} +1 -1
- package/browser/{chunk-5O2KKW6F.js → chunk-GKVCGI4Q.js} +14 -12
- package/browser/{chunk-IWJJRPWB.js → chunk-GNIXWNP2.js} +1 -1
- package/browser/{chunk-FY5VLGQC.js → chunk-GWHR6QGI.js} +1 -1
- package/browser/chunk-H6OITCFT.js +1 -0
- package/browser/{chunk-RCW46J3Z.js → chunk-HFMOHPY7.js} +1 -1
- package/browser/{chunk-BED5HJZ2.js → chunk-HGB2NJEI.js} +1 -1
- package/browser/{chunk-A4JKVSUB.js → chunk-I4UPUEJQ.js} +4 -4
- package/browser/{chunk-JTWFMMM2.js → chunk-ICQLVIY5.js} +1 -1
- package/browser/{chunk-AXEM33OC.js → chunk-IUATJVYE.js} +1 -1
- package/browser/chunk-IV6VX4SW.js +1 -0
- package/browser/chunk-IY5XCLBB.js +1 -0
- package/browser/chunk-J27ER66U.js +2 -0
- package/browser/{chunk-YLD325HC.js → chunk-J6H577U5.js} +1 -1
- package/browser/{chunk-PMQCMLOB.js → chunk-JG6KP3LU.js} +1 -1
- package/browser/{chunk-OFCUJNQU.js → chunk-JHLUUVPP.js} +1 -1
- package/browser/{chunk-2RWD5W3A.js → chunk-JI6KR4QD.js} +1 -1
- package/browser/chunk-JIFR7UDE.js +1 -0
- package/browser/{chunk-IQY2LSF6.js → chunk-JKXSLPGV.js} +1 -1
- package/browser/chunk-JRRUR7IA.js +1 -0
- package/browser/{chunk-NILHRRUO.js → chunk-JSETQAUZ.js} +1 -1
- package/browser/{chunk-7EU2PMHX.js → chunk-K5DJ5WPE.js} +1 -1
- package/browser/{chunk-NOK7ZUJF.js → chunk-K7MKOLA6.js} +1 -1
- package/browser/{chunk-O6GMQRZG.js → chunk-KGDQP4JR.js} +1 -1
- package/browser/chunk-KXOXDBRC.js +1 -0
- package/browser/{chunk-CG73T3TQ.js → chunk-KYSWAYKK.js} +1 -1
- package/browser/{chunk-H4SCBKWD.js → chunk-L3BBA7TR.js} +1 -1
- package/browser/{chunk-CJKH7RU5.js → chunk-L3MPEEI7.js} +1 -1
- package/browser/{chunk-N3XWBPCL.js → chunk-LJYCLPTA.js} +1 -1
- package/browser/{chunk-LHQMGLCO.js → chunk-LT55LCIC.js} +1 -1
- package/browser/{chunk-RT6YCLZW.js → chunk-MGFRGPN4.js} +1 -1
- package/browser/{chunk-246GVKUS.js → chunk-MPENEFJK.js} +1 -1
- package/browser/chunk-MTTML3DV.js +3 -0
- package/browser/chunk-NOHORPPM.js +1 -0
- package/browser/{chunk-DTFL44UO.js → chunk-O27UF6WP.js} +1 -1
- package/browser/{chunk-RLFBLSFM.js → chunk-O6K27TYY.js} +1 -1
- package/browser/{chunk-GAPY6IUE.js → chunk-OQN4WGVB.js} +1 -1
- package/browser/{chunk-57IUU6ZC.js → chunk-OWSL7VZ7.js} +1 -1
- package/browser/{chunk-AKPQZTEV.js → chunk-PMTKXVGT.js} +1 -1
- package/browser/{chunk-LC2G5X3T.js → chunk-PPSWM237.js} +1 -1
- package/browser/{chunk-IX5URHI7.js → chunk-Q3GWLSDE.js} +1 -1
- package/browser/{chunk-MTMMU7GK.js → chunk-Q5WMF6RD.js} +1 -1
- package/browser/chunk-QBWWLEFP.js +24 -0
- package/browser/{chunk-2QG4JWAE.js → chunk-QCJ7PV4R.js} +4 -4
- package/browser/chunk-QHBYJZNS.js +1 -0
- package/browser/chunk-QQ5NVKJL.js +82 -0
- package/browser/{chunk-OXLXIWTF.js → chunk-QVRCMMJJ.js} +1 -1
- package/browser/chunk-QXK4GGIN.js +1 -0
- package/browser/{chunk-CZAQG6WF.js → chunk-QZDLOXOP.js} +1 -1
- package/browser/{chunk-DSIUUK4N.js → chunk-RCRLKTEV.js} +1 -1
- package/browser/{chunk-5G6GUMV7.js → chunk-RPNTNFVK.js} +1 -1
- package/browser/{chunk-PTGE5E6V.js → chunk-SF6TPOUV.js} +1 -1
- package/browser/{chunk-76T3TRG4.js → chunk-SP3U2IDW.js} +1 -1
- package/browser/{chunk-47I5SA66.js → chunk-SSRC3KCP.js} +1 -1
- package/browser/{chunk-VSFXSQWT.js → chunk-STC3XKNG.js} +1 -1
- package/browser/{chunk-V55A6VFC.js → chunk-T4BIKBND.js} +1 -1
- package/browser/{chunk-XOMO7AVU.js → chunk-TF3Q66XY.js} +1 -1
- package/browser/chunk-TIXKTMNP.js +1 -0
- package/browser/{chunk-ELFCO6CE.js → chunk-TNJUQ6BJ.js} +1 -1
- package/browser/{chunk-QILONTOR.js → chunk-TNXU6YBX.js} +1 -1
- package/browser/{chunk-ZDJDS43F.js → chunk-TTGCLMYO.js} +1 -1
- package/browser/{chunk-L4VLBO5X.js → chunk-UF66Z7HD.js} +1 -1
- package/browser/{chunk-ML4LS3JQ.js → chunk-ULVRQWWQ.js} +1 -1
- package/browser/{chunk-2W2V2NM7.js → chunk-UMUBYBGM.js} +1 -1
- package/browser/{chunk-EANTJIRK.js → chunk-UYJZPS2Q.js} +1 -1
- package/browser/{chunk-HNX747EE.js → chunk-V4VZQ5KY.js} +1 -1
- package/browser/chunk-V5A6ADTH.js +1 -0
- package/browser/{chunk-Z7BGVRZR.js → chunk-VE4MEWC3.js} +1 -1
- package/browser/{chunk-OSWSFGOJ.js → chunk-W446RFN2.js} +1 -1
- package/browser/{chunk-FLEDIXNB.js → chunk-W6TD44BK.js} +1 -1
- package/browser/chunk-W7TIYEEV.js +1 -0
- package/browser/{chunk-X3P7SVC6.js → chunk-WLIVNIHK.js} +1 -1
- package/browser/chunk-WNWQWQ7T.js +1 -0
- package/browser/{chunk-HHIBVND5.js → chunk-WO4BYI7W.js} +1 -1
- package/browser/{chunk-LK3EGJFT.js → chunk-X4OHSOA3.js} +1 -1
- package/browser/{chunk-4F7XKKDX.js → chunk-X4UVY3YK.js} +1 -1
- package/browser/{chunk-ZGUZW56H.js → chunk-XG6WOYOZ.js} +1 -1
- package/browser/{chunk-WG2QGIET.js → chunk-XI63Z4XV.js} +1 -1
- package/browser/chunk-XUOXQ56H.js +3 -0
- package/browser/{chunk-4PBQC5P6.js → chunk-Y3XAADIW.js} +1 -1
- package/browser/{chunk-CKB6AES2.js → chunk-Y5RVOKMC.js} +1 -1
- package/browser/{chunk-EQT4SGSU.js → chunk-Y6ACRZOB.js} +1 -1
- package/browser/{chunk-ACSIWGQV.js → chunk-Y6SHFOKM.js} +2 -2
- package/browser/chunk-YNKGRRRO.js +1 -0
- package/browser/{chunk-7EA7EXS5.js → chunk-YTSJ26UL.js} +1 -1
- package/browser/{chunk-GKTQL7S6.js → chunk-Z75HO5XT.js} +1 -1
- package/browser/{chunk-6FKZY7NZ.js → chunk-ZC5TUX6E.js} +1 -1
- package/browser/{chunk-77KTGZY6.js → chunk-ZZVXDXSB.js} +1 -1
- package/browser/index.html +3 -3
- package/browser/{main-E4MQYENS.js → main-HGYA62Q7.js} +2 -2
- package/browser/{styles-AWHBZGFK.css → styles-2TXD27TS.css} +1 -1
- package/package.json +1 -1
- package/browser/chunk-2CJDU4L3.js +0 -1
- package/browser/chunk-BSJU72R6.js +0 -3
- package/browser/chunk-ED4YSOUM.js +0 -56
- package/browser/chunk-GTRQV3VX.js +0 -1
- package/browser/chunk-H3V5PSCN.js +0 -218
- package/browser/chunk-HMRDZRDD.js +0 -12
- package/browser/chunk-IMEKDDRZ.js +0 -1
- package/browser/chunk-IXDUCCKR.js +0 -2
- package/browser/chunk-KEUS7V3K.js +0 -1
- package/browser/chunk-KP2OKS63.js +0 -1
- package/browser/chunk-KZU22HGO.js +0 -1
- package/browser/chunk-LMSUV4DF.js +0 -4
- package/browser/chunk-LRZRVZHZ.js +0 -24
- package/browser/chunk-MXD23J36.js +0 -1
- package/browser/chunk-NUGWNTFZ.js +0 -1
- package/browser/chunk-ODE5SZH6.js +0 -1
- package/browser/chunk-OY46AN7G.js +0 -1
- package/browser/chunk-P42NPBKN.js +0 -1
- package/browser/chunk-PJZKO6EJ.js +0 -1
- package/browser/chunk-RW7QZRJ2.js +0 -3
- package/browser/chunk-SZDICN4P.js +0 -1
- package/browser/chunk-TPPS3QIA.js +0 -1
- package/browser/chunk-UGECMXMN.js +0 -125
- package/browser/chunk-VGHP2OV6.js +0 -1
- package/browser/chunk-X3HEHRBU.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Ge}from"./chunk-Z5N4EKJ3.js";import{a as Ae,f as Ne}from"./chunk-PPSWM237.js";import{b as Le,c as Re,d as Be,e as We,f as je,g as ze}from"./chunk-53HKNZ5U.js";import"./chunk-7BU64MD2.js";import{b as $e}from"./chunk-YOKPVEGO.js";import"./chunk-I5K3C5EY.js";import"./chunk-OLALZT3L.js";import{d as Fe}from"./chunk-DWWBB3GE.js";import"./chunk-6N4AU5UX.js";import"./chunk-VZX4F3F5.js";import"./chunk-BDIOBQ3F.js";import"./chunk-2NPKEKTC.js";import"./chunk-LHP3ECFW.js";import{b as xe}from"./chunk-CKBNUI2K.js";import"./chunk-3RK6DDJD.js";import{a as he}from"./chunk-L2EDFSBR.js";import"./chunk-TEFNN3TY.js";import{d as Se}from"./chunk-LJYCLPTA.js";import"./chunk-JKYTSC2D.js";import{b as De,c as ke,d as Ue,e as Ve}from"./chunk-QQ5NVKJL.js";import"./chunk-CFQ7OFCQ.js";import"./chunk-TYLM2YM3.js";import{d as Pe,e as Oe}from"./chunk-5VRRYWVC.js";import"./chunk-RBCKIP6D.js";import"./chunk-3LBZWLLT.js";import"./chunk-LZNTSIJX.js";import"./chunk-C6ARCDXZ.js";import{a as be,b as Ee}from"./chunk-TIXKTMNP.js";import"./chunk-52EOLV7I.js";import"./chunk-5UL73W4S.js";import{u as ye,v as Te,w as Me}from"./chunk-GWHR6QGI.js";import"./chunk-CIBQBSM6.js";import{P as H}from"./chunk-Q3GWLSDE.js";import{e as we,f as ve,g as Ie}from"./chunk-ZZ7LHETD.js";import"./chunk-567HXZXC.js";import"./chunk-I7VBCYOO.js";import"./chunk-CGESXTHC.js";import"./chunk-2FWFPV5I.js";import{la as Ce}from"./chunk-TLOTIYIE.js";import{F as L,G as fe,h as ue,o as _e}from"./chunk-2RSBMS36.js";import"./chunk-7YE4HOHN.js";import"./chunk-MPENEFJK.js";import"./chunk-AHCRE4GP.js";import"./chunk-XI63Z4XV.js";import{$a as a,$b as A,Ac as S,Bc as ae,Db as b,E as K,Eb as te,Gb as ie,Hb as ne,I as Y,Ia as $,Ib as n,Ja as k,Jb as o,Kb as x,Lb as y,Ma as U,Mb as T,Ob as h,Qb as f,Rb as d,Sb as oe,Tb as Q,Wa as X,Wc as me,Y as j,Yd as ge,Zb as V,Zc as se,_b as F,aa as J,cd as de,db as G,dc as N,ec as l,fa as z,fc as c,gc as w,gd as ce,jc as P,jd as M,k as q,kb as I,kc as O,lc as D,na as E,ob as Z,qb as C,qc as re,rc as le,tc as pe,va as u,vb as s,wa as _,xb as ee,zc as g}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";var Ye=["stepperRef"],Je=[[["preview"]],[["complete"]]],Xe=["preview","complete"];function Ze(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function et(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function tt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function it(t,r){t&1&&(x(0,"i",8),n(1,"span"),l(2,"Upload"),o())}function nt(t,r){if(t&1){let e=h();n(0,"div",9)(1,"div",10)(2,"POS-uppy",11),f("fileUploaded",function(i){u(e);let m=d(2);return _(m.onDropFile(i))}),o()(),n(3,"div",12)(4,"p",13),l(5," Please refer this "),n(6,"a",14),l(7,"article"),o(),l(8," for more information "),o()()()}if(t&2){let e=d(2);a(2),s("sampleUrl",e.sampleUrl())("subtitle","Accepted file formats: .csv & max file size: 1 MB"),a(4),s("href",e.articleLink(),X)}}function ot(t,r){if(t&1&&C(0,nt,9,3,"div",9),t&2){d();let e=N(1);b(e.selectedIndex===0?0:-1)}}function rt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function lt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function pt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function at(t,r){t&1&&(x(0,"i",15),n(1,"span"),l(2,"Preview"),o())}function mt(t,r){t&1&&Q(0)}function st(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function dt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function ct(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function ut(t,r){t&1&&(x(0,"i",16),n(1,"span"),l(2,"Finish"),o())}function _t(t,r){t&1&&Q(0,1)}var R=class t{sampleUrl=k();articleLink=k();_onDropFile=$({alias:"onDropFile"});disabledEdit=k(!1);_onStateChange=$({alias:"onStateChange"});_stepper;get stepper(){return this._stepper}nextStep(){this._stepper&&(this.stepper.selected.completed=!0,this._stepper.next())}previousStep(){this._stepper&&this._stepper.previous()}resetStep(){this._stepper&&this._stepper.reset()}onStepChange(r){r.selectedIndex===1?this._onStateChange.emit(1):r.selectedIndex===2?this._onStateChange.emit(2):this._onStateChange.emit(0)}onDropFile(r){this._onDropFile.emit(r)}onRemoveFile(){}stateUpload(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=I({type:t,selectors:[["pos-import-stepper"]],viewQuery:function(e,p){if(e&1&&V(Ye,5),e&2){let i;F(i=A())&&(p._stepper=i.first)}},inputs:{sampleUrl:[1,"sampleUrl"],articleLink:[1,"articleLink"],disabledEdit:[1,"disabledEdit"]},outputs:{_onDropFile:"onDropFile",_onStateChange:"onStateChange"},ngContentSelectors:Xe,decls:20,vars:7,consts:[["stepperRef",""],[3,"selectionChange","linear"],[3,"completed","editable"],["matStepperIcon","done"],["matStepperIcon","create"],["matStepperIcon","edit"],["matStepLabel",""],["matStepContent",""],[1,"fa-solid","fa-upload","me-3"],[1,"d-flex","flex-column","align-items-center","justify-content-center","gap-2"],[2,"max-width","580px"],["file","",3,"fileUploaded","sampleUrl","subtitle"],[1,"d-flex","w-100",2,"max-width","580px"],[1,"fst-italic"],["target","_blank",3,"href"],[1,"fa-regular","fa-file","me-3"],[1,"fa-solid","fa-check","me-3"]],template:function(e,p){if(e&1){let i=h();oe(Je),n(0,"mat-stepper",1,0),f("selectionChange",function(v){return u(i),_(p.onStepChange(v))}),n(2,"mat-step",2),C(3,Ze,1,1,"ng-template",3)(4,et,1,1,"ng-template",4)(5,tt,1,1,"ng-template",5)(6,it,3,0,"ng-template",6)(7,ot,1,1,"ng-template",7),o(),n(8,"mat-step",2),C(9,rt,1,1,"ng-template",3)(10,lt,1,1,"ng-template",4)(11,pt,1,1,"ng-template",5)(12,at,3,0,"ng-template",6)(13,mt,1,0,"ng-template",7),o(),n(14,"mat-step",2),C(15,st,1,1,"ng-template",3)(16,dt,1,1,"ng-template",4)(17,ct,1,1,"ng-template",5)(18,ut,3,0,"ng-template",6)(19,_t,1,0,"ng-template",7),o()()}e&2&&(s("linear",!0),a(2),s("completed",!1)("editable",!p.disabledEdit()),a(6),s("completed",!1)("editable",!p.disabledEdit()),a(6),s("completed",!1)("editable",!1))},dependencies:[M,Se,L,fe,he,xe,$e,Fe,ze,We,Le,je,Re,Be],styles:[".mat-horizontal-stepper-header-container{width:50%!important;margin:0 auto} .mat-horizontal-stepper-wrapper{gap:1rem} .mat-horizontal-stepper-content{display:flex;justify-content:center} p-table .p-datatable-tbody>tr{border-bottom-width:1px;border-color:#dee2e6} p-table .p-datatable-tbody>tr>th{font-family:Roboto,system-ui!important;font-weight:400;font-style:normal} .p-datatable .p-datatable-wrapper .p-datatable-table .p-datatable-thead>tr>th{font-family:Roboto,Courier,monospace;font-weight:700;font-style:normal;color:#333} .p-datatable .p-datatable-wrapper .p-datatable-table .p-datatable-tbody>tr>td{font-family:Roboto,Courier,monospace;font-weight:400;font-style:normal;color:#333}"]})};var B=class t{configModal=new ye;dialogRef=E(we);data=E(ve);constructor(){this.initDialogConfig()}initDialogConfig(){this.configModal.title="Preview Summary",this.configModal.hideCancel=!0,this.configModal.okText="Import (F2)",this.configModal.customWidth="500px"}onOk(){this.dialogRef.close(!0)}onClose(){this.dialogRef.close(!1)}ngOnInit(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=I({type:t,selectors:[["app-dialog-import-preview"]],decls:30,vars:10,consts:[[3,"onOk","onCancel","onClose","config"],[1,"card","mb-0"],[1,"card-header","py-6","bg-gradient-success"],[1,"card-body"],[1,"row"],[1,"col"],[1,"d-flex","flex-column","gap-2"],[2,"font-size","1.9rem"],[2,"font-size","1rem"]],template:function(e,p){e&1&&(n(0,"modal-material",0),f("onOk",function(){return p.onOk()})("onCancel",function(){return p.onClose()})("onClose",function(){return p.onClose()}),x(1,"header"),n(2,"content")(3,"div",1)(4,"div",2)(5,"h3"),l(6,"Import Summary"),o()(),n(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"span",7),l(12),g(13,"number"),o(),n(14,"span",8),l(15,"New Outlet"),o()()(),n(16,"div",5)(17,"div",6)(18,"span",7),l(19),g(20,"number"),o(),n(21,"span",8),l(22,"Update Outlet"),o()()(),n(23,"div",5)(24,"div",6)(25,"span",7),l(26),g(27,"number"),o(),n(28,"span",8),l(29,"New Outlet Group"),o()()()()()()()()),e&2&&(s("config",p.configModal),a(12),c(S(13,4,p.data==null?null:p.data.new)),a(7),c(S(20,6,p.data==null?null:p.data.update)),a(7),c(S(27,8,p.data==null?null:p.data.newOutletGroup)))},dependencies:[M,ce,Me,Te],encapsulation:2})};var gt=["importStepper"],Ct=()=>({"min-width":"50rem"}),St=(t,r,e)=>({"btn-success":t,"btn-outline-secondary":r,"not-allowed":e}),ht=t=>({"mb-1":t});function xt(t,r){if(t&1){let e=h();n(0,"button",14),f("click",function(){u(e);let i=d();return _(i.onPreviousStep())}),l(1," Back "),o()}}function bt(t,r){if(t&1){let e=h();n(0,"button",15),g(1,"async"),g(2,"async"),f("click",function(){u(e);let i=d();return _(i.onNextStep())}),l(3," Next "),o()}if(t&2){let e,p,i=d();s("ngClass",pe(6,St,i.currentState()===1,i.currentState()!==1,!((e=S(1,2,i.importPreview$))!=null&&e.CanProceed)))("disabled",!((p=S(2,4,i.importPreview$))!=null&&p.CanProceed)&&i.currentState()===1)}}function wt(t,r){if(t&1){let e=h();n(0,"button",14),f("click",function(){u(e);let i=d();return _(i.onReset())}),l(1," New "),o()}}function vt(t,r){if(t&1){let e=h();n(0,"tr")(1,"th",16),l(2,"Name"),o(),n(3,"th",17),l(4,"Code"),o(),n(5,"th",18),l(6," Status "),n(7,"i",19),f("click",function(i){u(e);let m=N(9);return _(m.toggle(i))}),o(),n(8,"p-popover",null,1)(10,"div",20)(11,"div",21)(12,"p-checkbox",22),f("ngModelChange",function(i){u(e);let m=d();return _(m.selectAll(i))}),o(),n(13,"label",23),l(14,"All"),o()(),n(15,"div",24)(16,"p-checkbox",25),D("ngModelChange",function(i){u(e);let m=d();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(17,"label",26),l(18,"Unchanged"),o()(),n(19,"div",24)(20,"p-checkbox",27),D("ngModelChange",function(i){u(e);let m=d();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(21,"label",28),l(22,"New"),o()(),n(23,"div",24)(24,"p-checkbox",29),D("ngModelChange",function(i){u(e);let m=d();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(25,"label",30),l(26,"Error"),o()(),n(27,"div",24)(28,"p-checkbox",31),D("ngModelChange",function(i){u(e);let m=d();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(29,"label",32),l(30,"Update"),o()()()()(),n(31,"th"),l(32,"Message"),o()()}if(t&2){let e=d();a(12),s("ngModel",e.pickAll),a(4),P("ngModel",e.filterTreeCondition),a(4),P("ngModel",e.filterTreeCondition),a(4),P("ngModel",e.filterTreeCondition),a(4),P("ngModel",e.filterTreeCondition)}}function It(t,r){if(t&1&&(n(0,"div",33)(1,"span",34),l(2),o(),n(3,"span"),l(4),o()()),t&2){let e=r.$implicit,p=r.$index,i=d().$implicit;s("ngClass",le(3,ht,p<i.Issues.length-1)),a(2),w(" ",e.Issue,". "),a(2),w("",e.Solution," ")}}function yt(t,r){if(t&1&&(n(0,"tr")(1,"td"),l(2),o(),n(3,"td"),l(4),o(),n(5,"td"),l(6),o(),n(7,"td"),ie(8,It,5,5,"div",33,te),o()()),t&2){let e=r.$implicit;a(2),c(e.Name),a(2),c(e.Code),a(),ee("bg-gradient-success",e.Action=="New")("bg-gradient-warning",e.Action=="Update")("bg-gradient-danger",e.Action=="Error"),a(),w(" ",e.Action," "),a(2),ne(e.Issues)}}function Tt(t,r){if(t&1&&(y(0),n(1,"div",38)(2,"span"),l(3),o(),l(4,", "),n(5,"span"),l(6),o(),n(7,"span"),l(8),o(),n(9,"span"),l(10,"succesfully imported"),o()(),T()),t&2){let e=r.ngIf;a(3),w("",e==null?null:e.Summary.NewOutlet," New Outlets"),a(3),w("",e==null?null:e.Summary.UpdateOutlet," Updated Outlets"),a(2),w("and ",e==null?null:e.Summary.NewOutletGroup," New Outlet Group")}}function Mt(t,r){if(t&1&&(n(0,"div",13),x(1,"i",35),n(2,"h1",36),l(3,"Upload Complete!"),o(),C(4,Tt,11,3,"ng-container",37),g(5,"async"),o()),t&2){let e=d();a(4),s("ngIf",S(5,1,e.importPreview$))}}var qe=class t extends be{constructor(e,p){super(e);this.httpService=p;this.menuData$.subscribe()}pickAll=["All"];filterTreeCondition=["Unchanged","New","Error","Update"];importStepper;fileToImport=U(null);importPreview$;sampleUrl="https://cdn.dealpos.xyz/web-import-template/Outlet_Import_Template.csv";articleLink="https://support.dealpos.com/en/articles/11069092-import-new-outlet";currentState=U(0);confirmImport$;importPreview=U(null);dialog=E(Ie);onDropFile(e){this.fileToImport.set(e)}onNextStep(){switch(this.currentState()){case 0:this.onPreviewImport();break;case 1:this.onImport();break;default:break}}onPreviousStep(){this.importStepper.previousStep()}onReset(){this.importPreview.set(null),this.importPreview$=null,this.confirmImport$=null,this.fileToImport.set(null),this.currentState.update(()=>0),this.importStepper.resetStep()}onStateChange(e){this.currentState.update(()=>e)}onPreviewImport(){this.pickAll=["All"],this.filterTreeCondition=["Unchanged","New","Error","Update"];let e=new FormData;e.append("file",this.fileToImport()),this.importPreview$=this.httpService.postFormData(H.previewImportOutlet,e).pipe(z(p=>{this.importPreview.set(p),this.importStepper.nextStep()}),j(1))}onImport(){this.confirmImport$=this.dialog.open(B,{data:{new:this.importPreview()?.Summary?.NewOutlet,update:this.importPreview()?.Summary?.UpdateOutlet,newOutletGroup:this.importPreview()?.Summary?.NewOutletGroup}}).afterClosed().pipe(K(e=>e==!0),J(()=>this.httpService.post(H.importOutlet,{CacheKey:this.importPreview()?.CacheKey})),z(e=>{this.importStepper.nextStep()}),Y(e=>(this.pickAll=[],this.filterTreeCondition=["Error"],q)),j(1))}selectAll(e){this.pickAll=e,this.pickAll.length==0?this.filterTreeCondition=[]:this.filterTreeCondition=["Unchanged","New","Error","Update"]}static \u0275fac=function(p){return new(p||t)(G(Ee),G(ge))};static \u0275cmp=I({type:t,selectors:[["app-outlet-import"]],viewQuery:function(p,i){if(p&1&&V(gt,5),p&2){let m;F(m=A())&&(i.importStepper=m.first)}},features:[Z],decls:17,vars:21,consts:[["importStepper",""],["op",""],[3,"pageData","hideSearchBox","hideSearchDropdown"],["ngProjectAs","actions",5,["actions"]],["type","button",1,"btn","btn-outline-secondary"],[1,"btn",3,"ngClass","disabled"],["ngProjectAs","content",5,["content"]],[3,"onDropFile","onStateChange","sampleUrl","disabledEdit","articleLink"],["ngProjectAs","preview",5,["preview"]],[1,"w-100",3,"value","scrollable","tableStyle"],["pTemplate","header"],["pTemplate","body"],["ngProjectAs","complete",5,["complete"]],[1,"d-flex","flex-column","align-items-center"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"btn",3,"click","ngClass","disabled"],[2,"width","300px"],[2,"width","200px"],[2,"width","100px"],[1,"fa","fa-filter","pointer",3,"click"],[2,"width","150px"],[1,"border-bottom","pb-3","d-flex","align-items-center","column-gap-3"],["label","Select All","name","filterTreeCondition","value","All","inputId","all",3,"ngModelChange","ngModel"],["for","all",1,"ms-2"],[1,"mt-4","d-flex","align-items-center","column-gap-3"],["label","Unchanged","name","filterTreeCondition","value","Unchanged","inputId","unchanged",3,"ngModelChange","ngModel"],["for","unchanged",1,"ms-2"],["label","New","name","filterTreeCondition","value","New","inputId","new",3,"ngModelChange","ngModel"],["for","new",1,"ms-2"],["label","Error","name","filterTreeCondition","value","Error","inputId","error",3,"ngModelChange","ngModel"],["for","error",1,"ms-2"],["label","Updated","name","filterTreeCondition","value","Update","inputId","update",3,"ngModelChange","ngModel"],["for","update",1,"ms-2"],[3,"ngClass"],[1,"me-1"],[1,"fa-solid","fa-circle-check","text-success",2,"font-size","110px"],[1,"mt-8"],[4,"ngIf"],[1,"d-flex","gap-2","fw-normal","fs-4","mt-2"]],template:function(p,i){if(p&1){let m=h();n(0,"mainpanel-cmp",2),y(1,3),C(2,xt,2,0,"button",4)(3,bt,4,10,"button",5)(4,wt,2,0,"button",4),T(),y(5,6),n(6,"pos-import-stepper",7,0),f("onDropFile",function(W){return u(m),_(i.onDropFile(W))})("onStateChange",function(W){return u(m),_(i.onStateChange(W))}),y(8,8),n(9,"p-table",9),g(10,"async"),g(11,"filterTree"),C(12,vt,33,5,"ng-template",10)(13,yt,10,9,"ng-template",11),o(),T(),y(14,12),C(15,Mt,6,3,"div",13),g(16,"async"),T(),o(),T(),o()}if(p&2){let m,v;s("pageData",i.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),a(2),b(i.currentState()==1?2:-1),a(),b(i.fileToImport()&&((m=i.fileToImport())==null?null:m.size)>0&&i.currentState()<2?3:-1),a(),b(i.currentState()===2?4:-1),a(2),s("sampleUrl",i.sampleUrl)("disabledEdit",i.currentState()===2)("articleLink",i.articleLink),a(3),s("value",ae(11,15,(v=S(10,13,i.importPreview$))==null?null:v.DataRow,i.filterTreeCondition))("scrollable",!0)("tableStyle",re(20,Ct)),a(6),b(S(16,18,i.confirmImport$)?15:-1)}},dependencies:[M,me,se,de,R,Ve,Ue,Ne,Ae,Ce,Oe,Pe,L,ue,_e,ke,De,Ge],encapsulation:2})};export{qe as OutletImportComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as $,e as ee}from"./chunk-
|
|
1
|
+
import{d as $,e as ee}from"./chunk-L3BBA7TR.js";import{a as z}from"./chunk-XX6Z7QPA.js";import"./chunk-VQ7WKMGF.js";import{f as te}from"./chunk-2ZLV5QOF.js";import{a as oe,b as ne}from"./chunk-ZU22CVVV.js";import{a as H,b as G,c as A}from"./chunk-IUATJVYE.js";import{a as ie}from"./chunk-5VKCMGYJ.js";import{b as Q}from"./chunk-QHBYJZNS.js";import{a as q}from"./chunk-Q5WMF6RD.js";import"./chunk-7UBJFV53.js";import"./chunk-C73IEBHE.js";import{d as Y,e as Z}from"./chunk-QQ5NVKJL.js";import"./chunk-CFQ7OFCQ.js";import"./chunk-TYLM2YM3.js";import"./chunk-5VRRYWVC.js";import"./chunk-OBNSNZON.js";import"./chunk-RCRLKTEV.js";import"./chunk-RBCKIP6D.js";import"./chunk-3LBZWLLT.js";import"./chunk-LZNTSIJX.js";import"./chunk-C6ARCDXZ.js";import"./chunk-FD5YMPRL.js";import"./chunk-MV3QRRW6.js";import{b as K}from"./chunk-TIXKTMNP.js";import"./chunk-52EOLV7I.js";import"./chunk-5UL73W4S.js";import"./chunk-LNVTHMH7.js";import"./chunk-6ZOGADBZ.js";import"./chunk-GWHR6QGI.js";import"./chunk-CIBQBSM6.js";import{O as X,g as U}from"./chunk-Q3GWLSDE.js";import"./chunk-ZT4RBJMM.js";import"./chunk-GIKR6Y2K.js";import"./chunk-LPGMI3V2.js";import{g as J}from"./chunk-ZZ7LHETD.js";import"./chunk-567HXZXC.js";import"./chunk-I7VBCYOO.js";import"./chunk-CGESXTHC.js";import"./chunk-2FWFPV5I.js";import"./chunk-TLOTIYIE.js";import{F as W,h as B,o as R}from"./chunk-2RSBMS36.js";import"./chunk-7YE4HOHN.js";import"./chunk-MPENEFJK.js";import{d as k}from"./chunk-AHCRE4GP.js";import"./chunk-XI63Z4XV.js";import{$a as p,Ac as P,Bc as T,Eb as b,Fc as V,Gb as M,Hb as O,Ib as i,Jb as o,Kb as v,Ob as _,Qb as S,Rb as m,Yd as j,Zc as F,db as u,ec as l,fc as h,gc as w,jc as x,jd as N,kb as E,kc as C,lc as y,ob as I,qb as f,va as c,vb as d,wa as s,zc as D}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";function re(r,g){if(r&1){let e=_();i(0,"button",5),S("click",function(){c(e);let t=m();return s(t.openExportModal())}),v(1,"i",6),l(2," Export "),o()}}function le(r,g){if(r&1){let e=_();i(0,"h6"),l(1,"Outlet"),o(),i(2,"outlet-selector",7),y("ngModelChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Outlet,t)||(a.pageData.Filter.Outlet=t),s(t)}),o(),i(3,"h6"),l(4,"Category"),o(),i(5,"POS-product-category-select",8),y("selectedCategoryIDChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Category,t)||(a.pageData.Filter.Category=t),s(t)}),o(),i(6,"h6"),l(7,"Discontinued"),o(),i(8,"radio-options",9),y("modelChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Discontinued,t)||(a.pageData.Filter.Discontinued=t),s(t)}),o()}if(r&2){let e=m();p(2),d("accessType",2),x("ngModel",e.pageData.Filter.Outlet),p(3),x("selectedCategoryID",e.pageData.Filter.Category),d("showClear",!0),p(3),d("options",e.pageData==null||e.pageData.Options==null?null:e.pageData.Options.Discontinued),x("model",e.pageData.Filter.Discontinued)}}function pe(r,g){if(r&1&&(i(0,"tr")(1,"td"),l(2),o(),i(3,"td"),l(4),o(),i(5,"td",20),l(6),D(7,"quantityFraction"),o()()),r&2){let e=g.$implicit;p(2),h(e.EntityName),p(2),h(e.Name),p(2),w(" ",P(7,3,e.Inventory)," ")}}function me(r,g){if(r&1){let e=_();i(0,"div",10)(1,"div",11)(2,"table",12),S("matSortChange",function(t){c(e);let a=m();return s(a.onSortData(t))}),i(3,"thead",13)(4,"tr",14)(5,"th",15),l(6,"Outlet"),o(),i(7,"th",16),l(8,"Storage Location"),o(),i(9,"th",17),l(10," On Hand "),o()()(),i(11,"tbody"),M(12,pe,8,5,"tr",null,b),o(),i(14,"tfoot")(15,"tr",18),v(16,"td",19),i(17,"td",19),l(18,"Total :"),o(),i(19,"td",20),l(20),D(21,"sum"),D(22,"quantityFraction"),o()()()(),i(23,"POS-complex-pagination",21),S("jumpToPage",function(){c(e);let t=m();return s(t.getListData())})("previousPage",function(){c(e);let t=m();return s(t.getListData())})("nextPage",function(){c(e);let t=m();return s(t.getListData())}),o()()()}if(r&2){let e=m();p(12),O(e.data.Data),p(8),w(" ",P(22,6,T(21,3,e.data.Data,"Inventory"))," "),p(3),d("total",e.data.Data==null?null:e.data.Data.length)("pageData",e.pageData)}}var ae=class r extends q{constructor(e,n,t,a){super(e,n,"Inventory/GetProductStorageLocation","InventoryLoader/InventoryReport");this.httpService=n;this.dialog=t;this.roleService=a}datasource;postInit(e){this.datasource=JSON.parse(JSON.stringify(e.Data))}openExportModal(){this.dialog.open(Q,{data:{title:"Storage Location",exportTypes:[{ID:"Inventory/GetProductStorageLocation",Value:"Default",FileName:"Storage Location"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"inventory/GetCountProductStorageLocation",pagination:!0}})}onSortData(e){let n=this.data.Data?.slice();if(!e.active||e.direction===""){this.data.Data=this.datasource;return}let t=e.direction==="asc";this.data.Data=n.sort((a,L)=>this.compare(a[e.active],L[e.active],t))}static \u0275fac=function(n){return new(n||r)(u(K),u(j),u(J),u(k))};static \u0275cmp=E({type:r,selectors:[["app-storage-location"]],features:[I],decls:9,vars:5,consts:[["pageFilterTemplate",""],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"d-flex"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["class","container-fluid mt-3",4,"ngIf"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],["placeholder","Choose an outlet","appendTo","body",3,"ngModelChange","accessType","ngModel"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["name","Discontinued",3,"modelChange","options","model"],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[1,"header"],["mat-sort-header","EntityName",2,"width","450px"],["mat-sort-header","Brand"],["mat-sort-header","Inventory","arrowPosition","before",1,"text-end",2,"padding-right","100px","width","190px"],[1,"table-footer","fw-bold"],[1,"empty-column"],[1,"text-end",2,"padding-right","100px"],["api","inventory/GetCountProductStorageLocation",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(n,t){if(n&1){let a=_();i(0,"mainpanel-cmp",1),S("onSubmit",function(){return c(a),s(t.searchFromPageOne())}),i(1,"actions")(2,"div",2),f(3,re,3,0,"button",3),o()(),i(4,"filters"),f(5,le,9,6,"ng-template",null,0,V),o(),i(7,"content"),f(8,me,24,8,"div",4),o()()}n&2&&(d("pageData",t.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),p(3),d("ngIf",t.roleService.global.Export),p(5),d("ngIf",t.data))},dependencies:[N,F,Z,Y,z,X,U,ee,$,te,ie,W,B,R,ne,oe,A,H,G],encapsulation:2})};export{ae as StorageLocationComponent};
|