@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
|
@@ -11637,7 +11637,7 @@ function lx() {
|
|
|
11637
11637
|
}
|
|
11638
11638
|
});
|
|
11639
11639
|
}
|
|
11640
|
-
const cx =
|
|
11640
|
+
const cx = ":host{display:block;width:400px;font-family:var(--nylas-font-family)}.nylas-cancel-booking-form{display:flex;align-items:center;flex-direction:column;background-color:var(--nylas-base-0);color:var(--nylas-base-800);border-radius:var(--nylas-border-radius-2x);padding:1.5rem;position:relative;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}.nylas-cancel-booking-form form{width:100%}.nylas-cancel-booking-form__title{font-size:18px;font-weight:600;margin-bottom:0;color:var(--nylas-base-900)}.nylas-cancel-booking-form__description{font-size:1rem;font-style:normal;font-weight:400;line-height:140%;color:var(--nylas-base-600);padding-bottom:1.25rem}.nylas-cancel-booking-form__calendar-icon{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)}calendar-cancel-icon{display:flex;align-items:center;justify-content:center;height:100%}.footer{display:grid;grid-template-columns:1fr 1fr;width:100%;padding-top:1.25rem;gap:1rem;border-top:1px solid var(--nylas-base-200);margin-top:1.25rem}", fx = cx;
|
|
11641
11641
|
var dx = function(n, e, t, r) {
|
|
11642
11642
|
var i = arguments.length, s = i < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, t) : r, u;
|
|
11643
11643
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -11676,7 +11676,7 @@ const ii = tt(class extends nt {
|
|
|
11676
11676
|
this.cancelBookedEventError.emit(l);
|
|
11677
11677
|
};
|
|
11678
11678
|
this.cancelBookingId ? this.cancelBookingFormSubmitted.emit({ bookingId: this.cancelBookingId, action: "cancel", reason: this.cancellationReason, errorHandler: s }) : this.rejectBookingId && this.cancelBookingFormSubmitted.emit({ bookingId: this.rejectBookingId, action: "reject", reason: this.cancellationReason, errorHandler: s });
|
|
11679
|
-
}, this.cancelBookingId = void 0, this.rejectBookingId = void 0, this.selectedTimeslot = void 0, this.configSettings = void 0, this.eventInfo = void 0, this.isLoading = void 0, this.cancellationReason = "", this.cancellationError = "", this.cancellationPolicy = ((t = (e = this.configSettings) == null ? void 0 : e.scheduler) == null ? void 0 : t.cancellation_policy) || "Your current timeslot will become available to others.";
|
|
11679
|
+
}, this.cancelBookingId = void 0, this.rejectBookingId = void 0, this.selectedTimeslot = void 0, this.configSettings = void 0, this.eventInfo = void 0, this.isLoading = void 0, this.themeConfig = void 0, this.cancellationReason = "", this.cancellationError = "", this.cancellationPolicy = ((t = (e = this.configSettings) == null ? void 0 : e.scheduler) == null ? void 0 : t.cancellation_policy) || "Your current timeslot will become available to others.";
|
|
11680
11680
|
}
|
|
11681
11681
|
configSettingsChangedHandler(e) {
|
|
11682
11682
|
var t;
|
|
@@ -11689,17 +11689,25 @@ const ii = tt(class extends nt {
|
|
|
11689
11689
|
Te("[nylas-cancel-booking-form] Component will load");
|
|
11690
11690
|
}
|
|
11691
11691
|
async componentDidLoad() {
|
|
11692
|
-
Te("[nylas-cancel-booking-form] Component did load"), this.cancelBookingId || console.warn('[nylas-cancel-booking-form] No booking ID provided, "cancelBookingId" prop is required.');
|
|
11692
|
+
Te("[nylas-cancel-booking-form] Component did load"), this.cancelBookingId || console.warn('[nylas-cancel-booking-form] No booking ID provided, "cancelBookingId" prop is required.'), this.applyThemeConfig(this.themeConfig);
|
|
11693
11693
|
}
|
|
11694
11694
|
disconnectedCallback() {
|
|
11695
11695
|
Te("[nylas-cancel-booking-form] Component disconnected");
|
|
11696
11696
|
}
|
|
11697
|
+
applyThemeConfig(e) {
|
|
11698
|
+
if (e)
|
|
11699
|
+
for (const [t, r] of Object.entries(e))
|
|
11700
|
+
this.host.style.setProperty(`${t}`, r);
|
|
11701
|
+
}
|
|
11697
11702
|
handleNylasFormInputChanged(e) {
|
|
11698
11703
|
this.triggerValidation.emit({}), e.detail.name === "cancel-reason" && (this.cancellationReason = e.detail.value, this.cancellationError = e.detail.error);
|
|
11699
11704
|
}
|
|
11700
11705
|
render() {
|
|
11701
11706
|
var e, t;
|
|
11702
|
-
return z(As, { key: "
|
|
11707
|
+
return z(As, { key: "4e09c3c77a5a4a5138366431c50db2731ce08921", part: "ncbf" }, z("div", { key: "3cc3f35b457f947d6f368b7857d6529e640800e4", class: "nylas-cancel-booking-form", part: "ncbf__card" }, z("div", { key: "41001fcfa02096c97a909c1a2172349d5c77ceba", class: "nylas-cancel-booking-form__calendar-icon", part: "ncbf__icon" }, z("calendar-cancel-icon", { key: "328274c7fe7351574cb43565b4ee1d8500d0cdcf" })), z("h3", { key: "4a702b5a6b7712336370b82f993a5c36655a4de2", class: "nylas-cancel-booking-form__title", part: "ncbf__title" }, ve.t("cancelBookingTitle")), z("div", { key: "3d28b48ce8f84a843cfd96b57340d624e7cc0efc", class: "nylas-cancel-booking-form__description", part: "ncbf__description" }, (t = (e = this.configSettings) == null ? void 0 : e.scheduler) != null && t.cancellation_policy ? this.cancellationPolicy : `${ve.t("cancelBookingMessage")}`), z("form", { key: "d1363507571afe0b46f47697830ca603dd206abe", onSubmit: this.handleSubmitCancelBooking }, z("textarea-component", { key: "4256de3a9d7b2cf05a45388c9916f9bc38e82b80", id: "cancel-reason", name: "cancel-reason", required: !0, label: ve.t("reasonForCancellation"), class: this.cancellationError ? "error" : "", part: "ncbf__reason-textarea", defaultValue: this.cancellationReason }), z("div", { key: "fc0169e6090700c9ac26db55b6b10f8614bf408e", class: "footer" }, z("button-component", { key: "e348ccaabd354669178d4c5def1ac9c545b8b5ac", variant: "destructive", class: "cancel", type: "submit", part: "ncbf__button-cta", disabled: this.isLoading }, ve.t("cancelBookingButton")), !!this.eventInfo && z("button-component", { variant: "basic", class: "back", part: "ncbf__button-outline", onClick: this.handleGoBackClicked }, ve.t("goBackButton"))))));
|
|
11708
|
+
}
|
|
11709
|
+
get host() {
|
|
11710
|
+
return this;
|
|
11703
11711
|
}
|
|
11704
11712
|
static get watchers() {
|
|
11705
11713
|
return {
|
|
@@ -11716,6 +11724,7 @@ const ii = tt(class extends nt {
|
|
|
11716
11724
|
configSettings: [16],
|
|
11717
11725
|
eventInfo: [16],
|
|
11718
11726
|
isLoading: [4, "is-loading"],
|
|
11727
|
+
themeConfig: [8, "theme-config"],
|
|
11719
11728
|
cancellationReason: [32],
|
|
11720
11729
|
cancellationError: [32],
|
|
11721
11730
|
cancellationPolicy: [32]
|
|
@@ -11758,6 +11767,7 @@ dx([
|
|
|
11758
11767
|
Te("nylas-cancel-booking-form", "cancelBookingFormError", n.detail);
|
|
11759
11768
|
}
|
|
11760
11769
|
},
|
|
11770
|
+
localPropsToProp: /* @__PURE__ */ new Map([["themeConfig", "themeConfig"]]),
|
|
11761
11771
|
fireRegisterEvent: !0
|
|
11762
11772
|
}),
|
|
11763
11773
|
Zn("design:type", Function),
|
|
@@ -9193,7 +9193,7 @@ function q2() {
|
|
|
9193
9193
|
}
|
|
9194
9194
|
});
|
|
9195
9195
|
}
|
|
9196
|
-
const H2 =
|
|
9196
|
+
const H2 = ":host{display:block}.nylas-cancelled-event-card{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family);width:400px;background-color:var(--nylas-base-0);color:var(--nylas-base-800);border-radius:var(--nylas-border-radius-2x);padding:1.5rem;position:relative;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){.nylas-cancelled-event-card{width:inherit}}.nylas-cancelled-event-card__title{font-size:18px;font-weight:600;line-height:24px;color:var(--nylas-base-900);text-align:center}.nylas-cancelled-event-description{font-size:16px;font-weight:500;color:var(--nylas-base-600)}.nylas-cancelled-event-card__calendar-icon{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)}.nylas-cancelled-event-card__cta{width:100%;display:flex;flex-direction:row;align-items:flex-start;margin-top:1rem}calendar-cancel-icon{display:flex;align-items:center;justify-content:center;height:100%}button-component{width:100%}", z2 = H2;
|
|
9197
9197
|
var W2 = function(n, e, t, r) {
|
|
9198
9198
|
var u = arguments.length, i = u < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, t) : r, o;
|
|
9199
9199
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -9214,7 +9214,7 @@ const mn = Zt(class extends Xt {
|
|
|
9214
9214
|
this.cancelledEventCardError.emit(t), this.isClosing = !1;
|
|
9215
9215
|
};
|
|
9216
9216
|
this.closeCancelEventCardClicked.emit({ errorHandler: e });
|
|
9217
|
-
}, this.configSettings = void 0, this.cancelledEventInfo = void 0, this.isClosing = !1;
|
|
9217
|
+
}, this.configSettings = void 0, this.themeConfig = void 0, this.cancelledEventInfo = void 0, this.isClosing = !1;
|
|
9218
9218
|
}
|
|
9219
9219
|
connectedCallback() {
|
|
9220
9220
|
Se("[nylas-cancelled-event-card] Component connected");
|
|
@@ -9223,20 +9223,29 @@ const mn = Zt(class extends Xt {
|
|
|
9223
9223
|
Se("[nylas-cancelled-event-card] Component will load");
|
|
9224
9224
|
}
|
|
9225
9225
|
async componentDidLoad() {
|
|
9226
|
-
Se("[nylas-cancelled-event-card] Component did load"), this.cancelledEventInfo || console.warn('[nylas-cancelled-event-card] No cancelled event info provided, "cancelledEventInfo" prop is required.');
|
|
9226
|
+
Se("[nylas-cancelled-event-card] Component did load"), this.cancelledEventInfo || console.warn('[nylas-cancelled-event-card] No cancelled event info provided, "cancelledEventInfo" prop is required.'), this.applyThemeConfig(this.themeConfig);
|
|
9227
9227
|
}
|
|
9228
9228
|
disconnectedCallback() {
|
|
9229
9229
|
Se("[nylas-cancelled-event-card] Component disconnected");
|
|
9230
9230
|
}
|
|
9231
|
+
applyThemeConfig(e) {
|
|
9232
|
+
if (e)
|
|
9233
|
+
for (const [t, r] of Object.entries(e))
|
|
9234
|
+
this.host.style.setProperty(`${t}`, r);
|
|
9235
|
+
}
|
|
9231
9236
|
render() {
|
|
9232
9237
|
var e, t;
|
|
9233
|
-
return K(Du, { key: "
|
|
9238
|
+
return K(Du, { key: "4f1f7bf3b9d6376f5112b5f71b33bdce9bf59a19", part: "ncec" }, K("div", { key: "f485f11c84c501c1d56cac844ccc39fe09b758fb", class: "nylas-cancelled-event-card", part: "ncec__card" }, K("div", { key: "3ac26f67a660d1075b3d5f674b745db0c59125a2", class: "nylas-cancelled-event-card__calendar-icon", part: "ncec__icon" }, K("calendar-cancel-icon", { key: "4dc83661715f1525b3a5a45d69e336d7f0f9dbf1" })), K("h3", { key: "59446c3be2e213ca71124be2d33cae8c077b451d", class: "nylas-cancelled-event-card__title", part: "ncec__title" }, ze.t("bookingCancelledTitle"), "!"), K("div", { key: "6486085d435d558816573e6d2aa3840030707af2", class: "nylas-cancelled-event-card__description", part: "ncec__description" }, ze.t("bookingCancelledMessage"), " ", ((t = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : t.name) || "the participants", "."), K("div", { key: "e7ebffeb313b39f860df4776fe802beddc9eb86b", class: "nylas-cancelled-event-card__cta" }, K("button-component", { key: "35593203c58b837db2b7ce98d8cf214658b2e8a0", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${ze.t("closingButton")}...` : `${ze.t("closeButton")}`))));
|
|
9239
|
+
}
|
|
9240
|
+
get host() {
|
|
9241
|
+
return this;
|
|
9234
9242
|
}
|
|
9235
9243
|
static get style() {
|
|
9236
9244
|
return z2;
|
|
9237
9245
|
}
|
|
9238
9246
|
}, [1, "nylas-cancelled-event-card", {
|
|
9239
9247
|
configSettings: [16],
|
|
9248
|
+
themeConfig: [8, "theme-config"],
|
|
9240
9249
|
cancelledEventInfo: [16],
|
|
9241
9250
|
isClosing: [32]
|
|
9242
9251
|
}]);
|
|
@@ -9253,6 +9262,7 @@ W2([
|
|
|
9253
9262
|
Se("nylas-cancelled-event-card", "cancelledEventCardError", n.detail);
|
|
9254
9263
|
}
|
|
9255
9264
|
},
|
|
9265
|
+
localPropsToProp: /* @__PURE__ */ new Map([["themeConfig", "themeConfig"]]),
|
|
9256
9266
|
fireRegisterEvent: !0
|
|
9257
9267
|
}),
|
|
9258
9268
|
yr("design:type", Function),
|
|
@@ -9193,7 +9193,7 @@ function q2() {
|
|
|
9193
9193
|
}
|
|
9194
9194
|
});
|
|
9195
9195
|
}
|
|
9196
|
-
const H2 =
|
|
9196
|
+
const H2 = ":host{display:block}.nylas-confirmed-event-card{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family);width:400px;background-color:var(--nylas-base-0);color:var(--nylas-base-800);border-radius:var(--nylas-border-radius-2x);padding:1.5rem;position:relative;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){.nylas-confirmed-event-card{width:inherit}}.nylas-confirmed-event-card__title{font-size:18px;font-weight:600;line-height:24px;color:var(--nylas-base-900);text-align:center}.nylas-confirmed-event-description{font-size:16px;font-weight:500;color:var(--nylas-base-600)}.nylas-confirmed-event-card__calendar-icon{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)}.nylas-confirmed-event-card__cta{width:100%;display:flex;flex-direction:row;align-items:flex-start;margin-top:1rem}calendar-cancel-icon{display:flex;align-items:center;justify-content:center;height:100%}button-component{width:100%}", z2 = H2;
|
|
9197
9197
|
var W2 = function(n, e, t, r) {
|
|
9198
9198
|
var u = arguments.length, i = u < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, t) : r, o;
|
|
9199
9199
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -9214,7 +9214,7 @@ const mn = Zt(class extends Xt {
|
|
|
9214
9214
|
this.confirmedEventCardError.emit(t), this.isClosing = !1;
|
|
9215
9215
|
};
|
|
9216
9216
|
this.closeConfirmEventCardClicked.emit({ errorHandler: e });
|
|
9217
|
-
}, this.configSettings = void 0, this.confirmedEventInfo = void 0, this.isClosing = !1;
|
|
9217
|
+
}, this.configSettings = void 0, this.themeConfig = void 0, this.confirmedEventInfo = void 0, this.isClosing = !1;
|
|
9218
9218
|
}
|
|
9219
9219
|
connectedCallback() {
|
|
9220
9220
|
Re("[nylas-confirmed-event-card] Component connected");
|
|
@@ -9223,20 +9223,29 @@ const mn = Zt(class extends Xt {
|
|
|
9223
9223
|
Re("[nylas-confirmed-event-card] Component will load");
|
|
9224
9224
|
}
|
|
9225
9225
|
async componentDidLoad() {
|
|
9226
|
-
Re("[nylas-confirmed-event-card] Component did load"), this.confirmedEventInfo || console.warn('[nylas-confirmed-event-card] No confirmed event info provided, "confirmedEventInfo" prop is required.');
|
|
9226
|
+
Re("[nylas-confirmed-event-card] Component did load"), this.confirmedEventInfo || console.warn('[nylas-confirmed-event-card] No confirmed event info provided, "confirmedEventInfo" prop is required.'), this.applyThemeConfig(this.themeConfig);
|
|
9227
9227
|
}
|
|
9228
9228
|
disconnectedCallback() {
|
|
9229
9229
|
Re("[nylas-confirmed-event-card] Component disconnected");
|
|
9230
9230
|
}
|
|
9231
|
+
applyThemeConfig(e) {
|
|
9232
|
+
if (e)
|
|
9233
|
+
for (const [t, r] of Object.entries(e))
|
|
9234
|
+
this.host.style.setProperty(`${t}`, r);
|
|
9235
|
+
}
|
|
9231
9236
|
render() {
|
|
9232
9237
|
var e, t;
|
|
9233
|
-
return K(Du, { key: "
|
|
9238
|
+
return K(Du, { key: "089de1c1ba1b2319674b97aad4946fb8306ab4fe", part: "ncec" }, K("div", { key: "83c9b3f7904b7b74d38202c7d62891813754be93", class: "nylas-confirmed-event-card", part: "ncec__card" }, K("div", { key: "e6ebbc07f8ea697f4e1f794bb8ddddc5166db33d", class: "nylas-confirmed-event-card__calendar-icon", part: "ncec__icon" }, K("calendar-cancel-icon", { key: "eb0eb353b63bc5a8b55644a17f16c8566f3a7b36" })), K("h3", { key: "c05937028fd84a55b3b0b1de4cd36fb0b0c6b563", class: "nylas-confirmed-event-card__title", part: "ncec__title" }, ze.t("confirmedEventCardTitle"), "!"), K("div", { key: "e9ca9f67f46785d40e769ff96695001d56386dad", class: "nylas-confirmed-event-card__description", part: "ncec__description" }, ze.t("confirmedEventCardDescription"), " ", ((t = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : t.name) || "the participants", "."), K("div", { key: "bea8adea56d3dcdb2ce578ad25f08bc562b67ede", class: "nylas-confirmed-event-card__cta" }, K("button-component", { key: "6bed94150369d92e129fe62c4b6c292e37e26a34", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${ze.t("closingButton")}...` : `${ze.t("closeButton")}`))));
|
|
9239
|
+
}
|
|
9240
|
+
get host() {
|
|
9241
|
+
return this;
|
|
9234
9242
|
}
|
|
9235
9243
|
static get style() {
|
|
9236
9244
|
return z2;
|
|
9237
9245
|
}
|
|
9238
9246
|
}, [1, "nylas-confirmed-event-card", {
|
|
9239
9247
|
configSettings: [16],
|
|
9248
|
+
themeConfig: [8, "theme-config"],
|
|
9240
9249
|
confirmedEventInfo: [16],
|
|
9241
9250
|
isClosing: [32]
|
|
9242
9251
|
}]);
|
|
@@ -9250,6 +9259,7 @@ W2([
|
|
|
9250
9259
|
r && (!t || "error" in t) && r(t);
|
|
9251
9260
|
}
|
|
9252
9261
|
},
|
|
9262
|
+
localPropsToProp: /* @__PURE__ */ new Map([["themeConfig", "themeConfig"]]),
|
|
9253
9263
|
fireRegisterEvent: !0
|
|
9254
9264
|
}),
|
|
9255
9265
|
yr("design:type", Function),
|