@42-central/ui-react 0.17.0 → 0.18.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 +36 -175
- package/dist/{chunk-FD6P6PLQ.js → chunk-5JHDSVEZ.js} +3 -3
- package/dist/{chunk-FD6P6PLQ.js.map → chunk-5JHDSVEZ.js.map} +1 -1
- package/dist/{chunk-QMW7D5GU.js → chunk-5OQLFX47.js} +4 -3
- package/dist/chunk-5OQLFX47.js.map +1 -0
- package/dist/{chunk-VZ2TPU4B.js → chunk-6GDMSENK.js} +3 -2
- package/dist/chunk-6GDMSENK.js.map +1 -0
- package/dist/{chunk-TNNH3FVQ.js → chunk-6OLTJYSX.js} +24 -8
- package/dist/chunk-6OLTJYSX.js.map +1 -0
- package/dist/{chunk-POKDSVQT.js → chunk-AE7QTLJ5.js} +5 -4
- package/dist/chunk-AE7QTLJ5.js.map +1 -0
- package/dist/{chunk-44OV3PNH.js → chunk-B2YJKRNQ.js} +3 -3
- package/dist/{chunk-44OV3PNH.js.map → chunk-B2YJKRNQ.js.map} +1 -1
- package/dist/{chunk-YIQI2CF3.js → chunk-CTSO6V72.js} +3 -2
- package/dist/chunk-CTSO6V72.js.map +1 -0
- package/dist/{chunk-ACE7FBWE.js → chunk-EBREIC3L.js} +5 -4
- package/dist/chunk-EBREIC3L.js.map +1 -0
- package/dist/{chunk-UNSAA7YG.js → chunk-FHG54IT5.js} +3 -2
- package/dist/chunk-FHG54IT5.js.map +1 -0
- package/dist/{chunk-3GYOIQW7.js → chunk-FZIHZT5R.js} +5 -5
- package/dist/{chunk-3GYOIQW7.js.map → chunk-FZIHZT5R.js.map} +1 -1
- package/dist/{chunk-2H46IXW4.js → chunk-HAQJQFE6.js} +28 -8
- package/dist/chunk-HAQJQFE6.js.map +1 -0
- package/dist/{chunk-IHYFYMHJ.js → chunk-HT5JAHR3.js} +6 -6
- package/dist/{chunk-IHYFYMHJ.js.map → chunk-HT5JAHR3.js.map} +1 -1
- package/dist/chunk-I4SQQIP5.js +12 -0
- package/dist/chunk-I4SQQIP5.js.map +1 -0
- package/dist/{chunk-J3PELDH3.js → chunk-JITF6I7N.js} +22 -6
- package/dist/chunk-JITF6I7N.js.map +1 -0
- package/dist/{chunk-IFWCCAQV.js → chunk-KHMFNH3X.js} +3 -2
- package/dist/chunk-KHMFNH3X.js.map +1 -0
- package/dist/{chunk-SIG4DMNZ.js → chunk-MI2WZRK3.js} +4 -4
- package/dist/{chunk-SIG4DMNZ.js.map → chunk-MI2WZRK3.js.map} +1 -1
- package/dist/{chunk-PJL4ZL5V.js → chunk-O23Y5ML4.js} +8 -8
- package/dist/{chunk-PJL4ZL5V.js.map → chunk-O23Y5ML4.js.map} +1 -1
- package/dist/{chunk-P7A3BCAC.js → chunk-OWG4BCQR.js} +3 -3
- package/dist/{chunk-P7A3BCAC.js.map → chunk-OWG4BCQR.js.map} +1 -1
- package/dist/{chunk-FUWSTUDM.js → chunk-PH354ECN.js} +4 -4
- package/dist/{chunk-FUWSTUDM.js.map → chunk-PH354ECN.js.map} +1 -1
- package/dist/{chunk-U5GW5EBR.js → chunk-RAUOFTUH.js} +12 -20
- package/dist/chunk-RAUOFTUH.js.map +1 -0
- package/dist/{chunk-2762HZYX.js → chunk-S2HWWR2H.js} +47 -25
- package/dist/chunk-S2HWWR2H.js.map +1 -0
- package/dist/{chunk-VLUKI3HL.js → chunk-S7N4LGLZ.js} +6 -13
- package/dist/chunk-S7N4LGLZ.js.map +1 -0
- package/dist/{chunk-TMMEJKLI.js → chunk-UHNRAI6V.js} +17 -4
- package/dist/chunk-UHNRAI6V.js.map +1 -0
- package/dist/{chunk-3NZXWCGF.js → chunk-WHKKN3ZK.js} +6 -6
- package/dist/{chunk-3NZXWCGF.js.map → chunk-WHKKN3ZK.js.map} +1 -1
- package/dist/{chunk-MOI7B3KH.js → chunk-WQN64ZHG.js} +5 -5
- package/dist/{chunk-MOI7B3KH.js.map → chunk-WQN64ZHG.js.map} +1 -1
- package/dist/chunk-WSIVRDRB.js +34 -0
- package/dist/chunk-WSIVRDRB.js.map +1 -0
- package/dist/{chunk-6SWK4XG5.js → chunk-YXE4B6X3.js} +2 -2
- package/dist/chunk-YXE4B6X3.js.map +1 -0
- package/dist/{chunk-NGAQITWP.js → chunk-Z2Z5EXVT.js} +10 -7
- package/dist/chunk-Z2Z5EXVT.js.map +1 -0
- package/dist/{chunk-IXKELBJA.js → chunk-ZDXQ64A7.js} +63 -44
- package/dist/chunk-ZDXQ64A7.js.map +1 -0
- package/dist/components/accordion/accordion-data.d.ts +3 -2
- package/dist/components/accordion/accordion-data.d.ts.map +1 -1
- package/dist/components/accordion/accordion.d.ts +2 -2
- package/dist/components/accordion/accordion.d.ts.map +1 -1
- package/dist/components/accordion/index.js +20 -8
- package/dist/components/accordion/index.js.map +1 -1
- package/dist/components/action-icon/action-icon.d.ts +3 -4
- package/dist/components/action-icon/action-icon.d.ts.map +1 -1
- package/dist/components/action-icon/index.js +2 -1
- package/dist/components/alert/alert.d.ts +18 -10
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/index.js +17 -5
- package/dist/components/alert/index.js.map +1 -1
- package/dist/components/app-shell/app-shell.d.ts +3 -2
- package/dist/components/app-shell/app-shell.d.ts.map +1 -1
- package/dist/components/app-shell/index.js +4 -2
- package/dist/components/app-shell/index.js.map +1 -1
- package/dist/components/autocomplete/index.js +5 -4
- package/dist/components/autocomplete/index.js.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.d.ts +3 -2
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/components/breadcrumb/index.js +11 -5
- package/dist/components/breadcrumb/index.js.map +1 -1
- package/dist/components/button/button.d.ts +4 -4
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/index.js +2 -1
- package/dist/components/button-multi-select/index.js +4 -3
- package/dist/components/button-multi-select/index.js.map +1 -1
- package/dist/components/button-select/index.js +4 -3
- package/dist/components/button-select/index.js.map +1 -1
- package/dist/components/calendar/calendar-body.d.ts.map +1 -1
- package/dist/components/calendar/index.js +3 -2
- package/dist/components/checkbox/index.js +2 -2
- package/dist/components/choice-card-group/index.js +1 -1
- package/dist/components/circular-progress/circular-progress.d.ts +3 -2
- package/dist/components/circular-progress/circular-progress.d.ts.map +1 -1
- package/dist/components/circular-progress/index.js +1 -0
- package/dist/components/circular-progress/index.js.map +1 -1
- package/dist/components/clipboard/clipboard.d.ts +1 -1
- package/dist/components/clipboard/clipboard.d.ts.map +1 -1
- package/dist/components/clipboard/index.js +9 -5
- package/dist/components/clipboard/index.js.map +1 -1
- package/dist/components/code-block/chrome.d.ts +4 -1
- package/dist/components/code-block/chrome.d.ts.map +1 -1
- package/dist/components/code-block/chrome.js +5 -4
- package/dist/components/code-block/code-block.d.ts +7 -1
- package/dist/components/code-block/code-block.d.ts.map +1 -1
- package/dist/components/code-block/index.d.ts +1 -1
- package/dist/components/code-block/index.js +12 -10
- package/dist/components/code-block/index.js.map +1 -1
- package/dist/components/code-block/notation.d.ts +5 -2
- package/dist/components/code-block/notation.d.ts.map +1 -1
- package/dist/components/code-block/static.d.ts +4 -1
- package/dist/components/code-block/static.d.ts.map +1 -1
- package/dist/components/code-block/static.js +5 -4
- package/dist/components/code-block/static.js.map +1 -1
- package/dist/components/collapse/collapse.d.ts +7 -3
- package/dist/components/collapse/collapse.d.ts.map +1 -1
- package/dist/components/collapse/index.js +2 -1
- package/dist/components/combobox/combobox.d.ts +11 -10
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/index.js +5 -4
- package/dist/components/combobox-list/index.js +6 -5
- package/dist/components/data-table/index.js +20 -19
- package/dist/components/data-table/index.js.map +1 -1
- package/dist/components/date-picker/index.js +12 -11
- package/dist/components/date-picker/index.js.map +1 -1
- package/dist/components/divider/divider.d.ts +3 -2
- package/dist/components/divider/divider.d.ts.map +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/drawer/drawer.d.ts +6 -5
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/components/drawer/index.js +3 -2
- package/dist/components/field/field.d.ts +7 -4
- package/dist/components/field/field.d.ts.map +1 -1
- package/dist/components/field/index.js +1 -1
- package/dist/components/file-upload/index.js +3 -2
- package/dist/components/file-upload/index.js.map +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/input/index.js +2 -2
- package/dist/components/input/input.d.ts +3 -2
- package/dist/components/input/input.d.ts.map +1 -1
- package/dist/components/menu/index.js +3 -2
- package/dist/components/menu/index.js.map +1 -1
- package/dist/components/menu/menu-data.d.ts +6 -1
- package/dist/components/menu/menu-data.d.ts.map +1 -1
- package/dist/components/menu/menu.d.ts +5 -5
- package/dist/components/menu/menu.d.ts.map +1 -1
- package/dist/components/modal/index.js +3 -2
- package/dist/components/modal/modal.d.ts +4 -3
- package/dist/components/modal/modal.d.ts.map +1 -1
- package/dist/components/multi-combobox-list/index.js +6 -5
- package/dist/components/multi-select/index.js +7 -6
- package/dist/components/multi-select/index.js.map +1 -1
- package/dist/components/nav-link/index.js +3 -2
- package/dist/components/nav-link/tanstack.js +3 -2
- package/dist/components/nav-link/tanstack.js.map +1 -1
- package/dist/components/notification/create-notifier.d.ts.map +1 -1
- package/dist/components/notification/index.js +8 -7
- package/dist/components/notification/index.js.map +1 -1
- package/dist/components/notification/notification.d.ts +7 -6
- package/dist/components/notification/notification.d.ts.map +1 -1
- package/dist/components/number-input/index.js +4 -4
- package/dist/components/overlays/index.js +5 -4
- package/dist/components/overlays/index.js.map +1 -1
- package/dist/components/password-input/index.js +2 -2
- package/dist/components/pill/index.js +2 -1
- package/dist/components/pill/pill.d.ts +4 -2
- package/dist/components/pill/pill.d.ts.map +1 -1
- package/dist/components/pills-input/index.js +5 -4
- package/dist/components/pills-input/pills-input.d.ts +3 -2
- package/dist/components/pills-input/pills-input.d.ts.map +1 -1
- package/dist/components/pin-input/index.js +2 -2
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.d.ts +3 -2
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/progress/index.js +1 -0
- package/dist/components/progress/index.js.map +1 -1
- package/dist/components/progress/progress.d.ts +3 -2
- package/dist/components/progress/progress.d.ts.map +1 -1
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/rating/index.js +2 -1
- package/dist/components/rating/index.js.map +1 -1
- package/dist/components/rating/rating.d.ts +3 -2
- package/dist/components/rating/rating.d.ts.map +1 -1
- package/dist/components/schedule/index.d.ts +4 -4
- package/dist/components/schedule/index.js +211 -110
- package/dist/components/schedule/index.js.map +1 -1
- package/dist/components/schedule/schedule-agenda-list.d.ts +6 -7
- package/dist/components/schedule/schedule-agenda-list.d.ts.map +1 -1
- package/dist/components/schedule/schedule-agenda-view.d.ts +19 -16
- package/dist/components/schedule/schedule-agenda-view.d.ts.map +1 -1
- package/dist/components/schedule/schedule-create-draft.d.ts +3 -2
- package/dist/components/schedule/schedule-create-draft.d.ts.map +1 -1
- package/dist/components/schedule/schedule-dates.d.ts.map +1 -1
- package/dist/components/schedule/schedule-days-view.d.ts +3 -2
- package/dist/components/schedule/schedule-days-view.d.ts.map +1 -1
- package/dist/components/schedule/schedule-drag-ghost.d.ts +12 -5
- package/dist/components/schedule/schedule-drag-ghost.d.ts.map +1 -1
- package/dist/components/schedule/schedule-event-chip.d.ts.map +1 -1
- package/dist/components/schedule/schedule-geometry.d.ts +16 -0
- package/dist/components/schedule/schedule-geometry.d.ts.map +1 -1
- package/dist/components/schedule/schedule-grid-gesture.d.ts +29 -6
- package/dist/components/schedule/schedule-grid-gesture.d.ts.map +1 -1
- package/dist/components/schedule/schedule-month-view.d.ts +3 -2
- package/dist/components/schedule/schedule-month-view.d.ts.map +1 -1
- package/dist/components/schedule/schedule-next-up.d.ts +4 -3
- package/dist/components/schedule/schedule-next-up.d.ts.map +1 -1
- package/dist/components/schedule/schedule-timed-grid.d.ts.map +1 -1
- package/dist/components/schedule/schedule-toolbar.d.ts +3 -3
- package/dist/components/schedule/schedule-toolbar.d.ts.map +1 -1
- package/dist/components/schedule/schedule-types.d.ts +9 -4
- package/dist/components/schedule/schedule-types.d.ts.map +1 -1
- package/dist/components/schedule/schedule-views.d.ts +2 -2
- package/dist/components/schedule/schedule-views.d.ts.map +1 -1
- package/dist/components/schedule/schedule-year-view.d.ts +3 -2
- package/dist/components/schedule/schedule-year-view.d.ts.map +1 -1
- package/dist/components/schedule/schedule.d.ts +9 -6
- package/dist/components/schedule/schedule.d.ts.map +1 -1
- package/dist/components/schedule/use-event-create.d.ts.map +1 -1
- package/dist/components/schedule/use-event-drag.d.ts.map +1 -1
- package/dist/components/schedule/use-event-resize.d.ts.map +1 -1
- package/dist/components/segment-group/index.js +2 -2
- package/dist/components/select/index.js +4 -4
- package/dist/components/slider/index.js +2 -1
- package/dist/components/slider/index.js.map +1 -1
- package/dist/components/slider/slider.d.ts +3 -2
- package/dist/components/slider/slider.d.ts.map +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tabs-data.d.ts +3 -2
- package/dist/components/tabs/tabs-data.d.ts.map +1 -1
- package/dist/components/tags-input/index.js +6 -5
- package/dist/components/tags-input/index.js.map +1 -1
- package/dist/components/text-input/index.js +2 -2
- package/dist/components/textarea/index.js +2 -2
- package/dist/components/time-input/index.js +6 -6
- package/dist/components/timeline/index.js +8 -5
- package/dist/components/timeline/index.js.map +1 -1
- package/dist/components/timeline/timeline.d.ts +1 -1
- package/dist/components/timeline/timeline.d.ts.map +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/tooltip.d.ts +2 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/tree-multi-select/index.js +6 -5
- package/dist/components/tree-multi-select/index.js.map +1 -1
- package/dist/components/tree-select/index.js +3 -3
- package/dist/lib/as-child.d.ts +104 -0
- package/dist/lib/as-child.d.ts.map +1 -0
- package/dist/theme.css +9 -3
- package/package.json +1 -1
- package/src/as-child.contract.test.tsx +809 -0
- package/src/components/accordion/accordion-data.tsx +8 -5
- package/src/components/accordion/accordion.test.tsx +40 -0
- package/src/components/accordion/accordion.tsx +23 -6
- package/src/components/action-icon/action-icon.tsx +9 -24
- package/src/components/alert/alert.test.tsx +25 -2
- package/src/components/alert/alert.tsx +39 -13
- package/src/components/app-shell/app-shell.tsx +3 -1
- package/src/components/breadcrumb/breadcrumb.test.tsx +30 -0
- package/src/components/breadcrumb/breadcrumb.tsx +21 -12
- package/src/components/button/button.tsx +21 -50
- package/src/components/calendar/calendar-body.tsx +8 -1
- package/src/components/circular-progress/circular-progress.tsx +4 -1
- package/src/components/clipboard/clipboard.test.tsx +18 -0
- package/src/components/clipboard/clipboard.tsx +8 -2
- package/src/components/code-block/chrome.tsx +60 -36
- package/src/components/code-block/code-block.test.tsx +27 -0
- package/src/components/code-block/code-block.tsx +13 -3
- package/src/components/code-block/notation.test.ts +8 -0
- package/src/components/code-block/notation.ts +6 -3
- package/src/components/code-block/static.tsx +8 -2
- package/src/components/collapse/collapse.tsx +33 -15
- package/src/components/combobox/combobox.test.tsx +38 -0
- package/src/components/combobox/combobox.tsx +24 -10
- package/src/components/divider/divider.tsx +3 -1
- package/src/components/drawer/drawer.tsx +37 -16
- package/src/components/field/field.tsx +7 -3
- package/src/components/input/input.tsx +3 -1
- package/src/components/menu/menu-data.tsx +8 -1
- package/src/components/menu/menu.test.tsx +52 -0
- package/src/components/menu/menu.tsx +83 -35
- package/src/components/modal/close-trigger.test.tsx +38 -0
- package/src/components/modal/modal.tsx +29 -13
- package/src/components/notification/create-notifier.tsx +6 -5
- package/src/components/notification/notification.test.tsx +15 -0
- package/src/components/notification/notification.tsx +8 -5
- package/src/components/pill/pill.tsx +29 -20
- package/src/components/pills-input/pills-input.tsx +3 -1
- package/src/components/popover/popover.tsx +3 -1
- package/src/components/progress/progress.tsx +4 -1
- package/src/components/rating/rating.tsx +27 -23
- package/src/components/schedule/index.ts +1 -1
- package/src/components/schedule/now-cursor-line.tsx +1 -1
- package/src/components/schedule/schedule-agenda-list.tsx +6 -7
- package/src/components/schedule/schedule-agenda-view.test.tsx +105 -28
- package/src/components/schedule/schedule-agenda-view.tsx +46 -31
- package/src/components/schedule/schedule-all-day-row.tsx +1 -1
- package/src/components/schedule/schedule-create-draft.tsx +14 -5
- package/src/components/schedule/schedule-dates.test.ts +37 -52
- package/src/components/schedule/schedule-dates.ts +25 -27
- package/src/components/schedule/schedule-days-view.tsx +9 -5
- package/src/components/schedule/schedule-drag-ghost.tsx +27 -12
- package/src/components/schedule/schedule-event-chip.tsx +9 -2
- package/src/components/schedule/schedule-event-list-popover-content.tsx +1 -1
- package/src/components/schedule/schedule-geometry.ts +21 -0
- package/src/components/schedule/schedule-grid-gesture.test.ts +83 -1
- package/src/components/schedule/schedule-grid-gesture.ts +67 -28
- package/src/components/schedule/schedule-month-view.tsx +10 -6
- package/src/components/schedule/schedule-next-up.tsx +11 -5
- package/src/components/schedule/schedule-timed-grid.tsx +41 -3
- package/src/components/schedule/schedule-toolbar.test.tsx +26 -0
- package/src/components/schedule/schedule-toolbar.tsx +35 -17
- package/src/components/schedule/schedule-types.ts +9 -4
- package/src/components/schedule/schedule-views.ts +4 -5
- package/src/components/schedule/schedule-year-view.tsx +10 -6
- package/src/components/schedule/schedule.test.tsx +198 -36
- package/src/components/schedule/schedule.tsx +28 -17
- package/src/components/schedule/use-event-create.ts +7 -6
- package/src/components/schedule/use-event-drag.ts +10 -4
- package/src/components/schedule/use-event-resize.ts +4 -2
- package/src/components/slider/slider.tsx +4 -0
- package/src/components/tabs/tabs-data.tsx +17 -14
- package/src/components/timeline/timeline.tsx +102 -95
- package/src/components/tooltip/tooltip.tsx +2 -1
- package/src/lib/as-child.test.tsx +70 -0
- package/src/lib/as-child.ts +119 -0
- package/src/theme.css +9 -3
- package/dist/chunk-2762HZYX.js.map +0 -1
- package/dist/chunk-2H46IXW4.js.map +0 -1
- package/dist/chunk-6SWK4XG5.js.map +0 -1
- package/dist/chunk-ACE7FBWE.js.map +0 -1
- package/dist/chunk-HWNPXAEN.js +0 -31
- package/dist/chunk-HWNPXAEN.js.map +0 -1
- package/dist/chunk-IFWCCAQV.js.map +0 -1
- package/dist/chunk-IXKELBJA.js.map +0 -1
- package/dist/chunk-J3PELDH3.js.map +0 -1
- package/dist/chunk-NGAQITWP.js.map +0 -1
- package/dist/chunk-POKDSVQT.js.map +0 -1
- package/dist/chunk-QMW7D5GU.js.map +0 -1
- package/dist/chunk-TMMEJKLI.js.map +0 -1
- package/dist/chunk-TNNH3FVQ.js.map +0 -1
- package/dist/chunk-U5GW5EBR.js.map +0 -1
- package/dist/chunk-UNSAA7YG.js.map +0 -1
- package/dist/chunk-VLUKI3HL.js.map +0 -1
- package/dist/chunk-VZ2TPU4B.js.map +0 -1
- package/dist/chunk-YIQI2CF3.js.map +0 -1
|
@@ -3,23 +3,22 @@ import type { NextUpDayGroup } from "./schedule-next-up-grouping";
|
|
|
3
3
|
import type { ScheduleAgendaListClassNames, ScheduleAnyEvent, ScheduleTranslations } from "./schedule-types";
|
|
4
4
|
/**
|
|
5
5
|
* The agenda list itself — day groups, `HH:MM` slots, event rows — shared
|
|
6
|
-
* verbatim by `AgendaView` (a
|
|
6
|
+
* verbatim by `AgendaView` (a span of days from its date) and `Schedule.NextUp`
|
|
7
7
|
* (everything from now on). The two differ only in *which* events they
|
|
8
8
|
* gather; once grouped, there is exactly one rendering, which is why this
|
|
9
9
|
* takes `groups` already built and never decides what is in range itself.
|
|
10
10
|
*
|
|
11
|
-
* It renders no root element, deliberately. `Schedule.NextUp`
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* them.
|
|
11
|
+
* It renders no root element, deliberately. `Schedule.NextUp` renders its
|
|
12
|
+
* own `<ark.section>` (with the section's props, `asChild` excluded) and
|
|
13
|
+
* `AgendaView` supplies its own `<ark.div>` plus a toolbar. A shared root
|
|
14
|
+
* here would double-wrap one of them.
|
|
16
15
|
*/
|
|
17
16
|
/** The only signal a custom row renderer can't trivially recompute from
|
|
18
17
|
* `event` alone: whether this is the single soonest event in the whole list
|
|
19
18
|
* (tie-broken to the first event of the first same-start stack).
|
|
20
19
|
*
|
|
21
20
|
* Only ever `true` under `Schedule.NextUp`. "Soonest still to come" is a
|
|
22
|
-
* from-now idea; in a
|
|
21
|
+
* from-now idea; in a window anchored on last March there is no such
|
|
23
22
|
* event, so `AgendaView` passes no `nextEventId` and every row gets `false`. */
|
|
24
23
|
export type AgendaEventRenderState = {
|
|
25
24
|
isNext: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-agenda-list.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-agenda-list.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,SAAS,EAAS,MAAM,OAAO,CAAA;AAevD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,6BAA6B,CAAA;AACjF,OAAO,KAAK,EACV,4BAA4B,EAC5B,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,kBAAkB,CAAA;AAGzB
|
|
1
|
+
{"version":3,"file":"schedule-agenda-list.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-agenda-list.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,SAAS,EAAS,MAAM,OAAO,CAAA;AAevD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,6BAA6B,CAAA;AACjF,OAAO,KAAK,EACV,4BAA4B,EAC5B,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,kBAAkB,CAAA;AAGzB;;;;;;;;;;;GAWG;AAEH;;;;;;iFAMiF;AACjF,MAAM,MAAM,sBAAsB,GAAG;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,CAAA;AAExD,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,CACnC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAC1B,KAAK,EAAE,sBAAsB,KAC1B,SAAS,CAAA;AAEd,MAA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TestId } from "../../lib/test-id";
|
|
3
4
|
import type { AgendaEventRenderer } from "./schedule-agenda-list";
|
|
4
5
|
import type { AnchorDateProps, PaginationChromeProps, ScheduleEmptyProps, ScheduleEventProps, ScheduleSharedProps } from "./schedule-types";
|
|
5
6
|
/**
|
|
6
|
-
* The agenda:
|
|
7
|
-
* fourth toolbar-switchable renderer
|
|
7
|
+
* The agenda: `visibleDays` days of events as a chronological list, starting
|
|
8
|
+
* at the schedule's own date, and the fourth toolbar-switchable renderer
|
|
9
|
+
* (`views={["week", "agenda", "month"]}`).
|
|
8
10
|
*
|
|
9
11
|
* It renders the same list as `Schedule.NextUp` (`schedule-agenda-list.tsx`),
|
|
10
|
-
* over a different window —
|
|
11
|
-
* rather than everything from now on.
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* than growing a branch.
|
|
16
|
-
*
|
|
17
|
-
* `getVisibleRange("agenda", …)` is the one that can't be shared — it is the
|
|
18
|
-
* strict calendar month where Month's is the padded six-week grid. See its
|
|
19
|
-
* own comment; the short version is that a list has no adjacent-month cells
|
|
20
|
-
* to justify padding, and `Root`'s reveal would otherwise be told an event
|
|
21
|
-
* the list never renders is already visible.
|
|
12
|
+
* over a different window — one anchored on the schedule's date and bounded at
|
|
13
|
+
* both ends, rather than everything from now on. A list is read from its top,
|
|
14
|
+
* so the window **starts at the anchor itself**: Now puts "Today" first, and
|
|
15
|
+
* Prev/Next step by the window's own span, exactly as a `"relative"` Days
|
|
16
|
+
* window does — which is why `paginateDate` and `formatScheduleTitle` fold
|
|
17
|
+
* `"agenda"` into their `"days"` pattern rather than growing a branch.
|
|
22
18
|
*
|
|
23
19
|
* Unlike Month and Year this holds a live clock (`useNow`): its day headings
|
|
24
20
|
* say "Today"/"Tomorrow", which is the one thing on screen that goes stale
|
|
@@ -28,8 +24,15 @@ import type { AnchorDateProps, PaginationChromeProps, ScheduleEmptyProps, Schedu
|
|
|
28
24
|
* only a divider labelling a group — so there is no surface for it, and a
|
|
29
25
|
* drill-down from a list of events into the day of one of them is what
|
|
30
26
|
* selecting the event already does.
|
|
27
|
+
*
|
|
28
|
+
* And no details popover by default: every row already prints its title, time
|
|
29
|
+
* and description, which is everything the built-in popover would repeat.
|
|
31
30
|
*/
|
|
32
|
-
export type AgendaViewProps<P = unknown> = ScheduleSharedProps<P> & ScheduleEventProps<P> & ScheduleEmptyProps & AnchorDateProps & PaginationChromeProps & Omit<HTMLArkProps<"div">, "onSelect"
|
|
31
|
+
export type AgendaViewProps<P = unknown> = ScheduleSharedProps<P> & ScheduleEventProps<P> & ScheduleEmptyProps & AnchorDateProps & PaginationChromeProps & NoAsChild<Omit<HTMLArkProps<"div">, "onSelect">> & WithTestId & ScheduleAgendaOnlyProps<P> & {
|
|
32
|
+
/** How many days the list spans, starting at the anchor date. Default
|
|
33
|
+
* `7`. Prev/Next step by the same amount. */
|
|
34
|
+
visibleDays?: number;
|
|
35
|
+
};
|
|
33
36
|
/** Agenda only. Named so `ScheduleProps` can gate it by name rather than
|
|
34
37
|
* `Pick`ing the key out of `AgendaViewProps` — the hand-maintained shape that
|
|
35
38
|
* left `maxEventsPerDay` unreachable from `Root` for two releases. */
|
|
@@ -44,5 +47,5 @@ export type ScheduleAgendaOnlyProps<P = unknown> = {
|
|
|
44
47
|
*/
|
|
45
48
|
renderEvent?: AgendaEventRenderer<P>;
|
|
46
49
|
};
|
|
47
|
-
export declare function AgendaView<P = unknown>({ data, staticEvents, selected, defaultSelected, onSelect, withSelection,
|
|
50
|
+
export declare function AgendaView<P = unknown>({ data, staticEvents, selected, defaultSelected, onSelect, withSelection, renderEventDetails, withEventDetails, locale: localeProp, timeZone: timeZoneProp, translations, classNames, className, date, defaultDate, onDateChange, withPagination, withNowButton, now, empty, renderEvent, visibleDays, testId, asChild: _asChild, ...rest }: AgendaViewProps<P>): import("react").JSX.Element;
|
|
48
51
|
//# sourceMappingURL=schedule-agenda-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-agenda-view.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-agenda-view.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"schedule-agenda-view.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-agenda-view.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AAEtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAKnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAGnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAKjE,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,kBAAkB,CAAA;AAIzB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,GAAG,OAAO,IAAI,mBAAmB,CAAC,CAAC,CAAC,GAC/D,kBAAkB,CAAC,CAAC,CAAC,GACrB,kBAAkB,GAClB,eAAe,GACf,qBAAqB,GAIrB,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC,GAChD,UAAU,GACV,uBAAuB,CAAC,CAAC,CAAC,GAAG;IAC3B;kDAC8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAEH;;uEAEuE;AACvE,MAAM,MAAM,uBAAuB,CAAC,CAAC,GAAG,OAAO,IAAI;IACjD;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAA;CACrC,CAAA;AAED,wBAAgB,UAAU,CAAC,CAAC,GAAG,OAAO,EAAE,EACtC,IAAI,EACJ,YAAiB,EACjB,QAAQ,EACR,eAAe,EACf,QAAQ,EACR,aAAoB,EACpB,kBAAkB,EAIlB,gBAAmD,EACnD,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,YAAY,EACtB,YAAY,EACZ,UAAU,EACV,SAAS,EACT,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,cAAqB,EACrB,aAAqB,EACrB,GAAG,EACH,KAAK,EACL,WAAW,EACX,WAAe,EACf,MAAM,EACN,OAAO,EAAE,QAAQ,EACjB,GAAG,IAAI,EACR,EAAE,eAAe,CAAC,CAAC,CAAC,+BA+GpB"}
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
* `pointermove`, matching the module's "refs are not state" discipline for
|
|
8
8
|
* in-flight gesture coordinates.
|
|
9
9
|
*
|
|
10
|
-
* One of these is mounted per day
|
|
11
|
-
*
|
|
10
|
+
* One of these is mounted per rendered day, pooled in a layer laid over the
|
|
11
|
+
* day columns (`piece-pool` in `schedule-timed-grid.tsx`) and placed on its day
|
|
12
|
+
* by `--sch-create-col`, and a single gesture writes to all of them: a create drag has two axes, so its candidate is clipped to each
|
|
12
13
|
* column's own painted band exactly the way `segmentEvents` clips a real
|
|
13
14
|
* event. A cross-day draft is therefore several of these boxes, one per day,
|
|
14
15
|
* not one box drawn past the bottom of its column.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-create-draft.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-create-draft.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schedule-create-draft.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-create-draft.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BAgKxE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-dates.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-dates.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schedule-dates.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-dates.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAC1E,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACb,MAAM,kBAAkB,CAAA;AAEzB;;;;;;;GAOG;AAEH,MAAM,MAAM,SAAS,GAAG;IAAE,KAAK,EAAE,IAAI,CAAC;IAAC,GAAG,EAAE,IAAI,CAAA;CAAE,CAAA;AAElD,KAAK,YAAY,GAAG;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,aAAa,CAAA;IAC3B,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AACD,KAAK,eAAe,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAEjE;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,CAAC,EAAE,cAAc,GAAG,UAAU,GACxC,cAAc,GAAG,SAAS,CAE5B;AAgBD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,GAAG,SAAS,CA6FhG;AAED;;wDAEwD;AACxD,wBAAgB,YAAY,CAC1B,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,EACjB,OAAO,EAAE,eAAe,GACvB,IAAI,CAaN;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI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AM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC7C,MAAM,CAgBR"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type HTMLArkProps } from "@ark-ui/react";
|
|
2
2
|
import type { Ref } from "react";
|
|
3
|
+
import type { NoAsChild } from "../../lib/as-child";
|
|
3
4
|
import type { WithTestId } from "../../lib/test-id";
|
|
4
5
|
import type { AnchorDateProps, PaginationChromeProps, ScheduleAlign, ScheduleDayClickProps, ScheduleEmptyProps, ScheduleEventProps, ScheduleOverflowProps, ScheduleSharedProps, ScheduleSlotProps, ScheduleSlotValues, ScheduleTimedProps } from "./schedule-types";
|
|
5
6
|
/**
|
|
@@ -17,7 +18,7 @@ import type { AnchorDateProps, PaginationChromeProps, ScheduleAlign, ScheduleDay
|
|
|
17
18
|
* would collapse the check between `slotDuration` and `minDuration`, so each
|
|
18
19
|
* public props type adds it back *after* its own `Omit`.
|
|
19
20
|
*/
|
|
20
|
-
export type DaysViewBaseProps<P = unknown> = ScheduleSharedProps<P> & ScheduleEventProps<P> & ScheduleDayClickProps & ScheduleTimedProps<P> & ScheduleEmptyProps & ScheduleOverflowProps<P> & AnchorDateProps & PaginationChromeProps & Omit<HTMLArkProps<"div">, "onSelect"
|
|
21
|
+
export type DaysViewBaseProps<P = unknown> = ScheduleSharedProps<P> & ScheduleEventProps<P> & ScheduleDayClickProps & ScheduleTimedProps<P> & ScheduleEmptyProps & ScheduleOverflowProps<P> & AnchorDateProps & PaginationChromeProps & NoAsChild<Omit<HTMLArkProps<"div">, "onSelect">> & WithTestId & {
|
|
21
22
|
/** How many day-columns to show at once. Default `7`. */
|
|
22
23
|
visibleDays?: number;
|
|
23
24
|
/** Locale default when omitted; `"relative"` starts the window at the
|
|
@@ -55,6 +56,6 @@ export type DaysViewProps<P = unknown> = DaysViewBaseProps<P> & ScheduleSlotProp
|
|
|
55
56
|
* them and only plain numbers are left. Internal — not exported from the
|
|
56
57
|
* barrel.
|
|
57
58
|
*/
|
|
58
|
-
export declare function DaysViewBody<P = unknown>({ data, staticEvents, selected, defaultSelected, onSelect, withSelection, withEventDetails, onDayClick, renderEventDetails, locale, timeZone, translations, classNames, className, startHour, endHour, slotDuration, minDuration, resizeCollision, maxDuration, hourHeight, slotDisabled, now, withNowIndicator, onEventChange, onEventRemove, onEventCreate, onGridClick, editable, preventOverlap, maxOverlapColumns, maxAllDayRows, onOverflowClick, withOverflowDetails, renderOverflowDetails, empty, date, defaultDate, onDateChange, withPagination, withNowButton, visibleDays, align, gridRef, nowRef, testId, ...rest }: DaysViewBaseProps<P> & ScheduleSlotValues): import("react").JSX.Element;
|
|
59
|
+
export declare function DaysViewBody<P = unknown>({ data, staticEvents, selected, defaultSelected, onSelect, withSelection, withEventDetails, onDayClick, renderEventDetails, locale: localeProp, timeZone: timeZoneProp, translations, classNames, className, startHour, endHour, slotDuration, minDuration, resizeCollision, maxDuration, hourHeight, slotDisabled, now, withNowIndicator, onEventChange, onEventRemove, onEventCreate, onGridClick, editable, preventOverlap, maxOverlapColumns, maxAllDayRows, onOverflowClick, withOverflowDetails, renderOverflowDetails, empty, date, defaultDate, onDateChange, withPagination, withNowButton, visibleDays, align, gridRef, nowRef, testId, asChild: _asChild, ...rest }: DaysViewBaseProps<P> & ScheduleSlotValues): import("react").JSX.Element;
|
|
59
60
|
export declare function DaysView<P = unknown>(props: DaysViewProps<P>): import("react").JSX.Element;
|
|
60
61
|
//# sourceMappingURL=schedule-days-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-days-view.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-days-view.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"schedule-days-view.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-days-view.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AACtD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oB,EACpB,gBAAuB,EACvB,UAAU,EACV,kBAAkB,EAClB,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,YAAY,EACtB,YAAY,EACZ,UAAU,EACV,SAAS,EACT,SAAa,EACb,OAAY,EACZ,YAAiB,EACjB,WAAW,EACX,eAAwB,EACxB,WAAW,EACX,UAAU,EACV,YAAY,EACZ,GAAG,EACH,gBAAuB,EACvB,aAAa,EACb,aAAa,EACb,aAAa,EACb,WAAW,EACX,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,KAAK,EACL,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,cAAqB,EACrB,aAAqB,EACrB,WAAe,EACf,KAAK,EACL,OAAO,EACP,MAAM,EACN,MAAM,EACN,OAAO,EAAE,QAAQ,EACjB,GAAG,IAAI,EACR,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,kBAAkB,+BA8H3C;AAED,wBAAgB,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,+BAE5D"}
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
* The move-drag preview. Same shape and same geometry as
|
|
3
3
|
* `schedule-create-draft.tsx` — a permanently-mounted, `aria-hidden`,
|
|
4
4
|
* pointer-events-none leaf driven purely by imperative CSS-var writes, never a
|
|
5
|
-
* `useState` re-render per `pointermove` — and, like it,
|
|
6
|
-
*
|
|
5
|
+
* `useState` re-render per `pointermove` — and, like it, pooled: one per
|
|
6
|
+
* rendered day, in a layer laid over the day columns (`piece-pool` in
|
|
7
|
+
* `schedule-timed-grid.tsx`), each placed on its day by `--sch-ghost-col`.
|
|
7
8
|
*
|
|
8
9
|
* It used to be a single element at the grid level, placed by writing
|
|
9
10
|
* `gridColumn`, which needed no horizontal pixel math. That was elegant and it
|
|
@@ -11,11 +12,17 @@
|
|
|
11
12
|
* days, and one box can only ever draw one of them. Its own comment admitted
|
|
12
13
|
* as much ("the ghost shows the *first* day's piece"), so dragging an event up
|
|
13
14
|
* through midnight drew the piece on the previous day and simply omitted the
|
|
14
|
-
* piece under the pointer.
|
|
15
|
+
* piece under the pointer. One piece per day draws every piece, exactly the way
|
|
15
16
|
* a committed multi-day event already renders.
|
|
16
17
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
18
|
+
* Those pieces were then mounted *inside* each day column, which fixed the
|
|
19
|
+
* midnight case and broke a smaller one: a piece's identity was its column, so
|
|
20
|
+
* moving to another day faded one element out and the next one in, where a
|
|
21
|
+
* vertical move glided. Placed by a var, a piece keeps its element across the
|
|
22
|
+
* change and slides — see `paintPieces`' `anchor`.
|
|
23
|
+
*
|
|
24
|
+
* `--sch-ghost-top`/`--sch-ghost-height` are percentages of the timed row's
|
|
25
|
+
* height (the pool layer's, and every day column's), exactly like a chip's `--sch-base-top`/`--sch-base-height`, so
|
|
19
26
|
* the ghost lines up with the hour grid without knowing the hour height.
|
|
20
27
|
*/
|
|
21
28
|
export declare function ScheduleDragGhost({ className }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-drag-ghost.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-drag-ghost.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schedule-drag-ghost.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-drag-ghost.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BA6ItE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-event-chip.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-event-chip.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schedule-event-chip.d.ts","sourceRoot":"","sources":["../../../src/components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,CAAC,CAAA;IAC5C,UAAU,CAAC,EAAE,2BAA2B,CAAA;IACxC;gFAC4E;IAC5E,uBAAuB,CAAC,EAAE,MAAM,CAAA;CACjC,CAAA;AAmgBD,wBAAgB,iBAAiB,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,SAAS,CAM1F"}
|
|
@@ -123,6 +123,22 @@ export declare function columnInsets({ column, columnCount }: ScheduleLayoutResu
|
|
|
123
123
|
width: string;
|
|
124
124
|
zIndex: number;
|
|
125
125
|
};
|
|
126
|
+
/** The horizontal box of one preview piece in the timed grid's `piece-pool`
|
|
127
|
+
* layer, which spans every day column at once. `columnVar` holds the day
|
|
128
|
+
* index the gesture painted the piece over; `--sch-pool-columns` is the
|
|
129
|
+
* number of rendered days, written on the layer.
|
|
130
|
+
*
|
|
131
|
+
* Logical (`insetInlineStart`), so a column index lands on the same day in
|
|
132
|
+
* RTL as the grid's own placement does, with no sign math.
|
|
133
|
+
*
|
|
134
|
+
* The `min(col, 1) * 1px` terms step past the hairline every day column after
|
|
135
|
+
* the first draws at its start edge (`border-s`), so a piece covers exactly
|
|
136
|
+
* the column's padding box: the box its chips are laid out in, and the box
|
|
137
|
+
* the piece used to fill when it was mounted inside the column. */
|
|
138
|
+
export declare function poolPieceInsets(columnVar: string): {
|
|
139
|
+
insetInlineStart: string;
|
|
140
|
+
width: string;
|
|
141
|
+
};
|
|
126
142
|
/**
|
|
127
143
|
* Resolves a px-per-minute rate by measuring the day-column's *real*
|
|
128
144
|
* rendered height (`getBoundingClientRect()`), divided by the window's total
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-geometry.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-geometry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AA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AAW,GAAG,IAAI,CAAA;IACnC,wBAAwB;IACxB,IAAI,CAAC,EAAE,kBAAkB,CAAA;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,WAAW,EACtB,OAAO,EAAE,WAAW,EACpB,EAAE,QAAY,EAAE,cAAc,EAAE,IAAa,EAAE,GAAE,qBAA0B,GAC1E,OAAO,CAYT;AAED,8EAA8E;AAC9E,MAAM,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC,CAAA;AAEtE;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,IAAI,CAS1F;AAWD;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAC/B,EAAE,EAAE,OAAO,GAAG,IAAI,GACjB;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,mBAAmB,CAa/E"}
|
|
@@ -197,6 +197,10 @@ export declare const measureScrollExtent: (grid: HTMLElement) => {
|
|
|
197
197
|
maxScrollTop: number;
|
|
198
198
|
};
|
|
199
199
|
export type EdgeBehaviourOptions = {
|
|
200
|
+
/** The locale's text direction (`useLocaleContext().dir`). Under `rtl`,
|
|
201
|
+
* `scrollLeft` runs from `0` down to `-maxScrollLeft`, and the left edge
|
|
202
|
+
* leads to *later* days, so both the clamp and the page direction flip. */
|
|
203
|
+
dir: "ltr" | "rtl";
|
|
200
204
|
/** Repaint the preview from the last known pointer position. Called every
|
|
201
205
|
* frame — the pointer can be stationary while the grid moves under it. */
|
|
202
206
|
paint: () => void;
|
|
@@ -228,19 +232,24 @@ export declare const stopEdgeBehaviours: (state: EdgeState) => void;
|
|
|
228
232
|
* stages is what lets the unprecedented half stay behind a deliberate dwell.
|
|
229
233
|
*/
|
|
230
234
|
export declare const tickEdges: (state: EdgeState, options: EdgeBehaviourOptions) => void;
|
|
231
|
-
/** Which
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
+
/** Which preview a gesture paints into. Create and resize paint the draft; a
|
|
236
|
+
* move paints the ghost. Same geometry, and since the draft lost its dashes
|
|
237
|
+
* the same skin too — they are the same kind of object ("the box you are
|
|
238
|
+
* about to commit") and never appear at once. */
|
|
235
239
|
export type PiecePreview = {
|
|
236
|
-
/** `data-schedule-part` of the leaf, one per
|
|
240
|
+
/** `data-schedule-part` of the leaf, one per pool slot. */
|
|
237
241
|
part: string;
|
|
238
242
|
topVar: string;
|
|
239
243
|
heightVar: string;
|
|
244
|
+
/** The rendered day index the piece is drawn over. */
|
|
245
|
+
columnVar: string;
|
|
240
246
|
labelPart: string;
|
|
241
247
|
};
|
|
242
248
|
export declare const CREATE_DRAFT: PiecePreview;
|
|
243
249
|
export declare const DRAG_GHOST: PiecePreview;
|
|
250
|
+
/** The pool's pieces, keyed by slot. The pool sits outside the paged bands, so
|
|
251
|
+
* unlike the chips it never remounts with a page turn and needs no `isLive`
|
|
252
|
+
* filter: one collection lasts the whole gesture. */
|
|
244
253
|
export declare const collectPieces: (grid: HTMLElement, preview: PiecePreview) => Map<number, HTMLElement>;
|
|
245
254
|
export declare const hidePieces: (pieces: Map<number, HTMLElement>, preview: PiecePreview) => void;
|
|
246
255
|
/** The same scale-pulse the chip gestures use, applied to every visible piece. */
|
|
@@ -272,6 +281,20 @@ export type PiecePaintOptions = {
|
|
|
272
281
|
* gesture passes one; a repeat create passes one per day. */
|
|
273
282
|
candidates: PieceCandidate[];
|
|
274
283
|
totalWindowMinutes: number;
|
|
284
|
+
/**
|
|
285
|
+
* The column a piece's identity is measured from. Default `0`, which keys
|
|
286
|
+
* every piece by its own column — right for create and resize, whose
|
|
287
|
+
* pieces are pinned where the gesture began and only grow or shrink.
|
|
288
|
+
*
|
|
289
|
+
* A move passes the column under the pointer, because there the whole
|
|
290
|
+
* candidate travels: keyed by offset from the pointer, the piece the user is
|
|
291
|
+
* holding keeps one element as it changes day, and so does every piece
|
|
292
|
+
* beside it, so a horizontal move *slides* the preview instead of
|
|
293
|
+
* cross-fading it. Not the event's start day: a vertical move through
|
|
294
|
+
* midnight changes that day without the pointer leaving its column, and the
|
|
295
|
+
* piece keyed to it would sweep diagonally into the next column.
|
|
296
|
+
*/
|
|
297
|
+
anchor?: number;
|
|
275
298
|
};
|
|
276
299
|
/**
|
|
277
300
|
* Draw candidates as one piece per day, each clipped to that column's band —
|
|
@@ -284,5 +307,5 @@ export type PiecePaintOptions = {
|
|
|
284
307
|
* rendered day therefore reads as running off the end of the window, rather
|
|
285
308
|
* than as a self-contained event that happens to stop at the edge.
|
|
286
309
|
*/
|
|
287
|
-
export declare const paintPieces: ({ pieces, preview, columnIndices, bandOfColumn, candidates, totalWindowMinutes, }: PiecePaintOptions) => void;
|
|
310
|
+
export declare const paintPieces: ({ pieces, preview, columnIndices, bandOfColumn, candidates, totalWindowMinutes, anchor, }: PiecePaintOptions) => void;
|
|
288
311
|
//# sourceMappingURL=schedule-grid-gesture.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-grid-gesture.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-grid-gesture.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AAEH;+DAC+D;AAC/D,eAAO,MAAM,UAAU,IAAI,CAAA;AAE3B;;kCAEkC;AAClC,eAAO,MAAM,YAAY,KAAK,CAAA;AAE9B;;gCAEgC;AAChC,eAAO,MAAM,uBAAuB,KAAK,CAAA;AAEzC;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,OAAO,CAAA;AAarC;;+BAE+B;AAC/B,eAAO,MAAM,YAAY,SAAU,WAAW,WAAW,MAAM,KAAG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,iBAAiB,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;IAChC;;;8DAG0D;IAC1D,gBAAgB,EAAE,MAAM,CAAA;IACxB;uCACmC;IACnC,OAAO,EAAE,SAAS,EAAE,CAAA;IACpB;;;;;;;;;;;;OAYG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAED;mDACmD;AACnD,eAAO,MAAM,mBAAmB,SAAU,WAAW;IACnD,aAAa;IACb,YAAY;CACZ,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC;+EAC2E;IAC3E,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB;;2DAEuD;IACvD,MAAM,EAAE,MAAM,OAAO,CAAA;IACrB;8BAC0B;IAC1B,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,IAAI,CAAA;IACxC;;iBAEa;IACb,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,kBAAkB,UAAW,SAAS,SAMlD,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,SAAS,UAAW,SAAS,WAAW,oBAAoB,
|
|
1
|
+
{"version":3,"file":"schedule-grid-gesture.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-grid-gesture.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AAEH;+DAC+D;AAC/D,eAAO,MAAM,UAAU,IAAI,CAAA;AAE3B;;kCAEkC;AAClC,eAAO,MAAM,YAAY,KAAK,CAAA;AAE9B;;gCAEgC;AAChC,eAAO,MAAM,uBAAuB,KAAK,CAAA;AAEzC;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,OAAO,CAAA;AAarC;;+BAE+B;AAC/B,eAAO,MAAM,YAAY,SAAU,WAAW,WAAW,MAAM,KAAG,WAAW,EAK3D,CAAA;AAElB;;;;;;;;;;GAU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AA;AAYH,eAAO,MAAM,UAAU,WAAY,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,WAAW,YAAY,SAYjF,CAAA;AAED,kFAAkF;AAClF,eAAO,MAAM,WAAW,WAAY,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,UAAU,UAAU,GAAG,SAAS,SAY3F,CAAA;AAED;uBACuB;AACvB,MAAM,MAAM,cAAc,GAAG;IAC3B,gBAAgB;IAChB,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;IACrC,OAAO,EAAE,OAAO,CAAA;IAChB;yBACqB;IACrB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IAChC,OAAO,EAAE,YAAY,CAAA;IACrB,uDAAuD;IACvD,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,+CAA+C;IAC/C,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/D;kEAC8D;IAC9D,UAAU,EAAE,cAAc,EAAE,CAAA;IAC5B,kBAAkB,EAAE,MAAM,CAAA;IAC1B;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,8FAQrB,iBAAiB,SA0CnB,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type HTMLArkProps } from "@ark-ui/react";
|
|
2
|
+
import type { NoAsChild } from "../../lib/as-child";
|
|
2
3
|
import type { WithTestId } from "../../lib/test-id";
|
|
3
4
|
import type { AnchorDateProps, FirstDayOfWeek, PaginationChromeProps, ScheduleDayClickProps, ScheduleDayDisabledProps, ScheduleEventProps, ScheduleOverflowProps, ScheduleSharedProps } from "./schedule-types";
|
|
4
5
|
/**
|
|
@@ -36,9 +37,9 @@ export type ScheduleMonthOnlyProps = {
|
|
|
36
37
|
*/
|
|
37
38
|
maxEventsPerDay?: number;
|
|
38
39
|
};
|
|
39
|
-
export type MonthViewProps<P = unknown> = ScheduleSharedProps<P> & ScheduleEventProps<P> & ScheduleDayClickProps & ScheduleDayDisabledProps & ScheduleMonthOnlyProps & ScheduleOverflowProps<P> & AnchorDateProps & PaginationChromeProps & Omit<HTMLArkProps<"div">, "onSelect"
|
|
40
|
+
export type MonthViewProps<P = unknown> = ScheduleSharedProps<P> & ScheduleEventProps<P> & ScheduleDayClickProps & ScheduleDayDisabledProps & ScheduleMonthOnlyProps & ScheduleOverflowProps<P> & AnchorDateProps & PaginationChromeProps & NoAsChild<Omit<HTMLArkProps<"div">, "onSelect">> & WithTestId & {
|
|
40
41
|
/** Locale default when omitted. */
|
|
41
42
|
startOfWeek?: FirstDayOfWeek;
|
|
42
43
|
};
|
|
43
|
-
export declare function MonthView<P = unknown>({ data, staticEvents, selected, defaultSelected, onSelect, withSelection, withEventDetails, onDayClick, renderEventDetails, onOverflowClick, withOverflowDetails, renderOverflowDetails, locale, timeZone, translations, classNames, className, date, defaultDate, onDateChange, withPagination, withNowButton, startOfWeek, now, dayDisabled, maxEventsPerDay, testId, ...rest }: MonthViewProps<P>): import("react").JSX.Element;
|
|
44
|
+
export declare function MonthView<P = unknown>({ data, staticEvents, selected, defaultSelected, onSelect, withSelection, withEventDetails, onDayClick, renderEventDetails, onOverflowClick, withOverflowDetails, renderOverflowDetails, locale: localeProp, timeZone: timeZoneProp, translations, classNames, className, date, defaultDate, onDateChange, withPagination, withNowButton, startOfWeek, now, dayDisabled, maxEventsPerDay, testId, asChild: _asChild, ...rest }: MonthViewProps<P>): import("react").JSX.Element;
|
|
44
45
|
//# sourceMappingURL=schedule-month-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-month-view.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-month-view.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"schedule-month-view.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-month-view.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AAGtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAMnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAgBnD,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,qBAAqB,EAGrB,qBAAqB,EACrB,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EAEpB,MAAM,kBAAkB,CAAA;AAIzB;;;;;;;;;;;;GAYG;AACH;;uEAEuE;AACvE,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;;;;;;;;;;;;OAeG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,OAAO,IAAI,mBAAmB,CAAC,CAAC,CAAC,GAC9D,kBAAkB,CAAC,CAAC,CAAC,GACrB,qBAAqB,GACrB,wBAAwB,GACxB,sBAAsB,GACtB,qBAAqB,CAAC,CAAC,CAAC,GACxB,eAAe,GACf,qBAAqB,GAMrB,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC,GAChD,UAAU,GAAG;IACX,mCAAmC;IACnC,WAAW,CAAC,EAAE,cAAc,CAAA;CAC7B,CAAA;AAsYH,wBAAgB,SAAS,CAAC,CAAC,GAAG,OAAO,EAAE,EACrC,IAAI,EACJ,YAAiB,EACjB,QAAQ,EACR,eAAe,EACf,QAAQ,EACR,aAAoB,EACpB,gBAAuB,EACvB,UAAU,EACV,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,YAAY,EACtB,YAAY,EACZ,UAAU,EACV,SAAS,EACT,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,cAAqB,EACrB,aAAqB,EACrB,WAAW,EACX,GAAG,EACH,WAAW,EACX,eAAmB,EACnB,MAAM,EACN,OAAO,EAAE,QAAQ,EACjB,GAAG,IAAI,EACR,EAAE,cAAc,CAAC,CAAC,CAAC,+BA+KnB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type HTMLArkProps } from "@ark-ui/react";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
|
+
import type { NoAsChild } from "../../lib/as-child";
|
|
3
4
|
import type { WithTestId } from "../../lib/test-id";
|
|
4
5
|
import { type AgendaEventRenderState } from "./schedule-agenda-list";
|
|
5
6
|
import type { ScheduleAgendaListClassNames, ScheduleAnyEvent, ScheduleTranslations } from "./schedule-types";
|
|
@@ -9,7 +10,7 @@ import type { ScheduleAgendaListClassNames, ScheduleAnyEvent, ScheduleTranslatio
|
|
|
9
10
|
* time label).
|
|
10
11
|
*
|
|
11
12
|
* It renders the very same list `AgendaView` does (`schedule-agenda-list.tsx`)
|
|
12
|
-
* over a different window: `AgendaView` shows
|
|
13
|
+
* over a different window: `AgendaView` shows a span of days from its date and is a
|
|
13
14
|
* toolbar-switchable view; this shows everything from now on, unbounded, and
|
|
14
15
|
* is not. That makes it the standalone preset — a sidebar/dashboard "what's
|
|
15
16
|
* next" panel — rather than a fourth grid.
|
|
@@ -38,7 +39,7 @@ export type ScheduleNextUpClassNames = ScheduleAgendaListClassNames;
|
|
|
38
39
|
/** Alias of `AgendaEventRenderState`, kept for the same reason as
|
|
39
40
|
* `ScheduleNextUpClassNames` above. */
|
|
40
41
|
export type NextUpEventRenderState = AgendaEventRenderState;
|
|
41
|
-
export type ScheduleNextUpProps<P = unknown> = Omit<HTMLArkProps<"section">, "children"
|
|
42
|
+
export type ScheduleNextUpProps<P = unknown> = NoAsChild<Omit<HTMLArkProps<"section">, "children">> & WithTestId & {
|
|
42
43
|
/** Both interactive and read-only events, merged — `NextUp` never
|
|
43
44
|
* drags, resizes, or removes anything, so there's no reason to force
|
|
44
45
|
* callers to split one upcoming-events list into `data`/`staticEvents`
|
|
@@ -75,5 +76,5 @@ export type ScheduleNextUpProps<P = unknown> = Omit<HTMLArkProps<"section">, "ch
|
|
|
75
76
|
renderEvent?: (event: ScheduleAnyEvent<P>, state: NextUpEventRenderState) => ReactNode;
|
|
76
77
|
classNames?: ScheduleNextUpClassNames;
|
|
77
78
|
};
|
|
78
|
-
export declare function ScheduleNextUp<P = unknown>({ data, now, pastEventsOffset, locale, timeZone, translations, empty, renderEvent, classNames, className, testId, ...rest }: ScheduleNextUpProps<P>): import("react").JSX.Element;
|
|
79
|
+
export declare function ScheduleNextUp<P = unknown>({ data, now, pastEventsOffset, locale: localeProp, timeZone: timeZoneProp, translations, empty, renderEvent, classNames, className, testId, asChild: _asChild, ...rest }: ScheduleNextUpProps<P>): import("react").JSX.Element;
|
|
79
80
|
//# sourceMappingURL=schedule-next-up.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-next-up.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-next-up.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"schedule-next-up.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-next-up.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAInD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE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ACV,SAAS,EACT,MAAM,EACN,OAAO,EAAE,QAAQ,EACjB,GAAG,IAAI,EACR,EAAE,mBAAmB,CAAC,CAAC,CAAC,+BA6BxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-timed-grid.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-timed-grid.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAiB,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAM1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AA4B1E,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,qBAAqB,EACrB,gCAAgC,EAChC,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,kBAAkB,CAAA;AAgDzB,MAAM,MAAM,sBAAsB,CAAC,CAAC,GAAG,OAAO,IAAI,IAAI,CACpD,qBAAqB,CAAC,CAAC,CAAC,EACxB,iBAAiB,GAAG,qBAAqB,GAAG,uBAAuB,CACpE,GAAG;IACF;;;;qEAIiE;IACjE,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,IAAI,CAAA;IACxC,IAAI,EAAE,IAAI,EAAE,CAAA;IACZ,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,CAAA;IACxB,YAAY,EAAE,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAA;IACtC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,iBAAiB,CAAA;IAClC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,qBAAqB,CAAA;IACpC,GAAG,CAAC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CAAA;IACzB;;wCAEoC;IACpC,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;CAC7B,CAAA;AA2jBD,wBAAgB,iBAAiB,CAAC,CAAC,GAAG,OAAO,EAAE,EAC7C,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,SAAS,EACT,OAAO,EACP,YAAY,EAAE,gBAAgB,EAC9B,WAAW,EAAE,eAAe,EAC5B,eAAe,EACf,WAAW,EAAE,eAAe,EAC5B,YAAY,EACZ,GAAG,EACH,gBAAgB,EAChB,QAAa,EACb,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,aAAa,EACb,WAAW,EACX,QAAQ,EACR,cAAc,EACd,iBAA+C,EAC/C,aAAwC,EACxC,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,UAAU,EACV,kBAAkB,EAClB,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,KAAK,EACL,UAAU,EACV,GAAG,EACH,MAAM,EACN,UAAU,GACX,EAAE,sBAAsB,CAAC,CAAC,CAAC,+
|
|
1
|
+
{"version":3,"file":"schedule-timed-grid.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-timed-grid.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAiB,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAM1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AA4B1E,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,qBAAqB,EACrB,gCAAgC,EAChC,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,kBAAkB,CAAA;AAgDzB,MAAM,MAAM,sBAAsB,CAAC,CAAC,GAAG,OAAO,IAAI,IAAI,CACpD,qBAAqB,CAAC,CAAC,CAAC,EACxB,iBAAiB,GAAG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@ type PaginationTriggerProps = WithTestId & {
|
|
|
28
28
|
* Prev/Next step by the same window the grid is actually showing. */
|
|
29
29
|
visibleDays?: number;
|
|
30
30
|
};
|
|
31
|
-
declare const ScheduleToolbarPrevTrigger: ({ view, date, onDateChange, timeZone, translations, size, className, testId, visibleDays, }: PaginationTriggerProps) => import("react").JSX.Element;
|
|
32
|
-
declare const ScheduleToolbarNextTrigger: ({ view, date, onDateChange, timeZone, translations, size, className, testId, visibleDays, }: PaginationTriggerProps) => import("react").JSX.Element;
|
|
31
|
+
declare const ScheduleToolbarPrevTrigger: ({ view, date, onDateChange, timeZone: timeZoneProp, translations, size, className, testId, visibleDays, }: PaginationTriggerProps) => import("react").JSX.Element;
|
|
32
|
+
declare const ScheduleToolbarNextTrigger: ({ view, date, onDateChange, timeZone: timeZoneProp, translations, size, className, testId, visibleDays, }: PaginationTriggerProps) => import("react").JSX.Element;
|
|
33
33
|
export type ScheduleToolbarNowTriggerProps = WithTestId & {
|
|
34
34
|
onDateChange?: (date: Date) => void;
|
|
35
35
|
/** Override for tests — mirrors the views' own `now` prop. */
|
|
@@ -60,7 +60,7 @@ export type ScheduleToolbarTitleProps = HTMLArkProps<"h2"> & WithTestId & {
|
|
|
60
60
|
/** `"days"` view's window size, in days — forwarded to `formatScheduleTitle`. */
|
|
61
61
|
visibleDays?: number;
|
|
62
62
|
};
|
|
63
|
-
declare const ScheduleToolbarTitle: ({ view, date, timeZone, locale, align, visibleDays, className, testId, ...rest }: ScheduleToolbarTitleProps) => import("react").JSX.Element;
|
|
63
|
+
declare const ScheduleToolbarTitle: ({ view, date, timeZone: timeZoneProp, locale: localeProp, align, visibleDays, className, testId, asChild, children, ...rest }: ScheduleToolbarTitleProps) => import("react").JSX.Element;
|
|
64
64
|
export type ScheduleToolbarViewSwitcherProps<V extends ScheduleViews = DefaultScheduleViews> = WithTestId & {
|
|
65
65
|
view: ScheduleViewId<V>;
|
|
66
66
|
onViewChange?: (view: ScheduleViewId<V>) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-toolbar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"schedule-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/schedule/schedule-toolbar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AAMtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAMnD,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEzF,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAG3F;;;;;;;;;;GAUG;AAEH,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG,UAAU,CAAA;AAEnE,QAAA,MAAM,mBAAmB,mCAAoC,oBAAoB,gCAWhF,CAAA;AAED,KAAK,sBAAsB,GAAG,UAAU,GAAG;IACzC,IAAI,EAAE,YAAY,CAAA;IAClB,IAAI,EAAE,IAAI,CAAA;IACV,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,oBAAoB,CAAA;IACnC,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;0EACsE;IACtE,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,QAAA,MAAM,0BAA0B,8GAU7B,sBAAsB,gCAgBxB,CAAA;AAED,QAAA,MAAM,0BAA0B,8GAU7B,sBAA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AS,aAAa,GAAG,oBAAoB,yEAQtF,gCAAgC,CAAC,CAAC,CAAC,gCAsBrC,CAAA;AAED,eAAO,MAAM,eAAe;;;;;;CAM1B,CAAA"}
|
|
@@ -326,7 +326,7 @@ export type ScheduleTranslations = {
|
|
|
326
326
|
days?: string;
|
|
327
327
|
month?: string;
|
|
328
328
|
year?: string;
|
|
329
|
-
/** The `"agenda"` view-switcher entry — the
|
|
329
|
+
/** The `"agenda"` view-switcher entry — the event list. */
|
|
330
330
|
agenda?: string;
|
|
331
331
|
empty?: string;
|
|
332
332
|
removeEvent?: string;
|
|
@@ -423,8 +423,11 @@ export type ScheduleSharedProps<P = unknown> = {
|
|
|
423
423
|
* uncontrolled anchor date from it.
|
|
424
424
|
*/
|
|
425
425
|
now?: Date;
|
|
426
|
+
/** BCP-47 tag for every label and the week start. Defaults to the nearest
|
|
427
|
+
* `IntlProvider`'s locale, else `"en-US"`; `"auto"` reads the browser's. */
|
|
426
428
|
locale?: string;
|
|
427
|
-
/**
|
|
429
|
+
/** IANA zone the events are laid out in. Defaults to the nearest
|
|
430
|
+
* `IntlProvider`'s zone, else `"auto"` (the browser's own). */
|
|
428
431
|
timeZone?: string;
|
|
429
432
|
translations?: ScheduleTranslations;
|
|
430
433
|
classNames?: ScheduleClassNames;
|
|
@@ -504,8 +507,10 @@ export type ScheduleEventProps<P = unknown> = {
|
|
|
504
507
|
*/
|
|
505
508
|
withSelection?: boolean;
|
|
506
509
|
/**
|
|
507
|
-
* Default `true
|
|
508
|
-
*
|
|
510
|
+
* Default `true` — except in the agenda, whose rows already print the title,
|
|
511
|
+
* time and description, so it defaults to `false` there unless
|
|
512
|
+
* `renderEventDetails` is passed. Whether the built-in event-details popover
|
|
513
|
+
* mounts for the selected event.
|
|
509
514
|
*
|
|
510
515
|
* Set `false` when you are rendering the detail yourself (a side panel, a
|
|
511
516
|
* drawer) and only want the selection state — the dashboard example does
|