dealposbooks 1.0.7 → 1.0.9
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 +88 -88
- package/assets/scss/fonts/montserrat/Montserrat-Bold.woff2 +0 -0
- package/assets/scss/fonts/montserrat/Montserrat-Italic.woff2 +0 -0
- package/assets/scss/fonts/montserrat/Montserrat-Regular.woff2 +0 -0
- package/assets/scss/fonts/montserrat/Montserrat-SemiBold.woff2 +0 -0
- package/assets/scss/fonts/roboto-slab/RobotoSlab-Black.woff2 +0 -0
- package/assets/scss/fonts/roboto-slab/RobotoSlab-Bold.woff2 +0 -0
- package/assets/scss/fonts/roboto-slab/RobotoSlab-ExtraBold.woff2 +0 -0
- package/assets/scss/fonts/roboto-slab/RobotoSlab-ExtraLight.woff2 +0 -0
- package/assets/scss/fonts/roboto-slab/RobotoSlab-Light.woff2 +0 -0
- package/assets/scss/fonts/roboto-slab/RobotoSlab-Medium.woff2 +0 -0
- package/assets/scss/fonts/roboto-slab/RobotoSlab-Regular.woff2 +0 -0
- package/assets/scss/fonts/roboto-slab/RobotoSlab-SemiBold.woff2 +0 -0
- package/assets/scss/fonts/roboto-slab/RobotoSlab-Thin.woff2 +0 -0
- package/assets/scss/layouts/_layout.scss +6 -6
- package/assets/scss/layouts/_sidebar.scss +8 -6
- package/assets/scss/style.scss +20 -8
- package/assets/scss/variables/_variables.scss +11 -35
- package/{chunk-OM3AWD5C.js → chunk-25PFXJAK.js} +1 -1
- package/chunk-2ODJIB2A.js +2 -0
- package/{chunk-D7G3TZFD.js → chunk-2RWUYFYR.js} +1 -1
- package/chunk-3GWDCNXX.js +397 -0
- package/chunk-4ANSU2AT.js +137 -0
- package/{chunk-FRUVZQE2.js → chunk-52HZNWBM.js} +4 -2
- package/{chunk-C6OIY3SK.js → chunk-63UNI6LK.js} +3 -3
- package/chunk-7LG2CFYI.js +1 -0
- package/{chunk-4WX4CTCF.js → chunk-AH4LZWJY.js} +1 -1
- package/chunk-AKBPKNCH.js +1 -0
- package/chunk-AOB6BRGQ.js +1 -0
- package/chunk-ATVC2UCR.js +47 -0
- package/chunk-AWY6AD76.js +1 -0
- package/chunk-B4JAAGJX.js +1 -0
- package/chunk-BGKS3L73.js +246 -0
- package/{chunk-T4BLJS6I.js → chunk-C66O26ZI.js} +2 -2
- package/chunk-C6Q5SG76.js +1 -0
- package/chunk-DOKYUX3G.js +1 -0
- package/{chunk-HTIWSCTK.js → chunk-E6EWXQXJ.js} +1 -1
- package/{chunk-AVVIJQVC.js → chunk-E6QGADC5.js} +6 -2
- package/chunk-EN5MVYJQ.js +180 -0
- package/chunk-EP22HTZC.js +300 -0
- package/chunk-FJ7O4K2Y.js +1 -0
- package/chunk-FVXLQNAC.js +193 -0
- package/chunk-G52TDPSD.js +297 -0
- package/chunk-GCTIPWTU.js +1 -0
- package/chunk-GMTXOQ6X.js +1 -0
- package/chunk-GRTIJ77T.js +1 -0
- package/chunk-HG23WDL5.js +1660 -0
- package/chunk-I4HDCL3W.js +1 -0
- package/{chunk-SKH7LGD3.js → chunk-I7MT7OUB.js} +1 -1
- package/chunk-ISXV3FIH.js +1 -0
- package/{chunk-NHEOQJVG.js → chunk-JFAO2CIB.js} +1 -1
- package/chunk-JQNCWTZN.js +1 -0
- package/{chunk-CUPI27LK.js → chunk-JT2WCR5Q.js} +1 -1
- package/chunk-JXNLXEJT.js +1 -0
- package/chunk-K36WQVFR.js +1 -0
- package/{chunk-XVXUJ33X.js → chunk-KFHCGO62.js} +1 -1
- package/chunk-LCATVZKP.js +141 -0
- package/chunk-LJMMN36O.js +1 -0
- package/{chunk-BFBSEK4H.js → chunk-MNPBLC23.js} +2 -2
- package/{chunk-36254LID.js → chunk-NQ24E7JY.js} +1 -1
- package/{chunk-7HQ6WSSU.js → chunk-NTDTN5DF.js} +1 -1
- package/{chunk-6VATP7AD.js → chunk-O7OAT4UO.js} +1 -1
- package/chunk-OHVHLILJ.js +1 -0
- package/chunk-OJWZH7AB.js +301 -0
- package/{chunk-ZZCZU47E.js → chunk-PG4QL7N2.js} +1 -1
- package/chunk-PNAWRNGD.js +197 -0
- package/chunk-QJ2XA575.js +1 -0
- package/chunk-RJYIKNTI.js +1 -0
- package/chunk-RR5AUWZO.js +1 -0
- package/chunk-RSHFIZV3.js +7 -0
- package/chunk-SQKLMC5H.js +231 -0
- package/{chunk-P7OQDOZ5.js → chunk-T3ZCO6EC.js} +1 -1
- package/chunk-T7R7C3RX.js +1 -0
- package/chunk-TJSPXPO6.js +59 -0
- package/chunk-TNXHYK2R.js +7 -0
- package/chunk-TTG6XQNP.js +1 -0
- package/chunk-UC2RR4WT.js +210 -0
- package/chunk-UOFRXQI7.js +1 -0
- package/{chunk-CGUMLMMW.js → chunk-UVBFYB2X.js} +2 -2
- package/{chunk-ECOKK22J.js → chunk-WCQQSWYQ.js} +21 -67
- package/{chunk-ZNSZA7QK.js → chunk-WTRMIJHX.js} +1 -1
- package/chunk-Z4SGDPGH.js +821 -0
- package/chunk-ZNN2E36Y.js +1 -0
- package/index.html +3 -3
- package/main-F2OQVLJM.js +1 -0
- package/package.json +1 -1
- package/styles-GUJHQHWA.css +1 -0
- package/assets/scss/fonts/Montserrat-Black.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-BlackItalic.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-Bold.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-BoldItalic.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-ExtraBold.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-ExtraBoldItalic.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-ExtraLight.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-ExtraLightItalic.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-Italic.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-Light.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-LightItalic.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-Medium.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-MediumItalic.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-Regular.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-SemiBold.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-SemiBoldItalic.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-Thin.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-ThinItalic.woff2 +0 -0
- package/assets/scss/fonts/Roboto-Italic-VariableFont_wdth,wght.woff2 +0 -0
- package/assets/scss/fonts/Roboto-VariableFont_wdth,wght.woff2 +0 -0
- package/assets/scss/fonts/RobotoSlab-VariableFont_wght.woff2 +0 -0
- package/chunk-2TIQLYOU.js +0 -1
- package/chunk-3RX6VPXR.js +0 -2
- package/chunk-4KSABCT6.js +0 -1
- package/chunk-5U24N52S.js +0 -1
- package/chunk-6SHWLH3C.js +0 -141
- package/chunk-7BUIG2V4.js +0 -2
- package/chunk-A63HKFUG.js +0 -7
- package/chunk-BMZ2A6GT.js +0 -1
- package/chunk-DFW6MEY3.js +0 -1
- package/chunk-EQDQRRRY.js +0 -1
- package/chunk-FJNTF5KS.js +0 -1
- package/chunk-FT6T65H6.js +0 -191
- package/chunk-G7QGHGLM.js +0 -1767
- package/chunk-KSOH6FOP.js +0 -160
- package/chunk-L3OWH62Z.js +0 -1
- package/chunk-LVEM3QDX.js +0 -180
- package/chunk-MYWX5CJP.js +0 -1
- package/chunk-NAZKZSVO.js +0 -1
- package/chunk-NFJLN5KP.js +0 -1
- package/chunk-OB4H7LE4.js +0 -1
- package/chunk-PFEDDKVG.js +0 -235
- package/chunk-PJF5SBZS.js +0 -2
- package/chunk-QHTRP332.js +0 -1
- package/chunk-QSMNYWAY.js +0 -1
- package/chunk-RYKEISKQ.js +0 -1
- package/chunk-SMINY2HR.js +0 -428
- package/chunk-T6W6HJCE.js +0 -1
- package/chunk-UJUUMHOE.js +0 -284
- package/chunk-ULH6XT2Q.js +0 -931
- package/chunk-WB6KUPUB.js +0 -393
- package/chunk-WKMCCUUK.js +0 -1
- package/chunk-WQNK5ZUV.js +0 -1
- package/chunk-XTTFTDKZ.js +0 -1
- package/chunk-ZQDTA2BC.js +0 -189
- package/main-ZQK6GRTL.js +0 -1
- package/styles-PZKETPHN.css +0 -1
package/chunk-4KSABCT6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as q}from"./chunk-4WX4CTCF.js";import{a as L,b as $}from"./chunk-CGUMLMMW.js";import"./chunk-XVXUJ33X.js";import{k as F,m as H,n as K,o as z}from"./chunk-G7QGHGLM.js";import"./chunk-SMINY2HR.js";import{g as O}from"./chunk-LVEM3QDX.js";import"./chunk-ULH6XT2Q.js";import"./chunk-ZQDTA2BC.js";import"./chunk-QSMNYWAY.js";import"./chunk-7BUIG2V4.js";import"./chunk-WKMCCUUK.js";import"./chunk-P7OQDOZ5.js";import"./chunk-S35HUXPS.js";import"./chunk-OM3AWD5C.js";import{n as N,r as V,s as A,t as G}from"./chunk-DFW6MEY3.js";import{$ as T,$b as I,Eb as b,Ic as f,Jc as j,Ka as C,Kc as J,Lc as w,Nb as c,Wc as P,Yb as t,Yc as B,Zb as n,_b as S,ac as E,cc as y,gc as _,hc as x,jb as l,la as M,pc as o,qc as p,t as D,ta as g,ua as v,xb as R,yc as k}from"./chunk-A63HKFUG.js";import{a as d,b as u}from"./chunk-EQDQRRRY.js";var te=()=>({"min-width":"50rem"});function ne(r,h){if(r&1){let e=y();t(0,"button",7),_("click",function(){g(e);let a=x();return v(a.onGenerateJournal())}),o(1," Generate Journal "),n()}}function ie(r,h){r&1&&(t(0,"tr")(1,"th",9),S(2,"p-tableHeaderCheckbox"),n(),t(3,"th"),o(4,"Outlet"),n(),t(5,"th"),o(6,"Number"),n(),t(7,"th"),o(8,"Customer"),n(),t(9,"th"),o(10,"Date"),n(),t(11,"th"),o(12,"Due"),n(),t(13,"th"),o(14,"Amount"),n(),t(15,"th"),o(16,"Payment"),n(),t(17,"th"),o(18,"Delivery"),n()())}function ae(r,h){if(r&1&&(t(0,"tr")(1,"td"),S(2,"p-tableCheckbox",10),n(),t(3,"td"),o(4),n(),t(5,"td"),o(6),n(),t(7,"td"),o(8),n(),t(9,"td"),o(10),f(11,"date"),n(),t(12,"td"),o(13),f(14,"date"),n(),t(15,"td"),o(16),f(17,"number"),n(),t(18,"td"),S(19,"p-chip",11),n(),t(20,"td"),S(21,"p-chip",11),n()()),r&2){let e=h.$implicit;l(2),c("value",e),l(2),p(e.outlet),l(2),p(e.number),l(2),p(e.customer),l(2),p(J(11,9,e.date,"d MMM y hh:mm")),l(3),p(J(14,12,e.due,"d MMM y")),l(3),p(j(17,15,e.amount)),l(3),c("label",e.payment),l(2),c("label",e.delivery)}}function oe(r,h){if(r&1){let e=y();t(0,"p-table",8),_("onRowSelect",function(a){g(e);let m=x();return v(m.onRowSelect(a))}),b(1,ie,19,0,"ng-template",null,0,w)(3,ae,22,17,"ng-template",null,1,w),n()}if(r&2){let e=x();c("value",e.journalInvoice().data)("tableStyle",k(2,te))}}var X=(()=>{class r{constructor(){this.generateJournalService=M(q),this.journalInvoice=C(null),this.pageData=C({PageNumber:1,PageSize:10,Number:""}),this.selectedRows=P(()=>this.journalInvoice()&&Array.isArray(this.journalInvoice().data)?this.journalInvoice().data.filter(e=>e.checked):[]),B(()=>{let e=this.pageData();if(e){let i=Object.entries(e).reduce((a,[m,s])=>(m==="Number"&&typeof s=="string"&&s.length===0?delete a[m]:a[m]=s,a),{});this.getJournalInvoice(i)}})}getJournalInvoice(e){this.generateJournalService.getJournalInvoice(e).pipe(D(i=>u(d({},i),{data:i.data.map(a=>u(d({},a),{checked:!1}))})),T(i=>this.journalInvoice.set(i))).subscribe()}onRowSelect(e){console.log("onRowSelect",e);let i=this.journalInvoice().data.slice().map(a=>a.id===e.data.id?u(d({},a),{checked:!0}):u(d({},a),{checked:!1}));this.journalInvoice.update(a=>u(d({},a),{data:i}))}ngOnInit(){console.log("ngOnInit")}onGenerateJournal(){let e=this.journalInvoice().data.filter(i=>i.checked).map(i=>i.id);this.generateJournalService.generateJournalInvoice(e).subscribe()}onSearch(e){this.pageData.update(i=>u(d({},i),{Number:e}))}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=R({type:r,selectors:[["app-customer-invoice"]],decls:5,vars:3,consts:[["header",""],["body",""],["pageTitle","Customer Invoice",3,"searchEmitted","isSearchableInput"],["ngProjectAs","action-button",5,["action-button"]],["type","button","class","btn btn-success rounded",3,"click",4,"ngIf"],["ngProjectAs","content",5,["content"]],["dataKey","id",3,"value","tableStyle","onRowSelect",4,"ngIf"],["type","button",1,"btn","btn-success","rounded",3,"click"],["dataKey","id",3,"onRowSelect","value","tableStyle"],[2,"width","4rem"],[3,"value"],[3,"label"]],template:function(i,a){i&1&&(t(0,"app-main-panel",2),_("searchEmitted",function(s){return a.onSearch(s)}),I(1,3),b(2,ne,2,0,"button",4),E(),I(3,5),b(4,oe,5,3,"p-table",6),E(),n()),i&2&&(c("isSearchableInput",!0),l(2),c("ngIf",a.selectedRows().length),l(2),c("ngIf",a.journalInvoice()))},dependencies:[O,z,F,H,K,G,N,A,V,$,L],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return r})();var re=()=>({"min-width":"50rem"});function le(r,h){if(r&1){let e=y();t(0,"button",7),_("click",function(){g(e);let a=x();return v(a.onGenerateJournal())}),o(1," Generate Journal "),n()}}function pe(r,h){r&1&&(t(0,"tr")(1,"th",9),S(2,"p-tableHeaderCheckbox"),n(),t(3,"th"),o(4,"Outlet"),n(),t(5,"th"),o(6,"Number"),n(),t(7,"th"),o(8,"Customer"),n(),t(9,"th"),o(10,"Date"),n(),t(11,"th"),o(12,"Due"),n(),t(13,"th"),o(14,"Amount"),n(),t(15,"th"),o(16,"Payment"),n(),t(17,"th"),o(18,"Delivery"),n()())}function me(r,h){if(r&1&&(t(0,"tr")(1,"td"),S(2,"p-tableCheckbox",10),n(),t(3,"td"),o(4),n(),t(5,"td"),o(6),n(),t(7,"td"),o(8),n(),t(9,"td"),o(10),f(11,"date"),n(),t(12,"td"),o(13),f(14,"date"),n(),t(15,"td"),o(16),f(17,"number"),n(),t(18,"td"),S(19,"p-chip",11),n(),t(20,"td"),S(21,"p-chip",11),n()()),r&2){let e=h.$implicit;l(2),c("value",e),l(2),p(e.outlet),l(2),p(e.number),l(2),p(e.customer),l(2),p(J(11,9,e.date,"d MMM y hh:mm")),l(3),p(J(14,12,e.due,"d MMM y")),l(3),p(j(17,15,e.amount)),l(3),c("label",e.payment),l(2),c("label",e.delivery)}}function ce(r,h){if(r&1){let e=y();t(0,"p-table",8),_("onRowSelect",function(a){g(e);let m=x();return v(m.onRowSelect(a))}),b(1,pe,19,0,"ng-template",null,0,w)(3,me,22,17,"ng-template",null,1,w),n()}if(r&2){let e=x();c("value",e.journalInvoice().data)("tableStyle",k(2,re))}}var Y=(()=>{class r{constructor(){this.generateJournalService=M(q),this.journalInvoice=C(null),this.pageData=C({PageNumber:1,PageSize:10,Number:""}),this.selectedRows=P(()=>this.journalInvoice()&&Array.isArray(this.journalInvoice().data)?this.journalInvoice().data.filter(e=>e.checked):[]),B(()=>{let e=this.pageData();if(e){let i=Object.entries(e).reduce((a,[m,s])=>(m==="Number"&&typeof s=="string"&&s.length===0?delete a[m]:a[m]=s,a),{});this.getJournalInvoice(i)}})}getJournalInvoice(e){this.generateJournalService.getJournalSupplierBill(e).pipe(D(i=>u(d({},i),{data:i.data.map(a=>u(d({},a),{checked:!1}))})),T(i=>this.journalInvoice.set(i))).subscribe()}onRowSelect(e){console.log("onRowSelect",e);let i=this.journalInvoice().data.slice().map(a=>a.id===e.data.id?u(d({},a),{checked:!0}):u(d({},a),{checked:!1}));this.journalInvoice.update(a=>u(d({},a),{data:i}))}onGenerateJournal(){let e=this.journalInvoice().data.filter(i=>i.checked).map(i=>i.id);this.generateJournalService.generateJournalSupplierBill(e).subscribe()}onSearch(e){this.pageData.update(i=>u(d({},i),{Number:e}))}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=R({type:r,selectors:[["app-journal-supplier-bill"]],decls:5,vars:3,consts:[["header",""],["body",""],["pageTitle","Supplier Bill",3,"searchEmitted","isSearchableInput"],["ngProjectAs","action-button",5,["action-button"]],["type","button","class","btn btn-success rounded",3,"click",4,"ngIf"],["ngProjectAs","content",5,["content"]],["dataKey","id",3,"value","tableStyle","onRowSelect",4,"ngIf"],["type","button",1,"btn","btn-success","rounded",3,"click"],["dataKey","id",3,"onRowSelect","value","tableStyle"],[2,"width","4rem"],[3,"value"],[3,"label"]],template:function(i,a){i&1&&(t(0,"app-main-panel",2),_("searchEmitted",function(s){return a.onSearch(s)}),I(1,3),b(2,le,2,0,"button",4),E(),I(3,5),b(4,ce,5,3,"p-table",6),E(),n()),i&2&&(c("isSearchableInput",!0),l(2),c("ngIf",a.selectedRows().length),l(2),c("ngIf",a.journalInvoice()))},dependencies:[O,z,F,H,K,G,N,A,V,$,L],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return r})();var de=()=>({"min-width":"50rem"});function ue(r,h){if(r&1){let e=y();t(0,"button",7),_("click",function(){g(e);let a=x();return v(a.onGenerateJournal())}),o(1," Generate Journal "),n()}}function se(r,h){r&1&&(t(0,"tr")(1,"th",9),S(2,"p-tableHeaderCheckbox"),n(),t(3,"th"),o(4,"Number"),n(),t(5,"th"),o(6,"Open"),n(),t(7,"th"),o(8,"Close"),n(),t(9,"th"),o(10,"Cashier"),n(),t(11,"th"),o(12,"Sales + Tax"),n(),t(13,"th"),o(14,"Invoices"),n(),t(15,"th"),o(16,"Outlet"),n(),t(17,"th"),o(18,"Register"),n(),t(19,"th"),o(20,"Visitors"),n()())}function he(r,h){if(r&1&&(t(0,"tr")(1,"td"),S(2,"p-tableCheckbox",10),n(),t(3,"td"),o(4),n(),t(5,"td"),o(6),f(7,"date"),n(),t(8,"td"),o(9),f(10,"date"),n(),t(11,"td"),o(12),n(),t(13,"td"),o(14),f(15,"number"),n(),t(16,"td"),o(17),f(18,"number"),n(),t(19,"td"),o(20),n(),t(21,"td"),o(22),n(),t(23,"td"),o(24),f(25,"number"),n()()),r&2){let e=h.$implicit;l(2),c("value",e),l(2),p(e.number),l(2),p(J(7,10,e.open,"dd MMM y hh:mm")),l(3),p(J(10,13,e.close,"dd MMM y hh:mm")),l(3),p(e.cashier),l(2),p(j(15,16,e.salesNTax)),l(3),p(j(18,18,e.totalInvoice)),l(3),p(e.outlet),l(2),p(e.register),l(2),p(j(25,20,e.visitors))}}function fe(r,h){if(r&1){let e=y();t(0,"p-table",8),_("onRowSelect",function(a){g(e);let m=x();return v(m.onRowSelect(a))}),b(1,se,21,0,"ng-template",null,0,w)(3,he,26,22,"ng-template",null,1,w),n()}if(r&2){let e=x();c("value",e.journalInvoice().data)("tableStyle",k(2,de))}}var Z=(()=>{class r{constructor(){this.generateJournalService=M(q),this.journalInvoice=C(null),this.pageData=C({PageNumber:1,PageSize:10,Number:""}),this.selectedRows=P(()=>this.journalInvoice()&&Array.isArray(this.journalInvoice().data)?this.journalInvoice().data.filter(e=>e.checked):[]),B(()=>{let e=this.pageData();if(e){let i=Object.entries(e).reduce((a,[m,s])=>(m==="Number"&&typeof s=="string"&&s.length===0?delete a[m]:a[m]=s,a),{});this.getJournalInvoice(i)}})}getJournalInvoice(e){this.generateJournalService.getJournalShift(e).pipe(D(i=>u(d({},i),{data:i.data.map(a=>u(d({},a),{checked:!1}))})),T(i=>this.journalInvoice.set(i))).subscribe()}onRowSelect(e){console.log("onRowSelect",e);let i=this.journalInvoice().data.slice().map(a=>a.id===e.data.id?u(d({},a),{checked:!0}):u(d({},a),{checked:!1}));this.journalInvoice.update(a=>u(d({},a),{data:i}))}onGenerateJournal(){let e=this.journalInvoice().data.filter(i=>i.checked).map(i=>i.id);this.generateJournalService.generateJournalSupplierBill(e).subscribe()}onSearch(e){this.pageData.update(i=>u(d({},i),{Number:e}))}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=R({type:r,selectors:[["app-journal-shift"]],decls:5,vars:3,consts:[["header",""],["body",""],["pageTitle","Shift Journal",3,"searchEmitted","isSearchableInput"],["ngProjectAs","action-button",5,["action-button"]],["type","button","class","btn btn-success rounded",3,"click",4,"ngIf"],["ngProjectAs","content",5,["content"]],["dataKey","id",3,"value","tableStyle","onRowSelect",4,"ngIf"],["type","button",1,"btn","btn-success","rounded",3,"click"],["dataKey","id",3,"onRowSelect","value","tableStyle"],[2,"width","4rem"],[3,"value"]],template:function(i,a){i&1&&(t(0,"app-main-panel",2),_("searchEmitted",function(s){return a.onSearch(s)}),I(1,3),b(2,ue,2,0,"button",4),E(),I(3,5),b(4,fe,5,3,"p-table",6),E(),n()),i&2&&(c("isSearchableInput",!0),l(2),c("ngIf",a.selectedRows().length),l(2),c("ngIf",a.journalInvoice()))},dependencies:[O,z,F,H,K,G,N,A,V,$],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return r})();var Ye=[{path:"invoice",component:X},{path:"supplier-bill",component:Y},{path:"shift",component:Z},{path:"ar-collection",loadComponent:()=>import("./chunk-MYWX5CJP.js").then(r=>r.ARJournalComponent)},{path:"ap-collection",loadComponent:()=>import("./chunk-WQNK5ZUV.js").then(r=>r.ApJournalComponent)},{path:"adjustment",loadComponent:()=>import("./chunk-BMZ2A6GT.js").then(r=>r.AdjustmentJournalComponent)}];export{Ye as generateJournalRoutes};
|
package/chunk-5U24N52S.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ab as H,Ca as p,J as U,N as m,Pc as $,W as V,Y as P,fa as c,ga as G,ia as w,ka as l,kb as F,n as o,p as u,t as E,wa as T,x as _,y as A,yb as B,z as K}from"./chunk-A63HKFUG.js";import{a as S}from"./chunk-EQDQRRRY.js";var L=class{},q=(()=>{class n extends L{getTranslation(e){return o({})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=T(n)))(i||n)}})();static \u0275prov=c({token:n,factory:n.\u0275fac})}return n})(),D=class{},J=(()=>{class n{handle(e){return e.key}static \u0275fac=function(t){return new(t||n)};static \u0275prov=c({token:n,factory:n.\u0275fac})}return n})();function y(n,r){if(n===r)return!0;if(n===null||r===null)return!1;if(n!==n&&r!==r)return!0;let e=typeof n,t=typeof r,i,s,a;if(e==t&&e=="object")if(Array.isArray(n)){if(!Array.isArray(r))return!1;if((i=n.length)==r.length){for(s=0;s<i;s++)if(!y(n[s],r[s]))return!1;return!0}}else{if(Array.isArray(r))return!1;a=Object.create(null);for(s in n){if(!y(n[s],r[s]))return!1;a[s]=!0}for(s in r)if(!(s in a)&&typeof r[s]<"u")return!1;return!0}return!1}function h(n){return typeof n<"u"&&n!==null}function M(n){return n&&typeof n=="object"&&!Array.isArray(n)}function W(n,r){let e=Object.assign({},n);return M(n)&&M(r)&&Object.keys(r).forEach(t=>{M(r[t])?t in n?e[t]=W(n[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}var C=class{},X=(()=>{class n extends C{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,t){let i;return typeof e=="string"?i=this.interpolateString(e,t):typeof e=="function"?i=this.interpolateFunction(e,t):i=e,i}getValue(e,t){let i=typeof t=="string"?t.split("."):[t];t="";do t+=i.shift(),h(e)&&h(e[t])&&(typeof e[t]=="object"||!i.length)?(e=e[t],t=""):i.length?t+=".":e=void 0;while(i.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(i,s)=>{let a=this.getValue(t,s);return h(a)?a:i}):e}static \u0275fac=(()=>{let e;return function(i){return(e||(e=T(n)))(i||n)}})();static \u0275prov=c({token:n,factory:n.\u0275fac})}return n})(),v=class{},z=(()=>{class n extends v{compile(e,t){return e}compileTranslations(e,t){return e}static \u0275fac=(()=>{let e;return function(i){return(e||(e=T(n)))(i||n)}})();static \u0275prov=c({token:n,factory:n.\u0275fac})}return n})(),j=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new p;onLangChange=new p;onDefaultLangChange=new p},R=new w("USE_STORE"),I=new w("USE_DEFAULT_LANG"),N=new w("DEFAULT_LANGUAGE"),O=new w("USE_EXTEND"),x=(()=>{class n{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new p;_onLangChange=new p;_onDefaultLangChange=new p;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}constructor(e,t,i,s,a,f=!0,g=!1,d=!1,b){this.store=e,this.currentLoader=t,this.compiler=i,this.parser=s,this.missingTranslationHandler=a,this.useDefaultLang=f,this.isolate=g,this.extend=d,b&&this.setDefaultLang(b)}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(this.defaultLang==null&&(this.defaultLang=e),t.pipe(m(1)).subscribe(i=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return o(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe(m(1)).subscribe(i=>{this.changeLang(e)}),t):(this.changeLang(e),o(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;let t=this.currentLoader.getTranslation(e).pipe(V(1),m(1));return this.loadingTranslations=t.pipe(E(i=>this.compiler.compileTranslations(i,e)),V(1),m(1)),this.loadingTranslations.subscribe({next:i=>{this.translations[e]=this.extend&&this.translations[e]?S(S({},i),this.translations[e]):i,this.updateLangs(),this.pending=!1},error:i=>{this.pending=!1}}),t}setTranslation(e,t,i=!1){t=this.compiler.compileTranslations(t,e),(i||this.extend)&&this.translations[e]?this.translations[e]=W(this.translations[e],t):this.translations[e]=t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{this.langs.indexOf(t)===-1&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,i){let s;if(t instanceof Array){let a={},f=!1;for(let g of t)a[g]=this.getParsedResult(e,g,i),u(a[g])&&(f=!0);if(f){let g=t.map(d=>u(a[d])?a[d]:o(a[d]));return K(g).pipe(E(d=>{let b={};return d.forEach((Z,Q)=>{b[t[Q]]=Z}),b}))}return a}if(e&&(s=this.parser.interpolate(this.parser.getValue(e,t),i)),typeof s>"u"&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(s=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),i)),typeof s>"u"){let a={key:t,translateService:this};typeof i<"u"&&(a.interpolateParams=i),s=this.missingTranslationHandler.handle(a)}return typeof s<"u"?s:t}get(e,t){if(!h(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(U(i=>(i=this.getParsedResult(i,e,t),u(i)?i:o(i))));{let i=this.getParsedResult(this.translations[this.currentLang],e,t);return u(i)?i:o(i)}}getStreamOnTranslationChange(e,t){if(!h(e)||!e.length)throw new Error('Parameter "key" required');return _(A(()=>this.get(e,t)),this.onTranslationChange.pipe(P(i=>{let s=this.getParsedResult(i.translations,e,t);return typeof s.subscribe=="function"?s:o(s)})))}stream(e,t){if(!h(e)||!e.length)throw new Error('Parameter "key" required');return _(A(()=>this.get(e,t)),this.onLangChange.pipe(P(i=>{let s=this.getParsedResult(i.translations,e,t);return u(s)?s:o(s)})))}instant(e,t){if(!h(e)||!e.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],e,t);if(u(i)){if(e instanceof Array){let s={};return e.forEach((a,f)=>{s[e[f]]=e[f]}),s}return e}else return i}set(e,t,i=this.currentLang){this.translations[i][e]=this.compiler.compile(t,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;if(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,!(typeof e>"u"))return e.indexOf("-")!==-1&&(e=e.split("-")[0]),e.indexOf("_")!==-1&&(e=e.split("_")[0]),e}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}static \u0275fac=function(t){return new(t||n)(l(j),l(L),l(v),l(C),l(D),l(I),l(R),l(O),l(N))};static \u0275prov=c({token:n,factory:n.\u0275fac})}return n})();var he=(()=>{class n{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,t){this.translate=e,this._ref=t}updateValue(e,t,i){let s=a=>{this.value=a!==void 0?a:e,this.lastKey=e,this._ref.markForCheck()};if(i){let a=this.translate.getParsedResult(i,e,t);u(a.subscribe)?a.subscribe(s):s(a)}this.translate.get(e,t).subscribe(s)}transform(e,...t){if(!e||!e.length)return e;if(y(e,this.lastKey)&&y(t,this.lastParams))return this.value;let i;if(h(t[0])&&t.length)if(typeof t[0]=="string"&&t[0].length){let s=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(s)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else typeof t[0]=="object"&&!Array.isArray(t[0])&&(i=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(s=>{this.lastKey&&s.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,i,s.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(s=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,i,s.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,i))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(t){return new(t||n)(F(x,16),F($,16))};static \u0275pipe=H({name:"translate",type:n,pure:!1,standalone:!1});static \u0275prov=c({token:n,factory:n.\u0275fac})}return n})(),fe=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:L,useClass:q},e.compiler||{provide:v,useClass:z},e.parser||{provide:C,useClass:X},e.missingTranslationHandler||{provide:D,useClass:J},j,{provide:R,useValue:e.isolate},{provide:I,useValue:e.useDefaultLang},{provide:O,useValue:e.extend},{provide:N,useValue:e.defaultLanguage},x]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:L,useClass:q},e.compiler||{provide:v,useClass:z},e.parser||{provide:C,useClass:X},e.missingTranslationHandler||{provide:D,useClass:J},{provide:R,useValue:e.isolate},{provide:I,useValue:e.useDefaultLang},{provide:O,useValue:e.extend},{provide:N,useValue:e.defaultLanguage},x]}}static \u0275fac=function(t){return new(t||n)};static \u0275mod=B({type:n});static \u0275inj=G({})}return n})();export{L as a,he as b,fe as c};
|
package/chunk-6SHWLH3C.js
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import{b as dt,c as ft}from"./chunk-G7QGHGLM.js";import{a as $,p as J,q as ht}from"./chunk-ULH6XT2Q.js";import{A as rt,H as lt,I as ct,J as L,R as W,V as F,_ as U,e as q,ea as bt,ga as ut,oa as pt,pa as G}from"./chunk-ZQDTA2BC.js";import{k as ot,p as st,t as k,v as j}from"./chunk-DFW6MEY3.js";import{Bb as m,Cb as tt,Eb as u,Ga as p,Ka as R,Mb as r,Nb as O,Pb as _,Tb as y,Uc as C,Vc as it,Wc as s,Yb as D,Yc as at,Zb as S,_b as M,bc as H,cc as A,ea as B,fa as X,ga as Y,gc as I,hc as d,ic as T,jb as v,jc as w,kc as Q,la as f,lc as x,mc as l,nc as c,sb as N,ta as P,ua as V,wa as h,xb as g,xc as et,yb as Z,zc as nt}from"./chunk-A63HKFUG.js";var mt=["previcon"],_t=["nexticon"],yt=["content"],Tt=["prevButton"],wt=["nextButton"],xt=["inkbar"],Ct=["tabs"],E=["*"],kt=t=>({"p-tablist-viewport":t});function $t(t,b){t&1&&H(0)}function Bt(t,b){if(t&1&&u(0,$t,1,0,"ng-container",11),t&2){let e=d(2);O("ngTemplateOutlet",e.prevIconTemplate||e._prevIconTemplate)}}function Dt(t,b){t&1&&M(0,"ChevronLeftIcon")}function It(t,b){if(t&1){let e=A();D(0,"button",10,3),I("click",function(){P(e);let n=d();return V(n.onPrevButtonClick())}),u(2,Bt,1,1,"ng-container")(3,Dt,1,0,"ChevronLeftIcon"),S()}if(t&2){let e=d();r("aria-label",e.prevButtonAriaLabel)("tabindex",e.tabindex())("data-pc-group-section","navigator"),v(2),y(e.prevIconTemplate||e._prevIconTemplate?2:3)}}function Lt(t,b){t&1&&H(0)}function Ft(t,b){if(t&1&&u(0,Lt,1,0,"ng-container",11),t&2){let e=d(2);O("ngTemplateOutlet",e.nextIconTemplate||e._nextIconTemplate)}}function Et(t,b){t&1&&M(0,"ChevronRightIcon")}function Pt(t,b){if(t&1){let e=A();D(0,"button",12,4),I("click",function(){P(e);let n=d();return V(n.onNextButtonClick())}),u(2,Ft,1,1,"ng-container")(3,Et,1,0,"ChevronRightIcon"),S()}if(t&2){let e=d();r("aria-label",e.nextButtonAriaLabel)("tabindex",e.tabindex())("data-pc-group-section","navigator"),v(2),y(e.nextIconTemplate||e._nextIconTemplate?2:3)}}function Vt(t,b){t&1&&w(0)}var Rt=({dt:t})=>`
|
|
2
|
-
.p-tabs {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.p-tablist {
|
|
8
|
-
display: flex;
|
|
9
|
-
position: relative;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.p-tabs-scrollable > .p-tablist {
|
|
13
|
-
overflow: hidden;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.p-tablist-viewport {
|
|
17
|
-
overflow-x: auto;
|
|
18
|
-
overflow-y: hidden;
|
|
19
|
-
scroll-behavior: smooth;
|
|
20
|
-
scrollbar-width: none;
|
|
21
|
-
overscroll-behavior: contain auto;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.p-tablist-viewport::-webkit-scrollbar {
|
|
25
|
-
display: none;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.p-tablist-tab-list {
|
|
29
|
-
position: relative;
|
|
30
|
-
display: flex;
|
|
31
|
-
background: ${t("tabs.tablist.background")};
|
|
32
|
-
border-style: solid;
|
|
33
|
-
border-color: ${t("tabs.tablist.border.color")};
|
|
34
|
-
border-width: ${t("tabs.tablist.border.width")};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.p-tablist-content {
|
|
38
|
-
flex-grow: 1;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.p-tablist-nav-button {
|
|
42
|
-
all: unset;
|
|
43
|
-
position: absolute !important;
|
|
44
|
-
flex-shrink: 0;
|
|
45
|
-
top: 0;
|
|
46
|
-
z-index: 2;
|
|
47
|
-
height: 100%;
|
|
48
|
-
display: flex;
|
|
49
|
-
align-items: center;
|
|
50
|
-
justify-content: center;
|
|
51
|
-
background: ${t("tabs.nav.button.background")};
|
|
52
|
-
color: ${t("tabs.nav.button.color")};
|
|
53
|
-
width: ${t("tabs.nav.button.width")};
|
|
54
|
-
transition: color ${t("tabs.transition.duration")}, outline-color ${t("tabs.transition.duration")}, box-shadow ${t("tabs.transition.duration")};
|
|
55
|
-
box-shadow: ${t("tabs.nav.button.shadow")};
|
|
56
|
-
outline-color: transparent;
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.p-tablist-nav-button:focus-visible {
|
|
61
|
-
z-index: 1;
|
|
62
|
-
box-shadow: ${t("tabs.nav.button.focus.ring.shadow")};
|
|
63
|
-
outline: ${t("tabs.nav.button.focus.ring.width")} ${t("tabs.nav.button.focus.ring.style")} ${t("tabs.nav.button.focus.ring.color")};
|
|
64
|
-
outline-offset: ${t("tabs.nav.button.focus.ring.offset")};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.p-tablist-nav-button:hover {
|
|
68
|
-
color: ${t("tabs.nav.button.hover.color")};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.p-tablist-prev-button {
|
|
72
|
-
left: 0;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.p-tablist-next-button {
|
|
76
|
-
right: 0;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.p-tab {
|
|
80
|
-
display: flex;
|
|
81
|
-
align-items: center;
|
|
82
|
-
flex-shrink: 0;
|
|
83
|
-
cursor: pointer;
|
|
84
|
-
user-select: none;
|
|
85
|
-
position: relative;
|
|
86
|
-
border-style: solid;
|
|
87
|
-
white-space: nowrap;
|
|
88
|
-
gap: ${t("tabs.tab.gap")};
|
|
89
|
-
background: ${t("tabs.tab.background")};
|
|
90
|
-
border-width: ${t("tabs.tab.border.width")};
|
|
91
|
-
border-color: ${t("tabs.tab.border.color")};
|
|
92
|
-
color: ${t("tabs.tab.color")};
|
|
93
|
-
padding: ${t("tabs.tab.padding")};
|
|
94
|
-
font-weight: ${t("tabs.tab.font.weight")};
|
|
95
|
-
transition: background ${t("tabs.transition.duration")}, border-color ${t("tabs.transition.duration")}, color ${t("tabs.transition.duration")}, outline-color ${t("tabs.transition.duration")}, box-shadow ${t("tabs.transition.duration")};
|
|
96
|
-
margin: ${t("tabs.tab.margin")};
|
|
97
|
-
outline-color: transparent;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.p-tab:not(.p-disabled):focus-visible {
|
|
101
|
-
z-index: 1;
|
|
102
|
-
box-shadow: ${t("tabs.tab.focus.ring.shadow")};
|
|
103
|
-
outline: ${t("tabs.tab.focus.ring.width")} ${t("tabs.tab.focus.ring.style")} ${t("tabs.tab.focus.ring.color")};
|
|
104
|
-
outline-offset: ${t("tabs.tab.focus.ring.offset")};
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.p-tab:not(.p-tab-active):not(.p-disabled):hover {
|
|
108
|
-
background: ${t("tabs.tab.hover.background")};
|
|
109
|
-
border-color: ${t("tabs.tab.hover.border.color")};
|
|
110
|
-
color: ${t("tabs.tab.hover.color")};
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.p-tab-active {
|
|
114
|
-
background: ${t("tabs.tab.active.background")};
|
|
115
|
-
border-color: ${t("tabs.tab.active.border.color")};
|
|
116
|
-
color: ${t("tabs.tab.active.color")};
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.p-tabpanels {
|
|
120
|
-
background: ${t("tabs.tabpanel.background")};
|
|
121
|
-
color: ${t("tabs.tabpanel.color")};
|
|
122
|
-
padding: ${t("tabs.tabpanel.padding")};
|
|
123
|
-
outline: 0 none;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.p-tabpanel:focus-visible {
|
|
127
|
-
box-shadow: ${t("tabs.tabpanel.focus.ring.shadow")};
|
|
128
|
-
outline: ${t("tabs.tabpanel.focus.ring.width")} ${t("tabs.tabpanel.focus.ring.style")} ${t("tabs.tabpanel.focus.ring.color")};
|
|
129
|
-
outline-offset: ${t("tabs.tabpanel.focus.ring.offset")};
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.p-tablist-active-bar {
|
|
133
|
-
z-index: 1;
|
|
134
|
-
display: block;
|
|
135
|
-
position: absolute;
|
|
136
|
-
bottom: ${t("tabs.active.bar.bottom")};
|
|
137
|
-
height: ${t("tabs.active.bar.height")};
|
|
138
|
-
background: ${t("tabs.active.bar.background")};
|
|
139
|
-
transition: 250ms cubic-bezier(0.35, 0, 0.25, 1);
|
|
140
|
-
}
|
|
141
|
-
`,Nt={root:({props:t})=>["p-tabs p-component",{"p-tabs-scrollable":t.scrollable}]},vt=(()=>{class t extends ut{name="tabs";theme=Rt;classes=Nt;static \u0275fac=(()=>{let e;return function(n){return(e||(e=h(t)))(n||t)}})();static \u0275prov=X({token:t,factory:t.\u0275fac})}return t})();var gt=(()=>{class t extends ${prevIconTemplate;nextIconTemplate;templates;content;prevButton;nextButton;inkbar;tabs;pcTabs=f(B(()=>z));isPrevButtonEnabled=R(!1);isNextButtonEnabled=R(!1);resizeObserver;showNavigators=s(()=>this.pcTabs.showNavigators());tabindex=s(()=>this.pcTabs.tabindex());scrollable=s(()=>this.pcTabs.scrollable());constructor(){super(),at(()=>{this.pcTabs.value(),j(this.platformId)&&setTimeout(()=>{this.updateInkBar()})})}get prevButtonAriaLabel(){return this.config.translation.aria.previous}get nextButtonAriaLabel(){return this.config.translation.aria.next}ngAfterViewInit(){super.ngAfterViewInit(),this.showNavigators()&&j(this.platformId)&&(this.updateButtonState(),this.bindResizeObserver())}_prevIconTemplate;_nextIconTemplate;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"previcon":this._prevIconTemplate=e.template;break;case"nexticon":this._nextIconTemplate=e.template;break}})}ngOnDestroy(){this.unbindResizeObserver(),super.ngOnDestroy()}onScroll(e){this.showNavigators()&&this.updateButtonState(),e.preventDefault()}onPrevButtonClick(){let e=this.content.nativeElement,i=F(e),n=Math.abs(e.scrollLeft)-i,a=n<=0?0:n;e.scrollLeft=U(e)?-1*a:a}onNextButtonClick(){let e=this.content.nativeElement,i=F(e)-this.getVisibleButtonWidths(),n=e.scrollLeft+i,a=e.scrollWidth-i,o=n>=a?a:n;e.scrollLeft=U(e)?-1*o:o}updateButtonState(){let e=this.content?.nativeElement,i=this.el?.nativeElement,{scrollWidth:n,offsetWidth:a}=e,o=Math.abs(e.scrollLeft),K=F(e);this.isPrevButtonEnabled.set(o!==0),this.isNextButtonEnabled.set(i.offsetWidth>=a&&o!==n-K)}updateInkBar(){let e=this.content.nativeElement,i=this.inkbar.nativeElement,n=this.tabs.nativeElement,a=lt(e,'[data-pc-name="tab"][data-p-active="true"]');i.style.width=rt(a)+"px",i.style.left=W(a).left-W(n).left+"px"}getVisibleButtonWidths(){let e=this.prevButton?.nativeElement,i=this.nextButton?.nativeElement;return[e,i].reduce((n,a)=>a?n+F(a):n,0)}bindResizeObserver(){this.resizeObserver=new ResizeObserver(()=>this.updateButtonState()),this.resizeObserver.observe(this.el.nativeElement)}unbindResizeObserver(){this.resizeObserver&&(this.resizeObserver.unobserve(this.el.nativeElement),this.resizeObserver=null)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=g({type:t,selectors:[["p-tablist"]],contentQueries:function(i,n,a){if(i&1&&(Q(a,mt,4),Q(a,_t,4),Q(a,pt,4)),i&2){let o;l(o=c())&&(n.prevIconTemplate=o.first),l(o=c())&&(n.nextIconTemplate=o.first),l(o=c())&&(n.templates=o)}},viewQuery:function(i,n){if(i&1&&(x(yt,5),x(Tt,5),x(wt,5),x(xt,5),x(Ct,5)),i&2){let a;l(a=c())&&(n.content=a.first),l(a=c())&&(n.prevButton=a.first),l(a=c())&&(n.nextButton=a.first),l(a=c())&&(n.inkbar=a.first),l(a=c())&&(n.tabs=a.first)}},hostVars:5,hostBindings:function(i,n){i&2&&(r("data-pc-name","tablist"),_("p-tablist",!0)("p-component",!0))},features:[m],ngContentSelectors:E,decls:9,vars:6,consts:[["content",""],["tabs",""],["inkbar",""],["prevButton",""],["nextButton",""],["type","button","pRipple","",1,"p-tablist-nav-button","p-tablist-prev-button"],[1,"p-tablist-content",3,"scroll","ngClass"],["role","tablist",1,"p-tablist-tab-list"],["role","presentation",1,"p-tablist-active-bar"],["type","button","pRipple","",1,"p-tablist-nav-button","p-tablist-next-button"],["type","button","pRipple","",1,"p-tablist-nav-button","p-tablist-prev-button",3,"click"],[4,"ngTemplateOutlet"],["type","button","pRipple","",1,"p-tablist-nav-button","p-tablist-next-button",3,"click"]],template:function(i,n){if(i&1){let a=A();T(),u(0,It,4,4,"button",5),D(1,"div",6,0),I("scroll",function(K){return P(a),V(n.onScroll(K))}),D(3,"div",7,1),w(5),M(6,"span",8,2),S()(),u(8,Pt,4,4,"button",9)}i&2&&(y(n.showNavigators()&&n.isPrevButtonEnabled()?0:-1),v(),O("ngClass",nt(4,kt,n.scrollable())),v(5),r("data-pc-section","inkbar"),v(2),y(n.showNavigators()&&n.isNextButtonEnabled()?8:-1))},dependencies:[k,ot,st,dt,ft,ht,J,G],encapsulation:2,changeDetection:0})}return t})(),Ot=(()=>{class t extends ${value=N();disabled=p(!1,{transform:C});pcTabs=f(B(()=>z));pcTabList=f(B(()=>gt));ripple=s(()=>this.config.ripple());id=s(()=>`${this.pcTabs.id()}_tab_${this.value()}`);ariaControls=s(()=>`${this.pcTabs.id()}_tabpanel_${this.value()}`);active=s(()=>q(this.pcTabs.value(),this.value()));tabindex=s(()=>this.active()?this.pcTabs.tabindex():-1);onFocus(e){this.pcTabs.selectOnFocus()&&this.changeActiveValue()}onClick(e){this.changeActiveValue()}onKeyDown(e){switch(e.code){case"ArrowRight":this.onArrowRightKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onEnterKey(e);break;default:break}e.stopPropagation()}onArrowRightKey(e){let i=this.findNextTab(e.currentTarget);i?this.changeFocusedTab(e,i):this.onHomeKey(e),e.preventDefault()}onArrowLeftKey(e){let i=this.findPrevTab(e.currentTarget);i?this.changeFocusedTab(e,i):this.onEndKey(e),e.preventDefault()}onHomeKey(e){let i=this.findFirstTab();this.changeFocusedTab(e,i),e.preventDefault()}onEndKey(e){let i=this.findLastTab();this.changeFocusedTab(e,i),e.preventDefault()}onPageDownKey(e){this.scrollInView(this.findLastTab()),e.preventDefault()}onPageUpKey(e){this.scrollInView(this.findFirstTab()),e.preventDefault()}onEnterKey(e){this.changeActiveValue(),e.preventDefault()}findNextTab(e,i=!1){let n=i?e:e.nextElementSibling;return n?L(n,"data-p-disabled")||L(n,"data-pc-section")==="inkbar"?this.findNextTab(n):n:null}findPrevTab(e,i=!1){let n=i?e:e.previousElementSibling;return n?L(n,"data-p-disabled")||L(n,"data-pc-section")==="inkbar"?this.findPrevTab(n):n:null}findFirstTab(){return this.findNextTab(this.pcTabList?.tabs?.nativeElement?.firstElementChild,!0)}findLastTab(){return this.findPrevTab(this.pcTabList?.tabs?.nativeElement?.lastElementChild,!0)}changeActiveValue(){this.pcTabs.updateValue(this.value())}changeFocusedTab(e,i){ct(i),this.scrollInView(i)}scrollInView(e){e?.scrollIntoView?.({block:"nearest"})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=h(t)))(n||t)}})();static \u0275cmp=g({type:t,selectors:[["p-tab"]],hostVars:16,hostBindings:function(i,n){i&1&&I("focus",function(o){return n.onFocus(o)})("click",function(o){return n.onClick(o)})("keydown",function(o){return n.onKeyDown(o)}),i&2&&(r("data-pc-name","tab")("id",n.id())("aria-controls",n.ariaControls())("role","tab")("aria-selected",n.active())("data-p-disabled",n.disabled())("data-p-active",n.active())("tabindex",n.tabindex()),_("p-tab",!0)("p-tab-active",n.active())("p-disabled",n.disabled())("p-component",!0))},inputs:{value:[1,"value"],disabled:[1,"disabled"]},outputs:{value:"valueChange"},features:[tt([J]),m],ngContentSelectors:E,decls:1,vars:0,template:function(i,n){i&1&&(T(),w(0))},dependencies:[k,G],encapsulation:2,changeDetection:0})}return t})(),St=(()=>{class t extends ${pcTabs=f(B(()=>z));value=N(void 0);id=s(()=>`${this.pcTabs.id()}_tabpanel_${this.value()}`);ariaLabelledby=s(()=>`${this.pcTabs.id()}_tab_${this.value()}`);active=s(()=>q(this.pcTabs.value(),this.value()));static \u0275fac=(()=>{let e;return function(n){return(e||(e=h(t)))(n||t)}})();static \u0275cmp=g({type:t,selectors:[["p-tabpanel"]],hostVars:9,hostBindings:function(i,n){i&2&&(r("data-pc-name","tabpanel")("id",n.id())("role","tabpanel")("aria-labelledby",n.ariaLabelledby())("data-p-active",n.active()),_("p-tabpanel",!0)("p-component",!0))},inputs:{value:[1,"value"]},outputs:{value:"valueChange"},features:[m],ngContentSelectors:E,decls:1,vars:1,template:function(i,n){i&1&&(T(),u(0,Vt,1,0)),i&2&&y(n.active()?0:-1)},dependencies:[k],encapsulation:2,changeDetection:0})}return t})(),Mt=(()=>{class t extends ${static \u0275fac=(()=>{let e;return function(n){return(e||(e=h(t)))(n||t)}})();static \u0275cmp=g({type:t,selectors:[["p-tabpanels"]],hostVars:6,hostBindings:function(i,n){i&2&&(r("data-pc-name","tabpanels")("role","presentation"),_("p-tabpanels",!0)("p-component",!0))},features:[m],ngContentSelectors:E,decls:1,vars:0,template:function(i,n){i&1&&(T(),w(0))},dependencies:[k],encapsulation:2,changeDetection:0})}return t})(),z=(()=>{class t extends ${value=N(void 0);scrollable=p(!1,{transform:C});lazy=p(!1,{transform:C});selectOnFocus=p(!1,{transform:C});showNavigators=p(!0,{transform:C});tabindex=p(0,{transform:it});id=R(bt("pn_id_"));_componentStyle=f(vt);updateValue(e){this.value.update(()=>e)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=h(t)))(n||t)}})();static \u0275cmp=g({type:t,selectors:[["p-tabs"]],hostVars:8,hostBindings:function(i,n){i&2&&(r("data-pc-name","tabs")("id",n.id),_("p-tabs",!0)("p-tabs-scrollable",n.scrollable())("p-component",!0))},inputs:{value:[1,"value"],scrollable:[1,"scrollable"],lazy:[1,"lazy"],selectOnFocus:[1,"selectOnFocus"],showNavigators:[1,"showNavigators"],tabindex:[1,"tabindex"]},outputs:{value:"valueChange"},features:[et([vt]),m],ngContentSelectors:E,decls:1,vars:0,template:function(i,n){i&1&&(T(),w(0))},dependencies:[k],encapsulation:2,changeDetection:0})}return t})(),re=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Z({type:t});static \u0275inj=Y({imports:[z,Mt,St,gt,Ot]})}return t})();export{gt as a,Ot as b,St as c,Mt as d,z as e,re as f};
|
package/chunk-7BUIG2V4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as N}from"./chunk-DFW6MEY3.js";import{$ as ue,A as m,B as re,Ca as T,Da as D,E as w,G as le,H as I,Ha as E,Lb as J,Mb as Y,N as j,Pb as B,Q as ce,R as de,Rb as S,Ta as P,Ua as R,Y as he,Yb as pe,Z as u,Zb as fe,Zc as C,ba as z,d as oe,fa as y,g as d,ga as A,gc as ge,ia as _e,ic as K,jc as q,k as ae,la as r,lc as me,mc as be,n as F,nb as Q,nc as ye,pa as W,t as $,xb as k,ya as f,yb as x}from"./chunk-A63HKFUG.js";import{a as M,b as V}from"./chunk-EQDQRRRY.js";var ve=["*"];var Me=["dialog"];var De={animation:!0,transitionTimerDelayMs:5},Ce=(()=>{class n{constructor(){this.animation=De.animation}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=y({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function Ie(n){let{transitionDelay:s,transitionDuration:t}=window.getComputedStyle(n),e=parseFloat(s),i=parseFloat(t);return(e+i)*1e3}function te(n){return typeof n=="string"}function O(n){return n!=null}function we(n){return n&&n.then}function H(n){return(n||document.body).getBoundingClientRect()}function Ae(n){return s=>new oe(t=>{let e=a=>n.run(()=>t.next(a)),i=a=>n.run(()=>t.error(a)),o=()=>n.run(()=>t.complete());return s.subscribe({next:e,error:i,complete:o})})}var Ee=()=>{},{transitionTimerDelayMs:Pe}=De,G=new Map,g=(n,s,t,e)=>{let i=e.context||{},o=G.get(s);if(o)switch(e.runningTransition){case"continue":return ae;case"stop":n.run(()=>o.transition$.complete()),i=Object.assign(o.context,i),G.delete(s)}let a=t(s,e.animation,i)||Ee;if(!e.animation||window.getComputedStyle(s).transitionProperty==="none")return n.run(()=>a()),F(void 0).pipe(Ae(n));let c=new d,l=new d,h=c.pipe(ce(!0));G.set(s,{transition$:c,complete:()=>{l.next(),l.complete()},context:i});let p=Ie(s);return n.runOutsideAngular(()=>{let _=m(s,"transitionend").pipe(u(h),w(({target:Ne})=>Ne===s)),v=re(p+Pe).pipe(u(h));le(v,_,l).pipe(u(h)).subscribe(()=>{G.delete(s),n.run(()=>{a(),c.next(),c.complete()})})}),c.asObservable()};var fi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275mod=x({type:n})}static{this.\u0275inj=A({})}}return n})();var gi=(()=>{let n=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,s=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(n()||s()):!1})();var Re=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function ie(n){let s=Array.from(n.querySelectorAll(Re)).filter(t=>t.tabIndex!==-1);return[s[0],s[s.length-1]]}var Te=(n,s,t,e=!1)=>{n.runOutsideAngular(()=>{let i=m(s,"focusin").pipe(u(t),$(o=>o.target));m(s,"keydown").pipe(u(t),w(o=>o.key==="Tab"),z(i)).subscribe(([o,a])=>{let[c,l]=ie(s);(a===c||a===s)&&o.shiftKey&&(l.focus(),o.preventDefault()),a===l&&!o.shiftKey&&(c.focus(),o.preventDefault())}),e&&m(s,"click").pipe(u(t),z(i),$(o=>o[1])).subscribe(o=>o.focus())})};var mi=new Date(1882,10,12),bi=new Date(2174,10,25);var yi=1e3*60*60*24;var ne=1080,ke=24*ne,xe=12*ne+793,vi=29*ke+xe,Di=11*ne+204;var Ci=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275mod=x({type:n})}static{this.\u0275inj=A({})}}return n})(),Fe=(()=>{class n{constructor(){this._ngbConfig=r(Ce),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=y({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),b=class{constructor(s,t,e){this.nodes=s,this.viewRef=t,this.componentRef=e}};var Se=(()=>{class n{constructor(){this._document=r(N)}hide(){let t=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),e=this._document.body,i=e.style,{overflow:o,paddingRight:a}=i;if(t>0){let c=parseFloat(window.getComputedStyle(e).paddingRight);i.paddingRight=`${c+t}px`}return i.overflow="hidden",()=>{t>0&&(i.paddingRight=a),i.overflow=o}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=y({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Be=(()=>{class n{constructor(){this._nativeElement=r(E).nativeElement,this._zone=r(D),this._injector=r(f)}ngOnInit(){R(()=>g(this._zone,this._nativeElement,(t,e)=>{e&&H(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"}),{injector:this._injector,phase:P.MixedReadWrite})}hide(){return g(this._zone,this._nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=k({type:n,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(e,i){e&2&&(S("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),B("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,i){},encapsulation:2})}}return n})(),L=class{update(s){}close(s){}dismiss(s){}},Ge=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],Le=["animation","backdropClass"],Z=class{_applyWindowOptions(s,t){Ge.forEach(e=>{O(t[e])&&(s[e]=t[e])})}_applyBackdropOptions(s,t){Le.forEach(e=>{O(t[e])&&(s[e]=t[e])})}update(s){this._applyWindowOptions(this._windowCmptRef.instance,s),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,s)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(u(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(u(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(s,t,e,i){this._windowCmptRef=s,this._contentRef=t,this._backdropCmptRef=e,this._beforeDismiss=i,this._closed=new d,this._dismissed=new d,this._hidden=new d,s.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,a)=>{this._resolve=o,this._reject=a}),this.result.then(null,()=>{})}close(s){this._windowCmptRef&&(this._closed.next(s),this._resolve(s),this._removeModalElements())}_dismiss(s){this._dismissed.next(s),this._reject(s),this._removeModalElements()}dismiss(s){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(s);else{let t=this._beforeDismiss();we(t)?t.then(e=>{e!==!1&&this._dismiss(s)},()=>{}):t!==!1&&this._dismiss(s)}}_removeModalElements(){let s=this._windowCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():F(void 0);s.subscribe(()=>{let{nativeElement:e}=this._windowCmptRef.location;e.parentNode.removeChild(e),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),t.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:e}=this._backdropCmptRef.location;e.parentNode.removeChild(e),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),I(s,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},X=function(n){return n[n.BACKDROP_CLICK=0]="BACKDROP_CLICK",n[n.ESC=1]="ESC",n}(X||{}),Ue=(()=>{class n{constructor(){this._document=r(N),this._elRef=r(E),this._zone=r(D),this._injector=r(f),this._closed$=new d,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new T,this.shown=new d,this.hidden=new d}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":te(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,R(()=>this._show(),{injector:this._injector,phase:P.MixedReadWrite})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:t}=this._elRef,e={animation:this.animation,runningTransition:"stop"},i=g(this._zone,t,()=>t.classList.remove("show"),e),o=g(this._zone,this._dialogEl.nativeElement,()=>{},e),a=I(i,o);return a.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),a}_show(){let t={animation:this.animation,runningTransition:"continue"},e=g(this._zone,this._elRef.nativeElement,(o,a)=>{a&&H(o),o.classList.add("show")},t),i=g(this._zone,this._dialogEl.nativeElement,()=>{},t);I(e,i).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{m(t,"keydown").pipe(u(this._closed$),w(i=>i.key==="Escape")).subscribe(i=>{this.keyboard?requestAnimationFrame(()=>{i.defaultPrevented||this._zone.run(()=>this.dismiss(X.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let e=!1;m(this._dialogEl.nativeElement,"mousedown").pipe(u(this._closed$),ue(()=>e=!1),he(()=>m(t,"mouseup").pipe(u(this._closed$),j(1))),w(({target:i})=>t===i)).subscribe(()=>{e=!0}),m(t,"click").pipe(u(this._closed$)).subscribe(({target:i})=>{t===i&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!e&&this._zone.run(()=>this.dismiss(X.BACKDROP_CLICK))),e=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){let e=t.querySelector("[ngbAutofocus]"),i=ie(t)[0];(e||i||t).focus()}}_restoreFocus(){let t=this._document.body,e=this._elWithFocus,i;e&&e.focus&&t.contains(e)?i=e:i=t,this._zone.runOutsideAngular(()=>{setTimeout(()=>i.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&g(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=k({type:n,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(e&1&&me(Me,7),e&2){let o;be(o=ye())&&(i._dialogEl=o.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){e&2&&(Y("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),S("modal d-block"+(i.windowClass?" "+i.windowClass:"")),B("fade",i.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:ve,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(e,i){e&1&&(K(),pe(0,"div",1,0)(2,"div",2),q(3),fe()()),e&2&&S("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+i.fullscreenClass+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}
|
|
2
|
-
`],encapsulation:2})}}return n})(),He=(()=>{class n{constructor(){this._applicationRef=r(J),this._injector=r(f),this._environmentInjector=r(W),this._document=r(N),this._scrollBar=r(Se),this._activeWindowCmptHasChanged=new d,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new T;let t=r(D);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let e=this._windowCmpts[this._windowCmpts.length-1];Te(t,e.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(e.location.nativeElement)}})}_restoreScrollBar(){let t=this._scrollBarRestoreFn;t&&(this._scrollBarRestoreFn=null,t())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(t,e,i){let o=i.container instanceof HTMLElement?i.container:O(i.container)?this._document.querySelector(i.container):this._document.body;if(!o)throw new Error(`The specified modal container "${i.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let a=new L;t=i.injector||t;let c=t.get(W,null)||this._environmentInjector,l=this._getContentRef(t,c,e,a,i),h=i.backdrop!==!1?this._attachBackdrop(o):void 0,p=this._attachWindowComponent(o,l.nodes),_=new Z(p,l,h,i.beforeDismiss);return this._registerModalRef(_),this._registerWindowCmpt(p),_.hidden.pipe(j(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=v=>{_.close(v)},a.dismiss=v=>{_.dismiss(v)},a.update=v=>{_.update(v)},_.update(i),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),h&&h.instance&&h.changeDetectorRef.detectChanges(),p.changeDetectorRef.detectChanges(),_}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(e=>e.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t){let e=C(Be,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(e.hostView),t.appendChild(e.location.nativeElement),e}_attachWindowComponent(t,e){let i=C(Ue,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:e});return this._applicationRef.attachView(i.hostView),t.appendChild(i.location.nativeElement),i}_getContentRef(t,e,i,o,a){return i?i instanceof Q?this._createFromTemplateRef(i,o):te(i)?this._createFromString(i):this._createFromComponent(t,e,i,o,a):new b([])}_createFromTemplateRef(t,e){let i={$implicit:e,close(a){e.close(a)},dismiss(a){e.dismiss(a)}},o=t.createEmbeddedView(i);return this._applicationRef.attachView(o),new b([o.rootNodes],o)}_createFromString(t){let e=this._document.createTextNode(`${t}`);return new b([[e]])}_createFromComponent(t,e,i,o,a){let c=f.create({providers:[{provide:L,useValue:o}],parent:t}),l=C(i,{environmentInjector:e,elementInjector:c}),h=l.location.nativeElement;return a.scrollable&&h.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new b([[h]],l.hostView,l)}_setAriaHidden(t){let e=t.parentElement;e&&t!==this._document.body&&(Array.from(e.children).forEach(i=>{i!==t&&i.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}),this._setAriaHidden(e))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){let e=()=>{let i=this._modalRefs.indexOf(t);i>-1&&(this._modalRefs.splice(i,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(e,e)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{let e=this._windowCmpts.indexOf(t);e>-1&&(this._windowCmpts.splice(e,1),this._activeWindowCmptHasChanged.next())})}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=y({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),wi=(()=>{class n{constructor(){this._injector=r(f),this._modalStack=r(He),this._config=r(Fe)}open(t,e={}){let i=M(V(M({},this._config),{animation:this._config.animation}),e);return this._modalStack.open(this._injector,t,i)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=y({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Ti=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275mod=x({type:n})}static{this.\u0275inj=A({})}}return n})();var Si=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275mod=x({type:n})}static{this.\u0275inj=A({})}}return n})();var Ni=new _e("live announcer delay",{providedIn:"root",factory:()=>100});var Ve=(()=>{class n{constructor(){this._ngbConfig=r(Ce),this.backdrop=!0,this.keyboard=!0,this.position="start",this.scroll=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=y({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),U=class{close(s){}dismiss(s){}},ee=class{get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(u(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(u(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._panelCmptRef.instance.shown.asObservable()}constructor(s,t,e,i){this._panelCmptRef=s,this._contentRef=t,this._backdropCmptRef=e,this._beforeDismiss=i,this._closed=new d,this._dismissed=new d,this._hidden=new d,s.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),e&&e.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,a)=>{this._resolve=o,this._reject=a}),this.result.then(null,()=>{})}close(s){this._panelCmptRef&&(this._closed.next(s),this._resolve(s),this._removeOffcanvasElements())}_dismiss(s){this._dismissed.next(s),this._reject(s),this._removeOffcanvasElements()}dismiss(s){if(this._panelCmptRef)if(!this._beforeDismiss)this._dismiss(s);else{let t=this._beforeDismiss();we(t)?t.then(e=>{e!==!1&&this._dismiss(s)},()=>{}):t!==!1&&this._dismiss(s)}}_removeOffcanvasElements(){let s=this._panelCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():F(void 0);s.subscribe(()=>{let{nativeElement:e}=this._panelCmptRef.location;e.parentNode.removeChild(e),this._panelCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._panelCmptRef=null,this._contentRef=null}),t.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:e}=this._backdropCmptRef.location;e.parentNode.removeChild(e),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),I(s,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},se=function(n){return n[n.BACKDROP_CLICK=0]="BACKDROP_CLICK",n[n.ESC=1]="ESC",n}(se||{}),$e=(()=>{class n{constructor(){this._nativeElement=r(E).nativeElement,this._zone=r(D),this._injector=r(f),this.dismissEvent=new T}ngOnInit(){R(()=>g(this._zone,this._nativeElement,(t,e)=>{e&&H(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"}),{injector:this._injector,phase:P.MixedReadWrite})}hide(){return g(this._zone,this._nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}dismiss(){this.static||this.dismissEvent.emit(se.BACKDROP_CLICK)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=k({type:n,selectors:[["ngb-offcanvas-backdrop"]],hostVars:6,hostBindings:function(e,i){e&1&&ge("mousedown",function(){return i.dismiss()}),e&2&&(S("offcanvas-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),B("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass",static:"static"},outputs:{dismissEvent:"dismiss"},decls:0,vars:0,template:function(e,i){},encapsulation:2})}}return n})(),je=(()=>{class n{constructor(){this._document=r(N),this._elRef=r(E),this._zone=r(D),this._injector=r(f),this._closed$=new d,this._elWithFocus=null,this.keyboard=!0,this.position="start",this.dismissEvent=new T,this.shown=new d,this.hidden=new d}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,R(()=>this._show(),{injector:this._injector,phase:P.MixedReadWrite})}ngOnDestroy(){this._disableEventHandling()}hide(){let t={animation:this.animation,runningTransition:"stop"},e=g(this._zone,this._elRef.nativeElement,i=>(i.classList.remove("showing"),i.classList.add("hiding"),()=>i.classList.remove("show","hiding")),t);return e.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),e}_show(){let t={animation:this.animation,runningTransition:"continue"};g(this._zone,this._elRef.nativeElement,(i,o)=>(o&&H(i),i.classList.add("show","showing"),()=>i.classList.remove("showing")),t).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{m(t,"keydown").pipe(u(this._closed$),w(e=>e.key==="Escape")).subscribe(e=>{this.keyboard&&requestAnimationFrame(()=>{e.defaultPrevented||this._zone.run(()=>this.dismiss(se.ESC))})})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){let e=t.querySelector("[ngbAutofocus]"),i=ie(t)[0];(e||i||t).focus()}}_restoreFocus(){let t=this._document.body,e=this._elWithFocus,i;e&&e.focus&&t.contains(e)?i=e:i=t,this._zone.runOutsideAngular(()=>{setTimeout(()=>i.focus()),this._elWithFocus=null})}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=k({type:n,selectors:[["ngb-offcanvas-panel"]],hostAttrs:["role","dialog","tabindex","-1"],hostVars:5,hostBindings:function(e,i){e&2&&(Y("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),S("offcanvas offcanvas-"+i.position+(i.panelClass?" "+i.panelClass:"")))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",keyboard:"keyboard",panelClass:"panelClass",position:"position"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:ve,decls:1,vars:0,template:function(e,i){e&1&&(K(),q(0))},encapsulation:2})}}return n})(),ze=(()=>{class n{constructor(){this._applicationRef=r(J),this._injector=r(f),this._document=r(N),this._scrollBar=r(Se),this._activePanelCmptHasChanged=new d,this._scrollBarRestoreFn=null,this._backdropAttributes=["animation","backdropClass"],this._panelAttributes=["animation","ariaDescribedBy","ariaLabelledBy","keyboard","panelClass","position"],this._activeInstance=new T;let t=r(D);this._activePanelCmptHasChanged.subscribe(()=>{this._panelCmpt&&Te(t,this._panelCmpt.location.nativeElement,this._activePanelCmptHasChanged)})}_restoreScrollBar(){let t=this._scrollBarRestoreFn;t&&(this._scrollBarRestoreFn=null,t())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(t,e,i){let o=i.container instanceof HTMLElement?i.container:O(i.container)?this._document.querySelector(i.container):this._document.body;if(!o)throw new Error(`The specified offcanvas container "${i.container||"body"}" was not found in the DOM.`);i.scroll||this._hideScrollBar();let a=new U,c=this._getContentRef(i.injector||t,e,a),l=i.backdrop!==!1?this._attachBackdrop(o):void 0,h=this._attachWindowComponent(o,c.nodes),p=new ee(h,c,l,i.beforeDismiss);return this._registerOffcanvasRef(p),this._registerPanelCmpt(h),p.hidden.pipe(de(()=>this._restoreScrollBar())).subscribe(),a.close=_=>{p.close(_)},a.dismiss=_=>{p.dismiss(_)},this._applyPanelOptions(h.instance,i),l&&l.instance&&(this._applyBackdropOptions(l.instance,i),l.changeDetectorRef.detectChanges()),h.changeDetectorRef.detectChanges(),p}get activeInstance(){return this._activeInstance}dismiss(t){this._offcanvasRef?.dismiss(t)}hasOpenOffcanvas(){return!!this._offcanvasRef}_attachBackdrop(t){let e=C($e,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(e.hostView),t.appendChild(e.location.nativeElement),e}_attachWindowComponent(t,e){let i=C(je,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:e});return this._applicationRef.attachView(i.hostView),t.appendChild(i.location.nativeElement),i}_applyPanelOptions(t,e){this._panelAttributes.forEach(i=>{O(e[i])&&(t[i]=e[i])})}_applyBackdropOptions(t,e){this._backdropAttributes.forEach(i=>{O(e[i])&&(t[i]=e[i])}),t.static=e.backdrop==="static"}_getContentRef(t,e,i){return e?e instanceof Q?this._createFromTemplateRef(e,i):te(e)?this._createFromString(e):this._createFromComponent(t,e,i):new b([])}_createFromTemplateRef(t,e){let i={$implicit:e,close(a){e.close(a)},dismiss(a){e.dismiss(a)}},o=t.createEmbeddedView(i);return this._applicationRef.attachView(o),new b([o.rootNodes],o)}_createFromString(t){let e=this._document.createTextNode(`${t}`);return new b([[e]])}_createFromComponent(t,e,i){let o=f.create({providers:[{provide:U,useValue:i}],parent:t}),a=C(e,{environmentInjector:this._applicationRef.injector,elementInjector:o}),c=a.location.nativeElement;return this._applicationRef.attachView(a.hostView),new b([[c]],a.hostView,a)}_registerOffcanvasRef(t){let e=()=>{this._offcanvasRef=void 0,this._activeInstance.emit(this._offcanvasRef)};this._offcanvasRef=t,this._activeInstance.emit(this._offcanvasRef),t.result.then(e,e)}_registerPanelCmpt(t){this._panelCmpt=t,this._activePanelCmptHasChanged.next(),t.onDestroy(()=>{this._panelCmpt=void 0,this._activePanelCmptHasChanged.next()})}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=y({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Oi=(()=>{class n{constructor(){this._injector=r(f),this._offcanvasStack=r(ze),this._config=r(Ve)}open(t,e={}){let i=M(V(M({},this._config),{animation:this._config.animation}),e);return this._offcanvasStack.open(this._injector,t,i)}get activeInstance(){return this._offcanvasStack.activeInstance}dismiss(t){this._offcanvasStack.dismiss(t)}hasOpenOffcanvas(){return this._offcanvasStack.hasOpenOffcanvas()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=y({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();export{fi as a,Ci as b,wi as c,Ti as d,Si as e,se as f,Oi as g};
|