@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 +33 -11
- package/dist/index.cjs +354 -189
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +354 -189
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -9
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @wodecorp/openui-vue-dashboard-library
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
##
|
|
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
|
-
```
|
|
13
|
+
```vue
|
|
14
|
+
<script setup lang="ts">
|
|
14
15
|
import { Renderer } from "@wodecorp/openui-vue-lang";
|
|
15
|
-
import { library,
|
|
16
|
+
import { library, ThemeProvider } from "@wodecorp/openui-vue-dashboard-library";
|
|
16
17
|
import "@wodecorp/openui-vue-ui/index.css";
|
|
17
18
|
|
|
18
|
-
const
|
|
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
|
-
##
|
|
40
|
+
## Key Exports
|
|
22
41
|
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
|
|
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
|