@wodecorp/openui-vue-dashboard-library 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # `@wodecorp/openui-vue-dashboard-library`
1
+ # @wodecorp/openui-vue-dashboard-library
2
2
 
3
- Vue 3 port of OpenUI's interactive Dashboard library (`@openuidev/dashboard-library`), providing **45 structured analytics & visualization components** keyed on `Dashboard` as root, with D3 charts, `d3-geo` + `topojson-client` maps, interactive filters, comparison toggles, and data provenance binding.
3
+ Interactive BI & Analytics Dashboard library for OpenUI Vue 3 — 45 components including KPI cards, filter bars, tables, comparisons, trends, funnels, cohorts, US/World TopoJSON geo maps, and click-to-source data provenance.
4
4
 
5
- ## Installation
5
+ ## Install
6
6
 
7
7
  ```bash
8
8
  pnpm add @wodecorp/openui-vue-dashboard-library @wodecorp/openui-vue-lang @wodecorp/openui-vue-ui vue zod
@@ -10,17 +10,39 @@ pnpm add @wodecorp/openui-vue-dashboard-library @wodecorp/openui-vue-lang @wodec
10
10
 
11
11
  ## Usage
12
12
 
13
- ```ts
13
+ ```vue
14
+ <script setup lang="ts">
14
15
  import { Renderer } from "@wodecorp/openui-vue-lang";
15
- import { library, promptOptions, ThemeProvider } from "@wodecorp/openui-vue-dashboard-library";
16
+ import { library, ThemeProvider } from "@wodecorp/openui-vue-dashboard-library";
16
17
  import "@wodecorp/openui-vue-ui/index.css";
17
18
 
18
- const systemPrompt = library.prompt(promptOptions);
19
+ const program = [
20
+ "root = Dashboard([",
21
+ " FilterBar([",
22
+ ' PeriodPicker($period, [{value: "7d", label: "7D"}, {value: "30d", label: "30D"}])',
23
+ " ]),",
24
+ ' Section("Overview", [',
25
+ ' Kpis([Kpi("Revenue", 128400, "currency-compact", 112000), Kpi("Period", $period)]),',
26
+ ' Card("Regions", [GeoMap("us", ["CA", "NY", "TX"], [42000, 38000, 29000], "currency-compact")])',
27
+ " ])",
28
+ "])",
29
+ '$period = "30d"',
30
+ ].join("\n");
31
+ </script>
32
+
33
+ <template>
34
+ <ThemeProvider mode="light">
35
+ <Renderer :library="library" :response="program" :is-streaming="false" />
36
+ </ThemeProvider>
37
+ </template>
19
38
  ```
20
39
 
21
- ## Highlights
40
+ ## Key Exports
22
41
 
23
- - **45 components** across Structure, Metrics/KPIs, Filters, Trends, Comparison, Composition, Flow, Relationships, Geo/Point Maps, and Sortable Tables.
24
- - Named Zod schema `$defs` (`Format`, `Width`, `GoodWhen`) via `tagSchemaId`.
25
- - Real vector choropleth (`GeoMap`) and bubble (`PointMap`) maps using `d3-geo`, `topojson-client`, `world-atlas`, and `us-atlas`.
26
- - Reactive filter state (`PeriodPicker`, `DateRangeFilter`, `ChipFilter`, `SelectFilter`, `MultiSelectFilter`, `CompareToggle`) and DOM provenance via `bindSource`.
42
+ - `library` — OpenUI `Library` rooted at `"Dashboard"` with `Format` / `Width` / `GoodWhen` schema `$defs`
43
+ - `ThemeProvider` — Scoped light/dark dashboard theme provider (bridges `@wodecorp/openui-vue-ui` tokens)
44
+ - `dashboardComponents`, `componentGroups`, `promptOptions` — Component definitions and prompt generation options
45
+
46
+ ## License
47
+
48
+ MIT