@paperless/core 2.17.9 → 2.18.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/dist/{paperless/p-90d76df5.entry.js → build/p-14d7f7a1.entry.js} +2 -2
- package/dist/build/p-14d7f7a1.entry.js.map +1 -0
- package/dist/build/p-520a265d.js +2 -0
- package/dist/build/{p-368f8da6.entry.js → p-9ec11e61.entry.js} +2 -2
- package/dist/build/p-9ec11e61.entry.js.map +1 -0
- package/dist/{paperless/p-6afec957.entry.js → build/p-a40a7fc1.entry.js} +2 -2
- package/dist/build/p-a40a7fc1.entry.js.map +1 -0
- package/dist/build/p-button.p-icon.p-loader.entry.esm.js.map +1 -1
- package/dist/build/p-calendar.entry.esm.js.map +1 -1
- package/dist/build/p-datepicker.entry.esm.js.map +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-button.p-icon.p-loader.entry.cjs.js.map +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +7 -3
- package/dist/cjs/p-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-calendar.cjs.entry.js +6 -6
- package/dist/cjs/p-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/p-calendar.entry.cjs.js.map +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +7 -4
- package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/p-datepicker.entry.cjs.js.map +1 -1
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/components/molecules/button/button.component.js +26 -3
- package/dist/collection/components/molecules/button/button.component.js.map +1 -1
- package/dist/collection/components/molecules/calendar/calendar.component.js +6 -6
- package/dist/collection/components/molecules/calendar/calendar.component.js.map +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +7 -4
- package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -1
- package/dist/components/{p-Ci8qp2t7.js → p-BZlZvtjK.js} +3 -3
- package/dist/components/{p-Ci8qp2t7.js.map → p-BZlZvtjK.js.map} +1 -1
- package/dist/components/{p-C5-nq7xq.js → p-BrTUiyZW.js} +6 -6
- package/dist/components/{p-C5-nq7xq.js.map → p-BrTUiyZW.js.map} +1 -1
- package/dist/components/{p-BVTrNdp6.js → p-BsKPQOEM.js} +5 -5
- package/dist/components/{p-BVTrNdp6.js.map → p-BsKPQOEM.js.map} +1 -1
- package/dist/components/{p-D45Gz2zW.js → p-BupM6TXy.js} +3 -3
- package/dist/components/{p-D45Gz2zW.js.map → p-BupM6TXy.js.map} +1 -1
- package/dist/components/{p-BPwNIYoU.js → p-CEBFKdul.js} +9 -9
- package/dist/components/p-CEBFKdul.js.map +1 -0
- package/dist/components/{p-Bu86UeMr.js → p-CKMtLokt.js} +3 -3
- package/dist/components/{p-Bu86UeMr.js.map → p-CKMtLokt.js.map} +1 -1
- package/dist/components/{p-C5GXX5d0.js → p-DtslqW6g.js} +3 -3
- package/dist/components/{p-C5GXX5d0.js.map → p-DtslqW6g.js.map} +1 -1
- package/dist/components/{p-DF6kFhsX.js → p-Lw_7l_n4.js} +4 -4
- package/dist/components/{p-DF6kFhsX.js.map → p-Lw_7l_n4.js.map} +1 -1
- package/dist/components/{p--jijBmQW.js → p-XoglNnlr.js} +10 -5
- package/dist/components/p-XoglNnlr.js.map +1 -0
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-button.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-datepicker.js +10 -7
- package/dist/components/p-datepicker.js.map +1 -1
- package/dist/components/p-drawer-header.js +1 -1
- package/dist/components/p-drawer.js +2 -2
- package/dist/components/p-empty-state.js +1 -1
- package/dist/components/p-field.js +1 -1
- package/dist/components/{p-CrsoJQI0.js → p-gNkAxCho.js} +4 -4
- package/dist/components/{p-CrsoJQI0.js.map → p-gNkAxCho.js.map} +1 -1
- package/dist/components/p-modal-header.js +1 -1
- package/dist/components/p-modal.js +2 -2
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-pagination-pages.js +1 -1
- package/dist/components/p-pagination.js +1 -1
- package/dist/components/p-profile.js +1 -1
- package/dist/components/p-select.js +2 -2
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table.js +7 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-button.p-icon.p-loader.entry.js.map +1 -1
- package/dist/esm/p-button_3.entry.js +7 -3
- package/dist/esm/p-button_3.entry.js.map +1 -1
- package/dist/esm/p-calendar.entry.js +6 -6
- package/dist/esm/p-calendar.entry.js.map +1 -1
- package/dist/esm/p-datepicker.entry.js +7 -4
- package/dist/esm/p-datepicker.entry.js.map +1 -1
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/{build/p-90d76df5.entry.js → paperless/p-14d7f7a1.entry.js} +2 -2
- package/dist/paperless/p-14d7f7a1.entry.js.map +1 -0
- package/dist/paperless/{p-368f8da6.entry.js → p-9ec11e61.entry.js} +2 -2
- package/dist/paperless/p-9ec11e61.entry.js.map +1 -0
- package/dist/{build/p-6afec957.entry.js → paperless/p-a40a7fc1.entry.js} +2 -2
- package/dist/paperless/p-a40a7fc1.entry.js.map +1 -0
- package/dist/paperless/p-button.p-icon.p-loader.entry.esm.js.map +1 -1
- package/dist/paperless/p-calendar.entry.esm.js.map +1 -1
- package/dist/paperless/p-datepicker.entry.esm.js.map +1 -1
- 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/molecules/button/button.component.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/build/p-0534c8fc.js +0 -2
- package/dist/build/p-368f8da6.entry.js.map +0 -1
- package/dist/build/p-6afec957.entry.js.map +0 -1
- package/dist/build/p-90d76df5.entry.js.map +0 -1
- package/dist/components/p--jijBmQW.js.map +0 -1
- package/dist/components/p-BPwNIYoU.js.map +0 -1
- package/dist/paperless/p-368f8da6.entry.js.map +0 -1
- package/dist/paperless/p-6afec957.entry.js.map +0 -1
- package/dist/paperless/p-90d76df5.entry.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-
|
|
1
|
+
{"file":"p-BupM6TXy.js","mappings":";;;;;;;;AAAA,MAAM,uBAAuB,GAAG,g8EAAg8E;;ACIh+E,MAAM,MAAM,GAAG,GAAG,CAAC;IAClB,6FAA6F;IAC7F,mCAAmC;AACnC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAG,GAAG,CAAC,CAAC,kBAAkB,EAAE,sBAAsB,CAAC,CAAC;AAEjE,MAAM,KAAK,GAAG,GAAG,CAAC;IACjB,oBAAoB;IACpB,qBAAqB;IACrB,6DAA6D;IAC7D,8DAA8D;AAC9D,CAAA,CAAC;MAOW,WAAW,iBAAAA,kBAAA,CAAA,MAAA,WAAA,SAAAC,CAAA,CAAA;;;;;;;AACvB;;AAEG;IACK,SAAS,GAAG,IAAI;AAExB;;AAEG;AAIH,IAAA,KAAK;IAEL,MAAM,GAAA;AACL,QAAA,QACC,EAAC,UAAU,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACV,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE,MAAM,EAAE,EAAA,EACnB,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE,OAAO,EAAE,EAAA,EACpB,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE,KAAK,EAAE,EAAA,EAClB,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAQ,CACH,EAEL,IAAI,CAAC,SAAS,KACd,iEACC,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,IAAI,EACd,OAAO,EAAE,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,EAAA,CACvB,CACZ,CACI,EAEN,CAAA,CAAA,SAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAS,KAAK,EAAC,yBAAyB,GAAG,CACtC,CACM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/atoms/modal/header/modal-header.component.css?tag=p-modal-header&encapsulation=shadow","src/components/atoms/modal/header/modal-header.component.tsx"],"sourcesContent":["","import { Component, Event, EventEmitter, h, Prop } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { ThemedHost } from '../../../../internal/themed-host.component';\n\nconst header = cva([\n\t'w-full flex-col bg-white dark:bg-hurricane-600 relative rounded-t-2xl overflow-hidden z-[1]',\n\t'inline-flex aspect-[7/1] max-h-28',\n]);\n\nconst content = cva(['flex justify-end', 'w-full p-4 pb-0 h-12']);\n\nconst title = cva([\n\t'flex-1 text-center',\n\t'w-[calc(100%-7rem)]',\n\t'absolute top-1/2 -translate-y-1/2 left-1/2 -translate-x-1/2',\n\t'text-storm-500 dark:text-white text-2xl text-ambit font-bold',\n]);\n\n@Component({\n\ttag: 'p-modal-header',\n\tstyleUrl: 'modal-header.component.css',\n\tshadow: true,\n})\nexport class ModalHeader {\n\t/**\n\t * Wether to show the close button on mobile\n\t */\n\t@Prop() showClose = true;\n\n\t/**\n\t * Close click event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tclose: EventEmitter<MouseEvent>;\n\n\trender() {\n\t\treturn (\n\t\t\t<ThemedHost>\n\t\t\t\t<div class={header()}>\n\t\t\t\t\t<div class={content()}>\n\t\t\t\t\t\t<div class={title()}>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t{this.showClose && (\n\t\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\t\t\ticon='negative'\n\t\t\t\t\t\t\t\ticonOnly={true}\n\t\t\t\t\t\t\t\tonClick={ev => this.close.emit(ev)}\n\t\t\t\t\t\t\t></p-button>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<p-smile class='dark:text-hurricane-400' />\n\t\t\t\t</div>\n\t\t\t</ThemedHost>\n\t\t);\n\t}\n}\n"],"version":3}
|
|
@@ -3,7 +3,7 @@ import { c as cva } from './p-CBWjHURv.js';
|
|
|
3
3
|
import { c as cn } from './p-CT54OXR2.js';
|
|
4
4
|
import { b as state } from './p-DnVMEz1h.js';
|
|
5
5
|
import { T as ThemedHost } from './p-7QA93RrV.js';
|
|
6
|
-
import { d as defineCustomElement$4 } from './p
|
|
6
|
+
import { d as defineCustomElement$4 } from './p-XoglNnlr.js';
|
|
7
7
|
import { d as defineCustomElement$3 } from './p-C8GpDop1.js';
|
|
8
8
|
import { d as defineCustomElement$2 } from './p-BFbLqg3-.js';
|
|
9
9
|
import { d as defineCustomElement$1 } from './p-CeJyspp0.js';
|
|
@@ -3296,7 +3296,7 @@ const Calendar = /*@__PURE__*/ proxyCustomElement(class Calendar extends H {
|
|
|
3296
3296
|
return (h("div", { class: view({ view: 'day' }) }, this._getHeader('day'), h("div", { class: 'grid grid-cols-7 justify-between gap-1' }, this._weekDays.map(weekday => (h("span", { class: 'w-8 text-center text-xs text-storm-200' }, format(addDays(new Date(2022, 7, 1), weekday), state.locale === 'nl' ? 'EEEEEE' : 'eee', {
|
|
3297
3297
|
locale: state.locale === 'nl' ? locale : locale$1,
|
|
3298
3298
|
})))), daysInMonth.map(day => {
|
|
3299
|
-
return day.active ? (h("p-button", { variant: 'primary', class: cn('w-8', `col-start-${day.offset}`), onClick: () => this._setValue(day.date) }, day.day)) : (h("time", { class: cn('normal flex items-center justify-center rounded-lg', 'h-8 w-8 text-sm font-semibold', 'text-storm-300', 'dark:bg-white/15', {
|
|
3299
|
+
return day.active ? (h("p-button", { variant: 'primary', tabIndex: -1, class: cn('w-8', `col-start-${day.offset}`), onClick: () => this._setValue(day.date) }, day.day)) : (h("time", { class: cn('normal flex items-center justify-center rounded-lg', 'h-8 w-8 text-sm font-semibold', 'text-storm-300', 'dark:bg-white/15', {
|
|
3300
3300
|
'cursor-pointer hover:bg-white-600 hover:text-storm-500 dark:text-white dark:hover:bg-hurricane-300 dark:hover:text-white': !day.disabled,
|
|
3301
3301
|
'dark:text-hurricane-200': day.disabled,
|
|
3302
3302
|
}, `col-start-${day.offset}`, { 'cursor-not-allowed opacity-60': day.disabled }, {
|
|
@@ -3306,13 +3306,13 @@ const Calendar = /*@__PURE__*/ proxyCustomElement(class Calendar extends H {
|
|
|
3306
3306
|
}
|
|
3307
3307
|
_getMonthView() {
|
|
3308
3308
|
const months = this._generateMonths();
|
|
3309
|
-
return (h("div", { class: view({ view: 'month' }) }, this._getHeader('month'), h("div", { class: 'flex flex-wrap items-start gap-2' }, months.map(month => (h("p-button", { variant: month.active ? 'primary' : 'secondary', disabled: month.disabled, onClick: () => this._setMonth(month.month) }, format(setMonth(new Date(), month.month), 'MMMM', {
|
|
3309
|
+
return (h("div", { class: view({ view: 'month' }) }, this._getHeader('month'), h("div", { class: 'flex flex-wrap items-start gap-2' }, months.map(month => (h("p-button", { variant: month.active ? 'primary' : 'secondary', tabIndex: -1, disabled: month.disabled, onClick: () => this._setMonth(month.month) }, format(setMonth(new Date(), month.month), 'MMMM', {
|
|
3310
3310
|
locale: state.locale === 'nl' ? locale : locale$1,
|
|
3311
3311
|
})))))));
|
|
3312
3312
|
}
|
|
3313
3313
|
_getYearView() {
|
|
3314
3314
|
const years = this._generateYears();
|
|
3315
|
-
return (h("div", { class: view({ view: 'year' }) }, this._getHeader('year'), h("div", { class: 'grid h-full grid-cols-4 gap-2 overflow-scroll', ref: ref => (this._yearItemsRef = ref) }, years.map(year => (h("p-button", { class: 'w-full', variant: year.active ? 'primary' : 'secondary', onClick: () => this._setYear(year.year), "data-active": year.active, "data-current": year.current }, year.year))))));
|
|
3315
|
+
return (h("div", { class: view({ view: 'year' }) }, this._getHeader('year'), h("div", { class: 'grid h-full grid-cols-4 gap-2 overflow-scroll', ref: ref => (this._yearItemsRef = ref) }, years.map(year => (h("p-button", { class: 'w-full', variant: year.active ? 'primary' : 'secondary', tabIndex: -1, onClick: () => this._setYear(year.year), "data-active": year.active, "data-current": year.current }, year.year))))));
|
|
3316
3316
|
}
|
|
3317
3317
|
_getHeader(type = 'day') {
|
|
3318
3318
|
let nextFn = num => this._changeMonth(num);
|
|
@@ -3321,11 +3321,11 @@ const Calendar = /*@__PURE__*/ proxyCustomElement(class Calendar extends H {
|
|
|
3321
3321
|
nextFn = num => this._changeYear(num);
|
|
3322
3322
|
nextType = 'year';
|
|
3323
3323
|
}
|
|
3324
|
-
return (h("div", { class: header({ type: this.mode }) }, this.mode !== 'year' && (h("p-button", { variant: 'secondary', iconOnly: true, icon: 'caret', iconRotate: 90, size: 'sm', onClick: () => nextFn(-1), disabled: !this._canSetAmount(nextType, -1) || this._view === 'year' })), h("div", { class: cn('flex gap-2', {
|
|
3324
|
+
return (h("div", { class: header({ type: this.mode }) }, this.mode !== 'year' && (h("p-button", { variant: 'secondary', iconOnly: true, icon: 'caret', iconRotate: 90, tabIndex: -1, size: 'sm', onClick: () => nextFn(-1), disabled: !this._canSetAmount(nextType, -1) || this._view === 'year' })), h("div", { class: cn('flex gap-2', {
|
|
3325
3325
|
'flex-1': this._enableToday,
|
|
3326
|
-
}) }, this.mode !== 'year' && (h("p-button", { variant: 'secondary', size: 'sm', onClick: () => this._changeView('month'), disabled: !this._canChangeView('month'), active: this._view === 'month' && this.mode !== 'month' }, format(this._viewDate, 'MMMM', {
|
|
3326
|
+
}) }, this.mode !== 'year' && (h("p-button", { variant: 'secondary', size: 'sm', tabIndex: -1, onClick: () => this._changeView('month'), disabled: !this._canChangeView('month'), active: this._view === 'month' && this.mode !== 'month' }, format(this._viewDate, 'MMMM', {
|
|
3327
3327
|
locale: state.locale === 'nl' ? locale : locale$1,
|
|
3328
|
-
}))), h("p-button", { variant: 'secondary', size: 'sm', onClick: () => this._changeView('year'), disabled: !this._canChangeView('year'), active: this._view === 'year' && this.mode !== 'year' }, getYear(this._viewDate)), this._enableToday && (h("p-tooltip", { class: 'ml-auto', content: this.todayText }, h("p-button", { variant: 'secondary', size: 'sm', icon: 'calendar', slot: 'trigger', iconOnly: true, onClick: () => this._setToday() })))), this.mode !== 'year' && (h("p-button", { variant: 'secondary', iconOnly: true, icon: 'caret', iconRotate: -90, size: 'sm', onClick: () => nextFn(1), disabled: !this._canSetAmount(nextType, 1) || this._view == 'year' }))));
|
|
3328
|
+
}))), h("p-button", { variant: 'secondary', size: 'sm', tabIndex: -1, onClick: () => this._changeView('year'), disabled: !this._canChangeView('year'), active: this._view === 'year' && this.mode !== 'year' }, getYear(this._viewDate)), this._enableToday && (h("p-tooltip", { class: 'ml-auto', content: this.todayText }, h("p-button", { variant: 'secondary', size: 'sm', icon: 'calendar', slot: 'trigger', tabIndex: -1, iconOnly: true, onClick: () => this._setToday() })))), this.mode !== 'year' && (h("p-button", { variant: 'secondary', iconOnly: true, icon: 'caret', iconRotate: -90, tabIndex: -1, size: 'sm', onClick: () => nextFn(1), disabled: !this._canSetAmount(nextType, 1) || this._view == 'year' }))));
|
|
3329
3329
|
}
|
|
3330
3330
|
_setYear(year) {
|
|
3331
3331
|
const date = setYear(this._viewDate, year);
|
|
@@ -3566,6 +3566,6 @@ function defineCustomElement() {
|
|
|
3566
3566
|
defineCustomElement();
|
|
3567
3567
|
|
|
3568
3568
|
export { isSameDay as A, isWeekend as B, Calendar as C, addYears as D, setYear as E, _typeof as _, startOfUTCISOWeek as a, getUTCWeek as b, toInteger as c, defineCustomElement as d, getUTCISOWeek as e, getDefaultOptions as f, getUTCWeekYear as g, longFormatters as h, subMilliseconds as i, getTimezoneOffsetInMilliseconds as j, isProtectedWeekYearToken as k, locale$1 as l, throwProtectedError as m, isProtectedDayOfYearToken as n, getYear as o, subYears as p, isValid as q, requiredArgs as r, startOfUTCWeek as s, toDate as t, isBefore as u, isAfter as v, format as w, locale as x, startOfDay as y, startOfMonth as z };
|
|
3569
|
-
//# sourceMappingURL=p-
|
|
3569
|
+
//# sourceMappingURL=p-CEBFKdul.js.map
|
|
3570
3570
|
|
|
3571
|
-
//# sourceMappingURL=p-
|
|
3571
|
+
//# sourceMappingURL=p-CEBFKdul.js.map
|