dealposbooks 5.49.3 → 5.49.4
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/assets/scss/style.scss +2 -4
- package/{chunk-ATFRJZK3.js → chunk-23PWXRYN.js} +1 -1
- package/{chunk-BJMEZV24.js → chunk-2RRP7JK7.js} +1 -1
- package/{chunk-V2P3PRZY.js → chunk-5JNGJ6UW.js} +1 -1
- package/{chunk-KJCHFIF4.js → chunk-672TXWSC.js} +1 -1
- package/{chunk-L3CQJPFS.js → chunk-6EIUS53G.js} +1 -1
- package/{chunk-DTAREQVV.js → chunk-7B7LNBD5.js} +1 -1
- package/{chunk-ES2YST7G.js → chunk-AVSCJ22B.js} +1 -1
- package/{chunk-UK5OOIPU.js → chunk-BEZIBXGN.js} +1 -1
- package/{chunk-PW4Y2UWU.js → chunk-BF6PW4QM.js} +1 -1
- package/{chunk-QFFI46W6.js → chunk-BMM5YFHU.js} +1 -1
- package/chunk-BP4OMNR2.js +8 -0
- package/{chunk-4G57L7HS.js → chunk-CFUVIXAX.js} +1 -1
- package/{chunk-QJ5XIVKM.js → chunk-CNMK2GSA.js} +1 -1
- package/{chunk-N6LQW4C4.js → chunk-DIG4FYVW.js} +1 -1
- package/chunk-ETNPJTRI.js +1 -0
- package/{chunk-ME4V3YFW.js → chunk-FOPCQ346.js} +1 -1
- package/{chunk-DJTQ4KQ7.js → chunk-FSJNWH2Y.js} +1 -1
- package/{chunk-XWXTYJHR.js → chunk-FZS2ZX6Y.js} +1 -1
- package/chunk-GEFAWOOV.js +129 -0
- package/{chunk-4OZIHMKI.js → chunk-GTMCB3SL.js} +1 -1
- package/{chunk-I2IEFBTX.js → chunk-H6FEO7T3.js} +1 -1
- package/{chunk-XJFNZBHG.js → chunk-HOAF22JI.js} +1 -1
- package/chunk-HU4J3ABZ.js +1 -0
- package/{chunk-YIEUIWT7.js → chunk-I33QA736.js} +1 -1
- package/{chunk-C5EDHVD7.js → chunk-IPOA3SOW.js} +1 -1
- package/{chunk-LOMHQKQX.js → chunk-IWAIAUMO.js} +1 -1
- package/chunk-JDRK7YG6.js +1 -0
- package/{chunk-RX37I2ZC.js → chunk-JIFUQXVH.js} +1 -1
- package/{chunk-UD23HDLE.js → chunk-KBR5PEJ3.js} +1 -1
- package/{chunk-OFLGX5N4.js → chunk-KNBVJM2U.js} +2 -2
- package/{chunk-OBT3IJJQ.js → chunk-L3GNPRRN.js} +1 -1
- package/{chunk-LUS3QGR4.js → chunk-OMLO5E65.js} +1 -1
- package/{chunk-VMI7LQOW.js → chunk-PK7RYZ5A.js} +1 -1
- package/{chunk-4UVBCZJG.js → chunk-PSSATQO3.js} +1 -1
- package/{chunk-OFI2JX7N.js → chunk-QC7NAJZG.js} +1 -1
- package/{chunk-D2CH2T3I.js → chunk-RAF7SWW4.js} +4 -4
- package/{chunk-26LXGKDF.js → chunk-RDQ7RWJC.js} +1 -1
- package/{chunk-A7OYELWP.js → chunk-RRL6OTRO.js} +1 -1
- package/{chunk-CTINUVLP.js → chunk-SLD2HX2B.js} +1 -1
- package/{chunk-NXJQMUGV.js → chunk-U5YVZKME.js} +1 -1
- package/{chunk-PZZCPZ6Q.js → chunk-URSKOWIQ.js} +1 -1
- package/{chunk-5LGAO5J4.js → chunk-V7EXGBKT.js} +1 -1
- package/{chunk-KGNH5JRZ.js → chunk-VFKJMUGN.js} +1 -1
- package/chunk-VQKIYDID.js +1 -0
- package/{chunk-C7ZPOAWO.js → chunk-W6US3XIE.js} +1 -1
- package/{chunk-IHKBTP2Y.js → chunk-WPJG57AR.js} +1 -1
- package/{chunk-E3SH454T.js → chunk-WSQPSWDS.js} +1 -1
- package/{chunk-IQ4SHFOC.js → chunk-X3FAXRYR.js} +1 -1
- package/{chunk-V65ONV6D.js → chunk-YIG2I6WR.js} +1 -1
- package/{chunk-SUWUVFH4.js → chunk-YRW7AH7I.js} +1 -1
- package/chunk-ZIQBCB5X.js +7 -0
- package/chunk-ZY4AYAWJ.js +202 -0
- package/index.html +2 -2
- package/{main-WMHNA6IG.js → main-VIRQJVUE.js} +1 -1
- package/package.json +1 -1
- package/{styles-FYY2LVCE.css → styles-T5RGO2FA.css} +1 -1
- package/chunk-3KEAMVYI.js +0 -202
- package/chunk-A3P24MDP.js +0 -129
- package/chunk-FQRRGJBE.js +0 -1
- package/chunk-LG5TMEPP.js +0 -1
- package/chunk-Q4KG7LH6.js +0 -1
- package/chunk-S6S265JY.js +0 -7
- package/chunk-WRTIQGAC.js +0 -8
- package/chunk-ZZEOPBUT.js +0 -1
package/chunk-3KEAMVYI.js
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import{a as ie,b as kt}from"./chunk-FWAGEKIF.js";import{f as Tt}from"./chunk-RM5HLXNW.js";import"./chunk-E6SW7I4D.js";import{a as vt}from"./chunk-G4XX7EU2.js";import{a as yt}from"./chunk-XKI7WLHE.js";import{a as Ct}from"./chunk-ELMSU4U7.js";import"./chunk-VDXZGF3M.js";import"./chunk-MHRSQRHT.js";import{a as st}from"./chunk-6WWXJJID.js";import"./chunk-U2VDC52W.js";import{a as ee,b as te}from"./chunk-3VQUNDVT.js";import{d as gt,i as wt,j as bt,k as xt}from"./chunk-DGACZ747.js";import"./chunk-EBEY2MBR.js";import"./chunk-AMGBUOC4.js";import"./chunk-UPSNJEHO.js";import"./chunk-VKNINE5Q.js";import"./chunk-E7QWESN4.js";import{a as ft,b as ht}from"./chunk-AN4SAUSA.js";import"./chunk-URH77XNK.js";import"./chunk-PPXXWO4E.js";import"./chunk-3DBSHDAQ.js";import"./chunk-M4SSELXT.js";import"./chunk-QPPFPDWZ.js";import"./chunk-WMZF4DQK.js";import{i as _t}from"./chunk-D2CH2T3I.js";import{a as Ye}from"./chunk-S27Z7D3D.js";import{a as ot,b as at}from"./chunk-AD247LWQ.js";import{b as E,c as lt,d as pt,e as ct,f as mt,g as dt,h as ut}from"./chunk-BKTBVFNX.js";import"./chunk-ZFNIPERQ.js";import{a as Xe,f as O,k as et,m as tt,o as it,s as nt,w as Y,x as rt}from"./chunk-ME4ALIS7.js";import"./chunk-DTYVTTET.js";import{A as Ge,C as $e,K as Ze,La as We,Ma as X,Ua as Ke,c as K,e as He,f as Ne,l as Qe,ma as Je,o as ze,u as je,x as qe,z as fe}from"./chunk-VMI3QWC6.js";import{b as Re,d as Ae,e as Oe}from"./chunk-F7PVAVLQ.js";import"./chunk-KGNH5JRZ.js";import"./chunk-5DRALZZF.js";import"./chunk-2BI7WNJP.js";import{h as Z,k as J,m as Le,p as Me,s as W}from"./chunk-ZK43JB4A.js";import{c as Be,d as ce,f as me,h as de,i as ue,k as _e}from"./chunk-F2X3VGZZ.js";import{$b as U,$c as Ve,Aa as N,Cb as z,Dc as $,Eb as u,Fc as I,Gc as De,Ha as L,Kc as Ee,Lb as F,Mb as p,Oc as Fe,Pb as Ce,Qb as ae,Qc as Ue,Rb as j,Sb as M,Sc as x,Ub as R,Vb as A,Wb as l,Xb as a,Y as H,Yb as y,Zb as ye,_ as re,_b as ve,_c as D,ac as S,bd as P,c as B,ca as we,cd as Pe,da as be,fc as b,gc as c,hc as Te,ia as C,ib as s,ic as ke,lc as V,mc as q,nc as v,oc as T,qa as _,ra as f,rc as Se,sc as d,tc as k,ua as oe,uc as G,wc as Ie,xc as se,yb as Q,yc as le,zb as xe,zc as pe}from"./chunk-6QJHEOXN.js";import{a as h,b as g}from"./chunk-YQFG5XE2.js";var Dt={data:[],count:0,filter:{pagination:1,pageSize:10,groupID:null,text:""},meta:{filter:{pagination:1,pageSize:10,groupID:null,text:""},options:{groups:[]}},metaForm:{form:{id:"",groupID:"",accessTypeID:1,listJournalTagID:[]},options:{users:[],groups:[],accessTypes:[],journalTags:[]}}},he=lt(ut("UserStore"),dt(Dt),pt(t=>({first:P(()=>(t.filter().pagination-1)*t.filter().pageSize+1),end:P(()=>Math.min(t.filter().pagination*t.filter().pageSize,t.count())),hasCheckedRows:P(()=>t.data().some(o=>o.checked)),checkedData:P(()=>t.data().filter(o=>o.checked).map(o=>o.userID)),selectedID:P(()=>t.data().find(o=>o.checked)?.userID||null)})),mt(t=>{let o=C(ie);return{setFilter(n){E(t,i=>g(h({},i),{filter:n}))},onRowSelect(n){E(t,i=>{let r=i.data.map(m=>m.userID===n.userID?g(h({},m),{checked:!0}):m);return g(h({},i),{data:r})})},onRowUnselect(n){E(t,i=>{let r=i.data.map(m=>m.userID===n.userID?g(h({},m),{checked:!1}):m);return g(h({},i),{data:r})})},onHeaderCheckboxToggle(n){let i=localStorage.getItem("AUTH_USERNAME");E(t,r=>{let m=r.data.map(w=>w.userName!==i?g(h({},w),{checked:n}):g(h({},w),{checked:!1}));return g(h({},r),{data:m})})},getUserLoader:ee(B(H(()=>o.getUserLoaderList().pipe(te({next:n=>{E(t,i=>g(h({},i),{meta:n}))},error:n=>{console.error("Failed to fetch user loader list:",n)}}))))),getUserFormMeta:ee(B(H(n=>o.getUserFormMeta(n).pipe(te({next:i=>{E(t,r=>g(h({},r),{metaForm:i}))},error:i=>{console.error("Failed to fetch user form meta:",i)}}))))),getUsers:ee(B(H(n=>o.getUsers(n).pipe(te({next:i=>{E(t,r=>g(h({},r),{data:i.data.map(m=>g(h({},m),{checked:!1})),count:i.count}))},error:i=>{console.error("Failed to fetch users:",i)}})))))}}),ct({onInit:t=>{t.getUserLoader(),t.getUsers(t.filter)}}));var Ut=["header"],Vt=["footer"],Pt=["content"],Lt=["closeicon"],Mt=["headless"],Rt=["maskRef"],At=["container"],Ot=["closeButton"],Bt=["*"],Ht=(t,o,e,n,i,r)=>({"p-drawer":!0,"p-drawer-active":t,"p-drawer-left":o,"p-drawer-right":e,"p-drawer-top":n,"p-drawer-bottom":i,"p-drawer-full":r}),Nt=(t,o)=>({transform:t,transition:o}),Qt=t=>({value:"visible",params:t});function zt(t,o){t&1&&U(0)}function jt(t,o){if(t&1&&u(0,zt,1,0,"ng-container",4),t&2){let e=c(2);p("ngTemplateOutlet",e.headlessTemplate||e._headlessTemplate)}}function qt(t,o){t&1&&U(0)}function Gt(t,o){if(t&1&&(l(0,"div"),d(1),a()),t&2){let e=c(3);ae(e.cx("title")),s(),k(e.header)}}function $t(t,o){t&1&&y(0,"TimesIcon"),t&2&&F("data-pc-section","closeicon")}function Zt(t,o){}function Jt(t,o){t&1&&u(0,Zt,0,0,"ng-template")}function Wt(t,o){if(t&1&&u(0,$t,1,1,"TimesIcon",8)(1,Jt,1,0,null,4),t&2){let e=c(4);p("ngIf",!e.closeIconTemplate&&!e._closeIconTemplate),s(),p("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function Kt(t,o){if(t&1){let e=S();l(0,"p-button",9),b("onClick",function(i){_(e);let r=c(3);return f(r.close(i))})("keydown.enter",function(i){_(e);let r=c(3);return f(r.close(i))}),u(1,Wt,2,2,"ng-template",null,1,x),a()}if(t&2){let e=c(3);p("ngClass",e.cx("closeButton"))("buttonProps",e.closeButtonProps)("ariaLabel",e.ariaCloseLabel),F("data-pc-section","closebutton")("data-pc-group-section","iconcontainer")}}function Xt(t,o){t&1&&U(0)}function Yt(t,o){t&1&&U(0)}function ei(t,o){if(t&1&&(ye(0),l(1,"div",5),u(2,Yt,1,0,"ng-container",4),a(),ve()),t&2){let e=c(3);s(),p("ngClass",e.cx("footer")),F("data-pc-section","footer"),s(),p("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function ti(t,o){if(t&1&&(l(0,"div",5),u(1,qt,1,0,"ng-container",4)(2,Gt,2,3,"div",6)(3,Kt,3,5,"p-button",7),a(),l(4,"div",5),ke(5),u(6,Xt,1,0,"ng-container",4),a(),u(7,ei,3,3,"ng-container",8)),t&2){let e=c(2);p("ngClass",e.cx("header")),F("data-pc-section","header"),s(),p("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),s(),p("ngIf",e.header),s(),p("ngIf",e.showCloseIcon&&e.closable),s(),p("ngClass",e.cx("content")),F("data-pc-section","content"),s(2),p("ngTemplateOutlet",e.contentTemplate||e._contentTemplate),s(),p("ngIf",e.footerTemplate||e._footerTemplate)}}function ii(t,o){if(t&1){let e=S();l(0,"div",3,0),b("@panelState.start",function(i){_(e);let r=c();return f(r.onAnimationStart(i))})("@panelState.done",function(i){_(e);let r=c();return f(r.onAnimationEnd(i))})("keydown",function(i){_(e);let r=c();return f(r.onKeyDown(i))}),u(2,jt,1,1,"ng-container")(3,ti,8,9),a()}if(t&2){let e=c();Ce(e.style),ae(e.styleClass),p("ngClass",Ee(9,Ht,e.visible,e.position==="left"&&!e.fullScreen,e.position==="right"&&!e.fullScreen,e.position==="top"&&!e.fullScreen,e.position==="bottom"&&!e.fullScreen,e.fullScreen||e.position==="full"))("@panelState",I(19,Qt,De(16,Nt,e.transformOptions,e.transitionOptions))),F("data-pc-name","sidebar")("data-pc-section","root"),s(2),j(e.headlessTemplate||e._headlessTemplate?2:3)}}var ni=({dt:t})=>`
|
|
2
|
-
.p-drawer {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
pointer-events: auto;
|
|
6
|
-
transform: translate3d(0px, 0px, 0px);
|
|
7
|
-
position: fixed;
|
|
8
|
-
transition: transform 0.3s;
|
|
9
|
-
background: ${t("drawer.background")};
|
|
10
|
-
color: ${t("drawer.color")};
|
|
11
|
-
border: 1px solid ${t("drawer.border.color")};
|
|
12
|
-
box-shadow: ${t("drawer.shadow")};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.p-drawer-content {
|
|
16
|
-
overflow-y: auto;
|
|
17
|
-
flex-grow: 1;
|
|
18
|
-
padding: ${t("drawer.content.padding")};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.p-drawer-header {
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: space-between;
|
|
25
|
-
flex-shrink: 0;
|
|
26
|
-
padding: ${t("drawer.header.padding")};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.p-drawer-footer {
|
|
30
|
-
padding: ${t("drawer.header.padding")};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.p-drawer-title {
|
|
34
|
-
font-weight: ${t("drawer.title.font.weight")};
|
|
35
|
-
font-size: ${t("drawer.title.font.size")};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.p-drawer-full .p-drawer {
|
|
39
|
-
transition: none;
|
|
40
|
-
transform: none;
|
|
41
|
-
width: 100vw !important;
|
|
42
|
-
height: 100vh !important;
|
|
43
|
-
max-height: 100%;
|
|
44
|
-
top: 0px !important;
|
|
45
|
-
left: 0px !important;
|
|
46
|
-
border-width: 1px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.p-drawer-left .p-drawer {
|
|
50
|
-
align-self: start;
|
|
51
|
-
width: 20rem;
|
|
52
|
-
height: 100%;
|
|
53
|
-
border-right-width: 1px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.p-drawer-right .p-drawer {
|
|
57
|
-
align-self: end;
|
|
58
|
-
width: 20rem;
|
|
59
|
-
height: 100%;
|
|
60
|
-
border-left-width: 1px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.p-drawer-top .p-drawer {
|
|
64
|
-
height: 10rem;
|
|
65
|
-
width: 100%;
|
|
66
|
-
border-bottom-width: 1px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.p-drawer-bottom .p-drawer {
|
|
70
|
-
height: 10rem;
|
|
71
|
-
width: 100%;
|
|
72
|
-
border-top-width: 1px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.p-drawer-left .p-drawer-content,
|
|
76
|
-
.p-drawer-right .p-drawer-content,
|
|
77
|
-
.p-drawer-top .p-drawer-content,
|
|
78
|
-
.p-drawer-bottom .p-drawer-content {
|
|
79
|
-
width: 100%;
|
|
80
|
-
height: 100%;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.p-drawer-open {
|
|
84
|
-
display: flex;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.p-drawer-top {
|
|
88
|
-
justify-content: flex-start;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.p-drawer-bottom {
|
|
92
|
-
justify-content: flex-end;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.p-drawer {
|
|
96
|
-
position: fixed;
|
|
97
|
-
transition: transform 0.3s;
|
|
98
|
-
display: flex;
|
|
99
|
-
flex-direction: column;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.p-drawer-content {
|
|
103
|
-
position: relative;
|
|
104
|
-
overflow-y: auto;
|
|
105
|
-
flex-grow: 1;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.p-drawer-header {
|
|
109
|
-
display: flex;
|
|
110
|
-
align-items: center;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.p-drawer-footer {
|
|
114
|
-
margin-top: auto;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.p-drawer-icon {
|
|
118
|
-
display: flex;
|
|
119
|
-
align-items: center;
|
|
120
|
-
justify-content: center;
|
|
121
|
-
margin-left: auto;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.p-drawer-left {
|
|
125
|
-
top: 0;
|
|
126
|
-
left: 0;
|
|
127
|
-
width: 20rem;
|
|
128
|
-
height: 100%;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.p-drawer-right {
|
|
132
|
-
top: 0;
|
|
133
|
-
right: 0;
|
|
134
|
-
width: 20rem;
|
|
135
|
-
height: 100%;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.p-drawer-top {
|
|
139
|
-
top: 0;
|
|
140
|
-
left: 0;
|
|
141
|
-
width: 100%;
|
|
142
|
-
height: 10rem;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.p-drawer-bottom {
|
|
146
|
-
bottom: 0;
|
|
147
|
-
left: 0;
|
|
148
|
-
width: 100%;
|
|
149
|
-
height: 10rem;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.p-drawer-full {
|
|
153
|
-
width: 100%;
|
|
154
|
-
height: 100%;
|
|
155
|
-
top: 0;
|
|
156
|
-
left: 0;
|
|
157
|
-
-webkit-transition: none;
|
|
158
|
-
transition: none;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.p-drawer-mask {
|
|
162
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
163
|
-
transition-duration: 0.2s;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.p-overlay-mask {
|
|
167
|
-
position: fixed;
|
|
168
|
-
top: 0;
|
|
169
|
-
left: 0;
|
|
170
|
-
width: 100%;
|
|
171
|
-
height: 100%;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.p-overlay-mask:dir(rtl) {
|
|
175
|
-
flex-direction: row-reverse;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.p-overlay-mask-enter {
|
|
179
|
-
animation: p-overlay-mask-enter-animation 150ms forwards;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.p-overlay-mask-leave {
|
|
183
|
-
animation: p-overlay-mask-leave-animation 150ms forwards;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
@keyframes p-overlay-mask-enter-animation {
|
|
187
|
-
from {
|
|
188
|
-
background-color: transparent;
|
|
189
|
-
}
|
|
190
|
-
to {
|
|
191
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
@keyframes p-overlay-mask-leave-animation {
|
|
195
|
-
from {
|
|
196
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
197
|
-
}
|
|
198
|
-
to {
|
|
199
|
-
background-color: transparent;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
`,ri={mask:({instance:t})=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",flexDirection:"column",alignItems:t.position==="top"?"flex-start":t.position==="bottom"?"flex-end":"center"})},oi={mask:({instance:t})=>({"p-drawer-mask":!0,"p-overlay-mask p-overlay-mask-enter":t.modal,"p-drawer-open":t.containerVisible,"p-drawer-full":t.fullScreen,[`p-drawer-${t.position}`]:!!t.position}),root:({instance:t})=>({"p-drawer p-component":!0,"p-drawer-full":t.fullScreen}),header:"p-drawer-header",title:"p-drawer-title",pcCloseButton:"p-drawer-close-button",content:"p-drawer-content",footer:"p-drawer-footer"},St=(()=>{class t extends Ke{name="drawer";theme=ni;classes=oi;inlineStyles=ri;static \u0275fac=(()=>{let e;return function(i){return(e||(e=oe(t)))(i||t)}})();static \u0275prov=we({token:t,factory:t.\u0275fac})}return t})();var ai=ue([me({transform:"{{transform}}",opacity:0}),ce("{{transition}}")]),si=ue([ce("{{transition}}",me({transform:"{{transform}}",opacity:0}))]),ge=(()=>{class t extends Xe{appendTo="body";blockScroll=!1;style;styleClass;ariaCloseLabel;autoZIndex=!0;baseZIndex=0;modal=!0;closeButtonProps={severity:"secondary",text:!0,rounded:!0};dismissible=!0;showCloseIcon=!0;closeOnEscape=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";get visible(){return this._visible}set visible(e){this._visible=e}get position(){return this._position}set position(e){if(this._position=e,e==="full"){this.transformOptions="none";return}switch(e){case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;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}}get fullScreen(){return this._fullScreen}set fullScreen(e){this._fullScreen=e,e&&(this.transformOptions="none")}header;maskStyle;closable=!0;onShow=new N;onHide=new N;visibleChange=new N;maskRef;containerViewChild;closeButtonViewChild;initialized;_visible;_position="left";_fullScreen=!1;container;transformOptions="translate3d(-100%, 0px, 0px)";mask;maskClickListener;documentEscapeListener;animationEndListener;_componentStyle=C(St);ngAfterViewInit(){super.ngAfterViewInit(),this.initialized=!0}headerTemplate;footerTemplate;contentTemplate;closeIconTemplate;headlessTemplate;_headerTemplate;_footerTemplate;_contentTemplate;_closeIconTemplate;_headlessTemplate;templates;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template;break;case"headless":this._headlessTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}onKeyDown(e){e.code==="Escape"&&this.hide(!1)}show(){this.container.setAttribute(this.attrSelector,""),this.autoZIndex&&O.set("modal",this.container,this.baseZIndex||this.config.zIndex.modal),this.modal&&this.enableModality(),this.onShow.emit({}),this.visibleChange.emit(!0)}hide(e=!0){e&&this.onHide.emit({}),this.modal&&this.disableModality()}close(e){this.hide(),this.visibleChange.emit(!1),e.preventDefault()}enableModality(){let e=this.document.querySelectorAll(".p-drawer-active"),n=e.length,i=n==1?String(parseInt(this.container.style.zIndex)-1):String(parseInt(e[n-1].style.zIndex)-1);this.mask||(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",i),Je(this.mask,"style",this.maskStyle),fe(this.mask,"p-overlay-mask p-drawer-mask p-overlay-mask-enter"),this.dismissible&&(this.maskClickListener=this.renderer.listen(this.mask,"click",r=>{this.dismissible&&this.close(r)})),this.renderer.appendChild(this.document.body,this.mask),this.blockScroll&&Ge())}disableModality(){this.mask&&(fe(this.mask,"p-overlay-mask-leave"),this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyModal.bind(this)))}destroyModal(){this.unbindMaskClickListener(),this.mask&&this.renderer.removeChild(this.document.body,this.mask),this.blockScroll&&$e(),this.unbindAnimationEndListener(),this.mask=null}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.appendContainer(),this.show(),this.closeOnEscape&&this.bindDocumentEscapeListener();break}}onAnimationEnd(e){switch(e.toState){case"void":this.hide(!1),O.clear(this.container),this.unbindGlobalListeners();break}}appendContainer(){this.appendTo&&(this.appendTo==="body"?this.renderer.appendChild(this.document.body,this.container):Ze(this.appendTo,this.container))}bindDocumentEscapeListener(){let e=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentEscapeListener=this.renderer.listen(e,"keydown",n=>{n.which==27&&parseInt(this.container.style.zIndex)===O.get(this.container)&&this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindGlobalListeners(){this.unbindMaskClickListener(),this.unbindDocumentEscapeListener()}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}ngOnDestroy(){this.initialized=!1,this.visible&&this.modal&&this.destroyModal(),this.appendTo&&this.container&&this.renderer.appendChild(this.el.nativeElement,this.container),this.container&&this.autoZIndex&&O.clear(this.container),this.container=null,this.unbindGlobalListeners(),this.unbindAnimationEndListener()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=oe(t)))(i||t)}})();static \u0275cmp=Q({type:t,selectors:[["p-drawer"]],contentQueries:function(n,i,r){if(n&1&&(V(r,Ut,4),V(r,Vt,4),V(r,Pt,4),V(r,Lt,4),V(r,Mt,4),V(r,We,4)),n&2){let m;v(m=T())&&(i.headerTemplate=m.first),v(m=T())&&(i.footerTemplate=m.first),v(m=T())&&(i.contentTemplate=m.first),v(m=T())&&(i.closeIconTemplate=m.first),v(m=T())&&(i.headlessTemplate=m.first),v(m=T())&&(i.templates=m)}},viewQuery:function(n,i){if(n&1&&(q(Rt,5),q(At,5),q(Ot,5)),n&2){let r;v(r=T())&&(i.maskRef=r.first),v(r=T())&&(i.containerViewChild=r.first),v(r=T())&&(i.closeButtonViewChild=r.first)}},inputs:{appendTo:"appendTo",blockScroll:[2,"blockScroll","blockScroll",D],style:"style",styleClass:"styleClass",ariaCloseLabel:"ariaCloseLabel",autoZIndex:[2,"autoZIndex","autoZIndex",D],baseZIndex:[2,"baseZIndex","baseZIndex",Ve],modal:[2,"modal","modal",D],closeButtonProps:"closeButtonProps",dismissible:[2,"dismissible","dismissible",D],showCloseIcon:[2,"showCloseIcon","showCloseIcon",D],closeOnEscape:[2,"closeOnEscape","closeOnEscape",D],transitionOptions:"transitionOptions",visible:"visible",position:"position",fullScreen:"fullScreen",header:"header",maskStyle:"maskStyle",closable:[2,"closable","closable",D]},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange"},features:[$([St]),z],ngContentSelectors:Bt,decls:1,vars:1,consts:[["container",""],["icon",""],["role","complementary",3,"ngClass","style","class","keydown",4,"ngIf"],["role","complementary",3,"keydown","ngClass"],[4,"ngTemplateOutlet"],[3,"ngClass"],[3,"class",4,"ngIf"],[3,"ngClass","buttonProps","ariaLabel","onClick","keydown.enter",4,"ngIf"],[4,"ngIf"],[3,"onClick","keydown.enter","ngClass","buttonProps","ariaLabel"]],template:function(n,i){n&1&&(Te(),u(0,ii,4,21,"div",2)),n&2&&p("ngIf",i.visible)},dependencies:[W,Z,J,Le,Y,Ye,X],encapsulation:2,data:{animation:[Be("panelState",[de("void => visible",[_e(ai)]),de("visible => void",[_e(si)])])]},changeDetection:0})}return t})(),It=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=xe({type:t});static \u0275inj=be({imports:[ge,X,X]})}return t})();var pi=["class","page"],ne=t=>({"ng-invalid ng-dirty":t}),ci=t=>({groupID:t});function mi(t,o){if(t&1){let e=S();l(0,"p-button",23),b("onClick",function(){_(e);let i=c(2);return f(i.onDeleteUser())}),a()}}function di(t,o){if(t&1){let e=S();l(0,"p-button",24),b("onClick",function(){_(e);let i=c(2);return f(i.onHandleDrawer())}),a()}}function ui(t,o){if(t&1&&(l(0,"div",20),u(1,mi,1,0,"p-button",21)(2,di,1,0,"p-button",22),a()),t&2){let e=c();s(),p("ngIf",e.store.hasCheckedRows()),s(),p("ngIf",e.roleService.user().create)}}function _i(t,o){t&1&&(l(0,"th",28),y(1,"p-tableHeaderCheckbox"),a())}function fi(t,o){if(t&1&&(l(0,"tr"),u(1,_i,2,0,"th",27),l(2,"th"),d(3,"LoginID"),a(),l(4,"th"),d(5,"Group"),a(),l(6,"th"),d(7,"Access Type"),a(),l(8,"th"),d(9,"Tags"),a(),l(10,"th"),d(11,"Last Login"),a()()),t&2){let e=c(2);s(),p("ngIf",e.roleService.user().delete)}}function hi(t,o){t&1&&U(0)}function gi(t,o){if(t&1&&y(0,"p-tableCheckbox",34),t&2){let e=c(3).$implicit;p("value",e)}}function wi(t,o){if(t&1&&u(0,gi,1,1,"p-tableCheckbox",33),t&2){let e=c(4);p("ngIf",e.roleService.user().delete)}}function bi(t,o){if(t&1&&(l(0,"td"),u(1,hi,1,0,"ng-container",32)(2,wi,1,1,"ng-template",null,7,x),a()),t&2){let e=Se(3),n=c().$implicit,i=c(2);s(),p("ngIf",i.roleService.user().delete&&n.userName===i.currentUser())("ngIfElse",e)}}function xi(t,o){t&1&&(l(0,"div"),d(1,"No Tags Assigned"),a())}function Ci(t,o){if(t&1&&(l(0,"div"),d(1),a()),t&2){let e=c().$implicit;s(),G("",e.tagsCount," Tags Assigned")}}function yi(t,o){if(t&1){let e=S();l(0,"tr"),u(1,bi,4,2,"td",29),l(2,"td")(3,"button",30),b("click",function(){let i=_(e).$implicit,r=c(2);return f(r.onEditUser(i))}),d(4),a()(),l(5,"td")(6,"a",31),d(7),a()(),l(8,"td"),d(9),a(),l(10,"td"),u(11,xi,2,0,"div")(12,Ci,2,1,"div"),a(),l(13,"td")(14,"span"),d(15),Fe(16,"date"),a()()()}if(t&2){let e=o.$implicit,n=c(2);s(),p("ngIf",n.roleService.user().delete),s(2),p("disabled",!n.roleService.user().edit),s(),G(" ",e.userName||e.userID," "),s(2),p("queryParams",I(11,ci,e.groupID)),s(),k(e.groupName),s(2),G(" ",e.accessTypeName," "),s(2),j(e.tagsCount===0?11:12),s(4),k(Ue(16,8,e.lastLogin,"d MMM y HH:mm"))}}function vi(t,o){if(t&1&&d(0),t&2){let e=c(2);Ie(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.count()," entries ")}}function Ti(t,o){t&1&&(l(0,"tr")(1,"td",35)(2,"span"),d(3,"No users found. Try adjusting your filters or add a new user."),a()()())}function ki(t,o){if(t&1){let e=S();l(0,"p-panel")(1,"div",25),y(2,"app-user-tabs"),l(3,"p-table",26),b("onPage",function(i){_(e);let r=c();return f(r.onPageChange(i))})("onRowSelect",function(i){_(e);let r=c();return f(r.onRowSelect(i))})("onRowUnselect",function(i){_(e);let r=c();return f(r.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){_(e);let r=c();return f(r.onHeaderCheckboxToggle(i))}),u(4,fi,12,1,"ng-template",null,3,x)(6,yi,17,13,"ng-template",null,4,x)(8,vi,1,3,"ng-template",null,5,x)(10,Ti,4,0,"ng-template",null,6,x),a()()()}if(t&2){let e=c();s(3),p("value",e.store.data())("lazy",!0)("paginator",!0)("rows",e.store.filter().pageSize)("totalRecords",e.store.count())}}function Si(t,o){if(t&1&&(l(0,"div",36)(1,"div",18)(2,"div",37)(3,"label",38),d(4,"Group"),a(),y(5,"p-select",39),a()()()),t&2){let e=c();p("formGroup",e.forms.filterForm),s(5),p("showClear",!0)("options",e.store.meta().options.groups)}}function Ii(t,o){if(t&1&&(l(0,"span",40),d(1),a()),t&2){let e=c();s(),k(e.store.hasCheckedRows()?"Edit User":"Invite User")}}function Di(t,o){if(t&1&&(l(0,"small",14),d(1),a()),t&2){let e=o.$implicit;s(),k(e)}}function Ei(t,o){if(t&1&&(l(0,"small",14),d(1),a()),t&2){let e=o.$implicit;s(),k(e)}}function Fi(t,o){if(t&1&&(l(0,"small",14),d(1),a()),t&2){let e=o.$implicit;s(),k(e)}}function Ui(t,o){if(t&1&&(l(0,"small",14),d(1),a()),t&2){let e=o.$implicit;s(),k(e)}}var On=(()=>{class t extends yt{ngOnInit(){this.generateForm()}constructor(){Pe(()=>{this.store.metaForm()&&this.generateForm()}),super(),this.store=C(he),this.fb=C(je),this.userService=C(ie),this.isLoading=L(!1),this.form=null,this.isDrawerOpen=L(!1),this.router=C(Ae),this.route=C(Re),this.isDialogFilterVisible=L(!1),this.roleService=C(st),this.currentUser=L(null),this.tabs=[{route:"/pages/users/users",label:"Users"},{route:"/pages/users/groups",label:"Groups"}]}ngAfterViewInit(){this.currentUser.set(localStorage.getItem("AUTH_USERNAME")||null)}onPageChange(e){this.store.setFilter(g(h({},this.store.filter()),{pagination:e.first/e.rows+1}))}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)}generateForm(){this.forms={filterForm:this.fb.group({pagination:this.fb.control(1),pageSize:this.fb.control(10),groupID:this.fb.control(null)}),userForm:this.fb.group({id:this.fb.control({value:this.store.metaForm().form.id,disabled:this.store.metaForm().form.id!==vt},[K.required]),groupID:this.fb.control(this.store.metaForm().form.groupID,[K.required]),accessTypeID:this.fb.control(this.store.metaForm().form.accessTypeID,[K.required]),listJournalTagID:this.fb.control(this.store.metaForm().form.listJournalTagID??[])})}}onHandleDrawer(){this.isDrawerOpen.update(e=>!e),this.store.getUserFormMeta(this.route.snapshot.params.id||null)}onInviteUser(){let{userForm:e}=this.forms;if(e.invalid){e.markAllAsTouched();return}let n=e.getRawValue(),i;if(this.store.hasCheckedRows()){let[r]=this.store.checkedData();i={id:r,groupID:n.groupID,accessTypeID:n.accessTypeID,listJournalTagID:n.listJournalTagID}}else i=n;this.userService.inviteUser(i).pipe(re(()=>{this.onHandleDrawer(),this.store.setFilter(h({},this.store.filter())),e.reset()})).subscribe()}onSearch(e){this.store.setFilter(g(h({},this.store.filter()),{text:e,pagination:1}))}onOKFilter(){if(this.forms.filterForm.invalid){this.forms.filterForm.markAllAsTouched();return}let{groupID:e}=this.forms.filterForm.value;this.store.setFilter(g(h({},this.store.filter()),{groupID:e})),this.isDialogFilterVisible.update(n=>!n)}onEditUser(e){this.store.onRowSelect(e),this.store.getUserFormMeta(this.store.selectedID()),this.isDrawerOpen.update(n=>!n)}onHideDrawer(){this.store.onHeaderCheckboxToggle(!1)}onDeleteUser(){let e=this.store.checkedData();this.userService.deleteUser(e).pipe(re(()=>{this.store.setFilter(h({},this.store.filter()))})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=Q({type:t,selectors:[["app-user",8,"page"]],features:[$([he]),z],attrs:pi,decls:41,vars:23,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["showCheckbox",""],["pageTitle","User List",3,"search","isDialogFilterVisibleChange","filterConfirmed","isSearchableInput","isFilterable","isDialogFilterVisible","scrollable"],["position","right",3,"visibleChange","onHide","visible"],[1,"row","py-3","row-gap-3",3,"formGroup"],[1,"col-12"],["for","",1,"m-0"],["fluid","","filter","","filterBy","name","formControlName","id","optionLabel","loginID","optionValue","id","placeholder","Select a User",3,"disabled","options","ngClass"],[1,"text-danger"],["filter","","filterBy","name","formControlName","groupID","optionLabel","name","optionValue","id","placeholder","Select a Group","fluid","",3,"options","ngClass"],["filter","","filterBy","name","formControlName","accessTypeID","optionLabel","value","optionValue","key","placeholder","Select Access Type","fluid","",3,"options","ngClass"],["fluid","","filter","","filterBy","name","formControlName","listJournalTagID","optionLabel","name","optionValue","id","placeholder","Select a Tag",3,"options","ngClass"],[1,"col"],["label","Submit",3,"onClick"],[1,"d-flex","gap-2","flex-wrap"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick",4,"ngIf"],["label","Invite",3,"onClick",4,"ngIf"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick"],["label","Invite",3,"onClick"],[1,"d-flex","flex-column","gap-3","py-2"],["dataKey","userID",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","lazy","paginator","rows","totalRecords"],["style","width: 4rem",4,"ngIf"],[2,"width","4rem"],[4,"ngIf"],[1,"btn","btn-link","fw-light","text-primary","p-0",2,"text-decoration","none",3,"click","disabled"],["routerLink","/pages/users/groups/forms",1,"link","link-primary",3,"queryParams"],[4,"ngIf","ngIfElse"],[3,"value",4,"ngIf"],[3,"value"],["colspan","3"],[1,"row",3,"formGroup"],[1,"d-flex","flex-column"],["for",""],["appendTo","body","formControlName","groupID","optionValue","id","optionLabel","name","placeholder","Select a Group",3,"showClear","options"],[1,"fs-5"]],template:function(n,i){if(n&1){let r=S();l(0,"app-main-panel",8),b("search",function(w){return _(r),f(i.onSearch(w))}),pe("isDialogFilterVisibleChange",function(w){return _(r),le(i.isDialogFilterVisible,w)||(i.isDialogFilterVisible=w),f(w)}),b("filterConfirmed",function(){return _(r),f(i.onOKFilter())}),u(1,ui,3,2,"ng-template",null,0,x)(3,ki,12,5,"ng-template",null,1,x)(5,Si,6,3,"ng-template",null,2,x),a(),l(7,"p-drawer",9),pe("visibleChange",function(w){return _(r),le(i.isDrawerOpen,w)||(i.isDrawerOpen=w),f(w)}),b("onHide",function(){return _(r),f(i.onHideDrawer())}),u(8,Ii,2,1,"ng-template",null,3,x),l(10,"div",10)(11,"div",11)(12,"div")(13,"label",12),d(14,"Users"),a(),y(15,"p-select",13),R(16,Di,2,1,"small",14,M),a()(),l(18,"div",11)(19,"div")(20,"label",12),d(21,"Groups"),a(),y(22,"p-select",15),R(23,Ei,2,1,"small",14,M),a()(),l(25,"div",11)(26,"div")(27,"label",12),d(28,"Access Type"),a(),y(29,"p-select",16),R(30,Fi,2,1,"small",14,M),a()(),l(32,"div",11)(33,"div")(34,"label",12),d(35,"Tags"),a(),y(36,"p-multiSelect",17),R(37,Ui,2,1,"small",14,M),a()(),l(39,"div",18)(40,"p-button",19),b("onClick",function(){return _(r),f(i.onInviteUser())}),a()()()()}n&2&&(p("isSearchableInput",!0)("isFilterable",!0),se("isDialogFilterVisible",i.isDialogFilterVisible),p("scrollable",!0),s(7),se("visible",i.isDrawerOpen),s(3),p("formGroup",i.forms.userForm),s(5),p("disabled",i.store.hasCheckedRows())("options",i.store.metaForm().options.users)("ngClass",I(15,ne,i.isInvalid("id","userForm"))),s(),A(i.getErrors("id","userForm")),s(6),p("options",i.store.metaForm().options.groups)("ngClass",I(17,ne,i.isInvalid("groupID","userForm"))),s(),A(i.getErrors("id","userForm")),s(6),p("options",i.store.metaForm().options.accessTypes)("ngClass",I(19,ne,i.isInvalid("accessTypeID","userForm"))),s(),A(i.getErrors("accessTypeID","userForm")),s(6),p("options",i.store.metaForm().options.journalTags)("ngClass",I(21,ne,i.isInvalid("listJournalTagID","userForm"))),s(),A(i.getErrors("listJournalTagID","userForm")))},dependencies:[_t,W,Z,J,Me,xt,gt,wt,bt,rt,Y,It,ge,qe,He,Ne,Qe,ze,it,et,tt,nt,ht,ft,Tt,at,ot,kt,Oe,Ct],styles:['[_nghost-%COMP%]{display:block} .p-tabs .p-tab{padding:"1rem 1.125rem"!important} .p-panel .p-panel-header{display:none!important}'],changeDetection:0})}}return t})();export{On as UserPageComponent};
|