@meetelise/chat 1.20.247 → 1.20.248
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/package.json
CHANGED
package/public/dist/index.js
CHANGED
|
@@ -238,7 +238,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
238
238
|
.dayNumber:is(.differentMonth, .past, .noAvailabilities) {
|
|
239
239
|
opacity: 30%;
|
|
240
240
|
}
|
|
241
|
-
`,Vt([ue({attribute:"month",type:String})],Qt.prototype,"defaultMonth",void 0),Vt([ue({attribute:"year",type:Number})],Qt.prototype,"defaultYear",void 0),Vt([ue({attribute:!1})],Qt.prototype,"availabilities",void 0),Vt([ue({attribute:!1})],Qt.prototype,"selectedDate",null),Vt([le()],Qt.prototype,"monthShown",null),Vt([le()],Qt.prototype,"yearShown",void 0),Qt=Vt([ae("date-picker")],Qt);const Kt=(e,t)=>{const n=[];for(let i=0;i<t.length;i+=e)n.push(t.slice(i,i+e));return n};var Xt=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const Yt=(e,t)=>e.reduce((function(e,t){return e[t.displayTime]=t,e}),{})[t];let $t=class extends re{constructor(){super(...arguments),this.options=[],this.selectedDateExists=!1}get selectedTime(){return this.selected}render(){var e
|
|
241
|
+
`,Vt([ue({attribute:"month",type:String})],Qt.prototype,"defaultMonth",void 0),Vt([ue({attribute:"year",type:Number})],Qt.prototype,"defaultYear",void 0),Vt([ue({attribute:!1})],Qt.prototype,"availabilities",void 0),Vt([ue({attribute:!1})],Qt.prototype,"selectedDate",null),Vt([le()],Qt.prototype,"monthShown",null),Vt([le()],Qt.prototype,"yearShown",void 0),Qt=Vt([ae("date-picker")],Qt);const Kt=(e,t)=>{const n=[];for(let i=0;i<t.length;i+=e)n.push(t.slice(i,i+e));return n};var Xt=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const Yt=(e,t)=>e.reduce((function(e,t){return e[t.displayTime]=t,e}),{})[t];let $t=class extends re{constructor(){super(...arguments),this.options=[],this.selectedDateExists=!1}get selectedTime(){return this.selected}render(){var e;return 1!==this.options.length||this.selected||(this.selected=Yt(this.options,this.options[0].displayTime),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),(null===(e=this.options)||void 0===e?void 0:e.length)?U`
|
|
242
242
|
<div>
|
|
243
243
|
<div
|
|
244
244
|
id="optionContainer"
|
|
@@ -113,12 +113,14 @@ export class TimePicker extends LitElement {
|
|
|
113
113
|
`;
|
|
114
114
|
|
|
115
115
|
render(): TemplateResult {
|
|
116
|
-
if (this.options
|
|
117
|
-
// default select the only option (if just one option)
|
|
116
|
+
if (this.options.length === 1 && !this.selected) {
|
|
118
117
|
this.selected = getDateWithTimezoneOffset(
|
|
119
118
|
this.options,
|
|
120
119
|
this.options[0].displayTime
|
|
121
120
|
);
|
|
121
|
+
this.dispatchEvent(
|
|
122
|
+
new Event("change", { bubbles: true, composed: true })
|
|
123
|
+
);
|
|
122
124
|
}
|
|
123
125
|
return this.options?.length
|
|
124
126
|
? html`
|