@altertable/data-app 0.68.0 → 0.69.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/AGENTS.md +6 -0
- package/CONTRIBUTING.md +27 -1
- package/README.md +18 -21
- package/THIRD_PARTY_NOTICES +18 -0
- package/dist/chunks/index-22d576sn.js +153 -0
- package/dist/chunks/index-22d576sn.js.map +11 -0
- package/dist/chunks/{index-ktmvs916.js → index-2sbp9h2b.js} +37 -21
- package/dist/chunks/index-2sbp9h2b.js.map +13 -0
- package/dist/chunks/{index-23dktynd.js → index-ap60vggk.js} +4 -4
- package/dist/chunks/{index-m6n8ctfc.js → index-cv36cyna.js} +4 -4
- package/dist/chunks/index-cv36cyna.js.map +10 -0
- package/dist/chunks/{index-ag0cgnvq.js → index-k766wwwr.js} +13 -9
- package/dist/chunks/index-k766wwwr.js.map +13 -0
- package/dist/chunks/{index-mt93ff2b.js → index-kwnqycjt.js} +2 -2
- package/dist/chunks/index-kwnqycjt.js.map +10 -0
- package/dist/chunks/index-m0gbxtgp.js +355 -0
- package/dist/chunks/index-m0gbxtgp.js.map +13 -0
- package/dist/chunks/{index-gvers8jw.js → index-qhzdzca2.js} +3709 -2170
- package/dist/chunks/index-qhzdzca2.js.map +118 -0
- package/dist/chunks/{index-x69p7cv7.js → index-r7b1ftwy.js} +3 -3
- package/dist/chunks/index-r7b1ftwy.js.map +10 -0
- package/dist/chunks/{index-ev2b5aaf.js → index-sx488hvs.js} +4 -4
- package/dist/chunks/{index-f5cnbrjz.js → index-wss3gd3h.js} +39 -9
- package/dist/chunks/index-wss3gd3h.js.map +13 -0
- package/dist/chunks/{index-qd5xgx6y.js → index-zcqxfwdq.js} +5 -12
- package/dist/chunks/index-zcqxfwdq.js.map +13 -0
- package/dist/client/index.js +6 -6
- package/dist/core/appearance.js +1 -1
- package/dist/core/config.js +3 -3
- package/dist/core/contract.js +3 -3
- package/dist/core/format.js +10 -2
- package/dist/core/format.js.map +1 -1
- package/dist/embed/index.js +26 -25
- package/dist/embed/index.js.map +4 -4
- package/dist/index.js +3 -3
- package/dist/local.js +166 -144
- package/dist/local.js.map +8 -7
- package/dist/preview.js +1456 -0
- package/dist/preview.js.map +17 -0
- package/dist/react/embed/index.js +1 -1
- package/dist/react/index.js +250 -93
- package/dist/react/index.js.map +10 -10
- package/dist/react/ui/index.js +1168 -1165
- package/dist/react/ui/index.js.map +13 -11
- package/dist/server.js +68 -57
- package/dist/server.js.map +7 -6
- package/dist/types/client/download.d.ts +5 -0
- package/dist/types/client/iframe.d.ts +4 -2
- package/dist/types/client/logger.d.ts +10 -2
- package/dist/types/core/annotations.d.ts +5 -0
- package/dist/types/core/appearance.d.ts +2 -0
- package/dist/types/core/bridge-endpoint.d.ts +2 -2
- package/dist/types/core/bridge.d.ts +22 -0
- package/dist/types/core/config.d.ts +5 -0
- package/dist/types/core/contract.d.ts +3 -1
- package/dist/types/core/date-format.d.ts +24 -0
- package/dist/types/core/dimension.d.ts +2 -1
- package/dist/types/core/filters.d.ts +4 -3
- package/dist/types/core/format.d.ts +5 -3
- package/dist/types/core/messages.d.ts +3 -1
- package/dist/types/core/operation-types.d.ts +7 -7
- package/dist/types/core/time-interval.d.ts +96 -0
- package/dist/types/core/variables.d.ts +13 -4
- package/dist/types/embed/host.d.ts +4 -4
- package/dist/types/react/annotations/annotation-editor-state.d.ts +2 -0
- package/dist/types/react/annotations/annotation-targets.d.ts +1 -0
- package/dist/types/react/annotations/getAnnotationProps.d.ts +5 -3
- package/dist/types/react/annotations/useAnnotationGeometry.d.ts +2 -2
- package/dist/types/react/bindings.d.ts +26 -3
- package/dist/types/react/date-formatting.d.ts +12 -0
- package/dist/types/react/hooks.d.ts +10 -9
- package/dist/types/react/index.d.ts +7 -2
- package/dist/types/react/search-suggestions.d.ts +8 -0
- package/dist/types/react/style-contract.d.ts +1 -5
- package/dist/types/react/ui/ChartLegend.d.ts +3 -2
- package/dist/types/react/ui/ChoicePicker.d.ts +2 -0
- package/dist/types/react/ui/DataApp.d.ts +5 -4
- package/dist/types/react/ui/DataAppFrame.d.ts +14 -3
- package/dist/types/react/ui/DataTable.d.ts +6 -4
- package/dist/types/react/ui/DataWidget.d.ts +4 -0
- package/dist/types/react/ui/DateDisplay.d.ts +9 -0
- package/dist/types/react/ui/DateRangePicker.d.ts +3 -1
- package/dist/types/react/ui/DateTimeTooltip.d.ts +3 -2
- package/dist/types/react/ui/DimensionPicker.d.ts +3 -1
- package/dist/types/react/ui/EmptyState.d.ts +1 -1
- package/dist/types/react/ui/GradientScroll.d.ts +8 -0
- package/dist/types/react/ui/Grid.d.ts +1 -1
- package/dist/types/react/ui/MetricWidget.d.ts +2 -0
- package/dist/types/react/ui/NumberFilterPicker.d.ts +3 -1
- package/dist/types/react/ui/PeriodSummary.d.ts +2 -1
- package/dist/types/react/ui/PickerField.d.ts +15 -0
- package/dist/types/react/ui/PopoverSurface.d.ts +5 -0
- package/dist/types/react/ui/RequestHint.d.ts +2 -2
- package/dist/types/react/ui/SearchField.d.ts +3 -1
- package/dist/types/react/ui/SearchTypeahead.d.ts +15 -0
- package/dist/types/react/ui/SectionHeading.d.ts +8 -0
- package/dist/types/react/ui/Select.d.ts +5 -1
- package/dist/types/react/ui/Sheet.d.ts +3 -1
- package/dist/types/react/ui/TableWidget.d.ts +8 -0
- package/dist/types/react/ui/Tabs.d.ts +4 -3
- package/dist/types/react/ui/VariableBar.d.ts +1 -1
- package/dist/types/react/ui/VisualizationWidget.d.ts +1 -1
- package/dist/types/react/ui/chart-date-axis.d.ts +15 -0
- package/dist/types/react/ui/chart-interaction.d.ts +21 -0
- package/dist/types/react/ui/chart-primitives.d.ts +4 -4
- package/dist/types/react/ui/chart-time.d.ts +16 -0
- package/dist/types/react/ui/chartColor.d.ts +1 -1
- package/dist/types/react/ui/icons.d.ts +3 -1
- package/dist/types/react/ui/index.d.ts +8 -4
- package/dist/types/react/ui/metric-comparison.d.ts +2 -2
- package/dist/types/react/ui/metric.d.ts +2 -2
- package/dist/types/react/ui/presentation.d.ts +2 -0
- package/dist/types/react/ui/searchItems.d.ts +2 -0
- package/dist/types/react/ui/variables.d.ts +1 -1
- package/dist/types/react/view-control-bar.d.ts +16 -0
- package/dist/types/react/view-controls.d.ts +3 -2
- package/dist/types/react/view-runtime.d.ts +3 -1
- package/dist/types/react/view.d.ts +14 -2
- package/dist/types/server/local.d.ts +3 -1
- package/dist/types/server/preview/host.d.ts +1 -0
- package/dist/types/server/preview/index.d.ts +16 -0
- package/dist/types/server/reload-channel.d.ts +6 -0
- package/dist/types/server/request-body.d.ts +4 -0
- package/dist/worker.js +1 -1
- package/docs/app-authoring.md +17 -9
- package/docs/client.md +1 -1
- package/docs/contract.md +8 -9
- package/docs/embed.md +11 -3
- package/docs/formatting-and-appearance.md +36 -5
- package/docs/layout.md +31 -8
- package/docs/react-embed.md +4 -4
- package/docs/react.md +1 -1
- package/docs/server-bun.md +25 -0
- package/docs/server.md +1 -1
- package/docs/styling.md +7 -28
- package/docs/ui.md +21 -18
- package/docs/variables.md +92 -15
- package/docs/views.md +13 -36
- package/docs/widgets.md +38 -26
- package/examples/starter-data-app/index.tsx +0 -1
- package/examples/starter-local-data-app/.bun-version +1 -0
- package/examples/starter-local-data-app/.node-version +1 -0
- package/examples/starter-local-data-app/.oxfmtrc.json +4 -0
- package/examples/starter-local-data-app/.oxlintrc.json +33 -0
- package/examples/starter-local-data-app/AGENTS.md +22 -0
- package/examples/starter-local-data-app/README.md +54 -0
- package/examples/starter-local-data-app/app.ts +22 -0
- package/examples/starter-local-data-app/bunfig.toml +2 -0
- package/examples/starter-local-data-app/package.json +33 -0
- package/examples/starter-local-data-app/src/App.tsx +8 -0
- package/examples/starter-local-data-app/src/assets.d.ts +1 -0
- package/examples/starter-local-data-app/src/data-context.ts +21 -0
- package/examples/starter-local-data-app/src/favicon.svg +13 -0
- package/examples/starter-local-data-app/src/index.html +14 -0
- package/examples/starter-local-data-app/src/main.tsx +7 -0
- package/examples/starter-local-data-app/src/operations.ts +6 -0
- package/examples/starter-local-data-app/src/server.ts +6 -0
- package/examples/starter-local-data-app/tsconfig.json +15 -0
- package/package.json +13 -3
- package/dist/chunks/index-ag0cgnvq.js.map +0 -13
- package/dist/chunks/index-dq7b35fn.js +0 -307
- package/dist/chunks/index-dq7b35fn.js.map +0 -13
- package/dist/chunks/index-f5cnbrjz.js.map +0 -13
- package/dist/chunks/index-gvers8jw.js.map +0 -109
- package/dist/chunks/index-ktmvs916.js.map +0 -13
- package/dist/chunks/index-m6n8ctfc.js.map +0 -10
- package/dist/chunks/index-mev09s5v.js +0 -77
- package/dist/chunks/index-mev09s5v.js.map +0 -10
- package/dist/chunks/index-mt93ff2b.js.map +0 -10
- package/dist/chunks/index-qd5xgx6y.js.map +0 -13
- package/dist/chunks/index-x69p7cv7.js.map +0 -10
- package/dist/types/react/shellStyles.d.ts +0 -3
- package/dist/types/react/ui/DataAppSkeleton.d.ts +0 -7
- /package/dist/chunks/{index-23dktynd.js.map → index-ap60vggk.js.map} +0 -0
- /package/dist/chunks/{index-ev2b5aaf.js.map → index-sx488hvs.js.map} +0 -0
package/dist/react/index.js
CHANGED
|
@@ -2,6 +2,8 @@ import {
|
|
|
2
2
|
injectStyles,
|
|
3
3
|
injectDataAppStyles2,
|
|
4
4
|
useDataApp,
|
|
5
|
+
DateFormattingContext,
|
|
6
|
+
useDateFormatting2,
|
|
5
7
|
AppIcon2,
|
|
6
8
|
classNames,
|
|
7
9
|
Button2,
|
|
@@ -17,6 +19,8 @@ import {
|
|
|
17
19
|
useDeclaredResult,
|
|
18
20
|
PrimaryViewContext,
|
|
19
21
|
ownedSource,
|
|
22
|
+
DateTimeTooltip2,
|
|
23
|
+
DateDisplay2,
|
|
20
24
|
registeredEvidence,
|
|
21
25
|
datasetTable,
|
|
22
26
|
exportDatasets,
|
|
@@ -25,77 +29,113 @@ import {
|
|
|
25
29
|
multiChoiceVariable2,
|
|
26
30
|
dateRangeVariable2,
|
|
27
31
|
sectionContent,
|
|
28
|
-
|
|
32
|
+
SearchSuggestionsContext,
|
|
29
33
|
Skeleton2,
|
|
30
34
|
createDataHooks2,
|
|
31
35
|
useDataAppAnnotations2,
|
|
32
36
|
AnnotationTooltip,
|
|
33
|
-
|
|
34
|
-
Grid2,
|
|
37
|
+
IconButton2,
|
|
35
38
|
TextContent2,
|
|
39
|
+
Stack2,
|
|
40
|
+
DataAppFrame,
|
|
36
41
|
getAnnotationProps,
|
|
37
42
|
ContentSkeleton,
|
|
38
43
|
VisualizationWidget2,
|
|
39
44
|
comparisonChange,
|
|
40
45
|
metricComparison,
|
|
41
46
|
MetricWidget2,
|
|
42
|
-
DateTimeTooltip2,
|
|
43
47
|
TableWidget2,
|
|
44
48
|
TextWidget2,
|
|
45
49
|
DataValue2,
|
|
46
50
|
chartColor2,
|
|
47
|
-
createDataContext2
|
|
48
|
-
|
|
51
|
+
createDataContext2,
|
|
52
|
+
SectionHeading2
|
|
53
|
+
} from "../chunks/index-qhzdzca2.js";
|
|
49
54
|
import {
|
|
55
|
+
parseDateTime2,
|
|
56
|
+
formatDateTime2,
|
|
50
57
|
formatDateRange2,
|
|
51
58
|
formatMetric2,
|
|
52
59
|
formatCount2,
|
|
53
60
|
formatPercent2
|
|
54
|
-
} from "../chunks/index-
|
|
61
|
+
} from "../chunks/index-22d576sn.js";
|
|
55
62
|
import {
|
|
56
63
|
parseDataAppAnnotationDraft2
|
|
57
|
-
} from "../chunks/index-
|
|
58
|
-
import"../chunks/index-
|
|
59
|
-
import"../chunks/index-
|
|
60
|
-
import"../chunks/index-
|
|
64
|
+
} from "../chunks/index-k766wwwr.js";
|
|
65
|
+
import"../chunks/index-kwnqycjt.js";
|
|
66
|
+
import"../chunks/index-cv36cyna.js";
|
|
67
|
+
import"../chunks/index-sx488hvs.js";
|
|
61
68
|
import {
|
|
62
69
|
DataAppError2
|
|
63
|
-
} from "../chunks/index-
|
|
70
|
+
} from "../chunks/index-2sbp9h2b.js";
|
|
64
71
|
import {
|
|
65
72
|
invariant
|
|
66
|
-
} from "../chunks/index-
|
|
73
|
+
} from "../chunks/index-zcqxfwdq.js";
|
|
67
74
|
// src/react/ui/DataApp.tsx
|
|
68
75
|
import { jsx } from "react/jsx-runtime";
|
|
69
76
|
function DataApp(props) {
|
|
70
|
-
const {
|
|
77
|
+
const {
|
|
78
|
+
view,
|
|
79
|
+
datasets,
|
|
80
|
+
story,
|
|
81
|
+
showSearchSuggestions = true,
|
|
82
|
+
...frame
|
|
83
|
+
} = props;
|
|
71
84
|
const app = useDataApp();
|
|
72
85
|
const result = useDeclaredResult(view);
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
...
|
|
81
|
-
|
|
82
|
-
}))
|
|
83
|
-
|
|
86
|
+
const source = ownedSource(view, result.snapshot ?? { loading: true });
|
|
87
|
+
const suggestionGroups = showSearchSuggestions && frame.showSearch !== false && result.searchControls ? datasets.flatMap((dataset, index) => {
|
|
88
|
+
const reading = dataset.readSearchSuggestions(source);
|
|
89
|
+
if (!reading)
|
|
90
|
+
return [];
|
|
91
|
+
return [
|
|
92
|
+
reading.loading ? [] : reading.value.map((item) => ({
|
|
93
|
+
...item,
|
|
94
|
+
id: `${index}:${item.id}`
|
|
95
|
+
}))
|
|
96
|
+
];
|
|
97
|
+
}) : [];
|
|
98
|
+
return /* @__PURE__ */ jsx(DateFormattingContext, {
|
|
99
|
+
value: { timeZone: result.timeZone },
|
|
100
|
+
children: /* @__PURE__ */ jsx(SearchSuggestionsContext, {
|
|
101
|
+
value: suggestionGroups.length ? {
|
|
102
|
+
groups: suggestionGroups,
|
|
103
|
+
busy: result.refreshing
|
|
104
|
+
} : null,
|
|
105
|
+
children: /* @__PURE__ */ jsx(PrimaryViewContext, {
|
|
106
|
+
value: { declaration: view, result },
|
|
107
|
+
children: /* @__PURE__ */ jsx(DataAppFrame, {
|
|
108
|
+
...frame,
|
|
109
|
+
request: result,
|
|
110
|
+
dataContext: result.dataContext,
|
|
111
|
+
story: (snapshot) => story(ownedSource(view, snapshot)).map((finding) => ({
|
|
112
|
+
...finding,
|
|
113
|
+
evidence: registeredEvidence(finding.evidence, view)
|
|
114
|
+
})),
|
|
115
|
+
csvExport: (snapshot) => exportDatasets(datasets, ownedSource(view, snapshot), view.scope(snapshot), app.title)
|
|
116
|
+
})
|
|
117
|
+
})
|
|
84
118
|
})
|
|
85
119
|
});
|
|
86
120
|
}
|
|
87
|
-
// src/react/ui/
|
|
121
|
+
// src/react/ui/Grid.tsx
|
|
88
122
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
89
|
-
function
|
|
123
|
+
function Grid({
|
|
90
124
|
children,
|
|
125
|
+
columns = 1,
|
|
126
|
+
minItemWidth = "regular",
|
|
91
127
|
gap = "lg",
|
|
128
|
+
align = "start",
|
|
92
129
|
className,
|
|
93
130
|
...props
|
|
94
131
|
}) {
|
|
95
132
|
return /* @__PURE__ */ jsx2("div", {
|
|
96
133
|
...props,
|
|
97
|
-
className: classNames("altertable-
|
|
134
|
+
className: classNames("altertable-grid", className),
|
|
135
|
+
"data-columns": columns,
|
|
136
|
+
"data-min-item-width": minItemWidth,
|
|
98
137
|
"data-gap": gap,
|
|
138
|
+
"data-align": align,
|
|
99
139
|
children
|
|
100
140
|
});
|
|
101
141
|
}
|
|
@@ -346,12 +386,13 @@ function Ranking({
|
|
|
346
386
|
// src/react/ui/Comparison.tsx
|
|
347
387
|
import { jsx as jsx7, jsxs as jsxs3, Fragment } from "react/jsx-runtime";
|
|
348
388
|
function Comparison(props) {
|
|
389
|
+
const dateFormatting = useDateFormatting2();
|
|
349
390
|
if ("metric" in props) {
|
|
350
391
|
if (props.reading.loading)
|
|
351
392
|
return /* @__PURE__ */ jsx7(ContentSkeleton, {
|
|
352
393
|
variant: "panel"
|
|
353
394
|
});
|
|
354
|
-
const comparison = metricComparison(props.metric, props.reading);
|
|
395
|
+
const comparison = metricComparison(props.metric, props.reading, dateFormatting);
|
|
355
396
|
if (!comparison)
|
|
356
397
|
return null;
|
|
357
398
|
return /* @__PURE__ */ jsx7(ComparisonContent, {
|
|
@@ -573,8 +614,8 @@ function errorPresentation(cause) {
|
|
|
573
614
|
};
|
|
574
615
|
case "source_query_rejected":
|
|
575
616
|
return {
|
|
576
|
-
title: "
|
|
577
|
-
description: "Ask the app owner to
|
|
617
|
+
title: "Couldn’t load results",
|
|
618
|
+
description: "This data app’s query was rejected. Ask the app owner to fix it.",
|
|
578
619
|
retryable: false
|
|
579
620
|
};
|
|
580
621
|
case "source_rate_limited":
|
|
@@ -682,13 +723,16 @@ function IndependentSection({
|
|
|
682
723
|
result,
|
|
683
724
|
notice: "inline"
|
|
684
725
|
});
|
|
685
|
-
return /* @__PURE__ */ jsx11(
|
|
686
|
-
value: {
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
726
|
+
return /* @__PURE__ */ jsx11(DateFormattingContext, {
|
|
727
|
+
value: { timeZone: result.timeZone },
|
|
728
|
+
children: /* @__PURE__ */ jsx11(InspectionContext, {
|
|
729
|
+
value: {
|
|
730
|
+
...defaults,
|
|
731
|
+
dataContext: result.dataContext,
|
|
732
|
+
queries: result.queries
|
|
733
|
+
},
|
|
734
|
+
children: section
|
|
735
|
+
})
|
|
692
736
|
});
|
|
693
737
|
}
|
|
694
738
|
// src/react/ui/UpdatedAt.tsx
|
|
@@ -702,13 +746,16 @@ function UpdatedAt({
|
|
|
702
746
|
triggerProps,
|
|
703
747
|
...props
|
|
704
748
|
}) {
|
|
749
|
+
const defaults = useDateFormatting2({ locale, timeZone: props.timeZone });
|
|
705
750
|
const [now, setNow] = useState(Date.now);
|
|
706
751
|
useEffect(() => {
|
|
707
752
|
const interval = window.setInterval(() => setNow(Date.now()), 30000);
|
|
708
753
|
return () => window.clearInterval(interval);
|
|
709
754
|
}, []);
|
|
710
755
|
const elapsedMinutes = Math.floor(Math.max(0, now - timestamp) / 60000);
|
|
711
|
-
const relative = new Intl.RelativeTimeFormat(locale, {
|
|
756
|
+
const relative = new Intl.RelativeTimeFormat(defaults.locale, {
|
|
757
|
+
numeric: "auto"
|
|
758
|
+
});
|
|
712
759
|
let age = "just now";
|
|
713
760
|
if (elapsedMinutes >= 1440)
|
|
714
761
|
age = relative.format(-Math.floor(elapsedMinutes / 1440), "day");
|
|
@@ -716,9 +763,14 @@ function UpdatedAt({
|
|
|
716
763
|
age = relative.format(-Math.floor(elapsedMinutes / 60), "hour");
|
|
717
764
|
else if (elapsedMinutes >= 1)
|
|
718
765
|
age = relative.format(-elapsedMinutes, "minute");
|
|
719
|
-
const date =
|
|
766
|
+
const date = parseDateTime2(timestamp);
|
|
767
|
+
if (!date)
|
|
768
|
+
return /* @__PURE__ */ jsx12("span", {
|
|
769
|
+
children: children ?? `${label} —`
|
|
770
|
+
});
|
|
720
771
|
return /* @__PURE__ */ jsx12(DateTimeTooltip2, {
|
|
721
772
|
...props,
|
|
773
|
+
...defaults,
|
|
722
774
|
date,
|
|
723
775
|
triggerProps: {
|
|
724
776
|
...triggerProps,
|
|
@@ -739,41 +791,42 @@ import { jsx as jsx13, jsxs as jsxs7, Fragment as Fragment2 } from "react/jsx-ru
|
|
|
739
791
|
function duration(period) {
|
|
740
792
|
return `${period.amount} ${period.unit}${period.amount === 1 ? "" : "s"}`;
|
|
741
793
|
}
|
|
742
|
-
function label(period) {
|
|
794
|
+
function label(period, options = {}) {
|
|
743
795
|
if (period.kind === "rolling")
|
|
744
796
|
return `Last ${duration(period)}`;
|
|
745
|
-
return formatDateRange2(period);
|
|
797
|
+
return formatDateRange2(period, options);
|
|
746
798
|
}
|
|
747
|
-
function comparisonLabel(period, comparison) {
|
|
799
|
+
function comparisonLabel(period, comparison, options) {
|
|
748
800
|
if (comparison.kind === "period") {
|
|
749
801
|
if (comparison.period.kind === "calendar")
|
|
750
|
-
return label(comparison.period);
|
|
751
|
-
return `${duration(comparison.period)} ending ${
|
|
802
|
+
return label(comparison.period, options);
|
|
803
|
+
return `${duration(comparison.period)} ending ${formatDateTime2(comparison.period.end, options)}`;
|
|
752
804
|
}
|
|
753
805
|
return period.kind === "rolling" ? `Previous ${duration(period)}` : "Previous period";
|
|
754
806
|
}
|
|
755
|
-
function reportingPeriodText(period) {
|
|
807
|
+
function reportingPeriodText(period, options = {}) {
|
|
756
808
|
if (period.kind === "calendar")
|
|
757
|
-
return `${label(period)} in ${period.timeZone}`;
|
|
758
|
-
const end =
|
|
759
|
-
if (
|
|
760
|
-
return label(period);
|
|
809
|
+
return `${label(period, options)} in ${period.timeZone}`;
|
|
810
|
+
const end = parseDateTime2(period.end);
|
|
811
|
+
if (!end)
|
|
812
|
+
return label(period, options);
|
|
761
813
|
const start = new Date(end.getTime() - period.amount * (period.unit === "hour" ? 3600000 : 86400000));
|
|
762
|
-
return `${label(period)}, ${start
|
|
814
|
+
return `${label(period, options)}, ${formatDateTime2(start, options)} to ${formatDateTime2(end, options)} in ${options.timeZone ?? "UTC"}`;
|
|
763
815
|
}
|
|
764
816
|
function PeriodSummary({
|
|
765
817
|
period,
|
|
766
818
|
comparison,
|
|
767
819
|
className
|
|
768
820
|
}) {
|
|
769
|
-
const
|
|
770
|
-
const
|
|
821
|
+
const options = useDateFormatting2();
|
|
822
|
+
const comparisonText = comparison ? comparisonLabel(period, comparison, options) : null;
|
|
823
|
+
const comparisonDetail = comparison?.kind === "period" ? reportingPeriodText(comparison.period, options) : comparisonText;
|
|
771
824
|
return /* @__PURE__ */ jsxs7("p", {
|
|
772
825
|
className: classNames("altertable-period-summary", className),
|
|
773
826
|
children: [
|
|
774
827
|
/* @__PURE__ */ jsx13("span", {
|
|
775
828
|
className: "altertable-sr-only",
|
|
776
|
-
children: `Reporting period: ${reportingPeriodText(period)}${comparisonDetail ? `, compared with ${comparisonDetail}` : ""}`
|
|
829
|
+
children: `Reporting period: ${reportingPeriodText(period, options)}${comparisonDetail ? `, compared with ${comparisonDetail}` : ""}`
|
|
777
830
|
}),
|
|
778
831
|
/* @__PURE__ */ jsxs7("span", {
|
|
779
832
|
"aria-hidden": "true",
|
|
@@ -785,7 +838,7 @@ function PeriodSummary({
|
|
|
785
838
|
}),
|
|
786
839
|
/* @__PURE__ */ jsx13("span", {
|
|
787
840
|
className: "altertable-period-summary-current",
|
|
788
|
-
children: label(period)
|
|
841
|
+
children: label(period, options)
|
|
789
842
|
}),
|
|
790
843
|
comparisonText && /* @__PURE__ */ jsxs7(Fragment2, {
|
|
791
844
|
children: [
|
|
@@ -1397,7 +1450,6 @@ function injectDataAppAnnotationStyles(options = {}) {
|
|
|
1397
1450
|
css: `/* src/react/tokens.css */
|
|
1398
1451
|
@layer atbl.tokens {
|
|
1399
1452
|
:root {
|
|
1400
|
-
--atbl-control-text-size: var(--atbl-type-body-size);
|
|
1401
1453
|
--atbl-background: var(--atbl-palette-background);
|
|
1402
1454
|
--atbl-surface: var(--atbl-palette-surface);
|
|
1403
1455
|
--atbl-subtle: var(--atbl-palette-subtle);
|
|
@@ -1405,10 +1457,10 @@ function injectDataAppAnnotationStyles(options = {}) {
|
|
|
1405
1457
|
--atbl-text: var(--atbl-palette-text);
|
|
1406
1458
|
--atbl-muted: var(--atbl-palette-muted);
|
|
1407
1459
|
--atbl-border: var(--atbl-palette-border);
|
|
1408
|
-
--atbl-accent: var(--atbl-
|
|
1409
|
-
--atbl-on-accent: var(--atbl-
|
|
1410
|
-
--atbl-
|
|
1411
|
-
--atbl-danger
|
|
1460
|
+
--atbl-accent: var(--atbl-palette-accent);
|
|
1461
|
+
--atbl-on-accent: var(--atbl-palette-on-accent);
|
|
1462
|
+
--atbl-positive: var(--atbl-palette-positive);
|
|
1463
|
+
--atbl-danger: var(--atbl-palette-danger);
|
|
1412
1464
|
--atbl-code-surface: #f4f6f9;
|
|
1413
1465
|
--atbl-code-text: #273242;
|
|
1414
1466
|
--atbl-mono-font: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
@@ -1420,7 +1472,7 @@ function injectDataAppAnnotationStyles(options = {}) {
|
|
|
1420
1472
|
--atbl-space-md: 16px;
|
|
1421
1473
|
--atbl-space-lg: 24px;
|
|
1422
1474
|
--atbl-space-xl: 32px;
|
|
1423
|
-
--atbl-content-width:
|
|
1475
|
+
--atbl-content-width: 1920px;
|
|
1424
1476
|
--atbl-control-height: 2.375rem;
|
|
1425
1477
|
--atbl-control-compact-height: 1.875rem;
|
|
1426
1478
|
--atbl-control-icon-size: 1rem;
|
|
@@ -1455,7 +1507,7 @@ function injectDataAppAnnotationStyles(options = {}) {
|
|
|
1455
1507
|
--atbl-type-meta-weight: 500;
|
|
1456
1508
|
--atbl-type-page-size: clamp(1.375rem, 2.4vw, 1.75rem);
|
|
1457
1509
|
--atbl-type-section-size: 1.25rem;
|
|
1458
|
-
--atbl-type-widget-size:
|
|
1510
|
+
--atbl-type-widget-size: var(--atbl-type-label-size);
|
|
1459
1511
|
--atbl-type-body-size: .875rem;
|
|
1460
1512
|
--atbl-type-label-size: .8125rem;
|
|
1461
1513
|
--atbl-type-meta-size: .75rem;
|
|
@@ -1479,6 +1531,10 @@ function injectDataAppAnnotationStyles(options = {}) {
|
|
|
1479
1531
|
--atbl-palette-text: #202124;
|
|
1480
1532
|
--atbl-palette-muted: #687078;
|
|
1481
1533
|
--atbl-palette-border: #e3e6e8;
|
|
1534
|
+
--atbl-palette-accent: var(--atbl-input-accent, var(--atbl-text));
|
|
1535
|
+
--atbl-palette-on-accent: var(--atbl-input-on-accent, #fff);
|
|
1536
|
+
--atbl-palette-positive: #147862;
|
|
1537
|
+
--atbl-palette-danger: #b42318;
|
|
1482
1538
|
--atbl-chart-strength: 100%;
|
|
1483
1539
|
--atbl-accent-subtle-strength: 12%;
|
|
1484
1540
|
}
|
|
@@ -1529,10 +1585,11 @@ function injectDataAppAnnotationStyles(options = {}) {
|
|
|
1529
1585
|
}
|
|
1530
1586
|
|
|
1531
1587
|
:root[data-atbl-theme="dark"] {
|
|
1532
|
-
--atbl-accent: var(--atbl-input-dark-accent,
|
|
1588
|
+
--atbl-palette-accent: var(--atbl-input-dark-accent, var(--atbl-text));
|
|
1533
1589
|
--atbl-accent-subtle-strength: 22%;
|
|
1534
|
-
--atbl-on-accent: var(--atbl-input-on-accent, var(--atbl-background));
|
|
1535
|
-
--atbl-
|
|
1590
|
+
--atbl-palette-on-accent: var(--atbl-input-on-accent, var(--atbl-background));
|
|
1591
|
+
--atbl-palette-positive: #6bc39a;
|
|
1592
|
+
--atbl-palette-danger: #f97066;
|
|
1536
1593
|
--atbl-backdrop: #0000008c;
|
|
1537
1594
|
--atbl-code-surface: #242a31;
|
|
1538
1595
|
--atbl-code-text: #e5e9ef;
|
|
@@ -1541,6 +1598,8 @@ function injectDataAppAnnotationStyles(options = {}) {
|
|
|
1541
1598
|
|
|
1542
1599
|
:root[data-atbl-density="compact"] {
|
|
1543
1600
|
--atbl-control-height: 2.125rem;
|
|
1601
|
+
--atbl-control-compact-height: 1.625rem;
|
|
1602
|
+
--atbl-control-gap: .375rem;
|
|
1544
1603
|
--atbl-control-padding-inline: .625rem;
|
|
1545
1604
|
--atbl-control-padding-block: .25rem;
|
|
1546
1605
|
--atbl-space-xs: 4px;
|
|
@@ -1552,6 +1611,8 @@ function injectDataAppAnnotationStyles(options = {}) {
|
|
|
1552
1611
|
|
|
1553
1612
|
:root[data-atbl-density="spacious"] {
|
|
1554
1613
|
--atbl-control-height: 2.625rem;
|
|
1614
|
+
--atbl-control-compact-height: 2.125rem;
|
|
1615
|
+
--atbl-control-gap: .625rem;
|
|
1555
1616
|
--atbl-control-padding-inline: 1rem;
|
|
1556
1617
|
--atbl-control-padding-block: .5rem;
|
|
1557
1618
|
--atbl-space-xs: 6px;
|
|
@@ -1588,6 +1649,7 @@ function injectDataAppAnnotationStyles(options = {}) {
|
|
|
1588
1649
|
:root[data-atbl-elevation="raised"] {
|
|
1589
1650
|
--atbl-shadow-surface: 0 8px 28px #141c281a;
|
|
1590
1651
|
--atbl-shadow-overlay: 0 24px 72px #0000003d;
|
|
1652
|
+
--atbl-shadow-control: 0 2px 6px #00000029;
|
|
1591
1653
|
}
|
|
1592
1654
|
|
|
1593
1655
|
@media (forced-colors: active) {
|
|
@@ -1748,8 +1810,8 @@ function injectDataAppAnnotationStyles(options = {}) {
|
|
|
1748
1810
|
|
|
1749
1811
|
.altertable-button[data-size="compact"] {
|
|
1750
1812
|
min-height: var(--atbl-control-compact-height);
|
|
1813
|
+
padding: calc(var(--atbl-control-padding-block) * 2 / 3) calc(var(--atbl-control-padding-inline) * 2 / 3);
|
|
1751
1814
|
font-size: var(--atbl-type-meta-size);
|
|
1752
|
-
padding: .25rem .5rem;
|
|
1753
1815
|
}
|
|
1754
1816
|
|
|
1755
1817
|
.altertable-button[data-size="icon-compact"] {
|
|
@@ -1858,6 +1920,12 @@ function injectDataAppAnnotationStyles(options = {}) {
|
|
|
1858
1920
|
min-width: 1.6em;
|
|
1859
1921
|
padding: 2px 5px;
|
|
1860
1922
|
}
|
|
1923
|
+
|
|
1924
|
+
.altertable-button[data-variant="primary"] .altertable-kbd {
|
|
1925
|
+
color: inherit;
|
|
1926
|
+
border-color: color-mix(in srgb, currentColor 30%, transparent);
|
|
1927
|
+
background: none;
|
|
1928
|
+
}
|
|
1861
1929
|
}
|
|
1862
1930
|
|
|
1863
1931
|
/* src/react/annotations/AnnotationBar.css */
|
|
@@ -2214,7 +2282,7 @@ function injectDataAppAnnotationStyles(options = {}) {
|
|
|
2214
2282
|
|
|
2215
2283
|
.altertable-sheet {
|
|
2216
2284
|
position: fixed;
|
|
2217
|
-
overflow:
|
|
2285
|
+
overflow: visible;
|
|
2218
2286
|
border: 0;
|
|
2219
2287
|
border-left: 1px solid var(--atbl-border);
|
|
2220
2288
|
background: var(--atbl-surface);
|
|
@@ -2284,20 +2352,20 @@ function injectDataAppAnnotationStyles(options = {}) {
|
|
|
2284
2352
|
|
|
2285
2353
|
.altertable-sheet-header {
|
|
2286
2354
|
display: flex;
|
|
2287
|
-
border-bottom: 1px solid var(--atbl-border);
|
|
2288
2355
|
justify-content: space-between;
|
|
2289
2356
|
align-items: flex-start;
|
|
2290
|
-
gap:
|
|
2291
|
-
padding:
|
|
2357
|
+
gap: var(--atbl-space-md);
|
|
2358
|
+
padding: var(--atbl-space-lg) calc((var(--atbl-space-lg) + var(--atbl-space-xl)) / 2) calc((var(--atbl-space-md) + var(--atbl-space-lg)) / 2);
|
|
2359
|
+
border-bottom: 1px solid var(--atbl-border);
|
|
2292
2360
|
}
|
|
2293
2361
|
|
|
2294
2362
|
.altertable-sheet-header h2 {
|
|
2363
|
+
font-size: var(--atbl-type-section-size);
|
|
2364
|
+
font-weight: var(--atbl-type-heading-weight);
|
|
2365
|
+
line-height: var(--atbl-type-heading-leading);
|
|
2295
2366
|
letter-spacing: -.02em;
|
|
2296
2367
|
overflow-wrap: anywhere;
|
|
2297
2368
|
margin: 0;
|
|
2298
|
-
font-size: 18px;
|
|
2299
|
-
font-weight: 650;
|
|
2300
|
-
line-height: 1.25;
|
|
2301
2369
|
}
|
|
2302
2370
|
|
|
2303
2371
|
.altertable-sheet-header p {
|
|
@@ -2321,13 +2389,36 @@ function injectDataAppAnnotationStyles(options = {}) {
|
|
|
2321
2389
|
.altertable-sheet-body {
|
|
2322
2390
|
overflow-y: auto;
|
|
2323
2391
|
overscroll-behavior: contain;
|
|
2392
|
+
padding: var(--atbl-space-lg) calc((var(--atbl-space-lg) + var(--atbl-space-xl)) / 2) calc(var(--atbl-space-xl) + var(--atbl-space-md) / 2);
|
|
2324
2393
|
min-height: 0;
|
|
2325
|
-
padding: 24px 28px 40px;
|
|
2326
2394
|
}
|
|
2327
2395
|
|
|
2328
2396
|
.altertable-sheet-footer {
|
|
2397
|
+
padding: var(--atbl-space-md) calc((var(--atbl-space-lg) + var(--atbl-space-xl)) / 2);
|
|
2329
2398
|
border-top: 1px solid var(--atbl-border);
|
|
2330
|
-
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
@media (min-width: 601px) {
|
|
2402
|
+
.altertable-sheet:where([data-placement="side"][data-side="left"]) {
|
|
2403
|
+
border-left: 0;
|
|
2404
|
+
border-right: 1px solid var(--atbl-border);
|
|
2405
|
+
inset: 0 auto 0 0;
|
|
2406
|
+
translate: -100%;
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
.altertable-sheet:where([data-placement="side"][data-side="left"])[open] {
|
|
2410
|
+
translate: 0;
|
|
2411
|
+
}
|
|
2412
|
+
|
|
2413
|
+
.altertable-sheet:where([data-placement="side"][data-side="left"])[open][data-closing] {
|
|
2414
|
+
translate: -100%;
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2417
|
+
@starting-style {
|
|
2418
|
+
.altertable-sheet:where([data-placement="side"][data-side="left"])[open] {
|
|
2419
|
+
translate: -100%;
|
|
2420
|
+
}
|
|
2421
|
+
}
|
|
2331
2422
|
}
|
|
2332
2423
|
|
|
2333
2424
|
@media (max-width: 960px) {
|
|
@@ -2593,12 +2684,12 @@ function injectDataAppAnnotationStyles(options = {}) {
|
|
|
2593
2684
|
|
|
2594
2685
|
[data-atbl-control="text"] {
|
|
2595
2686
|
cursor: text;
|
|
2596
|
-
font-size: var(--atbl-control-text-size);
|
|
2687
|
+
font-size: var(--atbl-control-text-size, var(--atbl-type-body-size));
|
|
2597
2688
|
}
|
|
2598
2689
|
|
|
2599
2690
|
@media (max-width: 560px), (any-pointer: coarse) {
|
|
2600
2691
|
[data-atbl-control="text"] {
|
|
2601
|
-
font-size: max(16px, var(--atbl-control-text-size));
|
|
2692
|
+
font-size: max(16px, var(--atbl-control-text-size, var(--atbl-type-body-size)));
|
|
2602
2693
|
}
|
|
2603
2694
|
}
|
|
2604
2695
|
|
|
@@ -2682,30 +2773,93 @@ function injectDataAppAnnotationStyles(options = {}) {
|
|
|
2682
2773
|
background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-surface)));
|
|
2683
2774
|
}
|
|
2684
2775
|
|
|
2685
|
-
:where([data-atbl-internal-surface="control"]
|
|
2686
|
-
background: var(--atbl-control-
|
|
2687
|
-
|
|
2776
|
+
:where([data-atbl-internal-surface="control"]):-webkit-any([aria-expanded="true"], [data-open="true"]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled="true"], :has( > input:disabled))) {
|
|
2777
|
+
background: var(--atbl-control-open-surface, var(--atbl-surface));
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
:where([data-atbl-internal-surface="control"]):-moz-any([aria-expanded="true"], [data-open="true"]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled="true"], :has( > input:disabled))) {
|
|
2781
|
+
background: var(--atbl-control-open-surface, var(--atbl-surface));
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
:where([data-atbl-internal-surface="control"]):is([aria-expanded="true"], [data-open="true"]):not(:is(:disabled, [data-disabled], [aria-disabled="true"], :has( > input:disabled))) {
|
|
2785
|
+
background: var(--atbl-control-open-surface, var(--atbl-surface));
|
|
2786
|
+
}
|
|
2787
|
+
|
|
2788
|
+
:where([data-atbl-internal-surface="control"]):-webkit-any([data-variant="outline"], [data-variant="elevated"]):-webkit-any([aria-expanded="true"], [data-open="true"]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled="true"], :has( > input:disabled))) {
|
|
2789
|
+
border-color: var(--atbl-control-open-border, var(--atbl-muted));
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
:where([data-atbl-internal-surface="control"]):-moz-any([data-variant="outline"], [data-variant="elevated"]):-moz-any([aria-expanded="true"], [data-open="true"]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled="true"], :has( > input:disabled))) {
|
|
2793
|
+
border-color: var(--atbl-control-open-border, var(--atbl-muted));
|
|
2794
|
+
}
|
|
2795
|
+
|
|
2796
|
+
:where([data-atbl-internal-surface="control"]):is([data-variant="outline"], [data-variant="elevated"]):is([aria-expanded="true"], [data-open="true"]):not(:is(:disabled, [data-disabled], [aria-disabled="true"], :has( > input:disabled))) {
|
|
2797
|
+
border-color: var(--atbl-control-open-border, var(--atbl-muted));
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2800
|
+
:where([data-atbl-internal-surface="control"]):-webkit-any([aria-pressed="true"], [data-selected], [aria-current="true"], :has( > input:checked)):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled="true"], :has( > input:disabled))) {
|
|
2801
|
+
background: var(--atbl-control-selected-surface, var(--atbl-subtle));
|
|
2802
|
+
color: var(--atbl-control-selected-text, var(--atbl-text));
|
|
2803
|
+
}
|
|
2804
|
+
|
|
2805
|
+
:where([data-atbl-internal-surface="control"]):-moz-any([aria-pressed="true"], [data-selected], [aria-current="true"], :has( > input:checked)):not(:-moz-any(:disabled, [data-disabled], [aria-disabled="true"], :has( > input:disabled))) {
|
|
2806
|
+
background: var(--atbl-control-selected-surface, var(--atbl-subtle));
|
|
2807
|
+
color: var(--atbl-control-selected-text, var(--atbl-text));
|
|
2808
|
+
}
|
|
2809
|
+
|
|
2810
|
+
:where([data-atbl-internal-surface="control"]):is([aria-pressed="true"], [data-selected], [aria-current="true"], :has( > input:checked)):not(:is(:disabled, [data-disabled], [aria-disabled="true"], :has( > input:disabled))) {
|
|
2811
|
+
background: var(--atbl-control-selected-surface, var(--atbl-subtle));
|
|
2812
|
+
color: var(--atbl-control-selected-text, var(--atbl-text));
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2815
|
+
:where([data-atbl-internal-surface="option"])[data-selected]:not(:-webkit-any(:disabled, [data-disabled], [aria-disabled="true"], :has( > input:disabled))) {
|
|
2816
|
+
background: var(--atbl-control-selected-surface, var(--atbl-subtle));
|
|
2817
|
+
color: var(--atbl-control-selected-text, var(--atbl-text));
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2820
|
+
:where([data-atbl-internal-surface="option"])[data-selected]:not(:-moz-any(:disabled, [data-disabled], [aria-disabled="true"], :has( > input:disabled))) {
|
|
2821
|
+
background: var(--atbl-control-selected-surface, var(--atbl-subtle));
|
|
2822
|
+
color: var(--atbl-control-selected-text, var(--atbl-text));
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2825
|
+
:where([data-atbl-internal-surface="option"])[data-selected]:not(:is(:disabled, [data-disabled], [aria-disabled="true"], :has( > input:disabled))) {
|
|
2826
|
+
background: var(--atbl-control-selected-surface, var(--atbl-subtle));
|
|
2827
|
+
color: var(--atbl-control-selected-text, var(--atbl-text));
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2830
|
+
:where([data-atbl-internal-surface="option"])[data-selected]:-webkit-any(:hover, [data-hovered]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled="true"], :has( > input:disabled))) {
|
|
2831
|
+
background: var(--atbl-control-hover-surface, color-mix(in srgb, var(--atbl-text) 4%, var(--atbl-control-selected-surface, var(--atbl-subtle))));
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2834
|
+
:where([data-atbl-internal-surface="option"])[data-selected]:-moz-any(:hover, [data-hovered]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled="true"], :has( > input:disabled))) {
|
|
2835
|
+
background: var(--atbl-control-hover-surface, color-mix(in srgb, var(--atbl-text) 4%, var(--atbl-control-selected-surface, var(--atbl-subtle))));
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2838
|
+
:where([data-atbl-internal-surface="option"])[data-selected]:is(:hover, [data-hovered]):not(:is(:disabled, [data-disabled], [aria-disabled="true"], :has( > input:disabled))) {
|
|
2839
|
+
background: var(--atbl-control-hover-surface, color-mix(in srgb, var(--atbl-text) 4%, var(--atbl-control-selected-surface, var(--atbl-subtle))));
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
:where([data-atbl-internal-surface="option"])[data-selected]:-webkit-any(:active, [data-pressed]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled="true"], :has( > input:disabled))) {
|
|
2843
|
+
background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-control-selected-surface, var(--atbl-subtle))));
|
|
2688
2844
|
}
|
|
2689
2845
|
|
|
2690
|
-
:where([data-atbl-internal-surface="
|
|
2691
|
-
background: var(--atbl-control-
|
|
2692
|
-
color: var(--atbl-control-selected-text, var(--atbl-accent));
|
|
2846
|
+
:where([data-atbl-internal-surface="option"])[data-selected]:-moz-any(:active, [data-pressed]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled="true"], :has( > input:disabled))) {
|
|
2847
|
+
background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-control-selected-surface, var(--atbl-subtle))));
|
|
2693
2848
|
}
|
|
2694
2849
|
|
|
2695
|
-
:where([data-atbl-internal-surface="
|
|
2696
|
-
background: var(--atbl-control-
|
|
2697
|
-
color: var(--atbl-control-selected-text, var(--atbl-accent));
|
|
2850
|
+
:where([data-atbl-internal-surface="option"])[data-selected]:is(:active, [data-pressed]):not(:is(:disabled, [data-disabled], [aria-disabled="true"], :has( > input:disabled))) {
|
|
2851
|
+
background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-control-selected-surface, var(--atbl-subtle))));
|
|
2698
2852
|
}
|
|
2699
2853
|
|
|
2700
|
-
[data-atbl-internal-surface="field"]:-webkit-any(:hover, [data-hovered]):not(:-webkit-any(:has(input:disabled), [data-disabled], [data-invalid], [aria-invalid="true"], :has(input[aria-invalid="true"]))) {
|
|
2854
|
+
:where([data-atbl-internal-surface="field"], [data-atbl-internal-surface="control"][data-variant="outline"], [data-atbl-internal-surface="control"][data-variant="elevated"]):-webkit-any(:hover, [data-hovered]):not(:-webkit-any(:disabled, :has(input:disabled), [data-disabled], [aria-disabled="true"], [data-invalid], [aria-invalid="true"], :has(input[aria-invalid="true"]))) {
|
|
2701
2855
|
border-color: var(--atbl-control-hover-border, color-mix(in srgb, var(--atbl-muted) 45%, var(--atbl-border)));
|
|
2702
2856
|
}
|
|
2703
2857
|
|
|
2704
|
-
[data-atbl-internal-surface="field"]:-moz-any(:hover, [data-hovered]):not(:-moz-any(:has(input:disabled), [data-disabled], [data-invalid], [aria-invalid="true"], :has(input[aria-invalid="true"]))) {
|
|
2858
|
+
:where([data-atbl-internal-surface="field"], [data-atbl-internal-surface="control"][data-variant="outline"], [data-atbl-internal-surface="control"][data-variant="elevated"]):-moz-any(:hover, [data-hovered]):not(:-moz-any(:disabled, :has(input:disabled), [data-disabled], [aria-disabled="true"], [data-invalid], [aria-invalid="true"], :has(input[aria-invalid="true"]))) {
|
|
2705
2859
|
border-color: var(--atbl-control-hover-border, color-mix(in srgb, var(--atbl-muted) 45%, var(--atbl-border)));
|
|
2706
2860
|
}
|
|
2707
2861
|
|
|
2708
|
-
[data-atbl-internal-surface="field"]:is(:hover, [data-hovered]):not(:is(:has(input:disabled), [data-disabled], [data-invalid], [aria-invalid="true"], :has(input[aria-invalid="true"]))) {
|
|
2862
|
+
:where([data-atbl-internal-surface="field"], [data-atbl-internal-surface="control"][data-variant="outline"], [data-atbl-internal-surface="control"][data-variant="elevated"]):is(:hover, [data-hovered]):not(:is(:disabled, :has(input:disabled), [data-disabled], [aria-disabled="true"], [data-invalid], [aria-invalid="true"], :has(input[aria-invalid="true"]))) {
|
|
2709
2863
|
border-color: var(--atbl-control-hover-border, color-mix(in srgb, var(--atbl-muted) 45%, var(--atbl-border)));
|
|
2710
2864
|
}
|
|
2711
2865
|
|
|
@@ -2757,16 +2911,18 @@ export {
|
|
|
2757
2911
|
DataApp,
|
|
2758
2912
|
DataSection,
|
|
2759
2913
|
DataValue,
|
|
2914
|
+
DateDisplay2 as DateDisplay,
|
|
2760
2915
|
DateTimeTooltip2 as DateTimeTooltip,
|
|
2761
2916
|
EmptyState2 as EmptyState,
|
|
2762
|
-
|
|
2917
|
+
Grid,
|
|
2763
2918
|
GridItem,
|
|
2764
2919
|
IconButton2 as IconButton,
|
|
2765
2920
|
MetricWidget,
|
|
2766
2921
|
PeriodSummary,
|
|
2767
2922
|
Ranking,
|
|
2923
|
+
SectionHeading2 as SectionHeading,
|
|
2768
2924
|
Skeleton2 as Skeleton,
|
|
2769
|
-
Stack,
|
|
2925
|
+
Stack2 as Stack,
|
|
2770
2926
|
TableWidget,
|
|
2771
2927
|
TextContent2 as TextContent,
|
|
2772
2928
|
TextWidget,
|
|
@@ -2785,7 +2941,8 @@ export {
|
|
|
2785
2941
|
mountDataApp2 as mountDataApp,
|
|
2786
2942
|
multiChoiceVariable2 as multiChoiceVariable,
|
|
2787
2943
|
searchVariable2 as searchVariable,
|
|
2788
|
-
useDataAppAnnotations2 as useDataAppAnnotations
|
|
2944
|
+
useDataAppAnnotations2 as useDataAppAnnotations,
|
|
2945
|
+
useDateFormatting2 as useDateFormatting
|
|
2789
2946
|
};
|
|
2790
2947
|
|
|
2791
|
-
//# debugId=
|
|
2948
|
+
//# debugId=1E1121DA24A2E4B464756E2164756E21
|