@nylas/web-elements 1.1.0-canary.16 → 1.1.0-canary.17
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/cjs/add-circle-icon.cjs.entry.js +1 -1
- package/dist/cjs/add-circle-icon_2.cjs.entry.js +2 -2
- package/dist/cjs/archive-icon.cjs.entry.js +1 -1
- package/dist/cjs/archive-icon_7.cjs.entry.js +7 -7
- package/dist/cjs/arrow-icon.cjs.entry.js +1 -1
- package/dist/cjs/bold-icon.cjs.entry.js +1 -1
- package/dist/cjs/bold-icon_3.cjs.entry.js +3 -3
- package/dist/cjs/button-component.cjs.entry.js +1 -1
- package/dist/cjs/calendar-cancel-icon.cjs.entry.js +1 -1
- package/dist/cjs/calendar-check-icon.cjs.entry.js +1 -1
- package/dist/cjs/calendar-check-icon_2.cjs.entry.js +2 -2
- package/dist/cjs/calendar-icon.cjs.entry.js +1 -1
- package/dist/cjs/calendar-info-icon.cjs.entry.js +1 -1
- package/dist/cjs/{calendar-info-icon_27.cjs.entry.js → calendar-info-icon_28.cjs.entry.js} +300 -412
- package/dist/cjs/calendar-info-icon_28.cjs.entry.js.map +1 -0
- package/dist/cjs/calendar-patterns-icon.cjs.entry.js +1 -1
- package/dist/cjs/checkbox-component.cjs.entry.js +1 -1
- package/dist/cjs/checkbox-component.cjs.entry.js.map +1 -1
- package/dist/cjs/checkmark-circle-icon.cjs.entry.js +1 -1
- package/dist/cjs/chevron-icon.cjs.entry.js +1 -1
- package/dist/cjs/chevron-icon_3.cjs.entry.js +4 -4
- package/dist/cjs/clock-icon.cjs.entry.js +1 -1
- package/dist/cjs/clock-icon_2.cjs.entry.js +2 -2
- package/dist/cjs/close-icon.cjs.entry.js +1 -1
- package/dist/cjs/document-refresh-icon.cjs.entry.js +1 -1
- package/dist/cjs/flow-icon.cjs.entry.js +1 -1
- package/dist/cjs/folder-icon.cjs.entry.js +1 -1
- package/dist/cjs/forward-icon.cjs.entry.js +1 -1
- package/dist/cjs/forward-icon_6.cjs.entry.js +7 -7
- package/dist/cjs/globe-icon.cjs.entry.js +1 -1
- package/dist/cjs/google-logo-icon.cjs.entry.js +1 -1
- package/dist/cjs/google-logo-icon_4.cjs.entry.js +96 -78
- package/dist/cjs/google-logo-icon_4.cjs.entry.js.map +1 -1
- package/dist/cjs/inbox-icon.cjs.entry.js +1 -1
- package/dist/cjs/index-7af03e3f.js +10 -10
- package/dist/cjs/index-c14ea8f5.js +18 -14
- package/dist/cjs/info-icon.cjs.entry.js +1 -1
- package/dist/cjs/info-icon_2.cjs.entry.js +2 -2
- package/dist/cjs/input-component.cjs.entry.js +1 -1
- package/dist/cjs/input-dropdown.cjs.entry.js +13 -3
- package/dist/cjs/input-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/input-dropdown_2.cjs.entry.js +14 -4
- package/dist/cjs/input-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/italic-icon.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/loading-icon.cjs.entry.js +1 -1
- package/dist/cjs/location-icon.cjs.entry.js +1 -1
- package/dist/cjs/location-off-icon.cjs.entry.js +1 -1
- package/dist/cjs/microsoft-logo-icon.cjs.entry.js +1 -1
- package/dist/cjs/multi-select-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/nylas-additional-participants.cjs.entry.js +16 -12
- package/dist/cjs/nylas-additional-participants.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-availability-picker.cjs.entry.js +27 -16
- package/dist/cjs/nylas-availability-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-booked-event-card_10.cjs.entry.js +4 -4
- package/dist/cjs/nylas-cancel-booking-form.cjs.entry.js +1 -1
- package/dist/cjs/nylas-cancellation-policy.cjs.entry.js +1 -1
- package/dist/cjs/nylas-cancelled-event-card.cjs.entry.js +1 -1
- package/dist/cjs/nylas-composer.cjs.entry.js +1 -1
- package/dist/cjs/nylas-custom-booking-flow.cjs.entry.js +1 -1
- package/dist/cjs/nylas-customize-booking-settings.cjs.entry.js +1 -1
- package/dist/cjs/nylas-editor-tabs.cjs.entry.js +94 -76
- package/dist/cjs/nylas-editor-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-event-info.cjs.entry.js +1 -1
- package/dist/cjs/nylas-event-limits.cjs.entry.js +1 -1
- package/dist/cjs/nylas-event-location.cjs.entry.js +3 -3
- package/dist/cjs/nylas-form-card.cjs.entry.js +1 -1
- package/dist/cjs/nylas-if-state.cjs.entry.js +1 -1
- package/dist/cjs/nylas-limit-future-bookings.cjs.entry.js +1 -1
- package/dist/cjs/nylas-list-folders.cjs.entry.js +1 -1
- package/dist/cjs/nylas-list-threads.cjs.entry.js +1 -1
- package/dist/cjs/nylas-login.cjs.entry.js +1 -1
- package/dist/cjs/nylas-logo.cjs.entry.js +1 -1
- package/dist/cjs/nylas-mailbox-toolbar-button.cjs.entry.js +1 -1
- package/dist/cjs/nylas-mailbox.cjs.entry.js +1 -1
- package/dist/cjs/nylas-min-booking-notice.cjs.entry.js +1 -1
- package/dist/cjs/nylas-min-cancellation-notice.cjs.entry.js +1 -1
- package/dist/cjs/nylas-notification.cjs.entry.js +1 -1
- package/dist/cjs/nylas-participants-custom-availability.cjs.entry.js +142 -0
- package/dist/cjs/nylas-participants-custom-availability.cjs.entry.js.map +1 -0
- package/dist/cjs/nylas-provider.cjs.entry.js +1 -1
- package/dist/cjs/nylas-summarize-message-button.cjs.entry.js +2 -2
- package/dist/cjs/nylas-threads-refresh.cjs.entry.js +2 -2
- package/dist/cjs/nylas-threads-search.cjs.entry.js +1 -1
- package/dist/cjs/nylas-time-window-picker.cjs.entry.js +1 -1
- package/dist/cjs/nylas-timeslot-interval.cjs.entry.js +2 -2
- package/dist/cjs/nylas-view-email.cjs.entry.js +1 -1
- package/dist/cjs/nylas-view-thread.cjs.entry.js +1 -1
- package/dist/cjs/nylas-web-elements.cjs.js +1 -1
- package/dist/cjs/people-icon.cjs.entry.js +1 -1
- package/dist/cjs/person-icon.cjs.entry.js +1 -1
- package/dist/cjs/play-icon.cjs.entry.js +1 -1
- package/dist/cjs/play-icon_2.cjs.entry.js +2 -2
- package/dist/cjs/radio-button-group.cjs.entry.js +1 -1
- package/dist/cjs/refresh-icon.cjs.entry.js +1 -1
- package/dist/cjs/reply-all-icon.cjs.entry.js +1 -1
- package/dist/cjs/reply-icon.cjs.entry.js +1 -1
- package/dist/cjs/search-icon.cjs.entry.js +1 -1
- package/dist/cjs/select-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/sent-icon.cjs.entry.js +1 -1
- package/dist/cjs/spam-icon.cjs.entry.js +1 -1
- package/dist/cjs/star-icon.cjs.entry.js +1 -1
- package/dist/cjs/stop-icon.cjs.entry.js +1 -1
- package/dist/cjs/textarea-component.cjs.entry.js +1 -1
- package/dist/cjs/time-period-selector.cjs.entry.js +1 -1
- package/dist/cjs/toggle-switch.cjs.entry.js +1 -1
- package/dist/cjs/toggle-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/tooltip-component.cjs.entry.js +1 -1
- package/dist/cjs/translate-icon.cjs.entry.js +1 -1
- package/dist/cjs/trash-icon.cjs.entry.js +1 -1
- package/dist/cjs/underline-icon.cjs.entry.js +1 -1
- package/dist/cjs/warning-icon.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/common/icons/add-circle.js +1 -1
- package/dist/collection/common/icons/archive.js +1 -1
- package/dist/collection/common/icons/arrow.js +1 -1
- package/dist/collection/common/icons/bold.js +1 -1
- package/dist/collection/common/icons/calendar-cancel.js +1 -1
- package/dist/collection/common/icons/calendar-check.js +1 -1
- package/dist/collection/common/icons/calendar-info.js +1 -1
- package/dist/collection/common/icons/calendar-patterns.js +1 -1
- package/dist/collection/common/icons/calendar.js +1 -1
- package/dist/collection/common/icons/checkmark-circle.js +1 -1
- package/dist/collection/common/icons/chevron.js +1 -1
- package/dist/collection/common/icons/clock.js +1 -1
- package/dist/collection/common/icons/close.js +1 -1
- package/dist/collection/common/icons/document-refresh.js +1 -1
- package/dist/collection/common/icons/flow.js +1 -1
- package/dist/collection/common/icons/folder.js +1 -1
- package/dist/collection/common/icons/forward.js +1 -1
- package/dist/collection/common/icons/globe.js +1 -1
- package/dist/collection/common/icons/google-logo.js +1 -1
- package/dist/collection/common/icons/inbox.js +1 -1
- package/dist/collection/common/icons/info.js +1 -1
- package/dist/collection/common/icons/italic.js +1 -1
- package/dist/collection/common/icons/loading.js +1 -1
- package/dist/collection/common/icons/location-off.js +1 -1
- package/dist/collection/common/icons/location.js +1 -1
- package/dist/collection/common/icons/microsoft-logo.js +1 -1
- package/dist/collection/common/icons/nylas-logo.js +1 -1
- package/dist/collection/common/icons/people.js +1 -1
- package/dist/collection/common/icons/person.js +1 -1
- package/dist/collection/common/icons/play.js +1 -1
- package/dist/collection/common/icons/refresh.js +1 -1
- package/dist/collection/common/icons/reply-all.js +1 -1
- package/dist/collection/common/icons/reply.js +1 -1
- package/dist/collection/common/icons/search.js +1 -1
- package/dist/collection/common/icons/sent.js +1 -1
- package/dist/collection/common/icons/spam.js +1 -1
- package/dist/collection/common/icons/star.js +1 -1
- package/dist/collection/common/icons/stop.js +1 -1
- package/dist/collection/common/icons/translate.js +1 -1
- package/dist/collection/common/icons/trash.js +1 -1
- package/dist/collection/common/icons/underline.js +1 -1
- package/dist/collection/common/icons/warning.js +1 -1
- package/dist/collection/components/design-system/button-component/button-component.js +1 -1
- package/dist/collection/components/design-system/checkbox-component/checkbox-component.js +1 -1
- package/dist/collection/components/design-system/checkbox-component/checkbox-component.js.map +1 -1
- package/dist/collection/components/design-system/input-component/input-component.js +1 -1
- package/dist/collection/components/design-system/input-dropdown/input-dropdown.js +31 -3
- package/dist/collection/components/design-system/input-dropdown/input-dropdown.js.map +1 -1
- package/dist/collection/components/design-system/multi-select-dropdown/multi-select-dropdown.js +2 -2
- package/dist/collection/components/design-system/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/design-system/select-dropdown/select-dropdown.js +2 -2
- package/dist/collection/components/design-system/textarea-component/textarea-component.js +1 -1
- package/dist/collection/components/design-system/time-period-selector/time-period-selector.js +1 -1
- package/dist/collection/components/design-system/toggle-switch/toggle-switch.js +1 -1
- package/dist/collection/components/design-system/toggle-switch/toggle-switch.js.map +1 -1
- package/dist/collection/components/design-system/tooltip-component/toolitp-component.js +1 -1
- package/dist/collection/components/mailbox/nylas-composer/nylas-composer.js +1 -1
- package/dist/collection/components/mailbox/nylas-list-folders/nylas-list-folders.js +1 -1
- package/dist/collection/components/mailbox/nylas-list-threads/nylas-list-threads.js +1 -1
- package/dist/collection/components/mailbox/nylas-mailbox/nylas-mailbox.js +1 -1
- package/dist/collection/components/mailbox/nylas-mailbox-toolbar-button/nylas-mailbox-toolbar-button.js +1 -1
- package/dist/collection/components/mailbox/nylas-summarize-message-button/nylas-summarize-message-button.js +2 -2
- package/dist/collection/components/mailbox/nylas-threads-refresh/nylas-threads-refresh.js +2 -2
- package/dist/collection/components/mailbox/nylas-threads-search/nylas-threads-search.js +1 -1
- package/dist/collection/components/mailbox/nylas-view-email/nylas-view-email.js +1 -1
- package/dist/collection/components/mailbox/nylas-view-thread/nylas-view-thread.js +1 -1
- package/dist/collection/components/nylas-if-state/nylas-if-state.js +1 -1
- package/dist/collection/components/nylas-login/nylas-login.js +1 -1
- package/dist/collection/components/nylas-provider/nylas-provider.js +1 -1
- package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js +1 -1
- package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js +1 -1
- package/dist/collection/components/scheduler/nylas-notification/nylas-notification.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js +33 -12
- package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.css +1 -1
- package/dist/collection/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.js +48 -25
- package/dist/collection/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-cancellation-policy/nylas-cancellation-policy.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-custom-booking-flow/nylas-custom-booking-flow.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-customize-booking-settings/nylas-customize-booking-settings.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +92 -75
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/tab-contents.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/tab-contents.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-info/nylas-event-info.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-limits/nylas-event-limits.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-location/nylas-event-location.js +3 -3
- package/dist/collection/components/scheduler-editor/nylas-form-card/nylas-form-card.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-limit-future-bookings/nylas-limit-future-bookings.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-min-booking-notice/nylas-min-booking-notice.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-min-cancellation-notice/nylas-min-cancellation-notice.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.css +98 -0
- package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.js +219 -0
- package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.js.map +1 -0
- package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-time-window-picker/nylas-time-window-picker.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-timeslot-interval/nylas-timeslot-interval.js +2 -2
- package/dist/components/add-circle.js +1 -1
- package/dist/components/archive.js +1 -1
- package/dist/components/arrow.js +1 -1
- package/dist/components/bold.js +1 -1
- package/dist/components/button-component2.js +1 -1
- package/dist/components/calendar-cancel.js +1 -1
- package/dist/components/calendar-check.js +1 -1
- package/dist/components/calendar-info.js +1 -1
- package/dist/components/calendar-patterns.js +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/checkbox-component2.js +1 -1
- package/dist/components/checkbox-component2.js.map +1 -1
- package/dist/components/checkmark-circle.js +1 -1
- package/dist/components/chevron.js +1 -1
- package/dist/components/clock.js +1 -1
- package/dist/components/close.js +1 -1
- package/dist/components/document-refresh-icon.js +1 -1
- package/dist/components/flow.js +1 -1
- package/dist/components/folder.js +1 -1
- package/dist/components/forward.js +1 -1
- package/dist/components/globe.js +1 -1
- package/dist/components/google-logo.js +1 -1
- package/dist/components/inbox.js +1 -1
- package/dist/components/info.js +1 -1
- package/dist/components/input-component2.js +1 -1
- package/dist/components/input-dropdown2.js +14 -3
- package/dist/components/input-dropdown2.js.map +1 -1
- package/dist/components/italic.js +1 -1
- package/dist/components/loading.js +1 -1
- package/dist/components/location-off.js +1 -1
- package/dist/components/location.js +1 -1
- package/dist/components/microsoft-logo.js +1 -1
- package/dist/components/multi-select-dropdown2.js +2 -2
- package/dist/components/nylas-additional-participants2.js +17 -13
- package/dist/components/nylas-additional-participants2.js.map +1 -1
- package/dist/components/nylas-availability-picker2.js +28 -16
- package/dist/components/nylas-availability-picker2.js.map +1 -1
- package/dist/components/nylas-cancel-booking-form2.js +1 -1
- package/dist/components/nylas-cancellation-policy2.js +1 -1
- package/dist/components/nylas-cancelled-event-card2.js +1 -1
- package/dist/components/nylas-composer2.js +1 -1
- package/dist/components/nylas-custom-booking-flow.js +1 -1
- package/dist/components/nylas-customize-booking-settings2.js +1 -1
- package/dist/components/nylas-editor-tabs2.js +184 -154
- package/dist/components/nylas-editor-tabs2.js.map +1 -1
- package/dist/components/nylas-event-info2.js +1 -1
- package/dist/components/nylas-event-limits2.js +1 -1
- package/dist/components/nylas-event-location2.js +3 -3
- package/dist/components/nylas-form-card2.js +1 -1
- package/dist/components/nylas-if-state.js +1 -1
- package/dist/components/nylas-limit-future-bookings2.js +1 -1
- package/dist/components/nylas-list-folders.js +1 -1
- package/dist/components/nylas-list-threads.js +1 -1
- package/dist/components/nylas-login.js +1 -1
- package/dist/components/nylas-logo2.js +1 -1
- package/dist/components/nylas-mailbox-toolbar-button.js +1 -1
- package/dist/components/nylas-mailbox.js +1 -1
- package/dist/components/nylas-min-booking-notice2.js +1 -1
- package/dist/components/nylas-min-cancellation-notice2.js +1 -1
- package/dist/components/nylas-notification2.js +1 -1
- package/dist/components/nylas-participants-custom-availability.d.ts +11 -0
- package/dist/components/nylas-participants-custom-availability.js +8 -0
- package/dist/components/nylas-participants-custom-availability.js.map +1 -0
- package/dist/components/nylas-participants-custom-availability2.js +218 -0
- package/dist/components/nylas-participants-custom-availability2.js.map +1 -0
- package/dist/components/nylas-provider.js +1 -1
- package/dist/components/nylas-scheduler-editor.js +100 -88
- package/dist/components/nylas-scheduler-editor.js.map +1 -1
- package/dist/components/nylas-summarize-message-button2.js +2 -2
- package/dist/components/nylas-threads-refresh.js +2 -2
- package/dist/components/nylas-threads-search.js +1 -1
- package/dist/components/nylas-time-window-picker2.js +1 -1
- package/dist/components/nylas-timeslot-interval2.js +2 -2
- package/dist/components/nylas-view-email2.js +1 -1
- package/dist/components/nylas-view-thread.js +1 -1
- package/dist/components/people.js +1 -1
- package/dist/components/person.js +1 -1
- package/dist/components/play.js +1 -1
- package/dist/components/radio-button-group2.js +1 -1
- package/dist/components/refresh.js +1 -1
- package/dist/components/reply-all.js +1 -1
- package/dist/components/reply.js +1 -1
- package/dist/components/search.js +1 -1
- package/dist/components/select-dropdown2.js +2 -2
- package/dist/components/sent.js +1 -1
- package/dist/components/spam.js +1 -1
- package/dist/components/star.js +1 -1
- package/dist/components/stop.js +1 -1
- package/dist/components/textarea-component.js +1 -1
- package/dist/components/time-period-selector2.js +1 -1
- package/dist/components/toggle-switch.js +1 -49
- package/dist/components/toggle-switch.js.map +1 -1
- package/dist/components/toggle-switch2.js +53 -0
- package/dist/components/toggle-switch2.js.map +1 -0
- package/dist/components/toolitp-component.js +1 -1
- package/dist/components/translate.js +1 -1
- package/dist/components/trash.js +1 -1
- package/dist/components/underline.js +1 -1
- package/dist/components/warning.js +1 -1
- package/dist/esm/add-circle-icon.entry.js +1 -1
- package/dist/esm/add-circle-icon_2.entry.js +2 -2
- package/dist/esm/archive-icon.entry.js +1 -1
- package/dist/esm/archive-icon_7.entry.js +7 -7
- package/dist/esm/arrow-icon.entry.js +1 -1
- package/dist/esm/bold-icon.entry.js +1 -1
- package/dist/esm/bold-icon_3.entry.js +3 -3
- package/dist/esm/button-component.entry.js +1 -1
- package/dist/esm/calendar-cancel-icon.entry.js +1 -1
- package/dist/esm/calendar-check-icon.entry.js +1 -1
- package/dist/esm/calendar-check-icon_2.entry.js +2 -2
- package/dist/esm/calendar-icon.entry.js +1 -1
- package/dist/esm/calendar-info-icon.entry.js +1 -1
- package/dist/esm/{calendar-info-icon_27.entry.js → calendar-info-icon_28.entry.js} +300 -413
- package/dist/esm/calendar-info-icon_28.entry.js.map +1 -0
- package/dist/esm/calendar-patterns-icon.entry.js +1 -1
- package/dist/esm/checkbox-component.entry.js +1 -1
- package/dist/esm/checkbox-component.entry.js.map +1 -1
- package/dist/esm/checkmark-circle-icon.entry.js +1 -1
- package/dist/esm/chevron-icon.entry.js +1 -1
- package/dist/esm/chevron-icon_3.entry.js +4 -4
- package/dist/esm/clock-icon.entry.js +1 -1
- package/dist/esm/clock-icon_2.entry.js +2 -2
- package/dist/esm/close-icon.entry.js +1 -1
- package/dist/esm/document-refresh-icon.entry.js +1 -1
- package/dist/esm/flow-icon.entry.js +1 -1
- package/dist/esm/folder-icon.entry.js +1 -1
- package/dist/esm/forward-icon.entry.js +1 -1
- package/dist/esm/forward-icon_6.entry.js +7 -7
- package/dist/esm/globe-icon.entry.js +1 -1
- package/dist/esm/google-logo-icon.entry.js +1 -1
- package/dist/esm/google-logo-icon_4.entry.js +96 -78
- package/dist/esm/google-logo-icon_4.entry.js.map +1 -1
- package/dist/esm/inbox-icon.entry.js +1 -1
- package/dist/esm/index-582cfc93.js +18 -14
- package/dist/esm/index-7cb0dd3d.js +10 -10
- package/dist/esm/{index.es-896126fc.js → index.es-c5a8a1ac.js} +2 -2
- package/dist/esm/{index.es-896126fc.js.map → index.es-c5a8a1ac.js.map} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/info-icon.entry.js +1 -1
- package/dist/esm/info-icon_2.entry.js +2 -2
- package/dist/esm/input-component.entry.js +1 -1
- package/dist/esm/input-dropdown.entry.js +13 -3
- package/dist/esm/input-dropdown.entry.js.map +1 -1
- package/dist/esm/input-dropdown_2.entry.js +14 -4
- package/dist/esm/input-dropdown_2.entry.js.map +1 -1
- package/dist/esm/italic-icon.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loading-icon.entry.js +1 -1
- package/dist/esm/location-icon.entry.js +1 -1
- package/dist/esm/location-off-icon.entry.js +1 -1
- package/dist/esm/{mailbox-store-c9b2a4fd.js → mailbox-store-94133e15.js} +3 -3
- package/dist/esm/{mailbox-store-c9b2a4fd.js.map → mailbox-store-94133e15.js.map} +1 -1
- package/dist/esm/microsoft-logo-icon.entry.js +1 -1
- package/dist/esm/multi-select-dropdown.entry.js +3 -3
- package/dist/esm/nylas-additional-participants.entry.js +19 -15
- package/dist/esm/nylas-additional-participants.entry.js.map +1 -1
- package/dist/esm/{nylas-api-request-27e81d64.js → nylas-api-request-5ac7887c.js} +2 -2
- package/dist/esm/{nylas-api-request-27e81d64.js.map → nylas-api-request-5ac7887c.js.map} +1 -1
- package/dist/esm/nylas-availability-picker.entry.js +29 -18
- package/dist/esm/nylas-availability-picker.entry.js.map +1 -1
- package/dist/esm/nylas-booked-event-card.entry.js +2 -2
- package/dist/esm/nylas-booked-event-card_10.entry.js +4 -4
- package/dist/esm/nylas-booking-calendar-picker.entry.js +2 -2
- package/dist/esm/nylas-booking-form.entry.js +2 -2
- package/dist/esm/nylas-buffer-time.entry.js +2 -2
- package/dist/esm/nylas-calendar-picker.entry.js +2 -2
- package/dist/esm/nylas-cancel-booking-form.entry.js +3 -3
- package/dist/esm/nylas-cancellation-policy.entry.js +3 -3
- package/dist/esm/nylas-cancelled-event-card.entry.js +3 -3
- package/dist/esm/nylas-composer.entry.js +2 -2
- package/dist/esm/nylas-custom-booking-flow.entry.js +3 -3
- package/dist/esm/nylas-customize-booking-settings.entry.js +3 -3
- package/dist/esm/nylas-date-picker.entry.js +2 -2
- package/dist/esm/nylas-editor-tabs.entry.js +96 -78
- package/dist/esm/nylas-editor-tabs.entry.js.map +1 -1
- package/dist/esm/nylas-event-description.entry.js +2 -2
- package/dist/esm/nylas-event-duration.entry.js +2 -2
- package/dist/esm/nylas-event-info.entry.js +3 -3
- package/dist/esm/nylas-event-limits.entry.js +3 -3
- package/dist/esm/nylas-event-location.entry.js +5 -5
- package/dist/esm/nylas-event-title.entry.js +2 -2
- package/dist/esm/nylas-form-card.entry.js +3 -3
- package/dist/esm/nylas-if-state.entry.js +3 -3
- package/dist/esm/nylas-limit-future-bookings.entry.js +3 -3
- package/dist/esm/nylas-list-configurations.entry.js +2 -2
- package/dist/esm/nylas-list-folders.entry.js +3 -3
- package/dist/esm/nylas-list-threads.entry.js +3 -3
- package/dist/esm/nylas-locale-switch.entry.js +2 -2
- package/dist/esm/nylas-login.entry.js +3 -3
- package/dist/esm/nylas-logo.entry.js +1 -1
- package/dist/esm/nylas-mailbox-pagination.entry.js +2 -2
- package/dist/esm/nylas-mailbox-toolbar-button.entry.js +3 -3
- package/dist/esm/nylas-mailbox.entry.js +4 -4
- package/dist/esm/nylas-min-booking-notice.entry.js +3 -3
- package/dist/esm/nylas-min-cancellation-notice.entry.js +3 -3
- package/dist/esm/nylas-notification.entry.js +2 -2
- package/dist/esm/nylas-participants-custom-availability.entry.js +138 -0
- package/dist/esm/nylas-participants-custom-availability.entry.js.map +1 -0
- package/dist/esm/nylas-provider.entry.js +5 -5
- package/dist/esm/nylas-scheduler-editor.entry.js +3 -3
- package/dist/esm/nylas-scheduling.entry.js +3 -3
- package/dist/esm/nylas-selected-event-card.entry.js +2 -2
- package/dist/esm/nylas-summarize-message-button.entry.js +4 -4
- package/dist/esm/nylas-threads-refresh.entry.js +4 -4
- package/dist/esm/nylas-threads-search.entry.js +3 -3
- package/dist/esm/nylas-time-window-picker.entry.js +2 -2
- package/dist/esm/nylas-timeslot-interval.entry.js +4 -4
- package/dist/esm/nylas-timeslot-picker.entry.js +2 -2
- package/dist/esm/nylas-view-email.entry.js +2 -2
- package/dist/esm/nylas-view-thread.entry.js +3 -3
- package/dist/esm/nylas-web-elements.js +1 -1
- package/dist/esm/people-icon.entry.js +1 -1
- package/dist/esm/person-icon.entry.js +1 -1
- package/dist/esm/play-icon.entry.js +1 -1
- package/dist/esm/play-icon_2.entry.js +2 -2
- package/dist/esm/radio-button-group.entry.js +1 -1
- package/dist/esm/refresh-icon.entry.js +1 -1
- package/dist/esm/{register-component-6ae95538.js → register-component-aef40ec4.js} +2 -2
- package/dist/esm/{register-component-6ae95538.js.map → register-component-aef40ec4.js.map} +1 -1
- package/dist/esm/reply-all-icon.entry.js +1 -1
- package/dist/esm/reply-icon.entry.js +1 -1
- package/dist/esm/{scheduler-store-17f7f1c8.js → scheduler-store-6c4866d6.js} +2 -2
- package/dist/{nylas-web-elements/scheduler-store-17f7f1c8.js.map → esm/scheduler-store-6c4866d6.js.map} +1 -1
- package/dist/esm/search-icon.entry.js +1 -1
- package/dist/esm/select-dropdown.entry.js +2 -2
- package/dist/esm/sent-icon.entry.js +1 -1
- package/dist/esm/spam-icon.entry.js +1 -1
- package/dist/esm/star-icon.entry.js +1 -1
- package/dist/esm/stop-icon.entry.js +1 -1
- package/dist/esm/textarea-component.entry.js +1 -1
- package/dist/esm/time-period-selector.entry.js +2 -2
- package/dist/esm/toggle-switch.entry.js +1 -1
- package/dist/esm/toggle-switch.entry.js.map +1 -1
- package/dist/esm/tooltip-component.entry.js +1 -1
- package/dist/esm/translate-icon.entry.js +1 -1
- package/dist/esm/trash-icon.entry.js +1 -1
- package/dist/esm/underline-icon.entry.js +1 -1
- package/dist/{nylas-web-elements/utils-49a1d17b.js → esm/utils-04c10cbd.js} +2 -2
- package/dist/esm/{utils-49a1d17b.js.map → utils-04c10cbd.js.map} +1 -1
- package/dist/esm/warning-icon.entry.js +1 -1
- package/dist/nylas-web-elements/add-circle-icon.entry.js +1 -1
- package/dist/nylas-web-elements/archive-icon.entry.js +1 -1
- package/dist/nylas-web-elements/arrow-icon.entry.js +1 -1
- package/dist/nylas-web-elements/bold-icon.entry.js +1 -1
- package/dist/nylas-web-elements/button-component.entry.js +1 -1
- package/dist/nylas-web-elements/calendar-cancel-icon.entry.js +1 -1
- package/dist/nylas-web-elements/calendar-check-icon.entry.js +1 -1
- package/dist/nylas-web-elements/calendar-icon.entry.js +1 -1
- package/dist/nylas-web-elements/calendar-info-icon.entry.js +1 -1
- package/dist/nylas-web-elements/calendar-patterns-icon.entry.js +1 -1
- package/dist/nylas-web-elements/checkbox-component.entry.js +1 -1
- package/dist/nylas-web-elements/checkbox-component.entry.js.map +1 -1
- package/dist/nylas-web-elements/checkmark-circle-icon.entry.js +1 -1
- package/dist/nylas-web-elements/chevron-icon.entry.js +1 -1
- package/dist/nylas-web-elements/clock-icon.entry.js +1 -1
- package/dist/nylas-web-elements/close-icon.entry.js +1 -1
- package/dist/nylas-web-elements/document-refresh-icon.entry.js +1 -1
- package/dist/nylas-web-elements/flow-icon.entry.js +1 -1
- package/dist/nylas-web-elements/folder-icon.entry.js +1 -1
- package/dist/nylas-web-elements/forward-icon.entry.js +1 -1
- package/dist/nylas-web-elements/globe-icon.entry.js +1 -1
- package/dist/nylas-web-elements/google-logo-icon.entry.js +1 -1
- package/dist/nylas-web-elements/inbox-icon.entry.js +1 -1
- package/dist/nylas-web-elements/{index.es-896126fc.js → index.es-c5a8a1ac.js} +2 -2
- package/dist/nylas-web-elements/{index.es-896126fc.js.map → index.es-c5a8a1ac.js.map} +1 -1
- package/dist/nylas-web-elements/index.esm.js +2 -2
- package/dist/nylas-web-elements/info-icon.entry.js +1 -1
- package/dist/nylas-web-elements/input-component.entry.js +1 -1
- package/dist/nylas-web-elements/input-dropdown.entry.js +13 -3
- package/dist/nylas-web-elements/input-dropdown.entry.js.map +1 -1
- package/dist/nylas-web-elements/italic-icon.entry.js +1 -1
- package/dist/nylas-web-elements/loading-icon.entry.js +1 -1
- package/dist/nylas-web-elements/location-icon.entry.js +1 -1
- package/dist/nylas-web-elements/location-off-icon.entry.js +1 -1
- package/dist/nylas-web-elements/{mailbox-store-c9b2a4fd.js → mailbox-store-94133e15.js} +3 -3
- package/dist/nylas-web-elements/{mailbox-store-c9b2a4fd.js.map → mailbox-store-94133e15.js.map} +1 -1
- package/dist/nylas-web-elements/microsoft-logo-icon.entry.js +1 -1
- package/dist/nylas-web-elements/multi-select-dropdown.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-additional-participants.entry.js +19 -15
- package/dist/nylas-web-elements/nylas-additional-participants.entry.js.map +1 -1
- package/dist/nylas-web-elements/{nylas-api-request-27e81d64.js → nylas-api-request-5ac7887c.js} +2 -2
- package/dist/nylas-web-elements/{nylas-api-request-27e81d64.js.map → nylas-api-request-5ac7887c.js.map} +1 -1
- package/dist/nylas-web-elements/nylas-availability-picker.entry.js +29 -18
- package/dist/nylas-web-elements/nylas-availability-picker.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-booked-event-card.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-booking-calendar-picker.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-booking-form.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-buffer-time.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-calendar-picker.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-cancel-booking-form.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-cancellation-policy.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-cancelled-event-card.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-composer.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-custom-booking-flow.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-customize-booking-settings.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-date-picker.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-editor-tabs.entry.js +96 -78
- package/dist/nylas-web-elements/nylas-editor-tabs.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-event-description.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-event-duration.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-event-info.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-event-limits.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-event-location.entry.js +5 -5
- package/dist/nylas-web-elements/nylas-event-title.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-form-card.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-if-state.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-limit-future-bookings.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-list-configurations.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-list-folders.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-list-threads.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-locale-switch.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-login.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-logo.entry.js +1 -1
- package/dist/nylas-web-elements/nylas-mailbox-pagination.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-mailbox-toolbar-button.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-mailbox.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-min-booking-notice.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-min-cancellation-notice.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-notification.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-participants-custom-availability.entry.js +138 -0
- package/dist/nylas-web-elements/nylas-participants-custom-availability.entry.js.map +1 -0
- package/dist/nylas-web-elements/nylas-provider.entry.js +5 -5
- package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-scheduling.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-selected-event-card.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-summarize-message-button.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-threads-refresh.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-threads-search.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-time-window-picker.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-timeslot-interval.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-timeslot-picker.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-view-email.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-view-thread.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/{p-e4a7746d.entry.js → p-012cb022.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-b9064de4.entry.js → p-017f2538.entry.js} +2 -2
- package/dist/nylas-web-elements/p-086746ee.entry.js +2 -0
- package/dist/nylas-web-elements/p-0919bbbe.entry.js +2 -0
- package/dist/nylas-web-elements/{p-da21471c.entry.js → p-13eb1a05.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-deafc6bc.entry.js → p-1569f74f.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-6e888067.entry.js → p-23c143f6.entry.js} +2 -2
- package/dist/nylas-web-elements/p-2743621d.entry.js +2 -0
- package/dist/nylas-web-elements/p-2743621d.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-a7dd4c24.entry.js → p-30144ca0.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-11f94952.entry.js → p-336631dd.entry.js} +2 -2
- package/dist/nylas-web-elements/p-43bfaa93.entry.js +2 -0
- package/dist/nylas-web-elements/{p-120d2c72.entry.js → p-4e48846a.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-4b84ab3f.entry.js → p-5fd52ecd.entry.js} +2 -2
- package/dist/nylas-web-elements/p-62cf46ee.entry.js +2 -0
- package/dist/nylas-web-elements/{p-32682655.entry.js → p-672f1951.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-ace74b9d.entry.js → p-84c53084.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-470536e0.entry.js → p-8c1a5e57.entry.js} +2 -2
- package/dist/nylas-web-elements/p-8eddadb3.entry.js +2 -0
- package/dist/nylas-web-elements/{p-0dbc0c01.entry.js.map → p-8eddadb3.entry.js.map} +1 -1
- package/dist/nylas-web-elements/p-938d4ec9.entry.js +2 -0
- package/dist/nylas-web-elements/{p-fbac3865.entry.js.map → p-938d4ec9.entry.js.map} +1 -1
- package/dist/nylas-web-elements/{p-6891ad5d.entry.js → p-a118f20c.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-24082558.entry.js → p-a5dbdc8e.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-4fdc6122.entry.js → p-a7640232.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-09fec39c.entry.js → p-a804616a.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-27db7b0b.entry.js → p-ad93d3bd.entry.js} +3 -3
- package/dist/nylas-web-elements/{p-bfd3b5f0.entry.js → p-b3d46e08.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-4b1466b3.entry.js → p-b443f769.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-c8c737ed.entry.js → p-c1df61d0.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-395f49eb.entry.js → p-cc67e6a8.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-4f548e66.entry.js → p-d1d984c5.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-98a2f588.entry.js → p-d9a145a5.entry.js} +2 -2
- package/dist/nylas-web-elements/p-dcb497d4.entry.js +2 -0
- package/dist/nylas-web-elements/p-dcb497d4.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-13b003b5.entry.js → p-df2b34ee.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-ec26560f.entry.js → p-e9c1e983.entry.js} +2 -2
- package/dist/nylas-web-elements/p-e9f7d494.entry.js +2 -0
- package/dist/nylas-web-elements/{p-53da3000.entry.js.map → p-e9f7d494.entry.js.map} +1 -1
- package/dist/nylas-web-elements/p-f1e9ed6b.entry.js +2 -0
- package/dist/nylas-web-elements/p-f1e9ed6b.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-f8e0164c.entry.js +2 -0
- package/dist/nylas-web-elements/p-f8e0164c.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-b27e34a9.entry.js → p-fbfa3a7d.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-d5146511.entry.js → p-fd8e29e6.entry.js} +2 -2
- package/dist/nylas-web-elements/people-icon.entry.js +1 -1
- package/dist/nylas-web-elements/person-icon.entry.js +1 -1
- package/dist/nylas-web-elements/play-icon.entry.js +1 -1
- package/dist/nylas-web-elements/radio-button-group.entry.js +1 -1
- package/dist/nylas-web-elements/refresh-icon.entry.js +1 -1
- package/dist/nylas-web-elements/{register-component-6ae95538.js → register-component-aef40ec4.js} +2 -2
- package/dist/nylas-web-elements/{register-component-6ae95538.js.map → register-component-aef40ec4.js.map} +1 -1
- package/dist/nylas-web-elements/reply-all-icon.entry.js +1 -1
- package/dist/nylas-web-elements/reply-icon.entry.js +1 -1
- package/dist/nylas-web-elements/{scheduler-store-17f7f1c8.js → scheduler-store-6c4866d6.js} +2 -2
- package/dist/{esm/scheduler-store-17f7f1c8.js.map → nylas-web-elements/scheduler-store-6c4866d6.js.map} +1 -1
- package/dist/nylas-web-elements/search-icon.entry.js +1 -1
- package/dist/nylas-web-elements/select-dropdown.entry.js +2 -2
- package/dist/nylas-web-elements/sent-icon.entry.js +1 -1
- package/dist/nylas-web-elements/spam-icon.entry.js +1 -1
- package/dist/nylas-web-elements/star-icon.entry.js +1 -1
- package/dist/nylas-web-elements/stop-icon.entry.js +1 -1
- package/dist/nylas-web-elements/textarea-component.entry.js +1 -1
- package/dist/nylas-web-elements/time-period-selector.entry.js +2 -2
- package/dist/nylas-web-elements/toggle-switch.entry.js +1 -1
- package/dist/nylas-web-elements/toggle-switch.entry.js.map +1 -1
- package/dist/nylas-web-elements/tooltip-component.entry.js +1 -1
- package/dist/nylas-web-elements/translate-icon.entry.js +1 -1
- package/dist/nylas-web-elements/trash-icon.entry.js +1 -1
- package/dist/nylas-web-elements/underline-icon.entry.js +1 -1
- package/dist/{esm/utils-49a1d17b.js → nylas-web-elements/utils-04c10cbd.js} +2 -2
- package/dist/nylas-web-elements/{utils-49a1d17b.js.map → utils-04c10cbd.js.map} +1 -1
- package/dist/nylas-web-elements/warning-icon.entry.js +1 -1
- package/dist/types/components/design-system/input-dropdown/input-dropdown.d.ts +2 -0
- package/dist/types/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.d.ts +6 -1
- package/dist/types/components/scheduler-editor/nylas-availability-picker/nylas-availability-picker.d.ts +2 -4
- package/dist/types/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.d.ts +12 -5
- package/dist/types/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.d.ts +36 -0
- package/dist/types/components.d.ts +122 -9
- package/package.json +1 -1
- package/dist/cjs/calendar-info-icon_27.cjs.entry.js.map +0 -1
- package/dist/esm/calendar-info-icon_27.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-0dbc0c01.entry.js +0 -2
- package/dist/nylas-web-elements/p-3fd63454.entry.js +0 -2
- package/dist/nylas-web-elements/p-3fd63454.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-427548f5.entry.js +0 -2
- package/dist/nylas-web-elements/p-427548f5.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-53da3000.entry.js +0 -2
- package/dist/nylas-web-elements/p-7fac2bba.entry.js +0 -2
- package/dist/nylas-web-elements/p-96418bc6.entry.js +0 -2
- package/dist/nylas-web-elements/p-9acfea5f.entry.js +0 -2
- package/dist/nylas-web-elements/p-9acfea5f.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-c170c56d.entry.js +0 -2
- package/dist/nylas-web-elements/p-de63bc35.entry.js +0 -2
- package/dist/nylas-web-elements/p-efd5b80a.entry.js +0 -2
- package/dist/nylas-web-elements/p-efd5b80a.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-fbac3865.entry.js +0 -2
- /package/dist/nylas-web-elements/{p-e4a7746d.entry.js.map → p-012cb022.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-b9064de4.entry.js.map → p-017f2538.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-96418bc6.entry.js.map → p-086746ee.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-de63bc35.entry.js.map → p-0919bbbe.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-da21471c.entry.js.map → p-13eb1a05.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-deafc6bc.entry.js.map → p-1569f74f.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-6e888067.entry.js.map → p-23c143f6.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-a7dd4c24.entry.js.map → p-30144ca0.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-11f94952.entry.js.map → p-336631dd.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-7fac2bba.entry.js.map → p-43bfaa93.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-120d2c72.entry.js.map → p-4e48846a.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-4b84ab3f.entry.js.map → p-5fd52ecd.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-c170c56d.entry.js.map → p-62cf46ee.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-32682655.entry.js.map → p-672f1951.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-ace74b9d.entry.js.map → p-84c53084.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-470536e0.entry.js.map → p-8c1a5e57.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-6891ad5d.entry.js.map → p-a118f20c.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-24082558.entry.js.map → p-a5dbdc8e.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-4fdc6122.entry.js.map → p-a7640232.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-09fec39c.entry.js.map → p-a804616a.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-27db7b0b.entry.js.map → p-ad93d3bd.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-bfd3b5f0.entry.js.map → p-b3d46e08.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-4b1466b3.entry.js.map → p-b443f769.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-c8c737ed.entry.js.map → p-c1df61d0.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-395f49eb.entry.js.map → p-cc67e6a8.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-4f548e66.entry.js.map → p-d1d984c5.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-98a2f588.entry.js.map → p-d9a145a5.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-13b003b5.entry.js.map → p-df2b34ee.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-ec26560f.entry.js.map → p-e9c1e983.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-b27e34a9.entry.js.map → p-fbfa3a7d.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-d5146511.entry.js.map → p-fd8e29e6.entry.js.map} +0 -0
|
@@ -7,8 +7,8 @@ const utils = require('./utils-fe7102aa.js');
|
|
|
7
7
|
const registerComponent = require('./register-component-7d193b8d.js');
|
|
8
8
|
const constants = require('./constants-3e962931.js');
|
|
9
9
|
const index$1 = require('./index-4fa1bb56.js');
|
|
10
|
-
const _commonjsHelpers = require('./_commonjsHelpers-0a7b82d9.js');
|
|
11
10
|
require('./buffer-es6-370c0d93.js');
|
|
11
|
+
require('./_commonjsHelpers-0a7b82d9.js');
|
|
12
12
|
require('./index-b41d035f.js');
|
|
13
13
|
|
|
14
14
|
const iconCss$5 = ".sc-calendar-info-icon-h{display:flex}";
|
|
@@ -21,7 +21,7 @@ const CalendarInfoIcon = class {
|
|
|
21
21
|
this.height = '20';
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (index.h("svg", { key: '
|
|
24
|
+
return (index.h("svg", { key: 'cccc82de81a96835882467868c393b01acefd2ce', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '1d4e348404256d41966b5f59f34151493412c4cb', d: "M12 0C13.3807 0 14.5 1.11929 14.5 2.5V6.59971C14.1832 6.43777 13.8486 6.30564 13.5 6.20703V4H1.5V11.5C1.5 12.3284 2.17157 13 3 13H6.70703C6.80564 13.3486 6.93777 13.6832 7.09971 14H3C1.61929 14 0.5 12.8807 0.5 11.5V2.5C0.5 1.11929 1.61929 0 3 0H12ZM12 1H3C2.17157 1 1.5 1.67157 1.5 2.5V3H13.5V2.5C13.5 1.67157 12.8284 1 12 1ZM11.375 9.5C11.375 9.15482 11.6548 8.875 12 8.875C12.3452 8.875 12.625 9.15482 12.625 9.5C12.625 9.84518 12.3452 10.125 12 10.125C11.6548 10.125 11.375 9.84518 11.375 9.5ZM12.5 13.5C12.5 13.7761 12.2761 14 12 14C11.7239 14 11.5 13.7761 11.5 13.5V11.5C11.5 11.2239 11.7239 11 12 11C12.2761 11 12.5 11.2239 12.5 11.5V13.5ZM7.5 11.5C7.5 9.01472 9.51472 7 12 7C14.4853 7 16.5 9.01472 16.5 11.5C16.5 13.9853 14.4853 16 12 16C9.51472 16 7.5 13.9853 7.5 11.5ZM8.5 11.5C8.5 13.433 10.067 15 12 15C13.933 15 15.5 13.433 15.5 11.5C15.5 9.567 13.933 8 12 8C10.067 8 8.5 9.567 8.5 11.5Z", fill: "currentColor" })));
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
CalendarInfoIcon.style = CalendarInfoIconStyle0;
|
|
@@ -36,7 +36,7 @@ const CalendarPatternsIcon = class {
|
|
|
36
36
|
this.height = '20';
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (index.h("svg", { key: '
|
|
39
|
+
return (index.h("svg", { key: 'dd2ac860a58584163788ba39e76c53c456b8effe', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: 'fe1368d38056f3d10efca5ec6fcde6dc92821df6', d: "M3.25 0H11.75C13.2688 0 14.5 1.23122 14.5 2.75V11.25C14.5 12.7688 13.2688 14 11.75 14H3.25C1.73122 14 0.5 12.7688 0.5 11.25V2.75C0.5 1.23122 1.73122 0 3.25 0ZM2 2.75V4H13V2.75C13 2.05964 12.4404 1.5 11.75 1.5H3.25C2.55964 1.5 2 2.05964 2 2.75ZM12.2071 5L8.20711 9H10.7929L13 6.79289V5H12.2071ZM10.7929 5H8.20711L4.20711 9H6.79289L10.7929 5ZM2.79289 9L6.79289 5H4.20711L2 7.20711V9H2.79289ZM2 5.79289L2.79289 5H2V5.79289ZM12.2071 9H13V8.20711L12.2071 9Z", fill: "currentColor" })));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
CalendarPatternsIcon.style = CalendarPatternsIconStyle0;
|
|
@@ -65,7 +65,7 @@ const CheckboxComponent = class {
|
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
|
-
return (index.h("label", { key: '
|
|
68
|
+
return (index.h("label", { key: '9d7aecec74bf3dabbb242324c0d028b46213b81f' }, index.h("input", { key: 'd0e94c6ee729adab2bc6df57f573024f632d87b9', type: "checkbox", name: this.name, checked: this.isChecked, onChange: () => this.toggleCheck() }), index.h("span", { key: '95d00654e241d754eca4b721df4c71d3649d2dc0', class: "checkmark" }), index.h("slot", { key: 'f5560353f9371cd8d14b18f4ca1000123770b094', name: "label" }, index.h("span", { key: '09189dda1ec3da4095ae2d8978e579d4f0dd5a4a', class: "label" }, this.label))));
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
CheckboxComponent.style = CheckboxComponentStyle0;
|
|
@@ -80,7 +80,7 @@ const FlowIcon = class {
|
|
|
80
80
|
this.height = '12';
|
|
81
81
|
}
|
|
82
82
|
render() {
|
|
83
|
-
return (index.h("svg", { key: '
|
|
83
|
+
return (index.h("svg", { key: '990421d00dad37fc4e84a1e472f71486b0af9e8b', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '1458febb2237e9d0b3b0e7ba75891a85aaa70f16', d: "M13 1.66211C11.8954 1.66211 11 2.55754 11 3.66211C11 4.76668 11.8954 5.66211 13 5.66211C14.1046 5.66211 15 4.76668 15 3.66211C15 2.55754 14.1046 1.66211 13 1.66211ZM10.0407 3.16678C10.2768 1.74563 11.5119 0.662109 13 0.662109C14.6569 0.662109 16 2.00526 16 3.66211C16 5.31896 14.6569 6.66211 13 6.66211C11.5162 6.66211 10.2839 5.58482 10.0428 4.16971C9.37629 4.23688 8.82682 4.7426 8.71466 5.41551L8.27173 8.07311C8.07929 9.22776 7.11428 10.087 5.9593 10.1574C5.72319 11.5786 4.48813 12.6621 3 12.6621C1.34315 12.6621 0 11.319 0 9.66211C0 8.00526 1.34315 6.66211 3 6.66211C4.48384 6.66211 5.71607 7.73939 5.95724 9.15451C6.62371 9.08734 7.17318 8.58162 7.28534 7.90871L7.72827 5.25111C7.92071 4.09646 8.88571 3.23718 10.0407 3.16678ZM3 7.66211C1.89543 7.66211 1 8.55754 1 9.66211C1 10.7667 1.89543 11.6621 3 11.6621C4.10457 11.6621 5 10.7667 5 9.66211C5 8.55754 4.10457 7.66211 3 7.66211Z", fill: "currentColor" })));
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
FlowIcon.style = FlowIconStyle0;
|
|
@@ -95,7 +95,7 @@ const LocationIcon = class {
|
|
|
95
95
|
this.height = '18';
|
|
96
96
|
}
|
|
97
97
|
render() {
|
|
98
|
-
return (index.h("svg", { key: '
|
|
98
|
+
return (index.h("svg", { key: '18863bae4b528331182b4f9f2d57ec427a7537ab', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: 'b2450f8d8b35c9b0fcfe776b5517b7454e332255', d: "M10 7.66211C10 9.31896 8.65685 10.6621 7 10.6621C5.34315 10.6621 4 9.31896 4 7.66211C4 6.00526 5.34315 4.66211 7 4.66211C8.65685 4.66211 10 6.00526 10 7.66211ZM9 7.66211C9 6.55754 8.10457 5.66211 7 5.66211C5.89543 5.66211 5 6.55754 5 7.66211C5 8.76668 5.89543 9.66211 7 9.66211C8.10457 9.66211 9 8.76668 9 7.66211ZM11.9497 12.6171C14.6834 9.88221 14.6834 5.44812 11.9497 2.71326C9.21608 -0.0216067 4.78392 -0.0216067 2.05025 2.71326C-0.683418 5.44812 -0.683418 9.88221 2.05025 12.6171L3.57128 14.1159L5.61408 16.101L5.74691 16.2188C6.52168 16.8468 7.65623 16.8076 8.38611 16.1012L10.8223 13.7312L11.9497 12.6171ZM2.75499 3.4183C5.09944 1.07282 8.90055 1.07282 11.245 3.4183C13.5294 5.70364 13.5879 9.3725 11.4207 11.7288L11.245 11.912L9.92371 13.216L7.69315 15.3846L7.60016 15.4642C7.24594 15.732 6.7543 15.732 6.40012 15.4642L6.30713 15.3845L3.3263 12.4791L2.75499 11.912L2.57927 11.7288C0.412077 9.3725 0.47065 5.70364 2.75499 3.4183Z", fill: "currentColor" })));
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
LocationIcon.style = LocationIconStyle0;
|
|
@@ -110,7 +110,7 @@ const LocationOffIcon = class {
|
|
|
110
110
|
this.height = '18';
|
|
111
111
|
}
|
|
112
112
|
render() {
|
|
113
|
-
return (index.h("svg", { key: '
|
|
113
|
+
return (index.h("svg", { key: '7e8bb8dd37c043ab86b0a382fba2d8b8a850d035', width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: 'f99541cb8478894f2497354838fccc4930f54674', d: "M0.146447 0.808556C0.341709 0.613294 0.658291 0.613294 0.853553 0.808556L15.8536 15.8086C16.0488 16.0038 16.0488 16.3204 15.8536 16.5157C15.6583 16.7109 15.3417 16.7109 15.1464 16.5157L12.0938 13.463L11.8223 13.7312L9.38611 16.1012C8.65623 16.8076 7.52168 16.8468 6.74691 16.2188L6.61408 16.101L4.57128 14.1159L3.05025 12.6171C0.607421 10.1732 0.347525 6.37239 2.27056 3.63976L0.146447 1.51566C-0.0488155 1.3204 -0.0488155 1.00382 0.146447 0.808556ZM9.07768 10.4469C8.74346 10.576 8.38024 10.6468 8.0005 10.6468C6.34839 10.6468 5.00909 9.30689 5.00909 7.65406C5.00909 7.27461 5.07967 6.91166 5.20843 6.57763L2.98793 4.35713C1.49206 6.62038 1.68917 9.67377 3.57927 11.7288L3.75499 11.912L4.3263 12.4791L7.30713 15.3845L7.40012 15.4642C7.7543 15.732 8.24594 15.732 8.60016 15.4642L8.69315 15.3846L10.9237 13.216L11.3883 12.7575L9.07768 10.4469ZM9.85409 8.39486L10.5983 9.13904C10.8487 8.70143 10.9919 8.19447 10.9919 7.65406C10.9919 6.00122 9.65261 4.66134 8.0005 4.66134C7.45986 4.66134 6.95271 4.80482 6.51504 5.05581L7.25921 5.79998C7.48839 5.70819 7.73855 5.6577 8.0005 5.6577C9.10258 5.6577 9.99599 6.5515 9.99599 7.65406C9.99599 7.91581 9.94564 8.16581 9.85409 8.39486ZM4.35291 2.89368C6.70671 1.08827 10.0908 1.26314 12.245 3.4183C14.3986 5.57283 14.5739 8.95702 12.771 11.3118L13.4812 12.022C15.6702 9.27273 15.493 5.25762 12.9497 2.71326C10.4058 0.168159 6.39081 -0.00843871 3.64269 2.18347L4.35291 2.89368Z", fill: "currentColor" })));
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
116
|
LocationOffIcon.style = LocationOffIconStyle0;
|
|
@@ -238,9 +238,9 @@ const MultiSelectDropdown = class {
|
|
|
238
238
|
}, class: { selected: !!option.selected } }, index.h("label", { htmlFor: option.value }, index.h("input", { "aria-hidden": "true", id: option.value, type: "checkbox", checked: option.selected }), index.h("span", null, option.label))));
|
|
239
239
|
}
|
|
240
240
|
render() {
|
|
241
|
-
return (index.h(index.Host, { key: '
|
|
241
|
+
return (index.h(index.Host, { key: '68762c15e4d20e8d695807b7d4b401f95d1759a8' }, index.h("div", { key: 'f6b695da1ac813ce000f09442d79797cd57b5400', class: "dropdown", part: "msd_dropdown" }, index.h("label", { key: '375e7f825f8ca0962b12f5a35960a514535a0e4d', class: "dropdown-label" }, this.label, index.h("slot", { key: '4cb277f7424fc3a2906b6ca2bb25ab9af75f4b48', name: "label-icon", "aria-hidden": "true" })), index.h("button", { key: '76d5eec276f0aadb5f94de67a7c674d7506fec1b', part: "msd_dropdown-button", class: { dropbtn: true, open: this.isOpen }, onClick: () => this.toggleDropdown(), "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-label": this.name, onKeyDown: e => this.handleSelectButtonKeyDown(e) }, index.h("slot", { key: '229cae92d81294a1a8785ae95a265b156c4c571b', name: "select-icon", "aria-hidden": "true" }), index.h("span", { key: 'c2c030a9052bf733af0c9f5aabf665f9c50a612a', class: "selected-option", part: "msd_dropdown-button-selected-label" }, this.getSelectedOptions().length > 1
|
|
242
242
|
? `Multiple ${this.name}s selected`
|
|
243
|
-
: this.availableOptions.filter(o => o.selected)[0]?.label ?? this.availableOptions[0]?.label), index.h("span", { key: '
|
|
243
|
+
: this.availableOptions.filter(o => o.selected)[0]?.label ?? this.availableOptions[0]?.label), index.h("span", { key: '0f18d14621e108bd6019ceea2e86ae19d1816d53', class: this.isOpen ? 'open' : 'closed', "aria-hidden": "true" }, index.h("chevron-icon", { key: '1dba99f7491f72edeed66b567692b4aaf16be32d', width: "16", height: "16" }))), this.isOpen ? null : (index.h("div", { class: 'selected-options' }, this.getSelectedOptions().map(option => (index.h("span", { class: "selected-option" }, option.label, index.h("button", { key: option.label, onClick: () => this.selectOption(option) }, index.h("close-icon", null))))))), this.isOpen ? (index.h("div", { class: "dropdown-content", part: "msd_dropdown-content" }, index.h("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-multiselectable": true, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: e => this.handleListboxKeydown(e) }, this.availableOptions.map(option => this.renderOption(option))))) : null)));
|
|
244
244
|
}
|
|
245
245
|
get el() { return index.getElement(this); }
|
|
246
246
|
};
|
|
@@ -249,7 +249,7 @@ MultiSelectDropdown.style = MultiSelectDropdownStyle0;
|
|
|
249
249
|
const nylasAdditionalParticipantsCss = ":host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-additional-participants__title{color:var(--nylas-base-nylas-base-900-aaa, #101323);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-additional-participants__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-additional-participants__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-additional-participants__input_group{padding-top:8px;display:flex;flex-direction:column;gap:4px}.nylas-additional-participants__input_group label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:150%}.nylas-additional-participants__input_wrapper{display:flex;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-300)}.nylas-additional-participants__input_wrapper button{padding:12px;border:none;border-left:1px solid var(--nylas-base-300);background:none;cursor:pointer}.nylas-additional-participants__input_wrapper button:hover,.nylas-additional-participants__input_wrapper button:active{color:var(--nylas-primary)}.nylas-additional-participants__input_wrapper_organizer{background:var(--nylas-base-50)}.nylas-additional-participants__input{flex:1;display:flex;justify-content:space-between}.nylas-additional-participants__input.organizer{padding:12px 16px}.nylas-additional-participants__input input{border:none;outline:none;background:none;width:100%}.nylas-additional-participants__input input-dropdown{width:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown){width:100%;height:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown-input){height:100%;border-radius:var(--nylas-border-radius-2x);border:none;border-top-right-radius:initial;border-bottom-right-radius:initial;padding-left:16px}.nylas-additional-participants__add{padding:12px;display:flex;align-items:center;border:none;background:none;cursor:pointer}.nylas-additional-participants__add span{padding:0 8px;font-size:16px;font-style:normal;font-weight:500}.nylas-additional-participants__add:hover,.nylas-additional-participants__add:active{color:var(--nylas-primary)}";
|
|
250
250
|
const NylasAdditionalParticipantsStyle0 = nylasAdditionalParticipantsCss;
|
|
251
251
|
|
|
252
|
-
var __decorate$
|
|
252
|
+
var __decorate$h = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
253
253
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
254
254
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
255
255
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -259,13 +259,14 @@ var __decorate$g = (undefined && undefined.__decorate) || function (decorators,
|
|
|
259
259
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
260
260
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
261
261
|
};
|
|
262
|
-
var __metadata$
|
|
262
|
+
var __metadata$h = (undefined && undefined.__metadata) || function (k, v) {
|
|
263
263
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
264
264
|
return Reflect.metadata(k, v);
|
|
265
265
|
};
|
|
266
266
|
const NylasAdditionalParticipants = class {
|
|
267
267
|
constructor(hostRef) {
|
|
268
268
|
index.registerInstance(this, hostRef);
|
|
269
|
+
this.valueChanged = index.createEvent(this, "valueChanged", 7);
|
|
269
270
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
270
271
|
this.internals = hostRef.$hostElement$["s-ei"];
|
|
271
272
|
}
|
|
@@ -292,7 +293,7 @@ const NylasAdditionalParticipants = class {
|
|
|
292
293
|
}
|
|
293
294
|
componentDidLoad() {
|
|
294
295
|
utils.debug('nylas-additional-participants', 'componentDidLoad');
|
|
295
|
-
this.
|
|
296
|
+
this.updateFormValue();
|
|
296
297
|
}
|
|
297
298
|
disconnectedCallback() {
|
|
298
299
|
utils.debug('nylas-additional-participants', 'disconnectedCallback');
|
|
@@ -302,34 +303,37 @@ const NylasAdditionalParticipants = class {
|
|
|
302
303
|
const index = event.detail.name;
|
|
303
304
|
this.participants[index].email = event.detail.value;
|
|
304
305
|
const participant = this.participantOptions?.find(participant => participant.email === event.detail.value);
|
|
306
|
+
this.participants[index].availability = participant ? { calendar_ids: ['primary'] } : undefined;
|
|
305
307
|
this.participants[index].name = participant?.name || event.detail.value;
|
|
306
308
|
this.participants = [...this.participants];
|
|
307
|
-
this.
|
|
309
|
+
this.updateFormValue();
|
|
308
310
|
}
|
|
309
311
|
onParticipantChange(event, index) {
|
|
310
312
|
utils.debug('nylas-additional-participants', 'onParticipantChange');
|
|
311
313
|
this.participants[index].email = event.target.value;
|
|
312
|
-
this.
|
|
314
|
+
this.updateFormValue();
|
|
313
315
|
}
|
|
314
316
|
addParticipant() {
|
|
315
317
|
utils.debug('nylas-additional-participants', 'addParticipant');
|
|
316
|
-
this.participants = [...this.participants, { name: '', email: '', is_organizer: false
|
|
317
|
-
this.
|
|
318
|
+
this.participants = [...this.participants, { name: '', email: '', is_organizer: false }];
|
|
319
|
+
this.updateFormValue();
|
|
318
320
|
}
|
|
319
321
|
removeParticipant(index) {
|
|
320
322
|
utils.debug('nylas-additional-participants', 'removeParticipant');
|
|
321
323
|
this.participants = this.participants.filter((_, i) => i !== index);
|
|
322
|
-
this.
|
|
324
|
+
this.updateFormValue();
|
|
323
325
|
}
|
|
324
326
|
validate(email, index) {
|
|
325
327
|
utils.debug('nylas-additional-participants', 'validate');
|
|
326
328
|
const regex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
327
329
|
const valid = regex.test(String(email).toLowerCase());
|
|
328
330
|
this.participants[index].is_valid = valid;
|
|
329
|
-
this.
|
|
331
|
+
this.updateFormValue();
|
|
330
332
|
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
+
updateFormValue() {
|
|
334
|
+
utils.debug('nylas-additional-participants', 'updateFormValue');
|
|
335
|
+
this.internals.setFormValue(JSON.stringify(this.participants), this.name);
|
|
336
|
+
this.valueChanged.emit({ value: JSON.stringify(this.participants), name: this.name });
|
|
333
337
|
}
|
|
334
338
|
getArrayDifference(array1, array2) {
|
|
335
339
|
const filtered = array1.filter(participant1 => !array2.some(participant2 => participant1.email === participant2.email));
|
|
@@ -338,11 +342,11 @@ const NylasAdditionalParticipants = class {
|
|
|
338
342
|
});
|
|
339
343
|
}
|
|
340
344
|
render() {
|
|
341
|
-
return (index.h(index.Host, { key: '
|
|
345
|
+
return (index.h(index.Host, { key: '67454437ca6e9771da4373e293b8b1d468c79680' }, index.h("nylas-form-card", { key: '844913ba1bca33b83b0d7c0a89323ca48f5ce1dd' }, index.h("h3", { key: 'bbdbf1e9addc3238a013697bff343a1065758928', slot: "header-title", class: "nylas-additional-participants__title", part: "nap__title" }, "Additional participants"), index.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."), index.h("div", { key: '76a8d8118f9012cced55357e4243b897ec41e385', slot: "content", class: "nylas-additional-participants__content" }, index.h("div", { key: 'bb5d6f6e7ebf486eb4c8395ff3ab971335d19750' }, this.participants.map((participant, index$1) => {
|
|
342
346
|
return (index.h("div", { class: 'nylas-additional-participants__input_group', part: "nap__input_group" }, index.h("label", null, participant.is_organizer ? 'Organizer' : `Participant ${index$1}`), 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'}` }, index.h("div", { class: { 'nylas-additional-participants__input': true, 'organizer': participant.is_organizer }, part: "nap__input" }, participant.is_organizer ? (index.h("input", { type: "text", value: participant.email, onInput: e => {
|
|
343
347
|
this.onParticipantChange(e, index$1);
|
|
344
|
-
}, readOnly: participant.is_organizer, onBlur: () => this.validate(participant.email, index$1) })) : (index.h("input-dropdown", { name: `${index$1}`, inputValue: participant.email, options: this.getArrayDifference(this.participantOptions || [], this.participants) })), !participant.is_organizer && (index.h("button", { onClick: () => this.removeParticipant(index$1), part: "nap__remove-participant" }, index.h("close-icon", null)))))));
|
|
345
|
-
})), index.h("button", { key: '
|
|
348
|
+
}, readOnly: participant.is_organizer, onBlur: () => this.validate(participant.email, index$1) })) : (index.h("input-dropdown", { name: `${index$1}`, filterable: true, inputValue: participant.email, options: this.getArrayDifference(this.participantOptions || [], this.participants) })), !participant.is_organizer && (index.h("button", { onClick: () => this.removeParticipant(index$1), part: "nap__remove-participant" }, index.h("close-icon", null)))))));
|
|
349
|
+
})), index.h("button", { key: '14febbe15dc97b44304e98c14d7e084ea5126304', class: "nylas-additional-participants__add", part: "nap__add-participant", onClick: () => this.addParticipant() }, index.h("add-circle-icon", { key: '8f60f39d5d3b3b4532a78eacb0d4bf907a8b7836' }), " ", index.h("span", { key: '8e2c9a49072d04ab571470c68c3277a76706e60e' }, "Add ", this.participants.length > 1 ? 'another' : 'a', " participant"))))));
|
|
346
350
|
}
|
|
347
351
|
static get formAssociated() { return true; }
|
|
348
352
|
get host() { return index.getElement(this); }
|
|
@@ -350,23 +354,23 @@ const NylasAdditionalParticipants = class {
|
|
|
350
354
|
"name": ["elementNameChangedHandler"]
|
|
351
355
|
}; }
|
|
352
356
|
};
|
|
353
|
-
__decorate$
|
|
357
|
+
__decorate$h([
|
|
354
358
|
registerComponent.RegisterComponent({
|
|
355
359
|
name: 'nylas-additional-participants',
|
|
356
360
|
stateToProps: new Map([['schedulerConfig.additionalParticipants', 'participantOptions']]),
|
|
357
361
|
eventToProps: {},
|
|
358
362
|
fireRegisterEvent: true,
|
|
359
363
|
}),
|
|
360
|
-
__metadata$
|
|
361
|
-
__metadata$
|
|
362
|
-
__metadata$
|
|
364
|
+
__metadata$h("design:type", Function),
|
|
365
|
+
__metadata$h("design:paramtypes", []),
|
|
366
|
+
__metadata$h("design:returntype", void 0)
|
|
363
367
|
], NylasAdditionalParticipants.prototype, "render", null);
|
|
364
368
|
NylasAdditionalParticipants.style = NylasAdditionalParticipantsStyle0;
|
|
365
369
|
|
|
366
|
-
const nylasAvailabilityPickerCss = ":host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif;width:inherit}.nylas-availability-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-availability-picker .header{padding:1rem
|
|
370
|
+
const nylasAvailabilityPickerCss = ":host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif;width:inherit}.nylas-availability-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-availability-picker .header{padding:1rem}.nylas-availability-picker .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-availability-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-availability-picker .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 504px){.nylas-availability-picker .content{font-size:15px}}.nylas-availability-picker .content .select-timezone{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200);padding-bottom:1rem;gap:1rem}.nylas-availability-picker .content .select-timezone h4{display:flex;gap:0.5rem;align-items:center;margin:0;font-size:16px;font-weight:500;line-height:20px}@media screen and (max-width: 504px){.nylas-availability-picker .content .select-timezone h4{font-size:15px}}.nylas-availability-picker .content .availability{display:flex;flex-direction:column;gap:1rem;padding:0 0.5rem;margin:1rem 0}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability{gap:0.5rem;padding:0}}.nylas-availability-picker .content .availability .availability-day{display:grid;grid-template-columns:minmax(auto, 65px) 1fr minmax(auto, 40px);gap:1rem;align-items:baseline}@media screen and (max-width: 768px){.nylas-availability-picker .content .availability .availability-day{grid-template-columns:78px 1fr auto}}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day{display:inline-grid;gap:8px;grid-template-columns:60px 1fr auto}}.nylas-availability-picker .content .availability .availability-day .day{display:flex;gap:0.5rem;align-items:center}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .day{gap:0.25rem}}.nylas-availability-picker .content .availability .availability-day .day input[type=checkbox]{transform:scale(1.3)}.nylas-availability-picker .content .availability .availability-day .time-ranges span.unavailable{height:48px;display:flex;align-items:center;justify-content:center}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{display:flex;gap:1.5rem;justify-content:space-between;align-items:baseline}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{justify-content:unset;gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{display:flex;gap:1rem}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers span{margin-top:0.75rem}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range:not(:last-of-type){margin-bottom:1rem}.nylas-availability-picker .content .availability .availability-day .time-ranges p.error{color:var(--nylas-error)}.nylas-availability-picker .content .availability .availability-day button{border:none;background:transparent;height:40px;cursor:pointer;color:var(--nylas-base-800)}.nylas-availability-picker .content .availability .availability-day button:hover,.nylas-availability-picker .content .availability .availability-day button:active{color:var(--nylas-primary)}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){justify-content:initial}";
|
|
367
371
|
const NylasAvailabilityPickerStyle0 = nylasAvailabilityPickerCss;
|
|
368
372
|
|
|
369
|
-
var __decorate$
|
|
373
|
+
var __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
370
374
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
371
375
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
372
376
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -376,7 +380,7 @@ var __decorate$f = (undefined && undefined.__decorate) || function (decorators,
|
|
|
376
380
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
377
381
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
378
382
|
};
|
|
379
|
-
var __metadata$
|
|
383
|
+
var __metadata$g = (undefined && undefined.__metadata) || function (k, v) {
|
|
380
384
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
381
385
|
return Reflect.metadata(k, v);
|
|
382
386
|
};
|
|
@@ -395,6 +399,7 @@ const NylasAvailabilityPicker = class {
|
|
|
395
399
|
this.openHours = undefined;
|
|
396
400
|
this.name = 'availability';
|
|
397
401
|
this.defaultTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
402
|
+
this.hideHeader = false;
|
|
398
403
|
this.schedule = {
|
|
399
404
|
SUN: [],
|
|
400
405
|
MON: [{ start: '09:00am', end: '05:00pm' }],
|
|
@@ -412,20 +417,13 @@ const NylasAvailabilityPicker = class {
|
|
|
412
417
|
this.host.setAttribute('name', newValue);
|
|
413
418
|
}
|
|
414
419
|
configChangedHandler(newConfig) {
|
|
415
|
-
const
|
|
416
|
-
if (
|
|
417
|
-
this.openHoursToSchedule(
|
|
420
|
+
const defaultOpenHours = newConfig?.availability?.availability_rules?.default_open_hours;
|
|
421
|
+
if (defaultOpenHours) {
|
|
422
|
+
this.openHoursToSchedule(defaultOpenHours);
|
|
418
423
|
}
|
|
419
424
|
}
|
|
420
425
|
scheduleChanged(newValue, oldValue) {
|
|
421
426
|
if (newValue !== oldValue) {
|
|
422
|
-
this.valueChanged.emit({
|
|
423
|
-
value: {
|
|
424
|
-
openHours: this.scheduleToOpenHours(newValue),
|
|
425
|
-
timezone: this.timezone,
|
|
426
|
-
},
|
|
427
|
-
name: this.name,
|
|
428
|
-
});
|
|
429
427
|
let overlapDays = {};
|
|
430
428
|
Object.keys(newValue).forEach(key => {
|
|
431
429
|
const dayTimeRanges = newValue[key];
|
|
@@ -454,6 +452,13 @@ const NylasAvailabilityPicker = class {
|
|
|
454
452
|
timezone: this.timezone,
|
|
455
453
|
}));
|
|
456
454
|
}
|
|
455
|
+
this.valueChanged.emit({
|
|
456
|
+
value: JSON.stringify({
|
|
457
|
+
openHours: this.scheduleToOpenHours(newValue),
|
|
458
|
+
timezone: this.timezone,
|
|
459
|
+
}),
|
|
460
|
+
name: this.name,
|
|
461
|
+
});
|
|
457
462
|
}
|
|
458
463
|
}
|
|
459
464
|
nylasFormDropdownChangedHandler(event) {
|
|
@@ -463,10 +468,15 @@ const NylasAvailabilityPicker = class {
|
|
|
463
468
|
if (typeof this.internals.setFormValue !== 'function') {
|
|
464
469
|
return;
|
|
465
470
|
}
|
|
466
|
-
|
|
471
|
+
const updateValue = {
|
|
467
472
|
openHours: this.scheduleToOpenHours(this.schedule),
|
|
468
473
|
timezone: this.timezone,
|
|
469
|
-
}
|
|
474
|
+
};
|
|
475
|
+
this.internals.setFormValue(JSON.stringify(updateValue));
|
|
476
|
+
this.valueChanged.emit({
|
|
477
|
+
value: JSON.stringify(updateValue),
|
|
478
|
+
name: this.name,
|
|
479
|
+
});
|
|
470
480
|
}
|
|
471
481
|
}
|
|
472
482
|
connectedCallback() {
|
|
@@ -487,10 +497,15 @@ const NylasAvailabilityPicker = class {
|
|
|
487
497
|
if (typeof this.internals.setFormValue !== 'function') {
|
|
488
498
|
return;
|
|
489
499
|
}
|
|
490
|
-
|
|
500
|
+
const updateValue = {
|
|
491
501
|
openHours: this.scheduleToOpenHours(this.schedule),
|
|
492
502
|
timezone: this.timezone,
|
|
493
|
-
}
|
|
503
|
+
};
|
|
504
|
+
this.internals.setFormValue(JSON.stringify(updateValue));
|
|
505
|
+
this.valueChanged.emit({
|
|
506
|
+
value: JSON.stringify(updateValue),
|
|
507
|
+
name: this.name,
|
|
508
|
+
});
|
|
494
509
|
}
|
|
495
510
|
getOverlaps(timeRanges) {
|
|
496
511
|
let timeRangesInMinutes = timeRanges.map((range, index) => ({
|
|
@@ -660,7 +675,7 @@ const NylasAvailabilityPicker = class {
|
|
|
660
675
|
label: constants.TIMEZONE_MAP[key],
|
|
661
676
|
value: key,
|
|
662
677
|
}));
|
|
663
|
-
return (index.h(index.Host, { key: '
|
|
678
|
+
return (index.h(index.Host, { key: '81c6118e501f4424ce74cb81530a67f7896a7fca' }, index.h("div", { key: '6dbcda74a92e36089dfda5b11469c6619bb095e1', class: "nylas-availability-picker", part: "nap" }, !this.hideHeader && (index.h("div", { class: "header", part: "nap__header" }, index.h("h3", null, "General availability"), index.h("p", null, "Set your availability for scheduling meetings."))), index.h("div", { key: 'f217b53a7ddc2d0554a3c3e44e79580924dbaa43', class: "content" }, index.h("div", { key: 'fe3dcc1c1c5504e65babb72f7b92f7954e3d4a20', class: "select-timezone", part: "nap__select-timezone" }, index.h("h4", { key: '0746b7a08e56b8d2359ae37357b46b84b440851c', class: "sub-header" }, "Select timezone", index.h("span", { key: 'f6d5424b939bec04d0ab01e3b037a5db6ffdbb77', class: "icon" }, index.h("tooltip-component", { key: '7f6371d4e3ee3ab8c841d3799fbe77a1206084eb' }, index.h("info-icon", { key: 'ae2b6f45b9eba0c26909b283daceafeddefc7936', slot: "tooltip-icon" }), index.h("span", { key: '38cb9c51f61d0087216660e5b2a54f42a42663ae', slot: "tooltip-content" }, "Select your timezone for displaying availability.")))), index.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) }, index.h("span", { key: 'afbee8547454b8eb1ba75a41056e1393fd60c2ec', slot: "select-icon" }, index.h("globe-icon", { key: '7bc82d7454658d2d0783a7d9422b76fb4083d14f', width: "20", height: "20" })))), index.h("div", { key: '2fd561856ac6731c16da239cd296545e256dd12d', class: "availability", part: "nap__availability" }, Object.keys(this.schedule).map(key => {
|
|
664
679
|
const day = key;
|
|
665
680
|
const timeRanges = this.schedule[key];
|
|
666
681
|
return (index.h("div", { class: "availability-day" }, index.h("div", { class: "day", part: "nap__day" }, index.h("input", { type: "checkbox", name: day, id: day, checked: timeRanges.length > 0, onClick: () => {
|
|
@@ -687,22 +702,22 @@ const NylasAvailabilityPicker = class {
|
|
|
687
702
|
"schedule": ["scheduleChanged"]
|
|
688
703
|
}; }
|
|
689
704
|
};
|
|
690
|
-
__decorate$
|
|
705
|
+
__decorate$g([
|
|
691
706
|
registerComponent.RegisterComponent({
|
|
692
707
|
name: 'nylas-availability-picker',
|
|
693
708
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
694
709
|
fireRegisterEvent: true,
|
|
695
710
|
}),
|
|
696
|
-
__metadata$
|
|
697
|
-
__metadata$
|
|
698
|
-
__metadata$
|
|
711
|
+
__metadata$g("design:type", Function),
|
|
712
|
+
__metadata$g("design:paramtypes", []),
|
|
713
|
+
__metadata$g("design:returntype", void 0)
|
|
699
714
|
], NylasAvailabilityPicker.prototype, "render", null);
|
|
700
715
|
NylasAvailabilityPicker.style = NylasAvailabilityPickerStyle0;
|
|
701
716
|
|
|
702
717
|
const nylasBookingCalendarPickerCss = ":host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif;width:inherit}.nylas-booking-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-calendar-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:black;font-size:1rem;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label tooltip-component{display:flex}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}";
|
|
703
718
|
const NylasBookingCalendarPickerStyle0 = nylasBookingCalendarPickerCss;
|
|
704
719
|
|
|
705
|
-
var __decorate$
|
|
720
|
+
var __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
706
721
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
707
722
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
708
723
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -712,7 +727,7 @@ var __decorate$e = (undefined && undefined.__decorate) || function (decorators,
|
|
|
712
727
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
713
728
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
714
729
|
};
|
|
715
|
-
var __metadata$
|
|
730
|
+
var __metadata$f = (undefined && undefined.__metadata) || function (k, v) {
|
|
716
731
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
717
732
|
return Reflect.metadata(k, v);
|
|
718
733
|
};
|
|
@@ -791,7 +806,7 @@ const NylasBookingCalendarPicker = class {
|
|
|
791
806
|
"name": ["elementNameChangedHandler"]
|
|
792
807
|
}; }
|
|
793
808
|
};
|
|
794
|
-
__decorate$
|
|
809
|
+
__decorate$f([
|
|
795
810
|
registerComponent.RegisterComponent({
|
|
796
811
|
name: 'nylas-booking-calendar-picker',
|
|
797
812
|
stateToProps: new Map([
|
|
@@ -808,16 +823,16 @@ __decorate$e([
|
|
|
808
823
|
},
|
|
809
824
|
fireRegisterEvent: true,
|
|
810
825
|
}),
|
|
811
|
-
__metadata$
|
|
812
|
-
__metadata$
|
|
813
|
-
__metadata$
|
|
826
|
+
__metadata$f("design:type", Function),
|
|
827
|
+
__metadata$f("design:paramtypes", []),
|
|
828
|
+
__metadata$f("design:returntype", void 0)
|
|
814
829
|
], NylasBookingCalendarPicker.prototype, "render", null);
|
|
815
830
|
NylasBookingCalendarPicker.style = NylasBookingCalendarPickerStyle0;
|
|
816
831
|
|
|
817
832
|
const nylasBufferTimeCss = ":host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif;width:inherit}.nylas-buffer-time{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-buffer-time .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-buffer-time .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-buffer-time .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-buffer-time .nylas-buffer-time__body{display:grid;grid-template-columns:1fr auto}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body{grid-template-columns:1fr}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{padding:1rem;display:flex;flex-direction:column;gap:1rem;border-right:1px solid var(--nylas-base-200);color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{border:none}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row label{width:200px}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row .dropdown-container{display:flex;gap:1rem;align-items:center;justify-content:flex-end}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container{padding:0 2rem 1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button){width:104px;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-content){width:100%}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}";
|
|
818
833
|
const NylasBufferTimeStyle0 = nylasBufferTimeCss;
|
|
819
834
|
|
|
820
|
-
var __decorate$
|
|
835
|
+
var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
821
836
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
822
837
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
823
838
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -827,7 +842,7 @@ var __decorate$d = (undefined && undefined.__decorate) || function (decorators,
|
|
|
827
842
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
828
843
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
829
844
|
};
|
|
830
|
-
var __metadata$
|
|
845
|
+
var __metadata$e = (undefined && undefined.__metadata) || function (k, v) {
|
|
831
846
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
832
847
|
return Reflect.metadata(k, v);
|
|
833
848
|
};
|
|
@@ -969,7 +984,7 @@ const NylasBufferTime = class {
|
|
|
969
984
|
"name": ["elementNameChangedHandler"]
|
|
970
985
|
}; }
|
|
971
986
|
};
|
|
972
|
-
__decorate$
|
|
987
|
+
__decorate$e([
|
|
973
988
|
registerComponent.RegisterComponent({
|
|
974
989
|
name: 'nylas-buffer-time',
|
|
975
990
|
eventToProps: {
|
|
@@ -982,16 +997,16 @@ __decorate$d([
|
|
|
982
997
|
},
|
|
983
998
|
fireRegisterEvent: true,
|
|
984
999
|
}),
|
|
985
|
-
__metadata$
|
|
986
|
-
__metadata$
|
|
987
|
-
__metadata$
|
|
1000
|
+
__metadata$e("design:type", Function),
|
|
1001
|
+
__metadata$e("design:paramtypes", []),
|
|
1002
|
+
__metadata$e("design:returntype", void 0)
|
|
988
1003
|
], NylasBufferTime.prototype, "render", null);
|
|
989
1004
|
NylasBufferTime.style = NylasBufferTimeStyle0;
|
|
990
1005
|
|
|
991
1006
|
const nylasCalendarPickerCss = ":host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif;width:inherit}.nylas-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-calendar-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-calendar-picker .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-calendar-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-calendar-picker .nylas-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-calendar-picker .nylas-calendar-picker__loading .label tooltip-component{display:flex}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:black;font-size:1rem;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown{padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown){width:100%;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-content){width:100%;max-width:unset}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}";
|
|
992
1007
|
const NylasCalendarPickerStyle0 = nylasCalendarPickerCss;
|
|
993
1008
|
|
|
994
|
-
var __decorate$
|
|
1009
|
+
var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
995
1010
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
996
1011
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
997
1012
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1001,7 +1016,7 @@ var __decorate$c = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1001
1016
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1002
1017
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1003
1018
|
};
|
|
1004
|
-
var __metadata$
|
|
1019
|
+
var __metadata$d = (undefined && undefined.__metadata) || function (k, v) {
|
|
1005
1020
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1006
1021
|
return Reflect.metadata(k, v);
|
|
1007
1022
|
};
|
|
@@ -1080,7 +1095,7 @@ const NylasCalendarPicker = class {
|
|
|
1080
1095
|
"name": ["elementNameChangedHandler"]
|
|
1081
1096
|
}; }
|
|
1082
1097
|
};
|
|
1083
|
-
__decorate$
|
|
1098
|
+
__decorate$d([
|
|
1084
1099
|
registerComponent.RegisterComponent({
|
|
1085
1100
|
name: 'nylas-calendar-picker',
|
|
1086
1101
|
stateToProps: new Map([
|
|
@@ -1097,16 +1112,16 @@ __decorate$c([
|
|
|
1097
1112
|
},
|
|
1098
1113
|
fireRegisterEvent: true,
|
|
1099
1114
|
}),
|
|
1100
|
-
__metadata$
|
|
1101
|
-
__metadata$
|
|
1102
|
-
__metadata$
|
|
1115
|
+
__metadata$d("design:type", Function),
|
|
1116
|
+
__metadata$d("design:paramtypes", []),
|
|
1117
|
+
__metadata$d("design:returntype", void 0)
|
|
1103
1118
|
], NylasCalendarPicker.prototype, "render", null);
|
|
1104
1119
|
NylasCalendarPicker.style = NylasCalendarPickerStyle0;
|
|
1105
1120
|
|
|
1106
1121
|
const nylasCancellationPolicyCss = ":host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-cancellation-policy{display:flex;flex-direction:column;gap:4px}.nylas-cancellation-policy label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-cancellation-policy label span.label-icon{margin-left:4px}.nylas-cancellation-policy label span.label-icon tooltip-component{display:flex}.nylas-cancellation-policy textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-cancellation-policy textarea::-webkit-resizer{display:none}";
|
|
1107
1122
|
const NylasCancellationPolicyStyle0 = nylasCancellationPolicyCss;
|
|
1108
1123
|
|
|
1109
|
-
var __decorate$
|
|
1124
|
+
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1110
1125
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1111
1126
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1112
1127
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1116,7 +1131,7 @@ var __decorate$b = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1116
1131
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1117
1132
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1118
1133
|
};
|
|
1119
|
-
var __metadata$
|
|
1134
|
+
var __metadata$c = (undefined && undefined.__metadata) || function (k, v) {
|
|
1120
1135
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1121
1136
|
return Reflect.metadata(k, v);
|
|
1122
1137
|
};
|
|
@@ -1166,7 +1181,7 @@ const NylasCancellationPolicy = class {
|
|
|
1166
1181
|
this.valueChanged.emit({ value: value, name: this.name });
|
|
1167
1182
|
}
|
|
1168
1183
|
render() {
|
|
1169
|
-
return (index.h(index.Host, { key: '
|
|
1184
|
+
return (index.h(index.Host, { key: '9ad194925cfb18c323d3f75aec51c4ac5ad67230' }, index.h("div", { key: 'a4ae061a504a0cd6a91dd6dd23adcf7c3b8f43d5', class: "nylas-cancellation-policy", part: "ncpolicy" }, index.h("label", { key: 'ea742ee8fba2e50a5694c210172e8783fa3d5e7b', htmlFor: this.name }, "Cancellation policy message", index.h("span", { key: '5c7143f8da100b650aa386c9fb895c3fd9ed2e04', class: "label-icon" }, index.h("tooltip-component", { key: 'f46c7b94a1a58bd7162e5cfffc14a88b04a18a4c' }, index.h("info-icon", { key: '9d85ce578da1db7b080f3152b8fdb43834968829', slot: "tooltip-icon" }), index.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.")))), index.h("textarea", { key: '570404ef8450c4ef2bb28fad4d1c6359b735abae', id: this.name, part: "ncpolicy__textarea", name: this.name, value: this.message, maxlength: "250", onInput: e => this.handleChange(e) }))));
|
|
1170
1185
|
}
|
|
1171
1186
|
static get formAssociated() { return true; }
|
|
1172
1187
|
get host() { return index.getElement(this); }
|
|
@@ -1175,23 +1190,23 @@ const NylasCancellationPolicy = class {
|
|
|
1175
1190
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
1176
1191
|
}; }
|
|
1177
1192
|
};
|
|
1178
|
-
__decorate$
|
|
1193
|
+
__decorate$c([
|
|
1179
1194
|
registerComponent.RegisterComponent({
|
|
1180
1195
|
name: 'nylas-cancellation-policy',
|
|
1181
1196
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
1182
1197
|
eventToProps: {},
|
|
1183
1198
|
fireRegisterEvent: true,
|
|
1184
1199
|
}),
|
|
1185
|
-
__metadata$
|
|
1186
|
-
__metadata$
|
|
1187
|
-
__metadata$
|
|
1200
|
+
__metadata$c("design:type", Function),
|
|
1201
|
+
__metadata$c("design:paramtypes", []),
|
|
1202
|
+
__metadata$c("design:returntype", void 0)
|
|
1188
1203
|
], NylasCancellationPolicy.prototype, "render", null);
|
|
1189
1204
|
NylasCancellationPolicy.style = NylasCancellationPolicyStyle0;
|
|
1190
1205
|
|
|
1191
1206
|
const nylasCustomizeBookingSettingsCss = ":host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif;width:inherit}.nylas-customize-booking-settings{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-customize-booking-settings .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings{display:flex;flex-direction:column;gap:1.5rem;padding:1rem;margin:1rem 0}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings .nylas-customize-booking-settings__settings-div{display:flex;align-items:center;gap:4px}.label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}.label .label-contents{margin:0;display:inline-block}@media screen and (max-width: 768px){.label .label-contents{display:block}}.label tooltip-component{display:inline-block}@media screen and (max-width: 768px){tooltip-component#guests::part(tc__content){left:58px}}tooltip-component#reschedule::part(tc__content){left:58px}@media screen and (max-width: 768px){tooltip-component#reschedule::part(tc__content){left:58px}}tooltip-component#cancel::part(tc__content){left:-58px}@media screen and (max-width: 768px){tooltip-component#cancel::part(tc__content){left:58px}}";
|
|
1192
1207
|
const NylasCustomizeBookingSettingsStyle0 = nylasCustomizeBookingSettingsCss;
|
|
1193
1208
|
|
|
1194
|
-
var __decorate$
|
|
1209
|
+
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1195
1210
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1196
1211
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1197
1212
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1201,7 +1216,7 @@ var __decorate$a = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1201
1216
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1202
1217
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1203
1218
|
};
|
|
1204
|
-
var __metadata$
|
|
1219
|
+
var __metadata$b = (undefined && undefined.__metadata) || function (k, v) {
|
|
1205
1220
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1206
1221
|
return Reflect.metadata(k, v);
|
|
1207
1222
|
};
|
|
@@ -1288,7 +1303,7 @@ const NylasCustomizeBookingSettings = class {
|
|
|
1288
1303
|
}), this.name);
|
|
1289
1304
|
}
|
|
1290
1305
|
render() {
|
|
1291
|
-
return (index.h(index.Host, { key: '
|
|
1306
|
+
return (index.h(index.Host, { key: '98e7ab408f5d7dff71321819cbc2a5e336ca52de' }, index.h("div", { key: 'ea73803234b4843cf7e58dc2570171e0237ea7d1', class: "nylas-customize-booking-settings", part: "ncbs" }, index.h("div", { key: '9b081de7e2d2152b874a5a4713a5313c6e021409', class: "header", part: "ncbs__header" }, index.h("h3", { key: '976be7412b4f8d70269c3b429652fa1091da1457' }, "Additional settings"), index.h("p", { key: 'f580ed5fd9c29773715bf26f5dc0c466c56ba43f' }, "Booking settings for the event.")), index.h("div", { key: '9e694bcf133167fa12efbd46bee02158b56e9777', class: "nylas-customize-booking-settings__settings", part: "ncbs__settings" }, index.h("div", { key: '39d4154e12c7f5cf96f04ca3fc3e0f17d0e8b2ec', class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__additional_guests" }, index.h("checkbox-component", { key: '61f11b632388d036622078f76f2d90370458b152', name: "hide_additional_guests", label: "Allow guests to invite additional guests.", checked: this.allowGuestsToInvite }, index.h("span", { key: '14573cca344d64ddfddebe6f402321a52fcce6ee', slot: "label", class: "label" }, index.h("p", { key: '64790dee39a090a778479a7eb3b1efcd14054bb9', class: "label-contents" }, "Allow guests to invite additional guests to the booking."), index.h("tooltip-component", { key: '564c56d4f159e11bf82b02eaab43b36ef9dd7117', id: "guests" }, index.h("info-icon", { key: 'a442aac8c9d930dc6be00a07fb6cd32b39cbd24b', slot: "tooltip-icon" }), index.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."))))), index.h("div", { key: 'e7d58c8c04cd715bd02fd4dcc14073ce1f6aaf08', class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__rescheduling_options" }, index.h("checkbox-component", { key: '3f5c22d363bb11012b8514f5a33871a3f054fc80', name: "hide_rescheduling_options", label: "Hide 'Reschedule' option on booking page and emails.", checked: this.hideReschedulingOptions }, index.h("span", { key: '2ed45b907aa847c41da5a0e394b0b5ddb91a3e26', slot: "label", class: "label" }, index.h("p", { key: 'a1fc109c7211d387426d66ac9129fad25032565b', class: "label-contents" }, "Hide the\u00A0", index.h("strong", { key: 'ac79eec03a85d1963ac4e75b0fbf678f4a063776' }, "Reschedule"), "\u00A0button on the Scheduling Page and in the email notifications."), index.h("tooltip-component", { key: 'd8f41e37b915c0be9154a475da07d5ed343d96b4', id: "reschedule" }, index.h("info-icon", { key: 'fbb3f300f4276bd249f9cf12d11c4b6467c82247', slot: "tooltip-icon" }), index.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."))))), index.h("div", { key: 'f21aeca85fbb63da4d844d37cf87ff1e8d48f001', class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__cancellation_options" }, index.h("checkbox-component", { key: 'be80ca87a198de83451085fceca77b4d2455357d', name: "hide_cancellation_options", label: "Hide 'Cancel' option on booking page and emails.", checked: this.hideCancellationOptions }, index.h("span", { key: '80e718e75b94562d3b8c4a3d9f170ee2de0c2c1b', slot: "label", class: "label" }, index.h("p", { key: 'd46dfe25aa86b112f5c57abe3337de6d88a79c90', class: "label-contents" }, "Hide the\u00A0", index.h("strong", { key: 'ac243fbb7a3c85c8ab3af28b61ae2724c428ac3e' }, "Cancel"), "\u00A0button on the Scheduling Page and in the email notifications."), index.h("tooltip-component", { key: 'b720fc3becba6ca2cc71d01bb77c19ec154b1aa1', id: "cancel" }, index.h("info-icon", { key: '5ab491a0734fe525ad2be3e2ad067cb292cce182', slot: "tooltip-icon" }), index.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.")))))))));
|
|
1292
1307
|
}
|
|
1293
1308
|
static get formAssociated() { return true; }
|
|
1294
1309
|
get host() { return index.getElement(this); }
|
|
@@ -1297,22 +1312,22 @@ const NylasCustomizeBookingSettings = class {
|
|
|
1297
1312
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
1298
1313
|
}; }
|
|
1299
1314
|
};
|
|
1300
|
-
__decorate$
|
|
1315
|
+
__decorate$b([
|
|
1301
1316
|
registerComponent.RegisterComponent({
|
|
1302
1317
|
name: 'nylas-customize-booking-settings',
|
|
1303
1318
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
1304
1319
|
fireRegisterEvent: true,
|
|
1305
1320
|
}),
|
|
1306
|
-
__metadata$
|
|
1307
|
-
__metadata$
|
|
1308
|
-
__metadata$
|
|
1321
|
+
__metadata$b("design:type", Function),
|
|
1322
|
+
__metadata$b("design:paramtypes", []),
|
|
1323
|
+
__metadata$b("design:returntype", void 0)
|
|
1309
1324
|
], NylasCustomizeBookingSettings.prototype, "render", null);
|
|
1310
1325
|
NylasCustomizeBookingSettings.style = NylasCustomizeBookingSettingsStyle0;
|
|
1311
1326
|
|
|
1312
1327
|
const nylasEventDescriptionCss = ":host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-description{display:flex;flex-direction:column;gap:4px}.nylas-event-description label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-description label span.label-icon{margin-left:4px}.nylas-event-description label span.label-icon tooltip-component{display:flex}.nylas-event-description textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-event-description textarea::-webkit-resizer{display:none}";
|
|
1313
1328
|
const NylasEventDescriptionStyle0 = nylasEventDescriptionCss;
|
|
1314
1329
|
|
|
1315
|
-
var __decorate$
|
|
1330
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1316
1331
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1317
1332
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1318
1333
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1322,7 +1337,7 @@ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1322
1337
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1323
1338
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1324
1339
|
};
|
|
1325
|
-
var __metadata$
|
|
1340
|
+
var __metadata$a = (undefined && undefined.__metadata) || function (k, v) {
|
|
1326
1341
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1327
1342
|
return Reflect.metadata(k, v);
|
|
1328
1343
|
};
|
|
@@ -1381,23 +1396,23 @@ const NylasEventDescription = class {
|
|
|
1381
1396
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
1382
1397
|
}; }
|
|
1383
1398
|
};
|
|
1384
|
-
__decorate$
|
|
1399
|
+
__decorate$a([
|
|
1385
1400
|
registerComponent.RegisterComponent({
|
|
1386
1401
|
name: 'nylas-event-description',
|
|
1387
1402
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
1388
1403
|
eventToProps: {},
|
|
1389
1404
|
fireRegisterEvent: true,
|
|
1390
1405
|
}),
|
|
1391
|
-
__metadata$
|
|
1392
|
-
__metadata$
|
|
1393
|
-
__metadata$
|
|
1406
|
+
__metadata$a("design:type", Function),
|
|
1407
|
+
__metadata$a("design:paramtypes", []),
|
|
1408
|
+
__metadata$a("design:returntype", void 0)
|
|
1394
1409
|
], NylasEventDescription.prototype, "render", null);
|
|
1395
1410
|
NylasEventDescription.style = NylasEventDescriptionStyle0;
|
|
1396
1411
|
|
|
1397
1412
|
const nylasEventDurationCss = ":host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-duration{display:flex;flex-direction:column;gap:4px}.nylas-event-duration label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-duration label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-duration label span.label-icon{margin-left:4px}.nylas-event-duration label span.label-icon tooltip-component{display:flex}.nylas-event-duration__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-duration__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-input){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:14px 16px;width:50px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-content){width:100%;min-width:unset;height:200px}.nylas-event-duration__wrapper select-dropdown{width:120px}@media screen and (max-width: 768px){.nylas-event-duration__wrapper select-dropdown{width:100%}}.nylas-event-duration__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200)}";
|
|
1398
1413
|
const NylasEventDurationStyle0 = nylasEventDurationCss;
|
|
1399
1414
|
|
|
1400
|
-
var __decorate$
|
|
1415
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1401
1416
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1402
1417
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1403
1418
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1407,7 +1422,7 @@ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1407
1422
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1408
1423
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1409
1424
|
};
|
|
1410
|
-
var __metadata$
|
|
1425
|
+
var __metadata$9 = (undefined && undefined.__metadata) || function (k, v) {
|
|
1411
1426
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1412
1427
|
return Reflect.metadata(k, v);
|
|
1413
1428
|
};
|
|
@@ -1524,23 +1539,23 @@ const NylasEventDuration = class {
|
|
|
1524
1539
|
"durationMinutes": ["durationMinutesChangedHandler"]
|
|
1525
1540
|
}; }
|
|
1526
1541
|
};
|
|
1527
|
-
__decorate$
|
|
1542
|
+
__decorate$9([
|
|
1528
1543
|
registerComponent.RegisterComponent({
|
|
1529
1544
|
name: 'nylas-event-duration',
|
|
1530
1545
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
1531
1546
|
eventToProps: {},
|
|
1532
1547
|
fireRegisterEvent: true,
|
|
1533
1548
|
}),
|
|
1534
|
-
__metadata$
|
|
1535
|
-
__metadata$
|
|
1536
|
-
__metadata$
|
|
1549
|
+
__metadata$9("design:type", Function),
|
|
1550
|
+
__metadata$9("design:paramtypes", []),
|
|
1551
|
+
__metadata$9("design:returntype", void 0)
|
|
1537
1552
|
], NylasEventDuration.prototype, "render", null);
|
|
1538
1553
|
NylasEventDuration.style = NylasEventDurationStyle0;
|
|
1539
1554
|
|
|
1540
1555
|
const nylasEventInfoCss = ":host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-info__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-info__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-info__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-info__block{display:flex;justify-content:space-between;gap:0.5rem}";
|
|
1541
1556
|
const NylasEventInfoStyle0 = nylasEventInfoCss;
|
|
1542
1557
|
|
|
1543
|
-
var __decorate$
|
|
1558
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1544
1559
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1545
1560
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1546
1561
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1550,7 +1565,7 @@ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1550
1565
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1551
1566
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1552
1567
|
};
|
|
1553
|
-
var __metadata$
|
|
1568
|
+
var __metadata$8 = (undefined && undefined.__metadata) || function (k, v) {
|
|
1554
1569
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1555
1570
|
return Reflect.metadata(k, v);
|
|
1556
1571
|
};
|
|
@@ -1579,27 +1594,27 @@ const NylasEventInfo = class {
|
|
|
1579
1594
|
utils.debug('nylas-event-info', 'disconnectedCallback');
|
|
1580
1595
|
}
|
|
1581
1596
|
render() {
|
|
1582
|
-
return (index.h(index.Host, { key: '
|
|
1597
|
+
return (index.h(index.Host, { key: '311ce4cda7377b94f12a98ff6a3318697762f6f0' }, index.h("nylas-form-card", { key: '99e5490667e83818242ae24863e5cdd94b39b0fa' }, index.h("h1", { key: 'f8c0f0cc5c330fac2b2f17e46be32ea4f3cc0b4b', slot: "header-title", class: "nylas-event-info__title" }, "Event information"), index.h("h3", { key: '637d443ca5851d7038acf20425c7fc969543951d', slot: "header-subtitle", class: "nylas-event-info__subtitle" }, "Enter all event information."), index.h("div", { key: 'aa0c51b31eeda0ba4b2c0090ed8367d139ea447b', slot: "content", class: "nylas-event-info__content" }, index.h("slot", { key: '95cf051184160aa802d89fc395bf914df09412e9', name: "inputs" })))));
|
|
1583
1598
|
}
|
|
1584
1599
|
static get formAssociated() { return true; }
|
|
1585
1600
|
get el() { return index.getElement(this); }
|
|
1586
1601
|
};
|
|
1587
|
-
__decorate$
|
|
1602
|
+
__decorate$8([
|
|
1588
1603
|
registerComponent.RegisterComponent({
|
|
1589
1604
|
name: 'nylas-event-info',
|
|
1590
1605
|
eventToProps: {},
|
|
1591
1606
|
fireRegisterEvent: true,
|
|
1592
1607
|
}),
|
|
1593
|
-
__metadata$
|
|
1594
|
-
__metadata$
|
|
1595
|
-
__metadata$
|
|
1608
|
+
__metadata$8("design:type", Function),
|
|
1609
|
+
__metadata$8("design:paramtypes", []),
|
|
1610
|
+
__metadata$8("design:returntype", void 0)
|
|
1596
1611
|
], NylasEventInfo.prototype, "render", null);
|
|
1597
1612
|
NylasEventInfo.style = NylasEventInfoStyle0;
|
|
1598
1613
|
|
|
1599
1614
|
const nylasEventLimitsCss = ":host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-limits__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-limits__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-limits__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-limits__block{display:flex;justify-content:space-between;gap:0.5rem}";
|
|
1600
1615
|
const NylasEventLimitsStyle0 = nylasEventLimitsCss;
|
|
1601
1616
|
|
|
1602
|
-
var __decorate$
|
|
1617
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1603
1618
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1604
1619
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1605
1620
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1609,7 +1624,7 @@ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1609
1624
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1610
1625
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1611
1626
|
};
|
|
1612
|
-
var __metadata$
|
|
1627
|
+
var __metadata$7 = (undefined && undefined.__metadata) || function (k, v) {
|
|
1613
1628
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1614
1629
|
return Reflect.metadata(k, v);
|
|
1615
1630
|
};
|
|
@@ -1638,27 +1653,27 @@ const NylasEventLimits = class {
|
|
|
1638
1653
|
utils.debug('nylas-event-limits', 'disconnectedCallback');
|
|
1639
1654
|
}
|
|
1640
1655
|
render() {
|
|
1641
|
-
return (index.h(index.Host, { key: '
|
|
1656
|
+
return (index.h(index.Host, { key: '6bfa0e29afa1529eb445b68339a658e4d7c8a6be' }, index.h("nylas-form-card", { key: 'eda419f6f0f7bb8dfd2ebdb0a13c0a8c650190eb' }, index.h("h1", { key: 'ea2c9af0d66665f25dcbb9c4c152bf159ceb4169', slot: "header-title", class: "nylas-event-limits__title" }, "Set event limits"), index.h("h3", { key: 'b600fd0b690bab256fde199b373913d9009be9bf', slot: "header-subtitle", class: "nylas-event-limits__subtitle" }, "Customize event limits for the event."), index.h("div", { key: '72b24085107528833d406802b206eed3719bb358', slot: "content", class: "nylas-event-limits__content" }, index.h("slot", { key: '74a09fd8044065a2f52ef5abaeef0ba80f38f17b', name: "inputs" })))));
|
|
1642
1657
|
}
|
|
1643
1658
|
static get formAssociated() { return true; }
|
|
1644
1659
|
get el() { return index.getElement(this); }
|
|
1645
1660
|
};
|
|
1646
|
-
__decorate$
|
|
1661
|
+
__decorate$7([
|
|
1647
1662
|
registerComponent.RegisterComponent({
|
|
1648
1663
|
name: 'nylas-event-limits',
|
|
1649
1664
|
eventToProps: {},
|
|
1650
1665
|
fireRegisterEvent: true,
|
|
1651
1666
|
}),
|
|
1652
|
-
__metadata$
|
|
1653
|
-
__metadata$
|
|
1654
|
-
__metadata$
|
|
1667
|
+
__metadata$7("design:type", Function),
|
|
1668
|
+
__metadata$7("design:paramtypes", []),
|
|
1669
|
+
__metadata$7("design:returntype", void 0)
|
|
1655
1670
|
], NylasEventLimits.prototype, "render", null);
|
|
1656
1671
|
NylasEventLimits.style = NylasEventLimitsStyle0;
|
|
1657
1672
|
|
|
1658
1673
|
const nylasEventLocationCss = ":host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-location{display:flex;flex-direction:column;gap:4px;font-family:var(--nylas-font-family)}.nylas-event-location label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-location label span.label-icon{margin-left:4px}.nylas-event-location label span.label-icon tooltip-component{display:flex}.nylas-event-location span[slot=select-icon]{border-right:1px solid var(--nylas-base-200);padding:16px 0.75rem 16px 0.5rem;border-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:0;border-top-right-radius:0;height:20px}.nylas-event-location div.location-input{display:grid;grid-template-columns:auto 1fr;width:100%;gap:0.5rem}@media screen and (max-width: 768px){.nylas-event-location div.location-input{grid-template-columns:1fr}}.nylas-event-location div.location-input input{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-event-location select-dropdown{width:208px}@media screen and (max-width: 768px){.nylas-event-location select-dropdown{width:100%}}.nylas-event-location select-dropdown::part(sd_dropdown){width:100%}.nylas-event-location select-dropdown::part(sd_dropdown-content){left:calc(35px + 0.5rem)}.nylas-event-location select-dropdown::part(sd_dropdown-button){display:flex;justify-content:space-between;width:100%;border:1px solid var(--nylas-base-200);padding:0 0.5rem}.nylas-event-location select-dropdown::part(sd_dropdown-button-selected-label){display:inline-flex;align-self:center;padding:14px 0;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}";
|
|
1659
1674
|
const NylasEventLocationStyle0 = nylasEventLocationCss;
|
|
1660
1675
|
|
|
1661
|
-
var __decorate$
|
|
1676
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1662
1677
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1663
1678
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1664
1679
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1668,7 +1683,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1668
1683
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1669
1684
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1670
1685
|
};
|
|
1671
|
-
var __metadata$
|
|
1686
|
+
var __metadata$6 = (undefined && undefined.__metadata) || function (k, v) {
|
|
1672
1687
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1673
1688
|
return Reflect.metadata(k, v);
|
|
1674
1689
|
};
|
|
@@ -1746,10 +1761,10 @@ const NylasEventLocation = class {
|
|
|
1746
1761
|
{ value: 'custom', label: 'Custom location' },
|
|
1747
1762
|
];
|
|
1748
1763
|
const icons = {
|
|
1749
|
-
none: index.h("location-off-icon", { key: '
|
|
1750
|
-
custom: index.h("location-icon", { key: '
|
|
1764
|
+
none: index.h("location-off-icon", { key: 'f9a254f862acd3c1b8a24b7efe0069f232bd9f51' }),
|
|
1765
|
+
custom: index.h("location-icon", { key: '641cfced66068f659d7d6db3b88a11314d9cacf6' }),
|
|
1751
1766
|
};
|
|
1752
|
-
return (index.h(index.Host, { key: '
|
|
1767
|
+
return (index.h(index.Host, { key: '9e86c85ff957ac4d8192350e61bc66dfb7d8f764' }, index.h("div", { key: 'a51752993c346200236187f906caa0629be50e88', class: "nylas-event-location", part: "nel" }, index.h("label", { key: '53cb18b0acd1a46b4be9a49f88a2786e7832d761', htmlFor: "location" }, "Location type", index.h("span", { key: '2b2debd710387758562de5833b5160f1d3a18481', class: "label-icon" }, index.h("tooltip-component", { key: '237da0e3bbfae495fd865d99e8f1e1ef68ae027e' }, index.h("info-icon", { key: '5f23b94c2bbe0f3ddd3870aeb69cee2f75b0bd28', slot: "tooltip-icon" }), index.h("span", { key: 'b1ed166875a24ce4bcfbc808c26d0042b74f73f3', slot: "tooltip-content" }, "Choose how you\u2019ll meet with the participants at the scheduled time. Pick from available conferencing options or add a custom location.")))), index.h("div", { key: '316411158feced50b61ce97014ffa0ba7c4400e8', class: "location-input" }, index.h("select-dropdown", { key: 'cc6bdbca81e738f43dfb37b7dc66f06ac338dc40', withSearch: false, name: "location", options: locationOptions, defaultSelectedOption: locationOptions.find(i => i.value == this.selectedLocationOption), exportparts: "sd_dropdown: nel__dropdown, sd_dropdown-button: nel__dropdown-button, sd_dropdown-content: nel__dropdown-content" }, index.h("span", { key: 'faacafdffda95071ee9304ac0e4c0125dc31c123', slot: "select-icon" }, icons[this.selectedLocationOption])), this.selectedLocationOption === 'custom' && (index.h("input", { type: "text", part: "nel__location", id: "location", name: "location", maxlength: "1024", value: this.location, onInput: e => this.handleChange(e) }))))));
|
|
1753
1768
|
}
|
|
1754
1769
|
static get formAssociated() { return true; }
|
|
1755
1770
|
get host() { return index.getElement(this); }
|
|
@@ -1759,23 +1774,23 @@ const NylasEventLocation = class {
|
|
|
1759
1774
|
"eventLocation": ["eventLocationChangedHandler"]
|
|
1760
1775
|
}; }
|
|
1761
1776
|
};
|
|
1762
|
-
__decorate$
|
|
1777
|
+
__decorate$6([
|
|
1763
1778
|
registerComponent.RegisterComponent({
|
|
1764
1779
|
name: 'nylas-event-location',
|
|
1765
1780
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
1766
1781
|
eventToProps: {},
|
|
1767
1782
|
fireRegisterEvent: true,
|
|
1768
1783
|
}),
|
|
1769
|
-
__metadata$
|
|
1770
|
-
__metadata$
|
|
1771
|
-
__metadata$
|
|
1784
|
+
__metadata$6("design:type", Function),
|
|
1785
|
+
__metadata$6("design:paramtypes", []),
|
|
1786
|
+
__metadata$6("design:returntype", void 0)
|
|
1772
1787
|
], NylasEventLocation.prototype, "render", null);
|
|
1773
1788
|
NylasEventLocation.style = NylasEventLocationStyle0;
|
|
1774
1789
|
|
|
1775
1790
|
const nylasEventTitleCss = ":host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-event-title{display:flex;flex-direction:column;gap:4px;position:relative;text-align:left}.nylas-event-title div.title{padding:12px 16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);overflow:scroll;white-space:nowrap;scrollbar-width:thin}.nylas-event-title div.title::-webkit-scrollbar{width:6px;height:6px}.nylas-event-title div.title.error{border-color:var(--nylas-error);outline:none}.nylas-event-title input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-event-title span.help-text{color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:21px}.nylas-event-title span.error-message{color:var(--nylas-error)}.nylas-event-title label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-title label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-title label span.label-icon{margin-left:4px}.nylas-event-title label span.label-icon tooltip-component{display:flex}.highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:5px;margin-left:4px}.token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;top:80px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.token-options{right:0;width:325px;max-width:unset}}.token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.token-options ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.token-options ul li:hover,.token-options ul li:focus,.token-options ul li:active,.token-options ul li.active{background-color:var(--nylas-base-100)}.token-options ul li:hover .token-label .token,.token-options ul li:focus .token-label .token,.token-options ul li:active .token-label .token,.token-options ul li.active .token-label .token{color:var(--nylas-primary)}.token-options .selected{background-color:var(--nylas-base-100)}";
|
|
1776
1791
|
const NylasEventTitleStyle0 = nylasEventTitleCss;
|
|
1777
1792
|
|
|
1778
|
-
var __decorate$
|
|
1793
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1779
1794
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1780
1795
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1781
1796
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1785,7 +1800,7 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1785
1800
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1786
1801
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1787
1802
|
};
|
|
1788
|
-
var __metadata$
|
|
1803
|
+
var __metadata$5 = (undefined && undefined.__metadata) || function (k, v) {
|
|
1789
1804
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1790
1805
|
return Reflect.metadata(k, v);
|
|
1791
1806
|
};
|
|
@@ -2098,23 +2113,23 @@ const NylasEventTitle = class {
|
|
|
2098
2113
|
"selectedConfiguration": ["configChangedHandler"]
|
|
2099
2114
|
}; }
|
|
2100
2115
|
};
|
|
2101
|
-
__decorate$
|
|
2116
|
+
__decorate$5([
|
|
2102
2117
|
registerComponent.RegisterComponent({
|
|
2103
2118
|
name: 'nylas-event-title',
|
|
2104
2119
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
2105
2120
|
eventToProps: {},
|
|
2106
2121
|
fireRegisterEvent: true,
|
|
2107
2122
|
}),
|
|
2108
|
-
__metadata$
|
|
2109
|
-
__metadata$
|
|
2110
|
-
__metadata$
|
|
2123
|
+
__metadata$5("design:type", Function),
|
|
2124
|
+
__metadata$5("design:paramtypes", []),
|
|
2125
|
+
__metadata$5("design:returntype", void 0)
|
|
2111
2126
|
], NylasEventTitle.prototype, "render", null);
|
|
2112
2127
|
NylasEventTitle.style = NylasEventTitleStyle0;
|
|
2113
2128
|
|
|
2114
2129
|
const nylasLimitFutureBookingsCss = ":host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-limit-future-bookings{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-limit-future-bookings{flex-direction:column;gap:0.5rem}}.nylas-limit-future-bookings label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-limit-future-bookings label span.label-icon{margin-left:4px}.nylas-limit-future-bookings label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}";
|
|
2115
2130
|
const NylasLimitFutureBookingsStyle0 = nylasLimitFutureBookingsCss;
|
|
2116
2131
|
|
|
2117
|
-
var __decorate$
|
|
2132
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2118
2133
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2119
2134
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2120
2135
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2124,7 +2139,7 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
2124
2139
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2125
2140
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2126
2141
|
};
|
|
2127
|
-
var __metadata$
|
|
2142
|
+
var __metadata$4 = (undefined && undefined.__metadata) || function (k, v) {
|
|
2128
2143
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
2129
2144
|
return Reflect.metadata(k, v);
|
|
2130
2145
|
};
|
|
@@ -2212,7 +2227,7 @@ const NylasLimitFutureBookings = class {
|
|
|
2212
2227
|
this.selectedPeriod = period;
|
|
2213
2228
|
}
|
|
2214
2229
|
render() {
|
|
2215
|
-
return (index.h(index.Host, { key: '
|
|
2230
|
+
return (index.h(index.Host, { key: 'e1e24151575c5c687d51fdf177840aa7c05424d9' }, index.h("div", { key: 'ceb19c13b5ad7e132260de266b1883b3f8d53f3d', class: "nylas-limit-future-bookings", part: "nlfb" }, index.h("label", { key: '44c296c74b9a9cd7152d2c704d4dc6ef82cc39c7' }, "Limit future bookings", index.h("span", { key: '11e7622613f38d12ef4f1c564b0ca311ab679cb3', class: "label-icon" }, index.h("tooltip-component", { key: 'd9ab1be2efb6616a937d112017be0e2c8e965ab3' }, index.h("info-icon", { key: '9f207ec82aa2a122ebfd0ba047f650751c49e470', slot: "tooltip-icon" }), index.h("span", { key: '1d91cfa505846f5f9da0457b785d8c645044be55', slot: "tooltip-content" }, "Set a limit on how far in the future bookings can be made.")))), index.h("time-period-selector", { key: 'cc11ea1514b99b8b4ef1721a15d56fbda1c1693b', id: "limit-future-bookings", timePeriods: ['day', 'week', 'month'], exportparts: "tps__number-dropdown: nlfb__number-dropdown, tps__number-dropdown-button: nlfb__number-dropdown-button, tps__number-dropdown-content: nlfb__number-dropdown-content, tps__period-dropdown: nlfb__period-dropdown, tps__period-dropdown-button: nlfb__period-dropdown-button, tps__period-dropdown-content: nlfb__period-dropdown-content", defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod }))));
|
|
2216
2231
|
}
|
|
2217
2232
|
static get formAssociated() { return true; }
|
|
2218
2233
|
get host() { return index.getElement(this); }
|
|
@@ -2222,23 +2237,23 @@ const NylasLimitFutureBookings = class {
|
|
|
2222
2237
|
"availableDaysInFuture": ["availableDaysInFutureChanged"]
|
|
2223
2238
|
}; }
|
|
2224
2239
|
};
|
|
2225
|
-
__decorate$
|
|
2240
|
+
__decorate$4([
|
|
2226
2241
|
registerComponent.RegisterComponent({
|
|
2227
2242
|
name: 'nylas-limit-future-bookings',
|
|
2228
2243
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
2229
2244
|
eventToProps: {},
|
|
2230
2245
|
fireRegisterEvent: true,
|
|
2231
2246
|
}),
|
|
2232
|
-
__metadata$
|
|
2233
|
-
__metadata$
|
|
2234
|
-
__metadata$
|
|
2247
|
+
__metadata$4("design:type", Function),
|
|
2248
|
+
__metadata$4("design:paramtypes", []),
|
|
2249
|
+
__metadata$4("design:returntype", void 0)
|
|
2235
2250
|
], NylasLimitFutureBookings.prototype, "render", null);
|
|
2236
2251
|
NylasLimitFutureBookings.style = NylasLimitFutureBookingsStyle0;
|
|
2237
2252
|
|
|
2238
2253
|
const nylasMinBookingNoticeCss = ":host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-min-booking-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-booking-notice{flex-direction:column;gap:0.5rem}}.nylas-min-booking-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-booking-notice label span.label-icon{margin-left:4px}.nylas-min-booking-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}";
|
|
2239
2254
|
const NylasMinBookingNoticeStyle0 = nylasMinBookingNoticeCss;
|
|
2240
2255
|
|
|
2241
|
-
var __decorate$
|
|
2256
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2242
2257
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2243
2258
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2244
2259
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2248,7 +2263,7 @@ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
2248
2263
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2249
2264
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2250
2265
|
};
|
|
2251
|
-
var __metadata$
|
|
2266
|
+
var __metadata$3 = (undefined && undefined.__metadata) || function (k, v) {
|
|
2252
2267
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
2253
2268
|
return Reflect.metadata(k, v);
|
|
2254
2269
|
};
|
|
@@ -2361,7 +2376,7 @@ const NylasMinBookingNotice = class {
|
|
|
2361
2376
|
this.selectedPeriod = period;
|
|
2362
2377
|
}
|
|
2363
2378
|
render() {
|
|
2364
|
-
return (index.h(index.Host, { key: '
|
|
2379
|
+
return (index.h(index.Host, { key: '75bc177620fae5662328ba8f53f9f4a4e84733e5' }, index.h("div", { key: 'a76b27e58174ca827e389b361ce4837e6ae11ced', class: "nylas-min-booking-notice", part: "nmbn" }, index.h("label", { key: '1db3f2c7c54b05744b64ad40c951595122d317c5' }, "Minimum booking notice", index.h("span", { key: 'a4c7db6f534b570cbbf5af4c3d60d97843599a4b', class: "label-icon" }, index.h("tooltip-component", { key: 'f7d6ba6b294f85c9d573933b6916cd50ad830d2a' }, index.h("info-icon", { key: '16b11bfaa5affbe15748f6ae6129c1e5a6fcfe32', slot: "tooltip-icon" }), index.h("span", { key: '1fe829a53fa3dcef0a6d5954717889d9e92d0c68', slot: "tooltip-content" }, "The minimum amount of time in the future for planning the event.")))), index.h("time-period-selector", { key: 'e4a545fc471e67447cab675ccd11fa786337fc23', id: "min-booking-notice", exportparts: "tps__number-dropdown: nmbn__number-dropdown, tps__number-dropdown-button: nmbn__number-dropdown-button, tps__number-dropdown-content: nmbn__number-dropdown-content, tps__period-dropdown: nmbn__period-dropdown, tps__period-dropdown-button: nmbn__period-dropdown-button, tps__period-dropdown-content: nmbn__period-dropdown-content", timePeriods: ['minute', 'hour', 'day', 'week'], defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod }))));
|
|
2365
2380
|
}
|
|
2366
2381
|
static get formAssociated() { return true; }
|
|
2367
2382
|
get host() { return index.getElement(this); }
|
|
@@ -2371,23 +2386,23 @@ const NylasMinBookingNotice = class {
|
|
|
2371
2386
|
"availableDaysInFuture": ["availableDaysInFutureChanged"]
|
|
2372
2387
|
}; }
|
|
2373
2388
|
};
|
|
2374
|
-
__decorate$
|
|
2389
|
+
__decorate$3([
|
|
2375
2390
|
registerComponent.RegisterComponent({
|
|
2376
2391
|
name: 'nylas-min-booking-notice',
|
|
2377
2392
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
2378
2393
|
eventToProps: {},
|
|
2379
2394
|
fireRegisterEvent: true,
|
|
2380
2395
|
}),
|
|
2381
|
-
__metadata$
|
|
2382
|
-
__metadata$
|
|
2383
|
-
__metadata$
|
|
2396
|
+
__metadata$3("design:type", Function),
|
|
2397
|
+
__metadata$3("design:paramtypes", []),
|
|
2398
|
+
__metadata$3("design:returntype", void 0)
|
|
2384
2399
|
], NylasMinBookingNotice.prototype, "render", null);
|
|
2385
2400
|
NylasMinBookingNotice.style = NylasMinBookingNoticeStyle0;
|
|
2386
2401
|
|
|
2387
2402
|
const nylasMinCancellationNoticeCss = ":host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.nylas-min-cancellation-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-cancellation-notice{flex-direction:column;gap:0.5rem}}.nylas-min-cancellation-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-cancellation-notice label span.label-icon{margin-left:4px}.nylas-min-cancellation-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}";
|
|
2388
2403
|
const NylasMinCancellationNoticeStyle0 = nylasMinCancellationNoticeCss;
|
|
2389
2404
|
|
|
2390
|
-
var __decorate$
|
|
2405
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2391
2406
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2392
2407
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2393
2408
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2397,7 +2412,7 @@ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
2397
2412
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2398
2413
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2399
2414
|
};
|
|
2400
|
-
var __metadata$
|
|
2415
|
+
var __metadata$2 = (undefined && undefined.__metadata) || function (k, v) {
|
|
2401
2416
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
2402
2417
|
return Reflect.metadata(k, v);
|
|
2403
2418
|
};
|
|
@@ -2510,7 +2525,7 @@ const NylasMinCancellationNotice = class {
|
|
|
2510
2525
|
this.selectedPeriod = period;
|
|
2511
2526
|
}
|
|
2512
2527
|
render() {
|
|
2513
|
-
return (index.h(index.Host, { key: '
|
|
2528
|
+
return (index.h(index.Host, { key: '8cccdce4a9960ecf6b860b638da26c50a68104c4' }, index.h("div", { key: '82854ad81861233231fe4a1e8006196155328141', class: "nylas-min-cancellation-notice", part: "nmcn" }, index.h("label", { key: 'db3eddec3a8fb28c0b035d4d4cd61986832dff0b' }, "Minimum cancellation notice", index.h("span", { key: '137472a58beef549599289b04be8fde01e7d81da', class: "label-icon" }, index.h("tooltip-component", { key: '2cfcceb4c7144553ac85d32da46fbd894955a9ee' }, index.h("info-icon", { key: '9e13ddb61e10e10a5fa426fb6a2b56159597ea88', slot: "tooltip-icon" }), index.h("span", { key: '9670035ec49fe0db37564d2d44d30f2197a7ec85', slot: "tooltip-content" }, "Set the minimum amount of time required to cancel an event.")))), index.h("time-period-selector", { key: '0e7b9f7b99d7e10c2c39c5affdfc014a403146ad', id: "min-cancellation-notice", exportparts: "tps__number-dropdown: nmcn__number-dropdown, tps__number-dropdown-button: nmcn__number-dropdown-button, tps__number-dropdown-content: nmcn__number-dropdown-content, tps__period-dropdown: nmcn__period-dropdown, tps__period-dropdown-button: nmcn__period-dropdown-button, tps__period-dropdown-content: nmcn__period-dropdown-content", timePeriods: ['minute', 'hour', 'day', 'week'], defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod }))));
|
|
2514
2529
|
}
|
|
2515
2530
|
static get formAssociated() { return true; }
|
|
2516
2531
|
get host() { return index.getElement(this); }
|
|
@@ -2520,305 +2535,148 @@ const NylasMinCancellationNotice = class {
|
|
|
2520
2535
|
"availableDaysInFuture": ["availableDaysInFutureChanged"]
|
|
2521
2536
|
}; }
|
|
2522
2537
|
};
|
|
2523
|
-
__decorate$
|
|
2538
|
+
__decorate$2([
|
|
2524
2539
|
registerComponent.RegisterComponent({
|
|
2525
2540
|
name: 'nylas-min-cancellation-notice',
|
|
2526
2541
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
2527
2542
|
eventToProps: {},
|
|
2528
2543
|
fireRegisterEvent: true,
|
|
2529
2544
|
}),
|
|
2530
|
-
__metadata$
|
|
2531
|
-
__metadata$
|
|
2532
|
-
__metadata$
|
|
2545
|
+
__metadata$2("design:type", Function),
|
|
2546
|
+
__metadata$2("design:paramtypes", []),
|
|
2547
|
+
__metadata$2("design:returntype", void 0)
|
|
2533
2548
|
], NylasMinCancellationNotice.prototype, "render", null);
|
|
2534
2549
|
NylasMinCancellationNotice.style = NylasMinCancellationNoticeStyle0;
|
|
2535
2550
|
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
(function (module, exports) {
|
|
2539
|
-
!function(e,t){module.exports=t();}(_commonjsHelpers.commonjsGlobal,(function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return (e=+e)+(e>68?1900:2e3)};var a=function(e){return function(t){this[e]=+t;}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e);}],h=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=u(e,!1);}],a:[i,function(e){this.afternoon=u(e,!0);}],S:[/\d/,function(e){this.milliseconds=100*+e;}],SS:[n,function(e){this.milliseconds=10*+e;}],SSS:[/\d{3}/,function(e){this.milliseconds=+e;}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r);}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(e){var t=h("months"),n=(h("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n;}],MMMM:[i,function(e){var t=h("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t;}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(e){this.year=s(e);}],YYYY:[/\d{4}/,a("year")],Z:f,ZZ:f};function c(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=s.length,f=0;f<a;f+=1){var h=s[f],u=d[h],c=u&&u[0],l=u&&u[1];s[f]=l?{regex:c,parser:l}:h.replace(/^\[|\]$/g,"");}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else {var o=i.regex,f=i.parser,h=e.slice(r),u=o.exec(h)[0];f.call(t,u),e=e.replace(u,"");}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon;}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,s=e.args;this.$u=r;var a=s[1];if("string"==typeof a){var f=!0===s[2],h=!0===s[3],u=f||h,d=s[2];h&&(d=s[2]),o=this.$locale(),!f&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=c(t)(e),i=r.year,o=r.month,s=r.day,a=r.hours,f=r.minutes,h=r.seconds,u=r.milliseconds,d=r.zone,l=new Date,m=s||(i||o?1:l.getDate()),M=i||l.getFullYear(),Y=0;i&&!o||(Y=o>0?o-1:l.getMonth());var p=a||0,v=f||0,D=h||0,g=u||0;return d?new Date(Date.UTC(M,Y,m,p,v,D,g+60*d.offset*1e3)):n?new Date(Date.UTC(M,Y,m,p,v,D,g)):new Date(M,Y,m,p,v,D,g)}catch(e){return new Date("")}}(t,a,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),o={};}else if(a instanceof Array)for(var l=a.length,m=1;m<=l;m+=1){s[1]=a[m-1];var M=n.apply(this,s);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===l&&(this.$d=new Date(""));}else i.call(this,e);};}}));
|
|
2540
|
-
}(customParseFormat$1));
|
|
2541
|
-
|
|
2542
|
-
const customParseFormat = customParseFormat$1.exports;
|
|
2543
|
-
|
|
2544
|
-
const nylasTimeWindowPickerCss = ":host{display:block;position:relative;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif}.time-picker{display:inline-block;width:150px;font-family:var(--nylas-font-family);position:relative}@media screen and (max-width: 768px){.time-picker{width:auto}}.time-picker input{width:150px;height:48px;text-align:center;font-size:16px;font-family:inherit;cursor:pointer;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.time-picker input{width:88px}}@media screen and (max-width: 504px){.time-picker input{width:68px;font-size:15px}}.time-picker input.focus{background:transparent}.time-picker input:hover,.time-picker input:active{border:1px solid var(--nylas-primary)}.time-picker input:active{outline:2px solid var(--nylas-primary)}.time-picker input span.open{transform:rotate(90deg)}.time-picker input span.closed{transform:rotate(270deg)}.time-picker input.error{border:1px solid var(--nylas-error)}.time-picker p.error{color:var(--nylas-error);font-size:0.875rem;margin:0}.times{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;border:1px solid #ddd;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}.times ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.times ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:center;cursor:pointer}.times ul li.focused{background-color:var(--nylas-base-100)}.times ul li:hover,.times ul li:focus{background-color:var(--nylas-base-100)}.times ul li label{display:flex;align-items:center;gap:0.5rem}.times ul li label input{margin:0}";
|
|
2545
|
-
const NylasTimeWindowPickerStyle0 = nylasTimeWindowPickerCss;
|
|
2551
|
+
const nylasParticipantsCustomAvailabilityCss = ":host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif;width:inherit}.nylas-participants-custom-availability{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-participants-custom-availability .header{padding:1rem}.nylas-participants-custom-availability .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-participants-custom-availability .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-participants-custom-availability .content .participant-container{padding-top:8px;border-top:1px solid var(--nylas-base-200)}.nylas-participants-custom-availability .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 12px}.nylas-participants-custom-availability .content .participant-container .participant-title p{margin:0}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-participants-custom-availability .content .participant-container nylas-availability-picker::part(nap){margin:0;border:none}";
|
|
2552
|
+
const NylasParticipantsCustomAvailabilityStyle0 = nylasParticipantsCustomAvailabilityCss;
|
|
2546
2553
|
|
|
2547
|
-
|
|
2548
|
-
|
|
2554
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2555
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2556
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2557
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
2558
|
+
else
|
|
2559
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
2560
|
+
if (d = decorators[i])
|
|
2561
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2562
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2563
|
+
};
|
|
2564
|
+
var __metadata$1 = (undefined && undefined.__metadata) || function (k, v) {
|
|
2565
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
2566
|
+
return Reflect.metadata(k, v);
|
|
2567
|
+
};
|
|
2568
|
+
const NylasParticipantsCustomAvailability = class {
|
|
2549
2569
|
constructor(hostRef) {
|
|
2550
2570
|
index.registerInstance(this, hostRef);
|
|
2551
|
-
this.
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
this.minimumStartTime = null;
|
|
2555
|
-
this.placeholder = 'hh:mmam/pm';
|
|
2556
|
-
this.name = undefined;
|
|
2557
|
-
this.hasError = false;
|
|
2558
|
-
this.err = '';
|
|
2559
|
-
this.showTimes = false;
|
|
2560
|
-
this.ariaActivedescendant = '';
|
|
2561
|
-
this.times = this.generateTimes();
|
|
2562
|
-
this.shouldAutoScroll = false;
|
|
2563
|
-
}
|
|
2564
|
-
handleOutsideClick(event) {
|
|
2565
|
-
const path = event.composedPath();
|
|
2566
|
-
const isClickInside = path.includes(this.el);
|
|
2567
|
-
if (!isClickInside && this.showTimes) {
|
|
2568
|
-
this.showTimes = false;
|
|
2571
|
+
this.valueChanged = index.createEvent(this, "valueChanged", 7);
|
|
2572
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
2573
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
2569
2574
|
}
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
let formattedTime = utils.dayjs()
|
|
2574
|
-
.hour(parseInt(this.minimumStartTime))
|
|
2575
|
-
.minute(parseInt(this.minimumStartTime.slice(-4, -2)));
|
|
2576
|
-
if (this.minimumStartTime.slice(-2).toLowerCase() === 'pm' && parseInt(this.minimumStartTime) !== 12) {
|
|
2577
|
-
formattedTime = formattedTime.add(12, 'hour');
|
|
2578
|
-
}
|
|
2579
|
-
else if (this.minimumStartTime.slice(-2).toLowerCase() === 'am' && parseInt(this.minimumStartTime) === 12) {
|
|
2580
|
-
formattedTime = formattedTime.subtract(12, 'hour');
|
|
2581
|
-
}
|
|
2582
|
-
this.times = this.generateTimes();
|
|
2583
|
-
const firstTime = utils.dayjs(this.times[0].value, 'hh:mma');
|
|
2584
|
-
let selectedTimeFormatted = utils.dayjs(this.time, 'hh:mma');
|
|
2585
|
-
if (selectedTimeFormatted.isBefore(firstTime)) {
|
|
2586
|
-
this.err = 'Invalid';
|
|
2587
|
-
this.formError.emit({
|
|
2588
|
-
key: this.el.id,
|
|
2589
|
-
message: 'Invalid',
|
|
2590
|
-
});
|
|
2591
|
-
}
|
|
2575
|
+
else {
|
|
2576
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
2577
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
2592
2578
|
}
|
|
2579
|
+
this.name = 'participant-custom-availability';
|
|
2580
|
+
this.participants = undefined;
|
|
2581
|
+
this.selectedParticipants = this.setParticipants(this.participants);
|
|
2593
2582
|
}
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
const optionIndex = this.times.findIndex(time => time.value === autocompletedTime);
|
|
2598
|
-
if (optionIndex > -1) {
|
|
2599
|
-
this.shouldAutoScroll = false;
|
|
2600
|
-
this.scrollToViewWithinParent(optionIndex);
|
|
2601
|
-
}
|
|
2602
|
-
return;
|
|
2603
|
-
}
|
|
2583
|
+
elementNameChangedHandler(newValue) {
|
|
2584
|
+
utils.debug('nylas-participants-custom-availability', 'elementNameChangedHandler', newValue);
|
|
2585
|
+
this.host.setAttribute('name', newValue);
|
|
2604
2586
|
}
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
this.err = 'Invalid';
|
|
2609
|
-
this.formError.emit({
|
|
2610
|
-
key: this.el.id,
|
|
2611
|
-
message: 'Invalid',
|
|
2612
|
-
});
|
|
2613
|
-
}
|
|
2614
|
-
if (!utils.validateTimeFormatInput(input)) {
|
|
2615
|
-
this.err = 'Invalid';
|
|
2616
|
-
this.formError.emit({
|
|
2617
|
-
key: this.el.id,
|
|
2618
|
-
message: 'Invalid',
|
|
2619
|
-
});
|
|
2620
|
-
}
|
|
2621
|
-
else {
|
|
2622
|
-
this.err = '';
|
|
2623
|
-
this.formError.emit({
|
|
2624
|
-
key: this.el.id,
|
|
2625
|
-
message: '',
|
|
2626
|
-
});
|
|
2627
|
-
}
|
|
2628
|
-
this.timeChange.emit({
|
|
2629
|
-
key: this.el.id,
|
|
2630
|
-
value: input,
|
|
2631
|
-
});
|
|
2587
|
+
participantsChangedHandler(newValue) {
|
|
2588
|
+
utils.debug('nylas-participants-custom-availability', 'participantsChangedHandler', newValue);
|
|
2589
|
+
this.selectedParticipants = this.setParticipants(newValue);
|
|
2632
2590
|
}
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
if (!utils.validateTimeFormatInput(input)) {
|
|
2636
|
-
this.err = 'Invalid';
|
|
2637
|
-
this.formError.emit({
|
|
2638
|
-
key: this.el.id,
|
|
2639
|
-
message: 'Invalid',
|
|
2640
|
-
});
|
|
2641
|
-
return;
|
|
2642
|
-
}
|
|
2643
|
-
if (input === '') {
|
|
2644
|
-
const newTime = utils.roundToNearest15Minutes().format('hh:mma');
|
|
2645
|
-
this.timeChange.emit({
|
|
2646
|
-
key: this.el.id,
|
|
2647
|
-
value: newTime,
|
|
2648
|
-
});
|
|
2649
|
-
return;
|
|
2650
|
-
}
|
|
2651
|
-
if (!utils.validateExactTimeFormat(input)) {
|
|
2652
|
-
const autocompletedTime = utils.autocompleteTimeFormat(input);
|
|
2653
|
-
this.timeChange.emit({
|
|
2654
|
-
key: this.el.id,
|
|
2655
|
-
value: autocompletedTime,
|
|
2656
|
-
});
|
|
2657
|
-
return;
|
|
2658
|
-
}
|
|
2659
|
-
this.timeChange.emit({
|
|
2660
|
-
key: this.el.id,
|
|
2661
|
-
value: input,
|
|
2662
|
-
});
|
|
2591
|
+
connectedCallback() {
|
|
2592
|
+
utils.debug('nylas-participants-custom-availability', 'connectedCallback');
|
|
2663
2593
|
}
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
if (!utils.validateTimeFormatInput(input)) {
|
|
2667
|
-
return;
|
|
2668
|
-
}
|
|
2669
|
-
if (input === '') {
|
|
2670
|
-
const newTime = utils.roundToNearest15Minutes().format('hh:mma');
|
|
2671
|
-
const optionIndex = this.times.findIndex(time => time.value === newTime);
|
|
2672
|
-
if (optionIndex > -1) {
|
|
2673
|
-
this.scrollToViewWithinParent(optionIndex);
|
|
2674
|
-
}
|
|
2675
|
-
return;
|
|
2676
|
-
}
|
|
2677
|
-
if (!utils.validateExactTimeFormat(input)) {
|
|
2678
|
-
const autocompletedTime = utils.autocompleteTimeFormat(input);
|
|
2679
|
-
const optionIndex = this.times.findIndex(time => time.value === autocompletedTime);
|
|
2680
|
-
if (optionIndex > -1) {
|
|
2681
|
-
this.scrollToViewWithinParent(optionIndex);
|
|
2682
|
-
}
|
|
2683
|
-
return;
|
|
2684
|
-
}
|
|
2594
|
+
disconnectedCallback() {
|
|
2595
|
+
utils.debug('nylas-participants-custom-availability', 'disconnectedCallback');
|
|
2685
2596
|
}
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
let startTime = utils.dayjs().set('hour', 0).set('minute', 0).set('second', 0);
|
|
2689
|
-
if (this.minimumStartTime) {
|
|
2690
|
-
startTime = utils.dayjs(this.minimumStartTime, 'hh:mma');
|
|
2691
|
-
}
|
|
2692
|
-
const diff = startTime.endOf('day').diff(startTime, 'minutes');
|
|
2693
|
-
const iterations = Math.round(diff / 15);
|
|
2694
|
-
for (let i = 0; i < iterations + 1; i++) {
|
|
2695
|
-
const time = startTime.add(i * 15, 'minute');
|
|
2696
|
-
if (i == iterations && time.format('hh:mma').includes('am')) {
|
|
2697
|
-
break;
|
|
2698
|
-
}
|
|
2699
|
-
times.push({ id: i, value: time.format('hh:mma') });
|
|
2700
|
-
}
|
|
2701
|
-
return times;
|
|
2597
|
+
componentWillLoad() {
|
|
2598
|
+
utils.debug('nylas-participants-custom-availability', 'componentWillLoad');
|
|
2702
2599
|
}
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
event.preventDefault();
|
|
2706
|
-
if (!this.showTimes) {
|
|
2707
|
-
this.showTimes = true;
|
|
2708
|
-
this.shouldAutoScroll = true;
|
|
2709
|
-
return;
|
|
2710
|
-
}
|
|
2711
|
-
if (this.ariaActivedescendant === '') {
|
|
2712
|
-
this.ariaActivedescendant = this.times[0].id.toString();
|
|
2713
|
-
this.focusOption(0);
|
|
2714
|
-
}
|
|
2715
|
-
else {
|
|
2716
|
-
const currentIndex = this.times.findIndex(time => time.id.toString() === this.ariaActivedescendant);
|
|
2717
|
-
const nextIndex = currentIndex + 1 < this.times.length ? currentIndex + 1 : 0;
|
|
2718
|
-
this.ariaActivedescendant = this.times[nextIndex].id.toString();
|
|
2719
|
-
this.focusOption(nextIndex);
|
|
2720
|
-
}
|
|
2721
|
-
}
|
|
2722
|
-
else if (event.key === 'ArrowUp') {
|
|
2723
|
-
event.preventDefault();
|
|
2724
|
-
if (this.ariaActivedescendant === '') {
|
|
2725
|
-
this.ariaActivedescendant = this.times[this.times.length - 1].id.toString();
|
|
2726
|
-
this.focusOption(this.times.length - 1);
|
|
2727
|
-
}
|
|
2728
|
-
else {
|
|
2729
|
-
const currentIndex = this.times.findIndex(time => time.id.toString() === this.ariaActivedescendant);
|
|
2730
|
-
const prevIndex = currentIndex - 1 >= 0 ? currentIndex - 1 : this.times.length - 1;
|
|
2731
|
-
this.ariaActivedescendant = this.times[prevIndex].id.toString();
|
|
2732
|
-
this.focusOption(prevIndex);
|
|
2733
|
-
}
|
|
2734
|
-
}
|
|
2735
|
-
else if (event.key === 'Escape') {
|
|
2736
|
-
this.showTimes = false;
|
|
2737
|
-
this.timeInput.focus();
|
|
2738
|
-
}
|
|
2600
|
+
componentDidLoad() {
|
|
2601
|
+
utils.debug('nylas-participants-custom-availability', 'componentDidLoad');
|
|
2739
2602
|
}
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
const nextIndex = currentIndex + 1 < items.length ? currentIndex + 1 : 0;
|
|
2746
|
-
this.ariaActivedescendant = items[nextIndex].id.toString();
|
|
2747
|
-
this.focusOption(nextIndex);
|
|
2748
|
-
}
|
|
2749
|
-
else if (e.key === 'ArrowUp' || (e.key === 'Tab' && e.shiftKey)) {
|
|
2750
|
-
e.preventDefault();
|
|
2751
|
-
const prevIndex = currentIndex - 1 >= 0 ? currentIndex - 1 : items.length - 1;
|
|
2752
|
-
this.ariaActivedescendant = items[prevIndex].id.toString();
|
|
2753
|
-
this.focusOption(prevIndex);
|
|
2754
|
-
}
|
|
2755
|
-
else if (e.key === 'Enter') {
|
|
2756
|
-
e.preventDefault();
|
|
2757
|
-
if (this.ariaActivedescendant) {
|
|
2758
|
-
const option = items[currentIndex];
|
|
2759
|
-
this.handleTimeChange(e, option.value);
|
|
2760
|
-
this.showTimes = false;
|
|
2761
|
-
this.ariaActivedescendant = '';
|
|
2762
|
-
this.timeInput.focus();
|
|
2763
|
-
}
|
|
2764
|
-
}
|
|
2765
|
-
else if (e.key === 'Escape') {
|
|
2766
|
-
this.showTimes = false;
|
|
2767
|
-
this.timeInput.focus();
|
|
2768
|
-
}
|
|
2603
|
+
nylasFormSwitchToggledHandler(event) {
|
|
2604
|
+
utils.debug('nylas-participants-custom-availability', 'nylasFormSwitchToggledHandler', event.detail);
|
|
2605
|
+
this.selectedParticipants[event.detail.name]['isOpen'] = event.detail.checked;
|
|
2606
|
+
this.selectedParticipants[event.detail.name]['setCustom'] = event.detail.checked;
|
|
2607
|
+
this.selectedParticipants = { ...this.selectedParticipants };
|
|
2769
2608
|
}
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
const
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
const childRect = childElement.getBoundingClientRect();
|
|
2776
|
-
const parentRect = parentElement.getBoundingClientRect();
|
|
2777
|
-
if (childRect.top < parentRect.top) {
|
|
2778
|
-
parentElement.scrollTop -= parentRect.top - childRect.top;
|
|
2779
|
-
}
|
|
2780
|
-
else if (childRect.bottom > parentRect.bottom) {
|
|
2781
|
-
parentElement.scrollTop += childRect.bottom - parentRect.bottom;
|
|
2609
|
+
handleValueChanged(event) {
|
|
2610
|
+
utils.debug('[nylas-editor-tabs]', 'handleValueChanged', event);
|
|
2611
|
+
const { name, value } = event.detail;
|
|
2612
|
+
if (!name.startsWith('participant-')) {
|
|
2613
|
+
return;
|
|
2782
2614
|
}
|
|
2783
|
-
if (
|
|
2784
|
-
|
|
2615
|
+
if (!this.participantFormRef.checkValidity()) {
|
|
2616
|
+
this.internals.setValidity({ customError: true }, 'Please fix the overlapping time ranges.');
|
|
2617
|
+
return;
|
|
2785
2618
|
}
|
|
2786
|
-
else
|
|
2787
|
-
|
|
2619
|
+
else {
|
|
2620
|
+
this.internals.setValidity({});
|
|
2788
2621
|
}
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
if (!option)
|
|
2622
|
+
const jsonValue = JSON.parse(value);
|
|
2623
|
+
const key = name.split('-')[2];
|
|
2624
|
+
if (!this.selectedParticipants[key])
|
|
2793
2625
|
return;
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
}
|
|
2626
|
+
this.selectedParticipants[key]['openHours'] = jsonValue.openHours;
|
|
2627
|
+
this.selectedParticipants = { ...this.selectedParticipants };
|
|
2628
|
+
const participantOpenHours = {};
|
|
2629
|
+
this.participants.forEach(participant => {
|
|
2630
|
+
participantOpenHours[participant.email] = this.selectedParticipants[participant.email].openHours;
|
|
2631
|
+
});
|
|
2632
|
+
this.internals.setFormValue(JSON.stringify(participantOpenHours), this.name);
|
|
2633
|
+
this.valueChanged.emit({ value: JSON.stringify(participantOpenHours), name: this.name });
|
|
2634
|
+
}
|
|
2635
|
+
setParticipants(participants) {
|
|
2636
|
+
const selectedParticipants = {};
|
|
2637
|
+
participants.forEach(participant => {
|
|
2638
|
+
const isOpen = participant.is_organizer ? true : false;
|
|
2639
|
+
selectedParticipants[participant.email] = {
|
|
2640
|
+
isOpen: isOpen,
|
|
2641
|
+
setCustom: !!participant.availability?.open_hours ? true : false,
|
|
2642
|
+
openHours: participant.availability?.open_hours || [],
|
|
2643
|
+
name: participant.name || participant.email,
|
|
2644
|
+
availability: participant.availability,
|
|
2645
|
+
};
|
|
2646
|
+
});
|
|
2647
|
+
return selectedParticipants;
|
|
2800
2648
|
}
|
|
2801
2649
|
render() {
|
|
2802
|
-
return (index.h(index.Host, { key: '
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
this.timeInput.focus();
|
|
2814
|
-
}, role: "option" }, `${option.value}`)))))), !this.showTimes && this.err && (index.h("p", { class: "error", id: "email-error" }, this.err)))));
|
|
2650
|
+
return (index.h(index.Host, { key: '5590f983de527efa3e79d854e9cb2b49e433d64b' }, index.h("div", { key: '7a016a7a277b077a4edd63d433a185a7d2f7aaab', class: "nylas-participants-custom-availability", part: "npca" }, index.h("div", { key: '7fb61474d9b80c59844dd2ca67cd00e95ee2a2be', class: "header", part: "npca__header" }, index.h("h3", { key: 'dc66f0262309a5c08c887bbbf5c408233ebd1c00' }, "Set Custom Availability for Participants"), index.h("p", { key: '60686b9f1c4aab680caf07de6c22561c5ec1a9e5' }, "Set custom availability for scheduling meetings, or default to general availability.")), index.h("div", { key: '8782a3b4e48ce7eb74eb6e41e239b16d9840fb80', class: "content", part: "npca__content" }, index.h("form", { key: 'c2f23d7eebc4a113fbfa2cbcd7623c99b5a87f89', ref: el => (this.participantFormRef = el) }, Object.keys(this.selectedParticipants).map((key, index$1) => {
|
|
2651
|
+
const participant = this.selectedParticipants[key];
|
|
2652
|
+
if (!participant || !participant.name || !participant.availability)
|
|
2653
|
+
return;
|
|
2654
|
+
return (index.h("div", { class: "participant-container", part: "npca__participant-container", key: `participant-conatiner-${index$1}` }, index.h("div", { class: "participant-title", part: "npca__participant-title" }, index.h("p", null, "Set ", participant.name, "'s custom availability"), index.h("div", { class: "participant-toggle", part: "npca__participant-toggle--container" }, index.h("toggle-switch", { exportparts: "ts_label: npca__toggle-label, ts_input: npca_toggle-input, ts_slider: npca_toggle-slider", name: key, checked: !!participant.openHours && participant.openHours.length > 0 }), index.h("span", { class: `chevron ${participant.isOpen ? 'open' : 'closed'} ${participant.setCustom ? '' : 'disabled'}`, onClick: () => {
|
|
2655
|
+
if (!participant.setCustom)
|
|
2656
|
+
return;
|
|
2657
|
+
this.selectedParticipants[key].isOpen = !participant.isOpen;
|
|
2658
|
+
this.selectedParticipants = { ...this.selectedParticipants };
|
|
2659
|
+
} }, index.h("chevron-icon", { width: "24", height: "24" })))), participant.isOpen && (index.h("nylas-availability-picker", { key: index$1, name: `participant-${index$1}-${key}`, openHours: participant.openHours, defaultTimezone: participant.openHours?.[0]?.timezone, hideHeader: true }))));
|
|
2660
|
+
}))))));
|
|
2815
2661
|
}
|
|
2816
|
-
get
|
|
2662
|
+
static get formAssociated() { return true; }
|
|
2663
|
+
get host() { return index.getElement(this); }
|
|
2817
2664
|
static get watchers() { return {
|
|
2818
|
-
"
|
|
2665
|
+
"name": ["elementNameChangedHandler"],
|
|
2666
|
+
"participants": ["participantsChangedHandler"]
|
|
2819
2667
|
}; }
|
|
2820
2668
|
};
|
|
2821
|
-
|
|
2669
|
+
__decorate$1([
|
|
2670
|
+
registerComponent.RegisterComponent({
|
|
2671
|
+
name: 'nylas-participants-custom-availability',
|
|
2672
|
+
eventToProps: {},
|
|
2673
|
+
fireRegisterEvent: true,
|
|
2674
|
+
}),
|
|
2675
|
+
__metadata$1("design:type", Function),
|
|
2676
|
+
__metadata$1("design:paramtypes", []),
|
|
2677
|
+
__metadata$1("design:returntype", void 0)
|
|
2678
|
+
], NylasParticipantsCustomAvailability.prototype, "render", null);
|
|
2679
|
+
NylasParticipantsCustomAvailability.style = NylasParticipantsCustomAvailabilityStyle0;
|
|
2822
2680
|
|
|
2823
2681
|
const nylasTimeslotIntervalCss = ":host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif;width:inherit}.nylas-timeslot-interval{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-timeslot-interval .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-timeslot-interval .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-timeslot-interval .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown span.label tooltip-component{display:flex}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown{margin-bottom:1.5rem}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}";
|
|
2824
2682
|
const NylasTimeslotIntervalStyle0 = nylasTimeslotIntervalCss;
|
|
@@ -2946,9 +2804,9 @@ const NylasTimeslotInterval = class {
|
|
|
2946
2804
|
{ value: '45', label: '45 mins' },
|
|
2947
2805
|
{ value: '60', label: '60 mins' },
|
|
2948
2806
|
];
|
|
2949
|
-
return (index.h(index.Host, { key: '
|
|
2807
|
+
return (index.h(index.Host, { key: '792ad5a36b3d3908e134f926e2a5596db28fadbf' }, index.h("div", { key: '95b99dbf25b3e472aaea700639b3c056ccfcb3ca', class: "nylas-timeslot-interval", part: "nti" }, index.h("div", { key: '4c19be343c3e0d9f38fa8160800bdf85548588b3', class: "header", part: "nti__header" }, index.h("h3", { key: '9dd8785f3f995add953de09fe9b42324df9f2357' }, "Time-slot interval preferences"), index.h("p", { key: '9611b580a85c17d1c4afc60e2210fe4756d91b77' }, "Choose your interval preference for time-slots.")), index.h("div", { key: '01d71df37fa1724f2284dbc8d0e84700693cb2ef', class: "nylas-timeslot-interval__dropdown" }, index.h("span", { key: '53d613b58c05e00b8a8c9c7de5043ba2a5e4e2de', class: "label", part: "nti__input-label" }, "Select interval preference", index.h("tooltip-component", { key: 'c171e87a108631c04d8956d1015dfd273c42f46e' }, index.h("info-icon", { key: 'ebb77a5d85abce76b2e52c30491aa5bf5c23cf98', slot: "tooltip-icon" }), index.h("span", { key: 'e01edbb2f124619b8d47640193e76fcad06fc568', slot: "tooltip-content" }, "Set the interval preference for the time-slots."))), index.h("select-dropdown", { key: '1b5714aa414c08687457793921815eb0f4403b83', name: "booking-calendar", options: intervalPreferenceOptions, withSearch: false, exportparts: "sd_dropdown: nti__dropdown, sd_dropdown-button: nti__dropdown-button, sd_dropdown-content: nti__dropdown-content", defaultSelectedOption: this.defaultIntervalMinutes == this.eventDurationMinutes
|
|
2950
2808
|
? intervalPreferenceOptions[0]
|
|
2951
|
-
: intervalPreferenceOptions.find(op => op.value == this.defaultIntervalMinutes.toString()) ?? intervalPreferenceOptions[0] }), index.h("span", { key: '
|
|
2809
|
+
: intervalPreferenceOptions.find(op => op.value == this.defaultIntervalMinutes.toString()) ?? intervalPreferenceOptions[0] }), index.h("span", { key: 'feb0e75bae639119f00ed98e17c7df1ed842530a', class: "label", part: "nti__input-label" }, "Select the type of time-slot rounding", index.h("tooltip-component", { key: '7513c90d894fbdbb5cbc1a283650cfefca16481e' }, index.h("info-icon", { key: '16713630e2403a1e61c5eb49bfeeaac17b45ca62', slot: "tooltip-icon" }), index.h("span", { key: 'ca1bc61ac175c7b12648d8b2017e661bd78296dd', slot: "tooltip-content" }, "Select if you want to round the time slots to the nearest interval."))), index.h("radio-button-group", { key: 'f0413408b347a98ce855eaf439253192f1071973', name: "interval-preference", defaultSelectedValue: this.defaultRoundTo && this.defaultRoundTo === this.defaultIntervalMinutes ? 'rounding' : 'no-rounding', options: [
|
|
2952
2810
|
{ value: 'no-rounding', label: 'Default', description: 'Time-slots will be rounded to the nearest quarter-hour.' },
|
|
2953
2811
|
{
|
|
2954
2812
|
value: 'rounding',
|
|
@@ -2986,7 +2844,7 @@ const PeopleIcon = class {
|
|
|
2986
2844
|
this.height = '20';
|
|
2987
2845
|
}
|
|
2988
2846
|
render() {
|
|
2989
|
-
return (index.h("svg", { key: '
|
|
2847
|
+
return (index.h("svg", { key: '66534381bbb0bc14b93a49ed0afdc81a917958d4', xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, index.h("path", { key: '2c7959434ba7dcf303b3c87d99b04b2818875c68', fill: "currentColor", d: "M11 10a2 2 0 0 1 2 2v1.5c0 2.054-2.088 3.5-5.5 3.5S2 15.554 2 13.5V12a2 2 0 0 1 2-2h7Zm0 1H4a1 1 0 0 0-1 1v1.5C3 14.907 4.579 16 7.5 16c2.921 0 4.5-1.093 4.5-2.5V12a1 1 0 0 0-1-1Zm5-1a2 2 0 0 1 2 2v.5c0 2.089-1.568 3.5-4.5 3.5-.141 0-.28-.003-.414-.01.208-.242.382-.502.522-.781l.097-.213h.039C15.976 14.931 17 13.96 17 12.5V12a1 1 0 0 0-1-1h-2.171a3 3 0 0 0-.594-1H16ZM7.5 2a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm7 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm-7-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Zm7 2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z" })));
|
|
2990
2848
|
}
|
|
2991
2849
|
};
|
|
2992
2850
|
PeopleIcon.style = PeopleIconStyle0;
|
|
@@ -3011,11 +2869,40 @@ const RadioButtonGroup = class {
|
|
|
3011
2869
|
});
|
|
3012
2870
|
}
|
|
3013
2871
|
render() {
|
|
3014
|
-
return (index.h("div", { key: '
|
|
2872
|
+
return (index.h("div", { key: '985ed3b83d804748d61641feae65322fd08c1649', class: "radio-group" }, this.options.map(option => (index.h("label", null, index.h("div", { class: "radio-option" }, index.h("input", { type: "radio", name: this.name, value: option.value, checked: this.selectedValue === option.value, onChange: () => this.handleChange(option.value) }), index.h("p", null, index.h("span", { class: "title" }, option.label), index.h("span", { class: "description" }, option.description))))))));
|
|
3015
2873
|
}
|
|
3016
2874
|
};
|
|
3017
2875
|
RadioButtonGroup.style = RadioButtonGroupStyle0;
|
|
3018
2876
|
|
|
2877
|
+
const toggleSwitchCss = ".switch{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:\"Inter\", sans-serif;display:inline-block;height:34px;position:relative;width:60px}.switch input{display:none}.slider{background-color:var(--nylas-base-400);bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:0.4s}.slider:before{background-color:var(--nylas-base-0);bottom:4px;content:\"\";height:32px;left:4px;position:absolute;transition:0.4s;width:32px}input:checked+.slider{background-color:var(--nylas-success)}input:checked+.slider:before{transform:translateX(32px)}.slider.round{border-radius:35px;width:72px;height:40px}.slider.round:before{border-radius:50%}";
|
|
2878
|
+
const ToggleSwitchStyle0 = toggleSwitchCss;
|
|
2879
|
+
|
|
2880
|
+
const ToggleSwitchComponent = class {
|
|
2881
|
+
constructor(hostRef) {
|
|
2882
|
+
index.registerInstance(this, hostRef);
|
|
2883
|
+
this.nylasFormSwitchToggled = index.createEvent(this, "nylasFormSwitchToggled", 7);
|
|
2884
|
+
this.name = 'toggle-switch';
|
|
2885
|
+
this.checked = false;
|
|
2886
|
+
this.label = '';
|
|
2887
|
+
this.isChecked = this.checked;
|
|
2888
|
+
}
|
|
2889
|
+
componentWillLoad() {
|
|
2890
|
+
this.isChecked = this.checked;
|
|
2891
|
+
}
|
|
2892
|
+
toggleCheck() {
|
|
2893
|
+
this.isChecked = !this.isChecked;
|
|
2894
|
+
this.nylasFormSwitchToggled.emit({
|
|
2895
|
+
checked: this.isChecked,
|
|
2896
|
+
name: this.name,
|
|
2897
|
+
label: this.label,
|
|
2898
|
+
});
|
|
2899
|
+
}
|
|
2900
|
+
render() {
|
|
2901
|
+
return (index.h("label", { key: 'd91b5d5853ab8a256953c4fde8a79b1ef739433d', class: "switch", part: "ts_label" }, index.h("input", { key: '6f694e5a07cefacc05e155a0319fe99ec1714354', type: "checkbox", part: "ts_input", name: this.name, checked: this.isChecked, onChange: () => this.toggleCheck() }), index.h("div", { key: 'e2db848dbad679562201ba8151a523fa1b9dc2b9', class: "slider round", part: "ts_slider" })));
|
|
2902
|
+
}
|
|
2903
|
+
};
|
|
2904
|
+
ToggleSwitchComponent.style = ToggleSwitchStyle0;
|
|
2905
|
+
|
|
3019
2906
|
exports.calendar_info_icon = CalendarInfoIcon;
|
|
3020
2907
|
exports.calendar_patterns_icon = CalendarPatternsIcon;
|
|
3021
2908
|
exports.checkbox_component = CheckboxComponent;
|
|
@@ -3039,9 +2926,10 @@ exports.nylas_event_title = NylasEventTitle;
|
|
|
3039
2926
|
exports.nylas_limit_future_bookings = NylasLimitFutureBookings;
|
|
3040
2927
|
exports.nylas_min_booking_notice = NylasMinBookingNotice;
|
|
3041
2928
|
exports.nylas_min_cancellation_notice = NylasMinCancellationNotice;
|
|
3042
|
-
exports.
|
|
2929
|
+
exports.nylas_participants_custom_availability = NylasParticipantsCustomAvailability;
|
|
3043
2930
|
exports.nylas_timeslot_interval = NylasTimeslotInterval;
|
|
3044
2931
|
exports.people_icon = PeopleIcon;
|
|
3045
2932
|
exports.radio_button_group = RadioButtonGroup;
|
|
2933
|
+
exports.toggle_switch = ToggleSwitchComponent;
|
|
3046
2934
|
|
|
3047
|
-
//# sourceMappingURL=calendar-info-
|
|
2935
|
+
//# sourceMappingURL=calendar-info-icon_28.cjs.entry.js.map
|