@nylas/web-elements 1.1.1 → 1.1.2
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-availability-picker/nylas-availability-picker.es.js +202 -191
- package/dist/cdn/nylas-booking-calendar-picker/nylas-booking-calendar-picker.es.js +466 -455
- package/dist/cdn/nylas-booking-confirmation-redirect/nylas-booking-confirmation-redirect.es.js +299 -288
- package/dist/cdn/nylas-booking-confirmation-type/nylas-booking-confirmation-type.es.js +330 -319
- package/dist/cdn/nylas-booking-form/nylas-booking-form.es.js +440 -426
- package/dist/cdn/nylas-booking-form-config/nylas-booking-form-config.es.js +174 -163
- package/dist/cdn/nylas-buffer-time/nylas-buffer-time.es.js +469 -458
- package/dist/cdn/nylas-custom-event-slug/nylas-custom-event-slug.es.js +194 -194
- package/dist/cdn/nylas-editor-tabs/nylas-editor-tabs.es.js +20 -9
- package/dist/cdn/nylas-event-duration/nylas-event-duration.es.js +357 -346
- package/dist/cdn/nylas-event-location/nylas-event-location.es.js +502 -491
- package/dist/cdn/nylas-limit-future-bookings/nylas-limit-future-bookings.es.js +325 -314
- package/dist/cdn/nylas-list-configurations/nylas-list-configurations.es.js +239 -228
- package/dist/cdn/nylas-locale-switch/nylas-locale-switch.es.js +235 -224
- package/dist/cdn/nylas-min-booking-notice/nylas-min-booking-notice.es.js +325 -314
- package/dist/cdn/nylas-min-cancellation-notice/nylas-min-cancellation-notice.es.js +209 -198
- package/dist/cdn/nylas-participant-booking-calendars/nylas-participant-booking-calendars.es.js +249 -238
- package/dist/cdn/nylas-participants-custom-availability/nylas-participants-custom-availability.es.js +801 -790
- package/dist/cdn/nylas-reminder-emails/nylas-reminder-emails.es.js +287 -276
- package/dist/cdn/nylas-reminder-time/nylas-reminder-time.es.js +334 -323
- package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +23 -12
- package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +587 -559
- package/dist/cdn/nylas-scheduling-method/nylas-scheduling-method.es.js +275 -264
- package/dist/cdn/nylas-timeslot-interval/nylas-timeslot-interval.es.js +353 -342
- package/dist/cdn/select-dropdown/select-dropdown.es.js +108 -97
- package/dist/cdn/time-period-selector/time-period-selector.es.js +340 -329
- package/dist/cjs/calendar-agenda-fill-icon_48.cjs.entry.js +5 -4
- package/dist/cjs/calendar-agenda-fill-icon_48.cjs.entry.js.map +1 -1
- package/dist/cjs/chevron-icon_3.cjs.entry.js +14 -1
- package/dist/cjs/chevron-icon_3.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js +11 -7
- package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-booking-form.cjs.entry.js +11 -7
- package/dist/cjs/nylas-booking-form.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-custom-event-slug.cjs.entry.js +5 -4
- package/dist/cjs/nylas-custom-event-slug.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +2 -1
- package/dist/cjs/nylas-scheduler-editor.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-scheduling.cjs.entry.js +25 -4
- package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-web-elements.cjs.js +1 -1
- package/dist/cjs/select-dropdown.cjs.entry.js +14 -1
- package/dist/cjs/select-dropdown.cjs.entry.js.map +1 -1
- package/dist/collection/components/design-system/select-dropdown/select-dropdown.js +33 -1
- package/dist/collection/components/design-system/select-dropdown/select-dropdown.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js +17 -7
- package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +26 -5
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-custom-event-slug/nylas-custom-event-slug.css +6 -2
- package/dist/collection/components/scheduler-editor/nylas-custom-event-slug/nylas-custom-event-slug.js +4 -3
- package/dist/collection/components/scheduler-editor/nylas-custom-event-slug/nylas-custom-event-slug.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/ExpressFlow.js +2 -1
- package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/ExpressFlow.js.map +1 -1
- package/dist/components/nylas-booking-form2.js +12 -8
- package/dist/components/nylas-booking-form2.js.map +1 -1
- package/dist/components/nylas-custom-event-slug2.js +5 -4
- package/dist/components/nylas-custom-event-slug2.js.map +1 -1
- package/dist/components/nylas-scheduler-editor.js +2 -1
- package/dist/components/nylas-scheduler-editor.js.map +1 -1
- package/dist/components/nylas-scheduling.js +25 -4
- package/dist/components/nylas-scheduling.js.map +1 -1
- package/dist/components/select-dropdown2.js +14 -1
- package/dist/components/select-dropdown2.js.map +1 -1
- package/dist/esm/calendar-agenda-fill-icon_48.entry.js +5 -4
- package/dist/esm/calendar-agenda-fill-icon_48.entry.js.map +1 -1
- package/dist/esm/chevron-icon_3.entry.js +14 -1
- package/dist/esm/chevron-icon_3.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nylas-booked-event-card_12.entry.js +11 -7
- package/dist/esm/nylas-booked-event-card_12.entry.js.map +1 -1
- package/dist/esm/nylas-booking-form.entry.js +11 -7
- package/dist/esm/nylas-booking-form.entry.js.map +1 -1
- package/dist/esm/nylas-custom-event-slug.entry.js +5 -4
- package/dist/esm/nylas-custom-event-slug.entry.js.map +1 -1
- package/dist/esm/nylas-scheduler-editor.entry.js +2 -1
- package/dist/esm/nylas-scheduler-editor.entry.js.map +1 -1
- package/dist/esm/nylas-scheduling.entry.js +25 -4
- package/dist/esm/nylas-scheduling.entry.js.map +1 -1
- package/dist/esm/nylas-web-elements.js +1 -1
- package/dist/esm/select-dropdown.entry.js +14 -1
- package/dist/esm/select-dropdown.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-booking-form.entry.js +11 -7
- package/dist/nylas-web-elements/nylas-booking-form.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-custom-event-slug.entry.js +5 -4
- package/dist/nylas-web-elements/nylas-custom-event-slug.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js +2 -1
- package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-scheduling.entry.js +25 -4
- package/dist/nylas-web-elements/nylas-scheduling.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/{p-670e4bd1.entry.js → p-795ebe60.entry.js} +2 -2
- package/dist/nylas-web-elements/p-795ebe60.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-d32d9a1d.entry.js → p-8dee5c91.entry.js} +2 -2
- package/dist/nylas-web-elements/p-8dee5c91.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-8fdc5d3d.entry.js +2 -0
- package/dist/nylas-web-elements/p-8fdc5d3d.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-efa03f8c.entry.js +2 -0
- package/dist/nylas-web-elements/p-efa03f8c.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-fbec0698.entry.js +2 -0
- package/dist/nylas-web-elements/p-fbec0698.entry.js.map +1 -0
- package/dist/nylas-web-elements/select-dropdown.entry.js +14 -1
- package/dist/nylas-web-elements/select-dropdown.entry.js.map +1 -1
- package/dist/types/components/design-system/select-dropdown/select-dropdown.d.ts +6 -0
- package/dist/types/components/scheduler/nylas-booking-form/nylas-booking-form.d.ts +6 -0
- package/dist/types/components/scheduler/nylas-scheduling/nylas-scheduling.d.ts +1 -0
- package/dist/types/components/scheduler-editor/nylas-custom-event-slug/nylas-custom-event-slug.d.ts +0 -1
- package/dist/types/components.d.ts +15 -0
- package/package.json +1 -1
- package/dist/nylas-web-elements/p-14e194b2.entry.js +0 -2
- package/dist/nylas-web-elements/p-14e194b2.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-169a3f6d.entry.js +0 -2
- package/dist/nylas-web-elements/p-169a3f6d.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-670e4bd1.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-8ad09f72.entry.js +0 -2
- package/dist/nylas-web-elements/p-8ad09f72.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-d32d9a1d.entry.js.map +0 -1
|
@@ -20093,19 +20093,30 @@ function defineCustomElement$H() {
|
|
|
20093
20093
|
}
|
|
20094
20094
|
const selectDropdownCss = ':host{display:block;position:relative;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:100%}@media screen and (max-width: 768px){:host{position:unset}}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0}label .error{color:var(--nylas-error)}.dropdown{display:inline-block;width:inherit}.dropbtn{color:var(--nylas-base-800);padding:14px;font-size:1rem;font-family:var(--nylas-font-family);cursor:pointer;display:flex;justify-content:space-between;gap:0.5rem;background:transparent;border:1px solid var(--nylas-base-300);border-radius:var(--nylas-border-radius-2x)}.dropbtn.error{border:1px solid var(--nylas-error)}.dropbtn.focus{background:transparent}.dropbtn:hover,.dropbtn:active{outline:1px solid var(--nylas-primary)}.dropbtn:active{outline:2px solid var(--nylas-primary)}.dropbtn span.chevron{display:flex;align-self:center}.dropbtn span.open{transform:rotate(90deg)}.dropbtn span.closed{transform:rotate(270deg)}.dropbtn span.selected-option{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:144px;font-size:14px;line-height:20px}@media screen and (max-width: 768px){.dropbtn span.selected-option{max-width:124px;font-size:16px}}.dropdown-content{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.05);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1)}@media screen and (max-width: 768px){.dropdown-content{right:0;width:325px;max-width:unset}}.search-box{border-bottom:1px solid var(--nylas-base-200);padding:10px;position:sticky;top:0;background:var(--nylas-base-0)}.search-box .icon{position:absolute;top:1.25rem;left:1.25rem;color:var(--nylas-base-300)}.dropdown-content ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.dropdown-content ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.dropdown-content ul li:hover,.dropdown-content ul li:focus{background-color:var(--nylas-base-100)}.dropdown-content .selected{background-color:#e7e7e7}input[type=text]{width:-webkit-fill-available;padding:inherit;border:1px solid #ccc;border-radius:4px;position:sticky;background:no-repeat scroll 7px 7px;padding-left:30px;background-size:16px 16px}', SelectDropdownStyle0 = selectDropdownCss, SelectDropdown = proxyCustomElement(class extends H$2 {
|
|
20095
20095
|
constructor() {
|
|
20096
|
-
super(), this.__registerHost(), this.__attachShadow(), this.nylasFormDropdownChanged = createEvent(this, "nylasFormDropdownChanged", 7), this.componentType = "select-dropdown", this.name = void 0, this.options = [], this.defaultSelectedOption = null, this.withSearch = !0, this.label = void 0, this.required = !1, this.pluralizedLabel = "", this.dropdownButtonText = void 0, this.withChevron = !0, this.selectedOption = void 0, this.isOpen = !1, this.searchValue = "", this.filteredOptions = [...this.options], this.ariaActivedescendant = "", this.errorMessage = "";
|
|
20096
|
+
super(), this.__registerHost(), this.__attachShadow(), this.nylasFormDropdownChanged = createEvent(this, "nylasFormDropdownChanged", 7), this.nylasFormDropdownDefaultSelected = createEvent(this, "nylasFormDropdownDefaultSelected", 7), this.componentType = "select-dropdown", this.name = void 0, this.options = [], this.defaultSelectedOption = null, this.withSearch = !0, this.label = void 0, this.required = !1, this.pluralizedLabel = "", this.dropdownButtonText = void 0, this.withChevron = !0, this.selectedOption = void 0, this.isOpen = !1, this.searchValue = "", this.filteredOptions = [...this.options], this.ariaActivedescendant = "", this.errorMessage = "";
|
|
20097
20097
|
}
|
|
20098
20098
|
optionsChangedHandler(t, n) {
|
|
20099
20099
|
t !== n && (this.filteredOptions = t);
|
|
20100
20100
|
}
|
|
20101
20101
|
defaultSelectedOptionChangedHandler(t, n) {
|
|
20102
|
-
typeof t > "u" || (t == null ? void 0 : t.label) === (n == null ? void 0 : n.label) || (this.selectedOption = t
|
|
20102
|
+
typeof t > "u" || (t == null ? void 0 : t.label) === (n == null ? void 0 : n.label) || (this.selectedOption = t, this.nylasFormDropdownDefaultSelected.emit({
|
|
20103
|
+
value: (t == null ? void 0 : t.value) || "",
|
|
20104
|
+
name: this.name,
|
|
20105
|
+
error: this.errorMessage,
|
|
20106
|
+
label: this.label
|
|
20107
|
+
}));
|
|
20103
20108
|
}
|
|
20104
20109
|
componentWillLoad() {
|
|
20105
20110
|
this.el.setAttribute("component-type", this.componentType);
|
|
20106
20111
|
}
|
|
20107
20112
|
componentDidLoad() {
|
|
20108
|
-
|
|
20113
|
+
var t;
|
|
20114
|
+
this.filteredOptions = this.options, this.selectedOption = this.defaultSelectedOption, !this.selectedOption && this.options.length > 0 && (this.selectedOption = this.options[0]), this.nylasFormDropdownDefaultSelected.emit({
|
|
20115
|
+
value: ((t = this.selectedOption) == null ? void 0 : t.value) || "",
|
|
20116
|
+
name: this.name,
|
|
20117
|
+
error: this.errorMessage,
|
|
20118
|
+
label: this.label
|
|
20119
|
+
});
|
|
20109
20120
|
}
|
|
20110
20121
|
handleBookingFormSubmitted(t) {
|
|
20111
20122
|
var n;
|
|
@@ -20179,7 +20190,7 @@ const selectDropdownCss = ':host{display:block;position:relative;--nylas-primary
|
|
|
20179
20190
|
}
|
|
20180
20191
|
render() {
|
|
20181
20192
|
const t = this.generateButtonText(this.selectedOption, this.dropdownButtonText);
|
|
20182
|
-
return h("div", { key: "
|
|
20193
|
+
return h("div", { key: "4b724d892194708b2dcd0ed74c8e23486ba2b4f7", class: "dropdown", part: "sd_dropdown" }, h("label", { key: "06d33f4f5daa7c09eed054505989210e35c2beb5", part: "sd_dropdown_label", class: { error: !!this.errorMessage } }, this.label && h("p", null, h("span", { class: "label" }, this.label), this.required && h("span", { class: "required" }, "*")), h("button", { key: "8e5952f7e2a1279670304e82f329da3e8e60522a", part: "sd_dropdown-button", class: { dropbtn: !0, open: this.isOpen, error: !!this.errorMessage }, onClick: () => this.toggleDropdown(), "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? "true" : "false", "aria-label": this.name, onKeyDown: (n) => this.handleSelectButtonKeyDown(n) }, h("slot", { key: "aece407da3b35858b9ec1248d09447706b3120cc", name: "select-icon", "aria-hidden": "true" }), h("span", { key: "55aae4a92f862c81533635999fb60693705cb12b", class: "selected-option", part: "sd_dropdown-button-selected-label" }, t), this.withChevron && h("span", { class: {
|
|
20183
20194
|
open: this.isOpen,
|
|
20184
20195
|
closed: !this.isOpen,
|
|
20185
20196
|
chevron: !0
|
|
@@ -23729,7 +23740,7 @@ function defineCustomElement$s() {
|
|
|
23729
23740
|
}
|
|
23730
23741
|
});
|
|
23731
23742
|
}
|
|
23732
|
-
const nylasCustomEventSlugCss = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-custom-event-slug{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-custom-event-slug .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-custom-event-slug .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-custom-event-slug .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-custom-event-slug .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-custom-event-slug .header .drawer-toggle .chevron:hover,.nylas-custom-event-slug .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-custom-event-slug .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__body{display:grid;grid-template-columns:1fr;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body{grid-template-columns:1fr}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{border:none}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row{display:flex;align-items:center;gap:1rem}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label{display:flex;align-items:center}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon{margin-left:4px}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon tooltip-component{display:flex}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row .input-container{width:100%}.nylas-custom-event-slug .nylas-custom-event-slug__body span.error-message{color:var(--nylas-error)}.nylas-custom-event-slug .nylas-custom-event-slug__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;width:-moz-available;width:-webkit-fill-available;display:flex;flex-direction:row;gap:0.125rem;border-radius:var(--nylas-border-radius-2x);z-index:1}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper:focus{outline-color:var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error::placeholder{font-weight:400}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper::placeholder{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.focus{outline:2px solid var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-color:var(--nylas-error);outline:none}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper input-component::part(ic__input){outline:none;border:none;width:100%;font-size:1rem;height:auto;padding-left:0px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .prefix{z-index:1;margin-top:1px;color:var(--nylas-base-
|
|
23743
|
+
const nylasCustomEventSlugCss = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-custom-event-slug{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-custom-event-slug .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-custom-event-slug .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-custom-event-slug .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-custom-event-slug .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-custom-event-slug .header .drawer-toggle .chevron:hover,.nylas-custom-event-slug .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-custom-event-slug .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__body{display:grid;grid-template-columns:1fr;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body{grid-template-columns:1fr}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{border:none}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row{display:flex;align-items:center;gap:1rem}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label{display:flex;align-items:center}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon{margin-left:4px}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon tooltip-component{display:flex}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row .input-container{width:100%}.nylas-custom-event-slug .nylas-custom-event-slug__body span.error-message{color:var(--nylas-error)}.nylas-custom-event-slug .nylas-custom-event-slug__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;width:-moz-available;width:-webkit-fill-available;display:flex;flex-direction:row;gap:0.125rem;border-radius:var(--nylas-border-radius-2x);z-index:1}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper:focus{outline-color:var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error::placeholder{font-weight:400}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper::placeholder{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.focus{outline:2px solid var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-color:var(--nylas-error);outline:none}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper input-component::part(ic__input){outline:none;border:none;width:100%;font-size:1rem;height:auto;padding-left:0px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .prefix{z-index:1;margin-top:1px;color:var(--nylas-base-400);font-weight:500;font-size:24px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon{margin-right:0.25rem;padding:0 0.75rem;height:100%;display:flex;align-items:center;right:0;cursor:pointer;user-select:none}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon.disabled{cursor:not-allowed}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon:hover svg path{fill:var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon:active svg path{fill:var(--nylas-base-500)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon .copied{display:flex;align-items:center;font-size:0.875rem;gap:0.125rem}', NylasCustomEventSlugStyle0 = nylasCustomEventSlugCss;
|
|
23733
23744
|
var __decorate$i = function(a, t, n, r) {
|
|
23734
23745
|
var s = arguments.length, c = s < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, b;
|
|
23735
23746
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -23744,7 +23755,7 @@ var __decorate$i = function(a, t, n, r) {
|
|
|
23744
23755
|
};
|
|
23745
23756
|
const NylasCustomEventSlug = proxyCustomElement(class extends H$2 {
|
|
23746
23757
|
constructor() {
|
|
23747
|
-
super(), this.__registerHost(), this.__attachShadow(), this.valueChanged = createEvent(this, "valueChanged", 7), this.internals = this.attachInternals(), this.
|
|
23758
|
+
super(), this.__registerHost(), this.__attachShadow(), this.valueChanged = createEvent(this, "valueChanged", 7), this.internals = this.attachInternals(), this.selectedConfiguration = void 0, this.defaultUrlSlug = void 0, this.isOpen = !0, this.slugErrorMessage = "", this.name = "custom-event-slug", this.requiresSlug = !1, this.urlSlug = void 0, this.focus = !1, this.copied = !1;
|
|
23748
23759
|
}
|
|
23749
23760
|
connectedCallback() {
|
|
23750
23761
|
debug("nylas-custom-event-slug", "connectedCallback");
|
|
@@ -23784,7 +23795,7 @@ const NylasCustomEventSlug = proxyCustomElement(class extends H$2 {
|
|
|
23784
23795
|
this.focus = !0;
|
|
23785
23796
|
}
|
|
23786
23797
|
async nylasFormInputBlurHandler() {
|
|
23787
|
-
if (this.focus = !1, this.requiresSlug && this.urlSlug === "") {
|
|
23798
|
+
if (this.slugErrorMessage = "", this.internals.setValidity({}), this.focus = !1, this.requiresSlug && this.urlSlug === "") {
|
|
23788
23799
|
this.internals.setValidity({ customError: !0 }, "Slug is required"), this.slugErrorMessage = "Slug cannot be blank";
|
|
23789
23800
|
return;
|
|
23790
23801
|
}
|
|
@@ -23798,7 +23809,7 @@ const NylasCustomEventSlug = proxyCustomElement(class extends H$2 {
|
|
|
23798
23809
|
}
|
|
23799
23810
|
async copyToClipboard() {
|
|
23800
23811
|
try {
|
|
23801
|
-
await navigator.clipboard.writeText(`${this.
|
|
23812
|
+
await navigator.clipboard.writeText(`${this.urlSlug}`), this.copied = !0, setTimeout(() => {
|
|
23802
23813
|
this.copied = !1;
|
|
23803
23814
|
}, 1e3);
|
|
23804
23815
|
} catch (t) {
|
|
@@ -23809,7 +23820,7 @@ const NylasCustomEventSlug = proxyCustomElement(class extends H$2 {
|
|
|
23809
23820
|
if (!this.requiresSlug)
|
|
23810
23821
|
return null;
|
|
23811
23822
|
const t = typeof this.urlSlug < "u";
|
|
23812
|
-
return h(Host, null, h("div", { class: "nylas-custom-event-slug", part: "nces" }, h("div", { class: "header", part: "nces__header" }, h("div", null, h("h3", null, "Custom event slug"), h("p", null, "Create a custom URL slug for this event")), h("div", { class: "drawer-toggle", part: "nces__drawer-toggle--container" }, h("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleDrawer() }, h("chevron-icon", { width: "24", height: "24" })))), this.isOpen && h("div", { class: "nylas-custom-event-slug__body", part: "nces__body" }, h("div", { class: "nylas-custom-event-slug__section" }, h("div", { class: "nylas-custom-event-slug__row" }, h("div", { class: "input-container" }, h("label", null, "Event URL slug", h("span", { class: "label-icon" }, h("tooltip-component", null, h("info-icon", { slot: "tooltip-icon" }), h("span", { slot: "tooltip-content" }, "Provide a custom slug for your URL to help uniquely identify your event (letters, numbers, and hyphens only)")))), h("div", { class: { "nylas-custom-event-slug__input-wrapper": !0, focus: this.focus, error: !!this.slugErrorMessage } }, h("div", { slot: "prefix", class: "prefix" },
|
|
23823
|
+
return h(Host, null, h("div", { class: "nylas-custom-event-slug", part: "nces" }, h("div", { class: "header", part: "nces__header" }, h("div", null, h("h3", null, "Custom event slug"), h("p", null, "Create a custom URL slug for this event")), h("div", { class: "drawer-toggle", part: "nces__drawer-toggle--container" }, h("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleDrawer() }, h("chevron-icon", { width: "24", height: "24" })))), this.isOpen && h("div", { class: "nylas-custom-event-slug__body", part: "nces__body" }, h("div", { class: "nylas-custom-event-slug__section" }, h("div", { class: "nylas-custom-event-slug__row" }, h("div", { class: "input-container" }, h("label", null, "Event URL slug", h("span", { class: "label-icon" }, h("tooltip-component", null, h("info-icon", { slot: "tooltip-icon" }), h("span", { slot: "tooltip-content" }, "Provide a custom slug for your URL to help uniquely identify your event (letters, numbers, and hyphens only)")))), h("div", { class: { "nylas-custom-event-slug__input-wrapper": !0, focus: this.focus, error: !!this.slugErrorMessage } }, h("div", { slot: "prefix", class: "prefix" }, "/"), t && h("input-component", { name: "event-slug", id: "event-slug", type: "text", required: !1, placeholder: "my-link-name", exportparts: "ic_input: nces__input-textfield", defaultValue: this.urlSlug }), h("div", { slot: "icon", class: { icon: !0, disabled: !this.urlSlug }, onClick: () => !this.copied && !!this.urlSlug && this.copyToClipboard() }, this.copied ? h("div", { class: "copied" }, h("checkmark-icon", { width: "12", height: "18" }), " Copied!") : h("copy-icon", { width: "12", height: "18" }))), this.slugErrorMessage && h("span", { class: "error-message" }, this.slugErrorMessage)))))));
|
|
23813
23824
|
}
|
|
23814
23825
|
static get formAssociated() {
|
|
23815
23826
|
return !0;
|
|
@@ -28747,8 +28758,8 @@ const LoginRequired = ({ authenticationUrl: a }) => h(
|
|
|
28747
28758
|
)
|
|
28748
28759
|
);
|
|
28749
28760
|
function ExpressFlow({ selectedConfiguration: a, currentUser: t, calendars: n }) {
|
|
28750
|
-
var
|
|
28751
|
-
const r = ((
|
|
28761
|
+
var c;
|
|
28762
|
+
const r = ((c = a == null ? void 0 : a.participants) == null ? void 0 : c.find((b) => b.is_organizer)) ?? t, s = n == null ? void 0 : n.find((b) => b.is_primary);
|
|
28752
28763
|
return h(
|
|
28753
28764
|
Fragment,
|
|
28754
28765
|
null,
|
|
@@ -28763,7 +28774,7 @@ function ExpressFlow({ selectedConfiguration: a, currentUser: t, calendars: n })
|
|
|
28763
28774
|
h("nylas-event-location", { userProvider: t.provider })
|
|
28764
28775
|
)
|
|
28765
28776
|
),
|
|
28766
|
-
h("nylas-booking-calendar-picker", { calendars: n, currentUser: t, defaultBookingCalendar: r == null ? void 0 : r.email }),
|
|
28777
|
+
h("nylas-booking-calendar-picker", { calendars: n, currentUser: t, defaultBookingCalendar: (s == null ? void 0 : s.id) || (r == null ? void 0 : r.email) }),
|
|
28767
28778
|
h("nylas-scheduling-method", { exportparts: "nsm, nsm__header, nsm__input-label, nsm__dropdown, nsm__dropdown-button, nsm__dropdown-content" }),
|
|
28768
28779
|
h("nylas-custom-event-slug", { name: "custom-event-slug", exportparts: "nces, nces__body, nces__header, nces__drawer-toggle--container, nces__input-textfield" })
|
|
28769
28780
|
);
|