@heartlandone/vega-angular 1.3.0 → 1.3.3
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 +9 -55
- package/dist/README.md +9 -55
- package/dist/package.json +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Vega Angular
|
|
2
|
+
|
|
3
|
+
> Angular specific wrapper for [@heartlandone/vega](https://www.npmjs.com/package/@heartlandone/vega)
|
|
4
|
+
|
|
5
|
+
## How to use
|
|
6
|
+
|
|
7
|
+
For installation guidance, please refer to https://vega.hlprd.com/guides/getting-started-developers#angular
|
|
8
|
+
|
|
9
|
+
## For development
|
|
2
10
|
|
|
3
11
|
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
|
4
12
|
|
|
@@ -19,60 +27,6 @@ This is the Angular specific wrapper for [@heartlandone/vega](https://gitlab.com
|
|
|
19
27
|
* `./src/lib/stencil-generated/components.ts`: stencil auto-generated angular directive proxies which can be used as angular components after import
|
|
20
28
|
* `./src/lib/stencil-generated/angular-component-lib/utils.ts`: utility class including proxy related functions used by `components.ts`
|
|
21
29
|
|
|
22
|
-
## How to use
|
|
23
|
-
|
|
24
|
-
Before installing the packages under `@heartland` namespace, make sure you have the right npm registry setup by running
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
> npm config set @heartlandone:registry https://gitlab.com/api/v4/projects/27998157/packages/npm/
|
|
28
|
-
> npm config set -- '//gitlab.example.com/api/v4/projects/27998157/packages/npm/:_authToken' "<your_access_token>"
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
and verified the `~/.npmrc` is updated correctly as below:
|
|
32
|
-
|
|
33
|
-
```text
|
|
34
|
-
@heartlandone:registry=https://gitlab.com/api/v4/projects/27998157/packages/npm/
|
|
35
|
-
//gitlab.com/api/v4/projects/27998157/packages/npm/:_authToken=<your_access_token>
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
Install the lib to your angular package by running:
|
|
39
|
-
```bash
|
|
40
|
-
> npm install @heartlandone/vega-angular
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
Add the Vega CSS file (`vega.css` or `vega_min.css`) into `angular.json`
|
|
45
|
-
|
|
46
|
-
```json
|
|
47
|
-
"styles": [
|
|
48
|
-
... ...
|
|
49
|
-
"node_modules/@heartlandone/vega/style/vega.css"
|
|
50
|
-
]
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
Import the `VegaComponentModule` to your app module for introducing the vega components, e.g.:
|
|
54
|
-
```ts
|
|
55
|
-
/** app.module.ts */
|
|
56
|
-
|
|
57
|
-
import { NgModule } from '@angular/core';
|
|
58
|
-
import { AppComponent } from './app.component';
|
|
59
|
-
import { VegaComponentModule } from '@heartlandone/vega-angular';
|
|
60
|
-
|
|
61
|
-
@NgModule({
|
|
62
|
-
declarations: [AppComponent],
|
|
63
|
-
imports: [VegaComponentModule],
|
|
64
|
-
providers: [],
|
|
65
|
-
bootstrap: [AppComponent],
|
|
66
|
-
})
|
|
67
|
-
export class AppModule {}
|
|
68
|
-
```
|
|
69
|
-
Then introduce the vega component into your template:
|
|
70
|
-
```html
|
|
71
|
-
<!-- app.component.html -->
|
|
72
|
-
<vega-button variant='primary' label='checkout'></vega-button>
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## For development
|
|
76
30
|
|
|
77
31
|
### Pre-requisite
|
|
78
32
|
Make sure all the dependencies has been installed by running
|
package/dist/README.md
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Vega Angular
|
|
2
|
+
|
|
3
|
+
> Angular specific wrapper for [@heartlandone/vega](https://www.npmjs.com/package/@heartlandone/vega)
|
|
4
|
+
|
|
5
|
+
## How to use
|
|
6
|
+
|
|
7
|
+
For installation guidance, please refer to https://vega.hlprd.com/guides/getting-started-developers#angular
|
|
8
|
+
|
|
9
|
+
## For development
|
|
2
10
|
|
|
3
11
|
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
|
4
12
|
|
|
@@ -19,60 +27,6 @@ This is the Angular specific wrapper for [@heartlandone/vega](https://gitlab.com
|
|
|
19
27
|
* `./src/lib/stencil-generated/components.ts`: stencil auto-generated angular directive proxies which can be used as angular components after import
|
|
20
28
|
* `./src/lib/stencil-generated/angular-component-lib/utils.ts`: utility class including proxy related functions used by `components.ts`
|
|
21
29
|
|
|
22
|
-
## How to use
|
|
23
|
-
|
|
24
|
-
Before installing the packages under `@heartland` namespace, make sure you have the right npm registry setup by running
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
> npm config set @heartlandone:registry https://gitlab.com/api/v4/projects/27998157/packages/npm/
|
|
28
|
-
> npm config set -- '//gitlab.example.com/api/v4/projects/27998157/packages/npm/:_authToken' "<your_access_token>"
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
and verified the `~/.npmrc` is updated correctly as below:
|
|
32
|
-
|
|
33
|
-
```text
|
|
34
|
-
@heartlandone:registry=https://gitlab.com/api/v4/projects/27998157/packages/npm/
|
|
35
|
-
//gitlab.com/api/v4/projects/27998157/packages/npm/:_authToken=<your_access_token>
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
Install the lib to your angular package by running:
|
|
39
|
-
```bash
|
|
40
|
-
> npm install @heartlandone/vega-angular
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
Add the Vega CSS file (`vega.css` or `vega_min.css`) into `angular.json`
|
|
45
|
-
|
|
46
|
-
```json
|
|
47
|
-
"styles": [
|
|
48
|
-
... ...
|
|
49
|
-
"node_modules/@heartlandone/vega/style/vega.css"
|
|
50
|
-
]
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
Import the `VegaComponentModule` to your app module for introducing the vega components, e.g.:
|
|
54
|
-
```ts
|
|
55
|
-
/** app.module.ts */
|
|
56
|
-
|
|
57
|
-
import { NgModule } from '@angular/core';
|
|
58
|
-
import { AppComponent } from './app.component';
|
|
59
|
-
import { VegaComponentModule } from '@heartlandone/vega-angular';
|
|
60
|
-
|
|
61
|
-
@NgModule({
|
|
62
|
-
declarations: [AppComponent],
|
|
63
|
-
imports: [VegaComponentModule],
|
|
64
|
-
providers: [],
|
|
65
|
-
bootstrap: [AppComponent],
|
|
66
|
-
})
|
|
67
|
-
export class AppModule {}
|
|
68
|
-
```
|
|
69
|
-
Then introduce the vega component into your template:
|
|
70
|
-
```html
|
|
71
|
-
<!-- app.component.html -->
|
|
72
|
-
<vega-button variant='primary' label='checkout'></vega-button>
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## For development
|
|
76
30
|
|
|
77
31
|
### Pre-requisite
|
|
78
32
|
Make sure all the dependencies has been installed by running
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heartlandone/vega-angular",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.3",
|
|
5
5
|
"description": "Angular specific wrapper for @heartlandone/vega",
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"@angular/common": ">=12.0.0",
|
|
@@ -17,20 +17,20 @@
|
|
|
17
17
|
"stencil-postbuild": "node ./src/scripts/stencil-post-build-script.js",
|
|
18
18
|
"release": "../../node_modules/@angular/cli/bin/ng.js build vega-angular",
|
|
19
19
|
"version": "npm run release",
|
|
20
|
-
"publish:patch": "
|
|
21
|
-
"publish:minor": "
|
|
22
|
-
"publish:major": "
|
|
20
|
+
"publish:patch": "node ../../../scripts/publish-version.js patch",
|
|
21
|
+
"publish:minor": "node ../../../scripts/publish-version.js minor",
|
|
22
|
+
"publish:major": "node ../../../scripts/publish-version.js major"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
26
|
"url": "https://gitlab.com/heartland1/vega/tiger/vega-angular-workspace/projects/vega-angular"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@heartlandone/vega": "
|
|
29
|
+
"@heartlandone/vega": "1.3.3",
|
|
30
30
|
"tslib": "^2.3.0"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"directory": "dist"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {}
|
|
36
|
-
}
|
|
36
|
+
}
|