@ds-mo/ui 13.6.0 → 13.7.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/.package-ready.json +1 -1
- package/dist/agent-patterns.json +2 -2
- package/dist/agent.json +109 -371
- package/dist/angular/ds-card-chart.d.ts +18 -0
- package/dist/angular/{ds-card-data-viz.js → ds-card-chart.js} +10 -10
- package/dist/angular/ds-chart.d.ts +19 -0
- package/dist/angular/{ds-chart-donut.js → ds-chart.js} +15 -15
- package/dist/angular/ds-tooltip-chart.d.ts +12 -0
- package/dist/angular/{ds-chart-line.js → ds-tooltip-chart.js} +12 -12
- package/dist/angular/index.d.ts +1 -1
- package/dist/angular/index.js +3 -5
- package/dist/angular/proxies.d.ts +3 -5
- package/dist/angular/proxies.js +3 -5
- package/dist/components/ds-agent-activity.js +1 -1
- package/dist/components/ds-agent-response.js +1 -1
- package/dist/components/ds-agent-source-list.js +1 -1
- package/dist/components/ds-agent-tool-call.js +1 -1
- package/dist/components/ds-attachment-list.js +1 -1
- package/dist/components/ds-badge.js +1 -1
- package/dist/components/ds-banner.js +1 -1
- package/dist/components/ds-banner.js.map +1 -1
- package/dist/components/ds-bar-nav.js +1 -1
- package/dist/components/ds-bar-title.js +1 -1
- package/dist/components/ds-bar-workflow.js +1 -1
- package/dist/components/ds-breadcrumb.js +1 -1
- package/dist/components/ds-button-filled.js +1 -1
- package/dist/components/ds-button-unfilled.js +1 -1
- package/dist/components/{ds-chart-line.d.ts → ds-card-chart.d.ts} +4 -4
- package/dist/components/ds-card-chart.js +2 -0
- package/dist/components/ds-card-chart.js.map +1 -0
- package/dist/components/ds-card-overview.js +1 -1
- package/dist/components/ds-card-setting.js +1 -1
- package/dist/components/ds-card-setting.js.map +1 -1
- package/dist/components/ds-chart-legend.js +1 -1
- package/dist/components/ds-chart-legend.js.map +1 -1
- package/dist/components/{ds-chart-bar.d.ts → ds-chart.d.ts} +4 -4
- package/dist/components/ds-chart.js +2 -0
- package/dist/components/ds-chart.js.map +1 -0
- package/dist/components/ds-checkbox.js +1 -1
- package/dist/components/ds-chip.js +1 -1
- package/dist/components/ds-code-block.js +1 -1
- package/dist/components/ds-conversation-list-item.js +1 -1
- package/dist/components/ds-conversation-list-section.js +1 -1
- package/dist/components/ds-conversation-list.js +1 -1
- package/dist/components/ds-divider.js +1 -1
- package/dist/components/ds-empty-state.js +1 -1
- package/dist/components/ds-field.js +1 -1
- package/dist/components/ds-input.js +1 -1
- package/dist/components/ds-markdown.js +1 -1
- package/dist/components/ds-menu.js +1 -1
- package/dist/components/ds-message-actions.js +1 -1
- package/dist/components/ds-message-bubble.js +1 -1
- package/dist/components/ds-message-composer.js +1 -1
- package/dist/components/ds-message-composer.js.map +1 -1
- package/dist/components/ds-message-scroller.js +1 -1
- package/dist/components/ds-message.js +1 -1
- package/dist/components/ds-mobile-bar-nav.js +1 -1
- package/dist/components/ds-mobile-header.js +1 -1
- package/dist/components/ds-mobile-section-switcher.js +1 -1
- package/dist/components/ds-mobile-sheet-nav.js +1 -1
- package/dist/components/ds-modal.js +1 -1
- package/dist/components/ds-modal.js.map +1 -1
- package/dist/components/ds-panel-nav.js +1 -1
- package/dist/components/ds-panel-sub-nav.js +1 -1
- package/dist/components/ds-panel-tool-header.js +1 -1
- package/dist/components/ds-panel-tool-search.js +1 -1
- package/dist/components/ds-panel-tools.js +1 -1
- package/dist/components/ds-radio.js +1 -1
- package/dist/components/ds-scroll-overlay.js +1 -1
- package/dist/components/ds-scroll-overlay.js.map +1 -1
- package/dist/components/ds-select.js +1 -1
- package/dist/components/ds-select.js.map +1 -1
- package/dist/components/ds-shell-app.js +1 -1
- package/dist/components/ds-shell-page.js +1 -1
- package/dist/components/ds-shell-tools.js +1 -1
- package/dist/components/ds-skeleton.js +1 -1
- package/dist/components/ds-slider.js +1 -1
- package/dist/components/ds-swatch-picker.js +1 -1
- package/dist/components/ds-switch.js +1 -1
- package/dist/components/ds-tab-group.js +1 -1
- package/dist/components/ds-tag.js +1 -1
- package/dist/components/ds-text.js +1 -1
- package/dist/components/ds-toast.js +1 -1
- package/dist/components/ds-toast.js.map +1 -1
- package/dist/components/{ds-card-data-viz.d.ts → ds-tooltip-chart.d.ts} +4 -4
- package/dist/components/ds-tooltip-chart.js +2 -0
- package/dist/components/ds-tooltip.js +1 -1
- package/dist/components/ds-typing-indicator.js +1 -1
- package/dist/components/{p-IYy-jODg.js → p-1Zbh1MRy.js} +2 -2
- package/dist/components/{p-wOOAzVMC.js → p-BVsLc3t5.js} +2 -2
- package/dist/components/p-BZCUFHYa.js +2 -0
- package/dist/components/{p-D0bM3cKj.js.map → p-BZCUFHYa.js.map} +1 -1
- package/dist/components/{p-BBtjABBS.js → p-BjiRqLtB.js} +2 -2
- package/dist/components/p-Bk1A9jLm.js +2 -0
- package/dist/components/p-Bk1A9jLm.js.map +1 -0
- package/dist/components/{p-Bsfpxto1.js → p-BsBw-w1q.js} +2 -2
- package/dist/components/p-ByfXC1wu.js +2 -0
- package/dist/components/{p-1S9AW2MA.js.map → p-ByfXC1wu.js.map} +1 -1
- package/dist/components/{p-B6RrZQqw.js → p-C-ENnZzq.js} +2 -2
- package/dist/components/{p-BPyymeuR.js → p-C2U48kDH.js} +2 -2
- package/dist/components/{p-CKRJX0Y0.js → p-C7mCjS2t.js} +2 -2
- package/dist/components/{p-6B411hQA.js → p-CL8XL1eh.js} +2 -2
- package/dist/components/{p-DfvDNcoq.js → p-CMZVPEZ_.js} +2 -2
- package/dist/components/{p-BtuYufL3.js → p-CWL61nKt.js} +2 -2
- package/dist/components/p-CWL61nKt.js.map +1 -0
- package/dist/components/p-CWLrXsDQ.js +2 -0
- package/dist/components/{p-D2cjoj2r.js.map → p-CWLrXsDQ.js.map} +1 -1
- package/dist/components/{p-Di81y9Q2.js → p-CX7QIytv.js} +2 -2
- package/dist/components/p-CXduurfd.js +2 -0
- package/dist/components/p-CXduurfd.js.map +1 -0
- package/dist/components/p-CbAfTqlb.js +2 -0
- package/dist/components/{p-CuJ3J6OJ.js.map → p-CbAfTqlb.js.map} +1 -1
- package/dist/components/{p-DVuxzrCC.js → p-CfTThRNX.js} +2 -2
- package/dist/components/{p-BmNpPyzf.js → p-CkLffZGn.js} +2 -2
- package/dist/components/{p-B4_0Ys4w.js → p-CkyXU1YX.js} +2 -2
- package/dist/components/{p-iCjUWcp7.js → p-CywKWfgD.js} +2 -2
- package/dist/components/{p-BR_oMaas.js → p-D3UKwTEo.js} +2 -2
- package/dist/components/{p-Bl6A5AJq.js → p-D7z9bJ6n.js} +2 -2
- package/dist/components/{p-DaqFuVKZ.js → p-DAftUxvL.js} +2 -2
- package/dist/components/{p-BFfHIu6y.js → p-DQ94PkZA.js} +2 -2
- package/dist/components/{p-B-kRByho.js → p-DSpq7xQF.js} +2 -2
- package/dist/components/{p-og48Kh2i.js → p-DzM3TcyQ.js} +2 -2
- package/dist/components/p-GbTasczF.js +2 -0
- package/dist/components/{p-Ca6s5fLR.js → p-Mmr9b1bB.js} +2 -2
- package/dist/components/p-UH2AGfR0.js +2 -0
- package/dist/components/{p-DX4c3kZ1.js.map → p-UH2AGfR0.js.map} +1 -1
- package/dist/components/{p-CxgMUvqg.js → p-Z2zfShlF.js} +2 -2
- package/dist/components/{p-Bmo4T96l.js → p-_mClULFL.js} +2 -2
- package/dist/components/{p-Bb4f5SuF.js → p-jf1zCsuw.js} +2 -2
- package/dist/components/{p-Eep5mxtv.js → p-oiR4IoH1.js} +2 -2
- package/dist/components/{p-DHF5cLzr.js → p-u2OZHaLY.js} +2 -2
- package/dist/docs/components.json +180 -662
- package/dist/lib/utils/chart-grammar.d.ts +359 -0
- package/dist/lib/utils/index.d.ts +2 -0
- package/dist/lib/utils/index.js +504 -0
- package/dist/lib/utils/index.js.map +4 -4
- package/dist/lib/utils/token-defaults.d.ts +3 -0
- package/dist/mcp-data/registry/banner.json +2 -2
- package/dist/mcp-data/registry/card-chart.json +238 -0
- package/dist/mcp-data/registry/card-overview.json +2 -2
- package/dist/mcp-data/registry/card-setting.json +2 -2
- package/dist/mcp-data/registry/chart-legend.json +11 -18
- package/dist/mcp-data/registry/chart.json +258 -0
- package/dist/mcp-data/registry/mobile-bar-nav.json +3 -3
- package/dist/mcp-data/registry/registry.json +108 -376
- package/dist/mcp-data/registry/tooltip-chart.json +253 -0
- package/dist/mcp-data/registry/tooltip.json +2 -2
- package/dist/react/components.d.ts +3 -5
- package/dist/react/components.js +3 -5
- package/dist/react/ds-card-chart.d.ts +12 -0
- package/dist/react/ds-card-chart.js +12 -0
- package/dist/react/ds-chart.d.ts +12 -0
- package/dist/react/ds-chart.js +12 -0
- package/dist/react/{ds-chart-bar.d.ts → ds-tooltip-chart.d.ts} +3 -3
- package/dist/react/ds-tooltip-chart.js +12 -0
- package/dist/types/components/{CardDataViz/CardDataViz.d.ts → CardChart/CardChart.d.ts} +9 -13
- package/dist/types/components/CardChart/index.d.ts +2 -0
- package/dist/types/components/Chart/Chart.d.ts +66 -0
- package/dist/types/components/Chart/index.d.ts +2 -0
- package/dist/types/components/ChartLegend/ChartLegend.d.ts +1 -1
- package/dist/types/components/{TooltipDataViz/TooltipDataViz.d.ts → TooltipChart/TooltipChart.d.ts} +15 -6
- package/dist/types/components/TooltipChart/index.d.ts +2 -0
- package/dist/types/components.d.ts +129 -294
- package/dist/types/utils/chart-grammar.d.ts +360 -0
- package/dist/types/utils/chart-scene.d.ts +128 -0
- package/dist/types/utils/chart-theme.d.ts +27 -0
- package/dist/types/utils/chart-types.d.ts +0 -13
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/token-defaults.d.ts +3 -0
- package/package.json +1 -1
- package/dist/angular/ds-card-data-viz.d.ts +0 -18
- package/dist/angular/ds-chart-bar.d.ts +0 -12
- package/dist/angular/ds-chart-bar.js +0 -38
- package/dist/angular/ds-chart-donut.d.ts +0 -19
- package/dist/angular/ds-chart-line.d.ts +0 -12
- package/dist/angular/ds-tooltip-data-viz.d.ts +0 -12
- package/dist/angular/ds-tooltip-data-viz.js +0 -38
- package/dist/components/ds-card-data-viz.js +0 -2
- package/dist/components/ds-card-data-viz.js.map +0 -1
- package/dist/components/ds-chart-bar.js +0 -2
- package/dist/components/ds-chart-bar.js.map +0 -1
- package/dist/components/ds-chart-donut.d.ts +0 -11
- package/dist/components/ds-chart-donut.js +0 -2
- package/dist/components/ds-chart-donut.js.map +0 -1
- package/dist/components/ds-chart-line.js +0 -2
- package/dist/components/ds-chart-line.js.map +0 -1
- package/dist/components/ds-tooltip-data-viz.d.ts +0 -11
- package/dist/components/ds-tooltip-data-viz.js +0 -2
- package/dist/components/p-1S9AW2MA.js +0 -2
- package/dist/components/p-B6Vuayt6.js +0 -2
- package/dist/components/p-B6Vuayt6.js.map +0 -1
- package/dist/components/p-BBpASejH.js +0 -2
- package/dist/components/p-BBpASejH.js.map +0 -1
- package/dist/components/p-BtuYufL3.js.map +0 -1
- package/dist/components/p-BybqPD8K.js +0 -2
- package/dist/components/p-BybqPD8K.js.map +0 -1
- package/dist/components/p-C4uYvyq6.js +0 -2
- package/dist/components/p-C4uYvyq6.js.map +0 -1
- package/dist/components/p-CbjFUpOj.js +0 -2
- package/dist/components/p-CbjFUpOj.js.map +0 -1
- package/dist/components/p-CrCGIx8s.js +0 -2
- package/dist/components/p-CrCGIx8s.js.map +0 -1
- package/dist/components/p-CuJ3J6OJ.js +0 -2
- package/dist/components/p-D0bM3cKj.js +0 -2
- package/dist/components/p-D2cjoj2r.js +0 -2
- package/dist/components/p-DX4c3kZ1.js +0 -2
- package/dist/components/p-DXewjzkM.js +0 -2
- package/dist/components/p-DXewjzkM.js.map +0 -1
- package/dist/components/p-yhj1lIPx.js +0 -2
- package/dist/mcp-data/registry/card-data-viz.json +0 -241
- package/dist/mcp-data/registry/chart-bar.json +0 -245
- package/dist/mcp-data/registry/chart-donut.json +0 -344
- package/dist/mcp-data/registry/chart-line.json +0 -223
- package/dist/mcp-data/registry/tooltip-data-viz.json +0 -224
- package/dist/react/ds-card-data-viz.d.ts +0 -12
- package/dist/react/ds-card-data-viz.js +0 -12
- package/dist/react/ds-chart-bar.js +0 -12
- package/dist/react/ds-chart-donut.d.ts +0 -12
- package/dist/react/ds-chart-donut.js +0 -12
- package/dist/react/ds-chart-line.d.ts +0 -9
- package/dist/react/ds-chart-line.js +0 -12
- package/dist/react/ds-tooltip-data-viz.d.ts +0 -9
- package/dist/react/ds-tooltip-data-viz.js +0 -12
- package/dist/types/components/CardDataViz/index.d.ts +0 -2
- package/dist/types/components/ChartBar/ChartBar.d.ts +0 -31
- package/dist/types/components/ChartBar/index.d.ts +0 -3
- package/dist/types/components/ChartDonut/ChartDonut.d.ts +0 -72
- package/dist/types/components/ChartDonut/index.d.ts +0 -2
- package/dist/types/components/ChartLine/ChartLine.d.ts +0 -23
- package/dist/types/components/ChartLine/index.d.ts +0 -2
- package/dist/types/components/TooltipDataViz/index.d.ts +0 -2
- /package/dist/components/{ds-tooltip-data-viz.js.map → ds-tooltip-chart.js.map} +0 -0
- /package/dist/components/{p-IYy-jODg.js.map → p-1Zbh1MRy.js.map} +0 -0
- /package/dist/components/{p-wOOAzVMC.js.map → p-BVsLc3t5.js.map} +0 -0
- /package/dist/components/{p-BBtjABBS.js.map → p-BjiRqLtB.js.map} +0 -0
- /package/dist/components/{p-Bsfpxto1.js.map → p-BsBw-w1q.js.map} +0 -0
- /package/dist/components/{p-B6RrZQqw.js.map → p-C-ENnZzq.js.map} +0 -0
- /package/dist/components/{p-BPyymeuR.js.map → p-C2U48kDH.js.map} +0 -0
- /package/dist/components/{p-CKRJX0Y0.js.map → p-C7mCjS2t.js.map} +0 -0
- /package/dist/components/{p-6B411hQA.js.map → p-CL8XL1eh.js.map} +0 -0
- /package/dist/components/{p-DfvDNcoq.js.map → p-CMZVPEZ_.js.map} +0 -0
- /package/dist/components/{p-Di81y9Q2.js.map → p-CX7QIytv.js.map} +0 -0
- /package/dist/components/{p-DVuxzrCC.js.map → p-CfTThRNX.js.map} +0 -0
- /package/dist/components/{p-BmNpPyzf.js.map → p-CkLffZGn.js.map} +0 -0
- /package/dist/components/{p-B4_0Ys4w.js.map → p-CkyXU1YX.js.map} +0 -0
- /package/dist/components/{p-iCjUWcp7.js.map → p-CywKWfgD.js.map} +0 -0
- /package/dist/components/{p-BR_oMaas.js.map → p-D3UKwTEo.js.map} +0 -0
- /package/dist/components/{p-Bl6A5AJq.js.map → p-D7z9bJ6n.js.map} +0 -0
- /package/dist/components/{p-DaqFuVKZ.js.map → p-DAftUxvL.js.map} +0 -0
- /package/dist/components/{p-BFfHIu6y.js.map → p-DQ94PkZA.js.map} +0 -0
- /package/dist/components/{p-B-kRByho.js.map → p-DSpq7xQF.js.map} +0 -0
- /package/dist/components/{p-og48Kh2i.js.map → p-DzM3TcyQ.js.map} +0 -0
- /package/dist/components/{p-yhj1lIPx.js.map → p-GbTasczF.js.map} +0 -0
- /package/dist/components/{p-Ca6s5fLR.js.map → p-Mmr9b1bB.js.map} +0 -0
- /package/dist/components/{p-CxgMUvqg.js.map → p-Z2zfShlF.js.map} +0 -0
- /package/dist/components/{p-Bmo4T96l.js.map → p-_mClULFL.js.map} +0 -0
- /package/dist/components/{p-Bb4f5SuF.js.map → p-jf1zCsuw.js.map} +0 -0
- /package/dist/components/{p-Eep5mxtv.js.map → p-oiR4IoH1.js.map} +0 -0
- /package/dist/components/{p-DHF5cLzr.js.map → p-u2OZHaLY.js.map} +0 -0
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "tooltip-data-viz",
|
|
4
|
-
"title": "TooltipDataViz",
|
|
5
|
-
"description": "Chart-owned, non-interactive label and value callout positioned from pointer or focused-mark coordinates inside a visualization wrapper.",
|
|
6
|
-
"type": "registry:ui",
|
|
7
|
-
"meta": {
|
|
8
|
-
"library": "@ds-mo/ui",
|
|
9
|
-
"distribution": "npm",
|
|
10
|
-
"storybook": "https://zainadeel.github.io/compomo/?path=/story/tooltip-data-viz",
|
|
11
|
-
"source": "src/wc/components/TooltipDataViz/TooltipDataViz.tsx",
|
|
12
|
-
"intentStatus": "complete",
|
|
13
|
-
"intent": {
|
|
14
|
-
"audience": "specialized",
|
|
15
|
-
"status": "experimental",
|
|
16
|
-
"summary": "Chart-owned, non-interactive label and value callout positioned from pointer or focused-mark coordinates inside a visualization wrapper.",
|
|
17
|
-
"useWhen": [
|
|
18
|
-
"A chart needs immediate visual value feedback for a genuinely hovered or keyboard-focused mark.",
|
|
19
|
-
"The anchor lives inside SVG or chart coordinates rather than on a slotted HTML trigger.",
|
|
20
|
-
"The owning chart can mount the callout for one interaction session and update its coordinates while tracking."
|
|
21
|
-
],
|
|
22
|
-
"avoidWhen": [
|
|
23
|
-
"A normal control or text trigger needs supplemental explanation; use Tooltip.",
|
|
24
|
-
"The content needs links, actions, focus, or touch-primary disclosure.",
|
|
25
|
-
"An externally synchronized highlight has no genuine local pointer or keyboard interaction.",
|
|
26
|
-
"The callout would be the only accessible source of an essential value."
|
|
27
|
-
],
|
|
28
|
-
"alternatives": [
|
|
29
|
-
{
|
|
30
|
-
"when": "A slotted control or text trigger needs a conventional tooltip.",
|
|
31
|
-
"component": "component:ds-tooltip",
|
|
32
|
-
"reason": "Tooltip owns trigger semantics, focus behavior, and anchored overlay lifecycle."
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"when": "Donut details should remain continuously visible beside the chart.",
|
|
36
|
-
"component": "component:ds-chart-legend",
|
|
37
|
-
"reason": "A visible legend avoids redundant transient slice callouts."
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
"commonlyComposedWith": [
|
|
41
|
-
"component:ds-chart-bar",
|
|
42
|
-
"component:ds-chart-line",
|
|
43
|
-
"component:ds-chart-donut"
|
|
44
|
-
],
|
|
45
|
-
"accessibility": [
|
|
46
|
-
"The callout is presentation-only and never replaces the owning chart mark's accessible label or an adjacent data summary.",
|
|
47
|
-
"Keyboard-focused marks receive the same visual feedback as pointer-hovered marks.",
|
|
48
|
-
"The callout never receives focus or contains interactive descendants."
|
|
49
|
-
],
|
|
50
|
-
"states": [
|
|
51
|
-
"The owning chart mounts the callout when a local interaction starts and unmounts it when that interaction ends.",
|
|
52
|
-
"Coordinate updates track within one mounted interaction session without restarting the show delay.",
|
|
53
|
-
"Placement flips horizontally or vertically when the rendered callout approaches a viewport edge.",
|
|
54
|
-
"Placement is chosen as a quadrant rather than computed as coordinates: the component measures its own rendered rect and flips its side and align props, which CSS consumes. It therefore does not use the shared anchored-position utilities, which resolve an anchor element into x and y.",
|
|
55
|
-
"This separation is deliberate. The callout follows the pointer instead of an element, so it has no anchor rect to resolve; adopting the shared geometry would mean rewriting its CSS to consume coordinates for no behavioral gain.",
|
|
56
|
-
"Reduced motion preserves the final visible state without an opacity transition."
|
|
57
|
-
],
|
|
58
|
-
"responsiveBehavior": [
|
|
59
|
-
"Render inside a positioned chart wrapper and pass coordinates relative to that wrapper.",
|
|
60
|
-
"Keep labels concise enough for the single-line callout; persistent or long explanations belong outside the chart."
|
|
61
|
-
],
|
|
62
|
-
"frameworkCaveats": {
|
|
63
|
-
"customElements": [
|
|
64
|
-
"The owning chart computes coordinates and conditionally mounts the component; applications should not use it as a standalone overlay."
|
|
65
|
-
],
|
|
66
|
-
"react": [
|
|
67
|
-
"Keep callout lifecycle and coordinates inside the chart wrapper rather than application-global tooltip state."
|
|
68
|
-
],
|
|
69
|
-
"angular": [
|
|
70
|
-
"Keep callout lifecycle and coordinates inside the chart wrapper rather than application-global tooltip state."
|
|
71
|
-
]
|
|
72
|
-
},
|
|
73
|
-
"references": [
|
|
74
|
-
{
|
|
75
|
-
"label": "Storybook example",
|
|
76
|
-
"path": "src/wc/components/TooltipDataViz/TooltipDataViz.stories.ts"
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
},
|
|
80
|
-
"api": {
|
|
81
|
-
"props": {
|
|
82
|
-
"delay": {
|
|
83
|
-
"type": "number | string",
|
|
84
|
-
"resolvedType": "number | string",
|
|
85
|
-
"attribute": "delay",
|
|
86
|
-
"default": "TOKEN_DEFAULTS.animationDelayInstant",
|
|
87
|
-
"required": false,
|
|
88
|
-
"mutable": false,
|
|
89
|
-
"description": "Show delay after mount before the callout appears.\nDefault: `--effect-animation-delay-instant` (0ms). Accepts a number (ms)\nor a TokoMo time token / `var(--effect-animation-delay-*)`. Charts need\nimmediate feedback while scrubbing; prefer the default. Mount once per\nhover session so any non-zero delay runs once, then track `x`/`y` instantly."
|
|
90
|
-
},
|
|
91
|
-
"label": {
|
|
92
|
-
"type": "string",
|
|
93
|
-
"resolvedType": "string",
|
|
94
|
-
"attribute": "label",
|
|
95
|
-
"default": "''",
|
|
96
|
-
"required": false,
|
|
97
|
-
"mutable": false
|
|
98
|
-
},
|
|
99
|
-
"value": {
|
|
100
|
-
"type": "string | number",
|
|
101
|
-
"resolvedType": "number | string",
|
|
102
|
-
"attribute": "value",
|
|
103
|
-
"default": "''",
|
|
104
|
-
"required": false,
|
|
105
|
-
"mutable": false
|
|
106
|
-
},
|
|
107
|
-
"x": {
|
|
108
|
-
"type": "number",
|
|
109
|
-
"resolvedType": "number",
|
|
110
|
-
"attribute": "x",
|
|
111
|
-
"default": "0",
|
|
112
|
-
"required": false,
|
|
113
|
-
"mutable": false,
|
|
114
|
-
"description": "Anchor point in px, relative to the nearest `position: relative` ancestor — e.g. the cursor."
|
|
115
|
-
},
|
|
116
|
-
"y": {
|
|
117
|
-
"type": "number",
|
|
118
|
-
"resolvedType": "number",
|
|
119
|
-
"attribute": "y",
|
|
120
|
-
"default": "0",
|
|
121
|
-
"required": false,
|
|
122
|
-
"mutable": false
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
"events": [],
|
|
126
|
-
"methods": [],
|
|
127
|
-
"slots": []
|
|
128
|
-
},
|
|
129
|
-
"props": {
|
|
130
|
-
"delay": {
|
|
131
|
-
"type": "number | string",
|
|
132
|
-
"resolvedType": "number | string",
|
|
133
|
-
"attribute": "delay",
|
|
134
|
-
"default": "TOKEN_DEFAULTS.animationDelayInstant",
|
|
135
|
-
"required": false,
|
|
136
|
-
"mutable": false,
|
|
137
|
-
"description": "Show delay after mount before the callout appears.\nDefault: `--effect-animation-delay-instant` (0ms). Accepts a number (ms)\nor a TokoMo time token / `var(--effect-animation-delay-*)`. Charts need\nimmediate feedback while scrubbing; prefer the default. Mount once per\nhover session so any non-zero delay runs once, then track `x`/`y` instantly."
|
|
138
|
-
},
|
|
139
|
-
"label": {
|
|
140
|
-
"type": "string",
|
|
141
|
-
"resolvedType": "string",
|
|
142
|
-
"attribute": "label",
|
|
143
|
-
"default": "''",
|
|
144
|
-
"required": false,
|
|
145
|
-
"mutable": false
|
|
146
|
-
},
|
|
147
|
-
"value": {
|
|
148
|
-
"type": "string | number",
|
|
149
|
-
"resolvedType": "number | string",
|
|
150
|
-
"attribute": "value",
|
|
151
|
-
"default": "''",
|
|
152
|
-
"required": false,
|
|
153
|
-
"mutable": false
|
|
154
|
-
},
|
|
155
|
-
"x": {
|
|
156
|
-
"type": "number",
|
|
157
|
-
"resolvedType": "number",
|
|
158
|
-
"attribute": "x",
|
|
159
|
-
"default": "0",
|
|
160
|
-
"required": false,
|
|
161
|
-
"mutable": false,
|
|
162
|
-
"description": "Anchor point in px, relative to the nearest `position: relative` ancestor — e.g. the cursor."
|
|
163
|
-
},
|
|
164
|
-
"y": {
|
|
165
|
-
"type": "number",
|
|
166
|
-
"resolvedType": "number",
|
|
167
|
-
"attribute": "y",
|
|
168
|
-
"default": "0",
|
|
169
|
-
"required": false,
|
|
170
|
-
"mutable": false
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
"events": [],
|
|
174
|
-
"methods": [],
|
|
175
|
-
"slots": [],
|
|
176
|
-
"exports": {
|
|
177
|
-
"customElement": "ds-tooltip-data-viz",
|
|
178
|
-
"react": "DsTooltipDataViz",
|
|
179
|
-
"angular": "DsTooltipDataViz"
|
|
180
|
-
},
|
|
181
|
-
"consumption": {
|
|
182
|
-
"install": "npm install @ds-mo/ui @ds-mo/tokens @ds-mo/icons",
|
|
183
|
-
"cssSetup": "import '@ds-mo/tokens';\nimport '@ds-mo/tokens/reset';\nimport '@ds-mo/tokens/globals';",
|
|
184
|
-
"customElements": {
|
|
185
|
-
"import": "import '@ds-mo/ui/dist/components/ds-tooltip-data-viz.js';",
|
|
186
|
-
"example": "<ds-tooltip-data-viz></ds-tooltip-data-viz>"
|
|
187
|
-
},
|
|
188
|
-
"react": {
|
|
189
|
-
"import": "import { DsTooltipDataViz } from '@ds-mo/ui/react';",
|
|
190
|
-
"example": "<DsTooltipDataViz />"
|
|
191
|
-
},
|
|
192
|
-
"angular": {
|
|
193
|
-
"import": "import { DsTooltipDataViz } from '@ds-mo/ui/angular/ds-tooltip-data-viz';",
|
|
194
|
-
"example": "<ds-tooltip-data-viz></ds-tooltip-data-viz>"
|
|
195
|
-
},
|
|
196
|
-
"peerDependencies": {
|
|
197
|
-
"required": [
|
|
198
|
-
"@ds-mo/tokens ^5.1.1",
|
|
199
|
-
"@ds-mo/icons ^6.4.0"
|
|
200
|
-
],
|
|
201
|
-
"frameworks": "Custom Elements; React 18/19 wrappers; Angular 19-22 standalone adapters."
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
"dependencies": [
|
|
206
|
-
"@ds-mo/ui",
|
|
207
|
-
"@ds-mo/tokens"
|
|
208
|
-
],
|
|
209
|
-
"registryDependencies": [
|
|
210
|
-
"text"
|
|
211
|
-
],
|
|
212
|
-
"files": [
|
|
213
|
-
{
|
|
214
|
-
"path": "src/wc/components/TooltipDataViz/TooltipDataViz.css",
|
|
215
|
-
"content": "@import '../../utils/control-density.css';\n@import '../../utils/forced-colors.css';\n\n/* No padding here — the item div below owns all the spacing, so there's exactly one padding\n box instead of stacking the host's padding on top of the item's. */\n:host {\n position: absolute;\n z-index: var(--dimension-z-index-tooltip);\n display: block;\n box-sizing: border-box;\n background-color: var(--color-translucent-translucent);\n backdrop-filter: blur(var(--effect-blur-md));\n -webkit-backdrop-filter: blur(var(--effect-blur-md));\n border-radius: var(--ds-control-radius, var(--dimension-radius-025));\n box-shadow: var(--effect-elevation-elevated-floating);\n white-space: nowrap;\n pointer-events: none;\n opacity: 0;\n}\n\n:host(.tooltip-data-viz--visible) {\n animation: tooltip-data-viz-fade-in var(--effect-motion-short-2) forwards;\n}\n\n/* Density: md control recipe (height / pad / label inset) — non-interactive, no interaction-fill. */\n.tooltip-data-viz__item {\n box-sizing: border-box;\n height: var(--ds-control-height, var(--dimension-size-400));\n display: flex;\n align-items: center;\n gap: var(--dimension-space-025);\n padding: 0 var(--ds-control-padding-inline, var(--dimension-space-075));\n}\n\n.tooltip-data-viz__label,\n.tooltip-data-viz__value {\n padding: 0 var(--ds-control-label-inset, var(--dimension-space-025));\n}\n\n@keyframes tooltip-data-viz-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n :host(.tooltip-data-viz--visible) {\n animation: none;\n opacity: 1;\n }\n}\n\n@media (forced-colors: active) {\n :host {\n box-shadow: none;\n outline: var(--dimension-stroke-width-012) solid var(--ds-forced-color-content);\n outline-offset: calc(-1 * var(--dimension-stroke-width-012));\n }\n}\n",
|
|
216
|
-
"type": "registry:ui"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
"path": "src/wc/components/TooltipDataViz/TooltipDataViz.tsx",
|
|
220
|
-
"content": "import { Component, Prop, State, Element, Watch, h, Host } from '@stencil/core';\nimport { resolveCssTimeMs, TOKEN_DEFAULTS } from '../../utils';\n\nconst CURSOR_OFFSET_PX = 12;\nconst VIEWPORT_PAD_PX = 8;\n\nexport type TooltipDataVizSide = 'left' | 'right';\nexport type TooltipDataVizAlign = 'top' | 'bottom';\n\n/**\n * Positioned value/label callout for chart hover interactions (bar, line point,\n * standalone donut slice, …). Donut compositions suppress it when a visible\n * legend already surfaces the hovered slice.\n * Unlike `ds-tooltip`, this doesn't bind to a slotted anchor element —\n * charts hover-highlight data that lives inside an SVG, so the chart itself computes\n * the anchor point (e.g. the cursor position while hovering) and passes it in as `x`/`y`.\n *\n * Renders `position: absolute` — place inside a `position: relative` chart wrapper,\n * with `x`/`y` as pixel coordinates within that wrapper. Defaults to sitting below-right\n * of the anchor (matching cursor-following tooltips), flipping to whichever side/edge\n * keeps it on-screen.\n *\n * Mount (or remount) when a hover session starts so `delay` applies once per hover;\n * keep the instance mounted while the cursor moves so tracking stays instant.\n */\n@Component({\n tag: 'ds-tooltip-data-viz',\n styleUrl: 'TooltipDataViz.css',\n scoped: true,\n})\nexport class TooltipDataViz {\n @Element() el!: HTMLElement;\n\n @Prop() value: string | number = '';\n @Prop() label: string = '';\n /** Anchor point in px, relative to the nearest `position: relative` ancestor — e.g. the cursor. */\n @Prop() x: number = 0;\n @Prop() y: number = 0;\n\n /**\n * Show delay after mount before the callout appears.\n * Default: `--effect-animation-delay-instant` (0ms). Accepts a number (ms)\n * or a TokoMo time token / `var(--effect-animation-delay-*)`. Charts need\n * immediate feedback while scrubbing; prefer the default. Mount once per\n * hover session so any non-zero delay runs once, then track `x`/`y` instantly.\n */\n @Prop() delay: number | string = TOKEN_DEFAULTS.animationDelayInstant;\n\n @State() private side: TooltipDataVizSide = 'right';\n @State() private align: TooltipDataVizAlign = 'bottom';\n @State() private visible: boolean = false;\n\n private delayTimer: ReturnType<typeof setTimeout> | null = null;\n\n componentDidLoad() {\n this.scheduleShow();\n this.calculatePlacement();\n }\n\n disconnectedCallback() {\n this.clearDelayTimer();\n }\n\n @Watch('x')\n @Watch('y')\n onAnchorChange() {\n requestAnimationFrame(() => this.calculatePlacement());\n }\n\n @Watch('delay')\n onDelayChange() {\n if (!this.visible) this.scheduleShow();\n }\n\n private get showDelayMs(): number {\n return resolveCssTimeMs(this.delay, TOKEN_DEFAULTS.animationDelayInstant);\n }\n\n private clearDelayTimer() {\n if (this.delayTimer) {\n clearTimeout(this.delayTimer);\n this.delayTimer = null;\n }\n }\n\n private scheduleShow() {\n this.clearDelayTimer();\n this.visible = false;\n const ms = this.showDelayMs;\n if (ms <= 0) {\n this.visible = true;\n return;\n }\n this.delayTimer = setTimeout(() => {\n this.delayTimer = null;\n this.visible = true;\n requestAnimationFrame(() => this.calculatePlacement());\n }, ms);\n }\n\n private calculatePlacement() {\n const rect = this.el.getBoundingClientRect();\n if (!rect.width || !rect.height) return;\n\n const nextSide: TooltipDataVizSide = rect.right > window.innerWidth - VIEWPORT_PAD_PX ? 'left' : 'right';\n const nextAlign: TooltipDataVizAlign = rect.bottom > window.innerHeight - VIEWPORT_PAD_PX ? 'top' : 'bottom';\n\n if (nextSide !== this.side) this.side = nextSide;\n if (nextAlign !== this.align) this.align = nextAlign;\n }\n\n render() {\n const translateX = this.side === 'right' ? `${CURSOR_OFFSET_PX}px` : `calc(-100% - ${CURSOR_OFFSET_PX}px)`;\n const translateY = this.align === 'bottom' ? `${CURSOR_OFFSET_PX}px` : `calc(-100% - ${CURSOR_OFFSET_PX}px)`;\n\n return (\n <Host\n class={{\n 'tooltip-data-viz': true,\n 'tooltip-data-viz--visible': this.visible,\n }}\n style={{ left: `${this.x}px`, top: `${this.y}px`, transform: `translate(${translateX}, ${translateY})` }}\n >\n <div class=\"tooltip-data-viz__item ds-control--md\">\n <ds-text\n class=\"tooltip-data-viz__label\"\n as=\"span\"\n variant=\"text-body-medium\"\n color=\"var(--color-translucent-foreground-secondary)\"\n >\n {this.label}\n </ds-text>\n <ds-text\n class=\"tooltip-data-viz__value\"\n as=\"span\"\n variant=\"text-body-medium\"\n emphasis\n color=\"var(--color-translucent-foreground-primary)\"\n >\n {this.value}\n </ds-text>\n </div>\n </Host>\n );\n }\n}\n",
|
|
221
|
-
"type": "registry:ui"
|
|
222
|
-
}
|
|
223
|
-
]
|
|
224
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
-
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
-
*/
|
|
5
|
-
import type { EventName, StencilReactComponent } from './react-runtime.js';
|
|
6
|
-
import { type DsCardDataVizCustomEvent } from "@ds-mo/ui";
|
|
7
|
-
import type { Components } from "@ds-mo/ui/dist/components";
|
|
8
|
-
import { DsCardDataViz as DsCardDataVizElement } from "@ds-mo/ui/dist/components/ds-card-data-viz.js";
|
|
9
|
-
export type DsCardDataVizEvents = {
|
|
10
|
-
onDsFilterClick: EventName<DsCardDataVizCustomEvent<void>>;
|
|
11
|
-
};
|
|
12
|
-
export declare const DsCardDataViz: StencilReactComponent<DsCardDataVizElement, DsCardDataVizEvents, Components.DsCardDataViz, 'heading'>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { createComponent } from './react-runtime.js';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { DsCardDataViz as DsCardDataVizElement, defineCustomElement as defineDsCardDataViz } from "@ds-mo/ui/dist/components/ds-card-data-viz.js";
|
|
5
|
-
export const DsCardDataViz = /*@__PURE__*/ createComponent({
|
|
6
|
-
tagName: 'ds-card-data-viz',
|
|
7
|
-
elementClass: DsCardDataVizElement,
|
|
8
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
9
|
-
react: React,
|
|
10
|
-
events: { onDsFilterClick: 'dsFilterClick' },
|
|
11
|
-
defineCustomElement: defineDsCardDataViz
|
|
12
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { createComponent } from './react-runtime.js';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { DsChartBar as DsChartBarElement, defineCustomElement as defineDsChartBar } from "@ds-mo/ui/dist/components/ds-chart-bar.js";
|
|
5
|
-
export const DsChartBar = /*@__PURE__*/ createComponent({
|
|
6
|
-
tagName: 'ds-chart-bar',
|
|
7
|
-
elementClass: DsChartBarElement,
|
|
8
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
9
|
-
react: React,
|
|
10
|
-
events: {},
|
|
11
|
-
defineCustomElement: defineDsChartBar
|
|
12
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
-
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
-
*/
|
|
5
|
-
import type { EventName, StencilReactComponent } from './react-runtime.js';
|
|
6
|
-
import { type ChartDatum, type DsChartDonutCustomEvent } from "@ds-mo/ui";
|
|
7
|
-
import type { Components } from "@ds-mo/ui/dist/components";
|
|
8
|
-
import { DsChartDonut as DsChartDonutElement } from "@ds-mo/ui/dist/components/ds-chart-donut.js";
|
|
9
|
-
export type DsChartDonutEvents = {
|
|
10
|
-
onDsSliceHover: EventName<DsChartDonutCustomEvent<ChartDatum | null>>;
|
|
11
|
-
};
|
|
12
|
-
export declare const DsChartDonut: StencilReactComponent<DsChartDonutElement, DsChartDonutEvents, Components.DsChartDonut>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { createComponent } from './react-runtime.js';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { DsChartDonut as DsChartDonutElement, defineCustomElement as defineDsChartDonut } from "@ds-mo/ui/dist/components/ds-chart-donut.js";
|
|
5
|
-
export const DsChartDonut = /*@__PURE__*/ createComponent({
|
|
6
|
-
tagName: 'ds-chart-donut',
|
|
7
|
-
elementClass: DsChartDonutElement,
|
|
8
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
9
|
-
react: React,
|
|
10
|
-
events: { onDsSliceHover: 'dsSliceHover' },
|
|
11
|
-
defineCustomElement: defineDsChartDonut
|
|
12
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
-
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
-
*/
|
|
5
|
-
import type { StencilReactComponent } from './react-runtime.js';
|
|
6
|
-
import type { Components } from "@ds-mo/ui/dist/components";
|
|
7
|
-
import { DsChartLine as DsChartLineElement } from "@ds-mo/ui/dist/components/ds-chart-line.js";
|
|
8
|
-
export type DsChartLineEvents = NonNullable<unknown>;
|
|
9
|
-
export declare const DsChartLine: StencilReactComponent<DsChartLineElement, DsChartLineEvents, Components.DsChartLine>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { createComponent } from './react-runtime.js';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { DsChartLine as DsChartLineElement, defineCustomElement as defineDsChartLine } from "@ds-mo/ui/dist/components/ds-chart-line.js";
|
|
5
|
-
export const DsChartLine = /*@__PURE__*/ createComponent({
|
|
6
|
-
tagName: 'ds-chart-line',
|
|
7
|
-
elementClass: DsChartLineElement,
|
|
8
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
9
|
-
react: React,
|
|
10
|
-
events: {},
|
|
11
|
-
defineCustomElement: defineDsChartLine
|
|
12
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
-
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
-
*/
|
|
5
|
-
import type { StencilReactComponent } from './react-runtime.js';
|
|
6
|
-
import type { Components } from "@ds-mo/ui/dist/components";
|
|
7
|
-
import { DsTooltipDataViz as DsTooltipDataVizElement } from "@ds-mo/ui/dist/components/ds-tooltip-data-viz.js";
|
|
8
|
-
export type DsTooltipDataVizEvents = NonNullable<unknown>;
|
|
9
|
-
export declare const DsTooltipDataViz: StencilReactComponent<DsTooltipDataVizElement, DsTooltipDataVizEvents, Components.DsTooltipDataViz>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { createComponent } from './react-runtime.js';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { DsTooltipDataViz as DsTooltipDataVizElement, defineCustomElement as defineDsTooltipDataViz } from "@ds-mo/ui/dist/components/ds-tooltip-data-viz.js";
|
|
5
|
-
export const DsTooltipDataViz = /*@__PURE__*/ createComponent({
|
|
6
|
-
tagName: 'ds-tooltip-data-viz',
|
|
7
|
-
elementClass: DsTooltipDataVizElement,
|
|
8
|
-
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
9
|
-
react: React,
|
|
10
|
-
events: {},
|
|
11
|
-
defineCustomElement: defineDsTooltipDataViz
|
|
12
|
-
});
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { ChartDatum, ChartSeries } from '../../utils/chart-types';
|
|
2
|
-
export type ChartBarVariant = 'single' | 'stacked' | 'percentage';
|
|
3
|
-
export declare class ChartBar {
|
|
4
|
-
/** Rendering model. Single uses `data`; stacked and percentage use `series` and `categories`. */
|
|
5
|
-
variant: ChartBarVariant;
|
|
6
|
-
/** Bars to render. Set as a JS property (not an HTML attribute). */
|
|
7
|
-
data: ChartDatum[];
|
|
8
|
-
/** Ordered stack series for stacked and percentage variants. Set as a JS property. */
|
|
9
|
-
series: ChartSeries[];
|
|
10
|
-
/** X-axis labels for stacked and percentage variants. Set as a JS property. */
|
|
11
|
-
categories: string[];
|
|
12
|
-
/** Standalone intrinsic width. Container constraints reflow the plot at rendered pixel size. */
|
|
13
|
-
width: number;
|
|
14
|
-
/** Standalone intrinsic height. Container constraints reflow the plot at rendered pixel size. */
|
|
15
|
-
height: number;
|
|
16
|
-
private viewport;
|
|
17
|
-
private viewportController;
|
|
18
|
-
private svgEl;
|
|
19
|
-
componentDidLoad(): void;
|
|
20
|
-
connectedCallback(): void;
|
|
21
|
-
componentDidRender(): void;
|
|
22
|
-
private connectViewportController;
|
|
23
|
-
disconnectedCallback(): void;
|
|
24
|
-
handleIntrinsicSizeChange(): void;
|
|
25
|
-
private renderSingle;
|
|
26
|
-
private valuesForCategory;
|
|
27
|
-
private stackedAccessibleLabel;
|
|
28
|
-
private renderStacked;
|
|
29
|
-
render(): any;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=ChartBar.d.ts.map
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import type { ChartDatum } from '../../utils/chart-types';
|
|
3
|
-
export declare class ChartDonut {
|
|
4
|
-
locale: string | undefined;
|
|
5
|
-
noDataLabel: string;
|
|
6
|
-
el: HTMLElement;
|
|
7
|
-
/** Slices to render. Set as a JS property (not an HTML attribute). */
|
|
8
|
-
data: ChartDatum[];
|
|
9
|
-
/**
|
|
10
|
-
* Explicit diameter in px. When unset, the donut sizes to its container
|
|
11
|
-
* (ResizeObserver) clamped between `--dimension-size-base * 16` (128px) and
|
|
12
|
-
* `* 24` (192px), and stays centered in the leftover space. Prefer unset
|
|
13
|
-
* inside card layouts.
|
|
14
|
-
*/
|
|
15
|
-
size: number | undefined;
|
|
16
|
-
/** Ring thickness — number (px) or TokoMo length. Defaults to `--dimension-size-200` (16px). */
|
|
17
|
-
thickness: number | string;
|
|
18
|
-
/** Corner radius on each slice — number (px) or TokoMo length. Defaults to `--dimension-radius-025` (2px). */
|
|
19
|
-
cornerRadius: number | string;
|
|
20
|
-
/** Gap between slices, in degrees. */
|
|
21
|
-
gap: number;
|
|
22
|
-
/**
|
|
23
|
-
* Show a chart-owned value callout for genuine pointer or keyboard focus.
|
|
24
|
-
* Disable when a visible legend already owns persistent label and value detail.
|
|
25
|
-
*/
|
|
26
|
-
showTooltip: boolean;
|
|
27
|
-
/** Primary center value; defaults to the sum of `data` values (e.g. "187", "40.9%"). */
|
|
28
|
-
centerValue: string | undefined;
|
|
29
|
-
/** Secondary caption below the center value (e.g. "Total", "Normal"). Rendered uppercase. */
|
|
30
|
-
centerCaption: string | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* Externally controlled highlight, matched by `label` — e.g. drive this from a sibling
|
|
33
|
-
* `ds-chart-legend`'s `dsItemHover` event to keep chart and legend hover in sync.
|
|
34
|
-
* Falls back to this component's own pointer/focus hover when unset.
|
|
35
|
-
* Slice hover dims peer slices and emits `dsSliceHover` for legend sync. External
|
|
36
|
-
* highlight never opens the local tooltip.
|
|
37
|
-
*/
|
|
38
|
-
activeLabel: string | null;
|
|
39
|
-
private hoveredLabel;
|
|
40
|
-
/** Center text, truncated with an ellipsis if it doesn't fit inside the inner circle. */
|
|
41
|
-
private displayedValueText;
|
|
42
|
-
private displayedCaptionText;
|
|
43
|
-
/** Measured fill diameter when `size` is unset. */
|
|
44
|
-
private measuredSize;
|
|
45
|
-
private tooltipX;
|
|
46
|
-
private tooltipY;
|
|
47
|
-
/** Fires with the hovered/focused slice's datum, or `null` on leave/blur. */
|
|
48
|
-
dsSliceHover: EventEmitter<ChartDatum | null>;
|
|
49
|
-
private valueTextEl?;
|
|
50
|
-
private captionTextEl?;
|
|
51
|
-
private resizeObserver;
|
|
52
|
-
private get isFillMode();
|
|
53
|
-
private get fillMinPx();
|
|
54
|
-
private get fillMaxPx();
|
|
55
|
-
/** Clamp available square side into the fill min/max band. */
|
|
56
|
-
private clampFillSize;
|
|
57
|
-
private get resolvedSize();
|
|
58
|
-
componentDidLoad(): void;
|
|
59
|
-
onSizePropChange(): void;
|
|
60
|
-
disconnectedCallback(): void;
|
|
61
|
-
private syncResizeObserver;
|
|
62
|
-
private measureHost;
|
|
63
|
-
private applyAvailableSize;
|
|
64
|
-
private teardownResizeObserver;
|
|
65
|
-
private handleHover;
|
|
66
|
-
private get tooltipDatum();
|
|
67
|
-
private updateTooltipFromPointer;
|
|
68
|
-
private updateTooltipFromSvgPoint;
|
|
69
|
-
componentDidRender(): void;
|
|
70
|
-
render(): any;
|
|
71
|
-
}
|
|
72
|
-
//# sourceMappingURL=ChartDonut.d.ts.map
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { ChartSeries } from '../../utils/chart-types';
|
|
2
|
-
export declare class ChartLine {
|
|
3
|
-
/** One or more series to plot. Set as a JS property (not an HTML attribute). */
|
|
4
|
-
series: ChartSeries[];
|
|
5
|
-
/** X-axis labels — must match each series' `data` length. Set as a JS property. */
|
|
6
|
-
categories: string[];
|
|
7
|
-
/** Standalone intrinsic width. Container constraints reflow the plot at rendered pixel size. */
|
|
8
|
-
width: number;
|
|
9
|
-
/** Standalone intrinsic height. Container constraints reflow the plot at rendered pixel size. */
|
|
10
|
-
height: number;
|
|
11
|
-
showPoints: boolean;
|
|
12
|
-
private viewport;
|
|
13
|
-
private viewportController;
|
|
14
|
-
private svgEl;
|
|
15
|
-
componentDidLoad(): void;
|
|
16
|
-
connectedCallback(): void;
|
|
17
|
-
componentDidRender(): void;
|
|
18
|
-
private connectViewportController;
|
|
19
|
-
disconnectedCallback(): void;
|
|
20
|
-
handleIntrinsicSizeChange(): void;
|
|
21
|
-
render(): any;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=ChartLine.d.ts.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|