xv-webcomponents 1.16.5-qa.0 → 1.16.6-qa.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.
@@ -80250,8 +80250,10 @@ const XvDatepicker = class {
80250
80250
  get isPrevDisabled() {
80251
80251
  if (!this.minDate)
80252
80252
  return false;
80253
- const prevMonth = dateFns.startOfMonth(dateFns.addMonths(this.month, -1));
80254
- return dateFns.isBefore(prevMonth, this.minDate);
80253
+ // disable only when the WHOLE previous month is before min — its end must
80254
+ // be compared, otherwise a mid-month min blocks navigating to its own month
80255
+ const prevMonthEnd = dateFns.endOfMonth(dateFns.addMonths(this.month, -1));
80256
+ return dateFns.isBefore(prevMonthEnd, this.minDate);
80255
80257
  }
80256
80258
  get isNextDisabled() {
80257
80259
  if (!this.maxDate)
@@ -80343,12 +80345,12 @@ const XvDatepicker = class {
80343
80345
  }
80344
80346
  render() {
80345
80347
  const [start, end] = this.value;
80346
- return (index$1.h(index$1.Host, { key: '3289a4359e496b9bf4ea367d651b725d4ff0cce4', class: { disabled: !!this.disabled }, tabindex: this.disabled ? '-1' : undefined }, index$1.h("div", { key: 'c0b42eb7c4101ccc696f82d6ed8a623ebf67a1df', "aria-controls": "popover", class: "control" }, this.label && index$1.h("label", { key: '1d05181900511e3e4e8a0888caf04c7795310be2', class: "control_label" }, this.label), index$1.h("div", { key: '894425978fc98868b3b78b0754053f4913fde695', class: {
80348
+ return (index$1.h(index$1.Host, { key: '4e1b7968bb670a8fc361c929fcffb804622abcfd', class: { disabled: !!this.disabled }, tabindex: this.disabled ? '-1' : undefined }, index$1.h("div", { key: '9a9f2dc31c4d48f5a78ffe904ebbac1c47902c02', "aria-controls": "popover", class: "control" }, this.label && index$1.h("label", { key: 'e46e942c45de9d58f6bf131d8f9bf68edc9aeef2', class: "control_label" }, this.label), index$1.h("div", { key: '71eb87432754769fe562ed71137d6df64183772d', class: {
80347
80349
  'control_field': true,
80348
80350
  loading: this.loading,
80349
80351
  error: !!this.error || !!this.localError,
80350
80352
  warning: this.warning !== undefined,
80351
- }, onClick: this.handleOpen, ref: (el) => (this.controlEl = el) }, index$1.h("input", { key: 'c1db1ab521162a5a0d8c54600dc82c54c2fe7b2a', lang: "de", type: "date", name: "start", disabled: this.loading || this.disabled, readonly: this.readonly || this.variant === 'range', min: this.min, max: this.max, value: start ? dateFns.format(start, DEF_FORMAT) : '', onChange: (e) => this.handleChange(e, 'start'), onBlur: (e) => this.handleBlur(e, 'start'), onKeyDown: (e) => this.handleKeydown(e, 'start') }), this.variant === 'range' && (index$1.h("input", { key: 'ae9604705ae82bed2f82759de164ac4a510b8100', lang: "de", type: "date", name: "end", disabled: this.loading || this.disabled, readonly: this.readonly || this.variant === 'range', min: this.min, max: this.max, value: end ? dateFns.format(end, DEF_FORMAT) : '', onChange: (e) => this.handleChange(e, 'end'), onBlur: (e) => this.handleBlur(e, 'end'), onKeyDown: (e) => this.handleKeydown(e, 'end') }))), (this.helper || this.error || this.warning || this.localError) && (index$1.h("div", { key: '7afbdd9e4b0eccd144b35998110a97ed2d198ae6' }, this.helper && index$1.h("p", { key: 'cd6766d7bd96e2c23b290514ecf5a41c66f0c475', class: "control_message helper" }, this.helper), (this.error || this.warning || this.localError) && (index$1.h("p", { key: '94756aee0bae6ac8fdeb8c2962bb1d664c62c96b', class: { control_message: true, error: !!this.error || !!this.localError } }, this.error || this.localError || this.warning))))), index$1.h("div", { key: '0c7b9a5bd9f0b8cb3577bf1dfffef00aae071d84', role: "dialog", class: { popover: true, open: this.open }, ref: (el) => (this.popoverEl = el) }, index$1.h("div", { key: 'cc47a62bf581a3e0ad22f4a6c450ce1b1f93beab', class: "header" }, index$1.h("xv-button-v2", { key: '32968cc1355f18f26492a5a13c8d32aef24b3191', tabindex: this.open ? undefined : '-1', disabled: this.isPrevDisabled, variant: "ghost", onClick: this.prevMonth }, index$1.h("span", { key: '96e96385516abad610fe442be13ac476de1d4c0d', slot: "icon-left", class: "header_icon prev" })), index$1.h("p", { key: '18216a0dc2934485f4b39745071eeaf9991e3901', class: "header_date" }, dateFns.format(this.month, 'LLLL', { locale: localeExports.de }), index$1.h("input", { key: '44794c9903616f2096af25ad34827fb89cd3e955', tabindex: this.open ? undefined : '-1', type: "number", value: this.month.getFullYear(), onInput: this.handleYearChange, onBlur: this.handleYearBlur })), index$1.h("xv-button-v2", { key: '199eab4375e1c8f331e9a02d1f0a7b97274233d0', tabindex: this.open ? undefined : '-1', disabled: this.isNextDisabled, variant: "ghost", onClick: this.nextMonth }, index$1.h("span", { key: '5669d1a32d2fca702837077ab47d5e337524d1f9', slot: "icon-left", class: "header_icon next" }))), index$1.h("div", { key: '62c8026ab7a1c86a8884b92892687cedacab2c8e', class: "week" }, index$1.h("p", { key: 'b8352feda8503fa2a53916b676fa4c1fc177a1f9', class: "week_day" }), WEEK.map((day) => index$1.h("p", { class: "week_day" }, day, "."))), index$1.h("div", { key: '020132e4ed4dea2c6836d2fe2d5126e595874b41', class: "week" }, this.days.map((day, idx) => (index$1.h(index$1.Fragment, null, idx % 7 === 0 && (index$1.h("button", { tabindex: this.open ? undefined : '-1', disabled: true, class: "week_day disabled" }, day.week)), index$1.h("button", { tabindex: this.open ? undefined : '-1', onClick: () => this.handleSetDate(day), disabled: day.disabled, class: {
80353
+ }, onClick: this.handleOpen, ref: (el) => (this.controlEl = el) }, index$1.h("input", { key: '0908d3af22f8aaf8c5407a8b66ac56c3a34b7d24', lang: "de", type: "date", name: "start", disabled: this.loading || this.disabled, readonly: this.readonly || this.variant === 'range', min: this.min, max: this.max, value: start ? dateFns.format(start, DEF_FORMAT) : '', onChange: (e) => this.handleChange(e, 'start'), onBlur: (e) => this.handleBlur(e, 'start'), onKeyDown: (e) => this.handleKeydown(e, 'start') }), this.variant === 'range' && (index$1.h("input", { key: '1841a2f65ddb657e0aeff38cc34e90c01019815b', lang: "de", type: "date", name: "end", disabled: this.loading || this.disabled, readonly: this.readonly || this.variant === 'range', min: this.min, max: this.max, value: end ? dateFns.format(end, DEF_FORMAT) : '', onChange: (e) => this.handleChange(e, 'end'), onBlur: (e) => this.handleBlur(e, 'end'), onKeyDown: (e) => this.handleKeydown(e, 'end') }))), (this.helper || this.error || this.warning || this.localError) && (index$1.h("div", { key: '13766133adfab4a2ce2c4e038871699d360f22ce' }, this.helper && index$1.h("p", { key: '274c7dfcc09ef35b9f0cdbba8454c2fc385370f7', class: "control_message helper" }, this.helper), (this.error || this.warning || this.localError) && (index$1.h("p", { key: '3ed6f0c1f53f15c22e60fabf5f476bb663b8d24c', class: { control_message: true, error: !!this.error || !!this.localError } }, this.error || this.localError || this.warning))))), index$1.h("div", { key: '5762ec14597d9418dfbd04a31db44d299aa88625', role: "dialog", class: { popover: true, open: this.open }, ref: (el) => (this.popoverEl = el) }, index$1.h("div", { key: '8ad3a1e6c31b982755f7b82b7cb16644c4f23f38', class: "header" }, index$1.h("xv-button-v2", { key: 'db4d454e82ca8ec26fcf4f291ac21146dcb14a3b', tabindex: this.open ? undefined : '-1', disabled: this.isPrevDisabled, variant: "ghost", onClick: this.prevMonth }, index$1.h("span", { key: 'e80d1efac41ea1e4aa7aa83a22cd5f7d9db40553', slot: "icon-left", class: "header_icon prev" })), index$1.h("p", { key: '37505645ea5e5181a0797560aeada8b0f22ef92e', class: "header_date" }, dateFns.format(this.month, 'LLLL', { locale: localeExports.de }), index$1.h("input", { key: 'b3ccae4078f4ce61ec85a79abe16a4c406553f6f', tabindex: this.open ? undefined : '-1', type: "number", value: this.month.getFullYear(), onInput: this.handleYearChange, onBlur: this.handleYearBlur })), index$1.h("xv-button-v2", { key: '8ece0927ba0dc434765a7b2fea50ad1420913cbe', tabindex: this.open ? undefined : '-1', disabled: this.isNextDisabled, variant: "ghost", onClick: this.nextMonth }, index$1.h("span", { key: 'b471b2d6137c5c52f5089d821225d21c93cb1f4d', slot: "icon-left", class: "header_icon next" }))), index$1.h("div", { key: 'd7de53d7865a5c033fb0e5e2c416eee8dff3b60a', class: "week" }, index$1.h("p", { key: '8d4d8b3b9e42c040435d2e6813aa96bcaca2144d', class: "week_day" }), WEEK.map((day) => index$1.h("p", { class: "week_day" }, day, "."))), index$1.h("div", { key: '63b91609bc0e2709952f8b66b20997b16b960260', class: "week" }, this.days.map((day, idx) => (index$1.h(index$1.Fragment, null, idx % 7 === 0 && (index$1.h("button", { tabindex: this.open ? undefined : '-1', disabled: true, class: "week_day disabled" }, day.week)), index$1.h("button", { tabindex: this.open ? undefined : '-1', onClick: () => this.handleSetDate(day), disabled: day.disabled, class: {
80352
80354
  'week_day': true,
80353
80355
  inRange: this.variant === 'range' && dateFns.isWithinInterval(day.date, { start, end }),
80354
80356
  isToday: day.isToday,
@@ -133,8 +133,10 @@ export class XvDatepicker {
133
133
  get isPrevDisabled() {
134
134
  if (!this.minDate)
135
135
  return false;
136
- const prevMonth = dateFns.startOfMonth(dateFns.addMonths(this.month, -1));
137
- return dateFns.isBefore(prevMonth, this.minDate);
136
+ // disable only when the WHOLE previous month is before min — its end must
137
+ // be compared, otherwise a mid-month min blocks navigating to its own month
138
+ const prevMonthEnd = dateFns.endOfMonth(dateFns.addMonths(this.month, -1));
139
+ return dateFns.isBefore(prevMonthEnd, this.minDate);
138
140
  }
139
141
  get isNextDisabled() {
140
142
  if (!this.maxDate)
@@ -226,12 +228,12 @@ export class XvDatepicker {
226
228
  }
227
229
  render() {
228
230
  const [start, end] = this.value;
229
- return (h(Host, { key: '3289a4359e496b9bf4ea367d651b725d4ff0cce4', class: { disabled: !!this.disabled }, tabindex: this.disabled ? '-1' : undefined }, h("div", { key: 'c0b42eb7c4101ccc696f82d6ed8a623ebf67a1df', "aria-controls": "popover", class: "control" }, this.label && h("label", { key: '1d05181900511e3e4e8a0888caf04c7795310be2', class: "control_label" }, this.label), h("div", { key: '894425978fc98868b3b78b0754053f4913fde695', class: {
231
+ return (h(Host, { key: '4e1b7968bb670a8fc361c929fcffb804622abcfd', class: { disabled: !!this.disabled }, tabindex: this.disabled ? '-1' : undefined }, h("div", { key: '9a9f2dc31c4d48f5a78ffe904ebbac1c47902c02', "aria-controls": "popover", class: "control" }, this.label && h("label", { key: 'e46e942c45de9d58f6bf131d8f9bf68edc9aeef2', class: "control_label" }, this.label), h("div", { key: '71eb87432754769fe562ed71137d6df64183772d', class: {
230
232
  'control_field': true,
231
233
  loading: this.loading,
232
234
  error: !!this.error || !!this.localError,
233
235
  warning: this.warning !== undefined,
234
- }, onClick: this.handleOpen, ref: (el) => (this.controlEl = el) }, h("input", { key: 'c1db1ab521162a5a0d8c54600dc82c54c2fe7b2a', lang: "de", type: "date", name: "start", disabled: this.loading || this.disabled, readonly: this.readonly || this.variant === 'range', min: this.min, max: this.max, value: start ? dateFns.format(start, DEF_FORMAT) : '', onChange: (e) => this.handleChange(e, 'start'), onBlur: (e) => this.handleBlur(e, 'start'), onKeyDown: (e) => this.handleKeydown(e, 'start') }), this.variant === 'range' && (h("input", { key: 'ae9604705ae82bed2f82759de164ac4a510b8100', lang: "de", type: "date", name: "end", disabled: this.loading || this.disabled, readonly: this.readonly || this.variant === 'range', min: this.min, max: this.max, value: end ? dateFns.format(end, DEF_FORMAT) : '', onChange: (e) => this.handleChange(e, 'end'), onBlur: (e) => this.handleBlur(e, 'end'), onKeyDown: (e) => this.handleKeydown(e, 'end') }))), (this.helper || this.error || this.warning || this.localError) && (h("div", { key: '7afbdd9e4b0eccd144b35998110a97ed2d198ae6' }, this.helper && h("p", { key: 'cd6766d7bd96e2c23b290514ecf5a41c66f0c475', class: "control_message helper" }, this.helper), (this.error || this.warning || this.localError) && (h("p", { key: '94756aee0bae6ac8fdeb8c2962bb1d664c62c96b', class: { control_message: true, error: !!this.error || !!this.localError } }, this.error || this.localError || this.warning))))), h("div", { key: '0c7b9a5bd9f0b8cb3577bf1dfffef00aae071d84', role: "dialog", class: { popover: true, open: this.open }, ref: (el) => (this.popoverEl = el) }, h("div", { key: 'cc47a62bf581a3e0ad22f4a6c450ce1b1f93beab', class: "header" }, h("xv-button-v2", { key: '32968cc1355f18f26492a5a13c8d32aef24b3191', tabindex: this.open ? undefined : '-1', disabled: this.isPrevDisabled, variant: "ghost", onClick: this.prevMonth }, h("span", { key: '96e96385516abad610fe442be13ac476de1d4c0d', slot: "icon-left", class: "header_icon prev" })), h("p", { key: '18216a0dc2934485f4b39745071eeaf9991e3901', class: "header_date" }, dateFns.format(this.month, 'LLLL', { locale: de }), h("input", { key: '44794c9903616f2096af25ad34827fb89cd3e955', tabindex: this.open ? undefined : '-1', type: "number", value: this.month.getFullYear(), onInput: this.handleYearChange, onBlur: this.handleYearBlur })), h("xv-button-v2", { key: '199eab4375e1c8f331e9a02d1f0a7b97274233d0', tabindex: this.open ? undefined : '-1', disabled: this.isNextDisabled, variant: "ghost", onClick: this.nextMonth }, h("span", { key: '5669d1a32d2fca702837077ab47d5e337524d1f9', slot: "icon-left", class: "header_icon next" }))), h("div", { key: '62c8026ab7a1c86a8884b92892687cedacab2c8e', class: "week" }, h("p", { key: 'b8352feda8503fa2a53916b676fa4c1fc177a1f9', class: "week_day" }), WEEK.map((day) => h("p", { class: "week_day" }, day, "."))), h("div", { key: '020132e4ed4dea2c6836d2fe2d5126e595874b41', class: "week" }, this.days.map((day, idx) => (h(Fragment, null, idx % 7 === 0 && (h("button", { tabindex: this.open ? undefined : '-1', disabled: true, class: "week_day disabled" }, day.week)), h("button", { tabindex: this.open ? undefined : '-1', onClick: () => this.handleSetDate(day), disabled: day.disabled, class: {
236
+ }, onClick: this.handleOpen, ref: (el) => (this.controlEl = el) }, h("input", { key: '0908d3af22f8aaf8c5407a8b66ac56c3a34b7d24', lang: "de", type: "date", name: "start", disabled: this.loading || this.disabled, readonly: this.readonly || this.variant === 'range', min: this.min, max: this.max, value: start ? dateFns.format(start, DEF_FORMAT) : '', onChange: (e) => this.handleChange(e, 'start'), onBlur: (e) => this.handleBlur(e, 'start'), onKeyDown: (e) => this.handleKeydown(e, 'start') }), this.variant === 'range' && (h("input", { key: '1841a2f65ddb657e0aeff38cc34e90c01019815b', lang: "de", type: "date", name: "end", disabled: this.loading || this.disabled, readonly: this.readonly || this.variant === 'range', min: this.min, max: this.max, value: end ? dateFns.format(end, DEF_FORMAT) : '', onChange: (e) => this.handleChange(e, 'end'), onBlur: (e) => this.handleBlur(e, 'end'), onKeyDown: (e) => this.handleKeydown(e, 'end') }))), (this.helper || this.error || this.warning || this.localError) && (h("div", { key: '13766133adfab4a2ce2c4e038871699d360f22ce' }, this.helper && h("p", { key: '274c7dfcc09ef35b9f0cdbba8454c2fc385370f7', class: "control_message helper" }, this.helper), (this.error || this.warning || this.localError) && (h("p", { key: '3ed6f0c1f53f15c22e60fabf5f476bb663b8d24c', class: { control_message: true, error: !!this.error || !!this.localError } }, this.error || this.localError || this.warning))))), h("div", { key: '5762ec14597d9418dfbd04a31db44d299aa88625', role: "dialog", class: { popover: true, open: this.open }, ref: (el) => (this.popoverEl = el) }, h("div", { key: '8ad3a1e6c31b982755f7b82b7cb16644c4f23f38', class: "header" }, h("xv-button-v2", { key: 'db4d454e82ca8ec26fcf4f291ac21146dcb14a3b', tabindex: this.open ? undefined : '-1', disabled: this.isPrevDisabled, variant: "ghost", onClick: this.prevMonth }, h("span", { key: 'e80d1efac41ea1e4aa7aa83a22cd5f7d9db40553', slot: "icon-left", class: "header_icon prev" })), h("p", { key: '37505645ea5e5181a0797560aeada8b0f22ef92e', class: "header_date" }, dateFns.format(this.month, 'LLLL', { locale: de }), h("input", { key: 'b3ccae4078f4ce61ec85a79abe16a4c406553f6f', tabindex: this.open ? undefined : '-1', type: "number", value: this.month.getFullYear(), onInput: this.handleYearChange, onBlur: this.handleYearBlur })), h("xv-button-v2", { key: '8ece0927ba0dc434765a7b2fea50ad1420913cbe', tabindex: this.open ? undefined : '-1', disabled: this.isNextDisabled, variant: "ghost", onClick: this.nextMonth }, h("span", { key: 'b471b2d6137c5c52f5089d821225d21c93cb1f4d', slot: "icon-left", class: "header_icon next" }))), h("div", { key: 'd7de53d7865a5c033fb0e5e2c416eee8dff3b60a', class: "week" }, h("p", { key: '8d4d8b3b9e42c040435d2e6813aa96bcaca2144d', class: "week_day" }), WEEK.map((day) => h("p", { class: "week_day" }, day, "."))), h("div", { key: '63b91609bc0e2709952f8b66b20997b16b960260', class: "week" }, this.days.map((day, idx) => (h(Fragment, null, idx % 7 === 0 && (h("button", { tabindex: this.open ? undefined : '-1', disabled: true, class: "week_day disabled" }, day.week)), h("button", { tabindex: this.open ? undefined : '-1', onClick: () => this.handleSetDate(day), disabled: day.disabled, class: {
235
237
  'week_day': true,
236
238
  inRange: this.variant === 'range' && dateFns.isWithinInterval(day.date, { start, end }),
237
239
  isToday: day.isToday,
@@ -80248,8 +80248,10 @@ const XvDatepicker = class {
80248
80248
  get isPrevDisabled() {
80249
80249
  if (!this.minDate)
80250
80250
  return false;
80251
- const prevMonth = dateFns.startOfMonth(dateFns.addMonths(this.month, -1));
80252
- return dateFns.isBefore(prevMonth, this.minDate);
80251
+ // disable only when the WHOLE previous month is before min — its end must
80252
+ // be compared, otherwise a mid-month min blocks navigating to its own month
80253
+ const prevMonthEnd = dateFns.endOfMonth(dateFns.addMonths(this.month, -1));
80254
+ return dateFns.isBefore(prevMonthEnd, this.minDate);
80253
80255
  }
80254
80256
  get isNextDisabled() {
80255
80257
  if (!this.maxDate)
@@ -80341,12 +80343,12 @@ const XvDatepicker = class {
80341
80343
  }
80342
80344
  render() {
80343
80345
  const [start, end] = this.value;
80344
- return (h(Host, { key: '3289a4359e496b9bf4ea367d651b725d4ff0cce4', class: { disabled: !!this.disabled }, tabindex: this.disabled ? '-1' : undefined }, h("div", { key: 'c0b42eb7c4101ccc696f82d6ed8a623ebf67a1df', "aria-controls": "popover", class: "control" }, this.label && h("label", { key: '1d05181900511e3e4e8a0888caf04c7795310be2', class: "control_label" }, this.label), h("div", { key: '894425978fc98868b3b78b0754053f4913fde695', class: {
80346
+ return (h(Host, { key: '4e1b7968bb670a8fc361c929fcffb804622abcfd', class: { disabled: !!this.disabled }, tabindex: this.disabled ? '-1' : undefined }, h("div", { key: '9a9f2dc31c4d48f5a78ffe904ebbac1c47902c02', "aria-controls": "popover", class: "control" }, this.label && h("label", { key: 'e46e942c45de9d58f6bf131d8f9bf68edc9aeef2', class: "control_label" }, this.label), h("div", { key: '71eb87432754769fe562ed71137d6df64183772d', class: {
80345
80347
  'control_field': true,
80346
80348
  loading: this.loading,
80347
80349
  error: !!this.error || !!this.localError,
80348
80350
  warning: this.warning !== undefined,
80349
- }, onClick: this.handleOpen, ref: (el) => (this.controlEl = el) }, h("input", { key: 'c1db1ab521162a5a0d8c54600dc82c54c2fe7b2a', lang: "de", type: "date", name: "start", disabled: this.loading || this.disabled, readonly: this.readonly || this.variant === 'range', min: this.min, max: this.max, value: start ? dateFns.format(start, DEF_FORMAT) : '', onChange: (e) => this.handleChange(e, 'start'), onBlur: (e) => this.handleBlur(e, 'start'), onKeyDown: (e) => this.handleKeydown(e, 'start') }), this.variant === 'range' && (h("input", { key: 'ae9604705ae82bed2f82759de164ac4a510b8100', lang: "de", type: "date", name: "end", disabled: this.loading || this.disabled, readonly: this.readonly || this.variant === 'range', min: this.min, max: this.max, value: end ? dateFns.format(end, DEF_FORMAT) : '', onChange: (e) => this.handleChange(e, 'end'), onBlur: (e) => this.handleBlur(e, 'end'), onKeyDown: (e) => this.handleKeydown(e, 'end') }))), (this.helper || this.error || this.warning || this.localError) && (h("div", { key: '7afbdd9e4b0eccd144b35998110a97ed2d198ae6' }, this.helper && h("p", { key: 'cd6766d7bd96e2c23b290514ecf5a41c66f0c475', class: "control_message helper" }, this.helper), (this.error || this.warning || this.localError) && (h("p", { key: '94756aee0bae6ac8fdeb8c2962bb1d664c62c96b', class: { control_message: true, error: !!this.error || !!this.localError } }, this.error || this.localError || this.warning))))), h("div", { key: '0c7b9a5bd9f0b8cb3577bf1dfffef00aae071d84', role: "dialog", class: { popover: true, open: this.open }, ref: (el) => (this.popoverEl = el) }, h("div", { key: 'cc47a62bf581a3e0ad22f4a6c450ce1b1f93beab', class: "header" }, h("xv-button-v2", { key: '32968cc1355f18f26492a5a13c8d32aef24b3191', tabindex: this.open ? undefined : '-1', disabled: this.isPrevDisabled, variant: "ghost", onClick: this.prevMonth }, h("span", { key: '96e96385516abad610fe442be13ac476de1d4c0d', slot: "icon-left", class: "header_icon prev" })), h("p", { key: '18216a0dc2934485f4b39745071eeaf9991e3901', class: "header_date" }, dateFns.format(this.month, 'LLLL', { locale: localeExports.de }), h("input", { key: '44794c9903616f2096af25ad34827fb89cd3e955', tabindex: this.open ? undefined : '-1', type: "number", value: this.month.getFullYear(), onInput: this.handleYearChange, onBlur: this.handleYearBlur })), h("xv-button-v2", { key: '199eab4375e1c8f331e9a02d1f0a7b97274233d0', tabindex: this.open ? undefined : '-1', disabled: this.isNextDisabled, variant: "ghost", onClick: this.nextMonth }, h("span", { key: '5669d1a32d2fca702837077ab47d5e337524d1f9', slot: "icon-left", class: "header_icon next" }))), h("div", { key: '62c8026ab7a1c86a8884b92892687cedacab2c8e', class: "week" }, h("p", { key: 'b8352feda8503fa2a53916b676fa4c1fc177a1f9', class: "week_day" }), WEEK.map((day) => h("p", { class: "week_day" }, day, "."))), h("div", { key: '020132e4ed4dea2c6836d2fe2d5126e595874b41', class: "week" }, this.days.map((day, idx) => (h(Fragment, null, idx % 7 === 0 && (h("button", { tabindex: this.open ? undefined : '-1', disabled: true, class: "week_day disabled" }, day.week)), h("button", { tabindex: this.open ? undefined : '-1', onClick: () => this.handleSetDate(day), disabled: day.disabled, class: {
80351
+ }, onClick: this.handleOpen, ref: (el) => (this.controlEl = el) }, h("input", { key: '0908d3af22f8aaf8c5407a8b66ac56c3a34b7d24', lang: "de", type: "date", name: "start", disabled: this.loading || this.disabled, readonly: this.readonly || this.variant === 'range', min: this.min, max: this.max, value: start ? dateFns.format(start, DEF_FORMAT) : '', onChange: (e) => this.handleChange(e, 'start'), onBlur: (e) => this.handleBlur(e, 'start'), onKeyDown: (e) => this.handleKeydown(e, 'start') }), this.variant === 'range' && (h("input", { key: '1841a2f65ddb657e0aeff38cc34e90c01019815b', lang: "de", type: "date", name: "end", disabled: this.loading || this.disabled, readonly: this.readonly || this.variant === 'range', min: this.min, max: this.max, value: end ? dateFns.format(end, DEF_FORMAT) : '', onChange: (e) => this.handleChange(e, 'end'), onBlur: (e) => this.handleBlur(e, 'end'), onKeyDown: (e) => this.handleKeydown(e, 'end') }))), (this.helper || this.error || this.warning || this.localError) && (h("div", { key: '13766133adfab4a2ce2c4e038871699d360f22ce' }, this.helper && h("p", { key: '274c7dfcc09ef35b9f0cdbba8454c2fc385370f7', class: "control_message helper" }, this.helper), (this.error || this.warning || this.localError) && (h("p", { key: '3ed6f0c1f53f15c22e60fabf5f476bb663b8d24c', class: { control_message: true, error: !!this.error || !!this.localError } }, this.error || this.localError || this.warning))))), h("div", { key: '5762ec14597d9418dfbd04a31db44d299aa88625', role: "dialog", class: { popover: true, open: this.open }, ref: (el) => (this.popoverEl = el) }, h("div", { key: '8ad3a1e6c31b982755f7b82b7cb16644c4f23f38', class: "header" }, h("xv-button-v2", { key: 'db4d454e82ca8ec26fcf4f291ac21146dcb14a3b', tabindex: this.open ? undefined : '-1', disabled: this.isPrevDisabled, variant: "ghost", onClick: this.prevMonth }, h("span", { key: 'e80d1efac41ea1e4aa7aa83a22cd5f7d9db40553', slot: "icon-left", class: "header_icon prev" })), h("p", { key: '37505645ea5e5181a0797560aeada8b0f22ef92e', class: "header_date" }, dateFns.format(this.month, 'LLLL', { locale: localeExports.de }), h("input", { key: 'b3ccae4078f4ce61ec85a79abe16a4c406553f6f', tabindex: this.open ? undefined : '-1', type: "number", value: this.month.getFullYear(), onInput: this.handleYearChange, onBlur: this.handleYearBlur })), h("xv-button-v2", { key: '8ece0927ba0dc434765a7b2fea50ad1420913cbe', tabindex: this.open ? undefined : '-1', disabled: this.isNextDisabled, variant: "ghost", onClick: this.nextMonth }, h("span", { key: 'b471b2d6137c5c52f5089d821225d21c93cb1f4d', slot: "icon-left", class: "header_icon next" }))), h("div", { key: 'd7de53d7865a5c033fb0e5e2c416eee8dff3b60a', class: "week" }, h("p", { key: '8d4d8b3b9e42c040435d2e6813aa96bcaca2144d', class: "week_day" }), WEEK.map((day) => h("p", { class: "week_day" }, day, "."))), h("div", { key: '63b91609bc0e2709952f8b66b20997b16b960260', class: "week" }, this.days.map((day, idx) => (h(Fragment, null, idx % 7 === 0 && (h("button", { tabindex: this.open ? undefined : '-1', disabled: true, class: "week_day disabled" }, day.week)), h("button", { tabindex: this.open ? undefined : '-1', onClick: () => this.handleSetDate(day), disabled: day.disabled, class: {
80350
80352
  'week_day': true,
80351
80353
  inRange: this.variant === 'range' && dateFns.isWithinInterval(day.date, { start, end }),
80352
80354
  isToday: day.isToday,