dealpos 25.49.4 → 25.50.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/browser/{chunk-WYRHUSXS.js → chunk-2ENLMKGR.js} +1 -1
- package/browser/{chunk-QS32TZGB.js → chunk-2FJNMKCN.js} +1 -1
- package/browser/{chunk-OYEU5L3I.js → chunk-2ITJBRJU.js} +1 -1
- package/browser/{chunk-34X4ZZD5.js → chunk-2KI73XNT.js} +1 -1
- package/browser/{chunk-T4E5A3KH.js → chunk-2SZZVWQD.js} +11 -11
- package/browser/{chunk-JZFX4FNK.js → chunk-3AZAILT2.js} +1 -1
- package/browser/{chunk-INWLOCX3.js → chunk-3CUT73ZP.js} +1 -1
- package/browser/{chunk-D2OMTDKS.js → chunk-3ZWJMFYL.js} +1 -1
- package/browser/{chunk-SY463GX6.js → chunk-4KYROBKJ.js} +1 -1
- package/browser/{chunk-IFKUMLMD.js → chunk-4MQZXTMM.js} +1 -1
- package/browser/{chunk-KWFL5YOV.js → chunk-4YZVDERU.js} +1 -1
- package/browser/{chunk-F3YWM4BJ.js → chunk-5SIEW7SH.js} +1 -1
- package/browser/{chunk-FTZZHFXM.js → chunk-7L5VMLEF.js} +1 -1
- package/browser/{chunk-P2R2O6GD.js → chunk-7MJWZXSK.js} +2 -2
- package/browser/{chunk-ROVDZJVT.js → chunk-A5CTHLE4.js} +1 -1
- package/browser/{chunk-C777CYT4.js → chunk-A6Z5ZHVO.js} +1 -1
- package/browser/{chunk-SFXDXOSB.js → chunk-B7BVEOOI.js} +1 -1
- package/browser/{chunk-LNZY3GKF.js → chunk-BFNGPKGX.js} +1 -1
- package/browser/{chunk-52ONOTHS.js → chunk-BLEJLNEO.js} +1 -1
- package/browser/{chunk-QOCGWG6L.js → chunk-BQ7QT5RB.js} +1 -1
- package/browser/chunk-BZ3GMUQ7.js +14 -0
- package/browser/{chunk-Y4XWHUVX.js → chunk-CB6QEEJX.js} +1 -1
- package/browser/{chunk-ASHEF37H.js → chunk-CCJ6SHBL.js} +1 -1
- package/browser/{chunk-7V6NCJRQ.js → chunk-COL56R4A.js} +1 -1
- package/browser/chunk-CXWICNFP.js +1 -0
- package/browser/{chunk-TLLI6Z5X.js → chunk-CZHWPDAM.js} +1 -1
- package/browser/{chunk-XOQUXJ6S.js → chunk-DYBRYTEM.js} +1 -1
- package/browser/{chunk-SO3RL6QR.js → chunk-EAEOJMTA.js} +1 -1
- package/browser/{chunk-LI6G74I7.js → chunk-F765TCAS.js} +1 -1
- package/browser/{chunk-RGO36X34.js → chunk-FMKY4THI.js} +1 -1
- package/browser/{chunk-KJ5BS7KR.js → chunk-FSOHJLXB.js} +1 -1
- package/browser/{chunk-APHRANVH.js → chunk-FV4MYFQI.js} +1 -1
- package/browser/{chunk-7V2CY4DW.js → chunk-G3DZI5XK.js} +1 -1
- package/browser/{chunk-YTXYAEFO.js → chunk-G5JGQBAG.js} +1 -1
- package/browser/{chunk-BVMFVFGN.js → chunk-GBSRXCWH.js} +1 -1
- package/browser/{chunk-BSV3Y4MG.js → chunk-GDQGP7DV.js} +1 -1
- package/browser/{chunk-TAVEJBKL.js → chunk-GESNWWTD.js} +2 -2
- package/browser/{chunk-3Y2TKGP4.js → chunk-GRLVYPPM.js} +1 -1
- package/browser/{chunk-WZWXE6GT.js → chunk-HFDJ5XSI.js} +1 -1
- package/browser/{chunk-NTCQH6TH.js → chunk-HFOJZ3B5.js} +1 -1
- package/browser/{chunk-ADQOH7YA.js → chunk-HFZ437GH.js} +1 -1
- package/browser/{chunk-OXMLRZZ4.js → chunk-IPPIH4F4.js} +1 -1
- package/browser/{chunk-RULBTV6L.js → chunk-ISN5K6K2.js} +1 -1
- package/browser/{chunk-V45WTUQ2.js → chunk-ISQHQTAS.js} +1 -1
- package/browser/chunk-JCLYKROE.js +1 -0
- package/browser/chunk-KUF3JPB2.js +1 -0
- package/browser/{chunk-743523SK.js → chunk-KZBVWICA.js} +1 -1
- package/browser/{chunk-CLO7U3RB.js → chunk-LIX7XJ55.js} +1 -1
- package/browser/{chunk-ZEI66KM2.js → chunk-LIXEWT4U.js} +3 -3
- package/browser/{chunk-XTU3LHA6.js → chunk-M2HEFQUY.js} +1 -1
- package/browser/{chunk-HOZ6XJ4Z.js → chunk-MFJH22SW.js} +1 -1
- package/browser/{chunk-NFODKKJI.js → chunk-MZSJCSUV.js} +2 -2
- package/browser/{chunk-6H5XBM35.js → chunk-O3ENARQZ.js} +1 -1
- package/browser/{chunk-QE5OFO56.js → chunk-OZ3MKU4C.js} +1 -1
- package/browser/chunk-PHYDJ3P5.js +1 -0
- package/browser/{chunk-HCMW3RC5.js → chunk-PIAQ4TBN.js} +1 -1
- package/browser/{chunk-N7M4OSQZ.js → chunk-PLR55YR2.js} +1 -1
- package/browser/{chunk-CD6ZWSFG.js → chunk-PMDFKXZY.js} +1 -1
- package/browser/{chunk-XFJYJSZU.js → chunk-PV4YHZX5.js} +1 -1
- package/browser/chunk-PVBS6SYW.js +3 -0
- package/browser/{chunk-WFSJDUCV.js → chunk-PXIMA665.js} +2 -2
- package/browser/{chunk-OETRAGYY.js → chunk-Q3DS2RLM.js} +1 -1
- package/browser/chunk-QWB3USYP.js +3 -0
- package/browser/{chunk-K3V25WUQ.js → chunk-QZRMHLML.js} +1 -1
- package/browser/{chunk-XWXXETJY.js → chunk-RE6SQEP6.js} +1 -1
- package/browser/{chunk-GT5IX3D6.js → chunk-S4D5UGSM.js} +1 -1
- package/browser/{chunk-IQ5KAZ7I.js → chunk-S65MPEJS.js} +1 -1
- package/browser/{chunk-46D5QBZT.js → chunk-SBTTKQ4L.js} +1 -1
- package/browser/{chunk-UJ63ZNAO.js → chunk-SK6Y77W4.js} +4 -4
- package/browser/{chunk-XBRNDXDZ.js → chunk-SOW7VMSU.js} +1 -1
- package/browser/{chunk-R2Y4JAXW.js → chunk-T3ZHKT2K.js} +1 -1
- package/browser/{chunk-WP2FVSCM.js → chunk-T7PBUS2H.js} +1 -1
- package/browser/{chunk-FD7ICK7T.js → chunk-TTCSYFRX.js} +1 -1
- package/browser/{chunk-3YFVIHNY.js → chunk-UZN4OKOJ.js} +2 -2
- package/browser/{chunk-TBBZ7RAN.js → chunk-WXYXGYFH.js} +1 -1
- package/browser/{chunk-H4U5GDQZ.js → chunk-X2GHGFH2.js} +2 -2
- package/browser/{chunk-LX26RD3F.js → chunk-XFAV2VZL.js} +1 -1
- package/browser/{chunk-YZY45SFB.js → chunk-XSZJISVJ.js} +1 -1
- package/browser/{chunk-5DNDULL7.js → chunk-Y5DX5U5Q.js} +1 -1
- package/browser/{chunk-GNIF2YD2.js → chunk-Y7KCHRMM.js} +1 -1
- package/browser/{chunk-3RQ35Y7Q.js → chunk-YBUERVXV.js} +1 -1
- package/browser/{chunk-V3KYBOFM.js → chunk-YLEKN2EU.js} +1 -1
- package/browser/{chunk-QVI22QDX.js → chunk-YUILNWDI.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-DAVMX2B6.js → main-4PHVOJ3C.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-3PJCCDIY.js +0 -14
- package/browser/chunk-6LSNTX2C.js +0 -1
- package/browser/chunk-FQVYXDHS.js +0 -3
- package/browser/chunk-KJF3M7DY.js +0 -1
- package/browser/chunk-N6JQHXKN.js +0 -3
- package/browser/chunk-NZBKYR7R.js +0 -1
- package/browser/chunk-OWK34F6X.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as J,b as K}from"./chunk-TSH564VU.js";import{e as Y,f as z}from"./chunk-
|
|
1
|
+
import{a as J,b as K}from"./chunk-TSH564VU.js";import{e as Y,f as z}from"./chunk-BFNGPKGX.js";import"./chunk-OZ3MKU4C.js";import{a as A,b as G}from"./chunk-JCLYKROE.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import"./chunk-26YFRPR2.js";import"./chunk-JBS5UYZC.js";import{O as U}from"./chunk-TEGIL5RZ.js";import"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-FU2ZGMX4.js";import"./chunk-2FWFPV5I.js";import"./chunk-SLX34TWD.js";import"./chunk-DWZ5JTI2.js";import"./chunk-KZBVWICA.js";import"./chunk-SBTTKQ4L.js";import"./chunk-36GWLMZX.js";import{b as k}from"./chunk-WFQIMZGL.js";import"./chunk-WUV22SZ4.js";import"./chunk-EAEOJMTA.js";import{s as q}from"./chunk-LGOSIAUC.js";import{Ab as p,Fb as d,Fc as v,Gb as r,Gc as V,Hb as n,Hc as S,Ib as c,Nd as B,Qd as $,Sd as j,Ub as f,Xa as o,Y as M,aa as E,eb as I,fa as P,hc as a,ib as b,jc as C,mb as D,od as N,pa as F,pc as L,qc as R,qd as H,rc as s,t as g,u as h,vd as w,xc as T,yb as u,yc as O}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import{a as y,b as _}from"./chunk-SNAKHGZS.js";var W=()=>["/menu/Logistics/Setup/Courier/Form"],X=i=>({ID:i});function Z(i,m){if(i&1&&(r(0,"a",1),c(1,"i",16),a(2,"Edit"),n()),i&2){f();let e=s(0);d("routerLink",T(2,W))("queryParams",O(3,X,e==null||e.Form==null?null:e.Form.ID))}}function ee(i,m){if(i&1&&a(0),i&2){f(2);let e=s(0);C(" / ",e.Form.Creator," ")}}function ie(i,m){if(i&1&&(a(0),v(1,"date"),u(2,ee,1,1)),i&2){f();let e=s(0);C(" ",S(1,2,e.Form.Created,"dd MMM yyyy HH:mm")," "),o(2),p(!(e==null||e.Form==null)&&e.Form.Creator?2:-1)}}function te(i,m){i&1&&a(0," - ")}function ne(i,m){if(i&1&&a(0),i&2){f(2);let e=s(0);C(" / ",e.Form.Modifier," ")}}function oe(i,m){if(i&1&&(r(0,"span",15)(1,"b"),a(2,"Modified:"),n(),a(3),v(4,"date"),u(5,ne,1,1),n()),i&2){f();let e=s(0);o(3),C(" ",S(4,2,e==null||e.Form==null?null:e.Form.Modified,"dd MMM yyyy HH:mm")," "),o(2),p(!(e==null||e.Form==null)&&e.Form.Modified&&(!(e==null||e.Form==null)&&e.Form.Modifier)?5:-1)}}var Q=class i extends A{constructor(e,l){super(e);this.pageSetupService=e;this.role=l;this.initCourierInfo()}httpService=F(q);activeRoute=F(B);courierInfo$;ngOnInit(){}initCourierInfo(){this.courierInfo$=h([this.menuData$,this.activeRoute.queryParams]).pipe(E(([e,l])=>this.httpService.get(`${U.GetCourierInfo}/${l.ID}`)),g(e=>{let l=e?.Form?.EntityName?e?.Form?.EntityName?.join(", "):"";return e.Form=_(y({},e.Form),{Entity:l}),e}),P(e=>{this.menuData.H=e?.PageTitle||"Courier Info"}),M(1))}static \u0275fac=function(l){return new(l||i)(I(G),I(k))};static \u0275cmp=b({type:i,selectors:[["app-courier-info"]],features:[D],decls:32,vars:12,consts:[[3,"pageData","hideSearchBox","hideSearchDropdown"],["role","button","matTooltipPosition","above","matTooltip","Edit",1,"btn","btn-outline-secondary","me-3",3,"routerLink","queryParams"],[1,"container-fluid","mt-5"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-6"],[1,"form-floating-outline"],["labelValue","Name",3,"inputValue"],["labelValue","Suspend",3,"inputValue"],["labelValue","Destination Outlet Filter",3,"inputValue"],[1,"alert","alert-warning"],["aria-hidden","true",1,"fa","fa-file-text-o"],[1,"ms-3"],["aria-hidden","true",1,"fa-solid","fa-pen-to-square","me-3"]],template:function(l,x){if(l&1&&(L(0),v(1,"async"),r(2,"mainpanel-cmp",0)(3,"actions"),u(4,Z,3,5,"a",1),n(),r(5,"content")(6,"div",2)(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"h3"),a(12,"General"),n()(),r(13,"div",7)(14,"div",3)(15,"div",8)(16,"div",9),c(17,"POS-info-page-input",10),n()(),r(18,"div",8)(19,"div",9),c(20,"POS-info-page-input",11),n()(),r(21,"div",8)(22,"div",9),c(23,"POS-info-page-input",12),n()()()()()()(),r(24,"div",13),c(25,"i",14),r(26,"span")(27,"b"),a(28,"Created: "),n(),u(29,ie,3,5)(30,te,1,0),n(),u(31,oe,6,5,"span",15),n()()()()),l&2){let t=R(V(1,9,x.courierInfo$));o(2),d("pageData",x.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),o(2),p(x.role.logistic.Edit?4:-1),o(13),d("inputValue",t==null||t.Form==null?null:t.Form.Name),o(3),d("inputValue",!(t==null||t.Form==null)&&t.Form.Bin?"Yes":"No"),o(3),d("inputValue",t==null||t.Form==null?null:t.Form.Entity),o(6),p(!(t==null||t.Form==null)&&t.Form.Created?29:30),o(2),p(!(t==null||t.Form==null)&&t.Form.Modified?31:-1)}},dependencies:[w,z,Y,j,$,K,J,N,H],encapsulation:2})};export{Q as CourierInfoComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as V,b as W}from"./chunk-FHB5KLDR.js";import{a as B}from"./chunk-
|
|
1
|
+
import{a as V,b as W}from"./chunk-FHB5KLDR.js";import{a as B}from"./chunk-RE6SQEP6.js";import{e as J,f as q}from"./chunk-BFNGPKGX.js";import"./chunk-OZ3MKU4C.js";import{b as I}from"./chunk-JCLYKROE.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import"./chunk-26YFRPR2.js";import{b as E,c as P}from"./chunk-JBS5UYZC.js";import"./chunk-TEGIL5RZ.js";import"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-FU2ZGMX4.js";import"./chunk-2FWFPV5I.js";import"./chunk-SLX34TWD.js";import"./chunk-DWZ5JTI2.js";import"./chunk-KZBVWICA.js";import"./chunk-SBTTKQ4L.js";import"./chunk-36GWLMZX.js";import"./chunk-WFQIMZGL.js";import"./chunk-WUV22SZ4.js";import"./chunk-EAEOJMTA.js";import{s as T}from"./chunk-LGOSIAUC.js";import{Ab as S,Fb as r,Fc as d,Gb as o,Gc as D,Hb as t,Hc as C,Ib as c,Nd as M,Pb as j,Sb as v,Ub as b,Xa as l,eb as m,hc as a,ib as f,ic as L,jc as x,mb as y,qd as _,rd as k,sd as w,ta as u,ua as g,vd as R,yb as h}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function A(p,i){if(p&1){let e=j();o(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"h3"),a(8,"General"),t()(),o(9,"div",6)(10,"div",2)(11,"div",7),c(12,"floatinglabel",8),d(13,"date"),t(),o(14,"div",7),c(15,"floatinglabel",9),d(16,"number"),t()(),o(17,"div",2)(18,"div",7),c(19,"floatinglabel",10),t()()()()()(),o(20,"div",2)(21,"div",7)(22,"div",4)(23,"div",11)(24,"div",12)(25,"h3"),a(26,"Request"),t()(),o(27,"div",13)(28,"button",14),v("click",function(){u(e);let n=b();return g(n.copyClipboard(n.jobLogsDetail==null?null:n.jobLogsDetail.log.req,"Request"))}),a(29,"Copy Request to Clipboard"),t()()(),o(30,"div",6)(31,"pre",15),a(32),d(33,"json"),t()()()(),o(34,"div",7)(35,"div",4)(36,"div",11)(37,"div",12)(38,"h3"),a(39,"Response"),t()(),o(40,"div",13)(41,"button",16),v("click",function(){u(e);let n=b();return g(n.copyClipboard(n.jobLogsDetail==null||n.jobLogsDetail.log==null?null:n.jobLogsDetail.log.res,"Response"))}),a(42,"Copy Response to Clipboard"),t()()(),o(43,"div",6)(44,"pre",17),a(45),d(46,"json"),t()()()()()()()()}if(p&2){let e=b();r("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(12),r("model",C(13,10,e.jobLogsDetail["@timestamp_received"],"dd MMM yyyy")),l(3),r("model",C(16,13,e.jobLogsDetail==null?null:e.jobLogsDetail.DurationInSecond,"1.1-1")+" s"),l(4),r("model",e.jobLogsDetail==null||e.jobLogsDetail.log==null?null:e.jobLogsDetail.log.respCode),l(9),r("matTooltip",e.copyStatus?e.msgCopyClipboard:"Copy to clipboard"),l(4),L(D(33,16,e.jobLogsDetail==null||e.jobLogsDetail.log==null?null:e.jobLogsDetail.log.req)),l(9),r("matTooltip",e.copyStatus?e.msgCopyClipboard:"Copy to clipboard"),l(4),x('"',D(46,18,e.jobLogsDetail==null?null:e.jobLogsDetail.log.res),'"')}}var F=class p extends B{jobLogsDetail;copyStatus;msgCopyClipboard;constructor(i,e,s){super(i,e,"Developer/DeveloperSpace/Webhook/JobLogDetail",s)}postBindForm(i){this.jobLogsDetail=i?.hits[0]?._source,this.jobLogsDetail&&(this.jobLogsDetail.DurationInSecond=parseInt(this.jobLogsDetail?.Duration)/1e3)}copyClipboard(i,e){this.copyStatus=!0,this.msgCopyClipboard=e+" has been coppied to clipboard!",navigator.clipboard.writeText(JSON.stringify(i)),setTimeout(()=>{this.copyStatus=!1},3e3)}static \u0275fac=function(e){return new(e||p)(m(I),m(T),m(M))};static \u0275cmp=f({type:p,selectors:[["app-webhook-job-logs-detail"]],features:[y],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],["id","webhook-logs",1,"container-fluid","pt-5"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-sm-6"],["label","Created",3,"model"],["label","Duration",3,"model"],["label","Response Code",3,"model"],[1,"card-header","d-lg-flex"],[1,"me-auto","mt-5"],[1,"d-sm-block","mt-2"],["id","btnCopyRequest","matTooltipPosition","above",1,"btn","btn-secondary","btn-sm",3,"click","matTooltip"],["id","requestValue",2,"font-size","13px"],["id","btnCopyResponse","matTooltipPosition","above",1,"btn","btn-secondary","btn-sm",3,"click","matTooltip"],["id","responseValue",2,"font-size","13px"]],template:function(e,s){e&1&&h(0,A,47,20,"mainpanel-cmp",0),e&2&&S(s.jobLogsDetail?0:-1)},dependencies:[R,q,J,W,V,P,E,k,w,_],encapsulation:2})};export{F as WebhookJobLogsDetailComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ge}from"./chunk-ZKOARDC2.js";import{b as ue,c as de}from"./chunk-BQUL7SGN.js";import{g as he}from"./chunk-PRVQ3NAP.js";import{c as ce,d as pe}from"./chunk-
|
|
1
|
+
import{a as ge}from"./chunk-ZKOARDC2.js";import{b as ue,c as de}from"./chunk-BQUL7SGN.js";import{g as he}from"./chunk-PRVQ3NAP.js";import{c as ce,d as pe}from"./chunk-OZ3MKU4C.js";import{A as re,G as me}from"./chunk-26YFRPR2.js";import{b as le,c as ae}from"./chunk-JBS5UYZC.js";import{F as ne,G as oe,h as te,o as ie}from"./chunk-DWZ5JTI2.js";import{p as ee,s as se}from"./chunk-LGOSIAUC.js";import{Ab as V,Ca as I,Fb as y,Gb as m,Ha as _,Hb as p,I as O,Ib as E,Ja as D,Lc as Y,Pb as k,Sa as j,Sb as C,Ub as u,Xa as c,Ya as d,Yb as H,Zb as Q,_b as q,c as N,db as R,e as T,eb as w,fa as K,fc as W,hc as S,ib as P,ic as A,jc as B,kb as U,la as L,mc as z,nc as G,o as F,ob as $,oc as J,pa as f,ta as a,ua as r,vd as Z,xc as v,yb as x,yc as X}from"./chunk-IEVGW2RT.js";var M=class o{selectionsSubject=new T(new Map);getSelectedItems(t){return this.selectionsSubject.value.get(t)||[]}setSelectedItems(t,e){let i=new Map(this.selectionsSubject.value);i.set(t,[...e]),this.selectionsSubject.next(i)}clearSelectedItems(t){let e=new Map(this.selectionsSubject.value);e.delete(t),this.selectionsSubject.next(e)}getSelectedItems$(t){return new N(e=>{let i=this.selectionsSubject.subscribe(n=>{e.next(n.get(t)||[])});return()=>i.unsubscribe()})}getAllSelections(){return this.selectionsSubject.value}clearAllSelections(){this.selectionsSubject.next(new Map)}static \u0275fac=function(e){return new(e||o)};static \u0275prov=L({token:o,factory:o.\u0275fac,providedIn:"root"})};var Ie=["autocomplete"],_e=()=>({width:"100%"}),we=()=>({width:"100%",maxWidth:"400px"}),xe=o=>({style:o});function Ve(o,t){if(o&1&&E(0,"img",10),o&2){let e=u(2).$implicit,i=u();y("src",e[i.thumbnailKey],j)}}function Ee(o,t){o&1&&(m(0,"div",11),E(1,"i",12),p())}function ke(o,t){if(o&1&&(m(0,"div"),x(1,Ve,1,1,"img",10)(2,Ee,2,0,"div",11),p()),o&2){let e=u().$implicit,i=u();c(),V(e[i.thumbnailKey]&&e[i.thumbnailKey].trim()!==""?1:2)}}function Ae(o,t){if(o&1){let e=k();m(0,"div",5),C("click",function(n){let s=a(e).$implicit,l=u();return r(l.toggleCheckbox(s,n))}),m(1,"p-checkbox",6),J("ngModelChange",function(n){let s=a(e).$implicit;return G(s._checked,n)||(s._checked=n),r(n)}),C("onChange",function(){let n=a(e).$implicit,s=u();return r(s.onCheckboxChange(n))})("click",function(n){return a(e),r(n.stopPropagation())}),p(),x(2,ke,3,1,"div"),m(3,"div",7)(4,"div",8),S(5),p(),m(6,"div",9),S(7),p()()()}if(o&2){let e=t.$implicit,i=u();c(),z("ngModel",e._checked),y("binary",!0),c(),V(i.showThumbnail?2:-1),c(3),A(e[i.valueField]),c(2),B(" ",e.Code," ")}}var ye=class o{autocomplete;matTooltip;modelName;isMultiple=!0;placeholder="Search";isShowEmptyMessage=!1;emptyMessage="No results found";tooltipMessage="";valueField="Name";paramsKey="Key";label;listDataEndpoint;showThumbnail=!1;thumbnailKey="";maxSelectedItems=0;modelNameChange=new d;onSelectItem=new d;onRemoveItem=new d;completeMethod=new d;onSelect=new d;onUnselect=new d;httpService=f(se);toastr=f(ee);autocompleteV3Service=f(M);selectedItems=I([]);suggestionList;internalSuggestionList=I([]);ngOnInit(){if(this.isMultiple&&this.modelName&&Array.isArray(this.modelName)&&this.modelName.length>0){if(this.suggestionList&&this.suggestionList.length>0){let e=this.modelName.map(i=>this.suggestionList.find(n=>n[this.paramsKey]===i)).filter(i=>i!==void 0);if(e.length>0){this.selectedItems.set(e),this.autocompleteV3Service.setSelectedItems(this.listDataEndpoint,e);return}}let t=this.autocompleteV3Service.getSelectedItems(this.listDataEndpoint);if(t&&t.length>0){let e=t.filter(i=>this.modelName.includes(i[this.paramsKey]));if(e.length>0){this.selectedItems.set(e);return}}}}ngOnChanges(t){let e=t.modelName;e&&e?.currentValue?.length===0&&this.resetSelection()}resetSelection(){this.selectedItems.set([])}onModelChange(t){if(this.isMultiple&&Array.isArray(t)){this.selectedItems.set(t),this.autocompleteV3Service.setSelectedItems(this.listDataEndpoint,t);let e=t.map(i=>i[this.paramsKey]);this.modelNameChange.emit(e)}else this.isMultiple||this.modelNameChange.emit(t)}onCompleteHandler(t){let e=t.query;if(this.suggestionList&&this.suggestionList.length>0){let s=this.selectedItems(),l=this.suggestionList.filter(h=>{let g=e.toLowerCase(),b=(h.Name||"").toLowerCase(),Se=(h.Key||"").toLowerCase(),ve=b.includes(g)||Se.includes(g),Me=!s.some(be=>be[this.paramsKey]===h[this.paramsKey]);return ve&&Me});this.internalSuggestionList.set(l);return}let i=new URLSearchParams({Prefix:e,Count:"100"}).toString(),n=this.listDataEndpoint;n&&this.httpService.get(`${n}?${i}`).pipe(O(()=>F([])),K(s=>{let l=this.selectedItems(),h=s.filter(g=>!l.some(b=>b[this.paramsKey]===g[this.paramsKey]));this.internalSuggestionList.set(h)})).subscribe()}onSelectHandler(t){let e=this.isMultiple,i=this.maxSelectedItems;if(e&&i>0){let n=this.selectedItems();if(n.length>=i){this.toastr.warning(`Maximum ${i} items can be selected`,"Selection Limit"),setTimeout(()=>{this.modelNameChange.emit([...n])},0);return}}this.onSelectItem.emit(t),this.onSelect.emit(t)}onRemoveHandler(t){this.onRemoveItem.emit(t.value),this.onUnselect.emit(t.value),t.value&&(t.value._checked=!1)}isChecked(t){let e=this.selectedItems(),i=this.valueField;return e.some(n=>n[i]===t[i])}clearSelections(){this.selectedItems.set([]),this.autocompleteV3Service.clearSelectedItems(this.listDataEndpoint),this.modelNameChange.emit([])}getCurrentSelectionsFromService(){return this.autocompleteV3Service.getSelectedItems(this.listDataEndpoint)}onCheckboxChange(t){if(t._checked)this.isChecked(t)||(this.selectedItems.set([...this.selectedItems(),t]),this.onModelChange(this.selectedItems()));else{let e=this.selectedItems().filter(i=>i[this.paramsKey]!==t[this.paramsKey]);this.selectedItems.set(e),this.onModelChange(e)}setTimeout(()=>{this.autocomplete&&this.autocomplete.inputEL.nativeElement.focus()},0)}toggleCheckbox(t,e){t._checked=!t._checked,this.onCheckboxChange(t),e.stopPropagation()}ngOnDestroy(){}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=P({type:o,selectors:[["autocompleteV3"]],viewQuery:function(e,i){if(e&1&&H(Ie,5),e&2){let n;Q(n=q())&&(i.autocomplete=n.first)}},inputs:{matTooltip:"matTooltip",modelName:"modelName",isMultiple:"isMultiple",placeholder:"placeholder",isShowEmptyMessage:"isShowEmptyMessage",emptyMessage:"emptyMessage",tooltipMessage:"tooltipMessage",valueField:"valueField",paramsKey:"paramsKey",label:"label",listDataEndpoint:"listDataEndpoint",showThumbnail:"showThumbnail",thumbnailKey:"thumbnailKey",maxSelectedItems:"maxSelectedItems"},outputs:{modelNameChange:"modelNameChange",onSelectItem:"onSelectItem",onRemoveItem:"onRemoveItem",completeMethod:"completeMethod",onSelect:"onSelect",onUnselect:"onUnselect"},features:[_],decls:8,vars:18,consts:[["autocomplete",""],["item",""],[1,"d-flex","flex-column","gap-2",2,"margin-top","1rem"],[1,"w-100",2,"width","100%"],[1,"w-100",3,"ngModelChange","completeMethod","onSelect","onUnselect","matTooltip","ngModel","suggestions","optionLabel","multiple","placeholder","showEmptyMessage","emptyMessage","inputStyle","overlayOptions"],[1,"d-flex","align-items-center","gap-2","p-6","w-100",3,"click"],[2,"margin","0",3,"ngModelChange","onChange","click","ngModel","binary"],[1,"ms-2"],[1,"font-medium"],[1,"text-muted",2,"font-size","10px !important"],["width","30","height","30","brokenImageIconFailSafe","","brokenImageIconFailSafeClass","ms-2 empty-image d-flex justify-content-center align-items-center rounded-1",1,"ms-2","empty-image",3,"src"],[1,"empty-image","d-flex","justify-content-center","align-items-center","rounded-1","ms-2"],[1,"fa-solid","fa-image","fa-image-autocomplete",2,"color","#b4b4b4c2"]],template:function(e,i){if(e&1){let n=k();m(0,"div",2)(1,"h6"),S(2),p(),m(3,"div",3)(4,"p-autocomplete",4,0),C("ngModelChange",function(l){return a(n),r(i.onModelChange(l))})("completeMethod",function(l){return a(n),r(i.onCompleteHandler(l))})("onSelect",function(l){return a(n),r(i.onSelectHandler(l))})("onUnselect",function(l){return a(n),r(i.onRemoveHandler(l))}),$(6,Ae,8,5,"ng-template",null,1,Y),p()()()}e&2&&(c(2),A(i.label),c(2),W(v(13,_e)),y("matTooltip",i.tooltipMessage)("ngModel",i.selectedItems())("suggestions",i.internalSuggestionList())("optionLabel",i.valueField)("multiple",i.isMultiple)("placeholder",i.placeholder)("showEmptyMessage",i.isShowEmptyMessage)("emptyMessage",i.emptyMessage)("inputStyle",v(14,_e))("overlayOptions",X(16,xe,v(15,we))))},dependencies:[re,Z,oe,te,ne,ie,ae,le,me,he,de,ue,pe,ce,ge],styles:["div[_ngcontent-%COMP%] > .empty-image[_ngcontent-%COMP%]{height:32px;width:30px;border:solid 1px #dddddd}"]})};var Ce=class o{constructor(t,e){this.el=t;this.renderer=e}value=null;ngOnChanges(){if(this.value===null||this.value===void 0)return;this.renderer.removeClass(this.el.nativeElement,"text-black"),this.renderer.removeClass(this.el.nativeElement,"text-danger");let t=+this.value==0||+this.value>=1?"text-black":"text-danger";this.renderer.addClass(this.el.nativeElement,t)}static \u0275fac=function(e){return new(e||o)(w(D),w(R))};static \u0275dir=U({type:o,selectors:[["","colsFontColor",""]],inputs:{value:[0,"colsFontColor","value"]},features:[_]})};export{ye as a,Ce as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ce,b as de,c as _e,d as se,e as ge,f as ue}from"./chunk-XOQUXJ6S.js";import"./chunk-PHH2AA3W.js";import"./chunk-GNIF2YD2.js";import"./chunk-DTVCBHPA.js";import"./chunk-5USF4MRW.js";import{a as te}from"./chunk-363IDTE3.js";import{a as ee}from"./chunk-QZZ2NRA3.js";import"./chunk-FAED643P.js";import{e as me}from"./chunk-WMZLH4YK.js";import"./chunk-72RZBOHX.js";import"./chunk-3RK6DDJD.js";import"./chunk-M3DKYPGC.js";import"./chunk-6WATOQG3.js";import"./chunk-VM4K4MNV.js";import"./chunk-XTCEZONP.js";import"./chunk-LNDHYAFW.js";import{d as re,e as le}from"./chunk-5ZD6KTDH.js";import"./chunk-ZZBF7AOW.js";import{c as pe}from"./chunk-SFXDXOSB.js";import{b as $}from"./chunk-VXPORXGI.js";import{a as Y}from"./chunk-R2Y4JAXW.js";import"./chunk-NTCQH6TH.js";import"./chunk-L6PKNRWO.js";import"./chunk-SIQZO2WM.js";import{a as ie}from"./chunk-J6M7UWVR.js";import{e as oe,f as ae}from"./chunk-LNZY3GKF.js";import"./chunk-7V2CY4DW.js";import"./chunk-7YUPYNWQ.js";import"./chunk-2CL5FM3P.js";import"./chunk-LGINK7BD.js";import"./chunk-IKKPP4JS.js";import"./chunk-QPAUI5EG.js";import"./chunk-45E6XCHN.js";import"./chunk-SIDUUVNA.js";import"./chunk-KZFNI67M.js";import"./chunk-4BXCIT62.js";import"./chunk-D4FCXEV4.js";import"./chunk-6P2ASCNY.js";import"./chunk-QE5OFO56.js";import{b as ne}from"./chunk-KJF3M7DY.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import"./chunk-26YFRPR2.js";import{b as U,c as X}from"./chunk-JBS5UYZC.js";import"./chunk-TEGIL5RZ.js";import"./chunk-B7AC4RMR.js";import"./chunk-EQLHPWVB.js";import"./chunk-THT6CY5E.js";import{g as Z}from"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-S7FOJJP2.js";import"./chunk-FU2ZGMX4.js";import"./chunk-2FWFPV5I.js";import{oa as K}from"./chunk-SLX34TWD.js";import{F as G,c as k,h as Q,o as j,q}from"./chunk-DWZ5JTI2.js";import"./chunk-743523SK.js";import"./chunk-46D5QBZT.js";import"./chunk-36GWLMZX.js";import{b as J}from"./chunk-WFQIMZGL.js";import"./chunk-WUV22SZ4.js";import"./chunk-SO3RL6QR.js";import{s as z}from"./chunk-LGOSIAUC.js";import{Ab as E,Fb as p,Fc as _,Gb as o,Gc as s,Hb as i,Hc as D,Ib as f,Jd as W,Lc as O,Pb as I,Qd as A,Sb as h,Sd as N,Ub as m,Xa as a,eb as C,hc as l,ib as B,ic as M,jc as g,jd as L,mb as F,mc as v,nc as S,ob as x,oc as b,sc as V,sd as R,ta as u,ua as y,vd as H,xc as T,yb as P,yc as w}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Ce=()=>({"min-width":"50rem","font-family":"Roboto, sans-serif"}),xe=()=>["/menu/Products/Catalog/Products"],ye=t=>({CategoryID:t}),ve=()=>["/menu/Inventory/Quantity/Valuation"];function Se(t,c){if(t&1){let e=I();o(0,"button",10),h("click",function(){u(e);let n=m(2);return y(n.openExportModal())}),f(1,"i",11),l(2," Export "),i()}}function be(t,c){if(t&1){let e=I();o(0,"div",12)(1,"h6"),l(2,"Outlet"),i(),o(3,"outlet-selector",13),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.ListIDs,n)||(d.pageData.Filter.ListIDs=n),y(n)}),i(),o(4,"h6"),l(5,"Quantity From - To"),i(),o(6,"div",14)(7,"input",15),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityFrom,n)||(d.pageData.Filter.QuantityFrom=n),y(n)}),i(),o(8,"span",16),l(9,"-"),i(),o(10,"input",17),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityTo,n)||(d.pageData.Filter.QuantityTo=n),y(n)}),i()(),o(11,"h6"),l(12,"Discontinued"),i(),o(13,"radio-options",18),b("modelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.Discontinued,n)||(d.pageData.Filter.Discontinued=n),y(n)}),i()()}if(t&2){let e=m(2);a(3),p("multiple",!0)("accessType",2),v("ngModel",e.pageData.Filter.ListIDs),a(4),v("ngModel",e.pageData.Filter.QuantityFrom),a(3),v("ngModel",e.pageData.Filter.QuantityTo),a(3),v("model",e.pageData.Filter.Discontinued),p("options",e.pageData.Options.Discontinued)}}function Ie(t,c){t&1&&(o(0,"th",27),l(1," Cost "),f(2,"p-treeTableSortIcon",28),i())}function Te(t,c){t&1&&(o(0,"th",29),l(1," Price "),f(2,"p-treeTableSortIcon",30),i())}function De(t,c){t&1&&(o(0,"th",31),l(1," % "),f(2,"p-treeTableSortIcon",32),i())}function he(t,c){if(t&1&&(o(0,"tr",19)(1,"th",20),l(2," Category "),f(3,"p-treeTableSortIcon",21),i(),o(4,"th",22),l(5," On Hand "),f(6,"p-treeTableSortIcon",23),i(),x(7,Ie,3,0,"th",24)(8,Te,3,0,"th",25)(9,De,3,0,"th",26),i()),t&2){let e=m(2);a(7),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function we(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedCost)," ")}}function Be(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedPrice)," ")}}function Fe(t,c){if(t&1&&(o(0,"td")(1,"span",38),_(2,"number"),l(3),_(4,"number"),i()()),t&2){let e=m().rowData;a(),p("matTooltip",D(2,2,e.DisplayedPercentage,"1.0-5")+"%"),a(2),g(" ",D(4,5,e.DisplayedPercentage,"1.0-0"),"% ")}}function Pe(t,c){if(t&1&&(o(0,"tr",33)(1,"td"),f(2,"p-treeTableToggler",34),o(3,"a",35),l(4),i()(),o(5,"td")(6,"a",36),_(7,"number"),_(8,"number"),_(9,"number"),l(10),_(11,"quantityFraction"),i()(),x(12,we,3,3,"td",37)(13,Be,3,3,"td",37)(14,Fe,5,8,"td",37),i()),t&2){let e=c.$implicit,r=c.rowData,n=m(2);p("ttRow",e),a(2),p("rowNode",e),a(),p("routerLink",T(21,xe))("queryParams",w(22,ye,r.ID)),a(),M(r.Name),a(2),p("matTooltip",V(r.OnHandIndirect&&r.OnHand?"Direct ("+s(7,13,r.OnHand)+") Indirect ("+s(8,15,r.OnHandIndirect)+")":r.OnHandIndirect?"Indirect ("+s(9,17,r.OnHandIndirect)+")":""))("routerLink",T(24,ve))("queryParams",w(25,ye,r.ID)),a(4),g("",s(11,19,r.DisplayedOnHand)," "),a(2),p("ngIf",n.roleService.product.Cost),a(),p("ngIf",n.roleService.product.Price),a(),p("ngIf",n.roleService.product.Cost&&n.roleService.product.Price)}}function Ee(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalCost)," ")}}function Me(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPrice)," ")}}function Ve(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"number"),i()),t&2){let e=m(3);a(),g(" ",D(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPercentage,"1.0-0"),"% ")}}function Oe(t,c){if(t&1&&(o(0,"tr",39)(1,"td",40),l(2,"Total:"),i(),o(3,"td",40),l(4),_(5,"quantityFraction"),i(),x(6,Ee,3,3,"td",41)(7,Me,3,3,"td",41)(8,Ve,3,4,"td",41),i()),t&2){let e=m(2);a(4),g(" ",s(5,4,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalOnHand)," "),a(2),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function Le(t,c){if(t&1){let e=I();o(0,"mainpanel-cmp",2),h("onSubmit",function(){u(e);let n=m();return y(n.searchFromPageOne())}),b("filterChange",function(n){u(e);let d=m();return S(d.pageData.Filter,n)||(d.pageData.Filter=n),y(n)}),o(1,"actions"),P(2,Se,3,0,"button",3),i(),o(3,"div",4),x(4,be,14,7,"ng-template",null,0,O),i(),o(6,"content")(7,"div",5)(8,"p-treeTable",6),x(9,he,10,3,"ng-template",7)(10,Pe,15,27,"ng-template",8)(11,Oe,9,6,"ng-template",9),i()()()()}if(t&2){let e=m();p("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),v("filter",e.pageData.Filter),a(2),E(e.roleService.global.Export?2:-1),a(6),p("value",e.data.data)("scrollable",!0)("scrollable",!0)("tableStyle",T(9,Ce))}}var fe=class t extends Y{constructor(e,r,n,d,Re,He){super(e,r,"Inventory/GetByCategory","InventoryLoader/GetByCategory");this.httpService=r;this.csvConverter=n;this.pageTitle=d;this.roleService=Re;this.dialog=He}openExportModal(){this.dialog.open($,{data:{title:"Inventory By Category",exportTypes:[{ID:"inventoryexport/GetExportInventoryByCategory",Value:"Default",FileName:"Inventory By Category"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}static \u0275fac=function(r){return new(r||t)(C(ne),C(z),C(ie),C(W),C(J),C(Z))};static \u0275cmp=B({type:t,selectors:[["app-inventory-by-category"]],features:[F],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","filter","onSubmit","filterChange",4,"ngIf"],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["filters",""],[1,"container-fluid","mt-3"],[3,"value","scrollable","tableStyle"],["pTemplate","header"],["pTemplate","body"],["pTemplate","footer"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["placeholder","Choose Outlet",1,"ng-select-multiple",3,"ngModelChange","multiple","accessType","ngModel"],[1,"d-flex","align-items-center"],["type","number","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],[1,"mx-3"],["type","number","placeholder","To",1,"form-control",3,"ngModelChange","ngModel"],[3,"modelChange","model","options"],[1,"custom-header"],["ttSortableColumn","Name",1,"text-uppercase"],["field","Name"],["ttSortableColumn","DisplayedOnHand",1,"text-uppercase"],["field","DisplayedOnHand"],["class","text-uppercase","ttSortableColumn","DisplayedCost",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPrice",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPercentage",4,"ngIf"],["ttSortableColumn","DisplayedCost",1,"text-uppercase"],["field","DisplayedCost"],["ttSortableColumn","DisplayedPrice",1,"text-uppercase"],["field","DisplayedPrice"],["ttSortableColumn","DisplayedPercentage",1,"text-uppercase"],["field","DisplayedPercentage"],[3,"ttRow"],[3,"rowNode"],["target","_blank",3,"routerLink","queryParams"],["matTooltipPosition","above",3,"routerLink","queryParams","matTooltip"],[4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[1,"table-footer"],[1,"text-end"],["class","text-end",4,"ngIf"]],template:function(r,n){r&1&&x(0,Le,12,10,"mainpanel-cmp",1),r&2&&p("ngIf",n.data)},dependencies:[H,L,ae,oe,N,A,ue,ce,K,ge,de,_e,se,pe,me,le,re,G,k,q,Q,j,X,U,R,ee,te],styles:[".p-treetable-scrollable-header-box{padding-right:0!important} .p-treetable .p-treetable-thead>tr>th:not(:first-child){text-align:right!important} .p-treetable .p-treetable-tbody>tr>td:not(:first-child){text-align:right!important} .p-treetable-scrollable-footer-box{padding-right:0!important} .table-header-styles, .p-treetable-tfoot td, .p-treetable-thead th{background:#f6f6f6!important;color:#3b3b3b!important;text-transform:uppercase!important;font-weight:700!important;line-height:25px!important;font-size:12px!important;font-family:Roboto,sans-serif!important} .p-component.p-iconwrapper>svg{height:11px!important} .p-treetable .p-treetable-tbody>tr>td{border-bottom-width:1px;border-color:#dee2e6}"]})};export{fe as InventoryByCategoryComponent};
|
|
1
|
+
import{a as ce,b as de,c as _e,d as se,e as ge,f as ue}from"./chunk-DYBRYTEM.js";import"./chunk-PHH2AA3W.js";import"./chunk-Y7KCHRMM.js";import"./chunk-DTVCBHPA.js";import"./chunk-5USF4MRW.js";import{a as te}from"./chunk-363IDTE3.js";import{a as ee}from"./chunk-QZZ2NRA3.js";import"./chunk-FAED643P.js";import{e as me}from"./chunk-WMZLH4YK.js";import"./chunk-72RZBOHX.js";import"./chunk-3RK6DDJD.js";import"./chunk-M3DKYPGC.js";import"./chunk-6WATOQG3.js";import"./chunk-VM4K4MNV.js";import"./chunk-XTCEZONP.js";import"./chunk-LNDHYAFW.js";import{d as re,e as le}from"./chunk-5ZD6KTDH.js";import"./chunk-ZZBF7AOW.js";import{c as pe}from"./chunk-B7BVEOOI.js";import{b as $}from"./chunk-VXPORXGI.js";import{a as Y}from"./chunk-T3ZHKT2K.js";import"./chunk-HFOJZ3B5.js";import"./chunk-L6PKNRWO.js";import"./chunk-SIQZO2WM.js";import{a as ie}from"./chunk-J6M7UWVR.js";import{e as oe,f as ae}from"./chunk-BFNGPKGX.js";import"./chunk-G3DZI5XK.js";import"./chunk-7YUPYNWQ.js";import"./chunk-2CL5FM3P.js";import"./chunk-LGINK7BD.js";import"./chunk-IKKPP4JS.js";import"./chunk-QPAUI5EG.js";import"./chunk-45E6XCHN.js";import"./chunk-SIDUUVNA.js";import"./chunk-KZFNI67M.js";import"./chunk-4BXCIT62.js";import"./chunk-D4FCXEV4.js";import"./chunk-6P2ASCNY.js";import"./chunk-OZ3MKU4C.js";import{b as ne}from"./chunk-JCLYKROE.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import"./chunk-26YFRPR2.js";import{b as U,c as X}from"./chunk-JBS5UYZC.js";import"./chunk-TEGIL5RZ.js";import"./chunk-B7AC4RMR.js";import"./chunk-EQLHPWVB.js";import"./chunk-THT6CY5E.js";import{g as Z}from"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-S7FOJJP2.js";import"./chunk-FU2ZGMX4.js";import"./chunk-2FWFPV5I.js";import{oa as K}from"./chunk-SLX34TWD.js";import{F as G,c as k,h as Q,o as j,q}from"./chunk-DWZ5JTI2.js";import"./chunk-KZBVWICA.js";import"./chunk-SBTTKQ4L.js";import"./chunk-36GWLMZX.js";import{b as J}from"./chunk-WFQIMZGL.js";import"./chunk-WUV22SZ4.js";import"./chunk-EAEOJMTA.js";import{s as z}from"./chunk-LGOSIAUC.js";import{Ab as E,Fb as p,Fc as _,Gb as o,Gc as s,Hb as i,Hc as D,Ib as f,Jd as W,Lc as O,Pb as I,Qd as A,Sb as h,Sd as N,Ub as m,Xa as a,eb as C,hc as l,ib as B,ic as M,jc as g,jd as L,mb as F,mc as v,nc as S,ob as x,oc as b,sc as V,sd as R,ta as u,ua as y,vd as H,xc as T,yb as P,yc as w}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Ce=()=>({"min-width":"50rem","font-family":"Roboto, sans-serif"}),xe=()=>["/menu/Products/Catalog/Products"],ye=t=>({CategoryID:t}),ve=()=>["/menu/Inventory/Quantity/Valuation"];function Se(t,c){if(t&1){let e=I();o(0,"button",10),h("click",function(){u(e);let n=m(2);return y(n.openExportModal())}),f(1,"i",11),l(2," Export "),i()}}function be(t,c){if(t&1){let e=I();o(0,"div",12)(1,"h6"),l(2,"Outlet"),i(),o(3,"outlet-selector",13),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.ListIDs,n)||(d.pageData.Filter.ListIDs=n),y(n)}),i(),o(4,"h6"),l(5,"Quantity From - To"),i(),o(6,"div",14)(7,"input",15),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityFrom,n)||(d.pageData.Filter.QuantityFrom=n),y(n)}),i(),o(8,"span",16),l(9,"-"),i(),o(10,"input",17),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityTo,n)||(d.pageData.Filter.QuantityTo=n),y(n)}),i()(),o(11,"h6"),l(12,"Discontinued"),i(),o(13,"radio-options",18),b("modelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.Discontinued,n)||(d.pageData.Filter.Discontinued=n),y(n)}),i()()}if(t&2){let e=m(2);a(3),p("multiple",!0)("accessType",2),v("ngModel",e.pageData.Filter.ListIDs),a(4),v("ngModel",e.pageData.Filter.QuantityFrom),a(3),v("ngModel",e.pageData.Filter.QuantityTo),a(3),v("model",e.pageData.Filter.Discontinued),p("options",e.pageData.Options.Discontinued)}}function Ie(t,c){t&1&&(o(0,"th",27),l(1," Cost "),f(2,"p-treeTableSortIcon",28),i())}function Te(t,c){t&1&&(o(0,"th",29),l(1," Price "),f(2,"p-treeTableSortIcon",30),i())}function De(t,c){t&1&&(o(0,"th",31),l(1," % "),f(2,"p-treeTableSortIcon",32),i())}function he(t,c){if(t&1&&(o(0,"tr",19)(1,"th",20),l(2," Category "),f(3,"p-treeTableSortIcon",21),i(),o(4,"th",22),l(5," On Hand "),f(6,"p-treeTableSortIcon",23),i(),x(7,Ie,3,0,"th",24)(8,Te,3,0,"th",25)(9,De,3,0,"th",26),i()),t&2){let e=m(2);a(7),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function we(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedCost)," ")}}function Be(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedPrice)," ")}}function Fe(t,c){if(t&1&&(o(0,"td")(1,"span",38),_(2,"number"),l(3),_(4,"number"),i()()),t&2){let e=m().rowData;a(),p("matTooltip",D(2,2,e.DisplayedPercentage,"1.0-5")+"%"),a(2),g(" ",D(4,5,e.DisplayedPercentage,"1.0-0"),"% ")}}function Pe(t,c){if(t&1&&(o(0,"tr",33)(1,"td"),f(2,"p-treeTableToggler",34),o(3,"a",35),l(4),i()(),o(5,"td")(6,"a",36),_(7,"number"),_(8,"number"),_(9,"number"),l(10),_(11,"quantityFraction"),i()(),x(12,we,3,3,"td",37)(13,Be,3,3,"td",37)(14,Fe,5,8,"td",37),i()),t&2){let e=c.$implicit,r=c.rowData,n=m(2);p("ttRow",e),a(2),p("rowNode",e),a(),p("routerLink",T(21,xe))("queryParams",w(22,ye,r.ID)),a(),M(r.Name),a(2),p("matTooltip",V(r.OnHandIndirect&&r.OnHand?"Direct ("+s(7,13,r.OnHand)+") Indirect ("+s(8,15,r.OnHandIndirect)+")":r.OnHandIndirect?"Indirect ("+s(9,17,r.OnHandIndirect)+")":""))("routerLink",T(24,ve))("queryParams",w(25,ye,r.ID)),a(4),g("",s(11,19,r.DisplayedOnHand)," "),a(2),p("ngIf",n.roleService.product.Cost),a(),p("ngIf",n.roleService.product.Price),a(),p("ngIf",n.roleService.product.Cost&&n.roleService.product.Price)}}function Ee(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalCost)," ")}}function Me(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPrice)," ")}}function Ve(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"number"),i()),t&2){let e=m(3);a(),g(" ",D(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPercentage,"1.0-0"),"% ")}}function Oe(t,c){if(t&1&&(o(0,"tr",39)(1,"td",40),l(2,"Total:"),i(),o(3,"td",40),l(4),_(5,"quantityFraction"),i(),x(6,Ee,3,3,"td",41)(7,Me,3,3,"td",41)(8,Ve,3,4,"td",41),i()),t&2){let e=m(2);a(4),g(" ",s(5,4,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalOnHand)," "),a(2),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function Le(t,c){if(t&1){let e=I();o(0,"mainpanel-cmp",2),h("onSubmit",function(){u(e);let n=m();return y(n.searchFromPageOne())}),b("filterChange",function(n){u(e);let d=m();return S(d.pageData.Filter,n)||(d.pageData.Filter=n),y(n)}),o(1,"actions"),P(2,Se,3,0,"button",3),i(),o(3,"div",4),x(4,be,14,7,"ng-template",null,0,O),i(),o(6,"content")(7,"div",5)(8,"p-treeTable",6),x(9,he,10,3,"ng-template",7)(10,Pe,15,27,"ng-template",8)(11,Oe,9,6,"ng-template",9),i()()()()}if(t&2){let e=m();p("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),v("filter",e.pageData.Filter),a(2),E(e.roleService.global.Export?2:-1),a(6),p("value",e.data.data)("scrollable",!0)("scrollable",!0)("tableStyle",T(9,Ce))}}var fe=class t extends Y{constructor(e,r,n,d,Re,He){super(e,r,"Inventory/GetByCategory","InventoryLoader/GetByCategory");this.httpService=r;this.csvConverter=n;this.pageTitle=d;this.roleService=Re;this.dialog=He}openExportModal(){this.dialog.open($,{data:{title:"Inventory By Category",exportTypes:[{ID:"inventoryexport/GetExportInventoryByCategory",Value:"Default",FileName:"Inventory By Category"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}static \u0275fac=function(r){return new(r||t)(C(ne),C(z),C(ie),C(W),C(J),C(Z))};static \u0275cmp=B({type:t,selectors:[["app-inventory-by-category"]],features:[F],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","filter","onSubmit","filterChange",4,"ngIf"],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["filters",""],[1,"container-fluid","mt-3"],[3,"value","scrollable","tableStyle"],["pTemplate","header"],["pTemplate","body"],["pTemplate","footer"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["placeholder","Choose Outlet",1,"ng-select-multiple",3,"ngModelChange","multiple","accessType","ngModel"],[1,"d-flex","align-items-center"],["type","number","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],[1,"mx-3"],["type","number","placeholder","To",1,"form-control",3,"ngModelChange","ngModel"],[3,"modelChange","model","options"],[1,"custom-header"],["ttSortableColumn","Name",1,"text-uppercase"],["field","Name"],["ttSortableColumn","DisplayedOnHand",1,"text-uppercase"],["field","DisplayedOnHand"],["class","text-uppercase","ttSortableColumn","DisplayedCost",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPrice",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPercentage",4,"ngIf"],["ttSortableColumn","DisplayedCost",1,"text-uppercase"],["field","DisplayedCost"],["ttSortableColumn","DisplayedPrice",1,"text-uppercase"],["field","DisplayedPrice"],["ttSortableColumn","DisplayedPercentage",1,"text-uppercase"],["field","DisplayedPercentage"],[3,"ttRow"],[3,"rowNode"],["target","_blank",3,"routerLink","queryParams"],["matTooltipPosition","above",3,"routerLink","queryParams","matTooltip"],[4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[1,"table-footer"],[1,"text-end"],["class","text-end",4,"ngIf"]],template:function(r,n){r&1&&x(0,Le,12,10,"mainpanel-cmp",1),r&2&&p("ngIf",n.data)},dependencies:[H,L,ae,oe,N,A,ue,ce,K,ge,de,_e,se,pe,me,le,re,G,k,q,Q,j,X,U,R,ee,te],styles:[".p-treetable-scrollable-header-box{padding-right:0!important} .p-treetable .p-treetable-thead>tr>th:not(:first-child){text-align:right!important} .p-treetable .p-treetable-tbody>tr>td:not(:first-child){text-align:right!important} .p-treetable-scrollable-footer-box{padding-right:0!important} .table-header-styles, .p-treetable-tfoot td, .p-treetable-thead th{background:#f6f6f6!important;color:#3b3b3b!important;text-transform:uppercase!important;font-weight:700!important;line-height:25px!important;font-size:12px!important;font-family:Roboto,sans-serif!important} .p-component.p-iconwrapper>svg{height:11px!important} .p-treetable .p-treetable-tbody>tr>td{border-bottom-width:1px;border-color:#dee2e6}"]})};export{fe as InventoryByCategoryComponent};
|