@f-ewald/components 1.25.0 → 1.27.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/README.md +7 -3
- package/custom-elements.json +1390 -181
- package/dist/calendar-day.d.ts +33 -0
- package/dist/calendar-day.d.ts.map +1 -0
- package/dist/calendar-day.js +280 -0
- package/dist/calendar-day.js.map +1 -0
- package/dist/calendar-timeline-base.d.ts +43 -0
- package/dist/calendar-timeline-base.d.ts.map +1 -0
- package/dist/calendar-timeline-base.js +113 -0
- package/dist/calendar-timeline-base.js.map +1 -0
- package/dist/calendar-week.d.ts +37 -0
- package/dist/calendar-week.d.ts.map +1 -0
- package/dist/calendar-week.js +315 -0
- package/dist/calendar-week.js.map +1 -0
- package/dist/comment-composer.d.ts +15 -1
- package/dist/comment-composer.d.ts.map +1 -1
- package/dist/comment-composer.js +25 -3
- package/dist/comment-composer.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/modal-dialog.d.ts +49 -0
- package/dist/modal-dialog.d.ts.map +1 -0
- package/dist/modal-dialog.js +287 -0
- package/dist/modal-dialog.js.map +1 -0
- package/dist/toast-notification.d.ts +14 -0
- package/dist/toast-notification.d.ts.map +1 -1
- package/dist/toast-notification.js +23 -8
- package/dist/toast-notification.js.map +1 -1
- package/dist/tokens.css +15 -3
- package/dist/tokens.d.ts +9 -8
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +43 -15
- package/dist/tokens.js.map +1 -1
- package/dist/ui-button.d.ts +2 -0
- package/dist/ui-button.d.ts.map +1 -1
- package/dist/ui-button.js +9 -1
- package/dist/ui-button.js.map +1 -1
- package/dist/utils/calendar.d.ts +41 -0
- package/dist/utils/calendar.d.ts.map +1 -1
- package/dist/utils/calendar.js +74 -0
- package/dist/utils/calendar.js.map +1 -1
- package/docs/calendar-day.md +70 -0
- package/docs/calendar-week.md +69 -0
- package/docs/comment-composer.md +5 -1
- package/docs/modal-dialog.md +66 -0
- package/docs/toast-notification.md +23 -0
- package/docs/ui-button.md +1 -0
- package/llms.txt +108 -3
- package/package.json +1 -1
|
@@ -0,0 +1,315 @@
|
|
|
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 { css, html, nothing } from "lit";
|
|
8
|
+
import { customElement, property } from "lit/decorators.js";
|
|
9
|
+
import { repeat } from "lit/directives/repeat.js";
|
|
10
|
+
import { CalendarTimelineBase } from "./calendar-timeline-base.js";
|
|
11
|
+
import { tokens } from "./tokens.js";
|
|
12
|
+
import { WEEKDAY_ABBR, addDays, assignLanes, minutesSinceMidnight, overlapsRange, parseIsoDate, startOfWeek, toIsoDate, } from "./utils/calendar.js";
|
|
13
|
+
const HOUR_HEIGHT_REM = 3;
|
|
14
|
+
const HOURS = Array.from({ length: 24 }, (_, i) => i);
|
|
15
|
+
const hourLabelFormatter = new Intl.DateTimeFormat(undefined, { hour: "numeric" });
|
|
16
|
+
/** Formats hour `h` (0-23) as a locale-aware hour label, e.g. "9 AM". */
|
|
17
|
+
function hourLabel(h) {
|
|
18
|
+
return hourLabelFormatter.format(new Date(2000, 0, 1, h));
|
|
19
|
+
}
|
|
20
|
+
/** 0-based day-of-week offset between `date` (local midnight) and `weekStart`. */
|
|
21
|
+
function dayIndex(date, weekStart) {
|
|
22
|
+
return Math.round((date.getTime() - weekStart.getTime()) / 86_400_000);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Sunday-through-Saturday week rendered as one shared hourly time grid — the
|
|
26
|
+
* seven-day sibling of `calendar-day`. Unlike `calendar-year` composing 12
|
|
27
|
+
* `calendar-month` children, this is its own independent 7-column layout
|
|
28
|
+
* (not 7 nested `<calendar-day>` elements): a single hour gutter is drawn
|
|
29
|
+
* once, and multi-day/all-day entries span the days they cover as one
|
|
30
|
+
* continuous bar in a shared all-day band, since lanes for that band are
|
|
31
|
+
* assigned once across the whole visible week (unlike `calendar-month`'s
|
|
32
|
+
* documented per-instance lane limitation). Timed entries stack into
|
|
33
|
+
* side-by-side columns independently per day, same as `calendar-day`.
|
|
34
|
+
* Read-only.
|
|
35
|
+
*
|
|
36
|
+
* Shares its slotted-entry observation, resolution, and hover/focus
|
|
37
|
+
* interaction sync with `calendar-day` via `CalendarTimelineBase`.
|
|
38
|
+
*
|
|
39
|
+
* @element calendar-week
|
|
40
|
+
* @slot - Declarative `calendar-entry` elements to render for this week.
|
|
41
|
+
*/
|
|
42
|
+
let CalendarWeek = class CalendarWeek extends CalendarTimelineBase {
|
|
43
|
+
constructor() {
|
|
44
|
+
super(...arguments);
|
|
45
|
+
/** Any date within the displayed week (`"YYYY-MM-DD"`) — the week runs Sunday through Saturday. */
|
|
46
|
+
this.date = toIsoDate(new Date());
|
|
47
|
+
}
|
|
48
|
+
static { this.styles = [
|
|
49
|
+
tokens,
|
|
50
|
+
css `
|
|
51
|
+
:host {
|
|
52
|
+
display: block;
|
|
53
|
+
font-family: var(
|
|
54
|
+
--ui-font,
|
|
55
|
+
ui-sans-serif,
|
|
56
|
+
system-ui,
|
|
57
|
+
sans-serif,
|
|
58
|
+
"Apple Color Emoji",
|
|
59
|
+
"Segoe UI Emoji",
|
|
60
|
+
"Segoe UI Symbol",
|
|
61
|
+
"Noto Color Emoji"
|
|
62
|
+
);
|
|
63
|
+
font-size: var(--ui-font-size-sm, 0.75rem);
|
|
64
|
+
}
|
|
65
|
+
.week-header {
|
|
66
|
+
display: flex;
|
|
67
|
+
margin-bottom: 0.5rem;
|
|
68
|
+
}
|
|
69
|
+
.hour-gutter-spacer {
|
|
70
|
+
flex: 0 0 3rem;
|
|
71
|
+
}
|
|
72
|
+
.day-header {
|
|
73
|
+
flex: 1 1 0;
|
|
74
|
+
color: var(--ui-text-muted, #64748b);
|
|
75
|
+
font-weight: var(--ui-font-weight-semibold, 600);
|
|
76
|
+
text-align: center;
|
|
77
|
+
}
|
|
78
|
+
.day-header .day-number {
|
|
79
|
+
color: var(--ui-text, #0f172a);
|
|
80
|
+
font-size: var(--ui-font-size-lg, 1rem);
|
|
81
|
+
}
|
|
82
|
+
.day-header.today,
|
|
83
|
+
.day-header.today .day-number {
|
|
84
|
+
color: var(--ui-primary, #4f46e5);
|
|
85
|
+
}
|
|
86
|
+
.all-day-band {
|
|
87
|
+
display: flex;
|
|
88
|
+
margin-bottom: 0.5rem;
|
|
89
|
+
}
|
|
90
|
+
.all-day-band.empty {
|
|
91
|
+
display: none;
|
|
92
|
+
}
|
|
93
|
+
.all-day-lanes {
|
|
94
|
+
display: grid;
|
|
95
|
+
flex: 1 1 auto;
|
|
96
|
+
grid-auto-rows: min-content;
|
|
97
|
+
grid-template-columns: repeat(7, 1fr);
|
|
98
|
+
gap: 0.25rem;
|
|
99
|
+
}
|
|
100
|
+
.grid {
|
|
101
|
+
display: flex;
|
|
102
|
+
border-top: 1px solid var(--ui-border, #e2e8f0);
|
|
103
|
+
}
|
|
104
|
+
.hour-gutter {
|
|
105
|
+
flex: 0 0 3rem;
|
|
106
|
+
}
|
|
107
|
+
.hour-label-cell {
|
|
108
|
+
box-sizing: border-box;
|
|
109
|
+
height: ${HOUR_HEIGHT_REM}rem;
|
|
110
|
+
padding-right: 0.5rem;
|
|
111
|
+
border-bottom: 1px solid var(--ui-border, #e2e8f0);
|
|
112
|
+
color: var(--ui-text-muted, #64748b);
|
|
113
|
+
font-variant-numeric: tabular-nums;
|
|
114
|
+
text-align: right;
|
|
115
|
+
white-space: nowrap;
|
|
116
|
+
}
|
|
117
|
+
.week-days {
|
|
118
|
+
display: flex;
|
|
119
|
+
flex: 1 1 auto;
|
|
120
|
+
}
|
|
121
|
+
.day-column {
|
|
122
|
+
position: relative;
|
|
123
|
+
flex: 1 1 0;
|
|
124
|
+
height: ${HOUR_HEIGHT_REM * 24}rem;
|
|
125
|
+
border-left: 1px solid var(--ui-border, #e2e8f0);
|
|
126
|
+
}
|
|
127
|
+
.day-column.today {
|
|
128
|
+
background: color-mix(in srgb, var(--ui-primary, #4f46e5) 6%, transparent);
|
|
129
|
+
}
|
|
130
|
+
.hour-line {
|
|
131
|
+
box-sizing: border-box;
|
|
132
|
+
height: ${HOUR_HEIGHT_REM}rem;
|
|
133
|
+
border-bottom: 1px solid var(--ui-border, #e2e8f0);
|
|
134
|
+
}
|
|
135
|
+
.entry-bar {
|
|
136
|
+
position: relative;
|
|
137
|
+
box-sizing: border-box;
|
|
138
|
+
overflow: hidden;
|
|
139
|
+
border-radius: var(--ui-radius-sm, 0.25rem);
|
|
140
|
+
padding: 0.25rem 0.5rem;
|
|
141
|
+
transition: box-shadow 120ms ease;
|
|
142
|
+
}
|
|
143
|
+
.entry-bar.entry-block {
|
|
144
|
+
position: absolute;
|
|
145
|
+
}
|
|
146
|
+
.entry-bar.entry-hovered,
|
|
147
|
+
.entry-bar.entry-focused {
|
|
148
|
+
box-shadow: inset 0 0 0 100vmax var(--ui-hover-overlay, rgb(255 255 255 / 0.32));
|
|
149
|
+
}
|
|
150
|
+
.entry-title {
|
|
151
|
+
display: block;
|
|
152
|
+
overflow: hidden;
|
|
153
|
+
font-weight: var(--ui-font-weight-medium, 500);
|
|
154
|
+
white-space: nowrap;
|
|
155
|
+
text-overflow: ellipsis;
|
|
156
|
+
pointer-events: none;
|
|
157
|
+
}
|
|
158
|
+
.entry-link {
|
|
159
|
+
position: absolute;
|
|
160
|
+
z-index: 1;
|
|
161
|
+
inset: 0;
|
|
162
|
+
border-radius: inherit;
|
|
163
|
+
color: inherit;
|
|
164
|
+
cursor: pointer;
|
|
165
|
+
text-decoration: none;
|
|
166
|
+
}
|
|
167
|
+
.entry-link:focus-visible {
|
|
168
|
+
outline: 2px solid var(--ui-primary, #4f46e5);
|
|
169
|
+
outline-offset: -2px;
|
|
170
|
+
box-shadow: var(--ui-focus-ring, 0 0 0 3px rgb(79 70 229 / 0.35)) inset;
|
|
171
|
+
}
|
|
172
|
+
.entry-bar.neutral {
|
|
173
|
+
background: color-mix(in srgb, var(--ui-text-muted, #64748b) 15%, var(--ui-surface, #ffffff));
|
|
174
|
+
color: var(--ui-text-muted, #64748b);
|
|
175
|
+
}
|
|
176
|
+
.entry-bar.info {
|
|
177
|
+
background: color-mix(in srgb, var(--ui-info, #0ea5e9) 15%, var(--ui-surface, #ffffff));
|
|
178
|
+
color: var(--ui-info, #0ea5e9);
|
|
179
|
+
}
|
|
180
|
+
.entry-bar.primary {
|
|
181
|
+
background: color-mix(in srgb, var(--ui-primary, #4f46e5) 15%, var(--ui-surface, #ffffff));
|
|
182
|
+
color: var(--ui-primary, #4f46e5);
|
|
183
|
+
}
|
|
184
|
+
.entry-bar.success {
|
|
185
|
+
background: color-mix(in srgb, var(--ui-success, #16a34a) 15%, var(--ui-surface, #ffffff));
|
|
186
|
+
color: var(--ui-success, #16a34a);
|
|
187
|
+
}
|
|
188
|
+
.entry-bar.warning {
|
|
189
|
+
background: color-mix(in srgb, var(--ui-warning, #d97706) 15%, var(--ui-surface, #ffffff));
|
|
190
|
+
color: var(--ui-warning, #d97706);
|
|
191
|
+
}
|
|
192
|
+
.entry-bar.danger {
|
|
193
|
+
background: color-mix(in srgb, var(--ui-danger, #dc2626) 15%, var(--ui-surface, #ffffff));
|
|
194
|
+
color: var(--ui-danger, #dc2626);
|
|
195
|
+
}
|
|
196
|
+
@media (forced-colors: active) {
|
|
197
|
+
.entry-link:focus-visible {
|
|
198
|
+
outline-color: Highlight;
|
|
199
|
+
box-shadow: none;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
@media (prefers-reduced-motion: reduce) {
|
|
203
|
+
.entry-bar {
|
|
204
|
+
transition: none;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
slot {
|
|
208
|
+
display: none;
|
|
209
|
+
}
|
|
210
|
+
`,
|
|
211
|
+
]; }
|
|
212
|
+
/** Renders one all-day/multi-day bar, spanning the visible-week columns it covers. */
|
|
213
|
+
_renderAllDayEntry(entry, weekStart, weekEnd) {
|
|
214
|
+
const visibleStart = entry.startDate < weekStart ? weekStart : entry.startDate;
|
|
215
|
+
const visibleEnd = entry.endDate > weekEnd ? weekEnd : entry.endDate;
|
|
216
|
+
const startCol = dayIndex(visibleStart, weekStart) + 1;
|
|
217
|
+
const endCol = dayIndex(visibleEnd, weekStart) + 2;
|
|
218
|
+
return html `
|
|
219
|
+
<div
|
|
220
|
+
class="entry-bar ${entry.color}"
|
|
221
|
+
data-entry-key=${this.entryKey(entry)}
|
|
222
|
+
title=${entry.href ? nothing : entry.label}
|
|
223
|
+
style="grid-column: ${startCol} / ${endCol}; grid-row: ${entry.lane + 1};"
|
|
224
|
+
>
|
|
225
|
+
${this.renderEntryLink(entry, entry.label)}
|
|
226
|
+
<span class="entry-title" aria-hidden=${entry.href ? "true" : nothing}>${entry.label}</span>
|
|
227
|
+
</div>
|
|
228
|
+
`;
|
|
229
|
+
}
|
|
230
|
+
/** Renders a positioned/sized block for one timed entry, clamped to `day`'s bounds. */
|
|
231
|
+
_renderTimedEntry(entry, laneCount, dayStart, dayEnd) {
|
|
232
|
+
const visibleStart = entry.startDate < dayStart ? dayStart : entry.startDate;
|
|
233
|
+
const visibleEnd = entry.endDate > dayEnd ? dayEnd : entry.endDate;
|
|
234
|
+
const topRem = (minutesSinceMidnight(visibleStart) / 60) * HOUR_HEIGHT_REM;
|
|
235
|
+
const bottomRem = (minutesSinceMidnight(visibleEnd) / 60) * HOUR_HEIGHT_REM;
|
|
236
|
+
const heightRem = Math.max(bottomRem - topRem, HOUR_HEIGHT_REM / 4);
|
|
237
|
+
const widthPercent = 100 / laneCount;
|
|
238
|
+
const bodyText = [entry.label, ...(entry.details ?? [])].filter(Boolean).join("\n");
|
|
239
|
+
return html `
|
|
240
|
+
<div
|
|
241
|
+
class="entry-bar entry-block ${entry.color}"
|
|
242
|
+
data-entry-key=${this.entryKey(entry)}
|
|
243
|
+
title=${entry.href ? nothing : bodyText}
|
|
244
|
+
style="top: ${topRem}rem; height: ${heightRem}rem; left: ${entry.lane * widthPercent}%; width: ${widthPercent}%;"
|
|
245
|
+
>
|
|
246
|
+
${this.renderEntryLink(entry, bodyText)}
|
|
247
|
+
<span class="entry-title" aria-hidden=${entry.href ? "true" : nothing}>${entry.label}</span>
|
|
248
|
+
</div>
|
|
249
|
+
`;
|
|
250
|
+
}
|
|
251
|
+
/** Renders one day's hour column: grid lines plus its own independently laned timed entries. */
|
|
252
|
+
_renderDayColumn(day, timedWeek, todayIso) {
|
|
253
|
+
const dayStart = new Date(day);
|
|
254
|
+
dayStart.setHours(0, 0, 0, 0);
|
|
255
|
+
const dayEnd = new Date(day);
|
|
256
|
+
dayEnd.setHours(23, 59, 59, 999);
|
|
257
|
+
const dayTimed = timedWeek.filter((entry) => overlapsRange(entry, dayStart, dayEnd));
|
|
258
|
+
const { entries: laned, laneCount } = assignLanes(dayTimed);
|
|
259
|
+
const isToday = toIsoDate(day) === todayIso;
|
|
260
|
+
return html `
|
|
261
|
+
<div class="day-column ${isToday ? "today" : ""}">
|
|
262
|
+
${HOURS.map(() => html `<div class="hour-line"></div>`)}
|
|
263
|
+
${repeat(laned, (entry) => this.entryKey(entry), (entry) => this._renderTimedEntry(entry, Math.max(laneCount, 1), dayStart, dayEnd))}
|
|
264
|
+
</div>
|
|
265
|
+
`;
|
|
266
|
+
}
|
|
267
|
+
render() {
|
|
268
|
+
const anyDayInWeek = parseIsoDate(this.date) ?? new Date();
|
|
269
|
+
const weekStart = startOfWeek(anyDayInWeek);
|
|
270
|
+
const days = Array.from({ length: 7 }, (_, i) => addDays(weekStart, i));
|
|
271
|
+
const weekEnd = new Date(days[6]);
|
|
272
|
+
weekEnd.setHours(23, 59, 59, 999);
|
|
273
|
+
const todayIso = toIsoDate(new Date());
|
|
274
|
+
const resolved = this.resolveTimedEntriesFor(weekStart, weekEnd);
|
|
275
|
+
const allDay = resolved.filter((entry) => entry.allDay);
|
|
276
|
+
const timed = resolved.filter((entry) => !entry.allDay);
|
|
277
|
+
const { entries: lanedAllDay, laneCount: allDayLaneCount } = assignLanes(allDay);
|
|
278
|
+
return html `
|
|
279
|
+
<div class="week">
|
|
280
|
+
<div class="week-header">
|
|
281
|
+
<div class="hour-gutter-spacer"></div>
|
|
282
|
+
${days.map((day) => html `
|
|
283
|
+
<div class="day-header ${toIsoDate(day) === todayIso ? "today" : ""}">
|
|
284
|
+
<div>${WEEKDAY_ABBR[day.getDay()]}</div>
|
|
285
|
+
<div class="day-number">${day.getDate()}</div>
|
|
286
|
+
</div>
|
|
287
|
+
`)}
|
|
288
|
+
</div>
|
|
289
|
+
<div class="all-day-band ${allDay.length === 0 ? "empty" : ""}">
|
|
290
|
+
<div class="hour-gutter-spacer"></div>
|
|
291
|
+
<div class="all-day-lanes" style="grid-template-rows: repeat(${Math.max(allDayLaneCount, 1)}, min-content);">
|
|
292
|
+
${repeat(lanedAllDay, (entry) => this.entryKey(entry), (entry) => this._renderAllDayEntry(entry, weekStart, weekEnd))}
|
|
293
|
+
</div>
|
|
294
|
+
</div>
|
|
295
|
+
<div class="grid">
|
|
296
|
+
<div class="hour-gutter">
|
|
297
|
+
${HOURS.map((h) => html `<div class="hour-label-cell">${hourLabel(h)}</div>`)}
|
|
298
|
+
</div>
|
|
299
|
+
<div class="week-days">
|
|
300
|
+
${days.map((day) => this._renderDayColumn(day, timed, todayIso))}
|
|
301
|
+
</div>
|
|
302
|
+
</div>
|
|
303
|
+
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
304
|
+
</div>
|
|
305
|
+
`;
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
__decorate([
|
|
309
|
+
property({ reflect: true })
|
|
310
|
+
], CalendarWeek.prototype, "date", void 0);
|
|
311
|
+
CalendarWeek = __decorate([
|
|
312
|
+
customElement("calendar-week")
|
|
313
|
+
], CalendarWeek);
|
|
314
|
+
export { CalendarWeek };
|
|
315
|
+
//# sourceMappingURL=calendar-week.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-week.js","sourceRoot":"","sources":["../src/calendar-week.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EACL,YAAY,EACZ,OAAO,EACP,WAAW,EACX,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,SAAS,GAGV,MAAM,qBAAqB,CAAC;AAE7B,MAAM,eAAe,GAAG,CAAC,CAAC;AAC1B,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AACtD,MAAM,kBAAkB,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;AAEnF,yEAAyE;AACzE,SAAS,SAAS,CAAC,CAAS;IAC1B,OAAO,kBAAkB,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAC5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G,WAAW,CAAC,MAAM,CAAC,CAAC;QAEjF,OAAO,IAAI,CAAA;;;;YAIH,IAAI,CAAC,GAAG,CACR,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAA;uCACc,SAAS,CAAC,GAAG,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;uBAC1D,YAAY,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;0CACP,GAAG,CAAC,OAAO,EAAE;;aAE1C,CACF;;mCAEwB,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;;yEAEI,IAAI,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC;cACvF,MAAM,CACN,WAAW,EACX,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC/B,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,CAC9D;;;;;cAKC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAA,gCAAgC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC;;;cAG1E,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;;;4BAGhD,IAAI,CAAC,gBAAgB;;KAE5C,CAAC;IACJ,CAAC;CACF,CAAA;AArR8B;IAA5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0CAAsC;AAFvD,YAAY;IADxB,aAAa,CAAC,eAAe,CAAC;GAClB,YAAY,CAuRxB","sourcesContent":["import { css, html, nothing } from \"lit\";\nimport { customElement, property } from \"lit/decorators.js\";\nimport { repeat } from \"lit/directives/repeat.js\";\nimport { CalendarTimelineBase } from \"./calendar-timeline-base.js\";\nimport { tokens } from \"./tokens.js\";\nimport {\n WEEKDAY_ABBR,\n addDays,\n assignLanes,\n minutesSinceMidnight,\n overlapsRange,\n parseIsoDate,\n startOfWeek,\n toIsoDate,\n type LanedEntry,\n type ResolvedTimedEntry,\n} from \"./utils/calendar.js\";\n\nconst HOUR_HEIGHT_REM = 3;\nconst HOURS = Array.from({ length: 24 }, (_, i) => i);\nconst hourLabelFormatter = new Intl.DateTimeFormat(undefined, { hour: \"numeric\" });\n\n/** Formats hour `h` (0-23) as a locale-aware hour label, e.g. \"9 AM\". */\nfunction hourLabel(h: number): string {\n return hourLabelFormatter.format(new Date(2000, 0, 1, h));\n}\n\n/** 0-based day-of-week offset between `date` (local midnight) and `weekStart`. */\nfunction dayIndex(date: Date, weekStart: Date): number {\n return Math.round((date.getTime() - weekStart.getTime()) / 86_400_000);\n}\n\n/**\n * Sunday-through-Saturday week rendered as one shared hourly time grid — the\n * seven-day sibling of `calendar-day`. Unlike `calendar-year` composing 12\n * `calendar-month` children, this is its own independent 7-column layout\n * (not 7 nested `<calendar-day>` elements): a single hour gutter is drawn\n * once, and multi-day/all-day entries span the days they cover as one\n * continuous bar in a shared all-day band, since lanes for that band are\n * assigned once across the whole visible week (unlike `calendar-month`'s\n * documented per-instance lane limitation). Timed entries stack into\n * side-by-side columns independently per day, same as `calendar-day`.\n * Read-only.\n *\n * Shares its slotted-entry observation, resolution, and hover/focus\n * interaction sync with `calendar-day` via `CalendarTimelineBase`.\n *\n * @element calendar-week\n * @slot - Declarative `calendar-entry` elements to render for this week.\n */\n@customElement(\"calendar-week\")\nexport class CalendarWeek extends CalendarTimelineBase {\n /** Any date within the displayed week (`\"YYYY-MM-DD\"`) — the week runs Sunday through Saturday. */\n @property({ reflect: true }) date: string = toIsoDate(new Date());\n\n static override styles = [\n tokens,\n css`\n :host {\n display: block;\n font-family: var(\n --ui-font,\n ui-sans-serif,\n system-ui,\n sans-serif,\n \"Apple Color Emoji\",\n \"Segoe UI Emoji\",\n \"Segoe UI Symbol\",\n \"Noto Color Emoji\"\n );\n font-size: var(--ui-font-size-sm, 0.75rem);\n }\n .week-header {\n display: flex;\n margin-bottom: 0.5rem;\n }\n .hour-gutter-spacer {\n flex: 0 0 3rem;\n }\n .day-header {\n flex: 1 1 0;\n color: var(--ui-text-muted, #64748b);\n font-weight: var(--ui-font-weight-semibold, 600);\n text-align: center;\n }\n .day-header .day-number {\n color: var(--ui-text, #0f172a);\n font-size: var(--ui-font-size-lg, 1rem);\n }\n .day-header.today,\n .day-header.today .day-number {\n color: var(--ui-primary, #4f46e5);\n }\n .all-day-band {\n display: flex;\n margin-bottom: 0.5rem;\n }\n .all-day-band.empty {\n display: none;\n }\n .all-day-lanes {\n display: grid;\n flex: 1 1 auto;\n grid-auto-rows: min-content;\n grid-template-columns: repeat(7, 1fr);\n gap: 0.25rem;\n }\n .grid {\n display: flex;\n border-top: 1px solid var(--ui-border, #e2e8f0);\n }\n .hour-gutter {\n flex: 0 0 3rem;\n }\n .hour-label-cell {\n box-sizing: border-box;\n height: ${HOUR_HEIGHT_REM}rem;\n padding-right: 0.5rem;\n border-bottom: 1px solid var(--ui-border, #e2e8f0);\n color: var(--ui-text-muted, #64748b);\n font-variant-numeric: tabular-nums;\n text-align: right;\n white-space: nowrap;\n }\n .week-days {\n display: flex;\n flex: 1 1 auto;\n }\n .day-column {\n position: relative;\n flex: 1 1 0;\n height: ${HOUR_HEIGHT_REM * 24}rem;\n border-left: 1px solid var(--ui-border, #e2e8f0);\n }\n .day-column.today {\n background: color-mix(in srgb, var(--ui-primary, #4f46e5) 6%, transparent);\n }\n .hour-line {\n box-sizing: border-box;\n height: ${HOUR_HEIGHT_REM}rem;\n border-bottom: 1px solid var(--ui-border, #e2e8f0);\n }\n .entry-bar {\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n border-radius: var(--ui-radius-sm, 0.25rem);\n padding: 0.25rem 0.5rem;\n transition: box-shadow 120ms ease;\n }\n .entry-bar.entry-block {\n position: absolute;\n }\n .entry-bar.entry-hovered,\n .entry-bar.entry-focused {\n box-shadow: inset 0 0 0 100vmax var(--ui-hover-overlay, rgb(255 255 255 / 0.32));\n }\n .entry-title {\n display: block;\n overflow: hidden;\n font-weight: var(--ui-font-weight-medium, 500);\n white-space: nowrap;\n text-overflow: ellipsis;\n pointer-events: none;\n }\n .entry-link {\n position: absolute;\n z-index: 1;\n inset: 0;\n border-radius: inherit;\n color: inherit;\n cursor: pointer;\n text-decoration: none;\n }\n .entry-link:focus-visible {\n outline: 2px solid var(--ui-primary, #4f46e5);\n outline-offset: -2px;\n box-shadow: var(--ui-focus-ring, 0 0 0 3px rgb(79 70 229 / 0.35)) inset;\n }\n .entry-bar.neutral {\n background: color-mix(in srgb, var(--ui-text-muted, #64748b) 15%, var(--ui-surface, #ffffff));\n color: var(--ui-text-muted, #64748b);\n }\n .entry-bar.info {\n background: color-mix(in srgb, var(--ui-info, #0ea5e9) 15%, var(--ui-surface, #ffffff));\n color: var(--ui-info, #0ea5e9);\n }\n .entry-bar.primary {\n background: color-mix(in srgb, var(--ui-primary, #4f46e5) 15%, var(--ui-surface, #ffffff));\n color: var(--ui-primary, #4f46e5);\n }\n .entry-bar.success {\n background: color-mix(in srgb, var(--ui-success, #16a34a) 15%, var(--ui-surface, #ffffff));\n color: var(--ui-success, #16a34a);\n }\n .entry-bar.warning {\n background: color-mix(in srgb, var(--ui-warning, #d97706) 15%, var(--ui-surface, #ffffff));\n color: var(--ui-warning, #d97706);\n }\n .entry-bar.danger {\n background: color-mix(in srgb, var(--ui-danger, #dc2626) 15%, var(--ui-surface, #ffffff));\n color: var(--ui-danger, #dc2626);\n }\n @media (forced-colors: active) {\n .entry-link:focus-visible {\n outline-color: Highlight;\n box-shadow: none;\n }\n }\n @media (prefers-reduced-motion: reduce) {\n .entry-bar {\n transition: none;\n }\n }\n slot {\n display: none;\n }\n `,\n ];\n\n /** Renders one all-day/multi-day bar, spanning the visible-week columns it covers. */\n private _renderAllDayEntry(entry: LanedEntry, weekStart: Date, weekEnd: Date) {\n const visibleStart = entry.startDate < weekStart ? weekStart : entry.startDate;\n const visibleEnd = entry.endDate > weekEnd ? weekEnd : entry.endDate;\n const startCol = dayIndex(visibleStart, weekStart) + 1;\n const endCol = dayIndex(visibleEnd, weekStart) + 2;\n return html`\n <div\n class=\"entry-bar ${entry.color}\"\n data-entry-key=${this.entryKey(entry)}\n title=${entry.href ? nothing : entry.label}\n style=\"grid-column: ${startCol} / ${endCol}; grid-row: ${entry.lane + 1};\"\n >\n ${this.renderEntryLink(entry, entry.label)}\n <span class=\"entry-title\" aria-hidden=${entry.href ? \"true\" : nothing}>${entry.label}</span>\n </div>\n `;\n }\n\n /** Renders a positioned/sized block for one timed entry, clamped to `day`'s bounds. */\n private _renderTimedEntry(entry: LanedEntry, laneCount: number, dayStart: Date, dayEnd: Date) {\n const visibleStart = entry.startDate < dayStart ? dayStart : entry.startDate;\n const visibleEnd = entry.endDate > dayEnd ? dayEnd : entry.endDate;\n const topRem = (minutesSinceMidnight(visibleStart) / 60) * HOUR_HEIGHT_REM;\n const bottomRem = (minutesSinceMidnight(visibleEnd) / 60) * HOUR_HEIGHT_REM;\n const heightRem = Math.max(bottomRem - topRem, HOUR_HEIGHT_REM / 4);\n const widthPercent = 100 / laneCount;\n const bodyText = [entry.label, ...(entry.details ?? [])].filter(Boolean).join(\"\\n\");\n return html`\n <div\n class=\"entry-bar entry-block ${entry.color}\"\n data-entry-key=${this.entryKey(entry)}\n title=${entry.href ? nothing : bodyText}\n style=\"top: ${topRem}rem; height: ${heightRem}rem; left: ${entry.lane * widthPercent}%; width: ${widthPercent}%;\"\n >\n ${this.renderEntryLink(entry, bodyText)}\n <span class=\"entry-title\" aria-hidden=${entry.href ? \"true\" : nothing}>${entry.label}</span>\n </div>\n `;\n }\n\n /** Renders one day's hour column: grid lines plus its own independently laned timed entries. */\n private _renderDayColumn(day: Date, timedWeek: ResolvedTimedEntry[], todayIso: string) {\n const dayStart = new Date(day);\n dayStart.setHours(0, 0, 0, 0);\n const dayEnd = new Date(day);\n dayEnd.setHours(23, 59, 59, 999);\n const dayTimed = timedWeek.filter((entry) => overlapsRange(entry, dayStart, dayEnd));\n const { entries: laned, laneCount } = assignLanes(dayTimed);\n const isToday = toIsoDate(day) === todayIso;\n return html`\n <div class=\"day-column ${isToday ? \"today\" : \"\"}\">\n ${HOURS.map(() => html`<div class=\"hour-line\"></div>`)}\n ${repeat(\n laned,\n (entry) => this.entryKey(entry),\n (entry) => this._renderTimedEntry(entry, Math.max(laneCount, 1), dayStart, dayEnd),\n )}\n </div>\n `;\n }\n\n protected override render() {\n const anyDayInWeek = parseIsoDate(this.date) ?? new Date();\n const weekStart = startOfWeek(anyDayInWeek);\n const days = Array.from({ length: 7 }, (_, i) => addDays(weekStart, i));\n const weekEnd = new Date(days[6]);\n weekEnd.setHours(23, 59, 59, 999);\n const todayIso = toIsoDate(new Date());\n\n const resolved = this.resolveTimedEntriesFor(weekStart, weekEnd);\n const allDay = resolved.filter((entry) => entry.allDay);\n const timed = resolved.filter((entry) => !entry.allDay);\n const { entries: lanedAllDay, laneCount: allDayLaneCount } = assignLanes(allDay);\n\n return html`\n <div class=\"week\">\n <div class=\"week-header\">\n <div class=\"hour-gutter-spacer\"></div>\n ${days.map(\n (day) => html`\n <div class=\"day-header ${toIsoDate(day) === todayIso ? \"today\" : \"\"}\">\n <div>${WEEKDAY_ABBR[day.getDay()]}</div>\n <div class=\"day-number\">${day.getDate()}</div>\n </div>\n `,\n )}\n </div>\n <div class=\"all-day-band ${allDay.length === 0 ? \"empty\" : \"\"}\">\n <div class=\"hour-gutter-spacer\"></div>\n <div class=\"all-day-lanes\" style=\"grid-template-rows: repeat(${Math.max(allDayLaneCount, 1)}, min-content);\">\n ${repeat(\n lanedAllDay,\n (entry) => this.entryKey(entry),\n (entry) => this._renderAllDayEntry(entry, weekStart, weekEnd),\n )}\n </div>\n </div>\n <div class=\"grid\">\n <div class=\"hour-gutter\">\n ${HOURS.map((h) => html`<div class=\"hour-label-cell\">${hourLabel(h)}</div>`)}\n </div>\n <div class=\"week-days\">\n ${days.map((day) => this._renderDayColumn(day, timed, todayIso))}\n </div>\n </div>\n <slot @slotchange=${this.handleSlotChange}></slot>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"calendar-week\": CalendarWeek;\n }\n}\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import "./form-actions.js";
|
|
3
|
+
import "./kbd-hint.js";
|
|
3
4
|
import "./ui-button.js";
|
|
4
5
|
/**
|
|
5
6
|
* GitHub/Slack-style comment composer: a one-line text field that expands
|
|
@@ -11,7 +12,11 @@ import "./ui-button.js";
|
|
|
11
12
|
* Cancel button or `Escape`) discards the draft and collapses without
|
|
12
13
|
* firing `submit`. Clicking away (blur) does neither — the composer stays
|
|
13
14
|
* expanded until the user explicitly submits or cancels. `Cmd`/`Ctrl`+`Enter`
|
|
14
|
-
* submits from the textarea, matching `editable-text`'s multiline shortcut
|
|
15
|
+
* submits from the textarea, matching `editable-text`'s multiline shortcut —
|
|
16
|
+
* the Submit button always shows a `kbd-hint` for it, so the shortcut is
|
|
17
|
+
* discoverable rather than a hidden power-user feature. Calling the standard
|
|
18
|
+
* `.focus()` method expands the composer (if collapsed) and focuses its
|
|
19
|
+
* field, for an ancestor that wants to drive it programmatically.
|
|
15
20
|
* Purely token-styled (no bespoke colors), so it's themeable via the same
|
|
16
21
|
* `--ui-*` custom properties as every other value-entry field.
|
|
17
22
|
*
|
|
@@ -39,6 +44,15 @@ export declare class CommentComposer extends LitElement {
|
|
|
39
44
|
private _draft;
|
|
40
45
|
private _textarea?;
|
|
41
46
|
private _expand;
|
|
47
|
+
/**
|
|
48
|
+
* Expands the composer (if collapsed) and focuses its field, so an
|
|
49
|
+
* ancestor can drive it programmatically — e.g. a "reply" affordance
|
|
50
|
+
* elsewhere on the page that should land the user in this composer
|
|
51
|
+
* already expanded, not just visually scrolled to a one-line input.
|
|
52
|
+
* A no-op while `disabled`. Expanding re-renders asynchronously; the
|
|
53
|
+
* actual focus happens in `updated()` once the textarea exists.
|
|
54
|
+
*/
|
|
55
|
+
focus(options?: FocusOptions): void;
|
|
42
56
|
private _onInput;
|
|
43
57
|
private _cancel;
|
|
44
58
|
private _submit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment-composer.d.ts","sourceRoot":"","sources":["../src/comment-composer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,OAAO,mBAAmB,CAAC;AAC3B,OAAO,gBAAgB,CAAC;AAExB
|
|
1
|
+
{"version":3,"file":"comment-composer.d.ts","sourceRoot":"","sources":["../src/comment-composer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,OAAO,mBAAmB,CAAC;AAC3B,OAAO,eAAe,CAAC;AACvB,OAAO,gBAAgB,CAAC;AAExB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBACa,eAAgB,SAAQ,UAAU;IAC7C,OAAgB,MAAM,4BAkEpB;IAEF,6DAA6D;IACjD,KAAK,SAAM;IACvB,yCAAyC;IAC7B,WAAW,SAAoB;IAC3C,qDAAqD;IACzC,KAAK,SAAa;IAC9B,uCAAuC;IACX,IAAI,SAAK;IACrC,2CAA2C;IACF,WAAW,SAAY;IAChE,6CAA6C;IACJ,WAAW,SAAY;IAChE,mCAAmC;IACN,QAAQ,UAAS;IAErC,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,MAAM,CAAM;IAEV,OAAO,CAAC,SAAS,CAAC,CAAsB;IAE3D,OAAO,CAAC,OAAO;IAMf;;;;;;;OAOG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI,CAO3C;IAED,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,OAAO;IAMf,OAAO,CAAC,OAAO;IAWf,OAAO,CAAC,UAAU;IAUlB,UAAmB,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAQ9D;IAEQ,MAAM,yCAgDd;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,kBAAkB,EAAE,eAAe,CAAC;KACrC;CACF"}
|
package/dist/comment-composer.js
CHANGED
|
@@ -8,6 +8,7 @@ import { LitElement, css, html } from "lit";
|
|
|
8
8
|
import { customElement, property, query, state } from "lit/decorators.js";
|
|
9
9
|
import { tokens } from "./tokens.js";
|
|
10
10
|
import "./form-actions.js";
|
|
11
|
+
import "./kbd-hint.js";
|
|
11
12
|
import "./ui-button.js";
|
|
12
13
|
/**
|
|
13
14
|
* GitHub/Slack-style comment composer: a one-line text field that expands
|
|
@@ -19,7 +20,11 @@ import "./ui-button.js";
|
|
|
19
20
|
* Cancel button or `Escape`) discards the draft and collapses without
|
|
20
21
|
* firing `submit`. Clicking away (blur) does neither — the composer stays
|
|
21
22
|
* expanded until the user explicitly submits or cancels. `Cmd`/`Ctrl`+`Enter`
|
|
22
|
-
* submits from the textarea, matching `editable-text`'s multiline shortcut
|
|
23
|
+
* submits from the textarea, matching `editable-text`'s multiline shortcut —
|
|
24
|
+
* the Submit button always shows a `kbd-hint` for it, so the shortcut is
|
|
25
|
+
* discoverable rather than a hidden power-user feature. Calling the standard
|
|
26
|
+
* `.focus()` method expands the composer (if collapsed) and focuses its
|
|
27
|
+
* field, for an ancestor that wants to drive it programmatically.
|
|
23
28
|
* Purely token-styled (no bespoke colors), so it's themeable via the same
|
|
24
29
|
* `--ui-*` custom properties as every other value-entry field.
|
|
25
30
|
*
|
|
@@ -120,6 +125,23 @@ let CommentComposer = class CommentComposer extends LitElement {
|
|
|
120
125
|
this._draft = this.value;
|
|
121
126
|
this._expanded = true;
|
|
122
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* Expands the composer (if collapsed) and focuses its field, so an
|
|
130
|
+
* ancestor can drive it programmatically — e.g. a "reply" affordance
|
|
131
|
+
* elsewhere on the page that should land the user in this composer
|
|
132
|
+
* already expanded, not just visually scrolled to a one-line input.
|
|
133
|
+
* A no-op while `disabled`. Expanding re-renders asynchronously; the
|
|
134
|
+
* actual focus happens in `updated()` once the textarea exists.
|
|
135
|
+
*/
|
|
136
|
+
focus(options) {
|
|
137
|
+
if (this.disabled)
|
|
138
|
+
return;
|
|
139
|
+
if (!this._expanded) {
|
|
140
|
+
this._expand();
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
this._textarea?.focus(options);
|
|
144
|
+
}
|
|
123
145
|
_onInput(e) {
|
|
124
146
|
this._draft = e.target.value;
|
|
125
147
|
}
|
|
@@ -187,8 +209,8 @@ let CommentComposer = class CommentComposer extends LitElement {
|
|
|
187
209
|
size="sm"
|
|
188
210
|
?disabled=${!canSubmit}
|
|
189
211
|
@click=${this._submit}
|
|
190
|
-
>${this.submitLabel}
|
|
191
|
-
>
|
|
212
|
+
>${this.submitLabel} <kbd-hint keys="Mod+Enter"></kbd-hint
|
|
213
|
+
></ui-button>
|
|
192
214
|
</form-actions>
|
|
193
215
|
</div>
|
|
194
216
|
`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment-composer.js","sourceRoot":"","sources":["../src/comment-composer.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,gBAAgB,CAAC;AAExB;;;;;;;;;;;;;;;;;GAiBG;AAEI,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,UAAU;IAAxC;;QAqEL,6DA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/decorators.js\";\nimport { tokens } from \"./tokens.js\";\nimport \"./form-actions.js\";\nimport \"./ui-button.js\";\n\n/**\n * GitHub/Slack-style comment composer: a one-line text field that expands\n * into a multi-line textarea with a bottom-right Cancel/Submit footer\n * (`form-actions`) as soon as it's focused or clicked. Submitting fires\n * `submit` with the trimmed value, then clears the field and collapses back\n * to one line — it's meant for posting one comment at a time, not editing a\n * persistent value in place (see `editable-text` for that). Canceling (the\n * Cancel button or `Escape`) discards the draft and collapses without\n * firing `submit`. Clicking away (blur) does neither — the composer stays\n * expanded until the user explicitly submits or cancels. `Cmd`/`Ctrl`+`Enter`\n * submits from the textarea, matching `editable-text`'s multiline shortcut.\n * Purely token-styled (no bespoke colors), so it's themeable via the same\n * `--ui-*` custom properties as every other value-entry field.\n *\n * @element comment-composer\n * @fires submit - User submitted a non-empty comment; detail: `{ value: string }`.\n * @fires cancel - User discarded the draft via the Cancel button or `Escape`.\n */\n@customElement(\"comment-composer\")\nexport class CommentComposer extends LitElement {\n static override styles = [\n tokens,\n css`\n :host {\n display: block;\n }\n .shell {\n border: 1px solid var(--ui-border, #e2e8f0);\n border-radius: var(--ui-radius-sm, 0.25rem);\n background: var(--ui-surface, #ffffff);\n }\n .shell.expanded {\n border-radius: var(--ui-radius, 0.5rem);\n }\n input,\n textarea {\n display: block;\n box-sizing: border-box;\n width: 100%;\n border: 0;\n background: none;\n color: var(--ui-text, #0f172a);\n font-family: var(\n --ui-font,\n ui-sans-serif,\n system-ui,\n sans-serif,\n \"Apple Color Emoji\",\n \"Segoe UI Emoji\",\n \"Segoe UI Symbol\",\n \"Noto Color Emoji\"\n );\n font-size: var(--ui-font-size, 0.875rem);\n line-height: var(--ui-line-height-normal, 1.5);\n padding: 0.5rem 0.75rem;\n outline: none;\n }\n textarea {\n resize: none;\n }\n input:focus-visible,\n .shell:not(.expanded):focus-within {\n box-shadow: var(--ui-focus-ring, 0 0 0 3px rgb(79 70 229 / 0.35));\n border-radius: var(--ui-radius-sm, 0.25rem);\n }\n textarea:focus-visible {\n outline: none;\n }\n .footer {\n display: flex;\n justify-content: flex-end;\n padding: 0.5rem 0.75rem 0.75rem;\n }\n input:disabled,\n textarea:disabled {\n cursor: not-allowed;\n opacity: 0.6;\n }\n @media (forced-colors: active) {\n .shell:not(.expanded):focus-within {\n outline: 2px solid CanvasText;\n outline-offset: 2px;\n box-shadow: none;\n }\n }\n `,\n ];\n\n /** Committed value shown in the collapsed one-line field. */\n @property() value = \"\";\n /** Placeholder text shown when empty. */\n @property() placeholder = \"Add a comment…\";\n /** Accessible name applied to the input/textarea. */\n @property() label = \"Comment\";\n /** Visible row count once expanded. */\n @property({ type: Number }) rows = 4;\n /** Label for the primary submit button. */\n @property({ attribute: \"submit-label\" }) submitLabel = \"Submit\";\n /** Label for the secondary cancel button. */\n @property({ attribute: \"cancel-label\" }) cancelLabel = \"Cancel\";\n /** Disables the field entirely. */\n @property({ type: Boolean }) disabled = false;\n\n @state() private _expanded = false;\n @state() private _draft = \"\";\n\n @query(\"textarea\") private _textarea?: HTMLTextAreaElement;\n\n private _expand(): void {\n if (this.disabled || this._expanded) return;\n this._draft = this.value;\n this._expanded = true;\n }\n\n private _onInput(e: Event): void {\n this._draft = (e.target as HTMLInputElement | HTMLTextAreaElement).value;\n }\n\n private _cancel(): void {\n this._draft = this.value;\n this._expanded = false;\n this.dispatchEvent(new CustomEvent(\"cancel\", { bubbles: true, composed: true }));\n }\n\n private _submit(): void {\n const trimmed = this._draft.trim();\n if (trimmed === \"\") return;\n this.value = \"\";\n this._draft = \"\";\n this._expanded = false;\n this.dispatchEvent(\n new CustomEvent(\"submit\", { detail: { value: trimmed }, bubbles: true, composed: true }),\n );\n }\n\n private _onKeydown(e: KeyboardEvent): void {\n if (e.key === \"Escape\") {\n e.preventDefault();\n this._cancel();\n } else if (e.key === \"Enter\" && (e.metaKey || e.ctrlKey)) {\n e.preventDefault();\n this._submit();\n }\n }\n\n protected override updated(changed: Map<string, unknown>): void {\n if (changed.has(\"_expanded\") && this._expanded) {\n const field = this._textarea;\n if (!field) return;\n field.focus();\n const end = field.value.length;\n field.setSelectionRange(end, end);\n }\n }\n\n override render() {\n const canSubmit = this._draft.trim() !== \"\";\n return html`\n <div class=\"shell ${this._expanded ? \"expanded\" : \"\"}\">\n ${this._expanded\n ? html`\n <textarea\n rows=${this.rows}\n .value=${this._draft}\n placeholder=${this.placeholder}\n aria-label=${this.label}\n ?disabled=${this.disabled}\n @input=${this._onInput}\n @keydown=${this._onKeydown}\n ></textarea>\n <div class=\"footer\">\n <form-actions>\n <ui-button\n slot=\"secondary\"\n variant=\"secondary\"\n size=\"sm\"\n @click=${this._cancel}\n >${this.cancelLabel}</ui-button\n >\n <ui-button\n slot=\"primary\"\n variant=\"primary\"\n size=\"sm\"\n ?disabled=${!canSubmit}\n @click=${this._submit}\n >${this.submitLabel}</ui-button\n >\n </form-actions>\n </div>\n `\n : html`\n <input\n type=\"text\"\n .value=${this.value}\n placeholder=${this.placeholder}\n aria-label=${this.label}\n ?disabled=${this.disabled}\n @focus=${this._expand}\n @click=${this._expand}\n />\n `}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"comment-composer\": CommentComposer;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"comment-composer.js","sourceRoot":"","sources":["../src/comment-composer.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,eAAe,CAAC;AACvB,OAAO,gBAAgB,CAAC;AAExB;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEI,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,UAAU;IAAxC;;QAqEL,6D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AAO,EAAE,CAAC;iDAAkB;AAE7B;IAAhB,KAAK,EAAE;kDAA2B;AAClB;IAAhB,KAAK,EAAE;+CAAqB;AAEF;IAA1B,KAAK,CAAC,UAAU,CAAC;kDAAyC;AAvFhD,eAAe;IAD3B,aAAa,CAAC,kBAAkB,CAAC;GACrB,eAAe,CA0M3B","sourcesContent":["import { LitElement, css, html } from \"lit\";\nimport { customElement, property, query, state } from \"lit/decorators.js\";\nimport { tokens } from \"./tokens.js\";\nimport \"./form-actions.js\";\nimport \"./kbd-hint.js\";\nimport \"./ui-button.js\";\n\n/**\n * GitHub/Slack-style comment composer: a one-line text field that expands\n * into a multi-line textarea with a bottom-right Cancel/Submit footer\n * (`form-actions`) as soon as it's focused or clicked. Submitting fires\n * `submit` with the trimmed value, then clears the field and collapses back\n * to one line — it's meant for posting one comment at a time, not editing a\n * persistent value in place (see `editable-text` for that). Canceling (the\n * Cancel button or `Escape`) discards the draft and collapses without\n * firing `submit`. Clicking away (blur) does neither — the composer stays\n * expanded until the user explicitly submits or cancels. `Cmd`/`Ctrl`+`Enter`\n * submits from the textarea, matching `editable-text`'s multiline shortcut —\n * the Submit button always shows a `kbd-hint` for it, so the shortcut is\n * discoverable rather than a hidden power-user feature. Calling the standard\n * `.focus()` method expands the composer (if collapsed) and focuses its\n * field, for an ancestor that wants to drive it programmatically.\n * Purely token-styled (no bespoke colors), so it's themeable via the same\n * `--ui-*` custom properties as every other value-entry field.\n *\n * @element comment-composer\n * @fires submit - User submitted a non-empty comment; detail: `{ value: string }`.\n * @fires cancel - User discarded the draft via the Cancel button or `Escape`.\n */\n@customElement(\"comment-composer\")\nexport class CommentComposer extends LitElement {\n static override styles = [\n tokens,\n css`\n :host {\n display: block;\n }\n .shell {\n border: 1px solid var(--ui-border, #e2e8f0);\n border-radius: var(--ui-radius-sm, 0.25rem);\n background: var(--ui-surface, #ffffff);\n }\n .shell.expanded {\n border-radius: var(--ui-radius, 0.5rem);\n }\n input,\n textarea {\n display: block;\n box-sizing: border-box;\n width: 100%;\n border: 0;\n background: none;\n color: var(--ui-text, #0f172a);\n font-family: var(\n --ui-font,\n ui-sans-serif,\n system-ui,\n sans-serif,\n \"Apple Color Emoji\",\n \"Segoe UI Emoji\",\n \"Segoe UI Symbol\",\n \"Noto Color Emoji\"\n );\n font-size: var(--ui-font-size, 0.875rem);\n line-height: var(--ui-line-height-normal, 1.5);\n padding: 0.5rem 0.75rem;\n outline: none;\n }\n textarea {\n resize: none;\n }\n input:focus-visible,\n .shell:not(.expanded):focus-within {\n box-shadow: var(--ui-focus-ring, 0 0 0 3px rgb(79 70 229 / 0.35));\n border-radius: var(--ui-radius-sm, 0.25rem);\n }\n textarea:focus-visible {\n outline: none;\n }\n .footer {\n display: flex;\n justify-content: flex-end;\n padding: 0.5rem 0.75rem 0.75rem;\n }\n input:disabled,\n textarea:disabled {\n cursor: not-allowed;\n opacity: 0.6;\n }\n @media (forced-colors: active) {\n .shell:not(.expanded):focus-within {\n outline: 2px solid CanvasText;\n outline-offset: 2px;\n box-shadow: none;\n }\n }\n `,\n ];\n\n /** Committed value shown in the collapsed one-line field. */\n @property() value = \"\";\n /** Placeholder text shown when empty. */\n @property() placeholder = \"Add a comment…\";\n /** Accessible name applied to the input/textarea. */\n @property() label = \"Comment\";\n /** Visible row count once expanded. */\n @property({ type: Number }) rows = 4;\n /** Label for the primary submit button. */\n @property({ attribute: \"submit-label\" }) submitLabel = \"Submit\";\n /** Label for the secondary cancel button. */\n @property({ attribute: \"cancel-label\" }) cancelLabel = \"Cancel\";\n /** Disables the field entirely. */\n @property({ type: Boolean }) disabled = false;\n\n @state() private _expanded = false;\n @state() private _draft = \"\";\n\n @query(\"textarea\") private _textarea?: HTMLTextAreaElement;\n\n private _expand(): void {\n if (this.disabled || this._expanded) return;\n this._draft = this.value;\n this._expanded = true;\n }\n\n /**\n * Expands the composer (if collapsed) and focuses its field, so an\n * ancestor can drive it programmatically — e.g. a \"reply\" affordance\n * elsewhere on the page that should land the user in this composer\n * already expanded, not just visually scrolled to a one-line input.\n * A no-op while `disabled`. Expanding re-renders asynchronously; the\n * actual focus happens in `updated()` once the textarea exists.\n */\n override focus(options?: FocusOptions): void {\n if (this.disabled) return;\n if (!this._expanded) {\n this._expand();\n return;\n }\n this._textarea?.focus(options);\n }\n\n private _onInput(e: Event): void {\n this._draft = (e.target as HTMLInputElement | HTMLTextAreaElement).value;\n }\n\n private _cancel(): void {\n this._draft = this.value;\n this._expanded = false;\n this.dispatchEvent(new CustomEvent(\"cancel\", { bubbles: true, composed: true }));\n }\n\n private _submit(): void {\n const trimmed = this._draft.trim();\n if (trimmed === \"\") return;\n this.value = \"\";\n this._draft = \"\";\n this._expanded = false;\n this.dispatchEvent(\n new CustomEvent(\"submit\", { detail: { value: trimmed }, bubbles: true, composed: true }),\n );\n }\n\n private _onKeydown(e: KeyboardEvent): void {\n if (e.key === \"Escape\") {\n e.preventDefault();\n this._cancel();\n } else if (e.key === \"Enter\" && (e.metaKey || e.ctrlKey)) {\n e.preventDefault();\n this._submit();\n }\n }\n\n protected override updated(changed: Map<string, unknown>): void {\n if (changed.has(\"_expanded\") && this._expanded) {\n const field = this._textarea;\n if (!field) return;\n field.focus();\n const end = field.value.length;\n field.setSelectionRange(end, end);\n }\n }\n\n override render() {\n const canSubmit = this._draft.trim() !== \"\";\n return html`\n <div class=\"shell ${this._expanded ? \"expanded\" : \"\"}\">\n ${this._expanded\n ? html`\n <textarea\n rows=${this.rows}\n .value=${this._draft}\n placeholder=${this.placeholder}\n aria-label=${this.label}\n ?disabled=${this.disabled}\n @input=${this._onInput}\n @keydown=${this._onKeydown}\n ></textarea>\n <div class=\"footer\">\n <form-actions>\n <ui-button\n slot=\"secondary\"\n variant=\"secondary\"\n size=\"sm\"\n @click=${this._cancel}\n >${this.cancelLabel}</ui-button\n >\n <ui-button\n slot=\"primary\"\n variant=\"primary\"\n size=\"sm\"\n ?disabled=${!canSubmit}\n @click=${this._submit}\n >${this.submitLabel} <kbd-hint keys=\"Mod+Enter\"></kbd-hint\n ></ui-button>\n </form-actions>\n </div>\n `\n : html`\n <input\n type=\"text\"\n .value=${this.value}\n placeholder=${this.placeholder}\n aria-label=${this.label}\n ?disabled=${this.disabled}\n @focus=${this._expand}\n @click=${this._expand}\n />\n `}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"comment-composer\": CommentComposer;\n }\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { PhotoGallery, type PhotoGalleryChangeReason, type PhotoGalleryObjectFit
|
|
|
5
5
|
export { RevealButton } from "./reveal-button.js";
|
|
6
6
|
export { RomanNumeral } from "./roman-numeral.js";
|
|
7
7
|
export { ConfirmDialog } from "./confirm-dialog.js";
|
|
8
|
+
export { ModalDialog, type ModalDialogSize } from "./modal-dialog.js";
|
|
8
9
|
export { ContentDivider } from "./content-divider.js";
|
|
9
10
|
export { ToastNotification, notifySuccess, notifyError, notifyInfo, notifyWarning, type ToastVariant, } from "./toast-notification.js";
|
|
10
11
|
export { ScrollToBottom } from "./scroll-to-bottom.js";
|
|
@@ -57,8 +58,10 @@ export { PaginationNav, type PageChangeDetail } from "./pagination-nav.js";
|
|
|
57
58
|
export { FormActions } from "./form-actions.js";
|
|
58
59
|
export { TimelineContainer } from "./timeline-container.js";
|
|
59
60
|
export { TimelineEntry } from "./timeline-entry.js";
|
|
61
|
+
export { CalendarDay } from "./calendar-day.js";
|
|
60
62
|
export { CalendarEntry } from "./calendar-entry.js";
|
|
61
63
|
export { CalendarMonth } from "./calendar-month.js";
|
|
64
|
+
export { CalendarWeek } from "./calendar-week.js";
|
|
62
65
|
export { CalendarYear } from "./calendar-year.js";
|
|
63
66
|
export { KanbanBoard, type KanbanCardData, type KanbanColumnData, type KanbanCardMoveDetail, type KanbanCardOpenDetail, } from "./kanban-board.js";
|
|
64
67
|
export { KanbanColumn } from "./kanban-column.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
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AAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnE,cAAc,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export { PhotoGallery, } from "./photo-gallery.js";
|
|
|
5
5
|
export { RevealButton } from "./reveal-button.js";
|
|
6
6
|
export { RomanNumeral } from "./roman-numeral.js";
|
|
7
7
|
export { ConfirmDialog } from "./confirm-dialog.js";
|
|
8
|
+
export { ModalDialog } from "./modal-dialog.js";
|
|
8
9
|
export { ContentDivider } from "./content-divider.js";
|
|
9
10
|
export { ToastNotification, notifySuccess, notifyError, notifyInfo, notifyWarning, } from "./toast-notification.js";
|
|
10
11
|
export { ScrollToBottom } from "./scroll-to-bottom.js";
|
|
@@ -57,8 +58,10 @@ export { PaginationNav } from "./pagination-nav.js";
|
|
|
57
58
|
export { FormActions } from "./form-actions.js";
|
|
58
59
|
export { TimelineContainer } from "./timeline-container.js";
|
|
59
60
|
export { TimelineEntry } from "./timeline-entry.js";
|
|
61
|
+
export { CalendarDay } from "./calendar-day.js";
|
|
60
62
|
export { CalendarEntry } from "./calendar-entry.js";
|
|
61
63
|
export { CalendarMonth } from "./calendar-month.js";
|
|
64
|
+
export { CalendarWeek } from "./calendar-week.js";
|
|
62
65
|
export { CalendarYear } from "./calendar-year.js";
|
|
63
66
|
export { KanbanBoard, } from "./kanban-board.js";
|
|
64
67
|
export { KanbanColumn } from "./kanban-column.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB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AwB,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EACL,gBAAgB,EAChB,sBAAsB,GAEvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,cAAc,EACd,mBAAmB,GAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnE,cAAc,YAAY,CAAC","sourcesContent":["export { AnimateConfetti } from \"./animate-confetti.js\";\nexport { GalleryItem } from \"./gallery-item.js\";\nexport { GalleryItemVariant } from \"./gallery-item-variant.js\";\nexport {\n PhotoGallery,\n type PhotoGalleryChangeReason,\n type PhotoGalleryObjectFit,\n type PhotoGallerySlideChangeDetail,\n} from \"./photo-gallery.js\";\nexport { RevealButton } from \"./reveal-button.js\";\nexport { RomanNumeral } from \"./roman-numeral.js\";\nexport { ConfirmDialog } from \"./confirm-dialog.js\";\nexport { ContentDivider } from \"./content-divider.js\";\nexport {\n ToastNotification,\n notifySuccess,\n notifyError,\n notifyInfo,\n notifyWarning,\n type ToastVariant,\n} from \"./toast-notification.js\";\nexport { ScrollToBottom } from \"./scroll-to-bottom.js\";\nexport { ScrollToTop } from \"./scroll-to-top.js\";\nexport { SlidePanel } from \"./slide-panel.js\";\nexport { CopyLinkButton } from \"./copy-link-button.js\";\nexport { RelativeTime } from \"./relative-time.js\";\nexport { DistanceValue } from \"./distance-value.js\";\nexport { PriceHistoryChart, type PricePoint } from \"./price-history-chart.js\";\nexport { DistributionChart, type DistributionValue } from \"./distribution-chart.js\";\nexport { PercentBarChart, type PercentBarGroup } from \"./percent-bar-chart.js\";\nexport { WeightBarChart, type WeightBarItem } from \"./weight-bar-chart.js\";\nexport {\n AddressAutocomplete,\n type AddressSuggestion,\n} from \"./address-autocomplete.js\";\nexport {\n AutocompleteInput,\n type AutocompleteOption,\n} from \"./autocomplete-input.js\";\nexport { UserAvatar } from \"./user-avatar.js\";\nexport { MapPin } from \"./map-pin.js\";\nexport { MapCircle } from \"./map-circle.js\";\nexport { MapboxMap } from \"./mapbox-map.js\";\nexport { RadioCards, type RadioCardOption } from \"./radio-cards.js\";\nexport { RadioPills, type RadioPillOption } from \"./radio-pills.js\";\nexport { RangeSlider } from \"./range-slider.js\";\nexport { ButtonGroup, type ButtonGroupOption } from \"./button-group.js\";\nexport { UiButton, type ButtonVariant } from \"./ui-button.js\";\nexport { StatMeter } from \"./stat-meter.js\";\nexport { StatusBanner, type StatusBannerVariant } from \"./status-banner.js\";\nexport { StatusPill, type StatusPillColor } from \"./status-pill.js\";\nexport { EditableText } from \"./editable-text.js\";\nexport { LiveTimer } from \"./live-timer.js\";\nexport { LoadMore } from \"./load-more.js\";\nexport { LoadingSpinner } from \"./loading-spinner.js\";\nexport { LoadingDots } from \"./loading-dots.js\";\nexport {\n ChatMessage,\n type ChatMessageRole,\n type ChatMessageVariant,\n} from \"./chat-message.js\";\nexport { UiCheckbox } from \"./ui-checkbox.js\";\nexport { FormField } from \"./form-field.js\";\nexport { FormSelect, type SelectOption } from \"./form-select.js\";\nexport {\n MultiSelect,\n type MultiSelectOption,\n type MultiSelectVariant,\n} from \"./multi-select.js\";\nexport { DataTable, type DataTableColumn } from \"./data-table.js\";\nexport { TileGrid } from \"./tile-grid.js\";\nexport { TreeView, type TreeNode } from \"./tree-view.js\";\nexport { PopoverPanel } from \"./popover-panel.js\";\nexport {\n DropdownButton,\n type DropdownButtonVariant,\n type DropdownOption,\n} from \"./dropdown-button.js\";\nexport { IconButton } from \"./icon-button.js\";\nexport { KbdHint, type KbdPlatform } from \"./kbd-hint.js\";\nexport { FrameBox } from \"./frame-box.js\";\nexport { AppShell, type SidebarToggleDetail } from \"./app-shell.js\";\nexport { AppSidebar } from \"./app-sidebar.js\";\nexport { ActionBar } from \"./action-bar.js\";\nexport { PageHeader } from \"./page-header.js\";\nexport { PaginationNav, type PageChangeDetail } from \"./pagination-nav.js\";\nexport { FormActions } from \"./form-actions.js\";\nexport { TimelineContainer } from \"./timeline-container.js\";\nexport { TimelineEntry } from \"./timeline-entry.js\";\nexport { CalendarEntry } from \"./calendar-entry.js\";\nexport { CalendarMonth } from \"./calendar-month.js\";\nexport { CalendarYear } from \"./calendar-year.js\";\nexport {\n KanbanBoard,\n type KanbanCardData,\n type KanbanColumnData,\n type KanbanCardMoveDetail,\n type KanbanCardOpenDetail,\n} from \"./kanban-board.js\";\nexport { KanbanColumn } from \"./kanban-column.js\";\nexport { KanbanCard } from \"./kanban-card.js\";\nexport { TextArea } from \"./text-area.js\";\nexport { LinkCard, type LinkCardStatus } from \"./link-card.js\";\nexport { CardGrid } from \"./card-grid.js\";\nexport { MarkdownView } from \"./markdown-view.js\";\nexport { AutoScroll } from \"./auto-scroll.js\";\nexport { SplitHero } from \"./split-hero.js\";\nexport { TabBar, type TabChangeDetail } from \"./tab-bar.js\";\nexport { TabItem } from \"./tab-item.js\";\nexport { MarkdownEditor } from \"./markdown-editor.js\";\nexport {\n parseFrontMatter,\n formatFrontMatterValue,\n type FrontMatterResult,\n} from \"./utils/front-matter.js\";\nexport {\n formatDuration,\n formatClockDuration,\n type DurationFormat,\n} from \"./utils/duration.js\";\nexport { AudioPlayer } from \"./audio-player.js\";\nexport { VideoPlayer } from \"./video-player.js\";\nexport { CommentComposer } from \"./comment-composer.js\";\nexport { tokens, tokenValues, darkTokenValues } from \"./tokens.js\";\nexport * from \"./icons.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO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AAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAwB,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EACL,gBAAgB,EAChB,sBAAsB,GAEvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,cAAc,EACd,mBAAmB,GAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnE,cAAc,YAAY,CAAC","sourcesContent":["export { AnimateConfetti } from \"./animate-confetti.js\";\nexport { GalleryItem } from \"./gallery-item.js\";\nexport { GalleryItemVariant } from \"./gallery-item-variant.js\";\nexport {\n PhotoGallery,\n type PhotoGalleryChangeReason,\n type PhotoGalleryObjectFit,\n type PhotoGallerySlideChangeDetail,\n} from \"./photo-gallery.js\";\nexport { RevealButton } from \"./reveal-button.js\";\nexport { RomanNumeral } from \"./roman-numeral.js\";\nexport { ConfirmDialog } from \"./confirm-dialog.js\";\nexport { ModalDialog, type ModalDialogSize } from \"./modal-dialog.js\";\nexport { ContentDivider } from \"./content-divider.js\";\nexport {\n ToastNotification,\n notifySuccess,\n notifyError,\n notifyInfo,\n notifyWarning,\n type ToastVariant,\n} from \"./toast-notification.js\";\nexport { ScrollToBottom } from \"./scroll-to-bottom.js\";\nexport { ScrollToTop } from \"./scroll-to-top.js\";\nexport { SlidePanel } from \"./slide-panel.js\";\nexport { CopyLinkButton } from \"./copy-link-button.js\";\nexport { RelativeTime } from \"./relative-time.js\";\nexport { DistanceValue } from \"./distance-value.js\";\nexport { PriceHistoryChart, type PricePoint } from \"./price-history-chart.js\";\nexport { DistributionChart, type DistributionValue } from \"./distribution-chart.js\";\nexport { PercentBarChart, type PercentBarGroup } from \"./percent-bar-chart.js\";\nexport { WeightBarChart, type WeightBarItem } from \"./weight-bar-chart.js\";\nexport {\n AddressAutocomplete,\n type AddressSuggestion,\n} from \"./address-autocomplete.js\";\nexport {\n AutocompleteInput,\n type AutocompleteOption,\n} from \"./autocomplete-input.js\";\nexport { UserAvatar } from \"./user-avatar.js\";\nexport { MapPin } from \"./map-pin.js\";\nexport { MapCircle } from \"./map-circle.js\";\nexport { MapboxMap } from \"./mapbox-map.js\";\nexport { RadioCards, type RadioCardOption } from \"./radio-cards.js\";\nexport { RadioPills, type RadioPillOption } from \"./radio-pills.js\";\nexport { RangeSlider } from \"./range-slider.js\";\nexport { ButtonGroup, type ButtonGroupOption } from \"./button-group.js\";\nexport { UiButton, type ButtonVariant } from \"./ui-button.js\";\nexport { StatMeter } from \"./stat-meter.js\";\nexport { StatusBanner, type StatusBannerVariant } from \"./status-banner.js\";\nexport { StatusPill, type StatusPillColor } from \"./status-pill.js\";\nexport { EditableText } from \"./editable-text.js\";\nexport { LiveTimer } from \"./live-timer.js\";\nexport { LoadMore } from \"./load-more.js\";\nexport { LoadingSpinner } from \"./loading-spinner.js\";\nexport { LoadingDots } from \"./loading-dots.js\";\nexport {\n ChatMessage,\n type ChatMessageRole,\n type ChatMessageVariant,\n} from \"./chat-message.js\";\nexport { UiCheckbox } from \"./ui-checkbox.js\";\nexport { FormField } from \"./form-field.js\";\nexport { FormSelect, type SelectOption } from \"./form-select.js\";\nexport {\n MultiSelect,\n type MultiSelectOption,\n type MultiSelectVariant,\n} from \"./multi-select.js\";\nexport { DataTable, type DataTableColumn } from \"./data-table.js\";\nexport { TileGrid } from \"./tile-grid.js\";\nexport { TreeView, type TreeNode } from \"./tree-view.js\";\nexport { PopoverPanel } from \"./popover-panel.js\";\nexport {\n DropdownButton,\n type DropdownButtonVariant,\n type DropdownOption,\n} from \"./dropdown-button.js\";\nexport { IconButton } from \"./icon-button.js\";\nexport { KbdHint, type KbdPlatform } from \"./kbd-hint.js\";\nexport { FrameBox } from \"./frame-box.js\";\nexport { AppShell, type SidebarToggleDetail } from \"./app-shell.js\";\nexport { AppSidebar } from \"./app-sidebar.js\";\nexport { ActionBar } from \"./action-bar.js\";\nexport { PageHeader } from \"./page-header.js\";\nexport { PaginationNav, type PageChangeDetail } from \"./pagination-nav.js\";\nexport { FormActions } from \"./form-actions.js\";\nexport { TimelineContainer } from \"./timeline-container.js\";\nexport { TimelineEntry } from \"./timeline-entry.js\";\nexport { CalendarDay } from \"./calendar-day.js\";\nexport { CalendarEntry } from \"./calendar-entry.js\";\nexport { CalendarMonth } from \"./calendar-month.js\";\nexport { CalendarWeek } from \"./calendar-week.js\";\nexport { CalendarYear } from \"./calendar-year.js\";\nexport {\n KanbanBoard,\n type KanbanCardData,\n type KanbanColumnData,\n type KanbanCardMoveDetail,\n type KanbanCardOpenDetail,\n} from \"./kanban-board.js\";\nexport { KanbanColumn } from \"./kanban-column.js\";\nexport { KanbanCard } from \"./kanban-card.js\";\nexport { TextArea } from \"./text-area.js\";\nexport { LinkCard, type LinkCardStatus } from \"./link-card.js\";\nexport { CardGrid } from \"./card-grid.js\";\nexport { MarkdownView } from \"./markdown-view.js\";\nexport { AutoScroll } from \"./auto-scroll.js\";\nexport { SplitHero } from \"./split-hero.js\";\nexport { TabBar, type TabChangeDetail } from \"./tab-bar.js\";\nexport { TabItem } from \"./tab-item.js\";\nexport { MarkdownEditor } from \"./markdown-editor.js\";\nexport {\n parseFrontMatter,\n formatFrontMatterValue,\n type FrontMatterResult,\n} from \"./utils/front-matter.js\";\nexport {\n formatDuration,\n formatClockDuration,\n type DurationFormat,\n} from \"./utils/duration.js\";\nexport { AudioPlayer } from \"./audio-player.js\";\nexport { VideoPlayer } from \"./video-player.js\";\nexport { CommentComposer } from \"./comment-composer.js\";\nexport { tokens, tokenValues, darkTokenValues } from \"./tokens.js\";\nexport * from \"./icons.js\";\n"]}
|