dealpos 25.47.1 → 25.47.2
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-JYJW5KAE.js → chunk-3FYNWZYY.js} +1 -1
- package/browser/{chunk-S7Y36REW.js → chunk-3YOY54TO.js} +1 -1
- package/browser/{chunk-QBOUUDFD.js → chunk-44RMDJGQ.js} +1 -1
- package/browser/{chunk-FUKBIYWZ.js → chunk-4CKBIRQ2.js} +1 -1
- package/browser/{chunk-TV76G36W.js → chunk-4U2TXFUV.js} +1 -1
- package/browser/{chunk-GEIEF2RB.js → chunk-54OUVAKK.js} +1 -1
- package/browser/{chunk-IIDCCGRC.js → chunk-5BLWYLXP.js} +1 -1
- package/browser/{chunk-OBEXYNUM.js → chunk-5MJHW4YM.js} +1 -1
- package/browser/{chunk-Y3AE3TKV.js → chunk-5MWGLO24.js} +1 -1
- package/browser/{chunk-CC2THS3J.js → chunk-5QUOXOR7.js} +1 -1
- package/browser/{chunk-QDCZBCN5.js → chunk-5SJK4QC2.js} +1 -1
- package/browser/{chunk-T6RHBYOY.js → chunk-6PX2PA2J.js} +1 -1
- package/browser/{chunk-NU7GDZKC.js → chunk-6UMKFILJ.js} +1 -1
- package/browser/{chunk-PGVKBOVV.js → chunk-7GQF6UNI.js} +1 -1
- package/browser/{chunk-DQYDWBIK.js → chunk-7KAETFNH.js} +1 -1
- package/browser/{chunk-NDFDMJU2.js → chunk-7SJB3DEF.js} +1 -1
- package/browser/{chunk-7FC2PJIW.js → chunk-7WXQYKCT.js} +1 -1
- package/browser/{chunk-4QU3FQ4H.js → chunk-A243LOWU.js} +1 -1
- package/browser/{chunk-R5SLRG5P.js → chunk-A5MP4QMZ.js} +1 -1
- package/browser/{chunk-FUZD2YUG.js → chunk-AZBA2YOQ.js} +2 -2
- package/browser/{chunk-ERJKTHMS.js → chunk-BK4CA5K2.js} +1 -1
- package/browser/{chunk-77V3KNIS.js → chunk-BVZ7ACQM.js} +1 -1
- package/browser/{chunk-A56Z62HU.js → chunk-BWXXYBLG.js} +1 -1
- package/browser/{chunk-CPCDU4HM.js → chunk-CLBQLTFG.js} +1 -1
- package/browser/{chunk-RPMSR2S2.js → chunk-CUULWZUF.js} +1 -1
- package/browser/{chunk-7DG3RSHK.js → chunk-D6HRDYFW.js} +1 -1
- package/browser/{chunk-IHCO2JK3.js → chunk-EANAFODJ.js} +1 -1
- package/browser/{chunk-N3HGHV2Q.js → chunk-F652VZDD.js} +1 -1
- package/browser/{chunk-L5QFOKO7.js → chunk-FE5USLDO.js} +1 -1
- package/browser/{chunk-M326IFGL.js → chunk-FFNEDDOO.js} +1 -1
- package/browser/{chunk-FUYOSIW5.js → chunk-FFW4SP7H.js} +1 -1
- package/browser/{chunk-5RTCTJUG.js → chunk-FG3HLE5U.js} +1 -1
- package/browser/{chunk-XUDYAWGP.js → chunk-FHPFRT4L.js} +1 -1
- package/browser/{chunk-HEIZUI6B.js → chunk-FJC7EOO5.js} +1 -1
- package/browser/chunk-FSBKLNRT.js +4 -0
- package/browser/{chunk-7LCG4V47.js → chunk-G5VELV3S.js} +1 -1
- package/browser/{chunk-R4JXP55V.js → chunk-GXVEYJWC.js} +1 -1
- package/browser/{chunk-ICXY7J4B.js → chunk-GYNJFQPE.js} +1 -1
- package/browser/{chunk-QCMMZ67T.js → chunk-H2SA27YZ.js} +1 -1
- package/browser/{chunk-KSDWEFU5.js → chunk-I2SL4ZPJ.js} +1 -1
- package/browser/chunk-IVQ42QHP.js +5 -0
- package/browser/{chunk-IJ6NUPJY.js → chunk-JIPNMAEP.js} +1 -1
- package/browser/{chunk-SXAXSC44.js → chunk-JNORDOWT.js} +1 -1
- package/browser/{chunk-I6RQW6MV.js → chunk-JYA7PGNK.js} +1 -1
- package/browser/{chunk-CZIC4DAI.js → chunk-L2V3KTC6.js} +1 -1
- package/browser/{chunk-347WKSZO.js → chunk-LBZL2R6L.js} +1 -1
- package/browser/{chunk-XZ7GA7NR.js → chunk-LRXTFWOZ.js} +1 -1
- package/browser/{chunk-O5OL3MSI.js → chunk-M47WPS54.js} +1 -1
- package/browser/{chunk-TRYMZNEH.js → chunk-M4EGMZWI.js} +1 -1
- package/browser/{chunk-Y4LWALJN.js → chunk-MH7N5XSV.js} +1 -1
- package/browser/{chunk-DP3IHIJG.js → chunk-MUM4RT2P.js} +1 -1
- package/browser/{chunk-AS5WHW7W.js → chunk-OINIYEKP.js} +1 -1
- package/browser/{chunk-V2HVL2JW.js → chunk-OJM2IYYY.js} +2 -2
- package/browser/{chunk-TWX33MAO.js → chunk-PACJK6XZ.js} +1 -1
- package/browser/{chunk-5IW47S5R.js → chunk-PEIXGMKS.js} +1 -1
- package/browser/{chunk-GSAGOZJT.js → chunk-PKS7H624.js} +1 -1
- package/browser/{chunk-QECDT5UJ.js → chunk-QDHSPK4B.js} +1 -1
- package/browser/{chunk-75OKQPDZ.js → chunk-QGBQPCW2.js} +2 -2
- package/browser/{chunk-ADC6Y4AB.js → chunk-QJD336PR.js} +1 -1
- package/browser/{chunk-NJGJFNQG.js → chunk-QLAA4AMU.js} +1 -1
- package/browser/{chunk-5O2O7IB4.js → chunk-QVCQODGZ.js} +1 -1
- package/browser/{chunk-UNJ5ELA7.js → chunk-QXWCGE56.js} +1 -1
- package/browser/{chunk-V3PWVI2B.js → chunk-RB6A4M7Y.js} +12 -12
- package/browser/{chunk-BFLDH5QM.js → chunk-RCW2TTR7.js} +1 -1
- package/browser/{chunk-BE4SGNNY.js → chunk-RMU3G7EK.js} +1 -1
- package/browser/{chunk-2ZXSQTN3.js → chunk-RNYFGIMB.js} +1 -1
- package/browser/{chunk-DUJXPJ4P.js → chunk-SIS55WCN.js} +2 -2
- package/browser/{chunk-D3BHSTT2.js → chunk-SKDXVP3A.js} +1 -1
- package/browser/{chunk-FT2CPNDK.js → chunk-SQ3QIOE4.js} +1 -1
- package/browser/{chunk-GOZ7JJVG.js → chunk-SUKZF5RZ.js} +1 -1
- package/browser/{chunk-2BWSGD3Z.js → chunk-T4XIWNFQ.js} +1 -1
- package/browser/{chunk-6BCNB44A.js → chunk-TEV65D26.js} +1 -1
- package/browser/{chunk-L72RFTBD.js → chunk-TOUJ6K3E.js} +1 -1
- package/browser/{chunk-6OSOTMIF.js → chunk-TUM5HKY7.js} +1 -1
- package/browser/{chunk-WPMZWFSL.js → chunk-TYX5PWAF.js} +1 -1
- package/browser/{chunk-F45DK6HY.js → chunk-UTTEBWDI.js} +1 -1
- package/browser/{chunk-337Y6LKZ.js → chunk-VLHLS6LD.js} +1 -1
- package/browser/{chunk-EZRYO7BE.js → chunk-XNJ2P2ZO.js} +1 -1
- package/browser/{chunk-4VFIXDGC.js → chunk-XORANKYI.js} +1 -1
- package/browser/{chunk-3PWKXRXD.js → chunk-XVAFOEWU.js} +2 -2
- package/browser/{chunk-DT6QJWPF.js → chunk-ZEGLCDLU.js} +1 -1
- package/browser/{chunk-QIFLQIWQ.js → chunk-ZQHJ2WC2.js} +1 -1
- package/browser/{chunk-SMUNI47Q.js → chunk-ZVOEO2AC.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-O34B6LHF.js → main-Z44VJHQT.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-NWDPSH4M.js +0 -5
- package/browser/chunk-P3RYBCCQ.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as v,f as y}from"./chunk-
|
|
1
|
+
import{e as v,f as y}from"./chunk-PKS7H624.js";import"./chunk-4U2TXFUV.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import"./chunk-C4WJKF7R.js";import"./chunk-T25N3EEG.js";import"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import"./chunk-RNLSEEMX.js";import"./chunk-BVZ7ACQM.js";import"./chunk-7KAETFNH.js";import"./chunk-USJ6ILEE.js";import"./chunk-FSBKLNRT.js";import{$d as u,Cb as h,Db as o,Eb as i,Fb as g,Xa as c,Yd as M,db as l,dc as n,ec as x,hb as f,ib as m,ma as a,rd as z}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var s=class e{constructor(r){this.router=r;this.previousPage=this.router.lastSuccessfulNavigation?.finalUrl?.root?.children?.primary?.segments?.join("/"),this.role=this.router.getCurrentNavigation()?.extras?.state.role}previousPage="";role="";menuData={H:"Unauthorized"};static \u0275fac=function(t){return new(t||e)(l(M))};static \u0275cmp=f({type:e,selectors:[["POS-unauthorized"]],standalone:!1,decls:13,vars:4,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex","align-items-center","justify-content-center","mt-8",2,"height","350px"],[1,"text-center"],["src","https://cdn.dealpos.xyz/web-image/locked.svg",2,"width","200px"],[1,"mt-2","mb-6"],[1,"fw-bold"]],template:function(t,d){t&1&&(o(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div"),g(5,"img",3),i(),o(6,"h1",4),n(7,"You are not authorized"),i(),o(8,"p"),n(9," This page require "),o(10,"span",5),n(11),i(),n(12," role. Please contact your Administrator to gain access! "),i()()()()()),t&2&&(h("pageData",d.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),c(11),x(d.role))},dependencies:[v],encapsulation:2})};var U=[{path:"Main/Unauthorized",component:s},{path:"",redirectTo:"Main/Unauthorized",pathMatch:"full"}],p=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=m({type:e});static \u0275inj=a({imports:[u.forChild(U),u]})};var S=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=m({type:e});static \u0275inj=a({imports:[z,p,y]})};export{S as UnauthorizedModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as V,b as W}from"./chunk-ZW5E2GIN.js";import{a as B}from"./chunk-
|
|
1
|
+
import{a as V,b as W}from"./chunk-ZW5E2GIN.js";import{a as B}from"./chunk-F652VZDD.js";import{e as J,f as q}from"./chunk-PKS7H624.js";import"./chunk-4U2TXFUV.js";import{b as I}from"./chunk-XNJ2P2ZO.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import{b as E,c as P}from"./chunk-C4WJKF7R.js";import"./chunk-T25N3EEG.js";import"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import"./chunk-RNLSEEMX.js";import"./chunk-BVZ7ACQM.js";import"./chunk-7KAETFNH.js";import"./chunk-USJ6ILEE.js";import"./chunk-FSBKLNRT.js";import{Bc as d,Cb as r,Cc as D,Db as o,Dc as C,Eb as t,Fb as c,Mb as j,Ob as v,Qb as b,Wd as M,Xa as l,db as m,dc as a,ec as L,ee as T,fc as x,hb as f,lb as y,md as _,nd as k,od as w,rd as R,ta as u,ua as g,vb as h,xb as S}from"./chunk-JYZTRN6N.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,4 +1,4 @@
|
|
|
1
|
-
import{a as ne,c as Ft,d as It}from"./chunk-
|
|
1
|
+
import{a as ne,c as Ft,d as It}from"./chunk-4U2TXFUV.js";import{d as ie}from"./chunk-CS6HBROS.js";import{a as bt}from"./chunk-JUS6LLVX.js";import{F as Pt,G as Et,u as Vt,v as Tt,w as kt}from"./chunk-BA3BDB5Y.js";import{b as vt,c as yt}from"./chunk-C4WJKF7R.js";import{N as Dt,n as Mt}from"./chunk-T25N3EEG.js";import{a as ot,e as xt,f as wt,g as St}from"./chunk-A45GTZVV.js";import{s as Ct}from"./chunk-NWSIPELM.js";import{c as gt,d as _t,h as ht,k as j}from"./chunk-L76WVZW6.js";import{G as Ce,M as ct,N as dt,b as at,k as rt,la as pt,oa as ut,p as lt,pa as te,ua as mt,w as st,xa as ft}from"./chunk-O5SLP4JK.js";import{F as tt,c as $e,h as Ye,i as Ge,k as Xe,o as Je,p as et}from"./chunk-RNLSEEMX.js";import{a as qe,c as it}from"./chunk-BVZ7ACQM.js";import{a as nt}from"./chunk-7KAETFNH.js";import{a as N}from"./chunk-USJ6ILEE.js";import{$d as Ue,Ab as V,Bb as T,Bc as Z,Cb as u,Cc as fe,Db as a,Dc as Oe,Eb as l,Fb as _,Ia as de,Id as We,Jd as he,Lb as Be,Lc as ge,Ld as J,Mb as b,Md as ee,N as Ve,Ob as g,Od as be,Pc as _e,Qb as c,Qc as $,Rb as z,Sb as k,Tb as E,Vb as F,Wa as Me,Wb as I,Wc as Le,Xa as s,Xc as Y,Ya as y,Yb as U,Yc as Re,Za as De,Zb as Ke,Zd as Qe,_d as ze,aa as Te,ac as pe,be as Ze,cc as ue,cd as Ne,d as we,db as v,dc as h,ec as A,fc as O,fd as je,hb as B,ib as Q,ic as M,id as He,jc as D,jd as G,kb as Pe,kc as P,la as H,lb as Ee,ma as W,mb as Fe,na as ke,nb as K,oc as L,pa as w,rd as R,sc as Ae,sd as X,t as Se,ta as d,tb as Ie,tc as q,ua as p,uc as x,vb as m,vc as me,xb as f,zb as S}from"./chunk-JYZTRN6N.js";import{a as ce,b as xe}from"./chunk-SNAKHGZS.js";var oe=class t{_openDialog=new we;openDialog$=this._openDialog.asObservable();openDialog(){this._openDialog.next()}static \u0275fac=function(e){return new(e||t)};static \u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ht=["content"],Wt=["*"],Qt=(t,o)=>({showTransitionParams:t,hideTransitionParams:o}),zt=(t,o)=>({value:t,params:o}),Ut=t=>({closeCallback:t});function qt(t,o){}function Zt(t,o){t&1&&K(0,qt,0,0,"ng-template")}function $t(t,o){if(t&1){let e=b();a(0,"div",1),g("click",function(i){d(e);let r=c();return p(r.onOverlayClick(i))})("@animation.start",function(i){d(e);let r=c();return p(r.onAnimationStart(i))})("@animation.done",function(i){d(e);let r=c();return p(r.onAnimationEnd(i))}),a(1,"div",2),g("click",function(i){d(e);let r=c();return p(r.onContentClick(i))})("mousedown",function(i){d(e);let r=c();return p(r.onContentClick(i))}),k(2),K(3,Zt,1,0,null,3),l()()}if(t&2){let e=c();ue(e.cn(e.cx("root"),e.styleClass)),u("pBind",e.ptm("root"))("ngStyle",e.style)("@animation",me(16,zt,e.overlayVisible?"open":"close",me(13,Qt,e.showTransitionOptions,e.hideTransitionOptions))),Ie("aria-modal",e.overlayVisible)("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy),s(),ue(e.cx("content")),u("pBind",e.ptm("content")),s(2),u("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",x(19,Ut,e.onCloseClick.bind(e)))}}var Yt=`
|
|
2
2
|
.p-popover {
|
|
3
3
|
margin-top: dt('popover.gutter');
|
|
4
4
|
background: dt('popover.background');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as W,d as X}from"./chunk-
|
|
1
|
+
import{c as W,d as X}from"./chunk-FFNEDDOO.js";import{a as Y,b as Z}from"./chunk-QFON23YX.js";import{b as Q,c as U}from"./chunk-C4WJKF7R.js";import{a as B}from"./chunk-RLQLFW36.js";import{oa as K}from"./chunk-O5SLP4JK.js";import{F as J,h as q,o as G}from"./chunk-RNLSEEMX.js";import{a as d}from"./chunk-USJ6ILEE.js";import{Bc as k,Cb as l,Cc as F,Db as c,Eb as m,Hc as N,Lb as L,Mb as j,Ob as E,Qb as n,Xa as _,Y as f,Ya as M,_b as I,ca as S,d as x,db as b,dc as v,ee as C,fa as T,fc as R,ga as u,hb as $,jd as P,kd as z,la as w,nb as a,o as h,oa as O,pa as D,rd as A,ta as p,ua as g,vb as H,xb as V}from"./chunk-JYZTRN6N.js";var y=class o{signalRClient=D(B);continuedCategories$;allCategories$;_onOpenTreeSelector=new x;onOpenTreeSelector$=this._onOpenTreeSelector.asObservable();constructor(t){this.continuedCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?(this.signalRClient.resetCategoryCache(),t.post("/api/catalog/product/GetProductStorageOptions")):h(e),[]),f(1)),this.allCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?t.get("/API/catalog/category/SelectOptions"):h(e),[]),f(1))}onOpenTreeSelector(){this._onOpenTreeSelector.next(!0)}forceLoadCategories(){this._onOpenTreeSelector.next(!0)}static \u0275fac=function(e){return new(e||o)(O(C))};static \u0275prov=w({token:o,factory:o.\u0275fac,providedIn:"root"})};function re(o,t){o&1&&L(0)}function ne(o,t){if(o&1&&(c(0,"p-floatLabel",1),a(1,re,1,0,"ng-container",2),c(2,"label",3),v(3,"Category"),m()()),o&2){n();let e=I(3);_(),l("ngTemplateOutlet",e)}}function ae(o,t){o&1&&L(0)}function le(o,t){if(o&1&&a(0,ae,1,0,"ng-container",2),o&2){n();let e=I(3);l("ngTemplateOutlet",e)}}function ce(o,t){if(o&1&&(c(0,"div",6),v(1),m()),o&2){let e=n(2);l("matTooltip",e.selectedCategoryLabel),_(),R(" ",e.selectedCategoryLabel," ")}}function se(o,t){if(o&1){let e=j();c(0,"p-treeSelect",4),k(1,"async"),E("click",function(){p(e);let r=n();return g(r.loadCategories())})("ngModelChange",function(r){p(e);let s=n();return g(s.onSelectCategory(r))})("onClear",function(){p(e);let r=n();return g(r.onClear())}),a(2,ce,2,2,"ng-template",5),m()}if(o&2){let e=n();l("options",F(1,4,e.categories$))("ngModel",e.selectedCategory)("showClear",e.showClear)("placeholder",e.placeholder)}}var ee=class o{constructor(t,e){this.http=t;this.treeSelector=e}continuedCategoriesOnly=!0;categories=[];showClear=!1;showLabel=!1;isInitializedCategoryLabel=!1;placeholder="Select Storage Location";selectedCategory;selectedCategoryID;selectedCategoryIDChange=new M;selectedCategoryLabel;top=0;isLoadCategories=!1;categories$;ngAfterViewInit(){let t=document.querySelector("body");this.top=t.getBoundingClientRect().top*-1}ngOnInit(){this.isInitializedCategoryLabel&&(d.IsEmpty(this.selectedCategoryID)&&d.IsNotEmpty(this.categories)&&(this.selectedCategoryID=this.categories[0]?.key),this.selectedCategory=this.findSelectedCategory(this.categories,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)),this.categories$=this.continuedCategoriesOnly?this.treeSelector.continuedCategories$:this.treeSelector.allCategories$,this.categories$=this.categories$.pipe(T(t=>{this.selectedCategory=this.findSelectedCategory(t,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)}))}onSelectCategory(t){this.selectedCategory=t,this.generateLabelSelectedCategory(this.selectedCategory),this.selectedCategoryID=t?.key,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}generateLabelSelectedCategory(t){if(t){let e=[];this.selectedCategoryLabel="";do e=[...e,t.label],t=t.parent;while(t!==void 0);this.selectedCategoryLabel=e.reverse().join("/")}else this.selectedCategoryLabel=this.placeholder}findSelectedCategory(t,e){if(d.IsNotEmpty(e))for(let i of t){if(i.key===e)return i;{i.children=i.children?i.children:[],i.children=i.children.map(s=>(s.parent=i,s));let r=this.findSelectedCategory(i.children,e);if(r)return r}}else return null}loadCategories(){this.treeSelector.onOpenTreeSelector()}onClear(){this.selectedCategoryID=null,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}static \u0275fac=function(e){return new(e||o)(b(C),b(y))};static \u0275cmp=$({type:o,selectors:[["POS-storage-location-select"]],inputs:{continuedCategoriesOnly:"continuedCategoriesOnly",categories:"categories",showClear:"showClear",showLabel:"showLabel",isInitializedCategoryLabel:"isInitializedCategoryLabel",placeholder:"placeholder",selectedCategoryID:"selectedCategoryID"},outputs:{selectedCategoryIDChange:"selectedCategoryIDChange"},decls:4,vars:1,consts:[["categorySelectTemplate",""],["variant","on",1,"w-100"],[4,"ngTemplateOutlet"],["for","selectCategory",1,"tree-category-label"],["appendTo","body","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectCategory",3,"click","ngModelChange","onClear","options","ngModel","showClear","placeholder"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,i){e&1&&(H(0,ne,4,1,"p-floatLabel",1)(1,le,1,1,"ng-container"),a(2,se,3,6,"ng-template",null,0,N)),e&2&&V(i.showLabel?0:1)},dependencies:[A,P,U,Q,X,W,K,J,q,G,Z,Y,z],styles:[".p-popover.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important} .p-float-label .p-inputwrapper-filled~label.tree-category-label{left:.5rem!important}"]})};export{ee as a};
|