@nylas/web-elements 2.6.0 → 2.6.2

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 (53) hide show
  1. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +961 -961
  2. package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +74 -70
  3. package/dist/cjs/google-logo-icon.microsoft-logo-icon.nylas-editor-tabs.nylas-editor-tabs-group.nylas-list-configurations.nylas-select-event-type.entry.cjs.js.map +1 -1
  4. package/dist/cjs/google-logo-icon_6.cjs.entry.js +8 -7
  5. package/dist/cjs/google-logo-icon_6.cjs.entry.js.map +1 -1
  6. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +1 -1
  7. package/dist/cjs/nylas-scheduling.cjs.entry.js +9 -6
  8. package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
  9. package/dist/cjs/nylas-scheduling.entry.cjs.js.map +1 -1
  10. package/dist/cjs/{version-CHszslqN.js → version-pNhv-OnX.js} +3 -3
  11. package/dist/cjs/{version-CHszslqN.js.map → version-pNhv-OnX.js.map} +1 -1
  12. package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js +7 -6
  13. package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js.map +1 -1
  14. package/dist/collection/connector/shared/api/scheduler.js +8 -5
  15. package/dist/collection/connector/shared/api/scheduler.js.map +1 -1
  16. package/dist/collection/version.js +1 -1
  17. package/dist/collection/version.js.map +1 -1
  18. package/dist/components/nylas-editor-tabs-group.js +1 -1
  19. package/dist/components/nylas-editor-tabs.js +1 -1
  20. package/dist/components/nylas-scheduler-editor.js +3 -3
  21. package/dist/components/nylas-scheduling.js +9 -6
  22. package/dist/components/nylas-scheduling.js.map +1 -1
  23. package/dist/components/{p-CNj6i-JK.js → p-BvUse-6u.js} +3 -3
  24. package/dist/components/{p-CNj6i-JK.js.map → p-BvUse-6u.js.map} +1 -1
  25. package/dist/components/{p-DTNmzKXY.js → p-CK_YvIAV.js} +10 -9
  26. package/dist/components/p-CK_YvIAV.js.map +1 -0
  27. package/dist/components/{p-Z5I7z8cD.js → p-CmX4JCsD.js} +3 -3
  28. package/dist/components/{p-Z5I7z8cD.js.map → p-CmX4JCsD.js.map} +1 -1
  29. package/dist/esm/google-logo-icon.microsoft-logo-icon.nylas-editor-tabs.nylas-editor-tabs-group.nylas-list-configurations.nylas-select-event-type.entry.js.map +1 -1
  30. package/dist/esm/google-logo-icon_6.entry.js +8 -7
  31. package/dist/esm/google-logo-icon_6.entry.js.map +1 -1
  32. package/dist/esm/nylas-scheduler-editor.entry.js +1 -1
  33. package/dist/esm/nylas-scheduling.entry.js +9 -6
  34. package/dist/esm/nylas-scheduling.entry.js.map +1 -1
  35. package/dist/esm/{version-CYTx0-4Z.js → version-D-6xYsvk.js} +3 -3
  36. package/dist/esm/{version-CYTx0-4Z.js.map → version-D-6xYsvk.js.map} +1 -1
  37. package/dist/nylas-web-elements/google-logo-icon.microsoft-logo-icon.nylas-editor-tabs.nylas-editor-tabs-group.nylas-list-configurations.nylas-select-event-type.entry.esm.js.map +1 -1
  38. package/dist/nylas-web-elements/nylas-scheduling.entry.esm.js.map +1 -1
  39. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  40. package/dist/nylas-web-elements/{p-CYTx0-4Z.js → p-D-6xYsvk.js} +2 -2
  41. package/dist/nylas-web-elements/{p-CYTx0-4Z.js.map → p-D-6xYsvk.js.map} +1 -1
  42. package/dist/nylas-web-elements/{p-5d3ae749.entry.js → p-a6909b16.entry.js} +2 -2
  43. package/dist/nylas-web-elements/p-d346e3fb.entry.js +2 -0
  44. package/dist/nylas-web-elements/p-d346e3fb.entry.js.map +1 -0
  45. package/dist/nylas-web-elements/{p-f5ccd7f3.entry.js → p-f831f2f7.entry.js} +2 -2
  46. package/dist/nylas-web-elements/{p-f5ccd7f3.entry.js.map → p-f831f2f7.entry.js.map} +1 -1
  47. package/dist/types/connector/shared/api/scheduler.d.ts +1 -0
  48. package/dist/types/version.d.ts +1 -1
  49. package/package.json +1 -1
  50. package/dist/components/p-DTNmzKXY.js.map +0 -1
  51. package/dist/nylas-web-elements/p-82b39e7c.entry.js +0 -2
  52. package/dist/nylas-web-elements/p-82b39e7c.entry.js.map +0 -1
  53. /package/dist/nylas-web-elements/{p-5d3ae749.entry.js.map → p-a6909b16.entry.js.map} +0 -0
