@multiplatform.one/components 6.7.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Accordion/index.cjs +213 -70
- package/dist/cjs/Accordion/index.native.js +254 -75
- package/dist/cjs/Accordion/index.native.js.map +1 -1
- package/dist/cjs/Alert/index.cjs +204 -56
- package/dist/cjs/Alert/index.native.js +211 -60
- package/dist/cjs/Alert/index.native.js.map +1 -1
- package/dist/cjs/AnimateHeight/index.cjs +166 -0
- package/dist/cjs/AnimateHeight/index.native.js +176 -0
- package/dist/cjs/AnimateHeight/index.native.js.map +1 -0
- package/dist/cjs/Avatar/getInitials.cjs +34 -0
- package/dist/cjs/Avatar/getInitials.native.js +34 -0
- package/dist/cjs/Avatar/getInitials.native.js.map +1 -1
- package/dist/cjs/Avatar/index.cjs +246 -62
- package/dist/cjs/Avatar/index.native.js +252 -68
- package/dist/cjs/Avatar/index.native.js.map +1 -1
- package/dist/cjs/Badge/index.cjs +109 -75
- package/dist/cjs/Badge/index.native.js +110 -76
- package/dist/cjs/Badge/index.native.js.map +1 -1
- package/dist/cjs/Button.cjs +41 -0
- package/dist/cjs/Button.native.js +45 -0
- package/dist/cjs/Button.native.js.map +1 -0
- package/dist/cjs/Carousel/index.cjs +184 -105
- package/dist/cjs/Carousel/index.native.js +212 -107
- package/dist/cjs/Carousel/index.native.js.map +1 -1
- package/dist/cjs/Chip/index.cjs +360 -5
- package/dist/cjs/Chip/index.native.js +374 -5
- package/dist/cjs/Chip/index.native.js.map +1 -1
- package/dist/cjs/DotIndicator/index.cjs +129 -13
- package/dist/cjs/DotIndicator/index.native.js +133 -13
- package/dist/cjs/DotIndicator/index.native.js.map +1 -1
- package/dist/cjs/DropdownMenu/index.cjs +110 -44
- package/dist/cjs/DropdownMenu/index.native.js +113 -46
- package/dist/cjs/DropdownMenu/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/Pagination.cjs +40 -11
- package/dist/cjs/Pagination.native.js +44 -11
- package/dist/cjs/Pagination.native.js.map +1 -1
- package/dist/cjs/ProgressSteps/index.cjs +163 -107
- package/dist/cjs/ProgressSteps/index.native.js +171 -115
- package/dist/cjs/ProgressSteps/index.native.js.map +1 -1
- package/dist/cjs/Quote/index.cjs +58 -39
- package/dist/cjs/Quote/index.native.js +69 -45
- package/dist/cjs/Quote/index.native.js.map +1 -1
- package/dist/cjs/SheetModal/index.cjs +141 -4
- package/dist/cjs/SheetModal/index.native.js +42 -29
- package/dist/cjs/SheetModal/index.native.js.map +1 -1
- package/dist/cjs/Skeleton/index.cjs +216 -4
- package/dist/cjs/Skeleton/index.native.js +223 -4
- package/dist/cjs/Skeleton/index.native.js.map +1 -1
- package/dist/cjs/SkipLink/index.cjs +91 -57
- package/dist/cjs/SkipLink/index.native.js +92 -66
- package/dist/cjs/SkipLink/index.native.js.map +1 -1
- package/dist/cjs/Tabs/index.cjs +136 -95
- package/dist/cjs/Tabs/index.native.js +161 -108
- package/dist/cjs/Tabs/index.native.js.map +1 -1
- package/dist/cjs/Toast/index.cjs +229 -67
- package/dist/cjs/Toast/index.native.js +232 -67
- package/dist/cjs/Toast/index.native.js.map +1 -1
- package/dist/cjs/Toast/store.cjs +83 -10
- package/dist/cjs/Toast/store.native.js +108 -10
- package/dist/cjs/Toast/store.native.js.map +1 -1
- package/dist/cjs/Tooltip/index.cjs +159 -42
- package/dist/cjs/Tooltip/index.native.js +195 -43
- package/dist/cjs/Tooltip/index.native.js.map +1 -1
- package/dist/cjs/Video/PlayerChrome.cjs +403 -0
- package/dist/cjs/Video/PlayerChrome.native.js +436 -0
- package/dist/cjs/Video/PlayerChrome.native.js.map +1 -0
- package/dist/cjs/Video/VideoFrame.cjs +14 -5
- package/dist/cjs/Video/VideoFrame.native.js +16 -5
- package/dist/cjs/Video/VideoFrame.native.js.map +1 -1
- package/dist/cjs/Video/index.cjs +227 -11
- package/dist/cjs/Video/index.native.js +28 -13
- package/dist/cjs/Video/index.native.js.map +1 -1
- package/dist/cjs/Wheel/index.cjs +144 -93
- package/dist/cjs/Wheel/index.native.js +149 -96
- package/dist/cjs/Wheel/index.native.js.map +1 -1
- package/dist/cjs/actions/DestructiveAction.cjs +2 -2
- package/dist/cjs/actions/DestructiveAction.native.js +2 -2
- package/dist/cjs/actions/DestructiveAction.native.js.map +1 -1
- package/dist/cjs/charts/BarChart.cjs +9 -5
- package/dist/cjs/charts/BarChart.native.js +9 -5
- package/dist/cjs/charts/BarChart.native.js.map +1 -1
- package/dist/cjs/charts/LineChart.cjs +2 -2
- package/dist/cjs/charts/LineChart.native.js +2 -2
- package/dist/cjs/charts/LineChart.native.js.map +1 -1
- package/dist/cjs/charts/PieChart.cjs +2 -2
- package/dist/cjs/charts/PieChart.native.js +2 -2
- package/dist/cjs/charts/PieChart.native.js.map +1 -1
- package/dist/cjs/charts/Sparkline.cjs +2 -2
- package/dist/cjs/charts/Sparkline.native.js +2 -2
- package/dist/cjs/charts/Sparkline.native.js.map +1 -1
- package/dist/cjs/charts/index.cjs +4 -0
- package/dist/cjs/charts/index.native.js +4 -0
- package/dist/cjs/charts/index.native.js.map +1 -1
- package/dist/cjs/code/CodeBlock/index.cjs +34 -7
- package/dist/cjs/code/CodeBlock/index.native.js +36 -9
- package/dist/cjs/code/CodeBlock/index.native.js.map +1 -1
- package/dist/cjs/feedback/ConfirmDialog.cjs +92 -5
- package/dist/cjs/feedback/ConfirmDialog.native.js +123 -5
- package/dist/cjs/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/cjs/feedback/NotifyHost.cjs +2 -2
- package/dist/cjs/feedback/NotifyHost.native.js +2 -2
- package/dist/cjs/feedback/NotifyHost.native.js.map +1 -1
- package/dist/cjs/icons/themed.cjs +4 -1
- package/dist/cjs/icons/themed.native.js +4 -1
- package/dist/cjs/icons/themed.native.js.map +1 -1
- package/dist/cjs/images/Image/ImageFrame.cjs +242 -0
- package/dist/cjs/images/Image/ImageFrame.native.js +248 -0
- package/dist/cjs/images/Image/ImageFrame.native.js.map +1 -0
- package/dist/cjs/images/Image/index.cjs +93 -40
- package/dist/cjs/images/Image/index.native.js +146 -108
- package/dist/cjs/images/Image/index.native.js.map +1 -1
- package/dist/cjs/images/Image/shared.cjs +106 -0
- package/dist/cjs/images/Image/shared.native.js +109 -0
- package/dist/cjs/images/Image/shared.native.js.map +1 -0
- package/dist/cjs/index.cjs +7 -0
- package/dist/cjs/index.native.js +7 -0
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/knobImmuneExports.cjs +95 -0
- package/dist/cjs/knobImmuneExports.native.js +98 -0
- package/dist/cjs/knobImmuneExports.native.js.map +1 -0
- package/dist/cjs/layouts/AsyncBoundary.cjs +163 -36
- package/dist/cjs/layouts/AsyncBoundary.native.js +166 -37
- package/dist/cjs/layouts/AsyncBoundary.native.js.map +1 -1
- package/dist/cjs/layouts/EmptyState.cjs +157 -0
- package/dist/cjs/layouts/EmptyState.native.js +165 -0
- package/dist/cjs/layouts/EmptyState.native.js.map +1 -0
- package/dist/cjs/layouts/PageTemplates.cjs +13 -5
- package/dist/cjs/layouts/PageTemplates.native.js +13 -5
- package/dist/cjs/layouts/PageTemplates.native.js.map +1 -1
- package/dist/cjs/layouts/PaneScaffold.cjs +273 -13
- package/dist/cjs/layouts/PaneScaffold.native.js +294 -13
- package/dist/cjs/layouts/PaneScaffold.native.js.map +1 -1
- package/dist/cjs/layouts/ViewSwitcher.cjs +65 -23
- package/dist/cjs/layouts/ViewSwitcher.native.js +78 -30
- package/dist/cjs/layouts/ViewSwitcher.native.js.map +1 -1
- package/dist/cjs/layouts/attachments.cjs +350 -185
- package/dist/cjs/layouts/attachments.native.js +370 -186
- package/dist/cjs/layouts/attachments.native.js.map +1 -1
- package/dist/cjs/layouts/breadcrumbs.cjs +161 -62
- package/dist/cjs/layouts/breadcrumbs.native.js +184 -65
- package/dist/cjs/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/cjs/layouts/page.cjs +71 -111
- package/dist/cjs/layouts/page.native.js +82 -130
- package/dist/cjs/layouts/page.native.js.map +1 -1
- package/dist/cjs/layouts/pageHeadingScope.cjs +8 -2
- package/dist/cjs/layouts/pageHeadingScope.native.js +10 -2
- package/dist/cjs/layouts/pageHeadingScope.native.js.map +1 -1
- package/dist/cjs/layouts/sidebar.cjs +150 -66
- package/dist/cjs/layouts/sidebar.native.js +118 -47
- package/dist/cjs/layouts/sidebar.native.js.map +1 -1
- package/dist/cjs/layouts/tags.cjs +321 -138
- package/dist/cjs/layouts/tags.native.js +355 -158
- package/dist/cjs/layouts/tags.native.js.map +1 -1
- package/dist/cjs/layouts/timeline.cjs +129 -56
- package/dist/cjs/layouts/timeline.native.js +179 -55
- package/dist/cjs/layouts/timeline.native.js.map +1 -1
- package/dist/cjs/layouts/toolbar.cjs +56 -20
- package/dist/cjs/layouts/toolbar.native.js +62 -25
- package/dist/cjs/layouts/toolbar.native.js.map +1 -1
- package/dist/cjs/shared/i18n.cjs +46 -0
- package/dist/cjs/shared/i18n.native.js +52 -0
- package/dist/cjs/shared/i18n.native.js.map +1 -0
- package/dist/cjs/shared/textRidesText.cjs +57 -0
- package/dist/cjs/shared/textRidesText.native.js +81 -0
- package/dist/cjs/shared/textRidesText.native.js.map +1 -0
- package/dist/cjs/shared/useReturnFocusOnClose.cjs +7 -1
- package/dist/cjs/shared/useReturnFocusOnClose.native.js +7 -1
- package/dist/cjs/shared/useReturnFocusOnClose.native.js.map +1 -1
- package/dist/cjs/surfaces.cjs +93 -16
- package/dist/cjs/surfaces.native.js +95 -16
- package/dist/cjs/surfaces.native.js.map +1 -1
- package/dist/cjs/tamagui.cjs +38 -39
- package/dist/cjs/tamagui.native.js +37 -38
- package/dist/cjs/tamagui.native.js.map +1 -1
- package/dist/cjs/views/Calendar.cjs +101 -64
- package/dist/cjs/views/Calendar.native.js +105 -70
- package/dist/cjs/views/Calendar.native.js.map +1 -1
- package/dist/cjs/views/Dashboard.cjs +399 -107
- package/dist/cjs/views/Dashboard.native.js +408 -110
- package/dist/cjs/views/Dashboard.native.js.map +1 -1
- package/dist/cjs/views/Gantt.cjs +256 -59
- package/dist/cjs/views/Gantt.native.js +264 -39
- package/dist/cjs/views/Gantt.native.js.map +1 -1
- package/dist/cjs/views/ImageGrid.cjs +138 -73
- package/dist/cjs/views/ImageGrid.native.js +155 -71
- package/dist/cjs/views/ImageGrid.native.js.map +1 -1
- package/dist/cjs/views/Kanban.cjs +53 -31
- package/dist/cjs/views/Kanban.native.js +55 -41
- package/dist/cjs/views/Kanban.native.js.map +1 -1
- package/dist/cjs/views/List.cjs +280 -93
- package/dist/cjs/views/List.native.js +280 -101
- package/dist/cjs/views/List.native.js.map +1 -1
- package/dist/cjs/views/ReportBuilder.cjs +539 -172
- package/dist/cjs/views/ReportBuilder.native.js +592 -169
- package/dist/cjs/views/ReportBuilder.native.js.map +1 -1
- package/dist/cjs/views/TreeView.cjs +142 -52
- package/dist/cjs/views/TreeView.native.js +170 -55
- package/dist/cjs/views/TreeView.native.js.map +1 -1
- package/dist/esm/Accordion/index.mjs +216 -73
- package/dist/esm/Accordion/index.mjs.map +1 -1
- package/dist/esm/Accordion/index.native.js +257 -78
- package/dist/esm/Accordion/index.native.js.map +1 -1
- package/dist/esm/Alert/index.mjs +206 -58
- package/dist/esm/Alert/index.mjs.map +1 -1
- package/dist/esm/Alert/index.native.js +213 -62
- package/dist/esm/Alert/index.native.js.map +1 -1
- package/dist/esm/AnimateHeight/index.mjs +140 -0
- package/dist/esm/AnimateHeight/index.mjs.map +1 -0
- package/dist/esm/AnimateHeight/index.native.js +147 -0
- package/dist/esm/AnimateHeight/index.native.js.map +1 -0
- package/dist/esm/Avatar/getInitials.mjs +32 -1
- package/dist/esm/Avatar/getInitials.mjs.map +1 -1
- package/dist/esm/Avatar/getInitials.native.js +32 -1
- package/dist/esm/Avatar/getInitials.native.js.map +1 -1
- package/dist/esm/Avatar/index.mjs +249 -68
- package/dist/esm/Avatar/index.mjs.map +1 -1
- package/dist/esm/Avatar/index.native.js +255 -74
- package/dist/esm/Avatar/index.native.js.map +1 -1
- package/dist/esm/Badge/index.mjs +110 -76
- package/dist/esm/Badge/index.mjs.map +1 -1
- package/dist/esm/Badge/index.native.js +111 -77
- package/dist/esm/Badge/index.native.js.map +1 -1
- package/dist/esm/Button.mjs +16 -0
- package/dist/esm/Button.mjs.map +1 -0
- package/dist/esm/Button.native.js +17 -0
- package/dist/esm/Button.native.js.map +1 -0
- package/dist/esm/Carousel/index.mjs +185 -106
- package/dist/esm/Carousel/index.mjs.map +1 -1
- package/dist/esm/Carousel/index.native.js +213 -108
- package/dist/esm/Carousel/index.native.js.map +1 -1
- package/dist/esm/Chip/index.mjs +356 -2
- package/dist/esm/Chip/index.mjs.map +1 -1
- package/dist/esm/Chip/index.native.js +370 -2
- package/dist/esm/Chip/index.native.js.map +1 -1
- package/dist/esm/DotIndicator/index.mjs +130 -14
- package/dist/esm/DotIndicator/index.mjs.map +1 -1
- package/dist/esm/DotIndicator/index.native.js +134 -14
- package/dist/esm/DotIndicator/index.native.js.map +1 -1
- package/dist/esm/DropdownMenu/index.mjs +112 -46
- package/dist/esm/DropdownMenu/index.mjs.map +1 -1
- package/dist/esm/DropdownMenu/index.native.js +115 -48
- package/dist/esm/DropdownMenu/index.native.js.map +1 -1
- package/dist/esm/ErrorBoundary/index.mjs +1 -1
- package/dist/esm/ErrorBoundary/index.native.js +1 -1
- package/dist/esm/Pagination.mjs +41 -12
- package/dist/esm/Pagination.mjs.map +1 -1
- package/dist/esm/Pagination.native.js +45 -12
- package/dist/esm/Pagination.native.js.map +1 -1
- package/dist/esm/ProgressSteps/index.mjs +165 -109
- package/dist/esm/ProgressSteps/index.mjs.map +1 -1
- package/dist/esm/ProgressSteps/index.native.js +173 -117
- package/dist/esm/ProgressSteps/index.native.js.map +1 -1
- package/dist/esm/Quote/index.mjs +59 -40
- package/dist/esm/Quote/index.mjs.map +1 -1
- package/dist/esm/Quote/index.native.js +70 -46
- package/dist/esm/Quote/index.native.js.map +1 -1
- package/dist/esm/SheetModal/index.mjs +144 -7
- package/dist/esm/SheetModal/index.mjs.map +1 -1
- package/dist/esm/SheetModal/index.native.js +41 -28
- package/dist/esm/SheetModal/index.native.js.map +1 -1
- package/dist/esm/Skeleton/index.mjs +213 -2
- package/dist/esm/Skeleton/index.mjs.map +1 -1
- package/dist/esm/Skeleton/index.native.js +220 -2
- package/dist/esm/Skeleton/index.native.js.map +1 -1
- package/dist/esm/SkipLink/index.mjs +93 -59
- package/dist/esm/SkipLink/index.mjs.map +1 -1
- package/dist/esm/SkipLink/index.native.js +94 -68
- package/dist/esm/SkipLink/index.native.js.map +1 -1
- package/dist/esm/Tabs/index.mjs +137 -96
- package/dist/esm/Tabs/index.mjs.map +1 -1
- package/dist/esm/Tabs/index.native.js +162 -109
- package/dist/esm/Tabs/index.native.js.map +1 -1
- package/dist/esm/Toast/index.mjs +227 -68
- package/dist/esm/Toast/index.mjs.map +1 -1
- package/dist/esm/Toast/index.native.js +230 -68
- package/dist/esm/Toast/index.native.js.map +1 -1
- package/dist/esm/Toast/store.mjs +75 -11
- package/dist/esm/Toast/store.mjs.map +1 -1
- package/dist/esm/Toast/store.native.js +100 -11
- package/dist/esm/Toast/store.native.js.map +1 -1
- package/dist/esm/Tooltip/index.mjs +147 -42
- package/dist/esm/Tooltip/index.mjs.map +1 -1
- package/dist/esm/Tooltip/index.native.js +184 -44
- package/dist/esm/Tooltip/index.native.js.map +1 -1
- package/dist/esm/Video/PlayerChrome.mjs +377 -0
- package/dist/esm/Video/PlayerChrome.mjs.map +1 -0
- package/dist/esm/Video/PlayerChrome.native.js +407 -0
- package/dist/esm/Video/PlayerChrome.native.js.map +1 -0
- package/dist/esm/Video/VideoFrame.mjs +14 -5
- package/dist/esm/Video/VideoFrame.mjs.map +1 -1
- package/dist/esm/Video/VideoFrame.native.js +16 -5
- package/dist/esm/Video/VideoFrame.native.js.map +1 -1
- package/dist/esm/Video/index.mjs +227 -11
- package/dist/esm/Video/index.mjs.map +1 -1
- package/dist/esm/Video/index.native.js +28 -13
- package/dist/esm/Video/index.native.js.map +1 -1
- package/dist/esm/Wheel/index.mjs +143 -92
- package/dist/esm/Wheel/index.mjs.map +1 -1
- package/dist/esm/Wheel/index.native.js +148 -95
- package/dist/esm/Wheel/index.native.js.map +1 -1
- package/dist/esm/actions/DestructiveAction.mjs +1 -1
- package/dist/esm/actions/DestructiveAction.native.js +1 -1
- package/dist/esm/actions/DestructiveAction.native.js.map +1 -1
- package/dist/esm/charts/BarChart.mjs +8 -4
- package/dist/esm/charts/BarChart.mjs.map +1 -1
- package/dist/esm/charts/BarChart.native.js +8 -4
- package/dist/esm/charts/BarChart.native.js.map +1 -1
- package/dist/esm/charts/LineChart.mjs +1 -1
- package/dist/esm/charts/LineChart.native.js +1 -1
- package/dist/esm/charts/PieChart.mjs +1 -1
- package/dist/esm/charts/PieChart.native.js +1 -1
- package/dist/esm/charts/PieChart.native.js.map +1 -1
- package/dist/esm/charts/Sparkline.mjs +1 -1
- package/dist/esm/charts/Sparkline.native.js +1 -1
- package/dist/esm/charts/index.mjs +2 -1
- package/dist/esm/charts/index.mjs.map +1 -1
- package/dist/esm/charts/index.native.js +2 -1
- package/dist/esm/charts/index.native.js.map +1 -1
- package/dist/esm/code/CodeBlock/index.mjs +34 -7
- package/dist/esm/code/CodeBlock/index.mjs.map +1 -1
- package/dist/esm/code/CodeBlock/index.native.js +36 -9
- package/dist/esm/code/CodeBlock/index.native.js.map +1 -1
- package/dist/esm/feedback/ConfirmDialog.mjs +93 -6
- package/dist/esm/feedback/ConfirmDialog.mjs.map +1 -1
- package/dist/esm/feedback/ConfirmDialog.native.js +124 -6
- package/dist/esm/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/esm/feedback/NotifyHost.mjs +1 -1
- package/dist/esm/feedback/NotifyHost.native.js +1 -1
- package/dist/esm/icons/themed.mjs +5 -2
- package/dist/esm/icons/themed.mjs.map +1 -1
- package/dist/esm/icons/themed.native.js +5 -2
- package/dist/esm/icons/themed.native.js.map +1 -1
- package/dist/esm/images/Image/ImageFrame.mjs +216 -0
- package/dist/esm/images/Image/ImageFrame.mjs.map +1 -0
- package/dist/esm/images/Image/ImageFrame.native.js +219 -0
- package/dist/esm/images/Image/ImageFrame.native.js.map +1 -0
- package/dist/esm/images/Image/index.mjs +94 -41
- package/dist/esm/images/Image/index.mjs.map +1 -1
- package/dist/esm/images/Image/index.native.js +148 -110
- package/dist/esm/images/Image/index.native.js.map +1 -1
- package/dist/esm/images/Image/shared.mjs +76 -0
- package/dist/esm/images/Image/shared.mjs.map +1 -0
- package/dist/esm/images/Image/shared.native.js +76 -0
- package/dist/esm/images/Image/shared.native.js.map +1 -0
- package/dist/esm/index.mjs +4 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +4 -1
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/knobImmuneExports.mjs +70 -0
- package/dist/esm/knobImmuneExports.mjs.map +1 -0
- package/dist/esm/knobImmuneExports.native.js +70 -0
- package/dist/esm/knobImmuneExports.native.js.map +1 -0
- package/dist/esm/layouts/AsyncBoundary.mjs +165 -38
- package/dist/esm/layouts/AsyncBoundary.mjs.map +1 -1
- package/dist/esm/layouts/AsyncBoundary.native.js +168 -39
- package/dist/esm/layouts/AsyncBoundary.native.js.map +1 -1
- package/dist/esm/layouts/EmptyState.mjs +132 -0
- package/dist/esm/layouts/EmptyState.mjs.map +1 -0
- package/dist/esm/layouts/EmptyState.native.js +137 -0
- package/dist/esm/layouts/EmptyState.native.js.map +1 -0
- package/dist/esm/layouts/PageTemplates.mjs +13 -5
- package/dist/esm/layouts/PageTemplates.mjs.map +1 -1
- package/dist/esm/layouts/PageTemplates.native.js +13 -5
- package/dist/esm/layouts/PageTemplates.native.js.map +1 -1
- package/dist/esm/layouts/PaneScaffold.mjs +277 -17
- package/dist/esm/layouts/PaneScaffold.mjs.map +1 -1
- package/dist/esm/layouts/PaneScaffold.native.js +298 -17
- package/dist/esm/layouts/PaneScaffold.native.js.map +1 -1
- package/dist/esm/layouts/ViewSwitcher.mjs +66 -24
- package/dist/esm/layouts/ViewSwitcher.mjs.map +1 -1
- package/dist/esm/layouts/ViewSwitcher.native.js +79 -31
- package/dist/esm/layouts/ViewSwitcher.native.js.map +1 -1
- package/dist/esm/layouts/attachments.mjs +351 -175
- package/dist/esm/layouts/attachments.mjs.map +1 -1
- package/dist/esm/layouts/attachments.native.js +371 -187
- package/dist/esm/layouts/attachments.native.js.map +1 -1
- package/dist/esm/layouts/breadcrumbs.mjs +163 -53
- package/dist/esm/layouts/breadcrumbs.mjs.map +1 -1
- package/dist/esm/layouts/breadcrumbs.native.js +187 -68
- package/dist/esm/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/esm/layouts/page.mjs +72 -112
- package/dist/esm/layouts/page.mjs.map +1 -1
- package/dist/esm/layouts/page.native.js +83 -131
- package/dist/esm/layouts/page.native.js.map +1 -1
- package/dist/esm/layouts/pageHeadingScope.mjs +8 -3
- package/dist/esm/layouts/pageHeadingScope.mjs.map +1 -1
- package/dist/esm/layouts/pageHeadingScope.native.js +10 -3
- package/dist/esm/layouts/pageHeadingScope.native.js.map +1 -1
- package/dist/esm/layouts/sidebar.mjs +152 -68
- package/dist/esm/layouts/sidebar.mjs.map +1 -1
- package/dist/esm/layouts/sidebar.native.js +120 -49
- package/dist/esm/layouts/sidebar.native.js.map +1 -1
- package/dist/esm/layouts/tags.mjs +323 -140
- package/dist/esm/layouts/tags.mjs.map +1 -1
- package/dist/esm/layouts/tags.native.js +357 -160
- package/dist/esm/layouts/tags.native.js.map +1 -1
- package/dist/esm/layouts/timeline.mjs +129 -45
- package/dist/esm/layouts/timeline.mjs.map +1 -1
- package/dist/esm/layouts/timeline.native.js +179 -55
- package/dist/esm/layouts/timeline.native.js.map +1 -1
- package/dist/esm/layouts/toolbar.mjs +57 -21
- package/dist/esm/layouts/toolbar.mjs.map +1 -1
- package/dist/esm/layouts/toolbar.native.js +63 -26
- package/dist/esm/layouts/toolbar.native.js.map +1 -1
- package/dist/esm/shared/i18n.mjs +10 -0
- package/dist/esm/shared/i18n.mjs.map +1 -0
- package/dist/esm/shared/i18n.native.js +13 -0
- package/dist/esm/shared/i18n.native.js.map +1 -0
- package/dist/esm/shared/textRidesText.mjs +31 -0
- package/dist/esm/shared/textRidesText.mjs.map +1 -0
- package/dist/esm/shared/textRidesText.native.js +52 -0
- package/dist/esm/shared/textRidesText.native.js.map +1 -0
- package/dist/esm/shared/useReturnFocusOnClose.mjs +7 -1
- package/dist/esm/shared/useReturnFocusOnClose.mjs.map +1 -1
- package/dist/esm/shared/useReturnFocusOnClose.native.js +7 -1
- package/dist/esm/shared/useReturnFocusOnClose.native.js.map +1 -1
- package/dist/esm/surfaces.mjs +94 -17
- package/dist/esm/surfaces.mjs.map +1 -1
- package/dist/esm/surfaces.native.js +96 -17
- package/dist/esm/surfaces.native.js.map +1 -1
- package/dist/esm/tamagui.mjs +2 -3
- package/dist/esm/tamagui.mjs.map +1 -1
- package/dist/esm/tamagui.native.js +2 -3
- package/dist/esm/tamagui.native.js.map +1 -1
- package/dist/esm/views/Calendar.mjs +101 -64
- package/dist/esm/views/Calendar.mjs.map +1 -1
- package/dist/esm/views/Calendar.native.js +105 -70
- package/dist/esm/views/Calendar.native.js.map +1 -1
- package/dist/esm/views/Dashboard.mjs +396 -107
- package/dist/esm/views/Dashboard.mjs.map +1 -1
- package/dist/esm/views/Dashboard.native.js +405 -110
- package/dist/esm/views/Dashboard.native.js.map +1 -1
- package/dist/esm/views/Gantt.mjs +256 -59
- package/dist/esm/views/Gantt.mjs.map +1 -1
- package/dist/esm/views/Gantt.native.js +264 -39
- package/dist/esm/views/Gantt.native.js.map +1 -1
- package/dist/esm/views/ImageGrid.mjs +138 -73
- package/dist/esm/views/ImageGrid.mjs.map +1 -1
- package/dist/esm/views/ImageGrid.native.js +155 -71
- package/dist/esm/views/ImageGrid.native.js.map +1 -1
- package/dist/esm/views/Kanban.mjs +52 -30
- package/dist/esm/views/Kanban.mjs.map +1 -1
- package/dist/esm/views/Kanban.native.js +54 -40
- package/dist/esm/views/Kanban.native.js.map +1 -1
- package/dist/esm/views/List.mjs +268 -95
- package/dist/esm/views/List.mjs.map +1 -1
- package/dist/esm/views/List.native.js +280 -104
- package/dist/esm/views/List.native.js.map +1 -1
- package/dist/esm/views/ReportBuilder.mjs +533 -166
- package/dist/esm/views/ReportBuilder.mjs.map +1 -1
- package/dist/esm/views/ReportBuilder.native.js +585 -162
- package/dist/esm/views/ReportBuilder.native.js.map +1 -1
- package/dist/esm/views/TreeView.mjs +142 -52
- package/dist/esm/views/TreeView.mjs.map +1 -1
- package/dist/esm/views/TreeView.native.js +170 -55
- package/dist/esm/views/TreeView.native.js.map +1 -1
- package/dist/jsx/Accordion/index.mjs +216 -73
- package/dist/jsx/Accordion/index.mjs.map +1 -1
- package/dist/jsx/Accordion/index.native.js +254 -75
- package/dist/jsx/Accordion/index.native.js.map +1 -1
- package/dist/jsx/Alert/index.mjs +206 -58
- package/dist/jsx/Alert/index.mjs.map +1 -1
- package/dist/jsx/Alert/index.native.js +211 -60
- package/dist/jsx/Alert/index.native.js.map +1 -1
- package/dist/jsx/AnimateHeight/index.mjs +140 -0
- package/dist/jsx/AnimateHeight/index.mjs.map +1 -0
- package/dist/jsx/AnimateHeight/index.native.js +176 -0
- package/dist/jsx/AnimateHeight/index.native.js.map +1 -0
- package/dist/jsx/Avatar/getInitials.mjs +32 -1
- package/dist/jsx/Avatar/getInitials.mjs.map +1 -1
- package/dist/jsx/Avatar/getInitials.native.js +34 -0
- package/dist/jsx/Avatar/getInitials.native.js.map +1 -1
- package/dist/jsx/Avatar/index.mjs +249 -68
- package/dist/jsx/Avatar/index.mjs.map +1 -1
- package/dist/jsx/Avatar/index.native.js +252 -68
- package/dist/jsx/Avatar/index.native.js.map +1 -1
- package/dist/jsx/Badge/index.mjs +110 -76
- package/dist/jsx/Badge/index.mjs.map +1 -1
- package/dist/jsx/Badge/index.native.js +110 -76
- package/dist/jsx/Badge/index.native.js.map +1 -1
- package/dist/jsx/Button.mjs +16 -0
- package/dist/jsx/Button.mjs.map +1 -0
- package/dist/jsx/Button.native.js +45 -0
- package/dist/jsx/Button.native.js.map +1 -0
- package/dist/jsx/Carousel/index.mjs +185 -106
- package/dist/jsx/Carousel/index.mjs.map +1 -1
- package/dist/jsx/Carousel/index.native.js +212 -107
- package/dist/jsx/Carousel/index.native.js.map +1 -1
- package/dist/jsx/Chip/index.mjs +356 -2
- package/dist/jsx/Chip/index.mjs.map +1 -1
- package/dist/jsx/Chip/index.native.js +374 -5
- package/dist/jsx/Chip/index.native.js.map +1 -1
- package/dist/jsx/DotIndicator/index.mjs +130 -14
- package/dist/jsx/DotIndicator/index.mjs.map +1 -1
- package/dist/jsx/DotIndicator/index.native.js +133 -13
- package/dist/jsx/DotIndicator/index.native.js.map +1 -1
- package/dist/jsx/DropdownMenu/index.mjs +112 -46
- package/dist/jsx/DropdownMenu/index.mjs.map +1 -1
- package/dist/jsx/DropdownMenu/index.native.js +113 -46
- package/dist/jsx/DropdownMenu/index.native.js.map +1 -1
- package/dist/jsx/ErrorBoundary/index.mjs +1 -1
- package/dist/jsx/ErrorBoundary/index.native.js +2 -2
- package/dist/jsx/ErrorBoundary/index.native.js.map +1 -1
- package/dist/jsx/Pagination.mjs +41 -12
- package/dist/jsx/Pagination.mjs.map +1 -1
- package/dist/jsx/Pagination.native.js +44 -11
- package/dist/jsx/Pagination.native.js.map +1 -1
- package/dist/jsx/ProgressSteps/index.mjs +165 -109
- package/dist/jsx/ProgressSteps/index.mjs.map +1 -1
- package/dist/jsx/ProgressSteps/index.native.js +171 -115
- package/dist/jsx/ProgressSteps/index.native.js.map +1 -1
- package/dist/jsx/Quote/index.mjs +59 -40
- package/dist/jsx/Quote/index.mjs.map +1 -1
- package/dist/jsx/Quote/index.native.js +69 -45
- package/dist/jsx/Quote/index.native.js.map +1 -1
- package/dist/jsx/SheetModal/index.mjs +144 -7
- package/dist/jsx/SheetModal/index.mjs.map +1 -1
- package/dist/jsx/SheetModal/index.native.js +42 -29
- package/dist/jsx/SheetModal/index.native.js.map +1 -1
- package/dist/jsx/Skeleton/index.mjs +213 -2
- package/dist/jsx/Skeleton/index.mjs.map +1 -1
- package/dist/jsx/Skeleton/index.native.js +223 -4
- package/dist/jsx/Skeleton/index.native.js.map +1 -1
- package/dist/jsx/SkipLink/index.mjs +93 -59
- package/dist/jsx/SkipLink/index.mjs.map +1 -1
- package/dist/jsx/SkipLink/index.native.js +92 -66
- package/dist/jsx/SkipLink/index.native.js.map +1 -1
- package/dist/jsx/Tabs/index.mjs +137 -96
- package/dist/jsx/Tabs/index.mjs.map +1 -1
- package/dist/jsx/Tabs/index.native.js +161 -108
- package/dist/jsx/Tabs/index.native.js.map +1 -1
- package/dist/jsx/Toast/index.mjs +227 -68
- package/dist/jsx/Toast/index.mjs.map +1 -1
- package/dist/jsx/Toast/index.native.js +232 -67
- package/dist/jsx/Toast/index.native.js.map +1 -1
- package/dist/jsx/Toast/store.mjs +75 -11
- package/dist/jsx/Toast/store.mjs.map +1 -1
- package/dist/jsx/Toast/store.native.js +108 -10
- package/dist/jsx/Toast/store.native.js.map +1 -1
- package/dist/jsx/Tooltip/index.mjs +147 -42
- package/dist/jsx/Tooltip/index.mjs.map +1 -1
- package/dist/jsx/Tooltip/index.native.js +195 -43
- package/dist/jsx/Tooltip/index.native.js.map +1 -1
- package/dist/jsx/Video/PlayerChrome.mjs +377 -0
- package/dist/jsx/Video/PlayerChrome.mjs.map +1 -0
- package/dist/jsx/Video/PlayerChrome.native.js +436 -0
- package/dist/jsx/Video/PlayerChrome.native.js.map +1 -0
- package/dist/jsx/Video/VideoFrame.mjs +14 -5
- package/dist/jsx/Video/VideoFrame.mjs.map +1 -1
- package/dist/jsx/Video/VideoFrame.native.js +16 -5
- package/dist/jsx/Video/VideoFrame.native.js.map +1 -1
- package/dist/jsx/Video/index.mjs +227 -11
- package/dist/jsx/Video/index.mjs.map +1 -1
- package/dist/jsx/Video/index.native.js +28 -13
- package/dist/jsx/Video/index.native.js.map +1 -1
- package/dist/jsx/Wheel/index.mjs +143 -92
- package/dist/jsx/Wheel/index.mjs.map +1 -1
- package/dist/jsx/Wheel/index.native.js +149 -96
- package/dist/jsx/Wheel/index.native.js.map +1 -1
- package/dist/jsx/actions/DestructiveAction.mjs +1 -1
- package/dist/jsx/actions/DestructiveAction.native.js +2 -2
- package/dist/jsx/actions/DestructiveAction.native.js.map +1 -1
- package/dist/jsx/charts/BarChart.mjs +8 -4
- package/dist/jsx/charts/BarChart.mjs.map +1 -1
- package/dist/jsx/charts/BarChart.native.js +9 -5
- package/dist/jsx/charts/BarChart.native.js.map +1 -1
- package/dist/jsx/charts/LineChart.mjs +1 -1
- package/dist/jsx/charts/LineChart.native.js +2 -2
- package/dist/jsx/charts/LineChart.native.js.map +1 -1
- package/dist/jsx/charts/PieChart.mjs +1 -1
- package/dist/jsx/charts/PieChart.native.js +2 -2
- package/dist/jsx/charts/PieChart.native.js.map +1 -1
- package/dist/jsx/charts/Sparkline.mjs +1 -1
- package/dist/jsx/charts/Sparkline.native.js +2 -2
- package/dist/jsx/charts/Sparkline.native.js.map +1 -1
- package/dist/jsx/charts/index.mjs +2 -1
- package/dist/jsx/charts/index.mjs.map +1 -1
- package/dist/jsx/charts/index.native.js +4 -0
- package/dist/jsx/charts/index.native.js.map +1 -1
- package/dist/jsx/code/CodeBlock/index.mjs +34 -7
- package/dist/jsx/code/CodeBlock/index.mjs.map +1 -1
- package/dist/jsx/code/CodeBlock/index.native.js +36 -9
- package/dist/jsx/code/CodeBlock/index.native.js.map +1 -1
- package/dist/jsx/feedback/ConfirmDialog.mjs +93 -6
- package/dist/jsx/feedback/ConfirmDialog.mjs.map +1 -1
- package/dist/jsx/feedback/ConfirmDialog.native.js +123 -5
- package/dist/jsx/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/jsx/feedback/NotifyHost.mjs +1 -1
- package/dist/jsx/feedback/NotifyHost.native.js +2 -2
- package/dist/jsx/feedback/NotifyHost.native.js.map +1 -1
- package/dist/jsx/icons/themed.mjs +5 -2
- package/dist/jsx/icons/themed.mjs.map +1 -1
- package/dist/jsx/icons/themed.native.js +4 -1
- package/dist/jsx/icons/themed.native.js.map +1 -1
- package/dist/jsx/images/Image/ImageFrame.mjs +216 -0
- package/dist/jsx/images/Image/ImageFrame.mjs.map +1 -0
- package/dist/jsx/images/Image/ImageFrame.native.js +248 -0
- package/dist/jsx/images/Image/ImageFrame.native.js.map +1 -0
- package/dist/jsx/images/Image/index.mjs +94 -41
- package/dist/jsx/images/Image/index.mjs.map +1 -1
- package/dist/jsx/images/Image/index.native.js +146 -108
- package/dist/jsx/images/Image/index.native.js.map +1 -1
- package/dist/jsx/images/Image/shared.mjs +76 -0
- package/dist/jsx/images/Image/shared.mjs.map +1 -0
- package/dist/jsx/images/Image/shared.native.js +109 -0
- package/dist/jsx/images/Image/shared.native.js.map +1 -0
- package/dist/jsx/index.js +4 -1
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +4 -1
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/index.native.js +7 -0
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/knobImmuneExports.mjs +70 -0
- package/dist/jsx/knobImmuneExports.mjs.map +1 -0
- package/dist/jsx/knobImmuneExports.native.js +98 -0
- package/dist/jsx/knobImmuneExports.native.js.map +1 -0
- package/dist/jsx/layouts/AsyncBoundary.mjs +165 -38
- package/dist/jsx/layouts/AsyncBoundary.mjs.map +1 -1
- package/dist/jsx/layouts/AsyncBoundary.native.js +166 -37
- package/dist/jsx/layouts/AsyncBoundary.native.js.map +1 -1
- package/dist/jsx/layouts/EmptyState.mjs +132 -0
- package/dist/jsx/layouts/EmptyState.mjs.map +1 -0
- package/dist/jsx/layouts/EmptyState.native.js +165 -0
- package/dist/jsx/layouts/EmptyState.native.js.map +1 -0
- package/dist/jsx/layouts/PageTemplates.mjs +13 -5
- package/dist/jsx/layouts/PageTemplates.mjs.map +1 -1
- package/dist/jsx/layouts/PageTemplates.native.js +13 -5
- package/dist/jsx/layouts/PageTemplates.native.js.map +1 -1
- package/dist/jsx/layouts/PaneScaffold.mjs +277 -17
- package/dist/jsx/layouts/PaneScaffold.mjs.map +1 -1
- package/dist/jsx/layouts/PaneScaffold.native.js +294 -13
- package/dist/jsx/layouts/PaneScaffold.native.js.map +1 -1
- package/dist/jsx/layouts/ViewSwitcher.mjs +66 -24
- package/dist/jsx/layouts/ViewSwitcher.mjs.map +1 -1
- package/dist/jsx/layouts/ViewSwitcher.native.js +78 -30
- package/dist/jsx/layouts/ViewSwitcher.native.js.map +1 -1
- package/dist/jsx/layouts/attachments.mjs +351 -175
- package/dist/jsx/layouts/attachments.mjs.map +1 -1
- package/dist/jsx/layouts/attachments.native.js +370 -186
- package/dist/jsx/layouts/attachments.native.js.map +1 -1
- package/dist/jsx/layouts/breadcrumbs.mjs +163 -53
- package/dist/jsx/layouts/breadcrumbs.mjs.map +1 -1
- package/dist/jsx/layouts/breadcrumbs.native.js +184 -65
- package/dist/jsx/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/jsx/layouts/page.mjs +72 -112
- package/dist/jsx/layouts/page.mjs.map +1 -1
- package/dist/jsx/layouts/page.native.js +82 -130
- package/dist/jsx/layouts/page.native.js.map +1 -1
- package/dist/jsx/layouts/pageHeadingScope.mjs +8 -3
- package/dist/jsx/layouts/pageHeadingScope.mjs.map +1 -1
- package/dist/jsx/layouts/pageHeadingScope.native.js +10 -2
- package/dist/jsx/layouts/pageHeadingScope.native.js.map +1 -1
- package/dist/jsx/layouts/sidebar.mjs +152 -68
- package/dist/jsx/layouts/sidebar.mjs.map +1 -1
- package/dist/jsx/layouts/sidebar.native.js +118 -47
- package/dist/jsx/layouts/sidebar.native.js.map +1 -1
- package/dist/jsx/layouts/tags.mjs +323 -140
- package/dist/jsx/layouts/tags.mjs.map +1 -1
- package/dist/jsx/layouts/tags.native.js +355 -158
- package/dist/jsx/layouts/tags.native.js.map +1 -1
- package/dist/jsx/layouts/timeline.mjs +129 -45
- package/dist/jsx/layouts/timeline.mjs.map +1 -1
- package/dist/jsx/layouts/timeline.native.js +179 -55
- package/dist/jsx/layouts/timeline.native.js.map +1 -1
- package/dist/jsx/layouts/toolbar.mjs +57 -21
- package/dist/jsx/layouts/toolbar.mjs.map +1 -1
- package/dist/jsx/layouts/toolbar.native.js +62 -25
- package/dist/jsx/layouts/toolbar.native.js.map +1 -1
- package/dist/jsx/shared/i18n.mjs +10 -0
- package/dist/jsx/shared/i18n.mjs.map +1 -0
- package/dist/jsx/shared/i18n.native.js +52 -0
- package/dist/jsx/shared/i18n.native.js.map +1 -0
- package/dist/jsx/shared/textRidesText.mjs +31 -0
- package/dist/jsx/shared/textRidesText.mjs.map +1 -0
- package/dist/jsx/shared/textRidesText.native.js +81 -0
- package/dist/jsx/shared/textRidesText.native.js.map +1 -0
- package/dist/jsx/shared/useReturnFocusOnClose.mjs +7 -1
- package/dist/jsx/shared/useReturnFocusOnClose.mjs.map +1 -1
- package/dist/jsx/shared/useReturnFocusOnClose.native.js +7 -1
- package/dist/jsx/shared/useReturnFocusOnClose.native.js.map +1 -1
- package/dist/jsx/surfaces.mjs +94 -17
- package/dist/jsx/surfaces.mjs.map +1 -1
- package/dist/jsx/surfaces.native.js +95 -16
- package/dist/jsx/surfaces.native.js.map +1 -1
- package/dist/jsx/tamagui.mjs +2 -3
- package/dist/jsx/tamagui.mjs.map +1 -1
- package/dist/jsx/tamagui.native.js +37 -38
- package/dist/jsx/tamagui.native.js.map +1 -1
- package/dist/jsx/views/Calendar.mjs +101 -64
- package/dist/jsx/views/Calendar.mjs.map +1 -1
- package/dist/jsx/views/Calendar.native.js +105 -70
- package/dist/jsx/views/Calendar.native.js.map +1 -1
- package/dist/jsx/views/Dashboard.mjs +396 -107
- package/dist/jsx/views/Dashboard.mjs.map +1 -1
- package/dist/jsx/views/Dashboard.native.js +408 -110
- package/dist/jsx/views/Dashboard.native.js.map +1 -1
- package/dist/jsx/views/Gantt.mjs +256 -59
- package/dist/jsx/views/Gantt.mjs.map +1 -1
- package/dist/jsx/views/Gantt.native.js +264 -39
- package/dist/jsx/views/Gantt.native.js.map +1 -1
- package/dist/jsx/views/ImageGrid.mjs +138 -73
- package/dist/jsx/views/ImageGrid.mjs.map +1 -1
- package/dist/jsx/views/ImageGrid.native.js +155 -71
- package/dist/jsx/views/ImageGrid.native.js.map +1 -1
- package/dist/jsx/views/Kanban.mjs +52 -30
- package/dist/jsx/views/Kanban.mjs.map +1 -1
- package/dist/jsx/views/Kanban.native.js +55 -41
- package/dist/jsx/views/Kanban.native.js.map +1 -1
- package/dist/jsx/views/List.mjs +268 -95
- package/dist/jsx/views/List.mjs.map +1 -1
- package/dist/jsx/views/List.native.js +280 -101
- package/dist/jsx/views/List.native.js.map +1 -1
- package/dist/jsx/views/ReportBuilder.mjs +533 -166
- package/dist/jsx/views/ReportBuilder.mjs.map +1 -1
- package/dist/jsx/views/ReportBuilder.native.js +592 -169
- package/dist/jsx/views/ReportBuilder.native.js.map +1 -1
- package/dist/jsx/views/TreeView.mjs +142 -52
- package/dist/jsx/views/TreeView.mjs.map +1 -1
- package/dist/jsx/views/TreeView.native.js +170 -55
- package/dist/jsx/views/TreeView.native.js.map +1 -1
- package/package.json +18 -18
- package/src/Accordion/Accordion.lc50.spec.tsx +69 -0
- package/src/Accordion/Accordion.spec.tsx +36 -0
- package/src/Accordion/Accordion.stories.tsx +82 -36
- package/src/Accordion/index.tsx +296 -75
- package/src/Alert/Alert.spec.tsx +137 -1
- package/src/Alert/Alert.stories.tsx +10 -11
- package/src/Alert/index.tsx +244 -62
- package/src/AnimateHeight/AnimateHeight.spec.tsx +152 -0
- package/src/AnimateHeight/index.tsx +237 -0
- package/src/Avatar/Avatar.spec.tsx +73 -2
- package/src/Avatar/Avatar.stories.tsx +106 -4
- package/src/Avatar/getInitials.ts +29 -0
- package/src/Avatar/index.tsx +323 -105
- package/src/Badge/Badge.spec.tsx +83 -0
- package/src/Badge/Badge.stories.tsx +15 -1
- package/src/Badge/index.tsx +138 -84
- package/src/Button.spec.tsx +181 -0
- package/src/Button.stories.tsx +92 -0
- package/src/Button.tsx +43 -0
- package/src/Carousel/Carousel.spec.tsx +152 -0
- package/src/Carousel/index.tsx +239 -102
- package/src/Chip/Chip.spec.tsx +141 -0
- package/src/Chip/Chip.stories.tsx +163 -10
- package/src/Chip/index.tsx +452 -11
- package/src/DialogContent.stories.tsx +8 -6
- package/src/DotIndicator/DotIndicator.stories.tsx +18 -0
- package/src/DotIndicator/dotIndicator.spec.tsx +57 -2
- package/src/DotIndicator/index.tsx +159 -24
- package/src/DropdownMenu/DropdownMenu.spec.tsx +172 -0
- package/src/DropdownMenu/DropdownMenu.stories.tsx +35 -0
- package/src/DropdownMenu/index.tsx +172 -46
- package/src/ErrorBoundary/index.tsx +1 -1
- package/src/Pagination.api.spec.tsx +41 -0
- package/src/Pagination.tsx +49 -8
- package/src/PopoverContent.stories.tsx +4 -2
- package/src/ProgressSteps/ProgressSteps.spec.tsx +48 -1
- package/src/ProgressSteps/ProgressSteps.stories.tsx +48 -0
- package/src/ProgressSteps/index.tsx +224 -133
- package/src/Quote/Quote.lc50.spec.tsx +53 -0
- package/src/Quote/Quote.spec.tsx +9 -2
- package/src/Quote/Quote.stories.tsx +1 -1
- package/src/Quote/index.tsx +77 -60
- package/src/SheetModal/index.native.tsx +41 -39
- package/src/SheetModal/index.tsx +149 -18
- package/src/Skeleton/Skeleton.stories.tsx +109 -93
- package/src/Skeleton/SkeletonText.stories.tsx +11 -0
- package/src/Skeleton/index.tsx +257 -8
- package/src/SkipLink/SkipLink.spec.tsx +35 -0
- package/src/SkipLink/SkipLink.stories.tsx +1 -1
- package/src/SkipLink/index.tsx +120 -71
- package/src/Tabs/Tabs.spec.tsx +65 -0
- package/src/Tabs/Tabs.stories.tsx +32 -0
- package/src/Tabs/index.tsx +188 -133
- package/src/Toast/Toast.spec.tsx +208 -8
- package/src/Toast/Toast.stories.tsx +97 -16
- package/src/Toast/index.tsx +322 -78
- package/src/Toast/store.ts +150 -16
- package/src/Tooltip/Tooltip.lc50.spec.tsx +52 -0
- package/src/Tooltip/Tooltip.spec.tsx +99 -0
- package/src/Tooltip/Tooltip.stories.tsx +23 -0
- package/src/Tooltip/index.tsx +200 -44
- package/src/Video/PlayerChrome.tsx +412 -0
- package/src/Video/Video.spec.tsx +47 -4
- package/src/Video/Video.stories.tsx +2 -1
- package/src/Video/VideoFrame.tsx +15 -3
- package/src/Video/index.native.tsx +20 -12
- package/src/Video/index.tsx +285 -21
- package/src/Video/types.ts +7 -1
- package/src/Wheel/Wheel.spec.tsx +217 -2
- package/src/Wheel/Wheel.stories.tsx +39 -13
- package/src/Wheel/index.tsx +205 -134
- package/src/actions/DestructiveAction.tsx +1 -1
- package/src/charts/BarChart.tsx +14 -3
- package/src/charts/LineChart.tsx +1 -1
- package/src/charts/PieChart.tsx +1 -1
- package/src/charts/Sparkline.tsx +1 -1
- package/src/charts/charts.spec.tsx +25 -0
- package/src/charts/index.ts +9 -0
- package/src/code/CodeBlock/index.tsx +43 -7
- package/src/export-surface.spec.tsx +137 -0
- package/src/feedback/ConfirmDialog.spec.tsx +36 -0
- package/src/feedback/ConfirmDialog.stories.tsx +20 -1
- package/src/feedback/ConfirmDialog.tsx +121 -9
- package/src/feedback/NotifyHost.tsx +1 -1
- package/src/icons/themed.tsx +7 -2
- package/src/images/Image/Image.spec.tsx +136 -73
- package/src/images/Image/Image.stories.tsx +113 -9
- package/src/images/Image/ImageFrame.tsx +288 -0
- package/src/images/Image/index.native.tsx +177 -144
- package/src/images/Image/index.tsx +103 -51
- package/src/images/Image/shared.ts +88 -0
- package/src/images/Image/types.ts +32 -1
- package/src/index.ts +18 -0
- package/src/knobImmuneExports.ts +97 -0
- package/src/layouts/AsyncBoundary.spec.tsx +77 -0
- package/src/layouts/AsyncBoundary.stories.tsx +33 -1
- package/src/layouts/AsyncBoundary.tsx +183 -46
- package/src/layouts/Attachments.stories.tsx +28 -14
- package/src/layouts/Breadcrumbs.stories.tsx +22 -1
- package/src/layouts/EmptyState.stories.tsx +94 -26
- package/src/layouts/EmptyState.tsx +169 -0
- package/src/layouts/PageHeader.stories.tsx +68 -15
- package/src/layouts/PageTemplates.tsx +11 -6
- package/src/layouts/PaneScaffold.stories.tsx +132 -37
- package/src/layouts/PaneScaffold.tsx +354 -18
- package/src/layouts/ScreenToolbar.stories.tsx +36 -11
- package/src/layouts/Sidebar.stories.tsx +30 -7
- package/src/layouts/Tags.stories.tsx +31 -32
- package/src/layouts/Timeline.stories.tsx +2 -2
- package/src/layouts/Toolbar.stories.tsx +19 -0
- package/src/layouts/ViewSwitcher.stories.tsx +11 -3
- package/src/layouts/ViewSwitcher.tsx +101 -48
- package/src/layouts/attachments.tsx +394 -186
- package/src/layouts/breadcrumbs.tsx +213 -75
- package/src/layouts/layouts.spec.tsx +32 -0
- package/src/layouts/page.tsx +103 -164
- package/src/layouts/pageHeadingScope.tsx +28 -2
- package/src/layouts/sidebar.tsx +184 -91
- package/src/layouts/tags-trigger.spec.tsx +8 -8
- package/src/layouts/tags.tsx +356 -159
- package/src/layouts/timeline-comments.spec.tsx +17 -0
- package/src/layouts/timeline.tsx +179 -65
- package/src/layouts/toolbar.tsx +78 -27
- package/src/shared/i18n.ts +26 -0
- package/src/shared/textRidesText.ts +57 -0
- package/src/shared/useReturnFocusOnClose.ts +7 -1
- package/src/surfaces.tsx +83 -22
- package/src/tamagui.spec.ts +19 -4
- package/src/tamagui.ts +14 -6
- package/src/views/Calendar.stories.tsx +2 -1
- package/src/views/Calendar.tsx +129 -81
- package/src/views/Dashboard.stories.tsx +132 -1
- package/src/views/Dashboard.tsx +440 -127
- package/src/views/Gantt.stories.tsx +6 -5
- package/src/views/Gantt.tsx +330 -61
- package/src/views/ImageGrid.stories.tsx +81 -17
- package/src/views/ImageGrid.tsx +176 -96
- package/src/views/Kanban.native.tsx +73 -42
- package/src/views/Kanban.stories.tsx +42 -26
- package/src/views/Kanban.tsx +68 -40
- package/src/views/List.stories.tsx +107 -29
- package/src/views/List.tsx +335 -109
- package/src/views/ReportBuilder.stories.tsx +28 -1
- package/src/views/ReportBuilder.tsx +647 -275
- package/src/views/TreeView.stories.tsx +19 -0
- package/src/views/TreeView.tsx +194 -59
- package/types/Accordion/index.d.ts +10 -2
- package/types/Accordion/index.d.ts.map +1 -1
- package/types/Alert/index.d.ts +8 -2
- package/types/Alert/index.d.ts.map +1 -1
- package/types/AnimateHeight/index.d.ts +48 -0
- package/types/AnimateHeight/index.d.ts.map +1 -0
- package/types/Avatar/getInitials.d.ts +26 -0
- package/types/Avatar/getInitials.d.ts.map +1 -1
- package/types/Avatar/index.d.ts +34 -11
- package/types/Avatar/index.d.ts.map +1 -1
- package/types/Badge/index.d.ts +17 -12
- package/types/Badge/index.d.ts.map +1 -1
- package/types/Button.d.ts +42 -0
- package/types/Button.d.ts.map +1 -0
- package/types/Carousel/index.d.ts.map +1 -1
- package/types/Chip/index.d.ts +41 -1
- package/types/Chip/index.d.ts.map +1 -1
- package/types/DotIndicator/index.d.ts +4 -3
- package/types/DotIndicator/index.d.ts.map +1 -1
- package/types/DropdownMenu/index.d.ts +39 -5
- package/types/DropdownMenu/index.d.ts.map +1 -1
- package/types/ErrorBoundary/index.d.ts +1 -1
- package/types/Pagination.d.ts.map +1 -1
- package/types/ProgressSteps/index.d.ts +20 -5
- package/types/ProgressSteps/index.d.ts.map +1 -1
- package/types/Quote/index.d.ts +4 -3
- package/types/Quote/index.d.ts.map +1 -1
- package/types/SheetModal/index.d.ts +7 -10
- package/types/SheetModal/index.d.ts.map +1 -1
- package/types/SheetModal/index.native.d.ts +6 -13
- package/types/SheetModal/index.native.d.ts.map +1 -1
- package/types/Skeleton/index.d.ts +40 -1
- package/types/Skeleton/index.d.ts.map +1 -1
- package/types/SkipLink/index.d.ts +5 -6
- package/types/SkipLink/index.d.ts.map +1 -1
- package/types/Tabs/index.d.ts +12 -10
- package/types/Tabs/index.d.ts.map +1 -1
- package/types/Toast/index.d.ts +32 -9
- package/types/Toast/index.d.ts.map +1 -1
- package/types/Toast/store.d.ts +59 -4
- package/types/Toast/store.d.ts.map +1 -1
- package/types/Tooltip/index.d.ts +50 -5
- package/types/Tooltip/index.d.ts.map +1 -1
- package/types/Video/PlayerChrome.d.ts +24 -0
- package/types/Video/PlayerChrome.d.ts.map +1 -0
- package/types/Video/VideoFrame.d.ts.map +1 -1
- package/types/Video/index.d.ts +3 -2
- package/types/Video/index.d.ts.map +1 -1
- package/types/Video/index.native.d.ts +3 -2
- package/types/Video/index.native.d.ts.map +1 -1
- package/types/Video/types.d.ts +7 -1
- package/types/Video/types.d.ts.map +1 -1
- package/types/Wheel/index.d.ts +10 -1
- package/types/Wheel/index.d.ts.map +1 -1
- package/types/charts/BarChart.d.ts +7 -1
- package/types/charts/BarChart.d.ts.map +1 -1
- package/types/charts/index.d.ts +1 -0
- package/types/charts/index.d.ts.map +1 -1
- package/types/code/CodeBlock/index.d.ts.map +1 -1
- package/types/feedback/ConfirmDialog.d.ts +6 -0
- package/types/feedback/ConfirmDialog.d.ts.map +1 -1
- package/types/icons/themed.d.ts.map +1 -1
- package/types/images/Image/ImageFrame.d.ts +40 -0
- package/types/images/Image/ImageFrame.d.ts.map +1 -0
- package/types/images/Image/index.d.ts +1 -1
- package/types/images/Image/index.d.ts.map +1 -1
- package/types/images/Image/index.native.d.ts +1 -1
- package/types/images/Image/index.native.d.ts.map +1 -1
- package/types/images/Image/shared.d.ts +13 -0
- package/types/images/Image/shared.d.ts.map +1 -0
- package/types/images/Image/types.d.ts +27 -1
- package/types/images/Image/types.d.ts.map +1 -1
- package/types/index.d.ts +6 -0
- package/types/index.d.ts.map +1 -1
- package/types/knobImmuneExports.d.ts +21 -0
- package/types/knobImmuneExports.d.ts.map +1 -0
- package/types/layouts/AsyncBoundary.d.ts +20 -2
- package/types/layouts/AsyncBoundary.d.ts.map +1 -1
- package/types/layouts/EmptyState.d.ts +26 -0
- package/types/layouts/EmptyState.d.ts.map +1 -0
- package/types/layouts/PageTemplates.d.ts +5 -3
- package/types/layouts/PageTemplates.d.ts.map +1 -1
- package/types/layouts/PaneScaffold.d.ts +27 -5
- package/types/layouts/PaneScaffold.d.ts.map +1 -1
- package/types/layouts/ViewSwitcher.d.ts +7 -4
- package/types/layouts/ViewSwitcher.d.ts.map +1 -1
- package/types/layouts/attachments.d.ts +4 -2
- package/types/layouts/attachments.d.ts.map +1 -1
- package/types/layouts/breadcrumbs.d.ts +13 -5
- package/types/layouts/breadcrumbs.d.ts.map +1 -1
- package/types/layouts/page.d.ts +16 -27
- package/types/layouts/page.d.ts.map +1 -1
- package/types/layouts/pageHeadingScope.d.ts +14 -1
- package/types/layouts/pageHeadingScope.d.ts.map +1 -1
- package/types/layouts/sidebar.d.ts +3 -1
- package/types/layouts/sidebar.d.ts.map +1 -1
- package/types/layouts/tags.d.ts +4 -1
- package/types/layouts/tags.d.ts.map +1 -1
- package/types/layouts/timeline.d.ts +7 -5
- package/types/layouts/timeline.d.ts.map +1 -1
- package/types/layouts/toolbar.d.ts +1 -1
- package/types/layouts/toolbar.d.ts.map +1 -1
- package/types/shared/i18n.d.ts +14 -0
- package/types/shared/i18n.d.ts.map +1 -0
- package/types/shared/textRidesText.d.ts +20 -0
- package/types/shared/textRidesText.d.ts.map +1 -0
- package/types/shared/useReturnFocusOnClose.d.ts.map +1 -1
- package/types/surfaces.d.ts +0 -14
- package/types/surfaces.d.ts.map +1 -1
- package/types/tamagui.d.ts +2 -3
- package/types/tamagui.d.ts.map +1 -1
- package/types/views/Calendar.d.ts.map +1 -1
- package/types/views/Dashboard.d.ts +68 -6
- package/types/views/Dashboard.d.ts.map +1 -1
- package/types/views/Gantt.d.ts +5 -0
- package/types/views/Gantt.d.ts.map +1 -1
- package/types/views/ImageGrid.d.ts +4 -0
- package/types/views/ImageGrid.d.ts.map +1 -1
- package/types/views/Kanban.d.ts.map +1 -1
- package/types/views/Kanban.native.d.ts +12 -1
- package/types/views/Kanban.native.d.ts.map +1 -1
- package/types/views/List.d.ts +45 -6
- package/types/views/List.d.ts.map +1 -1
- package/types/views/ReportBuilder.d.ts +8 -54
- package/types/views/ReportBuilder.d.ts.map +1 -1
- package/types/views/TreeView.d.ts +13 -11
- package/types/views/TreeView.d.ts.map +1 -1
|
@@ -41,26 +41,24 @@ module.exports = __toCommonJS(ReportBuilder_exports);
|
|
|
41
41
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
42
|
var import_BarChart = require("../charts/BarChart.native.js");
|
|
43
43
|
var import_componentColors = require("../componentColors.native.js");
|
|
44
|
+
var import_DropdownMenu = require("../DropdownMenu/index.native.js");
|
|
45
|
+
var import_useDirection = require("../hooks/useDirection.native.js");
|
|
44
46
|
var import_AsyncBoundary = require("../layouts/AsyncBoundary.native.js");
|
|
45
47
|
var import_page = require("../layouts/page.native.js");
|
|
46
48
|
var import_theme = require("@multiplatform.one/theme");
|
|
47
49
|
var import_forms = require("@multiplatform.one/forms");
|
|
48
|
-
var import_react =
|
|
49
|
-
var
|
|
50
|
+
var import_react = require("@phosphor-icons/react");
|
|
51
|
+
var import_react_hotkeys = require("@tanstack/react-hotkeys");
|
|
52
|
+
var import_react2 = __toESM(require("react"));
|
|
53
|
+
var import_i18n = require("../shared/i18n.native.js");
|
|
50
54
|
var import_tamagui = require("tamagui");
|
|
55
|
+
var AGGREGATIONS = ["count", "sum", "avg", "min", "max"];
|
|
51
56
|
var numericFieldTypes = /* @__PURE__ */new Set(["Int", "Float", "Currency", "Percent", "Rating", "Duration"]);
|
|
52
57
|
var reportTextSizeMap = {
|
|
53
58
|
$3: "$1",
|
|
54
59
|
$4: "$2",
|
|
55
60
|
$5: "$3"
|
|
56
61
|
};
|
|
57
|
-
var aggregationLabels = {
|
|
58
|
-
count: "Count",
|
|
59
|
-
sum: "Sum",
|
|
60
|
-
avg: "Average",
|
|
61
|
-
min: "Min",
|
|
62
|
-
max: "Max"
|
|
63
|
-
};
|
|
64
62
|
function isNumericFieldType(fieldtype) {
|
|
65
63
|
return numericFieldTypes.has(fieldtype);
|
|
66
64
|
}
|
|
@@ -70,9 +68,6 @@ function formatCellValue(value, fieldtype) {
|
|
|
70
68
|
switch (fieldtype) {
|
|
71
69
|
case "Check":
|
|
72
70
|
return value ? "Yes" : "No";
|
|
73
|
-
// Report cells take the fixed-precision variants of the house number
|
|
74
|
-
// registers (LC-12 render channel): money keeps its two digits so a
|
|
75
|
-
// column stays aligned, floats keep report precision, ints stay whole.
|
|
76
71
|
case "Currency":
|
|
77
72
|
return (0, import_theme.formatCurrency)(value);
|
|
78
73
|
case "Float":
|
|
@@ -91,8 +86,6 @@ function formatCellValue(value, fieldtype) {
|
|
|
91
86
|
return `${(0, import_theme.formatNumber)(Number(value) * 5, {
|
|
92
87
|
precision: 1
|
|
93
88
|
})} / 5`;
|
|
94
|
-
// Date-class cells take the house absolute register instead of letting
|
|
95
|
-
// the wire string ("2026-01-15") reach the reader.
|
|
96
89
|
case "Date":
|
|
97
90
|
return (0, import_theme.formatAbsoluteDate)(value);
|
|
98
91
|
case "Datetime":
|
|
@@ -103,6 +96,21 @@ function formatCellValue(value, fieldtype) {
|
|
|
103
96
|
return String(value);
|
|
104
97
|
}
|
|
105
98
|
}
|
|
99
|
+
function compareValues(a, b, fieldtype) {
|
|
100
|
+
if (a == null && b == null) return 0;
|
|
101
|
+
if (a == null) return 1;
|
|
102
|
+
if (b == null) return -1;
|
|
103
|
+
if (isNumericFieldType(fieldtype)) {
|
|
104
|
+
return (Number(a) || 0) - (Number(b) || 0);
|
|
105
|
+
}
|
|
106
|
+
if (fieldtype === "Date" || fieldtype === "Datetime" || fieldtype === "Time") {
|
|
107
|
+
return String(a).localeCompare(String(b));
|
|
108
|
+
}
|
|
109
|
+
return String(a).localeCompare(String(b), void 0, {
|
|
110
|
+
numeric: true,
|
|
111
|
+
sensitivity: "base"
|
|
112
|
+
});
|
|
113
|
+
}
|
|
106
114
|
function SimpleBarChart(param) {
|
|
107
115
|
var {
|
|
108
116
|
data,
|
|
@@ -112,9 +120,9 @@ function SimpleBarChart(param) {
|
|
|
112
120
|
knobProps
|
|
113
121
|
} = (0, import_theme.useResolvedKnobs)();
|
|
114
122
|
if (data.length === 0) return null;
|
|
115
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.
|
|
116
|
-
|
|
117
|
-
|
|
123
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
124
|
+
...knobProps.surface,
|
|
125
|
+
...knobProps.containerRadius,
|
|
118
126
|
padding: "$2",
|
|
119
127
|
overflow: "hidden",
|
|
120
128
|
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_BarChart.BarChart, {
|
|
@@ -137,41 +145,51 @@ function ReportBuilder(param) {
|
|
|
137
145
|
error = null,
|
|
138
146
|
onRetry,
|
|
139
147
|
hasActiveFilters = false,
|
|
148
|
+
height,
|
|
149
|
+
minHeight,
|
|
140
150
|
...stackProps
|
|
141
151
|
} = param;
|
|
142
|
-
var _reportTextSizeMap_knobProps_sizeToken;
|
|
152
|
+
var _reportTextSizeMap_knobProps_sizeToken, _ref, _ref1;
|
|
143
153
|
var {
|
|
144
154
|
t
|
|
145
|
-
} = (0,
|
|
155
|
+
} = (0, import_i18n.useTranslation)();
|
|
146
156
|
var {
|
|
147
157
|
knobProps
|
|
148
158
|
} = (0, import_theme.useResolvedKnobs)();
|
|
149
159
|
var reportFontSize = (_reportTextSizeMap_knobProps_sizeToken = reportTextSizeMap[knobProps.sizeToken]) !== null && _reportTextSizeMap_knobProps_sizeToken !== void 0 ? _reportTextSizeMap_knobProps_sizeToken : "$2";
|
|
160
|
+
var nestedPx = knobProps.nestedControl.px;
|
|
161
|
+
var isRTL = (0, import_useDirection.useDirection)() === "rtl";
|
|
162
|
+
var CollapsedCaretIcon = isRTL ? import_react.CaretLeftIcon : import_react.CaretRightIcon;
|
|
150
163
|
var hasError = (0, import_AsyncBoundary.resolveAsyncStatus)({
|
|
151
164
|
error
|
|
152
165
|
}) === "error";
|
|
153
166
|
var isInitialLoading = !hasError && isLoading && data.length === 0;
|
|
154
|
-
var
|
|
167
|
+
var bounded = height != null || minHeight != null;
|
|
168
|
+
var tableId = (0, import_react2.useId)();
|
|
169
|
+
var gridRef = (0, import_react2.useRef)(null);
|
|
170
|
+
if (typeof document !== "undefined") (0, import_theme.ensureKeyboardModalityTracking)();
|
|
171
|
+
var [enabledColumnSet, setEnabledColumnSet] = (0, import_react2.useState)(function () {
|
|
155
172
|
return new Set(columns.filter(function (c) {
|
|
156
173
|
return c.enabled;
|
|
157
174
|
}).map(function (c) {
|
|
158
175
|
return c.fieldname;
|
|
159
176
|
}));
|
|
160
177
|
});
|
|
161
|
-
var enabledColumns = (0,
|
|
178
|
+
var enabledColumns = (0, import_react2.useMemo)(function () {
|
|
162
179
|
return columns.filter(function (c) {
|
|
163
180
|
return enabledColumnSet.has(c.fieldname);
|
|
164
181
|
});
|
|
165
182
|
}, [columns, enabledColumnSet]);
|
|
166
|
-
var
|
|
183
|
+
var numericColumns = (0, import_react2.useMemo)(function () {
|
|
167
184
|
return columns.filter(function (c) {
|
|
168
185
|
return isNumericFieldType(c.fieldtype);
|
|
169
186
|
});
|
|
170
187
|
}, [columns]);
|
|
171
|
-
var
|
|
188
|
+
var toggleColumn = (0, import_react2.useCallback)(function (fieldname) {
|
|
172
189
|
setEnabledColumnSet(function (prev) {
|
|
173
190
|
var next = new Set(prev);
|
|
174
191
|
if (next.has(fieldname)) {
|
|
192
|
+
if (next.size <= 1) return prev;
|
|
175
193
|
next.delete(fieldname);
|
|
176
194
|
} else {
|
|
177
195
|
next.add(fieldname);
|
|
@@ -180,26 +198,43 @@ function ReportBuilder(param) {
|
|
|
180
198
|
return next;
|
|
181
199
|
});
|
|
182
200
|
}, [onColumnsChange]);
|
|
183
|
-
var [internalGroupBy, setInternalGroupBy] = (0,
|
|
201
|
+
var [internalGroupBy, setInternalGroupBy] = (0, import_react2.useState)(groupByProp !== null && groupByProp !== void 0 ? groupByProp : null);
|
|
184
202
|
var groupBy = groupByProp !== void 0 ? groupByProp : internalGroupBy;
|
|
185
|
-
var
|
|
203
|
+
var handleGroupByChange = (0, import_react2.useCallback)(function (config) {
|
|
186
204
|
setInternalGroupBy(config);
|
|
187
205
|
onGroupByChange === null || onGroupByChange === void 0 ? void 0 : onGroupByChange(config);
|
|
188
206
|
}, [onGroupByChange]);
|
|
189
|
-
var [collapsedGroups, setCollapsedGroups] = (0,
|
|
207
|
+
var [collapsedGroups, setCollapsedGroups] = (0, import_react2.useState)(function () {
|
|
190
208
|
return /* @__PURE__ */new Set();
|
|
191
209
|
});
|
|
192
|
-
var
|
|
210
|
+
var [sort, setSort] = (0, import_react2.useState)(null);
|
|
211
|
+
var [chartVisible, setChartVisible] = (0, import_react2.useState)(showChart);
|
|
212
|
+
var [focusedIndex, setFocusedIndex] = (0, import_react2.useState)(-1);
|
|
213
|
+
var sortedData = (0, import_react2.useMemo)(function () {
|
|
214
|
+
var _ref2;
|
|
215
|
+
if (!sort) return data;
|
|
216
|
+
var col = columns.find(function (c) {
|
|
217
|
+
return c.fieldname === sort.field;
|
|
218
|
+
});
|
|
219
|
+
var fieldtype = (_ref2 = col === null || col === void 0 ? void 0 : col.fieldtype) !== null && _ref2 !== void 0 ? _ref2 : "Data";
|
|
220
|
+
var copy = data.slice();
|
|
221
|
+
copy.sort(function (a, b) {
|
|
222
|
+
var cmp = compareValues(a[sort.field], b[sort.field], fieldtype);
|
|
223
|
+
return sort.dir === "asc" ? cmp : -cmp;
|
|
224
|
+
});
|
|
225
|
+
return copy;
|
|
226
|
+
}, [data, sort, columns]);
|
|
227
|
+
var groupedData = (0, import_react2.useMemo)(function () {
|
|
193
228
|
if (!groupBy) return null;
|
|
194
229
|
var groups = {};
|
|
195
230
|
var _iteratorNormalCompletion = true,
|
|
196
231
|
_didIteratorError = false,
|
|
197
232
|
_iteratorError = void 0;
|
|
198
233
|
try {
|
|
199
|
-
for (var _iterator =
|
|
234
|
+
for (var _iterator = sortedData[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
200
235
|
var row = _step.value;
|
|
201
236
|
var _row_groupBy_field;
|
|
202
|
-
var key = String((_row_groupBy_field = row[groupBy.field]) !== null && _row_groupBy_field !== void 0 ? _row_groupBy_field : "(empty)");
|
|
237
|
+
var key = String((_row_groupBy_field = row[groupBy.field]) !== null && _row_groupBy_field !== void 0 ? _row_groupBy_field : t("(empty)"));
|
|
203
238
|
if (!groups[key]) {
|
|
204
239
|
groups[key] = {
|
|
205
240
|
rows: [],
|
|
@@ -289,31 +324,101 @@ function ReportBuilder(param) {
|
|
|
289
324
|
}
|
|
290
325
|
}
|
|
291
326
|
return groups;
|
|
292
|
-
}, [groupBy,
|
|
293
|
-
var
|
|
294
|
-
|
|
295
|
-
|
|
327
|
+
}, [groupBy, sortedData, t]);
|
|
328
|
+
var groupEntries = (0, import_react2.useMemo)(function () {
|
|
329
|
+
return groupedData ? Object.entries(groupedData) : [];
|
|
330
|
+
}, [groupedData]);
|
|
331
|
+
var chartData = (0, import_react2.useMemo)(function () {
|
|
332
|
+
return groupEntries.map(function (param2) {
|
|
296
333
|
var [label, group] = param2;
|
|
297
334
|
return {
|
|
298
335
|
label,
|
|
299
336
|
value: group.aggregationValue
|
|
300
337
|
};
|
|
301
338
|
});
|
|
302
|
-
}, [
|
|
303
|
-
var
|
|
304
|
-
|
|
339
|
+
}, [groupEntries]);
|
|
340
|
+
var totals = (0, import_react2.useMemo)(function () {
|
|
341
|
+
return enabledColumns.filter(function (col) {
|
|
342
|
+
return isNumericFieldType(col.fieldtype);
|
|
343
|
+
}).map(function (col) {
|
|
344
|
+
return {
|
|
345
|
+
col,
|
|
346
|
+
value: sortedData.reduce(function (acc, row) {
|
|
347
|
+
return acc + (Number(row[col.fieldname]) || 0);
|
|
348
|
+
}, 0)
|
|
349
|
+
};
|
|
350
|
+
});
|
|
351
|
+
}, [enabledColumns, sortedData]);
|
|
352
|
+
var focusItems = (0, import_react2.useMemo)(function () {
|
|
353
|
+
if (groupBy && groupedData) {
|
|
354
|
+
var items = [];
|
|
355
|
+
var _iteratorNormalCompletion = true,
|
|
356
|
+
_didIteratorError = false,
|
|
357
|
+
_iteratorError = void 0;
|
|
358
|
+
try {
|
|
359
|
+
for (var _iterator = groupEntries[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
360
|
+
var [key, group] = _step.value;
|
|
361
|
+
items.push({
|
|
362
|
+
type: "group",
|
|
363
|
+
key
|
|
364
|
+
});
|
|
365
|
+
if (!collapsedGroups.has(key)) {
|
|
366
|
+
group.rows.forEach(function (row, index) {
|
|
367
|
+
return items.push({
|
|
368
|
+
type: "row",
|
|
369
|
+
row,
|
|
370
|
+
index
|
|
371
|
+
});
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
} catch (err) {
|
|
376
|
+
_didIteratorError = true;
|
|
377
|
+
_iteratorError = err;
|
|
378
|
+
} finally {
|
|
379
|
+
try {
|
|
380
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
381
|
+
_iterator.return();
|
|
382
|
+
}
|
|
383
|
+
} finally {
|
|
384
|
+
if (_didIteratorError) {
|
|
385
|
+
throw _iteratorError;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
return items;
|
|
390
|
+
}
|
|
391
|
+
return sortedData.map(function (row, index) {
|
|
392
|
+
return {
|
|
393
|
+
type: "row",
|
|
394
|
+
row,
|
|
395
|
+
index
|
|
396
|
+
};
|
|
397
|
+
});
|
|
398
|
+
}, [groupBy, groupedData, groupEntries, collapsedGroups, sortedData]);
|
|
399
|
+
var effectiveFocused = focusedIndex >= focusItems.length ? -1 : focusedIndex;
|
|
400
|
+
var toggleGroup = (0, import_react2.useCallback)(function (groupKey) {
|
|
305
401
|
setCollapsedGroups(function (prev) {
|
|
306
402
|
var next = new Set(prev);
|
|
307
|
-
if (next.has(groupKey))
|
|
308
|
-
next.delete(groupKey);
|
|
309
|
-
} else {
|
|
310
|
-
next.add(groupKey);
|
|
311
|
-
}
|
|
403
|
+
if (next.has(groupKey)) next.delete(groupKey);else next.add(groupKey);
|
|
312
404
|
return next;
|
|
313
405
|
});
|
|
314
406
|
}, []);
|
|
315
|
-
var
|
|
316
|
-
|
|
407
|
+
var cycleSort = (0, import_react2.useCallback)(function (field) {
|
|
408
|
+
setSort(function (prev) {
|
|
409
|
+
if ((prev === null || prev === void 0 ? void 0 : prev.field) !== field) return {
|
|
410
|
+
field,
|
|
411
|
+
dir: "asc"
|
|
412
|
+
};
|
|
413
|
+
if (prev.dir === "asc") return {
|
|
414
|
+
field,
|
|
415
|
+
dir: "desc"
|
|
416
|
+
};
|
|
417
|
+
return null;
|
|
418
|
+
});
|
|
419
|
+
}, []);
|
|
420
|
+
var handleExport = (0, import_react2.useCallback)(function () {
|
|
421
|
+
var exportData = sortedData.map(function (row) {
|
|
317
422
|
var filtered = {};
|
|
318
423
|
var _iteratorNormalCompletion = true,
|
|
319
424
|
_didIteratorError = false,
|
|
@@ -340,118 +445,284 @@ function ReportBuilder(param) {
|
|
|
340
445
|
return filtered;
|
|
341
446
|
});
|
|
342
447
|
onExport === null || onExport === void 0 ? void 0 : onExport(exportData);
|
|
343
|
-
}, [
|
|
448
|
+
}, [sortedData, enabledColumns, onExport]);
|
|
449
|
+
var selectGroupField = (0, import_react2.useCallback)(function (fieldname) {
|
|
450
|
+
var _ref2;
|
|
451
|
+
if (!fieldname) {
|
|
452
|
+
handleGroupByChange(null);
|
|
453
|
+
return;
|
|
454
|
+
}
|
|
455
|
+
handleGroupByChange({
|
|
456
|
+
field: fieldname,
|
|
457
|
+
aggregation: (_ref2 = groupBy === null || groupBy === void 0 ? void 0 : groupBy.aggregation) !== null && _ref2 !== void 0 ? _ref2 : "count",
|
|
458
|
+
aggregationField: groupBy === null || groupBy === void 0 ? void 0 : groupBy.aggregationField
|
|
459
|
+
});
|
|
460
|
+
}, [groupBy, handleGroupByChange]);
|
|
461
|
+
var selectAggregation = (0, import_react2.useCallback)(function (aggregation) {
|
|
462
|
+
var _groupBy_aggregationField;
|
|
463
|
+
var _numericColumns_;
|
|
464
|
+
if (!groupBy) return;
|
|
465
|
+
handleGroupByChange({
|
|
466
|
+
...groupBy,
|
|
467
|
+
aggregation,
|
|
468
|
+
aggregationField: aggregation === "count" ? void 0 : (_groupBy_aggregationField = groupBy.aggregationField) !== null && _groupBy_aggregationField !== void 0 ? _groupBy_aggregationField : (_numericColumns_ = numericColumns[0]) === null || _numericColumns_ === void 0 ? void 0 : _numericColumns_.fieldname
|
|
469
|
+
});
|
|
470
|
+
}, [groupBy, handleGroupByChange, numericColumns]);
|
|
471
|
+
var aggregationLabels = {
|
|
472
|
+
count: t("Count"),
|
|
473
|
+
sum: t("Sum"),
|
|
474
|
+
avg: t("Average"),
|
|
475
|
+
min: t("Min"),
|
|
476
|
+
max: t("Max")
|
|
477
|
+
};
|
|
478
|
+
var handleContainerFocus = (0, import_react2.useCallback)(function () {
|
|
479
|
+
if (!(0, import_theme.wasKeyboardFocus)()) return;
|
|
480
|
+
setFocusedIndex(function (prev) {
|
|
481
|
+
return prev < 0 ? 0 : prev;
|
|
482
|
+
});
|
|
483
|
+
}, []);
|
|
484
|
+
var scrollToFocused = (0, import_react2.useCallback)(function (index) {
|
|
485
|
+
var _document_getElementById;
|
|
486
|
+
(_document_getElementById = document.getElementById(`${tableId}-item-${index}`)) === null || _document_getElementById === void 0 ? void 0 : _document_getElementById.scrollIntoView({
|
|
487
|
+
block: "nearest"
|
|
488
|
+
});
|
|
489
|
+
}, [tableId]);
|
|
490
|
+
var hotkeyOpts = {
|
|
491
|
+
target: gridRef
|
|
492
|
+
};
|
|
493
|
+
(0, import_react_hotkeys.useHotkey)("ArrowDown", function () {
|
|
494
|
+
setFocusedIndex(function (prev) {
|
|
495
|
+
var next = prev < 0 ? 0 : Math.min(prev + 1, focusItems.length - 1);
|
|
496
|
+
scrollToFocused(next);
|
|
497
|
+
return next;
|
|
498
|
+
});
|
|
499
|
+
}, hotkeyOpts);
|
|
500
|
+
(0, import_react_hotkeys.useHotkey)("ArrowUp", function () {
|
|
501
|
+
setFocusedIndex(function (prev) {
|
|
502
|
+
var next = prev < 0 ? focusItems.length - 1 : Math.max(prev - 1, 0);
|
|
503
|
+
scrollToFocused(next);
|
|
504
|
+
return next;
|
|
505
|
+
});
|
|
506
|
+
}, hotkeyOpts);
|
|
507
|
+
(0, import_react_hotkeys.useHotkey)("Home", function () {
|
|
508
|
+
if (focusItems.length > 0) {
|
|
509
|
+
setFocusedIndex(0);
|
|
510
|
+
scrollToFocused(0);
|
|
511
|
+
}
|
|
512
|
+
}, hotkeyOpts);
|
|
513
|
+
(0, import_react_hotkeys.useHotkey)("End", function () {
|
|
514
|
+
if (focusItems.length > 0) {
|
|
515
|
+
var last = focusItems.length - 1;
|
|
516
|
+
setFocusedIndex(last);
|
|
517
|
+
scrollToFocused(last);
|
|
518
|
+
}
|
|
519
|
+
}, hotkeyOpts);
|
|
520
|
+
(0, import_react_hotkeys.useHotkey)("Enter", function () {
|
|
521
|
+
var item = focusItems[effectiveFocused];
|
|
522
|
+
if (!item) return;
|
|
523
|
+
if (item.type === "group") toggleGroup(item.key);else onRowPress === null || onRowPress === void 0 ? void 0 : onRowPress(item.row, item.index);
|
|
524
|
+
}, hotkeyOpts);
|
|
525
|
+
(0, import_react_hotkeys.useHotkey)("ArrowLeft", function () {
|
|
526
|
+
var item = focusItems[effectiveFocused];
|
|
527
|
+
if ((item === null || item === void 0 ? void 0 : item.type) === "group" && !collapsedGroups.has(item.key)) toggleGroup(item.key);
|
|
528
|
+
}, hotkeyOpts);
|
|
529
|
+
(0, import_react_hotkeys.useHotkey)("ArrowRight", function () {
|
|
530
|
+
var item = focusItems[effectiveFocused];
|
|
531
|
+
if ((item === null || item === void 0 ? void 0 : item.type) === "group" && collapsedGroups.has(item.key)) toggleGroup(item.key);
|
|
532
|
+
}, hotkeyOpts);
|
|
533
|
+
var rowRing = function rowRing2(isFocused) {
|
|
534
|
+
return isFocused && (0, import_theme.wasKeyboardFocus)() ? import_theme.keyboardFocusRingProps : {
|
|
535
|
+
outlineWidth: 0
|
|
536
|
+
};
|
|
537
|
+
};
|
|
538
|
+
var cellAlign = function cellAlign2(col) {
|
|
539
|
+
return isNumericFieldType(col.fieldtype) ? "right" : "left";
|
|
540
|
+
};
|
|
344
541
|
var renderHeaderRow = function renderHeaderRow2() {
|
|
345
542
|
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.XStack, {
|
|
346
|
-
|
|
543
|
+
role: "row",
|
|
544
|
+
minHeight: nestedPx,
|
|
545
|
+
alignItems: "center",
|
|
347
546
|
backgroundColor: import_componentColors.componentColors.surface.background,
|
|
348
|
-
|
|
349
|
-
borderBottomColor: "$borderColor",
|
|
547
|
+
...import_theme.hairline.bottom,
|
|
350
548
|
children: enabledColumns.map(function (col) {
|
|
351
|
-
|
|
549
|
+
var active = (sort === null || sort === void 0 ? void 0 : sort.field) === col.fieldname;
|
|
550
|
+
var SortIcon = active && (sort === null || sort === void 0 ? void 0 : sort.dir) === "desc" ? import_react.CaretDownIcon : import_react.CaretUpIcon;
|
|
551
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
552
|
+
role: "columnheader",
|
|
553
|
+
"aria-sort": active ? (sort === null || sort === void 0 ? void 0 : sort.dir) === "asc" ? "ascending" : "descending" : "none",
|
|
352
554
|
flex: 1,
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
555
|
+
minWidth: 0,
|
|
556
|
+
minHeight: nestedPx,
|
|
557
|
+
hitSlop: knobProps.nestedControl.hitSlop,
|
|
558
|
+
alignItems: "center",
|
|
559
|
+
justifyContent: cellAlign(col) === "right" ? "flex-end" : "flex-start",
|
|
560
|
+
gap: "$1",
|
|
356
561
|
paddingHorizontal: "$2",
|
|
357
|
-
|
|
358
|
-
|
|
562
|
+
cursor: "pointer",
|
|
563
|
+
tabIndex: -1,
|
|
564
|
+
onPress: function onPress() {
|
|
565
|
+
return cycleSort(col.fieldname);
|
|
566
|
+
},
|
|
567
|
+
hoverStyle: {
|
|
568
|
+
backgroundColor: import_componentColors.componentColors.interactive.background
|
|
569
|
+
},
|
|
570
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
571
|
+
fontWeight: "600",
|
|
572
|
+
fontSize: reportFontSize,
|
|
573
|
+
color: "$color",
|
|
574
|
+
numberOfLines: 1,
|
|
575
|
+
textAlign: cellAlign(col),
|
|
576
|
+
children: col.label
|
|
577
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(SortIcon, {
|
|
578
|
+
size: 10,
|
|
579
|
+
weight: "bold",
|
|
580
|
+
color: active ? import_componentColors.componentColors.text.primary : import_componentColors.componentColors.text.muted,
|
|
581
|
+
opacity: active ? 1 : 0.35
|
|
582
|
+
})]
|
|
359
583
|
}, col.fieldname);
|
|
360
584
|
})
|
|
361
585
|
});
|
|
362
586
|
};
|
|
363
|
-
var renderDataRow = function renderDataRow2(row, index) {
|
|
364
|
-
var isGrouped = arguments.length >
|
|
587
|
+
var renderDataRow = function renderDataRow2(row, index, focusIdx, isLast) {
|
|
588
|
+
var isGrouped = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
|
|
365
589
|
var _row_name;
|
|
590
|
+
var isFocused = effectiveFocused === focusIdx;
|
|
366
591
|
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.XStack, {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
592
|
+
id: `${tableId}-item-${focusIdx}`,
|
|
593
|
+
role: "row",
|
|
594
|
+
"aria-selected": isFocused,
|
|
595
|
+
tabIndex: -1,
|
|
596
|
+
...(isFocused ? {
|
|
597
|
+
"data-focused": true
|
|
598
|
+
} : {}),
|
|
599
|
+
minHeight: nestedPx,
|
|
600
|
+
alignItems: "center",
|
|
601
|
+
backgroundColor: isFocused ? "$accentBackground" : "transparent",
|
|
602
|
+
...rowRing(isFocused),
|
|
373
603
|
hoverStyle: {
|
|
374
|
-
backgroundColor: import_componentColors.componentColors.
|
|
604
|
+
backgroundColor: isFocused ? "$accentBackground" : import_componentColors.componentColors.interactive.background
|
|
375
605
|
},
|
|
606
|
+
...(isLast ? {} : import_theme.hairline.bottom),
|
|
376
607
|
...(isGrouped ? {
|
|
377
608
|
paddingInlineStart: knobProps.panelPadding.padding
|
|
378
609
|
} : {}),
|
|
379
610
|
...(onRowPress ? {
|
|
380
611
|
cursor: "pointer",
|
|
612
|
+
hitSlop: knobProps.nestedControl.hitSlop,
|
|
381
613
|
onPress: function onPress() {
|
|
382
|
-
|
|
614
|
+
var _gridRef_current;
|
|
615
|
+
setFocusedIndex(focusIdx);
|
|
616
|
+
(_gridRef_current = gridRef.current) === null || _gridRef_current === void 0 ? void 0 : _gridRef_current.focus();
|
|
617
|
+
onRowPress(row, index);
|
|
383
618
|
}
|
|
384
619
|
} : {}),
|
|
385
620
|
children: enabledColumns.map(function (col) {
|
|
386
621
|
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
622
|
+
role: "cell",
|
|
387
623
|
flex: 1,
|
|
624
|
+
minWidth: 0,
|
|
388
625
|
fontSize: reportFontSize,
|
|
389
626
|
color: "$color",
|
|
390
627
|
paddingHorizontal: "$2",
|
|
391
628
|
numberOfLines: 1,
|
|
629
|
+
textAlign: cellAlign(col),
|
|
392
630
|
children: formatCellValue(row[col.fieldname], col.fieldtype)
|
|
393
631
|
}, col.fieldname);
|
|
394
632
|
})
|
|
395
|
-
},
|
|
633
|
+
}, `${tableId}-row-${String((_row_name = row.name) !== null && _row_name !== void 0 ? _row_name : index)}`);
|
|
396
634
|
};
|
|
397
635
|
var renderGroupedRows = function renderGroupedRows2() {
|
|
398
|
-
if (!
|
|
399
|
-
var
|
|
636
|
+
if (!groupBy) return null;
|
|
637
|
+
var groupByCol2 = columns.find(function (c) {
|
|
400
638
|
return c.fieldname === groupBy.field;
|
|
401
639
|
});
|
|
402
640
|
var aggLabel = aggregationLabels[groupBy.aggregation];
|
|
403
641
|
var aggFieldCol = groupBy.aggregationField ? columns.find(function (c) {
|
|
404
642
|
return c.fieldname === groupBy.aggregationField;
|
|
405
643
|
}) : null;
|
|
406
|
-
|
|
644
|
+
var cursor = 0;
|
|
645
|
+
return groupEntries.map(function (param2, groupIndex) {
|
|
407
646
|
var [groupKey, group] = param2;
|
|
408
|
-
var
|
|
647
|
+
var _ref2, _ref12, _ref22;
|
|
409
648
|
var isCollapsed = collapsedGroups.has(groupKey);
|
|
649
|
+
var headerFocus = cursor;
|
|
650
|
+
cursor += 1;
|
|
410
651
|
var aggDisplay = groupBy.aggregation === "count" ? `${aggLabel}: ${(0, import_theme.formatNumber)(group.aggregationValue, {
|
|
411
652
|
maximumFractionDigits: 0
|
|
412
|
-
})}` : `${aggLabel}(${(
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
653
|
+
})}` : `${aggLabel}(${(_ref2 = (_ref12 = aggFieldCol === null || aggFieldCol === void 0 ? void 0 : aggFieldCol.label) !== null && _ref12 !== void 0 ? _ref12 : groupBy.aggregationField) !== null && _ref2 !== void 0 ? _ref2 : ""}): ${(0, import_theme.formatNumber)(group.aggregationValue)}`;
|
|
654
|
+
var isFocused = effectiveFocused === headerFocus;
|
|
655
|
+
var header = /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
656
|
+
id: `${tableId}-item-${headerFocus}`,
|
|
657
|
+
role: "row",
|
|
658
|
+
"aria-expanded": !isCollapsed,
|
|
659
|
+
"aria-selected": isFocused,
|
|
660
|
+
tabIndex: -1,
|
|
661
|
+
...(isFocused ? {
|
|
662
|
+
"data-focused": true
|
|
663
|
+
} : {}),
|
|
664
|
+
minHeight: nestedPx,
|
|
665
|
+
hitSlop: knobProps.nestedControl.hitSlop,
|
|
666
|
+
paddingHorizontal: "$2",
|
|
667
|
+
backgroundColor: isFocused ? "$accentBackground" : import_componentColors.componentColors.interactive.background,
|
|
668
|
+
...(groupIndex === groupEntries.length - 1 && isCollapsed ? {} : import_theme.hairline.bottom),
|
|
669
|
+
alignItems: "center",
|
|
670
|
+
gap: "$2",
|
|
671
|
+
cursor: "pointer",
|
|
672
|
+
...rowRing(isFocused),
|
|
673
|
+
onPress: function onPress() {
|
|
674
|
+
var _gridRef_current;
|
|
675
|
+
setFocusedIndex(headerFocus);
|
|
676
|
+
(_gridRef_current = gridRef.current) === null || _gridRef_current === void 0 ? void 0 : _gridRef_current.focus();
|
|
677
|
+
toggleGroup(groupKey);
|
|
678
|
+
},
|
|
679
|
+
hoverStyle: {
|
|
680
|
+
backgroundColor: isFocused ? "$accentBackground" : import_componentColors.componentColors.interactive.hover
|
|
681
|
+
},
|
|
682
|
+
children: [isCollapsed ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(CollapsedCaretIcon, {
|
|
683
|
+
size: 12,
|
|
684
|
+
weight: "bold"
|
|
685
|
+
}) : /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react.CaretDownIcon, {
|
|
686
|
+
size: 12,
|
|
687
|
+
weight: "bold"
|
|
688
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.Text, {
|
|
689
|
+
fontWeight: "600",
|
|
690
|
+
fontSize: reportFontSize,
|
|
691
|
+
color: "$accentColor",
|
|
692
|
+
numberOfLines: 1,
|
|
693
|
+
children: [(_ref22 = groupByCol2 === null || groupByCol2 === void 0 ? void 0 : groupByCol2.label) !== null && _ref22 !== void 0 ? _ref22 : groupBy.field, ": ", groupKey]
|
|
694
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.Text, {
|
|
695
|
+
fontSize: reportFontSize,
|
|
696
|
+
color: import_componentColors.componentColors.text.muted,
|
|
697
|
+
children: ["(", group.rows.length, " ", group.rows.length === 1 ? t("record") : t("records"), ")"]
|
|
698
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.XStack, {
|
|
699
|
+
flex: 1
|
|
700
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
701
|
+
fontWeight: "500",
|
|
702
|
+
fontSize: reportFontSize,
|
|
703
|
+
color: "$accentColor",
|
|
704
|
+
numberOfLines: 1,
|
|
705
|
+
children: aggDisplay
|
|
451
706
|
})]
|
|
707
|
+
}, `group-${groupKey}`);
|
|
708
|
+
var rows = isCollapsed ? null : group.rows.map(function (row, index) {
|
|
709
|
+
var focusIdx = cursor;
|
|
710
|
+
cursor += 1;
|
|
711
|
+
var lastInTable = groupIndex === groupEntries.length - 1 && index === group.rows.length - 1;
|
|
712
|
+
return renderDataRow(row, index, focusIdx, lastInTable, true);
|
|
713
|
+
});
|
|
714
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
715
|
+
children: [header, rows]
|
|
452
716
|
}, groupKey);
|
|
453
717
|
});
|
|
454
718
|
};
|
|
719
|
+
var groupByCol = groupBy ? columns.find(function (c) {
|
|
720
|
+
return c.fieldname === groupBy.field;
|
|
721
|
+
}) : void 0;
|
|
722
|
+
var aggregationFieldCol = (groupBy === null || groupBy === void 0 ? void 0 : groupBy.aggregationField) ? columns.find(function (c) {
|
|
723
|
+
return c.fieldname === groupBy.aggregationField;
|
|
724
|
+
}) : void 0;
|
|
725
|
+
var chartAvailable = Boolean(groupedData && chartData.length > 0);
|
|
455
726
|
if (hasError) {
|
|
456
727
|
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_AsyncBoundary.AsyncBoundary, {
|
|
457
728
|
error,
|
|
@@ -464,78 +735,230 @@ function ReportBuilder(param) {
|
|
|
464
735
|
});
|
|
465
736
|
}
|
|
466
737
|
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
738
|
+
testID: "report-builder",
|
|
467
739
|
...knobProps.gap,
|
|
740
|
+
height,
|
|
741
|
+
minHeight,
|
|
468
742
|
...stackProps,
|
|
469
|
-
children: [/*
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
...knobProps.
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
743
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
744
|
+
...knobProps.surface,
|
|
745
|
+
...knobProps.containerRadius,
|
|
746
|
+
...knobProps.panelPadding,
|
|
747
|
+
...knobProps.gap,
|
|
748
|
+
alignItems: "center",
|
|
749
|
+
flexWrap: "wrap",
|
|
750
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_DropdownMenu.DropdownMenu, {
|
|
751
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_DropdownMenu.DropdownMenu.Trigger, {
|
|
752
|
+
asChild: true,
|
|
753
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_forms.Button, {
|
|
754
|
+
size: knobProps.sizeToken,
|
|
755
|
+
chromeless: true,
|
|
756
|
+
...(0, import_theme.pressTargetStyle)(),
|
|
757
|
+
children: t("Columns ({{enabled}}/{{total}})", {
|
|
758
|
+
enabled: enabledColumns.length,
|
|
759
|
+
total: columns.length
|
|
760
|
+
})
|
|
761
|
+
})
|
|
762
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_DropdownMenu.DropdownMenu.Content, {
|
|
763
|
+
maxHeight: 360,
|
|
764
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_DropdownMenu.DropdownMenu.Label, {
|
|
765
|
+
children: t("Report columns")
|
|
766
|
+
}), columns.map(function (column) {
|
|
767
|
+
var checked = enabledColumnSet.has(column.fieldname);
|
|
768
|
+
var lastEnabled = checked && enabledColumnSet.size === 1;
|
|
769
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_DropdownMenu.DropdownMenu.CheckboxItem, {
|
|
770
|
+
checked,
|
|
771
|
+
disabled: lastEnabled,
|
|
772
|
+
disabledReason: lastEnabled ? t("At least one column stays visible") : void 0,
|
|
773
|
+
onCheckedChange: function onCheckedChange() {
|
|
774
|
+
return toggleColumn(column.fieldname);
|
|
775
|
+
},
|
|
776
|
+
children: column.label
|
|
777
|
+
}, column.fieldname);
|
|
778
|
+
})]
|
|
504
779
|
})]
|
|
505
|
-
})
|
|
506
|
-
|
|
507
|
-
|
|
780
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_DropdownMenu.DropdownMenu, {
|
|
781
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_DropdownMenu.DropdownMenu.Trigger, {
|
|
782
|
+
asChild: true,
|
|
783
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_forms.Button, {
|
|
784
|
+
size: knobProps.sizeToken,
|
|
785
|
+
chromeless: true,
|
|
786
|
+
...(0, import_theme.pressTargetStyle)(),
|
|
787
|
+
children: groupByCol ? t("Group by: {{field}}", {
|
|
788
|
+
field: groupByCol.label
|
|
789
|
+
}) : t("Group by")
|
|
790
|
+
})
|
|
791
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_DropdownMenu.DropdownMenu.Content, {
|
|
792
|
+
maxHeight: 360,
|
|
793
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_DropdownMenu.DropdownMenu.CheckboxItem, {
|
|
794
|
+
checked: !groupBy,
|
|
795
|
+
closeOnSelect: true,
|
|
796
|
+
onCheckedChange: function onCheckedChange() {
|
|
797
|
+
return selectGroupField(null);
|
|
798
|
+
},
|
|
799
|
+
children: t("No grouping")
|
|
800
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_DropdownMenu.DropdownMenu.Separator, {}), columns.map(function (column) {
|
|
801
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_DropdownMenu.DropdownMenu.CheckboxItem, {
|
|
802
|
+
checked: (groupBy === null || groupBy === void 0 ? void 0 : groupBy.field) === column.fieldname,
|
|
803
|
+
closeOnSelect: true,
|
|
804
|
+
onCheckedChange: function onCheckedChange() {
|
|
805
|
+
return selectGroupField(column.fieldname);
|
|
806
|
+
},
|
|
807
|
+
children: column.label
|
|
808
|
+
}, column.fieldname);
|
|
809
|
+
})]
|
|
810
|
+
})]
|
|
811
|
+
}), groupBy && /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_DropdownMenu.DropdownMenu, {
|
|
812
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_DropdownMenu.DropdownMenu.Trigger, {
|
|
813
|
+
asChild: true,
|
|
814
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_forms.Button, {
|
|
815
|
+
size: knobProps.sizeToken,
|
|
816
|
+
chromeless: true,
|
|
817
|
+
...(0, import_theme.pressTargetStyle)(),
|
|
818
|
+
children: aggregationLabels[groupBy.aggregation]
|
|
819
|
+
})
|
|
820
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_DropdownMenu.DropdownMenu.Content, {
|
|
821
|
+
children: AGGREGATIONS.map(function (aggregation) {
|
|
822
|
+
var needsNumeric = aggregation !== "count" && numericColumns.length === 0;
|
|
823
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_DropdownMenu.DropdownMenu.CheckboxItem, {
|
|
824
|
+
checked: groupBy.aggregation === aggregation,
|
|
825
|
+
closeOnSelect: true,
|
|
826
|
+
disabled: needsNumeric,
|
|
827
|
+
disabledReason: needsNumeric ? t("No numeric fields to aggregate") : void 0,
|
|
828
|
+
onCheckedChange: function onCheckedChange() {
|
|
829
|
+
return selectAggregation(aggregation);
|
|
830
|
+
},
|
|
831
|
+
children: aggregationLabels[aggregation]
|
|
832
|
+
}, aggregation);
|
|
833
|
+
})
|
|
834
|
+
})]
|
|
835
|
+
}), groupBy && groupBy.aggregation !== "count" && numericColumns.length > 0 && /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_DropdownMenu.DropdownMenu, {
|
|
836
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_DropdownMenu.DropdownMenu.Trigger, {
|
|
837
|
+
asChild: true,
|
|
838
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_forms.Button, {
|
|
839
|
+
size: knobProps.sizeToken,
|
|
840
|
+
chromeless: true,
|
|
841
|
+
...(0, import_theme.pressTargetStyle)(),
|
|
842
|
+
children: t("of {{field}}", {
|
|
843
|
+
field: (_ref = (_ref1 = aggregationFieldCol === null || aggregationFieldCol === void 0 ? void 0 : aggregationFieldCol.label) !== null && _ref1 !== void 0 ? _ref1 : groupBy.aggregationField) !== null && _ref !== void 0 ? _ref : t("field")
|
|
844
|
+
})
|
|
845
|
+
})
|
|
846
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_DropdownMenu.DropdownMenu.Content, {
|
|
847
|
+
maxHeight: 360,
|
|
848
|
+
children: numericColumns.map(function (column) {
|
|
849
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_DropdownMenu.DropdownMenu.CheckboxItem, {
|
|
850
|
+
checked: groupBy.aggregationField === column.fieldname,
|
|
851
|
+
closeOnSelect: true,
|
|
852
|
+
onCheckedChange: function onCheckedChange() {
|
|
853
|
+
return handleGroupByChange({
|
|
854
|
+
...groupBy,
|
|
855
|
+
aggregationField: column.fieldname
|
|
856
|
+
});
|
|
857
|
+
},
|
|
858
|
+
children: column.label
|
|
859
|
+
}, column.fieldname);
|
|
860
|
+
})
|
|
861
|
+
})]
|
|
862
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.XStack, {
|
|
863
|
+
flex: 1
|
|
864
|
+
}), chartAvailable && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_forms.Button, {
|
|
865
|
+
size: knobProps.sizeToken,
|
|
866
|
+
chromeless: true,
|
|
867
|
+
icon: import_react.ChartBarIcon,
|
|
868
|
+
"aria-pressed": chartVisible,
|
|
869
|
+
onPress: function onPress() {
|
|
870
|
+
return setChartVisible(function (v) {
|
|
871
|
+
return !v;
|
|
872
|
+
});
|
|
873
|
+
},
|
|
874
|
+
theme: chartVisible ? "active" : void 0,
|
|
875
|
+
...(0, import_theme.pressTargetStyle)(),
|
|
876
|
+
children: t("Chart")
|
|
877
|
+
}), onExport && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_forms.Button, {
|
|
878
|
+
size: knobProps.sizeToken,
|
|
879
|
+
chromeless: true,
|
|
880
|
+
icon: import_react.DownloadSimpleIcon,
|
|
881
|
+
onPress: handleExport,
|
|
882
|
+
...(0, import_theme.pressTargetStyle)(),
|
|
883
|
+
children: t("Export")
|
|
884
|
+
})]
|
|
885
|
+
}), chartVisible && chartAvailable && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
508
886
|
...knobProps.gap,
|
|
509
887
|
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(SimpleBarChart, {
|
|
510
888
|
data: chartData
|
|
511
889
|
})
|
|
512
|
-
}), /*
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
children: isInitialLoading ? (/* Skeleton twin inside the live table card (LC-20 / DG-ST-02) */
|
|
520
|
-
/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_AsyncBoundary.AsyncSkeleton, {
|
|
890
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
891
|
+
...knobProps.surface,
|
|
892
|
+
...knobProps.containerRadius,
|
|
893
|
+
overflow: "hidden",
|
|
894
|
+
flex: bounded ? 1 : void 0,
|
|
895
|
+
minHeight: bounded ? 0 : void 0,
|
|
896
|
+
children: isInitialLoading ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_AsyncBoundary.AsyncSkeleton, {
|
|
521
897
|
layout: "table",
|
|
522
898
|
padding: "$2"
|
|
523
|
-
})
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
899
|
+
}) : /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
900
|
+
ref: gridRef,
|
|
901
|
+
flex: bounded ? 1 : void 0,
|
|
902
|
+
minHeight: bounded ? 0 : void 0,
|
|
903
|
+
role: "grid",
|
|
904
|
+
"aria-rowcount": sortedData.length,
|
|
905
|
+
"aria-colcount": enabledColumns.length,
|
|
906
|
+
"aria-label": t("Report"),
|
|
907
|
+
"aria-activedescendant": effectiveFocused >= 0 ? `${tableId}-item-${effectiveFocused}` : void 0,
|
|
908
|
+
tabIndex: 0,
|
|
909
|
+
outlineWidth: 0,
|
|
910
|
+
onFocus: handleContainerFocus,
|
|
911
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.ScrollView, {
|
|
912
|
+
flex: bounded ? 1 : void 0,
|
|
913
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
914
|
+
minWidth: "100%",
|
|
915
|
+
children: [renderHeaderRow(), groupBy && groupedData ? renderGroupedRows() : sortedData.map(function (row, index) {
|
|
916
|
+
return renderDataRow(row, index, index, index === sortedData.length - 1);
|
|
917
|
+
}), data.length === 0 && /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_page.EmptyState, {
|
|
918
|
+
compact: true,
|
|
919
|
+
"aria-live": "polite",
|
|
920
|
+
"data-async-state": hasActiveFilters ? "no-results" : "empty",
|
|
921
|
+
title: hasActiveFilters ? t("No results found") : t("No data to display")
|
|
922
|
+
})]
|
|
923
|
+
})
|
|
924
|
+
}), data.length > 0 && /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.XStack, {
|
|
925
|
+
role: "row",
|
|
926
|
+
minHeight: nestedPx,
|
|
927
|
+
alignItems: "center",
|
|
928
|
+
paddingHorizontal: "$2",
|
|
929
|
+
...import_theme.hairline.top,
|
|
930
|
+
backgroundColor: import_componentColors.componentColors.surface.background,
|
|
931
|
+
gap: "$3",
|
|
932
|
+
flexWrap: "wrap",
|
|
933
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
934
|
+
fontSize: reportFontSize,
|
|
935
|
+
fontWeight: "600",
|
|
936
|
+
color: import_componentColors.componentColors.text.muted,
|
|
937
|
+
children: t("Totals")
|
|
938
|
+
}), totals.map(function (param2) {
|
|
939
|
+
var {
|
|
940
|
+
col,
|
|
941
|
+
value
|
|
942
|
+
} = param2;
|
|
943
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.Text, {
|
|
944
|
+
fontSize: reportFontSize,
|
|
945
|
+
color: "$color",
|
|
946
|
+
children: [col.label, ":", " ", /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
947
|
+
fontSize: reportFontSize,
|
|
948
|
+
fontWeight: "600",
|
|
949
|
+
children: formatCellValue(value, col.fieldtype)
|
|
950
|
+
})]
|
|
951
|
+
}, col.fieldname);
|
|
952
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.XStack, {
|
|
953
|
+
flex: 1
|
|
954
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Text, {
|
|
955
|
+
fontSize: reportFontSize,
|
|
956
|
+
color: import_componentColors.componentColors.text.muted,
|
|
957
|
+
children: t("{{count}} row(s)", {
|
|
958
|
+
count: data.length
|
|
959
|
+
})
|
|
537
960
|
})]
|
|
538
|
-
})
|
|
961
|
+
})]
|
|
539
962
|
})
|
|
540
963
|
})]
|
|
541
964
|
});
|