@nylas/web-elements 1.1.0-canary.17 → 1.1.0-canary.18

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 (599) hide show
  1. package/dist/cjs/add-circle-icon.cjs.entry.js +1 -1
  2. package/dist/cjs/add-circle-icon_2.cjs.entry.js +2 -2
  3. package/dist/cjs/archive-icon.cjs.entry.js +1 -1
  4. package/dist/cjs/archive-icon_7.cjs.entry.js +7 -7
  5. package/dist/cjs/arrow-icon.cjs.entry.js +1 -1
  6. package/dist/cjs/bold-icon.cjs.entry.js +1 -1
  7. package/dist/cjs/bold-icon_3.cjs.entry.js +3 -3
  8. package/dist/cjs/button-component.cjs.entry.js +1 -1
  9. package/dist/cjs/calendar-cancel-icon.cjs.entry.js +1 -1
  10. package/dist/cjs/calendar-check-icon.cjs.entry.js +1 -1
  11. package/dist/cjs/calendar-check-icon_2.cjs.entry.js +2 -2
  12. package/dist/cjs/calendar-icon.cjs.entry.js +1 -1
  13. package/dist/cjs/calendar-info-icon.cjs.entry.js +1 -1
  14. package/dist/cjs/calendar-info-icon_28.cjs.entry.js +31 -31
  15. package/dist/cjs/calendar-patterns-icon.cjs.entry.js +1 -1
  16. package/dist/cjs/checkbox-component.cjs.entry.js +1 -1
  17. package/dist/cjs/checkmark-circle-icon.cjs.entry.js +1 -1
  18. package/dist/cjs/chevron-icon.cjs.entry.js +1 -1
  19. package/dist/cjs/chevron-icon_3.cjs.entry.js +5 -5
  20. package/dist/cjs/chevron-icon_3.cjs.entry.js.map +1 -1
  21. package/dist/cjs/clock-icon.cjs.entry.js +1 -1
  22. package/dist/cjs/clock-icon_2.cjs.entry.js +2 -2
  23. package/dist/cjs/close-icon.cjs.entry.js +1 -1
  24. package/dist/cjs/document-refresh-icon.cjs.entry.js +1 -1
  25. package/dist/cjs/flow-icon.cjs.entry.js +1 -1
  26. package/dist/cjs/folder-icon.cjs.entry.js +1 -1
  27. package/dist/cjs/forward-icon.cjs.entry.js +1 -1
  28. package/dist/cjs/forward-icon_6.cjs.entry.js +7 -7
  29. package/dist/cjs/globe-icon.cjs.entry.js +1 -1
  30. package/dist/cjs/google-logo-icon.cjs.entry.js +1 -1
  31. package/dist/cjs/google-logo-icon_4.cjs.entry.js +25 -8
  32. package/dist/cjs/google-logo-icon_4.cjs.entry.js.map +1 -1
  33. package/dist/cjs/inbox-icon.cjs.entry.js +1 -1
  34. package/dist/cjs/info-icon.cjs.entry.js +1 -1
  35. package/dist/cjs/info-icon_2.cjs.entry.js +2 -2
  36. package/dist/cjs/input-component.cjs.entry.js +1 -1
  37. package/dist/cjs/input-dropdown.cjs.entry.js +1 -1
  38. package/dist/cjs/input-dropdown_2.cjs.entry.js +2 -2
  39. package/dist/cjs/italic-icon.cjs.entry.js +1 -1
  40. package/dist/cjs/loading-icon.cjs.entry.js +1 -1
  41. package/dist/cjs/location-icon.cjs.entry.js +1 -1
  42. package/dist/cjs/location-off-icon.cjs.entry.js +1 -1
  43. package/dist/cjs/microsoft-logo-icon.cjs.entry.js +1 -1
  44. package/dist/cjs/multi-select-dropdown.cjs.entry.js +2 -2
  45. package/dist/cjs/nylas-additional-participants.cjs.entry.js +2 -2
  46. package/dist/cjs/nylas-availability-picker.cjs.entry.js +1 -1
  47. package/dist/cjs/nylas-booked-event-card_10.cjs.entry.js +11 -11
  48. package/dist/cjs/nylas-booked-event-card_10.cjs.entry.js.map +1 -1
  49. package/dist/cjs/nylas-booking-form.cjs.entry.js +2 -2
  50. package/dist/cjs/nylas-cancel-booking-form.cjs.entry.js +1 -1
  51. package/dist/cjs/nylas-cancellation-policy.cjs.entry.js +1 -1
  52. package/dist/cjs/nylas-cancelled-event-card.cjs.entry.js +1 -1
  53. package/dist/cjs/nylas-composer.cjs.entry.js +1 -1
  54. package/dist/cjs/nylas-custom-booking-flow.cjs.entry.js +1 -1
  55. package/dist/cjs/nylas-customize-booking-settings.cjs.entry.js +1 -1
  56. package/dist/cjs/nylas-date-picker.cjs.entry.js +1 -1
  57. package/dist/cjs/nylas-date-picker.cjs.entry.js.map +1 -1
  58. package/dist/cjs/nylas-editor-tabs.cjs.entry.js +23 -6
  59. package/dist/cjs/nylas-editor-tabs.cjs.entry.js.map +1 -1
  60. package/dist/cjs/nylas-event-description.cjs.entry.js +1 -1
  61. package/dist/cjs/nylas-event-duration.cjs.entry.js +1 -1
  62. package/dist/cjs/nylas-event-info.cjs.entry.js +1 -1
  63. package/dist/cjs/nylas-event-limits.cjs.entry.js +1 -1
  64. package/dist/cjs/nylas-event-location.cjs.entry.js +3 -3
  65. package/dist/cjs/nylas-event-title.cjs.entry.js +2 -2
  66. package/dist/cjs/nylas-form-card.cjs.entry.js +1 -1
  67. package/dist/cjs/nylas-if-state.cjs.entry.js +1 -1
  68. package/dist/cjs/nylas-limit-future-bookings.cjs.entry.js +1 -1
  69. package/dist/cjs/nylas-list-folders.cjs.entry.js +1 -1
  70. package/dist/cjs/nylas-list-threads.cjs.entry.js +1 -1
  71. package/dist/cjs/nylas-locale-switch.cjs.entry.js +3 -3
  72. package/dist/cjs/nylas-login.cjs.entry.js +1 -1
  73. package/dist/cjs/nylas-logo.cjs.entry.js +1 -1
  74. package/dist/cjs/nylas-mailbox-toolbar-button.cjs.entry.js +1 -1
  75. package/dist/cjs/nylas-mailbox.cjs.entry.js +1 -1
  76. package/dist/cjs/nylas-min-booking-notice.cjs.entry.js +1 -1
  77. package/dist/cjs/nylas-min-cancellation-notice.cjs.entry.js +1 -1
  78. package/dist/cjs/nylas-notification.cjs.entry.js +1 -1
  79. package/dist/cjs/nylas-participants-custom-availability.cjs.entry.js +1 -1
  80. package/dist/cjs/nylas-provider.cjs.entry.js +1 -1
  81. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +1 -1
  82. package/dist/cjs/nylas-selected-event-card.cjs.entry.js +1 -1
  83. package/dist/cjs/nylas-summarize-message-button.cjs.entry.js +2 -2
  84. package/dist/cjs/nylas-threads-refresh.cjs.entry.js +2 -2
  85. package/dist/cjs/nylas-threads-search.cjs.entry.js +1 -1
  86. package/dist/cjs/nylas-time-window-picker.cjs.entry.js +1 -1
  87. package/dist/cjs/nylas-timeslot-interval.cjs.entry.js +2 -2
  88. package/dist/cjs/nylas-view-email.cjs.entry.js +1 -1
  89. package/dist/cjs/nylas-view-thread.cjs.entry.js +1 -1
  90. package/dist/cjs/people-icon.cjs.entry.js +1 -1
  91. package/dist/cjs/person-icon.cjs.entry.js +1 -1
  92. package/dist/cjs/play-icon.cjs.entry.js +1 -1
  93. package/dist/cjs/play-icon_2.cjs.entry.js +2 -2
  94. package/dist/cjs/radio-button-group.cjs.entry.js +1 -1
  95. package/dist/cjs/refresh-icon.cjs.entry.js +1 -1
  96. package/dist/cjs/reply-all-icon.cjs.entry.js +1 -1
  97. package/dist/cjs/reply-icon.cjs.entry.js +1 -1
  98. package/dist/cjs/search-icon.cjs.entry.js +1 -1
  99. package/dist/cjs/select-dropdown.cjs.entry.js +3 -3
  100. package/dist/cjs/select-dropdown.cjs.entry.js.map +1 -1
  101. package/dist/cjs/sent-icon.cjs.entry.js +1 -1
  102. package/dist/cjs/spam-icon.cjs.entry.js +1 -1
  103. package/dist/cjs/star-icon.cjs.entry.js +1 -1
  104. package/dist/cjs/stop-icon.cjs.entry.js +1 -1
  105. package/dist/cjs/textarea-component.cjs.entry.js +1 -1
  106. package/dist/cjs/time-period-selector.cjs.entry.js +1 -1
  107. package/dist/cjs/toggle-switch.cjs.entry.js +1 -1
  108. package/dist/cjs/tooltip-component.cjs.entry.js +1 -1
  109. package/dist/cjs/translate-icon.cjs.entry.js +1 -1
  110. package/dist/cjs/trash-icon.cjs.entry.js +1 -1
  111. package/dist/cjs/underline-icon.cjs.entry.js +1 -1
  112. package/dist/cjs/warning-icon.cjs.entry.js +1 -1
  113. package/dist/collection/common/icons/add-circle.js +1 -1
  114. package/dist/collection/common/icons/archive.js +1 -1
  115. package/dist/collection/common/icons/arrow.js +1 -1
  116. package/dist/collection/common/icons/bold.js +1 -1
  117. package/dist/collection/common/icons/calendar-cancel.js +1 -1
  118. package/dist/collection/common/icons/calendar-check.js +1 -1
  119. package/dist/collection/common/icons/calendar-info.js +1 -1
  120. package/dist/collection/common/icons/calendar-patterns.js +1 -1
  121. package/dist/collection/common/icons/calendar.js +1 -1
  122. package/dist/collection/common/icons/checkmark-circle.js +1 -1
  123. package/dist/collection/common/icons/chevron.js +1 -1
  124. package/dist/collection/common/icons/clock.js +1 -1
  125. package/dist/collection/common/icons/close.js +1 -1
  126. package/dist/collection/common/icons/document-refresh.js +1 -1
  127. package/dist/collection/common/icons/flow.js +1 -1
  128. package/dist/collection/common/icons/folder.js +1 -1
  129. package/dist/collection/common/icons/forward.js +1 -1
  130. package/dist/collection/common/icons/globe.js +1 -1
  131. package/dist/collection/common/icons/google-logo.js +1 -1
  132. package/dist/collection/common/icons/inbox.js +1 -1
  133. package/dist/collection/common/icons/info.js +1 -1
  134. package/dist/collection/common/icons/italic.js +1 -1
  135. package/dist/collection/common/icons/loading.js +1 -1
  136. package/dist/collection/common/icons/location-off.js +1 -1
  137. package/dist/collection/common/icons/location.js +1 -1
  138. package/dist/collection/common/icons/microsoft-logo.js +1 -1
  139. package/dist/collection/common/icons/nylas-logo.js +1 -1
  140. package/dist/collection/common/icons/people.js +1 -1
  141. package/dist/collection/common/icons/person.js +1 -1
  142. package/dist/collection/common/icons/play.js +1 -1
  143. package/dist/collection/common/icons/refresh.js +1 -1
  144. package/dist/collection/common/icons/reply-all.js +1 -1
  145. package/dist/collection/common/icons/reply.js +1 -1
  146. package/dist/collection/common/icons/search.js +1 -1
  147. package/dist/collection/common/icons/sent.js +1 -1
  148. package/dist/collection/common/icons/spam.js +1 -1
  149. package/dist/collection/common/icons/star.js +1 -1
  150. package/dist/collection/common/icons/stop.js +1 -1
  151. package/dist/collection/common/icons/translate.js +1 -1
  152. package/dist/collection/common/icons/trash.js +1 -1
  153. package/dist/collection/common/icons/underline.js +1 -1
  154. package/dist/collection/common/icons/warning.js +1 -1
  155. package/dist/collection/components/design-system/button-component/button-component.js +1 -1
  156. package/dist/collection/components/design-system/checkbox-component/checkbox-component.js +1 -1
  157. package/dist/collection/components/design-system/input-component/input-component.js +1 -1
  158. package/dist/collection/components/design-system/input-dropdown/input-dropdown.js +1 -1
  159. package/dist/collection/components/design-system/multi-select-dropdown/multi-select-dropdown.js +2 -2
  160. package/dist/collection/components/design-system/radio-button-group/radio-button-group.js +1 -1
  161. package/dist/collection/components/design-system/select-dropdown/select-dropdown.js +3 -3
  162. package/dist/collection/components/design-system/select-dropdown/select-dropdown.js.map +1 -1
  163. package/dist/collection/components/design-system/textarea-component/textarea-component.js +1 -1
  164. package/dist/collection/components/design-system/time-period-selector/time-period-selector.js +1 -1
  165. package/dist/collection/components/design-system/toggle-switch/toggle-switch.js +1 -1
  166. package/dist/collection/components/design-system/tooltip-component/toolitp-component.js +1 -1
  167. package/dist/collection/components/mailbox/nylas-composer/nylas-composer.js +1 -1
  168. package/dist/collection/components/mailbox/nylas-list-folders/nylas-list-folders.js +1 -1
  169. package/dist/collection/components/mailbox/nylas-list-threads/nylas-list-threads.js +1 -1
  170. package/dist/collection/components/mailbox/nylas-mailbox/nylas-mailbox.js +1 -1
  171. package/dist/collection/components/mailbox/nylas-mailbox-toolbar-button/nylas-mailbox-toolbar-button.js +1 -1
  172. package/dist/collection/components/mailbox/nylas-summarize-message-button/nylas-summarize-message-button.js +2 -2
  173. package/dist/collection/components/mailbox/nylas-threads-refresh/nylas-threads-refresh.js +2 -2
  174. package/dist/collection/components/mailbox/nylas-threads-search/nylas-threads-search.js +1 -1
  175. package/dist/collection/components/mailbox/nylas-view-email/nylas-view-email.js +1 -1
  176. package/dist/collection/components/mailbox/nylas-view-thread/nylas-view-thread.js +1 -1
  177. package/dist/collection/components/nylas-if-state/nylas-if-state.js +1 -1
  178. package/dist/collection/components/nylas-login/nylas-login.js +1 -1
  179. package/dist/collection/components/nylas-provider/nylas-provider.js +1 -1
  180. package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js +2 -2
  181. package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js +1 -1
  182. package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js +1 -1
  183. package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js +1 -1
  184. package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js.map +1 -1
  185. package/dist/collection/components/scheduler/nylas-locale-switch/nylas-locale-switch.js +3 -3
  186. package/dist/collection/components/scheduler/nylas-notification/nylas-notification.js +1 -1
  187. package/dist/collection/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.js +1 -1
  188. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js +2 -2
  189. package/dist/collection/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.js +1 -1
  190. package/dist/collection/components/scheduler-editor/nylas-cancellation-policy/nylas-cancellation-policy.js +1 -1
  191. package/dist/collection/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.js +1 -1
  192. package/dist/collection/components/scheduler-editor/nylas-customize-booking-settings/nylas-customize-booking-settings.js +1 -1
  193. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +23 -6
  194. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
  195. package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.js +1 -1
  196. package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js +1 -1
  197. package/dist/collection/components/scheduler-editor/nylas-event-info/nylas-event-info.js +1 -1
  198. package/dist/collection/components/scheduler-editor/nylas-event-limits/nylas-event-limits.js +1 -1
  199. package/dist/collection/components/scheduler-editor/nylas-event-location/nylas-event-location.js +3 -3
  200. package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js +2 -2
  201. package/dist/collection/components/scheduler-editor/nylas-form-card/nylas-form-card.js +1 -1
  202. package/dist/collection/components/scheduler-editor/nylas-limit-future-bookings/nylas-limit-future-bookings.js +1 -1
  203. package/dist/collection/components/scheduler-editor/nylas-min-booking-notice/nylas-min-booking-notice.js +1 -1
  204. package/dist/collection/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.js +1 -1
  205. package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.js +1 -1
  206. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js +1 -1
  207. package/dist/collection/components/scheduler-editor/nylas-time-window-picker/nylas-time-window-picker.js +1 -1
  208. package/dist/collection/components/scheduler-editor/nylas-timeslot-interval/nylas-timeslot-interval.js +2 -2
  209. package/dist/components/add-circle.js +1 -1
  210. package/dist/components/archive.js +1 -1
  211. package/dist/components/arrow.js +1 -1
  212. package/dist/components/bold.js +1 -1
  213. package/dist/components/button-component2.js +1 -1
  214. package/dist/components/calendar-cancel.js +1 -1
  215. package/dist/components/calendar-check.js +1 -1
  216. package/dist/components/calendar-info.js +1 -1
  217. package/dist/components/calendar-patterns.js +1 -1
  218. package/dist/components/calendar.js +1 -1
  219. package/dist/components/checkbox-component2.js +1 -1
  220. package/dist/components/checkmark-circle.js +1 -1
  221. package/dist/components/chevron.js +1 -1
  222. package/dist/components/clock.js +1 -1
  223. package/dist/components/close.js +1 -1
  224. package/dist/components/document-refresh-icon.js +1 -1
  225. package/dist/components/flow.js +1 -1
  226. package/dist/components/folder.js +1 -1
  227. package/dist/components/forward.js +1 -1
  228. package/dist/components/globe.js +1 -1
  229. package/dist/components/google-logo.js +1 -1
  230. package/dist/components/inbox.js +1 -1
  231. package/dist/components/info.js +1 -1
  232. package/dist/components/input-component2.js +1 -1
  233. package/dist/components/input-dropdown2.js +1 -1
  234. package/dist/components/italic.js +1 -1
  235. package/dist/components/loading.js +1 -1
  236. package/dist/components/location-off.js +1 -1
  237. package/dist/components/location.js +1 -1
  238. package/dist/components/microsoft-logo.js +1 -1
  239. package/dist/components/multi-select-dropdown2.js +2 -2
  240. package/dist/components/nylas-additional-participants2.js +2 -2
  241. package/dist/components/nylas-availability-picker2.js +1 -1
  242. package/dist/components/nylas-booking-form2.js +2 -2
  243. package/dist/components/nylas-cancel-booking-form2.js +1 -1
  244. package/dist/components/nylas-cancellation-policy2.js +1 -1
  245. package/dist/components/nylas-cancelled-event-card2.js +1 -1
  246. package/dist/components/nylas-composer2.js +1 -1
  247. package/dist/components/nylas-custom-booking-flow.js +1 -1
  248. package/dist/components/nylas-customize-booking-settings2.js +1 -1
  249. package/dist/components/nylas-date-picker2.js +1 -1
  250. package/dist/components/nylas-date-picker2.js.map +1 -1
  251. package/dist/components/nylas-editor-tabs2.js +23 -6
  252. package/dist/components/nylas-editor-tabs2.js.map +1 -1
  253. package/dist/components/nylas-event-description2.js +1 -1
  254. package/dist/components/nylas-event-duration2.js +1 -1
  255. package/dist/components/nylas-event-info2.js +1 -1
  256. package/dist/components/nylas-event-limits2.js +1 -1
  257. package/dist/components/nylas-event-location2.js +3 -3
  258. package/dist/components/nylas-event-title2.js +2 -2
  259. package/dist/components/nylas-form-card2.js +1 -1
  260. package/dist/components/nylas-if-state.js +1 -1
  261. package/dist/components/nylas-limit-future-bookings2.js +1 -1
  262. package/dist/components/nylas-list-folders.js +1 -1
  263. package/dist/components/nylas-list-threads.js +1 -1
  264. package/dist/components/nylas-locale-switch2.js +3 -3
  265. package/dist/components/nylas-login.js +1 -1
  266. package/dist/components/nylas-logo2.js +1 -1
  267. package/dist/components/nylas-mailbox-toolbar-button.js +1 -1
  268. package/dist/components/nylas-mailbox.js +1 -1
  269. package/dist/components/nylas-min-booking-notice2.js +1 -1
  270. package/dist/components/nylas-min-cancellation-notice2.js +1 -1
  271. package/dist/components/nylas-notification2.js +1 -1
  272. package/dist/components/nylas-participants-custom-availability2.js +1 -1
  273. package/dist/components/nylas-provider.js +1 -1
  274. package/dist/components/nylas-scheduler-editor.js +1 -1
  275. package/dist/components/nylas-selected-event-card2.js +1 -1
  276. package/dist/components/nylas-summarize-message-button2.js +2 -2
  277. package/dist/components/nylas-threads-refresh.js +2 -2
  278. package/dist/components/nylas-threads-search.js +1 -1
  279. package/dist/components/nylas-time-window-picker2.js +1 -1
  280. package/dist/components/nylas-timeslot-interval2.js +2 -2
  281. package/dist/components/nylas-view-email2.js +1 -1
  282. package/dist/components/nylas-view-thread.js +1 -1
  283. package/dist/components/people.js +1 -1
  284. package/dist/components/person.js +1 -1
  285. package/dist/components/play.js +1 -1
  286. package/dist/components/radio-button-group2.js +1 -1
  287. package/dist/components/refresh.js +1 -1
  288. package/dist/components/reply-all.js +1 -1
  289. package/dist/components/reply.js +1 -1
  290. package/dist/components/search.js +1 -1
  291. package/dist/components/select-dropdown2.js +3 -3
  292. package/dist/components/select-dropdown2.js.map +1 -1
  293. package/dist/components/sent.js +1 -1
  294. package/dist/components/spam.js +1 -1
  295. package/dist/components/star.js +1 -1
  296. package/dist/components/stop.js +1 -1
  297. package/dist/components/textarea-component.js +1 -1
  298. package/dist/components/time-period-selector2.js +1 -1
  299. package/dist/components/toggle-switch2.js +1 -1
  300. package/dist/components/toolitp-component.js +1 -1
  301. package/dist/components/translate.js +1 -1
  302. package/dist/components/trash.js +1 -1
  303. package/dist/components/underline.js +1 -1
  304. package/dist/components/warning.js +1 -1
  305. package/dist/esm/add-circle-icon.entry.js +1 -1
  306. package/dist/esm/add-circle-icon_2.entry.js +2 -2
  307. package/dist/esm/archive-icon.entry.js +1 -1
  308. package/dist/esm/archive-icon_7.entry.js +7 -7
  309. package/dist/esm/arrow-icon.entry.js +1 -1
  310. package/dist/esm/bold-icon.entry.js +1 -1
  311. package/dist/esm/bold-icon_3.entry.js +3 -3
  312. package/dist/esm/button-component.entry.js +1 -1
  313. package/dist/esm/calendar-cancel-icon.entry.js +1 -1
  314. package/dist/esm/calendar-check-icon.entry.js +1 -1
  315. package/dist/esm/calendar-check-icon_2.entry.js +2 -2
  316. package/dist/esm/calendar-icon.entry.js +1 -1
  317. package/dist/esm/calendar-info-icon.entry.js +1 -1
  318. package/dist/esm/calendar-info-icon_28.entry.js +31 -31
  319. package/dist/esm/calendar-patterns-icon.entry.js +1 -1
  320. package/dist/esm/checkbox-component.entry.js +1 -1
  321. package/dist/esm/checkmark-circle-icon.entry.js +1 -1
  322. package/dist/esm/chevron-icon.entry.js +1 -1
  323. package/dist/esm/chevron-icon_3.entry.js +5 -5
  324. package/dist/esm/chevron-icon_3.entry.js.map +1 -1
  325. package/dist/esm/clock-icon.entry.js +1 -1
  326. package/dist/esm/clock-icon_2.entry.js +2 -2
  327. package/dist/esm/close-icon.entry.js +1 -1
  328. package/dist/esm/document-refresh-icon.entry.js +1 -1
  329. package/dist/esm/flow-icon.entry.js +1 -1
  330. package/dist/esm/folder-icon.entry.js +1 -1
  331. package/dist/esm/forward-icon.entry.js +1 -1
  332. package/dist/esm/forward-icon_6.entry.js +7 -7
  333. package/dist/esm/globe-icon.entry.js +1 -1
  334. package/dist/esm/google-logo-icon.entry.js +1 -1
  335. package/dist/esm/google-logo-icon_4.entry.js +25 -8
  336. package/dist/esm/google-logo-icon_4.entry.js.map +1 -1
  337. package/dist/esm/inbox-icon.entry.js +1 -1
  338. package/dist/esm/info-icon.entry.js +1 -1
  339. package/dist/esm/info-icon_2.entry.js +2 -2
  340. package/dist/esm/input-component.entry.js +1 -1
  341. package/dist/esm/input-dropdown.entry.js +1 -1
  342. package/dist/esm/input-dropdown_2.entry.js +2 -2
  343. package/dist/esm/italic-icon.entry.js +1 -1
  344. package/dist/esm/loading-icon.entry.js +1 -1
  345. package/dist/esm/location-icon.entry.js +1 -1
  346. package/dist/esm/location-off-icon.entry.js +1 -1
  347. package/dist/esm/microsoft-logo-icon.entry.js +1 -1
  348. package/dist/esm/multi-select-dropdown.entry.js +2 -2
  349. package/dist/esm/nylas-additional-participants.entry.js +2 -2
  350. package/dist/esm/nylas-availability-picker.entry.js +1 -1
  351. package/dist/esm/nylas-booked-event-card_10.entry.js +11 -11
  352. package/dist/esm/nylas-booked-event-card_10.entry.js.map +1 -1
  353. package/dist/esm/nylas-booking-form.entry.js +2 -2
  354. package/dist/esm/nylas-cancel-booking-form.entry.js +1 -1
  355. package/dist/esm/nylas-cancellation-policy.entry.js +1 -1
  356. package/dist/esm/nylas-cancelled-event-card.entry.js +1 -1
  357. package/dist/esm/nylas-composer.entry.js +1 -1
  358. package/dist/esm/nylas-custom-booking-flow.entry.js +1 -1
  359. package/dist/esm/nylas-customize-booking-settings.entry.js +1 -1
  360. package/dist/esm/nylas-date-picker.entry.js +1 -1
  361. package/dist/esm/nylas-date-picker.entry.js.map +1 -1
  362. package/dist/esm/nylas-editor-tabs.entry.js +23 -6
  363. package/dist/esm/nylas-editor-tabs.entry.js.map +1 -1
  364. package/dist/esm/nylas-event-description.entry.js +1 -1
  365. package/dist/esm/nylas-event-duration.entry.js +1 -1
  366. package/dist/esm/nylas-event-info.entry.js +1 -1
  367. package/dist/esm/nylas-event-limits.entry.js +1 -1
  368. package/dist/esm/nylas-event-location.entry.js +3 -3
  369. package/dist/esm/nylas-event-title.entry.js +2 -2
  370. package/dist/esm/nylas-form-card.entry.js +1 -1
  371. package/dist/esm/nylas-if-state.entry.js +1 -1
  372. package/dist/esm/nylas-limit-future-bookings.entry.js +1 -1
  373. package/dist/esm/nylas-list-folders.entry.js +1 -1
  374. package/dist/esm/nylas-list-threads.entry.js +1 -1
  375. package/dist/esm/nylas-locale-switch.entry.js +3 -3
  376. package/dist/esm/nylas-login.entry.js +1 -1
  377. package/dist/esm/nylas-logo.entry.js +1 -1
  378. package/dist/esm/nylas-mailbox-toolbar-button.entry.js +1 -1
  379. package/dist/esm/nylas-mailbox.entry.js +1 -1
  380. package/dist/esm/nylas-min-booking-notice.entry.js +1 -1
  381. package/dist/esm/nylas-min-cancellation-notice.entry.js +1 -1
  382. package/dist/esm/nylas-notification.entry.js +1 -1
  383. package/dist/esm/nylas-participants-custom-availability.entry.js +1 -1
  384. package/dist/esm/nylas-provider.entry.js +1 -1
  385. package/dist/esm/nylas-scheduler-editor.entry.js +1 -1
  386. package/dist/esm/nylas-selected-event-card.entry.js +1 -1
  387. package/dist/esm/nylas-summarize-message-button.entry.js +2 -2
  388. package/dist/esm/nylas-threads-refresh.entry.js +2 -2
  389. package/dist/esm/nylas-threads-search.entry.js +1 -1
  390. package/dist/esm/nylas-time-window-picker.entry.js +1 -1
  391. package/dist/esm/nylas-timeslot-interval.entry.js +2 -2
  392. package/dist/esm/nylas-view-email.entry.js +1 -1
  393. package/dist/esm/nylas-view-thread.entry.js +1 -1
  394. package/dist/esm/people-icon.entry.js +1 -1
  395. package/dist/esm/person-icon.entry.js +1 -1
  396. package/dist/esm/play-icon.entry.js +1 -1
  397. package/dist/esm/play-icon_2.entry.js +2 -2
  398. package/dist/esm/radio-button-group.entry.js +1 -1
  399. package/dist/esm/refresh-icon.entry.js +1 -1
  400. package/dist/esm/reply-all-icon.entry.js +1 -1
  401. package/dist/esm/reply-icon.entry.js +1 -1
  402. package/dist/esm/search-icon.entry.js +1 -1
  403. package/dist/esm/select-dropdown.entry.js +3 -3
  404. package/dist/esm/select-dropdown.entry.js.map +1 -1
  405. package/dist/esm/sent-icon.entry.js +1 -1
  406. package/dist/esm/spam-icon.entry.js +1 -1
  407. package/dist/esm/star-icon.entry.js +1 -1
  408. package/dist/esm/stop-icon.entry.js +1 -1
  409. package/dist/esm/textarea-component.entry.js +1 -1
  410. package/dist/esm/time-period-selector.entry.js +1 -1
  411. package/dist/esm/toggle-switch.entry.js +1 -1
  412. package/dist/esm/tooltip-component.entry.js +1 -1
  413. package/dist/esm/translate-icon.entry.js +1 -1
  414. package/dist/esm/trash-icon.entry.js +1 -1
  415. package/dist/esm/underline-icon.entry.js +1 -1
  416. package/dist/esm/warning-icon.entry.js +1 -1
  417. package/dist/nylas-web-elements/add-circle-icon.entry.js +1 -1
  418. package/dist/nylas-web-elements/archive-icon.entry.js +1 -1
  419. package/dist/nylas-web-elements/arrow-icon.entry.js +1 -1
  420. package/dist/nylas-web-elements/bold-icon.entry.js +1 -1
  421. package/dist/nylas-web-elements/button-component.entry.js +1 -1
  422. package/dist/nylas-web-elements/calendar-cancel-icon.entry.js +1 -1
  423. package/dist/nylas-web-elements/calendar-check-icon.entry.js +1 -1
  424. package/dist/nylas-web-elements/calendar-icon.entry.js +1 -1
  425. package/dist/nylas-web-elements/calendar-info-icon.entry.js +1 -1
  426. package/dist/nylas-web-elements/calendar-patterns-icon.entry.js +1 -1
  427. package/dist/nylas-web-elements/checkbox-component.entry.js +1 -1
  428. package/dist/nylas-web-elements/checkmark-circle-icon.entry.js +1 -1
  429. package/dist/nylas-web-elements/chevron-icon.entry.js +1 -1
  430. package/dist/nylas-web-elements/clock-icon.entry.js +1 -1
  431. package/dist/nylas-web-elements/close-icon.entry.js +1 -1
  432. package/dist/nylas-web-elements/document-refresh-icon.entry.js +1 -1
  433. package/dist/nylas-web-elements/flow-icon.entry.js +1 -1
  434. package/dist/nylas-web-elements/folder-icon.entry.js +1 -1
  435. package/dist/nylas-web-elements/forward-icon.entry.js +1 -1
  436. package/dist/nylas-web-elements/globe-icon.entry.js +1 -1
  437. package/dist/nylas-web-elements/google-logo-icon.entry.js +1 -1
  438. package/dist/nylas-web-elements/inbox-icon.entry.js +1 -1
  439. package/dist/nylas-web-elements/info-icon.entry.js +1 -1
  440. package/dist/nylas-web-elements/input-component.entry.js +1 -1
  441. package/dist/nylas-web-elements/input-dropdown.entry.js +1 -1
  442. package/dist/nylas-web-elements/italic-icon.entry.js +1 -1
  443. package/dist/nylas-web-elements/loading-icon.entry.js +1 -1
  444. package/dist/nylas-web-elements/location-icon.entry.js +1 -1
  445. package/dist/nylas-web-elements/location-off-icon.entry.js +1 -1
  446. package/dist/nylas-web-elements/microsoft-logo-icon.entry.js +1 -1
  447. package/dist/nylas-web-elements/multi-select-dropdown.entry.js +2 -2
  448. package/dist/nylas-web-elements/nylas-additional-participants.entry.js +2 -2
  449. package/dist/nylas-web-elements/nylas-availability-picker.entry.js +1 -1
  450. package/dist/nylas-web-elements/nylas-booking-form.entry.js +2 -2
  451. package/dist/nylas-web-elements/nylas-cancel-booking-form.entry.js +1 -1
  452. package/dist/nylas-web-elements/nylas-cancellation-policy.entry.js +1 -1
  453. package/dist/nylas-web-elements/nylas-cancelled-event-card.entry.js +1 -1
  454. package/dist/nylas-web-elements/nylas-composer.entry.js +1 -1
  455. package/dist/nylas-web-elements/nylas-custom-booking-flow.entry.js +1 -1
  456. package/dist/nylas-web-elements/nylas-customize-booking-settings.entry.js +1 -1
  457. package/dist/nylas-web-elements/nylas-date-picker.entry.js +1 -1
  458. package/dist/nylas-web-elements/nylas-date-picker.entry.js.map +1 -1
  459. package/dist/nylas-web-elements/nylas-editor-tabs.entry.js +23 -6
  460. package/dist/nylas-web-elements/nylas-editor-tabs.entry.js.map +1 -1
  461. package/dist/nylas-web-elements/nylas-event-description.entry.js +1 -1
  462. package/dist/nylas-web-elements/nylas-event-duration.entry.js +1 -1
  463. package/dist/nylas-web-elements/nylas-event-info.entry.js +1 -1
  464. package/dist/nylas-web-elements/nylas-event-limits.entry.js +1 -1
  465. package/dist/nylas-web-elements/nylas-event-location.entry.js +3 -3
  466. package/dist/nylas-web-elements/nylas-event-title.entry.js +2 -2
  467. package/dist/nylas-web-elements/nylas-form-card.entry.js +1 -1
  468. package/dist/nylas-web-elements/nylas-if-state.entry.js +1 -1
  469. package/dist/nylas-web-elements/nylas-limit-future-bookings.entry.js +1 -1
  470. package/dist/nylas-web-elements/nylas-list-folders.entry.js +1 -1
  471. package/dist/nylas-web-elements/nylas-list-threads.entry.js +1 -1
  472. package/dist/nylas-web-elements/nylas-locale-switch.entry.js +3 -3
  473. package/dist/nylas-web-elements/nylas-login.entry.js +1 -1
  474. package/dist/nylas-web-elements/nylas-logo.entry.js +1 -1
  475. package/dist/nylas-web-elements/nylas-mailbox-toolbar-button.entry.js +1 -1
  476. package/dist/nylas-web-elements/nylas-mailbox.entry.js +1 -1
  477. package/dist/nylas-web-elements/nylas-min-booking-notice.entry.js +1 -1
  478. package/dist/nylas-web-elements/nylas-min-cancellation-notice.entry.js +1 -1
  479. package/dist/nylas-web-elements/nylas-notification.entry.js +1 -1
  480. package/dist/nylas-web-elements/nylas-participants-custom-availability.entry.js +1 -1
  481. package/dist/nylas-web-elements/nylas-provider.entry.js +1 -1
  482. package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js +1 -1
  483. package/dist/nylas-web-elements/nylas-selected-event-card.entry.js +1 -1
  484. package/dist/nylas-web-elements/nylas-summarize-message-button.entry.js +2 -2
  485. package/dist/nylas-web-elements/nylas-threads-refresh.entry.js +2 -2
  486. package/dist/nylas-web-elements/nylas-threads-search.entry.js +1 -1
  487. package/dist/nylas-web-elements/nylas-time-window-picker.entry.js +1 -1
  488. package/dist/nylas-web-elements/nylas-timeslot-interval.entry.js +2 -2
  489. package/dist/nylas-web-elements/nylas-view-email.entry.js +1 -1
  490. package/dist/nylas-web-elements/nylas-view-thread.entry.js +1 -1
  491. package/dist/nylas-web-elements/{p-5fd52ecd.entry.js → p-061d0ae2.entry.js} +2 -2
  492. package/dist/nylas-web-elements/p-08d75d35.entry.js +2 -0
  493. package/dist/nylas-web-elements/p-0d98c728.entry.js +2 -0
  494. package/dist/nylas-web-elements/p-0d98c728.entry.js.map +1 -0
  495. package/dist/nylas-web-elements/{p-8eddadb3.entry.js → p-12b83ea9.entry.js} +2 -2
  496. package/dist/nylas-web-elements/{p-d9a145a5.entry.js → p-16a3bfb2.entry.js} +2 -2
  497. package/dist/nylas-web-elements/{p-dcb497d4.entry.js → p-246983ed.entry.js} +2 -2
  498. package/dist/nylas-web-elements/{p-b443f769.entry.js → p-25c97a60.entry.js} +2 -2
  499. package/dist/nylas-web-elements/{p-cc67e6a8.entry.js → p-28512ab6.entry.js} +2 -2
  500. package/dist/nylas-web-elements/{p-fbfa3a7d.entry.js → p-2f148064.entry.js} +2 -2
  501. package/dist/nylas-web-elements/{p-4e48846a.entry.js → p-3175cae0.entry.js} +2 -2
  502. package/dist/nylas-web-elements/{p-a7640232.entry.js → p-34f0d1fe.entry.js} +2 -2
  503. package/dist/nylas-web-elements/{p-62cf46ee.entry.js → p-37f41a90.entry.js} +2 -2
  504. package/dist/nylas-web-elements/{p-2f656fb3.entry.js → p-39160c0d.entry.js} +2 -2
  505. package/dist/nylas-web-elements/{p-13eb1a05.entry.js → p-3f435fab.entry.js} +2 -2
  506. package/dist/nylas-web-elements/{p-ad93d3bd.entry.js → p-5231fc13.entry.js} +3 -3
  507. package/dist/nylas-web-elements/{p-1569f74f.entry.js → p-5c3c1888.entry.js} +2 -2
  508. package/dist/nylas-web-elements/{p-43bfaa93.entry.js → p-60b03f86.entry.js} +2 -2
  509. package/dist/nylas-web-elements/{p-a804616a.entry.js → p-65097f45.entry.js} +2 -2
  510. package/dist/nylas-web-elements/{p-012cb022.entry.js → p-6ce66add.entry.js} +2 -2
  511. package/dist/nylas-web-elements/{p-e9c1e983.entry.js → p-6ef1024f.entry.js} +2 -2
  512. package/dist/nylas-web-elements/p-7a95bc3f.entry.js +2 -0
  513. package/dist/nylas-web-elements/{p-b3d46e08.entry.js → p-7ce048c0.entry.js} +2 -2
  514. package/dist/nylas-web-elements/{p-30144ca0.entry.js → p-8e63b66c.entry.js} +2 -2
  515. package/dist/nylas-web-elements/{p-e9f7d494.entry.js → p-958746a1.entry.js} +2 -2
  516. package/dist/nylas-web-elements/{p-336631dd.entry.js → p-a800e7af.entry.js} +2 -2
  517. package/dist/nylas-web-elements/{p-df2b34ee.entry.js → p-a85408e0.entry.js} +2 -2
  518. package/dist/nylas-web-elements/{p-c1df61d0.entry.js → p-aeb1c91c.entry.js} +2 -2
  519. package/dist/nylas-web-elements/{p-23c143f6.entry.js → p-b0c8021f.entry.js} +2 -2
  520. package/dist/nylas-web-elements/{p-a118f20c.entry.js → p-b2aca6c4.entry.js} +2 -2
  521. package/dist/nylas-web-elements/{p-017f2538.entry.js → p-b334d63b.entry.js} +2 -2
  522. package/dist/nylas-web-elements/p-b4d09fcf.entry.js +2 -0
  523. package/dist/nylas-web-elements/p-b4d09fcf.entry.js.map +1 -0
  524. package/dist/nylas-web-elements/{p-8c1a5e57.entry.js → p-b9559f06.entry.js} +2 -2
  525. package/dist/nylas-web-elements/{p-8c1a5e57.entry.js.map → p-b9559f06.entry.js.map} +1 -1
  526. package/dist/nylas-web-elements/{p-d1d984c5.entry.js → p-c1ff6499.entry.js} +2 -2
  527. package/dist/nylas-web-elements/{p-672f1951.entry.js → p-cb03e4d4.entry.js} +2 -2
  528. package/dist/nylas-web-elements/p-de7b0878.entry.js +2 -0
  529. package/dist/nylas-web-elements/{p-f1e9ed6b.entry.js → p-e8cde784.entry.js} +2 -2
  530. package/dist/nylas-web-elements/p-f2d1b1a6.entry.js +2 -0
  531. package/dist/nylas-web-elements/{p-a5dbdc8e.entry.js.map → p-f2d1b1a6.entry.js.map} +1 -1
  532. package/dist/nylas-web-elements/{p-2743621d.entry.js → p-f6fafe86.entry.js} +2 -2
  533. package/dist/nylas-web-elements/{p-fd8e29e6.entry.js → p-f8653b9b.entry.js} +2 -2
  534. package/dist/nylas-web-elements/people-icon.entry.js +1 -1
  535. package/dist/nylas-web-elements/person-icon.entry.js +1 -1
  536. package/dist/nylas-web-elements/play-icon.entry.js +1 -1
  537. package/dist/nylas-web-elements/radio-button-group.entry.js +1 -1
  538. package/dist/nylas-web-elements/refresh-icon.entry.js +1 -1
  539. package/dist/nylas-web-elements/reply-all-icon.entry.js +1 -1
  540. package/dist/nylas-web-elements/reply-icon.entry.js +1 -1
  541. package/dist/nylas-web-elements/search-icon.entry.js +1 -1
  542. package/dist/nylas-web-elements/select-dropdown.entry.js +3 -3
  543. package/dist/nylas-web-elements/select-dropdown.entry.js.map +1 -1
  544. package/dist/nylas-web-elements/sent-icon.entry.js +1 -1
  545. package/dist/nylas-web-elements/spam-icon.entry.js +1 -1
  546. package/dist/nylas-web-elements/star-icon.entry.js +1 -1
  547. package/dist/nylas-web-elements/stop-icon.entry.js +1 -1
  548. package/dist/nylas-web-elements/textarea-component.entry.js +1 -1
  549. package/dist/nylas-web-elements/time-period-selector.entry.js +1 -1
  550. package/dist/nylas-web-elements/toggle-switch.entry.js +1 -1
  551. package/dist/nylas-web-elements/tooltip-component.entry.js +1 -1
  552. package/dist/nylas-web-elements/translate-icon.entry.js +1 -1
  553. package/dist/nylas-web-elements/trash-icon.entry.js +1 -1
  554. package/dist/nylas-web-elements/underline-icon.entry.js +1 -1
  555. package/dist/nylas-web-elements/warning-icon.entry.js +1 -1
  556. package/package.json +1 -1
  557. package/dist/nylas-web-elements/p-086746ee.entry.js +0 -2
  558. package/dist/nylas-web-elements/p-0919bbbe.entry.js +0 -2
  559. package/dist/nylas-web-elements/p-84c53084.entry.js +0 -2
  560. package/dist/nylas-web-elements/p-938d4ec9.entry.js +0 -2
  561. package/dist/nylas-web-elements/p-938d4ec9.entry.js.map +0 -1
  562. package/dist/nylas-web-elements/p-a5dbdc8e.entry.js +0 -2
  563. package/dist/nylas-web-elements/p-f8e0164c.entry.js +0 -2
  564. package/dist/nylas-web-elements/p-f8e0164c.entry.js.map +0 -1
  565. /package/dist/nylas-web-elements/{p-5fd52ecd.entry.js.map → p-061d0ae2.entry.js.map} +0 -0
  566. /package/dist/nylas-web-elements/{p-0919bbbe.entry.js.map → p-08d75d35.entry.js.map} +0 -0
  567. /package/dist/nylas-web-elements/{p-8eddadb3.entry.js.map → p-12b83ea9.entry.js.map} +0 -0
  568. /package/dist/nylas-web-elements/{p-d9a145a5.entry.js.map → p-16a3bfb2.entry.js.map} +0 -0
  569. /package/dist/nylas-web-elements/{p-dcb497d4.entry.js.map → p-246983ed.entry.js.map} +0 -0
  570. /package/dist/nylas-web-elements/{p-b443f769.entry.js.map → p-25c97a60.entry.js.map} +0 -0
  571. /package/dist/nylas-web-elements/{p-cc67e6a8.entry.js.map → p-28512ab6.entry.js.map} +0 -0
  572. /package/dist/nylas-web-elements/{p-fbfa3a7d.entry.js.map → p-2f148064.entry.js.map} +0 -0
  573. /package/dist/nylas-web-elements/{p-4e48846a.entry.js.map → p-3175cae0.entry.js.map} +0 -0
  574. /package/dist/nylas-web-elements/{p-a7640232.entry.js.map → p-34f0d1fe.entry.js.map} +0 -0
  575. /package/dist/nylas-web-elements/{p-62cf46ee.entry.js.map → p-37f41a90.entry.js.map} +0 -0
  576. /package/dist/nylas-web-elements/{p-2f656fb3.entry.js.map → p-39160c0d.entry.js.map} +0 -0
  577. /package/dist/nylas-web-elements/{p-13eb1a05.entry.js.map → p-3f435fab.entry.js.map} +0 -0
  578. /package/dist/nylas-web-elements/{p-ad93d3bd.entry.js.map → p-5231fc13.entry.js.map} +0 -0
  579. /package/dist/nylas-web-elements/{p-1569f74f.entry.js.map → p-5c3c1888.entry.js.map} +0 -0
  580. /package/dist/nylas-web-elements/{p-43bfaa93.entry.js.map → p-60b03f86.entry.js.map} +0 -0
  581. /package/dist/nylas-web-elements/{p-a804616a.entry.js.map → p-65097f45.entry.js.map} +0 -0
  582. /package/dist/nylas-web-elements/{p-012cb022.entry.js.map → p-6ce66add.entry.js.map} +0 -0
  583. /package/dist/nylas-web-elements/{p-e9c1e983.entry.js.map → p-6ef1024f.entry.js.map} +0 -0
  584. /package/dist/nylas-web-elements/{p-84c53084.entry.js.map → p-7a95bc3f.entry.js.map} +0 -0
  585. /package/dist/nylas-web-elements/{p-b3d46e08.entry.js.map → p-7ce048c0.entry.js.map} +0 -0
  586. /package/dist/nylas-web-elements/{p-30144ca0.entry.js.map → p-8e63b66c.entry.js.map} +0 -0
  587. /package/dist/nylas-web-elements/{p-e9f7d494.entry.js.map → p-958746a1.entry.js.map} +0 -0
  588. /package/dist/nylas-web-elements/{p-336631dd.entry.js.map → p-a800e7af.entry.js.map} +0 -0
  589. /package/dist/nylas-web-elements/{p-df2b34ee.entry.js.map → p-a85408e0.entry.js.map} +0 -0
  590. /package/dist/nylas-web-elements/{p-c1df61d0.entry.js.map → p-aeb1c91c.entry.js.map} +0 -0
  591. /package/dist/nylas-web-elements/{p-23c143f6.entry.js.map → p-b0c8021f.entry.js.map} +0 -0
  592. /package/dist/nylas-web-elements/{p-a118f20c.entry.js.map → p-b2aca6c4.entry.js.map} +0 -0
  593. /package/dist/nylas-web-elements/{p-017f2538.entry.js.map → p-b334d63b.entry.js.map} +0 -0
  594. /package/dist/nylas-web-elements/{p-d1d984c5.entry.js.map → p-c1ff6499.entry.js.map} +0 -0
  595. /package/dist/nylas-web-elements/{p-672f1951.entry.js.map → p-cb03e4d4.entry.js.map} +0 -0
  596. /package/dist/nylas-web-elements/{p-086746ee.entry.js.map → p-de7b0878.entry.js.map} +0 -0
  597. /package/dist/nylas-web-elements/{p-f1e9ed6b.entry.js.map → p-e8cde784.entry.js.map} +0 -0
  598. /package/dist/nylas-web-elements/{p-2743621d.entry.js.map → p-f6fafe86.entry.js.map} +0 -0
  599. /package/dist/nylas-web-elements/{p-fd8e29e6.entry.js.map → p-f8653b9b.entry.js.map} +0 -0
