dealposbooks 1.9.1 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdpartylicenses.txt +790 -89
- package/assets/scss/components/_scafholdings.scss +21 -17
- package/assets/scss/layouts/_sidebar.scss +1 -1
- package/assets/scss/layouts/dark/_dark.scss +164 -153
- package/assets/scss/style.scss +52 -12
- package/assets/scss/variables/_variables.scss +5 -3
- package/assets/world.json +17808 -1
- package/chunk-2US5D2LY.js +1 -0
- package/{chunk-TL6UHPBU.js → chunk-33XUIS57.js} +1 -1
- package/{chunk-SJTXIIX5.js → chunk-353U23ZQ.js} +1 -1
- package/chunk-3B65XZ6E.js +1 -0
- package/{chunk-YT7EC5LI.js → chunk-3CEJ67I5.js} +1 -1
- package/chunk-3E2EKFPH.js +1 -0
- package/{chunk-ZBTGGL5M.js → chunk-3ENMEUVK.js} +3 -3
- package/chunk-3H5KBX4R.js +1 -0
- package/chunk-3XLREP6U.js +297 -0
- package/{chunk-VYTUB2DV.js → chunk-4CUA33JH.js} +1 -1
- package/chunk-4NSHHAXV.js +1 -0
- package/{chunk-AKZM2DMY.js → chunk-5AITWOQZ.js} +1 -1
- package/{chunk-GHZLR44M.js → chunk-5QVQY32E.js} +1 -1
- package/chunk-6DPW74DP.js +1 -0
- package/chunk-6NCHCAKY.js +300 -0
- package/{chunk-HBVENULS.js → chunk-7DRL5PZZ.js} +1 -1
- package/chunk-7G6KXHQB.js +1 -0
- package/chunk-7KQDKLO4.js +70 -0
- package/chunk-7U2775BI.js +1 -0
- package/{chunk-G7MS6UI4.js → chunk-7U2I35GP.js} +1 -1
- package/{chunk-NNH4DORM.js → chunk-A47VRZZB.js} +1 -1
- package/chunk-ACQX2T2H.js +59 -0
- package/chunk-AG7353CN.js +1 -0
- package/chunk-AI6YS6T2.js +1 -0
- package/{chunk-FNOMC2TM.js → chunk-ANMXAMBL.js} +1 -1
- package/chunk-ARSLNNKY.js +7 -0
- package/chunk-AT7II4DO.js +7 -0
- package/{chunk-35EULUGT.js → chunk-BCXNVGDH.js} +1 -1
- package/chunk-BJNN42CI.js +1 -0
- package/chunk-CSQ4MHL2.js +246 -0
- package/chunk-DG6ETDOW.js +1 -0
- package/{chunk-TBHL2OSG.js → chunk-DIX7J6JH.js} +1 -1
- package/chunk-DMVAXVYQ.js +1 -0
- package/{chunk-2ACAW72E.js → chunk-DNSQSWOS.js} +1 -1
- package/chunk-F3PEWQT7.js +1 -0
- package/chunk-FTVGAWDW.js +1 -0
- package/{chunk-GLURPAU2.js → chunk-FUCSF42O.js} +1 -1
- package/chunk-FXUC6M2U.js +1 -0
- package/chunk-G4XX7EU2.js +1 -0
- package/chunk-GCGWIESO.js +1 -0
- package/{chunk-MS3UTNX6.js → chunk-GY53MWXH.js} +5 -5
- package/{chunk-CMHZLZ4E.js → chunk-H4V6YZX2.js} +1 -1
- package/chunk-IHJLTHHQ.js +1 -0
- package/{chunk-QBJKUIXK.js → chunk-J6H3BBKP.js} +1 -1
- package/chunk-JG5HGOEX.js +47 -0
- package/{chunk-PATWAZNE.js → chunk-LFDCJISD.js} +1 -1
- package/chunk-LFGL4ACG.css +1 -0
- package/chunk-LNRTAR2V.js +1 -0
- package/chunk-LWKS2JEV.js +1 -0
- package/chunk-N2XLL6HJ.js +33 -0
- package/chunk-NM37SDQJ.js +1 -0
- package/chunk-NN6GSTBJ.js +1 -0
- package/chunk-NRULEUE7.js +1 -0
- package/{chunk-CEMQLY34.js → chunk-O2GA6PH7.js} +1 -1
- package/{chunk-R3FUAON5.js → chunk-OAD4GTH6.js} +1 -1
- package/chunk-OCIKQOWD.js +328 -0
- package/{chunk-DWTUKOMR.js → chunk-PJKHUCJX.js} +1 -1
- package/chunk-PRRU3DEZ.js +503 -0
- package/{chunk-F6SXKAYF.js → chunk-PZBZVQUY.js} +1 -1
- package/chunk-Q2IWISMY.js +1 -0
- package/{chunk-BLOB7I4P.js → chunk-Q5BXN24W.js} +3 -3
- package/chunk-QIXIZZPY.js +1 -0
- package/{chunk-EKJXB6MV.js → chunk-RANHETC3.js} +2 -2
- package/chunk-RQEEJGOE.js +1 -0
- package/{chunk-VVC3QQUI.js → chunk-SGXU6X3O.js} +1 -1
- package/chunk-TDDTBHQE.js +1 -0
- package/{chunk-HZ7WPLLK.js → chunk-TNWHAKS6.js} +1 -1
- package/{chunk-26X2X35R.js → chunk-TPGKCMVN.js} +1 -1
- package/{chunk-7T6O4KFO.js → chunk-TYETQJ2X.js} +2 -2
- package/{chunk-CEUNPX5D.js → chunk-U5LD55IP.js} +1 -1
- package/chunk-U6SRN7P3.js +1 -0
- package/{chunk-IF72X7RS.js → chunk-V3B32QFK.js} +1 -1
- package/chunk-VBCJCAMN.js +1 -0
- package/chunk-W76GKZZU.js +1 -0
- package/chunk-WAJWW3TC.js +960 -0
- package/{chunk-Q4Y2IGA6.js → chunk-WM3NKRKN.js} +1 -1
- package/{chunk-HZLUYZB3.js → chunk-X4EHZEMZ.js} +1 -1
- package/chunk-X5SV4H5B.js +1 -0
- package/chunk-YQFG5XE2.js +1 -0
- package/chunk-YWYF6P7O.js +1 -0
- package/chunk-YYUWLV5N.js +1 -0
- package/chunk-ZB6TB7JI.js +180 -0
- package/{chunk-UNNEEFI2.js → chunk-ZPTNYW2S.js} +1 -1
- package/{chunk-ON4N4CPO.js → chunk-ZUALJ33O.js} +1 -1
- package/index.html +2 -2
- package/main-L6WVDQUB.js +1 -0
- package/main-YYIZ54AR.css +1 -0
- package/package.json +1 -1
- package/styles-7FHABE27.css +1 -0
- package/chunk-2VF35PRV.js +0 -7
- package/chunk-66DZK3FQ.js +0 -1
- package/chunk-6VN6A5B5.js +0 -520
- package/chunk-ABZUNDNB.js +0 -1
- package/chunk-AER6WLW5.js +0 -1
- package/chunk-AVL6C3VX.js +0 -59
- package/chunk-BPFNN32N.js +0 -1
- package/chunk-C375SLTS.js +0 -246
- package/chunk-C4HBNN2L.js +0 -1
- package/chunk-DO2YIWC5.js +0 -1
- package/chunk-E2RBYY7Q.js +0 -1
- package/chunk-EFOOUCV3.js +0 -301
- package/chunk-EHULZLLD.js +0 -300
- package/chunk-EQDQRRRY.js +0 -1
- package/chunk-GFHANKXL.js +0 -1
- package/chunk-GLLO2YQR.js +0 -1
- package/chunk-HZ6QN5ZG.js +0 -7
- package/chunk-I2MAIV44.js +0 -1
- package/chunk-I7T4W6G2.js +0 -47
- package/chunk-JXI4NDYT.js +0 -1
- package/chunk-KHZ5L5UR.js +0 -1
- package/chunk-LAZCPZXL.js +0 -1
- package/chunk-MEKP6D5H.js +0 -1
- package/chunk-NASSFXXN.js +0 -1
- package/chunk-NGKRNFZC.js +0 -1
- package/chunk-NTJQFRIB.js +0 -180
- package/chunk-OCYR2RTP.js +0 -1
- package/chunk-OVJSBJBH.js +0 -197
- package/chunk-P63Q5GYL.js +0 -1
- package/chunk-PGIXMWYT.js +0 -1
- package/chunk-PUEKZGWI.js +0 -1
- package/chunk-R6MI2SDH.js +0 -1
- package/chunk-RA2IZVJ4.js +0 -1
- package/chunk-ROX6NFMK.js +0 -297
- package/chunk-S64TQVWK.js +0 -1
- package/chunk-S6CFVRO6.js +0 -1
- package/chunk-USCTAGKM.js +0 -1
- package/chunk-USO7UKRV.js +0 -821
- package/chunk-UZOBSLZX.js +0 -1
- package/chunk-XCWBG4PB.js +0 -1
- package/main-TCYAGQCN.js +0 -1
- package/styles-H3D5FBL2.css +0 -1
package/chunk-I7T4W6G2.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import{e as pe}from"./chunk-EHULZLLD.js";import{c as re}from"./chunk-AVL6C3VX.js";import{f as ce,g as se}from"./chunk-USO7UKRV.js";import{a as le}from"./chunk-26X2X35R.js";import{ca as ne,ja as oe,ka as ie,la as V,ta as ae}from"./chunk-35EULUGT.js";import{c as te,d as S,f as Q,g as B,h as M}from"./chunk-F2X3VGZZ.js";import{j as U,m as X,n as Y,o as Z,s as ee}from"./chunk-SJTXIIX5.js";import{Ib as f,Ic as J,Jb as i,Nb as C,Rc as F,Tb as d,Ub as m,Vb as T,Wb as x,Xb as I,Yb as P,Zb as w,ba as O,ca as $,cc as k,dc as s,ec as H,fb as a,fc as E,ha as A,hc as u,ic as N,jc as _,kc as g,mc as W,nc as K,pa as b,qa as y,sa as D,tb as j,ub as q,uc as L,wc as h,xb as R,xc as z,ya as v,yc as G,zb as c}from"./chunk-2VF35PRV.js";var ge=["header"],ue=["icons"],me=["content"],fe=["footer"],he=["headericons"],be=["contentWrapper"],ye=["*",[["p-header"]],[["p-footer"]]],Te=["*","p-header","p-footer"],ve=(e,o)=>({"p-panel p-component":!0,"p-panel-toggleable":e,"p-panel-expanded":o}),Ce=e=>({transitionParams:e,height:"0",opacity:"0"}),xe=e=>({value:"hidden",params:e}),Ie=e=>({transitionParams:e,height:"*",opacity:"1"}),Pe=e=>({value:"visible",params:e}),we=(e,o,t)=>({"p-panel-icons-start":e,"p-panel-icons-end":o,"p-panel-icons-center":t}),ke=e=>({$implicit:e});function Ee(e,o){if(e&1&&(d(0,"span",12),W(1),m()),e&2){let t=s(2);f("id",t.id+"_header"),a(),K(t._header)}}function Fe(e,o){e&1&&P(0)}function Se(e,o){}function Qe(e,o){e&1&&c(0,Se,0,0,"ng-template")}function Be(e,o){if(e&1&&T(0,"span"),e&2){let t=s(6);C(t.expandIcon)}}function Me(e,o){e&1&&T(0,"MinusIcon")}function Ve(e,o){if(e&1&&(x(0),c(1,Be,1,2,"span",16)(2,Me,1,0,"MinusIcon",14),I()),e&2){let t=s(5);a(),i("ngIf",t.expandIcon),a(),i("ngIf",!t.expandIcon)}}function De(e,o){if(e&1&&T(0,"span"),e&2){let t=s(6);C(t.collapseIcon)}}function Oe(e,o){e&1&&T(0,"PlusIcon")}function $e(e,o){if(e&1&&(x(0),c(1,De,1,2,"span",16)(2,Oe,1,0,"PlusIcon",14),I()),e&2){let t=s(5);a(),i("ngIf",t.collapseIcon),a(),i("ngIf",!t.collapseIcon)}}function Ae(e,o){if(e&1&&(x(0),c(1,Ve,3,2,"ng-container",14)(2,$e,3,2,"ng-container",14),I()),e&2){let t=s(4);a(),i("ngIf",!t.collapsed),a(),i("ngIf",t.collapsed)}}function je(e,o){}function qe(e,o){e&1&&c(0,je,0,0,"ng-template")}function Re(e,o){if(e&1&&c(0,Ae,3,2,"ng-container",14)(1,qe,1,0,null,15),e&2){let t=s(3);i("ngIf",!t.headerIconsTemplate&&!t._headerIconsTemplate&&!(t.toggleButtonProps!=null&&t.toggleButtonProps.icon)),a(),i("ngTemplateOutlet",t.headerIconsTemplate||t._headerIconsTemplate)("ngTemplateOutletContext",h(3,ke,t.collapsed))}}function He(e,o){if(e&1){let t=w();d(0,"p-button",13),k("click",function(n){b(t);let r=s(2);return y(r.onIconClick(n))})("keydown",function(n){b(t);let r=s(2);return y(r.onKeyDown(n))}),c(1,Re,2,5,"ng-template",null,1,J),m()}if(e&2){let t=s(2);i("text",!0)("rounded",!0)("buttonProps",t.toggleButtonProps),f("id",t.id+"_header")("aria-label",t.buttonAriaLabel)("aria-controls",t.id+"_content")("aria-expanded",!t.collapsed)}}function Ne(e,o){if(e&1){let t=w();d(0,"div",8),k("click",function(n){b(t);let r=s();return y(r.onHeaderClick(n))}),c(1,Ee,2,2,"span",9),E(2,1),c(3,Fe,1,0,"ng-container",6),d(4,"div",10),c(5,Qe,1,0,null,6)(6,He,3,7,"p-button",11),m()()}if(e&2){let t=s();f("id",t.id+"-titlebar"),a(),i("ngIf",t._header),a(2),i("ngTemplateOutlet",t.headerTemplate||t._headerTemplate),a(),i("ngClass",G(6,we,t.iconPos==="start",t.iconPos==="end",t.iconPos==="center")),a(),i("ngTemplateOutlet",t.iconTemplate||t._iconTemplate),a(),i("ngIf",t.toggleable)}}function We(e,o){e&1&&P(0)}function Ke(e,o){e&1&&P(0)}function Le(e,o){if(e&1&&(d(0,"div",17),E(1,2),c(2,Ke,1,0,"ng-container",6),m()),e&2){let t=s();a(2),i("ngTemplateOutlet",t.footerTemplate||t._footerTemplate)}}var ze=({dt:e})=>`
|
|
2
|
-
.p-panel {
|
|
3
|
-
border: 1px solid ${e("panel.border.color")};
|
|
4
|
-
border-radius: ${e("panel.border.radius")};
|
|
5
|
-
background: ${e("panel.background")};
|
|
6
|
-
color: ${e("panel.color")};
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.p-panel-header {
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
align-items: center;
|
|
13
|
-
padding: ${e("panel.header.padding")};
|
|
14
|
-
background: ${e("panel.header.background")};
|
|
15
|
-
color: ${e("panel.header.color")};
|
|
16
|
-
border-style: solid;
|
|
17
|
-
border-width: ${e("panel.header.border.width")};
|
|
18
|
-
border-color: ${e("panel.header.border.color")};
|
|
19
|
-
border-radius: ${e("panel.header.border.radius")};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.p-panel-toggleable .p-panel-header {
|
|
23
|
-
padding: ${e("panel.toggleable.header.padding")};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.p-panel-title {
|
|
27
|
-
line-height: 1;
|
|
28
|
-
font-weight: ${e("panel.title.font.weight")};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.p-panel-content {
|
|
32
|
-
padding: ${e("panel.content.padding")};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.p-panel-footer {
|
|
36
|
-
padding: ${e("panel.footer.padding")};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/* For PrimeNG */
|
|
40
|
-
.p-panel-toggleable.p-panel-expanded > .p-panel-content-container:not(.ng-animating) {
|
|
41
|
-
overflow: visible
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.p-panel-toggleable .p-panel-content-container {
|
|
45
|
-
overflow: hidden;
|
|
46
|
-
}
|
|
47
|
-
`,Ge={root:({props:e})=>["p-panel p-component",{"p-panel-toggleable":e.toggleable}],header:"p-panel-header",title:"p-panel-title",headerActions:"p-panel-header-actions",pcToggleButton:"p-panel-toggle-button",contentContainer:"p-panel-content-container",content:"p-panel-content",footer:"p-panel-footer"},de=(()=>{class e extends ae{name="panel";theme=ze;classes=Ge;static \u0275fac=(()=>{let t;return function(n){return(t||(t=D(e)))(n||e)}})();static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})();var Je=(()=>{class e extends le{toggleable;_header;collapsed;style;styleClass;iconPos="end";expandIcon;collapseIcon;showHeader=!0;toggler="icon";transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";toggleButtonProps;collapsedChange=new v;onBeforeToggle=new v;onAfterToggle=new v;footerFacet;animating;headerTemplate;iconTemplate;contentTemplate;footerTemplate;headerIconsTemplate;_headerTemplate;_iconTemplate;_contentTemplate;_footerTemplate;_headerIconsTemplate;contentWrapperViewChild;id=ne("pn_id_");get buttonAriaLabel(){return this._header}_componentStyle=A(de);onHeaderClick(t){this.toggler==="header"&&this.toggle(t)}onIconClick(t){this.toggler==="icon"&&this.toggle(t)}toggle(t){if(this.animating)return!1;this.animating=!0,this.onBeforeToggle.emit({originalEvent:t,collapsed:this.collapsed}),this.toggleable&&(this.collapsed?this.expand():this.collapse()),this.cd.markForCheck(),t.preventDefault()}expand(){this.collapsed=!1,this.collapsedChange.emit(this.collapsed),this.updateTabIndex()}collapse(){this.collapsed=!0,this.collapsedChange.emit(this.collapsed),this.updateTabIndex()}getBlockableElement(){return this.el.nativeElement.children[0]}updateTabIndex(){this.contentWrapperViewChild&&this.contentWrapperViewChild.nativeElement.querySelectorAll('input, button, select, a, textarea, [tabindex]:not([tabindex="-1"])').forEach(l=>{this.collapsed?l.setAttribute("tabindex","-1"):l.removeAttribute("tabindex")})}onKeyDown(t){(t.code==="Enter"||t.code==="Space")&&(this.toggle(t),t.preventDefault())}onToggleDone(t){this.animating=!1,this.onAfterToggle.emit({originalEvent:t,collapsed:this.collapsed})}templates;ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"header":this._headerTemplate=t.template;break;case"content":this._contentTemplate=t.template;break;case"footer":this._footerTemplate=t.template;break;case"icons":this._iconTemplate=t.template;break;case"headericons":this._headerIconsTemplate=t.template;break;default:this._contentTemplate=t.template;break}})}static \u0275fac=(()=>{let t;return function(n){return(t||(t=D(e)))(n||e)}})();static \u0275cmp=j({type:e,selectors:[["p-panel"]],contentQueries:function(l,n,r){if(l&1&&(u(r,oe,5),u(r,ge,4),u(r,ue,4),u(r,me,4),u(r,fe,4),u(r,he,4),u(r,ie,4)),l&2){let p;_(p=g())&&(n.footerFacet=p.first),_(p=g())&&(n.headerTemplate=p.first),_(p=g())&&(n.iconTemplate=p.first),_(p=g())&&(n.contentTemplate=p.first),_(p=g())&&(n.footerTemplate=p.first),_(p=g())&&(n.headerIconsTemplate=p.first),_(p=g())&&(n.templates=p)}},viewQuery:function(l,n){if(l&1&&N(be,5),l&2){let r;_(r=g())&&(n.contentWrapperViewChild=r.first)}},inputs:{toggleable:[2,"toggleable","toggleable",F],_header:[0,"header","_header"],collapsed:[2,"collapsed","collapsed",F],style:"style",styleClass:"styleClass",iconPos:"iconPos",expandIcon:"expandIcon",collapseIcon:"collapseIcon",showHeader:[2,"showHeader","showHeader",F],toggler:"toggler",transitionOptions:"transitionOptions",toggleButtonProps:"toggleButtonProps"},outputs:{collapsedChange:"collapsedChange",onBeforeToggle:"onBeforeToggle",onAfterToggle:"onAfterToggle"},features:[L([de]),R],ngContentSelectors:Te,decls:8,vars:25,consts:[["contentWrapper",""],["icon",""],[3,"ngClass","ngStyle"],["class","p-panel-header",3,"click",4,"ngIf"],["role","region",1,"p-panel-content-container",3,"id"],[1,"p-panel-content"],[4,"ngTemplateOutlet"],["class","p-panel-footer",4,"ngIf"],[1,"p-panel-header",3,"click"],["class","p-panel-title",4,"ngIf"],[1,"p-panel-icons",3,"ngClass"],["severity","secondary","type","button","role","button","styleClass","p-panel-header-icon p-panel-toggler p-link",3,"text","rounded","buttonProps","click","keydown",4,"ngIf"],[1,"p-panel-title"],["severity","secondary","type","button","role","button","styleClass","p-panel-header-icon p-panel-toggler p-link",3,"click","keydown","text","rounded","buttonProps"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class",4,"ngIf"],[1,"p-panel-footer"]],template:function(l,n){if(l&1){let r=w();H(ye),d(0,"div",2),c(1,Ne,7,10,"div",3),d(2,"div",4),k("@panelContent.done",function(_e){return b(r),y(n.onToggleDone(_e))}),d(3,"div",5,0),E(5),c(6,We,1,0,"ng-container",6),m(),c(7,Le,3,1,"div",7),m()()}l&2&&(C(n.styleClass),i("ngClass",z(14,ve,n.toggleable,!n.collapsed&&n.toggleable))("ngStyle",n.style),f("id",n.id)("data-pc-name","panel"),a(),i("ngIf",n.showHeader),a(),i("id",n.id+"_content")("@panelContent",n.collapsed?h(19,xe,h(17,Ce,n.animating?n.transitionOptions:"0ms")):h(23,Pe,h(21,Ie,n.animating?n.transitionOptions:"0ms"))),f("aria-labelledby",n.id+"_header")("aria-hidden",n.collapsed)("tabindex",n.collapsed?"-1":void 0),a(4),i("ngTemplateOutlet",n.contentTemplate||n._contentTemplate),a(),i("ngIf",n.footerFacet||n.footerTemplate||n._footerTemplate))},dependencies:[ee,U,X,Z,Y,pe,re,se,ce,V],encapsulation:2,data:{animation:[te("panelContent",[B("hidden",Q({height:"0"})),B("void",Q({height:"{{height}}"}),{params:{height:"0"}}),B("visible",Q({height:"*"})),M("visible <=> hidden",[S("{{transitionParams}}")]),M("void => hidden",S("{{transitionParams}}")),M("void => visible",S("{{transitionParams}}"))])]},changeDetection:0})}return e})(),bt=(()=>{class e{static \u0275fac=function(l){return new(l||e)};static \u0275mod=q({type:e});static \u0275inj=$({imports:[Je,V,V]})}return e})();export{Je as a,bt as b};
|
package/chunk-JXI4NDYT.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d}from"./chunk-F6SXKAYF.js";import"./chunk-26X2X35R.js";import"./chunk-35EULUGT.js";import"./chunk-SJTXIIX5.js";import"./chunk-2VF35PRV.js";import"./chunk-EQDQRRRY.js";export{c as ScrollPanel,b as ScrollPanelClasses,d as ScrollPanelModule,a as ScrollPanelStyle};
|
package/chunk-KHZ5L5UR.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk-I2MAIV44.js";import{g as C}from"./chunk-NTJQFRIB.js";import"./chunk-USO7UKRV.js";import"./chunk-CMHZLZ4E.js";import"./chunk-OVJSBJBH.js";import"./chunk-E2RBYY7Q.js";import"./chunk-26X2X35R.js";import"./chunk-35EULUGT.js";import{a as T}from"./chunk-CEUNPX5D.js";import"./chunk-F2X3VGZZ.js";import"./chunk-7T6O4KFO.js";import{s as v}from"./chunk-SJTXIIX5.js";import{Ic as a,Tb as i,Ub as o,Zb as g,cc as x,dc as d,ha as r,mc as c,pa as l,qa as p,tb as u,uc as _,zb as f}from"./chunk-2VF35PRV.js";import"./chunk-EQDQRRRY.js";function M(e,h){if(e&1){let t=g();i(0,"div",3)(1,"button",4),x("click",function(){l(t);let s=d();return p(s.onMigrate())}),c(2,"Migrate"),o()()}}function S(e,h){e&1&&(i(0,"div",5),c(1," reserved for future User Interface (UI) enhancements "),o())}var j=(()=>{class e{constructor(){this.migrateService=r(m),this.toastr=r(T)}onMigrate(){this.migrateService.migrateTaxAccount().subscribe(t=>{this.toastr.success(t.message,"Migration Successful")})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=u({type:e,selectors:[["app-tax-account"]],features:[_([m])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["pageTitle","Tax Account"],[1,"d-flex","gap-2"],[1,"btn","btn-primary",3,"click"],[1,"container","d-flex","justify-content-center","align-items-center",2,"height","100vh"]],template:function(n,s){n&1&&(i(0,"app-main-panel",2),f(1,M,3,0,"ng-template",null,0,a)(3,S,2,0,"ng-template",null,1,a),o())},dependencies:[C,v],encapsulation:2})}}return e})();export{j as TaxAccountComponent};
|
package/chunk-LAZCPZXL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Ge,b as Re,c as je}from"./chunk-DWTUKOMR.js";import{a as qe,b as Ue,c as We,d as ze,e as Ke,f as He}from"./chunk-CEMQLY34.js";import{a as $e,b as Le}from"./chunk-VYTUB2DV.js";import"./chunk-GHZLR44M.js";import{a as Ae}from"./chunk-MEKP6D5H.js";import{c as Te,d as Fe}from"./chunk-F6SXKAYF.js";import{a as Z,b as ee}from"./chunk-I7T4W6G2.js";import{b as Me,c as we,d as Be,e as Ne,f as Pe,g as ke,h as Oe,l as Ve}from"./chunk-MS3UTNX6.js";import{g as De,h as Je}from"./chunk-EHULZLLD.js";import"./chunk-AKZM2DMY.js";import"./chunk-AVL6C3VX.js";import{a as X,b as Y}from"./chunk-G7MS6UI4.js";import{g as P}from"./chunk-NTJQFRIB.js";import{f as G,g as R}from"./chunk-USO7UKRV.js";import"./chunk-CMHZLZ4E.js";import{t as Q,u as J}from"./chunk-OVJSBJBH.js";import{b as V,c as ae,e as D,f as L,i as q,k as xe,l as U,m as he,o as W,r as z,t as K,u as H}from"./chunk-E2RBYY7Q.js";import"./chunk-26X2X35R.js";import{ga as le,ka as Ie}from"./chunk-35EULUGT.js";import{a as ye,d as Ee}from"./chunk-CEUNPX5D.js";import"./chunk-F2X3VGZZ.js";import{p as be,w as Se}from"./chunk-7T6O4KFO.js";import{j as $,m as ve,r as Ce,s as N}from"./chunk-SJTXIIX5.js";import{Fa as E,Fc as oe,Gc as re,Ic as d,Jb as m,Mb as se,Ob as ne,Pb as I,Rb as T,Sb as F,Tb as i,Ub as n,Uc as j,Vb as p,Z as O,Zb as b,ba as ce,cc as S,dc as u,fb as a,ha as _,lb as ue,mc as o,nc as x,pa as v,qa as C,rc as de,sc as ge,tb as w,tc as fe,uc as _e,vc as ie,wc as B,zb as f}from"./chunk-2VF35PRV.js";import{a as A,b as M}from"./chunk-EQDQRRRY.js";var k=(()=>{class t{#e=_(Ee);fetchLoaderConfiguration(){return this.#e.get("","api/SetupLoader/Load")}updateAccountingIntegrationConfiguration(e){return this.#e.post(void 0,"/api/setup/SubmitConfig",e)}fetchOpeningBalanceFormConfiguration(){return this.#e.get("","/api/setup/OpeningBalance/Form")}fetchAPICredential(){return this.#e.get(void 0,"/api/AccountConfig")}updateAPICredential(e){return this.#e.put(void 0,"/api/AccountConfig",e)}formatJournal(e){return this.#e.post("","/api/setup/formatdata/clearjournal",{domain:e})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ye=t=>({"active-state":t}),Ze=t=>({"text-white":t});function lt(t,l){if(t&1){let e=b();i(0,"div",4)(1,"a",5),o(2,"Cancel"),n(),i(3,"p-button",6),S("click",function(){v(e);let c=u();return C(c.updateAccountingIntegration())}),n()()}}function mt(t,l){if(t&1&&(i(0,"p-tab",9),o(1),n()),t&2){let e=l.$implicit,r=l.$index;m("value",r),a(),x(e)}}function pt(t,l){if(t&1&&(i(0,"div",39)(1,"h3",40),o(2," End Of Shift "),n()()),t&2){let e=u(4);m("ngClass",B(2,Ye,e.form.controls.posIntegration.value.createJournalTriggers===0)),a(),m("ngClass",B(4,Ze,e.form.controls.posIntegration.value.createJournalTriggers===0))}}function ct(t,l){if(t&1&&(i(0,"div",39)(1,"h3",40),o(2," Every "),n()()),t&2){let e=u(4);m("ngClass",B(2,Ye,e.form.controls.posIntegration.value.createJournalTriggers===1)),a(),m("ngClass",B(4,Ze,e.form.controls.posIntegration.value.createJournalTriggers===1))}}function ut(t,l){if(t&1&&f(0,pt,3,6,"div",39)(1,ct,3,6,"div",39),t&2){let e,r=u().$implicit;ne((e=r.key)===0?0:e===1?1:-1)}}function st(t,l){t&1&&(i(0,"h4"),o(1,"Suitable for Cash Sales (Retail & FnB)"),n(),i(2,"p"),o(3," One Journal is generated for all transaction happening within a register open - close period "),n())}function dt(t,l){t&1&&(i(0,"h4"),o(1,"Every"),n(),i(2,"p"),o(3," Suitable for Credit Sales (Wholesale) Journal is generated for each transaction "),n())}function gt(t,l){if(t&1){let e=b();i(0,"div",13),p(1,"p-radiobutton",37),i(2,"p-card",38),S("click",function(){v(e);let c=u(2);return C(c.changeJournalType())}),f(3,ut,2,1,"ng-template",null,2,d)(5,st,4,0)(6,dt,4,0),n()()}if(t&2){let e,r=l.$implicit;a(),m("inputId",r.value)("value",r.key),a(4),ne((e=r.key)===0?5:e===1?6:-1)}}function ft(t,l){if(t&1&&(i(0,"div",31),p(1,"p-radiobutton",41),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),m("value",e.key)("inputId",e.value),a(),m("for",e.value),a(),x(e.value)}}function _t(t,l){if(t&1&&(i(0,"div",31),p(1,"p-radiobutton",43),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),m("value",e.key)("inputId",e.value),a(),m("for",e.value),a(),x(e.value)}}function vt(t,l){if(t&1&&(i(0,"div",31),p(1,"p-radiobutton",44),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),m("value",e.key)("inputId",e.value),a(),m("for",e.value),a(),x(e.value)}}function Ct(t,l){if(t&1&&(i(0,"div",31),p(1,"p-radiobutton",45),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),m("value",e.key)("inputId",e.value),a(),m("for",e.value),a(),x(e.value)}}function xt(t,l){if(t&1&&(i(0,"div",7)(1,"p-tabs",8)(2,"p-tablist"),T(3,mt,2,2,"p-tab",9,I),n(),i(5,"p-tabpanels")(6,"p-tabpanel",9)(7,"h4"),o(8,"Integration with POS"),n(),i(9,"p"),o(10,"Generate Journal"),n(),i(11,"div",10)(12,"div",11)(13,"div",12),T(14,gt,7,3,"div",13,I),n()()(),p(16,"hr"),i(17,"div",14)(18,"h3"),o(19,"Journal Generate"),n(),i(20,"p"),o(21,"Configure generate transaction"),n(),i(22,"div",12)(23,"div",15)(24,"div",16)(25,"div",15)(26,"div",17)(27,"label",18),o(28,"Generate EOD Expense Journal"),n(),p(29,"p-toggleswitch",19),n()(),p(30,"div",15),i(31,"div",15)(32,"div",17)(33,"label",18),o(34,"Generate Outlet Delivery Journal"),n(),p(35,"p-toggleswitch",20),n()(),p(36,"div",15),i(37,"div",15)(38,"div",17)(39,"label",18),o(40,"Generate Payment Discount Journal On Payment"),n(),p(41,"p-toggleswitch",21),n()()()()()()(),i(42,"p-tabpanel",22)(43,"div",23)(44,"h3"),o(45,"Accounting Numbering"),n(),i(46,"p"),o(47,"Configure numbering format and rule for your accounting"),n(),i(48,"div",12)(49,"div",15)(50,"div",16)(51,"div",15)(52,"div",17)(53,"label",24),o(54,"Digit"),n(),p(55,"p-inputnumber",25),n()(),p(56,"div",15),i(57,"div",15)(58,"div",17)(59,"label",26),o(60,"Seed"),n(),p(61,"p-inputnumber",27),n()(),i(62,"div",15)(63,"div",17)(64,"label",28),o(65,"Last Number"),n(),p(66,"p-inputnumber",29),n()(),i(67,"div",15)(68,"div",17)(69,"label",18),o(70,"Reset Every"),n(),i(71,"div",30),T(72,ft,4,4,"div",31,I),n()()(),i(74,"div",15)(75,"div",17)(76,"label",18),o(77,"Format"),n(),p(78,"p-select",32),n()()()()()()(),i(79,"p-tabpanel",33)(80,"div",23)(81,"h3"),o(82,"Report"),n(),i(83,"p"),o(84,"Configure report behavior"),n(),i(85,"div",12)(86,"div",15)(87,"div",16)(88,"div",15)(89,"div",17)(90,"label",18),o(91,"Audit Journal Transaction"),n(),i(92,"div",30),T(93,_t,4,4,"div",31,I),n()()(),p(95,"div",15),i(96,"div",15)(97,"div",17)(98,"label",18),o(99,"Accounting For Treatment"),n(),i(100,"div",30),T(101,vt,4,4,"div",31,I),n()()(),p(103,"div",15),i(104,"div",15)(105,"div",17)(106,"label",18),o(107,"Configure Report Access Control in COA"),n(),i(108,"div",30),T(109,Ct,4,4,"div",31,I),n()()()()()()()(),i(111,"p-tabpanel",34)(112,"div",23)(113,"h3"),o(114,"Note"),n(),i(115,"p"),o(116,"Configure show note"),n(),i(117,"div",12)(118,"div",15)(119,"div",16)(120,"div",15)(121,"div",17)(122,"label",18),o(123,"Note Required On Journal"),n(),p(124,"p-toggleswitch",35),n()(),p(125,"div",15),i(126,"div",15)(127,"div",17)(128,"label",18),o(129,"Trial Balance Footer Visible"),n(),p(130,"p-toggleswitch",36),n()(),p(131,"div",15),n()()()()()()()()),t&2){let e,r,c,s,y,g,h=u();a(),m("value",0)("formGroup",h.form),a(2),F(h.tabs()),a(3),m("value",0),a(8),F((e=h.accountingIntegration())==null||e.options==null?null:e.options.journalType),a(28),m("value",1),a(30),F((r=h.accountingIntegration())==null||r.options==null?null:r.options.resetPeriods),a(6),m("options",(c=h.accountingIntegration())==null||c.options==null?null:c.options.monthlyResetPeriodFormat),a(),m("value",2),a(14),F((s=h.accountingIntegration())==null||s.options==null?null:s.options.auditType),a(8),F((y=h.accountingIntegration())==null||y.options==null?null:y.options.generatePrepaidJournal),a(8),F((g=h.accountingIntegration())==null||g.options==null?null:g.options.entityAccess),a(2),m("value",3)}}var et=(()=>{class t{constructor(){this.accountingSetupService=_(k),this.fb=_(z).nonNullable,this.tabs=E(["Pos","Numbering","Report","Note"]),this.journalType=E(0),this.accountingIntegration=E(null)}ngOnInit(){this.initializeForm(),this.loadAccountingConfiguration()}initializeForm(){this.form=this.fb.group({posIntegration:this.createPosIntegrationGroup(),number:this.createNumberGroup(),report:this.createReportGroup(),journalGenerate:this.createJournalGenerateGroup(),note:this.createNoteGroup()})}createPosIntegrationGroup(){return this.fb.group({createJournalTriggers:this.fb.control(0)})}createNumberGroup(){return this.fb.group({seed:this.fb.control(""),digit:this.fb.control(""),resetEvery:this.fb.control(""),monthlyFormat:this.fb.control(""),lastNumber:this.fb.control(""),lastModified:this.fb.control("")})}createReportGroup(){return this.fb.group({accountingAuditType:this.fb.control(""),accountingEntityAccess:this.fb.control(""),generatePrepaidJournal:this.fb.control("")})}createJournalGenerateGroup(){return this.fb.group({eodExpenseJournal:this.fb.control(""),transferOrder:this.fb.control(""),paymentDiscount:this.fb.control("")})}createNoteGroup(){return this.fb.group({noteMandatory:this.fb.control(""),trialBalanceFooterVisible:this.fb.control("")})}changeJournalType(){let e=this.journalType()===0?1:0;this.journalType.set(e),this.accountingIntegration.update(r=>M(A({},r),{form:M(A({},r.form),{posIntegration:M(A({},r.form.posIntegration),{createJournalTriggers:e})})})),this.form.controls.posIntegration.patchValue({createJournalTriggers:e})}loadAccountingConfiguration(){this.accountingSetupService.fetchLoaderConfiguration().pipe(O(e=>{this.accountingIntegration.set(e);let r=e.form.posIntegration.createJournalTriggers;this.journalType.set(r),this.form.get("posIntegration.createJournalTriggers")?.setValue(r),this.form.patchValue(e.form)})).subscribe()}updateAccountingIntegration(){let e={form:this.form.getRawValue()};this.accountingSetupService.updateAccountingIntegrationConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=w({type:t,selectors:[["app-accounting-integration"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Accounting Integration"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"click"],[1,"overflow-y-auto"],[3,"value","formGroup"],[3,"value"],["formGroupName","posIntegration",1,"row"],[1,"col-8"],[1,"row"],[1,"col"],["formGroupName","journalGenerate",1,"px-3"],[1,"col-6"],[1,"row","row-gap-3"],[1,"d-flex","flex-column"],["for",""],["formControlName","eodExpenseJournal"],["formControlName","transferOrder"],["formControlName","paymentDiscount"],["formGroupName","number",3,"value"],[1,"px-3"],["for","digit"],["inputId","digit","formControlName","digit"],["for","seed"],["inputId","seed","formControlName","seed"],["for","lastNumber"],["inputId","lastNumber","formControlName","lastNumber"],[1,"d-flex","flex-column","gap-2"],[1,"d-flex","align-items-center","gap-2"],["formControlName","monthlyFormat","optionValue","key","optionLabel","value",3,"options"],["formGroupName","report",3,"value"],["formGroupName","note",3,"value"],["formControlName","noteMandatory"],["formControlName","trialBalanceFooterVisible"],["styleClass","d-none","name","createJournalTriggers","formControlName","createJournalTriggers",3,"inputId","value"],["styleClass","h-100",3,"click"],[1,"d-flex","justify-content-center","inactive-state","text-white","py-2",3,"ngClass"],[1,"m-0",3,"ngClass"],["name","resetEvery","formControlName","resetEvery",3,"value","inputId"],[1,"ml-2","m-0",3,"for"],["name","accountingAuditType","formControlName","accountingAuditType",3,"value","inputId"],["name","generatePrepaidJournal","formControlName","generatePrepaidJournal",3,"value","inputId"],["name","accountingEntityAccess","formControlName","accountingEntityAccess",3,"value","inputId"]],template:function(r,c){r&1&&(i(0,"app-main-panel",3),f(1,lt,4,0,"ng-template",null,0,d)(3,xt,132,7,"ng-template",null,1,d),n())},dependencies:[N,$,He,Ke,ze,We,qe,Ue,P,Y,X,ke,Pe,H,D,L,U,W,he,J,Je,De,Le,$e,Se,be,R,G,Ne,Be],styles:["[_nghost-%COMP%]{display:block}.inactive-state[_ngcontent-%COMP%]{background-color:#e5e5e5}.active-state[_ngcontent-%COMP%]{background-color:#5680e9}"],changeDetection:0})}}return t})();var ht=()=>({width:"100%",height:"calc(100vh - 300px)"}),bt=()=>[];function St(t,l){t&1&&(i(0,"div"),p(1,"p-button",5),n())}function yt(t,l){t&1&&(i(0,"tr")(1,"th"),o(2,"Account Name"),n(),i(3,"th",17),o(4,"Debit"),n(),i(5,"th",17),o(6,"Credit"),n()())}function Et(t,l){if(t&1){let e=b();i(0,"tr")(1,"td"),o(2),n(),i(3,"td")(4,"input",18),S("ngModelChange",function(c){let s=v(e).rowIndex,y=u(2).$index,g=u(2);return C(g.dfsfsd(c,y,s,"debitAmount"))}),n()(),i(5,"td")(6,"input",18),S("ngModelChange",function(c){let s=v(e).rowIndex,y=u(2).$index,g=u(2);return C(g.dfsfsd(c,y,s,"creditAmount"))}),n()()()}if(t&2){let e=l.$implicit;a(2),x(e.accountName),a(2),m("ngModel",e.debitAmount),a(2),m("ngModel",e.creditAmount)}}function It(t,l){if(t&1&&(i(0,"p-table",14),f(1,yt,7,0,"ng-template",15)(2,Et,7,3,"ng-template",16),n()),t&2){let e=u().$implicit;m("value",e.items)}}function Tt(t,l){if(t&1&&(i(0,"div",7)(1,"div",8)(2,"div",12)(3,"h4"),o(4),n()(),i(5,"div"),f(6,It,3,1,"p-table",13),n()()()),t&2){let e=l.$implicit;a(4),x(e.name),a(2),m("ngIf",e.items.length)}}function Ft(t,l){if(t&1&&(i(0,"tr")(1,"td")(2,"p",19),o(3,"Total"),n()(),i(4,"td",17)(5,"p",19),o(6),oe(7,"number"),n()(),i(8,"td",17)(9,"p",19),o(10),oe(11,"number"),n()()()),t&2){let e=u(2);a(6),x(re(7,2,e.subTotalDebit())),a(4),x(re(11,4,e.subTotalCredit()))}}function At(t,l){if(t&1&&(i(0,"p-card",6)(1,"div",7)(2,"div",8),p(3,"p-datepicker",9),n()()(),p(4,"br"),i(5,"p-card")(6,"p-scroll-panel")(7,"div",10),T(8,Tt,7,2,"div",7,I),n()(),i(10,"p-table",11),f(11,Ft,12,6,"ng-template",null,2,d),n()()),t&2){let e=u();a(3),m("ngModel",e.date()),a(3),se(ie(4,ht)),a(2),F(e.nonEmptyForms()),a(2),m("value",ie(5,bt))}}var tt=(()=>{class t{constructor(){this.accSetupService=_(k),this.openingBalanceForm=E(null),this.date=E(new Date),this.messageService=_(le),this.subTotalDebit=j(()=>this.openingBalanceForm()?this.openingBalanceForm().form.reduce((e,r)=>e+r.items.reduce((c,s)=>c+s.debitAmount,0),0):0),this.subTotalCredit=j(()=>this.openingBalanceForm()?this.openingBalanceForm().form.reduce((e,r)=>e+r.items.reduce((c,s)=>c+s.creditAmount,0),0):0),this.totalItemsCount=j(()=>this.openingBalanceForm()?this.openingBalanceForm().form.reduce((e,r)=>e+r.items.length,0):0),this.nonEmptyForms=j(()=>{let e=["Asset","Liability","Equity","Revenue","Expense"];return this.openingBalanceForm()?this.openingBalanceForm().form.filter(r=>r.items.length>0||e.includes(r.name)):[]})}ngOnInit(){this.loadFormData(),setInterval(()=>{this.subTotalCredit()!==this.subTotalDebit()&&this.messageService.add({severity:"warn",summary:"Mismatch Detected",detail:`The total Debit and Credit amounts are not balanced. Difference: ${this.subTotalCredit()-this.subTotalDebit()}`})},1e3)}loadFormData(){this.accSetupService.fetchOpeningBalanceFormConfiguration().pipe(Ae("response"),O(e=>{this.openingBalanceForm.set(e)})).subscribe()}dfsfsd(e,r,c,s){let y=this.openingBalanceForm().form.map((g,h)=>h===r?M(A({},g),{items:g.items.map((pe,rt)=>rt===c?M(A({},pe),{[s]:e}):pe)}):g).filter(g=>g!==null);this.openingBalanceForm.update(g=>M(A({},g),{form:y})),console.log(this.openingBalanceForm())}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=w({type:t,selectors:[["app-acc-opening-balance-form"]],features:[_e([le])],decls:6,vars:0,consts:[["actionButton",""],["content",""],["footer",""],["pageTitle","Opening Balance Form"],["preventOpenDuplicates",""],["label","Submit"],["header","Opening Balance Date"],[1,"row"],[1,"col"],[3,"ngModel"],[1,"d-flex","flex-column","gap-4"],[3,"value"],[1,"mb-2"],["dataKey","id","stripedRows","",3,"value",4,"ngIf"],["dataKey","id","stripedRows","",3,"value"],["pTemplate","header"],["pTemplate","body"],[2,"width","200px"],["type","number",1,"form-control",3,"ngModelChange","ngModel"],[1,"fw-semibold","fs-5"]],template:function(r,c){r&1&&(i(0,"app-main-panel",3),f(1,St,2,0,"ng-template",null,0,d)(3,At,13,6,"ng-template",null,1,d),n(),p(5,"p-toast",4))},dependencies:[P,Y,X,Ie,N,ve,Ce,we,Me,Ve,Oe,Fe,Te,K,V,xe,D,q,J,je,R,G],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var nt=t=>({"ng-invalid ng-dirty":t});function Bt(t,l){if(t&1){let e=b();i(0,"p-button",4),S("onClick",function(){v(e);let c=u();return C(c.saveCredentials())}),o(1,"Update"),n()}}function Nt(t,l){t&1&&(i(0,"div",8)(1,"h3",12),o(2,"Account"),n(),i(3,"small",13),o(4,"Configure Client ID and Client Secret"),n()())}function Dt(t,l){if(t&1&&(i(0,"div",5)(1,"p-panel"),f(2,Nt,5,0,"ng-template",null,2,d),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),o(8,"Client ID"),n(),p(9,"input",10),n()(),i(10,"div",7)(11,"div",8)(12,"label",9),o(13,"Client Secret"),n(),p(14,"input",11),n()()()()()),t&2){let e=u();a(4),m("formGroup",e.credentialForm),a(5),m("ngClass",B(3,nt,e.clientIDControl.invalid&&e.clientIDControl.dirty||e.clientIDControl.touched)),a(5),m("ngClass",B(5,nt,e.clientSecretControl.invalid&&e.clientSecretControl.dirty||e.clientSecretControl.touched))}}var it=(()=>{class t{constructor(e){this.fb=e,this.setupService=_(k)}ngOnInit(){this.initForm(),this.setupService.fetchAPICredential().pipe(O(e=>{this.credentialForm.patchValue({clientID:e.clientID||"",clientSecret:e.clientSecret||""})})).subscribe()}initForm(){this.credentialForm=this.fb.group({clientID:["",[ae.required]],clientSecret:["",[ae.required]]})}get clientIDControl(){return this.credentialForm.get("clientID")}get clientSecretControl(){return this.credentialForm.get("clientSecret")}saveCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Saving credentials:",e),this.setupService.updateAPICredential(e).subscribe()}static{this.\u0275fac=function(r){return new(r||t)(ue(z))}}static{this.\u0275cmp=w({type:t,selectors:[["app-api-credential"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","API Credential"],[3,"onClick"],[1,"d-flex","flex-column","row-gap-4"],[1,"row",3,"formGroup"],[1,"col-6"],[1,"d-flex","flex-column"],["for","outlet"],["type","text","pInputText","","formControlName","clientID",3,"ngClass"],["type","text","pInputText","","formControlName","clientSecret",3,"ngClass"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(r,c){r&1&&(i(0,"app-main-panel",3),f(1,Bt,2,0,"ng-template",null,0,d)(3,Dt,15,7,"ng-template",null,1,d),n())},dependencies:[N,$,H,V,D,L,U,W,J,Q,ee,Z,P,R,G],encapsulation:2})}}return t})();function Jt(t,l){if(t&1){let e=b();i(0,"button",4),S("click",function(){v(e);let c=u();return C(c.onFormatJournal())}),o(1," Format "),n()}}function Pt(t,l){t&1&&(i(0,"div",12)(1,"h3",13),o(2,"Journal Configuration"),n(),i(3,"small",14),o(4," Enter your account information to format journal entries "),n()())}function kt(t,l){if(t&1){let e=b();i(0,"div",5)(1,"p-panel"),f(2,Pt,5,0,"ng-template",null,2,d),i(4,"div",6)(5,"div",7)(6,"p-floatlabel",8)(7,"input",9),fe("ngModelChange",function(c){v(e);let s=u();return ge(s.subdomain,c)||(s.subdomain=c),C(c)}),n(),i(8,"label",10),o(9,"Subdomain"),n()(),i(10,"small",11),o(11,"Enter your account subdomain (e.g., mycompany.dealpos.net)"),n()()()()()}if(t&2){let e=u();a(7),de("ngModel",e.subdomain)}}var ot=(()=>{class t{constructor(){this.setupService=_(k),this.subdomain=E(""),this.toastrService=_(ye)}onFormatJournal(){if(!this.subdomain()){this.toastrService.error("Please enter a subdomain","Error");return}this.setupService.formatJournal(this.subdomain()).subscribe({next:e=>{this.toastrService.success(e.message,"Success")}})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=w({type:t,selectors:[["app-format-jurnal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Format Journal"],[1,"btn","btn-primary","rounded",3,"click"],[1,"d-flex","flex-column","row-gap-4"],[1,"row","mt-6"],[1,"col-12"],["variant","on"],["pInputText","","id","subdomain","autocomplete","off",1,"w-100",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"text-muted","fst-italic",2,"font-size","12px"],[1,"d-flex","flex-column"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(r,c){r&1&&(i(0,"app-main-panel",3),f(1,Jt,2,0,"ng-template",null,0,d)(3,kt,12,1,"ng-template",null,1,d),n())},dependencies:[N,K,V,D,q,J,Q,P,ee,Z,Re,Ge],encapsulation:2})}}return t})();var pi=[{path:"",redirectTo:"accounting-integration",pathMatch:"full"},{path:"",children:[{path:"accounting-integration",component:et},{path:"opening-balance-form",component:tt},{path:"api-crendetial",component:it},{path:"format-journal",component:ot}]}];export{pi as ACCOUNTING_SETUP_ROUTES};
|
package/chunk-MEKP6D5H.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Z as o}from"./chunk-2VF35PRV.js";function i(e="emit"){return r=>r.pipe(o(t=>console.log(`${e}`,t)))}export{i as a};
|
package/chunk-NASSFXXN.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as T}from"./chunk-FNOMC2TM.js";import{a as re,b as ie}from"./chunk-ON4N4CPO.js";import"./chunk-GHZLR44M.js";import{a as ce}from"./chunk-MEKP6D5H.js";import{a as Q,b as W}from"./chunk-UNNEEFI2.js";import{a as te,b as ne}from"./chunk-I7T4W6G2.js";import{h as X,j as Y,k as Z,l as ee}from"./chunk-MS3UTNX6.js";import"./chunk-EHULZLLD.js";import"./chunk-AKZM2DMY.js";import"./chunk-AVL6C3VX.js";import{g as L}from"./chunk-NTJQFRIB.js";import{f as $,g as q}from"./chunk-USO7UKRV.js";import{a as x,b as F,c as j,d as A,e as O,f as K}from"./chunk-CMHZLZ4E.js";import"./chunk-OVJSBJBH.js";import"./chunk-E2RBYY7Q.js";import"./chunk-26X2X35R.js";import"./chunk-35EULUGT.js";import"./chunk-CEUNPX5D.js";import"./chunk-F2X3VGZZ.js";import"./chunk-7T6O4KFO.js";import{m as D,q as U,r as G,s as z}from"./chunk-SJTXIIX5.js";import{Fc as b,Gc as y,Hc as J,Ic as g,Jb as f,Mb as V,Tb as o,Ub as r,Uc as S,Vb as w,X as P,Zb as k,c as I,cc as R,dc as s,fb as d,ha as C,mc as p,nc as u,pa as _,qa as h,qc as B,s as me,tb as M,uc as H,vc as N,zb as E}from"./chunk-2VF35PRV.js";import{a as l,b as m}from"./chunk-EQDQRRRY.js";var Ce={data:{data:[],totalCount:0},filter:{PageNumber:1,PageSize:20,Number:""}},ae=F(K(Ce),j(t=>({first:S(()=>(t.filter().PageNumber-1)*t.filter().PageSize+1),end:S(()=>Math.min(t.filter().PageNumber*t.filter().PageSize,t.data().totalCount)),hasCheckedRows:S(()=>t.data().data.some(c=>c.checked)),checkedInvoice:S(()=>t.data().data.filter(c=>c.checked).map(c=>c.id))})),O(t=>{let c=C(T);return{updateFilter(n){x(t,i=>m(l({},i),{filter:l(l({},i.filter),n)}))},onRowSelect(n){x(t,i=>{let a=i.data.data.map(v=>v.id===n.id?m(l({},v),{checked:!0}):v);return m(l({},i),{data:m(l({},i.data),{data:a})})})},onRowUnselect(n){x(t,i=>{let a=i.data.data.map(v=>v.id===n.id?m(l({},v),{checked:!1}):v);return m(l({},i),{data:m(l({},i.data),{data:a})})})},onHeaderCheckboxToggle(n){x(t,i=>{let a=i.data.data.map(v=>m(l({},v),{checked:n}));return m(l({},i),{data:m(l({},i.data),{data:a})})})},getCustomerInvoice:Q(I(P(n=>c.getJournalInvoice(n).pipe(me(i=>m(l({},i),{data:i.data.map(a=>m(l({},a),{checked:!1}))})),W({next:i=>{x(t,a=>m(l({},a),{data:i}))},error:i=>{console.error("Error fetching customer invoice:",i)}})))))}}),A(t=>({onInit:()=>{t.getCustomerInvoice(t.filter)}})));var be=()=>({height:"calc(100vh - 70px)"});function we(t,c){if(t&1){let e=k();o(0,"p-button",7),R("onClick",function(){_(e);let i=s(2);return h(i.onGenerateJournal())}),r()}}function ve(t,c){if(t&1&&E(0,we,1,0,"p-button",6),t&2){let e=s();f("ngIf",e.store.hasCheckedRows())}}function Ee(t,c){t&1&&(o(0,"tr")(1,"th",9),w(2,"p-tableHeaderCheckbox"),r(),o(3,"th"),p(4,"Outlet"),r(),o(5,"th"),p(6,"Number"),r(),o(7,"th"),p(8,"Customer"),r(),o(9,"th"),p(10,"Date"),r(),o(11,"th"),p(12,"Due"),r(),o(13,"th"),p(14,"Amount"),r(),o(15,"th"),p(16,"Payment"),r(),o(17,"th"),p(18,"Delivery"),r()())}function ke(t,c){if(t&1&&(o(0,"tr")(1,"td"),w(2,"p-tableCheckbox",10),r(),o(3,"td"),p(4),r(),o(5,"td"),p(6),r(),o(7,"td"),p(8),r(),o(9,"td"),p(10),b(11,"date"),r(),o(12,"td"),p(13),b(14,"date"),r(),o(15,"td"),p(16),b(17,"number"),r(),o(18,"td"),w(19,"p-chip",11),r(),o(20,"td"),w(21,"p-chip",11),r()()),t&2){let e=c.$implicit;d(2),f("value",e),d(2),u(e.outlet),d(2),u(e.number),d(2),u(e.customer),d(2),u(J(11,9,e.date,"d MMM y hh:mm")),d(3),u(J(14,12,e.due,"d MMM y")),d(3),u(y(17,15,e.amount)),d(3),f("label",e.payment),d(2),f("label",e.delivery)}}function Re(t,c){if(t&1&&p(0),t&2){let e=s(2);B(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function Te(t,c){if(t&1){let e=k();o(0,"p-panel")(1,"p-table",8),R("onPage",function(i){_(e);let a=s();return h(a.onPageChange(i))})("onRowSelect",function(i){_(e);let a=s();return h(a.onRowSelect(i))})("onRowUnselect",function(i){_(e);let a=s();return h(a.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){_(e);let a=s();return h(a.onHeaderCheckboxToggle(i))}),E(2,Ee,19,0,"ng-template",null,2,g)(4,ke,22,17,"ng-template",null,3,g)(6,Re,1,3,"ng-template",null,4,g),r()()}if(t&2){let e=s();V(N(9,be)),d(),f("scrollable",!0)("scrollHeight","calc(100vh - 150px)")("lazy",!0)("paginator",!0)("rows",e.store.filter().PageSize)("totalRecords",e.store.data().totalCount)("value",e.store.data().data)}}var fe=(()=>{class t{constructor(){this.store=C(ae),this.generateJournalService=C(T)}onSearch(e){this.store.updateFilter(m(l({},this.store.filter()),{Number:e}))}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(n=>{this.store.onRowUnselect(n)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}onPageChange(e){let n=e.first/e.rows;this.store.updateFilter(m(l({},this.store.filter()),{PageNumber:n+1}))}onGenerateJournal(){this.generateJournalService.generateJournalInvoice(this.store.checkedInvoice()).pipe(ce("Generate Journal Invoice")).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-customer-invoice"]],features:[H([ae])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["pageTitle","Customer Invoice",3,"search","isSearchableInput"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","scrollable","scrollHeight","lazy","paginator","rows","totalRecords","value"],[2,"width","4rem"],[3,"value"],[3,"label"]],template:function(n,i){if(n&1){let a=k();o(0,"app-main-panel",5),R("search",function(oe){return _(a),h(i.onSearch(oe))}),E(1,ve,1,1,"ng-template",null,0,g)(3,Te,8,10,"ng-template",null,1,g),r()}n&2&&f("isSearchableInput",!0)},dependencies:[L,ee,X,Y,Z,z,D,G,U,ie,re,ne,te,q,$],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Je={data:{data:[],totalCount:0},filter:{PageNumber:1,PageSize:20,Number:""}},le=F(K(Je),j(t=>({first:S(()=>(t.filter().PageNumber-1)*t.filter().PageSize+1),end:S(()=>Math.min(t.filter().PageNumber*t.filter().PageSize,t.data().totalCount)),hasCheckedRows:S(()=>t.data().data.some(c=>c.checked)),checkedSupplierBill:S(()=>t.data().data.filter(c=>c.checked).map(c=>c.id))})),O(t=>{let c=C(T);return{updateFilter(e){x(t,n=>m(l({},n),{filter:l(l({},n.filter),e)}))},onRowSelect(e){x(t,n=>{let i=n.data.data.map(a=>a.id===e.id?m(l({},a),{checked:!0}):a);return m(l({},n),{data:m(l({},n.data),{data:i})})})},onRowUnselect(e){x(t,n=>{let i=n.data.data.map(a=>a.id===e.id?m(l({},a),{checked:!1}):a);return m(l({},n),{data:m(l({},n.data),{data:i})})})},onHeaderCheckboxToggle(e){x(t,n=>{let i=n.data.data.map(a=>m(l({},a),{checked:e}));return m(l({},n),{data:m(l({},n.data),{data:i})})})},getJournalSupplierBill:Q(I(P(e=>c.getJournalSupplierBill(e).pipe(W({next:n=>{x(t,i=>m(l({},i),{data:n}))},error:n=>{console.error("Error fetching journal supplier bill:",n)}})))))}}),A(t=>({onInit:()=>{t.getJournalSupplierBill(t.filter)}})));var ye=()=>({height:"calc(100vh - 70px)"});function Ie(t,c){if(t&1){let e=k();o(0,"p-button",7),R("onClick",function(){_(e);let i=s(2);return h(i.onGenerateJournal())}),r()}}function Pe(t,c){if(t&1&&E(0,Ie,1,0,"p-button",6),t&2){let e=s();f("ngIf",e.store.hasCheckedRows())}}function Me(t,c){t&1&&(o(0,"tr")(1,"th",9),w(2,"p-tableHeaderCheckbox"),r(),o(3,"th"),p(4,"Outlet"),r(),o(5,"th"),p(6,"Number"),r(),o(7,"th"),p(8,"Customer"),r(),o(9,"th"),p(10,"Date"),r(),o(11,"th"),p(12,"Due"),r(),o(13,"th"),p(14,"Amount"),r(),o(15,"th"),p(16,"Payment"),r(),o(17,"th"),p(18,"Delivery"),r()())}function Ve(t,c){if(t&1&&(o(0,"tr")(1,"td"),w(2,"p-tableCheckbox",10),r(),o(3,"td"),p(4),r(),o(5,"td"),p(6),r(),o(7,"td"),p(8),r(),o(9,"td"),p(10),b(11,"date"),r(),o(12,"td"),p(13),b(14,"date"),r(),o(15,"td"),p(16),b(17,"number"),r(),o(18,"td"),w(19,"p-chip",11),r(),o(20,"td"),w(21,"p-chip",11),r()()),t&2){let e=c.$implicit;d(2),f("value",e),d(2),u(e.outlet),d(2),u(e.number),d(2),u(e.customer),d(2),u(J(11,9,e.date,"d MMM y hh:mm")),d(3),u(J(14,12,e.due,"d MMM y")),d(3),u(y(17,15,e.amount)),d(3),f("label",e.payment),d(2),f("label",e.delivery)}}function Be(t,c){if(t&1&&p(0),t&2){let e=s(2);B(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function He(t,c){if(t&1){let e=k();o(0,"p-panel")(1,"p-table",8),R("onPage",function(i){_(e);let a=s();return h(a.onPageChange(i))})("onRowSelect",function(i){_(e);let a=s();return h(a.onRowSelect(i))})("onRowUnselect",function(i){_(e);let a=s();return h(a.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){_(e);let a=s();return h(a.onHeaderCheckboxToggle(i))}),E(2,Me,19,0,"ng-template",null,2,g)(4,Ve,22,17,"ng-template",null,3,g)(6,Be,1,3,"ng-template",null,4,g),r()()}if(t&2){let e=s();V(N(9,ye)),d(),f("scrollHeight","calc(100vh - 150px)")("value",e.store.data().data)("scrollable",!0)("paginator",!0)("rows",e.store.filter().PageSize)("totalRecords",e.store.data().totalCount)("lazy",!0)}}var ge=(()=>{class t{constructor(){this.generateJournalService=C(T),this.store=C(le)}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(n=>{this.store.onRowUnselect(n)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}onGenerateJournal(){this.generateJournalService.generateJournalSupplierBill(this.store.checkedSupplierBill()).subscribe()}onSearch(e){this.store.updateFilter(m(l({},this.store.filter()),{Number:e}))}onPageChange(e){this.store.updateFilter(m(l({},this.store.filter()),{PageNumber:e.first/e.rows+1}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-journal-supplier-bill"]],features:[H([le])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["pageTitle","Supplier Bill",3,"search","isSearchableInput"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","scrollHeight","value","scrollable","paginator","rows","totalRecords","lazy"],[2,"width","4rem"],[3,"value"],[3,"label"]],template:function(n,i){if(n&1){let a=k();o(0,"app-main-panel",5),R("search",function(oe){return _(a),h(i.onSearch(oe))}),E(1,Pe,1,1,"ng-template",null,0,g)(3,He,8,10,"ng-template",null,1,g),r()}n&2&&f("isSearchableInput",!0)},dependencies:[L,ee,X,Y,Z,z,D,G,U,ie,re,ne,te,q,$],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ne={data:{data:[],totalCount:0},filter:{PageNumber:1,PageSize:20,Number:""}},pe=F(K(Ne),j(t=>({first:S(()=>(t.filter().PageNumber-1)*t.filter().PageSize+1),end:S(()=>Math.min(t.filter().PageNumber*t.filter().PageSize,t.data().totalCount)),hasCheckedRows:S(()=>t.data().data.some(c=>c.checked)),checkedShift:S(()=>t.data().data.filter(c=>c.checked).map(c=>c.id))})),O(t=>{let c=C(T);return{updateFilter(e){x(t,n=>m(l({},n),{filter:l(l({},n.filter),e)}))},onRowSelect(e){x(t,n=>{let i=n.data.data.map(a=>a.id===e.id?m(l({},a),{checked:!0}):a);return m(l({},n),{data:m(l({},n.data),{data:i})})})},onRowUnselect(e){x(t,n=>{let i=n.data.data.map(a=>a.id===e.id?m(l({},a),{checked:!1}):a);return m(l({},n),{data:m(l({},n.data),{data:i})})})},onHeaderCheckboxToggle(e){x(t,n=>{let i=n.data.data.map(a=>m(l({},a),{checked:e}));return m(l({},n),{data:m(l({},n.data),{data:i})})})},getJournalShift:Q(I(P(e=>c.getJournalShift(e).pipe(W(n=>x(t,i=>m(l({},i),{data:n})),n=>console.error("Error fetching journal shift:",n))))))}}),A(t=>({onInit:()=>{t.getJournalShift(t.filter)}})));var De=()=>({height:"calc(100vh - 70px)"});function Ue(t,c){if(t&1){let e=k();o(0,"p-button",7),R("onClick",function(){_(e);let i=s(2);return h(i.onGenerateJournal())}),r()}}function Ge(t,c){if(t&1&&E(0,Ue,1,0,"p-button",6),t&2){let e=s();f("ngIf",e.store.hasCheckedRows())}}function ze(t,c){t&1&&(o(0,"tr")(1,"th",9),w(2,"p-tableHeaderCheckbox"),r(),o(3,"th"),p(4,"Number"),r(),o(5,"th"),p(6,"Open"),r(),o(7,"th"),p(8,"Close"),r(),o(9,"th"),p(10,"Cashier"),r(),o(11,"th"),p(12,"Sales + Tax"),r(),o(13,"th"),p(14,"Invoices"),r(),o(15,"th"),p(16,"Outlet"),r(),o(17,"th"),p(18,"Register"),r(),o(19,"th"),p(20,"Visitors"),r()())}function Fe(t,c){if(t&1&&(o(0,"tr")(1,"td"),w(2,"p-tableCheckbox",10),r(),o(3,"td"),p(4),r(),o(5,"td"),p(6),b(7,"date"),r(),o(8,"td"),p(9),b(10,"date"),r(),o(11,"td"),p(12),r(),o(13,"td"),p(14),b(15,"number"),r(),o(16,"td"),p(17),b(18,"number"),r(),o(19,"td"),p(20),r(),o(21,"td"),p(22),r(),o(23,"td"),p(24),b(25,"number"),r()()),t&2){let e=c.$implicit;d(2),f("value",e),d(2),u(e.number),d(2),u(J(7,10,e.open,"dd MMM y hh:mm")),d(3),u(J(10,13,e.close,"dd MMM y hh:mm")),d(3),u(e.cashier),d(2),u(y(15,16,e.salesNTax)),d(3),u(y(18,18,e.totalInvoice)),d(3),u(e.outlet),d(2),u(e.register),d(2),u(y(25,20,e.visitors))}}function je(t,c){if(t&1&&p(0),t&2){let e=s(2);B(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function Ae(t,c){if(t&1){let e=k();o(0,"p-panel")(1,"p-table",8),R("onPage",function(i){_(e);let a=s();return h(a.onPageChange(i))})("onRowSelect",function(i){_(e);let a=s();return h(a.onRowSelect(i))})("onRowUnselect",function(i){_(e);let a=s();return h(a.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){_(e);let a=s();return h(a.onHeaderCheckboxToggle(i))}),E(2,ze,21,0,"ng-template",null,2,g)(4,Fe,26,22,"ng-template",null,3,g)(6,je,1,3,"ng-template",null,4,g),r()()}if(t&2){let e=s();V(N(9,De)),d(),f("scrollHeight","calc(100vh - 150px)")("scrollable",!0)("paginator",!0)("lazy",!0)("rows",e.store.filter().PageSize)("totalRecords",e.store.data().totalCount)("value",e.store.data().data)}}var xe=(()=>{class t{constructor(){this.generateJournalService=C(T),this.store=C(pe)}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(n=>{this.store.onRowUnselect(n)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}onGenerateJournal(){this.generateJournalService.generateJournalSupplierBill(this.store.checkedShift()).subscribe()}onSearch(e){this.store.updateFilter(m(l({},this.store.filter()),{Number:e}))}onPageChange(e){let n=e.first/e.rows;this.store.updateFilter(m(l({},this.store.filter()),{PageNumber:n+1}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-journal-shift"]],features:[H([pe])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["pageTitle","Shift Journal",3,"search","isSearchableInput"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","scrollHeight","scrollable","paginator","lazy","rows","totalRecords","value"],[2,"width","4rem"],[3,"value"]],template:function(n,i){if(n&1){let a=k();o(0,"app-main-panel",5),R("search",function(oe){return _(a),h(i.onSearch(oe))}),E(1,Ge,1,1,"ng-template",null,0,g)(3,Ae,8,10,"ng-template",null,1,g),r()}n&2&&f("isSearchableInput",!0)},dependencies:[L,ee,X,Y,Z,z,D,G,U,ie,ne,te,q,$],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var on=[{path:"invoice",component:fe},{path:"supplier-bill",component:ge},{path:"shift",component:xe},{path:"ar-collection",loadComponent:()=>import("./chunk-BPFNN32N.js").then(t=>t.ARJournalComponent)},{path:"ap-collection",loadComponent:()=>import("./chunk-P63Q5GYL.js").then(t=>t.ApJournalComponent)},{path:"adjustment",loadComponent:()=>import("./chunk-GLLO2YQR.js").then(t=>t.AdjustmentJournalComponent)}];export{on as generateJournalRoutes};
|
package/chunk-NGKRNFZC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk-I2MAIV44.js";import{g as h}from"./chunk-NTJQFRIB.js";import{g as x}from"./chunk-USO7UKRV.js";import"./chunk-CMHZLZ4E.js";import"./chunk-OVJSBJBH.js";import"./chunk-E2RBYY7Q.js";import"./chunk-26X2X35R.js";import"./chunk-35EULUGT.js";import{a as v}from"./chunk-CEUNPX5D.js";import"./chunk-F2X3VGZZ.js";import"./chunk-7T6O4KFO.js";import{s as y}from"./chunk-SJTXIIX5.js";import{Ic as c,Tb as o,Ub as i,Zb as u,cc as C,dc as d,ha as r,mc as a,pa as l,qa as p,tb as g,uc as _,zb as f}from"./chunk-2VF35PRV.js";import"./chunk-EQDQRRRY.js";function S(e,M){if(e&1){let t=u();o(0,"div",3)(1,"button",4),C("click",function(){l(t);let s=d();return p(s.onMigrateCoaCategory())}),a(2," Migrate "),i()()}}function b(e,M){e&1&&(o(0,"div",5),a(1," reserved for future User Interface (UI) enhancements "),i())}var F=(()=>{class e{constructor(){this.migrateService=r(m),this.toastr=r(v)}onMigrateCoaCategory(){this.migrateService.migrateCoaCategory().subscribe(t=>{this.toastr.success(t.message,"Migration Successful")})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=g({type:e,selectors:[["app-coa-configuration"]],features:[_([m])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["pageTitle","Chart Of Accounts Category Migration"],[1,"d-flex","gap-2"],[1,"btn","btn-primary",3,"click"],[1,"container","d-flex","justify-content-center","align-items-center",2,"height","100vh"]],template:function(n,s){n&1&&(o(0,"app-main-panel",2),f(1,S,3,0,"ng-template",null,0,c)(3,b,2,0,"ng-template",null,1,c),i())},dependencies:[h,y,x],encapsulation:2})}}return e})();export{F as CoaCategoryComponent};
|
package/chunk-NTJQFRIB.js
DELETED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import{a as mt,f as ue,g as xt,h as yt,i as vt}from"./chunk-USO7UKRV.js";import{h as Ct}from"./chunk-CMHZLZ4E.js";import{a as et,b as tt,i as ct,m as Fe,n as ge,p as _t,q as gt,r as ut,s as ht,t as ft,u as bt}from"./chunk-OVJSBJBH.js";import{b as qe,e as Ge,i as Ke,t as Ue}from"./chunk-E2RBYY7Q.js";import{a as _e}from"./chunk-26X2X35R.js";import{A as lt,C as ce,P as st,a as $,b as pe,c as Me,ca as L,d as de,e as Ee,f as De,k as Se,ka as rt,la as me,m as nt,ma as pt,o as ot,s as Ve,ta as dt,v as at}from"./chunk-35EULUGT.js";import{c as it,d as Te,f as we,h as Ie,i as ke,k as ze}from"./chunk-F2X3VGZZ.js";import{o as Je}from"./chunk-7T6O4KFO.js";import{a as Ze,j as ae,m as le,n as $e,o as se,s as re,v as Z}from"./chunk-SJTXIIX5.js";import{Ba as Ce,Ca as O,Fa as Be,Ib as T,Ic as R,Ja as Re,Jb as o,Mb as W,Nb as V,Ob as A,Rc as f,Sc as oe,Tb as p,Ub as d,Uc as Ye,Vb as y,Vc as je,Wb as H,Xb as B,Yb as w,Zb as b,ba as Le,ca as be,cc as u,db as Qe,dc as r,ec as K,fb as l,fc as N,ha as I,hc as v,ic as U,jc as C,kc as x,lc as J,mc as X,nc as Ae,oa as Oe,ob as xe,oc as ve,pa as _,qa as g,ra as G,rc as ee,sa as k,sc as te,tb as D,tc as ie,ub as ye,uc as ne,vb as We,vc as Y,wc as j,xb as S,xc as Ne,ya as E,yc as Xe,za as He,zb as m}from"./chunk-2VF35PRV.js";import{a as fe}from"./chunk-EQDQRRRY.js";var Tt=(()=>{class t extends ge{pathId;ngOnInit(){this.pathId="url(#"+L()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275cmp=D({type:t,selectors:[["WindowMaximizeIcon"]],features:[S],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(G(),p(0,"svg",0)(1,"g"),y(2,"path",1),d(),p(3,"defs")(4,"clipPath",2),y(5,"rect",3),d()()()),n&2&&(V(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),l(),T("clip-path",i.pathId),l(3),o("id",i.pathId))},encapsulation:2})}return t})();var wt=(()=>{class t extends ge{pathId;ngOnInit(){this.pathId="url(#"+L()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275cmp=D({type:t,selectors:[["WindowMinimizeIcon"]],features:[S],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(G(),p(0,"svg",0)(1,"g"),y(2,"path",1),d(),p(3,"defs")(4,"clipPath",2),y(5,"rect",3),d()()()),n&2&&(V(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),l(),T("clip-path",i.pathId),l(3),o("id",i.pathId))},encapsulation:2})}return t})();var It=(()=>{class t extends _e{pFocusTrapDisabled=!1;platformId=I(Re);document=I(Ze);firstHiddenFocusableElement;lastHiddenFocusableElement;ngOnInit(){super.ngOnInit(),Z(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}ngOnChanges(e){super.ngOnChanges(e),e.pFocusTrapDisabled&&Z(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){let e="0",n=i=>ot("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:e,role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:i?.bind(this)});this.firstHiddenFocusableElement=n(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=n(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.el.nativeElement.prepend(this.firstHiddenFocusableElement),this.el.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.lastHiddenFocusableElement||!this.el.nativeElement?.contains(i)?at(n.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;Ve(a)}onLastHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.firstHiddenFocusableElement||!this.el.nativeElement?.contains(i)?lt(n.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;Ve(a)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275dir=We({type:t,selectors:[["","pFocusTrap",""]],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",f]},features:[S,Oe]})}return t})();var St=["header"],kt=["content"],zt=["footer"],Vt=["closeicon"],Ft=["maximizeicon"],Pt=["minimizeicon"],Lt=["headless"],Ot=["titlebar"],Ht=["*",[["p-footer"]]],Bt=["*","p-footer"],Rt=(t,s,e)=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex","justify-content":t,"align-items":s,"pointer-events":e}),Qt=t=>({"p-dialog p-component":!0,"p-dialog-maximized":t}),Wt=()=>({display:"flex","flex-direction":"column","pointer-events":"auto"}),At=(t,s)=>({transform:t,transition:s}),Nt=t=>({value:"visible",params:t});function Xt(t,s){t&1&&w(0)}function Yt(t,s){if(t&1&&(H(0),m(1,Xt,1,0,"ng-container",11),B()),t&2){let e=r(3);l(),o("ngTemplateOutlet",e._headlessTemplate||e.headlessTemplate||e.headlessT)}}function jt(t,s){if(t&1){let e=b();p(0,"div",15),u("mousedown",function(i){_(e);let a=r(4);return g(a.initResize(i))}),d()}if(t&2){let e=r(4);o("ngClass",e.cx("resizeHandle"))}}function Zt(t,s){if(t&1&&(p(0,"span",21),X(1),d()),t&2){let e=r(5);o("id",e.ariaLabelledBy)("ngClass",e.cx("title")),l(),Ae(e.header)}}function $t(t,s){t&1&&w(0)}function qt(t,s){if(t&1&&y(0,"span",18),t&2){let e=r(6);o("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function Gt(t,s){t&1&&y(0,"WindowMaximizeIcon")}function Kt(t,s){t&1&&y(0,"WindowMinimizeIcon")}function Ut(t,s){if(t&1&&(H(0),m(1,Gt,1,0,"WindowMaximizeIcon",23)(2,Kt,1,0,"WindowMinimizeIcon",23),B()),t&2){let e=r(6);l(),o("ngIf",!e.maximized&&!e._maximizeiconTemplate&&!e.maximizeIconTemplate&&!e.maximizeIconT),l(),o("ngIf",e.maximized&&!e._minimizeiconTemplate&&!e.minimizeIconTemplate&&!e.minimizeIconT)}}function Jt(t,s){}function ei(t,s){t&1&&m(0,Jt,0,0,"ng-template")}function ti(t,s){if(t&1&&(H(0),m(1,ei,1,0,null,11),B()),t&2){let e=r(6);l(),o("ngTemplateOutlet",e._maximizeiconTemplate||e.maximizeIconTemplate||e.maximizeIconT)}}function ii(t,s){}function ni(t,s){t&1&&m(0,ii,0,0,"ng-template")}function oi(t,s){if(t&1&&(H(0),m(1,ni,1,0,null,11),B()),t&2){let e=r(6);l(),o("ngTemplateOutlet",e._minimizeiconTemplate||e.minimizeIconTemplate||e.minimizeIconT)}}function ai(t,s){if(t&1){let e=b();p(0,"p-button",22),u("onClick",function(){_(e);let i=r(5);return g(i.maximize())})("keydown.enter",function(){_(e);let i=r(5);return g(i.maximize())}),m(1,qt,1,1,"span",14)(2,Ut,3,2,"ng-container",23)(3,ti,2,1,"ng-container",23)(4,oi,2,1,"ng-container",23),d()}if(t&2){let e=r(5);o("styleClass",e.cx("pcMaximizeButton"))("tabindex",e.maximizable?"0":"-1")("ariaLabel",e.maximizeLabel)("buttonProps",e.maximizeButtonProps),l(),o("ngIf",e.maximizeIcon&&!e._maximizeiconTemplate&&!e._minimizeiconTemplate),l(),o("ngIf",!e.maximizeIcon&&!(e.maximizeButtonProps!=null&&e.maximizeButtonProps.icon)),l(),o("ngIf",!e.maximized),l(),o("ngIf",e.maximized)}}function li(t,s){if(t&1&&y(0,"span",18),t&2){let e=r(8);o("ngClass",e.closeIcon)}}function si(t,s){t&1&&y(0,"TimesIcon")}function ri(t,s){if(t&1&&(H(0),m(1,li,1,1,"span",14)(2,si,1,0,"TimesIcon",23),B()),t&2){let e=r(7);l(),o("ngIf",e.closeIcon),l(),o("ngIf",!e.closeIcon)}}function pi(t,s){}function di(t,s){t&1&&m(0,pi,0,0,"ng-template")}function ci(t,s){if(t&1&&(p(0,"span"),m(1,di,1,0,null,11),d()),t&2){let e=r(7);l(),o("ngTemplateOutlet",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function mi(t,s){if(t&1&&m(0,ri,3,2,"ng-container",23)(1,ci,2,1,"span",23),t&2){let e=r(6);o("ngIf",!e._closeiconTemplate&&!e.closeIconTemplate&&!e.closeIconT&&!(e.closeButtonProps!=null&&e.closeButtonProps.icon)),l(),o("ngIf",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function _i(t,s){if(t&1){let e=b();p(0,"p-button",24),u("onClick",function(i){_(e);let a=r(5);return g(a.close(i))})("keydown.enter",function(i){_(e);let a=r(5);return g(a.close(i))}),m(1,mi,2,2,"ng-template",null,4,R),d()}if(t&2){let e=r(5);o("styleClass",e.cx("pcCloseButton"))("ariaLabel",e.closeAriaLabel)("tabindex",e.closeTabindex)("buttonProps",e.closeButtonProps)}}function gi(t,s){if(t&1){let e=b();p(0,"div",16,3),u("mousedown",function(i){_(e);let a=r(4);return g(a.initDrag(i))}),m(2,Zt,2,3,"span",17)(3,$t,1,0,"ng-container",11),p(4,"div",18),m(5,ai,5,8,"p-button",19)(6,_i,3,4,"p-button",20),d()()}if(t&2){let e=r(4);o("ngClass",e.cx("header")),l(2),o("ngIf",!e._headerTemplate&&!e.headerTemplate&&!e.headerT),l(),o("ngTemplateOutlet",e._headerTemplate||e.headerTemplate||e.headerT),l(),o("ngClass",e.cx("headerActions")),l(),o("ngIf",e.maximizable),l(),o("ngIf",e.closable)}}function ui(t,s){t&1&&w(0)}function hi(t,s){t&1&&w(0)}function fi(t,s){if(t&1&&(p(0,"div",18,5),N(2,1),m(3,hi,1,0,"ng-container",11),d()),t&2){let e=r(4);o("ngClass",e.cx("footer")),l(3),o("ngTemplateOutlet",e._footerTemplate||e.footerTemplate||e.footerT)}}function bi(t,s){if(t&1&&(m(0,jt,1,1,"div",12)(1,gi,7,6,"div",13),p(2,"div",7,2),N(4),m(5,ui,1,0,"ng-container",11),d(),m(6,fi,4,2,"div",14)),t&2){let e=r(3);o("ngIf",e.resizable),l(),o("ngIf",e.showHeader),l(),V(e.contentStyleClass),o("ngClass",e.cx("content"))("ngStyle",e.contentStyle),T("data-pc-section","content"),l(3),o("ngTemplateOutlet",e._contentTemplate||e.contentTemplate||e.contentT),l(),o("ngIf",e._footerTemplate||e.footerTemplate||e.footerT)}}function Ci(t,s){if(t&1){let e=b();p(0,"div",9,0),u("@animation.start",function(i){_(e);let a=r(2);return g(a.onAnimationStart(i))})("@animation.done",function(i){_(e);let a=r(2);return g(a.onAnimationEnd(i))}),m(2,Yt,2,1,"ng-container",10)(3,bi,7,9,"ng-template",null,1,R),d()}if(t&2){let e=J(4),n=r(2);W(n.style),V(n.styleClass),o("ngClass",j(13,Qt,n.maximizable&&n.maximized))("ngStyle",Y(15,Wt))("pFocusTrapDisabled",n.focusTrap===!1)("@animation",j(19,Nt,Ne(16,At,n.transformOptions,n.transitionOptions))),T("role",n.role)("aria-labelledby",n.ariaLabelledBy)("aria-modal",!0),l(2),o("ngIf",n._headlessTemplate||n.headlessTemplate||n.headlessT)("ngIfElse",e)}}function xi(t,s){if(t&1&&(p(0,"div",7),m(1,Ci,5,21,"div",8),d()),t&2){let e=r();W(e.maskStyle),V(e.maskStyleClass),o("ngClass",e.maskClass)("ngStyle",Xe(7,Rt,e.position==="left"||e.position==="topleft"||e.position==="bottomleft"?"flex-start":e.position==="right"||e.position==="topright"||e.position==="bottomright"?"flex-end":"center",e.position==="top"||e.position==="topleft"||e.position==="topright"?"flex-start":e.position==="bottom"||e.position==="bottomleft"||e.position==="bottomright"?"flex-end":"center",e.modal?"auto":"none")),l(),o("ngIf",e.visible)}}var yi=({dt:t})=>`
|
|
2
|
-
.p-dialog {
|
|
3
|
-
max-height: 90%;
|
|
4
|
-
transform: scale(1);
|
|
5
|
-
border-radius: ${t("dialog.border.radius")};
|
|
6
|
-
box-shadow: ${t("dialog.shadow")};
|
|
7
|
-
background: ${t("dialog.background")};
|
|
8
|
-
border: 1px solid ${t("dialog.border.color")};
|
|
9
|
-
color: ${t("dialog.color")};
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
pointer-events: auto
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.p-dialog-content {
|
|
16
|
-
overflow-y: auto;
|
|
17
|
-
padding: ${t("dialog.content.padding")};
|
|
18
|
-
flex-grow: 1;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.p-dialog-header {
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: space-between;
|
|
25
|
-
flex-shrink: 0;
|
|
26
|
-
padding: ${t("dialog.header.padding")};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.p-dialog-title {
|
|
30
|
-
font-weight: ${t("dialog.title.font.weight")};
|
|
31
|
-
font-size: ${t("dialog.title.font.size")};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.p-dialog-footer {
|
|
35
|
-
flex-shrink: 0;
|
|
36
|
-
padding: ${t("dialog.footer.padding")};
|
|
37
|
-
display: flex;
|
|
38
|
-
justify-content: flex-end;
|
|
39
|
-
gap: ${t("dialog.footer.gap")};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.p-dialog-header-actions {
|
|
43
|
-
display: flex;
|
|
44
|
-
align-items: center;
|
|
45
|
-
gap: ${t("dialog.header.gap")};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.p-dialog-enter-active {
|
|
49
|
-
transition: all 150ms cubic-bezier(0, 0, 0.2, 1);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.p-dialog-leave-active {
|
|
53
|
-
transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.p-dialog-enter-from,
|
|
57
|
-
.p-dialog-leave-to {
|
|
58
|
-
opacity: 0;
|
|
59
|
-
transform: scale(0.7);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.p-dialog-top .p-dialog,
|
|
63
|
-
.p-dialog-bottom .p-dialog,
|
|
64
|
-
.p-dialog-left .p-dialog,
|
|
65
|
-
.p-dialog-right .p-dialog,
|
|
66
|
-
.p-dialog-topleft .p-dialog,
|
|
67
|
-
.p-dialog-topright .p-dialog,
|
|
68
|
-
.p-dialog-bottomleft .p-dialog,
|
|
69
|
-
.p-dialog-bottomright .p-dialog {
|
|
70
|
-
margin: 0.75rem;
|
|
71
|
-
transform: translate3d(0px, 0px, 0px);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.p-dialog-top .p-dialog-enter-active,
|
|
75
|
-
.p-dialog-top .p-dialog-leave-active,
|
|
76
|
-
.p-dialog-bottom .p-dialog-enter-active,
|
|
77
|
-
.p-dialog-bottom .p-dialog-leave-active,
|
|
78
|
-
.p-dialog-left .p-dialog-enter-active,
|
|
79
|
-
.p-dialog-left .p-dialog-leave-active,
|
|
80
|
-
.p-dialog-right .p-dialog-enter-active,
|
|
81
|
-
.p-dialog-right .p-dialog-leave-active,
|
|
82
|
-
.p-dialog-topleft .p-dialog-enter-active,
|
|
83
|
-
.p-dialog-topleft .p-dialog-leave-active,
|
|
84
|
-
.p-dialog-topright .p-dialog-enter-active,
|
|
85
|
-
.p-dialog-topright .p-dialog-leave-active,
|
|
86
|
-
.p-dialog-bottomleft .p-dialog-enter-active,
|
|
87
|
-
.p-dialog-bottomleft .p-dialog-leave-active,
|
|
88
|
-
.p-dialog-bottomright .p-dialog-enter-active,
|
|
89
|
-
.p-dialog-bottomright .p-dialog-leave-active {
|
|
90
|
-
transition: all 0.3s ease-out;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.p-dialog-top .p-dialog-enter-from,
|
|
94
|
-
.p-dialog-top .p-dialog-leave-to {
|
|
95
|
-
transform: translate3d(0px, -100%, 0px);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.p-dialog-bottom .p-dialog-enter-from,
|
|
99
|
-
.p-dialog-bottom .p-dialog-leave-to {
|
|
100
|
-
transform: translate3d(0px, 100%, 0px);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.p-dialog-left .p-dialog-enter-from,
|
|
104
|
-
.p-dialog-left .p-dialog-leave-to,
|
|
105
|
-
.p-dialog-topleft .p-dialog-enter-from,
|
|
106
|
-
.p-dialog-topleft .p-dialog-leave-to,
|
|
107
|
-
.p-dialog-bottomleft .p-dialog-enter-from,
|
|
108
|
-
.p-dialog-bottomleft .p-dialog-leave-to {
|
|
109
|
-
transform: translate3d(-100%, 0px, 0px);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.p-dialog-right .p-dialog-enter-from,
|
|
113
|
-
.p-dialog-right .p-dialog-leave-to,
|
|
114
|
-
.p-dialog-topright .p-dialog-enter-from,
|
|
115
|
-
.p-dialog-topright .p-dialog-leave-to,
|
|
116
|
-
.p-dialog-bottomright .p-dialog-enter-from,
|
|
117
|
-
.p-dialog-bottomright .p-dialog-leave-to {
|
|
118
|
-
transform: translate3d(100%, 0px, 0px);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.p-dialog-left:dir(rtl) .p-dialog-enter-from,
|
|
122
|
-
.p-dialog-left:dir(rtl) .p-dialog-leave-to,
|
|
123
|
-
.p-dialog-topleft:dir(rtl) .p-dialog-enter-from,
|
|
124
|
-
.p-dialog-topleft:dir(rtl) .p-dialog-leave-to,
|
|
125
|
-
.p-dialog-bottomleft:dir(rtl) .p-dialog-enter-from,
|
|
126
|
-
.p-dialog-bottomleft:dir(rtl) .p-dialog-leave-to {
|
|
127
|
-
transform: translate3d(100%, 0px, 0px);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.p-dialog-right:dir(rtl) .p-dialog-enter-from,
|
|
131
|
-
.p-dialog-right:dir(rtl) .p-dialog-leave-to,
|
|
132
|
-
.p-dialog-topright:dir(rtl) .p-dialog-enter-from,
|
|
133
|
-
.p-dialog-topright:dir(rtl) .p-dialog-leave-to,
|
|
134
|
-
.p-dialog-bottomright:dir(rtl) .p-dialog-enter-from,
|
|
135
|
-
.p-dialog-bottomright:dir(rtl) .p-dialog-leave-to {
|
|
136
|
-
transform: translate3d(-100%, 0px, 0px);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.p-dialog-maximized {
|
|
140
|
-
width: 100vw !important;
|
|
141
|
-
height: 100vh !important;
|
|
142
|
-
top: 0px !important;
|
|
143
|
-
left: 0px !important;
|
|
144
|
-
max-height: 100%;
|
|
145
|
-
height: 100%;
|
|
146
|
-
border-radius: 0;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.p-dialog-maximized .p-dialog-content {
|
|
150
|
-
flex-grow: 1;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.p-overlay-mask:dir(rtl) {
|
|
154
|
-
flex-direction: row-reverse;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/* For PrimeNG */
|
|
158
|
-
|
|
159
|
-
.p-dialog .p-resizable-handle {
|
|
160
|
-
position: absolute;
|
|
161
|
-
font-size: 0.1px;
|
|
162
|
-
display: block;
|
|
163
|
-
cursor: se-resize;
|
|
164
|
-
width: 12px;
|
|
165
|
-
height: 12px;
|
|
166
|
-
right: 1px;
|
|
167
|
-
bottom: 1px;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.p-confirm-dialog .p-dialog-content {
|
|
171
|
-
display: flex;
|
|
172
|
-
align-items: center;
|
|
173
|
-
}
|
|
174
|
-
`,vi={mask:({instance:t})=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",justifyContent:t.position==="left"||t.position==="topleft"||t.position==="bottomleft"?"flex-start":t.position==="right"||t.position==="topright"||t.position==="bottomright"?"flex-end":"center",alignItems:t.position==="top"||t.position==="topleft"||t.position==="topright"?"flex-start":t.position==="bottom"||t.position==="bottomleft"||t.position==="bottomright"?"flex-end":"center",pointerEvents:t.modal?"auto":"none"}),root:{display:"flex",flexDirection:"column",pointerEvents:"auto"}},Ti={mask:({instance:t})=>{let e=["left","right","top","topleft","topright","bottom","bottomleft","bottomright"].find(n=>n===t.position);return{"p-dialog-mask":!0,"p-overlay-mask p-overlay-mask-enter":t.modal,[`p-dialog-${e}`]:e}},root:({instance:t})=>({"p-dialog p-component":!0,"p-dialog-maximized":t.maximizable&&t.maximized}),header:"p-dialog-header",title:"p-dialog-title",resizeHandle:"p-resizable-handle",headerActions:"p-dialog-header-actions",pcMaximizeButton:"p-dialog-maximize-button",pcCloseButton:"p-dialog-close-button",content:"p-dialog-content",footer:"p-dialog-footer"},Mt=(()=>{class t extends dt{name="dialog";theme=yi;classes=Ti;inlineStyles=vi;static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275prov=Le({token:t,factory:t.\u0275fac})}return t})();var wi=ke([we({transform:"{{transform}}",opacity:0}),Te("{{transition}}")]),Ii=ke([Te("{{transition}}",we({transform:"{{transform}}",opacity:0}))]),Pe=(()=>{class t extends _e{header;draggable=!0;resizable=!0;get positionLeft(){return 0}set positionLeft(e){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(e){console.log("positionTop property is deprecated.")}contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;get responsive(){return!1}set responsive(e){console.log("Responsive property is deprecated.")}appendTo;breakpoints;styleClass;maskStyleClass;maskStyle;showHeader=!0;get breakpoint(){return 649}set breakpoint(e){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";closeIcon;closeAriaLabel;closeTabindex="0";minimizeIcon;maximizeIcon;closeButtonProps={severity:"secondary",text:!0,rounded:!0};maximizeButtonProps={severity:"secondary",text:!0,rounded:!0};get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(e){e&&(this._style=fe({},e),this.originalStyle=e)}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)";break}}role="dialog";onShow=new E;onHide=new E;visibleChange=new E;onResizeInit=new E;onResizeEnd=new E;onDragEnd=new E;onMaximize=new E;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;closeIconTemplate;maximizeIconTemplate;minimizeIconTemplate;headlessTemplate;_headerTemplate;_contentTemplate;_footerTemplate;_closeiconTemplate;_maximizeiconTemplate;_minimizeiconTemplate;_headlessTemplate;_visible=!1;maskVisible;container;wrapper;dragging;ariaLabelledBy=this.getAriaLabelledBy();documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=L("pn_id_");_style={};_position="center";originalStyle;transformOptions="scale(0.7)";styleElement;window;_componentStyle=I(Mt);headerT;contentT;footerT;closeIconT;maximizeIconT;minimizeIconT;headlessT;get maximizeLabel(){return this.config.getTranslation(pt.ARIA).maximizeLabel}zone=I(He);get maskClass(){let n=["left","right","top","topleft","topright","bottom","bottomleft","bottomright"].find(i=>i===this.position);return{"p-dialog-mask":!0,"p-overlay-mask p-overlay-mask-enter":this.modal||this.dismissableMask,[`p-dialog-${n}`]:n}}ngOnInit(){super.ngOnInit(),this.breakpoints&&this.createStyle()}templates;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerT=e.template;break;case"content":this.contentT=e.template;break;case"footer":this.footerT=e.template;break;case"closeicon":this.closeIconT=e.template;break;case"maximizeicon":this.maximizeIconT=e.template;break;case"minimizeicon":this.minimizeIconT=e.template;break;case"headless":this.headlessT=e.template;break;default:this.contentT=e.template;break}})}getAriaLabelledBy(){return this.header!==null?L("pn_id_")+"_header":null}parseDurationToMilliseconds(e){let n=/([\d\.]+)(ms|s)\b/g,i=0,a;for(;(a=n.exec(e))!==null;){let c=parseFloat(a[1]),h=a[2];h==="ms"?i+=c:h==="s"&&(i+=c*1e3)}if(i!==0)return i}_focus(e){if(e){let n=this.parseDurationToMilliseconds(this.transitionOptions),i=ct.getFocusableElements(e);if(i&&i.length>0)return this.zone.runOutsideAngular(()=>{setTimeout(()=>i[0].focus(),n||5)}),!0}return!1}focus(e){let n=this._focus(e);n||(n=this._focus(this.footerViewChild?.nativeElement),n||(n=this._focus(this.headerViewChild?.nativeElement),n||this._focus(this.contentViewChild?.nativeElement)))}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&Me()}disableModality(){if(this.wrapper){this.dismissableMask&&this.unbindMaskClickListener();let e=document.querySelectorAll(".p-dialog-mask-scrollblocker");this.modal&&e&&e.length==1&&Ee(),this.cd.destroyed||this.cd.detectChanges()}}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?Me():Ee()),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(Fe.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(Z(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let n in this.breakpoints)e+=`
|
|
175
|
-
@media screen and (max-width: ${n}) {
|
|
176
|
-
.p-dialog[${this.id}]:not(.p-dialog-maximized) {
|
|
177
|
-
width: ${this.breakpoints[n]} !important;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
`;this.renderer.setProperty(this.styleElement,"innerHTML",e),st(this.styleElement,"nonce",this.config?.csp()?.nonce)}}initDrag(e){$(e.target,"p-dialog-maximize-icon")||$(e.target,"p-dialog-header-close-icon")||$(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",pe(this.document.body,"p-unselectable-text"))}onDrag(e){if(this.dragging){let n=Se(this.container),i=ce(this.container),a=e.pageX-this.lastPageX,c=e.pageY-this.lastPageY,h=this.container.getBoundingClientRect(),F=getComputedStyle(this.container),P=parseFloat(F.marginLeft),q=parseFloat(F.marginTop),z=h.left+a-P,M=h.top+c-q,Q=De();this.container.style.position="fixed",this.keepInViewport?(z>=this.minX&&z+n<Q.width&&(this._style.left=`${z}px`,this.lastPageX=e.pageX,this.container.style.left=`${z}px`),M>=this.minY&&M+i<Q.height&&(this._style.top=`${M}px`,this.lastPageY=e.pageY,this.container.style.top=`${M}px`)):(this.lastPageX=e.pageX,this.container.style.left=`${z}px`,this.lastPageY=e.pageY,this.container.style.top=`${M}px`)}}endDrag(e){this.dragging&&(this.dragging=!1,de(this.document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,pe(this.document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let n=e.pageX-this.lastPageX,i=e.pageY-this.lastPageY,a=Se(this.container),c=ce(this.container),h=ce(this.contentViewChild?.nativeElement),F=a+n,P=c+i,q=this.container.style.minWidth,z=this.container.style.minHeight,M=this.container.getBoundingClientRect(),Q=De();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(F+=n,P+=i),(!q||F>parseInt(q))&&M.left+F<Q.width&&(this._style.width=F+"px",this.container.style.width=this._style.width),(!z||P>parseInt(z))&&M.top+P<Q.height&&(this.contentViewChild.nativeElement.style.height=h+P-c+"px",this._style.height&&(this._style.height=P+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,de(this.document.body,"p-unselectable-text"),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular(()=>{this.documentDragListener=this.renderer.listen(this.document.defaultView,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.document.defaultView,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.document.defaultView,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.document.defaultView,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(e,"keydown",n=>{n.key=="Escape"&&this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&(this.appendTo==="body"?this.renderer.appendChild(this.document.body,this.wrapper):nt(this.appendTo,this.wrapper))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container?.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container?.setAttribute(this.id,""),this.modal&&this.enableModality(),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&pe(this.wrapper,"p-overlay-mask-leave");break}}onAnimationEnd(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck(),this.maskVisible!==this.visible&&(this.maskVisible=this.visible);break;case"visible":this.onShow.emit({});break}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(this.document.body.style.removeProperty("--scrollbar;-width"),this.maximized=!1),this.modal&&this.disableModality(),$(this.document.body,"p-overflow-hidden")&&de(this.document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&Fe.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?fe({},this.originalStyle):{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle(),super.ngOnDestroy()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275cmp=D({type:t,selectors:[["p-dialog"]],contentQueries:function(n,i,a){if(n&1&&(v(a,St,4),v(a,kt,4),v(a,zt,4),v(a,Vt,4),v(a,Ft,4),v(a,Pt,4),v(a,Lt,4),v(a,rt,4)),n&2){let c;C(c=x())&&(i._headerTemplate=c.first),C(c=x())&&(i._contentTemplate=c.first),C(c=x())&&(i._footerTemplate=c.first),C(c=x())&&(i._closeiconTemplate=c.first),C(c=x())&&(i._maximizeiconTemplate=c.first),C(c=x())&&(i._minimizeiconTemplate=c.first),C(c=x())&&(i._headlessTemplate=c.first),C(c=x())&&(i.templates=c)}},viewQuery:function(n,i){if(n&1&&(U(Ot,5),U(kt,5),U(zt,5)),n&2){let a;C(a=x())&&(i.headerViewChild=a.first),C(a=x())&&(i.contentViewChild=a.first),C(a=x())&&(i.footerViewChild=a.first)}},inputs:{header:"header",draggable:[2,"draggable","draggable",f],resizable:[2,"resizable","resizable",f],positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:[2,"modal","modal",f],closeOnEscape:[2,"closeOnEscape","closeOnEscape",f],dismissableMask:[2,"dismissableMask","dismissableMask",f],rtl:[2,"rtl","rtl",f],closable:[2,"closable","closable",f],responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",maskStyle:"maskStyle",showHeader:[2,"showHeader","showHeader",f],breakpoint:"breakpoint",blockScroll:[2,"blockScroll","blockScroll",f],autoZIndex:[2,"autoZIndex","autoZIndex",f],baseZIndex:[2,"baseZIndex","baseZIndex",oe],minX:[2,"minX","minX",oe],minY:[2,"minY","minY",oe],focusOnShow:[2,"focusOnShow","focusOnShow",f],maximizable:[2,"maximizable","maximizable",f],keepInViewport:[2,"keepInViewport","keepInViewport",f],focusTrap:[2,"focusTrap","focusTrap",f],transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",closeButtonProps:"closeButtonProps",maximizeButtonProps:"maximizeButtonProps",visible:"visible",style:"style",position:"position",role:"role",headerTemplate:[0,"content","headerTemplate"],contentTemplate:"contentTemplate",footerTemplate:"footerTemplate",closeIconTemplate:"closeIconTemplate",maximizeIconTemplate:"maximizeIconTemplate",minimizeIconTemplate:"minimizeIconTemplate",headlessTemplate:"headlessTemplate"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},features:[ne([Mt]),S],ngContentSelectors:Bt,decls:1,vars:1,consts:[["container",""],["notHeadless",""],["content",""],["titlebar",""],["icon",""],["footer",""],[3,"ngClass","class","ngStyle","style",4,"ngIf"],[3,"ngClass","ngStyle"],["pFocusTrap","",3,"class","ngClass","ngStyle","style","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","",3,"ngClass","ngStyle","pFocusTrapDisabled"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["style","z-index: 90;",3,"ngClass","mousedown",4,"ngIf"],[3,"ngClass","mousedown",4,"ngIf"],[3,"ngClass",4,"ngIf"],[2,"z-index","90",3,"mousedown","ngClass"],[3,"mousedown","ngClass"],[3,"id","ngClass",4,"ngIf"],[3,"ngClass"],[3,"styleClass","tabindex","ariaLabel","buttonProps","onClick","keydown.enter",4,"ngIf"],[3,"styleClass","ariaLabel","tabindex","buttonProps","onClick","keydown.enter",4,"ngIf"],[3,"id","ngClass"],[3,"onClick","keydown.enter","styleClass","tabindex","ariaLabel","buttonProps"],[4,"ngIf"],[3,"onClick","keydown.enter","styleClass","ariaLabel","tabindex","buttonProps"]],template:function(n,i){n&1&&(K(Ht),m(0,xi,2,11,"div",6)),n&2&&o("ngIf",i.maskVisible)},dependencies:[re,ae,le,se,$e,ue,It,mt,Tt,wt,me],encapsulation:2,data:{animation:[it("animation",[Ie("void => visible",[ze(wi)]),Ie("visible => void",[ze(Ii)])])]},changeDetection:0})}return t})(),Et=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ye({type:t});static \u0275inj=be({imports:[Pe,me,me]})}return t})();var zi=["actionButton"],Mi=["filters"],Ei=["content"],Di=[[["tabs"]]],Si=["tabs"],Vi=t=>({"border-bottom":t}),Fi=()=>({width:"30vw"}),Pi=()=>({"1199px":"75vw","575px":"100vw"});function Li(t,s){if(t&1){let e=b();p(0,"p-button",30),u("onClick",function(){_(e);let i=r();return g(i.isSearchbarCollapse=!i.isSearchbarCollapse)}),d()}t&2&&o("text",!0)}function Oi(t,s){if(t&1){let e=b();p(0,"p-button",31),u("click",function(){_(e);let i=r();return g(i.isCollapsed=!i.isCollapsed)}),d()}if(t&2){let e=r();o("text",!0),T("aria-expanded",!e.isCollapsed)}}function Hi(t,s){if(t&1){let e=b();p(0,"p-iconfield",20)(1,"input",32),u("ngModelChange",function(i){_(e);let a=r();return g(a.searchQuery.set(i))})("keyup.enter",function(){_(e);let i=r();return g(i.emitSearch())}),d(),p(2,"p-inputicon",33),u("click",function(){_(e);let i=r();return g(i.emitSearch())}),d()()}if(t&2){let e=r();l(),o("ngModel",e.searchQuery())}}function Bi(t,s){if(t&1){let e=b();p(0,"button",34),u("click",function(){_(e);let i=r();return g(i.onOpenFilterDialog())}),y(1,"i",35),d()}}function Ri(t,s){t&1&&w(0)}function Qi(t,s){if(t&1){let e=b();p(0,"p-iconfield")(1,"input",32),u("ngModelChange",function(i){_(e);let a=r();return g(a.searchQuery.set(i))})("keyup.enter",function(){_(e);let i=r();return g(i.emitSearch())}),d(),p(2,"p-inputicon",33),u("click",function(){_(e);let i=r();return g(i.emitSearch())}),d()()}if(t&2){let e=r();l(),o("ngModel",e.searchQuery())}}function Wi(t,s){if(t&1){let e=b();p(0,"button",34),u("click",function(){_(e);let i=r();return g(i.onOpenFilterDialog())}),y(1,"i",35),d()}}function Ai(t,s){t&1&&w(0)}function Ni(t,s){t&1&&w(0)}function Xi(t,s){t&1&&w(0)}function Yi(t,s){if(t&1){let e=b();p(0,"p-button",36),u("onClick",function(){_(e);let i=r();return g(i.closeFilter())}),d()}t&2&&o("rounded",!0)("text",!0)}function ji(t,s){if(t&1){let e=b();p(0,"p-button",37),u("click",function(){_(e);let i=r();return g(i.cancelFilter())}),d(),p(1,"p-button",38),u("click",function(){_(e);let i=r();return g(i.confirmFilter())}),d()}}var to=(()=>{class t{confirmFilter(){this.filterConfirmed.emit()}cancelFilter(){this.isDialogFilterVisible.update(e=>!e)}closeFilter(){this.isDialogFilterVisible.update(e=>!e)}constructor(){this.router=I(Je),this.isCollapsed=!0,this.isSearchbarCollapse=!0,this.store=I(Ct),this.pageTitle=O(""),this.isSearchableInput=O(!1),this.isFilterable=O(!1),this.hasMainWrapperPadding=O(!1),this.search=Ce(),this.searchQuery=Be(""),this.filterConfirmed=Ce(),this.isDialogFilterVisible=xe(!1),this.isInitDialogFilterVisible=xe(!1),this.pageTitleComputed=Ye(()=>this.pageTitle()?this.pageTitle().length>50?this.pageTitle().slice(0,50)+"...":this.pageTitle():""),this.dialogTitle=O("Filter"),je(()=>{this.isInitDialogFilterVisible()&&this.onOpenFilterDialog()})}onOpenFilterDialog(){this.isDialogFilterVisible.update(e=>!e)}emitSearch(){this.search.emit(this.searchQuery())}handleKeyboardEvent(e){e.key==="F2"&&this.filterConfirmed.emit()}get mainPanelClasses(){return{"p-3":this.hasMainWrapperPadding()}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=D({type:t,selectors:[["app-main-panel"]],contentQueries:function(n,i,a){if(n&1&&(v(a,zi,7),v(a,Mi,7),v(a,Ei,7)),n&2){let c;C(c=x())&&(i.actionButtonTemplate=c.first),C(c=x())&&(i.filterTemplate=c.first),C(c=x())&&(i.contentTemplate=c.first)}},hostBindings:function(n,i){n&1&&u("keydown",function(c){return i.handleKeyboardEvent(c)},!1,Qe)},inputs:{pageTitle:[1,"pageTitle"],isSearchableInput:[1,"isSearchableInput"],isFilterable:[1,"isFilterable"],hasMainWrapperPadding:[1,"hasMainWrapperPadding"],isDialogFilterVisible:[1,"isDialogFilterVisible"],isInitDialogFilterVisible:[1,"isInitDialogFilterVisible"],dialogTitle:[1,"dialogTitle"]},outputs:{search:"search",filterConfirmed:"filterConfirmed",isDialogFilterVisible:"isDialogFilterVisibleChange",isInitDialogFilterVisible:"isInitDialogFilterVisibleChange"},features:[ne([])],ngContentSelectors:Si,decls:46,vars:30,consts:[["collapse","ngbCollapse"],["closeIconTemplate",""],["footer",""],[1,"container-wrapper"],[1,"navbar","navbar-expand-lg","bg-white",3,"ngClass"],[1,"container-fluid","px-3"],[1,"row","w-100","d-block","d-lg-none","mx-0"],[1,"col","d-flex","align-items-center","justify-content-between","flex-wrap"],["icon","fa-solid fa-bars","severity","contrast",1,"text-dark",3,"onClick","text"],[1,"fs-4","m-0","fw-bolder"],["icon","fa-solid fa-magnifying-glass","severity","contrast",3,"text","onClick",4,"ngIf"],["icon","fa-solid fa-ellipsis-vertical","severity","contrast",3,"text","click",4,"ngIf"],[1,"w-100","d-none","d-lg-flex"],[1,"col-6","d-flex"],[1,"row","w-100"],[1,"col-12","d-flex","align-items-center"],[1,"d-flex","align-items-center","justify-content-between","w-100","gap-2"],[1,"flex-shrink-1"],[1,"page-title","fs-6","m-0","fw-semibold","align-middle"],[1,"d-flex","align-items-center","flex-grow-1","gap-2"],[2,"max-width","300px"],["type","button",1,"btn","btn-link"],[1,"col-6","align-self-center","d-flex","gap-2","justify-content-end"],[4,"ngTemplateOutlet"],[3,"ngbCollapseChange","ngbCollapse"],[1,"card"],[1,"card-body"],[1,"d-flex","align-items-center"],[1,"flex-grow-1",3,"ngClass"],["position","center","appendTo","body",3,"visibleChange","header","modal","visible","breakpoints","draggable","closeIconTemplate","dismissableMask"],["icon","fa-solid fa-magnifying-glass","severity","contrast",3,"onClick","text"],["icon","fa-solid fa-ellipsis-vertical","severity","contrast",3,"click","text"],["pTooltip","Search...","tooltipPosition","top","placeholder","Search...","type","text","pInputText","",3,"ngModelChange","keyup.enter","ngModel"],["styleClass","fa-solid fa-magnifying-glass",3,"click"],["type","button",1,"btn","btn-link",3,"click"],[1,"fa-solid","fa-filter"],["severity","secondary","icon","fa-solid fa-xmark",3,"onClick","rounded","text"],["label","Cancel","severity","secondary","variant","outlined",3,"click"],["label","OK (F2)",3,"click"]],template:function(n,i){if(n&1){let a=b();K(Di),p(0,"div",3)(1,"div")(2,"nav",4)(3,"div",5)(4,"div",6)(5,"div",7)(6,"div")(7,"p-button",8),u("onClick",function(){return _(a),g(i.store.updateSidebarType())}),d(),p(8,"h1",9),X(9),d(),m(10,Li,1,1,"p-button",10),d(),m(11,Oi,1,2,"p-button",11),d()(),p(12,"div",12)(13,"div",13)(14,"div",14)(15,"div",15)(16,"div",16)(17,"div",17)(18,"h1",18),X(19),d()(),p(20,"div",19),m(21,Hi,3,1,"p-iconfield",20)(22,Bi,2,0,"button",21),d()()()()(),p(23,"div",22),m(24,Ri,1,0,"ng-container",23),d()()()(),p(25,"div",24,0),ie("ngbCollapseChange",function(h){return _(a),te(i.isSearchbarCollapse,h)||(i.isSearchbarCollapse=h),g(h)}),p(27,"div",25)(28,"div",26)(29,"div",27),m(30,Qi,3,1,"p-iconfield")(31,Wi,2,0,"button",21),d()()()(),p(32,"div",24,0),ie("ngbCollapseChange",function(h){return _(a),te(i.isCollapsed,h)||(i.isCollapsed=h),g(h)}),p(34,"div",25)(35,"div",26),m(36,Ai,1,0,"ng-container",23),d()()(),N(37),d(),p(38,"div",28),m(39,Ni,1,0,"ng-container",23),d()(),p(40,"p-dialog",29),ie("visibleChange",function(h){return _(a),te(i.isDialogFilterVisible,h)||(i.isDialogFilterVisible=h),g(h)}),m(41,Xi,1,0,"ng-container",23)(42,Yi,1,2,"ng-template",null,1,R)(44,ji,2,0,"ng-template",null,2,R),d()}if(n&2){let a=J(43);l(2),o("ngClass",j(26,Vi,i.hasMainWrapperPadding())),l(5),o("text",!0),l(2),ve(" ",i.pageTitleComputed()," "),l(),o("ngIf",i.isSearchableInput()),l(),o("ngIf",i.actionButtonTemplate),l(8),ve(" ",i.pageTitle()," "),l(2),A(i.isSearchableInput()?21:-1),l(),A(i.isFilterable()?22:-1),l(2),o("ngTemplateOutlet",i.actionButtonTemplate),l(),ee("ngbCollapse",i.isSearchbarCollapse),l(5),A(i.isSearchableInput()?30:-1),l(),A(i.isFilterable()?31:-1),l(),ee("ngbCollapse",i.isCollapsed),l(4),o("ngTemplateOutlet",i.actionButtonTemplate),l(2),o("ngClass",i.mainPanelClasses),l(),o("ngTemplateOutlet",i.contentTemplate),l(),W(Y(28,Fi)),o("header",i.dialogTitle())("modal",!0),ee("visible",i.isDialogFilterVisible),o("breakpoints",Y(29,Pi))("draggable",!1)("closeIconTemplate",a)("dismissableMask",!0),l(),o("ngTemplateOutlet",i.filterTemplate)}},dependencies:[tt,et,Ue,qe,Ge,Ke,gt,_t,ht,ut,bt,ft,Et,Pe,xt,ue,re,ae,le,se,vt,yt],styles:["[_nghost-%COMP%]{display:block}.page-title[_ngcontent-%COMP%]{margin-left:5px;color:#202123}.container-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;height:100vh}.navbar-collapse.show[_ngcontent-%COMP%]{padding-bottom:auto}.input-group[_ngcontent-%COMP%]{align-items:center}.input-group-text[_ngcontent-%COMP%]{background-color:transparent}input[type=checkbox][_ngcontent-%COMP%]:checked ~ a[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{transform:rotate(90deg);transition:transform .3s ease}label[for=check][_ngcontent-%COMP%]{width:25px;height:25px;border-radius:50%;border:1px solid #000;display:flex;justify-content:center;align-items:center}label[for=check][_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{transition:.4s cubic-bezier(.68,-.6,.32,1.6);font-size:.6rem}label[for=check][_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}label[for=check][_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked ~ a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{transform:rotate(180deg)}@media (max-width: 575px){ .p-dialog{height:100vh!important;max-height:100vh!important;border-radius:0!important} .p-dialog-content{overflow:auto;height:calc(100vh - 4rem)}}"],changeDetection:0})}}return t})();export{Tt as a,wt as b,It as c,Mt as d,Pe as e,Et as f,to as g};
|
package/chunk-OCYR2RTP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as f}from"./chunk-I2MAIV44.js";import{g as v}from"./chunk-NTJQFRIB.js";import"./chunk-USO7UKRV.js";import"./chunk-CMHZLZ4E.js";import"./chunk-OVJSBJBH.js";import"./chunk-E2RBYY7Q.js";import"./chunk-26X2X35R.js";import"./chunk-35EULUGT.js";import{a as x}from"./chunk-CEUNPX5D.js";import"./chunk-F2X3VGZZ.js";import"./chunk-7T6O4KFO.js";import{s as h}from"./chunk-SJTXIIX5.js";import{Ic as p,Tb as i,Ub as o,Zb as C,cc as l,dc as u,ha as a,mc as c,pa as m,qa as s,tb as _,uc as d,zb as g}from"./chunk-2VF35PRV.js";import"./chunk-EQDQRRRY.js";function b(t,A){if(t&1){let e=C();i(0,"div",3)(1,"button",4),l("click",function(){m(e);let r=u();return s(r.onFormatCOA())}),c(2,"Format"),o(),i(3,"button",5),l("click",function(){m(e);let r=u();return s(r.onMigrateCoaAccount())}),c(4," Migrate "),o()()}}function M(t,A){t&1&&(i(0,"div",6),c(1," reserved for future User Interface (UI) enhancements "),o())}var y=(()=>{class t{constructor(){this.migrateService=a(f),this.toastr=a(x)}onMigrateCoaAccount(){this.migrateService.migrateCoaAccount().subscribe(e=>{this.toastr.success(e.message,"Migration Successful")})}onFormatCOA(){this.migrateService.formatManualCOA().subscribe(e=>{this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=_({type:t,selectors:[["app-chart-of-account"]],features:[d([f])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["pageTitle","Chart of Account Migration"],[1,"d-flex","gap-2"],[1,"btn","btn-danger",3,"click"],[1,"btn","btn-primary",3,"click"],[1,"container","d-flex","justify-content-center","align-items-center",2,"height","100vh"]],template:function(n,r){n&1&&(i(0,"app-main-panel",2),g(1,b,5,0,"ng-template",null,0,p)(3,M,2,0,"ng-template",null,1,p),o())},dependencies:[v,h],encapsulation:2})}}return t})();export{y as ChartOfAccountComponent};
|