@nylas/web-elements 2.5.10 → 2.5.12
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-scheduler-editor/nylas-scheduler-editor.es.js +15 -12
- package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +1 -1
- package/dist/cjs/calendar-agenda-fill-icon_39.cjs.entry.js +6 -3
- package/dist/cjs/calendar-agenda-fill-icon_39.cjs.entry.js.map +1 -1
- package/dist/cjs/google-logo-icon_6.cjs.entry.js +1 -1
- package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +1 -1
- package/dist/cjs/nylas-scheduling.cjs.entry.js +1 -1
- package/dist/cjs/{version-BcrxszP8.js → version-FXnnI00G.js} +3 -3
- package/dist/cjs/{version-BcrxszP8.js.map → version-FXnnI00G.js.map} +1 -1
- package/dist/collection/components/scheduler-editor/nylas-page-styling/nylas-page-styling.js +6 -3
- package/dist/collection/components/scheduler-editor/nylas-page-styling/nylas-page-styling.js.map +1 -1
- package/dist/collection/version.js +1 -1
- package/dist/collection/version.js.map +1 -1
- package/dist/components/nylas-editor-tabs-group.js +1 -1
- package/dist/components/nylas-editor-tabs.js +1 -1
- package/dist/components/nylas-page-styling.js +1 -1
- package/dist/components/nylas-scheduler-editor.js +4 -4
- package/dist/components/nylas-scheduling.js +1 -1
- package/dist/components/{p-s6s0oE_l.js → p-77cQPnsG.js} +4 -4
- package/dist/components/{p-s6s0oE_l.js.map → p-77cQPnsG.js.map} +1 -1
- package/dist/components/{p-C-ErnYFi.js → p-Cl71OI5D.js} +3 -3
- package/dist/components/{p-C-ErnYFi.js.map → p-Cl71OI5D.js.map} +1 -1
- package/dist/components/{p-JpjuLIts.js → p-Cm6e2qUq.js} +4 -4
- package/dist/components/{p-JpjuLIts.js.map → p-Cm6e2qUq.js.map} +1 -1
- package/dist/components/{p-CqVcXov0.js → p-DvPuyp-I.js} +8 -5
- package/dist/components/{p-CqVcXov0.js.map → p-DvPuyp-I.js.map} +1 -1
- package/dist/esm/calendar-agenda-fill-icon_39.entry.js +6 -3
- package/dist/esm/calendar-agenda-fill-icon_39.entry.js.map +1 -1
- package/dist/esm/google-logo-icon_6.entry.js +1 -1
- package/dist/esm/nylas-scheduler-editor.entry.js +1 -1
- package/dist/esm/nylas-scheduling.entry.js +1 -1
- package/dist/esm/{version-BAjkr1GB.js → version-BEjJeakd.js} +3 -3
- package/dist/esm/{version-BAjkr1GB.js.map → version-BEjJeakd.js.map} +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/{p-2242c1f5.entry.js → p-32e39f3d.entry.js} +3 -3
- package/dist/nylas-web-elements/{p-241183a9.entry.js → p-7c1bc27a.entry.js} +3 -3
- package/dist/nylas-web-elements/p-7c1bc27a.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-BAjkr1GB.js → p-BEjJeakd.js} +2 -2
- package/dist/nylas-web-elements/{p-BAjkr1GB.js.map → p-BEjJeakd.js.map} +1 -1
- package/dist/nylas-web-elements/{p-992af523.entry.js → p-ad0e7f3b.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-0bf7dbfe.entry.js → p-fe855b8f.entry.js} +2 -2
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/nylas-web-elements/p-241183a9.entry.js.map +0 -1
- /package/dist/nylas-web-elements/{p-2242c1f5.entry.js.map → p-32e39f3d.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-992af523.entry.js.map → p-ad0e7f3b.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-0bf7dbfe.entry.js.map → p-fe855b8f.entry.js.map} +0 -0
|
@@ -26612,7 +26612,7 @@ const LQ = () => ({
|
|
|
26612
26612
|
lazyLoadIntegration: CX,
|
|
26613
26613
|
getModalIntegration: () => DQ,
|
|
26614
26614
|
getScreenshotIntegration: () => LQ
|
|
26615
|
-
}), Yr = "2.5.
|
|
26615
|
+
}), Yr = "2.5.12", $Q = ".sc-add-circle-icon-h{display:flex}", BQ = De(class extends Ae {
|
|
26616
26616
|
constructor() {
|
|
26617
26617
|
super(), this.__registerHost(), this.width = "24", this.height = "25";
|
|
26618
26618
|
}
|
|
@@ -36822,9 +36822,9 @@ const ZN = De(class extends Ae {
|
|
|
36822
36822
|
}), t;
|
|
36823
36823
|
}
|
|
36824
36824
|
selectedConfigurationChangedHandler(e) {
|
|
36825
|
-
var d, u;
|
|
36826
|
-
x("nylas-page-styling", "selectedConfigurationChangedHandler", e), this.currentAppearance = (e == null ? void 0 : e.appearance) || {};
|
|
36827
|
-
const t = document.querySelector("nylas-scheduler-editor"), i = (
|
|
36825
|
+
var d, u, p;
|
|
36826
|
+
x("nylas-page-styling", "selectedConfigurationChangedHandler", e), this.currentAppearance = (e == null ? void 0 : e.appearance) || {}, typeof ((d = this.internals) == null ? void 0 : d.setFormValue) == "function" && this.internals.setFormValue(JSON.stringify(this.currentAppearance), this.name);
|
|
36827
|
+
const t = document.querySelector("nylas-scheduler-editor"), i = (u = t == null ? void 0 : t.shadowRoot) == null ? void 0 : u.querySelector('slot[name="custom-page-style-inputs"]');
|
|
36828
36828
|
if (!i) {
|
|
36829
36829
|
this.hasCustomSlot = !1;
|
|
36830
36830
|
return;
|
|
@@ -36836,18 +36836,21 @@ const ZN = De(class extends Ae {
|
|
|
36836
36836
|
}
|
|
36837
36837
|
this.hasCustomSlot = !0;
|
|
36838
36838
|
const r = document.createElement("div");
|
|
36839
|
-
a == null || a.forEach((
|
|
36840
|
-
const
|
|
36841
|
-
this.customInputsSlotChangedHandler(
|
|
36839
|
+
a == null || a.forEach((y) => {
|
|
36840
|
+
const f = this.cloneAndCopyProps(y);
|
|
36841
|
+
this.customInputsSlotChangedHandler(f), r.appendChild(f);
|
|
36842
36842
|
});
|
|
36843
|
-
const o = (
|
|
36844
|
-
s && (s.innerHTML = "", r.childNodes.forEach((
|
|
36845
|
-
s.appendChild(
|
|
36843
|
+
const o = (p = this.host.shadowRoot) == null ? void 0 : p.querySelector(".nylas-page-styling"), s = o == null ? void 0 : o.querySelector(".nylas-page-styling__body .subsection");
|
|
36844
|
+
s && (s.innerHTML = "", r.childNodes.forEach((y) => {
|
|
36845
|
+
s.appendChild(y);
|
|
36846
36846
|
}), this.customInputsSlot = r);
|
|
36847
36847
|
}
|
|
36848
36848
|
checkIfElementIsInSlot(e) {
|
|
36849
36849
|
var a;
|
|
36850
|
-
|
|
36850
|
+
if (document == null ? void 0 : document.querySelector(`[slot="custom-page-style-inputs"] [name="${e}"]`))
|
|
36851
|
+
return !0;
|
|
36852
|
+
const i = ((a = this.host.shadowRoot) == null ? void 0 : a.querySelectorAll("[data-page-styling]")) ?? [];
|
|
36853
|
+
return Array.from(i).some((r) => r.name === e || r.getAttribute("name") === e);
|
|
36851
36854
|
}
|
|
36852
36855
|
async nylasFormInputChangeHandler(e) {
|
|
36853
36856
|
var r;
|
|
@@ -36900,7 +36903,7 @@ const ZN = De(class extends Ae {
|
|
|
36900
36903
|
}
|
|
36901
36904
|
render() {
|
|
36902
36905
|
const e = this.customInputsSlot || !this.hasCustomSlot && !!this.currentAppearance;
|
|
36903
|
-
return c(Ke, { key: "
|
|
36906
|
+
return c(Ke, { key: "68ff4f23782f0d5fbfa30d006d804663cfd4c7a2" }, c("div", { key: "4db1b16c2a559b759666a18cfc5ce1df427e3120", part: "nps", class: { "nylas-page-styling": !0, "no-border": !e } }, e ? c("div", { class: "header", part: "nps__header" }, c("div", null, c("h3", null, w.t("nylasPageStyling.headerTitle"))), c("div", { class: "drawer-toggle", part: "nps__drawer-toggle--container" }, c("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleConfirmationEmail() }, c("chevron-icon", { width: "24", height: "24" })))) : null, c("div", { key: "cbd697408c8794ed3da1a7240cde839c28bd8e71", class: "hidden" }, c("input-color-picker", { key: "b378ea6f4174ca07ad2f8c363f4dbfb108211a5d", name: "color-picker" })), c("div", { key: "6f210a564f347f40c18516bf4e39475cc48d9f57", id: "nylas-page-styling__body", class: "nylas-page-styling__body", part: "nps__body" }, c("div", { key: "793428c898c430412ebc3474aa01498c11a46842", class: { "nylas-page-styling__section": !0, "no-padding": !e } }, c("div", { key: "18d8e84857d9ca6cb82b055f4218577d9974d0bb", class: "nylas-page-styling__row" }, c("div", { key: "4c17031c6f90a042bfad62c202bc0e9f9704471c", class: { subsection: !0, hide: !this.isOpen } }, !this.hasCustomSlot && this.currentAppearance ? this.renderDefaultInputs() : null))))));
|
|
36904
36907
|
}
|
|
36905
36908
|
static get formAssociated() {
|
|
36906
36909
|
return !0;
|
|
@@ -26103,7 +26103,7 @@ const oF = () => ({
|
|
|
26103
26103
|
lazyLoadIntegration: VR,
|
|
26104
26104
|
getModalIntegration: () => eF,
|
|
26105
26105
|
getScreenshotIntegration: () => oF
|
|
26106
|
-
}), No = "2.5.
|
|
26106
|
+
}), No = "2.5.12", lF = (t, e, n) => {
|
|
26107
26107
|
const i = t.get(e);
|
|
26108
26108
|
i ? i.includes(n) || i.push(n) : t.set(e, [n]);
|
|
26109
26109
|
}, cF = (t, e) => {
|
|
@@ -7609,6 +7609,9 @@ const NylasPageStyling = class {
|
|
|
7609
7609
|
selectedConfigurationChangedHandler(newValue) {
|
|
7610
7610
|
utils.debug('nylas-page-styling', 'selectedConfigurationChangedHandler', newValue);
|
|
7611
7611
|
this.currentAppearance = newValue?.appearance || {};
|
|
7612
|
+
if (typeof this.internals?.setFormValue === 'function') {
|
|
7613
|
+
this.internals.setFormValue(JSON.stringify(this.currentAppearance), this.name);
|
|
7614
|
+
}
|
|
7612
7615
|
const editor = document.querySelector('nylas-scheduler-editor');
|
|
7613
7616
|
const slotElement = editor?.shadowRoot?.querySelector('slot[name="custom-page-style-inputs"]');
|
|
7614
7617
|
if (!slotElement) {
|
|
@@ -7641,8 +7644,8 @@ const NylasPageStyling = class {
|
|
|
7641
7644
|
const findElement = document?.querySelector(`[slot="custom-page-style-inputs"] [name="${name}"]`);
|
|
7642
7645
|
if (findElement)
|
|
7643
7646
|
return true;
|
|
7644
|
-
const
|
|
7645
|
-
return
|
|
7647
|
+
const shadowInputs = this.host.shadowRoot?.querySelectorAll('[data-page-styling]') ?? [];
|
|
7648
|
+
return Array.from(shadowInputs).some(el => el.name === name || el.getAttribute('name') === name);
|
|
7646
7649
|
}
|
|
7647
7650
|
async nylasFormInputChangeHandler(event) {
|
|
7648
7651
|
const { name, value } = event.detail;
|
|
@@ -7720,7 +7723,7 @@ const NylasPageStyling = class {
|
|
|
7720
7723
|
}
|
|
7721
7724
|
render() {
|
|
7722
7725
|
const showContent = this.customInputsSlot || (!this.hasCustomSlot && !!this.currentAppearance);
|
|
7723
|
-
return (index$1.h(index$1.Host, { key: '
|
|
7726
|
+
return (index$1.h(index$1.Host, { key: '68ff4f23782f0d5fbfa30d006d804663cfd4c7a2' }, index$1.h("div", { key: '4db1b16c2a559b759666a18cfc5ce1df427e3120', part: "nps", class: { 'nylas-page-styling': true, 'no-border': !showContent } }, showContent ? (index$1.h("div", { class: "header", part: "nps__header" }, index$1.h("div", null, index$1.h("h3", null, utils.instance.t('nylasPageStyling.headerTitle'))), index$1.h("div", { class: "drawer-toggle", part: "nps__drawer-toggle--container" }, index$1.h("span", { class: `chevron ${this.isOpen ? 'open' : 'closed'} `, onClick: () => this.toggleConfirmationEmail() }, index$1.h("chevron-icon", { width: "24", height: "24" }))))) : null, index$1.h("div", { key: 'cbd697408c8794ed3da1a7240cde839c28bd8e71', class: "hidden" }, index$1.h("input-color-picker", { key: 'b378ea6f4174ca07ad2f8c363f4dbfb108211a5d', name: "color-picker" })), index$1.h("div", { key: '6f210a564f347f40c18516bf4e39475cc48d9f57', id: "nylas-page-styling__body", class: "nylas-page-styling__body", part: "nps__body" }, index$1.h("div", { key: '793428c898c430412ebc3474aa01498c11a46842', class: { 'nylas-page-styling__section': true, 'no-padding': !showContent } }, index$1.h("div", { key: '18d8e84857d9ca6cb82b055f4218577d9974d0bb', class: "nylas-page-styling__row" }, index$1.h("div", { key: '4c17031c6f90a042bfad62c202bc0e9f9704471c', class: { subsection: true, hide: !this.isOpen } }, !this.hasCustomSlot && this.currentAppearance ? this.renderDefaultInputs() : null)))))));
|
|
7724
7727
|
}
|
|
7725
7728
|
static get formAssociated() { return true; }
|
|
7726
7729
|
get host() { return index$1.getElement(this); }
|