@@ -3,7 +3,7 @@
3
3
  var index = require('./index-9TuL48qE.js');
4
4
  var registerComponent = require('./register-component-DjG8kzjz.js');
5
5
  var utils = require('./utils-BDriE9YY.js');
6
- var version = require('./version-CHszslqN.js');
6
+ var version = require('./version-pNhv-OnX.js');
7
7
  var feedbackSync = require('./feedbackSync-Bcx7mZ9-.js');
8
8
 
9
9
  const iconCss$1 = ".sc-google-logo-icon-h{display:flex}";
@@ -1363,6 +1363,7 @@ const NylasEditorTabsGroup = class {
1363
1363
  email: this.currentUser?.email ?? '',
1364
1364
  };
1365
1365
  const organizerDefaultCal = this.calendars?.find(c => c.is_primary) ?? this.calendars?.[0];
1366
+ const bookingCalendar = this.selectedConfiguration?.group_booking?.calendar_id || this.formState?.bookingCalendar;
1366
1367
  const conferencing = this.formState?.conferencing || formState.conferencing;
1367
1368
  const groupEvent = {
1368
1369
  title: formState.title,
@@ -1373,7 +1374,7 @@ const NylasEditorTabsGroup = class {
1373
1374
  conferencing: !formState.location ? conferencing : undefined,
1374
1375
  when: formState.eventTimeslot.when,
1375
1376
  recurrence: formState.eventTimeslot.recurrence,
1376
- calendar_id: organizerDefaultCal?.id || 'primary',
1377
+ calendar_id: bookingCalendar || organizerDefaultCal?.id || 'primary',
1377
1378
  capacity: formState.eventCapacity,
1378
1379
  };
1379
1380
  this.groupEventCreateTriggered.emit({ groupEvent, configId: this.selectedConfiguration?.id ?? '', host: this.host });
@@ -1547,9 +1548,9 @@ const NylasEditorTabsGroup = class {
1547
1548
  }
1548
1549
  render() {
1549
1550
  utils.debug('[nylas-editor-tabs-group]', 'render', this.formState);
1550
- return (index.h(index.Host, { key: '869e92e2e872d529e939ee02ab29b0f217dd5411' }, index.h("nylas-notification", { key: 'ef3ce9b6f973d2d8f43a47f97501aef8fa6df1a1' }), index.h("form", { key: 'c3c73ec6ccad275aa28a2febffb36f3ae8d07da1', onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: el => (this.formRef = el), noValidate: true }, this.mode === 'app' ? (index.h("div", { class: "return-to-calendar-view", part: "editor__return-to-calendar-view net__return-to-calendar-view" }, index.h("button-component", { id: "return-to-calendar-view-button", variant: "invisible", part: "nset__header__back-button", type: "button", onClick: e => {
1551
+ return (index.h(index.Host, { key: 'ea38ccddf3f79bc71c78d2066a6f883b874b9588' }, index.h("nylas-notification", { key: '167c3d1c5d213c237d24b8b4c7a0fedf52967fe0' }), index.h("form", { key: 'f694ba52e7cdb350620944ac8a8fa57285ef5eb6', onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: el => (this.formRef = el), noValidate: true }, this.mode === 'app' ? (index.h("div", { class: "return-to-calendar-view", part: "editor__return-to-calendar-view net__return-to-calendar-view" }, index.h("button-component", { id: "return-to-calendar-view-button", variant: "invisible", part: "nset__header__back-button", type: "button", onClick: e => {
1551
1552
  this.setActiveTab(e, TabGroup.CalendarView);
1552
- } }, index.h("chevron-icon", { width: "16", height: "16" }), index.h("span", null, utils.instance.t('returnToCalendarView'))))) : null, this.mode === 'app' ? (index.h("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, index.h("div", { class: "tabs", part: "editor__tabs net__tabs" }, index.h("button", { name: TabGroup.BookingOptions, class: { tab: true, active: this.activeTab == TabGroup.BookingOptions, hide: this.hideTab(TabGroup.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: e => this.setActiveTab(e, TabGroup.BookingOptions) }, index.h("flow-icon", { width: "16", height: "16" }), utils.instance.t('bookingOptionsTab')), index.h("button", { name: TabGroup.BookingForm, class: { tab: true, active: this.activeTab == TabGroup.BookingForm, hide: this.hideTab(TabGroup.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: e => this.setActiveTab(e, TabGroup.BookingForm) }, this.activeTab == TabGroup.BookingForm ? index.h("calendar-agenda-fill-icon", { width: "16", height: "16" }) : index.h("calendar-agenda-icon", { width: "16", height: "16" }), utils.instance.t('bookingFormTab')), index.h("button", { name: TabGroup.Communications, class: { tab: true, active: this.activeTab == TabGroup.Communications, hide: this.hideTab(TabGroup.Communications) }, onClick: e => this.setActiveTab(e, TabGroup.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == TabGroup.Communications ? index.h("envelope-fill-icon", { width: "16", height: "16" }) : index.h("envelope-icon", { width: "16", height: "16" }), utils.instance.t('communicationsTab')), index.h("button", { name: TabGroup.PageStyles, class: { tab: true, active: this.activeTab == TabGroup.PageStyles, hide: this.hideTab(TabGroup.PageStyles) }, onClick: e => this.setActiveTab(e, TabGroup.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == TabGroup.PageStyles ? index.h("paintbrush-fill-icon", { width: "16", height: "16" }) : index.h("paintbrush-icon", { width: "16", height: "16" }), utils.instance.t('pageStylesTab'))), index.h("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, index.h(TabContentsGroup, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: this.selectedConfiguration?.id ?? 'new', i18next: utils.instance })))) : (index.h("div", { class: "composable", key: this.selectedConfiguration?.id }, index.h("slot", null))), index.h("div", { key: 'cb2a83d7dd8772baa6120fb70495cbe14b5e878d', class: "footer", part: "editor__footer net__footer" }, index.h("div", { key: '073938c889c7ab4e0737171f6b3926ddc7b3e309', class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && (index.h("button-component", { key: '5d0d3460afb2d2500218328015bfa26be1c6501e', title: "Share your feedback", id: "report-issue", variant: 'basic', onClick: e => this.onFeedbackClick(e) }, index.h("feedback-icon", { key: '5de4e56012036525ea4b1ddf674d04fb5d657339' }))), this.activeTab === TabGroup.CalendarView && (index.h("button-component", { key: '1b645c72d8bf6e6a804f82de4a6f8c079b532199', class: "page-settings-button", title: "Go to page settings", id: "page-settings", variant: 'basic', onClick: e => this.setActiveTab(e, TabGroup.BookingOptions) }, utils.instance.t('pageSettingsButton')))), index.h("div", { key: 'e6a8c454f9ddd05b574c28a5c6801d2e4dc7d314', class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, index.h("p", { key: '2ad5f399b1b7b4c985d827842fdb577d5e79e713', class: {
1553
+ } }, index.h("chevron-icon", { width: "16", height: "16" }), index.h("span", null, utils.instance.t('returnToCalendarView'))))) : null, this.mode === 'app' ? (index.h("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, index.h("div", { class: "tabs", part: "editor__tabs net__tabs" }, index.h("button", { name: TabGroup.BookingOptions, class: { tab: true, active: this.activeTab == TabGroup.BookingOptions, hide: this.hideTab(TabGroup.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: e => this.setActiveTab(e, TabGroup.BookingOptions) }, index.h("flow-icon", { width: "16", height: "16" }), utils.instance.t('bookingOptionsTab')), index.h("button", { name: TabGroup.BookingForm, class: { tab: true, active: this.activeTab == TabGroup.BookingForm, hide: this.hideTab(TabGroup.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: e => this.setActiveTab(e, TabGroup.BookingForm) }, this.activeTab == TabGroup.BookingForm ? index.h("calendar-agenda-fill-icon", { width: "16", height: "16" }) : index.h("calendar-agenda-icon", { width: "16", height: "16" }), utils.instance.t('bookingFormTab')), index.h("button", { name: TabGroup.Communications, class: { tab: true, active: this.activeTab == TabGroup.Communications, hide: this.hideTab(TabGroup.Communications) }, onClick: e => this.setActiveTab(e, TabGroup.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == TabGroup.Communications ? index.h("envelope-fill-icon", { width: "16", height: "16" }) : index.h("envelope-icon", { width: "16", height: "16" }), utils.instance.t('communicationsTab')), index.h("button", { name: TabGroup.PageStyles, class: { tab: true, active: this.activeTab == TabGroup.PageStyles, hide: this.hideTab(TabGroup.PageStyles) }, onClick: e => this.setActiveTab(e, TabGroup.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == TabGroup.PageStyles ? index.h("paintbrush-fill-icon", { width: "16", height: "16" }) : index.h("paintbrush-icon", { width: "16", height: "16" }), utils.instance.t('pageStylesTab'))), index.h("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, index.h(TabContentsGroup, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: this.selectedConfiguration?.id ?? 'new', i18next: utils.instance })))) : (index.h("div", { class: "composable", key: this.selectedConfiguration?.id }, index.h("slot", null))), index.h("div", { key: '2710a1a5b8171f45353b4c11be8bc1dda5fc59f6', class: "footer", part: "editor__footer net__footer" }, index.h("div", { key: 'ed4e6aeaffaae30b58c0e3e036f5f2fe9be688a1', class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && (index.h("button-component", { key: '75768fba66c6b859640c980dac941f335ce5da3d', title: "Share your feedback", id: "report-issue", variant: 'basic', onClick: e => this.onFeedbackClick(e) }, index.h("feedback-icon", { key: 'ae527a14b68f25d618dedfd62817a77dba8ccafb' }))), this.activeTab === TabGroup.CalendarView && (index.h("button-component", { key: '55e84932280f05d34ffe21e318f5d20303954829', class: "page-settings-button", title: "Go to page settings", id: "page-settings", variant: 'basic', onClick: e => this.setActiveTab(e, TabGroup.BookingOptions) }, utils.instance.t('pageSettingsButton')))), index.h("div", { key: '8310493a3f546f63c5f83158ada3c770445c417b', class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, index.h("p", { key: 'e68a97fc9c63d770188a051f17d5f7995019d23f', class: {
1553
1554
  'unsaved-changes': this.hasUnsavedChanges && !this.changesSaved,
1554
1555
  'saved-changes': this.changesSaved,
1555
1556
  'error': this.error?.message !== '',
@@ -1558,17 +1559,17 @@ const NylasEditorTabsGroup = class {
1558
1559
  ? utils.instance.t('unsavedChangesLabel')
1559
1560
  : this.error?.message == '' && this.changesSaved
1560
1561
  ? `${utils.instance.t('changesSavedLabel')}!`
1561
- : ''), index.h("div", { key: '2b1a00bfcc1d82907531ca4f01c10f6fa0753af0', class: "footer-buttons__row" }, this.schedulerPreviewLink !== '' && this.action === 'edit' && (index.h("button-component", { key: 'd81f286280016c4a8ffc69837deafcfd62207ae1', title: "Preview", type: "button", disabled: this.isLoading, clickHandler: event => {
1562
+ : ''), index.h("div", { key: 'e6dfa99d7a54cff10fa614047da8eaf4a08c5cd1', class: "footer-buttons__row" }, this.schedulerPreviewLink !== '' && this.action === 'edit' && (index.h("button-component", { key: '5bcaceafb0093aee6e1b0e44e7d5fc50a55a3c3f', title: "Preview", type: "button", disabled: this.isLoading, clickHandler: event => {
1562
1563
  event.preventDefault();
1563
1564
  const previewEvent = this.previewButtonClicked.emit(this.host);
1564
1565
  if (!previewEvent.defaultPrevented) {
1565
1566
  window.open(utils.parsePreviewLink(this.schedulerPreviewLink, this.selectedConfiguration), '_blank');
1566
1567
  }
1567
- }, variant: 'basic' }, index.h("eye-icon", { key: 'cf209b590796ef5d6443fd737ebdb44a34497f23' }))), index.h("button-component", { key: 'bf52189b404bb4fe178ae92d17960da288b01478', type: "button", disabled: this.isLoading, clickHandler: event => {
1568
+ }, variant: 'basic' }, index.h("eye-icon", { key: '68616edbf7801220845a626b783721277ae7f679' }))), index.h("button-component", { key: 'd170b787eb6be708b6fa398606ebaccdbcdd5044', type: "button", disabled: this.isLoading, clickHandler: event => {
1568
1569
  event.preventDefault();
1569
1570
  this.cancelButtonClick.emit();
1570
1571
  this.host.resetError();
1571
- }, variant: 'basic', part: "editor__footer-cancel net__footer-cancel" }, utils.instance.t('cancelButton')), index.h("button-component", { key: '773685323c7b8c7c6472b7bdabada38699366f56', class: { 'save-changes': this.action === 'edit' }, type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, !this.componentLoaded ? (index.h("span", null, index.h("loading-icon", null), ' ')) : this.isLoading ? (index.h("span", null, utils.instance.t('savingButtonText'), index.h("loading-icon", null), ' ')) : this.action === 'create' ? (`${utils.instance.t('createButtonText')}`) : (`${utils.instance.t('saveChangesButtonText')}`)))))), this.showFeedbackModal && index.h("nylas-feedback-form", { key: '2cb934ae8a1d7483fec46d82ea5fa7d5050de4c0' })));
1572
+ }, variant: 'basic', part: "editor__footer-cancel net__footer-cancel" }, utils.instance.t('cancelButton')), index.h("button-component", { key: '4c224fa771c00a6d9a9ff568d9b807f4b8d8ea63', class: { 'save-changes': this.action === 'edit' }, type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, !this.componentLoaded ? (index.h("span", null, index.h("loading-icon", null), ' ')) : this.isLoading ? (index.h("span", null, utils.instance.t('savingButtonText'), index.h("loading-icon", null), ' ')) : this.action === 'create' ? (`${utils.instance.t('createButtonText')}`) : (`${utils.instance.t('saveChangesButtonText')}`)))))), this.showFeedbackModal && index.h("nylas-feedback-form", { key: 'e6d64c51da3e1ecf3219c9407c42e92c42e34d09' })));
1572
1573
  }
1573
1574
  get host() { return index.getElement(this); }
1574
1575
  static get watchers() { return {