@multiplatform.one/components 7.46.0 → 7.47.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Alert/index.cjs +1 -1
- package/dist/cjs/Alert/index.native.js +1 -1
- package/dist/cjs/Alert/index.native.js.map +1 -1
- package/dist/cjs/Carousel/index.cjs +1 -1
- package/dist/cjs/Carousel/index.native.js +1 -1
- package/dist/cjs/Carousel/index.native.js.map +1 -1
- package/dist/cjs/Chip/index.cjs +18 -7
- package/dist/cjs/Chip/index.native.js +20 -8
- package/dist/cjs/Chip/index.native.js.map +1 -1
- package/dist/cjs/ErrorBoundary/index.cjs +2 -2
- package/dist/cjs/ErrorBoundary/index.native.js +2 -2
- package/dist/cjs/ErrorBoundary/index.native.js.map +1 -1
- package/dist/cjs/Heading.cjs +8 -127
- package/dist/cjs/Heading.native.js +7 -133
- package/dist/cjs/Heading.native.js.map +1 -1
- package/dist/cjs/OverflowRow/index.cjs +65 -2
- package/dist/cjs/OverflowRow/index.native.js +68 -2
- package/dist/cjs/OverflowRow/index.native.js.map +1 -1
- package/dist/cjs/Pagination.cjs +4 -1
- package/dist/cjs/Pagination.native.js +4 -1
- package/dist/cjs/Pagination.native.js.map +1 -1
- package/dist/cjs/ProgressSteps/index.cjs +1 -1
- package/dist/cjs/ProgressSteps/index.native.js +1 -1
- package/dist/cjs/ProgressSteps/index.native.js.map +1 -1
- package/dist/cjs/Quote/index.cjs +1 -0
- package/dist/cjs/Quote/index.native.js +1 -0
- package/dist/cjs/Quote/index.native.js.map +1 -1
- package/dist/cjs/SkipLink/index.cjs +1 -2
- package/dist/cjs/SkipLink/index.native.js +1 -2
- package/dist/cjs/SkipLink/index.native.js.map +1 -1
- package/dist/cjs/SortableList/index.cjs +2 -1
- package/dist/cjs/SortableList/index.native.js +2 -1
- package/dist/cjs/SortableList/index.native.js.map +1 -1
- package/dist/cjs/SortableList/useSortableRows.cjs +2 -2
- package/dist/cjs/SortableList/useSortableRows.native.js +2 -2
- package/dist/cjs/SortableList/useSortableRows.native.js.map +1 -1
- package/dist/cjs/Text.cjs +5 -116
- package/dist/cjs/Text.native.js +4 -120
- package/dist/cjs/Text.native.js.map +1 -1
- package/dist/cjs/ThemePlayground/index.cjs +3 -2
- package/dist/cjs/ThemePresetPicker/index.cjs +21 -22
- package/dist/cjs/ThemePresetPicker/index.native.js +21 -22
- package/dist/cjs/ThemePresetPicker/index.native.js.map +1 -1
- package/dist/cjs/TreeSelect/index.cjs +2 -1
- package/dist/cjs/TreeSelect/index.native.js +2 -1
- package/dist/cjs/TreeSelect/index.native.js.map +1 -1
- package/dist/cjs/Video/PlayerChrome.cjs +1 -1
- package/dist/cjs/Video/PlayerChrome.native.js +1 -1
- package/dist/cjs/Video/PlayerChrome.native.js.map +1 -1
- package/dist/cjs/Video/VideoFrame.cjs +2 -1
- package/dist/cjs/Video/VideoFrame.native.js +2 -1
- package/dist/cjs/Video/VideoFrame.native.js.map +1 -1
- package/dist/cjs/Video/index.cjs +3 -1
- package/dist/cjs/actions/DestructiveAction.cjs +3 -2
- package/dist/cjs/actions/DestructiveAction.native.js +3 -2
- package/dist/cjs/actions/DestructiveAction.native.js.map +1 -1
- package/dist/cjs/appShell/ScopeMenu.cjs +2 -1
- package/dist/cjs/appShell/ScopeMenu.native.js +2 -1
- package/dist/cjs/appShell/ScopeMenu.native.js.map +1 -1
- package/dist/cjs/appShell/SettingsSplit.cjs +5 -4
- package/dist/cjs/appShell/SettingsSplit.native.js +5 -4
- package/dist/cjs/appShell/SettingsSplit.native.js.map +1 -1
- package/dist/cjs/appShell/Springboard.cjs +2 -1
- package/dist/cjs/appShell/Springboard.native.js +2 -1
- package/dist/cjs/appShell/Springboard.native.js.map +1 -1
- package/dist/cjs/appShell/SystemBar.cjs +2 -1
- package/dist/cjs/appShell/SystemBar.native.js +2 -1
- package/dist/cjs/appShell/SystemBar.native.js.map +1 -1
- package/dist/cjs/code/Highlighter/index.cjs +9 -2
- package/dist/cjs/code/Highlighter/index.native.js +13 -2
- package/dist/cjs/code/Highlighter/index.native.js.map +1 -1
- package/dist/cjs/code/Highlighter/namedGroupMatchAll.cjs +96 -0
- package/dist/cjs/code/Highlighter/namedGroupMatchAll.native.js +108 -0
- package/dist/cjs/code/Highlighter/namedGroupMatchAll.native.js.map +1 -0
- package/dist/cjs/feedback/ConfirmDialog.cjs +1 -1
- package/dist/cjs/feedback/ConfirmDialog.native.js +1 -1
- package/dist/cjs/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/cjs/layouts/attachments.cjs +11 -10
- package/dist/cjs/layouts/attachments.native.js +11 -10
- package/dist/cjs/layouts/attachments.native.js.map +1 -1
- package/dist/cjs/layouts/breadcrumbs.cjs +3 -2
- package/dist/cjs/layouts/breadcrumbs.native.js +3 -2
- package/dist/cjs/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/cjs/layouts/page.cjs +80 -8
- package/dist/cjs/layouts/page.native.js +82 -8
- package/dist/cjs/layouts/page.native.js.map +1 -1
- package/dist/cjs/layouts/sidebar.cjs +3 -1
- package/dist/cjs/layouts/sidebar.native.js +3 -1
- package/dist/cjs/layouts/sidebar.native.js.map +1 -1
- package/dist/cjs/layouts/tags.cjs +2 -1
- package/dist/cjs/layouts/tags.native.js +2 -1
- package/dist/cjs/layouts/tags.native.js.map +1 -1
- package/dist/cjs/layouts/timeline.cjs +14 -13
- package/dist/cjs/layouts/timeline.native.js +14 -13
- package/dist/cjs/layouts/timeline.native.js.map +1 -1
- package/dist/cjs/layouts/toolbar.cjs +2 -1
- package/dist/cjs/layouts/toolbar.native.js +2 -1
- package/dist/cjs/layouts/toolbar.native.js.map +1 -1
- package/dist/cjs/linearGradientSetup.cjs +18 -0
- package/dist/cjs/linearGradientSetup.native.js +4 -0
- package/dist/cjs/linearGradientSetup.native.js.map +1 -0
- package/dist/cjs/views/Calendar.cjs +14 -13
- package/dist/cjs/views/Calendar.native.js +14 -13
- package/dist/cjs/views/Calendar.native.js.map +1 -1
- package/dist/cjs/views/Gantt.cjs +188 -55
- package/dist/cjs/views/Gantt.native.js +201 -55
- package/dist/cjs/views/Gantt.native.js.map +1 -1
- package/dist/cjs/views/GanttDateGrip.cjs +216 -0
- package/dist/cjs/views/GanttDateGrip.native.js +259 -0
- package/dist/cjs/views/GanttDateGrip.native.js.map +1 -0
- package/dist/cjs/views/Kanban.cjs +3 -2
- package/dist/cjs/views/Kanban.native.js +3 -2
- package/dist/cjs/views/Kanban.native.js.map +1 -1
- package/dist/cjs/views/List.cjs +13 -3
- package/dist/cjs/views/List.native.js +14 -3
- package/dist/cjs/views/List.native.js.map +1 -1
- package/dist/cjs/views/Matrix.cjs +2 -1
- package/dist/cjs/views/Matrix.native.js +2 -1
- package/dist/cjs/views/Matrix.native.js.map +1 -1
- package/dist/cjs/views/TreeView.cjs +3 -2
- package/dist/cjs/views/TreeView.native.js +3 -2
- package/dist/cjs/views/TreeView.native.js.map +1 -1
- package/dist/cjs/views/ganttIntervals.cjs +85 -0
- package/dist/cjs/views/ganttIntervals.native.js +92 -0
- package/dist/cjs/views/ganttIntervals.native.js.map +1 -0
- package/dist/esm/Alert/index.mjs +2 -2
- package/dist/esm/Alert/index.mjs.map +1 -1
- package/dist/esm/Alert/index.native.js +2 -2
- package/dist/esm/Alert/index.native.js.map +1 -1
- package/dist/esm/Carousel/index.mjs +1 -1
- package/dist/esm/Carousel/index.mjs.map +1 -1
- package/dist/esm/Carousel/index.native.js +1 -1
- package/dist/esm/Carousel/index.native.js.map +1 -1
- package/dist/esm/Chip/index.mjs +18 -7
- package/dist/esm/Chip/index.mjs.map +1 -1
- package/dist/esm/Chip/index.native.js +20 -8
- package/dist/esm/Chip/index.native.js.map +1 -1
- package/dist/esm/ErrorBoundary/index.mjs +1 -1
- package/dist/esm/ErrorBoundary/index.mjs.map +1 -1
- package/dist/esm/ErrorBoundary/index.native.js +1 -1
- package/dist/esm/ErrorBoundary/index.native.js.map +1 -1
- package/dist/esm/Heading.mjs +1 -120
- package/dist/esm/Heading.mjs.map +1 -1
- package/dist/esm/Heading.native.js +1 -127
- package/dist/esm/Heading.native.js.map +1 -1
- package/dist/esm/OverflowRow/index.mjs +66 -4
- package/dist/esm/OverflowRow/index.mjs.map +1 -1
- package/dist/esm/OverflowRow/index.native.js +69 -4
- package/dist/esm/OverflowRow/index.native.js.map +1 -1
- package/dist/esm/Pagination.mjs +4 -1
- package/dist/esm/Pagination.mjs.map +1 -1
- package/dist/esm/Pagination.native.js +4 -1
- package/dist/esm/Pagination.native.js.map +1 -1
- package/dist/esm/ProgressSteps/index.mjs +2 -2
- package/dist/esm/ProgressSteps/index.mjs.map +1 -1
- package/dist/esm/ProgressSteps/index.native.js +2 -2
- package/dist/esm/ProgressSteps/index.native.js.map +1 -1
- package/dist/esm/Quote/index.mjs +2 -1
- package/dist/esm/Quote/index.mjs.map +1 -1
- package/dist/esm/Quote/index.native.js +2 -1
- package/dist/esm/Quote/index.native.js.map +1 -1
- package/dist/esm/SkipLink/index.mjs +1 -2
- package/dist/esm/SkipLink/index.mjs.map +1 -1
- package/dist/esm/SkipLink/index.native.js +1 -2
- package/dist/esm/SkipLink/index.native.js.map +1 -1
- package/dist/esm/SortableList/index.mjs +5 -4
- package/dist/esm/SortableList/index.mjs.map +1 -1
- package/dist/esm/SortableList/index.native.js +5 -4
- package/dist/esm/SortableList/index.native.js.map +1 -1
- package/dist/esm/SortableList/useSortableRows.mjs +2 -2
- package/dist/esm/SortableList/useSortableRows.mjs.map +1 -1
- package/dist/esm/SortableList/useSortableRows.native.js +2 -2
- package/dist/esm/SortableList/useSortableRows.native.js.map +1 -1
- package/dist/esm/Text.mjs +1 -112
- package/dist/esm/Text.mjs.map +1 -1
- package/dist/esm/Text.native.js +1 -117
- package/dist/esm/Text.native.js.map +1 -1
- package/dist/esm/ThemePlayground/index.mjs +2 -1
- package/dist/esm/ThemePlayground/index.mjs.map +1 -1
- package/dist/esm/ThemePresetPicker/index.mjs +21 -22
- package/dist/esm/ThemePresetPicker/index.mjs.map +1 -1
- package/dist/esm/ThemePresetPicker/index.native.js +21 -22
- package/dist/esm/ThemePresetPicker/index.native.js.map +1 -1
- package/dist/esm/TreeSelect/index.mjs +6 -5
- package/dist/esm/TreeSelect/index.mjs.map +1 -1
- package/dist/esm/TreeSelect/index.native.js +6 -5
- package/dist/esm/TreeSelect/index.native.js.map +1 -1
- package/dist/esm/Video/PlayerChrome.mjs +1 -1
- package/dist/esm/Video/PlayerChrome.mjs.map +1 -1
- package/dist/esm/Video/PlayerChrome.native.js +1 -1
- package/dist/esm/Video/PlayerChrome.native.js.map +1 -1
- package/dist/esm/Video/VideoFrame.mjs +3 -2
- package/dist/esm/Video/VideoFrame.mjs.map +1 -1
- package/dist/esm/Video/VideoFrame.native.js +3 -2
- package/dist/esm/Video/VideoFrame.native.js.map +1 -1
- package/dist/esm/Video/index.mjs +3 -1
- package/dist/esm/Video/index.mjs.map +1 -1
- package/dist/esm/actions/DestructiveAction.mjs +2 -1
- package/dist/esm/actions/DestructiveAction.mjs.map +1 -1
- package/dist/esm/actions/DestructiveAction.native.js +2 -1
- package/dist/esm/actions/DestructiveAction.native.js.map +1 -1
- package/dist/esm/appShell/ScopeMenu.mjs +2 -1
- package/dist/esm/appShell/ScopeMenu.mjs.map +1 -1
- package/dist/esm/appShell/ScopeMenu.native.js +2 -1
- package/dist/esm/appShell/ScopeMenu.native.js.map +1 -1
- package/dist/esm/appShell/SettingsSplit.mjs +5 -4
- package/dist/esm/appShell/SettingsSplit.mjs.map +1 -1
- package/dist/esm/appShell/SettingsSplit.native.js +5 -4
- package/dist/esm/appShell/SettingsSplit.native.js.map +1 -1
- package/dist/esm/appShell/Springboard.mjs +3 -2
- package/dist/esm/appShell/Springboard.mjs.map +1 -1
- package/dist/esm/appShell/Springboard.native.js +3 -2
- package/dist/esm/appShell/Springboard.native.js.map +1 -1
- package/dist/esm/appShell/SystemBar.mjs +2 -1
- package/dist/esm/appShell/SystemBar.mjs.map +1 -1
- package/dist/esm/appShell/SystemBar.native.js +2 -1
- package/dist/esm/appShell/SystemBar.native.js.map +1 -1
- package/dist/esm/code/Highlighter/index.mjs +9 -2
- package/dist/esm/code/Highlighter/index.mjs.map +1 -1
- package/dist/esm/code/Highlighter/index.native.js +13 -2
- package/dist/esm/code/Highlighter/index.native.js.map +1 -1
- package/dist/esm/code/Highlighter/namedGroupMatchAll.mjs +70 -0
- package/dist/esm/code/Highlighter/namedGroupMatchAll.mjs.map +1 -0
- package/dist/esm/code/Highlighter/namedGroupMatchAll.native.js +79 -0
- package/dist/esm/code/Highlighter/namedGroupMatchAll.native.js.map +1 -0
- package/dist/esm/feedback/ConfirmDialog.mjs +1 -1
- package/dist/esm/feedback/ConfirmDialog.mjs.map +1 -1
- package/dist/esm/feedback/ConfirmDialog.native.js +1 -1
- package/dist/esm/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/esm/layouts/attachments.mjs +3 -2
- package/dist/esm/layouts/attachments.mjs.map +1 -1
- package/dist/esm/layouts/attachments.native.js +3 -2
- package/dist/esm/layouts/attachments.native.js.map +1 -1
- package/dist/esm/layouts/breadcrumbs.mjs +3 -2
- package/dist/esm/layouts/breadcrumbs.mjs.map +1 -1
- package/dist/esm/layouts/breadcrumbs.native.js +3 -2
- package/dist/esm/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/esm/layouts/page.mjs +80 -10
- package/dist/esm/layouts/page.mjs.map +1 -1
- package/dist/esm/layouts/page.native.js +82 -10
- package/dist/esm/layouts/page.native.js.map +1 -1
- package/dist/esm/layouts/sidebar.mjs +5 -3
- package/dist/esm/layouts/sidebar.mjs.map +1 -1
- package/dist/esm/layouts/sidebar.native.js +5 -3
- package/dist/esm/layouts/sidebar.native.js.map +1 -1
- package/dist/esm/layouts/tags.mjs +6 -5
- package/dist/esm/layouts/tags.mjs.map +1 -1
- package/dist/esm/layouts/tags.native.js +6 -5
- package/dist/esm/layouts/tags.native.js.map +1 -1
- package/dist/esm/layouts/timeline.mjs +4 -3
- package/dist/esm/layouts/timeline.mjs.map +1 -1
- package/dist/esm/layouts/timeline.native.js +4 -3
- package/dist/esm/layouts/timeline.native.js.map +1 -1
- package/dist/esm/layouts/toolbar.mjs +2 -1
- package/dist/esm/layouts/toolbar.mjs.map +1 -1
- package/dist/esm/layouts/toolbar.native.js +2 -1
- package/dist/esm/layouts/toolbar.native.js.map +1 -1
- package/dist/esm/linearGradientSetup.mjs +2 -0
- package/dist/esm/linearGradientSetup.mjs.map +1 -0
- package/dist/esm/linearGradientSetup.native.js +2 -0
- package/dist/esm/linearGradientSetup.native.js.map +1 -0
- package/dist/esm/views/Calendar.mjs +7 -6
- package/dist/esm/views/Calendar.mjs.map +1 -1
- package/dist/esm/views/Calendar.native.js +7 -6
- package/dist/esm/views/Calendar.native.js.map +1 -1
- package/dist/esm/views/Gantt.mjs +196 -63
- package/dist/esm/views/Gantt.mjs.map +1 -1
- package/dist/esm/views/Gantt.native.js +209 -63
- package/dist/esm/views/Gantt.native.js.map +1 -1
- package/dist/esm/views/GanttDateGrip.mjs +191 -0
- package/dist/esm/views/GanttDateGrip.mjs.map +1 -0
- package/dist/esm/views/GanttDateGrip.native.js +231 -0
- package/dist/esm/views/GanttDateGrip.native.js.map +1 -0
- package/dist/esm/views/Kanban.mjs +5 -4
- package/dist/esm/views/Kanban.mjs.map +1 -1
- package/dist/esm/views/Kanban.native.js +3 -2
- package/dist/esm/views/Kanban.native.js.map +1 -1
- package/dist/esm/views/List.mjs +13 -5
- package/dist/esm/views/List.mjs.map +1 -1
- package/dist/esm/views/List.native.js +14 -5
- package/dist/esm/views/List.native.js.map +1 -1
- package/dist/esm/views/Matrix.mjs +10 -9
- package/dist/esm/views/Matrix.mjs.map +1 -1
- package/dist/esm/views/Matrix.native.js +10 -9
- package/dist/esm/views/Matrix.native.js.map +1 -1
- package/dist/esm/views/TreeView.mjs +5 -4
- package/dist/esm/views/TreeView.mjs.map +1 -1
- package/dist/esm/views/TreeView.native.js +5 -4
- package/dist/esm/views/TreeView.native.js.map +1 -1
- package/dist/esm/views/ganttIntervals.mjs +57 -0
- package/dist/esm/views/ganttIntervals.mjs.map +1 -0
- package/dist/esm/views/ganttIntervals.native.js +61 -0
- package/dist/esm/views/ganttIntervals.native.js.map +1 -0
- package/dist/jsx/Alert/index.mjs +2 -2
- package/dist/jsx/Alert/index.mjs.map +1 -1
- package/dist/jsx/Alert/index.native.js +1 -1
- package/dist/jsx/Alert/index.native.js.map +1 -1
- package/dist/jsx/Carousel/index.mjs +1 -1
- package/dist/jsx/Carousel/index.mjs.map +1 -1
- package/dist/jsx/Carousel/index.native.js +1 -1
- package/dist/jsx/Carousel/index.native.js.map +1 -1
- package/dist/jsx/Chip/index.mjs +18 -7
- package/dist/jsx/Chip/index.mjs.map +1 -1
- package/dist/jsx/Chip/index.native.js +20 -8
- package/dist/jsx/Chip/index.native.js.map +1 -1
- package/dist/jsx/ErrorBoundary/index.mjs +1 -1
- package/dist/jsx/ErrorBoundary/index.mjs.map +1 -1
- package/dist/jsx/ErrorBoundary/index.native.js +2 -2
- package/dist/jsx/ErrorBoundary/index.native.js.map +1 -1
- package/dist/jsx/Heading.mjs +1 -120
- package/dist/jsx/Heading.mjs.map +1 -1
- package/dist/jsx/Heading.native.js +7 -133
- package/dist/jsx/Heading.native.js.map +1 -1
- package/dist/jsx/OverflowRow/index.mjs +66 -4
- package/dist/jsx/OverflowRow/index.mjs.map +1 -1
- package/dist/jsx/OverflowRow/index.native.js +68 -2
- package/dist/jsx/OverflowRow/index.native.js.map +1 -1
- package/dist/jsx/Pagination.mjs +4 -1
- package/dist/jsx/Pagination.mjs.map +1 -1
- package/dist/jsx/Pagination.native.js +4 -1
- package/dist/jsx/Pagination.native.js.map +1 -1
- package/dist/jsx/ProgressSteps/index.mjs +2 -2
- package/dist/jsx/ProgressSteps/index.mjs.map +1 -1
- package/dist/jsx/ProgressSteps/index.native.js +1 -1
- package/dist/jsx/ProgressSteps/index.native.js.map +1 -1
- package/dist/jsx/Quote/index.mjs +2 -1
- package/dist/jsx/Quote/index.mjs.map +1 -1
- package/dist/jsx/Quote/index.native.js +1 -0
- package/dist/jsx/Quote/index.native.js.map +1 -1
- package/dist/jsx/SkipLink/index.mjs +1 -2
- package/dist/jsx/SkipLink/index.mjs.map +1 -1
- package/dist/jsx/SkipLink/index.native.js +1 -2
- package/dist/jsx/SkipLink/index.native.js.map +1 -1
- package/dist/jsx/SortableList/index.mjs +5 -4
- package/dist/jsx/SortableList/index.mjs.map +1 -1
- package/dist/jsx/SortableList/index.native.js +2 -1
- package/dist/jsx/SortableList/index.native.js.map +1 -1
- package/dist/jsx/SortableList/useSortableRows.mjs +2 -2
- package/dist/jsx/SortableList/useSortableRows.mjs.map +1 -1
- package/dist/jsx/SortableList/useSortableRows.native.js +2 -2
- package/dist/jsx/SortableList/useSortableRows.native.js.map +1 -1
- package/dist/jsx/Text.mjs +1 -112
- package/dist/jsx/Text.mjs.map +1 -1
- package/dist/jsx/Text.native.js +4 -120
- package/dist/jsx/Text.native.js.map +1 -1
- package/dist/jsx/ThemePlayground/index.mjs +2 -1
- package/dist/jsx/ThemePlayground/index.mjs.map +1 -1
- package/dist/jsx/ThemePresetPicker/index.mjs +21 -22
- package/dist/jsx/ThemePresetPicker/index.mjs.map +1 -1
- package/dist/jsx/ThemePresetPicker/index.native.js +21 -22
- package/dist/jsx/ThemePresetPicker/index.native.js.map +1 -1
- package/dist/jsx/TreeSelect/index.mjs +6 -5
- package/dist/jsx/TreeSelect/index.mjs.map +1 -1
- package/dist/jsx/TreeSelect/index.native.js +2 -1
- package/dist/jsx/TreeSelect/index.native.js.map +1 -1
- package/dist/jsx/Video/PlayerChrome.mjs +1 -1
- package/dist/jsx/Video/PlayerChrome.mjs.map +1 -1
- package/dist/jsx/Video/PlayerChrome.native.js +1 -1
- package/dist/jsx/Video/PlayerChrome.native.js.map +1 -1
- package/dist/jsx/Video/VideoFrame.mjs +3 -2
- package/dist/jsx/Video/VideoFrame.mjs.map +1 -1
- package/dist/jsx/Video/VideoFrame.native.js +2 -1
- package/dist/jsx/Video/VideoFrame.native.js.map +1 -1
- package/dist/jsx/Video/index.mjs +3 -1
- package/dist/jsx/Video/index.mjs.map +1 -1
- package/dist/jsx/actions/DestructiveAction.mjs +2 -1
- package/dist/jsx/actions/DestructiveAction.mjs.map +1 -1
- package/dist/jsx/actions/DestructiveAction.native.js +3 -2
- package/dist/jsx/actions/DestructiveAction.native.js.map +1 -1
- package/dist/jsx/appShell/ScopeMenu.mjs +2 -1
- package/dist/jsx/appShell/ScopeMenu.mjs.map +1 -1
- package/dist/jsx/appShell/ScopeMenu.native.js +2 -1
- package/dist/jsx/appShell/ScopeMenu.native.js.map +1 -1
- package/dist/jsx/appShell/SettingsSplit.mjs +5 -4
- package/dist/jsx/appShell/SettingsSplit.mjs.map +1 -1
- package/dist/jsx/appShell/SettingsSplit.native.js +5 -4
- package/dist/jsx/appShell/SettingsSplit.native.js.map +1 -1
- package/dist/jsx/appShell/Springboard.mjs +3 -2
- package/dist/jsx/appShell/Springboard.mjs.map +1 -1
- package/dist/jsx/appShell/Springboard.native.js +2 -1
- package/dist/jsx/appShell/Springboard.native.js.map +1 -1
- package/dist/jsx/appShell/SystemBar.mjs +2 -1
- package/dist/jsx/appShell/SystemBar.mjs.map +1 -1
- package/dist/jsx/appShell/SystemBar.native.js +2 -1
- package/dist/jsx/appShell/SystemBar.native.js.map +1 -1
- package/dist/jsx/code/Highlighter/index.mjs +9 -2
- package/dist/jsx/code/Highlighter/index.mjs.map +1 -1
- package/dist/jsx/code/Highlighter/index.native.js +13 -2
- package/dist/jsx/code/Highlighter/index.native.js.map +1 -1
- package/dist/jsx/code/Highlighter/namedGroupMatchAll.mjs +70 -0
- package/dist/jsx/code/Highlighter/namedGroupMatchAll.mjs.map +1 -0
- package/dist/jsx/code/Highlighter/namedGroupMatchAll.native.js +108 -0
- package/dist/jsx/code/Highlighter/namedGroupMatchAll.native.js.map +1 -0
- package/dist/jsx/feedback/ConfirmDialog.mjs +1 -1
- package/dist/jsx/feedback/ConfirmDialog.mjs.map +1 -1
- package/dist/jsx/feedback/ConfirmDialog.native.js +1 -1
- package/dist/jsx/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/jsx/layouts/attachments.mjs +3 -2
- package/dist/jsx/layouts/attachments.mjs.map +1 -1
- package/dist/jsx/layouts/attachments.native.js +11 -10
- package/dist/jsx/layouts/attachments.native.js.map +1 -1
- package/dist/jsx/layouts/breadcrumbs.mjs +3 -2
- package/dist/jsx/layouts/breadcrumbs.mjs.map +1 -1
- package/dist/jsx/layouts/breadcrumbs.native.js +3 -2
- package/dist/jsx/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/jsx/layouts/page.mjs +80 -10
- package/dist/jsx/layouts/page.mjs.map +1 -1
- package/dist/jsx/layouts/page.native.js +82 -8
- package/dist/jsx/layouts/page.native.js.map +1 -1
- package/dist/jsx/layouts/sidebar.mjs +5 -3
- package/dist/jsx/layouts/sidebar.mjs.map +1 -1
- package/dist/jsx/layouts/sidebar.native.js +3 -1
- package/dist/jsx/layouts/sidebar.native.js.map +1 -1
- package/dist/jsx/layouts/tags.mjs +6 -5
- package/dist/jsx/layouts/tags.mjs.map +1 -1
- package/dist/jsx/layouts/tags.native.js +2 -1
- package/dist/jsx/layouts/tags.native.js.map +1 -1
- package/dist/jsx/layouts/timeline.mjs +4 -3
- package/dist/jsx/layouts/timeline.mjs.map +1 -1
- package/dist/jsx/layouts/timeline.native.js +14 -13
- package/dist/jsx/layouts/timeline.native.js.map +1 -1
- package/dist/jsx/layouts/toolbar.mjs +2 -1
- package/dist/jsx/layouts/toolbar.mjs.map +1 -1
- package/dist/jsx/layouts/toolbar.native.js +2 -1
- package/dist/jsx/layouts/toolbar.native.js.map +1 -1
- package/dist/jsx/linearGradientSetup.mjs +2 -0
- package/dist/jsx/linearGradientSetup.mjs.map +1 -0
- package/dist/jsx/linearGradientSetup.native.js +4 -0
- package/dist/jsx/linearGradientSetup.native.js.map +1 -0
- package/dist/jsx/views/Calendar.mjs +7 -6
- package/dist/jsx/views/Calendar.mjs.map +1 -1
- package/dist/jsx/views/Calendar.native.js +14 -13
- package/dist/jsx/views/Calendar.native.js.map +1 -1
- package/dist/jsx/views/Gantt.mjs +196 -63
- package/dist/jsx/views/Gantt.mjs.map +1 -1
- package/dist/jsx/views/Gantt.native.js +201 -55
- package/dist/jsx/views/Gantt.native.js.map +1 -1
- package/dist/jsx/views/GanttDateGrip.mjs +191 -0
- package/dist/jsx/views/GanttDateGrip.mjs.map +1 -0
- package/dist/jsx/views/GanttDateGrip.native.js +259 -0
- package/dist/jsx/views/GanttDateGrip.native.js.map +1 -0
- package/dist/jsx/views/Kanban.mjs +5 -4
- package/dist/jsx/views/Kanban.mjs.map +1 -1
- package/dist/jsx/views/Kanban.native.js +3 -2
- package/dist/jsx/views/Kanban.native.js.map +1 -1
- package/dist/jsx/views/List.mjs +13 -5
- package/dist/jsx/views/List.mjs.map +1 -1
- package/dist/jsx/views/List.native.js +14 -3
- package/dist/jsx/views/List.native.js.map +1 -1
- package/dist/jsx/views/Matrix.mjs +10 -9
- package/dist/jsx/views/Matrix.mjs.map +1 -1
- package/dist/jsx/views/Matrix.native.js +2 -1
- package/dist/jsx/views/Matrix.native.js.map +1 -1
- package/dist/jsx/views/TreeView.mjs +5 -4
- package/dist/jsx/views/TreeView.mjs.map +1 -1
- package/dist/jsx/views/TreeView.native.js +3 -2
- package/dist/jsx/views/TreeView.native.js.map +1 -1
- package/dist/jsx/views/ganttIntervals.mjs +57 -0
- package/dist/jsx/views/ganttIntervals.mjs.map +1 -0
- package/dist/jsx/views/ganttIntervals.native.js +92 -0
- package/dist/jsx/views/ganttIntervals.native.js.map +1 -0
- package/package.json +12 -10
- package/src/Accordion/Accordion.stories.tsx +2 -1
- package/src/Alert/Alert.stories.tsx +2 -1
- package/src/Alert/index.tsx +2 -1
- package/src/AnimateHeight/AnimateHeight.stories.tsx +2 -1
- package/src/Avatar/Avatar.stories.tsx +2 -1
- package/src/Badge/Badge.stories.tsx +2 -1
- package/src/Card.stories.tsx +2 -1
- package/src/CardFooter.stories.tsx +2 -1
- package/src/CardHeader.stories.tsx +2 -1
- package/src/Carousel/Carousel.stories.tsx +2 -1
- package/src/Carousel/index.tsx +1 -1
- package/src/Chip/Chip.borderLadder.spec.tsx +3 -3
- package/src/Chip/Chip.ink.spec.tsx +70 -2
- package/src/Chip/Chip.spec.tsx +7 -4
- package/src/Chip/Chip.stories.tsx +2 -1
- package/src/Chip/index.tsx +29 -7
- package/src/ContextMenu/ContextMenu.stories.tsx +2 -1
- package/src/DialogContent.stories.tsx +2 -1
- package/src/DotIndicator/DotIndicator.stories.tsx +2 -1
- package/src/DropdownMenu/DropdownMenu.stories.tsx +2 -1
- package/src/ErrorBoundary/ErrorBoundary.stories.tsx +2 -1
- package/src/ErrorBoundary/index.tsx +1 -1
- package/src/Heading.native.spec.tsx +13 -5
- package/src/Heading.spec.tsx +55 -11
- package/src/Heading.tsx +3 -66
- package/src/Meter/Meter.spec.tsx +4 -4
- package/src/OverflowRow/OverflowRow.native.spec.tsx +124 -1
- package/src/OverflowRow/index.tsx +103 -4
- package/src/Pagination.stories.tsx +2 -1
- package/src/Pagination.tsx +9 -1
- package/src/Panel.stories.tsx +2 -1
- package/src/PopoverContent.stories.tsx +2 -1
- package/src/ProgressSteps/index.tsx +5 -1
- package/src/Quote/index.tsx +9 -2
- package/src/Separator/Separator.stories.tsx +2 -1
- package/src/SheetFrame.stories.tsx +2 -1
- package/src/SheetModal/SheetModal.stories.tsx +2 -1
- package/src/Skeleton/Skeleton.stories.tsx +2 -1
- package/src/SkipLink/SkipLink.stories.tsx +2 -1
- package/src/SkipLink/index.tsx +1 -2
- package/src/SortableList/index.tsx +14 -6
- package/src/SortableList/useSortableRows.ts +3 -2
- package/src/Tabs/Tabs.stories.tsx +2 -1
- package/src/Text.spec.tsx +22 -0
- package/src/Text.tsx +9 -133
- package/src/ThemePlayground/ExpoThemeColors.stories.tsx +60 -0
- package/src/ThemePlayground/index.tsx +2 -1
- package/src/ThemePresetPicker/ThemePresetPicker.spec.tsx +20 -0
- package/src/ThemePresetPicker/ThemePresetPicker.stories.spec.tsx +34 -12
- package/src/ThemePresetPicker/ThemePresetPicker.stories.tsx +11 -3
- package/src/ThemePresetPicker/index.tsx +35 -29
- package/src/Toast/Toast.stories.tsx +2 -1
- package/src/Tooltip/Tooltip.spec.tsx +1 -1
- package/src/TreeSelect/index.tsx +10 -9
- package/src/Video/PlayerChrome.tsx +1 -1
- package/src/Video/VideoFrame.tsx +4 -3
- package/src/Video/index.tsx +3 -1
- package/src/Wheel/Wheel.stories.tsx +2 -1
- package/src/actions/ActionBar.stories.tsx +2 -1
- package/src/actions/DestructiveAction.stories.tsx +2 -1
- package/src/actions/DestructiveAction.tsx +2 -1
- package/src/appShell/ScopeMenu.tsx +2 -1
- package/src/appShell/SettingsSplit.stories.tsx +2 -1
- package/src/appShell/SettingsSplit.tsx +6 -5
- package/src/appShell/Springboard.tsx +3 -2
- package/src/appShell/SystemBar.tsx +2 -1
- package/src/charts/Axis.stories.tsx +2 -1
- package/src/charts/ChartSurface.stories.tsx +2 -1
- package/src/charts/Charts.stories.tsx +2 -1
- package/src/code/CodeBlock/codeBlock.stories.ts +15 -0
- package/src/code/CodeInline.stories.tsx +3 -1
- package/src/code/Highlighter/Highlighter.native.spec.ts +76 -0
- package/src/code/Highlighter/index.ts +16 -1
- package/src/code/Highlighter/namedGroupMatchAll.ts +90 -0
- package/src/feedback/ConfirmDialog.stories.tsx +2 -1
- package/src/feedback/ConfirmDialog.tsx +1 -1
- package/src/feedback/Notify.stories.tsx +2 -1
- package/src/icons/CheckRegular.stories.tsx +2 -1
- package/src/icons/MinusRegular.stories.tsx +2 -1
- package/src/layouts/AsyncBoundary.stories.tsx +2 -1
- package/src/layouts/Attachments.stories.tsx +2 -1
- package/src/layouts/Debug/DebugLayout.stories.tsx +2 -1
- package/src/layouts/KeyboardAvoidingWrapper/KeyboardAvoidingWrapper.stories.tsx +2 -2
- package/src/layouts/PageHeader.stories.tsx +2 -1
- package/src/layouts/PageSection.stories.tsx +2 -1
- package/src/layouts/PageTemplates.stories.tsx +64 -2
- package/src/layouts/PaneScaffold.stories.tsx +2 -2
- package/src/layouts/SafeAreaWrapper/SafeAreaWrapper.stories.tsx +2 -2
- package/src/layouts/Screen.stories.tsx +2 -1
- package/src/layouts/Sidebar.stories.tsx +2 -1
- package/src/layouts/Tags.stories.tsx +2 -1
- package/src/layouts/Timeline.stories.tsx +2 -1
- package/src/layouts/Toolbar.stories.tsx +2 -1
- package/src/layouts/ViewSwitcher.stories.tsx +2 -1
- package/src/layouts/attachments.tsx +4 -3
- package/src/layouts/breadcrumbs.tsx +4 -3
- package/src/layouts/page.tsx +98 -9
- package/src/layouts/pageChrome.phone.spec.tsx +58 -0
- package/src/layouts/sidebar.tsx +7 -5
- package/src/layouts/tags-trigger.spec.tsx +3 -3
- package/src/layouts/tags.tsx +14 -9
- package/src/layouts/timeline.tsx +6 -5
- package/src/layouts/toolbar.tsx +2 -1
- package/src/linearGradientSetup.native.spec.ts +19 -0
- package/src/linearGradientSetup.native.ts +3 -0
- package/src/linearGradientSetup.ts +1 -0
- package/src/views/Calendar.tsx +12 -11
- package/src/views/Gantt.intervals.spec.tsx +69 -0
- package/src/views/Gantt.scroll.spec.tsx +42 -0
- package/src/views/Gantt.spec.tsx +4 -5
- package/src/views/Gantt.stories.tsx +19 -0
- package/src/views/Gantt.tsx +230 -106
- package/src/views/GanttDateGrip.native.spec.tsx +118 -0
- package/src/views/GanttDateGrip.tsx +266 -0
- package/src/views/ImageGrid.stories.tsx +2 -1
- package/src/views/Kanban.native.spec.tsx +98 -0
- package/src/views/Kanban.native.tsx +3 -2
- package/src/views/Kanban.stories.tsx +2 -1
- package/src/views/Kanban.tsx +15 -6
- package/src/views/List.spec.tsx +18 -0
- package/src/views/List.tsx +17 -2
- package/src/views/Matrix.tsx +22 -17
- package/src/views/TreeView.reveal.stories.tsx +2 -1
- package/src/views/TreeView.tsx +15 -6
- package/src/views/dataIdentity.spec.tsx +5 -1
- package/src/views/ganttIntervals.spec.ts +84 -0
- package/src/views/ganttIntervals.ts +91 -0
- package/src/views/index.ts +2 -0
- package/types/Alert/index.d.ts.map +1 -1
- package/types/Chip/index.d.ts +5 -3
- package/types/Chip/index.d.ts.map +1 -1
- package/types/Collapsible.d.ts +1 -1
- package/types/Heading.d.ts +2 -9
- package/types/Heading.d.ts.map +1 -1
- package/types/OverflowRow/index.d.ts +1 -0
- package/types/OverflowRow/index.d.ts.map +1 -1
- package/types/Pagination.d.ts +6 -1
- package/types/Pagination.d.ts.map +1 -1
- package/types/ProgressSteps/index.d.ts.map +1 -1
- package/types/Quote/index.d.ts.map +1 -1
- package/types/SkipLink/index.d.ts.map +1 -1
- package/types/SortableList/index.d.ts.map +1 -1
- package/types/SortableList/useSortableRows.d.ts.map +1 -1
- package/types/Tabs/index.d.ts +1 -1
- package/types/Text.d.ts +2 -12
- package/types/Text.d.ts.map +1 -1
- package/types/ThemePlayground/index.d.ts.map +1 -1
- package/types/ThemePresetPicker/index.d.ts +3 -1
- package/types/ThemePresetPicker/index.d.ts.map +1 -1
- package/types/TreeSelect/index.d.ts.map +1 -1
- package/types/Video/VideoFrame.d.ts.map +1 -1
- package/types/Video/index.d.ts.map +1 -1
- package/types/actions/DestructiveAction.d.ts.map +1 -1
- package/types/appShell/ScopeMenu.d.ts.map +1 -1
- package/types/appShell/SettingsSplit.d.ts.map +1 -1
- package/types/appShell/Springboard.d.ts.map +1 -1
- package/types/appShell/SystemBar.d.ts.map +1 -1
- package/types/code/Highlighter/index.d.ts.map +1 -1
- package/types/code/Highlighter/namedGroupMatchAll.d.ts +22 -0
- package/types/code/Highlighter/namedGroupMatchAll.d.ts.map +1 -0
- package/types/layouts/attachments.d.ts.map +1 -1
- package/types/layouts/breadcrumbs.d.ts.map +1 -1
- package/types/layouts/page.d.ts +21 -3
- package/types/layouts/page.d.ts.map +1 -1
- package/types/layouts/sidebar.d.ts.map +1 -1
- package/types/layouts/tags.d.ts.map +1 -1
- package/types/layouts/timeline.d.ts.map +1 -1
- package/types/layouts/toolbar.d.ts.map +1 -1
- package/types/linearGradientSetup.d.ts +2 -0
- package/types/linearGradientSetup.d.ts.map +1 -0
- package/types/linearGradientSetup.native.d.ts +2 -0
- package/types/linearGradientSetup.native.d.ts.map +1 -0
- package/types/views/Calendar.d.ts.map +1 -1
- package/types/views/Gantt.d.ts +9 -21
- package/types/views/Gantt.d.ts.map +1 -1
- package/types/views/GanttDateGrip.d.ts +22 -0
- package/types/views/GanttDateGrip.d.ts.map +1 -0
- package/types/views/Kanban.d.ts.map +1 -1
- package/types/views/List.d.ts +17 -0
- package/types/views/List.d.ts.map +1 -1
- package/types/views/Matrix.d.ts.map +1 -1
- package/types/views/TreeView.d.ts.map +1 -1
- package/types/views/ganttIntervals.d.ts +11 -0
- package/types/views/ganttIntervals.d.ts.map +1 -0
- package/types/views/index.d.ts +1 -0
- package/types/views/index.d.ts.map +1 -1
package/dist/cjs/views/Gantt.cjs
CHANGED
|
@@ -38,7 +38,13 @@ var import_i18n = require("../shared/i18n.cjs");
|
|
|
38
38
|
var import_react_native = require("react-native-web");
|
|
39
39
|
var import_tamagui = require("tamagui");
|
|
40
40
|
var import_ScrollView = require("../ScrollView/index.cjs");
|
|
41
|
+
var import_linear_gradient = require("tamagui/linear-gradient");
|
|
42
|
+
var import_core = require("@tamagui/core");
|
|
43
|
+
var import_tamagui2 = require("tamagui");
|
|
44
|
+
var import_GanttDateGrip = require("./GanttDateGrip.cjs");
|
|
45
|
+
var import_ganttIntervals = require("./ganttIntervals.cjs");
|
|
41
46
|
var import_ganttMath = require("./ganttMath.cjs");
|
|
47
|
+
var import_Text = require("../Text.cjs");
|
|
42
48
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
43
49
|
const CanvasScroller = import_tamagui.isWeb ? import_ScrollView.ScrollView : import_react_native.ScrollView;
|
|
44
50
|
function boundedSpan(ref) {
|
|
@@ -215,28 +221,63 @@ function GanttBarLabel({
|
|
|
215
221
|
children: `${title}\u200B`
|
|
216
222
|
});
|
|
217
223
|
}
|
|
218
|
-
function
|
|
224
|
+
function GanttIntervalFill({
|
|
219
225
|
fill,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
226
|
+
openStart,
|
|
227
|
+
openEnd,
|
|
228
|
+
width,
|
|
229
|
+
rtl,
|
|
230
|
+
ghost
|
|
223
231
|
}) {
|
|
224
232
|
const {
|
|
225
233
|
knobProps
|
|
226
234
|
} = (0, import_theme.useResolvedKnobs)();
|
|
227
|
-
const
|
|
228
|
-
|
|
235
|
+
const theme = (0, import_tamagui2.useTheme)();
|
|
236
|
+
const color = theme[fill]?.val ?? (fill.startsWith("$") ? (0, import_tamagui2.getTokenValue)(fill, "color") : fill);
|
|
237
|
+
const rgba = (0, import_core.getRgba)(String(color));
|
|
238
|
+
const clear = rgba ? `rgba(${rgba.r}, ${rgba.g}, ${rgba.b}, 0)` : "transparent";
|
|
239
|
+
const fadeWidth = Math.min(Number(knobProps.control.height), width / 2);
|
|
240
|
+
const leftOpen = rtl ? openEnd : openStart;
|
|
241
|
+
const rightOpen = rtl ? openStart : openEnd;
|
|
242
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
229
243
|
position: "absolute",
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
244
|
+
top: 0,
|
|
245
|
+
bottom: 0,
|
|
246
|
+
left: 0,
|
|
247
|
+
right: 0,
|
|
234
248
|
pointerEvents: "none",
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
249
|
+
opacity: ghost ? 0.25 : 1,
|
|
250
|
+
overflow: "hidden",
|
|
251
|
+
...knobProps.borderRadius,
|
|
252
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
253
|
+
position: "absolute",
|
|
254
|
+
top: 0,
|
|
255
|
+
bottom: 0,
|
|
256
|
+
left: leftOpen ? fadeWidth : 0,
|
|
257
|
+
right: rightOpen ? fadeWidth : 0,
|
|
258
|
+
backgroundColor: fill
|
|
259
|
+
}), ["start", "end"].map(edge => {
|
|
260
|
+
if (edge === "start" ? !openStart : !openEnd) return null;
|
|
261
|
+
const left = edge === "start" !== rtl;
|
|
262
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_linear_gradient.LinearGradient, {
|
|
263
|
+
position: "absolute",
|
|
264
|
+
top: 0,
|
|
265
|
+
bottom: 0,
|
|
266
|
+
...(left ? {
|
|
267
|
+
left: 0
|
|
268
|
+
} : {
|
|
269
|
+
right: 0
|
|
270
|
+
}),
|
|
271
|
+
width: fadeWidth,
|
|
272
|
+
colors: left ? [clear, String(color)] : [String(color), clear],
|
|
273
|
+
start: [0, 0],
|
|
274
|
+
end: [1, 0],
|
|
275
|
+
...{
|
|
276
|
+
"data-gantt-open-fade": edge,
|
|
277
|
+
[`data-gantt-open-${edge}`]: "true"
|
|
278
|
+
}
|
|
279
|
+
}, edge);
|
|
280
|
+
})]
|
|
240
281
|
});
|
|
241
282
|
}
|
|
242
283
|
function GanttTaskName({
|
|
@@ -258,6 +299,8 @@ function GanttView({
|
|
|
258
299
|
onItemPress,
|
|
259
300
|
onItemMove,
|
|
260
301
|
enableItemDrag,
|
|
302
|
+
onIntervalChange,
|
|
303
|
+
snapUnit = "day",
|
|
261
304
|
isLoading = false,
|
|
262
305
|
error = null,
|
|
263
306
|
onRetry,
|
|
@@ -298,15 +341,15 @@ function GanttView({
|
|
|
298
341
|
const [hoveredId, setHoveredId] = (0, import_react.useState)(null);
|
|
299
342
|
const [focusedBarId, setFocusedBarId] = (0, import_react.useState)(null);
|
|
300
343
|
const [barKeyboardRing, setBarKeyboardRing] = (0, import_react.useState)(false);
|
|
301
|
-
const
|
|
302
|
-
const
|
|
303
|
-
const
|
|
304
|
-
const
|
|
305
|
-
const
|
|
306
|
-
const
|
|
307
|
-
const barInset =
|
|
308
|
-
const barHeight =
|
|
309
|
-
const railHeight =
|
|
344
|
+
const controlHeight = Number(knobProps.control.height);
|
|
345
|
+
const controlGap = Number(knobProps.control.gap);
|
|
346
|
+
const height = heightProp ?? controlHeight * 12;
|
|
347
|
+
const rowHeight = Math.max(import_theme.MIN_PRESS_TARGET, controlHeight + controlGap);
|
|
348
|
+
const axisHeight = controlHeight + controlGap;
|
|
349
|
+
const pxPerDay = controlHeight * (zoom === "day" ? 1.6 : zoom === "week" ? 0.6 : 0.2);
|
|
350
|
+
const barInset = controlGap;
|
|
351
|
+
const barHeight = rowHeight - barInset * 2;
|
|
352
|
+
const railHeight = barHeight / 2;
|
|
310
353
|
const transition = knobProps.motion.slide.transition;
|
|
311
354
|
const webLayoutTransition = import_tamagui.isWeb ? transition : void 0;
|
|
312
355
|
const spans = (0, import_react.useMemo)(() => {
|
|
@@ -333,6 +376,13 @@ function GanttView({
|
|
|
333
376
|
const hScrollRef = (0, import_react.useRef)(null);
|
|
334
377
|
const axisScrollRef = (0, import_react.useRef)(null);
|
|
335
378
|
const canvasViewportRef = (0, import_react.useRef)(null);
|
|
379
|
+
const [viewportMeasure, setViewportMeasure] = (0, import_react.useState)({
|
|
380
|
+
offset: 0,
|
|
381
|
+
width: null
|
|
382
|
+
});
|
|
383
|
+
const visibleWindow = (0, import_ganttIntervals.intervalViewport)(viewportMeasure.offset, viewportMeasure.width, chartWidth, rtl);
|
|
384
|
+
const [intervalPreview, setIntervalPreview] = (0, import_react.useState)(null);
|
|
385
|
+
const intervalEditing = onIntervalChange !== void 0 && enableItemDrag !== false;
|
|
336
386
|
const pendingAnchorRef = (0, import_react.useRef)(null);
|
|
337
387
|
const scrollToDate = (0, import_react.useCallback)((date, animated) => {
|
|
338
388
|
const viewportWidth = canvasViewportRef.current;
|
|
@@ -343,6 +393,10 @@ function GanttView({
|
|
|
343
393
|
viewportWidth,
|
|
344
394
|
rtl
|
|
345
395
|
});
|
|
396
|
+
setViewportMeasure(previous => ({
|
|
397
|
+
...previous,
|
|
398
|
+
offset: x
|
|
399
|
+
}));
|
|
346
400
|
hScrollRef.current?.scrollTo?.({
|
|
347
401
|
x,
|
|
348
402
|
animated
|
|
@@ -352,6 +406,39 @@ function GanttView({
|
|
|
352
406
|
animated: false
|
|
353
407
|
});
|
|
354
408
|
}, [range.start, pxPerDay, labelWidth, rtl, chartWidth]);
|
|
409
|
+
const previousRange = (0, import_react.useRef)({
|
|
410
|
+
start: range.start,
|
|
411
|
+
end: range.end,
|
|
412
|
+
pxPerDay,
|
|
413
|
+
rtl
|
|
414
|
+
});
|
|
415
|
+
(0, import_react.useLayoutEffect)(() => {
|
|
416
|
+
const previous = previousRange.current;
|
|
417
|
+
previousRange.current = {
|
|
418
|
+
start: range.start,
|
|
419
|
+
end: range.end,
|
|
420
|
+
pxPerDay,
|
|
421
|
+
rtl
|
|
422
|
+
};
|
|
423
|
+
if (previous.pxPerDay !== pxPerDay || previous.rtl !== rtl) return;
|
|
424
|
+
const delta = rtl ? (0, import_ganttMath.dayDiff)(previous.end, range.end) : (0, import_ganttMath.dayDiff)(range.start, previous.start);
|
|
425
|
+
if (!delta) return;
|
|
426
|
+
setViewportMeasure(measurement => {
|
|
427
|
+
const offset = Math.max(0, Math.min(measurement.offset + delta * pxPerDay, Math.max(0, chartWidth - (measurement.width ?? 0))));
|
|
428
|
+
hScrollRef.current?.scrollTo?.({
|
|
429
|
+
x: offset,
|
|
430
|
+
animated: false
|
|
431
|
+
});
|
|
432
|
+
axisScrollRef.current?.scrollTo?.({
|
|
433
|
+
x: offset,
|
|
434
|
+
animated: false
|
|
435
|
+
});
|
|
436
|
+
return {
|
|
437
|
+
...measurement,
|
|
438
|
+
offset
|
|
439
|
+
};
|
|
440
|
+
});
|
|
441
|
+
}, [range.start, range.end, pxPerDay, rtl, chartWidth]);
|
|
355
442
|
const scrollToDateRef = (0, import_react.useRef)(scrollToDate);
|
|
356
443
|
scrollToDateRef.current = scrollToDate;
|
|
357
444
|
(0, import_react.useEffect)(() => {
|
|
@@ -359,6 +446,10 @@ function GanttView({
|
|
|
359
446
|
}, [zoom, initialDate, rtl]);
|
|
360
447
|
const handleCanvasScroll = (0, import_react.useCallback)(event => {
|
|
361
448
|
const x = event?.nativeEvent?.contentOffset?.x ?? 0;
|
|
449
|
+
setViewportMeasure(previous => ({
|
|
450
|
+
...previous,
|
|
451
|
+
offset: x
|
|
452
|
+
}));
|
|
362
453
|
axisScrollRef.current?.scrollTo?.({
|
|
363
454
|
x,
|
|
364
455
|
animated: false
|
|
@@ -368,6 +459,10 @@ function GanttView({
|
|
|
368
459
|
const width = event?.nativeEvent?.layout?.width;
|
|
369
460
|
if (typeof width !== "number" || !Number.isFinite(width) || width <= 0) return;
|
|
370
461
|
canvasViewportRef.current = width;
|
|
462
|
+
setViewportMeasure(previous => ({
|
|
463
|
+
...previous,
|
|
464
|
+
width
|
|
465
|
+
}));
|
|
371
466
|
const pending = pendingAnchorRef.current;
|
|
372
467
|
if (pending) {
|
|
373
468
|
pendingAnchorRef.current = null;
|
|
@@ -774,10 +869,22 @@ function GanttView({
|
|
|
774
869
|
});
|
|
775
870
|
};
|
|
776
871
|
const renderBar = (task, ref) => {
|
|
777
|
-
const span = ref.
|
|
872
|
+
const span = intervalPreview?.key === ref.key ? {
|
|
873
|
+
...ref.span,
|
|
874
|
+
...intervalPreview.span
|
|
875
|
+
} : ref.span;
|
|
778
876
|
const barKey = ref.key;
|
|
779
877
|
const bounded = boundedSpan(ref);
|
|
780
878
|
const geom = (0, import_ganttMath.openBarGeometry)(span, range, pxPerDay);
|
|
879
|
+
const startX = (0, import_ganttIntervals.intervalEdgeX)(span, "start", range, pxPerDay, visibleWindow);
|
|
880
|
+
const endX = (0, import_ganttIntervals.intervalEdgeX)(span, "end", range, pxPerDay, visibleWindow);
|
|
881
|
+
const activeInterval = intervalPreview?.key === ref.key;
|
|
882
|
+
const outsideWindow = endX <= visibleWindow.start || startX >= visibleWindow.end || endX <= startX;
|
|
883
|
+
if ((geom.openStart || geom.openEnd) && (!outsideWindow || activeInterval)) {
|
|
884
|
+
geom.x = startX;
|
|
885
|
+
geom.width = Math.max(0, endX - startX);
|
|
886
|
+
}
|
|
887
|
+
const ghost = ref.span.ghost ?? task.ghost ?? false;
|
|
781
888
|
const activeDrag = drag && drag.key === barKey ? drag : null;
|
|
782
889
|
const dragging = activeDrag !== null;
|
|
783
890
|
const activeResize = resize && resize.key === barKey ? resize : null;
|
|
@@ -792,23 +899,13 @@ function GanttView({
|
|
|
792
899
|
const barIntent = span.intent ?? task.intent;
|
|
793
900
|
const barTitle = span.title ?? task.title;
|
|
794
901
|
const fill = barColor ?? (barIntent && barIntent !== "accent" ? "$color9" : identity);
|
|
795
|
-
const progress = bounded ? clampProgress(span.progress ?? task.progress) : null;
|
|
902
|
+
const progress = bounded && !ghost ? clampProgress(span.progress ?? task.progress) : null;
|
|
796
903
|
const showLabel = !geom.eternal && liveWidth >= 44;
|
|
797
904
|
const isBarFocused = focusedBarId === barKey;
|
|
798
905
|
const showHandles = hoveredId === task.id || sessionLive;
|
|
799
906
|
const handleWidth = bounded ? geom.width >= 24 ? 8 : geom.width >= 12 ? 4 : 0 : 0;
|
|
800
907
|
const physicalLeftEdge = rtl ? "end" : "start";
|
|
801
908
|
const physicalRightEdge = rtl ? "start" : "end";
|
|
802
|
-
const openStartSide = rtl ? {
|
|
803
|
-
right: 2
|
|
804
|
-
} : {
|
|
805
|
-
left: 2
|
|
806
|
-
};
|
|
807
|
-
const openEndSide = rtl ? {
|
|
808
|
-
left: 2
|
|
809
|
-
} : {
|
|
810
|
-
right: 2
|
|
811
|
-
};
|
|
812
909
|
const squareStart = rtl ? {
|
|
813
910
|
borderTopRightRadius: 0,
|
|
814
911
|
borderBottomRightRadius: 0
|
|
@@ -852,7 +949,12 @@ function GanttView({
|
|
|
852
949
|
...knobProps.borderRadius,
|
|
853
950
|
...(geom.openStart ? squareStart : null),
|
|
854
951
|
...(geom.openEnd ? squareEnd : null),
|
|
855
|
-
backgroundColor:
|
|
952
|
+
backgroundColor: "transparent",
|
|
953
|
+
...(ghost ? {
|
|
954
|
+
borderStyle: "dashed",
|
|
955
|
+
borderWidth: import_theme.hairlineWidth,
|
|
956
|
+
borderColor: fill
|
|
957
|
+
} : {}),
|
|
856
958
|
opacity: sessionLive ? 0.85 : geom.eternal ? 0.55 : 1,
|
|
857
959
|
hoverStyle: {
|
|
858
960
|
opacity: sessionLive ? 0.85 : geom.eternal ? 0.7 : 0.9
|
|
@@ -868,7 +970,7 @@ function GanttView({
|
|
|
868
970
|
}, ["left", "width", "backgroundColor"]),
|
|
869
971
|
role: "button",
|
|
870
972
|
tabIndex: 0,
|
|
871
|
-
"aria-label": spanAccessibleName(barTitle, span),
|
|
973
|
+
"aria-label": ghost ? `${spanAccessibleName(barTitle, span)}, ${t("Proposed")}` : spanAccessibleName(barTitle, span),
|
|
872
974
|
...(isBarFocused && barKeyboardRing ? import_theme.keyboardFocusRingProps : {
|
|
873
975
|
outlineWidth: 0
|
|
874
976
|
}),
|
|
@@ -898,7 +1000,8 @@ function GanttView({
|
|
|
898
1000
|
}
|
|
899
1001
|
},
|
|
900
1002
|
...{
|
|
901
|
-
"data-gantt-bar": barKey
|
|
1003
|
+
"data-gantt-bar": barKey,
|
|
1004
|
+
"data-gantt-ghost": ghost ? "true" : void 0
|
|
902
1005
|
},
|
|
903
1006
|
...(geom.eternal ? {
|
|
904
1007
|
"data-gantt-rail": "true"
|
|
@@ -912,7 +1015,14 @@ function GanttView({
|
|
|
912
1015
|
if (suppressClickRef.current) return;
|
|
913
1016
|
onItemPress?.(task);
|
|
914
1017
|
},
|
|
915
|
-
children: [
|
|
1018
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(GanttIntervalFill, {
|
|
1019
|
+
fill,
|
|
1020
|
+
openStart: geom.openStart,
|
|
1021
|
+
openEnd: geom.openEnd,
|
|
1022
|
+
width: liveWidth,
|
|
1023
|
+
rtl,
|
|
1024
|
+
ghost
|
|
1025
|
+
}), progress != null && progress > 0 && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
916
1026
|
position: "absolute",
|
|
917
1027
|
top: 0,
|
|
918
1028
|
bottom: 0,
|
|
@@ -928,20 +1038,16 @@ function GanttView({
|
|
|
928
1038
|
...{
|
|
929
1039
|
"data-gantt-progress": String(progress)
|
|
930
1040
|
}
|
|
931
|
-
}), showLabel && /* @__PURE__ */(0, import_jsx_runtime.jsx)(
|
|
1041
|
+
}), showLabel && (ghost ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Text.Text, {
|
|
1042
|
+
...knobProps.label,
|
|
1043
|
+
color: "$color",
|
|
1044
|
+
numberOfLines: 1,
|
|
1045
|
+
pointerEvents: "none",
|
|
1046
|
+
children: barTitle
|
|
1047
|
+
}) : /* @__PURE__ */(0, import_jsx_runtime.jsx)(GanttBarLabel, {
|
|
932
1048
|
title: barTitle,
|
|
933
1049
|
fill
|
|
934
|
-
}),
|
|
935
|
-
fill,
|
|
936
|
-
glyph: rtl ? "\xBB" : "\xAB",
|
|
937
|
-
side: openStartSide,
|
|
938
|
-
edge: "start"
|
|
939
|
-
}), geom.openEnd && /* @__PURE__ */(0, import_jsx_runtime.jsx)(GanttOpenEdgeMark, {
|
|
940
|
-
fill,
|
|
941
|
-
glyph: rtl ? "\xAB" : "\xBB",
|
|
942
|
-
side: openEndSide,
|
|
943
|
-
edge: "end"
|
|
944
|
-
}), previewSpan && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.XStack, {
|
|
1050
|
+
})), previewSpan && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.XStack, {
|
|
945
1051
|
position: "absolute",
|
|
946
1052
|
top: -(axisHeight - 6),
|
|
947
1053
|
...(rtl ? {
|
|
@@ -965,7 +1071,7 @@ function GanttView({
|
|
|
965
1071
|
numberOfLines: 1,
|
|
966
1072
|
children: (0, import_ganttMath.formatSpanLabel)(previewSpan)
|
|
967
1073
|
})
|
|
968
|
-
}), webDragEnabled && handleWidth > 0 && /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
1074
|
+
}), webDragEnabled && !intervalEditing && handleWidth > 0 && /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
969
1075
|
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
970
1076
|
position: "absolute",
|
|
971
1077
|
left: 0,
|
|
@@ -1002,10 +1108,37 @@ function GanttView({
|
|
|
1002
1108
|
zIndex: 5,
|
|
1003
1109
|
...getBarDragProps(task, ref)
|
|
1004
1110
|
})]
|
|
1111
|
+
}), intervalEditing && ["start", "end"].map(edge => {
|
|
1112
|
+
const edgeX = (0, import_ganttIntervals.intervalEdgeX)(span, edge, range, pxPerDay, visibleWindow);
|
|
1113
|
+
if (!activeInterval && (outsideWindow || edgeX < visibleWindow.start || edgeX > visibleWindow.end)) return null;
|
|
1114
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_GanttDateGrip.GanttDateGrip, {
|
|
1115
|
+
span: ref.span,
|
|
1116
|
+
displayX: edgeX,
|
|
1117
|
+
edge,
|
|
1118
|
+
range,
|
|
1119
|
+
viewport: visibleWindow,
|
|
1120
|
+
pxPerDay,
|
|
1121
|
+
rowHeight,
|
|
1122
|
+
chartWidth,
|
|
1123
|
+
rtl,
|
|
1124
|
+
snapUnit,
|
|
1125
|
+
firstDayOfWeek,
|
|
1126
|
+
label: `${barTitle}: ${edge === "start" ? t("Start") : t("End")}`,
|
|
1127
|
+
valueText: span[edge] ? (0, import_theme.formatAbsoluteDate)(span[edge]) : edge === "start" ? t("No start") : t("No end"),
|
|
1128
|
+
onPreview: next => setIntervalPreview(previous => next ? {
|
|
1129
|
+
key: ref.key,
|
|
1130
|
+
span: next
|
|
1131
|
+
} : previous?.key === ref.key ? null : previous),
|
|
1132
|
+
onCommit: next => {
|
|
1133
|
+
suppressNextClick();
|
|
1134
|
+
onIntervalChange?.(task, next, ref);
|
|
1135
|
+
setAnnouncement(spanAccessibleName(barTitle, next));
|
|
1136
|
+
}
|
|
1137
|
+
}, `${ref.key}-${edge}`);
|
|
1005
1138
|
})]
|
|
1006
1139
|
}, barKey);
|
|
1007
1140
|
};
|
|
1008
|
-
const scrollLocked = drag !== null || resize !== null || markerDragging;
|
|
1141
|
+
const scrollLocked = drag !== null || resize !== null || markerDragging || intervalPreview !== null;
|
|
1009
1142
|
const majorGridColor = "$borderColor";
|
|
1010
1143
|
const minorGridColor = import_componentColors.componentColors.divider;
|
|
1011
1144
|
const scrollerDirection = {
|
|
@@ -1376,7 +1509,7 @@ function GanttView({
|
|
|
1376
1509
|
...{
|
|
1377
1510
|
"data-gantt-live": "true"
|
|
1378
1511
|
},
|
|
1379
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(
|
|
1512
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Text.Text, {
|
|
1380
1513
|
children: announcement
|
|
1381
1514
|
})
|
|
1382
1515
|
})]
|