marketplacepos 5.46.6 → 5.46.7
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/Marketplace/3rdpartylicenses.txt +52 -52
- package/Marketplace/chunk-25345PS7.js +257 -0
- package/Marketplace/chunk-2UIK6NRS.js +1 -0
- package/Marketplace/chunk-37MIOA6D.js +1 -0
- package/Marketplace/chunk-3DCFDJVG.js +1 -0
- package/Marketplace/chunk-3X5SEOLP.js +1 -0
- package/Marketplace/chunk-4RTDKHTN.js +1 -0
- package/Marketplace/chunk-4VJ3SIJF.js +1 -0
- package/Marketplace/{chunk-PTNJ3YC5.js → chunk-5G3N7OU5.js} +1 -1
- package/Marketplace/{chunk-AWNZSJSP.js → chunk-5KNFEBH5.js} +1 -1
- package/Marketplace/{chunk-USBIAIK6.js → chunk-5QO5B7YG.js} +1 -1
- package/Marketplace/{chunk-4HOZLG47.js → chunk-6NRH3MJL.js} +1 -1
- package/Marketplace/chunk-6QFP63YQ.js +1 -0
- package/Marketplace/{chunk-P2IQLBGG.js → chunk-7KN3UVZI.js} +1 -1
- package/Marketplace/chunk-7L3UKJDU.js +1 -0
- package/Marketplace/{chunk-TI67Q3JR.js → chunk-AGURPBGY.js} +1 -1
- package/Marketplace/chunk-BDBETNFT.js +137 -0
- package/Marketplace/{chunk-YEDXFYTD.js → chunk-BTO76EDH.js} +1 -1
- package/Marketplace/{chunk-ZYQD6SBV.js → chunk-BVDLO6WD.js} +1 -1
- package/Marketplace/{chunk-5KUKIH4H.js → chunk-CMBQCMTZ.js} +1 -1
- package/Marketplace/{chunk-GSVFDIM6.js → chunk-CWNZ6HAV.js} +1 -1
- package/Marketplace/chunk-CYG42H2K.js +1 -0
- package/Marketplace/{chunk-FHNST4Y7.js → chunk-DNNH5AQJ.js} +1 -1
- package/Marketplace/{chunk-3PPLPXAX.js → chunk-DPAQQ77L.js} +1 -1
- package/Marketplace/{chunk-JZDOMET2.js → chunk-EAA6S4WB.js} +1 -1
- package/Marketplace/chunk-F2T43CJB.js +51 -0
- package/Marketplace/{chunk-MZWTCBAF.js → chunk-F4Z47C2S.js} +8 -8
- package/Marketplace/chunk-FJYAC47U.js +2 -0
- package/Marketplace/{chunk-22ARBR7W.js → chunk-GJTQNOXV.js} +1 -1
- package/Marketplace/chunk-GUO3DTDP.js +1 -0
- package/Marketplace/{chunk-X4B2FYY3.js → chunk-HBVCUV6A.js} +1 -1
- package/Marketplace/{chunk-OGJMVAEL.js → chunk-HZKRKNLA.js} +1 -1
- package/Marketplace/chunk-IQ3ER4NM.js +1 -0
- package/Marketplace/{chunk-FOT5AJYX.js → chunk-JP6HRQLK.js} +2 -2
- package/Marketplace/chunk-JZC463X6.js +1 -0
- package/Marketplace/chunk-K4NTJPH5.js +1 -0
- package/Marketplace/{chunk-LS7AO6KP.js → chunk-KXU32D3B.js} +1 -1
- package/Marketplace/{chunk-NDBC2CS6.js → chunk-LBDA5KP3.js} +1 -1
- package/Marketplace/chunk-LETC4UBH.js +1 -0
- package/Marketplace/chunk-LVZDOEKQ.js +1 -0
- package/Marketplace/{chunk-MGLOTL2T.js → chunk-LW3PTNRL.js} +1 -1
- package/Marketplace/chunk-LYCCI55Z.js +1 -0
- package/Marketplace/{chunk-Y4XF2TXJ.js → chunk-MAQ6FWVP.js} +1 -1
- package/Marketplace/{chunk-FGRPTNDB.js → chunk-MFMD6ZSP.js} +1 -1
- package/Marketplace/chunk-MYPTLVUU.js +1 -0
- package/Marketplace/{chunk-7Y7SPMGZ.js → chunk-NAGQF4JJ.js} +1 -1
- package/Marketplace/chunk-NCLAP5OW.js +1 -0
- package/Marketplace/{chunk-2DLU2LJJ.js → chunk-NTGU2UMX.js} +1 -1
- package/Marketplace/chunk-NX4WQMFK.js +1 -0
- package/Marketplace/chunk-O3ADJ3YS.js +1 -0
- package/Marketplace/{chunk-GZS2MOSK.js → chunk-OMPJUICC.js} +1 -1
- package/Marketplace/{chunk-EXSI44LD.js → chunk-OR6TBLPO.js} +2 -2
- package/Marketplace/{chunk-V3ZRQKJA.js → chunk-QPLUVWFA.js} +1 -1
- package/Marketplace/chunk-R5KKW4LC.js +1 -0
- package/Marketplace/{chunk-TWOIWWMO.js → chunk-SCHKXMJN.js} +1 -1
- package/Marketplace/chunk-TLEH7QMI.js +1 -0
- package/Marketplace/chunk-TUHKMG57.js +1 -0
- package/Marketplace/chunk-U7WCPDIV.js +1 -0
- package/Marketplace/{chunk-LLHPMXKP.js → chunk-UQWB6RQP.js} +1 -1
- package/Marketplace/{chunk-2BV7ZXRB.js → chunk-VLF5RZ3X.js} +1 -1
- package/Marketplace/{chunk-7WY57PVD.js → chunk-VRPKQ2HJ.js} +1 -1
- package/Marketplace/{chunk-CT73GC7O.js → chunk-WUKVYBD3.js} +1 -1
- package/Marketplace/{chunk-PGP3WHIS.js → chunk-YHT4EYQJ.js} +1 -1
- package/Marketplace/{chunk-P2AADVEN.js → chunk-ZHPHANAW.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-YKZPM7WW.js → main-HRVNLZTX.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-4YRBARG2.js +0 -1
- package/Marketplace/chunk-5BHSTOJT.js +0 -1
- package/Marketplace/chunk-5DTUHJSS.js +0 -1
- package/Marketplace/chunk-5Z5Y537T.js +0 -1
- package/Marketplace/chunk-B2ZWLW3F.js +0 -1
- package/Marketplace/chunk-CBQUB3KW.js +0 -1
- package/Marketplace/chunk-CRD4OUSG.js +0 -1
- package/Marketplace/chunk-D2TELRO7.js +0 -1
- package/Marketplace/chunk-EFB55SZR.js +0 -1
- package/Marketplace/chunk-ELZBUFG5.js +0 -1
- package/Marketplace/chunk-EPBVNII2.js +0 -51
- package/Marketplace/chunk-F3GLNINI.js +0 -1
- package/Marketplace/chunk-FKQ7ZVGD.js +0 -1
- package/Marketplace/chunk-JUJFPAAU.js +0 -1
- package/Marketplace/chunk-LXXEN7OV.js +0 -1
- package/Marketplace/chunk-OO2CSDGF.js +0 -1
- package/Marketplace/chunk-QREUIGWW.js +0 -1
- package/Marketplace/chunk-RGAKHXPF.js +0 -1
- package/Marketplace/chunk-SLEJQAL7.js +0 -1
- package/Marketplace/chunk-TMKLT3K2.js +0 -1
- package/Marketplace/chunk-URGPZLCB.js +0 -1
- package/Marketplace/chunk-UYFUJBC4.js +0 -2
- package/Marketplace/chunk-UZWED4UK.js +0 -137
- package/Marketplace/chunk-WGCIF2R4.js +0 -257
- package/Marketplace/chunk-X52QA4QU.js +0 -1
- package/Marketplace/chunk-XLWWNO5M.js +0 -1
- package/Marketplace/chunk-YF4XELSP.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as R}from"./chunk-EHBCYQSG.js";import{b as ze}from"./chunk-GRYGUILI.js";import"./chunk-HVCIQI7B.js";import"./chunk-QS22J2SC.js";import"./chunk-EHUVS2VB.js";import{a as Ze}from"./chunk-2BV7ZXRB.js";import"./chunk-IITU3NV6.js";import{a as ee}from"./chunk-XHAXYWZ7.js";import{a as Ge,b as Ye,c as Ke,d as J,e as te}from"./chunk-O2YNPIYM.js";import{a as Qe,b as He}from"./chunk-YTCIQBSO.js";import"./chunk-PGP3WHIS.js";import"./chunk-VFATXJRG.js";import"./chunk-RHHHL4OR.js";import{a as We}from"./chunk-X4B2FYY3.js";import"./chunk-IHSGQFDX.js";import"./chunk-MO53T3IK.js";import"./chunk-W3JTS22H.js";import"./chunk-SDUUFQUI.js";import"./chunk-6L7TD5DW.js";import"./chunk-6OMSPZZC.js";import"./chunk-3RK6DDJD.js";import"./chunk-HIC5QC3Y.js";import"./chunk-JBT7GBCM.js";import{a as q}from"./chunk-UMP6ZMEJ.js";import{a as Ue,b as Be,c as $e}from"./chunk-GHVAGYK3.js";import"./chunk-JVNHFIYT.js";import"./chunk-EPBVNII2.js";import"./chunk-UZWED4UK.js";import"./chunk-5CKVZBHM.js";import"./chunk-4YRBARG2.js";import"./chunk-BKRCW7SH.js";import"./chunk-RGAKHXPF.js";import"./chunk-T2OSIFLN.js";import"./chunk-QW4EOJRM.js";import"./chunk-Q4N2QUV6.js";import"./chunk-7G6GQTSH.js";import{a as je}from"./chunk-63ANFYRV.js";import"./chunk-OZ7LWNOK.js";import"./chunk-YFDFIBAG.js";import"./chunk-RC5PUUVM.js";import"./chunk-GZS2MOSK.js";import"./chunk-ACIMXBIC.js";import{e as De}from"./chunk-PYXL7UF7.js";import{i as Te}from"./chunk-P2AADVEN.js";import"./chunk-Z3ITXK3D.js";import"./chunk-TGMCGROM.js";import{a as X}from"./chunk-CGOB6Y3X.js";import{b as ve,e as Ie}from"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import{c as f}from"./chunk-EUYQST7Q.js";import{b as Me,c as Ve,d as ke,j as Re,k as Le,l as Ne,m as Ae,n as Oe}from"./chunk-HJXYT6MI.js";import{A as ye,b as Ce,c as ge,h as fe,m as xe,o as Se}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import{a as we,b as be,c as Fe}from"./chunk-ERXVXBTU.js";import{r as Pe,s as Ee}from"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{H as ue,J as he,d as me,g as de,j as $,k as W,m as _e,n as j}from"./chunk-FXQKRJWU.js";import{$c as g,Fc as K,G as Q,Gb as U,Gc as c,Hc as O,Ic as I,Kc as b,Lc as F,Mb as h,Mc as T,Nc as re,Oc as se,Pc as ce,Qc as B,Ra as V,Rc as pe,Sc as M,Yb as m,Z as N,ac as ae,ad as y,bd as k,cd as Z,dc as v,ea as H,ec as z,gc as G,hc as Y,ic as a,jc as l,kc as x,lc as P,mc as E,oc as S,pa as w,pb as A,rb as s,tc as C,uc as r,v as L,xb as D,xc as le,ya as d,za as _}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{a as oe}from"./chunk-66YHNWRR.js";var tt=()=>["/menu/order/download"];function nt(n,p){if(n&1&&(a(0,"li",4)(1,"div"),c(2," The last time you manually download your order is on "),a(3,"span",8),c(4),g(5,"date"),l()(),a(6,"div",9),c(7),l()()),n&2){r();let e=ce(0);s(4),I(" ",k(5,2,e==null?null:e.OrderDownloadLatestOn,"dd MMM yyyy HH:mm")," "),s(3),I("(",e==null?null:e.calculatedDate,")")}}function it(n,p){n&1&&(a(0,"li",4),c(1," The last time you manually download your order is on (-) "),l())}var qe=(()=>{class n{constructor(){this.dialogRef=w(Me),this.data=w(Ve),this.modalConfig=new Re,this.inventoryService=w(R),this.lastDownloadInfo$=this.inventoryService.getLastInfoDownloadInventory(this.data.channelId).pipe(L(e=>{let o=e.OrderDownloadLatestOn!=f.MinDate,t=null,i=null;return o&&(t=new Date(e.OrderDownloadLatestOn),i=f.convertToReadableDate(t)),{OrderDownloadLatestOn:t,calculatedDate:i}}),N(1)),this.selectedProducts=V(this.data.selectedProducts||[]),this.modalConfig.title="Manual Inventory Sync",this.modalConfig.customWidth="500px",this.modalConfig.bodyScrollable=!0,this.modalConfig.hideOk=!0,this.modalConfig.hideCancel=!0}onUpdate(){this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275cmp=U({type:n,selectors:[["app-dialog-update-product-info"]],features:[B([R])],decls:16,vars:8,consts:[[3,"onCancel","config"],["content",""],[1,"container"],[1,"mt-8"],[1,"lh-base"],["footer",""],[1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3","py-8",3,"click","routerLink"],[1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3","py-8",3,"click","keyup.F2"],[1,"fw-bold","me-1"],[1,"fw-bold"]],template:function(o,t){if(o&1){let i=S();re(0),g(1,"async"),a(2,"modal-material",0),C("onCancel",function(){return d(i),_(t.onCancel())}),a(3,"div",1)(4,"div",2)(5,"h4"),c(6),l(),a(7,"div",3)(8,"ul"),h(9,nt,8,5,"li",4)(10,it,2,0,"li",4),l()()()(),a(11,"div",5)(12,"a",6),C("click",function(){return d(i),_(t.onCancel())}),c(13," Download "),l(),a(14,"button",7),C("click",function(){return d(i),_(t.onUpdate())})("keyup.F2",function(){return d(i),_(t.onUpdate())}),c(15," Update Anyway "),l()()()}if(o&2){let i=se(y(1,4,t.lastDownloadInfo$));s(2),m("config",t.modalConfig),s(4),I("",t.selectedProducts().length," Product(s) will be updated."),s(3),v(i!=null&&i.OrderDownloadLatestOn?9:10),s(3),m("routerLink",pe(7,tt))}},dependencies:[Le,j,$,W,he,ue],encapsulation:2})}}return n})();var ne=n=>[n],ot=n=>({"text-decoration-line-through":n}),at=n=>({"me-10":n}),lt=n=>({"bg-gradient-warning":n}),rt=n=>({cursor:n});function st(n,p){if(n&1){let e=S();a(0,"button",39),C("click",function(){d(e);let t=r().ngIf,i=r(2);return _(i.onScanInventory(t))}),x(1,"i",40),c(2,"Refresh "),l()}}function ct(n,p){if(n&1){let e=S();a(0,"div",37)(1,"button",41),C("click",function(){d(e);let t=r().ngIf,i=r(2);return _(i.onOpenDialogUpdateStockInfo(t))}),x(2,"i",42),c(3," Update "),l(),x(4,"button",43),a(5,"ul",44)(6,"a",45),C("click",function(){d(e);let t=r(3);return _(t.openExportDialog())}),x(7,"i",46),a(8,"span"),c(9,"Export"),l()()()()}}function pt(n,p){if(n&1){let e=S();a(0,"button",47),C("click",function(){d(e);let t=r(3);return _(t.openExportDialog())}),x(1,"i",46),a(2,"span"),c(3,"Export"),l()()}}function mt(n,p){if(n&1&&(a(0,"div"),h(1,st,3,0,"button",36)(2,ct,10,0,"div",37)(3,pt,4,0,"button",38),l()),n&2){let e=p.ngIf,o=r(2);s(),m("ngIf",o.productService.hasSelectionVariant(e)),s(),v(o.productService.hasSelectionVariant(e)?2:3)}}function dt(n,p){n&1&&(a(0,"div",48)(1,"span"),c(2," showing only different stock, please press next to populate more data "),l()())}function _t(n,p){if(n&1){let e=S();a(0,"th")(1,"input",49),T("ngModelChange",function(t){d(e);let i=r(3);return F(i.checkboxState,t)||(i.checkboxState=t),_(t)}),C("ngModelChange",function(){let t=d(e).ngIf,i=r(3);return _(i.onCheckboxStateChange(t))}),l()()}if(n&2){let e=r(3);s(),b("ngModel",e.checkboxState)}}function ut(n,p){if(n&1&&(P(0),h(1,_t,2,1,"th",5),g(2,"async"),E()),n&2){let e=r(2);s(),m("ngIf",y(2,1,e.products$))}}function ht(n,p){n&1&&(a(0,"th",33),c(1," Reserved "),l())}function Ct(n,p){if(n&1){let e=S();a(0,"input",65),T("ngModelChange",function(t){d(e);let i=r(4).$implicit;return F(i.selected,t)||(i.selected=t),_(t)}),C("ngModelChange",function(){d(e);let t=r(4).$implicit,i=r(2);return _(i.onCheckboxStateProduct(t))}),l()}if(n&2){let e=r(4).$implicit;b("ngModel",e.selected)}}function gt(n,p){if(n&1&&(P(0),a(1,"div",63),h(2,Ct,1,1,"input",64),l(),E()),n&2){let e=r(3).$implicit;s(),m("ngClass",M(2,at,e.Variants.length<=1)),s(),v(e.Variants.length>1?2:-1)}}function ft(n,p){if(n&1){let e=S();a(0,"img",66),C("click",function(t){d(e);let i=r(3).$implicit,u=r(2);return _(u.onZoomImage(t,i==null?null:i.ImageUrl))}),l()}if(n&2){let e=r(3).$implicit;le("src",e==null?null:e.ThumbnailUrl,A)}}function xt(n,p){n&1&&x(0,"img",60)}function St(n,p){if(n&1&&(x(0,"br"),a(1,"div",67),x(2,"i",68),a(3,"small"),c(4),l()()),n&2){let e=r(3).$implicit;s(4),I("(",e==null?null:e.Category,")")}}function yt(n,p){if(n&1&&(a(0,"td",58)(1,"div",14),h(2,gt,3,4,"ng-container",27),a(3,"div"),h(4,ft,1,1,"img",59)(5,xt,1,0,"img",60),l()()(),a(6,"td",61)(7,"span",62),c(8),l(),h(9,St,5,1),l()),n&2){let e=r(2).$implicit,o=r(2);m("rowSpan",e==null?null:e.Variants.length),s(2),m("ngxPermissionsOnly",M(6,ne,o.inventoryUpdateRole)),s(2),v(e!=null&&e.ThumbnailUrl?4:5),s(2),m("rowSpan",e==null?null:e.Variants.length),s(2),O(e==null?null:e.Name),s(),v(e.CategoryID!==null&&e.CategoryID!=o.guidEmpty?9:-1)}}function vt(n,p){if(n&1){let e=S();a(0,"input",49),T("ngModelChange",function(t){d(e);let i=r(3).$implicit;return F(i.selected,t)||(i.selected=t),_(t)}),l()}if(n&2){let e=r(3).$implicit;b("ngModel",e.selected)}}function It(n,p){if(n&1&&h(0,vt,1,1,"input",70),n&2){let e=r(2).$implicit;v((e==null?null:e.Inventory)<=1e5?0:-1)}}function wt(n,p){if(n&1){let e=S();a(0,"input",49),T("ngModelChange",function(t){d(e);let i=r(2).$implicit;return F(i.selected,t)||(i.selected=t),_(t)}),l()}if(n&2){let e=r(2).$implicit;b("ngModel",e.selected)}}function bt(n,p){if(n&1&&(P(0),a(1,"td",69),h(2,It,1,1)(3,wt,1,1,"input",70),l(),E()),n&2){let e=r().$implicit;s(2),v((e==null?null:e.Channel[0].TypeID)==1?2:(e==null?null:e.Inventory)>=0?3:-1)}}function Ft(n,p){n&1&&(a(0,"div",71),c(1," Not Found "),l())}function Tt(n,p){if(n&1&&(a(0,"div")(1,"span",72),c(2),g(3,"number"),l(),c(4," => "),a(5,"span",73),c(6),g(7,"number"),l()()),n&2){let e=r().$implicit;s(2),I(" ",y(3,2,e==null||e.I==null?null:e.I.Available),""),s(4),O(y(7,4,e==null?null:e.Inventory))}}function Dt(n,p){if(n&1&&(c(0),g(1,"number")),n&2){let e=r().$implicit;I(" ",y(1,1,e==null?null:e.Inventory)," ")}}function Pt(n,p){if(n&1&&(P(0),a(1,"div",74)(2,"a",75),x(3,"i",76),l()(),E()),n&2){let e=r().$implicit,o=r(3);s(2),m("href",o.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),A)}}function Et(n,p){if(n&1){let e=S();a(0,"span",81),C("click",function(){d(e);let t=r(2).$implicit,i=r().$implicit,u=r(2);return _(u.openTableDialog(i,t))}),c(1),g(2,"number"),l()}if(n&2){let e=r(2).$implicit,o=r(3);ae(M(5,rt,o.hasInventoryEdit())),s(),I(" ",y(2,3,e==null||e.Channel[0]==null?null:e.Channel[0].Inventory)," ")}}function Mt(n,p){if(n&1){let e=S();a(0,"td",77)(1,"div",53)(2,"div"),h(3,Et,3,7,"span",78),g(4,"async"),l(),a(5,"div",74)(6,"a",75),x(7,"i",76),l()(),a(8,"div",74)(9,"span",79),C("click",function(){d(e);let t=r().$implicit,i=r(3);return _(i.refreshInventory(t==null||t.Channel[0]==null?null:t.Channel[0].ChannelItemID,t==null||t.Channel[0]==null?null:t.Channel[0].ChannelVariationID,t==null||t.Channel[0]==null?null:t.Channel[0].ChannelID,t==null?null:t.ID))}),x(10,"i",80),l()()()()}if(n&2){let e=r().$implicit,o=r(3);m("ngClass",M(5,lt,(e==null?null:e.Inventory)!=(e==null||e.Channel[0]==null?null:e.Channel[0].Inventory))),s(3),m("ngIf",y(4,3,o.products$)),s(3),m("href",e==null||e.Channel[0]==null?null:e.Channel[0].Url,A)}}function Vt(n,p){if(n&1&&(P(0),a(1,"span",82),c(2),g(3,"number"),l(),E()),n&2){let e=r(2).$implicit;s(2),I(" (",y(3,1,e==null||e.Channel[0]==null?null:e.Channel[0].InventoryReserved),") ")}}function kt(n,p){n&1&&c(0," - ")}function Rt(n,p){if(n&1&&(P(0),a(1,"td",51),h(2,Vt,4,3,"ng-container",57)(3,kt,1,0,"ng-template",null,1,Z),l(),E()),n&2){let e=K(4),o=r().$implicit;s(2),m("ngIf",o==null||o.Channel[0]==null?null:o.Channel[0].InventoryReserved)("ngIfElse",e)}}function Lt(n,p){n&1&&(P(0),c(1," - "),E())}function Nt(n,p){if(n&1&&(a(0,"span",83),g(1,"date"),c(2),g(3,"date"),l()),n&2){let e=r().$implicit;m("matTooltip",k(1,2,e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync,"dd MMMM yyyy HH:mm:ss")),s(2),I(" ",k(3,5,e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync,"dd MMM yy HH:mm")," ")}}function At(n,p){if(n&1&&(a(0,"tr"),h(1,yt,10,8),a(2,"td",50),c(3),l(),a(4,"td",51)(5,"span",52),c(6),l()(),h(7,bt,4,1,"ng-container",27),a(8,"td")(9,"div",53),h(10,Ft,2,0,"div",54)(11,Tt,8,6,"div")(12,Dt,2,3)(13,Pt,4,1,"ng-container",5),l()(),h(14,Mt,11,7,"td",55)(15,Rt,5,2,"ng-container",5),a(16,"td",56),h(17,Lt,2,0,"ng-container",57)(18,Nt,4,8,"ng-template",null,0,Z),l()()),n&2){let e=p.$implicit,o=p.$index,t=K(19),i=r(3);s(),v(o==0?1:-1),s(2),O(e==null?null:e.Model),s(2),m("matTooltip",e.Discontinued?i.discontinuedVariantMsg:"")("ngClass",M(14,ot,e.Discontinued)),s(),O(e==null?null:e.Code),s(),m("ngxPermissionsOnly",M(16,ne,i.inventoryUpdateRole)),s(3),m("ngIf",(e==null?null:e.I)==null),s(),v((e==null?null:e.I)!=null&&(e==null?null:e.Inventory)!=(e==null||e.I==null?null:e.I.Available)?11:-1),s(),v((e==null?null:e.Inventory)==(e==null||e.I==null?null:e.I.Available)?12:-1),s(),m("ngIf",(e==null?null:e.I)!=null),s(),m("ngIf",e==null?null:e.Channel),s(),m("ngIf",i.isShowReservedColumn),s(2),m("ngIf",(e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync)==i.minDate)("ngIfElse",t)}}function Ot(n,p){if(n&1&&(a(0,"tbody"),G(1,At,20,18,"tr",null,z),l()),n&2){let e=p.$implicit;s(),Y(e.Variants)}}function Ut(n,p){if(n&1){let e=S();a(0,"mainpanel",3),C("onSubmit",function(t){d(e);let i=r();return _(i.onSearch(t))}),a(1,"actions")(2,"div",4),h(3,mt,4,2,"div",5),g(4,"async"),l()(),a(5,"filters")(6,"div")(7,"label",6),c(8,"Channel"),l(),a(9,"multiwarehouse-tree-select",7),C("onChannelChange",function(t){d(e);let i=r();return _(i.onChannelChange(t))}),l()(),a(10,"div",8)(11,"label",9),c(12,"PageNumber"),l(),a(13,"input",10),T("ngModelChange",function(t){d(e);let i=r();return F(i.searchFilter.PageNumber,t)||(i.searchFilter.PageNumber=t),_(t)}),l()(),a(14,"div",8)(15,"label",11),c(16,"Page Size"),l(),a(17,"input",12),T("ngModelChange",function(t){d(e);let i=r();return F(i.searchFilter.RowCount,t)||(i.searchFilter.RowCount=t),_(t)}),l()(),a(18,"div",8)(19,"label",13),c(20,"Quantity From - To"),l(),a(21,"div",14)(22,"input",15),T("ngModelChange",function(t){d(e);let i=r();return F(i.searchFilter.QuantityFrom,t)||(i.searchFilter.QuantityFrom=t),_(t)}),l(),c(23," - "),a(24,"input",16),T("ngModelChange",function(t){d(e);let i=r();return F(i.searchFilter.QuantityTo,t)||(i.searchFilter.QuantityTo=t),_(t)}),l()()()(),a(25,"content")(26,"div",17)(27,"div",18)(28,"div",19),h(29,dt,3,0,"div",20),a(30,"table",21),C("matSortChange",function(t){d(e);let i=r();return _(i.onSortVariant(t))}),a(31,"thead",22)(32,"tr")(33,"th",23),c(34," Product "),x(35,"br"),a(36,"mat-slide-toggle",24),C("toggleChange",function(){d(e);let t=r();return t.showDifferenceStock=!t.showDifferenceStock,_(t.onShowDifferenceStock())}),a(37,"small",13),c(38,"FILTER DIFFERENT INVENTORY"),l()()(),a(39,"th",25),c(40,"Variant"),l(),a(41,"th",26),c(42,"SKU"),l(),h(43,ut,3,3,"ng-container",27),a(44,"th",28),c(45," POS "),l(),a(46,"th",29)(47,"div",30),C("click",function(){d(e);let t=r();return _(t.openModalFilter())}),x(48,"img",31),a(49,"span",32),c(50),g(51,"stringLimit"),l()()(),h(52,ht,2,0,"th",33),a(53,"th",34),c(54,"Last Sync"),l()()(),G(55,Ot,3,0,"tbody",null,z),g(57,"async"),l(),a(58,"infinite-paginator",35),g(59,"async"),C("onNextPage",function(){d(e);let t=r();return _(t.infinitePagination.onNextPage(t.searchFilter))})("onLastPage",function(){d(e);let t=r();return _(t.infinitePagination.onLastPage(t.searchFilter))})("onGetRowCount",function(){d(e);let t=r();return _(t.infinitePagination.getRowCount(t.searchFilter))}),l()()()()()()}if(n&2){let e,o,t,i=r();m("headerTitle","Inventory Comparison")("pageData",i.pageData)("hideSearchBox",!1),s(3),m("ngIf",y(4,21,i.products$)),s(6),m("ngModel",(i.searchFilter==null?null:i.searchFilter.LocationID)||(i.searchFilter==null?null:i.searchFilter.ChannelID)),s(4),b("ngModel",i.searchFilter.PageNumber),s(4),b("ngModel",i.searchFilter.RowCount),s(5),b("ngModel",i.searchFilter.QuantityFrom),s(2),b("ngModel",i.searchFilter.QuantityTo),s(5),m("ngIf",(i.searchFilter==null?null:i.searchFilter.filterModel)==3),s(14),m("ngxPermissionsOnly",M(30,ne,i.inventoryUpdateRole)),s(4),m("matTooltip",((e=i.channelIdentity())==null||e.label==null?null:e.label.length)>13?(e=i.channelIdentity())==null?null:e.label:""),s(),m("src",(o=i.channelIdentity())==null?null:o.img,A),s(2),I(" ",k(51,23,(t=i.channelIdentity())==null?null:t.label,13)," "),s(2),v(i.isShowReservedColumn?52:-1),s(3),Y(y(57,26,i.products$)),s(3),m("totalData",i.infinitePagination.totalData())("hideCount",i.infinitePagination.hideCount())("rowCount",y(59,28,i.infinitePagination.totalRowCount$))("pageNumber",i.infinitePagination.pageNumber())("disableNextButton",i.infinitePagination.disableNextButton())("goToLastPage",i.infinitePagination.isLastPage())}}var An=(()=>{class n{constructor(e,o,t,i,u,ie,Xe){this.http=e,this.toastr=o,this.dialog=t,this.productService=i,this.authService=u,this.biggerPictureService=ie,this.mainPanelService=Xe,this.infinitePagination=w(J),this.ngxPermissionsService=w(we),this.updateResHandling=w(te),this.inventoryService=w(R),this.checkboxState=!1,this.showDifferenceStock=!1,this.loaderApi="InventoryLoader/Load",this.fetchApi="Inventory/GetSingleChannelComparison",this.rowCountApi="Inventory/GetInventoryByChannelRowCount",this.minDate=f.MinDate,this.isShowReservedColumn=!0,this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.guidEmpty=f.GuidEMpty,this.selectedChannel=V(null),this.channelIdentity=V({img:null,label:null}),this.inventoryUpdateRole=q.InventoryUpdate,this.hasInventoryEdit=V(!0),this.pageData={Title:"Inventory Realtime",Nav:[{Title:"Inventory Cache",Url:"/menu/inventory",Active:!1},{Title:"Inventory Realtime",Url:"/menu/inventory/realtime",Active:!0}]}}ngOnInit(){this.initRoles(),this.hostName=this.authService.getDomain(),this.initPageLoader(),this.sourceObs$=this.infinitePagination.data$.pipe(H(e=>{this.checkShowReservedColumn(e)}),L(e=>(e=this.calculateAvailableStock(e),e)),N(1)),this.products$=this.sourceObs$}initRoles(){this.ngxPermissionsService.hasPermission(q.InventoryUpdate).then(e=>this.hasInventoryEdit.set(e))}calculateAvailableStock(e){return e.map(t=>(t.totalAvailable=t.Variants.reduce((i,u)=>(i+=u.I?.Available||0,i),0),t))}checkShowReservedColumn(e){let o=0,t;e.forEach(i=>{t=i.Variants.find(u=>f.IsNotEmpty(u?.Channel[0]?.InventoryReserved)),t&&(o+=1)}),this.isShowReservedColumn=o>0}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.fetchApi,this.infinitePagination.fethRowCountEndpoint=this.rowCountApi,this.loader$=this.http.post(`/api/${this.loaderApi}`,{}).pipe(N(1),H(e=>{this.searchFilter={RowCount:e.Filter.PageSize,filterModel:1,PageNumber:1,ChannelID:e.Filter.ChannelID,LocationID:e.Filter.LocationID},this.initReloadData(),this.showToastrMarketplaceInactive(!e.Filter.IsMarketplaceAppActive)}))}onChannelChange(e){let o=Object.assign({},e);this.selectedChannel.set(o),f.IsEmpty(this.channelIdentity()?.label)&&this.setChannelFilter()}setChannelFilter(){if(this.selectedChannel()){let e=Object.assign({},this.selectedChannel());f.IsNotEmpty(e.parent)?(this.searchFilter.LocationID=e.id,this.searchFilter.ChannelID=e?.parent?.id,e.label=e?.parent?.label+" - "+e?.label,e.img=f.getChannelLogoByTypeId(e?.parent?.typeid)):(this.searchFilter.LocationID=null,e.img=f.getChannelLogoByTypeId(e?.typeid),this.searchFilter.ChannelID=e?.id,this.selectedChannel.set(e)),this.channelIdentity.update(()=>({img:e.img,label:e.label}))}}initReloadData(){this.infinitePagination.reloadPagination(this.searchFilter)}showToastrMarketplaceInactive(e){e&&this.toastr.warning(`Automatic inventory sync disabled.
|
|
2
|
-
Please enable Dealpos X Marketplace Apps integration in POS Configuration`,"Warning")}onSearch(e){this.searchFilter.text=e,this.setChannelFilter(),this.initReloadData()}openModalFilter(){this.mainPanelService.openModalFilter()}onOpenDialogUpdateStockInfo(e){let o=this.productService.selectedVariantProduct(e);this.dialog.open(qe,{data:{channelId:o[0]?.Channel[0]?.ChannelID,selectedProducts:o}}).afterClosed().pipe(Q(t=>t===!0)).subscribe(()=>{this.updateStock(o)})}updateStock(e){if(e.length>0){let o=this.searchFilter.LocationID,t=e.map(u=>oe({ChannelItemID:u?.Channel[0]?.ChannelItemID,ChannelVariationID:u?.Channel[0]?.ChannelVariationID,Inventory:u.Inventory},f.IsNotEmpty(o)&&{LocationID:o})),i={ListChannelID:[this.searchFilter.ChannelID],List:t};this.http.post(X.UpdateInventoryChannel,i).subscribe(u=>{this.initReloadData(),this.checkboxState=!1,this.handlingUpdateStock(u)})}}handlingUpdateStock(e){if(e[0]?.Response){let o=e[0]?.Response?.Fail_list,t=e[0]?.Response?.Success_list;this.updateResHandling.responseHandling(t,o,"Stock")}else this.toastr.error(e[0]?.Exception,"Error")}refreshInventory(e,o,t,i){let u={ChannelItemID:e,ChannelVariationID:o,ChannelID:t,VariantID:i};this.http.post("/api/Inventory/RefreshInventoryChannel",u).subscribe(ie=>{this.toastr.success("Successfully updated","Success"),this.initReloadData()})}onCheckboxStateProduct(e){e.Variants=e.Variants.map(o=>(o.Inventory>=0&&(o.selected=e.selected),o))}onCheckboxStateChange(e){e=e.map(o=>(o.Variants=o.Variants.map(t=>(t.selected=this.checkboxState,t)),o))}openTableDialog(e,o){this.hasInventoryEdit()&&this.dialog.open(Ge,{data:{Name:e.Name,Variant:o,ChannelID:o?.Channel[0]?.ChannelID,Table:"inventory",ChannelItemID:e.ChannelItemID}}).afterClosed().pipe(Q(i=>f.IsNotEmpty(i))).subscribe(i=>{this.updateItemAfterDialog(i)})}updateItemAfterDialog(e){let o=e.InventoryMultiwarehouse[0]?.LocationID,t={ID:e.ChannelID,ChannelItemID:e.ChannelItemID,ChannelVariantID:e.ChannelVariationID,NewQuantity:e?.Inventory,VariantID:e.ID,SKU:e?.Sku,LocationID:o};this.http.post(X.UpdateUpdateQuantityByItem,t).subscribe(i=>{this.searchFilter.PageNumber=1,this.initReloadData(),this.handlingUpdateStock([i])})}onScanInventory(e){let o=this.productService.selectedVariantProduct(e);this.inventoryService.refreshInventory(o).subscribe(()=>{this.initReloadData(),this.toastr.success("Inventory refreshed successfully","Success")})}openExportDialog(){this.dialog.open(ze,{data:{title:"Export Inventory Single Channel Comparison",pageNumber:this.searchFilter.PageNumber,rowCount:this.searchFilter.RowCount,filterExport:this.searchFilter,getRowCountApi:this.rowCountApi,QuantityFrom:this.searchFilter.QuantityFrom,QuantityTo:this.searchFilter.QuantityTo,exportApi:"Inventory/GetExportSingleChannelComparison"}}).afterClosed().subscribe()}onShowDifferenceStock(){this.showDifferenceStock?this.searchFilter.filterModel=ee.DIFFERENCE:this.searchFilter.filterModel=ee.ALL,this.initReloadData()}onZoomImage(e,o){this.biggerPictureService.openBiggerPicture(e,o)}onSortVariant(e){if(e.direction==""){this.products$=this.sourceObs$;return}this.products$=this.products$.pipe(L(o=>o.map(t=>(t.Variants=t.Variants.sort((i,u)=>f.compare(i.I?.Available,u.I?.Available,e.direction==="asc")),t)).sort((t,i)=>f.compare(t.totalAvailable,i.totalAvailable,e.direction==="asc"))))}static{this.\u0275fac=function(o){return new(o||n)(D(Ie),D(ve),D(ke),D(We),D(Te),D(je),D(Ne))}}static{this.\u0275cmp=U({type:n,selectors:[["app-single-channel-comparison"]],features:[B([J,R,te])],decls:2,vars:3,consts:[["SYNCDATE",""],["EMPTY_RESERVED",""],["textButton","Search",3,"headerTitle","pageData","hideSearchBox","onSubmit",4,"ngIf"],["textButton","Search",3,"onSubmit","headerTitle","pageData","hideSearchBox"],[1,"d-flex"],[4,"ngIf"],["for","channelOptions",1,"fw-bold","mb-2"],["id","channelOptions",3,"onChannelChange","ngModel"],[1,"mt-5"],["for","PageNumber",1,"fw-bold"],["type","number","id","PageNumber","placeholder","PageNumber","name","PageNumber","data-toggle","tooltip","matTooltip","Page Number",1,"mat-mdc-tooltip-trigger","form-control","ng-pristine","ng-valid","ng-touched","mt-3",3,"ngModelChange","ngModel"],["for","RowCount",1,"fw-bold"],["type","number","id","RowCount","placeholder","Page Size","name","RowCount","data-toggle","tooltip","matTooltip","Page Size",1,"mat-mdc-tooltip-trigger","form-control","ng-pristine","ng-valid","ng-touched","mt-3",3,"ngModelChange","ngModel"],[1,"fw-bold"],[1,"d-flex","align-items-center","justify-content-start"],["type","number","name","QuantityFrom",1,"w-25","me-2","mt-3","form-control",3,"ngModelChange","ngModel"],["type","number","name","QuantityTo",1,"w-25","ms-2","form-control","mt-2",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],["class","alert alert-warning d-flex justify-content-between text-dark","role","alert",4,"ngIf"],["matSort","",1,"table","border-bottom",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],["scope","col","colspan","2",1,"text-center","ps-12",2,"width","25%"],[3,"toggleChange"],["scope","col",1,"text-start"],["scope","col",1,"text-end",2,"width","10%"],[4,"ngxPermissionsOnly"],["scope","col","mat-sort-header","Available","arrowPosition","before",1,"text-end","w-10",2,"width","8%"],[1,"text-end",2,"width","150px"],["role","button","matTooltipPosition","above",1,"d-inline-block",3,"click","matTooltip"],[2,"width","16px",3,"src"],[1,"ms-1"],["matTooltip","Reserved Stock","matTooltipPosition","above",1,"text-end",2,"width","80px"],[1,"text-center",2,"width","145px"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],["class","btn btn-outline-dark me-3","matTooltip","Fetch the latest stock directly from the channel",3,"click",4,"ngIf"],[1,"btn-group"],[1,"btn","btn-outline-secondary","shadow","rounded"],["matTooltip","Fetch the latest stock directly from the channel",1,"btn","btn-outline-dark","me-3",3,"click"],[1,"fa-solid","fa-arrows-rotate","me-3"],[1,"btn","btn-success",3,"click"],[1,"fas","fa-chevron-circle-up"],["data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-success","btn-sm","dropdown-toggle","border-start"],[1,"dropdown-menu","dropdown-menu-end","pointer"],["role","button",1,"dropdown-item","cursor-pointer","fs-5",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],["role","alert",1,"alert","alert-warning","d-flex","justify-content-between","text-dark"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"text-start"],[1,"text-end"],["matTooltipPosition","above",3,"matTooltip","ngClass"],[1,"d-flex","align-items-center","justify-content-end"],["class","text-danger","matTooltip","This product is no longer available in POS","matTooltipPosition","above",4,"ngIf"],["class","text-end",3,"ngClass",4,"ngIf"],[1,"text-center"],[4,"ngIf","ngIfElse"],[1,"text-start",2,"width","0%",3,"rowSpan"],[1,"border","rounded","w-img","cursor-pointer",2,"margin-left","20px",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img",2,"margin-left","20px"],[1,"text-start",3,"rowSpan"],[1,"item-name","mb-0"],[3,"ngClass"],["type","checkbox",1,"me-3",3,"ngModel"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel"],[1,"border","rounded","w-img","cursor-pointer",2,"margin-left","20px",3,"click","src"],[1,"d-flex","align-items-center"],["title","Category",1,"fa-solid","fa-tags","me-2",2,"opacity","60%"],[1,"align-middle"],["type","checkbox",3,"ngModel"],["matTooltip","This product is no longer available in POS","matTooltipPosition","above",1,"text-danger"],["title","Stock Available"],["title","Inventory below minimum inventory"],[1,"ms-3"],["target","_blank",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"text-end",3,"ngClass"],[3,"class","click",4,"ngIf"],["matTooltip","Refresh stock according to seller center",1,"pl-5","cursor-pointer",2,"color","var(--bs-link-color)",3,"click"],[1,"fas","fa-sync","fa-lg","external-link-custom","pt-1"],[3,"click"],[1,"text-danger"],["matTooltipShowDelay","500",3,"matTooltip"]],template:function(o,t){o&1&&(h(0,Ut,60,32,"mainpanel",2),g(1,"async")),o&2&&m("ngIf",y(1,1,t.loader$))},dependencies:[j,me,de,$,_e,W,Oe,Ae,De,ye,ge,Se,Ce,fe,xe,Ye,Ke,Fe,be,He,Qe,Ee,Pe,$e,Ue,Be,Ze],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{margin-bottom:-14px!important;font-size:larger}input[type=checkbox][_ngcontent-%COMP%]{width:15px;height:15px}"]})}}return n})();export{An as SingleChannelComparisonComponent};
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import{a as ne}from"./chunk-RGAKHXPF.js";import{a as ce}from"./chunk-7G6GQTSH.js";import{a as ie}from"./chunk-YFDFIBAG.js";import{T as W,U as Y,fa as ee,na as oe,oa as w}from"./chunk-RC5PUUVM.js";import{a as Z,g as J}from"./chunk-5PS6ZS3N.js";import{d as P,g as U,i as K,n as X}from"./chunk-FXQKRJWU.js";import{$b as M,Aa as D,Ac as j,Bc as I,Ca as u,Cc as $,Gb as y,Hb as q,Ka as C,Kb as _,Mb as p,Qc as A,Ra as L,Rc as R,Sc as H,Xb as s,Yb as t,ac as k,ia as S,ic as x,ja as B,jc as f,ka as z,kc as d,lc as T,mc as V,oc as Q,od as h,pa as E,pd as G,rb as l,tc as N,uc as v,xa as O,ya as m,za as g,zc as F}from"./chunk-OJMQBH6T.js";var te=(()=>{class e extends ce{static \u0275fac=(()=>{let o;return function(i){return(o||(o=u(e)))(i||e)}})();static \u0275cmp=y({type:e,selectors:[["MinusIcon"]],features:[_],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(c,i){c&1&&(D(),x(0,"svg",0),d(1,"path",1),f()),c&2&&(k(i.getClassNames()),s("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})}return e})();var se=["checkboxicon"],he=["input"],de=()=>({"p-checkbox-input":!0}),be=e=>({checked:e,class:"p-checkbox-icon"});function ue(e,a){if(e&1&&d(0,"span",8),e&2){let o=v(3);t("ngClass",o.checkboxIcon),s("data-pc-section","icon")}}function pe(e,a){e&1&&d(0,"CheckIcon",9),e&2&&(t("styleClass","p-checkbox-icon"),s("data-pc-section","icon"))}function ke(e,a){if(e&1&&(T(0),p(1,ue,1,2,"span",7)(2,pe,1,2,"CheckIcon",6),V()),e&2){let o=v(2);l(),t("ngIf",o.checkboxIcon),l(),t("ngIf",!o.checkboxIcon)}}function xe(e,a){e&1&&d(0,"MinusIcon",9),e&2&&(t("styleClass","p-checkbox-icon"),s("data-pc-section","icon"))}function fe(e,a){if(e&1&&(T(0),p(1,ke,3,2,"ng-container",4)(2,xe,1,2,"MinusIcon",6),V()),e&2){let o=v();l(),t("ngIf",o.checked),l(),t("ngIf",o._indeterminate())}}function me(e,a){}function ge(e,a){e&1&&p(0,me,0,0,"ng-template")}var Ce=({dt:e})=>`
|
|
2
|
-
.p-checkbox {
|
|
3
|
-
position: relative;
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
user-select: none;
|
|
6
|
-
vertical-align: bottom;
|
|
7
|
-
width: ${e("checkbox.width")};
|
|
8
|
-
height: ${e("checkbox.height")};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.p-checkbox-input {
|
|
12
|
-
cursor: pointer;
|
|
13
|
-
appearance: none;
|
|
14
|
-
position: absolute;
|
|
15
|
-
top: 0;
|
|
16
|
-
left: 0;
|
|
17
|
-
width: 100%;
|
|
18
|
-
height: 100%;
|
|
19
|
-
padding: 0;
|
|
20
|
-
margin: 0;
|
|
21
|
-
opacity: 0;
|
|
22
|
-
z-index: 1;
|
|
23
|
-
outline: 0 none;
|
|
24
|
-
border: 1px solid transparent;
|
|
25
|
-
border-radius: ${e("checkbox.border.radius")};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.p-checkbox-box {
|
|
29
|
-
display: flex;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
align-items: center;
|
|
32
|
-
border-radius: ${e("checkbox.border.radius")};
|
|
33
|
-
border: 1px solid ${e("checkbox.border.color")};
|
|
34
|
-
background: ${e("checkbox.background")};
|
|
35
|
-
width: ${e("checkbox.width")};
|
|
36
|
-
height: ${e("checkbox.height")};
|
|
37
|
-
transition: background ${e("checkbox.transition.duration")}, color ${e("checkbox.transition.duration")}, border-color ${e("checkbox.transition.duration")}, box-shadow ${e("checkbox.transition.duration")}, outline-color ${e("checkbox.transition.duration")};
|
|
38
|
-
outline-color: transparent;
|
|
39
|
-
box-shadow: ${e("checkbox.shadow")};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.p-checkbox-icon {
|
|
43
|
-
transition-duration: ${e("checkbox.transition.duration")};
|
|
44
|
-
color: ${e("checkbox.icon.color")};
|
|
45
|
-
font-size: ${e("checkbox.icon.size")};
|
|
46
|
-
width: ${e("checkbox.icon.size")};
|
|
47
|
-
height: ${e("checkbox.icon.size")};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
|
|
51
|
-
border-color: ${e("checkbox.hover.border.color")};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.p-checkbox-checked .p-checkbox-box {
|
|
55
|
-
border-color: ${e("checkbox.checked.border.color")};
|
|
56
|
-
background: ${e("checkbox.checked.background")};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.p-checkbox-checked .p-checkbox-icon {
|
|
60
|
-
color: ${e("checkbox.icon.checked.color")};
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
|
|
64
|
-
background: ${e("checkbox.checked.hover.background")};
|
|
65
|
-
border-color: ${e("checkbox.checked.hover.border.color")};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-icon {
|
|
69
|
-
color: ${e("checkbox.icon.checked.hover.color")};
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.p-checkbox:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {
|
|
73
|
-
border-color: ${e("checkbox.focus.border.color")};
|
|
74
|
-
box-shadow: ${e("checkbox.focus.ring.shadow")};
|
|
75
|
-
outline: ${e("checkbox.focus.ring.width")} ${e("checkbox.focus.ring.style")} ${e("checkbox.focus.ring.color")};
|
|
76
|
-
outline-offset: ${e("checkbox.focus.ring.offset")};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {
|
|
80
|
-
border-color: ${e("checkbox.checked.focus.border.color")};
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
p-checkBox.ng-invalid.ng-dirty .p-checkbox-box,
|
|
84
|
-
p-check-box.ng-invalid.ng-dirty .p-checkbox-box,
|
|
85
|
-
p-checkbox.ng-invalid.ng-dirty .p-checkbox-box {
|
|
86
|
-
border-color: ${e("checkbox.invalid.border.color")};
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.p-checkbox.p-variant-filled .p-checkbox-box {
|
|
90
|
-
background: ${e("checkbox.filled.background")};
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.p-checkbox-checked.p-variant-filled .p-checkbox-box {
|
|
94
|
-
background: ${e("checkbox.checked.background")};
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.p-checkbox-checked.p-variant-filled:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
|
|
98
|
-
background: ${e("checkbox.checked.hover.background")};
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.p-checkbox.p-disabled {
|
|
102
|
-
opacity: 1;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.p-checkbox.p-disabled .p-checkbox-box {
|
|
106
|
-
background: ${e("checkbox.disabled.background")};
|
|
107
|
-
border-color: ${e("checkbox.checked.disabled.border.color")};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.p-checkbox.p-disabled .p-checkbox-box .p-checkbox-icon {
|
|
111
|
-
color: ${e("checkbox.icon.disabled.color")};
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.p-checkbox-sm,
|
|
115
|
-
.p-checkbox-sm .p-checkbox-box {
|
|
116
|
-
width: ${e("checkbox.sm.width")};
|
|
117
|
-
height: ${e("checkbox.sm.height")};
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.p-checkbox-sm .p-checkbox-icon {
|
|
121
|
-
font-size: ${e("checkbox.icon.sm.size")};
|
|
122
|
-
width: ${e("checkbox.icon.sm.size")};
|
|
123
|
-
height: ${e("checkbox.icon.sm.size")};
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.p-checkbox-lg,
|
|
127
|
-
.p-checkbox-lg .p-checkbox-box {
|
|
128
|
-
width: ${e("checkbox.lg.width")};
|
|
129
|
-
height: ${e("checkbox.lg.height")};
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.p-checkbox-lg .p-checkbox-icon {
|
|
133
|
-
font-size: ${e("checkbox.icon.lg.size")};
|
|
134
|
-
width: ${e("checkbox.icon.lg.size")};
|
|
135
|
-
height: ${e("checkbox.icon.lg.size")};
|
|
136
|
-
}
|
|
137
|
-
`,ye={root:({instance:e,props:a})=>["p-checkbox p-component",{"p-checkbox-checked":e.checked,"p-disabled":a.disabled,"p-invalid":a.invalid,"p-variant-filled":a.variant?a.variant==="filled":e.config.inputStyle==="filled"||e.config.inputVariant==="filled"}],box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},ae=(()=>{class e extends ee{name="checkbox";theme=Ce;classes=ye;static \u0275fac=(()=>{let o;return function(i){return(o||(o=u(e)))(i||e)}})();static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();var _e={provide:Z,useExisting:S(()=>re),multi:!0},re=(()=>{class e extends ie{value;name;disabled;binary;ariaLabelledBy;ariaLabel;tabindex;inputId;style;inputStyle;styleClass;inputClass;indeterminate=!1;size;formControl;checkboxIcon;readonly;required;autofocus;trueValue=!0;falseValue=!1;variant;onChange=new C;onFocus=new C;onBlur=new C;inputViewChild;get checked(){return this._indeterminate()?!1:this.binary?this.model===this.trueValue:Y(this.value,this.model)}get containerClass(){return{"p-checkbox p-component":!0,"p-checkbox-checked p-highlight":this.checked,"p-disabled":this.disabled,"p-variant-filled":this.variant==="filled"||this.config.inputStyle()==="filled"||this.config.inputVariant()==="filled","p-checkbox-sm p-inputfield-sm":this.size==="small","p-checkbox-lg p-inputfield-lg":this.size==="large"}}_indeterminate=L(void 0);checkboxIconTemplate;templates;_checkboxIconTemplate;model;onModelChange=()=>{};onModelTouched=()=>{};focused=!1;_componentStyle=E(ae);ngAfterContentInit(){this.templates.forEach(o=>{switch(o.getType()){case"icon":this._checkboxIconTemplate=o.template;break;case"checkboxicon":this._checkboxIconTemplate=o.template;break}})}ngOnChanges(o){super.ngOnChanges(o),o.indeterminate&&this._indeterminate.set(o.indeterminate.currentValue)}updateModel(o){let c,i=this.injector.get(J,null,{optional:!0,self:!0}),n=i&&!this.formControl?i.value:this.model;this.binary?(c=this._indeterminate()?this.trueValue:this.checked?this.falseValue:this.trueValue,this.model=c,this.onModelChange(c)):(this.checked||this._indeterminate()?c=n.filter(r=>!W(r,this.value)):c=n?[...n,this.value]:[this.value],this.onModelChange(c),this.model=c,this.formControl&&this.formControl.setValue(c)),this._indeterminate()&&this._indeterminate.set(!1),this.onChange.emit({checked:c,originalEvent:o})}handleChange(o){this.readonly||this.updateModel(o)}onInputFocus(o){this.focused=!0,this.onFocus.emit(o)}onInputBlur(o){this.focused=!1,this.onBlur.emit(o),this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(o){this.model=o,this.cd.markForCheck()}registerOnChange(o){this.onModelChange=o}registerOnTouched(o){this.onModelTouched=o}setDisabledState(o){setTimeout(()=>{this.disabled=o,this.cd.markForCheck()})}static \u0275fac=(()=>{let o;return function(i){return(o||(o=u(e)))(i||e)}})();static \u0275cmp=y({type:e,selectors:[["p-checkbox"],["p-checkBox"],["p-check-box"]],contentQueries:function(c,i,n){if(c&1&&(F(n,se,4),F(n,oe,4)),c&2){let r;I(r=$())&&(i.checkboxIconTemplate=r.first),I(r=$())&&(i.templates=r)}},viewQuery:function(c,i){if(c&1&&j(he,5),c&2){let n;I(n=$())&&(i.inputViewChild=n.first)}},inputs:{value:"value",name:"name",disabled:[2,"disabled","disabled",h],binary:[2,"binary","binary",h],ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:[2,"tabindex","tabindex",G],inputId:"inputId",style:"style",inputStyle:"inputStyle",styleClass:"styleClass",inputClass:"inputClass",indeterminate:[2,"indeterminate","indeterminate",h],size:"size",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:[2,"readonly","readonly",h],required:[2,"required","required",h],autofocus:[2,"autofocus","autofocus",h],trueValue:"trueValue",falseValue:"falseValue",variant:"variant"},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[A([_e,ae]),_,O],decls:6,vars:29,consts:[["input",""],[3,"ngClass"],["type","checkbox",3,"focus","blur","change","value","checked","disabled","readonly","ngClass"],[1,"p-checkbox-box"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass"]],template:function(c,i){if(c&1){let n=Q();x(0,"div",1)(1,"input",2,0),N("focus",function(b){return m(n),g(i.onInputFocus(b))})("blur",function(b){return m(n),g(i.onInputBlur(b))})("change",function(b){return m(n),g(i.handleChange(b))}),f(),x(3,"div",3),p(4,fe,3,2,"ng-container",4)(5,ge,1,0,null,5),f()()}c&2&&(M(i.style),k(i.styleClass),t("ngClass",i.containerClass),s("data-p-highlight",i.checked)("data-p-checked",i.checked)("data-p-disabled",i.disabled),l(),M(i.inputStyle),k(i.inputClass),t("value",i.value)("checked",i.checked)("disabled",i.disabled)("readonly",i.readonly)("ngClass",R(26,de)),s("id",i.inputId)("name",i.name)("tabindex",i.tabindex)("required",i.required?!0:null)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel),l(3),t("ngIf",!i.checkboxIconTemplate&&!i._checkboxIconTemplate),l(),t("ngTemplateOutlet",i.checkboxIconTemplate||i._checkboxIconTemplate)("ngTemplateOutletContext",H(27,be,i.checked)))},dependencies:[X,P,U,K,ne,te,w],encapsulation:2,changeDetection:0})}return e})(),He=(()=>{class e{static \u0275fac=function(c){return new(c||e)};static \u0275mod=q({type:e});static \u0275inj=z({imports:[re,w,w]})}return e})();export{te as a,re as b,He as c};
|