@@ -151,7 +151,7 @@ export class NylasViewEmail {
151
151
  }
152
152
  render() {
153
153
  console.debug(`[nylas-view-email] render`, { hoistedFontURLs: this.hoistedFontURLs });
154
- return (h(Host, { key: '1a82db1175c9bffed825dc2941b277ab699ff457' }, this.state === 'loading' && h("div", null, "Loading..."), this.state === 'ready' && (h(Fragment, null, this.styles.map(style => (h("style", null, DOMPurify.sanitize(style.innerHTML)))), h("div", { class: 'view-email', part: "view-email", innerHTML: this.sanitizedBody, ref: el => (this.viewEmailElement = el) })))));
154
+ return (h(Host, { key: '4f0a1e688ae465d65943adc7dabac9cad6c62fe8' }, this.state === 'loading' && h("div", null, "Loading..."), this.state === 'ready' && (h(Fragment, null, this.styles.map(style => (h("style", null, DOMPurify.sanitize(style.innerHTML)))), h("div", { class: 'view-email', part: "view-email", innerHTML: this.sanitizedBody, ref: el => (this.viewEmailElement = el) })))));
155
155
  }
156
156
  static get is() { return "nylas-view-email"; }
157
157
  static get encapsulation() { return "shadow"; }
@@ -121,7 +121,7 @@ export class NylasViewThread {
121
121
  const lastTwoMessages = this.internalMessages.slice(this.internalMessages.length - 2, this.internalMessages.length);
122
122
  const remainingMessages = this.internalMessages.slice(1, this.internalMessages.length - 2);
123
123
  const lastMessage = this.internalMessages[this.internalMessages.length - 1];
124
- return (h(Host, { key: 'a886c18c380e985cfb63a6a4ab523a93b2160ced' }, h("sp-theme", { key: 'dba4495bbb475f8825f5ade124f84f8bbe2c7c45', scale: "medium", color: "dark" }, h("div", { key: '05c602d7c43e31402c433cdaaaccb26c8d88fc7e', class: "view-thread" }, h("div", { key: '0b2900754126998aa4495a916b03ad2ea4157f34', class: "header" }, h("div", { key: '38db0766a5bc2dfc37b5269cf1e63ad25531ee8d', class: 'subject' }, this.thread?.subject), h("div", { key: 'bb73a5220497288f51b7c9d31e54cb685cfe54d5', class: 'folders' }, this.thread?.folders?.map(folder => h("sp-tag", { size: "s" }, toTitleCase(folder.replace('CATEGORY_', '').replace('_', ' ')))))), h("div", { key: '7d774b36fbfc216c05ed8cabbab79ad6b80e0e87', class: "messages" }, fistMessage && (h(ViewThreadMessage, { message: fistMessage, attachments: this.attachments.filter(attachment => attachment.messageId === fistMessage.id), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement })), remainingMessages.length > 0 && this.messages.length > 1 && !this.showAllEmails && lastTwoMessages.length > 0 && (h(Fragment, null, h("div", { class: 'show-more' }, h("button", { type: "button", onClick: this.onShowAllEmailsClick }, h("span", { class: 'avatar' }, remainingMessages.length), " ", h("span", { class: 'sr-only' }, "Show ", remainingMessages.length, " more emails"))), h("hr", null))), remainingMessages.length > 0 &&
124
+ return (h(Host, { key: 'b9bcde80e7ee15061bfc217d99bb9422dfbe1d04' }, h("sp-theme", { key: '965e53796323e3e13983447abb4ac1b3a8651daa', scale: "medium", color: "dark" }, h("div", { key: '9efc644121efd09a2e837c23f9f8da80589f870b', class: "view-thread" }, h("div", { key: 'c1479929b6679a1b47f03dfe6d5cc1128484b703', class: "header" }, h("div", { key: '00c6788a461f9f6ca4532fb2acb2bf08e0f0c118', class: 'subject' }, this.thread?.subject), h("div", { key: '2e114754a9dd830e4a124cd9079ad4cf725908bd', class: 'folders' }, this.thread?.folders?.map(folder => h("sp-tag", { size: "s" }, toTitleCase(folder.replace('CATEGORY_', '').replace('_', ' ')))))), h("div", { key: '136d6a314c647991218dfe4090fa97c8d98b210d', class: "messages" }, fistMessage && (h(ViewThreadMessage, { message: fistMessage, attachments: this.attachments.filter(attachment => attachment.messageId === fistMessage.id), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement })), remainingMessages.length > 0 && this.messages.length > 1 && !this.showAllEmails && lastTwoMessages.length > 0 && (h(Fragment, null, h("div", { class: 'show-more' }, h("button", { type: "button", onClick: this.onShowAllEmailsClick }, h("span", { class: 'avatar' }, remainingMessages.length), " ", h("span", { class: 'sr-only' }, "Show ", remainingMessages.length, " more emails"))), h("hr", null))), remainingMessages.length > 0 &&
125
125
  this.showAllEmails &&
126
126
  this.messages.length > 2 &&
127
127
  remainingMessages.map(email => (h(ViewThreadMessage, { message: email, attachments: this.attachments.filter(attachment => attachment.messageId === fistMessage?.id), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement }))), lastTwoMessages.length > 0 &&
@@ -97,7 +97,7 @@ export class NylasIfState {
97
97
  }
98
98
  }
99
99
  render() {
100
- return (h(Host, { key: 'a54c576c586d31c138132ac5486c628bbcdf97df' }, h("div", { key: 'e5376f5282b5eeb4dd6b3a8a38ea2a3187c8da64', class: this.classes }, this.show && h("slot", null))));
100
+ return (h(Host, { key: '14c61cd55ec800a480889a16ea2f913b0e19f27f' }, h("div", { key: '4f97263914ce0afbd5f4f629f7ca8d2df8ad87c4', class: this.classes }, this.show && h("slot", null))));
101
101
  }
102
102
  static get is() { return "nylas-if-state"; }
103
103
  static get encapsulation() { return "shadow"; }
@@ -69,7 +69,7 @@ export class NylasLogin {
69
69
  }
70
70
  render() {
71
71
  const splitProviders = this.providers?.split(',') || [];
72
- return (h(Host, { key: 'd177bbbc08a869a96d94c09de2c9f7c40ed479e5' }, this.loginMethod === 'redirect' && (h("div", { class: "redirect-container" }, !this.isAuthenticated && (h("sp-button", { part: "button", onClick: this._handleLoginRedirect }, this.buttonText)))), this.loginMethod === 'emebded' && (h("main", { class: "login-container" }, h("section", { class: "login-box" }, h("header", null, h("img", { src: this.logoUrl, alt: `${this.companyName} logo`, width: '100%', style: {
72
+ return (h(Host, { key: '00ff0a2496564f9e340f778b5310ca3d0359e726' }, this.loginMethod === 'redirect' && (h("div", { class: "redirect-container" }, !this.isAuthenticated && (h("sp-button", { part: "button", onClick: this._handleLoginRedirect }, this.buttonText)))), this.loginMethod === 'emebded' && (h("main", { class: "login-container" }, h("section", { class: "login-box" }, h("header", null, h("img", { src: this.logoUrl, alt: `${this.companyName} logo`, width: '100%', style: {
73
73
  minWidth: this.logoWidth,
74
74
  } }), h("h1", null, "Welcome")), h("p", null, "Log in to your account to continue to ", this.companyName), h("div", { class: "login-methods" }, splitProviders.includes('google') && (h("button", { class: "login-google", onClick: this._onGoogleButtonClick }, h("svg", { xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", role: "img", width: "18", height: "18", preserveAspectRatio: "xMidYMid meet", viewBox: "0 0 256 262" }, h("path", { fill: "#4285F4", d: "M255.6 131.6c0-8.2-.8-16.2-2.2-23.9H130v45.3h70.3c-3 16.1-12.4 29.7-26.3 38.9v32.4h42.6c25-23 39.4-56.7 39.4-97.7z" }), h("path", { fill: "#34A853", d: "M130 262c35.3 0 64.9-11.7 86.5-31.7l-42.6-32.4c-11.7 7.9-26.7 12.6-43.9 12.6-33.7 0-62.3-22.7-72.5-53.4H14.5v33.3A130.3 130.3 0 00130 262z" }), h("path", { fill: "#FBBC05", d: "M57.5 158.1a72.7 72.7 0 010-54.2V70.6H14.5a130.4 130.4 0 000 120.8l43-33.3z" }), h("path", { fill: "#EA4335", d: "M130 51.6c19 0 36 6.5 49.4 19.2l37-36C195 13.1 165.2 0 130 0A130.3 130.3 0 0014.5 70.6l43 33.3c10.2-30.7 38.8-53.3 72.5-53.3z" })), "Continue with Google")), splitProviders.includes('microsoft') && (h("button", { class: "login-microsoft", onClick: this._onMicrosoftButtonClick }, h("svg", { xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", role: "img", width: "18", height: "18", preserveAspectRatio: "xMidYMid meet", viewBox: "0 0 448 512" }, h("path", { fill: "#F3F3F3", d: "M0 32v192h192V32H0zm256 0v192h192V32H256zm192 256v192h-192V288h192zM0 224v192h192V224H0z" })), "Continue with Microsoft"))), h("form", { class: "login-form", method: "POST", onSubmit: this._onFormSubmit }, h("label", { htmlFor: "email" }, "Email"), h("input", { type: "email", id: "email", name: "email", required: true, value: this.email }), h("button", { type: "submit" }, "Next")))))));
75
75
  }
@@ -101,7 +101,7 @@ export class NylasProvider {
101
101
  return this.baseProvider?.getStore('schedulerConfig');
102
102
  }
103
103
  render() {
104
- return (h(Host, { key: '7fee35047bafd5dc2f77e83012fe5149f17f7f9f' }, h("slot", { key: '96dcdef76b63b551e2deb56bfd0d1497ff897114' })));
104
+ return (h(Host, { key: '1eb5d566a5f7c425be7b30939b06a2dfbd34c7cc' }, h("slot", { key: 'f3a6afab3af5893af6602f971dfe67a795f9bd4f' })));
105
105
  }
106
106
  static get is() { return "nylas-provider"; }
107
107
  static get encapsulation() { return "shadow"; }
@@ -219,7 +219,7 @@ export class NylasBookingForm {
219
219
  this.updateAdditionalFields(event.detail.label, event.detail.checked ? 'true' : 'false', 'checkbox');
220
220
  }
221
221
  render() {
222
- return (h(Host, { key: '5a4ca2feb2f89ada6abada8dd3f6dc4909cb3500' }, h("form", { key: '1df9fb2f5a519f4e3ed189f9a11623caa86f3dee', onSubmit: e => this.bookButtonClickedHandler(e), noValidate: true }, h("div", { key: '86a4548532291a4aec3f004eeeb6edde6064248b', class: "nylas-booking-form" }, h("div", { key: '7749795a2086658ef53cbe1e6dfa073b29b8b880', class: "input-wrapper" }, h("input-component", { key: 'b2fd6473fa91b144cb2a23d1db9059f7aafce20b', label: "Name", name: "name", id: "name", defaultValue: this.bookingInfo?.primaryParticipant?.name || this.name, placeholder: "Enter your name", type: "text", required: true, part: "nbf__input-textfield" })), h("div", { key: 'cf6fca8e8ced455047b555905e5b21ad7307505d', class: "input-wrapper" }, h("input-component", { key: '0a5639811623911f7ed59fa12bd45ceb76ae0373', label: "Email", name: "email", id: "email", pattern: emailRegex, defaultValue: this.bookingInfo?.primaryParticipant?.email || this.email, placeholder: "Enter your email", type: "email", required: true, part: "nbf__input-textfield" })), this.configSettings?.scheduler?.hide_additional_guests !== true && (h("div", { class: "input-wrapper" }, this.guestEmails.map((email, index) => (h("div", { class: "input-wrapper button-wrapper" }, h("label", { class: {
222
+ return (h(Host, { key: '1b81fd4591cd90c85a578a8d957ed561e457cba5' }, h("form", { key: '4a4fef983332d1752ccf44823620ec2b906bf71e', onSubmit: e => this.bookButtonClickedHandler(e), noValidate: true }, h("div", { key: 'e55ebf5bb6fbb5175e6175d06ce0e0a5266962cf', class: "nylas-booking-form" }, h("div", { key: 'd50d5fdbc7b68b3c54098a6dde600ed52c607eed', class: "input-wrapper" }, h("input-component", { key: 'a299cb5d2043e5fedd6f5f66889d7640e74b8b55', label: "Name", name: "name", id: "name", defaultValue: this.bookingInfo?.primaryParticipant?.name || this.name, placeholder: "Enter your name", type: "text", required: true, part: "nbf__input-textfield" })), h("div", { key: '0d095468473009d67120d668f5e961ca4d90c16d', class: "input-wrapper" }, h("input-component", { key: 'e81345e3aca7fa9cd0a90be50f81cfa544a23336', label: "Email", name: "email", id: "email", pattern: emailRegex, defaultValue: this.bookingInfo?.primaryParticipant?.email || this.email, placeholder: "Enter your email", type: "email", required: true, part: "nbf__input-textfield" })), this.configSettings?.scheduler?.hide_additional_guests !== true && (h("div", { class: "input-wrapper" }, this.guestEmails.map((email, index) => (h("div", { class: "input-wrapper button-wrapper" }, h("label", { class: {
223
223
  error: !!this.guestEmailErrors[index],
224
224
  } }, "Guest email"), h("div", { class: "guest-email-input" }, h("input", { type: "email", id: `guest-email-${index}`, maxLength: 100, class: {
225
225
  'guest-email': true,
@@ -227,7 +227,7 @@ export class NylasBookingForm {
227
227
  }, placeholder: "Enter guest email", value: email, "data-index": index, part: "nbf__input-textfield", onBlur: (e) => this.handleGuestBlur(index, e.target?.value), onInput: (e) => this.handleGuestChange(index, e.target?.value) }), h("button-component", { variant: "basic", onClick: (e) => this.removeGuestButtonClickHandler(e, index), class: {
228
228
  'remove-guest': true,
229
229
  'error': !!this.guestEmailErrors[index],
230
- } }, h("close-icon", null))), h("p", { class: "help-text" }, this.guestEmailErrors[index])))), h("button-component", { class: "add-guest", variant: "invisible", part: "nbf__button-ghost", onClick: e => this.addGuestButtonClickedHandler(e) }, h("div", { class: "button-content" }, h("add-circle-icon", { slot: "icon" }), "Add ", this.guestEmails.length > 0 ? 'another ' : '', "guest")))), h("slot", { key: 'd853e1e084cb8c769fa0eb0b1e94b09473f6e670', name: "custom-booking-form" })), h("div", { key: '5239eabf55e8be79d1c17b71c6d7f392f563d54d', class: "cta" }, h("sp-button", { key: '7b11d64985c876327144ef026934357b37b09cb2', treatment: "outline", variant: "secondary", class: 'back', part: "nbf__button-outline", onClick: this.handleBackButtonClicked }, h("slot", { key: '160c368859256544a236a6a010f06eab039dc2ce', name: "booking-form-back-label" }, "Back")), h("sp-button", { key: '6f6c79cf9d8bef6178af788e427f62262d873738', variant: "primary", class: 'book', part: "nbf__button-primary", type: "submit" }, this.isLoading && h("loading-icon", { slot: "icon" }), h("slot", { key: '6fedba0ecc756ceb8941158b6620cdf1df6fe3c0', name: "booking-form-book-label" }, "Book now"))))));
230
+ } }, h("close-icon", null))), h("p", { class: "help-text" }, this.guestEmailErrors[index])))), h("button-component", { class: "add-guest", variant: "invisible", part: "nbf__button-ghost", onClick: e => this.addGuestButtonClickedHandler(e) }, h("div", { class: "button-content" }, h("add-circle-icon", { slot: "icon" }), "Add ", this.guestEmails.length > 0 ? 'another ' : '', "guest")))), h("slot", { key: 'f47bffdf6a15943c78d4bb75051d0f6704afd623', name: "custom-booking-form" })), h("div", { key: '12631d6648d7ebdc9e6714a54690486d53c8c623', class: "cta" }, h("sp-button", { key: 'a72caa2eb6b5d95ee83600aa37e89730bfd68fdb', treatment: "outline", variant: "secondary", class: 'back', part: "nbf__button-outline", onClick: this.handleBackButtonClicked }, h("slot", { key: 'be107ab400cb5802c6153217cde54b75ccede466', name: "booking-form-back-label" }, "Back")), h("sp-button", { key: 'd6f322389050d4cbbb1aada135b27b6bc4d34d6d', variant: "primary", class: 'book', part: "nbf__button-primary", type: "submit" }, this.isLoading && h("loading-icon", { slot: "icon" }), h("slot", { key: '17ee459bee19ba620505e9931ccd4a485f530ecc', name: "booking-form-book-label" }, "Book now"))))));
231
231
  }
232
232
  static get is() { return "nylas-booking-form"; }
233
233
  static get encapsulation() { return "shadow"; }
@@ -62,7 +62,7 @@ export class NylasCancelBookingForm {
62
62
  debug(`[nylas-cancel-booking-form] Component disconnected`);
63
63
  }
64
64
  render() {
65
- return (h(Host, { key: '25f45d91057f52263ae313ffed14d56ba22a783d', part: "ncec" }, h("sp-theme", { key: 'c213bc36d8459f0c206ca19bdd77d2d6b5ba5c1b', theme: "spectrum", scale: "medium" }, h("div", { key: 'bd50aa9a5c416825bc6b05c0bf47d85a31021c29', class: "nylas-cancel-booking-form", part: "ncec__card" }, h("div", { key: '9654b0cbda12436ac025265f82aa8bfe0a127fbd', class: "nylas-cancel-booking-form__calendar-icon", part: "ncec__icon" }, h("calendar-cancel-icon", { key: '3a97606f7c5f2e0f9c08dc7f0b199e56a4afa7f4' })), h("h3", { key: '26c0a115101786847fa681fa2cb3492561516f64', class: "nylas-cancel-booking-form__title", part: "ncec__title" }, "Cancel booking?"), h("div", { key: '05fe59fff1fa6b8bf38313bef5457d4022674570', class: "nylas-cancel-booking-form__description", part: "ncec__description" }, this.cancellationPolicy), h("form", { key: '6c3c1365bde80d1915026f125be9208c3c16d69c', onSubmit: this.handleSubmitCancelBooking }, h("sp-field-label", { key: 'fca2f04d8300b0e1be7a8071fed69c714f82491e', for: "cancel-reason", class: this.cancellationError ? 'error' : '' }, "Reason for cancellation ", h("span", { key: '1a77038fbda4048fca0e7cc8a39ad357a10f0fd7', class: "required" }, "*")), h("sp-textfield", { key: 'dbb19d14b09f7b85776ca288ec8f9fe58d5080f5', id: "cancel-reason", class: this.cancellationError ? 'error' : '', part: "ncec__reason-textarea", multiline: true, value: this.cancellationReason, onInput: this.handleOnChangeCancellationReason, onFocus: this.handleOnChangeCancellationReason, invalid: !!this.cancellationError }, h("sp-help-text", { key: 'e2e0c9794cae46b4a5cc857156d904a1236ccb49', slot: "negative-help-text" }, this.cancellationError)), h("sp-button", { key: 'a647e3e70704325f3986e6a869b65a5ec7495354', variant: "primary", class: "cancel", type: "submit", part: "ncec__button-cta" }, "Cancel booking"), h("sp-button", { key: 'b8b732ceafaf6d1090cf7b1a3d979854e17684ca', variant: "secondary", class: "back", treatment: "outline", part: "ncec__button-outline", onClick: this.handleGoBackClicked }, "Go back"))))));
65
+ return (h(Host, { key: '83015809da357a47d70c5bae845c8608924b6a31', part: "ncec" }, h("sp-theme", { key: '11d3b28a88081d5ecccfbb78ee6347a7856899e3', theme: "spectrum", scale: "medium" }, h("div", { key: '5d2750f253c1aff61c1d973529ce2f7fa65c4206', class: "nylas-cancel-booking-form", part: "ncec__card" }, h("div", { key: '36a8dd00a5eda62f2f8f9740bf447f0b50e81b9e', class: "nylas-cancel-booking-form__calendar-icon", part: "ncec__icon" }, h("calendar-cancel-icon", { key: '7bfaf1ffaa9a3bb288bc0e3f11c8c9ed7a4d2c9a' })), h("h3", { key: '74fff12d4aa0311d817348a4694042d2242f30cd', class: "nylas-cancel-booking-form__title", part: "ncec__title" }, "Cancel booking?"), h("div", { key: '647a02657fe9570c87b14ef7de0cc0fc713efb21', class: "nylas-cancel-booking-form__description", part: "ncec__description" }, this.cancellationPolicy), h("form", { key: 'bb680b4a5a7203d44d08529b0d8b3224b51c2986', onSubmit: this.handleSubmitCancelBooking }, h("sp-field-label", { key: '401994e31c7f7bf65b8403a42b14a56e928d92f3', for: "cancel-reason", class: this.cancellationError ? 'error' : '' }, "Reason for cancellation ", h("span", { key: '361907af2362f4fd09af7638c82de7320efe0072', class: "required" }, "*")), h("sp-textfield", { key: 'd7e672672f0a7250104080f69f4e96de9321c537', id: "cancel-reason", class: this.cancellationError ? 'error' : '', part: "ncec__reason-textarea", multiline: true, value: this.cancellationReason, onInput: this.handleOnChangeCancellationReason, onFocus: this.handleOnChangeCancellationReason, invalid: !!this.cancellationError }, h("sp-help-text", { key: 'd3bcfae8ae55ec910005c128f24d74ed34f1bf48', slot: "negative-help-text" }, this.cancellationError)), h("sp-button", { key: '23efceafbfcb073b0808f65ae110f31bcbfb7722', variant: "primary", class: "cancel", type: "submit", part: "ncec__button-cta" }, "Cancel booking"), h("sp-button", { key: '7030276dae50deab5549a64a3def7b4cb783e8d5', variant: "secondary", class: "back", treatment: "outline", part: "ncec__button-outline", onClick: this.handleGoBackClicked }, "Go back"))))));
66
66
  }
67
67
  static get is() { return "nylas-cancel-booking-form"; }
68
68
  static get encapsulation() { return "shadow"; }
@@ -45,7 +45,7 @@ export class NylasCancelledEventCard {
45
45
  debug(`[nylas-cancelled-event-card] Component disconnected`);
46
46
  }
47
47
  render() {
48
- return (h(Host, { key: '9c4e8c3d74888d794d747e048ab368ae4f9fce9f', part: "ncec" }, h("sp-theme", { key: 'fe7c297e3da3ec06c54b8c4eddce779e283a6f8c', theme: "spectrum", color: "dark", scale: "medium" }, h("div", { key: '1154b9e1271af9d613401f1958937a2dc87ad2e9', class: "nylas-cancelled-event-card", part: "ncec__card" }, h("div", { key: 'c1d5e51311db568bdfd14c45cdb17a341d1222ad', class: "nylas-cancelled-event-card__calendar-icon", part: "ncec__icon" }, h("calendar-cancel-icon", { key: '9c3f516a80498ff983fe17dd2fbc84d9ee0ac7b8' })), h("h3", { key: '82ed5d4165dbc590bb996569252a5661ac915d98', class: "nylas-cancelled-event-card__title", part: "ncec__title" }, "Your booking has been cancelled successfully!"), h("div", { key: '5a01351f61614bee349cb350395d00d61b43c574', class: "nylas-cancelled-event-card__description", part: "ncec__description" }, "A cancellation email has been sent to ", this.configSettings?.organizer?.name || 'the participants', "."), h("div", { key: 'c82b6b6260111bdecf664a475591cbfab6d4321e', class: "nylas-cancelled-event-card__cta" }, h("sp-button", { key: '34fdcee6945a44597a2084c3043aa3375cd560cb', variant: "secondary", treatment: "outline", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? 'Closing...' : 'Close'))))));
48
+ return (h(Host, { key: '89bfb6419aea7fffc32726e4db26642ca810b3a4', part: "ncec" }, h("sp-theme", { key: '265e08ab9c6d4c7c7071353a35e2a8e69bd3875e', theme: "spectrum", color: "dark", scale: "medium" }, h("div", { key: 'bd23802e8cd5bf923ed43f223eac30041ead9a2e', class: "nylas-cancelled-event-card", part: "ncec__card" }, h("div", { key: '270d9e2a65ee1a3a7d34aaa99bf1059b891929ae', class: "nylas-cancelled-event-card__calendar-icon", part: "ncec__icon" }, h("calendar-cancel-icon", { key: 'e04e9bf8f7278265160c3a58c0a37c880faed0cc' })), h("h3", { key: '046647bd93284e280d5fb62f9488b6ed5ed9dea2', class: "nylas-cancelled-event-card__title", part: "ncec__title" }, "Your booking has been cancelled successfully!"), h("div", { key: 'f85c31f7718fe5266b2d175afff46c7b63495c11', class: "nylas-cancelled-event-card__description", part: "ncec__description" }, "A cancellation email has been sent to ", this.configSettings?.organizer?.name || 'the participants', "."), h("div", { key: 'aa36cf4bbcb432334903a0b9ba2782ecf6abbe4c', class: "nylas-cancelled-event-card__cta" }, h("sp-button", { key: '65009ac918324e109b0b5a52331bea5a9b8c1a14', variant: "secondary", treatment: "outline", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? 'Closing...' : 'Close'))))));
49
49
  }
50
50
  static get is() { return "nylas-cancelled-event-card"; }
51
51
  static get encapsulation() { return "shadow"; }
@@ -74,7 +74,7 @@ export class NylasDatePicker {
74
74
  return date && selectableDates?.find(d => isSameDay(d, date)) === undefined;
75
75
  }
76
76
  render() {
77
- return (h(Host, { key: 'bc2d37f59dc4cc59c9659a15ce640d3f3c738239', part: "ndp" }, h("div", { key: '7b39c6ff3b5c820d6ee4cc3419a80f9803011deb', class: "nylas-date-picker" }, h("div", { key: 'e7e08bbe189da82d187241b1025633f9ea690bbe', class: "title", part: "'ndp__title" }, h("h1", { key: '6619e950e5b31181663916bb95eb72efcda2031b' }, h("person-icon", { key: '3db3207dea880167c6f7f4058887b51620da58f9' }), this.configSettings?.organizer?.name || this.configSettings?.organizer.email), h("p", { key: '8a1ec0fe12579b46279b1c95af1928740b9fffb4' }, h("clock-icon", { key: '677dc941e4bba5387a16af1f47eb52ed0daf37ab' }), this.eventDuration ? convertMinutesToHoursAndMinutes(this.eventDuration) : `- minutes`)), h("div", { key: '55ceabd5fe27d3261d8a1c320cc9d612829c50b5', class: 'header flex-row' }, h("h2", { key: '0fb27b957ac9315139b1cc6ead9504d3b35549cd', part: 'ndp__month-header' }, h("strong", { key: 'c916747bc9714fa1e0743674aa8845f0bb3bc8c6' }, this.month.toLocaleDateString(undefined, { month: 'long' })), "\u00A0", this.month.toLocaleDateString(undefined, { year: 'numeric' })), h("div", { key: 'f730a61b661c581d623eca6d56f809d40c0a775b', class: 'pagination' }, h("button", { key: '69555f5b4de9306dedd29bdeeb90effbda01c521', onClick: () => this.changeMonth(-1), class: { 'chevron-left': true, 'button': true }, disabled: !this.selectableDates?.length || this.month <= new Date(), part: "ndp__month-button" }, h("chevron-icon", { key: 'ea5c5492aa75cbb1c94af57d01c091a353b7ee2a' })), h("button", { key: '9313976fea433d8babf3ce5a63891492e93c22bc', onClick: () => this.changeMonth(1), class: { 'chevron-right': true, 'button': true }, disabled: this.disableNextMonthButton, part: "ndp__month-button" }, h("chevron-icon", { key: '81f86816719358949d8eef1e346702da314de68f' })))), h("div", { key: '32e3e0cf78205054739acc6ae3a3363b7d10c926', class: 'dates' }, ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'].map(day => {
77
+ return (h(Host, { key: 'bc2d37f59dc4cc59c9659a15ce640d3f3c738239', part: "ndp" }, h("div", { key: '7b39c6ff3b5c820d6ee4cc3419a80f9803011deb', class: "nylas-date-picker" }, h("div", { key: 'e7e08bbe189da82d187241b1025633f9ea690bbe', class: "title", part: "'ndp__title" }, this.configSettings?.organizer?.name && (h("h1", null, h("person-icon", null), this.configSettings?.organizer?.name || 'Organizer')), h("p", { key: '7a952faa33c2421f9b6d25a4d56ec7a510d42ab5' }, h("clock-icon", { key: '35561bc9866d9c75e676b3ef589b1506a6d273c6' }), this.eventDuration ? convertMinutesToHoursAndMinutes(this.eventDuration) : `- minutes`)), h("div", { key: 'b3799870aa76c6e54b3ec5a32dda0b684a817e1d', class: 'header flex-row' }, h("h2", { key: 'bb00822464f175aa9b9c5f66f8fa79e95363b33d', part: 'ndp__month-header' }, h("strong", { key: '3cdeb9340334fabb6ee1ef09ffb28a6e75177275' }, this.month.toLocaleDateString(undefined, { month: 'long' })), "\u00A0", this.month.toLocaleDateString(undefined, { year: 'numeric' })), h("div", { key: 'ad6b090bdff3470d1f7381cce6d5734a698c7af9', class: 'pagination' }, h("button", { key: '90621e82962b012b50dedb9ec4c49bc7cdff0936', onClick: () => this.changeMonth(-1), class: { 'chevron-left': true, 'button': true }, disabled: !this.selectableDates?.length || this.month <= new Date(), part: "ndp__month-button" }, h("chevron-icon", { key: '7596ada39a388b9570a3a783ff5cdf7bb3f252c1' })), h("button", { key: 'e7bbf331f680b0c6f2538639235a008e213b52ee', onClick: () => this.changeMonth(1), class: { 'chevron-right': true, 'button': true }, disabled: this.disableNextMonthButton, part: "ndp__month-button" }, h("chevron-icon", { key: '898e3a4609bf204bdf4d375cd53c23d5ac52bc50' })))), h("div", { key: 'e41bd3d09ef9c8bc48dd8aa5db6554af8b31faa8', class: 'dates' }, ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'].map(day => {
78
78
  return (h("div", { class: 'day', part: "ndp__day" }, day));
79
79
  }), this.dates.map((date, i) => {
80
80
  const isDisabled = this.isDisabled(date, this.selectableDates);
@@ -1 +1 @@
1
- {"version":3,"file":"nylas-date-picker.js","sourceRoot":"","sources":["../../../../src/components/scheduler/nylas-date-picker/nylas-date-picker.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,+BAA+B,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACrJ,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAsBlC,MAAM,OAAO,eAAe;;;;;;;qBA6BH,IAAI,CAAC,YAAY,IAAI,IAAI,IAAI,EAAE;qBAK7B,IAAI,CAAC,QAAQ,EAAE;sCAKG,KAAK;;IAahD,qBAAqB,CAAC,iBAAiC;QACrD,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QACnF,MAAM,qBAAqB,GAAG,iBAAiB,EAAE,SAAS,EAAE,wBAAwB,CAAC;QACrF,IAAI,qBAAqB,KAAK,SAAS,EAAE,CAAC;YACxC,OAAO;QACT,CAAC;QACD,MAAM,OAAO,GAAG,oBAAoB,CAAC,IAAI,IAAI,EAAE,EAAE,qBAAqB,CAAC,CAAC;QACxE,IAAI,O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AAC,EAAE,IAAI,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,EAAE,EAAE,IAEjP,IAAI,CAAC,OAAO,EAAE,CACR,CACV,CAAC;oBACJ,CAAC,CAAC,CACE,CACF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF;AAnFC;IAhBC,iBAAiB,CAA0F;QAC1G,IAAI,EAAE,mBAAmB;QACzB,YAAY,EAAE,IAAI,GAAG,CAAC;YACpB,CAAC,2BAA2B,EAAE,iBAAiB,CAAC;YAChD,CAAC,wBAAwB,EAAE,cAAc,CAAC;YAC1C,CAAC,qBAAqB,EAAE,WAAW,CAAC;YACpC,CAAC,0BAA0B,EAAE,gBAAgB,CAAC;YAC9C,CAAC,yBAAyB,EAAE,eAAe,CAAC;SAC7C,CAAC;QACF,YAAY,EAAE;YACZ,YAAY,EAAE,KAAK,EAAE,KAAwB,EAAE,uBAAgD,EAAE,EAAE;gBACjG,uBAAuB,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YAC7D,CAAC;SACF;QACD,iBAAiB,EAAE,IAAI;KACxB,CAAC;;;;6CAmFD","sourcesContent":["import { RegisterComponent } from '@/common/register-component';\nimport { addDaysToCurrentDate, convertMinutesToHoursAndMinutes, getFirstDayOfMonth, getLastDayOfMonth, isSameDay, isSameMonth } from '@/utils/utils';\nimport { Component, Event, EventEmitter, Host, Prop, State, Watch, h } from '@stencil/core';\nimport { timeDay } from 'd3-time';\nimport { NylasSchedulerConnector } from '../../..';\nimport { NylasScheduling } from '../nylas-scheduling/nylas-scheduling';\nimport { ConfigSettings } from '@/stores/scheduler-store';\n\n/**\n * The `nylas-date-picker` component is a UI component that allows users to select a date.\n *\n * @part ndp - The date picker host.\n * @part ndp__month-header - The month header.\n * @part ndp__month-button - The month button.\n * @part ndp__day - The day.\n * @part ndp__date - The date.\n * @part ndp__date--selected - The selected date.\n * @part ndp__date--current-day - The current day.\n * @part ndp__date--current-month - The dates in the current month.\n */\n@Component({\n tag: 'nylas-date-picker',\n styleUrl: 'nylas-date-picker.scss',\n shadow: true,\n})\nexport class NylasDatePicker {\n /**\n * The dates that are selectable.\n */\n @Prop() selectableDates?: Date[];\n\n /**\n * The selected date.\n */\n @Prop() selectedDate?: Date;\n\n /**\n * The config settings.\n */\n @Prop() configSettings?: ConfigSettings;\n\n /**\n * The loading state.\n */\n @Prop() readonly isLoading?: boolean;\n\n /**\n * The event duration.\n */\n @Prop() readonly eventDuration?: number;\n\n /**\n * The month to display.\n */\n @State() month: Date = this.selectedDate || new Date();\n\n /**\n * The dates to render.\n */\n @State() dates: Date[] = this.getDates();\n\n /**\n * The state to disable the next month button.\n */\n @State() disableNextMonthButton: boolean = false;\n\n /**\n * This event is fired when a date is selected.\n */\n @Event() dateSelected!: EventEmitter<Date>;\n\n /**\n * This event is fired when the month is changed.\n */\n @Event() monthChanged!: EventEmitter<Date>;\n\n @Watch('configSettings')\n configSettingsChanged(newConfigSettings: ConfigSettings) {\n const nextMonth = new Date(this.month.getFullYear(), this.month.getMonth() + 1, 1);\n const availableDaysInFuture = newConfigSettings?.scheduler?.available_days_in_future;\n if (availableDaysInFuture === undefined) {\n return;\n }\n const endDate = addDaysToCurrentDate(new Date(), availableDaysInFuture);\n if (endDate.getTime() < nextMonth.getTime()) {\n this.disableNextMonthButton = true;\n } else {\n this.disableNextMonthButton = false;\n }\n }\n\n connectedCallback() {}\n\n disconnectedCallback() {}\n\n componentWillLoad() {}\n\n /**\n * Get the dates to render, including the days from the previous and next months.\n * @returns The dates to render.\n */\n private getDates() {\n const lastDayOfMonth = getLastDayOfMonth(this.month);\n const firstDayOfMonth = getFirstDayOfMonth(this.month);\n\n return timeDay.range(timeDay.offset(firstDayOfMonth, -firstDayOfMonth.getDay()), timeDay.offset(lastDayOfMonth, 7 - lastDayOfMonth.getDay()));\n }\n\n /**\n * Select a date.\n * @param date The date to select.\n */\n private selectDate(date?: Date) {\n this.dateSelected.emit(date);\n }\n\n /**\n * Change the month.\n * @param change The change in months.\n */\n private changeMonth(change: number) {\n this.month = new Date(this.month.getFullYear(), this.month.getMonth() + change, 1);\n const nextMonth = new Date(this.month.getFullYear(), this.month.getMonth() + 1, 1);\n const availableDaysInFuture = this.configSettings?.scheduler?.available_days_in_future;\n const endDate = addDaysToCurrentDate(new Date(), availableDaysInFuture);\n if (endDate.getTime() < nextMonth.getTime()) {\n this.disableNextMonthButton = true;\n } else {\n this.disableNextMonthButton = false;\n }\n this.dates = this.getDates();\n this.monthChanged.emit(this.month);\n // unset selected date when changing month\n this.selectDate();\n }\n\n private isSelected(date: Date | undefined, selectedDate: Date | undefined, selectableDates: Date[] | undefined) {\n return date && selectedDate && isSameDay(date, selectedDate) && selectableDates && selectableDates?.length > 0;\n }\n\n private isDisabled(date: Date | undefined, selectableDates: Date[] | undefined) {\n return date && selectableDates?.find(d => isSameDay(d, date)) === undefined;\n }\n\n @RegisterComponent<NylasDatePicker, NylasSchedulerConnector, Exclude<NylasScheduling['stores'], undefined>>({\n name: 'nylas-date-picker',\n stateToProps: new Map([\n ['scheduler.selectableDates', 'selectableDates'],\n ['scheduler.selectedDate', 'selectedDate'],\n ['scheduler.isLoading', 'isLoading'],\n ['scheduler.configSettings', 'configSettings'],\n ['scheduler.eventDuration', 'eventDuration'],\n ]),\n eventToProps: {\n dateSelected: async (event: CustomEvent<Date>, nylasSchedulerConnector: NylasSchedulerConnector) => {\n nylasSchedulerConnector.scheduler.selectDate(event.detail);\n },\n },\n fireRegisterEvent: true,\n })\n render() {\n return (\n <Host part=\"ndp\">\n <div class=\"nylas-date-picker\">\n <div class=\"title\" part=\"'ndp__title\">\n <h1>\n <person-icon />\n {this.configSettings?.organizer?.name || this.configSettings?.organizer.email}\n </h1>\n <p>\n <clock-icon />\n {this.eventDuration ? convertMinutesToHoursAndMinutes(this.eventDuration) : `- minutes`}\n </p>\n </div>\n <div class={'header flex-row'}>\n <h2 part={'ndp__month-header'}>\n <strong>{this.month.toLocaleDateString(undefined, { month: 'long' })}</strong>\n &nbsp;\n {this.month.toLocaleDateString(undefined, { year: 'numeric' })}\n </h2>\n <div class={'pagination'}>\n <button\n onClick={() => this.changeMonth(-1)}\n class={{ 'chevron-left': true, 'button': true }}\n disabled={!this.selectableDates?.length || this.month <= new Date()}\n part=\"ndp__month-button\"\n >\n <chevron-icon />\n </button>\n <button onClick={() => this.changeMonth(1)} class={{ 'chevron-right': true, 'button': true }} disabled={this.disableNextMonthButton} part=\"ndp__month-button\">\n <chevron-icon />\n </button>\n </div>\n </div>\n\n <div class={'dates'}>\n {['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'].map(day => {\n return (\n <div class={'day'} part=\"ndp__day\">\n {day}\n </div>\n );\n })}\n {this.dates.map((date, i) => {\n const isDisabled = this.isDisabled(date, this.selectableDates);\n\n if (this.isLoading) {\n return (\n <button\n disabled\n class={{\n 'date day-skeleton': true,\n 'current-month': isSameMonth(date, this.month),\n }}\n style={{ animationDelay: `${i * 20}ms` }}\n part={'ndp__date'}\n >\n {date.getDate()}\n </button>\n );\n }\n return (\n <button\n class={{\n 'date': true,\n 'selected': !!(this.selectedDate && isSameDay(date, this.selectedDate) && this.selectableDates && this.selectableDates?.length > 0),\n 'current-day': isSameDay(date, new Date()),\n 'current-month': isSameMonth(date, this.month),\n }}\n aria-lang={date.toLocaleDateString(undefined, { dateStyle: 'full' })}\n disabled={isDisabled}\n onClick={() => this.selectDate(date)}\n part={`ndp__date ${this.isSelected(date, this.selectedDate, this.selectableDates) ? 'ndp__date--selected' : ''} ${isSameDay(date, new Date()) ? 'ndp__date--current-day' : ''} ${isSameMonth(date, this.month) ? 'ndp__date--current-month' : ''}`}\n >\n {date.getDate()}\n </button>\n );\n })}\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"nylas-date-picker.js","sourceRoot":"","sources":["../../../../src/components/scheduler/nylas-date-picker/nylas-date-picker.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,+BAA+B,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACrJ,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAsBlC,MAAM,OAAO,eAAe;;;;;;;qBA6BH,IAAI,CAAC,YAAY,IAAI,IAAI,IAAI,EAAE;qBAK7B,IAAI,CAAC,QAAQ,EAAE;sCAKG,KAAK;;IAahD,qBAAqB,CAAC,iBAAiC;QACrD,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QACnF,MAAM,qBAAqB,GAAG,iBAAiB,EAAE,SAAS,EAAE,wBAAwB,CAAC;QACrF,IAAI,qBAAqB,KAAK,SAAS,EAAE,CAAC;YACxC,OAAO;QACT,CAAC;QACD,MAAM,OAAO,GAAG,oBAAoB,CAAC,IAAI,IAAI,EAAE,EAAE,qBAAqB,CAAC,CAAC;QACxE,IAAI,OAAO,CAAC,OAAO,EAAE,GAAG,SAAS,CAAC,OAAO,EAAE,EAAE,CAAC;YAC5C,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC;QACrC,CAAC;aAAM,CA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EAAE,EAAE,IAEjP,IAAI,CAAC,OAAO,EAAE,CACR,CACV,CAAC;oBACJ,CAAC,CAAC,CACE,CACF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF;AArFC;IAhBC,iBAAiB,CAA0F;QAC1G,IAAI,EAAE,mBAAmB;QACzB,YAAY,EAAE,IAAI,GAAG,CAAC;YACpB,CAAC,2BAA2B,EAAE,iBAAiB,CAAC;YAChD,CAAC,wBAAwB,EAAE,cAAc,CAAC;YAC1C,CAAC,qBAAqB,EAAE,WAAW,CAAC;YACpC,CAAC,0BAA0B,EAAE,gBAAgB,CAAC;YAC9C,CAAC,yBAAyB,EAAE,eAAe,CAAC;SAC7C,CAAC;QACF,YAAY,EAAE;YACZ,YAAY,EAAE,KAAK,EAAE,KAAwB,EAAE,uBAAgD,EAAE,EAAE;gBACjG,uBAAuB,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YAC7D,CAAC;SACF;QACD,iBAAiB,EAAE,IAAI;KACxB,CAAC;;;;6CAqFD","sourcesContent":["import { RegisterComponent } from '@/common/register-component';\nimport { addDaysToCurrentDate, convertMinutesToHoursAndMinutes, getFirstDayOfMonth, getLastDayOfMonth, isSameDay, isSameMonth } from '@/utils/utils';\nimport { Component, Event, EventEmitter, Host, Prop, State, Watch, h } from '@stencil/core';\nimport { timeDay } from 'd3-time';\nimport { NylasSchedulerConnector } from '../../..';\nimport { NylasScheduling } from '../nylas-scheduling/nylas-scheduling';\nimport { ConfigSettings } from '@/stores/scheduler-store';\n\n/**\n * The `nylas-date-picker` component is a UI component that allows users to select a date.\n *\n * @part ndp - The date picker host.\n * @part ndp__month-header - The month header.\n * @part ndp__month-button - The month button.\n * @part ndp__day - The day.\n * @part ndp__date - The date.\n * @part ndp__date--selected - The selected date.\n * @part ndp__date--current-day - The current day.\n * @part ndp__date--current-month - The dates in the current month.\n */\n@Component({\n tag: 'nylas-date-picker',\n styleUrl: 'nylas-date-picker.scss',\n shadow: true,\n})\nexport class NylasDatePicker {\n /**\n * The dates that are selectable.\n */\n @Prop() selectableDates?: Date[];\n\n /**\n * The selected date.\n */\n @Prop() selectedDate?: Date;\n\n /**\n * The config settings.\n */\n @Prop() configSettings?: ConfigSettings;\n\n /**\n * The loading state.\n */\n @Prop() readonly isLoading?: boolean;\n\n /**\n * The event duration.\n */\n @Prop() readonly eventDuration?: number;\n\n /**\n * The month to display.\n */\n @State() month: Date = this.selectedDate || new Date();\n\n /**\n * The dates to render.\n */\n @State() dates: Date[] = this.getDates();\n\n /**\n * The state to disable the next month button.\n */\n @State() disableNextMonthButton: boolean = false;\n\n /**\n * This event is fired when a date is selected.\n */\n @Event() dateSelected!: EventEmitter<Date>;\n\n /**\n * This event is fired when the month is changed.\n */\n @Event() monthChanged!: EventEmitter<Date>;\n\n @Watch('configSettings')\n configSettingsChanged(newConfigSettings: ConfigSettings) {\n const nextMonth = new Date(this.month.getFullYear(), this.month.getMonth() + 1, 1);\n const availableDaysInFuture = newConfigSettings?.scheduler?.available_days_in_future;\n if (availableDaysInFuture === undefined) {\n return;\n }\n const endDate = addDaysToCurrentDate(new Date(), availableDaysInFuture);\n if (endDate.getTime() < nextMonth.getTime()) {\n this.disableNextMonthButton = true;\n } else {\n this.disableNextMonthButton = false;\n }\n }\n\n connectedCallback() {}\n\n disconnectedCallback() {}\n\n componentWillLoad() {}\n\n /**\n * Get the dates to render, including the days from the previous and next months.\n * @returns The dates to render.\n */\n private getDates() {\n const lastDayOfMonth = getLastDayOfMonth(this.month);\n const firstDayOfMonth = getFirstDayOfMonth(this.month);\n\n return timeDay.range(timeDay.offset(firstDayOfMonth, -firstDayOfMonth.getDay()), timeDay.offset(lastDayOfMonth, 7 - lastDayOfMonth.getDay()));\n }\n\n /**\n * Select a date.\n * @param date The date to select.\n */\n private selectDate(date?: Date) {\n this.dateSelected.emit(date);\n }\n\n /**\n * Change the month.\n * @param change The change in months.\n */\n private changeMonth(change: number) {\n this.month = new Date(this.month.getFullYear(), this.month.getMonth() + change, 1);\n const nextMonth = new Date(this.month.getFullYear(), this.month.getMonth() + 1, 1);\n const availableDaysInFuture = this.configSettings?.scheduler?.available_days_in_future;\n const endDate = addDaysToCurrentDate(new Date(), availableDaysInFuture);\n if (endDate.getTime() < nextMonth.getTime()) {\n this.disableNextMonthButton = true;\n } else {\n this.disableNextMonthButton = false;\n }\n this.dates = this.getDates();\n this.monthChanged.emit(this.month);\n // unset selected date when changing month\n this.selectDate();\n }\n\n private isSelected(date: Date | undefined, selectedDate: Date | undefined, selectableDates: Date[] | undefined) {\n return date && selectedDate && isSameDay(date, selectedDate) && selectableDates && selectableDates?.length > 0;\n }\n\n private isDisabled(date: Date | undefined, selectableDates: Date[] | undefined) {\n return date && selectableDates?.find(d => isSameDay(d, date)) === undefined;\n }\n\n @RegisterComponent<NylasDatePicker, NylasSchedulerConnector, Exclude<NylasScheduling['stores'], undefined>>({\n name: 'nylas-date-picker',\n stateToProps: new Map([\n ['scheduler.selectableDates', 'selectableDates'],\n ['scheduler.selectedDate', 'selectedDate'],\n ['scheduler.isLoading', 'isLoading'],\n ['scheduler.configSettings', 'configSettings'],\n ['scheduler.eventDuration', 'eventDuration'],\n ]),\n eventToProps: {\n dateSelected: async (event: CustomEvent<Date>, nylasSchedulerConnector: NylasSchedulerConnector) => {\n nylasSchedulerConnector.scheduler.selectDate(event.detail);\n },\n },\n fireRegisterEvent: true,\n })\n render() {\n return (\n <Host part=\"ndp\">\n <div class=\"nylas-date-picker\">\n <div class=\"title\" part=\"'ndp__title\">\n {this.configSettings?.organizer?.name && (\n <h1>\n <person-icon />\n {this.configSettings?.organizer?.name || 'Organizer'}\n </h1>\n )}\n <p>\n <clock-icon />\n {this.eventDuration ? convertMinutesToHoursAndMinutes(this.eventDuration) : `- minutes`}\n </p>\n </div>\n <div class={'header flex-row'}>\n <h2 part={'ndp__month-header'}>\n <strong>{this.month.toLocaleDateString(undefined, { month: 'long' })}</strong>\n &nbsp;\n {this.month.toLocaleDateString(undefined, { year: 'numeric' })}\n </h2>\n <div class={'pagination'}>\n <button\n onClick={() => this.changeMonth(-1)}\n class={{ 'chevron-left': true, 'button': true }}\n disabled={!this.selectableDates?.length || this.month <= new Date()}\n part=\"ndp__month-button\"\n >\n <chevron-icon />\n </button>\n <button onClick={() => this.changeMonth(1)} class={{ 'chevron-right': true, 'button': true }} disabled={this.disableNextMonthButton} part=\"ndp__month-button\">\n <chevron-icon />\n </button>\n </div>\n </div>\n\n <div class={'dates'}>\n {['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'].map(day => {\n return (\n <div class={'day'} part=\"ndp__day\">\n {day}\n </div>\n );\n })}\n {this.dates.map((date, i) => {\n const isDisabled = this.isDisabled(date, this.selectableDates);\n\n if (this.isLoading) {\n return (\n <button\n disabled\n class={{\n 'date day-skeleton': true,\n 'current-month': isSameMonth(date, this.month),\n }}\n style={{ animationDelay: `${i * 20}ms` }}\n part={'ndp__date'}\n >\n {date.getDate()}\n </button>\n );\n }\n return (\n <button\n class={{\n 'date': true,\n 'selected': !!(this.selectedDate && isSameDay(date, this.selectedDate) && this.selectableDates && this.selectableDates?.length > 0),\n 'current-day': isSameDay(date, new Date()),\n 'current-month': isSameMonth(date, this.month),\n }}\n aria-lang={date.toLocaleDateString(undefined, { dateStyle: 'full' })}\n disabled={isDisabled}\n onClick={() => this.selectDate(date)}\n part={`ndp__date ${this.isSelected(date, this.selectedDate, this.selectableDates) ? 'ndp__date--selected' : ''} ${isSameDay(date, new Date()) ? 'ndp__date--current-day' : ''} ${isSameMonth(date, this.month) ? 'ndp__date--current-month' : ''}`}\n >\n {date.getDate()}\n </button>\n );\n })}\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -63,13 +63,13 @@ export class NylasLocaleSwitch {
63
63
  label: LANGUAGE_MAP[key],
64
64
  value: key,
65
65
  }));
66
- return (h(Host, { key: 'b568b75977c586e88d88d69ce6a4b7651fd6123b' }, h("div", { key: '95b12f2d96e46b31ed606c85c4fe3151861d188c', class: "nylas-locale-switch" }, h("div", { key: 'd44690dae20a0068ffe55ab87024c8e283acaa6c', class: {
66
+ return (h(Host, { key: '2d50a22ae8502ec3c6062da3cbbeb0bb6f0fcb8b' }, h("div", { key: '8725370edb7b3fb70264586c8d6bf4cc7c8f6220', class: "nylas-locale-switch" }, h("div", { key: 'da5375359f87b3f1fc5c3ec9f094c76886a1a401', class: {
67
67
  'select-wrapper': true,
68
68
  'timezone': true,
69
- } }, h("select-dropdown", { key: '09b895b074f36381567d439869b68d8e10869b2a', name: "timezone", options: timezoneOptions, defaultSelectedOption: timezoneOptions.find(op => op.value == this.selectedTimezone) }, h("span", { key: '72a40810ca3d7a59b0e8d76be62c63f70c1cf183', slot: "select-icon" }, h("globe-icon", { key: '01dedea1be14b299cf447085b5778663015b2e2d', width: "20", height: "20" })))), h("div", { key: '2b4078132bc366f7784648cce51fe0ee33467d06', class: {
69
+ } }, h("select-dropdown", { key: '3633e969f27a301b59ad64afb9f63a0bf19afcc6', name: "timezone", options: timezoneOptions, defaultSelectedOption: timezoneOptions.find(op => op.value == this.selectedTimezone) }, h("span", { key: '97db913cf64de05eb986fdea378a17948ead2527', slot: "select-icon" }, h("globe-icon", { key: 'ee73e4c113c23614a7084cb1f19e2d6149fd3185', width: "20", height: "20" })))), h("div", { key: '04245f7d6c51994197ff107f064632d5c8050e65', class: {
70
70
  'select-wrapper': true,
71
71
  'language': true,
72
- } }, h("select-dropdown", { key: 'eb73c3eb853aba5c0acde42bf49dd09c19f1d43b', name: "language", options: languageOptions, defaultSelectedOption: languageOptions.find(lang => lang.value == this.selectedLanguage) }, h("span", { key: 'b2b1b5e1d8d2b85e67615c6f63a69ac955e3fc16', slot: "select-icon" }, h("translate-icon", { key: '161bb7dad0a08d8362c5c3cdd85238d732e5888c', width: "20", height: "20" })))))));
72
+ } }, h("select-dropdown", { key: '55ed837e54b69f9db0548c9c4e4c6e5211ef577a', name: "language", options: languageOptions, defaultSelectedOption: languageOptions.find(lang => lang.value == this.selectedLanguage) }, h("span", { key: '43b4d67e865a27842998a796f8d12e0d9b5171eb', slot: "select-icon" }, h("translate-icon", { key: 'c393677712c3528f162bc5700368deb4dd6a197c', width: "20", height: "20" })))))));
73
73
  }
74
74
  static get is() { return "nylas-locale-switch"; }
75
75
  static get encapsulation() { return "shadow"; }
@@ -47,7 +47,7 @@ export class NylasNotification {
47
47
  this.notifications = this.notifications.filter(notif => notif.id !== id);
48
48
  }
49
49
  render() {
50
- return (h(Host, { key: '9011372a63b5b706177dedf93b14df8158e14e04' }, h(Fragment, { key: 'd06168682c50f2b5330f8c923ecaec19dfc44add' }, this.notifications.map(notif => (h("div", { class: `notif ${notif.type}`, key: notif.id }, h("div", { class: "content" }, h("span", { class: `icon ${notif.type}` }, (notif.type === 'error' || notif.type === 'warning') && h("warning-icon", null)), h("span", { class: "message" }, h("span", { class: "title" }, notif.title), notif.description && h("span", { class: "description" }, notif.description))), h("button", { class: "dismiss-btn", onClick: () => this.dismissNotification(notif.id) }, h("close-icon", null))))), h("slot", { key: '6cfe1ecaea1c313ca1549d01b3b8c1627af0d8f2' }))));
50
+ return (h(Host, { key: 'b86593ead0279b9e2213c2554d1153379470880e' }, h(Fragment, { key: '860f23f3c6a0636b408d56806b11129c0a697418' }, this.notifications.map(notif => (h("div", { class: `notif ${notif.type}`, key: notif.id }, h("div", { class: "content" }, h("span", { class: `icon ${notif.type}` }, (notif.type === 'error' || notif.type === 'warning') && h("warning-icon", null)), h("span", { class: "message" }, h("span", { class: "title" }, notif.title), notif.description && h("span", { class: "description" }, notif.description))), h("button", { class: "dismiss-btn", onClick: () => this.dismissNotification(notif.id) }, h("close-icon", null))))), h("slot", { key: '6125314e051684b396d99a3c8bb9ba99392f2729' }))));
51
51
  }
52
52
  static get is() { return "nylas-notification"; }
53
53
  static get encapsulation() { return "shadow"; }
@@ -43,7 +43,7 @@ export class NylasSelectedEventCard {
43
43
  this.endTime = new Date(selectedTimeslot?.end_time).toLocaleString(undefined, { timeStyle: 'short' });
44
44
  }
45
45
  render() {
46
- return (h(Host, { key: '27aa2e0c4ea3a4ac04c24c3e7049360ab1da450c', part: "nsec" }, h("sp-theme", { key: '06a93ef1f378da9bf9c8eeb8cbb3b7ab912cbe39', theme: "spectrum", color: "dark", scale: "medium" }, h("div", { key: 'cbeab1951966e48db4e7c0e652946099377abfaa', class: "event-card", part: "nsec__card" }, h("div", { key: '014aed3ae5739ec763f3fe0ff7b94f859a35090c', class: "calendar-icon", part: "nsec__icon" }, h("calendar-icon", { key: 'b19e2752e3b87c07f14c23651416de2a1fa78ca5' })), h("div", { key: 'd4adee688565fcec2e217cc2b3ae8bb2d2572630', class: "nylas-selected-event-card__date", part: "nsec__date" }, this.selectedDate?.toLocaleDateString(undefined, { dateStyle: 'full' })), h("div", { key: 'c9f15e73f1cf65d6df1739fe348abd9fe50c34d9', class: "nylas-selected-event-card__time", part: "nsec__time" }, this.startTime, " - ", this.endTime)), h("div", { key: '531c381692eefac442a0646d4584f9cf2a51808e', class: "event-timezone", part: "nsec__timezone" }, h("globe-icon", { key: 'd6d7225298063ab5d5005f2c0a8d2a57de0d1a27' }), TIMEZONE_MAP[this.selectedTimezone]))));
46
+ return (h(Host, { key: 'ae635bed01604ece8f012b82c00fa7d4b6bc4c3d', part: "nsec" }, h("sp-theme", { key: 'edcbe79ce2a87e920bd88714b3a5a747d4a80747', theme: "spectrum", color: "dark", scale: "medium" }, h("div", { key: '8c736e8a7ea756b2ef8ba316e0f2c0f38f3821fd', class: "event-card", part: "nsec__card" }, h("div", { key: '06c33c0fc54e893cbeb8c685503f73a74109ab33', class: "calendar-icon", part: "nsec__icon" }, h("calendar-icon", { key: '69617d50f58122aea2dd92e7ea26d5b2a984c2bf' })), h("div", { key: 'e4e53019bba6e23f2c5f0a5b8cde5336973d795d', class: "nylas-selected-event-card__date", part: "nsec__date" }, this.selectedDate?.toLocaleDateString(undefined, { dateStyle: 'full' })), h("div", { key: 'c838e6987d4c932471d27dca86c295f549f06a5d', class: "nylas-selected-event-card__time", part: "nsec__time" }, this.startTime, " - ", this.endTime)), h("div", { key: '3e0f9d170e593f39516d49e31fe0da1db49fe828', class: "event-timezone", part: "nsec__timezone" }, h("globe-icon", { key: '12f52fc23ec7d60d046078aceeb6fffba7283078' }), TIMEZONE_MAP[this.selectedTimezone]))));
47
47
  }
48
48
  static get is() { return "nylas-selected-event-card"; }
49
49
  static get encapsulation() { return "shadow"; }
@@ -85,11 +85,11 @@ export class NylasAdditionalParticipants {
85
85
  });
86
86
  }
87
87
  render() {
88
- return (h(Host, { key: '67454437ca6e9771da4373e293b8b1d468c79680' }, h("nylas-form-card", { key: '844913ba1bca33b83b0d7c0a89323ca48f5ce1dd' }, h("h3", { key: 'bbdbf1e9addc3238a013697bff343a1065758928', slot: "header-title", class: "nylas-additional-participants__title", part: "nap__title" }, "Additional participants"), h("p", { key: '37520f9fcc4996b9635821a52ed5d9c0350af88f', slot: "header-subtitle", class: "nylas-additional-participants__subtitle", part: "nap__subtitle" }, "Add anyone else who would be joining for this event."), h("div", { key: '76a8d8118f9012cced55357e4243b897ec41e385', slot: "content", class: "nylas-additional-participants__content" }, h("div", { key: 'bb5d6f6e7ebf486eb4c8395ff3ab971335d19750' }, this.participants.map((participant, index) => {
88
+ return (h(Host, { key: '30915e4727e68b0652fc265ced20a3fce93f94d7' }, h("nylas-form-card", { key: 'e652c77a0e382aeaab234593ad1cd8fa6cc1b858' }, h("h3", { key: 'ee6d3ac07461ef43976e32069cd978a2dc32ba96', slot: "header-title", class: "nylas-additional-participants__title", part: "nap__title" }, "Additional participants"), h("p", { key: '72d712c00b839ad8220ea23cce11cfc233cf14b5', slot: "header-subtitle", class: "nylas-additional-participants__subtitle", part: "nap__subtitle" }, "Add anyone else who would be joining for this event."), h("div", { key: '87b08e14dc5a16b2381728263e079c46545284f4', slot: "content", class: "nylas-additional-participants__content" }, h("div", { key: 'da67ac11f9c977007ce885531bcdcbf9c59aca0c' }, this.participants.map((participant, index) => {
89
89
  return (h("div", { class: 'nylas-additional-participants__input_group', part: "nap__input_group" }, h("label", null, participant.is_organizer ? 'Organizer' : `Participant ${index}`), h("div", { part: "nap__input_wrapper", class: `nylas-additional-participants__input_wrapper ${participant.is_organizer && 'nylas-additional-participants__input_wrapper_organizer'} ${participant.is_valid === false && 'nylas-additional-participants__input_wrapper_invalid'}` }, h("div", { class: { 'nylas-additional-participants__input': true, 'organizer': participant.is_organizer }, part: "nap__input" }, participant.is_organizer ? (h("input", { type: "text", value: participant.email, onInput: e => {
90
90
  this.onParticipantChange(e, index);
91
91
  }, readOnly: participant.is_organizer, onBlur: () => this.validate(participant.email, index) })) : (h("input-dropdown", { name: `${index}`, filterable: true, inputValue: participant.email, options: this.getArrayDifference(this.participantOptions || [], this.participants) })), !participant.is_organizer && (h("button", { onClick: () => this.removeParticipant(index), part: "nap__remove-participant" }, h("close-icon", null)))))));
92
- })), h("button", { key: '14febbe15dc97b44304e98c14d7e084ea5126304', class: "nylas-additional-participants__add", part: "nap__add-participant", onClick: () => this.addParticipant() }, h("add-circle-icon", { key: '8f60f39d5d3b3b4532a78eacb0d4bf907a8b7836' }), " ", h("span", { key: '8e2c9a49072d04ab571470c68c3277a76706e60e' }, "Add ", this.participants.length > 1 ? 'another' : 'a', " participant"))))));
92
+ })), h("button", { key: 'dd0f412f9affa5cf2b3ab5a331365d5b217e1ade', class: "nylas-additional-participants__add", part: "nap__add-participant", onClick: () => this.addParticipant() }, h("add-circle-icon", { key: '089167b221913ef3e0393efa23db2698a93b3e73' }), " ", h("span", { key: '70860b8258a871e714f2f33890d35ec46835f349' }, "Add ", this.participants.length > 1 ? 'another' : 'a', " participant"))))));
93
93
  }
94
94
  static get is() { return "nylas-additional-participants"; }
95
95
  static get encapsulation() { return "shadow"; }
@@ -298,7 +298,7 @@ export class NylasAvailabilityPicker {
298
298
  label: TIMEZONE_MAP[key],
299
299
  value: key,
300
300
  }));
301
- return (h(Host, { key: '81c6118e501f4424ce74cb81530a67f7896a7fca' }, h("div", { key: '6dbcda74a92e36089dfda5b11469c6619bb095e1', class: "nylas-availability-picker", part: "nap" }, !this.hideHeader && (h("div", { class: "header", part: "nap__header" }, h("h3", null, "General availability"), h("p", null, "Set your availability for scheduling meetings."))), h("div", { key: 'f217b53a7ddc2d0554a3c3e44e79580924dbaa43', class: "content" }, h("div", { key: 'fe3dcc1c1c5504e65babb72f7b92f7954e3d4a20', class: "select-timezone", part: "nap__select-timezone" }, h("h4", { key: '0746b7a08e56b8d2359ae37357b46b84b440851c', class: "sub-header" }, "Select timezone", h("span", { key: 'f6d5424b939bec04d0ab01e3b037a5db6ffdbb77', class: "icon" }, h("tooltip-component", { key: '7f6371d4e3ee3ab8c841d3799fbe77a1206084eb' }, h("info-icon", { key: 'ae2b6f45b9eba0c26909b283daceafeddefc7936', slot: "tooltip-icon" }), h("span", { key: '38cb9c51f61d0087216660e5b2a54f42a42663ae', slot: "tooltip-content" }, "Select your timezone for displaying availability.")))), h("select-dropdown", { key: 'e3467d03d104fe090d776bc03306d289de53cb60', name: "timezone", exportparts: "sd_dropdown: nap__timezone-container, sd_dropdown-button: nap__timezone-button, sd_dropdown-content: nap__timezone-dropdown-content", options: timezoneOptions, defaultSelectedOption: timezoneOptions.find(i => i.value === this.defaultTimezone) }, h("span", { key: 'afbee8547454b8eb1ba75a41056e1393fd60c2ec', slot: "select-icon" }, h("globe-icon", { key: '7bc82d7454658d2d0783a7d9422b76fb4083d14f', width: "20", height: "20" })))), h("div", { key: '2fd561856ac6731c16da239cd296545e256dd12d', class: "availability", part: "nap__availability" }, Object.keys(this.schedule).map(key => {
301
+ return (h(Host, { key: 'bb0a4148b2d9728d7a2a9fdab8359382dd1ae5d5' }, h("div", { key: '27c5e85931d318e6ec66a155faa78e021b570f70', class: "nylas-availability-picker", part: "nap" }, !this.hideHeader && (h("div", { class: "header", part: "nap__header" }, h("h3", null, "General availability"), h("p", null, "Set your availability for scheduling meetings."))), h("div", { key: 'f2b3434dc127fc19fe6fe915cdc5f4a9d12ba6e7', class: "content" }, h("div", { key: 'bd75cb0749168b32c6366aea6f4df5920d098ec7', class: "select-timezone", part: "nap__select-timezone" }, h("h4", { key: '0c74924a291afaa07ff5b06781720a8cbadeea4d', class: "sub-header" }, "Select timezone", h("span", { key: '64933b3f6623f2d0b13559406db3d14afa99e0b6', class: "icon" }, h("tooltip-component", { key: '09c42633826e0ad358b4877f7d48bb70ce7ca518' }, h("info-icon", { key: '9ea9340b193710d759e71081e59ad6ccf762e4a8', slot: "tooltip-icon" }), h("span", { key: '83e596171dc8fb74543b21e957855f9cd32423b1', slot: "tooltip-content" }, "Select your timezone for displaying availability.")))), h("select-dropdown", { key: 'd65b32234b1669a5e7bef4b88024f50548011b98', name: "timezone", exportparts: "sd_dropdown: nap__timezone-container, sd_dropdown-button: nap__timezone-button, sd_dropdown-content: nap__timezone-dropdown-content", options: timezoneOptions, defaultSelectedOption: timezoneOptions.find(i => i.value === this.defaultTimezone) }, h("span", { key: '3387e2d39b7a052557d7668d5a7822fda1440da7', slot: "select-icon" }, h("globe-icon", { key: 'e92459b2ce063e199d8685f5a422a88e7a50fbd6', width: "20", height: "20" })))), h("div", { key: 'd510d9538189898f52e56388d661158e243fc8dd', class: "availability", part: "nap__availability" }, Object.keys(this.schedule).map(key => {
302
302
  const day = key;
303
303
  const timeRanges = this.schedule[key];
304
304
  return (h("div", { class: "availability-day" }, h("div", { class: "day", part: "nap__day" }, h("input", { type: "checkbox", name: day, id: day, checked: timeRanges.length > 0, onClick: () => {
@@ -53,7 +53,7 @@ export class NylasCancellationPolicy {
53
53
  this.valueChanged.emit({ value: value, name: this.name });
54
54
  }
55
55
  render() {
56
- return (h(Host, { key: '9ad194925cfb18c323d3f75aec51c4ac5ad67230' }, h("div", { key: 'a4ae061a504a0cd6a91dd6dd23adcf7c3b8f43d5', class: "nylas-cancellation-policy", part: "ncpolicy" }, h("label", { key: 'ea742ee8fba2e50a5694c210172e8783fa3d5e7b', htmlFor: this.name }, "Cancellation policy message", h("span", { key: '5c7143f8da100b650aa386c9fb895c3fd9ed2e04', class: "label-icon" }, h("tooltip-component", { key: 'f46c7b94a1a58bd7162e5cfffc14a88b04a18a4c' }, h("info-icon", { key: '9d85ce578da1db7b080f3152b8fdb43834968829', slot: "tooltip-icon" }), h("span", { key: '0e4d0c4f98d1529179622c22fa6bf9d56d085ffb', slot: "tooltip-content" }, "Attendees receive this message if trying to cancel the event. Attendees are asked to provide a reason for cancellation.")))), h("textarea", { key: '570404ef8450c4ef2bb28fad4d1c6359b735abae', id: this.name, part: "ncpolicy__textarea", name: this.name, value: this.message, maxlength: "250", onInput: e => this.handleChange(e) }))));
56
+ return (h(Host, { key: '7a57476ea21860b39103ab43f8b86a5804ddc055' }, h("div", { key: '67d7d2c00b2b658778dabe316a4512472bddf435', class: "nylas-cancellation-policy", part: "ncpolicy" }, h("label", { key: '2f0abff08c2485c93efaf6202a5c9720107f11d1', htmlFor: this.name }, "Cancellation policy message", h("span", { key: '2c16d52ce3b6fea15f23e57d50afe55872f920d6', class: "label-icon" }, h("tooltip-component", { key: '8bde2b6a884e8d180ef7296bbf29322df14128ef' }, h("info-icon", { key: 'cffadcf00bc6c3b07dffeb633bf87b423d6f4c59', slot: "tooltip-icon" }), h("span", { key: '5c37fbce026bb6f5a37f7867236fc27284323c42', slot: "tooltip-content" }, "Attendees receive this message if trying to cancel the event. Attendees are asked to provide a reason for cancellation.")))), h("textarea", { key: '0f492885372a90650104bbb4679cde1374296504', id: this.name, part: "ncpolicy__textarea", name: this.name, value: this.message, maxlength: "250", onInput: e => this.handleChange(e) }))));
57
57
  }
58
58
  static get is() { return "nylas-cancellation-policy"; }
59
59
  static get encapsulation() { return "shadow"; }
@@ -81,7 +81,7 @@ export class NylasCustomBookingFlow {
81
81
  value: 'pre-booking',
82
82
  },
83
83
  ];
84
- return (h(Host, { key: '6202233ce5955be9542db05e648ef2ea2d8c45c2' }, h("div", { key: '990ca595cc8f541902a4bccc7b0bf7f9f029c32a', class: "nylas-custom-booking-flow", part: "ncbf" }, h("div", { key: 'fc8e126be280ce56f968b4759ce549ebfcba5883', class: "header", part: "ncbf__header" }, h("h3", { key: 'b08624ee0a3fbb31c136be140e7c63d2862ae55d' }, "Customize booking flow"), h("p", { key: '0a21993fc37169030332858b01a6b4a4ad838424' }, "Customize how new bookings are handled when a booking is completed.")), bookingOptions.length > 0 ? (h("div", { class: "nylas-custom-booking-flow__dropdown" }, h("span", { class: "label" }, "After a booking is confirmed", h("tooltip-component", null, h("info-icon", { slot: "tooltip-icon" }), h("span", { slot: "tooltip-content" }, "Choose how you\u2019d like to handle new bookings. If you choose to manually confirm/decline bookings, you will be able to review and accept or decline each booking request."))), h("select-dropdown", { name: "booking-type", options: bookingOptions, withSearch: false, exportparts: "sd_dropdown: ncbf__dropdown, sd_dropdown-button: ncbf__dropdown-button, sd_dropdown-content: ncbf__dropdown-content", defaultSelectedOption: bookingOptions.find(cal => cal.value == this.bookingType) ?? bookingOptions[0] }))) : (h("div", { class: "nylas-custom-booking-flow__loading" }, h("span", { class: "label" }, "Select a calendar to book meetings on ", h("info-icon", null)), h("div", { class: "loading-button" }, h("span", null, "Loading...")))))));
84
+ return (h(Host, { key: '2e2a26ab26a63e7855a8d3280be056ee0d9f58bf' }, h("div", { key: 'ae1a111bf526645d268e7fb5a01d755140b99e70', class: "nylas-custom-booking-flow", part: "ncbf" }, h("div", { key: '1b8de2d86c1e6df2ac34b6cb27e01692829dca5e', class: "header", part: "ncbf__header" }, h("h3", { key: '166f032b49b2f6bc2f05271633ac9a64d246146f' }, "Customize booking flow"), h("p", { key: '23011ab13b85225b9042f8f84672cd688c93f16f' }, "Customize how new bookings are handled when a booking is completed.")), bookingOptions.length > 0 ? (h("div", { class: "nylas-custom-booking-flow__dropdown" }, h("span", { class: "label" }, "After a booking is confirmed", h("tooltip-component", null, h("info-icon", { slot: "tooltip-icon" }), h("span", { slot: "tooltip-content" }, "Choose how you\u2019d like to handle new bookings. If you choose to manually confirm/decline bookings, you will be able to review and accept or decline each booking request."))), h("select-dropdown", { name: "booking-type", options: bookingOptions, withSearch: false, exportparts: "sd_dropdown: ncbf__dropdown, sd_dropdown-button: ncbf__dropdown-button, sd_dropdown-content: ncbf__dropdown-content", defaultSelectedOption: bookingOptions.find(cal => cal.value == this.bookingType) ?? bookingOptions[0] }))) : (h("div", { class: "nylas-custom-booking-flow__loading" }, h("span", { class: "label" }, "Select a calendar to book meetings on ", h("info-icon", null)), h("div", { class: "loading-button" }, h("span", null, "Loading...")))))));
85
85
  }
86
86
  static get is() { return "nylas-custom-booking-flow"; }
87
87
  static get encapsulation() { return "shadow"; }
@@ -89,7 +89,7 @@ export class NylasCustomizeBookingSettings {
89
89
  }), this.name);
90
90
  }
91
91
  render() {
92
- return (h(Host, { key: '98e7ab408f5d7dff71321819cbc2a5e336ca52de' }, h("div", { key: 'ea73803234b4843cf7e58dc2570171e0237ea7d1', class: "nylas-customize-booking-settings", part: "ncbs" }, h("div", { key: '9b081de7e2d2152b874a5a4713a5313c6e021409', class: "header", part: "ncbs__header" }, h("h3", { key: '976be7412b4f8d70269c3b429652fa1091da1457' }, "Additional settings"), h("p", { key: 'f580ed5fd9c29773715bf26f5dc0c466c56ba43f' }, "Booking settings for the event.")), h("div", { key: '9e694bcf133167fa12efbd46bee02158b56e9777', class: "nylas-customize-booking-settings__settings", part: "ncbs__settings" }, h("div", { key: '39d4154e12c7f5cf96f04ca3fc3e0f17d0e8b2ec', class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__additional_guests" }, h("checkbox-component", { key: '61f11b632388d036622078f76f2d90370458b152', name: "hide_additional_guests", label: "Allow guests to invite additional guests.", checked: this.allowGuestsToInvite }, h("span", { key: '14573cca344d64ddfddebe6f402321a52fcce6ee', slot: "label", class: "label" }, h("p", { key: '64790dee39a090a778479a7eb3b1efcd14054bb9', class: "label-contents" }, "Allow guests to invite additional guests to the booking."), h("tooltip-component", { key: '564c56d4f159e11bf82b02eaab43b36ef9dd7117', id: "guests" }, h("info-icon", { key: 'a442aac8c9d930dc6be00a07fb6cd32b39cbd24b', slot: "tooltip-icon" }), h("span", { key: '6a9eff50392213a42be00c99f0f78d5e2d8eb0f4', slot: "tooltip-content" }, "Allow guests to invite additional guests to the event. If enabled, the guest will be able to add additional guests' email addresses."))))), h("div", { key: 'e7d58c8c04cd715bd02fd4dcc14073ce1f6aaf08', class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__rescheduling_options" }, h("checkbox-component", { key: '3f5c22d363bb11012b8514f5a33871a3f054fc80', name: "hide_rescheduling_options", label: "Hide 'Reschedule' option on booking page and emails.", checked: this.hideReschedulingOptions }, h("span", { key: '2ed45b907aa847c41da5a0e394b0b5ddb91a3e26', slot: "label", class: "label" }, h("p", { key: 'a1fc109c7211d387426d66ac9129fad25032565b', class: "label-contents" }, "Hide the\u00A0", h("strong", { key: 'ac79eec03a85d1963ac4e75b0fbf678f4a063776' }, "Reschedule"), "\u00A0button on the Scheduling Page and in the email notifications."), h("tooltip-component", { key: 'd8f41e37b915c0be9154a475da07d5ed343d96b4', id: "reschedule" }, h("info-icon", { key: 'fbb3f300f4276bd249f9cf12d11c4b6467c82247', slot: "tooltip-icon" }), h("span", { key: '689b3c36070c26e6d6bac530a56008404354e43b', slot: "tooltip-content" }, "Hide the 'Reschedule' button on the Scheduling page and in the email notifications. If enabled, the guest will not be able to reschedule the booking."))))), h("div", { key: 'f21aeca85fbb63da4d844d37cf87ff1e8d48f001', class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__cancellation_options" }, h("checkbox-component", { key: 'be80ca87a198de83451085fceca77b4d2455357d', name: "hide_cancellation_options", label: "Hide 'Cancel' option on booking page and emails.", checked: this.hideCancellationOptions }, h("span", { key: '80e718e75b94562d3b8c4a3d9f170ee2de0c2c1b', slot: "label", class: "label" }, h("p", { key: 'd46dfe25aa86b112f5c57abe3337de6d88a79c90', class: "label-contents" }, "Hide the\u00A0", h("strong", { key: 'ac243fbb7a3c85c8ab3af28b61ae2724c428ac3e' }, "Cancel"), "\u00A0button on the Scheduling Page and in the email notifications."), h("tooltip-component", { key: 'b720fc3becba6ca2cc71d01bb77c19ec154b1aa1', id: "cancel" }, h("info-icon", { key: '5ab491a0734fe525ad2be3e2ad067cb292cce182', slot: "tooltip-icon" }), h("span", { key: '4621e731c10b515294641be4f9ee60142b46f9c6', slot: "tooltip-content" }, "Hide the 'Cancel' button on the Scheduling page and in the email notifications. If enabled, the guest will not be able to cancel the booking.")))))))));
92
+ return (h(Host, { key: '543f4fc64d9dab03c528c5738cd4c1b1bb9cfd2a' }, h("div", { key: 'e3f153847ad5256327952d4be0aace03543b1d40', class: "nylas-customize-booking-settings", part: "ncbs" }, h("div", { key: '5b35f27785f6f6bc8e8848d94857869b73108df0', class: "header", part: "ncbs__header" }, h("h3", { key: 'd50a9614e3b0b5227a196356a43f12aab4acb158' }, "Additional settings"), h("p", { key: 'f29bbb165479e276cf87087582e9c60eb21c37d1' }, "Booking settings for the event.")), h("div", { key: 'd091485f983d0cc3ff86e7ca89df8d75526d3cef', class: "nylas-customize-booking-settings__settings", part: "ncbs__settings" }, h("div", { key: '7f7888a718a70a681795e599075c92cfbc16853a', class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__additional_guests" }, h("checkbox-component", { key: 'e37474d77812d96fe264d26c329078502c074dbe', name: "hide_additional_guests", label: "Allow guests to invite additional guests.", checked: this.allowGuestsToInvite }, h("span", { key: '00b45833c0223e373edf0b42669e4a154938b1eb', slot: "label", class: "label" }, h("p", { key: 'e66de8b9f53230347417a8ec0a7ae7a19af9db31', class: "label-contents" }, "Allow guests to invite additional guests to the booking."), h("tooltip-component", { key: '1ba5558e1991235c21f57ca1968220ea7bf43fcb', id: "guests" }, h("info-icon", { key: '3e62cc64cc55eb3dd4d0a73cef80a64c8dc9c38f', slot: "tooltip-icon" }), h("span", { key: '3853d0d575be29420ea012c90b0a2c07913a86a7', slot: "tooltip-content" }, "Allow guests to invite additional guests to the event. If enabled, the guest will be able to add additional guests' email addresses."))))), h("div", { key: '92e209a924673d8b1dee03475ffabfea5d9bf09b', class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__rescheduling_options" }, h("checkbox-component", { key: 'f7b522c07700938d25b17e14d236edb2aae12b21', name: "hide_rescheduling_options", label: "Hide 'Reschedule' option on booking page and emails.", checked: this.hideReschedulingOptions }, h("span", { key: '590cb5d983ff6eef95ebb370b845e1cc8e3080e4', slot: "label", class: "label" }, h("p", { key: '8f2d2742976e21a81268c793ae1c6c9dafdcecc3', class: "label-contents" }, "Hide the\u00A0", h("strong", { key: '4b01f75e4067d7c8d26ca785d5c6ad841633130c' }, "Reschedule"), "\u00A0button on the Scheduling Page and in the email notifications."), h("tooltip-component", { key: '8a157115569a4413143779c9e09c8389394973f9', id: "reschedule" }, h("info-icon", { key: 'b3a2c734d2d7a303d1d4d2622b51113aa7d3dfaf', slot: "tooltip-icon" }), h("span", { key: '2d08ceb49e744787da6863d72cf2c6df50f1a7cc', slot: "tooltip-content" }, "Hide the 'Reschedule' button on the Scheduling page and in the email notifications. If enabled, the guest will not be able to reschedule the booking."))))), h("div", { key: '6bc7f1a30a750ba85453d852f6f7e05c0513673d', class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__cancellation_options" }, h("checkbox-component", { key: '089ca174d8aabb26d87f5bb8cb871b9e82b7c04f', name: "hide_cancellation_options", label: "Hide 'Cancel' option on booking page and emails.", checked: this.hideCancellationOptions }, h("span", { key: '9ec50185d728baddbe0805eaeff057686b153bea', slot: "label", class: "label" }, h("p", { key: '118c1c3cc06dba90f451711aba0dde3efeeec9f0', class: "label-contents" }, "Hide the\u00A0", h("strong", { key: 'c1a26aa5c832fba488d60fc3af5a3c000ada144d' }, "Cancel"), "\u00A0button on the Scheduling Page and in the email notifications."), h("tooltip-component", { key: 'b70473d1e93c11d9b05a9dcec67d77795638bbeb', id: "cancel" }, h("info-icon", { key: '2f0d812ac9fb7a52260b601c590b7a629036ea7c', slot: "tooltip-icon" }), h("span", { key: '4c5b3b51b57761a377ccfa7f66d6d69486d8cb11', slot: "tooltip-content" }, "Hide the 'Cancel' button on the Scheduling page and in the email notifications. If enabled, the guest will not be able to cancel the booking.")))))))));
93
93
  }
94
94
  static get is() { return "nylas-customize-booking-settings"; }
95
95
  static get encapsulation() { return "shadow"; }
@@ -33,7 +33,24 @@ export class NylasEditorTabs {
33
33
  this.hasUnsavedChanges = false;
34
34
  const formState = this.updateFormState();
35
35
  const { title, description, duration, availability, calendarIds, bookingCalendar, location, bookingType, buffer, availableDaysInFuture, minCancellationNotice, minBookingNotice, cancellationPolicy, timeslotInterval, additionalGuestsHidden, hideCancellationOptions, hideReschedulingOptions, participants, participantOpenHours, } = formState;
36
+ const organizer = this.selectedConfiguration?.participants?.find(p => p.is_organizer);
36
37
  const durationMinutes = duration ? parseInt(duration) : 30;
38
+ const participantsList = participants && participants?.length > 0
39
+ ? participants
40
+ : [
41
+ {
42
+ name: organizer?.name ?? this.currentUser?.name ?? organizer?.email ?? this.currentUser?.email ?? '',
43
+ email: organizer?.email ?? this.currentUser?.email ?? '',
44
+ is_organizer: true,
45
+ availability: {
46
+ calendar_ids: calendarIds?.length ? calendarIds : ['primary'],
47
+ open_hours: [],
48
+ },
49
+ booking: {
50
+ calendar_id: bookingCalendar && bookingCalendar !== '' ? bookingCalendar : 'primary',
51
+ },
52
+ },
53
+ ];
37
54
  const configObject = {
38
55
  ...(this.selectedConfiguration?.id && { id: this.selectedConfiguration.id }),
39
56
  version: this.selectedConfiguration?.version ?? '1.0.0',
@@ -49,7 +66,7 @@ export class NylasEditorTabs {
49
66
  },
50
67
  },
51
68
  participants: [
52
- ...(participants?.map(p => {
69
+ ...participantsList?.map(p => {
53
70
  if (p.is_organizer) {
54
71
  return {
55
72
  name: p.name ?? p.email,
@@ -71,7 +88,7 @@ export class NylasEditorTabs {
71
88
  open_hours: participantOpenHours?.[p.email] ?? p.availability?.open_hours ?? [],
72
89
  },
73
90
  };
74
- }) ?? []),
91
+ }),
75
92
  ],
76
93
  event_booking: {
77
94
  title: title?.toString() ?? '',
@@ -251,22 +268,22 @@ export class NylasEditorTabs {
251
268
  render() {
252
269
  debug('[nylas-editor-tabs]', 'render', this.formState);
253
270
  const showParticipantsTab = localStorage.getItem('nylas') === 'Nylas Developer';
254
- return (h(Host, { key: 'ccfd780da5c6ce1688f60384796bbaa98fe6094d' }, h("form", { key: '2e5d1c16a5373a5b623869925a7cab71f52f98ce', onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: el => (this.formRef = el), noValidate: true }, this.mode === 'app' ? (h("div", { class: "form-contents" }, h("div", { class: "tabs" }, h("button", { class: { tab: true, active: this.activeTab == 'eventInfo' }, onClick: e => this.setActiveTab(e, 'eventInfo') }, h("calendar-info-icon", { width: "16", height: "16" }), "Event Info"), h("button", { class: { tab: true, active: this.activeTab == 'availability' }, onClick: e => this.setActiveTab(e, 'availability') }, h("calendar-patterns-icon", { width: "16", height: "16" }), "Availability"), h("button", { class: { tab: true, active: this.activeTab == 'bookingOptions' }, onClick: e => this.setActiveTab(e, 'bookingOptions') }, h("flow-icon", { width: "16", height: "16" }), "Booking Options"), showParticipantsTab && (h("button", { class: { tab: true, active: this.activeTab == 'participants' }, onClick: e => this.setActiveTab(e, 'participants') }, h("people-icon", { width: "16", height: "16" }), "Participants"))), h("div", { class: "tab-content" }, h(TabContents, { formState: this.formState, activeTab: this.activeTab, calendars: this.calendars, id: this.selectedConfiguration?.id ?? 'new' })))) : (h("slot", null)), h("div", { key: 'f11d2767c5fc65ad7a72f346e9b3940b8151d7a3', class: "footer" }, h("div", { key: '858c5dac4d006f28b05347be3feba2d6dd336b15', class: "preview" }, this.schedulerPreviewLink !== '' && this.action === 'edit' && (h("button-component", { type: "button", disabled: this.isLoading, clickHandler: event => {
271
+ return (h(Host, { key: '13aad28cba8de3b30e60d7a26849d30ef2578bb5' }, h("form", { key: '31e835f74ca7728d597148a18c840e0791c34c89', onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: el => (this.formRef = el), noValidate: true }, this.mode === 'app' ? (h("div", { class: "form-contents" }, h("div", { class: "tabs" }, h("button", { class: { tab: true, active: this.activeTab == 'eventInfo' }, onClick: e => this.setActiveTab(e, 'eventInfo') }, h("calendar-info-icon", { width: "16", height: "16" }), "Event Info"), h("button", { class: { tab: true, active: this.activeTab == 'availability' }, onClick: e => this.setActiveTab(e, 'availability') }, h("calendar-patterns-icon", { width: "16", height: "16" }), "Availability"), h("button", { class: { tab: true, active: this.activeTab == 'bookingOptions' }, onClick: e => this.setActiveTab(e, 'bookingOptions') }, h("flow-icon", { width: "16", height: "16" }), "Booking Options"), showParticipantsTab && (h("button", { class: { tab: true, active: this.activeTab == 'participants' }, onClick: e => this.setActiveTab(e, 'participants') }, h("people-icon", { width: "16", height: "16" }), "Participants"))), h("div", { class: "tab-content" }, h(TabContents, { formState: this.formState, activeTab: this.activeTab, calendars: this.calendars, id: this.selectedConfiguration?.id ?? 'new' })))) : (h("slot", null)), h("div", { key: 'e83274ed2d92f179c90564a21f80ba869d1033a2', class: "footer" }, h("div", { key: 'c661b7a0c024f7b8f1c916b55bc5784a10ee9958', class: "preview" }, this.schedulerPreviewLink !== '' && this.action === 'edit' && (h("button-component", { type: "button", disabled: this.isLoading, clickHandler: event => {
255
272
  event.preventDefault();
256
273
  const previewEvent = this.previewButtonClicked.emit(this.host);
257
274
  if (!previewEvent.defaultPrevented) {
258
275
  window.open(parsePreviewLink(this.schedulerPreviewLink, this.selectedConfiguration), '_blank');
259
276
  }
260
- }, variant: 'basic' }, "Preview"))), h("div", { key: 'c5225165887e64b467570a3f90222479fb259494', class: "buttons" }, h("p", { key: '50b2861f9c99e3dc91e58f77097fa753ba02cd1b', class: {
277
+ }, variant: 'basic' }, "Preview"))), h("div", { key: '78cb89dbbb6e124aaddf9b486834e81ab10ea70a', class: "buttons" }, h("p", { key: 'e07f651a081607471d067aa05a3858446725a6db', class: {
261
278
  'unsaved-changes': this.hasUnsavedChanges && !this.changesSaved,
262
279
  'saved-changes': this.changesSaved,
263
280
  'error': this.error !== '',
264
281
  'error-full-width': this.error !== '' && this.action === 'create',
265
- } }, this.error !== '' ? this.error : '', this.error == '' && this.hasUnsavedChanges && !this.changesSaved ? 'Unsaved changes' : this.error == '' && this.changesSaved ? 'Changes saved!' : ''), h("button-component", { key: '9934c2cf6faf7e74b135add1728e3524bc29e13f', type: "button", disabled: this.isLoading, clickHandler: event => {
282
+ } }, this.error !== '' ? this.error : '', this.error == '' && this.hasUnsavedChanges && !this.changesSaved ? 'Unsaved changes' : this.error == '' && this.changesSaved ? 'Changes saved!' : ''), h("button-component", { key: '66500ec7f10c2a5ecb6d98647766e2f31f030fe4', type: "button", disabled: this.isLoading, clickHandler: event => {
266
283
  event.preventDefault();
267
284
  this.cancelButtonClick.emit();
268
285
  this.error = '';
269
- }, variant: 'basic' }, "Cancel"), h("button-component", { key: '872f1a24204c38948d484b2bf99aa72d78ba7a37', type: "submit", disabled: this.isLoading }, this.isLoading ? (h("span", null, "Saving", h("loading-icon", null), ' ')) : this.action == 'create' ? ('Create') : ('Save changes')))))));
286
+ }, variant: 'basic' }, "Cancel"), h("button-component", { key: 'a816e4c9d7d1f53e09edf635f06c9a177bdcb15a', type: "submit", disabled: this.isLoading }, this.isLoading ? (h("span", null, "Saving", h("loading-icon", null), ' ')) : this.action == 'create' ? ('Create') : ('Save changes')))))));
270
287
  }
271
288
  static get is() { return "nylas-editor-tabs"; }
272
289
  static get encapsulation() { return "scoped"; }