@g9tm/lynxcontrols-calendar 2.5.6 → 2.5.8
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/catalog/cards/G9AgendaView.md +4 -1
- package/catalog/cards/G9BirthdayField.md +14 -0
- package/catalog/cards/G9DateInput.md +3 -2
- package/catalog/cards/G9EventCard.md +17 -0
- package/catalog/cards/G9FindTime.md +16 -0
- package/catalog/cards/G9MiniMonth.md +2 -2
- package/catalog/cards/G9MonthView.md +6 -4
- package/catalog/cards/G9RepeatPicker.md +5 -1
- package/catalog/cards/G9TimeGrid.md +6 -6
- package/catalog/cards/G9TimeListPicker.md +17 -0
- package/catalog/cards/G9TodayWidget.md +16 -0
- package/catalog/cards/G9WorkingHoursEditor.md +16 -0
- package/catalog/catalog.json +3514 -553
- package/catalog/index.md +11 -5
- package/dist/.tsbuildinfo +1 -1
- package/dist/calendar.css +798 -2
- package/dist/calendar.css.map +1 -1
- package/dist/calendar.d.ts +83 -48
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.jsx +144 -254
- package/dist/cards.d.ts +131 -0
- package/dist/cards.d.ts.map +1 -0
- package/dist/cards.jsx +252 -0
- package/dist/events.d.ts +45 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.jsx +83 -0
- package/dist/gesture.d.ts +79 -0
- package/dist/gesture.d.ts.map +1 -0
- package/dist/gesture.jsx +160 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.jsx +10 -1
- package/dist/model.d.ts +9 -0
- package/dist/model.d.ts.map +1 -1
- package/dist/model.jsx +33 -4
- package/dist/month-view.d.ts +50 -0
- package/dist/month-view.d.ts.map +1 -0
- package/dist/month-view.jsx +362 -0
- package/dist/people.d.ts +67 -0
- package/dist/people.d.ts.map +1 -0
- package/dist/people.jsx +211 -0
- package/dist/recurrence.d.ts +51 -0
- package/dist/recurrence.d.ts.map +1 -0
- package/dist/recurrence.jsx +280 -0
- package/dist/repeat-picker.d.ts +47 -0
- package/dist/repeat-picker.d.ts.map +1 -0
- package/dist/repeat-picker.jsx +289 -0
- package/dist/time-grid.d.ts +50 -0
- package/dist/time-grid.d.ts.map +1 -0
- package/dist/time-grid.jsx +639 -0
- package/dist/time-list.d.ts +25 -0
- package/dist/time-list.d.ts.map +1 -0
- package/dist/time-list.jsx +85 -0
- package/package.json +3 -3
package/dist/calendar.jsx
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import "./calendar.css";
|
|
2
2
|
import { g9IdProps } from "@g9tm/lynxcontrols/base";
|
|
3
3
|
import { G9IconButton } from "@g9tm/lynxcontrols/button";
|
|
4
|
+
import { G9ActivityIndicator } from "@g9tm/lynxcontrols/display";
|
|
4
5
|
import { G9TextEntry } from "@g9tm/lynxcontrols/fields";
|
|
5
6
|
import { G9VirtualList } from "@g9tm/lynxcontrols/list";
|
|
6
7
|
import { useG9Culture, useG9Direction } from "@g9tm/lynxcontrols/provider";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { compareLocal, formatLocalDateTime, formatNumber, fromCalendarDate, g9Haptic, getMonthName, getWeekdayNames, parseNaturalDate, toCalendarDate, toEpochDays } from "@g9tm/lynxcontrols-foundation";
|
|
9
|
+
import { useMemo, useState } from "@lynx-js/react";
|
|
10
|
+
import { daysBetween, eventLastDay, eventsOn, secondDateLabel } from "./events.jsx";
|
|
11
|
+
import { monthGrid, sameDay, shiftMonth, weekStartFor } from "./model.jsx";
|
|
11
12
|
const rowDir = (rtl)=>({
|
|
12
13
|
flexDirection: rtl ? 'row-reverse' : 'row',
|
|
13
14
|
direction: 'ltr'
|
|
@@ -40,10 +41,15 @@ function G9MiniMonth(props) {
|
|
|
40
41
|
var _ref, _props_initialMonth;
|
|
41
42
|
const { culture, rtl, calendar, weekStart, num, initial } = useCal();
|
|
42
43
|
const start = toCalendarDate(null != (_ref = null != (_props_initialMonth = props.initialMonth) ? _props_initialMonth : props.value) ? _ref : props.today, calendar);
|
|
43
|
-
const [
|
|
44
|
+
const [own, setOwn] = useState({
|
|
44
45
|
year: start.year,
|
|
45
46
|
month: start.month
|
|
46
47
|
});
|
|
48
|
+
const controlled = props.month ? toCalendarDate(props.month, calendar) : null;
|
|
49
|
+
const ym = controlled ? {
|
|
50
|
+
year: controlled.year,
|
|
51
|
+
month: controlled.month
|
|
52
|
+
} : own;
|
|
47
53
|
const weeks = useMemo(()=>monthGrid(calendar, ym.year, ym.month, weekStart, true), [
|
|
48
54
|
calendar,
|
|
49
55
|
ym.year,
|
|
@@ -52,7 +58,17 @@ function G9MiniMonth(props) {
|
|
|
52
58
|
]);
|
|
53
59
|
const off = (d)=>props.min && compareLocal(d, props.min) < 0 || props.max && compareLocal(d, props.max) > 0;
|
|
54
60
|
const inRange = (d)=>!!props.range && compareLocal(d, props.range.start) >= 0 && compareLocal(d, props.range.end) <= 0;
|
|
55
|
-
const go = (delta)=>
|
|
61
|
+
const go = (delta)=>{
|
|
62
|
+
var _props_onMonthChange;
|
|
63
|
+
const next = shiftMonth(ym.year, ym.month, delta);
|
|
64
|
+
if (!props.month) setOwn(next);
|
|
65
|
+
null == (_props_onMonthChange = props.onMonthChange) || _props_onMonthChange.call(props, fromCalendarDate({
|
|
66
|
+
calendar,
|
|
67
|
+
year: next.year,
|
|
68
|
+
month: next.month,
|
|
69
|
+
day: 1
|
|
70
|
+
}));
|
|
71
|
+
};
|
|
56
72
|
return <view className="g9-mini-month" {...g9IdProps(props.id)}>
|
|
57
73
|
<view className="g9-mini-month__head" style={rowDir(rtl)}>
|
|
58
74
|
<text className="g9-mini-month__title">{`${getMonthName(calendar, ym.month, culture)} ${num(ym.year)}`}</text>
|
|
@@ -74,7 +90,7 @@ function G9MiniMonth(props) {
|
|
|
74
90
|
</view>
|
|
75
91
|
{weeks.map((week, r)=><view key={r} className="g9-mini-month__week" style={rowDir(rtl)}>
|
|
76
92
|
{week.map((c)=>{
|
|
77
|
-
var _props_marked;
|
|
93
|
+
var _props_dayOff, _props_marked;
|
|
78
94
|
const selected = !!props.value && sameDay(c.date, props.value);
|
|
79
95
|
const today = sameDay(c.date, props.today);
|
|
80
96
|
const disabled = !!off(c.date);
|
|
@@ -85,7 +101,7 @@ function G9MiniMonth(props) {
|
|
|
85
101
|
}
|
|
86
102
|
} : {}} accessibility-element={true} accessibility-traits="button" accessibility-label={formatLocalDateTime(c.date, 'dddd d MMMM', culture)}>
|
|
87
103
|
<view className={`g9-mini-month__day${selected ? ' g9-mini-month__day--on' : today ? ' g9-mini-month__day--today' : ''}`}>
|
|
88
|
-
<text className={`g9-mini-month__num${selected ? ' g9-mini-month__num--on' : !c.inMonth || disabled ? ' g9-mini-month__num--out' : ''}`}>
|
|
104
|
+
<text className={`g9-mini-month__num${selected ? ' g9-mini-month__num--on' : !c.inMonth || disabled ? ' g9-mini-month__num--out' : (null == (_props_dayOff = props.dayOff) ? void 0 : _props_dayOff.call(props, c.date)) ? ' g9-mini-month__num--off' : ''}`}>
|
|
89
105
|
{num(c.day)}
|
|
90
106
|
</text>
|
|
91
107
|
</view>
|
|
@@ -95,224 +111,131 @@ function G9MiniMonth(props) {
|
|
|
95
111
|
</view>)}
|
|
96
112
|
</view>;
|
|
97
113
|
}
|
|
98
|
-
function
|
|
99
|
-
|
|
100
|
-
const
|
|
101
|
-
const
|
|
102
|
-
const weeks = useMemo(()=>monthGrid(calendar, m.year, m.month, weekStart), [
|
|
103
|
-
calendar,
|
|
104
|
-
m.year,
|
|
105
|
-
m.month,
|
|
106
|
-
weekStart
|
|
107
|
-
]);
|
|
108
|
-
const byDay = useMemo(()=>{
|
|
109
|
-
const map = new Map();
|
|
110
|
-
for (const e of props.events){
|
|
111
|
-
const k = toEpochDays(e.date);
|
|
112
|
-
const list = map.get(k);
|
|
113
|
-
if (list) list.push(e);
|
|
114
|
-
else map.set(k, [
|
|
115
|
-
e
|
|
116
|
-
]);
|
|
117
|
-
}
|
|
118
|
-
return map;
|
|
119
|
-
}, [
|
|
120
|
-
props.events
|
|
121
|
-
]);
|
|
122
|
-
const per = null != (_props_perDay = props.perDay) ? _props_perDay : 2;
|
|
123
|
-
return <view className="g9-month" {...g9IdProps(props.id)}>
|
|
124
|
-
<view className="g9-month__week g9-month__week--head" style={rowDir(rtl)}>
|
|
125
|
-
{Array.from({
|
|
126
|
-
length: 7
|
|
127
|
-
}, (_, i)=><text key={i} className="g9-month__wd">
|
|
128
|
-
{initial((weekStart + i) % 7)}
|
|
129
|
-
</text>)}
|
|
130
|
-
</view>
|
|
131
|
-
{weeks.map((week, r)=><view key={r} className="g9-month__week" style={rowDir(rtl)}>
|
|
132
|
-
{week.map((c)=>{
|
|
133
|
-
var _byDay_get;
|
|
134
|
-
const list = null != (_byDay_get = byDay.get(toEpochDays(c.date))) ? _byDay_get : [];
|
|
135
|
-
return <view key={c.key} className={`g9-month__cell${c.inMonth ? '' : ' g9-month__cell--out'}`} {...props.onSelectDay ? {
|
|
136
|
-
bindtap: ()=>{
|
|
137
|
-
var _props_onSelectDay;
|
|
138
|
-
return null == (_props_onSelectDay = props.onSelectDay) ? void 0 : _props_onSelectDay.call(props, c.date);
|
|
139
|
-
}
|
|
140
|
-
} : {}}>
|
|
141
|
-
<text className={`g9-month__num${sameDay(c.date, props.today) ? ' g9-month__num--today' : ''}`}>
|
|
142
|
-
{num(c.day)}
|
|
143
|
-
</text>
|
|
144
|
-
{list.slice(0, per).map((e)=><view key={e.id} className="g9-month__event" style={e.color ? {
|
|
145
|
-
backgroundColor: e.color
|
|
146
|
-
} : {}} {...props.onSelectEvent ? {
|
|
147
|
-
catchtap: ()=>{
|
|
148
|
-
var _props_onSelectEvent;
|
|
149
|
-
return null == (_props_onSelectEvent = props.onSelectEvent) ? void 0 : _props_onSelectEvent.call(props, e);
|
|
150
|
-
}
|
|
151
|
-
} : {}}>
|
|
152
|
-
<text className="g9-month__event-text" text-maxline="1">
|
|
153
|
-
{e.title}
|
|
154
|
-
</text>
|
|
155
|
-
</view>)}
|
|
156
|
-
{list.length > per ? <text className="g9-month__more">{`+${num(list.length - per)}`}</text> : null}
|
|
157
|
-
</view>;
|
|
158
|
-
})}
|
|
159
|
-
</view>)}
|
|
160
|
-
</view>;
|
|
161
|
-
}
|
|
162
|
-
function G9TimeGrid(props) {
|
|
163
|
-
var _props_days, _props_hourHeight, _props_fromHour, _props_toHour;
|
|
164
|
-
const { culture, rtl, num } = useCal();
|
|
165
|
-
const n = null != (_props_days = props.days) ? _props_days : 1;
|
|
166
|
-
const hh = null != (_props_hourHeight = props.hourHeight) ? _props_hourHeight : 52;
|
|
167
|
-
const from = null != (_props_fromHour = props.fromHour) ? _props_fromHour : 0;
|
|
168
|
-
const to = null != (_props_toHour = props.toHour) ? _props_toHour : 24;
|
|
169
|
-
const days = Array.from({
|
|
170
|
-
length: n
|
|
171
|
-
}, (_, i)=>addDays(props.start, i));
|
|
172
|
-
const y = (minutes)=>(minutes - 60 * from) / 60 * hh;
|
|
173
|
-
const body = useRef(null);
|
|
174
|
-
const pickSlot = (d, windowY)=>{
|
|
175
|
-
try {
|
|
176
|
-
var _body_current;
|
|
177
|
-
null == (_body_current = body.current) || _body_current.invoke({
|
|
178
|
-
method: 'boundingClientRect',
|
|
179
|
-
success: (r)=>{
|
|
180
|
-
var _props_onSelectSlot;
|
|
181
|
-
if ('number' == typeof (null == r ? void 0 : r.top) && Number.isFinite(r.top)) null == (_props_onSelectSlot = props.onSelectSlot) || _props_onSelectSlot.call(props, d, slotAt(windowY - r.top, hh, from, to));
|
|
182
|
-
},
|
|
183
|
-
fail: ()=>{}
|
|
184
|
-
}).exec();
|
|
185
|
-
} catch {}
|
|
186
|
-
};
|
|
187
|
-
return <view className="g9-time-grid" {...g9IdProps(props.id)}>
|
|
188
|
-
{}
|
|
189
|
-
{n > 1 ? <view className="g9-time-grid__heads" style={rowDir(rtl)}>
|
|
190
|
-
<view className="g9-time-grid__gutter"/>
|
|
191
|
-
{days.map((d)=><text key={toEpochDays(d)} className={`g9-time-grid__head${sameDay(d, props.today) ? ' g9-time-grid__head--today' : ''}`}>
|
|
192
|
-
{formatLocalDateTime(d, 'ddd d', culture)}
|
|
193
|
-
</text>)}
|
|
194
|
-
</view> : null}
|
|
195
|
-
<scroll-view className="g9-time-grid__scroll" scroll-orientation="vertical">
|
|
196
|
-
<view className="g9-time-grid__body" ref={(r)=>{
|
|
197
|
-
body.current = r;
|
|
198
|
-
}} style={{
|
|
199
|
-
...rowDir(rtl),
|
|
200
|
-
height: `${(to - from) * hh}px`
|
|
201
|
-
}}>
|
|
202
|
-
<view className="g9-time-grid__gutter">
|
|
203
|
-
{Array.from({
|
|
204
|
-
length: to - from
|
|
205
|
-
}, (_, i)=><text key={i} className="g9-time-grid__hour" style={{
|
|
206
|
-
top: `${i * hh - 7}px`
|
|
207
|
-
}}>
|
|
208
|
-
{0 === i ? '' : `${num(from + i)}:${num(0)}${num(0)}`}
|
|
209
|
-
</text>)}
|
|
210
|
-
</view>
|
|
211
|
-
{days.map((d)=>{
|
|
212
|
-
const today = sameDay(d, props.today);
|
|
213
|
-
const timed = props.events.filter((e)=>sameDay(e.date, d) && void 0 !== e.start);
|
|
214
|
-
const placed = layoutDay(timed.map((e)=>{
|
|
215
|
-
var _e_end;
|
|
216
|
-
return {
|
|
217
|
-
id: e.id,
|
|
218
|
-
start: e.start,
|
|
219
|
-
end: null != (_e_end = e.end) ? _e_end : e.start + 60
|
|
220
|
-
};
|
|
221
|
-
}));
|
|
222
|
-
return <view key={toEpochDays(d)} className="g9-time-grid__col" {...props.onSelectSlot ? {
|
|
223
|
-
bindtap: (e)=>{
|
|
224
|
-
var _ref;
|
|
225
|
-
var _e_detail;
|
|
226
|
-
return pickSlot(d, null != (_ref = null == (_e_detail = e.detail) ? void 0 : _e_detail.y) ? _ref : 0);
|
|
227
|
-
}
|
|
228
|
-
} : {}}>
|
|
229
|
-
{Array.from({
|
|
230
|
-
length: to - from
|
|
231
|
-
}, (_, i)=><view key={i} className="g9-time-grid__line" style={{
|
|
232
|
-
top: `${i * hh}px`
|
|
233
|
-
}}/>)}
|
|
234
|
-
{placed.map((p)=>{
|
|
235
|
-
const e = timed.find((x)=>x.id === p.id);
|
|
236
|
-
const w = 100 / p.lanes;
|
|
237
|
-
return <view key={p.id} className="g9-time-grid__event" style={{
|
|
238
|
-
top: `${y(p.start)}px`,
|
|
239
|
-
height: `${Math.max(18, y(p.end) - y(p.start) - 2)}px`,
|
|
240
|
-
[rtl ? 'right' : 'left']: `${p.lane * w}%`,
|
|
241
|
-
width: `${w}%`,
|
|
242
|
-
...e.color ? {
|
|
243
|
-
backgroundColor: e.color
|
|
244
|
-
} : {}
|
|
245
|
-
}} {...props.onSelectEvent ? {
|
|
246
|
-
catchtap: ()=>{
|
|
247
|
-
var _props_onSelectEvent;
|
|
248
|
-
return null == (_props_onSelectEvent = props.onSelectEvent) ? void 0 : _props_onSelectEvent.call(props, e);
|
|
249
|
-
}
|
|
250
|
-
} : {}}>
|
|
251
|
-
<text className="g9-time-grid__event-text" text-maxline="2">
|
|
252
|
-
{e.title}
|
|
253
|
-
</text>
|
|
254
|
-
</view>;
|
|
255
|
-
})}
|
|
256
|
-
{today && void 0 !== props.now && props.now >= 60 * from && props.now <= 60 * to ? <view className="g9-time-grid__now" style={{
|
|
257
|
-
top: `${y(props.now)}px`
|
|
258
|
-
}}/> : null}
|
|
259
|
-
</view>;
|
|
260
|
-
})}
|
|
261
|
-
</view>
|
|
262
|
-
</scroll-view>
|
|
263
|
-
</view>;
|
|
264
|
-
}
|
|
265
|
-
function G9AgendaView(props) {
|
|
266
|
-
const { culture, rtl, num } = useCal();
|
|
267
|
-
const groups = useMemo(()=>agenda([
|
|
268
|
-
...props.events
|
|
269
|
-
].sort((a, b)=>{
|
|
270
|
-
var _a_start, _b_start;
|
|
271
|
-
return compareLocal(a.date, b.date) || (null != (_a_start = a.start) ? _a_start : -1) - (null != (_b_start = b.start) ? _b_start : -1);
|
|
272
|
-
})), [
|
|
273
|
-
props.events
|
|
274
|
-
]);
|
|
114
|
+
function agendaRows(events, from, to) {
|
|
115
|
+
if (0 === events.length && (!from || !to)) return [];
|
|
116
|
+
const first = null != from ? from : events.reduce((m, e)=>compareLocal(e.date, m) < 0 ? e.date : m, events[0].date);
|
|
117
|
+
const last = null != to ? to : events.reduce((m, e)=>compareLocal(eventLastDay(e), m) > 0 ? eventLastDay(e) : m, eventLastDay(events[0]));
|
|
275
118
|
const rows = [];
|
|
276
|
-
for (const
|
|
119
|
+
for (const day of daysBetween(first, last)){
|
|
120
|
+
const on = eventsOn(events, day);
|
|
121
|
+
if (!on.length) continue;
|
|
122
|
+
const k = toEpochDays(day);
|
|
277
123
|
rows.push({
|
|
278
124
|
kind: 'day',
|
|
279
|
-
key: `d${
|
|
280
|
-
date:
|
|
125
|
+
key: `d${k}`,
|
|
126
|
+
date: day,
|
|
127
|
+
first: 0 === rows.length
|
|
281
128
|
});
|
|
282
|
-
for (const e of
|
|
283
|
-
kind: '
|
|
284
|
-
key: e.id
|
|
129
|
+
for (const e of on)if ('holiday' === e.kind) rows.push({
|
|
130
|
+
kind: 'holiday',
|
|
131
|
+
key: `h${k}:${e.id}`,
|
|
285
132
|
event: e
|
|
286
133
|
});
|
|
134
|
+
else rows.push({
|
|
135
|
+
kind: 'event',
|
|
136
|
+
key: `e${k}:${e.id}`,
|
|
137
|
+
event: e,
|
|
138
|
+
date: day
|
|
139
|
+
});
|
|
287
140
|
}
|
|
141
|
+
return rows;
|
|
142
|
+
}
|
|
143
|
+
function G9AgendaView(props) {
|
|
144
|
+
var _props_secondCalendar, _props_labels;
|
|
145
|
+
const { culture, rtl, calendar, num } = useCal();
|
|
146
|
+
const rows = useMemo(()=>{
|
|
147
|
+
const out = agendaRows(props.events, props.from, props.to);
|
|
148
|
+
return props.onLoadMore ? [
|
|
149
|
+
...out,
|
|
150
|
+
{
|
|
151
|
+
kind: 'more',
|
|
152
|
+
key: 'more'
|
|
153
|
+
}
|
|
154
|
+
] : out;
|
|
155
|
+
}, [
|
|
156
|
+
props.events,
|
|
157
|
+
props.from,
|
|
158
|
+
props.to,
|
|
159
|
+
void 0 !== props.onLoadMore
|
|
160
|
+
]);
|
|
161
|
+
const second = 'auto' === props.secondCalendar ? 'persian' === calendar ? 'gregorian' : 'persian' : null != (_props_secondCalendar = props.secondCalendar) ? _props_secondCalendar : 'none';
|
|
162
|
+
const l = null != (_props_labels = props.labels) ? _props_labels : {};
|
|
288
163
|
const hm = (m)=>`${num(Math.floor(m / 60))}:${num(m % 60).padStart(2, num(0))}`;
|
|
164
|
+
const timeOf = (e, day)=>{
|
|
165
|
+
var _props_allDayText, _props_allDayText1, _e_end;
|
|
166
|
+
if (void 0 === e.start) return null != (_props_allDayText = props.allDayText) ? _props_allDayText : '—';
|
|
167
|
+
const firstDay = sameDay(e.date, day);
|
|
168
|
+
const lastDay = sameDay(eventLastDay(e), day);
|
|
169
|
+
if (!firstDay && !lastDay) return null != (_props_allDayText1 = props.allDayText) ? _props_allDayText1 : '—';
|
|
170
|
+
if (!firstDay) return `– ${hm(null != (_e_end = e.end) ? _e_end : 0)}`;
|
|
171
|
+
if (!lastDay) return `${hm(e.start)} –`;
|
|
172
|
+
return `${hm(e.start)}${void 0 !== e.end ? ` – ${hm(e.end)}` : ''}`;
|
|
173
|
+
};
|
|
174
|
+
const answer = (r)=>'tentative' === r ? l.tentative : 'declined' === r ? l.declined : 'pending' === r ? l.pending : void 0;
|
|
175
|
+
if (0 === rows.length && props.empty) return <>{props.empty}</>;
|
|
289
176
|
return <G9VirtualList {...props.id ? {
|
|
290
177
|
id: props.id
|
|
291
|
-
} : {}} className="g9-agenda" items={rows} getKey={(r)=>r.key} reuseKey={(r)=>r.kind} isSticky={(r)=>'day' === r.kind} estimatedSize={(r)=>'day' === r.kind ? 40 : 56} {...props.empty ? {
|
|
178
|
+
} : {}} className="g9-agenda" items={rows} getKey={(r)=>r.key} reuseKey={(r)=>r.kind} isSticky={(r)=>'day' === r.kind} estimatedSize={(r)=>'day' === r.kind ? 40 : 'holiday' === r.kind ? 32 : 56} {...props.empty ? {
|
|
292
179
|
empty: props.empty
|
|
180
|
+
} : {}} {...props.paddingEnd ? {
|
|
181
|
+
footer: <view style={{
|
|
182
|
+
height: `${props.paddingEnd}px`
|
|
183
|
+
}}/>
|
|
293
184
|
} : {}} renderItem={(r)=>{
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
185
|
+
if ('day' === r.kind) {
|
|
186
|
+
const today = sameDay(r.date, props.today);
|
|
187
|
+
const other = secondDateLabel(r.date, calendar, second, culture);
|
|
188
|
+
return <view className={`g9-agenda__day${r.first ? '' : ' g9-agenda__day--rule'}`} style={rowDir(rtl)}>
|
|
189
|
+
<text className={`g9-agenda__day-text${today ? ' g9-agenda__day-text--today' : ''}`}>
|
|
190
|
+
{formatLocalDateTime(r.date, 'dddd d MMMM', culture)}
|
|
191
|
+
</text>
|
|
192
|
+
{today && l.today ? <text className="g9-agenda__day-tag">{l.today}</text> : null}
|
|
193
|
+
{other ? <text className="g9-agenda__day-second">{other}</text> : null}
|
|
194
|
+
</view>;
|
|
195
|
+
}
|
|
196
|
+
if ('holiday' === r.kind) return <view className="g9-agenda__holiday" style={rowDir(rtl)}>
|
|
197
|
+
<text className="g9-agenda__holiday-text" text-maxline="1">
|
|
198
|
+
{r.event.title}
|
|
199
|
+
</text>
|
|
200
|
+
{false !== r.event.dayOff && l.dayOff ? <text className="g9-agenda__badge">{l.dayOff}</text> : null}
|
|
201
|
+
</view>;
|
|
202
|
+
if ('more' === r.kind) {
|
|
203
|
+
var _l_later, _l_later1;
|
|
204
|
+
return <view className="g9-agenda__more" {...g9IdProps(props.id ? `${props.id}.More` : void 0)} {...props.loading ? {} : {
|
|
205
|
+
bindtap: ()=>{
|
|
206
|
+
var _props_onLoadMore;
|
|
207
|
+
return null == (_props_onLoadMore = props.onLoadMore) ? void 0 : _props_onLoadMore.call(props);
|
|
208
|
+
}
|
|
209
|
+
}} accessibility-element={true} accessibility-traits="button" accessibility-label={null != (_l_later = l.later) ? _l_later : '…'} {...props.loading ? {
|
|
210
|
+
'accessibility-status': 'busy'
|
|
211
|
+
} : {}}>
|
|
212
|
+
{props.loading ? <G9ActivityIndicator running={true} size={18}/> : <text className="g9-agenda__more-text">{null != (_l_later1 = l.later) ? _l_later1 : '…'}</text>}
|
|
213
|
+
</view>;
|
|
214
|
+
}
|
|
215
|
+
const said = answer(r.event.rsvp);
|
|
216
|
+
return <view className={`g9-agenda__event${'declined' === r.event.rsvp ? ' g9-agenda__event--declined' : ''}`} style={rowDir(rtl)} {...props.onSelectEvent ? {
|
|
300
217
|
bindtap: ()=>{
|
|
301
218
|
var _props_onSelectEvent;
|
|
302
219
|
return null == (_props_onSelectEvent = props.onSelectEvent) ? void 0 : _props_onSelectEvent.call(props, r.event);
|
|
303
220
|
}
|
|
304
|
-
} : {}}>
|
|
221
|
+
} : {}} accessibility-element={true} accessibility-label={`${r.event.title}, ${timeOf(r.event, r.date)}`}>
|
|
305
222
|
<view className="g9-agenda__bar" style={r.event.color ? {
|
|
306
223
|
backgroundColor: r.event.color
|
|
307
224
|
} : {}}/>
|
|
308
|
-
<text className="g9-agenda__time">
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
<text className="g9-agenda__title" text-maxline="2" style={{
|
|
225
|
+
<text className="g9-agenda__time">{timeOf(r.event, r.date)}</text>
|
|
226
|
+
<view className="g9-agenda__texts">
|
|
227
|
+
<text className={`g9-agenda__title${'declined' === r.event.rsvp ? ' g9-agenda__title--declined' : ''}`} text-maxline="2" style={{
|
|
312
228
|
textAlign: rtl ? 'right' : 'left'
|
|
313
229
|
}}>
|
|
314
|
-
|
|
315
|
-
|
|
230
|
+
{r.event.title}
|
|
231
|
+
</text>
|
|
232
|
+
{r.event.location ? <text className="g9-agenda__where" text-maxline="1" style={{
|
|
233
|
+
textAlign: rtl ? 'right' : 'left'
|
|
234
|
+
}}>
|
|
235
|
+
{r.event.location}
|
|
236
|
+
</text> : null}
|
|
237
|
+
</view>
|
|
238
|
+
{said ? <text className={`g9-agenda__badge g9-agenda__badge--${r.event.rsvp}`}>{said}</text> : null}
|
|
316
239
|
</view>;
|
|
317
240
|
}}/>;
|
|
318
241
|
}
|
|
@@ -325,7 +248,8 @@ function G9DateInput(props) {
|
|
|
325
248
|
const commit = (t)=>{
|
|
326
249
|
if (!t.trim()) {
|
|
327
250
|
setBad(false);
|
|
328
|
-
props.
|
|
251
|
+
if (props.required) setText(shown);
|
|
252
|
+
else props.onChange(null);
|
|
329
253
|
return;
|
|
330
254
|
}
|
|
331
255
|
const d = parseNaturalDate(t, props.today, {
|
|
@@ -340,10 +264,20 @@ function G9DateInput(props) {
|
|
|
340
264
|
return <view className="g9-date-input" {...g9IdProps(props.id)}>
|
|
341
265
|
<G9TextEntry {...props.id ? {
|
|
342
266
|
id: `${props.id}.Text`
|
|
343
|
-
} : {}} label={props.label} value={text1} onValueChange={(t)=>setText(t)} onBlur={()=>commit(text1)} onConfirm={commit} trailingIcon="calendar" hasError={bad} {...
|
|
267
|
+
} : {}} label={props.label} value={text1} onValueChange={(t)=>setText(t)} onBlur={()=>commit(text1)} onConfirm={commit} trailingIcon="calendar" hasError={bad || !!props.error} {...props.error ? {
|
|
268
|
+
errorText: props.error
|
|
269
|
+
} : bad && props.invalidText ? {
|
|
344
270
|
errorText: props.invalidText
|
|
345
|
-
} : {}}
|
|
346
|
-
|
|
271
|
+
} : {}} {...props.hint ? {
|
|
272
|
+
helperText: props.hint
|
|
273
|
+
} : {}} {...props.disabled ? {
|
|
274
|
+
disabled: true
|
|
275
|
+
} : {}} {...!props.required && props.value ? {
|
|
276
|
+
clearButton: true
|
|
277
|
+
} : {}} onFocus={()=>{
|
|
278
|
+
if (!props.disabled) setOpen(true);
|
|
279
|
+
}}/>
|
|
280
|
+
{open && !props.disabled ? <G9MiniMonth {...props.id ? {
|
|
347
281
|
id: `${props.id}.Month`
|
|
348
282
|
} : {}} today={props.today} value={props.value} {...props.min ? {
|
|
349
283
|
min: props.min
|
|
@@ -357,48 +291,4 @@ function G9DateInput(props) {
|
|
|
357
291
|
}}/> : null}
|
|
358
292
|
</view>;
|
|
359
293
|
}
|
|
360
|
-
|
|
361
|
-
var _ref, _ref1;
|
|
362
|
-
var _props_value, _props_value1;
|
|
363
|
-
const { rtl, weekStart, initial } = useCal();
|
|
364
|
-
const freq = null != (_ref = null == (_props_value = props.value) ? void 0 : _props_value.freq) ? _ref : 'never';
|
|
365
|
-
const days = null != (_ref1 = null == (_props_value1 = props.value) ? void 0 : _props_value1.weekdays) ? _ref1 : [];
|
|
366
|
-
return <view className="g9-repeat" {...g9IdProps(props.id)}>
|
|
367
|
-
<G9Segmented {...props.id ? {
|
|
368
|
-
id: `${props.id}.Freq`
|
|
369
|
-
} : {}} size="sm" fit="content" value={freq} onChange={(f)=>{
|
|
370
|
-
var _props_value;
|
|
371
|
-
return props.onChange('never' === f ? null : {
|
|
372
|
-
...null != (_props_value = props.value) ? _props_value : {},
|
|
373
|
-
freq: f
|
|
374
|
-
});
|
|
375
|
-
}} items={[
|
|
376
|
-
'never',
|
|
377
|
-
'daily',
|
|
378
|
-
'weekly',
|
|
379
|
-
'monthly',
|
|
380
|
-
'yearly'
|
|
381
|
-
].map((k)=>({
|
|
382
|
-
key: k,
|
|
383
|
-
label: props.labels[k]
|
|
384
|
-
}))}/>
|
|
385
|
-
{'weekly' === freq ? <view className="g9-repeat__days" style={rowDir(rtl)}>
|
|
386
|
-
{Array.from({
|
|
387
|
-
length: 7
|
|
388
|
-
}, (_, i)=>(weekStart + i) % 7).map((wd)=><G9Chip key={wd} text={initial(wd)} size="sm" selected={days.includes(wd)} onPress={()=>{
|
|
389
|
-
var _props_value;
|
|
390
|
-
return props.onChange({
|
|
391
|
-
...null != (_props_value = props.value) ? _props_value : {
|
|
392
|
-
freq: 'weekly'
|
|
393
|
-
},
|
|
394
|
-
freq: 'weekly',
|
|
395
|
-
weekdays: days.includes(wd) ? days.filter((x)=>x !== wd) : [
|
|
396
|
-
...days,
|
|
397
|
-
wd
|
|
398
|
-
].sort((a, b)=>a - b)
|
|
399
|
-
});
|
|
400
|
-
}}/>)}
|
|
401
|
-
</view> : null}
|
|
402
|
-
</view>;
|
|
403
|
-
}
|
|
404
|
-
export { G9AgendaView, G9DateInput, G9MiniMonth, G9MonthView, G9RepeatPicker, G9TimeGrid };
|
|
294
|
+
export { G9AgendaView, G9DateInput, G9MiniMonth, agendaRows };
|
package/dist/cards.d.ts
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { type G9LocalDate } from '@g9tm/lynxcontrols-foundation';
|
|
2
|
+
import { type ReactNode } from '@lynx-js/react';
|
|
3
|
+
import type { G9CalendarEvent } from './calendar.js';
|
|
4
|
+
import { type G9Rsvp } from './events.js';
|
|
5
|
+
/** A free (or least busy) time: its day, minutes from midnight, and how many people are busy then. */
|
|
6
|
+
export interface G9FreeSlot {
|
|
7
|
+
readonly date: G9LocalDate;
|
|
8
|
+
readonly start: number;
|
|
9
|
+
readonly end: number;
|
|
10
|
+
readonly busyCount: number;
|
|
11
|
+
}
|
|
12
|
+
/** A busy time of one person (minutes from midnight on `date`; `end` may pass midnight). */
|
|
13
|
+
export interface G9BusySpan {
|
|
14
|
+
readonly date: G9LocalDate;
|
|
15
|
+
readonly start: number;
|
|
16
|
+
readonly end: number;
|
|
17
|
+
}
|
|
18
|
+
/** Options of {@link findCommonSlots}. */
|
|
19
|
+
export interface G9FindSlotsOptions {
|
|
20
|
+
/** The first day searched. */
|
|
21
|
+
readonly from: G9LocalDate;
|
|
22
|
+
/** How many days. Default 7. */
|
|
23
|
+
readonly days?: number;
|
|
24
|
+
/** The meeting's length in minutes. */
|
|
25
|
+
readonly duration: number;
|
|
26
|
+
/** Candidate starts every this many minutes. Default 30. */
|
|
27
|
+
readonly step?: number;
|
|
28
|
+
/** Working hours (minutes). Default 09:00–17:00. */
|
|
29
|
+
readonly dayStart?: number;
|
|
30
|
+
readonly dayEnd?: number;
|
|
31
|
+
/** Weekdays searched (0–6). Default every day. */
|
|
32
|
+
readonly weekdays?: readonly number[];
|
|
33
|
+
/** At most this many slots. Default 12. */
|
|
34
|
+
readonly limit?: number;
|
|
35
|
+
/** Not before this moment (today's slots after now): the day and minutes. */
|
|
36
|
+
readonly notBefore?: {
|
|
37
|
+
readonly date: G9LocalDate;
|
|
38
|
+
readonly minute: number;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The common free slots of `people` (each a list of busy spans): every candidate start in working hours, the number
|
|
43
|
+
* of people busy then; everyone-free slots first in time order, then — when there are fewer than half the limit —
|
|
44
|
+
* the least busy ones (G9Hub's «find a time»).
|
|
45
|
+
*/
|
|
46
|
+
export declare function findCommonSlots(people: readonly (readonly G9BusySpan[])[], o: G9FindSlotsOptions): G9FreeSlot[];
|
|
47
|
+
/** The words of {@link G9FindTime}. */
|
|
48
|
+
export interface G9FindTimeLabels {
|
|
49
|
+
readonly title: string;
|
|
50
|
+
readonly hint?: string;
|
|
51
|
+
readonly button: string;
|
|
52
|
+
readonly none: string;
|
|
53
|
+
/** Under an everyone-free slot. */
|
|
54
|
+
readonly everyone: string;
|
|
55
|
+
/** Under a slot some are busy at: `{n}` is how many. */
|
|
56
|
+
readonly busy: string;
|
|
57
|
+
}
|
|
58
|
+
/** Props of {@link G9FindTime}. */
|
|
59
|
+
export interface G9FindTimeProps {
|
|
60
|
+
readonly id?: string;
|
|
61
|
+
/** The slots found (`null`: not searched yet). */
|
|
62
|
+
readonly slots: readonly G9FreeSlot[] | null;
|
|
63
|
+
/** The search button (absent: no button — the slots come by themselves). */
|
|
64
|
+
readonly onSearch?: () => void;
|
|
65
|
+
readonly loading?: boolean;
|
|
66
|
+
readonly error?: string | null;
|
|
67
|
+
/** The search needs people (no guests yet): the button is off. */
|
|
68
|
+
readonly disabled?: boolean;
|
|
69
|
+
readonly onPick: (slot: G9FreeSlot) => void;
|
|
70
|
+
readonly labels: G9FindTimeLabels;
|
|
71
|
+
}
|
|
72
|
+
/** «Find a time»: the common free slots by day, everyone-free in green, the least busy with how many are busy. */
|
|
73
|
+
export declare function G9FindTime(props: G9FindTimeProps): ReactNode;
|
|
74
|
+
/** The words of {@link G9EventCard}. */
|
|
75
|
+
export interface G9EventCardLabels {
|
|
76
|
+
readonly yes: string;
|
|
77
|
+
readonly maybe: string;
|
|
78
|
+
readonly no: string;
|
|
79
|
+
/** `{n}` guests. */
|
|
80
|
+
readonly guests?: string;
|
|
81
|
+
readonly allDay?: string;
|
|
82
|
+
/** Shown instead of everything when the viewer is not invited. */
|
|
83
|
+
readonly hidden?: string;
|
|
84
|
+
}
|
|
85
|
+
/** Props of {@link G9EventCard}. */
|
|
86
|
+
export interface G9EventCardProps {
|
|
87
|
+
readonly id?: string;
|
|
88
|
+
/** `null`: not loaded yet (the card keeps its height, so a thread does not jump). */
|
|
89
|
+
readonly event: G9CalendarEvent | null;
|
|
90
|
+
/** The repeat in words (`describeRecurrence`). */
|
|
91
|
+
readonly repeat?: string;
|
|
92
|
+
readonly guests?: number;
|
|
93
|
+
/** The viewer's answer; `undefined`: the viewer organises it (no answer buttons). */
|
|
94
|
+
readonly rsvp?: G9Rsvp;
|
|
95
|
+
readonly onRespond?: (answer: 'accepted' | 'tentative' | 'declined') => void;
|
|
96
|
+
/** An answer is being sent. */
|
|
97
|
+
readonly busy?: boolean;
|
|
98
|
+
/** The viewer is not invited: a private event, nothing else. */
|
|
99
|
+
readonly hidden?: boolean;
|
|
100
|
+
readonly onOpen?: () => void;
|
|
101
|
+
readonly labels: G9EventCardLabels;
|
|
102
|
+
}
|
|
103
|
+
/** An event linked in a message: title, when, repeat, place, guests, and yes / maybe / no for an invitee. */
|
|
104
|
+
export declare function G9EventCard(props: G9EventCardProps): ReactNode;
|
|
105
|
+
/** The words of {@link G9TodayWidget}. */
|
|
106
|
+
export interface G9TodayWidgetLabels {
|
|
107
|
+
readonly title: string;
|
|
108
|
+
readonly empty: string;
|
|
109
|
+
readonly allDay: string;
|
|
110
|
+
/** Before the next event. */
|
|
111
|
+
readonly next?: string;
|
|
112
|
+
/** «and {n} more». */
|
|
113
|
+
readonly more?: string;
|
|
114
|
+
}
|
|
115
|
+
/** Props of {@link G9TodayWidget}. */
|
|
116
|
+
export interface G9TodayWidgetProps {
|
|
117
|
+
readonly id?: string;
|
|
118
|
+
readonly today: G9LocalDate;
|
|
119
|
+
/** Now, minutes from midnight (the next event is the first that has not ended). */
|
|
120
|
+
readonly now: number;
|
|
121
|
+
readonly events: readonly G9CalendarEvent[];
|
|
122
|
+
/** At most this many rows. Default 4. */
|
|
123
|
+
readonly max?: number;
|
|
124
|
+
readonly onSelectEvent?: (event: G9CalendarEvent) => void;
|
|
125
|
+
/** The whole card (the calendar). */
|
|
126
|
+
readonly onOpen?: () => void;
|
|
127
|
+
readonly labels: G9TodayWidgetLabels;
|
|
128
|
+
}
|
|
129
|
+
/** Today's events on a home screen: the date, all-day first, then timed with the next one marked; «and n more». */
|
|
130
|
+
export declare function G9TodayWidget(props: G9TodayWidgetProps): ReactNode;
|
|
131
|
+
//# sourceMappingURL=cards.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../src/cards.tsx"],"names":[],"mappings":"AASA,OAAO,EAML,KAAK,WAAW,EAEjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAA0B,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAI/D,sGAAsG;AACtG,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B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