@nylas/web-elements 2.5.7 → 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 +1315 -1313
- package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +309 -308
- package/dist/cjs/checkmark-icon_14.cjs.entry.js +5 -3
- package/dist/cjs/checkmark-icon_14.cjs.entry.js.map +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 +11 -6
- package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-scheduling.entry.cjs.js.map +1 -1
- package/dist/cjs/{version-C5rRjTHU.js → version-CN5nqWgI.js} +3 -3
- package/dist/cjs/{version-C5rRjTHU.js.map → version-CN5nqWgI.js.map} +1 -1
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +10 -5
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.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/components/scheduler-editor/nylas-event-description/nylas-event-description.js +2 -1
- package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js +3 -2
- package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.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-event-calendar.js +1 -1
- package/dist/components/nylas-event-description.js +1 -1
- package/dist/components/nylas-event-title.js +1 -1
- package/dist/components/nylas-scheduler-editor.js +6 -6
- package/dist/components/nylas-scheduling.js +11 -6
- package/dist/components/nylas-scheduling.js.map +1 -1
- package/dist/components/{p-HJ5amhvq.js → p-2vIl9-lT.js} +12 -11
- package/dist/components/p-2vIl9-lT.js.map +1 -0
- package/dist/components/{p-y15sKy8D.js → p-B9G8DJJr.js} +4 -3
- package/dist/components/p-B9G8DJJr.js.map +1 -0
- package/dist/components/{p-BRszp61A.js → p-BfwqDqHx.js} +3 -3
- package/dist/components/{p-BRszp61A.js.map → p-BfwqDqHx.js.map} +1 -1
- package/dist/components/{p-CJ7rVNTy.js → p-BlxYpYrq.js} +5 -4
- package/dist/components/p-BlxYpYrq.js.map +1 -0
- package/dist/components/{p-lV8W1_93.js → p-CiJgH0CI.js} +4 -4
- package/dist/components/{p-lV8W1_93.js.map → p-CiJgH0CI.js.map} +1 -1
- package/dist/components/{p-DqVU9VaM.js → p-DwzjmWk7.js} +6 -6
- package/dist/components/{p-DqVU9VaM.js.map → p-DwzjmWk7.js.map} +1 -1
- package/dist/esm/checkmark-icon.copy-icon.dragable-icon.eye-icon.feedback-icon.input-color-picker.nylas-additional-participants.nylas-event-description.nylas-event-info.nylas-event-location.nylas-event-title.nylas-feedback-form.nylas-reminder-time.trash-icon.entry.js.map +1 -1
- package/dist/esm/checkmark-icon_14.entry.js +5 -3
- package/dist/esm/checkmark-icon_14.entry.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 +11 -6
- package/dist/esm/nylas-scheduling.entry.js.map +1 -1
- package/dist/esm/{version-C5BO7xwe.js → version-zgIeli_M.js} +3 -3
- package/dist/esm/{version-C5BO7xwe.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-scheduling.entry.esm.js.map +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/{p-85955466.entry.js → p-6aa41c34.entry.js} +2 -2
- package/dist/nylas-web-elements/p-6aa41c34.entry.js.map +1 -0
- 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-ae86e7c6.entry.js → p-ec243a08.entry.js} +2 -2
- package/dist/nylas-web-elements/p-f5cf565f.entry.js +2 -0
- package/dist/nylas-web-elements/p-f5cf565f.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-C5BO7xwe.js → p-zgIeli_M.js} +2 -2
- package/dist/nylas-web-elements/{p-C5BO7xwe.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-CJ7rVNTy.js.map +0 -1
- package/dist/components/p-HJ5amhvq.js.map +0 -1
- package/dist/components/p-y15sKy8D.js.map +0 -1
- package/dist/nylas-web-elements/p-083268de.entry.js +0 -2
- package/dist/nylas-web-elements/p-083268de.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-85955466.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-e240fd68.entry.js +0 -2
- package/dist/nylas-web-elements/p-e240fd68.entry.js.map +0 -1
- /package/dist/nylas-web-elements/{p-ae86e7c6.entry.js.map → p-ec243a08.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-
|
|
6
|
+
var version = require('./version-CN5nqWgI.js');
|
|
7
7
|
var feedbackSync = require('./feedbackSync-Bcx7mZ9-.js');
|
|
8
8
|
|
|
9
9
|
const iconCss$1 = ".sc-google-logo-icon-h{display:flex}";
|
|
@@ -254,11 +254,12 @@ const NylasEditorTabs = class {
|
|
|
254
254
|
const partAvailabilityCalendars = participantCalendars?.[p.email] ?? p.availability?.calendar_ids ?? ['primary'];
|
|
255
255
|
const isPartAvailabilityCalendarsPrimaryOnly = partAvailabilityCalendars.length === 1 && partAvailabilityCalendars[0] === 'primary';
|
|
256
256
|
const partGrantId = p.grant_id || this.selectedConfiguration?.participants?.find(sp => sp.email === p.email)?.grant_id;
|
|
257
|
+
const partHasCustomOpenHours = Array.isArray(participantOpenHours?.[p.email]) && participantOpenHours[p.email].length > 0;
|
|
257
258
|
return {
|
|
258
259
|
...p,
|
|
259
260
|
...(partGrantId ? { grant_id: partGrantId } : {}),
|
|
260
261
|
timezone,
|
|
261
|
-
availability: p.availability
|
|
262
|
+
availability: p.availability || partHasCustomOpenHours
|
|
262
263
|
? {
|
|
263
264
|
calendar_ids: isPartAvailabilityCalendarsPrimaryOnly && typeof partBooking !== 'undefined' ? [partBooking?.calendar_id] : partAvailabilityCalendars,
|
|
264
265
|
open_hours: participantOpenHours?.[p.email] ?? p.availability?.open_hours ?? [],
|
|
@@ -783,10 +784,10 @@ const NylasEditorTabs = class {
|
|
|
783
784
|
}
|
|
784
785
|
render() {
|
|
785
786
|
utils.debug('[nylas-editor-tabs]', 'render', this.formState);
|
|
786
|
-
return (index.h(index.Host, { key: '
|
|
787
|
+
return (index.h(index.Host, { key: 'bf708d7ec542c822eb749ffd4e8045ae9ae4d58e' }, index.h("nylas-notification", { key: 'da0ef8835e5a7c3c7a1e3eae096eea2ef7cdc744' }), index.h("form", { key: '7154f6f9f0e9bb735f1217864a985dc440347893', onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: el => (this.formRef = el), noValidate: true }, 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: 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) }, index.h("calendar-info-icon", { width: "16", height: "16" }), utils.instance.t('eventInfoTab')), index.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) }, index.h("calendar-patterns-icon", { width: "16", height: "16" }), utils.instance.t('availabilityTab')), index.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) }, index.h("people-icon", { width: "16", height: "16" }), utils.instance.t('participantsTab')), index.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) }, index.h("flow-icon", { width: "16", height: "16" }), utils.instance.t('bookingOptionsTab')), index.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 ? 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: 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 ? 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: 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 ? 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: {
|
|
787
788
|
'tab-content': true,
|
|
788
789
|
'fadeIn': this.loaded,
|
|
789
|
-
}, part: "editor__tab-content net__tab-content" }, index.h(TabContents, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: this.selectedConfiguration?.id ?? 'new', i18next: utils.instance, enableNotetaker: this.enableNotetaker, themeConfig: this.themeConfig })))) : (index.h("div", { class: "composable", key: this.selectedConfiguration?.id }, index.h("slot", null))), index.h("div", { key: '
|
|
790
|
+
}, part: "editor__tab-content net__tab-content" }, index.h(TabContents, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: this.selectedConfiguration?.id ?? 'new', i18next: utils.instance, enableNotetaker: this.enableNotetaker, themeConfig: this.themeConfig })))) : (index.h("div", { class: "composable", key: this.selectedConfiguration?.id }, index.h("slot", null))), index.h("div", { key: '9f8518398d98a211078b50c88f1c81315ed30328', class: "footer", part: "editor__footer net__footer" }, index.h("div", { key: 'cbf1648c8c98b4e48e43d21ba7d9031a329a4e10', class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && (index.h("button-component", { key: 'a4f2c13221dade5425f1b59aa5274350a809ffc3', title: "Share your feedback", id: "report-issue", variant: 'basic', onClick: e => this.onFeedbackClick(e) }, index.h("feedback-icon", { key: 'f2f1fe27e3de4f09fe7eb00eede7f9abc90102c3' })))), index.h("div", { key: 'a740aaeccc0f929cfa67ef8c0c703513ec9138ec', class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, index.h("p", { key: 'ded5a9bed46eb1063e0062080fbc2f1eb91510fa', class: {
|
|
790
791
|
'unsaved-changes': this.hasUnsavedChanges && !this.changesSaved,
|
|
791
792
|
'saved-changes': this.changesSaved,
|
|
792
793
|
'error': this.error?.message !== '',
|
|
@@ -795,17 +796,17 @@ const NylasEditorTabs = class {
|
|
|
795
796
|
? utils.instance.t('unsavedChangesLabel')
|
|
796
797
|
: this.error?.message == '' && this.changesSaved
|
|
797
798
|
? `${utils.instance.t('changesSavedLabel')}!`
|
|
798
|
-
: ''), this.schedulerPreviewLink !== '' && this.action === 'edit' && (index.h("button-component", { key: '
|
|
799
|
+
: ''), this.schedulerPreviewLink !== '' && this.action === 'edit' && (index.h("button-component", { key: '335dcff1c0fa0e2049cf21f36e33427a9f30a8c1', title: "Preview", type: "button", disabled: this.isLoading, clickHandler: event => {
|
|
799
800
|
event.preventDefault();
|
|
800
801
|
const previewEvent = this.previewButtonClicked.emit(this.host);
|
|
801
802
|
if (!previewEvent.defaultPrevented) {
|
|
802
803
|
window.open(utils.parsePreviewLink(this.schedulerPreviewLink, this.selectedConfiguration), '_blank');
|
|
803
804
|
}
|
|
804
|
-
}, variant: 'basic' }, index.h("eye-icon", { key: '
|
|
805
|
+
}, variant: 'basic' }, index.h("eye-icon", { key: '2f8ef52ca16d73c357feb572c35d4f56f056a4d1' }))), index.h("button-component", { key: 'f56f62a0b795d5949cef307518b12ca9c7431cb5', type: "button", disabled: this.isLoading, clickHandler: event => {
|
|
805
806
|
event.preventDefault();
|
|
806
807
|
this.cancelButtonClick.emit();
|
|
807
808
|
this.host.resetError();
|
|
808
|
-
}, variant: 'basic', part: "editor__footer-cancel net__footer-cancel" }, utils.instance.t('cancelButton')), index.h("button-component", { key: '
|
|
809
|
+
}, variant: 'basic', part: "editor__footer-cancel net__footer-cancel" }, utils.instance.t('cancelButton')), index.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 ? (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: '5c62eea9a45a9060762b43c7a328488653590979' })));
|
|
809
810
|
}
|
|
810
811
|
get host() { return index.getElement(this); }
|
|
811
812
|
static get watchers() { return {
|