@nylas/web-elements 2.5.11 → 2.5.13
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 +9 -6
- package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +1 -1
- package/dist/cjs/calendar-agenda-fill-icon_39.cjs.entry.js +6 -6
- 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-DbvVCdbm.js → version-BspChjso.js} +3 -3
- package/dist/cjs/{version-DbvVCdbm.js.map → version-BspChjso.js.map} +1 -1
- package/dist/collection/components/scheduler-editor/nylas-page-styling/nylas-page-styling.js +3 -3
- package/dist/collection/components/scheduler-editor/nylas-page-styling/nylas-page-styling.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.js +3 -3
- package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.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-participants-custom-availability.js +1 -1
- package/dist/components/nylas-scheduler-editor.js +5 -5
- package/dist/components/nylas-scheduling.js +1 -1
- package/dist/components/{p-pY2yw_Ql.js → p-B6bT8J6p.js} +5 -5
- package/dist/components/p-B6bT8J6p.js.map +1 -0
- package/dist/components/{p-DP3OiAjS.js → p-BDVZl2EG.js} +4 -4
- package/dist/components/{p-DP3OiAjS.js.map → p-BDVZl2EG.js.map} +1 -1
- package/dist/components/{p-Bgb7cz6Z.js → p-Csux9e4C.js} +5 -5
- package/dist/components/{p-Bgb7cz6Z.js.map → p-Csux9e4C.js.map} +1 -1
- package/dist/components/{p-B05sg_l1.js → p-DvPuyp-I.js} +5 -5
- package/dist/components/p-DvPuyp-I.js.map +1 -0
- package/dist/components/{p-DmOB6JTr.js → p-KPbwxUCV.js} +3 -3
- package/dist/components/{p-DmOB6JTr.js.map → p-KPbwxUCV.js.map} +1 -1
- package/dist/esm/calendar-agenda-fill-icon_39.entry.js +6 -6
- 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-BHcQFl5b.js → version-xO_cryq5.js} +3 -3
- package/dist/esm/{version-BHcQFl5b.js.map → version-xO_cryq5.js.map} +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/{p-620804db.entry.js → p-0716662b.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-0a7c5cd7.entry.js → p-ca824e25.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-f1942b81.entry.js → p-ccc9d9d2.entry.js} +3 -3
- package/dist/nylas-web-elements/p-ccc9d9d2.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-8a1b1bb7.entry.js → p-e0de5436.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-BHcQFl5b.js → p-xO_cryq5.js} +2 -2
- package/dist/nylas-web-elements/{p-BHcQFl5b.js.map → p-xO_cryq5.js.map} +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/p-B05sg_l1.js.map +0 -1
- package/dist/components/p-pY2yw_Ql.js.map +0 -1
- package/dist/nylas-web-elements/p-f1942b81.entry.js.map +0 -1
- /package/dist/nylas-web-elements/{p-620804db.entry.js.map → p-0716662b.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-0a7c5cd7.entry.js.map → p-ca824e25.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-8a1b1bb7.entry.js.map → p-e0de5436.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.13", $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
|
}
|
|
@@ -36847,7 +36847,10 @@ const ZN = De(class extends Ae {
|
|
|
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;
|
|
@@ -37599,7 +37602,7 @@ const QN = De(class extends Ae {
|
|
|
37599
37602
|
x(`Malformed participant name format: ${t}. Expected format: "participant-availability-{participantId}-{uniqueKey}"`);
|
|
37600
37603
|
return;
|
|
37601
37604
|
}
|
|
37602
|
-
const u = d
|
|
37605
|
+
const u = d.slice(3).join("-");
|
|
37603
37606
|
if (!this.selectedParticipants[u])
|
|
37604
37607
|
return;
|
|
37605
37608
|
const p = a.openHours || [], y = (p == null ? void 0 : p.length) > 0 ? p : ((s = (o = (r = this.selectedConfiguration) == null ? void 0 : r.availability) == null ? void 0 : o.availability_rules) == null ? void 0 : s.default_open_hours) || [];
|
|
@@ -37613,7 +37616,7 @@ const QN = De(class extends Ae {
|
|
|
37613
37616
|
x(`Malformed participant specific date name format: ${t}. Expected format: "participant-specific-time-availability-{index}-{uniqueKey}"`);
|
|
37614
37617
|
return;
|
|
37615
37618
|
}
|
|
37616
|
-
const u = d
|
|
37619
|
+
const u = d.slice(5).join("-");
|
|
37617
37620
|
if (!this.selectedParticipants[u])
|
|
37618
37621
|
return;
|
|
37619
37622
|
const p = a || [];
|
|
@@ -37665,7 +37668,7 @@ const QN = De(class extends Ae {
|
|
|
37665
37668
|
return this.internals !== void 0 && typeof this.internals.setFormValue == "function" && typeof this.internals.setValidity == "function";
|
|
37666
37669
|
}
|
|
37667
37670
|
render() {
|
|
37668
|
-
return c(Ke, { key: "
|
|
37671
|
+
return c(Ke, { key: "5ff7155db08b5adcfe1168adf8452f426f4fb66d" }, c("div", { key: "376210b2869e4e9c518ba6f6ab29aff086df8a86", class: "nylas-participants-custom-availability", part: "npca" }, c("div", { key: "0a7a2492da0927c3fc2eff3e5b74ee8dd873f5ce", class: "header", part: "npca__header" }, c("h3", { key: "f38db5fea6b75ebf696c86371437149421f375b0" }, w.t("nylasParticipantCustomAvailability.headerTitle")), c("p", { key: "b64aa2227fc6c761161baee71df7ccfa1d4a0c0b" }, w.t("nylasParticipantCustomAvailability.headerSubTitle"))), this.validationError && c("div", { key: "902126476a17af8e5c5303bd7acd86ae95063c68", class: "validation-error", part: "npca__validation-error" }, c("span", { key: "b3595b86576e9894e97127bad821714cc9f4a0ea" }, this.validationError)), c("div", { key: "a03b0815c38caaa5255293efe25a2f8b5e65349a", class: "content", part: "npca__content" }, c("form", { key: "92b375ef71cd62bf4ed37b3fcee09c718e79bc3b", ref: (e) => this.participantFormRef = e }, Object.keys(this.selectedParticipants).map((e, t) => {
|
|
37669
37672
|
var r;
|
|
37670
37673
|
const i = this.selectedParticipants[e], a = ((r = i.availability) == null ? void 0 : r.open_hours) || [];
|
|
37671
37674
|
if (!(!i || !i.name))
|
|
@@ -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.13", 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) => {
|
|
@@ -7644,8 +7644,8 @@ const NylasPageStyling = class {
|
|
|
7644
7644
|
const findElement = document?.querySelector(`[slot="custom-page-style-inputs"] [name="${name}"]`);
|
|
7645
7645
|
if (findElement)
|
|
7646
7646
|
return true;
|
|
7647
|
-
const
|
|
7648
|
-
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);
|
|
7649
7649
|
}
|
|
7650
7650
|
async nylasFormInputChangeHandler(event) {
|
|
7651
7651
|
const { name, value } = event.detail;
|
|
@@ -7723,7 +7723,7 @@ const NylasPageStyling = class {
|
|
|
7723
7723
|
}
|
|
7724
7724
|
render() {
|
|
7725
7725
|
const showContent = this.customInputsSlot || (!this.hasCustomSlot && !!this.currentAppearance);
|
|
7726
|
-
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)))))));
|
|
7727
7727
|
}
|
|
7728
7728
|
static get formAssociated() { return true; }
|
|
7729
7729
|
get host() { return index$1.getElement(this); }
|
|
@@ -8142,7 +8142,7 @@ const NylasParticipantsCustomAvailability = class {
|
|
|
8142
8142
|
utils.debug(`Malformed participant name format: ${name}. Expected format: "participant-availability-{participantId}-{uniqueKey}"`);
|
|
8143
8143
|
return;
|
|
8144
8144
|
}
|
|
8145
|
-
const key = nameParts
|
|
8145
|
+
const key = nameParts.slice(3).join('-');
|
|
8146
8146
|
if (!this.selectedParticipants[key])
|
|
8147
8147
|
return;
|
|
8148
8148
|
const existingOpenHours = jsonValue.openHours || [];
|
|
@@ -8163,7 +8163,7 @@ const NylasParticipantsCustomAvailability = class {
|
|
|
8163
8163
|
utils.debug(`Malformed participant specific date name format: ${name}. Expected format: "participant-specific-time-availability-{index}-{uniqueKey}"`);
|
|
8164
8164
|
return;
|
|
8165
8165
|
}
|
|
8166
|
-
const key = nameParts
|
|
8166
|
+
const key = nameParts.slice(5).join('-');
|
|
8167
8167
|
if (!this.selectedParticipants[key])
|
|
8168
8168
|
return;
|
|
8169
8169
|
const existingSpecificTimeAvailability = jsonValue || [];
|
|
@@ -8240,7 +8240,7 @@ const NylasParticipantsCustomAvailability = class {
|
|
|
8240
8240
|
return this.internals !== undefined && typeof this.internals.setFormValue === 'function' && typeof this.internals.setValidity === 'function';
|
|
8241
8241
|
}
|
|
8242
8242
|
render() {
|
|
8243
|
-
return (index$1.h(index$1.Host, { key: '
|
|
8243
|
+
return (index$1.h(index$1.Host, { key: '5ff7155db08b5adcfe1168adf8452f426f4fb66d' }, index$1.h("div", { key: '376210b2869e4e9c518ba6f6ab29aff086df8a86', class: "nylas-participants-custom-availability", part: "npca" }, index$1.h("div", { key: '0a7a2492da0927c3fc2eff3e5b74ee8dd873f5ce', class: "header", part: "npca__header" }, index$1.h("h3", { key: 'f38db5fea6b75ebf696c86371437149421f375b0' }, utils.instance.t('nylasParticipantCustomAvailability.headerTitle')), index$1.h("p", { key: 'b64aa2227fc6c761161baee71df7ccfa1d4a0c0b' }, utils.instance.t('nylasParticipantCustomAvailability.headerSubTitle'))), this.validationError && (index$1.h("div", { key: '902126476a17af8e5c5303bd7acd86ae95063c68', class: "validation-error", part: "npca__validation-error" }, index$1.h("span", { key: 'b3595b86576e9894e97127bad821714cc9f4a0ea' }, this.validationError))), index$1.h("div", { key: 'a03b0815c38caaa5255293efe25a2f8b5e65349a', class: "content", part: "npca__content" }, index$1.h("form", { key: '92b375ef71cd62bf4ed37b3fcee09c718e79bc3b', ref: el => (this.participantFormRef = el) }, Object.keys(this.selectedParticipants).map((key, index) => {
|
|
8244
8244
|
const participant = this.selectedParticipants[key];
|
|
8245
8245
|
const participantOpenHours = participant.availability?.open_hours || [];
|
|
8246
8246
|
if (!participant || !participant.name)
|