@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const k = {
|
|
2
2
|
allRenderFn: !1,
|
|
3
3
|
cmpDidLoad: !0,
|
|
4
4
|
cmpDidUnload: !1,
|
|
@@ -87,10 +87,10 @@ const S = {
|
|
|
87
87
|
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
88
88
|
experimentalSlotFixes: !1
|
|
89
89
|
};
|
|
90
|
-
let T, z, L,
|
|
90
|
+
let T, z, L, re = !1, M = !1, I = !1, v = !1, Q = null, P = !1;
|
|
91
91
|
const O = (t, e = "") => () => {
|
|
92
|
-
},
|
|
93
|
-
function
|
|
92
|
+
}, Se = "slot-fb{display:contents}slot-fb[hidden]{display:none}", X = "http://www.w3.org/1999/xlink", Z = {}, ke = "http://www.w3.org/2000/svg", we = "http://www.w3.org/1999/xhtml", Oe = (t) => t != null, K = (t) => (t = typeof t, t === "object" || t === "function");
|
|
93
|
+
function Te(t) {
|
|
94
94
|
var e, s, n;
|
|
95
95
|
return (n = (s = (e = t.head) === null || e === void 0 ? void 0 : e.querySelector('meta[name="csp-nonce"]')) === null || s === void 0 ? void 0 : s.getAttribute("content")) !== null && n !== void 0 ? n : void 0;
|
|
96
96
|
}
|
|
@@ -98,7 +98,7 @@ const p = (t, e, ...s) => {
|
|
|
98
98
|
let n = null, o = null, l = null, i = !1, a = !1;
|
|
99
99
|
const r = [], $ = (c) => {
|
|
100
100
|
for (let h = 0; h < c.length; h++)
|
|
101
|
-
n = c[h], Array.isArray(n) ? $(n) : n != null && typeof n != "boolean" && ((i = typeof t != "function" && !K(n)) && (n = String(n)), i && a ? r[r.length - 1].$text$ += n : r.push(i ?
|
|
101
|
+
n = c[h], Array.isArray(n) ? $(n) : n != null && typeof n != "boolean" && ((i = typeof t != "function" && !K(n)) && (n = String(n)), i && a ? r[r.length - 1].$text$ += n : r.push(i ? F(null, n) : n), a = i);
|
|
102
102
|
};
|
|
103
103
|
if ($(s), e) {
|
|
104
104
|
e.key && (o = e.key), e.name && (l = e.name);
|
|
@@ -108,10 +108,10 @@ const p = (t, e, ...s) => {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
if (typeof t == "function")
|
|
111
|
-
return t(e === null ? {} : e, r,
|
|
112
|
-
const f =
|
|
111
|
+
return t(e === null ? {} : e, r, Le);
|
|
112
|
+
const f = F(t, null);
|
|
113
113
|
return f.$attrs$ = e, r.length > 0 && (f.$children$ = r), f.$key$ = o, f.$name$ = l, f;
|
|
114
|
-
},
|
|
114
|
+
}, F = (t, e) => {
|
|
115
115
|
const s = {
|
|
116
116
|
$flags$: 0,
|
|
117
117
|
$tag$: t,
|
|
@@ -120,9 +120,9 @@ const p = (t, e, ...s) => {
|
|
|
120
120
|
$children$: null
|
|
121
121
|
};
|
|
122
122
|
return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;
|
|
123
|
-
},
|
|
123
|
+
}, Ce = {}, Ee = (t) => t && t.$tag$ === Ce, Le = {
|
|
124
124
|
forEach: (t, e) => t.map(G).forEach(e),
|
|
125
|
-
map: (t, e) => t.map(G).map(e).map(
|
|
125
|
+
map: (t, e) => t.map(G).map(e).map(De)
|
|
126
126
|
}, G = (t) => ({
|
|
127
127
|
vattrs: t.$attrs$,
|
|
128
128
|
vchildren: t.$children$,
|
|
@@ -130,15 +130,15 @@ const p = (t, e, ...s) => {
|
|
|
130
130
|
vname: t.$name$,
|
|
131
131
|
vtag: t.$tag$,
|
|
132
132
|
vtext: t.$text$
|
|
133
|
-
}),
|
|
133
|
+
}), De = (t) => {
|
|
134
134
|
if (typeof t.vtag == "function") {
|
|
135
135
|
const s = Object.assign({}, t.vattrs);
|
|
136
136
|
return t.vkey && (s.key = t.vkey), t.vname && (s.name = t.vname), p(t.vtag, s, ...t.vchildren || []);
|
|
137
137
|
}
|
|
138
|
-
const e =
|
|
138
|
+
const e = F(t.vtag, t.vtext);
|
|
139
139
|
return e.$attrs$ = t.vattrs, e.$children$ = t.vchildren, e.$key$ = t.vkey, e.$name$ = t.vname, e;
|
|
140
|
-
}, Ae = (t) => it.map((e) => e(t)).find((e) => !!e),
|
|
141
|
-
const n =
|
|
140
|
+
}, Ae = (t) => it.map((e) => e(t)).find((e) => !!e), _e = (t, e) => t != null && !K(t) ? e & 4 ? t === "false" ? !1 : t === "" || !!t : e & 2 ? parseFloat(t) : e & 1 ? String(t) : t : t, Re = (t) => t, J = (t, e, s) => {
|
|
141
|
+
const n = Re(t);
|
|
142
142
|
return {
|
|
143
143
|
emit: (o) => Me(n, e, {
|
|
144
144
|
bubbles: !!(s & 4),
|
|
@@ -150,34 +150,34 @@ const p = (t, e, ...s) => {
|
|
|
150
150
|
}, Me = (t, e, s) => {
|
|
151
151
|
const n = g.ce(e, s);
|
|
152
152
|
return t.dispatchEvent(n), n;
|
|
153
|
-
},
|
|
153
|
+
}, Y = /* @__PURE__ */ new WeakMap(), Fe = (t, e, s) => {
|
|
154
154
|
let n = H.get(t);
|
|
155
155
|
at && s ? (n = n || new CSSStyleSheet(), typeof n == "string" ? n = e : n.replaceSync(e)) : n = e, H.set(t, n);
|
|
156
|
-
},
|
|
156
|
+
}, Be = (t, e, s) => {
|
|
157
157
|
var n;
|
|
158
|
-
const o =
|
|
158
|
+
const o = ae(e, s), l = H.get(o);
|
|
159
159
|
if (t = t.nodeType === 11 ? t : m, l)
|
|
160
160
|
if (typeof l == "string") {
|
|
161
161
|
t = t.head || t;
|
|
162
|
-
let i =
|
|
163
|
-
if (i ||
|
|
162
|
+
let i = Y.get(t), a;
|
|
163
|
+
if (i || Y.set(t, i = /* @__PURE__ */ new Set()), !i.has(o)) {
|
|
164
164
|
{
|
|
165
165
|
a = m.createElement("style"), a.innerHTML = l;
|
|
166
|
-
const r = (n = g.$nonce$) !== null && n !== void 0 ? n :
|
|
166
|
+
const r = (n = g.$nonce$) !== null && n !== void 0 ? n : Te(m);
|
|
167
167
|
r != null && a.setAttribute("nonce", r), t.insertBefore(a, t.querySelector("link"));
|
|
168
168
|
}
|
|
169
|
-
e.$flags$ & 4 && (a.innerHTML +=
|
|
169
|
+
e.$flags$ & 4 && (a.innerHTML += Se), i && i.add(o);
|
|
170
170
|
}
|
|
171
171
|
} else t.adoptedStyleSheets.includes(l) || (t.adoptedStyleSheets = [...t.adoptedStyleSheets, l]);
|
|
172
172
|
return o;
|
|
173
173
|
}, He = (t) => {
|
|
174
|
-
const e = t.$cmpMeta$, s = t.$hostElement$, n = e.$flags$, o = O("attachStyles", e.$tagName$), l =
|
|
174
|
+
const e = t.$cmpMeta$, s = t.$hostElement$, n = e.$flags$, o = O("attachStyles", e.$tagName$), l = Be(s.shadowRoot ? s.shadowRoot : s.getRootNode(), e, t.$modeName$);
|
|
175
175
|
n & 10 && (s["s-sc"] = l, s.classList.add(l + "-h"), n & 2 && s.classList.add(l + "-s")), o();
|
|
176
|
-
},
|
|
176
|
+
}, ae = (t, e) => "sc-" + (e && t.$flags$ & 32 ? t.$tagName$ + "-" + e : t.$tagName$), V = (t, e, s, n, o, l) => {
|
|
177
177
|
if (s !== n) {
|
|
178
|
-
let i =
|
|
178
|
+
let i = oe(t, e), a = e.toLowerCase();
|
|
179
179
|
if (e === "class") {
|
|
180
|
-
const r = t.classList, $ =
|
|
180
|
+
const r = t.classList, $ = ee(s), f = ee(n);
|
|
181
181
|
r.remove(...$.filter((c) => c && !f.includes(c))), r.add(...f.filter((c) => c && !$.includes(c)));
|
|
182
182
|
} else if (e === "style") {
|
|
183
183
|
for (const r in s)
|
|
@@ -188,8 +188,8 @@ const p = (t, e, ...s) => {
|
|
|
188
188
|
if (e === "ref")
|
|
189
189
|
n && n(t);
|
|
190
190
|
else if (!t.__lookupSetter__(e) && e[0] === "o" && e[1] === "n") {
|
|
191
|
-
if (e[2] === "-" ? e = e.slice(3) :
|
|
192
|
-
const r = e.endsWith(
|
|
191
|
+
if (e[2] === "-" ? e = e.slice(3) : oe(U, a) ? e = a.slice(2) : e = a[2] + e.slice(3), s || n) {
|
|
192
|
+
const r = e.endsWith(ce);
|
|
193
193
|
e = e.replace(ze, ""), s && g.rel(t, e, s, r), n && g.ael(t, e, n, r);
|
|
194
194
|
}
|
|
195
195
|
} else {
|
|
@@ -208,16 +208,16 @@ const p = (t, e, ...s) => {
|
|
|
208
208
|
a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, $ = !0), n == null || n === !1 ? (n !== !1 || t.getAttribute(e) === "") && ($ ? t.removeAttributeNS(X, e) : t.removeAttribute(e)) : (!i || l & 4 || o) && !r && (n = n === !0 ? "" : n, $ ? t.setAttributeNS(X, e, n) : t.setAttribute(e, n));
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
}, Ue = /\s/,
|
|
211
|
+
}, Ue = /\s/, ee = (t) => t ? t.split(Ue) : [], ce = "Capture", ze = new RegExp(ce + "$"), de = (t, e, s, n) => {
|
|
212
212
|
const o = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, l = t && t.$attrs$ || Z, i = e.$attrs$ || Z;
|
|
213
213
|
for (n in l)
|
|
214
|
-
n in i ||
|
|
214
|
+
n in i || V(o, n, l[n], void 0, s, e.$flags$);
|
|
215
215
|
for (n in i)
|
|
216
|
-
|
|
217
|
-
},
|
|
216
|
+
V(o, n, l[n], i[n], s, e.$flags$);
|
|
217
|
+
}, B = (t, e, s, n) => {
|
|
218
218
|
const o = e.$children$[s];
|
|
219
219
|
let l = 0, i, a, r;
|
|
220
|
-
if (
|
|
220
|
+
if (re || (I = !0, o.$tag$ === "slot" && (T && n.classList.add(T + "-s"), o.$flags$ |= o.$children$ ? (
|
|
221
221
|
// slot element has fallback content
|
|
222
222
|
2
|
|
223
223
|
) : (
|
|
@@ -228,30 +228,30 @@ const p = (t, e, ...s) => {
|
|
|
228
228
|
else if (o.$flags$ & 1)
|
|
229
229
|
i = o.$elm$ = m.createTextNode("");
|
|
230
230
|
else {
|
|
231
|
-
if (v || (v = o.$tag$ === "svg"), i = o.$elm$ = m.createElementNS(v ? ke :
|
|
231
|
+
if (v || (v = o.$tag$ === "svg"), i = o.$elm$ = m.createElementNS(v ? ke : we, o.$flags$ & 2 ? "slot-fb" : o.$tag$), v && o.$tag$ === "foreignObject" && (v = !1), de(null, o, v), Oe(T) && i["s-si"] !== T && i.classList.add(i["s-si"] = T), o.$children$)
|
|
232
232
|
for (l = 0; l < o.$children$.length; ++l)
|
|
233
|
-
a =
|
|
233
|
+
a = B(t, o, l, i), a && i.appendChild(a);
|
|
234
234
|
o.$tag$ === "svg" ? v = !1 : i.tagName === "foreignObject" && (v = !0);
|
|
235
235
|
}
|
|
236
|
-
return i["s-hn"] = L, o.$flags$ & 3 && (i["s-sr"] = !0, i["s-cr"] = z, i["s-sn"] = o.$name$ || "", r = t && t.$children$ && t.$children$[s], r && r.$tag$ === o.$tag$ && t.$elm$ &&
|
|
237
|
-
},
|
|
236
|
+
return i["s-hn"] = L, o.$flags$ & 3 && (i["s-sr"] = !0, i["s-cr"] = z, i["s-sn"] = o.$name$ || "", r = t && t.$children$ && t.$children$[s], r && r.$tag$ === o.$tag$ && t.$elm$ && D(t.$elm$, !1)), i;
|
|
237
|
+
}, D = (t, e) => {
|
|
238
238
|
g.$flags$ |= 1;
|
|
239
239
|
const s = t.childNodes;
|
|
240
240
|
for (let n = s.length - 1; n >= 0; n--) {
|
|
241
241
|
const o = s[n];
|
|
242
|
-
o["s-hn"] !== L && o["s-ol"] && (
|
|
242
|
+
o["s-hn"] !== L && o["s-ol"] && ($e(o).insertBefore(o, q(o)), o["s-ol"].remove(), o["s-ol"] = void 0, o["s-sh"] = void 0, I = !0), e && D(o, e);
|
|
243
243
|
}
|
|
244
244
|
g.$flags$ &= -2;
|
|
245
|
-
},
|
|
245
|
+
}, fe = (t, e, s, n, o, l) => {
|
|
246
246
|
let i = t["s-cr"] && t["s-cr"].parentNode || t, a;
|
|
247
247
|
for (i.shadowRoot && i.tagName === L && (i = i.shadowRoot); o <= l; ++o)
|
|
248
|
-
n[o] && (a =
|
|
249
|
-
},
|
|
248
|
+
n[o] && (a = B(null, s, o, t), a && (n[o].$elm$ = a, i.insertBefore(a, q(e))));
|
|
249
|
+
}, he = (t, e, s) => {
|
|
250
250
|
for (let n = e; n <= s; ++n) {
|
|
251
251
|
const o = t[n];
|
|
252
252
|
if (o) {
|
|
253
253
|
const l = o.$elm$;
|
|
254
|
-
|
|
254
|
+
ge(o), l && (M = !0, l["s-ol"] ? l["s-ol"].remove() : D(l, !0), l.remove());
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
}, Pe = (t, e, s, n, o = !1) => {
|
|
@@ -270,23 +270,23 @@ const p = (t, e, ...s) => {
|
|
|
270
270
|
else if (R(c, u, o))
|
|
271
271
|
C(c, u, o), c = e[--$], u = n[--h];
|
|
272
272
|
else if (R(f, u, o))
|
|
273
|
-
(f.$tag$ === "slot" || u.$tag$ === "slot") &&
|
|
273
|
+
(f.$tag$ === "slot" || u.$tag$ === "slot") && D(f.$elm$.parentNode, !1), C(f, u, o), t.insertBefore(f.$elm$, c.$elm$.nextSibling), f = e[++l], u = n[--h];
|
|
274
274
|
else if (R(c, d, o))
|
|
275
|
-
(f.$tag$ === "slot" || u.$tag$ === "slot") &&
|
|
275
|
+
(f.$tag$ === "slot" || u.$tag$ === "slot") && D(c.$elm$.parentNode, !1), C(c, d, o), t.insertBefore(c.$elm$, f.$elm$), c = e[--$], d = n[++i];
|
|
276
276
|
else {
|
|
277
277
|
for (a = -1, r = l; r <= $; ++r)
|
|
278
278
|
if (e[r] && e[r].$key$ !== null && e[r].$key$ === d.$key$) {
|
|
279
279
|
a = r;
|
|
280
280
|
break;
|
|
281
281
|
}
|
|
282
|
-
a >= 0 ? (y = e[a], y.$tag$ !== d.$tag$ ? b =
|
|
282
|
+
a >= 0 ? (y = e[a], y.$tag$ !== d.$tag$ ? b = B(e && e[i], s, a, t) : (C(y, d, o), e[a] = void 0, b = y.$elm$), d = n[++i]) : (b = B(e && e[i], s, i, t), d = n[++i]), b && $e(f.$elm$).insertBefore(b, q(f.$elm$));
|
|
283
283
|
}
|
|
284
|
-
l > $ ?
|
|
285
|
-
}, R = (t, e, s = !1) => t.$tag$ === e.$tag$ ? t.$tag$ === "slot" ? t.$name$ === e.$name$ : s ? !0 : t.$key$ === e.$key$ : !1, q = (t) => t && t["s-ol"] || t,
|
|
284
|
+
l > $ ? fe(t, n[h + 1] == null ? null : n[h + 1].$elm$, s, n, i, h) : i > h && he(e, l, $);
|
|
285
|
+
}, R = (t, e, s = !1) => t.$tag$ === e.$tag$ ? t.$tag$ === "slot" ? t.$name$ === e.$name$ : s ? !0 : t.$key$ === e.$key$ : !1, q = (t) => t && t["s-ol"] || t, $e = (t) => (t["s-ol"] ? t["s-ol"] : t).parentNode, C = (t, e, s = !1) => {
|
|
286
286
|
const n = e.$elm$ = t.$elm$, o = t.$children$, l = e.$children$, i = e.$tag$, a = e.$text$;
|
|
287
287
|
let r;
|
|
288
|
-
a === null ? (v = i === "svg" ? !0 : i === "foreignObject" ? !1 : v, i === "slot" ||
|
|
289
|
-
},
|
|
288
|
+
a === null ? (v = i === "svg" ? !0 : i === "foreignObject" ? !1 : v, i === "slot" || de(t, e, v), o !== null && l !== null ? Pe(n, o, e, l, s) : l !== null ? (t.$text$ !== null && (n.textContent = ""), fe(n, null, e, l, 0, l.length - 1)) : o !== null && he(o, 0, o.length - 1), v && i === "svg" && (v = !1)) : (r = n["s-cr"]) ? r.parentNode.textContent = a : t.$text$ !== a && (n.data = a);
|
|
289
|
+
}, pe = (t) => {
|
|
290
290
|
const e = t.childNodes;
|
|
291
291
|
for (const s of e)
|
|
292
292
|
if (s.nodeType === 1) {
|
|
@@ -306,42 +306,42 @@ const p = (t, e, ...s) => {
|
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
|
|
309
|
+
pe(s);
|
|
310
310
|
}
|
|
311
|
-
}, x = [],
|
|
311
|
+
}, x = [], ue = (t) => {
|
|
312
312
|
let e, s, n;
|
|
313
313
|
for (const o of t.childNodes) {
|
|
314
314
|
if (o["s-sr"] && (e = o["s-cr"]) && e.parentNode) {
|
|
315
315
|
s = e.parentNode.childNodes;
|
|
316
316
|
const l = o["s-sn"];
|
|
317
317
|
for (n = s.length - 1; n >= 0; n--)
|
|
318
|
-
if (e = s[n], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== o["s-hn"] && !
|
|
319
|
-
if (
|
|
318
|
+
if (e = s[n], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== o["s-hn"] && !k.experimentalSlotFixes)
|
|
319
|
+
if (te(e, l)) {
|
|
320
320
|
let i = x.find((a) => a.$nodeToRelocate$ === e);
|
|
321
321
|
M = !0, e["s-sn"] = e["s-sn"] || l, i ? (i.$nodeToRelocate$["s-sh"] = o["s-hn"], i.$slotRefNode$ = o) : (e["s-sh"] = o["s-hn"], x.push({
|
|
322
322
|
$slotRefNode$: o,
|
|
323
323
|
$nodeToRelocate$: e
|
|
324
324
|
})), e["s-sr"] && x.map((a) => {
|
|
325
|
-
|
|
325
|
+
te(a.$nodeToRelocate$, e["s-sn"]) && (i = x.find((r) => r.$nodeToRelocate$ === e), i && !a.$slotRefNode$ && (a.$slotRefNode$ = i.$slotRefNode$));
|
|
326
326
|
});
|
|
327
327
|
} else x.some((i) => i.$nodeToRelocate$ === e) || x.push({
|
|
328
328
|
$nodeToRelocate$: e
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
|
-
o.nodeType === 1 &&
|
|
331
|
+
o.nodeType === 1 && ue(o);
|
|
332
332
|
}
|
|
333
|
-
},
|
|
334
|
-
t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(
|
|
333
|
+
}, te = (t, e) => t.nodeType === 1 ? t.getAttribute("slot") === null && e === "" || t.getAttribute("slot") === e : t["s-sn"] === e ? !0 : e === "", ge = (t) => {
|
|
334
|
+
t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(ge);
|
|
335
335
|
}, je = (t, e, s = !1) => {
|
|
336
336
|
var n, o, l, i, a;
|
|
337
|
-
const r = t.$hostElement$, $ = t.$cmpMeta$, f = t.$vnode$ ||
|
|
337
|
+
const r = t.$hostElement$, $ = t.$cmpMeta$, f = t.$vnode$ || F(null, null), c = Ee(e) ? e : p(null, null, e);
|
|
338
338
|
if (L = r.tagName, $.$attrsToReflect$ && (c.$attrs$ = c.$attrs$ || {}, $.$attrsToReflect$.map(([h, d]) => c.$attrs$[d] = r[h])), s && c.$attrs$)
|
|
339
339
|
for (const h of Object.keys(c.$attrs$))
|
|
340
340
|
r.hasAttribute(h) && !["key", "ref", "style", "class"].includes(h) && (c.$attrs$[h] = r[h]);
|
|
341
|
-
c.$tag$ = null, c.$flags$ |= 4, t.$vnode$ = c, c.$elm$ = f.$elm$ = r.shadowRoot || r, T = r["s-sc"], z = r["s-cr"],
|
|
341
|
+
c.$tag$ = null, c.$flags$ |= 4, t.$vnode$ = c, c.$elm$ = f.$elm$ = r.shadowRoot || r, T = r["s-sc"], z = r["s-cr"], re = ($.$flags$ & 1) !== 0, M = !1, C(f, c, s);
|
|
342
342
|
{
|
|
343
343
|
if (g.$flags$ |= 1, I) {
|
|
344
|
-
|
|
344
|
+
ue(c.$elm$);
|
|
345
345
|
for (const h of x) {
|
|
346
346
|
const d = h.$nodeToRelocate$;
|
|
347
347
|
if (!d["s-ol"]) {
|
|
@@ -357,9 +357,9 @@ const p = (t, e, ...s) => {
|
|
|
357
357
|
{
|
|
358
358
|
let w = (n = d["s-ol"]) === null || n === void 0 ? void 0 : n.previousSibling;
|
|
359
359
|
for (; w; ) {
|
|
360
|
-
let
|
|
361
|
-
if (
|
|
362
|
-
y =
|
|
360
|
+
let S = (o = w["s-nr"]) !== null && o !== void 0 ? o : null;
|
|
361
|
+
if (S && S["s-sn"] === d["s-sn"] && b === S.parentNode && (S = S.nextSibling, !S || !S["s-nr"])) {
|
|
362
|
+
y = S;
|
|
363
363
|
break;
|
|
364
364
|
}
|
|
365
365
|
w = w.previousSibling;
|
|
@@ -370,25 +370,25 @@ const p = (t, e, ...s) => {
|
|
|
370
370
|
d.nodeType === 1 && (s && (d["s-ih"] = (i = d.hidden) !== null && i !== void 0 ? i : !1), d.hidden = !0);
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
M &&
|
|
373
|
+
M && pe(c.$elm$), g.$flags$ &= -2, x.length = 0;
|
|
374
374
|
}
|
|
375
|
-
if (
|
|
375
|
+
if (k.experimentalScopedSlotChanges && $.$flags$ & 2)
|
|
376
376
|
for (const h of c.$elm$.childNodes)
|
|
377
377
|
h["s-hn"] !== L && !h["s-sh"] && (s && h["s-ih"] == null && (h["s-ih"] = (a = h.hidden) !== null && a !== void 0 ? a : !1), h.hidden = !0);
|
|
378
378
|
z = void 0;
|
|
379
379
|
}, Ie = (t, e) => {
|
|
380
|
-
},
|
|
380
|
+
}, ye = (t, e) => (t.$flags$ |= 16, Ie(t, t.$ancestorComponent$), ft(() => Ke(t, e))), Ke = (t, e) => {
|
|
381
381
|
const s = t.$hostElement$, n = O("scheduleUpdate", t.$cmpMeta$.$tagName$), o = s;
|
|
382
382
|
let l;
|
|
383
|
-
return e ? l = E(o, "componentWillLoad") : l = E(o, "componentWillUpdate"), l =
|
|
384
|
-
},
|
|
383
|
+
return e ? l = E(o, "componentWillLoad") : l = E(o, "componentWillUpdate"), l = se(l, () => E(o, "componentWillRender")), n(), se(l, () => We(t, o, e));
|
|
384
|
+
}, se = (t, e) => qe(t) ? t.then(e) : e(), qe = (t) => t instanceof Promise || t && t.then && typeof t.then == "function", We = async (t, e, s) => {
|
|
385
385
|
const n = t.$hostElement$, o = O("update", t.$cmpMeta$.$tagName$);
|
|
386
386
|
n["s-rc"], s && He(t);
|
|
387
387
|
const l = O("render", t.$cmpMeta$.$tagName$);
|
|
388
388
|
Ne(t, e, n, s), l(), o(), Qe(t);
|
|
389
389
|
}, Ne = (t, e, s, n) => {
|
|
390
390
|
try {
|
|
391
|
-
Q = e, e = e.render && e.render(), t.$flags$ &= -17, t.$flags$ |= 2, (
|
|
391
|
+
Q = e, e = e.render && e.render(), t.$flags$ &= -17, t.$flags$ |= 2, (k.hasRenderFn || k.reflect) && (k.vdomRender || k.reflect) && (k.hydrateServerSide || je(t, e, n));
|
|
392
392
|
} catch (r) {
|
|
393
393
|
_(r, t.$hostElement$);
|
|
394
394
|
}
|
|
@@ -403,9 +403,9 @@ const p = (t, e, ...s) => {
|
|
|
403
403
|
} catch (n) {
|
|
404
404
|
_(n);
|
|
405
405
|
}
|
|
406
|
-
}, Xe = (t, e) =>
|
|
407
|
-
const o =
|
|
408
|
-
s =
|
|
406
|
+
}, Xe = (t, e) => A(t).$instanceValues$.get(e), Ze = (t, e, s, n) => {
|
|
407
|
+
const o = A(t), l = t, i = o.$instanceValues$.get(e), a = o.$flags$, r = l;
|
|
408
|
+
s = _e(s, n.$members$[e][0]);
|
|
409
409
|
const $ = Number.isNaN(i) && Number.isNaN(s);
|
|
410
410
|
if (s !== i && !$) {
|
|
411
411
|
o.$instanceValues$.set(e, s);
|
|
@@ -423,7 +423,7 @@ const p = (t, e, ...s) => {
|
|
|
423
423
|
if ((a & 18) === 2) {
|
|
424
424
|
if (r.componentShouldUpdate && r.componentShouldUpdate(s, i, e) === !1)
|
|
425
425
|
return;
|
|
426
|
-
|
|
426
|
+
ye(o, !1);
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
}
|
|
@@ -457,7 +457,7 @@ const p = (t, e, ...s) => {
|
|
|
457
457
|
if (o.hasOwnProperty(c) && typeof this[c] == "number" && this[c] == $)
|
|
458
458
|
return;
|
|
459
459
|
if (c == null) {
|
|
460
|
-
const h =
|
|
460
|
+
const h = A(this), d = h == null ? void 0 : h.$flags$;
|
|
461
461
|
if (d && !(d & 8) && d & 128 && $ !== r) {
|
|
462
462
|
const b = this, y = (f = e.$watchers$) === null || f === void 0 ? void 0 : f[a];
|
|
463
463
|
y == null || y.forEach((w) => {
|
|
@@ -488,18 +488,18 @@ const p = (t, e, ...s) => {
|
|
|
488
488
|
if (!(e.$flags$ & 32) && (e.$flags$ |= 32, o = t.constructor, customElements.whenDefined(s.$tagName$).then(() => e.$flags$ |= 128), o.style)) {
|
|
489
489
|
let i = o.style;
|
|
490
490
|
typeof i != "string" && (i = i[e.$modeName$ = Ae(t)]);
|
|
491
|
-
const a =
|
|
491
|
+
const a = ae(s, e.$modeName$);
|
|
492
492
|
if (!H.has(a)) {
|
|
493
493
|
const r = O("registerStyles", s.$tagName$);
|
|
494
|
-
|
|
494
|
+
Fe(a, i, !!(s.$flags$ & 1)), r();
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
e.$ancestorComponent$,
|
|
498
|
-
},
|
|
497
|
+
e.$ancestorComponent$, ye(e, !0);
|
|
498
|
+
}, ne = (t) => {
|
|
499
499
|
}, Ye = (t) => {
|
|
500
500
|
if (!(g.$flags$ & 1)) {
|
|
501
|
-
const e =
|
|
502
|
-
e.$flags$ & 1 ? (
|
|
501
|
+
const e = A(t), s = e.$cmpMeta$, n = O("connectedCallback", s.$tagName$);
|
|
502
|
+
e.$flags$ & 1 ? (be(t, e, s.$listeners$), e != null && e.$lazyInstance$ ? ne(e.$lazyInstance$) : e != null && e.$onReadyPromise$ && e.$onReadyPromise$.then(() => ne(e.$lazyInstance$))) : (e.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
503
503
|
s.$flags$ & 12 && Ve(t), s.$members$ && Object.entries(s.$members$).map(([o, [l]]) => {
|
|
504
504
|
if (l & 31 && t.hasOwnProperty(o)) {
|
|
505
505
|
const i = t[o];
|
|
@@ -512,7 +512,7 @@ const p = (t, e, ...s) => {
|
|
|
512
512
|
e["s-cn"] = !0, t.insertBefore(e, t.firstChild);
|
|
513
513
|
}, et = async (t) => {
|
|
514
514
|
if (!(g.$flags$ & 1)) {
|
|
515
|
-
const e =
|
|
515
|
+
const e = A(t);
|
|
516
516
|
e.$rmListeners$ && (e.$rmListeners$.map((s) => s()), e.$rmListeners$ = void 0);
|
|
517
517
|
}
|
|
518
518
|
}, W = (t, e) => {
|
|
@@ -539,29 +539,29 @@ const p = (t, e, ...s) => {
|
|
|
539
539
|
});
|
|
540
540
|
}
|
|
541
541
|
}), t.is = s.$tagName$, Ge(t, s);
|
|
542
|
-
},
|
|
542
|
+
}, be = (t, e, s, n) => {
|
|
543
543
|
s && s.map(([o, l, i]) => {
|
|
544
544
|
const a = st(t, o), r = tt(e, i), $ = nt(o);
|
|
545
545
|
g.ael(a, l, r, $), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => g.rel(a, l, r, $));
|
|
546
546
|
});
|
|
547
547
|
}, tt = (t, e) => (s) => {
|
|
548
548
|
try {
|
|
549
|
-
|
|
549
|
+
k.lazyLoad || t.$hostElement$[e](s);
|
|
550
550
|
} catch (n) {
|
|
551
551
|
_(n);
|
|
552
552
|
}
|
|
553
553
|
}, st = (t, e) => e & 4 ? m : e & 8 ? U : e & 16 ? m.body : t, nt = (t) => lt ? {
|
|
554
554
|
passive: (t & 1) !== 0,
|
|
555
555
|
capture: (t & 2) !== 0
|
|
556
|
-
} : (t & 2) !== 0,
|
|
556
|
+
} : (t & 2) !== 0, ve = /* @__PURE__ */ new WeakMap(), A = (t) => ve.get(t), ot = (t, e) => {
|
|
557
557
|
const s = {
|
|
558
558
|
$flags$: 0,
|
|
559
559
|
$hostElement$: t,
|
|
560
560
|
$cmpMeta$: e,
|
|
561
561
|
$instanceValues$: /* @__PURE__ */ new Map()
|
|
562
562
|
};
|
|
563
|
-
return
|
|
564
|
-
},
|
|
563
|
+
return be(t, s, e.$listeners$), ve.set(t, s);
|
|
564
|
+
}, oe = (t, e) => e in t, _ = (t, e) => (0, console.error)(t, e), H = /* @__PURE__ */ new Map(), it = [], U = typeof window < "u" ? window : {}, m = U.document || { head: {} }, N = U.HTMLElement || class {
|
|
565
565
|
}, g = {
|
|
566
566
|
$flags$: 0,
|
|
567
567
|
$resourcesUrl$: "",
|
|
@@ -587,9 +587,9 @@ const p = (t, e, ...s) => {
|
|
|
587
587
|
} catch {
|
|
588
588
|
}
|
|
589
589
|
return !1;
|
|
590
|
-
})(),
|
|
590
|
+
})(), ie = [], me = [], ct = (t, e) => (s) => {
|
|
591
591
|
t.push(s), P || (P = !0, e && g.$flags$ & 4 ? dt(j) : g.raf(j));
|
|
592
|
-
},
|
|
592
|
+
}, le = (t) => {
|
|
593
593
|
for (let e = 0; e < t.length; e++)
|
|
594
594
|
try {
|
|
595
595
|
t[e](performance.now());
|
|
@@ -598,8 +598,8 @@ const p = (t, e, ...s) => {
|
|
|
598
598
|
}
|
|
599
599
|
t.length = 0;
|
|
600
600
|
}, j = () => {
|
|
601
|
-
ie
|
|
602
|
-
}, dt = (t) => rt().then(t), ft = /* @__PURE__ */ ct(
|
|
601
|
+
le(ie), le(me), (P = ie.length > 0) && g.raf(j);
|
|
602
|
+
}, dt = (t) => rt().then(t), ft = /* @__PURE__ */ ct(me, !0), ht = ".sc-chevron-icon-h{display:flex}", $t = ht, pt = W(class extends N {
|
|
603
603
|
constructor() {
|
|
604
604
|
super(), this.__registerHost(), this.width = "24", this.height = "24";
|
|
605
605
|
}
|
|
@@ -649,21 +649,32 @@ function vt() {
|
|
|
649
649
|
}
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
|
-
const mt = ':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}', xt = mt,
|
|
652
|
+
const mt = ':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}', xt = mt, xe = W(class extends N {
|
|
653
653
|
constructor() {
|
|
654
|
-
super(), this.__registerHost(), this.__attachShadow(), this.nylasFormDropdownChanged =
|
|
654
|
+
super(), this.__registerHost(), this.__attachShadow(), this.nylasFormDropdownChanged = J(this, "nylasFormDropdownChanged", 7), this.nylasFormDropdownDefaultSelected = J(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 = "";
|
|
655
655
|
}
|
|
656
656
|
optionsChangedHandler(e, s) {
|
|
657
657
|
e !== s && (this.filteredOptions = e);
|
|
658
658
|
}
|
|
659
659
|
defaultSelectedOptionChangedHandler(e, s) {
|
|
660
|
-
typeof e > "u" || (e == null ? void 0 : e.label) === (s == null ? void 0 : s.label) || (this.selectedOption = e
|
|
660
|
+
typeof e > "u" || (e == null ? void 0 : e.label) === (s == null ? void 0 : s.label) || (this.selectedOption = e, this.nylasFormDropdownDefaultSelected.emit({
|
|
661
|
+
value: (e == null ? void 0 : e.value) || "",
|
|
662
|
+
name: this.name,
|
|
663
|
+
error: this.errorMessage,
|
|
664
|
+
label: this.label
|
|
665
|
+
}));
|
|
661
666
|
}
|
|
662
667
|
componentWillLoad() {
|
|
663
668
|
this.el.setAttribute("component-type", this.componentType);
|
|
664
669
|
}
|
|
665
670
|
componentDidLoad() {
|
|
666
|
-
|
|
671
|
+
var e;
|
|
672
|
+
this.filteredOptions = this.options, this.selectedOption = this.defaultSelectedOption, !this.selectedOption && this.options.length > 0 && (this.selectedOption = this.options[0]), this.nylasFormDropdownDefaultSelected.emit({
|
|
673
|
+
value: ((e = this.selectedOption) == null ? void 0 : e.value) || "",
|
|
674
|
+
name: this.name,
|
|
675
|
+
error: this.errorMessage,
|
|
676
|
+
label: this.label
|
|
677
|
+
});
|
|
667
678
|
}
|
|
668
679
|
handleBookingFormSubmitted(e) {
|
|
669
680
|
var s;
|
|
@@ -737,7 +748,7 @@ const mt = ':host{display:block;position:relative;--nylas-primary:#2563eb;--nyla
|
|
|
737
748
|
}
|
|
738
749
|
render() {
|
|
739
750
|
const e = this.generateButtonText(this.selectedOption, this.dropdownButtonText);
|
|
740
|
-
return p("div", { key: "
|
|
751
|
+
return p("div", { key: "4b724d892194708b2dcd0ed74c8e23486ba2b4f7", class: "dropdown", part: "sd_dropdown" }, p("label", { key: "06d33f4f5daa7c09eed054505989210e35c2beb5", part: "sd_dropdown_label", class: { error: !!this.errorMessage } }, this.label && p("p", null, p("span", { class: "label" }, this.label), this.required && p("span", { class: "required" }, "*")), p("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: (s) => this.handleSelectButtonKeyDown(s) }, p("slot", { key: "aece407da3b35858b9ec1248d09447706b3120cc", name: "select-icon", "aria-hidden": "true" }), p("span", { key: "55aae4a92f862c81533635999fb60693705cb12b", class: "selected-option", part: "sd_dropdown-button-selected-label" }, e), this.withChevron && p("span", { class: {
|
|
741
752
|
open: this.isOpen,
|
|
742
753
|
closed: !this.isOpen,
|
|
743
754
|
chevron: !0
|
|
@@ -775,13 +786,13 @@ const mt = ':host{display:block;position:relative;--nylas-primary:#2563eb;--nyla
|
|
|
775
786
|
options: ["optionsChangedHandler"],
|
|
776
787
|
defaultSelectedOption: ["defaultSelectedOptionChangedHandler"]
|
|
777
788
|
}]);
|
|
778
|
-
function
|
|
789
|
+
function St() {
|
|
779
790
|
if (typeof customElements > "u")
|
|
780
791
|
return;
|
|
781
792
|
["select-dropdown", "chevron-icon", "search-icon"].forEach((e) => {
|
|
782
793
|
switch (e) {
|
|
783
794
|
case "select-dropdown":
|
|
784
|
-
customElements.get(e) || customElements.define(e,
|
|
795
|
+
customElements.get(e) || customElements.define(e, xe);
|
|
785
796
|
break;
|
|
786
797
|
case "chevron-icon":
|
|
787
798
|
customElements.get(e) || ut();
|
|
@@ -792,7 +803,7 @@ function kt() {
|
|
|
792
803
|
}
|
|
793
804
|
});
|
|
794
805
|
}
|
|
795
|
-
const Tt =
|
|
806
|
+
const Tt = xe, Ct = St;
|
|
796
807
|
export {
|
|
797
808
|
Tt as SelectDropdown,
|
|
798
809
|
Ct as defineCustomElement
|