@nylas/web-elements 2.5.8 → 2.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +1310 -1310
- package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +1 -1
- 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
- package/dist/cjs/google-logo-icon_6.cjs.entry.js +8 -7
- package/dist/cjs/google-logo-icon_6.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +1 -1
- package/dist/cjs/nylas-scheduling.cjs.entry.js +1 -1
- package/dist/cjs/{version-COZSykqO.js → version-CN5nqWgI.js} +3 -3
- package/dist/cjs/{version-COZSykqO.js.map → version-CN5nqWgI.js.map} +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +7 -6
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
- package/dist/collection/version.js +1 -1
- package/dist/collection/version.js.map +1 -1
- package/dist/components/nylas-editor-tabs-group.js +1 -1
- package/dist/components/nylas-editor-tabs.js +1 -1
- package/dist/components/nylas-scheduler-editor.js +3 -3
- package/dist/components/nylas-scheduling.js +1 -1
- package/dist/components/{p-DC7TgSr7.js → p-2vIl9-lT.js} +10 -9
- package/dist/components/p-2vIl9-lT.js.map +1 -0
- package/dist/components/{p-Bkt_Yg_U.js → p-BfwqDqHx.js} +3 -3
- package/dist/components/{p-Bkt_Yg_U.js.map → p-BfwqDqHx.js.map} +1 -1
- package/dist/components/{p-Bx4lojq9.js → p-DwzjmWk7.js} +3 -3
- package/dist/components/{p-Bx4lojq9.js.map → p-DwzjmWk7.js.map} +1 -1
- 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
- package/dist/esm/google-logo-icon_6.entry.js +8 -7
- package/dist/esm/google-logo-icon_6.entry.js.map +1 -1
- package/dist/esm/nylas-scheduler-editor.entry.js +1 -1
- package/dist/esm/nylas-scheduling.entry.js +1 -1
- package/dist/esm/{version-CwWcFRQ4.js → version-zgIeli_M.js} +3 -3
- package/dist/esm/{version-CwWcFRQ4.js.map → version-zgIeli_M.js.map} +1 -1
- 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
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/{p-ebdd566e.entry.js → p-6aa41c34.entry.js} +2 -2
- package/dist/nylas-web-elements/p-acd75a32.entry.js +2 -0
- package/dist/nylas-web-elements/p-acd75a32.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-eb7101dd.entry.js → p-ec243a08.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-CwWcFRQ4.js → p-zgIeli_M.js} +2 -2
- package/dist/nylas-web-elements/{p-CwWcFRQ4.js.map → p-zgIeli_M.js.map} +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -3
- package/dist/components/p-DC7TgSr7.js.map +0 -1
- package/dist/nylas-web-elements/p-942c1486.entry.js +0 -2
- package/dist/nylas-web-elements/p-942c1486.entry.js.map +0 -1
- /package/dist/nylas-web-elements/{p-ebdd566e.entry.js.map → p-6aa41c34.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-eb7101dd.entry.js.map → p-ec243a08.entry.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, F as Fragment, c as createEvent, H as Host, a as getElement } from './index-0EQQA0nE.js';
|
|
2
2
|
import { R as RegisterComponent } from './register-component-B9YP9nha.js';
|
|
3
3
|
import { a as debug, i as instance, r as mergeDeep, s as removeUndefinedProperties, v as editorTabComponentNames, D as DEFAULT_OPEN_HOURS, w as parsePreviewLink, C as CONFIGURATION_EVENT_TYPE, x as editorGroupTabComponentNames, g as getCalendarRange } from './utils-OpKyWV8q.js';
|
|
4
|
-
import { E as ErrorCategory, u, v as version } from './version-
|
|
4
|
+
import { E as ErrorCategory, u, v as version } from './version-zgIeli_M.js';
|
|
5
5
|
import { i as isInitialized, a as init, c as captureMessage, b as captureFeedback, f as feedbackSyncIntegration } from './feedbackSync-B8tfyAQm.js';
|
|
6
6
|
|
|
7
7
|
const iconCss$1 = ".sc-google-logo-icon-h{display:flex}";
|
|
@@ -252,11 +252,12 @@ const NylasEditorTabs = class {
|
|
|
252
252
|
const partAvailabilityCalendars = participantCalendars?.[p.email] ?? p.availability?.calendar_ids ?? ['primary'];
|
|
253
253
|
const isPartAvailabilityCalendarsPrimaryOnly = partAvailabilityCalendars.length === 1 && partAvailabilityCalendars[0] === 'primary';
|
|
254
254
|
const partGrantId = p.grant_id || this.selectedConfiguration?.participants?.find(sp => sp.email === p.email)?.grant_id;
|
|
255
|
+
const partHasCustomOpenHours = Array.isArray(participantOpenHours?.[p.email]) && participantOpenHours[p.email].length > 0;
|
|
255
256
|
return {
|
|
256
257
|
...p,
|
|
257
258
|
...(partGrantId ? { grant_id: partGrantId } : {}),
|
|
258
259
|
timezone,
|
|
259
|
-
availability: p.availability
|
|
260
|
+
availability: p.availability || partHasCustomOpenHours
|
|
260
261
|
? {
|
|
261
262
|
calendar_ids: isPartAvailabilityCalendarsPrimaryOnly && typeof partBooking !== 'undefined' ? [partBooking?.calendar_id] : partAvailabilityCalendars,
|
|
262
263
|
open_hours: participantOpenHours?.[p.email] ?? p.availability?.open_hours ?? [],
|
|
@@ -781,10 +782,10 @@ const NylasEditorTabs = class {
|
|
|
781
782
|
}
|
|
782
783
|
render() {
|
|
783
784
|
debug('[nylas-editor-tabs]', 'render', this.formState);
|
|
784
|
-
return (h(Host, { key: '
|
|
785
|
+
return (h(Host, { key: 'bf708d7ec542c822eb749ffd4e8045ae9ae4d58e' }, h("nylas-notification", { key: 'da0ef8835e5a7c3c7a1e3eae096eea2ef7cdc744' }), h("form", { key: '7154f6f9f0e9bb735f1217864a985dc440347893', onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: el => (this.formRef = el), noValidate: true }, this.mode === 'app' ? (h("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, h("div", { class: "tabs", part: "editor__tabs net__tabs" }, h("button", { name: Tab.EventInfo, class: { tab: true, active: this.activeTab == Tab.EventInfo, hide: this.hideTab(Tab.EventInfo) }, part: "editortab__event-info net__tab-event-info", onClick: e => this.setActiveTab(e, Tab.EventInfo) }, h("calendar-info-icon", { width: "16", height: "16" }), instance.t('eventInfoTab')), h("button", { name: Tab.Availability, class: { tab: true, active: this.activeTab == Tab.Availability, hide: this.hideTab(Tab.Availability) }, part: "editortab__availability net__tab-availability", onClick: e => this.setActiveTab(e, Tab.Availability) }, h("calendar-patterns-icon", { width: "16", height: "16" }), instance.t('availabilityTab')), h("button", { name: Tab.Participants, class: { tab: true, active: this.activeTab == Tab.Participants, hide: this.hideTab(Tab.Participants) }, part: "editortab__participants net__tab-participants", onClick: e => this.setActiveTab(e, Tab.Participants) }, h("people-icon", { width: "16", height: "16" }), instance.t('participantsTab')), h("button", { name: Tab.BookingOptions, class: { tab: true, active: this.activeTab == Tab.BookingOptions, hide: this.hideTab(Tab.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: e => this.setActiveTab(e, Tab.BookingOptions) }, h("flow-icon", { width: "16", height: "16" }), instance.t('bookingOptionsTab')), h("button", { name: Tab.BookingForm, class: { tab: true, active: this.activeTab == 'bookingForm', hide: this.hideTab(Tab.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: e => this.setActiveTab(e, Tab.BookingForm) }, this.activeTab == Tab.BookingForm ? h("calendar-agenda-fill-icon", { width: "16", height: "16" }) : h("calendar-agenda-icon", { width: "16", height: "16" }), instance.t('bookingFormTab')), h("button", { name: Tab.Communications, class: { tab: true, active: this.activeTab == 'communications', hide: this.hideTab(Tab.Communications) }, onClick: e => this.setActiveTab(e, Tab.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == Tab.Communications ? h("envelope-fill-icon", { width: "16", height: "16" }) : h("envelope-icon", { width: "16", height: "16" }), instance.t('communicationsTab')), h("button", { name: Tab.PageStyles, class: { tab: true, active: this.activeTab == 'pageStyles', hide: this.hideTab(Tab.PageStyles) }, onClick: e => this.setActiveTab(e, Tab.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == Tab.PageStyles ? h("paintbrush-fill-icon", { width: "16", height: "16" }) : h("paintbrush-icon", { width: "16", height: "16" }), instance.t('pageStylesTab'))), h("div", { class: {
|
|
785
786
|
'tab-content': true,
|
|
786
787
|
'fadeIn': this.loaded,
|
|
787
|
-
}, part: "editor__tab-content net__tab-content" }, h(TabContents, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: this.selectedConfiguration?.id ?? 'new', i18next: instance, enableNotetaker: this.enableNotetaker, themeConfig: this.themeConfig })))) : (h("div", { class: "composable", key: this.selectedConfiguration?.id }, h("slot", null))), h("div", { key: '
|
|
788
|
+
}, part: "editor__tab-content net__tab-content" }, h(TabContents, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: this.selectedConfiguration?.id ?? 'new', i18next: instance, enableNotetaker: this.enableNotetaker, themeConfig: this.themeConfig })))) : (h("div", { class: "composable", key: this.selectedConfiguration?.id }, h("slot", null))), h("div", { key: '9f8518398d98a211078b50c88f1c81315ed30328', class: "footer", part: "editor__footer net__footer" }, h("div", { key: 'cbf1648c8c98b4e48e43d21ba7d9031a329a4e10', class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && (h("button-component", { key: 'a4f2c13221dade5425f1b59aa5274350a809ffc3', title: "Share your feedback", id: "report-issue", variant: 'basic', onClick: e => this.onFeedbackClick(e) }, h("feedback-icon", { key: 'f2f1fe27e3de4f09fe7eb00eede7f9abc90102c3' })))), h("div", { key: 'a740aaeccc0f929cfa67ef8c0c703513ec9138ec', class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, h("p", { key: 'ded5a9bed46eb1063e0062080fbc2f1eb91510fa', class: {
|
|
788
789
|
'unsaved-changes': this.hasUnsavedChanges && !this.changesSaved,
|
|
789
790
|
'saved-changes': this.changesSaved,
|
|
790
791
|
'error': this.error?.message !== '',
|
|
@@ -793,17 +794,17 @@ const NylasEditorTabs = class {
|
|
|
793
794
|
? instance.t('unsavedChangesLabel')
|
|
794
795
|
: this.error?.message == '' && this.changesSaved
|
|
795
796
|
? `${instance.t('changesSavedLabel')}!`
|
|
796
|
-
: ''), this.schedulerPreviewLink !== '' && this.action === 'edit' && (h("button-component", { key: '
|
|
797
|
+
: ''), this.schedulerPreviewLink !== '' && this.action === 'edit' && (h("button-component", { key: '335dcff1c0fa0e2049cf21f36e33427a9f30a8c1', title: "Preview", type: "button", disabled: this.isLoading, clickHandler: event => {
|
|
797
798
|
event.preventDefault();
|
|
798
799
|
const previewEvent = this.previewButtonClicked.emit(this.host);
|
|
799
800
|
if (!previewEvent.defaultPrevented) {
|
|
800
801
|
window.open(parsePreviewLink(this.schedulerPreviewLink, this.selectedConfiguration), '_blank');
|
|
801
802
|
}
|
|
802
|
-
}, variant: 'basic' }, h("eye-icon", { key: '
|
|
803
|
+
}, variant: 'basic' }, h("eye-icon", { key: '2f8ef52ca16d73c357feb572c35d4f56f056a4d1' }))), h("button-component", { key: 'f56f62a0b795d5949cef307518b12ca9c7431cb5', type: "button", disabled: this.isLoading, clickHandler: event => {
|
|
803
804
|
event.preventDefault();
|
|
804
805
|
this.cancelButtonClick.emit();
|
|
805
806
|
this.host.resetError();
|
|
806
|
-
}, variant: 'basic', part: "editor__footer-cancel net__footer-cancel" }, instance.t('cancelButton')), h("button-component", { key: '
|
|
807
|
+
}, variant: 'basic', part: "editor__footer-cancel net__footer-cancel" }, instance.t('cancelButton')), h("button-component", { key: 'c04d198a70b9214461d92c380089048febe6113a', class: { 'save-changes': this.action === 'edit' }, type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, this.isLoading ? (h("span", null, instance.t('savingButtonText'), h("loading-icon", null), ' ')) : this.action === 'create' ? (`${instance.t('createButtonText')}`) : (`${instance.t('saveChangesButtonText')}`))))), this.showFeedbackModal && h("nylas-feedback-form", { key: '5c62eea9a45a9060762b43c7a328488653590979' })));
|
|
807
808
|
}
|
|
808
809
|
get host() { return getElement(this); }
|
|
809
810
|
static get watchers() { return {
|