@paperless/core 1.49.8 → 1.51.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 +22 -0
- package/dist/build/p-5b062bc3.entry.js +2 -0
- package/dist/build/p-5b062bc3.entry.js.map +1 -0
- package/dist/{paperless/p-c9b840a7.entry.js → build/p-9ed2584c.entry.js} +2 -2
- package/dist/build/p-9ed2584c.entry.js.map +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/build/paperless.esm.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +2 -1
- package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/p-drawer.cjs.entry.js +6 -5
- package/dist/cjs/p-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +20 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -1
- package/dist/collection/components/organisms/drawer/drawer.component.js +8 -7
- package/dist/collection/components/organisms/drawer/drawer.component.js.map +1 -1
- package/dist/components/p-datepicker.js +3 -1
- package/dist/components/p-datepicker.js.map +1 -1
- package/dist/components/p-drawer.js +6 -5
- package/dist/components/p-drawer.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-datepicker.entry.js +2 -1
- package/dist/esm/p-datepicker.entry.js.map +1 -1
- package/dist/esm/p-drawer.entry.js +6 -5
- package/dist/esm/p-drawer.entry.js.map +1 -1
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/p-5b062bc3.entry.js +2 -0
- package/dist/paperless/p-5b062bc3.entry.js.map +1 -0
- package/dist/{build/p-c9b840a7.entry.js → paperless/p-9ed2584c.entry.js} +2 -2
- package/dist/paperless/p-9ed2584c.entry.js.map +1 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/paperless/paperless.esm.js.map +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/molecules/datepicker/datepicker.component.d.ts +4 -0
- package/dist/types/components/organisms/drawer/drawer.component.d.ts +2 -1
- package/dist/types/components.d.ts +9 -0
- package/hydrate/index.js +9 -6
- package/package.json +1 -1
- package/dist/build/p-60400a89.entry.js +0 -2
- package/dist/build/p-60400a89.entry.js.map +0 -1
- package/dist/build/p-c9b840a7.entry.js.map +0 -1
- package/dist/paperless/p-60400a89.entry.js +0 -2
- package/dist/paperless/p-60400a89.entry.js.map +0 -1
- package/dist/paperless/p-c9b840a7.entry.js.map +0 -1
|
@@ -34,6 +34,7 @@ export declare class Drawer {
|
|
|
34
34
|
closeClicked: EventEmitter<{
|
|
35
35
|
event: MouseEvent;
|
|
36
36
|
canClose: boolean;
|
|
37
|
+
source: 'unknown' | 'backdrop' | 'close' | 'event';
|
|
37
38
|
}>;
|
|
38
39
|
/**
|
|
39
40
|
* Closed event
|
|
@@ -48,7 +49,7 @@ export declare class Drawer {
|
|
|
48
49
|
componentWillLoad(): void;
|
|
49
50
|
render(): any;
|
|
50
51
|
private _backdropClick;
|
|
51
|
-
close(ev?: MouseEvent, force?: boolean): void;
|
|
52
|
+
close(ev?: MouseEvent, source?: 'unknown' | 'backdrop' | 'close' | 'event', force?: boolean): void;
|
|
52
53
|
handleCloseDrawer(): void;
|
|
53
54
|
handleForceCloseDrawer(): void;
|
|
54
55
|
}
|
|
@@ -316,6 +316,10 @@ export namespace Components {
|
|
|
316
316
|
* The helper of the input group used by the datepicker
|
|
317
317
|
*/
|
|
318
318
|
"helper": string;
|
|
319
|
+
/**
|
|
320
|
+
* Hides the icon when filled
|
|
321
|
+
*/
|
|
322
|
+
"isIconHiddenWhenFilled": boolean;
|
|
319
323
|
/**
|
|
320
324
|
* The label of the input group used by the datepicker
|
|
321
325
|
*/
|
|
@@ -2449,6 +2453,10 @@ declare namespace LocalJSX {
|
|
|
2449
2453
|
* The helper of the input group used by the datepicker
|
|
2450
2454
|
*/
|
|
2451
2455
|
"helper"?: string;
|
|
2456
|
+
/**
|
|
2457
|
+
* Hides the icon when filled
|
|
2458
|
+
*/
|
|
2459
|
+
"isIconHiddenWhenFilled"?: boolean;
|
|
2452
2460
|
/**
|
|
2453
2461
|
* The label of the input group used by the datepicker
|
|
2454
2462
|
*/
|
|
@@ -2523,6 +2531,7 @@ declare namespace LocalJSX {
|
|
|
2523
2531
|
"onCloseClicked"?: (event: PDrawerCustomEvent<{
|
|
2524
2532
|
event: MouseEvent;
|
|
2525
2533
|
canClose: boolean;
|
|
2534
|
+
source: 'unknown' | 'backdrop' | 'close' | 'event'
|
|
2526
2535
|
}>) => void;
|
|
2527
2536
|
/**
|
|
2528
2537
|
* Closed event
|
package/hydrate/index.js
CHANGED
|
@@ -17904,6 +17904,7 @@ class Datepicker {
|
|
|
17904
17904
|
this.disableWeekends = false;
|
|
17905
17905
|
this.mode = 'day';
|
|
17906
17906
|
this.format = 'dd-MM-yyyy';
|
|
17907
|
+
this.isIconHiddenWhenFilled = false;
|
|
17907
17908
|
this.size = 'medium';
|
|
17908
17909
|
this.prefix = undefined;
|
|
17909
17910
|
this.label = undefined;
|
|
@@ -17987,7 +17988,7 @@ class Datepicker {
|
|
|
17987
17988
|
this.parseValue(this.value);
|
|
17988
17989
|
}
|
|
17989
17990
|
render() {
|
|
17990
|
-
return (hAsync(Host, { class: "p-datepicker" }, hAsync("p-dropdown", { disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, hAsync("p-input-group", { slot: "trigger", icon:
|
|
17991
|
+
return (hAsync(Host, { class: "p-datepicker" }, hAsync("p-dropdown", { disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, hAsync("p-input-group", { slot: "trigger", icon: this.isIconHiddenWhenFilled && !!this._value ? null : 'calendar', iconPosition: "start", size: this.size, prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, disabled: this.disabled, focused: this._showDropdown }, hAsync("input", { slot: "input", type: "text", placeholder: this.placeholder, value: this._getFormattedDate(), class: "p-input cursor-pointer", onFocus: () => this._onFocus(), onBlur: (ev) => this._onBlur(ev), onInput: (ev) => this._onInput(ev) })), hAsync("div", { slot: "items" }, hAsync("p-calendar", { variant: "embedded", value: this._value, onValueChange: ({ detail }) => (this.value = detail), preselectToday: this.preselectToday, disabledDates: this.disabledDates, minDate: this.minDate, maxDate: this.maxDate, disableWeekends: this.disableWeekends, mode: this.mode })))));
|
|
17991
17992
|
}
|
|
17992
17993
|
documentClickHandler({ target }) {
|
|
17993
17994
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -18076,6 +18077,7 @@ class Datepicker {
|
|
|
18076
18077
|
"disableWeekends": [4, "disable-weekends"],
|
|
18077
18078
|
"mode": [1],
|
|
18078
18079
|
"format": [1],
|
|
18080
|
+
"isIconHiddenWhenFilled": [4, "is-icon-hidden-when-filled"],
|
|
18079
18081
|
"size": [1],
|
|
18080
18082
|
"prefix": [1],
|
|
18081
18083
|
"label": [1],
|
|
@@ -18148,7 +18150,7 @@ class Drawer {
|
|
|
18148
18150
|
}
|
|
18149
18151
|
const headerContent = hAsync("slot", { name: "header" });
|
|
18150
18152
|
const bodyContent = hAsync("slot", { name: "content" });
|
|
18151
|
-
return (hAsync(Host, { class: "p-drawer" }, hAsync("p-backdrop", { variant: "drawer", applyBlur: this.applyBlur, onClicked: (ev) => this._backdropClick(ev.detail), closing: this._closing, scrollLock: this.scrollLock }, hAsync("p-drawer-container", { closing: this._closing }, (((_a = this.header) === null || _a === void 0 ? void 0 : _a.length) || this._hasHeaderSlot) && (hAsync("p-drawer-header", { "show-close": this.showClose, onClose: (ev) => this.close(ev.detail) }, this._hasHeaderSlot
|
|
18153
|
+
return (hAsync(Host, { class: "p-drawer" }, hAsync("p-backdrop", { variant: "drawer", applyBlur: this.applyBlur, onClicked: (ev) => this._backdropClick(ev.detail), closing: this._closing, scrollLock: this.scrollLock }, hAsync("p-drawer-container", { closing: this._closing }, (((_a = this.header) === null || _a === void 0 ? void 0 : _a.length) || this._hasHeaderSlot) && (hAsync("p-drawer-header", { "show-close": this.showClose, onClose: (ev) => this.close(ev.detail, 'close') }, this._hasHeaderSlot
|
|
18152
18154
|
? headerContent
|
|
18153
18155
|
: this.header)), hAsync("p-drawer-body", null, bodyContent)))));
|
|
18154
18156
|
}
|
|
@@ -18156,13 +18158,14 @@ class Drawer {
|
|
|
18156
18158
|
if (!this.backdropClickClose) {
|
|
18157
18159
|
return;
|
|
18158
18160
|
}
|
|
18159
|
-
this.close(ev);
|
|
18161
|
+
this.close(ev, 'backdrop');
|
|
18160
18162
|
}
|
|
18161
|
-
close(ev, force = false) {
|
|
18163
|
+
close(ev, source = 'unknown', force = false) {
|
|
18162
18164
|
if (!force) {
|
|
18163
18165
|
this.closeClicked.emit({
|
|
18164
18166
|
event: ev,
|
|
18165
18167
|
canClose: this.canClose,
|
|
18168
|
+
source
|
|
18166
18169
|
});
|
|
18167
18170
|
if (!this.canClose) {
|
|
18168
18171
|
return;
|
|
@@ -18176,10 +18179,10 @@ class Drawer {
|
|
|
18176
18179
|
}, 250);
|
|
18177
18180
|
}
|
|
18178
18181
|
handleCloseDrawer() {
|
|
18179
|
-
this.close();
|
|
18182
|
+
this.close(null, 'event');
|
|
18180
18183
|
}
|
|
18181
18184
|
handleForceCloseDrawer() {
|
|
18182
|
-
this.close(null, true);
|
|
18185
|
+
this.close(null, 'event', true);
|
|
18183
18186
|
}
|
|
18184
18187
|
get _el() { return getElement(this); }
|
|
18185
18188
|
static get style() { return drawerComponentCss; }
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as s,c as t,h as i,H as e,g as r}from"./p-e4d5e7a7.js";const o=".block{display:block!important}*{box-sizing:border-box}:host{display:block}.static{position:static!important}";const h=class{constructor(i){s(this,i);this.closeClicked=t(this,"closeClicked",3);this.closed=t(this,"closed",3);this._hasHeaderSlot=false;this.header=undefined;this.show=false;this.applyBlur=false;this.showClose=true;this.backdropClickClose=true;this.canClose=true;this.scrollLock=true;this._closing=false}componentWillLoad(){this._hasHeaderSlot=!!this._el.querySelector(':scope > [slot="header"]')}render(){var s;if(!this.show){return}const t=i("slot",{name:"header"});const r=i("slot",{name:"content"});return i(e,{class:"p-drawer"},i("p-backdrop",{variant:"drawer",applyBlur:this.applyBlur,onClicked:s=>this._backdropClick(s.detail),closing:this._closing,scrollLock:this.scrollLock},i("p-drawer-container",{closing:this._closing},(((s=this.header)===null||s===void 0?void 0:s.length)||this._hasHeaderSlot)&&i("p-drawer-header",{"show-close":this.showClose,onClose:s=>this.close(s.detail)},this._hasHeaderSlot?t:this.header),i("p-drawer-body",null,r))))}_backdropClick(s){if(!this.backdropClickClose){return}this.close(s)}close(s,t=false){if(!t){this.closeClicked.emit({event:s,canClose:this.canClose});if(!this.canClose){return}}this._closing=true;setTimeout((()=>{this.show=false;this._closing=false;this.closed.emit()}),250)}handleCloseDrawer(){this.close()}handleForceCloseDrawer(){this.close(null,true)}get _el(){return r(this)}};h.style=o;export{h as p_drawer};
|
|
2
|
-
//# sourceMappingURL=p-60400a89.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["drawerComponentCss","Drawer","this","_hasHeaderSlot","componentWillLoad","_el","querySelector","render","show","headerContent","h","name","bodyContent","Host","class","variant","applyBlur","onClicked","ev","_backdropClick","detail","closing","_closing","scrollLock","_a","header","length","showClose","onClose","close","backdropClickClose","force","closeClicked","emit","event","canClose","setTimeout","closed","handleCloseDrawer","handleForceCloseDrawer"],"sources":["src/components/organisms/drawer/drawer.component.scss?tag=p-drawer&encapsulation=shadow","src/components/organisms/drawer/drawer.component.tsx"],"sourcesContent":[":host {\n\t@apply block;\n}\n","import {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\n\n@Component({\n\ttag: 'p-drawer',\n\tstyleUrl: 'drawer.component.scss',\n\tshadow: true,\n})\nexport class Drawer {\n\t/**\n\t * The Header of the drawer\n\t */\n\t@Prop() header?: string;\n\n\t/**\n\t * Wether to show the drawer or not\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to apply blur to the backdrop\n\t */\n\t@Prop() applyBlur: boolean = false;\n\n\t/**\n\t * Wether to show the close on mobile in the header\n\t */\n\t@Prop() showClose = true;\n\n\t/**\n\t * Wether to hide the drawer when the backdrop is clicked\n\t */\n\t@Prop() backdropClickClose = true;\n\n\t/**\n\t * Wether the drawer can be closed\n\t */\n\t@Prop() canClose: boolean = true;\n\n\t/**\n\t * Wether we should scroll lock the body\n\t */\n\t@Prop() scrollLock: boolean = true;\n\n\t/**\n\t * Close click event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tcloseClicked: EventEmitter<{\n\t\tevent: MouseEvent;\n\t\tcanClose: boolean;\n\t}>;\n\n\t/**\n\t * Closed event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tclosed: EventEmitter<null>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\tprivate _hasHeaderSlot = false;\n\n\t@State() private _closing = false;\n\n\tcomponentWillLoad() {\n\t\tthis._hasHeaderSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"header\"]'\n\t\t);\n\t}\n\n\trender() {\n\t\tif (!this.show) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst headerContent = <slot name=\"header\" />;\n\t\tconst bodyContent = <slot name=\"content\" />;\n\n\t\treturn (\n\t\t\t<Host class=\"p-drawer\">\n\t\t\t\t<p-backdrop\n\t\t\t\t\tvariant=\"drawer\"\n\t\t\t\t\tapplyBlur={this.applyBlur}\n\t\t\t\t\tonClicked={(ev) => this._backdropClick(ev.detail)}\n\t\t\t\t\tclosing={this._closing}\n\t\t\t\t\tscrollLock={this.scrollLock}\n\t\t\t\t>\n\t\t\t\t\t<p-drawer-container closing={this._closing}>\n\t\t\t\t\t\t{(this.header?.length || this._hasHeaderSlot) && (\n\t\t\t\t\t\t\t<p-drawer-header\n\t\t\t\t\t\t\t\tshow-close={this.showClose}\n\t\t\t\t\t\t\t\tonClose={(ev) => this.close(ev.detail)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this._hasHeaderSlot\n\t\t\t\t\t\t\t\t\t? headerContent\n\t\t\t\t\t\t\t\t\t: this.header}\n\t\t\t\t\t\t\t</p-drawer-header>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<p-drawer-body>{bodyContent}</p-drawer-body>\n\t\t\t\t\t</p-drawer-container>\n\t\t\t\t</p-backdrop>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _backdropClick(ev) {\n\t\tif (!this.backdropClickClose) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.close(ev);\n\t}\n\n\tpublic close(ev?: MouseEvent, force = false) {\n\t\tif (!force) {\n\t\t\tthis.closeClicked.emit({\n\t\t\t\tevent: ev,\n\t\t\t\tcanClose: this.canClose,\n\t\t\t});\n\n\t\t\tif (!this.canClose) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tthis._closing = true;\n\n\t\tsetTimeout(() => {\n\t\t\tthis.show = false;\n\t\t\tthis._closing = false;\n\t\t\tthis.closed.emit();\n\t\t}, 250);\n\t}\n\n\t@Listen('closeDrawer', { target: 'window' })\n\thandleCloseDrawer() {\n\t\tthis.close();\n\t}\n\n\t@Listen('forceCloseDrawer', { target: 'window' })\n\thandleForceCloseDrawer() {\n\t\tthis.close(null, true);\n\t}\n}\n"],"mappings":"gEAAA,MAAMA,EAAqB,gH,MCiBdC,EAAM,M,mGA4DVC,KAAAC,eAAiB,M,gCAnDD,M,eAKK,M,eAKT,K,wBAKS,K,cAKD,K,gBAKE,K,cA4BF,K,CAE5B,iBAAAC,GACCF,KAAKC,iBAAmBD,KAAKG,IAAIC,cAChC,2B,CAIF,MAAAC,G,MACC,IAAKL,KAAKM,KAAM,CACf,M,CAGD,MAAMC,EAAgBC,EAAA,QAAMC,KAAK,WACjC,MAAMC,EAAcF,EAAA,QAAMC,KAAK,YAE/B,OACCD,EAACG,EAAI,CAACC,MAAM,YACXJ,EAAA,cACCK,QAAQ,SACRC,UAAWd,KAAKc,UAChBC,UAAYC,GAAOhB,KAAKiB,eAAeD,EAAGE,QAC1CC,QAASnB,KAAKoB,SACdC,WAAYrB,KAAKqB,YAEjBb,EAAA,sBAAoBW,QAASnB,KAAKoB,aAC/BE,EAAAtB,KAAKuB,UAAM,MAAAD,SAAA,SAAAA,EAAEE,SAAUxB,KAAKC,iBAC7BO,EAAA,gCACaR,KAAKyB,UACjBC,QAAUV,GAAOhB,KAAK2B,MAAMX,EAAGE,SAE9BlB,KAAKC,eACHM,EACAP,KAAKuB,QAGVf,EAAA,qBAAgBE,K,CAOb,cAAAO,CAAeD,GACtB,IAAKhB,KAAK4B,mBAAoB,CAC7B,M,CAGD5B,KAAK2B,MAAMX,E,CAGL,KAAAW,CAAMX,EAAiBa,EAAQ,OACrC,IAAKA,EAAO,CACX7B,KAAK8B,aAAaC,KAAK,CACtBC,MAAOhB,EACPiB,SAAUjC,KAAKiC,WAGhB,IAAKjC,KAAKiC,SAAU,CACnB,M,EAIFjC,KAAKoB,SAAW,KAEhBc,YAAW,KACVlC,KAAKM,KAAO,MACZN,KAAKoB,SAAW,MAChBpB,KAAKmC,OAAOJ,MAAM,GAChB,I,CAIJ,iBAAAK,GACCpC,KAAK2B,O,CAIN,sBAAAU,GACCrC,KAAK2B,MAAM,KAAM,K"}
|