@g9tm/lynxcontrols-calendar 2.5.7 → 2.5.9
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 +3495 -564
- 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/people.jsx
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { g9IdProps } from "@g9tm/lynxcontrols/base";
|
|
2
|
+
import { G9IconButton } from "@g9tm/lynxcontrols/button";
|
|
3
|
+
import { G9NumberEntry } from "@g9tm/lynxcontrols/fields";
|
|
4
|
+
import { G9Picker } from "@g9tm/lynxcontrols/pickers";
|
|
5
|
+
import { useG9Culture, useG9Direction } from "@g9tm/lynxcontrols/provider";
|
|
6
|
+
import { G9Switch } from "@g9tm/lynxcontrols/toggle";
|
|
7
|
+
import { formatNumber, fromCalendarDate, getMonthNames, getWeekdayNames, localDate, toCalendarDate } from "@g9tm/lynxcontrols-foundation";
|
|
8
|
+
import { weekStartFor } from "./model.jsx";
|
|
9
|
+
import { G9TimeListPicker } from "./time-list.jsx";
|
|
10
|
+
import { G9ZonePicker } from "./zone-picker.jsx";
|
|
11
|
+
function lengthOf(calendar, month, year) {
|
|
12
|
+
if ('persian' === calendar) return month <= 6 ? 31 : month <= 11 ? 30 : year ? isPersianLeap(year) ? 30 : 29 : 30;
|
|
13
|
+
if (2 === month) return year ? year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0) ? 29 : 28 : 29;
|
|
14
|
+
return [
|
|
15
|
+
4,
|
|
16
|
+
6,
|
|
17
|
+
9,
|
|
18
|
+
11
|
|
19
|
+
].includes(month) ? 30 : 31;
|
|
20
|
+
}
|
|
21
|
+
function isPersianLeap(year) {
|
|
22
|
+
const a = fromCalendarDate({
|
|
23
|
+
calendar: 'persian',
|
|
24
|
+
year,
|
|
25
|
+
month: 1,
|
|
26
|
+
day: 1
|
|
27
|
+
});
|
|
28
|
+
const b = fromCalendarDate({
|
|
29
|
+
calendar: 'persian',
|
|
30
|
+
year: year + 1,
|
|
31
|
+
month: 1,
|
|
32
|
+
day: 1
|
|
33
|
+
});
|
|
34
|
+
const days = (Date.UTC(b.year, b.month - 1, b.day) - Date.UTC(a.year, a.month - 1, a.day)) / 86400000;
|
|
35
|
+
return 366 === days;
|
|
36
|
+
}
|
|
37
|
+
function birthdayIn(b, calendar, thisYear) {
|
|
38
|
+
var _b_year;
|
|
39
|
+
if ('gregorian' === calendar) return b;
|
|
40
|
+
const year = null != (_b_year = b.year) ? _b_year : thisYear;
|
|
41
|
+
const day = Math.min(b.day, lengthOf('gregorian', b.month, year));
|
|
42
|
+
const c = toCalendarDate(localDate(year, b.month, day), calendar);
|
|
43
|
+
return {
|
|
44
|
+
month: c.month,
|
|
45
|
+
day: c.day,
|
|
46
|
+
year: b.year ? c.year : null
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function birthdayFrom(month, day, year, calendar, thisYear) {
|
|
50
|
+
if ('gregorian' === calendar) return {
|
|
51
|
+
month,
|
|
52
|
+
day: Math.min(day, lengthOf('gregorian', month, year)),
|
|
53
|
+
year
|
|
54
|
+
};
|
|
55
|
+
const y = null != year ? year : thisYear;
|
|
56
|
+
const d = fromCalendarDate({
|
|
57
|
+
calendar,
|
|
58
|
+
year: y,
|
|
59
|
+
month,
|
|
60
|
+
day: Math.min(day, lengthOf(calendar, month, y))
|
|
61
|
+
});
|
|
62
|
+
return {
|
|
63
|
+
month: d.month,
|
|
64
|
+
day: d.day,
|
|
65
|
+
year: year ? d.year : null
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function G9BirthdayField(props) {
|
|
69
|
+
var _props_thisYear, _ref;
|
|
70
|
+
const culture = useG9Culture();
|
|
71
|
+
const rtl = 'rtl' === useG9Direction();
|
|
72
|
+
const calendar = culture.calendar;
|
|
73
|
+
const now = new Date();
|
|
74
|
+
const gregorianYear = now.getFullYear();
|
|
75
|
+
const shownYear = null != (_props_thisYear = props.thisYear) ? _props_thisYear : toCalendarDate(localDate(gregorianYear, now.getMonth() + 1, now.getDate()), calendar).year;
|
|
76
|
+
const num = (n)=>formatNumber(n, {
|
|
77
|
+
numberingSystem: culture.numberingSystem,
|
|
78
|
+
useGrouping: false
|
|
79
|
+
});
|
|
80
|
+
const shown = props.value ? birthdayIn(props.value, calendar, gregorianYear) : null;
|
|
81
|
+
const months = getMonthNames(calendar, culture);
|
|
82
|
+
const days = Array.from({
|
|
83
|
+
length: shown ? lengthOf(calendar, shown.month, shown.year) : 31
|
|
84
|
+
}, (_, i)=>i + 1);
|
|
85
|
+
const commit = (month, day, year)=>{
|
|
86
|
+
if (!month) return void props.onChange(null);
|
|
87
|
+
const valid = year && year > shownYear - 120 && year <= shownYear ? year : null;
|
|
88
|
+
props.onChange(birthdayFrom(month, null != day ? day : 1, valid, calendar, shownYear));
|
|
89
|
+
};
|
|
90
|
+
return <view className="g9-birthday" {...g9IdProps(props.id)} style={{
|
|
91
|
+
flexDirection: rtl ? 'row-reverse' : 'row',
|
|
92
|
+
direction: 'ltr'
|
|
93
|
+
}}>
|
|
94
|
+
<view className="g9-birthday__part g9-birthday__part--month">
|
|
95
|
+
<G9Picker {...props.id ? {
|
|
96
|
+
id: `${props.id}_Month`
|
|
97
|
+
} : {}} label={props.labels.month} items={months.map((name, i)=>({
|
|
98
|
+
key: String(i + 1),
|
|
99
|
+
text: name
|
|
100
|
+
}))} value={shown ? String(shown.month) : null} onValueChange={(k)=>{
|
|
101
|
+
var _ref, _ref1;
|
|
102
|
+
return commit(k ? Number(k) : null, null != (_ref = null == shown ? void 0 : shown.day) ? _ref : 1, null != (_ref1 = null == shown ? void 0 : shown.year) ? _ref1 : null);
|
|
103
|
+
}} {...props.disabled ? {
|
|
104
|
+
disabled: true
|
|
105
|
+
} : {}}/>
|
|
106
|
+
</view>
|
|
107
|
+
<view className="g9-birthday__part">
|
|
108
|
+
<G9Picker {...props.id ? {
|
|
109
|
+
id: `${props.id}_Day`
|
|
110
|
+
} : {}} label={props.labels.day} items={days.map((d)=>({
|
|
111
|
+
key: String(d),
|
|
112
|
+
text: num(d)
|
|
113
|
+
}))} value={shown ? String(shown.day) : null} onValueChange={(k)=>{
|
|
114
|
+
var _ref, _ref1;
|
|
115
|
+
return commit(null != (_ref = null == shown ? void 0 : shown.month) ? _ref : 1, k ? Number(k) : 1, null != (_ref1 = null == shown ? void 0 : shown.year) ? _ref1 : null);
|
|
116
|
+
}} disabled={true === props.disabled || !shown}/>
|
|
117
|
+
</view>
|
|
118
|
+
<view className="g9-birthday__part">
|
|
119
|
+
<G9NumberEntry {...props.id ? {
|
|
120
|
+
id: `${props.id}_Year`
|
|
121
|
+
} : {}} label={props.labels.year} grouping={false} value={null != (_ref = null == shown ? void 0 : shown.year) ? _ref : null} onBlur={()=>void 0} onValueChange={(y)=>{
|
|
122
|
+
if (shown && (null === y || y > shownYear - 120 && y <= shownYear)) commit(shown.month, shown.day, y);
|
|
123
|
+
}} disabled={true === props.disabled || !shown}/>
|
|
124
|
+
</view>
|
|
125
|
+
</view>;
|
|
126
|
+
}
|
|
127
|
+
function G9WorkingHoursEditor(props) {
|
|
128
|
+
var _props_defaultRange, _props_labels_zone, _props_timeZone, _props_zones;
|
|
129
|
+
const culture = useG9Culture();
|
|
130
|
+
const rtl = 'rtl' === useG9Direction();
|
|
131
|
+
const weekStart = weekStartFor(culture.calendar, culture.language);
|
|
132
|
+
const names = getWeekdayNames(culture, 'wide');
|
|
133
|
+
const first = null != (_props_defaultRange = props.defaultRange) ? _props_defaultRange : {
|
|
134
|
+
start: 540,
|
|
135
|
+
end: 1020
|
|
136
|
+
};
|
|
137
|
+
const row = {
|
|
138
|
+
flexDirection: rtl ? 'row-reverse' : 'row',
|
|
139
|
+
direction: 'ltr'
|
|
140
|
+
};
|
|
141
|
+
const set = (wd, ranges)=>{
|
|
142
|
+
const next = {
|
|
143
|
+
...props.value
|
|
144
|
+
};
|
|
145
|
+
if (ranges && ranges.length) next[wd] = ranges;
|
|
146
|
+
else delete next[wd];
|
|
147
|
+
props.onChange(next);
|
|
148
|
+
};
|
|
149
|
+
return <view className="g9-work" {...g9IdProps(props.id)}>
|
|
150
|
+
{Array.from({
|
|
151
|
+
length: 7
|
|
152
|
+
}, (_, i)=>(weekStart + i) % 7).map((wd)=>{
|
|
153
|
+
var _props_value_wd, _names_wd, _names_wd1;
|
|
154
|
+
const ranges = null != (_props_value_wd = props.value[wd]) ? _props_value_wd : [];
|
|
155
|
+
const on = ranges.length > 0;
|
|
156
|
+
const pid = (part)=>props.id ? {
|
|
157
|
+
id: `${props.id}_${wd}_${part}`
|
|
158
|
+
} : {};
|
|
159
|
+
return <view key={wd} className="g9-work__day">
|
|
160
|
+
<view className="g9-work__head" style={row}>
|
|
161
|
+
<G9Switch {...pid('On')} checked={on} onCheckedChange={(c)=>set(wd, c ? [
|
|
162
|
+
first
|
|
163
|
+
] : void 0)} accessibilityLabel={null != (_names_wd = names[wd]) ? _names_wd : ''}/>
|
|
164
|
+
<text className="g9-work__name" style={{
|
|
165
|
+
textAlign: rtl ? 'right' : 'left'
|
|
166
|
+
}}>
|
|
167
|
+
{null != (_names_wd1 = names[wd]) ? _names_wd1 : ''}
|
|
168
|
+
</text>
|
|
169
|
+
{on ? <G9IconButton {...pid('Copy')} icon="refresh" isGhost buttonSize={32} accessibilityText={props.labels.copy} onPress={()=>{
|
|
170
|
+
var _props_value_d;
|
|
171
|
+
const all = {};
|
|
172
|
+
for(let d = 0; d < 7; d++)if ((null != (_props_value_d = props.value[d]) ? _props_value_d : []).length || d === wd) all[d] = ranges;
|
|
173
|
+
props.onChange(all);
|
|
174
|
+
}}/> : null}
|
|
175
|
+
</view>
|
|
176
|
+
{ranges.map((r, k)=><view key={k} className="g9-work__range" style={row}>
|
|
177
|
+
<view className="g9-work__time">
|
|
178
|
+
<G9TimeListPicker {...pid(`From${k}`)} label={props.labels.from} value={r.start} onChange={(m)=>set(wd, ranges.map((x, j)=>j === k ? {
|
|
179
|
+
start: m,
|
|
180
|
+
end: Math.max(m + 15, x.end)
|
|
181
|
+
} : x))}/>
|
|
182
|
+
</view>
|
|
183
|
+
<view className="g9-work__time">
|
|
184
|
+
<G9TimeListPicker {...pid(`To${k}`)} label={props.labels.to} value={r.end} onChange={(m)=>set(wd, ranges.map((x, j)=>j === k ? {
|
|
185
|
+
start: Math.min(x.start, m - 15),
|
|
186
|
+
end: m
|
|
187
|
+
} : x))}/>
|
|
188
|
+
</view>
|
|
189
|
+
<G9IconButton {...pid(`Remove${k}`)} icon="close" isGhost buttonSize={32} accessibilityText={props.labels.remove} onPress={()=>set(wd, ranges.filter((_, j)=>j !== k))}/>
|
|
190
|
+
</view>)}
|
|
191
|
+
{on ? <view className="g9-work__add" {...g9IdProps(props.id ? `${props.id}_${wd}_Add` : void 0)} bindtap={()=>{
|
|
192
|
+
const last = ranges[ranges.length - 1];
|
|
193
|
+
const start = Math.min(1380, last.end + 60);
|
|
194
|
+
set(wd, [
|
|
195
|
+
...ranges,
|
|
196
|
+
{
|
|
197
|
+
start,
|
|
198
|
+
end: Math.min(1425, start + 120)
|
|
199
|
+
}
|
|
200
|
+
]);
|
|
201
|
+
}} accessibility-element={true} accessibility-traits="button" accessibility-label={props.labels.add}>
|
|
202
|
+
<text className="g9-work__add-text">{props.labels.add}</text>
|
|
203
|
+
</view> : null}
|
|
204
|
+
</view>;
|
|
205
|
+
})}
|
|
206
|
+
{props.onTimeZoneChange ? <G9ZonePicker {...props.id ? {
|
|
207
|
+
id: `${props.id}_Zone`
|
|
208
|
+
} : {}} label={null != (_props_labels_zone = props.labels.zone) ? _props_labels_zone : ''} value={null != (_props_timeZone = props.timeZone) ? _props_timeZone : ''} onChange={props.onTimeZoneChange} zones={null != (_props_zones = props.zones) ? _props_zones : []}/> : null}
|
|
209
|
+
</view>;
|
|
210
|
+
}
|
|
211
|
+
export { G9BirthdayField, G9WorkingHoursEditor, birthdayFrom, birthdayIn };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type G9CalendarSystem, type G9Culture, type G9LocalDate } from '@g9tm/lynxcontrols-foundation';
|
|
2
|
+
import type { G9Recurrence } from './model.js';
|
|
3
|
+
/** The ready-made choices of a repeat picker. */
|
|
4
|
+
export type G9RecurrencePreset = 'none' | 'daily' | 'weekly' | 'workdays' | 'monthlyDate' | 'monthlyWeekday' | 'yearly' | 'custom';
|
|
5
|
+
/** Every preset, in the order a picker lists them. */
|
|
6
|
+
export declare const g9RecurrencePresets: readonly G9RecurrencePreset[];
|
|
7
|
+
/** Working days: Saturday–Wednesday in Persian (Iran), Monday–Friday elsewhere. */
|
|
8
|
+
export declare function workdaysFor(language: string): readonly number[];
|
|
9
|
+
/** Which of its weekday in the month a day is: 1–4, or -1 (the last) for days 29–31. */
|
|
10
|
+
export declare function nthOfMonth(date: G9LocalDate, calendar: G9CalendarSystem): 1 | 2 | 3 | 4 | -1;
|
|
11
|
+
/** Whether the day is the last of its weekday in its month («last Friday» is offered too). */
|
|
12
|
+
export declare function isLastWeekdayOfMonth(date: G9LocalDate, calendar: G9CalendarSystem): boolean;
|
|
13
|
+
/** The rule of a preset for an event starting on `start` (`null` for none and custom). */
|
|
14
|
+
export declare function presetRule(preset: G9RecurrencePreset, start: G9LocalDate, calendar: G9CalendarSystem, language: string): G9Recurrence | null;
|
|
15
|
+
/** The preset a rule is (or `'custom'`). */
|
|
16
|
+
export declare function presetOf(rule: G9Recurrence | null | undefined, start: G9LocalDate, calendar: G9CalendarSystem, language: string): G9RecurrencePreset;
|
|
17
|
+
/** A phrase with a singular and a plural form (`{n}` is the count). */
|
|
18
|
+
export type G9Plural = readonly [one: string, other: string];
|
|
19
|
+
/** The words of {@link describeRecurrence} (`{n}`, `{days}`, `{day}`, `{nth}`, `{weekday}`, `{date}`, `{month}`). */
|
|
20
|
+
export interface G9RecurrenceWords {
|
|
21
|
+
readonly none: string;
|
|
22
|
+
readonly custom: string;
|
|
23
|
+
readonly daily: G9Plural;
|
|
24
|
+
readonly weekly: G9Plural;
|
|
25
|
+
readonly workdays: string;
|
|
26
|
+
readonly monthlyDate: G9Plural;
|
|
27
|
+
readonly monthlyWeekday: G9Plural;
|
|
28
|
+
readonly yearlyDate: G9Plural;
|
|
29
|
+
readonly yearlyWeekday: G9Plural;
|
|
30
|
+
readonly until: string;
|
|
31
|
+
readonly count: G9Plural;
|
|
32
|
+
/** first, second, third, fourth, last. */
|
|
33
|
+
readonly ordinals: readonly [string, string, string, string, string];
|
|
34
|
+
readonly listSeparator: string;
|
|
35
|
+
readonly listLast: string;
|
|
36
|
+
/** After a monthly or yearly rule counted in the other calendar. */
|
|
37
|
+
readonly inPersian: string;
|
|
38
|
+
readonly inGregorian: string;
|
|
39
|
+
}
|
|
40
|
+
/** English words (an app passes its own language). */
|
|
41
|
+
export declare const g9RecurrenceWordsEn: G9RecurrenceWords;
|
|
42
|
+
/** Persian words. */
|
|
43
|
+
export declare const g9RecurrenceWordsFa: G9RecurrenceWords;
|
|
44
|
+
/** The weekdays of a weekly rule as words, in the order of the culture's week. */
|
|
45
|
+
export declare function describeWeekdays(days: readonly number[], culture: G9Culture, weekStart: number, words: G9RecurrenceWords): string;
|
|
46
|
+
/** A sentence for a rule: «Every year on 15 Mehr», «هر ماه، دومین شنبه، ۱۰ بار». */
|
|
47
|
+
export declare function describeRecurrence(rule: G9Recurrence | null | undefined, start: G9LocalDate, culture: G9Culture, options?: {
|
|
48
|
+
readonly words?: G9RecurrenceWords;
|
|
49
|
+
readonly weekStart?: number;
|
|
50
|
+
}): string;
|
|
51
|
+
//# sourceMappingURL=recurrence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recurrence.d.ts","sourceRoot":"","sources":["../src/recurrence.ts"],"names":[],"mappings":"AAIA,OAAO,EAIL,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,WAAW,EAIjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,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CAAC,EAAE,MAAM,CAAA;CAAO,GAChF,MAAM,CAyDR"}
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import { dayOfWeek, daysInMonth, formatNumber, getMonthName, getWeekdayNames, toCalendarDate } from "@g9tm/lynxcontrols-foundation";
|
|
2
|
+
const g9RecurrencePresets = Object.freeze([
|
|
3
|
+
'none',
|
|
4
|
+
'daily',
|
|
5
|
+
'weekly',
|
|
6
|
+
'workdays',
|
|
7
|
+
'monthlyDate',
|
|
8
|
+
'monthlyWeekday',
|
|
9
|
+
'yearly',
|
|
10
|
+
'custom'
|
|
11
|
+
]);
|
|
12
|
+
function workdaysFor(language) {
|
|
13
|
+
return 'fa' === language ? [
|
|
14
|
+
6,
|
|
15
|
+
0,
|
|
16
|
+
1,
|
|
17
|
+
2,
|
|
18
|
+
3
|
|
19
|
+
] : [
|
|
20
|
+
1,
|
|
21
|
+
2,
|
|
22
|
+
3,
|
|
23
|
+
4,
|
|
24
|
+
5
|
|
25
|
+
];
|
|
26
|
+
}
|
|
27
|
+
function nthOfMonth(date, calendar) {
|
|
28
|
+
const nth = Math.ceil(toCalendarDate(date, calendar).day / 7);
|
|
29
|
+
return nth >= 5 ? -1 : nth;
|
|
30
|
+
}
|
|
31
|
+
function isLastWeekdayOfMonth(date, calendar) {
|
|
32
|
+
const c = toCalendarDate(date, calendar);
|
|
33
|
+
return c.day + 7 > daysInMonth(calendar, c.year, c.month);
|
|
34
|
+
}
|
|
35
|
+
function presetRule(preset, start, calendar, language) {
|
|
36
|
+
switch(preset){
|
|
37
|
+
case 'daily':
|
|
38
|
+
return {
|
|
39
|
+
freq: 'daily'
|
|
40
|
+
};
|
|
41
|
+
case 'weekly':
|
|
42
|
+
return {
|
|
43
|
+
freq: 'weekly',
|
|
44
|
+
weekdays: [
|
|
45
|
+
dayOfWeek(start)
|
|
46
|
+
]
|
|
47
|
+
};
|
|
48
|
+
case 'workdays':
|
|
49
|
+
return {
|
|
50
|
+
freq: 'weekly',
|
|
51
|
+
weekdays: [
|
|
52
|
+
...workdaysFor(language)
|
|
53
|
+
]
|
|
54
|
+
};
|
|
55
|
+
case 'monthlyDate':
|
|
56
|
+
return {
|
|
57
|
+
freq: 'monthly',
|
|
58
|
+
calendar
|
|
59
|
+
};
|
|
60
|
+
case 'monthlyWeekday':
|
|
61
|
+
return {
|
|
62
|
+
freq: 'monthly',
|
|
63
|
+
calendar,
|
|
64
|
+
weekOfMonth: nthOfMonth(start, calendar)
|
|
65
|
+
};
|
|
66
|
+
case 'yearly':
|
|
67
|
+
return {
|
|
68
|
+
freq: 'yearly',
|
|
69
|
+
calendar
|
|
70
|
+
};
|
|
71
|
+
default:
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
function presetOf(rule, start, calendar, language) {
|
|
76
|
+
var _rule_interval, _rule_calendar, _rule_weekdays;
|
|
77
|
+
if (!rule) return 'none';
|
|
78
|
+
if ((null != (_rule_interval = rule.interval) ? _rule_interval : 1) !== 1 || rule.until || rule.count) return 'custom';
|
|
79
|
+
const sameCalendar = (null != (_rule_calendar = rule.calendar) ? _rule_calendar : calendar) === calendar;
|
|
80
|
+
const days = [
|
|
81
|
+
...null != (_rule_weekdays = rule.weekdays) ? _rule_weekdays : []
|
|
82
|
+
].sort((a, b)=>a - b);
|
|
83
|
+
switch(rule.freq){
|
|
84
|
+
case 'daily':
|
|
85
|
+
return 'daily';
|
|
86
|
+
case 'weekly':
|
|
87
|
+
if (0 === days.length || 1 === days.length && days[0] === dayOfWeek(start)) return 'weekly';
|
|
88
|
+
return days.join() === [
|
|
89
|
+
...workdaysFor(language)
|
|
90
|
+
].sort((a, b)=>a - b).join() ? 'workdays' : 'custom';
|
|
91
|
+
case 'monthly':
|
|
92
|
+
if (!sameCalendar) return 'custom';
|
|
93
|
+
if (void 0 === rule.weekOfMonth) return 'monthlyDate';
|
|
94
|
+
return rule.weekOfMonth === nthOfMonth(start, calendar) ? 'monthlyWeekday' : 'custom';
|
|
95
|
+
default:
|
|
96
|
+
return sameCalendar && void 0 === rule.weekOfMonth ? 'yearly' : 'custom';
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
const g9RecurrenceWordsEn = Object.freeze({
|
|
100
|
+
none: 'Does not repeat',
|
|
101
|
+
custom: 'Custom…',
|
|
102
|
+
daily: [
|
|
103
|
+
'Every day',
|
|
104
|
+
'Every {n} days'
|
|
105
|
+
],
|
|
106
|
+
weekly: [
|
|
107
|
+
'Every week on {days}',
|
|
108
|
+
'Every {n} weeks on {days}'
|
|
109
|
+
],
|
|
110
|
+
workdays: 'Every working day ({days})',
|
|
111
|
+
monthlyDate: [
|
|
112
|
+
'Every month on day {day}',
|
|
113
|
+
'Every {n} months on day {day}'
|
|
114
|
+
],
|
|
115
|
+
monthlyWeekday: [
|
|
116
|
+
'Every month on the {nth} {weekday}',
|
|
117
|
+
'Every {n} months on the {nth} {weekday}'
|
|
118
|
+
],
|
|
119
|
+
yearlyDate: [
|
|
120
|
+
'Every year on {date}',
|
|
121
|
+
'Every {n} years on {date}'
|
|
122
|
+
],
|
|
123
|
+
yearlyWeekday: [
|
|
124
|
+
'Every year on the {nth} {weekday} of {month}',
|
|
125
|
+
'Every {n} years on the {nth} {weekday} of {month}'
|
|
126
|
+
],
|
|
127
|
+
until: 'until {date}',
|
|
128
|
+
count: [
|
|
129
|
+
'once',
|
|
130
|
+
'{n} times'
|
|
131
|
+
],
|
|
132
|
+
ordinals: [
|
|
133
|
+
'first',
|
|
134
|
+
'second',
|
|
135
|
+
'third',
|
|
136
|
+
'fourth',
|
|
137
|
+
'last'
|
|
138
|
+
],
|
|
139
|
+
listSeparator: ', ',
|
|
140
|
+
listLast: ' and ',
|
|
141
|
+
inPersian: ' (solar calendar)',
|
|
142
|
+
inGregorian: ' (Gregorian calendar)'
|
|
143
|
+
});
|
|
144
|
+
const g9RecurrenceWordsFa = Object.freeze({
|
|
145
|
+
none: 'تکرار نمیشود',
|
|
146
|
+
custom: 'سفارشی…',
|
|
147
|
+
daily: [
|
|
148
|
+
'هر روز',
|
|
149
|
+
'هر {n} روز'
|
|
150
|
+
],
|
|
151
|
+
weekly: [
|
|
152
|
+
'هر هفته، {days}',
|
|
153
|
+
'هر {n} هفته، {days}'
|
|
154
|
+
],
|
|
155
|
+
workdays: 'هر روز کاری ({days})',
|
|
156
|
+
monthlyDate: [
|
|
157
|
+
'هر ماه، روز {day}',
|
|
158
|
+
'هر {n} ماه، روز {day}'
|
|
159
|
+
],
|
|
160
|
+
monthlyWeekday: [
|
|
161
|
+
'هر ماه، {nth} {weekday}',
|
|
162
|
+
'هر {n} ماه، {nth} {weekday}'
|
|
163
|
+
],
|
|
164
|
+
yearlyDate: [
|
|
165
|
+
'هر سال، {date}',
|
|
166
|
+
'هر {n} سال، {date}'
|
|
167
|
+
],
|
|
168
|
+
yearlyWeekday: [
|
|
169
|
+
'هر سال، {nth} {weekday} {month}',
|
|
170
|
+
'هر {n} سال، {nth} {weekday} {month}'
|
|
171
|
+
],
|
|
172
|
+
until: 'تا {date}',
|
|
173
|
+
count: [
|
|
174
|
+
'یک بار',
|
|
175
|
+
'{n} بار'
|
|
176
|
+
],
|
|
177
|
+
ordinals: [
|
|
178
|
+
'اولین',
|
|
179
|
+
'دومین',
|
|
180
|
+
'سومین',
|
|
181
|
+
'چهارمین',
|
|
182
|
+
'آخرین'
|
|
183
|
+
],
|
|
184
|
+
listSeparator: '، ',
|
|
185
|
+
listLast: ' و ',
|
|
186
|
+
inPersian: ' (تقویم شمسی)',
|
|
187
|
+
inGregorian: ' (تقویم میلادی)'
|
|
188
|
+
});
|
|
189
|
+
const fill = (template, values)=>template.replace(/\{(\w+)\}/g, (_, k)=>{
|
|
190
|
+
var _values_k;
|
|
191
|
+
return null != (_values_k = values[k]) ? _values_k : '';
|
|
192
|
+
});
|
|
193
|
+
function joinList(parts, words) {
|
|
194
|
+
if (parts.length <= 1) return parts.join('');
|
|
195
|
+
return parts.slice(0, -1).join(words.listSeparator) + words.listLast + parts[parts.length - 1];
|
|
196
|
+
}
|
|
197
|
+
function ordinal(nth, words) {
|
|
198
|
+
return -1 === nth ? words.ordinals[4] : words.ordinals[Math.max(0, Math.min(3, nth - 1))];
|
|
199
|
+
}
|
|
200
|
+
function describeWeekdays(days, culture, weekStart, words) {
|
|
201
|
+
const names = getWeekdayNames(culture, 'wide');
|
|
202
|
+
const order = Array.from({
|
|
203
|
+
length: 7
|
|
204
|
+
}, (_, i)=>(weekStart + i) % 7);
|
|
205
|
+
return joinList(order.filter((d)=>days.includes(d)).map((d)=>{
|
|
206
|
+
var _names_d;
|
|
207
|
+
return null != (_names_d = names[d]) ? _names_d : '';
|
|
208
|
+
}), words);
|
|
209
|
+
}
|
|
210
|
+
function describeRecurrence(rule, start, culture, options = {}) {
|
|
211
|
+
var _options_words, _options_weekStart, _rule_interval, _rule_calendar, _weekdays_dayOfWeek;
|
|
212
|
+
const words = null != (_options_words = options.words) ? _options_words : 'fa' === culture.language ? g9RecurrenceWordsFa : g9RecurrenceWordsEn;
|
|
213
|
+
if (!rule) return words.none;
|
|
214
|
+
const weekStart = null != (_options_weekStart = options.weekStart) ? _options_weekStart : 'fa' === culture.language ? 6 : 'en' === culture.language ? 0 : 1;
|
|
215
|
+
const num = (v)=>formatNumber(v, {
|
|
216
|
+
numberingSystem: culture.numberingSystem,
|
|
217
|
+
useGrouping: false
|
|
218
|
+
});
|
|
219
|
+
const n = Math.max(1, null != (_rule_interval = rule.interval) ? _rule_interval : 1);
|
|
220
|
+
const plural = (p, extra = {})=>fill(1 === n ? p[0] : p[1], {
|
|
221
|
+
n: num(n),
|
|
222
|
+
...extra
|
|
223
|
+
});
|
|
224
|
+
const calendar = null != (_rule_calendar = rule.calendar) ? _rule_calendar : culture.calendar;
|
|
225
|
+
const tag = calendar !== culture.calendar && ('monthly' === rule.freq || 'yearly' === rule.freq) ? 'persian' === calendar ? words.inPersian : words.inGregorian : '';
|
|
226
|
+
const weekdays = getWeekdayNames(culture, 'wide');
|
|
227
|
+
const weekday = null != (_weekdays_dayOfWeek = weekdays[dayOfWeek(start)]) ? _weekdays_dayOfWeek : '';
|
|
228
|
+
const c = toCalendarDate(start, calendar);
|
|
229
|
+
const month = getMonthName(calendar, c.month, culture);
|
|
230
|
+
let main;
|
|
231
|
+
switch(rule.freq){
|
|
232
|
+
case 'daily':
|
|
233
|
+
main = plural(words.daily);
|
|
234
|
+
break;
|
|
235
|
+
case 'weekly':
|
|
236
|
+
{
|
|
237
|
+
var _weekdays_work_, _weekdays_work_1;
|
|
238
|
+
var _rule_weekdays;
|
|
239
|
+
const days = (null == (_rule_weekdays = rule.weekdays) ? void 0 : _rule_weekdays.length) ? rule.weekdays : [
|
|
240
|
+
dayOfWeek(start)
|
|
241
|
+
];
|
|
242
|
+
const work = workdaysFor(culture.language);
|
|
243
|
+
main = 1 === n && days.length === work.length && work.every((d)=>days.includes(d)) ? fill(words.workdays, {
|
|
244
|
+
days: `${null != (_weekdays_work_ = weekdays[work[0]]) ? _weekdays_work_ : ''}–${null != (_weekdays_work_1 = weekdays[work[work.length - 1]]) ? _weekdays_work_1 : ''}`
|
|
245
|
+
}) : plural(words.weekly, {
|
|
246
|
+
days: describeWeekdays(days, culture, weekStart, words)
|
|
247
|
+
});
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
case 'monthly':
|
|
251
|
+
main = void 0 === rule.weekOfMonth ? plural(words.monthlyDate, {
|
|
252
|
+
day: num(c.day)
|
|
253
|
+
}) : plural(words.monthlyWeekday, {
|
|
254
|
+
nth: ordinal(rule.weekOfMonth, words),
|
|
255
|
+
weekday
|
|
256
|
+
});
|
|
257
|
+
break;
|
|
258
|
+
default:
|
|
259
|
+
main = void 0 === rule.weekOfMonth ? plural(words.yearlyDate, {
|
|
260
|
+
date: `${num(c.day)} ${month}`
|
|
261
|
+
}) : plural(words.yearlyWeekday, {
|
|
262
|
+
nth: ordinal(rule.weekOfMonth, words),
|
|
263
|
+
weekday,
|
|
264
|
+
month
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
const parts = [
|
|
268
|
+
main + tag
|
|
269
|
+
];
|
|
270
|
+
if (rule.until) {
|
|
271
|
+
const u = toCalendarDate(rule.until, culture.calendar);
|
|
272
|
+
parts.push(fill(words.until, {
|
|
273
|
+
date: `${num(u.day)} ${getMonthName(culture.calendar, u.month, culture)} ${num(u.year)}`
|
|
274
|
+
}));
|
|
275
|
+
} else if (rule.count) parts.push(fill(1 === rule.count ? words.count[0] : words.count[1], {
|
|
276
|
+
n: num(rule.count)
|
|
277
|
+
}));
|
|
278
|
+
return parts.join(words.listSeparator);
|
|
279
|
+
}
|
|
280
|
+
export { describeRecurrence, describeWeekdays, g9RecurrencePresets, g9RecurrenceWordsEn, g9RecurrenceWordsFa, isLastWeekdayOfMonth, nthOfMonth, presetOf, presetRule, workdaysFor };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type G9LocalDate } from '@g9tm/lynxcontrols-foundation';
|
|
2
|
+
import { type ReactNode } from '@lynx-js/react';
|
|
3
|
+
import { type G9Recurrence } from './model.js';
|
|
4
|
+
import { type G9RecurrencePreset, type G9RecurrenceWords } from './recurrence.js';
|
|
5
|
+
/** The custom editor's words (English defaults). */
|
|
6
|
+
export interface G9RepeatEditorLabels {
|
|
7
|
+
readonly every: string;
|
|
8
|
+
readonly unitDaily: string;
|
|
9
|
+
readonly unitWeekly: string;
|
|
10
|
+
readonly unitMonthly: string;
|
|
11
|
+
readonly unitYearly: string;
|
|
12
|
+
readonly byDate: string;
|
|
13
|
+
readonly byWeekday: string;
|
|
14
|
+
readonly persian: string;
|
|
15
|
+
readonly gregorian: string;
|
|
16
|
+
readonly ends: string;
|
|
17
|
+
readonly never: string;
|
|
18
|
+
readonly onDate: string;
|
|
19
|
+
readonly after: string;
|
|
20
|
+
readonly untilLabel: string;
|
|
21
|
+
readonly times: string;
|
|
22
|
+
}
|
|
23
|
+
/** Props of {@link G9RepeatPicker}. */
|
|
24
|
+
export interface G9RepeatPickerProps {
|
|
25
|
+
readonly id?: string;
|
|
26
|
+
readonly value: G9Recurrence | null;
|
|
27
|
+
readonly onChange: (rule: G9Recurrence | null) => void;
|
|
28
|
+
/** The plain picker's frequency names (used when there is no `start`). */
|
|
29
|
+
readonly labels: {
|
|
30
|
+
readonly never: string;
|
|
31
|
+
readonly daily: string;
|
|
32
|
+
readonly weekly: string;
|
|
33
|
+
readonly monthly: string;
|
|
34
|
+
readonly yearly: string;
|
|
35
|
+
};
|
|
36
|
+
/** The event's first day: the presets are worded from it («every year on 15 Mehr»; 2.5.8). */
|
|
37
|
+
readonly start?: G9LocalDate;
|
|
38
|
+
/** The sentences (default the culture's Persian or English). */
|
|
39
|
+
readonly words?: G9RecurrenceWords;
|
|
40
|
+
/** The custom editor's words. */
|
|
41
|
+
readonly editorLabels?: Partial<G9RepeatEditorLabels>;
|
|
42
|
+
/** Which presets are offered, in order. Default all. */
|
|
43
|
+
readonly presets?: readonly G9RecurrencePreset[];
|
|
44
|
+
}
|
|
45
|
+
/** Never / daily / weekly / … : the presets from the start date and a full custom editor, or the plain frequency row. */
|
|
46
|
+
export declare function G9RepeatPicker(props: G9RepeatPickerProps): ReactNode;
|
|
47
|
+
//# sourceMappingURL=repeat-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repeat-picker.d.ts","sourceRoot":"","sources":["../src/repeat-picker.tsx"],"names":[],"mappings":"AAOA,OAAO,EAIL,KAAK,WAAW,EAEjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,gBAAgB,CAAC;AAE1D,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,SAAS,CAAC;AAC1D,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EAOvB,MAAM,cAAc,CAAC;AAEtB,oDAAoD;AACpD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,SAAS,EA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