@paperless/core 3.2.1 → 3.2.2
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-afa4d38a.entry.js → p-eaa0079d.entry.js} +1 -1
- package/dist/build/{p-b47f3a0f.js → p-fa2e80c6.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +11 -6
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +11 -6
- package/dist/components/p-datepicker.js +1 -1
- package/dist/esm/p-datepicker.entry.js +11 -6
- package/dist/index.html +1 -1
- package/dist/paperless/{p-afa4d38a.entry.js → p-eaa0079d.entry.js} +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/datepicker/datepicker.component.d.ts +1 -0
- package/hydrate/index.js +11 -6
- package/hydrate/index.mjs +11 -6
- package/package.json +1 -1
package/hydrate/index.js
CHANGED
|
@@ -92267,14 +92267,16 @@ class Datepicker {
|
|
|
92267
92267
|
}
|
|
92268
92268
|
this.parseMinDate(this.minDate);
|
|
92269
92269
|
this.parseMaxDate(this.maxDate);
|
|
92270
|
+
this._isMobileBrowser = isMobileBrowser();
|
|
92271
|
+
this.parseValue(this.value);
|
|
92272
|
+
}
|
|
92273
|
+
componentWillRender() {
|
|
92270
92274
|
if (this.mode !== 'day' && this.format === this._defaultFormats['day']) {
|
|
92271
92275
|
this.format = this._defaultFormats[this.mode];
|
|
92272
92276
|
}
|
|
92273
|
-
this._isMobileBrowser = isMobileBrowser();
|
|
92274
|
-
this.parseValue(this.value);
|
|
92275
92277
|
}
|
|
92276
92278
|
render() {
|
|
92277
|
-
return (hAsync("p-dropdown", { key: '
|
|
92279
|
+
return (hAsync("p-dropdown", { key: '3024ca24d1ed1206612566b20e387a482ece7979', allowOverflow: true, applyFullWidth: false, applyMaxWidth: false, disableTriggerClick: true, insideClick: true, isDatepicker: true, placement: this.placement, show: this._showDropdown, strategy: this.strategy }, hAsync("p-field", { key: '204a9a00ca533875c61c7838807629e54b822e01', 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 && (hAsync("input", { key: '1d43b23fc1459b84fa72f5f8d35e62b576243f90', class: '\n pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden\n opacity-0\n ', max: this.maxDate &&
|
|
92278
92280
|
dateFnsExports.format(new Date(this.maxDate), 'yyyy-MM-dd', {
|
|
92279
92281
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
92280
92282
|
}), min: this._minDate &&
|
|
@@ -92283,7 +92285,7 @@ class Datepicker {
|
|
|
92283
92285
|
}), ref: ref => (this._dateInputRef = ref), slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', value: this._value &&
|
|
92284
92286
|
dateFnsExports.format(this._value, 'yyyy-MM-dd', {
|
|
92285
92287
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
92286
|
-
}), onInput: ev => this._onNativeInput(ev) })), hAsync("div", { key: '
|
|
92288
|
+
}), onInput: ev => this._onNativeInput(ev) })), hAsync("div", { key: 'ba83aeee5c1cc9073bd71361a9011696761073d1', slot: 'items', tabIndex: -1 }, hAsync("p-calendar", { key: '13e5834b61f979f0deccb01ccf7bc938dabc4076', 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) }))));
|
|
92287
92289
|
}
|
|
92288
92290
|
documentClickHandler({ target }) {
|
|
92289
92291
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -92300,7 +92302,8 @@ class Datepicker {
|
|
|
92300
92302
|
}
|
|
92301
92303
|
this._showDropdown = true;
|
|
92302
92304
|
}
|
|
92303
|
-
_onBlur(ev, parseFormat
|
|
92305
|
+
_onBlur(ev, parseFormat) {
|
|
92306
|
+
parseFormat = parseFormat || this.format;
|
|
92304
92307
|
if (this._isMobileBrowser && this._dateInputRef) {
|
|
92305
92308
|
return;
|
|
92306
92309
|
}
|
|
@@ -92311,7 +92314,9 @@ class Datepicker {
|
|
|
92311
92314
|
if (target.value === null) {
|
|
92312
92315
|
return;
|
|
92313
92316
|
}
|
|
92314
|
-
const value = dateFnsExports.parse(target.value, parseFormat, new Date()
|
|
92317
|
+
const value = dateFnsExports.parse(target.value, parseFormat, new Date(), {
|
|
92318
|
+
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
92319
|
+
});
|
|
92315
92320
|
if (value === this._value) {
|
|
92316
92321
|
return;
|
|
92317
92322
|
}
|
package/hydrate/index.mjs
CHANGED
|
@@ -92265,14 +92265,16 @@ class Datepicker {
|
|
|
92265
92265
|
}
|
|
92266
92266
|
this.parseMinDate(this.minDate);
|
|
92267
92267
|
this.parseMaxDate(this.maxDate);
|
|
92268
|
+
this._isMobileBrowser = isMobileBrowser();
|
|
92269
|
+
this.parseValue(this.value);
|
|
92270
|
+
}
|
|
92271
|
+
componentWillRender() {
|
|
92268
92272
|
if (this.mode !== 'day' && this.format === this._defaultFormats['day']) {
|
|
92269
92273
|
this.format = this._defaultFormats[this.mode];
|
|
92270
92274
|
}
|
|
92271
|
-
this._isMobileBrowser = isMobileBrowser();
|
|
92272
|
-
this.parseValue(this.value);
|
|
92273
92275
|
}
|
|
92274
92276
|
render() {
|
|
92275
|
-
return (hAsync("p-dropdown", { key: '
|
|
92277
|
+
return (hAsync("p-dropdown", { key: '3024ca24d1ed1206612566b20e387a482ece7979', allowOverflow: true, applyFullWidth: false, applyMaxWidth: false, disableTriggerClick: true, insideClick: true, isDatepicker: true, placement: this.placement, show: this._showDropdown, strategy: this.strategy }, hAsync("p-field", { key: '204a9a00ca533875c61c7838807629e54b822e01', 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 && (hAsync("input", { key: '1d43b23fc1459b84fa72f5f8d35e62b576243f90', class: '\n pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden\n opacity-0\n ', max: this.maxDate &&
|
|
92276
92278
|
dateFnsExports.format(new Date(this.maxDate), 'yyyy-MM-dd', {
|
|
92277
92279
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
92278
92280
|
}), min: this._minDate &&
|
|
@@ -92281,7 +92283,7 @@ class Datepicker {
|
|
|
92281
92283
|
}), ref: ref => (this._dateInputRef = ref), slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', value: this._value &&
|
|
92282
92284
|
dateFnsExports.format(this._value, 'yyyy-MM-dd', {
|
|
92283
92285
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
92284
|
-
}), onInput: ev => this._onNativeInput(ev) })), hAsync("div", { key: '
|
|
92286
|
+
}), onInput: ev => this._onNativeInput(ev) })), hAsync("div", { key: 'ba83aeee5c1cc9073bd71361a9011696761073d1', slot: 'items', tabIndex: -1 }, hAsync("p-calendar", { key: '13e5834b61f979f0deccb01ccf7bc938dabc4076', 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) }))));
|
|
92285
92287
|
}
|
|
92286
92288
|
documentClickHandler({ target }) {
|
|
92287
92289
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -92298,7 +92300,8 @@ class Datepicker {
|
|
|
92298
92300
|
}
|
|
92299
92301
|
this._showDropdown = true;
|
|
92300
92302
|
}
|
|
92301
|
-
_onBlur(ev, parseFormat
|
|
92303
|
+
_onBlur(ev, parseFormat) {
|
|
92304
|
+
parseFormat = parseFormat || this.format;
|
|
92302
92305
|
if (this._isMobileBrowser && this._dateInputRef) {
|
|
92303
92306
|
return;
|
|
92304
92307
|
}
|
|
@@ -92309,7 +92312,9 @@ class Datepicker {
|
|
|
92309
92312
|
if (target.value === null) {
|
|
92310
92313
|
return;
|
|
92311
92314
|
}
|
|
92312
|
-
const value = dateFnsExports.parse(target.value, parseFormat, new Date()
|
|
92315
|
+
const value = dateFnsExports.parse(target.value, parseFormat, new Date(), {
|
|
92316
|
+
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
92317
|
+
});
|
|
92313
92318
|
if (value === this._value) {
|
|
92314
92319
|
return;
|
|
92315
92320
|
}
|