@meetelise/chat 1.20.38 → 1.20.39
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
|
@@ -234,7 +234,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
234
234
|
.dayNumber:is(.differentMonth, .past, .noAvailabilities) {
|
|
235
235
|
opacity: 30%;
|
|
236
236
|
}
|
|
237
|
-
`,Bt([ae({attribute:"month",type:String})],jt.prototype,"defaultMonth",void 0),Bt([ae({attribute:"year",type:Number})],jt.prototype,"defaultYear",void 0),Bt([ae({attribute:!1})],jt.prototype,"availabilities",void 0),Bt([ae({attribute:!1})],jt.prototype,"selectedDate",null),Bt([se()],jt.prototype,"monthShown",null),Bt([se()],jt.prototype,"yearShown",void 0),jt=Bt([re("date-picker")],jt);const Ht=(e,t)=>{const n=[];for(let i=0;i<t.length;i+=e)n.push(t.slice(i,i+e));return n};var Wt=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 Gt=(e,t)=>e.reduce((function(e,t){return e[t.displayTime]=t,e}),{})[t];let $t=class extends ne{constructor(){super(...arguments),this.options=[],this.selectedDateExists=!1,this.horizontal=!1}get selectedTime(){return this.selected}render(){var e;return(null===(e=this.options)||void 0===e?void 0:e.length)?D`
|
|
237
|
+
`,Bt([ae({attribute:"month",type:String})],jt.prototype,"defaultMonth",void 0),Bt([ae({attribute:"year",type:Number})],jt.prototype,"defaultYear",void 0),Bt([ae({attribute:!1})],jt.prototype,"availabilities",void 0),Bt([ae({attribute:!1})],jt.prototype,"selectedDate",null),Bt([se()],jt.prototype,"monthShown",null),Bt([se()],jt.prototype,"yearShown",void 0),jt=Bt([re("date-picker")],jt);const Ht=(e,t)=>{const n=[];for(let i=0;i<t.length;i+=e)n.push(t.slice(i,i+e));return n};var Wt=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 Gt=(e,t)=>e.reduce((function(e,t){return e[t.displayTime]=t,e}),{})[t];let $t=class extends ne{constructor(){super(...arguments),this.options=[],this.selectedDateExists=!1,this.horizontal=!1}get selectedTime(){return this.selected}render(){var e,t;return 1===(null===(e=this.options)||void 0===e?void 0:e.length)&&(this.selected=Gt(this.options,this.options[0].displayTime)),(null===(t=this.options)||void 0===t?void 0:t.length)?D`
|
|
238
238
|
<div
|
|
239
239
|
id="optionContainer"
|
|
240
240
|
class=${this.horizontal?"horizontal":""}
|
|
@@ -252,7 +252,9 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
252
252
|
id="noAvailabilityText"
|
|
253
253
|
class=${this.horizontal?"horizontal":""}
|
|
254
254
|
>
|
|
255
|
-
${this.selectedDateExists?D`<p>No available appointments for this day</p>`:D`<p>
|
|
255
|
+
${this.selectedDateExists?D`<p>No available appointments for this day</p>`:D`<p>
|
|
256
|
+
Please select a tour type to see available dates/times
|
|
257
|
+
</p>`}
|
|
256
258
|
</div>`}};$t.styles=a`
|
|
257
259
|
* {
|
|
258
260
|
box-sizing: border-box;
|
|
@@ -108,7 +108,15 @@ export class TimePicker extends LitElement {
|
|
|
108
108
|
margin-left: 0;
|
|
109
109
|
}
|
|
110
110
|
`;
|
|
111
|
+
|
|
111
112
|
render(): TemplateResult {
|
|
113
|
+
if (this.options?.length === 1) {
|
|
114
|
+
// default select the only option (if just one option)
|
|
115
|
+
this.selected = getDateWithTimezoneOffset(
|
|
116
|
+
this.options,
|
|
117
|
+
this.options[0].displayTime
|
|
118
|
+
);
|
|
119
|
+
}
|
|
112
120
|
return this.options?.length
|
|
113
121
|
? html`
|
|
114
122
|
<div
|
|
@@ -162,7 +170,9 @@ export class TimePicker extends LitElement {
|
|
|
162
170
|
>
|
|
163
171
|
${this.selectedDateExists
|
|
164
172
|
? html`<p>No available appointments for this day</p>`
|
|
165
|
-
: html`<p>
|
|
173
|
+
: html`<p>
|
|
174
|
+
Please select a tour type to see available dates/times
|
|
175
|
+
</p>`}
|
|
166
176
|
</div>`;
|
|
167
177
|
}
|
|
168
178
|
}
|