@paperless/core 0.1.0-alpha.88 → 0.1.0-alpha.91
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/CHANGELOG.md +33 -0
- package/dist/build/p-0e6e6d75.entry.js +1 -0
- package/dist/build/p-6fc27bea.entry.js +1 -0
- package/dist/build/{p-22acb992.entry.js → p-e900123c.entry.js} +1 -1
- package/dist/build/p-f4110080.entry.js +1 -0
- package/dist/build/p-f4302275.entry.js +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-avatar_2.cjs.entry.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +1 -1
- package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +16 -7
- package/dist/cjs/p-modal.cjs.entry.js +10 -1
- package/dist/cjs/p-profile.cjs.entry.js +6 -2
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/components/atoms/avatar/avatar.component.css +2 -2
- package/dist/collection/components/atoms/icon/icon.component.css +1 -1
- package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.css +2 -2
- package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -1
- package/dist/collection/components/atoms/modal-container/modal-container.component.css +2 -2
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +4 -0
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +28 -2
- package/dist/collection/components/atoms/modal-header/modal-header.component.css +14 -4
- package/dist/collection/components/atoms/modal-header/modal-header.component.js +51 -2
- package/dist/collection/components/molecules/profile/profile.component.css +4 -1
- package/dist/collection/components/molecules/profile/profile.component.js +23 -1
- package/dist/collection/components/organisms/modal/modal.component.js +67 -3
- package/dist/components/avatar.component.js +1 -1
- package/dist/components/icon.component.js +1 -1
- package/dist/components/modal-backdrop.component.js +1 -1
- package/dist/components/modal-body.component.js +1 -1
- package/dist/components/modal-container.component.js +1 -1
- package/dist/components/modal-footer.component.js +9 -3
- package/dist/components/modal-header.component.js +18 -5
- package/dist/components/p-modal.js +22 -5
- package/dist/components/p-profile.js +7 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-avatar_2.entry.js +1 -1
- package/dist/esm/p-button_3.entry.js +1 -1
- package/dist/esm/p-modal-backdrop_5.entry.js +17 -8
- package/dist/esm/p-modal.entry.js +11 -2
- package/dist/esm/p-profile.entry.js +6 -2
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/p-0e6e6d75.entry.js +1 -0
- package/dist/paperless/p-6fc27bea.entry.js +1 -0
- package/dist/paperless/{p-22acb992.entry.js → p-e900123c.entry.js} +1 -1
- package/dist/paperless/p-f4110080.entry.js +1 -0
- package/dist/paperless/p-f4302275.entry.js +1 -0
- 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/atoms/modal-footer/modal-footer.component.d.ts +4 -0
- package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +9 -0
- package/dist/types/components/molecules/profile/profile.component.d.ts +4 -0
- package/dist/types/components/organisms/modal/modal.component.d.ts +13 -0
- package/dist/types/components.d.ts +56 -0
- package/package.json +1 -1
- package/dist/build/p-2ccb568d.entry.js +0 -1
- package/dist/build/p-5ac76d18.entry.js +0 -1
- package/dist/build/p-79405608.entry.js +0 -1
- package/dist/build/p-92b012e8.entry.js +0 -1
- package/dist/paperless/p-2ccb568d.entry.js +0 -1
- package/dist/paperless/p-5ac76d18.entry.js +0 -1
- package/dist/paperless/p-79405608.entry.js +0 -1
- package/dist/paperless/p-92b012e8.entry.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,39 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 0.1.0-alpha.91 (2022-09-06)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **Atoms/Modal Body:** Update table variant padding ([23afe3f](https://github.com/ionic-team/stencil-component-starter/commit/23afe3f450b0b173e19249f47768b3e67d66e09b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# 0.1.0-alpha.90 (2022-09-06)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **Molecules/Profile:** Overflow protection ([126176a](https://github.com/ionic-team/stencil-component-starter/commit/126176ad7beba79db3c0dc02a1748f58a3efadea))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# 0.1.0-alpha.89 (2022-09-06)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* **Organisms/Modal:** Implement mobile modal ([f98dc4f](https://github.com/ionic-team/stencil-component-starter/commit/f98dc4f46152a0f753c141e1f7efcd92e89126c2))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
6
39
|
# 0.1.0-alpha.88 (2022-09-06)
|
|
7
40
|
|
|
8
41
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as o,H as r,g as e}from"./p-8d46c60d.js";const i=class{constructor(o){t(this,o),this.variant="user",this.size="small",this._dropdownOpen=!1}render(){const t=!!this._el.querySelector('[slot="dropdown"]'),e=this._getContent(t);return o(r,{class:`p-profile ${t&&"has-dropdown"} ${this._dropdownOpen&&"active"}`},t?o("p-dropdown",{class:"w-full min-w-0",strategy:"absolute",placement:"user"===this.variant?"top-end":"bottom-end",onIsOpen:t=>this._dropdownOpen=t.detail},e,o("div",{slot:"items"},o("slot",{name:"dropdown"}))):e)}_getContent(t){const r=this._generateAvatar();return o("div",{class:"content",slot:"trigger"},r,o("div",{class:"name"},o("slot",{name:"title"}),o("slot",{name:"subtitle"})),t&&this._getIcon())}_generateAvatar(){var t,r,e;const i=this._el.querySelector('p-avatar[slot="avatar"]');if(i)return o("p-avatar",{class:"flex",src:null!==(t=i.src)&&void 0!==t?t:null,"default-image":null!==(r=i.defaultImage)&&void 0!==r?r:null,variant:null!==(e=this.variant)&&void 0!==e?e:i.variant,size:this.size})}_getIcon(){return o("p-icon",{class:"ml-auto",variant:"company"===this.variant?"chevron":"more"})}get _el(){return e(this)}};i.style=".static{position:static!important}.absolute{position:absolute!important}.ml-auto{margin-left:auto!important}.flex{display:flex!important}.w-full{width:100%!important}.min-w-0{min-width:0!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-3{gap:.75rem!important}.overflow-hidden{overflow:hidden!important}.text-ellipsis{text-overflow:ellipsis!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-mystic-dark{--tw-border-opacity:1!important;border-color:rgb(218 230 240/var(--tw-border-opacity))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}*{box-sizing:border-box}:host{display:flex}:host .content{align-items:center;display:flex;gap:.75rem;height:3rem;width:100%}:host .content .name{display:flex;flex-direction:column;justify-content:center;overflow:hidden}:host .content .name>:first-child{--tw-text-opacity:1;color:rgb(39 40 56/var(--tw-text-opacity));font-size:.875rem;font-weight:600;line-height:1.25rem}:host .content .name>:nth-child(2){--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem}:host .content .name ::slotted(*){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.has-dropdown){cursor:pointer}:host(.has-dropdown) .content{--tw-border-opacity:1!important;border-color:rgb(218 230 240/var(--tw-border-opacity))!important;border-radius:.25rem;border-style:solid!important;border-width:1px!important;padding-left:.5rem;padding-right:.5rem}:host(.active) .content,:host(.has-dropdown:hover) .content{--tw-shadow:0px 0.3125rem 1rem rgba(0,24,98,.08),0px 0.0625rem 0.1875rem rgba(0,24,98,.13);--tw-shadow-colored:0px 0.3125rem 1rem var(--tw-shadow-color),0px 0.0625rem 0.1875rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:host(.active) .content p-icon{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity))}";export{i as p_profile}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,H as s,c as a,g as e}from"./p-8d46c60d.js";import{c as o}from"./p-a7086ffa.js";const r=class{constructor(i){t(this,i),this.variant="user",this.size="medium",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}
|