@nylas/web-elements 0.0.0-test-20250320205845 → 0.0.0-test-20250327161320

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 (76) hide show
  1. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +10 -11
  2. package/dist/cjs/calendar-agenda-fill-icon_36.cjs.entry.js +6 -9
  3. package/dist/cjs/calendar-agenda-fill-icon_36.cjs.entry.js.map +1 -1
  4. package/dist/cjs/google-logo-icon_6.cjs.entry.js +5 -5
  5. package/dist/cjs/google-logo-icon_6.cjs.entry.js.map +1 -1
  6. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js.map +1 -1
  7. package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
  8. package/dist/cjs/nylas-transcript.cjs.entry.js +4 -4
  9. package/dist/cjs/nylas-transcript.cjs.entry.js.map +1 -1
  10. package/dist/cjs/nylas-video-player.cjs.entry.js +2 -2
  11. package/dist/cjs/nylas-video-player.cjs.entry.js.map +1 -1
  12. package/dist/cjs/scheduler-store-461fd2ff.js.map +1 -1
  13. package/dist/collection/components/nylas-notebook/nylas-transcript/nylas-transcript.css +5 -0
  14. package/dist/collection/components/nylas-notebook/nylas-transcript/nylas-transcript.js +3 -3
  15. package/dist/collection/components/nylas-notebook/nylas-transcript/nylas-transcript.js.map +1 -1
  16. package/dist/collection/components/nylas-notebook/nylas-video-player/nylas-video-player.css +0 -3
  17. package/dist/collection/components/nylas-notebook/nylas-video-player/nylas-video-player.js +1 -1
  18. package/dist/collection/components/nylas-notebook/nylas-video-player/nylas-video-player.js.map +1 -1
  19. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +1 -1
  20. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js.map +1 -1
  21. package/dist/collection/components/scheduler-editor/nylas-booking-form-config/nylas-booking-form-config.js +3 -5
  22. package/dist/collection/components/scheduler-editor/nylas-booking-form-config/nylas-booking-form-config.js.map +1 -1
  23. package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js +5 -5
  24. package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js.map +1 -1
  25. package/dist/collection/components/scheduler-editor/nylas-event-duration/test/nylas-event-duration-with-config-2.spec.js +58 -0
  26. package/dist/collection/components/scheduler-editor/nylas-event-duration/test/nylas-event-duration-with-config-2.spec.js.map +1 -0
  27. package/dist/collection/components/scheduler-editor/nylas-event-duration/test/nylas-event-duration-with-config.spec.js +0 -32
  28. package/dist/collection/components/scheduler-editor/nylas-event-duration/test/nylas-event-duration-with-config.spec.js.map +1 -1
  29. package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.js +3 -4
  30. package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.js.map +1 -1
  31. package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/test/nylas-participants-custom-availability.spec.js +12 -0
  32. package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/test/nylas-participants-custom-availability.spec.js.map +1 -1
  33. package/dist/collection/connector/shared/api/scheduler-config.js.map +1 -1
  34. package/dist/collection/types/index.js.map +1 -1
  35. package/dist/components/nylas-booking-form-config2.js +3 -5
  36. package/dist/components/nylas-booking-form-config2.js.map +1 -1
  37. package/dist/components/nylas-editor-tabs-group2.js +5 -5
  38. package/dist/components/nylas-editor-tabs-group2.js.map +1 -1
  39. package/dist/components/nylas-participants-custom-availability2.js +3 -4
  40. package/dist/components/nylas-participants-custom-availability2.js.map +1 -1
  41. package/dist/components/nylas-scheduler-editor.js.map +1 -1
  42. package/dist/components/nylas-scheduling.js.map +1 -1
  43. package/dist/components/nylas-transcript.js +4 -4
  44. package/dist/components/nylas-transcript.js.map +1 -1
  45. package/dist/components/nylas-video-player.js +2 -2
  46. package/dist/components/nylas-video-player.js.map +1 -1
  47. package/dist/components/scheduler-store.js.map +1 -1
  48. package/dist/esm/calendar-agenda-fill-icon_36.entry.js +6 -9
  49. package/dist/esm/calendar-agenda-fill-icon_36.entry.js.map +1 -1
  50. package/dist/esm/google-logo-icon_6.entry.js +5 -5
  51. package/dist/esm/google-logo-icon_6.entry.js.map +1 -1
  52. package/dist/esm/nylas-scheduler-editor.entry.js.map +1 -1
  53. package/dist/esm/nylas-scheduling.entry.js.map +1 -1
  54. package/dist/esm/nylas-transcript.entry.js +4 -4
  55. package/dist/esm/nylas-transcript.entry.js.map +1 -1
  56. package/dist/esm/nylas-video-player.entry.js +2 -2
  57. package/dist/esm/nylas-video-player.entry.js.map +1 -1
  58. package/dist/esm/scheduler-store-755ced0b.js.map +1 -1
  59. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  60. package/dist/nylas-web-elements/p-4b48f29a.entry.js.map +1 -1
  61. package/dist/nylas-web-elements/p-68608216.entry.js.map +1 -1
  62. package/dist/nylas-web-elements/{p-f12cd991.entry.js → p-7fcdad32.entry.js} +2 -2
  63. package/dist/nylas-web-elements/p-7fcdad32.entry.js.map +1 -0
  64. package/dist/nylas-web-elements/{p-b1c57792.entry.js → p-c3f848d7.entry.js} +2 -2
  65. package/dist/nylas-web-elements/{p-b1c57792.entry.js.map → p-c3f848d7.entry.js.map} +1 -1
  66. package/dist/nylas-web-elements/p-d1053aa8.entry.js +2 -0
  67. package/dist/nylas-web-elements/p-d1053aa8.entry.js.map +1 -0
  68. package/dist/nylas-web-elements/p-d36ad6ef.js.map +1 -1
  69. package/dist/nylas-web-elements/{p-11d7062d.entry.js → p-f4881c71.entry.js} +2 -2
  70. package/dist/nylas-web-elements/p-f4881c71.entry.js.map +1 -0
  71. package/dist/types/connector/shared/api/scheduler-config.d.ts +2 -2
  72. package/package.json +4 -4
  73. package/dist/nylas-web-elements/p-11d7062d.entry.js.map +0 -1
  74. package/dist/nylas-web-elements/p-3d93df74.entry.js +0 -2
  75. package/dist/nylas-web-elements/p-3d93df74.entry.js.map +0 -1
  76. package/dist/nylas-web-elements/p-f12cd991.entry.js.map +0 -1
