@nylas/web-elements 2.0.6 → 2.1.0

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 (164) hide show
  1. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +212 -212
  2. package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +1044 -1044
  3. package/dist/cjs/{abstract-provider-b37458c4.js → abstract-provider-85a616a9.js} +2 -2
  4. package/dist/cjs/{abstract-provider-b37458c4.js.map → abstract-provider-85a616a9.js.map} +1 -1
  5. package/dist/cjs/calendar-agenda-fill-icon_37.cjs.entry.js +55 -55
  6. package/dist/cjs/calendar-agenda-fill-icon_37.cjs.entry.js.map +1 -1
  7. package/dist/cjs/checkbox-group_4.cjs.entry.js +3 -3
  8. package/dist/cjs/checkmark-icon_15.cjs.entry.js +2 -2
  9. package/dist/cjs/{customParseFormat-61a3a302.js → customParseFormat-dc3b45aa.js} +2 -2
  10. package/dist/cjs/{customParseFormat-61a3a302.js.map → customParseFormat-dc3b45aa.js.map} +1 -1
  11. package/dist/cjs/{feedbackSync-2c4d37fe.js → feedbackSync-eaa01d21.js} +2 -2
  12. package/dist/cjs/feedbackSync-eaa01d21.js.map +1 -0
  13. package/dist/cjs/google-logo-icon_6.cjs.entry.js +18 -18
  14. package/dist/cjs/google-logo-icon_6.cjs.entry.js.map +1 -1
  15. package/dist/cjs/index.cjs.js +2 -2
  16. package/dist/cjs/{index.es-e4fc6d92.js → index.es-a962dedb.js} +2 -2
  17. package/dist/cjs/{index.es-e4fc6d92.js.map → index.es-a962dedb.js.map} +1 -1
  18. package/dist/cjs/input-component.cjs.entry.js +1 -1
  19. package/dist/cjs/input-dropdown_2.cjs.entry.js +1 -1
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/cjs/multi-select-dropdown.cjs.entry.js +1 -1
  22. package/dist/cjs/{nylas-api-request-5b2f7ec0.js → nylas-api-request-d263af93.js} +2 -2
  23. package/dist/cjs/{nylas-api-request-5b2f7ec0.js.map → nylas-api-request-d263af93.js.map} +1 -1
  24. package/dist/cjs/nylas-booked-event-card_11.cjs.entry.js +2 -2
  25. package/dist/cjs/nylas-date-component_2.cjs.entry.js +2 -2
  26. package/dist/cjs/nylas-form-card.cjs.entry.js +2 -2
  27. package/dist/cjs/nylas-notification_2.cjs.entry.js +1 -1
  28. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +6 -6
  29. package/dist/cjs/nylas-scheduling.cjs.entry.js +8 -8
  30. package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
  31. package/dist/cjs/nylas-web-elements.cjs.js +1 -1
  32. package/dist/cjs/{register-component-8a9c40ee.js → register-component-2eefbf66.js} +2 -2
  33. package/dist/cjs/{register-component-8a9c40ee.js.map → register-component-2eefbf66.js.map} +1 -1
  34. package/dist/cjs/textarea-component.cjs.entry.js +1 -1
  35. package/dist/cjs/{utils-c923f1a8.js → utils-e37da320.js} +113 -113
  36. package/dist/cjs/{utils-c923f1a8.js.map → utils-e37da320.js.map} +1 -1
  37. package/dist/collection/collection-manifest.json +1 -1
  38. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +1 -1
  39. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js.map +1 -1
  40. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +10 -10
  41. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
  42. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/test/nylas-editor-tabs.spec.js +1 -1
  43. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/test/nylas-editor-tabs.spec.js.map +1 -1
  44. package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.js +18 -18
  45. package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.js.map +1 -1
  46. package/dist/collection/components/scheduler-editor/{nylas-specific-date-availability-picker/nylas-specific-date-availability-picker.css → nylas-specific-time-availability-picker/nylas-specific-time-availability-picker.css} +46 -46
  47. package/dist/collection/components/scheduler-editor/{nylas-specific-date-availability-picker/nylas-specific-date-availability-picker.js → nylas-specific-time-availability-picker/nylas-specific-time-availability-picker.js} +41 -41
  48. package/dist/collection/components/scheduler-editor/nylas-specific-time-availability-picker/nylas-specific-time-availability-picker.js.map +1 -0
  49. package/dist/collection/components/scheduler-editor/{nylas-specific-date-availability-picker/test/nylas-specific-date-availability-picker.spec.js → nylas-specific-time-availability-picker/test/nylas-specific-time-availability-picker.spec.js} +48 -48
  50. package/dist/collection/components/scheduler-editor/nylas-specific-time-availability-picker/test/nylas-specific-time-availability-picker.spec.js.map +1 -0
  51. package/dist/collection/types/index.js.map +1 -1
  52. package/dist/components/index3.js.map +1 -1
  53. package/dist/components/nylas-editor-tabs-group2.js +2 -2
  54. package/dist/components/nylas-editor-tabs2.js +15 -15
  55. package/dist/components/nylas-editor-tabs2.js.map +1 -1
  56. package/dist/components/nylas-participants-custom-availability2.js +21 -21
  57. package/dist/components/nylas-participants-custom-availability2.js.map +1 -1
  58. package/dist/components/nylas-scheduler-editor.js +5 -5
  59. package/dist/components/nylas-scheduling.js +4 -4
  60. package/dist/components/nylas-scheduling.js.map +1 -1
  61. package/dist/components/nylas-specific-time-availability-picker.d.ts +11 -0
  62. package/dist/components/nylas-specific-time-availability-picker.js +8 -0
  63. package/dist/components/nylas-specific-time-availability-picker.js.map +1 -0
  64. package/dist/components/{nylas-specific-date-availability-picker2.js → nylas-specific-time-availability-picker2.js} +41 -41
  65. package/dist/components/nylas-specific-time-availability-picker2.js.map +1 -0
  66. package/dist/components/utils.js +112 -112
  67. package/dist/esm/{abstract-provider-45ada3b4.js → abstract-provider-a502b54d.js} +2 -2
  68. package/dist/esm/{abstract-provider-45ada3b4.js.map → abstract-provider-a502b54d.js.map} +1 -1
  69. package/dist/esm/calendar-agenda-fill-icon_37.entry.js +55 -55
  70. package/dist/esm/calendar-agenda-fill-icon_37.entry.js.map +1 -1
  71. package/dist/esm/checkbox-group_4.entry.js +3 -3
  72. package/dist/esm/checkmark-icon_15.entry.js +2 -2
  73. package/dist/esm/{customParseFormat-eeec04f5.js → customParseFormat-b5d95b34.js} +2 -2
  74. package/dist/esm/{customParseFormat-eeec04f5.js.map → customParseFormat-b5d95b34.js.map} +1 -1
  75. package/dist/esm/{feedbackSync-0ebd0eda.js → feedbackSync-92220b42.js} +2 -2
  76. package/dist/esm/feedbackSync-92220b42.js.map +1 -0
  77. package/dist/esm/google-logo-icon_6.entry.js +18 -18
  78. package/dist/esm/google-logo-icon_6.entry.js.map +1 -1
  79. package/dist/esm/{index.es-57d4a08f.js → index.es-488bc919.js} +2 -2
  80. package/dist/esm/{index.es-57d4a08f.js.map → index.es-488bc919.js.map} +1 -1
  81. package/dist/esm/index.js +2 -2
  82. package/dist/esm/input-component.entry.js +1 -1
  83. package/dist/esm/input-dropdown_2.entry.js +1 -1
  84. package/dist/esm/loader.js +1 -1
  85. package/dist/esm/multi-select-dropdown.entry.js +1 -1
  86. package/dist/esm/{nylas-api-request-ad1909c6.js → nylas-api-request-9f7ac6c5.js} +2 -2
  87. package/dist/esm/{nylas-api-request-ad1909c6.js.map → nylas-api-request-9f7ac6c5.js.map} +1 -1
  88. package/dist/esm/nylas-booked-event-card_11.entry.js +2 -2
  89. package/dist/esm/nylas-date-component_2.entry.js +2 -2
  90. package/dist/esm/nylas-form-card.entry.js +2 -2
  91. package/dist/esm/nylas-notification_2.entry.js +1 -1
  92. package/dist/esm/nylas-scheduler-editor.entry.js +6 -6
  93. package/dist/esm/nylas-scheduling.entry.js +8 -8
  94. package/dist/esm/nylas-scheduling.entry.js.map +1 -1
  95. package/dist/esm/nylas-web-elements.js +1 -1
  96. package/dist/esm/{register-component-0aad9e3d.js → register-component-3acd57e7.js} +2 -2
  97. package/dist/esm/{register-component-0aad9e3d.js.map → register-component-3acd57e7.js.map} +1 -1
  98. package/dist/esm/textarea-component.entry.js +1 -1
  99. package/dist/esm/{utils-d3c0b941.js → utils-31933f5d.js} +113 -113
  100. package/dist/esm/{utils-d3c0b941.js.map → utils-31933f5d.js.map} +1 -1
  101. package/dist/nylas-web-elements/index.esm.js +1 -1
  102. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  103. package/dist/nylas-web-elements/nylas-web-elements.esm.js.map +1 -1
  104. package/dist/nylas-web-elements/{p-3216af1e.entry.js → p-20f50696.entry.js} +2 -2
  105. package/dist/nylas-web-elements/p-341f1a4c.entry.js +2 -0
  106. package/dist/nylas-web-elements/p-341f1a4c.entry.js.map +1 -0
  107. package/dist/nylas-web-elements/{p-1591deba.js → p-34c9fc7d.js} +2 -2
  108. package/dist/nylas-web-elements/{p-38fa873f.js → p-3524dab1.js} +2 -2
  109. package/dist/nylas-web-elements/p-3524dab1.js.map +1 -0
  110. package/dist/nylas-web-elements/{p-d45012f2.js → p-438d4542.js} +2 -2
  111. package/dist/nylas-web-elements/{p-21ab4e47.entry.js → p-536c5ef3.entry.js} +2 -2
  112. package/dist/nylas-web-elements/{p-a4678661.entry.js → p-5a6c2efd.entry.js} +2 -2
  113. package/dist/nylas-web-elements/p-66a89e65.js +14 -0
  114. package/dist/nylas-web-elements/{p-17c5fb16.js.map → p-66a89e65.js.map} +1 -1
  115. package/dist/nylas-web-elements/{p-88e68e14.entry.js → p-6adb19cf.entry.js} +2 -2
  116. package/dist/nylas-web-elements/{p-8937a53f.entry.js → p-6bda61cf.entry.js} +3 -3
  117. package/dist/nylas-web-elements/p-6bda61cf.entry.js.map +1 -0
  118. package/dist/nylas-web-elements/{p-30d92734.entry.js → p-7c02e476.entry.js} +2 -2
  119. package/dist/nylas-web-elements/{p-8072aa07.js → p-803a1695.js} +2 -2
  120. package/dist/nylas-web-elements/{p-186bbd43.entry.js → p-81925b89.entry.js} +2 -2
  121. package/dist/nylas-web-elements/{p-186bbd43.entry.js.map → p-81925b89.entry.js.map} +1 -1
  122. package/dist/nylas-web-elements/{p-855fe5b3.entry.js → p-83d2ff21.entry.js} +2 -2
  123. package/dist/nylas-web-elements/{p-f83aa456.entry.js → p-8673dcf1.entry.js} +2 -2
  124. package/dist/nylas-web-elements/{p-24c390bd.js → p-86e217f4.js} +2 -2
  125. package/dist/nylas-web-elements/{p-d0f51520.entry.js → p-8d5efa5e.entry.js} +2 -2
  126. package/dist/nylas-web-elements/{p-0271cef3.entry.js → p-d7323440.entry.js} +3 -3
  127. package/dist/nylas-web-elements/{p-59ff0231.entry.js → p-da25d877.entry.js} +2 -2
  128. package/dist/nylas-web-elements/{p-f0e1688e.js → p-e42db60f.js} +2 -2
  129. package/dist/nylas-web-elements/{p-c11e1016.entry.js → p-ff122d1e.entry.js} +2 -2
  130. package/dist/types/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.d.ts +5 -5
  131. package/dist/types/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.d.ts +3 -3
  132. package/dist/types/components/scheduler-editor/{nylas-specific-date-availability-picker/nylas-specific-date-availability-picker.d.ts → nylas-specific-time-availability-picker/nylas-specific-time-availability-picker.d.ts} +7 -7
  133. package/dist/types/components.d.ts +19 -19
  134. package/dist/types/types/index.d.ts +2 -2
  135. package/package.json +2 -2
  136. package/dist/cjs/feedbackSync-2c4d37fe.js.map +0 -1
  137. package/dist/collection/components/scheduler-editor/nylas-specific-date-availability-picker/nylas-specific-date-availability-picker.js.map +0 -1
  138. package/dist/collection/components/scheduler-editor/nylas-specific-date-availability-picker/test/nylas-specific-date-availability-picker.spec.js.map +0 -1
  139. package/dist/components/nylas-specific-date-availability-picker.d.ts +0 -11
  140. package/dist/components/nylas-specific-date-availability-picker.js +0 -8
  141. package/dist/components/nylas-specific-date-availability-picker.js.map +0 -1
  142. package/dist/components/nylas-specific-date-availability-picker2.js.map +0 -1
  143. package/dist/esm/feedbackSync-0ebd0eda.js.map +0 -1
  144. package/dist/nylas-web-elements/p-17c5fb16.js +0 -14
  145. package/dist/nylas-web-elements/p-38fa873f.js.map +0 -1
  146. package/dist/nylas-web-elements/p-3ddcb355.entry.js +0 -2
  147. package/dist/nylas-web-elements/p-3ddcb355.entry.js.map +0 -1
  148. package/dist/nylas-web-elements/p-8937a53f.entry.js.map +0 -1
  149. /package/dist/nylas-web-elements/{p-3216af1e.entry.js.map → p-20f50696.entry.js.map} +0 -0
  150. /package/dist/nylas-web-elements/{p-1591deba.js.map → p-34c9fc7d.js.map} +0 -0
  151. /package/dist/nylas-web-elements/{p-d45012f2.js.map → p-438d4542.js.map} +0 -0
  152. /package/dist/nylas-web-elements/{p-21ab4e47.entry.js.map → p-536c5ef3.entry.js.map} +0 -0
  153. /package/dist/nylas-web-elements/{p-a4678661.entry.js.map → p-5a6c2efd.entry.js.map} +0 -0
  154. /package/dist/nylas-web-elements/{p-88e68e14.entry.js.map → p-6adb19cf.entry.js.map} +0 -0
  155. /package/dist/nylas-web-elements/{p-30d92734.entry.js.map → p-7c02e476.entry.js.map} +0 -0
  156. /package/dist/nylas-web-elements/{p-8072aa07.js.map → p-803a1695.js.map} +0 -0
  157. /package/dist/nylas-web-elements/{p-855fe5b3.entry.js.map → p-83d2ff21.entry.js.map} +0 -0
  158. /package/dist/nylas-web-elements/{p-f83aa456.entry.js.map → p-8673dcf1.entry.js.map} +0 -0
  159. /package/dist/nylas-web-elements/{p-24c390bd.js.map → p-86e217f4.js.map} +0 -0
  160. /package/dist/nylas-web-elements/{p-d0f51520.entry.js.map → p-8d5efa5e.entry.js.map} +0 -0
  161. /package/dist/nylas-web-elements/{p-0271cef3.entry.js.map → p-d7323440.entry.js.map} +0 -0
  162. /package/dist/nylas-web-elements/{p-59ff0231.entry.js.map → p-da25d877.entry.js.map} +0 -0
  163. /package/dist/nylas-web-elements/{p-f0e1688e.js.map → p-e42db60f.js.map} +0 -0
  164. /package/dist/nylas-web-elements/{p-c11e1016.entry.js.map → p-ff122d1e.entry.js.map} +0 -0
