@altertable/data-app 0.67.0 → 0.68.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/chunks/{index-8qfxv0h5.js → index-gvers8jw.js} +173 -3
- package/dist/chunks/{index-8qfxv0h5.js.map → index-gvers8jw.js.map} +4 -3
- package/dist/react/index.js +24 -12
- package/dist/react/index.js.map +3 -4
- package/dist/react/ui/index.js +1105 -238
- package/dist/react/ui/index.js.map +15 -10
- package/dist/types/react/style-contract.d.ts +12 -0
- package/dist/types/react/ui/ChartLegend.d.ts +1 -1
- package/dist/types/react/ui/ComposedChart.d.ts +1 -1
- package/dist/types/react/ui/FunnelChart.d.ts +20 -0
- package/dist/types/react/ui/JourneyChart.d.ts +10 -0
- package/dist/types/react/ui/RetentionChart.d.ts +27 -0
- package/dist/types/react/ui/chart-data.d.ts +9 -0
- package/dist/types/react/ui/chart-primitives.d.ts +4 -2
- package/dist/types/react/ui/chartColor.d.ts +1 -0
- package/dist/types/react/ui/index.d.ts +7 -0
- package/dist/types/react/ui/journey-flow.d.ts +49 -0
- package/dist/types/react/ui/useSvgId.d.ts +2 -0
- package/dist/worker.js +1 -1
- package/docs/contract.md +2 -1
- package/docs/ui.md +20 -2
- package/docs/widgets.md +15 -12
- package/docs/worker.md +2 -1
- package/package.json +1 -1
|
@@ -982,6 +982,24 @@ function injectDataAppStyles2(options = {}) {
|
|
|
982
982
|
animation: none;
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
|
+
|
|
986
|
+
.altertable-chart-tooltip-row {
|
|
987
|
+
display: flex;
|
|
988
|
+
align-items: flex-start;
|
|
989
|
+
gap: 6px;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
.altertable-chart-tooltip-marker {
|
|
993
|
+
flex-shrink: 0;
|
|
994
|
+
width: 8px;
|
|
995
|
+
height: 8px;
|
|
996
|
+
margin-top: .3em;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
.altertable-chart-tooltip-reading {
|
|
1000
|
+
overflow-wrap: anywhere;
|
|
1001
|
+
min-width: 0;
|
|
1002
|
+
}
|
|
985
1003
|
}
|
|
986
1004
|
|
|
987
1005
|
/* src/react/ui/RequestHint.css */
|
|
@@ -5407,8 +5425,14 @@ function injectDataAppStyles2(options = {}) {
|
|
|
5407
5425
|
}
|
|
5408
5426
|
|
|
5409
5427
|
.altertable-chart-legend-marker {
|
|
5410
|
-
display: block;
|
|
5428
|
+
display: inline-block;
|
|
5429
|
+
vertical-align: middle;
|
|
5411
5430
|
flex: none;
|
|
5431
|
+
width: 8px;
|
|
5432
|
+
height: 8px;
|
|
5433
|
+
}
|
|
5434
|
+
|
|
5435
|
+
.altertable-chart-legend-marker:not([data-kind="square"]) {
|
|
5412
5436
|
width: 20px;
|
|
5413
5437
|
height: 12px;
|
|
5414
5438
|
}
|
|
@@ -5701,6 +5725,143 @@ function injectDataAppStyles2(options = {}) {
|
|
|
5701
5725
|
.altertable-composed-chart-legend-above {
|
|
5702
5726
|
padding-bottom: var(--atbl-space-md);
|
|
5703
5727
|
}
|
|
5728
|
+
|
|
5729
|
+
.altertable-composed-chart[data-atbl-internal-pointer-focus] {
|
|
5730
|
+
--atbl-focus-outline: none;
|
|
5731
|
+
}
|
|
5732
|
+
|
|
5733
|
+
.altertable-composed-chart [data-atbl-focus="inset"]:focus:not(:focus-visible) {
|
|
5734
|
+
outline: none;
|
|
5735
|
+
}
|
|
5736
|
+
}
|
|
5737
|
+
|
|
5738
|
+
/* src/react/ui/AnalyticsCharts.css */
|
|
5739
|
+
@layer atbl.components {
|
|
5740
|
+
.altertable-funnel-chart, .altertable-retention-chart, .altertable-journey-chart {
|
|
5741
|
+
font-size: var(--atbl-type-meta-size);
|
|
5742
|
+
font-variant-numeric: tabular-nums;
|
|
5743
|
+
min-width: 0;
|
|
5744
|
+
}
|
|
5745
|
+
|
|
5746
|
+
.altertable-funnel-summary {
|
|
5747
|
+
display: flex;
|
|
5748
|
+
flex-wrap: wrap;
|
|
5749
|
+
gap: 12px 24px;
|
|
5750
|
+
}
|
|
5751
|
+
|
|
5752
|
+
.altertable-funnel-summary > div {
|
|
5753
|
+
display: grid;
|
|
5754
|
+
overflow-wrap: anywhere;
|
|
5755
|
+
gap: 4px;
|
|
5756
|
+
min-width: 0;
|
|
5757
|
+
}
|
|
5758
|
+
|
|
5759
|
+
.altertable-funnel-summary span {
|
|
5760
|
+
color: var(--atbl-muted);
|
|
5761
|
+
}
|
|
5762
|
+
|
|
5763
|
+
.altertable-funnel-summary .altertable-chart-legend-marker {
|
|
5764
|
+
margin-right: 6px;
|
|
5765
|
+
}
|
|
5766
|
+
|
|
5767
|
+
.altertable-funnel-summary strong {
|
|
5768
|
+
font-size: var(--atbl-type-section-size);
|
|
5769
|
+
font-weight: var(--atbl-type-emphasis-weight);
|
|
5770
|
+
}
|
|
5771
|
+
|
|
5772
|
+
.altertable-funnel-scroll, .altertable-journey-scroll {
|
|
5773
|
+
overflow: auto;
|
|
5774
|
+
width: 100%;
|
|
5775
|
+
}
|
|
5776
|
+
|
|
5777
|
+
.altertable-journey-scroll {
|
|
5778
|
+
max-height: 900px;
|
|
5779
|
+
}
|
|
5780
|
+
|
|
5781
|
+
.altertable-analytics-note {
|
|
5782
|
+
color: var(--atbl-muted);
|
|
5783
|
+
overflow-wrap: anywhere;
|
|
5784
|
+
margin: 8px 0;
|
|
5785
|
+
}
|
|
5786
|
+
|
|
5787
|
+
.altertable-journey-plot {
|
|
5788
|
+
position: relative;
|
|
5789
|
+
}
|
|
5790
|
+
|
|
5791
|
+
.altertable-journey-plot > svg {
|
|
5792
|
+
position: absolute;
|
|
5793
|
+
inset: 0;
|
|
5794
|
+
}
|
|
5795
|
+
|
|
5796
|
+
.altertable-journey-stage {
|
|
5797
|
+
position: absolute;
|
|
5798
|
+
color: var(--atbl-muted);
|
|
5799
|
+
top: 0;
|
|
5800
|
+
}
|
|
5801
|
+
|
|
5802
|
+
.altertable-journey-node {
|
|
5803
|
+
position: absolute;
|
|
5804
|
+
}
|
|
5805
|
+
|
|
5806
|
+
.altertable-journey-bar {
|
|
5807
|
+
position: absolute;
|
|
5808
|
+
top: 0;
|
|
5809
|
+
bottom: 0;
|
|
5810
|
+
background: var(--atbl-muted);
|
|
5811
|
+
left: 0;
|
|
5812
|
+
}
|
|
5813
|
+
|
|
5814
|
+
.altertable-journey-bar[data-event] {
|
|
5815
|
+
background: var(--atbl-chart-5);
|
|
5816
|
+
}
|
|
5817
|
+
|
|
5818
|
+
.altertable-journey-label {
|
|
5819
|
+
position: absolute;
|
|
5820
|
+
display: flex;
|
|
5821
|
+
box-sizing: border-box;
|
|
5822
|
+
border: 1px solid var(--atbl-border);
|
|
5823
|
+
border-radius: var(--atbl-radius-surface);
|
|
5824
|
+
background: var(--atbl-surface);
|
|
5825
|
+
color: var(--atbl-muted);
|
|
5826
|
+
overflow-wrap: anywhere;
|
|
5827
|
+
flex-direction: column;
|
|
5828
|
+
justify-content: center;
|
|
5829
|
+
gap: 2px;
|
|
5830
|
+
width: 100%;
|
|
5831
|
+
min-height: 64px;
|
|
5832
|
+
margin-bottom: 8px;
|
|
5833
|
+
padding: 8px 36px 8px 8px;
|
|
5834
|
+
bottom: 100%;
|
|
5835
|
+
}
|
|
5836
|
+
|
|
5837
|
+
.altertable-journey-name {
|
|
5838
|
+
display: -webkit-box;
|
|
5839
|
+
-webkit-line-clamp: 2;
|
|
5840
|
+
overflow: hidden;
|
|
5841
|
+
color: var(--atbl-text);
|
|
5842
|
+
font-weight: var(--atbl-type-label-weight);
|
|
5843
|
+
-webkit-box-orient: vertical;
|
|
5844
|
+
}
|
|
5845
|
+
|
|
5846
|
+
.altertable-journey-expand {
|
|
5847
|
+
position: absolute;
|
|
5848
|
+
margin-bottom: 12px;
|
|
5849
|
+
bottom: 100%;
|
|
5850
|
+
right: 4px;
|
|
5851
|
+
}
|
|
5852
|
+
|
|
5853
|
+
.altertable-journey-more {
|
|
5854
|
+
position: absolute;
|
|
5855
|
+
margin-top: 8px;
|
|
5856
|
+
top: 100%;
|
|
5857
|
+
left: 0;
|
|
5858
|
+
}
|
|
5859
|
+
|
|
5860
|
+
.altertable-funnel-tooltip-detail {
|
|
5861
|
+
display: block;
|
|
5862
|
+
color: var(--atbl-muted);
|
|
5863
|
+
overflow-wrap: anywhere;
|
|
5864
|
+
}
|
|
5704
5865
|
}
|
|
5705
5866
|
|
|
5706
5867
|
/* src/react/annotations/colors.css */
|
|
@@ -12269,6 +12430,15 @@ function DataValue2({
|
|
|
12269
12430
|
});
|
|
12270
12431
|
}
|
|
12271
12432
|
|
|
12433
|
+
// src/react/ui/chartColor.ts
|
|
12434
|
+
function chartColor2(id) {
|
|
12435
|
+
let hash = 2166136261;
|
|
12436
|
+
for (const codePoint of id)
|
|
12437
|
+
hash = Math.imul(hash ^ codePoint.codePointAt(0), 16777619);
|
|
12438
|
+
return `var(--atbl-chart-${(hash >>> 0) % 8 + 1})`;
|
|
12439
|
+
}
|
|
12440
|
+
var chartBarFill = "var(--atbl-chart-fill, color-mix(in srgb, var(--atbl-accent) 75%, var(--atbl-surface)))";
|
|
12441
|
+
|
|
12272
12442
|
// src/react/ui/data-context.ts
|
|
12273
12443
|
function evidenceFor(context, names) {
|
|
12274
12444
|
function validateEvidence(evidence) {
|
|
@@ -14155,6 +14325,6 @@ function DataAppFrame(props) {
|
|
|
14155
14325
|
});
|
|
14156
14326
|
}
|
|
14157
14327
|
|
|
14158
|
-
export { injectStyles, injectDataAppStyles2, useDataApp, AppIcon2, classNames, Button2, PressButton, EmptyState2, shortcuts, Kbd, TooltipSurface, TooltipProvider2, Tooltip2, GradientScroll2, Sheet2, TabList2, TabPanels2, Tab2, TabPanel2, Tabs2, useViewTab2, InspectionContext, useInspectionDefaults, AboutData2, mountDataApp2, DataAppProvider2, useDeclaredResult, PrimaryViewContext, ownedSource, registeredEvidence, datasetTable, exportDatasets, searchVariable2, validateChoiceOptions, choiceVariable2, multiChoiceVariable2, dateRangeVariable2, useAppVariables2, sectionContent, Select2, IconButton2, FilterActions2, NumberField2, NumberRangeField2, NumberFilterPicker2, SearchField2, Skeleton2, SearchMatch2, searchItems2, ChoicePicker2, CheckboxGroupContext, Checkbox2, DateRangePicker2, FilterBar2, DimensionPicker2, createDataHooks2, useDataAppAnnotations2, isPlainKeyEvent2, AnnotationTooltip, MenuTrigger2, MenuSection2, MenuPopover2, Menu2, MenuItem2, MenuSeparator2, LiveControl2, PresentStory2, VariableBar2, DataAppFrame, Grid2, TextContent2, getAnnotationProps, ContentSkeleton, DataWidget2, VisualizationWidget2, comparisonChange, metricComparison, MetricWidget2, HelpPopover2, DateTimeTooltip2, DataTable2, DataTableShare2, DataTableEmptyRow2, DataTableTimestamp2, TableWidget2, TextWidget2, DataValue2, createDataContext2 };
|
|
14328
|
+
export { injectStyles, injectDataAppStyles2, useDataApp, AppIcon2, classNames, Button2, PressButton, EmptyState2, shortcuts, Kbd, TooltipSurface, TooltipProvider2, Tooltip2, GradientScroll2, Sheet2, TabList2, TabPanels2, Tab2, TabPanel2, Tabs2, useViewTab2, InspectionContext, useInspectionDefaults, AboutData2, mountDataApp2, DataAppProvider2, useDeclaredResult, PrimaryViewContext, ownedSource, registeredEvidence, datasetTable, exportDatasets, searchVariable2, validateChoiceOptions, choiceVariable2, multiChoiceVariable2, dateRangeVariable2, useAppVariables2, sectionContent, Select2, IconButton2, FilterActions2, NumberField2, NumberRangeField2, NumberFilterPicker2, SearchField2, Skeleton2, SearchMatch2, searchItems2, ChoicePicker2, CheckboxGroupContext, Checkbox2, DateRangePicker2, FilterBar2, DimensionPicker2, createDataHooks2, useDataAppAnnotations2, isPlainKeyEvent2, AnnotationTooltip, MenuTrigger2, MenuSection2, MenuPopover2, Menu2, MenuItem2, MenuSeparator2, LiveControl2, PresentStory2, VariableBar2, DataAppFrame, Grid2, TextContent2, getAnnotationProps, ContentSkeleton, DataWidget2, VisualizationWidget2, comparisonChange, metricComparison, MetricWidget2, HelpPopover2, DateTimeTooltip2, DataTable2, DataTableShare2, DataTableEmptyRow2, DataTableTimestamp2, TableWidget2, TextWidget2, DataValue2, chartColor2, chartBarFill, createDataContext2 };
|
|
14159
14329
|
|
|
14160
|
-
//# debugId=
|
|
14330
|
+
//# debugId=1CD074317A9B492E64756E2164756E21
|