@paperless/core 0.1.0-alpha.180 → 0.1.0-alpha.182

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.
Files changed (178) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/build/{p-dec10752.entry.js → p-007de3c2.entry.js} +1 -1
  3. package/dist/{paperless/p-b12f4b10.entry.js → build/p-039301c2.entry.js} +1 -1
  4. package/dist/{paperless/p-f8fa3f28.entry.js → build/p-06899ffb.entry.js} +1 -1
  5. package/dist/build/{p-66b0c60c.entry.js → p-11f54615.entry.js} +1 -1
  6. package/dist/build/{p-677d0647.entry.js → p-15d13147.entry.js} +1 -1
  7. package/dist/{paperless/p-e633010e.entry.js → build/p-1ed09d06.entry.js} +1 -1
  8. package/dist/build/{p-896e0cf3.entry.js → p-1f58297f.entry.js} +1 -1
  9. package/dist/build/{p-759b427a.entry.js → p-41588819.entry.js} +1 -1
  10. package/dist/build/{p-d2c6ba5f.entry.js → p-4588a510.entry.js} +1 -1
  11. package/dist/{paperless/p-1dea3e25.entry.js → build/p-52ab1f62.entry.js} +1 -1
  12. package/dist/{paperless/p-0ca1b35a.entry.js → build/p-58dd41be.entry.js} +1 -1
  13. package/dist/build/{p-619b6e40.entry.js → p-5a71d6ae.entry.js} +1 -1
  14. package/dist/build/{p-54dcb38b.entry.js → p-600a2f21.entry.js} +1 -1
  15. package/dist/build/{p-311ff802.entry.js → p-639afc96.entry.js} +1 -1
  16. package/dist/build/{p-954e3737.entry.js → p-78db3d3c.entry.js} +1 -1
  17. package/dist/{paperless/p-721d414a.entry.js → build/p-7e9a866e.entry.js} +1 -1
  18. package/dist/build/{p-7febed77.entry.js → p-8614bd10.entry.js} +1 -1
  19. package/dist/build/{p-b2edfc61.entry.js → p-86a6c56a.entry.js} +1 -1
  20. package/dist/{paperless/p-f9d3bcb7.entry.js → build/p-8c963008.entry.js} +1 -1
  21. package/dist/build/{p-2f401017.entry.js → p-8f179b0d.entry.js} +1 -1
  22. package/dist/build/{p-fc299f0f.entry.js → p-aae4caab.entry.js} +1 -1
  23. package/dist/build/{p-04b7fb67.entry.js → p-ad147b1b.entry.js} +1 -1
  24. package/dist/build/{p-5d768271.entry.js → p-b9a6f709.entry.js} +1 -1
  25. package/dist/{paperless/p-08ff155d.entry.js → build/p-c11282d2.entry.js} +1 -1
  26. package/dist/build/{p-ed08c398.entry.js → p-c4110c09.entry.js} +1 -1
  27. package/dist/{paperless/p-e42bfe22.entry.js → build/p-c74206e0.entry.js} +1 -1
  28. package/dist/build/p-d2afd9a5.entry.js +1 -0
  29. package/dist/build/p-d9c1fe13.js +2 -0
  30. package/dist/build/{p-22cbb8f4.entry.js → p-da1f5577.entry.js} +1 -1
  31. package/dist/build/{p-3f2c1aaf.entry.js → p-db19620c.entry.js} +1 -1
  32. package/dist/build/p-e580d566.entry.js +1 -0
  33. package/dist/build/{p-99e45c0c.entry.js → p-e8cf4a8a.entry.js} +1 -1
  34. package/dist/build/paperless.esm.js +1 -1
  35. package/dist/cjs/{index-16bca782.js → index-cf92051a.js} +3 -0
  36. package/dist/cjs/loader.cjs.js +1 -1
  37. package/dist/cjs/p-accordion.cjs.entry.js +1 -1
  38. package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
  39. package/dist/cjs/p-avatar.cjs.entry.js +1 -1
  40. package/dist/cjs/p-button_3.cjs.entry.js +1 -1
  41. package/dist/cjs/p-card-body.cjs.entry.js +1 -1
  42. package/dist/cjs/p-card-container.cjs.entry.js +1 -1
  43. package/dist/cjs/p-card-header.cjs.entry.js +1 -1
  44. package/dist/cjs/p-content-slider.cjs.entry.js +1 -1
  45. package/dist/cjs/p-counter.cjs.entry.js +1 -1
  46. package/dist/cjs/p-divider.cjs.entry.js +1 -1
  47. package/dist/cjs/p-dropdown-menu-item_4.cjs.entry.js +1 -1
  48. package/dist/cjs/p-dropdown_2.cjs.entry.js +1 -1
  49. package/dist/cjs/p-helper_5.cjs.entry.js +1 -1
  50. package/dist/cjs/p-illustration.cjs.entry.js +1 -1
  51. package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
  52. package/dist/cjs/p-layout.cjs.entry.js +1 -1
  53. package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +1 -1
  54. package/dist/cjs/p-modal.cjs.entry.js +2 -2
  55. package/dist/cjs/p-navbar.cjs.entry.js +1 -1
  56. package/dist/cjs/p-navigation-item.cjs.entry.js +1 -1
  57. package/dist/cjs/p-profile.cjs.entry.js +1 -1
  58. package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
  59. package/dist/cjs/p-status.cjs.entry.js +1 -1
  60. package/dist/cjs/p-stepper-item_2.cjs.entry.js +1 -1
  61. package/dist/cjs/p-stepper.cjs.entry.js +1 -1
  62. package/dist/cjs/p-tab-group.cjs.entry.js +1 -1
  63. package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
  64. package/dist/cjs/p-table-column_5.cjs.entry.js +1 -1
  65. package/dist/cjs/p-table-definition.cjs.entry.js +1 -1
  66. package/dist/cjs/p-table.cjs.entry.js +5 -1
  67. package/dist/cjs/p-tooltip.cjs.entry.js +1 -1
  68. package/dist/cjs/paperless.cjs.js +1 -1
  69. package/dist/collection/components/atoms/button/button.component.css +1 -1
  70. package/dist/collection/components/atoms/divider/divider.component.css +1 -1
  71. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -1
  72. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -1
  73. package/dist/collection/components/atoms/helper/helper.component.css +1 -1
  74. package/dist/collection/components/atoms/icon/icon.component.css +1 -1
  75. package/dist/collection/components/atoms/loader/loader.component.css +1 -1
  76. package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.css +1 -1
  77. package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -1
  78. package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -1
  79. package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +1 -1
  80. package/dist/collection/components/atoms/modal-header/modal-header.component.css +1 -1
  81. package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -1
  82. package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -1
  83. package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -1
  84. package/dist/collection/components/atoms/table-container/table-container.component.css +1 -1
  85. package/dist/collection/components/atoms/tag/tag.component.css +1 -1
  86. package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -1
  87. package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -1
  88. package/dist/collection/components/molecules/input-group/input-group.component.css +1 -1
  89. package/dist/collection/components/molecules/pagination/pagination.component.css +1 -1
  90. package/dist/collection/components/molecules/table-column/table-column.component.css +1 -1
  91. package/dist/collection/components/molecules/table-footer/table-footer.component.css +1 -1
  92. package/dist/collection/components/molecules/table-header/table-header.component.css +1 -1
  93. package/dist/collection/components/molecules/table-row/table-row.component.css +1 -1
  94. package/dist/collection/components/organisms/modal/modal.component.js +2 -2
  95. package/dist/collection/components/organisms/table/table.component.css +1 -1
  96. package/dist/collection/components/organisms/table/table.component.js +18 -0
  97. package/dist/components/p-modal.js +1 -1
  98. package/dist/components/p-table.js +4 -0
  99. package/dist/esm/{index-1ac329a8.js → index-7c99f044.js} +3 -0
  100. package/dist/esm/loader.js +1 -1
  101. package/dist/esm/p-accordion.entry.js +1 -1
  102. package/dist/esm/p-avatar-group.entry.js +1 -1
  103. package/dist/esm/p-avatar.entry.js +1 -1
  104. package/dist/esm/p-button_3.entry.js +1 -1
  105. package/dist/esm/p-card-body.entry.js +1 -1
  106. package/dist/esm/p-card-container.entry.js +1 -1
  107. package/dist/esm/p-card-header.entry.js +1 -1
  108. package/dist/esm/p-content-slider.entry.js +1 -1
  109. package/dist/esm/p-counter.entry.js +1 -1
  110. package/dist/esm/p-divider.entry.js +1 -1
  111. package/dist/esm/p-dropdown-menu-item_4.entry.js +1 -1
  112. package/dist/esm/p-dropdown_2.entry.js +1 -1
  113. package/dist/esm/p-helper_5.entry.js +1 -1
  114. package/dist/esm/p-illustration.entry.js +1 -1
  115. package/dist/esm/p-info-panel.entry.js +1 -1
  116. package/dist/esm/p-layout.entry.js +1 -1
  117. package/dist/esm/p-modal-backdrop_5.entry.js +1 -1
  118. package/dist/esm/p-modal.entry.js +2 -2
  119. package/dist/esm/p-navbar.entry.js +1 -1
  120. package/dist/esm/p-navigation-item.entry.js +1 -1
  121. package/dist/esm/p-profile.entry.js +1 -1
  122. package/dist/esm/p-slider-indicator.entry.js +1 -1
  123. package/dist/esm/p-status.entry.js +1 -1
  124. package/dist/esm/p-stepper-item_2.entry.js +1 -1
  125. package/dist/esm/p-stepper.entry.js +1 -1
  126. package/dist/esm/p-tab-group.entry.js +1 -1
  127. package/dist/esm/p-tab-item.entry.js +1 -1
  128. package/dist/esm/p-table-column_5.entry.js +1 -1
  129. package/dist/esm/p-table-definition.entry.js +1 -1
  130. package/dist/esm/p-table.entry.js +5 -1
  131. package/dist/esm/p-tooltip.entry.js +1 -1
  132. package/dist/esm/paperless.js +1 -1
  133. package/dist/index.html +1 -1
  134. package/dist/paperless/{p-dec10752.entry.js → p-007de3c2.entry.js} +1 -1
  135. package/dist/{build/p-b12f4b10.entry.js → paperless/p-039301c2.entry.js} +1 -1
  136. package/dist/{build/p-f8fa3f28.entry.js → paperless/p-06899ffb.entry.js} +1 -1
  137. package/dist/paperless/{p-66b0c60c.entry.js → p-11f54615.entry.js} +1 -1
  138. package/dist/paperless/{p-677d0647.entry.js → p-15d13147.entry.js} +1 -1
  139. package/dist/{build/p-e633010e.entry.js → paperless/p-1ed09d06.entry.js} +1 -1
  140. package/dist/paperless/{p-896e0cf3.entry.js → p-1f58297f.entry.js} +1 -1
  141. package/dist/paperless/{p-759b427a.entry.js → p-41588819.entry.js} +1 -1
  142. package/dist/paperless/{p-d2c6ba5f.entry.js → p-4588a510.entry.js} +1 -1
  143. package/dist/{build/p-1dea3e25.entry.js → paperless/p-52ab1f62.entry.js} +1 -1
  144. package/dist/{build/p-0ca1b35a.entry.js → paperless/p-58dd41be.entry.js} +1 -1
  145. package/dist/paperless/{p-619b6e40.entry.js → p-5a71d6ae.entry.js} +1 -1
  146. package/dist/paperless/{p-54dcb38b.entry.js → p-600a2f21.entry.js} +1 -1
  147. package/dist/paperless/{p-311ff802.entry.js → p-639afc96.entry.js} +1 -1
  148. package/dist/paperless/{p-954e3737.entry.js → p-78db3d3c.entry.js} +1 -1
  149. package/dist/{build/p-721d414a.entry.js → paperless/p-7e9a866e.entry.js} +1 -1
  150. package/dist/paperless/{p-7febed77.entry.js → p-8614bd10.entry.js} +1 -1
  151. package/dist/paperless/{p-b2edfc61.entry.js → p-86a6c56a.entry.js} +1 -1
  152. package/dist/{build/p-f9d3bcb7.entry.js → paperless/p-8c963008.entry.js} +1 -1
  153. package/dist/paperless/{p-2f401017.entry.js → p-8f179b0d.entry.js} +1 -1
  154. package/dist/paperless/{p-fc299f0f.entry.js → p-aae4caab.entry.js} +1 -1
  155. package/dist/paperless/{p-04b7fb67.entry.js → p-ad147b1b.entry.js} +1 -1
  156. package/dist/paperless/{p-5d768271.entry.js → p-b9a6f709.entry.js} +1 -1
  157. package/dist/{build/p-08ff155d.entry.js → paperless/p-c11282d2.entry.js} +1 -1
  158. package/dist/paperless/{p-ed08c398.entry.js → p-c4110c09.entry.js} +1 -1
  159. package/dist/{build/p-e42bfe22.entry.js → paperless/p-c74206e0.entry.js} +1 -1
  160. package/dist/paperless/p-d2afd9a5.entry.js +1 -0
  161. package/dist/paperless/p-d9c1fe13.js +2 -0
  162. package/dist/paperless/{p-22cbb8f4.entry.js → p-da1f5577.entry.js} +1 -1
  163. package/dist/paperless/{p-3f2c1aaf.entry.js → p-db19620c.entry.js} +1 -1
  164. package/dist/paperless/p-e580d566.entry.js +1 -0
  165. package/dist/paperless/{p-99e45c0c.entry.js → p-e8cf4a8a.entry.js} +1 -1
  166. package/dist/paperless/paperless.esm.js +1 -1
  167. package/dist/sw.js +1 -1
  168. package/dist/sw.js.map +1 -1
  169. package/dist/types/components/organisms/modal/modal.component.d.ts +1 -1
  170. package/dist/types/components/organisms/table/table.component.d.ts +5 -0
  171. package/dist/types/components.d.ts +5 -1
  172. package/package.json +1 -1
  173. package/dist/build/p-5f233f4b.entry.js +0 -1
  174. package/dist/build/p-a81035d0.js +0 -2
  175. package/dist/build/p-b3cc0ec0.entry.js +0 -1
  176. package/dist/paperless/p-5f233f4b.entry.js +0 -1
  177. package/dist/paperless/p-a81035d0.js +0 -2
  178. package/dist/paperless/p-b3cc0ec0.entry.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paperless/core",