@@ -3787,9 +3787,7 @@ const NylasBookingFormConfig = class {
3787
3787
  if (name === 'add-field') {
3788
3788
  const field = FIELD_TYPES.find(f => f.type === value);
3789
3789
  const maxOrder = Math.max(...this.formFields.map(f => f.order));
3790
- const existingFieldKeys = this.formFields
3791
- .filter(f => f.type === field.type && f.key !== undefined)
3792
- .map(f => f.key);
3790
+ const existingFieldKeys = this.formFields.filter(f => f.type === field.type && f.key !== undefined).map(f => f.key);
3793
3791
  const next = this.findNextMissingNumber(existingFieldKeys);
3794
3792
  const newField = { ...field, label: field.label, key: `${field.type}_${field.label.split(' ').join('-')}_${next}`, order: maxOrder + 1 };
3795
3793
  this.formFields = [...this.formFields, newField];
@@ -3923,13 +3921,13 @@ const NylasBookingFormConfig = class {
3923
3921
  this.formFieldsChangedHandler(this.formFields);
3924
3922
  }
3925
3923
  render() {
3926
- return (h(Host, { key: '979fb00eb59c917ae078bc7485f2e7a771a80253' }, h("div", { key: '3116eff470816482ad76da6fc0b1ecf815d6a0c0', class: "nylas-booking-form-config", part: "nbfc" }, h("div", { key: '6a9ffc262d6b9c69adb7abb4ca6b6cc3740e0faa', class: "header", part: "nbfc__header" }, h("div", { key: 'fc7a5a618a5e6b5cfc8f228eb70a246a42db6e6c', class: "header_text" }, h("h3", { key: 'c115277fa4a00de5bb0290c15618e763391f083c' }, instance.t('nylasBookingFormConfig.headerTitle')), h("p", { key: '5e2dde9a7cd55433bd5578e832993b9eeed0aacc' }, instance.t('nylasBookingFormConfig.headerSubTitle'))), h("div", { key: '0a4308a32e2c06d5010a8eb9865b1d17e9a78b07', class: "header_action" }, h("select-dropdown", { key: '2ed2353ec43bae53973ff9126dcda12315d7c051', name: "add-field", exportparts: "sd_dropdown: nbfc__add_field, sd_dropdown-button: nbfc__add_field-button, sd_dropdown-content: nbfc__add_field-dropdown-content", options: this.fieldTypes, withSearch: false, withChevron: false, dropdownButtonText: instance.t('nylasBookingFormConfig.dropdownButtonText') }, h("span", { key: '3e1bbe733b46cde957fea99873615eed2f5b9a00', slot: "select-icon" }, h("plus-icon", { key: '7d5b7b9d55ead7f14777cf9c1baab7d7b9509ee8', width: "15", height: "15" }))))), h("div", { key: 'fa3b2480584501e345c2b940d0b3f01d4aeb365a', class: "content" }, h("div", { key: 'e009e7c11d3362f3d7c3e798235c7fb8d97fd2bc', class: "additional_fields static_fields", part: "nbfc__static_fields" }, this.staticFields.map((field, i) => {
3924
+ return (h(Host, { key: 'e0f16996249394ba2712e81a49cf36ea6564ec05' }, h("div", { key: '4dd44f9c72c8d0a3aeee984dfd84f17bff90625a', class: "nylas-booking-form-config", part: "nbfc" }, h("div", { key: '197adcf139b9039a986ddeb041c515094cebfd6c', class: "header", part: "nbfc__header" }, h("div", { key: 'b6c7ee7740f34772de476dd305fed249b44d2de6', class: "header_text" }, h("h3", { key: '47746821f80cde68397416f80082eb7010e7e6f4' }, instance.t('nylasBookingFormConfig.headerTitle')), h("p", { key: 'ca58778afafc99cf229c910c38a6267cb06094c5' }, instance.t('nylasBookingFormConfig.headerSubTitle'))), h("div", { key: '0d1ed1dc651aae41a02f25d4bef8a498a7efea6a', class: "header_action" }, h("select-dropdown", { key: 'be4c11be458c04dae1013cb9f90be5ea60969dd7', name: "add-field", exportparts: "sd_dropdown: nbfc__add_field, sd_dropdown-button: nbfc__add_field-button, sd_dropdown-content: nbfc__add_field-dropdown-content", options: this.fieldTypes, withSearch: false, withChevron: false, dropdownButtonText: instance.t('nylasBookingFormConfig.dropdownButtonText') }, h("span", { key: '2551ed804324718f1a2bf588a331c2c0a651d8c3', slot: "select-icon" }, h("plus-icon", { key: '98cdb1849e4cfa5dd62eb0d25b09018f23d6c55d', width: "15", height: "15" }))))), h("div", { key: 'fe7c1bdba3fc45544f7a9346142051e2626c9f0d', class: "content" }, h("div", { key: 'fd253106a51dd9bdb6745c2775f78d30f8f7a2e1', class: "additional_fields static_fields", part: "nbfc__static_fields" }, this.staticFields.map((field, i) => {
3927
3925
  return (h("div", { class: `form-field draggable ${field.readonly && 'fixed'}`, part: "nbfc__form_field", key: i }, h("div", { class: "form-field_header", part: "nbfc__form_field-header" }, h("span", { class: "dragable" }, h("dragable-icon", { width: "24", height: "25" })), h("div", { class: "form-field_header_text" }, h("h4", null, instance.t(`nylasBookingFormConfig.fieldLabel.${field.fieldLabelKey}`)), h("p", null, field.typeLabel)), h("div", { class: "form-field_header_actions" }, h("span", { class: `is-required` }, field.required ? instance.t('required') : instance.t('optional')), h("span", { class: `chevron ${field.isOpen ? 'open' : 'closed'}`, onClick: () => {
3928
3926
  this.fieldToggle(i);
3929
3927
  } }, h("chevron-icon", { width: "24", height: "24" })))), h("div", { class: `form-field_content ${!field.isOpen && 'hidden'}`, part: "nbfc__form_field-content" }, h("div", { class: "inputs" }, h("input-component", { class: 'label-input', name: `${i}`, key: i, label: instance.t('nylasBookingFormConfig.label'), required: false, readOnly: field.readonly, defaultValue: field.label }, h("div", { class: "required-input", slot: "additional-input" }, h("input", { type: "checkbox", name: `required_${field.order}`, id: `required_${field.order}`, onClick: () => {
3930
3928
  this.fieldRequired(i);
3931
3929
  }, checked: field.required, disabled: field.readonly }), h("label", { htmlFor: `required_${field.order}`, "aria-label": "Required" }, instance.t('required'))))))));
3932
- })), h("div", { key: '6e3e43cef3f490b42eed34b3ad87c82854dd07c8', id: "fields", class: "additional_fields", part: "nbfc__additional_fields" }, this.formFields?.map((field, i) => {
3930
+ })), h("div", { key: '825ca08b506c8016f3d8206489bdeeee4b789c82', id: "fields", class: "additional_fields", part: "nbfc__additional_fields" }, this.formFields?.map((field, i) => {
3933
3931
  return (h("div", { class: `form-field draggable ${field?.readonly ? 'fixed' : ''}`, part: "nbfc__form_field", key: field.key }, h("div", { class: "form-field_header", part: "nbfc__form_field-header" }, h("span", { class: "dragable" }, h("dragable-icon", { width: "24", height: "25" })), h("div", { class: "form-field_header_text" }, h("h4", null, instance.t(`nylasBookingFormConfig.fieldLabel.${field.fieldLabelKey}`)), h("p", null, field.typeLabel)), h("div", { class: "form-field_header_actions" }, h("span", { class: `is-required` }, field.required ? instance.t('required') : instance.t('optional')), !field.readonly && (h("button", { onClick: () => {
3934
3932
  const title = this.watchFields.title;
3935
3933
  const description = this.watchFields.description;
@@ -6786,9 +6784,8 @@ const NylasParticipantsCustomAvailability = class {
6786
6784
  }
6787
6785
  updateFormValue() {
6788
6786
  const participantOpenHours = {};
6789
- const participants = this.selectedConfiguration?.participants || this.participants;
6790
- participants.forEach(participant => {
6791
- participantOpenHours[participant.email] = this.selectedParticipants[participant.email].openHours;
6787
+ Object.keys(this.selectedParticipants).forEach(key => {
6788
+ participantOpenHours[key] = this.selectedParticipants[key].openHours;
6792
6789
  });
6793
6790
  this.isInternalsAvailable && this.internals.setFormValue(JSON.stringify(participantOpenHours), this.name);
6794
6791
  this.valueChanged.emit({ value: JSON.stringify(participantOpenHours), name: this.name });
@@ -6811,7 +6808,7 @@ const NylasParticipantsCustomAvailability = class {
6811
6808
  return this.internals !== undefined && typeof this.internals.setFormValue === 'function' && typeof this.internals.setValidity === 'function';
6812
6809
  }
6813
6810
  render() {
6814
- return (h(Host, { key: '3b2ec52f54435823e377673d6b2ebd274d75a9b0' }, h("div", { key: 'a5d310fbdd12acc60b2c32b2821998048bf44bb0', class: "nylas-participants-custom-availability", part: "npca" }, h("div", { key: 'c31faecd68fcfd628966cfbe2b504196e08a070a', class: "header", part: "npca__header" }, h("h3", { key: '567baca7903258ff0c315e7e8a285e8efbeb5cd4' }, instance.t('nylasParticipantCustomAvailability.headerTitle')), h("p", { key: 'bc4385b9f73faacfb0108146909a1aee09e58b3e' }, instance.t('nylasParticipantCustomAvailability.headerSubTitle'))), h("div", { key: 'd41961b1b37647f8fdadfb74f61170faf2fdb874', class: "content", part: "npca__content" }, h("form", { key: '6270e1a03cdbc615ba72484548b9263489c7b006', ref: el => (this.participantFormRef = el) }, Object.keys(this.selectedParticipants).map((key, index) => {
6811
+ return (h(Host, { key: '3c4983c971e133b5f1f77b4b435a8001fed0fa53' }, h("div", { key: 'c80b00ed32e7b0d3ce78cbda214f15a2e07bd5e6', class: "nylas-participants-custom-availability", part: "npca" }, h("div", { key: 'f1adc8fed54bedb012808e98c15943f6aa0ae3e5', class: "header", part: "npca__header" }, h("h3", { key: 'e029d902dd4bad8ebc79cba56026e9e493235e8e' }, instance.t('nylasParticipantCustomAvailability.headerTitle')), h("p", { key: '943ff798c572865d25a8270f04515405adc03231' }, instance.t('nylasParticipantCustomAvailability.headerSubTitle'))), h("div", { key: 'bc10d84b37b4499fa1c17d99fb8a0d208dac7422', class: "content", part: "npca__content" }, h("form", { key: '189d5ee292f0c895d9d6c4f58970d37fb657f7b0', ref: el => (this.participantFormRef = el) }, Object.keys(this.selectedParticipants).map((key, index) => {
6815
6812
  const participant = this.selectedParticipants[key];
6816
6813
  const participantOpenHours = participant.availability?.open_hours || [];
6817
6814
  if (!participant || !participant.name || !participant.availability)