@accelint/design-toolkit 9.12.0 → 10.0.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/catalog-info.yaml +1 -1
- package/dist/components/accordion/context.d.ts +2 -2
- package/dist/components/accordion/group.d.ts +2 -2
- package/dist/components/accordion/header.d.ts +2 -2
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/accordion/panel.d.ts +2 -2
- package/dist/components/accordion/trigger.d.ts +2 -2
- package/dist/components/action-bar/index.d.ts +2 -2
- package/dist/components/audio/index.d.ts +2 -2
- package/dist/components/avatar/context.d.ts +4 -4
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/badge/context.d.ts +4 -4
- package/dist/components/badge/index.d.ts +2 -2
- package/dist/components/breadcrumbs/index.d.ts +2 -2
- package/dist/components/breadcrumbs/item.d.ts +2 -2
- package/dist/components/button/context.d.ts +8 -8
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/link.d.ts +2 -2
- package/dist/components/button/toggle.d.ts +2 -2
- package/dist/components/carousel/context.d.ts +4 -4
- package/dist/components/carousel/gallery.d.ts +2 -2
- package/dist/components/carousel/index.d.ts +2 -2
- package/dist/components/carousel/navigation.d.ts +3 -3
- package/dist/components/carousel/position.d.ts +2 -2
- package/dist/components/carousel/select.d.ts +2 -2
- package/dist/components/carousel/viewer.d.ts +2 -2
- package/dist/components/checkbox/context.d.ts +3 -3
- package/dist/components/checkbox/group.d.ts +2 -2
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/chip/context.d.ts +4 -4
- package/dist/components/chip/deletable.d.ts +2 -2
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/chip/list.d.ts +4 -4
- package/dist/components/chip/selectable.d.ts +2 -2
- package/dist/components/classification-badge/context.d.ts +4 -4
- package/dist/components/classification-badge/index.d.ts +2 -2
- package/dist/components/classification-banner/context.d.ts +4 -4
- package/dist/components/classification-banner/index.d.ts +2 -2
- package/dist/components/clock/index.d.ts +2 -2
- package/dist/components/color-picker/index.d.ts +2 -2
- package/dist/components/combobox-field/context.d.ts +4 -4
- package/dist/components/combobox-field/index.d.ts +2 -2
- package/dist/components/coordinate-field/context.d.ts +6 -6
- package/dist/components/coordinate-field/index.d.ts +2 -2
- package/dist/components/coordinate-field/segment.d.ts +2 -2
- package/dist/components/date-field/index.d.ts +2 -2
- package/dist/components/deferred-collection/index.d.ts +2 -2
- package/dist/components/details-list/context.d.ts +4 -4
- package/dist/components/details-list/index.d.ts +2 -2
- package/dist/components/details-list/label.d.ts +2 -2
- package/dist/components/details-list/value.d.ts +2 -2
- package/dist/components/dialog/content.d.ts +2 -2
- package/dist/components/dialog/context.d.ts +2 -2
- package/dist/components/dialog/footer.d.ts +2 -2
- package/dist/components/dialog/index.d.ts +2 -2
- package/dist/components/dialog/title.d.ts +2 -2
- package/dist/components/divider/context.d.ts +4 -4
- package/dist/components/divider/index.d.ts +2 -2
- package/dist/components/drawer/back.d.ts +2 -2
- package/dist/components/drawer/close.d.ts +2 -2
- package/dist/components/drawer/content.d.ts +2 -2
- package/dist/components/drawer/footer.d.ts +2 -2
- package/dist/components/drawer/header-title.d.ts +2 -2
- package/dist/components/drawer/header.d.ts +2 -2
- package/dist/components/drawer/index.d.ts +2 -2
- package/dist/components/drawer/layout-main.d.ts +2 -2
- package/dist/components/drawer/layout.d.ts +2 -2
- package/dist/components/drawer/menu-item.d.ts +2 -2
- package/dist/components/drawer/menu.d.ts +2 -2
- package/dist/components/drawer/panel.d.ts +2 -2
- package/dist/components/drawer/trigger.d.ts +2 -2
- package/dist/components/drawer/view.d.ts +2 -2
- package/dist/components/flashcard/index.d.ts +9 -9
- package/dist/components/flashcard/index.js +1 -1
- package/dist/components/flashcard/index.js.map +1 -1
- package/dist/components/flashcard/styles.module.css +4 -0
- package/dist/components/floating-card/constants.d.ts +26 -0
- package/dist/components/floating-card/constants.js +40 -0
- package/dist/components/floating-card/constants.js.map +1 -0
- package/dist/components/floating-card/context.d.ts +38 -6
- package/dist/components/floating-card/context.js +24 -3
- package/dist/components/floating-card/context.js.map +1 -1
- package/dist/components/floating-card/hooks/use-card-layout.d.ts +36 -0
- package/dist/components/floating-card/hooks/use-card-layout.js +106 -0
- package/dist/components/floating-card/hooks/use-card-layout.js.map +1 -0
- package/dist/components/floating-card/hooks/use-drag.d.ts +62 -0
- package/dist/components/floating-card/hooks/use-drag.js +100 -0
- package/dist/components/floating-card/hooks/use-drag.js.map +1 -0
- package/dist/components/floating-card/hooks/use-mouse-interaction.d.ts +58 -0
- package/dist/components/floating-card/hooks/use-mouse-interaction.js +91 -0
- package/dist/components/floating-card/hooks/use-mouse-interaction.js.map +1 -0
- package/dist/components/floating-card/hooks/use-resize.d.ts +56 -0
- package/dist/components/floating-card/hooks/use-resize.js +98 -0
- package/dist/components/floating-card/hooks/use-resize.js.map +1 -0
- package/dist/components/floating-card/index.d.ts +6 -2
- package/dist/components/floating-card/index.js +24 -32
- package/dist/components/floating-card/index.js.map +1 -1
- package/dist/components/floating-card/panel.d.ts +69 -0
- package/dist/components/floating-card/panel.js +111 -0
- package/dist/components/floating-card/panel.js.map +1 -0
- package/dist/components/floating-card/provider.d.ts +10 -6
- package/dist/components/floating-card/provider.js +159 -153
- package/dist/components/floating-card/provider.js.map +1 -1
- package/dist/components/floating-card/styles.module.css +93 -39
- package/dist/components/floating-card/types.d.ts +51 -10
- package/dist/components/floating-card/utils.d.ts +8 -85
- package/dist/components/floating-card/utils.js +12 -38
- package/dist/components/floating-card/utils.js.map +1 -1
- package/dist/components/gantt/components/base-elements/range.d.ts +2 -2
- package/dist/components/gantt/components/containers/external/gantt-panel-container/index.d.ts +2 -2
- package/dist/components/gantt/components/containers/internal/index.d.ts +2 -2
- package/dist/components/gantt/components/containers/internal/layout-container/index.d.ts +2 -2
- package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.d.ts +2 -2
- package/dist/components/gantt/components/content-row/block.d.ts +2 -2
- package/dist/components/gantt/components/content-row/bracket.d.ts +3 -3
- package/dist/components/gantt/components/content-row/icon-marker.d.ts +2 -2
- package/dist/components/gantt/components/content-row/index.d.ts +2 -2
- package/dist/components/gantt/components/content-row/marker.d.ts +2 -2
- package/dist/components/gantt/components/content-row/spacer.d.ts +2 -2
- package/dist/components/gantt/components/current-time/index.d.ts +2 -2
- package/dist/components/gantt/components/header/index.d.ts +3 -3
- package/dist/components/gantt/components/panel-row/index.d.ts +2 -2
- package/dist/components/gantt/components/rows-virtualizer/index.d.ts +3 -3
- package/dist/components/gantt/components/timeline/index.d.ts +2 -2
- package/dist/components/gantt/context/index.d.ts +4 -4
- package/dist/components/gantt/context/store/index.d.ts +4 -4
- package/dist/components/gantt/context/temporal-data/index.d.ts +4 -4
- package/dist/components/gantt/hooks/use-layout-subscription/index.js +8 -8
- package/dist/components/gantt/hooks/use-layout-subscription/index.js.map +1 -1
- package/dist/components/hero/context.d.ts +2 -2
- package/dist/components/hero/index.d.ts +2 -2
- package/dist/components/hero/subtitle.d.ts +3 -3
- package/dist/components/hotkey/context.d.ts +2 -2
- package/dist/components/hotkey/index.d.ts +2 -2
- package/dist/components/hotkey/set.d.ts +2 -2
- package/dist/components/icon/context.d.ts +4 -4
- package/dist/components/icon/index.d.ts +2 -2
- package/dist/components/input/context.d.ts +2 -2
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/kanban/card-body.d.ts +2 -2
- package/dist/components/kanban/card-header-actions.d.ts +2 -2
- package/dist/components/kanban/card-header-title.d.ts +2 -2
- package/dist/components/kanban/card-header.d.ts +2 -2
- package/dist/components/kanban/card.d.ts +2 -2
- package/dist/components/kanban/column-actions.d.ts +2 -2
- package/dist/components/kanban/column-container.d.ts +2 -2
- package/dist/components/kanban/column-content.d.ts +2 -2
- package/dist/components/kanban/column-header-actions.d.ts +2 -2
- package/dist/components/kanban/column-header-drag-handle.d.ts +2 -2
- package/dist/components/kanban/column-header-title.d.ts +2 -2
- package/dist/components/kanban/column-header.d.ts +2 -2
- package/dist/components/kanban/column.d.ts +2 -2
- package/dist/components/kanban/context.d.ts +2 -2
- package/dist/components/kanban/header-actions.d.ts +2 -2
- package/dist/components/kanban/header-search.d.ts +2 -2
- package/dist/components/kanban/header-title.d.ts +2 -2
- package/dist/components/kanban/header.d.ts +2 -2
- package/dist/components/kanban/kanban.d.ts +4 -4
- package/dist/components/label/context.d.ts +4 -4
- package/dist/components/label/index.d.ts +2 -2
- package/dist/components/lines/index.d.ts +2 -2
- package/dist/components/link/context.d.ts +2 -2
- package/dist/components/link/index.d.ts +2 -2
- package/dist/components/list/context.d.ts +2 -2
- package/dist/components/list/index.d.ts +2 -2
- package/dist/components/list/item-content.d.ts +2 -2
- package/dist/components/list/item-description.d.ts +2 -2
- package/dist/components/list/item-title.d.ts +2 -2
- package/dist/components/list/item.d.ts +2 -2
- package/dist/components/media-controls/context.d.ts +4 -4
- package/dist/components/media-controls/fullscreen-button.d.ts +2 -2
- package/dist/components/media-controls/index.d.ts +2 -2
- package/dist/components/media-controls/mute-button.d.ts +2 -2
- package/dist/components/media-controls/play-button.d.ts +2 -2
- package/dist/components/media-controls/playback-rate.d.ts +2 -2
- package/dist/components/media-controls/seek-button.d.ts +2 -2
- package/dist/components/media-controls/time-display.d.ts +2 -2
- package/dist/components/media-controls/time-range.d.ts +2 -2
- package/dist/components/media-controls/volume-slider.d.ts +2 -2
- package/dist/components/menu/context.d.ts +2 -2
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/menu/item-description.d.ts +2 -2
- package/dist/components/menu/item-label.d.ts +2 -2
- package/dist/components/menu/item.d.ts +2 -2
- package/dist/components/menu/section.d.ts +2 -2
- package/dist/components/menu/separator.d.ts +2 -2
- package/dist/components/menu/submenu.d.ts +2 -2
- package/dist/components/notice/index.d.ts +3 -2
- package/dist/components/notice/index.js +3 -3
- package/dist/components/notice/index.js.map +1 -1
- package/dist/components/notice/list.d.ts +2 -2
- package/dist/components/notice/list.js +14 -5
- package/dist/components/notice/list.js.map +1 -1
- package/dist/components/notice/notice-icon.d.ts +2 -2
- package/dist/components/notice/types.d.ts +6 -5
- package/dist/components/notice/utils.d.ts +11 -1
- package/dist/components/notice/utils.js +16 -1
- package/dist/components/notice/utils.js.map +1 -1
- package/dist/components/options/context.d.ts +2 -2
- package/dist/components/options/index.d.ts +2 -2
- package/dist/components/options/item-content.d.ts +2 -2
- package/dist/components/options/item-description.d.ts +2 -2
- package/dist/components/options/item-label.d.ts +2 -2
- package/dist/components/options/item.d.ts +2 -2
- package/dist/components/options/section.d.ts +2 -2
- package/dist/components/pagination/context.d.ts +2 -2
- package/dist/components/pagination/index.d.ts +2 -2
- package/dist/components/pagination/next.d.ts +2 -2
- package/dist/components/pagination/pages.d.ts +2 -2
- package/dist/components/pagination/prev.d.ts +2 -2
- package/dist/components/popover/content.d.ts +2 -2
- package/dist/components/popover/footer.d.ts +2 -2
- package/dist/components/popover/index.d.ts +2 -2
- package/dist/components/popover/title.d.ts +2 -2
- package/dist/components/popover/trigger.d.ts +2 -2
- package/dist/components/query-builder/action-element.d.ts +2 -2
- package/dist/components/query-builder/actions.d.ts +4 -4
- package/dist/components/query-builder/combinator-selector.d.ts +2 -2
- package/dist/components/query-builder/index.d.ts +2 -2
- package/dist/components/query-builder/rule-group.d.ts +4 -4
- package/dist/components/query-builder/rule.d.ts +2 -2
- package/dist/components/query-builder/value-editor.d.ts +2 -2
- package/dist/components/query-builder/value-selector.d.ts +2 -2
- package/dist/components/radio/context.d.ts +3 -3
- package/dist/components/radio/group.d.ts +2 -2
- package/dist/components/radio/index.d.ts +2 -2
- package/dist/components/search-field/context.d.ts +4 -4
- package/dist/components/search-field/index.d.ts +2 -2
- package/dist/components/select-field/context.d.ts +4 -4
- package/dist/components/select-field/index.d.ts +2 -2
- package/dist/components/sidenav/avatar.d.ts +2 -2
- package/dist/components/sidenav/content.d.ts +2 -2
- package/dist/components/sidenav/context.d.ts +2 -2
- package/dist/components/sidenav/footer.d.ts +2 -2
- package/dist/components/sidenav/header.d.ts +2 -2
- package/dist/components/sidenav/index.d.ts +2 -2
- package/dist/components/sidenav/item.d.ts +2 -2
- package/dist/components/sidenav/link.d.ts +2 -2
- package/dist/components/sidenav/menu-item.d.ts +2 -2
- package/dist/components/sidenav/menu.d.ts +2 -2
- package/dist/components/sidenav/trigger.d.ts +2 -2
- package/dist/components/skeleton/index.d.ts +2 -2
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/status-indicator/index.d.ts +2 -2
- package/dist/components/switch/context.d.ts +4 -4
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/table/body.d.ts +4 -3
- package/dist/components/table/body.js.map +1 -1
- package/dist/components/table/cell.d.ts +4 -3
- package/dist/components/table/cell.js.map +1 -1
- package/dist/components/table/context.d.ts +2 -2
- package/dist/components/table/features.d.ts +80 -0
- package/dist/components/table/features.js +61 -0
- package/dist/components/table/features.js.map +1 -0
- package/dist/components/table/header-cell.d.ts +4 -3
- package/dist/components/table/header-cell.js.map +1 -1
- package/dist/components/table/header.d.ts +4 -3
- package/dist/components/table/header.js.map +1 -1
- package/dist/components/table/index.d.ts +2 -2
- package/dist/components/table/index.js +40 -49
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/table/row-ordering-feature.d.ts +88 -0
- package/dist/components/table/row-ordering-feature.js +115 -0
- package/dist/components/table/row-ordering-feature.js.map +1 -0
- package/dist/components/table/row.d.ts +4 -3
- package/dist/components/table/row.js.map +1 -1
- package/dist/components/table/types.d.ts +15 -13
- package/dist/components/tabs/context.d.ts +6 -6
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tabs/list.d.ts +2 -2
- package/dist/components/tabs/panel.d.ts +2 -2
- package/dist/components/tabs/tab.d.ts +2 -2
- package/dist/components/text-area-field/context.d.ts +4 -4
- package/dist/components/text-area-field/index.d.ts +2 -2
- package/dist/components/text-field/context.d.ts +4 -4
- package/dist/components/text-field/index.d.ts +2 -2
- package/dist/components/time-field/index.d.ts +2 -2
- package/dist/components/time-field/styles.module.css +4 -0
- package/dist/components/tooltip/context.d.ts +2 -2
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tooltip/trigger.d.ts +2 -2
- package/dist/components/tree/context.d.ts +3 -3
- package/dist/components/tree/index.d.ts +2 -2
- package/dist/components/tree/item-actions.d.ts +2 -2
- package/dist/components/tree/item-content.d.ts +2 -2
- package/dist/components/tree/item-description.d.ts +2 -2
- package/dist/components/tree/item-label.d.ts +2 -2
- package/dist/components/tree/item-prefix-icon.d.ts +2 -2
- package/dist/components/tree/item.d.ts +2 -2
- package/dist/components/tree/lines.d.ts +2 -2
- package/dist/components/video/index.d.ts +2 -2
- package/dist/components/view-stack/context.d.ts +2 -2
- package/dist/components/view-stack/index.d.ts +2 -2
- package/dist/components/view-stack/trigger.d.ts +2 -2
- package/dist/components/view-stack/view.d.ts +2 -2
- package/dist/index.d.ts +5 -3
- package/dist/index.js +4 -2
- package/dist/providers/portal.d.ts +2 -2
- package/dist/providers/theme-provider.d.ts +2 -2
- package/package.json +20 -14
|
@@ -12,10 +12,35 @@
|
|
|
12
12
|
|
|
13
13
|
import { MaybeFactory } from "./utils.js";
|
|
14
14
|
import { PropsWithChildren, ReactNode } from "react";
|
|
15
|
-
import { DockviewApi } from "dockview-react";
|
|
16
15
|
import { UniqueId } from "@accelint/core/utility/uuid";
|
|
17
16
|
|
|
18
17
|
//#region src/components/floating-card/types.d.ts
|
|
18
|
+
/** A point in the provider's coordinate space. */
|
|
19
|
+
type Position = {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
};
|
|
23
|
+
/** A card's rendered size. */
|
|
24
|
+
type Dimensions = {
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
};
|
|
28
|
+
/** The box a card is kept inside while dragging and resizing. */
|
|
29
|
+
type Bounds = {
|
|
30
|
+
top: number;
|
|
31
|
+
left: number;
|
|
32
|
+
right: number;
|
|
33
|
+
bottom: number;
|
|
34
|
+
};
|
|
35
|
+
/** Edge or corner a resize gesture pulls from. */
|
|
36
|
+
type ResizeHandle = 'n' | 's' | 'e' | 'w' | 'ne' | 'nw' | 'se' | 'sw';
|
|
37
|
+
/** Geometry, title, and stacking for one card, tracked by the provider. */
|
|
38
|
+
type FloatingCardLayout = {
|
|
39
|
+
title: string | undefined;
|
|
40
|
+
position: Position;
|
|
41
|
+
dimensions: Dimensions;
|
|
42
|
+
zIndex: number;
|
|
43
|
+
};
|
|
19
44
|
/**
|
|
20
45
|
* Context value providing floating card management functionality.
|
|
21
46
|
*
|
|
@@ -25,20 +50,19 @@ import { UniqueId } from "@accelint/core/utility/uuid";
|
|
|
25
50
|
type FloatingCardContextValue = {
|
|
26
51
|
/** Registry mapping card IDs to their rendered DOM containers */
|
|
27
52
|
cards: Record<UniqueId, HTMLDivElement>;
|
|
28
|
-
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Programmatically closes a floating card by ID.
|
|
55
|
+
*
|
|
56
|
+
* @remarks Closing clears the card's pin state, so a pinned card that closes
|
|
57
|
+
* reopens unpinned.
|
|
58
|
+
*/
|
|
33
59
|
closeCard: (id: UniqueId) => void;
|
|
34
|
-
/** Toggles pin state for a floating card, disabling drag when pinned */
|
|
60
|
+
/** Toggles pin state for a floating card, disabling drag and resize when pinned */
|
|
35
61
|
togglePinCard: (id: UniqueId) => void;
|
|
36
62
|
/** Checks if a floating card is currently pinned */
|
|
37
63
|
isPinned: (id: UniqueId) => boolean;
|
|
38
64
|
/** Subscribes to pin state changes; returns an unsubscribe function */
|
|
39
65
|
subscribeToPinState: (callback: () => void) => () => void;
|
|
40
|
-
/** Dockview API instance, null until FloatingCardProvider's onReady fires */
|
|
41
|
-
api: DockviewApi | null;
|
|
42
66
|
};
|
|
43
67
|
/**
|
|
44
68
|
* Props for the FloatingCard component.
|
|
@@ -109,6 +133,13 @@ type FloatingCardProps = Readonly<{
|
|
|
109
133
|
type FloatingCardHeaderAction = {
|
|
110
134
|
/** Icon to display in the action button */
|
|
111
135
|
icon: ReactNode;
|
|
136
|
+
/**
|
|
137
|
+
* Accessible name for the button.
|
|
138
|
+
*
|
|
139
|
+
* @remarks The button renders an icon with no visible text, so without a
|
|
140
|
+
* label screen readers announce it only as "button".
|
|
141
|
+
*/
|
|
142
|
+
label?: string;
|
|
112
143
|
/** Handler called when the action button is clicked */
|
|
113
144
|
onClick: () => void;
|
|
114
145
|
} | 'divider' | 'pin';
|
|
@@ -146,6 +177,16 @@ type FloatingCardProviderProps = Readonly<PropsWithChildren<{
|
|
|
146
177
|
* per-floating card actions.
|
|
147
178
|
*/
|
|
148
179
|
headerActions?: MaybeFactory<FloatingCardHeaderAction[]>;
|
|
180
|
+
/**
|
|
181
|
+
* Region that cards are kept inside while being dragged and resized.
|
|
182
|
+
*
|
|
183
|
+
* `'provider'` confines cards to the provider element, so a provider that
|
|
184
|
+
* occupies part of the page keeps its cards within that region.
|
|
185
|
+
* `'viewport'` lets cards move anywhere on screen.
|
|
186
|
+
*
|
|
187
|
+
* @defaultValue 'provider'
|
|
188
|
+
*/
|
|
189
|
+
bounds?: 'provider' | 'viewport';
|
|
149
190
|
/**
|
|
150
191
|
* Optional set of card IDs that should be pinned when the provider first mounts.
|
|
151
192
|
*
|
|
@@ -157,5 +198,5 @@ type FloatingCardProviderProps = Readonly<PropsWithChildren<{
|
|
|
157
198
|
className?: string;
|
|
158
199
|
}>>;
|
|
159
200
|
//#endregion
|
|
160
|
-
export { FloatingCardContextValue, FloatingCardHeaderAction, FloatingCardProps, FloatingCardProviderProps };
|
|
201
|
+
export { Bounds, Dimensions, FloatingCardContextValue, FloatingCardHeaderAction, FloatingCardLayout, FloatingCardProps, FloatingCardProviderProps, Position, ResizeHandle };
|
|
161
202
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
-
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
*
|
|
7
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
* governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { FloatingCardHeaderAction } from "./types.js";
|
|
14
|
-
import { FunctionComponent, ReactNode } from "react";
|
|
15
|
-
import { IDockviewHeaderActionsProps } from "dockview-react";
|
|
16
|
-
import { UniqueId } from "@accelint/core/utility/uuid";
|
|
17
|
-
|
|
18
1
|
//#region src/components/floating-card/utils.d.ts
|
|
19
2
|
/**
|
|
20
3
|
* A value that can be static or dynamically computed per floating card.
|
|
@@ -26,79 +9,19 @@ import { UniqueId } from "@accelint/core/utility/uuid";
|
|
|
26
9
|
*/
|
|
27
10
|
type MaybeFactory<T> = T | ((cardId: string) => T);
|
|
28
11
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* Used internally by the floating card system to provide header components
|
|
32
|
-
* with the necessary props and callbacks for rendering customizable headers.
|
|
12
|
+
* Reads a value that callers may supply either directly or as a per-card factory.
|
|
33
13
|
*
|
|
34
|
-
* @
|
|
35
|
-
*
|
|
36
|
-
*
|
|
14
|
+
* @template T - Type of the resolved value.
|
|
15
|
+
* @param value - The static value or factory.
|
|
16
|
+
* @param cardId - Card the value is being resolved for.
|
|
17
|
+
* @returns The value for this card.
|
|
37
18
|
*
|
|
38
19
|
* @example
|
|
39
20
|
* ```tsx
|
|
40
|
-
*
|
|
41
|
-
* return (props: DockviewHeaderProps) => {
|
|
42
|
-
* const icon = typeof options.icon === 'function'
|
|
43
|
-
* ? options.icon(props.id)
|
|
44
|
-
* : options.icon;
|
|
45
|
-
* const actions = typeof options.headerActions === 'function'
|
|
46
|
-
* ? options.headerActions(props.id)
|
|
47
|
-
* : options.headerActions;
|
|
48
|
-
*
|
|
49
|
-
* return (
|
|
50
|
-
* <CustomHeader
|
|
51
|
-
* icon={icon}
|
|
52
|
-
* actions={actions}
|
|
53
|
-
* isPinned={options.isPinned?.(props.id)}
|
|
54
|
-
* onTogglePin={() => options.togglePinCard?.(props.id)}
|
|
55
|
-
* />
|
|
56
|
-
* );
|
|
57
|
-
* };
|
|
58
|
-
* }
|
|
21
|
+
* const icon = resolveMaybeFactory(props.icon, cardId);
|
|
59
22
|
* ```
|
|
60
23
|
*/
|
|
61
|
-
|
|
62
|
-
icon?: MaybeFactory<ReactNode>;
|
|
63
|
-
headerActions?: MaybeFactory<FloatingCardHeaderProps['headerActions']>;
|
|
64
|
-
togglePinCard?: (id: UniqueId) => void;
|
|
65
|
-
isPinned?: (id: UniqueId) => boolean;
|
|
66
|
-
subscribeToPinState?: (callback: () => void) => () => void;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Props passed to floating card header components.
|
|
70
|
-
*
|
|
71
|
-
* @remarks Internal type used by header adapters to map Dockview props to custom header components.
|
|
72
|
-
*/
|
|
73
|
-
type FloatingCardHeaderProps = {
|
|
74
|
-
/** ID of the active floating card panel */
|
|
75
|
-
id?: string;
|
|
76
|
-
/** Title text displayed in the header */
|
|
77
|
-
title?: string;
|
|
78
|
-
/** Optional icon displayed at the start of the header */
|
|
79
|
-
icon?: ReactNode;
|
|
80
|
-
/** Callback to close the entire card group */
|
|
81
|
-
closeGroup: () => void;
|
|
82
|
-
/** Toggles pin state for the specified card */
|
|
83
|
-
togglePinCard?: (id: UniqueId) => void;
|
|
84
|
-
/** Checks if the specified card is pinned */
|
|
85
|
-
isPinned?: (id: UniqueId) => boolean;
|
|
86
|
-
/** Subscribes to pin state changes; returns an unsubscribe function */
|
|
87
|
-
subscribeToPinState?: (callback: () => void) => () => void;
|
|
88
|
-
/** Custom action buttons to render in the header */
|
|
89
|
-
headerActions?: FloatingCardHeaderAction[];
|
|
90
|
-
};
|
|
91
|
-
/**
|
|
92
|
-
* Creates an adapter component to map Dockview's header action props to custom header component props.
|
|
93
|
-
*
|
|
94
|
-
* Handles title change subscriptions and resolves MaybeFactory options (icon, headerActions)
|
|
95
|
-
* either as static values or by invoking factory functions with the active card ID.
|
|
96
|
-
*
|
|
97
|
-
* @param Component - The header component to wrap.
|
|
98
|
-
* @param options - Configuration options including icon and headerActions (static or factory).
|
|
99
|
-
* @returns Adapter component compatible with Dockview's header API.
|
|
100
|
-
*/
|
|
101
|
-
declare function createHeaderAdapter(Component: FunctionComponent<FloatingCardHeaderProps>, options: HeaderAdapterOptions): FunctionComponent<IDockviewHeaderActionsProps>;
|
|
24
|
+
declare function resolveMaybeFactory<T>(value: MaybeFactory<T> | undefined, cardId: string): T | undefined;
|
|
102
25
|
//#endregion
|
|
103
|
-
export {
|
|
26
|
+
export { MaybeFactory, resolveMaybeFactory };
|
|
104
27
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -11,50 +11,24 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
import { useEffect, useState } from "react";
|
|
15
|
-
import { jsx } from "react/jsx-runtime";
|
|
16
|
-
|
|
17
14
|
//#region src/components/floating-card/utils.tsx
|
|
18
15
|
/**
|
|
19
|
-
*
|
|
16
|
+
* Reads a value that callers may supply either directly or as a per-card factory.
|
|
20
17
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
18
|
+
* @template T - Type of the resolved value.
|
|
19
|
+
* @param value - The static value or factory.
|
|
20
|
+
* @param cardId - Card the value is being resolved for.
|
|
21
|
+
* @returns The value for this card.
|
|
23
22
|
*
|
|
24
|
-
* @
|
|
25
|
-
*
|
|
26
|
-
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* const icon = resolveMaybeFactory(props.icon, cardId);
|
|
26
|
+
* ```
|
|
27
27
|
*/
|
|
28
|
-
function
|
|
29
|
-
function
|
|
30
|
-
const panelId = props.panels[0]?.id ?? "";
|
|
31
|
-
const [title, setTitle] = useState(props.activePanel?.title);
|
|
32
|
-
useEffect(() => {
|
|
33
|
-
const panel = props.activePanel;
|
|
34
|
-
if (!panel) return;
|
|
35
|
-
setTitle(panel.title);
|
|
36
|
-
const disposable = panel.api.onDidTitleChange(() => {
|
|
37
|
-
setTitle(panel.title);
|
|
38
|
-
});
|
|
39
|
-
return () => {
|
|
40
|
-
disposable.dispose();
|
|
41
|
-
};
|
|
42
|
-
}, [props.activePanel]);
|
|
43
|
-
return /* @__PURE__ */ jsx(Component, {
|
|
44
|
-
icon: props.activePanel ? typeof options?.icon === "function" ? options.icon(panelId) : options?.icon : void 0,
|
|
45
|
-
headerActions: typeof options?.headerActions === "function" ? options.headerActions(panelId) : options?.headerActions,
|
|
46
|
-
title,
|
|
47
|
-
id: props.activePanel?.id,
|
|
48
|
-
closeGroup: () => props.api.close(),
|
|
49
|
-
togglePinCard: options.togglePinCard,
|
|
50
|
-
isPinned: options.isPinned,
|
|
51
|
-
subscribeToPinState: options.subscribeToPinState
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
HeaderAdapter.displayName = `HeaderAdapter(${Component.displayName ?? Component.name ?? "Anonymous"})`;
|
|
55
|
-
return HeaderAdapter;
|
|
28
|
+
function resolveMaybeFactory(value, cardId) {
|
|
29
|
+
return typeof value === "function" ? value(cardId) : value;
|
|
56
30
|
}
|
|
57
31
|
|
|
58
32
|
//#endregion
|
|
59
|
-
export {
|
|
33
|
+
export { resolveMaybeFactory };
|
|
60
34
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":[],"sources":["../../../src/components/floating-card/utils.tsx"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\
|
|
1
|
+
{"version":3,"file":"utils.js","names":[],"sources":["../../../src/components/floating-card/utils.tsx"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/**\n * A value that can be static or dynamically computed per floating card.\n *\n * Enables per-card customization of props by passing a factory function\n * that receives the card ID and returns the appropriate value.\n *\n * @template T - The type of the static value or factory return type.\n */\nexport type MaybeFactory<T> = T | ((cardId: string) => T);\n\n/**\n * Reads a value that callers may supply either directly or as a per-card factory.\n *\n * @template T - Type of the resolved value.\n * @param value - The static value or factory.\n * @param cardId - Card the value is being resolved for.\n * @returns The value for this card.\n *\n * @example\n * ```tsx\n * const icon = resolveMaybeFactory(props.icon, cardId);\n * ```\n */\nexport function resolveMaybeFactory<T>(\n value: MaybeFactory<T> | undefined,\n cardId: string,\n): T | undefined {\n return typeof value === 'function'\n ? (value as (cardId: string) => T)(cardId)\n : value;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAgB,oBACd,OACA,QACe;AACf,QAAO,OAAO,UAAU,aACnB,MAAgC,OAAO,GACxC"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { GanttRowElementColorProp } from "../../types.js";
|
|
14
14
|
import { HTMLAttributes, PropsWithChildren } from "react";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime217 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/gantt/components/base-elements/range.d.ts
|
|
18
18
|
/** Props for range-based Gantt elements (blocks, spacers). */
|
|
@@ -24,7 +24,7 @@ type RangeProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
24
24
|
/** Visual color variant. @default 'accent' */
|
|
25
25
|
color?: GanttRowElementColorProp;
|
|
26
26
|
};
|
|
27
|
-
declare function Range(props: PropsWithChildren<RangeProps>):
|
|
27
|
+
declare function Range(props: PropsWithChildren<RangeProps>): react_jsx_runtime217.JSX.Element | null;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { Range, RangeProps };
|
|
30
30
|
//# sourceMappingURL=range.d.ts.map
|
package/dist/components/gantt/components/containers/external/gantt-panel-container/index.d.ts
CHANGED
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { PropsWithChildren } from "react";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime239 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/gantt/components/containers/external/gantt-panel-container/index.d.ts
|
|
17
17
|
/** Fixed-width side panel of the Gantt chart for row labels, paired alongside `GanttContentContainer`. */
|
|
18
18
|
declare function GanttPanelContainer({
|
|
19
19
|
children
|
|
20
|
-
}: PropsWithChildren):
|
|
20
|
+
}: PropsWithChildren): react_jsx_runtime239.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { GanttPanelContainer };
|
|
23
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { PropsWithChildren } from "react";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime235 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/gantt/components/containers/internal/index.d.ts
|
|
17
17
|
declare function RootContainer({
|
|
18
18
|
children
|
|
19
|
-
}: PropsWithChildren):
|
|
19
|
+
}: PropsWithChildren): react_jsx_runtime235.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { RootContainer };
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { PropsWithChildren } from "react";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime238 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/gantt/components/containers/internal/layout-container/index.d.ts
|
|
17
17
|
declare function LayoutContainer({
|
|
18
18
|
children
|
|
19
|
-
}: PropsWithChildren):
|
|
19
|
+
}: PropsWithChildren): react_jsx_runtime238.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { LayoutContainer };
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { PropsWithChildren } from "react";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/gantt/components/containers/internal/virtualized-content-height-container/index.d.ts
|
|
17
17
|
declare function VirtualizedContentHeightContainer({
|
|
18
18
|
children
|
|
19
|
-
}: PropsWithChildren):
|
|
19
|
+
}: PropsWithChildren): react_jsx_runtime0.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { VirtualizedContentHeightContainer };
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { RangeProps } from "../base-elements/range.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime218 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/gantt/components/content-row/block.d.ts
|
|
17
17
|
/** Time-range element rendered as a filled bar on the timeline. Supports elapsed-percentage styling and child content. */
|
|
@@ -21,7 +21,7 @@ declare function GanttBlock({
|
|
|
21
21
|
endTimeMs,
|
|
22
22
|
className,
|
|
23
23
|
...rest
|
|
24
|
-
}: RangeProps):
|
|
24
|
+
}: RangeProps): react_jsx_runtime218.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { GanttBlock };
|
|
27
27
|
//# sourceMappingURL=block.d.ts.map
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { PointProps } from "../base-elements/point.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime219 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/gantt/components/content-row/bracket.d.ts
|
|
17
17
|
/** Opening bracket marker at a specific timestamp, indicating the start of a grouped range. */
|
|
18
|
-
declare function GanttBracketOpen(props: PointProps):
|
|
18
|
+
declare function GanttBracketOpen(props: PointProps): react_jsx_runtime219.JSX.Element;
|
|
19
19
|
/** Closing bracket marker at a specific timestamp, indicating the end of a grouped range. */
|
|
20
|
-
declare function GanttBracketClose(props: PointProps):
|
|
20
|
+
declare function GanttBracketClose(props: PointProps): react_jsx_runtime219.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { GanttBracketClose, GanttBracketOpen };
|
|
23
23
|
//# sourceMappingURL=bracket.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { PointProps } from "../base-elements/point.js";
|
|
14
14
|
import { PropsWithChildren } from "react";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime222 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/gantt/components/content-row/icon-marker.d.ts
|
|
18
18
|
type GanttIconMarkerProps = PropsWithChildren<PointProps>;
|
|
@@ -21,7 +21,7 @@ declare function GanttIconMarker({
|
|
|
21
21
|
children,
|
|
22
22
|
color,
|
|
23
23
|
...rest
|
|
24
|
-
}: GanttIconMarkerProps):
|
|
24
|
+
}: GanttIconMarkerProps): react_jsx_runtime222.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { GanttIconMarker };
|
|
27
27
|
//# sourceMappingURL=icon-marker.d.ts.map
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { PropsWithChildren } from "react";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime223 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/gantt/components/content-row/index.d.ts
|
|
17
17
|
/** Row wrapper for content-side elements (blocks, markers, spacers, brackets). Paired 1:1 with `GanttPanelRow`. */
|
|
18
18
|
declare function GanttContentRow({
|
|
19
19
|
children,
|
|
20
20
|
...rest
|
|
21
|
-
}: PropsWithChildren):
|
|
21
|
+
}: PropsWithChildren): react_jsx_runtime223.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { GanttContentRow };
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { PointProps } from "../base-elements/point.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime221 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/gantt/components/content-row/marker.d.ts
|
|
17
17
|
/** Point marker rendered as a vertical line with a dot at a specific timestamp on the timeline. */
|
|
18
|
-
declare function GanttMarker(props: PointProps):
|
|
18
|
+
declare function GanttMarker(props: PointProps): react_jsx_runtime221.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { GanttMarker };
|
|
21
21
|
//# sourceMappingURL=marker.d.ts.map
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { RangeProps } from "../base-elements/range.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime224 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/gantt/components/content-row/spacer.d.ts
|
|
17
17
|
/** Props for the GanttSpacer component. Inherits RangeProps except className. */
|
|
18
18
|
type GanttSpacerProps = Omit<RangeProps, 'className'>;
|
|
19
19
|
/** Time-range connector line between visible elements on the timeline. */
|
|
20
|
-
declare function GanttSpacer(props: GanttSpacerProps):
|
|
20
|
+
declare function GanttSpacer(props: GanttSpacerProps): react_jsx_runtime224.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { GanttSpacer, GanttSpacerProps };
|
|
23
23
|
//# sourceMappingURL=spacer.d.ts.map
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import * as
|
|
13
|
+
import * as react_jsx_runtime225 from "react/jsx-runtime";
|
|
14
14
|
|
|
15
15
|
//#region src/components/gantt/components/current-time/index.d.ts
|
|
16
16
|
/**
|
|
@@ -22,7 +22,7 @@ declare function CurrentTime({
|
|
|
22
22
|
currentTimeMs
|
|
23
23
|
}: {
|
|
24
24
|
currentTimeMs: number;
|
|
25
|
-
}):
|
|
25
|
+
}): react_jsx_runtime225.JSX.Element | null;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { CurrentTime };
|
|
28
28
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { PropsWithChildren } from "react";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime226 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/gantt/components/header/index.d.ts
|
|
17
17
|
declare function ContentHeader({
|
|
18
18
|
children
|
|
19
|
-
}: PropsWithChildren):
|
|
19
|
+
}: PropsWithChildren): react_jsx_runtime226.JSX.Element;
|
|
20
20
|
declare function PanelHeader({
|
|
21
21
|
children
|
|
22
|
-
}: PropsWithChildren):
|
|
22
|
+
}: PropsWithChildren): react_jsx_runtime226.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { ContentHeader, PanelHeader };
|
|
25
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { PropsWithChildren } from "react";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime228 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/gantt/components/panel-row/index.d.ts
|
|
17
17
|
/** Row wrapper for the panel side, typically containing a row label. Paired 1:1 with `GanttContentRow`. */
|
|
18
18
|
declare function GanttPanelRow({
|
|
19
19
|
children,
|
|
20
20
|
...rest
|
|
21
|
-
}: PropsWithChildren):
|
|
21
|
+
}: PropsWithChildren): react_jsx_runtime228.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { GanttPanelRow };
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { PropsWithChildren } from "react";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime229 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/gantt/components/rows-virtualizer/index.d.ts
|
|
17
17
|
declare function ContentRowsVirtualizer({
|
|
18
18
|
children
|
|
19
|
-
}: PropsWithChildren):
|
|
19
|
+
}: PropsWithChildren): react_jsx_runtime229.JSX.Element;
|
|
20
20
|
declare function PanelRowsVirtualizer({
|
|
21
21
|
children
|
|
22
|
-
}: PropsWithChildren):
|
|
22
|
+
}: PropsWithChildren): react_jsx_runtime229.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { ContentRowsVirtualizer, PanelRowsVirtualizer };
|
|
25
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import * as
|
|
13
|
+
import * as react_jsx_runtime231 from "react/jsx-runtime";
|
|
14
14
|
|
|
15
15
|
//#region src/components/gantt/components/timeline/index.d.ts
|
|
16
|
-
declare function Timeline():
|
|
16
|
+
declare function Timeline(): react_jsx_runtime231.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { Timeline };
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { GanttThresholdProps, GanttTimescale } from "../types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react55 from "react";
|
|
15
15
|
import { PropsWithChildren } from "react";
|
|
16
|
-
import * as
|
|
16
|
+
import * as react_jsx_runtime214 from "react/jsx-runtime";
|
|
17
17
|
|
|
18
18
|
//#region src/components/gantt/context/index.d.ts
|
|
19
19
|
type GanttContextValue = {
|
|
@@ -29,7 +29,7 @@ type GanttContextValue = {
|
|
|
29
29
|
assignGanttContentElementRef: (node: HTMLDivElement | null) => void;
|
|
30
30
|
assignGanttPanelElementRef: (node: HTMLDivElement | null) => void;
|
|
31
31
|
};
|
|
32
|
-
declare const GanttContext:
|
|
32
|
+
declare const GanttContext: react55.Context<GanttContextValue | undefined>;
|
|
33
33
|
type GanttProviderProps = {
|
|
34
34
|
/** Start of the total timeline range in epoch milliseconds. */
|
|
35
35
|
startTimeMs: number;
|
|
@@ -52,7 +52,7 @@ declare function GanttProvider({
|
|
|
52
52
|
thresholdProps,
|
|
53
53
|
currentTimeMs,
|
|
54
54
|
rowHeightPx
|
|
55
|
-
}: PropsWithChildren<GanttProviderProps>):
|
|
55
|
+
}: PropsWithChildren<GanttProviderProps>): react_jsx_runtime214.JSX.Element;
|
|
56
56
|
/** @throws {Error} If called outside of a GanttProvider. */
|
|
57
57
|
declare function useGanttContext(): GanttContextValue;
|
|
58
58
|
//#endregion
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { GanttActions, GanttState, GanttStoreProps } from "../../store.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react57 from "react";
|
|
15
15
|
import { PropsWithChildren } from "react";
|
|
16
|
-
import * as
|
|
16
|
+
import * as react_jsx_runtime234 from "react/jsx-runtime";
|
|
17
17
|
import * as zustand0 from "zustand";
|
|
18
18
|
|
|
19
19
|
//#region src/components/gantt/context/store/index.d.ts
|
|
20
|
-
declare const GanttStoreContext:
|
|
20
|
+
declare const GanttStoreContext: react57.Context<(Omit<zustand0.StoreApi<GanttState & GanttActions>, "subscribe"> & {
|
|
21
21
|
subscribe: {
|
|
22
22
|
(listener: (selectedState: GanttState & GanttActions, previousSelectedState: GanttState & GanttActions) => void): () => void;
|
|
23
23
|
<U>(selector: (state: GanttState & GanttActions) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -29,7 +29,7 @@ declare const GanttStoreContext: react55.Context<(Omit<zustand0.StoreApi<GanttSt
|
|
|
29
29
|
declare function GanttStoreProvider({
|
|
30
30
|
children,
|
|
31
31
|
startTimeMs
|
|
32
|
-
}: PropsWithChildren<GanttStoreProps>):
|
|
32
|
+
}: PropsWithChildren<GanttStoreProps>): react_jsx_runtime234.JSX.Element;
|
|
33
33
|
declare function useGanttStore<T>(selector: (state: GanttState & GanttActions) => T): T;
|
|
34
34
|
declare function useGanttStoreApi(): Omit<zustand0.StoreApi<GanttState & GanttActions>, "subscribe"> & {
|
|
35
35
|
subscribe: {
|