@@ -3,61 +3,61 @@
3
3
  width: 100%;
4
4
  }
5
5
 
6
- .nylas-specific-date-availability-picker {
6
+ .nylas-specific-time-availability-picker {
7
7
  display: flex;
8
8
  flex-direction: column;
9
9
  gap: 1rem;
10
10
  border-top: 1px solid var(--nylas-base-200);
11
11
  }
12
- .nylas-specific-date-availability-picker .content {
12
+ .nylas-specific-time-availability-picker .content {
13
13
  display: flex;
14
14
  flex-direction: column;
15
15
  gap: 1.5rem;
16
16
  padding: 16px;
17
17
  }
18
- .nylas-specific-date-availability-picker .header {
18
+ .nylas-specific-time-availability-picker .header {
19
19
  display: flex;
20
20
  flex-direction: column;
21
21
  gap: 0.5rem;
22
22
  }
23
- .nylas-specific-date-availability-picker .header .header-description {
23
+ .nylas-specific-time-availability-picker .header .header-description {
24
24
  margin: 0;
25
25
  font-size: 0.875rem;
26
26
  color: var(--nylas-base-600);
27
27
  line-height: 1.5;
28
28
  }
29
- .nylas-specific-date-availability-picker .specific-dates {
29
+ .nylas-specific-time-availability-picker .specific-times {
30
30
  display: flex;
31
31
  flex-direction: column;
32
32
  gap: 1rem;
33
33
  }
34
- .nylas-specific-date-availability-picker .empty-state {
34
+ .nylas-specific-time-availability-picker .empty-state {
35
35
  display: flex;
36
36
  flex-direction: column;
37
37
  align-items: center;
38
38
  padding: 2rem 1rem;
39
39
  text-align: center;
40
40
  }
41
- .nylas-specific-date-availability-picker .empty-state .empty-icon {
41
+ .nylas-specific-time-availability-picker .empty-state .empty-icon {
42
42
  margin-bottom: 1.5rem;
43
43
  opacity: 0.4;
44
44
  color: var(--nylas-base-400);
45
45
  }
46
- .nylas-specific-date-availability-picker .empty-state .empty-title {
46
+ .nylas-specific-time-availability-picker .empty-state .empty-title {
47
47
  margin: 0 0 0.5rem 0;
48
48
  font-size: 1.125rem;
49
49
  font-weight: 600;
50
50
  color: var(--nylas-base-700);
51
51
  line-height: 1.5;
52
52
  }
53
- .nylas-specific-date-availability-picker .empty-state .empty-subtitle {
53
+ .nylas-specific-time-availability-picker .empty-state .empty-subtitle {
54
54
  margin: 0;
55
55
  font-size: 0.875rem;
56
56
  color: var(--nylas-base-500);
57
57
  line-height: 1.5;
58
58
  max-width: 300px;
59
59
  }
60
- .nylas-specific-date-availability-picker .specific-date-entry {
60
+ .nylas-specific-time-availability-picker .specific-time-entry {
61
61
  display: flex;
62
62
  flex-direction: column;
63
63
  gap: 0;
@@ -66,37 +66,37 @@
66
66
  border-radius: var(--nylas-border-radius);
67
67
  background: var(--nylas-base-0);
68
68
  }
69
- .nylas-specific-date-availability-picker .specific-date-entry .entry-content {
69
+ .nylas-specific-time-availability-picker .specific-time-entry .entry-content {
70
70
  display: grid;
71
71
  grid-template-columns: 160px auto 30px 30px;
72
72
  gap: 12px;
73
73
  }
74
74
  @media (max-width: 768px) {
75
- .nylas-specific-date-availability-picker .specific-date-entry .entry-content {
75
+ .nylas-specific-time-availability-picker .specific-time-entry .entry-content {
76
76
  grid-template-areas: "date calendar_toggle remove" "time_or_unavailable time_or_unavailable time_or_unavailable";
77
77
  grid-template-columns: 1fr auto auto;
78
78
  grid-template-rows: 1fr 1fr;
79
79
  }
80
80
  }
81
- .nylas-specific-date-availability-picker .specific-date-entry .date-input-container {
81
+ .nylas-specific-time-availability-picker .specific-time-entry .date-input-container {
82
82
  flex: 0 0 auto;
83
83
  width: 160px;
84
84
  }
85
85
  @media (max-width: 768px) {
86
- .nylas-specific-date-availability-picker .specific-date-entry .date-input-container {
86
+ .nylas-specific-time-availability-picker .specific-time-entry .date-input-container {
87
87
  grid-area: date;
88
88
  }
89
89
  }
90
- .nylas-specific-date-availability-picker .specific-date-entry .date-input-container .date-input {
90
+ .nylas-specific-time-availability-picker .specific-time-entry .date-input-container .date-input {
91
91
  width: 100%;
92
92
  }
93
- .nylas-specific-date-availability-picker .specific-date-entry .date-input-container nylas-date-component::part(ic__date) {
93
+ .nylas-specific-time-availability-picker .specific-time-entry .date-input-container nylas-date-component::part(ic__date) {
94
94
  border: 1px solid var(--nylas-base-200);
95
95
  height: 50px;
96
96
  display: flex;
97
97
  align-items: center;
98
98
  }
99
- .nylas-specific-date-availability-picker .specific-date-entry .time-pickers {
99
+ .nylas-specific-time-availability-picker .specific-time-entry .time-pickers {
100
100
  display: grid;
101
101
  grid-template-columns: auto 10px 1fr;
102
102
  width: 342px;
@@ -105,13 +105,13 @@
105
105
  min-width: 0;
106
106
  }
107
107
  @media (max-width: 768px) {
108
- .nylas-specific-date-availability-picker .specific-date-entry .time-pickers {
108
+ .nylas-specific-time-availability-picker .specific-time-entry .time-pickers {
109
109
  flex: 1;
110
110
  width: auto;
111
111
  grid-area: time_or_unavailable;
112
112
  }
113
113
  }
114
- .nylas-specific-date-availability-picker .specific-date-entry .time-pickers .time-separator {
114
+ .nylas-specific-time-availability-picker .specific-time-entry .time-pickers .time-separator {
115
115
  font-size: 0.875rem;
116
116
  color: var(--nylas-base-600);
117
117
  font-weight: 500;
@@ -120,7 +120,7 @@
120
120
  padding: 0 0px 0px 6px;
121
121
  margin-top: 18px;
122
122
  }
123
- .nylas-specific-date-availability-picker .specific-date-entry .unavailable-text {
123
+ .nylas-specific-time-availability-picker .specific-time-entry .unavailable-text {
124
124
  flex: 1;
125
125
  display: flex;
126
126
  align-items: center;
@@ -130,16 +130,16 @@
130
130
  min-height: 50px;
131
131
  }
132
132
  @media (max-width: 768px) {
133
- .nylas-specific-date-availability-picker .specific-date-entry .unavailable-text {
133
+ .nylas-specific-time-availability-picker .specific-time-entry .unavailable-text {
134
134
  grid-area: time_or_unavailable;
135
135
  }
136
136
  }
137
- .nylas-specific-date-availability-picker .specific-date-entry .unavailable-text .unavailable-label {
137
+ .nylas-specific-time-availability-picker .specific-time-entry .unavailable-text .unavailable-label {
138
138
  font-size: 0.875rem;
139
139
  color: var(--nylas-base-500);
140
140
  font-style: italic;
141
141
  }
142
- .nylas-specific-date-availability-picker .specific-date-entry .toggle-button {
142
+ .nylas-specific-time-availability-picker .specific-time-entry .toggle-button {
143
143
  display: flex;
144
144
  align-items: center;
145
145
  justify-content: center;
@@ -155,23 +155,23 @@
155
155
  flex-shrink: 0;
156
156
  }
157
157
  @media (max-width: 768px) {
158
- .nylas-specific-date-availability-picker .specific-date-entry .toggle-button {
158
+ .nylas-specific-time-availability-picker .specific-time-entry .toggle-button {
159
159
  grid-area: calendar_toggle;
160
160
  }
161
161
  }
162
- .nylas-specific-date-availability-picker .specific-date-entry .toggle-button:hover {
162
+ .nylas-specific-time-availability-picker .specific-time-entry .toggle-button:hover {
163
163
  color: var(--nylas-primary);
164
164
  }
165
- .nylas-specific-date-availability-picker .specific-date-entry .toggle-button:focus {
165
+ .nylas-specific-time-availability-picker .specific-time-entry .toggle-button:focus {
166
166
  outline: none;
167
167
  }
168
- .nylas-specific-date-availability-picker .specific-date-entry .toggle-button.unavailable {
168
+ .nylas-specific-time-availability-picker .specific-time-entry .toggle-button.unavailable {
169
169
  color: var(--nylas-error);
170
170
  }
171
- .nylas-specific-date-availability-picker .specific-date-entry .toggle-button.unavailable:hover {
171
+ .nylas-specific-time-availability-picker .specific-time-entry .toggle-button.unavailable:hover {
172
172
  color: var(--nylas-error);
173
173
  }
174
- .nylas-specific-date-availability-picker .specific-date-entry .remove-button {
174
+ .nylas-specific-time-availability-picker .specific-time-entry .remove-button {
175
175
  display: flex;
176
176
  align-items: center;
177
177
  justify-content: center;
@@ -187,22 +187,22 @@
187
187
  flex-shrink: 0;
188
188
  }
189
189
  @media (max-width: 768px) {
190
- .nylas-specific-date-availability-picker .specific-date-entry .remove-button {
190
+ .nylas-specific-time-availability-picker .specific-time-entry .remove-button {
191
191
  grid-area: remove;
192
192
  }
193
193
  }
194
- .nylas-specific-date-availability-picker .specific-date-entry .remove-button:hover {
194
+ .nylas-specific-time-availability-picker .specific-time-entry .remove-button:hover {
195
195
  color: var(--nylas-error);
196
196
  }
197
- .nylas-specific-date-availability-picker .specific-date-entry .remove-button:focus {
197
+ .nylas-specific-time-availability-picker .specific-time-entry .remove-button:focus {
198
198
  outline: none;
199
199
  background: var(--nylas-base-100);
200
200
  box-shadow: 0 0 0 2px var(--nylas-primary);
201
201
  }
202
- .nylas-specific-date-availability-picker .specific-date-entry .remove-button:active {
202
+ .nylas-specific-time-availability-picker .specific-time-entry .remove-button:active {
203
203
  background: var(--nylas-base-200);
204
204
  }
205
- .nylas-specific-date-availability-picker .specific-date-entry .error-message {
205
+ .nylas-specific-time-availability-picker .specific-time-entry .error-message {
206
206
  width: -webkit-fill-available;
207
207
  padding: 4px 8px;
208
208
  background: var(--nylas-error-50);
@@ -212,31 +212,31 @@
212
212
  border: 1px solid var(--nylas-error-200);
213
213
  margin-top: 8px;
214
214
  }
215
- .nylas-specific-date-availability-picker .add-button-container {
215
+ .nylas-specific-time-availability-picker .add-button-container {
216
216
  display: flex;
217
217
  justify-content: flex-start;
218
218
  }
219
- .nylas-specific-date-availability-picker .add-button-container button-component {
219
+ .nylas-specific-time-availability-picker .add-button-container button-component {
220
220
  width: 100%;
221
221
  }
222
222
 
223
- ::part(nsdap__add-button) {
223
+ ::part(nstap__add-button) {
224
224
  border: 1px dashed var(--nylas-base-200);
225
225
  background: var(--nylas-base-0);
226
226
  color: var(--nylas-base-700);
227
227
  }
228
- ::part(nsdap__add-button):hover {
228
+ ::part(nstap__add-button):hover {
229
229
  border-color: var(--nylas-primary);
230
230
  background: var(--nylas-base-50);
231
231
  color: var(--nylas-primary);
232
232
  }
233
233
 
234
- ::part(nsdap__time-picker-container) {
234
+ ::part(nstap__time-picker-container) {
235
235
  flex: 1;
236
236
  min-width: 0;
237
237
  }
238
238
 
239
- ::part(nsdap__time-picker-input) {
239
+ ::part(nstap__time-picker-input) {
240
240
  width: 100%;
241
241
  font-size: 0.875rem;
242
242
  min-height: 50px;
@@ -244,30 +244,30 @@
244
244
  align-items: center;
245
245
  }
246
246
 
247
- ::part(nsdap__date-input) {
247
+ ::part(nstap__date-input) {
248
248
  width: 100%;
249
249
  }
250
250
 
251
- ::part(nsdap__date-field) {
251
+ ::part(nstap__date-field) {
252
252
  width: 100%;
253
253
  font-size: 0.875rem;
254
254
  border: 1px solid var(--nylas-base-200);
255
255
  border-radius: var(--nylas-border-radius);
256
256
  padding: 0.5rem 0.75rem;
257
257
  }
258
- ::part(nsdap__date-field):focus {
258
+ ::part(nstap__date-field):focus {
259
259
  border-color: var(--nylas-primary);
260
260
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
261
261
  }
262
262
 
263
- ::part(nsdap__date-wrapper) {
263
+ ::part(nstap__date-wrapper) {
264
264
  margin: 0;
265
265
  }
266
266
 
267
- ::part(nsdap__date-label) {
267
+ ::part(nstap__date-label) {
268
268
  margin: 0;
269
269
  padding: 0;
270
270
  }
271
- ::part(nsdap__date-label) p {
271
+ ::part(nstap__date-label) p {
272
272
  display: none;
273
273
  }
@@ -16,33 +16,33 @@ import { h, Host } from "@stencil/core";
16
16
  import { RegisterComponent } from "../../../common/register-component";
17
17
  import { debug, convertTo12HourFormat, convertTo24HourFormat, timeToMinutes } from "../../../utils/utils";
18
18
  import i18next from "../../../utils/i18n";
19
- export class NylasSpecificDateAvailabilityPicker {
19
+ export class NylasSpecificTimeAvailabilityPicker {
20
20
  constructor() {
21
- this.name = 'specific-date-availability';
21
+ this.name = 'specific-time-availability';
22
22
  this.selectedConfiguration = undefined;
23
23
  this.selectedLanguage = undefined;
24
- this.specificDateOpenHours = undefined;
24
+ this.specificTimesAvailability = undefined;
25
25
  this.themeConfig = undefined;
26
26
  this.specificDateEntries = [];
27
27
  this.validationErrors = {};
28
28
  }
29
29
  connectedCallback() {
30
- debug('nylas-specific-date-availability-picker', 'connectedCallback');
30
+ debug('nylas-specific-time-availability-picker', 'connectedCallback');
31
31
  }
32
32
  disconnectedCallback() {
33
- debug('nylas-specific-date-availability-picker', 'disconnectedCallback');
33
+ debug('nylas-specific-time-availability-picker', 'disconnectedCallback');
34
34
  }
35
35
  componentWillLoad() {
36
- debug('nylas-specific-date-availability-picker', 'componentWillLoad');
36
+ debug('nylas-specific-time-availability-picker', 'componentWillLoad');
37
37
  this.host.setAttribute('name', this.name);
38
38
  }
39
39
  componentDidLoad() {
40
- debug('nylas-specific-date-availability-picker', 'componentDidLoad');
40
+ debug('nylas-specific-time-availability-picker', 'componentDidLoad');
41
41
  if (this.selectedConfiguration) {
42
42
  this.configChangedHandler(this.selectedConfiguration);
43
43
  }
44
- else if (this.specificDateOpenHours && this.specificDateOpenHours.length > 0) {
45
- this.loadSpecificDateOpenHours();
44
+ else if (this.specificTimesAvailability && this.specificTimesAvailability.length > 0) {
45
+ this.loadSpecificTimeAvailability();
46
46
  }
47
47
  this.applyThemeConfig(this.themeConfig);
48
48
  }
@@ -50,12 +50,12 @@ export class NylasSpecificDateAvailabilityPicker {
50
50
  return typeof this.internals.setFormValue === 'function';
51
51
  }
52
52
  elementNameChangedHandler(newValue) {
53
- debug('nylas-specific-date-availability-picker', 'elementNameChangedHandler', newValue);
53
+ debug('nylas-specific-time-availability-picker', 'elementNameChangedHandler', newValue);
54
54
  this.host.setAttribute('name', newValue);
55
55
  }
56
56
  configChangedHandler(newConfig) {
57
- debug('nylas-specific-date-availability-picker', 'configChangedHandler', newConfig);
58
- this.loadSpecificDateOpenHours();
57
+ debug('nylas-specific-time-availability-picker', 'configChangedHandler', newConfig);
58
+ this.loadSpecificTimeAvailability();
59
59
  }
60
60
  selectedLanguageChangedHandler(newVal, oldVal) {
61
61
  if (newVal === oldVal)
@@ -74,14 +74,14 @@ export class NylasSpecificDateAvailabilityPicker {
74
74
  }
75
75
  }
76
76
  }
77
- loadSpecificDateOpenHours() {
78
- if (!this.specificDateOpenHours || this.specificDateOpenHours.length === 0) {
77
+ loadSpecificTimeAvailability() {
78
+ if (!this.specificTimesAvailability || this.specificTimesAvailability.length === 0) {
79
79
  return;
80
80
  }
81
- const entries = this.specificDateOpenHours.map((item, index) => {
81
+ const entries = this.specificTimesAvailability.map((item, index) => {
82
82
  const isUnavailable = item.start === '00:00' && item.end === '00:00';
83
83
  return {
84
- id: `specific-date-${index}`,
84
+ id: `specific-time-${index}`,
85
85
  date: item.date,
86
86
  startTime: isUnavailable ? '09:00am' : convertTo12HourFormat(item.start),
87
87
  endTime: isUnavailable ? '05:00pm' : convertTo12HourFormat(item.end),
@@ -91,13 +91,13 @@ export class NylasSpecificDateAvailabilityPicker {
91
91
  this.specificDateEntries = entries;
92
92
  this.emitValueChanged();
93
93
  }
94
- addSpecificDateOpenHour() {
94
+ addSpecificTimeAvailability() {
95
95
  const today = new Date();
96
96
  const targetDate = new Date(today);
97
97
  targetDate.setDate(today.getDate() + this.specificDateEntries.length);
98
98
  const formattedDate = targetDate.toISOString().split('T')[0];
99
99
  const newEntry = {
100
- id: `specific-date-${Date.now()}`,
100
+ id: `specific-time-${Date.now()}`,
101
101
  date: formattedDate,
102
102
  startTime: '09:00am',
103
103
  endTime: '05:00pm',
@@ -109,7 +109,7 @@ export class NylasSpecificDateAvailabilityPicker {
109
109
  }
110
110
  this.emitValueChanged();
111
111
  }
112
- removeSpecificDateOpenHour(id) {
112
+ removeSpecificTimeAvailability(id) {
113
113
  this.specificDateEntries = this.specificDateEntries.filter(entry => entry.id !== id);
114
114
  if (this.validationErrors[id]) {
115
115
  const newErrors = { ...this.validationErrors };
@@ -134,22 +134,22 @@ export class NylasSpecificDateAvailabilityPicker {
134
134
  }
135
135
  validateEntry(entry) {
136
136
  if (!entry.date) {
137
- return i18next.t('nylasSpecificDateAvailabilityPicker.errors.dateRequired');
137
+ return i18next.t('nylasSpecificTimeAvailabilityPicker.errors.dateRequired');
138
138
  }
139
139
  const dateObj = new Date(entry.date);
140
140
  if (isNaN(dateObj.getTime())) {
141
- return i18next.t('nylasSpecificDateAvailabilityPicker.errors.invalidDateFormat');
141
+ return i18next.t('nylasSpecificTimeAvailabilityPicker.errors.invalidDateFormat');
142
142
  }
143
143
  if (entry.isUnavailable) {
144
144
  return null;
145
145
  }
146
146
  if (!entry.startTime || !entry.endTime) {
147
- return i18next.t('nylasSpecificDateAvailabilityPicker.errors.timesRequired');
147
+ return i18next.t('nylasSpecificTimeAvailabilityPicker.errors.timesRequired');
148
148
  }
149
149
  const startMinutes = timeToMinutes(entry.startTime);
150
150
  const endMinutes = timeToMinutes(entry.endTime);
151
151
  if (startMinutes >= endMinutes) {
152
- return i18next.t('nylasSpecificDateAvailabilityPicker.errors.startTimeBeforeEndTime');
152
+ return i18next.t('nylasSpecificTimeAvailabilityPicker.errors.startTimeBeforeEndTime');
153
153
  }
154
154
  return null;
155
155
  }
@@ -223,7 +223,7 @@ export class NylasSpecificDateAvailabilityPicker {
223
223
  }
224
224
  handleFormInputChange(event) {
225
225
  const { name, value } = event.detail;
226
- if (name.startsWith('date-') && name.includes('specific-date-')) {
226
+ if (name.startsWith('date-') && name.includes('specific-time-')) {
227
227
  const entryId = name.replace('date-', '');
228
228
  this.specificDateEntries = this.specificDateEntries.map(entry => {
229
229
  if (entry.id === entryId) {
@@ -241,14 +241,14 @@ export class NylasSpecificDateAvailabilityPicker {
241
241
  }
242
242
  emitValueChanged() {
243
243
  const isValid = this.validateAllEntries();
244
- const specificDateOpenHours = this.specificDateEntries
244
+ const specificTimesAvailability = this.specificDateEntries
245
245
  .filter(entry => entry.date && (entry.isUnavailable || (entry.startTime && entry.endTime)))
246
246
  .map(entry => ({
247
247
  date: entry.date,
248
248
  start: entry.isUnavailable ? '00:00' : convertTo24HourFormat(entry.startTime),
249
249
  end: entry.isUnavailable ? '00:00' : convertTo24HourFormat(entry.endTime),
250
250
  }));
251
- const value = JSON.stringify(specificDateOpenHours);
251
+ const value = JSON.stringify(specificTimesAvailability);
252
252
  if (this.isInternalsAvailable && isValid) {
253
253
  this.internals.setFormValue(value, this.name);
254
254
  }
@@ -258,21 +258,21 @@ export class NylasSpecificDateAvailabilityPicker {
258
258
  });
259
259
  }
260
260
  render() {
261
- return (h(Host, { key: '1966754bdef1a0758f5a3a5b8093f3a9c79f3b54' }, h("div", { key: '9e902ec229a9c892ef5db38cf1292f494c4d3f58', class: "nylas-specific-date-availability-picker", part: "nsdap" }, h("div", { key: 'c9be9675420b744f5a97efdc960152d871342d1a', class: "content", part: "nsdap__content" }, h("div", { key: 'aafa543fdda80c872496b04c118eae59bdfa9844', class: "header", part: "nsdap__header" }, h("p", { key: '811cbd627fed382949bbccb6c61cf295a21c23f0', class: "header-description", part: "nsdap__header-description" }, i18next.t('nylasSpecificDateAvailabilityPicker.headerDescription'))), h("div", { key: 'afb099e1cf0b743ee879f5dcd35fa335522c94e3', class: "specific-dates", part: "nsdap__specific-dates" }, this.specificDateEntries.length === 0 ? (h("div", { class: "empty-state", part: "nsdap__empty-state" }, h("div", { class: "empty-icon", part: "nsdap__empty-icon" }, h("calendar-icon", { width: "32", height: "32" })), h("h3", { class: "empty-title", part: "nsdap__empty-title" }, i18next.t('nylasSpecificDateAvailabilityPicker.emptyState.title')), h("p", { class: "empty-subtitle", part: "nsdap__empty-subtitle" }, i18next.t('nylasSpecificDateAvailabilityPicker.emptyState.subtitle')))) : (this.specificDateEntries.map(entry => (h("div", { class: "specific-date-entry", part: "nsdap__specific-date-entry", key: entry.id, "data-entry-id": entry.id }, h("div", { class: "entry-content", part: "nsdap__entry-content" }, h("div", { class: "date-input-container", part: "nsdap__date-input-container" }, h("nylas-date-component", { name: `date-${entry.id}`, defaultValue: entry.date, placeholder: "yyyy-mm-dd", part: "nsdap__date-input", class: "date-input", themeConfig: this.themeConfig, exportparts: "ic__date: nsdap__date-field, ic__input_wrapper: nsdap__date-wrapper, ic__label: nsdap__date-label" })), entry.isUnavailable ? (h("div", { class: "unavailable-text", part: "nsdap__unavailable-text" }, h("span", { class: "unavailable-label" }, i18next.t('nylasSpecificDateAvailabilityPicker.entireDayUnavailable')))) : (h("div", { class: "time-pickers", part: "nsdap__time-pickers" }, h("nylas-time-window-picker", { id: `${entry.id}_start`, time: entry.startTime, name: `${entry.id}_start`, key: `${entry.id}_start`, language: this.selectedLanguage, hasError: !!this.validationErrors[entry.id], themeConfig: this.themeConfig, exportparts: "time-picker: nsdap__time-picker-container, time-input: nsdap__time-picker-input, times: nsdap__time-picker-times" }), h("span", { class: "time-separator" }, "-"), h("nylas-time-window-picker", { id: `${entry.id}_end`, time: entry.endTime, name: `${entry.id}_end`, key: `${entry.id}_end`, minimumStartTime: entry.startTime, language: this.selectedLanguage, hasError: !!this.validationErrors[entry.id], themeConfig: this.themeConfig, exportparts: "time-picker: nsdap__time-picker-container, time-input: nsdap__time-picker-input, times: nsdap__time-picker-times" }))), h("button", { type: "button", class: { 'toggle-button': true, 'unavailable': entry.isUnavailable }, part: "nsdap__toggle-button", onClick: () => this.toggleAvailability(entry.id), title: entry.isUnavailable
262
- ? i18next.t('nylasSpecificDateAvailabilityPicker.markAsAvailable')
263
- : i18next.t('nylasSpecificDateAvailabilityPicker.markAsUnavailable') }, h("calendar-icon", { width: "20", height: "20" })), h("button", { type: "button", class: "remove-button", part: "nsdap__remove-button", onClick: () => this.removeSpecificDateOpenHour(entry.id), "aria-label": "Remove specific date" }, h("close-icon", { width: "16", height: "16" }))), this.validationErrors[entry.id] && (h("div", { class: "error-message", part: "nsdap__error-message" }, this.validationErrors[entry.id]))))))), h("div", { key: 'ee3f5bac619eea70756d7a0c0a45e7109d1d17d0', class: "add-button-container", part: "nsdap__add-button-container" }, h("button-component", { key: 'f431574f40430d032166bd5e5ab49fe1ba1ded74', id: "add-specific-date-open-hour", onClick: () => this.addSpecificDateOpenHour(), part: "nsdap__add-button", variant: "basic" }, h("add-circle-icon", { key: '691bed8a6f1859de2b06ddd0a9aa9a94bdc8fd9f', width: "24", height: "24" }), i18next.t('nylasSpecificDateAvailabilityPicker.addSpecificDateOpenHour')))))));
261
+ return (h(Host, { key: '01f075a3cded0b05cce5098dee0fe221bc13ec24' }, h("div", { key: 'f008de5cd95468e1cb0b820dabc2d38bca8a6d99', class: "nylas-specific-time-availability-picker", part: "nstap" }, h("div", { key: 'c2ec42ad544a1c10b3d5cbfa5adcf04a7e716377', class: "content", part: "nstap__content" }, h("div", { key: 'c58f880616610957181857a84ab053fa9f811f5d', class: "header", part: "nstap__header" }, h("p", { key: '671a584b2f92d1ee3d8abf50a80c60052e97510a', class: "header-description", part: "nstap__header-description" }, i18next.t('nylasSpecificTimeAvailabilityPicker.headerDescription'))), h("div", { key: '9b341aa468e6fdb749cddf7bf8fdc66c110ce25f', class: "specific-times", part: "nstap__specific-times" }, this.specificDateEntries.length === 0 ? (h("div", { class: "empty-state", part: "nstap__empty-state" }, h("div", { class: "empty-icon", part: "nstap__empty-icon" }, h("calendar-icon", { width: "32", height: "32" })), h("h3", { class: "empty-title", part: "nstap__empty-title" }, i18next.t('nylasSpecificTimeAvailabilityPicker.emptyState.title')), h("p", { class: "empty-subtitle", part: "nstap__empty-subtitle" }, i18next.t('nylasSpecificTimeAvailabilityPicker.emptyState.subtitle')))) : (this.specificDateEntries.map(entry => (h("div", { class: "specific-time-entry", part: "nstap__specific-time-entry", key: entry.id, "data-entry-id": entry.id }, h("div", { class: "entry-content", part: "nstap__entry-content" }, h("div", { class: "date-input-container", part: "nstap__date-input-container" }, h("nylas-date-component", { name: `date-${entry.id}`, defaultValue: entry.date, placeholder: "yyyy-mm-dd", part: "nstap__date-input", class: "date-input", themeConfig: this.themeConfig, exportparts: "ic__date: nstap__date-field, ic__input_wrapper: nstap__date-wrapper, ic__label: nstap__date-label" })), entry.isUnavailable ? (h("div", { class: "unavailable-text", part: "nstap__unavailable-text" }, h("span", { class: "unavailable-label" }, i18next.t('nylasSpecificTimeAvailabilityPicker.entireDayUnavailable')))) : (h("div", { class: "time-pickers", part: "nstap__time-pickers" }, h("nylas-time-window-picker", { id: `${entry.id}_start`, time: entry.startTime, name: `${entry.id}_start`, key: `${entry.id}_start`, language: this.selectedLanguage, hasError: !!this.validationErrors[entry.id], themeConfig: this.themeConfig, exportparts: "time-picker: nstap__time-picker-container, time-input: nstap__time-picker-input, times: nstap__time-picker-times" }), h("span", { class: "time-separator" }, "-"), h("nylas-time-window-picker", { id: `${entry.id}_end`, time: entry.endTime, name: `${entry.id}_end`, key: `${entry.id}_end`, minimumStartTime: entry.startTime, language: this.selectedLanguage, hasError: !!this.validationErrors[entry.id], themeConfig: this.themeConfig, exportparts: "time-picker: nstap__time-picker-container, time-input: nstap__time-picker-input, times: nstap__time-picker-times" }))), h("button", { type: "button", class: { 'toggle-button': true, 'unavailable': entry.isUnavailable }, part: "nstap__toggle-button", onClick: () => this.toggleAvailability(entry.id), title: entry.isUnavailable
262
+ ? i18next.t('nylasSpecificTimeAvailabilityPicker.markAsAvailable')
263
+ : i18next.t('nylasSpecificTimeAvailabilityPicker.markAsUnavailable') }, h("calendar-icon", { width: "20", height: "20" })), h("button", { type: "button", class: "remove-button", part: "nstap__remove-button", onClick: () => this.removeSpecificTimeAvailability(entry.id), "aria-label": "Remove specific date" }, h("close-icon", { width: "16", height: "16" }))), this.validationErrors[entry.id] && (h("div", { class: "error-message", part: "nstap__error-message" }, this.validationErrors[entry.id]))))))), h("div", { key: '3a326486bb489af6c036527434c6c6a8a7736cf1', class: "add-button-container", part: "nstap__add-button-container" }, h("button-component", { key: '156a5fff11a4dedc272327cdf2322118e9fef6fc', id: "add-specific-time-open-hour", onClick: () => this.addSpecificTimeAvailability(), part: "nstap__add-button", variant: "basic" }, h("add-circle-icon", { key: '0d12a577afac1d24a4c259997d71e0f182f1e5c8', width: "24", height: "24" }), i18next.t('nylasSpecificTimeAvailabilityPicker.addSpecificTimeAvailability')))))));
264
264
  }
265
- static get is() { return "nylas-specific-date-availability-picker"; }
265
+ static get is() { return "nylas-specific-time-availability-picker"; }
266
266
  static get encapsulation() { return "shadow"; }
267
267
  static get formAssociated() { return true; }
268
268
  static get originalStyleUrls() {
269
269
  return {
270
- "$": ["nylas-specific-date-availability-picker.scss"]
270
+ "$": ["nylas-specific-time-availability-picker.scss"]
271
271
  };
272
272
  }
273
273
  static get styleUrls() {
274
274
  return {
275
- "$": ["nylas-specific-date-availability-picker.css"]
275
+ "$": ["nylas-specific-time-availability-picker.css"]
276
276
  };
277
277
  }
278
278
  static get properties() {
@@ -296,7 +296,7 @@ export class NylasSpecificDateAvailabilityPicker {
296
296
  },
297
297
  "attribute": "name",
298
298
  "reflect": false,
299
- "defaultValue": "'specific-date-availability'"
299
+ "defaultValue": "'specific-time-availability'"
300
300
  },
301
301
  "selectedConfiguration": {
302
302
  "type": "unknown",
@@ -348,17 +348,17 @@ export class NylasSpecificDateAvailabilityPicker {
348
348
  "attribute": "selected-language",
349
349
  "reflect": false
350
350
  },
351
- "specificDateOpenHours": {
351
+ "specificTimesAvailability": {
352
352
  "type": "unknown",
353
353
  "mutable": false,
354
354
  "complexType": {
355
- "original": "SpecificDateOpenHours[]",
356
- "resolved": "SpecificDateOpenHours[] | undefined",
355
+ "original": "SpecificTimeAvailability[]",
356
+ "resolved": "SpecificTimeAvailability[] | undefined",
357
357
  "references": {
358
- "SpecificDateOpenHours": {
358
+ "SpecificTimeAvailability": {
359
359
  "location": "import",
360
360
  "path": "@nylas/core",
361
- "id": "../nylas-js-core/dist/index.d.ts::SpecificDateOpenHours"
361
+ "id": "../nylas-js-core/dist/index.d.ts::SpecificTimeAvailability"
362
362
  }
363
363
  }
364
364
  },
@@ -463,7 +463,7 @@ export class NylasSpecificDateAvailabilityPicker {
463
463
  }
464
464
  __decorate([
465
465
  RegisterComponent({
466
- name: 'nylas-specific-date-availability-picker',
466
+ name: 'nylas-specific-time-availability-picker',
467
467
  stateToProps: new Map([
468
468
  ['schedulerConfig.selectedConfiguration', 'selectedConfiguration'],
469
469
  ['schedulerConfig.selectedLanguage', 'selectedLanguage'],
@@ -474,5 +474,5 @@ __decorate([
474
474
  __metadata("design:type", Function),
475
475
  __metadata("design:paramtypes", []),
476
476
  __metadata("design:returntype", void 0)
477
- ], NylasSpecificDateAvailabilityPicker.prototype, "render", null);
478
- //# sourceMappingURL=nylas-specific-date-availability-picker.js.map
477
+ ], NylasSpecificTimeAvailabilityPicker.prototype, "render", null);
478
+ //# sourceMappingURL=nylas-specific-time-availability-picker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nylas-specific-time-availability-picker.js","sourceRoot":"","sources":["../../../../src/components/scheduler-editor/nylas-specific-time-availability-picker/nylas-specific-time-availability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C;;;;iEA+GD","sourcesContent":["import { AttachInternals, Component, Element, Event, EventEmitter, h, Host, Prop, Watch, State, Listen } from '@stencil/core';\nimport { RegisterComponent } from '@/common/register-component';\nimport { LANGUAGE_CODE } from '@/common/constants';\nimport { Configuration, SpecificTimeAvailability, ThemeConfig } from '@nylas/core';\nimport { NylasSchedulerConfigConnector } from '@/connector/nylas-scheduler-config-connector';\nimport { NylasSchedulerEditor } from '../nylas-scheduler-editor/nylas-scheduler-editor';\nimport { debug, convertTo12HourFormat, convertTo24HourFormat, timeToMinutes } from '@/utils/utils';\nimport i18next from '@/utils/i18n';\n\n@Component({\n tag: 'nylas-specific-time-availability-picker',\n styleUrl: 'nylas-specific-time-availability-picker.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class NylasSpecificTimeAvailabilityPicker {\n /**\n * The element <nylas-specific-time-availability-picker> itself.\n */\n @Element() host!: HTMLNylasSpecificTimeAvailabilityPickerElement;\n\n /**\n * @standalone\n * The name of the specific date availability picker.\n */\n @Prop() name: string = 'specific-time-availability';\n\n /**\n * @standalone\n * The selected configuration.\n */\n @Prop() selectedConfiguration?: Configuration;\n\n /**\n * @standalone\n * The selected language.\n */\n @Prop() selectedLanguage?: LANGUAGE_CODE;\n\n /**\n * @standalone\n * The specific date open hours.\n */\n @Prop() specificTimesAvailability?: SpecificTimeAvailability[];\n\n /**\n * @standalone\n * The theme configuration.\n */\n @Prop({ attribute: 'theme-config' }) readonly themeConfig?: ThemeConfig;\n\n /**\n * @standalone\n * The element internals.\n */\n @AttachInternals() internals!: ElementInternals;\n\n /**\n * The event is fired when the specific date open hours change.\n */\n @Event() valueChanged!: EventEmitter<{\n value: string;\n name: string;\n }>;\n\n /**\n * Internal state for managing specific date entries\n */\n @State() specificDateEntries: Array<{\n id: string;\n date: string;\n startTime: string;\n endTime: string;\n isUnavailable: boolean;\n }> = [];\n\n /**\n * State for tracking validation errors\n */\n @State() validationErrors: { [key: string]: string } = {};\n\n connectedCallback() {\n debug('nylas-specific-time-availability-picker', 'connectedCallback');\n }\n\n disconnectedCallback() {\n debug('nylas-specific-time-availability-picker', 'disconnectedCallback');\n }\n\n componentWillLoad() {\n debug('nylas-specific-time-availability-picker', 'componentWillLoad');\n this.host.setAttribute('name', this.name);\n }\n\n componentDidLoad() {\n debug('nylas-specific-time-availability-picker', 'componentDidLoad');\n if (this.selectedConfiguration) {\n this.configChangedHandler(this.selectedConfiguration);\n } else if (this.specificTimesAvailability && this.specificTimesAvailability.length > 0) {\n this.loadSpecificTimeAvailability();\n }\n this.applyThemeConfig(this.themeConfig);\n }\n\n get isInternalsAvailable() {\n return typeof this.internals.setFormValue === 'function';\n }\n\n /**\n * When a name prop is passed, stencil does not automatically set the name attribute on the host element.\n * Since this component is form-associated, the name attribute is required for form submission.\n * This is a workaround to ensure that the name attribute is set on the host element.\n */\n @Watch('name')\n elementNameChangedHandler(newValue: string) {\n debug('nylas-specific-time-availability-picker', 'elementNameChangedHandler', newValue);\n this.host.setAttribute('name', newValue);\n }\n\n @Watch('selectedConfiguration')\n configChangedHandler(newConfig: Configuration) {\n debug('nylas-specific-time-availability-picker', 'configChangedHandler', newConfig);\n // Load specific date open hours from the configuration participants\n this.loadSpecificTimeAvailability();\n }\n\n @Watch('selectedLanguage')\n selectedLanguageChangedHandler(newVal: LANGUAGE_CODE, oldVal: LANGUAGE_CODE) {\n if (newVal === oldVal) return;\n i18next.changeLanguage(newVal);\n }\n\n @Watch('themeConfig')\n themeConfigChangedHandler(newVal: ThemeConfig, oldVal: ThemeConfig) {\n if (newVal === oldVal) return;\n this.applyThemeConfig(newVal);\n }\n\n applyThemeConfig(themeConfig?: ThemeConfig) {\n if (themeConfig) {\n for (const [key, value] of Object.entries(themeConfig)) {\n this.host.style.setProperty(`${key}`, value);\n }\n }\n }\n\n loadSpecificTimeAvailability() {\n if (!this.specificTimesAvailability || this.specificTimesAvailability.length === 0) {\n return;\n }\n\n const entries = this.specificTimesAvailability.map((item, index) => {\n // Check if both start and end are \"00:00\" - this indicates an unavailable day\n const isUnavailable = item.start === '00:00' && item.end === '00:00';\n\n return {\n id: `specific-time-${index}`,\n date: item.date,\n startTime: isUnavailable ? '09:00am' : convertTo12HourFormat(item.start),\n endTime: isUnavailable ? '05:00pm' : convertTo12HourFormat(item.end),\n isUnavailable,\n };\n });\n\n this.specificDateEntries = entries;\n this.emitValueChanged();\n }\n\n addSpecificTimeAvailability() {\n // Initialize with incremental dates based on existing entries\n // First entry: today, second entry: tomorrow, third entry: day after, etc.\n const today = new Date();\n const targetDate = new Date(today);\n targetDate.setDate(today.getDate() + this.specificDateEntries.length);\n const formattedDate = targetDate.toISOString().split('T')[0];\n\n const newEntry = {\n id: `specific-time-${Date.now()}`,\n date: formattedDate,\n startTime: '09:00am',\n endTime: '05:00pm',\n isUnavailable: false,\n };\n\n this.specificDateEntries = [...this.specificDateEntries, newEntry];\n\n // Clear any global validation errors since we're adding a new valid entry\n if (this.isInternalsAvailable) {\n this.internals.setValidity({ customError: false });\n }\n\n this.emitValueChanged();\n }\n\n removeSpecificTimeAvailability(id: string) {\n this.specificDateEntries = this.specificDateEntries.filter(entry => entry.id !== id);\n\n // Clear validation error for the removed entry\n if (this.validationErrors[id]) {\n const newErrors = { ...this.validationErrors };\n delete newErrors[id];\n this.validationErrors = newErrors;\n }\n\n this.emitValueChanged();\n }\n\n toggleAvailability(id: string) {\n this.specificDateEntries = this.specificDateEntries.map(entry => {\n if (entry.id === id) {\n return { ...entry, isUnavailable: !entry.isUnavailable };\n }\n return entry;\n });\n\n // Clear any existing validation error for this entry since availability state changed\n if (this.validationErrors[id]) {\n const newErrors = { ...this.validationErrors };\n delete newErrors[id];\n this.validationErrors = newErrors;\n }\n\n this.emitValueChanged();\n }\n\n /**\n * Validates a single date entry\n */\n validateEntry(entry: (typeof this.specificDateEntries)[0]): string | null {\n // Check if date is empty or invalid\n if (!entry.date) {\n return i18next.t('nylasSpecificTimeAvailabilityPicker.errors.dateRequired');\n }\n\n const dateObj = new Date(entry.date);\n if (isNaN(dateObj.getTime())) {\n return i18next.t('nylasSpecificTimeAvailabilityPicker.errors.invalidDateFormat');\n }\n\n // If unavailable, no need to validate times\n if (entry.isUnavailable) {\n return null;\n }\n\n // Validate start and end times are present\n if (!entry.startTime || !entry.endTime) {\n return i18next.t('nylasSpecificTimeAvailabilityPicker.errors.timesRequired');\n }\n\n // Validate start time is before end time\n const startMinutes = timeToMinutes(entry.startTime);\n const endMinutes = timeToMinutes(entry.endTime);\n\n if (startMinutes >= endMinutes) {\n return i18next.t('nylasSpecificTimeAvailabilityPicker.errors.startTimeBeforeEndTime');\n }\n\n return null;\n }\n\n /**\n * Validates all entries and updates validation state\n */\n validateAllEntries() {\n const errors: { [key: string]: string } = {};\n let hasErrors = false;\n\n this.specificDateEntries.forEach(entry => {\n const error = this.validateEntry(entry);\n if (error) {\n errors[entry.id] = error;\n hasErrors = true;\n }\n });\n\n this.validationErrors = errors;\n\n // Update form validity\n if (hasErrors) {\n const firstErrorElement = this.host.shadowRoot?.querySelector(`[data-entry-id=\"${Object.keys(errors)[0]}\"]`) as HTMLElement;\n if (this.isInternalsAvailable) {\n this.internals.setValidity({ customError: true }, 'Please fix validation errors', firstErrorElement);\n }\n } else {\n if (this.isInternalsAvailable) {\n this.internals.setValidity({ customError: false });\n }\n }\n\n return !hasErrors;\n }\n\n @Listen('timeChange')\n handleTimeChange(event: CustomEvent<{ key: string; value: string }>) {\n const { key, value } = event.detail;\n const [entryId, timeType] = key.split('_');\n\n this.specificDateEntries = this.specificDateEntries.map(entry => {\n if (entry.id === entryId) {\n return {\n ...entry,\n [timeType === 'start' ? 'startTime' : 'endTime']: value,\n };\n }\n return entry;\n });\n\n // Clear any existing validation error for this entry\n if (this.validationErrors[entryId]) {\n const newErrors = { ...this.validationErrors };\n delete newErrors[entryId];\n this.validationErrors = newErrors;\n }\n\n // Clear form validity errors related to time\n if (this.isInternalsAvailable) {\n this.internals.setValidity({ customError: false });\n }\n\n this.emitValueChanged();\n }\n\n @Listen('timeWindowFormError')\n setFormError(event: CustomEvent<{ key: string; message: string }>) {\n const { key, message } = event.detail;\n const [entryId] = key.split('_');\n\n if (message) {\n // Set validation error for this entry\n this.validationErrors = {\n ...this.validationErrors,\n [entryId]: message,\n };\n\n const element = this.host.shadowRoot?.getElementById(key);\n if (element && this.isInternalsAvailable) {\n this.internals.setValidity({ customError: true }, message, element as HTMLInputElement);\n }\n } else {\n // Clear validation error for this entry\n const newErrors = { ...this.validationErrors };\n delete newErrors[entryId];\n this.validationErrors = newErrors;\n\n if (this.isInternalsAvailable) {\n this.internals.setValidity({ customError: false });\n }\n }\n }\n\n @Listen('nylasFormInputChanged')\n handleFormInputChange(event: CustomEvent<{ value: string; name: string; label: string; type: string; error: string }>) {\n const { name, value } = event.detail;\n\n // Check if this is a date input for our component\n if (name.startsWith('date-') && name.includes('specific-time-')) {\n const entryId = name.replace('date-', '');\n\n this.specificDateEntries = this.specificDateEntries.map(entry => {\n if (entry.id === entryId) {\n return { ...entry, date: value };\n }\n return entry;\n });\n\n // Clear any existing validation error for this entry\n if (this.validationErrors[entryId]) {\n const newErrors = { ...this.validationErrors };\n delete newErrors[entryId];\n this.validationErrors = newErrors;\n }\n\n this.emitValueChanged();\n }\n }\n\n emitValueChanged() {\n // Validate all entries before emitting\n const isValid = this.validateAllEntries();\n\n const specificTimesAvailability = this.specificDateEntries\n .filter(entry => entry.date && (entry.isUnavailable || (entry.startTime && entry.endTime)))\n .map(entry => ({\n date: entry.date,\n start: entry.isUnavailable ? '00:00' : convertTo24HourFormat(entry.startTime),\n end: entry.isUnavailable ? '00:00' : convertTo24HourFormat(entry.endTime),\n }));\n\n const value = JSON.stringify(specificTimesAvailability);\n\n if (this.isInternalsAvailable && isValid) {\n this.internals.setFormValue(value, this.name);\n }\n\n this.valueChanged.emit({\n value,\n name: this.name,\n });\n }\n\n @RegisterComponent<NylasSpecificTimeAvailabilityPicker, NylasSchedulerConfigConnector, Exclude<NylasSchedulerEditor['stores'], undefined>>({\n name: 'nylas-specific-time-availability-picker',\n stateToProps: new Map([\n ['schedulerConfig.selectedConfiguration', 'selectedConfiguration'],\n ['schedulerConfig.selectedLanguage', 'selectedLanguage'],\n ['schedulerConfig.themeConfig', 'themeConfig'],\n ]),\n fireRegisterEvent: true,\n })\n render() {\n return (\n <Host>\n <div class=\"nylas-specific-time-availability-picker\" part=\"nstap\">\n <div class=\"content\" part=\"nstap__content\">\n <div class=\"header\" part=\"nstap__header\">\n <p class=\"header-description\" part=\"nstap__header-description\">\n {i18next.t('nylasSpecificTimeAvailabilityPicker.headerDescription')}\n </p>\n </div>\n <div class=\"specific-times\" part=\"nstap__specific-times\">\n {this.specificDateEntries.length === 0 ? (\n <div class=\"empty-state\" part=\"nstap__empty-state\">\n <div class=\"empty-icon\" part=\"nstap__empty-icon\">\n <calendar-icon width=\"32\" height=\"32\" />\n </div>\n <h3 class=\"empty-title\" part=\"nstap__empty-title\">\n {i18next.t('nylasSpecificTimeAvailabilityPicker.emptyState.title')}\n </h3>\n <p class=\"empty-subtitle\" part=\"nstap__empty-subtitle\">\n {i18next.t('nylasSpecificTimeAvailabilityPicker.emptyState.subtitle')}\n </p>\n </div>\n ) : (\n this.specificDateEntries.map(entry => (\n <div class=\"specific-time-entry\" part=\"nstap__specific-time-entry\" key={entry.id} data-entry-id={entry.id}>\n <div class=\"entry-content\" part=\"nstap__entry-content\">\n <div class=\"date-input-container\" part=\"nstap__date-input-container\">\n <nylas-date-component\n name={`date-${entry.id}`}\n defaultValue={entry.date}\n placeholder=\"yyyy-mm-dd\"\n part=\"nstap__date-input\"\n class=\"date-input\"\n themeConfig={this.themeConfig}\n exportparts=\"ic__date: nstap__date-field, ic__input_wrapper: nstap__date-wrapper, ic__label: nstap__date-label\"\n />\n </div>\n {entry.isUnavailable ? (\n <div class=\"unavailable-text\" part=\"nstap__unavailable-text\">\n <span class=\"unavailable-label\">{i18next.t('nylasSpecificTimeAvailabilityPicker.entireDayUnavailable')}</span>\n </div>\n ) : (\n <div class=\"time-pickers\" part=\"nstap__time-pickers\">\n <nylas-time-window-picker\n id={`${entry.id}_start`}\n time={entry.startTime}\n name={`${entry.id}_start`}\n key={`${entry.id}_start`}\n language={this.selectedLanguage}\n hasError={!!this.validationErrors[entry.id]}\n themeConfig={this.themeConfig}\n exportparts=\"time-picker: nstap__time-picker-container, time-input: nstap__time-picker-input, times: nstap__time-picker-times\"\n />\n <span class=\"time-separator\">-</span>\n <nylas-time-window-picker\n id={`${entry.id}_end`}\n time={entry.endTime}\n name={`${entry.id}_end`}\n key={`${entry.id}_end`}\n minimumStartTime={entry.startTime}\n language={this.selectedLanguage}\n hasError={!!this.validationErrors[entry.id]}\n themeConfig={this.themeConfig}\n exportparts=\"time-picker: nstap__time-picker-container, time-input: nstap__time-picker-input, times: nstap__time-picker-times\"\n />\n </div>\n )}\n <button\n type=\"button\"\n class={{ 'toggle-button': true, 'unavailable': entry.isUnavailable }}\n part=\"nstap__toggle-button\"\n onClick={() => this.toggleAvailability(entry.id)}\n title={\n entry.isUnavailable\n ? i18next.t('nylasSpecificTimeAvailabilityPicker.markAsAvailable')\n : i18next.t('nylasSpecificTimeAvailabilityPicker.markAsUnavailable')\n }\n >\n <calendar-icon width=\"20\" height=\"20\" />\n </button>\n <button\n type=\"button\"\n class=\"remove-button\"\n part=\"nstap__remove-button\"\n onClick={() => this.removeSpecificTimeAvailability(entry.id)}\n aria-label=\"Remove specific date\"\n >\n <close-icon width=\"16\" height=\"16\" />\n </button>\n </div>\n {this.validationErrors[entry.id] && (\n <div class=\"error-message\" part=\"nstap__error-message\">\n {this.validationErrors[entry.id]}\n </div>\n )}\n </div>\n ))\n )}\n </div>\n <div class=\"add-button-container\" part=\"nstap__add-button-container\">\n <button-component id=\"add-specific-time-open-hour\" onClick={() => this.addSpecificTimeAvailability()} part=\"nstap__add-button\" variant=\"basic\">\n <add-circle-icon width=\"24\" height=\"24\" />\n {i18next.t('nylasSpecificTimeAvailabilityPicker.addSpecificTimeAvailability')}\n </button-component>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}