@nylas/web-elements 0.0.0-canary-20250120165013 → 0.0.0-canary-20250122221254
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/checkbox-component/checkbox-component.es.js +14 -18
- package/dist/cdn/nylas-booking-form/nylas-booking-form.es.js +275 -278
- package/dist/cdn/nylas-cancel-booking-form/nylas-cancel-booking-form.es.js +2 -1
- package/dist/cdn/nylas-confirmation-email/nylas-confirmation-email.es.js +2 -1
- package/dist/cdn/nylas-customize-booking-settings/nylas-customize-booking-settings.es.js +3 -7
- package/dist/cdn/nylas-editor-tabs/nylas-editor-tabs.es.js +301 -296
- package/dist/cdn/nylas-feedback-form/nylas-feedback-form.es.js +2 -1
- package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +23 -18
- package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +18 -13
- package/dist/cdn/textarea-component/textarea-component.es.js +147 -146
- package/dist/cjs/checkbox-component_3.cjs.entry.js +2 -3
- package/dist/cjs/checkbox-component_3.cjs.entry.js.map +1 -1
- package/dist/cjs/google-logo-icon_4.cjs.entry.js +12 -4
- package/dist/cjs/google-logo-icon_4.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-scheduling.cjs.entry.js +10 -2
- package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
- package/dist/cjs/textarea-component.cjs.entry.js +2 -1
- package/dist/cjs/textarea-component.cjs.entry.js.map +1 -1
- package/dist/collection/components/design-system/checkbox-component/checkbox-component.css +4 -0
- package/dist/collection/components/design-system/checkbox-component/checkbox-component.js +1 -2
- package/dist/collection/components/design-system/checkbox-component/checkbox-component.js.map +1 -1
- package/dist/collection/components/design-system/textarea-component/textarea-component.js +2 -1
- package/dist/collection/components/design-system/textarea-component/textarea-component.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-booking-form/test/nylas-booking-form.spec.js +25 -1
- package/dist/collection/components/scheduler/nylas-booking-form/test/nylas-booking-form.spec.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +10 -2
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +12 -4
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
- package/dist/components/checkbox-component2.js +2 -3
- package/dist/components/checkbox-component2.js.map +1 -1
- package/dist/components/nylas-editor-tabs2.js +12 -4
- package/dist/components/nylas-editor-tabs2.js.map +1 -1
- package/dist/components/nylas-scheduling.js +10 -2
- package/dist/components/nylas-scheduling.js.map +1 -1
- package/dist/components/textarea-component2.js +2 -1
- package/dist/components/textarea-component2.js.map +1 -1
- package/dist/esm/checkbox-component_3.entry.js +2 -3
- package/dist/esm/checkbox-component_3.entry.js.map +1 -1
- package/dist/esm/google-logo-icon_4.entry.js +12 -4
- package/dist/esm/google-logo-icon_4.entry.js.map +1 -1
- package/dist/esm/nylas-scheduling.entry.js +10 -2
- package/dist/esm/nylas-scheduling.entry.js.map +1 -1
- package/dist/esm/textarea-component.entry.js +2 -1
- package/dist/esm/textarea-component.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/{p-a4b25253.entry.js → p-1d12e7e7.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-a4b25253.entry.js.map → p-1d12e7e7.entry.js.map} +1 -1
- package/dist/nylas-web-elements/p-748f9af9.entry.js +2 -0
- package/dist/nylas-web-elements/p-748f9af9.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-ea91e5b3.entry.js +2 -0
- package/dist/nylas-web-elements/p-ea91e5b3.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-dd830dcc.entry.js → p-f7bd80de.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-dd830dcc.entry.js.map → p-f7bd80de.entry.js.map} +1 -1
- package/package.json +3 -3
- package/dist/nylas-web-elements/p-02488442.entry.js +0 -2
- package/dist/nylas-web-elements/p-02488442.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-b61dfe09.entry.js +0 -2
- package/dist/nylas-web-elements/p-b61dfe09.entry.js.map +0 -1
|
@@ -87,9 +87,9 @@ const x = {
|
|
|
87
87
|
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
88
88
|
experimentalSlotFixes: !1
|
|
89
89
|
};
|
|
90
|
-
let C, F, O, le = !1, j = !1, B = !1, b = !1,
|
|
90
|
+
let C, F, O, le = !1, j = !1, B = !1, b = !1, q = null, H = !1;
|
|
91
91
|
const L = (e, t = "") => () => {
|
|
92
|
-
}, ke = "slot-fb{display:contents}slot-fb[hidden]{display:none}",
|
|
92
|
+
}, ke = "slot-fb{display:contents}slot-fb[hidden]{display:none}", G = "http://www.w3.org/1999/xlink", Z = {}, ve = "http://www.w3.org/2000/svg", Se = "http://www.w3.org/1999/xhtml", xe = (e) => e != null, U = (e) => (e = typeof e, e === "object" || e === "function");
|
|
93
93
|
function Te(e) {
|
|
94
94
|
var t, n, s;
|
|
95
95
|
return (s = (n = (t = e.head) === null || t === void 0 ? void 0 : t.querySelector('meta[name="csp-nonce"]')) === null || n === void 0 ? void 0 : n.getAttribute("content")) !== null && s !== void 0 ? s : void 0;
|
|
@@ -205,11 +205,11 @@ const k = (e, t, ...n) => {
|
|
|
205
205
|
} catch {
|
|
206
206
|
}
|
|
207
207
|
let u = !1;
|
|
208
|
-
c !== (c = c.replace(/^xlink\:?/, "")) && (t = c, u = !0), s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && (u ? e.removeAttributeNS(
|
|
208
|
+
c !== (c = c.replace(/^xlink\:?/, "")) && (t = c, u = !0), s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && (u ? e.removeAttributeNS(G, t) : e.removeAttribute(t)) : (!l || i & 4 || o) && !r && (s = s === !0 ? "" : s, u ? e.setAttributeNS(G, t, s) : e.setAttribute(t, s));
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
}, Ne = /\s/, K = (e) => e ? e.split(Ne) : [], ie = "Capture", Me = new RegExp(ie + "$"), ce = (e, t, n, s) => {
|
|
212
|
-
const o = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, i = e && e.$attrs$ ||
|
|
212
|
+
const o = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, i = e && e.$attrs$ || Z, l = t.$attrs$ || Z;
|
|
213
213
|
for (s in i)
|
|
214
214
|
s in l || X(o, s, i[s], void 0, n, t.$flags$);
|
|
215
215
|
for (s in l)
|
|
@@ -385,15 +385,15 @@ const k = (e, t, ...n) => {
|
|
|
385
385
|
const s = e.$hostElement$, o = L("update", e.$cmpMeta$.$tagName$);
|
|
386
386
|
s["s-rc"], n && Pe(e);
|
|
387
387
|
const i = L("render", e.$cmpMeta$.$tagName$);
|
|
388
|
-
|
|
389
|
-
},
|
|
388
|
+
qe(e, t, s, n), i(), o(), Ge(e);
|
|
389
|
+
}, qe = (e, t, n, s) => {
|
|
390
390
|
try {
|
|
391
|
-
|
|
391
|
+
q = t, t = t.render && t.render(), e.$flags$ &= -17, e.$flags$ |= 2, (x.hasRenderFn || x.reflect) && (x.vdomRender || x.reflect) && (x.hydrateServerSide || He(e, t, s));
|
|
392
392
|
} catch (r) {
|
|
393
393
|
R(r, e.$hostElement$);
|
|
394
394
|
}
|
|
395
|
-
return
|
|
396
|
-
},
|
|
395
|
+
return q = null, null;
|
|
396
|
+
}, Ge = (e) => {
|
|
397
397
|
const t = e.$cmpMeta$.$tagName$, n = e.$hostElement$, s = L("postUpdate", t), o = n;
|
|
398
398
|
e.$ancestorComponent$, A(o, "componentDidRender"), e.$flags$ & 64 ? (A(o, "componentDidUpdate"), s()) : (e.$flags$ |= 64, A(o, "componentDidLoad"), s());
|
|
399
399
|
}, A = (e, t, n) => {
|
|
@@ -403,7 +403,7 @@ const k = (e, t, ...n) => {
|
|
|
403
403
|
} catch (s) {
|
|
404
404
|
R(s);
|
|
405
405
|
}
|
|
406
|
-
},
|
|
406
|
+
}, Ze = (e, t) => _(e).$instanceValues$.get(t), Qe = (e, t, n, s) => {
|
|
407
407
|
const o = _(e), i = e, l = o.$instanceValues$.get(t), c = o.$flags$, r = i;
|
|
408
408
|
n = De(n, s.$members$[t][0]);
|
|
409
409
|
const u = Number.isNaN(l) && Number.isNaN(n);
|
|
@@ -436,7 +436,7 @@ const k = (e, t, ...n) => {
|
|
|
436
436
|
i.map(([l, [c]]) => {
|
|
437
437
|
(c & 31 || c & 32) && Object.defineProperty(o, l, {
|
|
438
438
|
get() {
|
|
439
|
-
return
|
|
439
|
+
return Ze(this, l);
|
|
440
440
|
},
|
|
441
441
|
set(r) {
|
|
442
442
|
Qe(this, l, r, t);
|
|
@@ -602,7 +602,7 @@ const k = (e, t, ...n) => {
|
|
|
602
602
|
e.length = 0;
|
|
603
603
|
}, z = () => {
|
|
604
604
|
oe(ne), oe(be), (H = ne.length > 0) && p.raf(z);
|
|
605
|
-
}, $t = (e) => ct().then(e), dt = /* @__PURE__ */ ft(be, !0), ut = ':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:100%}.checkbox-container{display:flex;flex-direction:column;gap:0.5rem}.checkbox-container p.error{color:var(--nylas-error);font-size:14px;font-weight:400;line-height:20px;font-family:var(--nylas-font-family);margin:0}label{display:flex;align-items:center;font-family:var(--nylas-font-family);cursor:pointer;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label.readonly{cursor:not-allowed}label input[type=checkbox]{position:absolute;opacity:0;cursor:pointer;border:1px solid var(--nylas-base-300)}label input[type=checkbox]:focus~.checkmark,label input[type=checkbox]:hover~.checkmark{border-color:var(--nylas-primary)}label input[type=checkbox]:checked~.checkmark{color:var(--nylas-base-0);background:var(--nylas-primary) url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxMiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTIgOSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPHBhdGggZD0iTTQuNTc1IDguOTc3cy0uNDA0LS4wMDctLjUzNi0uMTY1TC4wNTcgNS42NGwuODI5LTEuMjI3TDQuNDcgNy4yNjggMTAuOTIxLjA4NmwuOTIzIDEuMTAzLTYuODYzIDcuNjRjLS4xMzQtLjAwMy0uNDA2LjE0OC0uNDA2LjE0OHoiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPg0KPC9zdmc+) 50% 40% no-repeat;border:2px solid var(--nylas-primary)}label input[type=checkbox]:disabled{cursor:not-allowed;background:var(--nylas-base-100);border:1px solid var(--nylas-base-300)}label .checkmark{border-radius:var(--nylas-border-radius);border:2px solid var(--nylas-base-800);position:absolute;left:0;top:2px;width:18px;height:18px;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label .label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}', ht = ut, me = et(class extends rt {
|
|
605
|
+
}, $t = (e) => ct().then(e), dt = /* @__PURE__ */ ft(be, !0), ut = ':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:100%}.checkbox-container{display:flex;flex-direction:column;gap:0.5rem}.checkbox-container p.error{color:var(--nylas-error);font-size:14px;font-weight:400;line-height:20px;font-family:var(--nylas-font-family);margin:0}label{display:flex;align-items:center;font-family:var(--nylas-font-family);cursor:pointer;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label.readonly{cursor:not-allowed}label span.required{color:var(--nylas-error);padding:0 0.25rem}label input[type=checkbox]{position:absolute;opacity:0;cursor:pointer;border:1px solid var(--nylas-base-300)}label input[type=checkbox]:focus~.checkmark,label input[type=checkbox]:hover~.checkmark{border-color:var(--nylas-primary)}label input[type=checkbox]:checked~.checkmark{color:var(--nylas-base-0);background:var(--nylas-primary) url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxMiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTIgOSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPHBhdGggZD0iTTQuNTc1IDguOTc3cy0uNDA0LS4wMDctLjUzNi0uMTY1TC4wNTcgNS42NGwuODI5LTEuMjI3TDQuNDcgNy4yNjggMTAuOTIxLjA4NmwuOTIzIDEuMTAzLTYuODYzIDcuNjRjLS4xMzQtLjAwMy0uNDA2LjE0OC0uNDA2LjE0OHoiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPg0KPC9zdmc+) 50% 40% no-repeat;border:2px solid var(--nylas-primary)}label input[type=checkbox]:disabled{cursor:not-allowed;background:var(--nylas-base-100);border:1px solid var(--nylas-base-300)}label .checkmark{border-radius:var(--nylas-border-radius);border:2px solid var(--nylas-base-800);position:absolute;left:0;top:2px;width:18px;height:18px;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label .label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}', ht = ut, me = et(class extends rt {
|
|
606
606
|
constructor() {
|
|
607
607
|
super(), this.__registerHost(), this.__attachShadow(), this.nylasFormCheckboxToggled = Re(this, "nylasFormCheckboxToggled", 7), this.componentType = "checkbox", this.name = "checkbox", this.checked = void 0, this.label = "", this.readOnly = !1, this.required = !1, this.isChecked = void 0, this.error = "";
|
|
608
608
|
}
|
|
@@ -616,11 +616,7 @@ const k = (e, t, ...n) => {
|
|
|
616
616
|
this.isChecked = this.checked || !1;
|
|
617
617
|
}
|
|
618
618
|
handleBookingFormSubmitted(t) {
|
|
619
|
-
|
|
620
|
-
this.error = `${this.label} is required.`;
|
|
621
|
-
return;
|
|
622
|
-
}
|
|
623
|
-
this.error && t.preventDefault();
|
|
619
|
+
this.required && !this.isChecked && (this.error = `${this.label} is required.`), this.error && t.preventDefault();
|
|
624
620
|
}
|
|
625
621
|
toggleCheck() {
|
|
626
622
|
this.error = "", this.isChecked = !this.isChecked, this.nylasFormCheckboxToggled.emit({
|
|
@@ -630,7 +626,7 @@ const k = (e, t, ...n) => {
|
|
|
630
626
|
});
|
|
631
627
|
}
|
|
632
628
|
render() {
|
|
633
|
-
return k("div", { key: "
|
|
629
|
+
return k("div", { key: "595e161a792173db6af97d3d7ef13cdca534052a", class: "checkbox-container" }, k("label", { key: "625bd67ceec40d979d5f4f74ec576569866ff6ec", title: this.readOnly ? "read-only field" : void 0, class: { readonly: this.readOnly } }, k("input", { key: "dc099ed0899a91fe30b67bb0f2981b8bd5254bbb", type: "checkbox", disabled: this.readOnly, readOnly: this.readOnly, name: this.name, title: this.readOnly ? "read-only field" : void 0, checked: this.isChecked, onChange: () => this.toggleCheck() }), k("span", { key: "032c931e0b256a9e948551c9d938e14339f4c45e", class: "checkmark" }), k("slot", { key: "d932f4a7c5aa7e680827beff46f1ff86ce50b1d9", name: "label" }, k("span", { key: "b5ce4490b7be93f936d3061145dcbe4489dd74c9", class: "label" }, this.label, this.required && k("span", { class: "required" }, "*")))), this.error && k("p", { class: "error" }, this.error));
|
|
634
630
|
}
|
|
635
631
|
get el() {
|
|
636
632
|
return this;
|