@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
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
`import { G9AgendaView } from '@g9tm/lynxcontrols-calendar';`
|
|
4
4
|
|
|
5
|
-
Days with
|
|
5
|
+
Days with something on them, each a sticky header (its date, «today», the other calendar's date) over its holidays and its events (time, a colour, the title, where, the person's answer), on the recycler; «later days» und
|
|
6
6
|
|
|
7
7
|
Props:
|
|
8
8
|
- `events`: object[]
|
|
9
9
|
- `today`: object
|
|
10
|
+
- `secondCalendar?`: 'gregorian' | 'persian' | 'none' | 'auto' = "none"
|
|
11
|
+
- `onLoadMore?`: () => void
|
|
10
12
|
- `onSelectEvent?`: (event: G9CalendarEvent) => void
|
|
11
13
|
- `allDayText?`: string
|
|
14
|
+
- `loading?`: boolean
|
|
12
15
|
- `empty?`: ReactNode
|
|
13
16
|
|
|
14
17
|
Example: `<G9AgendaView events={events} today={today} />`
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# G9BirthdayField
|
|
2
|
+
|
|
3
|
+
`import { G9BirthdayField } from '@g9tm/lynxcontrols-calendar';`
|
|
4
|
+
|
|
5
|
+
A birthday on the viewer's calendar: the month, the day, an optional year; stored in Gregorian.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `labels`: object
|
|
9
|
+
- `onChange`: (value: G9Birthday | null) => void
|
|
10
|
+
- `value`: object
|
|
11
|
+
- `disabled?`: boolean
|
|
12
|
+
- `thisYear?`: number
|
|
13
|
+
|
|
14
|
+
Example: `<G9BirthdayField labels={labels} onChange={() => {}} value={value} />`
|
|
@@ -9,8 +9,9 @@ Props:
|
|
|
9
9
|
- `onChange`: (date: G9LocalDate | null) => void
|
|
10
10
|
- `today`: object
|
|
11
11
|
- `value`: object
|
|
12
|
+
- `disabled?`: boolean
|
|
13
|
+
- `hint?`: string
|
|
12
14
|
- `invalidText?`: string
|
|
13
|
-
- `
|
|
14
|
-
- `min?`: object
|
|
15
|
+
- `error?`: string
|
|
15
16
|
|
|
16
17
|
Example: `<G9DateInput label="Label" onChange={() => {}} today={today} value={value} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9EventCard
|
|
2
|
+
|
|
3
|
+
`import { G9EventCard } from '@g9tm/lynxcontrols-calendar';`
|
|
4
|
+
|
|
5
|
+
An event linked in a message: title, when, repeat, place, guests, and yes / maybe / no for an invitee.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `event`: object
|
|
9
|
+
- `labels`: object
|
|
10
|
+
- `onOpen?`: () => void
|
|
11
|
+
- `onRespond?`: (answer: "accepted" | "tentative" | "declined") => void
|
|
12
|
+
- `busy?`: boolean
|
|
13
|
+
- `guests?`: number
|
|
14
|
+
- `hidden?`: boolean
|
|
15
|
+
- `repeat?`: string
|
|
16
|
+
|
|
17
|
+
Example: `<G9EventCard event={event} labels={labels} />`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# G9FindTime
|
|
2
|
+
|
|
3
|
+
`import { G9FindTime } from '@g9tm/lynxcontrols-calendar';`
|
|
4
|
+
|
|
5
|
+
«Find a time»: the common free slots by day, everyone-free in green, the least busy with how many are busy.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `labels`: object
|
|
9
|
+
- `onPick`: (slot: G9FreeSlot) => void
|
|
10
|
+
- `slots`: object[]
|
|
11
|
+
- `disabled?`: boolean
|
|
12
|
+
- `onSearch?`: () => void
|
|
13
|
+
- `loading?`: boolean
|
|
14
|
+
- `error?`: string
|
|
15
|
+
|
|
16
|
+
Example: `<G9FindTime labels={labels} onPick={() => {}} slots={slots} />`
|
|
@@ -8,10 +8,10 @@ Props:
|
|
|
8
8
|
- `today`: object
|
|
9
9
|
- `value?`: object
|
|
10
10
|
- `onSelect?`: (date: G9LocalDate) => void
|
|
11
|
+
- `dayOff?`: (date: G9LocalDate) => void
|
|
11
12
|
- `marked?`: (date: G9LocalDate) => void
|
|
13
|
+
- `onMonthChange?`: (month: G9LocalDate) => void
|
|
12
14
|
- `initialMonth?`: object
|
|
13
15
|
- `max?`: object
|
|
14
|
-
- `min?`: object
|
|
15
|
-
- `range?`: object
|
|
16
16
|
|
|
17
17
|
Example: `<G9MiniMonth today={today} />`
|
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
`import { G9MonthView } from '@g9tm/lynxcontrols-calendar';`
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The month with lanes of events, holidays, days off and a mouse drag (wide), or dots and a selected day (compact).
|
|
6
6
|
|
|
7
7
|
Props:
|
|
8
8
|
- `events`: object[]
|
|
9
9
|
- `month`: object
|
|
10
10
|
- `today`: object
|
|
11
|
-
- `
|
|
12
|
-
- `
|
|
13
|
-
- `
|
|
11
|
+
- `selected?`: object
|
|
12
|
+
- `secondCalendar?`: 'gregorian' | 'persian' | 'none' | 'auto' = "none"
|
|
13
|
+
- `dayOff?`: (date: G9LocalDate) => void
|
|
14
|
+
- `moreText?`: (n: number) => void = "+n"
|
|
15
|
+
- `onCreate?`: (draft: G9MonthDraft) => void
|
|
14
16
|
|
|
15
17
|
Example: `<G9MonthView events={events} month={month} today={today} />`
|
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
`import { G9RepeatPicker } from '@g9tm/lynxcontrols-calendar';`
|
|
4
4
|
|
|
5
|
-
Never / daily / weekly
|
|
5
|
+
Never / daily / weekly / … : the presets from the start date and a full custom editor, or the plain frequency row.
|
|
6
6
|
|
|
7
7
|
Props:
|
|
8
8
|
- `labels`: object
|
|
9
9
|
- `onChange`: (rule: G9Recurrence | null) => void
|
|
10
10
|
- `value`: object
|
|
11
|
+
- `editorLabels?`: object
|
|
12
|
+
- `presets?`: 'none' | 'daily' | 'weekly' | 'workdays' | 'monthlyDate' | 'monthlyWeekday' | 'yearly' | 'custom'[]
|
|
13
|
+
- `start?`: object
|
|
14
|
+
- `words?`: object
|
|
11
15
|
|
|
12
16
|
Example: `<G9RepeatPicker labels={labels} onChange={() => {}} value={value} />`
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
`import { G9TimeGrid } from '@g9tm/lynxcontrols-calendar';`
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The hours with overlap lanes, the all-day row and the gestures.
|
|
6
6
|
|
|
7
7
|
Props:
|
|
8
8
|
- `events`: object[]
|
|
9
9
|
- `start`: object
|
|
10
10
|
- `today`: object
|
|
11
|
-
- `
|
|
12
|
-
- `
|
|
13
|
-
- `
|
|
14
|
-
- `
|
|
15
|
-
- `
|
|
11
|
+
- `secondCalendar?`: 'gregorian' | 'persian' | 'none' | 'auto' = "none"
|
|
12
|
+
- `dayOff?`: (date: G9LocalDate) => void
|
|
13
|
+
- `moreText?`: (n: number) => void = "+n"
|
|
14
|
+
- `onCreate?`: (draft: G9TimeDraft) => void
|
|
15
|
+
- `onMove?`: (event: G9CalendarEvent, draft: G9TimeDraft) => void
|
|
16
16
|
|
|
17
17
|
Example: `<G9TimeGrid events={events} start={start} today={today} />`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# G9TimeListPicker
|
|
2
|
+
|
|
3
|
+
`import { G9TimeListPicker } from '@g9tm/lynxcontrols-calendar';`
|
|
4
|
+
|
|
5
|
+
A time picked from a list of steps: a popover on a wide window, a sheet on a phone; it opens at the value.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `label`: string
|
|
9
|
+
- `onChange`: (minutes: number) => void
|
|
10
|
+
- `value`: number
|
|
11
|
+
- `title?`: string
|
|
12
|
+
- `placeholder?`: string
|
|
13
|
+
- `disabled?`: boolean
|
|
14
|
+
- `hint?`: string
|
|
15
|
+
- `error?`: string
|
|
16
|
+
|
|
17
|
+
Example: `<G9TimeListPicker label="Label" onChange={() => {}} value={1} />`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# G9TodayWidget
|
|
2
|
+
|
|
3
|
+
`import { G9TodayWidget } from '@g9tm/lynxcontrols-calendar';`
|
|
4
|
+
|
|
5
|
+
Today's events on a home screen: the date, all-day first, then timed with the next one marked; «and n more».
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `events`: object[]
|
|
9
|
+
- `labels`: object
|
|
10
|
+
- `now`: number
|
|
11
|
+
- `today`: object
|
|
12
|
+
- `onOpen?`: () => void
|
|
13
|
+
- `onSelectEvent?`: (event: G9CalendarEvent) => void
|
|
14
|
+
- `max?`: number = 4
|
|
15
|
+
|
|
16
|
+
Example: `<G9TodayWidget events={events} labels={labels} now={1} today={today} />`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# G9WorkingHoursEditor
|
|
2
|
+
|
|
3
|
+
`import { G9WorkingHoursEditor } from '@g9tm/lynxcontrols-calendar';`
|
|
4
|
+
|
|
5
|
+
The week's working hours: a switch per weekday (in the culture's week), its ranges, copy to every day, the zone.
|
|
6
|
+
|
|
7
|
+
Props:
|
|
8
|
+
- `labels`: object
|
|
9
|
+
- `onChange`: (week: Readonly<Partial<Record<number, readonly G9WorkRange[]>>>) => void
|
|
10
|
+
- `value`: object
|
|
11
|
+
- `onTimeZoneChange?`: (zone: string) => void
|
|
12
|
+
- `defaultRange?`: object = 9
|
|
13
|
+
- `timeZone?`: string
|
|
14
|
+
- `zones?`: string[]
|
|
15
|
+
|
|
16
|
+
Example: `<G9WorkingHoursEditor labels={labels} onChange={() => {}} value={value} />`
|