@nylas/react 1.4.4 → 2.0.0
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/README.md +7 -0
- package/dist/add-circle-icon_2.entry-8a1c55bc.cjs +1 -0
- package/dist/{add-circle-icon_2.entry-615fc101.js → add-circle-icon_2.entry-b4bbcfee.js} +3 -3
- package/dist/archive-icon.entry-a2492cf3.js +16 -0
- package/dist/archive-icon.entry-e48d2356.cjs +1 -0
- package/dist/{arrow-icon.entry-da152ec2.js → arrow-icon.entry-9414299f.js} +5 -5
- package/dist/arrow-icon.entry-b1ecb2aa.cjs +1 -0
- package/dist/{bold-icon.entry-61046c15.js → bold-icon.entry-b72aed9f.js} +4 -4
- package/dist/{bold-icon.entry-58679992.cjs → bold-icon.entry-c781e9c1.cjs} +1 -1
- package/dist/{button-component_2.entry-db53e00a.js → button-component_2.entry-36e49459.js} +9 -9
- package/dist/{button-component_2.entry-53bfdc19.cjs → button-component_2.entry-73f76545.cjs} +1 -1
- package/dist/calendar-agenda-fill-icon_36.entry-e9b92e0e.cjs +6 -0
- package/dist/{calendar-agenda-fill-icon_36.entry-76796ea7.js → calendar-agenda-fill-icon_36.entry-efa7ad26.js} +100 -100
- package/dist/{calendar-cancel-icon.entry-e5032d71.cjs → calendar-cancel-icon.entry-01c388eb.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-f3b8ae99.js → calendar-cancel-icon.entry-0f739a8a.js} +4 -4
- package/dist/{calendar-check-icon_2.entry-7303362a.cjs → calendar-check-icon_2.entry-5febbadf.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-27dc91f7.js → calendar-check-icon_2.entry-dfb0036d.js} +3 -3
- package/dist/{calendar-icon.entry-4f432baf.cjs → calendar-icon.entry-9743e0b7.cjs} +1 -1
- package/dist/{calendar-icon.entry-48fc45d6.js → calendar-icon.entry-f197396d.js} +2 -2
- package/dist/{checkbox-component.entry-8fad4faf.cjs → checkbox-component.entry-1aa5782f.cjs} +1 -1
- package/dist/{checkbox-component.entry-a15ffc4c.js → checkbox-component.entry-72a6aa72.js} +4 -4
- package/dist/checkmark-icon_15.entry-35dd97b7.cjs +5 -0
- package/dist/{checkmark-icon_15.entry-9f926a70.js → checkmark-icon_15.entry-5c09cff5.js} +225 -223
- package/dist/{chevron-icon_3.entry-5130fbba.js → chevron-icon_3.entry-4a72f211.js} +6 -6
- package/dist/chevron-icon_3.entry-e0608b7c.cjs +1 -0
- package/dist/{clock-icon_4.entry-40a393c9.js → clock-icon_4.entry-0afe79c2.js} +8 -8
- package/dist/{clock-icon_4.entry-ac65deae.cjs → clock-icon_4.entry-202ce025.cjs} +1 -1
- package/dist/constants-f51538ef-cd2a67c4.cjs +1 -0
- package/dist/{constants-3d8016e3-3c080f00.js → constants-f51538ef-e0a5f026.js} +27 -32
- package/dist/{customParseFormat-a4d9ea69-763f219e.cjs → customParseFormat-d1de5ed0-65a0bba3.cjs} +1 -1
- package/dist/{customParseFormat-a4d9ea69-7caebeb2.js → customParseFormat-d1de5ed0-c0ef002d.js} +1 -1
- package/dist/{delete-icon.entry-78e44eba.js → delete-icon.entry-580bfcc9.js} +4 -4
- package/dist/{delete-icon.entry-770dac8c.cjs → delete-icon.entry-762ac892.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-d331f844.cjs → document-refresh-icon.entry-4e0f0c61.cjs} +1 -1
- package/dist/document-refresh-icon.entry-e500b4e3.js +16 -0
- package/dist/elements/index.d.ts +0 -8
- package/dist/{feedbackSync-57bb471a-ee800a95.js → feedbackSync-172f942c-42124493.js} +1 -1
- package/dist/{feedbackSync-57bb471a-5afb7715.cjs → feedbackSync-172f942c-62f72bd2.cjs} +1 -1
- package/dist/{folder-icon.entry-163e0aee.cjs → folder-icon.entry-2694e253.cjs} +1 -1
- package/dist/{folder-icon.entry-42650400.js → folder-icon.entry-54c3cc66.js} +2 -2
- package/dist/{forward-icon.entry-d60b6e31.js → forward-icon.entry-5e540f05.js} +5 -5
- package/dist/{forward-icon.entry-0a499b38.cjs → forward-icon.entry-f07102d8.cjs} +1 -1
- package/dist/{globe-icon_2.entry-19359092.cjs → globe-icon_2.entry-14a4c168.cjs} +1 -1
- package/dist/{globe-icon_2.entry-5afa8049.js → globe-icon_2.entry-aaceb196.js} +90 -80
- package/dist/{google-logo-icon_6.entry-d2febb78.js → google-logo-icon_6.entry-00d40db2.js} +473 -439
- package/dist/google-logo-icon_6.entry-fa76ffe3.cjs +2 -0
- package/dist/{google-meet-icon_5.entry-4a94137f.cjs → google-meet-icon_5.entry-6c20e149.cjs} +1 -1
- package/dist/{google-meet-icon_5.entry-7b1b36f2.js → google-meet-icon_5.entry-f1f05903.js} +12 -12
- package/dist/inbox-icon.entry-9a4628f2.cjs +1 -0
- package/dist/inbox-icon.entry-aa78ba8c.js +16 -0
- package/dist/index-1e75512f.cjs +57 -0
- package/dist/{index-9243e481.js → index-e8380973.js} +5687 -4802
- package/dist/{index.es-13ff6710-0f748bd2.cjs → index.es-fc8588de-034ead51.cjs} +6 -6
- package/dist/{index.es-13ff6710-73fa05e6.js → index.es-fc8588de-c943eef6.js} +827 -1065
- package/dist/{info-icon_2.entry-ba869bab.js → info-icon_2.entry-b3b313ab.js} +3 -3
- package/dist/{info-icon_2.entry-6667923a.cjs → info-icon_2.entry-bbcefb9a.cjs} +1 -1
- package/dist/{input-component.entry-7396acf1.js → input-component.entry-401b9ba5.js} +9 -9
- package/dist/{input-component.entry-db84f917.cjs → input-component.entry-ec8e8e7c.cjs} +1 -1
- package/dist/input-dropdown_2.entry-8cb11601.cjs +1 -0
- package/dist/{input-dropdown_2.entry-20f2031b.js → input-dropdown_2.entry-c37f392c.js} +6 -6
- package/dist/italic-icon.entry-0e85d0d9.js +16 -0
- package/dist/italic-icon.entry-6675558a.cjs +1 -0
- package/dist/{multi-select-dropdown_2.entry-81740b34.js → multi-select-dropdown_2.entry-3eecf18a.js} +22 -16
- package/dist/{multi-select-dropdown_2.entry-8e07b42b.cjs → multi-select-dropdown_2.entry-e37c501d.cjs} +1 -1
- package/dist/{nylas-booked-event-card_12.entry-e56c8e92.js → nylas-booked-event-card_12.entry-e7464ae7.js} +226 -224
- package/dist/nylas-booked-event-card_12.entry-fddc9ab8.cjs +1 -0
- package/dist/{nylas-event-calendar_3.entry-2504c7c0.js → nylas-event-calendar_3.entry-9abd46c2.js} +2360 -2238
- package/dist/nylas-event-calendar_3.entry-e6669bbf.cjs +11 -0
- package/dist/{nylas-form-card.entry-98903549.js → nylas-form-card.entry-a3186807.js} +3 -3
- package/dist/{nylas-form-card.entry-c406e3d3.cjs → nylas-form-card.entry-cbb00fba.cjs} +1 -1
- package/dist/nylas-scheduler-editor.entry-5c92901a.cjs +2 -0
- package/dist/{nylas-scheduler-editor.entry-670cc0b8.js → nylas-scheduler-editor.entry-7b188a38.js} +83 -50
- package/dist/nylas-scheduling.entry-970240f6.cjs +1 -0
- package/dist/nylas-scheduling.entry-e9929b03.js +968 -0
- package/dist/{person-icon.entry-bdaa899b.cjs → person-icon.entry-8998fdb8.cjs} +1 -1
- package/dist/{person-icon.entry-3bca6e51.js → person-icon.entry-d2856f08.js} +4 -4
- package/dist/{play-icon.entry-ecc86e85.cjs → play-icon.entry-99eb969b.cjs} +1 -1
- package/dist/play-icon.entry-f949a80f.js +16 -0
- package/dist/{radio-button-group.entry-9851076c.js → radio-button-group.entry-bc3b12fd.js} +2 -2
- package/dist/{radio-button-group.entry-6965ad34.cjs → radio-button-group.entry-d66edd04.cjs} +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +96 -104
- package/dist/{refresh-icon.entry-90d52ab3.cjs → refresh-icon.entry-99d1982d.cjs} +1 -1
- package/dist/{refresh-icon.entry-d776c4a7.js → refresh-icon.entry-d6df8b1c.js} +2 -2
- package/dist/{register-component-02a05665-2e992621.js → register-component-62d792d4-448b6a43.js} +1 -1
- package/dist/{register-component-02a05665-75652287.cjs → register-component-62d792d4-c6e7d129.cjs} +1 -1
- package/dist/{reply-all-icon.entry-24f7c0fe.js → reply-all-icon.entry-7ebf01a0.js} +2 -2
- package/dist/{reply-all-icon.entry-6e49eb03.cjs → reply-all-icon.entry-d7c44139.cjs} +1 -1
- package/dist/{reply-icon.entry-7fff25c9.cjs → reply-icon.entry-058c00e8.cjs} +1 -1
- package/dist/{reply-icon.entry-d5d26d65.js → reply-icon.entry-d1622d85.js} +5 -5
- package/dist/sent-icon.entry-6c604512.cjs +1 -0
- package/dist/sent-icon.entry-fe12bc2f.js +16 -0
- package/dist/spam-icon.entry-45e5292e.cjs +1 -0
- package/dist/spam-icon.entry-b97c7709.js +16 -0
- package/dist/{star-icon.entry-3c57a35c.cjs → star-icon.entry-4db13fdb.cjs} +1 -1
- package/dist/{star-icon.entry-c2e743a9.js → star-icon.entry-98b80645.js} +6 -6
- package/dist/{stop-icon.entry-0b9563d5.js → stop-icon.entry-0290fd30.js} +2 -2
- package/dist/{stop-icon.entry-cf4c4e63.cjs → stop-icon.entry-9d7b53fd.cjs} +1 -1
- package/dist/{textarea-component.entry-2eccc173.cjs → textarea-component.entry-9b474ab5.cjs} +1 -1
- package/dist/{textarea-component.entry-60e7a4d0.js → textarea-component.entry-a62c257b.js} +2 -2
- package/dist/{toggle-switch.entry-612744fd.cjs → toggle-switch.entry-5dbfcd48.cjs} +1 -1
- package/dist/{toggle-switch.entry-0a6b01e6.js → toggle-switch.entry-e423b793.js} +2 -2
- package/dist/{translate-icon.entry-ede5f77d.js → translate-icon.entry-60c55a2e.js} +4 -4
- package/dist/{translate-icon.entry-8adc4146.cjs → translate-icon.entry-f82fa6fc.cjs} +1 -1
- package/dist/trash-fill-icon.entry-095caae3.cjs +1 -0
- package/dist/trash-fill-icon.entry-825055fd.js +16 -0
- package/dist/{underline-icon.entry-d2fe2da6.cjs → underline-icon.entry-0807a43d.cjs} +1 -1
- package/dist/{underline-icon.entry-b2b43ba2.js → underline-icon.entry-40028bc6.js} +2 -2
- package/dist/{warning-icon.entry-0a5c7337.js → warning-icon.entry-24e37759.js} +2 -2
- package/dist/{warning-icon.entry-85822f4d.cjs → warning-icon.entry-fce7c14f.cjs} +1 -1
- package/package.json +2 -2
- package/dist/add-circle-icon_2.entry-e616ece6.cjs +0 -1
- package/dist/archive-icon.entry-41938a61.cjs +0 -1
- package/dist/archive-icon.entry-bd81d2d9.js +0 -16
- package/dist/arrow-icon.entry-4103be57.cjs +0 -1
- package/dist/calendar-agenda-fill-icon_36.entry-917e4a9d.cjs +0 -6
- package/dist/checkmark-icon_15.entry-08c8b107.cjs +0 -5
- package/dist/chevron-icon_3.entry-2f75c3c4.cjs +0 -1
- package/dist/constants-3d8016e3-fd6c3848.cjs +0 -1
- package/dist/document-refresh-icon.entry-f6dfe744.js +0 -16
- package/dist/google-logo-icon_6.entry-896a10a5.cjs +0 -2
- package/dist/inbox-icon.entry-24ec450f.cjs +0 -1
- package/dist/inbox-icon.entry-b71acde0.js +0 -16
- package/dist/index-efb6db79.cjs +0 -57
- package/dist/input-dropdown_2.entry-0c219620.cjs +0 -1
- package/dist/italic-icon.entry-a9324a8a.cjs +0 -1
- package/dist/italic-icon.entry-c42f8112.js +0 -16
- package/dist/notebook-store-b61693cd-5657061b.js +0 -14
- package/dist/notebook-store-b61693cd-6515d345.cjs +0 -5
- package/dist/nylas-booked-event-card_12.entry-7c7afae5.cjs +0 -1
- package/dist/nylas-call-summary.entry-4bf7284f.cjs +0 -1
- package/dist/nylas-call-summary.entry-ad6fb46a.js +0 -16
- package/dist/nylas-event-calendar_3.entry-f747f6a8.cjs +0 -6
- package/dist/nylas-if-state.entry-6b071705.cjs +0 -1
- package/dist/nylas-if-state.entry-7468854a.js +0 -95
- package/dist/nylas-key-points.entry-7af8da1a.cjs +0 -1
- package/dist/nylas-key-points.entry-c186445e.js +0 -29
- package/dist/nylas-login.entry-171bd025.cjs +0 -1
- package/dist/nylas-login.entry-d85c1473.js +0 -74
- package/dist/nylas-provider.entry-ab1f6886.js +0 -265
- package/dist/nylas-provider.entry-e4231b93.cjs +0 -1
- package/dist/nylas-scheduler-editor.entry-d522ca98.cjs +0 -2
- package/dist/nylas-scheduling.entry-9e81c6fc.js +0 -439
- package/dist/nylas-scheduling.entry-c52edb14.cjs +0 -1
- package/dist/nylas-transcript.entry-a1fa7e17.cjs +0 -6
- package/dist/nylas-transcript.entry-fb39b5af.js +0 -128
- package/dist/nylas-video-player.entry-25e8cd9a.js +0 -39
- package/dist/nylas-video-player.entry-89842545.cjs +0 -1
- package/dist/nylas-video-preview.entry-28a0bd60.cjs +0 -1
- package/dist/nylas-video-preview.entry-80171531.js +0 -16
- package/dist/play-icon.entry-d548464e.js +0 -16
- package/dist/scheduler-config-store-d6729d8d-50920e8c.js +0 -29
- package/dist/scheduler-config-store-d6729d8d-a0bdda83.cjs +0 -1
- package/dist/scheduler-store-fe9e85a4-1dcfddfa.js +0 -533
- package/dist/scheduler-store-fe9e85a4-baabf78a.cjs +0 -1
- package/dist/sent-icon.entry-42ce5bcb.cjs +0 -1
- package/dist/sent-icon.entry-858fe83e.js +0 -16
- package/dist/spam-icon.entry-0827144e.js +0 -16
- package/dist/spam-icon.entry-bf1a48b6.cjs +0 -1
- package/dist/trash-fill-icon.entry-b6456ec8.cjs +0 -1
- package/dist/trash-fill-icon.entry-d48f72c5.js +0 -16
package/dist/elements/index.d.ts
CHANGED
|
@@ -56,7 +56,6 @@ export declare const NylasBookingForm: import("react").ForwardRefExoticComponent
|
|
|
56
56
|
export declare const NylasBookingFormConfig: import("react").ForwardRefExoticComponent<JSX.NylasBookingFormConfig & Omit<import("react").HTMLAttributes<HTMLNylasBookingFormConfigElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasBookingFormConfigElement>>;
|
|
57
57
|
export declare const NylasBufferTime: import("react").ForwardRefExoticComponent<JSX.NylasBufferTime & Omit<import("react").HTMLAttributes<HTMLNylasBufferTimeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasBufferTimeElement>>;
|
|
58
58
|
export declare const NylasCalendarPicker: import("react").ForwardRefExoticComponent<JSX.NylasCalendarPicker & Omit<import("react").HTMLAttributes<HTMLNylasCalendarPickerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasCalendarPickerElement>>;
|
|
59
|
-
export declare const NylasCallSummary: import("react").ForwardRefExoticComponent<JSX.NylasCallSummary & Omit<import("react").HTMLAttributes<HTMLNylasCallSummaryElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasCallSummaryElement>>;
|
|
60
59
|
export declare const NylasCancelBookingForm: import("react").ForwardRefExoticComponent<JSX.NylasCancelBookingForm & Omit<import("react").HTMLAttributes<HTMLNylasCancelBookingFormElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasCancelBookingFormElement>>;
|
|
61
60
|
export declare const NylasCancellationPolicy: import("react").ForwardRefExoticComponent<JSX.NylasCancellationPolicy & Omit<import("react").HTMLAttributes<HTMLNylasCancellationPolicyElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasCancellationPolicyElement>>;
|
|
62
61
|
export declare const NylasCancelledEventCard: import("react").ForwardRefExoticComponent<JSX.NylasCancelledEventCard & Omit<import("react").HTMLAttributes<HTMLNylasCancelledEventCardElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasCancelledEventCardElement>>;
|
|
@@ -82,12 +81,9 @@ export declare const NylasEventTimeslot: import("react").ForwardRefExoticCompone
|
|
|
82
81
|
export declare const NylasEventTitle: import("react").ForwardRefExoticComponent<JSX.NylasEventTitle & Omit<import("react").HTMLAttributes<HTMLNylasEventTitleElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasEventTitleElement>>;
|
|
83
82
|
export declare const NylasFeedbackForm: import("react").ForwardRefExoticComponent<JSX.NylasFeedbackForm & Omit<import("react").HTMLAttributes<HTMLNylasFeedbackFormElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasFeedbackFormElement>>;
|
|
84
83
|
export declare const NylasFormCard: import("react").ForwardRefExoticComponent<JSX.NylasFormCard & Omit<import("react").HTMLAttributes<HTMLNylasFormCardElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasFormCardElement>>;
|
|
85
|
-
export declare const NylasIfState: import("react").ForwardRefExoticComponent<JSX.NylasIfState & Omit<import("react").HTMLAttributes<HTMLNylasIfStateElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasIfStateElement>>;
|
|
86
|
-
export declare const NylasKeyPoints: import("react").ForwardRefExoticComponent<JSX.NylasKeyPoints & Omit<import("react").HTMLAttributes<HTMLNylasKeyPointsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasKeyPointsElement>>;
|
|
87
84
|
export declare const NylasLimitFutureBookings: import("react").ForwardRefExoticComponent<JSX.NylasLimitFutureBookings & Omit<import("react").HTMLAttributes<HTMLNylasLimitFutureBookingsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasLimitFutureBookingsElement>>;
|
|
88
85
|
export declare const NylasListConfigurations: import("react").ForwardRefExoticComponent<JSX.NylasListConfigurations & Omit<import("react").HTMLAttributes<HTMLNylasListConfigurationsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasListConfigurationsElement>>;
|
|
89
86
|
export declare const NylasLocaleSwitch: import("react").ForwardRefExoticComponent<JSX.NylasLocaleSwitch & Omit<import("react").HTMLAttributes<HTMLNylasLocaleSwitchElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasLocaleSwitchElement>>;
|
|
90
|
-
export declare const NylasLogin: import("react").ForwardRefExoticComponent<JSX.NylasLogin & Omit<import("react").HTMLAttributes<HTMLNylasLoginElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasLoginElement>>;
|
|
91
87
|
export declare const NylasLogo: import("react").ForwardRefExoticComponent<JSX.NylasLogo & Omit<import("react").HTMLAttributes<HTMLNylasLogoElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasLogoElement>>;
|
|
92
88
|
export declare const NylasMinBookingNotice: import("react").ForwardRefExoticComponent<JSX.NylasMinBookingNotice & Omit<import("react").HTMLAttributes<HTMLNylasMinBookingNoticeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasMinBookingNoticeElement>>;
|
|
93
89
|
export declare const NylasMinCancellationNotice: import("react").ForwardRefExoticComponent<JSX.NylasMinCancellationNotice & Omit<import("react").HTMLAttributes<HTMLNylasMinCancellationNoticeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasMinCancellationNoticeElement>>;
|
|
@@ -97,7 +93,6 @@ export declare const NylasPageName: import("react").ForwardRefExoticComponent<JS
|
|
|
97
93
|
export declare const NylasPageStyling: import("react").ForwardRefExoticComponent<JSX.NylasPageStyling & Omit<import("react").HTMLAttributes<HTMLNylasPageStylingElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasPageStylingElement>>;
|
|
98
94
|
export declare const NylasParticipantBookingCalendars: import("react").ForwardRefExoticComponent<JSX.NylasParticipantBookingCalendars & Omit<import("react").HTMLAttributes<HTMLNylasParticipantBookingCalendarsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasParticipantBookingCalendarsElement>>;
|
|
99
95
|
export declare const NylasParticipantsCustomAvailability: import("react").ForwardRefExoticComponent<JSX.NylasParticipantsCustomAvailability & Omit<import("react").HTMLAttributes<HTMLNylasParticipantsCustomAvailabilityElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasParticipantsCustomAvailabilityElement>>;
|
|
100
|
-
export declare const NylasProvider: import("react").ForwardRefExoticComponent<JSX.NylasProvider & Omit<import("react").HTMLAttributes<HTMLNylasProviderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasProviderElement>>;
|
|
101
96
|
export declare const NylasReminderEmails: import("react").ForwardRefExoticComponent<JSX.NylasReminderEmails & Omit<import("react").HTMLAttributes<HTMLNylasReminderEmailsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasReminderEmailsElement>>;
|
|
102
97
|
export declare const NylasReminderTime: import("react").ForwardRefExoticComponent<JSX.NylasReminderTime & Omit<import("react").HTMLAttributes<HTMLNylasReminderTimeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasReminderTimeElement>>;
|
|
103
98
|
export declare const NylasSchedulerEditor: import("react").ForwardRefExoticComponent<JSX.NylasSchedulerEditor & Omit<import("react").HTMLAttributes<HTMLNylasSchedulerEditorElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasSchedulerEditorElement>>;
|
|
@@ -108,9 +103,6 @@ export declare const NylasSelectedEventCard: import("react").ForwardRefExoticCom
|
|
|
108
103
|
export declare const NylasTimeWindowPicker: import("react").ForwardRefExoticComponent<JSX.NylasTimeWindowPicker & Omit<import("react").HTMLAttributes<HTMLNylasTimeWindowPickerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasTimeWindowPickerElement>>;
|
|
109
104
|
export declare const NylasTimeslotInterval: import("react").ForwardRefExoticComponent<JSX.NylasTimeslotInterval & Omit<import("react").HTMLAttributes<HTMLNylasTimeslotIntervalElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasTimeslotIntervalElement>>;
|
|
110
105
|
export declare const NylasTimeslotPicker: import("react").ForwardRefExoticComponent<JSX.NylasTimeslotPicker & Omit<import("react").HTMLAttributes<HTMLNylasTimeslotPickerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasTimeslotPickerElement>>;
|
|
111
|
-
export declare const NylasTranscript: import("react").ForwardRefExoticComponent<JSX.NylasTranscript & Omit<import("react").HTMLAttributes<HTMLNylasTranscriptElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasTranscriptElement>>;
|
|
112
|
-
export declare const NylasVideoPlayer: import("react").ForwardRefExoticComponent<JSX.NylasVideoPlayer & Omit<import("react").HTMLAttributes<HTMLNylasVideoPlayerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasVideoPlayerElement>>;
|
|
113
|
-
export declare const NylasVideoPreview: import("react").ForwardRefExoticComponent<JSX.NylasVideoPreview & Omit<import("react").HTMLAttributes<HTMLNylasVideoPreviewElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasVideoPreviewElement>>;
|
|
114
106
|
export declare const PaintbrushFillIcon: import("react").ForwardRefExoticComponent<JSX.PaintbrushFillIcon & Omit<import("react").HTMLAttributes<HTMLPaintbrushFillIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPaintbrushFillIconElement>>;
|
|
115
107
|
export declare const PaintbrushIcon: import("react").ForwardRefExoticComponent<JSX.PaintbrushIcon & Omit<import("react").HTMLAttributes<HTMLPaintbrushIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPaintbrushIconElement>>;
|
|
116
108
|
export declare const PeopleIcon: import("react").ForwardRefExoticComponent<JSX.PeopleIcon & Omit<import("react").HTMLAttributes<HTMLPeopleIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPeopleIconElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const Nt=require("./index-
|
|
1
|
+
"use strict";const Nt=require("./index-1e75512f.cjs"),Ar=Object.prototype.toString;function hn(e){switch(Ar.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return xe(e,Error)}}function Xe(e,t){return Ar.call(e)===`[object ${t}]`}function Ur(e){return Xe(e,"ErrorEvent")}function Pn(e){return Xe(e,"DOMError")}function Ro(e){return Xe(e,"DOMException")}function fe(e){return Xe(e,"String")}function mn(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function gn(e){return e===null||mn(e)||typeof e!="object"&&typeof e!="function"}function He(e){return Xe(e,"Object")}function Mt(e){return typeof Event<"u"&&xe(e,Event)}function Lo(e){return typeof Element<"u"&&xe(e,Element)}function Mo(e){return Xe(e,"RegExp")}function Ot(e){return!!(e&&e.then&&typeof e.then=="function")}function Oo(e){return He(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function xe(e,t){try{return e instanceof t}catch{return!1}}function Hr(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function Pe(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function An(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const o=e[r];try{Hr(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function $o(e,t,n=!1){return fe(e)?Mo(t)?t.test(e):fe(t)?n?e===t:e.includes(t):!1:!1}function $t(e,t=[],n=!1){return t.some(r=>$o(e,r,n))}function Fo(e,t,n=250,r,o,i,s){if(!i.exception||!i.exception.values||!s||!xe(s.originalException,Error))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=Po(zt(e,t,o,s.originalException,r,i.exception.values,a,0),n))}function zt(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(xe(r[o],Error)){Un(s,a);const l=e(t,r[o]),d=c.length;Hn(l,o,d,a),c=zt(e,t,n,r[o],o,[l,...c],l,d)}return Array.isArray(r.errors)&&r.errors.forEach((l,d)=>{if(xe(l,Error)){Un(s,a);const u=e(t,l),_=c.length;Hn(u,`errors[${d}]`,_,a),c=zt(e,t,n,l,o,[u,...c],u,_)}}),c}function Un(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function Hn(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Po(e,t){return e.map(n=>(n.value&&(n.value=Pe(n.value,t)),n))}const Se="8.28.0",w=globalThis;function yn(e,t,n){const r=n||w,o=r.__SENTRY__=r.__SENTRY__||{},i=o[Se]=o[Se]||{};return i[e]||(i[e]=t())}const bn=w,Ao=80;function jr(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,s=0;const a=" > ",c=a.length;let l;const d=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||Ao;for(;n&&i++<r&&(l=Uo(n,d),!(l==="html"||i>1&&s+o.length*c+l.length>=u));)o.push(l),s+=l.length,n=n.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function Uo(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(bn.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(o&&o.length)o.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const s=n.className;if(s&&fe(s)){const a=s.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const i=["aria-label","type","name","title","alt"];for(const s of i){const a=n.getAttribute(s);a&&r.push(`[${s}="${a}"]`)}return r.join("")}function Br(){try{return bn.document.location.href}catch{return""}}function Ho(e){if(!bn.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}const ot=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,jo="Sentry Logger ",Vt=["debug","info","warn","error","log","assert","trace"],It={};function it(e){if(!("console"in w))return e();const t=w.console,n={},r=Object.keys(It);r.forEach(o=>{const i=It[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function Bo(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return ot?Vt.forEach(n=>{t[n]=(...r)=>{e&&it(()=>{w.console[n](`${jo}[${n}]:`,...r)})}}):Vt.forEach(n=>{t[n]=()=>{}}),t}const g=Bo(),Yo=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Go(e){return e==="http"||e==="https"}function Ft(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function qo(e){const t=Yo.exec(e);if(!t){it(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",i="",s="",a=""]=t.slice(1);let c="",l=a;const d=l.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),l=d.pop()),l){const u=l.match(/^\d+/);u&&(l=u[0])}return Yr({host:i,pass:o,path:c,projectId:l,port:s,protocol:n,publicKey:r})}function Yr(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Xo(e){if(!ot)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(g.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?Go(r)?t&&isNaN(parseInt(t,10))?(g.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(g.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(g.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Wo(e){const t=typeof e=="string"?qo(e):Yr(e);if(!(!t||!Xo(t)))return t}class ae extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function W(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);typeof o=="function"&&Gr(o,r),e[t]=o}function Ce(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{ot&&g.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Gr(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Ce(e,"__sentry_original__",t)}catch{}}function En(e){return e.__sentry_original__}function zo(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function qr(e){if(hn(e))return{message:e.message,name:e.name,stack:e.stack,...Bn(e)};if(Mt(e)){const t={type:e.type,target:jn(e.target),currentTarget:jn(e.currentTarget),...Bn(e)};return typeof CustomEvent<"u"&&xe(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function jn(e){try{return Lo(e)?jr(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Bn(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Vo(e,t=40){const n=Object.keys(qr(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Pe(r,t);for(let o=n.length;o>0;o--){const i=n.slice(0,o).join(", ");if(!(i.length>t))return o===n.length?i:Pe(i,t)}return""}function z(e){return Kt(e,new Map)}function Kt(e,t){if(Ko(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const o of Object.keys(e))typeof e[o]<"u"&&(r[o]=Kt(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(o=>{r.push(Kt(o,t))}),r}return e}function Ko(e){if(!He(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Xr=50,Ne="?",Yn=/\(error: (.*)\)/,Gn=/captureMessage|captureException/;function Wr(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const i=[],s=n.split(`
|
|
2
2
|
`);for(let a=r;a<s.length;a++){const c=s[a];if(c.length>1024)continue;const l=Yn.test(c)?c.replace(Yn,"$1"):c;if(!l.match(/\S*Error: /)){for(const d of t){const u=d(l);if(u){i.push(u);break}}if(i.length>=Xr+o)break}}return Zo(i.slice(o))}}function Jo(e){return Array.isArray(e)?Wr(...e):e}function Zo(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(dt(t).function||"")&&t.pop(),t.reverse(),Gn.test(dt(t).function||"")&&(t.pop(),Gn.test(dt(t).function||"")&&t.pop()),t.slice(0,Xr).map(n=>({...n,filename:n.filename||dt(t).filename,function:n.function||Ne}))}function dt(e){return e[e.length-1]||{}}const jt="<anonymous>";function ve(e){try{return!e||typeof e!="function"?jt:e.name||jt}catch{return jt}}function qn(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const Et={},Xn={};function De(e,t){Et[e]=Et[e]||[],Et[e].push(t)}function Re(e,t){Xn[e]||(t(),Xn[e]=!0)}function oe(e,t){const n=e&&Et[e];if(n)for(const r of n)try{r(t)}catch(o){ot&&g.error(`Error while triggering instrumentation handler.
|
|
3
3
|
Type: ${e}
|
|
4
4
|
Name: ${ve(r)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-1e75512f.cjs");require("react");require("react/jsx-runtime");require("react-dom");const i=".sc-folder-icon-h{display:flex}",o=i,t=class{constructor(r){e.registerInstance(this,r),this.width="15",this.height="15"}render(){return e.h("svg",{key:"ce969ff284482ca25508e2740184443a7a0dfa5c",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"f6f64b1ada3ad9d1bd58db00d9e5b80a3a022e3b",d:"M3 8.2C3 7.07989 3 6.51984 3.21799 6.09202C3.40973 5.71569 3.71569 5.40973 4.09202 5.21799C4.51984 5 5.0799 5 6.2 5H9.67452C10.1637 5 10.4083 5 10.6385 5.05526C10.8425 5.10425 11.0376 5.18506 11.2166 5.29472C11.4184 5.4184 11.5914 5.59135 11.9373 5.93726L12.0627 6.06274C12.4086 6.40865 12.5816 6.5816 12.7834 6.70528C12.9624 6.81494 13.1575 6.89575 13.3615 6.94474C13.5917 7 13.8363 7 14.3255 7H17.8C18.9201 7 19.4802 7 19.908 7.21799C20.2843 7.40973 20.5903 7.71569 20.782 8.09202C21 8.51984 21 9.0799 21 10.2V15.8C21 16.9201 21 17.4802 20.782 17.908C20.5903 18.2843 20.2843 18.5903 19.908 18.782C19.4802 19 18.9201 19 17.8 19H6.2C5.07989 19 4.51984 19 4.09202 18.782C3.71569 18.5903 3.40973 18.2843 3.21799 17.908C3 17.4802 3 16.9201 3 15.8V8.2Z",stroke:"auto","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}};t.style=o;exports.folder_icon=t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e, h as t } from "./index-
|
|
1
|
+
import { r as e, h as t } from "./index-e8380973.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react-dom";
|
|
@@ -7,7 +7,7 @@ const s = ".sc-folder-icon-h{display:flex}", i = s, r = class {
|
|
|
7
7
|
e(this, o), this.width = "15", this.height = "15";
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return t("svg", { key: "
|
|
10
|
+
return t("svg", { key: "ce969ff284482ca25508e2740184443a7a0dfa5c", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "f6f64b1ada3ad9d1bd58db00d9e5b80a3a022e3b", d: "M3 8.2C3 7.07989 3 6.51984 3.21799 6.09202C3.40973 5.71569 3.71569 5.40973 4.09202 5.21799C4.51984 5 5.0799 5 6.2 5H9.67452C10.1637 5 10.4083 5 10.6385 5.05526C10.8425 5.10425 11.0376 5.18506 11.2166 5.29472C11.4184 5.4184 11.5914 5.59135 11.9373 5.93726L12.0627 6.06274C12.4086 6.40865 12.5816 6.5816 12.7834 6.70528C12.9624 6.81494 13.1575 6.89575 13.3615 6.94474C13.5917 7 13.8363 7 14.3255 7H17.8C18.9201 7 19.4802 7 19.908 7.21799C20.2843 7.40973 20.5903 7.71569 20.782 8.09202C21 8.51984 21 9.0799 21 10.2V15.8C21 16.9201 21 17.4802 20.782 17.908C20.5903 18.2843 20.2843 18.5903 19.908 18.782C19.4802 19 18.9201 19 17.8 19H6.2C5.07989 19 4.51984 19 4.09202 18.782C3.71569 18.5903 3.40973 18.2843 3.21799 17.908C3 17.4802 3 16.9201 3 15.8V8.2Z", stroke: "auto", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }));
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
r.style = i;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { r as o, h as t } from "./index-
|
|
1
|
+
import { r as o, h as t } from "./index-e8380973.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
const
|
|
5
|
+
const e = ".sc-forward-icon-h{display:flex}", i = e, s = class {
|
|
6
6
|
constructor(r) {
|
|
7
7
|
o(this, r), this.width = "15", this.height = "15";
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return t("svg", { key: "
|
|
10
|
+
return t("svg", { key: "f093412278453f9ea9dc6cf345d6171c134a5398", fill: "auto", width: this.width, height: this.height, viewBox: "0 0 1920 1920", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "f90de705f64444d7a2ad7fe7835a3e9af196a902", d: "m1246.246 64-90.496 90.496 477.952 477.952h-590.848C467.878 632.448.038 1100.416.038 1675.392v109.056h128v-109.056c0-504.576 410.368-914.944 914.816-914.944h590.848l-477.952 478.08 90.496 90.496 632.448-632.576L1246.246 64Z", "fill-rule": "evenodd" }));
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
s.style = i;
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
s as forward_icon
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-1e75512f.cjs");require("react");require("react/jsx-runtime");require("react-dom");const i=".sc-forward-icon-h{display:flex}",s=i,t=class{constructor(r){e.registerInstance(this,r),this.width="15",this.height="15"}render(){return e.h("svg",{key:"f093412278453f9ea9dc6cf345d6171c134a5398",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"f90de705f64444d7a2ad7fe7835a3e9af196a902",d:"m1246.246 64-90.496 90.496 477.952 477.952h-590.848C467.878 632.448.038 1100.416.038 1675.392v109.056h128v-109.056c0-504.576 410.368-914.944 914.816-914.944h590.848l-477.952 478.08 90.496 90.496 632.448-632.576L1246.246 64Z","fill-rule":"evenodd"}))}};t.style=s;exports.forward_icon=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-efb6db79.cjs"),o=require("./constants-3d8016e3-fd6c3848.cjs"),m=require("./customParseFormat-a4d9ea69-763f219e.cjs");require("react");require("react/jsx-runtime");require("react-dom");const h=".sc-globe-icon-h{display:flex}",u=h,c=class{constructor(t){s.registerInstance(this,t),this.width="16",this.height="16"}render(){return s.h("svg",{key:"e49a7c6af179ae7509e706ac54dab240917fa5ad",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 16 16",fill:"none"},s.h("path",{key:"20930ecebcee8b313e00f572da95d60cd6437945",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8 3C8.37372 3 8.87543 3.35608 9.31258 4.31781C9.4073 4.52619 9.49448 4.75446 9.57265 5H6.42735C6.50552 4.75446 6.5927 4.52619 6.68742 4.31781C7.12457 3.35608 7.62628 3 8 3ZM5.77705 3.90401C5.62614 4.23601 5.49428 4.6038 5.38411 5H3.99963C4.52341 4.30269 5.22525 3.74677 6.03766 3.39978C5.94287 3.56117 5.85596 3.7304 5.77705 3.90401ZM5.16299 6C5.05694 6.6275 5 7.30146 5 8C5 8.69854 5.05694 9.3725 5.16299 10H3.41604C3.14845 9.38754 3 8.7111 3 8C3 7.2889 3.14845 6.61246 3.41604 6H5.16299ZM5.38411 11C5.49428 11.3962 5.62614 11.764 5.77705 12.096C5.85596 12.2696 5.94287 12.4388 6.03766 12.6002C5.22525 12.2532 4.52341 11.6973 3.99963 11H5.38411ZM6.42735 11H9.57265C9.49448 11.2455 9.4073 11.4738 9.31258 11.6822C8.87543 12.6439 8.37372 13 8 13C7.62628 13 7.12457 12.6439 6.68742 11.6822C6.5927 11.4738 6.50552 11.2455 6.42735 11ZM9.82134 10H6.17866C6.06438 9.3892 6 8.71396 6 8C6 7.28604 6.06438 6.6108 6.17866 6H9.82134C9.93562 6.6108 10 7.28604 10 8C10 8.71396 9.93562 9.3892 9.82134 10ZM10.6159 11H12.0004C11.4766 11.6973 10.7747 12.2532 9.96234 12.6002C10.0571 12.4388 10.144 12.2696 10.2229 12.096C10.3739 11.764 10.5057 11.3962 10.6159 11ZM12.584 10H10.837C10.9431 9.3725 11 8.69854 11 8C11 7.30146 10.9431 6.6275 10.837 6H12.584C12.8516 6.61246 13 7.2889 13 8C13 8.7111 12.8516 9.38754 12.584 10ZM9.96234 3.39978C10.7747 3.74677 11.4766 4.30269 12.0004 5H10.6159C10.5057 4.6038 10.3739 4.23601 10.2229 3.90401C10.144 3.7304 10.0571 3.56117 9.96234 3.39978Z",fill:"currentColor"}))}};c.style=u;const f=':host{display:block;position:relative;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.time-picker{display:inline-block;width:150px;font-family:var(--nylas-font-family);position:relative}@media screen and (max-width: 768px){.time-picker{width:auto}}.time-picker input{width:150px;height:48px;text-align:center;font-size:16px;font-family:inherit;cursor:pointer;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.time-picker input{width:88px}}@media screen and (max-width: 504px){.time-picker input{width:68px;font-size:15px}}.time-picker input.focus{background:transparent}.time-picker input:hover,.time-picker input:active{border:1px solid var(--nylas-primary)}.time-picker input:active{outline:2px solid var(--nylas-primary)}.time-picker input span.open{transform:rotate(90deg)}.time-picker input span.closed{transform:rotate(270deg)}.time-picker input.error{border:1px solid var(--nylas-error)}.time-picker p.error{color:var(--nylas-error);font-size:0.875rem;margin:0}.times{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;border:1px solid #ddd;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}.times ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.times ul li{padding:16px, 12px, 16px, 12px;color:var(--nylas-base-900);padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:center;cursor:pointer}.times ul li.focused{background-color:var(--nylas-base-100)}.times ul li:hover,.times ul li:focus{background-color:var(--nylas-base-100)}.times ul li label{display:flex;align-items:center;gap:0.5rem}.times ul li label input{margin:0}',p=f;s.dayjs.extend(m.customParseFormat);const d=class{constructor(t){s.registerInstance(this,t),this.timeChange=s.createEvent(this,"timeChange",7),this.timeWindowFormError=s.createEvent(this,"timeWindowFormError",7),this.time=void 0,this.minimumStartTime=null,this.placeholder="hh:mmam/pm",this.name=void 0,this.hasError=!1,this.language=o.LANGUAGE_CODE.en,this.err="",this.showTimes=!1,this.ariaActivedescendant="",this.times=this.generateTimes(),this.shouldAutoScroll=!1}handleOutsideClick(t){!t.composedPath().includes(this.el)&&this.showTimes&&(this.showTimes=!1)}minimumStartTimeChangedHandler(){if(this.minimumStartTime){let t=s.dayjs().hour(parseInt(this.minimumStartTime)).minute(parseInt(this.minimumStartTime.slice(-4,-2)));this.minimumStartTime.slice(-2).toLowerCase()==="pm"&&parseInt(this.minimumStartTime)!==12?t=t.add(12,"hour"):this.minimumStartTime.slice(-2).toLowerCase()==="am"&&parseInt(this.minimumStartTime)===12&&(t=t.subtract(12,"hour")),this.times=this.generateTimes();const e=s.dayjs(this.times[0].value,"hh:mma");s.dayjs(this.time,"hh:mma").isBefore(e)&&(this.err="Invalid",this.timeWindowFormError.emit({key:this.el.id,message:"Invalid"}))}}componentDidRender(){if(this.showTimes&&this.shouldAutoScroll){const t=s.autocompleteTimeFormat(this.time),e=this.times.findIndex(i=>i.value===t);e>-1&&(this.shouldAutoScroll=!1,this.scrollToViewWithinParent(e));return}}handleTimeChange(t,e){const i=e.split(":");i[0]==="00"&&i[1].slice(-2)=="pm"&&(this.err="Invalid",this.timeWindowFormError.emit({key:this.el.id,message:"Invalid"})),s.validateTimeFormatInput(e)?(this.err="",this.timeWindowFormError.emit({key:this.el.id,message:""})):(this.err="Invalid",this.timeWindowFormError.emit({key:this.el.id,message:"Invalid"})),!this.err&&this.timeChange.emit({key:this.el.id,value:e})}handleTimeAutocomplete(t){var a;const e=(a=t.target)==null?void 0:a.value,i=this.language===o.LANGUAGE_CODE.de||this.language===o.LANGUAGE_CODE.fr?s.convertTo12HourFormat(e):e;if(!s.validateTimeFormatInput(i)){this.err="Invalid",this.timeWindowFormError.emit({key:this.el.id,message:"Invalid"});return}if(i===""){const r=s.roundToNearest15Minutes().format("hh:mma");this.timeChange.emit({key:this.el.id,value:r});return}if(!s.validateExactTimeFormat(i)){const r=s.autocompleteTimeFormat(i);this.timeChange.emit({key:this.el.id,value:r});return}this.timeChange.emit({key:this.el.id,value:i})}handleOnInput(t){var i;const e=(i=t.target)==null?void 0:i.value;if(s.validateTimeFormatInput(e)){if(e===""){const a=s.roundToNearest15Minutes().format("hh:mma"),r=this.times.findIndex(n=>n.value===a);r>-1&&this.scrollToViewWithinParent(r);return}if(!s.validateExactTimeFormat(e)){const a=s.autocompleteTimeFormat(e),r=this.times.findIndex(n=>n.value===a);r>-1&&this.scrollToViewWithinParent(r);return}}}generateTimes(){const t=[];let e=s.dayjs().set("hour",0).set("minute",0).set("second",0);this.minimumStartTime&&(e=s.dayjs(this.minimumStartTime,"hh:mma"));const i=e.endOf("day").diff(e,"minutes"),a=Math.round(i/15);for(let r=0;r<a+1;r++){const n=e.add(r*15,"minute");if(r==a&&n.format("hh:mma").includes("am"))break;t.push({id:r,value:n.format("hh:mma")})}return t}handleComboboxKeyDown(t){if(t.key==="ArrowDown"){if(t.preventDefault(),!this.showTimes){this.showTimes=!0,this.shouldAutoScroll=!0;return}if(this.ariaActivedescendant==="")this.ariaActivedescendant=this.times[0].id.toString(),this.focusOption(0);else{const e=this.times.findIndex(a=>a.id.toString()===this.ariaActivedescendant),i=e+1<this.times.length?e+1:0;this.ariaActivedescendant=this.times[i].id.toString(),this.focusOption(i)}}else if(t.key==="ArrowUp")if(t.preventDefault(),this.ariaActivedescendant==="")this.ariaActivedescendant=this.times[this.times.length-1].id.toString(),this.focusOption(this.times.length-1);else{const e=this.times.findIndex(a=>a.id.toString()===this.ariaActivedescendant),i=e-1>=0?e-1:this.times.length-1;this.ariaActivedescendant=this.times[i].id.toString(),this.focusOption(i)}else t.key==="Escape"&&(this.showTimes=!1,this.timeInput.focus())}handleListboxKeydown(t){const e=this.times,i=e.findIndex(a=>a.id.toString()===this.ariaActivedescendant);if(t.key==="ArrowDown"||t.key==="Tab"&&!t.shiftKey){t.preventDefault();const a=i+1<e.length?i+1:0;this.ariaActivedescendant=e[a].id.toString(),this.focusOption(a)}else if(t.key==="ArrowUp"||t.key==="Tab"&&t.shiftKey){t.preventDefault();const a=i-1>=0?i-1:e.length-1;this.ariaActivedescendant=e[a].id.toString(),this.focusOption(a)}else if(t.key==="Enter"){if(t.preventDefault(),this.ariaActivedescendant){const a=e[i];this.handleTimeChange(t,a.value),this.showTimes=!1,this.ariaActivedescendant="",this.timeInput.focus()}}else t.key==="Escape"&&(this.showTimes=!1,this.timeInput.focus())}scrollToViewWithinParent(t){var l;const e=this.times[t],i=(l=this.el.shadowRoot)==null?void 0:l.getElementById(e.id.toString()),a=this.timeMenu;this.ariaActivedescendant=e.id.toString();const r=i.getBoundingClientRect(),n=a.getBoundingClientRect();r.top<n.top?a.scrollTop-=n.top-r.top:r.bottom>n.bottom&&(a.scrollTop+=r.bottom-n.bottom),r.left<n.left?a.scrollLeft-=n.left-r.left:r.right>n.right&&(a.scrollLeft+=r.right-n.right)}focusOption(t){var r;const e=this.times[t];if(!e)return;const i=e.id.toString(),a=(r=this.el.shadowRoot)==null?void 0:r.getElementById(i);a&&(a.focus(),a.scrollIntoView({behavior:"smooth",block:"nearest"}))}render(){const t=this.language!==o.LANGUAGE_CODE.en;return s.h(s.Host,{key:"fe213a09bb8bd924e66b19ae885a4ecea11e7919"},s.h("div",{key:"75068ee86601003889d1d5047ca72f94cfce4354",class:"time-picker",part:"time-picker"},s.h("input",{key:"204175ad394c1a67f5464c04c20ba07dcde5863a",type:"text",name:this.name,id:this.name,part:"time-input",class:{"time-input":!0,error:!!this.err||this.hasError},ref:e=>this.timeInput=e,value:t?s.convertTo24HourFormat(this.time):this.time,onClick:()=>{this.showTimes=!this.showTimes,this.shouldAutoScroll=!0},"aria-haspopup":"listbox","aria-label":this.name,"aria-expanded":this.showTimes?"true":"false",placeholder:this.placeholder,onKeyDown:e=>this.handleComboboxKeyDown(e),onInput:e=>this.handleOnInput(e),onBlur:e=>this.handleTimeAutocomplete(e)}),this.err&&s.h("div",{class:"invalid-time-icon"}),this.showTimes&&s.h("div",{class:"times",part:"times",ref:e=>this.timeMenu=e},s.h("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-activedescendant":this.ariaActivedescendant,onKeyDown:e=>this.handleListboxKeydown(e)},this.times.map(e=>s.h("li",{tabindex:"0",key:e.id,id:e.id.toString(),class:{focused:this.ariaActivedescendant===e.id.toString()},onClick:i=>{this.handleTimeChange(i,e.value),this.showTimes=!1,this.timeInput.focus()},role:"option"},`${t?s.convertTo24HourFormat(e.value):e.value}`)))),!this.showTimes&&this.err&&s.h("p",{class:"error",id:"email-error"},this.err)))}get el(){return s.getElement(this)}static get watchers(){return{minimumStartTime:["minimumStartTimeChangedHandler"]}}};d.style=p;exports.globe_icon=c;exports.nylas_time_window_picker=d;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-1e75512f.cjs"),o=require("./constants-f51538ef-cd2a67c4.cjs"),m=require("./customParseFormat-d1de5ed0-65a0bba3.cjs");require("react");require("react/jsx-runtime");require("react-dom");const h=".sc-globe-icon-h{display:flex}",u=h,c=class{constructor(t){s.registerInstance(this,t),this.width="16",this.height="16"}render(){return s.h("svg",{key:"339d4881ddf352d7950647b1458a861deab9b496",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 16 16",fill:"none"},s.h("path",{key:"fb6ab15c0dacfec98834a4980380a40a4fa9d636",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8 3C8.37372 3 8.87543 3.35608 9.31258 4.31781C9.4073 4.52619 9.49448 4.75446 9.57265 5H6.42735C6.50552 4.75446 6.5927 4.52619 6.68742 4.31781C7.12457 3.35608 7.62628 3 8 3ZM5.77705 3.90401C5.62614 4.23601 5.49428 4.6038 5.38411 5H3.99963C4.52341 4.30269 5.22525 3.74677 6.03766 3.39978C5.94287 3.56117 5.85596 3.7304 5.77705 3.90401ZM5.16299 6C5.05694 6.6275 5 7.30146 5 8C5 8.69854 5.05694 9.3725 5.16299 10H3.41604C3.14845 9.38754 3 8.7111 3 8C3 7.2889 3.14845 6.61246 3.41604 6H5.16299ZM5.38411 11C5.49428 11.3962 5.62614 11.764 5.77705 12.096C5.85596 12.2696 5.94287 12.4388 6.03766 12.6002C5.22525 12.2532 4.52341 11.6973 3.99963 11H5.38411ZM6.42735 11H9.57265C9.49448 11.2455 9.4073 11.4738 9.31258 11.6822C8.87543 12.6439 8.37372 13 8 13C7.62628 13 7.12457 12.6439 6.68742 11.6822C6.5927 11.4738 6.50552 11.2455 6.42735 11ZM9.82134 10H6.17866C6.06438 9.3892 6 8.71396 6 8C6 7.28604 6.06438 6.6108 6.17866 6H9.82134C9.93562 6.6108 10 7.28604 10 8C10 8.71396 9.93562 9.3892 9.82134 10ZM10.6159 11H12.0004C11.4766 11.6973 10.7747 12.2532 9.96234 12.6002C10.0571 12.4388 10.144 12.2696 10.2229 12.096C10.3739 11.764 10.5057 11.3962 10.6159 11ZM12.584 10H10.837C10.9431 9.3725 11 8.69854 11 8C11 7.30146 10.9431 6.6275 10.837 6H12.584C12.8516 6.61246 13 7.2889 13 8C13 8.7111 12.8516 9.38754 12.584 10ZM9.96234 3.39978C10.7747 3.74677 11.4766 4.30269 12.0004 5H10.6159C10.5057 4.6038 10.3739 4.23601 10.2229 3.90401C10.144 3.7304 10.0571 3.56117 9.96234 3.39978Z",fill:"currentColor"}))}};c.style=u;const f=':host{display:block;position:relative;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.time-picker{display:inline-block;width:150px;font-family:var(--nylas-font-family);position:relative}@media screen and (max-width: 768px){.time-picker{width:auto}}.time-picker input{width:150px;height:48px;text-align:center;font-size:16px;font-family:inherit;cursor:pointer;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.time-picker input{width:88px}}@media screen and (max-width: 504px){.time-picker input{width:68px;font-size:15px}}.time-picker input.focus{background:transparent}.time-picker input:hover,.time-picker input:active{border:1px solid var(--nylas-primary)}.time-picker input:active{outline:2px solid var(--nylas-primary)}.time-picker input span.open{transform:rotate(90deg)}.time-picker input span.closed{transform:rotate(270deg)}.time-picker input.error{border:1px solid var(--nylas-error)}.time-picker p.error{color:var(--nylas-error);font-size:0.875rem;margin:0}.times{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;border:1px solid #ddd;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}.times ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.times ul li{padding:16px, 12px, 16px, 12px;color:var(--nylas-base-900);padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:center;cursor:pointer}.times ul li.focused{background-color:var(--nylas-base-100)}.times ul li:hover,.times ul li:focus{background-color:var(--nylas-base-100)}.times ul li label{display:flex;align-items:center;gap:0.5rem}.times ul li label input{margin:0}',p=f;s.dayjs.extend(m.customParseFormat);const d=class{constructor(t){s.registerInstance(this,t),this.timeChange=s.createEvent(this,"timeChange",7),this.timeWindowFormError=s.createEvent(this,"timeWindowFormError",7),this.time=void 0,this.minimumStartTime=null,this.placeholder="hh:mmam/pm",this.name=void 0,this.hasError=!1,this.language=o.LANGUAGE_CODE.en,this.err="",this.showTimes=!1,this.ariaActivedescendant="",this.times=this.generateTimes(),this.shouldAutoScroll=!1}handleOutsideClick(t){!t.composedPath().includes(this.el)&&this.showTimes&&(this.showTimes=!1)}minimumStartTimeChangedHandler(){if(this.minimumStartTime){let t=s.dayjs().hour(parseInt(this.minimumStartTime)).minute(parseInt(this.minimumStartTime.slice(-4,-2)));this.minimumStartTime.slice(-2).toLowerCase()==="pm"&&parseInt(this.minimumStartTime)!==12?t=t.add(12,"hour"):this.minimumStartTime.slice(-2).toLowerCase()==="am"&&parseInt(this.minimumStartTime)===12&&(t=t.subtract(12,"hour")),this.times=this.generateTimes();const e=s.dayjs(this.times[0].value,"hh:mma"),r=s.dayjs(this.time,"hh:mma"),i=s.instance.t("nylasTimeWindowPicker.errors.invalid");r.isBefore(e)&&(this.err=i,this.timeWindowFormError.emit({key:this.el.id,message:i}))}}componentDidRender(){if(this.showTimes&&this.shouldAutoScroll){const t=s.autocompleteTimeFormat(this.time),e=this.times.findIndex(r=>r.value===t);e>-1&&(this.shouldAutoScroll=!1,this.scrollToViewWithinParent(e));return}}handleTimeChange(t,e){const r=e.split(":");if(r[0]==="00"&&r[1].slice(-2)=="pm"){const i=s.instance.t("nylasTimeWindowPicker.errors.invalid");this.err=i,this.timeWindowFormError.emit({key:this.el.id,message:i})}if(s.validateTimeFormatInput(e))this.err="",this.timeWindowFormError.emit({key:this.el.id,message:""});else{const i=s.instance.t("nylasTimeWindowPicker.errors.invalid");this.err=i,this.timeWindowFormError.emit({key:this.el.id,message:i})}this.err||this.timeChange.emit({key:this.el.id,value:e})}handleTimeAutocomplete(t){var n;const e=(n=t.target)==null?void 0:n.value,r=this.language===o.LANGUAGE_CODE.de||this.language===o.LANGUAGE_CODE.fr?s.convertTo12HourFormat(e):e,i=s.instance.t("nylasTimeWindowPicker.errors.invalid");if(!s.validateTimeFormatInput(r)){this.err=i,this.timeWindowFormError.emit({key:this.el.id,message:i});return}if(r===""){const a=s.roundToNearest15Minutes().format("hh:mma");this.timeChange.emit({key:this.el.id,value:a});return}if(!s.validateExactTimeFormat(r)){const a=s.autocompleteTimeFormat(r);this.timeChange.emit({key:this.el.id,value:a});return}this.timeChange.emit({key:this.el.id,value:r})}handleOnInput(t){var r;const e=(r=t.target)==null?void 0:r.value;if(s.validateTimeFormatInput(e)){if(e===""){const i=s.roundToNearest15Minutes().format("hh:mma"),n=this.times.findIndex(a=>a.value===i);n>-1&&this.scrollToViewWithinParent(n);return}if(!s.validateExactTimeFormat(e)){const i=s.autocompleteTimeFormat(e),n=this.times.findIndex(a=>a.value===i);n>-1&&this.scrollToViewWithinParent(n);return}}}generateTimes(){const t=[];let e=s.dayjs().set("hour",0).set("minute",0).set("second",0);this.minimumStartTime&&(e=s.dayjs(this.minimumStartTime,"hh:mma"));const r=e.endOf("day").diff(e,"minutes"),i=Math.round(r/15);for(let n=0;n<i+1;n++){const a=e.add(n*15,"minute");if(n==i&&a.format("hh:mma").includes("am"))break;t.push({id:n,value:a.format("hh:mma")})}return t}handleComboboxKeyDown(t){if(t.key==="ArrowDown"){if(t.preventDefault(),!this.showTimes){this.showTimes=!0,this.shouldAutoScroll=!0;return}if(this.ariaActivedescendant==="")this.ariaActivedescendant=this.times[0].id.toString(),this.focusOption(0);else{const e=this.times.findIndex(i=>i.id.toString()===this.ariaActivedescendant),r=e+1<this.times.length?e+1:0;this.ariaActivedescendant=this.times[r].id.toString(),this.focusOption(r)}}else if(t.key==="ArrowUp")if(t.preventDefault(),this.ariaActivedescendant==="")this.ariaActivedescendant=this.times[this.times.length-1].id.toString(),this.focusOption(this.times.length-1);else{const e=this.times.findIndex(i=>i.id.toString()===this.ariaActivedescendant),r=e-1>=0?e-1:this.times.length-1;this.ariaActivedescendant=this.times[r].id.toString(),this.focusOption(r)}else t.key==="Escape"&&(this.showTimes=!1,this.timeInput.focus())}handleListboxKeydown(t){const e=this.times,r=e.findIndex(i=>i.id.toString()===this.ariaActivedescendant);if(t.key==="ArrowDown"||t.key==="Tab"&&!t.shiftKey){t.preventDefault();const i=r+1<e.length?r+1:0;this.ariaActivedescendant=e[i].id.toString(),this.focusOption(i)}else if(t.key==="ArrowUp"||t.key==="Tab"&&t.shiftKey){t.preventDefault();const i=r-1>=0?r-1:e.length-1;this.ariaActivedescendant=e[i].id.toString(),this.focusOption(i)}else if(t.key==="Enter"){if(t.preventDefault(),this.ariaActivedescendant){const i=e[r];this.handleTimeChange(t,i.value),this.showTimes=!1,this.ariaActivedescendant="",this.timeInput.focus()}}else t.key==="Escape"&&(this.showTimes=!1,this.timeInput.focus())}scrollToViewWithinParent(t){var l;const e=this.times[t],r=(l=this.el.shadowRoot)==null?void 0:l.getElementById(e.id.toString()),i=this.timeMenu;this.ariaActivedescendant=e.id.toString();const n=r.getBoundingClientRect(),a=i.getBoundingClientRect();n.top<a.top?i.scrollTop-=a.top-n.top:n.bottom>a.bottom&&(i.scrollTop+=n.bottom-a.bottom),n.left<a.left?i.scrollLeft-=a.left-n.left:n.right>a.right&&(i.scrollLeft+=n.right-a.right)}focusOption(t){var n;const e=this.times[t];if(!e)return;const r=e.id.toString(),i=(n=this.el.shadowRoot)==null?void 0:n.getElementById(r);i&&(i.focus(),i.scrollIntoView({behavior:"smooth",block:"nearest"}))}render(){const t=this.language!==o.LANGUAGE_CODE.en;return s.h(s.Host,{key:"895a0c2b4482e42b4bd52ad305cc0e41ea366d47"},s.h("div",{key:"969128eb7d4177ecb879bf3b76d96eb004036b47",class:"time-picker",part:"time-picker"},s.h("input",{key:"ff7b75f3cda42bdb0e27268b886913887f685c66",type:"text",name:this.name,id:this.name,part:"time-input",class:{"time-input":!0,error:!!this.err||this.hasError},ref:e=>this.timeInput=e,value:t?s.convertTo24HourFormat(this.time):this.time,onClick:()=>{this.showTimes=!this.showTimes,this.shouldAutoScroll=!0},"aria-haspopup":"listbox","aria-label":this.name,"aria-expanded":this.showTimes?"true":"false",placeholder:this.placeholder,onKeyDown:e=>this.handleComboboxKeyDown(e),onInput:e=>this.handleOnInput(e),onBlur:e=>this.handleTimeAutocomplete(e)}),this.err&&s.h("div",{class:"invalid-time-icon"}),this.showTimes&&s.h("div",{class:"times",part:"times",ref:e=>this.timeMenu=e},s.h("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-activedescendant":this.ariaActivedescendant,onKeyDown:e=>this.handleListboxKeydown(e)},this.times.map(e=>s.h("li",{tabindex:"0",key:e.id,id:e.id.toString(),class:{focused:this.ariaActivedescendant===e.id.toString()},onClick:r=>{this.handleTimeChange(r,e.value),this.showTimes=!1,this.timeInput.focus()},role:"option"},`${t?s.convertTo24HourFormat(e.value):e.value}`)))),!this.showTimes&&this.err&&s.h("p",{class:"error",id:"email-error"},this.err)))}get el(){return s.getElement(this)}static get watchers(){return{minimumStartTime:["minimumStartTimeChangedHandler"]}}};d.style=p;exports.globe_icon=c;exports.nylas_time_window_picker=d;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import { L as
|
|
3
|
-
import { c as
|
|
1
|
+
import { r as b, h as a, d as o, a as f, i as l, W as m, X as d, L as g, Y as u, Z as p, M as y, H as x, g as w } from "./index-e8380973.js";
|
|
2
|
+
import { L as c } from "./constants-f51538ef-e0a5f026.js";
|
|
3
|
+
import { c as v } from "./customParseFormat-d1de5ed0-c0ef002d.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
import "react-dom";
|
|
7
|
-
const
|
|
7
|
+
const k = ".sc-globe-icon-h{display:flex}", T = k, C = class {
|
|
8
8
|
constructor(t) {
|
|
9
|
-
|
|
9
|
+
b(this, t), this.width = "16", this.height = "16";
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return
|
|
12
|
+
return a("svg", { key: "339d4881ddf352d7950647b1458a861deab9b496", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 16 16", fill: "none" }, a("path", { key: "fb6ab15c0dacfec98834a4980380a40a4fa9d636", d: "M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8 3C8.37372 3 8.87543 3.35608 9.31258 4.31781C9.4073 4.52619 9.49448 4.75446 9.57265 5H6.42735C6.50552 4.75446 6.5927 4.52619 6.68742 4.31781C7.12457 3.35608 7.62628 3 8 3ZM5.77705 3.90401C5.62614 4.23601 5.49428 4.6038 5.38411 5H3.99963C4.52341 4.30269 5.22525 3.74677 6.03766 3.39978C5.94287 3.56117 5.85596 3.7304 5.77705 3.90401ZM5.16299 6C5.05694 6.6275 5 7.30146 5 8C5 8.69854 5.05694 9.3725 5.16299 10H3.41604C3.14845 9.38754 3 8.7111 3 8C3 7.2889 3.14845 6.61246 3.41604 6H5.16299ZM5.38411 11C5.49428 11.3962 5.62614 11.764 5.77705 12.096C5.85596 12.2696 5.94287 12.4388 6.03766 12.6002C5.22525 12.2532 4.52341 11.6973 3.99963 11H5.38411ZM6.42735 11H9.57265C9.49448 11.2455 9.4073 11.4738 9.31258 11.6822C8.87543 12.6439 8.37372 13 8 13C7.62628 13 7.12457 12.6439 6.68742 11.6822C6.5927 11.4738 6.50552 11.2455 6.42735 11ZM9.82134 10H6.17866C6.06438 9.3892 6 8.71396 6 8C6 7.28604 6.06438 6.6108 6.17866 6H9.82134C9.93562 6.6108 10 7.28604 10 8C10 8.71396 9.93562 9.3892 9.82134 10ZM10.6159 11H12.0004C11.4766 11.6973 10.7747 12.2532 9.96234 12.6002C10.0571 12.4388 10.144 12.2696 10.2229 12.096C10.3739 11.764 10.5057 11.3962 10.6159 11ZM12.584 10H10.837C10.9431 9.3725 11 8.69854 11 8C11 7.30146 10.9431 6.6275 10.837 6H12.584C12.8516 6.61246 13 7.2889 13 8C13 8.7111 12.8516 9.38754 12.584 10ZM9.96234 3.39978C10.7747 3.74677 11.4766 4.30269 12.0004 5H10.6159C10.5057 4.6038 10.3739 4.23601 10.2229 3.90401C10.144 3.7304 10.0571 3.56117 9.96234 3.39978Z", fill: "currentColor" }));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
o.extend(
|
|
18
|
-
const
|
|
15
|
+
C.style = T;
|
|
16
|
+
const I = ':host{display:block;position:relative;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.time-picker{display:inline-block;width:150px;font-family:var(--nylas-font-family);position:relative}@media screen and (max-width: 768px){.time-picker{width:auto}}.time-picker input{width:150px;height:48px;text-align:center;font-size:16px;font-family:inherit;cursor:pointer;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.time-picker input{width:88px}}@media screen and (max-width: 504px){.time-picker input{width:68px;font-size:15px}}.time-picker input.focus{background:transparent}.time-picker input:hover,.time-picker input:active{border:1px solid var(--nylas-primary)}.time-picker input:active{outline:2px solid var(--nylas-primary)}.time-picker input span.open{transform:rotate(90deg)}.time-picker input span.closed{transform:rotate(270deg)}.time-picker input.error{border:1px solid var(--nylas-error)}.time-picker p.error{color:var(--nylas-error);font-size:0.875rem;margin:0}.times{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;border:1px solid #ddd;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}.times ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.times ul li{padding:16px, 12px, 16px, 12px;color:var(--nylas-base-900);padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:center;cursor:pointer}.times ul li.focused{background-color:var(--nylas-base-100)}.times ul li:hover,.times ul li:focus{background-color:var(--nylas-base-100)}.times ul li label{display:flex;align-items:center;gap:0.5rem}.times ul li label input{margin:0}', S = I;
|
|
17
|
+
o.extend(v);
|
|
18
|
+
const A = class {
|
|
19
19
|
constructor(t) {
|
|
20
|
-
|
|
20
|
+
b(this, t), this.timeChange = f(this, "timeChange", 7), this.timeWindowFormError = f(this, "timeWindowFormError", 7), this.time = void 0, this.minimumStartTime = null, this.placeholder = "hh:mmam/pm", this.name = void 0, this.hasError = !1, this.language = c.en, this.err = "", this.showTimes = !1, this.ariaActivedescendant = "", this.times = this.generateTimes(), this.shouldAutoScroll = !1;
|
|
21
21
|
}
|
|
22
22
|
handleOutsideClick(t) {
|
|
23
23
|
!t.composedPath().includes(this.el) && this.showTimes && (this.showTimes = !1);
|
|
@@ -26,79 +26,89 @@ const S = class {
|
|
|
26
26
|
if (this.minimumStartTime) {
|
|
27
27
|
let t = o().hour(parseInt(this.minimumStartTime)).minute(parseInt(this.minimumStartTime.slice(-4, -2)));
|
|
28
28
|
this.minimumStartTime.slice(-2).toLowerCase() === "pm" && parseInt(this.minimumStartTime) !== 12 ? t = t.add(12, "hour") : this.minimumStartTime.slice(-2).toLowerCase() === "am" && parseInt(this.minimumStartTime) === 12 && (t = t.subtract(12, "hour")), this.times = this.generateTimes();
|
|
29
|
-
const e = o(this.times[0].value, "hh:mma");
|
|
30
|
-
|
|
29
|
+
const e = o(this.times[0].value, "hh:mma"), s = o(this.time, "hh:mma"), i = l.t("nylasTimeWindowPicker.errors.invalid");
|
|
30
|
+
s.isBefore(e) && (this.err = i, this.timeWindowFormError.emit({
|
|
31
31
|
key: this.el.id,
|
|
32
|
-
message:
|
|
32
|
+
message: i
|
|
33
33
|
}));
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
componentDidRender() {
|
|
37
37
|
if (this.showTimes && this.shouldAutoScroll) {
|
|
38
|
-
const t =
|
|
38
|
+
const t = m(this.time), e = this.times.findIndex((s) => s.value === t);
|
|
39
39
|
e > -1 && (this.shouldAutoScroll = !1, this.scrollToViewWithinParent(e));
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
handleTimeChange(t, e) {
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
44
|
+
const s = e.split(":");
|
|
45
|
+
if (s[0] === "00" && s[1].slice(-2) == "pm") {
|
|
46
|
+
const i = l.t("nylasTimeWindowPicker.errors.invalid");
|
|
47
|
+
this.err = i, this.timeWindowFormError.emit({
|
|
48
|
+
key: this.el.id,
|
|
49
|
+
message: i
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
if (d(e))
|
|
53
|
+
this.err = "", this.timeWindowFormError.emit({
|
|
54
|
+
key: this.el.id,
|
|
55
|
+
message: ""
|
|
56
|
+
});
|
|
57
|
+
else {
|
|
58
|
+
const i = l.t("nylasTimeWindowPicker.errors.invalid");
|
|
59
|
+
this.err = i, this.timeWindowFormError.emit({
|
|
60
|
+
key: this.el.id,
|
|
61
|
+
message: i
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
this.err || this.timeChange.emit({
|
|
55
65
|
key: this.el.id,
|
|
56
66
|
value: e
|
|
57
67
|
});
|
|
58
68
|
}
|
|
59
69
|
handleTimeAutocomplete(t) {
|
|
60
|
-
var
|
|
61
|
-
const e = (
|
|
62
|
-
if (!
|
|
63
|
-
this.err =
|
|
70
|
+
var r;
|
|
71
|
+
const e = (r = t.target) == null ? void 0 : r.value, s = this.language === c.de || this.language === c.fr ? g(e) : e, i = l.t("nylasTimeWindowPicker.errors.invalid");
|
|
72
|
+
if (!d(s)) {
|
|
73
|
+
this.err = i, this.timeWindowFormError.emit({
|
|
64
74
|
key: this.el.id,
|
|
65
|
-
message:
|
|
75
|
+
message: i
|
|
66
76
|
});
|
|
67
77
|
return;
|
|
68
78
|
}
|
|
69
|
-
if (
|
|
70
|
-
const
|
|
79
|
+
if (s === "") {
|
|
80
|
+
const n = u().format("hh:mma");
|
|
71
81
|
this.timeChange.emit({
|
|
72
82
|
key: this.el.id,
|
|
73
|
-
value:
|
|
83
|
+
value: n
|
|
74
84
|
});
|
|
75
85
|
return;
|
|
76
86
|
}
|
|
77
|
-
if (!
|
|
78
|
-
const
|
|
87
|
+
if (!p(s)) {
|
|
88
|
+
const n = m(s);
|
|
79
89
|
this.timeChange.emit({
|
|
80
90
|
key: this.el.id,
|
|
81
|
-
value:
|
|
91
|
+
value: n
|
|
82
92
|
});
|
|
83
93
|
return;
|
|
84
94
|
}
|
|
85
95
|
this.timeChange.emit({
|
|
86
96
|
key: this.el.id,
|
|
87
|
-
value:
|
|
97
|
+
value: s
|
|
88
98
|
});
|
|
89
99
|
}
|
|
90
100
|
handleOnInput(t) {
|
|
91
|
-
var
|
|
92
|
-
const e = (
|
|
93
|
-
if (
|
|
101
|
+
var s;
|
|
102
|
+
const e = (s = t.target) == null ? void 0 : s.value;
|
|
103
|
+
if (d(e)) {
|
|
94
104
|
if (e === "") {
|
|
95
|
-
const
|
|
96
|
-
|
|
105
|
+
const i = u().format("hh:mma"), r = this.times.findIndex((n) => n.value === i);
|
|
106
|
+
r > -1 && this.scrollToViewWithinParent(r);
|
|
97
107
|
return;
|
|
98
108
|
}
|
|
99
|
-
if (!
|
|
100
|
-
const
|
|
101
|
-
|
|
109
|
+
if (!p(e)) {
|
|
110
|
+
const i = m(e), r = this.times.findIndex((n) => n.value === i);
|
|
111
|
+
r > -1 && this.scrollToViewWithinParent(r);
|
|
102
112
|
return;
|
|
103
113
|
}
|
|
104
114
|
}
|
|
@@ -107,12 +117,12 @@ const S = class {
|
|
|
107
117
|
const t = [];
|
|
108
118
|
let e = o().set("hour", 0).set("minute", 0).set("second", 0);
|
|
109
119
|
this.minimumStartTime && (e = o(this.minimumStartTime, "hh:mma"));
|
|
110
|
-
const
|
|
111
|
-
for (let
|
|
112
|
-
const n = e.add(
|
|
113
|
-
if (
|
|
120
|
+
const s = e.endOf("day").diff(e, "minutes"), i = Math.round(s / 15);
|
|
121
|
+
for (let r = 0; r < i + 1; r++) {
|
|
122
|
+
const n = e.add(r * 15, "minute");
|
|
123
|
+
if (r == i && n.format("hh:mma").includes("am"))
|
|
114
124
|
break;
|
|
115
|
-
t.push({ id:
|
|
125
|
+
t.push({ id: r, value: n.format("hh:mma") });
|
|
116
126
|
}
|
|
117
127
|
return t;
|
|
118
128
|
}
|
|
@@ -125,67 +135,67 @@ const S = class {
|
|
|
125
135
|
if (this.ariaActivedescendant === "")
|
|
126
136
|
this.ariaActivedescendant = this.times[0].id.toString(), this.focusOption(0);
|
|
127
137
|
else {
|
|
128
|
-
const e = this.times.findIndex((
|
|
129
|
-
this.ariaActivedescendant = this.times[
|
|
138
|
+
const e = this.times.findIndex((i) => i.id.toString() === this.ariaActivedescendant), s = e + 1 < this.times.length ? e + 1 : 0;
|
|
139
|
+
this.ariaActivedescendant = this.times[s].id.toString(), this.focusOption(s);
|
|
130
140
|
}
|
|
131
141
|
} else if (t.key === "ArrowUp")
|
|
132
142
|
if (t.preventDefault(), this.ariaActivedescendant === "")
|
|
133
143
|
this.ariaActivedescendant = this.times[this.times.length - 1].id.toString(), this.focusOption(this.times.length - 1);
|
|
134
144
|
else {
|
|
135
|
-
const e = this.times.findIndex((
|
|
136
|
-
this.ariaActivedescendant = this.times[
|
|
145
|
+
const e = this.times.findIndex((i) => i.id.toString() === this.ariaActivedescendant), s = e - 1 >= 0 ? e - 1 : this.times.length - 1;
|
|
146
|
+
this.ariaActivedescendant = this.times[s].id.toString(), this.focusOption(s);
|
|
137
147
|
}
|
|
138
148
|
else
|
|
139
149
|
t.key === "Escape" && (this.showTimes = !1, this.timeInput.focus());
|
|
140
150
|
}
|
|
141
151
|
handleListboxKeydown(t) {
|
|
142
|
-
const e = this.times,
|
|
152
|
+
const e = this.times, s = e.findIndex((i) => i.id.toString() === this.ariaActivedescendant);
|
|
143
153
|
if (t.key === "ArrowDown" || t.key === "Tab" && !t.shiftKey) {
|
|
144
154
|
t.preventDefault();
|
|
145
|
-
const
|
|
146
|
-
this.ariaActivedescendant = e[
|
|
155
|
+
const i = s + 1 < e.length ? s + 1 : 0;
|
|
156
|
+
this.ariaActivedescendant = e[i].id.toString(), this.focusOption(i);
|
|
147
157
|
} else if (t.key === "ArrowUp" || t.key === "Tab" && t.shiftKey) {
|
|
148
158
|
t.preventDefault();
|
|
149
|
-
const
|
|
150
|
-
this.ariaActivedescendant = e[
|
|
159
|
+
const i = s - 1 >= 0 ? s - 1 : e.length - 1;
|
|
160
|
+
this.ariaActivedescendant = e[i].id.toString(), this.focusOption(i);
|
|
151
161
|
} else if (t.key === "Enter") {
|
|
152
162
|
if (t.preventDefault(), this.ariaActivedescendant) {
|
|
153
|
-
const
|
|
154
|
-
this.handleTimeChange(t,
|
|
163
|
+
const i = e[s];
|
|
164
|
+
this.handleTimeChange(t, i.value), this.showTimes = !1, this.ariaActivedescendant = "", this.timeInput.focus();
|
|
155
165
|
}
|
|
156
166
|
} else
|
|
157
167
|
t.key === "Escape" && (this.showTimes = !1, this.timeInput.focus());
|
|
158
168
|
}
|
|
159
169
|
scrollToViewWithinParent(t) {
|
|
160
|
-
var
|
|
161
|
-
const e = this.times[t],
|
|
170
|
+
var h;
|
|
171
|
+
const e = this.times[t], s = (h = this.el.shadowRoot) == null ? void 0 : h.getElementById(e.id.toString()), i = this.timeMenu;
|
|
162
172
|
this.ariaActivedescendant = e.id.toString();
|
|
163
|
-
const
|
|
164
|
-
|
|
173
|
+
const r = s.getBoundingClientRect(), n = i.getBoundingClientRect();
|
|
174
|
+
r.top < n.top ? i.scrollTop -= n.top - r.top : r.bottom > n.bottom && (i.scrollTop += r.bottom - n.bottom), r.left < n.left ? i.scrollLeft -= n.left - r.left : r.right > n.right && (i.scrollLeft += r.right - n.right);
|
|
165
175
|
}
|
|
166
176
|
focusOption(t) {
|
|
167
|
-
var
|
|
177
|
+
var r;
|
|
168
178
|
const e = this.times[t];
|
|
169
179
|
if (!e)
|
|
170
180
|
return;
|
|
171
|
-
const
|
|
172
|
-
|
|
181
|
+
const s = e.id.toString(), i = (r = this.el.shadowRoot) == null ? void 0 : r.getElementById(s);
|
|
182
|
+
i && (i.focus(), i.scrollIntoView({ behavior: "smooth", block: "nearest" }));
|
|
173
183
|
}
|
|
174
184
|
render() {
|
|
175
|
-
const t = this.language !==
|
|
176
|
-
return
|
|
185
|
+
const t = this.language !== c.en;
|
|
186
|
+
return a(x, { key: "895a0c2b4482e42b4bd52ad305cc0e41ea366d47" }, a("div", { key: "969128eb7d4177ecb879bf3b76d96eb004036b47", class: "time-picker", part: "time-picker" }, a("input", { key: "ff7b75f3cda42bdb0e27268b886913887f685c66", type: "text", name: this.name, id: this.name, part: "time-input", class: {
|
|
177
187
|
"time-input": !0,
|
|
178
188
|
error: !!this.err || this.hasError
|
|
179
|
-
}, ref: (e) => this.timeInput = e, value: t ?
|
|
189
|
+
}, ref: (e) => this.timeInput = e, value: t ? y(this.time) : this.time, onClick: () => {
|
|
180
190
|
this.showTimes = !this.showTimes, this.shouldAutoScroll = !0;
|
|
181
|
-
}, "aria-haspopup": "listbox", "aria-label": this.name, "aria-expanded": this.showTimes ? "true" : "false", placeholder: this.placeholder, onKeyDown: (e) => this.handleComboboxKeyDown(e), onInput: (e) => this.handleOnInput(e), onBlur: (e) => this.handleTimeAutocomplete(e) }), this.err &&
|
|
191
|
+
}, "aria-haspopup": "listbox", "aria-label": this.name, "aria-expanded": this.showTimes ? "true" : "false", placeholder: this.placeholder, onKeyDown: (e) => this.handleComboboxKeyDown(e), onInput: (e) => this.handleOnInput(e), onBlur: (e) => this.handleTimeAutocomplete(e) }), this.err && a("div", { class: "invalid-time-icon" }), this.showTimes && a("div", { class: "times", part: "times", ref: (e) => this.timeMenu = e }, a("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: (e) => this.handleListboxKeydown(e) }, this.times.map((e) => a("li", { tabindex: "0", key: e.id, id: e.id.toString(), class: {
|
|
182
192
|
focused: this.ariaActivedescendant === e.id.toString()
|
|
183
|
-
}, onClick: (
|
|
184
|
-
this.handleTimeChange(
|
|
185
|
-
}, role: "option" }, `${t ?
|
|
193
|
+
}, onClick: (s) => {
|
|
194
|
+
this.handleTimeChange(s, e.value), this.showTimes = !1, this.timeInput.focus();
|
|
195
|
+
}, role: "option" }, `${t ? y(e.value) : e.value}`)))), !this.showTimes && this.err && a("p", { class: "error", id: "email-error" }, this.err)));
|
|
186
196
|
}
|
|
187
197
|
get el() {
|
|
188
|
-
return
|
|
198
|
+
return w(this);
|
|
189
199
|
}
|
|
190
200
|
static get watchers() {
|
|
191
201
|
return {
|
|
@@ -193,8 +203,8 @@ const S = class {
|
|
|
193
203
|
};
|
|
194
204
|
}
|
|
195
205
|
};
|
|
196
|
-
|
|
206
|
+
A.style = S;
|
|
197
207
|
export {
|
|
198
|
-
|
|
199
|
-
|
|
208
|
+
C as globe_icon,
|
|
209
|
+
A as nylas_time_window_picker
|
|
200
210
|
};
|