react-native-roster 0.0.0 → 0.0.1
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/NOTICE.md +29 -0
- package/README.md +378 -2
- package/dist/src/adapters/rrule/cache.d.ts +15 -0
- package/dist/src/adapters/rrule/cache.d.ts.map +1 -0
- package/dist/src/adapters/rrule/cache.js +53 -0
- package/dist/src/adapters/rrule/cache.js.map +1 -0
- package/dist/src/adapters/rrule/envelope.d.ts +3 -0
- package/dist/src/adapters/rrule/envelope.d.ts.map +1 -0
- package/dist/src/adapters/rrule/envelope.js +9 -0
- package/dist/src/adapters/rrule/envelope.js.map +1 -0
- package/dist/src/adapters/rrule/expand.d.ts +4 -0
- package/dist/src/adapters/rrule/expand.d.ts.map +1 -0
- package/dist/src/adapters/rrule/expand.js +92 -0
- package/dist/src/adapters/rrule/expand.js.map +1 -0
- package/dist/src/adapters/rrule/hash.d.ts +3 -0
- package/dist/src/adapters/rrule/hash.d.ts.map +1 -0
- package/dist/src/adapters/rrule/hash.js +15 -0
- package/dist/src/adapters/rrule/hash.js.map +1 -0
- package/dist/src/adapters/rrule/index.d.ts +5 -0
- package/dist/src/adapters/rrule/index.d.ts.map +1 -0
- package/dist/src/adapters/rrule/index.js +12 -0
- package/dist/src/adapters/rrule/index.js.map +1 -0
- package/dist/src/adapters/rrule/net.d.ts +6 -0
- package/dist/src/adapters/rrule/net.d.ts.map +1 -0
- package/dist/src/adapters/rrule/net.js +31 -0
- package/dist/src/adapters/rrule/net.js.map +1 -0
- package/dist/src/adapters/rrule/occurrences.d.ts +6 -0
- package/dist/src/adapters/rrule/occurrences.d.ts.map +1 -0
- package/dist/src/adapters/rrule/occurrences.js +252 -0
- package/dist/src/adapters/rrule/occurrences.js.map +1 -0
- package/dist/src/adapters/rrule/types.d.ts +62 -0
- package/dist/src/adapters/rrule/types.d.ts.map +1 -0
- package/dist/src/adapters/rrule/types.js +3 -0
- package/dist/src/adapters/rrule/types.js.map +1 -0
- package/dist/src/adapters/rrule/validate.d.ts +6 -0
- package/dist/src/adapters/rrule/validate.d.ts.map +1 -0
- package/dist/src/adapters/rrule/validate.js +64 -0
- package/dist/src/adapters/rrule/validate.js.map +1 -0
- package/dist/src/components/layers/layers.types.d.ts +15 -0
- package/dist/src/components/layers/layers.types.d.ts.map +1 -0
- package/dist/src/components/layers/layers.types.js +3 -0
- package/dist/src/components/layers/layers.types.js.map +1 -0
- package/dist/src/components/layers/parts/gap.d.ts +3 -0
- package/dist/src/components/layers/parts/gap.d.ts.map +1 -0
- package/dist/src/components/layers/parts/gap.js +7 -0
- package/dist/src/components/layers/parts/gap.js.map +1 -0
- package/dist/src/components/layers/parts/interval.d.ts +3 -0
- package/dist/src/components/layers/parts/interval.d.ts.map +1 -0
- package/dist/src/components/layers/parts/interval.js +22 -0
- package/dist/src/components/layers/parts/interval.js.map +1 -0
- package/dist/src/components/layers/utils/styles.d.ts +7 -0
- package/dist/src/components/layers/utils/styles.d.ts.map +1 -0
- package/dist/src/components/layers/utils/styles.js +24 -0
- package/dist/src/components/layers/utils/styles.js.map +1 -0
- package/dist/src/components/primitives/press-point.d.ts +3 -0
- package/dist/src/components/primitives/press-point.d.ts.map +1 -0
- package/dist/src/components/primitives/press-point.js +7 -0
- package/dist/src/components/primitives/press-point.js.map +1 -0
- package/dist/src/components/primitives/press-point.types.d.ts +14 -0
- package/dist/src/components/primitives/press-point.types.d.ts.map +1 -0
- package/dist/src/components/primitives/press-point.types.js +3 -0
- package/dist/src/components/primitives/press-point.types.js.map +1 -0
- package/dist/src/components/primitives/press-point.web.d.ts +3 -0
- package/dist/src/components/primitives/press-point.web.d.ts.map +1 -0
- package/dist/src/components/primitives/press-point.web.js +17 -0
- package/dist/src/components/primitives/press-point.web.js.map +1 -0
- package/dist/src/components/primitives/region-style.d.ts +9 -0
- package/dist/src/components/primitives/region-style.d.ts.map +1 -0
- package/dist/src/components/primitives/region-style.js +20 -0
- package/dist/src/components/primitives/region-style.js.map +1 -0
- package/dist/src/components/roster/index.d.ts +3 -0
- package/dist/src/components/roster/index.d.ts.map +1 -0
- package/dist/src/components/roster/index.js +56 -0
- package/dist/src/components/roster/index.js.map +1 -0
- package/dist/src/components/roster/lanes/interval-hover.d.ts +3 -0
- package/dist/src/components/roster/lanes/interval-hover.d.ts.map +1 -0
- package/dist/src/components/roster/lanes/interval-hover.js +7 -0
- package/dist/src/components/roster/lanes/interval-hover.js.map +1 -0
- package/dist/src/components/roster/lanes/interval-hover.types.d.ts +15 -0
- package/dist/src/components/roster/lanes/interval-hover.types.d.ts.map +1 -0
- package/dist/src/components/roster/lanes/interval-hover.types.js +3 -0
- package/dist/src/components/roster/lanes/interval-hover.types.js.map +1 -0
- package/dist/src/components/roster/lanes/interval-hover.web.d.ts +3 -0
- package/dist/src/components/roster/lanes/interval-hover.web.d.ts.map +1 -0
- package/dist/src/components/roster/lanes/interval-hover.web.js +20 -0
- package/dist/src/components/roster/lanes/interval-hover.web.js.map +1 -0
- package/dist/src/components/roster/lanes/lane.d.ts +10 -0
- package/dist/src/components/roster/lanes/lane.d.ts.map +1 -0
- package/dist/src/components/roster/lanes/lane.js +37 -0
- package/dist/src/components/roster/lanes/lane.js.map +1 -0
- package/dist/src/components/roster/lanes/parts/incomplete.d.ts +8 -0
- package/dist/src/components/roster/lanes/parts/incomplete.d.ts.map +1 -0
- package/dist/src/components/roster/lanes/parts/incomplete.js +30 -0
- package/dist/src/components/roster/lanes/parts/incomplete.js.map +1 -0
- package/dist/src/components/roster/lanes/parts/lane-label.d.ts +3 -0
- package/dist/src/components/roster/lanes/parts/lane-label.d.ts.map +1 -0
- package/dist/src/components/roster/lanes/parts/lane-label.js +18 -0
- package/dist/src/components/roster/lanes/parts/lane-label.js.map +1 -0
- package/dist/src/components/roster/layout.d.ts +17 -0
- package/dist/src/components/roster/layout.d.ts.map +1 -0
- package/dist/src/components/roster/layout.js +24 -0
- package/dist/src/components/roster/layout.js.map +1 -0
- package/dist/src/components/roster/parts/body.d.ts +7 -0
- package/dist/src/components/roster/parts/body.d.ts.map +1 -0
- package/dist/src/components/roster/parts/body.js +29 -0
- package/dist/src/components/roster/parts/body.js.map +1 -0
- package/dist/src/components/roster/parts/corner.d.ts +2 -0
- package/dist/src/components/roster/parts/corner.d.ts.map +1 -0
- package/dist/src/components/roster/parts/corner.js +7 -0
- package/dist/src/components/roster/parts/corner.js.map +1 -0
- package/dist/src/components/roster/parts/empty.d.ts +2 -0
- package/dist/src/components/roster/parts/empty.d.ts.map +1 -0
- package/dist/src/components/roster/parts/empty.js +9 -0
- package/dist/src/components/roster/parts/empty.js.map +1 -0
- package/dist/src/components/roster/parts/grid.d.ts +3 -0
- package/dist/src/components/roster/parts/grid.d.ts.map +1 -0
- package/dist/src/components/roster/parts/grid.js +16 -0
- package/dist/src/components/roster/parts/grid.js.map +1 -0
- package/dist/src/components/roster/parts/header-cell.d.ts +5 -0
- package/dist/src/components/roster/parts/header-cell.d.ts.map +1 -0
- package/dist/src/components/roster/parts/header-cell.js +9 -0
- package/dist/src/components/roster/parts/header-cell.js.map +1 -0
- package/dist/src/components/roster/parts/header.d.ts +3 -0
- package/dist/src/components/roster/parts/header.d.ts.map +1 -0
- package/dist/src/components/roster/parts/header.js +13 -0
- package/dist/src/components/roster/parts/header.js.map +1 -0
- package/dist/src/components/roster/parts/lane-label-column.d.ts +3 -0
- package/dist/src/components/roster/parts/lane-label-column.d.ts.map +1 -0
- package/dist/src/components/roster/parts/lane-label-column.js +18 -0
- package/dist/src/components/roster/parts/lane-label-column.js.map +1 -0
- package/dist/src/components/roster/roster.types.d.ts +146 -0
- package/dist/src/components/roster/roster.types.d.ts.map +1 -0
- package/dist/src/components/roster/roster.types.js +3 -0
- package/dist/src/components/roster/roster.types.js.map +1 -0
- package/dist/src/components/roster/use-roster.d.ts +3 -0
- package/dist/src/components/roster/use-roster.d.ts.map +1 -0
- package/dist/src/components/roster/use-roster.js +106 -0
- package/dist/src/components/roster/use-roster.js.map +1 -0
- package/dist/src/components/roster/utils/body-content-key.d.ts +3 -0
- package/dist/src/components/roster/utils/body-content-key.d.ts.map +1 -0
- package/dist/src/components/roster/utils/body-content-key.js +29 -0
- package/dist/src/components/roster/utils/body-content-key.js.map +1 -0
- package/dist/src/components/roster/utils/ticks.d.ts +4 -0
- package/dist/src/components/roster/utils/ticks.d.ts.map +1 -0
- package/dist/src/components/roster/utils/ticks.js +60 -0
- package/dist/src/components/roster/utils/ticks.js.map +1 -0
- package/dist/src/components/schedule/days/day.d.ts +20 -0
- package/dist/src/components/schedule/days/day.d.ts.map +1 -0
- package/dist/src/components/schedule/days/day.js +26 -0
- package/dist/src/components/schedule/days/day.js.map +1 -0
- package/dist/src/components/schedule/days/header-layout.d.ts +9 -0
- package/dist/src/components/schedule/days/header-layout.d.ts.map +1 -0
- package/dist/src/components/schedule/days/header-layout.js +9 -0
- package/dist/src/components/schedule/days/header-layout.js.map +1 -0
- package/dist/src/components/schedule/days/layout.d.ts +18 -0
- package/dist/src/components/schedule/days/layout.d.ts.map +1 -0
- package/dist/src/components/schedule/days/layout.js +9 -0
- package/dist/src/components/schedule/days/layout.js.map +1 -0
- package/dist/src/components/schedule/days/parts/column.d.ts +3 -0
- package/dist/src/components/schedule/days/parts/column.d.ts.map +1 -0
- package/dist/src/components/schedule/days/parts/column.js +33 -0
- package/dist/src/components/schedule/days/parts/column.js.map +1 -0
- package/dist/src/components/schedule/days/parts/day-header.d.ts +5 -0
- package/dist/src/components/schedule/days/parts/day-header.d.ts.map +1 -0
- package/dist/src/components/schedule/days/parts/day-header.js +10 -0
- package/dist/src/components/schedule/days/parts/day-header.js.map +1 -0
- package/dist/src/components/schedule/days/parts/grid.d.ts +3 -0
- package/dist/src/components/schedule/days/parts/grid.d.ts.map +1 -0
- package/dist/src/components/schedule/days/parts/grid.js +14 -0
- package/dist/src/components/schedule/days/parts/grid.js.map +1 -0
- package/dist/src/components/schedule/days/parts/now-line.d.ts +5 -0
- package/dist/src/components/schedule/days/parts/now-line.d.ts.map +1 -0
- package/dist/src/components/schedule/days/parts/now-line.js +9 -0
- package/dist/src/components/schedule/days/parts/now-line.js.map +1 -0
- package/dist/src/components/schedule/days/parts/skipped-date.d.ts +4 -0
- package/dist/src/components/schedule/days/parts/skipped-date.d.ts.map +1 -0
- package/dist/src/components/schedule/days/parts/skipped-date.js +17 -0
- package/dist/src/components/schedule/days/parts/skipped-date.js.map +1 -0
- package/dist/src/components/schedule/days/parts/transition.d.ts +3 -0
- package/dist/src/components/schedule/days/parts/transition.d.ts.map +1 -0
- package/dist/src/components/schedule/days/parts/transition.js +42 -0
- package/dist/src/components/schedule/days/parts/transition.js.map +1 -0
- package/dist/src/components/schedule/index.d.ts +3 -0
- package/dist/src/components/schedule/index.d.ts.map +1 -0
- package/dist/src/components/schedule/index.js +45 -0
- package/dist/src/components/schedule/index.js.map +1 -0
- package/dist/src/components/schedule/layout.d.ts +15 -0
- package/dist/src/components/schedule/layout.d.ts.map +1 -0
- package/dist/src/components/schedule/layout.js +10 -0
- package/dist/src/components/schedule/layout.js.map +1 -0
- package/dist/src/components/schedule/parts/gutter.d.ts +3 -0
- package/dist/src/components/schedule/parts/gutter.d.ts.map +1 -0
- package/dist/src/components/schedule/parts/gutter.js +9 -0
- package/dist/src/components/schedule/parts/gutter.js.map +1 -0
- package/dist/src/components/schedule/parts/incomplete.d.ts +6 -0
- package/dist/src/components/schedule/parts/incomplete.d.ts.map +1 -0
- package/dist/src/components/schedule/parts/incomplete.js +9 -0
- package/dist/src/components/schedule/parts/incomplete.js.map +1 -0
- package/dist/src/components/schedule/schedule.types.d.ts +109 -0
- package/dist/src/components/schedule/schedule.types.d.ts.map +1 -0
- package/dist/src/components/schedule/schedule.types.js +3 -0
- package/dist/src/components/schedule/schedule.types.js.map +1 -0
- package/dist/src/components/schedule/use-schedule-viewport.d.ts +7 -0
- package/dist/src/components/schedule/use-schedule-viewport.d.ts.map +1 -0
- package/dist/src/components/schedule/use-schedule-viewport.js +15 -0
- package/dist/src/components/schedule/use-schedule-viewport.js.map +1 -0
- package/dist/src/components/schedule/use-schedule.d.ts +3 -0
- package/dist/src/components/schedule/use-schedule.d.ts.map +1 -0
- package/dist/src/components/schedule/use-schedule.js +71 -0
- package/dist/src/components/schedule/use-schedule.js.map +1 -0
- package/dist/src/components/schedule/utils/days.d.ts +17 -0
- package/dist/src/components/schedule/utils/days.d.ts.map +1 -0
- package/dist/src/components/schedule/utils/days.js +49 -0
- package/dist/src/components/schedule/utils/days.js.map +1 -0
- package/dist/src/core/axis.d.ts +18 -0
- package/dist/src/core/axis.d.ts.map +1 -0
- package/dist/src/core/axis.js +58 -0
- package/dist/src/core/axis.js.map +1 -0
- package/dist/src/core/cache.d.ts +29 -0
- package/dist/src/core/cache.d.ts.map +1 -0
- package/dist/src/core/cache.js +33 -0
- package/dist/src/core/cache.js.map +1 -0
- package/dist/src/core/columns.d.ts +3 -0
- package/dist/src/core/columns.d.ts.map +1 -0
- package/dist/src/core/columns.js +45 -0
- package/dist/src/core/columns.js.map +1 -0
- package/dist/src/core/coverage.d.ts +3 -0
- package/dist/src/core/coverage.d.ts.map +1 -0
- package/dist/src/core/coverage.js +60 -0
- package/dist/src/core/coverage.js.map +1 -0
- package/dist/src/core/flag.d.ts +3 -0
- package/dist/src/core/flag.d.ts.map +1 -0
- package/dist/src/core/flag.js +17 -0
- package/dist/src/core/flag.js.map +1 -0
- package/dist/src/core/hash.d.ts +5 -0
- package/dist/src/core/hash.d.ts.map +1 -0
- package/dist/src/core/hash.js +29 -0
- package/dist/src/core/hash.js.map +1 -0
- package/dist/src/core/hit-test.d.ts +6 -0
- package/dist/src/core/hit-test.d.ts.map +1 -0
- package/dist/src/core/hit-test.js +23 -0
- package/dist/src/core/hit-test.js.map +1 -0
- package/dist/src/core/index.d.ts +12 -0
- package/dist/src/core/index.d.ts.map +1 -0
- package/dist/src/core/index.js +30 -0
- package/dist/src/core/index.js.map +1 -0
- package/dist/src/core/layout.d.ts +3 -0
- package/dist/src/core/layout.d.ts.map +1 -0
- package/dist/src/core/layout.js +96 -0
- package/dist/src/core/layout.js.map +1 -0
- package/dist/src/core/order.d.ts +7 -0
- package/dist/src/core/order.d.ts.map +1 -0
- package/dist/src/core/order.js +12 -0
- package/dist/src/core/order.js.map +1 -0
- package/dist/src/core/scale.d.ts +9 -0
- package/dist/src/core/scale.d.ts.map +1 -0
- package/dist/src/core/scale.js +41 -0
- package/dist/src/core/scale.js.map +1 -0
- package/dist/src/core/snap.d.ts +10 -0
- package/dist/src/core/snap.d.ts.map +1 -0
- package/dist/src/core/snap.js +43 -0
- package/dist/src/core/snap.js.map +1 -0
- package/dist/src/core/spans.d.ts +3 -0
- package/dist/src/core/spans.d.ts.map +1 -0
- package/dist/src/core/spans.js +60 -0
- package/dist/src/core/spans.js.map +1 -0
- package/dist/src/core/types.d.ts +104 -0
- package/dist/src/core/types.d.ts.map +1 -0
- package/dist/src/core/types.js +3 -0
- package/dist/src/core/types.js.map +1 -0
- package/dist/src/core/zone.d.ts +10 -0
- package/dist/src/core/zone.d.ts.map +1 -0
- package/dist/src/core/zone.js +103 -0
- package/dist/src/core/zone.js.map +1 -0
- package/dist/src/index.d.ts +27 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +63 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/nativewind/index.d.ts +61 -0
- package/dist/src/nativewind/index.d.ts.map +1 -0
- package/dist/src/nativewind/index.js +24 -0
- package/dist/src/nativewind/index.js.map +1 -0
- package/llms.txt +481 -0
- package/package.json +154 -8
- package/src/adapters/rrule/README.md +41 -0
- package/src/adapters/rrule/cache.ts +50 -0
- package/src/adapters/rrule/envelope.ts +7 -0
- package/src/adapters/rrule/expand.ts +105 -0
- package/src/adapters/rrule/hash.ts +13 -0
- package/src/adapters/rrule/index.ts +11 -0
- package/src/adapters/rrule/net.ts +30 -0
- package/src/adapters/rrule/occurrences.ts +288 -0
- package/src/adapters/rrule/types.ts +52 -0
- package/src/adapters/rrule/validate.ts +78 -0
- package/src/components/layers/README.md +11 -0
- package/src/components/layers/layers.types.ts +6 -0
- package/src/components/layers/parts/gap.tsx +5 -0
- package/src/components/layers/parts/interval.tsx +24 -0
- package/src/components/layers/utils/styles.ts +24 -0
- package/src/components/primitives/README.md +12 -0
- package/src/components/primitives/press-point.tsx +5 -0
- package/src/components/primitives/press-point.types.ts +5 -0
- package/src/components/primitives/press-point.web.tsx +19 -0
- package/src/components/primitives/region-style.ts +21 -0
- package/src/components/roster/README.md +18 -0
- package/src/components/roster/index.tsx +90 -0
- package/src/components/roster/lanes/interval-hover.tsx +5 -0
- package/src/components/roster/lanes/interval-hover.types.ts +11 -0
- package/src/components/roster/lanes/interval-hover.web.tsx +19 -0
- package/src/components/roster/lanes/lane.tsx +88 -0
- package/src/components/roster/lanes/parts/incomplete.tsx +44 -0
- package/src/components/roster/lanes/parts/lane-label.tsx +41 -0
- package/src/components/roster/layout.tsx +68 -0
- package/src/components/roster/parts/body.tsx +91 -0
- package/src/components/roster/parts/corner.tsx +3 -0
- package/src/components/roster/parts/empty.tsx +5 -0
- package/src/components/roster/parts/grid.tsx +26 -0
- package/src/components/roster/parts/header-cell.tsx +10 -0
- package/src/components/roster/parts/header.tsx +18 -0
- package/src/components/roster/parts/lane-label-column.tsx +31 -0
- package/src/components/roster/roster.types.ts +155 -0
- package/src/components/roster/use-roster.ts +133 -0
- package/src/components/roster/utils/body-content-key.ts +46 -0
- package/src/components/roster/utils/ticks.ts +62 -0
- package/src/components/schedule/README.md +18 -0
- package/src/components/schedule/days/day.tsx +76 -0
- package/src/components/schedule/days/header-layout.tsx +12 -0
- package/src/components/schedule/days/layout.tsx +38 -0
- package/src/components/schedule/days/parts/column.tsx +59 -0
- package/src/components/schedule/days/parts/day-header.tsx +18 -0
- package/src/components/schedule/days/parts/grid.tsx +21 -0
- package/src/components/schedule/days/parts/now-line.tsx +11 -0
- package/src/components/schedule/days/parts/skipped-date.tsx +22 -0
- package/src/components/schedule/days/parts/transition.tsx +70 -0
- package/src/components/schedule/index.tsx +109 -0
- package/src/components/schedule/layout.tsx +42 -0
- package/src/components/schedule/parts/gutter.tsx +16 -0
- package/src/components/schedule/parts/incomplete.tsx +13 -0
- package/src/components/schedule/schedule.types.ts +103 -0
- package/src/components/schedule/use-schedule-viewport.ts +13 -0
- package/src/components/schedule/use-schedule.ts +75 -0
- package/src/components/schedule/utils/days.ts +54 -0
- package/src/core/README.md +25 -0
- package/src/core/axis.ts +58 -0
- package/src/core/cache.ts +38 -0
- package/src/core/columns.ts +49 -0
- package/src/core/coverage.ts +56 -0
- package/src/core/flag.ts +14 -0
- package/src/core/hash.ts +28 -0
- package/src/core/hit-test.ts +27 -0
- package/src/core/index.ts +34 -0
- package/src/core/layout.ts +101 -0
- package/src/core/order.ts +18 -0
- package/src/core/scale.ts +45 -0
- package/src/core/snap.ts +52 -0
- package/src/core/spans.ts +58 -0
- package/src/core/types.ts +92 -0
- package/src/core/zone.ts +100 -0
- package/src/index.ts +49 -0
- package/src/nativewind/README.md +14 -0
- package/src/nativewind/index.ts +30 -0
- package/index.js +0 -4
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RosterEmpty = RosterEmpty;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_native_1 = require("react-native");
|
|
6
|
+
function RosterEmpty() {
|
|
7
|
+
return (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: { padding: 24, color: '#475569' }, children: "No lanes" });
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=empty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty.js","sourceRoot":"","sources":["../../../../../src/components/roster/parts/empty.tsx"],"names":[],"mappings":";;;;AAAA,+CAAoC;AAEpC;IACE,OAAO,uBAAC,mBAAI,IAAC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,yBAAiB,CAAC;AACzE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../../../src/components/roster/parts/grid.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,SAAS,2CAsB5D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RosterGrid = RosterGrid;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_native_1 = require("react-native");
|
|
6
|
+
function RosterGrid({ ticks, contentWidth }) {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(react_native_1.View, { testID: "roster-grid", pointerEvents: "none", style: { position: 'absolute', width: contentWidth, height: '100%' }, children: ticks.map((tick) => ((0, jsx_runtime_1.jsx)(react_native_1.View, { style: {
|
|
8
|
+
position: 'absolute',
|
|
9
|
+
left: tick.x,
|
|
10
|
+
top: 0,
|
|
11
|
+
bottom: 0,
|
|
12
|
+
width: 1,
|
|
13
|
+
backgroundColor: '#e2e8f0',
|
|
14
|
+
} }, tick.time))) }));
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=grid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.js","sourceRoot":"","sources":["../../../../../src/components/roster/parts/grid.tsx"],"names":[],"mappings":";;;;AAAA,+CAAoC;AAGpC,oBAA2B,EAAE,KAAK,EAAE,YAAY,EAAa;IAC3D,OAAO,CACL,uBAAC,mBAAI,IACH,MAAM,EAAC,aAAa,EACpB,aAAa,EAAC,MAAM,EACpB,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,YAEnE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,uBAAC,mBAAI,IAEH,KAAK,EAAE;gBACL,QAAQ,EAAE,UAAU;gBACpB,IAAI,EAAE,IAAI,CAAC,CAAC;gBACZ,GAAG,EAAE,CAAC;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,CAAC;gBACR,eAAe,EAAE,SAAS;aAC3B,IARI,IAAI,CAAC,IAAI,CASd,CACH,CAAC,GACG,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-cell.d.ts","sourceRoot":"","sources":["../../../../../src/components/roster/parts/header-cell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,2CAM9D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RosterHeaderCell = RosterHeaderCell;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_native_1 = require("react-native");
|
|
6
|
+
function RosterHeaderCell({ tick }) {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(react_native_1.Text, { numberOfLines: 1, style: { color: '#475569', fontSize: 11, padding: 4 }, children: tick.label }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=header-cell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-cell.js","sourceRoot":"","sources":["../../../../../src/components/roster/parts/header-cell.tsx"],"names":[],"mappings":";;;;AAAA,+CAAoC;AAGpC,0BAAiC,EAAE,IAAI,EAAwB;IAC7D,OAAO,CACL,uBAAC,mBAAI,IAAC,aAAa,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,YAC1E,IAAI,CAAC,KAAK,GACN,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../../src/components/roster/parts/header.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE,WAAW,2CAaxF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RosterHeader = RosterHeader;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_native_1 = require("react-native");
|
|
9
|
+
const react_native_reanimated_1 = __importDefault(require("react-native-reanimated"));
|
|
10
|
+
function RosterHeader({ ticks, contentWidth, scroll, headerCellZone }) {
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.View, { testID: "roster-header", style: [{ width: contentWidth, height: 40 }, scroll.headerStyle], children: ticks.map((tick) => ((0, jsx_runtime_1.jsx)(react_native_1.View, { style: { position: 'absolute', left: tick.x, top: 0 }, children: headerCellZone({ tick }) }, tick.time))) }));
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.js","sourceRoot":"","sources":["../../../../../src/components/roster/parts/header.tsx"],"names":[],"mappings":";;;;;;;AAAA,+CAAoC;AACpC,sFAA+C;AAG/C,sBAA6B,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,cAAc,EAAe;IACvF,OAAO,CACL,uBAAC,iCAAQ,CAAC,IAAI,IACZ,MAAM,EAAC,eAAe,EACtB,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,WAAW,CAAC,YAE/D,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,uBAAC,mBAAI,IAAiB,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,YACxE,cAAc,CAAC,EAAE,IAAI,EAAE,CAAC,IADhB,IAAI,CAAC,IAAI,CAEb,CACR,CAAC,GACY,CACjB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lane-label-column.d.ts","sourceRoot":"","sources":["../../../../../src/components/roster/parts/lane-label-column.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,UAAU,EACV,MAAM,EACN,aAAa,GACd,EAAE,gBAAgB,2CAqBlB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RosterLaneLabelColumn = RosterLaneLabelColumn;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_native_1 = require("react-native");
|
|
9
|
+
const react_native_reanimated_1 = __importDefault(require("react-native-reanimated"));
|
|
10
|
+
function RosterLaneLabelColumn({ labels, projection, scroll, laneLabelZone, }) {
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.View, { testID: "roster-labels", style: [{ height: labels.length * projection.rowHeight }, scroll.labelStyle], children: labels.map((label, index) => ((0, jsx_runtime_1.jsx)(react_native_1.View, { style: {
|
|
12
|
+
position: 'absolute',
|
|
13
|
+
top: index * projection.rowHeight,
|
|
14
|
+
height: projection.rowHeight,
|
|
15
|
+
width: '100%',
|
|
16
|
+
}, children: laneLabelZone(label) }, label.lane.id))) }));
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=lane-label-column.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lane-label-column.js","sourceRoot":"","sources":["../../../../../src/components/roster/parts/lane-label-column.tsx"],"names":[],"mappings":";;;;;;;AAAA,+CAAoC;AACpC,sFAA+C;AAG/C,+BAAsC,EACpC,MAAM,EACN,UAAU,EACV,MAAM,EACN,aAAa,GACI;IACjB,OAAO,CACL,uBAAC,iCAAQ,CAAC,IAAI,IACZ,MAAM,EAAC,eAAe,EACtB,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,GAAG,UAAU,CAAC,SAAS,EAAE,EAAE,MAAM,CAAC,UAAU,CAAC,YAE3E,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5B,uBAAC,mBAAI,IAEH,KAAK,EAAE;gBACL,QAAQ,EAAE,UAAU;gBACpB,GAAG,EAAE,KAAK,GAAG,UAAU,CAAC,SAAS;gBACjC,MAAM,EAAE,UAAU,CAAC,SAAS;gBAC5B,KAAK,EAAE,MAAM;aACd,YAEA,aAAa,CAAC,KAAK,CAAC,IARhB,KAAK,CAAC,IAAI,CAAC,EAAE,CASb,CACR,CAAC,GACY,CACjB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import type { ReactNode, RefObject } from 'react';
|
|
2
|
+
import type { LayoutChangeEvent, NativeScrollEvent, NativeSyntheticEvent, ScrollView, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { SharedValue } from 'react-native-reanimated';
|
|
4
|
+
import type { Coverage, Lane, LaneComparator, LaneFlag, LaneGeometry, Projection, Rect, Source, Window, WindowSpec } from '../../core';
|
|
5
|
+
import type { GapInput, IntervalInput } from '../layers/layers.types';
|
|
6
|
+
export type RosterProjection = Extract<Projection, {
|
|
7
|
+
orientation: 'horizontal';
|
|
8
|
+
}>;
|
|
9
|
+
export type RosterTick = {
|
|
10
|
+
time: number;
|
|
11
|
+
x: number;
|
|
12
|
+
label: string;
|
|
13
|
+
kind: 'day' | 'time';
|
|
14
|
+
};
|
|
15
|
+
export type RosterScroll = {
|
|
16
|
+
x: SharedValue<number>;
|
|
17
|
+
y: SharedValue<number>;
|
|
18
|
+
bodyRef: RefObject<ScrollView | null>;
|
|
19
|
+
onBodyScroll: (input: NativeSyntheticEvent<NativeScrollEvent>) => void;
|
|
20
|
+
onHeaderScroll: (input: NativeSyntheticEvent<NativeScrollEvent>) => void;
|
|
21
|
+
onVerticalScroll: (input: NativeSyntheticEvent<NativeScrollEvent>) => void;
|
|
22
|
+
headerStyle: StyleProp<ViewStyle>;
|
|
23
|
+
labelStyle: StyleProp<ViewStyle>;
|
|
24
|
+
};
|
|
25
|
+
export type RosterInput = {
|
|
26
|
+
lanes: Lane[];
|
|
27
|
+
windowSpec: WindowSpec;
|
|
28
|
+
minuteStep?: number;
|
|
29
|
+
sortLanes?: LaneComparator;
|
|
30
|
+
highlightSource?: Source;
|
|
31
|
+
onNavigate?: (next: WindowSpec) => void;
|
|
32
|
+
onIntervalPress?: (rect: Rect, lane: Lane) => void;
|
|
33
|
+
/** Reports the winning interval under a web pointer; native renders attach no hover handler. */
|
|
34
|
+
onIntervalHover?: (rect: Rect, lane: Lane) => void;
|
|
35
|
+
onGapPress?: (rect: Rect, lane: Lane) => void;
|
|
36
|
+
onCellPress?: (lane: Lane, time: number) => void;
|
|
37
|
+
/** Fixed lane height, default 48. */
|
|
38
|
+
rowHeight?: number;
|
|
39
|
+
/** Minimum elapsed-time scale, default 0.5; expands to fit wider viewports. */
|
|
40
|
+
pxPerMinute?: number;
|
|
41
|
+
};
|
|
42
|
+
export type RosterModel = {
|
|
43
|
+
window: Window;
|
|
44
|
+
projection: RosterProjection;
|
|
45
|
+
orderedLanes: Lane[];
|
|
46
|
+
coverage: ReadonlyMap<string, Coverage>;
|
|
47
|
+
laneState: ReadonlyMap<string, {
|
|
48
|
+
flag: LaneFlag;
|
|
49
|
+
complete: boolean;
|
|
50
|
+
}>;
|
|
51
|
+
geometryFor: (lane: Lane) => LaneGeometry;
|
|
52
|
+
scroll: RosterScroll;
|
|
53
|
+
press: (lane: Lane, x: number, y: number) => void;
|
|
54
|
+
status: 'empty' | 'ready';
|
|
55
|
+
ticks: RosterTick[];
|
|
56
|
+
contentWidth: number;
|
|
57
|
+
viewport: {
|
|
58
|
+
width: number;
|
|
59
|
+
height: number;
|
|
60
|
+
};
|
|
61
|
+
onLayout: (input: LayoutChangeEvent) => void;
|
|
62
|
+
navigate: (next: WindowSpec) => void;
|
|
63
|
+
};
|
|
64
|
+
export type LaneLabelInput = {
|
|
65
|
+
lane: Lane;
|
|
66
|
+
flag: LaneFlag;
|
|
67
|
+
complete: boolean;
|
|
68
|
+
viewTimezone: string;
|
|
69
|
+
incompleteLabel: string;
|
|
70
|
+
neverSetLabel: string;
|
|
71
|
+
};
|
|
72
|
+
export type GridInput = {
|
|
73
|
+
ticks: RosterTick[];
|
|
74
|
+
contentWidth: number;
|
|
75
|
+
};
|
|
76
|
+
export type HeaderInput = Pick<RosterModel, 'ticks' | 'projection' | 'scroll' | 'contentWidth'> & {
|
|
77
|
+
/** Time label filler, positioned by the header. */
|
|
78
|
+
headerCellZone: (input: {
|
|
79
|
+
tick: RosterTick;
|
|
80
|
+
}) => ReactNode;
|
|
81
|
+
};
|
|
82
|
+
export type LabelColumnInput = Pick<RosterModel, 'projection' | 'scroll'> & {
|
|
83
|
+
labels: LaneLabelInput[];
|
|
84
|
+
/** Lane label filler, positioned at the fixed row height. */
|
|
85
|
+
laneLabelZone: (input: LaneLabelInput) => ReactNode;
|
|
86
|
+
};
|
|
87
|
+
export type BodyInput = Pick<RosterModel, 'geometryFor' | 'projection' | 'scroll' | 'press' | 'ticks' | 'contentWidth' | 'viewport' | 'window'> & {
|
|
88
|
+
lanes: Lane[];
|
|
89
|
+
highlightSource?: Source;
|
|
90
|
+
onIntervalHover?: (rect: Rect, lane: Lane) => void;
|
|
91
|
+
incompleteLabel?: string;
|
|
92
|
+
/** Covered rect view; position it using the final rect bounds, as RosterInterval does. */
|
|
93
|
+
intervalZone: (input: IntervalInput) => ReactNode;
|
|
94
|
+
/** Removed rect filler, placed inside a pressable by LaneRow. */
|
|
95
|
+
gapZone: (input: GapInput) => ReactNode;
|
|
96
|
+
/** Noninteractive tick lines behind every lane, sized to the content width. */
|
|
97
|
+
gridZone: (input: GridInput) => ReactNode;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Chrome style props and their NativeWind class twins. Class props resolve only
|
|
101
|
+
* after `react-native-roster/nativewind` registers the component; without that
|
|
102
|
+
* entry they are ignored.
|
|
103
|
+
*/
|
|
104
|
+
export type RosterStyleProps = {
|
|
105
|
+
/** Outer container; supply a bounded height. */
|
|
106
|
+
style?: StyleProp<ViewStyle>;
|
|
107
|
+
className?: string;
|
|
108
|
+
/** Frozen header row holding the corner and tick strip, 40 px tall by default. */
|
|
109
|
+
headerStyle?: StyleProp<ViewStyle>;
|
|
110
|
+
headerClassName?: string;
|
|
111
|
+
/** Frozen lane label column, laneLabelWidth wide. */
|
|
112
|
+
laneLabelColumnStyle?: StyleProp<ViewStyle>;
|
|
113
|
+
laneLabelColumnClassName?: string;
|
|
114
|
+
/** Measured body viewport containing the virtualized lanes. */
|
|
115
|
+
bodyStyle?: StyleProp<ViewStyle>;
|
|
116
|
+
bodyClassName?: string;
|
|
117
|
+
/** Width of the corner and lane label column, default 180. */
|
|
118
|
+
laneLabelWidth?: number;
|
|
119
|
+
};
|
|
120
|
+
export type RosterProps = RosterInput & RosterStyleProps & {
|
|
121
|
+
incompleteLabel?: string;
|
|
122
|
+
neverSetLabel?: string;
|
|
123
|
+
/** Label, differing lane zone, effective flag, and completeness notice. */
|
|
124
|
+
laneLabelZone?: (input: LaneLabelInput) => ReactNode;
|
|
125
|
+
/** Time label within one positioned header tick. */
|
|
126
|
+
headerCellZone?: (input: {
|
|
127
|
+
tick: RosterTick;
|
|
128
|
+
}) => ReactNode;
|
|
129
|
+
/** Covered rect view; use rect bounds for absolute position, rect.z for stacking, and pointerEvents="none" for row hit testing. */
|
|
130
|
+
intervalZone?: (input: IntervalInput) => ReactNode;
|
|
131
|
+
/** Removed rect content; LaneRow supplies the invisible pressable. */
|
|
132
|
+
gapZone?: (input: GapInput) => ReactNode;
|
|
133
|
+
/** Tick lines behind the lanes; RosterGrid draws one hairline per tick. */
|
|
134
|
+
gridZone?: (input: GridInput) => ReactNode;
|
|
135
|
+
/** Empty roster content, conventionally the text No lanes. */
|
|
136
|
+
emptyZone?: () => ReactNode;
|
|
137
|
+
/** Top-left cell above the lane labels; RosterCorner renders nothing. */
|
|
138
|
+
cornerZone?: () => ReactNode;
|
|
139
|
+
/** Frozen time header, supplied with ticks, scale, and shared scrolling. */
|
|
140
|
+
headerZone?: (input: HeaderInput) => ReactNode;
|
|
141
|
+
/** Frozen labels, supplied with ordered lanes and per-lane flag and completeness. */
|
|
142
|
+
laneLabelColumnZone?: (input: LabelColumnInput) => ReactNode;
|
|
143
|
+
/** Virtualized lane body, supplied with geometry, projection, scrolling, and press resolution. */
|
|
144
|
+
bodyZone?: (input: BodyInput) => ReactNode;
|
|
145
|
+
};
|
|
146
|
+
//# sourceMappingURL=roster.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roster.types.d.ts","sourceRoot":"","sources":["../../../../src/components/roster/roster.types.ts"],"names":[],"mappings":"AAAA,O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2EAA2E;IAC3E,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,SAAS,CAAC;IACrD,oDAAoD;IACpD,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,KAAK,SAAS,CAAC;IAC5D,mIAAmI;IACnI,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,SAAS,CAAC;IACnD,sEAAsE;IACtE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,SAAS,CAAC;IACzC,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,SAAS,CAAC;IAC3C,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,SAAS,CAAC;IAC5B,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,SAAS,CAAC;IAC7B,4EAA4E;IAC5E,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,SAAS,CAAC;IAC/C,qFAAqF;IACrF,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,SAAS,CAAC;IAC7D,kGAAkG;IAClG,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,SAAS,CAAC;CAC5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roster.types.js","sourceRoot":"","sources":["../../../../src/components/roster/roster.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-roster.d.ts","sourceRoot":"","sources":["../../../../src/components/roster/use-roster.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAoB,MAAM,gBAAgB,CAAC;AAGjF,wBAAgB,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,WAAW,CAmHzD"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useRoster = useRoster;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const react_native_reanimated_1 = require("react-native-reanimated");
|
|
6
|
+
const core_1 = require("../../core");
|
|
7
|
+
const hit_test_1 = require("../../core/hit-test");
|
|
8
|
+
const ticks_1 = require("./utils/ticks");
|
|
9
|
+
function useRoster(input) {
|
|
10
|
+
const { lanes, windowSpec, minuteStep = 60, sortLanes = core_1.byLabel, rowHeight = 48, pxPerMinute = 0.5, onNavigate, } = input;
|
|
11
|
+
const [viewport, setViewport] = (0, react_1.useState)({ width: 0, height: 0 });
|
|
12
|
+
// The pinned compiler lint cannot resolve useSharedValue's built-in type.
|
|
13
|
+
// These shared values only track offsets, so no animation needs cancellation.
|
|
14
|
+
const [x] = (0, react_1.useState)(() => (0, react_native_reanimated_1.makeMutable)(0));
|
|
15
|
+
const [y] = (0, react_1.useState)(() => (0, react_native_reanimated_1.makeMutable)(0));
|
|
16
|
+
const bodyRef = (0, react_1.useRef)(null);
|
|
17
|
+
const headerStyle = (0, react_native_reanimated_1.useAnimatedStyle)(() => ({ transform: [{ translateX: -x.get() }] }));
|
|
18
|
+
const labelStyle = (0, react_native_reanimated_1.useAnimatedStyle)(() => ({ transform: [{ translateY: -y.get() }] }));
|
|
19
|
+
const window = (0, core_1.windowFor)(windowSpec);
|
|
20
|
+
if (!(rowHeight > 0) ||
|
|
21
|
+
!Number.isFinite(rowHeight) ||
|
|
22
|
+
!(pxPerMinute > 0) ||
|
|
23
|
+
!Number.isFinite(pxPerMinute))
|
|
24
|
+
throw new RangeError('rowHeight and pxPerMinute must be positive finite numbers');
|
|
25
|
+
const duration = (window.end - window.start) / 60_000;
|
|
26
|
+
const projection = {
|
|
27
|
+
orientation: 'horizontal',
|
|
28
|
+
viewTimezone: windowSpec.timezone,
|
|
29
|
+
rowHeight,
|
|
30
|
+
pxPerMinute: Math.max(pxPerMinute, duration === 0 ? 0 : viewport.width / duration),
|
|
31
|
+
};
|
|
32
|
+
const contentWidth = duration * projection.pxPerMinute;
|
|
33
|
+
const coverage = new Map(lanes.map((lane) => [lane.id, (0, core_1.coverageFor)(lane, window)]));
|
|
34
|
+
const orderedLanes = [...lanes].sort((a, b) => sortLanes(a, b, coverage));
|
|
35
|
+
const laneState = new Map(lanes.map((lane) => [
|
|
36
|
+
lane.id,
|
|
37
|
+
{ flag: (0, core_1.flagFor)(lane, window), complete: lane.complete ?? true },
|
|
38
|
+
]));
|
|
39
|
+
function geometryFor(lane) {
|
|
40
|
+
return (0, core_1.layoutLane)(lane, window, projection);
|
|
41
|
+
}
|
|
42
|
+
const currentPress = { input, window, projection, width: contentWidth };
|
|
43
|
+
const pressInput = (0, react_1.useRef)(currentPress);
|
|
44
|
+
pressInput.current = currentPress;
|
|
45
|
+
const [press] = (0, react_1.useState)(() => {
|
|
46
|
+
return function press(lane, pointX, pointY) {
|
|
47
|
+
const { input, window, projection, width } = pressInput.current;
|
|
48
|
+
const { minuteStep = 60, onIntervalPress, onGapPress, onCellPress } = input;
|
|
49
|
+
const { rowHeight, viewTimezone } = projection;
|
|
50
|
+
if (!Number.isFinite(pointX) ||
|
|
51
|
+
!Number.isFinite(pointY) ||
|
|
52
|
+
pointX < 0 ||
|
|
53
|
+
pointX >= width ||
|
|
54
|
+
pointY < 0 ||
|
|
55
|
+
pointY >= rowHeight)
|
|
56
|
+
return;
|
|
57
|
+
const hit = (0, hit_test_1.hitTest)(lane, (0, core_1.layoutLane)(lane, window, projection), pointX, pointY);
|
|
58
|
+
if (hit?.kind === 'interval') {
|
|
59
|
+
onIntervalPress?.(hit.rect, lane);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (hit?.kind === 'gap') {
|
|
63
|
+
onGapPress?.(hit.rect, lane);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
const time = Math.max(window.start, (0, core_1.snapToStep)((0, core_1.timeAtX)(projection, window, pointX), minuteStep, viewTimezone));
|
|
67
|
+
if (time < window.end)
|
|
68
|
+
onCellPress?.(lane, time);
|
|
69
|
+
};
|
|
70
|
+
});
|
|
71
|
+
return {
|
|
72
|
+
window,
|
|
73
|
+
projection,
|
|
74
|
+
orderedLanes,
|
|
75
|
+
coverage,
|
|
76
|
+
laneState,
|
|
77
|
+
geometryFor,
|
|
78
|
+
press,
|
|
79
|
+
status: lanes.length === 0 ? 'empty' : 'ready',
|
|
80
|
+
ticks: (0, ticks_1.ticksFor)(window, windowSpec, projection, minuteStep),
|
|
81
|
+
contentWidth,
|
|
82
|
+
viewport,
|
|
83
|
+
navigate: (next) => onNavigate?.(next),
|
|
84
|
+
onLayout: ({ nativeEvent: { layout } }) => setViewport((previous) => previous.width === layout.width && previous.height === layout.height
|
|
85
|
+
? previous
|
|
86
|
+
: { width: layout.width, height: layout.height }),
|
|
87
|
+
scroll: {
|
|
88
|
+
x,
|
|
89
|
+
y,
|
|
90
|
+
bodyRef,
|
|
91
|
+
headerStyle,
|
|
92
|
+
labelStyle,
|
|
93
|
+
onBodyScroll: ({ nativeEvent }) => {
|
|
94
|
+
x.set(nativeEvent.contentOffset.x);
|
|
95
|
+
},
|
|
96
|
+
onHeaderScroll: ({ nativeEvent }) => {
|
|
97
|
+
x.set(nativeEvent.contentOffset.x);
|
|
98
|
+
bodyRef.current?.scrollTo({ x: nativeEvent.contentOffset.x, animated: false });
|
|
99
|
+
},
|
|
100
|
+
onVerticalScroll: ({ nativeEvent }) => {
|
|
101
|
+
y.set(nativeEvent.contentOffset.y);
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=use-roster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-roster.js","sourceRoot":"","sources":["../../../../src/components/roster/use-roster.ts"],"names":[],"mappings":";;;AAAA,iCAAyC;AAEzC,qEAAwE;AAExE,qCAQoB;AACpB,kDAA8C;AAE9C,yCAAyC;AAEzC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a,CAAC,CAAC,CAAC,CAAC;YACrC,CAAC;YACD,cAAc,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE;gBAClC,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;gBACnC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;YACjF,CAAC;YACD,gBAAgB,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE;gBACpC,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;YACrC,CAAC;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { BodyInput } from '../roster.types';
|
|
2
|
+
export declare function bodyContentKey({ window, projection, highlightSource, intervalZone, gapZone, onIntervalHover, incompleteLabel, }: Pick<BodyInput, 'window' | 'projection' | 'highlightSource' | 'intervalZone' | 'gapZone' | 'onIntervalHover' | 'incompleteLabel'>): string;
|
|
3
|
+
//# sourceMappingURL=body-content-key.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body-content-key.d.ts","sourceRoot":"","sources":["../../../../../src/components/roster/utils/body-content-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAcjD,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,UAAU,EACV,eAAe,EACf,YAAY,EACZ,OAAO,EACP,eAAe,EACf,eAAe,GAChB,EAAE,IAAI,CACL,SAAS,EACP,QAAQ,GACR,YAAY,GACZ,iBAAiB,GACjB,cAAc,GACd,SAAS,GACT,iBAAiB,GACjB,iBAAiB,CACpB,GAAG,MAAM,CAcT"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bodyContentKey = bodyContentKey;
|
|
4
|
+
const zoneIds = new WeakMap();
|
|
5
|
+
let nextZoneId = 0;
|
|
6
|
+
function zoneId(zone) {
|
|
7
|
+
let id = zoneIds.get(zone);
|
|
8
|
+
if (id === undefined) {
|
|
9
|
+
id = nextZoneId++;
|
|
10
|
+
zoneIds.set(zone, id);
|
|
11
|
+
}
|
|
12
|
+
return id;
|
|
13
|
+
}
|
|
14
|
+
function bodyContentKey({ window, projection, highlightSource, intervalZone, gapZone, onIntervalHover, incompleteLabel, }) {
|
|
15
|
+
return JSON.stringify([
|
|
16
|
+
window.start,
|
|
17
|
+
window.end,
|
|
18
|
+
projection.viewTimezone,
|
|
19
|
+
projection.rowHeight,
|
|
20
|
+
projection.pxPerMinute,
|
|
21
|
+
highlightSource?.kind,
|
|
22
|
+
highlightSource?.id,
|
|
23
|
+
zoneId(intervalZone),
|
|
24
|
+
zoneId(gapZone),
|
|
25
|
+
onIntervalHover && zoneId(onIntervalHover),
|
|
26
|
+
incompleteLabel,
|
|
27
|
+
]);
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=body-content-key.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body-content-key.js","sourceRoot":"","sources":["../../../../../src/components/roster/utils/body-content-key.ts"],"names":[],"mappings":";;;AAEA,MAAM,OAAO,GAAG,IAAI,OAAO,EAAkB,CAAC;AAC9C,IAAI,UAAU,GAAG,CAAC,CAAC;AAEnB,SAAS,MAAM,CAAC,IAAY;IAC1B,IAAI,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC3B,IAAI,EAAE,KAAK,SAAS,EAAE,CAAC;QACrB,EAAE,GAAG,UAAU,EAAE,CAAC;QAClB,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACxB,CAAC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,wBAA+B,EAC7B,MAAM,EACN,UAAU,EACV,eAAe,EACf,YAAY,EACZ,OAAO,EACP,eAAe,EACf,eAAe,GAUhB;IACC,OAAO,IAAI,CAAC,SAAS,CAAC;QACpB,MAAM,CAAC,KAAK;QACZ,MAAM,CAAC,GAAG;QACV,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,WAAW;QACtB,eAAe,EAAE,IAAI;QACrB,eAAe,EAAE,EAAE;QACnB,MAAM,CAAC,YAAY,CAAC;QACpB,MAAM,CAAC,OAAO,CAAC;QACf,eAAe,IAAI,MAAM,CAAC,eAAe,CAAC;QAC1C,eAAe;KAChB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Window, WindowSpec } from '../../../core';
|
|
2
|
+
import type { RosterProjection, RosterTick } from '../roster.types';
|
|
3
|
+
export declare function ticksFor(window: Window, spec: WindowSpec, projection: RosterProjection, minuteStep: number): RosterTick[];
|
|
4
|
+
//# sourceMappingURL=ticks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ticks.d.ts","sourceRoot":"","sources":["../../../../../src/components/roster/utils/ticks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAKpE,wBAAgB,QAAQ,CACtB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,EAChB,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,MAAM,GACjB,UAAU,EAAE,CAgDd"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ticksFor = ticksFor;
|
|
4
|
+
const core_1 = require("../../../core");
|
|
5
|
+
const zone_1 = require("../../../core/zone");
|
|
6
|
+
// Like day columns, ticks retain visited content keys for this runtime.
|
|
7
|
+
const tickCache = new Map();
|
|
8
|
+
function ticksFor(window, spec, projection, minuteStep) {
|
|
9
|
+
if (!Number.isInteger(minuteStep) || minuteStep <= 0 || 60 % minuteStep !== 0)
|
|
10
|
+
throw new RangeError('minuteStep must be a positive divisor of 60');
|
|
11
|
+
const key = JSON.stringify([
|
|
12
|
+
window.start,
|
|
13
|
+
window.end,
|
|
14
|
+
spec.timezone,
|
|
15
|
+
spec.span,
|
|
16
|
+
minuteStep,
|
|
17
|
+
projection.pxPerMinute,
|
|
18
|
+
]);
|
|
19
|
+
const cached = tickCache.get(key);
|
|
20
|
+
if (cached)
|
|
21
|
+
return cached;
|
|
22
|
+
const ticks = [];
|
|
23
|
+
const step = minuteStep * 60_000;
|
|
24
|
+
function add(time, label, kind) {
|
|
25
|
+
ticks.push({ time, x: ((time - window.start) / 60_000) * projection.pxPerMinute, label, kind });
|
|
26
|
+
}
|
|
27
|
+
const timeLabel = new Intl.DateTimeFormat('en-US', {
|
|
28
|
+
timeZone: spec.timezone,
|
|
29
|
+
hour: '2-digit',
|
|
30
|
+
minute: '2-digit',
|
|
31
|
+
hourCycle: 'h23',
|
|
32
|
+
});
|
|
33
|
+
for (const day of (0, core_1.dayColumnsFor)(window, spec.timezone)) {
|
|
34
|
+
const start = Math.max(day.start, window.start);
|
|
35
|
+
add(start, `${day.label} ${day.localDate}`, 'day');
|
|
36
|
+
if (spec.span === 'month' || (spec.span === 'week' && minuteStep * projection.pxPerMinute < 40))
|
|
37
|
+
continue;
|
|
38
|
+
// Each transition starts a new constant-offset segment. Positive deltas skip
|
|
39
|
+
// wall minutes; negative deltas emit both absolute occurrences of a repeat.
|
|
40
|
+
let segmentStart = day.start;
|
|
41
|
+
// UTC wall coordinates retain the actual start minute even after a midnight skip.
|
|
42
|
+
let offset = (0, zone_1.offsetAt)(day.start, spec.timezone);
|
|
43
|
+
for (const boundary of [...day.transitions, { at: day.end, deltaMinutes: 0 }]) {
|
|
44
|
+
const wall = Math.max(start, segmentStart) + offset;
|
|
45
|
+
const end = Math.min(boundary.at, window.end);
|
|
46
|
+
for (let time = Math.ceil(wall / step) * step - offset; time < end; time += step) {
|
|
47
|
+
if (time === start)
|
|
48
|
+
continue;
|
|
49
|
+
add(time, timeLabel.format(time), 'time');
|
|
50
|
+
}
|
|
51
|
+
segmentStart = boundary.at;
|
|
52
|
+
// The origin already includes the part of a boundary skip after midnight.
|
|
53
|
+
if (boundary.at > day.start)
|
|
54
|
+
offset += boundary.deltaMinutes * 60_000;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
tickCache.set(key, ticks);
|
|
58
|
+
return ticks;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=ticks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ticks.js","sourceRoot":"","sources":["../../../../../src/components/roster/utils/ticks.ts"],"names":[],"mappings":";;;AACA,wCAA8C;AAC9C,6CAA8C;AAG9C,wEAAwE;AACxE,MAAM,SAAS,GAAG,IAAI,GAAG,EAAwB,CAAC;AAElD,kBACE,MAAc,EACd,IAAgB,EAChB,UAA4B,EAC5B,UAAkB;IAElB,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,UAAU,IAAI,CAAC,IAAI,EAAE,GAAG,UAAU,KAAK,CAAC;QAC3E,MAAM,IAAI,UAAU,CAAC,6CAA6C,CAAC,CAAC;IACtE,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC;QACzB,MAAM,CAAC,KAAK;QACZ,MAAM,CAAC,GAAG;QACV,IAAI,CAAC,QAAQ;QACb,IAAI,CAAC,IAAI;QACT,UAAU;QACV,UAAU,CAAC,WAAW;KACvB,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAClC,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC;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AG,GAAG,CAAC,WAAW,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;YAC9E,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,YAAY,CAAC,GAAG,MAAM,CAAC;YACpD,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;YAC9C,KAAK,IAAI,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,IAAI,GAAG,MAAM,EAAE,IAAI,GAAG,GAAG,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;gBACjF,IAAI,IAAI,KAAK,KAAK;oBAAE,SAAS;gBAC7B,GAAG,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC;YAC5C,CAAC;YACD,YAAY,GAAG,QAAQ,CAAC,EAAE,CAAC;YAC3B,0EAA0E;YAC1E,IAAI,QAAQ,CAAC,EAAE,GAAG,GAAG,CAAC,KAAK;gBAAE,MAAM,IAAI,QAAQ,CAAC,YAAY,GAAG,MAAM,CAAC;QACxE,CAAC;IACH,CAAC;IACD,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAC1B,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { DayColumn, Lane, LaneGeometry } from '../../../core';
|
|
3
|
+
import type { ScheduleModel, ScheduleProps } from '../schedule.types';
|
|
4
|
+
type ScheduleDayZones = Required<Pick<ScheduleProps, 'gridZone' | 'columnZone' | 'transitionZone' | 'intervalZone' | 'gapZone'>>;
|
|
5
|
+
type ScheduleDayProps = ScheduleDayZones & {
|
|
6
|
+
day: DayColumn;
|
|
7
|
+
column: number;
|
|
8
|
+
lane: Lane;
|
|
9
|
+
projection: ScheduleModel['projection'];
|
|
10
|
+
geometry: LaneGeometry;
|
|
11
|
+
highlightSource: ScheduleProps['highlightSource'];
|
|
12
|
+
hours: number[];
|
|
13
|
+
press: (x: number, y: number) => void;
|
|
14
|
+
/** The current-time line when it falls on this day; otherwise nothing. */
|
|
15
|
+
nowLineZone: ReactNode;
|
|
16
|
+
};
|
|
17
|
+
/** One day column: grid, rects, transitions, and the now line at engine bounds. */
|
|
18
|
+
export declare function ScheduleDay({ day, column, lane, projection, geometry, highlightSource, hours, press, gridZone, columnZone, transitionZone, intervalZone, gapZone, nowLineZone, }: ScheduleDayProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=day.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"day.d.ts","sourceRoot":"","sources":["../../../../../src/components/schedule/days/day.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEnE,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAItE,KAAK,gBAAgB,GAAG,QAAQ,CAC9B,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,YAAY,GAAG,gBAAgB,GAAG,cAAc,GAAG,SAAS,CAAC,CAC/F,CAAC;AAEF,KAAK,gBAAgB,GAAG,gBAAgB,GAAG;IACzC,GAAG,EAAE,SAAS,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACxC,QAAQ,EAAE,YAAY,CAAC;IACvB,eAAe,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAClD,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,0EAA0E;IAC1E,WAAW,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF,mFAAmF;AACnF,wBAAgB,WAAW,CAAC,EAC1B,GAAG,EACH,MAAM,EACN,IAAI,EACJ,UAAU,EACV,QAAQ,EACR,eAAe,EACf,KAAK,EACL,KAAK,EACL,QAAQ,EACR,UAAU,EACV,cAAc,EACd,YAAY,EACZ,OAAO,EACP,WAAW,GACZ,EAAE,gBAAgB,2CAkClB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScheduleDay = ScheduleDay;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const react_native_1 = require("react-native");
|
|
7
|
+
const press_point_1 = require("../../primitives/press-point");
|
|
8
|
+
const days_1 = require("../utils/days");
|
|
9
|
+
const layout_1 = require("./layout");
|
|
10
|
+
/** One day column: grid, rects, transitions, and the now line at engine bounds. */
|
|
11
|
+
function ScheduleDay({ day, column, lane, projection, geometry, highlightSource, hours, press, gridZone, columnZone, transitionZone, intervalZone, gapZone, nowLineZone, }) {
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)(react_native_1.Pressable, { testID: `schedule-day-${day.localDate}`, accessibilityLabel: day.localDate, onPress: (input) => {
|
|
13
|
+
const point = (0, press_point_1.pressPoint)(input);
|
|
14
|
+
press(point.x, point.y);
|
|
15
|
+
}, children: (0, jsx_runtime_1.jsx)(layout_1.ScheduleDayLayout, { width: projection.columnWidth, height: 24 * projection.pxPerHour, chromeZ: Math.max(0, ...lane.layers.map((layer) => layer.z)) + 1, gridZone: gridZone({ hours, pxPerHour: projection.pxPerHour }), columnZone: columnZone({
|
|
16
|
+
day,
|
|
17
|
+
lane,
|
|
18
|
+
rects: geometry.rects.filter((rect) => rect.column === column),
|
|
19
|
+
gapRects: geometry.gapRects.filter((rect) => rect.column === column),
|
|
20
|
+
highlightSource,
|
|
21
|
+
intervalZone,
|
|
22
|
+
gapZone,
|
|
23
|
+
press,
|
|
24
|
+
}), transitionZone: day.transitions.map((transition) => ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children: transitionZone({ day, transition, ...(0, days_1.transitionBounds)(day, transition, projection) }) }, transition.at))), nowLineZone: nowLineZone }) }));
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=day.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"day.js","sourceRoot":"","sources":["../../../../../src/components/schedule/days/day.tsx"],"names":[],"mappings":";;;;AAAA,iCAAiD;AACjD,+CAAyC;AAEzC,8DAA0D;AAE1D,wCAAiD;AACjD,qCAA6C;AAmB7C,mFAAmF;AACnF,qBAA4B,EAC1B,GAAG,EACH,MAAM,EACN,IAAI,EACJ,UAAU,EACV,QAAQ,EACR,eAAe,EACf,KAAK,EACL,KAAK,EACL,QAAQ,EACR,UAAU,EACV,cAAc,EACd,YAAY,EACZ,OAAO,EACP,WAAW,GACM;IACjB,OAAO,CACL,uBAAC,wBAAS,IACR,MAAM,EAAE,gBAAgB,GAAG,CAAC,SAAS,EAAE,EACvC,kBAAkB,EAAE,GAAG,CAAC,SAAS,EACjC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YACjB,MAAM,KAAK,GAAG,IAAA,wBAAU,EAAC,KAAK,CAAC,CAAC;YAChC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1B,CAAC,YAED,uBAAC,0BAAiB,IAChB,KAAK,EAAE,UAAU,CAAC,WAAW,EAC7B,MAAM,EAAE,EAAE,GAAG,UAAU,CAAC,SAAS,EACjC,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAChE,QAAQ,EAAE,QAAQ,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,CAAC,EAC9D,UAAU,EAAE,UAAU,CAAC;gBACrB,GAAG;gBACH,IAAI;gBACJ,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,MAAM,CAAC;gBAC9D,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,MAAM,CAAC;gBACpE,eAAe;gBACf,YAAY;gBACZ,OAAO;gBACP,KAAK;aACN,CAAC,EACF,cAAc,EAAE,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAClD,uBAAC,gBAAQ,cACN,cAAc,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,IAAA,uBAAgB,EAAC,GAAG,EAAE,UAAU,EAAE,UAAU,CAAC,EAAE,CAAC,IADzE,UAAU,CAAC,EAAE,CAEjB,CACZ,CAAC,EACF,WAAW,EAAE,WAAW,GACxB,GACQ,CACb,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type ScheduleDayHeaderLayoutProps = {
|
|
3
|
+
width: number;
|
|
4
|
+
/** Day heading supplied by dayHeaderZone, aligned with its column. */
|
|
5
|
+
headerZone: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare function ScheduleDayHeaderLayout({ width, headerZone }: ScheduleDayHeaderLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=header-layout.d.ts.map
|