@paperless/core 2.16.1 → 2.16.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 +22 -0
- package/dist/build/{p-e2759375.js → p-037f8f07.js} +1 -1
- package/dist/build/p-6afec957.entry.js +2 -0
- package/dist/build/p-6afec957.entry.js.map +1 -0
- package/dist/build/p-90d76df5.entry.js +2 -0
- package/dist/build/p-90d76df5.entry.js.map +1 -0
- package/dist/build/{p-BYMwCs48.js → p-KEbntKvf.js} +2 -2
- package/dist/build/p-KEbntKvf.js.map +1 -0
- 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/{index-BrXouTWt.js → index-DG6V15XP.js} +27 -2
- package/dist/cjs/index-DG6V15XP.js.map +1 -0
- package/dist/cjs/p-calendar.cjs.entry.js +4 -4
- 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 +4 -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/collection/components/molecules/calendar/calendar.component.js +4 -3
- package/dist/collection/components/molecules/calendar/calendar.component.js.map +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +4 -3
- package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -1
- package/dist/components/{p-CLnjjZGE.js → p-CD4YRNL3.js} +30 -6
- package/dist/components/p-CD4YRNL3.js.map +1 -0
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-datepicker.js +4 -4
- package/dist/components/p-datepicker.js.map +1 -1
- package/dist/esm/{index-BYMwCs48.js → index-KEbntKvf.js} +27 -3
- package/dist/esm/index-KEbntKvf.js.map +1 -0
- package/dist/esm/p-calendar.entry.js +4 -4
- package/dist/esm/p-calendar.entry.js.map +1 -1
- package/dist/esm/p-datepicker.entry.js +4 -4
- package/dist/esm/p-datepicker.entry.js.map +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/p-6afec957.entry.js +2 -0
- package/dist/paperless/p-6afec957.entry.js.map +1 -0
- package/dist/paperless/p-90d76df5.entry.js +2 -0
- package/dist/paperless/p-90d76df5.entry.js.map +1 -0
- package/dist/paperless/{p-BYMwCs48.js → p-KEbntKvf.js} +2 -2
- package/dist/paperless/p-KEbntKvf.js.map +1 -0
- 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/package.json +1 -1
- package/dist/build/p-481a8ecd.entry.js +0 -2
- package/dist/build/p-481a8ecd.entry.js.map +0 -1
- package/dist/build/p-6aa5fec2.entry.js +0 -2
- package/dist/build/p-6aa5fec2.entry.js.map +0 -1
- package/dist/build/p-BYMwCs48.js.map +0 -1
- package/dist/cjs/index-BrXouTWt.js.map +0 -1
- package/dist/components/p-CLnjjZGE.js.map +0 -1
- package/dist/esm/index-BYMwCs48.js.map +0 -1
- package/dist/paperless/p-481a8ecd.entry.js +0 -2
- package/dist/paperless/p-481a8ecd.entry.js.map +0 -1
- package/dist/paperless/p-6aa5fec2.entry.js +0 -2
- package/dist/paperless/p-6aa5fec2.entry.js.map +0 -1
- package/dist/paperless/p-BYMwCs48.js.map +0 -1
|
@@ -4,7 +4,7 @@ import { i as isMobileBrowser } from './p-DVCJlilm.js';
|
|
|
4
4
|
import { a as asBoolean } from './p-C5CTp9IA.js';
|
|
5
5
|
import { b as state } from './p-DnVMEz1h.js';
|
|
6
6
|
import { d as defineCustomElement$b } from './p-CHsgxVNo.js';
|
|
7
|
-
import { r as requiredArgs, t as toDate, _ as _typeof, g as getUTCWeekYear, s as startOfUTCWeek, a as startOfUTCISOWeek, b as getUTCWeek, c as toInteger, e as getUTCISOWeek, f as getDefaultOptions, l as locale, h as longFormatters, i as subMilliseconds, j as getTimezoneOffsetInMilliseconds, k as isProtectedWeekYearToken, m as throwProtectedError, n as isProtectedDayOfYearToken, d as defineCustomElement$a, o as
|
|
7
|
+
import { r as requiredArgs, t as toDate, _ as _typeof, g as getUTCWeekYear, s as startOfUTCWeek, a as startOfUTCISOWeek, b as getUTCWeek, c as toInteger, e as getUTCISOWeek, f as getDefaultOptions, l as locale, h as longFormatters, i as subMilliseconds, j as getTimezoneOffsetInMilliseconds, k as isProtectedWeekYearToken, m as throwProtectedError, n as isProtectedDayOfYearToken, d as defineCustomElement$a, o as getYear, p as subYears, q as isValid, u as isBefore, v as isAfter, w as format, x as locale$1, y as startOfDay, z as startOfMonth, A as isSameDay, B as isWeekend, D as addYears, E as setYear } from './p-CD4YRNL3.js';
|
|
8
8
|
import { d as defineCustomElement$9 } from './p-CLE6xhvL.js';
|
|
9
9
|
import { d as defineCustomElement$8 } from './p-CStLRi0B.js';
|
|
10
10
|
import { d as defineCustomElement$7 } from './p-BQN0zMMn.js';
|
|
@@ -3001,7 +3001,7 @@ const Datepicker = /*@__PURE__*/ proxyCustomElement(class Datepicker extends H {
|
|
|
3001
3001
|
}
|
|
3002
3002
|
parseMinDate(minDate) {
|
|
3003
3003
|
if (minDate === null || minDate === '') {
|
|
3004
|
-
this.minDate = new Date(
|
|
3004
|
+
this.minDate = new Date(getYear(subYears(new Date(), 100)), 0, 1);
|
|
3005
3005
|
return;
|
|
3006
3006
|
}
|
|
3007
3007
|
if (typeof minDate === 'string') {
|
|
@@ -3073,7 +3073,7 @@ const Datepicker = /*@__PURE__*/ proxyCustomElement(class Datepicker extends H {
|
|
|
3073
3073
|
this.parseValue(this.value);
|
|
3074
3074
|
}
|
|
3075
3075
|
render() {
|
|
3076
|
-
return (h("p-dropdown", { key: '
|
|
3076
|
+
return (h("p-dropdown", { key: 'a3b7ea1be56aac9497229a7d642a0ad76aaaadd0', allowOverflow: true, strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown, isDatepicker: true }, h("p-field", { key: '08386c924f983e24ca5d7e7eed659df37ce6b82c', slot: 'trigger', icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', size: this.size, prefix: this.prefix, label: this.label, loading: this.loading, helper: this.helper, required: asBoolean(this.required), showOptional: asBoolean(this.showOptional), error: this.error, forceShowTooltip: !!this.error?.length && !this._showDropdown, autoShowError: false, disabled: asBoolean(this.disabled), focused: this._showDropdown, value: this._getFormattedDate(), placeholder: this.placeholder, onFocus: () => this._onFocus(), onBlur: () => this._onBlur(), onValueChange: ev => this._onValueChange(ev.detail), onInputRefChange: ev => (this._inputRef = ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: 'd9ee5c8a67cc6af8da3864e6ead01bc198756972', slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', class: 'pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden opacity-0', onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value &&
|
|
3077
3077
|
format(this._value, 'yyyy-MM-dd', {
|
|
3078
3078
|
locale: state.locale === 'nl' ? locale$1 : locale,
|
|
3079
3079
|
}), min: this._minDate &&
|
|
@@ -3082,7 +3082,7 @@ const Datepicker = /*@__PURE__*/ proxyCustomElement(class Datepicker extends H {
|
|
|
3082
3082
|
}), max: this.maxDate &&
|
|
3083
3083
|
format(new Date(this.maxDate), 'yyyy-MM-dd', {
|
|
3084
3084
|
locale: state.locale === 'nl' ? locale$1 : locale,
|
|
3085
|
-
}) })), h("div", { key: '
|
|
3085
|
+
}) })), h("div", { key: 'f73f729782e54102b94c939b5d38118358c78490', slot: 'items' }, h("p-calendar", { key: '8b4f9ebc13ef3c590e501979d2495bd30e5db692', 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, enableToday: this.enableToday, todayText: this.todayText, mode: this.mode }))));
|
|
3086
3086
|
}
|
|
3087
3087
|
documentClickHandler({ target }) {
|
|
3088
3088
|
if (!this._showDropdown || childOf(target, this._el)) {
|