@nylas/web-elements 1.1.0-canary.15 → 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 +11 -18
- package/dist/cjs/add-circle-icon_2.cjs.entry.js.map +1 -1
- 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_25.cjs.entry.js → calendar-info-icon_28.cjs.entry.js} +419 -397
- 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 +101 -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 +12 -20
- package/dist/cjs/index-c14ea8f5.js +22 -18
- 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 +21 -4
- package/dist/cjs/input-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/input-dropdown_2.cjs.entry.js +22 -5
- 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 +38 -14
- 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 +6 -6
- package/dist/cjs/nylas-booked-event-card_10.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-booking-form.cjs.entry.js +2 -2
- package/dist/cjs/nylas-booking-form.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-cancel-booking-form.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-customize-booking-settings.cjs.entry.js +4 -4
- package/dist/cjs/nylas-customize-booking-settings.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-editor-tabs.cjs.entry.js +99 -76
- package/dist/cjs/nylas-editor-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-if-state.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-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 +2 -2
- package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +4 -2
- package/dist/cjs/nylas-scheduler-editor.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-scheduling.cjs.entry.js +1 -1
- package/dist/cjs/nylas-scheduling.cjs.entry.js.map +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/{scheduler-config-store-a5b7c08b.js → scheduler-config-store-0266631b.js} +2 -1
- package/dist/cjs/scheduler-config-store-0266631b.js.map +1 -0
- package/dist/cjs/{scheduler-config-store-918c20d5.js → scheduler-config-store-9f19c7a9.js} +2 -1
- package/dist/cjs/scheduler-config-store-9f19c7a9.js.map +1 -0
- package/dist/cjs/scheduler-store-0f7328f1.js.map +1 -1
- package/dist/cjs/scheduler-store-743ed238.js.map +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 +40 -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-booking-form/nylas-booking-form.js +2 -2
- package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js +2 -2
- package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js +2 -2
- package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js +1 -1
- package/dist/collection/components/scheduler/nylas-notification/nylas-notification.js +1 -1
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.css +1 -0
- package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.css +20 -1
- package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js +83 -13
- 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-customize-booking-settings/nylas-customize-booking-settings.js +5 -5
- package/dist/collection/components/scheduler-editor/nylas-customize-booking-settings/nylas-customize-booking-settings.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +95 -76
- 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 +2 -0
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/tab-contents.js.map +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 +26 -3
- package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js.map +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/collection/stores/scheduler-config-store.js +1 -0
- package/dist/collection/stores/scheduler-config-store.js.map +1 -1
- package/dist/collection/stores/scheduler-store.js.map +1 -1
- 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 +24 -5
- 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-participants.js +1 -127
- package/dist/components/nylas-additional-participants.js.map +1 -1
- package/dist/components/nylas-additional-participants2.js +168 -0
- package/dist/components/nylas-additional-participants2.js.map +1 -0
- package/dist/components/nylas-availability-picker2.js +28 -16
- package/dist/components/nylas-availability-picker2.js.map +1 -1
- package/dist/components/nylas-booking-form2.js +2 -2
- package/dist/components/nylas-booking-form2.js.map +1 -1
- package/dist/components/nylas-cancel-booking-form2.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-customize-booking-settings2.js +4 -4
- package/dist/components/nylas-customize-booking-settings2.js.map +1 -1
- package/dist/components/nylas-editor-tabs2.js +197 -150
- package/dist/components/nylas-editor-tabs2.js.map +1 -1
- package/dist/components/nylas-if-state.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-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 +112 -85
- package/dist/components/nylas-scheduler-editor.js.map +1 -1
- package/dist/components/nylas-scheduling.js +1 -1
- package/dist/components/nylas-scheduling.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-icon.js +1 -32
- package/dist/components/people-icon.js.map +1 -1
- package/dist/components/people.js +36 -0
- package/dist/components/people.js.map +1 -0
- 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/scheduler-config-store.js +1 -0
- package/dist/components/scheduler-config-store.js.map +1 -1
- package/dist/components/scheduler-store.js.map +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 +2 -2
- package/dist/esm/add-circle-icon_2.entry.js +11 -18
- package/dist/esm/add-circle-icon_2.entry.js.map +1 -1
- package/dist/esm/archive-icon.entry.js +2 -2
- package/dist/esm/archive-icon_7.entry.js +7 -7
- package/dist/esm/arrow-icon.entry.js +2 -2
- package/dist/esm/bold-icon.entry.js +2 -2
- package/dist/esm/bold-icon_3.entry.js +3 -3
- package/dist/esm/button-component.entry.js +2 -2
- package/dist/esm/calendar-cancel-icon.entry.js +2 -2
- package/dist/esm/calendar-check-icon.entry.js +2 -2
- package/dist/esm/calendar-check-icon_2.entry.js +2 -2
- package/dist/esm/calendar-icon.entry.js +2 -2
- package/dist/esm/calendar-info-icon.entry.js +2 -2
- package/dist/esm/{calendar-info-icon_25.entry.js → calendar-info-icon_28.entry.js} +417 -398
- package/dist/esm/calendar-info-icon_28.entry.js.map +1 -0
- package/dist/esm/calendar-patterns-icon.entry.js +2 -2
- package/dist/esm/checkbox-component.entry.js +2 -2
- package/dist/esm/checkbox-component.entry.js.map +1 -1
- package/dist/esm/checkmark-circle-icon.entry.js +2 -2
- package/dist/esm/chevron-icon.entry.js +2 -2
- package/dist/esm/chevron-icon_3.entry.js +4 -4
- package/dist/esm/clock-icon.entry.js +2 -2
- package/dist/esm/clock-icon_2.entry.js +2 -2
- package/dist/esm/close-icon.entry.js +2 -2
- package/dist/esm/document-refresh-icon.entry.js +2 -2
- package/dist/esm/flow-icon.entry.js +2 -2
- package/dist/esm/folder-icon.entry.js +2 -2
- package/dist/esm/forward-icon.entry.js +2 -2
- package/dist/esm/forward-icon_6.entry.js +7 -7
- package/dist/esm/globe-icon.entry.js +2 -2
- package/dist/esm/google-logo-icon.entry.js +2 -2
- package/dist/esm/google-logo-icon_4.entry.js +101 -78
- package/dist/esm/google-logo-icon_4.entry.js.map +1 -1
- package/dist/esm/inbox-icon.entry.js +2 -2
- package/dist/esm/{index-11d12497.js → index-2c7e4f4b.js} +2 -2
- package/dist/esm/{index-11d12497.js.map → index-2c7e4f4b.js.map} +1 -1
- package/dist/esm/{index-8362ce5c.js → index-582cfc93.js} +24 -20
- package/dist/esm/{index-8362ce5c.js.map → index-582cfc93.js.map} +1 -1
- package/dist/esm/index-7cb0dd3d.js +12 -20
- package/dist/{nylas-web-elements/index.es-896126fc.js → esm/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 +4 -4
- package/dist/esm/info-icon.entry.js +2 -2
- package/dist/esm/info-icon_2.entry.js +2 -2
- package/dist/esm/input-component.entry.js +2 -2
- package/dist/esm/input-dropdown.entry.js +22 -5
- package/dist/esm/input-dropdown.entry.js.map +1 -1
- package/dist/esm/input-dropdown_2.entry.js +22 -5
- package/dist/esm/input-dropdown_2.entry.js.map +1 -1
- package/dist/esm/italic-icon.entry.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/loading-icon.entry.js +2 -2
- package/dist/esm/location-icon.entry.js +2 -2
- package/dist/esm/location-off-icon.entry.js +2 -2
- package/dist/esm/{mailbox-store-11fa8387.js → mailbox-store-94133e15.js} +4 -4
- package/dist/esm/{mailbox-store-11fa8387.js.map → mailbox-store-94133e15.js.map} +1 -1
- package/dist/esm/microsoft-logo-icon.entry.js +2 -2
- package/dist/esm/multi-select-dropdown.entry.js +4 -4
- package/dist/esm/nylas-additional-participants.entry.js +41 -17
- 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 +30 -19
- package/dist/esm/nylas-availability-picker.entry.js.map +1 -1
- package/dist/esm/nylas-booked-event-card.entry.js +3 -3
- package/dist/esm/nylas-booked-event-card_10.entry.js +6 -6
- package/dist/esm/nylas-booked-event-card_10.entry.js.map +1 -1
- package/dist/esm/nylas-booking-calendar-picker.entry.js +3 -3
- package/dist/esm/nylas-booking-form.entry.js +5 -5
- package/dist/esm/nylas-booking-form.entry.js.map +1 -1
- package/dist/esm/nylas-buffer-time.entry.js +3 -3
- package/dist/esm/nylas-calendar-picker.entry.js +3 -3
- package/dist/esm/nylas-cancel-booking-form.entry.js +4 -4
- package/dist/esm/nylas-cancellation-policy.entry.js +3 -3
- package/dist/esm/nylas-cancelled-event-card.entry.js +4 -4
- package/dist/esm/nylas-composer.entry.js +3 -3
- package/dist/esm/nylas-custom-booking-flow.entry.js +3 -3
- package/dist/esm/nylas-customize-booking-settings.entry.js +7 -7
- package/dist/esm/nylas-customize-booking-settings.entry.js.map +1 -1
- package/dist/esm/nylas-date-picker.entry.js +3 -3
- package/dist/esm/nylas-editor-tabs.entry.js +102 -79
- package/dist/esm/nylas-editor-tabs.entry.js.map +1 -1
- package/dist/esm/nylas-event-description.entry.js +3 -3
- package/dist/esm/nylas-event-duration.entry.js +3 -3
- 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 +3 -3
- package/dist/esm/nylas-event-title.entry.js +3 -3
- package/dist/esm/nylas-form-card.entry.js +3 -3
- package/dist/esm/nylas-if-state.entry.js +4 -4
- package/dist/esm/nylas-limit-future-bookings.entry.js +3 -3
- package/dist/esm/nylas-list-configurations.entry.js +3 -3
- package/dist/esm/nylas-list-folders.entry.js +4 -4
- package/dist/esm/nylas-list-threads.entry.js +4 -4
- package/dist/esm/nylas-locale-switch.entry.js +3 -3
- package/dist/esm/nylas-login.entry.js +4 -4
- package/dist/esm/nylas-logo.entry.js +2 -2
- package/dist/esm/nylas-mailbox-pagination.entry.js +3 -3
- package/dist/esm/nylas-mailbox-toolbar-button.entry.js +4 -4
- package/dist/esm/nylas-mailbox.entry.js +6 -6
- 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 +3 -3
- 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 +8 -8
- package/dist/esm/nylas-scheduler-editor.entry.js +9 -7
- package/dist/esm/nylas-scheduler-editor.entry.js.map +1 -1
- package/dist/esm/nylas-scheduling.entry.js +6 -6
- package/dist/esm/nylas-scheduling.entry.js.map +1 -1
- package/dist/esm/nylas-selected-event-card.entry.js +3 -3
- package/dist/esm/nylas-summarize-message-button.entry.js +5 -5
- package/dist/esm/nylas-threads-refresh.entry.js +5 -5
- package/dist/esm/nylas-threads-search.entry.js +4 -4
- package/dist/esm/nylas-time-window-picker.entry.js +3 -3
- package/dist/esm/nylas-timeslot-interval.entry.js +5 -5
- package/dist/esm/nylas-timeslot-picker.entry.js +3 -3
- package/dist/esm/nylas-view-email.entry.js +3 -3
- package/dist/esm/nylas-view-thread.entry.js +4 -4
- package/dist/esm/nylas-web-elements.js +3 -3
- package/dist/esm/people-icon.entry.js +2 -2
- package/dist/esm/person-icon.entry.js +2 -2
- package/dist/esm/play-icon.entry.js +2 -2
- package/dist/esm/play-icon_2.entry.js +2 -2
- package/dist/esm/radio-button-group.entry.js +2 -2
- package/dist/esm/refresh-icon.entry.js +2 -2
- package/dist/esm/{register-component-8e4e394f.js → register-component-aef40ec4.js} +3 -3
- package/dist/esm/{register-component-8e4e394f.js.map → register-component-aef40ec4.js.map} +1 -1
- package/dist/esm/reply-all-icon.entry.js +2 -2
- package/dist/esm/reply-icon.entry.js +2 -2
- package/dist/esm/{scheduler-config-store-ec3b6190.js → scheduler-config-store-4a50a03d.js} +2 -1
- package/dist/esm/scheduler-config-store-4a50a03d.js.map +1 -0
- package/dist/{nylas-web-elements/scheduler-config-store-8ccc8dc7.js → esm/scheduler-config-store-f20845ad.js} +3 -2
- package/dist/esm/scheduler-config-store-f20845ad.js.map +1 -0
- package/dist/{nylas-web-elements/scheduler-store-c3af2560.js → esm/scheduler-store-6c4866d6.js} +3 -3
- package/dist/esm/{scheduler-store-c3af2560.js.map → scheduler-store-6c4866d6.js.map} +1 -1
- package/dist/esm/scheduler-store-f02ce045.js.map +1 -1
- package/dist/esm/search-icon.entry.js +2 -2
- package/dist/esm/select-dropdown.entry.js +3 -3
- package/dist/esm/sent-icon.entry.js +2 -2
- package/dist/esm/spam-icon.entry.js +2 -2
- package/dist/esm/star-icon.entry.js +2 -2
- package/dist/esm/stop-icon.entry.js +2 -2
- package/dist/esm/textarea-component.entry.js +2 -2
- package/dist/esm/time-period-selector.entry.js +3 -3
- package/dist/esm/toggle-switch.entry.js +2 -2
- package/dist/esm/toggle-switch.entry.js.map +1 -1
- package/dist/esm/tooltip-component.entry.js +2 -2
- package/dist/esm/translate-icon.entry.js +2 -2
- package/dist/esm/trash-icon.entry.js +2 -2
- package/dist/esm/underline-icon.entry.js +2 -2
- package/dist/esm/{utils-49a1d17b.js → 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 +2 -2
- package/dist/nylas-web-elements/add-circle-icon.entry.js +2 -2
- package/dist/nylas-web-elements/archive-icon.entry.js +2 -2
- package/dist/nylas-web-elements/arrow-icon.entry.js +2 -2
- package/dist/nylas-web-elements/bold-icon.entry.js +2 -2
- package/dist/nylas-web-elements/button-component.entry.js +2 -2
- package/dist/nylas-web-elements/calendar-cancel-icon.entry.js +2 -2
- package/dist/nylas-web-elements/calendar-check-icon.entry.js +2 -2
- package/dist/nylas-web-elements/calendar-icon.entry.js +2 -2
- package/dist/nylas-web-elements/calendar-info-icon.entry.js +2 -2
- package/dist/nylas-web-elements/calendar-patterns-icon.entry.js +2 -2
- package/dist/nylas-web-elements/checkbox-component.entry.js +2 -2
- package/dist/nylas-web-elements/checkbox-component.entry.js.map +1 -1
- package/dist/nylas-web-elements/checkmark-circle-icon.entry.js +2 -2
- package/dist/nylas-web-elements/chevron-icon.entry.js +2 -2
- package/dist/nylas-web-elements/clock-icon.entry.js +2 -2
- package/dist/nylas-web-elements/close-icon.entry.js +2 -2
- package/dist/nylas-web-elements/document-refresh-icon.entry.js +2 -2
- package/dist/nylas-web-elements/flow-icon.entry.js +2 -2
- package/dist/nylas-web-elements/folder-icon.entry.js +2 -2
- package/dist/nylas-web-elements/forward-icon.entry.js +2 -2
- package/dist/nylas-web-elements/globe-icon.entry.js +2 -2
- package/dist/nylas-web-elements/google-logo-icon.entry.js +2 -2
- package/dist/nylas-web-elements/inbox-icon.entry.js +2 -2
- package/dist/nylas-web-elements/{index-11d12497.js → index-2c7e4f4b.js} +2 -2
- package/dist/nylas-web-elements/{index-11d12497.js.map → index-2c7e4f4b.js.map} +1 -1
- package/dist/nylas-web-elements/{index-8362ce5c.js → index-582cfc93.js} +2 -2
- package/dist/nylas-web-elements/{index-8362ce5c.js.map → index-582cfc93.js.map} +1 -1
- package/dist/{esm/index.es-896126fc.js → nylas-web-elements/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 +4 -4
- package/dist/nylas-web-elements/info-icon.entry.js +2 -2
- package/dist/nylas-web-elements/input-component.entry.js +2 -2
- package/dist/nylas-web-elements/input-dropdown.entry.js +22 -5
- package/dist/nylas-web-elements/input-dropdown.entry.js.map +1 -1
- package/dist/nylas-web-elements/italic-icon.entry.js +2 -2
- package/dist/nylas-web-elements/loading-icon.entry.js +2 -2
- package/dist/nylas-web-elements/location-icon.entry.js +2 -2
- package/dist/nylas-web-elements/location-off-icon.entry.js +2 -2
- package/dist/nylas-web-elements/{mailbox-store-11fa8387.js → mailbox-store-94133e15.js} +4 -4
- package/dist/nylas-web-elements/{mailbox-store-11fa8387.js.map → mailbox-store-94133e15.js.map} +1 -1
- package/dist/nylas-web-elements/microsoft-logo-icon.entry.js +2 -2
- package/dist/nylas-web-elements/multi-select-dropdown.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-additional-participants.entry.js +41 -17
- 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 +30 -19
- package/dist/nylas-web-elements/nylas-availability-picker.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-booked-event-card.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-booking-calendar-picker.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-booking-form.entry.js +5 -5
- package/dist/nylas-web-elements/nylas-booking-form.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-buffer-time.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-calendar-picker.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-cancel-booking-form.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-cancellation-policy.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-cancelled-event-card.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-composer.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-custom-booking-flow.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-customize-booking-settings.entry.js +7 -7
- package/dist/nylas-web-elements/nylas-customize-booking-settings.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-date-picker.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-editor-tabs.entry.js +102 -79
- package/dist/nylas-web-elements/nylas-editor-tabs.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-event-description.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-event-duration.entry.js +3 -3
- 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 +3 -3
- package/dist/nylas-web-elements/nylas-event-title.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-form-card.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-if-state.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-limit-future-bookings.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-list-configurations.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-list-folders.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-list-threads.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-locale-switch.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-login.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-logo.entry.js +2 -2
- package/dist/nylas-web-elements/nylas-mailbox-pagination.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-mailbox-toolbar-button.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-mailbox.entry.js +6 -6
- 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 +3 -3
- 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 +8 -8
- package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js +9 -7
- package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-scheduling.entry.js +6 -6
- package/dist/nylas-web-elements/nylas-scheduling.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-selected-event-card.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-summarize-message-button.entry.js +5 -5
- package/dist/nylas-web-elements/nylas-threads-refresh.entry.js +5 -5
- package/dist/nylas-web-elements/nylas-threads-search.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-time-window-picker.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-timeslot-interval.entry.js +5 -5
- package/dist/nylas-web-elements/nylas-timeslot-picker.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-view-email.entry.js +3 -3
- package/dist/nylas-web-elements/nylas-view-thread.entry.js +4 -4
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +3 -3
- 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-05833164.entry.js +2 -0
- package/dist/nylas-web-elements/p-05833164.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-086746ee.entry.js +2 -0
- package/dist/nylas-web-elements/p-086746ee.entry.js.map +1 -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-29938263.js +2 -0
- package/dist/nylas-web-elements/p-29938263.js.map +1 -0
- package/dist/nylas-web-elements/{p-afd34a25.entry.js → p-2f656fb3.entry.js} +3 -3
- package/dist/nylas-web-elements/p-2f656fb3.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-823c8aa2.js.map +1 -1
- package/dist/nylas-web-elements/{p-ace74b9d.entry.js → p-84c53084.entry.js} +2 -2
- package/dist/nylas-web-elements/p-8c1a5e57.entry.js +2 -0
- package/dist/nylas-web-elements/p-8c1a5e57.entry.js.map +1 -0
- 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-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-d1d984c5.entry.js +2 -0
- package/dist/nylas-web-elements/p-d1d984c5.entry.js.map +1 -0
- 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-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-84529d9b.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 +2 -2
- package/dist/nylas-web-elements/person-icon.entry.js +2 -2
- package/dist/nylas-web-elements/play-icon.entry.js +2 -2
- package/dist/nylas-web-elements/radio-button-group.entry.js +2 -2
- package/dist/nylas-web-elements/refresh-icon.entry.js +2 -2
- package/dist/nylas-web-elements/{register-component-8e4e394f.js → register-component-aef40ec4.js} +3 -3
- package/dist/nylas-web-elements/{register-component-8e4e394f.js.map → register-component-aef40ec4.js.map} +1 -1
- package/dist/nylas-web-elements/reply-all-icon.entry.js +2 -2
- package/dist/nylas-web-elements/reply-icon.entry.js +2 -2
- package/dist/{esm/scheduler-config-store-8ccc8dc7.js → nylas-web-elements/scheduler-config-store-f20845ad.js} +3 -2
- package/dist/nylas-web-elements/scheduler-config-store-f20845ad.js.map +1 -0
- package/dist/{esm/scheduler-store-c3af2560.js → nylas-web-elements/scheduler-store-6c4866d6.js} +3 -3
- package/dist/nylas-web-elements/{scheduler-store-c3af2560.js.map → scheduler-store-6c4866d6.js.map} +1 -1
- package/dist/nylas-web-elements/search-icon.entry.js +2 -2
- package/dist/nylas-web-elements/select-dropdown.entry.js +3 -3
- package/dist/nylas-web-elements/sent-icon.entry.js +2 -2
- package/dist/nylas-web-elements/spam-icon.entry.js +2 -2
- package/dist/nylas-web-elements/star-icon.entry.js +2 -2
- package/dist/nylas-web-elements/stop-icon.entry.js +2 -2
- package/dist/nylas-web-elements/textarea-component.entry.js +2 -2
- package/dist/nylas-web-elements/time-period-selector.entry.js +3 -3
- package/dist/nylas-web-elements/toggle-switch.entry.js +2 -2
- package/dist/nylas-web-elements/toggle-switch.entry.js.map +1 -1
- package/dist/nylas-web-elements/tooltip-component.entry.js +2 -2
- package/dist/nylas-web-elements/translate-icon.entry.js +2 -2
- package/dist/nylas-web-elements/trash-icon.entry.js +2 -2
- package/dist/nylas-web-elements/underline-icon.entry.js +2 -2
- package/dist/nylas-web-elements/{utils-49a1d17b.js → 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 +2 -2
- package/dist/types/components/design-system/input-dropdown/input-dropdown.d.ts +3 -0
- package/dist/types/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.d.ts +16 -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/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.d.ts +2 -0
- package/dist/types/components.d.ts +134 -11
- package/dist/types/stores/scheduler-config-store.d.ts +2 -1
- package/dist/types/stores/scheduler-store.d.ts +1 -1
- package/package.json +2 -2
- package/dist/cjs/calendar-info-icon_25.cjs.entry.js.map +0 -1
- package/dist/cjs/scheduler-config-store-918c20d5.js.map +0 -1
- package/dist/cjs/scheduler-config-store-a5b7c08b.js.map +0 -1
- package/dist/esm/calendar-info-icon_25.entry.js.map +0 -1
- package/dist/esm/scheduler-config-store-8ccc8dc7.js.map +0 -1
- package/dist/esm/scheduler-config-store-ec3b6190.js.map +0 -1
- package/dist/nylas-web-elements/p-0dbc0c01.entry.js +0 -2
- package/dist/nylas-web-elements/p-155942d0.entry.js +0 -2
- package/dist/nylas-web-elements/p-155942d0.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-237d2b4e.entry.js +0 -2
- package/dist/nylas-web-elements/p-237d2b4e.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-2e813dd0.entry.js +0 -2
- package/dist/nylas-web-elements/p-2e813dd0.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-35b66ab6.entry.js +0 -2
- package/dist/nylas-web-elements/p-35b66ab6.entry.js.map +0 -1
- 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-53da3000.entry.js +0 -2
- package/dist/nylas-web-elements/p-6239608c.entry.js +0 -2
- package/dist/nylas-web-elements/p-6239608c.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-7fac2bba.entry.js +0 -2
- package/dist/nylas-web-elements/p-86895fc4.entry.js +0 -2
- package/dist/nylas-web-elements/p-86895fc4.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-afd34a25.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-b406bf70.entry.js +0 -2
- package/dist/nylas-web-elements/p-b406bf70.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-ee91a2a0.js +0 -2
- package/dist/nylas-web-elements/p-ee91a2a0.js.map +0 -1
- package/dist/nylas-web-elements/p-f1bd124d.entry.js +0 -2
- package/dist/nylas-web-elements/p-f1bd124d.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-fac4d89e.entry.js +0 -2
- package/dist/nylas-web-elements/p-fac4d89e.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-fbac3865.entry.js +0 -2
- package/dist/nylas-web-elements/scheduler-config-store-8ccc8dc7.js.map +0 -1
- /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-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-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-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-98a2f588.entry.js.map → p-d9a145a5.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-84529d9b.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,12 +7,12 @@ 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
|
-
const iconCss$
|
|
15
|
-
const CalendarInfoIconStyle0 = iconCss$
|
|
14
|
+
const iconCss$5 = ".sc-calendar-info-icon-h{display:flex}";
|
|
15
|
+
const CalendarInfoIconStyle0 = iconCss$5;
|
|
16
16
|
|
|
17
17
|
const CalendarInfoIcon = class {
|
|
18
18
|
constructor(hostRef) {
|
|
@@ -21,13 +21,13 @@ 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;
|
|
28
28
|
|
|
29
|
-
const iconCss$
|
|
30
|
-
const CalendarPatternsIconStyle0 = iconCss$
|
|
29
|
+
const iconCss$4 = ".sc-calendar-patterns-icon-h{display:flex}";
|
|
30
|
+
const CalendarPatternsIconStyle0 = iconCss$4;
|
|
31
31
|
|
|
32
32
|
const CalendarPatternsIcon = class {
|
|
33
33
|
constructor(hostRef) {
|
|
@@ -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,13 +65,13 @@ 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;
|
|
72
72
|
|
|
73
|
-
const iconCss$
|
|
74
|
-
const FlowIconStyle0 = iconCss$
|
|
73
|
+
const iconCss$3 = ".sc-flow-icon-h{display:flex}";
|
|
74
|
+
const FlowIconStyle0 = iconCss$3;
|
|
75
75
|
|
|
76
76
|
const FlowIcon = class {
|
|
77
77
|
constructor(hostRef) {
|
|
@@ -80,13 +80,13 @@ 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;
|
|
87
87
|
|
|
88
|
-
const iconCss$
|
|
89
|
-
const LocationIconStyle0 = iconCss$
|
|
88
|
+
const iconCss$2 = ".sc-location-icon-h{display:flex}";
|
|
89
|
+
const LocationIconStyle0 = iconCss$2;
|
|
90
90
|
|
|
91
91
|
const LocationIcon = class {
|
|
92
92
|
constructor(hostRef) {
|
|
@@ -95,13 +95,13 @@ 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;
|
|
102
102
|
|
|
103
|
-
const iconCss = ".sc-location-off-icon-h{display:flex}";
|
|
104
|
-
const LocationOffIconStyle0 = iconCss;
|
|
103
|
+
const iconCss$1 = ".sc-location-off-icon-h{display:flex}";
|
|
104
|
+
const LocationOffIconStyle0 = iconCss$1;
|
|
105
105
|
|
|
106
106
|
const LocationOffIcon = class {
|
|
107
107
|
constructor(hostRef) {
|
|
@@ -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,18 +238,139 @@ 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
|
};
|
|
247
247
|
MultiSelectDropdown.style = MultiSelectDropdownStyle0;
|
|
248
248
|
|
|
249
|
-
const
|
|
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
|
+
const NylasAdditionalParticipantsStyle0 = nylasAdditionalParticipantsCss;
|
|
251
|
+
|
|
252
|
+
var __decorate$h = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
253
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
254
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
255
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
256
|
+
else
|
|
257
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
258
|
+
if (d = decorators[i])
|
|
259
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
260
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
261
|
+
};
|
|
262
|
+
var __metadata$h = (undefined && undefined.__metadata) || function (k, v) {
|
|
263
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
264
|
+
return Reflect.metadata(k, v);
|
|
265
|
+
};
|
|
266
|
+
const NylasAdditionalParticipants = class {
|
|
267
|
+
constructor(hostRef) {
|
|
268
|
+
index.registerInstance(this, hostRef);
|
|
269
|
+
this.valueChanged = index.createEvent(this, "valueChanged", 7);
|
|
270
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
271
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
272
|
+
}
|
|
273
|
+
else {
|
|
274
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
275
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
276
|
+
}
|
|
277
|
+
this.name = 'participants';
|
|
278
|
+
this.eventParticipants = undefined;
|
|
279
|
+
this.participantOptions = undefined;
|
|
280
|
+
this.participants = this.eventParticipants ?? [];
|
|
281
|
+
this.participantsValid = true;
|
|
282
|
+
}
|
|
283
|
+
elementNameChangedHandler(newValue) {
|
|
284
|
+
utils.debug('nylas-additional-participants', 'elementNameChangedHandler', newValue);
|
|
285
|
+
this.host.setAttribute('name', newValue);
|
|
286
|
+
}
|
|
287
|
+
connectedCallback() {
|
|
288
|
+
utils.debug('nylas-additional-participants', 'connectedCallback');
|
|
289
|
+
}
|
|
290
|
+
componentWillLoad() {
|
|
291
|
+
utils.debug('nylas-additional-participants', 'componentWillLoad');
|
|
292
|
+
this.host.setAttribute('name', this.name);
|
|
293
|
+
}
|
|
294
|
+
componentDidLoad() {
|
|
295
|
+
utils.debug('nylas-additional-participants', 'componentDidLoad');
|
|
296
|
+
this.updateFormValue();
|
|
297
|
+
}
|
|
298
|
+
disconnectedCallback() {
|
|
299
|
+
utils.debug('nylas-additional-participants', 'disconnectedCallback');
|
|
300
|
+
}
|
|
301
|
+
onInputOptionChanged(event) {
|
|
302
|
+
utils.debug('nylas-additional-participants', 'onInputOptionChanged');
|
|
303
|
+
const index = event.detail.name;
|
|
304
|
+
this.participants[index].email = event.detail.value;
|
|
305
|
+
const participant = this.participantOptions?.find(participant => participant.email === event.detail.value);
|
|
306
|
+
this.participants[index].availability = participant ? { calendar_ids: ['primary'] } : undefined;
|
|
307
|
+
this.participants[index].name = participant?.name || event.detail.value;
|
|
308
|
+
this.participants = [...this.participants];
|
|
309
|
+
this.updateFormValue();
|
|
310
|
+
}
|
|
311
|
+
onParticipantChange(event, index) {
|
|
312
|
+
utils.debug('nylas-additional-participants', 'onParticipantChange');
|
|
313
|
+
this.participants[index].email = event.target.value;
|
|
314
|
+
this.updateFormValue();
|
|
315
|
+
}
|
|
316
|
+
addParticipant() {
|
|
317
|
+
utils.debug('nylas-additional-participants', 'addParticipant');
|
|
318
|
+
this.participants = [...this.participants, { name: '', email: '', is_organizer: false }];
|
|
319
|
+
this.updateFormValue();
|
|
320
|
+
}
|
|
321
|
+
removeParticipant(index) {
|
|
322
|
+
utils.debug('nylas-additional-participants', 'removeParticipant');
|
|
323
|
+
this.participants = this.participants.filter((_, i) => i !== index);
|
|
324
|
+
this.updateFormValue();
|
|
325
|
+
}
|
|
326
|
+
validate(email, index) {
|
|
327
|
+
utils.debug('nylas-additional-participants', 'validate');
|
|
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,}))$/;
|
|
329
|
+
const valid = regex.test(String(email).toLowerCase());
|
|
330
|
+
this.participants[index].is_valid = valid;
|
|
331
|
+
this.updateFormValue();
|
|
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 });
|
|
337
|
+
}
|
|
338
|
+
getArrayDifference(array1, array2) {
|
|
339
|
+
const filtered = array1.filter(participant1 => !array2.some(participant2 => participant1.email === participant2.email));
|
|
340
|
+
return filtered.map(participant => {
|
|
341
|
+
return { value: participant.email, label: participant.email };
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
render() {
|
|
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) => {
|
|
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 => {
|
|
347
|
+
this.onParticipantChange(e, index$1);
|
|
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"))))));
|
|
350
|
+
}
|
|
351
|
+
static get formAssociated() { return true; }
|
|
352
|
+
get host() { return index.getElement(this); }
|
|
353
|
+
static get watchers() { return {
|
|
354
|
+
"name": ["elementNameChangedHandler"]
|
|
355
|
+
}; }
|
|
356
|
+
};
|
|
357
|
+
__decorate$h([
|
|
358
|
+
registerComponent.RegisterComponent({
|
|
359
|
+
name: 'nylas-additional-participants',
|
|
360
|
+
stateToProps: new Map([['schedulerConfig.additionalParticipants', 'participantOptions']]),
|
|
361
|
+
eventToProps: {},
|
|
362
|
+
fireRegisterEvent: true,
|
|
363
|
+
}),
|
|
364
|
+
__metadata$h("design:type", Function),
|
|
365
|
+
__metadata$h("design:paramtypes", []),
|
|
366
|
+
__metadata$h("design:returntype", void 0)
|
|
367
|
+
], NylasAdditionalParticipants.prototype, "render", null);
|
|
368
|
+
NylasAdditionalParticipants.style = NylasAdditionalParticipantsStyle0;
|
|
369
|
+
|
|
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}";
|
|
250
371
|
const NylasAvailabilityPickerStyle0 = nylasAvailabilityPickerCss;
|
|
251
372
|
|
|
252
|
-
var __decorate$
|
|
373
|
+
var __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
253
374
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
254
375
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
255
376
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -259,7 +380,7 @@ var __decorate$f = (undefined && undefined.__decorate) || function (decorators,
|
|
|
259
380
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
260
381
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
261
382
|
};
|
|
262
|
-
var __metadata$
|
|
383
|
+
var __metadata$g = (undefined && undefined.__metadata) || function (k, v) {
|
|
263
384
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
264
385
|
return Reflect.metadata(k, v);
|
|
265
386
|
};
|
|
@@ -278,6 +399,7 @@ const NylasAvailabilityPicker = class {
|
|
|
278
399
|
this.openHours = undefined;
|
|
279
400
|
this.name = 'availability';
|
|
280
401
|
this.defaultTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
402
|
+
this.hideHeader = false;
|
|
281
403
|
this.schedule = {
|
|
282
404
|
SUN: [],
|
|
283
405
|
MON: [{ start: '09:00am', end: '05:00pm' }],
|
|
@@ -295,20 +417,13 @@ const NylasAvailabilityPicker = class {
|
|
|
295
417
|
this.host.setAttribute('name', newValue);
|
|
296
418
|
}
|
|
297
419
|
configChangedHandler(newConfig) {
|
|
298
|
-
const
|
|
299
|
-
if (
|
|
300
|
-
this.openHoursToSchedule(
|
|
420
|
+
const defaultOpenHours = newConfig?.availability?.availability_rules?.default_open_hours;
|
|
421
|
+
if (defaultOpenHours) {
|
|
422
|
+
this.openHoursToSchedule(defaultOpenHours);
|
|
301
423
|
}
|
|
302
424
|
}
|
|
303
425
|
scheduleChanged(newValue, oldValue) {
|
|
304
426
|
if (newValue !== oldValue) {
|
|
305
|
-
this.valueChanged.emit({
|
|
306
|
-
value: {
|
|
307
|
-
openHours: this.scheduleToOpenHours(newValue),
|
|
308
|
-
timezone: this.timezone,
|
|
309
|
-
},
|
|
310
|
-
name: this.name,
|
|
311
|
-
});
|
|
312
427
|
let overlapDays = {};
|
|
313
428
|
Object.keys(newValue).forEach(key => {
|
|
314
429
|
const dayTimeRanges = newValue[key];
|
|
@@ -337,6 +452,13 @@ const NylasAvailabilityPicker = class {
|
|
|
337
452
|
timezone: this.timezone,
|
|
338
453
|
}));
|
|
339
454
|
}
|
|
455
|
+
this.valueChanged.emit({
|
|
456
|
+
value: JSON.stringify({
|
|
457
|
+
openHours: this.scheduleToOpenHours(newValue),
|
|
458
|
+
timezone: this.timezone,
|
|
459
|
+
}),
|
|
460
|
+
name: this.name,
|
|
461
|
+
});
|
|
340
462
|
}
|
|
341
463
|
}
|
|
342
464
|
nylasFormDropdownChangedHandler(event) {
|
|
@@ -346,10 +468,15 @@ const NylasAvailabilityPicker = class {
|
|
|
346
468
|
if (typeof this.internals.setFormValue !== 'function') {
|
|
347
469
|
return;
|
|
348
470
|
}
|
|
349
|
-
|
|
471
|
+
const updateValue = {
|
|
350
472
|
openHours: this.scheduleToOpenHours(this.schedule),
|
|
351
473
|
timezone: this.timezone,
|
|
352
|
-
}
|
|
474
|
+
};
|
|
475
|
+
this.internals.setFormValue(JSON.stringify(updateValue));
|
|
476
|
+
this.valueChanged.emit({
|
|
477
|
+
value: JSON.stringify(updateValue),
|
|
478
|
+
name: this.name,
|
|
479
|
+
});
|
|
353
480
|
}
|
|
354
481
|
}
|
|
355
482
|
connectedCallback() {
|
|
@@ -370,10 +497,15 @@ const NylasAvailabilityPicker = class {
|
|
|
370
497
|
if (typeof this.internals.setFormValue !== 'function') {
|
|
371
498
|
return;
|
|
372
499
|
}
|
|
373
|
-
|
|
500
|
+
const updateValue = {
|
|
374
501
|
openHours: this.scheduleToOpenHours(this.schedule),
|
|
375
502
|
timezone: this.timezone,
|
|
376
|
-
}
|
|
503
|
+
};
|
|
504
|
+
this.internals.setFormValue(JSON.stringify(updateValue));
|
|
505
|
+
this.valueChanged.emit({
|
|
506
|
+
value: JSON.stringify(updateValue),
|
|
507
|
+
name: this.name,
|
|
508
|
+
});
|
|
377
509
|
}
|
|
378
510
|
getOverlaps(timeRanges) {
|
|
379
511
|
let timeRangesInMinutes = timeRanges.map((range, index) => ({
|
|
@@ -543,7 +675,7 @@ const NylasAvailabilityPicker = class {
|
|
|
543
675
|
label: constants.TIMEZONE_MAP[key],
|
|
544
676
|
value: key,
|
|
545
677
|
}));
|
|
546
|
-
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 => {
|
|
547
679
|
const day = key;
|
|
548
680
|
const timeRanges = this.schedule[key];
|
|
549
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: () => {
|
|
@@ -570,22 +702,22 @@ const NylasAvailabilityPicker = class {
|
|
|
570
702
|
"schedule": ["scheduleChanged"]
|
|
571
703
|
}; }
|
|
572
704
|
};
|
|
573
|
-
__decorate$
|
|
705
|
+
__decorate$g([
|
|
574
706
|
registerComponent.RegisterComponent({
|
|
575
707
|
name: 'nylas-availability-picker',
|
|
576
708
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
577
709
|
fireRegisterEvent: true,
|
|
578
710
|
}),
|
|
579
|
-
__metadata$
|
|
580
|
-
__metadata$
|
|
581
|
-
__metadata$
|
|
711
|
+
__metadata$g("design:type", Function),
|
|
712
|
+
__metadata$g("design:paramtypes", []),
|
|
713
|
+
__metadata$g("design:returntype", void 0)
|
|
582
714
|
], NylasAvailabilityPicker.prototype, "render", null);
|
|
583
715
|
NylasAvailabilityPicker.style = NylasAvailabilityPickerStyle0;
|
|
584
716
|
|
|
585
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}";
|
|
586
718
|
const NylasBookingCalendarPickerStyle0 = nylasBookingCalendarPickerCss;
|
|
587
719
|
|
|
588
|
-
var __decorate$
|
|
720
|
+
var __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
589
721
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
590
722
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
591
723
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -595,7 +727,7 @@ var __decorate$e = (undefined && undefined.__decorate) || function (decorators,
|
|
|
595
727
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
596
728
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
597
729
|
};
|
|
598
|
-
var __metadata$
|
|
730
|
+
var __metadata$f = (undefined && undefined.__metadata) || function (k, v) {
|
|
599
731
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
600
732
|
return Reflect.metadata(k, v);
|
|
601
733
|
};
|
|
@@ -674,7 +806,7 @@ const NylasBookingCalendarPicker = class {
|
|
|
674
806
|
"name": ["elementNameChangedHandler"]
|
|
675
807
|
}; }
|
|
676
808
|
};
|
|
677
|
-
__decorate$
|
|
809
|
+
__decorate$f([
|
|
678
810
|
registerComponent.RegisterComponent({
|
|
679
811
|
name: 'nylas-booking-calendar-picker',
|
|
680
812
|
stateToProps: new Map([
|
|
@@ -691,16 +823,16 @@ __decorate$e([
|
|
|
691
823
|
},
|
|
692
824
|
fireRegisterEvent: true,
|
|
693
825
|
}),
|
|
694
|
-
__metadata$
|
|
695
|
-
__metadata$
|
|
696
|
-
__metadata$
|
|
826
|
+
__metadata$f("design:type", Function),
|
|
827
|
+
__metadata$f("design:paramtypes", []),
|
|
828
|
+
__metadata$f("design:returntype", void 0)
|
|
697
829
|
], NylasBookingCalendarPicker.prototype, "render", null);
|
|
698
830
|
NylasBookingCalendarPicker.style = NylasBookingCalendarPickerStyle0;
|
|
699
831
|
|
|
700
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}";
|
|
701
833
|
const NylasBufferTimeStyle0 = nylasBufferTimeCss;
|
|
702
834
|
|
|
703
|
-
var __decorate$
|
|
835
|
+
var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
704
836
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
705
837
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
706
838
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -710,7 +842,7 @@ var __decorate$d = (undefined && undefined.__decorate) || function (decorators,
|
|
|
710
842
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
711
843
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
712
844
|
};
|
|
713
|
-
var __metadata$
|
|
845
|
+
var __metadata$e = (undefined && undefined.__metadata) || function (k, v) {
|
|
714
846
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
715
847
|
return Reflect.metadata(k, v);
|
|
716
848
|
};
|
|
@@ -852,7 +984,7 @@ const NylasBufferTime = class {
|
|
|
852
984
|
"name": ["elementNameChangedHandler"]
|
|
853
985
|
}; }
|
|
854
986
|
};
|
|
855
|
-
__decorate$
|
|
987
|
+
__decorate$e([
|
|
856
988
|
registerComponent.RegisterComponent({
|
|
857
989
|
name: 'nylas-buffer-time',
|
|
858
990
|
eventToProps: {
|
|
@@ -865,16 +997,16 @@ __decorate$d([
|
|
|
865
997
|
},
|
|
866
998
|
fireRegisterEvent: true,
|
|
867
999
|
}),
|
|
868
|
-
__metadata$
|
|
869
|
-
__metadata$
|
|
870
|
-
__metadata$
|
|
1000
|
+
__metadata$e("design:type", Function),
|
|
1001
|
+
__metadata$e("design:paramtypes", []),
|
|
1002
|
+
__metadata$e("design:returntype", void 0)
|
|
871
1003
|
], NylasBufferTime.prototype, "render", null);
|
|
872
1004
|
NylasBufferTime.style = NylasBufferTimeStyle0;
|
|
873
1005
|
|
|
874
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}";
|
|
875
1007
|
const NylasCalendarPickerStyle0 = nylasCalendarPickerCss;
|
|
876
1008
|
|
|
877
|
-
var __decorate$
|
|
1009
|
+
var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
878
1010
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
879
1011
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
880
1012
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -884,7 +1016,7 @@ var __decorate$c = (undefined && undefined.__decorate) || function (decorators,
|
|
|
884
1016
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
885
1017
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
886
1018
|
};
|
|
887
|
-
var __metadata$
|
|
1019
|
+
var __metadata$d = (undefined && undefined.__metadata) || function (k, v) {
|
|
888
1020
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
889
1021
|
return Reflect.metadata(k, v);
|
|
890
1022
|
};
|
|
@@ -963,7 +1095,7 @@ const NylasCalendarPicker = class {
|
|
|
963
1095
|
"name": ["elementNameChangedHandler"]
|
|
964
1096
|
}; }
|
|
965
1097
|
};
|
|
966
|
-
__decorate$
|
|
1098
|
+
__decorate$d([
|
|
967
1099
|
registerComponent.RegisterComponent({
|
|
968
1100
|
name: 'nylas-calendar-picker',
|
|
969
1101
|
stateToProps: new Map([
|
|
@@ -980,16 +1112,16 @@ __decorate$c([
|
|
|
980
1112
|
},
|
|
981
1113
|
fireRegisterEvent: true,
|
|
982
1114
|
}),
|
|
983
|
-
__metadata$
|
|
984
|
-
__metadata$
|
|
985
|
-
__metadata$
|
|
1115
|
+
__metadata$d("design:type", Function),
|
|
1116
|
+
__metadata$d("design:paramtypes", []),
|
|
1117
|
+
__metadata$d("design:returntype", void 0)
|
|
986
1118
|
], NylasCalendarPicker.prototype, "render", null);
|
|
987
1119
|
NylasCalendarPicker.style = NylasCalendarPickerStyle0;
|
|
988
1120
|
|
|
989
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}";
|
|
990
1122
|
const NylasCancellationPolicyStyle0 = nylasCancellationPolicyCss;
|
|
991
1123
|
|
|
992
|
-
var __decorate$
|
|
1124
|
+
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
993
1125
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
994
1126
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
995
1127
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -999,7 +1131,7 @@ var __decorate$b = (undefined && undefined.__decorate) || function (decorators,
|
|
|
999
1131
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1000
1132
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1001
1133
|
};
|
|
1002
|
-
var __metadata$
|
|
1134
|
+
var __metadata$c = (undefined && undefined.__metadata) || function (k, v) {
|
|
1003
1135
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1004
1136
|
return Reflect.metadata(k, v);
|
|
1005
1137
|
};
|
|
@@ -1058,23 +1190,23 @@ const NylasCancellationPolicy = class {
|
|
|
1058
1190
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
1059
1191
|
}; }
|
|
1060
1192
|
};
|
|
1061
|
-
__decorate$
|
|
1193
|
+
__decorate$c([
|
|
1062
1194
|
registerComponent.RegisterComponent({
|
|
1063
1195
|
name: 'nylas-cancellation-policy',
|
|
1064
1196
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
1065
1197
|
eventToProps: {},
|
|
1066
1198
|
fireRegisterEvent: true,
|
|
1067
1199
|
}),
|
|
1068
|
-
__metadata$
|
|
1069
|
-
__metadata$
|
|
1070
|
-
__metadata$
|
|
1200
|
+
__metadata$c("design:type", Function),
|
|
1201
|
+
__metadata$c("design:paramtypes", []),
|
|
1202
|
+
__metadata$c("design:returntype", void 0)
|
|
1071
1203
|
], NylasCancellationPolicy.prototype, "render", null);
|
|
1072
1204
|
NylasCancellationPolicy.style = NylasCancellationPolicyStyle0;
|
|
1073
1205
|
|
|
1074
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}}";
|
|
1075
1207
|
const NylasCustomizeBookingSettingsStyle0 = nylasCustomizeBookingSettingsCss;
|
|
1076
1208
|
|
|
1077
|
-
var __decorate$
|
|
1209
|
+
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1078
1210
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1079
1211
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1080
1212
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1084,7 +1216,7 @@ var __decorate$a = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1084
1216
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1085
1217
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1086
1218
|
};
|
|
1087
|
-
var __metadata$
|
|
1219
|
+
var __metadata$b = (undefined && undefined.__metadata) || function (k, v) {
|
|
1088
1220
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1089
1221
|
return Reflect.metadata(k, v);
|
|
1090
1222
|
};
|
|
@@ -1100,7 +1232,7 @@ const NylasCustomizeBookingSettings = class {
|
|
|
1100
1232
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
1101
1233
|
}
|
|
1102
1234
|
this.selectedConfiguration = undefined;
|
|
1103
|
-
this.defaultAdditionalGuestsHidden = this.selectedConfiguration?.scheduler?.
|
|
1235
|
+
this.defaultAdditionalGuestsHidden = this.selectedConfiguration?.scheduler?.hide_additional_guests ?? false;
|
|
1104
1236
|
this.defaultHideCancellationOptions = this.selectedConfiguration?.scheduler?.hide_cancellation_options ?? false;
|
|
1105
1237
|
this.defaultHideReschedulingOptions = this.selectedConfiguration?.scheduler?.hide_rescheduling_options ?? false;
|
|
1106
1238
|
this.name = 'customize-booking-settings';
|
|
@@ -1114,7 +1246,7 @@ const NylasCustomizeBookingSettings = class {
|
|
|
1114
1246
|
}
|
|
1115
1247
|
selectedConfigurationChangedHandler(newValue) {
|
|
1116
1248
|
utils.debug('nylas-customize-booking-settings', 'selectedConfigurationChangedHandler', newValue);
|
|
1117
|
-
this.allowGuestsToInvite = !newValue?.scheduler?.
|
|
1249
|
+
this.allowGuestsToInvite = !newValue?.scheduler?.hide_additional_guests;
|
|
1118
1250
|
this.hideCancellationOptions = newValue?.scheduler?.hide_cancellation_options ?? false;
|
|
1119
1251
|
this.hideReschedulingOptions = newValue?.scheduler?.hide_rescheduling_options ?? false;
|
|
1120
1252
|
}
|
|
@@ -1146,7 +1278,7 @@ const NylasCustomizeBookingSettings = class {
|
|
|
1146
1278
|
checkboxToggledHandler(event) {
|
|
1147
1279
|
const { name, checked } = event.detail;
|
|
1148
1280
|
switch (name) {
|
|
1149
|
-
case '
|
|
1281
|
+
case 'hide_additional_guests':
|
|
1150
1282
|
this.allowGuestsToInvite = checked;
|
|
1151
1283
|
break;
|
|
1152
1284
|
case 'hide_cancellation_options':
|
|
@@ -1171,7 +1303,7 @@ const NylasCustomizeBookingSettings = class {
|
|
|
1171
1303
|
}), this.name);
|
|
1172
1304
|
}
|
|
1173
1305
|
render() {
|
|
1174
|
-
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.")))))))));
|
|
1175
1307
|
}
|
|
1176
1308
|
static get formAssociated() { return true; }
|
|
1177
1309
|
get host() { return index.getElement(this); }
|
|
@@ -1180,22 +1312,22 @@ const NylasCustomizeBookingSettings = class {
|
|
|
1180
1312
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
1181
1313
|
}; }
|
|
1182
1314
|
};
|
|
1183
|
-
__decorate$
|
|
1315
|
+
__decorate$b([
|
|
1184
1316
|
registerComponent.RegisterComponent({
|
|
1185
1317
|
name: 'nylas-customize-booking-settings',
|
|
1186
1318
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
1187
1319
|
fireRegisterEvent: true,
|
|
1188
1320
|
}),
|
|
1189
|
-
__metadata$
|
|
1190
|
-
__metadata$
|
|
1191
|
-
__metadata$
|
|
1321
|
+
__metadata$b("design:type", Function),
|
|
1322
|
+
__metadata$b("design:paramtypes", []),
|
|
1323
|
+
__metadata$b("design:returntype", void 0)
|
|
1192
1324
|
], NylasCustomizeBookingSettings.prototype, "render", null);
|
|
1193
1325
|
NylasCustomizeBookingSettings.style = NylasCustomizeBookingSettingsStyle0;
|
|
1194
1326
|
|
|
1195
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}";
|
|
1196
1328
|
const NylasEventDescriptionStyle0 = nylasEventDescriptionCss;
|
|
1197
1329
|
|
|
1198
|
-
var __decorate$
|
|
1330
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1199
1331
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1200
1332
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1201
1333
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1205,7 +1337,7 @@ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1205
1337
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1206
1338
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1207
1339
|
};
|
|
1208
|
-
var __metadata$
|
|
1340
|
+
var __metadata$a = (undefined && undefined.__metadata) || function (k, v) {
|
|
1209
1341
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1210
1342
|
return Reflect.metadata(k, v);
|
|
1211
1343
|
};
|
|
@@ -1264,23 +1396,23 @@ const NylasEventDescription = class {
|
|
|
1264
1396
|
"selectedConfiguration": ["selectedConfigurationChangedHandler"]
|
|
1265
1397
|
}; }
|
|
1266
1398
|
};
|
|
1267
|
-
__decorate$
|
|
1399
|
+
__decorate$a([
|
|
1268
1400
|
registerComponent.RegisterComponent({
|
|
1269
1401
|
name: 'nylas-event-description',
|
|
1270
1402
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
1271
1403
|
eventToProps: {},
|
|
1272
1404
|
fireRegisterEvent: true,
|
|
1273
1405
|
}),
|
|
1274
|
-
__metadata$
|
|
1275
|
-
__metadata$
|
|
1276
|
-
__metadata$
|
|
1406
|
+
__metadata$a("design:type", Function),
|
|
1407
|
+
__metadata$a("design:paramtypes", []),
|
|
1408
|
+
__metadata$a("design:returntype", void 0)
|
|
1277
1409
|
], NylasEventDescription.prototype, "render", null);
|
|
1278
1410
|
NylasEventDescription.style = NylasEventDescriptionStyle0;
|
|
1279
1411
|
|
|
1280
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)}";
|
|
1281
1413
|
const NylasEventDurationStyle0 = nylasEventDurationCss;
|
|
1282
1414
|
|
|
1283
|
-
var __decorate$
|
|
1415
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1284
1416
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1285
1417
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1286
1418
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1290,7 +1422,7 @@ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1290
1422
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1291
1423
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1292
1424
|
};
|
|
1293
|
-
var __metadata$
|
|
1425
|
+
var __metadata$9 = (undefined && undefined.__metadata) || function (k, v) {
|
|
1294
1426
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1295
1427
|
return Reflect.metadata(k, v);
|
|
1296
1428
|
};
|
|
@@ -1407,23 +1539,23 @@ const NylasEventDuration = class {
|
|
|
1407
1539
|
"durationMinutes": ["durationMinutesChangedHandler"]
|
|
1408
1540
|
}; }
|
|
1409
1541
|
};
|
|
1410
|
-
__decorate$
|
|
1542
|
+
__decorate$9([
|
|
1411
1543
|
registerComponent.RegisterComponent({
|
|
1412
1544
|
name: 'nylas-event-duration',
|
|
1413
1545
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
1414
1546
|
eventToProps: {},
|
|
1415
1547
|
fireRegisterEvent: true,
|
|
1416
1548
|
}),
|
|
1417
|
-
__metadata$
|
|
1418
|
-
__metadata$
|
|
1419
|
-
__metadata$
|
|
1549
|
+
__metadata$9("design:type", Function),
|
|
1550
|
+
__metadata$9("design:paramtypes", []),
|
|
1551
|
+
__metadata$9("design:returntype", void 0)
|
|
1420
1552
|
], NylasEventDuration.prototype, "render", null);
|
|
1421
1553
|
NylasEventDuration.style = NylasEventDurationStyle0;
|
|
1422
1554
|
|
|
1423
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}";
|
|
1424
1556
|
const NylasEventInfoStyle0 = nylasEventInfoCss;
|
|
1425
1557
|
|
|
1426
|
-
var __decorate$
|
|
1558
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1427
1559
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1428
1560
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1429
1561
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1433,7 +1565,7 @@ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1433
1565
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1434
1566
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1435
1567
|
};
|
|
1436
|
-
var __metadata$
|
|
1568
|
+
var __metadata$8 = (undefined && undefined.__metadata) || function (k, v) {
|
|
1437
1569
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1438
1570
|
return Reflect.metadata(k, v);
|
|
1439
1571
|
};
|
|
@@ -1467,22 +1599,22 @@ const NylasEventInfo = class {
|
|
|
1467
1599
|
static get formAssociated() { return true; }
|
|
1468
1600
|
get el() { return index.getElement(this); }
|
|
1469
1601
|
};
|
|
1470
|
-
__decorate$
|
|
1602
|
+
__decorate$8([
|
|
1471
1603
|
registerComponent.RegisterComponent({
|
|
1472
1604
|
name: 'nylas-event-info',
|
|
1473
1605
|
eventToProps: {},
|
|
1474
1606
|
fireRegisterEvent: true,
|
|
1475
1607
|
}),
|
|
1476
|
-
__metadata$
|
|
1477
|
-
__metadata$
|
|
1478
|
-
__metadata$
|
|
1608
|
+
__metadata$8("design:type", Function),
|
|
1609
|
+
__metadata$8("design:paramtypes", []),
|
|
1610
|
+
__metadata$8("design:returntype", void 0)
|
|
1479
1611
|
], NylasEventInfo.prototype, "render", null);
|
|
1480
1612
|
NylasEventInfo.style = NylasEventInfoStyle0;
|
|
1481
1613
|
|
|
1482
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}";
|
|
1483
1615
|
const NylasEventLimitsStyle0 = nylasEventLimitsCss;
|
|
1484
1616
|
|
|
1485
|
-
var __decorate$
|
|
1617
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1486
1618
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1487
1619
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1488
1620
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1492,7 +1624,7 @@ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1492
1624
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1493
1625
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1494
1626
|
};
|
|
1495
|
-
var __metadata$
|
|
1627
|
+
var __metadata$7 = (undefined && undefined.__metadata) || function (k, v) {
|
|
1496
1628
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1497
1629
|
return Reflect.metadata(k, v);
|
|
1498
1630
|
};
|
|
@@ -1526,22 +1658,22 @@ const NylasEventLimits = class {
|
|
|
1526
1658
|
static get formAssociated() { return true; }
|
|
1527
1659
|
get el() { return index.getElement(this); }
|
|
1528
1660
|
};
|
|
1529
|
-
__decorate$
|
|
1661
|
+
__decorate$7([
|
|
1530
1662
|
registerComponent.RegisterComponent({
|
|
1531
1663
|
name: 'nylas-event-limits',
|
|
1532
1664
|
eventToProps: {},
|
|
1533
1665
|
fireRegisterEvent: true,
|
|
1534
1666
|
}),
|
|
1535
|
-
__metadata$
|
|
1536
|
-
__metadata$
|
|
1537
|
-
__metadata$
|
|
1667
|
+
__metadata$7("design:type", Function),
|
|
1668
|
+
__metadata$7("design:paramtypes", []),
|
|
1669
|
+
__metadata$7("design:returntype", void 0)
|
|
1538
1670
|
], NylasEventLimits.prototype, "render", null);
|
|
1539
1671
|
NylasEventLimits.style = NylasEventLimitsStyle0;
|
|
1540
1672
|
|
|
1541
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}";
|
|
1542
1674
|
const NylasEventLocationStyle0 = nylasEventLocationCss;
|
|
1543
1675
|
|
|
1544
|
-
var __decorate$
|
|
1676
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1545
1677
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1546
1678
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1547
1679
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1551,7 +1683,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1551
1683
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1552
1684
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1553
1685
|
};
|
|
1554
|
-
var __metadata$
|
|
1686
|
+
var __metadata$6 = (undefined && undefined.__metadata) || function (k, v) {
|
|
1555
1687
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1556
1688
|
return Reflect.metadata(k, v);
|
|
1557
1689
|
};
|
|
@@ -1642,23 +1774,23 @@ const NylasEventLocation = class {
|
|
|
1642
1774
|
"eventLocation": ["eventLocationChangedHandler"]
|
|
1643
1775
|
}; }
|
|
1644
1776
|
};
|
|
1645
|
-
__decorate$
|
|
1777
|
+
__decorate$6([
|
|
1646
1778
|
registerComponent.RegisterComponent({
|
|
1647
1779
|
name: 'nylas-event-location',
|
|
1648
1780
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
1649
1781
|
eventToProps: {},
|
|
1650
1782
|
fireRegisterEvent: true,
|
|
1651
1783
|
}),
|
|
1652
|
-
__metadata$
|
|
1653
|
-
__metadata$
|
|
1654
|
-
__metadata$
|
|
1784
|
+
__metadata$6("design:type", Function),
|
|
1785
|
+
__metadata$6("design:paramtypes", []),
|
|
1786
|
+
__metadata$6("design:returntype", void 0)
|
|
1655
1787
|
], NylasEventLocation.prototype, "render", null);
|
|
1656
1788
|
NylasEventLocation.style = NylasEventLocationStyle0;
|
|
1657
1789
|
|
|
1658
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)}";
|
|
1659
1791
|
const NylasEventTitleStyle0 = nylasEventTitleCss;
|
|
1660
1792
|
|
|
1661
|
-
var __decorate$
|
|
1793
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1662
1794
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1663
1795
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1664
1796
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1668,7 +1800,7 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1668
1800
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1669
1801
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1670
1802
|
};
|
|
1671
|
-
var __metadata$
|
|
1803
|
+
var __metadata$5 = (undefined && undefined.__metadata) || function (k, v) {
|
|
1672
1804
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1673
1805
|
return Reflect.metadata(k, v);
|
|
1674
1806
|
};
|
|
@@ -1981,23 +2113,23 @@ const NylasEventTitle = class {
|
|
|
1981
2113
|
"selectedConfiguration": ["configChangedHandler"]
|
|
1982
2114
|
}; }
|
|
1983
2115
|
};
|
|
1984
|
-
__decorate$
|
|
2116
|
+
__decorate$5([
|
|
1985
2117
|
registerComponent.RegisterComponent({
|
|
1986
2118
|
name: 'nylas-event-title',
|
|
1987
2119
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
1988
2120
|
eventToProps: {},
|
|
1989
2121
|
fireRegisterEvent: true,
|
|
1990
2122
|
}),
|
|
1991
|
-
__metadata$
|
|
1992
|
-
__metadata$
|
|
1993
|
-
__metadata$
|
|
2123
|
+
__metadata$5("design:type", Function),
|
|
2124
|
+
__metadata$5("design:paramtypes", []),
|
|
2125
|
+
__metadata$5("design:returntype", void 0)
|
|
1994
2126
|
], NylasEventTitle.prototype, "render", null);
|
|
1995
2127
|
NylasEventTitle.style = NylasEventTitleStyle0;
|
|
1996
2128
|
|
|
1997
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}";
|
|
1998
2130
|
const NylasLimitFutureBookingsStyle0 = nylasLimitFutureBookingsCss;
|
|
1999
2131
|
|
|
2000
|
-
var __decorate$
|
|
2132
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2001
2133
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2002
2134
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2003
2135
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2007,7 +2139,7 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
2007
2139
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2008
2140
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2009
2141
|
};
|
|
2010
|
-
var __metadata$
|
|
2142
|
+
var __metadata$4 = (undefined && undefined.__metadata) || function (k, v) {
|
|
2011
2143
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
2012
2144
|
return Reflect.metadata(k, v);
|
|
2013
2145
|
};
|
|
@@ -2105,23 +2237,23 @@ const NylasLimitFutureBookings = class {
|
|
|
2105
2237
|
"availableDaysInFuture": ["availableDaysInFutureChanged"]
|
|
2106
2238
|
}; }
|
|
2107
2239
|
};
|
|
2108
|
-
__decorate$
|
|
2240
|
+
__decorate$4([
|
|
2109
2241
|
registerComponent.RegisterComponent({
|
|
2110
2242
|
name: 'nylas-limit-future-bookings',
|
|
2111
2243
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
2112
2244
|
eventToProps: {},
|
|
2113
2245
|
fireRegisterEvent: true,
|
|
2114
2246
|
}),
|
|
2115
|
-
__metadata$
|
|
2116
|
-
__metadata$
|
|
2117
|
-
__metadata$
|
|
2247
|
+
__metadata$4("design:type", Function),
|
|
2248
|
+
__metadata$4("design:paramtypes", []),
|
|
2249
|
+
__metadata$4("design:returntype", void 0)
|
|
2118
2250
|
], NylasLimitFutureBookings.prototype, "render", null);
|
|
2119
2251
|
NylasLimitFutureBookings.style = NylasLimitFutureBookingsStyle0;
|
|
2120
2252
|
|
|
2121
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}";
|
|
2122
2254
|
const NylasMinBookingNoticeStyle0 = nylasMinBookingNoticeCss;
|
|
2123
2255
|
|
|
2124
|
-
var __decorate$
|
|
2256
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2125
2257
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2126
2258
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2127
2259
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2131,7 +2263,7 @@ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
2131
2263
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2132
2264
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2133
2265
|
};
|
|
2134
|
-
var __metadata$
|
|
2266
|
+
var __metadata$3 = (undefined && undefined.__metadata) || function (k, v) {
|
|
2135
2267
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
2136
2268
|
return Reflect.metadata(k, v);
|
|
2137
2269
|
};
|
|
@@ -2254,23 +2386,23 @@ const NylasMinBookingNotice = class {
|
|
|
2254
2386
|
"availableDaysInFuture": ["availableDaysInFutureChanged"]
|
|
2255
2387
|
}; }
|
|
2256
2388
|
};
|
|
2257
|
-
__decorate$
|
|
2389
|
+
__decorate$3([
|
|
2258
2390
|
registerComponent.RegisterComponent({
|
|
2259
2391
|
name: 'nylas-min-booking-notice',
|
|
2260
2392
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
2261
2393
|
eventToProps: {},
|
|
2262
2394
|
fireRegisterEvent: true,
|
|
2263
2395
|
}),
|
|
2264
|
-
__metadata$
|
|
2265
|
-
__metadata$
|
|
2266
|
-
__metadata$
|
|
2396
|
+
__metadata$3("design:type", Function),
|
|
2397
|
+
__metadata$3("design:paramtypes", []),
|
|
2398
|
+
__metadata$3("design:returntype", void 0)
|
|
2267
2399
|
], NylasMinBookingNotice.prototype, "render", null);
|
|
2268
2400
|
NylasMinBookingNotice.style = NylasMinBookingNoticeStyle0;
|
|
2269
2401
|
|
|
2270
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}";
|
|
2271
2403
|
const NylasMinCancellationNoticeStyle0 = nylasMinCancellationNoticeCss;
|
|
2272
2404
|
|
|
2273
|
-
var __decorate$
|
|
2405
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2274
2406
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2275
2407
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2276
2408
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2280,7 +2412,7 @@ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
2280
2412
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2281
2413
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2282
2414
|
};
|
|
2283
|
-
var __metadata$
|
|
2415
|
+
var __metadata$2 = (undefined && undefined.__metadata) || function (k, v) {
|
|
2284
2416
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
2285
2417
|
return Reflect.metadata(k, v);
|
|
2286
2418
|
};
|
|
@@ -2403,305 +2535,148 @@ const NylasMinCancellationNotice = class {
|
|
|
2403
2535
|
"availableDaysInFuture": ["availableDaysInFutureChanged"]
|
|
2404
2536
|
}; }
|
|
2405
2537
|
};
|
|
2406
|
-
__decorate$
|
|
2538
|
+
__decorate$2([
|
|
2407
2539
|
registerComponent.RegisterComponent({
|
|
2408
2540
|
name: 'nylas-min-cancellation-notice',
|
|
2409
2541
|
stateToProps: new Map([['schedulerConfig.selectedConfiguration', 'selectedConfiguration']]),
|
|
2410
2542
|
eventToProps: {},
|
|
2411
2543
|
fireRegisterEvent: true,
|
|
2412
2544
|
}),
|
|
2413
|
-
__metadata$
|
|
2414
|
-
__metadata$
|
|
2415
|
-
__metadata$
|
|
2545
|
+
__metadata$2("design:type", Function),
|
|
2546
|
+
__metadata$2("design:paramtypes", []),
|
|
2547
|
+
__metadata$2("design:returntype", void 0)
|
|
2416
2548
|
], NylasMinCancellationNotice.prototype, "render", null);
|
|
2417
2549
|
NylasMinCancellationNotice.style = NylasMinCancellationNoticeStyle0;
|
|
2418
2550
|
|
|
2419
|
-
|
|
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;
|
|
2420
2553
|
|
|
2421
|
-
(function (
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
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 {
|
|
2432
2569
|
constructor(hostRef) {
|
|
2433
2570
|
index.registerInstance(this, hostRef);
|
|
2434
|
-
this.
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
this.minimumStartTime = null;
|
|
2438
|
-
this.placeholder = 'hh:mmam/pm';
|
|
2439
|
-
this.name = undefined;
|
|
2440
|
-
this.hasError = false;
|
|
2441
|
-
this.err = '';
|
|
2442
|
-
this.showTimes = false;
|
|
2443
|
-
this.ariaActivedescendant = '';
|
|
2444
|
-
this.times = this.generateTimes();
|
|
2445
|
-
this.shouldAutoScroll = false;
|
|
2446
|
-
}
|
|
2447
|
-
handleOutsideClick(event) {
|
|
2448
|
-
const path = event.composedPath();
|
|
2449
|
-
const isClickInside = path.includes(this.el);
|
|
2450
|
-
if (!isClickInside && this.showTimes) {
|
|
2451
|
-
this.showTimes = false;
|
|
2571
|
+
this.valueChanged = index.createEvent(this, "valueChanged", 7);
|
|
2572
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
2573
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
2452
2574
|
}
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
let formattedTime = utils.dayjs()
|
|
2457
|
-
.hour(parseInt(this.minimumStartTime))
|
|
2458
|
-
.minute(parseInt(this.minimumStartTime.slice(-4, -2)));
|
|
2459
|
-
if (this.minimumStartTime.slice(-2).toLowerCase() === 'pm' && parseInt(this.minimumStartTime) !== 12) {
|
|
2460
|
-
formattedTime = formattedTime.add(12, 'hour');
|
|
2461
|
-
}
|
|
2462
|
-
else if (this.minimumStartTime.slice(-2).toLowerCase() === 'am' && parseInt(this.minimumStartTime) === 12) {
|
|
2463
|
-
formattedTime = formattedTime.subtract(12, 'hour');
|
|
2464
|
-
}
|
|
2465
|
-
this.times = this.generateTimes();
|
|
2466
|
-
const firstTime = utils.dayjs(this.times[0].value, 'hh:mma');
|
|
2467
|
-
let selectedTimeFormatted = utils.dayjs(this.time, 'hh:mma');
|
|
2468
|
-
if (selectedTimeFormatted.isBefore(firstTime)) {
|
|
2469
|
-
this.err = 'Invalid';
|
|
2470
|
-
this.formError.emit({
|
|
2471
|
-
key: this.el.id,
|
|
2472
|
-
message: 'Invalid',
|
|
2473
|
-
});
|
|
2474
|
-
}
|
|
2575
|
+
else {
|
|
2576
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
2577
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
2475
2578
|
}
|
|
2579
|
+
this.name = 'participant-custom-availability';
|
|
2580
|
+
this.participants = undefined;
|
|
2581
|
+
this.selectedParticipants = this.setParticipants(this.participants);
|
|
2476
2582
|
}
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
const optionIndex = this.times.findIndex(time => time.value === autocompletedTime);
|
|
2481
|
-
if (optionIndex > -1) {
|
|
2482
|
-
this.shouldAutoScroll = false;
|
|
2483
|
-
this.scrollToViewWithinParent(optionIndex);
|
|
2484
|
-
}
|
|
2485
|
-
return;
|
|
2486
|
-
}
|
|
2583
|
+
elementNameChangedHandler(newValue) {
|
|
2584
|
+
utils.debug('nylas-participants-custom-availability', 'elementNameChangedHandler', newValue);
|
|
2585
|
+
this.host.setAttribute('name', newValue);
|
|
2487
2586
|
}
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
this.err = 'Invalid';
|
|
2492
|
-
this.formError.emit({
|
|
2493
|
-
key: this.el.id,
|
|
2494
|
-
message: 'Invalid',
|
|
2495
|
-
});
|
|
2496
|
-
}
|
|
2497
|
-
if (!utils.validateTimeFormatInput(input)) {
|
|
2498
|
-
this.err = 'Invalid';
|
|
2499
|
-
this.formError.emit({
|
|
2500
|
-
key: this.el.id,
|
|
2501
|
-
message: 'Invalid',
|
|
2502
|
-
});
|
|
2503
|
-
}
|
|
2504
|
-
else {
|
|
2505
|
-
this.err = '';
|
|
2506
|
-
this.formError.emit({
|
|
2507
|
-
key: this.el.id,
|
|
2508
|
-
message: '',
|
|
2509
|
-
});
|
|
2510
|
-
}
|
|
2511
|
-
this.timeChange.emit({
|
|
2512
|
-
key: this.el.id,
|
|
2513
|
-
value: input,
|
|
2514
|
-
});
|
|
2587
|
+
participantsChangedHandler(newValue) {
|
|
2588
|
+
utils.debug('nylas-participants-custom-availability', 'participantsChangedHandler', newValue);
|
|
2589
|
+
this.selectedParticipants = this.setParticipants(newValue);
|
|
2515
2590
|
}
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
if (!utils.validateTimeFormatInput(input)) {
|
|
2519
|
-
this.err = 'Invalid';
|
|
2520
|
-
this.formError.emit({
|
|
2521
|
-
key: this.el.id,
|
|
2522
|
-
message: 'Invalid',
|
|
2523
|
-
});
|
|
2524
|
-
return;
|
|
2525
|
-
}
|
|
2526
|
-
if (input === '') {
|
|
2527
|
-
const newTime = utils.roundToNearest15Minutes().format('hh:mma');
|
|
2528
|
-
this.timeChange.emit({
|
|
2529
|
-
key: this.el.id,
|
|
2530
|
-
value: newTime,
|
|
2531
|
-
});
|
|
2532
|
-
return;
|
|
2533
|
-
}
|
|
2534
|
-
if (!utils.validateExactTimeFormat(input)) {
|
|
2535
|
-
const autocompletedTime = utils.autocompleteTimeFormat(input);
|
|
2536
|
-
this.timeChange.emit({
|
|
2537
|
-
key: this.el.id,
|
|
2538
|
-
value: autocompletedTime,
|
|
2539
|
-
});
|
|
2540
|
-
return;
|
|
2541
|
-
}
|
|
2542
|
-
this.timeChange.emit({
|
|
2543
|
-
key: this.el.id,
|
|
2544
|
-
value: input,
|
|
2545
|
-
});
|
|
2591
|
+
connectedCallback() {
|
|
2592
|
+
utils.debug('nylas-participants-custom-availability', 'connectedCallback');
|
|
2546
2593
|
}
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
if (!utils.validateTimeFormatInput(input)) {
|
|
2550
|
-
return;
|
|
2551
|
-
}
|
|
2552
|
-
if (input === '') {
|
|
2553
|
-
const newTime = utils.roundToNearest15Minutes().format('hh:mma');
|
|
2554
|
-
const optionIndex = this.times.findIndex(time => time.value === newTime);
|
|
2555
|
-
if (optionIndex > -1) {
|
|
2556
|
-
this.scrollToViewWithinParent(optionIndex);
|
|
2557
|
-
}
|
|
2558
|
-
return;
|
|
2559
|
-
}
|
|
2560
|
-
if (!utils.validateExactTimeFormat(input)) {
|
|
2561
|
-
const autocompletedTime = utils.autocompleteTimeFormat(input);
|
|
2562
|
-
const optionIndex = this.times.findIndex(time => time.value === autocompletedTime);
|
|
2563
|
-
if (optionIndex > -1) {
|
|
2564
|
-
this.scrollToViewWithinParent(optionIndex);
|
|
2565
|
-
}
|
|
2566
|
-
return;
|
|
2567
|
-
}
|
|
2594
|
+
disconnectedCallback() {
|
|
2595
|
+
utils.debug('nylas-participants-custom-availability', 'disconnectedCallback');
|
|
2568
2596
|
}
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
let startTime = utils.dayjs().set('hour', 0).set('minute', 0).set('second', 0);
|
|
2572
|
-
if (this.minimumStartTime) {
|
|
2573
|
-
startTime = utils.dayjs(this.minimumStartTime, 'hh:mma');
|
|
2574
|
-
}
|
|
2575
|
-
const diff = startTime.endOf('day').diff(startTime, 'minutes');
|
|
2576
|
-
const iterations = Math.round(diff / 15);
|
|
2577
|
-
for (let i = 0; i < iterations + 1; i++) {
|
|
2578
|
-
const time = startTime.add(i * 15, 'minute');
|
|
2579
|
-
if (i == iterations && time.format('hh:mma').includes('am')) {
|
|
2580
|
-
break;
|
|
2581
|
-
}
|
|
2582
|
-
times.push({ id: i, value: time.format('hh:mma') });
|
|
2583
|
-
}
|
|
2584
|
-
return times;
|
|
2597
|
+
componentWillLoad() {
|
|
2598
|
+
utils.debug('nylas-participants-custom-availability', 'componentWillLoad');
|
|
2585
2599
|
}
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
event.preventDefault();
|
|
2589
|
-
if (!this.showTimes) {
|
|
2590
|
-
this.showTimes = true;
|
|
2591
|
-
this.shouldAutoScroll = true;
|
|
2592
|
-
return;
|
|
2593
|
-
}
|
|
2594
|
-
if (this.ariaActivedescendant === '') {
|
|
2595
|
-
this.ariaActivedescendant = this.times[0].id.toString();
|
|
2596
|
-
this.focusOption(0);
|
|
2597
|
-
}
|
|
2598
|
-
else {
|
|
2599
|
-
const currentIndex = this.times.findIndex(time => time.id.toString() === this.ariaActivedescendant);
|
|
2600
|
-
const nextIndex = currentIndex + 1 < this.times.length ? currentIndex + 1 : 0;
|
|
2601
|
-
this.ariaActivedescendant = this.times[nextIndex].id.toString();
|
|
2602
|
-
this.focusOption(nextIndex);
|
|
2603
|
-
}
|
|
2604
|
-
}
|
|
2605
|
-
else if (event.key === 'ArrowUp') {
|
|
2606
|
-
event.preventDefault();
|
|
2607
|
-
if (this.ariaActivedescendant === '') {
|
|
2608
|
-
this.ariaActivedescendant = this.times[this.times.length - 1].id.toString();
|
|
2609
|
-
this.focusOption(this.times.length - 1);
|
|
2610
|
-
}
|
|
2611
|
-
else {
|
|
2612
|
-
const currentIndex = this.times.findIndex(time => time.id.toString() === this.ariaActivedescendant);
|
|
2613
|
-
const prevIndex = currentIndex - 1 >= 0 ? currentIndex - 1 : this.times.length - 1;
|
|
2614
|
-
this.ariaActivedescendant = this.times[prevIndex].id.toString();
|
|
2615
|
-
this.focusOption(prevIndex);
|
|
2616
|
-
}
|
|
2617
|
-
}
|
|
2618
|
-
else if (event.key === 'Escape') {
|
|
2619
|
-
this.showTimes = false;
|
|
2620
|
-
this.timeInput.focus();
|
|
2621
|
-
}
|
|
2600
|
+
componentDidLoad() {
|
|
2601
|
+
utils.debug('nylas-participants-custom-availability', 'componentDidLoad');
|
|
2622
2602
|
}
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
const nextIndex = currentIndex + 1 < items.length ? currentIndex + 1 : 0;
|
|
2629
|
-
this.ariaActivedescendant = items[nextIndex].id.toString();
|
|
2630
|
-
this.focusOption(nextIndex);
|
|
2631
|
-
}
|
|
2632
|
-
else if (e.key === 'ArrowUp' || (e.key === 'Tab' && e.shiftKey)) {
|
|
2633
|
-
e.preventDefault();
|
|
2634
|
-
const prevIndex = currentIndex - 1 >= 0 ? currentIndex - 1 : items.length - 1;
|
|
2635
|
-
this.ariaActivedescendant = items[prevIndex].id.toString();
|
|
2636
|
-
this.focusOption(prevIndex);
|
|
2637
|
-
}
|
|
2638
|
-
else if (e.key === 'Enter') {
|
|
2639
|
-
e.preventDefault();
|
|
2640
|
-
if (this.ariaActivedescendant) {
|
|
2641
|
-
const option = items[currentIndex];
|
|
2642
|
-
this.handleTimeChange(e, option.value);
|
|
2643
|
-
this.showTimes = false;
|
|
2644
|
-
this.ariaActivedescendant = '';
|
|
2645
|
-
this.timeInput.focus();
|
|
2646
|
-
}
|
|
2647
|
-
}
|
|
2648
|
-
else if (e.key === 'Escape') {
|
|
2649
|
-
this.showTimes = false;
|
|
2650
|
-
this.timeInput.focus();
|
|
2651
|
-
}
|
|
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 };
|
|
2652
2608
|
}
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
const
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
const childRect = childElement.getBoundingClientRect();
|
|
2659
|
-
const parentRect = parentElement.getBoundingClientRect();
|
|
2660
|
-
if (childRect.top < parentRect.top) {
|
|
2661
|
-
parentElement.scrollTop -= parentRect.top - childRect.top;
|
|
2662
|
-
}
|
|
2663
|
-
else if (childRect.bottom > parentRect.bottom) {
|
|
2664
|
-
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;
|
|
2665
2614
|
}
|
|
2666
|
-
if (
|
|
2667
|
-
|
|
2615
|
+
if (!this.participantFormRef.checkValidity()) {
|
|
2616
|
+
this.internals.setValidity({ customError: true }, 'Please fix the overlapping time ranges.');
|
|
2617
|
+
return;
|
|
2668
2618
|
}
|
|
2669
|
-
else
|
|
2670
|
-
|
|
2619
|
+
else {
|
|
2620
|
+
this.internals.setValidity({});
|
|
2671
2621
|
}
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
if (!option)
|
|
2622
|
+
const jsonValue = JSON.parse(value);
|
|
2623
|
+
const key = name.split('-')[2];
|
|
2624
|
+
if (!this.selectedParticipants[key])
|
|
2676
2625
|
return;
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
}
|
|
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;
|
|
2683
2648
|
}
|
|
2684
2649
|
render() {
|
|
2685
|
-
return (index.h(index.Host, { key: '
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
this.timeInput.focus();
|
|
2697
|
-
}, 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
|
+
}))))));
|
|
2698
2661
|
}
|
|
2699
|
-
get
|
|
2662
|
+
static get formAssociated() { return true; }
|
|
2663
|
+
get host() { return index.getElement(this); }
|
|
2700
2664
|
static get watchers() { return {
|
|
2701
|
-
"
|
|
2665
|
+
"name": ["elementNameChangedHandler"],
|
|
2666
|
+
"participants": ["participantsChangedHandler"]
|
|
2702
2667
|
}; }
|
|
2703
2668
|
};
|
|
2704
|
-
|
|
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;
|
|
2705
2680
|
|
|
2706
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}";
|
|
2707
2682
|
const NylasTimeslotIntervalStyle0 = nylasTimeslotIntervalCss;
|
|
@@ -2829,9 +2804,9 @@ const NylasTimeslotInterval = class {
|
|
|
2829
2804
|
{ value: '45', label: '45 mins' },
|
|
2830
2805
|
{ value: '60', label: '60 mins' },
|
|
2831
2806
|
];
|
|
2832
|
-
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
|
|
2833
2808
|
? intervalPreferenceOptions[0]
|
|
2834
|
-
: 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: [
|
|
2835
2810
|
{ value: 'no-rounding', label: 'Default', description: 'Time-slots will be rounded to the nearest quarter-hour.' },
|
|
2836
2811
|
{
|
|
2837
2812
|
value: 'rounding',
|
|
@@ -2859,6 +2834,21 @@ __decorate([
|
|
|
2859
2834
|
], NylasTimeslotInterval.prototype, "render", null);
|
|
2860
2835
|
NylasTimeslotInterval.style = NylasTimeslotIntervalStyle0;
|
|
2861
2836
|
|
|
2837
|
+
const iconCss = ".sc-people-icon-h{display:flex}";
|
|
2838
|
+
const PeopleIconStyle0 = iconCss;
|
|
2839
|
+
|
|
2840
|
+
const PeopleIcon = class {
|
|
2841
|
+
constructor(hostRef) {
|
|
2842
|
+
index.registerInstance(this, hostRef);
|
|
2843
|
+
this.width = '20';
|
|
2844
|
+
this.height = '20';
|
|
2845
|
+
}
|
|
2846
|
+
render() {
|
|
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" })));
|
|
2848
|
+
}
|
|
2849
|
+
};
|
|
2850
|
+
PeopleIcon.style = PeopleIconStyle0;
|
|
2851
|
+
|
|
2862
2852
|
const radioButtonGroupCss = ".radio-group{display:flex;flex-direction:column}.radio-group label{display:flex;font-family:var(--nylas-font-family);cursor:pointer}.radio-group label .radio-option{display:flex;align-items:flex-start;gap:0.5rem}.radio-group label .radio-option input[type=radio]{cursor:pointer}.radio-group label .radio-option input[type=radio i]{width:20px;height:20px;color:var(--nylas-primary);margin-top:16px}.radio-group label .radio-option p{display:flex;flex-direction:column;gap:0.5rem}.radio-group label .radio-option p .title{font-size:16px;font-weight:500;line-height:20px;color:var(--nylas-base-800)}.radio-group label .radio-option p .description{font-size:14px;font-weight:400;line-height:20px;color:var(--nylas-base-600)}";
|
|
2863
2853
|
const RadioButtonGroupStyle0 = radioButtonGroupCss;
|
|
2864
2854
|
|
|
@@ -2879,11 +2869,40 @@ const RadioButtonGroup = class {
|
|
|
2879
2869
|
});
|
|
2880
2870
|
}
|
|
2881
2871
|
render() {
|
|
2882
|
-
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))))))));
|
|
2883
2873
|
}
|
|
2884
2874
|
};
|
|
2885
2875
|
RadioButtonGroup.style = RadioButtonGroupStyle0;
|
|
2886
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
|
+
|
|
2887
2906
|
exports.calendar_info_icon = CalendarInfoIcon;
|
|
2888
2907
|
exports.calendar_patterns_icon = CalendarPatternsIcon;
|
|
2889
2908
|
exports.checkbox_component = CheckboxComponent;
|
|
@@ -2891,6 +2910,7 @@ exports.flow_icon = FlowIcon;
|
|
|
2891
2910
|
exports.location_icon = LocationIcon;
|
|
2892
2911
|
exports.location_off_icon = LocationOffIcon;
|
|
2893
2912
|
exports.multi_select_dropdown = MultiSelectDropdown;
|
|
2913
|
+
exports.nylas_additional_participants = NylasAdditionalParticipants;
|
|
2894
2914
|
exports.nylas_availability_picker = NylasAvailabilityPicker;
|
|
2895
2915
|
exports.nylas_booking_calendar_picker = NylasBookingCalendarPicker;
|
|
2896
2916
|
exports.nylas_buffer_time = NylasBufferTime;
|
|
@@ -2906,8 +2926,10 @@ exports.nylas_event_title = NylasEventTitle;
|
|
|
2906
2926
|
exports.nylas_limit_future_bookings = NylasLimitFutureBookings;
|
|
2907
2927
|
exports.nylas_min_booking_notice = NylasMinBookingNotice;
|
|
2908
2928
|
exports.nylas_min_cancellation_notice = NylasMinCancellationNotice;
|
|
2909
|
-
exports.
|
|
2929
|
+
exports.nylas_participants_custom_availability = NylasParticipantsCustomAvailability;
|
|
2910
2930
|
exports.nylas_timeslot_interval = NylasTimeslotInterval;
|
|
2931
|
+
exports.people_icon = PeopleIcon;
|
|
2911
2932
|
exports.radio_button_group = RadioButtonGroup;
|
|
2933
|
+
exports.toggle_switch = ToggleSwitchComponent;
|
|
2912
2934
|
|
|
2913
|
-
//# sourceMappingURL=calendar-info-
|
|
2935
|
+
//# sourceMappingURL=calendar-info-icon_28.cjs.entry.js.map
|