@glatam/calendar-ui 1.0.4 → 1.0.5
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/README.md +5 -1
- package/dist/glatam-calendar-mini.d.ts +7 -0
- package/dist/glatam-calendar-mini.d.ts.map +1 -1
- package/dist/glatam-calendar.cjs +106 -39
- package/dist/glatam-calendar.js +344 -254
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -38,7 +38,11 @@ The primary calendar component displaying the full grid.
|
|
|
38
38
|
|
|
39
39
|
## ⚙️ 2. API Reference: `<glatam-calendar-mini>`
|
|
40
40
|
|
|
41
|
-
The inline checkout popup calendar component.
|
|
41
|
+
The inline checkout popup calendar component for compact booking dropdowns.
|
|
42
|
+
|
|
43
|
+
### New Features in `v1.0.5`:
|
|
44
|
+
- **Interactive Month Navigation**: Includes localized Month & Year header display with `<` and `>` control buttons.
|
|
45
|
+
- **Mobile Touch & Swipe Support**: Native touch swipe gestures (`swipe left` for next month, `swipe right` for previous month) on mobile screens.
|
|
42
46
|
|
|
43
47
|
### Properties and Attributes (Props)
|
|
44
48
|
|
|
@@ -26,6 +26,13 @@ export declare class GlatamCalendarMini extends LitElement {
|
|
|
26
26
|
private activeDate;
|
|
27
27
|
private dropdownOpen;
|
|
28
28
|
private dropdownSelectedDateString;
|
|
29
|
+
private touchStartX;
|
|
30
|
+
private touchStartY;
|
|
31
|
+
private handlePrevMonth;
|
|
32
|
+
private handleNextMonth;
|
|
33
|
+
private handleTouchStart;
|
|
34
|
+
private handleTouchEnd;
|
|
35
|
+
private getFormattedMonthTitle;
|
|
29
36
|
private handleDropdownDaySelect;
|
|
30
37
|
private selectDropdownSlot;
|
|
31
38
|
render(): import('lit-html').TemplateResult<1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glatam-calendar-mini.d.ts","sourceRoot":"","sources":["../src/glatam-calendar-mini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,EAGL,YAAY,EACZ,QAAQ,EACT,MAAM,uBAAuB,CAAC;AAK/B,OAAO,uBAAuB,CAAC;AAE/B,qBACa,kBAAmB,SAAQ,UAAU;IAChD,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"glatam-calendar-mini.d.ts","sourceRoot":"","sources":["../src/glatam-calendar-mini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,EAGL,YAAY,EACZ,QAAQ,EACT,MAAM,uBAAuB,CAAC;AAK/B,OAAO,uBAAuB,CAAC;AAE/B,qBACa,kBAAmB,SAAQ,UAAU;IAChD,MAAM,CAAC,MAAM,4BAsDX;IAE0B,IAAI,SAAW;IACf,MAAM,SAAQ;IACd,cAAc,SAAK;IACpB,KAAK,EAAE,YAAY,EAAE,CAAM;IAC1B,aAAa,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAQ;IACjE,IAAI,SAAY;IAC/B,YAAY,SAAoB;IAA6B,cAAc,SAAW;IACtF,OAAO,SAAM;IAA6B,OAAO,SAAM;IACtD,oBAAoB,UAAQ;IACzB,aAAa,EAAE,CAAC,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC,GAAG,IAAI,CAAQ;IACzF,KAAK,EAAE,QAAQ,EAAE,CAM1C;IAEO,OAAO,CAAC,UAAU,CAAc;IAChC,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,0BAA0B,CAAM;IAEjD,OAAO,CAAC,WAAW,CAAK;IACxB,OAAO,CAAC,WAAW,CAAK;IAExB,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,gBAAgB;IAOxB,OAAO,CAAC,cAAc;IAiBtB,OAAO,CAAC,sBAAsB;IAK9B,OAAO,CAAC,uBAAuB;IAI/B,OAAO,CAAC,kBAAkB;IAc1B,MAAM;CAiGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAAG,sBAAsB,EAAE,kBAAkB,CAAC;KAAE;CAChF"}
|
package/dist/glatam-calendar.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("lit"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("lit"),i=require("lit/decorators.js"),y=require("@glatam/calendar-core"),$=require("lit/directives/class-map.js"),M=s.css`
|
|
2
2
|
:host {
|
|
3
3
|
/* Fonts */
|
|
4
4
|
--glatam-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
@@ -342,10 +342,10 @@
|
|
|
342
342
|
min-width: 32px;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
`;function k(d,t,e){if(t===e)return 0;const a=(r,
|
|
345
|
+
`;function k(d,t,e){if(t===e)return 0;const a=(r,l)=>{const o={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};l!=="local"&&(o.timeZone=l);const p=new Intl.DateTimeFormat("en-US",o).formatToParts(r),n=new Map(p.map(u=>[u.type,u.value])),h=Number(n.get("hour")),m=h===24?0:h;return new Date(Number(n.get("year")),Number(n.get("month"))-1,Number(n.get("day")),m,Number(n.get("minute")),Number(n.get("second")))};try{const r=a(d,t);return(a(d,e).getTime()-r.getTime())/(60*1e3)}catch{return 0}}function R(d,t){if(t===0)return{start:d.start,end:d.end,dayShift:0};const e=n=>{const[h,m]=n.split(":").map(Number);return h*60+m},a=n=>{let h=n%1440;h<0&&(h+=1440);const m=String(Math.floor(h/60)).padStart(2,"0"),u=String(h%60).padStart(2,"0");return`${m}:${u}`},r=e(d.start),l=e(d.end),o=r+t,c=l+t;let p=0;return o<0?p=-1:o>=1440&&(p=1),{start:a(o),end:a(c),dayShift:p}}var E=Object.defineProperty,z=Object.getOwnPropertyDescriptor,v=(d,t,e,a)=>{for(var r=a>1?void 0:a?z(t,e):t,l=d.length-1,o;l>=0;l--)(o=d[l])&&(r=(a?o(t,e,r):o(r))||r);return a&&r&&E(t,e,r),r};exports.GlatamCalendarMonthView=class extends s.LitElement{constructor(){super(...arguments),this.days=[],this.locale="es",this.startOfWeekDay=0,this.selectedDates=[],this.role="provider",this.size="medium",this.minDate="",this.maxDate="",this.showNeighboringMonth=!0,this.tileClassName=null}getWeekdayNames(){const t=[],e=new Date(2026,6,12+this.startOfWeekDay),a=new Intl.DateTimeFormat(this.locale,{weekday:"short"});for(let r=0;r<7;r++)t.push(a.format(e)),e.setDate(e.getDate()+1);return t}handleDayClick(t){const e=this.minDate&&t.dateString<this.minDate||this.maxDate&&t.dateString>this.maxDate;this.role==="buyer"&&(t.isBlocked||e)||this.dispatchEvent(new CustomEvent("day-select",{detail:{dateString:t.dateString,isBlocked:t.isBlocked},bubbles:!0,composed:!0}))}render(){const t=this.getWeekdayNames();return s.html`
|
|
346
346
|
${t.map(e=>s.html`<div class="weekday">${e}</div>`)}
|
|
347
347
|
|
|
348
|
-
${this.days.map(e=>{var p;if(!e.isCurrentMonth&&!this.showNeighboringMonth)return s.html`<div class="day-cell empty"></div>`;const a=e.dateString===new Date().toISOString().split("T")[0],r=this.selectedDates.includes(e.dateString),
|
|
348
|
+
${this.days.map(e=>{var p;if(!e.isCurrentMonth&&!this.showNeighboringMonth)return s.html`<div class="day-cell empty"></div>`;const a=e.dateString===new Date().toISOString().split("T")[0],r=this.selectedDates.includes(e.dateString),l=e.slots.filter(n=>n.isBlocked),o=this.minDate&&e.dateString<this.minDate||this.maxDate&&e.dateString>this.maxDate,c=this.tileClassName?this.tileClassName({date:e.date,dateString:e.dateString}):"";return s.html`
|
|
349
349
|
<div
|
|
350
350
|
class=${$.classMap({"day-cell":!0,padding:!e.isCurrentMonth,blocked:e.isBlocked,today:a,selected:r,disabled:!!o,[c]:!!c})}
|
|
351
351
|
part="day-cell ${c}"
|
|
@@ -354,12 +354,12 @@
|
|
|
354
354
|
<div class="day-number">${e.dayNumber}</div>
|
|
355
355
|
|
|
356
356
|
<div class="slot-indicator">
|
|
357
|
-
${e.isBlocked?s.html`<div class="badge blocked-day">${((p=e.rule)==null?void 0:p.description)||"Bloqueado"}</div>`:
|
|
358
|
-
<div class="badge blocked-slot" title=${((
|
|
359
|
-
🚫 ${((
|
|
357
|
+
${e.isBlocked?s.html`<div class="badge blocked-day">${((p=e.rule)==null?void 0:p.description)||"Bloqueado"}</div>`:l.slice(0,2).map(n=>{var h,m;return s.html`
|
|
358
|
+
<div class="badge blocked-slot" title=${((h=n.rule)==null?void 0:h.description)||""}>
|
|
359
|
+
🚫 ${((m=n.rule)==null?void 0:m.description)||n.start}
|
|
360
360
|
</div>
|
|
361
361
|
`})}
|
|
362
|
-
${!e.isBlocked&&
|
|
362
|
+
${!e.isBlocked&&l.length>2?s.html`<div style="text-align: center; font-size: 0.65rem; color: var(--glatam-text-secondary);">+${l.length-2} tareas</div>`:""}
|
|
363
363
|
</div>
|
|
364
364
|
</div>
|
|
365
365
|
`})}
|
|
@@ -395,25 +395,25 @@
|
|
|
395
395
|
.slot-indicator { display: none; }
|
|
396
396
|
.day-number { margin-bottom: 0; font-size: 0.8rem; }
|
|
397
397
|
}
|
|
398
|
-
`;v([
|
|
398
|
+
`;v([i.property({type:Array})],exports.GlatamCalendarMonthView.prototype,"days",2);v([i.property({type:String})],exports.GlatamCalendarMonthView.prototype,"locale",2);v([i.property({type:Number})],exports.GlatamCalendarMonthView.prototype,"startOfWeekDay",2);v([i.property({type:Array})],exports.GlatamCalendarMonthView.prototype,"selectedDates",2);v([i.property({type:String})],exports.GlatamCalendarMonthView.prototype,"role",2);v([i.property({type:String,reflect:!0})],exports.GlatamCalendarMonthView.prototype,"size",2);v([i.property({type:String})],exports.GlatamCalendarMonthView.prototype,"minDate",2);v([i.property({type:String})],exports.GlatamCalendarMonthView.prototype,"maxDate",2);v([i.property({type:Boolean})],exports.GlatamCalendarMonthView.prototype,"showNeighboringMonth",2);v([i.property({attribute:!1})],exports.GlatamCalendarMonthView.prototype,"tileClassName",2);exports.GlatamCalendarMonthView=v([i.customElement("glatam-calendar-month-view")],exports.GlatamCalendarMonthView);var T=Object.defineProperty,O=Object.getOwnPropertyDescriptor,x=(d,t,e,a)=>{for(var r=a>1?void 0:a?O(t,e):t,l=d.length-1,o;l>=0;l--)(o=d[l])&&(r=(a?o(t,e,r):o(r))||r);return a&&r&&T(t,e,r),r};exports.GlatamCalendarWeekView=class extends s.LitElement{constructor(){super(...arguments),this.days=[],this.slots=[],this.locale="es",this.selectedRange=null,this.role="provider",this.isDragging=!1,this.dragDayIndex=null,this.dragStartSlotIndex=null,this.dragEndSlotIndex=null,this.handleMouseUp=()=>{if(!this.isDragging||this.dragDayIndex===null||this.dragStartSlotIndex===null||this.dragEndSlotIndex===null){this.isDragging=!1;return}this.isDragging=!1;const t=Math.min(this.dragStartSlotIndex,this.dragEndSlotIndex),e=Math.max(this.dragStartSlotIndex,this.dragEndSlotIndex),a=this.days[this.dragDayIndex],r=a.slots.slice(t,e+1);r.some(l=>l.isBlocked)||this.dispatchEvent(new CustomEvent("range-select",{detail:{dateString:a.dateString,start:r[0].start,end:r[r.length-1].end},bubbles:!0,composed:!0})),this.dragDayIndex=null,this.dragStartSlotIndex=null,this.dragEndSlotIndex=null}}connectedCallback(){super.connectedCallback(),window.addEventListener("mouseup",this.handleMouseUp)}disconnectedCallback(){window.removeEventListener("mouseup",this.handleMouseUp),super.disconnectedCallback()}handleMouseDown(t,e,a){if(a){if(this.role==="buyer")return;this.dispatchEvent(new CustomEvent("slot-click",{detail:{dateString:this.days[t].dateString,slot:this.days[t].slots[e],isBlocked:!0},bubbles:!0,composed:!0}));return}this.isDragging=!0,this.dragDayIndex=t,this.dragStartSlotIndex=e,this.dragEndSlotIndex=e}handleMouseEnter(t,e,a){this.isDragging&&t===this.dragDayIndex&&!a&&(this.dragEndSlotIndex=e)}isSlotSelected(t,e){return!this.selectedRange||this.selectedRange.dateString!==t?!1:e.start>=this.selectedRange.start&&e.end<=this.selectedRange.end}isSlotDragSelecting(t,e){if(!this.isDragging||t!==this.dragDayIndex)return!1;const a=Math.min(this.dragStartSlotIndex,this.dragEndSlotIndex),r=Math.max(this.dragStartSlotIndex,this.dragEndSlotIndex);return e>=a&&e<=r}render(){const t=new Date().toISOString().split("T")[0];return s.html`
|
|
399
399
|
<div class="time-col">
|
|
400
400
|
<div class="header-cell">Hora</div>
|
|
401
401
|
${this.slots.map(e=>s.html`<div class="slot-cell time-slot-label">${e.start}</div>`)}
|
|
402
402
|
</div>
|
|
403
403
|
|
|
404
|
-
${this.days.map((e,a)=>{const r=e.dateString===t,
|
|
404
|
+
${this.days.map((e,a)=>{const r=e.dateString===t,l=new Intl.DateTimeFormat(this.locale,{weekday:"short"}).format(e.date);return s.html`
|
|
405
405
|
<div class="day-col">
|
|
406
406
|
<div class="header-cell ${r?"today":""}">
|
|
407
|
-
<div>${
|
|
407
|
+
<div>${l}</div>
|
|
408
408
|
<div class="day-num">${e.dayNumber}</div>
|
|
409
409
|
</div>
|
|
410
410
|
|
|
411
|
-
${e.slots.map((o,c)=>{var
|
|
411
|
+
${e.slots.map((o,c)=>{var m,u;const p=o.isBlocked,n=this.isSlotSelected(e.dateString,o),h=this.isSlotDragSelecting(a,c);return s.html`
|
|
412
412
|
<div
|
|
413
|
-
class=${$.classMap({"slot-cell":!0,available:!p,blocked:p,selected:n,"drag-selecting":
|
|
413
|
+
class=${$.classMap({"slot-cell":!0,available:!p,blocked:p,selected:n,"drag-selecting":h})}
|
|
414
414
|
@mousedown=${()=>this.handleMouseDown(a,c,p)}
|
|
415
415
|
@mouseenter=${()=>this.handleMouseEnter(a,c,p)}
|
|
416
|
-
title=${p&&((
|
|
416
|
+
title=${p&&((m=o.rule)!=null&&m.description)?o.rule.description:""}
|
|
417
417
|
>
|
|
418
418
|
${p?((u=o.rule)==null?void 0:u.description)||"Ocupado":n?"Reservado":""}
|
|
419
419
|
</div>
|
|
@@ -472,7 +472,7 @@
|
|
|
472
472
|
}
|
|
473
473
|
.slot-cell.selected { background-color: var(--glatam-selection-bg); border-left: 3px solid var(--glatam-selection-border); }
|
|
474
474
|
.slot-cell.drag-selecting { background-color: var(--glatam-primary-light); }
|
|
475
|
-
`;x([
|
|
475
|
+
`;x([i.property({type:Array})],exports.GlatamCalendarWeekView.prototype,"days",2);x([i.property({type:Array})],exports.GlatamCalendarWeekView.prototype,"slots",2);x([i.property({type:String})],exports.GlatamCalendarWeekView.prototype,"locale",2);x([i.property({type:Object})],exports.GlatamCalendarWeekView.prototype,"selectedRange",2);x([i.property({type:String})],exports.GlatamCalendarWeekView.prototype,"role",2);x([i.state()],exports.GlatamCalendarWeekView.prototype,"isDragging",2);x([i.state()],exports.GlatamCalendarWeekView.prototype,"dragDayIndex",2);x([i.state()],exports.GlatamCalendarWeekView.prototype,"dragStartSlotIndex",2);x([i.state()],exports.GlatamCalendarWeekView.prototype,"dragEndSlotIndex",2);exports.GlatamCalendarWeekView=x([i.customElement("glatam-calendar-week-view")],exports.GlatamCalendarWeekView);var I=Object.defineProperty,V=Object.getOwnPropertyDescriptor,w=(d,t,e,a)=>{for(var r=a>1?void 0:a?V(t,e):t,l=d.length-1,o;l>=0;l--)(o=d[l])&&(r=(a?o(t,e,r):o(r))||r);return a&&r&&I(t,e,r),r};exports.GlatamCalendarDayView=class extends s.LitElement{constructor(){super(...arguments),this.day=null,this.slots=[],this.locale="es",this.selectedRange=null,this.role="provider",this.isDragging=!1,this.dragStartSlotIndex=null,this.dragEndSlotIndex=null,this.handleMouseUp=()=>{if(!this.isDragging||!this.day||this.dragStartSlotIndex===null||this.dragEndSlotIndex===null){this.isDragging=!1;return}this.isDragging=!1;const t=Math.min(this.dragStartSlotIndex,this.dragEndSlotIndex),e=Math.max(this.dragStartSlotIndex,this.dragEndSlotIndex),a=this.day.slots.slice(t,e+1);a.some(r=>r.isBlocked)||this.dispatchEvent(new CustomEvent("range-select",{detail:{dateString:this.day.dateString,start:a[0].start,end:a[a.length-1].end},bubbles:!0,composed:!0})),this.dragStartSlotIndex=null,this.dragEndSlotIndex=null}}connectedCallback(){super.connectedCallback(),window.addEventListener("mouseup",this.handleMouseUp)}disconnectedCallback(){window.removeEventListener("mouseup",this.handleMouseUp),super.disconnectedCallback()}handleMouseDown(t,e){if(e&&this.day){if(this.role==="buyer")return;this.dispatchEvent(new CustomEvent("slot-click",{detail:{dateString:this.day.dateString,slot:this.day.slots[t],isBlocked:!0},bubbles:!0,composed:!0}));return}this.isDragging=!0,this.dragStartSlotIndex=t,this.dragEndSlotIndex=t}handleMouseEnter(t,e){this.isDragging&&!e&&(this.dragEndSlotIndex=t)}isSlotSelected(t){return!this.day||!this.selectedRange||this.selectedRange.dateString!==this.day.dateString?!1:t.start>=this.selectedRange.start&&t.end<=this.selectedRange.end}isSlotDragSelecting(t){if(!this.isDragging)return!1;const e=Math.min(this.dragStartSlotIndex,this.dragEndSlotIndex),a=Math.max(this.dragStartSlotIndex,this.dragEndSlotIndex);return t>=e&&t<=a}render(){if(!this.day)return s.html`<div>Cargando...</div>`;const t=this.day.dateString===new Date().toISOString().split("T")[0],e=new Intl.DateTimeFormat(this.locale,{weekday:"long",day:"numeric",month:"long"}).format(this.day.date);return s.html`
|
|
476
476
|
<div class="time-col">
|
|
477
477
|
<div class="header-cell">Hora</div>
|
|
478
478
|
${this.slots.map(a=>s.html`<div class="slot-cell time-slot-label">${a.start}</div>`)}
|
|
@@ -483,14 +483,14 @@
|
|
|
483
483
|
<div style="text-transform: capitalize;">${e}</div>
|
|
484
484
|
</div>
|
|
485
485
|
|
|
486
|
-
${this.day.slots.map((a,r)=>{var p,n;const
|
|
486
|
+
${this.day.slots.map((a,r)=>{var p,n;const l=a.isBlocked,o=this.isSlotSelected(a),c=this.isSlotDragSelecting(r);return s.html`
|
|
487
487
|
<div
|
|
488
|
-
class=${$.classMap({"slot-cell":!0,available:!
|
|
489
|
-
@mousedown=${()=>this.handleMouseDown(r,
|
|
490
|
-
@mouseenter=${()=>this.handleMouseEnter(r,
|
|
491
|
-
title=${
|
|
488
|
+
class=${$.classMap({"slot-cell":!0,available:!l,blocked:l,selected:o,"drag-selecting":c})}
|
|
489
|
+
@mousedown=${()=>this.handleMouseDown(r,l)}
|
|
490
|
+
@mouseenter=${()=>this.handleMouseEnter(r,l)}
|
|
491
|
+
title=${l&&((p=a.rule)!=null&&p.description)?a.rule.description:""}
|
|
492
492
|
>
|
|
493
|
-
${
|
|
493
|
+
${l?((n=a.rule)==null?void 0:n.description)||"Ocupado":o?"Reservado":""}
|
|
494
494
|
</div>
|
|
495
495
|
`})}
|
|
496
496
|
</div>
|
|
@@ -523,7 +523,7 @@
|
|
|
523
523
|
}
|
|
524
524
|
.slot-cell.selected { background-color: var(--glatam-selection-bg); border-left: 3px solid var(--glatam-selection-border); }
|
|
525
525
|
.slot-cell.drag-selecting { background-color: var(--glatam-primary-light); }
|
|
526
|
-
`;w([
|
|
526
|
+
`;w([i.property({type:Object})],exports.GlatamCalendarDayView.prototype,"day",2);w([i.property({type:Array})],exports.GlatamCalendarDayView.prototype,"slots",2);w([i.property({type:String})],exports.GlatamCalendarDayView.prototype,"locale",2);w([i.property({type:Object})],exports.GlatamCalendarDayView.prototype,"selectedRange",2);w([i.property({type:String})],exports.GlatamCalendarDayView.prototype,"role",2);w([i.state()],exports.GlatamCalendarDayView.prototype,"isDragging",2);w([i.state()],exports.GlatamCalendarDayView.prototype,"dragStartSlotIndex",2);w([i.state()],exports.GlatamCalendarDayView.prototype,"dragEndSlotIndex",2);exports.GlatamCalendarDayView=w([i.customElement("glatam-calendar-day-view")],exports.GlatamCalendarDayView);const B=s.css`
|
|
527
527
|
dialog {
|
|
528
528
|
background: transparent;
|
|
529
529
|
border: none;
|
|
@@ -678,7 +678,7 @@
|
|
|
678
678
|
.btn-danger:hover {
|
|
679
679
|
background: rgba(255, 69, 58, 0.18);
|
|
680
680
|
}
|
|
681
|
-
`;var j=Object.defineProperty,
|
|
681
|
+
`;var j=Object.defineProperty,N=Object.getOwnPropertyDescriptor,f=(d,t,e,a)=>{for(var r=a>1?void 0:a?N(t,e):t,l=d.length-1,o;l>=0;l--)(o=d[l])&&(r=(a?o(t,e,r):o(r))||r);return a&&r&&j(t,e,r),r};exports.GlatamCalendarModal=class extends s.LitElement{constructor(){super(...arguments),this.open=!1,this.dateString="",this.startTime="",this.endTime="",this.isRange=!1,this.existingRule=null,this.description="",this.blockAllDay=!0,this.isRecurring=!1,this.selectedDays=[]}willUpdate(t){t.has("open")&&this.open&&(this.existingRule?(this.description="Bloqueo",this.blockAllDay=!this.existingRule.slots||this.existingRule.slots.length===0,this.isRecurring=this.existingRule.type==="weekly",this.selectedDays=this.existingRule.daysOfWeek||[]):(this.description="",this.blockAllDay=!this.isRange,this.isRecurring=!1,this.selectedDays=[new Date(this.dateString+"T00:00:00").getDay()]))}updated(t){var e;if(t.has("open")){const a=(e=this.shadowRoot)==null?void 0:e.getElementById("booking-dialog");a&&(this.open?a.open||a.showModal():a.open&&a.close())}}handleDialogClose(){this.open&&this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}toggleDay(t){const e=this.selectedDays.indexOf(t);this.selectedDays=e>-1?this.selectedDays.filter(a=>a!==t):[...this.selectedDays,t]}handleSave(){const t={title:this.description||"Bloqueo",blockAllDay:this.blockAllDay,isRecurring:this.isRecurring,selectedDays:this.selectedDays,dateString:this.dateString,startTime:this.startTime,endTime:this.endTime};this.dispatchEvent(new CustomEvent("save-rule",{detail:t,bubbles:!0,composed:!0}))}handleDelete(){this.existingRule&&this.dispatchEvent(new CustomEvent("delete-rule",{detail:{id:this.existingRule.id},bubbles:!0,composed:!0}))}render(){const t=["D","L","M","M","J","V","S"],e=this.isRange?`${this.dateString} (${this.startTime} - ${this.endTime})`:this.dateString;return s.html`
|
|
682
682
|
<dialog id="booking-dialog" @close=${this.handleDialogClose}>
|
|
683
683
|
<div class="modal-content">
|
|
684
684
|
<h3>${this.existingRule?"Gestionar Bloqueo":"Crear Bloqueo"}</h3>
|
|
@@ -744,7 +744,7 @@
|
|
|
744
744
|
</div>
|
|
745
745
|
</div>
|
|
746
746
|
</dialog>
|
|
747
|
-
`}};exports.GlatamCalendarModal.styles=B;f([
|
|
747
|
+
`}};exports.GlatamCalendarModal.styles=B;f([i.property({type:Boolean})],exports.GlatamCalendarModal.prototype,"open",2);f([i.property({type:String})],exports.GlatamCalendarModal.prototype,"dateString",2);f([i.property({type:String})],exports.GlatamCalendarModal.prototype,"startTime",2);f([i.property({type:String})],exports.GlatamCalendarModal.prototype,"endTime",2);f([i.property({type:Boolean})],exports.GlatamCalendarModal.prototype,"isRange",2);f([i.property({type:Object})],exports.GlatamCalendarModal.prototype,"existingRule",2);f([i.state()],exports.GlatamCalendarModal.prototype,"description",2);f([i.state()],exports.GlatamCalendarModal.prototype,"blockAllDay",2);f([i.state()],exports.GlatamCalendarModal.prototype,"isRecurring",2);f([i.state()],exports.GlatamCalendarModal.prototype,"selectedDays",2);exports.GlatamCalendarModal=f([i.customElement("glatam-calendar-modal")],exports.GlatamCalendarModal);var _=Object.defineProperty,P=Object.getOwnPropertyDescriptor,g=(d,t,e,a)=>{for(var r=a>1?void 0:a?P(t,e):t,l=d.length-1,o;l>=0;l--)(o=d[l])&&(r=(a?o(t,e,r):o(r))||r);return a&&r&&_(t,e,r),r};const W=[{start:"09:00",end:"10:00"},{start:"10:00",end:"11:00"},{start:"11:00",end:"12:00"},{start:"12:00",end:"13:00"},{start:"13:00",end:"14:00"},{start:"14:00",end:"15:00"},{start:"15:00",end:"16:00"},{start:"16:00",end:"17:00"},{start:"17:00",end:"18:00"}];exports.GlatamCalendar=class extends s.LitElement{constructor(){super(...arguments),this.role="provider",this.size="medium",this.view="month",this.locale="es",this.startOfWeekDay=0,this.rules=[],this.selectedDates=[],this.selectedRange=null,this.hostTimezone="America/Bogota",this.activeTimezone="local",this.slots=W,this.minDate="",this.maxDate="",this.showNeighboringMonth=!0,this.tileClassName=null,this.activeDate=new Date,this.localRules=[],this.darkMode=!1,this.modalOpen=!1,this.modalDateString="",this.modalStartTime="",this.modalEndTime="",this.modalIsRange=!1,this.modalExistingRule=null}firstUpdated(){this.darkMode=window.matchMedia("(prefers-color-scheme: dark)").matches,this.localRules=[...this.rules]}willUpdate(t){t.has("rules")&&(this.localRules=[...this.rules||[]])}updated(t){t.has("darkMode")&&this.classList.toggle("dark-mode",this.darkMode)}handlePrev(){const t=new Date(this.activeDate);this.view==="month"?t.setMonth(t.getMonth()-1):this.view==="week"?t.setDate(t.getDate()-7):t.setDate(t.getDate()-1),this.activeDate=t}handleNext(){const t=new Date(this.activeDate);this.view==="month"?t.setMonth(t.getMonth()+1):this.view==="week"?t.setDate(t.getDate()+7):t.setDate(t.getDate()+1),this.activeDate=t}getHeaderTitle(){const t=this.view==="month"?{month:"long",year:"numeric"}:this.view==="week"?{month:"short",year:"numeric"}:{day:"numeric",month:"long",year:"numeric"};return new Intl.DateTimeFormat(this.locale,t).format(this.activeDate)}handleDaySelect(t){const{dateString:e,isBlocked:a}=t.detail;this.role==="buyer"&&a||(this.activeDate=new Date(e+"T00:00:00"),this.view="day",this.dispatchEvent(new CustomEvent("date-selected",{detail:{dateString:e},bubbles:!0,composed:!0})))}handleRangeSelect(t){var S,D;const{dateString:e,start:a,end:r}=t.detail,l=this.activeTimezone==="local"?k(this.activeDate,this.hostTimezone,"local"):0,o=new Date().toISOString().split("T")[0],c=this.minDate||(this.role==="buyer"?o:"");if(this.role==="buyer"&&c&&e<c)return;const p=this.getDisplaySlots(l),n=p.findIndex(C=>C.start===a),h=p.findIndex(C=>C.end===r),m=((S=this.slots[n])==null?void 0:S.start)||a,u=((D=this.slots[h])==null?void 0:D.end)||r;if(this.role==="buyer"){this.selectedRange={dateString:e,start:a,end:r},this.dispatchEvent(new CustomEvent("booking-selected",{detail:{dateString:e,start:a,end:r,hostStart:m,hostEnd:u},bubbles:!0,composed:!0}));return}this.openModal(e,m,u,!0,null)}handleSlotClick(t){const{dateString:e,slot:a}=t.detail,r=new Date(e+"T00:00:00"),l=this.activeTimezone==="local"?k(this.activeDate,this.hostTimezone,"local"):0,o=new Date().toISOString().split("T")[0],c=this.minDate||(this.role==="buyer"?o:"");if(this.role==="buyer"&&(a.isBlocked||c&&e<c))return;const p=this.getDisplaySlots(l),n=p.findIndex(u=>u.start===a.start),h=this.slots[n]||a;if(this.role==="buyer"){this.selectedRange={dateString:e,start:a.start,end:a.end},this.dispatchEvent(new CustomEvent("booking-selected",{detail:{dateString:e,start:a.start,end:a.end,hostStart:h.start,hostEnd:h.end},bubbles:!0,composed:!0}));return}const m=this.localRules.find(u=>y.isTimeBlocked(r,h,[u]));this.openModal(e,h.start,h.end,!0,m||null)}handleBlockDayAction(){const t=y.formatISODate(this.activeDate),e=this.localRules.find(a=>y.isTimeBlocked(this.activeDate,void 0,[a]));this.openModal(t,"","",!1,e||null)}openModal(t,e,a,r,l){this.modalDateString=t,this.modalStartTime=e,this.modalEndTime=a,this.modalIsRange=r,this.modalExistingRule=l,this.modalOpen=!0}handleSaveRule(t){const e=t.detail,a=this.modalExistingRule?this.modalExistingRule.id:`rule-${Date.now()}`,r={id:a,type:e.isRecurring?"weekly":"date-range",slots:e.blockAllDay?void 0:[{start:e.startTime,end:e.endTime}],daysOfWeek:e.isRecurring?e.selectedDays:void 0,startDate:e.isRecurring?void 0:e.dateString,endDate:e.isRecurring?void 0:e.dateString,description:e.title};this.localRules=this.modalExistingRule?this.localRules.map(l=>l.id===a?r:l):[...this.localRules,r],this.modalOpen=!1,this.dispatchEvent(new CustomEvent("rules-changed",{detail:{rules:this.localRules},bubbles:!0,composed:!0}))}handleDeleteRule(t){this.localRules=this.localRules.filter(e=>e.id!==t.detail.id),this.modalOpen=!1,this.dispatchEvent(new CustomEvent("rules-changed",{detail:{rules:this.localRules},bubbles:!0,composed:!0}))}getDisplaySlots(t){return t===0?this.slots:this.slots.map(e=>{const a=R(e,t),r=a.dayShift>0?" (+1d)":a.dayShift<0?" (-1d)":"";return{start:a.start+r,end:a.end+r}})}render(){var p;const t=this.activeDate.getFullYear(),e=this.activeDate.getMonth(),a=y.isTimeBlocked(this.activeDate,void 0,this.localRules),r=this.activeTimezone==="local"?k(this.activeDate,this.hostTimezone,"local"):0,l=this.getDisplaySlots(r),o=n=>n.map(h=>({...h,slots:h.slots.map((m,u)=>{var S,D;return{...m,start:((S=l[u])==null?void 0:S.start)||m.start,end:((D=l[u])==null?void 0:D.end)||m.end}})})),c=((p=this.hostTimezone.split("/").pop())==null?void 0:p.replace("_"," "))||"Anfitrión";return s.html`
|
|
748
748
|
<div class="calendar-header">
|
|
749
749
|
<div class="nav-group">
|
|
750
750
|
<button class="btn" @click=${()=>this.activeDate=new Date}>Hoy</button>
|
|
@@ -774,7 +774,7 @@
|
|
|
774
774
|
</div>
|
|
775
775
|
|
|
776
776
|
<div class="calendar-body">
|
|
777
|
-
${this.view==="month"?s.html`<glatam-calendar-month-view .days=${y.generateMonthDays(t,e,this.localRules,this.slots,this.startOfWeekDay)} .locale=${this.locale} .startOfWeekDay=${this.startOfWeekDay} .role=${this.role} .size=${this.size} .minDate=${this.minDate||(this.role==="buyer"?new Date().toISOString().split("T")[0]:"")} .maxDate=${this.maxDate} .showNeighboringMonth=${this.showNeighboringMonth} .tileClassName=${this.tileClassName} @day-select=${this.handleDaySelect}></glatam-calendar-month-view>`:this.view==="week"?s.html`<glatam-calendar-week-view .days=${o(y.generateWeekDays(this.activeDate,this.localRules,this.slots,this.startOfWeekDay))} .slots=${
|
|
777
|
+
${this.view==="month"?s.html`<glatam-calendar-month-view .days=${y.generateMonthDays(t,e,this.localRules,this.slots,this.startOfWeekDay)} .locale=${this.locale} .startOfWeekDay=${this.startOfWeekDay} .role=${this.role} .size=${this.size} .minDate=${this.minDate||(this.role==="buyer"?new Date().toISOString().split("T")[0]:"")} .maxDate=${this.maxDate} .showNeighboringMonth=${this.showNeighboringMonth} .tileClassName=${this.tileClassName} @day-select=${this.handleDaySelect}></glatam-calendar-month-view>`:this.view==="week"?s.html`<glatam-calendar-week-view .days=${o(y.generateWeekDays(this.activeDate,this.localRules,this.slots,this.startOfWeekDay))} .slots=${l} .locale=${this.locale} .selectedRange=${this.selectedRange} .role=${this.role} @range-select=${this.handleRangeSelect} @slot-click=${this.handleSlotClick}></glatam-calendar-week-view>`:s.html`<glatam-calendar-day-view .day=${o(y.generateWeekDays(this.activeDate,this.localRules,this.slots,this.startOfWeekDay)).find(n=>n.dateString===y.formatISODate(this.activeDate))||null} .slots=${l} .locale=${this.locale} .selectedRange=${this.selectedRange} .role=${this.role} @range-select=${this.handleRangeSelect} @slot-click=${this.handleSlotClick}></glatam-calendar-day-view>`}
|
|
778
778
|
</div>
|
|
779
779
|
|
|
780
780
|
<glatam-calendar-modal
|
|
@@ -782,7 +782,7 @@
|
|
|
782
782
|
.isRange=${this.modalIsRange} .existingRule=${this.modalExistingRule} @save-rule=${this.handleSaveRule}
|
|
783
783
|
@delete-rule=${this.handleDeleteRule} @close=${()=>this.modalOpen=!1}
|
|
784
784
|
></glatam-calendar-modal>
|
|
785
|
-
`}};exports.GlatamCalendar.styles=[M,G];
|
|
785
|
+
`}};exports.GlatamCalendar.styles=[M,G];g([i.property({type:String})],exports.GlatamCalendar.prototype,"role",2);g([i.property({type:String,reflect:!0})],exports.GlatamCalendar.prototype,"size",2);g([i.property({type:String})],exports.GlatamCalendar.prototype,"view",2);g([i.property({type:String})],exports.GlatamCalendar.prototype,"locale",2);g([i.property({type:Number})],exports.GlatamCalendar.prototype,"startOfWeekDay",2);g([i.property({type:Array})],exports.GlatamCalendar.prototype,"rules",2);g([i.property({type:Array})],exports.GlatamCalendar.prototype,"selectedDates",2);g([i.property({type:Object})],exports.GlatamCalendar.prototype,"selectedRange",2);g([i.property({type:String})],exports.GlatamCalendar.prototype,"hostTimezone",2);g([i.property({type:String})],exports.GlatamCalendar.prototype,"activeTimezone",2);g([i.property({type:Array})],exports.GlatamCalendar.prototype,"slots",2);g([i.property({type:String})],exports.GlatamCalendar.prototype,"minDate",2);g([i.property({type:String})],exports.GlatamCalendar.prototype,"maxDate",2);g([i.property({type:Boolean})],exports.GlatamCalendar.prototype,"showNeighboringMonth",2);g([i.property({attribute:!1})],exports.GlatamCalendar.prototype,"tileClassName",2);g([i.state()],exports.GlatamCalendar.prototype,"activeDate",2);g([i.state()],exports.GlatamCalendar.prototype,"localRules",2);g([i.state()],exports.GlatamCalendar.prototype,"darkMode",2);g([i.state()],exports.GlatamCalendar.prototype,"modalOpen",2);g([i.state()],exports.GlatamCalendar.prototype,"modalDateString",2);g([i.state()],exports.GlatamCalendar.prototype,"modalStartTime",2);g([i.state()],exports.GlatamCalendar.prototype,"modalEndTime",2);g([i.state()],exports.GlatamCalendar.prototype,"modalIsRange",2);g([i.state()],exports.GlatamCalendar.prototype,"modalExistingRule",2);exports.GlatamCalendar=g([i.customElement("glatam-calendar")],exports.GlatamCalendar);var A=Object.defineProperty,L=Object.getOwnPropertyDescriptor,b=(d,t,e,a)=>{for(var r=a>1?void 0:a?L(t,e):t,l=d.length-1,o;l>=0;l--)(o=d[l])&&(r=(a?o(t,e,r):o(r))||r);return a&&r&&A(t,e,r),r};exports.GlatamCalendarMini=class extends s.LitElement{constructor(){super(...arguments),this.role="buyer",this.locale="es",this.startOfWeekDay=0,this.rules=[],this.selectedRange=null,this.size="medium",this.hostTimezone="America/Bogota",this.activeTimezone="local",this.minDate="",this.maxDate="",this.showNeighboringMonth=!0,this.tileClassName=null,this.slots=[{start:"09:00",end:"10:00"},{start:"10:00",end:"11:00"},{start:"11:00",end:"12:00"},{start:"12:00",end:"13:00"},{start:"13:00",end:"14:00"},{start:"14:00",end:"15:00"},{start:"15:00",end:"16:00"},{start:"16:00",end:"17:00"},{start:"17:00",end:"18:00"}],this.activeDate=new Date,this.dropdownOpen=!1,this.dropdownSelectedDateString="",this.touchStartX=0,this.touchStartY=0}handlePrevMonth(t){t.stopPropagation();const e=new Date(this.activeDate);e.setMonth(e.getMonth()-1),this.activeDate=e}handleNextMonth(t){t.stopPropagation();const e=new Date(this.activeDate);e.setMonth(e.getMonth()+1),this.activeDate=e}handleTouchStart(t){t.touches&&t.touches.length>0&&(this.touchStartX=t.touches[0].clientX,this.touchStartY=t.touches[0].clientY)}handleTouchEnd(t){if(t.changedTouches&&t.changedTouches.length>0){const e=t.changedTouches[0].clientX,a=t.changedTouches[0].clientY,r=this.touchStartX-e,l=this.touchStartY-a;Math.abs(r)>50&&Math.abs(r)>Math.abs(l)&&(r>0?this.handleNextMonth(t):this.handlePrevMonth(t))}}getFormattedMonthTitle(){const t=this.activeDate.toLocaleDateString(this.locale||"es",{month:"long",year:"numeric"});return t.charAt(0).toUpperCase()+t.slice(1)}handleDropdownDaySelect(t){this.dropdownSelectedDateString=t.detail.dateString}selectDropdownSlot(t){const e={dateString:this.dropdownSelectedDateString,start:t.displayStart,end:t.displayEnd,hostStart:t.start,hostEnd:t.end};this.selectedRange={dateString:this.dropdownSelectedDateString,start:t.displayStart,end:t.displayEnd},this.dispatchEvent(new CustomEvent("booking-selected",{detail:e,bubbles:!0,composed:!0})),this.dropdownOpen=!1,this.dropdownSelectedDateString=""}render(){const t=this.selectedRange?`Reserva: ${this.selectedRange.dateString} (${this.selectedRange.start} - ${this.selectedRange.end})`:"Seleccionar Fecha y Hora",e=this.activeDate.getFullYear(),a=this.activeDate.getMonth(),r=this.dropdownSelectedDateString?new Date(this.dropdownSelectedDateString+"T00:00:00"):null,l=r&&this.activeTimezone==="local"?k(r,this.hostTimezone,"local"):0,o=r?this.slots.map(c=>{const p=y.isTimeBlocked(r,c,this.rules),n=R(c,l),h=n.dayShift>0?" (+1d)":n.dayShift<0?" (-1d)":"";return{...c,displayStart:n.start+h,displayEnd:n.end+h,isBlocked:p}}):[];return s.html`
|
|
786
786
|
<div class="dropdown-container">
|
|
787
787
|
<button class="btn btn-primary dropdown-toggle" @click=${()=>this.dropdownOpen=!this.dropdownOpen}>
|
|
788
788
|
<span>${t}</span> <span>${this.dropdownOpen?"▲":"▼"}</span>
|
|
@@ -807,19 +807,45 @@
|
|
|
807
807
|
`)}
|
|
808
808
|
</div>
|
|
809
809
|
`:s.html`
|
|
810
|
-
<div
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
810
|
+
<div class="mini-calendar-header">
|
|
811
|
+
<button
|
|
812
|
+
type="button"
|
|
813
|
+
class="mini-nav-btn"
|
|
814
|
+
aria-label="Mes anterior"
|
|
815
|
+
@click=${this.handlePrevMonth}
|
|
816
|
+
>
|
|
817
|
+
<
|
|
818
|
+
</button>
|
|
819
|
+
<span class="mini-month-title">
|
|
820
|
+
${this.getFormattedMonthTitle()}
|
|
821
|
+
</span>
|
|
822
|
+
<button
|
|
823
|
+
type="button"
|
|
824
|
+
class="mini-nav-btn"
|
|
825
|
+
aria-label="Mes siguiente"
|
|
826
|
+
@click=${this.handleNextMonth}
|
|
827
|
+
>
|
|
828
|
+
>
|
|
829
|
+
</button>
|
|
830
|
+
</div>
|
|
831
|
+
<div
|
|
832
|
+
class="mini-calendar-touch-wrapper"
|
|
833
|
+
@touchstart=${this.handleTouchStart}
|
|
834
|
+
@touchend=${this.handleTouchEnd}
|
|
835
|
+
>
|
|
836
|
+
<glatam-calendar-month-view
|
|
837
|
+
.days=${y.generateMonthDays(e,a,this.rules,this.slots,this.startOfWeekDay)}
|
|
838
|
+
.locale=${this.locale}
|
|
839
|
+
.startOfWeekDay=${this.startOfWeekDay}
|
|
840
|
+
.role=${this.role}
|
|
841
|
+
size="small"
|
|
842
|
+
.minDate=${this.minDate}
|
|
843
|
+
.maxDate=${this.maxDate}
|
|
844
|
+
.showNeighboringMonth=${this.showNeighboringMonth}
|
|
845
|
+
.tileClassName=${this.tileClassName}
|
|
846
|
+
@day-select=${this.handleDropdownDaySelect}
|
|
847
|
+
></glatam-calendar-month-view>
|
|
848
|
+
</div>
|
|
823
849
|
`}
|
|
824
850
|
</div>
|
|
825
851
|
`:""}
|
|
@@ -833,4 +859,45 @@
|
|
|
833
859
|
box-shadow: none;
|
|
834
860
|
width: 100%;
|
|
835
861
|
}
|
|
836
|
-
|
|
862
|
+
|
|
863
|
+
.mini-calendar-header {
|
|
864
|
+
display: flex;
|
|
865
|
+
justify-content: space-between;
|
|
866
|
+
align-items: center;
|
|
867
|
+
padding: 4px 8px;
|
|
868
|
+
margin-bottom: 8px;
|
|
869
|
+
user-select: none;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
.mini-month-title {
|
|
873
|
+
font-size: 0.875rem;
|
|
874
|
+
font-weight: 600;
|
|
875
|
+
color: var(--glatam-text);
|
|
876
|
+
text-transform: capitalize;
|
|
877
|
+
letter-spacing: -0.01em;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
.mini-nav-btn {
|
|
881
|
+
background: transparent;
|
|
882
|
+
border: 1px solid var(--glatam-border);
|
|
883
|
+
border-radius: 8px;
|
|
884
|
+
color: var(--glatam-text);
|
|
885
|
+
width: 28px;
|
|
886
|
+
height: 28px;
|
|
887
|
+
display: flex;
|
|
888
|
+
align-items: center;
|
|
889
|
+
justify-content: center;
|
|
890
|
+
cursor: pointer;
|
|
891
|
+
font-size: 0.75rem;
|
|
892
|
+
transition: background-color var(--glatam-transition-fast), border-color var(--glatam-transition-fast), transform var(--glatam-transition-fast);
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
.mini-nav-btn:hover:not(:disabled) {
|
|
896
|
+
background-color: var(--glatam-surface);
|
|
897
|
+
border-color: var(--glatam-text-secondary);
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
.mini-nav-btn:active:not(:disabled) {
|
|
901
|
+
transform: scale(0.95);
|
|
902
|
+
}
|
|
903
|
+
`];b([i.property({type:String})],exports.GlatamCalendarMini.prototype,"role",2);b([i.property({type:String})],exports.GlatamCalendarMini.prototype,"locale",2);b([i.property({type:Number})],exports.GlatamCalendarMini.prototype,"startOfWeekDay",2);b([i.property({type:Array})],exports.GlatamCalendarMini.prototype,"rules",2);b([i.property({type:Object})],exports.GlatamCalendarMini.prototype,"selectedRange",2);b([i.property({type:String,reflect:!0})],exports.GlatamCalendarMini.prototype,"size",2);b([i.property({type:String})],exports.GlatamCalendarMini.prototype,"hostTimezone",2);b([i.property({type:String})],exports.GlatamCalendarMini.prototype,"activeTimezone",2);b([i.property({type:String})],exports.GlatamCalendarMini.prototype,"minDate",2);b([i.property({type:String})],exports.GlatamCalendarMini.prototype,"maxDate",2);b([i.property({type:Boolean})],exports.GlatamCalendarMini.prototype,"showNeighboringMonth",2);b([i.property({attribute:!1})],exports.GlatamCalendarMini.prototype,"tileClassName",2);b([i.property({type:Array})],exports.GlatamCalendarMini.prototype,"slots",2);b([i.state()],exports.GlatamCalendarMini.prototype,"activeDate",2);b([i.state()],exports.GlatamCalendarMini.prototype,"dropdownOpen",2);b([i.state()],exports.GlatamCalendarMini.prototype,"dropdownSelectedDateString",2);exports.GlatamCalendarMini=b([i.customElement("glatam-calendar-mini")],exports.GlatamCalendarMini);Object.defineProperty(exports,"formatISODate",{enumerable:!0,get:()=>y.formatISODate});Object.defineProperty(exports,"isTimeBlocked",{enumerable:!0,get:()=>y.isTimeBlocked});Object.defineProperty(exports,"parseISODate",{enumerable:!0,get:()=>y.parseISODate});exports.calendarStyles=G;exports.variablesStyles=M;
|