@nylas/web-elements 2.3.1-canary-20260108155609 → 2.3.1

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.
Files changed (66) hide show
  1. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +228 -228
  2. package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +4069 -4071
  3. package/dist/cjs/google-logo-icon.microsoft-logo-icon.nylas-editor-tabs.nylas-editor-tabs-group.nylas-list-configurations.nylas-select-event-type.entry.cjs.js.map +1 -1
  4. package/dist/cjs/google-logo-icon_6.cjs.entry.js +7 -7
  5. package/dist/cjs/google-logo-icon_6.cjs.entry.js.map +1 -1
  6. package/dist/cjs/nylas-booked-event-card_11.cjs.entry.js +10 -2
  7. package/dist/cjs/nylas-booked-event-card_11.cjs.entry.js.map +1 -1
  8. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +1 -1
  9. package/dist/cjs/nylas-scheduling.cjs.entry.js +3 -16
  10. package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
  11. package/dist/cjs/nylas-scheduling.entry.cjs.js.map +1 -1
  12. package/dist/cjs/{version-7tiQyQzm.js → version-TA6fPT8q.js} +3 -3
  13. package/dist/{esm/version-CJAr1BgW.js.map → cjs/version-TA6fPT8q.js.map} +1 -1
  14. package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js +10 -2
  15. package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js.map +1 -1
  16. package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js +6 -6
  17. package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js.map +1 -1
  18. package/dist/collection/connector/shared/api/scheduler.js +2 -18
  19. package/dist/collection/connector/shared/api/scheduler.js.map +1 -1
  20. package/dist/collection/version.js +1 -1
  21. package/dist/collection/version.js.map +1 -1
  22. package/dist/components/nylas-date-picker.js +1 -1
  23. package/dist/components/nylas-editor-tabs-group.js +1 -1
  24. package/dist/components/nylas-editor-tabs.js +1 -1
  25. package/dist/components/nylas-scheduler-editor.js +3 -3
  26. package/dist/components/nylas-scheduling.js +5 -18
  27. package/dist/components/nylas-scheduling.js.map +1 -1
  28. package/dist/components/{p-jdTk8JQH.js → p-BOnzTQbE.js} +3 -3
  29. package/dist/components/{p-jdTk8JQH.js.map → p-BOnzTQbE.js.map} +1 -1
  30. package/dist/components/{p-B_1k1rpl.js → p-BtSPSFdA.js} +3 -3
  31. package/dist/components/{p-B_1k1rpl.js.map → p-BtSPSFdA.js.map} +1 -1
  32. package/dist/components/{p-CfFKgyg4.js → p-CMouzL9_.js} +9 -9
  33. package/dist/components/{p-CfFKgyg4.js.map → p-CMouzL9_.js.map} +1 -1
  34. package/dist/components/{p-CrkAtQ72.js → p-D9LfvAE5.js} +12 -4
  35. package/dist/components/p-D9LfvAE5.js.map +1 -0
  36. package/dist/esm/google-logo-icon.microsoft-logo-icon.nylas-editor-tabs.nylas-editor-tabs-group.nylas-list-configurations.nylas-select-event-type.entry.js.map +1 -1
  37. package/dist/esm/google-logo-icon_6.entry.js +7 -7
  38. package/dist/esm/google-logo-icon_6.entry.js.map +1 -1
  39. package/dist/esm/nylas-booked-event-card_11.entry.js +10 -2
  40. package/dist/esm/nylas-booked-event-card_11.entry.js.map +1 -1
  41. package/dist/esm/nylas-scheduler-editor.entry.js +1 -1
  42. package/dist/esm/nylas-scheduling.entry.js +4 -17
  43. package/dist/esm/nylas-scheduling.entry.js.map +1 -1
  44. package/dist/esm/{version-CJAr1BgW.js → version-CIhCCVPS.js} +3 -3
  45. package/dist/{cjs/version-7tiQyQzm.js.map → esm/version-CIhCCVPS.js.map} +1 -1
  46. package/dist/nylas-web-elements/google-logo-icon.microsoft-logo-icon.nylas-editor-tabs.nylas-editor-tabs-group.nylas-list-configurations.nylas-select-event-type.entry.esm.js.map +1 -1
  47. package/dist/nylas-web-elements/nylas-scheduling.entry.esm.js.map +1 -1
  48. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  49. package/dist/nylas-web-elements/{p-a80bea66.entry.js → p-10b9c8eb.entry.js} +2 -2
  50. package/dist/nylas-web-elements/p-197e9602.entry.js +2 -0
  51. package/dist/nylas-web-elements/p-197e9602.entry.js.map +1 -0
  52. package/dist/nylas-web-elements/{p-9a4d5f1b.entry.js → p-6ed560fe.entry.js} +2 -2
  53. package/dist/nylas-web-elements/{p-9a4d5f1b.entry.js.map → p-6ed560fe.entry.js.map} +1 -1
  54. package/dist/nylas-web-elements/p-CIhCCVPS.js +2 -0
  55. package/dist/nylas-web-elements/{p-CJAr1BgW.js.map → p-CIhCCVPS.js.map} +1 -1
  56. package/dist/nylas-web-elements/{p-544c4297.entry.js → p-ab80b127.entry.js} +2 -2
  57. package/dist/nylas-web-elements/p-ab80b127.entry.js.map +1 -0
  58. package/dist/types/connector/shared/api/scheduler.d.ts +1 -1
  59. package/dist/types/version.d.ts +1 -1
  60. package/package.json +1 -1
  61. package/dist/components/p-CrkAtQ72.js.map +0 -1
  62. package/dist/nylas-web-elements/p-544c4297.entry.js.map +0 -1
  63. package/dist/nylas-web-elements/p-CJAr1BgW.js +0 -2
  64. package/dist/nylas-web-elements/p-c3b1d596.entry.js +0 -2
  65. package/dist/nylas-web-elements/p-c3b1d596.entry.js.map +0 -1
  66. /package/dist/nylas-web-elements/{p-a80bea66.entry.js.map → p-10b9c8eb.entry.js.map} +0 -0
