@paperless/core 2.15.0 → 2.15.1
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-967f355d.entry.js +2 -0
- package/dist/build/p-967f355d.entry.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/p-e55045a4.entry.js +2 -0
- package/dist/build/p-e55045a4.entry.js.map +1 -0
- package/dist/build/{p-41efd48b.js → p-f2fbd6fa.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/p-calendar.cjs.entry.js +2 -1
- 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 +3 -2
- 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 +2 -1
- package/dist/collection/components/molecules/calendar/calendar.component.js.map +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +3 -2
- package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -1
- package/dist/components/{p-3yDjwtDu.js → p-DyYAbzNn.js} +4 -3
- package/dist/components/p-DyYAbzNn.js.map +1 -0
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-datepicker.js +4 -3
- package/dist/components/p-datepicker.js.map +1 -1
- package/dist/esm/p-calendar.entry.js +2 -1
- package/dist/esm/p-calendar.entry.js.map +1 -1
- package/dist/esm/p-datepicker.entry.js +3 -2
- package/dist/esm/p-datepicker.entry.js.map +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/p-967f355d.entry.js +2 -0
- package/dist/paperless/p-967f355d.entry.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/p-e55045a4.entry.js +2 -0
- package/dist/paperless/p-e55045a4.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/package.json +1 -1
- package/dist/build/p-60974307.entry.js +0 -2
- package/dist/build/p-60974307.entry.js.map +0 -1
- package/dist/build/p-aeb59c96.entry.js +0 -2
- package/dist/build/p-aeb59c96.entry.js.map +0 -1
- package/dist/components/p-3yDjwtDu.js.map +0 -1
- package/dist/paperless/p-60974307.entry.js +0 -2
- package/dist/paperless/p-60974307.entry.js.map +0 -1
- package/dist/paperless/p-aeb59c96.entry.js +0 -2
- package/dist/paperless/p-aeb59c96.entry.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 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 } from './p-
|
|
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 } from './p-DyYAbzNn.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';
|
|
@@ -3000,6 +3000,7 @@ const Datepicker = /*@__PURE__*/ proxyCustomElement(class Datepicker extends H {
|
|
|
3000
3000
|
this._setValue(value);
|
|
3001
3001
|
}
|
|
3002
3002
|
parseMinDate(minDate) {
|
|
3003
|
+
console.log('picker minDate', minDate);
|
|
3003
3004
|
if (typeof minDate === 'string') {
|
|
3004
3005
|
minDate = new Date(minDate);
|
|
3005
3006
|
}
|
|
@@ -3069,7 +3070,7 @@ const Datepicker = /*@__PURE__*/ proxyCustomElement(class Datepicker extends H {
|
|
|
3069
3070
|
this.parseValue(this.value);
|
|
3070
3071
|
}
|
|
3071
3072
|
render() {
|
|
3072
|
-
return (h("p-dropdown", { key: '
|
|
3073
|
+
return (h("p-dropdown", { key: '02cf43cc0674d4e57b163f0055be1be3f69835cb', 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: '80907e6249eb71dcda3455f7b48fc30efe8e3def', 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: '22d944fd8bc0d7cfcb053a4f9bdb773aff1e50ec', 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 &&
|
|
3073
3074
|
format(this._value, 'yyyy-MM-dd', {
|
|
3074
3075
|
locale: state.locale === 'nl' ? locale$1 : locale,
|
|
3075
3076
|
}), min: this.minDate &&
|
|
@@ -3078,7 +3079,7 @@ const Datepicker = /*@__PURE__*/ proxyCustomElement(class Datepicker extends H {
|
|
|
3078
3079
|
}), max: this.maxDate &&
|
|
3079
3080
|
format(new Date(this.maxDate), 'yyyy-MM-dd', {
|
|
3080
3081
|
locale: state.locale === 'nl' ? locale$1 : locale,
|
|
3081
|
-
}) })), h("div", { key: '
|
|
3082
|
+
}) })), h("div", { key: '0e0666ade845715c4abab1bc73e5b2c6ef452bd8', slot: 'items' }, h("p-calendar", { key: 'b15fb5e217482241fa163ba4ad2554e0e90560a9', 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 }))));
|
|
3082
3083
|
}
|
|
3083
3084
|
documentClickHandler({ target }) {
|
|
3084
3085
|
if (!this._showDropdown || childOf(target, this._el)) {
|