@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.
package/dist/index.esm.js CHANGED
@@ -5702,20 +5702,20 @@ const createFormat = (format) => {
5702
5702
 
5703
5703
  const formats = Object.fromEntries(SUPPORTED_FORMATS.map((f) => [f, createFormat(f)]));
5704
5704
 
5705
- const isValidTimestamp = (val) => !Number.isNaN(Number(val));
5705
+ const isValidEpoch = (val) => !Number.isNaN(Number(val));
5706
5706
 
5707
5707
  const isNumber = (val) => !!String(val || '').trim() && !Number.isNaN(Number(val));
5708
5708
 
5709
- const getTimestampParts = (timestamp) => {
5710
- const date = newDate(timestamp);
5709
+ const getPartsFromEpoch = (epoch) => {
5710
+ const date = newDate(epoch);
5711
5711
  const year = date.getFullYear();
5712
5712
  const month = date.getMonth() + 1;
5713
5713
  const day = date.getDate();
5714
5714
  return [year, month, day];
5715
5715
  };
5716
5716
 
5717
- const formatTimestamp = (timestamp, format) => {
5718
- const [year, month, day] = getTimestampParts(timestamp);
5717
+ const formatEpoch = (epoch, format) => {
5718
+ const [year, month, day] = getPartsFromEpoch(epoch);
5719
5719
 
5720
5720
  const parts = {
5721
5721
  DD: String(day).padStart(2, '0'),
@@ -5738,8 +5738,8 @@ const newDate = (date) => {
5738
5738
  };
5739
5739
 
5740
5740
  const getCurrentTime = () => newDate().getTime();
5741
- const getFullYear = (timestamp) => newDate(timestamp).getFullYear().toString();
5742
- const getMonth = (timestamp) => (newDate(timestamp).getMonth() + 1).toString();
5741
+ const getFullYear = (epoch) => newDate(epoch).getFullYear().toString();
5742
+ const getMonth = (epoch) => (newDate(epoch).getMonth() + 1).toString();
5743
5743
  const getCurrentDay = () => newDate().getDate();
5744
5744
 
5745
5745
  // Vaadin uses "constructed stylesheet" to hide the host in dialog components.
@@ -5757,6 +5757,13 @@ const parseDateString = (val, format) => {
5757
5757
  return formats[format].getDate(trimmed);
5758
5758
  };
5759
5759
 
5760
+ const dateToEpoch = (date, isUtc) => {
5761
+ if (isUtc) {
5762
+ return new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())).getTime();
5763
+ }
5764
+ return date.getTime();
5765
+ };
5766
+
5760
5767
  const calendarIcon = `
5761
5768
  <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
5762
5769
  <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"/>
@@ -5862,9 +5869,9 @@ const getMonthsOptions = (customMonths = months) =>
5862
5869
  .map((item, index) => comboBoxItemTpl({ label: item, dataId: index + 1, dataName: item }))
5863
5870
  .join('');
5864
5871
 
5865
- const isViewVisible = (selectionTimestamp, previewTimestamp) => {
5866
- const [previewYear, previewMonth] = getTimestampParts(previewTimestamp);
5867
- const [selectedYear, selectedMonth] = getTimestampParts(selectionTimestamp);
5872
+ const isViewVisible = (selectionEpoch, previewEpoch) => {
5873
+ const [previewYear, previewMonth] = getPartsFromEpoch(previewEpoch);
5874
+ const [selectedYear, selectedMonth] = getPartsFromEpoch(selectionEpoch);
5868
5875
  return selectedYear === previewYear && selectedMonth === previewMonth;
5869
5876
  };
5870
5877
 
@@ -5915,8 +5922,8 @@ const ensureWeekdayNamesArr = (attrVal) => {
5915
5922
 
5916
5923
  const truncateWeekdays = (arr) => arr.map((d) => d.substring(0, 3));
5917
5924
 
5918
- const prevMonth = (timestamp) => {
5919
- const date = newDate(timestamp);
5925
+ const prevMonth = (epoch) => {
5926
+ const date = newDate(epoch);
5920
5927
  const month = date.getMonth();
5921
5928
 
5922
5929
  if (month === 0) {
@@ -5930,8 +5937,8 @@ const prevMonth = (timestamp) => {
5930
5937
  return date;
5931
5938
  };
5932
5939
 
5933
- const nextMonth = (timestamp) => {
5934
- const date = newDate(timestamp);
5940
+ const nextMonth = (epoch) => {
5941
+ const date = newDate(epoch);
5935
5942
  const month = date.getMonth();
5936
5943
 
5937
5944
  if (month === 11) {
@@ -5969,11 +5976,11 @@ class RawCalendar extends BaseInputClass$c {
5969
5976
  return [].concat(BaseInputClass$c.observedAttributes || [], observedAttrs$5, calendarUiAttrs);
5970
5977
  }
5971
5978
 
5972
- // preview state timestamp
5979
+ // preview state epoch
5973
5980
  preview;
5974
5981
 
5975
- // value timestamp
5976
- timestamp;
5982
+ // value epoch
5983
+ epoch;
5977
5984
 
5978
5985
  constructor() {
5979
5986
  super();
@@ -6059,23 +6066,23 @@ class RawCalendar extends BaseInputClass$c {
6059
6066
  set value(val) {
6060
6067
  if (!val) return;
6061
6068
 
6062
- const timestamp = newDate(val).getTime();
6069
+ const epoch = newDate(val).getTime();
6063
6070
 
6064
- if (!isValidTimestamp(timestamp) || timestamp === this.timestmap) {
6071
+ if (!isValidEpoch(epoch) || epoch === this.epoch) {
6065
6072
  return;
6066
6073
  }
6067
6074
 
6068
- this.timestamp = timestamp;
6075
+ this.epoch = epoch;
6069
6076
 
6070
6077
  this.renderCalendar();
6071
6078
  }
6072
6079
 
6073
6080
  get value() {
6074
- return this.timestamp ? formatTimestamp(this.timestamp, NATIVE_FORMAT) : '';
6081
+ return this.epoch ? formatEpoch(this.epoch, NATIVE_FORMAT) : '';
6075
6082
  }
6076
6083
 
6077
6084
  get isSelectedView() {
6078
- return isViewVisible(this.preview, this.timestamp);
6085
+ return isViewVisible(this.preview, this.epoch);
6079
6086
  }
6080
6087
 
6081
6088
  get isTodayView() {
@@ -6192,14 +6199,14 @@ class RawCalendar extends BaseInputClass$c {
6192
6199
  clearSelectedDay() {
6193
6200
  this.getSelectedDayEle()?.removeAttribute('data-selected');
6194
6201
  this.submitButton.setAttribute('disabled', 'true');
6195
- this.timestamp = '';
6202
+ this.epoch = '';
6196
6203
  }
6197
6204
 
6198
6205
  updateInputs() {
6199
6206
  if (this.yearInput && this.monthInput) {
6200
- const timestamp = this.preview || getCurrentTime();
6201
- const year = getFullYear(timestamp);
6202
- const month = getMonth(timestamp);
6207
+ const epoch = this.preview || getCurrentTime();
6208
+ const year = getFullYear(epoch);
6209
+ const month = getMonth(epoch);
6203
6210
  this.monthInput.value = month;
6204
6211
  // For the yearInput we update the base element directly to properly trigger the change event
6205
6212
  // since this can be a custom value
@@ -6211,9 +6218,9 @@ class RawCalendar extends BaseInputClass$c {
6211
6218
 
6212
6219
  renderCalendar() {
6213
6220
  const date = newDate(this.preview || getCurrentTime());
6214
- const timestamp = date.getTime();
6221
+ const epoch = date.getTime();
6215
6222
 
6216
- const [year, month] = getTimestampParts(timestamp);
6223
+ const [year, month] = getPartsFromEpoch(epoch);
6217
6224
 
6218
6225
  if (this.calendar) {
6219
6226
  this.calendar.innerHTML = createMonthView(year, month, truncateWeekdays(this.weekdayNames));
@@ -6232,7 +6239,7 @@ class RawCalendar extends BaseInputClass$c {
6232
6239
  if (this.isDisabled) return;
6233
6240
  const date = newDate(this.preview);
6234
6241
  date.setDate(Number(e.target.getAttribute('data-date-day')));
6235
- this.value = formatTimestamp(date.getTime(), NATIVE_FORMAT);
6242
+ this.value = formatEpoch(date.getTime(), NATIVE_FORMAT);
6236
6243
  this.dispatchEvent(new CustomEvent('day-changed', { detail: date }));
6237
6244
  }
6238
6245
 
@@ -6263,7 +6270,7 @@ class RawCalendar extends BaseInputClass$c {
6263
6270
  }
6264
6271
 
6265
6272
  getSelectedDayEle() {
6266
- const day = newDate(this.timestamp).getDate();
6273
+ const day = newDate(this.epoch).getDate();
6267
6274
  return this.calendar?.querySelector(`[data-date-day="${day}"]`);
6268
6275
  }
6269
6276
 
@@ -6288,8 +6295,8 @@ class RawCalendar extends BaseInputClass$c {
6288
6295
  if (this.isTodayView) {
6289
6296
  const ele = this.getCurrentDayEle();
6290
6297
  const title = this.getAttribute('calendar-label-today') || CALENDAR_LABEL_TODAY;
6291
- ele.setAttribute('data-current-day', 'true');
6292
- ele.setAttribute('title', title);
6298
+ ele?.setAttribute('data-current-day', 'true');
6299
+ ele?.setAttribute('title', title);
6293
6300
  }
6294
6301
  }
6295
6302
 
@@ -6312,7 +6319,7 @@ class RawCalendar extends BaseInputClass$c {
6312
6319
  }
6313
6320
 
6314
6321
  clearValue() {
6315
- this.timestamp = '';
6322
+ this.epoch = '';
6316
6323
  this.value = '';
6317
6324
  this.removeAttribute('preview');
6318
6325
  this.submitButton.setAttribute('disabled', 'true');
@@ -6325,11 +6332,11 @@ class RawCalendar extends BaseInputClass$c {
6325
6332
  }
6326
6333
 
6327
6334
  const date = newDate(newValue);
6328
- const timestamp = date.getTime();
6335
+ const epoch = date.getTime();
6329
6336
 
6330
- if (isValidTimestamp(timestamp)) {
6331
- this.timestamp = timestamp;
6332
- this.preview = timestamp;
6337
+ if (isValidEpoch(epoch)) {
6338
+ this.epoch = epoch;
6339
+ this.preview = epoch;
6333
6340
  } else {
6334
6341
  this.clearValue();
6335
6342
  }
@@ -6991,12 +6998,19 @@ const componentName$16 = getComponentName$1('date-field');
6991
6998
  const BASE_SELECTOR = 'vaadin-popover';
6992
6999
  const BaseInputClass$b = createBaseInputClass$1({ componentName: componentName$16, baseSelector: BASE_SELECTOR });
6993
7000
 
6994
- const dateFieldAttrs = ['format', 'opened', 'initial-value', 'readonly', 'disable-calendar'];
7001
+ const dateFieldAttrs = [
7002
+ 'format',
7003
+ 'opened',
7004
+ 'initial-value',
7005
+ 'readonly',
7006
+ 'disable-calendar',
7007
+ 'utc-time',
7008
+ ];
6995
7009
  const calendarAttrs = ['years-range', 'calendar-months', 'calendar-weekdays'];
6996
7010
  const observedAttrs$3 = [...dateFieldAttrs, ...calendarAttrs];
6997
7011
 
6998
7012
  class RawDateFieldClass extends BaseInputClass$b {
6999
- timestamp = '';
7013
+ epoch = '';
7000
7014
 
7001
7015
  format = DEFAULT_FORMAT;
7002
7016
 
@@ -7008,10 +7022,10 @@ class RawDateFieldClass extends BaseInputClass$b {
7008
7022
 
7009
7023
  updateValue() {
7010
7024
  if (this.isCountersOutOfRange) {
7011
- this.updateTimestamp('');
7025
+ this.updateEpoch('');
7012
7026
  } else {
7013
7027
  const date = formats[this.format].getDate(this.inputElement.value);
7014
- this.updateTimestamp(date.getTime());
7028
+ this.updateEpoch(dateToEpoch(date, this.isUtcTime));
7015
7029
  }
7016
7030
  }
7017
7031
 
@@ -7022,11 +7036,11 @@ class RawDateFieldClass extends BaseInputClass$b {
7022
7036
  this.#dispatchInput();
7023
7037
  };
7024
7038
 
7025
- updateTimestamp(epochOrDate) {
7039
+ updateEpoch(epochOrDate) {
7026
7040
  if (!epochOrDate) {
7027
- this.timestamp = '';
7041
+ this.epoch = '';
7028
7042
  } else {
7029
- this.timestamp = newDate(epochOrDate).getTime();
7043
+ this.epoch = dateToEpoch(newDate(epochOrDate), this.isUtcTime);
7030
7044
  }
7031
7045
  }
7032
7046
 
@@ -7099,11 +7113,11 @@ class RawDateFieldClass extends BaseInputClass$b {
7099
7113
  return this.getAttribute('opened') === 'true';
7100
7114
  }
7101
7115
 
7102
- // returns the input's value as a timestamp
7116
+ // returns the input's value as a epoch
7103
7117
  get displayValueEpoch() {
7104
7118
  const date = formats[this.format].getDate(this.inputElement.value);
7105
7119
 
7106
- if (!isValidTimestamp(date?.getTime())) {
7120
+ if (!isValidEpoch(date?.getTime())) {
7107
7121
  return null;
7108
7122
  }
7109
7123
 
@@ -7151,15 +7165,15 @@ class RawDateFieldClass extends BaseInputClass$b {
7151
7165
  if (this.isInvalidDate()) {
7152
7166
  return '';
7153
7167
  }
7154
- return this.timestamp;
7168
+ return this.epoch;
7155
7169
  }
7156
7170
 
7157
7171
  set value(val) {
7158
7172
  if (val) {
7159
- this.updateTimestamp(val);
7173
+ this.updateEpoch(val);
7160
7174
  this.updateDateCounters(newDate(val));
7161
7175
  } else {
7162
- this.updateTimestamp('');
7176
+ this.updateEpoch('');
7163
7177
  }
7164
7178
  }
7165
7179
 
@@ -7175,6 +7189,10 @@ class RawDateFieldClass extends BaseInputClass$b {
7175
7189
  return this.getAttribute('disable-calendar') === 'true';
7176
7190
  }
7177
7191
 
7192
+ get isUtcTime() {
7193
+ return this.getAttribute('utc-time') === 'true';
7194
+ }
7195
+
7178
7196
  get isSelectAll() {
7179
7197
  const inputEle = this.inputElement.baseElement.inputElement;
7180
7198
  return inputEle.value.length === inputEle.selectionStart + inputEle.selectionEnd;
@@ -7189,7 +7207,7 @@ class RawDateFieldClass extends BaseInputClass$b {
7189
7207
  }
7190
7208
 
7191
7209
  updateInputDisplay() {
7192
- this.inputElement.value = formatTimestamp(newDate(this.countersValue).getTime(), this.format);
7210
+ this.inputElement.value = formatEpoch(newDate(this.countersValue).getTime(), this.format);
7193
7211
  }
7194
7212
 
7195
7213
  init() {
@@ -7380,7 +7398,7 @@ class RawDateFieldClass extends BaseInputClass$b {
7380
7398
 
7381
7399
  const calendarDate = newDate(this.calendar.value);
7382
7400
 
7383
- this.value = calendarDate.getTime();
7401
+ this.value = dateToEpoch(calendarDate, this.isUtcTime);
7384
7402
 
7385
7403
  this.getCounterById('year').replaceValue(calendarDate.getFullYear());
7386
7404
  this.getCounterById('month').replaceValue(calendarDate.getMonth() + 1);
@@ -7394,17 +7412,17 @@ class RawDateFieldClass extends BaseInputClass$b {
7394
7412
 
7395
7413
  updateCalendarView() {
7396
7414
  const validInputVal =
7397
- isValidTimestamp(newDate(this.inputElement.value || '').getTime()) &&
7415
+ isValidEpoch(newDate(this.inputElement.value || '').getTime()) &&
7398
7416
  formats[this.format].validate(this.inputElement.value);
7399
7417
 
7400
7418
  if (this.displayValueEpoch || validInputVal) {
7401
7419
  this.calendar.setAttribute(
7402
7420
  'initial-value',
7403
- formatTimestamp(this.displayValueEpoch || this.timestamp, NATIVE_FORMAT)
7421
+ formatEpoch(this.displayValueEpoch || this.epoch, NATIVE_FORMAT)
7404
7422
  );
7405
7423
  } else {
7406
7424
  this.calendar.clearValue();
7407
- this.calendar.setAttribute('preview', formatTimestamp(getCurrentTime(), NATIVE_FORMAT));
7425
+ this.calendar.setAttribute('preview', formatEpoch(getCurrentTime(), NATIVE_FORMAT));
7408
7426
  }
7409
7427
 
7410
7428
  forwardAttrs$1(this, this.calendar, {
@@ -7553,13 +7571,13 @@ class RawDateFieldClass extends BaseInputClass$b {
7553
7571
  this.dateCounters.forEach((dc) => {
7554
7572
  switch (dc.id) {
7555
7573
  case counterConfig.MONTH.id:
7556
- dc.set(date.getMonth() + 1);
7574
+ dc.set(this.isUtcTime ? date.getUTCMonth() + 1 : date.getMonth() + 1);
7557
7575
  break;
7558
7576
  case counterConfig.YEAR.id:
7559
- dc.set(date.getFullYear());
7577
+ dc.set(this.isUtcTime ? date.getUTCFullYear() : date.getFullYear());
7560
7578
  break;
7561
7579
  case counterConfig.DAY.id:
7562
- dc.set(date.getDate());
7580
+ dc.set(this.isUtcTime ? date.getUTCDate() : date.getDate());
7563
7581
  break;
7564
7582
  }
7565
7583
  });
@@ -7720,12 +7738,22 @@ class RawDateFieldClass extends BaseInputClass$b {
7720
7738
  year: '',
7721
7739
  };
7722
7740
 
7741
+ if (!this.epoch) {
7742
+ return ret;
7743
+ }
7744
+
7723
7745
  try {
7724
- const date = newDate(this.timestamp);
7746
+ const date = newDate(this.epoch);
7725
7747
 
7726
- ret.month = date.getMonth() + 1;
7727
- ret.day = date.getDate();
7728
- ret.year = date.getFullYear();
7748
+ if (this.isUtcTime) {
7749
+ ret.month = date.getUTCMonth() + 1;
7750
+ ret.day = date.getUTCDate();
7751
+ ret.year = date.getUTCFullYear();
7752
+ } else {
7753
+ ret.month = date.getMonth() + 1;
7754
+ ret.day = date.getDate();
7755
+ ret.year = date.getFullYear();
7756
+ }
7729
7757
  } catch (e) {}
7730
7758
 
7731
7759
  return ret;
@@ -7769,7 +7797,7 @@ class RawDateFieldClass extends BaseInputClass$b {
7769
7797
  const validDate = parseDateString(pastedData, this.format);
7770
7798
 
7771
7799
  if (validDate) {
7772
- this.value = validDate.getTime();
7800
+ this.value = dateToEpoch(validDate, this.isUtcTime);
7773
7801
  this.onDateCounterChange();
7774
7802
 
7775
7803
  // select all
@@ -24760,7 +24788,6 @@ const outboundApps = {
24760
24788
  [vars$1.iconColor]: globals.colors.primary.main,
24761
24789
  [vars$1.errorIconColor]: globals.colors.error.main,
24762
24790
 
24763
- [vars$1.appLogoBackgroundColor]: 'none',
24764
24791
  [vars$1.appLogoGap]: globals.spacing.md,
24765
24792
  [vars$1.contentGap]: globals.spacing.xs,
24766
24793