overview-components 1.1.39 → 1.1.40
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/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/lit-ai-filter-assistant.d.ts +1 -0
- package/dist/components/lit-ai-filter-assistant.d.ts.map +1 -1
- package/dist/components/lit-ai-filter-assistant.js +2 -1
- package/dist/components/lit-ai-filter-assistant.js.map +1 -1
- package/dist/components/react-wrappers/calendar.d.ts +3 -0
- package/dist/components/react-wrappers/calendar.d.ts.map +1 -0
- package/dist/components/react-wrappers/calendar.js +9 -0
- package/dist/components/react-wrappers/calendar.js.map +1 -0
- package/dist/components/react-wrappers/index.d.ts +2 -0
- package/dist/components/react-wrappers/index.d.ts.map +1 -1
- package/dist/components/react-wrappers/index.js +2 -0
- package/dist/components/react-wrappers/index.js.map +1 -1
- package/dist/data/translations.d.ts.map +1 -1
- package/dist/data/translations.js +5 -0
- package/dist/data/translations.js.map +1 -1
- package/dist/scripts/translate-locales.js +12 -67
- package/dist/scripts/translate-locales.js.map +1 -1
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +1 -0
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/lit-calendar.d.ts +57 -0
- package/dist/shared/lit-calendar.d.ts.map +1 -0
- package/dist/shared/lit-calendar.js +486 -0
- package/dist/shared/lit-calendar.js.map +1 -0
- package/dist/shared/lit-input.d.ts +4 -2
- package/dist/shared/lit-input.d.ts.map +1 -1
- package/dist/shared/lit-input.js +62 -30
- package/dist/shared/lit-input.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import './lit-icon-button.js';
|
|
3
|
+
import './lit-tooltip.js';
|
|
4
|
+
export interface ProjectEntry {
|
|
5
|
+
hours: number;
|
|
6
|
+
project: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface DayData {
|
|
10
|
+
date: string;
|
|
11
|
+
entries: ProjectEntry[];
|
|
12
|
+
totalHours: number;
|
|
13
|
+
}
|
|
14
|
+
export interface CalendarProps {
|
|
15
|
+
month: number;
|
|
16
|
+
year: number;
|
|
17
|
+
dayData: Record<string, DayData>;
|
|
18
|
+
totalHoursTarget: number;
|
|
19
|
+
limitHoursPerDay: number;
|
|
20
|
+
nonWorkingDays: string[];
|
|
21
|
+
weekendDays: number[];
|
|
22
|
+
userLang: string;
|
|
23
|
+
onTooltipEntryClick?: (entry: ProjectEntry, date: string) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare class LitCalendar extends LitElement {
|
|
26
|
+
month: number;
|
|
27
|
+
year: number;
|
|
28
|
+
dayData: Record<string, DayData>;
|
|
29
|
+
totalHoursTarget: number;
|
|
30
|
+
limitHoursPerDay: number;
|
|
31
|
+
nonWorkingDays: string[];
|
|
32
|
+
weekendDays: number[];
|
|
33
|
+
userLang: string;
|
|
34
|
+
onTooltipEntryClick?: (entry: ProjectEntry, date: string) => void;
|
|
35
|
+
private currentDate;
|
|
36
|
+
static styles: import("lit").CSSResult;
|
|
37
|
+
connectedCallback(): void;
|
|
38
|
+
updated(changedProperties: Map<string, any>): void;
|
|
39
|
+
private getMonthName;
|
|
40
|
+
private getDayHeaders;
|
|
41
|
+
private getCalendarDays;
|
|
42
|
+
private getDayKey;
|
|
43
|
+
private calculateTotalWorkedHours;
|
|
44
|
+
private formatHours;
|
|
45
|
+
private isDayOverLimit;
|
|
46
|
+
private isNonWorkingDay;
|
|
47
|
+
private isWeekend;
|
|
48
|
+
private renderTooltipContent;
|
|
49
|
+
private handleTooltipEntryClick;
|
|
50
|
+
render(): TemplateResult;
|
|
51
|
+
}
|
|
52
|
+
declare global {
|
|
53
|
+
interface HTMLElementTagNameMap {
|
|
54
|
+
'lit-calendar': LitCalendar;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=lit-calendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lit-calendar.d.ts","sourceRoot":"","sources":["../../src/shared/lit-calendar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAM5D,OAAO,sBAAsB,CAAC;AAC9B,OAAO,kBAAkB,CAAC;AAE1B,MAAM,WAAW,YAAY;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,OAAO;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAErE;AAED,qBACa,WAAY,SAAQ,UAAU;IACX,KAAK,EAAE,MAAM,CAAwB;IACrC,IAAI,EAAE,MAAM,CAAuB;IACnC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM;IACtC,gBAAgB,EAAE,MAAM,CAAM;IAC9B,gBAAgB,EAAE,MAAM,CAAK;IAC9B,cAAc,EAAE,MAAM,EAAE,CAAM;IAC9B,WAAW,EAAE,MAAM,EAAE,CAAU;IAC9B,QAAQ,EAAE,MAAM,CAAQ;IACtB,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAGvF,OAAO,CAAC,WAAW,CAA4B;IAExD,MAAM,CAAC,MAAM,0BAyPX;IAEF,iBAAiB;IAKjB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;IAM3C,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,aAAa;IA6BrB,OAAO,CAAC,eAAe;IAsBvB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,yBAAyB;IAIjC,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,eAAe;IAKvB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,oBAAoB;IA6B5B,OAAO,CAAC,uBAAuB;IAM/B,MAAM,IAAI,cAAc;CAwE3B;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,cAAc,EAAE,WAAW,CAAC;KAC/B;CACJ"}
|
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, css } from 'lit';
|
|
8
|
+
import { property, customElement, state } from 'lit/decorators.js';
|
|
9
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
10
|
+
import { DateTime } from 'luxon';
|
|
11
|
+
import { msg } from '@lit/localize';
|
|
12
|
+
import { localizedDatePicker } from '../utils/localization.js';
|
|
13
|
+
import './lit-icon-button.js';
|
|
14
|
+
import './lit-tooltip.js';
|
|
15
|
+
let LitCalendar = class LitCalendar extends LitElement {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.month = DateTime.now().month;
|
|
19
|
+
this.year = DateTime.now().year;
|
|
20
|
+
this.dayData = {};
|
|
21
|
+
this.totalHoursTarget = 48;
|
|
22
|
+
this.limitHoursPerDay = 8;
|
|
23
|
+
this.nonWorkingDays = []; // Array of dates in YYYY-MM-DD format
|
|
24
|
+
this.weekendDays = [6, 7]; // 1=Monday, 7=Sunday (Saturday and Sunday by default)
|
|
25
|
+
this.userLang = 'cs';
|
|
26
|
+
// @property({ type: Function }) onMonthChange?: (month: number, year: number) => void;
|
|
27
|
+
this.currentDate = DateTime.now();
|
|
28
|
+
}
|
|
29
|
+
connectedCallback() {
|
|
30
|
+
super.connectedCallback();
|
|
31
|
+
this.currentDate = DateTime.fromObject({ month: this.month, year: this.year });
|
|
32
|
+
}
|
|
33
|
+
updated(changedProperties) {
|
|
34
|
+
if (changedProperties.has('month') || changedProperties.has('year')) {
|
|
35
|
+
this.currentDate = DateTime.fromObject({ month: this.month, year: this.year });
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
getMonthName() {
|
|
39
|
+
const locale = localizedDatePicker.get(this.userLang) || localizedDatePicker.get('en');
|
|
40
|
+
return locale.months[this.month - 1];
|
|
41
|
+
}
|
|
42
|
+
getDayHeaders() {
|
|
43
|
+
const locale = localizedDatePicker.get(this.userLang) || localizedDatePicker.get('en');
|
|
44
|
+
// Get day headers starting from Monday (index 1) since firstDay is usually 1 for most locales
|
|
45
|
+
const days = locale.daysShort;
|
|
46
|
+
const firstDay = locale.firstDay || 1;
|
|
47
|
+
if (firstDay === 0) {
|
|
48
|
+
// Sunday first (US style) - reorder to start with Monday
|
|
49
|
+
return [...days.slice(1), days[0]];
|
|
50
|
+
}
|
|
51
|
+
// Monday first - use as is
|
|
52
|
+
return [...days.slice(1), days[0]];
|
|
53
|
+
}
|
|
54
|
+
// private navigateMonth(direction: 'prev' | 'next') {
|
|
55
|
+
// const newDate =
|
|
56
|
+
// direction === 'prev'
|
|
57
|
+
// ? this.currentDate.minus({ months: 1 })
|
|
58
|
+
// : this.currentDate.plus({ months: 1 });
|
|
59
|
+
// this.month = newDate.month;
|
|
60
|
+
// this.year = newDate.year;
|
|
61
|
+
// this.currentDate = newDate;
|
|
62
|
+
// if (this.onMonthChange) {
|
|
63
|
+
// this.onMonthChange(this.month, this.year);
|
|
64
|
+
// }
|
|
65
|
+
// }
|
|
66
|
+
getCalendarDays() {
|
|
67
|
+
const startOfMonth = this.currentDate.startOf('month');
|
|
68
|
+
// Get first day of week (Monday = 1)
|
|
69
|
+
const startDay = startOfMonth.weekday;
|
|
70
|
+
const daysFromPrevMonth = startDay - 1;
|
|
71
|
+
const startDate = startOfMonth.minus({ days: daysFromPrevMonth });
|
|
72
|
+
const days = [];
|
|
73
|
+
// Generate 42 days (6 weeks)
|
|
74
|
+
for (let i = 0; i < 42; i++) {
|
|
75
|
+
const date = startDate.plus({ days: i });
|
|
76
|
+
days.push({
|
|
77
|
+
date,
|
|
78
|
+
isCurrentMonth: date.month === this.currentDate.month,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
return days;
|
|
82
|
+
}
|
|
83
|
+
getDayKey(date) {
|
|
84
|
+
return date.toFormat('yyyy-MM-dd');
|
|
85
|
+
}
|
|
86
|
+
calculateTotalWorkedHours() {
|
|
87
|
+
return Object.values(this.dayData).reduce((total, day) => total + day.totalHours, 0);
|
|
88
|
+
}
|
|
89
|
+
formatHours(hours) {
|
|
90
|
+
return hours.toLocaleString(this.userLang, {
|
|
91
|
+
minimumFractionDigits: 0,
|
|
92
|
+
maximumFractionDigits: 2,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
isDayOverLimit(dayData) {
|
|
96
|
+
return dayData.totalHours > this.limitHoursPerDay;
|
|
97
|
+
}
|
|
98
|
+
isNonWorkingDay(date) {
|
|
99
|
+
const dayKey = this.getDayKey(date);
|
|
100
|
+
return this.nonWorkingDays.includes(dayKey);
|
|
101
|
+
}
|
|
102
|
+
isWeekend(date) {
|
|
103
|
+
return this.weekendDays.includes(date.weekday);
|
|
104
|
+
}
|
|
105
|
+
renderTooltipContent(dayData) {
|
|
106
|
+
return html `
|
|
107
|
+
<div class="tooltip-content">
|
|
108
|
+
<table class="tooltip-table">
|
|
109
|
+
<tbody>
|
|
110
|
+
${dayData.entries.map((entry, index) => html `
|
|
111
|
+
<tr
|
|
112
|
+
class="tooltip-entry"
|
|
113
|
+
id="tooltip-entry-${dayData.date}-${index}"
|
|
114
|
+
@click=${() => this.handleTooltipEntryClick(entry, dayData.date)}
|
|
115
|
+
>
|
|
116
|
+
<td class="tooltip-entry-hours">
|
|
117
|
+
${this.formatHours(entry.hours)}h
|
|
118
|
+
</td>
|
|
119
|
+
<td class="tooltip-entry-project">${entry.project}</td>
|
|
120
|
+
<td class="tooltip-entry-description">
|
|
121
|
+
${entry.description || ''}
|
|
122
|
+
</td>
|
|
123
|
+
</tr>
|
|
124
|
+
`)}
|
|
125
|
+
</tbody>
|
|
126
|
+
</table>
|
|
127
|
+
</div>
|
|
128
|
+
`;
|
|
129
|
+
}
|
|
130
|
+
handleTooltipEntryClick(entry, date) {
|
|
131
|
+
if (this.onTooltipEntryClick) {
|
|
132
|
+
this.onTooltipEntryClick(entry, date);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
render() {
|
|
136
|
+
const totalWorked = this.calculateTotalWorkedHours();
|
|
137
|
+
const calendarDays = this.getCalendarDays();
|
|
138
|
+
const dayHeaders = this.getDayHeaders();
|
|
139
|
+
return html `
|
|
140
|
+
<div class="calendar-wrapper">
|
|
141
|
+
<div class="calendar-header">
|
|
142
|
+
<div class="month">
|
|
143
|
+
<div class="year-title">Měsíc</div>
|
|
144
|
+
<div class="month-title">${this.getMonthName()}</div>
|
|
145
|
+
</div>
|
|
146
|
+
<div class="year">
|
|
147
|
+
<div class="year-title">Rok</div>
|
|
148
|
+
<div class="month-title">${this.year}</div>
|
|
149
|
+
</div>
|
|
150
|
+
<div class="hours-summary">
|
|
151
|
+
<div class="year-title">${msg('Vyplněno (hod)')}</div>
|
|
152
|
+
<div class="month-title">
|
|
153
|
+
${this.formatHours(totalWorked)} / ${this.totalHoursTarget}
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
|
|
158
|
+
<div class="calendar-grid">
|
|
159
|
+
${dayHeaders.map((header) => html ` <div class="calendar-day-header">${header}</div> `)}
|
|
160
|
+
${calendarDays.map(({ date, isCurrentMonth }) => {
|
|
161
|
+
const dayKey = this.getDayKey(date);
|
|
162
|
+
const dayData = this.dayData[dayKey];
|
|
163
|
+
const hasData = dayData && dayData.totalHours > 0;
|
|
164
|
+
const isNonWorking = this.isNonWorkingDay(date);
|
|
165
|
+
const isWeekend = this.isWeekend(date);
|
|
166
|
+
return html `
|
|
167
|
+
<div
|
|
168
|
+
class=${classMap({
|
|
169
|
+
'calendar-day': true,
|
|
170
|
+
'calendar-day--other-month': !isCurrentMonth,
|
|
171
|
+
'calendar-day--non-working': isCurrentMonth && isNonWorking,
|
|
172
|
+
'calendar-day--weekend': isCurrentMonth && isWeekend && !isNonWorking,
|
|
173
|
+
})}
|
|
174
|
+
>
|
|
175
|
+
<div class="day-number">${date.day}</div>
|
|
176
|
+
${hasData
|
|
177
|
+
? html `
|
|
178
|
+
<perf-tooltip placement="bottom">
|
|
179
|
+
<div
|
|
180
|
+
slot="trigger"
|
|
181
|
+
class=${classMap({
|
|
182
|
+
'hours-badge': true,
|
|
183
|
+
'hours-badge--error': this.isDayOverLimit(dayData),
|
|
184
|
+
})}
|
|
185
|
+
>
|
|
186
|
+
${this.formatHours(dayData.totalHours)} h
|
|
187
|
+
</div>
|
|
188
|
+
<div slot="tooltip">
|
|
189
|
+
${this.renderTooltipContent(dayData)}
|
|
190
|
+
</div>
|
|
191
|
+
</perf-tooltip>
|
|
192
|
+
`
|
|
193
|
+
: ''}
|
|
194
|
+
</div>
|
|
195
|
+
`;
|
|
196
|
+
})}
|
|
197
|
+
</div>
|
|
198
|
+
</div>
|
|
199
|
+
`;
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
LitCalendar.styles = css `
|
|
203
|
+
:host {
|
|
204
|
+
display: block;
|
|
205
|
+
font-family: var(--font-family, Inter, sans-serif);
|
|
206
|
+
border-radius: var(--border-radius-medium, 0.75rem);
|
|
207
|
+
padding: 1rem;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.calendar-wrapper {
|
|
211
|
+
display: flex;
|
|
212
|
+
flex-direction: column;
|
|
213
|
+
gap: 1rem;
|
|
214
|
+
}
|
|
215
|
+
.calendar-header {
|
|
216
|
+
background-color: var(--background-paper, #ffffff);
|
|
217
|
+
display: flex;
|
|
218
|
+
justify-content: space-between;
|
|
219
|
+
align-items: center;
|
|
220
|
+
padding: 8px 12px;
|
|
221
|
+
border-radius: var(--border-radius-small, 0.5rem);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.month,
|
|
225
|
+
.year {
|
|
226
|
+
display: flex;
|
|
227
|
+
flex-direction: column;
|
|
228
|
+
gap: 0.625rem;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.month-title {
|
|
232
|
+
font-size: 0.875rem;
|
|
233
|
+
font-weight: 500;
|
|
234
|
+
color: var(--text-primary, #111827);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.year-title {
|
|
238
|
+
font-size: 0.75rem;
|
|
239
|
+
font-weight: 400;
|
|
240
|
+
color: var(--text-secondary, #5d6371);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.hours-summary {
|
|
244
|
+
display: flex;
|
|
245
|
+
flex-direction: column;
|
|
246
|
+
align-items: flex-end;
|
|
247
|
+
gap: 0.25rem;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.hours-label {
|
|
251
|
+
font-size: 0.875rem;
|
|
252
|
+
color: var(--text-secondary, #5d6371);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.hours-value {
|
|
256
|
+
font-size: 1.125rem;
|
|
257
|
+
font-weight: 600;
|
|
258
|
+
color: var(--text-primary, #111827);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.calendar-grid {
|
|
262
|
+
display: grid;
|
|
263
|
+
grid-template-columns: repeat(7, 1fr);
|
|
264
|
+
border-radius: var(--border-radius-small, 0.5rem);
|
|
265
|
+
overflow: hidden;
|
|
266
|
+
background-color: var(--background-paper, #ffffff);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.calendar-day-header {
|
|
270
|
+
padding: 0.5rem;
|
|
271
|
+
text-align: center;
|
|
272
|
+
font-size: 0.875rem;
|
|
273
|
+
font-weight: 500;
|
|
274
|
+
color: var(--text-secondary, #5d6371);
|
|
275
|
+
border-right: 0.5px dashed var(--color-divider, #d0d3db);
|
|
276
|
+
&:nth-child(7n) {
|
|
277
|
+
border-right: none;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.calendar-day {
|
|
282
|
+
background-color: var(--background-paper, #ffffff);
|
|
283
|
+
min-height: 60px;
|
|
284
|
+
position: relative;
|
|
285
|
+
display: flex;
|
|
286
|
+
flex-direction: column;
|
|
287
|
+
align-items: center;
|
|
288
|
+
cursor: pointer;
|
|
289
|
+
transition: background-color 0.2s ease;
|
|
290
|
+
border-top: 0.5px dashed var(--color-divider, #d0d3db);
|
|
291
|
+
border-right: 0.5px dashed var(--color-divider, #d0d3db);
|
|
292
|
+
padding: 0.5rem;
|
|
293
|
+
&:nth-child(7n) {
|
|
294
|
+
border-right: none;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.calendar-day:hover {
|
|
299
|
+
background-color: var(--color-primary-light, #f0fadf);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.calendar-day--other-month {
|
|
303
|
+
color: var(--text-disabled, #d0d3db);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.calendar-day--other-month:hover {
|
|
307
|
+
background-color: var(--background-default, #eff3f4);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.calendar-day--non-working {
|
|
311
|
+
background-color: var(--background-default, #eff3f4);
|
|
312
|
+
position: relative;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.calendar-day--non-working:hover {
|
|
316
|
+
background-color: var(--color-secondary-light, #d0d3db);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// .calendar-day--non-working::before {
|
|
320
|
+
// content: '';
|
|
321
|
+
// position: absolute;
|
|
322
|
+
// top: 0;
|
|
323
|
+
// left: 0;
|
|
324
|
+
// right: 0;
|
|
325
|
+
// bottom: 0;
|
|
326
|
+
// background: repeating-linear-gradient(
|
|
327
|
+
// 45deg,
|
|
328
|
+
// transparent,
|
|
329
|
+
// transparent 2px,
|
|
330
|
+
// var(--color-divider, #d0d3db) 2px,
|
|
331
|
+
// var(--color-divider, #d0d3db) 4px
|
|
332
|
+
// );
|
|
333
|
+
// pointer-events: none;
|
|
334
|
+
// }
|
|
335
|
+
|
|
336
|
+
.calendar-day--weekend {
|
|
337
|
+
background-color: var(--background-default, #d0d3db);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.calendar-day--weekend:hover {
|
|
341
|
+
background-color: var(--color-secondary-light, #d0d3db);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.day-number {
|
|
345
|
+
font-size: 0.875rem;
|
|
346
|
+
color: var(--text-primary, #111827);
|
|
347
|
+
margin-bottom: 0.25rem;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.calendar-day--other-month .day-number {
|
|
351
|
+
color: var(--text-disabled, #d0d3db);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.calendar-day--non-working .day-number {
|
|
355
|
+
color: var(--text-secondary, #5d6371);
|
|
356
|
+
font-weight: 600;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.calendar-day--weekend .day-number {
|
|
360
|
+
color: var(--text-secondary, #5d6371);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.hours-badge {
|
|
364
|
+
background-color: var(--color-success-main, #76b703);
|
|
365
|
+
color: white;
|
|
366
|
+
padding: 0.125rem 0.375rem;
|
|
367
|
+
border-radius: 50px;
|
|
368
|
+
font-size: 0.625rem;
|
|
369
|
+
font-weight: 600;
|
|
370
|
+
white-space: nowrap;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.hours-badge--error {
|
|
374
|
+
background-color: var(--color-warning-main, #ca2d0a);
|
|
375
|
+
animation: pulse-error 2s infinite;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
@keyframes pulse-error {
|
|
379
|
+
0% {
|
|
380
|
+
box-shadow: 0 0 0 0 rgba(202, 45, 10, 0.7);
|
|
381
|
+
}
|
|
382
|
+
70% {
|
|
383
|
+
box-shadow: 0 0 0 8px rgba(202, 45, 10, 0);
|
|
384
|
+
}
|
|
385
|
+
100% {
|
|
386
|
+
box-shadow: 0 0 0 0 rgba(202, 45, 10, 0);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.navigation {
|
|
391
|
+
display: flex;
|
|
392
|
+
gap: 0.5rem;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.tooltip-content {
|
|
396
|
+
font-size: 0.75rem;
|
|
397
|
+
// min-width: 300px;
|
|
398
|
+
// max-width: 400px;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.tooltip-table {
|
|
402
|
+
width: 100%;
|
|
403
|
+
border-collapse: collapse;
|
|
404
|
+
table-layout: auto;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.tooltip-entry {
|
|
408
|
+
cursor: pointer;
|
|
409
|
+
transition: background-color 0.2s ease;
|
|
410
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.tooltip-entry:last-child {
|
|
414
|
+
border-bottom: none;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.tooltip-entry:hover {
|
|
418
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.tooltip-entry-hours {
|
|
422
|
+
padding: 0.5rem 0.75rem;
|
|
423
|
+
font-weight: 600;
|
|
424
|
+
text-align: left;
|
|
425
|
+
white-space: nowrap;
|
|
426
|
+
vertical-align: top;
|
|
427
|
+
width: 1%;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.tooltip-entry-project {
|
|
431
|
+
padding: 0.5rem 0.75rem;
|
|
432
|
+
white-space: nowrap;
|
|
433
|
+
line-height: 1.3;
|
|
434
|
+
vertical-align: top;
|
|
435
|
+
max-width: 300px;
|
|
436
|
+
overflow: hidden;
|
|
437
|
+
text-overflow: ellipsis;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.tooltip-entry-description {
|
|
441
|
+
padding: 0.5rem 0.75rem;
|
|
442
|
+
opacity: 0.9;
|
|
443
|
+
white-space: nowrap;
|
|
444
|
+
line-height: 1.3;
|
|
445
|
+
vertical-align: top;
|
|
446
|
+
width: 1%;
|
|
447
|
+
max-width: 150px;
|
|
448
|
+
overflow: hidden;
|
|
449
|
+
text-overflow: ellipsis;
|
|
450
|
+
}
|
|
451
|
+
`;
|
|
452
|
+
__decorate([
|
|
453
|
+
property({ type: Number })
|
|
454
|
+
], LitCalendar.prototype, "month", void 0);
|
|
455
|
+
__decorate([
|
|
456
|
+
property({ type: Number })
|
|
457
|
+
], LitCalendar.prototype, "year", void 0);
|
|
458
|
+
__decorate([
|
|
459
|
+
property({ type: Object })
|
|
460
|
+
], LitCalendar.prototype, "dayData", void 0);
|
|
461
|
+
__decorate([
|
|
462
|
+
property({ type: Number })
|
|
463
|
+
], LitCalendar.prototype, "totalHoursTarget", void 0);
|
|
464
|
+
__decorate([
|
|
465
|
+
property({ type: Number })
|
|
466
|
+
], LitCalendar.prototype, "limitHoursPerDay", void 0);
|
|
467
|
+
__decorate([
|
|
468
|
+
property({ type: Array })
|
|
469
|
+
], LitCalendar.prototype, "nonWorkingDays", void 0);
|
|
470
|
+
__decorate([
|
|
471
|
+
property({ type: Array })
|
|
472
|
+
], LitCalendar.prototype, "weekendDays", void 0);
|
|
473
|
+
__decorate([
|
|
474
|
+
property({ type: String })
|
|
475
|
+
], LitCalendar.prototype, "userLang", void 0);
|
|
476
|
+
__decorate([
|
|
477
|
+
property({ type: Function })
|
|
478
|
+
], LitCalendar.prototype, "onTooltipEntryClick", void 0);
|
|
479
|
+
__decorate([
|
|
480
|
+
state()
|
|
481
|
+
], LitCalendar.prototype, "currentDate", void 0);
|
|
482
|
+
LitCalendar = __decorate([
|
|
483
|
+
customElement('lit-calendar')
|
|
484
|
+
], LitCalendar);
|
|
485
|
+
export { LitCalendar };
|
|
486
|
+
//# sourceMappingURL=lit-calendar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lit-calendar.js","sourceRoot":"","sources":["../../src/shared/lit-calendar.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAkB,MAAM,KAAK,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,sBAAsB,CAAC;A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,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yCAAoC;AACnC;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAuC;AACtC;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qDAA+B;AAC9B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qDAA8B;AAC9B;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;mDAA+B;AAC9B;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;gDAAgC;AAC9B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CAAyB;AACtB;IAA7B,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;wDAAmE;AAG/E;IAAhB,KAAK,EAAE;gDAAgD;AAZ/C,WAAW;IADvB,aAAa,CAAC,cAAc,CAAC;GACjB,WAAW,CAmdvB"}
|
|
@@ -4,7 +4,7 @@ import '../shared/lit-data-grid-operators-popover.js';
|
|
|
4
4
|
import type { Operator } from '../components/lit-filter-modal.js';
|
|
5
5
|
import type { ColumnCustomFilter } from '../components/lit-data-grid-tanstack.js';
|
|
6
6
|
export type LitInputProp = {
|
|
7
|
-
type: 'number' | 'text';
|
|
7
|
+
type: 'number' | 'text' | 'textarea';
|
|
8
8
|
placeholder: string;
|
|
9
9
|
value: string | number | null;
|
|
10
10
|
disabled: boolean;
|
|
@@ -12,7 +12,7 @@ export type LitInputProp = {
|
|
|
12
12
|
filterOperators: ColumnCustomFilter[];
|
|
13
13
|
};
|
|
14
14
|
export declare class LitInput extends LitElement {
|
|
15
|
-
type: 'number' | 'text';
|
|
15
|
+
type: 'number' | 'text' | 'textarea';
|
|
16
16
|
placeholder: string;
|
|
17
17
|
value: any;
|
|
18
18
|
onInput: ((value: string | undefined) => void) | undefined;
|
|
@@ -25,6 +25,8 @@ export declare class LitInput extends LitElement {
|
|
|
25
25
|
disabled: boolean;
|
|
26
26
|
filterOperators?: [];
|
|
27
27
|
size?: 'medium' | 'small';
|
|
28
|
+
rows?: number;
|
|
29
|
+
cols?: number;
|
|
28
30
|
setOperator: (operator: Operator) => void;
|
|
29
31
|
connectedCallback(): void;
|
|
30
32
|
disconnectedCallback(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-input.d.ts","sourceRoot":"","sources":["../../src/shared/lit-input.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC5D,OAAO,8BAA8B,CAAC;AACtC,OAAO,8CAA8C,CAAC;AAItD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAElF,MAAM,MAAM,YAAY,GAAG;IACvB,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"lit-input.d.ts","sourceRoot":"","sources":["../../src/shared/lit-input.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC5D,OAAO,8BAA8B,CAAC;AACtC,OAAO,8CAA8C,CAAC;AAItD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAElF,MAAM,MAAM,YAAY,GAAG;IACvB,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,eAAe,EAAE,kBAAkB,EAAE,CAAC;CACzC,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