@revolist/vue-charts 4.4.2 → 4.4.4
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 +22 -26
- package/package.json +3 -16
package/README.md
CHANGED
|
@@ -1,27 +1,24 @@
|
|
|
1
1
|
# RevoGrid Vue Charts
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A `RevoChart` component for Vue, backed by the standalone chart engine.
|
|
4
4
|
|
|
5
5
|
## Installation: public wrapper, private engine
|
|
6
6
|
|
|
7
|
-
The
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
The wrapper is configured for public npm publishing. The engine,
|
|
8
|
+
`@revolist/charts`, is a separate commercial package on GitHub Packages and
|
|
9
|
+
requires licensed access.
|
|
10
10
|
|
|
11
|
-
###
|
|
11
|
+
### Local workspace development
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
name and use the local package:
|
|
13
|
+
For local development in this monorepo, replace `your-app` with your workspace
|
|
14
|
+
name:
|
|
16
15
|
|
|
17
16
|
```sh
|
|
18
17
|
pnpm --filter your-app add "@revolist/vue-charts@workspace:*" "@revolist/charts@workspace:*"
|
|
19
18
|
pnpm build
|
|
20
19
|
```
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
### Registry installation after publication
|
|
21
|
+
### Registry installation
|
|
25
22
|
|
|
26
23
|
Configure your project's `.npmrc` for the engine, keeping credentials in your
|
|
27
24
|
environment:
|
|
@@ -38,15 +35,16 @@ would look for the wrapper on GitHub instead. Changing only the default
|
|
|
38
35
|
`--registry` does not override the scope mapping.
|
|
39
36
|
|
|
40
37
|
```sh
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
# Set VERSION to a published version of both packages.
|
|
39
|
+
VERSION=4.4.3
|
|
40
|
+
pnpm add "@revolist/charts@$VERSION"
|
|
41
|
+
pnpm add "https://registry.npmjs.org/@revolist/vue-charts/-/vue-charts-$VERSION.tgz"
|
|
43
42
|
```
|
|
44
43
|
|
|
45
|
-
Use
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
wrapper trial package is published.
|
|
44
|
+
Use a version published to both registries. The example version matches the
|
|
45
|
+
workspace manifest, not a publication guarantee. Commit your lockfile and
|
|
46
|
+
provide `GITHUB_PACKAGES_TOKEN` during CI installs. The engine requires authorized
|
|
47
|
+
access; there is no separate wrapper trial package.
|
|
50
48
|
|
|
51
49
|
```vue
|
|
52
50
|
<script setup lang="ts">
|
|
@@ -79,11 +77,10 @@ mapping, dataset, saved model, renderer, data source and chart settings as
|
|
|
79
77
|
`onError` belong inside `options`. Callback replacements take effect without
|
|
80
78
|
recreating a chart.
|
|
81
79
|
|
|
82
|
-
Replace `options` and changed nested values
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
input-mode changes and removed settings recreate it to restore engine defaults.
|
|
80
|
+
Replace `options` and changed nested values instead of mutating them in place.
|
|
81
|
+
In Vue, replace the ref value. Data and settings changes update the chart;
|
|
82
|
+
source replacements use `setDataSource`. Initialization settings, input-mode
|
|
83
|
+
changes and removed settings recreate the chart to restore defaults.
|
|
87
84
|
|
|
88
85
|
The host defaults to width `100%` and height `300px`. Override its dimensions with
|
|
89
86
|
framework styles. The engine observes resizing. No stylesheet, element
|
|
@@ -103,9 +100,8 @@ See the engine's [server rendering guide](../../docs/server-rendering.md).
|
|
|
103
100
|
|
|
104
101
|
## Building and distribution
|
|
105
102
|
|
|
106
|
-
|
|
107
|
-
`@revolist/charts`
|
|
108
|
-
`package.json`; the engine version follows the wrapper version.
|
|
103
|
+
Build from the monorepo root with `pnpm build`. The framework runtime and
|
|
104
|
+
`@revolist/charts` remain external; install the peers listed in `package.json`.
|
|
109
105
|
|
|
110
106
|
The normal charts release publishes this wrapper to public npmjs using the
|
|
111
107
|
repository's `NPM_TOKEN` secret. The private engine is published separately to
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revolist/vue-charts",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.4",
|
|
4
4
|
"description": "Vue components for RevoGrid Charts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Commercial",
|
|
@@ -18,27 +18,14 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@revolist/charts": "4.4.
|
|
21
|
+
"@revolist/charts": "4.4.4"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"vue": "^3.5.0"
|
|
25
25
|
},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"vue": "3.5.43",
|
|
28
|
-
"typescript": "~6.0.3"
|
|
29
|
-
},
|
|
30
|
-
"publishConfig": {
|
|
31
|
-
"registry": "https://registry.npmjs.org/",
|
|
32
|
-
"access": "public"
|
|
33
|
-
},
|
|
34
26
|
"repository": {
|
|
35
27
|
"type": "git",
|
|
36
28
|
"url": "https://github.com/revolist/revogrid-pro.git",
|
|
37
29
|
"directory": "packages/charts/packages/vue-charts"
|
|
38
|
-
},
|
|
39
|
-
"scripts": {
|
|
40
|
-
"build": "tsc -p tsconfig.json",
|
|
41
|
-
"lint": "tsc -p tsconfig.json --noEmit",
|
|
42
|
-
"test": "node --test --test-name-pattern=\"^vue charts\" ../../../../.github/workflows/chart-frameworks.test.mjs"
|
|
43
30
|
}
|
|
44
|
-
}
|
|
31
|
+
}
|