@descope/web-components-ui 1.115.0 → 1.117.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.
@@ -15940,20 +15940,20 @@ const createFormat = (format) => {
15940
15940
 
15941
15941
  const formats = Object.fromEntries(SUPPORTED_FORMATS.map((f) => [f, createFormat(f)]));
15942
15942
 
15943
- const isValidTimestamp = (val) => !Number.isNaN(Number(val));
15943
+ const isValidEpoch = (val) => !Number.isNaN(Number(val));
15944
15944
 
15945
15945
  const isNumber = (val) => !!String(val || '').trim() && !Number.isNaN(Number(val));
15946
15946
 
15947
- const getTimestampParts = (timestamp) => {
15948
- const date = newDate(timestamp);
15947
+ const getPartsFromEpoch = (epoch) => {
15948
+ const date = newDate(epoch);
15949
15949
  const year = date.getFullYear();
15950
15950
  const month = date.getMonth() + 1;
15951
15951
  const day = date.getDate();
15952
15952
  return [year, month, day];
15953
15953
  };
15954
15954
 
15955
- const formatTimestamp = (timestamp, format) => {
15956
- const [year, month, day] = getTimestampParts(timestamp);
15955
+ const formatEpoch = (epoch, format) => {
15956
+ const [year, month, day] = getPartsFromEpoch(epoch);
15957
15957
 
15958
15958
  const parts = {
15959
15959
  DD: String(day).padStart(2, '0'),
@@ -15976,8 +15976,8 @@ const newDate = (date) => {
15976
15976
  };
15977
15977
 
15978
15978
  const getCurrentTime = () => newDate().getTime();
15979
- const getFullYear = (timestamp) => newDate(timestamp).getFullYear().toString();
15980
- const getMonth = (timestamp) => (newDate(timestamp).getMonth() + 1).toString();
15979
+ const getFullYear = (epoch) => newDate(epoch).getFullYear().toString();
15980
+ const getMonth = (epoch) => (newDate(epoch).getMonth() + 1).toString();
15981
15981
  const getCurrentDay = () => newDate().getDate();
15982
15982
 
15983
15983
  // Vaadin uses "constructed stylesheet" to hide the host in dialog components.
@@ -15995,6 +15995,13 @@ const parseDateString = (val, format) => {
15995
15995
  return formats[format].getDate(trimmed);
15996
15996
  };
15997
15997
 
15998
+ const dateToEpoch = (date, isUtc) => {
15999
+ if (isUtc) {
16000
+ return new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())).getTime();
16001
+ }
16002
+ return date.getTime();
16003
+ };
16004
+
15998
16005
  const calendarIcon = `
15999
16006
  <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
16000
16007
  <path fill-rule="evenodd" clip-rule="evenodd" d="M9 5H15V4.50468C15 4.21404 15.226 4 15.5047 4H16.4953C16.786 4 17 4.22595 17 4.50468V5H18.7568C19.3028 5 19.75 5.44725 19.75 5.99896V7.00104C19.75 7.55734 19.3053 8 18.7568 8H5.24317C4.69717 8 4.25 7.55275 4.25 7.00104V5.99896C4.25 5.44266 4.69466 5 5.24317 5H7V4.50468C7 4.21404 7.22596 4 7.50468 4H8.49532C8.78596 4 9 4.22595 9 4.50468V5ZM5.50468 9H6.49532C6.78596 9 7 9.22596 7 9.50468V10.4953C7 10.786 6.77404 11 6.49532 11H5.50468C5.21404 11 5 10.774 5 10.4953V9.50468C5 9.21404 5.22595 9 5.50468 9ZM8.50468 9H9.49532C9.78596 9 10 9.22596 10 9.50468V10.4953C10 10.786 9.77404 11 9.49532 11H8.50468C8.21404 11 8 10.774 8 10.4953V9.50468C8 9.21404 8.22596 9 8.50468 9ZM11.5047 9H12.4953C12.786 9 13 9.22596 13 9.50468V10.4953C13 10.786 12.774 11 12.4953 11H11.5047C11.214 11 11 10.774 11 10.4953V9.50468C11 9.21404 11.226 9 11.5047 9ZM5.50468 12H6.49532C6.78596 12 7 12.226 7 12.5047V13.4953C7 13.786 6.77404 14 6.49532 14H5.50468C5.21404 14 5 13.774 5 13.4953V12.5047C5 12.214 5.22595 12 5.50468 12ZM8.50468 12H9.49532C9.78596 12 10 12.226 10 12.5047V13.4953C10 13.786 9.77404 14 9.49532 14H8.50468C8.21404 14 8 13.774 8 13.4953V12.5047C8 12.214 8.22596 12 8.50468 12ZM11.5047 12H12.4953C12.786 12 13 12.226 13 12.5047V13.4953C13 13.786 12.774 14 12.4953 14H11.5047C11.214 14 11 13.774 11 13.4953V12.5047C11 12.214 11.226 12 11.5047 12ZM5.50468 15H6.49532C6.78596 15 7 15.226 7 15.5047V16.4953C7 16.786 6.77404 17 6.49532 17H5.50468C5.21404 17 5 16.774 5 16.4953V15.5047C5 15.214 5.22595 15 5.50468 15ZM8.50468 15H9.49532C9.78596 15 10 15.226 10 15.5047V16.4953C10 16.786 9.77404 17 9.49532 17H8.50468C8.21404 17 8 16.774 8 16.4953V15.5047C8 15.214 8.22596 15 8.50468 15ZM11.5047 15H12.4953C12.786 15 13 15.226 13 15.5047V16.4953C13 16.786 12.774 17 12.4953 17H11.5047C11.214 17 11 16.774 11 16.4953V15.5047C11 15.214 11.226 15 11.5047 15ZM14.5047 9H15.4953C15.786 9 16 9.22596 16 9.50468V10.4953C16 10.786 15.774 11 15.4953 11H14.5047C14.214 11 14 10.774 14 10.4953V9.50468C14 9.21404 14.226 9 14.5047 9ZM14.5047 12H15.4953C15.786 12 16 12.226 16 12.5047V13.4953C16 13.786 15.774 14 15.4953 14H14.5047C14.214 14 14 13.774 14 13.4953V12.5047C14 12.214 14.226 12 14.5047 12ZM14.5047 15H15.4953C15.786 15 16 15.226 16 15.5047V16.4953C16 16.786 15.774 17 15.4953 17H14.5047C14.214 17 14 16.774 14 16.4953V15.5047C14 15.214 14.226 15 14.5047 15ZM17.5047 15H18.4953C18.786 15 19 15.226 19 15.5047V16.4953C19 16.786 18.774 17 18.4953 17H17.5047C17.214 17 17 16.774 17 16.4953V15.5047C17 15.214 17.226 15 17.5047 15ZM5.50468 18H6.49532C6.78596 18 7 18.226 7 18.5047V19.4953C7 19.786 6.77404 20 6.49532 20H5.50468C5.21404 20 5 19.774 5 19.4953V18.5047C5 18.214 5.22595 18 5.50468 18ZM8.50468 18H9.49532C9.78596 18 10 18.226 10 18.5047V19.4953C10 19.786 9.77404 20 9.49532 20H8.50468C8.21404 20 8 19.774 8 19.4953V18.5047C8 18.214 8.22596 18 8.50468 18ZM11.5047 18H12.4953C12.786 18 13 18.226 13 18.5047V19.4953C13 19.786 12.774 20 12.4953 20H11.5047C11.214 20 11 19.774 11 19.4953V18.5047C11 18.214 11.226 18 11.5047 18ZM14.5047 18H15.4953C15.786 18 16 18.226 16 18.5047V19.4953C16 19.786 15.774 20 15.4953 20H14.5047C14.214 20 14 19.774 14 19.4953V18.5047C14 18.214 14.226 18 14.5047 18ZM17.5047 18H18.4953C18.786 18 19 18.226 19 18.5047V19.4953C19 19.786 18.774 20 18.4953 20H17.5047C17.214 20 17 19.774 17 19.4953V18.5047C17 18.214 17.226 18 17.5047 18ZM17.5047 12H18.4953C18.786 12 19 12.226 19 12.5047V13.4953C19 13.786 18.774 14 18.4953 14H17.5047C17.214 14 17 13.774 17 13.4953V12.5047C17 12.214 17.226 12 17.5047 12ZM17.5047 9H18.4953C18.786 9 19 9.22596 19 9.50468V10.4953C19 10.786 18.774 11 18.4953 11H17.5047C17.214 11 17 10.774 17 10.4953V9.50468C17 9.21404 17.226 9 17.5047 9Z" fill="#808080"/>
@@ -16100,9 +16107,9 @@ const getMonthsOptions = (customMonths = months) =>
16100
16107
  .map((item, index) => comboBoxItemTpl({ label: item, dataId: index + 1, dataName: item }))
16101
16108
  .join('');
16102
16109
 
16103
- const isViewVisible = (selectionTimestamp, previewTimestamp) => {
16104
- const [previewYear, previewMonth] = getTimestampParts(previewTimestamp);
16105
- const [selectedYear, selectedMonth] = getTimestampParts(selectionTimestamp);
16110
+ const isViewVisible = (selectionEpoch, previewEpoch) => {
16111
+ const [previewYear, previewMonth] = getPartsFromEpoch(previewEpoch);
16112
+ const [selectedYear, selectedMonth] = getPartsFromEpoch(selectionEpoch);
16106
16113
  return selectedYear === previewYear && selectedMonth === previewMonth;
16107
16114
  };
16108
16115
 
@@ -16153,8 +16160,8 @@ const ensureWeekdayNamesArr = (attrVal) => {
16153
16160
 
16154
16161
  const truncateWeekdays = (arr) => arr.map((d) => d.substring(0, 3));
16155
16162
 
16156
- const prevMonth = (timestamp) => {
16157
- const date = newDate(timestamp);
16163
+ const prevMonth = (epoch) => {
16164
+ const date = newDate(epoch);
16158
16165
  const month = date.getMonth();
16159
16166
 
16160
16167
  if (month === 0) {
@@ -16168,8 +16175,8 @@ const prevMonth = (timestamp) => {
16168
16175
  return date;
16169
16176
  };
16170
16177
 
16171
- const nextMonth = (timestamp) => {
16172
- const date = newDate(timestamp);
16178
+ const nextMonth = (epoch) => {
16179
+ const date = newDate(epoch);
16173
16180
  const month = date.getMonth();
16174
16181
 
16175
16182
  if (month === 11) {
@@ -16207,11 +16214,11 @@ class RawCalendar extends BaseInputClass$3 {
16207
16214
  return [].concat(BaseInputClass$3.observedAttributes || [], observedAttrs$2, calendarUiAttrs);
16208
16215
  }
16209
16216
 
16210
- // preview state timestamp
16217
+ // preview state epoch
16211
16218
  preview;
16212
16219
 
16213
- // value timestamp
16214
- timestamp;
16220
+ // value epoch
16221
+ epoch;
16215
16222
 
16216
16223
  constructor() {
16217
16224
  super();
@@ -16297,23 +16304,23 @@ class RawCalendar extends BaseInputClass$3 {
16297
16304
  set value(val) {
16298
16305
  if (!val) return;
16299
16306
 
16300
- const timestamp = newDate(val).getTime();
16307
+ const epoch = newDate(val).getTime();
16301
16308
 
16302
- if (!isValidTimestamp(timestamp) || timestamp === this.timestmap) {
16309
+ if (!isValidEpoch(epoch) || epoch === this.epoch) {
16303
16310
  return;
16304
16311
  }
16305
16312
 
16306
- this.timestamp = timestamp;
16313
+ this.epoch = epoch;
16307
16314
 
16308
16315
  this.renderCalendar();
16309
16316
  }
16310
16317
 
16311
16318
  get value() {
16312
- return this.timestamp ? formatTimestamp(this.timestamp, NATIVE_FORMAT) : '';
16319
+ return this.epoch ? formatEpoch(this.epoch, NATIVE_FORMAT) : '';
16313
16320
  }
16314
16321
 
16315
16322
  get isSelectedView() {
16316
- return isViewVisible(this.preview, this.timestamp);
16323
+ return isViewVisible(this.preview, this.epoch);
16317
16324
  }
16318
16325
 
16319
16326
  get isTodayView() {
@@ -16430,14 +16437,14 @@ class RawCalendar extends BaseInputClass$3 {
16430
16437
  clearSelectedDay() {
16431
16438
  this.getSelectedDayEle()?.removeAttribute('data-selected');
16432
16439
  this.submitButton.setAttribute('disabled', 'true');
16433
- this.timestamp = '';
16440
+ this.epoch = '';
16434
16441
  }
16435
16442
 
16436
16443
  updateInputs() {
16437
16444
  if (this.yearInput && this.monthInput) {
16438
- const timestamp = this.preview || getCurrentTime();
16439
- const year = getFullYear(timestamp);
16440
- const month = getMonth(timestamp);
16445
+ const epoch = this.preview || getCurrentTime();
16446
+ const year = getFullYear(epoch);
16447
+ const month = getMonth(epoch);
16441
16448
  this.monthInput.value = month;
16442
16449
  // For the yearInput we update the base element directly to properly trigger the change event
16443
16450
  // since this can be a custom value
@@ -16449,9 +16456,9 @@ class RawCalendar extends BaseInputClass$3 {
16449
16456
 
16450
16457
  renderCalendar() {
16451
16458
  const date = newDate(this.preview || getCurrentTime());
16452
- const timestamp = date.getTime();
16459
+ const epoch = date.getTime();
16453
16460
 
16454
- const [year, month] = getTimestampParts(timestamp);
16461
+ const [year, month] = getPartsFromEpoch(epoch);
16455
16462
 
16456
16463
  if (this.calendar) {
16457
16464
  this.calendar.innerHTML = createMonthView(year, month, truncateWeekdays(this.weekdayNames));
@@ -16470,7 +16477,7 @@ class RawCalendar extends BaseInputClass$3 {
16470
16477
  if (this.isDisabled) return;
16471
16478
  const date = newDate(this.preview);
16472
16479
  date.setDate(Number(e.target.getAttribute('data-date-day')));
16473
- this.value = formatTimestamp(date.getTime(), NATIVE_FORMAT);
16480
+ this.value = formatEpoch(date.getTime(), NATIVE_FORMAT);
16474
16481
  this.dispatchEvent(new CustomEvent('day-changed', { detail: date }));
16475
16482
  }
16476
16483
 
@@ -16501,7 +16508,7 @@ class RawCalendar extends BaseInputClass$3 {
16501
16508
  }
16502
16509
 
16503
16510
  getSelectedDayEle() {
16504
- const day = newDate(this.timestamp).getDate();
16511
+ const day = newDate(this.epoch).getDate();
16505
16512
  return this.calendar?.querySelector(`[data-date-day="${day}"]`);
16506
16513
  }
16507
16514
 
@@ -16526,8 +16533,8 @@ class RawCalendar extends BaseInputClass$3 {
16526
16533
  if (this.isTodayView) {
16527
16534
  const ele = this.getCurrentDayEle();
16528
16535
  const title = this.getAttribute('calendar-label-today') || CALENDAR_LABEL_TODAY;
16529
- ele.setAttribute('data-current-day', 'true');
16530
- ele.setAttribute('title', title);
16536
+ ele?.setAttribute('data-current-day', 'true');
16537
+ ele?.setAttribute('title', title);
16531
16538
  }
16532
16539
  }
16533
16540
 
@@ -16550,7 +16557,7 @@ class RawCalendar extends BaseInputClass$3 {
16550
16557
  }
16551
16558
 
16552
16559
  clearValue() {
16553
- this.timestamp = '';
16560
+ this.epoch = '';
16554
16561
  this.value = '';
16555
16562
  this.removeAttribute('preview');
16556
16563
  this.submitButton.setAttribute('disabled', 'true');
@@ -16563,11 +16570,11 @@ class RawCalendar extends BaseInputClass$3 {
16563
16570
  }
16564
16571
 
16565
16572
  const date = newDate(newValue);
16566
- const timestamp = date.getTime();
16573
+ const epoch = date.getTime();
16567
16574
 
16568
- if (isValidTimestamp(timestamp)) {
16569
- this.timestamp = timestamp;
16570
- this.preview = timestamp;
16575
+ if (isValidEpoch(epoch)) {
16576
+ this.epoch = epoch;
16577
+ this.preview = epoch;
16571
16578
  } else {
16572
16579
  this.clearValue();
16573
16580
  }
@@ -17036,12 +17043,19 @@ const componentName$m = getComponentName$1('date-field');
17036
17043
  const BASE_SELECTOR = 'vaadin-popover';
17037
17044
  const BaseInputClass$2 = createBaseInputClass({ componentName: componentName$m, baseSelector: BASE_SELECTOR });
17038
17045
 
17039
- const dateFieldAttrs = ['format', 'opened', 'initial-value', 'readonly', 'disable-calendar'];
17046
+ const dateFieldAttrs = [
17047
+ 'format',
17048
+ 'opened',
17049
+ 'initial-value',
17050
+ 'readonly',
17051
+ 'disable-calendar',
17052
+ 'utc-time',
17053
+ ];
17040
17054
  const calendarAttrs = ['years-range', 'calendar-months', 'calendar-weekdays'];
17041
17055
  const observedAttrs$1 = [...dateFieldAttrs, ...calendarAttrs];
17042
17056
 
17043
17057
  class RawDateFieldClass extends BaseInputClass$2 {
17044
- timestamp = '';
17058
+ epoch = '';
17045
17059
 
17046
17060
  format = DEFAULT_FORMAT;
17047
17061
 
@@ -17053,10 +17067,10 @@ class RawDateFieldClass extends BaseInputClass$2 {
17053
17067
 
17054
17068
  updateValue() {
17055
17069
  if (this.isCountersOutOfRange) {
17056
- this.updateTimestamp('');
17070
+ this.updateEpoch('');
17057
17071
  } else {
17058
17072
  const date = formats[this.format].getDate(this.inputElement.value);
17059
- this.updateTimestamp(date.getTime());
17073
+ this.updateEpoch(dateToEpoch(date, this.isUtcTime));
17060
17074
  }
17061
17075
  }
17062
17076
 
@@ -17067,11 +17081,11 @@ class RawDateFieldClass extends BaseInputClass$2 {
17067
17081
  this.#dispatchInput();
17068
17082
  };
17069
17083
 
17070
- updateTimestamp(epochOrDate) {
17084
+ updateEpoch(epochOrDate) {
17071
17085
  if (!epochOrDate) {
17072
- this.timestamp = '';
17086
+ this.epoch = '';
17073
17087
  } else {
17074
- this.timestamp = newDate(epochOrDate).getTime();
17088
+ this.epoch = dateToEpoch(newDate(epochOrDate), this.isUtcTime);
17075
17089
  }
17076
17090
  }
17077
17091
 
@@ -17144,11 +17158,11 @@ class RawDateFieldClass extends BaseInputClass$2 {
17144
17158
  return this.getAttribute('opened') === 'true';
17145
17159
  }
17146
17160
 
17147
- // returns the input's value as a timestamp
17161
+ // returns the input's value as a epoch
17148
17162
  get displayValueEpoch() {
17149
17163
  const date = formats[this.format].getDate(this.inputElement.value);
17150
17164
 
17151
- if (!isValidTimestamp(date?.getTime())) {
17165
+ if (!isValidEpoch(date?.getTime())) {
17152
17166
  return null;
17153
17167
  }
17154
17168
 
@@ -17196,15 +17210,15 @@ class RawDateFieldClass extends BaseInputClass$2 {
17196
17210
  if (this.isInvalidDate()) {
17197
17211
  return '';
17198
17212
  }
17199
- return this.timestamp;
17213
+ return this.epoch;
17200
17214
  }
17201
17215
 
17202
17216
  set value(val) {
17203
17217
  if (val) {
17204
- this.updateTimestamp(val);
17218
+ this.updateEpoch(val);
17205
17219
  this.updateDateCounters(newDate(val));
17206
17220
  } else {
17207
- this.updateTimestamp('');
17221
+ this.updateEpoch('');
17208
17222
  }
17209
17223
  }
17210
17224
 
@@ -17220,6 +17234,10 @@ class RawDateFieldClass extends BaseInputClass$2 {
17220
17234
  return this.getAttribute('disable-calendar') === 'true';
17221
17235
  }
17222
17236
 
17237
+ get isUtcTime() {
17238
+ return this.getAttribute('utc-time') === 'true';
17239
+ }
17240
+
17223
17241
  get isSelectAll() {
17224
17242
  const inputEle = this.inputElement.baseElement.inputElement;
17225
17243
  return inputEle.value.length === inputEle.selectionStart + inputEle.selectionEnd;
@@ -17234,7 +17252,7 @@ class RawDateFieldClass extends BaseInputClass$2 {
17234
17252
  }
17235
17253
 
17236
17254
  updateInputDisplay() {
17237
- this.inputElement.value = formatTimestamp(newDate(this.countersValue).getTime(), this.format);
17255
+ this.inputElement.value = formatEpoch(newDate(this.countersValue).getTime(), this.format);
17238
17256
  }
17239
17257
 
17240
17258
  init() {
@@ -17425,7 +17443,7 @@ class RawDateFieldClass extends BaseInputClass$2 {
17425
17443
 
17426
17444
  const calendarDate = newDate(this.calendar.value);
17427
17445
 
17428
- this.value = calendarDate.getTime();
17446
+ this.value = dateToEpoch(calendarDate, this.isUtcTime);
17429
17447
 
17430
17448
  this.getCounterById('year').replaceValue(calendarDate.getFullYear());
17431
17449
  this.getCounterById('month').replaceValue(calendarDate.getMonth() + 1);
@@ -17439,17 +17457,17 @@ class RawDateFieldClass extends BaseInputClass$2 {
17439
17457
 
17440
17458
  updateCalendarView() {
17441
17459
  const validInputVal =
17442
- isValidTimestamp(newDate(this.inputElement.value || '').getTime()) &&
17460
+ isValidEpoch(newDate(this.inputElement.value || '').getTime()) &&
17443
17461
  formats[this.format].validate(this.inputElement.value);
17444
17462
 
17445
17463
  if (this.displayValueEpoch || validInputVal) {
17446
17464
  this.calendar.setAttribute(
17447
17465
  'initial-value',
17448
- formatTimestamp(this.displayValueEpoch || this.timestamp, NATIVE_FORMAT)
17466
+ formatEpoch(this.displayValueEpoch || this.epoch, NATIVE_FORMAT)
17449
17467
  );
17450
17468
  } else {
17451
17469
  this.calendar.clearValue();
17452
- this.calendar.setAttribute('preview', formatTimestamp(getCurrentTime(), NATIVE_FORMAT));
17470
+ this.calendar.setAttribute('preview', formatEpoch(getCurrentTime(), NATIVE_FORMAT));
17453
17471
  }
17454
17472
 
17455
17473
  forwardAttrs$1(this, this.calendar, {
@@ -17598,13 +17616,13 @@ class RawDateFieldClass extends BaseInputClass$2 {
17598
17616
  this.dateCounters.forEach((dc) => {
17599
17617
  switch (dc.id) {
17600
17618
  case counterConfig.MONTH.id:
17601
- dc.set(date.getMonth() + 1);
17619
+ dc.set(this.isUtcTime ? date.getUTCMonth() + 1 : date.getMonth() + 1);
17602
17620
  break;
17603
17621
  case counterConfig.YEAR.id:
17604
- dc.set(date.getFullYear());
17622
+ dc.set(this.isUtcTime ? date.getUTCFullYear() : date.getFullYear());
17605
17623
  break;
17606
17624
  case counterConfig.DAY.id:
17607
- dc.set(date.getDate());
17625
+ dc.set(this.isUtcTime ? date.getUTCDate() : date.getDate());
17608
17626
  break;
17609
17627
  }
17610
17628
  });
@@ -17765,12 +17783,22 @@ class RawDateFieldClass extends BaseInputClass$2 {
17765
17783
  year: '',
17766
17784
  };
17767
17785
 
17786
+ if (!this.epoch) {
17787
+ return ret;
17788
+ }
17789
+
17768
17790
  try {
17769
- const date = newDate(this.timestamp);
17791
+ const date = newDate(this.epoch);
17770
17792
 
17771
- ret.month = date.getMonth() + 1;
17772
- ret.day = date.getDate();
17773
- ret.year = date.getFullYear();
17793
+ if (this.isUtcTime) {
17794
+ ret.month = date.getUTCMonth() + 1;
17795
+ ret.day = date.getUTCDate();
17796
+ ret.year = date.getUTCFullYear();
17797
+ } else {
17798
+ ret.month = date.getMonth() + 1;
17799
+ ret.day = date.getDate();
17800
+ ret.year = date.getFullYear();
17801
+ }
17774
17802
  } catch (e) {}
17775
17803
 
17776
17804
  return ret;
@@ -17814,7 +17842,7 @@ class RawDateFieldClass extends BaseInputClass$2 {
17814
17842
  const validDate = parseDateString(pastedData, this.format);
17815
17843
 
17816
17844
  if (validDate) {
17817
- this.value = validDate.getTime();
17845
+ this.value = dateToEpoch(validDate, this.isUtcTime);
17818
17846
  this.onDateCounterChange();
17819
17847
 
17820
17848
  // select all
@@ -22046,7 +22074,6 @@ const outboundApps = {
22046
22074
  [vars$1.iconColor]: globals.colors.primary.main,
22047
22075
  [vars$1.errorIconColor]: globals.colors.error.main,
22048
22076
 
22049
- [vars$1.appLogoBackgroundColor]: 'none',
22050
22077
  [vars$1.appLogoGap]: globals.spacing.md,
22051
22078
  [vars$1.contentGap]: globals.spacing.xs,
22052
22079