@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.
- package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +212 -212
- package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +1044 -1044
- package/dist/cjs/{abstract-provider-b37458c4.js → abstract-provider-85a616a9.js} +2 -2
- package/dist/cjs/{abstract-provider-b37458c4.js.map → abstract-provider-85a616a9.js.map} +1 -1
- package/dist/cjs/calendar-agenda-fill-icon_37.cjs.entry.js +55 -55
- package/dist/cjs/calendar-agenda-fill-icon_37.cjs.entry.js.map +1 -1
- package/dist/cjs/checkbox-group_4.cjs.entry.js +3 -3
- package/dist/cjs/checkmark-icon_15.cjs.entry.js +2 -2
- package/dist/cjs/{customParseFormat-61a3a302.js → customParseFormat-dc3b45aa.js} +2 -2
- package/dist/cjs/{customParseFormat-61a3a302.js.map → customParseFormat-dc3b45aa.js.map} +1 -1
- package/dist/cjs/{feedbackSync-2c4d37fe.js → feedbackSync-eaa01d21.js} +2 -2
- package/dist/cjs/feedbackSync-eaa01d21.js.map +1 -0
- package/dist/cjs/google-logo-icon_6.cjs.entry.js +18 -18
- package/dist/cjs/google-logo-icon_6.cjs.entry.js.map +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{index.es-e4fc6d92.js → index.es-a962dedb.js} +2 -2
- package/dist/cjs/{index.es-e4fc6d92.js.map → index.es-a962dedb.js.map} +1 -1
- package/dist/cjs/input-component.cjs.entry.js +1 -1
- package/dist/cjs/input-dropdown_2.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/multi-select-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/{nylas-api-request-5b2f7ec0.js → nylas-api-request-d263af93.js} +2 -2
- package/dist/cjs/{nylas-api-request-5b2f7ec0.js.map → nylas-api-request-d263af93.js.map} +1 -1
- package/dist/cjs/nylas-booked-event-card_11.cjs.entry.js +2 -2
- package/dist/cjs/nylas-date-component_2.cjs.entry.js +2 -2
- package/dist/cjs/nylas-form-card.cjs.entry.js +2 -2
- package/dist/cjs/nylas-notification_2.cjs.entry.js +1 -1
- package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +6 -6
- package/dist/cjs/nylas-scheduling.cjs.entry.js +8 -8
- package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-web-elements.cjs.js +1 -1
- package/dist/cjs/{register-component-8a9c40ee.js → register-component-2eefbf66.js} +2 -2
- package/dist/cjs/{register-component-8a9c40ee.js.map → register-component-2eefbf66.js.map} +1 -1
- package/dist/cjs/textarea-component.cjs.entry.js +1 -1
- package/dist/cjs/{utils-c923f1a8.js → utils-e37da320.js} +113 -113
- package/dist/cjs/{utils-c923f1a8.js.map → utils-e37da320.js.map} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +1 -1
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +10 -10
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/test/nylas-editor-tabs.spec.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/test/nylas-editor-tabs.spec.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.js +18 -18
- package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.js.map +1 -1
- 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
- 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
- package/dist/collection/components/scheduler-editor/nylas-specific-time-availability-picker/nylas-specific-time-availability-picker.js.map +1 -0
- 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
- package/dist/collection/components/scheduler-editor/nylas-specific-time-availability-picker/test/nylas-specific-time-availability-picker.spec.js.map +1 -0
- package/dist/collection/types/index.js.map +1 -1
- package/dist/components/index3.js.map +1 -1
- package/dist/components/nylas-editor-tabs-group2.js +2 -2
- package/dist/components/nylas-editor-tabs2.js +15 -15
- package/dist/components/nylas-editor-tabs2.js.map +1 -1
- package/dist/components/nylas-participants-custom-availability2.js +21 -21
- package/dist/components/nylas-participants-custom-availability2.js.map +1 -1
- package/dist/components/nylas-scheduler-editor.js +5 -5
- package/dist/components/nylas-scheduling.js +4 -4
- package/dist/components/nylas-scheduling.js.map +1 -1
- package/dist/components/nylas-specific-time-availability-picker.d.ts +11 -0
- package/dist/components/nylas-specific-time-availability-picker.js +8 -0
- package/dist/components/nylas-specific-time-availability-picker.js.map +1 -0
- package/dist/components/{nylas-specific-date-availability-picker2.js → nylas-specific-time-availability-picker2.js} +41 -41
- package/dist/components/nylas-specific-time-availability-picker2.js.map +1 -0
- package/dist/components/utils.js +112 -112
- package/dist/esm/{abstract-provider-45ada3b4.js → abstract-provider-a502b54d.js} +2 -2
- package/dist/esm/{abstract-provider-45ada3b4.js.map → abstract-provider-a502b54d.js.map} +1 -1
- package/dist/esm/calendar-agenda-fill-icon_37.entry.js +55 -55
- package/dist/esm/calendar-agenda-fill-icon_37.entry.js.map +1 -1
- package/dist/esm/checkbox-group_4.entry.js +3 -3
- package/dist/esm/checkmark-icon_15.entry.js +2 -2
- package/dist/esm/{customParseFormat-eeec04f5.js → customParseFormat-b5d95b34.js} +2 -2
- package/dist/esm/{customParseFormat-eeec04f5.js.map → customParseFormat-b5d95b34.js.map} +1 -1
- package/dist/esm/{feedbackSync-0ebd0eda.js → feedbackSync-92220b42.js} +2 -2
- package/dist/esm/feedbackSync-92220b42.js.map +1 -0
- package/dist/esm/google-logo-icon_6.entry.js +18 -18
- package/dist/esm/google-logo-icon_6.entry.js.map +1 -1
- package/dist/esm/{index.es-57d4a08f.js → index.es-488bc919.js} +2 -2
- package/dist/esm/{index.es-57d4a08f.js.map → index.es-488bc919.js.map} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/input-component.entry.js +1 -1
- package/dist/esm/input-dropdown_2.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/multi-select-dropdown.entry.js +1 -1
- package/dist/esm/{nylas-api-request-ad1909c6.js → nylas-api-request-9f7ac6c5.js} +2 -2
- package/dist/esm/{nylas-api-request-ad1909c6.js.map → nylas-api-request-9f7ac6c5.js.map} +1 -1
- package/dist/esm/nylas-booked-event-card_11.entry.js +2 -2
- package/dist/esm/nylas-date-component_2.entry.js +2 -2
- package/dist/esm/nylas-form-card.entry.js +2 -2
- package/dist/esm/nylas-notification_2.entry.js +1 -1
- package/dist/esm/nylas-scheduler-editor.entry.js +6 -6
- package/dist/esm/nylas-scheduling.entry.js +8 -8
- package/dist/esm/nylas-scheduling.entry.js.map +1 -1
- package/dist/esm/nylas-web-elements.js +1 -1
- package/dist/esm/{register-component-0aad9e3d.js → register-component-3acd57e7.js} +2 -2
- package/dist/esm/{register-component-0aad9e3d.js.map → register-component-3acd57e7.js.map} +1 -1
- package/dist/esm/textarea-component.entry.js +1 -1
- package/dist/esm/{utils-d3c0b941.js → utils-31933f5d.js} +113 -113
- package/dist/esm/{utils-d3c0b941.js.map → utils-31933f5d.js.map} +1 -1
- package/dist/nylas-web-elements/index.esm.js +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js.map +1 -1
- package/dist/nylas-web-elements/{p-3216af1e.entry.js → p-20f50696.entry.js} +2 -2
- package/dist/nylas-web-elements/p-341f1a4c.entry.js +2 -0
- package/dist/nylas-web-elements/p-341f1a4c.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-1591deba.js → p-34c9fc7d.js} +2 -2
- package/dist/nylas-web-elements/{p-38fa873f.js → p-3524dab1.js} +2 -2
- package/dist/nylas-web-elements/p-3524dab1.js.map +1 -0
- package/dist/nylas-web-elements/{p-d45012f2.js → p-438d4542.js} +2 -2
- package/dist/nylas-web-elements/{p-21ab4e47.entry.js → p-536c5ef3.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-a4678661.entry.js → p-5a6c2efd.entry.js} +2 -2
- package/dist/nylas-web-elements/p-66a89e65.js +14 -0
- package/dist/nylas-web-elements/{p-17c5fb16.js.map → p-66a89e65.js.map} +1 -1
- package/dist/nylas-web-elements/{p-88e68e14.entry.js → p-6adb19cf.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-8937a53f.entry.js → p-6bda61cf.entry.js} +3 -3
- package/dist/nylas-web-elements/p-6bda61cf.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-30d92734.entry.js → p-7c02e476.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-8072aa07.js → p-803a1695.js} +2 -2
- package/dist/nylas-web-elements/{p-186bbd43.entry.js → p-81925b89.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-186bbd43.entry.js.map → p-81925b89.entry.js.map} +1 -1
- package/dist/nylas-web-elements/{p-855fe5b3.entry.js → p-83d2ff21.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-f83aa456.entry.js → p-8673dcf1.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-24c390bd.js → p-86e217f4.js} +2 -2
- package/dist/nylas-web-elements/{p-d0f51520.entry.js → p-8d5efa5e.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-0271cef3.entry.js → p-d7323440.entry.js} +3 -3
- package/dist/nylas-web-elements/{p-59ff0231.entry.js → p-da25d877.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-f0e1688e.js → p-e42db60f.js} +2 -2
- package/dist/nylas-web-elements/{p-c11e1016.entry.js → p-ff122d1e.entry.js} +2 -2
- package/dist/types/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.d.ts +5 -5
- package/dist/types/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.d.ts +3 -3
- 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
- package/dist/types/components.d.ts +19 -19
- package/dist/types/types/index.d.ts +2 -2
- package/package.json +2 -2
- package/dist/cjs/feedbackSync-2c4d37fe.js.map +0 -1
- package/dist/collection/components/scheduler-editor/nylas-specific-date-availability-picker/nylas-specific-date-availability-picker.js.map +0 -1
- package/dist/collection/components/scheduler-editor/nylas-specific-date-availability-picker/test/nylas-specific-date-availability-picker.spec.js.map +0 -1
- package/dist/components/nylas-specific-date-availability-picker.d.ts +0 -11
- package/dist/components/nylas-specific-date-availability-picker.js +0 -8
- package/dist/components/nylas-specific-date-availability-picker.js.map +0 -1
- package/dist/components/nylas-specific-date-availability-picker2.js.map +0 -1
- package/dist/esm/feedbackSync-0ebd0eda.js.map +0 -1
- package/dist/nylas-web-elements/p-17c5fb16.js +0 -14
- package/dist/nylas-web-elements/p-38fa873f.js.map +0 -1
- package/dist/nylas-web-elements/p-3ddcb355.entry.js +0 -2
- package/dist/nylas-web-elements/p-3ddcb355.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-8937a53f.entry.js.map +0 -1
- /package/dist/nylas-web-elements/{p-3216af1e.entry.js.map → p-20f50696.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-1591deba.js.map → p-34c9fc7d.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-d45012f2.js.map → p-438d4542.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-21ab4e47.entry.js.map → p-536c5ef3.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-a4678661.entry.js.map → p-5a6c2efd.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-88e68e14.entry.js.map → p-6adb19cf.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-30d92734.entry.js.map → p-7c02e476.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-8072aa07.js.map → p-803a1695.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-855fe5b3.entry.js.map → p-83d2ff21.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-f83aa456.entry.js.map → p-8673dcf1.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-24c390bd.js.map → p-86e217f4.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-d0f51520.entry.js.map → p-8d5efa5e.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-0271cef3.entry.js.map → p-d7323440.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-59ff0231.entry.js.map → p-da25d877.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-f0e1688e.js.map → p-e42db60f.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-c11e1016.entry.js.map → p-ff122d1e.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as t,e,f as n}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{b as t,e,f as n}from"./p-66a89e65.js";class o{constructor(e,n,o=true,i){this.automaticComponentRegistration=true;this.registeredComponents={};this.propStateRegistrations=new Map;this.eventListenerRegistrations=new Map;this.host=e;this.stores=n;this.automaticComponentRegistration=o;this.eventOverrides=i;t(`[${this.hostTagName}] Initializing (abstract) provider.`,{eventOverrides:i});this.registerComponent=this.registerComponent.bind(this);this.getStore=this.getStore.bind(this);Object.keys(this.stores).forEach((t=>{this.propStateRegistrations.set(t,new Map)}))}async componentWillLoad(e){t(`[${this.hostTagName}] Will load`);this.setupStoreListeners();this.nylasConnector=e;const n=Array.from(this.host.querySelectorAll("*")).filter((t=>t.tagName.toLowerCase().startsWith("nylas-")));t(`[${this.hostTagName}] Found ${n.length} child component(s).`,{childComponents:n});const o=n.map((async e=>{const n=e;if(!n){t(`[~${this.hostTagName}] (componentWillLoad) Component ${n.tagName} does not have a name. Skipping.`);return}if(!n.registerNylasComponent){t(`[~${this.hostTagName}] (componentWillLoad) Component ${n.tagName} is not a component that can be registered. Skipping.`,{component:n});return}const o={element:n,name:n.tagName.toLowerCase(),getStoresToProp:n.getStoresToProp,storeToProps:n.storeToProps,stateToProps:n.stateToProps,authToProp:n.authToProp,eventToProps:n.eventToProps,connectorToProp:n.connectorToProp,localPropsToProp:n.localPropsToProp};await this.registerComponent(o)}));await Promise.all(o)}async componentDidLoad(){t(`[~${this.hostTagName}] (componentDidLoad) Did load`)}async componentDisconnected(){Object.values(this.stores).forEach((t=>{t.dispose()}))}async registerComponentHandler(e){e.stopPropagation();if(!this.automaticComponentRegistration){t(`~[${this.hostTagName}] (registerComponentHandler) Automatic component registration disabled. Skipping registration of ${e.detail.name}.`);return}await this.registerComponent(e.detail)}async unregisterComponentHandler(e){e.stopPropagation();if(!this.automaticComponentRegistration){t(`~[${this.hostTagName}] (unregisterComponentHandler) Automatic component registration disabled. Skipping unregistration of ${e.detail.name}.`);return}this.unregisterComponent(e.detail)}async registerComponent(o){t(`~[${this.hostTagName}] (registerComponent) Registering component ${o.name}.`);const i=o.element.dataset.nylasId;const s=i&&this.registeredComponents[i];if(s){t(`[${this.hostTagName}] (registerComponent) Component ${o.name} already registered. Updating registration.`);this.cleanupComponentRegistration(i,false)}else{o.element.dataset.nylasId=i||e()}const r=o.element.dataset.nylasId;if(r){this.registeredComponents[r]=o}t(`[${this.hostTagName}] (registerComponent) Waiting for "${o.element.localName}" component to be defined`,{component:o});try{await customElements.whenDefined(o.element.tagName.toLowerCase());t(`[${this.hostTagName}] (registerComponent) Component "${o.element.localName}" is now defined`)}catch(e){t(`[${this.hostTagName}] (registerComponent) Error waiting for component "${o.element.localName}" to be defined:`,e)}const p=this.eventOverrides;const{stateToProps:a,getStoresToProp:h,eventToProps:c,storeToProps:$,connectorToProp:g,localPropsToProp:m,element:l}=o;c?.forEach(((e,i)=>{const s=this.nylasConnector;const r=async n=>{t(`[${this.hostTagName}] (registerComponent) Handling "${o.name}" prop "${String(i)}" event.`,{event:n});if(i in p){t(`[${this.hostTagName}] (registerComponent) Found event override for "${String(i)}" event. Calling override.`);await p[i](n,s)}if(!n.defaultPrevented){await e(n,s)}return};const a=o.element.dataset.nylasId;if(a&&!this.eventListenerRegistrations.has(a)){this.eventListenerRegistrations.set(a,[])}if(a){this.eventListenerRegistrations.get(a)?.push([l,i,r])}t(`[${this.hostTagName}] (registerComponent) Setting "${o.name}" event "${String(i)}" to automcially call NylasConnector method.`);const h=n(i.toString());t(`[${this.hostTagName}] (registerComponent) Adding event listener for "${h}" on "${l.tagName}"`);l.addEventListener(h,r)}));a?.forEach(((e,n)=>{const[i,s]=n.split(".");const r=this.getStore(i);const p=r.state[s];if(!l.dataset.nylasId){t(`[${this.hostTagName}] (registerComponent) Component "${o.name}" not registered. Skipping.`,{component:o});return}if(!this.propStateRegistrations.has(i)){this.propStateRegistrations.set(i,new Map)}if(!this.propStateRegistrations.get(i)?.has(s)){this.propStateRegistrations.get(i)?.set(s,[{elementId:l.dataset.nylasId,propKey:e}])}else{this.propStateRegistrations.get(i)?.get(s)?.push({elementId:l.dataset.nylasId,propKey:e})}l[e.toString()]=p;t(`[${this.hostTagName}] Setting "${o.name}" prop "${e.toString()}" to "${n}" value.`,{stateValue:p})}));m?.forEach(((e,n)=>{const i=this.host[n];l[e.toString()]=i;t(`[${this.hostTagName}] Setting "${o.name}" prop "${e.toString()}" to the value of "${n}" value.`,{value:n,mappedPropValue:i})}));if(h){l[h?.toString()]=this.getStore;t(`[${this.hostTagName}] Setting "${o.name}" prop "${h.toString()}" to "getStore" method.`)}$?.forEach(((e,n)=>{const i=this.getStore(n);l[e.toString()]=i;t(`[${this.hostTagName}] Setting "${o.name}" prop "${e.toString()}" to "${n}" store.`,{store:i})}));if(g){l[g?.toString()]=this.nylasConnector;t(`[${this.hostTagName}] Setting "${o.name}" prop "${g.toString()}" to "nylasConnector" value.`,{connectorToProp:g})}if(typeof l.registerCallback==="function"){t(`[${this.hostTagName}] (registerComponent) Calling registerCallback method for "${o.name}".`);await l.registerCallback()}t(`[${this.hostTagName}] (registerComponent) Component ${o.name} registered.`)}cleanupComponentRegistration(e,o=true){const i=this.eventListenerRegistrations.get(e);if(i){i.forEach((([e,o,i])=>{const s=n(o.toString());t(`[${this.hostTagName}] (cleanupComponentRegistration) Removing event listener for "${s}" on "${e.tagName}"`);e.removeEventListener(s,i)}));this.eventListenerRegistrations.delete(e)}this.propStateRegistrations.forEach(((t,n)=>{t.forEach(((t,o)=>{const i=t.filter((t=>t.elementId!==e));if(i.length!==t.length){this.propStateRegistrations.get(n)?.set(o,i)}}))}));if(o){delete this.registeredComponents[e]}}unregisterComponent(e){t(`[${this.hostTagName}] Unregistering component ${e.name}.`);const o=e.element.dataset.nylasId;if(!o){t(`[${this.hostTagName}] (unregisterComponent) Unregistering component ${e.name}.`);return}if(this.registeredComponents[o]){t(`[${this.hostTagName}] (unregisterComponent) Component ${e.name} not registered. Skipping.`);return}this.propStateRegistrations.forEach(((t,e)=>{t.forEach(((t,n)=>{const i=this.propStateRegistrations.get(e)?.get(n);const s=i?.filter((t=>t.elementId!==o));if(s){this.propStateRegistrations.get(e)?.set(n,s)}}))}));const i=this.eventListenerRegistrations.get(o);i?.forEach((([e,o,i])=>{const s=n(o.toString());t(`[${this.hostTagName}] (unregisterComponent) Removing event listener for "${s}" on "${e.tagName}"`);e.removeEventListener(s,i)}));delete this.registeredComponents[o]}getStore(t){const e=this.stores[t];if(!e){throw new Error(`[${this.hostTagName}] Store "${t.toString()}" not found.`)}return e}async setupStoreListeners(){const e=this;Object.entries(this.stores).forEach((([n,o])=>{t(`[${e.hostTagName}] (setupStoreListeners) Listening for changes in "${n}" store.`);o.use({set(o,i,s){t(`[${e.hostTagName}] (setupStoreListeners) Store "${n}" state "${o.toString()}" changed`,{newValue:i,oldValue:s});if(i===s){t(`[${e.hostTagName}] (setupStoreListeners) Store "${n}" state "${o.toString()}" unchanged. Skipping.`);return}const r=e.registeredComponents;if(!r){t(`[${e.hostTagName}] (setupStoreListeners) No registered components found. Skipping.`);return}const p=e.propStateRegistrations.get(n)?.get(o.toString())||[];t(`[${e.hostTagName}] (setupStoreListeners) Found ${p.length} prop(s) registered for "${o.toString()}" store.`,{props:p,propStateRegistrations:e.propStateRegistrations});p.forEach((({elementId:i,propKey:s})=>{const p=r[i];if(!p){t(`[${e.hostTagName}] (setupStoreListeners) Component "${i}" not found. Skipping.`,{component:p});return}const a=e.getStore(n);const h=a.state[o];p.element[s.toString()]=h;t(`[${e.hostTagName}] (setupStoreListeners) Setting "${p.name}" prop "${s.toString()}" to "${o.toString()}" value.`,{stateValue:h})}))}})}))}get hostTagName(){return this.host?.tagName?.toLowerCase()??"nylas-provider"}}class i extends o{}export{i as N};
|
|
2
|
+
//# sourceMappingURL=p-e42db60f.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,c as a,h as l,a as r}from"./p-6f5a3998.js";import{r as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,c as a,h as l,a as r}from"./p-6f5a3998.js";import{r as s}from"./p-66a89e65.js";const o=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:100%}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0;display:flex;gap:4px;align-items:center}label .error{color:var(--nylas-error)}textarea{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}textarea:focus{outline-color:var(--nylas-primary)}textarea.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}textarea.error::placeholder{font-weight:400}textarea::placeholder{color:var(--nylas-base-300)}textarea::-webkit-resizer{display:none}textarea:read-only{background-color:var(--nylas-base-100);cursor:not-allowed}';const n=o;const t=class{constructor(l){e(this,l);this.nylasFormInputChanged=a(this,"nylasFormInputChanged",7);this.name="textarea";this.defaultValue=undefined;this.label="";this.placeholder="";this.required=false;this.readOnly=false;this.autoFocus=false;this.maxLength=255;this.type="multi_line_text";this.tooltip="";this.errorMessage="";this.themeConfig=undefined;this.value="";this.error=""}componentDidLoad(){this.value=s(this.defaultValue||"");this.applyThemeConfig(this.themeConfig)}themeConfigChangedHandler(e,a){if(e===a)return;this.applyThemeConfig(e)}applyThemeConfig(e){if(e){for(const[a,l]of Object.entries(e)){this.el.style.setProperty(`${a}`,l)}}}handleBookingFormSubmitted(e){this.validate(this.value);if(this.error){e.preventDefault()}}handletriggerValidation(e){this.validate(this.value);if(this.error){e.preventDefault()}}handleInput(e){this.error="";const a=e.target;this.value=s(a.value);this.nylasFormInputChanged.emit({value:this.value,name:this.name,error:this.error,label:this.label,type:this.type})}validate(e){if(this.required&&!e){this.error=this.errorMessage||`${this.label} is required.`}else if(e.length>this.maxLength){this.error=`${this.label} cannot exceed ${this.maxLength} characters.`}else{this.error=""}}render(){return l("label",{key:"6838bd252440e3919d71357e490991acc6a32625",part:"tc__label",class:{error:!!this.error}},l("p",{key:"c1b308e1cebcfd3ff26e74938cdb9be01591e2f9"},l("span",{key:"1bd454c83edd1f239d3f54c450f5c5cc9273e9a0",class:"label"},this.label),this.required&&l("span",{class:"required"},"*"),this.tooltip&&l("tooltip-component",null,l("info-icon",{slot:"tooltip-icon"}),l("span",{slot:"tooltip-content"},this.tooltip))),l("textarea",{key:"37b3f46f961c7fe8aa3bd640628a7f8c9596e388",name:this.name,title:this.readOnly?"read-only field":undefined,placeholder:this.placeholder,readOnly:this.readOnly,autoFocus:this.autoFocus,value:this.value,maxLength:this.maxLength,onInput:e=>this.handleInput(e),class:{error:!!this.error},part:"tc__textarea"}),this.error&&l("span",{class:"error help-text"},this.error))}get el(){return r(this)}static get watchers(){return{themeConfig:["themeConfigChangedHandler"]}}};t.style=n;export{t as textarea_component};
|
|
2
|
+
//# sourceMappingURL=p-ff122d1e.entry.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdditionalFields, Appearance, AvailabilityMethod, BookingType, Calendar, Conference, Configuration, EmailTemplate, EventReminder, NotificationType, OpenHours, Participant,
|
|
1
|
+
import { AdditionalFields, Appearance, AvailabilityMethod, BookingType, Calendar, Conference, Configuration, EmailTemplate, EventReminder, NotificationType, OpenHours, Participant, SpecificTimeAvailability, ThemeConfig } from '@nylas/core';
|
|
2
2
|
import { Event, EventEmitter } from '../../../stencil-public-runtime';
|
|
3
3
|
import { Tab } from './tab-contents';
|
|
4
4
|
import { User } from "../../../common/nylas-api-request";
|
|
@@ -49,8 +49,8 @@ export declare class NylasEditorTabs {
|
|
|
49
49
|
participantOpenHours?: {
|
|
50
50
|
[key: string]: OpenHours[];
|
|
51
51
|
};
|
|
52
|
-
|
|
53
|
-
[key: string]:
|
|
52
|
+
participantSpecificTimeAvailability?: {
|
|
53
|
+
[key: string]: SpecificTimeAvailability[];
|
|
54
54
|
};
|
|
55
55
|
participantBookingCalendars?: {
|
|
56
56
|
[key: string]: string;
|
|
@@ -191,8 +191,8 @@ export declare class NylasEditorTabs {
|
|
|
191
191
|
participantOpenHours?: {
|
|
192
192
|
[key: string]: OpenHours[];
|
|
193
193
|
} | undefined;
|
|
194
|
-
|
|
195
|
-
[key: string]:
|
|
194
|
+
participantSpecificTimeAvailability?: {
|
|
195
|
+
[key: string]: SpecificTimeAvailability[];
|
|
196
196
|
} | undefined;
|
|
197
197
|
participantBookingCalendars?: {
|
|
198
198
|
[key: string]: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
import { Configuration, OpenHours, Participant, ParticipantAvailability,
|
|
2
|
+
import { Configuration, OpenHours, Participant, ParticipantAvailability, SpecificTimeAvailability, ThemeConfig } from '@nylas/core';
|
|
3
3
|
import { LANGUAGE_CODE } from "../../../common/constants";
|
|
4
4
|
export declare class NylasParticipantsCustomAvailability {
|
|
5
5
|
host: HTMLNylasParticipantsCustomAvailabilityElement;
|
|
@@ -17,10 +17,10 @@ export declare class NylasParticipantsCustomAvailability {
|
|
|
17
17
|
selectedParticipants: {
|
|
18
18
|
[key: string]: {
|
|
19
19
|
setCustom: boolean;
|
|
20
|
-
tab: 'availability' | 'specific-
|
|
20
|
+
tab: 'availability' | 'specific-time-availability';
|
|
21
21
|
isOpen: boolean;
|
|
22
22
|
openHours: OpenHours[];
|
|
23
|
-
|
|
23
|
+
specificTimesAvailability: SpecificTimeAvailability[];
|
|
24
24
|
name: string;
|
|
25
25
|
availability?: ParticipantAvailability;
|
|
26
26
|
timezone?: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
2
|
import { LANGUAGE_CODE } from "../../../common/constants";
|
|
3
|
-
import { Configuration,
|
|
4
|
-
export declare class
|
|
5
|
-
host:
|
|
3
|
+
import { Configuration, SpecificTimeAvailability, ThemeConfig } from '@nylas/core';
|
|
4
|
+
export declare class NylasSpecificTimeAvailabilityPicker {
|
|
5
|
+
host: HTMLNylasSpecificTimeAvailabilityPickerElement;
|
|
6
6
|
name: string;
|
|
7
7
|
selectedConfiguration?: Configuration;
|
|
8
8
|
selectedLanguage?: LANGUAGE_CODE;
|
|
9
|
-
|
|
9
|
+
specificTimesAvailability?: SpecificTimeAvailability[];
|
|
10
10
|
readonly themeConfig?: ThemeConfig;
|
|
11
11
|
internals: ElementInternals;
|
|
12
12
|
valueChanged: EventEmitter<{
|
|
@@ -33,9 +33,9 @@ export declare class NylasSpecificDateAvailabilityPicker {
|
|
|
33
33
|
selectedLanguageChangedHandler(newVal: LANGUAGE_CODE, oldVal: LANGUAGE_CODE): void;
|
|
34
34
|
themeConfigChangedHandler(newVal: ThemeConfig, oldVal: ThemeConfig): void;
|
|
35
35
|
applyThemeConfig(themeConfig?: ThemeConfig): void;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
loadSpecificTimeAvailability(): void;
|
|
37
|
+
addSpecificTimeAvailability(): void;
|
|
38
|
+
removeSpecificTimeAvailability(id: string): void;
|
|
39
39
|
toggleAvailability(id: string): void;
|
|
40
40
|
validateEntry(entry: (typeof this.specificDateEntries)[0]): string | null;
|
|
41
41
|
validateAllEntries(): boolean;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
-
import { AdditionalFields, AdditionalParticipant, Appearance, ButtonType, Calendar, CheckboxGroupDirection, CheckboxOption, Conference, Configuration, DropdownOption, EmailTemplate, EnableEventTypes, EventDetails, EventReminder, GroupConfiguration, GroupEvent, GroupEventAPIData, ImportGroupEventDetails, Notification, NotificationType, NylasCalendar, NylasSchedulerErrorResponse, NylasSchedulerResponse, Participant, RecurrenceDeleteOption, RecurrenceUpdateOption, SchedulerGroupEventDetail,
|
|
8
|
+
import { AdditionalFields, AdditionalParticipant, Appearance, ButtonType, Calendar, CheckboxGroupDirection, CheckboxOption, Conference, Configuration, DropdownOption, EmailTemplate, EnableEventTypes, EventDetails, EventReminder, GroupConfiguration, GroupEvent, GroupEventAPIData, ImportGroupEventDetails, Notification, NotificationType, NylasCalendar, NylasSchedulerErrorResponse, NylasSchedulerResponse, Participant, RecurrenceDeleteOption, RecurrenceUpdateOption, SchedulerGroupEventDetail, SpecificTimeAvailability, ThemeConfig, TimePeriod, Timeslot } from "@nylas/core";
|
|
9
9
|
import { AuthArgs, NylasApiRequest, User } from "./common/nylas-api-request";
|
|
10
10
|
import { CONFIGURATION_EVENT_TYPE, EXPERIMENTAL_FEATURES, LANGUAGE_CODE, Locale } from "./common/constants";
|
|
11
11
|
import { OpenHours } from "./components/scheduler-editor/nylas-availability-picker/nylas-availability-picker";
|
|
@@ -22,7 +22,7 @@ import { SchedulerEditorEventOverride, SchedulerEventOverride } from "./common/c
|
|
|
22
22
|
import { NylasSchedulerConfigStoreState, NylasSchedulerConfigStoreType } from "./stores/scheduler-config-store";
|
|
23
23
|
import { NylasSchedulerConfigConnector } from "./connector/nylas-scheduler-config-connector/index";
|
|
24
24
|
import { NylasSchedulerConnector } from "./connector/nylas-scheduler-connector/index";
|
|
25
|
-
export { AdditionalFields, AdditionalParticipant, Appearance, ButtonType, Calendar, CheckboxGroupDirection, CheckboxOption, Conference, Configuration, DropdownOption, EmailTemplate, EnableEventTypes, EventDetails, EventReminder, GroupConfiguration, GroupEvent, GroupEventAPIData, ImportGroupEventDetails, Notification, NotificationType, NylasCalendar, NylasSchedulerErrorResponse, NylasSchedulerResponse, Participant, RecurrenceDeleteOption, RecurrenceUpdateOption, SchedulerGroupEventDetail,
|
|
25
|
+
export { AdditionalFields, AdditionalParticipant, Appearance, ButtonType, Calendar, CheckboxGroupDirection, CheckboxOption, Conference, Configuration, DropdownOption, EmailTemplate, EnableEventTypes, EventDetails, EventReminder, GroupConfiguration, GroupEvent, GroupEventAPIData, ImportGroupEventDetails, Notification, NotificationType, NylasCalendar, NylasSchedulerErrorResponse, NylasSchedulerResponse, Participant, RecurrenceDeleteOption, RecurrenceUpdateOption, SchedulerGroupEventDetail, SpecificTimeAvailability, ThemeConfig, TimePeriod, Timeslot } from "@nylas/core";
|
|
26
26
|
export { AuthArgs, NylasApiRequest, User } from "./common/nylas-api-request";
|
|
27
27
|
export { CONFIGURATION_EVENT_TYPE, EXPERIMENTAL_FEATURES, LANGUAGE_CODE, Locale } from "./common/constants";
|
|
28
28
|
export { OpenHours } from "./components/scheduler-editor/nylas-availability-picker/nylas-availability-picker";
|
|
@@ -2173,7 +2173,7 @@ export namespace Components {
|
|
|
2173
2173
|
*/
|
|
2174
2174
|
"themeConfig"?: any;
|
|
2175
2175
|
}
|
|
2176
|
-
interface
|
|
2176
|
+
interface NylasSpecificTimeAvailabilityPicker {
|
|
2177
2177
|
/**
|
|
2178
2178
|
* @standalone The name of the specific date availability picker.
|
|
2179
2179
|
*/
|
|
@@ -2189,7 +2189,7 @@ export namespace Components {
|
|
|
2189
2189
|
/**
|
|
2190
2190
|
* @standalone The specific date open hours.
|
|
2191
2191
|
*/
|
|
2192
|
-
"
|
|
2192
|
+
"specificTimesAvailability"?: SpecificTimeAvailability[];
|
|
2193
2193
|
/**
|
|
2194
2194
|
* @standalone The theme configuration.
|
|
2195
2195
|
*/
|
|
@@ -2802,9 +2802,9 @@ export interface NylasSelectEventTypeCustomEvent<T> extends CustomEvent<T> {
|
|
|
2802
2802
|
detail: T;
|
|
2803
2803
|
target: HTMLNylasSelectEventTypeElement;
|
|
2804
2804
|
}
|
|
2805
|
-
export interface
|
|
2805
|
+
export interface NylasSpecificTimeAvailabilityPickerCustomEvent<T> extends CustomEvent<T> {
|
|
2806
2806
|
detail: T;
|
|
2807
|
-
target:
|
|
2807
|
+
target: HTMLNylasSpecificTimeAvailabilityPickerElement;
|
|
2808
2808
|
}
|
|
2809
2809
|
export interface NylasTimeWindowPickerCustomEvent<T> extends CustomEvent<T> {
|
|
2810
2810
|
detail: T;
|
|
@@ -4541,25 +4541,25 @@ declare global {
|
|
|
4541
4541
|
prototype: HTMLNylasSelectedEventCardElement;
|
|
4542
4542
|
new (): HTMLNylasSelectedEventCardElement;
|
|
4543
4543
|
};
|
|
4544
|
-
interface
|
|
4544
|
+
interface HTMLNylasSpecificTimeAvailabilityPickerElementEventMap {
|
|
4545
4545
|
"valueChanged": {
|
|
4546
4546
|
value: string;
|
|
4547
4547
|
name: string;
|
|
4548
4548
|
};
|
|
4549
4549
|
}
|
|
4550
|
-
interface
|
|
4551
|
-
addEventListener<K extends keyof
|
|
4550
|
+
interface HTMLNylasSpecificTimeAvailabilityPickerElement extends Components.NylasSpecificTimeAvailabilityPicker, HTMLStencilElement {
|
|
4551
|
+
addEventListener<K extends keyof HTMLNylasSpecificTimeAvailabilityPickerElementEventMap>(type: K, listener: (this: HTMLNylasSpecificTimeAvailabilityPickerElement, ev: NylasSpecificTimeAvailabilityPickerCustomEvent<HTMLNylasSpecificTimeAvailabilityPickerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4552
4552
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4553
4553
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4554
4554
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4555
|
-
removeEventListener<K extends keyof
|
|
4555
|
+
removeEventListener<K extends keyof HTMLNylasSpecificTimeAvailabilityPickerElementEventMap>(type: K, listener: (this: HTMLNylasSpecificTimeAvailabilityPickerElement, ev: NylasSpecificTimeAvailabilityPickerCustomEvent<HTMLNylasSpecificTimeAvailabilityPickerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
4556
4556
|
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4557
4557
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4558
4558
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
4559
4559
|
}
|
|
4560
|
-
var
|
|
4561
|
-
prototype:
|
|
4562
|
-
new ():
|
|
4560
|
+
var HTMLNylasSpecificTimeAvailabilityPickerElement: {
|
|
4561
|
+
prototype: HTMLNylasSpecificTimeAvailabilityPickerElement;
|
|
4562
|
+
new (): HTMLNylasSpecificTimeAvailabilityPickerElement;
|
|
4563
4563
|
};
|
|
4564
4564
|
interface HTMLNylasTimeWindowPickerElementEventMap {
|
|
4565
4565
|
"timeChange": {
|
|
@@ -4996,7 +4996,7 @@ declare global {
|
|
|
4996
4996
|
"nylas-scheduling-method": HTMLNylasSchedulingMethodElement;
|
|
4997
4997
|
"nylas-select-event-type": HTMLNylasSelectEventTypeElement;
|
|
4998
4998
|
"nylas-selected-event-card": HTMLNylasSelectedEventCardElement;
|
|
4999
|
-
"nylas-specific-
|
|
4999
|
+
"nylas-specific-time-availability-picker": HTMLNylasSpecificTimeAvailabilityPickerElement;
|
|
5000
5000
|
"nylas-time-window-picker": HTMLNylasTimeWindowPickerElement;
|
|
5001
5001
|
"nylas-timeslot-interval": HTMLNylasTimeslotIntervalElement;
|
|
5002
5002
|
"nylas-timeslot-picker": HTMLNylasTimeslotPickerElement;
|
|
@@ -7768,7 +7768,7 @@ declare namespace LocalJSX {
|
|
|
7768
7768
|
*/
|
|
7769
7769
|
"themeConfig"?: any;
|
|
7770
7770
|
}
|
|
7771
|
-
interface
|
|
7771
|
+
interface NylasSpecificTimeAvailabilityPicker {
|
|
7772
7772
|
/**
|
|
7773
7773
|
* @standalone The name of the specific date availability picker.
|
|
7774
7774
|
*/
|
|
@@ -7776,7 +7776,7 @@ declare namespace LocalJSX {
|
|
|
7776
7776
|
/**
|
|
7777
7777
|
* The event is fired when the specific date open hours change.
|
|
7778
7778
|
*/
|
|
7779
|
-
"onValueChanged"?: (event:
|
|
7779
|
+
"onValueChanged"?: (event: NylasSpecificTimeAvailabilityPickerCustomEvent<{
|
|
7780
7780
|
value: string;
|
|
7781
7781
|
name: string;
|
|
7782
7782
|
}>) => void;
|
|
@@ -7791,7 +7791,7 @@ declare namespace LocalJSX {
|
|
|
7791
7791
|
/**
|
|
7792
7792
|
* @standalone The specific date open hours.
|
|
7793
7793
|
*/
|
|
7794
|
-
"
|
|
7794
|
+
"specificTimesAvailability"?: SpecificTimeAvailability[];
|
|
7795
7795
|
/**
|
|
7796
7796
|
* @standalone The theme configuration.
|
|
7797
7797
|
*/
|
|
@@ -8357,7 +8357,7 @@ declare namespace LocalJSX {
|
|
|
8357
8357
|
"nylas-scheduling-method": NylasSchedulingMethod;
|
|
8358
8358
|
"nylas-select-event-type": NylasSelectEventType;
|
|
8359
8359
|
"nylas-selected-event-card": NylasSelectedEventCard;
|
|
8360
|
-
"nylas-specific-
|
|
8360
|
+
"nylas-specific-time-availability-picker": NylasSpecificTimeAvailabilityPicker;
|
|
8361
8361
|
"nylas-time-window-picker": NylasTimeWindowPicker;
|
|
8362
8362
|
"nylas-timeslot-interval": NylasTimeslotInterval;
|
|
8363
8363
|
"nylas-timeslot-picker": NylasTimeslotPicker;
|
|
@@ -8724,7 +8724,7 @@ declare module "@stencil/core" {
|
|
|
8724
8724
|
* The `nylas-selected-event-card` component is a UI component that displays the selected event card.
|
|
8725
8725
|
*/
|
|
8726
8726
|
"nylas-selected-event-card": LocalJSX.NylasSelectedEventCard & JSXBase.HTMLAttributes<HTMLNylasSelectedEventCardElement>;
|
|
8727
|
-
"nylas-specific-
|
|
8727
|
+
"nylas-specific-time-availability-picker": LocalJSX.NylasSpecificTimeAvailabilityPicker & JSXBase.HTMLAttributes<HTMLNylasSpecificTimeAvailabilityPickerElement>;
|
|
8728
8728
|
/**
|
|
8729
8729
|
* The `nylas-time-window-picker` component is a time picker that can be used to select a time.
|
|
8730
8730
|
*/
|
|
@@ -13,7 +13,7 @@ export interface OpenHours {
|
|
|
13
13
|
start: string;
|
|
14
14
|
end: string;
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
16
|
+
export interface SpecificTimeAvailability {
|
|
17
17
|
date: string;
|
|
18
18
|
start: string;
|
|
19
19
|
end: string;
|
|
@@ -184,7 +184,7 @@ export interface Participant {
|
|
|
184
184
|
is_organizer?: boolean;
|
|
185
185
|
availability?: ParticipantAvailability;
|
|
186
186
|
booking?: ParticipantBooking;
|
|
187
|
-
|
|
187
|
+
specific_time_availability?: SpecificTimeAvailability[];
|
|
188
188
|
timezone?: string;
|
|
189
189
|
}
|
|
190
190
|
export interface EventReminder {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nylas/web-elements",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Nylas Web Elements",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"rrule": "2.8.1",
|
|
40
40
|
"sanitize-html": "^2.13.0",
|
|
41
41
|
"sortablejs": "^1.15.6",
|
|
42
|
-
"@nylas/core": "^1.
|
|
42
|
+
"@nylas/core": "^1.2.0",
|
|
43
43
|
"@nylas/identity": "^3.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|