react-native-roster 0.0.1 → 0.1.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 +108 -31
- package/dist/src/components/roster/body-layout.d.ts +9 -0
- package/dist/src/components/roster/body-layout.d.ts.map +1 -0
- package/dist/src/components/roster/body-layout.js +9 -0
- package/dist/src/components/roster/body-layout.js.map +1 -0
- package/dist/src/components/roster/index.d.ts +1 -1
- package/dist/src/components/roster/index.d.ts.map +1 -1
- package/dist/src/components/roster/index.js +10 -26
- package/dist/src/components/roster/index.js.map +1 -1
- package/dist/src/components/roster/lanes/lane.d.ts +2 -2
- package/dist/src/components/roster/lanes/lane.d.ts.map +1 -1
- package/dist/src/components/roster/lanes/lane.js +3 -8
- package/dist/src/components/roster/lanes/lane.js.map +1 -1
- package/dist/src/components/roster/parts/body.d.ts +3 -3
- package/dist/src/components/roster/parts/body.d.ts.map +1 -1
- package/dist/src/components/roster/parts/body.js +5 -20
- package/dist/src/components/roster/parts/body.js.map +1 -1
- package/dist/src/components/roster/parts/header-cell.d.ts +2 -4
- package/dist/src/components/roster/parts/header-cell.d.ts.map +1 -1
- package/dist/src/components/roster/parts/header-cell.js.map +1 -1
- package/dist/src/components/roster/parts/header.d.ts +1 -1
- package/dist/src/components/roster/parts/header.d.ts.map +1 -1
- package/dist/src/components/roster/parts/header.js +2 -2
- package/dist/src/components/roster/parts/header.js.map +1 -1
- package/dist/src/components/roster/parts/lane-label-column.d.ts +1 -1
- package/dist/src/components/roster/parts/lane-label-column.d.ts.map +1 -1
- package/dist/src/components/roster/parts/lane-label-column.js +2 -2
- package/dist/src/components/roster/parts/lane-label-column.js.map +1 -1
- package/dist/src/components/roster/parts/lane-list.d.ts +7 -0
- package/dist/src/components/roster/parts/lane-list.d.ts.map +1 -0
- package/dist/src/components/roster/parts/lane-list.js +25 -0
- package/dist/src/components/roster/parts/lane-list.js.map +1 -0
- package/dist/src/components/roster/roster.types.d.ts +19 -20
- package/dist/src/components/roster/roster.types.d.ts.map +1 -1
- package/dist/src/components/roster/utils/body-content-key.d.ts +1 -1
- package/dist/src/components/roster/utils/body-content-key.d.ts.map +1 -1
- package/dist/src/components/roster/utils/body-content-key.js +10 -10
- package/dist/src/components/roster/utils/body-content-key.js.map +1 -1
- package/dist/src/components/schedule/days/day.d.ts +2 -2
- package/dist/src/components/schedule/days/day.d.ts.map +1 -1
- package/dist/src/components/schedule/days/day.js +2 -11
- package/dist/src/components/schedule/days/day.js.map +1 -1
- package/dist/src/components/schedule/days/header-layout.d.ts +1 -1
- package/dist/src/components/schedule/days/header-layout.d.ts.map +1 -1
- package/dist/src/components/schedule/days/parts/column.d.ts +1 -1
- package/dist/src/components/schedule/days/parts/column.d.ts.map +1 -1
- package/dist/src/components/schedule/days/parts/column.js +3 -8
- package/dist/src/components/schedule/days/parts/column.js.map +1 -1
- package/dist/src/components/schedule/index.d.ts.map +1 -1
- package/dist/src/components/schedule/index.js +7 -8
- package/dist/src/components/schedule/index.js.map +1 -1
- package/dist/src/components/schedule/schedule.types.d.ts +17 -17
- package/dist/src/components/schedule/schedule.types.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +5 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/nativewind/index.d.ts +24 -26
- package/dist/src/nativewind/index.d.ts.map +1 -1
- package/docs/migrations.md +61 -0
- package/llms.txt +46 -29
- package/package.json +3 -2
- package/src/components/layers/README.md +7 -3
- package/src/components/roster/README.md +15 -4
- package/src/components/roster/body-layout.tsx +32 -0
- package/src/components/roster/index.tsx +63 -45
- package/src/components/roster/lanes/lane.tsx +16 -11
- package/src/components/roster/parts/body.tsx +17 -84
- package/src/components/roster/parts/header-cell.tsx +2 -2
- package/src/components/roster/parts/header.tsx +7 -2
- package/src/components/roster/parts/lane-label-column.tsx +2 -2
- package/src/components/roster/parts/lane-list.tsx +74 -0
- package/src/components/roster/roster.types.ts +17 -16
- package/src/components/roster/utils/body-content-key.ts +13 -13
- package/src/components/schedule/README.md +8 -3
- package/src/components/schedule/days/day.tsx +31 -18
- package/src/components/schedule/days/header-layout.tsx +1 -1
- package/src/components/schedule/days/parts/column.tsx +10 -10
- package/src/components/schedule/index.tsx +20 -21
- package/src/components/schedule/schedule.types.ts +13 -13
- package/src/index.ts +3 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactNode, RefObject } from 'react';
|
|
1
|
+
import type { ComponentType, ReactNode, RefObject } from 'react';
|
|
2
2
|
import type { LayoutChangeEvent, NativeScrollEvent, NativeSyntheticEvent, ScrollView, StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import type { SharedValue } from 'react-native-reanimated';
|
|
4
4
|
import type { Coverage, Lane, LaneComparator, LaneFlag, LaneGeometry, Projection, Rect, Source, Window, WindowSpec } from '../../core';
|
|
@@ -69,20 +69,21 @@ export type LaneLabelInput = {
|
|
|
69
69
|
incompleteLabel: string;
|
|
70
70
|
neverSetLabel: string;
|
|
71
71
|
};
|
|
72
|
+
export type HeaderCellInput = {
|
|
73
|
+
tick: RosterTick;
|
|
74
|
+
};
|
|
72
75
|
export type GridInput = {
|
|
73
76
|
ticks: RosterTick[];
|
|
74
77
|
contentWidth: number;
|
|
75
78
|
};
|
|
76
79
|
export type HeaderInput = Pick<RosterModel, 'ticks' | 'projection' | 'scroll' | 'contentWidth'> & {
|
|
77
80
|
/** Time label filler, positioned by the header. */
|
|
78
|
-
|
|
79
|
-
tick: RosterTick;
|
|
80
|
-
}) => ReactNode;
|
|
81
|
+
headerCellComponent: ComponentType<HeaderCellInput>;
|
|
81
82
|
};
|
|
82
83
|
export type LabelColumnInput = Pick<RosterModel, 'projection' | 'scroll'> & {
|
|
83
84
|
labels: LaneLabelInput[];
|
|
84
85
|
/** Lane label filler, positioned at the fixed row height. */
|
|
85
|
-
|
|
86
|
+
laneLabelComponent: ComponentType<LaneLabelInput>;
|
|
86
87
|
};
|
|
87
88
|
export type BodyInput = Pick<RosterModel, 'geometryFor' | 'projection' | 'scroll' | 'press' | 'ticks' | 'contentWidth' | 'viewport' | 'window'> & {
|
|
88
89
|
lanes: Lane[];
|
|
@@ -90,11 +91,11 @@ export type BodyInput = Pick<RosterModel, 'geometryFor' | 'projection' | 'scroll
|
|
|
90
91
|
onIntervalHover?: (rect: Rect, lane: Lane) => void;
|
|
91
92
|
incompleteLabel?: string;
|
|
92
93
|
/** Covered rect view; position it using the final rect bounds, as RosterInterval does. */
|
|
93
|
-
|
|
94
|
+
intervalComponent: ComponentType<IntervalInput>;
|
|
94
95
|
/** Removed rect filler, placed inside a pressable by LaneRow. */
|
|
95
|
-
|
|
96
|
+
gapComponent: ComponentType<GapInput>;
|
|
96
97
|
/** Noninteractive tick lines behind every lane, sized to the content width. */
|
|
97
|
-
|
|
98
|
+
gridComponent: ComponentType<GridInput>;
|
|
98
99
|
};
|
|
99
100
|
/**
|
|
100
101
|
* Chrome style props and their NativeWind class twins. Class props resolve only
|
|
@@ -121,26 +122,24 @@ export type RosterProps = RosterInput & RosterStyleProps & {
|
|
|
121
122
|
incompleteLabel?: string;
|
|
122
123
|
neverSetLabel?: string;
|
|
123
124
|
/** Label, differing lane zone, effective flag, and completeness notice. */
|
|
124
|
-
|
|
125
|
+
laneLabelComponent?: ComponentType<LaneLabelInput>;
|
|
125
126
|
/** Time label within one positioned header tick. */
|
|
126
|
-
|
|
127
|
-
tick: RosterTick;
|
|
128
|
-
}) => ReactNode;
|
|
127
|
+
headerCellComponent?: ComponentType<HeaderCellInput>;
|
|
129
128
|
/** Covered rect view; use rect bounds for absolute position, rect.z for stacking, and pointerEvents="none" for row hit testing. */
|
|
130
|
-
|
|
129
|
+
intervalComponent?: ComponentType<IntervalInput>;
|
|
131
130
|
/** Removed rect content; LaneRow supplies the invisible pressable. */
|
|
132
|
-
|
|
131
|
+
gapComponent?: ComponentType<GapInput>;
|
|
133
132
|
/** Tick lines behind the lanes; RosterGrid draws one hairline per tick. */
|
|
134
|
-
|
|
133
|
+
gridComponent?: ComponentType<GridInput>;
|
|
135
134
|
/** Empty roster content, conventionally the text No lanes. */
|
|
136
|
-
emptyZone?:
|
|
135
|
+
emptyZone?: ReactNode;
|
|
137
136
|
/** Top-left cell above the lane labels; RosterCorner renders nothing. */
|
|
138
|
-
cornerZone?:
|
|
137
|
+
cornerZone?: ReactNode;
|
|
139
138
|
/** Frozen time header, supplied with ticks, scale, and shared scrolling. */
|
|
140
|
-
|
|
139
|
+
headerComponent?: ComponentType<HeaderInput>;
|
|
141
140
|
/** Frozen labels, supplied with ordered lanes and per-lane flag and completeness. */
|
|
142
|
-
|
|
141
|
+
laneLabelColumnComponent?: ComponentType<LabelColumnInput>;
|
|
143
142
|
/** Virtualized lane body, supplied with geometry, projection, scrolling, and press resolution. */
|
|
144
|
-
|
|
143
|
+
bodyComponent?: ComponentType<BodyInput>;
|
|
145
144
|
};
|
|
146
145
|
//# sourceMappingURL=roster.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roster.types.d.ts","sourceRoot":"","sources":["../../../../src/components/roster/roster.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"roster.types.d.ts","sourceRoot":"","sources":["../../../../src/components/roster/roster.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,UAAU,EACV,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EACV,QAAQ,EACR,IAAI,EACJ,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,IAAI,EACJ,MAAM,EACN,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AC9D,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,yEAAyE;IACzE,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,4EAA4E;IAC5E,eAAe,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IAC7C,qFAAqF;IACrF,wBAAwB,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAC3D,kGAAkG;IAClG,aAAa,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;CAC1C,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { BodyInput } from '../roster.types';
|
|
2
|
-
export declare function bodyContentKey({ window, projection, highlightSource,
|
|
2
|
+
export declare function bodyContentKey({ window, projection, highlightSource, intervalComponent, gapComponent, onIntervalHover, incompleteLabel, }: Pick<BodyInput, 'window' | 'projection' | 'highlightSource' | 'intervalComponent' | 'gapComponent' | 'onIntervalHover' | 'incompleteLabel'>): string;
|
|
3
3
|
//# sourceMappingURL=body-content-key.d.ts.map
|
|
@@ -1 +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,
|
|
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,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,eAAe,GAChB,EAAE,IAAI,CACL,SAAS,EACP,QAAQ,GACR,YAAY,GACZ,iBAAiB,GACjB,mBAAmB,GACnB,cAAc,GACd,iBAAiB,GACjB,iBAAiB,CACpB,GAAG,MAAM,CAcT"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.bodyContentKey = bodyContentKey;
|
|
4
|
-
const
|
|
5
|
-
let
|
|
6
|
-
function
|
|
7
|
-
let id =
|
|
4
|
+
const identityIds = new WeakMap();
|
|
5
|
+
let nextIdentityId = 0;
|
|
6
|
+
function identityId(identity) {
|
|
7
|
+
let id = identityIds.get(identity);
|
|
8
8
|
if (id === undefined) {
|
|
9
|
-
id =
|
|
10
|
-
|
|
9
|
+
id = nextIdentityId++;
|
|
10
|
+
identityIds.set(identity, id);
|
|
11
11
|
}
|
|
12
12
|
return id;
|
|
13
13
|
}
|
|
14
|
-
function bodyContentKey({ window, projection, highlightSource,
|
|
14
|
+
function bodyContentKey({ window, projection, highlightSource, intervalComponent, gapComponent, onIntervalHover, incompleteLabel, }) {
|
|
15
15
|
return JSON.stringify([
|
|
16
16
|
window.start,
|
|
17
17
|
window.end,
|
|
@@ -20,9 +20,9 @@ function bodyContentKey({ window, projection, highlightSource, intervalZone, gap
|
|
|
20
20
|
projection.pxPerMinute,
|
|
21
21
|
highlightSource?.kind,
|
|
22
22
|
highlightSource?.id,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
onIntervalHover &&
|
|
23
|
+
identityId(intervalComponent),
|
|
24
|
+
identityId(gapComponent),
|
|
25
|
+
onIntervalHover && identityId(onIntervalHover),
|
|
26
26
|
incompleteLabel,
|
|
27
27
|
]);
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"body-content-key.js","sourceRoot":"","sources":["../../../../../src/components/roster/utils/body-content-key.ts"],"names":[],"mappings":";;;AAEA,MAAM,
|
|
1
|
+
{"version":3,"file":"body-content-key.js","sourceRoot":"","sources":["../../../../../src/components/roster/utils/body-content-key.ts"],"names":[],"mappings":";;;AAEA,MAAM,WAAW,GAAG,IAAI,OAAO,EAAkB,CAAC;AAClD,IAAI,cAAc,GAAG,CAAC,CAAC;AAEvB,SAAS,UAAU,CAAC,QAAgB;IAClC,IAAI,EAAE,GAAG,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACnC,IAAI,EAAE,KAAK,SAAS,EAAE,CAAC;QACrB,EAAE,GAAG,cAAc,EAAE,CAAC;QACtB,WAAW,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IAChC,CAAC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,wBAA+B,EAC7B,MAAM,EACN,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,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,UAAU,CAAC,iBAAiB,CAAC;QAC7B,UAAU,CAAC,YAAY,CAAC;QACxB,eAAe,IAAI,UAAU,CAAC,eAAe,CAAC;QAC9C,eAAe;KAChB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import type { DayColumn, Lane, LaneGeometry } from '../../../core';
|
|
3
3
|
import type { ScheduleModel, ScheduleProps } from '../schedule.types';
|
|
4
|
-
type ScheduleDayZones = Required<Pick<ScheduleProps, '
|
|
4
|
+
type ScheduleDayZones = Required<Pick<ScheduleProps, 'gridComponent' | 'columnComponent' | 'transitionComponent' | 'intervalComponent' | 'gapComponent'>>;
|
|
5
5
|
type ScheduleDayProps = ScheduleDayZones & {
|
|
6
6
|
day: DayColumn;
|
|
7
7
|
column: number;
|
|
@@ -15,6 +15,6 @@ type ScheduleDayProps = ScheduleDayZones & {
|
|
|
15
15
|
nowLineZone: ReactNode;
|
|
16
16
|
};
|
|
17
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,
|
|
18
|
+
export declare function ScheduleDay({ day, column, lane, projection, geometry, highlightSource, hours, press, gridComponent: GridComponent, columnComponent: ColumnComponent, transitionComponent: TransitionComponent, intervalComponent, gapComponent, nowLineZone, }: ScheduleDayProps): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export {};
|
|
20
20
|
//# sourceMappingURL=day.d.ts.map
|
|
@@ -1 +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,
|
|
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,CACF,aAAa,EACX,eAAe,GACf,iBAAiB,GACjB,qBAAqB,GACrB,mBAAmB,GACnB,cAAc,CACjB,CACF,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,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,EAChC,mBAAmB,EAAE,mBAAmB,EACxC,iBAAiB,EACjB,YAAY,EACZ,WAAW,GACZ,EAAE,gBAAgB,2CAwClB"}
|
|
@@ -8,19 +8,10 @@ const press_point_1 = require("../../primitives/press-point");
|
|
|
8
8
|
const days_1 = require("../utils/days");
|
|
9
9
|
const layout_1 = require("./layout");
|
|
10
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,
|
|
11
|
+
function ScheduleDay({ day, column, lane, projection, geometry, highlightSource, hours, press, gridComponent: GridComponent, columnComponent: ColumnComponent, transitionComponent: TransitionComponent, intervalComponent, gapComponent, nowLineZone, }) {
|
|
12
12
|
return ((0, jsx_runtime_1.jsx)(react_native_1.Pressable, { testID: `schedule-day-${day.localDate}`, accessibilityLabel: day.localDate, onPress: (input) => {
|
|
13
13
|
const point = (0, press_point_1.pressPoint)(input);
|
|
14
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:
|
|
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 }) }));
|
|
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: (0, jsx_runtime_1.jsx)(GridComponent, { hours: hours, pxPerHour: projection.pxPerHour }), columnZone: (0, jsx_runtime_1.jsx)(ColumnComponent, { day: day, lane: lane, rects: geometry.rects.filter((rect) => rect.column === column), gapRects: geometry.gapRects.filter((rect) => rect.column === column), highlightSource: highlightSource, intervalComponent: intervalComponent, gapComponent: gapComponent, press: press }), transitionZone: day.transitions.map((transition) => ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children: (0, jsx_runtime_1.jsx)(TransitionComponent, { day: day, transition: transition, ...(0, days_1.transitionBounds)(day, transition, projection) }) }, transition.at))), nowLineZone: nowLineZone }) }));
|
|
25
16
|
}
|
|
26
17
|
//# sourceMappingURL=day.js.map
|
|
@@ -1 +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;
|
|
1
|
+
{"version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IAAI,CAAC,MAAM,KAAK,MAAM,CAAC,EAC9D,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,MAAM,CAAC,EACpE,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,EACpC,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,KAAK,GACZ,EAEJ,cAAc,EAAE,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAClD,uBAAC,gBAAQ,cACP,uBAAC,mBAAmB,IAClB,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,UAAU,KAClB,IAAA,uBAAgB,EAAC,GAAG,EAAE,UAAU,EAAE,UAAU,CAAC,GACjD,IALW,UAAU,CAAC,EAAE,CAMjB,CACZ,CAAC,EACF,WAAW,EAAE,WAAW,GACxB,GACQ,CACb,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
type ScheduleDayHeaderLayoutProps = {
|
|
3
3
|
width: number;
|
|
4
|
-
/** Day heading supplied by
|
|
4
|
+
/** Day heading supplied by dayHeaderComponent, aligned with its column. */
|
|
5
5
|
headerZone: ReactNode;
|
|
6
6
|
};
|
|
7
7
|
export declare function ScheduleDayHeaderLayout({ width, headerZone }: ScheduleDayHeaderLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header-layout.d.ts","sourceRoot":"","sources":["../../../../../src/components/schedule/days/header-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,4BAA4B,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,
|
|
1
|
+
{"version":3,"file":"header-layout.d.ts","sourceRoot":"","sources":["../../../../../src/components/schedule/days/header-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,4BAA4B,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,UAAU,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,4BAA4B,2CAE1F"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ScheduleColumnInput } from '../../schedule.types';
|
|
2
|
-
export declare function ScheduleColumn({ lane, rects, gapRects, press,
|
|
2
|
+
export declare function ScheduleColumn({ lane, rects, gapRects, press, intervalComponent: IntervalComponent, gapComponent: GapComponent, highlightSource, }: ScheduleColumnInput): import("react/jsx-runtime").JSX.Element[];
|
|
3
3
|
//# sourceMappingURL=column.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"column.d.ts","sourceRoot":"","sources":["../../../../../../src/components/schedule/days/parts/column.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,KAAK,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"column.d.ts","sourceRoot":"","sources":["../../../../../../src/components/schedule/days/parts/column.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,KAAK,EACL,iBAAiB,EAAE,iBAAiB,EACpC,YAAY,EAAE,YAAY,EAC1B,eAAe,GAChB,EAAE,mBAAmB,6CA6CrB"}
|
|
@@ -5,17 +5,12 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const react_native_1 = require("react-native");
|
|
7
7
|
const press_point_1 = require("../../../primitives/press-point");
|
|
8
|
-
function ScheduleColumn({ lane, rects, gapRects, press,
|
|
8
|
+
function ScheduleColumn({ lane, rects, gapRects, press, intervalComponent: IntervalComponent, gapComponent: GapComponent, highlightSource, }) {
|
|
9
9
|
return [...lane.layers]
|
|
10
10
|
.sort((a, b) => a.z - b.z)
|
|
11
11
|
.map((layer) => ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [rects
|
|
12
12
|
.filter((rect) => rect.layerId === layer.id)
|
|
13
|
-
.map((rect) => ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children:
|
|
14
|
-
rect,
|
|
15
|
-
layer,
|
|
16
|
-
lane,
|
|
17
|
-
highlighted: rect.sources.some((source) => source.kind === highlightSource?.kind && source.id === highlightSource.id),
|
|
18
|
-
}) }, `interval-${rect.y}:${rect.height}`))), gapRects
|
|
13
|
+
.map((rect) => ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children: (0, jsx_runtime_1.jsx)(IntervalComponent, { rect: rect, layer: layer, lane: lane, highlighted: rect.sources.some((source) => source.kind === highlightSource?.kind && source.id === highlightSource.id) }) }, `interval-${rect.y}:${rect.height}`))), gapRects
|
|
19
14
|
.filter((rect) => rect.layerId === layer.id)
|
|
20
15
|
.map((rect) => ((0, jsx_runtime_1.jsx)(react_native_1.Pressable, { accessibilityLabel: `${lane.label}: removed time`, onPress: (input) => {
|
|
21
16
|
input.stopPropagation();
|
|
@@ -28,6 +23,6 @@ function ScheduleColumn({ lane, rects, gapRects, press, intervalZone, gapZone, h
|
|
|
28
23
|
width: rect.width,
|
|
29
24
|
height: rect.height,
|
|
30
25
|
zIndex: rect.z,
|
|
31
|
-
}, children:
|
|
26
|
+
}, children: (0, jsx_runtime_1.jsx)(GapComponent, { rect: rect, layer: layer, lane: lane }) }, `gap-${rect.y}:${rect.height}`)))] }, layer.id)));
|
|
32
27
|
}
|
|
33
28
|
//# sourceMappingURL=column.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"column.js","sourceRoot":"","sources":["../../../../../../src/components/schedule/days/parts/column.tsx"],"names":[],"mappings":";;;;AAAA,iCAAiC;AACjC,+CAAyC;AACzC,iEAA6D;AAG7D,wBAA+B,EAC7B,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,KAAK,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"column.js","sourceRoot":"","sources":["../../../../../../src/components/schedule/days/parts/column.tsx"],"names":[],"mappings":";;;;AAAA,iCAAiC;AACjC,+CAAyC;AACzC,iEAA6D;AAG7D,wBAA+B,EAC7B,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,KAAK,EACL,iBAAiB,EAAE,iBAAiB,EACpC,YAAY,EAAE,YAAY,EAC1B,eAAe,GACK;IACpB,OAAO,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACpB,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;SACzB,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACd,wBAAC,gBAAQ,eACN,KAAK;iBACH,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,KAAK,KAAK,CAAC,EAAE,CAAC;iBAC3C,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACb,uBAAC,gBAAQ,cACP,uBAAC,iBAAiB,IAChB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAC5B,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,IAAI,KAAK,eAAe,EAAE,IAAI,IAAI,MAAM,CAAC,EAAE,KAAK,eAAe,CAAC,EAAE,CAC5E,GACD,IATW,YAAY,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE,CAUvC,CACZ,CAAC,EACH,QAAQ;iBACN,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,KAAK,KAAK,CAAC,EAAE,CAAC;iBAC3C,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACb,uBAAC,wBAAS,IAER,kBAAkB,EAAE,GAAG,IAAI,CAAC,KAAK,gBAAgB,EACjD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;oBACjB,KAAK,CAAC,eAAe,EAAE,CAAC;oBACxB,MAAM,KAAK,GAAG,IAAA,wBAAU,EAAC,KAAK,CAAC,CAAC;oBAChC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;gBAC5C,CAAC,EACD,KAAK,EAAE;oBACL,QAAQ,EAAE,UAAU;oBACpB,IAAI,EAAE,IAAI,CAAC,CAAC;oBACZ,GAAG,EAAE,IAAI,CAAC,CAAC;oBACX,KAAK,EAAE,IAAI,CAAC,KAAK;oBACjB,MAAM,EAAE,IAAI,CAAC,MAAM;oBACnB,MAAM,EAAE,IAAI,CAAC,CAAC;iBACf,YAED,uBAAC,YAAY,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,GAAI,IAhBjD,OAAO,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE,CAiBzB,CACb,CAAC,KAtCS,KAAK,CAAC,EAAE,CAuCZ,CACZ,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/schedule/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/schedule/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOtD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,2CAqB5C"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Schedule = Schedule;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
5
|
const react_native_1 = require("react-native");
|
|
7
6
|
const gap_1 = require("../layers/parts/gap");
|
|
8
7
|
const interval_1 = require("../layers/parts/interval");
|
|
@@ -30,16 +29,16 @@ function Schedule(props) {
|
|
|
30
29
|
}
|
|
31
30
|
function ScheduleContent(props) {
|
|
32
31
|
const { days, projection, geometry, now, press } = (0, use_schedule_1.useSchedule)(props);
|
|
33
|
-
const { lane, windowSpec, highlightSource,
|
|
32
|
+
const { lane, windowSpec, highlightSource, gutterComponent: GutterComponent = gutter_1.ScheduleGutter, dayHeaderComponent: DayHeaderComponent = day_header_1.ScheduleDayHeader, skippedDateComponent: SkippedDateComponent = skipped_date_1.ScheduleSkippedDate, columnComponent = column_1.ScheduleColumn, gridComponent = grid_1.ScheduleGrid, transitionComponent = transition_1.ScheduleTransition, nowLineComponent: NowLineComponent = now_line_1.ScheduleNowLine, intervalComponent = interval_1.RosterInterval, gapComponent = gap_1.RosterGap, incompleteComponent: IncompleteComponent = incomplete_1.ScheduleIncomplete, incompleteLabel = 'Availability may be incomplete', } = props;
|
|
34
33
|
const position = (0, days_1.nowPosition)(projection, now);
|
|
35
|
-
const incomplete = lane.complete === false ?
|
|
36
|
-
return ((0, jsx_runtime_1.jsx)(layout_1.ScheduleLayout, { headerStyle: props.headerStyle, gutterStyle: props.gutterStyle, daysStyle: props.daysStyle, incompleteZone: incomplete, gutterZone:
|
|
34
|
+
const incomplete = lane.complete === false ? (0, jsx_runtime_1.jsx)(IncompleteComponent, { lane: lane, label: incompleteLabel }) : null;
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)(layout_1.ScheduleLayout, { headerStyle: props.headerStyle, gutterStyle: props.gutterStyle, daysStyle: props.daysStyle, incompleteZone: incomplete, gutterZone: (0, jsx_runtime_1.jsx)(GutterComponent, { hours: hours, pxPerHour: projection.pxPerHour }), dayHeaderZone: (0, days_1.headerDates)(windowSpec, days).map(({ localDate, day }) => {
|
|
37
36
|
if (!day)
|
|
38
|
-
return (0, jsx_runtime_1.jsx)(
|
|
39
|
-
return ((0, jsx_runtime_1.jsx)(header_layout_1.ScheduleDayHeaderLayout, { width: projection.columnWidth, headerZone:
|
|
37
|
+
return (0, jsx_runtime_1.jsx)(SkippedDateComponent, { localDate: localDate }, localDate);
|
|
38
|
+
return ((0, jsx_runtime_1.jsx)(header_layout_1.ScheduleDayHeaderLayout, { width: projection.columnWidth, headerZone: (0, jsx_runtime_1.jsx)(DayHeaderComponent, { day: day }) }, localDate));
|
|
40
39
|
}), daysZone: days.map((day, column) => {
|
|
41
|
-
const nowLine = position?.column === column ?
|
|
42
|
-
return ((0, jsx_runtime_1.jsx)(day_1.ScheduleDay, { day: day, column: column, lane: lane, projection: projection, geometry: geometry, highlightSource: highlightSource, hours: hours, press: (x, y) => press(column, x, y),
|
|
40
|
+
const nowLine = position?.column === column ? (0, jsx_runtime_1.jsx)(NowLineComponent, { ...position }) : null;
|
|
41
|
+
return ((0, jsx_runtime_1.jsx)(day_1.ScheduleDay, { day: day, column: column, lane: lane, projection: projection, geometry: geometry, highlightSource: highlightSource, hours: hours, press: (x, y) => press(column, x, y), gridComponent: gridComponent, columnComponent: columnComponent, transitionComponent: transitionComponent, intervalComponent: intervalComponent, gapComponent: gapComponent, nowLineZone: nowLine }, day.localDate));
|
|
43
42
|
}) }));
|
|
44
43
|
}
|
|
45
44
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/schedule/index.tsx"],"names":[],"mappings":";;;;AAAA
|
|
1
|
+
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AC,uCAAuB,IAEtB,KAAK,EAAE,UAAU,CAAC,WAAW,EAC7B,UAAU,EAAE,uBAAC,kBAAkB,IAAC,GAAG,EAAE,GAAG,GAAI,IAFvC,SAAS,CAGd,CACH,CAAC;QACJ,CAAC,CAAC,EACF,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;YACjC,MAAM,OAAO,GAAG,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,uBAAC,gBAAgB,OAAK,QAAQ,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;YACxF,OAAO,CACL,uBAAC,iBAAW,IAEV,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,EAClB,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,EACpC,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,EAChC,mBAAmB,EAAE,mBAAmB,EACxC,iBAAiB,EAAE,iBAAiB,EACpC,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,OAAO,IAdf,GAAG,CAAC,SAAS,CAelB,CACH,CAAC;QACJ,CAAC,CAAC,GACF,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import type { DayColumn, Lane, LaneGeometry, Projection, Rect, Source, Transition, Window, WindowSpec } from '../../core';
|
|
4
4
|
import type { GapInput, IntervalInput } from '../layers/layers.types';
|
|
@@ -46,9 +46,9 @@ export type ScheduleColumnInput = {
|
|
|
46
46
|
highlightSource?: Source;
|
|
47
47
|
press: (x: number, y: number) => void;
|
|
48
48
|
/** Covered rect filler shared with Roster; final bounds and stacking belong to the rect. */
|
|
49
|
-
|
|
49
|
+
intervalComponent: ComponentType<IntervalInput>;
|
|
50
50
|
/** Removed rect content shared with Roster; the column supplies its pressable bounds. */
|
|
51
|
-
|
|
51
|
+
gapComponent: ComponentType<GapInput>;
|
|
52
52
|
};
|
|
53
53
|
export type ScheduleHoursInput = {
|
|
54
54
|
hours: number[];
|
|
@@ -76,34 +76,34 @@ export type ScheduleStyleProps = {
|
|
|
76
76
|
export type ScheduleProps = ScheduleInput & ScheduleStyleProps & {
|
|
77
77
|
incompleteLabel?: string;
|
|
78
78
|
/** Frozen left hour labels; ScheduleGutter receives hours 0 through 23 and their scale. */
|
|
79
|
-
|
|
79
|
+
gutterComponent?: ComponentType<ScheduleHoursInput>;
|
|
80
80
|
/** Hour bands behind each day's rects; ScheduleGrid draws 24 bordered bands. */
|
|
81
|
-
|
|
81
|
+
gridComponent?: ComponentType<ScheduleHoursInput>;
|
|
82
82
|
/** Frozen day heading; ScheduleDayHeader shows weekday, localDate, and a transition badge. */
|
|
83
|
-
|
|
83
|
+
dayHeaderComponent?: ComponentType<{
|
|
84
84
|
day: DayColumn;
|
|
85
|
-
}
|
|
85
|
+
}>;
|
|
86
86
|
/** Wholly skipped local date marker; ScheduleSkippedDate labels its zero-width header gap. */
|
|
87
|
-
|
|
87
|
+
skippedDateComponent?: ComponentType<{
|
|
88
88
|
localDate: string;
|
|
89
|
-
}
|
|
89
|
+
}>;
|
|
90
90
|
/** The day's covered and removed rects; ScheduleColumn draws final bounds in layer order. */
|
|
91
|
-
|
|
91
|
+
columnComponent?: ComponentType<ScheduleColumnInput>;
|
|
92
92
|
/** Transition chrome only; ScheduleTransition hatches skips and divides repeats with again. */
|
|
93
|
-
|
|
93
|
+
transitionComponent?: ComponentType<ScheduleTransitionInput>;
|
|
94
94
|
/** Current day's line at y; ScheduleNowLine spans the containing column. */
|
|
95
|
-
|
|
95
|
+
nowLineComponent?: ComponentType<{
|
|
96
96
|
y: number;
|
|
97
97
|
column: number;
|
|
98
|
-
}
|
|
98
|
+
}>;
|
|
99
99
|
/** Covered rect filler shared with Roster; position using rect bounds and use pointerEvents="none". */
|
|
100
|
-
|
|
100
|
+
intervalComponent?: ComponentType<IntervalInput>;
|
|
101
101
|
/** Removed rect content shared with Roster; ScheduleColumn supplies the invisible pressable. */
|
|
102
|
-
|
|
102
|
+
gapComponent?: ComponentType<GapInput>;
|
|
103
103
|
/** Completeness notice in reserved empty space above the day grid; receives the lane and localized label. */
|
|
104
|
-
|
|
104
|
+
incompleteComponent?: ComponentType<{
|
|
105
105
|
lane: Lane;
|
|
106
106
|
label: string;
|
|
107
|
-
}
|
|
107
|
+
}>;
|
|
108
108
|
};
|
|
109
109
|
//# sourceMappingURL=schedule.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule.types.d.ts","sourceRoot":"","sources":["../../../../src/components/schedule/schedule.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"schedule.types.d.ts","sourceRoot":"","sources":["../../../../src/components/schedule/schedule.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EACV,SAAS,EACT,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,IAAI,EACJ,MAAM,EACN,UAAU,EACV,MAAM,EACN,UAAU,EACX,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEtE,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG;IAAE,IAAI,EAAE,KAAK,GAAG,MAAM,CAAA;CAAE,CAAC;AACvE,MAAM,MAAM,kBAAkB,GAAG,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CAAC,CAAC;IAClD,8FAA8F;IAC9F,kBAAkB,CAAC,EAAE,aAAa,CAAC;QAAE,GAAG,EAAE,SAAS,CAAA;KAAE,CAAC,CAAC;IACvD,8FAA8F;IAC9F,oBAAoB,CAAC,EAAE,aAAa,CAAC;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5D,6FAA6F;IAC7F,eAAe,CAAC,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC;IACrD,+FAA+F;IAC/F,mBAAmB,CAAC,EAAE,aAAa,CAAC,uBAAuB,CAAC,CAAC;IAC7D,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,aAAa,CAAC;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAChE,uGAAuG;IACvG,iBAAiB,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IACjD,gGAAgG;IAChG,YAAY,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IACvC,6GAA6G;IAC7G,mBAAmB,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpE,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export type { GapInput, IntervalInput } from './components/layers/layers.types';
|
|
|
2
2
|
export { RosterGap } from './components/layers/parts/gap';
|
|
3
3
|
export { RosterInterval } from './components/layers/parts/interval';
|
|
4
4
|
export { Roster } from './components/roster';
|
|
5
|
+
export { RosterBodyLayout } from './components/roster/body-layout';
|
|
5
6
|
export { RosterLaneLabel } from './components/roster/lanes/parts/lane-label';
|
|
6
7
|
export { RosterBody } from './components/roster/parts/body';
|
|
7
8
|
export { RosterCorner } from './components/roster/parts/corner';
|
|
@@ -10,7 +11,8 @@ export { RosterGrid } from './components/roster/parts/grid';
|
|
|
10
11
|
export { RosterHeader } from './components/roster/parts/header';
|
|
11
12
|
export { RosterHeaderCell } from './components/roster/parts/header-cell';
|
|
12
13
|
export { RosterLaneLabelColumn } from './components/roster/parts/lane-label-column';
|
|
13
|
-
export
|
|
14
|
+
export { RosterLaneList } from './components/roster/parts/lane-list';
|
|
15
|
+
export type { BodyInput, GridInput, HeaderCellInput, HeaderInput, LabelColumnInput, LaneLabelInput, RosterInput, RosterModel, RosterProjection, RosterProps, RosterScroll, RosterStyleProps, RosterTick, } from './components/roster/roster.types';
|
|
14
16
|
export { useRoster } from './components/roster/use-roster';
|
|
15
17
|
export { Schedule } from './components/schedule';
|
|
16
18
|
export { ScheduleColumn } from './components/schedule/days/parts/column';
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACpF,YAAY,EACV,SAAS,EACT,SAAS,EACT,WAAW,EACX,gBAAgB,EACh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AAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,cAAc,QAAQ,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -14,13 +14,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.useSchedule = exports.ScheduleIncomplete = exports.ScheduleGutter = exports.ScheduleTransition = exports.ScheduleSkippedDate = exports.ScheduleNowLine = exports.ScheduleGrid = exports.ScheduleDayHeader = exports.ScheduleColumn = exports.Schedule = exports.useRoster = exports.RosterLaneLabelColumn = exports.RosterHeaderCell = exports.RosterHeader = exports.RosterGrid = exports.RosterEmpty = exports.RosterCorner = exports.RosterBody = exports.RosterLaneLabel = exports.Roster = exports.RosterInterval = exports.RosterGap = void 0;
|
|
17
|
+
exports.useSchedule = exports.ScheduleIncomplete = exports.ScheduleGutter = exports.ScheduleTransition = exports.ScheduleSkippedDate = exports.ScheduleNowLine = exports.ScheduleGrid = exports.ScheduleDayHeader = exports.ScheduleColumn = exports.Schedule = exports.useRoster = exports.RosterLaneList = exports.RosterLaneLabelColumn = exports.RosterHeaderCell = exports.RosterHeader = exports.RosterGrid = exports.RosterEmpty = exports.RosterCorner = exports.RosterBody = exports.RosterLaneLabel = exports.RosterBodyLayout = exports.Roster = exports.RosterInterval = exports.RosterGap = void 0;
|
|
18
18
|
var gap_1 = require("./components/layers/parts/gap");
|
|
19
19
|
Object.defineProperty(exports, "RosterGap", { enumerable: true, get: function () { return gap_1.RosterGap; } });
|
|
20
20
|
var interval_1 = require("./components/layers/parts/interval");
|
|
21
21
|
Object.defineProperty(exports, "RosterInterval", { enumerable: true, get: function () { return interval_1.RosterInterval; } });
|
|
22
22
|
var roster_1 = require("./components/roster");
|
|
23
23
|
Object.defineProperty(exports, "Roster", { enumerable: true, get: function () { return roster_1.Roster; } });
|
|
24
|
+
var body_layout_1 = require("./components/roster/body-layout");
|
|
25
|
+
Object.defineProperty(exports, "RosterBodyLayout", { enumerable: true, get: function () { return body_layout_1.RosterBodyLayout; } });
|
|
24
26
|
var lane_label_1 = require("./components/roster/lanes/parts/lane-label");
|
|
25
27
|
Object.defineProperty(exports, "RosterLaneLabel", { enumerable: true, get: function () { return lane_label_1.RosterLaneLabel; } });
|
|
26
28
|
var body_1 = require("./components/roster/parts/body");
|
|
@@ -37,6 +39,8 @@ var header_cell_1 = require("./components/roster/parts/header-cell");
|
|
|
37
39
|
Object.defineProperty(exports, "RosterHeaderCell", { enumerable: true, get: function () { return header_cell_1.RosterHeaderCell; } });
|
|
38
40
|
var lane_label_column_1 = require("./components/roster/parts/lane-label-column");
|
|
39
41
|
Object.defineProperty(exports, "RosterLaneLabelColumn", { enumerable: true, get: function () { return lane_label_column_1.RosterLaneLabelColumn; } });
|
|
42
|
+
var lane_list_1 = require("./components/roster/parts/lane-list");
|
|
43
|
+
Object.defineProperty(exports, "RosterLaneList", { enumerable: true, get: function () { return lane_list_1.RosterLaneList; } });
|
|
40
44
|
var use_roster_1 = require("./components/roster/use-roster");
|
|
41
45
|
Object.defineProperty(exports, "useRoster", { enumerable: true, get: function () { return use_roster_1.useRoster; } });
|
|
42
46
|
var schedule_1 = require("./components/schedule");
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,qDAA0D;AAAjD,gGAAA,SAAS,OAAA;AAClB,+DAAoE;AAA3D,0GAAA,cAAc,OAAA;AACvB,8CAA6C;AAApC,gGAAA,MAAM,OAAA;AACf,yEAA6E;AAApE,6GAAA,eAAe,OAA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