@nylas/web-elements 2.5.4-canary-20260414201801 → 2.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +14 -7
- package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +7 -3
- package/dist/cjs/google-logo-icon_6.cjs.entry.js +1 -1
- package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +8 -1
- package/dist/cjs/nylas-scheduler-editor.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-scheduler-editor.entry.cjs.js.map +1 -1
- package/dist/cjs/nylas-scheduling.cjs.entry.js +1 -1
- package/dist/cjs/radio-button-group.cjs.entry.js +8 -1
- package/dist/cjs/radio-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/radio-button-group.entry.cjs.js.map +1 -1
- package/dist/cjs/{version-Dfv6nyNu.js → version-COw2dh2E.js} +3 -3
- package/dist/cjs/{version-Dfv6nyNu.js.map → version-COw2dh2E.js.map} +1 -1
- package/dist/collection/components/design-system/radio-button-group/radio-button-group.js +8 -1
- package/dist/collection/components/design-system/radio-button-group/radio-button-group.js.map +1 -1
- package/dist/collection/connector/shared/api/scheduler-config.js +7 -0
- package/dist/collection/connector/shared/api/scheduler-config.js.map +1 -1
- package/dist/collection/version.js +1 -1
- package/dist/collection/version.js.map +1 -1
- package/dist/components/nylas-booking-form.js +1 -1
- package/dist/components/nylas-editor-tabs-group.js +1 -1
- package/dist/components/nylas-editor-tabs.js +1 -1
- package/dist/components/nylas-scheduler-editor.js +12 -5
- package/dist/components/nylas-scheduler-editor.js.map +1 -1
- package/dist/components/nylas-scheduling.js +3 -3
- package/dist/components/nylas-timeslot-interval.js +1 -1
- package/dist/components/{p-CrRo4iAd.js → p-BUEZ6uxG.js} +3 -3
- package/dist/components/{p-CrRo4iAd.js.map → p-BUEZ6uxG.js.map} +1 -1
- package/dist/components/{p-t9PqKZaR.js → p-Bd0cKEr-.js} +5 -5
- package/dist/components/{p-t9PqKZaR.js.map → p-Bd0cKEr-.js.map} +1 -1
- package/dist/components/{p-CMFPcpfe.js → p-C0pHjJtj.js} +3 -3
- package/dist/components/{p-CMFPcpfe.js.map → p-C0pHjJtj.js.map} +1 -1
- package/dist/components/{p-B_Qi3sM4.js → p-CyWE9dXK.js} +10 -3
- package/dist/components/p-CyWE9dXK.js.map +1 -0
- package/dist/components/{p-226WzMDo.js → p-DTmxwCTa.js} +3 -3
- package/dist/components/{p-226WzMDo.js.map → p-DTmxwCTa.js.map} +1 -1
- package/dist/components/{p-CfQZPhVq.js → p-ejCgVZ9o.js} +3 -3
- package/dist/components/{p-CfQZPhVq.js.map → p-ejCgVZ9o.js.map} +1 -1
- package/dist/components/radio-button-group.js +1 -1
- package/dist/esm/google-logo-icon_6.entry.js +1 -1
- package/dist/esm/nylas-scheduler-editor.entry.js +8 -1
- package/dist/esm/nylas-scheduler-editor.entry.js.map +1 -1
- package/dist/esm/nylas-scheduling.entry.js +1 -1
- package/dist/esm/radio-button-group.entry.js +8 -1
- package/dist/esm/radio-button-group.entry.js.map +1 -1
- package/dist/esm/{version-EWXklg7E.js → version-DDixcvI0.js} +3 -3
- package/dist/esm/{version-EWXklg7E.js.map → version-DDixcvI0.js.map} +1 -1
- package/dist/nylas-web-elements/nylas-scheduler-editor.entry.esm.js.map +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/{p-5a861a93.entry.js → p-7876f3e5.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-5a861a93.entry.js.map → p-7876f3e5.entry.js.map} +1 -1
- package/dist/nylas-web-elements/{p-b26bb72f.entry.js → p-937127a0.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-EWXklg7E.js → p-DDixcvI0.js} +2 -2
- package/dist/nylas-web-elements/{p-EWXklg7E.js.map → p-DDixcvI0.js.map} +1 -1
- package/dist/nylas-web-elements/{p-124fda53.entry.js → p-a6d5e357.entry.js} +2 -2
- package/dist/nylas-web-elements/p-a6d5e357.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-48449f8b.entry.js → p-f5cf4c30.entry.js} +2 -2
- package/dist/nylas-web-elements/radio-button-group.entry.esm.js.map +1 -1
- package/dist/types/connector/shared/api/scheduler-config.d.ts +1 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/p-B_Qi3sM4.js.map +0 -1
- package/dist/nylas-web-elements/p-124fda53.entry.js.map +0 -1
- /package/dist/nylas-web-elements/{p-b26bb72f.entry.js.map → p-937127a0.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-48449f8b.entry.js.map → p-f5cf4c30.entry.js.map} +0 -0
|
@@ -26572,7 +26572,7 @@ const gQ = () => ({
|
|
|
26572
26572
|
lazyLoadIntegration: iX,
|
|
26573
26573
|
getModalIntegration: () => dQ,
|
|
26574
26574
|
getScreenshotIntegration: () => gQ
|
|
26575
|
-
}), Zr = "2.5.4
|
|
26575
|
+
}), Zr = "2.5.4", yQ = ".sc-add-circle-icon-h{display:flex}", bQ = De(class extends Ae {
|
|
26576
26576
|
constructor() {
|
|
26577
26577
|
super(), this.__registerHost(), this.width = "24", this.height = "25";
|
|
26578
26578
|
}
|
|
@@ -38386,7 +38386,11 @@ const uie = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;-
|
|
|
38386
38386
|
});
|
|
38387
38387
|
}
|
|
38388
38388
|
componentDidLoad() {
|
|
38389
|
-
this.selectedValue = this.defaultSelectedValue
|
|
38389
|
+
this.selectedValue = this.defaultSelectedValue, this.defaultSelectedValue && this.nylasFormRadioChanged.emit({
|
|
38390
|
+
value: this.defaultSelectedValue,
|
|
38391
|
+
name: this.name,
|
|
38392
|
+
label: this.label
|
|
38393
|
+
});
|
|
38390
38394
|
}
|
|
38391
38395
|
handleBookingFormSubmitted(e) {
|
|
38392
38396
|
if (this.required && !this.selectedValue) {
|
|
@@ -38406,7 +38410,7 @@ const uie = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;-
|
|
|
38406
38410
|
});
|
|
38407
38411
|
}
|
|
38408
38412
|
render() {
|
|
38409
|
-
return c("div", { key: "
|
|
38413
|
+
return c("div", { key: "7d4f9dbc6fb35ba0d6ec854c67b04f320888bff0", class: "radio-group" }, c("slot", { key: "4e8f1ebf95e25021f49c0973bb16609730303c2d", name: "label" }, this.label && c("p", { key: "a944e18fac56caeb5582028c38d055b399cd6693", class: { error: !!this.error } }, c("span", { key: "2730c691418b2890b52b182d0389eb4a6ea42edb", class: "label" }, this.label), this.required && c("span", { key: "ec2d3213ab090cf75a9499c03f64b1cf8ac860b8", class: "required" }, "*"))), this.options.map((e) => c("label", null, c("div", { class: "radio-option" }, c("input", { type: "radio", disabled: this.readOnly, readOnly: this.readOnly, title: this.readOnly ? "read-only field" : void 0, name: this.name, value: e.value, checked: this.selectedValue === e.value, onChange: () => this.handleChange(e.value) }), c("p", null, c("span", { class: "title" }, e.label), c("span", { class: "description" }, e.description))))), this.error && c("span", { key: "bbe79d56c58731dd23fd68f6efea548faffcbc25", class: "error help-text" }, this.error));
|
|
38410
38414
|
}
|
|
38411
38415
|
get el() {
|
|
38412
38416
|
return this;
|
|
@@ -52098,7 +52102,7 @@ class Tae {
|
|
|
52098
52102
|
message: "Error creating group event: " + a.message
|
|
52099
52103
|
})) : Qn(i) ? (this.nylasSchedulerConfigStore.state.isLoading = !1, Ve(null, {
|
|
52100
52104
|
message: "Error creating group event: " + ((r = i.error) == null ? void 0 : r.message)
|
|
52101
|
-
})) : (this.nylasSchedulerConfigStore.state.selectedGroupEvent = i.data, await this.getGroupEvents(t, this.nylasSchedulerConfigStore.state.selectedConfiguration), this.nylasSchedulerConfigStore.state.isLoading = !1, Ve(i.data));
|
|
52105
|
+
})) : (this.nylasSchedulerConfigStore.state.selectedGroupEvent = i.data, this.invalidateGroupEventsCache(), await this.getGroupEvents(t, this.nylasSchedulerConfigStore.state.selectedConfiguration), this.nylasSchedulerConfigStore.state.isLoading = !1, Ve(i.data));
|
|
52102
52106
|
}
|
|
52103
52107
|
async getGroupEvents(e, t) {
|
|
52104
52108
|
var f, g;
|
|
@@ -52135,6 +52139,9 @@ class Tae {
|
|
|
52135
52139
|
timestamp: Date.now()
|
|
52136
52140
|
}), this.cleanupExpiredCache(), this.nylasSchedulerConfigStore.state.groupEvents = p.data, Ve(p.data));
|
|
52137
52141
|
}
|
|
52142
|
+
invalidateGroupEventsCache() {
|
|
52143
|
+
this.groupEventsCache.clear();
|
|
52144
|
+
}
|
|
52138
52145
|
cleanupExpiredCache() {
|
|
52139
52146
|
const e = Date.now();
|
|
52140
52147
|
for (const [t, i] of this.groupEventsCache.entries())
|
|
@@ -52157,7 +52164,7 @@ class Tae {
|
|
|
52157
52164
|
message: "Error updating group event: " + r.message
|
|
52158
52165
|
})) : Qn(a) ? (this.nylasSchedulerConfigStore.state.isLoading = !1, Ve(null, {
|
|
52159
52166
|
message: "Error updating group event: " + ((o = a.error) == null ? void 0 : o.message)
|
|
52160
|
-
})) : (this.nylasSchedulerConfigStore.state.selectedGroupEvent = a.data, await this.getGroupEvents(t, this.nylasSchedulerConfigStore.state.selectedConfiguration), this.nylasSchedulerConfigStore.state.isLoading = !1, Ve(a.data));
|
|
52167
|
+
})) : (this.nylasSchedulerConfigStore.state.selectedGroupEvent = a.data, this.invalidateGroupEventsCache(), await this.getGroupEvents(t, this.nylasSchedulerConfigStore.state.selectedConfiguration), this.nylasSchedulerConfigStore.state.isLoading = !1, Ve(a.data));
|
|
52161
52168
|
}
|
|
52162
52169
|
async updateGroupEvent(e, t, i) {
|
|
52163
52170
|
var y, f, g, v, C, E, _, T, R, A, D, $, z, Z;
|
|
@@ -52245,7 +52252,7 @@ class Tae {
|
|
|
52245
52252
|
message: "Error deleting group event: " + o.message
|
|
52246
52253
|
})) : Qn(r) ? (this.nylasSchedulerConfigStore.state.isLoading = !1, Ve(null, {
|
|
52247
52254
|
message: "Error deleting group event: " + ((u = r.error) == null ? void 0 : u.message)
|
|
52248
|
-
})) : (await this.getGroupEvents(t, this.nylasSchedulerConfigStore.state.selectedConfiguration), this.nylasSchedulerConfigStore.state.isLoading = !1, Ve(r.data));
|
|
52255
|
+
})) : (this.invalidateGroupEventsCache(), await this.getGroupEvents(t, this.nylasSchedulerConfigStore.state.selectedConfiguration), this.nylasSchedulerConfigStore.state.isLoading = !1, Ve(r.data));
|
|
52249
52256
|
}
|
|
52250
52257
|
async importGroupEvent(e, t) {
|
|
52251
52258
|
var s, d, u, p, y;
|
|
@@ -52264,7 +52271,7 @@ class Tae {
|
|
|
52264
52271
|
message: "Error importing group event: " + o.message
|
|
52265
52272
|
})) : Qn(r) ? (this.nylasSchedulerConfigStore.state.isLoading = !1, Ve(null, {
|
|
52266
52273
|
message: "Error importing group event: " + ((u = r.error) == null ? void 0 : u.message)
|
|
52267
|
-
})) : (((y = (p = r.data) == null ? void 0 : p.imported_events) == null ? void 0 : y.length) > 0 && await this.getGroupEvents(t, this.nylasSchedulerConfigStore.state.selectedConfiguration), this.nylasSchedulerConfigStore.state.isLoading = !1, Ve(r.data));
|
|
52274
|
+
})) : (((y = (p = r.data) == null ? void 0 : p.imported_events) == null ? void 0 : y.length) > 0 && (this.invalidateGroupEventsCache(), await this.getGroupEvents(t, this.nylasSchedulerConfigStore.state.selectedConfiguration)), this.nylasSchedulerConfigStore.state.isLoading = !1, Ve(r.data));
|
|
52268
52275
|
}
|
|
52269
52276
|
}
|
|
52270
52277
|
class Sae {
|
|
@@ -26061,7 +26061,7 @@ const jN = () => ({
|
|
|
26061
26061
|
lazyLoadIntegration: AR,
|
|
26062
26062
|
getModalIntegration: () => ON,
|
|
26063
26063
|
getScreenshotIntegration: () => jN
|
|
26064
|
-
}), Ro = "2.5.4
|
|
26064
|
+
}), Ro = "2.5.4", UN = (t, e, n) => {
|
|
26065
26065
|
const i = t.get(e);
|
|
26066
26066
|
i ? i.includes(n) || i.push(n) : t.set(e, [n]);
|
|
26067
26067
|
}, HN = (t, e) => {
|
|
@@ -27345,7 +27345,11 @@ const NF = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--
|
|
|
27345
27345
|
});
|
|
27346
27346
|
}
|
|
27347
27347
|
componentDidLoad() {
|
|
27348
|
-
this.selectedValue = this.defaultSelectedValue
|
|
27348
|
+
this.selectedValue = this.defaultSelectedValue, this.defaultSelectedValue && this.nylasFormRadioChanged.emit({
|
|
27349
|
+
value: this.defaultSelectedValue,
|
|
27350
|
+
name: this.name,
|
|
27351
|
+
label: this.label
|
|
27352
|
+
});
|
|
27349
27353
|
}
|
|
27350
27354
|
handleBookingFormSubmitted(e) {
|
|
27351
27355
|
if (this.required && !this.selectedValue) {
|
|
@@ -27365,7 +27369,7 @@ const NF = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--
|
|
|
27365
27369
|
});
|
|
27366
27370
|
}
|
|
27367
27371
|
render() {
|
|
27368
|
-
return v("div", { key: "
|
|
27372
|
+
return v("div", { key: "7d4f9dbc6fb35ba0d6ec854c67b04f320888bff0", class: "radio-group" }, v("slot", { key: "4e8f1ebf95e25021f49c0973bb16609730303c2d", name: "label" }, this.label && v("p", { key: "a944e18fac56caeb5582028c38d055b399cd6693", class: { error: !!this.error } }, v("span", { key: "2730c691418b2890b52b182d0389eb4a6ea42edb", class: "label" }, this.label), this.required && v("span", { key: "ec2d3213ab090cf75a9499c03f64b1cf8ac860b8", class: "required" }, "*"))), this.options.map((e) => v("label", null, v("div", { class: "radio-option" }, v("input", { type: "radio", disabled: this.readOnly, readOnly: this.readOnly, title: this.readOnly ? "read-only field" : void 0, name: this.name, value: e.value, checked: this.selectedValue === e.value, onChange: () => this.handleChange(e.value) }), v("p", null, v("span", { class: "title" }, e.label), v("span", { class: "description" }, e.description))))), this.error && v("span", { key: "bbe79d56c58731dd23fd68f6efea548faffcbc25", class: "error help-text" }, this.error));
|
|
27369
27373
|
}
|
|
27370
27374
|
get el() {
|
|
27371
27375
|
return this;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var index = require('./index-9TuL48qE.js');
|
|
4
4
|
var registerComponent = require('./register-component-Cu3tKKKD.js');
|
|
5
5
|
var utils = require('./utils-DMqnHqF8.js');
|
|
6
|
-
var version = require('./version-
|
|
6
|
+
var version = require('./version-COw2dh2E.js');
|
|
7
7
|
var feedbackSync = require('./feedbackSync-Bcx7mZ9-.js');
|
|
8
8
|
|
|
9
9
|
const iconCss$1 = ".sc-google-logo-icon-h{display:flex}";
|
|
@@ -4,7 +4,7 @@ var index$1 = require('./index-9TuL48qE.js');
|
|
|
4
4
|
var abstractProvider = require('./abstract-provider-CH5yXWmY.js');
|
|
5
5
|
var nylasApiRequest = require('./nylas-api-request-Cva9mkSo.js');
|
|
6
6
|
var utils = require('./utils-DMqnHqF8.js');
|
|
7
|
-
var version = require('./version-
|
|
7
|
+
var version = require('./version-COw2dh2E.js');
|
|
8
8
|
var index = require('./index-CwlXqyvH.js');
|
|
9
9
|
|
|
10
10
|
utils.dayjs.extend(utils.utc);
|
|
@@ -267,6 +267,7 @@ class NylasSchedulerConfigAPIConnector {
|
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
269
|
this.nylasSchedulerConfigStore.state.selectedGroupEvent = response.data;
|
|
270
|
+
this.invalidateGroupEventsCache();
|
|
270
271
|
await this.getGroupEvents(configurationId, this.nylasSchedulerConfigStore.state.selectedConfiguration);
|
|
271
272
|
this.nylasSchedulerConfigStore.state.isLoading = false;
|
|
272
273
|
return utils.dataResponse(response.data);
|
|
@@ -326,6 +327,9 @@ class NylasSchedulerConfigAPIConnector {
|
|
|
326
327
|
this.nylasSchedulerConfigStore.state.groupEvents = response.data;
|
|
327
328
|
return utils.dataResponse(response.data);
|
|
328
329
|
}
|
|
330
|
+
invalidateGroupEventsCache() {
|
|
331
|
+
this.groupEventsCache.clear();
|
|
332
|
+
}
|
|
329
333
|
cleanupExpiredCache() {
|
|
330
334
|
const now = Date.now();
|
|
331
335
|
for (const [key, value] of this.groupEventsCache.entries()) {
|
|
@@ -362,6 +366,7 @@ class NylasSchedulerConfigAPIConnector {
|
|
|
362
366
|
});
|
|
363
367
|
}
|
|
364
368
|
this.nylasSchedulerConfigStore.state.selectedGroupEvent = response.data;
|
|
369
|
+
this.invalidateGroupEventsCache();
|
|
365
370
|
await this.getGroupEvents(configurationId, this.nylasSchedulerConfigStore.state.selectedConfiguration);
|
|
366
371
|
this.nylasSchedulerConfigStore.state.isLoading = false;
|
|
367
372
|
return utils.dataResponse(response.data);
|
|
@@ -514,6 +519,7 @@ class NylasSchedulerConfigAPIConnector {
|
|
|
514
519
|
message: 'Error deleting group event: ' + response.error?.message,
|
|
515
520
|
});
|
|
516
521
|
}
|
|
522
|
+
this.invalidateGroupEventsCache();
|
|
517
523
|
await this.getGroupEvents(configurationId, this.nylasSchedulerConfigStore.state.selectedConfiguration);
|
|
518
524
|
this.nylasSchedulerConfigStore.state.isLoading = false;
|
|
519
525
|
return utils.dataResponse(response.data);
|
|
@@ -549,6 +555,7 @@ class NylasSchedulerConfigAPIConnector {
|
|
|
549
555
|
});
|
|
550
556
|
}
|
|
551
557
|
if (response.data?.imported_events?.length > 0) {
|
|
558
|
+
this.invalidateGroupEventsCache();
|
|
552
559
|
await this.getGroupEvents(configurationId, this.nylasSchedulerConfigStore.state.selectedConfiguration);
|
|
553
560
|
}
|
|
554
561
|
this.nylasSchedulerConfigStore.state.isLoading = false;
|