@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
|
@@ -16899,19 +16899,30 @@ function a1() {
|
|
|
16899
16899
|
}
|
|
16900
16900
|
const cL = ':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}', sL = cL, pL = U(class extends j {
|
|
16901
16901
|
constructor() {
|
|
16902
|
-
super(), this.__registerHost(), this.__attachShadow(), this.nylasFormDropdownChanged = c0(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 = "";
|
|
16902
|
+
super(), this.__registerHost(), this.__attachShadow(), this.nylasFormDropdownChanged = c0(this, "nylasFormDropdownChanged", 7), this.nylasFormDropdownDefaultSelected = c0(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 = "";
|
|
16903
16903
|
}
|
|
16904
16904
|
optionsChangedHandler(e, t) {
|
|
16905
16905
|
e !== t && (this.filteredOptions = e);
|
|
16906
16906
|
}
|
|
16907
16907
|
defaultSelectedOptionChangedHandler(e, t) {
|
|
16908
|
-
typeof e > "u" || (e == null ? void 0 : e.label) === (t == null ? void 0 : t.label) || (this.selectedOption = e
|
|
16908
|
+
typeof e > "u" || (e == null ? void 0 : e.label) === (t == null ? void 0 : t.label) || (this.selectedOption = e, this.nylasFormDropdownDefaultSelected.emit({
|
|
16909
|
+
value: (e == null ? void 0 : e.value) || "",
|
|
16910
|
+
name: this.name,
|
|
16911
|
+
error: this.errorMessage,
|
|
16912
|
+
label: this.label
|
|
16913
|
+
}));
|
|
16909
16914
|
}
|
|
16910
16915
|
componentWillLoad() {
|
|
16911
16916
|
this.el.setAttribute("component-type", this.componentType);
|
|
16912
16917
|
}
|
|
16913
16918
|
componentDidLoad() {
|
|
16914
|
-
|
|
16919
|
+
var e;
|
|
16920
|
+
this.filteredOptions = this.options, this.selectedOption = this.defaultSelectedOption, !this.selectedOption && this.options.length > 0 && (this.selectedOption = this.options[0]), this.nylasFormDropdownDefaultSelected.emit({
|
|
16921
|
+
value: ((e = this.selectedOption) == null ? void 0 : e.value) || "",
|
|
16922
|
+
name: this.name,
|
|
16923
|
+
error: this.errorMessage,
|
|
16924
|
+
label: this.label
|
|
16925
|
+
});
|
|
16915
16926
|
}
|
|
16916
16927
|
handleBookingFormSubmitted(e) {
|
|
16917
16928
|
var t;
|
|
@@ -16985,7 +16996,7 @@ const cL = ':host{display:block;position:relative;--nylas-primary:#2563eb;--nyla
|
|
|
16985
16996
|
}
|
|
16986
16997
|
render() {
|
|
16987
16998
|
const e = this.generateButtonText(this.selectedOption, this.dropdownButtonText);
|
|
16988
|
-
return s("div", { key: "
|
|
16999
|
+
return s("div", { key: "4b724d892194708b2dcd0ed74c8e23486ba2b4f7", class: "dropdown", part: "sd_dropdown" }, s("label", { key: "06d33f4f5daa7c09eed054505989210e35c2beb5", part: "sd_dropdown_label", class: { error: !!this.errorMessage } }, this.label && s("p", null, s("span", { class: "label" }, this.label), this.required && s("span", { class: "required" }, "*")), s("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: (t) => this.handleSelectButtonKeyDown(t) }, s("slot", { key: "aece407da3b35858b9ec1248d09447706b3120cc", name: "select-icon", "aria-hidden": "true" }), s("span", { key: "55aae4a92f862c81533635999fb60693705cb12b", class: "selected-option", part: "sd_dropdown-button-selected-label" }, e), this.withChevron && s("span", { class: {
|
|
16989
17000
|
open: this.isOpen,
|
|
16990
17001
|
closed: !this.isOpen,
|
|
16991
17002
|
chevron: !0
|
|
@@ -20535,7 +20546,7 @@ function Iw() {
|
|
|
20535
20546
|
}
|
|
20536
20547
|
});
|
|
20537
20548
|
}
|
|
20538
|
-
const Pw = ':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-
|
|
20549
|
+
const Pw = ':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}', $w = Pw;
|
|
20539
20550
|
var Fw = function(n, e, t, o) {
|
|
20540
20551
|
var i = arguments.length, a = i < 3 ? e : o === null ? o = Object.getOwnPropertyDescriptor(e, t) : o, r;
|
|
20541
20552
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -20550,7 +20561,7 @@ var Fw = function(n, e, t, o) {
|
|
|
20550
20561
|
};
|
|
20551
20562
|
const Q4 = U(class extends j {
|
|
20552
20563
|
constructor() {
|
|
20553
|
-
super(), this.__registerHost(), this.__attachShadow(), this.valueChanged = c0(this, "valueChanged", 7), this.internals = this.attachInternals(), this.
|
|
20564
|
+
super(), this.__registerHost(), this.__attachShadow(), this.valueChanged = c0(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;
|
|
20554
20565
|
}
|
|
20555
20566
|
connectedCallback() {
|
|
20556
20567
|
u("nylas-custom-event-slug", "connectedCallback");
|
|
@@ -20590,7 +20601,7 @@ const Q4 = U(class extends j {
|
|
|
20590
20601
|
this.focus = !0;
|
|
20591
20602
|
}
|
|
20592
20603
|
async nylasFormInputBlurHandler() {
|
|
20593
|
-
if (this.focus = !1, this.requiresSlug && this.urlSlug === "") {
|
|
20604
|
+
if (this.slugErrorMessage = "", this.internals.setValidity({}), this.focus = !1, this.requiresSlug && this.urlSlug === "") {
|
|
20594
20605
|
this.internals.setValidity({ customError: !0 }, "Slug is required"), this.slugErrorMessage = "Slug cannot be blank";
|
|
20595
20606
|
return;
|
|
20596
20607
|
}
|
|
@@ -20604,7 +20615,7 @@ const Q4 = U(class extends j {
|
|
|
20604
20615
|
}
|
|
20605
20616
|
async copyToClipboard() {
|
|
20606
20617
|
try {
|
|
20607
|
-
await navigator.clipboard.writeText(`${this.
|
|
20618
|
+
await navigator.clipboard.writeText(`${this.urlSlug}`), this.copied = !0, setTimeout(() => {
|
|
20608
20619
|
this.copied = !1;
|
|
20609
20620
|
}, 1e3);
|
|
20610
20621
|
} catch (e) {
|
|
@@ -20615,7 +20626,7 @@ const Q4 = U(class extends j {
|
|
|
20615
20626
|
if (!this.requiresSlug)
|
|
20616
20627
|
return null;
|
|
20617
20628
|
const e = typeof this.urlSlug < "u";
|
|
20618
|
-
return s(h0, null, s("div", { class: "nylas-custom-event-slug", part: "nces" }, s("div", { class: "header", part: "nces__header" }, s("div", null, s("h3", null, "Custom event slug"), s("p", null, "Create a custom URL slug for this event")), s("div", { class: "drawer-toggle", part: "nces__drawer-toggle--container" }, s("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleDrawer() }, s("chevron-icon", { width: "24", height: "24" })))), this.isOpen && s("div", { class: "nylas-custom-event-slug__body", part: "nces__body" }, s("div", { class: "nylas-custom-event-slug__section" }, s("div", { class: "nylas-custom-event-slug__row" }, s("div", { class: "input-container" }, s("label", null, "Event URL slug", s("span", { class: "label-icon" }, s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, "Provide a custom slug for your URL to help uniquely identify your event (letters, numbers, and hyphens only)")))), s("div", { class: { "nylas-custom-event-slug__input-wrapper": !0, focus: this.focus, error: !!this.slugErrorMessage } }, s("div", { slot: "prefix", class: "prefix" },
|
|
20629
|
+
return s(h0, null, s("div", { class: "nylas-custom-event-slug", part: "nces" }, s("div", { class: "header", part: "nces__header" }, s("div", null, s("h3", null, "Custom event slug"), s("p", null, "Create a custom URL slug for this event")), s("div", { class: "drawer-toggle", part: "nces__drawer-toggle--container" }, s("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleDrawer() }, s("chevron-icon", { width: "24", height: "24" })))), this.isOpen && s("div", { class: "nylas-custom-event-slug__body", part: "nces__body" }, s("div", { class: "nylas-custom-event-slug__section" }, s("div", { class: "nylas-custom-event-slug__row" }, s("div", { class: "input-container" }, s("label", null, "Event URL slug", s("span", { class: "label-icon" }, s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, "Provide a custom slug for your URL to help uniquely identify your event (letters, numbers, and hyphens only)")))), s("div", { class: { "nylas-custom-event-slug__input-wrapper": !0, focus: this.focus, error: !!this.slugErrorMessage } }, s("div", { slot: "prefix", class: "prefix" }, "/"), e && s("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 }), s("div", { slot: "icon", class: { icon: !0, disabled: !this.urlSlug }, onClick: () => !this.copied && !!this.urlSlug && this.copyToClipboard() }, this.copied ? s("div", { class: "copied" }, s("checkmark-icon", { width: "12", height: "18" }), " Copied!") : s("copy-icon", { width: "12", height: "18" }))), this.slugErrorMessage && s("span", { class: "error-message" }, this.slugErrorMessage)))))));
|
|
20619
20630
|
}
|
|
20620
20631
|
static get formAssociated() {
|
|
20621
20632
|
return !0;
|