@nylas/web-elements 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/nylas-booked-event-card/nylas-booked-event-card.es.js +155 -145
- package/dist/cdn/nylas-booking-form/nylas-booking-form.es.js +80 -70
- package/dist/cdn/nylas-cancel-booking-form/nylas-cancel-booking-form.es.js +14 -4
- package/dist/cdn/nylas-cancelled-event-card/nylas-cancelled-event-card.es.js +14 -4
- package/dist/cdn/nylas-confirmed-event-card/nylas-confirmed-event-card.es.js +14 -4
- package/dist/cdn/nylas-date-picker/nylas-date-picker.es.js +86 -73
- package/dist/cdn/nylas-editor-tabs/nylas-editor-tabs.es.js +19 -12
- package/dist/cdn/nylas-feedback-form/nylas-feedback-form.es.js +1226 -1219
- package/dist/cdn/nylas-locale-switch/nylas-locale-switch.es.js +1233 -1220
- package/dist/cdn/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.es.js +11 -4
- package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +19 -12
- package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +1694 -1584
- package/dist/cdn/nylas-selected-event-card/nylas-selected-event-card.es.js +14 -4
- package/dist/cdn/nylas-timeslot-picker/nylas-timeslot-picker.es.js +13 -3
- package/dist/cjs/calendar-agenda-fill-icon_54.cjs.entry.js +13 -3
- package/dist/cjs/calendar-agenda-fill-icon_54.cjs.entry.js.map +1 -1
- package/dist/cjs/google-logo-icon_4.cjs.entry.js +7 -6
- package/dist/cjs/google-logo-icon_4.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nylas-booked-event-card.cjs.entry.js +15 -4
- package/dist/cjs/nylas-booked-event-card.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js +142 -25
- package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-booking-form.cjs.entry.js +16 -3
- package/dist/cjs/nylas-booking-form.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-cancel-booking-form.cjs.entry.js +13 -2
- package/dist/cjs/nylas-cancel-booking-form.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-cancelled-event-card.cjs.entry.js +13 -2
- package/dist/cjs/nylas-cancelled-event-card.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-confirmed-event-card.cjs.entry.js +13 -2
- package/dist/cjs/nylas-confirmed-event-card.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-date-picker.cjs.entry.js +16 -2
- package/dist/cjs/nylas-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-editor-tabs.cjs.entry.js +7 -6
- package/dist/cjs/nylas-editor-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-feedback-form.cjs.entry.js +13 -3
- package/dist/cjs/nylas-feedback-form.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-locale-switch.cjs.entry.js +18 -4
- package/dist/cjs/nylas-locale-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-organizer-confirmation-card.cjs.entry.js +12 -2
- package/dist/cjs/nylas-organizer-confirmation-card.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-scheduling.cjs.entry.js +11 -10
- package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-selected-event-card.cjs.entry.js +14 -3
- package/dist/cjs/nylas-selected-event-card.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-timeslot-picker.cjs.entry.js +12 -1
- package/dist/cjs/nylas-timeslot-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-web-elements.cjs.js +1 -1
- package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.css +0 -23
- package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.js +34 -3
- package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.css +0 -23
- package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js +35 -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.css +0 -23
- package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js +32 -1
- package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.css +0 -23
- package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js +32 -1
- package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.css +0 -23
- package/dist/collection/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.js +32 -1
- package/dist/collection/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.css +0 -23
- package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js +35 -1
- package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-feedback-form/nylas-feedback-form.css +0 -23
- package/dist/collection/components/scheduler/nylas-feedback-form/nylas-feedback-form.js +36 -2
- package/dist/collection/components/scheduler/nylas-feedback-form/nylas-feedback-form.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-locale-switch/nylas-locale-switch.css +0 -23
- package/dist/collection/components/scheduler/nylas-locale-switch/nylas-locale-switch.js +37 -3
- package/dist/collection/components/scheduler/nylas-locale-switch/nylas-locale-switch.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.css +0 -23
- package/dist/collection/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.js +31 -1
- package/dist/collection/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +10 -9
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.css +0 -23
- package/dist/collection/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.js +33 -2
- package/dist/collection/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.css +0 -23
- package/dist/collection/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.js +31 -0
- package/dist/collection/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-timeslot-picker/test/nylas-timeslot-picker.spec.js +7 -1
- package/dist/collection/components/scheduler/nylas-timeslot-picker/test/nylas-timeslot-picker.spec.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +5 -4
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
- package/dist/components/nylas-booked-event-card2.js +16 -4
- package/dist/components/nylas-booked-event-card2.js.map +1 -1
- package/dist/components/nylas-booking-form2.js +17 -3
- package/dist/components/nylas-booking-form2.js.map +1 -1
- package/dist/components/nylas-cancel-booking-form2.js +14 -2
- package/dist/components/nylas-cancel-booking-form2.js.map +1 -1
- package/dist/components/nylas-cancelled-event-card2.js +14 -2
- package/dist/components/nylas-cancelled-event-card2.js.map +1 -1
- package/dist/components/nylas-confirmed-event-card2.js +14 -2
- package/dist/components/nylas-confirmed-event-card2.js.map +1 -1
- package/dist/components/nylas-date-picker2.js +18 -3
- package/dist/components/nylas-date-picker2.js.map +1 -1
- package/dist/components/nylas-editor-tabs2.js +7 -6
- package/dist/components/nylas-editor-tabs2.js.map +1 -1
- package/dist/components/nylas-feedback-form2.js +14 -3
- package/dist/components/nylas-feedback-form2.js.map +1 -1
- package/dist/components/nylas-locale-switch2.js +20 -5
- package/dist/components/nylas-locale-switch2.js.map +1 -1
- package/dist/components/nylas-organizer-confirmation-card2.js +13 -2
- package/dist/components/nylas-organizer-confirmation-card2.js.map +1 -1
- package/dist/components/nylas-scheduling.js +11 -10
- package/dist/components/nylas-scheduling.js.map +1 -1
- package/dist/components/nylas-selected-event-card2.js +15 -3
- package/dist/components/nylas-selected-event-card2.js.map +1 -1
- package/dist/components/nylas-timeslot-picker2.js +13 -1
- package/dist/components/nylas-timeslot-picker2.js.map +1 -1
- package/dist/esm/calendar-agenda-fill-icon_54.entry.js +13 -3
- package/dist/esm/calendar-agenda-fill-icon_54.entry.js.map +1 -1
- package/dist/esm/google-logo-icon_4.entry.js +7 -6
- package/dist/esm/google-logo-icon_4.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nylas-booked-event-card.entry.js +16 -5
- package/dist/esm/nylas-booked-event-card.entry.js.map +1 -1
- package/dist/esm/nylas-booked-event-card_12.entry.js +142 -25
- package/dist/esm/nylas-booked-event-card_12.entry.js.map +1 -1
- package/dist/esm/nylas-booking-form.entry.js +16 -3
- package/dist/esm/nylas-booking-form.entry.js.map +1 -1
- package/dist/esm/nylas-cancel-booking-form.entry.js +14 -3
- package/dist/esm/nylas-cancel-booking-form.entry.js.map +1 -1
- package/dist/esm/nylas-cancelled-event-card.entry.js +14 -3
- package/dist/esm/nylas-cancelled-event-card.entry.js.map +1 -1
- package/dist/esm/nylas-confirmed-event-card.entry.js +14 -3
- package/dist/esm/nylas-confirmed-event-card.entry.js.map +1 -1
- package/dist/esm/nylas-date-picker.entry.js +18 -4
- package/dist/esm/nylas-date-picker.entry.js.map +1 -1
- package/dist/esm/nylas-editor-tabs.entry.js +7 -6
- package/dist/esm/nylas-editor-tabs.entry.js.map +1 -1
- package/dist/esm/nylas-feedback-form.entry.js +13 -3
- package/dist/esm/nylas-feedback-form.entry.js.map +1 -1
- package/dist/esm/nylas-locale-switch.entry.js +20 -6
- package/dist/esm/nylas-locale-switch.entry.js.map +1 -1
- package/dist/esm/nylas-organizer-confirmation-card.entry.js +12 -2
- package/dist/esm/nylas-organizer-confirmation-card.entry.js.map +1 -1
- package/dist/esm/nylas-scheduling.entry.js +11 -10
- package/dist/esm/nylas-scheduling.entry.js.map +1 -1
- package/dist/esm/nylas-selected-event-card.entry.js +15 -4
- package/dist/esm/nylas-selected-event-card.entry.js.map +1 -1
- package/dist/esm/nylas-timeslot-picker.entry.js +13 -2
- package/dist/esm/nylas-timeslot-picker.entry.js.map +1 -1
- package/dist/esm/nylas-web-elements.js +1 -1
- package/dist/nylas-web-elements/nylas-booked-event-card.entry.js +16 -5
- package/dist/nylas-web-elements/nylas-booked-event-card.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-booking-form.entry.js +16 -3
- package/dist/nylas-web-elements/nylas-booking-form.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-cancel-booking-form.entry.js +14 -3
- package/dist/nylas-web-elements/nylas-cancel-booking-form.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-cancelled-event-card.entry.js +14 -3
- package/dist/nylas-web-elements/nylas-cancelled-event-card.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-confirmed-event-card.entry.js +14 -3
- package/dist/nylas-web-elements/nylas-confirmed-event-card.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-date-picker.entry.js +18 -4
- package/dist/nylas-web-elements/nylas-date-picker.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-editor-tabs.entry.js +7 -6
- package/dist/nylas-web-elements/nylas-editor-tabs.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-feedback-form.entry.js +13 -3
- package/dist/nylas-web-elements/nylas-feedback-form.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-locale-switch.entry.js +20 -6
- package/dist/nylas-web-elements/nylas-locale-switch.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-organizer-confirmation-card.entry.js +12 -2
- package/dist/nylas-web-elements/nylas-organizer-confirmation-card.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-scheduling.entry.js +11 -10
- package/dist/nylas-web-elements/nylas-scheduling.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-selected-event-card.entry.js +15 -4
- package/dist/nylas-web-elements/nylas-selected-event-card.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-timeslot-picker.entry.js +13 -2
- package/dist/nylas-web-elements/nylas-timeslot-picker.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/p-2e7f0f20.entry.js +2 -0
- package/dist/nylas-web-elements/p-2e7f0f20.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-b5b568cf.entry.js → p-368190e9.entry.js} +2 -2
- package/dist/nylas-web-elements/p-368190e9.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-e790c71f.entry.js → p-9a8047b9.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-e790c71f.entry.js.map → p-9a8047b9.entry.js.map} +1 -1
- package/dist/nylas-web-elements/{p-d586ff14.entry.js → p-eba3d197.entry.js} +3 -3
- package/dist/nylas-web-elements/p-eba3d197.entry.js.map +1 -0
- package/dist/types/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.d.ts +4 -1
- package/dist/types/components/scheduler/nylas-booking-form/nylas-booking-form.d.ts +5 -2
- package/dist/types/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.d.ts +4 -1
- package/dist/types/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.d.ts +4 -0
- package/dist/types/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.d.ts +4 -0
- package/dist/types/components/scheduler/nylas-date-picker/nylas-date-picker.d.ts +5 -0
- package/dist/types/components/scheduler/nylas-feedback-form/nylas-feedback-form.d.ts +3 -0
- package/dist/types/components/scheduler/nylas-locale-switch/nylas-locale-switch.d.ts +5 -0
- package/dist/types/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.d.ts +3 -1
- package/dist/types/components/scheduler/nylas-scheduling/nylas-scheduling.d.ts +1 -1
- package/dist/types/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.d.ts +4 -1
- package/dist/types/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.d.ts +4 -1
- package/dist/types/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.d.ts +1 -1
- package/dist/types/components.d.ts +88 -0
- package/package.json +1 -1
- package/dist/nylas-web-elements/p-7a1d51ab.entry.js +0 -2
- package/dist/nylas-web-elements/p-7a1d51ab.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-b5b568cf.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-d586ff14.entry.js.map +0 -1
|
@@ -9193,7 +9193,7 @@ function q2() {
|
|
|
9193
9193
|
}
|
|
9194
9194
|
});
|
|
9195
9195
|
}
|
|
9196
|
-
const H2 =
|
|
9196
|
+
const H2 = ":host{display:block}.event-card-wrapper{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);position:relative;margin-top:1rem;width:424px;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.event-card-wrapper{width:100%;border-radius:0px}}.calendar-icon{display:flex;align-items:center;justify-content:center;width:3rem;height:3rem;border-radius:50%;position:absolute;top:-1.25rem;left:50%;transform:translateX(-50%);background-color:var(--nylas-base-0);border:1px solid var(--nylas-base-200);color:var(--nylas-base-700)}.booked-event-header{margin:1.5rem 4rem;overflow-wrap:anywhere;display:flex;align-items:center;flex-direction:column;font-size:1rem;font-weight:400}.booked-event-header h2{color:var(--nylas-base-600);margin-top:1.5rem;margin-bottom:0.25rem;font-size:1.125rem;font-weight:600}.manage-booking-description{border-top:1px solid var(--nylas-base-200)}.manage-booking-description p{font-size:16px;margin:1rem;padding:0.5rem 1rem;font-weight:400;color:var(--nylas-base-800)}.footer{padding:0.5rem;display:grid;grid-template-columns:1fr 1fr;gap:0.5rem;box-sizing:border-box;background-color:var(--nylas-base-25);width:100%;border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x)}.footer.no-template-cols{grid-template-columns:1fr}.footer.no-footer{display:none}sp-divider{background-color:var(--nylas-base-200);height:1px}calendar-check-icon{display:flex;align-items:center;justify-content:center;height:100%}button-component{--dot-color:var(--nylas-base-700)}", z2 = H2;
|
|
9197
9197
|
var W2 = function(n, e, t, r) {
|
|
9198
9198
|
var i = arguments.length, u = i < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, t) : r, o;
|
|
9199
9199
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -9216,7 +9216,7 @@ const bn = Zt(class extends Xt {
|
|
|
9216
9216
|
this.organizerConfirmationBookingId && !this.isLoading && this.confirmBookingButtonClicked.emit({ bookingId: this.organizerConfirmationBookingId, host: this.host, errorHandler: e });
|
|
9217
9217
|
}, this.handleRejectBookingButtonClicked = () => {
|
|
9218
9218
|
this.action = "reject", this.organizerConfirmationBookingId && !this.isLoading && this.rejectBookingButtonClicked.emit({ bookingId: this.organizerConfirmationBookingId, host: this.host });
|
|
9219
|
-
}, this.configSettings = void 0, this.isLoading = void 0, this.organizerConfirmationBookingId = void 0, this.selectedLanguage = navigator.language, this.action = null;
|
|
9219
|
+
}, this.configSettings = void 0, this.isLoading = void 0, this.themeConfig = void 0, this.organizerConfirmationBookingId = void 0, this.selectedLanguage = navigator.language, this.action = null;
|
|
9220
9220
|
}
|
|
9221
9221
|
connectedCallback() {
|
|
9222
9222
|
}
|
|
@@ -9226,14 +9226,19 @@ const bn = Zt(class extends Xt {
|
|
|
9226
9226
|
ze("[nylas-organizer-confirmation-card] Component will load");
|
|
9227
9227
|
}
|
|
9228
9228
|
async componentDidLoad() {
|
|
9229
|
-
ze("[nylas-organizer-confirmation-card] Component did load");
|
|
9229
|
+
ze("[nylas-organizer-confirmation-card] Component did load"), this.applyThemeConfig(this.themeConfig);
|
|
9230
|
+
}
|
|
9231
|
+
applyThemeConfig(e) {
|
|
9232
|
+
if (e)
|
|
9233
|
+
for (const [t, r] of Object.entries(e))
|
|
9234
|
+
this.host.style.setProperty(`${t}`, r);
|
|
9230
9235
|
}
|
|
9231
9236
|
async resetAction() {
|
|
9232
9237
|
this.action = null;
|
|
9233
9238
|
}
|
|
9234
9239
|
render() {
|
|
9235
9240
|
var e, t, r, i, u, o, a, s, c, f, d, l;
|
|
9236
|
-
return G(Di, { key: "
|
|
9241
|
+
return G(Di, { key: "d9ca934419385dcf0917c80e70c3efb3d7b18a02", part: "nmcc" }, G("div", { key: "b5b0a918984758dbf80f3218610537bfbec693e4", class: "event-card-wrapper", part: "nmccc__card" }, G("div", { key: "cd26edd3af7815576337f88b5a76ee1cc9335ec0", class: "calendar-icon" }, G("calendar-check-icon", { key: "3cf29fd30584c2fac6a4e1eecce9e55b8c4beb55" })), G("div", { key: "ecc73f4ceff1887502714daa5034b42754ca1f46", class: "booked-event-header" }, G("h2", { key: "2b3233840408bba3fcb29b631e6329148fdeaeaf", slot: "card-title", part: "nmcc__title" }, !!this.organizerConfirmationBookingId && `${He.t("bookingPendingTitle")}!`)), G("div", { key: "7e85b7a9d30895a2bf319185cb3b5b6856894638", class: "manage-booking-description" }, G("p", { key: "644084700e961abcd2b910dcb0631ebfcfbc2a1c" }, He.t("bookingPendingnDescription"))), G("div", { key: "67a549c866b7ba2137bed4ab4af2da4a9c989f0b", class: {
|
|
9237
9242
|
footer: !0,
|
|
9238
9243
|
"no-footer": ((t = (e = this.configSettings) == null ? void 0 : e.scheduler) == null ? void 0 : t.hide_cancellation_options) && ((i = (r = this.configSettings) == null ? void 0 : r.scheduler) == null ? void 0 : i.hide_rescheduling_options),
|
|
9239
9244
|
"no-template-cols": ((o = (u = this.configSettings) == null ? void 0 : u.scheduler) == null ? void 0 : o.hide_cancellation_options) || ((s = (a = this.configSettings) == null ? void 0 : a.scheduler) == null ? void 0 : s.hide_rescheduling_options)
|
|
@@ -9248,6 +9253,7 @@ const bn = Zt(class extends Xt {
|
|
|
9248
9253
|
}, [1, "nylas-organizer-confirmation-card", {
|
|
9249
9254
|
configSettings: [8, "config-settings"],
|
|
9250
9255
|
isLoading: [4, "is-loading"],
|
|
9256
|
+
themeConfig: [8, "theme-config"],
|
|
9251
9257
|
organizerConfirmationBookingId: [1, "organizer-confirmation-booking-id"],
|
|
9252
9258
|
selectedLanguage: [1, "selected-language"],
|
|
9253
9259
|
action: [32],
|
|
@@ -9274,6 +9280,7 @@ W2([
|
|
|
9274
9280
|
i && (!r || "error" in r) && i(r), await t.resetAction();
|
|
9275
9281
|
}
|
|
9276
9282
|
},
|
|
9283
|
+
localPropsToProp: /* @__PURE__ */ new Map([["themeConfig", "themeConfig"]]),
|
|
9277
9284
|
fireRegisterEvent: !0
|
|
9278
9285
|
}),
|
|
9279
9286
|
vr("design:type", Function),
|
|
@@ -22074,7 +22074,7 @@ function defineCustomElement$n() {
|
|
|
22074
22074
|
}
|
|
22075
22075
|
});
|
|
22076
22076
|
}
|
|
22077
|
-
const nylasFeedbackFormCss =
|
|
22077
|
+
const nylasFeedbackFormCss = ":host{display:block}.card-wrapper{background:var(--nylas-base-0);display:flex;flex-direction:column;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);position:relative;padding:32px;width:562px;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.card-wrapper{width:100%;border-radius:0px}}.header{overflow-wrap:anywhere;display:flex;flex-direction:column;font-size:1rem;font-weight:400}.header h2{color:var(--nylas-base-900);font-size:24px;font-weight:600;text-align:left;margin:0}.description.title-desc{margin-bottom:2rem}.description.footer-desc{margin-top:2rem}.description.footer-desc a{color:var(--nylas-primary);text-decoration:none}.description p{margin:0;font-size:18px;color:var(--nylas-base-600)}.footer{margin-top:1rem;padding-top:1rem;display:flex;justify-content:flex-end;gap:0.5rem;box-sizing:border-box;background-color:var(--nylas-base-25);width:100%;border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x)}.close-button{width:100%;display:flex;justify-content:flex-end}.close-button button-component button{padding:0;height:auto}.close-button button-component button:hover{background-color:transparent !important}button-component{--dot-color:var(--nylas-base-700)}", NylasFeedbackFormStyle0 = nylasFeedbackFormCss;
|
|
22078
22078
|
var __decorate$d = function(ve, ue, ge, Oe) {
|
|
22079
22079
|
var Ke = arguments.length, vt = Ke < 3 ? ue : Oe === null ? Oe = Object.getOwnPropertyDescriptor(ue, ge) : Oe, ln;
|
|
22080
22080
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -22091,7 +22091,7 @@ const NylasFeedbackForm = proxyCustomElement(class extends H$2 {
|
|
|
22091
22091
|
constructor() {
|
|
22092
22092
|
super(), this.__registerHost(), this.__attachShadow(), this.feedbackModalClosed = createEvent(this, "feedbackModalClosed", 7), this.feedbackSubmitted = createEvent(this, "feedbackSubmitted", 7), this.triggerValidation = createEvent(this, "triggerValidation", 7), this.handleConfirmBookingButtonClicked = () => {
|
|
22093
22093
|
this.triggerValidation.emit().defaultPrevented || this.feedbackSubmitted.emit({ feedback: this.feedbackMessage });
|
|
22094
|
-
}, this.feedbackMessage = "";
|
|
22094
|
+
}, this.themeConfig = void 0, this.feedbackMessage = "";
|
|
22095
22095
|
}
|
|
22096
22096
|
connectedCallback() {
|
|
22097
22097
|
}
|
|
@@ -22101,7 +22101,12 @@ const NylasFeedbackForm = proxyCustomElement(class extends H$2 {
|
|
|
22101
22101
|
debug("[nylas-feedback-form] Component will load");
|
|
22102
22102
|
}
|
|
22103
22103
|
async componentDidLoad() {
|
|
22104
|
-
debug("[nylas-feedback-form] Component did load");
|
|
22104
|
+
debug("[nylas-feedback-form] Component did load"), this.applyThemeConfig(this.themeConfig);
|
|
22105
|
+
}
|
|
22106
|
+
applyThemeConfig(ue) {
|
|
22107
|
+
if (ue)
|
|
22108
|
+
for (const [ge, Oe] of Object.entries(ue))
|
|
22109
|
+
this.host.style.setProperty(`${ge}`, Oe);
|
|
22105
22110
|
}
|
|
22106
22111
|
handleFormInputChanged(ue) {
|
|
22107
22112
|
debug("[nylas-feedback-form] Form input changed"), ue.detail.value && (this.triggerValidation.emit(), ue.detail.name === "feedback" && (this.feedbackMessage = ue.detail.value));
|
|
@@ -22110,9 +22115,9 @@ const NylasFeedbackForm = proxyCustomElement(class extends H$2 {
|
|
|
22110
22115
|
ue.preventDefault(), ue.stopImmediatePropagation(), this.feedbackModalClosed.emit();
|
|
22111
22116
|
}
|
|
22112
22117
|
render() {
|
|
22113
|
-
return h$2(Host, { key: "
|
|
22118
|
+
return h$2(Host, { key: "a2fdcdd71d0c4ff3902df64405da31a223eaf7d7", part: "nfbf" }, h$2("div", { key: "f9e8577b5357683928205b53ee81753a66a7e4ae", class: "card-wrapper", part: "nfbfc__card" }, h$2("div", { key: "d1bbb63d773ef30918549fe4a6737bf582ae0d06", class: "close-button" }, h$2("button-component", { key: "a418fa3fef1af84a1d504030e1bcafde4653e2ad", tooltip: "Close", id: "close", variant: "invisible", onClick: (ue) => this.closeModal(ue), part: "nfbf__close-button" }, h$2("close-icon", { key: "cc39f114e75f5554417718701175d44844ffc4a0" }))), h$2("div", { key: "d425f232a67162d7865986403819a9aa80641891", class: "header" }, h$2("h2", { key: "3ee4ce9fa02a86831ff4a292320fe890bfb728bf", slot: "card-title", part: "nfbf__title" }, instance.t("feedbackFormTitle"))), h$2("div", { key: "e190c2c7558cc3d292ecdd0efde36a5ba949406e", class: "description title-desc" }, h$2("p", { key: "bae5de83094598fa1794fac48f44d6385499183e" }, instance.t("feedbackFormDescription"))), h$2("textarea-component", { key: "2dbcd70b5d4c8035a2cc7e852fdd6dfe23650d92", label: instance.t("feedbackMessageLabel"), required: !0, maxLength: 500, part: "nfbf__description", name: "feedback", placeholder: instance.t("feedbackMessagePlaceholder") }), h$2("div", { key: "0970ad9b93148e325b85353e7ae79df9de057f10", class: "description footer-desc" }, h$2("p", { key: "3f20809d828a385b471916d5f53944d5438e0cff" }, "By sending this report, you agree to Nylas’ access to the data necessary to respond to this issue, subject to Nylas’", " ", h$2("a", { key: "bdb691d2575ba496607675f82bea362bfcb3dcdb", href: "https://www.nylas.com/privacy-policy/", target: "_blank", rel: "nofollow noreferrer noopener" }, "Privacy Policy"), ".")), h$2("div", { key: "7cfd02b5827dfbd325f49e8c0b055873ae9ab32a", class: {
|
|
22114
22119
|
footer: !0
|
|
22115
|
-
} }, h$2("button-component", { key: "
|
|
22120
|
+
} }, h$2("button-component", { key: "8d31999de17098830414f2944f52d94b59b903dd", variant: "invisible", onClick: (ue) => this.closeModal(ue), part: "nfbf__button-outline nfbf__cancel-cta" }, `${instance.t("feedbackModalCloseButton")}`), h$2("button-component", { key: "b802e92f4dba1467a54d90b730fc94161b41030c", variant: "primary", onClick: this.handleConfirmBookingButtonClicked, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${instance.t("feedbackModalSubmitButton")}`))));
|
|
22116
22121
|
}
|
|
22117
22122
|
get host() {
|
|
22118
22123
|
return this;
|
|
@@ -22121,6 +22126,7 @@ const NylasFeedbackForm = proxyCustomElement(class extends H$2 {
|
|
|
22121
22126
|
return NylasFeedbackFormStyle0;
|
|
22122
22127
|
}
|
|
22123
22128
|
}, [1, "nylas-feedback-form", {
|
|
22129
|
+
themeConfig: [8, "theme-config"],
|
|
22124
22130
|
feedbackMessage: [32]
|
|
22125
22131
|
}, [[4, "nylasFormInputChanged", "handleFormInputChanged"]]]);
|
|
22126
22132
|
__decorate$d([
|
|
@@ -22131,6 +22137,7 @@ __decorate$d([
|
|
|
22131
22137
|
feedbackSubmitted: async (ve, ue) => {
|
|
22132
22138
|
}
|
|
22133
22139
|
},
|
|
22140
|
+
localPropsToProp: /* @__PURE__ */ new Map([["themeConfig", "themeConfig"]]),
|
|
22134
22141
|
fireRegisterEvent: !0
|
|
22135
22142
|
}),
|
|
22136
22143
|
__metadata$d("design:type", Function),
|
|
@@ -30382,7 +30389,7 @@ const NylasEditorTabs = proxyCustomElement(class extends H$2 {
|
|
|
30382
30389
|
var ge, Oe;
|
|
30383
30390
|
debug("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !isInitialized() && init({
|
|
30384
30391
|
dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
|
|
30385
|
-
release: "1.1.
|
|
30392
|
+
release: "1.1.6",
|
|
30386
30393
|
integrations: (Ke) => [
|
|
30387
30394
|
...Ke.filter((vt) => !1),
|
|
30388
30395
|
feedbackSyncIntegration({
|
|
@@ -30421,7 +30428,7 @@ const NylasEditorTabs = proxyCustomElement(class extends H$2 {
|
|
|
30421
30428
|
captureContext: {
|
|
30422
30429
|
tags: {
|
|
30423
30430
|
"nylas-web-element": "nylas-scheduler-editor",
|
|
30424
|
-
"nylas-web-element-version": "1.1.
|
|
30431
|
+
"nylas-web-element-version": "1.1.6"
|
|
30425
30432
|
},
|
|
30426
30433
|
extra: {
|
|
30427
30434
|
configId: (Ke = this.selectedConfiguration) == null ? void 0 : Ke.id,
|
|
@@ -30582,21 +30589,21 @@ const NylasEditorTabs = proxyCustomElement(class extends H$2 {
|
|
|
30582
30589
|
var ge;
|
|
30583
30590
|
return ((ge = this.hideEditorTabs) == null ? void 0 : ge.includes(ue)) || !1;
|
|
30584
30591
|
}
|
|
30585
|
-
onFeedbackClick() {
|
|
30586
|
-
this.showFeedbackModal = !0;
|
|
30592
|
+
onFeedbackClick(ue) {
|
|
30593
|
+
ue.preventDefault(), this.showFeedbackModal = !0;
|
|
30587
30594
|
}
|
|
30588
30595
|
render() {
|
|
30589
30596
|
var ue, ge;
|
|
30590
|
-
return debug("[nylas-editor-tabs]", "render", this.formState), h$2(Host, { key: "
|
|
30597
|
+
return debug("[nylas-editor-tabs]", "render", this.formState), h$2(Host, { key: "d38db7df3b55dcd9df5d23c06a2257e483e4f881" }, h$2("form", { key: "f75efd88f7a329288e77933ca218fa88e9dd8a87", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (Oe) => this.formRef = Oe, noValidate: !0 }, this.mode === "app" ? h$2("div", { class: "form-contents" }, h$2("div", { class: "tabs" }, h$2("button", { name: Tab.EventInfo, class: { tab: !0, active: this.activeTab == Tab.EventInfo, hide: this.hideTab(Tab.EventInfo) }, part: "editortab__event-info", onClick: (Oe) => this.setActiveTab(Oe, Tab.EventInfo) }, h$2("calendar-info-icon", { width: "16", height: "16" }), "Event info"), h$2("button", { name: Tab.Availability, class: { tab: !0, active: this.activeTab == Tab.Availability, hide: this.hideTab(Tab.Availability) }, part: "editortab__availability", onClick: (Oe) => this.setActiveTab(Oe, Tab.Availability) }, h$2("calendar-patterns-icon", { width: "16", height: "16" }), "Availability"), h$2("button", { name: Tab.Participants, class: { tab: !0, active: this.activeTab == Tab.Participants, hide: this.hideTab(Tab.Participants) }, part: "editortab__participants", onClick: (Oe) => this.setActiveTab(Oe, Tab.Participants) }, h$2("people-icon", { width: "16", height: "16" }), "Participants"), h$2("button", { name: Tab.BookingOptions, class: { tab: !0, active: this.activeTab == Tab.BookingOptions, hide: this.hideTab(Tab.BookingOptions) }, part: "editortab__booking-options", onClick: (Oe) => this.setActiveTab(Oe, Tab.BookingOptions) }, h$2("flow-icon", { width: "16", height: "16" }), "Booking options"), h$2("button", { name: Tab.BookingForm, class: { tab: !0, active: this.activeTab == "bookingForm", hide: this.hideTab(Tab.BookingForm) }, part: "editortab__booking-form", onClick: (Oe) => this.setActiveTab(Oe, Tab.BookingForm) }, this.activeTab == Tab.BookingForm ? h$2("calendar-agenda-fill-icon", { width: "16", height: "16" }) : h$2("calendar-agenda-icon", { width: "16", height: "16" }), "Booking form"), h$2("button", { name: Tab.Communications, class: { tab: !0, active: this.activeTab == "communications", hide: this.hideTab(Tab.Communications) }, onClick: (Oe) => this.setActiveTab(Oe, Tab.Communications) }, this.activeTab == Tab.Communications ? h$2("envelope-fill-icon", { width: "16", height: "16" }) : h$2("envelope-icon", { width: "16", height: "16" }), "Communications"), h$2("button", { name: Tab.PageStyles, class: { tab: !0, active: this.activeTab == "pageStyles", hide: this.hideTab(Tab.PageStyles) }, onClick: (Oe) => this.setActiveTab(Oe, Tab.PageStyles) }, this.activeTab == Tab.PageStyles ? h$2("paintbrush-fill-icon", { width: "16", height: "16" }) : h$2("paintbrush-icon", { width: "16", height: "16" }), "Page styles")), h$2("div", { class: "tab-content" }, h$2(TabContents, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((ue = this.selectedConfiguration) == null ? void 0 : ue.id) ?? "new" }))) : h$2("div", { class: "composable", key: (ge = this.selectedConfiguration) == null ? void 0 : ge.id }, h$2("slot", null)), h$2("div", { key: "33fa467828de45477cb14547e83cd91d3316d1de", class: "footer", part: "editor__footer" }, h$2("div", { key: "e94586ffcb339ed0134db7dba554add942b9658b", class: "preview", part: "editor__footer-preview" }, this.enableUserFeedback && h$2("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (Oe) => this.onFeedbackClick(Oe) }, h$2("feedback-icon", null))), h$2("div", { key: "ba9415c331d169876f6f64e048d295c494066fb0", class: "buttons", part: "editor__footer-buttons" }, h$2("p", { key: "b985139923dac06f300329c63100bb322a72e215", class: {
|
|
30591
30598
|
"unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
|
|
30592
30599
|
"saved-changes": this.changesSaved,
|
|
30593
30600
|
error: this.error !== "",
|
|
30594
30601
|
"error-full-width": this.error !== "" && this.action === "create"
|
|
30595
30602
|
} }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved ? "Unsaved changes" : this.error == "" && this.changesSaved ? "Changes saved!" : ""), this.schedulerPreviewLink !== "" && this.action === "edit" && h$2("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (Oe) => {
|
|
30596
30603
|
Oe.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(parsePreviewLink(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
|
|
30597
|
-
}, variant: "basic" }, h$2("eye-icon", null)), h$2("button-component", { key: "
|
|
30604
|
+
}, variant: "basic" }, h$2("eye-icon", null)), h$2("button-component", { key: "e8b658f3fe6dea039818fe7e5803c7876dcf516a", type: "button", disabled: this.isLoading, clickHandler: (Oe) => {
|
|
30598
30605
|
Oe.preventDefault(), this.cancelButtonClick.emit(), this.error = "";
|
|
30599
|
-
}, variant: "basic", part: "editor__footer-cancel" }, "Back"), h$2("button-component", { key: "
|
|
30606
|
+
}, variant: "basic", part: "editor__footer-cancel" }, "Back"), h$2("button-component", { key: "def3baeb44f02d4a168d4946fe46c158d9872d8a", type: "submit", disabled: this.isLoading, part: "editor__footer-cta" }, this.isLoading ? h$2("span", null, "Saving", h$2("loading-icon", null), " ") : this.action === "create" ? "Create" : "Save changes")))), this.showFeedbackModal && h$2("nylas-feedback-form", null));
|
|
30600
30607
|
}
|
|
30601
30608
|
get host() {
|
|
30602
30609
|
return this;
|