@nylas/web-elements 0.0.0-test-20250320180623 → 0.0.0-test-20250320184617

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 (96) hide show
  1. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +25 -25
  2. package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +247 -247
  3. package/dist/cjs/button-component_2.cjs.entry.js +1 -1
  4. package/dist/cjs/button-component_2.cjs.entry.js.map +1 -1
  5. package/dist/cjs/calendar-agenda-fill-icon_36.cjs.entry.js +17 -18
  6. package/dist/cjs/calendar-agenda-fill-icon_36.cjs.entry.js.map +1 -1
  7. package/dist/cjs/chevron-icon_3.cjs.entry.js +1 -1
  8. package/dist/cjs/chevron-icon_3.cjs.entry.js.map +1 -1
  9. package/dist/cjs/google-logo-icon_6.cjs.entry.js +5 -5
  10. package/dist/cjs/google-logo-icon_6.cjs.entry.js.map +1 -1
  11. package/dist/cjs/input-dropdown_2.cjs.entry.js +1 -1
  12. package/dist/cjs/input-dropdown_2.cjs.entry.js.map +1 -1
  13. package/dist/cjs/multi-select-dropdown_2.cjs.entry.js +2 -2
  14. package/dist/cjs/multi-select-dropdown_2.cjs.entry.js.map +1 -1
  15. package/dist/cjs/nylas-provider.cjs.entry.js.map +1 -1
  16. package/dist/cjs/scheduler-store-df3a9a3a.js.map +1 -1
  17. package/dist/collection/components/design-system/button-component/button-component.js +4 -3
  18. package/dist/collection/components/design-system/button-component/button-component.js.map +1 -1
  19. package/dist/collection/components/design-system/input-dropdown/input-dropdown.js +10 -7
  20. package/dist/collection/components/design-system/input-dropdown/input-dropdown.js.map +1 -1
  21. package/dist/collection/components/design-system/multi-select-dropdown/multi-select-dropdown.js +5 -4
  22. package/dist/collection/components/design-system/multi-select-dropdown/multi-select-dropdown.js.map +1 -1
  23. package/dist/collection/components/design-system/select-dropdown/select-dropdown.js +13 -9
  24. package/dist/collection/components/design-system/select-dropdown/select-dropdown.js.map +1 -1
  25. package/dist/collection/components/nylas-provider/nylas-provider.js +1 -1
  26. package/dist/collection/components/scheduler-editor/nylas-buffer-time/nylas-buffer-time.js +2 -2
  27. package/dist/collection/components/scheduler-editor/nylas-buffer-time/nylas-buffer-time.js.map +1 -1
  28. package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js +30 -15
  29. package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js.map +1 -1
  30. package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js +15 -16
  31. package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js.map +1 -1
  32. package/dist/collection/connector/shared/api/auth.js.map +1 -1
  33. package/dist/collection/connector/shared/api/scheduler.js.map +1 -1
  34. package/dist/components/button-component2.js +1 -1
  35. package/dist/components/button-component2.js.map +1 -1
  36. package/dist/components/input-dropdown2.js +1 -1
  37. package/dist/components/input-dropdown2.js.map +1 -1
  38. package/dist/components/multi-select-dropdown2.js +2 -2
  39. package/dist/components/multi-select-dropdown2.js.map +1 -1
  40. package/dist/components/nylas-buffer-time2.js +2 -2
  41. package/dist/components/nylas-buffer-time2.js.map +1 -1
  42. package/dist/components/nylas-editor-tabs-group2.js +5 -5
  43. package/dist/components/nylas-editor-tabs-group2.js.map +1 -1
  44. package/dist/components/nylas-event-duration2.js +15 -16
  45. package/dist/components/nylas-event-duration2.js.map +1 -1
  46. package/dist/components/nylas-provider.js.map +1 -1
  47. package/dist/components/scheduler-store.js.map +1 -1
  48. package/dist/components/select-dropdown2.js +1 -1
  49. package/dist/components/select-dropdown2.js.map +1 -1
  50. package/dist/esm/button-component_2.entry.js +1 -1
  51. package/dist/esm/button-component_2.entry.js.map +1 -1
  52. package/dist/esm/calendar-agenda-fill-icon_36.entry.js +17 -18
  53. package/dist/esm/calendar-agenda-fill-icon_36.entry.js.map +1 -1
  54. package/dist/esm/chevron-icon_3.entry.js +1 -1
  55. package/dist/esm/chevron-icon_3.entry.js.map +1 -1
  56. package/dist/esm/google-logo-icon_6.entry.js +5 -5
  57. package/dist/esm/google-logo-icon_6.entry.js.map +1 -1
  58. package/dist/esm/input-dropdown_2.entry.js +1 -1
  59. package/dist/esm/input-dropdown_2.entry.js.map +1 -1
  60. package/dist/esm/multi-select-dropdown_2.entry.js +2 -2
  61. package/dist/esm/multi-select-dropdown_2.entry.js.map +1 -1
  62. package/dist/esm/nylas-provider.entry.js.map +1 -1
  63. package/dist/esm/scheduler-store-ef022be9.js.map +1 -1
  64. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  65. package/dist/nylas-web-elements/{p-a6a52e17.entry.js → p-09bbd467.entry.js} +2 -2
  66. package/dist/nylas-web-elements/p-09bbd467.entry.js.map +1 -0
  67. package/dist/nylas-web-elements/{p-6371e0a3.entry.js → p-0d80f50b.entry.js} +2 -2
  68. package/dist/nylas-web-elements/p-0d80f50b.entry.js.map +1 -0
  69. package/dist/nylas-web-elements/p-1fb32e0e.entry.js.map +1 -1
  70. package/dist/nylas-web-elements/{p-19f6fcf8.entry.js → p-3ca36162.entry.js} +2 -2
  71. package/dist/nylas-web-elements/p-3ca36162.entry.js.map +1 -0
  72. package/dist/nylas-web-elements/{p-78bd1f85.entry.js → p-51434e4a.entry.js} +2 -2
  73. package/dist/nylas-web-elements/p-51434e4a.entry.js.map +1 -0
  74. package/dist/nylas-web-elements/p-731a856b.js.map +1 -1
  75. package/dist/nylas-web-elements/p-7b787c73.entry.js +8 -0
  76. package/dist/nylas-web-elements/p-7b787c73.entry.js.map +1 -0
  77. package/dist/nylas-web-elements/{p-55886492.entry.js → p-b1c57792.entry.js} +2 -2
  78. package/dist/nylas-web-elements/p-b1c57792.entry.js.map +1 -0
  79. package/dist/types/components/design-system/button-component/button-component.d.ts +1 -2
  80. package/dist/types/components/design-system/input-dropdown/input-dropdown.d.ts +1 -6
  81. package/dist/types/components/design-system/multi-select-dropdown/multi-select-dropdown.d.ts +1 -7
  82. package/dist/types/components/design-system/select-dropdown/select-dropdown.d.ts +1 -6
  83. package/dist/types/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.d.ts +12 -11
  84. package/dist/types/components/scheduler-editor/nylas-event-duration/nylas-event-duration.d.ts +2 -2
  85. package/dist/types/components.d.ts +7 -7
  86. package/dist/types/connector/nylas-connector/index.d.ts +1 -1
  87. package/dist/types/connector/shared/api/auth.d.ts +1 -1
  88. package/dist/types/connector/shared/api/scheduler.d.ts +1 -1
  89. package/package.json +3 -3
  90. package/dist/nylas-web-elements/p-19f6fcf8.entry.js.map +0 -1
  91. package/dist/nylas-web-elements/p-463d9c42.entry.js +0 -8
  92. package/dist/nylas-web-elements/p-463d9c42.entry.js.map +0 -1
  93. package/dist/nylas-web-elements/p-55886492.entry.js.map +0 -1
  94. package/dist/nylas-web-elements/p-6371e0a3.entry.js.map +0 -1
  95. package/dist/nylas-web-elements/p-78bd1f85.entry.js.map +0 -1
  96. package/dist/nylas-web-elements/p-a6a52e17.entry.js.map +0 -1
