@paperless/core 3.2.0 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/icons/general/lamp.svg +3 -10
- package/dist/assets/icons/general/math.svg +7 -14
- package/dist/assets/icons/general/newtab.svg +3 -10
- package/dist/assets/icons/general/spinner.svg +0 -7
- package/dist/assets/icons/general/spinning.svg +0 -7
- package/dist/assets/icons/general/stack.svg +3 -10
- package/dist/build/index.esm.js +1 -1
- package/dist/build/{p-114447e4.entry.js → p-2c0ca302.entry.js} +1 -1
- package/dist/{paperless/p-BlJazAvY.js → build/p-DPmts3W0.js} +1 -1
- package/dist/{paperless/p-afa4d38a.entry.js → build/p-eaa0079d.entry.js} +1 -1
- package/dist/build/{p-1c3e36cf.js → p-fa2e80c6.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{icons-BFoxhX6L.js → icons-BHz4nb3U.js} +16 -58
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +11 -6
- package/dist/collection/assets/icons/general/lamp.svg +3 -10
- package/dist/collection/assets/icons/general/math.svg +7 -14
- package/dist/collection/assets/icons/general/newtab.svg +3 -10
- package/dist/collection/assets/icons/general/spinner.svg +0 -7
- package/dist/collection/assets/icons/general/spinning.svg +0 -7
- package/dist/collection/assets/icons/general/stack.svg +3 -10
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +11 -6
- package/dist/components/index.js +1 -1
- package/dist/components/{p-CXg0xBGH.js → p-0Uawv030.js} +1 -1
- package/dist/components/{p-DLYJuP63.js → p-48UlhVtz.js} +1 -1
- package/dist/components/{p-CeySqTb3.js → p-AkD55vN_.js} +1 -1
- package/dist/components/{p-DlMZf72T.js → p-BAvGAs2F.js} +1 -1
- package/dist/components/{p-5NU3sI-6.js → p-BEu_Xlbv.js} +1 -1
- package/dist/components/{p-BruraPn4.js → p-BmU3MAfH.js} +1 -1
- package/dist/components/{p-BwzYUgjx.js → p-COFt46UN.js} +1 -1
- package/dist/components/{p-CDP8S8lL.js → p-Cat2_HoM.js} +1 -1
- package/dist/components/{p-C1irPVgy.js → p-Cr_WB0kg.js} +1 -1
- package/dist/components/{p-D0Af7BtI.js → p-CtxKjhiD.js} +1 -1
- package/dist/components/{p-BtWP9QJR.js → p-D8FhwO0Q.js} +1 -1
- package/dist/components/{p-B7iPzLJ1.js → p-DKnCWy7F.js} +1 -1
- package/dist/{build/p-BlJazAvY.js → components/p-DPmts3W0.js} +1 -1
- package/dist/components/{p-nOG0jGaD.js → p-DR1auS78.js} +1 -1
- package/dist/components/{p-CyL9rHm8.js → p-DT72kk3I.js} +1 -1
- package/dist/components/{p-rXG9U1a1.js → p-DlQumf-0.js} +1 -1
- package/dist/components/{p-IbAvjZ3P.js → p-Dy1wXwZf.js} +1 -1
- package/dist/components/{p-DmlFVaBd.js → p-NEqovphH.js} +1 -1
- package/dist/components/{p-BKt8zLAB.js → p-SYK2C-7G.js} +1 -1
- package/dist/components/{p-D-y3A1iZ.js → p-ShAy0ruV.js} +1 -1
- package/dist/components/{p-Dk5Jl6vH.js → p-aZcUXH1b.js} +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-button.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-card-header.js +1 -1
- package/dist/components/p-checkbox.js +1 -1
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/p-datepicker.js +1 -1
- package/dist/components/p-drawer-header.js +1 -1
- package/dist/components/p-drawer.js +1 -1
- package/dist/components/p-dropdown-menu-item.js +1 -1
- package/dist/components/p-empty-state.js +1 -1
- package/dist/components/p-field-container.js +1 -1
- package/dist/components/p-field.js +1 -1
- package/dist/components/p-floating-menu-container.js +1 -1
- package/dist/components/p-floating-menu-item.js +1 -1
- package/dist/components/p-helper.js +1 -1
- package/dist/components/p-icon.js +1 -1
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/p-label.js +1 -1
- package/dist/components/p-listing-item.js +1 -1
- package/dist/components/p-modal-header.js +1 -1
- package/dist/components/p-modal.js +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +1 -1
- package/dist/components/p-pagination-pages.js +1 -1
- package/dist/components/p-pagination-size.js +1 -1
- package/dist/components/p-pagination.js +1 -1
- package/dist/components/p-profile.js +1 -1
- package/dist/components/p-range.js +1 -1
- package/dist/components/p-segment-item.js +1 -1
- package/dist/components/p-select.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/esm/{icons-BlJazAvY.js → icons-DPmts3W0.js} +16 -58
- package/dist/esm/index.js +1 -1
- package/dist/esm/p-button_3.entry.js +1 -1
- package/dist/esm/p-datepicker.entry.js +11 -6
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/paperless/{p-114447e4.entry.js → p-2c0ca302.entry.js} +1 -1
- package/dist/{components/p-BlJazAvY.js → paperless/p-DPmts3W0.js} +1 -1
- package/dist/{build/p-afa4d38a.entry.js → paperless/p-eaa0079d.entry.js} +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/molecules/datepicker/datepicker.component.d.ts +1 -0
- package/hydrate/index.js +27 -64
- package/hydrate/index.mjs +27 -64
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as o,c as a,h as i}from"./p-CySg37XO.js";import{c as n}from"./p-CBWjHURv.js";import{T as s}from"./p-Au2WuEGF.js";import{a as r}from"./p-C5CTp9IA.js";import{d as c}from"./p-
|
|
1
|
+
import{t,p as e,H as o,c as a,h as i}from"./p-CySg37XO.js";import{c as n}from"./p-CBWjHURv.js";import{T as s}from"./p-Au2WuEGF.js";import{a as r}from"./p-C5CTp9IA.js";import{d as c}from"./p-AkD55vN_.js";import{d as m}from"./p-aZcUXH1b.js";import{d as l}from"./p-CMmvAq1F.js";import{d as p}from"./p-D8faiybE.js";const d=n(["flex w-full max-w-[20rem] flex-col items-center justify-start"],{variants:{enableAction:{true:"cursor-pointer",false:null}}}),h=e(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.action=a(this,"action",3)}illustration;header;content;enableAction=!0;actionText;actionVariant="secondary";actionIcon;actionIconPosition="start";actionLoading=!1;action;get _el(){return this}render(){const t=!!this._el.querySelector(':scope > [slot="header"]'),e=!!this._el.querySelector(':scope > [slot="content"]'),o=!!this._el.querySelector(':scope > [slot="action"]');return i(s,{key:"580edaeaa7a1429f07840b25d2062f9e6ae9763d"},i("div",{key:"c08807d745ee8f4bebae2d7aec92bf110824269e",class:d({enableAction:r(this.enableAction,!0)}),onClick:t=>this.enableAction&&!this.actionLoading?this.action.emit(t):void 0},this.illustration&&i("p-illustration",{key:"3434e243bb9a41e7f56982fff2450cc92013b25f",class:"mb-8 text-5xl text-indigo-600",variant:this.illustration}),t?i("slot",{name:"header"}):this.header?.length&&i("p",{class:"\n my-0 text-center font-ambit text-sm font-bold text-storm-500\n dark:text-white\n "},this.header),e?i("slot",{name:"content"}):this.content?.length&&i("p",{class:"\n my-0 text-center text-sm font-normal text-storm-300\n dark:text-hurricane-200\n "},this.content),this.enableAction&&(o?i("slot",{name:"action"}):i("p-button",{class:"mt-4",icon:this.actionIcon,iconPosition:this.actionIconPosition,loading:this.actionLoading,variant:this.actionVariant},this.actionText))))}static get style(){return'*{box-sizing:border-box}p-divider{--tw-content:""}.static{position:static}.my-0{margin-bottom:0;margin-top:0}.mb-8{margin-bottom:2rem}.mt-4{margin-top:1rem}.flex{display:flex}.w-full{width:100%}.max-w-\\[20rem\\]{max-width:20rem}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-start{justify-content:flex-start}.text-center{text-align:center}.font-ambit{font-family:Ambit,sans-serif}.text-5xl{font-size:3rem;line-height:1}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}'}},[769,"p-empty-state",{illustration:[1],header:[1],content:[1],enableAction:[4,"enable-action"],actionText:[1,"action-text"],actionVariant:[1,"action-variant"],actionIcon:[1,"action-icon"],actionIconPosition:[1,"action-icon-position"],actionLoading:[4,"action-loading"]}]);function x(){"undefined"!=typeof customElements&&["p-empty-state","p-button","p-icon","p-illustration","p-loader"].forEach((e=>{switch(e){case"p-empty-state":customElements.get(t(e))||customElements.define(t(e),h);break;case"p-button":customElements.get(t(e))||c();break;case"p-icon":customElements.get(t(e))||m();break;case"p-illustration":customElements.get(t(e))||l();break;case"p-loader":customElements.get(t(e))||p()}}))}x();export{h as E,x as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as a,c as r,h as o}from"./p-CySg37XO.js";import{c as i}from"./p-CBWjHURv.js";import{T as d}from"./p-Au2WuEGF.js";import{d as c}from"./p-
|
|
1
|
+
import{t as e,p as t,H as a,c as r,h as o}from"./p-CySg37XO.js";import{c as i}from"./p-CBWjHURv.js";import{T as d}from"./p-Au2WuEGF.js";import{d as c}from"./p-AkD55vN_.js";import{d as s}from"./p-aZcUXH1b.js";import{d as n}from"./p-D8faiybE.js";import{d as l}from"./p-CHER4MCx.js";const h=i(["relative z-[1] min-h-18 w-full flex-col overflow-hidden rounded-t-2xl","\n bg-white\n dark:bg-hurricane-600\n ","inline-flex"]),m=i(["flex justify-between","min-h-12 w-full p-4 pb-0"]),p=i(["flex-1 text-center","\n text-ambit text-2xl font-bold text-storm-500\n dark:text-white\n "]),b=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.close=r(this,"close",3)}showClose=!0;close;render(){return o(d,{key:"e05ec2c9d94a38c646e446b2882f675bcccad49e"},o("div",{key:"ac59d07abee48dc4bdb945a6cc780c2e124e4613",class:h()},o("div",{key:"fb95e22321f77109a554c790fc1d7bc59cf8f404",class:m()},this.showClose&&o("p-button",{key:"f6f1c5524ddb466b48682b03571ee245111d3280",icon:"negative",iconOnly:!0,variant:"secondary",onClick:e=>this.close.emit(e)}),o("div",{key:"ed99afeff2a45c9a17558d256863c4f22f99594f",class:p()},o("slot",{key:"fffd297b663ad9761c848b4dd47a40c545eec324"})),this.showClose&&o("div",{key:"73cf17ce479ad201c6ea905043512dfb2b5dd780",class:"size-8"})),o("p-smile",{key:"07a4e62c3294e1427159c2a73214d754d043da03",class:"dark:text-hurricane-400"})))}static get style(){return"*{box-sizing:border-box}.static{position:static}.relative{position:relative}.z-\\[1\\]{z-index:1}.flex{display:flex}.inline-flex{display:inline-flex}.size-8{height:2rem;width:2rem}.min-h-12{min-height:3rem}.min-h-18{min-height:4.5rem}.w-full{width:100%}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.justify-between{justify-content:space-between}.overflow-hidden{overflow:hidden}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-4{padding:1rem}.pb-0{padding-bottom:0}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.font-bold{font-weight:700}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[769,"p-drawer-header",{showClose:[4,"show-close"]}]);function f(){"undefined"!=typeof customElements&&["p-drawer-header","p-button","p-icon","p-loader","p-smile"].forEach((t=>{switch(t){case"p-drawer-header":customElements.get(e(t))||customElements.define(e(t),b);break;case"p-button":customElements.get(e(t))||c();break;case"p-icon":customElements.get(e(t))||s();break;case"p-loader":customElements.get(e(t))||n();break;case"p-smile":customElements.get(e(t))||l()}}))}f();export{b as D,f as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as o,h as r}from"./p-CySg37XO.js";import{c as a}from"./p-CBWjHURv.js";import{T as i}from"./p-Au2WuEGF.js";import{a as s}from"./p-C5CTp9IA.js";import{d as n}from"./p-
|
|
1
|
+
import{t,p as e,H as o,h as r}from"./p-CySg37XO.js";import{c as a}from"./p-CBWjHURv.js";import{T as i}from"./p-Au2WuEGF.js";import{a as s}from"./p-C5CTp9IA.js";import{d as n}from"./p-aZcUXH1b.js";import{d as c}from"./p-D8faiybE.js";const d=a(["group","flex h-8 items-center gap-2 px-2","text-sm","rounded-lg"],{variants:{hover:{false:null,true:null},disabled:{false:null,true:"cursor-not-allowed opacity-60"}},compoundVariants:[{disabled:!0,class:"cursor-not-allowed text-storm-50"},{disabled:!1,class:"text-storm-100"},{disabled:!1,hover:!0,class:["\n cursor-pointer\n hover:bg-storm-800\n active:bg-storm-700 active:text-storm-100/60\n ","\n dark:hover:bg-hurricane-500\n dark:active:bg-hurricane-600/50\n "]}]}),l=a([],{variants:{hover:{false:null,true:null},disabled:{false:null,true:null}},compoundVariants:[{disabled:!1,hover:!0,class:"\n group-hover:text-storm-100\n group-active:text-storm-100/60\n "}]}),p=e(class extends o{constructor(t){super(),!1!==t&&this.__registerHost()}hover=!0;disabled=!1;loading=!1;icon;iconPosition="end";iconFlip;iconRotate;render(){return r(i,{key:"9ea48ae1034fdfac03dda8cc37f418b70e84d110",class:d({hover:s(this.hover)&&!s(this.loading),disabled:s(this.disabled)})},this._getIcon(),r("p",{key:"d95a7f2ccf5e11fb5048bf9ae651e341a62a75ec",class:"\n min-w-0 overflow-hidden text-ellipsis text-nowrap font-semibold\n empty:hidden\n "},r("slot",{key:"0af451107a9e94f6b63aa90d0683e4b50b43ba40"})))}_getIcon(){if(this.icon||this.loading)return this.loading?r("p-loader",{color:"white"}):r("p-icon",{class:l({hover:s(this.hover),disabled:s(this.disabled)}),flip:this.iconFlip,rotate:this.iconRotate,variant:this.icon})}static get style(){return"*{box-sizing:border-box}.static{position:static}.flex{display:flex}.h-8{height:2rem}.min-w-0{min-width:0}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.text-nowrap{text-wrap:nowrap}.rounded-lg{border-radius:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-semibold{font-weight:600}.text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-storm-50{--tw-text-opacity:1;color:rgb(232 232 234/var(--tw-text-opacity,1))}.opacity-60{opacity:.6}.empty\\:hidden:empty{display:none}.hover\\:bg-storm-800:hover{--tw-bg-opacity:1;background-color:rgb(2 8 21/var(--tw-bg-opacity,1))}.active\\:bg-storm-700:active{--tw-bg-opacity:1;background-color:rgb(8 15 28/var(--tw-bg-opacity,1))}.active\\:text-storm-100\\/60:active{color:hsla(220,3%,83%,.6)}.group:hover .group-hover\\:text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.group:active .group-active\\:text-storm-100\\/60{color:hsla(220,3%,83%,.6)}.dark\\:hover\\:bg-hurricane-500:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:active\\:bg-hurricane-600\\/50:active:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(46,52,62,.5)}.dark\\:hover\\:bg-hurricane-500:hover:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:active\\:bg-hurricane-600\\/50:active:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(46,52,62,.5)}"}},[772,"p-floating-menu-item",{hover:[4],disabled:[4],loading:[4],icon:[1],iconPosition:[1,"icon-position"],iconFlip:[1,"icon-flip"],iconRotate:[2,"icon-rotate"]}]);function h(){"undefined"!=typeof customElements&&["p-floating-menu-item","p-icon","p-loader"].forEach((e=>{switch(e){case"p-floating-menu-item":customElements.get(t(e))||customElements.define(t(e),p);break;case"p-icon":customElements.get(t(e))||n();break;case"p-loader":customElements.get(t(e))||c()}}))}h();export{p as F,h as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as a,c as n,h as i}from"./p-CySg37XO.js";import{c as
|
|
1
|
+
import{t,p as e,H as a,c as n,h as i}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as r}from"./p-Au2WuEGF.js";import{P as s,a as p}from"./p-CEaB2BT0.js";import{d}from"./p-AkD55vN_.js";import{d as c}from"./p-ShAy0ruV.js";import{d as g}from"./p-DP6H82uQ.js";import{d as m}from"./p-BtliZ0U_.js";import{d as f}from"./p-BtH8h7p9.js";import{d as h}from"./p-DlQumf-0.js";import{d as l}from"./p-Dy1wXwZf.js";import{d as w}from"./p-Cr_WB0kg.js";import{d as u}from"./p-SYK2C-7G.js";import{d as b}from"./p-aZcUXH1b.js";import{d as v}from"./p-D8faiybE.js";import{d as k}from"./p-CtxKjhiD.js";import{d as y}from"./p-NEqovphH.js";import{d as z}from"./p-BBAR0LE7.js";import{d as S}from"./p-D8FhwO0Q.js";import{d as j}from"./p-2yaxaWU2.js";const P=o(["relative justify-center","w-full px-6","after:absolute after:left-0 after:top-0 after:z-[0]","after:h-full after:w-full after:transition-opacity","\n after:bg-gradient-to-t after:from-white after:via-white/80\n after:to-transparent\n dark:after:from-hurricane-700 dark:after:via-hurricane-700/80\n "],{variants:{pinned:{false:"after:opacity-0",true:"after:opacity-100"},hidden:{false:"flex",true:"hidden"},tableHeaderHasAction:{true:"\n pb-20 pt-8\n desktop-xs:py-8\n ",false:"py-8"}}}),E=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.pageChange=n(this,"pageChange",3),this.pageSizeChange=n(this,"pageSizeChange",3),this.hiddenChange=n(this,"hiddenChange",3)}enablePaginationSize=!0;enablePaginationPages=!0;loading=!1;page=1;total;pageChange;pageSize=s;pageSizeOptions=p;tableHeaderHasAction=!1;pageSizeChange;hiddenChange;hideOnSinglePage=!0;get _el(){return this}_isPinned=!1;_hasPaginationPages=!0;_hidePageSizeSelect=!1;_hidden=!1;_renderCheckTimeout;componentWillRender(){this._hidePageSizeSelect=this.hideOnSinglePage&&this.total<=this.pageSizeOptions?.[0];const t=this._hidePageSizeSelect&&!this._hasPaginationPages||!this.enablePaginationSize&&!this.enablePaginationPages;t!==this._hidden&&(this._hidden=t,this.hiddenChange.emit(t))}componentDidRender(){this._renderCheckTimeout&&(clearTimeout(this._renderCheckTimeout),this._renderCheckTimeout=null),this._renderCheckTimeout=setTimeout((()=>this._checkStuck()),200)}render(){return i(r,{key:"b0ae6e77e5b14d5ac5a736790004b3b15c3dbe2e"},i("div",{key:"7115b353fb53075cef7330b0fdcb7cce1e3fc3f6",class:P({pinned:this._isPinned,hidden:this._hidden,tableHeaderHasAction:this.tableHeaderHasAction})},(this.enablePaginationPages||this.enablePaginationSize)&&this.total>0&&i("p-pagination",{key:"cce7d85d9465d6e65d92e5e4b687a80f4f715173",class:"pointer-events-auto z-[2]",enablePaginationPages:this.enablePaginationPages,enablePaginationSize:this.enablePaginationSize,hideOnSinglePage:this.hideOnSinglePage,page:this.page,pageSize:this.pageSize,pageSizeOptions:this.pageSizeOptions,total:this.total,onPageChange:({detail:t})=>this.pageChange.emit(t),onPageSizeChange:({detail:t})=>this._changePageSize(t),onPagesChange:({detail:t})=>this._hasPaginationPages=t>1})))}_changePageSize(t){t&&(this.pageSize=t,this.pageSizeChange.emit(this.pageSize))}_checkStuck(){const t=this._el.getBoundingClientRect(),e=this._el.closest("p-modal"),a=document.querySelector("p-layout");if(e){const t=e.shadowRoot.querySelector("p-modal-body").shadowRoot.querySelector("div"),a=getComputedStyle(t),n=Number.parseInt(a.paddingBottom,10);this._el.style.bottom=`-${n}px`,this._el.style.marginBottom=`-${n-1}px`}if(a&&!e){const t=a.shadowRoot.querySelector(".content"),e=getComputedStyle(t),n=Number.parseInt(e.paddingBottom,10);this._el.style.bottom=`-${n}px`,this._el.style.marginBottom=`-${n-1}px`}this._isPinned=window.innerHeight-t.bottom==0}onScroll(){this._checkStuck()}static get style(){return'.pointer-events-none{pointer-events:none}.sticky{position:sticky}.z-\\[1\\]{z-index:1}*{box-sizing:border-box}:host{--tw-content:"";pointer-events:none;position:sticky;z-index:1}.pointer-events-auto{pointer-events:auto}.static{position:static}.relative{position:relative}.z-\\[2\\]{z-index:2}.flex{display:flex}.table{display:table}.hidden{display:none}.w-full{width:100%}.justify-center{justify-content:center}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pb-20{padding-bottom:5rem}.pt-8{padding-top:2rem}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:left-0:after{content:var(--tw-content);left:0}.after\\:top-0:after{content:var(--tw-content);top:0}.after\\:z-\\[0\\]:after{content:var(--tw-content);z-index:0}.after\\:h-full:after{content:var(--tw-content);height:100%}.after\\:w-full:after{content:var(--tw-content);width:100%}.after\\:bg-gradient-to-t:after{background-image:linear-gradient(to top,var(--tw-gradient-stops));content:var(--tw-content)}.after\\:from-white:after{--tw-gradient-from:#fff var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);content:var(--tw-content)}.after\\:via-white\\/80:after{--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),hsla(0,0%,100%,.8) var(--tw-gradient-via-position),var(--tw-gradient-to);content:var(--tw-content)}.after\\:to-transparent:after{--tw-gradient-to:transparent var(--tw-gradient-to-position);content:var(--tw-content)}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:opacity-100:after{content:var(--tw-content);opacity:1}.after\\:transition-opacity:after{content:var(--tw-content);transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:64rem){.desktop-xs\\:py-8{padding-bottom:2rem;padding-top:2rem}}.dark\\:after\\:from-hurricane-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *):after{--tw-gradient-from:#232934 var(--tw-gradient-from-position);--tw-gradient-to:rgba(35,41,52,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);content:var(--tw-content)}.dark\\:after\\:via-hurricane-700\\/80:where(:host([data-theme=dark]),:host([data-theme=dark]) *):after{--tw-gradient-to:rgba(35,41,52,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),rgba(35,41,52,.8) var(--tw-gradient-via-position),var(--tw-gradient-to);content:var(--tw-content)}.dark\\:after\\:from-hurricane-700:where([data-theme=dark],[data-theme=dark] *):after{--tw-gradient-from:#232934 var(--tw-gradient-from-position);--tw-gradient-to:rgba(35,41,52,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);content:var(--tw-content)}.dark\\:after\\:via-hurricane-700\\/80:where([data-theme=dark],[data-theme=dark] *):after{--tw-gradient-to:rgba(35,41,52,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),rgba(35,41,52,.8) var(--tw-gradient-via-position),var(--tw-gradient-to);content:var(--tw-content)}'}},[513,"p-table-footer",{enablePaginationSize:[4,"enable-pagination-size"],enablePaginationPages:[4,"enable-pagination-pages"],loading:[4],page:[1538],total:[2],pageSize:[2,"page-size"],pageSizeOptions:[16],tableHeaderHasAction:[4,"table-header-has-action"],hideOnSinglePage:[4,"hide-on-single-page"],_isPinned:[32],_hasPaginationPages:[32]},[[9,"scroll","onScroll"]]]);function x(){"undefined"!=typeof customElements&&["p-table-footer","p-button","p-checkbox","p-divider","p-dropdown","p-dropdown-menu-container","p-dropdown-menu-item","p-field","p-field-container","p-helper","p-icon","p-loader","p-pagination","p-pagination-pages","p-pagination-pages-item","p-pagination-size","p-tooltip"].forEach((e=>{switch(e){case"p-table-footer":customElements.get(t(e))||customElements.define(t(e),E);break;case"p-button":customElements.get(t(e))||d();break;case"p-checkbox":customElements.get(t(e))||c();break;case"p-divider":customElements.get(t(e))||g();break;case"p-dropdown":customElements.get(t(e))||m();break;case"p-dropdown-menu-container":customElements.get(t(e))||f();break;case"p-dropdown-menu-item":customElements.get(t(e))||h();break;case"p-field":customElements.get(t(e))||l();break;case"p-field-container":customElements.get(t(e))||w();break;case"p-helper":customElements.get(t(e))||u();break;case"p-icon":customElements.get(t(e))||b();break;case"p-loader":customElements.get(t(e))||v();break;case"p-pagination":customElements.get(t(e))||k();break;case"p-pagination-pages":customElements.get(t(e))||y();break;case"p-pagination-pages-item":customElements.get(t(e))||z();break;case"p-pagination-size":customElements.get(t(e))||S();break;case"p-tooltip":customElements.get(t(e))||j()}}))}x();export{E as T,x as d}
|