@nylas/web-elements 0.0.0-canary-20241017103834 → 0.0.0-canary-20241017220933
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-additional-participants/nylas-additional-participants.es.js +7 -7
- package/dist/cdn/nylas-editor-tabs/nylas-editor-tabs.es.js +4558 -4547
- package/dist/cdn/nylas-event-title/nylas-event-title.es.js +6 -3
- package/dist/cdn/nylas-reminder-emails/nylas-reminder-emails.es.js +2289 -2281
- package/dist/cdn/nylas-reminder-time/nylas-reminder-time.es.js +2253 -2245
- package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +103 -92
- package/dist/cjs/calendar-agenda-fill-icon_54.cjs.entry.js +41 -43
- package/dist/cjs/calendar-agenda-fill-icon_54.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nylas-web-elements.cjs.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js +9 -9
- package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js +9 -6
- package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-title/test/nylas-event-title.spec.js +24 -0
- package/dist/collection/components/scheduler-editor/nylas-event-title/test/nylas-event-title.spec.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-reminder-time/nylas-reminder-time.js +23 -30
- package/dist/collection/components/scheduler-editor/nylas-reminder-time/nylas-reminder-time.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-reminder-time/test/nylas-reminder-time.spec.js +37 -0
- package/dist/collection/components/scheduler-editor/nylas-reminder-time/test/nylas-reminder-time.spec.js.map +1 -0
- package/dist/components/nylas-additional-participants2.js +9 -9
- package/dist/components/nylas-additional-participants2.js.map +1 -1
- package/dist/components/nylas-event-title2.js +9 -6
- package/dist/components/nylas-event-title2.js.map +1 -1
- package/dist/components/nylas-reminder-time2.js +23 -29
- package/dist/components/nylas-reminder-time2.js.map +1 -1
- package/dist/esm/calendar-agenda-fill-icon_54.entry.js +41 -43
- package/dist/esm/calendar-agenda-fill-icon_54.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nylas-web-elements.js +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js.map +1 -1
- package/dist/nylas-web-elements/{p-df131a08.entry.js → p-d586ff14.entry.js} +3 -3
- package/dist/nylas-web-elements/p-d586ff14.entry.js.map +1 -0
- package/dist/types/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.d.ts +1 -1
- package/dist/types/components/scheduler-editor/nylas-event-title/nylas-event-title.d.ts +1 -0
- package/dist/types/components/scheduler-editor/nylas-reminder-time/nylas-reminder-time.d.ts +1 -1
- package/package.json +1 -1
- package/dist/nylas-web-elements/p-df131a08.entry.js.map +0 -1
|
@@ -11739,10 +11739,13 @@ const ni = Cr(class extends Br {
|
|
|
11739
11739
|
populateSuggestionsDropdown(e = "") {
|
|
11740
11740
|
this.filteredTokens = this.availableTokens.filter((t) => t.label.startsWith(e.toString()) || t.value.startsWith(e.toString())), this.filteredTokens.length > 0 && (this.ariaActivedescendant = this.filteredTokens[0].label);
|
|
11741
11741
|
}
|
|
11742
|
+
get isInternalsAvailable() {
|
|
11743
|
+
return typeof this.internals < "u" && typeof this.internals.setValidity == "function" && typeof this.internals.setFormValue == "function";
|
|
11744
|
+
}
|
|
11742
11745
|
updateEventTitle(e) {
|
|
11743
11746
|
var r, i, s;
|
|
11744
11747
|
const t = e.replace(/ +/g, " ");
|
|
11745
|
-
t === "" ? ((r = this.internals) == null || r.setValidity({ customError: !0 }, "Event title is required", this.titleRef)
|
|
11748
|
+
t === "" || /^[\s]*$/.test(t) ? (this.validationError = "Event title is required", this.isInternalsAvailable && ((r = this.internals) == null || r.setValidity({ customError: !0 }, "Event title is required", this.titleRef))) : (this.validationError = "", this.isInternalsAvailable && ((i = this.internals) == null || i.setValidity({ customError: !1 }))), this.isInternalsAvailable && ((s = this.internals) == null || s.setFormValue(t, this.name)), this.valueChanged.emit({ value: t, name: this.name });
|
|
11746
11749
|
}
|
|
11747
11750
|
resetDropdown() {
|
|
11748
11751
|
this.showTokens = !1, this.ariaActivedescendant = "";
|
|
@@ -11752,10 +11755,10 @@ const ni = Cr(class extends Br {
|
|
|
11752
11755
|
}
|
|
11753
11756
|
render() {
|
|
11754
11757
|
var e;
|
|
11755
|
-
return Z(Bs, { key: "
|
|
11758
|
+
return Z(Bs, { key: "c9bef753b69793b6db0569ec750a04ceb4a51de8" }, Z("div", { key: "b80559c8ebe73437fbd347a034fa577c0ee4a60b", class: "nylas-event-title", part: "net" }, Z("label", { key: "c8b911bdfd24a7934b8359d5ba9a2531edc606c1", htmlFor: "title" }, "Event title", Z("span", { key: "953b07bae8f6ebbcc465cc3349b6b97ecf8cd544", class: "required" }, "*")), Z("div", { key: "cbc5559de86b4c3a45c30088fba3d2a3382b4311", class: {
|
|
11756
11759
|
title: !0,
|
|
11757
11760
|
error: this.validationError !== ""
|
|
11758
|
-
}, part: "net__title", ref: (t) => this.titleRef = t, contentEditable: "true", onInput: (t) => this.handleChange(t), onKeyDown: (t) => this.handleInputKeyDown(t) }), this.showTokens && ((e = this.filteredTokens) == null ? void 0 : e.length) > 0 && Z("div", { class: "token-options", part: "net__dropdown-content" }, Z("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map((t) => Z("li", { tabindex: "0", key: t.label, id: t.label, class: { active: this.ariaActivedescendant === t.label }, onClick: (r) => this.selectOption(r, t), role: "option" }, this.getLabelHTML(t.labelHTML))))), Z("span", { key: "
|
|
11761
|
+
}, part: "net__title", ref: (t) => this.titleRef = t, contentEditable: "true", onInput: (t) => this.handleChange(t), onKeyDown: (t) => this.handleInputKeyDown(t) }), this.showTokens && ((e = this.filteredTokens) == null ? void 0 : e.length) > 0 && Z("div", { class: "token-options", part: "net__dropdown-content" }, Z("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map((t) => Z("li", { tabindex: "0", key: t.label, id: t.label, class: { active: this.ariaActivedescendant === t.label }, onClick: (r) => this.selectOption(r, t), role: "option" }, this.getLabelHTML(t.labelHTML))))), Z("span", { key: "cddf49a23d611b00b5a06a431bb6033ee564fba6", class: "help-text" }, "Create a dynamic templated event title by typing ", Z("code", { key: "b87cf9d630645aedf2c72bb7356ce8737406c127" }, "$"), " and selecting a template item.", Z("span", { key: "75ad5946a822c3ee23ddb46f29b611dd68875d05", class: "label-icon" }, Z("tooltip-component", { key: "20a6fb4aaac4d1ad5264d30364fc695de7f0ca11" }, Z("info-icon", { key: "22413e474fd5113bfa3663d137a67cd2da94268f", slot: "tooltip-icon" }), Z("span", { key: "f266824868c09cf41564fe1fcbc42e9113bf06fb", slot: "tooltip-content" }, "For example, Interview with ", Z("code", { key: "0989a865eb48e0a0363ec69218be46ab7d6f18f1" }, "${invitee}"))))), this.validationError != "" && Z("span", { class: "error-message" }, this.validationError)));
|
|
11759
11762
|
}
|
|
11760
11763
|
static get formAssociated() {
|
|
11761
11764
|
return !0;
|