@@ -4156,10 +4156,10 @@ const NylasBufferTime = class {
4156
4156
  const value = i * 5;
4157
4157
  return {
4158
4158
  label: value.toString(),
4159
- value: value,
4159
+ value: value.toString(),
4160
4160
  };
4161
4161
  });
4162
- return (h(Host, null, h("div", { class: "nylas-buffer-time", part: "nbt" }, h("div", { class: "header", part: "nbt__header" }, h("h3", null, instance.t('nylasBufferTime.headerTitle')), h("p", null, instance.t('nylasBufferTime.headerSubTitle'), h("tooltip-component", null, h("info-icon", { slot: "tooltip-icon" }), h("span", { slot: "tooltip-content" }, instance.t('nylasBufferTime.tooltip.desc'))))), h("div", { class: "nylas-buffer-time__body", part: "nbt__body" }, h("div", { class: "nylas-buffer-time__dropdown" }, h("div", { class: "nylas-buffer-time__row" }, h("label", null, instance.t('nylasBufferTime.beforeBufferLabel')), h("div", { class: "dropdown-container" }, this.componentLoaded && (h("select-dropdown", { id: "before-buffer-time", withSearch: false, name: "before-buffer-time", exportparts: "sd_dropdown: nbt__dropdown-before, sd_dropdown-button: nbt__dropdown-button-before, sd_dropdown-content: nbt__dropdown-content-before", options: minuteOptions, defaultSelectedOption: minuteOptions.find(min => min.value == this.selectedBeforeBufferTime) })), h("span", null, instance.t('nylasBufferTime.minutesShort')))), h("div", { class: "nylas-buffer-time__row" }, h("label", null, instance.t('nylasBufferTime.afterBufferLabel')), h("div", { class: "dropdown-container" }, this.componentLoaded && (h("select-dropdown", { id: "after-buffer-time", withSearch: false, name: "after-buffer-time", exportparts: "sd_dropdown: nbt__dropdown-after, sd_dropdown-button: nbt__dropdown-button-after, sd_dropdown-content: nbt__dropdown-content-after", options: minuteOptions, defaultSelectedOption: minuteOptions.find(min => min.value == this.selectedAfterBufferTime) })), h("span", null, instance.t('nylasBufferTime.minutesShort'))))), h("div", { class: "nylas-buffer-time__preview", part: "nbt__preview" }, h("h4", null, instance.t('nylasBufferTime.previewHeader')), this.renderPreview())))));
4162
+ return (h(Host, null, h("div", { class: "nylas-buffer-time", part: "nbt" }, h("div", { class: "header", part: "nbt__header" }, h("h3", null, instance.t('nylasBufferTime.headerTitle')), h("p", null, instance.t('nylasBufferTime.headerSubTitle'), h("tooltip-component", null, h("info-icon", { slot: "tooltip-icon" }), h("span", { slot: "tooltip-content" }, instance.t('nylasBufferTime.tooltip.desc'))))), h("div", { class: "nylas-buffer-time__body", part: "nbt__body" }, h("div", { class: "nylas-buffer-time__dropdown" }, h("div", { class: "nylas-buffer-time__row" }, h("label", null, instance.t('nylasBufferTime.beforeBufferLabel')), h("div", { class: "dropdown-container" }, this.componentLoaded && (h("select-dropdown", { id: "before-buffer-time", withSearch: false, name: "before-buffer-time", exportparts: "sd_dropdown: nbt__dropdown-before, sd_dropdown-button: nbt__dropdown-button-before, sd_dropdown-content: nbt__dropdown-content-before", options: minuteOptions, defaultSelectedOption: minuteOptions.find(min => min.value === this.selectedBeforeBufferTime.toString()) })), h("span", null, instance.t('nylasBufferTime.minutesShort')))), h("div", { class: "nylas-buffer-time__row" }, h("label", null, instance.t('nylasBufferTime.afterBufferLabel')), h("div", { class: "dropdown-container" }, this.componentLoaded && (h("select-dropdown", { id: "after-buffer-time", withSearch: false, name: "after-buffer-time", exportparts: "sd_dropdown: nbt__dropdown-after, sd_dropdown-button: nbt__dropdown-button-after, sd_dropdown-content: nbt__dropdown-content-after", options: minuteOptions, defaultSelectedOption: minuteOptions.find(min => min.value === this.selectedAfterBufferTime.toString()) })), h("span", null, instance.t('nylasBufferTime.minutesShort'))))), h("div", { class: "nylas-buffer-time__preview", part: "nbt__preview" }, h("h4", null, instance.t('nylasBufferTime.previewHeader')), this.renderPreview())))));
4163
4163
  }
