@paperless/core 0.1.0-alpha.118 → 0.1.0-alpha.119

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 (41) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/build/{p-19c20c8e.entry.js → p-14a6b006.entry.js} +1 -1
  3. package/dist/{paperless/p-1ef22f4e.entry.js → build/p-4ed92e5e.entry.js} +1 -1
  4. package/dist/build/p-ce33c9a2.entry.js +1 -0
  5. package/dist/{paperless/p-5b8f7a76.entry.js → build/p-f93d8ae2.entry.js} +1 -1
  6. package/dist/build/paperless.esm.js +1 -1
  7. package/dist/cjs/p-avatar_2.cjs.entry.js +6 -5
  8. package/dist/cjs/p-button_3.cjs.entry.js +1 -1
  9. package/dist/cjs/p-content-slider.cjs.entry.js +1 -1
  10. package/dist/cjs/p-navbar.cjs.entry.js +1 -1
  11. package/dist/collection/components/atoms/avatar/avatar.component.js +8 -6
  12. package/dist/collection/components/atoms/divider/divider.component.css +1 -1
  13. package/dist/collection/components/atoms/icon/icon.component.css +1 -1
  14. package/dist/collection/components/atoms/loader/loader.component.css +1 -1
  15. package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.css +1 -1
  16. package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -1
  17. package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -1
  18. package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +1 -1
  19. package/dist/collection/components/atoms/modal-header/modal-header.component.css +1 -1
  20. package/dist/collection/components/molecules/content-slider/content-slider.component.css +1 -2
  21. package/dist/collection/components/organisms/navbar/navbar.component.css +2 -2
  22. package/dist/components/avatar.component.js +6 -5
  23. package/dist/components/loader.component.js +1 -1
  24. package/dist/components/p-content-slider.js +1 -1
  25. package/dist/components/p-navbar.js +1 -1
  26. package/dist/esm/p-avatar_2.entry.js +6 -5
  27. package/dist/esm/p-button_3.entry.js +1 -1
  28. package/dist/esm/p-content-slider.entry.js +1 -1
  29. package/dist/esm/p-navbar.entry.js +1 -1
  30. package/dist/index.html +1 -1
  31. package/dist/paperless/{p-19c20c8e.entry.js → p-14a6b006.entry.js} +1 -1
  32. package/dist/{build/p-1ef22f4e.entry.js → paperless/p-4ed92e5e.entry.js} +1 -1
  33. package/dist/paperless/p-ce33c9a2.entry.js +1 -0
  34. package/dist/{build/p-5b8f7a76.entry.js → paperless/p-f93d8ae2.entry.js} +1 -1
  35. package/dist/paperless/paperless.esm.js +1 -1
  36. package/dist/sw.js +1 -1
  37. package/dist/sw.js.map +1 -1
  38. package/dist/types/components/atoms/avatar/avatar.component.d.ts +1 -2
  39. package/package.json +1 -1
  40. package/dist/build/p-592426ae.entry.js +0 -1
  41. package/dist/paperless/p-592426ae.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as s,c as a,g as e}from"./p-bc7e8cc4.js";import{c as o}from"./p-a7086ffa.js";const r=class{constructor(i){t(this,i),this.variant="user",this.size="medium"}componentWillRender(){this.src!==this._lastSrc&&(this._lastSrc=this.src,this._src=this.src)}render(){return this._src||this._setDefaultLink(),i(s,{class:"p-avatar"},i("img",{src:this._src,onError:()=>this._setDefaultLink()}))}_setDefaultLink(){var t;this._src=null!==(t=this.defaultImage)&&void 0!==t?t:"user"===this.variant?"/assets/images/avatar/user-default.svg":"/assets/images/avatar/company-default.svg"}};r.style=".static{position:static!important}.absolute{position:absolute!important}.ml-auto{margin-left:auto!important}.flex{display:flex!important}.w-8{width:2rem!important}.w-\\[3\\.125rem\\]{width:3.125rem!important}.w-16{width:4rem!important}.w-full{width:100%!important}.min-w-0{min-width:0!important}.rounded{border-radius:.25rem!important}.object-cover{-o-object-fit:cover!important;object-fit:cover!important}*{box-sizing:border-box}p-avatar{display:inline-block}p-avatar>img{-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}p-avatar[size=small]>img{height:2rem;width:2rem}p-avatar[size=medium]>img{height:3.125rem;width:3.125rem}p-avatar[size=large]>img{height:4rem;width:4rem}p-avatar[variant=company]>img{border-radius:.25rem}p-avatar[variant=company][size=large]>img,p-avatar[variant=company][size=medium]>img{border-radius:.375rem}p-avatar[variant=user]>img{border-radius:100%}";const n=class{constructor(i){t(this,i),this.isOpen=a(this,"isOpen",7),this.placement="bottom-start",this.strategy="fixed",this.show=!1,this.insideClick=!1,this.disableTriggerClick=!1,this._loaded=!1}componentShouldUpdate(){this._setOptions(),this._loaded&&this.show&&this._show()}render(){return i(s,{class:"p-dropdown"},i("div",{class:"trigger",onClick:()=>this._triggerClickHandler()},i("slot",{onSlotchange:t=>this._checkButton(t),name:"trigger"})),i("p-dropdown-menu-container",{role:"popover",ref:t=>this._load(t),onClick:()=>this._containerClickHandler()},i("slot",{name:"items"})))}_checkButton({target:t}){const i=t.assignedElements();for(let t of i)"P-BUTTON"===t.nodeName&&(t.chevron=this.placement.indexOf("top")>=0?"up":"down")}_containerClickHandler(){this.insideClick||this._menu.hasAttribute("data-show")&&this._hide()}_triggerClickHandler(){this.disableTriggerClick||(this._menu.hasAttribute("data-show")?this._hide():this._show())}documentClickHandler({target:t}){this._menu.hasAttribute("data-show")&&!((t,i)=>{for(;(t=t.parentNode)&&t!==i;);return!!t})(t,this._el)&&this._hide()}_load(t){this._menu=t,t&&(this._popper=o(this._el,t,{strategy:this.strategy}),this._setOptions(),this._loaded=!0,this.show&&setTimeout((()=>this._show()),100))}_setOptions(){this._popper&&this._popper.setOptions({placement:this.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})}_show(){this._loaded&&(this._menu.setAttribute("data-show",""),this.isOpen.emit(!0),this._popper.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:!0}]}))),this._popper.update())}_hide(){this._loaded&&!this.show&&(this._menu.removeAttribute("data-show"),this.isOpen.emit(!1),this._popper.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:!1}]}))))}get _el(){return e(this)}};n.style=".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.ml-auto{margin-left:auto!important}.flex{display:flex!important}.hidden{display:none!important}.w-auto{width:auto!important}.w-full{width:100%!important}.min-w-0{min-width:0!important}*{box-sizing:border-box}:host{position:relative}:host .trigger{height:auto;width:auto}:host p-dropdown-menu-container{display:none}:host p-dropdown-menu-container[data-show]{display:flex}";export{r as p_avatar,n as p_dropdown}