@paperless/core 1.55.1 → 1.56.0
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 +11 -0
- package/dist/build/p-60c2bf59.entry.js +2 -0
- package/dist/build/p-60c2bf59.entry.js.map +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/p-info-panel.cjs.entry.js +3 -1
- package/dist/cjs/p-info-panel.cjs.entry.js.map +1 -1
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +21 -2
- package/dist/collection/components/atoms/info-panel/info-panel.component.js.map +1 -1
- package/dist/components/p-info-panel.js +4 -2
- package/dist/components/p-info-panel.js.map +1 -1
- package/dist/esm/p-info-panel.entry.js +4 -2
- package/dist/esm/p-info-panel.entry.js.map +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/p-60c2bf59.entry.js +2 -0
- package/dist/paperless/p-60c2bf59.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/info-panel/info-panel.component.d.ts +5 -0
- package/dist/types/components.d.ts +8 -0
- package/hydrate/index.js +3 -1
- package/package.json +1 -1
- package/dist/build/p-97bcf0b5.entry.js +0 -2
- package/dist/build/p-97bcf0b5.entry.js.map +0 -1
- package/dist/paperless/p-97bcf0b5.entry.js +0 -2
- package/dist/paperless/p-97bcf0b5.entry.js.map +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
1
2
|
export declare class InfoPanel {
|
|
2
3
|
/**
|
|
3
4
|
* The variant of the info panel
|
|
@@ -15,6 +16,10 @@ export declare class InfoPanel {
|
|
|
15
16
|
* Wether the panel can be closed
|
|
16
17
|
*/
|
|
17
18
|
closeable: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* When the backdrop is clicked
|
|
21
|
+
*/
|
|
22
|
+
closed: EventEmitter<void>;
|
|
18
23
|
/**
|
|
19
24
|
* The host element
|
|
20
25
|
*/
|
|
@@ -1688,6 +1688,10 @@ export interface PDropdownCustomEvent<T> extends CustomEvent<T> {
|
|
|
1688
1688
|
detail: T;
|
|
1689
1689
|
target: HTMLPDropdownElement;
|
|
1690
1690
|
}
|
|
1691
|
+
export interface PInfoPanelCustomEvent<T> extends CustomEvent<T> {
|
|
1692
|
+
detail: T;
|
|
1693
|
+
target: HTMLPInfoPanelElement;
|
|
1694
|
+
}
|
|
1691
1695
|
export interface PModalCustomEvent<T> extends CustomEvent<T> {
|
|
1692
1696
|
detail: T;
|
|
1693
1697
|
target: HTMLPModalElement;
|
|
@@ -2809,6 +2813,10 @@ declare namespace LocalJSX {
|
|
|
2809
2813
|
* The header of the info panel
|
|
2810
2814
|
*/
|
|
2811
2815
|
"header"?: string;
|
|
2816
|
+
/**
|
|
2817
|
+
* When the backdrop is clicked
|
|
2818
|
+
*/
|
|
2819
|
+
"onClosed"?: (event: PInfoPanelCustomEvent<void>) => void;
|
|
2812
2820
|
/**
|
|
2813
2821
|
* The variant of the info panel
|
|
2814
2822
|
*/
|
package/hydrate/index.js
CHANGED
|
@@ -20093,15 +20093,17 @@ const infoPanelComponentCss = "/*!@.absolute*/.absolute.sc-p-info-panel{position
|
|
|
20093
20093
|
class InfoPanel {
|
|
20094
20094
|
constructor(hostRef) {
|
|
20095
20095
|
registerInstance(this, hostRef);
|
|
20096
|
+
this.closed = createEvent(this, "closed", 3);
|
|
20096
20097
|
this.variant = 'info';
|
|
20097
20098
|
this.header = undefined;
|
|
20098
20099
|
this.content = undefined;
|
|
20099
20100
|
this.closeable = false;
|
|
20100
20101
|
}
|
|
20101
20102
|
render() {
|
|
20102
|
-
return (hAsync(Host, { class: `p-info-panel variant-${this.variant} ${this.closeable && 'has-close'}` }, hAsync("div", { class:
|
|
20103
|
+
return (hAsync(Host, { class: `p-info-panel variant-${this.variant} ${this.closeable && 'has-close'}` }, hAsync("div", { class: 'header' }, hAsync("slot", { name: 'header' })), hAsync("div", { class: 'content' }, hAsync("slot", { name: 'content' })), this.closeable && (hAsync("div", { class: 'close', onClick: () => this._close() }, hAsync("p-icon", { variant: 'negative' })))));
|
|
20103
20104
|
}
|
|
20104
20105
|
_close() {
|
|
20106
|
+
this.closed.emit();
|
|
20105
20107
|
this._el.remove();
|
|
20106
20108
|
}
|
|
20107
20109
|
get _el() { return getElement(this); }
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as o,H as i,g as r}from"./p-e4d5e7a7.js";const a=".absolute{position:absolute!important}.relative{position:relative!important}.right-2{right:.5rem!important}.top-2{top:.5rem!important}.flex{display:flex!important}.w-full{width:100%!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.bg-indigo-light{--tw-bg-opacity:1!important;background-color:rgb(241 246 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.font-semibold{font-weight:600!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity));border-radius:.375rem;display:flex;flex-direction:column;padding:1rem;position:relative;width:100%}:host .header{--tw-text-opacity:1;color:rgb(39 40 56/var(--tw-text-opacity));font-weight:600}:host .content{font-size:.875rem;line-height:1.25rem}:host .close{--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity));cursor:pointer;position:absolute;right:.5rem;top:.5rem}:host(.variant-positive){--tw-bg-opacity:1;background-color:rgb(229 255 242/var(--tw-bg-opacity))}:host(.variant-unbiased){--tw-bg-opacity:1;background-color:rgb(255 246 220/var(--tw-bg-opacity))}:host(.variant-negative){--tw-bg-opacity:1;background-color:rgb(255 204 211/var(--tw-bg-opacity))}:host(.has-close){padding-right:2rem}.static{position:static!important}";const e=class{constructor(o){t(this,o);this.variant="info";this.header=undefined;this.content=undefined;this.closeable=false}render(){return o(i,{class:`p-info-panel variant-${this.variant} ${this.closeable&&"has-close"}`},o("div",{class:"header"},o("slot",{name:"header"})),o("div",{class:"content"},o("slot",{name:"content"})),this.closeable&&o("div",{class:"close",onClick:()=>this._close()},o("p-icon",{variant:"negative"})))}_close(){this._el.remove()}get _el(){return r(this)}};e.style=a;export{e as p_info_panel};
|
|
2
|
-
//# sourceMappingURL=p-97bcf0b5.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["infoPanelComponentCss","InfoPanel","render","h","Host","class","this","variant","closeable","name","onClick","_close","_el","remove"],"sources":["src/components/atoms/info-panel/info-panel.component.scss?tag=p-info-panel&encapsulation=shadow","src/components/atoms/info-panel/info-panel.component.tsx"],"sourcesContent":[":host {\n\t@apply flex flex-col w-full relative p-4 bg-indigo-light rounded-large;\n\n\t.header {\n\t\t@apply font-semibold text-storm-dark;\n\t}\n\n\t.content {\n\t\t@apply text-sm;\n\t}\n\n\t.close {\n\t\t@apply absolute top-2 right-2 cursor-pointer text-storm-vague;\n\t}\n}\n\n:host(.variant-positive) {\n\t@apply bg-positive-light;\n}\n\n:host(.variant-unbiased) {\n\t@apply bg-unbiased-light;\n}\n\n:host(.variant-negative) {\n\t@apply bg-negative-light;\n}\n\n:host(.has-close) {\n\t@apply pr-8;\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-info-panel',\n\tstyleUrl: 'info-panel.component.scss',\n\tshadow: true,\n})\nexport class InfoPanel {\n\t/**\n\t * The variant of the info panel\n\t */\n\t@Prop() variant: 'info' | 'negative' | 'positive' | 'unbiased' = 'info';\n\n\t/**\n\t * The header of the info panel\n\t */\n\t@Prop() header: string;\n\n\t/**\n\t * The content of the info panel\n\t */\n\t@Prop() content: string;\n\n\t/**\n\t * Wether the panel can be closed\n\t */\n\t@Prop() closeable: boolean = false;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`p-info-panel variant-${this.variant} ${this.closeable && 'has-close'}`}\n\t\t\t>\n\t\t\t\t<div class=\"header\">\n\t\t\t\t\t<slot name=\"header\" />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"content\">\n\t\t\t\t\t<slot name=\"content\" />\n\t\t\t\t</div>\n\n\t\t\t\t{this.closeable && (\n\t\t\t\t\t<div class=\"close\" onClick={() => this._close()}>\n\t\t\t\t\t\t<p-icon variant=\"negative\" />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _close() {\n\t\tthis._el.remove();\n\t}\n}\n"],"mappings":"yDAAA,MAAMA,EAAwB,wxC,MCOjBC,EAAS,M,sCAI4C,O,4DAepC,K,CAO7B,MAAAC,GACC,OACCC,EAACC,EAAI,CACJC,MAAO,wBAAwBC,KAAKC,WAAWD,KAAKE,WAAa,eAEjEL,EAAA,OAAKE,MAAM,UACVF,EAAA,QAAMM,KAAK,YAEZN,EAAA,OAAKE,MAAM,WACVF,EAAA,QAAMM,KAAK,aAGXH,KAAKE,WACLL,EAAA,OAAKE,MAAM,QAAQK,QAAS,IAAMJ,KAAKK,UACtCR,EAAA,UAAQI,QAAQ,c,CAOb,MAAAI,GACPL,KAAKM,IAAIC,Q"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as o,H as i,g as r}from"./p-e4d5e7a7.js";const a=".absolute{position:absolute!important}.relative{position:relative!important}.right-2{right:.5rem!important}.top-2{top:.5rem!important}.flex{display:flex!important}.w-full{width:100%!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.bg-indigo-light{--tw-bg-opacity:1!important;background-color:rgb(241 246 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.font-semibold{font-weight:600!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity));border-radius:.375rem;display:flex;flex-direction:column;padding:1rem;position:relative;width:100%}:host .header{--tw-text-opacity:1;color:rgb(39 40 56/var(--tw-text-opacity));font-weight:600}:host .content{font-size:.875rem;line-height:1.25rem}:host .close{--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity));cursor:pointer;position:absolute;right:.5rem;top:.5rem}:host(.variant-positive){--tw-bg-opacity:1;background-color:rgb(229 255 242/var(--tw-bg-opacity))}:host(.variant-unbiased){--tw-bg-opacity:1;background-color:rgb(255 246 220/var(--tw-bg-opacity))}:host(.variant-negative){--tw-bg-opacity:1;background-color:rgb(255 204 211/var(--tw-bg-opacity))}:host(.has-close){padding-right:2rem}.static{position:static!important}";const e=class{constructor(o){t(this,o);this.variant="info";this.header=undefined;this.content=undefined;this.closeable=false}render(){return o(i,{class:`p-info-panel variant-${this.variant} ${this.closeable&&"has-close"}`},o("div",{class:"header"},o("slot",{name:"header"})),o("div",{class:"content"},o("slot",{name:"content"})),this.closeable&&o("div",{class:"close",onClick:()=>this._close()},o("p-icon",{variant:"negative"})))}_close(){this._el.remove()}get _el(){return r(this)}};e.style=a;export{e as p_info_panel};
|
|
2
|
-
//# sourceMappingURL=p-97bcf0b5.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["infoPanelComponentCss","InfoPanel","render","h","Host","class","this","variant","closeable","name","onClick","_close","_el","remove"],"sources":["src/components/atoms/info-panel/info-panel.component.scss?tag=p-info-panel&encapsulation=shadow","src/components/atoms/info-panel/info-panel.component.tsx"],"sourcesContent":[":host {\n\t@apply flex flex-col w-full relative p-4 bg-indigo-light rounded-large;\n\n\t.header {\n\t\t@apply font-semibold text-storm-dark;\n\t}\n\n\t.content {\n\t\t@apply text-sm;\n\t}\n\n\t.close {\n\t\t@apply absolute top-2 right-2 cursor-pointer text-storm-vague;\n\t}\n}\n\n:host(.variant-positive) {\n\t@apply bg-positive-light;\n}\n\n:host(.variant-unbiased) {\n\t@apply bg-unbiased-light;\n}\n\n:host(.variant-negative) {\n\t@apply bg-negative-light;\n}\n\n:host(.has-close) {\n\t@apply pr-8;\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-info-panel',\n\tstyleUrl: 'info-panel.component.scss',\n\tshadow: true,\n})\nexport class InfoPanel {\n\t/**\n\t * The variant of the info panel\n\t */\n\t@Prop() variant: 'info' | 'negative' | 'positive' | 'unbiased' = 'info';\n\n\t/**\n\t * The header of the info panel\n\t */\n\t@Prop() header: string;\n\n\t/**\n\t * The content of the info panel\n\t */\n\t@Prop() content: string;\n\n\t/**\n\t * Wether the panel can be closed\n\t */\n\t@Prop() closeable: boolean = false;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`p-info-panel variant-${this.variant} ${this.closeable && 'has-close'}`}\n\t\t\t>\n\t\t\t\t<div class=\"header\">\n\t\t\t\t\t<slot name=\"header\" />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"content\">\n\t\t\t\t\t<slot name=\"content\" />\n\t\t\t\t</div>\n\n\t\t\t\t{this.closeable && (\n\t\t\t\t\t<div class=\"close\" onClick={() => this._close()}>\n\t\t\t\t\t\t<p-icon variant=\"negative\" />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _close() {\n\t\tthis._el.remove();\n\t}\n}\n"],"mappings":"yDAAA,MAAMA,EAAwB,wxC,MCOjBC,EAAS,M,sCAI4C,O,4DAepC,K,CAO7B,MAAAC,GACC,OACCC,EAACC,EAAI,CACJC,MAAO,wBAAwBC,KAAKC,WAAWD,KAAKE,WAAa,eAEjEL,EAAA,OAAKE,MAAM,UACVF,EAAA,QAAMM,KAAK,YAEZN,EAAA,OAAKE,MAAM,WACVF,EAAA,QAAMM,KAAK,aAGXH,KAAKE,WACLL,EAAA,OAAKE,MAAM,QAAQK,QAAS,IAAMJ,KAAKK,UACtCR,EAAA,UAAQI,QAAQ,c,CAOb,MAAAI,GACPL,KAAKM,IAAIC,Q"}
|