3
- "version": "0.1.0-alpha.180",
3
+ "version": "0.1.0-alpha.182",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as o,H as i,g as e}from"./p-a81035d0.js";const a=class{constructor(o){t(this,o),this.close=s(this,"close",7),this.size="md",this.variant="default",this.show=!1,this.showMobileClose=!0,this.showMobileFooter=!1,this._hasFooterSlot=!1}componentWillLoad(){this._hasFooterSlot=!!this._el.querySelector('[slot="footer"]')}render(){if(!this.show)return;const t=o("slot",{name:"header"}),s=o("slot",{name:"content"}),e=o("slot",{name:"footer"});return o(i,{class:"p-modal"},o("p-modal-backdrop",null,o("p-modal-container",{size:this.size},o("p-modal-header",{"show-mobile-close":this.showMobileClose,onClose:()=>this.close.emit()},this.header?this.header:t),o("p-modal-body",{variant:this.variant},s),this._hasFooterSlot&&o("p-modal-footer",{"hide-on-mobile":this.showMobileFooter},e))))}get _el(){return e(this)}};export{a as p_modal}
@@ -1,2 +0,0 @@
1
- let e,t,n,l=!1,o=!1,s=!1,r=!1;const c="undefined"!=typeof window?window:{},i=c.document||{head:{}},f={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},a=e=>Promise.resolve(e),u=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=p(e,n),r=$(t,o),c=y(n);f.ael(s,l,r,c),(t.o=t.o||[]).push((()=>f.rel(s,l,r,c)))}))},$=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){fe(e)}},p=(e,t)=>4&t?i:8&t?c:16&t?i.body:e,y=e=>0!=(2&e),h=new WeakMap,m=e=>"sc-"+e.$,b={},w=e=>"object"==(e=typeof e)||"function"===e,v=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const c=[],i=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!w(l))&&(l+=""),s&&r?c[c.length-1].p+=l:c.push(s?g(null,l):l),r=s)};if(i(n),t){t.name&&(o=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,k);const f=g(e,null);return f.h=t,c.length>0&&(f.m=c),f.v=o,f},g=(e,t)=>({t:0,g:e,p:t,S:null,m:null,h:null,v:null}),S={},k={forEach:(e,t)=>e.map(j).forEach(t),map:(e,t)=>e.map(j).map(t).map(M)},j=e=>({vattrs:e.h,vchildren:e.m,vkey:e.k,vname:e.v,vtag:e.g,vtext:e.p}),M=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),v(e.vtag,t,...e.vchildren||[])}const t=g(e.vtag,e.vtext);return t.h=e.vattrs,t.m=e.vchildren,t.k=e.vkey,t.v=e.vname,t},C=(e,t,n,l,o,s)=>{if(n!==l){let r=ie(e,t),i=t.toLowerCase();if("class"===t){const t=e.classList,o=R(n),s=R(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const c=w(l);if((r||c&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||o)&&!c&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):ie(c,i)?i.slice(2):i[2]+t.slice(3),n&&f.rel(e,t,n,!1),l&&f.ael(e,t,l,!1)}},O=/\s/,R=e=>e?e.split(O):[],T=(e,t,n,l)=>{const o=11===t.S.nodeType&&t.S.host?t.S.host:t.S,s=e&&e.h||b,r=t.h||b;for(l in s)l in r||C(o,l,s[l],void 0,n,t.t);for(l in r)C(o,l,s[l],r[l],n,t.t)},x=(o,r,c,f)=>{const a=r.m[c];let u,d,$,p=0;if(l||(s=!0,"slot"===a.g&&(e&&f.classList.add(e+"-s"),a.t|=a.m?2:1)),null!==a.p)u=a.S=i.createTextNode(a.p);else if(1&a.t)u=a.S=i.createTextNode("");else if(u=a.S=i.createElement(2&a.t?"slot-fb":a.g),T(null,a,!1),null!=e&&u["s-si"]!==e&&u.classList.add(u["s-si"]=e),a.m)for(p=0;p<a.m.length;++p)d=x(o,a,p,u),d&&u.appendChild(d);return u["s-hn"]=n,3&a.t&&(u["s-sr"]=!0,u["s-cr"]=t,u["s-sn"]=a.v||"",$=o&&o.m&&o.m[c],$&&$.g===a.g&&o.S&&E(o.S,!1)),u},E=(e,t)=>{f.t|=1;const l=e.childNodes;for(let e=l.length-1;e>=0;e--){const o=l[e];o["s-hn"]!==n&&o["s-ol"]&&(U(o).insertBefore(o,W(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),t&&E(o,t)}f.t&=-2},L=(e,t,l,o,s,r)=>{let c,i=e["s-cr"]&&e["s-cr"].parentNode||e;for(i.shadowRoot&&i.tagName===n&&(i=i.shadowRoot);s<=r;++s)o[s]&&(c=x(null,l,s,e),c&&(o[s].S=c,i.insertBefore(c,W(t))))},N=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.S,V(l),o=!0,s["s-ol"]?s["s-ol"].remove():E(s,!0),s.remove())},P=(e,t)=>e.g===t.g&&("slot"!==e.g||e.v===t.v),W=e=>e&&e["s-ol"]||e,U=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,A=(e,t)=>{const n=t.S=e.S,l=e.m,o=t.m,s=t.p;let r;null===s?("slot"===t.g||T(e,t,!1),null!==l&&null!==o?((e,t,n,l)=>{let o,s=0,r=0,c=t.length-1,i=t[0],f=t[c],a=l.length-1,u=l[0],d=l[a];for(;s<=c&&r<=a;)null==i?i=t[++s]:null==f?f=t[--c]:null==u?u=l[++r]:null==d?d=l[--a]:P(i,u)?(A(i,u),i=t[++s],u=l[++r]):P(f,d)?(A(f,d),f=t[--c],d=l[--a]):P(i,d)?("slot"!==i.g&&"slot"!==d.g||E(i.S.parentNode,!1),A(i,d),e.insertBefore(i.S,f.S.nextSibling),i=t[++s],d=l[--a]):P(f,u)?("slot"!==i.g&&"slot"!==d.g||E(f.S.parentNode,!1),A(f,u),e.insertBefore(f.S,i.S),f=t[--c],u=l[++r]):(o=x(t&&t[r],n,r,e),u=l[++r],o&&U(i.S).insertBefore(o,W(i.S)));s>c?L(e,null==l[a+1]?null:l[a+1].S,n,l,r,a):r>a&&N(t,s,c)})(n,l,t,o):null!==o?(null!==e.p&&(n.textContent=""),L(n,null,t,o,0,o.length-1)):null!==l&&N(l,0,l.length-1)):(r=n["s-cr"])?r.parentNode.textContent=s:e.p!==s&&(n.data=s)},D=e=>{const t=e.childNodes;let n,l,o,s,r,c;for(l=0,o=t.length;l<o;l++)if(n=t[l],1===n.nodeType){if(n["s-sr"])for(r=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(c=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||""!==r){if(1===c&&r===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===c||3===c&&""!==t[s].textContent.trim()){n.hidden=!0;break}D(n)}},F=[],H=e=>{let t,n,l,s,r,c,i=0;const f=e.childNodes,a=f.length;for(;i<a;i++){if(t=f[i],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,s=t["s-sn"],c=l.length-1;c>=0;c--)n=l[c],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(q(n,s)?(r=F.find((e=>e.j===n)),o=!0,n["s-sn"]=n["s-sn"]||s,r?r.M=t:F.push({M:t,j:n}),n["s-sr"]&&F.map((e=>{q(e.j,n["s-sn"])&&(r=F.find((e=>e.j===n)),r&&!e.M&&(e.M=r.M))}))):F.some((e=>e.j===n))||F.push({j:n}));1===t.nodeType&&H(t)}},q=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,V=e=>{e.h&&e.h.ref&&e.h.ref(null),e.m&&e.m.map(V)},_=e=>se(e).C,z=(e,t,n)=>{const l=_(e);return{emit:e=>B(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},B=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},G=(e,t)=>{t&&!e.O&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.O=t)))},I=(e,t)=>{if(e.t|=16,!(4&e.t))return G(e,e.R),we((()=>J(e,t)));e.t|=512},J=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>Z(n,e,t))),e.u=null),l=Z(n,"componentWillLoad")),l=ee(l,(()=>Z(n,"componentWillRender"))),ee(l,(()=>K(e,n,t)))},K=async(e,t,n)=>{const l=e.C,o=l["s-rc"];n&&(e=>{const t=e.T,n=e.C,l=t.t,o=((e,t)=>{let n=m(t);const l=de.get(n);if(e=11===e.nodeType?e:i,l)if("string"==typeof l){let t,o=h.get(e=e.head||e);o||h.set(e,o=new Set),o.has(n)||(t=i.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);Q(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>X(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},Q=(r,c)=>{try{c=c.render(),r.t&=-17,r.t|=2,((r,c)=>{const a=r.C,u=r.T,d=r.L||g(null,null),$=(e=>e&&e.g===S)(c)?c:v(null,null,c);if(n=a.tagName,u.N&&($.h=$.h||{},u.N.map((([e,t])=>$.h[t]=a[e]))),$.g=null,$.t|=4,r.L=$,$.S=d.S=a.shadowRoot||a,e=a["s-sc"],t=a["s-cr"],l=0!=(1&u.t),o=!1,A(d,$),f.t|=1,s){let e,t,n,l,o,s;H($.S);let r=0;for(;r<F.length;r++)e=F[r],t=e.j,t["s-ol"]||(n=i.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(r=0;r<F.length;r++)if(e=F[r],t=e.j,e.M){for(l=e.M.parentNode,o=e.M.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}o&&D($.S),f.t&=-2,F.length=0})(r,c)}catch(e){fe(e,r.C)}return null},X=e=>{const t=e.C,n=e.i,l=e.R;64&e.t?Z(n,"componentDidUpdate"):(e.t|=64,te(t),Z(n,"componentDidLoad"),e.P(t),l||Y()),e.O&&(e.O(),e.O=void 0),512&e.t&&be((()=>I(e,!1))),e.t&=-517},Y=()=>{te(i.documentElement),be((()=>B(c,"appload",{detail:{namespace:"paperless"}})))},Z=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){fe(e)}},ee=(e,t)=>e&&e.then?e.then(t):t(),te=e=>e.classList.add("hydrated"),ne=(e,t,n)=>{if(t.W){e.watchers&&(t.U=e.watchers);const l=Object.entries(t.W),o=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,e,{get(){return((e,t)=>se(this).A.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=se(e),s=o.C,r=o.A.get(t),c=o.t,i=o.i;if(n=((e,t)=>null==e||w(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.W[t][0]),(!(8&c)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(o.A.set(t,n),i)){if(l.U&&128&c){const e=l.U[t];e&&e.map((e=>{try{i[e](n,r,t)}catch(e){fe(e,s)}}))}if(2==(18&c)){if(i.componentShouldUpdate&&!1===i.componentShouldUpdate(n,r,t))return;I(o,!1)}}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){f.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.N.push([e,o]),o}))}}return e},le=(e,t={})=>{const n=[],l=t.exclude||[],o=c.customElements,s=i.head,r=s.querySelector("meta[charset]"),a=i.createElement("style"),$=[];let p,y=!0;Object.assign(f,t),f.l=new URL(t.resourcesUrl||"./",i.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],$:t[1],W:t[2],D:t[3]};s.W=t[2],s.D=t[3],s.N=[],s.U={};const r=s.$,c=class extends HTMLElement{constructor(e){super(e),ce(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),y?$.push(this):f.jmp((()=>(e=>{if(0==(1&f.t)){const t=se(e),n=t.T,l=()=>{};if(1&t.t)d(e,t,n.D);else{t.t|=1,12&n.t&&(e=>{const t=e["s-cr"]=i.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){G(t,t.R=n);break}}n.W&&Object.entries(n.W).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.t)){{if(t.t|=32,(o=ue(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.U=o.watchers,ne(o,n,2),o.isProxied=!0);const e=()=>{};t.t|=8;try{new o(t)}catch(e){fe(e)}t.t&=-9,t.t|=128,e()}if(o.style){let e=o.style;const t=m(n);if(!de.has(t)){const l=()=>{};((e,t,n)=>{let l=de.get(e);u&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,de.set(e,l)})(t,e,!!(1&n.t)),l()}}}const s=t.R,r=()=>I(t,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(()=>{if(0==(1&f.t)){const e=se(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),Z(t,"disconnectedCallback")}})()))}componentOnReady(){return se(this).F}};s.H=e[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,ne(c,s,1)))}))})),a.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",a.setAttribute("data-styles",""),s.insertBefore(a,r?r.nextSibling:s.firstChild),y=!1,$.length?$.map((e=>e.connectedCallback())):f.jmp((()=>p=setTimeout(Y,30)))},oe=new WeakMap,se=e=>oe.get(e),re=(e,t)=>oe.set(t.i=e,t),ce=(e,t)=>{const n={t:0,C:e,T:t,A:new Map};return n.F=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],d(e,n,t.D),oe.set(e,n)},ie=(e,t)=>t in e,fe=(e,t)=>(0,console.error)(e,t),ae=new Map,ue=e=>{const t=e.$.replace(/-/g,"_"),n=e.H,l=ae.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(ae.set(n,e),e[t])),fe)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},de=new Map,$e=[],pe=[],ye=(e,t)=>n=>{e.push(n),r||(r=!0,t&&4&f.t?be(me):f.raf(me))},he=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){fe(e)}e.length=0},me=()=>{he($e),he(pe),(r=$e.length>0)&&f.raf(me)},be=e=>a().then(e),we=ye(pe,!0);export{S as H,le as b,z as c,_ as g,v as h,a as p,re as r}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as e,H as o,g as r}from"./p-a81035d0.js";import{d as s,a as n}from"./p-6c60fd3d.js";const a=class{constructor(e){t(this,e),this.selectedRowsChange=i(this,"selectedRowsChange",7),this.rowClick=i(this,"rowClick",7),this.rowSelected=i(this,"rowSelected",7),this.rowDeselected=i(this,"rowDeselected",7),this.quickFilter=i(this,"quickFilter",7),this.queryChange=i(this,"queryChange",7),this.filter=i(this,"filter",7),this.edit=i(this,"edit",7),this.pageChange=i(this,"pageChange",7),this.pageSizeChange=i(this,"pageSizeChange",7),this.export=i(this,"export",7),this.loading=!1,this.amountOfLoadingRows=4,this.enableRowSelection=!0,this.enableRowClick=!0,this.selectedRows=[],this.quickFilters=[],this.enableSearch=!0,this.enableFilter=!0,this.enableEdit=!0,this.enablePageSize=!0,this.enablePagination=!0,this.enableExport=!0,this.page=1,this.pageSize=s,this.pageSizeOptions=n,this.hideOnSinglePage=!0,this._columns=[],this._items=[],this._ctrlDown=!1}componentWillLoad(){this._parseItems(this.items),this._generateColumns()}render(){var t,i;return e(o,{class:"p-table"},e("p-table-container",null,e("p-table-header",{quickFilters:this.quickFilters,activeQuickFilterIdentifier:this.activeQuickFilterIdentifier,onQuickFilter:({detail:t})=>this.quickFilter.emit(t),enableSearch:this.enableSearch,query:this.query,onQueryChange:({detail:t})=>this.queryChange.emit(t),enableFilter:this.enableFilter,selectedFiltersAmount:this.selectedFiltersAmount,filterButtonTemplate:this.filterButtonTemplate,onFilter:()=>this.filter.emit(),enableEdit:this.enableEdit,canEdit:!!(null===(t=this.selectedRows)||void 0===t?void 0:t.length),editButtonTemplate:this.editButtonTemplate,onEdit:()=>this.edit.emit(),itemsSelectedAmount:null===(i=this.selectedRows)||void 0===i?void 0:i.length}),this._getHeader(),e("div",{class:"flex flex-col"},this._getRows()),e("p-table-footer",{hideOnSinglePage:this.hideOnSinglePage,enablePageSize:this.enablePageSize,pageSize:this.pageSize,pageSizeOptions:this.pageSizeOptions,onPageSizeChange:({detail:t})=>this.pageSizeChange.emit(t),enablePagination:this.enablePagination,page:this.page,total:this.total,onPageChange:({detail:t})=>this.pageChange.emit(t),enableExport:this.enableExport,onExport:()=>this.export.emit()})))}onTableDefinitionUpdated(){this._generateColumns()}keyDown({key:t}){"Control"===t&&!0!==this._ctrlDown&&(this._ctrlDown=!0)}keyUp({key:t}){"Control"===t&&!1!==this._ctrlDown&&(this._ctrlDown=!1)}visibilityChange(){"hidden"===document.visibilityState&&!1!==this._ctrlDown&&(this._ctrlDown=!1)}_parseItems(t){this._items=t?Array.isArray(t)?t:JSON.parse(t):[]}_generateColumns(){const t=this._el.querySelectorAll("p-table-definition");this._columns=Array.from(t)}_getHeader(){return e("p-table-row",{variant:"header"},this._columns.map(((t,i)=>e("p-table-column",{definition:t,value:t.name,variant:"header",checkbox:this._getCheckbox(i,null,"header"),index:i}))))}_getRows(){return this.loading?Array.from({length:this.amountOfLoadingRows},((t,i)=>e("p-table-row",{enableHover:this.enableRowSelection||this.enableRowClick},this._getLoadingColumns(i)))):this._items.map(((t,i)=>e("p-table-row",{enableHover:this.enableRowSelection||this.enableRowClick,onClick:t=>this._rowClick(t,i)},this._getRowColumns(t,i))))}_getRowColumns(t,i){return this._columns.map(((o,r)=>e("p-table-column",{definition:o,item:t,checkbox:this._getCheckbox(r,i),index:r,rowIndex:i})))}_getLoadingColumns(t){return this._columns.map(((i,o)=>e("p-table-column",{definition:i,variant:"loading",checkbox:this._getCheckbox(o,t,"loading"),index:o,rowIndex:t})))}_getCheckbox(t,i,o="default"){if(!this.enableRowSelection||!this.selectionKey||0!==t)return;if("loading"===o)return e("p-loader",{variant:"ghost",class:"rounded w-6 h-6"});if("header"===o)return e("input",{class:"p-input",type:"checkbox",onChange:t=>this._selectAllChange(t),checked:this._selectionContainsAll(),indeterminate:this._selectionIndeterminate()});const r=this._items[i];return e("input",{class:"p-input",type:"checkbox",onChange:t=>this._checkboxChange(null==t?void 0:t.target,i),disabled:this.canSelectKey&&!r[this.canSelectKey],checked:this._selectionContains(r,i)})}_selectAllChange(t){if(this.enableRowSelection){if(this._getCheckedValue(t.target)){const t=[];for(let i=0;i<this._items.length;i++){const e=this._items[i];this.canSelectKey&&!e[this.canSelectKey]||this._selectionContains(e,i)||(t.push(e),this.rowSelected.emit(e))}return this.selectedRows=[...this.selectedRows,...t],void this.selectedRowsChange.emit(this.selectedRows)}for(let t=0;t<this.selectedRows.length;t++){const i=this.selectedRows[t],e=this._items.find((e=>this._getSelectionValue(e,t)===this._getSelectionValue(i,t)));e&&this.rowDeselected.emit(e)}this.selectedRows=[],this.selectedRowsChange.emit(this.selectedRows)}}_checkboxChange(t,i){if(!this.enableRowSelection)return;const e=this._items[i];if(this.canSelectKey&&!e[this.canSelectKey])return void(t.checked=!1);if(this._getCheckedValue(t))return this.selectedRows=[...this.selectedRows,e],this.selectedRowsChange.emit(this.selectedRows),void this.rowSelected.emit(e);const o=this._selectionContains(e,i,!0),r=[...this.selectedRows];r.splice(o,1),this.selectedRows=r,this.selectedRowsChange.emit(this.selectedRows),this.rowDeselected.emit(e)}_getCheckedValue(t){return null==t?void 0:t.checked}_getSelectionValue(t,i){return this.selectionKey&&(null==t?void 0:t[this.selectionKey])||i}_selectionContains(t,i,e=!1){const o=this.selectedRows.findIndex((e=>this._getSelectionValue(t,i)===this._getSelectionValue(e,i)));return e?o:o>=0}_selectionContainsAll(){var t,i;let e=!0;if(!(null===(t=this._items)||void 0===t?void 0:t.length))return!1;for(let t=0;t<(null===(i=this._items)||void 0===i?void 0:i.length);t++)if(!this._selectionContains(this._items[t],t)){e=!1;break}return e}_selectionIndeterminate(){var t,i,e;if(!(null===(t=this._items)||void 0===t?void 0:t.length)||!(null===(i=this.selectedRows)||void 0===i?void 0:i.length))return!1;let o=0;for(let t=0;t<(null===(e=this._items)||void 0===e?void 0:e.length);t++)this._selectionContains(this._items[t],t)&&o++;return o>0&&o!==this._items.length}_rowClick(t,i){const e=t.target;if("input"===e.tagName.toLowerCase()||"checkbox"===e.type)return;const o=this._findRow(t.target);if(this.enableRowClick){if(this._findRowAction(t.target))return;return void this.rowClick.emit({item:this._items[i],ctrlDown:this._ctrlDown})}if(!this.enableRowSelection)return;const r=null==o?void 0:o.querySelector('input[type="checkbox"]');r&&(r.checked=!r.checked,this._checkboxChange(r,i))}_findRow(t){var i;return t?"p-table-row"===(null===(i=null==t?void 0:t.tagName)||void 0===i?void 0:i.toLowerCase())?t:this._findRow(null==t?void 0:t.parentElement):t}_findRowAction(t){var i;return t?null!==t.getAttribute("data-is-action")&&"false"!==t.getAttribute("data-is-action")?t:"p-table-row"===(null===(i=null==t?void 0:t.tagName)||void 0===i?void 0:i.toLowerCase())?null:this._findRowAction(null==t?void 0:t.parentElement):null}get _el(){return r(this)}static get watchers(){return{items:["_parseItems"]}}};a.style=".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-full{width:100%!important}.w-auto{width:auto!important}.flex-1{flex:1 1 0%!important}.flex-col{flex-direction:column!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.justify-self-end{justify-self:end!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.font-semibold{font-weight:600!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}*{box-sizing:border-box}p-table{display:flex;flex-direction:column}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}";export{a as p_table}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as o,H as i,g as e}from"./p-a81035d0.js";const a=class{constructor(o){t(this,o),this.close=s(this,"close",7),this.size="md",this.variant="default",this.show=!1,this.showMobileClose=!0,this.showMobileFooter=!1,this._hasFooterSlot=!1}componentWillLoad(){this._hasFooterSlot=!!this._el.querySelector('[slot="footer"]')}render(){if(!this.show)return;const t=o("slot",{name:"header"}),s=o("slot",{name:"content"}),e=o("slot",{name:"footer"});return o(i,{class:"p-modal"},o("p-modal-backdrop",null,o("p-modal-container",{size:this.size},o("p-modal-header",{"show-mobile-close":this.showMobileClose,onClose:()=>this.close.emit()},this.header?this.header:t),o("p-modal-body",{variant:this.variant},s),this._hasFooterSlot&&o("p-modal-footer",{"hide-on-mobile":this.showMobileFooter},e))))}get _el(){return e(this)}};export{a as p_modal}
@@ -1,2 +0,0 @@
1
- let e,t,n,l=!1,o=!1,s=!1,r=!1;const c="undefined"!=typeof window?window:{},i=c.document||{head:{}},f={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},a=e=>Promise.resolve(e),u=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=p(e,n),r=$(t,o),c=y(n);f.ael(s,l,r,c),(t.o=t.o||[]).push((()=>f.rel(s,l,r,c)))}))},$=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){fe(e)}},p=(e,t)=>4&t?i:8&t?c:16&t?i.body:e,y=e=>0!=(2&e),h=new WeakMap,m=e=>"sc-"+e.$,b={},w=e=>"object"==(e=typeof e)||"function"===e,v=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const c=[],i=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!w(l))&&(l+=""),s&&r?c[c.length-1].p+=l:c.push(s?g(null,l):l),r=s)};if(i(n),t){t.name&&(o=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,k);const f=g(e,null);return f.h=t,c.length>0&&(f.m=c),f.v=o,f},g=(e,t)=>({t:0,g:e,p:t,S:null,m:null,h:null,v:null}),S={},k={forEach:(e,t)=>e.map(j).forEach(t),map:(e,t)=>e.map(j).map(t).map(M)},j=e=>({vattrs:e.h,vchildren:e.m,vkey:e.k,vname:e.v,vtag:e.g,vtext:e.p}),M=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),v(e.vtag,t,...e.vchildren||[])}const t=g(e.vtag,e.vtext);return t.h=e.vattrs,t.m=e.vchildren,t.k=e.vkey,t.v=e.vname,t},C=(e,t,n,l,o,s)=>{if(n!==l){let r=ie(e,t),i=t.toLowerCase();if("class"===t){const t=e.classList,o=R(n),s=R(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const c=w(l);if((r||c&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||o)&&!c&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):ie(c,i)?i.slice(2):i[2]+t.slice(3),n&&f.rel(e,t,n,!1),l&&f.ael(e,t,l,!1)}},O=/\s/,R=e=>e?e.split(O):[],T=(e,t,n,l)=>{const o=11===t.S.nodeType&&t.S.host?t.S.host:t.S,s=e&&e.h||b,r=t.h||b;for(l in s)l in r||C(o,l,s[l],void 0,n,t.t);for(l in r)C(o,l,s[l],r[l],n,t.t)},x=(o,r,c,f)=>{const a=r.m[c];let u,d,$,p=0;if(l||(s=!0,"slot"===a.g&&(e&&f.classList.add(e+"-s"),a.t|=a.m?2:1)),null!==a.p)u=a.S=i.createTextNode(a.p);else if(1&a.t)u=a.S=i.createTextNode("");else if(u=a.S=i.createElement(2&a.t?"slot-fb":a.g),T(null,a,!1),null!=e&&u["s-si"]!==e&&u.classList.add(u["s-si"]=e),a.m)for(p=0;p<a.m.length;++p)d=x(o,a,p,u),d&&u.appendChild(d);return u["s-hn"]=n,3&a.t&&(u["s-sr"]=!0,u["s-cr"]=t,u["s-sn"]=a.v||"",$=o&&o.m&&o.m[c],$&&$.g===a.g&&o.S&&E(o.S,!1)),u},E=(e,t)=>{f.t|=1;const l=e.childNodes;for(let e=l.length-1;e>=0;e--){const o=l[e];o["s-hn"]!==n&&o["s-ol"]&&(U(o).insertBefore(o,W(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),t&&E(o,t)}f.t&=-2},L=(e,t,l,o,s,r)=>{let c,i=e["s-cr"]&&e["s-cr"].parentNode||e;for(i.shadowRoot&&i.tagName===n&&(i=i.shadowRoot);s<=r;++s)o[s]&&(c=x(null,l,s,e),c&&(o[s].S=c,i.insertBefore(c,W(t))))},N=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.S,V(l),o=!0,s["s-ol"]?s["s-ol"].remove():E(s,!0),s.remove())},P=(e,t)=>e.g===t.g&&("slot"!==e.g||e.v===t.v),W=e=>e&&e["s-ol"]||e,U=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,A=(e,t)=>{const n=t.S=e.S,l=e.m,o=t.m,s=t.p;let r;null===s?("slot"===t.g||T(e,t,!1),null!==l&&null!==o?((e,t,n,l)=>{let o,s=0,r=0,c=t.length-1,i=t[0],f=t[c],a=l.length-1,u=l[0],d=l[a];for(;s<=c&&r<=a;)null==i?i=t[++s]:null==f?f=t[--c]:null==u?u=l[++r]:null==d?d=l[--a]:P(i,u)?(A(i,u),i=t[++s],u=l[++r]):P(f,d)?(A(f,d),f=t[--c],d=l[--a]):P(i,d)?("slot"!==i.g&&"slot"!==d.g||E(i.S.parentNode,!1),A(i,d),e.insertBefore(i.S,f.S.nextSibling),i=t[++s],d=l[--a]):P(f,u)?("slot"!==i.g&&"slot"!==d.g||E(f.S.parentNode,!1),A(f,u),e.insertBefore(f.S,i.S),f=t[--c],u=l[++r]):(o=x(t&&t[r],n,r,e),u=l[++r],o&&U(i.S).insertBefore(o,W(i.S)));s>c?L(e,null==l[a+1]?null:l[a+1].S,n,l,r,a):r>a&&N(t,s,c)})(n,l,t,o):null!==o?(null!==e.p&&(n.textContent=""),L(n,null,t,o,0,o.length-1)):null!==l&&N(l,0,l.length-1)):(r=n["s-cr"])?r.parentNode.textContent=s:e.p!==s&&(n.data=s)},D=e=>{const t=e.childNodes;let n,l,o,s,r,c;for(l=0,o=t.length;l<o;l++)if(n=t[l],1===n.nodeType){if(n["s-sr"])for(r=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(c=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||""!==r){if(1===c&&r===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===c||3===c&&""!==t[s].textContent.trim()){n.hidden=!0;break}D(n)}},F=[],H=e=>{let t,n,l,s,r,c,i=0;const f=e.childNodes,a=f.length;for(;i<a;i++){if(t=f[i],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,s=t["s-sn"],c=l.length-1;c>=0;c--)n=l[c],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(q(n,s)?(r=F.find((e=>e.j===n)),o=!0,n["s-sn"]=n["s-sn"]||s,r?r.M=t:F.push({M:t,j:n}),n["s-sr"]&&F.map((e=>{q(e.j,n["s-sn"])&&(r=F.find((e=>e.j===n)),r&&!e.M&&(e.M=r.M))}))):F.some((e=>e.j===n))||F.push({j:n}));1===t.nodeType&&H(t)}},q=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,V=e=>{e.h&&e.h.ref&&e.h.ref(null),e.m&&e.m.map(V)},_=e=>se(e).C,z=(e,t,n)=>{const l=_(e);return{emit:e=>B(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},B=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},G=(e,t)=>{t&&!e.O&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.O=t)))},I=(e,t)=>{if(e.t|=16,!(4&e.t))return G(e,e.R),we((()=>J(e,t)));e.t|=512},J=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>Z(n,e,t))),e.u=null),l=Z(n,"componentWillLoad")),l=ee(l,(()=>Z(n,"componentWillRender"))),ee(l,(()=>K(e,n,t)))},K=async(e,t,n)=>{const l=e.C,o=l["s-rc"];n&&(e=>{const t=e.T,n=e.C,l=t.t,o=((e,t)=>{let n=m(t);const l=de.get(n);if(e=11===e.nodeType?e:i,l)if("string"==typeof l){let t,o=h.get(e=e.head||e);o||h.set(e,o=new Set),o.has(n)||(t=i.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);Q(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>X(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},Q=(r,c)=>{try{c=c.render(),r.t&=-17,r.t|=2,((r,c)=>{const a=r.C,u=r.T,d=r.L||g(null,null),$=(e=>e&&e.g===S)(c)?c:v(null,null,c);if(n=a.tagName,u.N&&($.h=$.h||{},u.N.map((([e,t])=>$.h[t]=a[e]))),$.g=null,$.t|=4,r.L=$,$.S=d.S=a.shadowRoot||a,e=a["s-sc"],t=a["s-cr"],l=0!=(1&u.t),o=!1,A(d,$),f.t|=1,s){let e,t,n,l,o,s;H($.S);let r=0;for(;r<F.length;r++)e=F[r],t=e.j,t["s-ol"]||(n=i.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(r=0;r<F.length;r++)if(e=F[r],t=e.j,e.M){for(l=e.M.parentNode,o=e.M.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}o&&D($.S),f.t&=-2,F.length=0})(r,c)}catch(e){fe(e,r.C)}return null},X=e=>{const t=e.C,n=e.i,l=e.R;64&e.t?Z(n,"componentDidUpdate"):(e.t|=64,te(t),Z(n,"componentDidLoad"),e.P(t),l||Y()),e.O&&(e.O(),e.O=void 0),512&e.t&&be((()=>I(e,!1))),e.t&=-517},Y=()=>{te(i.documentElement),be((()=>B(c,"appload",{detail:{namespace:"paperless"}})))},Z=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){fe(e)}},ee=(e,t)=>e&&e.then?e.then(t):t(),te=e=>e.classList.add("hydrated"),ne=(e,t,n)=>{if(t.W){e.watchers&&(t.U=e.watchers);const l=Object.entries(t.W),o=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,e,{get(){return((e,t)=>se(this).A.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=se(e),s=o.C,r=o.A.get(t),c=o.t,i=o.i;if(n=((e,t)=>null==e||w(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.W[t][0]),(!(8&c)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(o.A.set(t,n),i)){if(l.U&&128&c){const e=l.U[t];e&&e.map((e=>{try{i[e](n,r,t)}catch(e){fe(e,s)}}))}if(2==(18&c)){if(i.componentShouldUpdate&&!1===i.componentShouldUpdate(n,r,t))return;I(o,!1)}}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){f.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.N.push([e,o]),o}))}}return e},le=(e,t={})=>{const n=[],l=t.exclude||[],o=c.customElements,s=i.head,r=s.querySelector("meta[charset]"),a=i.createElement("style"),$=[];let p,y=!0;Object.assign(f,t),f.l=new URL(t.resourcesUrl||"./",i.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],$:t[1],W:t[2],D:t[3]};s.W=t[2],s.D=t[3],s.N=[],s.U={};const r=s.$,c=class extends HTMLElement{constructor(e){super(e),ce(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),y?$.push(this):f.jmp((()=>(e=>{if(0==(1&f.t)){const t=se(e),n=t.T,l=()=>{};if(1&t.t)d(e,t,n.D);else{t.t|=1,12&n.t&&(e=>{const t=e["s-cr"]=i.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){G(t,t.R=n);break}}n.W&&Object.entries(n.W).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.t)){{if(t.t|=32,(o=ue(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.U=o.watchers,ne(o,n,2),o.isProxied=!0);const e=()=>{};t.t|=8;try{new o(t)}catch(e){fe(e)}t.t&=-9,t.t|=128,e()}if(o.style){let e=o.style;const t=m(n);if(!de.has(t)){const l=()=>{};((e,t,n)=>{let l=de.get(e);u&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,de.set(e,l)})(t,e,!!(1&n.t)),l()}}}const s=t.R,r=()=>I(t,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(()=>{if(0==(1&f.t)){const e=se(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),Z(t,"disconnectedCallback")}})()))}componentOnReady(){return se(this).F}};s.H=e[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,ne(c,s,1)))}))})),a.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",a.setAttribute("data-styles",""),s.insertBefore(a,r?r.nextSibling:s.firstChild),y=!1,$.length?$.map((e=>e.connectedCallback())):f.jmp((()=>p=setTimeout(Y,30)))},oe=new WeakMap,se=e=>oe.get(e),re=(e,t)=>oe.set(t.i=e,t),ce=(e,t)=>{const n={t:0,C:e,T:t,A:new Map};return n.F=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],d(e,n,t.D),oe.set(e,n)},ie=(e,t)=>t in e,fe=(e,t)=>(0,console.error)(e,t),ae=new Map,ue=e=>{const t=e.$.replace(/-/g,"_"),n=e.H,l=ae.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(ae.set(n,e),e[t])),fe)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},de=new Map,$e=[],pe=[],ye=(e,t)=>n=>{e.push(n),r||(r=!0,t&&4&f.t?be(me):f.raf(me))},he=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){fe(e)}e.length=0},me=()=>{he($e),he(pe),(r=$e.length>0)&&f.raf(me)},be=e=>a().then(e),we=ye(pe,!0);export{S as H,le as b,z as c,_ as g,v as h,a as p,re as r}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as e,H as o,g as r}from"./p-a81035d0.js";import{d as s,a as n}from"./p-6c60fd3d.js";const a=class{constructor(e){t(this,e),this.selectedRowsChange=i(this,"selectedRowsChange",7),this.rowClick=i(this,"rowClick",7),this.rowSelected=i(this,"rowSelected",7),this.rowDeselected=i(this,"rowDeselected",7),this.quickFilter=i(this,"quickFilter",7),this.queryChange=i(this,"queryChange",7),this.filter=i(this,"filter",7),this.edit=i(this,"edit",7),this.pageChange=i(this,"pageChange",7),this.pageSizeChange=i(this,"pageSizeChange",7),this.export=i(this,"export",7),this.loading=!1,this.amountOfLoadingRows=4,this.enableRowSelection=!0,this.enableRowClick=!0,this.selectedRows=[],this.quickFilters=[],this.enableSearch=!0,this.enableFilter=!0,this.enableEdit=!0,this.enablePageSize=!0,this.enablePagination=!0,this.enableExport=!0,this.page=1,this.pageSize=s,this.pageSizeOptions=n,this.hideOnSinglePage=!0,this._columns=[],this._items=[],this._ctrlDown=!1}componentWillLoad(){this._parseItems(this.items),this._generateColumns()}render(){var t,i;return e(o,{class:"p-table"},e("p-table-container",null,e("p-table-header",{quickFilters:this.quickFilters,activeQuickFilterIdentifier:this.activeQuickFilterIdentifier,onQuickFilter:({detail:t})=>this.quickFilter.emit(t),enableSearch:this.enableSearch,query:this.query,onQueryChange:({detail:t})=>this.queryChange.emit(t),enableFilter:this.enableFilter,selectedFiltersAmount:this.selectedFiltersAmount,filterButtonTemplate:this.filterButtonTemplate,onFilter:()=>this.filter.emit(),enableEdit:this.enableEdit,canEdit:!!(null===(t=this.selectedRows)||void 0===t?void 0:t.length),editButtonTemplate:this.editButtonTemplate,onEdit:()=>this.edit.emit(),itemsSelectedAmount:null===(i=this.selectedRows)||void 0===i?void 0:i.length}),this._getHeader(),e("div",{class:"flex flex-col"},this._getRows()),e("p-table-footer",{hideOnSinglePage:this.hideOnSinglePage,enablePageSize:this.enablePageSize,pageSize:this.pageSize,pageSizeOptions:this.pageSizeOptions,onPageSizeChange:({detail:t})=>this.pageSizeChange.emit(t),enablePagination:this.enablePagination,page:this.page,total:this.total,onPageChange:({detail:t})=>this.pageChange.emit(t),enableExport:this.enableExport,onExport:()=>this.export.emit()})))}onTableDefinitionUpdated(){this._generateColumns()}keyDown({key:t}){"Control"===t&&!0!==this._ctrlDown&&(this._ctrlDown=!0)}keyUp({key:t}){"Control"===t&&!1!==this._ctrlDown&&(this._ctrlDown=!1)}visibilityChange(){"hidden"===document.visibilityState&&!1!==this._ctrlDown&&(this._ctrlDown=!1)}_parseItems(t){this._items=t?Array.isArray(t)?t:JSON.parse(t):[]}_generateColumns(){const t=this._el.querySelectorAll("p-table-definition");this._columns=Array.from(t)}_getHeader(){return e("p-table-row",{variant:"header"},this._columns.map(((t,i)=>e("p-table-column",{definition:t,value:t.name,variant:"header",checkbox:this._getCheckbox(i,null,"header"),index:i}))))}_getRows(){return this.loading?Array.from({length:this.amountOfLoadingRows},((t,i)=>e("p-table-row",{enableHover:this.enableRowSelection||this.enableRowClick},this._getLoadingColumns(i)))):this._items.map(((t,i)=>e("p-table-row",{enableHover:this.enableRowSelection||this.enableRowClick,onClick:t=>this._rowClick(t,i)},this._getRowColumns(t,i))))}_getRowColumns(t,i){return this._columns.map(((o,r)=>e("p-table-column",{definition:o,item:t,checkbox:this._getCheckbox(r,i),index:r,rowIndex:i})))}_getLoadingColumns(t){return this._columns.map(((i,o)=>e("p-table-column",{definition:i,variant:"loading",checkbox:this._getCheckbox(o,t,"loading"),index:o,rowIndex:t})))}_getCheckbox(t,i,o="default"){if(!this.enableRowSelection||!this.selectionKey||0!==t)return;if("loading"===o)return e("p-loader",{variant:"ghost",class:"rounded w-6 h-6"});if("header"===o)return e("input",{class:"p-input",type:"checkbox",onChange:t=>this._selectAllChange(t),checked:this._selectionContainsAll(),indeterminate:this._selectionIndeterminate()});const r=this._items[i];return e("input",{class:"p-input",type:"checkbox",onChange:t=>this._checkboxChange(null==t?void 0:t.target,i),disabled:this.canSelectKey&&!r[this.canSelectKey],checked:this._selectionContains(r,i)})}_selectAllChange(t){if(this.enableRowSelection){if(this._getCheckedValue(t.target)){const t=[];for(let i=0;i<this._items.length;i++){const e=this._items[i];this.canSelectKey&&!e[this.canSelectKey]||this._selectionContains(e,i)||(t.push(e),this.rowSelected.emit(e))}return this.selectedRows=[...this.selectedRows,...t],void this.selectedRowsChange.emit(this.selectedRows)}for(let t=0;t<this.selectedRows.length;t++){const i=this.selectedRows[t],e=this._items.find((e=>this._getSelectionValue(e,t)===this._getSelectionValue(i,t)));e&&this.rowDeselected.emit(e)}this.selectedRows=[],this.selectedRowsChange.emit(this.selectedRows)}}_checkboxChange(t,i){if(!this.enableRowSelection)return;const e=this._items[i];if(this.canSelectKey&&!e[this.canSelectKey])return void(t.checked=!1);if(this._getCheckedValue(t))return this.selectedRows=[...this.selectedRows,e],this.selectedRowsChange.emit(this.selectedRows),void this.rowSelected.emit(e);const o=this._selectionContains(e,i,!0),r=[...this.selectedRows];r.splice(o,1),this.selectedRows=r,this.selectedRowsChange.emit(this.selectedRows),this.rowDeselected.emit(e)}_getCheckedValue(t){return null==t?void 0:t.checked}_getSelectionValue(t,i){return this.selectionKey&&(null==t?void 0:t[this.selectionKey])||i}_selectionContains(t,i,e=!1){const o=this.selectedRows.findIndex((e=>this._getSelectionValue(t,i)===this._getSelectionValue(e,i)));return e?o:o>=0}_selectionContainsAll(){var t,i;let e=!0;if(!(null===(t=this._items)||void 0===t?void 0:t.length))return!1;for(let t=0;t<(null===(i=this._items)||void 0===i?void 0:i.length);t++)if(!this._selectionContains(this._items[t],t)){e=!1;break}return e}_selectionIndeterminate(){var t,i,e;if(!(null===(t=this._items)||void 0===t?void 0:t.length)||!(null===(i=this.selectedRows)||void 0===i?void 0:i.length))return!1;let o=0;for(let t=0;t<(null===(e=this._items)||void 0===e?void 0:e.length);t++)this._selectionContains(this._items[t],t)&&o++;return o>0&&o!==this._items.length}_rowClick(t,i){const e=t.target;if("input"===e.tagName.toLowerCase()||"checkbox"===e.type)return;const o=this._findRow(t.target);if(this.enableRowClick){if(this._findRowAction(t.target))return;return void this.rowClick.emit({item:this._items[i],ctrlDown:this._ctrlDown})}if(!this.enableRowSelection)return;const r=null==o?void 0:o.querySelector('input[type="checkbox"]');r&&(r.checked=!r.checked,this._checkboxChange(r,i))}_findRow(t){var i;return t?"p-table-row"===(null===(i=null==t?void 0:t.tagName)||void 0===i?void 0:i.toLowerCase())?t:this._findRow(null==t?void 0:t.parentElement):t}_findRowAction(t){var i;return t?null!==t.getAttribute("data-is-action")&&"false"!==t.getAttribute("data-is-action")?t:"p-table-row"===(null===(i=null==t?void 0:t.tagName)||void 0===i?void 0:i.toLowerCase())?null:this._findRowAction(null==t?void 0:t.parentElement):null}get _el(){return r(this)}static get watchers(){return{items:["_parseItems"]}}};a.style=".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-full{width:100%!important}.w-auto{width:auto!important}.flex-1{flex:1 1 0%!important}.flex-col{flex-direction:column!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.justify-self-end{justify-self:end!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.font-semibold{font-weight:600!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}*{box-sizing:border-box}p-table{display:flex;flex-direction:column}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}";export{a as p_table}