4164
4164
  static get formAssociated() { return true; }
4165
4165
  get host() { return getElement(this); }
@@ -5348,10 +5348,10 @@ const NylasEventDuration = class {
5348
5348
  this.durationIncrement = undefined;
5349
5349
  this.error = '';
5350
5350
  this.durationMinutesOptions = [
5351
- { value: 15, label: '15' },
5352
- { value: 30, label: '30' },
5353
- { value: 45, label: '45' },
5354
- { value: 60, label: '60' },
5351
+ { value: (15).toString(), label: '15' },
5352
+ { value: (30).toString(), label: '30' },
5353
+ { value: (45).toString(), label: '45' },
5354
+ { value: (60).toString(), label: '60' },
5355
5355
  ];
5356
5356
  }
5357
5357
  elementNameChangedHandler(newValue) {
@@ -5402,14 +5402,14 @@ const NylasEventDuration = class {
5402
5402
  setDurationMintueOptions() {
5403
5403
  if (this.durationIncrement === 1) {
5404
5404
  this.durationMinutesOptions = [
5405
- { value: 15, label: '15' },
5406
- { value: 30, label: '30' },
5407
- { value: 45, label: '45' },
5408
- { value: 60, label: '60' },
5405
+ { value: (15).toString(), label: '15' },
5406
+ { value: (30).toString(), label: '30' },
5407
+ { value: (45).toString(), label: '45' },
5408
+ { value: (60).toString(), label: '60' },
5409
5409
  ];
5410
5410
  }
5411
5411
  else {
5412
- this.durationMinutesOptions = Array.from({ length: 23 }, (_, i) => ({ value: i + 1, label: (i + 1).toString() }));
5412
+ this.durationMinutesOptions = Array.from({ length: 23 }, (_, i) => ({ value: (i + 1).toString(), label: (i + 1).toString() }));
5413
5413
  }
5414
5414
  return this.durationMinutesOptions;
5415
5415
  }
@@ -5431,7 +5431,7 @@ const NylasEventDuration = class {
5431
5431
  nylasFormDropdownChangedHandler(event) {
5432
5432
  debug('nylas-calendar-picker', 'nylasFormDropdownChangedHandler', event.detail);
5433
5433
  const { value } = event.detail;
5434
- this.durationIncrement = parseInt(value);
5434
+ this.durationIncrement = parseInt(value.toString());
5435
5435
  if (this.durationIncrement === 1) {
5436
5436
  this.duration = 60;
5437
5437
  }
@@ -5449,9 +5449,8 @@ const NylasEventDuration = class {
5449
5449
  inputOptionChangedHandler(event) {
5450
5450
  debug('nylas-calendar-picker', 'inputOptionChangedHandler', event.detail);
5451
5451
  const { value } = event.detail;
5452
- this.duration = value;
5452
+ this.duration = parseFloat(value.toString());
5453
5453
  this.durationMinutes = this.duration * this.durationIncrement;
5454
- console.log('###errror:', this.validateDuration(), this.durationMinutes, this.durationIncrement);
5455
5454
  if (this.validateDuration() !== '') {
5456
5455
  return;
5457
5456
  }
@@ -5460,12 +5459,12 @@ const NylasEventDuration = class {
5460
5459
  }
5461
5460
  render() {
5462
5461
  const durationOptions = [
5463
- { value: 1, label: instance.t('timeDuration', { context: 'minute' }) },
5464
- { value: 60, label: instance.t('timeDuration', { context: 'hour' }) },
5462
+ { value: (1).toString(), label: instance.t('timeDuration', { context: 'minute' }) },
5463
+ { value: (60).toString(), label: instance.t('timeDuration', { context: 'hour' }) },
5465
5464
  ];
5466
- return (h(Host, { key: 'c0525f28dbeb2398489d58d64d7b8e400ca13424' }, h("div", { key: '5ae98592a0364146987a3d2e4eee5e5f80a80097', class: "nylas-event-duration", part: "ned" }, h("label", { key: 'dc4ebcc5dbf749afbdbe27373a8d9904c2343433', htmlFor: "duration" }, instance.t('nylasEventDuration.headerTitle'), h("span", { key: '449d71a0f7479fad65ab3c00481cdf3f2cb6ed55', class: "required" }, "*")), h("div", { key: '807948b6f03032d24d5d93013f64f279bc92682b', class: "nylas-event-duration__wrapper" }, h("input-dropdown", { key: '2e47a704274e2cb19a7045ddd31e8c10e0a668b8', class: this.error ? 'error' : '', name: 'event-duration', options: this.durationMinutesOptions, inputValue: this.duration.toString(), exportparts: "id_dropdown: ned__input_dropdown, id_dropdown-input: ned__input_dropdown-input, id_dropdown-content: ned__input_dropdown-content", defaultInputOption: this.durationMinutesOptions.find(i => i.value == this.duration) }), this.durationIncrement && (h("select-dropdown", { name: 'event-duration', options: durationOptions, pluralizedLabel: this.duration > 1
5465
+ return (h(Host, { key: '291d5aada4656f1e7a3ad639459090a164c667cd' }, h("div", { key: '389ed738c72f9af0b2413360ca30048a903fe834', class: "nylas-event-duration", part: "ned" }, h("label", { key: '3ab5ae91a80a98386cd77ffc2ed9bee1773e2cce', htmlFor: "duration" }, instance.t('nylasEventDuration.headerTitle'), h("span", { key: 'a3eb28826f0237e227c6b9c4fbbbbb96544df143', class: "required" }, "*")), h("div", { key: '48e6f8aebb8f14fbe0ff74a600c1d06f0b65d2b4', class: "nylas-event-duration__wrapper" }, h("input-dropdown", { key: '4502e6a0eea47789edb136886dc0de048893b639', class: this.error ? 'error' : '', name: 'event-duration', options: this.durationMinutesOptions, inputValue: this.duration.toString(), exportparts: "id_dropdown: ned__input_dropdown, id_dropdown-input: ned__input_dropdown-input, id_dropdown-content: ned__input_dropdown-content", defaultInputOption: this.durationMinutesOptions.find(i => i.value === this.duration.toString()) }), this.durationIncrement && (h("select-dropdown", { name: 'event-duration', options: durationOptions, pluralizedLabel: this.duration > 1
5467
5466
  ? instance.t(`time.${this.durationIncrement === 60 ? 'hours' : 'minutes'}`)
5468
- : instance.t(`time.${this.durationIncrement === 60 ? 'hour' : 'minute'}`), exportparts: "sd_dropdown: ned__dropdown, sd_dropdown-button: ned__dropdown-button, sd_dropdown-content: ned__dropdown-content", defaultSelectedOption: durationOptions.find(i => i.value == this.durationIncrement), withSearch: false }))), h("div", { key: '1b7710bb059db3bde722f17ed7660698e3f6988a', class: `nylas-event-duration__error-container ${this.error ? 'visible' : ''}`, part: "ned__error-container" }, h("div", { key: '7e90795969a0fb22703217671cca38ffbb23d2a8', class: "nylas-event-duration__error", part: "ned__error" }, this.error)))));
5467
+ : instance.t(`time.${this.durationIncrement === 60 ? 'hour' : 'minute'}`), exportparts: "sd_dropdown: ned__dropdown, sd_dropdown-button: ned__dropdown-button, sd_dropdown-content: ned__dropdown-content", defaultSelectedOption: durationOptions.find(i => i.value === this.durationIncrement.toString()), withSearch: false }))), h("div", { key: 'f847e873066be7c174f7c5eea94e4cdc473d1ecd', class: `nylas-event-duration__error-container ${this.error ? 'visible' : ''}`, part: "ned__error-container" }, h("div", { key: '7cac0c1055ce71dd4de9cf08558d74c051527eb5', class: "nylas-event-duration__error", part: "ned__error" }, this.error)))));
5469
5468
  }
5470
5469
  static get formAssociated() { return true; }
5471
5470
  get host() { return getElement(this); }