@accelint/design-toolkit 9.9.2 → 9.10.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 +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/styles.module.css +19 -3
- 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/styles.module.css +16 -0
- package/dist/components/button/toggle.d.ts +2 -2
- package/dist/components/carousel/context.d.ts +40 -0
- package/dist/components/carousel/context.js +55 -0
- package/dist/components/carousel/context.js.map +1 -0
- package/dist/components/carousel/gallery.d.ts +38 -0
- package/dist/components/carousel/gallery.js +84 -0
- package/dist/components/carousel/gallery.js.map +1 -0
- package/dist/components/carousel/index.d.ts +56 -0
- package/dist/components/carousel/index.js +66 -0
- package/dist/components/carousel/index.js.map +1 -0
- package/dist/components/carousel/navigation.d.ts +51 -0
- package/dist/components/carousel/navigation.js +82 -0
- package/dist/components/carousel/navigation.js.map +1 -0
- package/dist/components/carousel/position.d.ts +33 -0
- package/dist/components/carousel/position.js +48 -0
- package/dist/components/carousel/position.js.map +1 -0
- package/dist/components/carousel/select.d.ts +38 -0
- package/dist/components/carousel/select.js +69 -0
- package/dist/components/carousel/select.js.map +1 -0
- package/dist/components/carousel/style.module.css +62 -0
- package/dist/components/carousel/types.d.ts +87 -0
- package/dist/components/carousel/types.js +12 -0
- package/dist/components/carousel/viewer.d.ts +40 -0
- package/dist/components/carousel/viewer.js +75 -0
- package/dist/components/carousel/viewer.js.map +1 -0
- package/dist/components/checkbox/context.d.ts +3 -3
- package/dist/components/checkbox/group.d.ts +2 -2
- package/dist/components/checkbox/group.js +1 -1
- 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/combobox-field/index.js +1 -1
- package/dist/components/combobox-field/styles.module.css +12 -0
- 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/styles.module.css +23 -0
- 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/context.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/styles.module.css +54 -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/floating-card/context.d.ts +37 -5
- package/dist/components/floating-card/context.js +18 -3
- package/dist/components/floating-card/context.js.map +1 -1
- package/dist/components/floating-card/index.d.ts +51 -1
- package/dist/components/floating-card/index.js +41 -11
- package/dist/components/floating-card/index.js.map +1 -1
- package/dist/components/floating-card/provider.d.ts +94 -17
- package/dist/components/floating-card/provider.js +116 -20
- package/dist/components/floating-card/provider.js.map +1 -1
- package/dist/components/floating-card/styles.module.css +5 -0
- package/dist/components/gantt/components/base-elements/point.d.ts +28 -0
- package/dist/components/gantt/components/base-elements/point.js +44 -0
- package/dist/components/gantt/components/base-elements/point.js.map +1 -0
- package/dist/components/gantt/components/base-elements/range.d.ts +30 -0
- package/dist/components/gantt/components/base-elements/range.js +51 -0
- package/dist/components/gantt/components/base-elements/range.js.map +1 -0
- package/dist/components/gantt/components/base-elements/use-point-element-layout/index.d.ts +12 -0
- package/dist/components/gantt/components/base-elements/use-point-element-layout/index.js +42 -0
- package/dist/components/gantt/components/base-elements/use-point-element-layout/index.js.map +1 -0
- package/dist/components/gantt/components/base-elements/use-range-element-layout/index.d.ts +23 -0
- package/dist/components/gantt/components/base-elements/use-range-element-layout/index.js +50 -0
- package/dist/components/gantt/components/base-elements/use-range-element-layout/index.js.map +1 -0
- package/dist/components/gantt/components/containers/external/gantt-content-container/index.d.ts +23 -0
- package/dist/components/gantt/components/containers/external/gantt-content-container/index.js +40 -0
- package/dist/components/gantt/components/containers/external/gantt-content-container/index.js.map +1 -0
- package/dist/components/gantt/components/containers/external/gantt-panel-container/index.d.ts +23 -0
- package/dist/components/gantt/components/containers/external/gantt-panel-container/index.js +33 -0
- package/dist/components/gantt/components/containers/external/gantt-panel-container/index.js.map +1 -0
- package/dist/components/gantt/components/containers/external/styles.module.css +32 -0
- package/dist/components/gantt/components/containers/internal/index.d.ts +22 -0
- package/dist/components/gantt/components/containers/internal/index.js +35 -0
- package/dist/components/gantt/components/containers/internal/index.js.map +1 -0
- package/dist/components/gantt/components/containers/internal/layout-container/index.d.ts +22 -0
- package/dist/components/gantt/components/containers/internal/layout-container/index.js +27 -0
- package/dist/components/gantt/components/containers/internal/layout-container/index.js.map +1 -0
- package/dist/components/gantt/components/containers/internal/styles.module.css +35 -0
- package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.d.ts +22 -0
- package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.js +38 -0
- package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.js.map +1 -0
- package/dist/components/gantt/components/content-row/block.d.ts +27 -0
- package/dist/components/gantt/components/content-row/block.js +39 -0
- package/dist/components/gantt/components/content-row/block.js.map +1 -0
- package/dist/components/gantt/components/content-row/bracket.d.ts +23 -0
- package/dist/components/gantt/components/content-row/bracket.js +48 -0
- package/dist/components/gantt/components/content-row/bracket.js.map +1 -0
- package/dist/components/gantt/components/content-row/icon-marker.d.ts +27 -0
- package/dist/components/gantt/components/content-row/icon-marker.js +41 -0
- package/dist/components/gantt/components/content-row/icon-marker.js.map +1 -0
- package/dist/components/gantt/components/content-row/index.d.ts +24 -0
- package/dist/components/gantt/components/content-row/index.js +32 -0
- package/dist/components/gantt/components/content-row/index.js.map +1 -0
- package/dist/components/gantt/components/content-row/marker.d.ts +21 -0
- package/dist/components/gantt/components/content-row/marker.js +35 -0
- package/dist/components/gantt/components/content-row/marker.js.map +1 -0
- package/dist/components/gantt/components/content-row/spacer.d.ts +23 -0
- package/dist/components/gantt/components/content-row/spacer.js +35 -0
- package/dist/components/gantt/components/content-row/spacer.js.map +1 -0
- package/dist/components/gantt/components/content-row/styles.module.css +198 -0
- package/dist/components/gantt/components/content-row/use-elapsed-percentage/index.d.ts +19 -0
- package/dist/components/gantt/components/content-row/use-elapsed-percentage/index.js +27 -0
- package/dist/components/gantt/components/content-row/use-elapsed-percentage/index.js.map +1 -0
- package/dist/components/gantt/components/content-row/use-is-elapsed/index.d.ts +10 -0
- package/dist/components/gantt/components/content-row/use-is-elapsed/index.js +24 -0
- package/dist/components/gantt/components/content-row/use-is-elapsed/index.js.map +1 -0
- package/dist/components/gantt/components/current-time/index.d.ts +28 -0
- package/dist/components/gantt/components/current-time/index.js +63 -0
- package/dist/components/gantt/components/current-time/index.js.map +1 -0
- package/dist/components/gantt/components/current-time/styles.module.css +42 -0
- package/dist/components/gantt/components/current-time/use-current-time-layout/index.d.ts +31 -0
- package/dist/components/gantt/components/current-time/use-current-time-layout/index.js +58 -0
- package/dist/components/gantt/components/current-time/use-current-time-layout/index.js.map +1 -0
- package/dist/components/gantt/components/header/index.d.ts +25 -0
- package/dist/components/gantt/components/header/index.js +41 -0
- package/dist/components/gantt/components/header/index.js.map +1 -0
- package/dist/components/gantt/components/header/styles.module.css +23 -0
- package/dist/components/gantt/components/panel-row/index.d.ts +24 -0
- package/dist/components/gantt/components/panel-row/index.js +33 -0
- package/dist/components/gantt/components/panel-row/index.js.map +1 -0
- package/dist/components/gantt/components/panel-row/styles.module.css +24 -0
- package/dist/components/gantt/components/rows-virtualizer/index.d.ts +25 -0
- package/dist/components/gantt/components/rows-virtualizer/index.js +67 -0
- package/dist/components/gantt/components/rows-virtualizer/index.js.map +1 -0
- package/dist/components/gantt/components/rows-virtualizer/styles.module.css +30 -0
- package/dist/components/gantt/components/rows-virtualizer/use-rendered-rows/index.d.ts +29 -0
- package/dist/components/gantt/components/rows-virtualizer/use-rendered-rows/index.js +57 -0
- package/dist/components/gantt/components/rows-virtualizer/use-rendered-rows/index.js.map +1 -0
- package/dist/components/gantt/components/rows-virtualizer/use-scroll-sync/index.d.ts +10 -0
- package/dist/components/gantt/components/rows-virtualizer/use-scroll-sync/index.js +58 -0
- package/dist/components/gantt/components/rows-virtualizer/use-scroll-sync/index.js.map +1 -0
- package/dist/components/gantt/components/styles.module.css +46 -0
- package/dist/components/gantt/components/timeline/index.d.ts +19 -0
- package/dist/components/gantt/components/timeline/index.js +45 -0
- package/dist/components/gantt/components/timeline/index.js.map +1 -0
- package/dist/components/gantt/components/timeline/use-timeline-transform/index.d.ts +29 -0
- package/dist/components/gantt/components/timeline/use-timeline-transform/index.js +33 -0
- package/dist/components/gantt/components/timeline/use-timeline-transform/index.js.map +1 -0
- package/dist/components/gantt/components/timeline-chunk/index.d.ts +25 -0
- package/dist/components/gantt/components/timeline-chunk/index.js +43 -0
- package/dist/components/gantt/components/timeline-chunk/index.js.map +1 -0
- package/dist/components/gantt/constants.d.ts +31 -0
- package/dist/components/gantt/constants.js +57 -0
- package/dist/components/gantt/constants.js.map +1 -0
- package/dist/components/gantt/context/index.d.ts +60 -0
- package/dist/components/gantt/context/index.js +78 -0
- package/dist/components/gantt/context/index.js.map +1 -0
- package/dist/components/gantt/context/store/index.d.ts +45 -0
- package/dist/components/gantt/context/store/index.js +42 -0
- package/dist/components/gantt/context/store/index.js.map +1 -0
- package/dist/components/gantt/context/temporal-data/index.d.ts +48 -0
- package/dist/components/gantt/context/temporal-data/index.js +80 -0
- package/dist/components/gantt/context/temporal-data/index.js.map +1 -0
- package/dist/components/gantt/gantt.d.ts +50 -0
- package/dist/components/gantt/gantt.js +51 -0
- package/dist/components/gantt/gantt.js.map +1 -0
- package/dist/components/gantt/hooks/use-horizontal-scroll-update/index.d.ts +22 -0
- package/dist/components/gantt/hooks/use-horizontal-scroll-update/index.js +36 -0
- package/dist/components/gantt/hooks/use-horizontal-scroll-update/index.js.map +1 -0
- package/dist/components/gantt/hooks/use-layout-subscription/index.d.ts +26 -0
- package/dist/components/gantt/hooks/use-layout-subscription/index.js +45 -0
- package/dist/components/gantt/hooks/use-layout-subscription/index.js.map +1 -0
- package/dist/components/gantt/hooks/use-resize-intersection-effect/index.d.ts +26 -0
- package/dist/components/gantt/hooks/use-resize-intersection-effect/index.js +50 -0
- package/dist/components/gantt/hooks/use-resize-intersection-effect/index.js.map +1 -0
- package/dist/components/gantt/hooks/use-root-element-height/index.d.ts +5 -0
- package/dist/components/gantt/hooks/use-root-element-height/index.js +24 -0
- package/dist/components/gantt/hooks/use-root-element-height/index.js.map +1 -0
- package/dist/components/gantt/hooks/use-scrollbar-height/index.d.ts +5 -0
- package/dist/components/gantt/hooks/use-scrollbar-height/index.js +40 -0
- package/dist/components/gantt/hooks/use-scrollbar-height/index.js.map +1 -0
- package/dist/components/gantt/hooks/use-total-data-region-thresholds/index.d.ts +19 -0
- package/dist/components/gantt/hooks/use-total-data-region-thresholds/index.js +87 -0
- package/dist/components/gantt/hooks/use-total-data-region-thresholds/index.js.map +1 -0
- package/dist/components/gantt/hooks/use-vertical-scroll-update/index.d.ts +22 -0
- package/dist/components/gantt/hooks/use-vertical-scroll-update/index.js +38 -0
- package/dist/components/gantt/hooks/use-vertical-scroll-update/index.js.map +1 -0
- package/dist/components/gantt/public-types.d.ts +31 -0
- package/dist/components/gantt/public-types.js +12 -0
- package/dist/components/gantt/store.d.ts +51 -0
- package/dist/components/gantt/store.js +46 -0
- package/dist/components/gantt/store.js.map +1 -0
- package/dist/components/gantt/styles.module.css +30 -0
- package/dist/components/gantt/types.d.ts +67 -0
- package/dist/components/gantt/types.js +12 -0
- package/dist/components/gantt/utils/conversions.d.ts +23 -0
- package/dist/components/gantt/utils/conversions.js +34 -0
- package/dist/components/gantt/utils/conversions.js.map +1 -0
- package/dist/components/gantt/utils/dates.d.ts +11 -0
- package/dist/components/gantt/utils/dates.js +41 -0
- package/dist/components/gantt/utils/dates.js.map +1 -0
- package/dist/components/gantt/utils/formatting.d.ts +5 -0
- package/dist/components/gantt/utils/formatting.js +54 -0
- package/dist/components/gantt/utils/formatting.js.map +1 -0
- package/dist/components/gantt/utils/generation.d.ts +19 -0
- package/dist/components/gantt/utils/generation.js +37 -0
- package/dist/components/gantt/utils/generation.js.map +1 -0
- package/dist/components/gantt/utils/helpers.d.ts +26 -0
- package/dist/components/gantt/utils/helpers.js +55 -0
- package/dist/components/gantt/utils/helpers.js.map +1 -0
- package/dist/components/gantt/utils/layout.d.ts +32 -0
- package/dist/components/gantt/utils/layout.js +55 -0
- package/dist/components/gantt/utils/layout.js.map +1 -0
- package/dist/components/gantt/utils/thresholds.d.ts +52 -0
- package/dist/components/gantt/utils/thresholds.js +116 -0
- package/dist/components/gantt/utils/thresholds.js.map +1 -0
- 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 +2 -2
- package/dist/components/hero/title.d.ts +2 -2
- package/dist/components/hotkey/context.d.ts +4 -4
- 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/styles.module.css +12 -0
- package/dist/components/menu/submenu.d.ts +2 -2
- package/dist/components/notice/index.d.ts +2 -2
- package/dist/components/notice/index.js +1 -0
- package/dist/components/notice/index.js.map +1 -1
- package/dist/components/notice/list.d.ts +2 -2
- package/dist/components/notice/list.js +10 -1
- package/dist/components/notice/list.js.map +1 -1
- package/dist/components/notice/notice-icon.d.ts +2 -2
- package/dist/components/notice/styles.module.css +27 -0
- 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/styles.module.css +34 -0
- 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/query-builder/value-selector.js +1 -1
- 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/styles.module.css +10 -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/switch/styles.module.css +8 -0
- package/dist/components/table/body.d.ts +2 -2
- package/dist/components/table/cell.d.ts +2 -2
- package/dist/components/table/context.d.ts +2 -2
- package/dist/components/table/header-cell.d.ts +2 -2
- package/dist/components/table/header.d.ts +2 -2
- package/dist/components/table/index.d.ts +2 -2
- package/dist/components/table/index.js +2 -2
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/table/row.d.ts +2 -2
- 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/tooltip/context.d.ts +2 -2
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tooltip/styles.module.css +35 -0
- 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/index.js +20 -10
- package/dist/components/tree/index.js.map +1 -1
- 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-content.js +3 -2
- package/dist/components/tree/item-content.js.map +1 -1
- 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/tree/types.d.ts +1 -0
- package/dist/components/video/index.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/hooks/use-tree/actions/cache.d.ts +20 -3
- package/dist/hooks/use-tree/actions/cache.js +110 -2
- package/dist/hooks/use-tree/actions/cache.js.map +1 -1
- package/dist/hooks/use-tree/actions/index.d.ts +2 -1
- package/dist/hooks/use-tree/actions/index.js +70 -11
- package/dist/hooks/use-tree/actions/index.js.map +1 -1
- package/dist/hooks/use-tree/state/index.d.ts +20 -1
- package/dist/hooks/use-tree/state/index.js +22 -2
- package/dist/hooks/use-tree/state/index.js.map +1 -1
- package/dist/hooks/use-tree/types.d.ts +14 -0
- package/dist/index.d.ts +24 -5
- package/dist/index.js +27 -10
- package/dist/providers/portal.d.ts +2 -2
- package/dist/providers/theme-provider.d.ts +2 -2
- package/package.json +64 -6
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
|
|
14
|
+
import { GANTT_ROW_ELEMENT_HEIGHT_PX } from "../../constants.js";
|
|
15
|
+
import { Point } from "../base-elements/point.js";
|
|
16
|
+
import { useIsElapsed } from "./use-is-elapsed/index.js";
|
|
17
|
+
import { jsx } from "react/jsx-runtime";
|
|
18
|
+
import styles from "./styles.module.css";
|
|
19
|
+
|
|
20
|
+
//#region src/components/gantt/components/content-row/icon-marker.tsx
|
|
21
|
+
/** Point marker that displays a custom icon at a specific timestamp. Pass an icon element as `children`. */
|
|
22
|
+
function GanttIconMarker({ children, color = "accent", ...rest }) {
|
|
23
|
+
const isElapsed = useIsElapsed({ timeMs: rest.timeMs });
|
|
24
|
+
return /* @__PURE__ */ jsx(Point, {
|
|
25
|
+
className: styles["marker-container"],
|
|
26
|
+
"data-height": GANTT_ROW_ELEMENT_HEIGHT_PX,
|
|
27
|
+
"data-elapsed": isElapsed || void 0,
|
|
28
|
+
color,
|
|
29
|
+
...rest,
|
|
30
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
31
|
+
className: styles["marker-icon"],
|
|
32
|
+
"data-color": color,
|
|
33
|
+
"data-elapsed": isElapsed || void 0,
|
|
34
|
+
children
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
export { GanttIconMarker };
|
|
41
|
+
//# sourceMappingURL=icon-marker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-marker.js","names":[],"sources":["../../../../../src/components/gantt/components/content-row/icon-marker.tsx"],"sourcesContent":["/*\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\nimport { GANTT_ROW_ELEMENT_HEIGHT_PX } from '../../constants';\nimport { Point, type PointProps } from '../base-elements/point';\nimport styles from './styles.module.css';\nimport { useIsElapsed } from './use-is-elapsed';\nimport type { PropsWithChildren } from 'react';\n\ntype GanttIconMarkerProps = PropsWithChildren<PointProps>;\n\n/** Point marker that displays a custom icon at a specific timestamp. Pass an icon element as `children`. */\nexport function GanttIconMarker({\n children,\n color = 'accent',\n ...rest\n}: GanttIconMarkerProps) {\n const isElapsed = useIsElapsed({ timeMs: rest.timeMs });\n\n return (\n <Point\n className={styles['marker-container']}\n data-height={GANTT_ROW_ELEMENT_HEIGHT_PX}\n data-elapsed={isElapsed || undefined}\n color={color}\n {...rest}\n >\n <span\n className={styles['marker-icon']}\n data-color={color}\n data-elapsed={isElapsed || undefined}\n >\n {children}\n </span>\n </Point>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,gBAAgB,EAC9B,UACA,QAAQ,UACR,GAAG,QACoB;CACvB,MAAM,YAAY,aAAa,EAAE,QAAQ,KAAK,QAAQ,CAAC;AAEvD,QACE,oBAAC;EACC,WAAW,OAAO;EAClB,eAAa;EACb,gBAAc,aAAa;EACpB;EACP,GAAI;YAEJ,oBAAC;GACC,WAAW,OAAO;GAClB,cAAY;GACZ,gBAAc,aAAa;GAE1B;IACI;GACD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { PropsWithChildren } from "react";
|
|
14
|
+
import * as react_jsx_runtime202 from "react/jsx-runtime";
|
|
15
|
+
|
|
16
|
+
//#region src/components/gantt/components/content-row/index.d.ts
|
|
17
|
+
/** Row wrapper for content-side elements (blocks, markers, spacers, brackets). Paired 1:1 with `GanttPanelRow`. */
|
|
18
|
+
declare function GanttContentRow({
|
|
19
|
+
children,
|
|
20
|
+
...rest
|
|
21
|
+
}: PropsWithChildren): react_jsx_runtime202.JSX.Element;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { GanttContentRow };
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
|
|
14
|
+
import { useGanttContext } from "../../context/index.js";
|
|
15
|
+
import { jsx } from "react/jsx-runtime";
|
|
16
|
+
import styles from "./styles.module.css";
|
|
17
|
+
|
|
18
|
+
//#region src/components/gantt/components/content-row/index.tsx
|
|
19
|
+
/** Row wrapper for content-side elements (blocks, markers, spacers, brackets). Paired 1:1 with `GanttPanelRow`. */
|
|
20
|
+
function GanttContentRow({ children, ...rest }) {
|
|
21
|
+
const { rowHeightPx } = useGanttContext();
|
|
22
|
+
return /* @__PURE__ */ jsx("div", {
|
|
23
|
+
className: styles["row-container"],
|
|
24
|
+
"data-height": rowHeightPx,
|
|
25
|
+
...rest,
|
|
26
|
+
children
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { GanttContentRow };
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/gantt/components/content-row/index.tsx"],"sourcesContent":["/*\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\nimport { useGanttContext } from '../../context';\nimport styles from './styles.module.css';\nimport type { PropsWithChildren } from 'react';\n\n/** Row wrapper for content-side elements (blocks, markers, spacers, brackets). Paired 1:1 with `GanttPanelRow`. */\nexport function GanttContentRow({ children, ...rest }: PropsWithChildren) {\n const { rowHeightPx } = useGanttContext();\n\n return (\n <div\n className={styles['row-container']}\n data-height={rowHeightPx}\n // spread props, including virtualizer-augmented style prop, if used\n {...rest}\n >\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAiBA,SAAgB,gBAAgB,EAAE,UAAU,GAAG,QAA2B;CACxE,MAAM,EAAE,gBAAgB,iBAAiB;AAEzC,QACE,oBAAC;EACC,WAAW,OAAO;EAClB,eAAa;EAEb,GAAI;EAEH;GACG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { PointProps } from "../base-elements/point.js";
|
|
14
|
+
import * as react_jsx_runtime208 from "react/jsx-runtime";
|
|
15
|
+
|
|
16
|
+
//#region src/components/gantt/components/content-row/marker.d.ts
|
|
17
|
+
/** Point marker rendered as a vertical line with a dot at a specific timestamp on the timeline. */
|
|
18
|
+
declare function GanttMarker(props: PointProps): react_jsx_runtime208.JSX.Element;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { GanttMarker };
|
|
21
|
+
//# sourceMappingURL=marker.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
|
|
14
|
+
import { GANTT_ROW_ELEMENT_HEIGHT_PX } from "../../constants.js";
|
|
15
|
+
import { Point } from "../base-elements/point.js";
|
|
16
|
+
import { useIsElapsed } from "./use-is-elapsed/index.js";
|
|
17
|
+
import { jsx } from "react/jsx-runtime";
|
|
18
|
+
import styles from "./styles.module.css";
|
|
19
|
+
|
|
20
|
+
//#region src/components/gantt/components/content-row/marker.tsx
|
|
21
|
+
/** Point marker rendered as a vertical line with a dot at a specific timestamp on the timeline. */
|
|
22
|
+
function GanttMarker(props) {
|
|
23
|
+
const isElapsed = useIsElapsed({ timeMs: props.timeMs });
|
|
24
|
+
return /* @__PURE__ */ jsx(Point, {
|
|
25
|
+
className: styles["marker-container"],
|
|
26
|
+
"data-height": GANTT_ROW_ELEMENT_HEIGHT_PX,
|
|
27
|
+
"data-elapsed": isElapsed || void 0,
|
|
28
|
+
...props,
|
|
29
|
+
children: /* @__PURE__ */ jsx("div", { className: styles["marker-point"] })
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { GanttMarker };
|
|
35
|
+
//# sourceMappingURL=marker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marker.js","names":[],"sources":["../../../../../src/components/gantt/components/content-row/marker.tsx"],"sourcesContent":["/*\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\nimport { GANTT_ROW_ELEMENT_HEIGHT_PX } from '../../constants';\nimport { Point, type PointProps } from '../base-elements/point';\nimport styles from './styles.module.css';\nimport { useIsElapsed } from './use-is-elapsed';\n\n/** Point marker rendered as a vertical line with a dot at a specific timestamp on the timeline. */\nexport function GanttMarker(props: PointProps) {\n const isElapsed = useIsElapsed({ timeMs: props.timeMs });\n\n return (\n <Point\n className={styles['marker-container']}\n data-height={GANTT_ROW_ELEMENT_HEIGHT_PX}\n data-elapsed={isElapsed || undefined}\n {...props}\n >\n <div className={styles['marker-point']} />\n </Point>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAkBA,SAAgB,YAAY,OAAmB;CAC7C,MAAM,YAAY,aAAa,EAAE,QAAQ,MAAM,QAAQ,CAAC;AAExD,QACE,oBAAC;EACC,WAAW,OAAO;EAClB,eAAa;EACb,gBAAc,aAAa;EAC3B,GAAI;YAEJ,oBAAC,SAAI,WAAW,OAAO,kBAAmB;GACpC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { RangeProps } from "../base-elements/range.js";
|
|
14
|
+
import * as react_jsx_runtime209 from "react/jsx-runtime";
|
|
15
|
+
|
|
16
|
+
//#region src/components/gantt/components/content-row/spacer.d.ts
|
|
17
|
+
/** Props for the GanttSpacer component. Inherits RangeProps except className. */
|
|
18
|
+
type GanttSpacerProps = Omit<RangeProps, 'className'>;
|
|
19
|
+
/** Time-range connector line between visible elements on the timeline. */
|
|
20
|
+
declare function GanttSpacer(props: GanttSpacerProps): react_jsx_runtime209.JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { GanttSpacer, GanttSpacerProps };
|
|
23
|
+
//# sourceMappingURL=spacer.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
|
|
14
|
+
import { Range } from "../base-elements/range.js";
|
|
15
|
+
import { useElapsedPercentage } from "./use-elapsed-percentage/index.js";
|
|
16
|
+
import { jsx } from "react/jsx-runtime";
|
|
17
|
+
import styles from "./styles.module.css";
|
|
18
|
+
|
|
19
|
+
//#region src/components/gantt/components/content-row/spacer.tsx
|
|
20
|
+
/** Time-range connector line between visible elements on the timeline. */
|
|
21
|
+
function GanttSpacer(props) {
|
|
22
|
+
const elapsedPct = useElapsedPercentage({
|
|
23
|
+
startMs: props.startTimeMs,
|
|
24
|
+
endMs: props.endTimeMs
|
|
25
|
+
});
|
|
26
|
+
return /* @__PURE__ */ jsx(Range, {
|
|
27
|
+
...props,
|
|
28
|
+
className: styles["row-spacer"],
|
|
29
|
+
"data-elapsed-pct": elapsedPct
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { GanttSpacer };
|
|
35
|
+
//# sourceMappingURL=spacer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spacer.js","names":[],"sources":["../../../../../src/components/gantt/components/content-row/spacer.tsx"],"sourcesContent":["/*\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\nimport { Range, type RangeProps } from '../base-elements/range';\nimport styles from './styles.module.css';\nimport { useElapsedPercentage } from './use-elapsed-percentage';\n\n/** Props for the GanttSpacer component. Inherits RangeProps except className. */\nexport type GanttSpacerProps = Omit<RangeProps, 'className'>;\n\n/** Time-range connector line between visible elements on the timeline. */\nexport function GanttSpacer(props: GanttSpacerProps) {\n const elapsedPct = useElapsedPercentage({\n startMs: props.startTimeMs,\n endMs: props.endTimeMs,\n });\n\n return (\n <Range\n {...props}\n className={styles['row-spacer']}\n data-elapsed-pct={elapsedPct}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoBA,SAAgB,YAAY,OAAyB;CACnD,MAAM,aAAa,qBAAqB;EACtC,SAAS,MAAM;EACf,OAAO,MAAM;EACd,CAAC;AAEF,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,OAAO;EAClB,oBAAkB;GAClB"}
|
|
@@ -0,0 +1,198 @@
|
|
|
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
|
+
@reference '@accelint/design-foundation/styles';
|
|
14
|
+
|
|
15
|
+
@utility bracket-pseudo-base {
|
|
16
|
+
@apply rounded-small absolute border border-current border-t-transparent border-b-transparent border-l-transparent content-[''];
|
|
17
|
+
left: 4px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@layer components.l1 {
|
|
21
|
+
.row-container {
|
|
22
|
+
--height: attr(data-height px);
|
|
23
|
+
--row-padding: 4.5px;
|
|
24
|
+
--element-height: calc(100% - calc(var(--row-padding) * 2));
|
|
25
|
+
|
|
26
|
+
@apply relative flex items-center border-b;
|
|
27
|
+
padding-block: var(--row-padding);
|
|
28
|
+
height: var(--height);
|
|
29
|
+
border-color: var(--outline-static);
|
|
30
|
+
|
|
31
|
+
& .row-block,
|
|
32
|
+
& .bracket-container,
|
|
33
|
+
& .marker-container {
|
|
34
|
+
height: var(--element-height);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.row-block {
|
|
39
|
+
--block-height: attr(data-height px);
|
|
40
|
+
--elapsed-pct: attr(data-elapsed-pct %);
|
|
41
|
+
--bg-color: var(--bg-interactive-muted);
|
|
42
|
+
--outline-color: var(--outline-interactive);
|
|
43
|
+
--elapsed-color: var(--bg-interactive-muted);
|
|
44
|
+
|
|
45
|
+
@apply rounded-small p-xs absolute flex flex-nowrap items-center overflow-hidden whitespace-nowrap;
|
|
46
|
+
|
|
47
|
+
height: var(--block-height);
|
|
48
|
+
border: 1px solid transparent;
|
|
49
|
+
background:
|
|
50
|
+
linear-gradient(
|
|
51
|
+
to right,
|
|
52
|
+
var(--elapsed-color) var(--elapsed-pct, 0%),
|
|
53
|
+
var(--bg-color) var(--elapsed-pct, 0%)
|
|
54
|
+
)
|
|
55
|
+
padding-box,
|
|
56
|
+
linear-gradient(
|
|
57
|
+
to right,
|
|
58
|
+
var(--elapsed-color) var(--elapsed-pct, 0%),
|
|
59
|
+
var(--outline-color) var(--elapsed-pct, 0%)
|
|
60
|
+
)
|
|
61
|
+
border-box;
|
|
62
|
+
|
|
63
|
+
@variant color-accent {
|
|
64
|
+
--bg-color: var(--bg-accent-primary-muted);
|
|
65
|
+
--outline-color: var(--outline-accent-primary-bold);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@variant color-serious {
|
|
69
|
+
--bg-color: var(--bg-serious-muted);
|
|
70
|
+
--outline-color: var(--outline-serious-bold);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@variant color-critical {
|
|
74
|
+
--bg-color: var(--bg-critical-muted);
|
|
75
|
+
--outline-color: var(--outline-critical-bold);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.row-spacer {
|
|
80
|
+
--elapsed-pct: attr(data-elapsed-pct %);
|
|
81
|
+
|
|
82
|
+
@apply absolute h-px;
|
|
83
|
+
transform: translateX(var(--translate-x));
|
|
84
|
+
width: var(--width);
|
|
85
|
+
background: linear-gradient(
|
|
86
|
+
to right,
|
|
87
|
+
var(--fg-inverse-muted) var(--elapsed-pct, 0%),
|
|
88
|
+
currentColor var(--elapsed-pct, 0%)
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
@variant color-accent {
|
|
92
|
+
@apply fg-accent-primary-bold;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@variant color-serious {
|
|
96
|
+
@apply fg-serious-bold;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@variant color-critical {
|
|
100
|
+
@apply fg-critical-bold;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.bracket-container {
|
|
105
|
+
@apply absolute;
|
|
106
|
+
|
|
107
|
+
--rotate: attr(data-rotate deg);
|
|
108
|
+
transform: translateX(var(--translate-x)) rotate(var(--rotate));
|
|
109
|
+
|
|
110
|
+
&[data-elapsed] {
|
|
111
|
+
@apply fg-inverse-muted;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&::before {
|
|
115
|
+
@apply bracket-pseudo-base -top-px rotate-45;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&::after {
|
|
119
|
+
@apply bracket-pseudo-base -bottom-px -rotate-45;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@variant color-accent {
|
|
123
|
+
@apply fg-accent-primary-bold;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@variant color-serious {
|
|
127
|
+
@apply fg-serious-bold;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@variant color-critical {
|
|
131
|
+
@apply fg-critical-bold;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.bracket {
|
|
136
|
+
@apply rounded-bl-small rounded-tl-small absolute left-0 h-full border border-r-transparent border-b-current bg-transparent;
|
|
137
|
+
width: 6px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.marker-container {
|
|
141
|
+
@apply absolute flex w-px items-center justify-center border-solid border-current bg-current;
|
|
142
|
+
/* Ensure the marker is displayed above other elements (like spacers) that may
|
|
143
|
+
be rendered at same point in time */
|
|
144
|
+
z-index: 1;
|
|
145
|
+
min-height: attr(data-height px);
|
|
146
|
+
transform: translateX(var(--translate-x));
|
|
147
|
+
|
|
148
|
+
&[data-elapsed] {
|
|
149
|
+
@apply fg-inverse-muted;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@variant color-accent {
|
|
153
|
+
@apply fg-accent-primary-bold;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@variant color-serious {
|
|
157
|
+
@apply fg-serious-bold;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@variant color-critical {
|
|
161
|
+
@apply fg-critical-bold;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.marker-point {
|
|
166
|
+
@apply absolute rounded-full bg-current;
|
|
167
|
+
width: 3px;
|
|
168
|
+
height: 3px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.marker-icon {
|
|
172
|
+
@apply outline outline-transparent;
|
|
173
|
+
border-radius: 50%;
|
|
174
|
+
border: 2px solid currentColor;
|
|
175
|
+
|
|
176
|
+
> * {
|
|
177
|
+
@apply fg-primary-bold;
|
|
178
|
+
/* Scale the icon down to provide some spacing */
|
|
179
|
+
transform: scale(0.6);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&[data-elapsed] {
|
|
183
|
+
@apply bg-interactive-muted;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@variant color-accent {
|
|
187
|
+
@apply bg-accent-primary-muted;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@variant color-serious {
|
|
191
|
+
@apply bg-serious-muted;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@variant color-critical {
|
|
195
|
+
@apply bg-critical-muted;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { GanttTimeBounds } from "../../../types.js";
|
|
14
|
+
|
|
15
|
+
//#region src/components/gantt/components/content-row/use-elapsed-percentage/index.d.ts
|
|
16
|
+
declare function useElapsedPercentage(props: GanttTimeBounds): number;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { useElapsedPercentage };
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
|
|
14
|
+
import { useTemporalDataContext } from "../../../context/temporal-data/index.js";
|
|
15
|
+
|
|
16
|
+
//#region src/components/gantt/components/content-row/use-elapsed-percentage/index.ts
|
|
17
|
+
function useElapsedPercentage(props) {
|
|
18
|
+
const { currentTimeMs, renderedRegionBounds } = useTemporalDataContext();
|
|
19
|
+
const startMs = Math.max(props.startMs, renderedRegionBounds.startMs);
|
|
20
|
+
const totalDuration = Math.min(props.endMs, renderedRegionBounds.endMs) - startMs;
|
|
21
|
+
if (totalDuration <= 0) return 0;
|
|
22
|
+
return Math.max(0, Math.min(currentTimeMs - startMs, totalDuration)) / totalDuration * 100;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { useElapsedPercentage };
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../src/components/gantt/components/content-row/use-elapsed-percentage/index.ts"],"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\nimport { useTemporalDataContext } from '@/components/gantt/context/temporal-data';\nimport type { GanttTimeBounds } from '@/components/gantt/types';\n\nexport function useElapsedPercentage(props: GanttTimeBounds): number {\n const { currentTimeMs, renderedRegionBounds } = useTemporalDataContext();\n\n const startMs = Math.max(props.startMs, renderedRegionBounds.startMs);\n const endMs = Math.min(props.endMs, renderedRegionBounds.endMs);\n\n const totalDuration = endMs - startMs;\n if (totalDuration <= 0) {\n return 0;\n }\n\n const elapsed = Math.max(0, Math.min(currentTimeMs - startMs, totalDuration));\n return (elapsed / totalDuration) * 100;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAgBA,SAAgB,qBAAqB,OAAgC;CACnE,MAAM,EAAE,eAAe,yBAAyB,wBAAwB;CAExE,MAAM,UAAU,KAAK,IAAI,MAAM,SAAS,qBAAqB,QAAQ;CAGrE,MAAM,gBAFQ,KAAK,IAAI,MAAM,OAAO,qBAAqB,MAAM,GAEjC;AAC9B,KAAI,iBAAiB,EACnB,QAAO;AAIT,QADgB,KAAK,IAAI,GAAG,KAAK,IAAI,gBAAgB,SAAS,cAAc,CAAC,GAC3D,gBAAiB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/components/gantt/components/content-row/use-is-elapsed/index.d.ts
|
|
2
|
+
type UseIsElapsedProps = {
|
|
3
|
+
timeMs: number | undefined;
|
|
4
|
+
};
|
|
5
|
+
declare function useIsElapsed({
|
|
6
|
+
timeMs
|
|
7
|
+
}: UseIsElapsedProps): boolean;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { useIsElapsed };
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
|
|
14
|
+
import { useTemporalDataContext } from "../../../context/temporal-data/index.js";
|
|
15
|
+
|
|
16
|
+
//#region src/components/gantt/components/content-row/use-is-elapsed/index.ts
|
|
17
|
+
function useIsElapsed({ timeMs }) {
|
|
18
|
+
const { currentTimeMs } = useTemporalDataContext();
|
|
19
|
+
return timeMs !== void 0 && timeMs <= currentTimeMs;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { useIsElapsed };
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../src/components/gantt/components/content-row/use-is-elapsed/index.ts"],"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\nimport { useTemporalDataContext } from '../../../context/temporal-data';\n\ntype UseIsElapsedProps = {\n timeMs: number | undefined;\n};\n\nexport function useIsElapsed({ timeMs }: UseIsElapsedProps): boolean {\n const { currentTimeMs } = useTemporalDataContext();\n\n return timeMs !== undefined && timeMs <= currentTimeMs;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAmBA,SAAgB,aAAa,EAAE,UAAsC;CACnE,MAAM,EAAE,kBAAkB,wBAAwB;AAElD,QAAO,WAAW,UAAa,UAAU"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 * as react_jsx_runtime210 from "react/jsx-runtime";
|
|
14
|
+
|
|
15
|
+
//#region src/components/gantt/components/current-time/index.d.ts
|
|
16
|
+
/**
|
|
17
|
+
* Needed because parent component does not have access to
|
|
18
|
+
* Gantt context. Need renderedRegionBounds for conditional
|
|
19
|
+
* rendering calculation.
|
|
20
|
+
*/
|
|
21
|
+
declare function CurrentTime({
|
|
22
|
+
currentTimeMs
|
|
23
|
+
}: {
|
|
24
|
+
currentTimeMs: number;
|
|
25
|
+
}): react_jsx_runtime210.JSX.Element | null;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { CurrentTime };
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
|
|
14
|
+
import { GANTT_CONTAINER_TOP_PX } from "../../constants.js";
|
|
15
|
+
import { shouldRenderCurrentTime } from "../../utils/helpers.js";
|
|
16
|
+
import { useTemporalDataContext } from "../../context/temporal-data/index.js";
|
|
17
|
+
import { formatTimestampLabel } from "../../utils/formatting.js";
|
|
18
|
+
import { useCurrentTimeLayout } from "./use-current-time-layout/index.js";
|
|
19
|
+
import { useCallback, useRef, useState } from "react";
|
|
20
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
+
import styles from "./styles.module.css";
|
|
22
|
+
|
|
23
|
+
//#region src/components/gantt/components/current-time/index.tsx
|
|
24
|
+
function CurrentTimeInner({ currentTimeMs }) {
|
|
25
|
+
const [element, setElement] = useState(null);
|
|
26
|
+
const indicatorElementRef = useRef(null);
|
|
27
|
+
const { labelElementRef } = useCurrentTimeLayout({
|
|
28
|
+
currentTimeElement: element,
|
|
29
|
+
currentTimeMs,
|
|
30
|
+
indicatorElement: indicatorElementRef.current
|
|
31
|
+
});
|
|
32
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
33
|
+
ref: useCallback((node) => {
|
|
34
|
+
setElement(node);
|
|
35
|
+
}, []),
|
|
36
|
+
className: styles["current-time-marker"],
|
|
37
|
+
"data-top": GANTT_CONTAINER_TOP_PX,
|
|
38
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
39
|
+
ref: labelElementRef,
|
|
40
|
+
className: styles["current-time-label"],
|
|
41
|
+
children: /* @__PURE__ */ jsx("span", { children: formatTimestampLabel(currentTimeMs) })
|
|
42
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
43
|
+
ref: indicatorElementRef,
|
|
44
|
+
className: styles["current-time-indicator"]
|
|
45
|
+
})]
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function useDisplayCurrentTime(currentTimeMs) {
|
|
49
|
+
const { renderedRegionBounds } = useTemporalDataContext();
|
|
50
|
+
return shouldRenderCurrentTime(currentTimeMs, renderedRegionBounds);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Needed because parent component does not have access to
|
|
54
|
+
* Gantt context. Need renderedRegionBounds for conditional
|
|
55
|
+
* rendering calculation.
|
|
56
|
+
*/
|
|
57
|
+
function CurrentTime({ currentTimeMs }) {
|
|
58
|
+
return useDisplayCurrentTime(currentTimeMs) ? /* @__PURE__ */ jsx(CurrentTimeInner, { currentTimeMs }) : null;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
export { CurrentTime };
|
|
63
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/gantt/components/current-time/index.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\nimport { useCallback, useRef, useState } from 'react';\nimport { GANTT_CONTAINER_TOP_PX } from '@/components/gantt/constants';\nimport { useTemporalDataContext } from '@/components/gantt/context/temporal-data';\nimport { formatTimestampLabel } from '@/components/gantt/utils/formatting';\nimport { shouldRenderCurrentTime } from '@/components/gantt/utils/helpers';\nimport styles from './styles.module.css';\nimport { useCurrentTimeLayout } from './use-current-time-layout';\n\nfunction CurrentTimeInner({ currentTimeMs }: { currentTimeMs: number }) {\n const [element, setElement] = useState<HTMLDivElement | null>(null);\n const indicatorElementRef = useRef<HTMLDivElement>(null);\n\n const { labelElementRef } = useCurrentTimeLayout({\n currentTimeElement: element,\n currentTimeMs,\n indicatorElement: indicatorElementRef.current,\n });\n\n const assignElementRef = useCallback((node: HTMLDivElement | null) => {\n setElement(node);\n }, []);\n\n return (\n <div\n ref={assignElementRef}\n className={styles['current-time-marker']}\n data-top={GANTT_CONTAINER_TOP_PX}\n >\n <div ref={labelElementRef} className={styles['current-time-label']}>\n <span>{formatTimestampLabel(currentTimeMs)}</span>\n </div>\n <div\n ref={indicatorElementRef}\n className={styles['current-time-indicator']}\n />\n </div>\n );\n}\n\nfunction useDisplayCurrentTime(currentTimeMs: number) {\n const { renderedRegionBounds } = useTemporalDataContext();\n\n return shouldRenderCurrentTime(currentTimeMs, renderedRegionBounds);\n}\n\n/**\n * Needed because parent component does not have access to\n * Gantt context. Need renderedRegionBounds for conditional\n * rendering calculation.\n */\nexport function CurrentTime({ currentTimeMs }: { currentTimeMs: number }) {\n const shouldDisplayCurrentTime = useDisplayCurrentTime(currentTimeMs);\n\n return shouldDisplayCurrentTime ? (\n <CurrentTimeInner currentTimeMs={currentTimeMs} />\n ) : null;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAS,iBAAiB,EAAE,iBAA4C;CACtE,MAAM,CAAC,SAAS,cAAc,SAAgC,KAAK;CACnE,MAAM,sBAAsB,OAAuB,KAAK;CAExD,MAAM,EAAE,oBAAoB,qBAAqB;EAC/C,oBAAoB;EACpB;EACA,kBAAkB,oBAAoB;EACvC,CAAC;AAMF,QACE,qBAAC;EACC,KANqB,aAAa,SAAgC;AACpE,cAAW,KAAK;KACf,EAAE,CAAC;EAKF,WAAW,OAAO;EAClB,YAAU;aAEV,oBAAC;GAAI,KAAK;GAAiB,WAAW,OAAO;aAC3C,oBAAC,oBAAM,qBAAqB,cAAc,GAAQ;IAC9C,EACN,oBAAC;GACC,KAAK;GACL,WAAW,OAAO;IAClB;GACE;;AAIV,SAAS,sBAAsB,eAAuB;CACpD,MAAM,EAAE,yBAAyB,wBAAwB;AAEzD,QAAO,wBAAwB,eAAe,qBAAqB;;;;;;;AAQrE,SAAgB,YAAY,EAAE,iBAA4C;AAGxE,QAFiC,sBAAsB,cAAc,GAGnE,oBAAC,oBAAgC,gBAAiB,GAChD"}
|