@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.
Files changed (39) hide show
  1. package/dist/cdn/nylas-additional-participants/nylas-additional-participants.es.js +7 -7
  2. package/dist/cdn/nylas-editor-tabs/nylas-editor-tabs.es.js +4558 -4547
  3. package/dist/cdn/nylas-event-title/nylas-event-title.es.js +6 -3
  4. package/dist/cdn/nylas-reminder-emails/nylas-reminder-emails.es.js +2289 -2281
  5. package/dist/cdn/nylas-reminder-time/nylas-reminder-time.es.js +2253 -2245
  6. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +103 -92
  7. package/dist/cjs/calendar-agenda-fill-icon_54.cjs.entry.js +41 -43
  8. package/dist/cjs/calendar-agenda-fill-icon_54.cjs.entry.js.map +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/nylas-web-elements.cjs.js +1 -1
  11. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js +9 -9
  12. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js.map +1 -1
  13. package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js +9 -6
  14. package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js.map +1 -1
  15. package/dist/collection/components/scheduler-editor/nylas-event-title/test/nylas-event-title.spec.js +24 -0
  16. package/dist/collection/components/scheduler-editor/nylas-event-title/test/nylas-event-title.spec.js.map +1 -1
  17. package/dist/collection/components/scheduler-editor/nylas-reminder-time/nylas-reminder-time.js +23 -30
  18. package/dist/collection/components/scheduler-editor/nylas-reminder-time/nylas-reminder-time.js.map +1 -1
  19. package/dist/collection/components/scheduler-editor/nylas-reminder-time/test/nylas-reminder-time.spec.js +37 -0
  20. package/dist/collection/components/scheduler-editor/nylas-reminder-time/test/nylas-reminder-time.spec.js.map +1 -0
  21. package/dist/components/nylas-additional-participants2.js +9 -9
  22. package/dist/components/nylas-additional-participants2.js.map +1 -1
  23. package/dist/components/nylas-event-title2.js +9 -6
  24. package/dist/components/nylas-event-title2.js.map +1 -1
  25. package/dist/components/nylas-reminder-time2.js +23 -29
  26. package/dist/components/nylas-reminder-time2.js.map +1 -1
  27. package/dist/esm/calendar-agenda-fill-icon_54.entry.js +41 -43
  28. package/dist/esm/calendar-agenda-fill-icon_54.entry.js.map +1 -1
  29. package/dist/esm/loader.js +1 -1
  30. package/dist/esm/nylas-web-elements.js +1 -1
  31. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  32. package/dist/nylas-web-elements/nylas-web-elements.esm.js.map +1 -1
  33. package/dist/nylas-web-elements/{p-df131a08.entry.js → p-d586ff14.entry.js} +3 -3
  34. package/dist/nylas-web-elements/p-d586ff14.entry.js.map +1 -0
  35. package/dist/types/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.d.ts +1 -1
  36. package/dist/types/components/scheduler-editor/nylas-event-title/nylas-event-title.d.ts +1 -0
  37. package/dist/types/components/scheduler-editor/nylas-reminder-time/nylas-reminder-time.d.ts +1 -1
  38. package/package.json +1 -1
  39. 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), this.validationError = "Event title is required") : ((i = this.internals) == null || i.setValidity({ customError: !1 }), this.validationError = ""), (s = this.internals) == null || s.setFormValue(t, this.name), this.valueChanged.emit({ value: t, name: this.name });
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: "3a6858cea6ad427bb8f7046e4d409c44d9d57467" }, Z("div", { key: "26574b9f7c76628771e584d1c3943b2ce9b77ce0", class: "nylas-event-title", part: "net" }, Z("label", { key: "b6bab982d9b8a091ee1c9a66b5d24b3050e08817", htmlFor: "title" }, "Event title", Z("span", { key: "34b1ba7719d37f6af0d3c84e3fe1c251625848b1", class: "required" }, "*")), Z("div", { key: "0fcbdee8625b13720b31df47ddb76bdba6f384c6", class: {
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: "8c267fb019bc2f4a7ec9bd771c7ebdbd4e36860e", class: "help-text" }, "Create a dynamic templated event title by typing ", Z("code", { key: "73fff78bf0ef47b1a4880b88630285c5565348e7" }, "$"), " and selecting a template item.", Z("span", { key: "64c431fb78eef320cdca1e426e4290f1663fe756", class: "label-icon" }, Z("tooltip-component", { key: "b8f4ce46c4f53f66d50b6121dbc76360972638f9" }, Z("info-icon", { key: "038824ecf2006ce2851de30c1538c30d96707ca9", slot: "tooltip-icon" }), Z("span", { key: "0fefb16b80e9c43a7f46e1d5f72d12ca39cdc348", slot: "tooltip-content" }, "For example, Interview with ", Z("code", { key: "df208a8bb8907416908a6cdbc0edba219e924513" }, "${invitee}"))))), this.validationError != "" && Z("span", { class: "error-message" }, this.validationError)));
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;