@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 CHANGED
@@ -1,64 +1,100 @@
1
- # Angular
1
+ # @ojiepermana/angular
2
2
 
3
- This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 22.0.0.
4
-
5
- ## Code scaffolding
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
- ng generate component component-name
8
+ bun add @ojiepermana/angular
9
+ # or: npm install @ojiepermana/angular
11
10
  ```
12
11
 
13
- For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
12
+ This single install resolves all five libraries as direct dependencies:
14
13
 
15
- ```bash
16
- ng generate --help
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
- ## Building
22
+ ## Peer dependencies
20
23
 
21
- To build the library, run:
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
- ng build angular
34
+ bun add @angular/material
25
35
  ```
26
36
 
27
- This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
37
+ Every other component is built on the Angular CDK + Tailwind tokens and needs no
38
+ Material.
28
39
 
29
- ### Publishing the Library
40
+ ## Importing — use the subpaths
30
41
 
31
- Once the project is built, you can publish your library by following these steps:
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
- 1. Navigate to the `dist` directory:
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
- ```bash
36
- cd dist/angular
37
- ```
53
+ // Charts
54
+ import { BarChart } from '@ojiepermana/chart/bar';
38
55
 
39
- 2. Run the `npm publish` command to publish your library to the npm registry:
40
- ```bash
41
- npm publish
42
- ```
56
+ // Theme provider
57
+ import { provideUiTheme } from '@ojiepermana/theme/styles';
58
+ ```
43
59
 
44
- ## Running unit tests
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
- To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
64
+ ## Theme & Tailwind v4 setup
47
65
 
48
- ```bash
49
- ng test
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
- ## Running end-to-end tests
76
+ Then register the provider:
53
77
 
54
- For end-to-end (e2e) testing, run:
78
+ ```ts
79
+ import { provideUiTheme } from '@ojiepermana/theme/styles';
55
80
 
56
- ```bash
57
- ng e2e
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
- Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
95
+ For privacy / offline / strict-CSP setups, leave it off and self-host the font in
96
+ your own stylesheet instead.
61
97
 
62
- ## Additional Resources
98
+ ## License
63
99
 
64
- For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
100
+ See the repository for license details.
@@ -1,11 +1,10 @@
1
- export * from '@ojiepermana/angular-chart';
1
+ export * from '@ojiepermana/chart';
2
2
 
3
3
  /*
4
4
  * Public API of @ojiepermana/angular/chart
5
- * Re-exports the independent @ojiepermana/angular-chart package.
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/angular-component';
1
+ export * from '@ojiepermana/component';
2
2
 
3
3
  /*
4
4
  * Public API of @ojiepermana/angular/component
5
- * Re-exports the independent @ojiepermana/angular-component package.
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/angular-navigation';
1
+ export * from '@ojiepermana/navigation';
2
2
 
3
3
  /*
4
4
  * Public API of @ojiepermana/angular/navigation
5
- * Re-exports the independent @ojiepermana/angular-navigation package.
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/angular-sdk';
1
+ export * from '@ojiepermana/sdk';
2
2
 
3
3
  /*
4
4
  * Public API of @ojiepermana/angular/sdk
5
- * Re-exports the independent @ojiepermana/angular-sdk package.
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/angular-theme';
1
+ export * from '@ojiepermana/theme';
2
2
 
3
3
  /*
4
4
  * Public API of @ojiepermana/angular/theme
5
- * Re-exports the independent @ojiepermana/angular-theme package.
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/angular-chart';
2
- export * from '@ojiepermana/angular-component';
3
- export * from '@ojiepermana/angular-navigation';
4
- export * from '@ojiepermana/angular-sdk';
5
- export * from '@ojiepermana/angular-theme';
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/angular-* packages.
11
- * Prefer the dedicated subpaths for precise imports, e.g.:
12
- * import { ... } from '@ojiepermana/angular/chart';
13
- * import { ... } from '@ojiepermana/angular/component';
14
- * import { ... } from '@ojiepermana/angular/navigation';
15
- * import { ... } from '@ojiepermana/angular/sdk';
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.27",
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/angular-chart';
1
+ export * from '@ojiepermana/chart';
@@ -1 +1 @@
1
- export * from '@ojiepermana/angular-component';
1
+ export * from '@ojiepermana/component';
@@ -1 +1 @@
1
- export * from '@ojiepermana/angular-navigation';
1
+ export * from '@ojiepermana/navigation';
@@ -1 +1 @@
1
- export * from '@ojiepermana/angular-sdk';
1
+ export * from '@ojiepermana/sdk';
@@ -1 +1 @@
1
- export * from '@ojiepermana/angular-theme';
1
+ export * from '@ojiepermana/theme';
@@ -1,5 +1,5 @@
1
- export * from '@ojiepermana/angular-chart';
2
- export * from '@ojiepermana/angular-component';
3
- export * from '@ojiepermana/angular-navigation';
4
- export * from '@ojiepermana/angular-sdk';
5
- export * from '@ojiepermana/angular-theme';
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"}