@paperless/core 3.6.5 → 3.7.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/build/p-30e187cd.entry.js +1 -0
- package/dist/build/{p-59830918.js → p-484e9f15.js} +1 -1
- package/dist/build/p-75918198.entry.js +1 -0
- package/dist/build/p-ad0caa7e.entry.js +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/p-attachment.cjs.entry.js +11 -11
- package/dist/cjs/p-calendar.cjs.entry.js +4 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +6 -3
- package/dist/collection/components/molecules/attachment/attachment.component.js +12 -12
- package/dist/collection/components/molecules/calendar/calendar.component.js +4 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +6 -3
- package/dist/components/{p-B6Eg4keN.js → p-CqInd6A4.js} +1 -1
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-datepicker.js +1 -1
- package/dist/esm/p-attachment.entry.js +12 -12
- package/dist/esm/p-calendar.entry.js +4 -1
- package/dist/esm/p-datepicker.entry.js +6 -3
- package/dist/index.html +1 -1
- package/dist/paperless/p-30e187cd.entry.js +1 -0
- package/dist/paperless/p-75918198.entry.js +1 -0
- package/dist/paperless/p-ad0caa7e.entry.js +1 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/hydrate/index.js +21 -21
- package/hydrate/index.mjs +21 -21
- package/package.json +1 -1
- package/dist/build/p-62f87c18.entry.js +0 -1
- package/dist/build/p-8b38c26b.entry.js +0 -1
- package/dist/build/p-df709c40.entry.js +0 -1
- package/dist/paperless/p-62f87c18.entry.js +0 -1
- package/dist/paperless/p-8b38c26b.entry.js +0 -1
- package/dist/paperless/p-df709c40.entry.js +0 -1
|
@@ -132,7 +132,10 @@ export class Datepicker {
|
|
|
132
132
|
if (typeof value === 'string') {
|
|
133
133
|
value = new Date(value);
|
|
134
134
|
}
|
|
135
|
-
this.
|
|
135
|
+
if (value?.getTime() === this._value?.getTime()) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
this._setValue(value, true);
|
|
136
139
|
}
|
|
137
140
|
parseMinDate(minDate) {
|
|
138
141
|
if (minDate === null || minDate === '') {
|
|
@@ -210,7 +213,7 @@ export class Datepicker {
|
|
|
210
213
|
}
|
|
211
214
|
}
|
|
212
215
|
render() {
|
|
213
|
-
return (h("p-dropdown", { key: '
|
|
216
|
+
return (h("p-dropdown", { key: 'e329571548f7fc670ea27b9096e43179bf575f48', allowOverflow: true, applyFullWidth: false, applyMaxWidth: false, disableTriggerClick: true, insideClick: true, isDatepicker: true, placement: this.placement, show: this._showDropdown, strategy: this.strategy }, h("p-field", { key: '5904684c137055d5b2eb25890363ee8b458ce9ff', autoShowError: false, disabled: asBoolean(this.disabled), error: this.error, focused: this._showDropdown, forceShowTooltip: !!this.error?.length && !this._showDropdown, helper: this.helper, icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', label: this.label, loading: this.loading, placeholder: this.placeholder, prefix: this.prefix, required: asBoolean(this.required), showOptional: asBoolean(this.showOptional), size: this.size, slot: 'trigger', value: this._getFormattedDate(), onBlur: (ev) => this._onBlur(ev), onFocus: () => this._onFocus(), onInputRefChange: ev => (this._inputRef = ev.detail), onValueChange: ev => this._onValueChange(ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: '18243b5177bf1ccafc938199d17303a13e9c0a2d', class: '\n pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden\n opacity-0\n ', max: this.maxDate &&
|
|
214
217
|
format(new Date(this.maxDate), 'yyyy-MM-dd', {
|
|
215
218
|
locale: state.locale === 'nl' ? nl : enUS,
|
|
216
219
|
}), min: this._minDate &&
|
|
@@ -219,7 +222,7 @@ export class Datepicker {
|
|
|
219
222
|
}), ref: ref => (this._dateInputRef = ref), slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', value: this._value &&
|
|
220
223
|
format(this._value, 'yyyy-MM-dd', {
|
|
221
224
|
locale: state.locale === 'nl' ? nl : enUS,
|
|
222
|
-
}), onInput: ev => this._onNativeInput(ev) })), h("div", { key: '
|
|
225
|
+
}), onInput: ev => this._onNativeInput(ev) })), h("div", { key: '72072c39f6b9f4234c39474084e10625bb739ff4', slot: 'items', tabIndex: -1 }, h("p-calendar", { key: '374b07930dfaa7f1c1cfdf528fd0b53158d482bc', disableWeekends: this.disableWeekends, disabledDates: this.disabledDates, enableToday: this.enableToday, maxDate: this.maxDate, minDate: this.minDate, mode: this.mode, preselectToday: this.preselectToday, todayText: this.todayText, value: this._value, variant: 'embedded', onValueChange: ({ detail }) => (this.value = detail) }))));
|
|
223
226
|
}
|
|
224
227
|
documentClickHandler({ target }) {
|
|
225
228
|
if (!this._showDropdown || childOf(target, this._el)) {
|