@paperless/core 2.0.1-beta.8 → 2.0.1-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,8 @@ export declare class Profile {
12
12
  componentWillLoad(): void;
13
13
  componentWillRender(): void;
14
14
  render(): any;
15
+ slotchange(): void;
16
+ private _checkDropdownSlot;
15
17
  private _getContent;
16
18
  private _updateAvatar;
17
19
  }
package/hydrate/index.js CHANGED
@@ -25988,14 +25988,23 @@ class Profile {
25988
25988
  this._hasDropdownSlot = false;
25989
25989
  }
25990
25990
  componentWillLoad() {
25991
- this._hasDropdownSlot = !!this._el.querySelector(':scope > [slot="dropdown"]');
25991
+ this._checkDropdownSlot();
25992
25992
  }
25993
25993
  componentWillRender() {
25994
25994
  this._updateAvatar();
25995
25995
  }
25996
25996
  render() {
25997
25997
  const content = this._getContent();
25998
- return (hAsync(Host, { class: 'p-profile inline-block w-inherit' }, this._hasDropdownSlot ? (hAsync("p-dropdown", { class: 'block', strategy: 'absolute', placement: this.dropdownLocation, applyFullWidth: true, applyMaxWidth: false, onIsOpen: ev => (this._dropdownOpen = ev.detail) }, hAsync("p-button", { variant: 'dropdown', chevron: this._dropdownOpen ? 'up' : 'down', active: this._dropdownOpen, slot: 'trigger', size: 'lg', class: 'w-full' }, content), hAsync("div", { slot: 'items' }, hAsync("slot", { name: 'dropdown' })))) : (content)));
25998
+ return (hAsync(Host, { class: 'p-profile inline-block w-inherit' }, this._hasDropdownSlot ? (hAsync("p-dropdown", { class: 'block', strategy: 'absolute', placement: this.dropdownLocation, applyFullWidth: true, applyMaxWidth: false, onIsOpen: ev => (this._dropdownOpen = ev.detail) }, hAsync("p-button", { variant: 'dropdown', chevron: this._dropdownOpen ? 'up' : 'down', active: this._dropdownOpen, slot: 'trigger', size: 'lg', class: 'w-full' }, content), hAsync("div", { slot: 'items' }, hAsync("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
25999
+ }
26000
+ slotchange() {
26001
+ this._checkDropdownSlot();
26002
+ }
26003
+ _checkDropdownSlot() {
26004
+ this._hasDropdownSlot = !!this._el.querySelector(':scope > [slot="dropdown"]');
26005
+ if (!this._hasDropdownSlot && this._dropdownOpen) {
26006
+ this._dropdownOpen = false;
26007
+ }
25999
26008
  }
26000
26009
  _getContent() {
26001
26010
  return (hAsync("div", { class: profileContent({
@@ -26019,7 +26028,7 @@ class Profile {
26019
26028
  "_dropdownOpen": [32],
26020
26029
  "_hasDropdownSlot": [32]
26021
26030
  },
26022
- "$listeners$": undefined,
26031
+ "$listeners$": [[0, "slotchange", "slotchange"]],
26023
26032
  "$lazyBundleId$": "-",
26024
26033
  "$attrsToReflect$": []
26025
26034
  }; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paperless/core",
3
- "version": "2.0.1-beta.8",
3
+ "version": "2.0.1-beta.9",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1,2 +0,0 @@
1
- import{r as t,h as i,H as e,g as o}from"./p-64b68231.js";import{c as a}from"./p-8a5b8196.js";import"./p-8a1a6e56.js";const s="*{box-sizing:border-box}.static{position:static!important}.absolute{position:absolute!important}.block{display:block!important}.inline-block{display:inline-block!important}.flex{display:flex!important}.h-10{height:2.5rem!important}.w-full{width:100%!important}.w-inherit{width:inherit!important}.min-w-0{min-width:0!important}.flex-1{flex:1 1 0%!important}.flex-col{flex-direction:column!important}.items-start{align-items:flex-start!important}.items-center{align-items:center!important}.gap-2{gap:.5rem!important}.overflow-hidden{overflow:hidden!important}.text-ellipsis{text-overflow:ellipsis!important}.whitespace-nowrap{white-space:nowrap!important}.py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-medium{font-weight:500!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}";const n=a(["flex gap-2 items-center flex-1 min-w-0"],{variants:{dropdown:{false:"h-10 py-1",true:null}}});const r=class{constructor(i){t(this,i);this.dropdownLocation="bottom-end";this._dropdownOpen=false;this._hasDropdownSlot=false}componentWillLoad(){this._hasDropdownSlot=!!this._el.querySelector(':scope > [slot="dropdown"]')}componentWillRender(){this._updateAvatar()}render(){const t=this._getContent();return i(e,{class:"p-profile inline-block w-inherit"},this._hasDropdownSlot?i("p-dropdown",{class:"block",strategy:"absolute",placement:this.dropdownLocation,applyFullWidth:true,applyMaxWidth:false,onIsOpen:t=>this._dropdownOpen=t.detail},i("p-button",{variant:"dropdown",chevron:this._dropdownOpen?"up":"down",active:this._dropdownOpen,slot:"trigger",size:"lg",class:"w-full"},t),i("div",{slot:"items"},i("slot",{name:"dropdown"}))):t)}_getContent(){return i("div",{class:n({dropdown:this._hasDropdownSlot})},i("slot",{name:"avatar"}),i("div",{class:"flex min-w-0 flex-1 flex-col items-start"},i("p",{class:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium"},i("slot",{name:"title"})),i("p",{class:"overflow-hidden text-ellipsis whitespace-nowrap text-xs text-black-teal-300"},i("slot",{name:"subtitle"}))),i("slot",{name:"post-title"}))}_updateAvatar(){const t=this._el.querySelector('p-avatar[slot="avatar"]');if(!t){return}t.size=this._hasDropdownSlot?"sm":t.size}get _el(){return o(this)}};r.style=s;export{r as p_profile};
2
- //# sourceMappingURL=p-3586044c.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["profileComponentCss","profileContent","cva","variants","dropdown","false","true","Profile","componentWillLoad","this","_hasDropdownSlot","_el","querySelector","componentWillRender","_updateAvatar","render","content","_getContent","h","Host","class","strategy","placement","dropdownLocation","applyFullWidth","applyMaxWidth","onIsOpen","ev","_dropdownOpen","detail","variant","chevron","active","slot","size","name","avatar"],"sources":["src/components/molecules/profile/profile.component.scss?tag=p-profile","src/components/molecules/profile/profile.component.tsx"],"sourcesContent":["// :host {\n// \t@apply flex;\n//\n// \t.content {\n// \t\t@apply flex gap-3 items-center w-full;\n//\n// \t\t.name {\n// \t\t\t@apply flex flex-col justify-center overflow-hidden;\n//\n// \t\t\t> *:nth-child(1) {\n// \t\t\t\t@apply text-sm text-storm-dark;\n// \t\t\t\t@apply font-semibold;\n// \t\t\t}\n//\n// \t\t\t> *:nth-child(2) {\n// \t\t\t\t@apply text-sm text-storm-vague;\n// \t\t\t}\n//\n// \t\t\t::slotted(*) {\n// \t\t\t\t@apply text-ellipsis overflow-hidden whitespace-nowrap;\n// \t\t\t}\n// \t\t}\n// \t}\n// }\n//\n// :host([size='xsmall']) {\n// \t@apply h-6;\n// }\n//\n// :host([size='small']) {\n// \t@apply h-8;\n// }\n//\n// :host([size='table']) {\n// \t@apply h-10;\n// }\n//\n// :host([size='medium']) {\n// \t@apply h-[3.125rem];\n// }\n//\n// :host([size='large']) {\n// \t@apply h-16;\n// }\n//\n// :host([size='xlarge']) {\n// \t@apply h-[6.5rem];\n// }\n//\n// :host(.has-dropdown) {\n// \t@apply cursor-pointer;\n//\n// \t.content {\n// \t\t@apply p-2 rounded;\n// \t\t@apply border border-solid border-mystic-dark #{!important};\n// \t}\n// }\n//\n// :host(.has-dropdown[size='small']) {\n// \t@apply h-12;\n// }\n//\n// :host(.has-dropdown[size='medium']) {\n// \t@apply h-[4.125rem];\n// }\n//\n// :host(.has-dropdown[size='large']) {\n// \t@apply h-20;\n// }\n//\n// :host(.has-dropdown:hover),\n// :host(.active) {\n// \t.content {\n// \t\t@apply shadow-3;\n// \t}\n// }\n//\n// :host(.active) {\n// \t.content {\n// \t\tp-icon {\n// \t\t\t@apply text-indigo;\n// \t\t}\n// \t}\n// }\n","import { Component, Element, h, Host, Prop, State } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\nconst profileContent = cva(['flex gap-2 items-center flex-1 min-w-0'], {\n\tvariants: {\n\t\tdropdown: {\n\t\t\tfalse: 'h-10 py-1',\n\t\t\ttrue: null,\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-profile',\n\tstyleUrl: 'profile.component.scss',\n})\nexport class Profile {\n\t/**\n\t * The position of the dropdown\n\t */\n\t@Prop() dropdownLocation: 'top-end' | 'bottom-end' = 'bottom-end';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _dropdownOpen = false;\n\t@State() private _hasDropdownSlot = false;\n\n\tcomponentWillLoad() {\n\t\tthis._hasDropdownSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"dropdown\"]'\n\t\t);\n\t}\n\n\tcomponentWillRender() {\n\t\tthis._updateAvatar();\n\t}\n\n\trender() {\n\t\tconst content = this._getContent();\n\t\treturn (\n\t\t\t<Host class='p-profile inline-block w-inherit'>\n\t\t\t\t{this._hasDropdownSlot ? (\n\t\t\t\t\t<p-dropdown\n\t\t\t\t\t\tclass='block'\n\t\t\t\t\t\tstrategy='absolute'\n\t\t\t\t\t\tplacement={this.dropdownLocation}\n\t\t\t\t\t\tapplyFullWidth={true}\n\t\t\t\t\t\tapplyMaxWidth={false}\n\t\t\t\t\t\tonIsOpen={ev => (this._dropdownOpen = ev.detail)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tvariant='dropdown'\n\t\t\t\t\t\t\tchevron={this._dropdownOpen ? 'up' : 'down'}\n\t\t\t\t\t\t\tactive={this._dropdownOpen}\n\t\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\t\tsize='lg'\n\t\t\t\t\t\t\tclass='w-full'\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{content}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t\t<div slot='items'>\n\t\t\t\t\t\t\t<slot name='dropdown' />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</p-dropdown>\n\t\t\t\t) : (\n\t\t\t\t\tcontent\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _getContent() {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclass={profileContent({\n\t\t\t\t\tdropdown: this._hasDropdownSlot,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<slot name='avatar' />\n\t\t\t\t<div class='flex min-w-0 flex-1 flex-col items-start'>\n\t\t\t\t\t<p class='overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium'>\n\t\t\t\t\t\t<slot name='title' />\n\t\t\t\t\t</p>\n\t\t\t\t\t<p class='overflow-hidden text-ellipsis whitespace-nowrap text-xs text-black-teal-300'>\n\t\t\t\t\t\t<slot name='subtitle' />\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\n\t\t\t\t<slot name='post-title' />\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _updateAvatar() {\n\t\tconst avatar = this._el.querySelector(\n\t\t\t'p-avatar[slot=\"avatar\"]'\n\t\t) as HTMLPAvatarElement;\n\n\t\tif (!avatar) {\n\t\t\treturn;\n\t\t}\n\n\t\tavatar.size = this._hasDropdownSlot ? 'sm' : avatar.size;\n\t}\n}\n"],"mappings":"qHAAA,MAAMA,EAAsB,y+BCG5B,MAAMC,EAAiBC,EAAI,CAAC,0CAA2C,CACtEC,SAAU,CACTC,SAAU,CACTC,MAAO,YACPC,KAAM,S,MASIC,EAAO,M,+CAIkC,a,mBAOpB,M,sBACG,K,CAEpC,iBAAAC,GACCC,KAAKC,mBAAqBD,KAAKE,IAAIC,cAClC,6B,CAIF,mBAAAC,GACCJ,KAAKK,e,CAGN,MAAAC,GACC,MAAMC,EAAUP,KAAKQ,cACrB,OACCC,EAACC,EAAI,CAACC,MAAM,oCACVX,KAAKC,iBACLQ,EAAA,cACCE,MAAM,QACNC,SAAS,WACTC,UAAWb,KAAKc,iBAChBC,eAAgB,KAChBC,cAAe,MACfC,SAAUC,GAAOlB,KAAKmB,cAAgBD,EAAGE,QAEzCX,EAAA,YACCY,QAAQ,WACRC,QAAStB,KAAKmB,cAAgB,KAAO,OACrCI,OAAQvB,KAAKmB,cACbK,KAAK,UACLC,KAAK,KACLd,MAAM,UAELJ,GAEFE,EAAA,OAAKe,KAAK,SACTf,EAAA,QAAMiB,KAAK,eAEA,E,CAQT,WAAAlB,GACP,OACCC,EAAA,OACCE,MAAOnB,EAAe,CACrBG,SAAUK,KAAKC,oBAGhBQ,EAAA,QAAMiB,KAAK,WACXjB,EAAA,OAAKE,MAAM,4CACVF,EAAA,KAAGE,MAAM,uEACRF,EAAA,QAAMiB,KAAK,WAEZjB,EAAA,KAAGE,MAAM,+EACRF,EAAA,QAAMiB,KAAK,eAIbjB,EAAA,QAAMiB,KAAK,e,CAKN,aAAArB,GACP,MAAMsB,EAAS3B,KAAKE,IAAIC,cACvB,2BAGD,IAAKwB,EAAQ,CACZ,M,CAGDA,EAAOF,KAAOzB,KAAKC,iBAAmB,KAAO0B,EAAOF,I"}
@@ -1,2 +0,0 @@
1
- import{r as t,h as i,H as e,g as o}from"./p-64b68231.js";import{c as a}from"./p-8a5b8196.js";import"./p-8a1a6e56.js";const s="*{box-sizing:border-box}.static{position:static!important}.absolute{position:absolute!important}.block{display:block!important}.inline-block{display:inline-block!important}.flex{display:flex!important}.h-10{height:2.5rem!important}.w-full{width:100%!important}.w-inherit{width:inherit!important}.min-w-0{min-width:0!important}.flex-1{flex:1 1 0%!important}.flex-col{flex-direction:column!important}.items-start{align-items:flex-start!important}.items-center{align-items:center!important}.gap-2{gap:.5rem!important}.overflow-hidden{overflow:hidden!important}.text-ellipsis{text-overflow:ellipsis!important}.whitespace-nowrap{white-space:nowrap!important}.py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-medium{font-weight:500!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}";const n=a(["flex gap-2 items-center flex-1 min-w-0"],{variants:{dropdown:{false:"h-10 py-1",true:null}}});const r=class{constructor(i){t(this,i);this.dropdownLocation="bottom-end";this._dropdownOpen=false;this._hasDropdownSlot=false}componentWillLoad(){this._hasDropdownSlot=!!this._el.querySelector(':scope > [slot="dropdown"]')}componentWillRender(){this._updateAvatar()}render(){const t=this._getContent();return i(e,{class:"p-profile inline-block w-inherit"},this._hasDropdownSlot?i("p-dropdown",{class:"block",strategy:"absolute",placement:this.dropdownLocation,applyFullWidth:true,applyMaxWidth:false,onIsOpen:t=>this._dropdownOpen=t.detail},i("p-button",{variant:"dropdown",chevron:this._dropdownOpen?"up":"down",active:this._dropdownOpen,slot:"trigger",size:"lg",class:"w-full"},t),i("div",{slot:"items"},i("slot",{name:"dropdown"}))):t)}_getContent(){return i("div",{class:n({dropdown:this._hasDropdownSlot})},i("slot",{name:"avatar"}),i("div",{class:"flex min-w-0 flex-1 flex-col items-start"},i("p",{class:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium"},i("slot",{name:"title"})),i("p",{class:"overflow-hidden text-ellipsis whitespace-nowrap text-xs text-black-teal-300"},i("slot",{name:"subtitle"}))),i("slot",{name:"post-title"}))}_updateAvatar(){const t=this._el.querySelector('p-avatar[slot="avatar"]');if(!t){return}t.size=this._hasDropdownSlot?"sm":t.size}get _el(){return o(this)}};r.style=s;export{r as p_profile};
2
- //# sourceMappingURL=p-3586044c.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["profileComponentCss","profileContent","cva","variants","dropdown","false","true","Profile","componentWillLoad","this","_hasDropdownSlot","_el","querySelector","componentWillRender","_updateAvatar","render","content","_getContent","h","Host","class","strategy","placement","dropdownLocation","applyFullWidth","applyMaxWidth","onIsOpen","ev","_dropdownOpen","detail","variant","chevron","active","slot","size","name","avatar"],"sources":["src/components/molecules/profile/profile.component.scss?tag=p-profile","src/components/molecules/profile/profile.component.tsx"],"sourcesContent":["// :host {\n// \t@apply flex;\n//\n// \t.content {\n// \t\t@apply flex gap-3 items-center w-full;\n//\n// \t\t.name {\n// \t\t\t@apply flex flex-col justify-center overflow-hidden;\n//\n// \t\t\t> *:nth-child(1) {\n// \t\t\t\t@apply text-sm text-storm-dark;\n// \t\t\t\t@apply font-semibold;\n// \t\t\t}\n//\n// \t\t\t> *:nth-child(2) {\n// \t\t\t\t@apply text-sm text-storm-vague;\n// \t\t\t}\n//\n// \t\t\t::slotted(*) {\n// \t\t\t\t@apply text-ellipsis overflow-hidden whitespace-nowrap;\n// \t\t\t}\n// \t\t}\n// \t}\n// }\n//\n// :host([size='xsmall']) {\n// \t@apply h-6;\n// }\n//\n// :host([size='small']) {\n// \t@apply h-8;\n// }\n//\n// :host([size='table']) {\n// \t@apply h-10;\n// }\n//\n// :host([size='medium']) {\n// \t@apply h-[3.125rem];\n// }\n//\n// :host([size='large']) {\n// \t@apply h-16;\n// }\n//\n// :host([size='xlarge']) {\n// \t@apply h-[6.5rem];\n// }\n//\n// :host(.has-dropdown) {\n// \t@apply cursor-pointer;\n//\n// \t.content {\n// \t\t@apply p-2 rounded;\n// \t\t@apply border border-solid border-mystic-dark #{!important};\n// \t}\n// }\n//\n// :host(.has-dropdown[size='small']) {\n// \t@apply h-12;\n// }\n//\n// :host(.has-dropdown[size='medium']) {\n// \t@apply h-[4.125rem];\n// }\n//\n// :host(.has-dropdown[size='large']) {\n// \t@apply h-20;\n// }\n//\n// :host(.has-dropdown:hover),\n// :host(.active) {\n// \t.content {\n// \t\t@apply shadow-3;\n// \t}\n// }\n//\n// :host(.active) {\n// \t.content {\n// \t\tp-icon {\n// \t\t\t@apply text-indigo;\n// \t\t}\n// \t}\n// }\n","import { Component, Element, h, Host, Prop, State } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\nconst profileContent = cva(['flex gap-2 items-center flex-1 min-w-0'], {\n\tvariants: {\n\t\tdropdown: {\n\t\t\tfalse: 'h-10 py-1',\n\t\t\ttrue: null,\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-profile',\n\tstyleUrl: 'profile.component.scss',\n})\nexport class Profile {\n\t/**\n\t * The position of the dropdown\n\t */\n\t@Prop() dropdownLocation: 'top-end' | 'bottom-end' = 'bottom-end';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _dropdownOpen = false;\n\t@State() private _hasDropdownSlot = false;\n\n\tcomponentWillLoad() {\n\t\tthis._hasDropdownSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"dropdown\"]'\n\t\t);\n\t}\n\n\tcomponentWillRender() {\n\t\tthis._updateAvatar();\n\t}\n\n\trender() {\n\t\tconst content = this._getContent();\n\t\treturn (\n\t\t\t<Host class='p-profile inline-block w-inherit'>\n\t\t\t\t{this._hasDropdownSlot ? (\n\t\t\t\t\t<p-dropdown\n\t\t\t\t\t\tclass='block'\n\t\t\t\t\t\tstrategy='absolute'\n\t\t\t\t\t\tplacement={this.dropdownLocation}\n\t\t\t\t\t\tapplyFullWidth={true}\n\t\t\t\t\t\tapplyMaxWidth={false}\n\t\t\t\t\t\tonIsOpen={ev => (this._dropdownOpen = ev.detail)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tvariant='dropdown'\n\t\t\t\t\t\t\tchevron={this._dropdownOpen ? 'up' : 'down'}\n\t\t\t\t\t\t\tactive={this._dropdownOpen}\n\t\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\t\tsize='lg'\n\t\t\t\t\t\t\tclass='w-full'\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{content}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t\t<div slot='items'>\n\t\t\t\t\t\t\t<slot name='dropdown' />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</p-dropdown>\n\t\t\t\t) : (\n\t\t\t\t\tcontent\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _getContent() {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclass={profileContent({\n\t\t\t\t\tdropdown: this._hasDropdownSlot,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<slot name='avatar' />\n\t\t\t\t<div class='flex min-w-0 flex-1 flex-col items-start'>\n\t\t\t\t\t<p class='overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium'>\n\t\t\t\t\t\t<slot name='title' />\n\t\t\t\t\t</p>\n\t\t\t\t\t<p class='overflow-hidden text-ellipsis whitespace-nowrap text-xs text-black-teal-300'>\n\t\t\t\t\t\t<slot name='subtitle' />\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\n\t\t\t\t<slot name='post-title' />\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _updateAvatar() {\n\t\tconst avatar = this._el.querySelector(\n\t\t\t'p-avatar[slot=\"avatar\"]'\n\t\t) as HTMLPAvatarElement;\n\n\t\tif (!avatar) {\n\t\t\treturn;\n\t\t}\n\n\t\tavatar.size = this._hasDropdownSlot ? 'sm' : avatar.size;\n\t}\n}\n"],"mappings":"qHAAA,MAAMA,EAAsB,y+BCG5B,MAAMC,EAAiBC,EAAI,CAAC,0CAA2C,CACtEC,SAAU,CACTC,SAAU,CACTC,MAAO,YACPC,KAAM,S,MASIC,EAAO,M,+CAIkC,a,mBAOpB,M,sBACG,K,CAEpC,iBAAAC,GACCC,KAAKC,mBAAqBD,KAAKE,IAAIC,cAClC,6B,CAIF,mBAAAC,GACCJ,KAAKK,e,CAGN,MAAAC,GACC,MAAMC,EAAUP,KAAKQ,cACrB,OACCC,EAACC,EAAI,CAACC,MAAM,oCACVX,KAAKC,iBACLQ,EAAA,cACCE,MAAM,QACNC,SAAS,WACTC,UAAWb,KAAKc,iBAChBC,eAAgB,KAChBC,cAAe,MACfC,SAAUC,GAAOlB,KAAKmB,cAAgBD,EAAGE,QAEzCX,EAAA,YACCY,QAAQ,WACRC,QAAStB,KAAKmB,cAAgB,KAAO,OACrCI,OAAQvB,KAAKmB,cACbK,KAAK,UACLC,KAAK,KACLd,MAAM,UAELJ,GAEFE,EAAA,OAAKe,KAAK,SACTf,EAAA,QAAMiB,KAAK,eAEA,E,CAQT,WAAAlB,GACP,OACCC,EAAA,OACCE,MAAOnB,EAAe,CACrBG,SAAUK,KAAKC,oBAGhBQ,EAAA,QAAMiB,KAAK,WACXjB,EAAA,OAAKE,MAAM,4CACVF,EAAA,KAAGE,MAAM,uEACRF,EAAA,QAAMiB,KAAK,WAEZjB,EAAA,KAAGE,MAAM,+EACRF,EAAA,QAAMiB,KAAK,eAIbjB,EAAA,QAAMiB,KAAK,e,CAKN,aAAArB,GACP,MAAMsB,EAAS3B,KAAKE,IAAIC,cACvB,2BAGD,IAAKwB,EAAQ,CACZ,M,CAGDA,EAAOF,KAAOzB,KAAKC,iBAAmB,KAAO0B,EAAOF,I"}