@@ -1172,7 +1172,15 @@ const NylasDatePicker = class {
1172
1172
  return timeDay.range(timeDay.offset(firstDayOfMonth, -firstDayOfMonth.getDay()), timeDay.offset(lastDayOfMonth, 7 - lastDayOfMonth.getDay()));
1173
1173
  }
1174
1174
  selectDate(date) {
1175
- this.dateSelected.emit(date);
1175
+ if (!date) {
1176
+ this.dateSelected.emit(date);
1177
+ return;
1178
+ }
1179
+ const year = date.getFullYear();
1180
+ const month = date.getMonth();
1181
+ const day = date.getDate();
1182
+ const dateInSelectedTimezone = dayjs.tz(`${year}-${String(month + 1).padStart(2, '0')}-${String(day).padStart(2, '0')} 12:00`, this.selectedTimezone);
1183
+ this.dateSelected.emit(dateInSelectedTimezone.toDate());
1176
1184
  }
1177
1185
  changeMonth(change) {
1178
1186
  this.month = new Date(this.month.getFullYear(), this.month.getMonth() + change, 1);
@@ -1200,7 +1208,7 @@ const NylasDatePicker = class {
1200
1208
  });
1201
1209
  }
1202
1210
  render() {
1203
- return (h(Host, { key: '5493af2282e59c16746b7b5df6bede1235b59e4d', part: "ndp" }, h("div", { key: '131976f7ee43aad2d95371f6f36f49f72cdd5335', class: "nylas-date-picker" }, h("div", { key: '412ed26cf46371736e30ac76ed4c10839463386b', class: "title", part: "ndp__title" }, this.configSettings?.name ? (h("h1", null, this.configSettings?.name)) : (this.configSettings?.organizer?.name && (h("h1", null, h("person-icon", null), this.configSettings?.organizer?.name || 'Organizer'))), h("p", { key: '404e7511678943f7aede2753cc6a5054b463d84b' }, h("clock-icon", { key: 'a79867b0ad09a6b35efa3fd7933fd9f90819ac70' }), this.eventDuration ? convertMinutesToHoursAndMinutes(this.eventDuration) : `- ${instance.t('time.minutes')}`)), h("div", { key: '0ee66b1e78acbe7a9f83699693b764106a59c4d0', class: 'header flex-row' }, h("h2", { key: '35017dcbb74570c40b2f0ed42f5b868a82475b7f', part: 'ndp__month-header' }, h("strong", { key: '8ab583e7beedda3f2d03c7c48d70ce365340b51e' }, translateMonth(this.month.toLocaleDateString('en-US', { month: 'long' }).toLowerCase())), "\u00A0", this.month.toLocaleDateString(undefined, { year: 'numeric' })), h("div", { key: '9b48e534175f378483816f434a8b38fe89752ee8', class: 'pagination' }, h("button", { key: 'f334f73bdde2692966b05b879ad2e8e785514673', title: "Previous month", onClick: () => this.changeMonth(-1), class: { 'chevron-left': true, 'button': true }, disabled: this.month <= new Date(), part: "ndp__month-button" }, h("chevron-icon", { key: 'c2bc0548fe42c1d70f93a3fa616492feb07c1786' })), h("button", { key: '106776b099c01919f760fad2ee38813c8000e78b', title: "Next month", onClick: () => this.changeMonth(1), class: { 'chevron-right': true, 'button': true }, disabled: this.disableNextMonthButton, part: "ndp__month-button" }, h("chevron-icon", { key: 'ec9cfd5b0525b782913cdf5e34a5cb3fa56fef0f' })))), h("div", { key: '5413b3d2b88e1764868b2bfd7165fb1791d705db', class: 'dates' }, [
1211
+ return (h(Host, { key: '6fe0131e53169edbb33d4181bca86faf66062842', part: "ndp" }, h("div", { key: 'aff6d815dcfa418a60a08f5a55fdbe3224996729', class: "nylas-date-picker" }, h("div", { key: '15a64ed69236a904fc4ee965680466a85bbe6c4e', class: "title", part: "ndp__title" }, this.configSettings?.name ? (h("h1", null, this.configSettings?.name)) : (this.configSettings?.organizer?.name && (h("h1", null, h("person-icon", null), this.configSettings?.organizer?.name || 'Organizer'))), h("p", { key: '5a9692a1535f4103b4b06107e2d80ca0ffb964da' }, h("clock-icon", { key: 'c5065ce5474422bd3aa8091ef4ab4e90d703fa82' }), this.eventDuration ? convertMinutesToHoursAndMinutes(this.eventDuration) : `- ${instance.t('time.minutes')}`)), h("div", { key: '72d7263de5e11341b131aedebb955467653ec263', class: 'header flex-row' }, h("h2", { key: '064ff2e251c14ab989dce98f2a99ab4d1e69c17a', part: 'ndp__month-header' }, h("strong", { key: '7561ab851be1ed699f56c85672cfca7b976ae159' }, translateMonth(this.month.toLocaleDateString('en-US', { month: 'long' }).toLowerCase())), "\u00A0", this.month.toLocaleDateString(undefined, { year: 'numeric' })), h("div", { key: 'a6683748b031a60a5f451f9698e8c264a9ed7f5f', class: 'pagination' }, h("button", { key: '2add26a5b2a648968c868e73f08e2c7cae0b74dd', title: "Previous month", onClick: () => this.changeMonth(-1), class: { 'chevron-left': true, 'button': true }, disabled: this.month <= new Date(), part: "ndp__month-button" }, h("chevron-icon", { key: '4e0bd46d2e3ba3f05636072468f68662d6dfc0b7' })), h("button", { key: '9966fd865b9ccb002b8995c43503808a70364047', title: "Next month", onClick: () => this.changeMonth(1), class: { 'chevron-right': true, 'button': true }, disabled: this.disableNextMonthButton, part: "ndp__month-button" }, h("chevron-icon", { key: '47846202155d56f19e9a0dab23789335a546342e' })))), h("div", { key: '35eda68be8f2f757e498426e5070144452e18c0a', class: 'dates' }, [
1204
1212
  instance.t('days.sunday'),
1205
1213
  instance.t('days.monday'),
1206
1214
  instance.t('days.tuesday'),