@imj_media/ui 1.2.56 → 1.2.58
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/dist/index.css +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +10652 -8158
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/modules/Table/stories/TableActionsColumnScroll.stories.d.ts +45 -0
- package/dist/modules/Table/stories/TableActionsColumnScroll.stories.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/index.d.ts +23 -0
- package/dist/modules/imj-calendar-timeline/index.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/Timeline.d.ts +221 -0
- package/dist/modules/imj-calendar-timeline/lib/Timeline.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/columns/Columns.d.ts +17 -0
- package/dist/modules/imj-calendar-timeline/lib/columns/Columns.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/default-config.d.ts +29 -0
- package/dist/modules/imj-calendar-timeline/lib/default-config.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/headers/CustomDateHeader.d.ts +24 -0
- package/dist/modules/imj-calendar-timeline/lib/headers/CustomDateHeader.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/headers/CustomHeader.d.ts +31 -0
- package/dist/modules/imj-calendar-timeline/lib/headers/CustomHeader.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/headers/DateHeader.d.ts +37 -0
- package/dist/modules/imj-calendar-timeline/lib/headers/DateHeader.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/headers/HeadersContext.d.ts +21 -0
- package/dist/modules/imj-calendar-timeline/lib/headers/HeadersContext.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/headers/Interval.d.ts +24 -0
- package/dist/modules/imj-calendar-timeline/lib/headers/Interval.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/headers/SidebarHeader.d.ts +19 -0
- package/dist/modules/imj-calendar-timeline/lib/headers/SidebarHeader.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/headers/TimelineHeaders.d.ts +22 -0
- package/dist/modules/imj-calendar-timeline/lib/headers/TimelineHeaders.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/headers/constants.d.ts +3 -0
- package/dist/modules/imj-calendar-timeline/lib/headers/constants.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/headers/types.d.ts +9 -0
- package/dist/modules/imj-calendar-timeline/lib/headers/types.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/interaction/PreventClickOnDrag.d.ts +15 -0
- package/dist/modules/imj-calendar-timeline/lib/interaction/PreventClickOnDrag.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/items/Item.d.ts +144 -0
- package/dist/modules/imj-calendar-timeline/lib/items/Item.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/items/Items.d.ts +43 -0
- package/dist/modules/imj-calendar-timeline/lib/items/Items.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/items/defaultItemRenderer.d.ts +12 -0
- package/dist/modules/imj-calendar-timeline/lib/items/defaultItemRenderer.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/items/styles.d.ts +52 -0
- package/dist/modules/imj-calendar-timeline/lib/items/styles.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/layout/Sidebar.d.ts +17 -0
- package/dist/modules/imj-calendar-timeline/lib/layout/Sidebar.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/MarkerCanvas.d.ts +11 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/MarkerCanvas.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/MarkerCanvasContext.d.ts +12 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/MarkerCanvasContext.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/TimelineMarkersContext.d.ts +17 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/TimelineMarkersContext.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/TimelineMarkersRenderer.d.ts +4 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/TimelineMarkersRenderer.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/implementations/CursorMarker.d.ts +11 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/implementations/CursorMarker.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/implementations/CustomMarker.d.ts +20 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/implementations/CustomMarker.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/implementations/TodayMarker.d.ts +28 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/implementations/TodayMarker.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/implementations/shared.d.ts +864 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/implementations/shared.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/markerType.d.ts +19 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/markerType.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/public/CursorMarker.d.ts +13 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/public/CursorMarker.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/public/CustomMarker.d.ts +15 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/public/CustomMarker.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/public/TimelineMarkers.d.ts +7 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/public/TimelineMarkers.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/public/TodayMarker.d.ts +15 -0
- package/dist/modules/imj-calendar-timeline/lib/markers/public/TodayMarker.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/row/GroupRow.d.ts +17 -0
- package/dist/modules/imj-calendar-timeline/lib/row/GroupRow.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/row/GroupRows.d.ts +19 -0
- package/dist/modules/imj-calendar-timeline/lib/row/GroupRows.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/scroll/ScrollElement.d.ts +17 -0
- package/dist/modules/imj-calendar-timeline/lib/scroll/ScrollElement.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/timeline/TimelineStateContext.d.ts +29 -0
- package/dist/modules/imj-calendar-timeline/lib/timeline/TimelineStateContext.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/types/dimension.d.ts +18 -0
- package/dist/modules/imj-calendar-timeline/lib/types/dimension.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/types/main.d.ts +225 -0
- package/dist/modules/imj-calendar-timeline/lib/types/main.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/utility/calendar.d.ts +213 -0
- package/dist/modules/imj-calendar-timeline/lib/utility/calendar.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/utility/dom-helpers.d.ts +16 -0
- package/dist/modules/imj-calendar-timeline/lib/utility/dom-helpers.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/utility/events.d.ts +5 -0
- package/dist/modules/imj-calendar-timeline/lib/utility/events.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/lib/utility/generic.d.ts +16 -0
- package/dist/modules/imj-calendar-timeline/lib/utility/generic.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/resize-detector/container.d.ts +18 -0
- package/dist/modules/imj-calendar-timeline/resize-detector/container.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/resize-detector/window.d.ts +11 -0
- package/dist/modules/imj-calendar-timeline/resize-detector/window.d.ts.map +1 -0
- package/dist/modules/imj-calendar-timeline/stories/Timeline.stories.d.ts +25 -0
- package/dist/modules/imj-calendar-timeline/stories/Timeline.stories.d.ts.map +1 -0
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.d.ts.map +1 -1
- package/package.json +9 -1
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { Dayjs } from 'dayjs';
|
|
2
|
+
import { Dimension, ItemDimension } from '../types/dimension';
|
|
3
|
+
import { GroupedItem, GroupOrders, GroupStack, Id, TimelineGroupBase, TimelineItemBase, TimelineKeys, TimelineTimeSteps } from '../types/main';
|
|
4
|
+
import { ReactCalendarTimelineProps, ReactCalendarTimelineState } from '../Timeline';
|
|
5
|
+
/**
|
|
6
|
+
* Calculate the ms / pixel ratio of the timeline state
|
|
7
|
+
* @param {number} canvasTimeStart
|
|
8
|
+
* @param {number} canvasTimeEnd
|
|
9
|
+
* @param {number} canvasWidth
|
|
10
|
+
* @returns {number}
|
|
11
|
+
*/
|
|
12
|
+
export declare function coordinateToTimeRatio(canvasTimeStart: number, canvasTimeEnd: number, canvasWidth: number): number;
|
|
13
|
+
/**
|
|
14
|
+
* For a given time, calculate the pixel position given timeline state
|
|
15
|
+
* (timeline width in px, canvas time range)
|
|
16
|
+
* @param {number} canvasTimeStart
|
|
17
|
+
* @param {number} canvasTimeEnd
|
|
18
|
+
* @param {number} canvasWidth
|
|
19
|
+
* @param {number} time
|
|
20
|
+
* @returns {number}
|
|
21
|
+
*/
|
|
22
|
+
export declare function calculateXPositionForTime(canvasTimeStart: number, canvasTimeEnd: number, canvasWidth: number, time: number): number;
|
|
23
|
+
/**
|
|
24
|
+
* For a given x position (leftOffset) in pixels, calculate time based on
|
|
25
|
+
* timeline state (timeline width in px, canvas time range)
|
|
26
|
+
* @param {number} canvasTimeStart
|
|
27
|
+
* @param {number} canvasTimeEnd
|
|
28
|
+
* @param {number} canvasWidth
|
|
29
|
+
* @param {number} leftOffset
|
|
30
|
+
* @returns {number}
|
|
31
|
+
*/
|
|
32
|
+
export declare function calculateTimeForXPosition(canvasTimeStart: number, canvasTimeEnd: number, canvasWidth: number, leftOffset: number): number;
|
|
33
|
+
export declare function iterateTimes(start: number, end: number, unit: keyof TimelineTimeSteps, timeSteps: TimelineTimeSteps, callback: (time: Dayjs, nextTime: Dayjs) => void): void;
|
|
34
|
+
/** determine the current rendered time unit based on timeline time span
|
|
35
|
+
*
|
|
36
|
+
* zoom: (in milliseconds) difference between time start and time end of timeline canvas
|
|
37
|
+
* width: (in pixels) pixel width of timeline canvas
|
|
38
|
+
* timeSteps: map of timeDividers with number to indicate step of each divider
|
|
39
|
+
*/
|
|
40
|
+
export declare const minCellWidth = 17;
|
|
41
|
+
export declare function getMinUnit(zoom: number, width: number, timeSteps: TimelineTimeSteps): "year";
|
|
42
|
+
export type SelectUnits = 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year';
|
|
43
|
+
export type SelectUnitsRes = Exclude<SelectUnits, 'second'>;
|
|
44
|
+
export declare const NEXT_UNITS: Record<SelectUnits, SelectUnitsRes>;
|
|
45
|
+
export declare function getNextUnit(unit: SelectUnits): SelectUnitsRes;
|
|
46
|
+
/**
|
|
47
|
+
* get the new start and new end time of item that is being
|
|
48
|
+
* dragged or resized
|
|
49
|
+
* @param {*} itemTimeStart original item time in milliseconds
|
|
50
|
+
* @param {*} itemTimeEnd original item time in milliseconds
|
|
51
|
+
* @param {*} dragTime new start time if item is dragged in milliseconds
|
|
52
|
+
* @param {*} isDragging is item being dragged
|
|
53
|
+
* @param {*} isResizing is item being resized
|
|
54
|
+
* @param {`right` or `left`} resizingEdge resize edge
|
|
55
|
+
* @param {*} resizeTime new resize time in milliseconds
|
|
56
|
+
*/
|
|
57
|
+
export declare function calculateInteractionNewTimes({ itemTimeStart, itemTimeEnd, dragTime, isDragging, isResizing, resizingEdge, resizeTime, }: {
|
|
58
|
+
itemTimeStart: number;
|
|
59
|
+
itemTimeEnd: number;
|
|
60
|
+
dragTime: number | null;
|
|
61
|
+
isDragging: boolean;
|
|
62
|
+
isResizing: boolean;
|
|
63
|
+
resizingEdge: 'left' | 'right' | null;
|
|
64
|
+
resizeTime: number | null;
|
|
65
|
+
}): [number, number];
|
|
66
|
+
export declare function calculateDimensions({ itemTimeStart, itemTimeEnd, canvasTimeStart, canvasTimeEnd, canvasWidth, }: {
|
|
67
|
+
itemTimeStart: number;
|
|
68
|
+
itemTimeEnd: number;
|
|
69
|
+
canvasTimeStart: number;
|
|
70
|
+
canvasTimeEnd: number;
|
|
71
|
+
canvasWidth: number;
|
|
72
|
+
}): Partial<Dimension>;
|
|
73
|
+
/**
|
|
74
|
+
* Get the order of groups based on their keys
|
|
75
|
+
* @param {*} groups array of groups
|
|
76
|
+
* @param {*} keys the keys object
|
|
77
|
+
* @returns Ordered hash of objects with their array index and group
|
|
78
|
+
*/
|
|
79
|
+
export declare function getGroupOrders(groups: TimelineGroupBase[], keys: TimelineKeys): GroupOrders;
|
|
80
|
+
/**
|
|
81
|
+
* Adds items relevant to each group to the result of getGroupOrders
|
|
82
|
+
* @param {*} items list of all items
|
|
83
|
+
* @param {*} groupOrders the result of getGroupOrders
|
|
84
|
+
*/
|
|
85
|
+
export declare function getGroupedItems(items: ItemDimension[], groupOrders: GroupOrders): Record<number, GroupedItem>;
|
|
86
|
+
export declare function getVisibleItems<CustomItem extends TimelineItemBase<any> = TimelineItemBase<number>>(items: CustomItem[], canvasTimeStart: number, canvasTimeEnd: number, keys: TimelineKeys): CustomItem[];
|
|
87
|
+
export declare function collision(a: Dimension, b: Dimension, collisionPadding?: number): boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Calculate the position of a given item for a group that
|
|
90
|
+
* is being stacked
|
|
91
|
+
*/
|
|
92
|
+
export declare function groupStack(lineHeight: number, item: ItemDimension, group: ItemDimension[], groupHeight: number, groupTop: number, itemIndex: number): GroupStack;
|
|
93
|
+
export declare function groupNoStack(lineHeight: number, item: ItemDimension, groupHeight: number, groupTop: number): GroupStack;
|
|
94
|
+
/**
|
|
95
|
+
* Stack all groups
|
|
96
|
+
* @param itemsDimensions
|
|
97
|
+
* @param {*} groupOrders the groupOrders object
|
|
98
|
+
* @param {*} lineHeight
|
|
99
|
+
* @param {*} stackItems should items be stacked?
|
|
100
|
+
*/
|
|
101
|
+
export declare function stackAll(itemsDimensions: ItemDimension[], groupOrders: GroupOrders, lineHeight: number, stackItems: boolean): {
|
|
102
|
+
height: number;
|
|
103
|
+
groupHeights: number[];
|
|
104
|
+
groupTops: number[];
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @param {*} itemsDimensions
|
|
109
|
+
* @param {*} isGroupStacked
|
|
110
|
+
* @param {*} lineHeight
|
|
111
|
+
* @param {*} groupTop
|
|
112
|
+
*/
|
|
113
|
+
export declare function stackGroup(itemsDimensions: ItemDimension[], isGroupStacked: boolean, lineHeight: number, groupTop: number): {
|
|
114
|
+
groupHeight: number;
|
|
115
|
+
verticalMargin: number;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Stack the items that will be visible
|
|
119
|
+
* within the canvas area
|
|
120
|
+
* @param {item[]} items
|
|
121
|
+
* @param {group[]} groups
|
|
122
|
+
* @param {number} canvasWidth
|
|
123
|
+
* @param {number} canvasTimeStart
|
|
124
|
+
* @param {number} canvasTimeEnd
|
|
125
|
+
* @param {*} keys
|
|
126
|
+
* @param {number} lineHeight
|
|
127
|
+
* @param {number} itemHeightRatio
|
|
128
|
+
* @param {boolean} stackItems
|
|
129
|
+
* @param {*} draggingItem
|
|
130
|
+
* @param {*} resizingItem
|
|
131
|
+
* @param {number} dragTime
|
|
132
|
+
* @param {left or right} resizingEdge
|
|
133
|
+
* @param {number} resizeTime
|
|
134
|
+
* @param {number} newGroupOrder
|
|
135
|
+
*/
|
|
136
|
+
export declare function stackTimelineItems<CustomItem extends TimelineItemBase<any> = TimelineItemBase<number>, CustomGroup extends TimelineGroupBase = TimelineGroupBase>(items: CustomItem[], groups: CustomGroup[], canvasWidth: number, canvasTimeStart: number, canvasTimeEnd: number, keys: TimelineKeys, lineHeight: number, itemHeightRatio: number, stackItems: boolean, draggingItem: Id | null | undefined, resizingItem: Id | null | undefined, dragTime: number | null, resizingEdge: 'left' | 'right' | null, resizeTime: number | null, newGroupOrder: number): {
|
|
137
|
+
dimensionItems: ItemDimension[];
|
|
138
|
+
height: number;
|
|
139
|
+
groupHeights: number[];
|
|
140
|
+
groupTops: number[];
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* get canvas width from visible width
|
|
144
|
+
* @param {*} width
|
|
145
|
+
* @param {*} buffer
|
|
146
|
+
*/
|
|
147
|
+
export declare function getCanvasWidth(width: number, buffer: number): number;
|
|
148
|
+
/**
|
|
149
|
+
* get item's position, dimensions and collisions
|
|
150
|
+
* @param {*} item
|
|
151
|
+
* @param {*} keys
|
|
152
|
+
* @param {*} canvasTimeStart
|
|
153
|
+
* @param {*} canvasTimeEnd
|
|
154
|
+
* @param {*} canvasWidth
|
|
155
|
+
* @param {*} groupOrders
|
|
156
|
+
* @param {*} lineHeight
|
|
157
|
+
* @param {*} itemHeightRatio
|
|
158
|
+
*/
|
|
159
|
+
export declare function getItemDimensions<CustomItem extends TimelineItemBase<any>>({ item, keys, canvasTimeStart, canvasTimeEnd, canvasWidth, groupOrders, lineHeight, itemHeightRatio, }: {
|
|
160
|
+
item: CustomItem;
|
|
161
|
+
keys: TimelineKeys;
|
|
162
|
+
canvasTimeStart: number;
|
|
163
|
+
canvasTimeEnd: number;
|
|
164
|
+
canvasWidth: number;
|
|
165
|
+
groupOrders: GroupOrders;
|
|
166
|
+
lineHeight: number;
|
|
167
|
+
itemHeightRatio: number;
|
|
168
|
+
}): ItemDimension | undefined;
|
|
169
|
+
/**
|
|
170
|
+
* get new item with changed `itemTimeStart` , `itemTimeEnd` and `itemGroupKey` according to user interaction
|
|
171
|
+
* user interaction is dragging an item and resize left and right
|
|
172
|
+
* @param {*} item
|
|
173
|
+
* @param {*} keys
|
|
174
|
+
* @param {*} draggingItem
|
|
175
|
+
* @param {*} resizingItem
|
|
176
|
+
* @param {*} dragTime
|
|
177
|
+
* @param {*} resizingEdge
|
|
178
|
+
* @param {*} resizeTime
|
|
179
|
+
* @param {*} groups
|
|
180
|
+
* @param {*} newGroupOrder
|
|
181
|
+
*/
|
|
182
|
+
export declare function getItemWithInteractions<CustomItem extends TimelineItemBase<any>, CustomGroup extends TimelineGroupBase = TimelineGroupBase>({ item, keys, draggingItem, resizingItem, dragTime, resizingEdge, resizeTime, groups, newGroupOrder, }: {
|
|
183
|
+
item: CustomItem;
|
|
184
|
+
keys: TimelineKeys;
|
|
185
|
+
draggingItem: Id | null | undefined;
|
|
186
|
+
resizingItem: Id | null | undefined;
|
|
187
|
+
dragTime: number | null;
|
|
188
|
+
resizingEdge: 'left' | 'right' | null;
|
|
189
|
+
resizeTime: number | null;
|
|
190
|
+
groups: CustomGroup[];
|
|
191
|
+
newGroupOrder: number;
|
|
192
|
+
}): CustomItem;
|
|
193
|
+
/**
|
|
194
|
+
* get canvas start and end time from visible start and end time
|
|
195
|
+
* @param {number} visibleTimeStart
|
|
196
|
+
* @param {number} visibleTimeEnd
|
|
197
|
+
* @param buffer
|
|
198
|
+
*/
|
|
199
|
+
export declare function getCanvasBoundariesFromVisibleTime(visibleTimeStart: number, visibleTimeEnd: number, buffer: number): number[];
|
|
200
|
+
/**
|
|
201
|
+
* Get the the canvas area for a given visible time
|
|
202
|
+
* Will shift the start/end of the canvas if the visible time
|
|
203
|
+
* does not fit within the existing
|
|
204
|
+
* @param {number} visibleTimeStart
|
|
205
|
+
* @param {number} visibleTimeEnd
|
|
206
|
+
* @param {boolean} forceUpdateDimensions
|
|
207
|
+
* @param {*} items
|
|
208
|
+
* @param {*} groups
|
|
209
|
+
* @param {*} props
|
|
210
|
+
* @param {*} state
|
|
211
|
+
*/
|
|
212
|
+
export declare function calculateScrollCanvas<P extends ReactCalendarTimelineProps<any, any>, S extends ReactCalendarTimelineState<any, any>>(visibleTimeStart: number, visibleTimeEnd: number, forceUpdateDimensions: boolean, items: any, groups: any, props: P, state: S): S;
|
|
213
|
+
//# sourceMappingURL=calendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../../../src/modules/imj-calendar-timeline/lib/utility/calendar.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,EACL,WAAW,EACX,WAAW,EACX,UAAU,EACV,EAAE,EACF,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EAClB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAEpF;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,eAAe,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAEjH;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CACvC,eAAe,EAAE,MAAM,EACvB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,GACX,MAAM,CAKR;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CACvC,eAAe,EAAE,MAAM,EACvB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GACjB,MAAM,CAMR;AAED,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,iBAAiB,EAC7B,SAAS,EAAE,iBAAiB,EAC5B,QAAQ,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,KAAK,IAAI,QAcjD;AAMD;;;;;GAKG;AAMH,eAAO,MAAM,YAAY,KAAK,CAAA;AAE9B,wBAAgB,U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EACZ,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,MAAM,EACN,aAAa,GACd,EAAE;IACD,IAAI,EAAE,UAAU,CAAA;IAChB,IAAI,EAAE,YAAY,CAAA;IAClB,YAAY,EAAE,EAAE,GAAG,IAAI,GAAG,SAAS,CAAA;IACnC,YAAY,EAAE,EAAE,GAAG,IAAI,GAAG,SAAS,CAAA;IACnC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IACrC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,MAAM,EAAE,WAAW,EAAE,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;CACtB,cAoBA;AAED;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAAC,gBAAgB,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,YAMlH;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CACnC,CAAC,SAAS,0BAA0B,CAAC,GAAG,EAAE,GAAG,CAAC,EAC9C,CAAC,SAAS,0BAA0B,CAAC,GAAG,EAAE,GAAG,CAAC,EAE9C,gBAAgB,EAAE,MAAM,EACxB,cAAc,EAAE,MAAM,EACtB,qBAAqB,EAAE,OAAO,EAC9B,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,GAAG,EACX,KAAK,EAAE,CAAC,EACR,KAAK,EAAE,CAAC,GACP,CAAC,CA0DH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare function getParentPosition(element: HTMLElement): {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
};
|
|
5
|
+
interface ScrollPosition {
|
|
6
|
+
scrollLeft: number;
|
|
7
|
+
scrollTop: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function getSumScroll(node: HTMLElement): ScrollPosition;
|
|
10
|
+
interface OffsetPosition {
|
|
11
|
+
offsetLeft: number;
|
|
12
|
+
offsetTop: number;
|
|
13
|
+
}
|
|
14
|
+
export declare function getSumOffset(node: HTMLElement): OffsetPosition;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=dom-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/modules/imj-calendar-timeline/lib/utility/dom-helpers.ts"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW;;;EAsBrD;AAED,UAAU,cAAc;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,cAAc,CAU9D;AAED,UAAU,cAAc;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,cAAc,CAU9D"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SyntheticEvent } from 'react';
|
|
2
|
+
type Fn<T> = (event: T, ...args: any) => void;
|
|
3
|
+
export declare function composeEvents<T extends SyntheticEvent<any>>(...fns: (Fn<T> | undefined)[]): (event: T, ...args: any) => void;
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../../src/modules/imj-calendar-timeline/lib/utility/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAEtC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,IAAI,CAAA;AAC7C,wBAAgB,aAAa,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,IAC9E,OAAO,CAAC,EAAE,GAAG,MAAM,GAAG,UAIjC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type GetObject = {
|
|
2
|
+
get?: (key: string) => any;
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
};
|
|
5
|
+
export declare function _get(object: GetObject, key: string): any;
|
|
6
|
+
interface CountObject {
|
|
7
|
+
count?(): number;
|
|
8
|
+
length?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function _length(object: CountObject): number | undefined;
|
|
11
|
+
export declare function arraysEqual<T>(array1: T[], array2: T[]): boolean;
|
|
12
|
+
export declare function deepObjectCompare(obj1: any, obj2: any): boolean;
|
|
13
|
+
export declare function keyBy<T>(value: T[], key: keyof T): Record<string, T>;
|
|
14
|
+
export declare function noop(): void;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=generic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generic.d.ts","sourceRoot":"","sources":["../../../../../src/modules/imj-calendar-timeline/lib/utility/generic.ts"],"names":[],"mappings":"AAIA,KAAK,SAAS,GAAG;IACf,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,GAAG,CAAA;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB,CAAA;AAED,wBAAgB,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAElD;AAED,UAAU,WAAW;IACnB,KAAK,CAAC,IAAI,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AACD,wBAAgB,OAAO,CAAC,MAAM,EAAE,WAAW,sBAE1C;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,OAAO,CAOhE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAE/D;AAED,wBAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAQpE;AAED,wBAAgB,IAAI,SAAK"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare function addListener<T extends object>(component: ListenerParam<T>): void;
|
|
2
|
+
export type ListenerParam<T extends object> = {
|
|
3
|
+
_erd: {
|
|
4
|
+
listenTo: (container: HTMLElement, callback: (element: HTMLElement) => void) => void;
|
|
5
|
+
removeAllListeners: (container: HTMLElement) => void;
|
|
6
|
+
};
|
|
7
|
+
props: T;
|
|
8
|
+
resize: (props: T) => void;
|
|
9
|
+
_erdWidth: number;
|
|
10
|
+
container: HTMLElement;
|
|
11
|
+
};
|
|
12
|
+
declare function removeListener<T extends object>(component: ListenerParam<T>): void;
|
|
13
|
+
declare const _default: {
|
|
14
|
+
addListener: typeof addListener;
|
|
15
|
+
removeListener: typeof removeListener;
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../../src/modules/imj-calendar-timeline/resize-detector/container.ts"],"names":[],"mappings":"AAEA,iBAAS,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,QAejE;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,IAAI;IAC7C,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,KAAK,IAAI,CAAC;QACrF,kBAAkB,EAAE,CAAC,SAAS,EAAE,WAAW,KAAK,IAAI,CAAC;KACrD,CAAC;IACF,KAAK,EAAE,CAAC,CAAC;IACT,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,WAAW,CAAC;CACvB,CAAC;AAEF,iBAAS,cAAc,CAAC,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,QAEpE;;;;;AAED,wBAA+C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare function addListener(component: {
|
|
2
|
+
_resizeEventListener?: (e: UIEvent) => void;
|
|
3
|
+
resize: () => void;
|
|
4
|
+
}): void;
|
|
5
|
+
declare function removeListener(component: Record<string, any>): void;
|
|
6
|
+
declare const _default: {
|
|
7
|
+
addListener: typeof addListener;
|
|
8
|
+
removeListener: typeof removeListener;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=window.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../../../../src/modules/imj-calendar-timeline/resize-detector/window.ts"],"names":[],"mappings":"AAAA,iBAAS,WAAW,CAAC,SAAS,EAAE;IAC9B,oBAAoB,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC3C,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,QAIA;AAED,iBAAS,cAAc,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAErD;;;;;AAED,wBAA8C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { TimelineItemBase, TimelineGroupBase, ReactCalendarTimelineProps } from '../index';
|
|
3
|
+
type TimelineProps = ReactCalendarTimelineProps<TimelineItemBase<number>, TimelineGroupBase>;
|
|
4
|
+
declare const meta: Meta<TimelineProps>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<TimelineProps>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const WithSidebarContent: Story;
|
|
9
|
+
export declare const WithTodayMarker: Story;
|
|
10
|
+
export declare const WithCursorMarker: Story;
|
|
11
|
+
export declare const WithTodayAndCursorMarkers: Story;
|
|
12
|
+
export declare const WithCustomHeaders: Story;
|
|
13
|
+
export declare const StackedItems: Story;
|
|
14
|
+
export declare const NoDragNoResize: Story;
|
|
15
|
+
export declare const ResizeBothEdges: Story;
|
|
16
|
+
export declare const WithSelection: Story;
|
|
17
|
+
export declare const CustomLineHeightAndItemRatio: Story;
|
|
18
|
+
export declare const NarrowSidebar: Story;
|
|
19
|
+
export declare const NoSidebar: Story;
|
|
20
|
+
export declare const CustomItemRenderer: Story;
|
|
21
|
+
export declare const CustomGroupRenderer: Story;
|
|
22
|
+
export declare const WithItemProps: Story;
|
|
23
|
+
export declare const ControlledVisibleTime: Story;
|
|
24
|
+
export declare const FullFeatured: Story;
|
|
25
|
+
//# sourceMappingURL=Timeline.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Timeline.stories.d.ts","sourceRoot":"","sources":["../../../../src/modules/imj-calendar-timeline/stories/Timeline.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAQL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAChC,MAAM,UAAU,CAAC;AAGlB,KAAK,aAAa,GAAG,0BAA0B,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE,iBAAiB,CAAC,CAAC;AAE7F,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,aAAa,CAwE7B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC;AAmBrC,eAAO,MAAM,OAAO,EAAE,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4
4
|
"description": "Componentes UI",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Oscar Rubio - IMJ",
|
|
@@ -66,6 +66,8 @@
|
|
|
66
66
|
"@testing-library/react": "^16.3.0",
|
|
67
67
|
"@types/node": "^24.0.3",
|
|
68
68
|
"@types/react": "^18.0.0",
|
|
69
|
+
"@types/element-resize-detector": "^1.1.6",
|
|
70
|
+
"@types/lodash": "^4.17.13",
|
|
69
71
|
"@types/react-dom": "^18.0.0",
|
|
70
72
|
"@vitejs/plugin-react": "^4.5.2",
|
|
71
73
|
"@vitest/coverage-v8": "^4.0.15",
|
|
@@ -96,6 +98,12 @@
|
|
|
96
98
|
"vitest": "^4.0.15"
|
|
97
99
|
},
|
|
98
100
|
"dependencies": {
|
|
101
|
+
"classnames": "^2.3.2",
|
|
102
|
+
"dayjs": "^1.11.13",
|
|
103
|
+
"element-resize-detector": "^1.2.4",
|
|
104
|
+
"interactjs": "^1.10.19",
|
|
105
|
+
"lodash": "^4.17.21",
|
|
106
|
+
"memoize-one": "^6.0.0",
|
|
99
107
|
"@fortawesome/fontawesome-svg-core": "^7.0.1",
|
|
100
108
|
"@fortawesome/free-brands-svg-icons": "^7.0.1",
|
|
101
109
|
"@fortawesome/pro-duotone-svg-icons": "^7.0.1",
|