@ojiepermana/angular 21.2.2 → 21.3.0
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 +119 -23
- package/fesm2022/ojiepermana-angular-layout-theme.mjs +581 -0
- package/fesm2022/ojiepermana-angular-layout-theme.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout.mjs +2 -1
- package/fesm2022/ojiepermana-angular-layout.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-navigation-icon.mjs +59 -0
- package/fesm2022/ojiepermana-angular-navigation-icon.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-navigation.mjs +6 -58
- package/fesm2022/ojiepermana-angular-navigation.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-theme.mjs +1 -1
- package/fesm2022/ojiepermana-angular-theme.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-ui-component-accordion.mjs +174 -0
- package/fesm2022/ojiepermana-angular-ui-component-accordion.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-alert-dialog.mjs +242 -0
- package/fesm2022/ojiepermana-angular-ui-component-alert-dialog.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-alert.mjs +90 -0
- package/fesm2022/ojiepermana-angular-ui-component-alert.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-aspect-ratio.mjs +33 -0
- package/fesm2022/ojiepermana-angular-ui-component-aspect-ratio.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-avatar.mjs +123 -0
- package/fesm2022/ojiepermana-angular-ui-component-avatar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-badge.mjs +47 -0
- package/fesm2022/ojiepermana-angular-ui-component-badge.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-breadcrumb.mjs +186 -0
- package/fesm2022/ojiepermana-angular-ui-component-breadcrumb.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-button-group.mjs +95 -0
- package/fesm2022/ojiepermana-angular-ui-component-button-group.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-button.mjs +64 -0
- package/fesm2022/ojiepermana-angular-ui-component-button.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-calendar.mjs +78 -0
- package/fesm2022/ojiepermana-angular-ui-component-calendar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-card.mjs +137 -0
- package/fesm2022/ojiepermana-angular-ui-component-card.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-carousel.mjs +310 -0
- package/fesm2022/ojiepermana-angular-ui-component-carousel.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-chart-area.mjs +6 -0
- package/fesm2022/ojiepermana-angular-ui-component-chart-area.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-chart-bar.mjs +6 -0
- package/fesm2022/ojiepermana-angular-ui-component-chart-bar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-chart-line.mjs +6 -0
- package/fesm2022/ojiepermana-angular-ui-component-chart-line.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-chart-pie.mjs +6 -0
- package/fesm2022/ojiepermana-angular-ui-component-chart-pie.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-chart-radar.mjs +6 -0
- package/fesm2022/ojiepermana-angular-ui-component-chart-radar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-chart-radial.mjs +6 -0
- package/fesm2022/ojiepermana-angular-ui-component-chart-radial.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-chart-scatter.mjs +6 -0
- package/fesm2022/ojiepermana-angular-ui-component-chart-scatter.mjs.map +1 -0
- package/fesm2022/{ojiepermana-angular-chart.mjs → ojiepermana-angular-ui-component-chart.mjs} +2 -2
- package/fesm2022/ojiepermana-angular-ui-component-chart.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-checkbox.mjs +104 -0
- package/fesm2022/ojiepermana-angular-ui-component-checkbox.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-collapsible.mjs +116 -0
- package/fesm2022/ojiepermana-angular-ui-component-collapsible.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-combobox.mjs +263 -0
- package/fesm2022/ojiepermana-angular-ui-component-combobox.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-command.mjs +268 -0
- package/fesm2022/ojiepermana-angular-ui-component-command.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-context-menu.mjs +100 -0
- package/fesm2022/ojiepermana-angular-ui-component-context-menu.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-date-picker.mjs +155 -0
- package/fesm2022/ojiepermana-angular-ui-component-date-picker.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-dialog.mjs +262 -0
- package/fesm2022/ojiepermana-angular-ui-component-dialog.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-drawer.mjs +6 -0
- package/fesm2022/ojiepermana-angular-ui-component-drawer.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-dropdown-menu.mjs +458 -0
- package/fesm2022/ojiepermana-angular-ui-component-dropdown-menu.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-form.mjs +208 -0
- package/fesm2022/ojiepermana-angular-ui-component-form.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-input-group.mjs +164 -0
- package/fesm2022/ojiepermana-angular-ui-component-input-group.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-input.mjs +43 -0
- package/fesm2022/ojiepermana-angular-ui-component-input.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-item.mjs +241 -0
- package/fesm2022/ojiepermana-angular-ui-component-item.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-label.mjs +30 -0
- package/fesm2022/ojiepermana-angular-ui-component-label.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-pagination.mjs +192 -0
- package/fesm2022/ojiepermana-angular-ui-component-pagination.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-popover.mjs +163 -0
- package/fesm2022/ojiepermana-angular-ui-component-popover.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-progress.mjs +53 -0
- package/fesm2022/ojiepermana-angular-ui-component-progress.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-radio.mjs +92 -0
- package/fesm2022/ojiepermana-angular-ui-component-radio.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-scroll-area.mjs +48 -0
- package/fesm2022/ojiepermana-angular-ui-component-scroll-area.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-select.mjs +131 -0
- package/fesm2022/ojiepermana-angular-ui-component-select.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-separator.mjs +33 -0
- package/fesm2022/ojiepermana-angular-ui-component-separator.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-sheet.mjs +235 -0
- package/fesm2022/ojiepermana-angular-ui-component-sheet.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-skeleton.mjs +29 -0
- package/fesm2022/ojiepermana-angular-ui-component-skeleton.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-slider.mjs +29 -0
- package/fesm2022/ojiepermana-angular-ui-component-slider.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-switch.mjs +84 -0
- package/fesm2022/ojiepermana-angular-ui-component-switch.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-table.mjs +139 -0
- package/fesm2022/ojiepermana-angular-ui-component-table.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-tabs.mjs +252 -0
- package/fesm2022/ojiepermana-angular-ui-component-tabs.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-textarea.mjs +37 -0
- package/fesm2022/ojiepermana-angular-ui-component-textarea.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-toast.mjs +47 -0
- package/fesm2022/ojiepermana-angular-ui-component-toast.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-tooltip.mjs +56 -0
- package/fesm2022/ojiepermana-angular-ui-component-tooltip.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-ui-component-utils.mjs +13 -0
- package/fesm2022/ojiepermana-angular-ui-component-utils.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular.mjs +5 -3
- package/fesm2022/ojiepermana-angular.mjs.map +1 -1
- package/layout/theme/package.json +4 -0
- package/navigation-icon/package.json +4 -0
- package/package.json +212 -12
- package/types/ojiepermana-angular-layout-theme.d.ts +205 -0
- package/types/ojiepermana-angular-layout.d.ts +1 -1
- package/types/ojiepermana-angular-navigation-icon.d.ts +17 -0
- package/types/ojiepermana-angular-navigation.d.ts +2 -20
- package/types/ojiepermana-angular-ui-component-accordion.d.ts +51 -0
- package/types/ojiepermana-angular-ui-component-alert-dialog.d.ts +93 -0
- package/types/ojiepermana-angular-ui-component-alert.d.ts +37 -0
- package/types/ojiepermana-angular-ui-component-aspect-ratio.d.ts +12 -0
- package/types/ojiepermana-angular-ui-component-avatar.d.ts +51 -0
- package/types/ojiepermana-angular-ui-component-badge.d.ts +19 -0
- package/types/ojiepermana-angular-ui-component-breadcrumb.d.ts +46 -0
- package/types/ojiepermana-angular-ui-component-button-group.d.ts +26 -0
- package/types/ojiepermana-angular-ui-component-button.d.ts +22 -0
- package/types/ojiepermana-angular-ui-component-calendar.d.ts +33 -0
- package/types/ojiepermana-angular-ui-component-card.d.ts +60 -0
- package/types/ojiepermana-angular-ui-component-carousel.d.ts +86 -0
- package/types/ojiepermana-angular-ui-component-chart-area.d.ts +1 -0
- package/types/ojiepermana-angular-ui-component-chart-bar.d.ts +1 -0
- package/types/ojiepermana-angular-ui-component-chart-line.d.ts +1 -0
- package/types/ojiepermana-angular-ui-component-chart-pie.d.ts +1 -0
- package/types/ojiepermana-angular-ui-component-chart-radar.d.ts +1 -0
- package/types/ojiepermana-angular-ui-component-chart-radial.d.ts +1 -0
- package/types/ojiepermana-angular-ui-component-chart-scatter.d.ts +1 -0
- package/types/{ojiepermana-angular-chart.d.ts → ojiepermana-angular-ui-component-chart.d.ts} +15 -15
- package/types/ojiepermana-angular-ui-component-checkbox.d.ts +35 -0
- package/types/ojiepermana-angular-ui-component-collapsible.d.ts +42 -0
- package/types/ojiepermana-angular-ui-component-combobox.d.ts +51 -0
- package/types/ojiepermana-angular-ui-component-command.d.ts +99 -0
- package/types/ojiepermana-angular-ui-component-context-menu.d.ts +35 -0
- package/types/ojiepermana-angular-ui-component-date-picker.d.ts +41 -0
- package/types/ojiepermana-angular-ui-component-dialog.d.ts +87 -0
- package/types/ojiepermana-angular-ui-component-drawer.d.ts +1 -0
- package/types/ojiepermana-angular-ui-component-dropdown-menu.d.ts +135 -0
- package/types/ojiepermana-angular-ui-component-form.d.ts +92 -0
- package/types/ojiepermana-angular-ui-component-input-group.d.ts +51 -0
- package/types/ojiepermana-angular-ui-component-input.d.ts +16 -0
- package/types/ojiepermana-angular-ui-component-item.d.ts +88 -0
- package/types/ojiepermana-angular-ui-component-label.d.ts +11 -0
- package/types/ojiepermana-angular-ui-component-pagination.d.ts +27 -0
- package/types/ojiepermana-angular-ui-component-popover.d.ts +43 -0
- package/types/ojiepermana-angular-ui-component-progress.d.ts +17 -0
- package/types/ojiepermana-angular-ui-component-radio.d.ts +34 -0
- package/types/ojiepermana-angular-ui-component-scroll-area.d.ts +19 -0
- package/types/ojiepermana-angular-ui-component-select.d.ts +45 -0
- package/types/ojiepermana-angular-ui-component-separator.d.ts +14 -0
- package/types/ojiepermana-angular-ui-component-sheet.d.ts +74 -0
- package/types/ojiepermana-angular-ui-component-skeleton.d.ts +10 -0
- package/types/ojiepermana-angular-ui-component-slider.d.ts +16 -0
- package/types/ojiepermana-angular-ui-component-switch.d.ts +30 -0
- package/types/ojiepermana-angular-ui-component-table.d.ts +52 -0
- package/types/ojiepermana-angular-ui-component-tabs.d.ts +92 -0
- package/types/ojiepermana-angular-ui-component-textarea.d.ts +12 -0
- package/types/ojiepermana-angular-ui-component-toast.d.ts +29 -0
- package/types/ojiepermana-angular-ui-component-tooltip.d.ts +22 -0
- package/types/ojiepermana-angular-ui-component-utils.d.ts +5 -0
- package/ui/component/accordion/package.json +4 -0
- package/ui/component/alert/package.json +4 -0
- package/ui/component/alert-dialog/package.json +4 -0
- package/ui/component/aspect-ratio/package.json +4 -0
- package/ui/component/avatar/package.json +4 -0
- package/ui/component/badge/package.json +4 -0
- package/ui/component/breadcrumb/package.json +4 -0
- package/ui/component/button/package.json +4 -0
- package/ui/component/button-group/package.json +4 -0
- package/ui/component/calendar/package.json +4 -0
- package/ui/component/card/package.json +4 -0
- package/ui/component/carousel/package.json +4 -0
- package/ui/component/chart/README.md +249 -0
- package/ui/component/chart/area/package.json +4 -0
- package/ui/component/chart/bar/package.json +4 -0
- package/ui/component/chart/line/package.json +4 -0
- package/ui/component/chart/package.json +4 -0
- package/ui/component/chart/pie/package.json +4 -0
- package/ui/component/chart/radar/package.json +4 -0
- package/ui/component/chart/radial/package.json +4 -0
- package/ui/component/chart/scatter/package.json +4 -0
- package/ui/component/checkbox/package.json +4 -0
- package/ui/component/collapsible/package.json +4 -0
- package/ui/component/combobox/package.json +4 -0
- package/ui/component/command/package.json +4 -0
- package/ui/component/context-menu/package.json +4 -0
- package/ui/component/date-picker/package.json +4 -0
- package/ui/component/dialog/package.json +4 -0
- package/ui/component/drawer/package.json +4 -0
- package/ui/component/dropdown-menu/package.json +4 -0
- package/ui/component/form/package.json +4 -0
- package/ui/component/input/package.json +4 -0
- package/ui/component/input-group/package.json +4 -0
- package/ui/component/item/package.json +4 -0
- package/ui/component/label/package.json +4 -0
- package/ui/component/pagination/package.json +4 -0
- package/ui/component/popover/package.json +4 -0
- package/ui/component/progress/package.json +4 -0
- package/ui/component/radio/package.json +4 -0
- package/ui/component/scroll-area/package.json +4 -0
- package/ui/component/select/package.json +4 -0
- package/ui/component/separator/package.json +4 -0
- package/ui/component/sheet/package.json +4 -0
- package/ui/component/skeleton/package.json +4 -0
- package/ui/component/slider/package.json +4 -0
- package/ui/component/switch/package.json +4 -0
- package/ui/component/table/package.json +4 -0
- package/ui/component/tabs/package.json +4 -0
- package/ui/component/textarea/package.json +4 -0
- package/ui/component/toast/package.json +4 -0
- package/ui/component/tooltip/package.json +4 -0
- package/ui/component/utils/package.json +4 -0
- package/chart/README.md +0 -0
- package/chart/package.json +0 -4
- package/component/package.json +0 -4
- package/fesm2022/ojiepermana-angular-chart.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component.mjs +0 -5774
- package/fesm2022/ojiepermana-angular-component.mjs.map +0 -1
- package/types/ojiepermana-angular-component.d.ts +0 -1927
package/README.md
CHANGED
|
@@ -16,8 +16,13 @@ Install the published package into a consumer Angular workspace with Angular
|
|
|
16
16
|
CLI so the required peer dependencies are added to the app's `package.json`
|
|
17
17
|
and installed in the same flow:
|
|
18
18
|
|
|
19
|
+
In the consumer snippets below, `@your-scope/angular` means the package name
|
|
20
|
+
your workspace actually installs. Replace it consistently with the published
|
|
21
|
+
target you use, for example `@ojiepermana/angular`, `@edsis/angular`, or
|
|
22
|
+
another branded alias such as `@etos/angular`.
|
|
23
|
+
|
|
19
24
|
```bash
|
|
20
|
-
ng add @
|
|
25
|
+
ng add @your-scope/angular
|
|
21
26
|
```
|
|
22
27
|
|
|
23
28
|
The library requires Tailwind CSS `^4.3.0`. If the consumer workspace does
|
|
@@ -27,7 +32,7 @@ from the published `peerDependencies`.
|
|
|
27
32
|
When updating the library later, use Angular CLI as well:
|
|
28
33
|
|
|
29
34
|
```bash
|
|
30
|
-
ng update @
|
|
35
|
+
ng update @your-scope/angular
|
|
31
36
|
```
|
|
32
37
|
|
|
33
38
|
The package ships `ng-add` and `ng-update` metadata so Angular and RxJS
|
|
@@ -38,18 +43,86 @@ add` directly, peer dependency installation falls back to the package
|
|
|
38
43
|
manager's own behavior. In that flow, install Tailwind manually as well:
|
|
39
44
|
|
|
40
45
|
```bash
|
|
41
|
-
bun add @
|
|
46
|
+
bun add @your-scope/angular tailwindcss@^4.3.0
|
|
42
47
|
```
|
|
43
48
|
|
|
44
49
|
Consumer app styles should import the library theme, Tailwind, and the
|
|
45
50
|
Tailwind bridge in this order:
|
|
46
51
|
|
|
47
52
|
```css
|
|
48
|
-
@import '@
|
|
53
|
+
@import '@your-scope/angular/theme/styles';
|
|
49
54
|
@import 'tailwindcss';
|
|
50
|
-
@import '@
|
|
55
|
+
@import '@your-scope/angular/theme/tailwind/theme.css';
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Breaking change migration
|
|
59
|
+
|
|
60
|
+
Granular secondary entrypoints are now the required component surface. If your
|
|
61
|
+
app previously imported from the removed `@your-scope/angular/component`
|
|
62
|
+
barrel, migrate in this order:
|
|
63
|
+
|
|
64
|
+
1. Confirm the package root you install in the consumer app. Keep that same
|
|
65
|
+
root in every `ng add`, `ng update`, stylesheet import, and TypeScript
|
|
66
|
+
import.
|
|
67
|
+
2. Replace broad barrel imports such as `@your-scope/angular/component` with
|
|
68
|
+
the smallest matching subpath, for example
|
|
69
|
+
`@your-scope/angular/component/button` or
|
|
70
|
+
`@your-scope/angular/component/dropdown-menu`.
|
|
71
|
+
3. Update any internal helper imports to their new granular subpaths as well,
|
|
72
|
+
including utilities such as `@your-scope/angular/component/utils`.
|
|
73
|
+
4. Update schematic commands in the same way. The package name before the
|
|
74
|
+
colon must match the installed target.
|
|
75
|
+
|
|
76
|
+
Example migration:
|
|
77
|
+
|
|
78
|
+
```ts
|
|
79
|
+
import { ButtonComponent } from '@your-scope/angular/component/button';
|
|
80
|
+
import { DropdownMenuComponent } from '@your-scope/angular/component/dropdown-menu';
|
|
81
|
+
import { UiNavIconComponent } from '@your-scope/angular/navigation/icon';
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Granular imports for production builds
|
|
85
|
+
|
|
86
|
+
Prefer the smallest subpath that matches the primitives you actually use,
|
|
87
|
+
especially in Native Federation or other shared-chunk builds. Every component
|
|
88
|
+
now ships only through its matching granular subpath, for example
|
|
89
|
+
`@your-scope/angular/component/date-picker`,
|
|
90
|
+
`@your-scope/angular/component/dropdown-menu`, and
|
|
91
|
+
`@your-scope/angular/component/tooltip`.
|
|
92
|
+
|
|
93
|
+
```ts
|
|
94
|
+
import { AvatarComponent, AvatarFallbackComponent, AvatarImageComponent } from '@your-scope/angular/component/avatar';
|
|
95
|
+
import { ButtonComponent } from '@your-scope/angular/component/button';
|
|
96
|
+
import { PopoverContentDirective, PopoverTriggerDirective } from '@your-scope/angular/component/popover';
|
|
97
|
+
import { cn } from '@your-scope/angular/component/utils';
|
|
98
|
+
import { UiNavIconComponent } from '@your-scope/angular/navigation/icon';
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
`@your-scope/angular/navigation` remains available as a parent entrypoint, but
|
|
102
|
+
`@your-scope/angular/component` has been removed. Component consumers must use
|
|
103
|
+
the granular `@your-scope/angular/component/<slug>` imports.
|
|
104
|
+
|
|
105
|
+
The same subpaths are preserved for branded packages. For example, a consumer
|
|
106
|
+
built from the EDSIS release uses:
|
|
107
|
+
|
|
108
|
+
```ts
|
|
109
|
+
import { ButtonComponent } from '@edsis/angular/component/button';
|
|
110
|
+
import { cn } from '@edsis/angular/component/utils';
|
|
111
|
+
import { UiNavIconComponent } from '@edsis/angular/navigation/icon';
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
To verify the generated package still publishes smaller entrypoints after a
|
|
115
|
+
build, run:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
bun run build
|
|
119
|
+
bun run report:entrypoints -- --check
|
|
51
120
|
```
|
|
52
121
|
|
|
122
|
+
The size report validates that every granular component entrypoint resolves to
|
|
123
|
+
its own module and that the removed `./component` parent barrel does not return
|
|
124
|
+
in the published exports.
|
|
125
|
+
|
|
53
126
|
## Navigation primitives
|
|
54
127
|
|
|
55
128
|
`@ojiepermana/angular/navigation` exports the shared sidebar and topbar building blocks used by the demo shells. The vertical navigation selector is now `sidebar` and the projected sidebar slots use `sidebar-header` and `sidebar-footer`.
|
|
@@ -70,9 +143,9 @@ SDK config file under `config/sdk.config.json` and generate an Angular SDK direc
|
|
|
70
143
|
schematics:
|
|
71
144
|
|
|
72
145
|
```bash
|
|
73
|
-
ng generate @
|
|
146
|
+
ng generate @your-scope/angular:sdk-init
|
|
74
147
|
# edit config/sdk.config.json
|
|
75
|
-
ng generate @
|
|
148
|
+
ng generate @your-scope/angular:sdk
|
|
76
149
|
```
|
|
77
150
|
|
|
78
151
|
The main consumer flow is: create `config/sdk.config.json`, adjust the OpenAPI
|
|
@@ -83,8 +156,8 @@ If you want short script aliases in the consumer app's `package.json`, add:
|
|
|
83
156
|
```json
|
|
84
157
|
{
|
|
85
158
|
"scripts": {
|
|
86
|
-
"gen:sdk:init": "ng generate @
|
|
87
|
-
"gen:sdk": "ng generate @
|
|
159
|
+
"gen:sdk:init": "ng generate @your-scope/angular:sdk-init",
|
|
160
|
+
"gen:sdk": "ng generate @your-scope/angular:sdk"
|
|
88
161
|
}
|
|
89
162
|
}
|
|
90
163
|
```
|
|
@@ -95,8 +168,8 @@ ships the compiled schematic runtime.
|
|
|
95
168
|
Common follow-up options:
|
|
96
169
|
|
|
97
170
|
```bash
|
|
98
|
-
ng generate @
|
|
99
|
-
ng generate @
|
|
171
|
+
ng generate @your-scope/angular:sdk-init --path=config/my-sdk.config.json
|
|
172
|
+
ng generate @your-scope/angular:sdk --config=config/my-sdk.config.json --dry-run
|
|
100
173
|
```
|
|
101
174
|
|
|
102
175
|
## Code scaffolding
|
|
@@ -123,6 +196,12 @@ bun run build
|
|
|
123
196
|
|
|
124
197
|
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
|
125
198
|
|
|
199
|
+
To inspect the generated entrypoint sizes after a build, run:
|
|
200
|
+
|
|
201
|
+
```bash
|
|
202
|
+
bun run report:entrypoints
|
|
203
|
+
```
|
|
204
|
+
|
|
126
205
|
### Publishing the Library
|
|
127
206
|
|
|
128
207
|
Publish the scoped package to the public npm registry from the workspace root.
|
|
@@ -139,30 +218,47 @@ Then run:
|
|
|
139
218
|
bun run publish
|
|
140
219
|
```
|
|
141
220
|
|
|
142
|
-
|
|
221
|
+
By default, this command publishes every configured release target from `config/release.config.json`.
|
|
222
|
+
|
|
223
|
+
Release targets are configured in `config/release.config.json`. Each entry can override the published
|
|
224
|
+
package name plus `repository`, `homepage`, and `bugs` metadata so npm shows the correct package identity.
|
|
143
225
|
|
|
144
|
-
|
|
226
|
+
To publish the `edsis` target from that config, run:
|
|
145
227
|
|
|
146
|
-
|
|
147
|
-
|
|
228
|
+
```bash
|
|
229
|
+
bun run publish --edsis
|
|
230
|
+
```
|
|
148
231
|
|
|
149
|
-
|
|
232
|
+
To publish every configured release target in sequence, run:
|
|
150
233
|
|
|
151
234
|
```bash
|
|
152
|
-
|
|
153
|
-
bun add @ojiepermana/etos
|
|
235
|
+
bun run publish -all
|
|
154
236
|
```
|
|
155
237
|
|
|
156
|
-
|
|
157
|
-
|
|
238
|
+
`bun run publish` and `bun run publish -all` are equivalent.
|
|
239
|
+
|
|
240
|
+
That flow rebuilds `dist/angular` for each configured target, rewrites published package references, applies
|
|
241
|
+
the target-specific npm metadata, smoke-tests the tarball, then publishes it to npm.
|
|
158
242
|
|
|
159
|
-
|
|
243
|
+
### EDSIS Verification Flow
|
|
244
|
+
|
|
245
|
+
To validate the EDSIS package locally without publishing, use:
|
|
160
246
|
|
|
161
247
|
```bash
|
|
162
|
-
bun run build
|
|
163
|
-
bun run
|
|
248
|
+
bun run build -- --package @edsis/angular --repository-url git+https://github.com/edsis/angular.git --homepage https://github.com/edsis/angular#readme --bugs-url https://github.com/edsis/angular/issues
|
|
249
|
+
bun run smoke:pack -- --package @edsis/angular
|
|
164
250
|
```
|
|
165
251
|
|
|
252
|
+
Consumer installation for the published EDSIS package is:
|
|
253
|
+
|
|
254
|
+
```bash
|
|
255
|
+
ng add @edsis/angular
|
|
256
|
+
bun add @edsis/angular
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
If you use `npm`, `pnpm`, or `yarn`, install the package with your package manager after `ng add`
|
|
260
|
+
finishes.
|
|
261
|
+
|
|
166
262
|
## Running unit tests
|
|
167
263
|
|
|
168
264
|
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|