@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.
Files changed (60) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/build/{p-e2759375.js → p-037f8f07.js} +1 -1
  3. package/dist/build/p-6afec957.entry.js +2 -0
  4. package/dist/build/p-6afec957.entry.js.map +1 -0
  5. package/dist/build/p-90d76df5.entry.js +2 -0
  6. package/dist/build/p-90d76df5.entry.js.map +1 -0
  7. package/dist/build/{p-BYMwCs48.js → p-KEbntKvf.js} +2 -2
  8. package/dist/build/p-KEbntKvf.js.map +1 -0
  9. package/dist/build/p-calendar.entry.esm.js.map +1 -1
  10. package/dist/build/p-datepicker.entry.esm.js.map +1 -1
  11. package/dist/build/paperless.esm.js +1 -1
  12. package/dist/cjs/{index-BrXouTWt.js → index-DG6V15XP.js} +27 -2
  13. package/dist/cjs/index-DG6V15XP.js.map +1 -0
  14. package/dist/cjs/p-calendar.cjs.entry.js +4 -4
  15. package/dist/cjs/p-calendar.cjs.entry.js.map +1 -1
  16. package/dist/cjs/p-calendar.entry.cjs.js.map +1 -1
  17. package/dist/cjs/p-datepicker.cjs.entry.js +4 -4
  18. package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -1
  19. package/dist/cjs/p-datepicker.entry.cjs.js.map +1 -1
  20. package/dist/collection/components/molecules/calendar/calendar.component.js +4 -3
  21. package/dist/collection/components/molecules/calendar/calendar.component.js.map +1 -1
  22. package/dist/collection/components/molecules/datepicker/datepicker.component.js +4 -3
  23. package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -1
  24. package/dist/components/{p-CLnjjZGE.js → p-CD4YRNL3.js} +30 -6
  25. package/dist/components/p-CD4YRNL3.js.map +1 -0
  26. package/dist/components/p-calendar.js +1 -1
  27. package/dist/components/p-datepicker.js +4 -4
  28. package/dist/components/p-datepicker.js.map +1 -1
  29. package/dist/esm/{index-BYMwCs48.js → index-KEbntKvf.js} +27 -3
  30. package/dist/esm/index-KEbntKvf.js.map +1 -0
  31. package/dist/esm/p-calendar.entry.js +4 -4
  32. package/dist/esm/p-calendar.entry.js.map +1 -1
  33. package/dist/esm/p-datepicker.entry.js +4 -4
  34. package/dist/esm/p-datepicker.entry.js.map +1 -1
  35. package/dist/index.html +1 -1
  36. package/dist/paperless/p-6afec957.entry.js +2 -0
  37. package/dist/paperless/p-6afec957.entry.js.map +1 -0
  38. package/dist/paperless/p-90d76df5.entry.js +2 -0
  39. package/dist/paperless/p-90d76df5.entry.js.map +1 -0
  40. package/dist/paperless/{p-BYMwCs48.js → p-KEbntKvf.js} +2 -2
  41. package/dist/paperless/p-KEbntKvf.js.map +1 -0
  42. package/dist/paperless/p-calendar.entry.esm.js.map +1 -1
  43. package/dist/paperless/p-datepicker.entry.esm.js.map +1 -1
  44. package/dist/paperless/paperless.esm.js +1 -1
  45. package/dist/sw.js +1 -1
  46. package/dist/sw.js.map +1 -1
  47. package/package.json +1 -1
  48. package/dist/build/p-481a8ecd.entry.js +0 -2
  49. package/dist/build/p-481a8ecd.entry.js.map +0 -1
  50. package/dist/build/p-6aa5fec2.entry.js +0 -2
  51. package/dist/build/p-6aa5fec2.entry.js.map +0 -1
  52. package/dist/build/p-BYMwCs48.js.map +0 -1
  53. package/dist/cjs/index-BrXouTWt.js.map +0 -1
  54. package/dist/components/p-CLnjjZGE.js.map +0 -1
  55. package/dist/esm/index-BYMwCs48.js.map +0 -1
  56. package/dist/paperless/p-481a8ecd.entry.js +0 -2
  57. package/dist/paperless/p-481a8ecd.entry.js.map +0 -1
  58. package/dist/paperless/p-6aa5fec2.entry.js +0 -2
  59. package/dist/paperless/p-6aa5fec2.entry.js.map +0 -1
  60. package/dist/paperless/p-BYMwCs48.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { C as Calendar, d as defineCustomElement$1 } from './p-CLnjjZGE.js';
1
+ import { C as Calendar, d as defineCustomElement$1 } from './p-CD4YRNL3.js';
2
2
 
3
3
  const PCalendar = Calendar;
4
4
  const defineCustomElement = defineCustomElement$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 isValid, p as isBefore, q as isAfter, u as format, v as locale$1, w as startOfDay, x as startOfMonth, y as isSameDay, z as isWeekend, A as addYears, B as getYear, D as setYear } from './p-CLnjjZGE.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 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(1970, 0, 1);
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: 'f958a8b84161a153a41c6e85a76b77d32a20512d', 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: 'c08c35d9c1d96f1ae557f46639d8581d0b590002', 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: 'f551d9716890a31f4e5956370e4fac08fd8a2bca', 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 &&
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: 'b1037b81d561397c3b748502cdd5e85dbaec3a48', slot: 'items' }, h("p-calendar", { key: '35ebe73bd302d35d582a3c65135f1a08f7e05f8e', 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 }))));
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)) {