@paperless/core 1.59.1 → 1.59.3
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 +19 -0
- package/dist/build/p-8af4e8e9.entry.js +2 -0
- package/dist/build/p-8af4e8e9.entry.js.map +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/p-card-header.cjs.entry.js +8 -3
- package/dist/cjs/p-card-header.cjs.entry.js.map +1 -1
- package/dist/collection/components/atoms/card-header/card-header.component.css +1 -1
- package/dist/collection/components/atoms/card-header/card-header.component.js +7 -2
- package/dist/collection/components/atoms/card-header/card-header.component.js.map +1 -1
- package/dist/components/p-card-header.js +8 -3
- package/dist/components/p-card-header.js.map +1 -1
- package/dist/esm/p-card-header.entry.js +8 -3
- package/dist/esm/p-card-header.entry.js.map +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/p-8af4e8e9.entry.js +2 -0
- package/dist/paperless/p-8af4e8e9.entry.js.map +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/card-header/card-header.component.d.ts +1 -0
- package/hydrate/index.js +8 -3
- package/package.json +1 -1
- package/dist/build/p-b84b1a5f.entry.js +0 -2
- package/dist/build/p-b84b1a5f.entry.js.map +0 -1
- package/dist/paperless/p-b84b1a5f.entry.js +0 -2
- package/dist/paperless/p-b84b1a5f.entry.js.map +0 -1
package/hydrate/index.js
CHANGED
|
@@ -12034,21 +12034,26 @@ class CardContainer {
|
|
|
12034
12034
|
}; }
|
|
12035
12035
|
}
|
|
12036
12036
|
|
|
12037
|
-
const cardHeaderComponentCss = ".mx-4{margin-left:1rem!important;margin-right:1rem!important}.
|
|
12037
|
+
const cardHeaderComponentCss = ".mx-4{margin-left:1rem!important;margin-right:1rem!important}.flex{display:flex!important}.h-14{height:3.5rem!important}.flex-1{flex:1 1 0%!important}.items-center{align-items:center!important}.gap-2{gap:.5rem!important}.overflow-hidden{overflow:hidden!important}.text-ellipsis{text-overflow:ellipsis!important}.border-b{border-bottom-width:1px!important}.border-b-mystic-medium{--tw-border-opacity:1!important;border-bottom-color:rgb(227 236 243/var(--tw-border-opacity))!important}*{box-sizing:border-box}p-card-header{--tw-text-opacity:1;--tw-border-opacity:1!important;align-items:center;border-bottom-color:rgb(227 236 243/var(--tw-border-opacity))!important;border-bottom-width:1px!important;color:rgb(128 130 158/var(--tw-text-opacity));display:flex;flex-shrink:0;gap:.75rem;height:3.5rem;margin-left:1rem;margin-right:1rem}p-card-header .content{--tw-text-opacity:1;align-items:center;color:rgb(81 83 107/var(--tw-text-opacity));display:flex;flex:1 1 0%;font-weight:600;gap:.5rem;order:2;overflow:hidden}p-card-header .content>span{flex:1 1 0%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}p-card-header .content>p-icon{--tw-text-opacity:1;color:rgb(218 230 240/var(--tw-text-opacity))}p-card-header [slot=prefix]{order:1}p-card-header [slot=suffix]{order:3}p-card-container.has-hover:hover p-card-header .title>p-icon{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity))}.static{position:static!important}.group:hover .group-hover\\:text-indigo{--tw-text-opacity:1!important;color:rgb(82 138 250/var(--tw-text-opacity))!important}";
|
|
12038
12038
|
|
|
12039
12039
|
class CardHeader {
|
|
12040
12040
|
constructor(hostRef) {
|
|
12041
12041
|
registerInstance(this, hostRef);
|
|
12042
12042
|
this._hasContentSlot = false;
|
|
12043
|
+
this._hasContentSuffixSlot = false;
|
|
12043
12044
|
this.header = undefined;
|
|
12044
12045
|
this.arrow = false;
|
|
12045
12046
|
}
|
|
12046
12047
|
componentWillLoad() {
|
|
12047
|
-
this._hasContentSlot = !!this._el.querySelector(':scope > [slot="
|
|
12048
|
+
this._hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
|
|
12049
|
+
this._hasContentSuffixSlot = !!this._el.querySelector(':scope > [slot="content-suffix"]');
|
|
12048
12050
|
}
|
|
12049
12051
|
render() {
|
|
12050
12052
|
var _a, _b;
|
|
12051
|
-
return (hAsync(Host, { class: 'p-card-header' }, hAsync("slot", { name: 'prefix' }), (((_a = this.header) === null || _a === void 0 ? void 0 : _a.length) ||
|
|
12053
|
+
return (hAsync(Host, { class: 'p-card-header' }, hAsync("slot", { name: 'prefix' }), (((_a = this.header) === null || _a === void 0 ? void 0 : _a.length) ||
|
|
12054
|
+
this._hasContentSlot ||
|
|
12055
|
+
this._hasContentSuffixSlot ||
|
|
12056
|
+
this.arrow) && (hAsync("div", { class: 'content' }, hAsync("span", null, ((_b = this.header) === null || _b === void 0 ? void 0 : _b.length) ? this.header : hAsync("slot", { name: 'content' })), hAsync("slot", { name: 'content-suffix' }), this.arrow && (hAsync("p-icon", { variant: 'arrow', class: 'group-hover:text-indigo' })))), hAsync("slot", { name: 'suffix' })));
|
|
12052
12057
|
}
|
|
12053
12058
|
get _el() { return getElement(this); }
|
|
12054
12059
|
static get style() { return cardHeaderComponentCss; }
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as r,H as e,g as o}from"./p-e4d5e7a7.js";const i=".mx-4{margin-left:1rem!important;margin-right:1rem!important}.ml-2{margin-left:.5rem!important}.flex{display:flex!important}.h-14{height:3.5rem!important}.flex-1{flex:1 1 0%!important}.items-center{align-items:center!important}.gap-3{gap:.75rem!important}.overflow-hidden{overflow:hidden!important}.text-ellipsis{text-overflow:ellipsis!important}.border-b{border-bottom-width:1px!important}.border-b-mystic-medium{--tw-border-opacity:1!important;border-bottom-color:rgb(227 236 243/var(--tw-border-opacity))!important}*{box-sizing:border-box}p-card-header{--tw-text-opacity:1;--tw-border-opacity:1!important;align-items:center;border-bottom-color:rgb(227 236 243/var(--tw-border-opacity))!important;border-bottom-width:1px!important;color:rgb(128 130 158/var(--tw-text-opacity));display:flex;flex-shrink:0;gap:.75rem;height:3.5rem;margin-left:1rem;margin-right:1rem}p-card-header .title{--tw-text-opacity:1;align-items:center;color:rgb(81 83 107/var(--tw-text-opacity));display:flex;flex:1 1 0%;font-weight:600;order:2;overflow:hidden}p-card-header .title>span{flex:1 1 0%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}p-card-header .title>p-icon{--tw-text-opacity:1;color:rgb(218 230 240/var(--tw-text-opacity));margin-left:.5rem}p-card-header [slot=prefix]{order:1}p-card-header [slot=suffix]{order:3}p-card-container.has-hover:hover p-card-header .title>p-icon{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity))}.static{position:static!important}.group:hover .group-hover\\:text-indigo{--tw-text-opacity:1!important;color:rgb(82 138 250/var(--tw-text-opacity))!important}";const a=class{constructor(r){t(this,r);this._hasContentSlot=false;this.header=undefined;this.arrow=false}componentWillLoad(){this._hasContentSlot=!!this._el.querySelector(':scope > [slot="slot"]')}render(){var t,o;return r(e,{class:"p-card-header"},r("slot",{name:"prefix"}),(((t=this.header)===null||t===void 0?void 0:t.length)||this._hasContentSlot||this.arrow)&&r("div",{class:"title"},r("span",null,(o=this.header)!==null&&o!==void 0?o:r("slot",{name:"content"})),this.arrow&&r("p-icon",{variant:"arrow",class:"group-hover:text-indigo"})),r("slot",{name:"suffix"}))}get _el(){return o(this)}};a.style=i;export{a as p_card_header};
|
|
2
|
-
//# sourceMappingURL=p-b84b1a5f.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["cardHeaderComponentCss","CardHeader","this","_hasContentSlot","componentWillLoad","_el","querySelector","render","h","Host","class","name","_a","header","length","arrow","_b","variant"],"sources":["src/components/atoms/card-header/card-header.component.scss?tag=p-card-header","src/components/atoms/card-header/card-header.component.tsx"],"sourcesContent":["p-card-header {\n\t@apply mx-4 h-14 flex-shrink-0;\n\t@apply flex gap-3 items-center;\n\t@apply text-storm-medium;\n\t@apply border-b border-b-mystic-medium #{!important};\n\n\t.title {\n\t\t@apply order-2;\n\t\t@apply flex-1 overflow-hidden flex items-center text-storm;\n\t\t@apply font-semibold;\n\n\t\t> span {\n\t\t\t@apply flex-1 overflow-hidden text-ellipsis whitespace-nowrap;\n\t\t}\n\n\t\t> p-icon {\n\t\t\t@apply ml-2 text-mystic-dark;\n\t\t}\n\t}\n\n\t[slot='prefix'] {\n\t\t@apply order-1;\n\t}\n\n\t[slot='suffix'] {\n\t\t@apply order-3;\n\t}\n}\n\np-card-container.has-hover:hover {\n\tp-card-header {\n\t\t.title > p-icon {\n\t\t\t@apply text-indigo;\n\t\t}\n\t}\n}\n","import { Component, h, Host, Prop, Element } from '@stencil/core';\n\n@Component({\n\ttag: 'p-card-header',\n\tstyleUrl: 'card-header.component.scss',\n})\nexport class CardHeader {\n\t/**\n\t * Content of the card header\n\t */\n\t@Prop() header: string;\n\n\t/**\n\t * Enable the title arrow\n\t */\n\t@Prop() arrow: boolean = false;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\tprivate _hasContentSlot = false;\n\n\tcomponentWillLoad() {\n\t\tthis._hasContentSlot = !!this._el.querySelector(':scope > [slot=\"slot\"]');\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-card-header'>\n\t\t\t\t<slot name='prefix' />\n\n\t\t\t\t{(this.header?.length || this._hasContentSlot || this.arrow) && (\n\t\t\t\t\t<div class='title'>\n\t\t\t\t\t\t<span>{this.header ?? <slot name='content' />}</span>\n\t\t\t\t\t\t{this.arrow && (\n\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\tvariant='arrow'\n\t\t\t\t\t\t\t\tclass='group-hover:text-indigo'\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\n\t\t\t\t<slot name='suffix' />\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"mappings":"yDAAA,MAAMA,EAAyB,mkD,MCMlBC,EAAU,M,yBAgBdC,KAAAC,gBAAkB,M,iCAPD,K,CASzB,iBAAAC,GACCF,KAAKC,kBAAoBD,KAAKG,IAAIC,cAAc,yB,CAGjD,MAAAC,G,QACC,OACCC,EAACC,EAAI,CAACC,MAAM,iBACXF,EAAA,QAAMG,KAAK,cAETC,EAAAV,KAAKW,UAAM,MAAAD,SAAA,SAAAA,EAAEE,SAAUZ,KAAKC,iBAAmBD,KAAKa,QACrDP,EAAA,OAAKE,MAAM,SACVF,EAAA,aAAOQ,EAAAd,KAAKW,UAAM,MAAAG,SAAA,EAAAA,EAAIR,EAAA,QAAMG,KAAK,aAChCT,KAAKa,OACLP,EAAA,UACCS,QAAQ,QACRP,MAAM,6BAMVF,EAAA,QAAMG,KAAK,W"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as r,H as e,g as o}from"./p-e4d5e7a7.js";const i=".mx-4{margin-left:1rem!important;margin-right:1rem!important}.ml-2{margin-left:.5rem!important}.flex{display:flex!important}.h-14{height:3.5rem!important}.flex-1{flex:1 1 0%!important}.items-center{align-items:center!important}.gap-3{gap:.75rem!important}.overflow-hidden{overflow:hidden!important}.text-ellipsis{text-overflow:ellipsis!important}.border-b{border-bottom-width:1px!important}.border-b-mystic-medium{--tw-border-opacity:1!important;border-bottom-color:rgb(227 236 243/var(--tw-border-opacity))!important}*{box-sizing:border-box}p-card-header{--tw-text-opacity:1;--tw-border-opacity:1!important;align-items:center;border-bottom-color:rgb(227 236 243/var(--tw-border-opacity))!important;border-bottom-width:1px!important;color:rgb(128 130 158/var(--tw-text-opacity));display:flex;flex-shrink:0;gap:.75rem;height:3.5rem;margin-left:1rem;margin-right:1rem}p-card-header .title{--tw-text-opacity:1;align-items:center;color:rgb(81 83 107/var(--tw-text-opacity));display:flex;flex:1 1 0%;font-weight:600;order:2;overflow:hidden}p-card-header .title>span{flex:1 1 0%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}p-card-header .title>p-icon{--tw-text-opacity:1;color:rgb(218 230 240/var(--tw-text-opacity));margin-left:.5rem}p-card-header [slot=prefix]{order:1}p-card-header [slot=suffix]{order:3}p-card-container.has-hover:hover p-card-header .title>p-icon{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity))}.static{position:static!important}.group:hover .group-hover\\:text-indigo{--tw-text-opacity:1!important;color:rgb(82 138 250/var(--tw-text-opacity))!important}";const a=class{constructor(r){t(this,r);this._hasContentSlot=false;this.header=undefined;this.arrow=false}componentWillLoad(){this._hasContentSlot=!!this._el.querySelector(':scope > [slot="slot"]')}render(){var t,o;return r(e,{class:"p-card-header"},r("slot",{name:"prefix"}),(((t=this.header)===null||t===void 0?void 0:t.length)||this._hasContentSlot||this.arrow)&&r("div",{class:"title"},r("span",null,(o=this.header)!==null&&o!==void 0?o:r("slot",{name:"content"})),this.arrow&&r("p-icon",{variant:"arrow",class:"group-hover:text-indigo"})),r("slot",{name:"suffix"}))}get _el(){return o(this)}};a.style=i;export{a as p_card_header};
|
|
2
|
-
//# sourceMappingURL=p-b84b1a5f.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["cardHeaderComponentCss","CardHeader","this","_hasContentSlot","componentWillLoad","_el","querySelector","render","h","Host","class","name","_a","header","length","arrow","_b","variant"],"sources":["src/components/atoms/card-header/card-header.component.scss?tag=p-card-header","src/components/atoms/card-header/card-header.component.tsx"],"sourcesContent":["p-card-header {\n\t@apply mx-4 h-14 flex-shrink-0;\n\t@apply flex gap-3 items-center;\n\t@apply text-storm-medium;\n\t@apply border-b border-b-mystic-medium #{!important};\n\n\t.title {\n\t\t@apply order-2;\n\t\t@apply flex-1 overflow-hidden flex items-center text-storm;\n\t\t@apply font-semibold;\n\n\t\t> span {\n\t\t\t@apply flex-1 overflow-hidden text-ellipsis whitespace-nowrap;\n\t\t}\n\n\t\t> p-icon {\n\t\t\t@apply ml-2 text-mystic-dark;\n\t\t}\n\t}\n\n\t[slot='prefix'] {\n\t\t@apply order-1;\n\t}\n\n\t[slot='suffix'] {\n\t\t@apply order-3;\n\t}\n}\n\np-card-container.has-hover:hover {\n\tp-card-header {\n\t\t.title > p-icon {\n\t\t\t@apply text-indigo;\n\t\t}\n\t}\n}\n","import { Component, h, Host, Prop, Element } from '@stencil/core';\n\n@Component({\n\ttag: 'p-card-header',\n\tstyleUrl: 'card-header.component.scss',\n})\nexport class CardHeader {\n\t/**\n\t * Content of the card header\n\t */\n\t@Prop() header: string;\n\n\t/**\n\t * Enable the title arrow\n\t */\n\t@Prop() arrow: boolean = false;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\tprivate _hasContentSlot = false;\n\n\tcomponentWillLoad() {\n\t\tthis._hasContentSlot = !!this._el.querySelector(':scope > [slot=\"slot\"]');\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-card-header'>\n\t\t\t\t<slot name='prefix' />\n\n\t\t\t\t{(this.header?.length || this._hasContentSlot || this.arrow) && (\n\t\t\t\t\t<div class='title'>\n\t\t\t\t\t\t<span>{this.header ?? <slot name='content' />}</span>\n\t\t\t\t\t\t{this.arrow && (\n\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\tvariant='arrow'\n\t\t\t\t\t\t\t\tclass='group-hover:text-indigo'\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\n\t\t\t\t<slot name='suffix' />\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"mappings":"yDAAA,MAAMA,EAAyB,mkD,MCMlBC,EAAU,M,yBAgBdC,KAAAC,gBAAkB,M,iCAPD,K,CASzB,iBAAAC,GACCF,KAAKC,kBAAoBD,KAAKG,IAAIC,cAAc,yB,CAGjD,MAAAC,G,QACC,OACCC,EAACC,EAAI,CAACC,MAAM,iBACXF,EAAA,QAAMG,KAAK,cAETC,EAAAV,KAAKW,UAAM,MAAAD,SAAA,SAAAA,EAAEE,SAAUZ,KAAKC,iBAAmBD,KAAKa,QACrDP,EAAA,OAAKE,MAAM,SACVF,EAAA,aAAOQ,EAAAd,KAAKW,UAAM,MAAAG,SAAA,EAAAA,EAAIR,EAAA,QAAMG,KAAK,aAChCT,KAAKa,OACLP,EAAA,UACCS,QAAQ,QACRP,MAAM,6BAMVF,EAAA,QAAMG,KAAK,W"}
|