@ojiepermana/angular 22.0.27 → 22.0.31
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 +72 -36
- package/fesm2022/ojiepermana-angular-chart.mjs +3 -4
- package/fesm2022/ojiepermana-angular-component.mjs +3 -4
- package/fesm2022/ojiepermana-angular-navigation.mjs +3 -4
- package/fesm2022/ojiepermana-angular-sdk.mjs +3 -4
- package/fesm2022/ojiepermana-angular-theme.mjs +3 -4
- package/fesm2022/ojiepermana-angular.mjs +12 -14
- package/package.json +7 -7
- package/types/ojiepermana-angular-chart.d.ts +1 -1
- package/types/ojiepermana-angular-component.d.ts +1 -1
- package/types/ojiepermana-angular-navigation.d.ts +1 -1
- package/types/ojiepermana-angular-sdk.d.ts +1 -1
- package/types/ojiepermana-angular-theme.d.ts +1 -1
- package/types/ojiepermana-angular.d.ts +5 -5
- package/fesm2022/ojiepermana-angular-chart.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-navigation.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-sdk.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-theme.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -1,64 +1,100 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @ojiepermana/angular
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
3
|
+
Umbrella meta-package for the `@ojiepermana/*` design system (Angular v22+).
|
|
4
|
+
Installing it pulls in the whole suite in one command; you then import from the
|
|
5
|
+
per-feature **subpath entry points** that make up the public API.
|
|
8
6
|
|
|
9
7
|
```bash
|
|
10
|
-
|
|
8
|
+
bun add @ojiepermana/angular
|
|
9
|
+
# or: npm install @ojiepermana/angular
|
|
11
10
|
```
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
This single install resolves all five libraries as direct dependencies:
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
| Package | What it provides |
|
|
15
|
+
| -------------------------------- | ------------------------------------------------------- |
|
|
16
|
+
| `@ojiepermana/component` | UI components (button, dialog, table, …) + `icon` utils |
|
|
17
|
+
| `@ojiepermana/chart` | Chart families built on `d3-scale`/`d3-shape` |
|
|
18
|
+
| `@ojiepermana/navigation`| App shell / navigation container |
|
|
19
|
+
| `@ojiepermana/theme` | Theme provider, tokens, and Tailwind v4 CSS |
|
|
20
|
+
| `@ojiepermana/sdk` | OpenAPI → Angular SDK generator (schematics) |
|
|
18
21
|
|
|
19
|
-
##
|
|
22
|
+
## Peer dependencies
|
|
20
23
|
|
|
21
|
-
|
|
24
|
+
You must already have Angular v22+ in your app (`@angular/common`, `@angular/core`,
|
|
25
|
+
and for some libraries `@angular/forms`, `@angular/router`, `@angular/platform-browser`).
|
|
26
|
+
`@angular/cdk` is pulled in automatically (it is a direct dependency of
|
|
27
|
+
`-component`).
|
|
28
|
+
|
|
29
|
+
**`@angular/material` is optional.** Only three components wrap Material and
|
|
30
|
+
therefore require it: **`select`**, **`date-picker`**, and **`calendar`**. Install
|
|
31
|
+
it *only* if you import one of those:
|
|
22
32
|
|
|
23
33
|
```bash
|
|
24
|
-
|
|
34
|
+
bun add @angular/material
|
|
25
35
|
```
|
|
26
36
|
|
|
27
|
-
|
|
37
|
+
Every other component is built on the Angular CDK + Tailwind tokens and needs no
|
|
38
|
+
Material.
|
|
28
39
|
|
|
29
|
-
|
|
40
|
+
## Importing — use the subpaths
|
|
30
41
|
|
|
31
|
-
|
|
42
|
+
The package roots (`@ojiepermana/angular`, `@ojiepermana/angular/component`,
|
|
43
|
+
`@ojiepermana/angular/theme`) are intentionally **empty barrels**: re-exporting
|
|
44
|
+
~60 components from one root would defeat tree-shaking. Import each component from
|
|
45
|
+
its own entry point instead:
|
|
32
46
|
|
|
33
|
-
|
|
47
|
+
```ts
|
|
48
|
+
// Components — one entry point per component
|
|
49
|
+
import { Button } from '@ojiepermana/component/button';
|
|
50
|
+
import { Card } from '@ojiepermana/component/card';
|
|
51
|
+
import { Dialog } from '@ojiepermana/component/dialog';
|
|
34
52
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
```
|
|
53
|
+
// Charts
|
|
54
|
+
import { BarChart } from '@ojiepermana/chart/bar';
|
|
38
55
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
```
|
|
56
|
+
// Theme provider
|
|
57
|
+
import { provideUiTheme } from '@ojiepermana/theme/styles';
|
|
58
|
+
```
|
|
43
59
|
|
|
44
|
-
|
|
60
|
+
> The `@ojiepermana/angular/<lib>` subpaths exist as a convenience mirror, but the
|
|
61
|
+
> canonical, fully tree-shakeable imports are the `@ojiepermana/<lib>/<name>`
|
|
62
|
+
> entry points shown above.
|
|
45
63
|
|
|
46
|
-
|
|
64
|
+
## Theme & Tailwind v4 setup
|
|
47
65
|
|
|
48
|
-
|
|
49
|
-
|
|
66
|
+
Add the theme tokens, Tailwind, and the Tailwind token mapping to your global
|
|
67
|
+
stylesheet (the CSS ships inside the package and is reachable by name):
|
|
68
|
+
|
|
69
|
+
```css
|
|
70
|
+
/* styles.css */
|
|
71
|
+
@import '@ojiepermana/theme/theme.css'; /* base tokens + component styles */
|
|
72
|
+
@import 'tailwindcss';
|
|
73
|
+
@import '@ojiepermana/theme/styles/css/seasonal/base/tailwind.css'; /* maps tokens → bg-primary, text-foreground, … */
|
|
50
74
|
```
|
|
51
75
|
|
|
52
|
-
|
|
76
|
+
Then register the provider:
|
|
53
77
|
|
|
54
|
-
|
|
78
|
+
```ts
|
|
79
|
+
import { provideUiTheme } from '@ojiepermana/theme/styles';
|
|
55
80
|
|
|
56
|
-
|
|
57
|
-
|
|
81
|
+
export const appConfig = {
|
|
82
|
+
providers: [provideUiTheme({ mode: 'light', season: 'base' })],
|
|
83
|
+
};
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Material Symbols icons (opt-in)
|
|
87
|
+
|
|
88
|
+
By default `provideUiTheme()` makes **no external network request**. To preload the
|
|
89
|
+
Material Symbols font from Google Fonts, opt in explicitly:
|
|
90
|
+
|
|
91
|
+
```ts
|
|
92
|
+
provideUiTheme({ icons: { materialSymbols: true } });
|
|
58
93
|
```
|
|
59
94
|
|
|
60
|
-
|
|
95
|
+
For privacy / offline / strict-CSP setups, leave it off and self-host the font in
|
|
96
|
+
your own stylesheet instead.
|
|
61
97
|
|
|
62
|
-
##
|
|
98
|
+
## License
|
|
63
99
|
|
|
64
|
-
|
|
100
|
+
See the repository for license details.
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export * from '@ojiepermana/
|
|
1
|
+
export * from '@ojiepermana/chart';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Public API of @ojiepermana/angular/chart
|
|
5
|
-
* Re-exports the independent @ojiepermana/
|
|
5
|
+
* Re-exports the independent @ojiepermana/chart package.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Generated bundle index. Do not edit.
|
|
10
|
-
*/
|
|
11
|
-
//# sourceMappingURL=ojiepermana-angular-chart.mjs.map
|
|
10
|
+
*/
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export * from '@ojiepermana/
|
|
1
|
+
export * from '@ojiepermana/component';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Public API of @ojiepermana/angular/component
|
|
5
|
-
* Re-exports the independent @ojiepermana/
|
|
5
|
+
* Re-exports the independent @ojiepermana/component package.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Generated bundle index. Do not edit.
|
|
10
|
-
*/
|
|
11
|
-
//# sourceMappingURL=ojiepermana-angular-component.mjs.map
|
|
10
|
+
*/
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export * from '@ojiepermana/
|
|
1
|
+
export * from '@ojiepermana/navigation';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Public API of @ojiepermana/angular/navigation
|
|
5
|
-
* Re-exports the independent @ojiepermana/
|
|
5
|
+
* Re-exports the independent @ojiepermana/navigation package.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Generated bundle index. Do not edit.
|
|
10
|
-
*/
|
|
11
|
-
//# sourceMappingURL=ojiepermana-angular-navigation.mjs.map
|
|
10
|
+
*/
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export * from '@ojiepermana/
|
|
1
|
+
export * from '@ojiepermana/sdk';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Public API of @ojiepermana/angular/sdk
|
|
5
|
-
* Re-exports the independent @ojiepermana/
|
|
5
|
+
* Re-exports the independent @ojiepermana/sdk package.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Generated bundle index. Do not edit.
|
|
10
|
-
*/
|
|
11
|
-
//# sourceMappingURL=ojiepermana-angular-sdk.mjs.map
|
|
10
|
+
*/
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export * from '@ojiepermana/
|
|
1
|
+
export * from '@ojiepermana/theme';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Public API of @ojiepermana/angular/theme
|
|
5
|
-
* Re-exports the independent @ojiepermana/
|
|
5
|
+
* Re-exports the independent @ojiepermana/theme package.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Generated bundle index. Do not edit.
|
|
10
|
-
*/
|
|
11
|
-
//# sourceMappingURL=ojiepermana-angular-theme.mjs.map
|
|
10
|
+
*/
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
export * from '@ojiepermana/
|
|
2
|
-
export * from '@ojiepermana/
|
|
3
|
-
export * from '@ojiepermana/
|
|
4
|
-
export * from '@ojiepermana/
|
|
5
|
-
export * from '@ojiepermana/
|
|
1
|
+
export * from '@ojiepermana/chart';
|
|
2
|
+
export * from '@ojiepermana/component';
|
|
3
|
+
export * from '@ojiepermana/navigation';
|
|
4
|
+
export * from '@ojiepermana/sdk';
|
|
5
|
+
export * from '@ojiepermana/theme';
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
* Public API of @ojiepermana/angular
|
|
9
9
|
*
|
|
10
|
-
* Umbrella wrapper around the independent @ojiepermana
|
|
11
|
-
* Prefer the dedicated subpaths for precise imports, e.g.:
|
|
12
|
-
* import {
|
|
13
|
-
* import {
|
|
14
|
-
* import {
|
|
15
|
-
*
|
|
16
|
-
* import { ... } from '@ojiepermana/angular/theme';
|
|
10
|
+
* Umbrella wrapper around the independent @ojiepermana/* packages.
|
|
11
|
+
* Prefer the dedicated package subpaths for precise, tree-shakeable imports, e.g.:
|
|
12
|
+
* import { BarChart } from '@ojiepermana/chart/bar';
|
|
13
|
+
* import { Button } from '@ojiepermana/component/button';
|
|
14
|
+
* import { provideUiTheme } from '@ojiepermana/theme/styles';
|
|
15
|
+
* (The @ojiepermana/angular/<lib> subpaths below are a convenience mirror.)
|
|
17
16
|
*/
|
|
18
17
|
|
|
19
18
|
/**
|
|
20
19
|
* Generated bundle index. Do not edit.
|
|
21
|
-
*/
|
|
22
|
-
//# sourceMappingURL=ojiepermana-angular.mjs.map
|
|
20
|
+
*/
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ojiepermana/angular",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.31",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^22.0.0",
|
|
6
|
-
"@angular/core": "^22.0.0"
|
|
7
|
-
"@ojiepermana/angular-chart": "^22.0.27",
|
|
8
|
-
"@ojiepermana/angular-component": "^22.0.27",
|
|
9
|
-
"@ojiepermana/angular-navigation": "^22.0.27",
|
|
10
|
-
"@ojiepermana/angular-sdk": "^22.0.27",
|
|
11
|
-
"@ojiepermana/angular-theme": "^22.0.27"
|
|
6
|
+
"@angular/core": "^22.0.0"
|
|
12
7
|
},
|
|
13
8
|
"dependencies": {
|
|
9
|
+
"@ojiepermana/chart": "^22.0.31",
|
|
10
|
+
"@ojiepermana/component": "^22.0.31",
|
|
11
|
+
"@ojiepermana/navigation": "^22.0.31",
|
|
12
|
+
"@ojiepermana/sdk": "^22.0.31",
|
|
13
|
+
"@ojiepermana/theme": "^22.0.31",
|
|
14
14
|
"tslib": "^2.3.0"
|
|
15
15
|
},
|
|
16
16
|
"publishConfig": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@ojiepermana/
|
|
1
|
+
export * from '@ojiepermana/chart';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@ojiepermana/
|
|
1
|
+
export * from '@ojiepermana/component';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@ojiepermana/
|
|
1
|
+
export * from '@ojiepermana/navigation';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@ojiepermana/
|
|
1
|
+
export * from '@ojiepermana/sdk';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@ojiepermana/
|
|
1
|
+
export * from '@ojiepermana/theme';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from '@ojiepermana/
|
|
2
|
-
export * from '@ojiepermana/
|
|
3
|
-
export * from '@ojiepermana/
|
|
4
|
-
export * from '@ojiepermana/
|
|
5
|
-
export * from '@ojiepermana/
|
|
1
|
+
export * from '@ojiepermana/chart';
|
|
2
|
+
export * from '@ojiepermana/component';
|
|
3
|
+
export * from '@ojiepermana/navigation';
|
|
4
|
+
export * from '@ojiepermana/sdk';
|
|
5
|
+
export * from '@ojiepermana/theme';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ojiepermana-angular-chart.mjs","sources":["../../../../library/angular/chart/public-api.ts","../../../../library/angular/chart/ojiepermana-angular-chart.ts"],"sourcesContent":["/*\n * Public API of @ojiepermana/angular/chart\n * Re-exports the independent @ojiepermana/angular-chart package.\n */\n\nexport * from '@ojiepermana/angular-chart';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;;AAGG;;ACHH;;AAEG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ojiepermana-angular-component.mjs","sources":["../../../../library/angular/component/public-api.ts","../../../../library/angular/component/ojiepermana-angular-component.ts"],"sourcesContent":["/*\n * Public API of @ojiepermana/angular/component\n * Re-exports the independent @ojiepermana/angular-component package.\n */\n\nexport * from '@ojiepermana/angular-component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;;AAGG;;ACHH;;AAEG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ojiepermana-angular-navigation.mjs","sources":["../../../../library/angular/navigation/public-api.ts","../../../../library/angular/navigation/ojiepermana-angular-navigation.ts"],"sourcesContent":["/*\n * Public API of @ojiepermana/angular/navigation\n * Re-exports the independent @ojiepermana/angular-navigation package.\n */\n\nexport * from '@ojiepermana/angular-navigation';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;;AAGG;;ACHH;;AAEG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ojiepermana-angular-sdk.mjs","sources":["../../../../library/angular/sdk/public-api.ts","../../../../library/angular/sdk/ojiepermana-angular-sdk.ts"],"sourcesContent":["/*\n * Public API of @ojiepermana/angular/sdk\n * Re-exports the independent @ojiepermana/angular-sdk package.\n */\n\nexport * from '@ojiepermana/angular-sdk';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;;AAGG;;ACHH;;AAEG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ojiepermana-angular-theme.mjs","sources":["../../../../library/angular/theme/public-api.ts","../../../../library/angular/theme/ojiepermana-angular-theme.ts"],"sourcesContent":["/*\n * Public API of @ojiepermana/angular/theme\n * Re-exports the independent @ojiepermana/angular-theme package.\n */\n\nexport * from '@ojiepermana/angular-theme';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;;AAGG;;ACHH;;AAEG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ojiepermana-angular.mjs","sources":["../../../../library/angular/src/public-api.ts","../../../../library/angular/src/ojiepermana-angular.ts"],"sourcesContent":["/*\n * Public API of @ojiepermana/angular\n *\n * Umbrella wrapper around the independent @ojiepermana/angular-* packages.\n * Prefer the dedicated subpaths for precise imports, e.g.:\n * import { ... } from '@ojiepermana/angular/chart';\n * import { ... } from '@ojiepermana/angular/component';\n * import { ... } from '@ojiepermana/angular/navigation';\n * import { ... } from '@ojiepermana/angular/sdk';\n * import { ... } from '@ojiepermana/angular/theme';\n */\n\nexport * from '@ojiepermana/angular-chart';\nexport * from '@ojiepermana/angular-component';\nexport * from '@ojiepermana/angular-navigation';\nexport * from '@ojiepermana/angular-sdk';\nexport * from '@ojiepermana/angular-theme';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;AAUG;;ACVH;;AAEG"}
|